@marimo-team/islands 0.23.14-dev6 → 0.23.14-dev61

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 (171) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Du3_nUzI.js → ConnectedDataExplorerComponent-CU4fZJzG.js} +4 -4
  2. package/dist/assets/__vite-browser-external-BQCLNwri.js +1 -0
  3. package/dist/assets/{worker-DEDLIQQV.js → worker-DAWRHcPq.js} +2 -2
  4. package/dist/{chat-ui-BZxLHwyD.js → chat-ui-DinOvbWu.js} +3248 -3044
  5. package/dist/{click-outside-container-BDd67_1U.js → click-outside-container-BLPjMamz.js} +141 -113
  6. package/dist/{code-visibility-C90Am97q.js → code-visibility-EvXXzjfW.js} +1169 -960
  7. package/dist/data-grid-overlay-editor-C6lxUJp-.js +136 -0
  8. package/dist/{dist-D_bzzWBm.js → dist-Bf9f8MuT.js} +3 -3
  9. package/dist/{formats-d6MhLuQ9.js → formats-Dzx4J_z1.js} +1 -1
  10. package/dist/{glide-data-editor-DkzAInWG.js → glide-data-editor-CjTu7ukN.js} +2084 -1889
  11. package/dist/{html-to-image-CGp_08St.js → html-to-image-_wGfk8V-.js} +2389 -2322
  12. package/dist/{input-CbEz_aj_.js → input-DtsN7xm-.js} +1 -1
  13. package/dist/main.js +3630 -1801
  14. package/dist/{mermaid-CJW9vIyO.js → mermaid-BYqXy_NE.js} +2 -2
  15. package/dist/{number-overlay-editor-D-a0qCT8.js → number-overlay-editor-BLJXvX9c.js} +1 -1
  16. package/dist/{process-output-R6JsYrv3.js → process-output-Mh4UrjwM.js} +1 -1
  17. package/dist/{reveal-component-C_u9FY4_.js → reveal-component-CKfV5wlk.js} +600 -596
  18. package/dist/{spec-Bv-XlYiv.js → spec-Cz-Bj1JI.js} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{toDate-D-l5s8nn.js → toDate-CWNNlFEX.js} +15 -7
  21. package/dist/{useAsyncData-1Dhzjfwf.js → useAsyncData-KfHB8wQR.js} +1 -1
  22. package/dist/{useDeepCompareMemoize-CDWT3BDz.js → useDeepCompareMemoize-nJMtxhm4.js} +1 -1
  23. package/dist/{useLifecycle-AHlswLw-.js → useLifecycle-DegSo0lV.js} +1 -1
  24. package/dist/{useTheme-BrYvK-_A.js → useTheme-6eZ3GOTS.js} +31 -26
  25. package/dist/{vega-component-Pk6lyc_a.js → vega-component-DzyyM9fc.js} +5 -5
  26. package/package.json +4 -4
  27. package/src/__mocks__/requests.ts +1 -0
  28. package/src/__tests__/CellStatus.test.tsx +1 -2
  29. package/src/components/app-config/user-config-form.tsx +52 -0
  30. package/src/components/chat/acp/agent-panel.tsx +35 -1
  31. package/src/components/chat/chat-panel.tsx +68 -29
  32. package/src/components/data-table/__tests__/column-explorer.test.tsx +25 -0
  33. package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +60 -3
  34. package/src/components/data-table/charts/__tests__/altair-generator.test.ts +24 -0
  35. package/src/components/data-table/charts/__tests__/merge-index-fields.test.ts +33 -0
  36. package/src/components/data-table/charts/chart-spec/altair-generator.ts +4 -1
  37. package/src/components/data-table/charts/charts.tsx +23 -1
  38. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +33 -12
  39. package/src/components/data-table/column-visibility-dropdown.tsx +15 -0
  40. package/src/components/debugger/debugger-code.tsx +7 -2
  41. package/src/components/editor/actions/useNotebookActions.tsx +2 -2
  42. package/src/components/editor/cell/CellStatus.tsx +1 -20
  43. package/src/components/editor/cell/PendingDeleteConfirmation.tsx +1 -1
  44. package/src/components/editor/cell/cell-context-menu.tsx +2 -2
  45. package/src/components/editor/chrome/panels/snippets-panel.tsx +3 -3
  46. package/src/components/editor/chrome/wrapper/__tests__/useOpenAiAssistant.test.ts +36 -0
  47. package/src/components/editor/chrome/wrapper/footer-items/pyodide-status.tsx +6 -36
  48. package/src/components/editor/chrome/wrapper/useAiPanel.ts +3 -1
  49. package/src/components/editor/chrome/wrapper/useOpenAiAssistant.ts +88 -0
  50. package/src/components/editor/code/__tests__/readonly-python-code.test.tsx +79 -0
  51. package/src/components/editor/code/readonly-python-code.tsx +60 -33
  52. package/src/components/editor/errors/__tests__/auto-fix.test.ts +23 -0
  53. package/src/components/editor/errors/auto-fix.tsx +88 -34
  54. package/src/components/editor/errors/fix-mode.ts +1 -1
  55. package/src/components/editor/notebook-cell.tsx +7 -0
  56. package/src/components/editor/output/ImageOutput.tsx +20 -6
  57. package/src/components/editor/output/MarimoTracebackOutput.tsx +28 -2
  58. package/src/components/editor/output/__tests__/ImageOutput.test.tsx +53 -0
  59. package/src/components/editor/output/__tests__/traceback.test.tsx +14 -6
  60. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +7 -2
  61. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +7 -3
  62. package/src/components/lifecycle/ProgressiveBoundary.tsx +42 -0
  63. package/src/components/lifecycle/RuntimeStatusBadge.tsx +59 -0
  64. package/src/components/lifecycle/__tests__/ProgressiveBoundary.test.tsx +147 -0
  65. package/src/components/lifecycle/__tests__/RuntimeStatusBadge.test.tsx +72 -0
  66. package/src/components/slides/__tests__/slide.test.tsx +33 -0
  67. package/src/components/slides/minimap.tsx +7 -1
  68. package/src/components/slides/reveal-component.tsx +3 -0
  69. package/src/components/slides/slide-cell-view.tsx +10 -6
  70. package/src/components/slides/slide.tsx +16 -13
  71. package/src/components/tracing/tracing.tsx +2 -1
  72. package/src/core/ai/config.ts +2 -2
  73. package/src/core/ai/context/__tests__/registry.test.ts +133 -3
  74. package/src/core/ai/context/providers/__tests__/datasource.test.ts +3 -1
  75. package/src/core/ai/context/providers/__tests__/error.test.ts +200 -15
  76. package/src/core/ai/context/providers/datasource.ts +27 -2
  77. package/src/core/ai/context/providers/error.ts +226 -36
  78. package/src/core/ai/context/registry.ts +77 -43
  79. package/src/core/ai/state.ts +11 -0
  80. package/src/core/cells/__tests__/cell.test.ts +39 -0
  81. package/src/core/cells/__tests__/readonly-code-display.test.ts +46 -0
  82. package/src/core/cells/cell.ts +5 -3
  83. package/src/core/cells/readonly-code-display.ts +35 -0
  84. package/src/core/codemirror/__tests__/setup.test.ts +33 -1
  85. package/src/core/codemirror/ai/resources.ts +15 -10
  86. package/src/core/codemirror/cells/__tests__/debugger-decorations.test.ts +185 -0
  87. package/src/core/codemirror/cells/__tests__/debugger-state.test.ts +224 -0
  88. package/src/core/codemirror/cells/__tests__/line-timing-decorations.test.ts +126 -0
  89. package/src/core/codemirror/cells/debugger-decorations.ts +188 -0
  90. package/src/core/codemirror/cells/debugger-state.ts +133 -0
  91. package/src/core/codemirror/cells/extensions.ts +32 -4
  92. package/src/core/codemirror/cells/line-timing-decorations.ts +165 -0
  93. package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +75 -3
  94. package/src/core/codemirror/go-to-definition/extension.ts +3 -3
  95. package/src/core/codemirror/go-to-definition/underline.ts +5 -14
  96. package/src/core/codemirror/go-to-definition/utils.ts +49 -1
  97. package/src/core/codemirror/utils.ts +15 -0
  98. package/src/core/config/__tests__/config-schema.test.ts +17 -0
  99. package/src/core/config/config-schema.ts +1 -0
  100. package/src/core/config/config.ts +10 -0
  101. package/src/core/config/feature-flag.tsx +4 -0
  102. package/src/core/edit-app.tsx +8 -5
  103. package/src/core/errors/errors.ts +2 -1
  104. package/src/core/islands/bootstrap.ts +4 -3
  105. package/src/core/islands/bridge.ts +1 -0
  106. package/src/core/lifecycle/__tests__/render-policy.test.ts +247 -0
  107. package/src/core/lifecycle/render-policy.ts +125 -0
  108. package/src/core/mime.ts +11 -4
  109. package/src/core/network/__tests__/api.test.ts +17 -0
  110. package/src/core/network/__tests__/requests-toasting.test.tsx +46 -0
  111. package/src/core/network/api.ts +17 -6
  112. package/src/core/network/requests-lazy.ts +1 -0
  113. package/src/core/network/requests-network.ts +8 -0
  114. package/src/core/network/requests-static.ts +1 -0
  115. package/src/core/network/requests-toasting.tsx +10 -1
  116. package/src/core/network/types.ts +2 -0
  117. package/src/core/run-app.tsx +27 -23
  118. package/src/core/runtime/__tests__/adapter.test.ts +160 -0
  119. package/src/core/runtime/__tests__/runtime.test.ts +45 -0
  120. package/src/core/runtime/adapter.ts +182 -0
  121. package/src/core/runtime/runtime.ts +30 -16
  122. package/src/core/wasm/PyodideLoader.tsx +20 -62
  123. package/src/core/wasm/bridge.ts +13 -4
  124. package/src/core/wasm/state.ts +8 -19
  125. package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +4 -0
  126. package/src/core/websocket/__tests__/useWebSocket.test.ts +49 -0
  127. package/src/core/websocket/transports/__tests__/sse.test.ts +338 -0
  128. package/src/core/websocket/transports/sse.ts +308 -0
  129. package/src/core/websocket/useMarimoKernelConnection.tsx +58 -7
  130. package/src/core/websocket/useWebSocket.tsx +12 -2
  131. package/src/css/app/codemirror.css +14 -0
  132. package/src/hooks/__tests__/useDelayElapsed.test.tsx +55 -0
  133. package/src/hooks/useDelayElapsed.ts +27 -0
  134. package/src/mount.tsx +3 -3
  135. package/src/plugins/core/RenderHTML.tsx +35 -1
  136. package/src/plugins/core/__test__/RenderHTML.test.ts +44 -0
  137. package/src/plugins/impl/DataTablePlugin.tsx +1 -0
  138. package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +33 -254
  139. package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +116 -174
  140. package/src/plugins/impl/anywidget/__tests__/host.test.ts +313 -0
  141. package/src/plugins/impl/anywidget/__tests__/model-proxy.test.ts +158 -0
  142. package/src/plugins/impl/anywidget/__tests__/model.test.ts +8 -177
  143. package/src/plugins/impl/anywidget/__tests__/registry.test.ts +708 -0
  144. package/src/plugins/impl/anywidget/__tests__/resolve-widget.test.ts +132 -0
  145. package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +305 -133
  146. package/src/plugins/impl/anywidget/__tests__/widget-ref.test.ts +28 -0
  147. package/src/plugins/impl/anywidget/host.ts +54 -0
  148. package/src/plugins/impl/anywidget/model-proxy.ts +70 -0
  149. package/src/plugins/impl/anywidget/model.ts +59 -239
  150. package/src/plugins/impl/anywidget/registry.ts +268 -0
  151. package/src/plugins/impl/anywidget/resolve-widget.ts +138 -0
  152. package/src/plugins/impl/anywidget/runtime.ts +422 -0
  153. package/src/plugins/impl/anywidget/types.ts +14 -0
  154. package/src/plugins/impl/anywidget/widget-binding.ts +280 -119
  155. package/src/plugins/impl/anywidget/widget-ref.ts +29 -0
  156. package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +187 -0
  157. package/src/plugins/impl/data-editor/glide-data-editor.tsx +6 -0
  158. package/src/plugins/impl/data-editor/glide-portal.tsx +73 -0
  159. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +3 -2
  160. package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +16 -13
  161. package/src/plugins/impl/mpl-interactive/mpl-websocket-shim.ts +1 -1
  162. package/src/utils/errors.ts +15 -0
  163. package/src/utils/time.ts +20 -0
  164. package/dist/assets/__vite-browser-external-DAm_YW43.js +0 -1
  165. package/dist/data-grid-overlay-editor-mfEJ5475.js +0 -128
  166. package/src/components/editor/chrome/panels/__tests__/snippet-display.test.ts +0 -22
  167. package/src/components/editor/chrome/panels/snippet-display.ts +0 -27
  168. package/src/core/ai/context/providers/__tests__/__snapshots__/error.test.ts.snap +0 -3
  169. package/src/core/wasm/__tests__/PyodideLoader.test.ts +0 -72
  170. package/src/core/wasm/__tests__/state.test.ts +0 -124
  171. package/src/plugins/impl/anywidget/schemas.ts +0 -32
@@ -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-_wGfk8V-.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-DegSo0lV.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-DtsN7xm-.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-CWNNlFEX.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-6eZ3GOTS.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-Dzx4J_z1.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-KfHB8wQR.js";
38
+ let PANEL_TYPES, hasFunctionProperty, prettifyRowCount, INDEX_COLUMN_NAME, CompactChipRow, Tabs, downloadSizeLimitAtom, ColumnChartSpecModel, ErrorState, getPageIndexForRow, EmptyState, usePrevious, ContextMenuItem, isNullishFilter, Command, ChartInfoState, DateRangePicker, TabsList, ContextMenuSeparator, Maps, CommandItem, useOverflowDetection, CommandEmpty, ChartLoadingState, ContextMenuTrigger, dateToLocalISODate, getUserColumnVisibilityCounts, TOO_MANY_ROWS, ContextMenu, toFieldTypes, LoadingState, loadTableAndRawData, ContextMenuContent, getMimeValues, ContextAwarePanelItem, EmotionCacheProvider, useInternalStateWithSync, dateToLocalISODateTime, Filenames, ColumnChartContext, ColumnPreviewContainer, useIntersectionObserver, Combobox, TabsTrigger, DatePicker, TabsContent, ComboboxItem, ChartErrorState, CommandSeparator, Kbd, CommandList, RenderTextWithLinks, smartMatch, HtmlOutput, ADD_PRINTING_CLASS, TableRow, DEFAULT_SLIDE_TYPE, Funnel, slotsController, downloadHTMLAsImage, inferFieldTypes, Slide, Ellipsis, PanelGroup, RadioGroupItem, ChevronsUpDown, Provider$1, isRecord, 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, LazyVegaEmbed, 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, dateToLocalISOTime;
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
  },
@@ -10186,6 +10227,12 @@ Defaulting to \`null\`.`;
10186
10227
  function isMatch(e, t, n) {
10187
10228
  return isValid(parse$1(e, t, /* @__PURE__ */ new Date(), n));
10188
10229
  }
10230
+ isRecord = function(e) {
10231
+ return typeof e == "object" && !!e && !Array.isArray(e);
10232
+ };
10233
+ hasFunctionProperty = function(e, t) {
10234
+ return typeof e[t] == "function";
10235
+ };
10189
10236
  (0, import_react.createContext)(null), (0, import_react.createContext)(null), (0, import_react.createContext)(null), (0, import_react.createContext)(null), (0, import_react.createContext)(null);
10190
10237
  var $4e85f108e88277b8$export$d688439359537581 = (0, import_react.createContext)({});
10191
10238
  (0, import_react.createContext)(null), (0, import_react.createContext)(null);
@@ -10302,12 +10349,12 @@ Defaulting to \`null\`.`;
10302
10349
  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
10350
  }
10304
10351
  }
10305
- let Fq = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10352
+ let eJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10306
10353
  w,
10307
10354
  f,
10308
10355
  s,
10309
10356
  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), [
10357
+ ]), tJ = e.isInvalid || e.validationState === "invalid" || eJ, nJ = tJ ? "invalid" : null, rJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10311
10358
  h,
10312
10359
  o
10313
10360
  ]);
@@ -10324,8 +10371,8 @@ Defaulting to \`null\`.`;
10324
10371
  maxValue: c,
10325
10372
  focusedDate: O,
10326
10373
  timeZone: E,
10327
- validationState: Lq,
10328
- isValueInvalid: Iq,
10374
+ validationState: nJ,
10375
+ isValueInvalid: tJ,
10329
10376
  setFocusedDate(e2) {
10330
10377
  Q(e2);
10331
10378
  },
@@ -10350,12 +10397,12 @@ Defaulting to \`null\`.`;
10350
10397
  }));
10351
10398
  },
10352
10399
  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));
10400
+ let e2 = M.add(rJ);
10401
+ 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
10402
  },
10356
10403
  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));
10404
+ let e2 = M.subtract(rJ);
10405
+ 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
10406
  },
10360
10407
  focusSectionStart() {
10361
10408
  o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
@@ -10492,13 +10539,13 @@ Defaulting to \`null\`.`;
10492
10539
  end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
10493
10540
  }), q(null);
10494
10541
  }
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,
10542
+ }, [$, 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), [
10543
+ tJ,
10497
10544
  h,
10498
10545
  v,
10499
10546
  c,
10500
10547
  d
10501
- ]), Rq = e.isInvalid || e.validationState === "invalid" || Lq, zq = Rq ? "invalid" : null;
10548
+ ]), rJ = e.isInvalid || e.validationState === "invalid" || nJ, iJ = rJ ? "invalid" : null;
10502
10549
  return {
10503
10550
  ...I,
10504
10551
  value: h,
@@ -10506,8 +10553,8 @@ Defaulting to \`null\`.`;
10506
10553
  anchorDate: v,
10507
10554
  setAnchorDate: q,
10508
10555
  highlightedRange: J,
10509
- validationState: zq,
10510
- isValueInvalid: Rq,
10556
+ validationState: iJ,
10557
+ isValueInvalid: rJ,
10511
10558
  selectFocusedDate() {
10512
10559
  Q(I.focusedDate);
10513
10560
  },
@@ -10523,7 +10570,7 @@ Defaulting to \`null\`.`;
10523
10570
  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
10571
  },
10525
10572
  isDragging: $,
10526
- setDragging: Fq
10573
+ setDragging: eJ
10527
10574
  };
10528
10575
  }
10529
10576
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11710,7 +11757,7 @@ Defaulting to \`null\`.`;
11710
11757
  _,
11711
11758
  S,
11712
11759
  v
11713
- ]), Fq = (0, import_react.useMemo)(() => {
11760
+ ]), eJ = (0, import_react.useMemo)(() => {
11714
11761
  let t2 = w === "h11" || w === "h12", n2 = [
11715
11762
  "era",
11716
11763
  "year",
@@ -11728,15 +11775,15 @@ Defaulting to \`null\`.`;
11728
11775
  e.maxGranularity,
11729
11776
  _,
11730
11777
  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);
11778
+ ]), [tJ, nJ] = (0, import_react.useState)(M), [rJ, iJ] = (0, import_react.useState)(S), [aJ, oJ] = (0, import_react.useState)(w);
11779
+ (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));
11780
+ let sJ = (t2) => {
11781
+ 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
11782
  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
11783
  else {
11737
- if (t2.isComplete(Fq)) {
11784
+ if (t2.isComplete(eJ)) {
11738
11785
  let e2 = t2.toValue(M ?? $);
11739
- if (t2.validate(e2, Fq)) {
11786
+ if (t2.validate(e2, eJ)) {
11740
11787
  let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11741
11788
  if (!E || t3.compare(E) !== 0) {
11742
11789
  z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
@@ -11746,83 +11793,83 @@ Defaulting to \`null\`.`;
11746
11793
  }
11747
11794
  z(t2);
11748
11795
  }
11749
- }, Uq = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11796
+ }, cJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11750
11797
  I,
11751
11798
  y,
11752
11799
  M,
11753
11800
  $
11754
- ]), Wq = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(Uq, I, J, Q, S, t, _), [
11755
- Uq,
11801
+ ]), lJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(cJ, I, J, Q, S, t, _), [
11802
+ cJ,
11756
11803
  J,
11757
11804
  Q,
11758
11805
  I,
11759
11806
  S,
11760
11807
  t,
11761
11808
  _
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), [
11809
+ ]), uJ = (e2, t2) => {
11810
+ sJ(I.cycle(e2, t2, $, eJ));
11811
+ }, dJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11765
11812
  E,
11766
11813
  c,
11767
11814
  d,
11768
11815
  f,
11769
11816
  K
11770
- ]), qq = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11817
+ ]), fJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11771
11818
  ...e,
11772
11819
  value: E,
11773
- builtinValidation: Kq
11774
- }), Jq = qq.displayValidation.isInvalid, Yq = e.validationState || (Jq ? "invalid" : null);
11820
+ builtinValidation: dJ
11821
+ }), pJ = fJ.displayValidation.isInvalid, mJ = e.validationState || (pJ ? "invalid" : null);
11775
11822
  return {
11776
- ...qq,
11823
+ ...fJ,
11777
11824
  value: M,
11778
11825
  defaultValue: e.defaultValue ?? A,
11779
- dateValue: Uq,
11826
+ dateValue: cJ,
11780
11827
  calendar: S,
11781
- setValue: Hq,
11782
- segments: Wq,
11828
+ setValue: sJ,
11829
+ segments: lJ,
11783
11830
  dateFormatter: J,
11784
- validationState: Yq,
11785
- isInvalid: Jq,
11831
+ validationState: mJ,
11832
+ isInvalid: pJ,
11786
11833
  granularity: _,
11787
11834
  maxGranularity: e.maxGranularity ?? "year",
11788
11835
  isDisabled: a,
11789
11836
  isReadOnly: o,
11790
11837
  isRequired: s,
11791
11838
  increment(e2) {
11792
- Gq(e2, 1);
11839
+ uJ(e2, 1);
11793
11840
  },
11794
11841
  decrement(e2) {
11795
- Gq(e2, -1);
11842
+ uJ(e2, -1);
11796
11843
  },
11797
11844
  incrementPage(e2) {
11798
- Gq(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11845
+ uJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11799
11846
  },
11800
11847
  decrementPage(e2) {
11801
- Gq(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11848
+ uJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11802
11849
  },
11803
11850
  incrementToMax(e2) {
11804
11851
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11805
- Hq(I.set(e2, t2, $));
11852
+ sJ(I.set(e2, t2, $));
11806
11853
  },
11807
11854
  decrementToMin(e2) {
11808
11855
  let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
11809
- Hq(I.set(e2, t2, $));
11856
+ sJ(I.set(e2, t2, $));
11810
11857
  },
11811
11858
  setSegment(e2, t2) {
11812
- Hq(I.set(e2, t2, $));
11859
+ sJ(I.set(e2, t2, $));
11813
11860
  },
11814
11861
  confirmPlaceholder() {
11815
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(Fq)) {
11862
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(eJ)) {
11816
11863
  let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11817
11864
  (!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
11818
11865
  }
11819
11866
  },
11820
11867
  clearSegment(e2) {
11821
11868
  let t2 = I;
11822
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), Hq(t2);
11869
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), sJ(t2);
11823
11870
  },
11824
11871
  formatValue(e2) {
11825
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(Uq) : "";
11872
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(cJ) : "";
11826
11873
  },
11827
11874
  getDateFormatter(e2, t2) {
11828
11875
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11942,7 +11989,7 @@ Defaulting to \`null\`.`;
11942
11989
  e.endName
11943
11990
  ]),
11944
11991
  builtinValidation: J
11945
- }), $ = Q.displayValidation.isInvalid, Fq = e.validationState || ($ ? "invalid" : null);
11992
+ }), $ = Q.displayValidation.isInvalid, eJ = e.validationState || ($ ? "invalid" : null);
11946
11993
  return {
11947
11994
  ...Q,
11948
11995
  value: c,
@@ -11988,7 +12035,7 @@ Defaulting to \`null\`.`;
11988
12035
  end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
11989
12036
  }), t.setOpen(n2);
11990
12037
  },
11991
- validationState: Fq,
12038
+ validationState: eJ,
11992
12039
  isInvalid: $,
11993
12040
  formatValue(t2, n2) {
11994
12041
  if (!c || !c.start || !c.end) return null;
@@ -13945,9 +13992,9 @@ Defaulting to \`null\`.`;
13945
13992
  t,
13946
13993
  i.name
13947
13994
  ]), null;
13948
- }), import_compiler_runtime$65 = require_compiler_runtime();
13995
+ }), import_compiler_runtime$68 = require_compiler_runtime();
13949
13996
  EmotionCacheProvider = (e) => {
13950
- let t = (0, import_compiler_runtime$65.c)(6), { container: n, children: i } = e, a;
13997
+ let t = (0, import_compiler_runtime$68.c)(6), { container: n, children: i } = e, a;
13951
13998
  bb0: {
13952
13999
  if (!n) {
13953
14000
  let e3;
@@ -15860,33 +15907,33 @@ try {
15860
15907
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15861
15908
  function y(e2) {
15862
15909
  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), [
15910
+ 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
15911
  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,
15912
+ ]), 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(","), [
15913
+ oJ
15914
+ ]), 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({
15915
+ supportedColorSchemes: sJ,
15916
+ defaultLightColorScheme: cJ,
15917
+ defaultDarkColorScheme: lJ,
15871
15918
  modeStorageKey: y2,
15872
15919
  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),
15920
+ 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
15921
  storageManager: E,
15875
15922
  storageWindow: O,
15876
15923
  noSsr: K
15877
- }), Qq = Gq, $q = Xq;
15878
- $ && (Qq = Q.mode, $q = Q.colorScheme);
15879
- let eJ = import_react.useMemo(() => {
15924
+ }), _J = uJ, vJ = hJ;
15925
+ $ && (_J = Q.mode, vJ = Q.colorScheme);
15926
+ let yJ = import_react.useMemo(() => {
15880
15927
  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,
15928
+ let e3 = vJ || nJ.defaultColorScheme, t2 = ((_a3 = nJ.generateThemeVars) == null ? void 0 : _a3.call(nJ)) || nJ.vars, n2 = {
15929
+ ...nJ,
15930
+ components: iJ,
15931
+ colorSchemes: rJ,
15932
+ cssVarPrefix: aJ,
15886
15933
  vars: t2
15887
15934
  };
15888
15935
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15889
- let t3 = Rq[e3];
15936
+ let t3 = rJ[e3];
15890
15937
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
15891
15938
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
15892
15939
  ...n2[e4],
@@ -15896,31 +15943,31 @@ try {
15896
15943
  }
15897
15944
  return c ? c(n2) : n2;
15898
15945
  }, [
15899
- Lq,
15900
- $q,
15901
- zq,
15902
- Rq,
15903
- Bq
15904
- ]), tJ = Lq.colorSchemeSelector;
15946
+ nJ,
15947
+ vJ,
15948
+ iJ,
15949
+ rJ,
15950
+ aJ
15951
+ ]), bJ = nJ.colorSchemeSelector;
15905
15952
  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));
15953
+ if (vJ && M && bJ && bJ !== "media") {
15954
+ let e3 = bJ, t2 = bJ;
15955
+ 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
15956
  else {
15910
- let e4 = t2.replace("%s", $q).match(/\[([^\]]+)\]/);
15957
+ let e4 = t2.replace("%s", vJ).match(/\[([^\]]+)\]/);
15911
15958
  if (e4) {
15912
15959
  let [t3, n2] = e4[1].split("=");
15913
- n2 || Hq.forEach((e5) => {
15914
- M.removeAttribute(t3.replace($q, e5));
15960
+ n2 || sJ.forEach((e5) => {
15961
+ M.removeAttribute(t3.replace(vJ, e5));
15915
15962
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15916
- } else M.setAttribute(t2, $q);
15963
+ } else M.setAttribute(t2, vJ);
15917
15964
  }
15918
15965
  }
15919
15966
  }, [
15920
- $q,
15921
- tJ,
15967
+ vJ,
15968
+ bJ,
15922
15969
  M,
15923
- Hq
15970
+ sJ
15924
15971
  ]), import_react.useEffect(() => {
15925
15972
  let e3;
15926
15973
  if (w2 && q.current && A) {
@@ -15933,48 +15980,48 @@ try {
15933
15980
  clearTimeout(e3);
15934
15981
  };
15935
15982
  }, [
15936
- $q,
15983
+ vJ,
15937
15984
  w2,
15938
15985
  A
15939
15986
  ]), import_react.useEffect(() => (q.current = true, () => {
15940
15987
  q.current = false;
15941
15988
  }), []);
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
15989
+ let xJ = import_react.useMemo(() => ({
15990
+ allColorSchemes: sJ,
15991
+ colorScheme: vJ,
15992
+ darkColorScheme: mJ,
15993
+ lightColorScheme: pJ,
15994
+ mode: _J,
15995
+ setColorScheme: gJ,
15996
+ setMode: dJ,
15997
+ systemMode: fJ
15951
15998
  }), [
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, {
15999
+ sJ,
16000
+ vJ,
16001
+ mJ,
16002
+ pJ,
16003
+ _J,
16004
+ gJ,
16005
+ dJ,
16006
+ fJ,
16007
+ yJ.colorSchemeSelector
16008
+ ]), SJ = true;
16009
+ (z || nJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === aJ) && (SJ = false);
16010
+ let CJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
15964
16011
  children: [
15965
16012
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
15966
- themeId: Iq ? t : void 0,
15967
- theme: eJ,
16013
+ themeId: tJ ? t : void 0,
16014
+ theme: yJ,
15968
16015
  children: d2
15969
16016
  }),
15970
- rJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
15971
- styles: ((_d = eJ.generateStyleSheets) == null ? void 0 : _d.call(eJ)) || []
16017
+ SJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16018
+ styles: ((_d = yJ.generateStyleSheets) == null ? void 0 : _d.call(yJ)) || []
15972
16019
  })
15973
16020
  ]
15974
16021
  });
15975
- return $ ? iJ : (0, import_jsx_runtime.jsx)(f.Provider, {
15976
- value: nJ,
15977
- children: iJ
16022
+ return $ ? CJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16023
+ value: xJ,
16024
+ children: CJ
15978
16025
  });
15979
16026
  }
15980
16027
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17474,10 +17521,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17474
17521
  let n = useDefaultProps({
17475
17522
  props: e,
17476
17523
  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({
17524
+ }), { "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) => {
17525
+ }, []), vJ = useForkRef_default(gJ, M, A.ref, _J), [yJ, bJ] = import_react.useState(false), xJ = useFormControl(), SJ = formControlState({
17479
17526
  props: n,
17480
- muiFormControl: nJ,
17527
+ muiFormControl: xJ,
17481
17528
  states: [
17482
17529
  "color",
17483
17530
  "disabled",
@@ -17488,145 +17535,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17488
17535
  "filled"
17489
17536
  ]
17490
17537
  });
17491
- rJ.focused = nJ ? nJ.focused : eJ, import_react.useEffect(() => {
17492
- !nJ && _ && eJ && (tJ(false), J && J());
17538
+ SJ.focused = xJ ? xJ.focused : yJ, import_react.useEffect(() => {
17539
+ !xJ && _ && yJ && (bJ(false), J && J());
17493
17540
  }, [
17494
- nJ,
17541
+ xJ,
17495
17542
  _,
17496
- eJ,
17543
+ yJ,
17497
17544
  J
17498
17545
  ]);
17499
- let iJ = nJ && nJ.onFilled, aJ = nJ && nJ.onEmpty, oJ = import_react.useCallback((e2) => {
17500
- isFilled(e2) ? iJ && iJ() : aJ && aJ();
17546
+ let CJ = xJ && xJ.onFilled, wJ = xJ && xJ.onEmpty, TJ = import_react.useCallback((e2) => {
17547
+ isFilled(e2) ? CJ && CJ() : wJ && wJ();
17501
17548
  }, [
17502
- iJ,
17503
- aJ
17549
+ CJ,
17550
+ wJ
17504
17551
  ]);
17505
17552
  useEnhancedEffect_default$1(() => {
17506
- Xq && oJ({
17507
- value: Yq
17553
+ hJ && TJ({
17554
+ value: mJ
17508
17555
  });
17509
17556
  }, [
17510
- Yq,
17511
- oJ,
17512
- Xq
17557
+ mJ,
17558
+ TJ,
17559
+ hJ
17513
17560
  ]);
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;
17561
+ let EJ = (e2) => {
17562
+ eJ && eJ(e2), A.onFocus && A.onFocus(e2), xJ && xJ.onFocus ? xJ.onFocus(e2) : bJ(true);
17563
+ }, DJ = (e2) => {
17564
+ J && J(e2), A.onBlur && A.onBlur(e2), xJ && xJ.onBlur ? xJ.onBlur(e2) : bJ(false);
17565
+ }, OJ = (e2, ...t2) => {
17566
+ if (!hJ) {
17567
+ let t3 = e2.target || gJ.current;
17521
17568
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17522
- oJ({
17569
+ TJ({
17523
17570
  value: t3.value
17524
17571
  });
17525
17572
  }
17526
17573
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17527
17574
  };
17528
17575
  import_react.useEffect(() => {
17529
- oJ(Zq.current);
17576
+ TJ(gJ.current);
17530
17577
  }, []);
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 ? {
17578
+ let kJ = (e2) => {
17579
+ gJ.current && e2.currentTarget === e2.target && gJ.current.focus(), $ && $(e2);
17580
+ }, AJ = O, jJ = A;
17581
+ K && AJ === "input" && (jJ = oJ ? {
17535
17582
  type: void 0,
17536
- minRows: Vq,
17537
- maxRows: Vq,
17538
- ...fJ
17583
+ minRows: oJ,
17584
+ maxRows: oJ,
17585
+ ...jJ
17539
17586
  } : {
17540
17587
  type: void 0,
17541
17588
  maxRows: z,
17542
17589
  minRows: U,
17543
- ...fJ
17544
- }, dJ = TextareaAutosize_default);
17545
- let pJ = (e2) => {
17546
- oJ(e2.animationName === "mui-auto-fill-cancel" ? Zq.current : {
17590
+ ...jJ
17591
+ }, AJ = TextareaAutosize_default);
17592
+ let MJ = (e2) => {
17593
+ TJ(e2.animationName === "mui-auto-fill-cancel" ? gJ.current : {
17547
17594
  value: "x"
17548
17595
  });
17549
17596
  };
17550
17597
  import_react.useEffect(() => {
17551
- nJ && nJ.setAdornedStart(!!Gq);
17598
+ xJ && xJ.setAdornedStart(!!uJ);
17552
17599
  }, [
17553
- nJ,
17554
- Gq
17600
+ xJ,
17601
+ uJ
17555
17602
  ]);
17556
- let mJ = {
17603
+ let NJ = {
17557
17604
  ...n,
17558
- color: rJ.color || "primary",
17559
- disabled: rJ.disabled,
17605
+ color: SJ.color || "primary",
17606
+ disabled: SJ.disabled,
17560
17607
  endAdornment: y,
17561
- error: rJ.error,
17562
- focused: rJ.focused,
17563
- formControl: nJ,
17608
+ error: SJ.error,
17609
+ focused: SJ.focused,
17610
+ formControl: xJ,
17564
17611
  fullWidth: w,
17565
- hiddenLabel: rJ.hiddenLabel,
17612
+ hiddenLabel: SJ.hiddenLabel,
17566
17613
  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
17614
+ size: SJ.size,
17615
+ startAdornment: uJ,
17616
+ type: dJ
17617
+ }, PJ = useUtilityClasses(NJ), FJ = lJ.root || d.Root || InputBaseRoot, IJ = cJ.root || f.root || {}, LJ = lJ.input || d.Input || InputBaseInput;
17618
+ return jJ = {
17619
+ ...jJ,
17620
+ ...cJ.input ?? f.input
17574
17621
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17575
17622
  children: [
17576
17623
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17577
- (0, import_jsx_runtime.jsxs)(gJ, {
17578
- ..._J,
17624
+ (0, import_jsx_runtime.jsxs)(FJ, {
17625
+ ...IJ,
17579
17626
  ref: t,
17580
- onClick: uJ,
17581
- ...Jq,
17582
- ...!isHostComponent_default(gJ) && {
17627
+ onClick: kJ,
17628
+ ...pJ,
17629
+ ...!isHostComponent_default(FJ) && {
17583
17630
  ownerState: {
17584
- ...mJ,
17585
- ..._J.ownerState
17631
+ ...NJ,
17632
+ ...IJ.ownerState
17586
17633
  }
17587
17634
  },
17588
- className: clsx_default(hJ.root, _J.className, s, zq && "MuiInputBase-readOnly"),
17635
+ className: clsx_default(PJ.root, IJ.className, s, iJ && "MuiInputBase-readOnly"),
17589
17636
  children: [
17590
- Gq,
17637
+ uJ,
17591
17638
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17592
17639
  value: null,
17593
- children: (0, import_jsx_runtime.jsx)(vJ, {
17594
- "aria-invalid": rJ.error,
17640
+ children: (0, import_jsx_runtime.jsx)(LJ, {
17641
+ "aria-invalid": SJ.error,
17595
17642
  "aria-describedby": i,
17596
17643
  autoComplete: a,
17597
17644
  autoFocus: o,
17598
17645
  defaultValue: h,
17599
- disabled: rJ.disabled,
17646
+ disabled: SJ.disabled,
17600
17647
  id: E,
17601
- onAnimationStart: pJ,
17648
+ onAnimationStart: MJ,
17602
17649
  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,
17650
+ placeholder: rJ,
17651
+ readOnly: iJ,
17652
+ required: SJ.required,
17653
+ rows: oJ,
17654
+ value: mJ,
17655
+ onKeyDown: tJ,
17656
+ onKeyUp: nJ,
17657
+ type: dJ,
17658
+ ...jJ,
17659
+ ...!isHostComponent_default(LJ) && {
17660
+ as: AJ,
17614
17661
  ownerState: {
17615
- ...mJ,
17616
- ...fJ.ownerState
17662
+ ...NJ,
17663
+ ...jJ.ownerState
17617
17664
  }
17618
17665
  },
17619
- ref: $q,
17620
- className: clsx_default(hJ.input, fJ.className, zq && "MuiInputBase-readOnly"),
17621
- onBlur: cJ,
17622
- onChange: lJ,
17623
- onFocus: sJ
17666
+ ref: vJ,
17667
+ className: clsx_default(PJ.input, jJ.className, iJ && "MuiInputBase-readOnly"),
17668
+ onBlur: DJ,
17669
+ onChange: OJ,
17670
+ onFocus: EJ
17624
17671
  })
17625
17672
  }),
17626
17673
  y,
17627
- Bq ? Bq({
17628
- ...rJ,
17629
- startAdornment: Gq
17674
+ aJ ? aJ({
17675
+ ...SJ,
17676
+ startAdornment: uJ
17630
17677
  }) : null
17631
17678
  ]
17632
17679
  })
@@ -18702,30 +18749,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18702
18749
  M,
18703
18750
  i,
18704
18751
  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,
18752
+ ]), 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)), [
18753
+ lJ,
18707
18754
  a,
18708
18755
  i,
18709
- Uq,
18756
+ cJ,
18710
18757
  v,
18711
18758
  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,
18759
+ ]), 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, [
18760
+ fJ,
18714
18761
  a,
18715
- Vq,
18762
+ oJ,
18716
18763
  i,
18717
- Kq,
18764
+ dJ,
18718
18765
  v,
18719
18766
  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,
18767
+ ]), 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, [
18768
+ _J,
18722
18769
  n,
18723
18770
  t
18724
- ]), eJ = (0, import_react.useRef)();
18771
+ ]), yJ = (0, import_react.useRef)();
18725
18772
  (0, import_react.useEffect)(() => {
18726
- eJ.current && $q && "animate" in eJ.current && eJ.current.animate([
18773
+ yJ.current && vJ && "animate" in yJ.current && yJ.current.animate([
18727
18774
  {
18728
- backgroundColor: Lq
18775
+ backgroundColor: nJ
18729
18776
  },
18730
18777
  {
18731
18778
  backgroundColor: ""
@@ -18735,22 +18782,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18735
18782
  easing: "ease-in"
18736
18783
  });
18737
18784
  }, [
18738
- Lq,
18739
- $q,
18785
+ nJ,
18786
+ vJ,
18740
18787
  n,
18741
18788
  t
18742
18789
  ]);
18743
- let tJ = (0, import_react.useCallback)((e2) => {
18790
+ let bJ = (0, import_react.useCallback)((e2) => {
18744
18791
  e2.preventDefault(), h && E(h(t)), Q(true);
18745
18792
  }, [
18746
18793
  h,
18747
18794
  t
18748
- ]), nJ = (0, import_react.useCallback)(() => {
18795
+ ]), xJ = (0, import_react.useCallback)(() => {
18749
18796
  Q(false), E("");
18750
18797
  }, [
18751
18798
  Q,
18752
18799
  E
18753
- ]), rJ = (0, import_react.useCallback)((e2) => {
18800
+ ]), SJ = (0, import_react.useCallback)((e2) => {
18754
18801
  if (Q(false), _) try {
18755
18802
  $(i, t, _(e2));
18756
18803
  } catch {
@@ -18761,14 +18808,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18761
18808
  $,
18762
18809
  i,
18763
18810
  t
18764
- ]), iJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18811
+ ]), CJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18765
18812
  children: [
18766
18813
  (0, import_jsx_runtime.jsx)(IconBox, {
18767
18814
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18768
18815
  sx: {
18769
18816
  fontSize: ".8rem"
18770
18817
  },
18771
- onClick: nJ
18818
+ onClick: xJ
18772
18819
  })
18773
18820
  }),
18774
18821
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18776,22 +18823,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18776
18823
  sx: {
18777
18824
  fontSize: ".8rem"
18778
18825
  },
18779
- onClick: () => rJ(w)
18826
+ onClick: () => SJ(w)
18780
18827
  })
18781
18828
  })
18782
18829
  ]
18783
18830
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18784
18831
  children: [
18785
- Yq && (0, import_jsx_runtime.jsx)(IconBox, {
18832
+ mJ && (0, import_jsx_runtime.jsx)(IconBox, {
18786
18833
  onClick: (e2) => {
18787
18834
  e2.preventDefault();
18788
18835
  try {
18789
- Xq(i, t, copyString);
18836
+ hJ(i, t, copyString);
18790
18837
  } catch (e3) {
18791
18838
  console.error(e3);
18792
18839
  }
18793
18840
  },
18794
- children: Zq ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18841
+ children: gJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18795
18842
  sx: {
18796
18843
  fontSize: ".8rem"
18797
18844
  }
@@ -18802,16 +18849,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18802
18849
  })
18803
18850
  }),
18804
18851
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18805
- onClick: tJ,
18852
+ onClick: bJ,
18806
18853
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18807
18854
  sx: {
18808
18855
  fontSize: ".8rem"
18809
18856
  }
18810
18857
  })
18811
18858
  }),
18812
- Gq && (0, import_jsx_runtime.jsx)(IconBox, {
18859
+ uJ && (0, import_jsx_runtime.jsx)(IconBox, {
18813
18860
  onClick: (e2) => {
18814
- e2.preventDefault(), Wq == null ? void 0 : Wq(i);
18861
+ e2.preventDefault(), lJ == null ? void 0 : lJ(i);
18815
18862
  },
18816
18863
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18817
18864
  sx: {
@@ -18819,9 +18866,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18819
18866
  }
18820
18867
  })
18821
18868
  }),
18822
- Jq && (0, import_jsx_runtime.jsx)(IconBox, {
18869
+ pJ && (0, import_jsx_runtime.jsx)(IconBox, {
18823
18870
  onClick: (e2) => {
18824
- e2.preventDefault(), qq == null ? void 0 : qq(i, t);
18871
+ e2.preventDefault(), fJ == null ? void 0 : fJ(i, t);
18825
18872
  },
18826
18873
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18827
18874
  sx: {
@@ -18834,24 +18881,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18834
18881
  f,
18835
18882
  h,
18836
18883
  _,
18837
- Zq,
18838
- Xq,
18884
+ gJ,
18885
+ hJ,
18839
18886
  S,
18840
18887
  J,
18841
- Yq,
18842
- Gq,
18843
- Jq,
18888
+ mJ,
18889
+ uJ,
18890
+ pJ,
18844
18891
  w,
18845
18892
  i,
18846
18893
  t,
18847
- Wq,
18848
- qq,
18849
- tJ,
18850
- nJ,
18851
- rJ
18852
- ]), aJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18894
+ lJ,
18895
+ fJ,
18896
+ bJ,
18897
+ xJ,
18898
+ SJ
18899
+ ]), wJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18853
18900
  t
18854
- ]), oJ = !aJ && !!(c && d), sJ = useJsonViewerStore((e2) => e2.keyRenderer), cJ = (0, import_react.useMemo)(() => ({
18901
+ ]), TJ = !wJ && !!(c && d), EJ = useJsonViewerStore((e2) => e2.keyRenderer), DJ = (0, import_react.useMemo)(() => ({
18855
18902
  path: i,
18856
18903
  inspect: K,
18857
18904
  setInspect: q,
@@ -18883,18 +18930,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18883
18930
  className: "data-key",
18884
18931
  sx: {
18885
18932
  lineHeight: 1.5,
18886
- color: Fq,
18933
+ color: eJ,
18887
18934
  letterSpacing: 0.5,
18888
18935
  opacity: 0.8
18889
18936
  },
18890
18937
  onClick: (0, import_react.useCallback)((e2) => {
18891
- e2.isDefaultPrevented() || aJ || q((e3) => !e3);
18938
+ e2.isDefaultPrevented() || wJ || q((e3) => !e3);
18892
18939
  }, [
18893
- aJ,
18940
+ wJ,
18894
18941
  q
18895
18942
  ]),
18896
18943
  children: [
18897
- oJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18944
+ TJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18898
18945
  className: "data-key-toggle-expanded",
18899
18946
  sx: {
18900
18947
  fontSize: ".8rem",
@@ -18912,27 +18959,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18912
18959
  }
18913
18960
  }) : null,
18914
18961
  (0, import_jsx_runtime.jsx)(Box_default, {
18915
- ref: eJ,
18962
+ ref: yJ,
18916
18963
  className: "data-key-key",
18917
18964
  component: "span",
18918
- children: Vq && O === 0 ? Bq === false ? null : zq ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18965
+ children: oJ && O === 0 ? aJ === false ? null : iJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18919
18966
  children: [
18920
18967
  '"',
18921
- Bq,
18968
+ aJ,
18922
18969
  '"'
18923
18970
  ]
18924
18971
  }) : (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, {
18972
+ children: aJ
18973
+ }) : EJ.when(DJ) ? (0, import_jsx_runtime.jsx)(EJ, {
18974
+ ...DJ
18975
+ }) : a === void 0 && (sJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18929
18976
  component: "span",
18930
18977
  style: {
18931
- color: Iq,
18932
- userSelect: Hq ? "none" : "auto"
18978
+ color: tJ,
18979
+ userSelect: sJ ? "none" : "auto"
18933
18980
  },
18934
18981
  children: A
18935
- }) : zq ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18982
+ }) : iJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18936
18983
  children: [
18937
18984
  '"',
18938
18985
  A,
@@ -18942,7 +18989,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18942
18989
  children: A
18943
18990
  }))
18944
18991
  }),
18945
- Vq ? Bq !== false && (0, import_jsx_runtime.jsx)(DataBox, {
18992
+ oJ ? aJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
18946
18993
  className: "data-key-colon",
18947
18994
  sx: {
18948
18995
  mr: 0.5
@@ -18955,38 +19002,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18955
19002
  ".data-key-key:empty + &": {
18956
19003
  display: "none"
18957
19004
  },
18958
- userSelect: Hq ? "none" : "auto"
19005
+ userSelect: sJ ? "none" : "auto"
18959
19006
  },
18960
19007
  children: ":"
18961
19008
  }),
18962
19009
  c && (0, import_jsx_runtime.jsx)(c, {
18963
- ...cJ
19010
+ ...DJ
18964
19011
  }),
18965
- I && oJ && K && iJ
19012
+ I && TJ && K && CJ
18966
19013
  ]
18967
19014
  }),
18968
19015
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
18969
19016
  path: i,
18970
19017
  value: w,
18971
19018
  setValue: E,
18972
- abortEditing: nJ,
18973
- commitEditing: rJ
19019
+ abortEditing: xJ,
19020
+ commitEditing: SJ
18974
19021
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
18975
- ...cJ
19022
+ ...DJ
18976
19023
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
18977
19024
  component: "span",
18978
19025
  className: "data-value-fallback",
18979
19026
  children: `fallback: ${t}`
18980
19027
  }),
18981
19028
  d && (0, import_jsx_runtime.jsx)(d, {
18982
- ...cJ
19029
+ ...DJ
18983
19030
  }),
18984
- !o && Rq && (0, import_jsx_runtime.jsx)(DataBox, {
19031
+ !o && rJ && (0, import_jsx_runtime.jsx)(DataBox, {
18985
19032
  children: ","
18986
19033
  }),
18987
- I && oJ && !K && iJ,
18988
- I && !oJ && iJ,
18989
- !I && J && iJ
19034
+ I && TJ && !K && CJ,
19035
+ I && !TJ && CJ,
19036
+ !I && J && CJ
18990
19037
  ]
18991
19038
  });
18992
19039
  }, query = "(prefers-color-scheme: dark)";
@@ -19115,9 +19162,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19115
19162
  })
19116
19163
  })
19117
19164
  });
19118
- }, import_compiler_runtime$64 = require_compiler_runtime();
19165
+ }, import_compiler_runtime$67 = require_compiler_runtime();
19119
19166
  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;
19167
+ 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
19168
  if (!n) return null;
19122
19169
  let d = !c, f;
19123
19170
  t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
@@ -19136,25 +19183,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19136
19183
  }), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
19137
19184
  });
19138
19185
  HtmlOutput.displayName = "HtmlOutput";
19139
- var import_compiler_runtime$63 = require_compiler_runtime();
19186
+ var import_compiler_runtime$66 = require_compiler_runtime();
19140
19187
  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;
19142
- 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
- let f;
19144
- t[3] !== c || t[4] !== n || t[5] !== d ? (f = (0, import_jsx_runtime.jsx)("img", {
19188
+ let t = (0, import_compiler_runtime$66.c)(12), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
19189
+ t[0] !== o || t[1] !== a ? (d = {}, typeof a == "string" && (d.width = a), typeof o == "string" && (d.height = o), t[0] = o, t[1] = a, t[2] = d) : d = t[2];
19190
+ let f = typeof a == "number" ? a : void 0, h = typeof o == "number" ? o : void 0, _;
19191
+ t[3] !== c || t[4] !== n || t[5] !== d || t[6] !== f || t[7] !== h ? (_ = (0, import_jsx_runtime.jsx)("img", {
19145
19192
  src: n,
19146
19193
  alt: c,
19194
+ width: f,
19195
+ height: h,
19147
19196
  style: d
19148
- }), t[3] = c, t[4] = n, t[5] = d, t[6] = f) : f = t[6];
19149
- let h;
19150
- return t[7] !== s || t[8] !== f ? (h = (0, import_jsx_runtime.jsx)("span", {
19197
+ }), t[3] = c, t[4] = n, t[5] = d, t[6] = f, t[7] = h, t[8] = _) : _ = t[8];
19198
+ let v;
19199
+ return t[9] !== s || t[10] !== _ ? (v = (0, import_jsx_runtime.jsx)("span", {
19151
19200
  className: s,
19152
- children: f
19153
- }), t[7] = s, t[8] = f, t[9] = h) : h = t[9], h;
19201
+ children: _
19202
+ }), t[9] = s, t[10] = _, t[11] = v) : v = t[11], v;
19154
19203
  };
19155
- var import_compiler_runtime$62 = require_compiler_runtime();
19204
+ var import_compiler_runtime$65 = require_compiler_runtime();
19156
19205
  Kbd = (e) => {
19157
- let t = (0, import_compiler_runtime$62.c)(5), n;
19206
+ let t = (0, import_compiler_runtime$65.c)(5), n;
19158
19207
  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
19208
  let i;
19160
19209
  return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
@@ -19162,9 +19211,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19162
19211
  children: e.children
19163
19212
  }), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
19164
19213
  };
19165
- var import_compiler_runtime$61 = require_compiler_runtime();
19214
+ var import_compiler_runtime$64 = require_compiler_runtime();
19166
19215
  const ExternalLink$1 = (e) => {
19167
- let t = (0, import_compiler_runtime$61.c)(3), { href: n, children: i } = e, a;
19216
+ let t = (0, import_compiler_runtime$64.c)(3), { href: n, children: i } = e, a;
19168
19217
  return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
19169
19218
  href: n,
19170
19219
  target: "_blank",
@@ -19198,7 +19247,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19198
19247
  e.openApplication("packages"), focusPackagesInput();
19199
19248
  };
19200
19249
  var KEY = "marimo:ai:chatState:v5";
19201
- const aiCompletionCellAtom = atom(null);
19250
+ const aiCompletionCellAtom = atom(null), pendingAiPromptAtom = atom(null);
19202
19251
  atomWithStorage("marimo:ai:includeOtherCells", true, jotaiJsonStorage);
19203
19252
  function removeEmptyChats(e) {
19204
19253
  let t = /* @__PURE__ */ new Map();
@@ -19312,7 +19361,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19312
19361
  fixType: "ai",
19313
19362
  onFix: async (t2) => {
19314
19363
  var _a3;
19315
- let n = getDatasourceContext(t2.cellId), i = `Fix the SQL statement: ${e.msg}.`;
19364
+ let n = getDatasourceContext(t2.cellId, store), i = `Fix the SQL statement: ${e.msg}.`;
19316
19365
  n && (i += `
19317
19366
  Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletionCell({
19318
19367
  cellId: t2.cellId,
@@ -19351,7 +19400,108 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19351
19400
  os: "os",
19352
19401
  re: "re",
19353
19402
  sys: "sys"
19354
- }, import_compiler_runtime$60 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
19403
+ };
19404
+ const agentSessionStateAtom = atomWithStorage("marimo:acp:sessions:v1", {
19405
+ sessions: [],
19406
+ activeTabId: null
19407
+ }, jotaiJsonStorage);
19408
+ atom((e) => {
19409
+ let t = e(agentSessionStateAtom);
19410
+ return t.activeTabId && t.sessions.find((e2) => e2.tabId === t.activeTabId) || null;
19411
+ }, (e, t, n) => {
19412
+ t(agentSessionStateAtom, (e2) => ({
19413
+ ...e2,
19414
+ activeTabId: n
19415
+ }));
19416
+ });
19417
+ var import_compiler_runtime$63 = require_compiler_runtime(), getModelKeyForRole = (e) => {
19418
+ switch (e) {
19419
+ case "chat":
19420
+ return "chat_model";
19421
+ case "autocomplete":
19422
+ return "autocomplete_model";
19423
+ case "edit":
19424
+ return "edit_model";
19425
+ }
19426
+ };
19427
+ const useModelChange = () => {
19428
+ let e = (0, import_compiler_runtime$63.c)(12), [t, n] = useAtom(userConfigAtom), { saveUserConfig: i } = useRequestClient(), a;
19429
+ e[0] !== i || e[1] !== n ? (a = async (e2) => {
19430
+ await i({
19431
+ config: e2
19432
+ }).then(() => {
19433
+ n((t2) => ({
19434
+ ...t2,
19435
+ ...e2
19436
+ }));
19437
+ });
19438
+ }, e[0] = i, e[1] = n, e[2] = a) : a = e[2];
19439
+ let o = a, s;
19440
+ e[3] !== o || e[4] !== t ? (s = async (e2, n2) => {
19441
+ var _a2, _b, _c, _d, _e2;
19442
+ let i2 = getModelKeyForRole(n2);
19443
+ i2 && await o({
19444
+ ai: {
19445
+ ...t.ai,
19446
+ models: {
19447
+ custom_models: ((_b = (_a2 = t.ai) == null ? void 0 : _a2.models) == null ? void 0 : _b.custom_models) ?? [],
19448
+ displayed_models: ((_d = (_c = t.ai) == null ? void 0 : _c.models) == null ? void 0 : _d.displayed_models) ?? [],
19449
+ ...(_e2 = t.ai) == null ? void 0 : _e2.models,
19450
+ [i2]: e2
19451
+ }
19452
+ }
19453
+ });
19454
+ }, e[3] = o, e[4] = t, e[5] = s) : s = e[5];
19455
+ let c = s, d;
19456
+ e[6] !== o || e[7] !== t ? (d = async (e2) => {
19457
+ await o({
19458
+ ai: {
19459
+ ...t.ai,
19460
+ mode: e2
19461
+ }
19462
+ });
19463
+ }, e[6] = o, e[7] = t, e[8] = d) : d = e[8];
19464
+ let f = d, h;
19465
+ return e[9] !== f || e[10] !== c ? (h = {
19466
+ saveModelChange: c,
19467
+ saveModeChange: f
19468
+ }, e[9] = f, e[10] = c, e[11] = h) : h = e[11], h;
19469
+ };
19470
+ var import_compiler_runtime$62 = require_compiler_runtime();
19471
+ const aiPanelTabAtom = atomWithStorage("marimo:chrome:ai-panel-tab", "chat", jotaiJsonStorage);
19472
+ function useAiPanelTab() {
19473
+ let e = (0, import_compiler_runtime$62.c)(3), [t, n] = useAtom(aiPanelTabAtom), i;
19474
+ return e[0] !== t || e[1] !== n ? (i = {
19475
+ aiPanelTab: t,
19476
+ setAiPanelTab: n
19477
+ }, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
19478
+ }
19479
+ var import_compiler_runtime$61 = require_compiler_runtime(), FIX_CHAT_MODE = "code_mode";
19480
+ function resolveAiPanelTab(e, t) {
19481
+ return e || (getFeatureFlag("external_agents") ? t : "chat");
19482
+ }
19483
+ function useOpenAiAssistant() {
19484
+ let e = (0, import_compiler_runtime$61.c)(6), { openApplication: t } = useChromeActions(), { setAiPanelTab: n } = useAiPanelTab(), { saveModeChange: i } = useModelChange(), a = useSetAtom(pendingAiPromptAtom), o = useStore(), s;
19485
+ return e[0] !== t || e[1] !== i || e[2] !== n || e[3] !== a || e[4] !== o ? (s = async (e2) => {
19486
+ let s2 = resolveAiPanelTab(e2.panel, o.get(aiPanelTabAtom)), c = o.get(aiModelConfiguredAtom), d = getFeatureFlag("external_agents") && o.get(agentSessionStateAtom).sessions.length > 0;
19487
+ if (!(s2 === "agents" ? d : c)) {
19488
+ toast({
19489
+ title: s2 === "agents" ? "No agent session" : "AI not configured",
19490
+ description: s2 === "agents" ? "Start an agent session or switch to the chat panel." : "Configure an AI provider and chat model to fix with AI.",
19491
+ variant: "danger"
19492
+ });
19493
+ return;
19494
+ }
19495
+ e2.panel && n(e2.panel), s2 === "chat" && await i(FIX_CHAT_MODE).catch(_temp$13), a({
19496
+ prompt: e2.prompt,
19497
+ submit: e2.submit ?? false
19498
+ }), t("ai");
19499
+ }, e[0] = t, e[1] = i, e[2] = n, e[3] = a, e[4] = o, e[5] = s) : s = e[5], useEvent_default(s);
19500
+ }
19501
+ function _temp$13() {
19502
+ return Logger.error("Failed to save mode change");
19503
+ }
19504
+ var import_compiler_runtime$60 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
19355
19505
  function useFixMode() {
19356
19506
  let e = (0, import_compiler_runtime$60.c)(3), [t, n] = useAtom(fixModeAtom), i;
19357
19507
  return e[0] !== t || e[1] !== n ? (i = {
@@ -19360,21 +19510,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19360
19510
  }, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
19361
19511
  }
19362
19512
  var import_compiler_runtime$59 = require_compiler_runtime();
19513
+ function buildFixInChatPrompt(e, t) {
19514
+ if (e != null) return `@error://${e}
19515
+
19516
+ Please fix this error.`;
19517
+ let n = t == null ? void 0 : t.trim();
19518
+ return n ? `My code gives the following error. Please fix it:
19519
+
19520
+ ${n}` : "Please fix this error.";
19521
+ }
19363
19522
  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;
19523
+ 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
19524
  if (t[0] !== d || t[1] !== n) {
19366
19525
  let e2;
19367
19526
  t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
19368
19527
  aiEnabled: d
19369
19528
  }), t[3] = d, t[4] = e2), f = n.flatMap(e2), t[0] = d, t[1] = n, t[2] = f;
19370
19529
  } else f = t[2];
19371
- let _ = f, v = useSetAtom(aiCompletionCellAtom);
19530
+ let _ = f, v = useSetAtom(aiCompletionCellAtom), y = useOpenAiAssistant();
19372
19531
  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) => {
19532
+ let S = _[0], w;
19533
+ t[5] !== i || t[6] !== c || t[7] !== S || t[8] !== v || t[9] !== s ? (w = (e2) => {
19375
19534
  var _a2;
19376
19535
  let t2 = (_a2 = s.get(notebookAtom).cellHandles[i].current) == null ? void 0 : _a2.editorView;
19377
- y.onFix({
19536
+ S.onFix({
19378
19537
  addCodeBelow: (e3) => {
19379
19538
  c({
19380
19539
  cellId: i,
@@ -19390,63 +19549,90 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19390
19549
  triggerFix: e2
19391
19550
  }
19392
19551
  }), 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)
19552
+ }, t[5] = i, t[6] = c, t[7] = S, t[8] = v, t[9] = s, t[10] = w) : w = t[10];
19553
+ let E = w, O;
19554
+ t[11] !== i || t[12] !== y ? (O = () => {
19555
+ y({
19556
+ prompt: buildFixInChatPrompt(i)
19557
+ });
19558
+ }, t[11] = i, t[12] = y, t[13] = O) : O = t[13];
19559
+ let A = O, M;
19560
+ t[14] === o ? M = t[15] : (M = cn("my-2", o), t[14] = o, t[15] = M);
19561
+ let I;
19562
+ 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, {
19563
+ tooltip: S.description,
19564
+ openPrompt: () => E(false),
19565
+ applyAutofix: () => E(true),
19566
+ openChat: A
19401
19567
  }) : (0, import_jsx_runtime.jsx)(Tooltip, {
19402
- content: y.description,
19568
+ content: S.description,
19403
19569
  align: "start",
19404
19570
  children: (0, import_jsx_runtime.jsxs)(Button, {
19405
19571
  size: "xs",
19406
19572
  variant: "outline",
19407
19573
  className: "font-normal",
19408
- onClick: () => w(false),
19574
+ onClick: () => E(false),
19409
19575
  children: [
19410
19576
  (0, import_jsx_runtime.jsx)(Wrench, {
19411
19577
  className: "h-3 w-3 mr-2"
19412
19578
  }),
19413
- y.title
19579
+ S.title
19414
19580
  ]
19415
19581
  })
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";
19582
+ }), t[16] = S.description, t[17] = S.fixType, t[18] = S.title, t[19] = E, t[20] = A, t[21] = I) : I = t[21];
19583
+ let z;
19584
+ return t[22] !== M || t[23] !== I ? (z = (0, import_jsx_runtime.jsx)("div", {
19585
+ className: M,
19586
+ children: I
19587
+ }), t[22] = M, t[23] = I, t[24] = z) : z = t[24], z;
19588
+ };
19589
+ var MODE_CONFIG = {
19590
+ autofix: {
19591
+ Icon: Wrench,
19592
+ title: "Inline AI Fix",
19593
+ description: "Apply AI fixes inline in the cell"
19594
+ },
19595
+ chat: {
19596
+ Icon: HatGlasses,
19597
+ title: "Fix with AI assistant",
19598
+ description: "Open the AI sidebar to fix"
19599
+ },
19600
+ prompt: {
19601
+ Icon: Sparkles,
19602
+ title: "Suggest a prompt",
19603
+ description: "Edit the prompt before applying"
19604
+ }
19605
+ }, FIX_MODES = [
19606
+ "autofix",
19607
+ "prompt",
19608
+ "chat"
19609
+ ];
19424
19610
  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, {
19611
+ 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;
19612
+ s === "chat" ? d = o : s === "autofix" && (d = a);
19613
+ let { Icon: f, title: _ } = MODE_CONFIG[s], v;
19614
+ t[0] === f ? v = t[1] : (v = (0, import_jsx_runtime.jsx)(f, {
19427
19615
  className: "h-3 w-3 mr-2 mb-0.5"
19428
- }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
19429
- 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, {
19616
+ }), t[0] = f, t[1] = v);
19617
+ let y;
19618
+ t[2] !== d || t[3] !== v || t[4] !== _ ? (y = (0, import_jsx_runtime.jsxs)(Button, {
19433
19619
  size: "xs",
19434
19620
  variant: "outline",
19435
19621
  className: "font-normal rounded-r-none border-r-0",
19436
- onClick: c,
19622
+ onClick: d,
19437
19623
  children: [
19438
- d,
19439
- f
19624
+ v,
19625
+ _
19440
19626
  ]
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, {
19627
+ }), t[2] = d, t[3] = v, t[4] = _, t[5] = y) : y = t[5];
19628
+ let S;
19629
+ t[6] !== y || t[7] !== n ? (S = (0, import_jsx_runtime.jsx)(Tooltip, {
19444
19630
  content: n,
19445
19631
  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, {
19632
+ children: y
19633
+ }), t[6] = y, t[7] = n, t[8] = S) : S = t[8];
19634
+ let w;
19635
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
19450
19636
  asChild: true,
19451
19637
  children: (0, import_jsx_runtime.jsx)(Button, {
19452
19638
  size: "xs",
@@ -19457,72 +19643,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19457
19643
  className: "h-3 w-3"
19458
19644
  })
19459
19645
  })
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);
19646
+ }), t[9] = w) : w = t[9];
19647
+ let E;
19648
+ t[10] !== s || t[11] !== c ? (E = FIX_MODES.map((e2) => (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
19649
+ className: "flex items-center gap-2",
19650
+ onClick: () => c(e2),
19651
+ children: (0, import_jsx_runtime.jsx)(AiModeItem, {
19652
+ mode: e2,
19653
+ selected: e2 === s
19654
+ })
19655
+ }, e2)), t[10] = s, t[11] = c, t[12] = E) : E = t[12];
19469
19656
  let O;
19470
- t[15] !== S || t[16] !== E ? (O = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
19657
+ t[13] === E ? O = t[14] : (O = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
19471
19658
  children: [
19472
- y,
19659
+ w,
19473
19660
  (0, import_jsx_runtime.jsx)(DropdownMenuContent, {
19474
19661
  align: "end",
19475
19662
  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
- })
19663
+ children: E
19481
19664
  })
19482
19665
  ]
19483
- }), t[15] = S, t[16] = E, t[17] = O) : O = t[17];
19666
+ }), t[13] = E, t[14] = O);
19484
19667
  let A;
19485
- return t[18] !== O || t[19] !== v ? (A = (0, import_jsx_runtime.jsxs)("div", {
19668
+ return t[15] !== S || t[16] !== O ? (A = (0, import_jsx_runtime.jsxs)("div", {
19486
19669
  className: "flex",
19487
19670
  children: [
19488
- v,
19671
+ S,
19489
19672
  O
19490
19673
  ]
19491
- }), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
19674
+ }), t[15] = S, t[16] = O, t[17] = A) : A = t[17], A;
19492
19675
  };
19493
19676
  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", {
19677
+ let t = (0, import_compiler_runtime$59.c)(15), { mode: n, selected: i } = e, { Icon: a, title: o, description: s } = MODE_CONFIG[n], c;
19678
+ t[0] === a ? c = t[1] : (c = (0, import_jsx_runtime.jsx)(a, {
19679
+ className: "h-4 w-4 shrink-0"
19680
+ }), t[0] = a, t[1] = c);
19681
+ let d;
19682
+ t[2] === o ? d = t[3] : (d = (0, import_jsx_runtime.jsx)("span", {
19502
19683
  className: "font-medium",
19503
19684
  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", {
19685
+ }), t[2] = o, t[3] = d);
19686
+ let f;
19687
+ t[4] === s ? f = t[5] : (f = (0, import_jsx_runtime.jsx)("span", {
19507
19688
  className: "text-xs text-muted-foreground",
19508
19689
  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", {
19690
+ }), t[4] = s, t[5] = f);
19691
+ let h;
19692
+ t[6] !== d || t[7] !== f ? (h = (0, import_jsx_runtime.jsxs)("div", {
19512
19693
  className: "flex flex-col",
19513
19694
  children: [
19514
- c,
19515
- d
19695
+ d,
19696
+ f
19516
19697
  ]
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",
19698
+ }), t[6] = d, t[7] = f, t[8] = h) : h = t[8];
19699
+ let _;
19700
+ t[9] === i ? _ = t[10] : (_ = i && (0, import_jsx_runtime.jsx)(Check, {
19701
+ className: "h-4 w-4 ml-auto shrink-0"
19702
+ }), t[9] = i, t[10] = _);
19703
+ let v;
19704
+ return t[11] !== c || t[12] !== h || t[13] !== _ ? (v = (0, import_jsx_runtime.jsxs)("div", {
19705
+ className: "flex items-center gap-2 w-full",
19521
19706
  children: [
19522
- a,
19523
- f
19707
+ c,
19708
+ h,
19709
+ _
19524
19710
  ]
19525
- }), t[9] = a, t[10] = f, t[11] = h) : h = t[11], h;
19711
+ }), t[11] = c, t[12] = h, t[13] = _, t[14] = v) : v = t[14], v;
19526
19712
  };
19527
19713
  require_compiler_runtime();
19528
19714
  function useFilename() {
@@ -19935,18 +20121,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19935
20121
  }
19936
20122
  let y, S, w, E, O, A;
19937
20123
  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 = () => {
20124
+ 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;
20125
+ t[17] === s ? iJ = t[18] : (iJ = () => {
19940
20126
  s.openApplication("scratchpad");
19941
- }, t[17] = s, t[18] = Rq);
19942
- let zq = Rq, Vq = () => {
20127
+ }, t[17] = s, t[18] = iJ);
20128
+ let aJ = iJ, oJ = () => {
19943
20129
  let t2 = [];
19944
- if (Fq.length > 0 || Iq.length > 0) {
19945
- let e3 = Fq.some(_temp19), n2 = !e3 && Fq.some(_temp20);
20130
+ if (tJ.length > 0 || nJ.length > 0) {
20131
+ let e3 = tJ.some(_temp19), n2 = !e3 && tJ.some(_temp20);
19946
20132
  t2.push((0, import_jsx_runtime.jsxs)("div", {
19947
20133
  children: [
19948
- Fq.map(_temp21),
19949
- Iq.map(_temp22),
20134
+ tJ.map(_temp21),
20135
+ nJ.map(_temp22),
19950
20136
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
19951
20137
  size: "xs",
19952
20138
  variant: "outline",
@@ -19977,8 +20163,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19977
20163
  }),
19978
20164
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
19979
20165
  errors: [
19980
- ...Fq,
19981
- ...Iq
20166
+ ...tJ,
20167
+ ...nJ
19982
20168
  ],
19983
20169
  cellId: i
19984
20170
  })
@@ -20139,7 +20325,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20139
20325
  size: "xs",
20140
20326
  variant: "link",
20141
20327
  className: "my-2 font-normal mx-0 px-0",
20142
- onClick: zq,
20328
+ onClick: aJ,
20143
20329
  children: [
20144
20330
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20145
20331
  className: "h-3"
@@ -20314,42 +20500,42 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20314
20500
  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
20501
  })
20316
20502
  ]
20317
- }, "strict-exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20503
+ }, "strict-exception")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20318
20504
  children: [
20319
- J.map(_temp32),
20505
+ Q.map(_temp32),
20320
20506
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20321
- errors: J,
20507
+ errors: Q,
20322
20508
  cellId: i
20323
20509
  })
20324
20510
  ]
20325
- }, "internal")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20511
+ }, "internal")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20326
20512
  children: [
20327
- Q.map(_temp33),
20513
+ $.map(_temp33),
20328
20514
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20329
- errors: Q,
20515
+ errors: $,
20330
20516
  cellId: i
20331
20517
  })
20332
20518
  ]
20333
- }, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20519
+ }, "ancestor-prevented")), eJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20334
20520
  children: [
20335
- $.map(_temp34),
20521
+ eJ.map(_temp34),
20336
20522
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20337
- errors: $,
20523
+ errors: eJ,
20338
20524
  cellId: i
20339
20525
  })
20340
20526
  ]
20341
- }, "ancestor-stopped")), Lq.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20527
+ }, "ancestor-stopped")), rJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20342
20528
  children: [
20343
- Lq.map(_temp35),
20529
+ rJ.map(_temp35),
20344
20530
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20345
- errors: Lq,
20531
+ errors: rJ,
20346
20532
  cellId: i,
20347
20533
  className: "mt-2.5"
20348
20534
  })
20349
20535
  ]
20350
20536
  }, "sql-errors")), t2;
20351
- }, Hq;
20352
- t[19] === v ? Hq = t[20] : (Hq = v && (0, import_jsx_runtime.jsxs)("div", {
20537
+ }, sJ;
20538
+ t[19] === v ? sJ = t[20] : (sJ = v && (0, import_jsx_runtime.jsxs)("div", {
20353
20539
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20354
20540
  children: [
20355
20541
  v,
@@ -20361,22 +20547,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20361
20547
  })
20362
20548
  })
20363
20549
  ]
20364
- }), t[19] = v, t[20] = Hq);
20365
- let Uq;
20366
- t[21] !== _ || t[22] !== d ? (Uq = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20550
+ }), t[19] = v, t[20] = sJ);
20551
+ let cJ;
20552
+ t[21] !== _ || t[22] !== d ? (cJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20367
20553
  className: `font-code font-medium ${_}`,
20368
20554
  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", {
20555
+ }), t[21] = _, t[22] = d, t[23] = cJ) : cJ = t[23];
20556
+ let lJ;
20557
+ t[24] !== sJ || t[25] !== cJ ? (lJ = (0, import_jsx_runtime.jsxs)("div", {
20372
20558
  className: "space-y-0.5",
20373
20559
  children: [
20374
- Hq,
20375
- Uq
20560
+ sJ,
20561
+ cJ
20376
20562
  ]
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;
20563
+ }), t[24] = sJ, t[25] = cJ, t[26] = lJ) : lJ = t[26];
20564
+ let uJ = lJ;
20565
+ 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
20566
  } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20381
20567
  let M;
20382
20568
  t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
@@ -21226,12 +21412,6 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21226
21412
  is_null: "Is null",
21227
21413
  is_not_null: "Is not null"
21228
21414
  };
21229
- isRecord = function(e) {
21230
- return typeof e == "object" && !!e && !Array.isArray(e);
21231
- };
21232
- hasFunctionProperty = function(e, t) {
21233
- return typeof e[t] == "function";
21234
- };
21235
21415
  var import_compiler_runtime$47 = require_compiler_runtime();
21236
21416
  const MimeCell = (e) => {
21237
21417
  let t = (0, import_compiler_runtime$47.c)(6), { value: n } = e, i;
@@ -26434,7 +26614,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26434
26614
  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
26615
  let E = (0, import_react.useContext)(PanelGroupContext);
26436
26616
  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)({
26617
+ 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
26618
  callbacks: {
26439
26619
  onCollapse: f,
26440
26620
  onExpand: h,
@@ -26454,12 +26634,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26454
26634
  (0, import_react.useRef)({
26455
26635
  didLogMissingDefaultSizeWarning: false
26456
26636
  }), useIsomorphicLayoutEffect$1(() => {
26457
- let { callbacks: e2, constraints: t2 } = Fq.current, o2 = {
26637
+ let { callbacks: e2, constraints: t2 } = eJ.current, o2 = {
26458
26638
  ...t2
26459
26639
  };
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);
26640
+ 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
26641
  }), useIsomorphicLayoutEffect$1(() => {
26462
- let e2 = Fq.current;
26642
+ let e2 = eJ.current;
26463
26643
  return q(e2), () => {
26464
26644
  Q(e2);
26465
26645
  };
@@ -26470,25 +26650,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26470
26650
  Q
26471
26651
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26472
26652
  collapse: () => {
26473
- O(Fq.current);
26653
+ O(eJ.current);
26474
26654
  },
26475
26655
  expand: (e2) => {
26476
- A(Fq.current, e2);
26656
+ A(eJ.current, e2);
26477
26657
  },
26478
26658
  getId() {
26479
26659
  return $;
26480
26660
  },
26481
26661
  getSize() {
26482
- return M(Fq.current);
26662
+ return M(eJ.current);
26483
26663
  },
26484
26664
  isCollapsed() {
26485
- return U(Fq.current);
26665
+ return U(eJ.current);
26486
26666
  },
26487
26667
  isExpanded() {
26488
- return !U(Fq.current);
26668
+ return !U(eJ.current);
26489
26669
  },
26490
26670
  resize: (e2) => {
26491
- J(Fq.current, e2);
26671
+ J(eJ.current, e2);
26492
26672
  }
26493
26673
  }), [
26494
26674
  O,
@@ -26498,21 +26678,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26498
26678
  $,
26499
26679
  J
26500
26680
  ]);
26501
- let Iq = I(Fq.current, a);
26681
+ let tJ = I(eJ.current, a);
26502
26682
  return (0, import_react.createElement)(S, {
26503
26683
  ...w,
26504
26684
  children: e,
26505
26685
  className: t,
26506
26686
  id: $,
26507
26687
  style: {
26508
- ...Iq,
26688
+ ...tJ,
26509
26689
  ...y
26510
26690
  },
26511
26691
  [DATA_ATTRIBUTES.groupId]: z,
26512
26692
  [DATA_ATTRIBUTES.panel]: "",
26513
26693
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26514
26694
  [DATA_ATTRIBUTES.panelId]: $,
26515
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + Iq.flexGrow).toFixed(1)
26695
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + tJ.flexGrow).toFixed(1)
26516
26696
  });
26517
26697
  }
26518
26698
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -27297,13 +27477,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27297
27477
  }, [
27298
27478
  S,
27299
27479
  E
27300
- ]), Fq = (0, import_react.useCallback)((e2) => {
27480
+ ]), eJ = (0, import_react.useCallback)((e2) => {
27301
27481
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27302
27482
  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) => {
27483
+ }, []), tJ = (0, import_react.useCallback)((e2) => {
27304
27484
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27305
27485
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27306
- }, []), Lq = (0, import_react.useCallback)((e2) => {
27486
+ }, []), nJ = (0, import_react.useCallback)((e2) => {
27307
27487
  let { panelDataArray: t2 } = K.current;
27308
27488
  t2.push(e2), t2.sort((e3, t3) => {
27309
27489
  let n2 = e3.order, i2 = t3.order;
@@ -27335,7 +27515,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27335
27515
  e2.layout = [];
27336
27516
  };
27337
27517
  }, []);
27338
- let Rq = (0, import_react.useCallback)((e2) => {
27518
+ let rJ = (0, import_react.useCallback)((e2) => {
27339
27519
  let t2 = false, n2 = y.current;
27340
27520
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27341
27521
  n3.preventDefault();
@@ -27353,7 +27533,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27353
27533
  }), I2 = !compareLayouts(f2, A2);
27354
27534
  (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
27535
  };
27356
- }, []), zq = (0, import_react.useCallback)((e2, t2) => {
27536
+ }, []), iJ = (0, import_react.useCallback)((e2, t2) => {
27357
27537
  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
27538
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27359
27539
  let d2 = adjustLayoutByDelta({
@@ -27365,12 +27545,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27365
27545
  trigger: "imperative-api"
27366
27546
  });
27367
27547
  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) => {
27548
+ }, []), aJ = (0, import_react.useCallback)((e2, t2) => {
27369
27549
  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));
27550
+ 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
27551
  }, [
27372
- zq
27373
- ]), Vq = (0, import_react.useCallback)((e2, t2) => {
27552
+ iJ
27553
+ ]), oJ = (0, import_react.useCallback)((e2, t2) => {
27374
27554
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27375
27555
  if (!y.current) return;
27376
27556
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27382,14 +27562,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27382
27562
  initialCursorPosition: o2,
27383
27563
  initialLayout: i2
27384
27564
  });
27385
- }, []), Hq = (0, import_react.useCallback)(() => {
27565
+ }, []), sJ = (0, import_react.useCallback)(() => {
27386
27566
  w(null);
27387
- }, []), Uq = (0, import_react.useCallback)((e2) => {
27567
+ }, []), cJ = (0, import_react.useCallback)((e2) => {
27388
27568
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27389
27569
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27390
27570
  }, [
27391
27571
  A
27392
- ]), Wq = (0, import_react.useMemo)(() => ({
27572
+ ]), lJ = (0, import_react.useMemo)(() => ({
27393
27573
  collapsePanel: q,
27394
27574
  direction: i,
27395
27575
  dragState: S,
@@ -27397,15 +27577,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27397
27577
  getPanelSize: Q,
27398
27578
  getPanelStyle: $,
27399
27579
  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,
27580
+ isPanelCollapsed: eJ,
27581
+ isPanelExpanded: tJ,
27582
+ reevaluatePanelConstraints: aJ,
27583
+ registerPanel: nJ,
27584
+ registerResizeHandle: rJ,
27585
+ resizePanel: iJ,
27586
+ startDragging: oJ,
27587
+ stopDragging: sJ,
27588
+ unregisterPanel: cJ,
27409
27589
  panelGroupElement: y.current
27410
27590
  }), [
27411
27591
  q,
@@ -27415,16 +27595,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27415
27595
  Q,
27416
27596
  $,
27417
27597
  v,
27418
- Fq,
27419
- Iq,
27420
- Bq,
27421
- Lq,
27422
- Rq,
27423
- zq,
27424
- Vq,
27425
- Hq,
27426
- Uq
27427
- ]), Gq = {
27598
+ eJ,
27599
+ tJ,
27600
+ aJ,
27601
+ nJ,
27602
+ rJ,
27603
+ iJ,
27604
+ oJ,
27605
+ sJ,
27606
+ cJ
27607
+ ]), uJ = {
27428
27608
  display: "flex",
27429
27609
  flexDirection: i === "horizontal" ? "row" : "column",
27430
27610
  height: "100%",
@@ -27432,7 +27612,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27432
27612
  width: "100%"
27433
27613
  };
27434
27614
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27435
- value: Wq
27615
+ value: lJ
27436
27616
  }, (0, import_react.createElement)(h, {
27437
27617
  ..._,
27438
27618
  children: t,
@@ -27440,7 +27620,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27440
27620
  id: o,
27441
27621
  ref: y,
27442
27622
  style: {
27443
- ...Gq,
27623
+ ...uJ,
27444
27624
  ...f
27445
27625
  },
27446
27626
  [DATA_ATTRIBUTES.group]: "",
@@ -27517,31 +27697,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27517
27697
  });
27518
27698
  let O = (0, import_react.useContext)(PanelGroupContext);
27519
27699
  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)({
27700
+ 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
27701
  state: J
27522
27702
  });
27523
27703
  useIsomorphicLayoutEffect$1(() => {
27524
- Rq.current.state = J;
27704
+ rJ.current.state = J;
27525
27705
  }), (0, import_react.useEffect)(() => {
27526
- if (n) Lq(null);
27706
+ if (n) nJ(null);
27527
27707
  else {
27528
27708
  let e2 = I(q);
27529
- Lq(() => e2);
27709
+ nJ(() => e2);
27530
27710
  }
27531
27711
  }, [
27532
27712
  n,
27533
27713
  q,
27534
27714
  I
27535
27715
  ]);
27536
- let zq = (i == null ? void 0 : i.coarse) ?? 15, Bq = (i == null ? void 0 : i.fine) ?? 5;
27716
+ let iJ = (i == null ? void 0 : i.coarse) ?? 15, aJ = (i == null ? void 0 : i.fine) ?? 5;
27537
27717
  (0, import_react.useEffect)(() => {
27538
- if (n || Iq == null) return;
27718
+ if (n || tJ == null) return;
27539
27719
  let e2 = w.current;
27540
27720
  assert(e2, "Element ref not attached");
27541
27721
  let t2 = false;
27542
27722
  return registerResizeHandle(q, e2, A, {
27543
- coarse: zq,
27544
- fine: Bq
27723
+ coarse: iJ,
27724
+ fine: aJ
27545
27725
  }, (e3, n2, i2) => {
27546
27726
  if (!n2) {
27547
27727
  Q("inactive");
@@ -27555,8 +27735,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27555
27735
  break;
27556
27736
  }
27557
27737
  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);
27738
+ let { state: e4 } = rJ.current;
27739
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), tJ(i2);
27560
27740
  break;
27561
27741
  }
27562
27742
  case "up": {
@@ -27568,22 +27748,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27568
27748
  }
27569
27749
  });
27570
27750
  }, [
27571
- zq,
27751
+ iJ,
27572
27752
  A,
27573
27753
  n,
27574
- Bq,
27754
+ aJ,
27575
27755
  I,
27576
27756
  q,
27577
- Iq,
27757
+ tJ,
27578
27758
  z,
27579
27759
  U
27580
27760
  ]), useWindowSplitterResizeHandlerBehavior({
27581
27761
  disabled: n,
27582
27762
  handleId: q,
27583
- resizeHandler: Iq,
27763
+ resizeHandler: tJ,
27584
27764
  panelGroupElement: K
27585
27765
  });
27586
- let Vq = {
27766
+ let oJ = {
27587
27767
  touchAction: "none",
27588
27768
  userSelect: "none"
27589
27769
  };
@@ -27593,15 +27773,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27593
27773
  className: t,
27594
27774
  id: a,
27595
27775
  onBlur: () => {
27596
- Fq(false), o == null ? void 0 : o();
27776
+ eJ(false), o == null ? void 0 : o();
27597
27777
  },
27598
27778
  onFocus: () => {
27599
- Fq(true), d == null ? void 0 : d();
27779
+ eJ(true), d == null ? void 0 : d();
27600
27780
  },
27601
27781
  ref: w,
27602
27782
  role: "separator",
27603
27783
  style: {
27604
- ...Vq,
27784
+ ...oJ,
27605
27785
  ..._
27606
27786
  },
27607
27787
  tabIndex: v,
@@ -27900,7 +28080,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27900
28080
  }, [
27901
28081
  h
27902
28082
  ]), k(() => {
27903
- U(6, Iq);
28083
+ U(6, tJ);
27904
28084
  }, []);
27905
28085
  let K = import_react.useMemo(() => ({
27906
28086
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -27909,7 +28089,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27909
28089
  var _a2;
27910
28090
  var a2, o2, s2;
27911
28091
  if (!Object.is(n.current[e2], t2)) {
27912
- if (n.current[e2] = t2, e2 === "search") Fq(), Q(), U(1, $);
28092
+ if (n.current[e2] = t2, e2 === "search") eJ(), Q(), U(1, $);
27913
28093
  else if (e2 === "value") {
27914
28094
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
27915
28095
  let e3 = document.getElementById(I);
@@ -27917,8 +28097,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27917
28097
  }
27918
28098
  if (U(7, () => {
27919
28099
  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) {
28100
+ n.current.selectedItemId = (_a3 = nJ()) == null ? void 0 : _a3.id, K.emit();
28101
+ }), i2 || U(5, tJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
27922
28102
  let e3 = t2 ?? "";
27923
28103
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
27924
28104
  return;
@@ -27943,12 +28123,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27943
28123
  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
28124
  e2
27945
28125
  ]))), U(3, () => {
27946
- Fq(), Q(), n.current.value || $(), K.emit();
28126
+ eJ(), Q(), n.current.value || $(), K.emit();
27947
28127
  }), () => {
27948
28128
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
27949
- let t3 = Lq();
28129
+ let t3 = nJ();
27950
28130
  U(4, () => {
27951
- Fq(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28131
+ eJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
27952
28132
  });
27953
28133
  }),
27954
28134
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -27981,7 +28161,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27981
28161
  ]);
27982
28162
  });
27983
28163
  let i2 = z.current;
27984
- Rq().sort((t3, n2) => {
28164
+ rJ().sort((t3, n2) => {
27985
28165
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
27986
28166
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
27987
28167
  }).forEach((e3) => {
@@ -27995,10 +28175,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27995
28175
  }
27996
28176
  function $() {
27997
28177
  var _a2;
27998
- let e2 = (_a2 = Rq().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28178
+ let e2 = (_a2 = rJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
27999
28179
  K.setState("value", e2 || void 0);
28000
28180
  }
28001
- function Fq() {
28181
+ function eJ() {
28002
28182
  var _a2, _b;
28003
28183
  if (!n.current.search || c.current.shouldFilter === false) {
28004
28184
  n.current.filtered.count = i.current.size;
@@ -28016,43 +28196,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28016
28196
  }
28017
28197
  n.current.filtered.count = e2;
28018
28198
  }
28019
- function Iq() {
28199
+ function tJ() {
28020
28200
  var _a2, _b;
28021
28201
  var e2;
28022
- let t2 = Lq();
28202
+ let t2 = nJ();
28023
28203
  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
28204
  block: "nearest"
28025
28205
  })), t2.scrollIntoView({
28026
28206
  block: "nearest"
28027
28207
  }));
28028
28208
  }
28029
- function Lq() {
28209
+ function nJ() {
28030
28210
  var _a2;
28031
28211
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
28032
28212
  }
28033
- function Rq() {
28213
+ function rJ() {
28034
28214
  var _a2;
28035
28215
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
28036
28216
  }
28037
- function zq(e2) {
28038
- let t2 = Rq()[e2];
28217
+ function iJ(e2) {
28218
+ let t2 = rJ()[e2];
28039
28219
  t2 && K.setState("value", t2.getAttribute(T));
28040
28220
  }
28041
- function Bq(e2) {
28221
+ function aJ(e2) {
28042
28222
  var t2;
28043
- let n2 = Lq(), i2 = Rq(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28223
+ let n2 = nJ(), i2 = rJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28044
28224
  (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
28225
  }
28046
- function Vq(e2) {
28226
+ function oJ(e2) {
28047
28227
  var _a2;
28048
- let t2 = (_a2 = Lq()) == null ? void 0 : _a2.closest(N$1), n2;
28228
+ let t2 = (_a2 = nJ()) == null ? void 0 : _a2.closest(N$1), n2;
28049
28229
  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);
28230
+ n2 ? K.setState("value", n2.getAttribute(T)) : aJ(e2);
28051
28231
  }
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);
28232
+ let sJ = () => iJ(rJ().length - 1), cJ = (e2) => {
28233
+ e2.preventDefault(), e2.metaKey ? sJ() : e2.altKey ? oJ(1) : aJ(1);
28234
+ }, lJ = (e2) => {
28235
+ e2.preventDefault(), e2.metaKey ? iJ(0) : e2.altKey ? oJ(-1) : aJ(-1);
28056
28236
  };
28057
28237
  return import_react.createElement(Primitive.div, {
28058
28238
  ref: t,
@@ -28066,27 +28246,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28066
28246
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
28067
28247
  case "n":
28068
28248
  case "j":
28069
- E && e2.ctrlKey && Uq(e2);
28249
+ E && e2.ctrlKey && cJ(e2);
28070
28250
  break;
28071
28251
  case "ArrowDown":
28072
- Uq(e2);
28252
+ cJ(e2);
28073
28253
  break;
28074
28254
  case "p":
28075
28255
  case "k":
28076
- E && e2.ctrlKey && Wq(e2);
28256
+ E && e2.ctrlKey && lJ(e2);
28077
28257
  break;
28078
28258
  case "ArrowUp":
28079
- Wq(e2);
28259
+ lJ(e2);
28080
28260
  break;
28081
28261
  case "Home":
28082
- e2.preventDefault(), zq(0);
28262
+ e2.preventDefault(), iJ(0);
28083
28263
  break;
28084
28264
  case "End":
28085
- e2.preventDefault(), Hq();
28265
+ e2.preventDefault(), sJ();
28086
28266
  break;
28087
28267
  case "Enter": {
28088
28268
  e2.preventDefault();
28089
- let t3 = Lq();
28269
+ let t3 = nJ();
28090
28270
  if (t3) {
28091
28271
  let e3 = new Event(Z);
28092
28272
  t3.dispatchEvent(e3);
@@ -28493,155 +28673,155 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28493
28673
  onSelect: Functions.NOOP
28494
28674
  });
28495
28675
  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 = {
28676
+ 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, $;
28677
+ 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] = $);
28678
+ 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;
28679
+ t[25] !== v || t[26] !== w || t[27] !== oJ ? (sJ = {
28500
28680
  prop: w,
28501
- defaultProp: Bq,
28681
+ defaultProp: oJ,
28502
28682
  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) => {
28683
+ }, t[25] = v, t[26] = w, t[27] = oJ, t[28] = sJ) : sJ = t[28];
28684
+ let [cJ, lJ] = useControllableState(sJ), uJ = cJ === void 0 ? false : cJ, dJ;
28685
+ t[29] === S ? dJ = t[30] : (dJ = (e2) => {
28506
28686
  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,
28687
+ }, t[29] = S, t[30] = dJ);
28688
+ let fJ;
28689
+ t[31] !== c || t[32] !== dJ || t[33] !== $ ? (fJ = {
28690
+ prop: $,
28511
28691
  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) => {
28692
+ onChange: dJ
28693
+ }, t[31] = c, t[32] = dJ, t[33] = $, t[34] = fJ) : fJ = t[34];
28694
+ let [pJ, mJ] = useControllableState(fJ), hJ;
28695
+ t[35] === pJ ? hJ = t[36] : (hJ = (e2) => Array.isArray(pJ) ? pJ.includes(e2) : pJ === e2, t[35] = pJ, t[36] = hJ);
28696
+ let gJ = hJ, _J;
28697
+ t[37] !== _ || t[38] !== eJ || t[39] !== lJ || t[40] !== mJ || t[41] !== pJ ? (_J = (e2) => {
28518
28698
  let t2 = e2;
28519
- if ($) if (Array.isArray(qq)) if (qq.includes(t2)) {
28520
- let n2 = qq.filter((t3) => t3 !== e2);
28699
+ if (eJ) if (Array.isArray(pJ)) if (pJ.includes(t2)) {
28700
+ let n2 = pJ.filter((t3) => t3 !== e2);
28521
28701
  t2 = n2.length > 0 ? n2 : [];
28522
28702
  } else t2 = [
28523
- ...qq,
28703
+ ...pJ,
28524
28704
  t2
28525
28705
  ];
28526
28706
  else t2 = [
28527
28707
  t2
28528
28708
  ];
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", {
28709
+ else pJ === e2 && (t2 = null);
28710
+ mJ(t2), (_ ?? eJ) || lJ(false);
28711
+ }, t[37] = _, t[38] = eJ, t[39] = lJ, t[40] = mJ, t[41] = pJ, t[42] = _J) : _J = t[42];
28712
+ let vJ = _J, yJ;
28713
+ 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];
28714
+ let bJ = yJ, xJ;
28715
+ t[49] !== vJ || t[50] !== gJ ? (xJ = {
28716
+ isSelected: gJ,
28717
+ onSelect: vJ
28718
+ }, t[49] = vJ, t[50] = gJ, t[51] = xJ) : xJ = t[51];
28719
+ let SJ = xJ, CJ;
28720
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (CJ = cn("relative"), t[52] = CJ) : CJ = t[52];
28721
+ let EJ;
28722
+ t[53] !== aJ || t[54] !== lJ ? (EJ = (e2) => {
28723
+ aJ && e2 || lJ(e2);
28724
+ }, t[53] = aJ, t[54] = lJ, t[55] = EJ) : EJ = t[55];
28725
+ let DJ = aJ && "cursor-not-allowed opacity-50", OJ;
28726
+ 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];
28727
+ let kJ;
28728
+ 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];
28729
+ let AJ;
28730
+ t[63] === kJ ? AJ = t[64] : (AJ = (0, import_jsx_runtime.jsx)("span", {
28551
28731
  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, {
28732
+ children: kJ
28733
+ }), t[63] = kJ, t[64] = AJ);
28734
+ let jJ;
28735
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28556
28736
  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, {
28737
+ }), t[65] = jJ) : jJ = t[65];
28738
+ let MJ;
28739
+ t[66] !== aJ || t[67] !== h || t[68] !== uJ || t[69] !== OJ || t[70] !== AJ ? (MJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28560
28740
  asChild: true,
28561
28741
  children: (0, import_jsx_runtime.jsxs)("button", {
28562
28742
  id: h,
28563
28743
  type: "button",
28564
- className: cJ,
28565
- "aria-expanded": Wq,
28566
- "aria-disabled": zq,
28744
+ className: OJ,
28745
+ "aria-expanded": uJ,
28746
+ "aria-disabled": aJ,
28567
28747
  children: [
28568
- uJ,
28569
- dJ
28748
+ AJ,
28749
+ jJ
28570
28750
  ]
28571
28751
  })
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,
28752
+ }), t[66] = aJ, t[67] = h, t[68] = uJ, t[69] = OJ, t[70] = AJ, t[71] = MJ) : MJ = t[71];
28753
+ let NJ;
28754
+ t[72] !== nJ || t[73] !== y || t[74] !== M ? (NJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28755
+ placeholder: nJ,
28576
28756
  rootClassName: "px-1 h-8",
28577
28757
  autoFocus: true,
28578
28758
  value: M,
28579
28759
  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,
28760
+ }), t[72] = nJ, t[73] = y, t[74] = M, t[75] = NJ) : NJ = t[75];
28761
+ let PJ;
28762
+ t[76] === rJ ? PJ = t[77] : (PJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28763
+ children: rJ
28764
+ }), t[76] = rJ, t[77] = PJ);
28765
+ let FJ;
28766
+ t[78] !== n || t[79] !== SJ ? (FJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28767
+ value: SJ,
28588
28768
  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, {
28769
+ }), t[78] = n, t[79] = SJ, t[80] = FJ) : FJ = t[80];
28770
+ let IJ;
28771
+ t[81] !== PJ || t[82] !== FJ ? (IJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28592
28772
  className: "max-h-60 py-.5",
28593
28773
  children: [
28594
- mJ,
28595
- hJ
28774
+ PJ,
28775
+ FJ
28596
28776
  ]
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, {
28777
+ }), t[81] = PJ, t[82] = FJ, t[83] = IJ) : IJ = t[83];
28778
+ let LJ;
28779
+ t[84] !== f || t[85] !== tJ || t[86] !== NJ || t[87] !== IJ ? (LJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28600
28780
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28601
28781
  align: "start",
28602
28782
  children: (0, import_jsx_runtime.jsxs)(Command, {
28603
28783
  filter: f,
28604
- shouldFilter: Fq,
28784
+ shouldFilter: tJ,
28605
28785
  children: [
28606
- pJ,
28607
- gJ
28786
+ NJ,
28787
+ IJ
28608
28788
  ]
28609
28789
  })
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,
28790
+ }), t[84] = f, t[85] = tJ, t[86] = NJ, t[87] = IJ, t[88] = LJ) : LJ = t[88];
28791
+ let RJ;
28792
+ t[89] !== uJ || t[90] !== EJ || t[91] !== MJ || t[92] !== LJ ? (RJ = (0, import_jsx_runtime.jsxs)(Popover, {
28793
+ open: uJ,
28794
+ onOpenChange: EJ,
28615
28795
  children: [
28616
- fJ,
28617
- _J
28796
+ MJ,
28797
+ LJ
28618
28798
  ]
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", {
28799
+ }), t[89] = uJ, t[90] = EJ, t[91] = MJ, t[92] = LJ, t[93] = RJ) : RJ = t[93];
28800
+ let zJ;
28801
+ 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
28802
  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, {
28803
+ children: Array.isArray(pJ) && pJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28624
28804
  variant: "secondary",
28625
28805
  children: [
28626
28806
  (d == null ? void 0 : d(e2)) ?? String(e2),
28627
28807
  (0, import_jsx_runtime.jsx)(CircleX, {
28628
28808
  onClick: () => {
28629
- zq || Qq(e2);
28809
+ aJ || vJ(e2);
28630
28810
  },
28631
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", zq && "pointer-events-none")
28811
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", aJ && "pointer-events-none")
28632
28812
  })
28633
28813
  ]
28634
28814
  }, 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,
28815
+ }), 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];
28816
+ let BJ;
28817
+ return t[102] !== A || t[103] !== RJ || t[104] !== zJ ? (BJ = (0, import_jsx_runtime.jsxs)("div", {
28818
+ className: CJ,
28639
28819
  ...A,
28640
28820
  children: [
28641
- vJ,
28642
- yJ
28821
+ RJ,
28822
+ zJ
28643
28823
  ]
28644
- }), t[102] = A, t[103] = vJ, t[104] = yJ, t[105] = bJ) : bJ = t[105], bJ;
28824
+ }), t[102] = A, t[103] = RJ, t[104] = zJ, t[105] = BJ) : BJ = t[105], BJ;
28645
28825
  };
28646
28826
  ComboboxItem = import_react.forwardRef((e, t) => {
28647
28827
  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 +29558,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29378
29558
  start: dateToAria(n, f),
29379
29559
  end: dateToAria(n, _)
29380
29560
  }, 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, {
29561
+ let A = O, M;
29562
+ 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
29563
  "aria-label": "range",
29384
29564
  defaultValue: A,
29385
29565
  onChange: E,
@@ -29391,13 +29571,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29391
29571
  hourCycle: 24,
29392
29572
  onChange: E,
29393
29573
  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", {
29574
+ }, c), t[31] = s, t[32] = n, t[33] = E, t[34] = c, t[35] = A, t[36] = M) : M = t[36];
29575
+ let I;
29576
+ return t[37] !== S || t[38] !== M ? (I = (0, import_jsx_runtime.jsx)("div", {
29397
29577
  onPasteCapture: S,
29398
29578
  className: "contents",
29399
- children: I
29400
- }), t[37] = S, t[38] = I, t[39] = z) : z = t[39], z;
29579
+ children: M
29580
+ }), t[37] = S, t[38] = M, t[39] = I) : I = t[39], I;
29401
29581
  };
29402
29582
  function _temp$5(e) {
29403
29583
  return e + 1;
@@ -29697,17 +29877,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29697
29877
  searchQuery: M,
29698
29878
  filteredOptions: z
29699
29879
  }, 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 = {
29880
+ let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), eJ;
29881
+ t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (eJ = {
29702
29882
  value: i,
29703
29883
  onChange: a,
29704
29884
  multiple: o,
29705
29885
  maxSelections: s,
29706
29886
  allowSelectNone: c,
29707
29887
  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 = {
29888
+ }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = eJ) : eJ = t[21];
29889
+ let { isChecked: tJ, toggle: nJ } = useToggle(eJ), rJ;
29890
+ t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (rJ = {
29711
29891
  value: i,
29712
29892
  onChange: a,
29713
29893
  multiple: o,
@@ -29715,24 +29895,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29715
29895
  filteredOptions: z,
29716
29896
  searchQuery: M,
29717
29897
  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) => {
29898
+ }, 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];
29899
+ let { bulkActions: iJ } = useBulk(rJ), aJ;
29900
+ t[30] !== J || t[31] !== I ? (aJ = (e2) => {
29721
29901
  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 = {
29902
+ }, t[30] = J, t[31] = I, t[32] = aJ) : aJ = t[32];
29903
+ let oJ = aJ, sJ;
29904
+ 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
29905
  searchQuery: M,
29726
- setSearchQuery: Vq,
29906
+ setSearchQuery: oJ,
29727
29907
  open: K,
29728
29908
  setOpen: q,
29729
29909
  visibleOptions: Q,
29730
29910
  pinnedCount: $,
29731
- isChecked: Iq,
29732
- toggle: Lq,
29733
- bulkActions: zq,
29911
+ isChecked: tJ,
29912
+ toggle: nJ,
29913
+ bulkActions: iJ,
29734
29914
  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;
29915
+ }, 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
29916
  };
29737
29917
  const Sets = {
29738
29918
  merge(...e) {
@@ -30041,7 +30221,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30041
30221
  const FilterPillEditor = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: i, editIndex: a }) => {
30042
30222
  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
30223
  t2.id === e.columnId && t2.operator === f && M(_);
30044
- }, J = (e2) => {
30224
+ }, q = (e2) => {
30045
30225
  if (!e2) return;
30046
30226
  let n2 = t.getColumn(e2);
30047
30227
  if (!n2) return;
@@ -30050,20 +30230,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30050
30230
  id: e2,
30051
30231
  operator: a2
30052
30232
  });
30053
- }, Q = (e2) => {
30233
+ }, J = (e2) => {
30054
30234
  O(e2);
30055
30235
  let t2 = emptyDraftFor(S, e2);
30056
30236
  t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT), K({
30057
30237
  id: v,
30058
30238
  operator: e2
30059
30239
  });
30060
- }, $ = buildFilterValue({
30240
+ }, Q = buildFilterValue({
30061
30241
  type: S,
30062
30242
  operator: E,
30063
30243
  draft: mergeNumberTextDraft(A, I)
30064
- }), Fq = $ === void 0, Iq = Fq ? getMissingValueMessage(S, E) : "Apply filter", Lq = () => {
30065
- if (!$) return;
30066
- let e2 = $;
30244
+ }), $ = Q === void 0, eJ = $ ? getMissingValueMessage(S, E) : "Apply filter", tJ = () => {
30245
+ if (!Q) return;
30246
+ let e2 = Q;
30067
30247
  t.setColumnFilters((t2) => {
30068
30248
  if (a === void 0) return [
30069
30249
  {
@@ -30080,20 +30260,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30080
30260
  value: e2
30081
30261
  }, n2;
30082
30262
  }), i();
30083
- }, Rq = () => {
30263
+ }, nJ = () => {
30084
30264
  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);
30265
+ }, rJ = !OPERATORS_WITHOUT_VALUE.has(E), iJ = OPERATORS_BY_TYPE[S], aJ = (0, import_react.useRef)(null), oJ = (0, import_react.useRef)(null);
30086
30266
  return (0, import_react.useEffect)(() => {
30087
30267
  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();
30268
+ let e2 = (_a2 = aJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30269
+ e2 ? e2.focus() : (_b = oJ.current) == null ? void 0 : _b.focus();
30090
30270
  }, [
30091
30271
  S,
30092
30272
  E
30093
30273
  ]), (0, import_jsx_runtime.jsxs)("form", {
30094
30274
  className: "flex flex-row gap-4 items-end p-3",
30095
30275
  onSubmit: (e2) => {
30096
- e2.preventDefault(), Lq();
30276
+ e2.preventDefault(), tJ();
30097
30277
  },
30098
30278
  onKeyDownCapture: (e2) => {
30099
30279
  e2.key === "Tab" && e2.stopPropagation();
@@ -30110,7 +30290,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30110
30290
  (0, import_jsx_runtime.jsx)(Combobox, {
30111
30291
  id: o,
30112
30292
  value: v,
30113
- onValueChange: J,
30293
+ onValueChange: q,
30114
30294
  multiple: false,
30115
30295
  placeholder: "Select column\u2026",
30116
30296
  displayValue: (e2) => e2,
@@ -30131,16 +30311,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30131
30311
  }),
30132
30312
  (0, import_jsx_runtime.jsxs)(Select, {
30133
30313
  value: E,
30134
- onValueChange: (e2) => Q(e2),
30314
+ onValueChange: (e2) => J(e2),
30135
30315
  children: [
30136
30316
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30137
- ref: Hq,
30317
+ ref: oJ,
30138
30318
  id: s,
30139
30319
  className: "h-6 mb-1 bg-transparent",
30140
30320
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30141
30321
  }),
30142
30322
  (0, import_jsx_runtime.jsx)(SelectContent, {
30143
- children: Bq.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30323
+ children: iJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30144
30324
  value: e2,
30145
30325
  children: OPERATOR_LABELS[e2]
30146
30326
  }, e2))
@@ -30149,8 +30329,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30149
30329
  }, S)
30150
30330
  ]
30151
30331
  }),
30152
- zq && (0, import_jsx_runtime.jsxs)("div", {
30153
- ref: Vq,
30332
+ rJ && (0, import_jsx_runtime.jsxs)("div", {
30333
+ ref: aJ,
30154
30334
  className: "flex flex-col gap-1",
30155
30335
  children: [
30156
30336
  (0, import_jsx_runtime.jsx)("label", {
@@ -30177,14 +30357,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30177
30357
  className: "flex gap-1 mb-1",
30178
30358
  children: [
30179
30359
  (0, import_jsx_runtime.jsx)(Tooltip, {
30180
- content: Iq,
30360
+ content: eJ,
30181
30361
  children: (0, import_jsx_runtime.jsx)("span", {
30182
30362
  className: "inline-flex",
30183
30363
  children: (0, import_jsx_runtime.jsx)(Button, {
30184
30364
  type: "submit",
30185
30365
  size: "icon",
30186
30366
  variant: "ghost",
30187
- disabled: Fq,
30367
+ disabled: $,
30188
30368
  className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
30189
30369
  "aria-label": "Apply filter",
30190
30370
  children: (0, import_jsx_runtime.jsx)(Check, {
@@ -30216,7 +30396,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30216
30396
  size: "icon",
30217
30397
  variant: "ghost",
30218
30398
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30219
- onClick: Rq,
30399
+ onClick: nJ,
30220
30400
  "aria-label": "Remove filter",
30221
30401
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30222
30402
  className: "h-3.5 w-3.5",
@@ -32424,29 +32604,29 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32424
32604
  }, t[16] = a, t[17] = J);
32425
32605
  let Q = useEvent_default(J), $;
32426
32606
  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, {
32607
+ let eJ = useEvent_default($), tJ, nJ;
32608
+ t[20] === S ? (tJ = t[21], nJ = t[22]) : (tJ = () => (window.addEventListener("scroll", S, {
32429
32609
  passive: true,
32430
32610
  capture: true
32431
32611
  }), window.addEventListener("resize", S), () => {
32432
32612
  window.removeEventListener("scroll", S, {
32433
32613
  capture: true
32434
32614
  }), window.removeEventListener("resize", S);
32435
- }), Lq = [
32615
+ }), nJ = [
32436
32616
  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 = {
32617
+ ], t[20] = S, t[21] = tJ, t[22] = nJ), (0, import_react.useEffect)(tJ, nJ);
32618
+ let rJ, iJ;
32619
+ 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);
32620
+ let aJ;
32621
+ return t[25] !== eJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (aJ = {
32442
32622
  tooltipState: o,
32443
32623
  tooltipContentId: d,
32444
32624
  hideTooltip: S,
32445
32625
  handleCellMouseOver: U,
32446
32626
  handleCellMouseLeave: q,
32447
32627
  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;
32628
+ handleCellBlur: eJ
32629
+ }, 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
32630
  }
32451
32631
  var import_compiler_runtime$18 = require_compiler_runtime();
32452
32632
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
@@ -32788,14 +32968,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32788
32968
  setColumnVisibility: n
32789
32969
  };
32790
32970
  }
32791
- function getUserColumnVisibilityCounts(e) {
32971
+ getUserColumnVisibilityCounts = function(e) {
32792
32972
  let t = e.getAllLeafColumns().filter((e2) => e2.getCanHide()), n = t.filter((e2) => e2.getIsVisible()).length;
32793
32973
  return {
32794
32974
  total: t.length,
32795
32975
  visible: n,
32796
32976
  hidden: t.length - n
32797
32977
  };
32798
- }
32978
+ };
32799
32979
  getColumnCountForDisplay = function(e, t) {
32800
32980
  let n = getUserColumnVisibilityCounts(e);
32801
32981
  return {
@@ -33440,7 +33620,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33440
33620
  dataType: (_a2 = e2.columnDef.meta) == null ? void 0 : _a2.dataType
33441
33621
  }
33442
33622
  };
33443
- }), i = t.filter((e2) => !e2.getIsVisible()).map((e2) => e2.id), s = (n2) => {
33623
+ }), 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
33624
  let i2 = new Set(Array.isArray(n2) ? n2 : []);
33445
33625
  e.setColumnVisibility((e2) => ({
33446
33626
  ...e2,
@@ -33449,17 +33629,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33449
33629
  !i2.has(e3.id)
33450
33630
  ]))
33451
33631
  }));
33452
- }, c = useSelectList({
33632
+ }, f = useSelectList({
33453
33633
  options: n,
33454
33634
  value: i,
33455
- onChange: s,
33635
+ onChange: d,
33456
33636
  multiple: true,
33457
33637
  filterFn: smartMatchFilter,
33458
33638
  pinSelected: true
33459
- }), d = c.bulkActions.filter((e2) => e2.kind === "select-matching" || e2.kind === "deselect-matching");
33639
+ }), _ = f.bulkActions.filter((e2) => e2.kind === "select-matching" || e2.kind === "deselect-matching");
33460
33640
  return (0, import_jsx_runtime.jsxs)(Popover, {
33461
- open: c.open,
33462
- onOpenChange: c.setOpen,
33641
+ open: f.open,
33642
+ onOpenChange: f.setOpen,
33463
33643
  children: [
33464
33644
  (0, import_jsx_runtime.jsx)(PopoverTrigger, {
33465
33645
  asChild: true,
@@ -33468,7 +33648,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33468
33648
  size: "xs",
33469
33649
  "data-testid": "column-visibility-trigger",
33470
33650
  onMouseDown: Events.preventFocus,
33471
- className: cn("print:hidden text-xs gap-1", c.open ? "text-primary" : "text-muted-foreground"),
33651
+ className: cn("print:hidden text-xs gap-1", f.open ? "text-primary" : "text-muted-foreground"),
33472
33652
  children: [
33473
33653
  (0, import_jsx_runtime.jsx)(Columns3, {
33474
33654
  className: "w-3.5 h-3.5"
@@ -33485,20 +33665,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33485
33665
  children: [
33486
33666
  (0, import_jsx_runtime.jsx)(CommandInput, {
33487
33667
  placeholder: "Search columns...",
33488
- value: c.searchQuery,
33489
- onValueChange: c.setSearchQuery
33668
+ value: f.searchQuery,
33669
+ onValueChange: f.setSearchQuery
33490
33670
  }),
33491
33671
  (0, import_jsx_runtime.jsxs)(CommandList, {
33492
33672
  children: [
33493
33673
  (0, import_jsx_runtime.jsx)(CommandEmpty, {
33494
33674
  children: "No results."
33495
33675
  }),
33496
- c.searchQuery === "" ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33676
+ f.searchQuery === "" ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33497
33677
  children: [
33498
33678
  (0, import_jsx_runtime.jsxs)(CommandItem, {
33499
33679
  value: "__show_all__",
33500
33680
  disabled: i.length === 0,
33501
- onSelect: () => s([]),
33681
+ onSelect: () => d([]),
33502
33682
  className: "cursor-pointer",
33503
33683
  children: [
33504
33684
  (0, import_jsx_runtime.jsx)(Eye, {
@@ -33507,11 +33687,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33507
33687
  "Show all"
33508
33688
  ]
33509
33689
  }),
33690
+ (0, import_jsx_runtime.jsxs)(CommandItem, {
33691
+ value: "__hide_all__",
33692
+ disabled: c === 0,
33693
+ onSelect: () => d(s),
33694
+ className: "cursor-pointer",
33695
+ children: [
33696
+ (0, import_jsx_runtime.jsx)(EyeOff, {
33697
+ className: "w-3 h-3 mr-1.5"
33698
+ }),
33699
+ "Hide all"
33700
+ ]
33701
+ }),
33510
33702
  (0, import_jsx_runtime.jsx)(CommandSeparator, {})
33511
33703
  ]
33512
- }) : d.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33704
+ }) : _.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33513
33705
  children: [
33514
- d.map((e2) => (0, import_jsx_runtime.jsxs)(CommandItem, {
33706
+ _.map((e2) => (0, import_jsx_runtime.jsxs)(CommandItem, {
33515
33707
  value: `__bulk_${e2.kind}`,
33516
33708
  onSelect: e2.run,
33517
33709
  className: "cursor-pointer",
@@ -33530,15 +33722,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33530
33722
  (0, import_jsx_runtime.jsx)(CommandSeparator, {})
33531
33723
  ]
33532
33724
  }),
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;
33725
+ f.visibleOptions.map((e2, t2) => {
33726
+ let n2 = f.isChecked(e2.value), { dataType: i2 } = e2.data, o = t2 === f.pinnedCount && f.pinnedCount > 0 && f.pinnedCount < f.visibleOptions.length;
33535
33727
  return (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
33536
33728
  children: [
33537
33729
  o && (0, import_jsx_runtime.jsx)(CommandSeparator, {}),
33538
33730
  (0, import_jsx_runtime.jsxs)(CommandItem, {
33539
33731
  value: e2.value,
33540
33732
  disabled: e2.disabled,
33541
- onSelect: () => c.toggle(e2.value),
33733
+ onSelect: () => f.toggle(e2.value),
33542
33734
  className: "flex items-center gap-1.5 cursor-pointer",
33543
33735
  children: [
33544
33736
  i2 === void 0 ? (0, import_jsx_runtime.jsx)("span", {
@@ -33872,7 +34064,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33872
34064
  filename: i2.filename
33873
34065
  };
33874
34066
  }, t[6] = e, t[7] = O);
33875
- let A = O, M, I, z, U, K, q, J, Q, $, Fq, Iq, Lq, Rq;
34067
+ let A = O, M, I, z, U, K, q, J, Q, $, eJ, tJ, nJ, rJ;
33876
34068
  if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
33877
34069
  let e2 = async (t2) => {
33878
34070
  let n2 = labelForDownloadFormat(t2);
@@ -33938,10 +34130,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33938
34130
  content: d,
33939
34131
  open: o2,
33940
34132
  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, {
34133
+ }), 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
34134
  className: "text-xs text-muted-foreground",
33943
34135
  children: "Download"
33944
- }), t[36] = Iq) : Iq = t[36], Lq = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34136
+ }), t[36] = tJ) : tJ = t[36], nJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33945
34137
  onSelect: () => {
33946
34138
  e2(t2.format);
33947
34139
  },
@@ -33962,10 +34154,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33962
34154
  ]
33963
34155
  })
33964
34156
  ]
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, {
34157
+ }, 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
34158
  className: "text-xs text-muted-foreground",
33967
34159
  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, {
34160
+ }), t[37] = z, t[38] = rJ) : (z = t[37], rJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33969
34161
  onSelect: async () => {
33970
34162
  try {
33971
34163
  await a(e3.format);
@@ -33994,30 +34186,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33994
34186
  ]
33995
34187
  })
33996
34188
  ]
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, {
34189
+ }, 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;
34190
+ } 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];
34191
+ let iJ;
34192
+ 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
34193
  side: $,
34002
- className: Fq,
34194
+ className: eJ,
34003
34195
  children: [
34004
- Iq,
34005
- Lq,
34006
- Rq,
34196
+ tJ,
34197
+ nJ,
34198
+ rJ,
34007
34199
  z,
34008
34200
  U
34009
34201
  ]
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, {
34202
+ }), 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];
34203
+ let aJ;
34204
+ 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
34205
  modal: K,
34014
34206
  open: q,
34015
34207
  onOpenChange: J,
34016
34208
  children: [
34017
34209
  Q,
34018
- zq
34210
+ iJ
34019
34211
  ]
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;
34212
+ }), 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
34213
  };
34022
34214
  function fetchJson(e) {
34023
34215
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -34113,22 +34305,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34113
34305
  ]
34114
34306
  });
34115
34307
  };
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);
34308
+ 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 }) => {
34309
+ 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
34310
  import_react.useEffect(() => {
34119
34311
  let e2;
34120
- return Uq ? e2 = setTimeout(() => {
34121
- sJ(true);
34122
- }, 300) : sJ(false), () => {
34312
+ return cJ ? e2 = setTimeout(() => {
34313
+ EJ(true);
34314
+ }, 300) : EJ(false), () => {
34123
34315
  e2 && clearTimeout(e2);
34124
34316
  };
34125
34317
  }, [
34126
- Uq
34318
+ cJ
34127
34319
  ]);
34128
- function pJ(e2, t2) {
34320
+ function MJ(e2, t2) {
34129
34321
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
34130
34322
  }
34131
- let mJ = useReactTable({
34323
+ let NJ = useReactTable({
34132
34324
  _features: [
34133
34325
  ColumnPinning,
34134
34326
  ColumnWrappingFeature,
@@ -34152,37 +34344,37 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34152
34344
  getRowId: (e2, t2) => {
34153
34345
  let n2 = getStableRowId(e2);
34154
34346
  if (n2) return n2;
34155
- let i2 = pJ(e2, t2);
34347
+ let i2 = MJ(e2, t2);
34156
34348
  return String(i2);
34157
34349
  }
34158
34350
  } : {},
34159
- locale: cJ,
34351
+ locale: DJ,
34160
34352
  manualPagination: q,
34161
34353
  getPaginationRowModel: getPaginationRowModel(),
34162
34354
  ...w ? {
34163
34355
  onSortingChange: w
34164
34356
  } : {},
34165
34357
  manualSorting: y,
34166
- enableSorting: !iJ,
34358
+ enableSorting: !CJ,
34167
34359
  enableMultiSort: true,
34168
34360
  getSortedRowModel: getSortedRowModel(),
34169
34361
  manualFiltering: true,
34170
- enableColumnFilters: zq && !iJ,
34362
+ enableColumnFilters: iJ && !CJ,
34171
34363
  getFilteredRowModel: getFilteredRowModel(),
34172
- onColumnFiltersChange: Vq,
34364
+ onColumnFiltersChange: oJ,
34173
34365
  onRowSelectionChange: Q,
34174
34366
  onCellSelectionChange: $,
34175
34367
  enableCellSelection: c === "single-cell" || c === "multi-cell",
34176
34368
  enableMultiCellSelection: c === "multi-cell",
34177
- onColumnPinningChange: uJ,
34178
- onColumnVisibilityChange: fJ,
34369
+ onColumnPinningChange: kJ,
34370
+ onColumnVisibilityChange: jJ,
34179
34371
  enableFocusRow: true,
34180
- onFocusRowChange: nJ,
34372
+ onFocusRowChange: xJ,
34181
34373
  state: {
34182
34374
  ...S ? {
34183
34375
  sorting: S
34184
34376
  } : {},
34185
- columnFilters: Bq,
34377
+ columnFilters: aJ,
34186
34378
  ...z ? {
34187
34379
  pagination: z
34188
34380
  } : J && !z ? {} : {
@@ -34193,60 +34385,60 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34193
34385
  },
34194
34386
  rowSelection: E ?? {},
34195
34387
  cellSelection: O ?? [],
34196
- columnVisibility: dJ,
34388
+ columnVisibility: AJ,
34197
34389
  cellStyling: A,
34198
- columnPinning: lJ,
34390
+ columnPinning: OJ,
34199
34391
  cellHoverTemplate: M,
34200
34392
  cellHoverTexts: I ?? {}
34201
34393
  }
34202
- }), hJ = ($q == null ? void 0 : $q(PANEL_TYPES.ROW_VIEWER)) ?? false, gJ = !J && o.length > 100, _J = useScrollContainerHeight({
34394
+ }), PJ = (vJ == null ? void 0 : vJ(PANEL_TYPES.ROW_VIEWER)) ?? false, FJ = !J && o.length > 100, IJ = useScrollContainerHeight({
34203
34395
  maxHeight: n,
34204
- virtualize: gJ
34205
- }), [vJ, yJ] = import_react.useState(null), bJ = import_react.useMemo(() => ({
34396
+ virtualize: FJ
34397
+ }), [LJ, RJ] = import_react.useState(null), zJ = import_react.useMemo(() => ({
34206
34398
  requestAddFilter: (e2) => {
34207
- let t2 = mJ.getColumn(e2.columnId);
34208
- t2 && yJ(buildEditorSnapshot(t2, {
34399
+ let t2 = NJ.getColumn(e2.columnId);
34400
+ t2 && RJ(buildEditorSnapshot(t2, {
34209
34401
  operator: e2.operator
34210
34402
  }));
34211
34403
  }
34212
34404
  }), [
34213
- mJ
34214
- ]), xJ = getUserColumnVisibilityCounts(mJ), SJ = xJ.total > 0 && xJ.visible === 0;
34405
+ NJ
34406
+ ]), BJ = getUserColumnVisibilityCounts(NJ), VJ = BJ.total > 0 && BJ.visible === 0;
34215
34407
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
34216
- value: bJ,
34408
+ value: zJ,
34217
34409
  children: (0, import_jsx_runtime.jsxs)("div", {
34218
34410
  className: cn(e, "flex flex-col space-y-1"),
34219
34411
  children: [
34220
34412
  (0, import_jsx_runtime.jsx)(FilterPills, {
34221
- filters: Bq,
34222
- table: mJ,
34223
- calculateTopKRows: Hq,
34224
- addFilterSnapshot: vJ,
34225
- onAddFilterSnapshotChange: yJ
34413
+ filters: aJ,
34414
+ table: NJ,
34415
+ calculateTopKRows: sJ,
34416
+ addFilterSnapshot: LJ,
34417
+ onAddFilterSnapshotChange: RJ
34226
34418
  }),
34227
- rJ == null ? void 0 : rJ(mJ),
34419
+ SJ == null ? void 0 : SJ(NJ),
34228
34420
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
34229
34421
  children: (0, import_jsx_runtime.jsxs)("div", {
34230
34422
  part: "table-wrapper",
34231
34423
  className: cn(t || "rounded-md border overflow-hidden"),
34232
34424
  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,
34425
+ wJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34426
+ table: NJ,
34427
+ showSearch: tJ,
34428
+ searchQuery: nJ,
34429
+ onSearchQueryChange: rJ,
34430
+ reloading: cJ,
34431
+ showChartBuilder: pJ,
34432
+ isChartBuilderOpen: mJ,
34433
+ toggleDisplayHeader: fJ,
34434
+ showTableExplorer: gJ,
34435
+ togglePanel: _J,
34436
+ isAnyPanelOpen: yJ,
34245
34437
  downloadAs: K,
34246
34438
  sizeBytes: _,
34247
34439
  sizeBytesIsLoading: v
34248
34440
  }),
34249
- SJ && (0, import_jsx_runtime.jsxs)(Banner, {
34441
+ VJ && (0, import_jsx_runtime.jsxs)(Banner, {
34250
34442
  className: "mb-1 mx-2 rounded flex items-center justify-between",
34251
34443
  children: [
34252
34444
  (0, import_jsx_runtime.jsx)("span", {
@@ -34255,26 +34447,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34255
34447
  (0, import_jsx_runtime.jsx)(Button, {
34256
34448
  variant: "link",
34257
34449
  size: "xs",
34258
- onClick: () => mJ.resetColumnVisibility(true),
34450
+ onClick: () => NJ.resetColumnVisibility(true),
34259
34451
  children: "Unhide all"
34260
34452
  })
34261
34453
  ]
34262
34454
  }),
34263
34455
  (0, import_jsx_runtime.jsxs)(Table, {
34264
34456
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
34265
- ref: _J,
34457
+ ref: IJ,
34266
34458
  children: [
34267
- oJ && (0, import_jsx_runtime.jsx)("thead", {
34459
+ TJ && (0, import_jsx_runtime.jsx)("thead", {
34268
34460
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
34269
34461
  }),
34270
- renderTableHeader(mJ, gJ || !!n),
34462
+ renderTableHeader(NJ, FJ || !!n),
34271
34463
  (0, import_jsx_runtime.jsx)(DataTableBody, {
34272
- table: mJ,
34464
+ table: NJ,
34273
34465
  columns: i,
34274
- rowViewerPanelOpen: hJ,
34275
- getRowIndex: pJ,
34276
- viewedRowIdx: tJ,
34277
- virtualize: gJ
34466
+ rowViewerPanelOpen: PJ,
34467
+ getRowIndex: MJ,
34468
+ viewedRowIdx: bJ,
34469
+ virtualize: FJ
34278
34470
  })
34279
34471
  ]
34280
34472
  }),
@@ -34285,10 +34477,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34285
34477
  pagination: J,
34286
34478
  selection: c,
34287
34479
  onRowSelectionChange: Q,
34288
- table: mJ,
34289
- getRowIds: Fq,
34290
- showPageSizeSelector: Xq,
34291
- tableLoading: Uq
34480
+ table: NJ,
34481
+ getRowIds: eJ,
34482
+ showPageSizeSelector: hJ,
34483
+ tableLoading: cJ
34292
34484
  })
34293
34485
  ]
34294
34486
  })
@@ -34356,7 +34548,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34356
34548
  var import_compiler_runtime$7 = require_compiler_runtime();
34357
34549
  const MarimoTracebackOutput = (e) => {
34358
34550
  var _a2;
34359
- let t = (0, import_compiler_runtime$7.c)(45), { onRefactorWithAI: n, traceback: i, cellId: a } = e, o;
34551
+ let t = (0, import_compiler_runtime$7.c)(50), { onRefactorWithAI: n, traceback: i, cellId: a } = e, o;
34360
34552
  t[0] === i ? o = t[1] : (o = renderHTML({
34361
34553
  html: i,
34362
34554
  additionalReplacements: [
@@ -34367,66 +34559,73 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34367
34559
  }), t[0] = i, t[1] = o);
34368
34560
  let s = o, c;
34369
34561
  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) => {
34562
+ let d = c, f = useAtomValue(aiFeaturesEnabledAtom), _ = useOpenAiAssistant(), v;
34563
+ t[4] === i ? v = t[5] : (v = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = v);
34564
+ let y = v, w;
34565
+ 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];
34566
+ let A = w, M;
34567
+ t[9] !== f || t[10] !== n ? (M = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = M) : M = t[11];
34568
+ let I = M, z = !isStaticNotebook(), [U, K] = (0, import_react.useState)(true), q;
34569
+ t[12] !== d || t[13] !== n ? (q = (e2) => {
34378
34570
  n == null ? void 0 : n({
34379
34571
  prompt: `My code gives the following error:
34380
34572
 
34381
34573
  ${d}`,
34382
34574
  triggerImmediately: e2
34383
34575
  });
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, {
34576
+ }, t[12] = d, t[13] = n, t[14] = q) : q = t[14];
34577
+ let J = q, Q;
34578
+ t[15] !== a || t[16] !== d || t[17] !== _ ? (Q = () => {
34579
+ _({
34580
+ prompt: buildFixInChatPrompt(a, d)
34581
+ });
34582
+ }, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
34583
+ let tJ = Q, nJ;
34584
+ t[19] === U ? nJ = t[20] : (nJ = () => K(!U), t[19] = U, t[20] = nJ);
34585
+ let rJ = U ? "Collapse traceback" : "Expand traceback", iJ;
34586
+ t[21] === U ? iJ = t[22] : (iJ = U ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34389
34587
  className: "h-3 w-3"
34390
34588
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
34391
34589
  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", {
34590
+ }), t[21] = U, t[22] = iJ);
34591
+ let aJ;
34592
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aJ = (0, import_jsx_runtime.jsx)("span", {
34395
34593
  className: "text-[0.6875rem] uppercase tracking-wider",
34396
34594
  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", {
34595
+ }), t[23] = aJ) : aJ = t[23];
34596
+ let oJ;
34597
+ t[24] !== U || t[25] !== iJ || t[26] !== nJ || t[27] !== rJ ? (oJ = (0, import_jsx_runtime.jsxs)("button", {
34400
34598
  type: "button",
34401
- onClick: J,
34402
- "aria-expanded": z,
34403
- "aria-label": Q,
34599
+ onClick: nJ,
34600
+ "aria-expanded": U,
34601
+ "aria-label": rJ,
34404
34602
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34405
34603
  children: [
34406
- $,
34407
- Fq
34604
+ iJ,
34605
+ aJ
34408
34606
  ]
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", {
34607
+ }), t[24] = U, t[25] = iJ, t[26] = nJ, t[27] = rJ, t[28] = oJ) : oJ = t[28];
34608
+ let sJ;
34609
+ t[29] !== s || t[30] !== U ? (sJ = U && (0, import_jsx_runtime.jsx)("div", {
34412
34610
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34413
34611
  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, {
34612
+ }), t[29] = s, t[30] = U, t[31] = sJ) : sJ = t[31];
34613
+ let cJ;
34614
+ t[32] !== J || t[33] !== tJ || t[34] !== I ? (cJ = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
34417
34615
  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, {
34616
+ openPrompt: () => J(false),
34617
+ applyAutofix: () => J(true),
34618
+ openChat: tJ
34619
+ }), t[32] = J, t[33] = tJ, t[34] = I, t[35] = cJ) : cJ = t[35];
34620
+ let lJ;
34621
+ t[36] !== A || t[37] !== y ? (lJ = A && (0, import_jsx_runtime.jsx)(Tooltip, {
34423
34622
  content: "Attach pdb to the exception point.",
34424
34623
  children: (0, import_jsx_runtime.jsxs)(Button, {
34425
34624
  size: "xs",
34426
34625
  variant: "outline",
34427
34626
  onClick: () => {
34428
34627
  getRequestClient().sendPdb({
34429
- cellId: v.cellId
34628
+ cellId: y.cellId
34430
34629
  });
34431
34630
  },
34432
34631
  children: [
@@ -34436,9 +34635,9 @@ ${d}`,
34436
34635
  "Launch debugger"
34437
34636
  ]
34438
34637
  })
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, {
34638
+ }), t[36] = A, t[37] = y, t[38] = lJ) : lJ = t[38];
34639
+ let uJ;
34640
+ t[39] !== d || t[40] !== i ? (uJ = z && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34442
34641
  children: [
34443
34642
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34444
34643
  asChild: true,
@@ -34506,25 +34705,25 @@ ${d}`,
34506
34705
  ]
34507
34706
  })
34508
34707
  ]
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", {
34708
+ }), t[39] = d, t[40] = i, t[41] = uJ) : uJ = t[41];
34709
+ let dJ;
34710
+ t[42] !== cJ || t[43] !== lJ || t[44] !== uJ ? (dJ = (0, import_jsx_runtime.jsxs)("div", {
34512
34711
  className: "flex gap-2",
34513
34712
  children: [
34514
- zq,
34515
- Bq,
34516
- Vq
34713
+ cJ,
34714
+ lJ,
34715
+ uJ
34517
34716
  ]
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", {
34717
+ }), t[42] = cJ, t[43] = lJ, t[44] = uJ, t[45] = dJ) : dJ = t[45];
34718
+ let fJ;
34719
+ return t[46] !== oJ || t[47] !== sJ || t[48] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)("div", {
34521
34720
  className: "flex flex-col gap-2 min-w-full w-fit",
34522
34721
  children: [
34523
- Lq,
34524
- Rq,
34525
- Hq
34722
+ oJ,
34723
+ sJ,
34724
+ dJ
34526
34725
  ]
34527
- }), t[41] = Lq, t[42] = Rq, t[43] = Hq, t[44] = Uq) : Uq = t[44], Uq;
34726
+ }), t[46] = oJ, t[47] = sJ, t[48] = dJ, t[49] = fJ) : fJ = t[49], fJ;
34528
34727
  };
34529
34728
  function lastLine(e) {
34530
34729
  var _a2, _b;
@@ -34534,7 +34733,7 @@ ${d}`,
34534
34733
  const replaceTracebackFilenames = (e) => {
34535
34734
  let t = getTracebackInfo(e);
34536
34735
  if ((t == null ? void 0 : t.kind) === "cell") {
34537
- let e2 = (0, import_jsx_runtime.jsx)(InsertBreakpointContent, {});
34736
+ let e2 = getFeatureFlag("debugger"), n = e2 ? (0, import_jsx_runtime.jsx)(ToggleBreakpointContent, {}) : (0, import_jsx_runtime.jsx)(InsertBreakpointContent, {});
34538
34737
  return (0, import_jsx_runtime.jsx)("span", {
34539
34738
  className: "nb",
34540
34739
  children: (0, import_jsx_runtime.jsxs)("span", {
@@ -34545,14 +34744,18 @@ ${d}`,
34545
34744
  lineNumber: t.lineNumber
34546
34745
  }),
34547
34746
  !isWasm() && (0, import_jsx_runtime.jsx)(Tooltip, {
34548
- content: e2,
34747
+ content: n,
34549
34748
  children: (0, import_jsx_runtime.jsx)("button", {
34550
34749
  type: "button",
34551
34750
  className: "ml-1 p-1 rounded-sm hover:bg-muted transition-all inline",
34552
34751
  children: (0, import_jsx_runtime.jsx)(BugPlay, {
34553
34752
  onClick: () => {
34554
- let e3 = getCellEditorView(t.cellId);
34555
- e3 && insertDebuggerAtLine(e3, t.lineNumber);
34753
+ if (e2 && !isStaticNotebook()) {
34754
+ toggleBreakpoint(t.cellId, t.lineNumber);
34755
+ return;
34756
+ }
34757
+ let n2 = getCellEditorView(t.cellId);
34758
+ n2 && insertDebuggerAtLine(n2, t.lineNumber);
34556
34759
  },
34557
34760
  className: "h-3 w-3"
34558
34761
  })
@@ -34601,6 +34804,11 @@ ${d}`,
34601
34804
  " at this line"
34602
34805
  ]
34603
34806
  }), e[0] = t) : t = e[0], t;
34807
+ }, ToggleBreakpointContent = () => {
34808
+ let e = (0, import_compiler_runtime$7.c)(1), t;
34809
+ return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
34810
+ children: "Toggle a breakpoint at this line"
34811
+ }), e[0] = t) : t = e[0], t;
34604
34812
  };
34605
34813
  function renderMimeIcon(e) {
34606
34814
  switch (e) {
@@ -35553,17 +35761,17 @@ ${d}`,
35553
35761
  Switch.displayName = Root$1.displayName;
35554
35762
  var import_compiler_runtime$2 = require_compiler_runtime();
35555
35763
  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, {
35764
+ let t = (0, import_compiler_runtime$2.c)(7), { output: n, cellId: i, status: a, stale: o } = e, s;
35765
+ t[0] === a ? s = t[1] : (s = outputIsLoading(a), t[0] = a, t[1] = s);
35766
+ let c = s, d;
35767
+ return t[2] !== i || t[3] !== c || t[4] !== n || t[5] !== o ? (d = (0, import_jsx_runtime.jsx)(OutputArea, {
35560
35768
  className: "contents",
35561
35769
  allowExpand: false,
35562
35770
  output: n,
35563
35771
  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;
35772
+ stale: o,
35773
+ loading: c
35774
+ }), t[2] = i, t[3] = c, t[4] = n, t[5] = o, t[6] = d) : d = t[6], d;
35567
35775
  });
35568
35776
  Slide.displayName = "Slide";
35569
35777
  var import_compiler_runtime$1 = require_compiler_runtime();
@@ -36001,7 +36209,7 @@ ${d}`,
36001
36209
  return Logger.warn("Failed to get version from mount config"), null;
36002
36210
  }
36003
36211
  }
36004
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-dev6");
36212
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-dev61");
36005
36213
  showCodeInRunModeAtom = atom(true);
36006
36214
  atom(null);
36007
36215
  var import_compiler_runtime = require_compiler_runtime();
@@ -36029,128 +36237,129 @@ ${d}`,
36029
36237
  }
36030
36238
  });
36031
36239
  export {
36032
- contextAwarePanelOpen as $,
36033
- EmotionCacheProvider as $t,
36240
+ PANEL_TYPES as $,
36241
+ hasFunctionProperty as $t,
36034
36242
  prettifyRowCount as A,
36035
- SELECT_COLUMN_ID as At,
36036
- DatePicker as B,
36037
- dateToLocalISOTime as Bt,
36243
+ INDEX_COLUMN_NAME as At,
36244
+ CompactChipRow as B,
36245
+ Tabs as Bt,
36038
36246
  downloadSizeLimitAtom as C,
36039
- DelayMount as Ct,
36247
+ ColumnChartSpecModel as Ct,
36040
36248
  ErrorState as D,
36041
- loadTableAndRawData as Dt,
36249
+ getPageIndexForRow as Dt,
36042
36250
  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,
36251
+ usePrevious as Et,
36252
+ ContextMenuItem as F,
36253
+ isNullishFilter as Ft,
36254
+ Command as G,
36255
+ ChartInfoState as Gt,
36256
+ DateRangePicker as H,
36257
+ TabsList as Ht,
36258
+ ContextMenuSeparator as I,
36259
+ Maps as It,
36260
+ CommandItem as J,
36261
+ useOverflowDetection as Jt,
36262
+ CommandEmpty as K,
36263
+ ChartLoadingState as Kt,
36264
+ ContextMenuTrigger as L,
36265
+ dateToLocalISODate as Lt,
36266
+ getUserColumnVisibilityCounts as M,
36267
+ TOO_MANY_ROWS as Mt,
36268
+ ContextMenu as N,
36269
+ toFieldTypes as Nt,
36062
36270
  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,
36271
+ loadTableAndRawData as Ot,
36272
+ ContextMenuContent as P,
36273
+ getMimeValues as Pt,
36274
+ ContextAwarePanelItem as Q,
36275
+ EmotionCacheProvider as Qt,
36276
+ useInternalStateWithSync as R,
36277
+ dateToLocalISODateTime as Rt,
36070
36278
  Filenames as S,
36071
- ColumnChartSpecModel as St,
36279
+ ColumnChartContext as St,
36072
36280
  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,
36281
+ useIntersectionObserver as Tt,
36282
+ Combobox as U,
36283
+ TabsTrigger as Ut,
36284
+ DatePicker as V,
36285
+ TabsContent as Vt,
36286
+ ComboboxItem as W,
36287
+ ChartErrorState as Wt,
36288
+ CommandSeparator as X,
36289
+ Kbd as Xt,
36290
+ CommandList as Y,
36291
+ RenderTextWithLinks as Yt,
36292
+ smartMatch as Z,
36293
+ HtmlOutput as Zt,
36086
36294
  ADD_PRINTING_CLASS as _,
36087
36295
  __tla,
36088
- NAMELESS_COLUMN_PREFIX as _t,
36296
+ TableRow as _t,
36089
36297
  DEFAULT_SLIDE_TYPE as a,
36090
- EyeOff as an,
36091
- Toggle as at,
36298
+ Funnel as an,
36299
+ slotsController as at,
36092
36300
  downloadHTMLAsImage as b,
36093
- renderCellValue as bt,
36301
+ inferFieldTypes as bt,
36094
36302
  Slide as c,
36095
- Download as cn,
36096
- PanelResizeHandle as ct,
36303
+ Ellipsis as cn,
36304
+ PanelGroup as ct,
36097
36305
  RadioGroupItem as d,
36098
- ChevronsRight as dn,
36099
- Table as dt,
36100
- $fae977aafc393c5c$export$588937bcd60ade55 as en,
36101
- contextAwarePanelOwner as et,
36306
+ ChevronsUpDown as dn,
36307
+ Provider$1 as dt,
36308
+ isRecord as en,
36309
+ contextAwarePanelOpen as et,
36102
36310
  JsonOutput as f,
36103
- ChevronsLeft as fn,
36104
- TableBody as ft,
36311
+ ChevronsRight as fn,
36312
+ Table as ft,
36105
36313
  InstallPackageButton as g,
36106
- TableRow as gt,
36314
+ ArrowDownWideNarrow as gn,
36315
+ TableHeader as gt,
36107
36316
  DataTable as h,
36108
- ArrowDownWideNarrow as hn,
36109
- TableHeader as ht,
36317
+ ChevronLeft as hn,
36318
+ TableHead as ht,
36110
36319
  DEFAULT_DECK_TRANSITION as i,
36111
- Funnel as in,
36112
- slotsController as it,
36320
+ GripHorizontal as in,
36321
+ SlotNames as it,
36113
36322
  getColumnCountForDisplay as j,
36114
- TOO_MANY_ROWS as jt,
36323
+ SELECT_COLUMN_ID as jt,
36115
36324
  prettifyRowColumnCount as k,
36116
- INDEX_COLUMN_NAME as kt,
36325
+ loadTableData as kt,
36117
36326
  Switch as l,
36118
- Code as ln,
36119
- Fill as lt,
36327
+ Download as ln,
36328
+ PanelResizeHandle as lt,
36120
36329
  OutputRenderer as m,
36121
- ChevronLeft as mn,
36122
- TableHead as mt,
36330
+ ChevronsDownUp as mn,
36331
+ TableCell as mt,
36123
36332
  marimoVersionAtom as n,
36124
- TextWrap as nn,
36125
- isCellAwareAtom as nt,
36333
+ $fae977aafc393c5c$export$6b862160d295c8e as nn,
36334
+ contextAwarePanelType as nt,
36126
36335
  SLIDE_TYPE_OPTIONS_BY_VALUE as o,
36127
- Expand as on,
36128
- Panel as ot,
36336
+ EyeOff as on,
36337
+ Toggle as ot,
36129
36338
  OutputArea as p,
36130
- ChevronsDownUp as pn,
36131
- TableCell as pt,
36132
- CommandItem as q,
36133
- ChartLoadingState as qt,
36339
+ ChevronsLeft as pn,
36340
+ TableBody as pt,
36341
+ CommandInput as q,
36342
+ LazyVegaEmbed as qt,
36134
36343
  showCodeInRunModeAtom as r,
36135
- GripHorizontal as rn,
36136
- SlotNames as rt,
36344
+ TextWrap as rn,
36345
+ isCellAwareAtom as rt,
36137
36346
  SlideSidebar as s,
36138
- Ellipsis as sn,
36139
- PanelGroup as st,
36347
+ Expand as sn,
36348
+ Panel as st,
36140
36349
  useNotebookCodeAvailable as t,
36141
- $fae977aafc393c5c$export$6b862160d295c8e as tn,
36142
- contextAwarePanelType as tt,
36350
+ $fae977aafc393c5c$export$588937bcd60ade55 as tn,
36351
+ contextAwarePanelOwner as tt,
36143
36352
  RadioGroup as u,
36144
- ChevronsUpDown as un,
36145
- Provider$1 as ut,
36353
+ Code as un,
36354
+ Fill as ut,
36146
36355
  downloadBlob as v,
36147
- generateColumns as vt,
36356
+ NAMELESS_COLUMN_PREFIX as vt,
36148
36357
  ColumnName as w,
36149
- useIntersectionObserver as wt,
36358
+ DelayMount as wt,
36150
36359
  Progress as x,
36151
- ColumnChartContext as xt,
36360
+ renderCellValue as xt,
36152
36361
  downloadByURL as y,
36153
- inferFieldTypes as yt,
36154
- CompactChipRow as z,
36155
- dateToLocalISODateTime as zt
36362
+ generateColumns as yt,
36363
+ useSelectList as z,
36364
+ dateToLocalISOTime as zt
36156
36365
  };