@marimo-team/islands 0.23.16-dev23 → 0.23.16-dev25

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.
@@ -35,7 +35,7 @@ import { V as getContainerWidth, n as formats } from "./vega-loader.browser-Dmpx
35
35
  import { a as tooltipHandler, n as vegaLoadData, r as createBatchedLoader, t as parseCsvData } from "./loader-DX-IDS7n.js";
36
36
  import { t as useIframeCapabilities } from "./useIframeCapabilities-kA09ykNq.js";
37
37
  import { t as useAsyncData } from "./useAsyncData-CYOQb1EW.js";
38
- let ContextAwarePanelItem, EmotionCacheProvider, prettifyRowColumnCount, loadTableData, useSelectList, dateToLocalISOTime, Filenames, ColumnChartContext, EmptyState, usePrevious, ColumnPreviewContainer, useIntersectionObserver, ContextMenuContent, getMimeValues, ComboboxItem, ChartErrorState, DatePicker, TabsContent, ContextMenuItem, isNullishFilter, CommandInput, LazyVegaEmbed, Command, ChartInfoState, ContextMenuSeparator, Maps, getColumnCountForDisplay, SELECT_COLUMN_ID, getUserColumnVisibilityCounts, TOO_MANY_ROWS, ErrorState, getPageIndexForRow, ContextMenu, toFieldTypes, smartMatch, HtmlOutput, ContextMenuTrigger, dateToLocalISODate, Progress, renderCellValue, ColumnName, DelayMount, DateRangePicker, TabsList, CompactChipRow, Tabs, Combobox, TabsTrigger, CommandList, RenderTextWithLinks, CommandItem, useOverflowDetection, CommandSeparator, Kbd, InstallPackageButton, ChevronLeft, TableHeader, DEFAULT_DECK_VERTICAL_ALIGN, TextWrap, SlotNames, downloadByURL, generateColumns, SlideSidebar, EyeOff, Panel, RadioGroup, Download, Fill, safeLocale, PANEL_TYPES, RadioGroupItem, Code, Provider$1, DataTable, ChevronsDownUp, TableHead, OutputRenderer, ChevronsLeft, TableCell, DEFAULT_DECK_TRANSITION, $fae977aafc393c5c$export$6b862160d295c8e, isCellAwareAtom, prettifyRowCount, INDEX_COLUMN_NAME, LoadingState, loadTableAndRawData, Slide, Expand, PanelGroup, OutputArea, ChevronsRight, TableBody, marimoVersionAtom, isRecord, contextAwarePanelOwner, DEFAULT_SLIDE_TYPE, GripHorizontal, slotsController, JsonOutput, ChevronsUpDown, Table, CommandEmpty, ChartLoadingState, showCodeInRunModeAtom, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelType, SLIDE_TYPE_OPTIONS_BY_VALUE, Funnel, Toggle, useNotebookCodeAvailable, hasFunctionProperty, contextAwarePanelOpen, Switch, Ellipsis, PanelResizeHandle, ADD_PRINTING_CLASS, ArrowDownWideNarrow, TableRow, downloadSizeLimitAtom, ColumnChartSpecModel, downloadHTMLAsImage, inferFieldTypes, downloadBlob, NAMELESS_COLUMN_PREFIX, useInternalStateWithSync, dateToLocalISODateTime;
38
+ let smartMatch, HtmlOutput, LoadingState, loadTableAndRawData, useInternalStateWithSync, dateToLocalISODateTime, Progress, renderCellValue, ColumnPreviewContainer, useIntersectionObserver, ColumnName, DelayMount, ContextMenu, toFieldTypes, Combobox, TabsTrigger, CompactChipRow, Tabs, ContextMenuContent, getMimeValues, CommandEmpty, ChartLoadingState, ComboboxItem, ChartErrorState, ContextMenuItem, isNullishFilter, prettifyRowCount, INDEX_COLUMN_NAME, getColumnCountForDisplay, SELECT_COLUMN_ID, EmptyState, usePrevious, getUserColumnVisibilityCounts, TOO_MANY_ROWS, CommandSeparator, Kbd, ContextMenuSeparator, Maps, downloadHTMLAsImage, inferFieldTypes, downloadSizeLimitAtom, ColumnChartSpecModel, DatePicker, TabsContent, useSelectList, dateToLocalISOTime, DateRangePicker, TabsList, CommandItem, useOverflowDetection, CommandInput, LazyVegaEmbed, CommandList, RenderTextWithLinks, InstallPackageButton, ChevronsDownUp, TableHead, DEFAULT_DECK_VERTICAL_ALIGN, $fae977aafc393c5c$export$6b862160d295c8e, isCellAwareAtom, downloadByURL, NAMELESS_COLUMN_PREFIX, SlideSidebar, Funnel, Toggle, RadioGroup, Ellipsis, PanelResizeHandle, EmotionCacheProvider, ContextAwarePanelItem, RadioGroupItem, Download, Fill, DataTable, ChevronsLeft, TableCell, OutputRenderer, ChevronsRight, TableBody, DEFAULT_DECK_TRANSITION, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelType, prettifyRowColumnCount, loadTableData, ErrorState, getPageIndexForRow, Slide, EyeOff, Panel, OutputArea, ChevronsUpDown, Table, marimoVersionAtom, hasFunctionProperty, contextAwarePanelOpen, DEFAULT_SLIDE_TYPE, TextWrap, SlotNames, JsonOutput, Code, Provider$1, Command, ChartInfoState, showCodeInRunModeAtom, isRecord, contextAwarePanelOwner, SLIDE_TYPE_OPTIONS_BY_VALUE, GripHorizontal, slotsController, useNotebookCodeAvailable, safeLocale, PANEL_TYPES, Switch, Expand, PanelGroup, ADD_PRINTING_CLASS, ChevronLeft, TableHeader, Filenames, ColumnChartContext, downloadExportedFile, generateColumns, downloadBlob, ArrowDownWideNarrow, TableRow, ContextMenuTrigger, dateToLocalISODate;
39
39
  let __tla = Promise.all([
40
40
  (() => {
41
41
  try {
@@ -2061,21 +2061,21 @@ Defaulting to \`null\`.`;
2061
2061
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
2062
2062
  let { block: i = "nearest", inline: a = "nearest" } = n;
2063
2063
  if (e === t) return;
2064
- let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, sJ = c.top - E, cJ = c.bottom + O, lJ = c.left - A, uJ = c.right + M, dJ = e === _ ? 0 : Q + $, fJ = e === _ ? 0 : q + J, pJ = e.offsetWidth - e.clientWidth - dJ, mJ = e.offsetHeight - e.clientHeight - fJ, hJ = v + q + I, gJ = y - J - z - mJ, _J = S + Q + U, vJ = w - $ - K;
2065
- h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? _J += pJ : vJ -= pJ;
2066
- let yJ = sJ < hJ || cJ > gJ, bJ = lJ < _J || uJ > vJ;
2067
- if (yJ && i === "start") o += sJ - hJ;
2068
- else if (yJ && i === "center") o += (sJ + cJ) / 2 - (hJ + gJ) / 2;
2069
- else if (yJ && i === "end") o += cJ - gJ;
2070
- else if (yJ && i === "nearest") {
2071
- let e2 = sJ - hJ, t2 = cJ - gJ;
2064
+ let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, cJ = c.top - E, lJ = c.bottom + O, uJ = c.left - A, dJ = c.right + M, fJ = e === _ ? 0 : Q + $, pJ = e === _ ? 0 : q + J, mJ = e.offsetWidth - e.clientWidth - fJ, hJ = e.offsetHeight - e.clientHeight - pJ, gJ = v + q + I, _J = y - J - z - hJ, vJ = S + Q + U, yJ = w - $ - K;
2065
+ h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? vJ += mJ : yJ -= mJ;
2066
+ let bJ = cJ < gJ || lJ > _J, xJ = uJ < vJ || dJ > yJ;
2067
+ if (bJ && i === "start") o += cJ - gJ;
2068
+ else if (bJ && i === "center") o += (cJ + lJ) / 2 - (gJ + _J) / 2;
2069
+ else if (bJ && i === "end") o += lJ - _J;
2070
+ else if (bJ && i === "nearest") {
2071
+ let e2 = cJ - gJ, t2 = lJ - _J;
2072
2072
  o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2073
2073
  }
2074
- if (bJ && a === "start") s += lJ - _J;
2075
- else if (bJ && a === "center") s += (lJ + uJ) / 2 - (_J + vJ) / 2;
2076
- else if (bJ && a === "end") s += uJ - vJ;
2077
- else if (bJ && a === "nearest") {
2078
- let e2 = lJ - _J, t2 = uJ - vJ;
2074
+ if (xJ && a === "start") s += uJ - vJ;
2075
+ else if (xJ && a === "center") s += (uJ + dJ) / 2 - (vJ + yJ) / 2;
2076
+ else if (xJ && a === "end") s += dJ - yJ;
2077
+ else if (xJ && a === "nearest") {
2078
+ let e2 = uJ - vJ, t2 = dJ - yJ;
2079
2079
  s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2080
2080
  }
2081
2081
  e.scrollTo({
@@ -5185,23 +5185,23 @@ Defaulting to \`null\`.`;
5185
5185
  }
5186
5186
  let $ = "bottom";
5187
5187
  A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
5188
- let sJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5189
- q[I] += sJ;
5190
- let cJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5191
- y && y < cJ && (cJ = y), n.height = Math.min(n.height, cJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), sJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += sJ;
5192
- let lJ = {}, uJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], dJ = uJ + 0.5 * t[z], fJ = S / 2 + w, pJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), mJ = n[z] - pJ - S / 2 - w;
5193
- lJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(dJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), fJ, mJ), { placement: U, crossPlacement: K } = A, S ? uJ = lJ[I] : K === "right" ? uJ += t[z] : K === "center" && (uJ += t[z] / 2);
5194
- let hJ = U === "left" || U === "top" ? n[M] : 0, gJ = {
5195
- x: U === "top" || U === "bottom" ? uJ : hJ,
5196
- y: U === "left" || U === "right" ? uJ : hJ
5188
+ let cJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5189
+ q[I] += cJ;
5190
+ let lJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5191
+ y && y < lJ && (lJ = y), n.height = Math.min(n.height, lJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), cJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += cJ;
5192
+ let uJ = {}, dJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], fJ = dJ + 0.5 * t[z], pJ = S / 2 + w, mJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), hJ = n[z] - mJ - S / 2 - w;
5193
+ uJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(fJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), pJ, hJ), { placement: U, crossPlacement: K } = A, S ? dJ = uJ[I] : K === "right" ? dJ += t[z] : K === "center" && (dJ += t[z] / 2);
5194
+ let gJ = U === "left" || U === "top" ? n[M] : 0, _J = {
5195
+ x: U === "top" || U === "bottom" ? dJ : gJ,
5196
+ y: U === "left" || U === "right" ? dJ : gJ
5197
5197
  };
5198
5198
  return {
5199
5199
  position: q,
5200
- maxHeight: cJ,
5201
- arrowOffsetLeft: lJ.left,
5202
- arrowOffsetTop: lJ.top,
5200
+ maxHeight: lJ,
5201
+ arrowOffsetLeft: uJ.left,
5202
+ arrowOffsetTop: uJ.top,
5203
5203
  placement: U,
5204
- triggerAnchorPoint: gJ
5204
+ triggerAnchorPoint: _J
5205
5205
  };
5206
5206
  }
5207
5207
  function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
@@ -7056,7 +7056,7 @@ Defaulting to \`null\`.`;
7056
7056
  n,
7057
7057
  h
7058
7058
  ]);
7059
- let sJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7059
+ let cJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7060
7060
  role: "textbox",
7061
7061
  "aria-valuemax": null,
7062
7062
  "aria-valuemin": null,
@@ -7066,8 +7066,8 @@ Defaulting to \`null\`.`;
7066
7066
  e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
7067
7067
  t.segments
7068
7068
  ]) && !t.isInvalid && (f = void 0);
7069
- let cJ = $bdb11010cef70236$export$f680877a34711e37(), lJ = !t.isDisabled && !t.isReadOnly && e.isEditable, uJ = e.type === "literal" ? "" : s.of(e.type), dJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7070
- "aria-label": `${uJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7069
+ let lJ = $bdb11010cef70236$export$f680877a34711e37(), uJ = !t.isDisabled && !t.isReadOnly && e.isEditable, dJ = e.type === "literal" ? "" : s.of(e.type), fJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7070
+ "aria-label": `${dJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7071
7071
  "aria-labelledby": d
7072
7072
  });
7073
7073
  if (e.type === "literal") return {
@@ -7075,32 +7075,32 @@ Defaulting to \`null\`.`;
7075
7075
  "aria-hidden": true
7076
7076
  }
7077
7077
  };
7078
- let fJ = {
7078
+ let pJ = {
7079
7079
  caretColor: "transparent"
7080
7080
  };
7081
7081
  if (o === "rtl") {
7082
- fJ.unicodeBidi = "embed";
7082
+ pJ.unicodeBidi = "embed";
7083
7083
  let t2 = v[e.type];
7084
- (t2 === "numeric" || t2 === "2-digit") && (fJ.direction = "ltr");
7084
+ (t2 === "numeric" || t2 === "2-digit") && (pJ.direction = "ltr");
7085
7085
  }
7086
7086
  return {
7087
- segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, dJ, {
7088
- id: cJ,
7089
- ...sJ,
7087
+ segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, fJ, {
7088
+ id: lJ,
7089
+ ...cJ,
7090
7090
  "aria-invalid": t.isInvalid ? "true" : void 0,
7091
7091
  "aria-describedby": f,
7092
7092
  "aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
7093
7093
  "data-placeholder": e.isPlaceholder || void 0,
7094
- contentEditable: lJ,
7095
- suppressContentEditableWarning: lJ,
7096
- spellCheck: lJ ? "false" : void 0,
7097
- autoCorrect: lJ ? "off" : void 0,
7098
- enterKeyHint: lJ ? "next" : void 0,
7099
- inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !lJ ? void 0 : "numeric",
7094
+ contentEditable: uJ,
7095
+ suppressContentEditableWarning: uJ,
7096
+ spellCheck: uJ ? "false" : void 0,
7097
+ autoCorrect: uJ ? "off" : void 0,
7098
+ enterKeyHint: uJ ? "next" : void 0,
7099
+ inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !uJ ? void 0 : "numeric",
7100
7100
  tabIndex: t.isDisabled ? void 0 : 0,
7101
7101
  onKeyDown: A,
7102
7102
  onFocus: Q,
7103
- style: fJ,
7103
+ style: pJ,
7104
7104
  onPointerDown(e2) {
7105
7105
  e2.stopPropagation();
7106
7106
  },
@@ -10349,12 +10349,12 @@ Defaulting to \`null\`.`;
10349
10349
  e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
10350
10350
  }
10351
10351
  }
10352
- let sJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10352
+ let cJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10353
10353
  w,
10354
10354
  f,
10355
10355
  s,
10356
10356
  c
10357
- ]), cJ = e.isInvalid || e.validationState === "invalid" || sJ, lJ = cJ ? "invalid" : null, uJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10357
+ ]), lJ = e.isInvalid || e.validationState === "invalid" || cJ, uJ = lJ ? "invalid" : null, dJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10358
10358
  h,
10359
10359
  o
10360
10360
  ]);
@@ -10371,8 +10371,8 @@ Defaulting to \`null\`.`;
10371
10371
  maxValue: c,
10372
10372
  focusedDate: O,
10373
10373
  timeZone: E,
10374
- validationState: lJ,
10375
- isValueInvalid: cJ,
10374
+ validationState: uJ,
10375
+ isValueInvalid: lJ,
10376
10376
  setFocusedDate(e2) {
10377
10377
  Q(e2);
10378
10378
  },
@@ -10397,12 +10397,12 @@ Defaulting to \`null\`.`;
10397
10397
  }));
10398
10398
  },
10399
10399
  focusNextPage() {
10400
- let e2 = M.add(uJ);
10401
- A($f62d864046160412$export$4f5203c0d889109e(O.add(uJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, uJ, i, s, c), uJ, i));
10400
+ let e2 = M.add(dJ);
10401
+ A($f62d864046160412$export$4f5203c0d889109e(O.add(dJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, dJ, i, s, c), dJ, i));
10402
10402
  },
10403
10403
  focusPreviousPage() {
10404
- let e2 = M.subtract(uJ);
10405
- A($f62d864046160412$export$4f5203c0d889109e(O.subtract(uJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, uJ, i, s, c), uJ, i));
10404
+ let e2 = M.subtract(dJ);
10405
+ A($f62d864046160412$export$4f5203c0d889109e(O.subtract(dJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, dJ, i, s, c), dJ, i));
10406
10406
  },
10407
10407
  focusSectionStart() {
10408
10408
  o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
@@ -10539,13 +10539,13 @@ Defaulting to \`null\`.`;
10539
10539
  end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
10540
10540
  }), q(null);
10541
10541
  }
10542
- }, [$, sJ] = (0, import_react.useState)(false), { isDateUnavailable: cJ } = e, lJ = (0, import_react.useMemo)(() => !h || v ? false : cJ && (cJ(h.start) || cJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10543
- cJ,
10542
+ }, [$, cJ] = (0, import_react.useState)(false), { isDateUnavailable: lJ } = e, uJ = (0, import_react.useMemo)(() => !h || v ? false : lJ && (lJ(h.start) || lJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10543
+ lJ,
10544
10544
  h,
10545
10545
  v,
10546
10546
  c,
10547
10547
  d
10548
- ]), uJ = e.isInvalid || e.validationState === "invalid" || lJ, dJ = uJ ? "invalid" : null;
10548
+ ]), dJ = e.isInvalid || e.validationState === "invalid" || uJ, fJ = dJ ? "invalid" : null;
10549
10549
  return {
10550
10550
  ...I,
10551
10551
  value: h,
@@ -10553,8 +10553,8 @@ Defaulting to \`null\`.`;
10553
10553
  anchorDate: v,
10554
10554
  setAnchorDate: q,
10555
10555
  highlightedRange: J,
10556
- validationState: dJ,
10557
- isValueInvalid: uJ,
10556
+ validationState: fJ,
10557
+ isValueInvalid: dJ,
10558
10558
  selectFocusedDate() {
10559
10559
  Q(I.focusedDate);
10560
10560
  },
@@ -10570,7 +10570,7 @@ Defaulting to \`null\`.`;
10570
10570
  return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
10571
10571
  },
10572
10572
  isDragging: $,
10573
- setDragging: sJ
10573
+ setDragging: cJ
10574
10574
  };
10575
10575
  }
10576
10576
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11757,7 +11757,7 @@ Defaulting to \`null\`.`;
11757
11757
  _,
11758
11758
  S,
11759
11759
  v
11760
- ]), sJ = (0, import_react.useMemo)(() => {
11760
+ ]), cJ = (0, import_react.useMemo)(() => {
11761
11761
  let t2 = w === "h11" || w === "h12", n2 = [
11762
11762
  "era",
11763
11763
  "year",
@@ -11775,15 +11775,15 @@ Defaulting to \`null\`.`;
11775
11775
  e.maxGranularity,
11776
11776
  _,
11777
11777
  w
11778
- ]), [cJ, lJ] = (0, import_react.useState)(M), [uJ, dJ] = (0, import_react.useState)(S), [fJ, pJ] = (0, import_react.useState)(w);
11779
- (M !== cJ || w !== fJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, uJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), lJ(M), dJ(S), pJ(w), z(I));
11780
- let mJ = (t2) => {
11781
- if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(sJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11778
+ ]), [lJ, uJ] = (0, import_react.useState)(M), [dJ, fJ] = (0, import_react.useState)(S), [pJ, mJ] = (0, import_react.useState)(w);
11779
+ (M !== lJ || w !== pJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, dJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), uJ(M), fJ(S), mJ(w), z(I));
11780
+ let hJ = (t2) => {
11781
+ if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(cJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11782
11782
  else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
11783
11783
  else {
11784
- if (t2.isComplete(sJ)) {
11784
+ if (t2.isComplete(cJ)) {
11785
11785
  let e2 = t2.toValue(M ?? $);
11786
- if (t2.validate(e2, sJ)) {
11786
+ if (t2.validate(e2, cJ)) {
11787
11787
  let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11788
11788
  if (!E || t3.compare(E) !== 0) {
11789
11789
  z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
@@ -11793,83 +11793,83 @@ Defaulting to \`null\`.`;
11793
11793
  }
11794
11794
  z(t2);
11795
11795
  }
11796
- }, hJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11796
+ }, gJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11797
11797
  I,
11798
11798
  y,
11799
11799
  M,
11800
11800
  $
11801
- ]), gJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(hJ, I, J, Q, S, t, _), [
11802
- hJ,
11801
+ ]), _J = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(gJ, I, J, Q, S, t, _), [
11802
+ gJ,
11803
11803
  J,
11804
11804
  Q,
11805
11805
  I,
11806
11806
  S,
11807
11807
  t,
11808
11808
  _
11809
- ]), _J = (e2, t2) => {
11810
- mJ(I.cycle(e2, t2, $, sJ));
11811
- }, vJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11809
+ ]), vJ = (e2, t2) => {
11810
+ hJ(I.cycle(e2, t2, $, cJ));
11811
+ }, yJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11812
11812
  E,
11813
11813
  c,
11814
11814
  d,
11815
11815
  f,
11816
11816
  K
11817
- ]), yJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11817
+ ]), bJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11818
11818
  ...e,
11819
11819
  value: E,
11820
- builtinValidation: vJ
11821
- }), bJ = yJ.displayValidation.isInvalid, xJ = e.validationState || (bJ ? "invalid" : null);
11820
+ builtinValidation: yJ
11821
+ }), xJ = bJ.displayValidation.isInvalid, SJ = e.validationState || (xJ ? "invalid" : null);
11822
11822
  return {
11823
- ...yJ,
11823
+ ...bJ,
11824
11824
  value: M,
11825
11825
  defaultValue: e.defaultValue ?? A,
11826
- dateValue: hJ,
11826
+ dateValue: gJ,
11827
11827
  calendar: S,
11828
- setValue: mJ,
11829
- segments: gJ,
11828
+ setValue: hJ,
11829
+ segments: _J,
11830
11830
  dateFormatter: J,
11831
- validationState: xJ,
11832
- isInvalid: bJ,
11831
+ validationState: SJ,
11832
+ isInvalid: xJ,
11833
11833
  granularity: _,
11834
11834
  maxGranularity: e.maxGranularity ?? "year",
11835
11835
  isDisabled: a,
11836
11836
  isReadOnly: o,
11837
11837
  isRequired: s,
11838
11838
  increment(e2) {
11839
- _J(e2, 1);
11839
+ vJ(e2, 1);
11840
11840
  },
11841
11841
  decrement(e2) {
11842
- _J(e2, -1);
11842
+ vJ(e2, -1);
11843
11843
  },
11844
11844
  incrementPage(e2) {
11845
- _J(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11845
+ vJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11846
11846
  },
11847
11847
  decrementPage(e2) {
11848
- _J(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11848
+ vJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11849
11849
  },
11850
11850
  incrementToMax(e2) {
11851
11851
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11852
- mJ(I.set(e2, t2, $));
11852
+ hJ(I.set(e2, t2, $));
11853
11853
  },
11854
11854
  decrementToMin(e2) {
11855
11855
  let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
11856
- mJ(I.set(e2, t2, $));
11856
+ hJ(I.set(e2, t2, $));
11857
11857
  },
11858
11858
  setSegment(e2, t2) {
11859
- mJ(I.set(e2, t2, $));
11859
+ hJ(I.set(e2, t2, $));
11860
11860
  },
11861
11861
  confirmPlaceholder() {
11862
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(sJ)) {
11862
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(cJ)) {
11863
11863
  let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11864
11864
  (!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
11865
11865
  }
11866
11866
  },
11867
11867
  clearSegment(e2) {
11868
11868
  let t2 = I;
11869
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), mJ(t2);
11869
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), hJ(t2);
11870
11870
  },
11871
11871
  formatValue(e2) {
11872
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(hJ) : "";
11872
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(gJ) : "";
11873
11873
  },
11874
11874
  getDateFormatter(e2, t2) {
11875
11875
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11989,7 +11989,7 @@ Defaulting to \`null\`.`;
11989
11989
  e.endName
11990
11990
  ]),
11991
11991
  builtinValidation: J
11992
- }), $ = Q.displayValidation.isInvalid, sJ = e.validationState || ($ ? "invalid" : null);
11992
+ }), $ = Q.displayValidation.isInvalid, cJ = e.validationState || ($ ? "invalid" : null);
11993
11993
  return {
11994
11994
  ...Q,
11995
11995
  value: c,
@@ -12035,7 +12035,7 @@ Defaulting to \`null\`.`;
12035
12035
  end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
12036
12036
  }), t.setOpen(n2);
12037
12037
  },
12038
- validationState: sJ,
12038
+ validationState: cJ,
12039
12039
  isInvalid: $,
12040
12040
  formatValue(t2, n2) {
12041
12041
  if (!c || !c.start || !c.end) return null;
@@ -15929,33 +15929,33 @@ try {
15929
15929
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15930
15930
  function y(e2) {
15931
15931
  var _a2, _b, _c, _d;
15932
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, sJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15932
+ let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, cJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15933
15933
  h2
15934
- ]), cJ = sJ[t], lJ = cJ || sJ, { colorSchemes: uJ = _, components: dJ = v, cssVarPrefix: fJ } = lJ, pJ = Object.keys(uJ).filter((e3) => !!uJ[e3]).join(","), mJ = import_react.useMemo(() => pJ.split(","), [
15935
- pJ
15936
- ]), hJ = typeof s == "string" ? s : s.light, gJ = typeof s == "string" ? s : s.dark, { mode: _J, setMode: vJ, systemMode: yJ, lightColorScheme: bJ, darkColorScheme: xJ, colorScheme: SJ, setColorScheme: CJ } = useCurrentColorScheme({
15937
- supportedColorSchemes: mJ,
15938
- defaultLightColorScheme: hJ,
15939
- defaultDarkColorScheme: gJ,
15934
+ ]), lJ = cJ[t], uJ = lJ || cJ, { colorSchemes: dJ = _, components: fJ = v, cssVarPrefix: pJ } = uJ, mJ = Object.keys(dJ).filter((e3) => !!dJ[e3]).join(","), hJ = import_react.useMemo(() => mJ.split(","), [
15935
+ mJ
15936
+ ]), gJ = typeof s == "string" ? s : s.light, _J = typeof s == "string" ? s : s.dark, { mode: vJ, setMode: yJ, systemMode: bJ, lightColorScheme: xJ, darkColorScheme: SJ, colorScheme: CJ, setColorScheme: wJ } = useCurrentColorScheme({
15937
+ supportedColorSchemes: hJ,
15938
+ defaultLightColorScheme: gJ,
15939
+ defaultDarkColorScheme: _J,
15940
15940
  modeStorageKey: y2,
15941
15941
  colorSchemeStorageKey: S2,
15942
- defaultMode: uJ[hJ] && uJ[gJ] ? U : ((_b = (_a2 = uJ[lJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = lJ.palette) == null ? void 0 : _c.mode),
15942
+ defaultMode: dJ[gJ] && dJ[_J] ? U : ((_b = (_a2 = dJ[uJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = uJ.palette) == null ? void 0 : _c.mode),
15943
15943
  storageManager: E,
15944
15944
  storageWindow: O,
15945
15945
  noSsr: K
15946
- }), wJ = _J, TJ = SJ;
15947
- $ && (wJ = Q.mode, TJ = Q.colorScheme);
15948
- let EJ = import_react.useMemo(() => {
15946
+ }), TJ = vJ, EJ = CJ;
15947
+ $ && (TJ = Q.mode, EJ = Q.colorScheme);
15948
+ let DJ = import_react.useMemo(() => {
15949
15949
  var _a3;
15950
- let e3 = TJ || lJ.defaultColorScheme, t2 = ((_a3 = lJ.generateThemeVars) == null ? void 0 : _a3.call(lJ)) || lJ.vars, n2 = {
15951
- ...lJ,
15952
- components: dJ,
15953
- colorSchemes: uJ,
15954
- cssVarPrefix: fJ,
15950
+ let e3 = EJ || uJ.defaultColorScheme, t2 = ((_a3 = uJ.generateThemeVars) == null ? void 0 : _a3.call(uJ)) || uJ.vars, n2 = {
15951
+ ...uJ,
15952
+ components: fJ,
15953
+ colorSchemes: dJ,
15954
+ cssVarPrefix: pJ,
15955
15955
  vars: t2
15956
15956
  };
15957
15957
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15958
- let t3 = uJ[e3];
15958
+ let t3 = dJ[e3];
15959
15959
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
15960
15960
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
15961
15961
  ...n2[e4],
@@ -15965,31 +15965,31 @@ try {
15965
15965
  }
15966
15966
  return c ? c(n2) : n2;
15967
15967
  }, [
15968
- lJ,
15969
- TJ,
15970
- dJ,
15971
15968
  uJ,
15972
- fJ
15973
- ]), DJ = lJ.colorSchemeSelector;
15969
+ EJ,
15970
+ fJ,
15971
+ dJ,
15972
+ pJ
15973
+ ]), OJ = uJ.colorSchemeSelector;
15974
15974
  useEnhancedEffect_default(() => {
15975
- if (TJ && M && DJ && DJ !== "media") {
15976
- let e3 = DJ, t2 = DJ;
15977
- 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(...mJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", TJ));
15975
+ if (EJ && M && OJ && OJ !== "media") {
15976
+ let e3 = OJ, t2 = OJ;
15977
+ 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(...hJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", EJ));
15978
15978
  else {
15979
- let e4 = t2.replace("%s", TJ).match(/\[([^\]]+)\]/);
15979
+ let e4 = t2.replace("%s", EJ).match(/\[([^\]]+)\]/);
15980
15980
  if (e4) {
15981
15981
  let [t3, n2] = e4[1].split("=");
15982
- n2 || mJ.forEach((e5) => {
15983
- M.removeAttribute(t3.replace(TJ, e5));
15982
+ n2 || hJ.forEach((e5) => {
15983
+ M.removeAttribute(t3.replace(EJ, e5));
15984
15984
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15985
- } else M.setAttribute(t2, TJ);
15985
+ } else M.setAttribute(t2, EJ);
15986
15986
  }
15987
15987
  }
15988
15988
  }, [
15989
- TJ,
15990
- DJ,
15989
+ EJ,
15990
+ OJ,
15991
15991
  M,
15992
- mJ
15992
+ hJ
15993
15993
  ]), import_react.useEffect(() => {
15994
15994
  let e3;
15995
15995
  if (w2 && q.current && A) {
@@ -16002,48 +16002,48 @@ try {
16002
16002
  clearTimeout(e3);
16003
16003
  };
16004
16004
  }, [
16005
- TJ,
16005
+ EJ,
16006
16006
  w2,
16007
16007
  A
16008
16008
  ]), import_react.useEffect(() => (q.current = true, () => {
16009
16009
  q.current = false;
16010
16010
  }), []);
16011
- let OJ = import_react.useMemo(() => ({
16012
- allColorSchemes: mJ,
16013
- colorScheme: TJ,
16014
- darkColorScheme: xJ,
16015
- lightColorScheme: bJ,
16016
- mode: wJ,
16017
- setColorScheme: CJ,
16018
- setMode: vJ,
16019
- systemMode: yJ
16011
+ let kJ = import_react.useMemo(() => ({
16012
+ allColorSchemes: hJ,
16013
+ colorScheme: EJ,
16014
+ darkColorScheme: SJ,
16015
+ lightColorScheme: xJ,
16016
+ mode: TJ,
16017
+ setColorScheme: wJ,
16018
+ setMode: yJ,
16019
+ systemMode: bJ
16020
16020
  }), [
16021
- mJ,
16022
- TJ,
16021
+ hJ,
16022
+ EJ,
16023
+ SJ,
16023
16024
  xJ,
16024
- bJ,
16025
+ TJ,
16025
16026
  wJ,
16026
- CJ,
16027
- vJ,
16028
16027
  yJ,
16029
- EJ.colorSchemeSelector
16030
- ]), kJ = true;
16031
- (z || lJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === fJ) && (kJ = false);
16032
- let AJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16028
+ bJ,
16029
+ DJ.colorSchemeSelector
16030
+ ]), AJ = true;
16031
+ (z || uJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === pJ) && (AJ = false);
16032
+ let jJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16033
16033
  children: [
16034
16034
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
16035
- themeId: cJ ? t : void 0,
16036
- theme: EJ,
16035
+ themeId: lJ ? t : void 0,
16036
+ theme: DJ,
16037
16037
  children: d2
16038
16038
  }),
16039
- kJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16040
- styles: ((_d = EJ.generateStyleSheets) == null ? void 0 : _d.call(EJ)) || []
16039
+ AJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16040
+ styles: ((_d = DJ.generateStyleSheets) == null ? void 0 : _d.call(DJ)) || []
16041
16041
  })
16042
16042
  ]
16043
16043
  });
16044
- return $ ? AJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16045
- value: OJ,
16046
- children: AJ
16044
+ return $ ? jJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16045
+ value: kJ,
16046
+ children: jJ
16047
16047
  });
16048
16048
  }
16049
16049
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17543,10 +17543,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17543
17543
  let n = useDefaultProps({
17544
17544
  props: e,
17545
17545
  name: "MuiInputBase"
17546
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: sJ, onKeyDown: cJ, onKeyUp: lJ, placeholder: uJ, readOnly: dJ, renderSuffix: fJ, rows: pJ, size: mJ, slotProps: hJ = {}, slots: gJ = {}, startAdornment: _J, type: vJ = "text", value: yJ, ...bJ } = n, xJ = A.value == null ? yJ : A.value, { current: SJ } = import_react.useRef(xJ != null), CJ = import_react.useRef(), wJ = import_react.useCallback((e2) => {
17547
- }, []), TJ = useForkRef_default(CJ, M, A.ref, wJ), [EJ, DJ] = import_react.useState(false), OJ = useFormControl(), kJ = formControlState({
17546
+ }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: cJ, onKeyDown: lJ, onKeyUp: uJ, placeholder: dJ, readOnly: fJ, renderSuffix: pJ, rows: mJ, size: hJ, slotProps: gJ = {}, slots: _J = {}, startAdornment: vJ, type: yJ = "text", value: bJ, ...xJ } = n, SJ = A.value == null ? bJ : A.value, { current: CJ } = import_react.useRef(SJ != null), wJ = import_react.useRef(), TJ = import_react.useCallback((e2) => {
17547
+ }, []), EJ = useForkRef_default(wJ, M, A.ref, TJ), [DJ, OJ] = import_react.useState(false), kJ = useFormControl(), AJ = formControlState({
17548
17548
  props: n,
17549
- muiFormControl: OJ,
17549
+ muiFormControl: kJ,
17550
17550
  states: [
17551
17551
  "color",
17552
17552
  "disabled",
@@ -17557,145 +17557,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17557
17557
  "filled"
17558
17558
  ]
17559
17559
  });
17560
- kJ.focused = OJ ? OJ.focused : EJ, import_react.useEffect(() => {
17561
- !OJ && _ && EJ && (DJ(false), J && J());
17560
+ AJ.focused = kJ ? kJ.focused : DJ, import_react.useEffect(() => {
17561
+ !kJ && _ && DJ && (OJ(false), J && J());
17562
17562
  }, [
17563
- OJ,
17563
+ kJ,
17564
17564
  _,
17565
- EJ,
17565
+ DJ,
17566
17566
  J
17567
17567
  ]);
17568
- let AJ = OJ && OJ.onFilled, jJ = OJ && OJ.onEmpty, MJ = import_react.useCallback((e2) => {
17569
- isFilled(e2) ? AJ && AJ() : jJ && jJ();
17568
+ let jJ = kJ && kJ.onFilled, MJ = kJ && kJ.onEmpty, NJ = import_react.useCallback((e2) => {
17569
+ isFilled(e2) ? jJ && jJ() : MJ && MJ();
17570
17570
  }, [
17571
- AJ,
17572
- jJ
17571
+ jJ,
17572
+ MJ
17573
17573
  ]);
17574
17574
  useEnhancedEffect_default$1(() => {
17575
- SJ && MJ({
17576
- value: xJ
17575
+ CJ && NJ({
17576
+ value: SJ
17577
17577
  });
17578
17578
  }, [
17579
- xJ,
17580
- MJ,
17581
- SJ
17579
+ SJ,
17580
+ NJ,
17581
+ CJ
17582
17582
  ]);
17583
- let NJ = (e2) => {
17584
- sJ && sJ(e2), A.onFocus && A.onFocus(e2), OJ && OJ.onFocus ? OJ.onFocus(e2) : DJ(true);
17585
- }, PJ = (e2) => {
17586
- J && J(e2), A.onBlur && A.onBlur(e2), OJ && OJ.onBlur ? OJ.onBlur(e2) : DJ(false);
17587
- }, FJ = (e2, ...t2) => {
17588
- if (!SJ) {
17589
- let t3 = e2.target || CJ.current;
17583
+ let PJ = (e2) => {
17584
+ cJ && cJ(e2), A.onFocus && A.onFocus(e2), kJ && kJ.onFocus ? kJ.onFocus(e2) : OJ(true);
17585
+ }, FJ = (e2) => {
17586
+ J && J(e2), A.onBlur && A.onBlur(e2), kJ && kJ.onBlur ? kJ.onBlur(e2) : OJ(false);
17587
+ }, IJ = (e2, ...t2) => {
17588
+ if (!CJ) {
17589
+ let t3 = e2.target || wJ.current;
17590
17590
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17591
- MJ({
17591
+ NJ({
17592
17592
  value: t3.value
17593
17593
  });
17594
17594
  }
17595
17595
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17596
17596
  };
17597
17597
  import_react.useEffect(() => {
17598
- MJ(CJ.current);
17598
+ NJ(wJ.current);
17599
17599
  }, []);
17600
- let IJ = (e2) => {
17601
- CJ.current && e2.currentTarget === e2.target && CJ.current.focus(), $ && $(e2);
17602
- }, LJ = O, RJ = A;
17603
- K && LJ === "input" && (RJ = pJ ? {
17600
+ let LJ = (e2) => {
17601
+ wJ.current && e2.currentTarget === e2.target && wJ.current.focus(), $ && $(e2);
17602
+ }, RJ = O, zJ = A;
17603
+ K && RJ === "input" && (zJ = mJ ? {
17604
17604
  type: void 0,
17605
- minRows: pJ,
17606
- maxRows: pJ,
17607
- ...RJ
17605
+ minRows: mJ,
17606
+ maxRows: mJ,
17607
+ ...zJ
17608
17608
  } : {
17609
17609
  type: void 0,
17610
17610
  maxRows: z,
17611
17611
  minRows: U,
17612
- ...RJ
17613
- }, LJ = TextareaAutosize_default);
17614
- let zJ = (e2) => {
17615
- MJ(e2.animationName === "mui-auto-fill-cancel" ? CJ.current : {
17612
+ ...zJ
17613
+ }, RJ = TextareaAutosize_default);
17614
+ let BJ = (e2) => {
17615
+ NJ(e2.animationName === "mui-auto-fill-cancel" ? wJ.current : {
17616
17616
  value: "x"
17617
17617
  });
17618
17618
  };
17619
17619
  import_react.useEffect(() => {
17620
- OJ && OJ.setAdornedStart(!!_J);
17620
+ kJ && kJ.setAdornedStart(!!vJ);
17621
17621
  }, [
17622
- OJ,
17623
- _J
17622
+ kJ,
17623
+ vJ
17624
17624
  ]);
17625
- let BJ = {
17625
+ let VJ = {
17626
17626
  ...n,
17627
- color: kJ.color || "primary",
17628
- disabled: kJ.disabled,
17627
+ color: AJ.color || "primary",
17628
+ disabled: AJ.disabled,
17629
17629
  endAdornment: y,
17630
- error: kJ.error,
17631
- focused: kJ.focused,
17632
- formControl: OJ,
17630
+ error: AJ.error,
17631
+ focused: AJ.focused,
17632
+ formControl: kJ,
17633
17633
  fullWidth: w,
17634
- hiddenLabel: kJ.hiddenLabel,
17634
+ hiddenLabel: AJ.hiddenLabel,
17635
17635
  multiline: K,
17636
- size: kJ.size,
17637
- startAdornment: _J,
17638
- type: vJ
17639
- }, VJ = useUtilityClasses(BJ), HJ = gJ.root || d.Root || InputBaseRoot, UJ = hJ.root || f.root || {}, WJ = gJ.input || d.Input || InputBaseInput;
17640
- return RJ = {
17641
- ...RJ,
17642
- ...hJ.input ?? f.input
17636
+ size: AJ.size,
17637
+ startAdornment: vJ,
17638
+ type: yJ
17639
+ }, HJ = useUtilityClasses(VJ), UJ = _J.root || d.Root || InputBaseRoot, WJ = gJ.root || f.root || {}, GJ = _J.input || d.Input || InputBaseInput;
17640
+ return zJ = {
17641
+ ...zJ,
17642
+ ...gJ.input ?? f.input
17643
17643
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17644
17644
  children: [
17645
17645
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17646
- (0, import_jsx_runtime.jsxs)(HJ, {
17647
- ...UJ,
17646
+ (0, import_jsx_runtime.jsxs)(UJ, {
17647
+ ...WJ,
17648
17648
  ref: t,
17649
- onClick: IJ,
17650
- ...bJ,
17651
- ...!isHostComponent_default(HJ) && {
17649
+ onClick: LJ,
17650
+ ...xJ,
17651
+ ...!isHostComponent_default(UJ) && {
17652
17652
  ownerState: {
17653
- ...BJ,
17654
- ...UJ.ownerState
17653
+ ...VJ,
17654
+ ...WJ.ownerState
17655
17655
  }
17656
17656
  },
17657
- className: clsx_default(VJ.root, UJ.className, s, dJ && "MuiInputBase-readOnly"),
17657
+ className: clsx_default(HJ.root, WJ.className, s, fJ && "MuiInputBase-readOnly"),
17658
17658
  children: [
17659
- _J,
17659
+ vJ,
17660
17660
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17661
17661
  value: null,
17662
- children: (0, import_jsx_runtime.jsx)(WJ, {
17663
- "aria-invalid": kJ.error,
17662
+ children: (0, import_jsx_runtime.jsx)(GJ, {
17663
+ "aria-invalid": AJ.error,
17664
17664
  "aria-describedby": i,
17665
17665
  autoComplete: a,
17666
17666
  autoFocus: o,
17667
17667
  defaultValue: h,
17668
- disabled: kJ.disabled,
17668
+ disabled: AJ.disabled,
17669
17669
  id: E,
17670
- onAnimationStart: zJ,
17670
+ onAnimationStart: BJ,
17671
17671
  name: q,
17672
- placeholder: uJ,
17673
- readOnly: dJ,
17674
- required: kJ.required,
17675
- rows: pJ,
17676
- value: xJ,
17677
- onKeyDown: cJ,
17678
- onKeyUp: lJ,
17679
- type: vJ,
17680
- ...RJ,
17681
- ...!isHostComponent_default(WJ) && {
17682
- as: LJ,
17672
+ placeholder: dJ,
17673
+ readOnly: fJ,
17674
+ required: AJ.required,
17675
+ rows: mJ,
17676
+ value: SJ,
17677
+ onKeyDown: lJ,
17678
+ onKeyUp: uJ,
17679
+ type: yJ,
17680
+ ...zJ,
17681
+ ...!isHostComponent_default(GJ) && {
17682
+ as: RJ,
17683
17683
  ownerState: {
17684
- ...BJ,
17685
- ...RJ.ownerState
17684
+ ...VJ,
17685
+ ...zJ.ownerState
17686
17686
  }
17687
17687
  },
17688
- ref: TJ,
17689
- className: clsx_default(VJ.input, RJ.className, dJ && "MuiInputBase-readOnly"),
17690
- onBlur: PJ,
17691
- onChange: FJ,
17692
- onFocus: NJ
17688
+ ref: EJ,
17689
+ className: clsx_default(HJ.input, zJ.className, fJ && "MuiInputBase-readOnly"),
17690
+ onBlur: FJ,
17691
+ onChange: IJ,
17692
+ onFocus: PJ
17693
17693
  })
17694
17694
  }),
17695
17695
  y,
17696
- fJ ? fJ({
17697
- ...kJ,
17698
- startAdornment: _J
17696
+ pJ ? pJ({
17697
+ ...AJ,
17698
+ startAdornment: vJ
17699
17699
  }) : null
17700
17700
  ]
17701
17701
  })
@@ -18771,30 +18771,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18771
18771
  M,
18772
18772
  i,
18773
18773
  a
18774
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), sJ = useTextColor(), cJ = useJsonViewerStore((e2) => e2.colorspace.base0C), lJ = useJsonViewerStore((e2) => e2.colorspace.base0A), uJ = useJsonViewerStore((e2) => e2.displayComma), dJ = useJsonViewerStore((e2) => e2.quotesOnKeys), fJ = useJsonViewerStore((e2) => e2.rootName), pJ = U === t, mJ = Number.isInteger(Number(A)), hJ = useJsonViewerStore((e2) => e2.enableAdd), gJ = useJsonViewerStore((e2) => e2.onAdd), _J = (0, import_react.useMemo)(() => !gJ || a !== void 0 || hJ === false || v === false ? false : typeof hJ == "function" ? !!hJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18775
- gJ,
18774
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), cJ = useTextColor(), lJ = useJsonViewerStore((e2) => e2.colorspace.base0C), uJ = useJsonViewerStore((e2) => e2.colorspace.base0A), dJ = useJsonViewerStore((e2) => e2.displayComma), fJ = useJsonViewerStore((e2) => e2.quotesOnKeys), pJ = useJsonViewerStore((e2) => e2.rootName), mJ = U === t, hJ = Number.isInteger(Number(A)), gJ = useJsonViewerStore((e2) => e2.enableAdd), _J = useJsonViewerStore((e2) => e2.onAdd), vJ = (0, import_react.useMemo)(() => !_J || a !== void 0 || gJ === false || v === false ? false : typeof gJ == "function" ? !!gJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18775
+ _J,
18776
18776
  a,
18777
18777
  i,
18778
- hJ,
18778
+ gJ,
18779
18779
  v,
18780
18780
  t
18781
- ]), vJ = useJsonViewerStore((e2) => e2.enableDelete), yJ = useJsonViewerStore((e2) => e2.onDelete), bJ = (0, import_react.useMemo)(() => !yJ || a !== void 0 || pJ || vJ === false || v === false ? false : typeof vJ == "function" ? !!vJ(i, t) : vJ, [
18782
- yJ,
18781
+ ]), yJ = useJsonViewerStore((e2) => e2.enableDelete), bJ = useJsonViewerStore((e2) => e2.onDelete), xJ = (0, import_react.useMemo)(() => !bJ || a !== void 0 || mJ || yJ === false || v === false ? false : typeof yJ == "function" ? !!yJ(i, t) : yJ, [
18782
+ bJ,
18783
18783
  a,
18784
- pJ,
18784
+ mJ,
18785
18785
  i,
18786
- vJ,
18786
+ yJ,
18787
18787
  v,
18788
18788
  t
18789
- ]), xJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: SJ, copied: CJ } = useClipboard(), wJ = useJsonViewerStore((e2) => e2.highlightUpdates), TJ = (0, import_react.useMemo)(() => !wJ || 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, [
18790
- wJ,
18789
+ ]), SJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: CJ, copied: wJ } = useClipboard(), TJ = useJsonViewerStore((e2) => e2.highlightUpdates), EJ = (0, import_react.useMemo)(() => !TJ || 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, [
18790
+ TJ,
18791
18791
  n,
18792
18792
  t
18793
- ]), EJ = (0, import_react.useRef)();
18793
+ ]), DJ = (0, import_react.useRef)();
18794
18794
  (0, import_react.useEffect)(() => {
18795
- EJ.current && TJ && "animate" in EJ.current && EJ.current.animate([
18795
+ DJ.current && EJ && "animate" in DJ.current && DJ.current.animate([
18796
18796
  {
18797
- backgroundColor: lJ
18797
+ backgroundColor: uJ
18798
18798
  },
18799
18799
  {
18800
18800
  backgroundColor: ""
@@ -18804,22 +18804,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18804
18804
  easing: "ease-in"
18805
18805
  });
18806
18806
  }, [
18807
- lJ,
18808
- TJ,
18807
+ uJ,
18808
+ EJ,
18809
18809
  n,
18810
18810
  t
18811
18811
  ]);
18812
- let DJ = (0, import_react.useCallback)((e2) => {
18812
+ let OJ = (0, import_react.useCallback)((e2) => {
18813
18813
  e2.preventDefault(), h && E(h(t)), Q(true);
18814
18814
  }, [
18815
18815
  h,
18816
18816
  t
18817
- ]), OJ = (0, import_react.useCallback)(() => {
18817
+ ]), kJ = (0, import_react.useCallback)(() => {
18818
18818
  Q(false), E("");
18819
18819
  }, [
18820
18820
  Q,
18821
18821
  E
18822
- ]), kJ = (0, import_react.useCallback)((e2) => {
18822
+ ]), AJ = (0, import_react.useCallback)((e2) => {
18823
18823
  if (Q(false), _) try {
18824
18824
  $(i, t, _(e2));
18825
18825
  } catch {
@@ -18830,14 +18830,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18830
18830
  $,
18831
18831
  i,
18832
18832
  t
18833
- ]), AJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18833
+ ]), jJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18834
18834
  children: [
18835
18835
  (0, import_jsx_runtime.jsx)(IconBox, {
18836
18836
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18837
18837
  sx: {
18838
18838
  fontSize: ".8rem"
18839
18839
  },
18840
- onClick: OJ
18840
+ onClick: kJ
18841
18841
  })
18842
18842
  }),
18843
18843
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18845,22 +18845,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18845
18845
  sx: {
18846
18846
  fontSize: ".8rem"
18847
18847
  },
18848
- onClick: () => kJ(w)
18848
+ onClick: () => AJ(w)
18849
18849
  })
18850
18850
  })
18851
18851
  ]
18852
18852
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18853
18853
  children: [
18854
- xJ && (0, import_jsx_runtime.jsx)(IconBox, {
18854
+ SJ && (0, import_jsx_runtime.jsx)(IconBox, {
18855
18855
  onClick: (e2) => {
18856
18856
  e2.preventDefault();
18857
18857
  try {
18858
- SJ(i, t, copyString);
18858
+ CJ(i, t, copyString);
18859
18859
  } catch (e3) {
18860
18860
  console.error(e3);
18861
18861
  }
18862
18862
  },
18863
- children: CJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18863
+ children: wJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18864
18864
  sx: {
18865
18865
  fontSize: ".8rem"
18866
18866
  }
@@ -18871,16 +18871,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18871
18871
  })
18872
18872
  }),
18873
18873
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18874
- onClick: DJ,
18874
+ onClick: OJ,
18875
18875
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18876
18876
  sx: {
18877
18877
  fontSize: ".8rem"
18878
18878
  }
18879
18879
  })
18880
18880
  }),
18881
- _J && (0, import_jsx_runtime.jsx)(IconBox, {
18881
+ vJ && (0, import_jsx_runtime.jsx)(IconBox, {
18882
18882
  onClick: (e2) => {
18883
- e2.preventDefault(), gJ == null ? void 0 : gJ(i);
18883
+ e2.preventDefault(), _J == null ? void 0 : _J(i);
18884
18884
  },
18885
18885
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18886
18886
  sx: {
@@ -18888,9 +18888,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18888
18888
  }
18889
18889
  })
18890
18890
  }),
18891
- bJ && (0, import_jsx_runtime.jsx)(IconBox, {
18891
+ xJ && (0, import_jsx_runtime.jsx)(IconBox, {
18892
18892
  onClick: (e2) => {
18893
- e2.preventDefault(), yJ == null ? void 0 : yJ(i, t);
18893
+ e2.preventDefault(), bJ == null ? void 0 : bJ(i, t);
18894
18894
  },
18895
18895
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18896
18896
  sx: {
@@ -18903,24 +18903,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18903
18903
  f,
18904
18904
  h,
18905
18905
  _,
18906
+ wJ,
18906
18907
  CJ,
18907
- SJ,
18908
18908
  S,
18909
18909
  J,
18910
+ SJ,
18911
+ vJ,
18910
18912
  xJ,
18911
- _J,
18912
- bJ,
18913
18913
  w,
18914
18914
  i,
18915
18915
  t,
18916
- gJ,
18917
- yJ,
18918
- DJ,
18916
+ _J,
18917
+ bJ,
18919
18918
  OJ,
18920
- kJ
18921
- ]), jJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18919
+ kJ,
18920
+ AJ
18921
+ ]), MJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18922
18922
  t
18923
- ]), MJ = !jJ && !!(c && d), NJ = useJsonViewerStore((e2) => e2.keyRenderer), PJ = (0, import_react.useMemo)(() => ({
18923
+ ]), NJ = !MJ && !!(c && d), PJ = useJsonViewerStore((e2) => e2.keyRenderer), FJ = (0, import_react.useMemo)(() => ({
18924
18924
  path: i,
18925
18925
  inspect: K,
18926
18926
  setInspect: q,
@@ -18952,18 +18952,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18952
18952
  className: "data-key",
18953
18953
  sx: {
18954
18954
  lineHeight: 1.5,
18955
- color: sJ,
18955
+ color: cJ,
18956
18956
  letterSpacing: 0.5,
18957
18957
  opacity: 0.8
18958
18958
  },
18959
18959
  onClick: (0, import_react.useCallback)((e2) => {
18960
- e2.isDefaultPrevented() || jJ || q((e3) => !e3);
18960
+ e2.isDefaultPrevented() || MJ || q((e3) => !e3);
18961
18961
  }, [
18962
- jJ,
18962
+ MJ,
18963
18963
  q
18964
18964
  ]),
18965
18965
  children: [
18966
- MJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18966
+ NJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18967
18967
  className: "data-key-toggle-expanded",
18968
18968
  sx: {
18969
18969
  fontSize: ".8rem",
@@ -18981,27 +18981,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18981
18981
  }
18982
18982
  }) : null,
18983
18983
  (0, import_jsx_runtime.jsx)(Box_default, {
18984
- ref: EJ,
18984
+ ref: DJ,
18985
18985
  className: "data-key-key",
18986
18986
  component: "span",
18987
- children: pJ && O === 0 ? fJ === false ? null : dJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18987
+ children: mJ && O === 0 ? pJ === false ? null : fJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18988
18988
  children: [
18989
18989
  '"',
18990
- fJ,
18990
+ pJ,
18991
18991
  '"'
18992
18992
  ]
18993
18993
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
18994
- children: fJ
18995
- }) : NJ.when(PJ) ? (0, import_jsx_runtime.jsx)(NJ, {
18996
- ...PJ
18997
- }) : a === void 0 && (mJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18994
+ children: pJ
18995
+ }) : PJ.when(FJ) ? (0, import_jsx_runtime.jsx)(PJ, {
18996
+ ...FJ
18997
+ }) : a === void 0 && (hJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18998
18998
  component: "span",
18999
18999
  style: {
19000
- color: cJ,
19001
- userSelect: mJ ? "none" : "auto"
19000
+ color: lJ,
19001
+ userSelect: hJ ? "none" : "auto"
19002
19002
  },
19003
19003
  children: A
19004
- }) : dJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
19004
+ }) : fJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
19005
19005
  children: [
19006
19006
  '"',
19007
19007
  A,
@@ -19011,7 +19011,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19011
19011
  children: A
19012
19012
  }))
19013
19013
  }),
19014
- pJ ? fJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19014
+ mJ ? pJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19015
19015
  className: "data-key-colon",
19016
19016
  sx: {
19017
19017
  mr: 0.5
@@ -19024,38 +19024,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19024
19024
  ".data-key-key:empty + &": {
19025
19025
  display: "none"
19026
19026
  },
19027
- userSelect: mJ ? "none" : "auto"
19027
+ userSelect: hJ ? "none" : "auto"
19028
19028
  },
19029
19029
  children: ":"
19030
19030
  }),
19031
19031
  c && (0, import_jsx_runtime.jsx)(c, {
19032
- ...PJ
19032
+ ...FJ
19033
19033
  }),
19034
- I && MJ && K && AJ
19034
+ I && NJ && K && jJ
19035
19035
  ]
19036
19036
  }),
19037
19037
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
19038
19038
  path: i,
19039
19039
  value: w,
19040
19040
  setValue: E,
19041
- abortEditing: OJ,
19042
- commitEditing: kJ
19041
+ abortEditing: kJ,
19042
+ commitEditing: AJ
19043
19043
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
19044
- ...PJ
19044
+ ...FJ
19045
19045
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
19046
19046
  component: "span",
19047
19047
  className: "data-value-fallback",
19048
19048
  children: `fallback: ${t}`
19049
19049
  }),
19050
19050
  d && (0, import_jsx_runtime.jsx)(d, {
19051
- ...PJ
19051
+ ...FJ
19052
19052
  }),
19053
- !o && uJ && (0, import_jsx_runtime.jsx)(DataBox, {
19053
+ !o && dJ && (0, import_jsx_runtime.jsx)(DataBox, {
19054
19054
  children: ","
19055
19055
  }),
19056
- I && MJ && !K && AJ,
19057
- I && !MJ && AJ,
19058
- !I && J && AJ
19056
+ I && NJ && !K && jJ,
19057
+ I && !NJ && jJ,
19058
+ !I && J && jJ
19059
19059
  ]
19060
19060
  });
19061
19061
  }, query = "(prefers-color-scheme: dark)";
@@ -20143,18 +20143,18 @@ ${n}` : "Please fix this error.";
20143
20143
  }
20144
20144
  let y, S, w, E, A, M;
20145
20145
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== a || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
20146
- let e2 = n.filter(_temp8), O = n.filter(_temp9), I2 = n.filter(_temp0), z2 = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), sJ = n.filter(_temp16), cJ = n.filter(_temp17), lJ = n.filter(_temp18), uJ;
20147
- t[17] === s ? uJ = t[18] : (uJ = () => {
20146
+ let e2 = n.filter(_temp8), O = n.filter(_temp9), I2 = n.filter(_temp0), z2 = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), cJ = n.filter(_temp16), lJ = n.filter(_temp17), uJ = n.filter(_temp18), dJ;
20147
+ t[17] === s ? dJ = t[18] : (dJ = () => {
20148
20148
  s.openApplication("scratchpad");
20149
- }, t[17] = s, t[18] = uJ);
20150
- let dJ = uJ, fJ = () => {
20149
+ }, t[17] = s, t[18] = dJ);
20150
+ let fJ = dJ, pJ = () => {
20151
20151
  let t2 = [];
20152
- if (sJ.length > 0 || cJ.length > 0) {
20153
- let e3 = sJ.some(_temp19), n2 = !e3 && sJ.some(_temp20);
20152
+ if (cJ.length > 0 || lJ.length > 0) {
20153
+ let e3 = cJ.some(_temp19), n2 = !e3 && cJ.some(_temp20);
20154
20154
  t2.push((0, import_jsx_runtime.jsxs)("div", {
20155
20155
  children: [
20156
- sJ.map(_temp21),
20157
- cJ.map(_temp22),
20156
+ cJ.map(_temp21),
20157
+ lJ.map(_temp22),
20158
20158
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
20159
20159
  size: "xs",
20160
20160
  variant: "outline",
@@ -20185,8 +20185,8 @@ ${n}` : "Please fix this error.";
20185
20185
  }),
20186
20186
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20187
20187
  errors: [
20188
- ...sJ,
20189
- ...cJ
20188
+ ...cJ,
20189
+ ...lJ
20190
20190
  ],
20191
20191
  cellId: i
20192
20192
  })
@@ -20347,7 +20347,7 @@ ${n}` : "Please fix this error.";
20347
20347
  size: "xs",
20348
20348
  variant: "link",
20349
20349
  className: "my-2 font-normal mx-0 px-0",
20350
- onClick: dJ,
20350
+ onClick: fJ,
20351
20351
  children: [
20352
20352
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20353
20353
  className: "h-3"
@@ -20546,18 +20546,18 @@ ${n}` : "Please fix this error.";
20546
20546
  cellId: i
20547
20547
  })
20548
20548
  ]
20549
- }, "ancestor-stopped")), lJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20549
+ }, "ancestor-stopped")), uJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20550
20550
  children: [
20551
- lJ.map(_temp35),
20551
+ uJ.map(_temp35),
20552
20552
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20553
- errors: lJ,
20553
+ errors: uJ,
20554
20554
  cellId: i,
20555
20555
  className: "mt-2.5"
20556
20556
  })
20557
20557
  ]
20558
20558
  }, "sql-errors")), t2;
20559
- }, pJ;
20560
- t[19] === v ? pJ = t[20] : (pJ = v && (0, import_jsx_runtime.jsxs)("div", {
20559
+ }, mJ;
20560
+ t[19] === v ? mJ = t[20] : (mJ = v && (0, import_jsx_runtime.jsxs)("div", {
20561
20561
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20562
20562
  children: [
20563
20563
  v,
@@ -20569,22 +20569,22 @@ ${n}` : "Please fix this error.";
20569
20569
  })
20570
20570
  })
20571
20571
  ]
20572
- }), t[19] = v, t[20] = pJ);
20573
- let hJ;
20574
- t[21] !== _ || t[22] !== d ? (hJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20572
+ }), t[19] = v, t[20] = mJ);
20573
+ let gJ;
20574
+ t[21] !== _ || t[22] !== d ? (gJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20575
20575
  className: `font-code font-medium ${_}`,
20576
20576
  children: d
20577
- }), t[21] = _, t[22] = d, t[23] = hJ) : hJ = t[23];
20578
- let gJ;
20579
- t[24] !== pJ || t[25] !== hJ ? (gJ = (0, import_jsx_runtime.jsxs)("div", {
20577
+ }), t[21] = _, t[22] = d, t[23] = gJ) : gJ = t[23];
20578
+ let _J;
20579
+ t[24] !== mJ || t[25] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)("div", {
20580
20580
  className: "space-y-0.5",
20581
20581
  children: [
20582
- pJ,
20583
- hJ
20582
+ mJ,
20583
+ gJ
20584
20584
  ]
20585
- }), t[24] = pJ, t[25] = hJ, t[26] = gJ) : gJ = t[26];
20586
- let vJ = gJ;
20587
- y = Alert, E = f, t[27] === a ? A = t[28] : (A = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = A), M = vJ, S = "flex flex-col gap-4", w = fJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = A, t[16] = M;
20585
+ }), t[24] = mJ, t[25] = gJ, t[26] = _J) : _J = t[26];
20586
+ let yJ = _J;
20587
+ y = Alert, E = f, t[27] === a ? A = t[28] : (A = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = A), M = yJ, S = "flex flex-col gap-4", w = pJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = A, t[16] = M;
20588
20588
  } else y = t[11], S = t[12], w = t[13], E = t[14], A = t[15], M = t[16];
20589
20589
  let I;
20590
20590
  t[29] !== S || t[30] !== w ? (I = (0, import_jsx_runtime.jsx)("div", {
@@ -26636,7 +26636,7 @@ ${n}` : "Please fix this error.";
26636
26636
  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 }) {
26637
26637
  let E = (0, import_react.useContext)(PanelGroupContext);
26638
26638
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
26639
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), sJ = (0, import_react.useRef)({
26639
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), cJ = (0, import_react.useRef)({
26640
26640
  callbacks: {
26641
26641
  onCollapse: f,
26642
26642
  onExpand: h,
@@ -26656,12 +26656,12 @@ ${n}` : "Please fix this error.";
26656
26656
  (0, import_react.useRef)({
26657
26657
  didLogMissingDefaultSizeWarning: false
26658
26658
  }), useIsomorphicLayoutEffect$1(() => {
26659
- let { callbacks: e2, constraints: t2 } = sJ.current, o2 = {
26659
+ let { callbacks: e2, constraints: t2 } = cJ.current, o2 = {
26660
26660
  ...t2
26661
26661
  };
26662
- sJ.current.id = $, sJ.current.idIsFromProps = s !== void 0, sJ.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(sJ.current, o2);
26662
+ cJ.current.id = $, cJ.current.idIsFromProps = s !== void 0, cJ.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(cJ.current, o2);
26663
26663
  }), useIsomorphicLayoutEffect$1(() => {
26664
- let e2 = sJ.current;
26664
+ let e2 = cJ.current;
26665
26665
  return q(e2), () => {
26666
26666
  Q(e2);
26667
26667
  };
@@ -26672,25 +26672,25 @@ ${n}` : "Please fix this error.";
26672
26672
  Q
26673
26673
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26674
26674
  collapse: () => {
26675
- O(sJ.current);
26675
+ O(cJ.current);
26676
26676
  },
26677
26677
  expand: (e2) => {
26678
- A(sJ.current, e2);
26678
+ A(cJ.current, e2);
26679
26679
  },
26680
26680
  getId() {
26681
26681
  return $;
26682
26682
  },
26683
26683
  getSize() {
26684
- return M(sJ.current);
26684
+ return M(cJ.current);
26685
26685
  },
26686
26686
  isCollapsed() {
26687
- return U(sJ.current);
26687
+ return U(cJ.current);
26688
26688
  },
26689
26689
  isExpanded() {
26690
- return !U(sJ.current);
26690
+ return !U(cJ.current);
26691
26691
  },
26692
26692
  resize: (e2) => {
26693
- J(sJ.current, e2);
26693
+ J(cJ.current, e2);
26694
26694
  }
26695
26695
  }), [
26696
26696
  O,
@@ -26700,21 +26700,21 @@ ${n}` : "Please fix this error.";
26700
26700
  $,
26701
26701
  J
26702
26702
  ]);
26703
- let cJ = I(sJ.current, a);
26703
+ let lJ = I(cJ.current, a);
26704
26704
  return (0, import_react.createElement)(S, {
26705
26705
  ...w,
26706
26706
  children: e,
26707
26707
  className: t,
26708
26708
  id: $,
26709
26709
  style: {
26710
- ...cJ,
26710
+ ...lJ,
26711
26711
  ...y
26712
26712
  },
26713
26713
  [DATA_ATTRIBUTES.groupId]: z,
26714
26714
  [DATA_ATTRIBUTES.panel]: "",
26715
26715
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26716
26716
  [DATA_ATTRIBUTES.panelId]: $,
26717
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + cJ.flexGrow).toFixed(1)
26717
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + lJ.flexGrow).toFixed(1)
26718
26718
  });
26719
26719
  }
26720
26720
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -27499,13 +27499,13 @@ ${n}` : "Please fix this error.";
27499
27499
  }, [
27500
27500
  S,
27501
27501
  E
27502
- ]), sJ = (0, import_react.useCallback)((e2) => {
27502
+ ]), cJ = (0, import_react.useCallback)((e2) => {
27503
27503
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27504
27504
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
27505
- }, []), cJ = (0, import_react.useCallback)((e2) => {
27505
+ }, []), lJ = (0, import_react.useCallback)((e2) => {
27506
27506
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27507
27507
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27508
- }, []), lJ = (0, import_react.useCallback)((e2) => {
27508
+ }, []), uJ = (0, import_react.useCallback)((e2) => {
27509
27509
  let { panelDataArray: t2 } = K.current;
27510
27510
  t2.push(e2), t2.sort((e3, t3) => {
27511
27511
  let n2 = e3.order, i2 = t3.order;
@@ -27537,7 +27537,7 @@ ${n}` : "Please fix this error.";
27537
27537
  e2.layout = [];
27538
27538
  };
27539
27539
  }, []);
27540
- let uJ = (0, import_react.useCallback)((e2) => {
27540
+ let dJ = (0, import_react.useCallback)((e2) => {
27541
27541
  let t2 = false, n2 = y.current;
27542
27542
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27543
27543
  n3.preventDefault();
@@ -27555,7 +27555,7 @@ ${n}` : "Please fix this error.";
27555
27555
  }), I2 = !compareLayouts(f2, A2);
27556
27556
  (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));
27557
27557
  };
27558
- }, []), dJ = (0, import_react.useCallback)((e2, t2) => {
27558
+ }, []), fJ = (0, import_react.useCallback)((e2, t2) => {
27559
27559
  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);
27560
27560
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27561
27561
  let d2 = adjustLayoutByDelta({
@@ -27567,12 +27567,12 @@ ${n}` : "Please fix this error.";
27567
27567
  trigger: "imperative-api"
27568
27568
  });
27569
27569
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
27570
- }, []), fJ = (0, import_react.useCallback)((e2, t2) => {
27570
+ }, []), pJ = (0, import_react.useCallback)((e2, t2) => {
27571
27571
  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);
27572
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || dJ(e2, s2) : h2 < f2 ? dJ(e2, f2) : h2 > d2 && dJ(e2, d2));
27572
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || fJ(e2, s2) : h2 < f2 ? fJ(e2, f2) : h2 > d2 && fJ(e2, d2));
27573
27573
  }, [
27574
- dJ
27575
- ]), pJ = (0, import_react.useCallback)((e2, t2) => {
27574
+ fJ
27575
+ ]), mJ = (0, import_react.useCallback)((e2, t2) => {
27576
27576
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27577
27577
  if (!y.current) return;
27578
27578
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27584,14 +27584,14 @@ ${n}` : "Please fix this error.";
27584
27584
  initialCursorPosition: o2,
27585
27585
  initialLayout: i2
27586
27586
  });
27587
- }, []), mJ = (0, import_react.useCallback)(() => {
27587
+ }, []), hJ = (0, import_react.useCallback)(() => {
27588
27588
  w(null);
27589
- }, []), hJ = (0, import_react.useCallback)((e2) => {
27589
+ }, []), gJ = (0, import_react.useCallback)((e2) => {
27590
27590
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27591
27591
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27592
27592
  }, [
27593
27593
  A
27594
- ]), gJ = (0, import_react.useMemo)(() => ({
27594
+ ]), _J = (0, import_react.useMemo)(() => ({
27595
27595
  collapsePanel: q,
27596
27596
  direction: i,
27597
27597
  dragState: S,
@@ -27599,15 +27599,15 @@ ${n}` : "Please fix this error.";
27599
27599
  getPanelSize: Q,
27600
27600
  getPanelStyle: $,
27601
27601
  groupId: v,
27602
- isPanelCollapsed: sJ,
27603
- isPanelExpanded: cJ,
27604
- reevaluatePanelConstraints: fJ,
27605
- registerPanel: lJ,
27606
- registerResizeHandle: uJ,
27607
- resizePanel: dJ,
27608
- startDragging: pJ,
27609
- stopDragging: mJ,
27610
- unregisterPanel: hJ,
27602
+ isPanelCollapsed: cJ,
27603
+ isPanelExpanded: lJ,
27604
+ reevaluatePanelConstraints: pJ,
27605
+ registerPanel: uJ,
27606
+ registerResizeHandle: dJ,
27607
+ resizePanel: fJ,
27608
+ startDragging: mJ,
27609
+ stopDragging: hJ,
27610
+ unregisterPanel: gJ,
27611
27611
  panelGroupElement: y.current
27612
27612
  }), [
27613
27613
  q,
@@ -27617,16 +27617,16 @@ ${n}` : "Please fix this error.";
27617
27617
  Q,
27618
27618
  $,
27619
27619
  v,
27620
- sJ,
27621
27620
  cJ,
27622
- fJ,
27623
27621
  lJ,
27622
+ pJ,
27624
27623
  uJ,
27625
27624
  dJ,
27626
- pJ,
27625
+ fJ,
27627
27626
  mJ,
27628
- hJ
27629
- ]), _J = {
27627
+ hJ,
27628
+ gJ
27629
+ ]), vJ = {
27630
27630
  display: "flex",
27631
27631
  flexDirection: i === "horizontal" ? "row" : "column",
27632
27632
  height: "100%",
@@ -27634,7 +27634,7 @@ ${n}` : "Please fix this error.";
27634
27634
  width: "100%"
27635
27635
  };
27636
27636
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27637
- value: gJ
27637
+ value: _J
27638
27638
  }, (0, import_react.createElement)(h, {
27639
27639
  ..._,
27640
27640
  children: t,
@@ -27642,7 +27642,7 @@ ${n}` : "Please fix this error.";
27642
27642
  id: o,
27643
27643
  ref: y,
27644
27644
  style: {
27645
- ..._J,
27645
+ ...vJ,
27646
27646
  ...f
27647
27647
  },
27648
27648
  [DATA_ATTRIBUTES.group]: "",
@@ -27719,31 +27719,31 @@ ${n}` : "Please fix this error.";
27719
27719
  });
27720
27720
  let O = (0, import_react.useContext)(PanelGroupContext);
27721
27721
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
27722
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, sJ] = (0, import_react.useState)(false), [cJ, lJ] = (0, import_react.useState)(null), uJ = (0, import_react.useRef)({
27722
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, cJ] = (0, import_react.useState)(false), [lJ, uJ] = (0, import_react.useState)(null), dJ = (0, import_react.useRef)({
27723
27723
  state: J
27724
27724
  });
27725
27725
  useIsomorphicLayoutEffect$1(() => {
27726
- uJ.current.state = J;
27726
+ dJ.current.state = J;
27727
27727
  }), (0, import_react.useEffect)(() => {
27728
- if (n) lJ(null);
27728
+ if (n) uJ(null);
27729
27729
  else {
27730
27730
  let e2 = I(q);
27731
- lJ(() => e2);
27731
+ uJ(() => e2);
27732
27732
  }
27733
27733
  }, [
27734
27734
  n,
27735
27735
  q,
27736
27736
  I
27737
27737
  ]);
27738
- let dJ = (i == null ? void 0 : i.coarse) ?? 15, fJ = (i == null ? void 0 : i.fine) ?? 5;
27738
+ let fJ = (i == null ? void 0 : i.coarse) ?? 15, pJ = (i == null ? void 0 : i.fine) ?? 5;
27739
27739
  (0, import_react.useEffect)(() => {
27740
- if (n || cJ == null) return;
27740
+ if (n || lJ == null) return;
27741
27741
  let e2 = w.current;
27742
27742
  assert(e2, "Element ref not attached");
27743
27743
  let t2 = false;
27744
27744
  return registerResizeHandle(q, e2, A, {
27745
- coarse: dJ,
27746
- fine: fJ
27745
+ coarse: fJ,
27746
+ fine: pJ
27747
27747
  }, (e3, n2, i2) => {
27748
27748
  if (!n2) {
27749
27749
  Q("inactive");
@@ -27757,8 +27757,8 @@ ${n}` : "Please fix this error.";
27757
27757
  break;
27758
27758
  }
27759
27759
  case "move": {
27760
- let { state: e4 } = uJ.current;
27761
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), cJ(i2);
27760
+ let { state: e4 } = dJ.current;
27761
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), lJ(i2);
27762
27762
  break;
27763
27763
  }
27764
27764
  case "up": {
@@ -27770,22 +27770,22 @@ ${n}` : "Please fix this error.";
27770
27770
  }
27771
27771
  });
27772
27772
  }, [
27773
- dJ,
27773
+ fJ,
27774
27774
  A,
27775
27775
  n,
27776
- fJ,
27776
+ pJ,
27777
27777
  I,
27778
27778
  q,
27779
- cJ,
27779
+ lJ,
27780
27780
  z,
27781
27781
  U
27782
27782
  ]), useWindowSplitterResizeHandlerBehavior({
27783
27783
  disabled: n,
27784
27784
  handleId: q,
27785
- resizeHandler: cJ,
27785
+ resizeHandler: lJ,
27786
27786
  panelGroupElement: K
27787
27787
  });
27788
- let pJ = {
27788
+ let mJ = {
27789
27789
  touchAction: "none",
27790
27790
  userSelect: "none"
27791
27791
  };
@@ -27795,15 +27795,15 @@ ${n}` : "Please fix this error.";
27795
27795
  className: t,
27796
27796
  id: a,
27797
27797
  onBlur: () => {
27798
- sJ(false), o == null ? void 0 : o();
27798
+ cJ(false), o == null ? void 0 : o();
27799
27799
  },
27800
27800
  onFocus: () => {
27801
- sJ(true), d == null ? void 0 : d();
27801
+ cJ(true), d == null ? void 0 : d();
27802
27802
  },
27803
27803
  ref: w,
27804
27804
  role: "separator",
27805
27805
  style: {
27806
- ...pJ,
27806
+ ...mJ,
27807
27807
  ..._
27808
27808
  },
27809
27809
  tabIndex: v,
@@ -28102,7 +28102,7 @@ ${n}` : "Please fix this error.";
28102
28102
  }, [
28103
28103
  h
28104
28104
  ]), k(() => {
28105
- U(6, cJ);
28105
+ U(6, lJ);
28106
28106
  }, []);
28107
28107
  let K = import_react.useMemo(() => ({
28108
28108
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -28111,7 +28111,7 @@ ${n}` : "Please fix this error.";
28111
28111
  var _a2;
28112
28112
  var a2, o2, s2;
28113
28113
  if (!Object.is(n.current[e2], t2)) {
28114
- if (n.current[e2] = t2, e2 === "search") sJ(), Q(), U(1, $);
28114
+ if (n.current[e2] = t2, e2 === "search") cJ(), Q(), U(1, $);
28115
28115
  else if (e2 === "value") {
28116
28116
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
28117
28117
  let e3 = document.getElementById(I);
@@ -28119,8 +28119,8 @@ ${n}` : "Please fix this error.";
28119
28119
  }
28120
28120
  if (U(7, () => {
28121
28121
  var _a3;
28122
- n.current.selectedItemId = (_a3 = lJ()) == null ? void 0 : _a3.id, K.emit();
28123
- }), i2 || U(5, cJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28122
+ n.current.selectedItemId = (_a3 = uJ()) == null ? void 0 : _a3.id, K.emit();
28123
+ }), i2 || U(5, lJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28124
28124
  let e3 = t2 ?? "";
28125
28125
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
28126
28126
  return;
@@ -28145,12 +28145,12 @@ ${n}` : "Please fix this error.";
28145
28145
  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([
28146
28146
  e2
28147
28147
  ]))), U(3, () => {
28148
- sJ(), Q(), n.current.value || $(), K.emit();
28148
+ cJ(), Q(), n.current.value || $(), K.emit();
28149
28149
  }), () => {
28150
28150
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
28151
- let t3 = lJ();
28151
+ let t3 = uJ();
28152
28152
  U(4, () => {
28153
- sJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28153
+ cJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28154
28154
  });
28155
28155
  }),
28156
28156
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -28183,7 +28183,7 @@ ${n}` : "Please fix this error.";
28183
28183
  ]);
28184
28184
  });
28185
28185
  let i2 = z.current;
28186
- uJ().sort((t3, n2) => {
28186
+ dJ().sort((t3, n2) => {
28187
28187
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
28188
28188
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
28189
28189
  }).forEach((e3) => {
@@ -28197,10 +28197,10 @@ ${n}` : "Please fix this error.";
28197
28197
  }
28198
28198
  function $() {
28199
28199
  var _a2;
28200
- let e2 = (_a2 = uJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28200
+ let e2 = (_a2 = dJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28201
28201
  K.setState("value", e2 || void 0);
28202
28202
  }
28203
- function sJ() {
28203
+ function cJ() {
28204
28204
  var _a2, _b;
28205
28205
  if (!n.current.search || c.current.shouldFilter === false) {
28206
28206
  n.current.filtered.count = i.current.size;
@@ -28218,43 +28218,43 @@ ${n}` : "Please fix this error.";
28218
28218
  }
28219
28219
  n.current.filtered.count = e2;
28220
28220
  }
28221
- function cJ() {
28221
+ function lJ() {
28222
28222
  var _a2, _b;
28223
28223
  var e2;
28224
- let t2 = lJ();
28224
+ let t2 = uJ();
28225
28225
  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({
28226
28226
  block: "nearest"
28227
28227
  })), t2.scrollIntoView({
28228
28228
  block: "nearest"
28229
28229
  }));
28230
28230
  }
28231
- function lJ() {
28231
+ function uJ() {
28232
28232
  var _a2;
28233
28233
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
28234
28234
  }
28235
- function uJ() {
28235
+ function dJ() {
28236
28236
  var _a2;
28237
28237
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
28238
28238
  }
28239
- function dJ(e2) {
28240
- let t2 = uJ()[e2];
28239
+ function fJ(e2) {
28240
+ let t2 = dJ()[e2];
28241
28241
  t2 && K.setState("value", t2.getAttribute(T));
28242
28242
  }
28243
- function fJ(e2) {
28243
+ function pJ(e2) {
28244
28244
  var t2;
28245
- let n2 = lJ(), i2 = uJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28245
+ let n2 = uJ(), i2 = dJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28246
28246
  (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));
28247
28247
  }
28248
- function pJ(e2) {
28248
+ function mJ(e2) {
28249
28249
  var _a2;
28250
- let t2 = (_a2 = lJ()) == null ? void 0 : _a2.closest(N$1), n2;
28250
+ let t2 = (_a2 = uJ()) == null ? void 0 : _a2.closest(N$1), n2;
28251
28251
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
28252
- n2 ? K.setState("value", n2.getAttribute(T)) : fJ(e2);
28252
+ n2 ? K.setState("value", n2.getAttribute(T)) : pJ(e2);
28253
28253
  }
28254
- let mJ = () => dJ(uJ().length - 1), hJ = (e2) => {
28255
- e2.preventDefault(), e2.metaKey ? mJ() : e2.altKey ? pJ(1) : fJ(1);
28256
- }, gJ = (e2) => {
28257
- e2.preventDefault(), e2.metaKey ? dJ(0) : e2.altKey ? pJ(-1) : fJ(-1);
28254
+ let hJ = () => fJ(dJ().length - 1), gJ = (e2) => {
28255
+ e2.preventDefault(), e2.metaKey ? hJ() : e2.altKey ? mJ(1) : pJ(1);
28256
+ }, _J = (e2) => {
28257
+ e2.preventDefault(), e2.metaKey ? fJ(0) : e2.altKey ? mJ(-1) : pJ(-1);
28258
28258
  };
28259
28259
  return import_react.createElement(Primitive.div, {
28260
28260
  ref: t,
@@ -28268,27 +28268,27 @@ ${n}` : "Please fix this error.";
28268
28268
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
28269
28269
  case "n":
28270
28270
  case "j":
28271
- E && e2.ctrlKey && hJ(e2);
28271
+ E && e2.ctrlKey && gJ(e2);
28272
28272
  break;
28273
28273
  case "ArrowDown":
28274
- hJ(e2);
28274
+ gJ(e2);
28275
28275
  break;
28276
28276
  case "p":
28277
28277
  case "k":
28278
- E && e2.ctrlKey && gJ(e2);
28278
+ E && e2.ctrlKey && _J(e2);
28279
28279
  break;
28280
28280
  case "ArrowUp":
28281
- gJ(e2);
28281
+ _J(e2);
28282
28282
  break;
28283
28283
  case "Home":
28284
- e2.preventDefault(), dJ(0);
28284
+ e2.preventDefault(), fJ(0);
28285
28285
  break;
28286
28286
  case "End":
28287
- e2.preventDefault(), mJ();
28287
+ e2.preventDefault(), hJ();
28288
28288
  break;
28289
28289
  case "Enter": {
28290
28290
  e2.preventDefault();
28291
- let t3 = lJ();
28291
+ let t3 = uJ();
28292
28292
  if (t3) {
28293
28293
  let e3 = new Event(Z);
28294
28294
  t3.dispatchEvent(e3);
@@ -28697,153 +28697,153 @@ ${n}` : "Please fix this error.";
28697
28697
  Combobox = (e) => {
28698
28698
  let t = (0, import_compiler_runtime$35.c)(106), n, i, a, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
28699
28699
  t[0] === e ? (n = t[1], i = t[2], a = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: a, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = Q);
28700
- let $ = I === void 0 ? false : I, sJ = z === void 0 ? true : z, cJ = U === void 0 ? "Search..." : U, lJ = K === void 0 ? "Nothing found." : K, uJ = q === void 0 ? false : q, dJ = J === void 0 ? false : J, fJ = s ?? false, pJ;
28701
- t[25] !== v || t[26] !== w || t[27] !== fJ ? (pJ = {
28700
+ let $ = I === void 0 ? false : I, cJ = z === void 0 ? true : z, lJ = U === void 0 ? "Search..." : U, uJ = K === void 0 ? "Nothing found." : K, dJ = q === void 0 ? false : q, fJ = J === void 0 ? false : J, pJ = s ?? false, mJ;
28701
+ t[25] !== v || t[26] !== w || t[27] !== pJ ? (mJ = {
28702
28702
  prop: w,
28703
- defaultProp: fJ,
28703
+ defaultProp: pJ,
28704
28704
  onChange: v
28705
- }, t[25] = v, t[26] = w, t[27] = fJ, t[28] = pJ) : pJ = t[28];
28706
- let [mJ, hJ] = useControllableState(pJ), gJ = mJ === void 0 ? false : mJ, _J;
28707
- t[29] === S ? _J = t[30] : (_J = (e2) => {
28705
+ }, t[25] = v, t[26] = w, t[27] = pJ, t[28] = mJ) : mJ = t[28];
28706
+ let [hJ, gJ] = useControllableState(mJ), _J = hJ === void 0 ? false : hJ, vJ;
28707
+ t[29] === S ? vJ = t[30] : (vJ = (e2) => {
28708
28708
  S == null ? void 0 : S(e2);
28709
- }, t[29] = S, t[30] = _J);
28710
- let vJ;
28711
- t[31] !== c || t[32] !== _J || t[33] !== Q ? (vJ = {
28709
+ }, t[29] = S, t[30] = vJ);
28710
+ let yJ;
28711
+ t[31] !== c || t[32] !== vJ || t[33] !== Q ? (yJ = {
28712
28712
  prop: Q,
28713
28713
  defaultProp: c,
28714
- onChange: _J
28715
- }, t[31] = c, t[32] = _J, t[33] = Q, t[34] = vJ) : vJ = t[34];
28716
- let [yJ, bJ] = useControllableState(vJ), xJ;
28717
- t[35] === yJ ? xJ = t[36] : (xJ = (e2) => Array.isArray(yJ) ? yJ.includes(e2) : yJ === e2, t[35] = yJ, t[36] = xJ);
28718
- let SJ = xJ, CJ;
28719
- t[37] !== _ || t[38] !== $ || t[39] !== hJ || t[40] !== bJ || t[41] !== yJ ? (CJ = (e2) => {
28714
+ onChange: vJ
28715
+ }, t[31] = c, t[32] = vJ, t[33] = Q, t[34] = yJ) : yJ = t[34];
28716
+ let [bJ, xJ] = useControllableState(yJ), SJ;
28717
+ t[35] === bJ ? SJ = t[36] : (SJ = (e2) => Array.isArray(bJ) ? bJ.includes(e2) : bJ === e2, t[35] = bJ, t[36] = SJ);
28718
+ let CJ = SJ, wJ;
28719
+ t[37] !== _ || t[38] !== $ || t[39] !== gJ || t[40] !== xJ || t[41] !== bJ ? (wJ = (e2) => {
28720
28720
  let t2 = e2;
28721
- if ($) if (Array.isArray(yJ)) if (yJ.includes(t2)) {
28722
- let n2 = yJ.filter((t3) => t3 !== e2);
28721
+ if ($) if (Array.isArray(bJ)) if (bJ.includes(t2)) {
28722
+ let n2 = bJ.filter((t3) => t3 !== e2);
28723
28723
  t2 = n2.length > 0 ? n2 : [];
28724
28724
  } else t2 = [
28725
- ...yJ,
28725
+ ...bJ,
28726
28726
  t2
28727
28727
  ];
28728
28728
  else t2 = [
28729
28729
  t2
28730
28730
  ];
28731
- else yJ === e2 && (t2 = null);
28732
- bJ(t2), (_ ?? $) || hJ(false);
28733
- }, t[37] = _, t[38] = $, t[39] = hJ, t[40] = bJ, t[41] = yJ, t[42] = CJ) : CJ = t[42];
28734
- let wJ = CJ, EJ;
28735
- t[43] !== uJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== yJ ? (EJ = () => $ && uJ && E ? E : yJ == null ? E ?? "--" : Array.isArray(yJ) ? yJ.length === 0 ? E ?? "--" : yJ.length === 1 && d !== void 0 ? d(yJ[0]) : `${yJ.length} selected` : d === void 0 ? E ?? "--" : d(yJ), t[43] = uJ, t[44] = d, t[45] = $, t[46] = E, t[47] = yJ, t[48] = EJ) : EJ = t[48];
28736
- let DJ = EJ, OJ;
28737
- t[49] !== wJ || t[50] !== SJ ? (OJ = {
28738
- isSelected: SJ,
28739
- onSelect: wJ
28740
- }, t[49] = wJ, t[50] = SJ, t[51] = OJ) : OJ = t[51];
28741
- let kJ = OJ, jJ;
28742
- t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jJ = cn("relative"), t[52] = jJ) : jJ = t[52];
28743
- let MJ;
28744
- t[53] !== dJ || t[54] !== hJ ? (MJ = (e2) => {
28745
- dJ && e2 || hJ(e2);
28746
- }, t[53] = dJ, t[54] = hJ, t[55] = MJ) : MJ = t[55];
28747
- let PJ = dJ && "cursor-not-allowed opacity-50", FJ;
28748
- t[56] !== a || t[57] !== PJ ? (FJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", PJ, a), t[56] = a, t[57] = PJ, t[58] = FJ) : FJ = t[58];
28749
- let IJ;
28750
- t[59] !== O || t[60] !== DJ || t[61] !== yJ ? (IJ = O ? O(yJ ?? null) : DJ(), t[59] = O, t[60] = DJ, t[61] = yJ, t[62] = IJ) : IJ = t[62];
28731
+ else bJ === e2 && (t2 = null);
28732
+ xJ(t2), (_ ?? $) || gJ(false);
28733
+ }, t[37] = _, t[38] = $, t[39] = gJ, t[40] = xJ, t[41] = bJ, t[42] = wJ) : wJ = t[42];
28734
+ let TJ = wJ, DJ;
28735
+ t[43] !== dJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== bJ ? (DJ = () => $ && dJ && E ? E : bJ == null ? E ?? "--" : Array.isArray(bJ) ? bJ.length === 0 ? E ?? "--" : bJ.length === 1 && d !== void 0 ? d(bJ[0]) : `${bJ.length} selected` : d === void 0 ? E ?? "--" : d(bJ), t[43] = dJ, t[44] = d, t[45] = $, t[46] = E, t[47] = bJ, t[48] = DJ) : DJ = t[48];
28736
+ let OJ = DJ, kJ;
28737
+ t[49] !== TJ || t[50] !== CJ ? (kJ = {
28738
+ isSelected: CJ,
28739
+ onSelect: TJ
28740
+ }, t[49] = TJ, t[50] = CJ, t[51] = kJ) : kJ = t[51];
28741
+ let AJ = kJ, MJ;
28742
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (MJ = cn("relative"), t[52] = MJ) : MJ = t[52];
28743
+ let NJ;
28744
+ t[53] !== fJ || t[54] !== gJ ? (NJ = (e2) => {
28745
+ fJ && e2 || gJ(e2);
28746
+ }, t[53] = fJ, t[54] = gJ, t[55] = NJ) : NJ = t[55];
28747
+ let FJ = fJ && "cursor-not-allowed opacity-50", IJ;
28748
+ t[56] !== a || t[57] !== FJ ? (IJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", FJ, a), t[56] = a, t[57] = FJ, t[58] = IJ) : IJ = t[58];
28751
28749
  let LJ;
28752
- t[63] === IJ ? LJ = t[64] : (LJ = (0, import_jsx_runtime.jsx)("span", {
28753
- className: "truncate flex-1 min-w-0",
28754
- children: IJ
28755
- }), t[63] = IJ, t[64] = LJ);
28750
+ t[59] !== O || t[60] !== OJ || t[61] !== bJ ? (LJ = O ? O(bJ ?? null) : OJ(), t[59] = O, t[60] = OJ, t[61] = bJ, t[62] = LJ) : LJ = t[62];
28756
28751
  let RJ;
28757
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (RJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28758
- className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28759
- }), t[65] = RJ) : RJ = t[65];
28752
+ t[63] === LJ ? RJ = t[64] : (RJ = (0, import_jsx_runtime.jsx)("span", {
28753
+ className: "truncate flex-1 min-w-0",
28754
+ children: LJ
28755
+ }), t[63] = LJ, t[64] = RJ);
28760
28756
  let zJ;
28761
- t[66] !== dJ || t[67] !== h || t[68] !== gJ || t[69] !== FJ || t[70] !== LJ ? (zJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28757
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (zJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28758
+ className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28759
+ }), t[65] = zJ) : zJ = t[65];
28760
+ let BJ;
28761
+ t[66] !== fJ || t[67] !== h || t[68] !== _J || t[69] !== IJ || t[70] !== RJ ? (BJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28762
28762
  asChild: true,
28763
28763
  children: (0, import_jsx_runtime.jsxs)("button", {
28764
28764
  id: h,
28765
28765
  type: "button",
28766
- className: FJ,
28767
- "aria-expanded": gJ,
28768
- "aria-disabled": dJ,
28766
+ className: IJ,
28767
+ "aria-expanded": _J,
28768
+ "aria-disabled": fJ,
28769
28769
  children: [
28770
- LJ,
28771
- RJ
28770
+ RJ,
28771
+ zJ
28772
28772
  ]
28773
28773
  })
28774
- }), t[66] = dJ, t[67] = h, t[68] = gJ, t[69] = FJ, t[70] = LJ, t[71] = zJ) : zJ = t[71];
28775
- let BJ;
28776
- t[72] !== cJ || t[73] !== y || t[74] !== M ? (BJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28777
- placeholder: cJ,
28774
+ }), t[66] = fJ, t[67] = h, t[68] = _J, t[69] = IJ, t[70] = RJ, t[71] = BJ) : BJ = t[71];
28775
+ let VJ;
28776
+ t[72] !== lJ || t[73] !== y || t[74] !== M ? (VJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28777
+ placeholder: lJ,
28778
28778
  rootClassName: "px-1 h-8",
28779
28779
  autoFocus: true,
28780
28780
  value: M,
28781
28781
  onValueChange: y
28782
- }), t[72] = cJ, t[73] = y, t[74] = M, t[75] = BJ) : BJ = t[75];
28783
- let VJ;
28784
- t[76] === lJ ? VJ = t[77] : (VJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28785
- children: lJ
28786
- }), t[76] = lJ, t[77] = VJ);
28782
+ }), t[72] = lJ, t[73] = y, t[74] = M, t[75] = VJ) : VJ = t[75];
28787
28783
  let HJ;
28788
- t[78] !== n || t[79] !== kJ ? (HJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28789
- value: kJ,
28790
- children: n
28791
- }), t[78] = n, t[79] = kJ, t[80] = HJ) : HJ = t[80];
28784
+ t[76] === uJ ? HJ = t[77] : (HJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28785
+ children: uJ
28786
+ }), t[76] = uJ, t[77] = HJ);
28792
28787
  let UJ;
28793
- t[81] !== VJ || t[82] !== HJ ? (UJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28788
+ t[78] !== n || t[79] !== AJ ? (UJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28789
+ value: AJ,
28790
+ children: n
28791
+ }), t[78] = n, t[79] = AJ, t[80] = UJ) : UJ = t[80];
28792
+ let WJ;
28793
+ t[81] !== HJ || t[82] !== UJ ? (WJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28794
28794
  className: "max-h-60 py-.5",
28795
28795
  children: [
28796
- VJ,
28797
- HJ
28796
+ HJ,
28797
+ UJ
28798
28798
  ]
28799
- }), t[81] = VJ, t[82] = HJ, t[83] = UJ) : UJ = t[83];
28800
- let WJ;
28801
- t[84] !== f || t[85] !== sJ || t[86] !== BJ || t[87] !== UJ ? (WJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28799
+ }), t[81] = HJ, t[82] = UJ, t[83] = WJ) : WJ = t[83];
28800
+ let GJ;
28801
+ t[84] !== f || t[85] !== cJ || t[86] !== VJ || t[87] !== WJ ? (GJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28802
28802
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28803
28803
  align: "start",
28804
28804
  children: (0, import_jsx_runtime.jsxs)(Command, {
28805
28805
  filter: f,
28806
- shouldFilter: sJ,
28806
+ shouldFilter: cJ,
28807
28807
  children: [
28808
- BJ,
28809
- UJ
28808
+ VJ,
28809
+ WJ
28810
28810
  ]
28811
28811
  })
28812
- }), t[84] = f, t[85] = sJ, t[86] = BJ, t[87] = UJ, t[88] = WJ) : WJ = t[88];
28813
- let GJ;
28814
- t[89] !== gJ || t[90] !== MJ || t[91] !== zJ || t[92] !== WJ ? (GJ = (0, import_jsx_runtime.jsxs)(Popover, {
28815
- open: gJ,
28816
- onOpenChange: MJ,
28812
+ }), t[84] = f, t[85] = cJ, t[86] = VJ, t[87] = WJ, t[88] = GJ) : GJ = t[88];
28813
+ let KJ;
28814
+ t[89] !== _J || t[90] !== NJ || t[91] !== BJ || t[92] !== GJ ? (KJ = (0, import_jsx_runtime.jsxs)(Popover, {
28815
+ open: _J,
28816
+ onOpenChange: NJ,
28817
28817
  children: [
28818
- zJ,
28819
- WJ
28818
+ BJ,
28819
+ GJ
28820
28820
  ]
28821
- }), t[89] = gJ, t[90] = MJ, t[91] = zJ, t[92] = WJ, t[93] = GJ) : GJ = t[93];
28822
- let KJ;
28823
- t[94] !== uJ || t[95] !== i || t[96] !== dJ || t[97] !== d || t[98] !== wJ || t[99] !== $ || t[100] !== yJ ? (KJ = $ && uJ && (0, import_jsx_runtime.jsx)("div", {
28821
+ }), t[89] = _J, t[90] = NJ, t[91] = BJ, t[92] = GJ, t[93] = KJ) : KJ = t[93];
28822
+ let qJ;
28823
+ t[94] !== dJ || t[95] !== i || t[96] !== fJ || t[97] !== d || t[98] !== TJ || t[99] !== $ || t[100] !== bJ ? (qJ = $ && dJ && (0, import_jsx_runtime.jsx)("div", {
28824
28824
  className: cn("flex flex-col gap-1 items-start", i),
28825
- children: Array.isArray(yJ) && yJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28825
+ children: Array.isArray(bJ) && bJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28826
28826
  variant: "secondary",
28827
28827
  children: [
28828
28828
  (d == null ? void 0 : d(e2)) ?? String(e2),
28829
28829
  (0, import_jsx_runtime.jsx)(CircleX, {
28830
28830
  onClick: () => {
28831
- dJ || wJ(e2);
28831
+ fJ || TJ(e2);
28832
28832
  },
28833
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", dJ && "pointer-events-none")
28833
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", fJ && "pointer-events-none")
28834
28834
  })
28835
28835
  ]
28836
28836
  }, String(e2)))
28837
- }), t[94] = uJ, t[95] = i, t[96] = dJ, t[97] = d, t[98] = wJ, t[99] = $, t[100] = yJ, t[101] = KJ) : KJ = t[101];
28838
- let qJ;
28839
- return t[102] !== A || t[103] !== GJ || t[104] !== KJ ? (qJ = (0, import_jsx_runtime.jsxs)("div", {
28840
- className: jJ,
28837
+ }), t[94] = dJ, t[95] = i, t[96] = fJ, t[97] = d, t[98] = TJ, t[99] = $, t[100] = bJ, t[101] = qJ) : qJ = t[101];
28838
+ let JJ;
28839
+ return t[102] !== A || t[103] !== KJ || t[104] !== qJ ? (JJ = (0, import_jsx_runtime.jsxs)("div", {
28840
+ className: MJ,
28841
28841
  ...A,
28842
28842
  children: [
28843
- GJ,
28844
- KJ
28843
+ KJ,
28844
+ qJ
28845
28845
  ]
28846
- }), t[102] = A, t[103] = GJ, t[104] = KJ, t[105] = qJ) : qJ = t[105], qJ;
28846
+ }), t[102] = A, t[103] = KJ, t[104] = qJ, t[105] = JJ) : JJ = t[105], JJ;
28847
28847
  };
28848
28848
  ComboboxItem = import_react.forwardRef((e, t) => {
28849
28849
  let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: a, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
@@ -29899,17 +29899,17 @@ ${n}` : "Please fix this error.";
29899
29899
  searchQuery: M,
29900
29900
  filteredOptions: z
29901
29901
  }, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
29902
- let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), sJ;
29903
- t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (sJ = {
29902
+ let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), cJ;
29903
+ t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (cJ = {
29904
29904
  value: i,
29905
29905
  onChange: a,
29906
29906
  multiple: o,
29907
29907
  maxSelections: s,
29908
29908
  allowSelectNone: c,
29909
29909
  selected: y
29910
- }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = sJ) : sJ = t[21];
29911
- let { isChecked: cJ, toggle: lJ } = useToggle(sJ), uJ;
29912
- t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (uJ = {
29910
+ }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = cJ) : cJ = t[21];
29911
+ let { isChecked: lJ, toggle: uJ } = useToggle(cJ), dJ;
29912
+ t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (dJ = {
29913
29913
  value: i,
29914
29914
  onChange: a,
29915
29915
  multiple: o,
@@ -29917,24 +29917,24 @@ ${n}` : "Please fix this error.";
29917
29917
  filteredOptions: z,
29918
29918
  searchQuery: M,
29919
29919
  maxSelections: s
29920
- }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = uJ) : uJ = t[29];
29921
- let { bulkActions: dJ } = useBulk(uJ), fJ;
29922
- t[30] !== J || t[31] !== I ? (fJ = (e2) => {
29920
+ }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = dJ) : dJ = t[29];
29921
+ let { bulkActions: fJ } = useBulk(dJ), pJ;
29922
+ t[30] !== J || t[31] !== I ? (pJ = (e2) => {
29923
29923
  I(e2), e2 === "" && J();
29924
- }, t[30] = J, t[31] = I, t[32] = fJ) : fJ = t[32];
29925
- let pJ = fJ, mJ;
29926
- return t[33] !== dJ || t[34] !== cJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== pJ || t[41] !== lJ || t[42] !== Q ? (mJ = {
29924
+ }, t[30] = J, t[31] = I, t[32] = pJ) : pJ = t[32];
29925
+ let mJ = pJ, hJ;
29926
+ return t[33] !== fJ || t[34] !== lJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== mJ || t[41] !== uJ || t[42] !== Q ? (hJ = {
29927
29927
  searchQuery: M,
29928
- setSearchQuery: pJ,
29928
+ setSearchQuery: mJ,
29929
29929
  open: K,
29930
29930
  setOpen: q,
29931
29931
  visibleOptions: Q,
29932
29932
  pinnedCount: $,
29933
- isChecked: cJ,
29934
- toggle: lJ,
29935
- bulkActions: dJ,
29933
+ isChecked: lJ,
29934
+ toggle: uJ,
29935
+ bulkActions: fJ,
29936
29936
  labelOf: O
29937
- }, t[33] = dJ, t[34] = cJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = pJ, t[41] = lJ, t[42] = Q, t[43] = mJ) : mJ = t[43], mJ;
29937
+ }, t[33] = fJ, t[34] = lJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = mJ, t[41] = uJ, t[42] = Q, t[43] = hJ) : hJ = t[43], hJ;
29938
29938
  };
29939
29939
  const Sets = {
29940
29940
  merge(...e) {
@@ -30263,7 +30263,7 @@ ${n}` : "Please fix this error.";
30263
30263
  type: S,
30264
30264
  operator: E,
30265
30265
  draft: mergeNumberTextDraft(A, I)
30266
- }), $ = Q === void 0, sJ = $ ? getMissingValueMessage(S, E) : "Apply filter", cJ = () => {
30266
+ }), $ = Q === void 0, cJ = $ ? getMissingValueMessage(S, E) : "Apply filter", lJ = () => {
30267
30267
  if (!Q) return;
30268
30268
  let e2 = Q;
30269
30269
  t.setColumnFilters((t2) => {
@@ -30282,20 +30282,20 @@ ${n}` : "Please fix this error.";
30282
30282
  value: e2
30283
30283
  }, n2;
30284
30284
  }), i();
30285
- }, lJ = () => {
30285
+ }, uJ = () => {
30286
30286
  a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
30287
- }, uJ = !OPERATORS_WITHOUT_VALUE.has(E), dJ = OPERATORS_BY_TYPE[S], fJ = (0, import_react.useRef)(null), pJ = (0, import_react.useRef)(null);
30287
+ }, dJ = !OPERATORS_WITHOUT_VALUE.has(E), fJ = OPERATORS_BY_TYPE[S], pJ = (0, import_react.useRef)(null), mJ = (0, import_react.useRef)(null);
30288
30288
  return (0, import_react.useEffect)(() => {
30289
30289
  var _a2, _b;
30290
- let e2 = (_a2 = fJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30291
- e2 ? e2.focus() : (_b = pJ.current) == null ? void 0 : _b.focus();
30290
+ let e2 = (_a2 = pJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30291
+ e2 ? e2.focus() : (_b = mJ.current) == null ? void 0 : _b.focus();
30292
30292
  }, [
30293
30293
  S,
30294
30294
  E
30295
30295
  ]), (0, import_jsx_runtime.jsxs)("form", {
30296
30296
  className: "flex flex-row gap-4 items-end p-3",
30297
30297
  onSubmit: (e2) => {
30298
- e2.preventDefault(), cJ();
30298
+ e2.preventDefault(), lJ();
30299
30299
  },
30300
30300
  onKeyDownCapture: (e2) => {
30301
30301
  e2.key === "Tab" && e2.stopPropagation();
@@ -30336,13 +30336,13 @@ ${n}` : "Please fix this error.";
30336
30336
  onValueChange: (e2) => J(e2),
30337
30337
  children: [
30338
30338
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30339
- ref: pJ,
30339
+ ref: mJ,
30340
30340
  id: s,
30341
30341
  className: "h-6 mb-1 bg-transparent",
30342
30342
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30343
30343
  }),
30344
30344
  (0, import_jsx_runtime.jsx)(SelectContent, {
30345
- children: dJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30345
+ children: fJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30346
30346
  value: e2,
30347
30347
  children: OPERATOR_LABELS[e2]
30348
30348
  }, e2))
@@ -30351,8 +30351,8 @@ ${n}` : "Please fix this error.";
30351
30351
  }, S)
30352
30352
  ]
30353
30353
  }),
30354
- uJ && (0, import_jsx_runtime.jsxs)("div", {
30355
- ref: fJ,
30354
+ dJ && (0, import_jsx_runtime.jsxs)("div", {
30355
+ ref: pJ,
30356
30356
  className: "flex flex-col gap-1",
30357
30357
  children: [
30358
30358
  (0, import_jsx_runtime.jsx)("label", {
@@ -30379,7 +30379,7 @@ ${n}` : "Please fix this error.";
30379
30379
  className: "flex gap-1 mb-1",
30380
30380
  children: [
30381
30381
  (0, import_jsx_runtime.jsx)(Tooltip, {
30382
- content: sJ,
30382
+ content: cJ,
30383
30383
  children: (0, import_jsx_runtime.jsx)("span", {
30384
30384
  className: "inline-flex",
30385
30385
  children: (0, import_jsx_runtime.jsx)(Button, {
@@ -30418,7 +30418,7 @@ ${n}` : "Please fix this error.";
30418
30418
  size: "icon",
30419
30419
  variant: "ghost",
30420
30420
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30421
- onClick: lJ,
30421
+ onClick: uJ,
30422
30422
  "aria-label": "Remove filter",
30423
30423
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30424
30424
  className: "h-3.5 w-3.5",
@@ -32626,29 +32626,29 @@ ${n}` : "Please fix this error.";
32626
32626
  }, t[16] = a, t[17] = J);
32627
32627
  let Q = useEvent_default(J), $;
32628
32628
  t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
32629
- let sJ = useEvent_default($), cJ, lJ;
32630
- t[20] === S ? (cJ = t[21], lJ = t[22]) : (cJ = () => (window.addEventListener("scroll", S, {
32629
+ let cJ = useEvent_default($), lJ, uJ;
32630
+ t[20] === S ? (lJ = t[21], uJ = t[22]) : (lJ = () => (window.addEventListener("scroll", S, {
32631
32631
  passive: true,
32632
32632
  capture: true
32633
32633
  }), window.addEventListener("resize", S), () => {
32634
32634
  window.removeEventListener("scroll", S, {
32635
32635
  capture: true
32636
32636
  }), window.removeEventListener("resize", S);
32637
- }), lJ = [
32637
+ }), uJ = [
32638
32638
  S
32639
- ], t[20] = S, t[21] = cJ, t[22] = lJ), (0, import_react.useEffect)(cJ, lJ);
32640
- let uJ, dJ;
32641
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uJ = () => v, dJ = [], t[23] = uJ, t[24] = dJ) : (uJ = t[23], dJ = t[24]), (0, import_react.useEffect)(uJ, dJ);
32642
- let fJ;
32643
- return t[25] !== sJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (fJ = {
32639
+ ], t[20] = S, t[21] = lJ, t[22] = uJ), (0, import_react.useEffect)(lJ, uJ);
32640
+ let dJ, fJ;
32641
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = () => v, fJ = [], t[23] = dJ, t[24] = fJ) : (dJ = t[23], fJ = t[24]), (0, import_react.useEffect)(dJ, fJ);
32642
+ let pJ;
32643
+ return t[25] !== cJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (pJ = {
32644
32644
  tooltipState: o,
32645
32645
  tooltipContentId: d,
32646
32646
  hideTooltip: S,
32647
32647
  handleCellMouseOver: U,
32648
32648
  handleCellMouseLeave: q,
32649
32649
  handleCellFocus: Q,
32650
- handleCellBlur: sJ
32651
- }, t[25] = sJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = fJ) : fJ = t[32], fJ;
32650
+ handleCellBlur: cJ
32651
+ }, t[25] = cJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = pJ) : pJ = t[32], pJ;
32652
32652
  }
32653
32653
  var import_compiler_runtime$18 = require_compiler_runtime();
32654
32654
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
@@ -33925,6 +33925,13 @@ ${n}` : "Please fix this error.";
33925
33925
  let n = URL.createObjectURL(e);
33926
33926
  downloadByURL(n, t), URL.revokeObjectURL(n);
33927
33927
  };
33928
+ downloadExportedFile = function({ contents: e, filename: t, mediaType: n }) {
33929
+ downloadBlob(new Blob([
33930
+ e
33931
+ ], {
33932
+ type: n
33933
+ }), t);
33934
+ };
33928
33935
  var import_compiler_runtime$11 = require_compiler_runtime();
33929
33936
  InstallPackageButton = (e) => {
33930
33937
  let t = (0, import_compiler_runtime$11.c)(13), { packages: n, showMaxPackages: i, className: a, onInstall: s } = e, { handleInstallPackages: c } = useInstallPackages(), d = useInstallAllowed();
@@ -34086,7 +34093,7 @@ ${n}` : "Please fix this error.";
34086
34093
  filename: i2.filename
34087
34094
  };
34088
34095
  }, t[6] = e, t[7] = O);
34089
- let A = O, M, I, z, U, K, q, J, Q, $, sJ, cJ, lJ, uJ;
34096
+ let A = O, M, I, z, U, K, q, J, Q, $, cJ, lJ, uJ, dJ;
34090
34097
  if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
34091
34098
  let e2 = async (t2) => {
34092
34099
  let n2 = labelForDownloadFormat(t2);
@@ -34152,10 +34159,10 @@ ${n}` : "Please fix this error.";
34152
34159
  content: d,
34153
34160
  open: o,
34154
34161
  children: h
34155
- }), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", sJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34162
+ }), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", cJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34156
34163
  className: "text-xs text-muted-foreground",
34157
34164
  children: "Download"
34158
- }), t[36] = cJ) : cJ = t[36], lJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34165
+ }), t[36] = lJ) : lJ = t[36], uJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34159
34166
  onSelect: () => {
34160
34167
  e2(t2.format);
34161
34168
  },
@@ -34176,10 +34183,10 @@ ${n}` : "Please fix this error.";
34176
34183
  ]
34177
34184
  })
34178
34185
  ]
34179
- }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34186
+ }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34180
34187
  className: "text-xs text-muted-foreground",
34181
34188
  children: "Copy to clipboard"
34182
- }), t[37] = z, t[38] = uJ) : (z = t[37], uJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34189
+ }), t[37] = z, t[38] = dJ) : (z = t[37], dJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34183
34190
  onSelect: async () => {
34184
34191
  try {
34185
34192
  await a2(e3.format);
@@ -34208,30 +34215,30 @@ ${n}` : "Please fix this error.";
34208
34215
  ]
34209
34216
  })
34210
34217
  ]
34211
- }, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = sJ, t[23] = cJ, t[24] = lJ, t[25] = uJ;
34212
- } else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], sJ = t[22], cJ = t[23], lJ = t[24], uJ = t[25];
34213
- let dJ;
34214
- t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== sJ || t[44] !== cJ || t[45] !== lJ || t[46] !== uJ ? (dJ = (0, import_jsx_runtime.jsxs)(M, {
34218
+ }, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = cJ, t[23] = lJ, t[24] = uJ, t[25] = dJ;
34219
+ } else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], cJ = t[22], lJ = t[23], uJ = t[24], dJ = t[25];
34220
+ let fJ;
34221
+ t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== cJ || t[44] !== lJ || t[45] !== uJ || t[46] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)(M, {
34215
34222
  side: $,
34216
- className: sJ,
34223
+ className: cJ,
34217
34224
  children: [
34218
- cJ,
34219
34225
  lJ,
34220
34226
  uJ,
34227
+ dJ,
34221
34228
  z,
34222
34229
  U
34223
34230
  ]
34224
- }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = sJ, t[44] = cJ, t[45] = lJ, t[46] = uJ, t[47] = dJ) : dJ = t[47];
34225
- let fJ;
34226
- return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)(I, {
34231
+ }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = cJ, t[44] = lJ, t[45] = uJ, t[46] = dJ, t[47] = fJ) : fJ = t[47];
34232
+ let pJ;
34233
+ return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== fJ ? (pJ = (0, import_jsx_runtime.jsxs)(I, {
34227
34234
  modal: K,
34228
34235
  open: q,
34229
34236
  onOpenChange: J,
34230
34237
  children: [
34231
34238
  Q,
34232
- dJ
34239
+ fJ
34233
34240
  ]
34234
- }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = dJ, t[54] = fJ) : fJ = t[54], fJ;
34241
+ }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = fJ, t[54] = pJ) : pJ = t[54], pJ;
34235
34242
  };
34236
34243
  function fetchJson(e) {
34237
34244
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -34327,22 +34334,22 @@ ${n}` : "Please fix this error.";
34327
34334
  ]
34328
34335
  });
34329
34336
  };
34330
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: sJ, showSearch: cJ = false, searchQuery: lJ, onSearchQueryChange: uJ, showFilters: dJ = false, filters: fJ, onFiltersChange: pJ, calculateTopKRows: mJ, reloading: hJ, freezeColumnsLeft: gJ, freezeColumnsRight: _J, hiddenColumns: vJ, toggleDisplayHeader: yJ, showChartBuilder: bJ, isChartBuilderOpen: xJ, showPageSizeSelector: SJ, showTableExplorer: CJ, togglePanel: wJ, isPanelOpen: TJ, isAnyPanelOpen: EJ, viewedRowIdx: DJ, onViewedRowChange: OJ, renderTableExplorerPanel: kJ }) => {
34331
- let AJ = isStaticNotebook(), jJ = !AJ, [MJ, NJ] = import_react.useState(false), { locale: PJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: FJ, setColumnPinning: IJ } = useColumnPinning(gJ, _J), { columnVisibility: LJ, setColumnVisibility: RJ } = useColumnVisibility(vJ);
34337
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: cJ, showSearch: lJ = false, searchQuery: uJ, onSearchQueryChange: dJ, showFilters: fJ = false, filters: pJ, onFiltersChange: mJ, calculateTopKRows: hJ, reloading: gJ, freezeColumnsLeft: _J, freezeColumnsRight: vJ, hiddenColumns: yJ, toggleDisplayHeader: bJ, showChartBuilder: xJ, isChartBuilderOpen: SJ, showPageSizeSelector: CJ, showTableExplorer: wJ, togglePanel: TJ, isPanelOpen: EJ, isAnyPanelOpen: DJ, viewedRowIdx: OJ, onViewedRowChange: kJ, renderTableExplorerPanel: AJ }) => {
34338
+ let jJ = isStaticNotebook(), MJ = !jJ, [NJ, PJ] = import_react.useState(false), { locale: FJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: IJ, setColumnPinning: LJ } = useColumnPinning(_J, vJ), { columnVisibility: RJ, setColumnVisibility: zJ } = useColumnVisibility(yJ);
34332
34339
  import_react.useEffect(() => {
34333
34340
  let e2;
34334
- return hJ ? e2 = setTimeout(() => {
34335
- NJ(true);
34336
- }, 300) : NJ(false), () => {
34341
+ return gJ ? e2 = setTimeout(() => {
34342
+ PJ(true);
34343
+ }, 300) : PJ(false), () => {
34337
34344
  e2 && clearTimeout(e2);
34338
34345
  };
34339
34346
  }, [
34340
- hJ
34347
+ gJ
34341
34348
  ]);
34342
- function zJ(e2, t2) {
34349
+ function BJ(e2, t2) {
34343
34350
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
34344
34351
  }
34345
- let BJ = useReactTable({
34352
+ let VJ = useReactTable({
34346
34353
  _features: [
34347
34354
  ColumnPinning,
34348
34355
  ColumnWrappingFeature,
@@ -34366,37 +34373,37 @@ ${n}` : "Please fix this error.";
34366
34373
  getRowId: (e2, t2) => {
34367
34374
  let n2 = getStableRowId(e2);
34368
34375
  if (n2) return n2;
34369
- let i2 = zJ(e2, t2);
34376
+ let i2 = BJ(e2, t2);
34370
34377
  return String(i2);
34371
34378
  }
34372
34379
  } : {},
34373
- locale: PJ,
34380
+ locale: FJ,
34374
34381
  manualPagination: q,
34375
34382
  getPaginationRowModel: getPaginationRowModel(),
34376
34383
  ...w ? {
34377
34384
  onSortingChange: w
34378
34385
  } : {},
34379
34386
  manualSorting: y,
34380
- enableSorting: !AJ,
34387
+ enableSorting: !jJ,
34381
34388
  enableMultiSort: true,
34382
34389
  getSortedRowModel: getSortedRowModel(),
34383
34390
  manualFiltering: true,
34384
- enableColumnFilters: dJ && !AJ,
34391
+ enableColumnFilters: fJ && !jJ,
34385
34392
  getFilteredRowModel: getFilteredRowModel(),
34386
- onColumnFiltersChange: pJ,
34393
+ onColumnFiltersChange: mJ,
34387
34394
  onRowSelectionChange: Q,
34388
34395
  onCellSelectionChange: $,
34389
34396
  enableCellSelection: c === "single-cell" || c === "multi-cell",
34390
34397
  enableMultiCellSelection: c === "multi-cell",
34391
- onColumnPinningChange: IJ,
34392
- onColumnVisibilityChange: RJ,
34398
+ onColumnPinningChange: LJ,
34399
+ onColumnVisibilityChange: zJ,
34393
34400
  enableFocusRow: true,
34394
- onFocusRowChange: OJ,
34401
+ onFocusRowChange: kJ,
34395
34402
  state: {
34396
34403
  ...S ? {
34397
34404
  sorting: S
34398
34405
  } : {},
34399
- columnFilters: fJ,
34406
+ columnFilters: pJ,
34400
34407
  ...z ? {
34401
34408
  pagination: z
34402
34409
  } : J && !z ? {} : {
@@ -34407,60 +34414,60 @@ ${n}` : "Please fix this error.";
34407
34414
  },
34408
34415
  rowSelection: E ?? {},
34409
34416
  cellSelection: O ?? [],
34410
- columnVisibility: LJ,
34417
+ columnVisibility: RJ,
34411
34418
  cellStyling: A,
34412
- columnPinning: FJ,
34419
+ columnPinning: IJ,
34413
34420
  cellHoverTemplate: M,
34414
34421
  cellHoverTexts: I ?? {}
34415
34422
  }
34416
- }), VJ = (TJ == null ? void 0 : TJ(PANEL_TYPES.ROW_VIEWER)) ?? false, HJ = !J && a.length > 100, UJ = useScrollContainerHeight({
34423
+ }), HJ = (EJ == null ? void 0 : EJ(PANEL_TYPES.ROW_VIEWER)) ?? false, UJ = !J && a.length > 100, WJ = useScrollContainerHeight({
34417
34424
  maxHeight: n,
34418
- virtualize: HJ
34419
- }), [WJ, GJ] = import_react.useState(null), KJ = import_react.useMemo(() => ({
34425
+ virtualize: UJ
34426
+ }), [GJ, KJ] = import_react.useState(null), qJ = import_react.useMemo(() => ({
34420
34427
  requestAddFilter: (e2) => {
34421
- let t2 = BJ.getColumn(e2.columnId);
34422
- t2 && GJ(buildEditorSnapshot(t2, {
34428
+ let t2 = VJ.getColumn(e2.columnId);
34429
+ t2 && KJ(buildEditorSnapshot(t2, {
34423
34430
  operator: e2.operator
34424
34431
  }));
34425
34432
  }
34426
34433
  }), [
34427
- BJ
34428
- ]), qJ = getUserColumnVisibilityCounts(BJ), JJ = qJ.total > 0 && qJ.visible === 0;
34434
+ VJ
34435
+ ]), JJ = getUserColumnVisibilityCounts(VJ), YJ = JJ.total > 0 && JJ.visible === 0;
34429
34436
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
34430
- value: KJ,
34437
+ value: qJ,
34431
34438
  children: (0, import_jsx_runtime.jsxs)("div", {
34432
34439
  className: cn(e, "flex flex-col space-y-1"),
34433
34440
  children: [
34434
34441
  (0, import_jsx_runtime.jsx)(FilterPills, {
34435
- filters: fJ,
34436
- table: BJ,
34437
- calculateTopKRows: mJ,
34438
- addFilterSnapshot: WJ,
34439
- onAddFilterSnapshotChange: GJ
34442
+ filters: pJ,
34443
+ table: VJ,
34444
+ calculateTopKRows: hJ,
34445
+ addFilterSnapshot: GJ,
34446
+ onAddFilterSnapshotChange: KJ
34440
34447
  }),
34441
- kJ == null ? void 0 : kJ(BJ),
34448
+ AJ == null ? void 0 : AJ(VJ),
34442
34449
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
34443
34450
  children: (0, import_jsx_runtime.jsxs)("div", {
34444
34451
  part: "table-wrapper",
34445
34452
  className: cn(t || "rounded-md border overflow-hidden"),
34446
34453
  children: [
34447
- jJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34448
- table: BJ,
34449
- showSearch: cJ,
34450
- searchQuery: lJ,
34451
- onSearchQueryChange: uJ,
34452
- reloading: hJ,
34453
- showChartBuilder: bJ,
34454
- isChartBuilderOpen: xJ,
34455
- toggleDisplayHeader: yJ,
34456
- showTableExplorer: CJ,
34457
- togglePanel: wJ,
34458
- isAnyPanelOpen: EJ,
34454
+ MJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34455
+ table: VJ,
34456
+ showSearch: lJ,
34457
+ searchQuery: uJ,
34458
+ onSearchQueryChange: dJ,
34459
+ reloading: gJ,
34460
+ showChartBuilder: xJ,
34461
+ isChartBuilderOpen: SJ,
34462
+ toggleDisplayHeader: bJ,
34463
+ showTableExplorer: wJ,
34464
+ togglePanel: TJ,
34465
+ isAnyPanelOpen: DJ,
34459
34466
  downloadAs: K,
34460
34467
  sizeBytes: _,
34461
34468
  sizeBytesIsLoading: v
34462
34469
  }),
34463
- JJ && (0, import_jsx_runtime.jsxs)(Banner, {
34470
+ YJ && (0, import_jsx_runtime.jsxs)(Banner, {
34464
34471
  className: "mb-1 mx-2 rounded flex items-center justify-between",
34465
34472
  children: [
34466
34473
  (0, import_jsx_runtime.jsx)("span", {
@@ -34469,26 +34476,26 @@ ${n}` : "Please fix this error.";
34469
34476
  (0, import_jsx_runtime.jsx)(Button, {
34470
34477
  variant: "link",
34471
34478
  size: "xs",
34472
- onClick: () => BJ.resetColumnVisibility(true),
34479
+ onClick: () => VJ.resetColumnVisibility(true),
34473
34480
  children: "Unhide all"
34474
34481
  })
34475
34482
  ]
34476
34483
  }),
34477
34484
  (0, import_jsx_runtime.jsxs)(Table, {
34478
34485
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
34479
- ref: UJ,
34486
+ ref: WJ,
34480
34487
  children: [
34481
- MJ && (0, import_jsx_runtime.jsx)("thead", {
34488
+ NJ && (0, import_jsx_runtime.jsx)("thead", {
34482
34489
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
34483
34490
  }),
34484
- renderTableHeader(BJ, HJ || !!n),
34491
+ renderTableHeader(VJ, UJ || !!n),
34485
34492
  (0, import_jsx_runtime.jsx)(DataTableBody, {
34486
- table: BJ,
34493
+ table: VJ,
34487
34494
  columns: i,
34488
- rowViewerPanelOpen: VJ,
34489
- getRowIndex: zJ,
34490
- viewedRowIdx: DJ,
34491
- virtualize: HJ
34495
+ rowViewerPanelOpen: HJ,
34496
+ getRowIndex: BJ,
34497
+ viewedRowIdx: OJ,
34498
+ virtualize: UJ
34492
34499
  })
34493
34500
  ]
34494
34501
  }),
@@ -34499,10 +34506,10 @@ ${n}` : "Please fix this error.";
34499
34506
  pagination: J,
34500
34507
  selection: c,
34501
34508
  onRowSelectionChange: Q,
34502
- table: BJ,
34503
- getRowIds: sJ,
34504
- showPageSizeSelector: SJ,
34505
- tableLoading: hJ
34509
+ table: VJ,
34510
+ getRowIds: cJ,
34511
+ showPageSizeSelector: CJ,
34512
+ tableLoading: gJ
34506
34513
  })
34507
34514
  ]
34508
34515
  })
@@ -34602,45 +34609,45 @@ ${d}`,
34602
34609
  prompt: buildFixInChatPrompt(a, d)
34603
34610
  });
34604
34611
  }, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
34605
- let $ = Q, sJ;
34606
- t[19] === z ? sJ = t[20] : (sJ = () => U(!z), t[19] = z, t[20] = sJ);
34607
- let cJ = z ? "Collapse traceback" : "Expand traceback", lJ;
34608
- t[21] === z ? lJ = t[22] : (lJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34612
+ let $ = Q, cJ;
34613
+ t[19] === z ? cJ = t[20] : (cJ = () => U(!z), t[19] = z, t[20] = cJ);
34614
+ let lJ = z ? "Collapse traceback" : "Expand traceback", uJ;
34615
+ t[21] === z ? uJ = t[22] : (uJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34609
34616
  className: "h-3 w-3"
34610
34617
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
34611
34618
  className: "h-3 w-3"
34612
- }), t[21] = z, t[22] = lJ);
34613
- let uJ;
34614
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uJ = (0, import_jsx_runtime.jsx)("span", {
34619
+ }), t[21] = z, t[22] = uJ);
34620
+ let dJ;
34621
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = (0, import_jsx_runtime.jsx)("span", {
34615
34622
  className: "text-[0.6875rem] uppercase tracking-wider",
34616
34623
  children: "Traceback"
34617
- }), t[23] = uJ) : uJ = t[23];
34618
- let dJ;
34619
- t[24] !== z || t[25] !== lJ || t[26] !== sJ || t[27] !== cJ ? (dJ = (0, import_jsx_runtime.jsxs)("button", {
34624
+ }), t[23] = dJ) : dJ = t[23];
34625
+ let fJ;
34626
+ t[24] !== z || t[25] !== uJ || t[26] !== cJ || t[27] !== lJ ? (fJ = (0, import_jsx_runtime.jsxs)("button", {
34620
34627
  type: "button",
34621
- onClick: sJ,
34628
+ onClick: cJ,
34622
34629
  "aria-expanded": z,
34623
- "aria-label": cJ,
34630
+ "aria-label": lJ,
34624
34631
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34625
34632
  children: [
34626
- lJ,
34627
- uJ
34633
+ uJ,
34634
+ dJ
34628
34635
  ]
34629
- }), t[24] = z, t[25] = lJ, t[26] = sJ, t[27] = cJ, t[28] = dJ) : dJ = t[28];
34630
- let fJ;
34631
- t[29] !== s || t[30] !== z ? (fJ = z && (0, import_jsx_runtime.jsx)("div", {
34636
+ }), t[24] = z, t[25] = uJ, t[26] = cJ, t[27] = lJ, t[28] = fJ) : fJ = t[28];
34637
+ let pJ;
34638
+ t[29] !== s || t[30] !== z ? (pJ = z && (0, import_jsx_runtime.jsx)("div", {
34632
34639
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34633
34640
  children: s
34634
- }), t[29] = s, t[30] = z, t[31] = fJ) : fJ = t[31];
34635
- let pJ;
34636
- t[32] !== q || t[33] !== $ || t[34] !== M ? (pJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34641
+ }), t[29] = s, t[30] = z, t[31] = pJ) : pJ = t[31];
34642
+ let mJ;
34643
+ t[32] !== q || t[33] !== $ || t[34] !== M ? (mJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34637
34644
  tooltip: "Fix with AI",
34638
34645
  openPrompt: () => q(false),
34639
34646
  applyAutofix: () => q(true),
34640
34647
  openChat: $
34641
- }), t[32] = q, t[33] = $, t[34] = M, t[35] = pJ) : pJ = t[35];
34642
- let mJ;
34643
- t[36] !== O || t[37] !== S ? (mJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34648
+ }), t[32] = q, t[33] = $, t[34] = M, t[35] = mJ) : mJ = t[35];
34649
+ let hJ;
34650
+ t[36] !== O || t[37] !== S ? (hJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34644
34651
  content: "Attach pdb to the exception point.",
34645
34652
  children: (0, import_jsx_runtime.jsxs)(Button, {
34646
34653
  size: "xs",
@@ -34657,9 +34664,9 @@ ${d}`,
34657
34664
  "Launch debugger"
34658
34665
  ]
34659
34666
  })
34660
- }), t[36] = O, t[37] = S, t[38] = mJ) : mJ = t[38];
34661
- let hJ;
34662
- t[39] !== d || t[40] !== i ? (hJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34667
+ }), t[36] = O, t[37] = S, t[38] = hJ) : hJ = t[38];
34668
+ let gJ;
34669
+ t[39] !== d || t[40] !== i ? (gJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34663
34670
  children: [
34664
34671
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34665
34672
  asChild: true,
@@ -34727,25 +34734,25 @@ ${d}`,
34727
34734
  ]
34728
34735
  })
34729
34736
  ]
34730
- }), t[39] = d, t[40] = i, t[41] = hJ) : hJ = t[41];
34731
- let gJ;
34732
- t[42] !== pJ || t[43] !== mJ || t[44] !== hJ ? (gJ = (0, import_jsx_runtime.jsxs)("div", {
34737
+ }), t[39] = d, t[40] = i, t[41] = gJ) : gJ = t[41];
34738
+ let _J;
34739
+ t[42] !== mJ || t[43] !== hJ || t[44] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)("div", {
34733
34740
  className: "flex gap-2",
34734
34741
  children: [
34735
- pJ,
34736
34742
  mJ,
34737
- hJ
34743
+ hJ,
34744
+ gJ
34738
34745
  ]
34739
- }), t[42] = pJ, t[43] = mJ, t[44] = hJ, t[45] = gJ) : gJ = t[45];
34740
- let _J;
34741
- return t[46] !== dJ || t[47] !== fJ || t[48] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)("div", {
34746
+ }), t[42] = mJ, t[43] = hJ, t[44] = gJ, t[45] = _J) : _J = t[45];
34747
+ let vJ;
34748
+ return t[46] !== fJ || t[47] !== pJ || t[48] !== _J ? (vJ = (0, import_jsx_runtime.jsxs)("div", {
34742
34749
  className: "flex flex-col gap-2 min-w-full w-fit",
34743
34750
  children: [
34744
- dJ,
34745
34751
  fJ,
34746
- gJ
34752
+ pJ,
34753
+ _J
34747
34754
  ]
34748
- }), t[46] = dJ, t[47] = fJ, t[48] = gJ, t[49] = _J) : _J = t[49], _J;
34755
+ }), t[46] = fJ, t[47] = pJ, t[48] = _J, t[49] = vJ) : vJ = t[49], vJ;
34749
34756
  };
34750
34757
  function lastLine(e) {
34751
34758
  var _a2, _b;
@@ -36181,14 +36188,14 @@ ${d}`,
36181
36188
  Q
36182
36189
  ]
36183
36190
  }), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
36184
- let sJ;
36185
- return t[36] !== I || t[37] !== $ ? (sJ = (0, import_jsx_runtime.jsxs)("div", {
36191
+ let cJ;
36192
+ return t[36] !== I || t[37] !== $ ? (cJ = (0, import_jsx_runtime.jsxs)("div", {
36186
36193
  className: "flex flex-col gap-3",
36187
36194
  children: [
36188
36195
  I,
36189
36196
  $
36190
36197
  ]
36191
- }), t[36] = I, t[37] = $, t[38] = sJ) : sJ = t[38], sJ;
36198
+ }), t[36] = I, t[37] = $, t[38] = cJ) : cJ = t[38], cJ;
36192
36199
  };
36193
36200
  SlideSidebar = (e) => {
36194
36201
  let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: a, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
@@ -36313,7 +36320,7 @@ ${d}`,
36313
36320
  return Logger.warn("Failed to get version from mount config"), null;
36314
36321
  }
36315
36322
  }
36316
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.16-dev23");
36323
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.16-dev25");
36317
36324
  showCodeInRunModeAtom = atom(true);
36318
36325
  atom(null);
36319
36326
  var import_compiler_runtime = require_compiler_runtime();
@@ -36341,131 +36348,132 @@ ${d}`,
36341
36348
  }
36342
36349
  });
36343
36350
  export {
36344
- ContextAwarePanelItem as $,
36345
- EmotionCacheProvider as $t,
36346
- prettifyRowColumnCount as A,
36347
- loadTableData as At,
36348
- useSelectList as B,
36349
- dateToLocalISOTime as Bt,
36350
- Filenames as C,
36351
- ColumnChartContext as Ct,
36352
- EmptyState as D,
36353
- usePrevious as Dt,
36354
- ColumnPreviewContainer as E,
36355
- useIntersectionObserver as Et,
36356
- ContextMenuContent as F,
36357
- getMimeValues as Ft,
36358
- ComboboxItem as G,
36359
- ChartErrorState as Gt,
36360
- DatePicker as H,
36361
- TabsContent as Ht,
36362
- ContextMenuItem as I,
36363
- isNullishFilter as It,
36364
- CommandInput as J,
36365
- LazyVegaEmbed as Jt,
36366
- Command as K,
36367
- ChartInfoState as Kt,
36368
- ContextMenuSeparator as L,
36369
- Maps as Lt,
36370
- getColumnCountForDisplay as M,
36371
- SELECT_COLUMN_ID as Mt,
36372
- getUserColumnVisibilityCounts as N,
36373
- TOO_MANY_ROWS as Nt,
36374
- ErrorState as O,
36375
- getPageIndexForRow as Ot,
36376
- ContextMenu as P,
36377
- toFieldTypes as Pt,
36378
- smartMatch as Q,
36379
- HtmlOutput as Qt,
36380
- ContextMenuTrigger as R,
36381
- dateToLocalISODate as Rt,
36382
- Progress as S,
36383
- renderCellValue as St,
36384
- ColumnName as T,
36385
- DelayMount as Tt,
36386
- DateRangePicker as U,
36387
- TabsList as Ut,
36388
- CompactChipRow as V,
36389
- Tabs as Vt,
36390
- Combobox as W,
36391
- TabsTrigger as Wt,
36392
- CommandList as X,
36393
- RenderTextWithLinks as Xt,
36394
- CommandItem as Y,
36395
- useOverflowDetection as Yt,
36396
- CommandSeparator as Z,
36397
- Kbd as Zt,
36351
+ smartMatch as $,
36352
+ HtmlOutput as $t,
36353
+ LoadingState as A,
36354
+ loadTableAndRawData as At,
36355
+ useInternalStateWithSync as B,
36356
+ dateToLocalISODateTime as Bt,
36357
+ Progress as C,
36358
+ renderCellValue as Ct,
36359
+ ColumnPreviewContainer as D,
36360
+ useIntersectionObserver as Dt,
36361
+ ColumnName as E,
36362
+ DelayMount as Et,
36363
+ ContextMenu as F,
36364
+ toFieldTypes as Ft,
36365
+ Combobox as G,
36366
+ TabsTrigger as Gt,
36367
+ CompactChipRow as H,
36368
+ Tabs as Ht,
36369
+ ContextMenuContent as I,
36370
+ getMimeValues as It,
36371
+ CommandEmpty as J,
36372
+ ChartLoadingState as Jt,
36373
+ ComboboxItem as K,
36374
+ ChartErrorState as Kt,
36375
+ ContextMenuItem as L,
36376
+ isNullishFilter as Lt,
36377
+ prettifyRowCount as M,
36378
+ INDEX_COLUMN_NAME as Mt,
36379
+ getColumnCountForDisplay as N,
36380
+ SELECT_COLUMN_ID as Nt,
36381
+ EmptyState as O,
36382
+ usePrevious as Ot,
36383
+ getUserColumnVisibilityCounts as P,
36384
+ TOO_MANY_ROWS as Pt,
36385
+ CommandSeparator as Q,
36386
+ Kbd as Qt,
36387
+ ContextMenuSeparator as R,
36388
+ Maps as Rt,
36389
+ downloadHTMLAsImage as S,
36390
+ inferFieldTypes as St,
36391
+ downloadSizeLimitAtom as T,
36392
+ ColumnChartSpecModel as Tt,
36393
+ DatePicker as U,
36394
+ TabsContent as Ut,
36395
+ useSelectList as V,
36396
+ dateToLocalISOTime as Vt,
36397
+ DateRangePicker as W,
36398
+ TabsList as Wt,
36399
+ CommandItem as X,
36400
+ useOverflowDetection as Xt,
36401
+ CommandInput as Y,
36402
+ LazyVegaEmbed as Yt,
36403
+ CommandList as Z,
36404
+ RenderTextWithLinks as Zt,
36398
36405
  InstallPackageButton as _,
36399
36406
  __tla,
36400
- ChevronLeft as _n,
36401
- TableHeader as _t,
36407
+ ChevronsDownUp as _n,
36408
+ TableHead as _t,
36402
36409
  DEFAULT_DECK_VERTICAL_ALIGN as a,
36403
- TextWrap as an,
36404
- SlotNames as at,
36410
+ $fae977aafc393c5c$export$6b862160d295c8e as an,
36411
+ isCellAwareAtom as at,
36405
36412
  downloadByURL as b,
36406
- generateColumns as bt,
36413
+ NAMELESS_COLUMN_PREFIX as bt,
36407
36414
  SlideSidebar as c,
36408
- EyeOff as cn,
36409
- Panel as ct,
36415
+ Funnel as cn,
36416
+ Toggle as ct,
36410
36417
  RadioGroup as d,
36411
- Download as dn,
36412
- Fill as dt,
36413
- safeLocale as en,
36414
- PANEL_TYPES as et,
36418
+ Ellipsis as dn,
36419
+ PanelResizeHandle as dt,
36420
+ EmotionCacheProvider as en,
36421
+ ContextAwarePanelItem as et,
36415
36422
  RadioGroupItem as f,
36416
- Code as fn,
36417
- Provider$1 as ft,
36423
+ Download as fn,
36424
+ Fill as ft,
36418
36425
  DataTable as g,
36419
- ChevronsDownUp as gn,
36420
- TableHead as gt,
36426
+ ChevronsLeft as gn,
36427
+ TableCell as gt,
36421
36428
  OutputRenderer as h,
36422
- ChevronsLeft as hn,
36423
- TableCell as ht,
36429
+ ChevronsRight as hn,
36430
+ TableBody as ht,
36424
36431
  DEFAULT_DECK_TRANSITION as i,
36425
- $fae977aafc393c5c$export$6b862160d295c8e as in,
36426
- isCellAwareAtom as it,
36427
- prettifyRowCount as j,
36428
- INDEX_COLUMN_NAME as jt,
36429
- LoadingState as k,
36430
- loadTableAndRawData as kt,
36432
+ $fae977aafc393c5c$export$588937bcd60ade55 as in,
36433
+ contextAwarePanelType as it,
36434
+ prettifyRowColumnCount as j,
36435
+ loadTableData as jt,
36436
+ ErrorState as k,
36437
+ getPageIndexForRow as kt,
36431
36438
  Slide as l,
36432
- Expand as ln,
36433
- PanelGroup as lt,
36439
+ EyeOff as ln,
36440
+ Panel as lt,
36434
36441
  OutputArea as m,
36435
- ChevronsRight as mn,
36436
- TableBody as mt,
36442
+ ChevronsUpDown as mn,
36443
+ Table as mt,
36437
36444
  marimoVersionAtom as n,
36438
- isRecord as nn,
36439
- contextAwarePanelOwner as nt,
36445
+ hasFunctionProperty as nn,
36446
+ contextAwarePanelOpen as nt,
36440
36447
  DEFAULT_SLIDE_TYPE as o,
36441
- GripHorizontal as on,
36442
- slotsController as ot,
36448
+ TextWrap as on,
36449
+ SlotNames as ot,
36443
36450
  JsonOutput as p,
36444
- ChevronsUpDown as pn,
36445
- Table as pt,
36446
- CommandEmpty as q,
36447
- ChartLoadingState as qt,
36451
+ Code as pn,
36452
+ Provider$1 as pt,
36453
+ Command as q,
36454
+ ChartInfoState as qt,
36448
36455
  showCodeInRunModeAtom as r,
36449
- $fae977aafc393c5c$export$588937bcd60ade55 as rn,
36450
- contextAwarePanelType as rt,
36456
+ isRecord as rn,
36457
+ contextAwarePanelOwner as rt,
36451
36458
  SLIDE_TYPE_OPTIONS_BY_VALUE as s,
36452
- Funnel as sn,
36453
- Toggle as st,
36459
+ GripHorizontal as sn,
36460
+ slotsController as st,
36454
36461
  useNotebookCodeAvailable as t,
36455
- hasFunctionProperty as tn,
36456
- contextAwarePanelOpen as tt,
36462
+ safeLocale as tn,
36463
+ PANEL_TYPES as tt,
36457
36464
  Switch as u,
36458
- Ellipsis as un,
36459
- PanelResizeHandle as ut,
36465
+ Expand as un,
36466
+ PanelGroup as ut,
36460
36467
  ADD_PRINTING_CLASS as v,
36461
- ArrowDownWideNarrow as vn,
36462
- TableRow as vt,
36463
- downloadSizeLimitAtom as w,
36464
- ColumnChartSpecModel as wt,
36465
- downloadHTMLAsImage as x,
36466
- inferFieldTypes as xt,
36468
+ ChevronLeft as vn,
36469
+ TableHeader as vt,
36470
+ Filenames as w,
36471
+ ColumnChartContext as wt,
36472
+ downloadExportedFile as x,
36473
+ generateColumns as xt,
36467
36474
  downloadBlob as y,
36468
- NAMELESS_COLUMN_PREFIX as yt,
36469
- useInternalStateWithSync as z,
36470
- dateToLocalISODateTime as zt
36475
+ ArrowDownWideNarrow as yn,
36476
+ TableRow as yt,
36477
+ ContextMenuTrigger as z,
36478
+ dateToLocalISODate as zt
36471
36479
  };