@marimo-team/islands 0.23.17-dev4 → 0.23.17-dev40

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 (185) hide show
  1. package/dist/{ConnectedDataExplorerComponent-f9vLjQiF.js → ConnectedDataExplorerComponent-BBZRR1-C.js} +16 -16
  2. package/dist/{ErrorBoundary-DhLqwSWA.js → ErrorBoundary-CptUP1_t.js} +3 -3
  3. package/dist/{ImageComparisonComponent-C3y7L3eJ.js → ImageComparisonComponent-fdY0LUuf.js} +38 -27
  4. package/dist/{any-language-editor-DifE-fl7.js → any-language-editor-BnIS9Mvg.js} +21 -21
  5. package/dist/assets/__vite-browser-external-DUz7vvG0.js +1 -0
  6. package/dist/assets/{worker-CDEKsBgX.js → worker-Cl1KJG2_.js} +2 -2
  7. package/dist/{button-BSm8IXRU.js → button-8aS1QcHr.js} +4 -2
  8. package/dist/{capabilities-C6OQ5YBO.js → capabilities-D23lgbH_.js} +1 -1
  9. package/dist/chat-ui-DH9M4L-6.js +8620 -0
  10. package/dist/{check-DP7U0H0G.js → check-D-BaEjEh.js} +1 -1
  11. package/dist/{common-BcQ4kHDP.js → common-DSVkRiDF.js} +652 -652
  12. package/dist/{copy-DNq8q3zw.js → copy-BkA3t7rJ.js} +2 -2
  13. package/dist/{defaultLocale-BpsHxBd7.js → defaultLocale-BsfI21d_.js} +26 -26
  14. package/dist/{diagram-PSM6KHXK-D4ftnaua.js → diagram-PSM6KHXK-D3GsWNcQ.js} +1 -1
  15. package/dist/{dist-BpeiYpG2.js → dist-3F1XDSYc.js} +2 -2
  16. package/dist/{dist-BP39XM8u.js → dist-B-upo54Y.js} +1 -1
  17. package/dist/{dist-BdqCKQ1O.js → dist-B1W12VzQ.js} +2 -2
  18. package/dist/{dist-3NCqaWjt.js → dist-B6au1PTB.js} +2 -2
  19. package/dist/{dist-BCX980mU.js → dist-BDwn6WIk.js} +2 -2
  20. package/dist/dist-BDzVdDo2.js +8 -0
  21. package/dist/dist-BH2Tq1S1.js +5 -0
  22. package/dist/dist-BIhBrzqg.js +5 -0
  23. package/dist/dist-BLCsvXTG.js +6 -0
  24. package/dist/dist-BNVtuFdd.js +5 -0
  25. package/dist/{dist-BOMbzyb3.js → dist-BNeJ8P-4.js} +3 -3
  26. package/dist/{dist-LpLXa9Lb.js → dist-BT96P4oR.js} +2 -2
  27. package/dist/{dist-CFSb_Frm.js → dist-BUzxp0Xf.js} +1 -1
  28. package/dist/{dist-JGehap7K.js → dist-Ba1WFESi.js} +5 -5
  29. package/dist/{dist-CRmSjkLP.js → dist-BrKNRKC8.js} +2 -2
  30. package/dist/{dist-BIEt-mlF.js → dist-BvvQUFUK.js} +1 -1
  31. package/dist/{dist-pqIwD8VD.js → dist-BxR-g1ig.js} +2 -2
  32. package/dist/{dist-DviUBLUp.js → dist-CBraAJlT.js} +4 -4
  33. package/dist/{dist-BwhXBwMd.js → dist-CDBV8n0I.js} +1 -1
  34. package/dist/dist-CEJ6Lowi.js +5 -0
  35. package/dist/{dist-CSlJrrAw.js → dist-CWYsUX_O.js} +1 -1
  36. package/dist/dist-CYoa69kj.js +5 -0
  37. package/dist/{dist-DwqBJ014.js → dist-CdKRSqjo.js} +2 -2
  38. package/dist/{dist-De-GlSAs.js → dist-Cds3J-EE.js} +15 -9
  39. package/dist/dist-CnZyXFq3.js +8 -0
  40. package/dist/dist-D-4HaJKc.js +8 -0
  41. package/dist/{dist-C18MUWTj.js → dist-D8SX5Qdg.js} +2 -2
  42. package/dist/{dist-D3bdsa1d.js → dist-DFQ91Mx1.js} +4 -4
  43. package/dist/{dist-BPF0gTRZ.js → dist-DGQmYLkh.js} +1 -1
  44. package/dist/dist-DIGyvbg3.js +5 -0
  45. package/dist/dist-DIhaoCL4.js +5 -0
  46. package/dist/{dist-C2_4pjuS.js → dist-DK0pFEmc.js} +1 -1
  47. package/dist/{dist-BTdrwBWP.js → dist-DQj6A7SE.js} +3 -3
  48. package/dist/{dist-DIlxLFXG.js → dist-DarwE0ZO.js} +11 -11
  49. package/dist/{dist-DaXJPX8F.js → dist-Ddb0VFS3.js} +2 -2
  50. package/dist/dist-DgQleHmb.js +8 -0
  51. package/dist/{dist-DZwp8lro.js → dist-DgkJegw4.js} +3 -3
  52. package/dist/{dist-BO5HRiTf.js → dist-DjQRRttD.js} +2 -2
  53. package/dist/dist-JaoLzZmt.js +5 -0
  54. package/dist/{dist-B2jmQKKx.js → dist-PQDZaPEo.js} +2 -2
  55. package/dist/{dist-4lVIWUT3.js → dist-Slyx4vXr.js} +1 -1
  56. package/dist/{dist-DgjbnqTg.js → dist-dJeh9ef4.js} +2 -2
  57. package/dist/dist-pEX0t8ZV.js +6 -0
  58. package/dist/{dist-w_gWE5Wf.js → dist-v-kAJfMq.js} +1 -1
  59. package/dist/{error-banner-B_GQfxxD.js → error-banner-dmkbm21G.js} +2 -2
  60. package/dist/{esm-DzZVaNH4.js → esm-D8vjxCyn.js} +3 -3
  61. package/dist/{esm-DKOv6P2M.js → esm-DEQU-LUO.js} +22 -22
  62. package/dist/{extends-w2_S44bV.js → extends-DDOVg_b8.js} +5 -5
  63. package/dist/{formats-Dwq1THhr.js → formats-xc-Msa0v.js} +3 -3
  64. package/dist/{ganttDiagram-JELNMOA3-CXXCN7LN.js → ganttDiagram-JELNMOA3-D9ywbC5g.js} +3 -3
  65. package/dist/{glide-data-editor-B9K6-MJe.js → glide-data-editor-CyTNN635.js} +9 -9
  66. package/dist/{html-to-image-CZ1kLKkq.js → html-to-image-DrEMf75G.js} +2219 -2209
  67. package/dist/{input-C5K4VBvB.js → input-B4ddy8Jy.js} +6 -6
  68. package/dist/{label-DjoYwqmj.js → label-CzHncDvS.js} +2 -2
  69. package/dist/{linear-H_vsH9ao.js → linear-BOGUO8Cd.js} +2 -2
  70. package/dist/{loader-DX-IDS7n.js → loader-C7SfUdOD.js} +10 -10
  71. package/dist/main.js +729 -733
  72. package/dist/{mermaid-hv6IckVw.js → mermaid-CpL8y5pw.js} +9 -9
  73. package/dist/{precisionRound-CnHPY_5v.js → precisionRound-Bq50n-bG.js} +1 -1
  74. package/dist/{process-output-bVfbcx5_.js → process-output-B9IHQuus.js} +3 -3
  75. package/dist/{quadrantDiagram-AYHSOK5B-BqDB9tUC.js → quadrantDiagram-AYHSOK5B-DD4QBdSv.js} +2 -2
  76. package/dist/{react-vega-BazDALhI.js → react-vega-Cg17A6rO.js} +8017 -4777
  77. package/dist/{reveal-component-9QGZq7uF.js → reveal-component-CUzZw4ZH.js} +19 -19
  78. package/dist/{spec-CQKL_D3i.js → spec-uMKNvMRZ.js} +4 -4
  79. package/dist/{strings-DIy9NAmg.js → strings-BUDhKc0s.js} +299 -299
  80. package/dist/style.css +1 -1
  81. package/dist/{swiper-component-CEdAYjb7.js → swiper-component-dl1H9WIW.js} +2 -2
  82. package/dist/{time-Bb4A7I6a.js → time-CQnohwNM.js} +2 -2
  83. package/dist/{toDate-CqhBWjvO.js → toDate-BiyuFdnT.js} +3 -3
  84. package/dist/{tooltip-f-qR0iUx.js → tooltip-CkCWlUOf.js} +3 -3
  85. package/dist/{types-DicH9Oi0.js → types-uENjXsiC.js} +1 -1
  86. package/dist/{useAsyncData-CYOQb1EW.js → useAsyncData-DqJLysjC.js} +1 -1
  87. package/dist/{useDateFormatter-Bt2qr_XS.js → useDateFormatter-BeN3fHMH.js} +2 -2
  88. package/dist/{useDeepCompareMemoize-CSHQeQEI.js → useDeepCompareMemoize-CvlmHAmy.js} +1 -1
  89. package/dist/{useIframeCapabilities-kA09ykNq.js → useIframeCapabilities-pLC-ceDP.js} +1 -1
  90. package/dist/{useLifecycle-CMJGqBaY.js → useLifecycle-D4N02q82.js} +3 -3
  91. package/dist/{useTheme-DYfby65G.js → useTheme-Dur2p3iC.js} +4 -3
  92. package/dist/{vega-component-C7nO5zcf.js → vega-component-Cft458Sr.js} +13 -13
  93. package/dist/{vega-embed-container-DAQAMjiO.js → vega-embed-container-S9gRu4TZ.js} +3 -3
  94. package/dist/{vega-loader.browser-DmpxCJqx.js → vega-loader.browser-CmLRI3wk.js} +104 -111
  95. package/dist/{xychartDiagram-PRI3JC2R-BSkNxYNw.js → xychartDiagram-PRI3JC2R-D9DgEtKn.js} +2 -2
  96. package/dist/{zod-BUcyXSdR.js → zod-yTHHzJiv.js} +37 -38
  97. package/package.json +6 -6
  98. package/src/__mocks__/requests.ts +5 -0
  99. package/src/components/app-config/user-config-form.tsx +26 -0
  100. package/src/components/chat/__tests__/chat-abort.test.ts +51 -0
  101. package/src/components/chat/chat-abort.ts +44 -0
  102. package/src/components/chat/chat-display.tsx +17 -0
  103. package/src/components/chat/chat-panel.tsx +85 -37
  104. package/src/components/chat/chat-utils.ts +1 -1
  105. package/src/components/data-table/charts/__tests__/schemas.test.ts +35 -0
  106. package/src/components/data-table/charts/schemas.ts +5 -2
  107. package/src/components/databases/icons/huggingface.svg +8 -0
  108. package/src/components/datasets/__tests__/icons.test.ts +21 -0
  109. package/src/components/datasets/icons.tsx +10 -0
  110. package/src/components/datasources/__tests__/components.test.tsx +29 -0
  111. package/src/components/datasources/components.tsx +8 -3
  112. package/src/components/editor/actions/export-dialog/__tests__/export-dialog.test.tsx +35 -0
  113. package/src/components/editor/actions/export-dialog/__tests__/state.test.ts +61 -0
  114. package/src/components/editor/actions/export-dialog/export-command.ts +4 -9
  115. package/src/components/editor/actions/export-dialog/export-dialog.tsx +27 -23
  116. package/src/components/editor/actions/export-dialog/format-notice.tsx +28 -0
  117. package/src/components/editor/actions/export-dialog/state.ts +23 -5
  118. package/src/components/editor/actions/export-dialog/use-export-dialog.ts +7 -15
  119. package/src/components/editor/actions/useConfigActions.tsx +24 -0
  120. package/src/components/editor/ai/add-cell-with-ai.tsx +2 -2
  121. package/src/components/editor/ai/ai-completion-editor.tsx +2 -2
  122. package/src/components/editor/chrome/panels/outline/__tests__/useActiveOutline.test.ts +26 -0
  123. package/src/components/editor/code/__tests__/readonly-python-code.test.tsx +114 -2
  124. package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +14 -0
  125. package/src/components/editor/connections/storage/__tests__/as-code.test.ts +20 -0
  126. package/src/components/editor/connections/storage/add-storage-form.tsx +10 -0
  127. package/src/components/editor/connections/storage/as-code.ts +19 -1
  128. package/src/components/editor/connections/storage/schemas.ts +19 -0
  129. package/src/components/storage/__tests__/storage-snippets.test.ts +88 -0
  130. package/src/components/storage/components.tsx +2 -0
  131. package/src/components/storage/storage-snippets.ts +58 -0
  132. package/src/core/__tests__/mode.test.ts +85 -0
  133. package/src/core/ai/constants.ts +7 -0
  134. package/src/core/ai/staged-cells.ts +3 -0
  135. package/src/core/codemirror/__tests__/setup.test.ts +1 -1
  136. package/src/core/codemirror/cm.ts +2 -2
  137. package/src/core/codemirror/code-lens/__tests__/extension.test.ts +4 -5
  138. package/src/core/codemirror/code-lens/extension.ts +3 -3
  139. package/src/core/codemirror/find-replace/search-highlight.ts +8 -3
  140. package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +44 -0
  141. package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
  142. package/src/core/codemirror/theme/__tests__/light.test.ts +59 -123
  143. package/src/core/codemirror/theme/dark.ts +6 -5
  144. package/src/core/codemirror/theme/light.ts +6 -4
  145. package/src/core/config/__tests__/config-schema.test.ts +2 -0
  146. package/src/core/config/config-schema.ts +1 -0
  147. package/src/core/config/feature-flag.tsx +0 -2
  148. package/src/core/dom/outline.ts +25 -2
  149. package/src/core/hotkeys/hotkeys.ts +2 -0
  150. package/src/core/mode.ts +11 -9
  151. package/src/core/network/__tests__/api.test.ts +132 -17
  152. package/src/core/network/__tests__/export-filename.test.ts +43 -0
  153. package/src/core/network/__tests__/requests-lazy.test.ts +1 -0
  154. package/src/core/network/api.ts +47 -12
  155. package/src/core/network/export-filename.ts +37 -0
  156. package/src/core/network/markdown-export.ts +19 -0
  157. package/src/core/network/requests-network.ts +29 -5
  158. package/src/core/network/types.ts +3 -0
  159. package/src/core/storage/types.ts +1 -0
  160. package/src/css/app/codemirror.css +11 -7
  161. package/src/css/globals.css +8 -0
  162. package/src/plugins/impl/DataEditorPlugin.tsx +2 -9
  163. package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +18 -0
  164. package/src/plugins/impl/chat/chat-ui.tsx +51 -3
  165. package/src/plugins/impl/data-frames/__tests__/schema.test.ts +30 -0
  166. package/src/plugins/impl/data-frames/schema.ts +4 -1
  167. package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +20 -1
  168. package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +58 -0
  169. package/src/stories/theme.stories.tsx +71 -1
  170. package/dist/assets/__vite-browser-external-DltVXDv7.js +0 -1
  171. package/dist/chat-ui-DsZJj75A.js +0 -8369
  172. package/dist/dist-5o9uz19x.js +0 -5
  173. package/dist/dist-BpDH0DEP.js +0 -5
  174. package/dist/dist-BpXhbQXO.js +0 -8
  175. package/dist/dist-ByadAk_L.js +0 -5
  176. package/dist/dist-CK0g7JvP.js +0 -8
  177. package/dist/dist-CfzCtiq2.js +0 -5
  178. package/dist/dist-D8JtVFrW.js +0 -8
  179. package/dist/dist-DK2Oocpu.js +0 -6
  180. package/dist/dist-DnSu977r.js +0 -5
  181. package/dist/dist-UmxJm6sW.js +0 -8
  182. package/dist/dist-aYSBQSyM.js +0 -5
  183. package/dist/dist-kkZ1Ztlh.js +0 -6
  184. package/dist/dist-ngPczwNi.js +0 -5
  185. package/dist/dist-wQRyxyTV.js +0 -5
package/dist/main.js CHANGED
@@ -18,65 +18,65 @@ var __privateWrapper = (obj, member, setter, getter) => ({
18
18
  }
19
19
  });
20
20
  import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
21
- import { _ as Functions, c as useEventListener, f as composeRefs, g as Logger, h as cn, i as NOT_SET, l as Slot, m as Events, n as buttonVariants, o as isPlatformMac, p as useComposedRefs, r as cva, t as Button, v as throwNotImplemented } from "./button-BSm8IXRU.js";
21
+ import { _ as Functions, c as useEventListener, f as composeRefs, g as Logger, h as cn, i as NOT_SET, l as Slot, m as Events, n as buttonVariants, o as isPlatformMac, p as useComposedRefs, r as cva, t as Button, v as throwNotImplemented } from "./button-8aS1QcHr.js";
22
22
  import { t as require_react } from "./react-DA-nE2FX.js";
23
23
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
24
- import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DNq8q3zw.js";
25
- import { $ as notebookOutline, $t as publishedCellClasses, A as ChevronDownIcon, An as Root2$1, At as DeferredRequestRegistry, Bn as Info, C as Accordion, Cn as atomWithReducer, Ct as MarkdownLanguageAdapter, D as BorderAllIcon, E as AccordionTrigger, Et as Paths, Fn as PaintRoller, G as hasRunAnyCellAtom, Gn as Columns2, H as renderHTML, Hn as Eye, Ht as DATA_TYPE_ICON, I as base64ToDataView, Jn as Braces, Jt as convertStatsName, K as cellIdsAtom, Lt as repl, Nn as Trash2, On as Content2, Pn as Table2, Pt as jotaiJsonStorage, Q as notebookAtom, Qt as isUninstantiated, R as dataViewToBase64, Rn as LoaderCircle, Rt as SQLParser, St as isRecord, T as AccordionItem, Tn as selectAtom, Tt as PathBuilder, U as getMarimoExportContext, V as safeExtractSetUIElementMessageBuffers, Vn as FileText, Vt as PluralWords, W as hasTrustedExportContext, Wn as Database, Wt as require_client, X as hasOnlyOneCellAtom, Xt as requestClientAtom, Y as getCellNames, Yt as getRequestClient, Z as initialNotebookState, Zt as useRequestClient, _n as UIElementId, _t as isInternalCellName, a as useCellFocusActions, at as createCell, bn as RANDOM_ID_ATTR, bt as customPythonLanguageSupport, cn as NotebookScopedLocalStorage, dn as parseAttrValue, dt as headingToIdentifier, en as shouldHidePublishedCell, et as numColumnsAtom, f as isOutputEmpty, fn as parseDataset, gt as getValidName, hn as HTMLCellId, i as LazyAnyLanguageCodeMirror, jn as Trigger2, jt as generateUUID, kn as Item$1, lt as outputIsLoading, n as Spinner, nt as useCellActions, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pn as parseInitialValue, q as createActions, qn as CircleAlert, rt as useCellIds, s as maybeAddAltairImport, tt as reducer, ut as outputIsStale, vn as findCellId, vt as normalizeName, w as AccordionContent, wn as atomWithStorage, xn as jsonParseWithSpecialChar, xt as hasFunctionProperty, yn as OBJECT_ID_ATTR, yt as Checkbox, zn as Layers, zt as MarkdownParser, __tla as __tla_0 } from "./html-to-image-CZ1kLKkq.js";
24
+ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-BkA3t7rJ.js";
25
+ import { $ as notebookOutline, $t as isUninstantiated, A as ChevronDownIcon, An as Item$1, At as DeferredRequestRegistry, Bn as Layers, C as Accordion, Ct as MarkdownLanguageAdapter, D as BorderAllIcon, E as AccordionTrigger, En as selectAtom, Et as Paths, Fn as Table2, G as hasRunAnyCellAtom, Gn as Database, Gt as require_client, H as renderHTML, Hn as FileText, Ht as DATA_TYPE_ICON, I as base64ToDataView, In as PaintRoller, Jn as CircleAlert, K as cellIdsAtom, Kn as Columns2, Lt as repl, Mn as Trigger2, Pn as Trash2, Pt as jotaiJsonStorage, Q as notebookAtom, Qt as useRequestClient, R as dataViewToBase64, Rt as SQLParser, Sn as jsonParseWithSpecialChar, St as isRecord, T as AccordionItem, Tn as atomWithStorage, Tt as PathBuilder, U as getMarimoExportContext, Un as Eye, V as safeExtractSetUIElementMessageBuffers, Vn as Info, Vt as PluralWords, W as hasTrustedExportContext, X as hasOnlyOneCellAtom, Xt as getRequestClient, Y as getCellNames, Yn as Braces, Yt as convertStatsName, Z as initialNotebookState, Zt as requestClientAtom, _t as isInternalCellName, a as useCellFocusActions, at as createCell, bn as OBJECT_ID_ATTR, bt as customPythonLanguageSupport, dt as headingToIdentifier, en as publishedCellClasses, et as numColumnsAtom, f as isOutputEmpty, fn as parseAttrValue, gn as HTMLCellId, gt as getValidName, i as LazyAnyLanguageCodeMirror, jn as Root2$1, jt as generateUUID, kn as Content2, ln as NotebookScopedLocalStorage, lt as outputIsLoading, mn as parseInitialValue, n as Spinner, nt as useCellActions, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pn as parseDataset, q as createActions, rt as useCellIds, s as maybeAddAltairImport, tn as shouldHidePublishedCell, tt as reducer, ut as outputIsStale, vn as UIElementId, vt as normalizeName, w as AccordionContent, wn as atomWithReducer, xn as RANDOM_ID_ATTR, xt as hasFunctionProperty, yn as findCellId, yt as Checkbox, zn as LoaderCircle, zt as MarkdownParser, __tla as __tla_0 } from "./html-to-image-DrEMf75G.js";
26
26
  import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-B9WoXK1R.js";
27
- import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-DIlxLFXG.js";
28
- import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-CQKL_D3i.js";
29
- import { $ as CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-BcQ4kHDP.js";
30
- import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CMJGqBaY.js";
31
- import { t as Check } from "./check-DP7U0H0G.js";
32
- import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-DIy9NAmg.js";
33
- import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-C5K4VBvB.js";
34
- import { S as isWasm, _ as initialModeAtom, b as viewStateAtom, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as getInitialAppMode, m as require_cuid2, u as getStaticVirtualFiles, v as kioskModeAtom, w as CircleQuestionMark, x as Deferred } from "./toDate-CqhBWjvO.js";
35
- import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, f as Square, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, p as File, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-bVfbcx5_.js";
36
- import { n as Trash, r as Pencil, t as BulkEdit } from "./types-DicH9Oi0.js";
37
- import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DhLqwSWA.js";
27
+ import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-DarwE0ZO.js";
28
+ import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-uMKNvMRZ.js";
29
+ import { $ as CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-DSVkRiDF.js";
30
+ import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-D4N02q82.js";
31
+ import { t as Check } from "./check-D-BaEjEh.js";
32
+ import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-BUDhKc0s.js";
33
+ import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-B4ddy8Jy.js";
34
+ import { S as isWasm, _ as initialModeAtom, b as viewStateAtom, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as getInitialAppMode, m as require_cuid2, u as getStaticVirtualFiles, v as kioskModeAtom, w as CircleQuestionMark, x as Deferred } from "./toDate-BiyuFdnT.js";
35
+ import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, f as Square, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, p as File, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-B9IHQuus.js";
36
+ import { n as Trash, r as Pencil, t as BulkEdit } from "./types-uENjXsiC.js";
37
+ import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-CptUP1_t.js";
38
38
  import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
39
39
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
40
- import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, E as custom, F as optional, G as parse$1, I as record, J as prettifyError, K as parseAsync, N as number, O as lazy$2, P as object, R as string, S as _null, T as boolean, U as ZodError, V as unknown, Z as withFullScreenAsRoot, _ as ZodString, _t as createContextScope, a as ZodIssueCode, b as _enum, c as ZodBoolean, ct as DismissableLayer, d as ZodDiscriminatedUnion, dt as useId$11, et as StyleNamespace, f as ZodEnum, ft as Presence, g as ZodOptional, h as ZodObject, ht as composeEventHandlers$1, i as string$1, j as nan, k as literal, l as ZodDate, m as ZodNumber, mt as useLayoutEffect2, n as date, o as ZodAny, p as ZodLiteral, pt as useControllableState, q as $ZodError, r as number$1, rt as __awaiter, s as ZodArray, t as zod_default, u as ZodDefault, ut as useCallbackRef, v as ZodType, vt as Primitive, w as array, x as _instanceof, y as ZodUnion, yt as dispatchDiscreteCustomEvent, z as tuple } from "./zod-BUcyXSdR.js";
41
- import { i as FunctionNotFoundError, n as ErrorBanner, r as CellNotInitializedError, t as Banner } from "./error-banner-B_GQfxxD.js";
42
- import { t as Label } from "./label-DjoYwqmj.js";
43
- import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-f-qR0iUx.js";
44
- import { f as CopyClipboardIcon } from "./extends-w2_S44bV.js";
40
+ import { $ as StyleNamespace, A as looseObject, B as unknown, C as any, E as custom, F as optional, G as parseAsync, H as ZodError, I as record, K as $ZodError, L as string, N as number, O as lazy$2, P as object, Q as isInVscodeExtension, R as tuple, S as _null, T as boolean, W as parse$1, X as withFullScreenAsRoot, _ as ZodString, _t as Primitive, a as ZodIssueCode, b as _enum, c as ZodBoolean, d as ZodDiscriminatedUnion, dt as Presence, f as ZodEnum, ft as useControllableState, g as ZodOptional, gt as createContextScope, h as ZodObject, i as string$1, j as nan, k as literal, l as ZodDate, lt as useCallbackRef, m as ZodNumber, mt as composeEventHandlers$1, n as date, nt as __awaiter, o as ZodAny, p as ZodLiteral, pt as useLayoutEffect2, q as prettifyError, r as number$1, s as ZodArray, st as DismissableLayer, t as zod_default, u as ZodDefault, ut as useId$11, v as ZodType, vt as dispatchDiscreteCustomEvent, w as array, x as _instanceof, y as ZodUnion, z as union } from "./zod-yTHHzJiv.js";
41
+ import { i as FunctionNotFoundError, n as ErrorBanner, r as CellNotInitializedError, t as Banner } from "./error-banner-dmkbm21G.js";
42
+ import { t as Label } from "./label-CzHncDvS.js";
43
+ import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-CkCWlUOf.js";
44
+ import { f as CopyClipboardIcon } from "./extends-DDOVg_b8.js";
45
45
  import { a as get_default } from "./hasIn-Deg7jl_j.js";
46
46
  import { n as _baseSet_default, t as pick_default } from "./pick-D1Qo8s2C.js";
47
47
  import { t as debounce_default } from "./debounce-BOD3DbfP.js";
48
- import { A as useEvent_default, S as useAtomValue, T as atom, a as KnownQueryParams, b as Provider, c as autoInstantiateAtom, f as useResolvedMarimoConfig, g as store, k as dequal, m as AppConfigSchema, n as useTheme, r as CSSClasses, u as localeAtom, x as useAtom, y as isIslands } from "./useTheme-DYfby65G.js";
49
- import { $ as EditorView, F as syntaxHighlighting, H as tags, a as HighlightStyle, g as defaultHighlightStyle } from "./dist-De-GlSAs.js";
48
+ import { A as useEvent_default, S as useAtomValue, T as atom, a as KnownQueryParams, b as Provider, c as autoInstantiateAtom, f as useResolvedMarimoConfig, g as store, k as dequal, m as AppConfigSchema, n as useTheme, r as CSSClasses, u as localeAtom, x as useAtom, y as isIslands } from "./useTheme-Dur2p3iC.js";
49
+ import { $ as EditorView, F as syntaxHighlighting, H as tags, a as HighlightStyle, g as defaultHighlightStyle } from "./dist-Cds3J-EE.js";
50
50
  import { t as invariant } from "./invariant-wRzNXIsJ.js";
51
51
  import { c as uniqueBy, l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDRoG4.js";
52
52
  import { t as Objects } from "./objects-De59twF-.js";
53
53
  import { n as once } from "./once-B60G2fuJ.js";
54
54
  import "./main-B1Jo_8pC.js";
55
- import { f as sql } from "./dist-BpeiYpG2.js";
56
- import { a as markdown } from "./dist-BOMbzyb3.js";
57
- import "./dist-BTdrwBWP.js";
58
- import "./dist-4lVIWUT3.js";
59
- import "./dist-DgjbnqTg.js";
60
- import { r as python } from "./dist-CRmSjkLP.js";
61
- import { n as minimalSetup, t as esm_default } from "./esm-DzZVaNH4.js";
55
+ import { f as sql } from "./dist-3F1XDSYc.js";
56
+ import { a as markdown } from "./dist-BNeJ8P-4.js";
57
+ import "./dist-DQj6A7SE.js";
58
+ import "./dist-Slyx4vXr.js";
59
+ import "./dist-dJeh9ef4.js";
60
+ import { r as python } from "./dist-BrKNRKC8.js";
61
+ import { n as minimalSetup, t as esm_default } from "./esm-D8vjxCyn.js";
62
62
  import "./purify.es-EnR5yhgI.js";
63
- import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-Dwq1THhr.js";
64
- import { H as getVegaFieldTypes, V as getContainerWidth } from "./vega-loader.browser-DmpxCJqx.js";
65
- import { a as tooltipHandler, n as vegaLoadData } from "./loader-DX-IDS7n.js";
66
- import "./defaultLocale-BpsHxBd7.js";
63
+ import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-xc-Msa0v.js";
64
+ import { A as getContainerWidth, j as getVegaFieldTypes } from "./vega-loader.browser-CmLRI3wk.js";
65
+ import { a as tooltipHandler, n as vegaLoadData } from "./loader-C7SfUdOD.js";
66
+ import "./defaultLocale-BsfI21d_.js";
67
67
  import "./defaultLocale-DoeErsX2.js";
68
- import { t as useAsyncData } from "./useAsyncData-CYOQb1EW.js";
69
- import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-CSHQeQEI.js";
70
- import "./dist-BP39XM8u.js";
71
- import "./dist-C18MUWTj.js";
72
- import "./dist-BwhXBwMd.js";
73
- import "./dist-C2_4pjuS.js";
74
- import "./dist-BdqCKQ1O.js";
75
- import "./dist-w_gWE5Wf.js";
76
- import "./dist-3NCqaWjt.js";
77
- import "./dist-BPF0gTRZ.js";
78
- import "./dist-CFSb_Frm.js";
79
- import { t as langs } from "./esm-DKOv6P2M.js";
68
+ import { t as useAsyncData } from "./useAsyncData-DqJLysjC.js";
69
+ import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-CvlmHAmy.js";
70
+ import "./dist-B-upo54Y.js";
71
+ import "./dist-D8SX5Qdg.js";
72
+ import "./dist-CDBV8n0I.js";
73
+ import "./dist-DK0pFEmc.js";
74
+ import "./dist-B1W12VzQ.js";
75
+ import "./dist-v-kAJfMq.js";
76
+ import "./dist-B6au1PTB.js";
77
+ import "./dist-DGQmYLkh.js";
78
+ import "./dist-BUzxp0Xf.js";
79
+ import { t as langs } from "./esm-DEQU-LUO.js";
80
80
  let canReplaceApp, initialize, stopApp;
81
81
  let __tla = Promise.all([
82
82
  (() => {
@@ -7520,10 +7520,10 @@ let __tla = Promise.all([
7520
7520
  }), B = C({
7521
7521
  height: 0,
7522
7522
  width: 0
7523
- }), H = U(), W = U(), G = C(0), q = C(null), Z = C({
7523
+ }), H = U(), W = U(), G = C(0), q = C(null), ZW = C({
7524
7524
  column: 0,
7525
7525
  row: 0
7526
- }), ZW = U(), QW = U(), $W = C(false), eG = C(0), tG = C(true), nG = C(false), rG = C(false);
7526
+ }), Z = U(), QW = U(), $W = C(false), eG = C(0), tG = C(true), nG = C(false), rG = C(false);
7527
7527
  Y(x(b, $(eG), P(([e2, r2]) => !!r2)), () => {
7528
7528
  D(tG, false);
7529
7529
  }), Y(x(ut(b, tG, B, z, eG, nG), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
@@ -7536,17 +7536,17 @@ let __tla = Promise.all([
7536
7536
  ]), D(tG, true);
7537
7537
  });
7538
7538
  }), F(x(QW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(QW), P(([, e2]) => e2 != null)), ([, e2]) => {
7539
- e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D($W, true), Et(x(h, Kt(1)), (e3) => {
7539
+ e2 && (D(z, e2.viewport), D(B, e2.item), D(ZW, e2.gap), e2.scrollTop > 0 && (D($W, true), Et(x(h, Kt(1)), (e3) => {
7540
7540
  D($W, false);
7541
7541
  }), D(m, {
7542
7542
  top: e2.scrollTop
7543
7543
  })));
7544
- }), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(Z, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
7544
+ }), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(ZW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
7545
7545
  gap: c2,
7546
7546
  item: r2,
7547
7547
  scrollTop: l2,
7548
7548
  viewport: e2
7549
- }))), ZW), F(x(ut(V(I), l, V(Z, Or), V(B, xe), V(z, xe), V(q), V(L), V($W), V(tG), V(eG)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
7549
+ }))), Z), F(x(ut(V(I), l, V(ZW, Or), V(B, xe), V(z, xe), V(q), V(L), V($W), V(tG), V(eG)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
7550
7550
  let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
7551
7551
  if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
7552
7552
  if (y2 === 0) {
@@ -7565,7 +7565,7 @@ let __tla = Promise.all([
7565
7565
  offsetTop: j2,
7566
7566
  top: j2
7567
7567
  };
7568
- })), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, Z), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
7568
+ })), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, ZW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
7569
7569
  let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
7570
7570
  return [
7571
7571
  d2,
@@ -7581,7 +7581,7 @@ let __tla = Promise.all([
7581
7581
  endIndex: e2[e2.length - 1].index,
7582
7582
  startIndex: e2[0].index
7583
7583
  })), J(An), Gt(0)));
7584
- F(sG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, Z), k(([e2, r2, c2, l2, u2]) => {
7584
+ F(sG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, ZW), k(([e2, r2, c2, l2, u2]) => {
7585
7585
  let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
7586
7586
  h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
7587
7587
  let g2 = Me(r2, u2, c2, h2);
@@ -7599,7 +7599,7 @@ let __tla = Promise.all([
7599
7599
  data: q,
7600
7600
  deviation: G,
7601
7601
  footerHeight: u,
7602
- gap: Z,
7602
+ gap: ZW,
7603
7603
  headerHeight: d,
7604
7604
  increaseViewportBy: e,
7605
7605
  initialItemCount: L,
@@ -7629,7 +7629,7 @@ let __tla = Promise.all([
7629
7629
  propsReady: S,
7630
7630
  rangeChanged: sG,
7631
7631
  startReached: oG,
7632
- stateChanged: ZW,
7632
+ stateChanged: Z,
7633
7633
  stateRestoreInProgress: $W,
7634
7634
  ...M
7635
7635
  };
@@ -7908,22 +7908,22 @@ let __tla = Promise.all([
7908
7908
  let r2 = Array.isArray(e2) ? e2 : [];
7909
7909
  f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
7910
7910
  }, r[8] = p, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
7911
- let Z = q, ZW;
7911
+ let ZW = q, Z;
7912
7912
  if (r[13] !== G.bulkActions) {
7913
- if (ZW = G.bulkActions.map(_temp$27), ZW.length > 0) {
7913
+ if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
7914
7914
  let e2;
7915
7915
  r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
7916
7916
  "data-slot": "select-separator"
7917
- }, "_bulk_separator"), r[15] = e2) : e2 = r[15], ZW.push(e2);
7917
+ }, "_bulk_separator"), r[15] = e2) : e2 = r[15], Z.push(e2);
7918
7918
  }
7919
- r[13] = G.bulkActions, r[14] = ZW;
7920
- } else ZW = r[14];
7919
+ r[13] = G.bulkActions, r[14] = Z;
7920
+ } else Z = r[14];
7921
7921
  let QW;
7922
7922
  r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (QW = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
7923
7923
  "data-slot": "select-separator"
7924
7924
  }, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = QW) : QW = r[18];
7925
7925
  let $W = QW, eG;
7926
- r[19] !== ZW || r[20] !== G || r[21] !== $W || r[22] !== w || r[23] !== B || r[24] !== H ? (eG = () => {
7926
+ r[19] !== Z || r[20] !== G || r[21] !== $W || r[22] !== w || r[23] !== B || r[24] !== H ? (eG = () => {
7927
7927
  if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
7928
7928
  "data-slot": "select-list",
7929
7929
  style: {
@@ -7935,7 +7935,7 @@ let __tla = Promise.all([
7935
7935
  let r2 = G.visibleOptions[e3];
7936
7936
  return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
7937
7937
  children: [
7938
- e3 === 0 && ZW,
7938
+ e3 === 0 && Z,
7939
7939
  $W(e3),
7940
7940
  (0, import_jsx_runtime.jsx)(OptionRow, {
7941
7941
  option: r2,
@@ -7961,11 +7961,11 @@ let __tla = Promise.all([
7961
7961
  });
7962
7962
  return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
7963
7963
  children: [
7964
- ZW,
7964
+ Z,
7965
7965
  e2
7966
7966
  ]
7967
7967
  });
7968
- }, r[19] = ZW, r[20] = G, r[21] = $W, r[22] = w, r[23] = B, r[24] = H, r[25] = eG) : eG = r[25];
7968
+ }, r[19] = Z, r[20] = G, r[21] = $W, r[22] = w, r[23] = B, r[24] = H, r[25] = eG) : eG = r[25];
7969
7969
  let tG = eG, nG;
7970
7970
  r[26] !== G.labelOf || r[27] !== I ? (nG = (e2) => {
7971
7971
  let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
@@ -8005,19 +8005,19 @@ let __tla = Promise.all([
8005
8005
  id: S
8006
8006
  }, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = iG, r[44] = aG, r[45] = oG, r[46] = sG, r[47] = fG, r[48] = pG) : pG = r[48];
8007
8007
  let mG = pG, hG;
8008
- return r[49] !== mG || r[50] !== Z || r[51] !== d || r[52] !== tG || r[53] !== l ? (hG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
8008
+ return r[49] !== mG || r[50] !== ZW || r[51] !== d || r[52] !== tG || r[53] !== l ? (hG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
8009
8009
  ...mG,
8010
8010
  multiple: true,
8011
8011
  value: l,
8012
- onValueChange: Z,
8012
+ onValueChange: ZW,
8013
8013
  children: tG()
8014
8014
  }) : (0, import_jsx_runtime.jsx)(Combobox, {
8015
8015
  ...mG,
8016
8016
  multiple: false,
8017
8017
  value: l,
8018
- onValueChange: Z,
8018
+ onValueChange: ZW,
8019
8019
  children: tG()
8020
- }), r[49] = mG, r[50] = Z, r[51] = d, r[52] = tG, r[53] = l, r[54] = hG) : hG = r[54], hG;
8020
+ }), r[49] = mG, r[50] = ZW, r[51] = d, r[52] = tG, r[53] = l, r[54] = hG) : hG = r[54], hG;
8021
8021
  }
8022
8022
  function _temp$27(e) {
8023
8023
  let r = "enabled" in e ? !e.enabled : e.items.length === 0;
@@ -9017,7 +9017,7 @@ let __tla = Promise.all([
9017
9017
  };
9018
9018
  }
9019
9019
  };
9020
- var LazyChatbot = import_react.lazy(() => import("./chat-ui-DsZJj75A.js").then((e) => ({
9020
+ var LazyChatbot = import_react.lazy(() => import("./chat-ui-DH9M4L-6.js").then((e) => ({
9021
9021
  default: e.Chatbot
9022
9022
  }))), messageSchema = array(object({
9023
9023
  id: string(),
@@ -9156,6 +9156,24 @@ let __tla = Promise.all([
9156
9156
  }).map(_temp3$11)
9157
9157
  }, r);
9158
9158
  }
9159
+ const FieldOptions = {
9160
+ of(e) {
9161
+ return JSON.stringify(e);
9162
+ },
9163
+ parse(e) {
9164
+ if (!e) return {};
9165
+ try {
9166
+ return JSON.parse(e);
9167
+ } catch {
9168
+ return {
9169
+ label: e
9170
+ };
9171
+ }
9172
+ }
9173
+ };
9174
+ function randomNumber() {
9175
+ return Math.floor(Math.random() * 1e5);
9176
+ }
9159
9177
  const DATA_TYPES = [
9160
9178
  "string",
9161
9179
  "boolean",
@@ -9165,8 +9183,392 @@ let __tla = Promise.all([
9165
9183
  "datetime",
9166
9184
  "time",
9167
9185
  "unknown"
9186
+ ], NUMPY_DTYPES = [
9187
+ "int8",
9188
+ "int16",
9189
+ "int32",
9190
+ "int64",
9191
+ "uint8",
9192
+ "uint16",
9193
+ "uint32",
9194
+ "uint64",
9195
+ "float16",
9196
+ "float32",
9197
+ "float64",
9198
+ "complex64",
9199
+ "complex128",
9200
+ "bool",
9201
+ "object",
9202
+ "str",
9203
+ "unicode",
9204
+ "datetime64",
9205
+ "timedelta64"
9206
+ ], AGGREGATION_FNS$1 = [
9207
+ "count",
9208
+ "sum",
9209
+ "mean",
9210
+ "median",
9211
+ "min",
9212
+ "max"
9168
9213
  ];
9169
- var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-B9K6-MJe.js").then(async (m) => {
9214
+ var Schema = {
9215
+ number: number$1().describe(FieldOptions.of({
9216
+ label: "Value"
9217
+ })),
9218
+ string: string().min(1).describe(FieldOptions.of({
9219
+ label: "Value"
9220
+ })),
9221
+ stringColumnValues: string().min(1).describe(FieldOptions.of({
9222
+ label: "Value",
9223
+ special: "column_values"
9224
+ })),
9225
+ stringMultiColumnValues: array(string()).min(1).describe(FieldOptions.of({
9226
+ label: "Value",
9227
+ special: "column_values"
9228
+ })),
9229
+ date: date().describe(FieldOptions.of({
9230
+ label: "Value",
9231
+ special: "date"
9232
+ })),
9233
+ datetime: date().describe(FieldOptions.of({
9234
+ label: "Value",
9235
+ special: "datetime"
9236
+ })),
9237
+ time: string().regex(/^\d{2}:\d{2}(:\d{2})?$/).describe(FieldOptions.of({
9238
+ label: "Value",
9239
+ special: "time"
9240
+ }))
9241
+ };
9242
+ const BOOLEAN_OPERATORS = {
9243
+ is_true: [],
9244
+ is_false: []
9245
+ };
9246
+ var createComparisonOperators = (e) => ({
9247
+ "==": [
9248
+ e
9249
+ ],
9250
+ "!=": [
9251
+ e
9252
+ ],
9253
+ ">": [
9254
+ e
9255
+ ],
9256
+ ">=": [
9257
+ e
9258
+ ],
9259
+ "<": [
9260
+ e
9261
+ ],
9262
+ "<=": [
9263
+ e
9264
+ ],
9265
+ between: [
9266
+ object({
9267
+ min: e,
9268
+ max: e
9269
+ })
9270
+ ],
9271
+ is_null: [],
9272
+ is_not_null: []
9273
+ });
9274
+ const NUMERIC_OPERATORS = createComparisonOperators(Schema.number), DATE_OPERATORS = createComparisonOperators(Schema.date), TIME_OPERATORS = createComparisonOperators(Schema.time), DATETIME_OPERATORS = createComparisonOperators(Schema.datetime), STRING_OPERATORS = {
9275
+ equals: [
9276
+ Schema.stringColumnValues
9277
+ ],
9278
+ does_not_equal: [
9279
+ Schema.stringColumnValues
9280
+ ],
9281
+ contains: [
9282
+ Schema.string
9283
+ ],
9284
+ regex: [
9285
+ Schema.string
9286
+ ],
9287
+ starts_with: [
9288
+ Schema.string
9289
+ ],
9290
+ ends_with: [
9291
+ Schema.string
9292
+ ],
9293
+ in: [
9294
+ Schema.stringMultiColumnValues
9295
+ ],
9296
+ not_in: [
9297
+ Schema.stringMultiColumnValues
9298
+ ],
9299
+ is_empty: [],
9300
+ is_null: [],
9301
+ is_not_null: []
9302
+ }, ALL_OPERATORS = {
9303
+ ...BOOLEAN_OPERATORS,
9304
+ ...NUMERIC_OPERATORS,
9305
+ ...DATE_OPERATORS,
9306
+ ...TIME_OPERATORS,
9307
+ ...DATETIME_OPERATORS,
9308
+ ...STRING_OPERATORS
9309
+ };
9310
+ function numpyTypeToDataType(e) {
9311
+ return e ? e.startsWith("int") ? "integer" : e.startsWith("float") || e.startsWith("uint") || e.startsWith("number") || e.startsWith("complex") ? "number" : e.startsWith("string") || e.startsWith("object") || e.startsWith("utf8") ? "string" : e.startsWith("datetime") ? "datetime" : e.startsWith("time") ? "time" : e.startsWith("date") ? "date" : e.startsWith("bool") ? "boolean" : "unknown" : "unknown";
9312
+ }
9313
+ function getOperatorForDtype(e) {
9314
+ if (!e) return [];
9315
+ switch (numpyTypeToDataType(e)) {
9316
+ case "integer":
9317
+ return Object.keys(NUMERIC_OPERATORS);
9318
+ case "number":
9319
+ return Object.keys(NUMERIC_OPERATORS);
9320
+ case "string":
9321
+ return Object.keys(STRING_OPERATORS);
9322
+ case "date":
9323
+ return Object.keys(DATE_OPERATORS);
9324
+ case "datetime":
9325
+ return Object.keys(DATETIME_OPERATORS);
9326
+ case "time":
9327
+ return Object.keys(TIME_OPERATORS);
9328
+ case "boolean":
9329
+ return Object.keys(BOOLEAN_OPERATORS);
9330
+ case "unknown":
9331
+ return [];
9332
+ }
9333
+ }
9334
+ function getSchemaForOperator(e, r) {
9335
+ if (!e || !r) return [];
9336
+ switch (numpyTypeToDataType(e)) {
9337
+ case "integer":
9338
+ return safeGet(NUMERIC_OPERATORS, r);
9339
+ case "number":
9340
+ return safeGet(NUMERIC_OPERATORS, r);
9341
+ case "string":
9342
+ return safeGet(STRING_OPERATORS, r);
9343
+ case "date":
9344
+ return safeGet(DATE_OPERATORS, r);
9345
+ case "datetime":
9346
+ return safeGet(DATETIME_OPERATORS, r);
9347
+ case "time":
9348
+ return safeGet(TIME_OPERATORS, r);
9349
+ case "boolean":
9350
+ return safeGet(BOOLEAN_OPERATORS, r);
9351
+ case "unknown":
9352
+ return [];
9353
+ }
9354
+ }
9355
+ function isConditionValueValid(e, r) {
9356
+ let c = [
9357
+ safeGet(BOOLEAN_OPERATORS, e),
9358
+ safeGet(DATE_OPERATORS, e),
9359
+ safeGet(TIME_OPERATORS, e),
9360
+ safeGet(DATETIME_OPERATORS, e),
9361
+ safeGet(NUMERIC_OPERATORS, e),
9362
+ safeGet(STRING_OPERATORS, e)
9363
+ ].flat();
9364
+ return c.length === 0 ? true : c.some((e2) => e2.safeParse(r).success);
9365
+ }
9366
+ var safeGet = (e, r) => e[r] ? e[r] : [];
9367
+ const columnToFieldTypesSchema = array(tuple([
9368
+ string$1(),
9369
+ tuple([
9370
+ _enum(DATA_TYPES).catch("unknown"),
9371
+ string()
9372
+ ])
9373
+ ])), column_id = string().min(1, "Required").or(number()).transform((e) => e).describe(FieldOptions.of({
9374
+ label: "Column",
9375
+ special: "column_id"
9376
+ })), column_id_array = array(column_id.describe(FieldOptions.of({
9377
+ special: "column_id"
9378
+ }))).min(1, "At least one column is required").default([]).describe(FieldOptions.of({
9379
+ label: "Columns",
9380
+ minLength: 1
9381
+ }));
9382
+ var ColumnConversionTransformSchema = object({
9383
+ type: literal("column_conversion"),
9384
+ column_id,
9385
+ data_type: _enum(NUMPY_DTYPES).describe(FieldOptions.of({
9386
+ label: "Data type (numpy)"
9387
+ })).default("bool"),
9388
+ errors: _enum([
9389
+ "ignore",
9390
+ "raise"
9391
+ ]).default("ignore").describe(FieldOptions.of({
9392
+ label: "Handle errors",
9393
+ special: "radio_group"
9394
+ }))
9395
+ }).describe(FieldOptions.of({})), RenameColumnTransformSchema = object({
9396
+ type: literal("rename_column"),
9397
+ column_id,
9398
+ new_column_id: string().min(1, "Required").transform((e) => e).describe(FieldOptions.of({
9399
+ label: "New column name",
9400
+ minLength: 1
9401
+ }))
9402
+ }), SortColumnTransformSchema = object({
9403
+ type: literal("sort_column"),
9404
+ column_id,
9405
+ ascending: boolean().describe(FieldOptions.of({
9406
+ label: "Ascending"
9407
+ })).default(true),
9408
+ na_position: _enum([
9409
+ "first",
9410
+ "last"
9411
+ ]).describe(FieldOptions.of({
9412
+ label: "N/A position",
9413
+ special: "radio_group"
9414
+ })).default("last")
9415
+ });
9416
+ const FilterConditionSchema = object({
9417
+ column_id,
9418
+ operator: _enum(Object.keys(ALL_OPERATORS)).describe(FieldOptions.of({
9419
+ label: " "
9420
+ })),
9421
+ type: literal("condition").default("condition"),
9422
+ value: any().optional().describe(FieldOptions.of({
9423
+ label: "Value"
9424
+ })),
9425
+ negate: boolean().default(false)
9426
+ }).describe(FieldOptions.of({
9427
+ direction: "row",
9428
+ special: "column_filter"
9429
+ })), FilterGroupSchema = lazy$2(() => object({
9430
+ type: literal("group").default("group"),
9431
+ operator: _enum([
9432
+ "and",
9433
+ "or"
9434
+ ]).default("and"),
9435
+ children: array(union([
9436
+ FilterConditionSchema,
9437
+ FilterGroupSchema
9438
+ ])).default([]),
9439
+ negate: boolean().default(false)
9440
+ }));
9441
+ var FilterRowsTransformSchema = object({
9442
+ type: literal("filter_rows"),
9443
+ operation: _enum([
9444
+ "keep_rows",
9445
+ "remove_rows"
9446
+ ]).default("keep_rows").describe(FieldOptions.of({
9447
+ special: "radio_group"
9448
+ })),
9449
+ where: array(FilterConditionSchema).min(1).describe(FieldOptions.of({
9450
+ label: "Value",
9451
+ minLength: 1
9452
+ })).default(() => [
9453
+ {
9454
+ column_id: "",
9455
+ operator: "==",
9456
+ value: "",
9457
+ type: "condition",
9458
+ negate: false
9459
+ }
9460
+ ]).transform((e) => ({
9461
+ type: "group",
9462
+ operator: "and",
9463
+ children: e.filter((e2) => isConditionValueValid(e2.operator, e2.value)),
9464
+ negate: false
9465
+ }))
9466
+ }), GroupByTransformSchema = object({
9467
+ type: literal("group_by"),
9468
+ column_ids: array(column_id.describe(FieldOptions.of({
9469
+ special: "column_id"
9470
+ }))).default([]).describe(FieldOptions.of({
9471
+ label: "Group by columns",
9472
+ minLength: 1
9473
+ })),
9474
+ aggregation_column_ids: array(column_id.describe(FieldOptions.of({
9475
+ special: "column_id"
9476
+ }))).default([]).describe(FieldOptions.of({
9477
+ label: "Aggregate on columns"
9478
+ })),
9479
+ aggregation: _enum(AGGREGATION_FNS$1).default("count").describe(FieldOptions.of({
9480
+ label: "Aggregation"
9481
+ })),
9482
+ drop_na: boolean().default(false).describe(FieldOptions.of({
9483
+ label: "Drop N/A"
9484
+ }))
9485
+ }).describe(FieldOptions.of({})), AggregateTransformSchema = object({
9486
+ type: literal("aggregate"),
9487
+ column_ids: column_id_array,
9488
+ aggregations: array(_enum(AGGREGATION_FNS$1)).min(1, "At least one aggregation is required").default([
9489
+ "count"
9490
+ ]).describe(FieldOptions.of({
9491
+ label: "Aggregations",
9492
+ minLength: 1
9493
+ }))
9494
+ }).describe(FieldOptions.of({
9495
+ direction: "row"
9496
+ }));
9497
+ const TransformTypeSchema = union([
9498
+ FilterRowsTransformSchema,
9499
+ object({
9500
+ type: literal("select_columns"),
9501
+ column_ids: column_id_array
9502
+ }),
9503
+ RenameColumnTransformSchema,
9504
+ ColumnConversionTransformSchema,
9505
+ SortColumnTransformSchema,
9506
+ GroupByTransformSchema,
9507
+ AggregateTransformSchema,
9508
+ object({
9509
+ type: literal("sample_rows"),
9510
+ n: number().positive().describe(FieldOptions.of({
9511
+ label: "Number of rows"
9512
+ })),
9513
+ seed: number().default(() => randomNumber()).describe(FieldOptions.of({
9514
+ label: "Re-sample",
9515
+ special: "random_number_button"
9516
+ })),
9517
+ replace: boolean().default(false).describe(FieldOptions.of({
9518
+ label: "Sample with replacement"
9519
+ }))
9520
+ }),
9521
+ object({
9522
+ type: literal("shuffle_rows"),
9523
+ seed: number().default(() => randomNumber()).describe(FieldOptions.of({
9524
+ label: "Re-shuffle",
9525
+ special: "random_number_button"
9526
+ }))
9527
+ }),
9528
+ object({
9529
+ type: literal("explode_columns"),
9530
+ column_ids: column_id_array
9531
+ }),
9532
+ object({
9533
+ type: literal("expand_dict"),
9534
+ column_id
9535
+ }),
9536
+ object({
9537
+ type: literal("unique"),
9538
+ column_ids: column_id_array,
9539
+ keep: _enum([
9540
+ "first",
9541
+ "last",
9542
+ "none",
9543
+ "any"
9544
+ ]).default("first").describe(FieldOptions.of({
9545
+ label: "Keep"
9546
+ }))
9547
+ }).describe(FieldOptions.of({
9548
+ direction: "row"
9549
+ })),
9550
+ object({
9551
+ type: literal("pivot"),
9552
+ column_ids: column_id_array,
9553
+ index_column_ids: array(column_id.describe(FieldOptions.of({
9554
+ special: "column_id"
9555
+ }))).default([]).describe(FieldOptions.of({
9556
+ label: "Rows"
9557
+ })),
9558
+ value_column_ids: array(column_id.describe(FieldOptions.of({
9559
+ special: "column_id"
9560
+ }))).default([]).describe(FieldOptions.of({
9561
+ label: "Values",
9562
+ minLength: 1
9563
+ })),
9564
+ aggregation: _enum(AGGREGATION_FNS$1).default("sum").describe(FieldOptions.of({
9565
+ label: "Aggregation"
9566
+ }))
9567
+ }).describe(FieldOptions.of({}))
9568
+ ]), TransformationsSchema = object({
9569
+ transforms: array(TransformTypeSchema)
9570
+ });
9571
+ var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-CyTNN635.js").then(async (m) => {
9170
9572
  await m.__tla;
9171
9573
  return m;
9172
9574
  }));
@@ -9187,13 +9589,7 @@ let __tla = Promise.all([
9187
9589
  string(),
9188
9590
  array(object({}).passthrough())
9189
9591
  ]),
9190
- fieldTypes: array(tuple([
9191
- string$1(),
9192
- tuple([
9193
- _enum(DATA_TYPES),
9194
- string()
9195
- ])
9196
- ])).nullish(),
9592
+ fieldTypes: columnToFieldTypesSchema.nullish(),
9197
9593
  editableColumns: union([
9198
9594
  array(string()),
9199
9595
  literal("all")
@@ -10132,7 +10528,7 @@ let __tla = Promise.all([
10132
10528
  let m2 = get(l, e2);
10133
10529
  if (m2) {
10134
10530
  let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
10135
- isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : Z(e2, l2), f.mount && w();
10531
+ isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : ZW(e2, l2), f.mount && w();
10136
10532
  }
10137
10533
  }, I = (e2, d2, f2, p2, m2) => {
10138
10534
  let h2 = false, v2 = false, y2 = {
@@ -10212,7 +10608,7 @@ let __tla = Promise.all([
10212
10608
  ...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
10213
10609
  [e2]: r2
10214
10610
  } : r2
10215
- }, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), Z = (e2, r2, c2 = {}) => {
10611
+ }, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), ZW = (e2, r2, c2 = {}) => {
10216
10612
  let u2 = get(l, e2), f2 = r2;
10217
10613
  if (u2) {
10218
10614
  let c3 = u2._f;
@@ -10226,10 +10622,10 @@ let __tla = Promise.all([
10226
10622
  })));
10227
10623
  }
10228
10624
  (c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && tG(e2);
10229
- }, ZW = (e2, r2, c2) => {
10625
+ }, Z = (e2, r2, c2) => {
10230
10626
  for (let u2 in r2) {
10231
10627
  let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
10232
- (p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? ZW(f2, d2, c2) : Z(f2, d2, c2);
10628
+ (p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : ZW(f2, d2, c2);
10233
10629
  }
10234
10630
  }, QW = (e2, r2, m2 = {}) => {
10235
10631
  let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
@@ -10242,7 +10638,7 @@ let __tla = Promise.all([
10242
10638
  name: e2,
10243
10639
  dirtyFields: getDirtyFields(u, d),
10244
10640
  isDirty: W(e2, y2)
10245
- })) : h2 && !h2._f && !isNullOrUndefined(y2) ? ZW(e2, y2, m2) : Z(e2, y2, m2), isWatched(e2, p) && _.state.next({
10641
+ })) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : ZW(e2, y2, m2), isWatched(e2, p) && _.state.next({
10246
10642
  ...c
10247
10643
  }), _.values.next({
10248
10644
  name: f.mount ? e2 : void 0,
@@ -12547,7 +12943,7 @@ ${c}
12547
12943
  background: "var(--cm-background)",
12548
12944
  foreground: "#abb2bf",
12549
12945
  caret: "#528bff",
12550
- selection: "#3E4451",
12946
+ selection: "var(--cm-selection-background)",
12551
12947
  lineHighlight: "#2c313c",
12552
12948
  gutterBackground: "var(--color-background)",
12553
12949
  gutterForeground: "var(--gray-10)"
@@ -12629,15 +13025,16 @@ ${c}
12629
13025
  ]
12630
13026
  }),
12631
13027
  EditorView.theme({
13028
+ "&": {
13029
+ "--cm-selection-background": "var(--cm-selection-background-dark)"
13030
+ },
12632
13031
  ".mo-cm-reactive-reference": {
12633
13032
  fontWeight: "400",
12634
- color: "#2a7aa5",
12635
- borderBottom: "2px solid #bad3de"
13033
+ color: "var(--cm-reactive-reference-color-dark)",
13034
+ borderBottom: "2px solid var(--cm-reactive-reference-border-color)"
12636
13035
  },
12637
13036
  ".mo-cm-reactive-reference-hover": {
12638
- cursor: "pointer",
12639
- borderBottomWidth: "3px",
12640
- borderBottomColor: "#4a90a5"
13037
+ cursor: "pointer"
12641
13038
  }
12642
13039
  })
12643
13040
  ], lightTheme = [
@@ -12647,7 +13044,7 @@ ${c}
12647
13044
  background: "#ffffff",
12648
13045
  foreground: "#000000",
12649
13046
  caret: "#000000",
12650
- selection: "#d7d4f0",
13047
+ selection: "var(--cm-selection-background)",
12651
13048
  lineHighlight: "#cceeff44",
12652
13049
  gutterBackground: "var(--color-background)",
12653
13050
  gutterForeground: "var(--gray-10)"
@@ -12729,14 +13126,16 @@ ${c}
12729
13126
  ]
12730
13127
  }),
12731
13128
  EditorView.theme({
13129
+ "&": {
13130
+ "--cm-selection-background": "var(--cm-selection-background-light)"
13131
+ },
12732
13132
  ".mo-cm-reactive-reference": {
12733
13133
  fontWeight: "400",
12734
- color: "#005f87",
12735
- borderBottom: "2px solid #bad3de"
13134
+ color: "var(--cm-reactive-reference-color-light)",
13135
+ borderBottom: "2px solid var(--cm-reactive-reference-border-color)"
12736
13136
  },
12737
13137
  ".mo-cm-reactive-reference-hover": {
12738
- cursor: "pointer",
12739
- borderBottomWidth: "3px"
13138
+ cursor: "pointer"
12740
13139
  }
12741
13140
  })
12742
13141
  ];
@@ -13447,7 +13846,7 @@ ${c}
13447
13846
  render: h
13448
13847
  }), r[5] = c, r[6] = m.control, r[7] = h, r[8] = g) : g = r[8], g;
13449
13848
  }, AggregationSelect = (e) => {
13450
- let r = (0, import_compiler_runtime$68.c)(12), { fieldName: c, selectedDataType: l, binFieldName: u, defaultAggregation: d } = e, f = useFormContext(), p = l === "string" ? STRING_AGGREGATION_FNS : AGGREGATION_FNS$1, { chartType: m } = useChartFormContext(), h = m !== ChartType.HEATMAP, g = _temp6$1, _ = _temp7, v;
13849
+ let r = (0, import_compiler_runtime$68.c)(12), { fieldName: c, selectedDataType: l, binFieldName: u, defaultAggregation: d } = e, f = useFormContext(), p = l === "string" ? STRING_AGGREGATION_FNS : AGGREGATION_FNS, { chartType: m } = useChartFormContext(), h = m !== ChartType.HEATMAP, g = _temp6$1, _ = _temp7, v;
13451
13850
  r[0] !== u || r[1] !== f ? (v = (e2) => {
13452
13851
  let { value: r2, previousValue: c2, onChange: l2 } = e2;
13453
13852
  r2 === "bin" ? f.setValue(u, true) : c2 === "bin" && f.setValue(u, false), l2(r2);
@@ -14430,7 +14829,7 @@ ${c}
14430
14829
  type: _enum([
14431
14830
  ...DATA_TYPES,
14432
14831
  ""
14433
- ]).optional(),
14832
+ ]).catch("unknown").optional(),
14434
14833
  selectedDataType: _enum([
14435
14834
  ...SELECTABLE_DATA_TYPES,
14436
14835
  ""
@@ -14439,7 +14838,7 @@ ${c}
14439
14838
  timeUnit: _enum(TIME_UNITS).optional()
14440
14839
  });
14441
14840
  const AxisSchema = BaseColumnSchema.extend({
14442
- aggregate: _enum(AGGREGATION_FNS$1).default(NONE_VALUE).optional()
14841
+ aggregate: _enum(AGGREGATION_FNS).default(NONE_VALUE).optional()
14443
14842
  }), RowFacet = BaseColumnSchema.extend({
14444
14843
  linkYAxis: boolean().default(true),
14445
14844
  binned: boolean().default(true),
@@ -14489,7 +14888,7 @@ ${c}
14489
14888
  auto: boolean(),
14490
14889
  fields: array(object({
14491
14890
  field: string(),
14492
- type: _enum(DATA_TYPES)
14891
+ type: _enum(DATA_TYPES).catch("unknown")
14493
14892
  }))
14494
14893
  }).default({
14495
14894
  auto: true,
@@ -15604,409 +16003,6 @@ ${c}
15604
16003
  e();
15605
16004
  }, c[0] = e, c[1] = u), (0, import_react.useEffect)(u, r);
15606
16005
  }
15607
- const FieldOptions = {
15608
- of(e) {
15609
- return JSON.stringify(e);
15610
- },
15611
- parse(e) {
15612
- if (!e) return {};
15613
- try {
15614
- return JSON.parse(e);
15615
- } catch {
15616
- return {
15617
- label: e
15618
- };
15619
- }
15620
- }
15621
- };
15622
- function randomNumber() {
15623
- return Math.floor(Math.random() * 1e5);
15624
- }
15625
- const NUMPY_DTYPES = [
15626
- "int8",
15627
- "int16",
15628
- "int32",
15629
- "int64",
15630
- "uint8",
15631
- "uint16",
15632
- "uint32",
15633
- "uint64",
15634
- "float16",
15635
- "float32",
15636
- "float64",
15637
- "complex64",
15638
- "complex128",
15639
- "bool",
15640
- "object",
15641
- "str",
15642
- "unicode",
15643
- "datetime64",
15644
- "timedelta64"
15645
- ], AGGREGATION_FNS = [
15646
- "count",
15647
- "sum",
15648
- "mean",
15649
- "median",
15650
- "min",
15651
- "max"
15652
- ];
15653
- var Schema = {
15654
- number: number$1().describe(FieldOptions.of({
15655
- label: "Value"
15656
- })),
15657
- string: string().min(1).describe(FieldOptions.of({
15658
- label: "Value"
15659
- })),
15660
- stringColumnValues: string().min(1).describe(FieldOptions.of({
15661
- label: "Value",
15662
- special: "column_values"
15663
- })),
15664
- stringMultiColumnValues: array(string()).min(1).describe(FieldOptions.of({
15665
- label: "Value",
15666
- special: "column_values"
15667
- })),
15668
- date: date().describe(FieldOptions.of({
15669
- label: "Value",
15670
- special: "date"
15671
- })),
15672
- datetime: date().describe(FieldOptions.of({
15673
- label: "Value",
15674
- special: "datetime"
15675
- })),
15676
- time: string().regex(/^\d{2}:\d{2}(:\d{2})?$/).describe(FieldOptions.of({
15677
- label: "Value",
15678
- special: "time"
15679
- }))
15680
- };
15681
- const BOOLEAN_OPERATORS = {
15682
- is_true: [],
15683
- is_false: []
15684
- };
15685
- var createComparisonOperators = (e) => ({
15686
- "==": [
15687
- e
15688
- ],
15689
- "!=": [
15690
- e
15691
- ],
15692
- ">": [
15693
- e
15694
- ],
15695
- ">=": [
15696
- e
15697
- ],
15698
- "<": [
15699
- e
15700
- ],
15701
- "<=": [
15702
- e
15703
- ],
15704
- between: [
15705
- object({
15706
- min: e,
15707
- max: e
15708
- })
15709
- ],
15710
- is_null: [],
15711
- is_not_null: []
15712
- });
15713
- const NUMERIC_OPERATORS = createComparisonOperators(Schema.number), DATE_OPERATORS = createComparisonOperators(Schema.date), TIME_OPERATORS = createComparisonOperators(Schema.time), DATETIME_OPERATORS = createComparisonOperators(Schema.datetime), STRING_OPERATORS = {
15714
- equals: [
15715
- Schema.stringColumnValues
15716
- ],
15717
- does_not_equal: [
15718
- Schema.stringColumnValues
15719
- ],
15720
- contains: [
15721
- Schema.string
15722
- ],
15723
- regex: [
15724
- Schema.string
15725
- ],
15726
- starts_with: [
15727
- Schema.string
15728
- ],
15729
- ends_with: [
15730
- Schema.string
15731
- ],
15732
- in: [
15733
- Schema.stringMultiColumnValues
15734
- ],
15735
- not_in: [
15736
- Schema.stringMultiColumnValues
15737
- ],
15738
- is_empty: [],
15739
- is_null: [],
15740
- is_not_null: []
15741
- }, ALL_OPERATORS = {
15742
- ...BOOLEAN_OPERATORS,
15743
- ...NUMERIC_OPERATORS,
15744
- ...DATE_OPERATORS,
15745
- ...TIME_OPERATORS,
15746
- ...DATETIME_OPERATORS,
15747
- ...STRING_OPERATORS
15748
- };
15749
- function numpyTypeToDataType(e) {
15750
- return e ? e.startsWith("int") ? "integer" : e.startsWith("float") || e.startsWith("uint") || e.startsWith("number") || e.startsWith("complex") ? "number" : e.startsWith("string") || e.startsWith("object") || e.startsWith("utf8") ? "string" : e.startsWith("datetime") ? "datetime" : e.startsWith("time") ? "time" : e.startsWith("date") ? "date" : e.startsWith("bool") ? "boolean" : "unknown" : "unknown";
15751
- }
15752
- function getOperatorForDtype(e) {
15753
- if (!e) return [];
15754
- switch (numpyTypeToDataType(e)) {
15755
- case "integer":
15756
- return Object.keys(NUMERIC_OPERATORS);
15757
- case "number":
15758
- return Object.keys(NUMERIC_OPERATORS);
15759
- case "string":
15760
- return Object.keys(STRING_OPERATORS);
15761
- case "date":
15762
- return Object.keys(DATE_OPERATORS);
15763
- case "datetime":
15764
- return Object.keys(DATETIME_OPERATORS);
15765
- case "time":
15766
- return Object.keys(TIME_OPERATORS);
15767
- case "boolean":
15768
- return Object.keys(BOOLEAN_OPERATORS);
15769
- case "unknown":
15770
- return [];
15771
- }
15772
- }
15773
- function getSchemaForOperator(e, r) {
15774
- if (!e || !r) return [];
15775
- switch (numpyTypeToDataType(e)) {
15776
- case "integer":
15777
- return safeGet(NUMERIC_OPERATORS, r);
15778
- case "number":
15779
- return safeGet(NUMERIC_OPERATORS, r);
15780
- case "string":
15781
- return safeGet(STRING_OPERATORS, r);
15782
- case "date":
15783
- return safeGet(DATE_OPERATORS, r);
15784
- case "datetime":
15785
- return safeGet(DATETIME_OPERATORS, r);
15786
- case "time":
15787
- return safeGet(TIME_OPERATORS, r);
15788
- case "boolean":
15789
- return safeGet(BOOLEAN_OPERATORS, r);
15790
- case "unknown":
15791
- return [];
15792
- }
15793
- }
15794
- function isConditionValueValid(e, r) {
15795
- let c = [
15796
- safeGet(BOOLEAN_OPERATORS, e),
15797
- safeGet(DATE_OPERATORS, e),
15798
- safeGet(TIME_OPERATORS, e),
15799
- safeGet(DATETIME_OPERATORS, e),
15800
- safeGet(NUMERIC_OPERATORS, e),
15801
- safeGet(STRING_OPERATORS, e)
15802
- ].flat();
15803
- return c.length === 0 ? true : c.some((e2) => e2.safeParse(r).success);
15804
- }
15805
- var safeGet = (e, r) => e[r] ? e[r] : [];
15806
- const columnToFieldTypesSchema = array(tuple([
15807
- string$1(),
15808
- tuple([
15809
- _enum(DATA_TYPES),
15810
- string()
15811
- ])
15812
- ])), column_id = string().min(1, "Required").or(number()).transform((e) => e).describe(FieldOptions.of({
15813
- label: "Column",
15814
- special: "column_id"
15815
- })), column_id_array = array(column_id.describe(FieldOptions.of({
15816
- special: "column_id"
15817
- }))).min(1, "At least one column is required").default([]).describe(FieldOptions.of({
15818
- label: "Columns",
15819
- minLength: 1
15820
- }));
15821
- var ColumnConversionTransformSchema = object({
15822
- type: literal("column_conversion"),
15823
- column_id,
15824
- data_type: _enum(NUMPY_DTYPES).describe(FieldOptions.of({
15825
- label: "Data type (numpy)"
15826
- })).default("bool"),
15827
- errors: _enum([
15828
- "ignore",
15829
- "raise"
15830
- ]).default("ignore").describe(FieldOptions.of({
15831
- label: "Handle errors",
15832
- special: "radio_group"
15833
- }))
15834
- }).describe(FieldOptions.of({})), RenameColumnTransformSchema = object({
15835
- type: literal("rename_column"),
15836
- column_id,
15837
- new_column_id: string().min(1, "Required").transform((e) => e).describe(FieldOptions.of({
15838
- label: "New column name",
15839
- minLength: 1
15840
- }))
15841
- }), SortColumnTransformSchema = object({
15842
- type: literal("sort_column"),
15843
- column_id,
15844
- ascending: boolean().describe(FieldOptions.of({
15845
- label: "Ascending"
15846
- })).default(true),
15847
- na_position: _enum([
15848
- "first",
15849
- "last"
15850
- ]).describe(FieldOptions.of({
15851
- label: "N/A position",
15852
- special: "radio_group"
15853
- })).default("last")
15854
- });
15855
- const FilterConditionSchema = object({
15856
- column_id,
15857
- operator: _enum(Object.keys(ALL_OPERATORS)).describe(FieldOptions.of({
15858
- label: " "
15859
- })),
15860
- type: literal("condition").default("condition"),
15861
- value: any().optional().describe(FieldOptions.of({
15862
- label: "Value"
15863
- })),
15864
- negate: boolean().default(false)
15865
- }).describe(FieldOptions.of({
15866
- direction: "row",
15867
- special: "column_filter"
15868
- })), FilterGroupSchema = lazy$2(() => object({
15869
- type: literal("group").default("group"),
15870
- operator: _enum([
15871
- "and",
15872
- "or"
15873
- ]).default("and"),
15874
- children: array(union([
15875
- FilterConditionSchema,
15876
- FilterGroupSchema
15877
- ])).default([]),
15878
- negate: boolean().default(false)
15879
- }));
15880
- var FilterRowsTransformSchema = object({
15881
- type: literal("filter_rows"),
15882
- operation: _enum([
15883
- "keep_rows",
15884
- "remove_rows"
15885
- ]).default("keep_rows").describe(FieldOptions.of({
15886
- special: "radio_group"
15887
- })),
15888
- where: array(FilterConditionSchema).min(1).describe(FieldOptions.of({
15889
- label: "Value",
15890
- minLength: 1
15891
- })).default(() => [
15892
- {
15893
- column_id: "",
15894
- operator: "==",
15895
- value: "",
15896
- type: "condition",
15897
- negate: false
15898
- }
15899
- ]).transform((e) => ({
15900
- type: "group",
15901
- operator: "and",
15902
- children: e.filter((e2) => isConditionValueValid(e2.operator, e2.value)),
15903
- negate: false
15904
- }))
15905
- }), GroupByTransformSchema = object({
15906
- type: literal("group_by"),
15907
- column_ids: array(column_id.describe(FieldOptions.of({
15908
- special: "column_id"
15909
- }))).default([]).describe(FieldOptions.of({
15910
- label: "Group by columns",
15911
- minLength: 1
15912
- })),
15913
- aggregation_column_ids: array(column_id.describe(FieldOptions.of({
15914
- special: "column_id"
15915
- }))).default([]).describe(FieldOptions.of({
15916
- label: "Aggregate on columns"
15917
- })),
15918
- aggregation: _enum(AGGREGATION_FNS).default("count").describe(FieldOptions.of({
15919
- label: "Aggregation"
15920
- })),
15921
- drop_na: boolean().default(false).describe(FieldOptions.of({
15922
- label: "Drop N/A"
15923
- }))
15924
- }).describe(FieldOptions.of({})), AggregateTransformSchema = object({
15925
- type: literal("aggregate"),
15926
- column_ids: column_id_array,
15927
- aggregations: array(_enum(AGGREGATION_FNS)).min(1, "At least one aggregation is required").default([
15928
- "count"
15929
- ]).describe(FieldOptions.of({
15930
- label: "Aggregations",
15931
- minLength: 1
15932
- }))
15933
- }).describe(FieldOptions.of({
15934
- direction: "row"
15935
- }));
15936
- const TransformTypeSchema = union([
15937
- FilterRowsTransformSchema,
15938
- object({
15939
- type: literal("select_columns"),
15940
- column_ids: column_id_array
15941
- }),
15942
- RenameColumnTransformSchema,
15943
- ColumnConversionTransformSchema,
15944
- SortColumnTransformSchema,
15945
- GroupByTransformSchema,
15946
- AggregateTransformSchema,
15947
- object({
15948
- type: literal("sample_rows"),
15949
- n: number().positive().describe(FieldOptions.of({
15950
- label: "Number of rows"
15951
- })),
15952
- seed: number().default(() => randomNumber()).describe(FieldOptions.of({
15953
- label: "Re-sample",
15954
- special: "random_number_button"
15955
- })),
15956
- replace: boolean().default(false).describe(FieldOptions.of({
15957
- label: "Sample with replacement"
15958
- }))
15959
- }),
15960
- object({
15961
- type: literal("shuffle_rows"),
15962
- seed: number().default(() => randomNumber()).describe(FieldOptions.of({
15963
- label: "Re-shuffle",
15964
- special: "random_number_button"
15965
- }))
15966
- }),
15967
- object({
15968
- type: literal("explode_columns"),
15969
- column_ids: column_id_array
15970
- }),
15971
- object({
15972
- type: literal("expand_dict"),
15973
- column_id
15974
- }),
15975
- object({
15976
- type: literal("unique"),
15977
- column_ids: column_id_array,
15978
- keep: _enum([
15979
- "first",
15980
- "last",
15981
- "none",
15982
- "any"
15983
- ]).default("first").describe(FieldOptions.of({
15984
- label: "Keep"
15985
- }))
15986
- }).describe(FieldOptions.of({
15987
- direction: "row"
15988
- })),
15989
- object({
15990
- type: literal("pivot"),
15991
- column_ids: column_id_array,
15992
- index_column_ids: array(column_id.describe(FieldOptions.of({
15993
- special: "column_id"
15994
- }))).default([]).describe(FieldOptions.of({
15995
- label: "Rows"
15996
- })),
15997
- value_column_ids: array(column_id.describe(FieldOptions.of({
15998
- special: "column_id"
15999
- }))).default([]).describe(FieldOptions.of({
16000
- label: "Values",
16001
- minLength: 1
16002
- })),
16003
- aggregation: _enum(AGGREGATION_FNS).default("sum").describe(FieldOptions.of({
16004
- label: "Aggregation"
16005
- }))
16006
- }).describe(FieldOptions.of({}))
16007
- ]), TransformationsSchema = object({
16008
- transforms: array(TransformTypeSchema)
16009
- });
16010
16006
  var import_compiler_runtime$57 = require_compiler_runtime(), maybeNumber = union([
16011
16007
  number(),
16012
16008
  nan(),
@@ -16321,11 +16317,11 @@ ${c}
16321
16317
  _.pageSize,
16322
16318
  _.pageIndex
16323
16319
  ], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = p, r[46] = B, r[47] = H) : H = r[47];
16324
- let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H), ZW = useAtomValue(downloadSizeLimitAtom), QW;
16325
- r[48] !== ZW || r[49] !== e ? (QW = async () => !ZW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = ZW, r[49] = e, r[50] = QW) : QW = r[50];
16320
+ let { data: W, error: G, isPending: q, isFetching: ZW } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), QW;
16321
+ r[48] !== Z || r[49] !== e ? (QW = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = QW) : QW = r[50];
16326
16322
  let $W = e.showDownload, eG = e.get_size_bytes, tG = e.lazy, nG = e.totalRows, rG = useDeepCompareMemoize(w), iG = useDeepCompareMemoize(p), aG;
16327
- r[51] !== ZW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== rG || r[58] !== iG ? (aG = [
16328
- ZW,
16323
+ r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== rG || r[58] !== iG ? (aG = [
16324
+ Z,
16329
16325
  $W,
16330
16326
  eG,
16331
16327
  tG,
@@ -16333,8 +16329,8 @@ ${c}
16333
16329
  y,
16334
16330
  rG,
16335
16331
  iG
16336
- ], r[51] = ZW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = rG, r[58] = iG, r[59] = aG) : aG = r[59];
16337
- let { data: oG, isPending: sG } = useAsyncData(QW, aG), cG = oG ?? null, lG = !!ZW && e.showDownload && sG, uG;
16332
+ ], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = rG, r[58] = iG, r[59] = aG) : aG = r[59];
16333
+ let { data: oG, isPending: sG } = useAsyncData(QW, aG), cG = oG ?? null, lG = !!Z && e.showDownload && sG, uG;
16338
16334
  r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (uG = async (e2) => ({
16339
16335
  rows: await loadTableData((await u({
16340
16336
  page_number: e2,
@@ -16409,7 +16405,7 @@ ${c}
16409
16405
  r[84] === O ? SG = r[85] : (SG = () => {
16410
16406
  j(!O);
16411
16407
  }, r[84] = O, r[85] = SG);
16412
- let CG = SG, wG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, TG = W == null ? void 0 : W.rawRows, EG = Z && !q, DG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, OG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, kG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, AG;
16408
+ let CG = SG, wG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, TG = W == null ? void 0 : W.rawRows, EG = ZW && !q, DG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, OG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, kG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, AG;
16413
16409
  r[86] !== l || r[87] !== _G || r[88] !== O || r[89] !== w || r[90] !== dG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== cG || r[95] !== lG || r[96] !== p || r[97] !== wG || r[98] !== TG || r[99] !== EG || r[100] !== DG || r[101] !== OG || r[102] !== kG || r[103] !== CG ? (AG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
16414
16410
  ...e,
16415
16411
  data: wG,
@@ -16457,7 +16453,7 @@ ${c}
16457
16453
  }), r[116] = xG, r[117] = MG, r[118] = NG) : NG = r[118], NG;
16458
16454
  });
16459
16455
  LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
16460
- var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: Z, setFilters: ZW, reloading: QW, freezeColumnsLeft: $W, freezeColumnsRight: eG, hiddenColumns: tG, textJustifyColumns: nG, wrappedColumns: rG, columnWidths: iG, headerTooltip: aG, totalColumns: oG, get_row_ids: sG, cellStyles: cG, hoverTemplate: lG, cellHoverTexts: uG, toggleDisplayHeader: dG, isChartBuilderOpen: fG, calculate_top_k_rows: pG, preview_column: mG, getRow: hG, cellId: gG, maxHeight: _G }) => {
16456
+ var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: ZW, setFilters: Z, reloading: QW, freezeColumnsLeft: $W, freezeColumnsRight: eG, hiddenColumns: tG, textJustifyColumns: nG, wrappedColumns: rG, columnWidths: iG, headerTooltip: aG, totalColumns: oG, get_row_ids: sG, cellStyles: cG, hoverTemplate: lG, cellHoverTexts: uG, toggleDisplayHeader: dG, isChartBuilderOpen: fG, calculate_top_k_rows: pG, preview_column: mG, getRow: hG, cellId: gG, maxHeight: _G }) => {
16461
16457
  let vG = (0, import_react.useId)(), { locale: yG } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [bG, xG] = (0, import_react.useState)(0), { isPanelOpen: SG, isAnyPanelOpen: CG, togglePanel: wG, panelType: TG, setPanelType: EG } = usePanelOwnership(vG, gG), DG = isStaticNotebook(), OG = (0, import_react.useMemo)(() => {
16462
16458
  if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
16463
16459
  let e2 = toFieldTypes(O);
@@ -16655,8 +16651,8 @@ ${c}
16655
16651
  searchQuery: G,
16656
16652
  onSearchQueryChange: q,
16657
16653
  showFilters: _,
16658
- filters: Z,
16659
- onFiltersChange: ZW,
16654
+ filters: ZW,
16655
+ onFiltersChange: Z,
16660
16656
  calculateTopKRows: pG,
16661
16657
  reloading: QW,
16662
16658
  onRowSelectionChange: HG,
@@ -17034,7 +17030,7 @@ ${c}
17034
17030
  fullWidth: p,
17035
17031
  children: T
17036
17032
  }), r[20] = p, r[21] = g, r[22] = c, r[23] = T, r[24] = E) : E = r[24], E;
17037
- }, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-f9vLjQiF.js"));
17033
+ }, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-BBZRR1-C.js"));
17038
17034
  const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
17039
17035
  label: string().nullish(),
17040
17036
  data: string()
@@ -18790,10 +18786,10 @@ ${c}
18790
18786
  ], r[2] = w, r[3] = T);
18791
18787
  let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
18792
18788
  r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
18793
- let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, Z] = (0, import_react.useState)(p || EMPTY), ZW = (0, import_react.useRef)(null), QW;
18789
+ let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, ZW] = (0, import_react.useState)(p || EMPTY), Z = (0, import_react.useRef)(null), QW;
18794
18790
  r[6] === f ? QW = r[7] : (QW = (e2) => {
18795
18791
  var _a5;
18796
- f && e2 !== "transform" && ((_a5 = ZW.current) == null ? void 0 : _a5.submit());
18792
+ f && e2 !== "transform" && ((_a5 = Z.current) == null ? void 0 : _a5.submit());
18797
18793
  }, r[6] = f, r[7] = QW);
18798
18794
  let $W = QW, eG = (0, import_react.useRef)(q), tG;
18799
18795
  r[8] === q ? tG = r[9] : (tG = () => {
@@ -18804,15 +18800,15 @@ ${c}
18804
18800
  let e2 = eG.current;
18805
18801
  (p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
18806
18802
  }, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = nG) : nG = r[12];
18807
- let rG = p == null ? void 0 : p.transforms.length, iG;
18808
- r[13] !== E || r[14] !== m || r[15] !== rG ? (iG = [
18803
+ let iG = p == null ? void 0 : p.transforms.length, aG;
18804
+ r[13] !== E || r[14] !== m || r[15] !== iG ? (aG = [
18809
18805
  E,
18810
- rG,
18806
+ iG,
18811
18807
  eG,
18812
18808
  m
18813
- ], r[13] = E, r[14] = m, r[15] = rG, r[16] = iG) : iG = r[16], (0, import_react.useEffect)(nG, iG);
18814
- let aG;
18815
- r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18809
+ ], r[13] = E, r[14] = m, r[15] = iG, r[16] = aG) : aG = r[16], (0, import_react.useEffect)(nG, aG);
18810
+ let oG;
18811
+ r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18816
18812
  value: "transform",
18817
18813
  className: "text-xs py-1",
18818
18814
  children: [
@@ -18821,9 +18817,9 @@ ${c}
18821
18817
  }),
18822
18818
  "Transform"
18823
18819
  ]
18824
- }), r[17] = aG) : aG = r[17];
18825
- let oG;
18826
- r[18] === H ? oG = r[19] : (oG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18820
+ }), r[17] = oG) : oG = r[17];
18821
+ let sG;
18822
+ r[18] === H ? sG = r[19] : (sG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18827
18823
  value: "python-code",
18828
18824
  className: "text-xs py-1",
18829
18825
  children: [
@@ -18832,9 +18828,9 @@ ${c}
18832
18828
  }),
18833
18829
  "Python Code"
18834
18830
  ]
18835
- }), r[18] = H, r[19] = oG);
18836
- let sG;
18837
- r[20] === W ? sG = r[21] : (sG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18831
+ }), r[18] = H, r[19] = sG);
18832
+ let cG;
18833
+ r[20] === W ? cG = r[21] : (cG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18838
18834
  value: "sql-code",
18839
18835
  className: "text-xs py-1",
18840
18836
  children: [
@@ -18843,54 +18839,54 @@ ${c}
18843
18839
  }),
18844
18840
  "SQL Code"
18845
18841
  ]
18846
- }), r[20] = W, r[21] = sG);
18847
- let cG;
18848
- r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cG = (0, import_jsx_runtime.jsx)("div", {
18849
- className: "grow"
18850
- }), r[22] = cG) : cG = r[22];
18842
+ }), r[20] = W, r[21] = cG);
18851
18843
  let lG;
18852
- r[23] !== oG || r[24] !== sG ? (lG = (0, import_jsx_runtime.jsxs)(TabsList, {
18844
+ r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lG = (0, import_jsx_runtime.jsx)("div", {
18845
+ className: "grow"
18846
+ }), r[22] = lG) : lG = r[22];
18847
+ let uG;
18848
+ r[23] !== sG || r[24] !== cG ? (uG = (0, import_jsx_runtime.jsxs)(TabsList, {
18853
18849
  className: "h-8",
18854
18850
  children: [
18855
- aG,
18856
18851
  oG,
18857
18852
  sG,
18858
- cG
18853
+ cG,
18854
+ lG
18859
18855
  ]
18860
- }), r[23] = oG, r[24] = sG, r[25] = lG) : lG = r[25];
18861
- let uG;
18862
- r[26] === j ? uG = r[27] : (uG = j && (0, import_jsx_runtime.jsx)(Spinner, {
18863
- size: "small"
18864
- }), r[26] = j, r[27] = uG);
18856
+ }), r[23] = sG, r[24] = cG, r[25] = uG) : uG = r[25];
18865
18857
  let dG;
18866
- r[28] !== lG || r[29] !== uG ? (dG = (0, import_jsx_runtime.jsxs)("div", {
18858
+ r[26] === j ? dG = r[27] : (dG = j && (0, import_jsx_runtime.jsx)(Spinner, {
18859
+ size: "small"
18860
+ }), r[26] = j, r[27] = dG);
18861
+ let fG;
18862
+ r[28] !== uG || r[29] !== dG ? (fG = (0, import_jsx_runtime.jsxs)("div", {
18867
18863
  className: "flex items-center gap-2",
18868
18864
  children: [
18869
- lG,
18870
- uG
18865
+ uG,
18866
+ dG
18871
18867
  ]
18872
- }), r[28] = lG, r[29] = uG, r[30] = dG) : dG = r[30];
18873
- let fG;
18874
- r[31] !== m || r[32] !== p ? (fG = (e2) => {
18875
- dequal(e2, p) || (m(e2), Z(e2));
18876
- }, r[31] = m, r[32] = p, r[33] = fG) : fG = r[33];
18868
+ }), r[28] = uG, r[29] = dG, r[30] = fG) : fG = r[30];
18877
18869
  let pG;
18878
- r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== fG ? (pG = (0, import_jsx_runtime.jsx)(TabsContent, {
18870
+ r[31] !== m || r[32] !== p ? (pG = (e2) => {
18871
+ dequal(e2, p) || (m(e2), ZW(e2));
18872
+ }, r[31] = m, r[32] = p, r[33] = pG) : pG = r[33];
18873
+ let mG;
18874
+ r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== pG ? (mG = (0, import_jsx_runtime.jsx)(TabsContent, {
18879
18875
  value: "transform",
18880
18876
  className: "mt-1 border rounded-t overflow-hidden",
18881
18877
  children: (0, import_jsx_runtime.jsx)(TransformPanel, {
18882
- ref: ZW,
18878
+ ref: Z,
18883
18879
  initialValue: q,
18884
18880
  columns: c,
18885
- onChange: fG,
18886
- onInvalidChange: Z,
18881
+ onChange: pG,
18882
+ onInvalidChange: ZW,
18887
18883
  getColumnValues: g,
18888
18884
  columnTypesPerStep: B,
18889
18885
  lazy: f
18890
18886
  })
18891
- }), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = fG, r[40] = pG) : pG = r[40];
18892
- let mG;
18893
- r[41] === H ? mG = r[42] : (mG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
18887
+ }), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = pG, r[40] = mG) : mG = r[40];
18888
+ let hG;
18889
+ r[41] === H ? hG = r[42] : (hG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
18894
18890
  value: "python-code",
18895
18891
  className: "mt-1 border rounded-t overflow-hidden",
18896
18892
  children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
@@ -18899,9 +18895,9 @@ ${c}
18899
18895
  code: H,
18900
18896
  language: "python"
18901
18897
  })
18902
- }), r[41] = H, r[42] = mG);
18903
- let hG;
18904
- r[43] === W ? hG = r[44] : (hG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
18898
+ }), r[41] = H, r[42] = hG);
18899
+ let gG;
18900
+ r[43] === W ? gG = r[44] : (gG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
18905
18901
  value: "sql-code",
18906
18902
  className: "mt-1 border rounded-t overflow-hidden",
18907
18903
  children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
@@ -18910,35 +18906,35 @@ ${c}
18910
18906
  code: W,
18911
18907
  language: "sql"
18912
18908
  })
18913
- }), r[43] = W, r[44] = hG);
18914
- let gG;
18915
- r[45] !== $W || r[46] !== dG || r[47] !== pG || r[48] !== mG || r[49] !== hG ? (gG = (0, import_jsx_runtime.jsxs)(Tabs, {
18909
+ }), r[43] = W, r[44] = gG);
18910
+ let _G;
18911
+ r[45] !== $W || r[46] !== fG || r[47] !== mG || r[48] !== hG || r[49] !== gG ? (_G = (0, import_jsx_runtime.jsxs)(Tabs, {
18916
18912
  defaultValue: "transform",
18917
18913
  onValueChange: $W,
18918
18914
  children: [
18919
- dG,
18920
- pG,
18915
+ fG,
18921
18916
  mG,
18922
- hG
18917
+ hG,
18918
+ gG
18923
18919
  ]
18924
- }), r[45] = $W, r[46] = dG, r[47] = pG, r[48] = mG, r[49] = hG, r[50] = gG) : gG = r[50];
18925
- let _G;
18926
- r[51] === O ? _G = r[52] : (_G = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
18920
+ }), r[45] = $W, r[46] = fG, r[47] = mG, r[48] = hG, r[49] = gG, r[50] = _G) : _G = r[50];
18921
+ let vG;
18922
+ r[51] === O ? vG = r[52] : (vG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
18927
18923
  error: O
18928
- }), r[51] = O, r[52] = _G);
18929
- let vG = I || "", yG = L ?? 0, bG = G ?? 0, xG = R || Arrays.EMPTY, SG = L && L > 5 || false, CG;
18930
- r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== vG || r[61] !== yG || r[62] !== bG || r[63] !== xG || r[64] !== SG ? (CG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
18924
+ }), r[51] = O, r[52] = vG);
18925
+ let yG = I || "", bG = L ?? 0, xG = G ?? 0, SG = R || Arrays.EMPTY, CG = L && L > 5 || false, wG;
18926
+ r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== yG || r[61] !== bG || r[62] !== xG || r[63] !== SG || r[64] !== CG ? (wG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
18931
18927
  label: null,
18932
18928
  className: "rounded-b border-x border-b",
18933
- data: vG,
18929
+ data: yG,
18934
18930
  hasStableRowId: false,
18935
- totalRows: yG,
18936
- totalColumns: bG,
18931
+ totalRows: bG,
18932
+ totalColumns: xG,
18937
18933
  maxColumns: "all",
18938
18934
  pageSize: l,
18939
18935
  pagination: true,
18940
18936
  fieldTypes: z,
18941
- rowHeaders: xG,
18937
+ rowHeaders: SG,
18942
18938
  showDownload: u,
18943
18939
  download_as: v,
18944
18940
  get_size_bytes: y,
@@ -18948,7 +18944,7 @@ ${c}
18948
18944
  showColumnSummaries: false,
18949
18945
  showDataTypes: true,
18950
18946
  get_column_summaries: getColumnSummaries,
18951
- showPageSizeSelector: SG,
18947
+ showPageSizeSelector: CG,
18952
18948
  showColumnExplorer: false,
18953
18949
  showRowExplorer: true,
18954
18950
  showChartBuilder: false,
@@ -18957,15 +18953,15 @@ ${c}
18957
18953
  selection: null,
18958
18954
  lazy: false,
18959
18955
  host: b
18960
- }), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = vG, r[61] = yG, r[62] = bG, r[63] = xG, r[64] = SG, r[65] = CG) : CG = r[65];
18961
- let wG;
18962
- return r[66] !== gG || r[67] !== _G || r[68] !== CG ? (wG = (0, import_jsx_runtime.jsxs)("div", {
18956
+ }), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = yG, r[61] = bG, r[62] = xG, r[63] = SG, r[64] = CG, r[65] = wG) : wG = r[65];
18957
+ let TG;
18958
+ return r[66] !== _G || r[67] !== vG || r[68] !== wG ? (TG = (0, import_jsx_runtime.jsxs)("div", {
18963
18959
  children: [
18964
- gG,
18965
18960
  _G,
18966
- CG
18961
+ vG,
18962
+ wG
18967
18963
  ]
18968
- }), r[66] = gG, r[67] = _G, r[68] = CG, r[69] = wG) : wG = r[69], wG;
18964
+ }), r[66] = _G, r[67] = vG, r[68] = wG, r[69] = TG) : TG = r[69], TG;
18969
18965
  });
18970
18966
  DataFrameComponent.displayName = "DataFrameComponent";
18971
18967
  function getColumnSummaries() {
@@ -19156,7 +19152,7 @@ ${c}
19156
19152
  }, [
19157
19153
  H
19158
19154
  ]);
19159
- let q = (R == null ? void 0 : R.files) ?? [], Z = new Set(e.map((e2) => e2.path)), ZW = l === "directory" || l === "all", QW = l === "file" || l === "all", $W = q.filter((e2) => ZW && e2.is_directory || QW && !e2.is_directory), tG = $W.length > 0 && $W.every((e2) => Z.has(e2.path));
19155
+ let q = (R == null ? void 0 : R.files) ?? [], ZW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", QW = l === "file" || l === "all", $W = q.filter((e2) => Z && e2.is_directory || QW && !e2.is_directory), tG = $W.length > 0 && $W.every((e2) => ZW.has(e2.path));
19160
19156
  if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
19161
19157
  kind: "danger",
19162
19158
  children: z.message
@@ -19164,7 +19160,7 @@ ${c}
19164
19160
  let nG = PathBuilder.guessDeliminator(c).deliminator, rG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
19165
19161
  children: e2.path
19166
19162
  }, e2.id));
19167
- function aG(e2) {
19163
+ function iG(e2) {
19168
19164
  var _a6;
19169
19165
  if (v) return;
19170
19166
  if (y(true), e2 === PARENT_DIRECTORY) {
@@ -19199,7 +19195,7 @@ ${c}
19199
19195
  name: l2,
19200
19196
  isDirectory: d2
19201
19197
  });
19202
- Z.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
19198
+ ZW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
19203
19199
  ...e,
19204
19200
  f2
19205
19201
  ] : [
@@ -19212,7 +19208,7 @@ ${c}
19212
19208
  function lG() {
19213
19209
  let c2 = [];
19214
19210
  for (let e2 of q) {
19215
- if (!ZW && e2.is_directory || Z.has(e2.path)) continue;
19211
+ if (!Z && e2.is_directory || ZW.has(e2.path)) continue;
19216
19212
  let r2 = oG({
19217
19213
  path: e2.path,
19218
19214
  name: e2.name,
@@ -19232,13 +19228,13 @@ ${c}
19232
19228
  Icon: CornerLeftUp,
19233
19229
  isSelected: false,
19234
19230
  canSelect: false,
19235
- onPrimary: () => aG(PARENT_DIRECTORY),
19231
+ onPrimary: () => iG(PARENT_DIRECTORY),
19236
19232
  onToggleSelect: null
19237
19233
  },
19238
19234
  ...q.map((e2) => {
19239
19235
  let r2 = e2.path;
19240
19236
  r2.startsWith("//") && (r2 = r2.slice(1));
19241
- let c2 = ZW && e2.is_directory || QW && !e2.is_directory, l2 = Z.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => sG({
19237
+ let c2 = Z && e2.is_directory || QW && !e2.is_directory, l2 = ZW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => sG({
19242
19238
  path: r2,
19243
19239
  name: e2.name,
19244
19240
  isDirectory: e2.is_directory
@@ -19249,7 +19245,7 @@ ${c}
19249
19245
  Icon: FILE_ICON[u2],
19250
19246
  isSelected: l2,
19251
19247
  canSelect: c2,
19252
- onPrimary: e2.is_directory ? () => aG(r2) : c2 ? d2 : () => {
19248
+ onPrimary: e2.is_directory ? () => iG(r2) : c2 ? d2 : () => {
19253
19249
  },
19254
19250
  onToggleSelect: c2 ? d2 : null
19255
19251
  };
@@ -19323,7 +19319,7 @@ ${c}
19323
19319
  className: "mt-2 w-full",
19324
19320
  placeholder: g,
19325
19321
  value: g,
19326
- onChange: (e2) => aG(e2.target.value),
19322
+ onChange: (e2) => iG(e2.target.value),
19327
19323
  children: pG.map((e2) => (0, import_jsx_runtime.jsx)("option", {
19328
19324
  value: e2,
19329
19325
  children: e2
@@ -24812,9 +24808,9 @@ ${c}
24812
24808
  return typeof S == "function" ? S : noop$2;
24813
24809
  }, [
24814
24810
  S
24815
- ]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null), ZW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), QW = ZW[0], $W = ZW[1], eG = QW.isFocused, tG = QW.isFileDialogActive, nG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), rG = function() {
24811
+ ]), q = (0, import_react.useRef)(null), ZW = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), QW = Z[0], $W = Z[1], eG = QW.isFocused, tG = QW.isFileDialogActive, nG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), rG = function() {
24816
24812
  !nG.current && tG && setTimeout(function() {
24817
- Z.current && (Z.current.files.length || ($W({
24813
+ ZW.current && (ZW.current.files.length || ($W({
24818
24814
  type: "closeDialog"
24819
24815
  }), G()));
24820
24816
  }, 300);
@@ -24824,7 +24820,7 @@ ${c}
24824
24820
  window.removeEventListener("focus", rG, false);
24825
24821
  };
24826
24822
  }, [
24827
- Z,
24823
+ ZW,
24828
24824
  tG,
24829
24825
  G,
24830
24826
  nG
@@ -25015,13 +25011,13 @@ ${c}
25015
25011
  }).catch(function(e3) {
25016
25012
  isAbort(e3) ? (G(e3), $W({
25017
25013
  type: "closeDialog"
25018
- })) : isSecurityError(e3) ? (nG.current = false, Z.current ? (Z.current.value = null, Z.current.click()) : sG(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : sG(e3);
25014
+ })) : isSecurityError(e3) ? (nG.current = false, ZW.current ? (ZW.current.value = null, ZW.current.click()) : sG(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : sG(e3);
25019
25015
  });
25020
25016
  return;
25021
25017
  }
25022
- Z.current && ($W({
25018
+ ZW.current && ($W({
25023
25019
  type: "openDialog"
25024
- }), W(), Z.current.value = null, Z.current.click());
25020
+ }), W(), ZW.current.value = null, ZW.current.click());
25025
25021
  }, [
25026
25022
  $W,
25027
25023
  W,
@@ -25111,10 +25107,10 @@ ${c}
25111
25107
  onChange: vG(composeEventHandlers(l2, fG)),
25112
25108
  onClick: vG(composeEventHandlers(u2, CG)),
25113
25109
  tabIndex: -1
25114
- }, c2, Z)), d2);
25110
+ }, c2, ZW)), d2);
25115
25111
  };
25116
25112
  }, [
25117
- Z,
25113
+ ZW,
25118
25114
  c,
25119
25115
  p,
25120
25116
  fG,
@@ -25125,7 +25121,7 @@ ${c}
25125
25121
  getRootProps: SG,
25126
25122
  getInputProps: wG,
25127
25123
  rootRef: q,
25128
- inputRef: Z,
25124
+ inputRef: ZW,
25129
25125
  open: vG(pG)
25130
25126
  });
25131
25127
  }
@@ -25358,13 +25354,13 @@ ${c}
25358
25354
  html: I
25359
25355
  })
25360
25356
  }), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
25361
- let q = w && "text-primary", Z = T && "text-destructive", ZW;
25362
- r[48] !== q || r[49] !== Z ? (ZW = cn(q, Z), r[48] = q, r[49] = Z, r[50] = ZW) : ZW = r[50];
25357
+ let q = w && "text-primary", ZW = T && "text-destructive", Z;
25358
+ r[48] !== q || r[49] !== ZW ? (Z = cn(q, ZW), r[48] = q, r[49] = ZW, r[50] = Z) : Z = r[50];
25363
25359
  let QW;
25364
- r[51] === ZW ? QW = r[52] : (QW = (0, import_jsx_runtime.jsx)(Upload, {
25360
+ r[51] === Z ? QW = r[52] : (QW = (0, import_jsx_runtime.jsx)(Upload, {
25365
25361
  strokeWidth: 1.4,
25366
- className: ZW
25367
- }), r[51] = ZW, r[52] = QW);
25362
+ className: Z
25363
+ }), r[51] = Z, r[52] = QW);
25368
25364
  let $W = w && "text-primary", eG = T && "text-destructive", tG;
25369
25365
  r[53] !== $W || r[54] !== eG ? (tG = cn($W, eG), r[53] = $W, r[54] = eG, r[55] = tG) : tG = r[55];
25370
25366
  let nG;
@@ -25380,23 +25376,23 @@ ${c}
25380
25376
  nG
25381
25377
  ]
25382
25378
  }), r[58] = QW, r[59] = nG, r[60] = rG) : rG = r[60];
25383
- let aG;
25384
- r[61] !== G || r[62] !== rG ? (aG = (0, import_jsx_runtime.jsxs)("div", {
25379
+ let iG;
25380
+ r[61] !== G || r[62] !== rG ? (iG = (0, import_jsx_runtime.jsxs)("div", {
25385
25381
  className: "flex flex-col items-center justify-center grow gap-3",
25386
25382
  children: [
25387
25383
  G,
25388
25384
  rG
25389
25385
  ]
25390
- }), r[61] = G, r[62] = rG, r[63] = aG) : aG = r[63];
25386
+ }), r[61] = G, r[62] = rG, r[63] = iG) : iG = r[63];
25391
25387
  let oG;
25392
- r[64] !== W || r[65] !== aG || r[66] !== z || r[67] !== B ? (oG = (0, import_jsx_runtime.jsxs)("div", {
25388
+ r[64] !== W || r[65] !== iG || r[66] !== z || r[67] !== B ? (oG = (0, import_jsx_runtime.jsxs)("div", {
25393
25389
  className: z,
25394
25390
  ...B,
25395
25391
  children: [
25396
25392
  W,
25397
- aG
25393
+ iG
25398
25394
  ]
25399
- }), r[64] = W, r[65] = aG, r[66] = z, r[67] = B, r[68] = oG) : oG = r[68];
25395
+ }), r[64] = W, r[65] = iG, r[66] = z, r[67] = B, r[68] = oG) : oG = r[68];
25400
25396
  let sG;
25401
25397
  r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (sG = M ? (0, import_jsx_runtime.jsxs)("div", {
25402
25398
  className: "flex flex-row gap-1",
@@ -25541,19 +25537,19 @@ ${c}
25541
25537
  var _a5;
25542
25538
  e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), (_a5 = j.current) == null ? void 0 : _a5.requestSubmit());
25543
25539
  }, r[10] = q) : q = r[10];
25544
- let Z;
25545
- r[11] === f ? Z = r[12] : (Z = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
25540
+ let ZW;
25541
+ r[11] === f ? ZW = r[12] : (ZW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
25546
25542
  className: "text-center",
25547
25543
  children: renderHTML({
25548
25544
  html: f
25549
25545
  })
25550
- }), r[11] = f, r[12] = Z);
25551
- let ZW;
25552
- r[13] === L ? ZW = r[14] : (ZW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
25546
+ }), r[11] = f, r[12] = ZW);
25547
+ let Z;
25548
+ r[13] === L ? Z = r[14] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
25553
25549
  kind: "danger",
25554
25550
  className: "rounded",
25555
25551
  children: L ?? "Invalid input"
25556
- }), r[13] = L, r[14] = ZW);
25552
+ }), r[13] = L, r[14] = Z);
25557
25553
  let QW;
25558
25554
  r[15] === c ? QW = r[16] : (QW = (0, import_jsx_runtime.jsx)("div", {
25559
25555
  children: c
@@ -25584,25 +25580,25 @@ ${c}
25584
25580
  }), r[23] = g, r[24] = eG, r[25] = tG, r[26] = I, r[27] = nG) : nG = r[27];
25585
25581
  let rG;
25586
25582
  r[28] !== _ || r[29] !== nG ? (rG = withTooltip(nG, _), r[28] = _, r[29] = nG, r[30] = rG) : rG = r[30];
25587
- let aG;
25588
- r[31] !== rG || r[32] !== $W ? (aG = (0, import_jsx_runtime.jsxs)("div", {
25583
+ let iG;
25584
+ r[31] !== rG || r[32] !== $W ? (iG = (0, import_jsx_runtime.jsxs)("div", {
25589
25585
  className: "flex justify-end gap-2 font-code",
25590
25586
  children: [
25591
25587
  $W,
25592
25588
  rG
25593
25589
  ]
25594
- }), r[31] = rG, r[32] = $W, r[33] = aG) : aG = r[33];
25590
+ }), r[31] = rG, r[32] = $W, r[33] = iG) : iG = r[33];
25595
25591
  let oG;
25596
- r[34] !== aG || r[35] !== G || r[36] !== Z || r[37] !== ZW || r[38] !== QW ? (oG = (0, import_jsx_runtime.jsxs)("div", {
25592
+ r[34] !== iG || r[35] !== G || r[36] !== ZW || r[37] !== Z || r[38] !== QW ? (oG = (0, import_jsx_runtime.jsxs)("div", {
25597
25593
  className: G,
25598
25594
  onKeyDown: q,
25599
25595
  children: [
25600
- Z,
25601
25596
  ZW,
25597
+ Z,
25602
25598
  QW,
25603
- aG
25599
+ iG
25604
25600
  ]
25605
- }), r[34] = aG, r[35] = G, r[36] = Z, r[37] = ZW, r[38] = QW, r[39] = oG) : oG = r[39];
25601
+ }), r[34] = iG, r[35] = G, r[36] = ZW, r[37] = Z, r[38] = QW, r[39] = oG) : oG = r[39];
25606
25602
  let sG;
25607
25603
  return r[40] !== oG || r[41] !== H ? (sG = (0, import_jsx_runtime.jsx)("form", {
25608
25604
  className: "contents",
@@ -27382,8 +27378,8 @@ ${c}
27382
27378
  points: extractSunburstPoints(e2.points)
27383
27379
  }));
27384
27380
  }, r[29] = u, r[30] = G);
27385
- let q = useEvent_default(G), Z;
27386
- r[31] === u ? Z = r[32] : (Z = (e2) => {
27381
+ let q = useEvent_default(G), ZW;
27382
+ r[31] === u ? ZW = r[32] : (ZW = (e2) => {
27387
27383
  if (!e2 || !shouldHandleClickSelection(e2.points)) return;
27388
27384
  let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
27389
27385
  u((e3) => ({
@@ -27394,8 +27390,8 @@ ${c}
27394
27390
  points: r2,
27395
27391
  indices: c2
27396
27392
  }));
27397
- }, r[31] = u, r[32] = Z);
27398
- let ZW = useEvent_default(Z), QW;
27393
+ }, r[31] = u, r[32] = ZW);
27394
+ let Z = useEvent_default(ZW), QW;
27399
27395
  r[33] === u ? QW = r[34] : (QW = (e2) => {
27400
27396
  e2 && u((r2) => ({
27401
27397
  ...r2,
@@ -27407,7 +27403,7 @@ ${c}
27407
27403
  }));
27408
27404
  }, r[33] = u, r[34] = QW);
27409
27405
  let $W = useEvent_default(QW), eG = m.frames ?? void 0, tG = useEvent_default(_temp3$3), nG;
27410
- return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== ZW || r[42] !== $W || r[43] !== eG || r[44] !== tG || r[45] !== R ? (nG = (0, import_jsx_runtime.jsx)(LazyPlot, {
27406
+ return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== $W || r[43] !== eG || r[44] !== tG || r[45] !== R ? (nG = (0, import_jsx_runtime.jsx)(LazyPlot, {
27411
27407
  ...m,
27412
27408
  layout: h,
27413
27409
  onRelayout: R,
@@ -27415,13 +27411,13 @@ ${c}
27415
27411
  onTreemapClick: W,
27416
27412
  onSunburstClick: q,
27417
27413
  config: L,
27418
- onClick: ZW,
27414
+ onClick: Z,
27419
27415
  onSelected: $W,
27420
27416
  className: "w-full",
27421
27417
  useResizeHandler: true,
27422
27418
  frames: eG,
27423
27419
  onError: tG
27424
- }), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = ZW, r[42] = $W, r[43] = eG, r[44] = tG, r[45] = R, r[46] = nG) : nG = r[46], nG;
27420
+ }), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = $W, r[43] = eG, r[44] = tG, r[45] = R, r[46] = nG) : nG = r[46], nG;
27425
27421
  });
27426
27422
  PlotlyComponent.displayName = "PlotlyComponent";
27427
27423
  function _temp$8(e) {
@@ -27553,8 +27549,8 @@ ${c}
27553
27549
  c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
27554
27550
  let q;
27555
27551
  c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
27556
- let Z;
27557
- c[19] !== L || c[20] !== z || c[21] !== H ? (Z = (0, import_jsx_runtime.jsx)(Track, {
27552
+ let ZW;
27553
+ c[19] !== L || c[20] !== z || c[21] !== H ? (ZW = (0, import_jsx_runtime.jsx)(Track, {
27558
27554
  ref: E,
27559
27555
  "data-testid": "track",
27560
27556
  className: G,
@@ -27565,9 +27561,9 @@ ${c}
27565
27561
  onPointerMove: z,
27566
27562
  onPointerUp: H
27567
27563
  })
27568
- }), c[19] = L, c[20] = z, c[21] = H, c[22] = Z) : Z = c[22];
27569
- let ZW;
27570
- c[23] !== p.setFalse || c[24] !== p.setTrue ? (ZW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
27564
+ }), c[19] = L, c[20] = z, c[21] = H, c[22] = ZW) : ZW = c[22];
27565
+ let Z;
27566
+ c[23] !== p.setFalse || c[24] !== p.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
27571
27567
  asChild: true,
27572
27568
  children: (0, import_jsx_runtime.jsx)(Thumb, {
27573
27569
  "data-testid": "thumb",
@@ -27577,7 +27573,7 @@ ${c}
27577
27573
  onMouseEnter: p.setTrue,
27578
27574
  onMouseLeave: p.setFalse
27579
27575
  })
27580
- }), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = ZW) : ZW = c[25];
27576
+ }), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = Z) : Z = c[25];
27581
27577
  let QW;
27582
27578
  c[26] !== m || c[27] !== u.value || c[28] !== d ? (QW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
27583
27579
  children: prettyScientificNumber(d(u.value[0]), {
@@ -27589,16 +27585,16 @@ ${c}
27589
27585
  children: QW
27590
27586
  }), c[30] = QW, c[31] = $W);
27591
27587
  let eG;
27592
- c[32] !== f || c[33] !== ZW || c[34] !== $W ? (eG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
27588
+ c[32] !== f || c[33] !== Z || c[34] !== $W ? (eG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
27593
27589
  children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
27594
27590
  delayDuration: 0,
27595
27591
  open: f,
27596
27592
  children: [
27597
- ZW,
27593
+ Z,
27598
27594
  $W
27599
27595
  ]
27600
27596
  })
27601
- }), c[32] = f, c[33] = ZW, c[34] = $W, c[35] = eG) : eG = c[35];
27597
+ }), c[32] = f, c[33] = Z, c[34] = $W, c[35] = eG) : eG = c[35];
27602
27598
  let tG;
27603
27599
  c[36] !== p.setFalse || c[37] !== p.setTrue ? (tG = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
27604
27600
  asChild: true,
@@ -27633,16 +27629,16 @@ ${c}
27633
27629
  })
27634
27630
  }), c[45] = f, c[46] = tG, c[47] = rG, c[48] = iG) : iG = c[48];
27635
27631
  let aG;
27636
- return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !== eG || c[53] !== iG || c[54] !== W ? (aG = (0, import_jsx_runtime.jsxs)(Root, {
27632
+ return c[49] !== M || c[50] !== u || c[51] !== ZW || c[52] !== eG || c[53] !== iG || c[54] !== W ? (aG = (0, import_jsx_runtime.jsxs)(Root, {
27637
27633
  ref: M,
27638
27634
  className: W,
27639
27635
  ...u,
27640
27636
  children: [
27641
- Z,
27637
+ ZW,
27642
27638
  eG,
27643
27639
  iG
27644
27640
  ]
27645
- }), c[49] = M, c[50] = u, c[51] = Z, c[52] = eG, c[53] = iG, c[54] = W, c[55] = aG) : aG = c[55], aG;
27641
+ }), c[49] = M, c[50] = u, c[51] = ZW, c[52] = eG, c[53] = iG, c[54] = W, c[55] = aG) : aG = c[55], aG;
27646
27642
  });
27647
27643
  RangeSlider.displayName = Root.displayName;
27648
27644
  var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
@@ -27693,14 +27689,14 @@ ${c}
27693
27689
  }, q = (e2) => {
27694
27690
  m && l(e2);
27695
27691
  }, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
27696
- let Z, ZW;
27697
- r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (Z = () => {
27692
+ let ZW, Z;
27693
+ r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (ZW = () => {
27698
27694
  m && !dequal(T, u) && l(T);
27699
- }, ZW = () => {
27695
+ }, Z = () => {
27700
27696
  m && !dequal(T, u) && l(T);
27701
- }, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] = ZW) : (Z = r[18], ZW = r[19]);
27697
+ }, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = ZW, r[19] = Z) : (ZW = r[18], Z = r[19]);
27702
27698
  let QW;
27703
- r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !== ZW || r[32] !== b ? (QW = (0, import_jsx_runtime.jsx)(RangeSlider, {
27699
+ r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== ZW || r[31] !== Z || r[32] !== b ? (QW = (0, import_jsx_runtime.jsx)(RangeSlider, {
27704
27700
  id: S,
27705
27701
  className: W,
27706
27702
  value: T,
@@ -27711,10 +27707,10 @@ ${c}
27711
27707
  disabled: y,
27712
27708
  onValueChange: G,
27713
27709
  onValueCommit: q,
27714
- onPointerUp: Z,
27715
- onMouseUp: ZW,
27710
+ onPointerUp: ZW,
27711
+ onMouseUp: Z,
27716
27712
  valueMap: b
27717
- }), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = ZW, r[32] = b, r[33] = QW) : QW = r[33];
27713
+ }), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = ZW, r[31] = Z, r[32] = b, r[33] = QW) : QW = r[33];
27718
27714
  let $W;
27719
27715
  r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? ($W = _ && (0, import_jsx_runtime.jsx)("div", {
27720
27716
  className: "text-xs text-muted-foreground min-w-[16px]",
@@ -28446,7 +28442,7 @@ ${c}
28446
28442
  return true;
28447
28443
  }
28448
28444
  }
28449
- var LazyVegaComponent = import_react.lazy(() => import("./vega-component-C7nO5zcf.js")), VegaPlugin = class {
28445
+ var LazyVegaComponent = import_react.lazy(() => import("./vega-component-Cft458Sr.js")), VegaPlugin = class {
28450
28446
  constructor() {
28451
28447
  __publicField(this, "tagName", "marimo-vega");
28452
28448
  __publicField(this, "validator", object({
@@ -28585,7 +28581,7 @@ ${c}
28585
28581
  children: e.children
28586
28582
  });
28587
28583
  }
28588
- }, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-CEdAYjb7.js"));
28584
+ }, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-dl1H9WIW.js"));
28589
28585
  const DownloadPlugin = createPlugin("marimo-download").withData(object({
28590
28586
  data: string(),
28591
28587
  disabled: boolean().default(false),
@@ -28641,7 +28637,7 @@ ${c}
28641
28637
  f
28642
28638
  ]
28643
28639
  });
28644
- }, LazyImageComparisonComponent = import_react.lazy(() => import("./ImageComparisonComponent-C3y7L3eJ.js")), ImageComparisonPlugin = class {
28640
+ }, LazyImageComparisonComponent = import_react.lazy(() => import("./ImageComparisonComponent-fdY0LUuf.js")), ImageComparisonPlugin = class {
28645
28641
  constructor() {
28646
28642
  __publicField(this, "tagName", "marimo-image-comparison");
28647
28643
  __publicField(this, "validator", object({
@@ -28775,7 +28771,7 @@ ${c}
28775
28771
  themeVariables: e.data.theme_variables
28776
28772
  });
28777
28773
  }
28778
- }, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-hv6IckVw.js").then(async (m) => {
28774
+ }, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-CpL8y5pw.js").then(async (m) => {
28779
28775
  await m.__tla;
28780
28776
  return m;
28781
28777
  })), import_compiler_runtime$22 = require_compiler_runtime();
@@ -31030,7 +31026,7 @@ ${c}
31030
31026
  areRegExpsEqual: H,
31031
31027
  areSetsEqual: W,
31032
31028
  createIsNestedEqual: r2
31033
- }), Z = Object.freeze({
31029
+ }), ZW = Object.freeze({
31034
31030
  areArraysEqual: O,
31035
31031
  areDatesEqual: j,
31036
31032
  areMapsEqual: I,
@@ -31038,9 +31034,9 @@ ${c}
31038
31034
  areRegExpsEqual: H,
31039
31035
  areSetsEqual: G,
31040
31036
  createIsNestedEqual: r2
31041
- }), ZW = T(q);
31037
+ }), Z = T(q);
31042
31038
  function QW(e3, r3) {
31043
- return ZW(e3, r3, void 0);
31039
+ return Z(e3, r3, void 0);
31044
31040
  }
31045
31041
  var $W = T(l(q, {
31046
31042
  createIsNestedEqual: function() {
@@ -31050,11 +31046,11 @@ ${c}
31050
31046
  function eG(e3, r3) {
31051
31047
  return $W(e3, r3, void 0);
31052
31048
  }
31053
- var tG = T(Z);
31049
+ var tG = T(ZW);
31054
31050
  function nG(e3, r3) {
31055
31051
  return tG(e3, r3, /* @__PURE__ */ new WeakMap());
31056
31052
  }
31057
- var rG = T(l(Z, {
31053
+ var rG = T(l(ZW, {
31058
31054
  createIsNestedEqual: function() {
31059
31055
  return f;
31060
31056
  }
@@ -31066,7 +31062,7 @@ ${c}
31066
31062
  return T(l(q, e3(q)));
31067
31063
  }
31068
31064
  function oG(e3) {
31069
- var r3 = T(l(Z, e3(Z)));
31065
+ var r3 = T(l(ZW, e3(ZW)));
31070
31066
  return (function(e4, c2, l2) {
31071
31067
  return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
31072
31068
  });
@@ -31294,12 +31290,12 @@ ${c}
31294
31290
  function G(e2) {
31295
31291
  return e2 * 100 + "%";
31296
31292
  }
31297
- var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2, ZW = (e2) => Math.max(0, e2), QW = (e2) => Math.max(0, e2), $W = (e2, r2, c2) => {
31293
+ var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, ZW = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), QW = (e2) => Math.max(0, e2), $W = (e2, r2, c2) => {
31298
31294
  let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
31299
31295
  return {
31300
31296
  left: l2,
31301
31297
  width: d2,
31302
- height: Z(f2, e2.height, u2),
31298
+ height: ZW(f2, e2.height, u2),
31303
31299
  top: QW(f2)
31304
31300
  };
31305
31301
  }, eG = (e2, r2, c2) => {
@@ -31308,7 +31304,7 @@ ${c}
31308
31304
  top: l2,
31309
31305
  height: d2,
31310
31306
  width: q(e2.left, e2.width, f2, c2),
31311
- left: ZW(u2)
31307
+ left: Z(u2)
31312
31308
  };
31313
31309
  }, tG = (e2, r2, c2) => {
31314
31310
  let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
@@ -31316,14 +31312,14 @@ ${c}
31316
31312
  height: u2,
31317
31313
  width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
31318
31314
  top: QW(l2),
31319
- left: ZW(f2)
31315
+ left: Z(f2)
31320
31316
  };
31321
31317
  }, nG = (e2, r2, c2) => {
31322
31318
  let { top: l2, left: u2, height: d2, width: f2 } = r2;
31323
31319
  return {
31324
31320
  width: f2,
31325
31321
  left: u2,
31326
- height: Z(l2, e2.height, d2),
31322
+ height: ZW(l2, e2.height, d2),
31327
31323
  top: QW(l2)
31328
31324
  };
31329
31325
  }, rG = {
@@ -34227,7 +34223,7 @@ ${c}
34227
34223
  ], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
34228
34224
  let E = useIsDragging(), O, j;
34229
34225
  r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
34230
- let M = !f && !v, I, L, R, z, B, H, W, G, q, Z, ZW, QW, $W, eG, tG, nG, rG, iG, aG, oG, sG, cG, lG, uG, dG, fG;
34226
+ let M = !f && !v, I, L, R, z, B, H, W, G, q, ZW, Z, QW, $W, eG, tG, nG, rG, iG, aG, oG, sG, cG, lG, uG, dG, fG;
34231
34227
  if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== m || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
34232
34228
  let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
34233
34229
  r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
@@ -34253,12 +34249,12 @@ ${c}
34253
34249
  r[60] !== b2 || r[61] !== w2 || r[62] !== T2 ? (z = cn("w-full mx-auto bg-background flex-1 min-h-full", b2, w2, T2), r[60] = b2, r[61] = w2, r[62] = T2, r[63] = z) : z = r[63], r[64] === f ? B = r[65] : (B = f ? [
34254
34250
  20,
34255
34251
  20
34256
- ] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (ZW = (e3) => {
34252
+ ] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, ZW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
34257
34253
  f || l({
34258
34254
  ...c,
34259
34255
  cells: e3
34260
34256
  });
34261
- }, r[66] = f, r[67] = c, r[68] = l, r[69] = ZW) : ZW = r[69], r[70] === g ? QW = r[71] : (QW = g ? {
34257
+ }, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? QW = r[71] : (QW = g ? {
34262
34258
  i: g.i,
34263
34259
  w: g.w || 2,
34264
34260
  h: g.h || 2
@@ -34308,10 +34304,10 @@ ${c}
34308
34304
  }, r2.id) : (0, import_jsx_runtime.jsx)("div", {
34309
34305
  children: m2
34310
34306
  }, r2.id);
34311
- }), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = ZW, r[32] = QW, r[33] = $W, r[34] = eG, r[35] = tG, r[36] = nG, r[37] = rG, r[38] = iG, r[39] = aG, r[40] = oG, r[41] = sG, r[42] = cG, r[43] = lG, r[44] = uG, r[45] = dG, r[46] = fG;
34312
- } else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], Z = r[30], ZW = r[31], QW = r[32], $W = r[33], eG = r[34], tG = r[35], nG = r[36], rG = r[37], iG = r[38], aG = r[39], oG = r[40], sG = r[41], cG = r[42], lG = r[43], uG = r[44], dG = r[45], fG = r[46];
34307
+ }), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = ZW, r[31] = Z, r[32] = QW, r[33] = $W, r[34] = eG, r[35] = tG, r[36] = nG, r[37] = rG, r[38] = iG, r[39] = aG, r[40] = oG, r[41] = sG, r[42] = cG, r[43] = lG, r[44] = uG, r[45] = dG, r[46] = fG;
34308
+ } else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], ZW = r[30], Z = r[31], QW = r[32], $W = r[33], eG = r[34], tG = r[35], nG = r[36], rG = r[37], iG = r[38], aG = r[39], oG = r[40], sG = r[41], cG = r[42], lG = r[43], uG = r[44], dG = r[45], fG = r[46];
34313
34309
  let pG;
34314
- r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== Z || r[91] !== ZW || r[92] !== QW || r[93] !== $W || r[94] !== eG || r[95] !== tG || r[96] !== nG || r[97] !== rG || r[98] !== iG || r[99] !== aG || r[100] !== oG || r[101] !== sG || r[102] !== cG || r[103] !== lG || r[104] !== uG || r[105] !== dG || r[106] !== fG ? (pG = (0, import_jsx_runtime.jsx)(I, {
34310
+ r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== ZW || r[91] !== Z || r[92] !== QW || r[93] !== $W || r[94] !== eG || r[95] !== tG || r[96] !== nG || r[97] !== rG || r[98] !== iG || r[99] !== aG || r[100] !== oG || r[101] !== sG || r[102] !== cG || r[103] !== lG || r[104] !== uG || r[105] !== dG || r[106] !== fG ? (pG = (0, import_jsx_runtime.jsx)(I, {
34315
34311
  breakpoint: lG,
34316
34312
  layouts: uG,
34317
34313
  style: dG,
@@ -34323,8 +34319,8 @@ ${c}
34323
34319
  isBounded: W,
34324
34320
  compactType: G,
34325
34321
  preventCollision: q,
34326
- rowHeight: Z,
34327
- onLayoutChange: ZW,
34322
+ rowHeight: ZW,
34323
+ onLayoutChange: Z,
34328
34324
  droppingItem: QW,
34329
34325
  onDrop: $W,
34330
34326
  onDragStart: eG,
@@ -34336,7 +34332,7 @@ ${c}
34336
34332
  isResizable: oG,
34337
34333
  draggableHandle: sG,
34338
34334
  children: cG
34339
- }), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = Z, r[91] = ZW, r[92] = QW, r[93] = $W, r[94] = eG, r[95] = tG, r[96] = nG, r[97] = rG, r[98] = iG, r[99] = aG, r[100] = oG, r[101] = sG, r[102] = cG, r[103] = lG, r[104] = uG, r[105] = dG, r[106] = fG, r[107] = pG) : pG = r[107];
34335
+ }), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = ZW, r[91] = Z, r[92] = QW, r[93] = $W, r[94] = eG, r[95] = tG, r[96] = nG, r[97] = rG, r[98] = iG, r[99] = aG, r[100] = oG, r[101] = sG, r[102] = cG, r[103] = lG, r[104] = uG, r[105] = dG, r[106] = fG, r[107] = pG) : pG = r[107];
34340
34336
  let mG = pG, hG, gG, _G, vG, yG, bG, xG;
34341
34337
  if (r[108] !== u || r[109] !== mG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
34342
34338
  xG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
@@ -34761,21 +34757,21 @@ ${c}
34761
34757
  r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (0, import_jsx_runtime.jsx)(GripHorizontal, {
34762
34758
  className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
34763
34759
  }), r[35] = q) : q = r[35];
34764
- let Z;
34765
- r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
34760
+ let ZW;
34761
+ r[36] === l ? ZW = r[37] : (ZW = (0, import_jsx_runtime.jsx)(X, {
34766
34762
  className: "h-4 w-4 opacity-60 hover:opacity-100",
34767
34763
  onClick: () => l()
34768
- }), r[36] = l, r[37] = Z);
34769
- let ZW;
34770
- return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (ZW = (0, import_jsx_runtime.jsxs)("div", {
34764
+ }), r[36] = l, r[37] = ZW);
34765
+ let Z;
34766
+ return r[38] !== M || r[39] !== G || r[40] !== ZW || r[41] !== S ? (Z = (0, import_jsx_runtime.jsxs)("div", {
34771
34767
  className: S,
34772
34768
  children: [
34773
34769
  M,
34774
34770
  G,
34775
34771
  q,
34776
- Z
34772
+ ZW
34777
34773
  ]
34778
- }), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] = ZW) : ZW = r[42], ZW;
34774
+ }), r[38] = M, r[39] = G, r[40] = ZW, r[41] = S, r[42] = Z) : Z = r[42], Z;
34779
34775
  };
34780
34776
  function isSidebarCell(e) {
34781
34777
  var _a5;
@@ -36779,25 +36775,25 @@ ${c}
36779
36775
  }, [
36780
36776
  T,
36781
36777
  M
36782
- ]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), Z = (0, import_react.useMemo)(() => j.getEnabled(), [
36778
+ ]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), ZW = (0, import_react.useMemo)(() => j.getEnabled(), [
36783
36779
  j
36784
- ]), ZW = useMeasuringConfiguration(p), { droppableRects: QW, measureDroppableContainers: $W, measuringScheduled: eG } = useDroppableMeasuring(Z, {
36780
+ ]), Z = useMeasuringConfiguration(p), { droppableRects: QW, measureDroppableContainers: $W, measuringScheduled: eG } = useDroppableMeasuring(ZW, {
36785
36781
  dragging: w,
36786
36782
  dependencies: [
36787
36783
  O.x,
36788
36784
  O.y
36789
36785
  ],
36790
- config: ZW.droppable
36786
+ config: Z.droppable
36791
36787
  }), tG = useCachedNode(E, T), nG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
36792
36788
  H
36793
- ]), rG = PG(), iG = useInitialRect(tG, ZW.draggable.measure);
36789
+ ]), rG = PG(), iG = useInitialRect(tG, Z.draggable.measure);
36794
36790
  useLayoutShiftScrollCompensation({
36795
36791
  activeNode: T == null ? null : E.get(T),
36796
36792
  config: rG.layoutShiftCompensation,
36797
36793
  initialRect: iG,
36798
- measure: ZW.draggable.measure
36794
+ measure: Z.draggable.measure
36799
36795
  });
36800
- let aG = useRect(tG, ZW.draggable.measure, iG), oG = useRect(tG ? tG.parentElement : null), sG = (0, import_react.useRef)({
36796
+ let aG = useRect(tG, Z.draggable.measure, iG), oG = useRect(tG ? tG.parentElement : null), sG = (0, import_react.useRef)({
36801
36797
  activatorEvent: null,
36802
36798
  active: null,
36803
36799
  activeNode: tG,
@@ -36812,7 +36808,7 @@ ${c}
36812
36808
  scrollableAncestors: [],
36813
36809
  scrollAdjustedTranslate: null
36814
36810
  }), cG = j.getNodeFor((_a5 = sG.current.over) == null ? void 0 : _a5.id), lG = useDragOverlayMeasuring({
36815
- measure: ZW.dragOverlay.measure
36811
+ measure: Z.dragOverlay.measure
36816
36812
  }), uG = lG.nodeRef.current ?? tG, dG = w ? lG.rect ?? aG : null, fG = !!(lG.nodeRef.current && lG.rect), pG = useRectDelta(fG ? null : aG), mG = useWindowRect(uG ? getWindow(uG) : null), hG = useScrollableAncestors(w ? cG ?? tG : null), gG = useRects(hG), _G = applyModifiers(m, {
36817
36813
  transform: {
36818
36814
  x: O.x - pG.x,
@@ -36836,7 +36832,7 @@ ${c}
36836
36832
  active: L,
36837
36833
  collisionRect: CG,
36838
36834
  droppableRects: QW,
36839
- droppableContainers: Z,
36835
+ droppableContainers: ZW,
36840
36836
  pointerCoordinates: vG
36841
36837
  }) : null, TG = getFirstCollision(wG, "id"), [EG, DG] = (0, import_react.useState)(null), OG = adjustScale(fG ? _G : add(_G, xG), (EG == null ? void 0 : EG.rect) ?? null, aG), kG = (0, import_react.useRef)(null), AG = (0, import_react.useCallback)((e2, r2) => {
36842
36838
  let { sensor: c2, options: l2 } = r2;
@@ -37057,7 +37053,7 @@ ${c}
37057
37053
  measureDroppableContainers: $W,
37058
37054
  scrollableAncestors: hG,
37059
37055
  scrollableAncestorRects: gG,
37060
- measuringConfiguration: ZW,
37056
+ measuringConfiguration: Z,
37061
37057
  measuringScheduled: eG,
37062
37058
  windowRect: mG
37063
37059
  }), [
@@ -37075,7 +37071,7 @@ ${c}
37075
37071
  $W,
37076
37072
  hG,
37077
37073
  gG,
37078
- ZW,
37074
+ Z,
37079
37075
  eG,
37080
37076
  mG
37081
37077
  ]), NG = (0, import_react.useMemo)(() => ({
@@ -37643,7 +37639,7 @@ ${c}
37643
37639
  updateMeasurementsFor: I,
37644
37640
  ...m
37645
37641
  }
37646
- }), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners: ZW, isDragging: QW, over: $W, setActivatorNodeRef: eG, transform: tG } = useDraggable({
37642
+ }), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: ZW, listeners: Z, isDragging: QW, over: $W, setActivatorNodeRef: eG, transform: tG } = useDraggable({
37647
37643
  id: f,
37648
37644
  data: M,
37649
37645
  attributes: {
@@ -37651,7 +37647,7 @@ ${c}
37651
37647
  ...c
37652
37648
  },
37653
37649
  disabled: O.draggable
37654
- }), nG = useCombinedRefs(B, Z), rG = !!H, iG = rG && !b && isValidIndex(v) && isValidIndex(w), aG = !T && QW, oG = iG ? (aG && iG ? tG : null) ?? (p ?? E)({
37650
+ }), nG = useCombinedRefs(B, ZW), rG = !!H, iG = rG && !b && isValidIndex(v) && isValidIndex(w), aG = !T && QW, oG = iG ? (aG && iG ? tG : null) ?? (p ?? E)({
37655
37651
  rects: S,
37656
37652
  activeNodeRect: G,
37657
37653
  activeIndex: v,
@@ -37717,14 +37713,14 @@ ${c}
37717
37713
  isOver: z,
37718
37714
  isSorting: rG,
37719
37715
  isDragging: QW,
37720
- listeners: ZW,
37716
+ listeners: Z,
37721
37717
  node: R,
37722
37718
  overIndex: w,
37723
37719
  over: $W,
37724
37720
  setNodeRef: nG,
37725
37721
  setActivatorNodeRef: eG,
37726
37722
  setDroppableNodeRef: B,
37727
- setDraggableNodeRef: Z,
37723
+ setDraggableNodeRef: ZW,
37728
37724
  transform: fG ?? oG,
37729
37725
  transition: pG()
37730
37726
  };
@@ -38030,13 +38026,13 @@ ${c}
38030
38026
  G
38031
38027
  ]
38032
38028
  }), r[35] = c.id, r[36] = m, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
38033
- let Z = q;
38034
- if (!v && !g) return Z;
38035
- let ZW;
38036
- r[46] === Z ? ZW = r[47] : (ZW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
38029
+ let ZW = q;
38030
+ if (!v && !g) return ZW;
38031
+ let Z;
38032
+ r[46] === ZW ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
38037
38033
  asChild: true,
38038
- children: Z
38039
- }), r[46] = Z, r[47] = ZW);
38034
+ children: ZW
38035
+ }), r[46] = ZW, r[47] = Z);
38040
38036
  let QW;
38041
38037
  r[48] === v ? QW = r[49] : (QW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
38042
38038
  onSelect: v,
@@ -38069,12 +38065,12 @@ ${c}
38069
38065
  ]
38070
38066
  }), r[53] = QW, r[54] = eG, r[55] = tG) : tG = r[55];
38071
38067
  let nG;
38072
- return r[56] !== ZW || r[57] !== tG ? (nG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
38068
+ return r[56] !== Z || r[57] !== tG ? (nG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
38073
38069
  children: [
38074
- ZW,
38070
+ Z,
38075
38071
  tG
38076
38072
  ]
38077
- }), r[56] = ZW, r[57] = tG, r[58] = nG) : nG = r[58], nG;
38073
+ }), r[56] = Z, r[57] = tG, r[58] = nG) : nG = r[58], nG;
38078
38074
  }, InsertCellLine = (e) => {
38079
38075
  let r = (0, import_compiler_runtime$10.c)(10), { position: c, onInsert: l } = e, u = c === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", d;
38080
38076
  r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", u), r[0] = u, r[1] = d);
@@ -38128,8 +38124,8 @@ ${c}
38128
38124
  ...B,
38129
38125
  ...m
38130
38126
  }, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
38131
- let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35", ZW = T && "opacity-95 shadow-lg", QW;
38132
- r[25] !== l || r[26] !== Z || r[27] !== ZW || r[28] !== q ? (QW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, Z, ZW, l), r[25] = l, r[26] = Z, r[27] = ZW, r[28] = q, r[29] = QW) : QW = r[29];
38127
+ let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", ZW = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", QW;
38128
+ r[25] !== l || r[26] !== ZW || r[27] !== Z || r[28] !== q ? (QW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, ZW, Z, l), r[25] = l, r[26] = ZW, r[27] = Z, r[28] = q, r[29] = QW) : QW = r[29];
38133
38129
  let $W;
38134
38130
  r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? ($W = G && (0, import_jsx_runtime.jsx)("div", {
38135
38131
  className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
@@ -38218,7 +38214,7 @@ ${c}
38218
38214
  function _temp2$2(e) {
38219
38215
  e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
38220
38216
  }
38221
- var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-9QGZq7uF.js"));
38217
+ var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-CUzZw4ZH.js"));
38222
38218
  const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
38223
38219
  var _a5;
38224
38220
  let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
@@ -38603,7 +38599,7 @@ ${c}
38603
38599
  let r2 = e2.scrollHeight - e2.clientHeight;
38604
38600
  r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
38605
38601
  }, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
38606
- let H, W, G, q, Z, ZW, QW, $W, eG, tG;
38602
+ let H, W, G, q, ZW, Z, QW, $W, eG, tG;
38607
38603
  if (r[3] !== w || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== p || r[19] !== l) {
38608
38604
  let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
38609
38605
  r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
@@ -38649,7 +38645,7 @@ ${c}
38649
38645
  })
38650
38646
  })
38651
38647
  ]
38652
- }), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", Z = c, ZW = R, QW = 0;
38648
+ }), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", ZW = c, Z = R, QW = 0;
38653
38649
  let nG2 = y && "marimo-output-stale", rG2 = L ? "p-5" : "p-3";
38654
38650
  r[40] !== M || r[41] !== nG2 || r[42] !== rG2 ? ($W = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", nG2, rG2, M), r[40] = M, r[41] = nG2, r[42] = rG2, r[43] = $W) : $W = r[43], r[44] === d ? eG = r[45] : (eG = d ? {
38655
38651
  maxHeight: "none"
@@ -38682,8 +38678,8 @@ ${c}
38682
38678
  wrapText: l
38683
38679
  })
38684
38680
  }, r2);
38685
- }), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] = ZW, r[26] = QW, r[27] = $W, r[28] = eG, r[29] = tG;
38686
- } else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24], ZW = r[25], QW = r[26], $W = r[27], eG = r[28], tG = r[29];
38681
+ }), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = ZW, r[25] = Z, r[26] = QW, r[27] = $W, r[28] = eG, r[29] = tG;
38682
+ } else H = r[20], W = r[21], G = r[22], q = r[23], ZW = r[24], Z = r[25], QW = r[26], $W = r[27], eG = r[28], tG = r[29];
38687
38683
  let nG;
38688
38684
  r[46] !== w || r[47] !== S ? (nG = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
38689
38685
  value: S,
@@ -38691,11 +38687,11 @@ ${c}
38691
38687
  className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
38692
38688
  }), r[46] = w, r[47] = S, r[48] = nG) : nG = r[48];
38693
38689
  let rG;
38694
- r[49] !== nG || r[50] !== G || r[51] !== q || r[52] !== Z || r[53] !== ZW || r[54] !== QW || r[55] !== $W || r[56] !== eG || r[57] !== tG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
38690
+ r[49] !== nG || r[50] !== G || r[51] !== q || r[52] !== ZW || r[53] !== Z || r[54] !== QW || r[55] !== $W || r[56] !== eG || r[57] !== tG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
38695
38691
  title: G,
38696
38692
  "data-testid": q,
38697
- ref: Z,
38698
- ...ZW,
38693
+ ref: ZW,
38694
+ ...Z,
38699
38695
  tabIndex: QW,
38700
38696
  className: $W,
38701
38697
  style: eG,
@@ -38703,7 +38699,7 @@ ${c}
38703
38699
  tG,
38704
38700
  nG
38705
38701
  ]
38706
- }), r[49] = nG, r[50] = G, r[51] = q, r[52] = Z, r[53] = ZW, r[54] = QW, r[55] = $W, r[56] = eG, r[57] = tG, r[58] = rG) : rG = r[58];
38702
+ }), r[49] = nG, r[50] = G, r[51] = q, r[52] = ZW, r[53] = Z, r[54] = QW, r[55] = $W, r[56] = eG, r[57] = tG, r[58] = rG) : rG = r[58];
38707
38703
  let iG;
38708
38704
  return r[59] !== H || r[60] !== W || r[61] !== rG ? (iG = (0, import_jsx_runtime.jsxs)("div", {
38709
38705
  className: H,
@@ -39120,20 +39116,20 @@ ${c}
39120
39116
  }, false), r[0] = _, r[1] = c, r[2] = y, r[3] = v, r[4] = f, r[5] = M) : M = r[5];
39121
39117
  let I = M, L;
39122
39118
  r[6] === f ? L = r[7] : (L = outputIsLoading(f), r[6] = f, r[7] = L);
39123
- let R = L, B = E && w !== "present", H;
39124
- if (r[8] !== b || r[9] !== m || r[10] !== B || r[11] !== S || r[12] !== p) {
39119
+ let R = L, z = E && w !== "present", B;
39120
+ if (r[8] !== b || r[9] !== m || r[10] !== z || r[11] !== S || r[12] !== p) {
39125
39121
  let e2 = new MarkdownLanguageAdapter().isSupported(b);
39126
- H = cn("marimo-cell", "hover-actions-parent empty:invisible", !S && !B ? publishedCellClasses({
39122
+ B = cn("marimo-cell", "hover-actions-parent empty:invisible", !S && !z ? publishedCellClasses({
39127
39123
  errored: m,
39128
39124
  stopped: p
39129
39125
  }) : {
39130
39126
  "has-error": m,
39131
39127
  stopped: p,
39132
39128
  borderless: e2
39133
- }), r[8] = b, r[9] = m, r[10] = B, r[11] = S, r[12] = p, r[13] = H;
39134
- } else H = r[13];
39135
- let W = H;
39136
- if (w === "read" && S || B) {
39129
+ }), r[8] = b, r[9] = m, r[10] = z, r[11] = S, r[12] = p, r[13] = B;
39130
+ } else B = r[13];
39131
+ let H = B;
39132
+ if (w === "read" && S || z) {
39137
39133
  let e2;
39138
39134
  r[14] !== d || r[15] !== R || r[16] !== c || r[17] !== I ? (e2 = (0, import_jsx_runtime.jsx)(OutputArea, {
39139
39135
  allowExpand: true,
@@ -39169,10 +39165,10 @@ ${c}
39169
39165
  debuggerActive: false
39170
39166
  }), r[31] = d, r[32] = l, r[33] = _, r[34] = T, r[35] = I, r[36] = O2) : O2 = r[36];
39171
39167
  let M2;
39172
- return r[37] !== W || r[38] !== E2 || r[39] !== O2 || r[40] !== y2 || r[41] !== S2 || r[42] !== w2 ? (M2 = (0, import_jsx_runtime.jsxs)("div", {
39168
+ return r[37] !== H || r[38] !== E2 || r[39] !== O2 || r[40] !== y2 || r[41] !== S2 || r[42] !== w2 ? (M2 = (0, import_jsx_runtime.jsxs)("div", {
39173
39169
  tabIndex: -1,
39174
39170
  ref: j,
39175
- className: W,
39171
+ className: H,
39176
39172
  ...y2,
39177
39173
  children: [
39178
39174
  S2,
@@ -39180,7 +39176,7 @@ ${c}
39180
39176
  E2,
39181
39177
  O2
39182
39178
  ]
39183
- }), r[37] = W, r[38] = E2, r[39] = O2, r[40] = y2, r[41] = S2, r[42] = w2, r[43] = M2) : M2 = r[43], M2;
39179
+ }), r[37] = H, r[38] = E2, r[39] = O2, r[40] = y2, r[41] = S2, r[42] = w2, r[43] = M2) : M2 = r[43], M2;
39184
39180
  }
39185
39181
  if (shouldHidePublishedCell({
39186
39182
  errored: m,
@@ -39189,25 +39185,25 @@ ${c}
39189
39185
  output: c,
39190
39186
  showErrorTracebacks: O
39191
39187
  })) return null;
39192
- let G;
39193
- r[44] !== d || r[45] !== T ? (G = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = G) : G = r[46];
39194
- let q = w === "edit", Z;
39195
- r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== q ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
39196
- allowExpand: q,
39188
+ let W;
39189
+ r[44] !== d || r[45] !== T ? (W = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = W) : W = r[46];
39190
+ let G = w === "edit", q;
39191
+ r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== G ? (q = (0, import_jsx_runtime.jsx)(OutputArea, {
39192
+ allowExpand: G,
39197
39193
  output: c,
39198
39194
  className: CSSClasses.outputArea,
39199
39195
  cellId: d,
39200
39196
  stale: I,
39201
39197
  loading: R
39202
- }), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = q, r[52] = Z) : Z = r[52];
39203
- let QW;
39204
- return r[53] !== W || r[54] !== G || r[55] !== Z ? (QW = (0, import_jsx_runtime.jsx)("div", {
39198
+ }), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = G, r[52] = q) : q = r[52];
39199
+ let Z;
39200
+ return r[53] !== H || r[54] !== W || r[55] !== q ? (Z = (0, import_jsx_runtime.jsx)("div", {
39205
39201
  tabIndex: -1,
39206
39202
  ref: j,
39207
- className: W,
39208
- ...G,
39209
- children: Z
39210
- }), r[53] = W, r[54] = G, r[55] = Z, r[56] = QW) : QW = r[56], QW;
39203
+ className: H,
39204
+ ...W,
39205
+ children: q
39206
+ }), r[53] = H, r[54] = W, r[55] = q, r[56] = Z) : Z = r[56], Z;
39211
39207
  });
39212
39208
  VerticalCell.displayName = "VerticalCell";
39213
39209
  const VerticalLayoutPlugin = {
@@ -40264,7 +40260,7 @@ ${c}
40264
40260
  });
40265
40261
  }
40266
40262
  const getMarimoVersion = () => store.get(marimoVersionAtom);
40267
- var worker_default = "/assets/worker-CDEKsBgX.js", DefaultWorkerFactory = class {
40263
+ var worker_default = "/assets/worker-Cl1KJG2_.js", DefaultWorkerFactory = class {
40268
40264
  constructor(e = {}) {
40269
40265
  this.url = e.workerUrl || this.getDefaultWorkerUrl(), this.name = e.workerName || getMarimoVersion();
40270
40266
  }