@marimo-team/islands 0.23.14-dev5 → 0.23.14-dev50

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 (128) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Du3_nUzI.js → ConnectedDataExplorerComponent-DXBx_nQg.js} +4 -4
  2. package/dist/{chat-ui-BZxLHwyD.js → chat-ui-DXPRhRO2.js} +3248 -3044
  3. package/dist/{click-outside-container-BDd67_1U.js → click-outside-container-BLPjMamz.js} +141 -113
  4. package/dist/{code-visibility-rxZi4Phe.js → code-visibility-BFDT-GEQ.js} +1153 -946
  5. package/dist/data-grid-overlay-editor-C6lxUJp-.js +136 -0
  6. package/dist/{dist-D_bzzWBm.js → dist-Bf9f8MuT.js} +3 -3
  7. package/dist/{formats-d6MhLuQ9.js → formats-WsOgyW_K.js} +1 -1
  8. package/dist/{glide-data-editor-DkzAInWG.js → glide-data-editor-7wxMGXjG.js} +2084 -1889
  9. package/dist/{html-to-image-CGp_08St.js → html-to-image-DOqQBSQc.js} +2367 -2301
  10. package/dist/{input-CbEz_aj_.js → input-BSdZp5Ng.js} +1 -1
  11. package/dist/main.js +2707 -1186
  12. package/dist/{mermaid-CJW9vIyO.js → mermaid-D-HYBMEV.js} +2 -2
  13. package/dist/{number-overlay-editor-D-a0qCT8.js → number-overlay-editor-BLJXvX9c.js} +1 -1
  14. package/dist/{process-output-R6JsYrv3.js → process-output-kGk2Jc2x.js} +1 -1
  15. package/dist/{reveal-component-sEb3Wd1x.js → reveal-component-uSCMaaUE.js} +600 -596
  16. package/dist/{spec-Bv-XlYiv.js → spec-CnTgI25l.js} +1 -1
  17. package/dist/style.css +1 -1
  18. package/dist/{toDate-D-l5s8nn.js → toDate-D1Z7ZXWh.js} +1 -1
  19. package/dist/{useAsyncData-1Dhzjfwf.js → useAsyncData-BMc8itk2.js} +1 -1
  20. package/dist/{useDeepCompareMemoize-CDWT3BDz.js → useDeepCompareMemoize-ZwmDBRDY.js} +1 -1
  21. package/dist/{useLifecycle-AHlswLw-.js → useLifecycle-CxffarYV.js} +1 -1
  22. package/dist/{useTheme-BrYvK-_A.js → useTheme-yGsGEk82.js} +26 -24
  23. package/dist/{vega-component-Pk6lyc_a.js → vega-component-BFJTyykA.js} +5 -5
  24. package/package.json +3 -3
  25. package/src/__mocks__/requests.ts +1 -0
  26. package/src/components/app-config/user-config-form.tsx +26 -0
  27. package/src/components/chat/acp/agent-panel.tsx +35 -1
  28. package/src/components/chat/chat-panel.tsx +68 -29
  29. package/src/components/data-table/__tests__/column-explorer.test.tsx +25 -0
  30. package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +60 -3
  31. package/src/components/data-table/charts/__tests__/altair-generator.test.ts +24 -0
  32. package/src/components/data-table/charts/__tests__/merge-index-fields.test.ts +33 -0
  33. package/src/components/data-table/charts/chart-spec/altair-generator.ts +4 -1
  34. package/src/components/data-table/charts/charts.tsx +23 -1
  35. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +33 -12
  36. package/src/components/data-table/column-visibility-dropdown.tsx +15 -0
  37. package/src/components/debugger/debugger-code.tsx +7 -2
  38. package/src/components/editor/actions/useNotebookActions.tsx +2 -2
  39. package/src/components/editor/cell/cell-context-menu.tsx +2 -2
  40. package/src/components/editor/chrome/panels/snippets-panel.tsx +3 -3
  41. package/src/components/editor/chrome/wrapper/__tests__/useOpenAiAssistant.test.ts +36 -0
  42. package/src/components/editor/chrome/wrapper/footer-items/pyodide-status.tsx +6 -36
  43. package/src/components/editor/chrome/wrapper/useAiPanel.ts +3 -1
  44. package/src/components/editor/chrome/wrapper/useOpenAiAssistant.ts +88 -0
  45. package/src/components/editor/code/__tests__/readonly-python-code.test.tsx +79 -0
  46. package/src/components/editor/code/readonly-python-code.tsx +60 -33
  47. package/src/components/editor/errors/__tests__/auto-fix.test.ts +23 -0
  48. package/src/components/editor/errors/auto-fix.tsx +88 -34
  49. package/src/components/editor/errors/fix-mode.ts +1 -1
  50. package/src/components/editor/notebook-cell.tsx +7 -0
  51. package/src/components/editor/output/MarimoTracebackOutput.tsx +28 -2
  52. package/src/components/editor/output/__tests__/traceback.test.tsx +14 -6
  53. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +7 -2
  54. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +7 -3
  55. package/src/components/lifecycle/ProgressiveBoundary.tsx +42 -0
  56. package/src/components/lifecycle/RuntimeStatusBadge.tsx +59 -0
  57. package/src/components/lifecycle/__tests__/ProgressiveBoundary.test.tsx +147 -0
  58. package/src/components/lifecycle/__tests__/RuntimeStatusBadge.test.tsx +72 -0
  59. package/src/components/slides/__tests__/slide.test.tsx +33 -0
  60. package/src/components/slides/minimap.tsx +7 -1
  61. package/src/components/slides/reveal-component.tsx +3 -0
  62. package/src/components/slides/slide-cell-view.tsx +10 -6
  63. package/src/components/slides/slide.tsx +16 -13
  64. package/src/core/ai/config.ts +2 -2
  65. package/src/core/ai/context/__tests__/registry.test.ts +133 -3
  66. package/src/core/ai/context/providers/__tests__/datasource.test.ts +3 -1
  67. package/src/core/ai/context/providers/__tests__/error.test.ts +200 -15
  68. package/src/core/ai/context/providers/datasource.ts +27 -2
  69. package/src/core/ai/context/providers/error.ts +226 -36
  70. package/src/core/ai/context/registry.ts +77 -43
  71. package/src/core/ai/state.ts +11 -0
  72. package/src/core/cells/__tests__/cell.test.ts +39 -0
  73. package/src/core/cells/__tests__/readonly-code-display.test.ts +46 -0
  74. package/src/core/cells/cell.ts +5 -3
  75. package/src/core/cells/readonly-code-display.ts +35 -0
  76. package/src/core/codemirror/__tests__/setup.test.ts +33 -1
  77. package/src/core/codemirror/ai/resources.ts +15 -10
  78. package/src/core/codemirror/cells/__tests__/debugger-decorations.test.ts +185 -0
  79. package/src/core/codemirror/cells/__tests__/debugger-state.test.ts +139 -0
  80. package/src/core/codemirror/cells/debugger-decorations.ts +188 -0
  81. package/src/core/codemirror/cells/debugger-state.ts +100 -0
  82. package/src/core/codemirror/cells/extensions.ts +23 -4
  83. package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +75 -3
  84. package/src/core/codemirror/go-to-definition/extension.ts +3 -3
  85. package/src/core/codemirror/go-to-definition/underline.ts +5 -14
  86. package/src/core/codemirror/go-to-definition/utils.ts +49 -1
  87. package/src/core/codemirror/utils.ts +15 -0
  88. package/src/core/config/feature-flag.tsx +2 -0
  89. package/src/core/edit-app.tsx +8 -5
  90. package/src/core/errors/errors.ts +2 -1
  91. package/src/core/islands/bootstrap.ts +1 -0
  92. package/src/core/islands/bridge.ts +1 -0
  93. package/src/core/lifecycle/__tests__/render-policy.test.ts +247 -0
  94. package/src/core/lifecycle/render-policy.ts +125 -0
  95. package/src/core/mime.ts +11 -4
  96. package/src/core/network/__tests__/api.test.ts +17 -0
  97. package/src/core/network/__tests__/requests-toasting.test.tsx +46 -0
  98. package/src/core/network/api.ts +17 -6
  99. package/src/core/network/requests-lazy.ts +1 -0
  100. package/src/core/network/requests-network.ts +8 -0
  101. package/src/core/network/requests-static.ts +1 -0
  102. package/src/core/network/requests-toasting.tsx +10 -1
  103. package/src/core/network/types.ts +2 -0
  104. package/src/core/run-app.tsx +27 -23
  105. package/src/core/runtime/__tests__/adapter.test.ts +160 -0
  106. package/src/core/runtime/adapter.ts +182 -0
  107. package/src/core/wasm/PyodideLoader.tsx +20 -62
  108. package/src/core/wasm/bridge.ts +13 -4
  109. package/src/core/wasm/state.ts +8 -19
  110. package/src/core/websocket/useMarimoKernelConnection.tsx +17 -0
  111. package/src/css/app/codemirror.css +14 -0
  112. package/src/hooks/__tests__/useDelayElapsed.test.tsx +55 -0
  113. package/src/hooks/useDelayElapsed.ts +27 -0
  114. package/src/plugins/core/RenderHTML.tsx +35 -1
  115. package/src/plugins/core/__test__/RenderHTML.test.ts +44 -0
  116. package/src/plugins/impl/DataTablePlugin.tsx +1 -0
  117. package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +53 -2
  118. package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +52 -2
  119. package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +187 -0
  120. package/src/plugins/impl/data-editor/glide-data-editor.tsx +6 -0
  121. package/src/plugins/impl/data-editor/glide-portal.tsx +73 -0
  122. package/src/utils/errors.ts +15 -0
  123. package/dist/data-grid-overlay-editor-mfEJ5475.js +0 -128
  124. package/src/components/editor/chrome/panels/__tests__/snippet-display.test.ts +0 -22
  125. package/src/components/editor/chrome/panels/snippet-display.ts +0 -27
  126. package/src/core/ai/context/providers/__tests__/__snapshots__/error.test.ts.snap +0 -3
  127. package/src/core/wasm/__tests__/PyodideLoader.test.ts +0 -72
  128. package/src/core/wasm/__tests__/state.test.ts +0 -124
@@ -6,14 +6,14 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
6
6
  import { t as require_react } from "./react-DA-nE2FX.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
8
8
  import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
9
- import { $t as extractAllTracebackInfo, A as ChevronRightIcon, An as Minus, At as goToCellLine, Bt as DATA_TYPE_ICON, C as AccordionContent, Ct as Checkbox, En as Trash2, Fn as Eye, Ft as adaptForLocalStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, It as jotaiJsonStorage, M as PinLeftIcon, N as PinRightIcon, Nn as Info, Nt as useChromeActions, O as CheckIcon, Pn as FileText, Qt as elementContainsMarimoCellFile, R as extractBase64FromDataURL, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Vt as getDataTypeColor, X as notebookAtom, Yt as useRequestClient, _n as atomWithStorage, _t as DATA_CELL_ID, bn as Close$1, c as Popover, cn as HTMLCellId, d as PopoverTrigger, dt as viewStateAtom, en as getTracebackInfo, et as useCellActions, ft as outputIsLoading, g as getDatasourceContext, gt as sanitizeHtml, hn as jsonToMarkdown, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, l as PopoverClose, ln as SCRATCH_CELL_ID, lt as kioskModeAtom, m as useExpandedOutput, mn as jsonParseWithSpecialChar, n as Spinner, nt as useCellNames, ot as AnsiUp, q as getCellEditorView, qt as getRequestClient, r as MarkdownRenderer, rn as filenameAtom, sn as CellOutputId, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as getCellDomProps, w as AccordionItem, yt as displayCellName, z as isDataURLString, zn as CircleX, __tla as __tla_0 } from "./html-to-image-CGp_08St.js";
9
+ import { $t as getRequestClient, B as isDataURLString, Bn as FileText, Bt as getFeatureFlag, C as Accordion, Cn as atomWithStorage, E as AccordionTrigger, En as Close$1, Fn as NotebookPen, Gn as CircleX, H as renderHTML, Hn as ExternalLink, In as Minus, It as useChromeActions, Jn as esm_default, Kt as DATA_TYPE_ICON, L as base64ToUint8Array, Ln as LoaderCircle, Lt as adaptForLocalStorage, M as DotFilledIcon, Mn as Trash2, N as PinLeftIcon, Nt as goToCellLine, P as PinRightIcon, Rt as jotaiJsonStorage, T as AccordionItem, Tt as Checkbox, Vn as Eye, Wt as PluralWord, X as notebookAtom, Yn as import_lib, _ as getDatasourceContext, an as extractAllTracebackInfo, bn as jsonParseWithSpecialChar, bt as getCellDomProps, c as Popover, d as PopoverTrigger, dt as viewStateAtom, et as useCellActions, ft as outputIsLoading, hn as SCRATCH_CELL_ID, in as elementContainsMarimoCellFile, j as ChevronRightIcon, jn as Wrench, jt as toggleBreakpoint, k as CheckIcon, l as PopoverClose, ln as filenameAtom, lt as kioskModeAtom, m as useExpandedOutput, mn as HTMLCellId, n as Spinner, nt as useCellNames, on as getTracebackInfo, ot as AnsiUp, pn as CellOutputId, q as getCellEditorView, qn as Braces, qt as getDataTypeColor, r as MarkdownRenderer, t as toPng, tn as useRequestClient, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as sanitizeHtml, w as AccordionContent, xn as jsonToMarkdown, xt as displayCellName, yt as DATA_CELL_ID, z as extractBase64FromDataURL, zn as Info, __tla as __tla_0 } from "./html-to-image-DOqQBSQc.js";
10
10
  import { o as useSize, u as createLucideIcon } from "./dist--2Bqjvs0.js";
11
- import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-AHlswLw-.js";
11
+ import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-CxffarYV.js";
12
12
  import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-CMnRuVmN.js";
13
13
  import { t as Check } from "./check-C9OoNtR4.js";
14
14
  import { C as logNever, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, I as X, N as usePrevious$1, O as $b5e257d569688ac6$export$535bd6ca7f90a273, P as useDirection, R as ChevronDown, S as assertNever, T as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, _ as menuControlVariants, b as menuSeparatorVariants, f as selectStyles, g as menuControlCheckVariants, h as menuContentCommon, i as SelectContent, l as SelectTrigger, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuItemVariants, w as $a916eb452884faea$export$b7a616150fdb9f44, x as menuSubTriggerVariants, y as menuLabelVariants } from "./strings-Dq_j3Rxw.js";
15
- import { $ as $e93e671b31057976$export$b8473d3665f3a75a, $t as Item2$2, A as $ee014567cb39d3f0$export$ff05c3ac10437e03, At as $c87311424ea30a05$export$78551043582a6a98, B as $64fa3d84918910a7$export$4d86445c2cf5e3, Bt as $d4ee10de306f2510$export$e58f029f0fbfdb29, C as DropdownMenuTrigger, Ct as $b4b717babfbb907b$export$bebd5a1431fec25d, D as $a049562f99e7db0e$export$f9c6924e160136d1, Dt as $df56164dff5785e2$export$4338b53315abf666, E as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Et as $8ae05eaa5c114e9c$export$7f54fc3180508a52, F as $01b77f81d0f07f68$export$75b6ee27786ba447, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, G as $64fa3d84918910a7$export$ef03459518577ad4, Gt as $bdb11010cef70236$export$b4cc09c592e8fdb8, H as $64fa3d84918910a7$export$c245e6201fed2f75, Ht as $431fbd86ca7dc216$export$b204af158042fbac, I as $01b77f81d0f07f68$export$b04be29aa201d4f5, It as $3ef42575df84b30b$export$9d1611c77c2fe928, J as marked, Jt as Anchor2, K as $64fa3d84918910a7$export$fabf2dc03a41866e, Kt as $bdb11010cef70236$export$f680877a34711e37, L as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Lt as $d4ee10de306f2510$export$4282f70798064fe0, M as $514c0188e459b4c0$export$9afb8bc826b033ea, Mt as $c87311424ea30a05$export$a11b0059900ceec8, N as $d2b4bc8c273e7be6$export$24d547caef80ccd1, Nt as $c87311424ea30a05$export$fedb369cb70207f1, O as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Ot as $313b98861ee5dd6c$export$d6875122194c7b44, P as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, Pt as $7215afc6de606d6b$export$de79e2c695e052f3, Q as $2baaea4c71418dea$export$294aa081a6c6f55d, Qt as Group, R as $64fa3d84918910a7$export$2881499e37b75b9a, Rt as $d4ee10de306f2510$export$b4f377a2b6254582, S as DropdownMenuSubTrigger, St as $b4b717babfbb907b$export$4c063cf1350e6fed, T as $3985021b0ad6602f$export$f5b8910cec6cf069, Tt as $e9faafb641e167db$export$90fc3a17d93f704c, U as $64fa3d84918910a7$export$c62b8e45d58ddad9, Ut as $431fbd86ca7dc216$export$f21a1ffae260145a, V as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Vt as $f4e2df6bd15f8569$export$98658e8c59125e6a, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, Xt as CheckboxItem, Yt as Arrow2, Z as $d2e8511e6f209edf$export$e908e06f4b8e3402, Zt as Content2$1, _ as DropdownMenuPortal, _t as $f6c31cce2adf654f$export$45712eceda6fad21, a as NumberField, an as Root3, at as $319e236875307eab$export$a9b970dcc4ae71a9, b as DropdownMenuSub, bt as $9446cca9a3875146$export$7d15b64cf5a3a4c4, c as prettyEngineeringNumber, cn as SubContent, ct as $6c7bd7858deea686$export$cd11ab140839f11d, dn as Item, dt as $6db58dc88e78b024$export$2f817fcdc4b89ae0, en as ItemIndicator, et as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, f as DropdownMenu, fn as Root$3, ft as $5b160d28a433310d$export$c17fa47878dc55b6, g as DropdownMenuLabel, gn as ChevronRight, gt as $507fabe10e71c6fb$export$630ff653c5ada6a9, h as DropdownMenuItem, hn as Circle, ht as $3ad3f6e1647bc98d$export$80f3e147d781571c, in as RadioItem, it as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, j as $514c0188e459b4c0$export$5f1af8db9871e1d6, jt as $c87311424ea30a05$export$9ac100e40613ea10, k as $ee014567cb39d3f0$export$f551688fc98f2e09, kt as $c87311424ea30a05$export$6446a186d09e379e, l as prettyNumber, ln as SubTrigger, lt as $fca6afa0e843324b$export$87b761675e8eaa10, mn as Search, mt as $9ab94262bd0047c7$export$420e68273165f4ec, nn as Portal, nt as $e5be200c675c3b3a$export$aca958c65c314e6c, on as Separator$1, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pn as createRovingFocusGroupScope, pt as $6179b936705e76d3$export$ae780daf29e6d456, qt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, r as Input, rn as RadioGroup$2, rt as $e5be200c675c3b3a$export$dad6ae84456c676a, s as maxFractionalDigits, sn as Sub, tn as Label$1, tt as $e5be200c675c3b3a$export$a763b9476acd3eb, u as prettyScientificNumber, un as createMenuScope, ut as $fca6afa0e843324b$export$f12b703ca79dfbb1, v as DropdownMenuSeparator, vt as _class_private_field_init, w as $3985021b0ad6602f$export$37fb8590cf2c088c, wt as $99facab73266f662$export$5add1d006293d136, x as DropdownMenuSubContent, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, yt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, z as $64fa3d84918910a7$export$29f1550f4b0d4415, zt as $d4ee10de306f2510$export$cd4e5573fbe2b576 } from "./input-CbEz_aj_.js";
16
- import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-D-l5s8nn.js";
15
+ import { $ as $e93e671b31057976$export$b8473d3665f3a75a, $t as Item2$2, A as $ee014567cb39d3f0$export$ff05c3ac10437e03, At as $c87311424ea30a05$export$78551043582a6a98, B as $64fa3d84918910a7$export$4d86445c2cf5e3, Bt as $d4ee10de306f2510$export$e58f029f0fbfdb29, C as DropdownMenuTrigger, Ct as $b4b717babfbb907b$export$bebd5a1431fec25d, D as $a049562f99e7db0e$export$f9c6924e160136d1, Dt as $df56164dff5785e2$export$4338b53315abf666, E as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Et as $8ae05eaa5c114e9c$export$7f54fc3180508a52, F as $01b77f81d0f07f68$export$75b6ee27786ba447, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, G as $64fa3d84918910a7$export$ef03459518577ad4, Gt as $bdb11010cef70236$export$b4cc09c592e8fdb8, H as $64fa3d84918910a7$export$c245e6201fed2f75, Ht as $431fbd86ca7dc216$export$b204af158042fbac, I as $01b77f81d0f07f68$export$b04be29aa201d4f5, It as $3ef42575df84b30b$export$9d1611c77c2fe928, J as marked, Jt as Anchor2, K as $64fa3d84918910a7$export$fabf2dc03a41866e, Kt as $bdb11010cef70236$export$f680877a34711e37, L as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Lt as $d4ee10de306f2510$export$4282f70798064fe0, M as $514c0188e459b4c0$export$9afb8bc826b033ea, Mt as $c87311424ea30a05$export$a11b0059900ceec8, N as $d2b4bc8c273e7be6$export$24d547caef80ccd1, Nt as $c87311424ea30a05$export$fedb369cb70207f1, O as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Ot as $313b98861ee5dd6c$export$d6875122194c7b44, P as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, Pt as $7215afc6de606d6b$export$de79e2c695e052f3, Q as $2baaea4c71418dea$export$294aa081a6c6f55d, Qt as Group, R as $64fa3d84918910a7$export$2881499e37b75b9a, Rt as $d4ee10de306f2510$export$b4f377a2b6254582, S as DropdownMenuSubTrigger, St as $b4b717babfbb907b$export$4c063cf1350e6fed, T as $3985021b0ad6602f$export$f5b8910cec6cf069, Tt as $e9faafb641e167db$export$90fc3a17d93f704c, U as $64fa3d84918910a7$export$c62b8e45d58ddad9, Ut as $431fbd86ca7dc216$export$f21a1ffae260145a, V as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Vt as $f4e2df6bd15f8569$export$98658e8c59125e6a, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, Xt as CheckboxItem, Yt as Arrow2, Z as $d2e8511e6f209edf$export$e908e06f4b8e3402, Zt as Content2$1, _ as DropdownMenuPortal, _t as $f6c31cce2adf654f$export$45712eceda6fad21, a as NumberField, an as Root3, at as $319e236875307eab$export$a9b970dcc4ae71a9, b as DropdownMenuSub, bt as $9446cca9a3875146$export$7d15b64cf5a3a4c4, c as prettyEngineeringNumber, cn as SubContent, ct as $6c7bd7858deea686$export$cd11ab140839f11d, dn as Item, dt as $6db58dc88e78b024$export$2f817fcdc4b89ae0, en as ItemIndicator, et as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, f as DropdownMenu, fn as Root$3, ft as $5b160d28a433310d$export$c17fa47878dc55b6, g as DropdownMenuLabel, gn as ChevronRight, gt as $507fabe10e71c6fb$export$630ff653c5ada6a9, h as DropdownMenuItem, hn as Circle, ht as $3ad3f6e1647bc98d$export$80f3e147d781571c, in as RadioItem, it as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, j as $514c0188e459b4c0$export$5f1af8db9871e1d6, jt as $c87311424ea30a05$export$9ac100e40613ea10, k as $ee014567cb39d3f0$export$f551688fc98f2e09, kt as $c87311424ea30a05$export$6446a186d09e379e, l as prettyNumber, ln as SubTrigger, lt as $fca6afa0e843324b$export$87b761675e8eaa10, mn as Search, mt as $9ab94262bd0047c7$export$420e68273165f4ec, nn as Portal, nt as $e5be200c675c3b3a$export$aca958c65c314e6c, on as Separator$1, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pn as createRovingFocusGroupScope, pt as $6179b936705e76d3$export$ae780daf29e6d456, qt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, r as Input, rn as RadioGroup$2, rt as $e5be200c675c3b3a$export$dad6ae84456c676a, s as maxFractionalDigits, sn as Sub, tn as Label$1, tt as $e5be200c675c3b3a$export$a763b9476acd3eb, u as prettyScientificNumber, un as createMenuScope, ut as $fca6afa0e843324b$export$f12b703ca79dfbb1, v as DropdownMenuSeparator, vt as _class_private_field_init, w as $3985021b0ad6602f$export$37fb8590cf2c088c, wt as $99facab73266f662$export$5add1d006293d136, x as DropdownMenuSubContent, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, yt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, z as $64fa3d84918910a7$export$29f1550f4b0d4415, zt as $d4ee10de306f2510$export$cd4e5573fbe2b576 } from "./input-BSdZp5Ng.js";
16
+ import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-D1Z7ZXWh.js";
17
17
  import { r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DE6tzZf-.js";
18
18
  import { n as clsx_default } from "./clsx-CIWA5tNO.js";
19
19
  import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
@@ -23,19 +23,19 @@ import { a as prettyError, c as Portal$1, l as Root$4, n as ErrorBanner, o as Co
23
23
  import { a as TooltipRoot, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-Czds6Qr8.js";
24
24
  import { f as CopyClipboardIcon, t as _extends } from "./extends-9MVIxxRo.js";
25
25
  import { r as KnownQueryParams } from "./constants-T20xxyNf.js";
26
- import { C as getBuildingBlocks, S as buildStore, T as useEvent_default, _ as useAtomValue, b as atom, f as useJotaiEffect, g as useAtom, h as Provider, n as useTheme, r as aiFeaturesEnabledAtom, s as resolvedMarimoConfigAtom, v as useSetAtom, w as dequal, y as useStore } from "./useTheme-BrYvK-_A.js";
26
+ import { D as useEvent_default, E as dequal, S as atom, T as getBuildingBlocks, _ as Provider, b as useSetAtom, c as resolvedMarimoConfigAtom, i as aiModelConfiguredAtom, m as useJotaiEffect, n as useTheme, p as store, r as aiFeaturesEnabledAtom, u as userConfigAtom, v as useAtom, w as buildStore, x as useStore, y as useAtomValue } from "./useTheme-yGsGEk82.js";
27
27
  import { $ as EditorView } from "./dist-U4F-tbMs.js";
28
28
  import { t as invariant } from "./invariant-wRzNXIsJ.js";
29
29
  import { c as uniqueBy, t as Arrays } from "./arrays-sEtDRoG4.js";
30
30
  import { n as once, t as memoizeLastValue } from "./once-DPuqGUeo.js";
31
31
  import { a as parser } from "./dist-C_Y3oV3C.js";
32
- import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-d6MhLuQ9.js";
32
+ import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-WsOgyW_K.js";
33
33
  import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DzSb5hsH.js";
34
34
  import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
35
35
  import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-Boph2xIS.js";
36
36
  import { t as useIframeCapabilities } from "./useIframeCapabilities-DWIYvDh7.js";
37
- import { t as useAsyncData } from "./useAsyncData-1Dhzjfwf.js";
38
- let contextAwarePanelOpen, EmotionCacheProvider, prettifyRowCount, SELECT_COLUMN_ID, DatePicker, dateToLocalISOTime, downloadSizeLimitAtom, DelayMount, ErrorState, loadTableAndRawData, EmptyState, getPageIndexForRow, ContextMenuSeparator, isRecord, CommandEmpty, ChartErrorState, Combobox, TabsContent, ContextMenuTrigger, isNullishFilter, CommandList, LazyVegaEmbed, CommandInput, ChartInfoState, useInternalStateWithSync, Maps, ContextMenu, toFieldTypes, ContextMenuContent, getMimeValues, LoadingState, loadTableData, ContextMenuItem, hasFunctionProperty, PANEL_TYPES, HtmlOutput, useSelectList, dateToLocalISODate, Filenames, ColumnChartSpecModel, ColumnPreviewContainer, usePrevious, ComboboxItem, TabsList, DateRangePicker, Tabs, Command, TabsTrigger, smartMatch, RenderTextWithLinks, CommandSeparator, useOverflowDetection, ContextAwarePanelItem, Kbd, ADD_PRINTING_CLASS, NAMELESS_COLUMN_PREFIX, DEFAULT_SLIDE_TYPE, EyeOff, Toggle, downloadHTMLAsImage, renderCellValue, Slide, Download, PanelResizeHandle, RadioGroupItem, ChevronsRight, Table, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelOwner, JsonOutput, ChevronsLeft, TableBody, InstallPackageButton, TableRow, DataTable, ArrowDownWideNarrow, TableHeader, DEFAULT_DECK_TRANSITION, Funnel, slotsController, getColumnCountForDisplay, TOO_MANY_ROWS, prettifyRowColumnCount, INDEX_COLUMN_NAME, Switch, Code, Fill, OutputRenderer, ChevronLeft, TableHead, marimoVersionAtom, TextWrap, isCellAwareAtom, SLIDE_TYPE_OPTIONS_BY_VALUE, Expand, Panel, OutputArea, ChevronsDownUp, TableCell, CommandItem, ChartLoadingState, showCodeInRunModeAtom, GripHorizontal, SlotNames, SlideSidebar, Ellipsis, PanelGroup, useNotebookCodeAvailable, $fae977aafc393c5c$export$6b862160d295c8e, contextAwarePanelType, RadioGroup, ChevronsUpDown, Provider$1, downloadBlob, generateColumns, ColumnName, useIntersectionObserver, Progress, ColumnChartContext, downloadByURL, inferFieldTypes, CompactChipRow, dateToLocalISODateTime;
37
+ import { t as useAsyncData } from "./useAsyncData-BMc8itk2.js";
38
+ let PANEL_TYPES, HtmlOutput, prettifyRowCount, INDEX_COLUMN_NAME, CompactChipRow, dateToLocalISODateTime, downloadSizeLimitAtom, ColumnChartSpecModel, ErrorState, getPageIndexForRow, EmptyState, usePrevious, ContextMenuItem, hasFunctionProperty, Command, TabsTrigger, DateRangePicker, Tabs, ContextMenuSeparator, isRecord, CommandItem, ChartLoadingState, CommandEmpty, ChartErrorState, ContextMenuTrigger, isNullishFilter, getUserColumnVisibilityCounts, TOO_MANY_ROWS, ContextMenu, toFieldTypes, LoadingState, loadTableAndRawData, ContextMenuContent, getMimeValues, ContextAwarePanelItem, Kbd, useInternalStateWithSync, Maps, Filenames, ColumnChartContext, ColumnPreviewContainer, useIntersectionObserver, Combobox, TabsContent, DatePicker, dateToLocalISOTime, ComboboxItem, TabsList, CommandSeparator, useOverflowDetection, CommandList, LazyVegaEmbed, smartMatch, RenderTextWithLinks, ADD_PRINTING_CLASS, TableRow, DEFAULT_SLIDE_TYPE, Funnel, slotsController, downloadHTMLAsImage, inferFieldTypes, Slide, Ellipsis, PanelGroup, RadioGroupItem, ChevronsUpDown, Provider$1, EmotionCacheProvider, contextAwarePanelOpen, JsonOutput, ChevronsRight, Table, InstallPackageButton, ArrowDownWideNarrow, TableHeader, DataTable, ChevronLeft, TableHead, DEFAULT_DECK_TRANSITION, GripHorizontal, SlotNames, getColumnCountForDisplay, SELECT_COLUMN_ID, prettifyRowColumnCount, loadTableData, Switch, Download, PanelResizeHandle, OutputRenderer, ChevronsDownUp, TableCell, marimoVersionAtom, $fae977aafc393c5c$export$6b862160d295c8e, contextAwarePanelType, SLIDE_TYPE_OPTIONS_BY_VALUE, EyeOff, Toggle, OutputArea, ChevronsLeft, TableBody, CommandInput, ChartInfoState, showCodeInRunModeAtom, TextWrap, isCellAwareAtom, SlideSidebar, Expand, Panel, useNotebookCodeAvailable, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelOwner, RadioGroup, Code, Fill, downloadBlob, NAMELESS_COLUMN_PREFIX, ColumnName, DelayMount, Progress, renderCellValue, downloadByURL, generateColumns, useSelectList, dateToLocalISODate;
39
39
  let __tla = Promise.all([
40
40
  (() => {
41
41
  try {
@@ -45,7 +45,7 @@ let __tla = Promise.all([
45
45
  })()
46
46
  ]).then(async () => {
47
47
  var _a;
48
- let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Columns3, Cookie, FunnelX, Keyboard, LayoutTemplate, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
48
+ let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Columns3, Cookie, FunnelX, HatGlasses, Keyboard, LayoutTemplate, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
49
49
  ArrowDownWideNarrow = createLucideIcon("arrow-down-wide-narrow", [
50
50
  [
51
51
  "path",
@@ -651,6 +651,47 @@ let __tla = Promise.all([
651
651
  }
652
652
  ]
653
653
  ]);
654
+ HatGlasses = createLucideIcon("hat-glasses", [
655
+ [
656
+ "path",
657
+ {
658
+ d: "M14 18a2 2 0 0 0-4 0",
659
+ key: "1v8fkw"
660
+ }
661
+ ],
662
+ [
663
+ "path",
664
+ {
665
+ d: "m19 11-2.11-6.657a2 2 0 0 0-2.752-1.148l-1.276.61A2 2 0 0 1 12 4H8.5a2 2 0 0 0-1.925 1.456L5 11",
666
+ key: "1fkr7p"
667
+ }
668
+ ],
669
+ [
670
+ "path",
671
+ {
672
+ d: "M2 11h20",
673
+ key: "3eubbj"
674
+ }
675
+ ],
676
+ [
677
+ "circle",
678
+ {
679
+ cx: "17",
680
+ cy: "18",
681
+ r: "3",
682
+ key: "82mm0e"
683
+ }
684
+ ],
685
+ [
686
+ "circle",
687
+ {
688
+ cx: "7",
689
+ cy: "18",
690
+ r: "3",
691
+ key: "lvkj7j"
692
+ }
693
+ ]
694
+ ]);
654
695
  Keyboard = createLucideIcon("keyboard", [
655
696
  [
656
697
  "path",
@@ -2020,21 +2061,21 @@ Defaulting to \`null\`.`;
2020
2061
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
2021
2062
  let { block: i = "nearest", inline: a = "nearest" } = n;
2022
2063
  if (e === t) return;
2023
- let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, Fq = c.top - E, Iq = c.bottom + O, Lq = c.left - A, Rq = c.right + M, zq = e === _ ? 0 : Q + $, Bq = e === _ ? 0 : q + J, Vq = e.offsetWidth - e.clientWidth - zq, Hq = e.offsetHeight - e.clientHeight - Bq, Uq = v + q + I, Wq = y - J - z - Hq, Gq = S + Q + U, Kq = w - $ - K;
2024
- h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? Gq += Vq : Kq -= Vq;
2025
- let qq = Fq < Uq || Iq > Wq, Jq = Lq < Gq || Rq > Kq;
2026
- if (qq && i === "start") o += Fq - Uq;
2027
- else if (qq && i === "center") o += (Fq + Iq) / 2 - (Uq + Wq) / 2;
2028
- else if (qq && i === "end") o += Iq - Wq;
2029
- else if (qq && i === "nearest") {
2030
- let e2 = Fq - Uq, t2 = Iq - Wq;
2064
+ let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, eJ = c.top - E, tJ = c.bottom + O, nJ = c.left - A, rJ = c.right + M, iJ = e === _ ? 0 : Q + $, aJ = e === _ ? 0 : q + J, oJ = e.offsetWidth - e.clientWidth - iJ, sJ = e.offsetHeight - e.clientHeight - aJ, cJ = v + q + I, lJ = y - J - z - sJ, uJ = S + Q + U, dJ = w - $ - K;
2065
+ h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? uJ += oJ : dJ -= oJ;
2066
+ let fJ = eJ < cJ || tJ > lJ, pJ = nJ < uJ || rJ > dJ;
2067
+ if (fJ && i === "start") o += eJ - cJ;
2068
+ else if (fJ && i === "center") o += (eJ + tJ) / 2 - (cJ + lJ) / 2;
2069
+ else if (fJ && i === "end") o += tJ - lJ;
2070
+ else if (fJ && i === "nearest") {
2071
+ let e2 = eJ - cJ, t2 = tJ - lJ;
2031
2072
  o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2032
2073
  }
2033
- if (Jq && a === "start") s += Lq - Gq;
2034
- else if (Jq && a === "center") s += (Lq + Rq) / 2 - (Gq + Kq) / 2;
2035
- else if (Jq && a === "end") s += Rq - Kq;
2036
- else if (Jq && a === "nearest") {
2037
- let e2 = Lq - Gq, t2 = Rq - Kq;
2074
+ if (pJ && a === "start") s += nJ - uJ;
2075
+ else if (pJ && a === "center") s += (nJ + rJ) / 2 - (uJ + dJ) / 2;
2076
+ else if (pJ && a === "end") s += rJ - dJ;
2077
+ else if (pJ && a === "nearest") {
2078
+ let e2 = nJ - uJ, t2 = rJ - dJ;
2038
2079
  s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2039
2080
  }
2040
2081
  e.scrollTo({
@@ -5144,23 +5185,23 @@ Defaulting to \`null\`.`;
5144
5185
  }
5145
5186
  let $ = "bottom";
5146
5187
  A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
5147
- let Fq = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5148
- q[I] += Fq;
5149
- let Iq = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5150
- y && y < Iq && (Iq = y), n.height = Math.min(n.height, Iq), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), Fq = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += Fq;
5151
- let Lq = {}, Rq = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], zq = Rq + 0.5 * t[z], Bq = S / 2 + w, Vq = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), Hq = n[z] - Vq - S / 2 - w;
5152
- Lq[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(zq, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), Bq, Hq), { placement: U, crossPlacement: K } = A, S ? Rq = Lq[I] : K === "right" ? Rq += t[z] : K === "center" && (Rq += t[z] / 2);
5153
- let Uq = U === "left" || U === "top" ? n[M] : 0, Wq = {
5154
- x: U === "top" || U === "bottom" ? Rq : Uq,
5155
- y: U === "left" || U === "right" ? Rq : Uq
5188
+ let eJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5189
+ q[I] += eJ;
5190
+ let tJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5191
+ y && y < tJ && (tJ = y), n.height = Math.min(n.height, tJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), eJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += eJ;
5192
+ let nJ = {}, rJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], iJ = rJ + 0.5 * t[z], aJ = S / 2 + w, oJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), sJ = n[z] - oJ - S / 2 - w;
5193
+ nJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(iJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), aJ, sJ), { placement: U, crossPlacement: K } = A, S ? rJ = nJ[I] : K === "right" ? rJ += t[z] : K === "center" && (rJ += t[z] / 2);
5194
+ let cJ = U === "left" || U === "top" ? n[M] : 0, lJ = {
5195
+ x: U === "top" || U === "bottom" ? rJ : cJ,
5196
+ y: U === "left" || U === "right" ? rJ : cJ
5156
5197
  };
5157
5198
  return {
5158
5199
  position: q,
5159
- maxHeight: Iq,
5160
- arrowOffsetLeft: Lq.left,
5161
- arrowOffsetTop: Lq.top,
5200
+ maxHeight: tJ,
5201
+ arrowOffsetLeft: nJ.left,
5202
+ arrowOffsetTop: nJ.top,
5162
5203
  placement: U,
5163
- triggerAnchorPoint: Wq
5204
+ triggerAnchorPoint: lJ
5164
5205
  };
5165
5206
  }
5166
5207
  function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
@@ -7015,7 +7056,7 @@ Defaulting to \`null\`.`;
7015
7056
  n,
7016
7057
  h
7017
7058
  ]);
7018
- let Fq = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7059
+ let eJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7019
7060
  role: "textbox",
7020
7061
  "aria-valuemax": null,
7021
7062
  "aria-valuemin": null,
@@ -7025,8 +7066,8 @@ Defaulting to \`null\`.`;
7025
7066
  e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
7026
7067
  t.segments
7027
7068
  ]) && !t.isInvalid && (f = void 0);
7028
- let Iq = $bdb11010cef70236$export$f680877a34711e37(), Lq = !t.isDisabled && !t.isReadOnly && e.isEditable, Rq = e.type === "literal" ? "" : s.of(e.type), zq = $313b98861ee5dd6c$export$d6875122194c7b44({
7029
- "aria-label": `${Rq}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7069
+ let tJ = $bdb11010cef70236$export$f680877a34711e37(), nJ = !t.isDisabled && !t.isReadOnly && e.isEditable, rJ = e.type === "literal" ? "" : s.of(e.type), iJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7070
+ "aria-label": `${rJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7030
7071
  "aria-labelledby": d
7031
7072
  });
7032
7073
  if (e.type === "literal") return {
@@ -7034,32 +7075,32 @@ Defaulting to \`null\`.`;
7034
7075
  "aria-hidden": true
7035
7076
  }
7036
7077
  };
7037
- let Bq = {
7078
+ let aJ = {
7038
7079
  caretColor: "transparent"
7039
7080
  };
7040
7081
  if (o === "rtl") {
7041
- Bq.unicodeBidi = "embed";
7082
+ aJ.unicodeBidi = "embed";
7042
7083
  let t2 = v[e.type];
7043
- (t2 === "numeric" || t2 === "2-digit") && (Bq.direction = "ltr");
7084
+ (t2 === "numeric" || t2 === "2-digit") && (aJ.direction = "ltr");
7044
7085
  }
7045
7086
  return {
7046
- segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, zq, {
7047
- id: Iq,
7048
- ...Fq,
7087
+ segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, iJ, {
7088
+ id: tJ,
7089
+ ...eJ,
7049
7090
  "aria-invalid": t.isInvalid ? "true" : void 0,
7050
7091
  "aria-describedby": f,
7051
7092
  "aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
7052
7093
  "data-placeholder": e.isPlaceholder || void 0,
7053
- contentEditable: Lq,
7054
- suppressContentEditableWarning: Lq,
7055
- spellCheck: Lq ? "false" : void 0,
7056
- autoCorrect: Lq ? "off" : void 0,
7057
- enterKeyHint: Lq ? "next" : void 0,
7058
- inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !Lq ? void 0 : "numeric",
7094
+ contentEditable: nJ,
7095
+ suppressContentEditableWarning: nJ,
7096
+ spellCheck: nJ ? "false" : void 0,
7097
+ autoCorrect: nJ ? "off" : void 0,
7098
+ enterKeyHint: nJ ? "next" : void 0,
7099
+ inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !nJ ? void 0 : "numeric",
7059
7100
  tabIndex: t.isDisabled ? void 0 : 0,
7060
7101
  onKeyDown: A,
7061
7102
  onFocus: Q,
7062
- style: Bq,
7103
+ style: aJ,
7063
7104
  onPointerDown(e2) {
7064
7105
  e2.stopPropagation();
7065
7106
  },
@@ -10302,12 +10343,12 @@ Defaulting to \`null\`.`;
10302
10343
  e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
10303
10344
  }
10304
10345
  }
10305
- let Fq = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10346
+ let eJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10306
10347
  w,
10307
10348
  f,
10308
10349
  s,
10309
10350
  c
10310
- ]), Iq = e.isInvalid || e.validationState === "invalid" || Fq, Lq = Iq ? "invalid" : null, Rq = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10351
+ ]), tJ = e.isInvalid || e.validationState === "invalid" || eJ, nJ = tJ ? "invalid" : null, rJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10311
10352
  h,
10312
10353
  o
10313
10354
  ]);
@@ -10324,8 +10365,8 @@ Defaulting to \`null\`.`;
10324
10365
  maxValue: c,
10325
10366
  focusedDate: O,
10326
10367
  timeZone: E,
10327
- validationState: Lq,
10328
- isValueInvalid: Iq,
10368
+ validationState: nJ,
10369
+ isValueInvalid: tJ,
10329
10370
  setFocusedDate(e2) {
10330
10371
  Q(e2);
10331
10372
  },
@@ -10350,12 +10391,12 @@ Defaulting to \`null\`.`;
10350
10391
  }));
10351
10392
  },
10352
10393
  focusNextPage() {
10353
- let e2 = M.add(Rq);
10354
- A($f62d864046160412$export$4f5203c0d889109e(O.add(Rq), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, Rq, i, s, c), Rq, i));
10394
+ let e2 = M.add(rJ);
10395
+ A($f62d864046160412$export$4f5203c0d889109e(O.add(rJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, rJ, i, s, c), rJ, i));
10355
10396
  },
10356
10397
  focusPreviousPage() {
10357
- let e2 = M.subtract(Rq);
10358
- A($f62d864046160412$export$4f5203c0d889109e(O.subtract(Rq), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, Rq, i, s, c), Rq, i));
10398
+ let e2 = M.subtract(rJ);
10399
+ A($f62d864046160412$export$4f5203c0d889109e(O.subtract(rJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, rJ, i, s, c), rJ, i));
10359
10400
  },
10360
10401
  focusSectionStart() {
10361
10402
  o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
@@ -10492,13 +10533,13 @@ Defaulting to \`null\`.`;
10492
10533
  end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
10493
10534
  }), q(null);
10494
10535
  }
10495
- }, [$, Fq] = (0, import_react.useState)(false), { isDateUnavailable: Iq } = e, Lq = (0, import_react.useMemo)(() => !h || v ? false : Iq && (Iq(h.start) || Iq(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10496
- Iq,
10536
+ }, [$, eJ] = (0, import_react.useState)(false), { isDateUnavailable: tJ } = e, nJ = (0, import_react.useMemo)(() => !h || v ? false : tJ && (tJ(h.start) || tJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10537
+ tJ,
10497
10538
  h,
10498
10539
  v,
10499
10540
  c,
10500
10541
  d
10501
- ]), Rq = e.isInvalid || e.validationState === "invalid" || Lq, zq = Rq ? "invalid" : null;
10542
+ ]), rJ = e.isInvalid || e.validationState === "invalid" || nJ, iJ = rJ ? "invalid" : null;
10502
10543
  return {
10503
10544
  ...I,
10504
10545
  value: h,
@@ -10506,8 +10547,8 @@ Defaulting to \`null\`.`;
10506
10547
  anchorDate: v,
10507
10548
  setAnchorDate: q,
10508
10549
  highlightedRange: J,
10509
- validationState: zq,
10510
- isValueInvalid: Rq,
10550
+ validationState: iJ,
10551
+ isValueInvalid: rJ,
10511
10552
  selectFocusedDate() {
10512
10553
  Q(I.focusedDate);
10513
10554
  },
@@ -10523,7 +10564,7 @@ Defaulting to \`null\`.`;
10523
10564
  return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
10524
10565
  },
10525
10566
  isDragging: $,
10526
- setDragging: Fq
10567
+ setDragging: eJ
10527
10568
  };
10528
10569
  }
10529
10570
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11710,7 +11751,7 @@ Defaulting to \`null\`.`;
11710
11751
  _,
11711
11752
  S,
11712
11753
  v
11713
- ]), Fq = (0, import_react.useMemo)(() => {
11754
+ ]), eJ = (0, import_react.useMemo)(() => {
11714
11755
  let t2 = w === "h11" || w === "h12", n2 = [
11715
11756
  "era",
11716
11757
  "year",
@@ -11728,15 +11769,15 @@ Defaulting to \`null\`.`;
11728
11769
  e.maxGranularity,
11729
11770
  _,
11730
11771
  w
11731
- ]), [Iq, Lq] = (0, import_react.useState)(M), [Rq, zq] = (0, import_react.useState)(S), [Bq, Vq] = (0, import_react.useState)(w);
11732
- (M !== Iq || w !== Bq || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, Rq)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), Lq(M), zq(S), Vq(w), z(I));
11733
- let Hq = (t2) => {
11734
- if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(Fq)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11772
+ ]), [tJ, nJ] = (0, import_react.useState)(M), [rJ, iJ] = (0, import_react.useState)(S), [aJ, oJ] = (0, import_react.useState)(w);
11773
+ (M !== tJ || w !== aJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, rJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), nJ(M), iJ(S), oJ(w), z(I));
11774
+ let sJ = (t2) => {
11775
+ if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(eJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11735
11776
  else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
11736
11777
  else {
11737
- if (t2.isComplete(Fq)) {
11778
+ if (t2.isComplete(eJ)) {
11738
11779
  let e2 = t2.toValue(M ?? $);
11739
- if (t2.validate(e2, Fq)) {
11780
+ if (t2.validate(e2, eJ)) {
11740
11781
  let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11741
11782
  if (!E || t3.compare(E) !== 0) {
11742
11783
  z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
@@ -11746,83 +11787,83 @@ Defaulting to \`null\`.`;
11746
11787
  }
11747
11788
  z(t2);
11748
11789
  }
11749
- }, Uq = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11790
+ }, cJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11750
11791
  I,
11751
11792
  y,
11752
11793
  M,
11753
11794
  $
11754
- ]), Wq = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(Uq, I, J, Q, S, t, _), [
11755
- Uq,
11795
+ ]), lJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(cJ, I, J, Q, S, t, _), [
11796
+ cJ,
11756
11797
  J,
11757
11798
  Q,
11758
11799
  I,
11759
11800
  S,
11760
11801
  t,
11761
11802
  _
11762
- ]), Gq = (e2, t2) => {
11763
- Hq(I.cycle(e2, t2, $, Fq));
11764
- }, Kq = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11803
+ ]), uJ = (e2, t2) => {
11804
+ sJ(I.cycle(e2, t2, $, eJ));
11805
+ }, dJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11765
11806
  E,
11766
11807
  c,
11767
11808
  d,
11768
11809
  f,
11769
11810
  K
11770
- ]), qq = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11811
+ ]), fJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11771
11812
  ...e,
11772
11813
  value: E,
11773
- builtinValidation: Kq
11774
- }), Jq = qq.displayValidation.isInvalid, Yq = e.validationState || (Jq ? "invalid" : null);
11814
+ builtinValidation: dJ
11815
+ }), pJ = fJ.displayValidation.isInvalid, mJ = e.validationState || (pJ ? "invalid" : null);
11775
11816
  return {
11776
- ...qq,
11817
+ ...fJ,
11777
11818
  value: M,
11778
11819
  defaultValue: e.defaultValue ?? A,
11779
- dateValue: Uq,
11820
+ dateValue: cJ,
11780
11821
  calendar: S,
11781
- setValue: Hq,
11782
- segments: Wq,
11822
+ setValue: sJ,
11823
+ segments: lJ,
11783
11824
  dateFormatter: J,
11784
- validationState: Yq,
11785
- isInvalid: Jq,
11825
+ validationState: mJ,
11826
+ isInvalid: pJ,
11786
11827
  granularity: _,
11787
11828
  maxGranularity: e.maxGranularity ?? "year",
11788
11829
  isDisabled: a,
11789
11830
  isReadOnly: o,
11790
11831
  isRequired: s,
11791
11832
  increment(e2) {
11792
- Gq(e2, 1);
11833
+ uJ(e2, 1);
11793
11834
  },
11794
11835
  decrement(e2) {
11795
- Gq(e2, -1);
11836
+ uJ(e2, -1);
11796
11837
  },
11797
11838
  incrementPage(e2) {
11798
- Gq(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11839
+ uJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11799
11840
  },
11800
11841
  decrementPage(e2) {
11801
- Gq(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11842
+ uJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11802
11843
  },
11803
11844
  incrementToMax(e2) {
11804
11845
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11805
- Hq(I.set(e2, t2, $));
11846
+ sJ(I.set(e2, t2, $));
11806
11847
  },
11807
11848
  decrementToMin(e2) {
11808
11849
  let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
11809
- Hq(I.set(e2, t2, $));
11850
+ sJ(I.set(e2, t2, $));
11810
11851
  },
11811
11852
  setSegment(e2, t2) {
11812
- Hq(I.set(e2, t2, $));
11853
+ sJ(I.set(e2, t2, $));
11813
11854
  },
11814
11855
  confirmPlaceholder() {
11815
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(Fq)) {
11856
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(eJ)) {
11816
11857
  let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11817
11858
  (!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
11818
11859
  }
11819
11860
  },
11820
11861
  clearSegment(e2) {
11821
11862
  let t2 = I;
11822
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), Hq(t2);
11863
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), sJ(t2);
11823
11864
  },
11824
11865
  formatValue(e2) {
11825
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(Uq) : "";
11866
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(cJ) : "";
11826
11867
  },
11827
11868
  getDateFormatter(e2, t2) {
11828
11869
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11942,7 +11983,7 @@ Defaulting to \`null\`.`;
11942
11983
  e.endName
11943
11984
  ]),
11944
11985
  builtinValidation: J
11945
- }), $ = Q.displayValidation.isInvalid, Fq = e.validationState || ($ ? "invalid" : null);
11986
+ }), $ = Q.displayValidation.isInvalid, eJ = e.validationState || ($ ? "invalid" : null);
11946
11987
  return {
11947
11988
  ...Q,
11948
11989
  value: c,
@@ -11988,7 +12029,7 @@ Defaulting to \`null\`.`;
11988
12029
  end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
11989
12030
  }), t.setOpen(n2);
11990
12031
  },
11991
- validationState: Fq,
12032
+ validationState: eJ,
11992
12033
  isInvalid: $,
11993
12034
  formatValue(t2, n2) {
11994
12035
  if (!c || !c.start || !c.end) return null;
@@ -13945,9 +13986,9 @@ Defaulting to \`null\`.`;
13945
13986
  t,
13946
13987
  i.name
13947
13988
  ]), null;
13948
- }), import_compiler_runtime$65 = require_compiler_runtime();
13989
+ }), import_compiler_runtime$68 = require_compiler_runtime();
13949
13990
  EmotionCacheProvider = (e) => {
13950
- let t = (0, import_compiler_runtime$65.c)(6), { container: n, children: i } = e, a;
13991
+ let t = (0, import_compiler_runtime$68.c)(6), { container: n, children: i } = e, a;
13951
13992
  bb0: {
13952
13993
  if (!n) {
13953
13994
  let e3;
@@ -15860,33 +15901,33 @@ try {
15860
15901
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15861
15902
  function y(e2) {
15862
15903
  var _a2, _b, _c, _d;
15863
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, Fq = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15904
+ let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, eJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15864
15905
  h2
15865
- ]), Iq = Fq[t], Lq = Iq || Fq, { colorSchemes: Rq = _, components: zq = v, cssVarPrefix: Bq } = Lq, Vq = Object.keys(Rq).filter((e3) => !!Rq[e3]).join(","), Hq = import_react.useMemo(() => Vq.split(","), [
15866
- Vq
15867
- ]), Uq = typeof s == "string" ? s : s.light, Wq = typeof s == "string" ? s : s.dark, { mode: Gq, setMode: Kq, systemMode: qq, lightColorScheme: Jq, darkColorScheme: Yq, colorScheme: Xq, setColorScheme: Zq } = useCurrentColorScheme({
15868
- supportedColorSchemes: Hq,
15869
- defaultLightColorScheme: Uq,
15870
- defaultDarkColorScheme: Wq,
15906
+ ]), tJ = eJ[t], nJ = tJ || eJ, { colorSchemes: rJ = _, components: iJ = v, cssVarPrefix: aJ } = nJ, oJ = Object.keys(rJ).filter((e3) => !!rJ[e3]).join(","), sJ = import_react.useMemo(() => oJ.split(","), [
15907
+ oJ
15908
+ ]), cJ = typeof s == "string" ? s : s.light, lJ = typeof s == "string" ? s : s.dark, { mode: uJ, setMode: dJ, systemMode: fJ, lightColorScheme: pJ, darkColorScheme: mJ, colorScheme: hJ, setColorScheme: gJ } = useCurrentColorScheme({
15909
+ supportedColorSchemes: sJ,
15910
+ defaultLightColorScheme: cJ,
15911
+ defaultDarkColorScheme: lJ,
15871
15912
  modeStorageKey: y2,
15872
15913
  colorSchemeStorageKey: S2,
15873
- defaultMode: Rq[Uq] && Rq[Wq] ? U : ((_b = (_a2 = Rq[Lq.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = Lq.palette) == null ? void 0 : _c.mode),
15914
+ defaultMode: rJ[cJ] && rJ[lJ] ? U : ((_b = (_a2 = rJ[nJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = nJ.palette) == null ? void 0 : _c.mode),
15874
15915
  storageManager: E,
15875
15916
  storageWindow: O,
15876
15917
  noSsr: K
15877
- }), Qq = Gq, $q = Xq;
15878
- $ && (Qq = Q.mode, $q = Q.colorScheme);
15879
- let eJ = import_react.useMemo(() => {
15918
+ }), _J = uJ, vJ = hJ;
15919
+ $ && (_J = Q.mode, vJ = Q.colorScheme);
15920
+ let yJ = import_react.useMemo(() => {
15880
15921
  var _a3;
15881
- let e3 = $q || Lq.defaultColorScheme, t2 = ((_a3 = Lq.generateThemeVars) == null ? void 0 : _a3.call(Lq)) || Lq.vars, n2 = {
15882
- ...Lq,
15883
- components: zq,
15884
- colorSchemes: Rq,
15885
- cssVarPrefix: Bq,
15922
+ let e3 = vJ || nJ.defaultColorScheme, t2 = ((_a3 = nJ.generateThemeVars) == null ? void 0 : _a3.call(nJ)) || nJ.vars, n2 = {
15923
+ ...nJ,
15924
+ components: iJ,
15925
+ colorSchemes: rJ,
15926
+ cssVarPrefix: aJ,
15886
15927
  vars: t2
15887
15928
  };
15888
15929
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15889
- let t3 = Rq[e3];
15930
+ let t3 = rJ[e3];
15890
15931
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
15891
15932
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
15892
15933
  ...n2[e4],
@@ -15896,31 +15937,31 @@ try {
15896
15937
  }
15897
15938
  return c ? c(n2) : n2;
15898
15939
  }, [
15899
- Lq,
15900
- $q,
15901
- zq,
15902
- Rq,
15903
- Bq
15904
- ]), tJ = Lq.colorSchemeSelector;
15940
+ nJ,
15941
+ vJ,
15942
+ iJ,
15943
+ rJ,
15944
+ aJ
15945
+ ]), bJ = nJ.colorSchemeSelector;
15905
15946
  useEnhancedEffect_default(() => {
15906
- if ($q && M && tJ && tJ !== "media") {
15907
- let e3 = tJ, t2 = tJ;
15908
- if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...Hq.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", $q));
15947
+ if (vJ && M && bJ && bJ !== "media") {
15948
+ let e3 = bJ, t2 = bJ;
15949
+ if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...sJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", vJ));
15909
15950
  else {
15910
- let e4 = t2.replace("%s", $q).match(/\[([^\]]+)\]/);
15951
+ let e4 = t2.replace("%s", vJ).match(/\[([^\]]+)\]/);
15911
15952
  if (e4) {
15912
15953
  let [t3, n2] = e4[1].split("=");
15913
- n2 || Hq.forEach((e5) => {
15914
- M.removeAttribute(t3.replace($q, e5));
15954
+ n2 || sJ.forEach((e5) => {
15955
+ M.removeAttribute(t3.replace(vJ, e5));
15915
15956
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15916
- } else M.setAttribute(t2, $q);
15957
+ } else M.setAttribute(t2, vJ);
15917
15958
  }
15918
15959
  }
15919
15960
  }, [
15920
- $q,
15921
- tJ,
15961
+ vJ,
15962
+ bJ,
15922
15963
  M,
15923
- Hq
15964
+ sJ
15924
15965
  ]), import_react.useEffect(() => {
15925
15966
  let e3;
15926
15967
  if (w2 && q.current && A) {
@@ -15933,48 +15974,48 @@ try {
15933
15974
  clearTimeout(e3);
15934
15975
  };
15935
15976
  }, [
15936
- $q,
15977
+ vJ,
15937
15978
  w2,
15938
15979
  A
15939
15980
  ]), import_react.useEffect(() => (q.current = true, () => {
15940
15981
  q.current = false;
15941
15982
  }), []);
15942
- let nJ = import_react.useMemo(() => ({
15943
- allColorSchemes: Hq,
15944
- colorScheme: $q,
15945
- darkColorScheme: Yq,
15946
- lightColorScheme: Jq,
15947
- mode: Qq,
15948
- setColorScheme: Zq,
15949
- setMode: Kq,
15950
- systemMode: qq
15983
+ let xJ = import_react.useMemo(() => ({
15984
+ allColorSchemes: sJ,
15985
+ colorScheme: vJ,
15986
+ darkColorScheme: mJ,
15987
+ lightColorScheme: pJ,
15988
+ mode: _J,
15989
+ setColorScheme: gJ,
15990
+ setMode: dJ,
15991
+ systemMode: fJ
15951
15992
  }), [
15952
- Hq,
15953
- $q,
15954
- Yq,
15955
- Jq,
15956
- Qq,
15957
- Zq,
15958
- Kq,
15959
- qq,
15960
- eJ.colorSchemeSelector
15961
- ]), rJ = true;
15962
- (z || Lq.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === Bq) && (rJ = false);
15963
- let iJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
15993
+ sJ,
15994
+ vJ,
15995
+ mJ,
15996
+ pJ,
15997
+ _J,
15998
+ gJ,
15999
+ dJ,
16000
+ fJ,
16001
+ yJ.colorSchemeSelector
16002
+ ]), SJ = true;
16003
+ (z || nJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === aJ) && (SJ = false);
16004
+ let CJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
15964
16005
  children: [
15965
16006
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
15966
- themeId: Iq ? t : void 0,
15967
- theme: eJ,
16007
+ themeId: tJ ? t : void 0,
16008
+ theme: yJ,
15968
16009
  children: d2
15969
16010
  }),
15970
- rJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
15971
- styles: ((_d = eJ.generateStyleSheets) == null ? void 0 : _d.call(eJ)) || []
16011
+ SJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16012
+ styles: ((_d = yJ.generateStyleSheets) == null ? void 0 : _d.call(yJ)) || []
15972
16013
  })
15973
16014
  ]
15974
16015
  });
15975
- return $ ? iJ : (0, import_jsx_runtime.jsx)(f.Provider, {
15976
- value: nJ,
15977
- children: iJ
16016
+ return $ ? CJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16017
+ value: xJ,
16018
+ children: CJ
15978
16019
  });
15979
16020
  }
15980
16021
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17474,10 +17515,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17474
17515
  let n = useDefaultProps({
17475
17516
  props: e,
17476
17517
  name: "MuiInputBase"
17477
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: Fq, onKeyDown: Iq, onKeyUp: Lq, placeholder: Rq, readOnly: zq, renderSuffix: Bq, rows: Vq, size: Hq, slotProps: Uq = {}, slots: Wq = {}, startAdornment: Gq, type: Kq = "text", value: qq, ...Jq } = n, Yq = A.value == null ? qq : A.value, { current: Xq } = import_react.useRef(Yq != null), Zq = import_react.useRef(), Qq = import_react.useCallback((e2) => {
17478
- }, []), $q = useForkRef_default(Zq, M, A.ref, Qq), [eJ, tJ] = import_react.useState(false), nJ = useFormControl(), rJ = formControlState({
17518
+ }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: eJ, onKeyDown: tJ, onKeyUp: nJ, placeholder: rJ, readOnly: iJ, renderSuffix: aJ, rows: oJ, size: sJ, slotProps: cJ = {}, slots: lJ = {}, startAdornment: uJ, type: dJ = "text", value: fJ, ...pJ } = n, mJ = A.value == null ? fJ : A.value, { current: hJ } = import_react.useRef(mJ != null), gJ = import_react.useRef(), _J = import_react.useCallback((e2) => {
17519
+ }, []), vJ = useForkRef_default(gJ, M, A.ref, _J), [yJ, bJ] = import_react.useState(false), xJ = useFormControl(), SJ = formControlState({
17479
17520
  props: n,
17480
- muiFormControl: nJ,
17521
+ muiFormControl: xJ,
17481
17522
  states: [
17482
17523
  "color",
17483
17524
  "disabled",
@@ -17488,145 +17529,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17488
17529
  "filled"
17489
17530
  ]
17490
17531
  });
17491
- rJ.focused = nJ ? nJ.focused : eJ, import_react.useEffect(() => {
17492
- !nJ && _ && eJ && (tJ(false), J && J());
17532
+ SJ.focused = xJ ? xJ.focused : yJ, import_react.useEffect(() => {
17533
+ !xJ && _ && yJ && (bJ(false), J && J());
17493
17534
  }, [
17494
- nJ,
17535
+ xJ,
17495
17536
  _,
17496
- eJ,
17537
+ yJ,
17497
17538
  J
17498
17539
  ]);
17499
- let iJ = nJ && nJ.onFilled, aJ = nJ && nJ.onEmpty, oJ = import_react.useCallback((e2) => {
17500
- isFilled(e2) ? iJ && iJ() : aJ && aJ();
17540
+ let CJ = xJ && xJ.onFilled, wJ = xJ && xJ.onEmpty, TJ = import_react.useCallback((e2) => {
17541
+ isFilled(e2) ? CJ && CJ() : wJ && wJ();
17501
17542
  }, [
17502
- iJ,
17503
- aJ
17543
+ CJ,
17544
+ wJ
17504
17545
  ]);
17505
17546
  useEnhancedEffect_default$1(() => {
17506
- Xq && oJ({
17507
- value: Yq
17547
+ hJ && TJ({
17548
+ value: mJ
17508
17549
  });
17509
17550
  }, [
17510
- Yq,
17511
- oJ,
17512
- Xq
17551
+ mJ,
17552
+ TJ,
17553
+ hJ
17513
17554
  ]);
17514
- let sJ = (e2) => {
17515
- Fq && Fq(e2), A.onFocus && A.onFocus(e2), nJ && nJ.onFocus ? nJ.onFocus(e2) : tJ(true);
17516
- }, cJ = (e2) => {
17517
- J && J(e2), A.onBlur && A.onBlur(e2), nJ && nJ.onBlur ? nJ.onBlur(e2) : tJ(false);
17518
- }, lJ = (e2, ...t2) => {
17519
- if (!Xq) {
17520
- let t3 = e2.target || Zq.current;
17555
+ let EJ = (e2) => {
17556
+ eJ && eJ(e2), A.onFocus && A.onFocus(e2), xJ && xJ.onFocus ? xJ.onFocus(e2) : bJ(true);
17557
+ }, DJ = (e2) => {
17558
+ J && J(e2), A.onBlur && A.onBlur(e2), xJ && xJ.onBlur ? xJ.onBlur(e2) : bJ(false);
17559
+ }, OJ = (e2, ...t2) => {
17560
+ if (!hJ) {
17561
+ let t3 = e2.target || gJ.current;
17521
17562
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17522
- oJ({
17563
+ TJ({
17523
17564
  value: t3.value
17524
17565
  });
17525
17566
  }
17526
17567
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17527
17568
  };
17528
17569
  import_react.useEffect(() => {
17529
- oJ(Zq.current);
17570
+ TJ(gJ.current);
17530
17571
  }, []);
17531
- let uJ = (e2) => {
17532
- Zq.current && e2.currentTarget === e2.target && Zq.current.focus(), $ && $(e2);
17533
- }, dJ = O, fJ = A;
17534
- K && dJ === "input" && (fJ = Vq ? {
17572
+ let kJ = (e2) => {
17573
+ gJ.current && e2.currentTarget === e2.target && gJ.current.focus(), $ && $(e2);
17574
+ }, AJ = O, jJ = A;
17575
+ K && AJ === "input" && (jJ = oJ ? {
17535
17576
  type: void 0,
17536
- minRows: Vq,
17537
- maxRows: Vq,
17538
- ...fJ
17577
+ minRows: oJ,
17578
+ maxRows: oJ,
17579
+ ...jJ
17539
17580
  } : {
17540
17581
  type: void 0,
17541
17582
  maxRows: z,
17542
17583
  minRows: U,
17543
- ...fJ
17544
- }, dJ = TextareaAutosize_default);
17545
- let pJ = (e2) => {
17546
- oJ(e2.animationName === "mui-auto-fill-cancel" ? Zq.current : {
17584
+ ...jJ
17585
+ }, AJ = TextareaAutosize_default);
17586
+ let MJ = (e2) => {
17587
+ TJ(e2.animationName === "mui-auto-fill-cancel" ? gJ.current : {
17547
17588
  value: "x"
17548
17589
  });
17549
17590
  };
17550
17591
  import_react.useEffect(() => {
17551
- nJ && nJ.setAdornedStart(!!Gq);
17592
+ xJ && xJ.setAdornedStart(!!uJ);
17552
17593
  }, [
17553
- nJ,
17554
- Gq
17594
+ xJ,
17595
+ uJ
17555
17596
  ]);
17556
- let mJ = {
17597
+ let NJ = {
17557
17598
  ...n,
17558
- color: rJ.color || "primary",
17559
- disabled: rJ.disabled,
17599
+ color: SJ.color || "primary",
17600
+ disabled: SJ.disabled,
17560
17601
  endAdornment: y,
17561
- error: rJ.error,
17562
- focused: rJ.focused,
17563
- formControl: nJ,
17602
+ error: SJ.error,
17603
+ focused: SJ.focused,
17604
+ formControl: xJ,
17564
17605
  fullWidth: w,
17565
- hiddenLabel: rJ.hiddenLabel,
17606
+ hiddenLabel: SJ.hiddenLabel,
17566
17607
  multiline: K,
17567
- size: rJ.size,
17568
- startAdornment: Gq,
17569
- type: Kq
17570
- }, hJ = useUtilityClasses(mJ), gJ = Wq.root || d.Root || InputBaseRoot, _J = Uq.root || f.root || {}, vJ = Wq.input || d.Input || InputBaseInput;
17571
- return fJ = {
17572
- ...fJ,
17573
- ...Uq.input ?? f.input
17608
+ size: SJ.size,
17609
+ startAdornment: uJ,
17610
+ type: dJ
17611
+ }, PJ = useUtilityClasses(NJ), FJ = lJ.root || d.Root || InputBaseRoot, IJ = cJ.root || f.root || {}, LJ = lJ.input || d.Input || InputBaseInput;
17612
+ return jJ = {
17613
+ ...jJ,
17614
+ ...cJ.input ?? f.input
17574
17615
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17575
17616
  children: [
17576
17617
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17577
- (0, import_jsx_runtime.jsxs)(gJ, {
17578
- ..._J,
17618
+ (0, import_jsx_runtime.jsxs)(FJ, {
17619
+ ...IJ,
17579
17620
  ref: t,
17580
- onClick: uJ,
17581
- ...Jq,
17582
- ...!isHostComponent_default(gJ) && {
17621
+ onClick: kJ,
17622
+ ...pJ,
17623
+ ...!isHostComponent_default(FJ) && {
17583
17624
  ownerState: {
17584
- ...mJ,
17585
- ..._J.ownerState
17625
+ ...NJ,
17626
+ ...IJ.ownerState
17586
17627
  }
17587
17628
  },
17588
- className: clsx_default(hJ.root, _J.className, s, zq && "MuiInputBase-readOnly"),
17629
+ className: clsx_default(PJ.root, IJ.className, s, iJ && "MuiInputBase-readOnly"),
17589
17630
  children: [
17590
- Gq,
17631
+ uJ,
17591
17632
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17592
17633
  value: null,
17593
- children: (0, import_jsx_runtime.jsx)(vJ, {
17594
- "aria-invalid": rJ.error,
17634
+ children: (0, import_jsx_runtime.jsx)(LJ, {
17635
+ "aria-invalid": SJ.error,
17595
17636
  "aria-describedby": i,
17596
17637
  autoComplete: a,
17597
17638
  autoFocus: o,
17598
17639
  defaultValue: h,
17599
- disabled: rJ.disabled,
17640
+ disabled: SJ.disabled,
17600
17641
  id: E,
17601
- onAnimationStart: pJ,
17642
+ onAnimationStart: MJ,
17602
17643
  name: q,
17603
- placeholder: Rq,
17604
- readOnly: zq,
17605
- required: rJ.required,
17606
- rows: Vq,
17607
- value: Yq,
17608
- onKeyDown: Iq,
17609
- onKeyUp: Lq,
17610
- type: Kq,
17611
- ...fJ,
17612
- ...!isHostComponent_default(vJ) && {
17613
- as: dJ,
17644
+ placeholder: rJ,
17645
+ readOnly: iJ,
17646
+ required: SJ.required,
17647
+ rows: oJ,
17648
+ value: mJ,
17649
+ onKeyDown: tJ,
17650
+ onKeyUp: nJ,
17651
+ type: dJ,
17652
+ ...jJ,
17653
+ ...!isHostComponent_default(LJ) && {
17654
+ as: AJ,
17614
17655
  ownerState: {
17615
- ...mJ,
17616
- ...fJ.ownerState
17656
+ ...NJ,
17657
+ ...jJ.ownerState
17617
17658
  }
17618
17659
  },
17619
- ref: $q,
17620
- className: clsx_default(hJ.input, fJ.className, zq && "MuiInputBase-readOnly"),
17621
- onBlur: cJ,
17622
- onChange: lJ,
17623
- onFocus: sJ
17660
+ ref: vJ,
17661
+ className: clsx_default(PJ.input, jJ.className, iJ && "MuiInputBase-readOnly"),
17662
+ onBlur: DJ,
17663
+ onChange: OJ,
17664
+ onFocus: EJ
17624
17665
  })
17625
17666
  }),
17626
17667
  y,
17627
- Bq ? Bq({
17628
- ...rJ,
17629
- startAdornment: Gq
17668
+ aJ ? aJ({
17669
+ ...SJ,
17670
+ startAdornment: uJ
17630
17671
  }) : null
17631
17672
  ]
17632
17673
  })
@@ -18702,30 +18743,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18702
18743
  M,
18703
18744
  i,
18704
18745
  a
18705
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), Fq = useTextColor(), Iq = useJsonViewerStore((e2) => e2.colorspace.base0C), Lq = useJsonViewerStore((e2) => e2.colorspace.base0A), Rq = useJsonViewerStore((e2) => e2.displayComma), zq = useJsonViewerStore((e2) => e2.quotesOnKeys), Bq = useJsonViewerStore((e2) => e2.rootName), Vq = U === t, Hq = Number.isInteger(Number(A)), Uq = useJsonViewerStore((e2) => e2.enableAdd), Wq = useJsonViewerStore((e2) => e2.onAdd), Gq = (0, import_react.useMemo)(() => !Wq || a !== void 0 || Uq === false || v === false ? false : typeof Uq == "function" ? !!Uq(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18706
- Wq,
18746
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), eJ = useTextColor(), tJ = useJsonViewerStore((e2) => e2.colorspace.base0C), nJ = useJsonViewerStore((e2) => e2.colorspace.base0A), rJ = useJsonViewerStore((e2) => e2.displayComma), iJ = useJsonViewerStore((e2) => e2.quotesOnKeys), aJ = useJsonViewerStore((e2) => e2.rootName), oJ = U === t, sJ = Number.isInteger(Number(A)), cJ = useJsonViewerStore((e2) => e2.enableAdd), lJ = useJsonViewerStore((e2) => e2.onAdd), uJ = (0, import_react.useMemo)(() => !lJ || a !== void 0 || cJ === false || v === false ? false : typeof cJ == "function" ? !!cJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18747
+ lJ,
18707
18748
  a,
18708
18749
  i,
18709
- Uq,
18750
+ cJ,
18710
18751
  v,
18711
18752
  t
18712
- ]), Kq = useJsonViewerStore((e2) => e2.enableDelete), qq = useJsonViewerStore((e2) => e2.onDelete), Jq = (0, import_react.useMemo)(() => !qq || a !== void 0 || Vq || Kq === false || v === false ? false : typeof Kq == "function" ? !!Kq(i, t) : Kq, [
18713
- qq,
18753
+ ]), dJ = useJsonViewerStore((e2) => e2.enableDelete), fJ = useJsonViewerStore((e2) => e2.onDelete), pJ = (0, import_react.useMemo)(() => !fJ || a !== void 0 || oJ || dJ === false || v === false ? false : typeof dJ == "function" ? !!dJ(i, t) : dJ, [
18754
+ fJ,
18714
18755
  a,
18715
- Vq,
18756
+ oJ,
18716
18757
  i,
18717
- Kq,
18758
+ dJ,
18718
18759
  v,
18719
18760
  t
18720
- ]), Yq = useJsonViewerStore((e2) => e2.enableClipboard), { copy: Xq, copied: Zq } = useClipboard(), Qq = useJsonViewerStore((e2) => e2.highlightUpdates), $q = (0, import_react.useMemo)(() => !Qq || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
18721
- Qq,
18761
+ ]), mJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: hJ, copied: gJ } = useClipboard(), _J = useJsonViewerStore((e2) => e2.highlightUpdates), vJ = (0, import_react.useMemo)(() => !_J || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
18762
+ _J,
18722
18763
  n,
18723
18764
  t
18724
- ]), eJ = (0, import_react.useRef)();
18765
+ ]), yJ = (0, import_react.useRef)();
18725
18766
  (0, import_react.useEffect)(() => {
18726
- eJ.current && $q && "animate" in eJ.current && eJ.current.animate([
18767
+ yJ.current && vJ && "animate" in yJ.current && yJ.current.animate([
18727
18768
  {
18728
- backgroundColor: Lq
18769
+ backgroundColor: nJ
18729
18770
  },
18730
18771
  {
18731
18772
  backgroundColor: ""
@@ -18735,22 +18776,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18735
18776
  easing: "ease-in"
18736
18777
  });
18737
18778
  }, [
18738
- Lq,
18739
- $q,
18779
+ nJ,
18780
+ vJ,
18740
18781
  n,
18741
18782
  t
18742
18783
  ]);
18743
- let tJ = (0, import_react.useCallback)((e2) => {
18784
+ let bJ = (0, import_react.useCallback)((e2) => {
18744
18785
  e2.preventDefault(), h && E(h(t)), Q(true);
18745
18786
  }, [
18746
18787
  h,
18747
18788
  t
18748
- ]), nJ = (0, import_react.useCallback)(() => {
18789
+ ]), xJ = (0, import_react.useCallback)(() => {
18749
18790
  Q(false), E("");
18750
18791
  }, [
18751
18792
  Q,
18752
18793
  E
18753
- ]), rJ = (0, import_react.useCallback)((e2) => {
18794
+ ]), SJ = (0, import_react.useCallback)((e2) => {
18754
18795
  if (Q(false), _) try {
18755
18796
  $(i, t, _(e2));
18756
18797
  } catch {
@@ -18761,14 +18802,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18761
18802
  $,
18762
18803
  i,
18763
18804
  t
18764
- ]), iJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18805
+ ]), CJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18765
18806
  children: [
18766
18807
  (0, import_jsx_runtime.jsx)(IconBox, {
18767
18808
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18768
18809
  sx: {
18769
18810
  fontSize: ".8rem"
18770
18811
  },
18771
- onClick: nJ
18812
+ onClick: xJ
18772
18813
  })
18773
18814
  }),
18774
18815
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18776,22 +18817,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18776
18817
  sx: {
18777
18818
  fontSize: ".8rem"
18778
18819
  },
18779
- onClick: () => rJ(w)
18820
+ onClick: () => SJ(w)
18780
18821
  })
18781
18822
  })
18782
18823
  ]
18783
18824
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18784
18825
  children: [
18785
- Yq && (0, import_jsx_runtime.jsx)(IconBox, {
18826
+ mJ && (0, import_jsx_runtime.jsx)(IconBox, {
18786
18827
  onClick: (e2) => {
18787
18828
  e2.preventDefault();
18788
18829
  try {
18789
- Xq(i, t, copyString);
18830
+ hJ(i, t, copyString);
18790
18831
  } catch (e3) {
18791
18832
  console.error(e3);
18792
18833
  }
18793
18834
  },
18794
- children: Zq ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18835
+ children: gJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18795
18836
  sx: {
18796
18837
  fontSize: ".8rem"
18797
18838
  }
@@ -18802,16 +18843,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18802
18843
  })
18803
18844
  }),
18804
18845
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18805
- onClick: tJ,
18846
+ onClick: bJ,
18806
18847
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18807
18848
  sx: {
18808
18849
  fontSize: ".8rem"
18809
18850
  }
18810
18851
  })
18811
18852
  }),
18812
- Gq && (0, import_jsx_runtime.jsx)(IconBox, {
18853
+ uJ && (0, import_jsx_runtime.jsx)(IconBox, {
18813
18854
  onClick: (e2) => {
18814
- e2.preventDefault(), Wq == null ? void 0 : Wq(i);
18855
+ e2.preventDefault(), lJ == null ? void 0 : lJ(i);
18815
18856
  },
18816
18857
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18817
18858
  sx: {
@@ -18819,9 +18860,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18819
18860
  }
18820
18861
  })
18821
18862
  }),
18822
- Jq && (0, import_jsx_runtime.jsx)(IconBox, {
18863
+ pJ && (0, import_jsx_runtime.jsx)(IconBox, {
18823
18864
  onClick: (e2) => {
18824
- e2.preventDefault(), qq == null ? void 0 : qq(i, t);
18865
+ e2.preventDefault(), fJ == null ? void 0 : fJ(i, t);
18825
18866
  },
18826
18867
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18827
18868
  sx: {
@@ -18834,24 +18875,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18834
18875
  f,
18835
18876
  h,
18836
18877
  _,
18837
- Zq,
18838
- Xq,
18878
+ gJ,
18879
+ hJ,
18839
18880
  S,
18840
18881
  J,
18841
- Yq,
18842
- Gq,
18843
- Jq,
18882
+ mJ,
18883
+ uJ,
18884
+ pJ,
18844
18885
  w,
18845
18886
  i,
18846
18887
  t,
18847
- Wq,
18848
- qq,
18849
- tJ,
18850
- nJ,
18851
- rJ
18852
- ]), aJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18888
+ lJ,
18889
+ fJ,
18890
+ bJ,
18891
+ xJ,
18892
+ SJ
18893
+ ]), wJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18853
18894
  t
18854
- ]), oJ = !aJ && !!(c && d), sJ = useJsonViewerStore((e2) => e2.keyRenderer), cJ = (0, import_react.useMemo)(() => ({
18895
+ ]), TJ = !wJ && !!(c && d), EJ = useJsonViewerStore((e2) => e2.keyRenderer), DJ = (0, import_react.useMemo)(() => ({
18855
18896
  path: i,
18856
18897
  inspect: K,
18857
18898
  setInspect: q,
@@ -18883,18 +18924,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18883
18924
  className: "data-key",
18884
18925
  sx: {
18885
18926
  lineHeight: 1.5,
18886
- color: Fq,
18927
+ color: eJ,
18887
18928
  letterSpacing: 0.5,
18888
18929
  opacity: 0.8
18889
18930
  },
18890
18931
  onClick: (0, import_react.useCallback)((e2) => {
18891
- e2.isDefaultPrevented() || aJ || q((e3) => !e3);
18932
+ e2.isDefaultPrevented() || wJ || q((e3) => !e3);
18892
18933
  }, [
18893
- aJ,
18934
+ wJ,
18894
18935
  q
18895
18936
  ]),
18896
18937
  children: [
18897
- oJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18938
+ TJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18898
18939
  className: "data-key-toggle-expanded",
18899
18940
  sx: {
18900
18941
  fontSize: ".8rem",
@@ -18912,27 +18953,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18912
18953
  }
18913
18954
  }) : null,
18914
18955
  (0, import_jsx_runtime.jsx)(Box_default, {
18915
- ref: eJ,
18956
+ ref: yJ,
18916
18957
  className: "data-key-key",
18917
18958
  component: "span",
18918
- children: Vq && O === 0 ? Bq === false ? null : zq ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18959
+ children: oJ && O === 0 ? aJ === false ? null : iJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18919
18960
  children: [
18920
18961
  '"',
18921
- Bq,
18962
+ aJ,
18922
18963
  '"'
18923
18964
  ]
18924
18965
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
18925
- children: Bq
18926
- }) : sJ.when(cJ) ? (0, import_jsx_runtime.jsx)(sJ, {
18927
- ...cJ
18928
- }) : a === void 0 && (Hq ? (0, import_jsx_runtime.jsx)(Box_default, {
18966
+ children: aJ
18967
+ }) : EJ.when(DJ) ? (0, import_jsx_runtime.jsx)(EJ, {
18968
+ ...DJ
18969
+ }) : a === void 0 && (sJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18929
18970
  component: "span",
18930
18971
  style: {
18931
- color: Iq,
18932
- userSelect: Hq ? "none" : "auto"
18972
+ color: tJ,
18973
+ userSelect: sJ ? "none" : "auto"
18933
18974
  },
18934
18975
  children: A
18935
- }) : zq ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18976
+ }) : iJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18936
18977
  children: [
18937
18978
  '"',
18938
18979
  A,
@@ -18942,7 +18983,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18942
18983
  children: A
18943
18984
  }))
18944
18985
  }),
18945
- Vq ? Bq !== false && (0, import_jsx_runtime.jsx)(DataBox, {
18986
+ oJ ? aJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
18946
18987
  className: "data-key-colon",
18947
18988
  sx: {
18948
18989
  mr: 0.5
@@ -18955,38 +18996,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18955
18996
  ".data-key-key:empty + &": {
18956
18997
  display: "none"
18957
18998
  },
18958
- userSelect: Hq ? "none" : "auto"
18999
+ userSelect: sJ ? "none" : "auto"
18959
19000
  },
18960
19001
  children: ":"
18961
19002
  }),
18962
19003
  c && (0, import_jsx_runtime.jsx)(c, {
18963
- ...cJ
19004
+ ...DJ
18964
19005
  }),
18965
- I && oJ && K && iJ
19006
+ I && TJ && K && CJ
18966
19007
  ]
18967
19008
  }),
18968
19009
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
18969
19010
  path: i,
18970
19011
  value: w,
18971
19012
  setValue: E,
18972
- abortEditing: nJ,
18973
- commitEditing: rJ
19013
+ abortEditing: xJ,
19014
+ commitEditing: SJ
18974
19015
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
18975
- ...cJ
19016
+ ...DJ
18976
19017
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
18977
19018
  component: "span",
18978
19019
  className: "data-value-fallback",
18979
19020
  children: `fallback: ${t}`
18980
19021
  }),
18981
19022
  d && (0, import_jsx_runtime.jsx)(d, {
18982
- ...cJ
19023
+ ...DJ
18983
19024
  }),
18984
- !o && Rq && (0, import_jsx_runtime.jsx)(DataBox, {
19025
+ !o && rJ && (0, import_jsx_runtime.jsx)(DataBox, {
18985
19026
  children: ","
18986
19027
  }),
18987
- I && oJ && !K && iJ,
18988
- I && !oJ && iJ,
18989
- !I && J && iJ
19028
+ I && TJ && !K && CJ,
19029
+ I && !TJ && CJ,
19030
+ !I && J && CJ
18990
19031
  ]
18991
19032
  });
18992
19033
  }, query = "(prefers-color-scheme: dark)";
@@ -19115,9 +19156,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19115
19156
  })
19116
19157
  })
19117
19158
  });
19118
- }, import_compiler_runtime$64 = require_compiler_runtime();
19159
+ }, import_compiler_runtime$67 = require_compiler_runtime();
19119
19160
  HtmlOutput = (0, import_react.memo)((e) => {
19120
- let t = (0, import_compiler_runtime$64.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
19161
+ let t = (0, import_compiler_runtime$67.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
19121
19162
  if (!n) return null;
19122
19163
  let d = !c, f;
19123
19164
  t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
@@ -19136,9 +19177,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19136
19177
  }), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
19137
19178
  });
19138
19179
  HtmlOutput.displayName = "HtmlOutput";
19139
- var import_compiler_runtime$63 = require_compiler_runtime();
19180
+ var import_compiler_runtime$66 = require_compiler_runtime();
19140
19181
  const ImageOutput = (e) => {
19141
- let t = (0, import_compiler_runtime$63.c)(10), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
19182
+ let t = (0, import_compiler_runtime$66.c)(10), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
19142
19183
  t[0] !== o || t[1] !== a ? (d = {}, a !== void 0 && (d.width = typeof a == "number" ? `${a}px` : a), o !== void 0 && (d.height = typeof o == "number" ? `${o}px` : o), t[0] = o, t[1] = a, t[2] = d) : d = t[2];
19143
19184
  let f;
19144
19185
  t[3] !== c || t[4] !== n || t[5] !== d ? (f = (0, import_jsx_runtime.jsx)("img", {
@@ -19152,9 +19193,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19152
19193
  children: f
19153
19194
  }), t[7] = s, t[8] = f, t[9] = h) : h = t[9], h;
19154
19195
  };
19155
- var import_compiler_runtime$62 = require_compiler_runtime();
19196
+ var import_compiler_runtime$65 = require_compiler_runtime();
19156
19197
  Kbd = (e) => {
19157
- let t = (0, import_compiler_runtime$62.c)(5), n;
19198
+ let t = (0, import_compiler_runtime$65.c)(5), n;
19158
19199
  t[0] === e.className ? n = t[1] : (n = clsx_default(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), t[0] = e.className, t[1] = n);
19159
19200
  let i;
19160
19201
  return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
@@ -19162,9 +19203,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19162
19203
  children: e.children
19163
19204
  }), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
19164
19205
  };
19165
- var import_compiler_runtime$61 = require_compiler_runtime();
19206
+ var import_compiler_runtime$64 = require_compiler_runtime();
19166
19207
  const ExternalLink$1 = (e) => {
19167
- let t = (0, import_compiler_runtime$61.c)(3), { href: n, children: i } = e, a;
19208
+ let t = (0, import_compiler_runtime$64.c)(3), { href: n, children: i } = e, a;
19168
19209
  return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
19169
19210
  href: n,
19170
19211
  target: "_blank",
@@ -19198,7 +19239,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19198
19239
  e.openApplication("packages"), focusPackagesInput();
19199
19240
  };
19200
19241
  var KEY = "marimo:ai:chatState:v5";
19201
- const aiCompletionCellAtom = atom(null);
19242
+ const aiCompletionCellAtom = atom(null), pendingAiPromptAtom = atom(null);
19202
19243
  atomWithStorage("marimo:ai:includeOtherCells", true, jotaiJsonStorage);
19203
19244
  function removeEmptyChats(e) {
19204
19245
  let t = /* @__PURE__ */ new Map();
@@ -19312,7 +19353,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19312
19353
  fixType: "ai",
19313
19354
  onFix: async (t2) => {
19314
19355
  var _a3;
19315
- let n = getDatasourceContext(t2.cellId), i = `Fix the SQL statement: ${e.msg}.`;
19356
+ let n = getDatasourceContext(t2.cellId, store), i = `Fix the SQL statement: ${e.msg}.`;
19316
19357
  n && (i += `
19317
19358
  Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletionCell({
19318
19359
  cellId: t2.cellId,
@@ -19351,7 +19392,108 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19351
19392
  os: "os",
19352
19393
  re: "re",
19353
19394
  sys: "sys"
19354
- }, import_compiler_runtime$60 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
19395
+ };
19396
+ const agentSessionStateAtom = atomWithStorage("marimo:acp:sessions:v1", {
19397
+ sessions: [],
19398
+ activeTabId: null
19399
+ }, jotaiJsonStorage);
19400
+ atom((e) => {
19401
+ let t = e(agentSessionStateAtom);
19402
+ return t.activeTabId && t.sessions.find((e2) => e2.tabId === t.activeTabId) || null;
19403
+ }, (e, t, n) => {
19404
+ t(agentSessionStateAtom, (e2) => ({
19405
+ ...e2,
19406
+ activeTabId: n
19407
+ }));
19408
+ });
19409
+ var import_compiler_runtime$63 = require_compiler_runtime(), getModelKeyForRole = (e) => {
19410
+ switch (e) {
19411
+ case "chat":
19412
+ return "chat_model";
19413
+ case "autocomplete":
19414
+ return "autocomplete_model";
19415
+ case "edit":
19416
+ return "edit_model";
19417
+ }
19418
+ };
19419
+ const useModelChange = () => {
19420
+ let e = (0, import_compiler_runtime$63.c)(12), [t, n] = useAtom(userConfigAtom), { saveUserConfig: i } = useRequestClient(), a;
19421
+ e[0] !== i || e[1] !== n ? (a = async (e2) => {
19422
+ await i({
19423
+ config: e2
19424
+ }).then(() => {
19425
+ n((t2) => ({
19426
+ ...t2,
19427
+ ...e2
19428
+ }));
19429
+ });
19430
+ }, e[0] = i, e[1] = n, e[2] = a) : a = e[2];
19431
+ let o = a, s;
19432
+ e[3] !== o || e[4] !== t ? (s = async (e2, n2) => {
19433
+ var _a2, _b, _c, _d, _e2;
19434
+ let i2 = getModelKeyForRole(n2);
19435
+ i2 && await o({
19436
+ ai: {
19437
+ ...t.ai,
19438
+ models: {
19439
+ custom_models: ((_b = (_a2 = t.ai) == null ? void 0 : _a2.models) == null ? void 0 : _b.custom_models) ?? [],
19440
+ displayed_models: ((_d = (_c = t.ai) == null ? void 0 : _c.models) == null ? void 0 : _d.displayed_models) ?? [],
19441
+ ...(_e2 = t.ai) == null ? void 0 : _e2.models,
19442
+ [i2]: e2
19443
+ }
19444
+ }
19445
+ });
19446
+ }, e[3] = o, e[4] = t, e[5] = s) : s = e[5];
19447
+ let c = s, d;
19448
+ e[6] !== o || e[7] !== t ? (d = async (e2) => {
19449
+ await o({
19450
+ ai: {
19451
+ ...t.ai,
19452
+ mode: e2
19453
+ }
19454
+ });
19455
+ }, e[6] = o, e[7] = t, e[8] = d) : d = e[8];
19456
+ let f = d, h;
19457
+ return e[9] !== f || e[10] !== c ? (h = {
19458
+ saveModelChange: c,
19459
+ saveModeChange: f
19460
+ }, e[9] = f, e[10] = c, e[11] = h) : h = e[11], h;
19461
+ };
19462
+ var import_compiler_runtime$62 = require_compiler_runtime();
19463
+ const aiPanelTabAtom = atomWithStorage("marimo:chrome:ai-panel-tab", "chat", jotaiJsonStorage);
19464
+ function useAiPanelTab() {
19465
+ let e = (0, import_compiler_runtime$62.c)(3), [t, n] = useAtom(aiPanelTabAtom), i;
19466
+ return e[0] !== t || e[1] !== n ? (i = {
19467
+ aiPanelTab: t,
19468
+ setAiPanelTab: n
19469
+ }, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
19470
+ }
19471
+ var import_compiler_runtime$61 = require_compiler_runtime(), FIX_CHAT_MODE = "code_mode";
19472
+ function resolveAiPanelTab(e, t) {
19473
+ return e || (getFeatureFlag("external_agents") ? t : "chat");
19474
+ }
19475
+ function useOpenAiAssistant() {
19476
+ let e = (0, import_compiler_runtime$61.c)(6), { openApplication: t } = useChromeActions(), { setAiPanelTab: n } = useAiPanelTab(), { saveModeChange: i } = useModelChange(), a = useSetAtom(pendingAiPromptAtom), o = useStore(), s;
19477
+ return e[0] !== t || e[1] !== i || e[2] !== n || e[3] !== a || e[4] !== o ? (s = async (e2) => {
19478
+ let s2 = resolveAiPanelTab(e2.panel, o.get(aiPanelTabAtom)), c = o.get(aiModelConfiguredAtom), d = getFeatureFlag("external_agents") && o.get(agentSessionStateAtom).sessions.length > 0;
19479
+ if (!(s2 === "agents" ? d : c)) {
19480
+ toast({
19481
+ title: s2 === "agents" ? "No agent session" : "AI not configured",
19482
+ description: s2 === "agents" ? "Start an agent session or switch to the chat panel." : "Configure an AI provider and chat model to fix with AI.",
19483
+ variant: "danger"
19484
+ });
19485
+ return;
19486
+ }
19487
+ e2.panel && n(e2.panel), s2 === "chat" && await i(FIX_CHAT_MODE).catch(_temp$13), a({
19488
+ prompt: e2.prompt,
19489
+ submit: e2.submit ?? false
19490
+ }), t("ai");
19491
+ }, e[0] = t, e[1] = i, e[2] = n, e[3] = a, e[4] = o, e[5] = s) : s = e[5], useEvent_default(s);
19492
+ }
19493
+ function _temp$13() {
19494
+ return Logger.error("Failed to save mode change");
19495
+ }
19496
+ var import_compiler_runtime$60 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
19355
19497
  function useFixMode() {
19356
19498
  let e = (0, import_compiler_runtime$60.c)(3), [t, n] = useAtom(fixModeAtom), i;
19357
19499
  return e[0] !== t || e[1] !== n ? (i = {
@@ -19360,21 +19502,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19360
19502
  }, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
19361
19503
  }
19362
19504
  var import_compiler_runtime$59 = require_compiler_runtime();
19505
+ function buildFixInChatPrompt(e, t) {
19506
+ if (e != null) return `@error://${e}
19507
+
19508
+ Please fix this error.`;
19509
+ let n = t == null ? void 0 : t.trim();
19510
+ return n ? `My code gives the following error. Please fix it:
19511
+
19512
+ ${n}` : "Please fix this error.";
19513
+ }
19363
19514
  const AutoFixButton = (e) => {
19364
- let t = (0, import_compiler_runtime$59.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiFeaturesEnabledAtom), f;
19515
+ let t = (0, import_compiler_runtime$59.c)(25), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiFeaturesEnabledAtom), f;
19365
19516
  if (t[0] !== d || t[1] !== n) {
19366
19517
  let e2;
19367
19518
  t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
19368
19519
  aiEnabled: d
19369
19520
  }), t[3] = d, t[4] = e2), f = n.flatMap(e2), t[0] = d, t[1] = n, t[2] = f;
19370
19521
  } else f = t[2];
19371
- let _ = f, v = useSetAtom(aiCompletionCellAtom);
19522
+ let _ = f, v = useSetAtom(aiCompletionCellAtom), y = useOpenAiAssistant();
19372
19523
  if (_.length === 0) return null;
19373
- let y = _[0], S;
19374
- t[5] !== i || t[6] !== c || t[7] !== y || t[8] !== v || t[9] !== s ? (S = (e2) => {
19524
+ let S = _[0], w;
19525
+ t[5] !== i || t[6] !== c || t[7] !== S || t[8] !== v || t[9] !== s ? (w = (e2) => {
19375
19526
  var _a2;
19376
19527
  let t2 = (_a2 = s.get(notebookAtom).cellHandles[i].current) == null ? void 0 : _a2.editorView;
19377
- y.onFix({
19528
+ S.onFix({
19378
19529
  addCodeBelow: (e3) => {
19379
19530
  c({
19380
19531
  cellId: i,
@@ -19390,63 +19541,90 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19390
19541
  triggerFix: e2
19391
19542
  }
19392
19543
  }), t2 == null ? void 0 : t2.focus();
19393
- }, t[5] = i, t[6] = c, t[7] = y, t[8] = v, t[9] = s, t[10] = S) : S = t[10];
19394
- let w = S, E;
19395
- t[11] === o ? E = t[12] : (E = cn("my-2", o), t[11] = o, t[12] = E);
19396
- let O;
19397
- t[13] !== y.description || t[14] !== y.fixType || t[15] !== y.title || t[16] !== w ? (O = y.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
19398
- tooltip: y.description,
19399
- openPrompt: () => w(false),
19400
- applyAutofix: () => w(true)
19544
+ }, t[5] = i, t[6] = c, t[7] = S, t[8] = v, t[9] = s, t[10] = w) : w = t[10];
19545
+ let E = w, O;
19546
+ t[11] !== i || t[12] !== y ? (O = () => {
19547
+ y({
19548
+ prompt: buildFixInChatPrompt(i)
19549
+ });
19550
+ }, t[11] = i, t[12] = y, t[13] = O) : O = t[13];
19551
+ let A = O, M;
19552
+ t[14] === o ? M = t[15] : (M = cn("my-2", o), t[14] = o, t[15] = M);
19553
+ let I;
19554
+ t[16] !== S.description || t[17] !== S.fixType || t[18] !== S.title || t[19] !== E || t[20] !== A ? (I = S.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
19555
+ tooltip: S.description,
19556
+ openPrompt: () => E(false),
19557
+ applyAutofix: () => E(true),
19558
+ openChat: A
19401
19559
  }) : (0, import_jsx_runtime.jsx)(Tooltip, {
19402
- content: y.description,
19560
+ content: S.description,
19403
19561
  align: "start",
19404
19562
  children: (0, import_jsx_runtime.jsxs)(Button, {
19405
19563
  size: "xs",
19406
19564
  variant: "outline",
19407
19565
  className: "font-normal",
19408
- onClick: () => w(false),
19566
+ onClick: () => E(false),
19409
19567
  children: [
19410
19568
  (0, import_jsx_runtime.jsx)(Wrench, {
19411
19569
  className: "h-3 w-3 mr-2"
19412
19570
  }),
19413
- y.title
19571
+ S.title
19414
19572
  ]
19415
19573
  })
19416
- }), t[13] = y.description, t[14] = y.fixType, t[15] = y.title, t[16] = w, t[17] = O) : O = t[17];
19417
- let A;
19418
- return t[18] !== E || t[19] !== O ? (A = (0, import_jsx_runtime.jsx)("div", {
19419
- className: E,
19420
- children: O
19421
- }), t[18] = E, t[19] = O, t[20] = A) : A = t[20], A;
19422
- };
19423
- var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
19574
+ }), t[16] = S.description, t[17] = S.fixType, t[18] = S.title, t[19] = E, t[20] = A, t[21] = I) : I = t[21];
19575
+ let z;
19576
+ return t[22] !== M || t[23] !== I ? (z = (0, import_jsx_runtime.jsx)("div", {
19577
+ className: M,
19578
+ children: I
19579
+ }), t[22] = M, t[23] = I, t[24] = z) : z = t[24], z;
19580
+ };
19581
+ var MODE_CONFIG = {
19582
+ autofix: {
19583
+ Icon: Wrench,
19584
+ title: "Inline AI Fix",
19585
+ description: "Apply AI fixes inline in the cell"
19586
+ },
19587
+ chat: {
19588
+ Icon: HatGlasses,
19589
+ title: "Fix with AI assistant",
19590
+ description: "Open the AI sidebar to fix"
19591
+ },
19592
+ prompt: {
19593
+ Icon: Sparkles,
19594
+ title: "Suggest a prompt",
19595
+ description: "Edit the prompt before applying"
19596
+ }
19597
+ }, FIX_MODES = [
19598
+ "autofix",
19599
+ "prompt",
19600
+ "chat"
19601
+ ];
19424
19602
  const AIFixButton = (e) => {
19425
- let t = (0, import_compiler_runtime$59.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
19426
- t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
19427
- className: "h-3 w-3 mr-2 mb-0.5"
19428
- }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
19603
+ let t = (0, import_compiler_runtime$59.c)(18), { tooltip: n, openPrompt: i, applyAutofix: a, openChat: o } = e, { fixMode: s, setFixMode: c } = useFixMode(), d = i;
19604
+ s === "chat" ? d = o : s === "autofix" && (d = a);
19605
+ let { Icon: f, title: _ } = MODE_CONFIG[s], v;
19606
+ t[0] === f ? v = t[1] : (v = (0, import_jsx_runtime.jsx)(f, {
19429
19607
  className: "h-3 w-3 mr-2 mb-0.5"
19430
- }), t[0] = o, t[1] = d);
19431
- let f = o === "prompt" ? PromptTitle : AutofixTitle, _;
19432
- t[2] !== c || t[3] !== d || t[4] !== f ? (_ = (0, import_jsx_runtime.jsxs)(Button, {
19608
+ }), t[0] = f, t[1] = v);
19609
+ let y;
19610
+ t[2] !== d || t[3] !== v || t[4] !== _ ? (y = (0, import_jsx_runtime.jsxs)(Button, {
19433
19611
  size: "xs",
19434
19612
  variant: "outline",
19435
19613
  className: "font-normal rounded-r-none border-r-0",
19436
- onClick: c,
19614
+ onClick: d,
19437
19615
  children: [
19438
- d,
19439
- f
19616
+ v,
19617
+ _
19440
19618
  ]
19441
- }), t[2] = c, t[3] = d, t[4] = f, t[5] = _) : _ = t[5];
19442
- let v;
19443
- t[6] !== _ || t[7] !== n ? (v = (0, import_jsx_runtime.jsx)(Tooltip, {
19619
+ }), t[2] = d, t[3] = v, t[4] = _, t[5] = y) : y = t[5];
19620
+ let S;
19621
+ t[6] !== y || t[7] !== n ? (S = (0, import_jsx_runtime.jsx)(Tooltip, {
19444
19622
  content: n,
19445
19623
  align: "start",
19446
- children: _
19447
- }), t[6] = _, t[7] = n, t[8] = v) : v = t[8];
19448
- let y;
19449
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
19624
+ children: y
19625
+ }), t[6] = y, t[7] = n, t[8] = S) : S = t[8];
19626
+ let w;
19627
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
19450
19628
  asChild: true,
19451
19629
  children: (0, import_jsx_runtime.jsx)(Button, {
19452
19630
  size: "xs",
@@ -19457,72 +19635,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19457
19635
  className: "h-3 w-3"
19458
19636
  })
19459
19637
  })
19460
- }), t[9] = y) : y = t[9];
19461
- let S;
19462
- t[10] !== o || t[11] !== s ? (S = () => {
19463
- s(o === "prompt" ? "autofix" : "prompt");
19464
- }, t[10] = o, t[11] = s, t[12] = S) : S = t[12];
19465
- let w = o === "prompt" ? "autofix" : "prompt", E;
19466
- t[13] === w ? E = t[14] : (E = (0, import_jsx_runtime.jsx)(AiModeItem, {
19467
- mode: w
19468
- }), t[13] = w, t[14] = E);
19638
+ }), t[9] = w) : w = t[9];
19639
+ let E;
19640
+ t[10] !== s || t[11] !== c ? (E = FIX_MODES.map((e2) => (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
19641
+ className: "flex items-center gap-2",
19642
+ onClick: () => c(e2),
19643
+ children: (0, import_jsx_runtime.jsx)(AiModeItem, {
19644
+ mode: e2,
19645
+ selected: e2 === s
19646
+ })
19647
+ }, e2)), t[10] = s, t[11] = c, t[12] = E) : E = t[12];
19469
19648
  let O;
19470
- t[15] !== S || t[16] !== E ? (O = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
19649
+ t[13] === E ? O = t[14] : (O = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
19471
19650
  children: [
19472
- y,
19651
+ w,
19473
19652
  (0, import_jsx_runtime.jsx)(DropdownMenuContent, {
19474
19653
  align: "end",
19475
19654
  className: "w-56",
19476
- children: (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
19477
- className: "flex items-center gap-2",
19478
- onClick: S,
19479
- children: E
19480
- })
19655
+ children: E
19481
19656
  })
19482
19657
  ]
19483
- }), t[15] = S, t[16] = E, t[17] = O) : O = t[17];
19658
+ }), t[13] = E, t[14] = O);
19484
19659
  let A;
19485
- return t[18] !== O || t[19] !== v ? (A = (0, import_jsx_runtime.jsxs)("div", {
19660
+ return t[15] !== S || t[16] !== O ? (A = (0, import_jsx_runtime.jsxs)("div", {
19486
19661
  className: "flex",
19487
19662
  children: [
19488
- v,
19663
+ S,
19489
19664
  O
19490
19665
  ]
19491
- }), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
19666
+ }), t[15] = S, t[16] = O, t[17] = A) : A = t[17], A;
19492
19667
  };
19493
19668
  var AiModeItem = (e) => {
19494
- let t = (0, import_compiler_runtime$59.c)(12), { mode: n } = e, i;
19495
- t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
19496
- className: "h-4 w-4"
19497
- }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
19498
- className: "h-4 w-4"
19499
- }), t[0] = n, t[1] = i);
19500
- let a = i, o = n === "prompt" ? PromptTitle : AutofixTitle, s = n === "prompt" ? "Edit the prompt before applying" : "Apply AI fixes automatically", c;
19501
- t[2] === o ? c = t[3] : (c = (0, import_jsx_runtime.jsx)("span", {
19669
+ let t = (0, import_compiler_runtime$59.c)(15), { mode: n, selected: i } = e, { Icon: a, title: o, description: s } = MODE_CONFIG[n], c;
19670
+ t[0] === a ? c = t[1] : (c = (0, import_jsx_runtime.jsx)(a, {
19671
+ className: "h-4 w-4 shrink-0"
19672
+ }), t[0] = a, t[1] = c);
19673
+ let d;
19674
+ t[2] === o ? d = t[3] : (d = (0, import_jsx_runtime.jsx)("span", {
19502
19675
  className: "font-medium",
19503
19676
  children: o
19504
- }), t[2] = o, t[3] = c);
19505
- let d;
19506
- t[4] === s ? d = t[5] : (d = (0, import_jsx_runtime.jsx)("span", {
19677
+ }), t[2] = o, t[3] = d);
19678
+ let f;
19679
+ t[4] === s ? f = t[5] : (f = (0, import_jsx_runtime.jsx)("span", {
19507
19680
  className: "text-xs text-muted-foreground",
19508
19681
  children: s
19509
- }), t[4] = s, t[5] = d);
19510
- let f;
19511
- t[6] !== c || t[7] !== d ? (f = (0, import_jsx_runtime.jsxs)("div", {
19682
+ }), t[4] = s, t[5] = f);
19683
+ let h;
19684
+ t[6] !== d || t[7] !== f ? (h = (0, import_jsx_runtime.jsxs)("div", {
19512
19685
  className: "flex flex-col",
19513
19686
  children: [
19514
- c,
19515
- d
19687
+ d,
19688
+ f
19516
19689
  ]
19517
- }), t[6] = c, t[7] = d, t[8] = f) : f = t[8];
19518
- let h;
19519
- return t[9] !== a || t[10] !== f ? (h = (0, import_jsx_runtime.jsxs)("div", {
19520
- className: "flex items-center gap-2",
19690
+ }), t[6] = d, t[7] = f, t[8] = h) : h = t[8];
19691
+ let _;
19692
+ t[9] === i ? _ = t[10] : (_ = i && (0, import_jsx_runtime.jsx)(Check, {
19693
+ className: "h-4 w-4 ml-auto shrink-0"
19694
+ }), t[9] = i, t[10] = _);
19695
+ let v;
19696
+ return t[11] !== c || t[12] !== h || t[13] !== _ ? (v = (0, import_jsx_runtime.jsxs)("div", {
19697
+ className: "flex items-center gap-2 w-full",
19521
19698
  children: [
19522
- a,
19523
- f
19699
+ c,
19700
+ h,
19701
+ _
19524
19702
  ]
19525
- }), t[9] = a, t[10] = f, t[11] = h) : h = t[11], h;
19703
+ }), t[11] = c, t[12] = h, t[13] = _, t[14] = v) : v = t[14], v;
19526
19704
  };
19527
19705
  require_compiler_runtime();
19528
19706
  function useFilename() {
@@ -19935,18 +20113,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19935
20113
  }
19936
20114
  let y, S, w, E, O, A;
19937
20115
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
19938
- let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), Fq = n.filter(_temp16), Iq = n.filter(_temp17), Lq = n.filter(_temp18), Rq;
19939
- t[17] === s ? Rq = t[18] : (Rq = () => {
20116
+ let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), Q = n.filter(_temp13), $ = n.filter(_temp14), eJ = n.filter(_temp15), tJ = n.filter(_temp16), nJ = n.filter(_temp17), rJ = n.filter(_temp18), iJ;
20117
+ t[17] === s ? iJ = t[18] : (iJ = () => {
19940
20118
  s.openApplication("scratchpad");
19941
- }, t[17] = s, t[18] = Rq);
19942
- let zq = Rq, Vq = () => {
20119
+ }, t[17] = s, t[18] = iJ);
20120
+ let aJ = iJ, oJ = () => {
19943
20121
  let t2 = [];
19944
- if (Fq.length > 0 || Iq.length > 0) {
19945
- let e3 = Fq.some(_temp19), n2 = !e3 && Fq.some(_temp20);
20122
+ if (tJ.length > 0 || nJ.length > 0) {
20123
+ let e3 = tJ.some(_temp19), n2 = !e3 && tJ.some(_temp20);
19946
20124
  t2.push((0, import_jsx_runtime.jsxs)("div", {
19947
20125
  children: [
19948
- Fq.map(_temp21),
19949
- Iq.map(_temp22),
20126
+ tJ.map(_temp21),
20127
+ nJ.map(_temp22),
19950
20128
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
19951
20129
  size: "xs",
19952
20130
  variant: "outline",
@@ -19977,8 +20155,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19977
20155
  }),
19978
20156
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
19979
20157
  errors: [
19980
- ...Fq,
19981
- ...Iq
20158
+ ...tJ,
20159
+ ...nJ
19982
20160
  ],
19983
20161
  cellId: i
19984
20162
  })
@@ -20139,7 +20317,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20139
20317
  size: "xs",
20140
20318
  variant: "link",
20141
20319
  className: "my-2 font-normal mx-0 px-0",
20142
- onClick: zq,
20320
+ onClick: aJ,
20143
20321
  children: [
20144
20322
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20145
20323
  className: "h-3"
@@ -20314,42 +20492,42 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20314
20492
  children: q.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
20315
20493
  })
20316
20494
  ]
20317
- }, "strict-exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20495
+ }, "strict-exception")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20318
20496
  children: [
20319
- J.map(_temp32),
20497
+ Q.map(_temp32),
20320
20498
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20321
- errors: J,
20499
+ errors: Q,
20322
20500
  cellId: i
20323
20501
  })
20324
20502
  ]
20325
- }, "internal")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20503
+ }, "internal")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20326
20504
  children: [
20327
- Q.map(_temp33),
20505
+ $.map(_temp33),
20328
20506
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20329
- errors: Q,
20507
+ errors: $,
20330
20508
  cellId: i
20331
20509
  })
20332
20510
  ]
20333
- }, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20511
+ }, "ancestor-prevented")), eJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20334
20512
  children: [
20335
- $.map(_temp34),
20513
+ eJ.map(_temp34),
20336
20514
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20337
- errors: $,
20515
+ errors: eJ,
20338
20516
  cellId: i
20339
20517
  })
20340
20518
  ]
20341
- }, "ancestor-stopped")), Lq.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20519
+ }, "ancestor-stopped")), rJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20342
20520
  children: [
20343
- Lq.map(_temp35),
20521
+ rJ.map(_temp35),
20344
20522
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20345
- errors: Lq,
20523
+ errors: rJ,
20346
20524
  cellId: i,
20347
20525
  className: "mt-2.5"
20348
20526
  })
20349
20527
  ]
20350
20528
  }, "sql-errors")), t2;
20351
- }, Hq;
20352
- t[19] === v ? Hq = t[20] : (Hq = v && (0, import_jsx_runtime.jsxs)("div", {
20529
+ }, sJ;
20530
+ t[19] === v ? sJ = t[20] : (sJ = v && (0, import_jsx_runtime.jsxs)("div", {
20353
20531
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20354
20532
  children: [
20355
20533
  v,
@@ -20361,22 +20539,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20361
20539
  })
20362
20540
  })
20363
20541
  ]
20364
- }), t[19] = v, t[20] = Hq);
20365
- let Uq;
20366
- t[21] !== _ || t[22] !== d ? (Uq = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20542
+ }), t[19] = v, t[20] = sJ);
20543
+ let cJ;
20544
+ t[21] !== _ || t[22] !== d ? (cJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20367
20545
  className: `font-code font-medium ${_}`,
20368
20546
  children: d
20369
- }), t[21] = _, t[22] = d, t[23] = Uq) : Uq = t[23];
20370
- let Wq;
20371
- t[24] !== Hq || t[25] !== Uq ? (Wq = (0, import_jsx_runtime.jsxs)("div", {
20547
+ }), t[21] = _, t[22] = d, t[23] = cJ) : cJ = t[23];
20548
+ let lJ;
20549
+ t[24] !== sJ || t[25] !== cJ ? (lJ = (0, import_jsx_runtime.jsxs)("div", {
20372
20550
  className: "space-y-0.5",
20373
20551
  children: [
20374
- Hq,
20375
- Uq
20552
+ sJ,
20553
+ cJ
20376
20554
  ]
20377
- }), t[24] = Hq, t[25] = Uq, t[26] = Wq) : Wq = t[26];
20378
- let Gq = Wq;
20379
- y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = Gq, S = "flex flex-col gap-4", w = Vq(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20555
+ }), t[24] = sJ, t[25] = cJ, t[26] = lJ) : lJ = t[26];
20556
+ let uJ = lJ;
20557
+ y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = uJ, S = "flex flex-col gap-4", w = oJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20380
20558
  } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20381
20559
  let M;
20382
20560
  t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
@@ -26434,7 +26612,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26434
26612
  function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
26435
26613
  let E = (0, import_react.useContext)(PanelGroupContext);
26436
26614
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
26437
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), Fq = (0, import_react.useRef)({
26615
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), eJ = (0, import_react.useRef)({
26438
26616
  callbacks: {
26439
26617
  onCollapse: f,
26440
26618
  onExpand: h,
@@ -26454,12 +26632,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26454
26632
  (0, import_react.useRef)({
26455
26633
  didLogMissingDefaultSizeWarning: false
26456
26634
  }), useIsomorphicLayoutEffect$1(() => {
26457
- let { callbacks: e2, constraints: t2 } = Fq.current, o2 = {
26635
+ let { callbacks: e2, constraints: t2 } = eJ.current, o2 = {
26458
26636
  ...t2
26459
26637
  };
26460
- Fq.current.id = $, Fq.current.idIsFromProps = s !== void 0, Fq.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(Fq.current, o2);
26638
+ eJ.current.id = $, eJ.current.idIsFromProps = s !== void 0, eJ.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(eJ.current, o2);
26461
26639
  }), useIsomorphicLayoutEffect$1(() => {
26462
- let e2 = Fq.current;
26640
+ let e2 = eJ.current;
26463
26641
  return q(e2), () => {
26464
26642
  Q(e2);
26465
26643
  };
@@ -26470,25 +26648,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26470
26648
  Q
26471
26649
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26472
26650
  collapse: () => {
26473
- O(Fq.current);
26651
+ O(eJ.current);
26474
26652
  },
26475
26653
  expand: (e2) => {
26476
- A(Fq.current, e2);
26654
+ A(eJ.current, e2);
26477
26655
  },
26478
26656
  getId() {
26479
26657
  return $;
26480
26658
  },
26481
26659
  getSize() {
26482
- return M(Fq.current);
26660
+ return M(eJ.current);
26483
26661
  },
26484
26662
  isCollapsed() {
26485
- return U(Fq.current);
26663
+ return U(eJ.current);
26486
26664
  },
26487
26665
  isExpanded() {
26488
- return !U(Fq.current);
26666
+ return !U(eJ.current);
26489
26667
  },
26490
26668
  resize: (e2) => {
26491
- J(Fq.current, e2);
26669
+ J(eJ.current, e2);
26492
26670
  }
26493
26671
  }), [
26494
26672
  O,
@@ -26498,21 +26676,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26498
26676
  $,
26499
26677
  J
26500
26678
  ]);
26501
- let Iq = I(Fq.current, a);
26679
+ let tJ = I(eJ.current, a);
26502
26680
  return (0, import_react.createElement)(S, {
26503
26681
  ...w,
26504
26682
  children: e,
26505
26683
  className: t,
26506
26684
  id: $,
26507
26685
  style: {
26508
- ...Iq,
26686
+ ...tJ,
26509
26687
  ...y
26510
26688
  },
26511
26689
  [DATA_ATTRIBUTES.groupId]: z,
26512
26690
  [DATA_ATTRIBUTES.panel]: "",
26513
26691
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26514
26692
  [DATA_ATTRIBUTES.panelId]: $,
26515
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + Iq.flexGrow).toFixed(1)
26693
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + tJ.flexGrow).toFixed(1)
26516
26694
  });
26517
26695
  }
26518
26696
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -27297,13 +27475,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27297
27475
  }, [
27298
27476
  S,
27299
27477
  E
27300
- ]), Fq = (0, import_react.useCallback)((e2) => {
27478
+ ]), eJ = (0, import_react.useCallback)((e2) => {
27301
27479
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27302
27480
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
27303
- }, []), Iq = (0, import_react.useCallback)((e2) => {
27481
+ }, []), tJ = (0, import_react.useCallback)((e2) => {
27304
27482
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27305
27483
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27306
- }, []), Lq = (0, import_react.useCallback)((e2) => {
27484
+ }, []), nJ = (0, import_react.useCallback)((e2) => {
27307
27485
  let { panelDataArray: t2 } = K.current;
27308
27486
  t2.push(e2), t2.sort((e3, t3) => {
27309
27487
  let n2 = e3.order, i2 = t3.order;
@@ -27335,7 +27513,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27335
27513
  e2.layout = [];
27336
27514
  };
27337
27515
  }, []);
27338
- let Rq = (0, import_react.useCallback)((e2) => {
27516
+ let rJ = (0, import_react.useCallback)((e2) => {
27339
27517
  let t2 = false, n2 = y.current;
27340
27518
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27341
27519
  n3.preventDefault();
@@ -27353,7 +27531,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27353
27531
  }), I2 = !compareLayouts(f2, A2);
27354
27532
  (isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
27355
27533
  };
27356
- }, []), zq = (0, import_react.useCallback)((e2, t2) => {
27534
+ }, []), iJ = (0, import_react.useCallback)((e2, t2) => {
27357
27535
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
27358
27536
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27359
27537
  let d2 = adjustLayoutByDelta({
@@ -27365,12 +27543,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27365
27543
  trigger: "imperative-api"
27366
27544
  });
27367
27545
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
27368
- }, []), Bq = (0, import_react.useCallback)((e2, t2) => {
27546
+ }, []), aJ = (0, import_react.useCallback)((e2, t2) => {
27369
27547
  let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
27370
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || zq(e2, s2) : h2 < f2 ? zq(e2, f2) : h2 > d2 && zq(e2, d2));
27548
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || iJ(e2, s2) : h2 < f2 ? iJ(e2, f2) : h2 > d2 && iJ(e2, d2));
27371
27549
  }, [
27372
- zq
27373
- ]), Vq = (0, import_react.useCallback)((e2, t2) => {
27550
+ iJ
27551
+ ]), oJ = (0, import_react.useCallback)((e2, t2) => {
27374
27552
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27375
27553
  if (!y.current) return;
27376
27554
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27382,14 +27560,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27382
27560
  initialCursorPosition: o2,
27383
27561
  initialLayout: i2
27384
27562
  });
27385
- }, []), Hq = (0, import_react.useCallback)(() => {
27563
+ }, []), sJ = (0, import_react.useCallback)(() => {
27386
27564
  w(null);
27387
- }, []), Uq = (0, import_react.useCallback)((e2) => {
27565
+ }, []), cJ = (0, import_react.useCallback)((e2) => {
27388
27566
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27389
27567
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27390
27568
  }, [
27391
27569
  A
27392
- ]), Wq = (0, import_react.useMemo)(() => ({
27570
+ ]), lJ = (0, import_react.useMemo)(() => ({
27393
27571
  collapsePanel: q,
27394
27572
  direction: i,
27395
27573
  dragState: S,
@@ -27397,15 +27575,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27397
27575
  getPanelSize: Q,
27398
27576
  getPanelStyle: $,
27399
27577
  groupId: v,
27400
- isPanelCollapsed: Fq,
27401
- isPanelExpanded: Iq,
27402
- reevaluatePanelConstraints: Bq,
27403
- registerPanel: Lq,
27404
- registerResizeHandle: Rq,
27405
- resizePanel: zq,
27406
- startDragging: Vq,
27407
- stopDragging: Hq,
27408
- unregisterPanel: Uq,
27578
+ isPanelCollapsed: eJ,
27579
+ isPanelExpanded: tJ,
27580
+ reevaluatePanelConstraints: aJ,
27581
+ registerPanel: nJ,
27582
+ registerResizeHandle: rJ,
27583
+ resizePanel: iJ,
27584
+ startDragging: oJ,
27585
+ stopDragging: sJ,
27586
+ unregisterPanel: cJ,
27409
27587
  panelGroupElement: y.current
27410
27588
  }), [
27411
27589
  q,
@@ -27415,16 +27593,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27415
27593
  Q,
27416
27594
  $,
27417
27595
  v,
27418
- Fq,
27419
- Iq,
27420
- Bq,
27421
- Lq,
27422
- Rq,
27423
- zq,
27424
- Vq,
27425
- Hq,
27426
- Uq
27427
- ]), Gq = {
27596
+ eJ,
27597
+ tJ,
27598
+ aJ,
27599
+ nJ,
27600
+ rJ,
27601
+ iJ,
27602
+ oJ,
27603
+ sJ,
27604
+ cJ
27605
+ ]), uJ = {
27428
27606
  display: "flex",
27429
27607
  flexDirection: i === "horizontal" ? "row" : "column",
27430
27608
  height: "100%",
@@ -27432,7 +27610,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27432
27610
  width: "100%"
27433
27611
  };
27434
27612
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27435
- value: Wq
27613
+ value: lJ
27436
27614
  }, (0, import_react.createElement)(h, {
27437
27615
  ..._,
27438
27616
  children: t,
@@ -27440,7 +27618,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27440
27618
  id: o,
27441
27619
  ref: y,
27442
27620
  style: {
27443
- ...Gq,
27621
+ ...uJ,
27444
27622
  ...f
27445
27623
  },
27446
27624
  [DATA_ATTRIBUTES.group]: "",
@@ -27517,31 +27695,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27517
27695
  });
27518
27696
  let O = (0, import_react.useContext)(PanelGroupContext);
27519
27697
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
27520
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, Fq] = (0, import_react.useState)(false), [Iq, Lq] = (0, import_react.useState)(null), Rq = (0, import_react.useRef)({
27698
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, eJ] = (0, import_react.useState)(false), [tJ, nJ] = (0, import_react.useState)(null), rJ = (0, import_react.useRef)({
27521
27699
  state: J
27522
27700
  });
27523
27701
  useIsomorphicLayoutEffect$1(() => {
27524
- Rq.current.state = J;
27702
+ rJ.current.state = J;
27525
27703
  }), (0, import_react.useEffect)(() => {
27526
- if (n) Lq(null);
27704
+ if (n) nJ(null);
27527
27705
  else {
27528
27706
  let e2 = I(q);
27529
- Lq(() => e2);
27707
+ nJ(() => e2);
27530
27708
  }
27531
27709
  }, [
27532
27710
  n,
27533
27711
  q,
27534
27712
  I
27535
27713
  ]);
27536
- let zq = (i == null ? void 0 : i.coarse) ?? 15, Bq = (i == null ? void 0 : i.fine) ?? 5;
27714
+ let iJ = (i == null ? void 0 : i.coarse) ?? 15, aJ = (i == null ? void 0 : i.fine) ?? 5;
27537
27715
  (0, import_react.useEffect)(() => {
27538
- if (n || Iq == null) return;
27716
+ if (n || tJ == null) return;
27539
27717
  let e2 = w.current;
27540
27718
  assert(e2, "Element ref not attached");
27541
27719
  let t2 = false;
27542
27720
  return registerResizeHandle(q, e2, A, {
27543
- coarse: zq,
27544
- fine: Bq
27721
+ coarse: iJ,
27722
+ fine: aJ
27545
27723
  }, (e3, n2, i2) => {
27546
27724
  if (!n2) {
27547
27725
  Q("inactive");
@@ -27555,8 +27733,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27555
27733
  break;
27556
27734
  }
27557
27735
  case "move": {
27558
- let { state: e4 } = Rq.current;
27559
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), Iq(i2);
27736
+ let { state: e4 } = rJ.current;
27737
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), tJ(i2);
27560
27738
  break;
27561
27739
  }
27562
27740
  case "up": {
@@ -27568,22 +27746,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27568
27746
  }
27569
27747
  });
27570
27748
  }, [
27571
- zq,
27749
+ iJ,
27572
27750
  A,
27573
27751
  n,
27574
- Bq,
27752
+ aJ,
27575
27753
  I,
27576
27754
  q,
27577
- Iq,
27755
+ tJ,
27578
27756
  z,
27579
27757
  U
27580
27758
  ]), useWindowSplitterResizeHandlerBehavior({
27581
27759
  disabled: n,
27582
27760
  handleId: q,
27583
- resizeHandler: Iq,
27761
+ resizeHandler: tJ,
27584
27762
  panelGroupElement: K
27585
27763
  });
27586
- let Vq = {
27764
+ let oJ = {
27587
27765
  touchAction: "none",
27588
27766
  userSelect: "none"
27589
27767
  };
@@ -27593,15 +27771,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27593
27771
  className: t,
27594
27772
  id: a,
27595
27773
  onBlur: () => {
27596
- Fq(false), o == null ? void 0 : o();
27774
+ eJ(false), o == null ? void 0 : o();
27597
27775
  },
27598
27776
  onFocus: () => {
27599
- Fq(true), d == null ? void 0 : d();
27777
+ eJ(true), d == null ? void 0 : d();
27600
27778
  },
27601
27779
  ref: w,
27602
27780
  role: "separator",
27603
27781
  style: {
27604
- ...Vq,
27782
+ ...oJ,
27605
27783
  ..._
27606
27784
  },
27607
27785
  tabIndex: v,
@@ -27900,7 +28078,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27900
28078
  }, [
27901
28079
  h
27902
28080
  ]), k(() => {
27903
- U(6, Iq);
28081
+ U(6, tJ);
27904
28082
  }, []);
27905
28083
  let K = import_react.useMemo(() => ({
27906
28084
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -27909,7 +28087,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27909
28087
  var _a2;
27910
28088
  var a2, o2, s2;
27911
28089
  if (!Object.is(n.current[e2], t2)) {
27912
- if (n.current[e2] = t2, e2 === "search") Fq(), Q(), U(1, $);
28090
+ if (n.current[e2] = t2, e2 === "search") eJ(), Q(), U(1, $);
27913
28091
  else if (e2 === "value") {
27914
28092
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
27915
28093
  let e3 = document.getElementById(I);
@@ -27917,8 +28095,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27917
28095
  }
27918
28096
  if (U(7, () => {
27919
28097
  var _a3;
27920
- n.current.selectedItemId = (_a3 = Lq()) == null ? void 0 : _a3.id, K.emit();
27921
- }), i2 || U(5, Iq), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28098
+ n.current.selectedItemId = (_a3 = nJ()) == null ? void 0 : _a3.id, K.emit();
28099
+ }), i2 || U(5, tJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
27922
28100
  let e3 = t2 ?? "";
27923
28101
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
27924
28102
  return;
@@ -27943,12 +28121,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27943
28121
  item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
27944
28122
  e2
27945
28123
  ]))), U(3, () => {
27946
- Fq(), Q(), n.current.value || $(), K.emit();
28124
+ eJ(), Q(), n.current.value || $(), K.emit();
27947
28125
  }), () => {
27948
28126
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
27949
- let t3 = Lq();
28127
+ let t3 = nJ();
27950
28128
  U(4, () => {
27951
- Fq(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28129
+ eJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
27952
28130
  });
27953
28131
  }),
27954
28132
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -27981,7 +28159,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27981
28159
  ]);
27982
28160
  });
27983
28161
  let i2 = z.current;
27984
- Rq().sort((t3, n2) => {
28162
+ rJ().sort((t3, n2) => {
27985
28163
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
27986
28164
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
27987
28165
  }).forEach((e3) => {
@@ -27995,10 +28173,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27995
28173
  }
27996
28174
  function $() {
27997
28175
  var _a2;
27998
- let e2 = (_a2 = Rq().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28176
+ let e2 = (_a2 = rJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
27999
28177
  K.setState("value", e2 || void 0);
28000
28178
  }
28001
- function Fq() {
28179
+ function eJ() {
28002
28180
  var _a2, _b;
28003
28181
  if (!n.current.search || c.current.shouldFilter === false) {
28004
28182
  n.current.filtered.count = i.current.size;
@@ -28016,43 +28194,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28016
28194
  }
28017
28195
  n.current.filtered.count = e2;
28018
28196
  }
28019
- function Iq() {
28197
+ function tJ() {
28020
28198
  var _a2, _b;
28021
28199
  var e2;
28022
- let t2 = Lq();
28200
+ let t2 = nJ();
28023
28201
  t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
28024
28202
  block: "nearest"
28025
28203
  })), t2.scrollIntoView({
28026
28204
  block: "nearest"
28027
28205
  }));
28028
28206
  }
28029
- function Lq() {
28207
+ function nJ() {
28030
28208
  var _a2;
28031
28209
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
28032
28210
  }
28033
- function Rq() {
28211
+ function rJ() {
28034
28212
  var _a2;
28035
28213
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
28036
28214
  }
28037
- function zq(e2) {
28038
- let t2 = Rq()[e2];
28215
+ function iJ(e2) {
28216
+ let t2 = rJ()[e2];
28039
28217
  t2 && K.setState("value", t2.getAttribute(T));
28040
28218
  }
28041
- function Bq(e2) {
28219
+ function aJ(e2) {
28042
28220
  var t2;
28043
- let n2 = Lq(), i2 = Rq(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28221
+ let n2 = nJ(), i2 = rJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28044
28222
  (t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
28045
28223
  }
28046
- function Vq(e2) {
28224
+ function oJ(e2) {
28047
28225
  var _a2;
28048
- let t2 = (_a2 = Lq()) == null ? void 0 : _a2.closest(N$1), n2;
28226
+ let t2 = (_a2 = nJ()) == null ? void 0 : _a2.closest(N$1), n2;
28049
28227
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
28050
- n2 ? K.setState("value", n2.getAttribute(T)) : Bq(e2);
28228
+ n2 ? K.setState("value", n2.getAttribute(T)) : aJ(e2);
28051
28229
  }
28052
- let Hq = () => zq(Rq().length - 1), Uq = (e2) => {
28053
- e2.preventDefault(), e2.metaKey ? Hq() : e2.altKey ? Vq(1) : Bq(1);
28054
- }, Wq = (e2) => {
28055
- e2.preventDefault(), e2.metaKey ? zq(0) : e2.altKey ? Vq(-1) : Bq(-1);
28230
+ let sJ = () => iJ(rJ().length - 1), cJ = (e2) => {
28231
+ e2.preventDefault(), e2.metaKey ? sJ() : e2.altKey ? oJ(1) : aJ(1);
28232
+ }, lJ = (e2) => {
28233
+ e2.preventDefault(), e2.metaKey ? iJ(0) : e2.altKey ? oJ(-1) : aJ(-1);
28056
28234
  };
28057
28235
  return import_react.createElement(Primitive.div, {
28058
28236
  ref: t,
@@ -28066,27 +28244,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28066
28244
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
28067
28245
  case "n":
28068
28246
  case "j":
28069
- E && e2.ctrlKey && Uq(e2);
28247
+ E && e2.ctrlKey && cJ(e2);
28070
28248
  break;
28071
28249
  case "ArrowDown":
28072
- Uq(e2);
28250
+ cJ(e2);
28073
28251
  break;
28074
28252
  case "p":
28075
28253
  case "k":
28076
- E && e2.ctrlKey && Wq(e2);
28254
+ E && e2.ctrlKey && lJ(e2);
28077
28255
  break;
28078
28256
  case "ArrowUp":
28079
- Wq(e2);
28257
+ lJ(e2);
28080
28258
  break;
28081
28259
  case "Home":
28082
- e2.preventDefault(), zq(0);
28260
+ e2.preventDefault(), iJ(0);
28083
28261
  break;
28084
28262
  case "End":
28085
- e2.preventDefault(), Hq();
28263
+ e2.preventDefault(), sJ();
28086
28264
  break;
28087
28265
  case "Enter": {
28088
28266
  e2.preventDefault();
28089
- let t3 = Lq();
28267
+ let t3 = nJ();
28090
28268
  if (t3) {
28091
28269
  let e3 = new Event(Z);
28092
28270
  t3.dispatchEvent(e3);
@@ -28493,155 +28671,155 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28493
28671
  onSelect: Functions.NOOP
28494
28672
  });
28495
28673
  Combobox = (e) => {
28496
- let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
28497
- t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = Q);
28498
- let $ = I === void 0 ? false : I, Fq = z === void 0 ? true : z, Iq = U === void 0 ? "Search..." : U, Lq = K === void 0 ? "Nothing found." : K, Rq = q === void 0 ? false : q, zq = J === void 0 ? false : J, Bq = s ?? false, Vq;
28499
- t[25] !== v || t[26] !== w || t[27] !== Bq ? (Vq = {
28674
+ let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, $;
28675
+ t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], $ = t[24]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: $, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = $);
28676
+ let eJ = I === void 0 ? false : I, tJ = z === void 0 ? true : z, nJ = U === void 0 ? "Search..." : U, rJ = K === void 0 ? "Nothing found." : K, iJ = q === void 0 ? false : q, aJ = J === void 0 ? false : J, oJ = s ?? false, sJ;
28677
+ t[25] !== v || t[26] !== w || t[27] !== oJ ? (sJ = {
28500
28678
  prop: w,
28501
- defaultProp: Bq,
28679
+ defaultProp: oJ,
28502
28680
  onChange: v
28503
- }, t[25] = v, t[26] = w, t[27] = Bq, t[28] = Vq) : Vq = t[28];
28504
- let [Hq, Uq] = useControllableState(Vq), Wq = Hq === void 0 ? false : Hq, Gq;
28505
- t[29] === S ? Gq = t[30] : (Gq = (e2) => {
28681
+ }, t[25] = v, t[26] = w, t[27] = oJ, t[28] = sJ) : sJ = t[28];
28682
+ let [cJ, lJ] = useControllableState(sJ), uJ = cJ === void 0 ? false : cJ, dJ;
28683
+ t[29] === S ? dJ = t[30] : (dJ = (e2) => {
28506
28684
  S == null ? void 0 : S(e2);
28507
- }, t[29] = S, t[30] = Gq);
28508
- let Kq;
28509
- t[31] !== c || t[32] !== Gq || t[33] !== Q ? (Kq = {
28510
- prop: Q,
28685
+ }, t[29] = S, t[30] = dJ);
28686
+ let fJ;
28687
+ t[31] !== c || t[32] !== dJ || t[33] !== $ ? (fJ = {
28688
+ prop: $,
28511
28689
  defaultProp: c,
28512
- onChange: Gq
28513
- }, t[31] = c, t[32] = Gq, t[33] = Q, t[34] = Kq) : Kq = t[34];
28514
- let [qq, Jq] = useControllableState(Kq), Yq;
28515
- t[35] === qq ? Yq = t[36] : (Yq = (e2) => Array.isArray(qq) ? qq.includes(e2) : qq === e2, t[35] = qq, t[36] = Yq);
28516
- let Xq = Yq, Zq;
28517
- t[37] !== _ || t[38] !== $ || t[39] !== Uq || t[40] !== Jq || t[41] !== qq ? (Zq = (e2) => {
28690
+ onChange: dJ
28691
+ }, t[31] = c, t[32] = dJ, t[33] = $, t[34] = fJ) : fJ = t[34];
28692
+ let [pJ, mJ] = useControllableState(fJ), hJ;
28693
+ t[35] === pJ ? hJ = t[36] : (hJ = (e2) => Array.isArray(pJ) ? pJ.includes(e2) : pJ === e2, t[35] = pJ, t[36] = hJ);
28694
+ let gJ = hJ, _J;
28695
+ t[37] !== _ || t[38] !== eJ || t[39] !== lJ || t[40] !== mJ || t[41] !== pJ ? (_J = (e2) => {
28518
28696
  let t2 = e2;
28519
- if ($) if (Array.isArray(qq)) if (qq.includes(t2)) {
28520
- let n2 = qq.filter((t3) => t3 !== e2);
28697
+ if (eJ) if (Array.isArray(pJ)) if (pJ.includes(t2)) {
28698
+ let n2 = pJ.filter((t3) => t3 !== e2);
28521
28699
  t2 = n2.length > 0 ? n2 : [];
28522
28700
  } else t2 = [
28523
- ...qq,
28701
+ ...pJ,
28524
28702
  t2
28525
28703
  ];
28526
28704
  else t2 = [
28527
28705
  t2
28528
28706
  ];
28529
- else qq === e2 && (t2 = null);
28530
- Jq(t2), (_ ?? $) || Uq(false);
28531
- }, t[37] = _, t[38] = $, t[39] = Uq, t[40] = Jq, t[41] = qq, t[42] = Zq) : Zq = t[42];
28532
- let Qq = Zq, $q;
28533
- t[43] !== Rq || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== qq ? ($q = () => $ && Rq && E ? E : qq == null ? E ?? "--" : Array.isArray(qq) ? qq.length === 0 ? E ?? "--" : qq.length === 1 && d !== void 0 ? d(qq[0]) : `${qq.length} selected` : d === void 0 ? E ?? "--" : d(qq), t[43] = Rq, t[44] = d, t[45] = $, t[46] = E, t[47] = qq, t[48] = $q) : $q = t[48];
28534
- let eJ = $q, tJ;
28535
- t[49] !== Qq || t[50] !== Xq ? (tJ = {
28536
- isSelected: Xq,
28537
- onSelect: Qq
28538
- }, t[49] = Qq, t[50] = Xq, t[51] = tJ) : tJ = t[51];
28539
- let nJ = tJ, rJ;
28540
- t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rJ = cn("relative"), t[52] = rJ) : rJ = t[52];
28541
- let iJ;
28542
- t[53] !== zq || t[54] !== Uq ? (iJ = (e2) => {
28543
- zq && e2 || Uq(e2);
28544
- }, t[53] = zq, t[54] = Uq, t[55] = iJ) : iJ = t[55];
28545
- let oJ = zq && "cursor-not-allowed opacity-50", cJ;
28546
- t[56] !== o || t[57] !== oJ ? (cJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", oJ, o), t[56] = o, t[57] = oJ, t[58] = cJ) : cJ = t[58];
28547
- let lJ;
28548
- t[59] !== O || t[60] !== eJ || t[61] !== qq ? (lJ = O ? O(qq ?? null) : eJ(), t[59] = O, t[60] = eJ, t[61] = qq, t[62] = lJ) : lJ = t[62];
28549
- let uJ;
28550
- t[63] === lJ ? uJ = t[64] : (uJ = (0, import_jsx_runtime.jsx)("span", {
28707
+ else pJ === e2 && (t2 = null);
28708
+ mJ(t2), (_ ?? eJ) || lJ(false);
28709
+ }, t[37] = _, t[38] = eJ, t[39] = lJ, t[40] = mJ, t[41] = pJ, t[42] = _J) : _J = t[42];
28710
+ let vJ = _J, yJ;
28711
+ t[43] !== iJ || t[44] !== d || t[45] !== eJ || t[46] !== E || t[47] !== pJ ? (yJ = () => eJ && iJ && E ? E : pJ == null ? E ?? "--" : Array.isArray(pJ) ? pJ.length === 0 ? E ?? "--" : pJ.length === 1 && d !== void 0 ? d(pJ[0]) : `${pJ.length} selected` : d === void 0 ? E ?? "--" : d(pJ), t[43] = iJ, t[44] = d, t[45] = eJ, t[46] = E, t[47] = pJ, t[48] = yJ) : yJ = t[48];
28712
+ let bJ = yJ, xJ;
28713
+ t[49] !== vJ || t[50] !== gJ ? (xJ = {
28714
+ isSelected: gJ,
28715
+ onSelect: vJ
28716
+ }, t[49] = vJ, t[50] = gJ, t[51] = xJ) : xJ = t[51];
28717
+ let SJ = xJ, CJ;
28718
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (CJ = cn("relative"), t[52] = CJ) : CJ = t[52];
28719
+ let EJ;
28720
+ t[53] !== aJ || t[54] !== lJ ? (EJ = (e2) => {
28721
+ aJ && e2 || lJ(e2);
28722
+ }, t[53] = aJ, t[54] = lJ, t[55] = EJ) : EJ = t[55];
28723
+ let DJ = aJ && "cursor-not-allowed opacity-50", OJ;
28724
+ t[56] !== o || t[57] !== DJ ? (OJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", DJ, o), t[56] = o, t[57] = DJ, t[58] = OJ) : OJ = t[58];
28725
+ let kJ;
28726
+ t[59] !== O || t[60] !== bJ || t[61] !== pJ ? (kJ = O ? O(pJ ?? null) : bJ(), t[59] = O, t[60] = bJ, t[61] = pJ, t[62] = kJ) : kJ = t[62];
28727
+ let AJ;
28728
+ t[63] === kJ ? AJ = t[64] : (AJ = (0, import_jsx_runtime.jsx)("span", {
28551
28729
  className: "truncate flex-1 min-w-0",
28552
- children: lJ
28553
- }), t[63] = lJ, t[64] = uJ);
28554
- let dJ;
28555
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28730
+ children: kJ
28731
+ }), t[63] = kJ, t[64] = AJ);
28732
+ let jJ;
28733
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28556
28734
  className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28557
- }), t[65] = dJ) : dJ = t[65];
28558
- let fJ;
28559
- t[66] !== zq || t[67] !== h || t[68] !== Wq || t[69] !== cJ || t[70] !== uJ ? (fJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28735
+ }), t[65] = jJ) : jJ = t[65];
28736
+ let MJ;
28737
+ t[66] !== aJ || t[67] !== h || t[68] !== uJ || t[69] !== OJ || t[70] !== AJ ? (MJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28560
28738
  asChild: true,
28561
28739
  children: (0, import_jsx_runtime.jsxs)("button", {
28562
28740
  id: h,
28563
28741
  type: "button",
28564
- className: cJ,
28565
- "aria-expanded": Wq,
28566
- "aria-disabled": zq,
28742
+ className: OJ,
28743
+ "aria-expanded": uJ,
28744
+ "aria-disabled": aJ,
28567
28745
  children: [
28568
- uJ,
28569
- dJ
28746
+ AJ,
28747
+ jJ
28570
28748
  ]
28571
28749
  })
28572
- }), t[66] = zq, t[67] = h, t[68] = Wq, t[69] = cJ, t[70] = uJ, t[71] = fJ) : fJ = t[71];
28573
- let pJ;
28574
- t[72] !== Iq || t[73] !== y || t[74] !== M ? (pJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28575
- placeholder: Iq,
28750
+ }), t[66] = aJ, t[67] = h, t[68] = uJ, t[69] = OJ, t[70] = AJ, t[71] = MJ) : MJ = t[71];
28751
+ let NJ;
28752
+ t[72] !== nJ || t[73] !== y || t[74] !== M ? (NJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28753
+ placeholder: nJ,
28576
28754
  rootClassName: "px-1 h-8",
28577
28755
  autoFocus: true,
28578
28756
  value: M,
28579
28757
  onValueChange: y
28580
- }), t[72] = Iq, t[73] = y, t[74] = M, t[75] = pJ) : pJ = t[75];
28581
- let mJ;
28582
- t[76] === Lq ? mJ = t[77] : (mJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28583
- children: Lq
28584
- }), t[76] = Lq, t[77] = mJ);
28585
- let hJ;
28586
- t[78] !== n || t[79] !== nJ ? (hJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28587
- value: nJ,
28758
+ }), t[72] = nJ, t[73] = y, t[74] = M, t[75] = NJ) : NJ = t[75];
28759
+ let PJ;
28760
+ t[76] === rJ ? PJ = t[77] : (PJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28761
+ children: rJ
28762
+ }), t[76] = rJ, t[77] = PJ);
28763
+ let FJ;
28764
+ t[78] !== n || t[79] !== SJ ? (FJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28765
+ value: SJ,
28588
28766
  children: n
28589
- }), t[78] = n, t[79] = nJ, t[80] = hJ) : hJ = t[80];
28590
- let gJ;
28591
- t[81] !== mJ || t[82] !== hJ ? (gJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28767
+ }), t[78] = n, t[79] = SJ, t[80] = FJ) : FJ = t[80];
28768
+ let IJ;
28769
+ t[81] !== PJ || t[82] !== FJ ? (IJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28592
28770
  className: "max-h-60 py-.5",
28593
28771
  children: [
28594
- mJ,
28595
- hJ
28772
+ PJ,
28773
+ FJ
28596
28774
  ]
28597
- }), t[81] = mJ, t[82] = hJ, t[83] = gJ) : gJ = t[83];
28598
- let _J;
28599
- t[84] !== f || t[85] !== Fq || t[86] !== pJ || t[87] !== gJ ? (_J = (0, import_jsx_runtime.jsx)(PopoverContent, {
28775
+ }), t[81] = PJ, t[82] = FJ, t[83] = IJ) : IJ = t[83];
28776
+ let LJ;
28777
+ t[84] !== f || t[85] !== tJ || t[86] !== NJ || t[87] !== IJ ? (LJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28600
28778
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28601
28779
  align: "start",
28602
28780
  children: (0, import_jsx_runtime.jsxs)(Command, {
28603
28781
  filter: f,
28604
- shouldFilter: Fq,
28782
+ shouldFilter: tJ,
28605
28783
  children: [
28606
- pJ,
28607
- gJ
28784
+ NJ,
28785
+ IJ
28608
28786
  ]
28609
28787
  })
28610
- }), t[84] = f, t[85] = Fq, t[86] = pJ, t[87] = gJ, t[88] = _J) : _J = t[88];
28611
- let vJ;
28612
- t[89] !== Wq || t[90] !== iJ || t[91] !== fJ || t[92] !== _J ? (vJ = (0, import_jsx_runtime.jsxs)(Popover, {
28613
- open: Wq,
28614
- onOpenChange: iJ,
28788
+ }), t[84] = f, t[85] = tJ, t[86] = NJ, t[87] = IJ, t[88] = LJ) : LJ = t[88];
28789
+ let RJ;
28790
+ t[89] !== uJ || t[90] !== EJ || t[91] !== MJ || t[92] !== LJ ? (RJ = (0, import_jsx_runtime.jsxs)(Popover, {
28791
+ open: uJ,
28792
+ onOpenChange: EJ,
28615
28793
  children: [
28616
- fJ,
28617
- _J
28794
+ MJ,
28795
+ LJ
28618
28796
  ]
28619
- }), t[89] = Wq, t[90] = iJ, t[91] = fJ, t[92] = _J, t[93] = vJ) : vJ = t[93];
28620
- let yJ;
28621
- t[94] !== Rq || t[95] !== i || t[96] !== zq || t[97] !== d || t[98] !== Qq || t[99] !== $ || t[100] !== qq ? (yJ = $ && Rq && (0, import_jsx_runtime.jsx)("div", {
28797
+ }), t[89] = uJ, t[90] = EJ, t[91] = MJ, t[92] = LJ, t[93] = RJ) : RJ = t[93];
28798
+ let zJ;
28799
+ t[94] !== iJ || t[95] !== i || t[96] !== aJ || t[97] !== d || t[98] !== vJ || t[99] !== eJ || t[100] !== pJ ? (zJ = eJ && iJ && (0, import_jsx_runtime.jsx)("div", {
28622
28800
  className: cn("flex flex-col gap-1 items-start", i),
28623
- children: Array.isArray(qq) && qq.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28801
+ children: Array.isArray(pJ) && pJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28624
28802
  variant: "secondary",
28625
28803
  children: [
28626
28804
  (d == null ? void 0 : d(e2)) ?? String(e2),
28627
28805
  (0, import_jsx_runtime.jsx)(CircleX, {
28628
28806
  onClick: () => {
28629
- zq || Qq(e2);
28807
+ aJ || vJ(e2);
28630
28808
  },
28631
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", zq && "pointer-events-none")
28809
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", aJ && "pointer-events-none")
28632
28810
  })
28633
28811
  ]
28634
28812
  }, String(e2)))
28635
- }), t[94] = Rq, t[95] = i, t[96] = zq, t[97] = d, t[98] = Qq, t[99] = $, t[100] = qq, t[101] = yJ) : yJ = t[101];
28636
- let bJ;
28637
- return t[102] !== A || t[103] !== vJ || t[104] !== yJ ? (bJ = (0, import_jsx_runtime.jsxs)("div", {
28638
- className: rJ,
28813
+ }), t[94] = iJ, t[95] = i, t[96] = aJ, t[97] = d, t[98] = vJ, t[99] = eJ, t[100] = pJ, t[101] = zJ) : zJ = t[101];
28814
+ let BJ;
28815
+ return t[102] !== A || t[103] !== RJ || t[104] !== zJ ? (BJ = (0, import_jsx_runtime.jsxs)("div", {
28816
+ className: CJ,
28639
28817
  ...A,
28640
28818
  children: [
28641
- vJ,
28642
- yJ
28819
+ RJ,
28820
+ zJ
28643
28821
  ]
28644
- }), t[102] = A, t[103] = vJ, t[104] = yJ, t[105] = bJ) : bJ = t[105], bJ;
28822
+ }), t[102] = A, t[103] = RJ, t[104] = zJ, t[105] = BJ) : BJ = t[105], BJ;
28645
28823
  };
28646
28824
  ComboboxItem = import_react.forwardRef((e, t) => {
28647
28825
  let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
@@ -29378,8 +29556,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29378
29556
  start: dateToAria(n, f),
29379
29557
  end: dateToAria(n, _)
29380
29558
  }, t[27] = n, t[28] = _, t[29] = f, t[30] = O) : O = t[30];
29381
- let A = O, I;
29382
- t[31] !== s || t[32] !== n || t[33] !== E || t[34] !== c || t[35] !== A ? (I = n === "date" ? (0, import_jsx_runtime.jsx)(DateRangePicker, {
29559
+ let A = O, M;
29560
+ t[31] !== s || t[32] !== n || t[33] !== E || t[34] !== c || t[35] !== A ? (M = n === "date" ? (0, import_jsx_runtime.jsx)(DateRangePicker, {
29383
29561
  "aria-label": "range",
29384
29562
  defaultValue: A,
29385
29563
  onChange: E,
@@ -29391,13 +29569,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29391
29569
  hourCycle: 24,
29392
29570
  onChange: E,
29393
29571
  className: s
29394
- }, c), t[31] = s, t[32] = n, t[33] = E, t[34] = c, t[35] = A, t[36] = I) : I = t[36];
29395
- let z;
29396
- return t[37] !== S || t[38] !== I ? (z = (0, import_jsx_runtime.jsx)("div", {
29572
+ }, c), t[31] = s, t[32] = n, t[33] = E, t[34] = c, t[35] = A, t[36] = M) : M = t[36];
29573
+ let I;
29574
+ return t[37] !== S || t[38] !== M ? (I = (0, import_jsx_runtime.jsx)("div", {
29397
29575
  onPasteCapture: S,
29398
29576
  className: "contents",
29399
- children: I
29400
- }), t[37] = S, t[38] = I, t[39] = z) : z = t[39], z;
29577
+ children: M
29578
+ }), t[37] = S, t[38] = M, t[39] = I) : I = t[39], I;
29401
29579
  };
29402
29580
  function _temp$5(e) {
29403
29581
  return e + 1;
@@ -29697,17 +29875,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29697
29875
  searchQuery: M,
29698
29876
  filteredOptions: z
29699
29877
  }, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
29700
- let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), Fq;
29701
- t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (Fq = {
29878
+ let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), eJ;
29879
+ t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (eJ = {
29702
29880
  value: i,
29703
29881
  onChange: a,
29704
29882
  multiple: o,
29705
29883
  maxSelections: s,
29706
29884
  allowSelectNone: c,
29707
29885
  selected: y
29708
- }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = Fq) : Fq = t[21];
29709
- let { isChecked: Iq, toggle: Lq } = useToggle(Fq), Rq;
29710
- t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (Rq = {
29886
+ }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = eJ) : eJ = t[21];
29887
+ let { isChecked: tJ, toggle: nJ } = useToggle(eJ), rJ;
29888
+ t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (rJ = {
29711
29889
  value: i,
29712
29890
  onChange: a,
29713
29891
  multiple: o,
@@ -29715,24 +29893,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29715
29893
  filteredOptions: z,
29716
29894
  searchQuery: M,
29717
29895
  maxSelections: s
29718
- }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = Rq) : Rq = t[29];
29719
- let { bulkActions: zq } = useBulk(Rq), Bq;
29720
- t[30] !== J || t[31] !== I ? (Bq = (e2) => {
29896
+ }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = rJ) : rJ = t[29];
29897
+ let { bulkActions: iJ } = useBulk(rJ), aJ;
29898
+ t[30] !== J || t[31] !== I ? (aJ = (e2) => {
29721
29899
  I(e2), e2 === "" && J();
29722
- }, t[30] = J, t[31] = I, t[32] = Bq) : Bq = t[32];
29723
- let Vq = Bq, Hq;
29724
- return t[33] !== zq || t[34] !== Iq || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== Vq || t[41] !== Lq || t[42] !== Q ? (Hq = {
29900
+ }, t[30] = J, t[31] = I, t[32] = aJ) : aJ = t[32];
29901
+ let oJ = aJ, sJ;
29902
+ return t[33] !== iJ || t[34] !== tJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== oJ || t[41] !== nJ || t[42] !== Q ? (sJ = {
29725
29903
  searchQuery: M,
29726
- setSearchQuery: Vq,
29904
+ setSearchQuery: oJ,
29727
29905
  open: K,
29728
29906
  setOpen: q,
29729
29907
  visibleOptions: Q,
29730
29908
  pinnedCount: $,
29731
- isChecked: Iq,
29732
- toggle: Lq,
29733
- bulkActions: zq,
29909
+ isChecked: tJ,
29910
+ toggle: nJ,
29911
+ bulkActions: iJ,
29734
29912
  labelOf: O
29735
- }, t[33] = zq, t[34] = Iq, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = Vq, t[41] = Lq, t[42] = Q, t[43] = Hq) : Hq = t[43], Hq;
29913
+ }, t[33] = iJ, t[34] = tJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = oJ, t[41] = nJ, t[42] = Q, t[43] = sJ) : sJ = t[43], sJ;
29736
29914
  };
29737
29915
  const Sets = {
29738
29916
  merge(...e) {
@@ -30041,7 +30219,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30041
30219
  const FilterPillEditor = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: i, editIndex: a }) => {
30042
30220
  let o = (0, import_react.useId)(), s = (0, import_react.useId)(), c = (0, import_react.useId)(), d = e.value.type, f = e.value.operator, _ = toDraftValue(e.value), [v, y] = (0, import_react.useState)(e.columnId), [S, w] = (0, import_react.useState)(d), [E, O] = (0, import_react.useState)(f), [A, M] = (0, import_react.useState)(_), [I, z] = (0, import_react.useState)(EMPTY_NUMBER_TEXT_DRAFT), U = editableColumns(t), K = (t2) => {
30043
30221
  t2.id === e.columnId && t2.operator === f && M(_);
30044
- }, J = (e2) => {
30222
+ }, q = (e2) => {
30045
30223
  if (!e2) return;
30046
30224
  let n2 = t.getColumn(e2);
30047
30225
  if (!n2) return;
@@ -30050,20 +30228,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30050
30228
  id: e2,
30051
30229
  operator: a2
30052
30230
  });
30053
- }, Q = (e2) => {
30231
+ }, J = (e2) => {
30054
30232
  O(e2);
30055
30233
  let t2 = emptyDraftFor(S, e2);
30056
30234
  t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT), K({
30057
30235
  id: v,
30058
30236
  operator: e2
30059
30237
  });
30060
- }, $ = buildFilterValue({
30238
+ }, Q = buildFilterValue({
30061
30239
  type: S,
30062
30240
  operator: E,
30063
30241
  draft: mergeNumberTextDraft(A, I)
30064
- }), Fq = $ === void 0, Iq = Fq ? getMissingValueMessage(S, E) : "Apply filter", Lq = () => {
30065
- if (!$) return;
30066
- let e2 = $;
30242
+ }), $ = Q === void 0, eJ = $ ? getMissingValueMessage(S, E) : "Apply filter", tJ = () => {
30243
+ if (!Q) return;
30244
+ let e2 = Q;
30067
30245
  t.setColumnFilters((t2) => {
30068
30246
  if (a === void 0) return [
30069
30247
  {
@@ -30080,20 +30258,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30080
30258
  value: e2
30081
30259
  }, n2;
30082
30260
  }), i();
30083
- }, Rq = () => {
30261
+ }, nJ = () => {
30084
30262
  a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
30085
- }, zq = !OPERATORS_WITHOUT_VALUE.has(E), Bq = OPERATORS_BY_TYPE[S], Vq = (0, import_react.useRef)(null), Hq = (0, import_react.useRef)(null);
30263
+ }, rJ = !OPERATORS_WITHOUT_VALUE.has(E), iJ = OPERATORS_BY_TYPE[S], aJ = (0, import_react.useRef)(null), oJ = (0, import_react.useRef)(null);
30086
30264
  return (0, import_react.useEffect)(() => {
30087
30265
  var _a2, _b;
30088
- let e2 = (_a2 = Vq.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30089
- e2 ? e2.focus() : (_b = Hq.current) == null ? void 0 : _b.focus();
30266
+ let e2 = (_a2 = aJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30267
+ e2 ? e2.focus() : (_b = oJ.current) == null ? void 0 : _b.focus();
30090
30268
  }, [
30091
30269
  S,
30092
30270
  E
30093
30271
  ]), (0, import_jsx_runtime.jsxs)("form", {
30094
30272
  className: "flex flex-row gap-4 items-end p-3",
30095
30273
  onSubmit: (e2) => {
30096
- e2.preventDefault(), Lq();
30274
+ e2.preventDefault(), tJ();
30097
30275
  },
30098
30276
  onKeyDownCapture: (e2) => {
30099
30277
  e2.key === "Tab" && e2.stopPropagation();
@@ -30110,7 +30288,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30110
30288
  (0, import_jsx_runtime.jsx)(Combobox, {
30111
30289
  id: o,
30112
30290
  value: v,
30113
- onValueChange: J,
30291
+ onValueChange: q,
30114
30292
  multiple: false,
30115
30293
  placeholder: "Select column\u2026",
30116
30294
  displayValue: (e2) => e2,
@@ -30131,16 +30309,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30131
30309
  }),
30132
30310
  (0, import_jsx_runtime.jsxs)(Select, {
30133
30311
  value: E,
30134
- onValueChange: (e2) => Q(e2),
30312
+ onValueChange: (e2) => J(e2),
30135
30313
  children: [
30136
30314
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30137
- ref: Hq,
30315
+ ref: oJ,
30138
30316
  id: s,
30139
30317
  className: "h-6 mb-1 bg-transparent",
30140
30318
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30141
30319
  }),
30142
30320
  (0, import_jsx_runtime.jsx)(SelectContent, {
30143
- children: Bq.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30321
+ children: iJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30144
30322
  value: e2,
30145
30323
  children: OPERATOR_LABELS[e2]
30146
30324
  }, e2))
@@ -30149,8 +30327,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30149
30327
  }, S)
30150
30328
  ]
30151
30329
  }),
30152
- zq && (0, import_jsx_runtime.jsxs)("div", {
30153
- ref: Vq,
30330
+ rJ && (0, import_jsx_runtime.jsxs)("div", {
30331
+ ref: aJ,
30154
30332
  className: "flex flex-col gap-1",
30155
30333
  children: [
30156
30334
  (0, import_jsx_runtime.jsx)("label", {
@@ -30177,14 +30355,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30177
30355
  className: "flex gap-1 mb-1",
30178
30356
  children: [
30179
30357
  (0, import_jsx_runtime.jsx)(Tooltip, {
30180
- content: Iq,
30358
+ content: eJ,
30181
30359
  children: (0, import_jsx_runtime.jsx)("span", {
30182
30360
  className: "inline-flex",
30183
30361
  children: (0, import_jsx_runtime.jsx)(Button, {
30184
30362
  type: "submit",
30185
30363
  size: "icon",
30186
30364
  variant: "ghost",
30187
- disabled: Fq,
30365
+ disabled: $,
30188
30366
  className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
30189
30367
  "aria-label": "Apply filter",
30190
30368
  children: (0, import_jsx_runtime.jsx)(Check, {
@@ -30216,7 +30394,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30216
30394
  size: "icon",
30217
30395
  variant: "ghost",
30218
30396
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30219
- onClick: Rq,
30397
+ onClick: nJ,
30220
30398
  "aria-label": "Remove filter",
30221
30399
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30222
30400
  className: "h-3.5 w-3.5",
@@ -32424,29 +32602,29 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32424
32602
  }, t[16] = a, t[17] = J);
32425
32603
  let Q = useEvent_default(J), $;
32426
32604
  t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
32427
- let Fq = useEvent_default($), Iq, Lq;
32428
- t[20] === S ? (Iq = t[21], Lq = t[22]) : (Iq = () => (window.addEventListener("scroll", S, {
32605
+ let eJ = useEvent_default($), tJ, nJ;
32606
+ t[20] === S ? (tJ = t[21], nJ = t[22]) : (tJ = () => (window.addEventListener("scroll", S, {
32429
32607
  passive: true,
32430
32608
  capture: true
32431
32609
  }), window.addEventListener("resize", S), () => {
32432
32610
  window.removeEventListener("scroll", S, {
32433
32611
  capture: true
32434
32612
  }), window.removeEventListener("resize", S);
32435
- }), Lq = [
32613
+ }), nJ = [
32436
32614
  S
32437
- ], t[20] = S, t[21] = Iq, t[22] = Lq), (0, import_react.useEffect)(Iq, Lq);
32438
- let Rq, zq;
32439
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Rq = () => v, zq = [], t[23] = Rq, t[24] = zq) : (Rq = t[23], zq = t[24]), (0, import_react.useEffect)(Rq, zq);
32440
- let Bq;
32441
- return t[25] !== Fq || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (Bq = {
32615
+ ], t[20] = S, t[21] = tJ, t[22] = nJ), (0, import_react.useEffect)(tJ, nJ);
32616
+ let rJ, iJ;
32617
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rJ = () => v, iJ = [], t[23] = rJ, t[24] = iJ) : (rJ = t[23], iJ = t[24]), (0, import_react.useEffect)(rJ, iJ);
32618
+ let aJ;
32619
+ return t[25] !== eJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (aJ = {
32442
32620
  tooltipState: o,
32443
32621
  tooltipContentId: d,
32444
32622
  hideTooltip: S,
32445
32623
  handleCellMouseOver: U,
32446
32624
  handleCellMouseLeave: q,
32447
32625
  handleCellFocus: Q,
32448
- handleCellBlur: Fq
32449
- }, t[25] = Fq, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = Bq) : Bq = t[32], Bq;
32626
+ handleCellBlur: eJ
32627
+ }, t[25] = eJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = aJ) : aJ = t[32], aJ;
32450
32628
  }
32451
32629
  var import_compiler_runtime$18 = require_compiler_runtime();
32452
32630
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
@@ -32788,14 +32966,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32788
32966
  setColumnVisibility: n
32789
32967
  };
32790
32968
  }
32791
- function getUserColumnVisibilityCounts(e) {
32969
+ getUserColumnVisibilityCounts = function(e) {
32792
32970
  let t = e.getAllLeafColumns().filter((e2) => e2.getCanHide()), n = t.filter((e2) => e2.getIsVisible()).length;
32793
32971
  return {
32794
32972
  total: t.length,
32795
32973
  visible: n,
32796
32974
  hidden: t.length - n
32797
32975
  };
32798
- }
32976
+ };
32799
32977
  getColumnCountForDisplay = function(e, t) {
32800
32978
  let n = getUserColumnVisibilityCounts(e);
32801
32979
  return {
@@ -33440,7 +33618,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33440
33618
  dataType: (_a2 = e2.columnDef.meta) == null ? void 0 : _a2.dataType
33441
33619
  }
33442
33620
  };
33443
- }), i = t.filter((e2) => !e2.getIsVisible()).map((e2) => e2.id), s = (n2) => {
33621
+ }), i = t.filter((e2) => !e2.getIsVisible()).map((e2) => e2.id), s = t.filter((e2) => e2.getCanHide()).map((e2) => e2.id), c = s.filter((e2) => !i.includes(e2)).length, d = (n2) => {
33444
33622
  let i2 = new Set(Array.isArray(n2) ? n2 : []);
33445
33623
  e.setColumnVisibility((e2) => ({
33446
33624
  ...e2,
@@ -33449,17 +33627,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33449
33627
  !i2.has(e3.id)
33450
33628
  ]))
33451
33629
  }));
33452
- }, c = useSelectList({
33630
+ }, f = useSelectList({
33453
33631
  options: n,
33454
33632
  value: i,
33455
- onChange: s,
33633
+ onChange: d,
33456
33634
  multiple: true,
33457
33635
  filterFn: smartMatchFilter,
33458
33636
  pinSelected: true
33459
- }), d = c.bulkActions.filter((e2) => e2.kind === "select-matching" || e2.kind === "deselect-matching");
33637
+ }), _ = f.bulkActions.filter((e2) => e2.kind === "select-matching" || e2.kind === "deselect-matching");
33460
33638
  return (0, import_jsx_runtime.jsxs)(Popover, {
33461
- open: c.open,
33462
- onOpenChange: c.setOpen,
33639
+ open: f.open,
33640
+ onOpenChange: f.setOpen,
33463
33641
  children: [
33464
33642
  (0, import_jsx_runtime.jsx)(PopoverTrigger, {
33465
33643
  asChild: true,
@@ -33468,7 +33646,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33468
33646
  size: "xs",
33469
33647
  "data-testid": "column-visibility-trigger",
33470
33648
  onMouseDown: Events.preventFocus,
33471
- className: cn("print:hidden text-xs gap-1", c.open ? "text-primary" : "text-muted-foreground"),
33649
+ className: cn("print:hidden text-xs gap-1", f.open ? "text-primary" : "text-muted-foreground"),
33472
33650
  children: [
33473
33651
  (0, import_jsx_runtime.jsx)(Columns3, {
33474
33652
  className: "w-3.5 h-3.5"
@@ -33485,20 +33663,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33485
33663
  children: [
33486
33664
  (0, import_jsx_runtime.jsx)(CommandInput, {
33487
33665
  placeholder: "Search columns...",
33488
- value: c.searchQuery,
33489
- onValueChange: c.setSearchQuery
33666
+ value: f.searchQuery,
33667
+ onValueChange: f.setSearchQuery
33490
33668
  }),
33491
33669
  (0, import_jsx_runtime.jsxs)(CommandList, {
33492
33670
  children: [
33493
33671
  (0, import_jsx_runtime.jsx)(CommandEmpty, {
33494
33672
  children: "No results."
33495
33673
  }),
33496
- c.searchQuery === "" ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33674
+ f.searchQuery === "" ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33497
33675
  children: [
33498
33676
  (0, import_jsx_runtime.jsxs)(CommandItem, {
33499
33677
  value: "__show_all__",
33500
33678
  disabled: i.length === 0,
33501
- onSelect: () => s([]),
33679
+ onSelect: () => d([]),
33502
33680
  className: "cursor-pointer",
33503
33681
  children: [
33504
33682
  (0, import_jsx_runtime.jsx)(Eye, {
@@ -33507,11 +33685,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33507
33685
  "Show all"
33508
33686
  ]
33509
33687
  }),
33688
+ (0, import_jsx_runtime.jsxs)(CommandItem, {
33689
+ value: "__hide_all__",
33690
+ disabled: c === 0,
33691
+ onSelect: () => d(s),
33692
+ className: "cursor-pointer",
33693
+ children: [
33694
+ (0, import_jsx_runtime.jsx)(EyeOff, {
33695
+ className: "w-3 h-3 mr-1.5"
33696
+ }),
33697
+ "Hide all"
33698
+ ]
33699
+ }),
33510
33700
  (0, import_jsx_runtime.jsx)(CommandSeparator, {})
33511
33701
  ]
33512
- }) : d.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33702
+ }) : _.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33513
33703
  children: [
33514
- d.map((e2) => (0, import_jsx_runtime.jsxs)(CommandItem, {
33704
+ _.map((e2) => (0, import_jsx_runtime.jsxs)(CommandItem, {
33515
33705
  value: `__bulk_${e2.kind}`,
33516
33706
  onSelect: e2.run,
33517
33707
  className: "cursor-pointer",
@@ -33530,15 +33720,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33530
33720
  (0, import_jsx_runtime.jsx)(CommandSeparator, {})
33531
33721
  ]
33532
33722
  }),
33533
- c.visibleOptions.map((e2, t2) => {
33534
- let n2 = c.isChecked(e2.value), { dataType: i2 } = e2.data, o = t2 === c.pinnedCount && c.pinnedCount > 0 && c.pinnedCount < c.visibleOptions.length;
33723
+ f.visibleOptions.map((e2, t2) => {
33724
+ let n2 = f.isChecked(e2.value), { dataType: i2 } = e2.data, o = t2 === f.pinnedCount && f.pinnedCount > 0 && f.pinnedCount < f.visibleOptions.length;
33535
33725
  return (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
33536
33726
  children: [
33537
33727
  o && (0, import_jsx_runtime.jsx)(CommandSeparator, {}),
33538
33728
  (0, import_jsx_runtime.jsxs)(CommandItem, {
33539
33729
  value: e2.value,
33540
33730
  disabled: e2.disabled,
33541
- onSelect: () => c.toggle(e2.value),
33731
+ onSelect: () => f.toggle(e2.value),
33542
33732
  className: "flex items-center gap-1.5 cursor-pointer",
33543
33733
  children: [
33544
33734
  i2 === void 0 ? (0, import_jsx_runtime.jsx)("span", {
@@ -33872,7 +34062,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33872
34062
  filename: i2.filename
33873
34063
  };
33874
34064
  }, t[6] = e, t[7] = O);
33875
- let A = O, M, I, z, U, K, q, J, Q, $, Fq, Iq, Lq, Rq;
34065
+ let A = O, M, I, z, U, K, q, J, Q, $, eJ, tJ, nJ, rJ;
33876
34066
  if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
33877
34067
  let e2 = async (t2) => {
33878
34068
  let n2 = labelForDownloadFormat(t2);
@@ -33938,10 +34128,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33938
34128
  content: d,
33939
34129
  open: o2,
33940
34130
  children: h
33941
- }), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", Fq = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Iq = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34131
+ }), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", eJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
33942
34132
  className: "text-xs text-muted-foreground",
33943
34133
  children: "Download"
33944
- }), t[36] = Iq) : Iq = t[36], Lq = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34134
+ }), t[36] = tJ) : tJ = t[36], nJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33945
34135
  onSelect: () => {
33946
34136
  e2(t2.format);
33947
34137
  },
@@ -33962,10 +34152,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33962
34152
  ]
33963
34153
  })
33964
34154
  ]
33965
- }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Rq = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34155
+ }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
33966
34156
  className: "text-xs text-muted-foreground",
33967
34157
  children: "Copy to clipboard"
33968
- }), t[37] = z, t[38] = Rq) : (z = t[37], Rq = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34158
+ }), t[37] = z, t[38] = rJ) : (z = t[37], rJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33969
34159
  onSelect: async () => {
33970
34160
  try {
33971
34161
  await a(e3.format);
@@ -33994,30 +34184,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33994
34184
  ]
33995
34185
  })
33996
34186
  ]
33997
- }, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = Fq, t[23] = Iq, t[24] = Lq, t[25] = Rq;
33998
- } else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], Fq = t[22], Iq = t[23], Lq = t[24], Rq = t[25];
33999
- let zq;
34000
- t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== Fq || t[44] !== Iq || t[45] !== Lq || t[46] !== Rq ? (zq = (0, import_jsx_runtime.jsxs)(M, {
34187
+ }, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = eJ, t[23] = tJ, t[24] = nJ, t[25] = rJ;
34188
+ } else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], eJ = t[22], tJ = t[23], nJ = t[24], rJ = t[25];
34189
+ let iJ;
34190
+ t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== eJ || t[44] !== tJ || t[45] !== nJ || t[46] !== rJ ? (iJ = (0, import_jsx_runtime.jsxs)(M, {
34001
34191
  side: $,
34002
- className: Fq,
34192
+ className: eJ,
34003
34193
  children: [
34004
- Iq,
34005
- Lq,
34006
- Rq,
34194
+ tJ,
34195
+ nJ,
34196
+ rJ,
34007
34197
  z,
34008
34198
  U
34009
34199
  ]
34010
- }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = Fq, t[44] = Iq, t[45] = Lq, t[46] = Rq, t[47] = zq) : zq = t[47];
34011
- let Bq;
34012
- return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== zq ? (Bq = (0, import_jsx_runtime.jsxs)(I, {
34200
+ }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = eJ, t[44] = tJ, t[45] = nJ, t[46] = rJ, t[47] = iJ) : iJ = t[47];
34201
+ let aJ;
34202
+ return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== iJ ? (aJ = (0, import_jsx_runtime.jsxs)(I, {
34013
34203
  modal: K,
34014
34204
  open: q,
34015
34205
  onOpenChange: J,
34016
34206
  children: [
34017
34207
  Q,
34018
- zq
34208
+ iJ
34019
34209
  ]
34020
- }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = zq, t[54] = Bq) : Bq = t[54], Bq;
34210
+ }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = iJ, t[54] = aJ) : aJ = t[54], aJ;
34021
34211
  };
34022
34212
  function fetchJson(e) {
34023
34213
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -34113,22 +34303,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34113
34303
  ]
34114
34304
  });
34115
34305
  };
34116
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: Fq, showSearch: Iq = false, searchQuery: Lq, onSearchQueryChange: Rq, showFilters: zq = false, filters: Bq, onFiltersChange: Vq, calculateTopKRows: Hq, reloading: Uq, freezeColumnsLeft: Wq, freezeColumnsRight: Gq, hiddenColumns: Kq, toggleDisplayHeader: qq, showChartBuilder: Jq, isChartBuilderOpen: Yq, showPageSizeSelector: Xq, showTableExplorer: Zq, togglePanel: Qq, isPanelOpen: $q, isAnyPanelOpen: eJ, viewedRowIdx: tJ, onViewedRowChange: nJ, renderTableExplorerPanel: rJ }) => {
34117
- let iJ = isStaticNotebook(), aJ = !iJ, [oJ, sJ] = import_react.useState(false), { locale: cJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: lJ, setColumnPinning: uJ } = useColumnPinning(Wq, Gq), { columnVisibility: dJ, setColumnVisibility: fJ } = useColumnVisibility(Kq);
34306
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: eJ, showSearch: tJ = false, searchQuery: nJ, onSearchQueryChange: rJ, showFilters: iJ = false, filters: aJ, onFiltersChange: oJ, calculateTopKRows: sJ, reloading: cJ, freezeColumnsLeft: lJ, freezeColumnsRight: uJ, hiddenColumns: dJ, toggleDisplayHeader: fJ, showChartBuilder: pJ, isChartBuilderOpen: mJ, showPageSizeSelector: hJ, showTableExplorer: gJ, togglePanel: _J, isPanelOpen: vJ, isAnyPanelOpen: yJ, viewedRowIdx: bJ, onViewedRowChange: xJ, renderTableExplorerPanel: SJ }) => {
34307
+ let CJ = isStaticNotebook(), wJ = !CJ, [TJ, EJ] = import_react.useState(false), { locale: DJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: OJ, setColumnPinning: kJ } = useColumnPinning(lJ, uJ), { columnVisibility: AJ, setColumnVisibility: jJ } = useColumnVisibility(dJ);
34118
34308
  import_react.useEffect(() => {
34119
34309
  let e2;
34120
- return Uq ? e2 = setTimeout(() => {
34121
- sJ(true);
34122
- }, 300) : sJ(false), () => {
34310
+ return cJ ? e2 = setTimeout(() => {
34311
+ EJ(true);
34312
+ }, 300) : EJ(false), () => {
34123
34313
  e2 && clearTimeout(e2);
34124
34314
  };
34125
34315
  }, [
34126
- Uq
34316
+ cJ
34127
34317
  ]);
34128
- function pJ(e2, t2) {
34318
+ function MJ(e2, t2) {
34129
34319
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
34130
34320
  }
34131
- let mJ = useReactTable({
34321
+ let NJ = useReactTable({
34132
34322
  _features: [
34133
34323
  ColumnPinning,
34134
34324
  ColumnWrappingFeature,
@@ -34152,37 +34342,37 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34152
34342
  getRowId: (e2, t2) => {
34153
34343
  let n2 = getStableRowId(e2);
34154
34344
  if (n2) return n2;
34155
- let i2 = pJ(e2, t2);
34345
+ let i2 = MJ(e2, t2);
34156
34346
  return String(i2);
34157
34347
  }
34158
34348
  } : {},
34159
- locale: cJ,
34349
+ locale: DJ,
34160
34350
  manualPagination: q,
34161
34351
  getPaginationRowModel: getPaginationRowModel(),
34162
34352
  ...w ? {
34163
34353
  onSortingChange: w
34164
34354
  } : {},
34165
34355
  manualSorting: y,
34166
- enableSorting: !iJ,
34356
+ enableSorting: !CJ,
34167
34357
  enableMultiSort: true,
34168
34358
  getSortedRowModel: getSortedRowModel(),
34169
34359
  manualFiltering: true,
34170
- enableColumnFilters: zq && !iJ,
34360
+ enableColumnFilters: iJ && !CJ,
34171
34361
  getFilteredRowModel: getFilteredRowModel(),
34172
- onColumnFiltersChange: Vq,
34362
+ onColumnFiltersChange: oJ,
34173
34363
  onRowSelectionChange: Q,
34174
34364
  onCellSelectionChange: $,
34175
34365
  enableCellSelection: c === "single-cell" || c === "multi-cell",
34176
34366
  enableMultiCellSelection: c === "multi-cell",
34177
- onColumnPinningChange: uJ,
34178
- onColumnVisibilityChange: fJ,
34367
+ onColumnPinningChange: kJ,
34368
+ onColumnVisibilityChange: jJ,
34179
34369
  enableFocusRow: true,
34180
- onFocusRowChange: nJ,
34370
+ onFocusRowChange: xJ,
34181
34371
  state: {
34182
34372
  ...S ? {
34183
34373
  sorting: S
34184
34374
  } : {},
34185
- columnFilters: Bq,
34375
+ columnFilters: aJ,
34186
34376
  ...z ? {
34187
34377
  pagination: z
34188
34378
  } : J && !z ? {} : {
@@ -34193,60 +34383,60 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34193
34383
  },
34194
34384
  rowSelection: E ?? {},
34195
34385
  cellSelection: O ?? [],
34196
- columnVisibility: dJ,
34386
+ columnVisibility: AJ,
34197
34387
  cellStyling: A,
34198
- columnPinning: lJ,
34388
+ columnPinning: OJ,
34199
34389
  cellHoverTemplate: M,
34200
34390
  cellHoverTexts: I ?? {}
34201
34391
  }
34202
- }), hJ = ($q == null ? void 0 : $q(PANEL_TYPES.ROW_VIEWER)) ?? false, gJ = !J && o.length > 100, _J = useScrollContainerHeight({
34392
+ }), PJ = (vJ == null ? void 0 : vJ(PANEL_TYPES.ROW_VIEWER)) ?? false, FJ = !J && o.length > 100, IJ = useScrollContainerHeight({
34203
34393
  maxHeight: n,
34204
- virtualize: gJ
34205
- }), [vJ, yJ] = import_react.useState(null), bJ = import_react.useMemo(() => ({
34394
+ virtualize: FJ
34395
+ }), [LJ, RJ] = import_react.useState(null), zJ = import_react.useMemo(() => ({
34206
34396
  requestAddFilter: (e2) => {
34207
- let t2 = mJ.getColumn(e2.columnId);
34208
- t2 && yJ(buildEditorSnapshot(t2, {
34397
+ let t2 = NJ.getColumn(e2.columnId);
34398
+ t2 && RJ(buildEditorSnapshot(t2, {
34209
34399
  operator: e2.operator
34210
34400
  }));
34211
34401
  }
34212
34402
  }), [
34213
- mJ
34214
- ]), xJ = getUserColumnVisibilityCounts(mJ), SJ = xJ.total > 0 && xJ.visible === 0;
34403
+ NJ
34404
+ ]), BJ = getUserColumnVisibilityCounts(NJ), VJ = BJ.total > 0 && BJ.visible === 0;
34215
34405
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
34216
- value: bJ,
34406
+ value: zJ,
34217
34407
  children: (0, import_jsx_runtime.jsxs)("div", {
34218
34408
  className: cn(e, "flex flex-col space-y-1"),
34219
34409
  children: [
34220
34410
  (0, import_jsx_runtime.jsx)(FilterPills, {
34221
- filters: Bq,
34222
- table: mJ,
34223
- calculateTopKRows: Hq,
34224
- addFilterSnapshot: vJ,
34225
- onAddFilterSnapshotChange: yJ
34411
+ filters: aJ,
34412
+ table: NJ,
34413
+ calculateTopKRows: sJ,
34414
+ addFilterSnapshot: LJ,
34415
+ onAddFilterSnapshotChange: RJ
34226
34416
  }),
34227
- rJ == null ? void 0 : rJ(mJ),
34417
+ SJ == null ? void 0 : SJ(NJ),
34228
34418
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
34229
34419
  children: (0, import_jsx_runtime.jsxs)("div", {
34230
34420
  part: "table-wrapper",
34231
34421
  className: cn(t || "rounded-md border overflow-hidden"),
34232
34422
  children: [
34233
- aJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34234
- table: mJ,
34235
- showSearch: Iq,
34236
- searchQuery: Lq,
34237
- onSearchQueryChange: Rq,
34238
- reloading: Uq,
34239
- showChartBuilder: Jq,
34240
- isChartBuilderOpen: Yq,
34241
- toggleDisplayHeader: qq,
34242
- showTableExplorer: Zq,
34243
- togglePanel: Qq,
34244
- isAnyPanelOpen: eJ,
34423
+ wJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34424
+ table: NJ,
34425
+ showSearch: tJ,
34426
+ searchQuery: nJ,
34427
+ onSearchQueryChange: rJ,
34428
+ reloading: cJ,
34429
+ showChartBuilder: pJ,
34430
+ isChartBuilderOpen: mJ,
34431
+ toggleDisplayHeader: fJ,
34432
+ showTableExplorer: gJ,
34433
+ togglePanel: _J,
34434
+ isAnyPanelOpen: yJ,
34245
34435
  downloadAs: K,
34246
34436
  sizeBytes: _,
34247
34437
  sizeBytesIsLoading: v
34248
34438
  }),
34249
- SJ && (0, import_jsx_runtime.jsxs)(Banner, {
34439
+ VJ && (0, import_jsx_runtime.jsxs)(Banner, {
34250
34440
  className: "mb-1 mx-2 rounded flex items-center justify-between",
34251
34441
  children: [
34252
34442
  (0, import_jsx_runtime.jsx)("span", {
@@ -34255,26 +34445,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34255
34445
  (0, import_jsx_runtime.jsx)(Button, {
34256
34446
  variant: "link",
34257
34447
  size: "xs",
34258
- onClick: () => mJ.resetColumnVisibility(true),
34448
+ onClick: () => NJ.resetColumnVisibility(true),
34259
34449
  children: "Unhide all"
34260
34450
  })
34261
34451
  ]
34262
34452
  }),
34263
34453
  (0, import_jsx_runtime.jsxs)(Table, {
34264
34454
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
34265
- ref: _J,
34455
+ ref: IJ,
34266
34456
  children: [
34267
- oJ && (0, import_jsx_runtime.jsx)("thead", {
34457
+ TJ && (0, import_jsx_runtime.jsx)("thead", {
34268
34458
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
34269
34459
  }),
34270
- renderTableHeader(mJ, gJ || !!n),
34460
+ renderTableHeader(NJ, FJ || !!n),
34271
34461
  (0, import_jsx_runtime.jsx)(DataTableBody, {
34272
- table: mJ,
34462
+ table: NJ,
34273
34463
  columns: i,
34274
- rowViewerPanelOpen: hJ,
34275
- getRowIndex: pJ,
34276
- viewedRowIdx: tJ,
34277
- virtualize: gJ
34464
+ rowViewerPanelOpen: PJ,
34465
+ getRowIndex: MJ,
34466
+ viewedRowIdx: bJ,
34467
+ virtualize: FJ
34278
34468
  })
34279
34469
  ]
34280
34470
  }),
@@ -34285,10 +34475,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34285
34475
  pagination: J,
34286
34476
  selection: c,
34287
34477
  onRowSelectionChange: Q,
34288
- table: mJ,
34289
- getRowIds: Fq,
34290
- showPageSizeSelector: Xq,
34291
- tableLoading: Uq
34478
+ table: NJ,
34479
+ getRowIds: eJ,
34480
+ showPageSizeSelector: hJ,
34481
+ tableLoading: cJ
34292
34482
  })
34293
34483
  ]
34294
34484
  })
@@ -34356,7 +34546,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34356
34546
  var import_compiler_runtime$7 = require_compiler_runtime();
34357
34547
  const MarimoTracebackOutput = (e) => {
34358
34548
  var _a2;
34359
- let t = (0, import_compiler_runtime$7.c)(45), { onRefactorWithAI: n, traceback: i, cellId: a } = e, o;
34549
+ let t = (0, import_compiler_runtime$7.c)(50), { onRefactorWithAI: n, traceback: i, cellId: a } = e, o;
34360
34550
  t[0] === i ? o = t[1] : (o = renderHTML({
34361
34551
  html: i,
34362
34552
  additionalReplacements: [
@@ -34367,66 +34557,73 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34367
34557
  }), t[0] = i, t[1] = o);
34368
34558
  let s = o, c;
34369
34559
  t[2] === i ? c = t[3] : (c = lastLine(i), t[2] = i, t[3] = c);
34370
- let d = c, f = useAtomValue(aiFeaturesEnabledAtom), _;
34371
- t[4] === i ? _ = t[5] : (_ = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = _);
34372
- let v = _, y;
34373
- t[6] !== a || t[7] !== v ? (y = v && v.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = v, t[8] = y) : y = t[8];
34374
- let w = y, A;
34375
- t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
34376
- let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), K;
34377
- t[12] !== d || t[13] !== n ? (K = (e2) => {
34560
+ let d = c, f = useAtomValue(aiFeaturesEnabledAtom), _ = useOpenAiAssistant(), v;
34561
+ t[4] === i ? v = t[5] : (v = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = v);
34562
+ let y = v, w;
34563
+ t[6] !== a || t[7] !== y ? (w = y && y.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = y, t[8] = w) : w = t[8];
34564
+ let A = w, M;
34565
+ t[9] !== f || t[10] !== n ? (M = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = M) : M = t[11];
34566
+ let I = M, z = !isStaticNotebook(), [U, K] = (0, import_react.useState)(true), q;
34567
+ t[12] !== d || t[13] !== n ? (q = (e2) => {
34378
34568
  n == null ? void 0 : n({
34379
34569
  prompt: `My code gives the following error:
34380
34570
 
34381
34571
  ${d}`,
34382
34572
  triggerImmediately: e2
34383
34573
  });
34384
- }, t[12] = d, t[13] = n, t[14] = K) : K = t[14];
34385
- let q = K, J;
34386
- t[15] === z ? J = t[16] : (J = () => U(!z), t[15] = z, t[16] = J);
34387
- let Q = z ? "Collapse traceback" : "Expand traceback", $;
34388
- t[17] === z ? $ = t[18] : ($ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34574
+ }, t[12] = d, t[13] = n, t[14] = q) : q = t[14];
34575
+ let J = q, Q;
34576
+ t[15] !== a || t[16] !== d || t[17] !== _ ? (Q = () => {
34577
+ _({
34578
+ prompt: buildFixInChatPrompt(a, d)
34579
+ });
34580
+ }, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
34581
+ let tJ = Q, nJ;
34582
+ t[19] === U ? nJ = t[20] : (nJ = () => K(!U), t[19] = U, t[20] = nJ);
34583
+ let rJ = U ? "Collapse traceback" : "Expand traceback", iJ;
34584
+ t[21] === U ? iJ = t[22] : (iJ = U ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34389
34585
  className: "h-3 w-3"
34390
34586
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
34391
34587
  className: "h-3 w-3"
34392
- }), t[17] = z, t[18] = $);
34393
- let Fq;
34394
- t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Fq = (0, import_jsx_runtime.jsx)("span", {
34588
+ }), t[21] = U, t[22] = iJ);
34589
+ let aJ;
34590
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aJ = (0, import_jsx_runtime.jsx)("span", {
34395
34591
  className: "text-[0.6875rem] uppercase tracking-wider",
34396
34592
  children: "Traceback"
34397
- }), t[19] = Fq) : Fq = t[19];
34398
- let Lq;
34399
- t[20] !== z || t[21] !== J || t[22] !== Q || t[23] !== $ ? (Lq = (0, import_jsx_runtime.jsxs)("button", {
34593
+ }), t[23] = aJ) : aJ = t[23];
34594
+ let oJ;
34595
+ t[24] !== U || t[25] !== iJ || t[26] !== nJ || t[27] !== rJ ? (oJ = (0, import_jsx_runtime.jsxs)("button", {
34400
34596
  type: "button",
34401
- onClick: J,
34402
- "aria-expanded": z,
34403
- "aria-label": Q,
34597
+ onClick: nJ,
34598
+ "aria-expanded": U,
34599
+ "aria-label": rJ,
34404
34600
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34405
34601
  children: [
34406
- $,
34407
- Fq
34602
+ iJ,
34603
+ aJ
34408
34604
  ]
34409
- }), t[20] = z, t[21] = J, t[22] = Q, t[23] = $, t[24] = Lq) : Lq = t[24];
34410
- let Rq;
34411
- t[25] !== s || t[26] !== z ? (Rq = z && (0, import_jsx_runtime.jsx)("div", {
34605
+ }), t[24] = U, t[25] = iJ, t[26] = nJ, t[27] = rJ, t[28] = oJ) : oJ = t[28];
34606
+ let sJ;
34607
+ t[29] !== s || t[30] !== U ? (sJ = U && (0, import_jsx_runtime.jsx)("div", {
34412
34608
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34413
34609
  children: s
34414
- }), t[25] = s, t[26] = z, t[27] = Rq) : Rq = t[27];
34415
- let zq;
34416
- t[28] !== q || t[29] !== M ? (zq = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34610
+ }), t[29] = s, t[30] = U, t[31] = sJ) : sJ = t[31];
34611
+ let cJ;
34612
+ t[32] !== J || t[33] !== tJ || t[34] !== I ? (cJ = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
34417
34613
  tooltip: "Fix with AI",
34418
- openPrompt: () => q(false),
34419
- applyAutofix: () => q(true)
34420
- }), t[28] = q, t[29] = M, t[30] = zq) : zq = t[30];
34421
- let Bq;
34422
- t[31] !== w || t[32] !== v ? (Bq = w && (0, import_jsx_runtime.jsx)(Tooltip, {
34614
+ openPrompt: () => J(false),
34615
+ applyAutofix: () => J(true),
34616
+ openChat: tJ
34617
+ }), t[32] = J, t[33] = tJ, t[34] = I, t[35] = cJ) : cJ = t[35];
34618
+ let lJ;
34619
+ t[36] !== A || t[37] !== y ? (lJ = A && (0, import_jsx_runtime.jsx)(Tooltip, {
34423
34620
  content: "Attach pdb to the exception point.",
34424
34621
  children: (0, import_jsx_runtime.jsxs)(Button, {
34425
34622
  size: "xs",
34426
34623
  variant: "outline",
34427
34624
  onClick: () => {
34428
34625
  getRequestClient().sendPdb({
34429
- cellId: v.cellId
34626
+ cellId: y.cellId
34430
34627
  });
34431
34628
  },
34432
34629
  children: [
@@ -34436,9 +34633,9 @@ ${d}`,
34436
34633
  "Launch debugger"
34437
34634
  ]
34438
34635
  })
34439
- }), t[31] = w, t[32] = v, t[33] = Bq) : Bq = t[33];
34440
- let Vq;
34441
- t[34] !== d || t[35] !== i ? (Vq = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34636
+ }), t[36] = A, t[37] = y, t[38] = lJ) : lJ = t[38];
34637
+ let uJ;
34638
+ t[39] !== d || t[40] !== i ? (uJ = z && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34442
34639
  children: [
34443
34640
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34444
34641
  asChild: true,
@@ -34506,25 +34703,25 @@ ${d}`,
34506
34703
  ]
34507
34704
  })
34508
34705
  ]
34509
- }), t[34] = d, t[35] = i, t[36] = Vq) : Vq = t[36];
34510
- let Hq;
34511
- t[37] !== zq || t[38] !== Bq || t[39] !== Vq ? (Hq = (0, import_jsx_runtime.jsxs)("div", {
34706
+ }), t[39] = d, t[40] = i, t[41] = uJ) : uJ = t[41];
34707
+ let dJ;
34708
+ t[42] !== cJ || t[43] !== lJ || t[44] !== uJ ? (dJ = (0, import_jsx_runtime.jsxs)("div", {
34512
34709
  className: "flex gap-2",
34513
34710
  children: [
34514
- zq,
34515
- Bq,
34516
- Vq
34711
+ cJ,
34712
+ lJ,
34713
+ uJ
34517
34714
  ]
34518
- }), t[37] = zq, t[38] = Bq, t[39] = Vq, t[40] = Hq) : Hq = t[40];
34519
- let Uq;
34520
- return t[41] !== Lq || t[42] !== Rq || t[43] !== Hq ? (Uq = (0, import_jsx_runtime.jsxs)("div", {
34715
+ }), t[42] = cJ, t[43] = lJ, t[44] = uJ, t[45] = dJ) : dJ = t[45];
34716
+ let fJ;
34717
+ return t[46] !== oJ || t[47] !== sJ || t[48] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)("div", {
34521
34718
  className: "flex flex-col gap-2 min-w-full w-fit",
34522
34719
  children: [
34523
- Lq,
34524
- Rq,
34525
- Hq
34720
+ oJ,
34721
+ sJ,
34722
+ dJ
34526
34723
  ]
34527
- }), t[41] = Lq, t[42] = Rq, t[43] = Hq, t[44] = Uq) : Uq = t[44], Uq;
34724
+ }), t[46] = oJ, t[47] = sJ, t[48] = dJ, t[49] = fJ) : fJ = t[49], fJ;
34528
34725
  };
34529
34726
  function lastLine(e) {
34530
34727
  var _a2, _b;
@@ -34534,7 +34731,7 @@ ${d}`,
34534
34731
  const replaceTracebackFilenames = (e) => {
34535
34732
  let t = getTracebackInfo(e);
34536
34733
  if ((t == null ? void 0 : t.kind) === "cell") {
34537
- let e2 = (0, import_jsx_runtime.jsx)(InsertBreakpointContent, {});
34734
+ let e2 = getFeatureFlag("debugger"), n = e2 ? (0, import_jsx_runtime.jsx)(ToggleBreakpointContent, {}) : (0, import_jsx_runtime.jsx)(InsertBreakpointContent, {});
34538
34735
  return (0, import_jsx_runtime.jsx)("span", {
34539
34736
  className: "nb",
34540
34737
  children: (0, import_jsx_runtime.jsxs)("span", {
@@ -34545,14 +34742,18 @@ ${d}`,
34545
34742
  lineNumber: t.lineNumber
34546
34743
  }),
34547
34744
  !isWasm() && (0, import_jsx_runtime.jsx)(Tooltip, {
34548
- content: e2,
34745
+ content: n,
34549
34746
  children: (0, import_jsx_runtime.jsx)("button", {
34550
34747
  type: "button",
34551
34748
  className: "ml-1 p-1 rounded-sm hover:bg-muted transition-all inline",
34552
34749
  children: (0, import_jsx_runtime.jsx)(BugPlay, {
34553
34750
  onClick: () => {
34554
- let e3 = getCellEditorView(t.cellId);
34555
- e3 && insertDebuggerAtLine(e3, t.lineNumber);
34751
+ if (e2 && !isStaticNotebook()) {
34752
+ toggleBreakpoint(t.cellId, t.lineNumber);
34753
+ return;
34754
+ }
34755
+ let n2 = getCellEditorView(t.cellId);
34756
+ n2 && insertDebuggerAtLine(n2, t.lineNumber);
34556
34757
  },
34557
34758
  className: "h-3 w-3"
34558
34759
  })
@@ -34601,6 +34802,11 @@ ${d}`,
34601
34802
  " at this line"
34602
34803
  ]
34603
34804
  }), e[0] = t) : t = e[0], t;
34805
+ }, ToggleBreakpointContent = () => {
34806
+ let e = (0, import_compiler_runtime$7.c)(1), t;
34807
+ return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
34808
+ children: "Toggle a breakpoint at this line"
34809
+ }), e[0] = t) : t = e[0], t;
34604
34810
  };
34605
34811
  function renderMimeIcon(e) {
34606
34812
  switch (e) {
@@ -35553,17 +35759,17 @@ ${d}`,
35553
35759
  Switch.displayName = Root$1.displayName;
35554
35760
  var import_compiler_runtime$2 = require_compiler_runtime();
35555
35761
  Slide = (0, import_react.memo)((e) => {
35556
- let t = (0, import_compiler_runtime$2.c)(6), { output: n, cellId: i, status: a } = e, o;
35557
- t[0] === a ? o = t[1] : (o = outputIsLoading(a), t[0] = a, t[1] = o);
35558
- let s = o, c;
35559
- return t[2] !== i || t[3] !== s || t[4] !== n ? (c = (0, import_jsx_runtime.jsx)(OutputArea, {
35762
+ let t = (0, import_compiler_runtime$2.c)(7), { output: n, cellId: i, status: a, stale: o } = e, s;
35763
+ t[0] === a ? s = t[1] : (s = outputIsLoading(a), t[0] = a, t[1] = s);
35764
+ let c = s, d;
35765
+ return t[2] !== i || t[3] !== c || t[4] !== n || t[5] !== o ? (d = (0, import_jsx_runtime.jsx)(OutputArea, {
35560
35766
  className: "contents",
35561
35767
  allowExpand: false,
35562
35768
  output: n,
35563
35769
  cellId: i,
35564
- stale: s,
35565
- loading: s
35566
- }), t[2] = i, t[3] = s, t[4] = n, t[5] = c) : c = t[5], c;
35770
+ stale: o,
35771
+ loading: c
35772
+ }), t[2] = i, t[3] = c, t[4] = n, t[5] = o, t[6] = d) : d = t[6], d;
35567
35773
  });
35568
35774
  Slide.displayName = "Slide";
35569
35775
  var import_compiler_runtime$1 = require_compiler_runtime();
@@ -36001,7 +36207,7 @@ ${d}`,
36001
36207
  return Logger.warn("Failed to get version from mount config"), null;
36002
36208
  }
36003
36209
  }
36004
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-dev5");
36210
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-dev50");
36005
36211
  showCodeInRunModeAtom = atom(true);
36006
36212
  atom(null);
36007
36213
  var import_compiler_runtime = require_compiler_runtime();
@@ -36029,128 +36235,129 @@ ${d}`,
36029
36235
  }
36030
36236
  });
36031
36237
  export {
36032
- contextAwarePanelOpen as $,
36033
- EmotionCacheProvider as $t,
36238
+ PANEL_TYPES as $,
36239
+ HtmlOutput as $t,
36034
36240
  prettifyRowCount as A,
36035
- SELECT_COLUMN_ID as At,
36036
- DatePicker as B,
36037
- dateToLocalISOTime as Bt,
36241
+ INDEX_COLUMN_NAME as At,
36242
+ CompactChipRow as B,
36243
+ dateToLocalISODateTime as Bt,
36038
36244
  downloadSizeLimitAtom as C,
36039
- DelayMount as Ct,
36245
+ ColumnChartSpecModel as Ct,
36040
36246
  ErrorState as D,
36041
- loadTableAndRawData as Dt,
36247
+ getPageIndexForRow as Dt,
36042
36248
  EmptyState as E,
36043
- getPageIndexForRow as Et,
36044
- ContextMenuSeparator as F,
36045
- isRecord as Ft,
36046
- CommandEmpty as G,
36047
- ChartErrorState as Gt,
36048
- Combobox as H,
36049
- TabsContent as Ht,
36050
- ContextMenuTrigger as I,
36051
- isNullishFilter as It,
36052
- CommandList as J,
36053
- LazyVegaEmbed as Jt,
36054
- CommandInput as K,
36055
- ChartInfoState as Kt,
36056
- useInternalStateWithSync as L,
36057
- Maps as Lt,
36058
- ContextMenu as M,
36059
- toFieldTypes as Mt,
36060
- ContextMenuContent as N,
36061
- getMimeValues as Nt,
36249
+ usePrevious as Et,
36250
+ ContextMenuItem as F,
36251
+ hasFunctionProperty as Ft,
36252
+ Command as G,
36253
+ TabsTrigger as Gt,
36254
+ DateRangePicker as H,
36255
+ Tabs as Ht,
36256
+ ContextMenuSeparator as I,
36257
+ isRecord as It,
36258
+ CommandItem as J,
36259
+ ChartLoadingState as Jt,
36260
+ CommandEmpty as K,
36261
+ ChartErrorState as Kt,
36262
+ ContextMenuTrigger as L,
36263
+ isNullishFilter as Lt,
36264
+ getUserColumnVisibilityCounts as M,
36265
+ TOO_MANY_ROWS as Mt,
36266
+ ContextMenu as N,
36267
+ toFieldTypes as Nt,
36062
36268
  LoadingState as O,
36063
- loadTableData as Ot,
36064
- ContextMenuItem as P,
36065
- hasFunctionProperty as Pt,
36066
- PANEL_TYPES as Q,
36067
- HtmlOutput as Qt,
36068
- useSelectList as R,
36069
- dateToLocalISODate as Rt,
36269
+ loadTableAndRawData as Ot,
36270
+ ContextMenuContent as P,
36271
+ getMimeValues as Pt,
36272
+ ContextAwarePanelItem as Q,
36273
+ Kbd as Qt,
36274
+ useInternalStateWithSync as R,
36275
+ Maps as Rt,
36070
36276
  Filenames as S,
36071
- ColumnChartSpecModel as St,
36277
+ ColumnChartContext as St,
36072
36278
  ColumnPreviewContainer as T,
36073
- usePrevious as Tt,
36074
- ComboboxItem as U,
36075
- TabsList as Ut,
36076
- DateRangePicker as V,
36077
- Tabs as Vt,
36078
- Command as W,
36079
- TabsTrigger as Wt,
36080
- smartMatch as X,
36081
- RenderTextWithLinks as Xt,
36082
- CommandSeparator as Y,
36083
- useOverflowDetection as Yt,
36084
- ContextAwarePanelItem as Z,
36085
- Kbd as Zt,
36279
+ useIntersectionObserver as Tt,
36280
+ Combobox as U,
36281
+ TabsContent as Ut,
36282
+ DatePicker as V,
36283
+ dateToLocalISOTime as Vt,
36284
+ ComboboxItem as W,
36285
+ TabsList as Wt,
36286
+ CommandSeparator as X,
36287
+ useOverflowDetection as Xt,
36288
+ CommandList as Y,
36289
+ LazyVegaEmbed as Yt,
36290
+ smartMatch as Z,
36291
+ RenderTextWithLinks as Zt,
36086
36292
  ADD_PRINTING_CLASS as _,
36087
36293
  __tla,
36088
- NAMELESS_COLUMN_PREFIX as _t,
36294
+ TableRow as _t,
36089
36295
  DEFAULT_SLIDE_TYPE as a,
36090
- EyeOff as an,
36091
- Toggle as at,
36296
+ Funnel as an,
36297
+ slotsController as at,
36092
36298
  downloadHTMLAsImage as b,
36093
- renderCellValue as bt,
36299
+ inferFieldTypes as bt,
36094
36300
  Slide as c,
36095
- Download as cn,
36096
- PanelResizeHandle as ct,
36301
+ Ellipsis as cn,
36302
+ PanelGroup as ct,
36097
36303
  RadioGroupItem as d,
36098
- ChevronsRight as dn,
36099
- Table as dt,
36100
- $fae977aafc393c5c$export$588937bcd60ade55 as en,
36101
- contextAwarePanelOwner as et,
36304
+ ChevronsUpDown as dn,
36305
+ Provider$1 as dt,
36306
+ EmotionCacheProvider as en,
36307
+ contextAwarePanelOpen as et,
36102
36308
  JsonOutput as f,
36103
- ChevronsLeft as fn,
36104
- TableBody as ft,
36309
+ ChevronsRight as fn,
36310
+ Table as ft,
36105
36311
  InstallPackageButton as g,
36106
- TableRow as gt,
36312
+ ArrowDownWideNarrow as gn,
36313
+ TableHeader as gt,
36107
36314
  DataTable as h,
36108
- ArrowDownWideNarrow as hn,
36109
- TableHeader as ht,
36315
+ ChevronLeft as hn,
36316
+ TableHead as ht,
36110
36317
  DEFAULT_DECK_TRANSITION as i,
36111
- Funnel as in,
36112
- slotsController as it,
36318
+ GripHorizontal as in,
36319
+ SlotNames as it,
36113
36320
  getColumnCountForDisplay as j,
36114
- TOO_MANY_ROWS as jt,
36321
+ SELECT_COLUMN_ID as jt,
36115
36322
  prettifyRowColumnCount as k,
36116
- INDEX_COLUMN_NAME as kt,
36323
+ loadTableData as kt,
36117
36324
  Switch as l,
36118
- Code as ln,
36119
- Fill as lt,
36325
+ Download as ln,
36326
+ PanelResizeHandle as lt,
36120
36327
  OutputRenderer as m,
36121
- ChevronLeft as mn,
36122
- TableHead as mt,
36328
+ ChevronsDownUp as mn,
36329
+ TableCell as mt,
36123
36330
  marimoVersionAtom as n,
36124
- TextWrap as nn,
36125
- isCellAwareAtom as nt,
36331
+ $fae977aafc393c5c$export$6b862160d295c8e as nn,
36332
+ contextAwarePanelType as nt,
36126
36333
  SLIDE_TYPE_OPTIONS_BY_VALUE as o,
36127
- Expand as on,
36128
- Panel as ot,
36334
+ EyeOff as on,
36335
+ Toggle as ot,
36129
36336
  OutputArea as p,
36130
- ChevronsDownUp as pn,
36131
- TableCell as pt,
36132
- CommandItem as q,
36133
- ChartLoadingState as qt,
36337
+ ChevronsLeft as pn,
36338
+ TableBody as pt,
36339
+ CommandInput as q,
36340
+ ChartInfoState as qt,
36134
36341
  showCodeInRunModeAtom as r,
36135
- GripHorizontal as rn,
36136
- SlotNames as rt,
36342
+ TextWrap as rn,
36343
+ isCellAwareAtom as rt,
36137
36344
  SlideSidebar as s,
36138
- Ellipsis as sn,
36139
- PanelGroup as st,
36345
+ Expand as sn,
36346
+ Panel as st,
36140
36347
  useNotebookCodeAvailable as t,
36141
- $fae977aafc393c5c$export$6b862160d295c8e as tn,
36142
- contextAwarePanelType as tt,
36348
+ $fae977aafc393c5c$export$588937bcd60ade55 as tn,
36349
+ contextAwarePanelOwner as tt,
36143
36350
  RadioGroup as u,
36144
- ChevronsUpDown as un,
36145
- Provider$1 as ut,
36351
+ Code as un,
36352
+ Fill as ut,
36146
36353
  downloadBlob as v,
36147
- generateColumns as vt,
36354
+ NAMELESS_COLUMN_PREFIX as vt,
36148
36355
  ColumnName as w,
36149
- useIntersectionObserver as wt,
36356
+ DelayMount as wt,
36150
36357
  Progress as x,
36151
- ColumnChartContext as xt,
36358
+ renderCellValue as xt,
36152
36359
  downloadByURL as y,
36153
- inferFieldTypes as yt,
36154
- CompactChipRow as z,
36155
- dateToLocalISODateTime as zt
36360
+ generateColumns as yt,
36361
+ useSelectList as z,
36362
+ dateToLocalISODate as zt
36156
36363
  };