@marimo-team/islands 0.23.3-dev9 → 0.23.4-dev0

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 (42) hide show
  1. package/dist/{chat-ui-BLFhPclV.js → chat-ui-DEd_Ndal.js} +82 -82
  2. package/dist/{html-to-image-XYwXqg2E.js → html-to-image-DBosi5GK.js} +2240 -2214
  3. package/dist/main.js +2627 -2746
  4. package/dist/{process-output-BDVjDpbu.js → process-output-k-4WHpxz.js} +1 -1
  5. package/dist/{reveal-component-CrnLosc4.js → reveal-component-CFuofbBD.js} +827 -561
  6. package/dist/{slide-Dl7Rf496.js → slide-form-DgMI37ES.js} +1729 -894
  7. package/dist/style.css +1 -1
  8. package/package.json +1 -1
  9. package/src/components/editor/file-tree/renderers.tsx +1 -1
  10. package/src/components/editor/output/JsonOutput.tsx +187 -4
  11. package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +80 -0
  12. package/src/components/editor/output/__tests__/json-output.test.ts +185 -2
  13. package/src/components/editor/renderers/slides-layout/__tests__/compute-slide-cells.test.ts +150 -0
  14. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +298 -0
  15. package/src/components/editor/renderers/slides-layout/compute-slide-cells.ts +50 -0
  16. package/src/components/editor/renderers/slides-layout/plugin.tsx +54 -9
  17. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +30 -12
  18. package/src/components/editor/renderers/slides-layout/types.ts +31 -3
  19. package/src/components/editor/renderers/types.ts +2 -0
  20. package/src/components/slides/__tests__/compose-slides.test.ts +433 -0
  21. package/src/components/slides/compose-slides.ts +337 -0
  22. package/src/components/slides/minimap.tsx +133 -12
  23. package/src/components/slides/reveal-component.tsx +337 -74
  24. package/src/components/slides/reveal-slides.css +33 -1
  25. package/src/components/slides/slide-form.tsx +347 -0
  26. package/src/components/ui/radio-group.tsx +5 -3
  27. package/src/core/cells/types.ts +2 -0
  28. package/src/core/islands/__tests__/bridge.test.ts +116 -5
  29. package/src/core/islands/bridge.ts +5 -1
  30. package/src/core/layout/layout.ts +6 -2
  31. package/src/core/static/__tests__/export-context.test.ts +122 -0
  32. package/src/core/static/__tests__/static-state.test.ts +80 -0
  33. package/src/core/static/export-context.ts +84 -0
  34. package/src/core/static/static-state.ts +44 -6
  35. package/src/plugins/core/RenderHTML.tsx +23 -2
  36. package/src/plugins/core/__test__/RenderHTML.test.ts +86 -1
  37. package/src/plugins/core/__test__/trusted-url.test.ts +130 -18
  38. package/src/plugins/core/sanitize.ts +11 -5
  39. package/src/plugins/core/trusted-url.ts +32 -10
  40. package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +29 -1
  41. package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +34 -0
  42. package/src/plugins/impl/panel/__tests__/PanelPlugin.test.ts +35 -2
@@ -2,17 +2,17 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
- import { _ as Logger, c as Objects, g as cn, h as Events, p as composeRefs, r as cva, t as Button, v as Functions } from "./button-CA5pI2YF.js";
5
+ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs, p as composeRefs, r as cva, t as Button, v as Functions } from "./button-CA5pI2YF.js";
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-TGGAUEWp.js";
9
- import { $ as useCellNames, A as ChevronRightIcon, An as FileText, At as useChromeActions, C as AccordionContent, Cn as Wrench, Dn as LoaderCircle, Dt as goToCellLine, En as NotebookPen, Ft as PluralWord, G as getCellEditorView, I as base64ToUint8Array, In as Braces, Kt as useRequestClient, Ln as esm_default, Lt as DATA_TYPE_ICON, M as PinLeftIcon, Mt as adaptForLocalStorage, N as PinRightIcon, Nt as jotaiJsonStorage, O as CheckIcon, Q as useCellIds, R as extractBase64FromDataURL, Rn as import_lib, S as Accordion, T as AccordionTrigger, V as renderHTML, Wt as getRequestClient, Xt as extractAllTracebackInfo, Yt as elementContainsMarimoCellFile, Z as useCellActions, Zt as getTracebackInfo, an as HTMLCellId, bt as Checkbox, c as Popover, ct as viewStateAtom, d as PopoverTrigger, dn as jsonParseWithSpecialChar, en as filenameAtom, fn as jsonToMarkdown, g as getDatasourceContext, gt as displayCellName, hn as atomWithStorage, ht as getCellDomProps, in as CellOutputId, j as DotFilledIcon, l as PopoverClose$1, lt as outputIsLoading, m as useExpandedOutput, mt as DATA_CELL_ID, n as MarkdownRenderer, on as SCRATCH_CELL_ID, pn as jsonToTSV, pt as sanitizeHtml, q as notebookAtom, rt as AnsiUp, s as Spinner, st as useInstallAllowed, t as toPng, u as PopoverContent, vn as Close$1, w as AccordionItem, z as isDataURLString, __tla as __tla_0 } from "./html-to-image-XYwXqg2E.js";
10
- import { u as createLucideIcon } from "./dist-ESg7xyoD.js";
9
+ import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, Bn as import_lib, C as AccordionContent, Ft as jotaiJsonStorage, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mn as FileText, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, On as NotebookPen, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as Braces, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, V as renderHTML, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, kn as LoaderCircle, kt as goToCellLine, l as PopoverClose$1, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as MarkdownRenderer, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, s as Spinner, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zn as esm_default, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-DBosi5GK.js";
10
+ import { o as useSize, u as createLucideIcon } from "./dist-ESg7xyoD.js";
11
11
  import { i as createReducerAndAtoms, r as Badge } from "./useLifecycle-smVfjLNI.js";
12
12
  import { a as ListFilter, i as Table$1, o as ChartPie, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B3mCQMP3.js";
13
13
  import { t as Check } from "./check-CFM2mVDr.js";
14
- import { C as $a916eb452884faea$export$b7a616150fdb9f44, F as X, L as ChevronDown, N as useDirection, S as logNever, T as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, _ as menuItemVariants, b as menuSubTriggerVariants, c as SelectSeparator, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, n as capitalize, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuLabelVariants, x as assertNever, y as menuSeparatorVariants } from "./strings-B_FOH6eV.js";
15
- import { $t as Portal, G as marked, Gt as Anchor2, Jt as Content2$1, Kt as Arrow2, Qt as Label, Xt as Item2$1, Yt as Group, Zt as ItemIndicator, _ as DropdownMenuSub, a as NumberField, an as SubContent, b as DropdownMenuTrigger, c as prettyNumber, cn as Item, d as DropdownMenuContent, dn as Search, en as RadioGroup, g as DropdownMenuSeparator, h as DropdownMenuPortal, in as Sub, l as prettyScientificNumber, ln as Root$1, m as DropdownMenuLabel, nn as Root3, o as maxFractionalDigits, on as SubTrigger, p as DropdownMenuItem, pn as ChevronRight, qt as CheckboxItem, r as Input, rn as Separator, s as prettyEngineeringNumber, sn as createMenuScope, tn as RadioItem, u as DropdownMenu, un as createRovingFocusGroupScope, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-Drx1pguW.js";
14
+ import { C as $a916eb452884faea$export$b7a616150fdb9f44, F as X, L as ChevronDown, M as usePrevious$1, N as useDirection, S as logNever, T as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, _ as menuItemVariants, b as menuSubTriggerVariants, c as SelectSeparator, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, n as capitalize, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuLabelVariants, x as assertNever, y as menuSeparatorVariants } from "./strings-B_FOH6eV.js";
15
+ import { $t as Portal, G as marked, Gt as Anchor2, Jt as Content2$1, Kt as Arrow2, Qt as Label, Xt as Item2$2, Yt as Group, Zt as ItemIndicator, _ as DropdownMenuSub, a as NumberField, an as SubContent, b as DropdownMenuTrigger, c as prettyNumber, cn as Item, d as DropdownMenuContent, dn as Search, en as RadioGroup$2, fn as Circle, g as DropdownMenuSeparator, h as DropdownMenuPortal, in as Sub, l as prettyScientificNumber, ln as Root$1, m as DropdownMenuLabel, nn as Root3, o as maxFractionalDigits, on as SubTrigger, p as DropdownMenuItem, pn as ChevronRight, qt as CheckboxItem, r as Input, rn as Separator, s as prettyEngineeringNumber, sn as createMenuScope, tn as RadioItem, u as DropdownMenu, un as createRovingFocusGroupScope, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-Drx1pguW.js";
16
16
  import { a as millisecondsInMinute, c as asRemoteURL, d as isUrl, h as isWasm, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-yqOcZ_tY.js";
17
17
  import { n as clsx_default } from "./clsx-CyyyQ8Ue.js";
18
18
  import { t as require_react_dom } from "./react-dom-BWRJ_g_k.js";
@@ -34,7 +34,7 @@ import { n as formats } from "./vega-loader.browser-3_z8GoFC.js";
34
34
  import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BvW0-YWZ.js";
35
35
  import { t as useIframeCapabilities } from "./useIframeCapabilities-DbdLoEDm.js";
36
36
  import { t as useAsyncData } from "./useAsyncData-CKYzhCis.js";
37
- let CommandItem, TableHeader, usePrevious, Toggle, Download, TableBody, ChevronsDownUp, Table, ChevronsLeft, renderCellValue, SELECT_COLUMN_ID, loadTableAndRawData, ColumnChartContext, getMimeValues, TOO_MANY_ROWS, ColumnChartSpecModel, NAMELESS_COLUMN_PREFIX, generateColumns, TableCell, ChevronLeft, inferFieldTypes, CommandInput, DelayMount, slotsController, Ellipsis, Provider$1, ChevronsRight, loadTableData, getPageIndexForRow, INDEX_COLUMN_NAME, Command, filtersToFilterGroup, CommandEmpty, contextAwarePanelOpen, isStaticNotebook, DataTable, TabsList, isCellAwareAtom, Funnel, downloadBlob, ChartInfoState, Filenames, useOverflowDetection, CommandList, prettifyRowColumnCount, RenderTextWithLinks, PANEL_TYPES, getStaticVirtualFiles, ContextAwarePanelItem, EmotionCacheProvider, OutputRenderer, TabsContent, TableRow, TableHead, ArrowDownWideNarrow, downloadByURL, ChartLoadingState, useInternalStateWithSync, HtmlOutput, JsonOutput, Maps, InstallPackageButton, TabsTrigger, prettifyRowCount, Kbd, toFieldTypes, OutputArea, Tabs, ADD_PRINTING_CLASS, ChartErrorState, Slide, CommandSeparator, downloadHTMLAsImage, LazyVegaEmbed, contextAwarePanelOwner, TextWrap, Fill, ChevronsUpDown, SlotNames, Expand, contextAwarePanelType, GripHorizontal, useIntersectionObserver;
37
+ let toFieldTypes, Fill, Download, inferFieldTypes, contextAwarePanelOpen, isStaticNotebook, SlotNames, EyeOff, isCellAwareAtom, Funnel, TableHead, ChevronLeft, useIntersectionObserver, ColumnChartContext, TableHeader, ArrowDownWideNarrow, loadTableAndRawData, usePrevious, TableRow, Table, ChevronsRight, TableBody, ChevronsLeft, slotsController, Expand, TableCell, ChevronsDownUp, TOO_MANY_ROWS, NAMELESS_COLUMN_PREFIX, PANEL_TYPES, getStaticVirtualFiles, contextAwarePanelType, GripHorizontal, ColumnChartSpecModel, renderCellValue, DelayMount, INDEX_COLUMN_NAME, loadTableData, SELECT_COLUMN_ID, Filenames, useOverflowDetection, Slide, CommandItem, useInternalStateWithSync, HtmlOutput, JsonOutput, Maps, DataTable, TabsList, getMimeValues, InstallPackageButton, TabsTrigger, downloadHTMLAsImage, LazyVegaEmbed, downloadByURL, ChartLoadingState, SlideSidebar, CommandInput, Provider$1, ChevronsUpDown, Toggle, Ellipsis, OutputArea, Tabs, downloadBlob, ChartInfoState, DEFAULT_SLIDE_TYPE, Command, RadioGroup, CommandList, ADD_PRINTING_CLASS, ChartErrorState, getPageIndexForRow, SLIDE_TYPE_OPTIONS_BY_VALUE, CommandEmpty, RadioGroupItem, CommandSeparator, DEFAULT_DECK_TRANSITION, filtersToFilterGroup, OutputRenderer, TabsContent, prettifyRowColumnCount, RenderTextWithLinks, contextAwarePanelOwner, TextWrap, ContextAwarePanelItem, EmotionCacheProvider, prettifyRowCount, Kbd, generateColumns;
38
38
  let __tla = Promise.all([
39
39
  (() => {
40
40
  try {
@@ -44,7 +44,7 @@ let __tla = Promise.all([
44
44
  })()
45
45
  ]).then(async () => {
46
46
  var _a;
47
- let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, ExternalLink, FunnelPlus, FunnelX, ListFilterPlus, MessageCircle, Minus, Package, PanelRight, PinOff, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, TextAlignStart, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
47
+ let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie, ExternalLink, FunnelPlus, FunnelX, LayoutTemplate, ListFilterPlus, MessageCircle, Minus, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, TextAlignStart, 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
48
  ArrowDownWideNarrow = createLucideIcon("arrow-down-wide-narrow", [
49
49
  [
50
50
  "path",
@@ -335,6 +335,50 @@ let __tla = Promise.all([
335
335
  }
336
336
  ]
337
337
  ]);
338
+ Cookie = createLucideIcon("cookie", [
339
+ [
340
+ "path",
341
+ {
342
+ d: "M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",
343
+ key: "laymnq"
344
+ }
345
+ ],
346
+ [
347
+ "path",
348
+ {
349
+ d: "M8.5 8.5v.01",
350
+ key: "ue8clq"
351
+ }
352
+ ],
353
+ [
354
+ "path",
355
+ {
356
+ d: "M16 15.5v.01",
357
+ key: "14dtrp"
358
+ }
359
+ ],
360
+ [
361
+ "path",
362
+ {
363
+ d: "M12 12v.01",
364
+ key: "u5ubse"
365
+ }
366
+ ],
367
+ [
368
+ "path",
369
+ {
370
+ d: "M11 17v.01",
371
+ key: "1hyl5a"
372
+ }
373
+ ],
374
+ [
375
+ "path",
376
+ {
377
+ d: "M7 14v.01",
378
+ key: "uct60s"
379
+ }
380
+ ]
381
+ ]);
338
382
  Download = createLucideIcon("download", [
339
383
  [
340
384
  "path",
@@ -468,6 +512,36 @@ let __tla = Promise.all([
468
512
  }
469
513
  ]
470
514
  ]);
515
+ EyeOff = createLucideIcon("eye-off", [
516
+ [
517
+ "path",
518
+ {
519
+ d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
520
+ key: "ct8e1f"
521
+ }
522
+ ],
523
+ [
524
+ "path",
525
+ {
526
+ d: "M14.084 14.158a3 3 0 0 1-4.242-4.242",
527
+ key: "151rxh"
528
+ }
529
+ ],
530
+ [
531
+ "path",
532
+ {
533
+ d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
534
+ key: "13bj9a"
535
+ }
536
+ ],
537
+ [
538
+ "path",
539
+ {
540
+ d: "m2 2 20 20",
541
+ key: "1ooewy"
542
+ }
543
+ ]
544
+ ]);
471
545
  FunnelPlus = createLucideIcon("funnel-plus", [
472
546
  [
473
547
  "path",
@@ -579,6 +653,41 @@ let __tla = Promise.all([
579
653
  }
580
654
  ]
581
655
  ]);
656
+ LayoutTemplate = createLucideIcon("layout-template", [
657
+ [
658
+ "rect",
659
+ {
660
+ width: "18",
661
+ height: "7",
662
+ x: "3",
663
+ y: "3",
664
+ rx: "1",
665
+ key: "f1a2em"
666
+ }
667
+ ],
668
+ [
669
+ "rect",
670
+ {
671
+ width: "9",
672
+ height: "7",
673
+ x: "3",
674
+ y: "14",
675
+ rx: "1",
676
+ key: "jqznyg"
677
+ }
678
+ ],
679
+ [
680
+ "rect",
681
+ {
682
+ width: "5",
683
+ height: "7",
684
+ x: "16",
685
+ y: "14",
686
+ rx: "1",
687
+ key: "q5h2i8"
688
+ }
689
+ ]
690
+ ]);
582
691
  ListFilterPlus = createLucideIcon("list-filter-plus", [
583
692
  [
584
693
  "path",
@@ -664,6 +773,60 @@ let __tla = Promise.all([
664
773
  }
665
774
  ]
666
775
  ]);
776
+ PanelRightClose = createLucideIcon("panel-right-close", [
777
+ [
778
+ "rect",
779
+ {
780
+ width: "18",
781
+ height: "18",
782
+ x: "3",
783
+ y: "3",
784
+ rx: "2",
785
+ key: "afitv7"
786
+ }
787
+ ],
788
+ [
789
+ "path",
790
+ {
791
+ d: "M15 3v18",
792
+ key: "14nvp0"
793
+ }
794
+ ],
795
+ [
796
+ "path",
797
+ {
798
+ d: "m8 9 3 3-3 3",
799
+ key: "12hl5m"
800
+ }
801
+ ]
802
+ ]);
803
+ PanelRightOpen = createLucideIcon("panel-right-open", [
804
+ [
805
+ "rect",
806
+ {
807
+ width: "18",
808
+ height: "18",
809
+ x: "3",
810
+ y: "3",
811
+ rx: "2",
812
+ key: "afitv7"
813
+ }
814
+ ],
815
+ [
816
+ "path",
817
+ {
818
+ d: "M15 3v18",
819
+ key: "14nvp0"
820
+ }
821
+ ],
822
+ [
823
+ "path",
824
+ {
825
+ d: "m10 15-3-3 3-3",
826
+ key: "1pgupc"
827
+ }
828
+ ]
829
+ ]);
667
830
  PanelRight = createLucideIcon("panel-right", [
668
831
  [
669
832
  "rect",
@@ -714,6 +877,26 @@ let __tla = Promise.all([
714
877
  }
715
878
  ]
716
879
  ]);
880
+ Rows2 = createLucideIcon("rows-2", [
881
+ [
882
+ "rect",
883
+ {
884
+ width: "18",
885
+ height: "18",
886
+ x: "3",
887
+ y: "3",
888
+ rx: "2",
889
+ key: "afitv7"
890
+ }
891
+ ],
892
+ [
893
+ "path",
894
+ {
895
+ d: "M3 12h18",
896
+ key: "1i2n21"
897
+ }
898
+ ]
899
+ ]);
717
900
  Sparkles = createLucideIcon("sparkles", [
718
901
  [
719
902
  "path",
@@ -900,9 +1083,9 @@ let __tla = Promise.all([
900
1083
  value: n2,
901
1084
  getSnapshot: t2
902
1085
  }
903
- }), d2 = i2[0].inst, h = i2[1];
1086
+ }), d2 = i2[0].inst, h2 = i2[1];
904
1087
  return s(function() {
905
- d2.value = n2, d2.getSnapshot = t2, f(d2) && h({
1088
+ d2.value = n2, d2.getSnapshot = t2, f(d2) && h2({
906
1089
  inst: d2
907
1090
  });
908
1091
  }, [
@@ -910,10 +1093,10 @@ let __tla = Promise.all([
910
1093
  n2,
911
1094
  t2
912
1095
  ]), o(function() {
913
- return f(d2) && h({
1096
+ return f(d2) && h2({
914
1097
  inst: d2
915
1098
  }), e2(function() {
916
- f(d2) && h({
1099
+ f(d2) && h2({
917
1100
  inst: d2
918
1101
  });
919
1102
  });
@@ -931,10 +1114,10 @@ let __tla = Promise.all([
931
1114
  return true;
932
1115
  }
933
1116
  }
934
- function _(e2, t2) {
1117
+ function h(e2, t2) {
935
1118
  return t2();
936
1119
  }
937
- var v = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? _ : d;
1120
+ var v = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? h : d;
938
1121
  e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? v : t.useSyncExternalStore;
939
1122
  }));
940
1123
  require_shim = __commonJSMin(((e, t) => {
@@ -1074,15 +1257,15 @@ let __tla = Promise.all([
1074
1257
  });
1075
1258
  });
1076
1259
  ContextMenuLabel$1.displayName = LABEL_NAME;
1077
- var ITEM_NAME = "ContextMenuItem", ContextMenuItem$1 = import_react.forwardRef((e, t) => {
1260
+ var ITEM_NAME$1 = "ContextMenuItem", ContextMenuItem$1 = import_react.forwardRef((e, t) => {
1078
1261
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1079
- return (0, import_jsx_runtime.jsx)(Item2$1, {
1262
+ return (0, import_jsx_runtime.jsx)(Item2$2, {
1080
1263
  ...a,
1081
1264
  ...i,
1082
1265
  ref: t
1083
1266
  });
1084
1267
  });
1085
- ContextMenuItem$1.displayName = ITEM_NAME;
1268
+ ContextMenuItem$1.displayName = ITEM_NAME$1;
1086
1269
  var CHECKBOX_ITEM_NAME = "ContextMenuCheckboxItem", ContextMenuCheckboxItem$1 = import_react.forwardRef((e, t) => {
1087
1270
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1088
1271
  return (0, import_jsx_runtime.jsx)(CheckboxItem, {
@@ -1092,15 +1275,15 @@ let __tla = Promise.all([
1092
1275
  });
1093
1276
  });
1094
1277
  ContextMenuCheckboxItem$1.displayName = CHECKBOX_ITEM_NAME;
1095
- var RADIO_GROUP_NAME = "ContextMenuRadioGroup", ContextMenuRadioGroup$1 = import_react.forwardRef((e, t) => {
1278
+ var RADIO_GROUP_NAME$1 = "ContextMenuRadioGroup", ContextMenuRadioGroup$1 = import_react.forwardRef((e, t) => {
1096
1279
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1097
- return (0, import_jsx_runtime.jsx)(RadioGroup, {
1280
+ return (0, import_jsx_runtime.jsx)(RadioGroup$2, {
1098
1281
  ...a,
1099
1282
  ...i,
1100
1283
  ref: t
1101
1284
  });
1102
1285
  });
1103
- ContextMenuRadioGroup$1.displayName = RADIO_GROUP_NAME;
1286
+ ContextMenuRadioGroup$1.displayName = RADIO_GROUP_NAME$1;
1104
1287
  var RADIO_ITEM_NAME = "ContextMenuRadioItem", ContextMenuRadioItem$1 = import_react.forwardRef((e, t) => {
1105
1288
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1106
1289
  return (0, import_jsx_runtime.jsx)(RadioItem, {
@@ -1110,7 +1293,7 @@ let __tla = Promise.all([
1110
1293
  });
1111
1294
  });
1112
1295
  ContextMenuRadioItem$1.displayName = RADIO_ITEM_NAME;
1113
- var INDICATOR_NAME = "ContextMenuItemIndicator", ContextMenuItemIndicator = import_react.forwardRef((e, t) => {
1296
+ var INDICATOR_NAME$1 = "ContextMenuItemIndicator", ContextMenuItemIndicator = import_react.forwardRef((e, t) => {
1114
1297
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1115
1298
  return (0, import_jsx_runtime.jsx)(ItemIndicator, {
1116
1299
  ...a,
@@ -1118,7 +1301,7 @@ let __tla = Promise.all([
1118
1301
  ref: t
1119
1302
  });
1120
1303
  });
1121
- ContextMenuItemIndicator.displayName = INDICATOR_NAME;
1304
+ ContextMenuItemIndicator.displayName = INDICATOR_NAME$1;
1122
1305
  var SEPARATOR_NAME = "ContextMenuSeparator", ContextMenuSeparator$1 = import_react.forwardRef((e, t) => {
1123
1306
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1124
1307
  return (0, import_jsx_runtime.jsx)(Separator, {
@@ -1181,7 +1364,179 @@ let __tla = Promise.all([
1181
1364
  function whenTouchOrPen(e) {
1182
1365
  return (t) => t.pointerType === "mouse" ? void 0 : e(t);
1183
1366
  }
1184
- var Root2$1 = ContextMenu$1, Trigger$1 = ContextMenuTrigger$1, Portal2 = ContextMenuPortal$1, Content2 = ContextMenuContent$1, Label2 = ContextMenuLabel$1, Item2 = ContextMenuItem$1, CheckboxItem2 = ContextMenuCheckboxItem$1, RadioItem2 = ContextMenuRadioItem$1, ItemIndicator2 = ContextMenuItemIndicator, Separator2 = ContextMenuSeparator$1, SubTrigger2 = ContextMenuSubTrigger$1, SubContent2 = ContextMenuSubContent$1, TABS_NAME = "Tabs", [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [
1367
+ var Root2$2 = ContextMenu$1, Trigger$1 = ContextMenuTrigger$1, Portal2 = ContextMenuPortal$1, Content2 = ContextMenuContent$1, Label2 = ContextMenuLabel$1, Item2$1 = ContextMenuItem$1, CheckboxItem2 = ContextMenuCheckboxItem$1, RadioItem2 = ContextMenuRadioItem$1, ItemIndicator2 = ContextMenuItemIndicator, Separator2 = ContextMenuSeparator$1, SubTrigger2 = ContextMenuSubTrigger$1, SubContent2 = ContextMenuSubContent$1, RADIO_NAME = "Radio", [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME), [RadioProvider, useRadioContext] = createRadioContext(RADIO_NAME), Radio = import_react.forwardRef((e, t) => {
1368
+ let { __scopeRadio: n, name: i, checked: a = false, required: o, disabled: c, value: d = "on", onCheck: f, form: h, ..._ } = e, [v, y] = import_react.useState(null), S = useComposedRefs(t, (e2) => y(e2)), w = import_react.useRef(false), E = v ? h || !!v.closest("form") : true;
1369
+ return (0, import_jsx_runtime.jsxs)(RadioProvider, {
1370
+ scope: n,
1371
+ checked: a,
1372
+ disabled: c,
1373
+ children: [
1374
+ (0, import_jsx_runtime.jsx)(Primitive$1.button, {
1375
+ type: "button",
1376
+ role: "radio",
1377
+ "aria-checked": a,
1378
+ "data-state": getState(a),
1379
+ "data-disabled": c ? "" : void 0,
1380
+ disabled: c,
1381
+ value: d,
1382
+ ..._,
1383
+ ref: S,
1384
+ onClick: composeEventHandlers(e.onClick, (e2) => {
1385
+ a || (f == null ? void 0 : f()), E && (w.current = e2.isPropagationStopped(), w.current || e2.stopPropagation());
1386
+ })
1387
+ }),
1388
+ E && (0, import_jsx_runtime.jsx)(RadioBubbleInput, {
1389
+ control: v,
1390
+ bubbles: !w.current,
1391
+ name: i,
1392
+ value: d,
1393
+ checked: a,
1394
+ required: o,
1395
+ disabled: c,
1396
+ form: h,
1397
+ style: {
1398
+ transform: "translateX(-100%)"
1399
+ }
1400
+ })
1401
+ ]
1402
+ });
1403
+ });
1404
+ Radio.displayName = RADIO_NAME;
1405
+ var INDICATOR_NAME = "RadioIndicator", RadioIndicator = import_react.forwardRef((e, t) => {
1406
+ let { __scopeRadio: n, forceMount: i, ...a } = e, o = useRadioContext(INDICATOR_NAME, n);
1407
+ return (0, import_jsx_runtime.jsx)(Presence, {
1408
+ present: i || o.checked,
1409
+ children: (0, import_jsx_runtime.jsx)(Primitive$1.span, {
1410
+ "data-state": getState(o.checked),
1411
+ "data-disabled": o.disabled ? "" : void 0,
1412
+ ...a,
1413
+ ref: t
1414
+ })
1415
+ });
1416
+ });
1417
+ RadioIndicator.displayName = INDICATOR_NAME;
1418
+ var BUBBLE_INPUT_NAME = "RadioBubbleInput", RadioBubbleInput = import_react.forwardRef(({ __scopeRadio: e, control: t, checked: n, bubbles: i = true, ...a }, o) => {
1419
+ let c = import_react.useRef(null), d = useComposedRefs(c, o), f = usePrevious$1(n), h = useSize(t);
1420
+ return import_react.useEffect(() => {
1421
+ let e2 = c.current;
1422
+ if (!e2) return;
1423
+ let t2 = window.HTMLInputElement.prototype, a2 = Object.getOwnPropertyDescriptor(t2, "checked").set;
1424
+ if (f !== n && a2) {
1425
+ let t3 = new Event("click", {
1426
+ bubbles: i
1427
+ });
1428
+ a2.call(e2, n), e2.dispatchEvent(t3);
1429
+ }
1430
+ }, [
1431
+ f,
1432
+ n,
1433
+ i
1434
+ ]), (0, import_jsx_runtime.jsx)(Primitive$1.input, {
1435
+ type: "radio",
1436
+ "aria-hidden": true,
1437
+ defaultChecked: n,
1438
+ ...a,
1439
+ tabIndex: -1,
1440
+ ref: d,
1441
+ style: {
1442
+ ...a.style,
1443
+ ...h,
1444
+ position: "absolute",
1445
+ pointerEvents: "none",
1446
+ opacity: 0,
1447
+ margin: 0
1448
+ }
1449
+ });
1450
+ });
1451
+ RadioBubbleInput.displayName = BUBBLE_INPUT_NAME;
1452
+ function getState(e) {
1453
+ return e ? "checked" : "unchecked";
1454
+ }
1455
+ var ARROW_KEYS = [
1456
+ "ArrowUp",
1457
+ "ArrowDown",
1458
+ "ArrowLeft",
1459
+ "ArrowRight"
1460
+ ], RADIO_GROUP_NAME = "RadioGroup", [createRadioGroupContext, createRadioGroupScope] = createContextScope(RADIO_GROUP_NAME, [
1461
+ createRovingFocusGroupScope,
1462
+ createRadioScope
1463
+ ]), useRovingFocusGroupScope$1 = createRovingFocusGroupScope(), useRadioScope = createRadioScope(), [RadioGroupProvider, useRadioGroupContext] = createRadioGroupContext(RADIO_GROUP_NAME), RadioGroup$1 = import_react.forwardRef((e, t) => {
1464
+ let { __scopeRadioGroup: n, name: i, defaultValue: a, value: o, required: s = false, disabled: c = false, orientation: d, dir: f, loop: h = true, onValueChange: _, ...v } = e, y = useRovingFocusGroupScope$1(n), S = useDirection(f), [w, E] = useControllableState({
1465
+ prop: o,
1466
+ defaultProp: a ?? null,
1467
+ onChange: _,
1468
+ caller: RADIO_GROUP_NAME
1469
+ });
1470
+ return (0, import_jsx_runtime.jsx)(RadioGroupProvider, {
1471
+ scope: n,
1472
+ name: i,
1473
+ required: s,
1474
+ disabled: c,
1475
+ value: w,
1476
+ onValueChange: E,
1477
+ children: (0, import_jsx_runtime.jsx)(Root$1, {
1478
+ asChild: true,
1479
+ ...y,
1480
+ orientation: d,
1481
+ dir: S,
1482
+ loop: h,
1483
+ children: (0, import_jsx_runtime.jsx)(Primitive$1.div, {
1484
+ role: "radiogroup",
1485
+ "aria-required": s,
1486
+ "aria-orientation": d,
1487
+ "data-disabled": c ? "" : void 0,
1488
+ dir: S,
1489
+ ...v,
1490
+ ref: t
1491
+ })
1492
+ })
1493
+ });
1494
+ });
1495
+ RadioGroup$1.displayName = RADIO_GROUP_NAME;
1496
+ var ITEM_NAME = "RadioGroupItem", RadioGroupItem$1 = import_react.forwardRef((e, t) => {
1497
+ let { __scopeRadioGroup: n, disabled: i, ...a } = e, o = useRadioGroupContext(ITEM_NAME, n), c = o.disabled || i, d = useRovingFocusGroupScope$1(n), f = useRadioScope(n), h = import_react.useRef(null), _ = useComposedRefs(t, h), v = o.value === a.value, y = import_react.useRef(false);
1498
+ return import_react.useEffect(() => {
1499
+ let e2 = (e3) => {
1500
+ ARROW_KEYS.includes(e3.key) && (y.current = true);
1501
+ }, t2 = () => y.current = false;
1502
+ return document.addEventListener("keydown", e2), document.addEventListener("keyup", t2), () => {
1503
+ document.removeEventListener("keydown", e2), document.removeEventListener("keyup", t2);
1504
+ };
1505
+ }, []), (0, import_jsx_runtime.jsx)(Item, {
1506
+ asChild: true,
1507
+ ...d,
1508
+ focusable: !c,
1509
+ active: v,
1510
+ children: (0, import_jsx_runtime.jsx)(Radio, {
1511
+ disabled: c,
1512
+ required: o.required,
1513
+ checked: v,
1514
+ ...f,
1515
+ ...a,
1516
+ name: o.name,
1517
+ ref: _,
1518
+ onCheck: () => o.onValueChange(a.value),
1519
+ onKeyDown: composeEventHandlers((e2) => {
1520
+ e2.key === "Enter" && e2.preventDefault();
1521
+ }),
1522
+ onFocus: composeEventHandlers(a.onFocus, () => {
1523
+ var _a2;
1524
+ y.current && ((_a2 = h.current) == null ? void 0 : _a2.click());
1525
+ })
1526
+ })
1527
+ });
1528
+ });
1529
+ RadioGroupItem$1.displayName = ITEM_NAME;
1530
+ var INDICATOR_NAME2 = "RadioGroupIndicator", RadioGroupIndicator = import_react.forwardRef((e, t) => {
1531
+ let { __scopeRadioGroup: n, ...i } = e;
1532
+ return (0, import_jsx_runtime.jsx)(RadioIndicator, {
1533
+ ...useRadioScope(n),
1534
+ ...i,
1535
+ ref: t
1536
+ });
1537
+ });
1538
+ RadioGroupIndicator.displayName = INDICATOR_NAME2;
1539
+ var Root2$1 = RadioGroup$1, Item2 = RadioGroupItem$1, Indicator = RadioGroupIndicator, TABS_NAME = "Tabs", [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [
1185
1540
  createRovingFocusGroupScope
1186
1541
  ]), useRovingFocusGroupScope = createRovingFocusGroupScope(), [TabsProvider, useTabsContext] = createTabsContext(TABS_NAME), Tabs$1 = import_react.forwardRef((e, t) => {
1187
1542
  let { __scopeTabs: n, value: i, onValueChange: a, defaultValue: o, orientation: s = "horizontal", dir: c, activationMode: d = "automatic", ...f } = e, h = useDirection(c), [_, v] = useControllableState({
@@ -4238,11 +4593,26 @@ let __tla = Promise.all([
4238
4593
  function isMatch(e, t, n) {
4239
4594
  return isValid(parse$1(e, t, /* @__PURE__ */ new Date(), n));
4240
4595
  }
4596
+ function isStringToStringRecord(e) {
4597
+ if (typeof e != "object" || !e || Array.isArray(e)) return false;
4598
+ for (let t of Object.values(e)) if (typeof t != "string") return false;
4599
+ return true;
4600
+ }
4601
+ function isMarimoStaticState(e) {
4602
+ if (typeof e != "object" || !e || Array.isArray(e)) return false;
4603
+ let t = e;
4604
+ return !(!isStringToStringRecord(t.files) || t.modelNotifications !== void 0 && !Array.isArray(t.modelNotifications));
4605
+ }
4606
+ function getMarimoStaticState() {
4607
+ let e = window == null ? void 0 : window.__MARIMO_STATIC__;
4608
+ return isMarimoStaticState(e) ? e : void 0;
4609
+ }
4241
4610
  isStaticNotebook = function() {
4242
- return (window == null ? void 0 : window.__MARIMO_STATIC__) !== void 0;
4611
+ return getMarimoStaticState() !== void 0;
4243
4612
  };
4244
4613
  getStaticVirtualFiles = function() {
4245
- return invariant(window.__MARIMO_STATIC__ !== void 0, "Not a static notebook"), window.__MARIMO_STATIC__.files;
4614
+ let e = getMarimoStaticState();
4615
+ return invariant(e !== void 0, "Not a static notebook"), e.files;
4246
4616
  };
4247
4617
  var isDevelopment$3 = false;
4248
4618
  function sheetForTag(e) {
@@ -5188,9 +5558,9 @@ let __tla = Promise.all([
5188
5558
  t,
5189
5559
  i.name
5190
5560
  ]), null;
5191
- }), import_compiler_runtime$45 = require_compiler_runtime();
5561
+ }), import_compiler_runtime$47 = require_compiler_runtime();
5192
5562
  EmotionCacheProvider = (e) => {
5193
- let t = (0, import_compiler_runtime$45.c)(6), { container: n, children: i } = e, a;
5563
+ let t = (0, import_compiler_runtime$47.c)(6), { container: n, children: i } = e, a;
5194
5564
  bb0: {
5195
5565
  if (!n) {
5196
5566
  let e3;
@@ -7103,33 +7473,33 @@ try {
7103
7473
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
7104
7474
  function y(e2) {
7105
7475
  var _a2, _b, _c, _d;
7106
- 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, oj = import_react.useRef(false), q = useTheme$2(), J = import_react.useContext(f), sj = !!J && !I, Q = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7476
+ 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), vM = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7107
7477
  h2
7108
- ]), cj = Q[t], $ = cj || Q, { colorSchemes: lj = _, components: uj = v, cssVarPrefix: dj } = $, fj = Object.keys(lj).filter((e3) => !!lj[e3]).join(","), pj = import_react.useMemo(() => fj.split(","), [
7109
- fj
7110
- ]), mj = typeof s == "string" ? s : s.light, hj = typeof s == "string" ? s : s.dark, { mode: gj, setMode: _j, systemMode: vj, lightColorScheme: yj, darkColorScheme: bj, colorScheme: xj, setColorScheme: Sj } = useCurrentColorScheme({
7111
- supportedColorSchemes: pj,
7112
- defaultLightColorScheme: mj,
7113
- defaultDarkColorScheme: hj,
7478
+ ]), yM = $[t], bM = yM || $, { colorSchemes: xM = _, components: SM = v, cssVarPrefix: CM } = bM, wM = Object.keys(xM).filter((e3) => !!xM[e3]).join(","), TM = import_react.useMemo(() => wM.split(","), [
7479
+ wM
7480
+ ]), EM = typeof s == "string" ? s : s.light, DM = typeof s == "string" ? s : s.dark, { mode: OM, setMode: kM, systemMode: AM, lightColorScheme: jM, darkColorScheme: MM, colorScheme: NM, setColorScheme: PM } = useCurrentColorScheme({
7481
+ supportedColorSchemes: TM,
7482
+ defaultLightColorScheme: EM,
7483
+ defaultDarkColorScheme: DM,
7114
7484
  modeStorageKey: y2,
7115
7485
  colorSchemeStorageKey: S2,
7116
- defaultMode: lj[mj] && lj[hj] ? U : ((_b = (_a2 = lj[$.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = $.palette) == null ? void 0 : _c.mode),
7486
+ defaultMode: xM[EM] && xM[DM] ? U : ((_b = (_a2 = xM[bM.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = bM.palette) == null ? void 0 : _c.mode),
7117
7487
  storageManager: E,
7118
7488
  storageWindow: O,
7119
7489
  noSsr: K
7120
- }), Cj = gj, wj = xj;
7121
- sj && (Cj = J.mode, wj = J.colorScheme);
7122
- let Tj = import_react.useMemo(() => {
7490
+ }), FM = OM, IM = NM;
7491
+ vM && (FM = Q.mode, IM = Q.colorScheme);
7492
+ let LM = import_react.useMemo(() => {
7123
7493
  var _a3;
7124
- let e3 = wj || $.defaultColorScheme, t2 = ((_a3 = $.generateThemeVars) == null ? void 0 : _a3.call($)) || $.vars, n2 = {
7125
- ...$,
7126
- components: uj,
7127
- colorSchemes: lj,
7128
- cssVarPrefix: dj,
7494
+ let e3 = IM || bM.defaultColorScheme, t2 = ((_a3 = bM.generateThemeVars) == null ? void 0 : _a3.call(bM)) || bM.vars, n2 = {
7495
+ ...bM,
7496
+ components: SM,
7497
+ colorSchemes: xM,
7498
+ cssVarPrefix: CM,
7129
7499
  vars: t2
7130
7500
  };
7131
7501
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
7132
- let t3 = lj[e3];
7502
+ let t3 = xM[e3];
7133
7503
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
7134
7504
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
7135
7505
  ...n2[e4],
@@ -7139,34 +7509,34 @@ try {
7139
7509
  }
7140
7510
  return c ? c(n2) : n2;
7141
7511
  }, [
7142
- $,
7143
- wj,
7144
- uj,
7145
- lj,
7146
- dj
7147
- ]), Ej = $.colorSchemeSelector;
7512
+ bM,
7513
+ IM,
7514
+ SM,
7515
+ xM,
7516
+ CM
7517
+ ]), RM = bM.colorSchemeSelector;
7148
7518
  useEnhancedEffect_default(() => {
7149
- if (wj && M && Ej && Ej !== "media") {
7150
- let e3 = Ej, t2 = Ej;
7151
- 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(...pj.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", wj));
7519
+ if (IM && M && RM && RM !== "media") {
7520
+ let e3 = RM, t2 = RM;
7521
+ 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(...TM.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", IM));
7152
7522
  else {
7153
- let e4 = t2.replace("%s", wj).match(/\[([^\]]+)\]/);
7523
+ let e4 = t2.replace("%s", IM).match(/\[([^\]]+)\]/);
7154
7524
  if (e4) {
7155
7525
  let [t3, n2] = e4[1].split("=");
7156
- n2 || pj.forEach((e5) => {
7157
- M.removeAttribute(t3.replace(wj, e5));
7526
+ n2 || TM.forEach((e5) => {
7527
+ M.removeAttribute(t3.replace(IM, e5));
7158
7528
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
7159
- } else M.setAttribute(t2, wj);
7529
+ } else M.setAttribute(t2, IM);
7160
7530
  }
7161
7531
  }
7162
7532
  }, [
7163
- wj,
7164
- Ej,
7533
+ IM,
7534
+ RM,
7165
7535
  M,
7166
- pj
7536
+ TM
7167
7537
  ]), import_react.useEffect(() => {
7168
7538
  let e3;
7169
- if (w2 && oj.current && A) {
7539
+ if (w2 && q.current && A) {
7170
7540
  let t2 = A.createElement("style");
7171
7541
  t2.appendChild(A.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), A.head.appendChild(t2), window.getComputedStyle(A.body), e3 = setTimeout(() => {
7172
7542
  A.head.removeChild(t2);
@@ -7176,48 +7546,48 @@ try {
7176
7546
  clearTimeout(e3);
7177
7547
  };
7178
7548
  }, [
7179
- wj,
7549
+ IM,
7180
7550
  w2,
7181
7551
  A
7182
- ]), import_react.useEffect(() => (oj.current = true, () => {
7183
- oj.current = false;
7552
+ ]), import_react.useEffect(() => (q.current = true, () => {
7553
+ q.current = false;
7184
7554
  }), []);
7185
- let Dj = import_react.useMemo(() => ({
7186
- allColorSchemes: pj,
7187
- colorScheme: wj,
7188
- darkColorScheme: bj,
7189
- lightColorScheme: yj,
7190
- mode: Cj,
7191
- setColorScheme: Sj,
7192
- setMode: _j,
7193
- systemMode: vj
7555
+ let zM = import_react.useMemo(() => ({
7556
+ allColorSchemes: TM,
7557
+ colorScheme: IM,
7558
+ darkColorScheme: MM,
7559
+ lightColorScheme: jM,
7560
+ mode: FM,
7561
+ setColorScheme: PM,
7562
+ setMode: kM,
7563
+ systemMode: AM
7194
7564
  }), [
7195
- pj,
7196
- wj,
7197
- bj,
7198
- yj,
7199
- Cj,
7200
- Sj,
7201
- _j,
7202
- vj,
7203
- Tj.colorSchemeSelector
7204
- ]), Oj = true;
7205
- (z || $.cssVariables === false || sj && (q == null ? void 0 : q.cssVarPrefix) === dj) && (Oj = false);
7206
- let kj = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7565
+ TM,
7566
+ IM,
7567
+ MM,
7568
+ jM,
7569
+ FM,
7570
+ PM,
7571
+ kM,
7572
+ AM,
7573
+ LM.colorSchemeSelector
7574
+ ]), BM = true;
7575
+ (z || bM.cssVariables === false || vM && (J == null ? void 0 : J.cssVarPrefix) === CM) && (BM = false);
7576
+ let VM = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7207
7577
  children: [
7208
7578
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
7209
- themeId: cj ? t : void 0,
7210
- theme: Tj,
7579
+ themeId: yM ? t : void 0,
7580
+ theme: LM,
7211
7581
  children: d2
7212
7582
  }),
7213
- Oj && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7214
- styles: ((_d = Tj.generateStyleSheets) == null ? void 0 : _d.call(Tj)) || []
7583
+ BM && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7584
+ styles: ((_d = LM.generateStyleSheets) == null ? void 0 : _d.call(LM)) || []
7215
7585
  })
7216
7586
  ]
7217
7587
  });
7218
- return sj ? kj : (0, import_jsx_runtime.jsx)(f.Provider, {
7219
- value: Dj,
7220
- children: kj
7588
+ return vM ? VM : (0, import_jsx_runtime.jsx)(f.Provider, {
7589
+ value: zM,
7590
+ children: VM
7221
7591
  });
7222
7592
  }
7223
7593
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -7963,10 +8333,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
7963
8333
  disableCssColorScheme: a,
7964
8334
  shouldSkipGeneratingVar: s,
7965
8335
  getSelector: createGetSelector_default(I)
7966
- }, { vars: U, generateThemeVars: K, generateStyleSheets: oj } = prepareCssVars_default(I, z);
8336
+ }, { vars: U, generateThemeVars: K, generateStyleSheets: q } = prepareCssVars_default(I, z);
7967
8337
  return I.vars = U, Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([e2, t2]) => {
7968
8338
  I[e2] = t2;
7969
- }), I.generateThemeVars = K, I.generateStyleSheets = oj, I.generateSpacing = function() {
8339
+ }), I.generateThemeVars = K, I.generateStyleSheets = q, I.generateSpacing = function() {
7970
8340
  return createSpacing(f.spacing, createUnarySpacing(this));
7971
8341
  }, I.getColorSchemeSelector = createGetColorSchemeSelector(c), I.spacing = I.generateSpacing(), I.shouldSkipGeneratingVar = s, I.unstable_sxConfig = {
7972
8342
  ...defaultSxConfig_default,
@@ -8717,10 +9087,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
8717
9087
  let n = useDefaultProps({
8718
9088
  props: e,
8719
9089
  name: "MuiInputBase"
8720
- }), { "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: oj, onBlur: q, onChange: J, onClick: sj, onFocus: Q, onKeyDown: cj, onKeyUp: $, placeholder: lj, readOnly: uj, renderSuffix: dj, rows: fj, size: pj, slotProps: mj = {}, slots: hj = {}, startAdornment: gj, type: _j = "text", value: vj, ...yj } = n, bj = A.value == null ? vj : A.value, { current: xj } = import_react.useRef(bj != null), Sj = import_react.useRef(), Cj = import_react.useCallback((e2) => {
8721
- }, []), wj = useForkRef_default(Sj, M, A.ref, Cj), [Tj, Ej] = import_react.useState(false), Dj = useFormControl(), Oj = formControlState({
9090
+ }), { "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: vM, onFocus: $, onKeyDown: yM, onKeyUp: bM, placeholder: xM, readOnly: SM, renderSuffix: CM, rows: wM, size: TM, slotProps: EM = {}, slots: DM = {}, startAdornment: OM, type: kM = "text", value: AM, ...jM } = n, MM = A.value == null ? AM : A.value, { current: NM } = import_react.useRef(MM != null), PM = import_react.useRef(), FM = import_react.useCallback((e2) => {
9091
+ }, []), IM = useForkRef_default(PM, M, A.ref, FM), [LM, RM] = import_react.useState(false), zM = useFormControl(), BM = formControlState({
8722
9092
  props: n,
8723
- muiFormControl: Dj,
9093
+ muiFormControl: zM,
8724
9094
  states: [
8725
9095
  "color",
8726
9096
  "disabled",
@@ -8731,145 +9101,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
8731
9101
  "filled"
8732
9102
  ]
8733
9103
  });
8734
- Oj.focused = Dj ? Dj.focused : Tj, import_react.useEffect(() => {
8735
- !Dj && _ && Tj && (Ej(false), q && q());
9104
+ BM.focused = zM ? zM.focused : LM, import_react.useEffect(() => {
9105
+ !zM && _ && LM && (RM(false), J && J());
8736
9106
  }, [
8737
- Dj,
9107
+ zM,
8738
9108
  _,
8739
- Tj,
8740
- q
9109
+ LM,
9110
+ J
8741
9111
  ]);
8742
- let kj = Dj && Dj.onFilled, Aj = Dj && Dj.onEmpty, jj = import_react.useCallback((e2) => {
8743
- isFilled(e2) ? kj && kj() : Aj && Aj();
9112
+ let VM = zM && zM.onFilled, HM = zM && zM.onEmpty, UM = import_react.useCallback((e2) => {
9113
+ isFilled(e2) ? VM && VM() : HM && HM();
8744
9114
  }, [
8745
- kj,
8746
- Aj
9115
+ VM,
9116
+ HM
8747
9117
  ]);
8748
9118
  useEnhancedEffect_default$1(() => {
8749
- xj && jj({
8750
- value: bj
9119
+ NM && UM({
9120
+ value: MM
8751
9121
  });
8752
9122
  }, [
8753
- bj,
8754
- jj,
8755
- xj
9123
+ MM,
9124
+ UM,
9125
+ NM
8756
9126
  ]);
8757
- let Mj = (e2) => {
8758
- Q && Q(e2), A.onFocus && A.onFocus(e2), Dj && Dj.onFocus ? Dj.onFocus(e2) : Ej(true);
8759
- }, Nj = (e2) => {
8760
- q && q(e2), A.onBlur && A.onBlur(e2), Dj && Dj.onBlur ? Dj.onBlur(e2) : Ej(false);
8761
- }, Pj = (e2, ...t2) => {
8762
- if (!xj) {
8763
- let t3 = e2.target || Sj.current;
9127
+ let WM = (e2) => {
9128
+ $ && $(e2), A.onFocus && A.onFocus(e2), zM && zM.onFocus ? zM.onFocus(e2) : RM(true);
9129
+ }, GM = (e2) => {
9130
+ J && J(e2), A.onBlur && A.onBlur(e2), zM && zM.onBlur ? zM.onBlur(e2) : RM(false);
9131
+ }, KM = (e2, ...t2) => {
9132
+ if (!NM) {
9133
+ let t3 = e2.target || PM.current;
8764
9134
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
8765
- jj({
9135
+ UM({
8766
9136
  value: t3.value
8767
9137
  });
8768
9138
  }
8769
- A.onChange && A.onChange(e2, ...t2), J && J(e2, ...t2);
9139
+ A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
8770
9140
  };
8771
9141
  import_react.useEffect(() => {
8772
- jj(Sj.current);
9142
+ UM(PM.current);
8773
9143
  }, []);
8774
- let Fj = (e2) => {
8775
- Sj.current && e2.currentTarget === e2.target && Sj.current.focus(), sj && sj(e2);
8776
- }, Ij = O, Lj = A;
8777
- K && Ij === "input" && (Lj = fj ? {
9144
+ let qM = (e2) => {
9145
+ PM.current && e2.currentTarget === e2.target && PM.current.focus(), vM && vM(e2);
9146
+ }, JM = O, YM = A;
9147
+ K && JM === "input" && (YM = wM ? {
8778
9148
  type: void 0,
8779
- minRows: fj,
8780
- maxRows: fj,
8781
- ...Lj
9149
+ minRows: wM,
9150
+ maxRows: wM,
9151
+ ...YM
8782
9152
  } : {
8783
9153
  type: void 0,
8784
9154
  maxRows: z,
8785
9155
  minRows: U,
8786
- ...Lj
8787
- }, Ij = TextareaAutosize_default);
8788
- let Rj = (e2) => {
8789
- jj(e2.animationName === "mui-auto-fill-cancel" ? Sj.current : {
9156
+ ...YM
9157
+ }, JM = TextareaAutosize_default);
9158
+ let XM = (e2) => {
9159
+ UM(e2.animationName === "mui-auto-fill-cancel" ? PM.current : {
8790
9160
  value: "x"
8791
9161
  });
8792
9162
  };
8793
9163
  import_react.useEffect(() => {
8794
- Dj && Dj.setAdornedStart(!!gj);
9164
+ zM && zM.setAdornedStart(!!OM);
8795
9165
  }, [
8796
- Dj,
8797
- gj
9166
+ zM,
9167
+ OM
8798
9168
  ]);
8799
- let zj = {
9169
+ let ZM = {
8800
9170
  ...n,
8801
- color: Oj.color || "primary",
8802
- disabled: Oj.disabled,
9171
+ color: BM.color || "primary",
9172
+ disabled: BM.disabled,
8803
9173
  endAdornment: y,
8804
- error: Oj.error,
8805
- focused: Oj.focused,
8806
- formControl: Dj,
9174
+ error: BM.error,
9175
+ focused: BM.focused,
9176
+ formControl: zM,
8807
9177
  fullWidth: w,
8808
- hiddenLabel: Oj.hiddenLabel,
9178
+ hiddenLabel: BM.hiddenLabel,
8809
9179
  multiline: K,
8810
- size: Oj.size,
8811
- startAdornment: gj,
8812
- type: _j
8813
- }, Bj = useUtilityClasses(zj), Vj = hj.root || d.Root || InputBaseRoot, Hj = mj.root || f.root || {}, Uj = hj.input || d.Input || InputBaseInput;
8814
- return Lj = {
8815
- ...Lj,
8816
- ...mj.input ?? f.input
9180
+ size: BM.size,
9181
+ startAdornment: OM,
9182
+ type: kM
9183
+ }, QM = useUtilityClasses(ZM), $M = DM.root || d.Root || InputBaseRoot, eN = EM.root || f.root || {}, tN = DM.input || d.Input || InputBaseInput;
9184
+ return YM = {
9185
+ ...YM,
9186
+ ...EM.input ?? f.input
8817
9187
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
8818
9188
  children: [
8819
9189
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
8820
- (0, import_jsx_runtime.jsxs)(Vj, {
8821
- ...Hj,
9190
+ (0, import_jsx_runtime.jsxs)($M, {
9191
+ ...eN,
8822
9192
  ref: t,
8823
- onClick: Fj,
8824
- ...yj,
8825
- ...!isHostComponent_default(Vj) && {
9193
+ onClick: qM,
9194
+ ...jM,
9195
+ ...!isHostComponent_default($M) && {
8826
9196
  ownerState: {
8827
- ...zj,
8828
- ...Hj.ownerState
9197
+ ...ZM,
9198
+ ...eN.ownerState
8829
9199
  }
8830
9200
  },
8831
- className: clsx_default(Bj.root, Hj.className, s, uj && "MuiInputBase-readOnly"),
9201
+ className: clsx_default(QM.root, eN.className, s, SM && "MuiInputBase-readOnly"),
8832
9202
  children: [
8833
- gj,
9203
+ OM,
8834
9204
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
8835
9205
  value: null,
8836
- children: (0, import_jsx_runtime.jsx)(Uj, {
8837
- "aria-invalid": Oj.error,
9206
+ children: (0, import_jsx_runtime.jsx)(tN, {
9207
+ "aria-invalid": BM.error,
8838
9208
  "aria-describedby": i,
8839
9209
  autoComplete: a,
8840
9210
  autoFocus: o,
8841
9211
  defaultValue: h,
8842
- disabled: Oj.disabled,
9212
+ disabled: BM.disabled,
8843
9213
  id: E,
8844
- onAnimationStart: Rj,
8845
- name: oj,
8846
- placeholder: lj,
8847
- readOnly: uj,
8848
- required: Oj.required,
8849
- rows: fj,
8850
- value: bj,
8851
- onKeyDown: cj,
8852
- onKeyUp: $,
8853
- type: _j,
8854
- ...Lj,
8855
- ...!isHostComponent_default(Uj) && {
8856
- as: Ij,
9214
+ onAnimationStart: XM,
9215
+ name: q,
9216
+ placeholder: xM,
9217
+ readOnly: SM,
9218
+ required: BM.required,
9219
+ rows: wM,
9220
+ value: MM,
9221
+ onKeyDown: yM,
9222
+ onKeyUp: bM,
9223
+ type: kM,
9224
+ ...YM,
9225
+ ...!isHostComponent_default(tN) && {
9226
+ as: JM,
8857
9227
  ownerState: {
8858
- ...zj,
8859
- ...Lj.ownerState
9228
+ ...ZM,
9229
+ ...YM.ownerState
8860
9230
  }
8861
9231
  },
8862
- ref: wj,
8863
- className: clsx_default(Bj.input, Lj.className, uj && "MuiInputBase-readOnly"),
8864
- onBlur: Nj,
8865
- onChange: Pj,
8866
- onFocus: Mj
9232
+ ref: IM,
9233
+ className: clsx_default(QM.input, YM.className, SM && "MuiInputBase-readOnly"),
9234
+ onBlur: GM,
9235
+ onChange: KM,
9236
+ onFocus: WM
8867
9237
  })
8868
9238
  }),
8869
9239
  y,
8870
- dj ? dj({
8871
- ...Oj,
8872
- startAdornment: gj
9240
+ CM ? CM({
9241
+ ...BM,
9242
+ startAdornment: OM
8873
9243
  }) : null
8874
9244
  ]
8875
9245
  })
@@ -9945,30 +10315,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9945
10315
  M,
9946
10316
  i,
9947
10317
  a
9948
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, oj] = useInspect(i, t, a), [q, J] = (0, import_react.useState)(false), sj = useJsonViewerStore((e2) => e2.onChange), Q = useTextColor(), cj = useJsonViewerStore((e2) => e2.colorspace.base0C), $ = useJsonViewerStore((e2) => e2.colorspace.base0A), lj = useJsonViewerStore((e2) => e2.displayComma), uj = useJsonViewerStore((e2) => e2.quotesOnKeys), dj = useJsonViewerStore((e2) => e2.rootName), fj = U === t, pj = Number.isInteger(Number(A)), mj = useJsonViewerStore((e2) => e2.enableAdd), hj = useJsonViewerStore((e2) => e2.onAdd), gj = (0, import_react.useMemo)(() => !hj || a !== void 0 || mj === false || v === false ? false : typeof mj == "function" ? !!mj(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
9949
- hj,
10318
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), vM = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), yM = useJsonViewerStore((e2) => e2.colorspace.base0C), bM = useJsonViewerStore((e2) => e2.colorspace.base0A), xM = useJsonViewerStore((e2) => e2.displayComma), SM = useJsonViewerStore((e2) => e2.quotesOnKeys), CM = useJsonViewerStore((e2) => e2.rootName), wM = U === t, TM = Number.isInteger(Number(A)), EM = useJsonViewerStore((e2) => e2.enableAdd), DM = useJsonViewerStore((e2) => e2.onAdd), OM = (0, import_react.useMemo)(() => !DM || a !== void 0 || EM === false || v === false ? false : typeof EM == "function" ? !!EM(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
10319
+ DM,
9950
10320
  a,
9951
10321
  i,
9952
- mj,
10322
+ EM,
9953
10323
  v,
9954
10324
  t
9955
- ]), _j = useJsonViewerStore((e2) => e2.enableDelete), vj = useJsonViewerStore((e2) => e2.onDelete), yj = (0, import_react.useMemo)(() => !vj || a !== void 0 || fj || _j === false || v === false ? false : typeof _j == "function" ? !!_j(i, t) : _j, [
9956
- vj,
10325
+ ]), kM = useJsonViewerStore((e2) => e2.enableDelete), AM = useJsonViewerStore((e2) => e2.onDelete), jM = (0, import_react.useMemo)(() => !AM || a !== void 0 || wM || kM === false || v === false ? false : typeof kM == "function" ? !!kM(i, t) : kM, [
10326
+ AM,
9957
10327
  a,
9958
- fj,
10328
+ wM,
9959
10329
  i,
9960
- _j,
10330
+ kM,
9961
10331
  v,
9962
10332
  t
9963
- ]), bj = useJsonViewerStore((e2) => e2.enableClipboard), { copy: xj, copied: Sj } = useClipboard(), Cj = useJsonViewerStore((e2) => e2.highlightUpdates), wj = (0, import_react.useMemo)(() => !Cj || 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, [
9964
- Cj,
10333
+ ]), MM = useJsonViewerStore((e2) => e2.enableClipboard), { copy: NM, copied: PM } = useClipboard(), FM = useJsonViewerStore((e2) => e2.highlightUpdates), IM = (0, import_react.useMemo)(() => !FM || 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, [
10334
+ FM,
9965
10335
  n,
9966
10336
  t
9967
- ]), Tj = (0, import_react.useRef)();
10337
+ ]), LM = (0, import_react.useRef)();
9968
10338
  (0, import_react.useEffect)(() => {
9969
- Tj.current && wj && "animate" in Tj.current && Tj.current.animate([
10339
+ LM.current && IM && "animate" in LM.current && LM.current.animate([
9970
10340
  {
9971
- backgroundColor: $
10341
+ backgroundColor: bM
9972
10342
  },
9973
10343
  {
9974
10344
  backgroundColor: ""
@@ -9978,40 +10348,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9978
10348
  easing: "ease-in"
9979
10349
  });
9980
10350
  }, [
9981
- $,
9982
- wj,
10351
+ bM,
10352
+ IM,
9983
10353
  n,
9984
10354
  t
9985
10355
  ]);
9986
- let Ej = (0, import_react.useCallback)((e2) => {
9987
- e2.preventDefault(), h && E(h(t)), J(true);
10356
+ let RM = (0, import_react.useCallback)((e2) => {
10357
+ e2.preventDefault(), h && E(h(t)), Q(true);
9988
10358
  }, [
9989
10359
  h,
9990
10360
  t
9991
- ]), Dj = (0, import_react.useCallback)(() => {
9992
- J(false), E("");
10361
+ ]), zM = (0, import_react.useCallback)(() => {
10362
+ Q(false), E("");
9993
10363
  }, [
9994
- J,
10364
+ Q,
9995
10365
  E
9996
- ]), Oj = (0, import_react.useCallback)((e2) => {
9997
- if (J(false), _) try {
9998
- sj(i, t, _(e2));
10366
+ ]), BM = (0, import_react.useCallback)((e2) => {
10367
+ if (Q(false), _) try {
10368
+ vM(i, t, _(e2));
9999
10369
  } catch {
10000
10370
  }
10001
10371
  }, [
10002
- J,
10372
+ Q,
10003
10373
  _,
10004
- sj,
10374
+ vM,
10005
10375
  i,
10006
10376
  t
10007
- ]), kj = (0, import_react.useMemo)(() => q ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10377
+ ]), VM = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10008
10378
  children: [
10009
10379
  (0, import_jsx_runtime.jsx)(IconBox, {
10010
10380
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
10011
10381
  sx: {
10012
10382
  fontSize: ".8rem"
10013
10383
  },
10014
- onClick: Dj
10384
+ onClick: zM
10015
10385
  })
10016
10386
  }),
10017
10387
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -10019,22 +10389,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10019
10389
  sx: {
10020
10390
  fontSize: ".8rem"
10021
10391
  },
10022
- onClick: () => Oj(w)
10392
+ onClick: () => BM(w)
10023
10393
  })
10024
10394
  })
10025
10395
  ]
10026
10396
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10027
10397
  children: [
10028
- bj && (0, import_jsx_runtime.jsx)(IconBox, {
10398
+ MM && (0, import_jsx_runtime.jsx)(IconBox, {
10029
10399
  onClick: (e2) => {
10030
10400
  e2.preventDefault();
10031
10401
  try {
10032
- xj(i, t, copyString);
10402
+ NM(i, t, copyString);
10033
10403
  } catch (e3) {
10034
10404
  console.error(e3);
10035
10405
  }
10036
10406
  },
10037
- children: Sj ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10407
+ children: PM ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10038
10408
  sx: {
10039
10409
  fontSize: ".8rem"
10040
10410
  }
@@ -10045,16 +10415,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10045
10415
  })
10046
10416
  }),
10047
10417
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
10048
- onClick: Ej,
10418
+ onClick: RM,
10049
10419
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
10050
10420
  sx: {
10051
10421
  fontSize: ".8rem"
10052
10422
  }
10053
10423
  })
10054
10424
  }),
10055
- gj && (0, import_jsx_runtime.jsx)(IconBox, {
10425
+ OM && (0, import_jsx_runtime.jsx)(IconBox, {
10056
10426
  onClick: (e2) => {
10057
- e2.preventDefault(), hj == null ? void 0 : hj(i);
10427
+ e2.preventDefault(), DM == null ? void 0 : DM(i);
10058
10428
  },
10059
10429
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
10060
10430
  sx: {
@@ -10062,9 +10432,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10062
10432
  }
10063
10433
  })
10064
10434
  }),
10065
- yj && (0, import_jsx_runtime.jsx)(IconBox, {
10435
+ jM && (0, import_jsx_runtime.jsx)(IconBox, {
10066
10436
  onClick: (e2) => {
10067
- e2.preventDefault(), vj == null ? void 0 : vj(i, t);
10437
+ e2.preventDefault(), AM == null ? void 0 : AM(i, t);
10068
10438
  },
10069
10439
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
10070
10440
  sx: {
@@ -10077,34 +10447,34 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10077
10447
  f,
10078
10448
  h,
10079
10449
  _,
10080
- Sj,
10081
- xj,
10450
+ PM,
10451
+ NM,
10082
10452
  S,
10083
- q,
10084
- bj,
10085
- gj,
10086
- yj,
10453
+ J,
10454
+ MM,
10455
+ OM,
10456
+ jM,
10087
10457
  w,
10088
10458
  i,
10089
10459
  t,
10090
- hj,
10091
- vj,
10092
- Ej,
10093
- Dj,
10094
- Oj
10095
- ]), Aj = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10460
+ DM,
10461
+ AM,
10462
+ RM,
10463
+ zM,
10464
+ BM
10465
+ ]), HM = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10096
10466
  t
10097
- ]), jj = !Aj && !!(c && d), Mj = useJsonViewerStore((e2) => e2.keyRenderer), Nj = (0, import_react.useMemo)(() => ({
10467
+ ]), UM = !HM && !!(c && d), WM = useJsonViewerStore((e2) => e2.keyRenderer), GM = (0, import_react.useMemo)(() => ({
10098
10468
  path: i,
10099
10469
  inspect: K,
10100
- setInspect: oj,
10470
+ setInspect: q,
10101
10471
  value: t,
10102
10472
  prevValue: n,
10103
10473
  nestedIndex: a
10104
10474
  }), [
10105
10475
  K,
10106
10476
  i,
10107
- oj,
10477
+ q,
10108
10478
  t,
10109
10479
  n,
10110
10480
  a
@@ -10126,18 +10496,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10126
10496
  className: "data-key",
10127
10497
  sx: {
10128
10498
  lineHeight: 1.5,
10129
- color: Q,
10499
+ color: $,
10130
10500
  letterSpacing: 0.5,
10131
10501
  opacity: 0.8
10132
10502
  },
10133
10503
  onClick: (0, import_react.useCallback)((e2) => {
10134
- e2.isDefaultPrevented() || Aj || oj((e3) => !e3);
10504
+ e2.isDefaultPrevented() || HM || q((e3) => !e3);
10135
10505
  }, [
10136
- Aj,
10137
- oj
10506
+ HM,
10507
+ q
10138
10508
  ]),
10139
10509
  children: [
10140
- jj ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10510
+ UM ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10141
10511
  className: "data-key-toggle-expanded",
10142
10512
  sx: {
10143
10513
  fontSize: ".8rem",
@@ -10155,27 +10525,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10155
10525
  }
10156
10526
  }) : null,
10157
10527
  (0, import_jsx_runtime.jsx)(Box_default, {
10158
- ref: Tj,
10528
+ ref: LM,
10159
10529
  className: "data-key-key",
10160
10530
  component: "span",
10161
- children: fj && O === 0 ? dj === false ? null : uj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10531
+ children: wM && O === 0 ? CM === false ? null : SM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10162
10532
  children: [
10163
10533
  '"',
10164
- dj,
10534
+ CM,
10165
10535
  '"'
10166
10536
  ]
10167
10537
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
10168
- children: dj
10169
- }) : Mj.when(Nj) ? (0, import_jsx_runtime.jsx)(Mj, {
10170
- ...Nj
10171
- }) : a === void 0 && (pj ? (0, import_jsx_runtime.jsx)(Box_default, {
10538
+ children: CM
10539
+ }) : WM.when(GM) ? (0, import_jsx_runtime.jsx)(WM, {
10540
+ ...GM
10541
+ }) : a === void 0 && (TM ? (0, import_jsx_runtime.jsx)(Box_default, {
10172
10542
  component: "span",
10173
10543
  style: {
10174
- color: cj,
10175
- userSelect: pj ? "none" : "auto"
10544
+ color: yM,
10545
+ userSelect: TM ? "none" : "auto"
10176
10546
  },
10177
10547
  children: A
10178
- }) : uj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10548
+ }) : SM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10179
10549
  children: [
10180
10550
  '"',
10181
10551
  A,
@@ -10185,7 +10555,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10185
10555
  children: A
10186
10556
  }))
10187
10557
  }),
10188
- fj ? dj !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10558
+ wM ? CM !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10189
10559
  className: "data-key-colon",
10190
10560
  sx: {
10191
10561
  mr: 0.5
@@ -10198,38 +10568,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10198
10568
  ".data-key-key:empty + &": {
10199
10569
  display: "none"
10200
10570
  },
10201
- userSelect: pj ? "none" : "auto"
10571
+ userSelect: TM ? "none" : "auto"
10202
10572
  },
10203
10573
  children: ":"
10204
10574
  }),
10205
10575
  c && (0, import_jsx_runtime.jsx)(c, {
10206
- ...Nj
10576
+ ...GM
10207
10577
  }),
10208
- I && jj && K && kj
10578
+ I && UM && K && VM
10209
10579
  ]
10210
10580
  }),
10211
- q && S ? f && (0, import_jsx_runtime.jsx)(f, {
10581
+ J && S ? f && (0, import_jsx_runtime.jsx)(f, {
10212
10582
  path: i,
10213
10583
  value: w,
10214
10584
  setValue: E,
10215
- abortEditing: Dj,
10216
- commitEditing: Oj
10585
+ abortEditing: zM,
10586
+ commitEditing: BM
10217
10587
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
10218
- ...Nj
10588
+ ...GM
10219
10589
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
10220
10590
  component: "span",
10221
10591
  className: "data-value-fallback",
10222
10592
  children: `fallback: ${t}`
10223
10593
  }),
10224
10594
  d && (0, import_jsx_runtime.jsx)(d, {
10225
- ...Nj
10595
+ ...GM
10226
10596
  }),
10227
- !o && lj && (0, import_jsx_runtime.jsx)(DataBox, {
10597
+ !o && xM && (0, import_jsx_runtime.jsx)(DataBox, {
10228
10598
  children: ","
10229
10599
  }),
10230
- I && jj && !K && kj,
10231
- I && !jj && kj,
10232
- !I && q && kj
10600
+ I && UM && !K && VM,
10601
+ I && !UM && VM,
10602
+ !I && J && VM
10233
10603
  ]
10234
10604
  });
10235
10605
  }, query = "(prefers-color-scheme: dark)";
@@ -10358,9 +10728,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10358
10728
  })
10359
10729
  })
10360
10730
  });
10361
- }, import_compiler_runtime$44 = require_compiler_runtime();
10731
+ }, import_compiler_runtime$46 = require_compiler_runtime();
10362
10732
  HtmlOutput = (0, import_react.memo)((e) => {
10363
- let t = (0, import_compiler_runtime$44.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
10733
+ let t = (0, import_compiler_runtime$46.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
10364
10734
  if (!n) return null;
10365
10735
  let d = !c, f;
10366
10736
  t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
@@ -10379,9 +10749,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10379
10749
  }), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
10380
10750
  });
10381
10751
  HtmlOutput.displayName = "HtmlOutput";
10382
- var import_compiler_runtime$43 = require_compiler_runtime();
10752
+ var import_compiler_runtime$45 = require_compiler_runtime();
10383
10753
  const ImageOutput = (e) => {
10384
- let t = (0, import_compiler_runtime$43.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
10754
+ let t = (0, import_compiler_runtime$45.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
10385
10755
  t[0] !== c || t[1] !== o || t[2] !== n || t[3] !== a ? (d = (0, import_jsx_runtime.jsx)("img", {
10386
10756
  src: n,
10387
10757
  alt: c,
@@ -10394,9 +10764,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10394
10764
  children: d
10395
10765
  }), t[5] = s, t[6] = d, t[7] = f) : f = t[7], f;
10396
10766
  };
10397
- var import_compiler_runtime$42 = require_compiler_runtime();
10767
+ var import_compiler_runtime$44 = require_compiler_runtime();
10398
10768
  Kbd = (e) => {
10399
- let t = (0, import_compiler_runtime$42.c)(5), n;
10769
+ let t = (0, import_compiler_runtime$44.c)(5), n;
10400
10770
  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);
10401
10771
  let i;
10402
10772
  return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
@@ -10404,9 +10774,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10404
10774
  children: e.children
10405
10775
  }), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
10406
10776
  };
10407
- var import_compiler_runtime$41 = require_compiler_runtime();
10777
+ var import_compiler_runtime$43 = require_compiler_runtime();
10408
10778
  const ExternalLink$1 = (e) => {
10409
- let t = (0, import_compiler_runtime$41.c)(3), { href: n, children: i } = e, a;
10779
+ let t = (0, import_compiler_runtime$43.c)(3), { href: n, children: i } = e, a;
10410
10780
  return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
10411
10781
  href: n,
10412
10782
  target: "_blank",
@@ -10577,22 +10947,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10577
10947
  os: "os",
10578
10948
  re: "re",
10579
10949
  sys: "sys"
10580
- }, import_compiler_runtime$40 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
10950
+ }, import_compiler_runtime$42 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
10581
10951
  function useFixMode() {
10582
- let e = (0, import_compiler_runtime$40.c)(3), [t, n] = useAtom(fixModeAtom), i;
10952
+ let e = (0, import_compiler_runtime$42.c)(3), [t, n] = useAtom(fixModeAtom), i;
10583
10953
  return e[0] !== t || e[1] !== n ? (i = {
10584
10954
  fixMode: t,
10585
10955
  setFixMode: n
10586
10956
  }, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
10587
10957
  }
10588
- var import_compiler_runtime$39 = require_compiler_runtime();
10958
+ var import_compiler_runtime$41 = require_compiler_runtime();
10589
10959
  const AutoFixButton = (e) => {
10590
- let t = (0, import_compiler_runtime$39.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), f = useAtomValue(aiEnabledAtom), h;
10591
- if (t[0] !== f || t[1] !== n) {
10960
+ let t = (0, import_compiler_runtime$41.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiEnabledAtom), h;
10961
+ if (t[0] !== d || t[1] !== n) {
10592
10962
  let e2;
10593
- t[3] === f ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
10594
- aiEnabled: f
10595
- }), t[3] = f, t[4] = e2), h = n.flatMap(e2), t[0] = f, t[1] = n, t[2] = h;
10963
+ t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
10964
+ aiEnabled: d
10965
+ }), t[3] = d, t[4] = e2), h = n.flatMap(e2), t[0] = d, t[1] = n, t[2] = h;
10596
10966
  } else h = t[2];
10597
10967
  let _ = h, v = useSetAtom(aiCompletionCellAtom);
10598
10968
  if (_.length === 0) return null;
@@ -10617,10 +10987,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10617
10987
  }
10618
10988
  }), t2 == null ? void 0 : t2.focus();
10619
10989
  }, t[5] = i, t[6] = c, t[7] = y, t[8] = v, t[9] = s, t[10] = S) : S = t[10];
10620
- let w = S, E;
10621
- t[11] === o ? E = t[12] : (E = cn("my-2", o), t[11] = o, t[12] = E);
10622
- let O;
10623
- 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, {
10990
+ let w = S, O;
10991
+ t[11] === o ? O = t[12] : (O = cn("my-2", o), t[11] = o, t[12] = O);
10992
+ let A;
10993
+ t[13] !== y.description || t[14] !== y.fixType || t[15] !== y.title || t[16] !== w ? (A = y.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
10624
10994
  tooltip: y.description,
10625
10995
  openPrompt: () => w(false),
10626
10996
  applyAutofix: () => w(true)
@@ -10639,32 +11009,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10639
11009
  y.title
10640
11010
  ]
10641
11011
  })
10642
- }), t[13] = y.description, t[14] = y.fixType, t[15] = y.title, t[16] = w, t[17] = O) : O = t[17];
10643
- let A;
10644
- return t[18] !== E || t[19] !== O ? (A = (0, import_jsx_runtime.jsx)("div", {
10645
- className: E,
10646
- children: O
10647
- }), t[18] = E, t[19] = O, t[20] = A) : A = t[20], A;
11012
+ }), t[13] = y.description, t[14] = y.fixType, t[15] = y.title, t[16] = w, t[17] = A) : A = t[17];
11013
+ let M;
11014
+ return t[18] !== O || t[19] !== A ? (M = (0, import_jsx_runtime.jsx)("div", {
11015
+ className: O,
11016
+ children: A
11017
+ }), t[18] = O, t[19] = A, t[20] = M) : M = t[20], M;
10648
11018
  };
10649
11019
  var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
10650
11020
  const AIFixButton = (e) => {
10651
- let t = (0, import_compiler_runtime$39.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, f;
10652
- t[0] === o ? f = t[1] : (f = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
11021
+ let t = (0, import_compiler_runtime$41.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
11022
+ t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
10653
11023
  className: "h-3 w-3 mr-2 mb-0.5"
10654
11024
  }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
10655
11025
  className: "h-3 w-3 mr-2 mb-0.5"
10656
- }), t[0] = o, t[1] = f);
11026
+ }), t[0] = o, t[1] = d);
10657
11027
  let h = o === "prompt" ? PromptTitle : AutofixTitle, _;
10658
- t[2] !== c || t[3] !== f || t[4] !== h ? (_ = (0, import_jsx_runtime.jsxs)(Button, {
11028
+ t[2] !== c || t[3] !== d || t[4] !== h ? (_ = (0, import_jsx_runtime.jsxs)(Button, {
10659
11029
  size: "xs",
10660
11030
  variant: "outline",
10661
11031
  className: "font-normal rounded-r-none border-r-0",
10662
11032
  onClick: c,
10663
11033
  children: [
10664
- f,
11034
+ d,
10665
11035
  h
10666
11036
  ]
10667
- }), t[2] = c, t[3] = f, t[4] = h, t[5] = _) : _ = t[5];
11037
+ }), t[2] = c, t[3] = d, t[4] = h, t[5] = _) : _ = t[5];
10668
11038
  let v;
10669
11039
  t[6] !== _ || t[7] !== n ? (v = (0, import_jsx_runtime.jsx)(Tooltip, {
10670
11040
  content: n,
@@ -10717,7 +11087,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10717
11087
  }), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
10718
11088
  };
10719
11089
  var AiModeItem = (e) => {
10720
- let t = (0, import_compiler_runtime$39.c)(12), { mode: n } = e, i;
11090
+ let t = (0, import_compiler_runtime$41.c)(12), { mode: n } = e, i;
10721
11091
  t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
10722
11092
  className: "h-4 w-4"
10723
11093
  }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
@@ -10754,9 +11124,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10754
11124
  function useFilename() {
10755
11125
  return useAtomValue(filenameAtom);
10756
11126
  }
10757
- var import_compiler_runtime$37 = require_compiler_runtime();
11127
+ var import_compiler_runtime$39 = require_compiler_runtime();
10758
11128
  const CellLink = (e) => {
10759
- let t = (0, import_compiler_runtime$37.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$4, y;
11129
+ let t = (0, import_compiler_runtime$39.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$5, y;
10760
11130
  t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
10761
11131
  let S;
10762
11132
  t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
@@ -10767,22 +11137,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10767
11137
  scrollAndHighlightCell(i, o, d) && (s == null ? void 0 : s());
10768
11138
  });
10769
11139
  }, t[2] = i, t[3] = s, t[4] = _, t[5] = d, t[6] = o, t[7] = S) : S = t[7];
10770
- let E = v(displayCellName(f, h)), O;
10771
- return t[8] !== y || t[9] !== S || t[10] !== E ? (O = (0, import_jsx_runtime.jsx)("div", {
11140
+ let w = v(displayCellName(f, h)), O;
11141
+ return t[8] !== y || t[9] !== S || t[10] !== w ? (O = (0, import_jsx_runtime.jsx)("div", {
10772
11142
  className: y,
10773
11143
  role: "link",
10774
11144
  tabIndex: -1,
10775
11145
  onClick: S,
10776
- children: E
10777
- }), t[8] = y, t[9] = S, t[10] = E, t[11] = O) : O = t[11], O;
11146
+ children: w
11147
+ }), t[8] = y, t[9] = S, t[10] = w, t[11] = O) : O = t[11], O;
10778
11148
  }, CellLinkError = (e) => {
10779
- let t = (0, import_compiler_runtime$37.c)(2), n;
11149
+ let t = (0, import_compiler_runtime$39.c)(2), n;
10780
11150
  return t[0] === e ? n = t[1] : (n = (0, import_jsx_runtime.jsx)(CellLink, {
10781
11151
  ...e,
10782
11152
  variant: "destructive"
10783
11153
  }), t[0] = e, t[1] = n), n;
10784
11154
  }, CellLinkTraceback = (e) => {
10785
- let t = (0, import_compiler_runtime$37.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
11155
+ let t = (0, import_compiler_runtime$39.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
10786
11156
  t[0] !== n || t[1] !== i ? (o = () => goToCellLine(n, i), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
10787
11157
  let s;
10788
11158
  t[3] !== n || t[4] !== a ? (s = (e2) => n === "__scratch__" ? "scratch" : `marimo://${a || "untitled"}#cell=${e2}`, t[3] = n, t[4] = a, t[5] = s) : s = t[5];
@@ -10807,7 +11177,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10807
11177
  o.classList.remove("focus-outline");
10808
11178
  }, 2e3)), true);
10809
11179
  }
10810
- function _temp$4(e) {
11180
+ function _temp$5(e) {
10811
11181
  return e;
10812
11182
  }
10813
11183
  const showAddPackageToast = (e, t) => {
@@ -10879,7 +11249,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10879
11249
  value: e2
10880
11250
  });
10881
11251
  }
10882
- var import_compiler_runtime$36 = require_compiler_runtime(), ansiUp = new AnsiUp();
11252
+ var import_compiler_runtime$38 = require_compiler_runtime(), ansiUp = new AnsiUp();
10883
11253
  const cleanAnsiCodes = (e) => {
10884
11254
  let t = RegExp("\x1B\\[[0-9;]*m", "g");
10885
11255
  return e.replaceAll(t, "");
@@ -10947,7 +11317,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10947
11317
  });
10948
11318
  }
10949
11319
  var InstallPackageLink = (e) => {
10950
- let t = (0, import_compiler_runtime$36.c)(6), { packages: n, children: i } = e, { handleInstallPackages: a } = useInstallPackages(), o;
11320
+ let t = (0, import_compiler_runtime$38.c)(6), { packages: n, children: i } = e, { handleInstallPackages: a } = useInstallPackages(), o;
10951
11321
  t[0] !== a || t[1] !== n ? (o = (e2) => {
10952
11322
  a(n), e2.preventDefault();
10953
11323
  }, t[0] = a, t[1] = n, t[2] = o) : o = t[2];
@@ -11020,15 +11390,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11020
11390
  })
11021
11391
  });
11022
11392
  RenderTextWithLinks = (e) => {
11023
- let t = (0, import_compiler_runtime$36.c)(4), { text: n } = e, i;
11393
+ let t = (0, import_compiler_runtime$38.c)(4), { text: n } = e, i;
11024
11394
  t[0] === n ? i = t[1] : (i = renderTextWithReplacers(n, composeReplacers(pipInstallReplacer, urlReplacer)), t[0] = n, t[1] = i);
11025
11395
  let a = i, o;
11026
11396
  return t[2] === a ? o = t[3] : (o = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
11027
11397
  children: a
11028
11398
  }), t[2] = a, t[3] = o), o;
11029
11399
  };
11030
- var import_compiler_runtime$35 = require_compiler_runtime(), Tip = (e) => {
11031
- let t = (0, import_compiler_runtime$35.c)(10), n = e.title ?? "Tip", i;
11400
+ var import_compiler_runtime$37 = require_compiler_runtime(), Tip = (e) => {
11401
+ let t = (0, import_compiler_runtime$37.c)(10), n = e.title ?? "Tip", i;
11032
11402
  t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
11033
11403
  className: "pt-2 pb-2 font-normal",
11034
11404
  children: n
@@ -11056,11 +11426,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11056
11426
  }), t[7] = e.className, t[8] = o, t[9] = s) : s = t[9], s;
11057
11427
  };
11058
11428
  const MarimoErrorOutput = (e) => {
11059
- let t = (0, import_compiler_runtime$35.c)(31), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = "This cell wasn't run because it has errors", f = "destructive", h = "text-error";
11060
- if (n.some(_temp$3)) c = "Interrupted";
11429
+ let t = (0, import_compiler_runtime$37.c)(31), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = "This cell wasn't run because it has errors", d = "destructive", h = "text-error";
11430
+ if (n.some(_temp$4)) c = "Interrupted";
11061
11431
  else if (n.some(_temp2$2)) c = "An internal error occurred";
11062
- else if (n.some(_temp3$1)) c = "Ancestor prevented from running", f = "default", h = "text-secondary-foreground";
11063
- else if (n.some(_temp4)) c = "Ancestor stopped", f = "default", h = "text-secondary-foreground";
11432
+ else if (n.some(_temp3$1)) c = "Ancestor prevented from running", d = "default", h = "text-secondary-foreground";
11433
+ else if (n.some(_temp4)) c = "Ancestor stopped", d = "default", h = "text-secondary-foreground";
11064
11434
  else if (n.some(_temp5)) c = "SQL error";
11065
11435
  else {
11066
11436
  let e2;
@@ -11069,19 +11439,19 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11069
11439
  i2 && "exception_type" in i2 && (c = i2.exception_type);
11070
11440
  }
11071
11441
  let _, v, y, S, w, E;
11072
- if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
11073
- let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A = n.filter(_temp9), M2 = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), oj = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), sj = n.filter(_temp15), Q = n.filter(_temp16), cj = n.filter(_temp17), $;
11074
- t[15] === s ? $ = t[16] : ($ = () => {
11442
+ if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
11443
+ let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), vM = n.filter(_temp16), $ = n.filter(_temp17), yM;
11444
+ t[15] === s ? yM = t[16] : (yM = () => {
11075
11445
  s.openApplication("scratchpad");
11076
- }, t[15] = s, t[16] = $);
11077
- let lj = $, uj = () => {
11446
+ }, t[15] = s, t[16] = yM);
11447
+ let bM = yM, SM = () => {
11078
11448
  let t2 = [];
11079
- if (sj.length > 0 || Q.length > 0) {
11080
- let e3 = sj.some(_temp18), n2 = !e3 && sj.some(_temp19);
11449
+ if (Q.length > 0 || vM.length > 0) {
11450
+ let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
11081
11451
  t2.push((0, import_jsx_runtime.jsxs)("div", {
11082
11452
  children: [
11083
- sj.map(_temp20),
11084
- Q.map(_temp21),
11453
+ Q.map(_temp20),
11454
+ vM.map(_temp21),
11085
11455
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
11086
11456
  size: "xs",
11087
11457
  variant: "outline",
@@ -11112,8 +11482,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11112
11482
  }),
11113
11483
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11114
11484
  errors: [
11115
- ...sj,
11116
- ...Q
11485
+ ...Q,
11486
+ ...vM
11117
11487
  ],
11118
11488
  cellId: i
11119
11489
  })
@@ -11212,17 +11582,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11212
11582
  ]
11213
11583
  })
11214
11584
  ]
11215
- }, "cycle")), A.length > 0) {
11216
- let e3 = A[0].name;
11585
+ }, "cycle")), A2.length > 0) {
11586
+ let e3 = A2[0].name;
11217
11587
  t2.push((0, import_jsx_runtime.jsxs)("div", {
11218
11588
  children: [
11219
11589
  (0, import_jsx_runtime.jsx)("p", {
11220
11590
  className: "text-muted-foreground font-medium",
11221
11591
  children: "This cell redefines variables from other cells."
11222
11592
  }),
11223
- A.map(_temp25),
11593
+ A2.map(_temp25),
11224
11594
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11225
- errors: A,
11595
+ errors: A2,
11226
11596
  cellId: i
11227
11597
  }),
11228
11598
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -11274,7 +11644,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11274
11644
  size: "xs",
11275
11645
  variant: "link",
11276
11646
  className: "my-2 font-normal mx-0 px-0",
11277
- onClick: lj,
11647
+ onClick: bM,
11278
11648
  children: [
11279
11649
  (0, import_jsx_runtime.jsx)(NotebookPen, {
11280
11650
  className: "h-3"
@@ -11293,11 +11663,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11293
11663
  ]
11294
11664
  }, "multiple-defs"));
11295
11665
  }
11296
- return M2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11666
+ return M.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11297
11667
  children: [
11298
- M2.map(_temp26),
11668
+ M.map(_temp26),
11299
11669
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11300
- errors: M2,
11670
+ errors: M,
11301
11671
  cellId: i
11302
11672
  }),
11303
11673
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -11365,11 +11735,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11365
11735
  children: U.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."
11366
11736
  })
11367
11737
  ]
11368
- }, "strict-exception")), oj.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11738
+ }, "strict-exception")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11369
11739
  children: [
11370
- oj.map(_temp32),
11740
+ K.map(_temp32),
11371
11741
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11372
- errors: oj,
11742
+ errors: K,
11373
11743
  cellId: i
11374
11744
  })
11375
11745
  ]
@@ -11389,23 +11759,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11389
11759
  cellId: i
11390
11760
  })
11391
11761
  ]
11392
- }, "ancestor-stopped")), cj.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11762
+ }, "ancestor-stopped")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11393
11763
  children: [
11394
- cj.map(_temp35),
11764
+ $.map(_temp35),
11395
11765
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11396
- errors: cj,
11766
+ errors: $,
11397
11767
  cellId: i,
11398
11768
  className: "mt-2.5"
11399
11769
  })
11400
11770
  ]
11401
11771
  }, "sql-errors")), t2;
11402
- }, dj = `font-code font-medium tracking-wide ${h}`, fj;
11403
- t[17] !== dj || t[18] !== c ? (fj = (0, import_jsx_runtime.jsx)(AlertTitle, {
11404
- className: dj,
11772
+ }, CM = `font-code font-medium tracking-wide ${h}`, wM;
11773
+ t[17] !== CM || t[18] !== c ? (wM = (0, import_jsx_runtime.jsx)(AlertTitle, {
11774
+ className: CM,
11405
11775
  children: c
11406
- }), t[17] = dj, t[18] = c, t[19] = fj) : fj = t[19];
11407
- let pj = fj;
11408
- _ = Alert, S = f, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = pj, v = "flex flex-col gap-8", y = uj(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11776
+ }), t[17] = CM, t[18] = c, t[19] = wM) : wM = t[19];
11777
+ let TM = wM;
11778
+ _ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = TM, v = "flex flex-col gap-8", y = SM(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11409
11779
  } else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
11410
11780
  let O;
11411
11781
  t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
@@ -11414,17 +11784,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11414
11784
  children: y
11415
11785
  })
11416
11786
  }), t[22] = v, t[23] = y, t[24] = O) : O = t[24];
11417
- let M;
11418
- return t[25] !== _ || t[26] !== S || t[27] !== w || t[28] !== E || t[29] !== O ? (M = (0, import_jsx_runtime.jsxs)(_, {
11787
+ let A;
11788
+ return t[25] !== _ || t[26] !== S || t[27] !== w || t[28] !== E || t[29] !== O ? (A = (0, import_jsx_runtime.jsxs)(_, {
11419
11789
  variant: S,
11420
11790
  className: w,
11421
11791
  children: [
11422
11792
  E,
11423
11793
  O
11424
11794
  ]
11425
- }), t[25] = _, t[26] = S, t[27] = w, t[28] = E, t[29] = O, t[30] = M) : M = t[30], M;
11795
+ }), t[25] = _, t[26] = S, t[27] = w, t[28] = E, t[29] = O, t[30] = A) : A = t[30], A;
11426
11796
  };
11427
- function _temp$3(e) {
11797
+ function _temp$4(e) {
11428
11798
  return e.type === "interruption";
11429
11799
  }
11430
11800
  function _temp2$2(e) {
@@ -11733,9 +12103,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11733
12103
  })
11734
12104
  }, `sql-error-${t}`);
11735
12105
  }
11736
- var import_compiler_runtime$34 = require_compiler_runtime();
12106
+ var import_compiler_runtime$36 = require_compiler_runtime();
11737
12107
  const TextOutput = (e) => {
11738
- let t = (0, import_compiler_runtime$34.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
12108
+ let t = (0, import_compiler_runtime$36.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
11739
12109
  t[0] === o ? c = t[1] : (c = (e2) => (0, import_jsx_runtime.jsx)("span", {
11740
12110
  className: o ? "whitespace-pre-wrap break-words" : "whitespace-pre",
11741
12111
  children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
@@ -11752,17 +12122,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11752
12122
  children: v
11753
12123
  }), t[10] = _, t[11] = v, t[12] = y) : y = t[12], y;
11754
12124
  };
11755
- var import_compiler_runtime$33 = require_compiler_runtime();
12125
+ var import_compiler_runtime$35 = require_compiler_runtime();
11756
12126
  const VideoOutput = (e) => {
11757
- let t = (0, import_compiler_runtime$33.c)(3), { src: n, className: i } = e, a;
12127
+ let t = (0, import_compiler_runtime$35.c)(3), { src: n, className: i } = e, a;
11758
12128
  return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("iframe", {
11759
12129
  className: i,
11760
12130
  src: n
11761
12131
  }), t[0] = i, t[1] = n, t[2] = a) : a = t[2], a;
11762
12132
  };
11763
- var import_compiler_runtime$32 = require_compiler_runtime();
12133
+ var import_compiler_runtime$34 = require_compiler_runtime();
11764
12134
  useOverflowDetection = function(e, t) {
11765
- let n = (0, import_compiler_runtime$32.c)(4), i = t === void 0 ? true : t, [a, o] = (0, import_react.useState)(false), s, c;
12135
+ let n = (0, import_compiler_runtime$34.c)(4), i = t === void 0 ? true : t, [a, o] = (0, import_react.useState)(false), s, c;
11766
12136
  return n[0] !== i || n[1] !== e ? (s = () => {
11767
12137
  let t2 = e.current;
11768
12138
  if (!t2 || !i) return;
@@ -11859,9 +12229,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11859
12229
  LazyVegaEmbed = import_react.lazy(() => import("./react-vega-jy3CfYys.js").then((e) => ({
11860
12230
  default: e.VegaEmbed
11861
12231
  })));
11862
- var import_compiler_runtime$31 = require_compiler_runtime();
12232
+ var import_compiler_runtime$33 = require_compiler_runtime();
11863
12233
  ChartLoadingState = () => {
11864
- let e = (0, import_compiler_runtime$31.c)(1), t;
12234
+ let e = (0, import_compiler_runtime$33.c)(1), t;
11865
12235
  return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)("div", {
11866
12236
  className: "flex items-center gap-2 justify-center",
11867
12237
  children: [
@@ -11876,7 +12246,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11876
12246
  }), e[0] = t) : t = e[0], t;
11877
12247
  };
11878
12248
  ChartErrorState = (e) => {
11879
- let t = (0, import_compiler_runtime$31.c)(2), { error: n } = e, i;
12249
+ let t = (0, import_compiler_runtime$33.c)(2), { error: n } = e, i;
11880
12250
  return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("div", {
11881
12251
  className: "flex items-center justify-center",
11882
12252
  children: (0, import_jsx_runtime.jsx)(ErrorBanner, {
@@ -11885,7 +12255,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11885
12255
  }), t[0] = n, t[1] = i), i;
11886
12256
  };
11887
12257
  ChartInfoState = (e) => {
11888
- let t = (0, import_compiler_runtime$31.c)(8), { children: n, className: i } = e, o;
12258
+ let t = (0, import_compiler_runtime$33.c)(8), { children: n, className: i } = e, o;
11889
12259
  t[0] === i ? o = t[1] : (o = cn("flex flex-col items-center justify-center gap-4", i), t[0] = i, t[1] = o);
11890
12260
  let s;
11891
12261
  t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(ChartPie, {
@@ -11905,11 +12275,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11905
12275
  ]
11906
12276
  }), t[5] = o, t[6] = c, t[7] = d) : d = t[7], d;
11907
12277
  };
11908
- let import_compiler_runtime$30;
11909
- import_compiler_runtime$30 = require_compiler_runtime();
12278
+ let import_compiler_runtime$32;
12279
+ import_compiler_runtime$32 = require_compiler_runtime();
11910
12280
  Tabs = Root2;
11911
12281
  TabsList = import_react.forwardRef((e, t) => {
11912
- let n = (0, import_compiler_runtime$30.c)(9), i, o;
12282
+ let n = (0, import_compiler_runtime$32.c)(9), i, o;
11913
12283
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
11914
12284
  let s;
11915
12285
  n[3] === i ? s = n[4] : (s = cn("inline-flex max-h-14 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", i), n[3] = i, n[4] = s);
@@ -11922,7 +12292,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11922
12292
  });
11923
12293
  TabsList.displayName = List.displayName;
11924
12294
  TabsTrigger = import_react.forwardRef((e, t) => {
11925
- let n = (0, import_compiler_runtime$30.c)(9), i, o;
12295
+ let n = (0, import_compiler_runtime$32.c)(9), i, o;
11926
12296
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
11927
12297
  let s;
11928
12298
  n[3] === i ? s = n[4] : (s = cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", i), n[3] = i, n[4] = s);
@@ -11935,7 +12305,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11935
12305
  });
11936
12306
  TabsTrigger.displayName = Trigger.displayName;
11937
12307
  TabsContent = import_react.forwardRef((e, t) => {
11938
- let n = (0, import_compiler_runtime$30.c)(9), i, o;
12308
+ let n = (0, import_compiler_runtime$32.c)(9), i, o;
11939
12309
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
11940
12310
  let s;
11941
12311
  n[3] === i ? s = n[4] : (s = cn("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2", i), n[3] = i, n[4] = s);
@@ -11947,9 +12317,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11947
12317
  }), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
11948
12318
  });
11949
12319
  TabsContent.displayName = Content.displayName;
11950
- var import_compiler_runtime$29 = require_compiler_runtime();
12320
+ var import_compiler_runtime$31 = require_compiler_runtime();
11951
12321
  const WithLocale = (e) => {
11952
- let t = (0, import_compiler_runtime$29.c)(3), { children: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
12322
+ let t = (0, import_compiler_runtime$31.c)(3), { children: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
11953
12323
  return t[0] !== n || t[1] !== i ? (a = n(i), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
11954
12324
  };
11955
12325
  function tzName(e, t, n = "long") {
@@ -12294,7 +12664,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12294
12664
  }, [
12295
12665
  h
12296
12666
  ]), k(() => {
12297
- U(6, cj);
12667
+ U(6, yM);
12298
12668
  }, []);
12299
12669
  let K = import_react.useMemo(() => ({
12300
12670
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -12303,7 +12673,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12303
12673
  var _a2;
12304
12674
  var a2, o2, s2;
12305
12675
  if (!Object.is(n.current[e2], t2)) {
12306
- if (n.current[e2] = t2, e2 === "search") Q(), J(), U(1, sj);
12676
+ if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, vM);
12307
12677
  else if (e2 === "value") {
12308
12678
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
12309
12679
  let e3 = document.getElementById(I);
@@ -12311,8 +12681,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12311
12681
  }
12312
12682
  if (U(7, () => {
12313
12683
  var _a3;
12314
- n.current.selectedItemId = (_a3 = $()) == null ? void 0 : _a3.id, K.emit();
12315
- }), i2 || U(5, cj), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12684
+ n.current.selectedItemId = (_a3 = bM()) == null ? void 0 : _a3.id, K.emit();
12685
+ }), i2 || U(5, yM), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12316
12686
  let e3 = t2 ?? "";
12317
12687
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
12318
12688
  return;
@@ -12324,25 +12694,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12324
12694
  emit: () => {
12325
12695
  s.current.forEach((e2) => e2());
12326
12696
  }
12327
- }), []), oj = import_react.useMemo(() => ({
12697
+ }), []), q = import_react.useMemo(() => ({
12328
12698
  value: (e2, t2, i2) => {
12329
12699
  var _a2;
12330
12700
  t2 !== ((_a2 = o.current.get(e2)) == null ? void 0 : _a2.value) && (o.current.set(e2, {
12331
12701
  value: t2,
12332
12702
  keywords: i2
12333
- }), n.current.filtered.items.set(e2, q(t2, i2)), U(2, () => {
12334
- J(), K.emit();
12703
+ }), n.current.filtered.items.set(e2, J(t2, i2)), U(2, () => {
12704
+ Q(), K.emit();
12335
12705
  }));
12336
12706
  },
12337
12707
  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([
12338
12708
  e2
12339
12709
  ]))), U(3, () => {
12340
- Q(), J(), n.current.value || sj(), K.emit();
12710
+ $(), Q(), n.current.value || vM(), K.emit();
12341
12711
  }), () => {
12342
12712
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
12343
- let t3 = $();
12713
+ let t3 = bM();
12344
12714
  U(4, () => {
12345
- Q(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && sj(), K.emit();
12715
+ $(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && vM(), K.emit();
12346
12716
  });
12347
12717
  }),
12348
12718
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -12356,12 +12726,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12356
12726
  labelId: M,
12357
12727
  listInnerRef: z
12358
12728
  }), []);
12359
- function q(e2, t2) {
12729
+ function J(e2, t2) {
12360
12730
  var _a2;
12361
12731
  let i2 = ((_a2 = c.current) == null ? void 0 : _a2.filter) ?? Re;
12362
12732
  return e2 ? i2(e2, n.current.search, t2) : 0;
12363
12733
  }
12364
- function J() {
12734
+ function Q() {
12365
12735
  if (!n.current.search || c.current.shouldFilter === false) return;
12366
12736
  let e2 = n.current.filtered.items, t2 = [];
12367
12737
  n.current.filtered.groups.forEach((n2) => {
@@ -12375,7 +12745,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12375
12745
  ]);
12376
12746
  });
12377
12747
  let i2 = z.current;
12378
- lj().sort((t3, n2) => {
12748
+ xM().sort((t3, n2) => {
12379
12749
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
12380
12750
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
12381
12751
  }).forEach((e3) => {
@@ -12387,12 +12757,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12387
12757
  t3 == null ? void 0 : t3.parentElement.appendChild(t3);
12388
12758
  });
12389
12759
  }
12390
- function sj() {
12760
+ function vM() {
12391
12761
  var _a2;
12392
- let e2 = (_a2 = lj().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12762
+ let e2 = (_a2 = xM().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12393
12763
  K.setState("value", e2 || void 0);
12394
12764
  }
12395
- function Q() {
12765
+ function $() {
12396
12766
  var _a2, _b;
12397
12767
  if (!n.current.search || c.current.shouldFilter === false) {
12398
12768
  n.current.filtered.count = i.current.size;
@@ -12401,7 +12771,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12401
12771
  n.current.filtered.groups = /* @__PURE__ */ new Set();
12402
12772
  let e2 = 0;
12403
12773
  for (let t2 of i.current) {
12404
- let i2 = q(((_a2 = o.current.get(t2)) == null ? void 0 : _a2.value) ?? "", ((_b = o.current.get(t2)) == null ? void 0 : _b.keywords) ?? []);
12774
+ let i2 = J(((_a2 = o.current.get(t2)) == null ? void 0 : _a2.value) ?? "", ((_b = o.current.get(t2)) == null ? void 0 : _b.keywords) ?? []);
12405
12775
  n.current.filtered.items.set(t2, i2), i2 > 0 && e2++;
12406
12776
  }
12407
12777
  for (let [e3, t2] of a.current) for (let i2 of t2) if (n.current.filtered.items.get(i2) > 0) {
@@ -12410,43 +12780,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12410
12780
  }
12411
12781
  n.current.filtered.count = e2;
12412
12782
  }
12413
- function cj() {
12783
+ function yM() {
12414
12784
  var _a2, _b;
12415
12785
  var e2;
12416
- let t2 = $();
12786
+ let t2 = bM();
12417
12787
  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({
12418
12788
  block: "nearest"
12419
12789
  })), t2.scrollIntoView({
12420
12790
  block: "nearest"
12421
12791
  }));
12422
12792
  }
12423
- function $() {
12793
+ function bM() {
12424
12794
  var _a2;
12425
12795
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
12426
12796
  }
12427
- function lj() {
12797
+ function xM() {
12428
12798
  var _a2;
12429
12799
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
12430
12800
  }
12431
- function uj(e2) {
12432
- let t2 = lj()[e2];
12801
+ function SM(e2) {
12802
+ let t2 = xM()[e2];
12433
12803
  t2 && K.setState("value", t2.getAttribute(T));
12434
12804
  }
12435
- function dj(e2) {
12805
+ function CM(e2) {
12436
12806
  var t2;
12437
- let n2 = $(), i2 = lj(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12807
+ let n2 = bM(), i2 = xM(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12438
12808
  (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));
12439
12809
  }
12440
- function fj(e2) {
12810
+ function wM(e2) {
12441
12811
  var _a2;
12442
- let t2 = (_a2 = $()) == null ? void 0 : _a2.closest(N$1), n2;
12812
+ let t2 = (_a2 = bM()) == null ? void 0 : _a2.closest(N$1), n2;
12443
12813
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
12444
- n2 ? K.setState("value", n2.getAttribute(T)) : dj(e2);
12814
+ n2 ? K.setState("value", n2.getAttribute(T)) : CM(e2);
12445
12815
  }
12446
- let pj = () => uj(lj().length - 1), mj = (e2) => {
12447
- e2.preventDefault(), e2.metaKey ? pj() : e2.altKey ? fj(1) : dj(1);
12448
- }, hj = (e2) => {
12449
- e2.preventDefault(), e2.metaKey ? uj(0) : e2.altKey ? fj(-1) : dj(-1);
12816
+ let TM = () => SM(xM().length - 1), EM = (e2) => {
12817
+ e2.preventDefault(), e2.metaKey ? TM() : e2.altKey ? wM(1) : CM(1);
12818
+ }, DM = (e2) => {
12819
+ e2.preventDefault(), e2.metaKey ? SM(0) : e2.altKey ? wM(-1) : CM(-1);
12450
12820
  };
12451
12821
  return import_react.createElement(Primitive.div, {
12452
12822
  ref: t,
@@ -12460,27 +12830,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12460
12830
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
12461
12831
  case "n":
12462
12832
  case "j":
12463
- E && e2.ctrlKey && mj(e2);
12833
+ E && e2.ctrlKey && EM(e2);
12464
12834
  break;
12465
12835
  case "ArrowDown":
12466
- mj(e2);
12836
+ EM(e2);
12467
12837
  break;
12468
12838
  case "p":
12469
12839
  case "k":
12470
- E && e2.ctrlKey && hj(e2);
12840
+ E && e2.ctrlKey && DM(e2);
12471
12841
  break;
12472
12842
  case "ArrowUp":
12473
- hj(e2);
12843
+ DM(e2);
12474
12844
  break;
12475
12845
  case "Home":
12476
- e2.preventDefault(), uj(0);
12846
+ e2.preventDefault(), SM(0);
12477
12847
  break;
12478
12848
  case "End":
12479
- e2.preventDefault(), pj();
12849
+ e2.preventDefault(), TM();
12480
12850
  break;
12481
12851
  case "Enter": {
12482
12852
  e2.preventDefault();
12483
- let t3 = $();
12853
+ let t3 = bM();
12484
12854
  if (t3) {
12485
12855
  let e3 = new Event(Z);
12486
12856
  t3.dispatchEvent(e3);
@@ -12490,17 +12860,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12490
12860
  }
12491
12861
  }, import_react.createElement("label", {
12492
12862
  "cmdk-label": "",
12493
- htmlFor: oj.inputId,
12494
- id: oj.labelId,
12863
+ htmlFor: q.inputId,
12864
+ id: q.labelId,
12495
12865
  style: Te
12496
12866
  }, d), B(e, (e2) => import_react.createElement(de.Provider, {
12497
12867
  value: K
12498
12868
  }, import_react.createElement(ue$1.Provider, {
12499
- value: oj
12869
+ value: q
12500
12870
  }, e2))));
12501
12871
  }), he$1 = import_react.forwardRef((e, t) => {
12502
12872
  var _a2;
12503
- let n = useId$1(), i = import_react.useRef(null), a = import_react.useContext(fe), o = K$1(), c = pe(e), d = ((_a2 = c.current) == null ? void 0 : _a2.forceMount) ?? (a == null ? void 0 : a.forceMount);
12873
+ let n = useId$1(), i = import_react.useRef(null), a = import_react.useContext(fe), o = K$1(), s = pe(e), d = ((_a2 = s.current) == null ? void 0 : _a2.forceMount) ?? (a == null ? void 0 : a.forceMount);
12504
12874
  k(() => {
12505
12875
  if (!d) return o.item(n, a == null ? void 0 : a.id);
12506
12876
  }, [
@@ -12521,7 +12891,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12521
12891
  ]);
12522
12892
  function y() {
12523
12893
  var e2, t2;
12524
- S(), (t2 = (e2 = c.current).onSelect) == null || t2.call(e2, f.current);
12894
+ S(), (t2 = (e2 = s.current).onSelect) == null || t2.call(e2, f.current);
12525
12895
  }
12526
12896
  function S() {
12527
12897
  h.setState("value", f.current, true);
@@ -12542,14 +12912,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12542
12912
  onClick: w ? void 0 : y
12543
12913
  }, e.children);
12544
12914
  }), Ee = import_react.forwardRef((e, t) => {
12545
- let { heading: n, children: i, forceMount: a, ...o } = e, c = useId$1(), d = import_react.useRef(null), f = import_react.useRef(null), h = useId$1(), _ = K$1(), v = P$1((e2) => a || _.filter() === false ? true : e2.search ? e2.filtered.groups.has(c) : true);
12546
- k(() => _.group(c), []), ve(c, d, [
12915
+ let { heading: n, children: i, forceMount: a, ...o } = e, s = useId$1(), d = import_react.useRef(null), f = import_react.useRef(null), h = useId$1(), _ = K$1(), v = P$1((e2) => a || _.filter() === false ? true : e2.search ? e2.filtered.groups.has(s) : true);
12916
+ k(() => _.group(s), []), ve(s, d, [
12547
12917
  e.value,
12548
12918
  e.heading,
12549
12919
  f
12550
12920
  ]);
12551
12921
  let y = import_react.useMemo(() => ({
12552
- id: c,
12922
+ id: s,
12553
12923
  forceMount: a
12554
12924
  }), [
12555
12925
  a
@@ -12607,10 +12977,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12607
12977
  }
12608
12978
  });
12609
12979
  }), Ce = import_react.forwardRef((e, t) => {
12610
- let { children: n, label: i = "Suggestions", ...a } = e, o = import_react.useRef(null), c = import_react.useRef(null), d = P$1((e2) => e2.selectedItemId), f = K$1();
12980
+ let { children: n, label: i = "Suggestions", ...a } = e, o = import_react.useRef(null), s = import_react.useRef(null), d = P$1((e2) => e2.selectedItemId), f = K$1();
12611
12981
  return import_react.useEffect(() => {
12612
- if (c.current && o.current) {
12613
- let e2 = c.current, t2 = o.current, n2, i2 = new ResizeObserver(() => {
12982
+ if (s.current && o.current) {
12983
+ let e2 = s.current, t2 = o.current, n2, i2 = new ResizeObserver(() => {
12614
12984
  n2 = requestAnimationFrame(() => {
12615
12985
  let n3 = e2.offsetHeight;
12616
12986
  t2.style.setProperty("--cmdk-list-height", n3.toFixed(1) + "px");
@@ -12630,7 +13000,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12630
13000
  "aria-label": i,
12631
13001
  id: f.listId
12632
13002
  }, B(e, (e2) => import_react.createElement("div", {
12633
- ref: composeRefs(c, f.listInnerRef),
13003
+ ref: composeRefs(s, f.listInnerRef),
12634
13004
  "cmdk-list-sizer": ""
12635
13005
  }, e2)));
12636
13006
  }), xe = import_react.forwardRef((e, t) => {
@@ -12768,10 +13138,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12768
13138
  function smartMatchFilter(e, t, n) {
12769
13139
  return smartMatch(t, e) ? 1 : n && smartMatch(t, n) ? 0.8 : 0;
12770
13140
  }
12771
- let import_compiler_runtime$28;
12772
- import_compiler_runtime$28 = require_compiler_runtime();
13141
+ let import_compiler_runtime$30;
13142
+ import_compiler_runtime$30 = require_compiler_runtime();
12773
13143
  Command = import_react.forwardRef((e, t) => {
12774
- let n = (0, import_compiler_runtime$28.c)(9), i, o;
13144
+ let n = (0, import_compiler_runtime$30.c)(9), i, o;
12775
13145
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
12776
13146
  let s;
12777
13147
  n[3] === i ? s = n[4] : (s = cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", i), n[3] = i, n[4] = s);
@@ -12785,7 +13155,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12785
13155
  });
12786
13156
  Command.displayName = _e.displayName;
12787
13157
  CommandInput = import_react.forwardRef((e, t) => {
12788
- let n = (0, import_compiler_runtime$28.c)(19), i, o, s, c;
13158
+ let n = (0, import_compiler_runtime$30.c)(19), i, o, s, c;
12789
13159
  n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, icon: o, rootClassName: c, ...s } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
12790
13160
  let d;
12791
13161
  n[5] === c ? d = n[6] : (d = cn("flex items-center border-b px-3", c), n[5] = c, n[6] = d);
@@ -12813,7 +13183,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12813
13183
  });
12814
13184
  CommandInput.displayName = _e.Input.displayName;
12815
13185
  CommandList = import_react.forwardRef((e, t) => {
12816
- let n = (0, import_compiler_runtime$28.c)(9), i, o;
13186
+ let n = (0, import_compiler_runtime$30.c)(9), i, o;
12817
13187
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
12818
13188
  let s;
12819
13189
  n[3] === i ? s = n[4] : (s = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", i), n[3] = i, n[4] = s);
@@ -12826,7 +13196,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12826
13196
  });
12827
13197
  CommandList.displayName = _e.List.displayName;
12828
13198
  CommandEmpty = import_react.forwardRef((e, t) => {
12829
- let n = (0, import_compiler_runtime$28.c)(3), i;
13199
+ let n = (0, import_compiler_runtime$30.c)(3), i;
12830
13200
  return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)(_e.Empty, {
12831
13201
  ref: t,
12832
13202
  className: "py-6 text-center text-sm",
@@ -12835,7 +13205,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12835
13205
  });
12836
13206
  CommandEmpty.displayName = _e.Empty.displayName;
12837
13207
  var CommandGroup = import_react.forwardRef((e, t) => {
12838
- let n = (0, import_compiler_runtime$28.c)(9), i, o;
13208
+ let n = (0, import_compiler_runtime$30.c)(9), i, o;
12839
13209
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
12840
13210
  let s;
12841
13211
  n[3] === i ? s = n[4] : (s = cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", i), n[3] = i, n[4] = s);
@@ -12848,7 +13218,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12848
13218
  });
12849
13219
  CommandGroup.displayName = _e.Group.displayName;
12850
13220
  CommandSeparator = import_react.forwardRef((e, t) => {
12851
- let n = (0, import_compiler_runtime$28.c)(9), i, a;
13221
+ let n = (0, import_compiler_runtime$30.c)(9), i, a;
12852
13222
  n[0] === e ? (i = n[1], a = n[2]) : ({ className: i, ...a } = e, n[0] = e, n[1] = i, n[2] = a);
12853
13223
  let o;
12854
13224
  n[3] === i ? o = n[4] : (o = menuSeparatorVariants({
@@ -12863,7 +13233,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12863
13233
  });
12864
13234
  CommandSeparator.displayName = _e.Separator.displayName;
12865
13235
  CommandItem = import_react.forwardRef((e, t) => {
12866
- let n = (0, import_compiler_runtime$28.c)(17), i, o, s, c, d;
13236
+ let n = (0, import_compiler_runtime$30.c)(17), i, o, s, c, d;
12867
13237
  if (n[0] !== t || n[1] !== e) {
12868
13238
  let { className: f2, variant: h, inset: _, ...v } = e;
12869
13239
  i = _e.Item, o = t, n[7] !== f2 || n[8] !== _ || n[9] !== h ? (s = cn(menuItemVariants({
@@ -12880,9 +13250,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12880
13250
  }), n[11] = i, n[12] = o, n[13] = s, n[14] = c, n[15] = d, n[16] = f) : f = n[16], f;
12881
13251
  });
12882
13252
  CommandItem.displayName = _e.Item.displayName;
12883
- var import_compiler_runtime$27 = require_compiler_runtime();
13253
+ var import_compiler_runtime$29 = require_compiler_runtime();
12884
13254
  const DraggablePopover = (e) => {
12885
- let t = (0, import_compiler_runtime$27.c)(25), n, i, a;
13255
+ let t = (0, import_compiler_runtime$29.c)(25), n, i, a;
12886
13256
  t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ children: n, className: i, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
12887
13257
  let o;
12888
13258
  t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
@@ -13122,7 +13492,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
13122
13492
  negate: false
13123
13493
  };
13124
13494
  };
13125
- var import_compiler_runtime$26 = require_compiler_runtime(), WHITESPACE_CHARS = {
13495
+ var import_compiler_runtime$28 = require_compiler_runtime(), WHITESPACE_CHARS = {
13126
13496
  " ": {
13127
13497
  marker: "\u2423",
13128
13498
  name: "space"
@@ -13198,7 +13568,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
13198
13568
  }
13199
13569
  };
13200
13570
  function WhitespaceMarkers(e) {
13201
- let t = (0, import_compiler_runtime$26.c)(7), { value: n } = e;
13571
+ let t = (0, import_compiler_runtime$28.c)(7), { value: n } = e;
13202
13572
  if (!n) return null;
13203
13573
  let i;
13204
13574
  t[0] === n ? i = t[1] : (i = describeWhitespace(n), t[0] = n, t[1] = i);
@@ -13213,7 +13583,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
13213
13583
  }), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
13214
13584
  }
13215
13585
  function SentinelCell(e) {
13216
- let t = (0, import_compiler_runtime$26.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
13586
+ let t = (0, import_compiler_runtime$28.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
13217
13587
  t[0] !== i || t[1] !== n.value ? (a = i.label(n.value), t[0] = i, t[1] = n.value, t[2] = a) : a = t[2];
13218
13588
  let o = a, s;
13219
13589
  t[3] !== i || t[4] !== n.value ? (s = i.tooltip(n.value), t[3] = i, t[4] = n.value, t[5] = s) : s = t[5];
@@ -15277,7 +15647,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
15277
15647
  ],
15278
15648
  unknown: []
15279
15649
  };
15280
- var import_compiler_runtime$25 = require_compiler_runtime();
15650
+ var import_compiler_runtime$27 = require_compiler_runtime();
15281
15651
  function renderFormatOptions(e, t) {
15282
15652
  var _a2, _b, _c;
15283
15653
  let n = (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dataType, i = n ? formatOptions[n] : [];
@@ -15476,7 +15846,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
15476
15846
  }) : null;
15477
15847
  }
15478
15848
  const ClearFilterMenuItem = (e) => {
15479
- let t = (0, import_compiler_runtime$25.c)(5), { column: n } = e, i;
15849
+ let t = (0, import_compiler_runtime$27.c)(5), { column: n } = e, i;
15480
15850
  t[0] === n ? i = t[1] : (i = () => n.setFilterValue(void 0), t[0] = n, t[1] = i);
15481
15851
  let a;
15482
15852
  t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(FunnelX, {
@@ -15506,7 +15876,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
15506
15876
  });
15507
15877
  }
15508
15878
  const FilterButtons = (e) => {
15509
- let t = (0, import_compiler_runtime$25.c)(8), { onApply: n, onClear: i, clearButtonDisabled: a } = e, o;
15879
+ let t = (0, import_compiler_runtime$27.c)(8), { onApply: n, onClear: i, clearButtonDisabled: a } = e, o;
15510
15880
  t[0] === n ? o = t[1] : (o = (0, import_jsx_runtime.jsx)(Button, {
15511
15881
  variant: "link",
15512
15882
  size: "sm",
@@ -15531,9 +15901,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
15531
15901
  ]
15532
15902
  }), t[5] = o, t[6] = s, t[7] = c) : c = t[7], c;
15533
15903
  };
15534
- var import_compiler_runtime$24 = require_compiler_runtime();
15904
+ var import_compiler_runtime$26 = require_compiler_runtime();
15535
15905
  const MimeCell = (e) => {
15536
- let t = (0, import_compiler_runtime$24.c)(6), { value: n } = e, i;
15906
+ let t = (0, import_compiler_runtime$26.c)(6), { value: n } = e, i;
15537
15907
  t[0] !== n.data || t[1] !== n.mimetype ? (i = {
15538
15908
  channel: "output",
15539
15909
  data: n.data,
@@ -16024,18 +16394,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16024
16394
  ]
16025
16395
  });
16026
16396
  }, PopoverFilterByValues = ({ setIsFilterValueOpen: e, calculateTopKRows: t, column: i }) => {
16027
- let [a, o] = (0, import_react.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, import_react.useState)(""), { data: f, isPending: h, error: _ } = useAsyncData(async () => t ? (await t({
16397
+ let [a, o] = (0, import_react.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, import_react.useState)(""), { data: d, isPending: h, error: _ } = useAsyncData(async () => t ? (await t({
16028
16398
  column: i.id,
16029
16399
  k: TOP_K_ROWS
16030
16400
  })).data : null, []), v = (0, import_react.useMemo)(() => {
16031
- if (!f) return [];
16401
+ if (!d) return [];
16032
16402
  try {
16033
- return f.filter(([e2, t2]) => e2 === void 0 ? false : String(e2).toLowerCase().includes(s.toLowerCase()));
16403
+ return d.filter(([e2, t2]) => e2 === void 0 ? false : String(e2).toLowerCase().includes(s.toLowerCase()));
16034
16404
  } catch (e2) {
16035
16405
  return Logger.error("Error filtering data", e2), [];
16036
16406
  }
16037
16407
  }, [
16038
- f,
16408
+ d,
16039
16409
  s
16040
16410
  ]), y;
16041
16411
  h && (y = (0, import_jsx_runtime.jsx)(Spinner, {
@@ -16051,7 +16421,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16051
16421
  return n ? i2.delete(e2) : i2.add(e2), i2;
16052
16422
  });
16053
16423
  }, w = (e2) => {
16054
- f && o(e2 ? new Set(v.map(([e3]) => e3)) : /* @__PURE__ */ new Set());
16424
+ d && o(e2 ? new Set(v.map(([e3]) => e3)) : /* @__PURE__ */ new Set());
16055
16425
  }, E = () => {
16056
16426
  if (a.size === 0) {
16057
16427
  i.setFilterValue(void 0);
@@ -16064,7 +16434,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16064
16434
  operator: "in"
16065
16435
  }));
16066
16436
  };
16067
- if (f) {
16437
+ if (d) {
16068
16438
  let e2 = a.size === v.length;
16069
16439
  y = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
16070
16440
  children: [
@@ -16073,7 +16443,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16073
16443
  shouldFilter: false,
16074
16444
  children: [
16075
16445
  (0, import_jsx_runtime.jsx)(CommandInput, {
16076
- placeholder: `Search among the top ${f.length} values`,
16446
+ placeholder: `Search among the top ${d.length} values`,
16077
16447
  autoFocus: true,
16078
16448
  onValueChange: (e3) => c(e3.trim())
16079
16449
  }),
@@ -16216,9 +16586,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16216
16586
  let [t, n] = import_react.useState(e), [i, a] = import_react.useState(null);
16217
16587
  return e !== t && (a(t), n(e)), i;
16218
16588
  };
16219
- var import_compiler_runtime$23 = require_compiler_runtime();
16589
+ var import_compiler_runtime$25 = require_compiler_runtime();
16220
16590
  DelayMount = (e) => {
16221
- let t = (0, import_compiler_runtime$23.c)(13), { milliseconds: n, children: i, fallback: a, visibility: o, threshold: s, rootMargin: c } = e, d = o === void 0 ? false : o, f = s === void 0 ? 0 : s, h = c === void 0 ? "0px" : c, [_, v] = (0, import_react.useState)(false), [y, S] = (0, import_react.useState)(false), w;
16591
+ let t = (0, import_compiler_runtime$25.c)(13), { milliseconds: n, children: i, fallback: a, visibility: o, threshold: s, rootMargin: c } = e, d = o === void 0 ? false : o, f = s === void 0 ? 0 : s, h = c === void 0 ? "0px" : c, [_, v] = (0, import_react.useState)(false), [y, S] = (0, import_react.useState)(false), w;
16222
16592
  t[0] !== h || t[1] !== f ? (w = {
16223
16593
  threshold: f,
16224
16594
  root: null,
@@ -16243,15 +16613,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16243
16613
  }, U = [
16244
16614
  n
16245
16615
  ], t[7] = n, t[8] = z, t[9] = U), (0, import_react.useEffect)(z, U);
16246
- let K = d && !y ? false : _, oj = d ? E : null, q = K ? i : a, J;
16247
- return t[10] !== oj || t[11] !== q ? (J = (0, import_jsx_runtime.jsx)("div", {
16248
- ref: oj,
16249
- children: q
16250
- }), t[10] = oj, t[11] = q, t[12] = J) : J = t[12], J;
16616
+ let K = d && !y ? false : _, q = d ? E : null, J = K ? i : a, Q;
16617
+ return t[10] !== q || t[11] !== J ? (Q = (0, import_jsx_runtime.jsx)("div", {
16618
+ ref: q,
16619
+ children: J
16620
+ }), t[10] = q, t[11] = J, t[12] = Q) : Q = t[12], Q;
16251
16621
  };
16252
- var import_compiler_runtime$22 = require_compiler_runtime();
16622
+ var import_compiler_runtime$24 = require_compiler_runtime();
16253
16623
  const DatePopover = (e) => {
16254
- let t = (0, import_compiler_runtime$22.c)(15), { date: n, type: i, children: a } = e;
16624
+ let t = (0, import_compiler_runtime$24.c)(15), { date: n, type: i, children: a } = e;
16255
16625
  if (!n || Number.isNaN(new Date(n).getTime())) return a;
16256
16626
  let o;
16257
16627
  t[0] === n ? o = t[1] : (o = new Date(n), t[0] = n, t[1] = o);
@@ -16291,7 +16661,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16291
16661
  }), t[12] = h, t[13] = _, t[14] = v) : v = t[14], v;
16292
16662
  };
16293
16663
  var TimezoneDisplay = (e) => {
16294
- let t = (0, import_compiler_runtime$22.c)(26), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
16664
+ let t = (0, import_compiler_runtime$24.c)(26), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
16295
16665
  t[0] === i ? a = t[1] : (a = Intl.DateTimeFormat(i).resolvedOptions(), t[0] = i, t[1] = a);
16296
16666
  let o = a.timeZone, s = n.getUTCMilliseconds() !== 0, c;
16297
16667
  t[2] === s ? c = t[3] : (c = s ? {
@@ -16367,7 +16737,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16367
16737
  ]
16368
16738
  }), t[23] = O, t[24] = y, t[25] = A) : A = t[25], A;
16369
16739
  }, DateDisplay = (e) => {
16370
- let t = (0, import_compiler_runtime$22.c)(6), { date: n } = e, i;
16740
+ let t = (0, import_compiler_runtime$24.c)(6), { date: n } = e, i;
16371
16741
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
16372
16742
  timeZone: "UTC",
16373
16743
  dateStyle: "long"
@@ -16379,7 +16749,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16379
16749
  children: o
16380
16750
  }), t[4] = o, t[5] = s), s;
16381
16751
  }, RelativeTime = (e) => {
16382
- let t = (0, import_compiler_runtime$22.c)(6), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a, o;
16752
+ let t = (0, import_compiler_runtime$24.c)(6), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a, o;
16383
16753
  if (t[0] !== n || t[1] !== i) {
16384
16754
  o = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
16385
16755
  bb0: {
@@ -16431,7 +16801,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16431
16801
  return t[4] === a ? s = t[5] : (s = (0, import_jsx_runtime.jsx)("span", {
16432
16802
  children: a
16433
16803
  }), t[4] = a, t[5] = s), s;
16434
- }, import_compiler_runtime$21 = require_compiler_runtime(), hashString = (e) => {
16804
+ }, import_compiler_runtime$23 = require_compiler_runtime(), hashString = (e) => {
16435
16805
  let t = 0;
16436
16806
  for (let n = 0; n < e.length; n++) {
16437
16807
  let i = e.charCodeAt(n);
@@ -16448,7 +16818,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16448
16818
  return i;
16449
16819
  };
16450
16820
  const ChartSkeleton = (e) => {
16451
- let t = (0, import_compiler_runtime$21.c)(11), { seed: n, width: i, height: a } = e, o = i / 9, s = a - 15, c;
16821
+ let t = (0, import_compiler_runtime$23.c)(11), { seed: n, width: i, height: a } = e, o = i / 9, s = a - 15, c;
16452
16822
  if (t[0] !== o || t[1] !== a || t[2] !== n || t[3] !== s || t[4] !== i) {
16453
16823
  let e2 = generateHeights({
16454
16824
  numBars: 9,
@@ -16827,7 +17197,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16827
17197
  let c = s / t.length;
16828
17198
  return Math.max(c, 1);
16829
17199
  }
16830
- let MAX_BAR_HEIGHT, BIN_END_EXTENSION_FACTOR, CONCAT_CHART_HEIGHT, CONCAT_CHART_WIDTH, CONCAT_NULL_BAR_WIDTH, BAR_COLOR, UNHOVERED_BAR_OPACITY, NULL_BAR_COLOR, import_compiler_runtime$20;
17200
+ let MAX_BAR_HEIGHT, BIN_END_EXTENSION_FACTOR, CONCAT_CHART_HEIGHT, CONCAT_CHART_WIDTH, CONCAT_NULL_BAR_WIDTH, BAR_COLOR, UNHOVERED_BAR_OPACITY, NULL_BAR_COLOR, import_compiler_runtime$22;
16831
17201
  MAX_BAR_HEIGHT = 20;
16832
17202
  BIN_END_EXTENSION_FACTOR = 0.1;
16833
17203
  CONCAT_CHART_HEIGHT = 30;
@@ -17464,11 +17834,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17464
17834
  }, __publicField(_a, "EMPTY", new _a([], /* @__PURE__ */ new Map(), {}, {}, {}, {
17465
17835
  includeCharts: false
17466
17836
  })), _a);
17467
- import_compiler_runtime$20 = require_compiler_runtime();
17837
+ import_compiler_runtime$22 = require_compiler_runtime();
17468
17838
  ColumnChartContext = import_react.createContext(ColumnChartSpecModel.EMPTY);
17469
17839
  var batchedLoader = createBatchedLoader();
17470
17840
  const TableColumnSummary = (e) => {
17471
- let t = (0, import_compiler_runtime$20.c)(21), { columnId: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a = import_react.use(ColumnChartContext), { theme: o } = useTheme(), s, c, d;
17841
+ let t = (0, import_compiler_runtime$22.c)(21), { columnId: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a = import_react.use(ColumnChartContext), { theme: o } = useTheme(), s, c, d;
17472
17842
  if (t[0] !== a || t[1] !== n || t[2] !== i || t[3] !== o) {
17473
17843
  let { spec: e2, type: f2, stats: h } = a.getHeaderSummary(n), _ = null;
17474
17844
  if (e2) {
@@ -17679,8 +18049,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17679
18049
  let a = e.at(-1);
17680
18050
  return n.push(a), n;
17681
18051
  }
17682
- var import_compiler_runtime$19 = require_compiler_runtime(), ImageWithFallback = (e) => {
17683
- let t = (0, import_compiler_runtime$19.c)(14), { url: n } = e, [i, a] = (0, import_react.useState)(false), [o, s] = (0, import_react.useState)(false);
18052
+ var import_compiler_runtime$21 = require_compiler_runtime(), ImageWithFallback = (e) => {
18053
+ let t = (0, import_compiler_runtime$21.c)(14), { url: n } = e, [i, a] = (0, import_react.useState)(false), [o, s] = (0, import_react.useState)(false);
17684
18054
  if (i) {
17685
18055
  let e2;
17686
18056
  return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(URLAnchor, {
@@ -17754,7 +18124,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17754
18124
  return t.some((e2) => n.has(e2.type));
17755
18125
  }
17756
18126
  const MarkdownUrlDetector = (e) => {
17757
- let t = (0, import_compiler_runtime$19.c)(4), { content: n, parts: i } = e;
18127
+ let t = (0, import_compiler_runtime$21.c)(4), { content: n, parts: i } = e;
17758
18128
  if (isMarkdown(n)) {
17759
18129
  let e2;
17760
18130
  return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(MarkdownRenderer, {
@@ -17771,7 +18141,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17771
18141
  url: e2.url
17772
18142
  }, t) : e2.value);
17773
18143
  var URLAnchor = (e) => {
17774
- let t = (0, import_compiler_runtime$19.c)(3), { url: n } = e, i;
18144
+ let t = (0, import_compiler_runtime$21.c)(3), { url: n } = e, i;
17775
18145
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = Events.stopPropagation(), t[0] = i) : i = t[0];
17776
18146
  let a;
17777
18147
  return t[1] === n ? a = t[2] : (a = (0, import_jsx_runtime.jsx)("a", {
@@ -17936,7 +18306,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17936
18306
  enableHiding: false
17937
18307
  }), O;
17938
18308
  };
17939
- var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: o, buttonText: s, wrapped: c, children: f }) => {
18309
+ var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: o, buttonText: s, wrapped: c, children: d }) => {
17940
18310
  let h = i !== void 0 && (i.leading.length > 0 || i.trailing.length > 0) ? n.slice(i.leading.length, n.length - i.trailing.length) : n;
17941
18311
  return (0, import_jsx_runtime.jsx)(EmotionCacheProvider, {
17942
18312
  container: null,
@@ -17984,7 +18354,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17984
18354
  })
17985
18355
  ]
17986
18356
  }),
17987
- f
18357
+ d
17988
18358
  ]
17989
18359
  })
17990
18360
  ]
@@ -18163,10 +18533,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18163
18533
  maximumFractionDigits: maxFractionalDigits(n)
18164
18534
  }).format(e);
18165
18535
  };
18166
- let import_compiler_runtime$18;
18167
- import_compiler_runtime$18 = require_compiler_runtime();
18536
+ let import_compiler_runtime$20;
18537
+ import_compiler_runtime$20 = require_compiler_runtime();
18168
18538
  Table = import_react.forwardRef((e, t) => {
18169
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18539
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18170
18540
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18171
18541
  let s;
18172
18542
  n[3] === i ? s = n[4] : (s = cn("w-full caption-bottom text-sm", i), n[3] = i, n[4] = s);
@@ -18182,7 +18552,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18182
18552
  });
18183
18553
  Table.displayName = "Table";
18184
18554
  TableHeader = import_react.forwardRef((e, t) => {
18185
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18555
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18186
18556
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18187
18557
  let s;
18188
18558
  n[3] === i ? s = n[4] : (s = cn("[&_tr]:border-b bg-background", i), n[3] = i, n[4] = s);
@@ -18195,7 +18565,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18195
18565
  });
18196
18566
  TableHeader.displayName = "TableHeader";
18197
18567
  TableBody = import_react.forwardRef((e, t) => {
18198
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18568
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18199
18569
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18200
18570
  let s;
18201
18571
  n[3] === i ? s = n[4] : (s = cn("[&_tr:last-child]:border-0", i), n[3] = i, n[4] = s);
@@ -18208,7 +18578,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18208
18578
  });
18209
18579
  TableBody.displayName = "TableBody";
18210
18580
  var TableFooter = import_react.forwardRef((e, t) => {
18211
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18581
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18212
18582
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18213
18583
  let s;
18214
18584
  n[3] === i ? s = n[4] : (s = cn("bg-primary font-medium text-primary-foreground", i), n[3] = i, n[4] = s);
@@ -18221,7 +18591,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18221
18591
  });
18222
18592
  TableFooter.displayName = "TableFooter";
18223
18593
  TableRow = import_react.forwardRef((e, t) => {
18224
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18594
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18225
18595
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18226
18596
  let s;
18227
18597
  n[3] === i ? s = n[4] : (s = cn("border-b transition-colors bg-background hover:bg-(--slate-2) data-[state=selected]:bg-(--slate-3)", i), n[3] = i, n[4] = s);
@@ -18234,7 +18604,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18234
18604
  });
18235
18605
  TableRow.displayName = "TableRow";
18236
18606
  TableHead = import_react.forwardRef((e, t) => {
18237
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18607
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18238
18608
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18239
18609
  let s;
18240
18610
  n[3] === i ? s = n[4] : (s = cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
@@ -18247,7 +18617,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18247
18617
  });
18248
18618
  TableHead.displayName = "TableHead";
18249
18619
  TableCell = import_react.forwardRef((e, t) => {
18250
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18620
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18251
18621
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18252
18622
  let s;
18253
18623
  n[3] === i ? s = n[4] : (s = cn("p-1.5 align-middle [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
@@ -18260,7 +18630,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18260
18630
  });
18261
18631
  TableCell.displayName = "TableCell";
18262
18632
  var TableCaption = import_react.forwardRef((e, t) => {
18263
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18633
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18264
18634
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18265
18635
  let s;
18266
18636
  n[3] === i ? s = n[4] : (s = cn("mt-4 text-sm text-muted-foreground", i), n[3] = i, n[4] = s);
@@ -18473,7 +18843,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18473
18843
  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 }) {
18474
18844
  let E = (0, import_react.useContext)(PanelGroupContext);
18475
18845
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
18476
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: oj, resizePanel: q, unregisterPanel: J } = E, sj = useUniqueId(s), Q = (0, import_react.useRef)({
18846
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, vM = useUniqueId(s), $ = (0, import_react.useRef)({
18477
18847
  callbacks: {
18478
18848
  onCollapse: f,
18479
18849
  onExpand: h,
@@ -18486,72 +18856,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18486
18856
  maxSize: c,
18487
18857
  minSize: d
18488
18858
  },
18489
- id: sj,
18859
+ id: vM,
18490
18860
  idIsFromProps: s !== void 0,
18491
18861
  order: v
18492
18862
  });
18493
18863
  (0, import_react.useRef)({
18494
18864
  didLogMissingDefaultSizeWarning: false
18495
18865
  }), useIsomorphicLayoutEffect$1(() => {
18496
- let { callbacks: e2, constraints: t2 } = Q.current, o2 = {
18866
+ let { callbacks: e2, constraints: t2 } = $.current, o2 = {
18497
18867
  ...t2
18498
18868
  };
18499
- Q.current.id = sj, Q.current.idIsFromProps = s !== void 0, Q.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(Q.current, o2);
18869
+ $.current.id = vM, $.current.idIsFromProps = s !== void 0, $.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($.current, o2);
18500
18870
  }), useIsomorphicLayoutEffect$1(() => {
18501
- let e2 = Q.current;
18502
- return oj(e2), () => {
18503
- J(e2);
18871
+ let e2 = $.current;
18872
+ return q(e2), () => {
18873
+ Q(e2);
18504
18874
  };
18505
18875
  }, [
18506
18876
  v,
18507
- sj,
18508
- oj,
18509
- J
18877
+ vM,
18878
+ q,
18879
+ Q
18510
18880
  ]), (0, import_react.useImperativeHandle)(o, () => ({
18511
18881
  collapse: () => {
18512
- O(Q.current);
18882
+ O($.current);
18513
18883
  },
18514
18884
  expand: (e2) => {
18515
- A(Q.current, e2);
18885
+ A($.current, e2);
18516
18886
  },
18517
18887
  getId() {
18518
- return sj;
18888
+ return vM;
18519
18889
  },
18520
18890
  getSize() {
18521
- return M(Q.current);
18891
+ return M($.current);
18522
18892
  },
18523
18893
  isCollapsed() {
18524
- return U(Q.current);
18894
+ return U($.current);
18525
18895
  },
18526
18896
  isExpanded() {
18527
- return !U(Q.current);
18897
+ return !U($.current);
18528
18898
  },
18529
18899
  resize: (e2) => {
18530
- q(Q.current, e2);
18900
+ J($.current, e2);
18531
18901
  }
18532
18902
  }), [
18533
18903
  O,
18534
18904
  A,
18535
18905
  M,
18536
18906
  U,
18537
- sj,
18538
- q
18907
+ vM,
18908
+ J
18539
18909
  ]);
18540
- let cj = I(Q.current, a);
18910
+ let yM = I($.current, a);
18541
18911
  return (0, import_react.createElement)(S, {
18542
18912
  ...w,
18543
18913
  children: e,
18544
18914
  className: t,
18545
- id: sj,
18915
+ id: vM,
18546
18916
  style: {
18547
- ...cj,
18917
+ ...yM,
18548
18918
  ...y
18549
18919
  },
18550
18920
  [DATA_ATTRIBUTES.groupId]: z,
18551
18921
  [DATA_ATTRIBUTES.panel]: "",
18552
18922
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
18553
- [DATA_ATTRIBUTES.panelId]: sj,
18554
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + cj.flexGrow).toFixed(1)
18923
+ [DATA_ATTRIBUTES.panelId]: vM,
18924
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + yM.flexGrow).toFixed(1)
18555
18925
  });
18556
18926
  }
18557
18927
  var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -19288,7 +19658,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19288
19658
  d
19289
19659
  ]), (0, import_react.useEffect)(() => {
19290
19660
  });
19291
- let oj = (0, import_react.useCallback)((e2) => {
19661
+ let q = (0, import_react.useCallback)((e2) => {
19292
19662
  let { onLayout: t2 } = U.current, { layout: n2, panelDataArray: i2 } = K.current;
19293
19663
  if (e2.constraints.collapsible) {
19294
19664
  let a2 = i2.map((e3) => e3.constraints), { collapsedSize: o2 = 0, panelSize: s2, pivotIndices: c2 } = panelDataHelper(i2, e2, n2);
@@ -19305,7 +19675,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19305
19675
  compareLayouts(n2, d2) || (O(d2), K.current.layout = d2, t2 && t2(d2), callPanelCallbacks(i2, d2, M.current));
19306
19676
  }
19307
19677
  }
19308
- }, []), q = (0, import_react.useCallback)((e2, t2) => {
19678
+ }, []), J = (0, import_react.useCallback)((e2, t2) => {
19309
19679
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current;
19310
19680
  if (e2.constraints.collapsible) {
19311
19681
  let o2 = a2.map((e3) => e3.constraints), { collapsedSize: s2 = 0, panelSize: c2 = 0, minSize: d2 = 0, pivotIndices: f2 } = panelDataHelper(a2, e2, i2), h2 = t2 ?? d2;
@@ -19321,10 +19691,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19321
19691
  compareLayouts(i2, d3) || (O(d3), K.current.layout = d3, n2 && n2(d3), callPanelCallbacks(a2, d3, M.current));
19322
19692
  }
19323
19693
  }
19324
- }, []), J = (0, import_react.useCallback)((e2) => {
19694
+ }, []), Q = (0, import_react.useCallback)((e2) => {
19325
19695
  let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
19326
19696
  return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
19327
- }, []), sj = (0, import_react.useCallback)((e2, t2) => {
19697
+ }, []), vM = (0, import_react.useCallback)((e2, t2) => {
19328
19698
  let { panelDataArray: n2 } = K.current;
19329
19699
  return computePanelFlexBoxStyle({
19330
19700
  defaultSize: t2,
@@ -19336,13 +19706,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19336
19706
  }, [
19337
19707
  S,
19338
19708
  E
19339
- ]), Q = (0, import_react.useCallback)((e2) => {
19709
+ ]), $ = (0, import_react.useCallback)((e2) => {
19340
19710
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19341
19711
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
19342
- }, []), cj = (0, import_react.useCallback)((e2) => {
19712
+ }, []), yM = (0, import_react.useCallback)((e2) => {
19343
19713
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19344
19714
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
19345
- }, []), $ = (0, import_react.useCallback)((e2) => {
19715
+ }, []), bM = (0, import_react.useCallback)((e2) => {
19346
19716
  let { panelDataArray: t2 } = K.current;
19347
19717
  t2.push(e2), t2.sort((e3, t3) => {
19348
19718
  let n2 = e3.order, i2 = t3.order;
@@ -19374,7 +19744,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19374
19744
  e2.layout = [];
19375
19745
  };
19376
19746
  }, []);
19377
- let lj = (0, import_react.useCallback)((e2) => {
19747
+ let xM = (0, import_react.useCallback)((e2) => {
19378
19748
  let t2 = false, n2 = y.current;
19379
19749
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
19380
19750
  n3.preventDefault();
@@ -19392,7 +19762,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19392
19762
  }), I2 = !compareLayouts(f2, A2);
19393
19763
  (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));
19394
19764
  };
19395
- }, []), uj = (0, import_react.useCallback)((e2, t2) => {
19765
+ }, []), SM = (0, import_react.useCallback)((e2, t2) => {
19396
19766
  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);
19397
19767
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
19398
19768
  let d2 = adjustLayoutByDelta({
@@ -19404,12 +19774,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19404
19774
  trigger: "imperative-api"
19405
19775
  });
19406
19776
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
19407
- }, []), dj = (0, import_react.useCallback)((e2, t2) => {
19777
+ }, []), CM = (0, import_react.useCallback)((e2, t2) => {
19408
19778
  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);
19409
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || uj(e2, s2) : h2 < f2 ? uj(e2, f2) : h2 > d2 && uj(e2, d2));
19779
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || SM(e2, s2) : h2 < f2 ? SM(e2, f2) : h2 > d2 && SM(e2, d2));
19410
19780
  }, [
19411
- uj
19412
- ]), fj = (0, import_react.useCallback)((e2, t2) => {
19781
+ SM
19782
+ ]), wM = (0, import_react.useCallback)((e2, t2) => {
19413
19783
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
19414
19784
  if (!y.current) return;
19415
19785
  let a2 = getResizeHandleElement(e2, y.current);
@@ -19421,49 +19791,49 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19421
19791
  initialCursorPosition: o2,
19422
19792
  initialLayout: i2
19423
19793
  });
19424
- }, []), pj = (0, import_react.useCallback)(() => {
19794
+ }, []), TM = (0, import_react.useCallback)(() => {
19425
19795
  w(null);
19426
- }, []), mj = (0, import_react.useCallback)((e2) => {
19796
+ }, []), EM = (0, import_react.useCallback)((e2) => {
19427
19797
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
19428
19798
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
19429
19799
  }, [
19430
19800
  A
19431
- ]), hj = (0, import_react.useMemo)(() => ({
19432
- collapsePanel: oj,
19801
+ ]), DM = (0, import_react.useMemo)(() => ({
19802
+ collapsePanel: q,
19433
19803
  direction: i,
19434
19804
  dragState: S,
19435
- expandPanel: q,
19436
- getPanelSize: J,
19437
- getPanelStyle: sj,
19805
+ expandPanel: J,
19806
+ getPanelSize: Q,
19807
+ getPanelStyle: vM,
19438
19808
  groupId: v,
19439
- isPanelCollapsed: Q,
19440
- isPanelExpanded: cj,
19441
- reevaluatePanelConstraints: dj,
19442
- registerPanel: $,
19443
- registerResizeHandle: lj,
19444
- resizePanel: uj,
19445
- startDragging: fj,
19446
- stopDragging: pj,
19447
- unregisterPanel: mj,
19809
+ isPanelCollapsed: $,
19810
+ isPanelExpanded: yM,
19811
+ reevaluatePanelConstraints: CM,
19812
+ registerPanel: bM,
19813
+ registerResizeHandle: xM,
19814
+ resizePanel: SM,
19815
+ startDragging: wM,
19816
+ stopDragging: TM,
19817
+ unregisterPanel: EM,
19448
19818
  panelGroupElement: y.current
19449
19819
  }), [
19450
- oj,
19820
+ q,
19451
19821
  S,
19452
19822
  i,
19453
- q,
19454
19823
  J,
19455
- sj,
19456
- v,
19457
19824
  Q,
19458
- cj,
19459
- dj,
19825
+ vM,
19826
+ v,
19460
19827
  $,
19461
- lj,
19462
- uj,
19463
- fj,
19464
- pj,
19465
- mj
19466
- ]), gj = {
19828
+ yM,
19829
+ CM,
19830
+ bM,
19831
+ xM,
19832
+ SM,
19833
+ wM,
19834
+ TM,
19835
+ EM
19836
+ ]), OM = {
19467
19837
  display: "flex",
19468
19838
  flexDirection: i === "horizontal" ? "row" : "column",
19469
19839
  height: "100%",
@@ -19471,7 +19841,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19471
19841
  width: "100%"
19472
19842
  };
19473
19843
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
19474
- value: hj
19844
+ value: DM
19475
19845
  }, (0, import_react.createElement)(h, {
19476
19846
  ..._,
19477
19847
  children: t,
@@ -19479,7 +19849,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19479
19849
  id: o,
19480
19850
  ref: y,
19481
19851
  style: {
19482
- ...gj,
19852
+ ...OM,
19483
19853
  ...f
19484
19854
  },
19485
19855
  [DATA_ATTRIBUTES.group]: "",
@@ -19556,50 +19926,50 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19556
19926
  });
19557
19927
  let O = (0, import_react.useContext)(PanelGroupContext);
19558
19928
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
19559
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, oj = useUniqueId(a), [q, J] = (0, import_react.useState)("inactive"), [sj, Q] = (0, import_react.useState)(false), [cj, $] = (0, import_react.useState)(null), lj = (0, import_react.useRef)({
19560
- state: q
19929
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [vM, $] = (0, import_react.useState)(false), [yM, bM] = (0, import_react.useState)(null), xM = (0, import_react.useRef)({
19930
+ state: J
19561
19931
  });
19562
19932
  useIsomorphicLayoutEffect$1(() => {
19563
- lj.current.state = q;
19933
+ xM.current.state = J;
19564
19934
  }), (0, import_react.useEffect)(() => {
19565
- if (n) $(null);
19935
+ if (n) bM(null);
19566
19936
  else {
19567
- let e2 = I(oj);
19568
- $(() => e2);
19937
+ let e2 = I(q);
19938
+ bM(() => e2);
19569
19939
  }
19570
19940
  }, [
19571
19941
  n,
19572
- oj,
19942
+ q,
19573
19943
  I
19574
19944
  ]);
19575
- let uj = (i == null ? void 0 : i.coarse) ?? 15, dj = (i == null ? void 0 : i.fine) ?? 5;
19945
+ let SM = (i == null ? void 0 : i.coarse) ?? 15, CM = (i == null ? void 0 : i.fine) ?? 5;
19576
19946
  (0, import_react.useEffect)(() => {
19577
- if (n || cj == null) return;
19947
+ if (n || yM == null) return;
19578
19948
  let e2 = w.current;
19579
19949
  assert(e2, "Element ref not attached");
19580
19950
  let t2 = false;
19581
- return registerResizeHandle(oj, e2, A, {
19582
- coarse: uj,
19583
- fine: dj
19951
+ return registerResizeHandle(q, e2, A, {
19952
+ coarse: SM,
19953
+ fine: CM
19584
19954
  }, (e3, n2, i2) => {
19585
19955
  if (!n2) {
19586
- J("inactive");
19956
+ Q("inactive");
19587
19957
  return;
19588
19958
  }
19589
19959
  switch (e3) {
19590
19960
  case "down": {
19591
- J("drag"), t2 = false, assert(i2, 'Expected event to be defined for "down" action'), z(oj, i2);
19961
+ Q("drag"), t2 = false, assert(i2, 'Expected event to be defined for "down" action'), z(q, i2);
19592
19962
  let { onDragging: e4, onPointerDown: n3 } = E.current;
19593
19963
  e4 == null ? void 0 : e4(true), n3 == null ? void 0 : n3();
19594
19964
  break;
19595
19965
  }
19596
19966
  case "move": {
19597
- let { state: e4 } = lj.current;
19598
- t2 = true, e4 !== "drag" && J("hover"), assert(i2, 'Expected event to be defined for "move" action'), cj(i2);
19967
+ let { state: e4 } = xM.current;
19968
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), yM(i2);
19599
19969
  break;
19600
19970
  }
19601
19971
  case "up": {
19602
- J("hover"), U();
19972
+ Q("hover"), U();
19603
19973
  let { onClick: e4, onDragging: n3, onPointerUp: i3 } = E.current;
19604
19974
  n3 == null ? void 0 : n3(false), i3 == null ? void 0 : i3(), t2 || (e4 == null ? void 0 : e4());
19605
19975
  break;
@@ -19607,22 +19977,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19607
19977
  }
19608
19978
  });
19609
19979
  }, [
19610
- uj,
19980
+ SM,
19611
19981
  A,
19612
19982
  n,
19613
- dj,
19983
+ CM,
19614
19984
  I,
19615
- oj,
19616
- cj,
19985
+ q,
19986
+ yM,
19617
19987
  z,
19618
19988
  U
19619
19989
  ]), useWindowSplitterResizeHandlerBehavior({
19620
19990
  disabled: n,
19621
- handleId: oj,
19622
- resizeHandler: cj,
19991
+ handleId: q,
19992
+ resizeHandler: yM,
19623
19993
  panelGroupElement: K
19624
19994
  });
19625
- let fj = {
19995
+ let wM = {
19626
19996
  touchAction: "none",
19627
19997
  userSelect: "none"
19628
19998
  };
@@ -19632,30 +20002,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19632
20002
  className: t,
19633
20003
  id: a,
19634
20004
  onBlur: () => {
19635
- Q(false), o == null ? void 0 : o();
20005
+ $(false), o == null ? void 0 : o();
19636
20006
  },
19637
20007
  onFocus: () => {
19638
- Q(true), d == null ? void 0 : d();
20008
+ $(true), d == null ? void 0 : d();
19639
20009
  },
19640
20010
  ref: w,
19641
20011
  role: "separator",
19642
20012
  style: {
19643
- ...fj,
20013
+ ...wM,
19644
20014
  ..._
19645
20015
  },
19646
20016
  tabIndex: v,
19647
20017
  [DATA_ATTRIBUTES.groupDirection]: A,
19648
20018
  [DATA_ATTRIBUTES.groupId]: M,
19649
20019
  [DATA_ATTRIBUTES.resizeHandle]: "",
19650
- [DATA_ATTRIBUTES.resizeHandleActive]: q === "drag" ? "pointer" : sj ? "keyboard" : void 0,
20020
+ [DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : vM ? "keyboard" : void 0,
19651
20021
  [DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
19652
- [DATA_ATTRIBUTES.resizeHandleId]: oj,
19653
- [DATA_ATTRIBUTES.resizeHandleState]: q
20022
+ [DATA_ATTRIBUTES.resizeHandleId]: q,
20023
+ [DATA_ATTRIBUTES.resizeHandleState]: J
19654
20024
  });
19655
20025
  }
19656
20026
  PanelResizeHandle.displayName = "PanelResizeHandle";
19657
- let import_compiler_runtime$17, toggleVariants;
19658
- import_compiler_runtime$17 = require_compiler_runtime();
20027
+ let import_compiler_runtime$19, toggleVariants;
20028
+ import_compiler_runtime$19 = require_compiler_runtime();
19659
20029
  toggleVariants = cva(cn("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", "data-[state=on]:bg-muted data-[state=on]:text-muted-foreground"), {
19660
20030
  variants: {
19661
20031
  variant: {
@@ -19675,7 +20045,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19675
20045
  }
19676
20046
  });
19677
20047
  Toggle = import_react.forwardRef((e, t) => {
19678
- let n = (0, import_compiler_runtime$17.c)(13), i, o, s, c;
20048
+ let n = (0, import_compiler_runtime$19.c)(13), i, o, s, c;
19679
20049
  n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, variant: c, size: s, ...o } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
19680
20050
  let d;
19681
20051
  n[5] !== i || n[6] !== s || n[7] !== c ? (d = cn(toggleVariants({
@@ -19702,14 +20072,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19702
20072
  contextAwarePanelOpen = atom(false);
19703
20073
  atom(false);
19704
20074
  isCellAwareAtom = atom(false);
19705
- var import_compiler_runtime$16 = require_compiler_runtime();
20075
+ var import_compiler_runtime$18 = require_compiler_runtime();
19706
20076
  let CellHoverTemplateFeature;
19707
20077
  PANEL_TYPES = {
19708
20078
  ROW_VIEWER: "row-viewer",
19709
20079
  COLUMN_EXPLORER: "column-explorer"
19710
20080
  };
19711
20081
  ContextAwarePanelItem = (e) => {
19712
- let t = (0, import_compiler_runtime$16.c)(2), { children: n } = e, i;
20082
+ let t = (0, import_compiler_runtime$18.c)(2), { children: n } = e, i;
19713
20083
  return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
19714
20084
  children: (0, import_jsx_runtime.jsx)(Fill, {
19715
20085
  name: SlotNames.CONTEXT_AWARE_PANEL,
@@ -19909,9 +20279,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19909
20279
  ...e
19910
20280
  ];
19911
20281
  }
19912
- var import_compiler_runtime$15 = require_compiler_runtime();
20282
+ var import_compiler_runtime$17 = require_compiler_runtime();
19913
20283
  function useScrollContainerHeight(e) {
19914
- let t = (0, import_compiler_runtime$15.c)(8), { maxHeight: n, virtualize: i } = e, a = (0, import_react.useRef)(null), o, s;
20284
+ let t = (0, import_compiler_runtime$17.c)(8), { maxHeight: n, virtualize: i } = e, a = (0, import_react.useRef)(null), o, s;
19915
20285
  t[0] !== n || t[1] !== i ? (o = () => {
19916
20286
  if (!a.current) return;
19917
20287
  let e2 = a.current.parentElement;
@@ -20508,9 +20878,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20508
20878
  var _a2;
20509
20879
  window.getSelection && ((_a2 = window.getSelection()) == null ? void 0 : _a2.empty());
20510
20880
  };
20511
- var import_compiler_runtime$14 = require_compiler_runtime();
20881
+ var import_compiler_runtime$16 = require_compiler_runtime();
20512
20882
  const CellSelectionProvider = (e) => {
20513
- let t = (0, import_compiler_runtime$14.c)(3), { children: n } = e, i;
20883
+ let t = (0, import_compiler_runtime$16.c)(3), { children: n } = e, i;
20514
20884
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = [
20515
20885
  cellSelectionStateAtom
20516
20886
  ], t[0] = i) : i = t[0];
@@ -21065,8 +21435,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21065
21435
  ...e
21066
21436
  });
21067
21437
  }
21068
- var import_compiler_runtime$13 = require_compiler_runtime(), ContextMenu = Root2$1, ContextMenuTrigger = Trigger$1, ContextMenuPortal = withFullScreenAsRoot(Portal2), InternalContextMenuContent = withSmartCollisionBoundary(Content2), InternalContextMenuSubContent = withSmartCollisionBoundary(SubContent2), ContextMenuSubTrigger = import_react.forwardRef((e, t) => {
21069
- let n = (0, import_compiler_runtime$13.c)(14), i, a, o, s;
21438
+ var import_compiler_runtime$15 = require_compiler_runtime(), ContextMenu = Root2$2, ContextMenuTrigger = Trigger$1, ContextMenuPortal = withFullScreenAsRoot(Portal2), InternalContextMenuContent = withSmartCollisionBoundary(Content2), InternalContextMenuSubContent = withSmartCollisionBoundary(SubContent2), ContextMenuSubTrigger = import_react.forwardRef((e, t) => {
21439
+ let n = (0, import_compiler_runtime$15.c)(14), i, a, o, s;
21070
21440
  n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: a, inset: o, children: i, ...s } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
21071
21441
  let c;
21072
21442
  n[5] !== a || n[6] !== o ? (c = menuSubTriggerVariants({
@@ -21090,7 +21460,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21090
21460
  });
21091
21461
  ContextMenuSubTrigger.displayName = SubTrigger2.displayName;
21092
21462
  var contentCommon = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", ContextMenuSubContent = import_react.forwardRef((e, t) => {
21093
- let n = (0, import_compiler_runtime$13.c)(9), i, o;
21463
+ let n = (0, import_compiler_runtime$15.c)(9), i, o;
21094
21464
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
21095
21465
  let s;
21096
21466
  n[3] === i ? s = n[4] : (s = cn(menuContentCommon({
@@ -21105,7 +21475,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21105
21475
  });
21106
21476
  ContextMenuSubContent.displayName = SubContent2.displayName;
21107
21477
  var ContextMenuContent = import_react.forwardRef((e, t) => {
21108
- let n = (0, import_compiler_runtime$13.c)(15), i, o, s;
21478
+ let n = (0, import_compiler_runtime$15.c)(15), i, o, s;
21109
21479
  n[0] === e ? (i = n[1], o = n[2], s = n[3]) : ({ className: i, scrollable: s, ...o } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s);
21110
21480
  let c = s === void 0 ? true : s, d;
21111
21481
  n[4] !== i || n[5] !== c ? (d = cn(menuContentCommon(), contentCommon, c && "overflow-auto", i), n[4] = i, n[5] = c, n[6] = d) : d = n[6];
@@ -21128,7 +21498,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21128
21498
  });
21129
21499
  ContextMenuContent.displayName = Content2.displayName;
21130
21500
  var ContextMenuItem = import_react.forwardRef((e, t) => {
21131
- let n = (0, import_compiler_runtime$13.c)(13), i, a, o, s;
21501
+ let n = (0, import_compiler_runtime$15.c)(13), i, a, o, s;
21132
21502
  n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: i, inset: a, variant: s, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
21133
21503
  let c;
21134
21504
  n[5] !== i || n[6] !== a || n[7] !== s ? (c = menuItemVariants({
@@ -21137,15 +21507,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21137
21507
  variant: s
21138
21508
  }), n[5] = i, n[6] = a, n[7] = s, n[8] = c) : c = n[8];
21139
21509
  let d;
21140
- return n[9] !== o || n[10] !== t || n[11] !== c ? (d = (0, import_jsx_runtime.jsx)(Item2, {
21510
+ return n[9] !== o || n[10] !== t || n[11] !== c ? (d = (0, import_jsx_runtime.jsx)(Item2$1, {
21141
21511
  ref: t,
21142
21512
  className: c,
21143
21513
  ...o
21144
21514
  }), n[9] = o, n[10] = t, n[11] = c, n[12] = d) : d = n[12], d;
21145
21515
  });
21146
- ContextMenuItem.displayName = Item2.displayName;
21516
+ ContextMenuItem.displayName = Item2$1.displayName;
21147
21517
  var ContextMenuCheckboxItem = import_react.forwardRef((e, t) => {
21148
- let n = (0, import_compiler_runtime$13.c)(15), i, a, o, s;
21518
+ let n = (0, import_compiler_runtime$15.c)(15), i, a, o, s;
21149
21519
  n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: o, children: a, checked: i, ...s } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
21150
21520
  let c;
21151
21521
  n[5] === o ? c = n[6] : (c = menuControlVariants({
@@ -21176,7 +21546,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21176
21546
  });
21177
21547
  ContextMenuCheckboxItem.displayName = CheckboxItem2.displayName;
21178
21548
  var ContextMenuRadioItem = import_react.forwardRef((e, t) => {
21179
- let n = (0, import_compiler_runtime$13.c)(13), i, a, o;
21549
+ let n = (0, import_compiler_runtime$15.c)(13), i, a, o;
21180
21550
  n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({ className: a, children: i, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
21181
21551
  let s;
21182
21552
  n[4] === a ? s = n[5] : (s = menuControlCheckVariants({
@@ -21206,7 +21576,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21206
21576
  });
21207
21577
  ContextMenuRadioItem.displayName = RadioItem2.displayName;
21208
21578
  var ContextMenuLabel = import_react.forwardRef((e, t) => {
21209
- let n = (0, import_compiler_runtime$13.c)(11), i, a, o;
21579
+ let n = (0, import_compiler_runtime$15.c)(11), i, a, o;
21210
21580
  n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({ className: i, inset: a, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
21211
21581
  let s;
21212
21582
  n[4] !== i || n[5] !== a ? (s = menuLabelVariants({
@@ -21222,7 +21592,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21222
21592
  });
21223
21593
  ContextMenuLabel.displayName = Label2.displayName;
21224
21594
  var ContextMenuSeparator = import_react.forwardRef((e, t) => {
21225
- let n = (0, import_compiler_runtime$13.c)(9), i, o;
21595
+ let n = (0, import_compiler_runtime$15.c)(9), i, o;
21226
21596
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
21227
21597
  let s;
21228
21598
  n[3] === i ? s = n[4] : (s = cn(menuSeparatorVariants({
@@ -21236,9 +21606,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21236
21606
  }), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
21237
21607
  });
21238
21608
  ContextMenuSeparator.displayName = Separator2.displayName;
21239
- var import_compiler_runtime$12 = require_compiler_runtime();
21609
+ var import_compiler_runtime$14 = require_compiler_runtime();
21240
21610
  const DataTableContextMenu = (e) => {
21241
- let t = (0, import_compiler_runtime$12.c)(12), { contextMenuRef: i, tableBody: a, tableRef: o, copyAllCells: s } = e, c;
21611
+ let t = (0, import_compiler_runtime$14.c)(12), { contextMenuRef: i, tableBody: a, tableRef: o, copyAllCells: s } = e, c;
21242
21612
  t[0] !== i || t[1] !== o ? (c = (e2) => {
21243
21613
  var _a2;
21244
21614
  let t2 = i.current;
@@ -21338,9 +21708,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21338
21708
  ]
21339
21709
  });
21340
21710
  };
21341
- var import_compiler_runtime$11 = require_compiler_runtime();
21711
+ var import_compiler_runtime$13 = require_compiler_runtime();
21342
21712
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
21343
- let t = (0, import_compiler_runtime$11.c)(9), { cellId: n, className: i } = e, o;
21713
+ let t = (0, import_compiler_runtime$13.c)(9), { cellId: n, className: i } = e, o;
21344
21714
  t[0] === n ? o = t[1] : (o = createCellStateAtom(n), t[0] = n, t[1] = o);
21345
21715
  let { isSelected: s, isCopied: c } = useAtomValue(o);
21346
21716
  if (!s && !c) return null;
@@ -21353,9 +21723,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21353
21723
  }), t[6] = n, t[7] = h, t[8] = _) : _ = t[8], _;
21354
21724
  });
21355
21725
  CellRangeSelectionIndicator.displayName = "CellRangeSelectionIndicator";
21356
- var import_compiler_runtime$10 = require_compiler_runtime();
21726
+ var import_compiler_runtime$12 = require_compiler_runtime();
21357
21727
  const useCellRangeSelection = (e) => {
21358
- let t = (0, import_compiler_runtime$10.c)(30), { table: n } = e, i = useCellSelectionReducerActions(), a;
21728
+ let t = (0, import_compiler_runtime$12.c)(30), { table: n } = e, i = useCellSelectionReducerActions(), a;
21359
21729
  t[0] !== i || t[1] !== n ? (a = () => {
21360
21730
  i.handleCopy({
21361
21731
  table: n,
@@ -21446,9 +21816,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21446
21816
  let t = e.target;
21447
21817
  return t === e.currentTarget || !(t instanceof Element) ? false : t.closest(INTERACTIVE_SELECTOR) !== null;
21448
21818
  }
21449
- var import_compiler_runtime$9 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
21819
+ var import_compiler_runtime$11 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
21450
21820
  function useScrollIntoViewOnFocus(e) {
21451
- let t = (0, import_compiler_runtime$9.c)(2), i;
21821
+ let t = (0, import_compiler_runtime$11.c)(2), i;
21452
21822
  t[0] === e ? i = t[1] : (i = (t2) => {
21453
21823
  (t2 == null ? void 0 : t2.cellId) && setTimeout(() => {
21454
21824
  var _a2;
@@ -21580,7 +21950,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21580
21950
  })
21581
21951
  ]
21582
21952
  }, e2.id);
21583
- }, oj = t.length <= 4, q = t.length + (oj ? 1 : 0);
21953
+ }, q = t.length <= 4, J = t.length + (q ? 1 : 0);
21584
21954
  return (0, import_jsx_runtime.jsx)(DataTableContextMenu, {
21585
21955
  tableBody: (0, import_jsx_runtime.jsx)(TableBody, {
21586
21956
  onKeyDown: w,
@@ -21589,7 +21959,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21589
21959
  var _a2, _b;
21590
21960
  if (c.length === 0) return (0, import_jsx_runtime.jsx)(TableRow, {
21591
21961
  children: (0, import_jsx_runtime.jsx)(TableCell, {
21592
- colSpan: q,
21962
+ colSpan: J,
21593
21963
  className: "h-24 text-center",
21594
21964
  children: "No results."
21595
21965
  })
@@ -21604,7 +21974,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21604
21974
  height: e2[0].start
21605
21975
  },
21606
21976
  children: (0, import_jsx_runtime.jsx)("td", {
21607
- colSpan: q
21977
+ colSpan: J
21608
21978
  })
21609
21979
  }),
21610
21980
  e2.map((e3) => K(c[e3.index])),
@@ -21614,7 +21984,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21614
21984
  height: t2 - (((_b = e2.at(-1)) == null ? void 0 : _b.end) ?? t2)
21615
21985
  },
21616
21986
  children: (0, import_jsx_runtime.jsx)("td", {
21617
- colSpan: q
21987
+ colSpan: J
21618
21988
  })
21619
21989
  })
21620
21990
  ]
@@ -21652,7 +22022,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21652
22022
  }));
21653
22023
  }
21654
22024
  const DataTablePagination = ({ table: e, tableLoading: t, showPageSizeSelector: n }) => {
21655
- let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = Math.min(e.getState().pagination.pageIndex + 1, e.getPageCount()), c = e.getPageCount(), f = e.getState().pagination.pageSize, h = (e2) => {
22025
+ let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = Math.min(e.getState().pagination.pageIndex + 1, e.getPageCount()), c = e.getPageCount(), d = e.getState().pagination.pageSize, h = (e2) => {
21656
22026
  t || e2();
21657
22027
  }, _ = [
21658
22028
  .../* @__PURE__ */ new Set([
@@ -21661,7 +22031,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21661
22031
  25,
21662
22032
  50,
21663
22033
  100,
21664
- f
22034
+ d
21665
22035
  ])
21666
22036
  ].toSorted((e2, t2) => e2 - t2);
21667
22037
  return (0, import_jsx_runtime.jsxs)("div", {
@@ -21679,7 +22049,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21679
22049
  type: "button",
21680
22050
  className: "border rounded justify-between pl-1.5 pr-0.5 h-6 text-xs items-center hover:bg-accent inline-flex gap-0.5",
21681
22051
  children: [
21682
- f,
22052
+ d,
21683
22053
  " / page",
21684
22054
  (0, import_jsx_runtime.jsx)(ChevronDown, {
21685
22055
  className: "h-3 w-3 opacity-50 mb-px"
@@ -21698,7 +22068,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21698
22068
  [
21699
22069
  ..._
21700
22070
  ].map((t2) => (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
21701
- className: cn("text-xs cursor-pointer", t2 === f && "font-semibold bg-accent"),
22071
+ className: cn("text-xs cursor-pointer", t2 === d && "font-semibold bg-accent"),
21702
22072
  onSelect: () => e.setPageSize(t2),
21703
22073
  onMouseDown: Events.preventFocus,
21704
22074
  children: t2
@@ -21972,9 +22342,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21972
22342
  e === "too_many" ? "Unknown" : prettifyRowCount(e, n),
21973
22343
  `${prettyNumber(t, n)} ${new PluralWord("column").pluralize(t)}`
21974
22344
  ].join(", ");
21975
- var import_compiler_runtime$8 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
22345
+ var import_compiler_runtime$10 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
21976
22346
  const CellSelectionStats = (e) => {
21977
- let t = (0, import_compiler_runtime$8.c)(21), { table: n, className: i } = e, { locale: o } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = useAtomValue(selectedCellsAtom), c = countDataCellsInSelection(s);
22347
+ let t = (0, import_compiler_runtime$10.c)(21), { table: n, className: i } = e, { locale: o } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = useAtomValue(selectedCellsAtom), c = countDataCellsInSelection(s);
21978
22348
  if (c < 2) {
21979
22349
  let e2;
21980
22350
  t[0] === i ? e2 = t[1] : (e2 = cn("text-xs text-muted-foreground/80 italic", i), t[0] = i, t[1] = e2);
@@ -22017,7 +22387,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22017
22387
  var formatNumber = (e, t) => e.toLocaleString(t, {
22018
22388
  maximumFractionDigits: MAX_FRACTION_DIGITS
22019
22389
  }), StatSpan = (e) => {
22020
- let t = (0, import_compiler_runtime$8.c)(6), { name: n, value: i, locale: a } = e, o;
22390
+ let t = (0, import_compiler_runtime$10.c)(6), { name: n, value: i, locale: a } = e, o;
22021
22391
  t[0] !== a || t[1] !== i ? (o = formatNumber(i, a), t[0] = a, t[1] = i, t[2] = o) : o = t[2];
22022
22392
  let s;
22023
22393
  return t[3] !== n || t[4] !== o ? (s = (0, import_jsx_runtime.jsxs)("span", {
@@ -22028,18 +22398,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22028
22398
  ]
22029
22399
  }), t[3] = n, t[4] = o, t[5] = s) : s = t[5], s;
22030
22400
  }, CountStat = (e) => {
22031
- let t = (0, import_compiler_runtime$8.c)(3), { count: n, locale: i } = e, a;
22401
+ let t = (0, import_compiler_runtime$10.c)(3), { count: n, locale: i } = e, a;
22032
22402
  return t[0] !== n || t[1] !== i ? (a = (0, import_jsx_runtime.jsx)(StatSpan, {
22033
22403
  name: "Count",
22034
22404
  value: n,
22035
22405
  locale: i
22036
22406
  }), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
22037
22407
  }, SumStat = (e) => {
22038
- let t = (0, import_compiler_runtime$8.c)(6), { numericValues: n, locale: i } = e;
22408
+ let t = (0, import_compiler_runtime$10.c)(6), { numericValues: n, locale: i } = e;
22039
22409
  if (n.length === 0) return null;
22040
22410
  let a, o;
22041
22411
  if (t[0] !== n) {
22042
- let e2 = n.reduce(_temp$2, 0);
22412
+ let e2 = n.reduce(_temp$3, 0);
22043
22413
  a = Number, o = e2.toFixed(MAX_FRACTION_DIGITS), t[0] = n, t[1] = a, t[2] = o;
22044
22414
  } else a = t[1], o = t[2];
22045
22415
  let s = a(o), c;
@@ -22049,7 +22419,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22049
22419
  locale: i
22050
22420
  }), t[3] = i, t[4] = s, t[5] = c) : c = t[5], c;
22051
22421
  }, AverageStat = (e) => {
22052
- let t = (0, import_compiler_runtime$8.c)(5), { numericValues: n, locale: i } = e;
22422
+ let t = (0, import_compiler_runtime$10.c)(5), { numericValues: n, locale: i } = e;
22053
22423
  if (n.length === 0) return null;
22054
22424
  let a = n.reduce(_temp2$1, 0) / n.length, o;
22055
22425
  t[0] === a ? o = t[1] : (o = a.toFixed(MAX_FRACTION_DIGITS), t[0] = a, t[1] = o);
@@ -22060,15 +22430,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22060
22430
  locale: i
22061
22431
  }), t[2] = s, t[3] = i, t[4] = c) : c = t[4], c;
22062
22432
  };
22063
- function _temp$2(e, t) {
22433
+ function _temp$3(e, t) {
22064
22434
  return e + t;
22065
22435
  }
22066
22436
  function _temp2$1(e, t) {
22067
22437
  return e + t;
22068
22438
  }
22069
22439
  let TableBottomBar;
22070
- TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: f, tableLoading: h, part: _, className: v }) => {
22071
- let { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), w = (e2) => {
22440
+ TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: d, tableLoading: h, part: _, className: v }) => {
22441
+ let { locale: y } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), w = (e2) => {
22072
22442
  if (!i) return;
22073
22443
  if (!e2) {
22074
22444
  i({});
@@ -22112,12 +22482,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22112
22482
  (0, import_jsx_runtime.jsx)("div", {
22113
22483
  className: "flex items-center gap-1",
22114
22484
  children: (() => {
22115
- let { rowSelection: e2, cellSelection: i2 } = s.getState(), a = Object.keys(e2).length, c2 = s.getIsAllPageRowsSelected(), f2 = s.getRowCount(), h2 = a === f2, _2 = n === "single-cell" || n === "multi-cell";
22485
+ let { rowSelection: e2, cellSelection: i2 } = s.getState(), a = Object.keys(e2).length, c2 = s.getIsAllPageRowsSelected(), d2 = s.getRowCount(), h2 = a === d2, _2 = n === "single-cell" || n === "multi-cell";
22116
22486
  return _2 && (a = i2.length, c2 = false, h2 = false), c2 && !h2 ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
22117
22487
  children: [
22118
22488
  (0, import_jsx_runtime.jsxs)("span", {
22119
22489
  children: [
22120
- prettyNumber(a, S),
22490
+ prettyNumber(a, y),
22121
22491
  " selected"
22122
22492
  ]
22123
22493
  }),
@@ -22130,7 +22500,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22130
22500
  onClick: () => w(true),
22131
22501
  children: [
22132
22502
  "Select all ",
22133
- prettyNumber(f2, S)
22503
+ prettyNumber(d2, y)
22134
22504
  ]
22135
22505
  })
22136
22506
  ]
@@ -22138,7 +22508,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22138
22508
  children: [
22139
22509
  (0, import_jsx_runtime.jsxs)("span", {
22140
22510
  children: [
22141
- prettyNumber(a, S),
22511
+ prettyNumber(a, y),
22142
22512
  " selected"
22143
22513
  ]
22144
22514
  }),
@@ -22158,7 +22528,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22158
22528
  children: prettifyRowColumnCount({
22159
22529
  numRows: s.getRowCount(),
22160
22530
  totalColumns: t,
22161
- locale: S
22531
+ locale: y
22162
22532
  })
22163
22533
  });
22164
22534
  })()
@@ -22174,7 +22544,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22174
22544
  children: e && (0, import_jsx_runtime.jsx)(DataTablePagination, {
22175
22545
  table: s,
22176
22546
  tableLoading: h,
22177
- showPageSizeSelector: f
22547
+ showPageSizeSelector: d
22178
22548
  })
22179
22549
  }),
22180
22550
  (0, import_jsx_runtime.jsx)("div", {
@@ -22228,34 +22598,34 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22228
22598
  let n = URL.createObjectURL(e);
22229
22599
  downloadByURL(n, t), URL.revokeObjectURL(n);
22230
22600
  };
22231
- var import_compiler_runtime$7 = require_compiler_runtime();
22601
+ var import_compiler_runtime$9 = require_compiler_runtime();
22232
22602
  InstallPackageButton = (e) => {
22233
- let t = (0, import_compiler_runtime$7.c)(13), { packages: n, showMaxPackages: i, className: o, onInstall: s } = e, { handleInstallPackages: c } = useInstallPackages();
22603
+ let t = (0, import_compiler_runtime$9.c)(13), { packages: n, showMaxPackages: i, className: o, onInstall: s } = e, { handleInstallPackages: c } = useInstallPackages();
22234
22604
  if (!n || n.length === 0) return null;
22235
- let f;
22236
- t[0] !== c || t[1] !== s || t[2] !== n ? (f = () => {
22605
+ let d;
22606
+ t[0] !== c || t[1] !== s || t[2] !== n ? (d = () => {
22237
22607
  c(n, s);
22238
- }, t[0] = c, t[1] = s, t[2] = n, t[3] = f) : f = t[3];
22608
+ }, t[0] = c, t[1] = s, t[2] = n, t[3] = d) : d = t[3];
22239
22609
  let h;
22240
22610
  t[4] === o ? h = t[5] : (h = cn("ml-2", o), t[4] = o, t[5] = h);
22241
22611
  let _;
22242
22612
  t[6] !== n || t[7] !== i ? (_ = i ? n.slice(0, i).join(", ") : n.join(", "), t[6] = n, t[7] = i, t[8] = _) : _ = t[8];
22243
22613
  let v;
22244
- return t[9] !== f || t[10] !== h || t[11] !== _ ? (v = (0, import_jsx_runtime.jsxs)(Button, {
22614
+ return t[9] !== d || t[10] !== h || t[11] !== _ ? (v = (0, import_jsx_runtime.jsxs)(Button, {
22245
22615
  variant: "outline",
22246
22616
  size: "xs",
22247
- onClick: f,
22617
+ onClick: d,
22248
22618
  className: h,
22249
22619
  children: [
22250
22620
  "Install",
22251
22621
  " ",
22252
22622
  _
22253
22623
  ]
22254
- }), t[9] = f, t[10] = h, t[11] = _, t[12] = v) : v = t[12], v;
22624
+ }), t[9] = d, t[10] = h, t[11] = _, t[12] = v) : v = t[12], v;
22255
22625
  };
22256
- var import_compiler_runtime$6 = require_compiler_runtime();
22626
+ var import_compiler_runtime$8 = require_compiler_runtime();
22257
22627
  const MissingPackagePrompt = (e) => {
22258
- let t = (0, import_compiler_runtime$6.c)(16), { packages: n, featureName: i, description: o, onInstall: s, className: c } = e;
22628
+ let t = (0, import_compiler_runtime$8.c)(16), { packages: n, featureName: i, description: o, onInstall: s, className: c } = e;
22259
22629
  if (!useInstallAllowed()) {
22260
22630
  let e2;
22261
22631
  t[0] === c ? e2 = t[1] : (e2 = cn("text-xs", c), t[0] = c, t[1] = e2);
@@ -22290,7 +22660,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22290
22660
  ]
22291
22661
  }), t[12] = d, t[13] = h, t[14] = _, t[15] = v) : v = t[15], v;
22292
22662
  };
22293
- var import_compiler_runtime$5 = require_compiler_runtime(), FILE_TYPES = {
22663
+ var import_compiler_runtime$7 = require_compiler_runtime(), FILE_TYPES = {
22294
22664
  CSV: {
22295
22665
  label: "CSV",
22296
22666
  format: "csv",
@@ -22335,12 +22705,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22335
22705
  return ((_a2 = downloadOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
22336
22706
  };
22337
22707
  const ExportMenu = (e) => {
22338
- let t = (0, import_compiler_runtime$5.c)(48), { locale: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [i, o] = import_react.useState(false), s = i ? "text-primary" : "text-muted-foreground", c;
22708
+ let t = (0, import_compiler_runtime$7.c)(48), { locale: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [i, o] = import_react.useState(false), s = i ? "text-primary" : "text-muted-foreground", c;
22339
22709
  t[0] === s ? c = t[1] : (c = cn("print:hidden text-xs gap-1", s), t[0] = s, t[1] = c);
22340
- let f;
22341
- t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (0, import_jsx_runtime.jsx)(Download, {
22710
+ let d;
22711
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (0, import_jsx_runtime.jsx)(Download, {
22342
22712
  className: "w-3.5 h-3.5"
22343
- }), t[2] = f) : f = t[2];
22713
+ }), t[2] = d) : d = t[2];
22344
22714
  let h;
22345
22715
  t[3] === c ? h = t[4] : (h = (0, import_jsx_runtime.jsxs)(Button, {
22346
22716
  "data-testid": "export-button",
@@ -22348,7 +22718,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22348
22718
  variant: "text",
22349
22719
  className: c,
22350
22720
  children: [
22351
- f,
22721
+ d,
22352
22722
  "Export"
22353
22723
  ]
22354
22724
  }), t[3] = c, t[4] = h);
@@ -22379,17 +22749,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22379
22749
  filename: i2.filename
22380
22750
  };
22381
22751
  }, t[5] = e, t[6] = v);
22382
- let w = v, E, O, A, M, I, z, U, K, oj, q, J, sj, Q;
22383
- if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== w) {
22752
+ let y = v, E, O, A, M, I, z, U, K, q, J, Q, vM, $;
22753
+ if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
22384
22754
  let e2 = async (t2) => {
22385
- let n2 = await w(t2, () => {
22755
+ let n2 = await y(t2, () => {
22386
22756
  e2(t2);
22387
22757
  });
22388
22758
  if (!n2) return;
22389
22759
  let i2 = (n2.filename ?? "").trim(), a2 = Filenames.withoutExtension(i2) || "download";
22390
22760
  downloadByURL(n2.url, `${a2}.${t2}`);
22391
22761
  }, a = async (e3) => {
22392
- let t2 = await w(e3 === "csv" ? "csv" : "json", () => {
22762
+ let t2 = await y(e3 === "csv" ? "csv" : "json", () => {
22393
22763
  a(e3);
22394
22764
  });
22395
22765
  if (!t2) return;
@@ -22426,10 +22796,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22426
22796
  content: "Export",
22427
22797
  open: s2,
22428
22798
  children: c2
22429
- }), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, oj = "bottom", q = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22799
+ }), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, q = "bottom", J = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22430
22800
  className: "text-xs text-muted-foreground",
22431
22801
  children: "Download"
22432
- }), t[29] = J) : J = t[29], sj = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22802
+ }), t[29] = Q) : Q = t[29], vM = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22433
22803
  onSelect: () => {
22434
22804
  e2(t2.format);
22435
22805
  },
@@ -22450,10 +22820,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22450
22820
  ]
22451
22821
  })
22452
22822
  ]
22453
- }, t2.label)), t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), A = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22823
+ }, t2.label)), t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), A = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22454
22824
  className: "text-xs text-muted-foreground",
22455
22825
  children: "Copy to clipboard"
22456
- }), t[30] = A, t[31] = Q) : (A = t[30], Q = t[31]), M = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22826
+ }), t[30] = A, t[31] = $) : (A = t[30], $ = t[31]), M = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22457
22827
  onSelect: async () => {
22458
22828
  try {
22459
22829
  await a(e3.format);
@@ -22482,30 +22852,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22482
22852
  ]
22483
22853
  })
22484
22854
  ]
22485
- }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = w, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = oj, t[20] = q, t[21] = J, t[22] = sj, t[23] = Q;
22486
- } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], oj = t[19], q = t[20], J = t[21], sj = t[22], Q = t[23];
22487
- let cj;
22488
- t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== oj || t[36] !== q || t[37] !== J || t[38] !== sj || t[39] !== Q ? (cj = (0, import_jsx_runtime.jsxs)(E, {
22489
- side: oj,
22490
- className: q,
22855
+ }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = vM, t[23] = $;
22856
+ } else E = t[11], O = t[12], A = 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], vM = t[22], $ = t[23];
22857
+ let yM;
22858
+ t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== vM || t[39] !== $ ? (yM = (0, import_jsx_runtime.jsxs)(E, {
22859
+ side: q,
22860
+ className: J,
22491
22861
  children: [
22492
- J,
22493
- sj,
22494
22862
  Q,
22863
+ vM,
22864
+ $,
22495
22865
  A,
22496
22866
  M
22497
22867
  ]
22498
- }), t[32] = E, t[33] = A, t[34] = M, t[35] = oj, t[36] = q, t[37] = J, t[38] = sj, t[39] = Q, t[40] = cj) : cj = t[40];
22499
- let $;
22500
- return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== cj ? ($ = (0, import_jsx_runtime.jsxs)(O, {
22868
+ }), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = vM, t[39] = $, t[40] = yM) : yM = t[40];
22869
+ let bM;
22870
+ return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== yM ? (bM = (0, import_jsx_runtime.jsxs)(O, {
22501
22871
  modal: I,
22502
22872
  open: z,
22503
22873
  onOpenChange: U,
22504
22874
  children: [
22505
22875
  K,
22506
- cj
22876
+ yM
22507
22877
  ]
22508
- }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = cj, t[47] = $) : $ = t[47], $;
22878
+ }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = yM, t[47] = bM) : bM = t[47], bM;
22509
22879
  };
22510
22880
  function fetchJson(e) {
22511
22881
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -22519,14 +22889,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22519
22889
  var NOOP_ON_SEARCH = () => {
22520
22890
  };
22521
22891
  let TableTopBar;
22522
- TableTopBar = ({ enableSearch: e, searchQuery: t, onSearchQueryChange: n, reloading: i, showChartBuilder: o, isChartBuilderOpen: s, toggleDisplayHeader: c, showTableExplorer: f, togglePanel: h, isAnyPanelOpen: _, downloadAs: v }) => {
22892
+ TableTopBar = ({ enableSearch: e, searchQuery: t, onSearchQueryChange: n, reloading: i, showChartBuilder: o, isChartBuilderOpen: s, toggleDisplayHeader: c, showTableExplorer: d, togglePanel: h, isAnyPanelOpen: _, downloadAs: v }) => {
22523
22893
  let [y, S] = (0, import_react.useState)(t || ""), w = useDebounce(y, 500), E = useEvent_default(n ?? NOOP_ON_SEARCH), O = import_react.useRef(null);
22524
22894
  return (0, import_react.useEffect)(() => {
22525
22895
  E(w);
22526
22896
  }, [
22527
22897
  w,
22528
22898
  E
22529
- ]), e && n || o || f || v ? (0, import_jsx_runtime.jsxs)("div", {
22899
+ ]), e && n || o || d || v ? (0, import_jsx_runtime.jsxs)("div", {
22530
22900
  className: "flex items-center h-10 px-2 border-b gap-2",
22531
22901
  children: [
22532
22902
  n && e && (0, import_jsx_runtime.jsxs)("div", {
@@ -22576,7 +22946,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22576
22946
  "Visualize"
22577
22947
  ]
22578
22948
  }),
22579
- f && h && (0, import_jsx_runtime.jsxs)(Button, {
22949
+ d && h && (0, import_jsx_runtime.jsxs)(Button, {
22580
22950
  variant: "text",
22581
22951
  size: "xs",
22582
22952
  className: cn("print:hidden text-xs gap-1", _ ? "text-primary" : "text-muted-foreground"),
@@ -22596,22 +22966,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22596
22966
  ]
22597
22967
  }) : null;
22598
22968
  };
22599
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: oj, getRowIds: q, enableSearch: J = false, searchQuery: sj, onSearchQueryChange: Q, showFilters: cj = false, filters: $, onFiltersChange: lj, reloading: uj, freezeColumnsLeft: dj, freezeColumnsRight: fj, toggleDisplayHeader: pj, showChartBuilder: mj, isChartBuilderOpen: hj, showPageSizeSelector: gj, showTableExplorer: _j, togglePanel: vj, isPanelOpen: yj, isAnyPanelOpen: bj, viewedRowIdx: xj, onViewedRowChange: Sj }) => {
22600
- let [Cj, wj] = import_react.useState(false), { locale: Tj } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: Ej, setColumnPinning: Dj } = useColumnPinning(dj, fj);
22969
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: vM, onSearchQueryChange: $, showFilters: yM = false, filters: bM, onFiltersChange: xM, reloading: SM, freezeColumnsLeft: CM, freezeColumnsRight: wM, toggleDisplayHeader: TM, showChartBuilder: EM, isChartBuilderOpen: DM, showPageSizeSelector: OM, showTableExplorer: kM, togglePanel: AM, isPanelOpen: jM, isAnyPanelOpen: MM, viewedRowIdx: NM, onViewedRowChange: PM }) => {
22970
+ let [FM, IM] = import_react.useState(false), { locale: LM } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: RM, setColumnPinning: zM } = useColumnPinning(CM, wM);
22601
22971
  import_react.useEffect(() => {
22602
22972
  let e2;
22603
- return uj ? e2 = setTimeout(() => {
22604
- wj(true);
22605
- }, 300) : wj(false), () => {
22973
+ return SM ? e2 = setTimeout(() => {
22974
+ IM(true);
22975
+ }, 300) : IM(false), () => {
22606
22976
  e2 && clearTimeout(e2);
22607
22977
  };
22608
22978
  }, [
22609
- uj
22979
+ SM
22610
22980
  ]);
22611
- function Oj(e2, t2) {
22981
+ function BM(e2, t2) {
22612
22982
  return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
22613
22983
  }
22614
- let kj = useReactTable({
22984
+ let VM = useReactTable({
22615
22985
  _features: [
22616
22986
  ColumnPinning,
22617
22987
  ColumnWrappingFeature,
@@ -22635,11 +23005,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22635
23005
  getRowId: (e2, t2) => {
22636
23006
  let n2 = getStableRowId(e2);
22637
23007
  if (n2) return n2;
22638
- let i2 = Oj(e2, t2);
23008
+ let i2 = BM(e2, t2);
22639
23009
  return String(i2);
22640
23010
  }
22641
23011
  } : {},
22642
- locale: Tj,
23012
+ locale: LM,
22643
23013
  manualPagination: z,
22644
23014
  getPaginationRowModel: getPaginationRowModel(),
22645
23015
  ...v ? {
@@ -22649,21 +23019,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22649
23019
  enableMultiSort: true,
22650
23020
  getSortedRowModel: getSortedRowModel(),
22651
23021
  manualFiltering: true,
22652
- enableColumnFilters: cj,
23022
+ enableColumnFilters: yM,
22653
23023
  getFilteredRowModel: getFilteredRowModel(),
22654
- onColumnFiltersChange: lj,
23024
+ onColumnFiltersChange: xM,
22655
23025
  onRowSelectionChange: K,
22656
- onCellSelectionChange: oj,
23026
+ onCellSelectionChange: q,
22657
23027
  enableCellSelection: c === "single-cell" || c === "multi-cell",
22658
23028
  enableMultiCellSelection: c === "multi-cell",
22659
- onColumnPinningChange: Dj,
23029
+ onColumnPinningChange: zM,
22660
23030
  enableFocusRow: true,
22661
- onFocusRowChange: Sj,
23031
+ onFocusRowChange: PM,
22662
23032
  state: {
22663
23033
  ..._ ? {
22664
23034
  sorting: _
22665
23035
  } : {},
22666
- columnFilters: $,
23036
+ columnFilters: bM,
22667
23037
  ...A ? {
22668
23038
  pagination: A
22669
23039
  } : U && !A ? {} : {
@@ -22675,20 +23045,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22675
23045
  rowSelection: y ?? {},
22676
23046
  cellSelection: S ?? [],
22677
23047
  cellStyling: w,
22678
- columnPinning: Ej,
23048
+ columnPinning: RM,
22679
23049
  cellHoverTemplate: E,
22680
23050
  cellHoverTexts: O ?? {}
22681
23051
  }
22682
- }), Aj = (yj == null ? void 0 : yj(PANEL_TYPES.ROW_VIEWER)) ?? false, jj = !U && o.length > 100, Mj = useScrollContainerHeight({
23052
+ }), HM = (jM == null ? void 0 : jM(PANEL_TYPES.ROW_VIEWER)) ?? false, UM = !U && o.length > 100, WM = useScrollContainerHeight({
22683
23053
  maxHeight: n,
22684
- virtualize: jj
23054
+ virtualize: UM
22685
23055
  });
22686
23056
  return (0, import_jsx_runtime.jsxs)("div", {
22687
23057
  className: cn(e, "flex flex-col space-y-1"),
22688
23058
  children: [
22689
23059
  (0, import_jsx_runtime.jsx)(FilterPills, {
22690
- filters: $,
22691
- table: kj
23060
+ filters: bM,
23061
+ table: VM
22692
23062
  }),
22693
23063
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
22694
23064
  children: (0, import_jsx_runtime.jsxs)("div", {
@@ -22696,33 +23066,33 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22696
23066
  className: cn(t || "rounded-md border overflow-hidden"),
22697
23067
  children: [
22698
23068
  (0, import_jsx_runtime.jsx)(TableTopBar, {
22699
- enableSearch: J,
22700
- searchQuery: sj,
22701
- onSearchQueryChange: Q,
22702
- reloading: uj,
22703
- showChartBuilder: mj,
22704
- isChartBuilderOpen: hj,
22705
- toggleDisplayHeader: pj,
22706
- showTableExplorer: _j,
22707
- togglePanel: vj,
22708
- isAnyPanelOpen: bj,
23069
+ enableSearch: Q,
23070
+ searchQuery: vM,
23071
+ onSearchQueryChange: $,
23072
+ reloading: SM,
23073
+ showChartBuilder: EM,
23074
+ isChartBuilderOpen: DM,
23075
+ toggleDisplayHeader: TM,
23076
+ showTableExplorer: kM,
23077
+ togglePanel: AM,
23078
+ isAnyPanelOpen: MM,
22709
23079
  downloadAs: I
22710
23080
  }),
22711
23081
  (0, import_jsx_runtime.jsxs)(Table, {
22712
23082
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
22713
- ref: Mj,
23083
+ ref: WM,
22714
23084
  children: [
22715
- Cj && (0, import_jsx_runtime.jsx)("thead", {
23085
+ FM && (0, import_jsx_runtime.jsx)("thead", {
22716
23086
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
22717
23087
  }),
22718
- renderTableHeader(kj, jj || !!n),
23088
+ renderTableHeader(VM, UM || !!n),
22719
23089
  (0, import_jsx_runtime.jsx)(DataTableBody, {
22720
- table: kj,
23090
+ table: VM,
22721
23091
  columns: i,
22722
- rowViewerPanelOpen: Aj,
22723
- getRowIndex: Oj,
22724
- viewedRowIdx: xj,
22725
- virtualize: jj
23092
+ rowViewerPanelOpen: HM,
23093
+ getRowIndex: BM,
23094
+ viewedRowIdx: NM,
23095
+ virtualize: UM
22726
23096
  })
22727
23097
  ]
22728
23098
  }),
@@ -22733,10 +23103,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22733
23103
  pagination: U,
22734
23104
  selection: c,
22735
23105
  onRowSelectionChange: K,
22736
- table: kj,
22737
- getRowIds: q,
22738
- showPageSizeSelector: gj,
22739
- tableLoading: uj
23106
+ table: VM,
23107
+ getRowIds: J,
23108
+ showPageSizeSelector: OM,
23109
+ tableLoading: SM
22740
23110
  })
22741
23111
  ]
22742
23112
  })
@@ -22771,7 +23141,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22771
23141
  setPaginationState: a,
22772
23142
  wrapperClassName: "h-full justify-between pb-1 px-1",
22773
23143
  pagination: true,
22774
- className: "rounded-none border-b flex overflow-hidden",
23144
+ className: "rounded-none border-b flex flex-col overflow-hidden",
22775
23145
  rowSelection: Objects.EMPTY
22776
23146
  });
22777
23147
  };
@@ -22800,10 +23170,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22800
23170
  ]
22801
23171
  }), e.focus(), true;
22802
23172
  }
22803
- var import_compiler_runtime$3 = require_compiler_runtime(), KEY = "item";
23173
+ var import_compiler_runtime$5 = require_compiler_runtime(), KEY = "item";
22804
23174
  const MarimoTracebackOutput = (e) => {
22805
23175
  var _a2;
22806
- let t = (0, import_compiler_runtime$3.c)(47), { onRefactorWithAI: n, traceback: i, cellId: o } = e, s;
23176
+ let t = (0, import_compiler_runtime$5.c)(47), { onRefactorWithAI: n, traceback: i, cellId: o } = e, s;
22807
23177
  t[0] === i ? s = t[1] : (s = renderHTML({
22808
23178
  html: i,
22809
23179
  additionalReplacements: [
@@ -22811,82 +23181,82 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22811
23181
  replaceTracebackPrefix
22812
23182
  ]
22813
23183
  }), t[0] = i, t[1] = s);
22814
- let c = s, [f, h] = (0, import_react.useState)(true), _ = lastLine(i), y = useAtomValue(aiEnabledAtom), w;
22815
- t[2] === i ? w = t[3] : (w = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[2] = i, t[3] = w);
22816
- let E = w, O;
23184
+ let c = s, [d, h] = (0, import_react.useState)(true), _ = lastLine(i), v = useAtomValue(aiEnabledAtom), S;
23185
+ t[2] === i ? S = t[3] : (S = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[2] = i, t[3] = S);
23186
+ let E = S, O;
22817
23187
  t[4] !== o || t[5] !== E ? (O = E && E.kind === "cell" && !isWasm() && !isStaticNotebook() && o !== "__scratch__", t[4] = o, t[5] = E, t[6] = O) : O = t[6];
22818
- let A = O, I;
22819
- t[7] !== y || t[8] !== n ? (I = n && y && !isStaticNotebook(), t[7] = y, t[8] = n, t[9] = I) : I = t[9];
22820
- let z = I, U = !isStaticNotebook(), K = (e2) => {
23188
+ let A = O, M;
23189
+ t[7] !== v || t[8] !== n ? (M = n && v && !isStaticNotebook(), t[7] = v, t[8] = n, t[9] = M) : M = t[9];
23190
+ let z = M, U = !isStaticNotebook(), K = (e2) => {
22821
23191
  n == null ? void 0 : n({
22822
23192
  prompt: `My code gives the following error:
22823
23193
 
22824
23194
  ${_}`,
22825
23195
  triggerImmediately: e2
22826
23196
  });
22827
- }, [oj, q] = _.split(":", 2), J = f ? KEY : "", sj;
22828
- t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (sj = () => h(_temp$1), t[10] = sj) : sj = t[10];
22829
- let Q = f ? "rotate-180" : "rotate-0", cj;
22830
- t[11] === Q ? cj = t[12] : (cj = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", Q), t[11] = Q, t[12] = cj);
22831
- let $;
22832
- t[13] === cj ? $ = t[14] : ($ = (0, import_jsx_runtime.jsx)(ChevronDown, {
22833
- className: cj
22834
- }), t[13] = cj, t[14] = $);
22835
- let lj = oj || "Error", uj;
22836
- t[15] === lj ? uj = t[16] : (uj = (0, import_jsx_runtime.jsxs)("span", {
23197
+ }, [J, Q] = _.split(":", 2), vM = d ? KEY : "", $;
23198
+ t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$2), t[10] = $) : $ = t[10];
23199
+ let yM = d ? "rotate-180" : "rotate-0", bM;
23200
+ t[11] === yM ? bM = t[12] : (bM = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", yM), t[11] = yM, t[12] = bM);
23201
+ let xM;
23202
+ t[13] === bM ? xM = t[14] : (xM = (0, import_jsx_runtime.jsx)(ChevronDown, {
23203
+ className: bM
23204
+ }), t[13] = bM, t[14] = xM);
23205
+ let SM = J || "Error", wM;
23206
+ t[15] === SM ? wM = t[16] : (wM = (0, import_jsx_runtime.jsxs)("span", {
22837
23207
  className: "text-destructive",
22838
23208
  children: [
22839
- lj,
23209
+ SM,
22840
23210
  ":"
22841
23211
  ]
22842
- }), t[15] = lj, t[16] = uj);
22843
- let dj;
22844
- t[17] !== q || t[18] !== uj ? (dj = (0, import_jsx_runtime.jsxs)("div", {
23212
+ }), t[15] = SM, t[16] = wM);
23213
+ let TM;
23214
+ t[17] !== Q || t[18] !== wM ? (TM = (0, import_jsx_runtime.jsxs)("div", {
22845
23215
  className: "text-sm inline font-mono",
22846
23216
  children: [
22847
- uj,
23217
+ wM,
22848
23218
  " ",
22849
- q
23219
+ Q
22850
23220
  ]
22851
- }), t[17] = q, t[18] = uj, t[19] = dj) : dj = t[19];
22852
- let fj;
22853
- t[20] !== dj || t[21] !== $ ? (fj = (0, import_jsx_runtime.jsxs)("div", {
23221
+ }), t[17] = Q, t[18] = wM, t[19] = TM) : TM = t[19];
23222
+ let DM;
23223
+ t[20] !== TM || t[21] !== xM ? (DM = (0, import_jsx_runtime.jsxs)("div", {
22854
23224
  className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
22855
- onClick: sj,
23225
+ onClick: $,
22856
23226
  children: [
22857
- $,
22858
- dj
23227
+ xM,
23228
+ TM
22859
23229
  ]
22860
- }), t[20] = dj, t[21] = $, t[22] = fj) : fj = t[22];
22861
- let pj;
22862
- t[23] === c ? pj = t[24] : (pj = (0, import_jsx_runtime.jsx)(AccordionContent, {
23230
+ }), t[20] = TM, t[21] = xM, t[22] = DM) : DM = t[22];
23231
+ let OM;
23232
+ t[23] === c ? OM = t[24] : (OM = (0, import_jsx_runtime.jsx)(AccordionContent, {
22863
23233
  className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
22864
23234
  children: c
22865
- }), t[23] = c, t[24] = pj);
22866
- let mj;
22867
- t[25] !== fj || t[26] !== pj ? (mj = (0, import_jsx_runtime.jsxs)(AccordionItem, {
23235
+ }), t[23] = c, t[24] = OM);
23236
+ let kM;
23237
+ t[25] !== DM || t[26] !== OM ? (kM = (0, import_jsx_runtime.jsxs)(AccordionItem, {
22868
23238
  value: KEY,
22869
23239
  className: "border-none",
22870
23240
  children: [
22871
- fj,
22872
- pj
23241
+ DM,
23242
+ OM
22873
23243
  ]
22874
- }), t[25] = fj, t[26] = pj, t[27] = mj) : mj = t[27];
22875
- let hj;
22876
- t[28] !== mj || t[29] !== J ? (hj = (0, import_jsx_runtime.jsx)(Accordion, {
23244
+ }), t[25] = DM, t[26] = OM, t[27] = kM) : kM = t[27];
23245
+ let jM;
23246
+ t[28] !== kM || t[29] !== vM ? (jM = (0, import_jsx_runtime.jsx)(Accordion, {
22877
23247
  type: "single",
22878
23248
  collapsible: true,
22879
- value: J,
22880
- children: mj
22881
- }), t[28] = mj, t[29] = J, t[30] = hj) : hj = t[30];
22882
- let gj;
22883
- t[31] !== K || t[32] !== z ? (gj = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
23249
+ value: vM,
23250
+ children: kM
23251
+ }), t[28] = kM, t[29] = vM, t[30] = jM) : jM = t[30];
23252
+ let MM;
23253
+ t[31] !== K || t[32] !== z ? (MM = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
22884
23254
  tooltip: "Fix with AI",
22885
23255
  openPrompt: () => K(false),
22886
23256
  applyAutofix: () => K(true)
22887
- }), t[31] = K, t[32] = z, t[33] = gj) : gj = t[33];
22888
- let vj;
22889
- t[34] !== A || t[35] !== E ? (vj = A && (0, import_jsx_runtime.jsx)(Tooltip, {
23257
+ }), t[31] = K, t[32] = z, t[33] = MM) : MM = t[33];
23258
+ let NM;
23259
+ t[34] !== A || t[35] !== E ? (NM = A && (0, import_jsx_runtime.jsx)(Tooltip, {
22890
23260
  content: "Attach pdb to the exception point.",
22891
23261
  children: (0, import_jsx_runtime.jsxs)(Button, {
22892
23262
  size: "xs",
@@ -22903,9 +23273,9 @@ ${_}`,
22903
23273
  "Launch debugger"
22904
23274
  ]
22905
23275
  })
22906
- }), t[34] = A, t[35] = E, t[36] = vj) : vj = t[36];
22907
- let Sj;
22908
- t[37] !== _ || t[38] !== i ? (Sj = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
23276
+ }), t[34] = A, t[35] = E, t[36] = NM) : NM = t[36];
23277
+ let PM;
23278
+ t[37] !== _ || t[38] !== i ? (PM = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
22909
23279
  children: [
22910
23280
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
22911
23281
  asChild: true,
@@ -22973,24 +23343,24 @@ ${_}`,
22973
23343
  ]
22974
23344
  })
22975
23345
  ]
22976
- }), t[37] = _, t[38] = i, t[39] = Sj) : Sj = t[39];
22977
- let Cj;
22978
- t[40] !== gj || t[41] !== vj || t[42] !== Sj ? (Cj = (0, import_jsx_runtime.jsxs)("div", {
23346
+ }), t[37] = _, t[38] = i, t[39] = PM) : PM = t[39];
23347
+ let FM;
23348
+ t[40] !== MM || t[41] !== NM || t[42] !== PM ? (FM = (0, import_jsx_runtime.jsxs)("div", {
22979
23349
  className: "flex gap-2",
22980
23350
  children: [
22981
- gj,
22982
- vj,
22983
- Sj
23351
+ MM,
23352
+ NM,
23353
+ PM
22984
23354
  ]
22985
- }), t[40] = gj, t[41] = vj, t[42] = Sj, t[43] = Cj) : Cj = t[43];
22986
- let wj;
22987
- return t[44] !== hj || t[45] !== Cj ? (wj = (0, import_jsx_runtime.jsxs)("div", {
23355
+ }), t[40] = MM, t[41] = NM, t[42] = PM, t[43] = FM) : FM = t[43];
23356
+ let IM;
23357
+ return t[44] !== jM || t[45] !== FM ? (IM = (0, import_jsx_runtime.jsxs)("div", {
22988
23358
  className: "flex flex-col gap-2 min-w-full w-fit",
22989
23359
  children: [
22990
- hj,
22991
- Cj
23360
+ jM,
23361
+ FM
22992
23362
  ]
22993
- }), t[44] = hj, t[45] = Cj, t[46] = wj) : wj = t[46], wj;
23363
+ }), t[44] = jM, t[45] = FM, t[46] = IM) : IM = t[46], IM;
22994
23364
  };
22995
23365
  function lastLine(e) {
22996
23366
  var _a2, _b;
@@ -23052,7 +23422,7 @@ ${_}`,
23052
23422
  });
23053
23423
  };
23054
23424
  var InsertBreakpointContent = () => {
23055
- let e = (0, import_compiler_runtime$3.c)(1), t;
23425
+ let e = (0, import_compiler_runtime$5.c)(1), t;
23056
23426
  return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
23057
23427
  children: [
23058
23428
  "Insert a ",
@@ -23064,7 +23434,7 @@ ${_}`,
23064
23434
  ]
23065
23435
  }), e[0] = t) : t = e[0], t;
23066
23436
  };
23067
- function _temp$1(e) {
23437
+ function _temp$2(e) {
23068
23438
  return !e;
23069
23439
  }
23070
23440
  function renderMimeIcon(e) {
@@ -23106,9 +23476,9 @@ ${_}`,
23106
23476
  return "\u2753";
23107
23477
  }
23108
23478
  }
23109
- var import_compiler_runtime$2 = require_compiler_runtime(), METADATA_KEY = "__metadata__";
23479
+ var import_compiler_runtime$4 = require_compiler_runtime(), METADATA_KEY = "__metadata__";
23110
23480
  OutputRenderer = (0, import_react.memo)((e) => {
23111
- let t = (0, import_compiler_runtime$2.c)(54), { message: n, onRefactorWithAI: i, cellId: a, wrapText: o, metadata: s, renderFallback: c } = e, { theme: d } = useTheme(), f;
23481
+ let t = (0, import_compiler_runtime$4.c)(54), { message: n, onRefactorWithAI: i, cellId: a, wrapText: o, metadata: s, renderFallback: c } = e, { theme: d } = useTheme(), f;
23112
23482
  bb0: {
23113
23483
  let e2 = n.data;
23114
23484
  switch (n.mimetype) {
@@ -23300,11 +23670,11 @@ ${_}`,
23300
23670
  OutputRenderer.displayName = "OutputRenderer";
23301
23671
  var MimeBundleOutputRenderer = (0, import_react.memo)((e) => {
23302
23672
  var _a2;
23303
- let t = (0, import_compiler_runtime$2.c)(31), { data: n, channel: o, cellId: s } = e, c = Array.isArray(n) ? n[0] : n, { mode: d } = useAtomValue(viewStateAtom), f = d === "present" || d === "read", h = c[METADATA_KEY], _, v, y, S, w, E, O, A;
23673
+ let t = (0, import_compiler_runtime$4.c)(31), { data: n, channel: o, cellId: s } = e, c = Array.isArray(n) ? n[0] : n, { mode: d } = useAtomValue(viewStateAtom), f = d === "present" || d === "read", h = c[METADATA_KEY], _, v, y, S, w, E, O, A;
23304
23674
  if (t[0] !== f || t[1] !== s || t[2] !== o || t[3] !== h || t[4] !== c) {
23305
23675
  A = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
23306
23676
  bb0: {
23307
- let { entries: e2 } = processMimeBundle(Objects.entries(c).filter(_temp).map(_temp2)), n2 = (_a2 = e2[0]) == null ? void 0 : _a2[0];
23677
+ let { entries: e2 } = processMimeBundle(Objects.entries(c).filter(_temp$1).map(_temp2)), n2 = (_a2 = e2[0]) == null ? void 0 : _a2[0];
23308
23678
  if (!n2) {
23309
23679
  A = null;
23310
23680
  break bb0;
@@ -23371,7 +23741,7 @@ ${_}`,
23371
23741
  });
23372
23742
  MimeBundleOutputRenderer.displayName = "MimeBundleOutputRenderer";
23373
23743
  OutputArea = import_react.memo((e) => {
23374
- let t = (0, import_compiler_runtime$2.c)(17), { output: n, cellId: i, stale: o, loading: s, allowExpand: c, forceExpand: d, className: f } = e;
23744
+ let t = (0, import_compiler_runtime$4.c)(17), { output: n, cellId: i, stale: o, loading: s, allowExpand: c, forceExpand: d, className: f } = e;
23375
23745
  if (n == null || n.channel === "output" && n.data === "") return null;
23376
23746
  let h = o ? "This output is stale" : void 0, _ = c ? ExpandableOutput : Div, v;
23377
23747
  t[0] === i ? v = t[1] : (v = CellOutputId.create(i), t[0] = i, t[1] = v);
@@ -23396,7 +23766,7 @@ ${_}`,
23396
23766
  });
23397
23767
  OutputArea.displayName = "OutputArea";
23398
23768
  var Div = import_react.forwardRef((e, t) => {
23399
- let n = (0, import_compiler_runtime$2.c)(3), i;
23769
+ let n = (0, import_compiler_runtime$4.c)(3), i;
23400
23770
  return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)("div", {
23401
23771
  ref: t,
23402
23772
  ...e
@@ -23404,7 +23774,7 @@ ${_}`,
23404
23774
  });
23405
23775
  Div.displayName = "Div";
23406
23776
  var ExpandableOutput = import_react.memo((e) => {
23407
- let t = (0, import_compiler_runtime$2.c)(24), { cellId: n, children: i, forceExpand: s, ...c } = e, f = (0, import_react.useRef)(null), [h, _] = useExpandedOutput(n), v = useOverflowDetection(f), { hasFullscreen: y } = useIframeCapabilities(), S;
23777
+ let t = (0, import_compiler_runtime$4.c)(24), { cellId: n, children: i, forceExpand: s, ...c } = e, d = (0, import_react.useRef)(null), [h, _] = useExpandedOutput(n), v = useOverflowDetection(d), { hasFullscreen: y } = useIframeCapabilities(), S;
23408
23778
  t[0] === y ? S = t[1] : (S = y && (0, import_jsx_runtime.jsx)(Tooltip, {
23409
23779
  content: "Fullscreen",
23410
23780
  side: "left",
@@ -23413,7 +23783,7 @@ ${_}`,
23413
23783
  className: "hover-action hover:bg-muted p-1 hover:border-border border border-transparent",
23414
23784
  onClick: async () => {
23415
23785
  var _a2;
23416
- await ((_a2 = f.current) == null ? void 0 : _a2.requestFullscreen());
23786
+ await ((_a2 = d.current) == null ? void 0 : _a2.requestFullscreen());
23417
23787
  },
23418
23788
  onMouseDown: Events.preventFocus,
23419
23789
  size: "xs",
@@ -23465,7 +23835,7 @@ ${_}`,
23465
23835
  ...c,
23466
23836
  "data-cell-role": "output",
23467
23837
  className: O,
23468
- ref: f,
23838
+ ref: d,
23469
23839
  style: A,
23470
23840
  children: i
23471
23841
  }), t[13] = i, t[14] = c, t[15] = O, t[16] = A, t[17] = M) : M = t[17];
@@ -23489,7 +23859,7 @@ ${_}`,
23489
23859
  }), t[22] = I, t[23] = U), U;
23490
23860
  });
23491
23861
  ExpandableOutput.displayName = "ExpandableOutput";
23492
- function _temp(e) {
23862
+ function _temp$1(e) {
23493
23863
  let [t] = e;
23494
23864
  return t !== METADATA_KEY;
23495
23865
  }
@@ -23515,8 +23885,8 @@ ${_}`,
23515
23885
  })
23516
23886
  }, t);
23517
23887
  }
23518
- var import_compiler_runtime$1 = require_compiler_runtime(), CopyButton = (e) => {
23519
- let t = (0, import_compiler_runtime$1.c)(8), { value: n } = e, i = typeof n == "string" && (n.startsWith("text/html:") || n.startsWith("image/") || n.startsWith("video/")), [o, s] = (0, import_react.useState)(false), c;
23888
+ var import_compiler_runtime$3 = require_compiler_runtime(), CopyButton = (e) => {
23889
+ let t = (0, import_compiler_runtime$3.c)(8), { value: n } = e, i = typeof n == "string" && (n.startsWith("text/html:") || n.startsWith("image/") || n.startsWith("video/")), [o, s] = (0, import_react.useState)(false), c;
23520
23890
  t[0] === n ? c = t[1] : (c = async (e2) => {
23521
23891
  e2.stopPropagation(), await copyToClipboard(n), s(true), setTimeout(() => s(false), 1e3);
23522
23892
  }, t[0] = n, t[1] = c);
@@ -23539,7 +23909,7 @@ ${_}`,
23539
23909
  children: h
23540
23910
  }), t[5] = d, t[6] = h, t[7] = _) : _ = t[7], _;
23541
23911
  }, JSONCopyButton = (e) => {
23542
- let t = (0, import_compiler_runtime$1.c)(5), n;
23912
+ let t = (0, import_compiler_runtime$3.c)(5), n;
23543
23913
  t[0] === e.value ? n = t[1] : (n = JSON.stringify(e.value, null, 2), t[0] = e.value, t[1] = n);
23544
23914
  let i;
23545
23915
  return t[2] !== e || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)(CopyButton, {
@@ -23547,7 +23917,7 @@ ${_}`,
23547
23917
  value: n
23548
23918
  }), t[2] = e, t[3] = n, t[4] = i) : i = t[4], i;
23549
23919
  }, PyCopyButton = (e) => {
23550
- let t = (0, import_compiler_runtime$1.c)(5), n;
23920
+ let t = (0, import_compiler_runtime$3.c)(5), n;
23551
23921
  t[0] === e.value ? n = t[1] : (n = getCopyValue(e.value), t[0] = e.value, t[1] = n);
23552
23922
  let i;
23553
23923
  return t[2] !== e || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)(CopyButton, {
@@ -23556,7 +23926,7 @@ ${_}`,
23556
23926
  }), t[2] = e, t[3] = n, t[4] = i) : i = t[4], i;
23557
23927
  };
23558
23928
  JsonOutput = (0, import_react.memo)((e) => {
23559
- let t = (0, import_compiler_runtime$1.c)(23), { data: n, format: i, name: o, valueTypes: s, className: c } = e, d = i === void 0 ? "auto" : i, f = o === void 0 ? false : o, h = s === void 0 ? "python" : s, { theme: _ } = useTheme();
23929
+ let t = (0, import_compiler_runtime$3.c)(24), { data: n, format: i, name: o, valueTypes: s, className: c } = e, d = i === void 0 ? "auto" : i, f = o === void 0 ? false : o, h = s === void 0 ? "python" : s, { theme: _ } = useTheme();
23560
23930
  d === "auto" && (d = inferBestFormat(n));
23561
23931
  let v;
23562
23932
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
@@ -23572,10 +23942,10 @@ ${_}`,
23572
23942
  t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i2 = {
23573
23943
  backgroundColor: "transparent"
23574
23944
  }, t[3] = i2) : i2 = t[3];
23575
- let o2 = y[h], s2;
23576
- t[4] === n ? s2 = t[5] : (s2 = determineMaxDisplayLength(n), t[4] = n, t[5] = s2);
23577
- let d2;
23578
- return t[6] !== n || t[7] !== f || t[8] !== e2 || t[9] !== o2 || t[10] !== s2 || t[11] !== _ ? (d2 = (0, import_jsx_runtime.jsx)(JsonViewer, {
23945
+ let o2 = y[h], s2 = h === "python" ? keyRenderer : void 0, d2;
23946
+ t[4] === n ? d2 = t[5] : (d2 = determineMaxDisplayLength(n), t[4] = n, t[5] = d2);
23947
+ let v2;
23948
+ return t[6] !== n || t[7] !== f || t[8] !== e2 || t[9] !== o2 || t[10] !== s2 || t[11] !== d2 || t[12] !== _ ? (v2 = (0, import_jsx_runtime.jsx)(JsonViewer, {
23579
23949
  className: e2,
23580
23950
  rootName: f,
23581
23951
  theme: _,
@@ -23584,29 +23954,30 @@ ${_}`,
23584
23954
  style: i2,
23585
23955
  collapseStringsAfterLength: COLLAPSED_TEXT_LENGTH,
23586
23956
  valueTypes: o2,
23957
+ keyRenderer: s2,
23587
23958
  groupArraysAfterLength: 2 ** 53 - 1,
23588
23959
  enableClipboard: false,
23589
- maxDisplayLength: s2
23590
- }), t[6] = n, t[7] = f, t[8] = e2, t[9] = o2, t[10] = s2, t[11] = _, t[12] = d2) : d2 = t[12], d2;
23960
+ maxDisplayLength: d2
23961
+ }), t[6] = n, t[7] = f, t[8] = e2, t[9] = o2, t[10] = s2, t[11] = d2, t[12] = _, t[13] = v2) : v2 = t[13], v2;
23591
23962
  }
23592
23963
  case "raw": {
23593
23964
  let e2;
23594
- t[13] === n ? e2 = t[14] : (e2 = JSON.stringify(n, null, 2), t[13] = n, t[14] = e2);
23965
+ t[14] === n ? e2 = t[15] : (e2 = JSON.stringify(n, null, 2), t[14] = n, t[15] = e2);
23595
23966
  let i2;
23596
- return t[15] !== c || t[16] !== e2 ? (i2 = (0, import_jsx_runtime.jsx)("pre", {
23967
+ return t[16] !== c || t[17] !== e2 ? (i2 = (0, import_jsx_runtime.jsx)("pre", {
23597
23968
  className: c,
23598
23969
  children: e2
23599
- }), t[15] = c, t[16] = e2, t[17] = i2) : i2 = t[17], i2;
23970
+ }), t[16] = c, t[17] = e2, t[18] = i2) : i2 = t[18], i2;
23600
23971
  }
23601
23972
  default: {
23602
23973
  logNever(d);
23603
23974
  let e2;
23604
- t[18] === n ? e2 = t[19] : (e2 = JSON.stringify(n, null, 2), t[18] = n, t[19] = e2);
23975
+ t[19] === n ? e2 = t[20] : (e2 = JSON.stringify(n, null, 2), t[19] = n, t[20] = e2);
23605
23976
  let i2;
23606
- return t[20] !== c || t[21] !== e2 ? (i2 = (0, import_jsx_runtime.jsx)("pre", {
23977
+ return t[21] !== c || t[22] !== e2 ? (i2 = (0, import_jsx_runtime.jsx)("pre", {
23607
23978
  className: c,
23608
23979
  children: e2
23609
- }), t[20] = c, t[21] = e2, t[22] = i2) : i2 = t[22], i2;
23980
+ }), t[21] = c, t[22] = e2, t[23] = i2) : i2 = t[23], i2;
23610
23981
  }
23611
23982
  }
23612
23983
  });
@@ -23615,7 +23986,7 @@ ${_}`,
23615
23986
  return typeof e == "object" && e ? "tree" : "raw";
23616
23987
  }
23617
23988
  var COLLAPSED_TEXT_LENGTH = 100, CollapsibleTextOutput = (e) => {
23618
- let t = (0, import_compiler_runtime$1.c)(11), [n, i] = (0, import_react.useState)(true);
23989
+ let t = (0, import_compiler_runtime$3.c)(11), [n, i] = (0, import_react.useState)(true);
23619
23990
  if (e.text.length <= COLLAPSED_TEXT_LENGTH) {
23620
23991
  let n2;
23621
23992
  return t[0] === e.text ? n2 = t[1] : (n2 = (0, import_jsx_runtime.jsx)("span", {
@@ -23669,11 +24040,11 @@ ${_}`,
23669
24040
  "text/plain+bigint:": (e) => (0, import_jsx_runtime.jsx)("span", {
23670
24041
  children: e
23671
24042
  }),
23672
- "text/plain+set:": (e) => (0, import_jsx_runtime.jsxs)("span", {
23673
- children: [
23674
- "set",
23675
- e
23676
- ]
24043
+ "text/plain+set:": (e) => (0, import_jsx_runtime.jsx)("span", {
24044
+ children: formatSetPayload(e)
24045
+ }),
24046
+ "text/plain+frozenset:": (e) => (0, import_jsx_runtime.jsx)("span", {
24047
+ children: formatFrozensetPayload(e)
23677
24048
  }),
23678
24049
  "text/plain+tuple:": (e) => (0, import_jsx_runtime.jsx)("span", {
23679
24050
  children: e
@@ -23806,12 +24177,117 @@ ${_}`,
23806
24177
  children: e
23807
24178
  });
23808
24179
  }
23809
- var MIME_PREFIXES = Object.keys(LEAF_RENDERERS), REPLACE_PREFIX = "<marimo-replace>", REPLACE_SUFFIX = "</marimo-replace>";
24180
+ var KEY_ENCODED_PREFIX = "text/plain+";
24181
+ function formatCollectionItems(e) {
24182
+ return e.map((e2) => typeof e2 == "number" && !Number.isFinite(e2) ? Number.isNaN(e2) ? "float('nan')" : e2 > 0 ? "float('inf')" : "-float('inf')" : JSON.stringify(e2)).join(", ");
24183
+ }
24184
+ function formatTuplePayload(e) {
24185
+ let t = jsonParseWithSpecialChar(e);
24186
+ if (!Array.isArray(t)) return e;
24187
+ if (t.length === 0) return "()";
24188
+ let n = formatCollectionItems(t);
24189
+ return t.length === 1 ? `(${n},)` : `(${n})`;
24190
+ }
24191
+ function formatFrozensetPayload(e) {
24192
+ let t = jsonParseWithSpecialChar(e);
24193
+ return Array.isArray(t) ? t.length === 0 ? "frozenset()" : `frozenset({${formatCollectionItems(t)}})` : e;
24194
+ }
24195
+ function formatSetPayload(e) {
24196
+ let t = jsonParseWithSpecialChar(e);
24197
+ return Array.isArray(t) ? t.length === 0 ? "set()" : `{${formatCollectionItems(t)}}` : e;
24198
+ }
24199
+ var KEY_DECODERS = {
24200
+ "text/plain+int:": (e) => (0, import_jsx_runtime.jsx)("span", {
24201
+ children: e
24202
+ }),
24203
+ "text/plain+float:": (e) => (0, import_jsx_runtime.jsx)("span", {
24204
+ children: e
24205
+ }),
24206
+ "text/plain+bool:": (e) => (0, import_jsx_runtime.jsx)("span", {
24207
+ children: e === "True" ? "True" : "False"
24208
+ }),
24209
+ "text/plain+none:": () => (0, import_jsx_runtime.jsx)("span", {
24210
+ children: "None"
24211
+ }),
24212
+ "text/plain+tuple:": (e) => (0, import_jsx_runtime.jsx)("span", {
24213
+ children: formatTuplePayload(e)
24214
+ }),
24215
+ "text/plain+frozenset:": (e) => (0, import_jsx_runtime.jsx)("span", {
24216
+ children: formatFrozensetPayload(e)
24217
+ }),
24218
+ "text/plain+str:": (e) => (0, import_jsx_runtime.jsxs)("span", {
24219
+ children: [
24220
+ '"',
24221
+ e,
24222
+ '"'
24223
+ ]
24224
+ })
24225
+ };
24226
+ function isEncodedKey(e) {
24227
+ return typeof e == "string" && e.startsWith(KEY_ENCODED_PREFIX);
24228
+ }
24229
+ var INT_LIKE_STRING = /^-?\d+$/, keyRenderer = Object.assign(({ path: e }) => {
24230
+ let t = e[e.length - 1];
24231
+ if (typeof t != "string") return (0, import_jsx_runtime.jsx)("span", {
24232
+ children: String(t)
24233
+ });
24234
+ if (isEncodedKey(t)) {
24235
+ let [e2, n] = leafDataAndMimeType(t), i = KEY_DECODERS[`${n}:`];
24236
+ return i ? i(e2) : (0, import_jsx_runtime.jsx)("span", {
24237
+ children: t
24238
+ });
24239
+ }
24240
+ return (0, import_jsx_runtime.jsxs)("span", {
24241
+ children: [
24242
+ '"',
24243
+ t,
24244
+ '"'
24245
+ ]
24246
+ });
24247
+ }, {
24248
+ when: ({ path: e }) => {
24249
+ let t = e[e.length - 1];
24250
+ return isEncodedKey(t) || typeof t == "string" && INT_LIKE_STRING.test(t);
24251
+ }
24252
+ }), MIME_PREFIXES = Object.keys(LEAF_RENDERERS), REPLACE_PREFIX = "<marimo-replace>", REPLACE_SUFFIX = "</marimo-replace>";
23810
24253
  function pythonJsonReplacer(e, t) {
23811
- return t == null ? `${REPLACE_PREFIX}None${REPLACE_SUFFIX}` : typeof t == "object" ? t : typeof t == "bigint" ? `${REPLACE_PREFIX}${t}${REPLACE_SUFFIX}` : Array.isArray(t) ? t : typeof t == "string" ? t.startsWith("text/plain+float:") ? `${REPLACE_PREFIX}${leafData(t)}${REPLACE_SUFFIX}` : t.startsWith("text/plain+bigint:") ? `${REPLACE_PREFIX}${BigInt(leafData(t))}${REPLACE_SUFFIX}` : t.startsWith("text/plain+tuple:") ? `${REPLACE_PREFIX}(${leafData(t).slice(1, -1)})${REPLACE_SUFFIX}` : t.startsWith("text/plain+set:") ? `${REPLACE_PREFIX}{${leafData(t).slice(1, -1)}}${REPLACE_SUFFIX}` : MIME_PREFIXES.some((e2) => t.startsWith(e2)) ? leafData(t) : t : typeof t == "boolean" ? `${REPLACE_PREFIX}${t ? "True" : "False"}${REPLACE_SUFFIX}` : t;
24254
+ return t == null ? `${REPLACE_PREFIX}None${REPLACE_SUFFIX}` : typeof t == "object" ? t : typeof t == "bigint" ? `${REPLACE_PREFIX}${t}${REPLACE_SUFFIX}` : Array.isArray(t) ? t : typeof t == "string" ? t.startsWith("text/plain+float:") ? `${REPLACE_PREFIX}${leafData(t)}${REPLACE_SUFFIX}` : t.startsWith("text/plain+bigint:") ? `${REPLACE_PREFIX}${BigInt(leafData(t))}${REPLACE_SUFFIX}` : t.startsWith("text/plain+tuple:") ? `${REPLACE_PREFIX}(${leafData(t).slice(1, -1)})${REPLACE_SUFFIX}` : t.startsWith("text/plain+set:") ? `${REPLACE_PREFIX}${formatSetPayload(leafData(t))}${REPLACE_SUFFIX}` : t.startsWith("text/plain+frozenset:") ? `${REPLACE_PREFIX}${formatFrozensetPayload(leafData(t))}${REPLACE_SUFFIX}` : MIME_PREFIXES.some((e2) => t.startsWith(e2)) ? leafData(t) : t : typeof t == "boolean" ? `${REPLACE_PREFIX}${t ? "True" : "False"}${REPLACE_SUFFIX}` : t;
24255
+ }
24256
+ function decodeKeyForCopy(e) {
24257
+ let [t, n] = leafDataAndMimeType(e), i = (e2) => `${REPLACE_PREFIX}${e2}${REPLACE_SUFFIX}`;
24258
+ switch (`${n}:`) {
24259
+ case "text/plain+int:":
24260
+ return i(t);
24261
+ case "text/plain+float:":
24262
+ return i(t === "nan" ? "float('nan')" : t === "inf" ? "float('inf')" : t === "-inf" ? "-float('inf')" : t);
24263
+ case "text/plain+bool:":
24264
+ return i(t === "True" ? "True" : "False");
24265
+ case "text/plain+none:":
24266
+ return i("None");
24267
+ case "text/plain+tuple:":
24268
+ return i(formatTuplePayload(t));
24269
+ case "text/plain+frozenset:":
24270
+ return i(formatFrozensetPayload(t));
24271
+ case "text/plain+str:":
24272
+ return t;
24273
+ default:
24274
+ return e;
24275
+ }
24276
+ }
24277
+ function rewriteEncodedKeys(e) {
24278
+ if (Array.isArray(e)) return e.map(rewriteEncodedKeys);
24279
+ if (typeof e == "object" && e) {
24280
+ let t = {};
24281
+ for (let [n, i] of Object.entries(e)) {
24282
+ let e2 = isEncodedKey(n) ? decodeKeyForCopy(n) : n;
24283
+ t[e2] = rewriteEncodedKeys(i);
24284
+ }
24285
+ return t;
24286
+ }
24287
+ return e;
23812
24288
  }
23813
24289
  function getCopyValue(e) {
23814
- return JSON.stringify(e, pythonJsonReplacer, 2).replaceAll(`"${REPLACE_PREFIX}`, "").replaceAll(`${REPLACE_SUFFIX}"`, "");
24290
+ return JSON.stringify(rewriteEncodedKeys(e), pythonJsonReplacer, 2).replaceAll(`"${REPLACE_PREFIX}`, "").replaceAll(`${REPLACE_SUFFIX}"`, "");
23815
24291
  }
23816
24292
  function determineMaxDisplayLength(e) {
23817
24293
  if (Array.isArray(e)) {
@@ -23824,9 +24300,45 @@ ${_}`,
23824
24300
  return n <= 20 ? void 0 : n >= 50 ? 5 : 10;
23825
24301
  }
23826
24302
  }
23827
- var import_compiler_runtime = require_compiler_runtime();
24303
+ let import_compiler_runtime$2;
24304
+ import_compiler_runtime$2 = require_compiler_runtime();
24305
+ RadioGroup = import_react.forwardRef((e, t) => {
24306
+ let n = (0, import_compiler_runtime$2.c)(9), i, o;
24307
+ n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
24308
+ let s;
24309
+ n[3] === i ? s = n[4] : (s = cn("grid gap-2", i), n[3] = i, n[4] = s);
24310
+ let c;
24311
+ return n[5] !== o || n[6] !== t || n[7] !== s ? (c = (0, import_jsx_runtime.jsx)(Root2$1, {
24312
+ className: s,
24313
+ ...o,
24314
+ ref: t
24315
+ }), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
24316
+ });
24317
+ RadioGroup.displayName = Root2$1.displayName;
24318
+ RadioGroupItem = import_react.forwardRef((e, t) => {
24319
+ let n = (0, import_compiler_runtime$2.c)(13), i, o, s;
24320
+ n[0] === e ? (i = n[1], o = n[2], s = n[3]) : ({ className: o, children: i, ...s } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s);
24321
+ let c;
24322
+ n[4] === o ? c = n[5] : (c = cn("h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none", o), n[4] = o, n[5] = c);
24323
+ let d;
24324
+ n[6] === i ? d = n[7] : (d = i ?? (0, import_jsx_runtime.jsx)(Indicator, {
24325
+ className: "flex items-center justify-center",
24326
+ children: (0, import_jsx_runtime.jsx)(Circle, {
24327
+ className: "h-[10px] w-[10px] fill-primary text-current"
24328
+ })
24329
+ }), n[6] = i, n[7] = d);
24330
+ let f;
24331
+ return n[8] !== s || n[9] !== t || n[10] !== c || n[11] !== d ? (f = (0, import_jsx_runtime.jsx)(Item2, {
24332
+ ref: t,
24333
+ className: c,
24334
+ ...s,
24335
+ children: d
24336
+ }), n[8] = s, n[9] = t, n[10] = c, n[11] = d, n[12] = f) : f = n[12], f;
24337
+ });
24338
+ RadioGroupItem.displayName = Item2.displayName;
24339
+ var import_compiler_runtime$1 = require_compiler_runtime();
23828
24340
  Slide = (0, import_react.memo)((e) => {
23829
- let t = (0, import_compiler_runtime.c)(6), { output: n, cellId: i, status: a } = e, o;
24341
+ let t = (0, import_compiler_runtime$1.c)(6), { output: n, cellId: i, status: a } = e, o;
23830
24342
  t[0] === a ? o = t[1] : (o = outputIsLoading(a), t[0] = a, t[1] = o);
23831
24343
  let s = o, c;
23832
24344
  return t[2] !== i || t[3] !== s || t[4] !== n ? (c = (0, import_jsx_runtime.jsx)(OutputArea, {
@@ -23839,90 +24351,413 @@ ${_}`,
23839
24351
  }), t[2] = i, t[3] = s, t[4] = n, t[5] = c) : c = t[5], c;
23840
24352
  });
23841
24353
  Slide.displayName = "Slide";
24354
+ var import_compiler_runtime = require_compiler_runtime();
24355
+ DEFAULT_SLIDE_TYPE = "slide";
24356
+ DEFAULT_DECK_TRANSITION = "slide";
24357
+ var COLLAPSED_CONFIG_WIDTH = 36;
24358
+ let SLIDE_TYPE_OPTIONS;
24359
+ SLIDE_TYPE_OPTIONS = [
24360
+ {
24361
+ value: "slide",
24362
+ label: "Slide",
24363
+ description: "A new top-level slide. Advances horizontally with the right arrow.",
24364
+ Icon: LayoutTemplate
24365
+ },
24366
+ {
24367
+ value: "sub-slide",
24368
+ label: "Sub-slide",
24369
+ description: "Stacks vertically under the previous slide. Reached with the down arrow.",
24370
+ Icon: Rows2
24371
+ },
24372
+ {
24373
+ value: "fragment",
24374
+ label: "Fragment",
24375
+ description: "Reveals step-by-step on the current slide without advancing.",
24376
+ Icon: Cookie
24377
+ },
24378
+ {
24379
+ value: "skip",
24380
+ label: "Skip",
24381
+ description: "Hidden from the presentation. Still visible here in the editor.",
24382
+ Icon: EyeOff
24383
+ }
24384
+ ];
24385
+ SLIDE_TYPE_OPTIONS_BY_VALUE = Object.fromEntries(SLIDE_TYPE_OPTIONS.map((e) => [
24386
+ e.value,
24387
+ e
24388
+ ]));
24389
+ var DECK_TRANSITION_OPTIONS = [
24390
+ {
24391
+ value: "none",
24392
+ label: "None",
24393
+ description: "No animation between slides."
24394
+ },
24395
+ {
24396
+ value: "fade",
24397
+ label: "Fade",
24398
+ description: "Cross-fade between slides."
24399
+ },
24400
+ {
24401
+ value: "slide",
24402
+ label: "Slide",
24403
+ description: "Slides move horizontally / vertically."
24404
+ },
24405
+ {
24406
+ value: "convex",
24407
+ label: "Convex",
24408
+ description: "Rotate with a convex curve."
24409
+ },
24410
+ {
24411
+ value: "concave",
24412
+ label: "Concave",
24413
+ description: "Rotate with a concave curve."
24414
+ },
24415
+ {
24416
+ value: "zoom",
24417
+ label: "Zoom",
24418
+ description: "Zoom into the next slide."
24419
+ }
24420
+ ], SlidesForm = (e) => {
24421
+ let t = (0, import_compiler_runtime.c)(11), { layout: n, setLayout: i, cellId: a } = e, o;
24422
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (0, import_jsx_runtime.jsxs)(TabsList, {
24423
+ className: "grid grid-cols-2",
24424
+ children: [
24425
+ (0, import_jsx_runtime.jsx)(TabsTrigger, {
24426
+ value: "slide",
24427
+ children: "Slide"
24428
+ }),
24429
+ (0, import_jsx_runtime.jsx)(TabsTrigger, {
24430
+ value: "deck",
24431
+ children: "Deck"
24432
+ })
24433
+ ]
24434
+ }), t[0] = o) : o = t[0];
24435
+ let s;
24436
+ t[1] !== a || t[2] !== n || t[3] !== i ? (s = (0, import_jsx_runtime.jsx)(TabsContent, {
24437
+ value: "slide",
24438
+ className: "mt-0 flex-1",
24439
+ children: (0, import_jsx_runtime.jsx)(SlideConfigForm, {
24440
+ layout: n,
24441
+ setLayout: i,
24442
+ cellId: a
24443
+ })
24444
+ }), t[1] = a, t[2] = n, t[3] = i, t[4] = s) : s = t[4];
24445
+ let c;
24446
+ t[5] !== n || t[6] !== i ? (c = (0, import_jsx_runtime.jsx)(TabsContent, {
24447
+ value: "deck",
24448
+ className: "mt-0 flex-1",
24449
+ children: (0, import_jsx_runtime.jsx)(DeckConfigForm, {
24450
+ layout: n,
24451
+ setLayout: i
24452
+ })
24453
+ }), t[5] = n, t[6] = i, t[7] = c) : c = t[7];
24454
+ let d;
24455
+ return t[8] !== s || t[9] !== c ? (d = (0, import_jsx_runtime.jsxs)(Tabs, {
24456
+ defaultValue: "slide",
24457
+ className: "flex flex-col flex-1 p-3 gap-3",
24458
+ children: [
24459
+ o,
24460
+ s,
24461
+ c
24462
+ ]
24463
+ }), t[8] = s, t[9] = c, t[10] = d) : d = t[10], d;
24464
+ }, SlideConfigForm = (e) => {
24465
+ var _a2;
24466
+ let t = (0, import_compiler_runtime.c)(13), { layout: n, setLayout: i, cellId: o } = e, s = ((_a2 = n.cells.get(o)) == null ? void 0 : _a2.type) ?? "slide", c;
24467
+ t[0] !== o || t[1] !== n || t[2] !== i ? (c = (e2) => {
24468
+ let t2 = n.cells.get(o), a = new Map(n.cells);
24469
+ a.set(o, {
24470
+ ...t2,
24471
+ type: e2
24472
+ }), i({
24473
+ ...n,
24474
+ cells: a
24475
+ });
24476
+ }, t[0] = o, t[1] = n, t[2] = i, t[3] = c) : c = t[3];
24477
+ let d = c, f;
24478
+ t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (0, import_jsx_runtime.jsx)("span", {
24479
+ className: "font-semibold text-sm",
24480
+ children: "Slide type"
24481
+ }), t[4] = f) : f = t[4];
24482
+ let h;
24483
+ t[5] === d ? h = t[6] : (h = (e2) => d(e2), t[5] = d, t[6] = h);
24484
+ let _;
24485
+ t[7] === s ? _ = t[8] : (_ = SLIDE_TYPE_OPTIONS.map((e2) => {
24486
+ let { value: t2, label: n2, description: i2, Icon: o2 } = e2, c2 = s === t2;
24487
+ return (0, import_jsx_runtime.jsx)(RadioGroupItem, {
24488
+ value: t2,
24489
+ className: cn("group h-auto w-full text-left rounded-md p-2.5 transition-colors shadow-none! border", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", c2 ? "border-primary bg-primary/5" : "border-border bg-background hover:bg-accent/50 hover:border-foreground/30"),
24490
+ children: (0, import_jsx_runtime.jsxs)("div", {
24491
+ className: "flex items-start gap-2.5",
24492
+ children: [
24493
+ (0, import_jsx_runtime.jsx)("span", {
24494
+ className: cn("mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded", c2 ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground group-hover:text-foreground"),
24495
+ children: (0, import_jsx_runtime.jsx)(o2, {
24496
+ className: "h-3.5 w-3.5"
24497
+ })
24498
+ }),
24499
+ (0, import_jsx_runtime.jsxs)("div", {
24500
+ children: [
24501
+ (0, import_jsx_runtime.jsx)("p", {
24502
+ className: cn("text-sm font-medium leading-tight", c2 ? "text-primary" : "text-foreground"),
24503
+ children: n2
24504
+ }),
24505
+ (0, import_jsx_runtime.jsx)("p", {
24506
+ className: "mt-0.5 text-xs text-foreground/70",
24507
+ children: i2
24508
+ })
24509
+ ]
24510
+ })
24511
+ ]
24512
+ })
24513
+ }, t2);
24514
+ }), t[7] = s, t[8] = _);
24515
+ let v;
24516
+ return t[9] !== s || t[10] !== h || t[11] !== _ ? (v = (0, import_jsx_runtime.jsxs)("div", {
24517
+ className: "flex flex-col gap-3",
24518
+ children: [
24519
+ f,
24520
+ (0, import_jsx_runtime.jsx)(RadioGroup, {
24521
+ "aria-label": "Slide type",
24522
+ value: s,
24523
+ onValueChange: h,
24524
+ className: "flex flex-col gap-1.5",
24525
+ children: _
24526
+ })
24527
+ ]
24528
+ }), t[9] = s, t[10] = h, t[11] = _, t[12] = v) : v = t[12], v;
24529
+ }, DeckConfigForm = (e) => {
24530
+ var _a2, _b;
24531
+ let t = (0, import_compiler_runtime.c)(18), { layout: n, setLayout: i } = e, a = ((_a2 = n.deck) == null ? void 0 : _a2.transition) ?? "slide", o;
24532
+ t[0] === a ? o = t[1] : (o = (_b = DECK_TRANSITION_OPTIONS.find((e2) => e2.value === a)) == null ? void 0 : _b.description, t[0] = a, t[1] = o);
24533
+ let s = o, c;
24534
+ t[2] !== n || t[3] !== i ? (c = (e2) => {
24535
+ i({
24536
+ ...n,
24537
+ deck: {
24538
+ ...n.deck,
24539
+ transition: e2
24540
+ }
24541
+ });
24542
+ }, t[2] = n, t[3] = i, t[4] = c) : c = t[4];
24543
+ let d = c, f;
24544
+ t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (0, import_jsx_runtime.jsx)("label", {
24545
+ htmlFor: "deck-transition",
24546
+ className: "font-semibold text-sm text-foreground",
24547
+ children: "Transition"
24548
+ }), t[5] = f) : f = t[5];
24549
+ let h;
24550
+ t[6] === d ? h = t[7] : (h = (e2) => d(e2), t[6] = d, t[7] = h);
24551
+ let _;
24552
+ t[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (0, import_jsx_runtime.jsx)(SelectTrigger, {
24553
+ id: "deck-transition",
24554
+ "aria-label": "Slide transition",
24555
+ children: (0, import_jsx_runtime.jsx)(SelectValue, {})
24556
+ }), t[8] = _) : _ = t[8];
24557
+ let v;
24558
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (0, import_jsx_runtime.jsx)(SelectContent, {
24559
+ children: DECK_TRANSITION_OPTIONS.map(_temp)
24560
+ }), t[9] = v) : v = t[9];
24561
+ let y;
24562
+ t[10] !== a || t[11] !== h ? (y = (0, import_jsx_runtime.jsxs)(Select, {
24563
+ value: a,
24564
+ onValueChange: h,
24565
+ children: [
24566
+ _,
24567
+ v
24568
+ ]
24569
+ }), t[10] = a, t[11] = h, t[12] = y) : y = t[12];
24570
+ let S;
24571
+ t[13] === s ? S = t[14] : (S = s && (0, import_jsx_runtime.jsx)("p", {
24572
+ className: "text-xs text-foreground/70",
24573
+ children: s
24574
+ }), t[13] = s, t[14] = S);
24575
+ let w;
24576
+ return t[15] !== y || t[16] !== S ? (w = (0, import_jsx_runtime.jsx)("div", {
24577
+ className: "flex flex-col gap-3",
24578
+ children: (0, import_jsx_runtime.jsxs)("div", {
24579
+ className: "flex flex-col gap-1.5",
24580
+ children: [
24581
+ f,
24582
+ y,
24583
+ S
24584
+ ]
24585
+ })
24586
+ }), t[15] = y, t[16] = S, t[17] = w) : w = t[17], w;
24587
+ };
24588
+ SlideSidebar = (e) => {
24589
+ let t = (0, import_compiler_runtime.c)(30), { configWidth: n, layout: i, setLayout: o, activeConfigCell: s } = e, [c, d] = (0, import_react.useState)(false), h = c ? n : COLLAPSED_CONFIG_WIDTH, _;
24590
+ t[0] === h ? _ = t[1] : (_ = {
24591
+ width: h
24592
+ }, t[0] = h, t[1] = _);
24593
+ let v = c ? "justify-between px-2" : "justify-center px-0", y;
24594
+ t[2] === v ? y = t[3] : (y = cn("flex items-center h-9 shrink-0 border-b border-border/60", v), t[2] = v, t[3] = y);
24595
+ let S;
24596
+ t[4] === c ? S = t[5] : (S = c && (0, import_jsx_runtime.jsx)("span", {
24597
+ className: "text-xs font-medium uppercase tracking-wide text-muted-foreground pl-1",
24598
+ children: "Configuration"
24599
+ }), t[4] = c, t[5] = S);
24600
+ let w = c ? "Collapse panel" : "Expand panel", E;
24601
+ t[6] === c ? E = t[7] : (E = () => d(!c), t[6] = c, t[7] = E);
24602
+ let O;
24603
+ t[8] === c ? O = t[9] : (O = c ? (0, import_jsx_runtime.jsx)(PanelRightClose, {
24604
+ className: "h-4 w-4"
24605
+ }) : (0, import_jsx_runtime.jsx)(PanelRightOpen, {
24606
+ className: "h-4 w-4"
24607
+ }), t[8] = c, t[9] = O);
24608
+ let A;
24609
+ t[10] !== c || t[11] !== E || t[12] !== O ? (A = (0, import_jsx_runtime.jsx)(Button, {
24610
+ variant: "ghost",
24611
+ size: "icon",
24612
+ className: "h-7 w-7 text-muted-foreground hover:text-foreground",
24613
+ onClick: E,
24614
+ "aria-expanded": c,
24615
+ "aria-controls": "slide-config-panel",
24616
+ children: O
24617
+ }), t[10] = c, t[11] = E, t[12] = O, t[13] = A) : A = t[13];
24618
+ let M;
24619
+ t[14] !== w || t[15] !== A ? (M = (0, import_jsx_runtime.jsx)(Tooltip, {
24620
+ content: w,
24621
+ children: A
24622
+ }), t[14] = w, t[15] = A, t[16] = M) : M = t[16];
24623
+ let I;
24624
+ t[17] !== M || t[18] !== y || t[19] !== S ? (I = (0, import_jsx_runtime.jsxs)("header", {
24625
+ className: y,
24626
+ children: [
24627
+ S,
24628
+ M
24629
+ ]
24630
+ }), t[17] = M, t[18] = y, t[19] = S, t[20] = I) : I = t[20];
24631
+ let z;
24632
+ t[21] !== s || t[22] !== c || t[23] !== i || t[24] !== o ? (z = c && (0, import_jsx_runtime.jsx)("div", {
24633
+ id: "slide-config-panel",
24634
+ className: "flex-1 overflow-y-auto overflow-x-hidden",
24635
+ children: s ? (0, import_jsx_runtime.jsx)(SlidesForm, {
24636
+ layout: i,
24637
+ setLayout: o,
24638
+ cellId: s.id
24639
+ }) : (0, import_jsx_runtime.jsxs)("div", {
24640
+ className: "flex flex-col gap-1.5 p-3 text-xs text-muted-foreground",
24641
+ children: [
24642
+ (0, import_jsx_runtime.jsx)("span", {
24643
+ className: "font-semibold text-sm text-foreground",
24644
+ children: "No slides yet"
24645
+ }),
24646
+ (0, import_jsx_runtime.jsx)("p", {
24647
+ children: "Run a cell that produces output to add it to the deck. Slide settings will appear here once a slide is selected."
24648
+ })
24649
+ ]
24650
+ })
24651
+ }), t[21] = s, t[22] = c, t[23] = i, t[24] = o, t[25] = z) : z = t[25];
24652
+ let U;
24653
+ return t[26] !== I || t[27] !== z || t[28] !== _ ? (U = (0, import_jsx_runtime.jsxs)("aside", {
24654
+ className: "h-full flex flex-col border-l border-border/60 bg-muted/20 transition-[width] duration-200 ease-out overflow-hidden",
24655
+ style: _,
24656
+ "aria-label": "Slide configuration",
24657
+ children: [
24658
+ I,
24659
+ z
24660
+ ]
24661
+ }), t[26] = I, t[27] = z, t[28] = _, t[29] = U) : U = t[29], U;
24662
+ };
24663
+ function _temp(e) {
24664
+ let { value: t, label: n } = e;
24665
+ return (0, import_jsx_runtime.jsx)(SelectItem, {
24666
+ value: t,
24667
+ children: n
24668
+ }, t);
24669
+ }
23842
24670
  });
23843
24671
  export {
23844
- CommandItem as $,
23845
- TableHeader as A,
23846
- usePrevious as B,
23847
- Toggle as C,
23848
- Download as Ct,
23849
- TableBody as D,
23850
- ChevronsDownUp as Dt,
23851
- Table as E,
23852
- ChevronsLeft as Et,
23853
- renderCellValue as F,
23854
- SELECT_COLUMN_ID as G,
23855
- loadTableAndRawData as H,
23856
- ColumnChartContext as I,
23857
- getMimeValues as J,
23858
- TOO_MANY_ROWS as K,
23859
- ColumnChartSpecModel as L,
23860
- NAMELESS_COLUMN_PREFIX as M,
23861
- generateColumns as N,
23862
- TableCell as O,
23863
- ChevronLeft as Ot,
23864
- inferFieldTypes as P,
23865
- CommandInput as Q,
23866
- DelayMount as R,
23867
- slotsController as S,
23868
- Ellipsis as St,
23869
- Provider$1 as T,
23870
- ChevronsRight as Tt,
23871
- loadTableData as U,
23872
- getPageIndexForRow as V,
23873
- INDEX_COLUMN_NAME as W,
23874
- Command as X,
23875
- filtersToFilterGroup as Y,
23876
- CommandEmpty as Z,
23877
- contextAwarePanelOpen as _,
24672
+ toFieldTypes as $,
24673
+ Fill as A,
24674
+ Download as At,
24675
+ inferFieldTypes as B,
24676
+ contextAwarePanelOpen as C,
24677
+ isStaticNotebook as Ct,
24678
+ SlotNames as D,
24679
+ EyeOff as Dt,
24680
+ isCellAwareAtom as E,
24681
+ Funnel as Et,
24682
+ TableHead as F,
24683
+ ChevronLeft as Ft,
24684
+ useIntersectionObserver as G,
24685
+ ColumnChartContext as H,
24686
+ TableHeader as I,
24687
+ ArrowDownWideNarrow as It,
24688
+ loadTableAndRawData as J,
24689
+ usePrevious as K,
24690
+ TableRow as L,
24691
+ Table as M,
24692
+ ChevronsRight as Mt,
24693
+ TableBody as N,
24694
+ ChevronsLeft as Nt,
24695
+ slotsController as O,
24696
+ Expand as Ot,
24697
+ TableCell as P,
24698
+ ChevronsDownUp as Pt,
24699
+ TOO_MANY_ROWS as Q,
24700
+ NAMELESS_COLUMN_PREFIX as R,
24701
+ PANEL_TYPES as S,
24702
+ getStaticVirtualFiles as St,
24703
+ contextAwarePanelType as T,
24704
+ GripHorizontal as Tt,
24705
+ ColumnChartSpecModel as U,
24706
+ renderCellValue as V,
24707
+ DelayMount as W,
24708
+ INDEX_COLUMN_NAME as X,
24709
+ loadTableData as Y,
24710
+ SELECT_COLUMN_ID as Z,
24711
+ Filenames as _,
23878
24712
  __tla,
23879
- isStaticNotebook as _t,
23880
- DataTable as a,
23881
- TabsList as at,
23882
- isCellAwareAtom as b,
23883
- Funnel as bt,
23884
- downloadBlob as c,
23885
- ChartInfoState as ct,
23886
- Filenames as d,
23887
- useOverflowDetection as dt,
23888
- CommandList as et,
23889
- prettifyRowColumnCount as f,
23890
- RenderTextWithLinks as ft,
23891
- PANEL_TYPES as g,
23892
- getStaticVirtualFiles as gt,
23893
- ContextAwarePanelItem as h,
23894
- EmotionCacheProvider as ht,
23895
- OutputRenderer as i,
23896
- TabsContent as it,
23897
- TableRow as j,
23898
- TableHead as k,
23899
- ArrowDownWideNarrow as kt,
23900
- downloadByURL as l,
23901
- ChartLoadingState as lt,
23902
- useInternalStateWithSync as m,
23903
- HtmlOutput as mt,
23904
- JsonOutput as n,
23905
- Maps as nt,
23906
- InstallPackageButton as o,
23907
- TabsTrigger as ot,
23908
- prettifyRowCount as p,
23909
- Kbd as pt,
23910
- toFieldTypes as q,
23911
- OutputArea as r,
23912
- Tabs as rt,
23913
- ADD_PRINTING_CLASS as s,
23914
- ChartErrorState as st,
23915
- Slide as t,
23916
- CommandSeparator as tt,
23917
- downloadHTMLAsImage as u,
23918
- LazyVegaEmbed as ut,
23919
- contextAwarePanelOwner as v,
23920
- TextWrap as vt,
23921
- Fill as w,
23922
- ChevronsUpDown as wt,
23923
- SlotNames as x,
23924
- Expand as xt,
23925
- contextAwarePanelType as y,
23926
- GripHorizontal as yt,
23927
- useIntersectionObserver as z
24713
+ useOverflowDetection as _t,
24714
+ Slide as a,
24715
+ CommandItem as at,
24716
+ useInternalStateWithSync as b,
24717
+ HtmlOutput as bt,
24718
+ JsonOutput as c,
24719
+ Maps as ct,
24720
+ DataTable as d,
24721
+ TabsList as dt,
24722
+ getMimeValues as et,
24723
+ InstallPackageButton as f,
24724
+ TabsTrigger as ft,
24725
+ downloadHTMLAsImage as g,
24726
+ LazyVegaEmbed as gt,
24727
+ downloadByURL as h,
24728
+ ChartLoadingState as ht,
24729
+ SlideSidebar as i,
24730
+ CommandInput as it,
24731
+ Provider$1 as j,
24732
+ ChevronsUpDown as jt,
24733
+ Toggle as k,
24734
+ Ellipsis as kt,
24735
+ OutputArea as l,
24736
+ Tabs as lt,
24737
+ downloadBlob as m,
24738
+ ChartInfoState as mt,
24739
+ DEFAULT_SLIDE_TYPE as n,
24740
+ Command as nt,
24741
+ RadioGroup as o,
24742
+ CommandList as ot,
24743
+ ADD_PRINTING_CLASS as p,
24744
+ ChartErrorState as pt,
24745
+ getPageIndexForRow as q,
24746
+ SLIDE_TYPE_OPTIONS_BY_VALUE as r,
24747
+ CommandEmpty as rt,
24748
+ RadioGroupItem as s,
24749
+ CommandSeparator as st,
24750
+ DEFAULT_DECK_TRANSITION as t,
24751
+ filtersToFilterGroup as tt,
24752
+ OutputRenderer as u,
24753
+ TabsContent as ut,
24754
+ prettifyRowColumnCount as v,
24755
+ RenderTextWithLinks as vt,
24756
+ contextAwarePanelOwner as w,
24757
+ TextWrap as wt,
24758
+ ContextAwarePanelItem as x,
24759
+ EmotionCacheProvider as xt,
24760
+ prettifyRowCount as y,
24761
+ Kbd as yt,
24762
+ generateColumns as z
23928
24763
  };