@marimo-team/islands 0.23.15-dev11 → 0.23.15-dev12

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.
package/dist/main.js CHANGED
@@ -26,7 +26,7 @@ import { $ as reducer, $t as isUninstantiated, A as ChevronDownIcon, An as Item$
26
26
  import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
27
27
  import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist--2Bqjvs0.js";
28
28
  import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-Cz-Bj1JI.js";
29
- import { $ as PANEL_TYPES, $t as hasFunctionProperty, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as Tabs, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as isNullishFilter, G as Command, Gt as ChartInfoState, H as DateRangePicker, Ht as TabsList, I as ContextMenuSeparator, It as Maps, J as CommandItem, Jt as useOverflowDetection, K as CommandEmpty, Kt as ChartLoadingState, L as ContextMenuTrigger, Lt as dateToLocalISODate, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as EmotionCacheProvider, R as useInternalStateWithSync, Rt as dateToLocalISODateTime, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsTrigger, V as DatePicker, Vt as TabsContent, W as ComboboxItem, Wt as ChartErrorState, X as CommandSeparator, Xt as Kbd, Y as CommandList, Yt as RenderTextWithLinks, Z as smartMatch, Zt as HtmlOutput, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as isRecord, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as LazyVegaEmbed, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISOTime, __tla as __tla_2 } from "./code-visibility-HO1U02IJ.js";
29
+ import { $ as ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as ArrowDownWideNarrow, _t as TableHeader, an as GripHorizontal, at as SlotNames, b as downloadByURL, bt as generateColumns, d as RadioGroup, dn as Code, dt as Fill, en as hasFunctionProperty, et as PANEL_TYPES, f as RadioGroupItem, fn as ChevronsUpDown, ft as Provider$1, g as DataTable, gn as ChevronLeft, gt as TableHead, h as OutputRenderer, hn as ChevronsDownUp, ht as TableCell, in as TextWrap, it as isCellAwareAtom, j as prettifyRowCount, jt as INDEX_COLUMN_NAME, k as LoadingState, kt as loadTableAndRawData, l as Slide, ln as Ellipsis, m as OutputArea, mn as ChevronsLeft, mt as TableBody, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$588937bcd60ade55, nt as contextAwarePanelOwner, on as Funnel, ot as slotsController, p as JsonOutput, pn as ChevronsRight, pt as Table, q as CommandEmpty, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as $fae977aafc393c5c$export$6b862160d295c8e, rt as contextAwarePanelType, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as EyeOff, st as Toggle, t as useNotebookCodeAvailable, tn as isRecord, tt as contextAwarePanelOpen, u as Switch, un as Download, v as ADD_PRINTING_CLASS, vt as TableRow, w as downloadSizeLimitAtom, wt as ColumnChartSpecModel, x as downloadHTMLAsImage, xt as inferFieldTypes, y as downloadBlob, yt as NAMELESS_COLUMN_PREFIX, z as useInternalStateWithSync, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-8_NQtuXE.js";
30
30
  import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-DegSo0lV.js";
31
31
  import { t as Check } from "./check-C9OoNtR4.js";
32
32
  import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-Dq_j3Rxw.js";
@@ -7395,33 +7395,33 @@ let __tla = Promise.all([
7395
7395
  }), B = C({
7396
7396
  height: 0,
7397
7397
  width: 0
7398
- }), H = U(), W = U(), G = C(0), q = C(null), kW = C({
7398
+ }), H = U(), W = U(), G = C(0), q = C(null), jW = C({
7399
7399
  column: 0,
7400
7400
  row: 0
7401
- }), AW = U(), Z = U(), jW = C(false), MW = C(0), NW = C(true), PW = C(false), FW = C(false);
7402
- Y(x(b, $(MW), P(([e2, r2]) => !!r2)), () => {
7403
- D(NW, false);
7404
- }), Y(x(ut(b, NW, B, z, MW, PW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
7405
- D(PW, true), Ue(1, () => {
7401
+ }), MW = U(), Z = U(), NW = C(false), PW = C(0), FW = C(true), IW = C(false), LW = C(false);
7402
+ Y(x(b, $(PW), P(([e2, r2]) => !!r2)), () => {
7403
+ D(FW, false);
7404
+ }), Y(x(ut(b, FW, B, z, PW, IW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
7405
+ D(IW, true), Ue(1, () => {
7406
7406
  D(H, e2);
7407
7407
  }), Et(x(h), () => {
7408
7408
  D(r, [
7409
7409
  0,
7410
7410
  0
7411
- ]), D(NW, true);
7411
+ ]), D(FW, true);
7412
7412
  });
7413
7413
  }), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
7414
- e2 && (D(z, e2.viewport), D(B, e2.item), D(kW, e2.gap), e2.scrollTop > 0 && (D(jW, true), Et(x(h, Kt(1)), (e3) => {
7415
- D(jW, false);
7414
+ e2 && (D(z, e2.viewport), D(B, e2.item), D(jW, e2.gap), e2.scrollTop > 0 && (D(NW, true), Et(x(h, Kt(1)), (e3) => {
7415
+ D(NW, false);
7416
7416
  }), D(m, {
7417
7417
  top: e2.scrollTop
7418
7418
  })));
7419
- }), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(kW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
7419
+ }), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(jW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
7420
7420
  gap: c2,
7421
7421
  item: r2,
7422
7422
  scrollTop: l2,
7423
7423
  viewport: e2
7424
- }))), AW), F(x(ut(V(I), l, V(kW, Or), V(B, xe), V(z, xe), V(q), V(L), V(jW), V(NW), V(MW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
7424
+ }))), MW), F(x(ut(V(I), l, V(jW, Or), V(B, xe), V(z, xe), V(q), V(L), V(NW), V(FW), V(PW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
7425
7425
  let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
7426
7426
  if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
7427
7427
  if (y2 === 0) {
@@ -7440,23 +7440,23 @@ let __tla = Promise.all([
7440
7440
  offsetTop: j2,
7441
7441
  top: j2
7442
7442
  };
7443
- })), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, kW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
7443
+ })), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, jW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
7444
7444
  let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
7445
7445
  return [
7446
7446
  d2,
7447
7447
  u2
7448
7448
  ];
7449
7449
  }), J(ce)), r);
7450
- let IW = C(false);
7451
- F(x(h, $(IW), k(([e2, r2]) => r2 || e2 !== 0)), IW);
7452
- let LW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(IW), P(([[e2, r2], c2]) => {
7450
+ let RW = C(false);
7451
+ F(x(h, $(RW), k(([e2, r2]) => r2 || e2 !== 0)), RW);
7452
+ let zW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(RW), P(([[e2, r2], c2]) => {
7453
7453
  let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
7454
7454
  return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
7455
- }), k(([[, e2]]) => e2 - 1), J())), RW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), zW = bt(x(V(R), $(jW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
7455
+ }), k(([[, e2]]) => e2 - 1), J())), BW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), VW = bt(x(V(R), $(NW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
7456
7456
  endIndex: e2[e2.length - 1].index,
7457
7457
  startIndex: e2[0].index
7458
7458
  })), J(An), Gt(0)));
7459
- F(zW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, kW), k(([e2, r2, c2, l2, u2]) => {
7459
+ F(VW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, jW), k(([e2, r2, c2, l2, u2]) => {
7460
7460
  let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
7461
7461
  h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
7462
7462
  let g2 = Me(r2, u2, c2, h2);
@@ -7465,7 +7465,7 @@ let __tla = Promise.all([
7465
7465
  top: g2
7466
7466
  };
7467
7467
  })), m);
7468
- let BW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
7468
+ let HW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
7469
7469
  return F(x(j, k((e2) => ({
7470
7470
  height: e2.visibleHeight,
7471
7471
  width: e2.visibleWidth
@@ -7474,7 +7474,7 @@ let __tla = Promise.all([
7474
7474
  data: q,
7475
7475
  deviation: G,
7476
7476
  footerHeight: u,
7477
- gap: kW,
7477
+ gap: jW,
7478
7478
  headerHeight: d,
7479
7479
  increaseViewportBy: e,
7480
7480
  initialItemCount: L,
@@ -7496,16 +7496,16 @@ let __tla = Promise.all([
7496
7496
  windowViewportRect: j,
7497
7497
  ...y,
7498
7498
  gridState: R,
7499
- horizontalDirection: FW,
7500
- initialTopMostItemIndex: MW,
7501
- totalListHeight: BW,
7499
+ horizontalDirection: LW,
7500
+ initialTopMostItemIndex: PW,
7501
+ totalListHeight: HW,
7502
7502
  ...v,
7503
- endReached: LW,
7503
+ endReached: zW,
7504
7504
  propsReady: S,
7505
- rangeChanged: zW,
7506
- startReached: RW,
7507
- stateChanged: AW,
7508
- stateRestoreInProgress: jW,
7505
+ rangeChanged: VW,
7506
+ startReached: BW,
7507
+ stateChanged: MW,
7508
+ stateRestoreInProgress: NW,
7509
7509
  ...M
7510
7510
  };
7511
7511
  }, tt(je, It, he, Zn, _t, qe, Wt));
@@ -7783,22 +7783,22 @@ let __tla = Promise.all([
7783
7783
  let r2 = Array.isArray(e2) ? e2 : [];
7784
7784
  f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
7785
7785
  }, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
7786
- let kW = q, AW;
7786
+ let jW = q, MW;
7787
7787
  if (r[13] !== G.bulkActions) {
7788
- if (AW = G.bulkActions.map(_temp$27), AW.length > 0) {
7788
+ if (MW = G.bulkActions.map(_temp$27), MW.length > 0) {
7789
7789
  let e2;
7790
7790
  r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
7791
7791
  "data-slot": "select-separator"
7792
- }, "_bulk_separator"), r[15] = e2) : e2 = r[15], AW.push(e2);
7792
+ }, "_bulk_separator"), r[15] = e2) : e2 = r[15], MW.push(e2);
7793
7793
  }
7794
- r[13] = G.bulkActions, r[14] = AW;
7795
- } else AW = r[14];
7794
+ r[13] = G.bulkActions, r[14] = MW;
7795
+ } else MW = r[14];
7796
7796
  let Z;
7797
7797
  r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (Z = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
7798
7798
  "data-slot": "select-separator"
7799
7799
  }, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = Z) : Z = r[18];
7800
- let jW = Z, MW;
7801
- r[19] !== AW || r[20] !== G || r[21] !== jW || r[22] !== w || r[23] !== B || r[24] !== H ? (MW = () => {
7800
+ let NW = Z, PW;
7801
+ r[19] !== MW || r[20] !== G || r[21] !== NW || r[22] !== w || r[23] !== B || r[24] !== H ? (PW = () => {
7802
7802
  if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
7803
7803
  "data-slot": "select-list",
7804
7804
  style: {
@@ -7810,8 +7810,8 @@ let __tla = Promise.all([
7810
7810
  let r2 = G.visibleOptions[e3];
7811
7811
  return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
7812
7812
  children: [
7813
- e3 === 0 && AW,
7814
- jW(e3),
7813
+ e3 === 0 && MW,
7814
+ NW(e3),
7815
7815
  (0, import_jsx_runtime.jsx)(OptionRow, {
7816
7816
  option: r2,
7817
7817
  checked: G.isChecked(r2.value),
@@ -7822,7 +7822,7 @@ let __tla = Promise.all([
7822
7822
  }
7823
7823
  });
7824
7824
  let e2 = G.visibleOptions.flatMap((e3, r2) => {
7825
- let c2 = jW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
7825
+ let c2 = NW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
7826
7826
  option: e3,
7827
7827
  checked: G.isChecked(e3.value),
7828
7828
  renderOption: w
@@ -7836,13 +7836,13 @@ let __tla = Promise.all([
7836
7836
  });
7837
7837
  return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
7838
7838
  children: [
7839
- AW,
7839
+ MW,
7840
7840
  e2
7841
7841
  ]
7842
7842
  });
7843
- }, r[19] = AW, r[20] = G, r[21] = jW, r[22] = w, r[23] = B, r[24] = H, r[25] = MW) : MW = r[25];
7844
- let NW = MW, PW;
7845
- r[26] !== G.labelOf || r[27] !== I ? (PW = (e2) => {
7843
+ }, r[19] = MW, r[20] = G, r[21] = NW, r[22] = w, r[23] = B, r[24] = H, r[25] = PW) : PW = r[25];
7844
+ let FW = PW, IW;
7845
+ r[26] !== G.labelOf || r[27] !== I ? (IW = (e2) => {
7846
7846
  let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
7847
7847
  e2
7848
7848
  ];
@@ -7853,46 +7853,46 @@ let __tla = Promise.all([
7853
7853
  items: r2.map(G.labelOf),
7854
7854
  max: 3
7855
7855
  });
7856
- }, r[26] = G.labelOf, r[27] = I, r[28] = PW) : PW = r[28];
7857
- let FW = PW, IW = e["data-testid"], LW;
7858
- r[29] === G ? LW = r[30] : (LW = (e2) => G.labelOf(e2), r[29] = G, r[30] = LW);
7859
- let RW = M ? FW : void 0, zW;
7860
- r[31] !== b || r[32] !== R ? (zW = cn({
7856
+ }, r[26] = G.labelOf, r[27] = I, r[28] = IW) : IW = r[28];
7857
+ let LW = IW, RW = e["data-testid"], zW;
7858
+ r[29] === G ? zW = r[30] : (zW = (e2) => G.labelOf(e2), r[29] = G, r[30] = zW);
7859
+ let BW = M ? LW : void 0, VW;
7860
+ r[31] !== b || r[32] !== R ? (VW = cn({
7861
7861
  "w-full": R
7862
- }, b), r[31] = b, r[32] = R, r[33] = zW) : zW = r[33];
7863
- let BW = G.searchQuery, VW = G.setSearchQuery, HW = G.open, UW = G.setOpen, WW;
7864
- r[34] === z ? WW = r[35] : (WW = renderSlot(z), r[34] = z, r[35] = WW);
7865
- let GW;
7866
- r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== IW || r[44] !== LW || r[45] !== RW || r[46] !== zW || r[47] !== WW ? (GW = {
7862
+ }, b), r[31] = b, r[32] = R, r[33] = VW) : VW = r[33];
7863
+ let HW = G.searchQuery, UW = G.setSearchQuery, WW = G.open, GW = G.setOpen, KW;
7864
+ r[34] === z ? KW = r[35] : (KW = renderSlot(z), r[34] = z, r[35] = KW);
7865
+ let qW;
7866
+ r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== RW || r[44] !== zW || r[45] !== BW || r[46] !== VW || r[47] !== KW ? (qW = {
7867
7867
  "data-slot": "select-root",
7868
- "data-testid": IW,
7869
- displayValue: LW,
7870
- renderValue: RW,
7868
+ "data-testid": RW,
7869
+ displayValue: zW,
7870
+ renderValue: BW,
7871
7871
  placeholder: I,
7872
- className: zW,
7872
+ className: VW,
7873
7873
  shouldFilter: false,
7874
- search: BW,
7875
- onSearchChange: VW,
7876
- open: HW,
7877
- onOpenChange: UW,
7878
- emptyState: WW,
7874
+ search: HW,
7875
+ onSearchChange: UW,
7876
+ open: WW,
7877
+ onOpenChange: GW,
7878
+ emptyState: KW,
7879
7879
  disabled: L,
7880
7880
  id: S
7881
- }, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = IW, r[44] = LW, r[45] = RW, r[46] = zW, r[47] = WW, r[48] = GW) : GW = r[48];
7882
- let KW = GW, qW;
7883
- return r[49] !== KW || r[50] !== kW || r[51] !== d || r[52] !== NW || r[53] !== l ? (qW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
7884
- ...KW,
7881
+ }, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = RW, r[44] = zW, r[45] = BW, r[46] = VW, r[47] = KW, r[48] = qW) : qW = r[48];
7882
+ let JW = qW, YW;
7883
+ return r[49] !== JW || r[50] !== jW || r[51] !== d || r[52] !== FW || r[53] !== l ? (YW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
7884
+ ...JW,
7885
7885
  multiple: true,
7886
7886
  value: l,
7887
- onValueChange: kW,
7888
- children: NW()
7887
+ onValueChange: jW,
7888
+ children: FW()
7889
7889
  }) : (0, import_jsx_runtime.jsx)(Combobox, {
7890
- ...KW,
7890
+ ...JW,
7891
7891
  multiple: false,
7892
7892
  value: l,
7893
- onValueChange: kW,
7894
- children: NW()
7895
- }), r[49] = KW, r[50] = kW, r[51] = d, r[52] = NW, r[53] = l, r[54] = qW) : qW = r[54], qW;
7893
+ onValueChange: jW,
7894
+ children: FW()
7895
+ }), r[49] = JW, r[50] = jW, r[51] = d, r[52] = FW, r[53] = l, r[54] = YW) : YW = r[54], YW;
7896
7896
  }
7897
7897
  function _temp$27(e) {
7898
7898
  let r = "enabled" in e ? !e.enabled : e.items.length === 0;
@@ -10001,7 +10001,7 @@ let __tla = Promise.all([
10001
10001
  let m2 = get(l, e2);
10002
10002
  if (m2) {
10003
10003
  let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
10004
- isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : kW(e2, l2), f.mount && w();
10004
+ isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : jW(e2, l2), f.mount && w();
10005
10005
  }
10006
10006
  }, I = (e2, d2, f2, p2, m2) => {
10007
10007
  let h2 = false, v2 = false, y2 = {
@@ -10074,14 +10074,14 @@ let __tla = Promise.all([
10074
10074
  }, H = () => {
10075
10075
  for (let e2 of p.unMount) {
10076
10076
  let r2 = get(l, e2);
10077
- r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && zW(e2);
10077
+ r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && VW(e2);
10078
10078
  }
10079
10079
  p.unMount = /* @__PURE__ */ new Set();
10080
- }, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(PW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
10080
+ }, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(IW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
10081
10081
  ...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
10082
10082
  [e2]: r2
10083
10083
  } : r2
10084
- }, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), kW = (e2, r2, c2 = {}) => {
10084
+ }, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), jW = (e2, r2, c2 = {}) => {
10085
10085
  let u2 = get(l, e2), f2 = r2;
10086
10086
  if (u2) {
10087
10087
  let c3 = u2._f;
@@ -10094,11 +10094,11 @@ let __tla = Promise.all([
10094
10094
  }
10095
10095
  })));
10096
10096
  }
10097
- (c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && NW(e2);
10098
- }, AW = (e2, r2, c2) => {
10097
+ (c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && FW(e2);
10098
+ }, MW = (e2, r2, c2) => {
10099
10099
  for (let u2 in r2) {
10100
10100
  let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
10101
- (p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? AW(f2, d2, c2) : kW(f2, d2, c2);
10101
+ (p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? MW(f2, d2, c2) : jW(f2, d2, c2);
10102
10102
  }
10103
10103
  }, Z = (e2, r2, m2 = {}) => {
10104
10104
  let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
@@ -10111,7 +10111,7 @@ let __tla = Promise.all([
10111
10111
  name: e2,
10112
10112
  dirtyFields: getDirtyFields(u, d),
10113
10113
  isDirty: W(e2, y2)
10114
- })) : h2 && !h2._f && !isNullOrUndefined(y2) ? AW(e2, y2, m2) : kW(e2, y2, m2), isWatched(e2, p) && _.state.next({
10114
+ })) : h2 && !h2._f && !isNullOrUndefined(y2) ? MW(e2, y2, m2) : jW(e2, y2, m2), isWatched(e2, p) && _.state.next({
10115
10115
  ...c
10116
10116
  }), _.values.next({
10117
10117
  name: f.mount ? e2 : void 0,
@@ -10119,7 +10119,7 @@ let __tla = Promise.all([
10119
10119
  ...d
10120
10120
  }
10121
10121
  });
10122
- }, jW = async (e2) => {
10122
+ }, NW = async (e2) => {
10123
10123
  f.mount = true;
10124
10124
  let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
10125
10125
  S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
@@ -10153,11 +10153,11 @@ let __tla = Promise.all([
10153
10153
  ], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
10154
10154
  h2
10155
10155
  ]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
10156
- S2 && (E2._f.deps && NW(E2._f.deps), L(h2, f2, u3, G2));
10156
+ S2 && (E2._f.deps && FW(E2._f.deps), L(h2, f2, u3, G2));
10157
10157
  }
10158
- }, MW = (e2, r2) => {
10158
+ }, PW = (e2, r2) => {
10159
10159
  if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
10160
- }, NW = async (e2, u2 = {}) => {
10160
+ }, FW = async (e2, u2 = {}) => {
10161
10161
  let d2, f2, m2 = convertToArrayPayload(e2);
10162
10162
  if (r.resolver) {
10163
10163
  let r2 = await z(isUndefined(e2) ? e2 : m2);
@@ -10176,23 +10176,23 @@ let __tla = Promise.all([
10176
10176
  isValid: d2
10177
10177
  } : {},
10178
10178
  errors: c.errors
10179
- }), u2.shouldFocus && !f2 && iterateFieldsByAction(l, MW, e2 ? m2 : p.mount), f2;
10180
- }, PW = (e2) => {
10179
+ }), u2.shouldFocus && !f2 && iterateFieldsByAction(l, PW, e2 ? m2 : p.mount), f2;
10180
+ }, IW = (e2) => {
10181
10181
  let r2 = {
10182
10182
  ...f.mount ? d : u
10183
10183
  };
10184
10184
  return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
10185
- }, FW = (e2, r2) => ({
10185
+ }, LW = (e2, r2) => ({
10186
10186
  invalid: !!get((r2 || c).errors, e2),
10187
10187
  isDirty: !!get((r2 || c).dirtyFields, e2),
10188
10188
  error: get((r2 || c).errors, e2),
10189
10189
  isValidating: !!get(c.validatingFields, e2),
10190
10190
  isTouched: !!get((r2 || c).touchedFields, e2)
10191
- }), IW = (e2) => {
10191
+ }), RW = (e2) => {
10192
10192
  e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
10193
10193
  errors: e2 ? c.errors : {}
10194
10194
  });
10195
- }, LW = (e2, r2, u2) => {
10195
+ }, zW = (e2, r2, u2) => {
10196
10196
  let d2 = (get(l, e2, {
10197
10197
  _f: {}
10198
10198
  })._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
@@ -10205,9 +10205,9 @@ let __tla = Promise.all([
10205
10205
  errors: c.errors,
10206
10206
  isValid: false
10207
10207
  }), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
10208
- }, RW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
10208
+ }, BW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
10209
10209
  next: (c2) => e2(G(void 0, r2), c2)
10210
- }) : G(e2, r2, true), zW = (e2, f2 = {}) => {
10210
+ }) : G(e2, r2, true), VW = (e2, f2 = {}) => {
10211
10211
  for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
10212
10212
  _.values.next({
10213
10213
  values: {
@@ -10219,9 +10219,9 @@ let __tla = Promise.all([
10219
10219
  isDirty: W()
10220
10220
  } : {}
10221
10221
  }), !f2.keepIsValid && w();
10222
- }, BW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
10222
+ }, HW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
10223
10223
  (isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
10224
- }, VW = (e2, c2 = {}) => {
10224
+ }, UW = (e2, c2 = {}) => {
10225
10225
  let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
10226
10226
  return set(l, e2, {
10227
10227
  ...d2 || {},
@@ -10235,7 +10235,7 @@ let __tla = Promise.all([
10235
10235
  mount: true,
10236
10236
  ...c2
10237
10237
  }
10238
- }), p.mount.add(e2), d2 ? BW({
10238
+ }), p.mount.add(e2), d2 ? HW({
10239
10239
  field: d2,
10240
10240
  disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
10241
10241
  name: e2
@@ -10252,11 +10252,11 @@ let __tla = Promise.all([
10252
10252
  pattern: getRuleValue(c2.pattern)
10253
10253
  } : {},
10254
10254
  name: e2,
10255
- onChange: jW,
10256
- onBlur: jW,
10255
+ onChange: NW,
10256
+ onBlur: NW,
10257
10257
  ref: (m3) => {
10258
10258
  if (m3) {
10259
- VW(e2, c2), d2 = get(l, e2);
10259
+ UW(e2, c2), d2 = get(l, e2);
10260
10260
  let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
10261
10261
  if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
10262
10262
  set(l, e2, {
@@ -10282,7 +10282,7 @@ let __tla = Promise.all([
10282
10282
  } else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
10283
10283
  }
10284
10284
  };
10285
- }, HW = () => r.shouldFocusError && iterateFieldsByAction(l, MW, p.mount), UW = (e2) => {
10285
+ }, WW = () => r.shouldFocusError && iterateFieldsByAction(l, PW, p.mount), GW = (e2) => {
10286
10286
  isBoolean(e2) && (_.state.next({
10287
10287
  disabled: e2
10288
10288
  }), iterateFieldsByAction(l, (r2, c2) => {
@@ -10291,7 +10291,7 @@ let __tla = Promise.all([
10291
10291
  r3.disabled = u2._f.disabled || e2;
10292
10292
  }));
10293
10293
  }, 0, false));
10294
- }, WW = (e2, u2) => async (f2) => {
10294
+ }, KW = (e2, u2) => async (f2) => {
10295
10295
  let m2;
10296
10296
  f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
10297
10297
  let h2 = cloneObject(d);
@@ -10313,7 +10313,7 @@ let __tla = Promise.all([
10313
10313
  }
10314
10314
  } else u2 && await u2({
10315
10315
  ...c.errors
10316
- }, f2), HW(), setTimeout(HW);
10316
+ }, f2), WW(), setTimeout(WW);
10317
10317
  if (_.state.next({
10318
10318
  isSubmitted: true,
10319
10319
  isSubmitting: false,
@@ -10321,11 +10321,11 @@ let __tla = Promise.all([
10321
10321
  submitCount: c.submitCount + 1,
10322
10322
  errors: c.errors
10323
10323
  }), m2) throw m2;
10324
- }, GW = (e2, r2 = {}) => {
10324
+ }, qW = (e2, r2 = {}) => {
10325
10325
  get(l, e2) && (isUndefined(r2.defaultValue) ? Z(e2, cloneObject(get(u, e2))) : (Z(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
10326
10326
  ...c
10327
10327
  }));
10328
- }, KW = (e2, m2 = {}) => {
10328
+ }, JW = (e2, m2 = {}) => {
10329
10329
  let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
10330
10330
  if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
10331
10331
  if (m2.keepDirtyValues) {
@@ -10378,25 +10378,25 @@ let __tla = Promise.all([
10378
10378
  isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
10379
10379
  isSubmitting: false
10380
10380
  });
10381
- }, qW = (e2, r2) => KW(isFunction$1(e2) ? e2(d) : e2, r2);
10381
+ }, YW = (e2, r2) => JW(isFunction$1(e2) ? e2(d) : e2, r2);
10382
10382
  return {
10383
10383
  control: {
10384
- register: VW,
10385
- unregister: zW,
10386
- getFieldState: FW,
10387
- handleSubmit: WW,
10388
- setError: LW,
10384
+ register: UW,
10385
+ unregister: VW,
10386
+ getFieldState: LW,
10387
+ handleSubmit: KW,
10388
+ setError: zW,
10389
10389
  _executeSchema: R,
10390
10390
  _getWatch: G,
10391
10391
  _getDirty: W,
10392
10392
  _updateValid: w,
10393
10393
  _removeUnmounted: H,
10394
10394
  _updateFieldArray: E,
10395
- _updateDisabledField: BW,
10395
+ _updateDisabledField: HW,
10396
10396
  _getFieldArray: q,
10397
- _reset: KW,
10397
+ _reset: JW,
10398
10398
  _resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
10399
- qW(e2, r.resetOptions), _.state.next({
10399
+ YW(e2, r.resetOptions), _.state.next({
10400
10400
  isLoading: false
10401
10401
  });
10402
10402
  }),
@@ -10406,7 +10406,7 @@ let __tla = Promise.all([
10406
10406
  ...e2
10407
10407
  };
10408
10408
  },
10409
- _disableForm: UW,
10409
+ _disableForm: GW,
10410
10410
  _subjects: _,
10411
10411
  _proxyFormState: g,
10412
10412
  _setErrors: j,
@@ -10447,17 +10447,17 @@ let __tla = Promise.all([
10447
10447
  };
10448
10448
  }
10449
10449
  },
10450
- trigger: NW,
10451
- register: VW,
10452
- handleSubmit: WW,
10453
- watch: RW,
10450
+ trigger: FW,
10451
+ register: UW,
10452
+ handleSubmit: KW,
10453
+ watch: BW,
10454
10454
  setValue: Z,
10455
- getValues: PW,
10456
- reset: qW,
10457
- resetField: GW,
10458
- clearErrors: IW,
10459
- unregister: zW,
10460
- setError: LW,
10455
+ getValues: IW,
10456
+ reset: YW,
10457
+ resetField: qW,
10458
+ clearErrors: RW,
10459
+ unregister: VW,
10460
+ setError: zW,
10461
10461
  setFocus: (e2, r2 = {}) => {
10462
10462
  let c2 = get(l, e2), u2 = c2 && c2._f;
10463
10463
  if (u2) {
@@ -10465,7 +10465,7 @@ let __tla = Promise.all([
10465
10465
  e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
10466
10466
  }
10467
10467
  },
10468
- getFieldState: FW
10468
+ getFieldState: LW
10469
10469
  };
10470
10470
  }
10471
10471
  function useForm(e = {}) {
@@ -16190,21 +16190,21 @@ ${c}
16190
16190
  _.pageSize,
16191
16191
  _.pageIndex
16192
16192
  ], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
16193
- let { data: W, error: G, isPending: q, isFetching: kW } = useAsyncData(z, H), AW = useAtomValue(downloadSizeLimitAtom), Z;
16194
- r[48] !== AW || r[49] !== e ? (Z = async () => !AW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = AW, r[49] = e, r[50] = Z) : Z = r[50];
16195
- let jW = e.showDownload, MW = e.get_size_bytes, NW = e.lazy, PW = e.totalRows, FW = useDeepCompareMemoize(w), IW = useDeepCompareMemoize(m), LW;
16196
- r[51] !== AW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== FW || r[58] !== IW ? (LW = [
16197
- AW,
16198
- jW,
16193
+ let { data: W, error: G, isPending: q, isFetching: jW } = useAsyncData(z, H), MW = useAtomValue(downloadSizeLimitAtom), Z;
16194
+ r[48] !== MW || r[49] !== e ? (Z = async () => !MW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = MW, r[49] = e, r[50] = Z) : Z = r[50];
16195
+ let NW = e.showDownload, PW = e.get_size_bytes, FW = e.lazy, IW = e.totalRows, LW = useDeepCompareMemoize(w), RW = useDeepCompareMemoize(m), zW;
16196
+ r[51] !== MW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== LW || r[58] !== RW ? (zW = [
16199
16197
  MW,
16200
16198
  NW,
16201
16199
  PW,
16202
- y,
16203
16200
  FW,
16204
- IW
16205
- ], r[51] = AW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = FW, r[58] = IW, r[59] = LW) : LW = r[59];
16206
- let { data: RW, isPending: zW } = useAsyncData(Z, LW), BW = RW ?? null, VW = !!AW && e.showDownload && zW, HW;
16207
- r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (HW = async (e2) => ({
16201
+ IW,
16202
+ y,
16203
+ LW,
16204
+ RW
16205
+ ], r[51] = MW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = LW, r[58] = RW, r[59] = zW) : zW = r[59];
16206
+ let { data: BW, isPending: VW } = useAsyncData(Z, zW), HW = BW ?? null, UW = !!MW && e.showDownload && VW, WW;
16207
+ r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (WW = async (e2) => ({
16208
16208
  rows: await loadTableData((await u({
16209
16209
  page_number: e2,
16210
16210
  page_size: 1,
@@ -16213,17 +16213,17 @@ ${c}
16213
16213
  filters: filtersToFilterGroup(w),
16214
16214
  max_columns: null
16215
16215
  })).data)
16216
- }), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = HW) : HW = r[64];
16217
- let UW = HW, WW;
16218
- r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (WW = () => {
16216
+ }), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = WW) : WW = r[64];
16217
+ let GW = WW, KW;
16218
+ r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (KW = () => {
16219
16219
  v(_temp4$4);
16220
- }, r[65] = WW) : WW = r[65];
16221
- let GW = W == null ? void 0 : W.totalRows, KW;
16222
- r[66] === GW ? KW = r[67] : (KW = [
16223
- GW
16224
- ], r[66] = GW, r[67] = KW), (0, import_react.useEffect)(WW, KW);
16225
- let qW;
16226
- r[68] === e ? qW = r[69] : (qW = async () => {
16220
+ }, r[65] = KW) : KW = r[65];
16221
+ let qW = W == null ? void 0 : W.totalRows, JW;
16222
+ r[66] === qW ? JW = r[67] : (JW = [
16223
+ qW
16224
+ ], r[66] = qW, r[67] = JW), (0, import_react.useEffect)(KW, JW);
16225
+ let YW;
16226
+ r[68] === e ? YW = r[69] : (YW = async () => {
16227
16227
  let r2 = isStaticNotebook();
16228
16228
  return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
16229
16229
  data: null,
@@ -16232,22 +16232,22 @@ ${c}
16232
16232
  value_counts: {},
16233
16233
  show_charts: false
16234
16234
  } : e.get_column_summaries({});
16235
- }, r[68] = e, r[69] = qW);
16236
- let JW;
16237
- r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (JW = [
16235
+ }, r[68] = e, r[69] = YW);
16236
+ let XW;
16237
+ r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (XW = [
16238
16238
  e.get_column_summaries,
16239
16239
  e.showColumnSummaries,
16240
16240
  w,
16241
16241
  y,
16242
16242
  e.totalRows,
16243
16243
  e.data
16244
- ], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = JW) : JW = r[76];
16245
- let { data: YW, error: XW } = useAsyncData(qW, JW), ZW, QW;
16246
- if (r[77] === XW ? (ZW = r[78], QW = r[79]) : (ZW = () => {
16247
- XW && Logger.error(XW);
16248
- }, QW = [
16249
- XW
16250
- ], r[77] = XW, r[78] = ZW, r[79] = QW), (0, import_react.useEffect)(ZW, QW), q) {
16244
+ ], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = XW) : XW = r[76];
16245
+ let { data: ZW, error: QW } = useAsyncData(YW, XW), $W, eG;
16246
+ if (r[77] === QW ? ($W = r[78], eG = r[79]) : ($W = () => {
16247
+ QW && Logger.error(QW);
16248
+ }, eG = [
16249
+ QW
16250
+ ], r[77] = QW, r[78] = $W, r[79] = eG), (0, import_react.useEffect)($W, eG), q) {
16251
16251
  let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
16252
16252
  return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
16253
16253
  milliseconds: 200,
@@ -16256,7 +16256,7 @@ ${c}
16256
16256
  })
16257
16257
  }), r[80] = c2, r[81] = l2), l2;
16258
16258
  }
16259
- let $W = null;
16259
+ let tG = null;
16260
16260
  if (G) {
16261
16261
  Logger.error(G);
16262
16262
  let e2;
@@ -16272,62 +16272,62 @@ ${c}
16272
16272
  children: G.message || "An unknown error occurred"
16273
16273
  })
16274
16274
  ]
16275
- }), r[82] = G, r[83] = e2), $W = e2;
16275
+ }), r[82] = G, r[83] = e2), tG = e2;
16276
16276
  }
16277
- let eG;
16278
- r[84] === O ? eG = r[85] : (eG = () => {
16277
+ let nG;
16278
+ r[84] === O ? nG = r[85] : (nG = () => {
16279
16279
  j(!O);
16280
- }, r[84] = O, r[85] = eG);
16281
- let tG = eG, nG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, rG = W == null ? void 0 : W.rawRows, iG = kW && !q, aG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, oG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, sG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, cG;
16282
- r[86] !== l || r[87] !== YW || r[88] !== O || r[89] !== w || r[90] !== UW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== BW || r[95] !== VW || r[96] !== m || r[97] !== nG || r[98] !== rG || r[99] !== iG || r[100] !== aG || r[101] !== oG || r[102] !== sG || r[103] !== tG ? (cG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
16280
+ }, r[84] = O, r[85] = nG);
16281
+ let rG = nG, iG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, aG = W == null ? void 0 : W.rawRows, oG = jW && !q, sG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, cG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, lG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, uG;
16282
+ r[86] !== l || r[87] !== ZW || r[88] !== O || r[89] !== w || r[90] !== GW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== HW || r[95] !== UW || r[96] !== m || r[97] !== iG || r[98] !== aG || r[99] !== oG || r[100] !== sG || r[101] !== cG || r[102] !== lG || r[103] !== rG ? (uG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
16283
16283
  ...e,
16284
- data: nG,
16285
- rawData: rG,
16286
- columnSummaries: YW,
16284
+ data: iG,
16285
+ rawData: aG,
16286
+ columnSummaries: ZW,
16287
16287
  sorting: m,
16288
16288
  setSorting: h,
16289
16289
  searchQuery: y,
16290
16290
  setSearchQuery: b,
16291
16291
  filters: w,
16292
16292
  setFilters: T,
16293
- reloading: iG,
16294
- totalRows: aG,
16295
- sizeBytes: BW,
16296
- sizeBytesIsLoading: VW,
16293
+ reloading: oG,
16294
+ totalRows: sG,
16295
+ sizeBytes: HW,
16296
+ sizeBytesIsLoading: UW,
16297
16297
  paginationState: _,
16298
16298
  setPaginationState: v,
16299
- cellStyles: oG,
16300
- cellHoverTexts: sG,
16301
- toggleDisplayHeader: tG,
16299
+ cellStyles: cG,
16300
+ cellHoverTexts: lG,
16301
+ toggleDisplayHeader: rG,
16302
16302
  isChartBuilderOpen: O,
16303
- getRow: UW,
16303
+ getRow: GW,
16304
16304
  cellId: l,
16305
16305
  maxHeight: e.maxHeight
16306
- }), r[86] = l, r[87] = YW, r[88] = O, r[89] = w, r[90] = UW, r[91] = _, r[92] = e, r[93] = y, r[94] = BW, r[95] = VW, r[96] = m, r[97] = nG, r[98] = rG, r[99] = iG, r[100] = aG, r[101] = oG, r[102] = sG, r[103] = tG, r[104] = cG) : cG = r[104];
16307
- let lG = cG, uG;
16308
- r[105] !== l || r[106] !== lG || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.rowHeaders || r[112] !== e.showChartBuilder || r[113] !== e.totalColumns || r[114] !== e.totalRows ? (uG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
16306
+ }), r[86] = l, r[87] = ZW, r[88] = O, r[89] = w, r[90] = GW, r[91] = _, r[92] = e, r[93] = y, r[94] = HW, r[95] = UW, r[96] = m, r[97] = iG, r[98] = aG, r[99] = oG, r[100] = sG, r[101] = cG, r[102] = lG, r[103] = rG, r[104] = uG) : uG = r[104];
16307
+ let dG = uG, fG;
16308
+ r[105] !== l || r[106] !== dG || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.rowHeaders || r[112] !== e.showChartBuilder || r[113] !== e.totalColumns || r[114] !== e.totalRows ? (fG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
16309
16309
  displayHeader: O,
16310
16310
  onCloseChartBuilder: () => j(false),
16311
16311
  data: (W == null ? void 0 : W.rows) || [],
16312
16312
  columns: e.totalColumns,
16313
16313
  totalRows: e.totalRows,
16314
- dataTable: lG,
16314
+ dataTable: dG,
16315
16315
  getDataUrl: e.get_data_url,
16316
16316
  fieldTypes: e.fieldTypes,
16317
16317
  rowHeaders: e.rowHeaders,
16318
16318
  cellId: l
16319
- }) : lG, r[105] = l, r[106] = lG, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.rowHeaders, r[112] = e.showChartBuilder, r[113] = e.totalColumns, r[114] = e.totalRows, r[115] = uG) : uG = r[115];
16320
- let dG;
16321
- return r[116] !== $W || r[117] !== uG ? (dG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
16319
+ }) : dG, r[105] = l, r[106] = dG, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.rowHeaders, r[112] = e.showChartBuilder, r[113] = e.totalColumns, r[114] = e.totalRows, r[115] = fG) : fG = r[115];
16320
+ let pG;
16321
+ return r[116] !== tG || r[117] !== fG ? (pG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
16322
16322
  children: [
16323
- $W,
16324
- uG
16323
+ tG,
16324
+ fG
16325
16325
  ]
16326
- }), r[116] = $W, r[117] = uG, r[118] = dG) : dG = r[118], dG;
16326
+ }), r[116] = tG, r[117] = fG, r[118] = pG) : pG = r[118], pG;
16327
16327
  });
16328
16328
  LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
16329
- var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: kW, setFilters: AW, reloading: Z, freezeColumnsLeft: jW, freezeColumnsRight: MW, hiddenColumns: NW, textJustifyColumns: PW, wrappedColumns: FW, columnWidths: IW, headerTooltip: LW, totalColumns: RW, get_row_ids: zW, cellStyles: BW, hoverTemplate: VW, cellHoverTexts: HW, toggleDisplayHeader: UW, isChartBuilderOpen: WW, calculate_top_k_rows: GW, preview_column: KW, getRow: qW, cellId: JW, maxHeight: YW }) => {
16330
- let XW = (0, import_react.useId)(), { locale: ZW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [QW, $W] = (0, import_react.useState)(0), { isPanelOpen: eG, isAnyPanelOpen: tG, togglePanel: nG, panelType: rG, setPanelType: iG } = usePanelOwnership(XW, JW), aG = isStaticNotebook(), oG = (0, import_react.useMemo)(() => {
16329
+ var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: jW, setFilters: MW, reloading: Z, freezeColumnsLeft: NW, freezeColumnsRight: PW, hiddenColumns: FW, textJustifyColumns: IW, wrappedColumns: LW, columnWidths: RW, headerTooltip: zW, totalColumns: BW, get_row_ids: VW, cellStyles: HW, hoverTemplate: UW, cellHoverTexts: WW, toggleDisplayHeader: GW, isChartBuilderOpen: KW, calculate_top_k_rows: qW, preview_column: JW, getRow: YW, cellId: XW, maxHeight: ZW }) => {
16330
+ let QW = (0, import_react.useId)(), { locale: $W } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [eG, tG] = (0, import_react.useState)(0), { isPanelOpen: nG, isAnyPanelOpen: rG, togglePanel: iG, panelType: aG, setPanelType: oG } = usePanelOwnership(QW, XW), sG = isStaticNotebook(), cG = (0, import_react.useMemo)(() => {
16331
16331
  if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
16332
16332
  let e2 = toFieldTypes(O);
16333
16333
  return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
@@ -16336,13 +16336,13 @@ ${c}
16336
16336
  }, [
16337
16337
  O,
16338
16338
  L
16339
- ]), sG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), cG = (0, import_react.useMemo)(() => f === "all" ? sG : sG.slice(0, f), [
16339
+ ]), lG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), uG = (0, import_react.useMemo)(() => f === "all" ? lG : lG.slice(0, f), [
16340
16340
  f,
16341
- sG
16342
- ]), lG = (0, import_react.useMemo)(() => {
16341
+ lG
16342
+ ]), dG = (0, import_react.useMemo)(() => {
16343
16343
  let e2 = {};
16344
16344
  if (r && r.length > 0) {
16345
- for (let [c2, l2] of cG) if (l2[0] === "number") {
16345
+ for (let [c2, l2] of uG) if (l2[0] === "number") {
16346
16346
  let l3 = 0;
16347
16347
  for (let e3 of r) {
16348
16348
  let r2 = e3[c2];
@@ -16357,95 +16357,95 @@ ${c}
16357
16357
  return e2;
16358
16358
  }, [
16359
16359
  r,
16360
- cG
16361
- ]), uG = useDeepCompareMemoize(T), dG = useDeepCompareMemoize(PW), fG = useDeepCompareMemoize(FW), pG = useDeepCompareMemoize(IW), mG = useDeepCompareMemoize(oG), hG = useDeepCompareMemoize(lG), gG = cG.length;
16362
- O || (w = false), aG && (m = null);
16363
- let _G = (0, import_react.useMemo)(() => generateColumns({
16364
- rowHeaders: uG,
16360
+ uG
16361
+ ]), fG = useDeepCompareMemoize(T), pG = useDeepCompareMemoize(IW), mG = useDeepCompareMemoize(LW), hG = useDeepCompareMemoize(RW), gG = useDeepCompareMemoize(cG), _G = useDeepCompareMemoize(dG), vG = uG.length;
16362
+ O || (w = false), sG && (m = null);
16363
+ let yG = (0, import_react.useMemo)(() => generateColumns({
16364
+ rowHeaders: fG,
16365
16365
  selection: m,
16366
- chartSpecModel: mG,
16367
- fieldTypes: cG,
16368
- textJustifyColumns: dG,
16369
- wrappedColumns: fG,
16370
- columnWidths: pG,
16371
- headerTooltip: LW,
16366
+ chartSpecModel: gG,
16367
+ fieldTypes: uG,
16368
+ textJustifyColumns: pG,
16369
+ wrappedColumns: mG,
16370
+ columnWidths: hG,
16371
+ headerTooltip: zW,
16372
16372
  showDataTypes: w,
16373
- calculateTopKRows: GW,
16374
- fractionDigitsByColumn: hG
16373
+ calculateTopKRows: qW,
16374
+ fractionDigitsByColumn: _G
16375
16375
  }), [
16376
16376
  m,
16377
16377
  w,
16378
- mG,
16379
- uG,
16380
- cG,
16381
- dG,
16378
+ gG,
16382
16379
  fG,
16380
+ uG,
16383
16381
  pG,
16384
- LW,
16385
- GW,
16386
- hG
16387
- ]), vG = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
16382
+ mG,
16383
+ hG,
16384
+ zW,
16385
+ qW,
16386
+ _G
16387
+ ]), bG = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
16388
16388
  e2,
16389
16389
  true
16390
16390
  ])), [
16391
16391
  h
16392
- ]), yG = useEvent_default((e2) => {
16392
+ ]), xG = useEvent_default((e2) => {
16393
16393
  if (m === "single") {
16394
16394
  let r2 = Functions.asUpdater(e2)({});
16395
16395
  z(Object.keys(r2).slice(0, 1));
16396
16396
  }
16397
16397
  if (m === "multi") {
16398
- let r2 = Functions.asUpdater(e2)(vG);
16398
+ let r2 = Functions.asUpdater(e2)(bG);
16399
16399
  z(Object.keys(r2));
16400
16400
  }
16401
- }), bG = useEvent_default((e2) => {
16402
- if ($W(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
16401
+ }), SG = useEvent_default((e2) => {
16402
+ if (tG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
16403
16403
  let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
16404
16404
  r2 !== null && M((e3) => ({
16405
16405
  ...e3,
16406
16406
  pageIndex: r2
16407
16407
  }));
16408
- }), xG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), SG = useEvent_default((e2) => {
16409
- m === "single-cell" && z(Functions.asUpdater(e2)(xG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(xG));
16410
- }), CG = m === "multi" || m === "single", wG = y && !!KW, TG = isInVscodeExtension(), EG = isIslands(), DG = (0, import_react.useMemo)(() => {
16411
- if (!(!tG || !(b || wG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
16408
+ }), CG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), wG = useEvent_default((e2) => {
16409
+ m === "single-cell" && z(Functions.asUpdater(e2)(CG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(CG));
16410
+ }), TG = m === "multi" || m === "single", EG = y && !!JW, DG = isInVscodeExtension(), OG = isIslands(), kG = (0, import_react.useMemo)(() => {
16411
+ if (!(!rG || !(b || EG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
16412
16412
  children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
16413
- rowIdx: QW,
16414
- setRowIdx: bG,
16413
+ rowIdx: eG,
16414
+ setRowIdx: SG,
16415
16415
  totalRows: l,
16416
- fieldTypes: sG,
16417
- getRow: qW,
16418
- isSelectable: CG,
16419
- isRowSelected: !!vG[QW],
16420
- handleRowSelectionChange: yG,
16421
- previewColumn: KW,
16422
- totalColumns: RW,
16423
- tableId: XW,
16416
+ fieldTypes: lG,
16417
+ getRow: YW,
16418
+ isSelectable: TG,
16419
+ isRowSelected: !!bG[eG],
16420
+ handleRowSelectionChange: xG,
16421
+ previewColumn: JW,
16422
+ totalColumns: BW,
16423
+ tableId: QW,
16424
16424
  table: e2,
16425
- showRowExplorer: b && !TG,
16426
- showColumnExplorer: wG && !TG,
16427
- activeTab: rG,
16428
- onTabChange: iG
16425
+ showRowExplorer: b && !DG,
16426
+ showColumnExplorer: EG && !DG,
16427
+ activeTab: aG,
16428
+ onTabChange: oG
16429
16429
  })
16430
16430
  });
16431
16431
  }, [
16432
- tG,
16432
+ rG,
16433
16433
  b,
16434
- wG,
16435
- QW,
16436
- bG,
16434
+ EG,
16435
+ eG,
16436
+ SG,
16437
16437
  l,
16438
- sG,
16439
- qW,
16440
- CG,
16441
- vG,
16442
- yG,
16443
- KW,
16444
- RW,
16445
- XW,
16438
+ lG,
16439
+ YW,
16446
16440
  TG,
16447
- rG,
16448
- iG
16441
+ bG,
16442
+ xG,
16443
+ JW,
16444
+ BW,
16445
+ QW,
16446
+ DG,
16447
+ aG,
16448
+ oG
16449
16449
  ]);
16450
16450
  return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
16451
16451
  children: [
@@ -16457,27 +16457,27 @@ ${c}
16457
16457
  " rows."
16458
16458
  ]
16459
16459
  }),
16460
- gG < RW && gG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
16460
+ vG < BW && vG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
16461
16461
  className: "mb-1 rounded",
16462
16462
  children: [
16463
16463
  "Result clipped. Showing ",
16464
- gG,
16464
+ vG,
16465
16465
  " of ",
16466
- RW,
16466
+ BW,
16467
16467
  " columns."
16468
16468
  ]
16469
16469
  }),
16470
- aG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
16470
+ sG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
16471
16471
  className: "mb-1 rounded",
16472
16472
  children: [
16473
16473
  "Showing the first ",
16474
16474
  (0, import_jsx_runtime.jsx)("strong", {
16475
- children: prettyNumber(r.length, ZW)
16475
+ children: prettyNumber(r.length, $W)
16476
16476
  }),
16477
16477
  " ",
16478
16478
  "of ",
16479
16479
  (0, import_jsx_runtime.jsx)("strong", {
16480
- children: prettyNumber(l, ZW)
16480
+ children: prettyNumber(l, $W)
16481
16481
  }),
16482
16482
  " rows. Increase the table's ",
16483
16483
  (0, import_jsx_runtime.jsx)("code", {
@@ -16491,7 +16491,7 @@ ${c}
16491
16491
  children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
16492
16492
  }),
16493
16493
  (0, import_jsx_runtime.jsx)(ColumnChartContext, {
16494
- value: oG,
16494
+ value: cG,
16495
16495
  children: (0, import_jsx_runtime.jsx)(Labeled, {
16496
16496
  label: e,
16497
16497
  align: "top",
@@ -16499,14 +16499,14 @@ ${c}
16499
16499
  children: (0, import_jsx_runtime.jsx)(DataTable, {
16500
16500
  data: r,
16501
16501
  rawData: c,
16502
- columns: _G,
16502
+ columns: yG,
16503
16503
  className: R,
16504
- maxHeight: YW,
16504
+ maxHeight: ZW,
16505
16505
  sorting: B,
16506
16506
  totalRows: l,
16507
16507
  sizeBytes: u,
16508
16508
  sizeBytesIsLoading: d,
16509
- totalColumns: RW,
16509
+ totalColumns: BW,
16510
16510
  manualSorting: true,
16511
16511
  setSorting: H,
16512
16512
  pagination: p,
@@ -16514,37 +16514,37 @@ ${c}
16514
16514
  selection: m,
16515
16515
  paginationState: j,
16516
16516
  setPaginationState: M,
16517
- rowSelection: vG,
16518
- cellSelection: xG,
16519
- cellStyling: BW,
16520
- hoverTemplate: VW,
16521
- cellHoverTexts: HW,
16517
+ rowSelection: bG,
16518
+ cellSelection: CG,
16519
+ cellStyling: HW,
16520
+ hoverTemplate: UW,
16521
+ cellHoverTexts: WW,
16522
16522
  downloadAs: _ ? I : void 0,
16523
16523
  showSearch: W,
16524
16524
  searchQuery: G,
16525
16525
  onSearchQueryChange: q,
16526
16526
  showFilters: g,
16527
- filters: kW,
16528
- onFiltersChange: AW,
16529
- calculateTopKRows: GW,
16527
+ filters: jW,
16528
+ onFiltersChange: MW,
16529
+ calculateTopKRows: qW,
16530
16530
  reloading: Z,
16531
- onRowSelectionChange: yG,
16532
- freezeColumnsLeft: jW,
16533
- freezeColumnsRight: MW,
16534
- hiddenColumns: NW,
16535
- onCellSelectionChange: SG,
16536
- getRowIds: zW,
16537
- toggleDisplayHeader: UW,
16538
- showChartBuilder: S && !EG,
16539
- isChartBuilderOpen: WW,
16531
+ onRowSelectionChange: xG,
16532
+ freezeColumnsLeft: NW,
16533
+ freezeColumnsRight: PW,
16534
+ hiddenColumns: FW,
16535
+ onCellSelectionChange: wG,
16536
+ getRowIds: VW,
16537
+ toggleDisplayHeader: GW,
16538
+ showChartBuilder: S && !OG,
16539
+ isChartBuilderOpen: KW,
16540
16540
  showPageSizeSelector: v,
16541
- showTableExplorer: (b || wG) && !TG && !EG,
16542
- togglePanel: nG,
16543
- isPanelOpen: eG,
16544
- isAnyPanelOpen: tG,
16545
- viewedRowIdx: QW,
16546
- onViewedRowChange: (e2) => $W(e2),
16547
- renderTableExplorerPanel: DG
16541
+ showTableExplorer: (b || EG) && !DG && !OG,
16542
+ togglePanel: iG,
16543
+ isPanelOpen: nG,
16544
+ isAnyPanelOpen: rG,
16545
+ viewedRowIdx: eG,
16546
+ onViewedRowChange: (e2) => tG(e2),
16547
+ renderTableExplorerPanel: kG
16548
16548
  })
16549
16549
  })
16550
16550
  })
@@ -18596,29 +18596,29 @@ ${c}
18596
18596
  ], r[2] = S, r[3] = w);
18597
18597
  let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
18598
18598
  r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
18599
- let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, kW] = (0, import_react.useState)(f || EMPTY), AW = (0, import_react.useRef)(null), Z;
18599
+ let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, jW] = (0, import_react.useState)(f || EMPTY), MW = (0, import_react.useRef)(null), Z;
18600
18600
  r[6] === d ? Z = r[7] : (Z = (e2) => {
18601
18601
  var _a5;
18602
- d && e2 !== "transform" && ((_a5 = AW.current) == null ? void 0 : _a5.submit());
18602
+ d && e2 !== "transform" && ((_a5 = MW.current) == null ? void 0 : _a5.submit());
18603
18603
  }, r[6] = d, r[7] = Z);
18604
- let jW = Z, MW = (0, import_react.useRef)(q), NW;
18605
- r[8] === q ? NW = r[9] : (NW = () => {
18606
- MW.current = q;
18607
- }, r[8] = q, r[9] = NW), (0, import_react.useEffect)(NW);
18608
- let PW;
18609
- r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (PW = () => {
18610
- let e2 = MW.current;
18604
+ let NW = Z, PW = (0, import_react.useRef)(q), FW;
18605
+ r[8] === q ? FW = r[9] : (FW = () => {
18606
+ PW.current = q;
18607
+ }, r[8] = q, r[9] = FW), (0, import_react.useEffect)(FW);
18608
+ let IW;
18609
+ r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (IW = () => {
18610
+ let e2 = PW.current;
18611
18611
  (f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
18612
- }, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = PW) : PW = r[12];
18613
- let FW = f == null ? void 0 : f.transforms.length, IW;
18614
- r[13] !== T || r[14] !== p || r[15] !== FW ? (IW = [
18612
+ }, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = IW) : IW = r[12];
18613
+ let LW = f == null ? void 0 : f.transforms.length, RW;
18614
+ r[13] !== T || r[14] !== p || r[15] !== LW ? (RW = [
18615
18615
  T,
18616
- FW,
18617
- MW,
18616
+ LW,
18617
+ PW,
18618
18618
  p
18619
- ], r[13] = T, r[14] = p, r[15] = FW, r[16] = IW) : IW = r[16], (0, import_react.useEffect)(PW, IW);
18620
- let LW;
18621
- r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18619
+ ], r[13] = T, r[14] = p, r[15] = LW, r[16] = RW) : RW = r[16], (0, import_react.useEffect)(IW, RW);
18620
+ let zW;
18621
+ r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (zW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18622
18622
  value: "transform",
18623
18623
  className: "text-xs py-1",
18624
18624
  children: [
@@ -18627,9 +18627,9 @@ ${c}
18627
18627
  }),
18628
18628
  "Transform"
18629
18629
  ]
18630
- }), r[17] = LW) : LW = r[17];
18631
- let zW;
18632
- r[18] === H ? zW = r[19] : (zW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18630
+ }), r[17] = zW) : zW = r[17];
18631
+ let VW;
18632
+ r[18] === H ? VW = r[19] : (VW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18633
18633
  value: "python-code",
18634
18634
  className: "text-xs py-1",
18635
18635
  children: [
@@ -18638,9 +18638,9 @@ ${c}
18638
18638
  }),
18639
18639
  "Python Code"
18640
18640
  ]
18641
- }), r[18] = H, r[19] = zW);
18642
- let BW;
18643
- r[20] === W ? BW = r[21] : (BW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18641
+ }), r[18] = H, r[19] = VW);
18642
+ let HW;
18643
+ r[20] === W ? HW = r[21] : (HW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
18644
18644
  value: "sql-code",
18645
18645
  className: "text-xs py-1",
18646
18646
  children: [
@@ -18649,54 +18649,54 @@ ${c}
18649
18649
  }),
18650
18650
  "SQL Code"
18651
18651
  ]
18652
- }), r[20] = W, r[21] = BW);
18653
- let VW;
18654
- r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (VW = (0, import_jsx_runtime.jsx)("div", {
18652
+ }), r[20] = W, r[21] = HW);
18653
+ let UW;
18654
+ r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UW = (0, import_jsx_runtime.jsx)("div", {
18655
18655
  className: "grow"
18656
- }), r[22] = VW) : VW = r[22];
18657
- let HW;
18658
- r[23] !== zW || r[24] !== BW ? (HW = (0, import_jsx_runtime.jsxs)(TabsList, {
18656
+ }), r[22] = UW) : UW = r[22];
18657
+ let WW;
18658
+ r[23] !== VW || r[24] !== HW ? (WW = (0, import_jsx_runtime.jsxs)(TabsList, {
18659
18659
  className: "h-8",
18660
18660
  children: [
18661
- LW,
18662
18661
  zW,
18663
- BW,
18664
- VW
18665
- ]
18666
- }), r[23] = zW, r[24] = BW, r[25] = HW) : HW = r[25];
18667
- let UW;
18668
- r[26] === j ? UW = r[27] : (UW = j && (0, import_jsx_runtime.jsx)(Spinner, {
18669
- size: "small"
18670
- }), r[26] = j, r[27] = UW);
18671
- let WW;
18672
- r[28] !== HW || r[29] !== UW ? (WW = (0, import_jsx_runtime.jsxs)("div", {
18673
- className: "flex items-center gap-2",
18674
- children: [
18662
+ VW,
18675
18663
  HW,
18676
18664
  UW
18677
18665
  ]
18678
- }), r[28] = HW, r[29] = UW, r[30] = WW) : WW = r[30];
18666
+ }), r[23] = VW, r[24] = HW, r[25] = WW) : WW = r[25];
18679
18667
  let GW;
18680
- r[31] !== p || r[32] !== f ? (GW = (e2) => {
18681
- dequal(e2, f) || (p(e2), kW(e2));
18682
- }, r[31] = p, r[32] = f, r[33] = GW) : GW = r[33];
18668
+ r[26] === j ? GW = r[27] : (GW = j && (0, import_jsx_runtime.jsx)(Spinner, {
18669
+ size: "small"
18670
+ }), r[26] = j, r[27] = GW);
18683
18671
  let KW;
18684
- r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== GW ? (KW = (0, import_jsx_runtime.jsx)(TabsContent, {
18672
+ r[28] !== WW || r[29] !== GW ? (KW = (0, import_jsx_runtime.jsxs)("div", {
18673
+ className: "flex items-center gap-2",
18674
+ children: [
18675
+ WW,
18676
+ GW
18677
+ ]
18678
+ }), r[28] = WW, r[29] = GW, r[30] = KW) : KW = r[30];
18679
+ let qW;
18680
+ r[31] !== p || r[32] !== f ? (qW = (e2) => {
18681
+ dequal(e2, f) || (p(e2), jW(e2));
18682
+ }, r[31] = p, r[32] = f, r[33] = qW) : qW = r[33];
18683
+ let JW;
18684
+ r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== qW ? (JW = (0, import_jsx_runtime.jsx)(TabsContent, {
18685
18685
  value: "transform",
18686
18686
  className: "mt-1 border rounded-t overflow-hidden",
18687
18687
  children: (0, import_jsx_runtime.jsx)(TransformPanel, {
18688
- ref: AW,
18688
+ ref: MW,
18689
18689
  initialValue: q,
18690
18690
  columns: c,
18691
- onChange: GW,
18692
- onInvalidChange: kW,
18691
+ onChange: qW,
18692
+ onInvalidChange: jW,
18693
18693
  getColumnValues: h,
18694
18694
  columnTypesPerStep: B,
18695
18695
  lazy: d
18696
18696
  })
18697
- }), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = GW, r[40] = KW) : KW = r[40];
18698
- let qW;
18699
- r[41] === H ? qW = r[42] : (qW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
18697
+ }), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = qW, r[40] = JW) : JW = r[40];
18698
+ let YW;
18699
+ r[41] === H ? YW = r[42] : (YW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
18700
18700
  value: "python-code",
18701
18701
  className: "mt-1 border rounded-t overflow-hidden",
18702
18702
  children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
@@ -18705,9 +18705,9 @@ ${c}
18705
18705
  code: H,
18706
18706
  language: "python"
18707
18707
  })
18708
- }), r[41] = H, r[42] = qW);
18709
- let JW;
18710
- r[43] === W ? JW = r[44] : (JW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
18708
+ }), r[41] = H, r[42] = YW);
18709
+ let XW;
18710
+ r[43] === W ? XW = r[44] : (XW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
18711
18711
  value: "sql-code",
18712
18712
  className: "mt-1 border rounded-t overflow-hidden",
18713
18713
  children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
@@ -18716,35 +18716,35 @@ ${c}
18716
18716
  code: W,
18717
18717
  language: "sql"
18718
18718
  })
18719
- }), r[43] = W, r[44] = JW);
18720
- let YW;
18721
- r[45] !== jW || r[46] !== WW || r[47] !== KW || r[48] !== qW || r[49] !== JW ? (YW = (0, import_jsx_runtime.jsxs)(Tabs, {
18719
+ }), r[43] = W, r[44] = XW);
18720
+ let ZW;
18721
+ r[45] !== NW || r[46] !== KW || r[47] !== JW || r[48] !== YW || r[49] !== XW ? (ZW = (0, import_jsx_runtime.jsxs)(Tabs, {
18722
18722
  defaultValue: "transform",
18723
- onValueChange: jW,
18723
+ onValueChange: NW,
18724
18724
  children: [
18725
- WW,
18726
18725
  KW,
18727
- qW,
18728
- JW
18726
+ JW,
18727
+ YW,
18728
+ XW
18729
18729
  ]
18730
- }), r[45] = jW, r[46] = WW, r[47] = KW, r[48] = qW, r[49] = JW, r[50] = YW) : YW = r[50];
18731
- let XW;
18732
- r[51] === O ? XW = r[52] : (XW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
18730
+ }), r[45] = NW, r[46] = KW, r[47] = JW, r[48] = YW, r[49] = XW, r[50] = ZW) : ZW = r[50];
18731
+ let QW;
18732
+ r[51] === O ? QW = r[52] : (QW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
18733
18733
  error: O
18734
- }), r[51] = O, r[52] = XW);
18735
- let ZW = I || "", QW = L ?? 0, $W = G ?? 0, eG = R || Arrays.EMPTY, tG = L && L > 5 || false, nG;
18736
- r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== ZW || r[61] !== QW || r[62] !== $W || r[63] !== eG || r[64] !== tG ? (nG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
18734
+ }), r[51] = O, r[52] = QW);
18735
+ let $W = I || "", eG = L ?? 0, tG = G ?? 0, nG = R || Arrays.EMPTY, rG = L && L > 5 || false, iG;
18736
+ r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== $W || r[61] !== eG || r[62] !== tG || r[63] !== nG || r[64] !== rG ? (iG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
18737
18737
  label: null,
18738
18738
  className: "rounded-b border-x border-b",
18739
- data: ZW,
18739
+ data: $W,
18740
18740
  hasStableRowId: false,
18741
- totalRows: QW,
18742
- totalColumns: $W,
18741
+ totalRows: eG,
18742
+ totalColumns: tG,
18743
18743
  maxColumns: "all",
18744
18744
  pageSize: l,
18745
18745
  pagination: true,
18746
18746
  fieldTypes: z,
18747
- rowHeaders: eG,
18747
+ rowHeaders: nG,
18748
18748
  showDownload: u,
18749
18749
  download_as: _,
18750
18750
  get_size_bytes: v,
@@ -18754,7 +18754,7 @@ ${c}
18754
18754
  showColumnSummaries: false,
18755
18755
  showDataTypes: true,
18756
18756
  get_column_summaries: getColumnSummaries,
18757
- showPageSizeSelector: tG,
18757
+ showPageSizeSelector: rG,
18758
18758
  showColumnExplorer: false,
18759
18759
  showRowExplorer: true,
18760
18760
  showChartBuilder: false,
@@ -18763,15 +18763,15 @@ ${c}
18763
18763
  selection: null,
18764
18764
  lazy: false,
18765
18765
  host: y
18766
- }), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = ZW, r[61] = QW, r[62] = $W, r[63] = eG, r[64] = tG, r[65] = nG) : nG = r[65];
18767
- let rG;
18768
- return r[66] !== YW || r[67] !== XW || r[68] !== nG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
18766
+ }), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = $W, r[61] = eG, r[62] = tG, r[63] = nG, r[64] = rG, r[65] = iG) : iG = r[65];
18767
+ let aG;
18768
+ return r[66] !== ZW || r[67] !== QW || r[68] !== iG ? (aG = (0, import_jsx_runtime.jsxs)("div", {
18769
18769
  children: [
18770
- YW,
18771
- XW,
18772
- nG
18770
+ ZW,
18771
+ QW,
18772
+ iG
18773
18773
  ]
18774
- }), r[66] = YW, r[67] = XW, r[68] = nG, r[69] = rG) : rG = r[69], rG;
18774
+ }), r[66] = ZW, r[67] = QW, r[68] = iG, r[69] = aG) : aG = r[69], aG;
18775
18775
  });
18776
18776
  DataFrameComponent.displayName = "DataFrameComponent";
18777
18777
  function getColumnSummaries() {
@@ -18962,23 +18962,23 @@ ${c}
18962
18962
  }, [
18963
18963
  H
18964
18964
  ]);
18965
- let q = (R == null ? void 0 : R.files) ?? [], kW = new Set(e.map((e2) => e2.path)), AW = l === "directory" || l === "all", Z = l === "file" || l === "all", MW = q.filter((e2) => AW && e2.is_directory || Z && !e2.is_directory), NW = MW.length > 0 && MW.every((e2) => kW.has(e2.path));
18965
+ let q = (R == null ? void 0 : R.files) ?? [], jW = new Set(e.map((e2) => e2.path)), MW = l === "directory" || l === "all", Z = l === "file" || l === "all", PW = q.filter((e2) => MW && e2.is_directory || Z && !e2.is_directory), FW = PW.length > 0 && PW.every((e2) => jW.has(e2.path));
18966
18966
  if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
18967
18967
  kind: "danger",
18968
18968
  children: z.message
18969
18969
  });
18970
- let FW = PathBuilder.guessDeliminator(c).deliminator, IW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
18970
+ let LW = PathBuilder.guessDeliminator(c).deliminator, RW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
18971
18971
  children: e2.path
18972
18972
  }, e2.id));
18973
- function LW(e2) {
18973
+ function zW(e2) {
18974
18974
  var _a6;
18975
18975
  if (v) return;
18976
18976
  if (y(true), e2 === PARENT_DIRECTORY) {
18977
- if (g === FW) {
18977
+ if (g === LW) {
18978
18978
  y(false);
18979
18979
  return;
18980
18980
  }
18981
- e2 = Paths.dirname(g), e2 === "" && (e2 = FW);
18981
+ e2 = Paths.dirname(g), e2 === "" && (e2 = LW);
18982
18982
  }
18983
18983
  let r2 = e2.length < c.length;
18984
18984
  if (f && r2) {
@@ -18991,7 +18991,7 @@ ${c}
18991
18991
  }
18992
18992
  M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
18993
18993
  }
18994
- function RW({ path: e2, name: r2, isDirectory: c2 }) {
18994
+ function BW({ path: e2, name: r2, isDirectory: c2 }) {
18995
18995
  return {
18996
18996
  id: e2,
18997
18997
  name: r2,
@@ -18999,27 +18999,27 @@ ${c}
18999
18999
  is_directory: c2
19000
19000
  };
19001
19001
  }
19002
- function zW({ path: c2, name: l2, isDirectory: d2 }) {
19003
- let f2 = RW({
19002
+ function VW({ path: c2, name: l2, isDirectory: d2 }) {
19003
+ let f2 = BW({
19004
19004
  path: c2,
19005
19005
  name: l2,
19006
19006
  isDirectory: d2
19007
19007
  });
19008
- kW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
19008
+ jW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
19009
19009
  ...e,
19010
19010
  f2
19011
19011
  ] : [
19012
19012
  f2
19013
19013
  ]);
19014
19014
  }
19015
- function VW() {
19015
+ function UW() {
19016
19016
  r(e.filter((e2) => Paths.dirname(e2.path) !== g));
19017
19017
  }
19018
- function UW() {
19018
+ function GW() {
19019
19019
  let c2 = [];
19020
19020
  for (let e2 of q) {
19021
- if (!AW && e2.is_directory || kW.has(e2.path)) continue;
19022
- let r2 = RW({
19021
+ if (!MW && e2.is_directory || jW.has(e2.path)) continue;
19022
+ let r2 = BW({
19023
19023
  path: e2.path,
19024
19024
  name: e2.name,
19025
19025
  isDirectory: e2.is_directory
@@ -19031,20 +19031,20 @@ ${c}
19031
19031
  ...c2
19032
19032
  ]);
19033
19033
  }
19034
- let WW = [
19034
+ let KW = [
19035
19035
  {
19036
19036
  key: "parent",
19037
19037
  name: PARENT_DIRECTORY,
19038
19038
  Icon: CornerLeftUp,
19039
19039
  isSelected: false,
19040
19040
  canSelect: false,
19041
- onPrimary: () => LW(PARENT_DIRECTORY),
19041
+ onPrimary: () => zW(PARENT_DIRECTORY),
19042
19042
  onToggleSelect: null
19043
19043
  },
19044
19044
  ...q.map((e2) => {
19045
19045
  let r2 = e2.path;
19046
19046
  r2.startsWith("//") && (r2 = r2.slice(1));
19047
- let c2 = AW && e2.is_directory || Z && !e2.is_directory, l2 = kW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => zW({
19047
+ let c2 = MW && e2.is_directory || Z && !e2.is_directory, l2 = jW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => VW({
19048
19048
  path: r2,
19049
19049
  name: e2.name,
19050
19050
  isDirectory: e2.is_directory
@@ -19055,46 +19055,46 @@ ${c}
19055
19055
  Icon: FILE_ICON[u2],
19056
19056
  isSelected: l2,
19057
19057
  canSelect: c2,
19058
- onPrimary: e2.is_directory ? () => LW(r2) : c2 ? d2 : () => {
19058
+ onPrimary: e2.is_directory ? () => zW(r2) : c2 ? d2 : () => {
19059
19059
  },
19060
19060
  onToggleSelect: c2 ? d2 : null
19061
19061
  };
19062
19062
  })
19063
19063
  ];
19064
- function GW(e2) {
19064
+ function qW(e2) {
19065
19065
  var _a6;
19066
19066
  E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
19067
19067
  }
19068
- function KW(e2, r2) {
19068
+ function JW(e2, r2) {
19069
19069
  var _a6, _b3;
19070
- let c2 = WW.length - 1;
19070
+ let c2 = KW.length - 1;
19071
19071
  switch (e2.key) {
19072
19072
  case "ArrowDown":
19073
- e2.preventDefault(), GW(Math.min(r2 + 1, c2));
19073
+ e2.preventDefault(), qW(Math.min(r2 + 1, c2));
19074
19074
  break;
19075
19075
  case "ArrowUp":
19076
- e2.preventDefault(), GW(Math.max(r2 - 1, 0));
19076
+ e2.preventDefault(), qW(Math.max(r2 - 1, 0));
19077
19077
  break;
19078
19078
  case "Home":
19079
- e2.preventDefault(), GW(0);
19079
+ e2.preventDefault(), qW(0);
19080
19080
  break;
19081
19081
  case "End":
19082
- e2.preventDefault(), GW(c2);
19082
+ e2.preventDefault(), qW(c2);
19083
19083
  break;
19084
19084
  case "Enter":
19085
- e2.preventDefault(), WW[r2].onPrimary();
19085
+ e2.preventDefault(), KW[r2].onPrimary();
19086
19086
  break;
19087
19087
  case " ":
19088
- e2.preventDefault(), (_b3 = (_a6 = WW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
19088
+ e2.preventDefault(), (_b3 = (_a6 = KW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
19089
19089
  break;
19090
19090
  }
19091
19091
  }
19092
- let { parentDirectories: qW } = getProtocolAndParentDirectories({
19092
+ let { parentDirectories: YW } = getProtocolAndParentDirectories({
19093
19093
  path: g,
19094
- delimiter: FW,
19094
+ delimiter: LW,
19095
19095
  initialPath: c,
19096
19096
  restrictNavigation: f
19097
- }), JW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
19097
+ }), XW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
19098
19098
  return (0, import_jsx_runtime.jsxs)("div", {
19099
19099
  children: [
19100
19100
  z && (0, import_jsx_runtime.jsx)(Banner, {
@@ -19104,7 +19104,7 @@ ${c}
19104
19104
  (() => {
19105
19105
  let e2 = (0, import_jsx_runtime.jsx)(Label, {
19106
19106
  children: renderHTML({
19107
- html: d ?? `Select ${JW.join(" and ", 2)}...`
19107
+ html: d ?? `Select ${XW.join(" and ", 2)}...`
19108
19108
  })
19109
19109
  });
19110
19110
  return u ? (0, import_jsx_runtime.jsxs)("div", {
@@ -19118,8 +19118,8 @@ ${c}
19118
19118
  children: (0, import_jsx_runtime.jsx)(Button, {
19119
19119
  size: "xs",
19120
19120
  variant: "link",
19121
- onClick: NW ? VW : UW,
19122
- children: NW ? "Deselect all" : "Select all"
19121
+ onClick: FW ? UW : GW,
19122
+ children: FW ? "Deselect all" : "Select all"
19123
19123
  })
19124
19124
  })
19125
19125
  ]
@@ -19129,8 +19129,8 @@ ${c}
19129
19129
  className: "mt-2 w-full",
19130
19130
  placeholder: g,
19131
19131
  value: g,
19132
- onChange: (e2) => LW(e2.target.value),
19133
- children: qW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
19132
+ onChange: (e2) => zW(e2.target.value),
19133
+ children: YW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
19134
19134
  value: e2,
19135
19135
  children: e2
19136
19136
  }, e2))
@@ -19166,14 +19166,14 @@ ${c}
19166
19166
  "aria-label": "File browser",
19167
19167
  "aria-multiselectable": u,
19168
19168
  children: (0, import_jsx_runtime.jsx)(TableBody, {
19169
- children: WW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
19169
+ children: KW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
19170
19170
  role: "row",
19171
19171
  ref: (e3) => {
19172
19172
  O.current[r2] = e3;
19173
19173
  },
19174
19174
  tabIndex: r2 === T ? 0 : -1,
19175
19175
  onFocus: () => E(r2),
19176
- onKeyDown: (e3) => KW(e3, r2),
19176
+ onKeyDown: (e3) => JW(e3, r2),
19177
19177
  className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
19178
19178
  "bg-primary/25 hover:bg-primary/35": e2.isSelected
19179
19179
  }),
@@ -19216,7 +19216,7 @@ ${c}
19216
19216
  children: [
19217
19217
  e.length,
19218
19218
  " ",
19219
- JW.join(" or ", e.length),
19219
+ XW.join(" or ", e.length),
19220
19220
  " ",
19221
19221
  "selected"
19222
19222
  ]
@@ -19236,7 +19236,7 @@ ${c}
19236
19236
  marginBlock: 0
19237
19237
  },
19238
19238
  className: "m-0 text-xs text-muted-foreground",
19239
- children: IW
19239
+ children: RW
19240
19240
  })
19241
19241
  })
19242
19242
  ]
@@ -24618,55 +24618,55 @@ ${c}
24618
24618
  return typeof S == "function" ? S : noop$2;
24619
24619
  }, [
24620
24620
  S
24621
- ]), q = (0, import_react.useRef)(null), kW = (0, import_react.useRef)(null), AW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = AW[0], jW = AW[1], MW = Z.isFocused, NW = Z.isFileDialogActive, PW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), FW = function() {
24622
- !PW.current && NW && setTimeout(function() {
24623
- kW.current && (kW.current.files.length || (jW({
24621
+ ]), q = (0, import_react.useRef)(null), jW = (0, import_react.useRef)(null), MW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = MW[0], NW = MW[1], PW = Z.isFocused, FW = Z.isFileDialogActive, IW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), LW = function() {
24622
+ !IW.current && FW && setTimeout(function() {
24623
+ jW.current && (jW.current.files.length || (NW({
24624
24624
  type: "closeDialog"
24625
24625
  }), G()));
24626
24626
  }, 300);
24627
24627
  };
24628
24628
  (0, import_react.useEffect)(function() {
24629
- return window.addEventListener("focus", FW, false), function() {
24630
- window.removeEventListener("focus", FW, false);
24629
+ return window.addEventListener("focus", LW, false), function() {
24630
+ window.removeEventListener("focus", LW, false);
24631
24631
  };
24632
24632
  }, [
24633
- kW,
24634
- NW,
24633
+ jW,
24634
+ FW,
24635
24635
  G,
24636
- PW
24636
+ IW
24637
24637
  ]);
24638
- var IW = (0, import_react.useRef)([]), LW = (0, import_react.useRef)([]), RW = function(e2) {
24639
- q.current && q.current.contains(e2.target) || (e2.preventDefault(), IW.current = []);
24638
+ var RW = (0, import_react.useRef)([]), zW = (0, import_react.useRef)([]), BW = function(e2) {
24639
+ q.current && q.current.contains(e2.target) || (e2.preventDefault(), RW.current = []);
24640
24640
  };
24641
24641
  (0, import_react.useEffect)(function() {
24642
- return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", RW, false)), function() {
24643
- O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", RW));
24642
+ return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", BW, false)), function() {
24643
+ O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", BW));
24644
24644
  };
24645
24645
  }, [
24646
24646
  q,
24647
24647
  O
24648
24648
  ]), (0, import_react.useEffect)(function() {
24649
24649
  var e2 = function(e3) {
24650
- LW.current = [].concat(_toConsumableArray(LW.current), [
24650
+ zW.current = [].concat(_toConsumableArray(zW.current), [
24651
24651
  e3.target
24652
- ]), isEvtWithFiles(e3) && jW({
24652
+ ]), isEvtWithFiles(e3) && NW({
24653
24653
  isDragGlobal: true,
24654
24654
  type: "setDragGlobal"
24655
24655
  });
24656
24656
  }, r2 = function(e3) {
24657
- LW.current = LW.current.filter(function(r3) {
24657
+ zW.current = zW.current.filter(function(r3) {
24658
24658
  return r3 !== e3.target && r3 !== null;
24659
- }), !(LW.current.length > 0) && jW({
24659
+ }), !(zW.current.length > 0) && NW({
24660
24660
  isDragGlobal: false,
24661
24661
  type: "setDragGlobal"
24662
24662
  });
24663
24663
  }, c2 = function() {
24664
- LW.current = [], jW({
24664
+ zW.current = [], NW({
24665
24665
  isDragGlobal: false,
24666
24666
  type: "setDragGlobal"
24667
24667
  });
24668
24668
  }, l2 = function() {
24669
- LW.current = [], jW({
24669
+ zW.current = [], NW({
24670
24670
  isDragGlobal: false,
24671
24671
  type: "setDragGlobal"
24672
24672
  });
@@ -24684,12 +24684,12 @@ ${c}
24684
24684
  E,
24685
24685
  l
24686
24686
  ]);
24687
- var zW = (0, import_react.useCallback)(function(e2) {
24687
+ var VW = (0, import_react.useCallback)(function(e2) {
24688
24688
  R ? R(e2) : console.error(e2);
24689
24689
  }, [
24690
24690
  R
24691
- ]), BW = (0, import_react.useCallback)(function(e2) {
24692
- e2.preventDefault(), e2.persist(), $W(e2), IW.current = [].concat(_toConsumableArray(IW.current), [
24691
+ ]), HW = (0, import_react.useCallback)(function(e2) {
24692
+ e2.preventDefault(), e2.persist(), tG(e2), RW.current = [].concat(_toConsumableArray(RW.current), [
24693
24693
  e2.target
24694
24694
  ]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
24695
24695
  if (!(isPropagationStopped(e2) && !L)) {
@@ -24702,7 +24702,7 @@ ${c}
24702
24702
  maxFiles: m,
24703
24703
  validator: z
24704
24704
  });
24705
- jW({
24705
+ NW({
24706
24706
  isDragAccept: l2,
24707
24707
  isDragReject: c2 > 0 && !l2,
24708
24708
  isDragActive: true,
@@ -24710,12 +24710,12 @@ ${c}
24710
24710
  }), h && h(e2);
24711
24711
  }
24712
24712
  }).catch(function(e3) {
24713
- return zW(e3);
24713
+ return VW(e3);
24714
24714
  });
24715
24715
  }, [
24716
24716
  u,
24717
24717
  h,
24718
- zW,
24718
+ VW,
24719
24719
  L,
24720
24720
  B,
24721
24721
  f,
@@ -24723,8 +24723,8 @@ ${c}
24723
24723
  p,
24724
24724
  m,
24725
24725
  z
24726
- ]), VW = (0, import_react.useCallback)(function(e2) {
24727
- e2.preventDefault(), e2.persist(), $W(e2);
24726
+ ]), UW = (0, import_react.useCallback)(function(e2) {
24727
+ e2.preventDefault(), e2.persist(), tG(e2);
24728
24728
  var r2 = isEvtWithFiles(e2);
24729
24729
  if (r2 && e2.dataTransfer) try {
24730
24730
  e2.dataTransfer.dropEffect = "copy";
@@ -24734,12 +24734,12 @@ ${c}
24734
24734
  }, [
24735
24735
  _,
24736
24736
  L
24737
- ]), HW = (0, import_react.useCallback)(function(e2) {
24738
- e2.preventDefault(), e2.persist(), $W(e2);
24739
- var r2 = IW.current.filter(function(e3) {
24737
+ ]), WW = (0, import_react.useCallback)(function(e2) {
24738
+ e2.preventDefault(), e2.persist(), tG(e2);
24739
+ var r2 = RW.current.filter(function(e3) {
24740
24740
  return q.current && q.current.contains(e3);
24741
24741
  }), c2 = r2.indexOf(e2.target);
24742
- c2 !== -1 && r2.splice(c2, 1), IW.current = r2, !(r2.length > 0) && (jW({
24742
+ c2 !== -1 && r2.splice(c2, 1), RW.current = r2, !(r2.length > 0) && (NW({
24743
24743
  type: "setDraggedFiles",
24744
24744
  isDragActive: false,
24745
24745
  isDragAccept: false,
@@ -24749,7 +24749,7 @@ ${c}
24749
24749
  q,
24750
24750
  g,
24751
24751
  L
24752
- ]), UW = (0, import_react.useCallback)(function(e2, r2) {
24752
+ ]), GW = (0, import_react.useCallback)(function(e2, r2) {
24753
24753
  var c2 = [], l2 = [];
24754
24754
  e2.forEach(function(e3) {
24755
24755
  var r3 = _slicedToArray(fileAccepted(e3, B), 2), u2 = r3[0], p2 = r3[1], m2 = _slicedToArray(fileMatchSize(e3, f, d), 2), h2 = m2[0], g2 = m2[1], _2 = z ? z(e3) : null;
@@ -24773,14 +24773,14 @@ ${c}
24773
24773
  TOO_MANY_FILES_REJECTION
24774
24774
  ]
24775
24775
  });
24776
- }), c2.splice(0)), jW({
24776
+ }), c2.splice(0)), NW({
24777
24777
  acceptedFiles: c2,
24778
24778
  fileRejections: l2,
24779
24779
  isDragReject: l2.length > 0,
24780
24780
  type: "setFiles"
24781
24781
  }), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
24782
24782
  }, [
24783
- jW,
24783
+ NW,
24784
24784
  p,
24785
24785
  B,
24786
24786
  f,
@@ -24790,22 +24790,22 @@ ${c}
24790
24790
  y,
24791
24791
  b,
24792
24792
  z
24793
- ]), WW = (0, import_react.useCallback)(function(e2) {
24794
- e2.preventDefault(), e2.persist(), $W(e2), IW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
24795
- isPropagationStopped(e2) && !L || UW(r2, e2);
24793
+ ]), KW = (0, import_react.useCallback)(function(e2) {
24794
+ e2.preventDefault(), e2.persist(), tG(e2), RW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
24795
+ isPropagationStopped(e2) && !L || GW(r2, e2);
24796
24796
  }).catch(function(e3) {
24797
- return zW(e3);
24798
- }), jW({
24797
+ return VW(e3);
24798
+ }), NW({
24799
24799
  type: "reset"
24800
24800
  });
24801
24801
  }, [
24802
24802
  u,
24803
- UW,
24804
- zW,
24803
+ GW,
24804
+ VW,
24805
24805
  L
24806
- ]), GW = (0, import_react.useCallback)(function() {
24807
- if (PW.current) {
24808
- jW({
24806
+ ]), qW = (0, import_react.useCallback)(function() {
24807
+ if (IW.current) {
24808
+ NW({
24809
24809
  type: "openDialog"
24810
24810
  }), W();
24811
24811
  var e2 = {
@@ -24815,66 +24815,66 @@ ${c}
24815
24815
  window.showOpenFilePicker(e2).then(function(e3) {
24816
24816
  return u(e3);
24817
24817
  }).then(function(e3) {
24818
- UW(e3, null), jW({
24818
+ GW(e3, null), NW({
24819
24819
  type: "closeDialog"
24820
24820
  });
24821
24821
  }).catch(function(e3) {
24822
- isAbort(e3) ? (G(e3), jW({
24822
+ isAbort(e3) ? (G(e3), NW({
24823
24823
  type: "closeDialog"
24824
- })) : isSecurityError(e3) ? (PW.current = false, kW.current ? (kW.current.value = null, kW.current.click()) : zW(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : zW(e3);
24824
+ })) : isSecurityError(e3) ? (IW.current = false, jW.current ? (jW.current.value = null, jW.current.click()) : VW(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : VW(e3);
24825
24825
  });
24826
24826
  return;
24827
24827
  }
24828
- kW.current && (jW({
24828
+ jW.current && (NW({
24829
24829
  type: "openDialog"
24830
- }), W(), kW.current.value = null, kW.current.click());
24830
+ }), W(), jW.current.value = null, jW.current.click());
24831
24831
  }, [
24832
- jW,
24832
+ NW,
24833
24833
  W,
24834
24834
  G,
24835
24835
  T,
24836
- UW,
24837
- zW,
24836
+ GW,
24837
+ VW,
24838
24838
  H,
24839
24839
  p
24840
- ]), KW = (0, import_react.useCallback)(function(e2) {
24841
- !q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), GW());
24840
+ ]), JW = (0, import_react.useCallback)(function(e2) {
24841
+ !q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), qW());
24842
24842
  }, [
24843
24843
  q,
24844
- GW
24845
- ]), qW = (0, import_react.useCallback)(function() {
24846
- jW({
24844
+ qW
24845
+ ]), YW = (0, import_react.useCallback)(function() {
24846
+ NW({
24847
24847
  type: "focus"
24848
24848
  });
24849
- }, []), JW = (0, import_react.useCallback)(function() {
24850
- jW({
24849
+ }, []), XW = (0, import_react.useCallback)(function() {
24850
+ NW({
24851
24851
  type: "blur"
24852
24852
  });
24853
- }, []), YW = (0, import_react.useCallback)(function() {
24854
- j || (isIeOrEdge() ? setTimeout(GW, 0) : GW());
24853
+ }, []), ZW = (0, import_react.useCallback)(function() {
24854
+ j || (isIeOrEdge() ? setTimeout(qW, 0) : qW());
24855
24855
  }, [
24856
24856
  j,
24857
- GW
24858
- ]), XW = function(e2) {
24857
+ qW
24858
+ ]), QW = function(e2) {
24859
24859
  return l ? null : e2;
24860
- }, ZW = function(e2) {
24861
- return M ? null : XW(e2);
24862
- }, QW = function(e2) {
24863
- return I ? null : XW(e2);
24864
24860
  }, $W = function(e2) {
24861
+ return M ? null : QW(e2);
24862
+ }, eG = function(e2) {
24863
+ return I ? null : QW(e2);
24864
+ }, tG = function(e2) {
24865
24865
  L && e2.stopPropagation();
24866
- }, eG = (0, import_react.useMemo)(function() {
24866
+ }, nG = (0, import_react.useMemo)(function() {
24867
24867
  return function() {
24868
24868
  var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, u2 = e2.role, d2 = e2.onKeyDown, f2 = e2.onFocus, p2 = e2.onBlur, m2 = e2.onClick, h2 = e2.onDragEnter, g2 = e2.onDragOver, _2 = e2.onDragLeave, v2 = e2.onDrop, y2 = _objectWithoutProperties$2(e2, _excluded3);
24869
24869
  return _objectSpread$7(_objectSpread$7(_defineProperty$10({
24870
- onKeyDown: ZW(composeEventHandlers(d2, KW)),
24871
- onFocus: ZW(composeEventHandlers(f2, qW)),
24872
- onBlur: ZW(composeEventHandlers(p2, JW)),
24873
- onClick: XW(composeEventHandlers(m2, YW)),
24874
- onDragEnter: QW(composeEventHandlers(h2, BW)),
24875
- onDragOver: QW(composeEventHandlers(g2, VW)),
24876
- onDragLeave: QW(composeEventHandlers(_2, HW)),
24877
- onDrop: QW(composeEventHandlers(v2, WW)),
24870
+ onKeyDown: $W(composeEventHandlers(d2, JW)),
24871
+ onFocus: $W(composeEventHandlers(f2, YW)),
24872
+ onBlur: $W(composeEventHandlers(p2, XW)),
24873
+ onClick: QW(composeEventHandlers(m2, ZW)),
24874
+ onDragEnter: eG(composeEventHandlers(h2, HW)),
24875
+ onDragOver: eG(composeEventHandlers(g2, UW)),
24876
+ onDragLeave: eG(composeEventHandlers(_2, WW)),
24877
+ onDrop: eG(composeEventHandlers(v2, KW)),
24878
24878
  role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
24879
24879
  }, c2, q), !l && !M ? {
24880
24880
  tabIndex: 0
@@ -24882,20 +24882,20 @@ ${c}
24882
24882
  };
24883
24883
  }, [
24884
24884
  q,
24885
- KW,
24886
- qW,
24887
24885
  JW,
24888
24886
  YW,
24889
- BW,
24890
- VW,
24887
+ XW,
24888
+ ZW,
24891
24889
  HW,
24890
+ UW,
24892
24891
  WW,
24892
+ KW,
24893
24893
  M,
24894
24894
  I,
24895
24895
  l
24896
- ]), tG = (0, import_react.useCallback)(function(e2) {
24896
+ ]), rG = (0, import_react.useCallback)(function(e2) {
24897
24897
  e2.stopPropagation();
24898
- }, []), nG = (0, import_react.useMemo)(function() {
24898
+ }, []), iG = (0, import_react.useMemo)(function() {
24899
24899
  return function() {
24900
24900
  var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, l2 = e2.onChange, u2 = e2.onClick, d2 = _objectWithoutProperties$2(e2, _excluded4);
24901
24901
  return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
@@ -24914,25 +24914,25 @@ ${c}
24914
24914
  width: "1px",
24915
24915
  whiteSpace: "nowrap"
24916
24916
  },
24917
- onChange: XW(composeEventHandlers(l2, WW)),
24918
- onClick: XW(composeEventHandlers(u2, tG)),
24917
+ onChange: QW(composeEventHandlers(l2, KW)),
24918
+ onClick: QW(composeEventHandlers(u2, rG)),
24919
24919
  tabIndex: -1
24920
- }, c2, kW)), d2);
24920
+ }, c2, jW)), d2);
24921
24921
  };
24922
24922
  }, [
24923
- kW,
24923
+ jW,
24924
24924
  c,
24925
24925
  p,
24926
- WW,
24926
+ KW,
24927
24927
  l
24928
24928
  ]);
24929
24929
  return _objectSpread$7(_objectSpread$7({}, Z), {}, {
24930
- isFocused: MW && !l,
24931
- getRootProps: eG,
24932
- getInputProps: nG,
24930
+ isFocused: PW && !l,
24931
+ getRootProps: nG,
24932
+ getInputProps: iG,
24933
24933
  rootRef: q,
24934
- inputRef: kW,
24935
- open: XW(GW)
24934
+ inputRef: jW,
24935
+ open: QW(qW)
24936
24936
  });
24937
24937
  }
24938
24938
  function reducer$2(e, r) {
@@ -25164,47 +25164,47 @@ ${c}
25164
25164
  html: I
25165
25165
  })
25166
25166
  }), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
25167
- let q = w && "text-primary", kW = T && "text-destructive", AW;
25168
- r[48] !== q || r[49] !== kW ? (AW = cn(q, kW), r[48] = q, r[49] = kW, r[50] = AW) : AW = r[50];
25167
+ let q = w && "text-primary", jW = T && "text-destructive", MW;
25168
+ r[48] !== q || r[49] !== jW ? (MW = cn(q, jW), r[48] = q, r[49] = jW, r[50] = MW) : MW = r[50];
25169
25169
  let Z;
25170
- r[51] === AW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
25170
+ r[51] === MW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
25171
25171
  strokeWidth: 1.4,
25172
- className: AW
25173
- }), r[51] = AW, r[52] = Z);
25174
- let jW = w && "text-primary", MW = T && "text-destructive", NW;
25175
- r[53] !== jW || r[54] !== MW ? (NW = cn(jW, MW), r[53] = jW, r[54] = MW, r[55] = NW) : NW = r[55];
25176
- let PW;
25177
- r[56] === NW ? PW = r[57] : (PW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
25172
+ className: MW
25173
+ }), r[51] = MW, r[52] = Z);
25174
+ let NW = w && "text-primary", PW = T && "text-destructive", FW;
25175
+ r[53] !== NW || r[54] !== PW ? (FW = cn(NW, PW), r[53] = NW, r[54] = PW, r[55] = FW) : FW = r[55];
25176
+ let IW;
25177
+ r[56] === FW ? IW = r[57] : (IW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
25178
25178
  strokeWidth: 1.4,
25179
- className: NW
25180
- }), r[56] = NW, r[57] = PW);
25181
- let FW;
25182
- r[58] !== Z || r[59] !== PW ? (FW = (0, import_jsx_runtime.jsxs)("div", {
25179
+ className: FW
25180
+ }), r[56] = FW, r[57] = IW);
25181
+ let LW;
25182
+ r[58] !== Z || r[59] !== IW ? (LW = (0, import_jsx_runtime.jsxs)("div", {
25183
25183
  className: "flex flex-row items-center justify-center grow gap-3",
25184
25184
  children: [
25185
25185
  Z,
25186
- PW
25186
+ IW
25187
25187
  ]
25188
- }), r[58] = Z, r[59] = PW, r[60] = FW) : FW = r[60];
25189
- let IW;
25190
- r[61] !== G || r[62] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
25188
+ }), r[58] = Z, r[59] = IW, r[60] = LW) : LW = r[60];
25189
+ let RW;
25190
+ r[61] !== G || r[62] !== LW ? (RW = (0, import_jsx_runtime.jsxs)("div", {
25191
25191
  className: "flex flex-col items-center justify-center grow gap-3",
25192
25192
  children: [
25193
25193
  G,
25194
- FW
25194
+ LW
25195
25195
  ]
25196
- }), r[61] = G, r[62] = FW, r[63] = IW) : IW = r[63];
25197
- let LW;
25198
- r[64] !== W || r[65] !== IW || r[66] !== z || r[67] !== B ? (LW = (0, import_jsx_runtime.jsxs)("div", {
25196
+ }), r[61] = G, r[62] = LW, r[63] = RW) : RW = r[63];
25197
+ let zW;
25198
+ r[64] !== W || r[65] !== RW || r[66] !== z || r[67] !== B ? (zW = (0, import_jsx_runtime.jsxs)("div", {
25199
25199
  className: z,
25200
25200
  ...B,
25201
25201
  children: [
25202
25202
  W,
25203
- IW
25203
+ RW
25204
25204
  ]
25205
- }), r[64] = W, r[65] = IW, r[66] = z, r[67] = B, r[68] = LW) : LW = r[68];
25206
- let RW;
25207
- r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (RW = M ? (0, import_jsx_runtime.jsxs)("div", {
25205
+ }), r[64] = W, r[65] = RW, r[66] = z, r[67] = B, r[68] = zW) : zW = r[68];
25206
+ let BW;
25207
+ r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (BW = M ? (0, import_jsx_runtime.jsxs)("div", {
25208
25208
  className: "flex flex-row gap-1",
25209
25209
  children: [
25210
25210
  (0, import_jsx_runtime.jsxs)("div", {
@@ -25240,17 +25240,17 @@ ${c}
25240
25240
  })
25241
25241
  })
25242
25242
  ]
25243
- }) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = RW) : RW = r[74];
25244
- let zW;
25245
- return r[75] !== LW || r[76] !== RW ? (zW = (0, import_jsx_runtime.jsx)("section", {
25243
+ }) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = BW) : BW = r[74];
25244
+ let VW;
25245
+ return r[75] !== zW || r[76] !== BW ? (VW = (0, import_jsx_runtime.jsx)("section", {
25246
25246
  children: (0, import_jsx_runtime.jsxs)("div", {
25247
25247
  className: "flex flex-col items-start justify-start grow gap-3",
25248
25248
  children: [
25249
- LW,
25250
- RW
25249
+ zW,
25250
+ BW
25251
25251
  ]
25252
25252
  })
25253
- }), r[75] = LW, r[76] = RW, r[77] = zW) : zW = r[77], zW;
25253
+ }), r[75] = zW, r[76] = BW, r[77] = VW) : VW = r[77], VW;
25254
25254
  };
25255
25255
  function _temp$11(e) {
25256
25256
  Logger.error(e), toast({
@@ -25346,75 +25346,75 @@ ${c}
25346
25346
  r[10] !== u || r[11] !== d ? (q = (e2) => {
25347
25347
  e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
25348
25348
  }, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
25349
- let kW;
25350
- r[13] === f ? kW = r[14] : (kW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
25349
+ let jW;
25350
+ r[13] === f ? jW = r[14] : (jW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
25351
25351
  className: "text-center",
25352
25352
  children: renderHTML({
25353
25353
  html: f
25354
25354
  })
25355
- }), r[13] = f, r[14] = kW);
25356
- let AW;
25357
- r[15] === L ? AW = r[16] : (AW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
25355
+ }), r[13] = f, r[14] = jW);
25356
+ let MW;
25357
+ r[15] === L ? MW = r[16] : (MW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
25358
25358
  kind: "danger",
25359
25359
  className: "rounded",
25360
25360
  children: L ?? "Invalid input"
25361
- }), r[15] = L, r[16] = AW);
25361
+ }), r[15] = L, r[16] = MW);
25362
25362
  let Z;
25363
25363
  r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
25364
25364
  children: c
25365
25365
  }), r[17] = c, r[18] = Z);
25366
- let jW;
25367
- r[19] !== S || r[20] !== T || r[21] !== b ? (jW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
25366
+ let NW;
25367
+ r[19] !== S || r[20] !== T || r[21] !== b ? (NW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
25368
25368
  "data-testid": "marimo-plugin-form-clear-button",
25369
25369
  variant: "text",
25370
25370
  onClick: (e2) => {
25371
25371
  e2.preventDefault(), B();
25372
25372
  },
25373
25373
  children: S
25374
- }), T), r[19] = S, r[20] = T, r[21] = b, r[22] = jW) : jW = r[22];
25375
- let MW = v || h, NW;
25376
- r[23] === h ? NW = r[24] : (NW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
25374
+ }), T), r[19] = S, r[20] = T, r[21] = b, r[22] = NW) : NW = r[22];
25375
+ let PW = v || h, FW;
25376
+ r[23] === h ? FW = r[24] : (FW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
25377
25377
  className: "h-4 w-4 mr-2 animate-spin"
25378
- }), r[23] = h, r[24] = NW);
25379
- let PW;
25380
- r[25] !== g || r[26] !== MW || r[27] !== NW || r[28] !== I ? (PW = (0, import_jsx_runtime.jsxs)(Button, {
25378
+ }), r[23] = h, r[24] = FW);
25379
+ let IW;
25380
+ r[25] !== g || r[26] !== PW || r[27] !== FW || r[28] !== I ? (IW = (0, import_jsx_runtime.jsxs)(Button, {
25381
25381
  "data-testid": "marimo-plugin-form-submit-button",
25382
25382
  variant: I,
25383
- disabled: MW,
25383
+ disabled: PW,
25384
25384
  type: "submit",
25385
25385
  children: [
25386
- NW,
25386
+ FW,
25387
25387
  g
25388
25388
  ]
25389
- }), r[25] = g, r[26] = MW, r[27] = NW, r[28] = I, r[29] = PW) : PW = r[29];
25390
- let FW;
25391
- r[30] !== _ || r[31] !== PW ? (FW = withTooltip(PW, _), r[30] = _, r[31] = PW, r[32] = FW) : FW = r[32];
25392
- let IW;
25393
- r[33] !== FW || r[34] !== jW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
25389
+ }), r[25] = g, r[26] = PW, r[27] = FW, r[28] = I, r[29] = IW) : IW = r[29];
25390
+ let LW;
25391
+ r[30] !== _ || r[31] !== IW ? (LW = withTooltip(IW, _), r[30] = _, r[31] = IW, r[32] = LW) : LW = r[32];
25392
+ let RW;
25393
+ r[33] !== LW || r[34] !== NW ? (RW = (0, import_jsx_runtime.jsxs)("div", {
25394
25394
  className: "flex justify-end gap-2 font-code",
25395
25395
  children: [
25396
- jW,
25397
- FW
25396
+ NW,
25397
+ LW
25398
25398
  ]
25399
- }), r[33] = FW, r[34] = jW, r[35] = IW) : IW = r[35];
25400
- let LW;
25401
- r[36] !== IW || r[37] !== G || r[38] !== q || r[39] !== kW || r[40] !== AW || r[41] !== Z ? (LW = (0, import_jsx_runtime.jsxs)("div", {
25399
+ }), r[33] = LW, r[34] = NW, r[35] = RW) : RW = r[35];
25400
+ let zW;
25401
+ r[36] !== RW || r[37] !== G || r[38] !== q || r[39] !== jW || r[40] !== MW || r[41] !== Z ? (zW = (0, import_jsx_runtime.jsxs)("div", {
25402
25402
  className: G,
25403
25403
  onKeyDown: q,
25404
25404
  children: [
25405
- kW,
25406
- AW,
25405
+ jW,
25406
+ MW,
25407
25407
  Z,
25408
- IW
25408
+ RW
25409
25409
  ]
25410
- }), r[36] = IW, r[37] = G, r[38] = q, r[39] = kW, r[40] = AW, r[41] = Z, r[42] = LW) : LW = r[42];
25411
- let RW;
25412
- return r[43] !== LW || r[44] !== H ? (RW = (0, import_jsx_runtime.jsx)("form", {
25410
+ }), r[36] = RW, r[37] = G, r[38] = q, r[39] = jW, r[40] = MW, r[41] = Z, r[42] = zW) : zW = r[42];
25411
+ let BW;
25412
+ return r[43] !== zW || r[44] !== H ? (BW = (0, import_jsx_runtime.jsx)("form", {
25413
25413
  className: "contents",
25414
25414
  ref: j,
25415
25415
  onSubmit: H,
25416
- children: LW
25417
- }), r[43] = LW, r[44] = H, r[45] = RW) : RW = r[45], RW;
25416
+ children: zW
25417
+ }), r[43] = zW, r[44] = H, r[45] = BW) : BW = r[45], BW;
25418
25418
  };
25419
25419
  var Form = (e) => {
25420
25420
  let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
@@ -27187,8 +27187,8 @@ ${c}
27187
27187
  points: extractSunburstPoints(e2.points)
27188
27188
  }));
27189
27189
  }, r[29] = u, r[30] = G);
27190
- let q = useEvent_default(G), kW;
27191
- r[31] === u ? kW = r[32] : (kW = (e2) => {
27190
+ let q = useEvent_default(G), jW;
27191
+ r[31] === u ? jW = r[32] : (jW = (e2) => {
27192
27192
  if (!e2 || !shouldHandleClickSelection(e2.points)) return;
27193
27193
  let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
27194
27194
  u((e3) => ({
@@ -27199,8 +27199,8 @@ ${c}
27199
27199
  points: r2,
27200
27200
  indices: c2
27201
27201
  }));
27202
- }, r[31] = u, r[32] = kW);
27203
- let AW = useEvent_default(kW), Z;
27202
+ }, r[31] = u, r[32] = jW);
27203
+ let MW = useEvent_default(jW), Z;
27204
27204
  r[33] === u ? Z = r[34] : (Z = (e2) => {
27205
27205
  e2 && u((r2) => ({
27206
27206
  ...r2,
@@ -27211,8 +27211,8 @@ ${c}
27211
27211
  lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
27212
27212
  }));
27213
27213
  }, r[33] = u, r[34] = Z);
27214
- let jW = useEvent_default(Z), MW = m.frames ?? void 0, NW = useEvent_default(_temp3$3), PW;
27215
- return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== AW || r[42] !== jW || r[43] !== MW || r[44] !== NW || r[45] !== R ? (PW = (0, import_jsx_runtime.jsx)(LazyPlot, {
27214
+ let NW = useEvent_default(Z), PW = m.frames ?? void 0, FW = useEvent_default(_temp3$3), IW;
27215
+ return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== MW || r[42] !== NW || r[43] !== PW || r[44] !== FW || r[45] !== R ? (IW = (0, import_jsx_runtime.jsx)(LazyPlot, {
27216
27216
  ...m,
27217
27217
  layout: h,
27218
27218
  onRelayout: R,
@@ -27220,13 +27220,13 @@ ${c}
27220
27220
  onTreemapClick: W,
27221
27221
  onSunburstClick: q,
27222
27222
  config: L,
27223
- onClick: AW,
27224
- onSelected: jW,
27223
+ onClick: MW,
27224
+ onSelected: NW,
27225
27225
  className: "w-full",
27226
27226
  useResizeHandler: true,
27227
- frames: MW,
27228
- onError: NW
27229
- }), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = AW, r[42] = jW, r[43] = MW, r[44] = NW, r[45] = R, r[46] = PW) : PW = r[46], PW;
27227
+ frames: PW,
27228
+ onError: FW
27229
+ }), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = MW, r[42] = NW, r[43] = PW, r[44] = FW, r[45] = R, r[46] = IW) : IW = r[46], IW;
27230
27230
  });
27231
27231
  PlotlyComponent.displayName = "PlotlyComponent";
27232
27232
  function _temp$8(e) {
@@ -27358,8 +27358,8 @@ ${c}
27358
27358
  c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
27359
27359
  let q;
27360
27360
  c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
27361
- let kW;
27362
- c[19] !== L || c[20] !== z || c[21] !== H ? (kW = (0, import_jsx_runtime.jsx)(Track, {
27361
+ let jW;
27362
+ c[19] !== L || c[20] !== z || c[21] !== H ? (jW = (0, import_jsx_runtime.jsx)(Track, {
27363
27363
  ref: E,
27364
27364
  "data-testid": "track",
27365
27365
  className: G,
@@ -27370,9 +27370,9 @@ ${c}
27370
27370
  onPointerMove: z,
27371
27371
  onPointerUp: H
27372
27372
  })
27373
- }), c[19] = L, c[20] = z, c[21] = H, c[22] = kW) : kW = c[22];
27374
- let AW;
27375
- c[23] !== m.setFalse || c[24] !== m.setTrue ? (AW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
27373
+ }), c[19] = L, c[20] = z, c[21] = H, c[22] = jW) : jW = c[22];
27374
+ let MW;
27375
+ c[23] !== m.setFalse || c[24] !== m.setTrue ? (MW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
27376
27376
  asChild: true,
27377
27377
  children: (0, import_jsx_runtime.jsx)(Thumb, {
27378
27378
  "data-testid": "thumb",
@@ -27382,30 +27382,30 @@ ${c}
27382
27382
  onMouseEnter: m.setTrue,
27383
27383
  onMouseLeave: m.setFalse
27384
27384
  })
27385
- }), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = AW) : AW = c[25];
27385
+ }), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = MW) : MW = c[25];
27386
27386
  let Z;
27387
27387
  c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
27388
27388
  children: prettyScientificNumber(d(u.value[0]), {
27389
27389
  locale: h
27390
27390
  })
27391
27391
  }, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
27392
- let jW;
27393
- c[30] === Z ? jW = c[31] : (jW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
27392
+ let NW;
27393
+ c[30] === Z ? NW = c[31] : (NW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
27394
27394
  children: Z
27395
- }), c[30] = Z, c[31] = jW);
27396
- let MW;
27397
- c[32] !== f || c[33] !== AW || c[34] !== jW ? (MW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
27395
+ }), c[30] = Z, c[31] = NW);
27396
+ let PW;
27397
+ c[32] !== f || c[33] !== MW || c[34] !== NW ? (PW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
27398
27398
  children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
27399
27399
  delayDuration: 0,
27400
27400
  open: f,
27401
27401
  children: [
27402
- AW,
27403
- jW
27402
+ MW,
27403
+ NW
27404
27404
  ]
27405
27405
  })
27406
- }), c[32] = f, c[33] = AW, c[34] = jW, c[35] = MW) : MW = c[35];
27407
- let NW;
27408
- c[36] !== m.setFalse || c[37] !== m.setTrue ? (NW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
27406
+ }), c[32] = f, c[33] = MW, c[34] = NW, c[35] = PW) : PW = c[35];
27407
+ let FW;
27408
+ c[36] !== m.setFalse || c[37] !== m.setTrue ? (FW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
27409
27409
  asChild: true,
27410
27410
  children: (0, import_jsx_runtime.jsx)(Thumb, {
27411
27411
  "data-testid": "thumb",
@@ -27415,39 +27415,39 @@ ${c}
27415
27415
  onMouseEnter: m.setTrue,
27416
27416
  onMouseLeave: m.setFalse
27417
27417
  })
27418
- }), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = NW) : NW = c[38];
27419
- let PW;
27420
- c[39] !== h || c[40] !== u.value || c[41] !== d ? (PW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
27418
+ }), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = FW) : FW = c[38];
27419
+ let IW;
27420
+ c[39] !== h || c[40] !== u.value || c[41] !== d ? (IW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
27421
27421
  children: prettyScientificNumber(d(u.value[1]), {
27422
27422
  locale: h
27423
27423
  })
27424
- }, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = PW) : PW = c[42];
27425
- let FW;
27426
- c[43] === PW ? FW = c[44] : (FW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
27427
- children: PW
27428
- }), c[43] = PW, c[44] = FW);
27429
- let IW;
27430
- c[45] !== f || c[46] !== NW || c[47] !== FW ? (IW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
27424
+ }, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = IW) : IW = c[42];
27425
+ let LW;
27426
+ c[43] === IW ? LW = c[44] : (LW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
27427
+ children: IW
27428
+ }), c[43] = IW, c[44] = LW);
27429
+ let RW;
27430
+ c[45] !== f || c[46] !== FW || c[47] !== LW ? (RW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
27431
27431
  children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
27432
27432
  delayDuration: 0,
27433
27433
  open: f,
27434
27434
  children: [
27435
- NW,
27436
- FW
27435
+ FW,
27436
+ LW
27437
27437
  ]
27438
27438
  })
27439
- }), c[45] = f, c[46] = NW, c[47] = FW, c[48] = IW) : IW = c[48];
27440
- let LW;
27441
- return c[49] !== M || c[50] !== u || c[51] !== kW || c[52] !== MW || c[53] !== IW || c[54] !== W ? (LW = (0, import_jsx_runtime.jsxs)(Root, {
27439
+ }), c[45] = f, c[46] = FW, c[47] = LW, c[48] = RW) : RW = c[48];
27440
+ let zW;
27441
+ return c[49] !== M || c[50] !== u || c[51] !== jW || c[52] !== PW || c[53] !== RW || c[54] !== W ? (zW = (0, import_jsx_runtime.jsxs)(Root, {
27442
27442
  ref: M,
27443
27443
  className: W,
27444
27444
  ...u,
27445
27445
  children: [
27446
- kW,
27447
- MW,
27448
- IW
27446
+ jW,
27447
+ PW,
27448
+ RW
27449
27449
  ]
27450
- }), c[49] = M, c[50] = u, c[51] = kW, c[52] = MW, c[53] = IW, c[54] = W, c[55] = LW) : LW = c[55], LW;
27450
+ }), c[49] = M, c[50] = u, c[51] = jW, c[52] = PW, c[53] = RW, c[54] = W, c[55] = zW) : zW = c[55], zW;
27451
27451
  });
27452
27452
  RangeSlider.displayName = Root.displayName;
27453
27453
  var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
@@ -27498,14 +27498,14 @@ ${c}
27498
27498
  }, q = (e2) => {
27499
27499
  h && l(e2);
27500
27500
  }, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
27501
- let kW, AW;
27502
- r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (kW = () => {
27501
+ let jW, MW;
27502
+ r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (jW = () => {
27503
27503
  h && !dequal(T, u) && l(T);
27504
- }, AW = () => {
27504
+ }, MW = () => {
27505
27505
  h && !dequal(T, u) && l(T);
27506
- }, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = kW, r[19] = AW) : (kW = r[18], AW = r[19]);
27506
+ }, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = jW, r[19] = MW) : (jW = r[18], MW = r[19]);
27507
27507
  let Z;
27508
- r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== kW || r[31] !== AW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
27508
+ r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== jW || r[31] !== MW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
27509
27509
  id: S,
27510
27510
  className: W,
27511
27511
  value: T,
@@ -27516,36 +27516,36 @@ ${c}
27516
27516
  disabled: y,
27517
27517
  onValueChange: G,
27518
27518
  onValueCommit: q,
27519
- onPointerUp: kW,
27520
- onMouseUp: AW,
27519
+ onPointerUp: jW,
27520
+ onMouseUp: MW,
27521
27521
  valueMap: b
27522
- }), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = kW, r[31] = AW, r[32] = b, r[33] = Z) : Z = r[33];
27523
- let jW;
27524
- r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (jW = _ && (0, import_jsx_runtime.jsx)("div", {
27522
+ }), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = jW, r[31] = MW, r[32] = b, r[33] = Z) : Z = r[33];
27523
+ let NW;
27524
+ r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (NW = _ && (0, import_jsx_runtime.jsx)("div", {
27525
27525
  className: "text-xs text-muted-foreground min-w-[16px]",
27526
27526
  children: `${prettyScientificNumber(b(T[0]), {
27527
27527
  locale: w
27528
27528
  })}, ${prettyScientificNumber(b(T[1]), {
27529
27529
  locale: w
27530
27530
  })}`
27531
- }), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = jW) : jW = r[38];
27532
- let MW;
27533
- r[39] !== Z || r[40] !== jW || r[41] !== B ? (MW = (0, import_jsx_runtime.jsxs)("div", {
27531
+ }), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = NW) : NW = r[38];
27532
+ let PW;
27533
+ r[39] !== Z || r[40] !== NW || r[41] !== B ? (PW = (0, import_jsx_runtime.jsxs)("div", {
27534
27534
  className: B,
27535
27535
  children: [
27536
27536
  Z,
27537
- jW
27537
+ NW
27538
27538
  ]
27539
- }), r[39] = Z, r[40] = jW, r[41] = B, r[42] = MW) : MW = r[42];
27540
- let NW;
27541
- return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== MW || r[47] !== M || r[48] !== L ? (NW = (0, import_jsx_runtime.jsx)(Labeled, {
27539
+ }), r[39] = Z, r[40] = NW, r[41] = B, r[42] = PW) : PW = r[42];
27540
+ let FW;
27541
+ return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== PW || r[47] !== M || r[48] !== L ? (FW = (0, import_jsx_runtime.jsx)(Labeled, {
27542
27542
  label: c,
27543
27543
  id: S,
27544
27544
  align: M,
27545
27545
  className: L,
27546
27546
  fullWidth: v,
27547
- children: MW
27548
- }), r[43] = v, r[44] = S, r[45] = c, r[46] = MW, r[47] = M, r[48] = L, r[49] = NW) : NW = r[49], NW;
27547
+ children: PW
27548
+ }), r[43] = v, r[44] = S, r[45] = c, r[46] = PW, r[47] = M, r[48] = L, r[49] = FW) : FW = r[49], FW;
27549
27549
  }, import_timestring = __toESM(__commonJSMin(((e, r) => {
27550
27550
  r.exports = u;
27551
27551
  var c = {
@@ -30836,7 +30836,7 @@ ${c}
30836
30836
  areRegExpsEqual: H,
30837
30837
  areSetsEqual: W,
30838
30838
  createIsNestedEqual: r2
30839
- }), kW = Object.freeze({
30839
+ }), jW = Object.freeze({
30840
30840
  areArraysEqual: O,
30841
30841
  areDatesEqual: j,
30842
30842
  areMapsEqual: I,
@@ -30844,40 +30844,40 @@ ${c}
30844
30844
  areRegExpsEqual: H,
30845
30845
  areSetsEqual: G,
30846
30846
  createIsNestedEqual: r2
30847
- }), AW = T(q);
30847
+ }), MW = T(q);
30848
30848
  function Z(e3, r3) {
30849
- return AW(e3, r3, void 0);
30849
+ return MW(e3, r3, void 0);
30850
30850
  }
30851
- var jW = T(l(q, {
30851
+ var NW = T(l(q, {
30852
30852
  createIsNestedEqual: function() {
30853
30853
  return f;
30854
30854
  }
30855
30855
  }));
30856
- function MW(e3, r3) {
30857
- return jW(e3, r3, void 0);
30858
- }
30859
- var NW = T(kW);
30860
30856
  function PW(e3, r3) {
30861
- return NW(e3, r3, /* @__PURE__ */ new WeakMap());
30857
+ return NW(e3, r3, void 0);
30858
+ }
30859
+ var FW = T(jW);
30860
+ function IW(e3, r3) {
30861
+ return FW(e3, r3, /* @__PURE__ */ new WeakMap());
30862
30862
  }
30863
- var FW = T(l(kW, {
30863
+ var LW = T(l(jW, {
30864
30864
  createIsNestedEqual: function() {
30865
30865
  return f;
30866
30866
  }
30867
30867
  }));
30868
- function IW(e3, r3) {
30869
- return FW(e3, r3, /* @__PURE__ */ new WeakMap());
30868
+ function RW(e3, r3) {
30869
+ return LW(e3, r3, /* @__PURE__ */ new WeakMap());
30870
30870
  }
30871
- function LW(e3) {
30871
+ function zW(e3) {
30872
30872
  return T(l(q, e3(q)));
30873
30873
  }
30874
- function RW(e3) {
30875
- var r3 = T(l(kW, e3(kW)));
30874
+ function BW(e3) {
30875
+ var r3 = T(l(jW, e3(jW)));
30876
30876
  return (function(e4, c2, l2) {
30877
30877
  return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
30878
30878
  });
30879
30879
  }
30880
- e2.circularDeepEqual = PW, e2.circularShallowEqual = IW, e2.createCustomCircularEqual = RW, e2.createCustomEqual = LW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = MW, Object.defineProperty(e2, "__esModule", {
30880
+ e2.circularDeepEqual = IW, e2.circularShallowEqual = RW, e2.createCustomCircularEqual = BW, e2.createCustomEqual = zW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = PW, Object.defineProperty(e2, "__esModule", {
30881
30881
  value: true
30882
30882
  });
30883
30883
  }));
@@ -30903,7 +30903,7 @@ ${c}
30903
30903
  })), require_utils$1 = __commonJSMin(((e) => {
30904
30904
  Object.defineProperty(e, "__esModule", {
30905
30905
  value: true
30906
- }), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = WW, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = IW, e.setTopLeft = RW, e.setTransform = LW, e.sortLayoutItems = zW, e.sortLayoutItemsByColRow = VW, e.sortLayoutItemsByRowCol = BW, e.synchronizeLayoutWithChildren = HW, e.validateLayout = UW, e.withLayoutItem = v;
30906
+ }), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = KW, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = RW, e.setTopLeft = BW, e.setTransform = zW, e.sortLayoutItems = VW, e.sortLayoutItemsByColRow = UW, e.sortLayoutItemsByRowCol = HW, e.synchronizeLayoutWithChildren = WW, e.validateLayout = GW, e.withLayoutItem = v;
30907
30907
  var r = require_fast_equals(), c = l(require_react());
30908
30908
  function l(e2) {
30909
30909
  return e2 && e2.__esModule ? e2 : {
@@ -31008,7 +31008,7 @@ ${c}
31008
31008
  return !(e2.i === r2.i || e2.x + e2.w <= r2.x || e2.x >= r2.x + r2.w || e2.y + e2.h <= r2.y || e2.y >= r2.y + r2.h);
31009
31009
  }
31010
31010
  function T(e2, r2, c2, l2) {
31011
- let u2 = B(e2), d2 = h(u2), f2 = zW(e2, r2), p2 = Array(e2.length);
31011
+ let u2 = B(e2), d2 = h(u2), f2 = VW(e2, r2), p2 = Array(e2.length);
31012
31012
  for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
31013
31013
  let h3 = y(f2[m2]);
31014
31014
  h3.static || (h3 = M(u2, h3, r2, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e2.indexOf(f2[m2])] = h3, h3.moved = false;
@@ -31066,7 +31066,7 @@ ${c}
31066
31066
  `${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
31067
31067
  let h2 = r2.x, _2 = r2.y;
31068
31068
  typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
31069
- let v2 = zW(e2, f2);
31069
+ let v2 = VW(e2, f2);
31070
31070
  (f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
31071
31071
  let y2 = z(v2, r2), b2 = y2.length > 0;
31072
31072
  if (b2 && m2) return g(e2);
@@ -31100,61 +31100,61 @@ ${c}
31100
31100
  function G(e2) {
31101
31101
  return e2 * 100 + "%";
31102
31102
  }
31103
- var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, kW = (e2, r2, c2) => e2 < 0 ? r2 : c2, AW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), jW = (e2, r2, c2) => {
31103
+ var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, jW = (e2, r2, c2) => e2 < 0 ? r2 : c2, MW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), NW = (e2, r2, c2) => {
31104
31104
  let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
31105
31105
  return {
31106
31106
  left: l2,
31107
31107
  width: d2,
31108
- height: kW(f2, e2.height, u2),
31108
+ height: jW(f2, e2.height, u2),
31109
31109
  top: Z(f2)
31110
31110
  };
31111
- }, MW = (e2, r2, c2) => {
31111
+ }, PW = (e2, r2, c2) => {
31112
31112
  let { top: l2, left: u2, height: d2, width: f2 } = r2;
31113
31113
  return {
31114
31114
  top: l2,
31115
31115
  height: d2,
31116
31116
  width: q(e2.left, e2.width, f2, c2),
31117
- left: AW(u2)
31117
+ left: MW(u2)
31118
31118
  };
31119
- }, NW = (e2, r2, c2) => {
31119
+ }, FW = (e2, r2, c2) => {
31120
31120
  let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
31121
31121
  return {
31122
31122
  height: u2,
31123
31123
  width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
31124
31124
  top: Z(l2),
31125
- left: AW(f2)
31125
+ left: MW(f2)
31126
31126
  };
31127
- }, PW = (e2, r2, c2) => {
31127
+ }, IW = (e2, r2, c2) => {
31128
31128
  let { top: l2, left: u2, height: d2, width: f2 } = r2;
31129
31129
  return {
31130
31130
  width: f2,
31131
31131
  left: u2,
31132
- height: kW(l2, e2.height, d2),
31132
+ height: jW(l2, e2.height, d2),
31133
31133
  top: Z(l2)
31134
31134
  };
31135
- }, FW = {
31136
- n: jW,
31135
+ }, LW = {
31136
+ n: NW,
31137
31137
  ne: function() {
31138
- return jW(arguments.length <= 0 ? void 0 : arguments[0], MW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
31138
+ return NW(arguments.length <= 0 ? void 0 : arguments[0], PW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
31139
31139
  },
31140
- e: MW,
31140
+ e: PW,
31141
31141
  se: function() {
31142
- return PW(arguments.length <= 0 ? void 0 : arguments[0], MW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
31142
+ return IW(arguments.length <= 0 ? void 0 : arguments[0], PW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
31143
31143
  },
31144
- s: PW,
31144
+ s: IW,
31145
31145
  sw: function() {
31146
- return PW(arguments.length <= 0 ? void 0 : arguments[0], NW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
31146
+ return IW(arguments.length <= 0 ? void 0 : arguments[0], FW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
31147
31147
  },
31148
- w: NW,
31148
+ w: FW,
31149
31149
  nw: function() {
31150
- return jW(arguments.length <= 0 ? void 0 : arguments[0], NW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
31150
+ return NW(arguments.length <= 0 ? void 0 : arguments[0], FW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
31151
31151
  }
31152
31152
  };
31153
- function IW(e2, r2, c2, l2) {
31154
- let u2 = FW[e2];
31153
+ function RW(e2, r2, c2, l2) {
31154
+ let u2 = LW[e2];
31155
31155
  return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
31156
31156
  }
31157
- function LW(e2) {
31157
+ function zW(e2) {
31158
31158
  let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
31159
31159
  return {
31160
31160
  transform: d2,
@@ -31167,7 +31167,7 @@ ${c}
31167
31167
  position: "absolute"
31168
31168
  };
31169
31169
  }
31170
- function RW(e2) {
31170
+ function BW(e2) {
31171
31171
  let { top: r2, left: c2, width: l2, height: u2 } = e2;
31172
31172
  return {
31173
31173
  top: `${r2}px`,
@@ -31177,20 +31177,20 @@ ${c}
31177
31177
  position: "absolute"
31178
31178
  };
31179
31179
  }
31180
- function zW(e2, r2) {
31181
- return r2 === "horizontal" ? VW(e2) : r2 === "vertical" ? BW(e2) : e2;
31180
+ function VW(e2, r2) {
31181
+ return r2 === "horizontal" ? UW(e2) : r2 === "vertical" ? HW(e2) : e2;
31182
31182
  }
31183
- function BW(e2) {
31183
+ function HW(e2) {
31184
31184
  return e2.slice(0).sort(function(e3, r2) {
31185
31185
  return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
31186
31186
  });
31187
31187
  }
31188
- function VW(e2) {
31188
+ function UW(e2) {
31189
31189
  return e2.slice(0).sort(function(e3, r2) {
31190
31190
  return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
31191
31191
  });
31192
31192
  }
31193
- function HW(e2, r2, l2, u2, f2) {
31193
+ function WW(e2, r2, l2, u2, f2) {
31194
31194
  e2 || (e2 = []);
31195
31195
  let p2 = [];
31196
31196
  c.default.Children.forEach(r2, (r3) => {
@@ -31211,7 +31211,7 @@ ${c}
31211
31211
  });
31212
31212
  return f2 ? m2 : T(m2, u2, l2);
31213
31213
  }
31214
- function UW(e2) {
31214
+ function GW(e2) {
31215
31215
  let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
31216
31216
  "x",
31217
31217
  "y",
@@ -31228,7 +31228,7 @@ ${c}
31228
31228
  if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r2}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
31229
31229
  }
31230
31230
  }
31231
- function WW(e2) {
31231
+ function KW(e2) {
31232
31232
  let { verticalCompact: r2, compactType: c2 } = e2 || {};
31233
31233
  return r2 === false ? null : c2;
31234
31234
  }
@@ -34033,7 +34033,7 @@ ${c}
34033
34033
  ], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
34034
34034
  let E = useIsDragging(), O, j;
34035
34035
  r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
34036
- let M = !f && !v, I, L, R, z, B, H, W, G, q, kW, AW, Z, jW, MW, NW, PW, FW, IW, LW, RW, zW, BW, VW, HW, UW, WW;
34036
+ let M = !f && !v, I, L, R, z, B, H, W, G, q, jW, MW, Z, NW, PW, FW, IW, LW, RW, zW, BW, VW, HW, UW, WW, GW, KW;
34037
34037
  if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
34038
34038
  let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
34039
34039
  r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
@@ -34052,23 +34052,23 @@ ${c}
34052
34052
  });
34053
34053
  }, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
34054
34054
  let y2 = v2;
34055
- r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, VW = "lg", r[58] === c.cells ? HW = r[59] : (HW = {
34055
+ r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, UW = "lg", r[58] === c.cells ? WW = r[59] : (WW = {
34056
34056
  lg: c.cells
34057
- }, r[58] = c.cells, r[59] = HW), UW = L, WW = S, R = false;
34057
+ }, r[58] = c.cells, r[59] = WW), GW = L, KW = S, R = false;
34058
34058
  let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
34059
34059
  r[60] !== b2 || r[61] !== w2 || r[62] !== T2 ? (z = cn("w-full mx-auto bg-background flex-1 min-h-full", b2, w2, T2), r[60] = b2, r[61] = w2, r[62] = T2, r[63] = z) : z = r[63], r[64] === f ? B = r[65] : (B = f ? [
34060
34060
  20,
34061
34061
  20
34062
- ] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, kW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (AW = (e3) => {
34062
+ ] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, jW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (MW = (e3) => {
34063
34063
  f || l({
34064
34064
  ...c,
34065
34065
  cells: e3
34066
34066
  });
34067
- }, r[66] = f, r[67] = c, r[68] = l, r[69] = AW) : AW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
34067
+ }, r[66] = f, r[67] = c, r[68] = l, r[69] = MW) : MW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
34068
34068
  i: g.i,
34069
34069
  w: g.w || 2,
34070
34070
  h: g.h || 2
34071
- } : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (jW = (e3, r2, u2) => {
34071
+ } : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (NW = (e3, r2, u2) => {
34072
34072
  O.onDragStop(), r2 && l({
34073
34073
  ...c,
34074
34074
  cells: [
@@ -34076,15 +34076,15 @@ ${c}
34076
34076
  r2
34077
34077
  ]
34078
34078
  });
34079
- }, r[72] = O, r[73] = c, r[74] = l, r[75] = jW) : jW = r[75], r[76] === O ? (MW = r[77], NW = r[78], PW = r[79]) : (MW = (e3, r2, c2, l2, u2) => {
34079
+ }, r[72] = O, r[73] = c, r[74] = l, r[75] = NW) : NW = r[75], r[76] === O ? (PW = r[77], FW = r[78], IW = r[79]) : (PW = (e3, r2, c2, l2, u2) => {
34080
34080
  O.onDragStart(u2);
34081
- }, NW = (e3, r2, c2, l2, u2) => {
34081
+ }, FW = (e3, r2, c2, l2, u2) => {
34082
34082
  O.onDragMove(u2);
34083
- }, PW = () => {
34083
+ }, IW = () => {
34084
34084
  O.onDragStop();
34085
- }, r[76] = O, r[77] = MW, r[78] = NW, r[79] = PW), FW = _temp3$2, IW = M, LW = M, RW = M, zW = M ? `.${DRAG_HANDLE}` : "noop";
34085
+ }, r[76] = O, r[77] = PW, r[78] = FW, r[79] = IW), LW = _temp3$2, RW = M, zW = M, BW = M, VW = M ? `.${DRAG_HANDLE}` : "noop";
34086
34086
  let E2;
34087
- r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), BW = u.filter(E2).map((r2) => {
34087
+ r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), HW = u.filter(E2).map((r2) => {
34088
34088
  let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
34089
34089
  code: r2.code,
34090
34090
  mode: d,
@@ -34114,14 +34114,14 @@ ${c}
34114
34114
  }, r2.id) : (0, import_jsx_runtime.jsx)("div", {
34115
34115
  children: m3
34116
34116
  }, r2.id);
34117
- }), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = kW, r[31] = AW, r[32] = Z, r[33] = jW, r[34] = MW, r[35] = NW, r[36] = PW, r[37] = FW, r[38] = IW, r[39] = LW, r[40] = RW, r[41] = zW, r[42] = BW, r[43] = VW, r[44] = HW, r[45] = UW, r[46] = WW;
34118
- } else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], kW = r[30], AW = r[31], Z = r[32], jW = r[33], MW = r[34], NW = r[35], PW = r[36], FW = r[37], IW = r[38], LW = r[39], RW = r[40], zW = r[41], BW = r[42], VW = r[43], HW = r[44], UW = r[45], WW = r[46];
34119
- let GW;
34120
- r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== kW || r[91] !== AW || r[92] !== Z || r[93] !== jW || r[94] !== MW || r[95] !== NW || r[96] !== PW || r[97] !== FW || r[98] !== IW || r[99] !== LW || r[100] !== RW || r[101] !== zW || r[102] !== BW || r[103] !== VW || r[104] !== HW || r[105] !== UW || r[106] !== WW ? (GW = (0, import_jsx_runtime.jsx)(I, {
34121
- breakpoint: VW,
34122
- layouts: HW,
34123
- style: UW,
34124
- cols: WW,
34117
+ }), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = jW, r[31] = MW, r[32] = Z, r[33] = NW, r[34] = PW, r[35] = FW, r[36] = IW, r[37] = LW, r[38] = RW, r[39] = zW, r[40] = BW, r[41] = VW, r[42] = HW, r[43] = UW, r[44] = WW, r[45] = GW, r[46] = KW;
34118
+ } else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], jW = r[30], MW = r[31], Z = r[32], NW = r[33], PW = r[34], FW = r[35], IW = r[36], LW = r[37], RW = r[38], zW = r[39], BW = r[40], VW = r[41], HW = r[42], UW = r[43], WW = r[44], GW = r[45], KW = r[46];
34119
+ let qW;
34120
+ r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== jW || r[91] !== MW || r[92] !== Z || r[93] !== NW || r[94] !== PW || r[95] !== FW || r[96] !== IW || r[97] !== LW || r[98] !== RW || r[99] !== zW || r[100] !== BW || r[101] !== VW || r[102] !== HW || r[103] !== UW || r[104] !== WW || r[105] !== GW || r[106] !== KW ? (qW = (0, import_jsx_runtime.jsx)(I, {
34121
+ breakpoint: UW,
34122
+ layouts: WW,
34123
+ style: GW,
34124
+ cols: KW,
34125
34125
  allowOverlap: R,
34126
34126
  className: z,
34127
34127
  containerPadding: B,
@@ -34129,23 +34129,23 @@ ${c}
34129
34129
  isBounded: W,
34130
34130
  compactType: G,
34131
34131
  preventCollision: q,
34132
- rowHeight: kW,
34133
- onLayoutChange: AW,
34132
+ rowHeight: jW,
34133
+ onLayoutChange: MW,
34134
34134
  droppingItem: Z,
34135
- onDrop: jW,
34136
- onDragStart: MW,
34137
- onDrag: NW,
34138
- onDragStop: PW,
34139
- onResizeStop: FW,
34140
- isDraggable: IW,
34141
- isDroppable: LW,
34142
- isResizable: RW,
34143
- draggableHandle: zW,
34144
- children: BW
34145
- }), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = kW, r[91] = AW, r[92] = Z, r[93] = jW, r[94] = MW, r[95] = NW, r[96] = PW, r[97] = FW, r[98] = IW, r[99] = LW, r[100] = RW, r[101] = zW, r[102] = BW, r[103] = VW, r[104] = HW, r[105] = UW, r[106] = WW, r[107] = GW) : GW = r[107];
34146
- let KW = GW, qW, JW, YW, XW, ZW, QW, $W;
34147
- if (r[108] !== u || r[109] !== KW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
34148
- $W = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
34135
+ onDrop: NW,
34136
+ onDragStart: PW,
34137
+ onDrag: FW,
34138
+ onDragStop: IW,
34139
+ onResizeStop: LW,
34140
+ isDraggable: RW,
34141
+ isDroppable: zW,
34142
+ isResizable: BW,
34143
+ draggableHandle: VW,
34144
+ children: HW
34145
+ }), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = jW, r[91] = MW, r[92] = Z, r[93] = NW, r[94] = PW, r[95] = FW, r[96] = IW, r[97] = LW, r[98] = RW, r[99] = zW, r[100] = BW, r[101] = VW, r[102] = HW, r[103] = UW, r[104] = WW, r[105] = GW, r[106] = KW, r[107] = qW) : qW = r[107];
34146
+ let JW = qW, YW, XW, ZW, QW, $W, eG, tG;
34147
+ if (r[108] !== u || r[109] !== JW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
34148
+ tG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
34149
34149
  bb0: {
34150
34150
  let e2;
34151
34151
  r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
@@ -34153,14 +34153,14 @@ ${c}
34153
34153
  if (f) {
34154
34154
  if (c.bordered) {
34155
34155
  let e4;
34156
- r[127] !== KW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
34156
+ r[127] !== JW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
34157
34157
  className: "flex flex-1 flex-col items-center",
34158
34158
  children: (0, import_jsx_runtime.jsx)("div", {
34159
34159
  style: L,
34160
34160
  className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
34161
- children: KW
34161
+ children: JW
34162
34162
  })
34163
- }), r[127] = KW, r[128] = L, r[129] = e4) : e4 = r[129], KW = e4;
34163
+ }), r[127] = JW, r[128] = L, r[129] = e4) : e4 = r[129], JW = e4;
34164
34164
  }
34165
34165
  let e3 = m2.filter(_temp4$2), l2;
34166
34166
  r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
@@ -34172,9 +34172,9 @@ ${c}
34172
34172
  stale: outputIsStale(e4, false),
34173
34173
  isScrollable: false,
34174
34174
  hidden: false
34175
- }, e4.id), r[130] = d, r[131] = l2), $W = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
34175
+ }, e4.id), r[130] = d, r[131] = l2), tG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
34176
34176
  children: [
34177
- KW,
34177
+ JW,
34178
34178
  (0, import_jsx_runtime.jsx)("div", {
34179
34179
  className: "hidden",
34180
34180
  children: e3.map(l2)
@@ -34185,31 +34185,31 @@ ${c}
34185
34185
  }
34186
34186
  if (c.bordered) {
34187
34187
  let e3;
34188
- r[132] === KW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
34188
+ r[132] === JW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
34189
34189
  className: "h-full overflow-auto",
34190
- children: KW
34191
- }), r[132] = KW, r[133] = e3);
34190
+ children: JW
34191
+ }), r[132] = JW, r[133] = e3);
34192
34192
  let c2;
34193
34193
  r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
34194
34194
  style: L,
34195
34195
  className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
34196
34196
  children: e3
34197
- }), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], KW = c2;
34197
+ }), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], JW = c2;
34198
34198
  }
34199
- r[137] !== v || r[138] !== c || r[139] !== l ? (QW = (0, import_jsx_runtime.jsx)(GridControls, {
34199
+ r[137] !== v || r[138] !== c || r[139] !== l ? (eG = (0, import_jsx_runtime.jsx)(GridControls, {
34200
34200
  layout: c,
34201
34201
  setLayout: l,
34202
34202
  isLocked: v,
34203
34203
  setIsLocked: y
34204
- }), r[137] = v, r[138] = c, r[139] = l, r[140] = QW) : QW = r[140];
34204
+ }), r[137] = v, r[138] = c, r[139] = l, r[140] = eG) : eG = r[140];
34205
34205
  let g2;
34206
- r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (XW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = XW, r[142] = g2) : (XW = r[141], g2 = r[142]), r[143] === KW ? ZW = r[144] : (ZW = (0, import_jsx_runtime.jsx)("div", {
34206
+ r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (QW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = QW, r[142] = g2) : (QW = r[141], g2 = r[142]), r[143] === JW ? $W = r[144] : ($W = (0, import_jsx_runtime.jsx)("div", {
34207
34207
  className: g2,
34208
- children: KW
34209
- }), r[143] = KW, r[144] = ZW), qW = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (JW = (0, import_jsx_runtime.jsx)("div", {
34208
+ children: JW
34209
+ }), r[143] = JW, r[144] = $W), YW = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (XW = (0, import_jsx_runtime.jsx)("div", {
34210
34210
  className: "text font-bold text-(--slate-20) shrink-0",
34211
34211
  children: "Outputs"
34212
- }), r[145] = JW) : JW = r[145];
34212
+ }), r[145] = XW) : XW = r[145];
34213
34213
  let b2;
34214
34214
  r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
34215
34215
  draggable: true,
@@ -34235,34 +34235,34 @@ ${c}
34235
34235
  stale: outputIsStale(e3, false),
34236
34236
  hidden: false
34237
34237
  })
34238
- }, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], YW = m2.map(b2);
34239
- }
34240
- r[108] = u, r[109] = KW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = qW, r[118] = JW, r[119] = YW, r[120] = XW, r[121] = ZW, r[122] = QW, r[123] = $W, r[124] = KW;
34241
- } else qW = r[117], JW = r[118], YW = r[119], XW = r[120], ZW = r[121], QW = r[122], $W = r[123], KW = r[124];
34242
- if ($W !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return $W;
34243
- let eG;
34244
- r[150] !== qW || r[151] !== JW || r[152] !== YW ? (eG = (0, import_jsx_runtime.jsxs)("div", {
34245
- className: qW,
34238
+ }, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], ZW = m2.map(b2);
34239
+ }
34240
+ r[108] = u, r[109] = JW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = YW, r[118] = XW, r[119] = ZW, r[120] = QW, r[121] = $W, r[122] = eG, r[123] = tG, r[124] = JW;
34241
+ } else YW = r[117], XW = r[118], ZW = r[119], QW = r[120], $W = r[121], eG = r[122], tG = r[123], JW = r[124];
34242
+ if (tG !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return tG;
34243
+ let nG;
34244
+ r[150] !== YW || r[151] !== XW || r[152] !== ZW ? (nG = (0, import_jsx_runtime.jsxs)("div", {
34245
+ className: YW,
34246
34246
  children: [
34247
- JW,
34248
- YW
34247
+ XW,
34248
+ ZW
34249
34249
  ]
34250
- }), r[150] = qW, r[151] = JW, r[152] = YW, r[153] = eG) : eG = r[153];
34251
- let tG;
34252
- r[154] !== XW || r[155] !== ZW || r[156] !== eG ? (tG = (0, import_jsx_runtime.jsxs)("div", {
34253
- className: XW,
34250
+ }), r[150] = YW, r[151] = XW, r[152] = ZW, r[153] = nG) : nG = r[153];
34251
+ let rG;
34252
+ r[154] !== QW || r[155] !== $W || r[156] !== nG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
34253
+ className: QW,
34254
34254
  children: [
34255
- ZW,
34256
- eG
34255
+ $W,
34256
+ nG
34257
34257
  ]
34258
- }), r[154] = XW, r[155] = ZW, r[156] = eG, r[157] = tG) : tG = r[157];
34259
- let nG;
34260
- return r[158] !== QW || r[159] !== tG ? (nG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
34258
+ }), r[154] = QW, r[155] = $W, r[156] = nG, r[157] = rG) : rG = r[157];
34259
+ let iG;
34260
+ return r[158] !== eG || r[159] !== rG ? (iG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
34261
34261
  children: [
34262
- QW,
34263
- tG
34262
+ eG,
34263
+ rG
34264
34264
  ]
34265
- }), r[158] = QW, r[159] = tG, r[160] = nG) : nG = r[160], nG;
34265
+ }), r[158] = eG, r[159] = rG, r[160] = iG) : iG = r[160], iG;
34266
34266
  };
34267
34267
  var GridCell = (0, import_react.memo)((e) => {
34268
34268
  let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _, stale: v } = e, y;
@@ -34563,25 +34563,25 @@ ${c}
34563
34563
  G
34564
34564
  ]
34565
34565
  }), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
34566
- let kW;
34567
- r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (kW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
34566
+ let jW;
34567
+ r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
34568
34568
  className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
34569
- }), r[35] = kW) : kW = r[35];
34570
- let AW;
34571
- r[36] === l ? AW = r[37] : (AW = (0, import_jsx_runtime.jsx)(X, {
34569
+ }), r[35] = jW) : jW = r[35];
34570
+ let MW;
34571
+ r[36] === l ? MW = r[37] : (MW = (0, import_jsx_runtime.jsx)(X, {
34572
34572
  className: "h-4 w-4 opacity-60 hover:opacity-100",
34573
34573
  onClick: () => l()
34574
- }), r[36] = l, r[37] = AW);
34574
+ }), r[36] = l, r[37] = MW);
34575
34575
  let Z;
34576
- return r[38] !== I || r[39] !== q || r[40] !== AW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
34576
+ return r[38] !== I || r[39] !== q || r[40] !== MW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
34577
34577
  className: w,
34578
34578
  children: [
34579
34579
  I,
34580
34580
  q,
34581
- kW,
34582
- AW
34581
+ jW,
34582
+ MW
34583
34583
  ]
34584
- }), r[38] = I, r[39] = q, r[40] = AW, r[41] = w, r[42] = Z) : Z = r[42], Z;
34584
+ }), r[38] = I, r[39] = q, r[40] = MW, r[41] = w, r[42] = Z) : Z = r[42], Z;
34585
34585
  };
34586
34586
  function isSidebarCell(e) {
34587
34587
  var _a5;
@@ -36585,28 +36585,28 @@ ${c}
36585
36585
  }, [
36586
36586
  T,
36587
36587
  M
36588
- ]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), kW = (0, import_react.useMemo)(() => j.getEnabled(), [
36588
+ ]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), jW = (0, import_react.useMemo)(() => j.getEnabled(), [
36589
36589
  j
36590
- ]), AW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: jW, measuringScheduled: MW } = useDroppableMeasuring(kW, {
36590
+ ]), MW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: NW, measuringScheduled: PW } = useDroppableMeasuring(jW, {
36591
36591
  dragging: w,
36592
36592
  dependencies: [
36593
36593
  O.x,
36594
36594
  O.y
36595
36595
  ],
36596
- config: AW.droppable
36597
- }), NW = useCachedNode(E, T), PW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
36596
+ config: MW.droppable
36597
+ }), FW = useCachedNode(E, T), IW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
36598
36598
  H
36599
- ]), FW = fG(), IW = useInitialRect(NW, AW.draggable.measure);
36599
+ ]), LW = mG(), RW = useInitialRect(FW, MW.draggable.measure);
36600
36600
  useLayoutShiftScrollCompensation({
36601
36601
  activeNode: T == null ? null : E.get(T),
36602
- config: FW.layoutShiftCompensation,
36603
- initialRect: IW,
36604
- measure: AW.draggable.measure
36602
+ config: LW.layoutShiftCompensation,
36603
+ initialRect: RW,
36604
+ measure: MW.draggable.measure
36605
36605
  });
36606
- let LW = useRect(NW, AW.draggable.measure, IW), RW = useRect(NW ? NW.parentElement : null), zW = (0, import_react.useRef)({
36606
+ let zW = useRect(FW, MW.draggable.measure, RW), BW = useRect(FW ? FW.parentElement : null), VW = (0, import_react.useRef)({
36607
36607
  activatorEvent: null,
36608
36608
  active: null,
36609
- activeNode: NW,
36609
+ activeNode: FW,
36610
36610
  collisionRect: null,
36611
36611
  collisions: null,
36612
36612
  droppableRects: Z,
@@ -36617,45 +36617,45 @@ ${c}
36617
36617
  over: null,
36618
36618
  scrollableAncestors: [],
36619
36619
  scrollAdjustedTranslate: null
36620
- }), BW = j.getNodeFor((_a5 = zW.current.over) == null ? void 0 : _a5.id), VW = useDragOverlayMeasuring({
36621
- measure: AW.dragOverlay.measure
36622
- }), HW = VW.nodeRef.current ?? NW, UW = w ? VW.rect ?? LW : null, WW = !!(VW.nodeRef.current && VW.rect), GW = useRectDelta(WW ? null : LW), KW = useWindowRect(HW ? getWindow(HW) : null), qW = useScrollableAncestors(w ? BW ?? NW : null), JW = useRects(qW), YW = applyModifiers(m, {
36620
+ }), HW = j.getNodeFor((_a5 = VW.current.over) == null ? void 0 : _a5.id), UW = useDragOverlayMeasuring({
36621
+ measure: MW.dragOverlay.measure
36622
+ }), WW = UW.nodeRef.current ?? FW, GW = w ? UW.rect ?? zW : null, KW = !!(UW.nodeRef.current && UW.rect), qW = useRectDelta(KW ? null : zW), JW = useWindowRect(WW ? getWindow(WW) : null), YW = useScrollableAncestors(w ? HW ?? FW : null), XW = useRects(YW), ZW = applyModifiers(m, {
36623
36623
  transform: {
36624
- x: O.x - GW.x,
36625
- y: O.y - GW.y,
36624
+ x: O.x - qW.x,
36625
+ y: O.y - qW.y,
36626
36626
  scaleX: 1,
36627
36627
  scaleY: 1
36628
36628
  },
36629
36629
  activatorEvent: H,
36630
36630
  active: L,
36631
- activeNodeRect: LW,
36632
- containerNodeRect: RW,
36633
- draggingNodeRect: UW,
36634
- over: zW.current.over,
36635
- overlayNodeRect: VW.rect,
36636
- scrollableAncestors: qW,
36637
- scrollableAncestorRects: JW,
36638
- windowRect: KW
36639
- }), XW = PW ? add(PW, O) : null, ZW = useScrollOffsets(qW), QW = useScrollOffsetsDelta(ZW), $W = useScrollOffsetsDelta(ZW, [
36640
- LW
36641
- ]), eG = add(YW, QW), tG = UW ? getAdjustedRect(UW, YW) : null, nG = L && tG ? f({
36631
+ activeNodeRect: zW,
36632
+ containerNodeRect: BW,
36633
+ draggingNodeRect: GW,
36634
+ over: VW.current.over,
36635
+ overlayNodeRect: UW.rect,
36636
+ scrollableAncestors: YW,
36637
+ scrollableAncestorRects: XW,
36638
+ windowRect: JW
36639
+ }), QW = IW ? add(IW, O) : null, $W = useScrollOffsets(YW), eG = useScrollOffsetsDelta($W), tG = useScrollOffsetsDelta($W, [
36640
+ zW
36641
+ ]), nG = add(ZW, eG), rG = GW ? getAdjustedRect(GW, ZW) : null, iG = L && rG ? f({
36642
36642
  active: L,
36643
- collisionRect: tG,
36643
+ collisionRect: rG,
36644
36644
  droppableRects: Z,
36645
- droppableContainers: kW,
36646
- pointerCoordinates: XW
36647
- }) : null, rG = getFirstCollision(nG, "id"), [iG, aG] = (0, import_react.useState)(null), oG = adjustScale(WW ? YW : add(YW, $W), (iG == null ? void 0 : iG.rect) ?? null, LW), sG = (0, import_react.useRef)(null), cG = (0, import_react.useCallback)((e2, r2) => {
36645
+ droppableContainers: jW,
36646
+ pointerCoordinates: QW
36647
+ }) : null, aG = getFirstCollision(iG, "id"), [oG, sG] = (0, import_react.useState)(null), cG = adjustScale(KW ? ZW : add(ZW, tG), (oG == null ? void 0 : oG.rect) ?? null, zW), lG = (0, import_react.useRef)(null), uG = (0, import_react.useCallback)((e2, r2) => {
36648
36648
  let { sensor: c2, options: l2 } = r2;
36649
36649
  if (R.current == null) return;
36650
36650
  let u2 = E.get(R.current);
36651
36651
  if (!u2) return;
36652
36652
  let d2 = e2.nativeEvent;
36653
- sG.current = new c2({
36653
+ lG.current = new c2({
36654
36654
  active: R.current,
36655
36655
  activeNode: u2,
36656
36656
  event: d2,
36657
36657
  options: l2,
36658
- context: zW,
36658
+ context: VW,
36659
36659
  onAbort(e3) {
36660
36660
  if (!E.get(e3)) return;
36661
36661
  let { onDragAbort: r3 } = G.current, c3 = {
@@ -36700,7 +36700,7 @@ ${c}
36700
36700
  }), v({
36701
36701
  type: "onDragStart",
36702
36702
  event: u3
36703
- }), B(sG.current), W(d2);
36703
+ }), B(lG.current), W(d2);
36704
36704
  });
36705
36705
  },
36706
36706
  onMove(e3) {
@@ -36714,7 +36714,7 @@ ${c}
36714
36714
  });
36715
36715
  function f2(e3) {
36716
36716
  return async function() {
36717
- let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = zW.current, f3 = null;
36717
+ let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = VW.current, f3 = null;
36718
36718
  if (r3 && u3) {
36719
36719
  let { cancelDrop: p2 } = G.current;
36720
36720
  f3 = {
@@ -36728,7 +36728,7 @@ ${c}
36728
36728
  R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
36729
36729
  _({
36730
36730
  type: e3
36731
- }), S(Status.Uninitialized), aG(null), B(null), W(null), sG.current = null;
36731
+ }), S(Status.Uninitialized), sG(null), B(null), W(null), lG.current = null;
36732
36732
  let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
36733
36733
  if (f3) {
36734
36734
  let e4 = G.current[r4];
@@ -36742,7 +36742,7 @@ ${c}
36742
36742
  }
36743
36743
  }, [
36744
36744
  E
36745
- ]), lG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
36745
+ ]), dG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
36746
36746
  let u2 = c2.nativeEvent, d2 = E.get(l2);
36747
36747
  if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
36748
36748
  let f2 = {
@@ -36750,26 +36750,26 @@ ${c}
36750
36750
  };
36751
36751
  e2(c2, r2.options, f2) === true && (u2.dndKit = {
36752
36752
  capturedBy: r2.sensor
36753
- }, R.current = l2, cG(c2, r2));
36753
+ }, R.current = l2, uG(c2, r2));
36754
36754
  }, [
36755
36755
  E,
36756
- cG
36756
+ uG
36757
36757
  ]));
36758
36758
  useSensorSetup(d), useIsomorphicLayoutEffect(() => {
36759
- LW && b === Status.Initializing && S(Status.Initialized);
36759
+ zW && b === Status.Initializing && S(Status.Initialized);
36760
36760
  }, [
36761
- LW,
36761
+ zW,
36762
36762
  b
36763
36763
  ]), (0, import_react.useEffect)(() => {
36764
- let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = zW.current;
36764
+ let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = VW.current;
36765
36765
  if (!r2 || !c2) return;
36766
36766
  let d2 = {
36767
36767
  active: r2,
36768
36768
  activatorEvent: c2,
36769
36769
  collisions: l2,
36770
36770
  delta: {
36771
- x: eG.x,
36772
- y: eG.y
36771
+ x: nG.x,
36772
+ y: nG.y
36773
36773
  },
36774
36774
  over: u2
36775
36775
  };
@@ -36780,12 +36780,12 @@ ${c}
36780
36780
  });
36781
36781
  });
36782
36782
  }, [
36783
- eG.x,
36784
- eG.y
36783
+ nG.x,
36784
+ nG.y
36785
36785
  ]), (0, import_react.useEffect)(() => {
36786
- let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = zW.current;
36786
+ let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = VW.current;
36787
36787
  if (!e2 || R.current == null || !r2 || !u2) return;
36788
- let { onDragOver: d2 } = G.current, f2 = l2.get(rG), p2 = f2 && f2.rect.current ? {
36788
+ let { onDragOver: d2 } = G.current, f2 = l2.get(aG), p2 = f2 && f2.rect.current ? {
36789
36789
  id: f2.id,
36790
36790
  rect: f2.rect.current,
36791
36791
  data: f2.data,
@@ -36801,127 +36801,127 @@ ${c}
36801
36801
  over: p2
36802
36802
  };
36803
36803
  (0, import_react_dom.unstable_batchedUpdates)(() => {
36804
- aG(p2), d2 == null ? void 0 : d2(m2), v({
36804
+ sG(p2), d2 == null ? void 0 : d2(m2), v({
36805
36805
  type: "onDragOver",
36806
36806
  event: m2
36807
36807
  });
36808
36808
  });
36809
36809
  }, [
36810
- rG
36810
+ aG
36811
36811
  ]), useIsomorphicLayoutEffect(() => {
36812
- zW.current = {
36812
+ VW.current = {
36813
36813
  activatorEvent: H,
36814
36814
  active: L,
36815
- activeNode: NW,
36816
- collisionRect: tG,
36817
- collisions: nG,
36815
+ activeNode: FW,
36816
+ collisionRect: rG,
36817
+ collisions: iG,
36818
36818
  droppableRects: Z,
36819
36819
  draggableNodes: E,
36820
- draggingNode: HW,
36821
- draggingNodeRect: UW,
36820
+ draggingNode: WW,
36821
+ draggingNodeRect: GW,
36822
36822
  droppableContainers: j,
36823
- over: iG,
36824
- scrollableAncestors: qW,
36825
- scrollAdjustedTranslate: eG
36823
+ over: oG,
36824
+ scrollableAncestors: YW,
36825
+ scrollAdjustedTranslate: nG
36826
36826
  }, I.current = {
36827
- initial: UW,
36828
- translated: tG
36827
+ initial: GW,
36828
+ translated: rG
36829
36829
  };
36830
36830
  }, [
36831
36831
  L,
36832
- NW,
36833
- nG,
36834
- tG,
36832
+ FW,
36833
+ iG,
36834
+ rG,
36835
36835
  E,
36836
- HW,
36837
- UW,
36836
+ WW,
36837
+ GW,
36838
36838
  Z,
36839
36839
  j,
36840
- iG,
36841
- qW,
36842
- eG
36840
+ oG,
36841
+ YW,
36842
+ nG
36843
36843
  ]), useAutoScroller({
36844
- ...FW,
36844
+ ...LW,
36845
36845
  delta: O,
36846
- draggingRect: tG,
36847
- pointerCoordinates: XW,
36848
- scrollableAncestors: qW,
36849
- scrollableAncestorRects: JW
36846
+ draggingRect: rG,
36847
+ pointerCoordinates: QW,
36848
+ scrollableAncestors: YW,
36849
+ scrollableAncestorRects: XW
36850
36850
  });
36851
- let uG = (0, import_react.useMemo)(() => ({
36851
+ let fG = (0, import_react.useMemo)(() => ({
36852
36852
  active: L,
36853
- activeNode: NW,
36854
- activeNodeRect: LW,
36853
+ activeNode: FW,
36854
+ activeNodeRect: zW,
36855
36855
  activatorEvent: H,
36856
- collisions: nG,
36857
- containerNodeRect: RW,
36858
- dragOverlay: VW,
36856
+ collisions: iG,
36857
+ containerNodeRect: BW,
36858
+ dragOverlay: UW,
36859
36859
  draggableNodes: E,
36860
36860
  droppableContainers: j,
36861
36861
  droppableRects: Z,
36862
- over: iG,
36863
- measureDroppableContainers: jW,
36864
- scrollableAncestors: qW,
36865
- scrollableAncestorRects: JW,
36866
- measuringConfiguration: AW,
36867
- measuringScheduled: MW,
36868
- windowRect: KW
36862
+ over: oG,
36863
+ measureDroppableContainers: NW,
36864
+ scrollableAncestors: YW,
36865
+ scrollableAncestorRects: XW,
36866
+ measuringConfiguration: MW,
36867
+ measuringScheduled: PW,
36868
+ windowRect: JW
36869
36869
  }), [
36870
36870
  L,
36871
- NW,
36872
- LW,
36871
+ FW,
36872
+ zW,
36873
36873
  H,
36874
- nG,
36875
- RW,
36876
- VW,
36874
+ iG,
36875
+ BW,
36876
+ UW,
36877
36877
  E,
36878
36878
  j,
36879
36879
  Z,
36880
- iG,
36881
- jW,
36882
- qW,
36883
- JW,
36884
- AW,
36880
+ oG,
36881
+ NW,
36882
+ YW,
36883
+ XW,
36885
36884
  MW,
36886
- KW
36887
- ]), dG = (0, import_react.useMemo)(() => ({
36885
+ PW,
36886
+ JW
36887
+ ]), pG = (0, import_react.useMemo)(() => ({
36888
36888
  activatorEvent: H,
36889
- activators: lG,
36889
+ activators: dG,
36890
36890
  active: L,
36891
- activeNodeRect: LW,
36891
+ activeNodeRect: zW,
36892
36892
  ariaDescribedById: {
36893
36893
  draggable: q
36894
36894
  },
36895
36895
  dispatch: _,
36896
36896
  draggableNodes: E,
36897
- over: iG,
36898
- measureDroppableContainers: jW
36897
+ over: oG,
36898
+ measureDroppableContainers: NW
36899
36899
  }), [
36900
36900
  H,
36901
- lG,
36901
+ dG,
36902
36902
  L,
36903
- LW,
36903
+ zW,
36904
36904
  _,
36905
36905
  q,
36906
36906
  E,
36907
- iG,
36908
- jW
36907
+ oG,
36908
+ NW
36909
36909
  ]);
36910
36910
  return import_react.createElement(DndMonitorContext.Provider, {
36911
36911
  value: y
36912
36912
  }, import_react.createElement(InternalContext.Provider, {
36913
- value: dG
36913
+ value: pG
36914
36914
  }, import_react.createElement(PublicContext.Provider, {
36915
- value: uG
36915
+ value: fG
36916
36916
  }, import_react.createElement(ActiveDraggableContext.Provider, {
36917
- value: oG
36917
+ value: cG
36918
36918
  }, u)), import_react.createElement(RestoreFocus, {
36919
36919
  disabled: (c == null ? void 0 : c.restoreFocus) === false
36920
36920
  })), import_react.createElement(Accessibility, {
36921
36921
  ...c,
36922
36922
  hiddenTextDescribedById: q
36923
36923
  }));
36924
- function fG() {
36924
+ function mG() {
36925
36925
  let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
36926
36926
  return typeof l == "object" ? {
36927
36927
  ...l,
@@ -37449,7 +37449,7 @@ ${c}
37449
37449
  updateMeasurementsFor: I,
37450
37450
  ...m
37451
37451
  }
37452
- }), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: kW, listeners: AW, isDragging: Z, over: jW, setActivatorNodeRef: MW, transform: NW } = useDraggable({
37452
+ }), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: jW, listeners: MW, isDragging: Z, over: NW, setActivatorNodeRef: PW, transform: FW } = useDraggable({
37453
37453
  id: f,
37454
37454
  data: M,
37455
37455
  attributes: {
@@ -37457,60 +37457,60 @@ ${c}
37457
37457
  ...c
37458
37458
  },
37459
37459
  disabled: O.draggable
37460
- }), PW = useCombinedRefs(B, kW), FW = !!H, IW = FW && !b && isValidIndex(v) && isValidIndex(w), LW = !T && Z, RW = IW ? (LW && IW ? NW : null) ?? (p ?? E)({
37460
+ }), IW = useCombinedRefs(B, jW), LW = !!H, RW = LW && !b && isValidIndex(v) && isValidIndex(w), zW = !T && Z, BW = RW ? (zW && RW ? FW : null) ?? (p ?? E)({
37461
37461
  rects: S,
37462
37462
  activeNodeRect: G,
37463
37463
  activeIndex: v,
37464
37464
  overIndex: w,
37465
37465
  index: j
37466
- }) : null, zW = isValidIndex(v) && isValidIndex(w) ? d({
37466
+ }) : null, VW = isValidIndex(v) && isValidIndex(w) ? d({
37467
37467
  id: f,
37468
37468
  items: g,
37469
37469
  activeIndex: v,
37470
37470
  overIndex: w
37471
- }) : j, BW = H == null ? void 0 : H.id, VW = (0, import_react.useRef)({
37472
- activeId: BW,
37471
+ }) : j, HW = H == null ? void 0 : H.id, UW = (0, import_react.useRef)({
37472
+ activeId: HW,
37473
37473
  items: g,
37474
- newIndex: zW,
37474
+ newIndex: VW,
37475
37475
  containerId: _
37476
- }), HW = g !== VW.current.items, UW = r({
37476
+ }), WW = g !== UW.current.items, GW = r({
37477
37477
  active: H,
37478
37478
  containerId: _,
37479
37479
  isDragging: Z,
37480
- isSorting: FW,
37480
+ isSorting: LW,
37481
37481
  id: f,
37482
37482
  index: j,
37483
37483
  items: g,
37484
- newIndex: VW.current.newIndex,
37485
- previousItems: VW.current.items,
37486
- previousContainerId: VW.current.containerId,
37484
+ newIndex: UW.current.newIndex,
37485
+ previousItems: UW.current.items,
37486
+ previousContainerId: UW.current.containerId,
37487
37487
  transition: h,
37488
- wasDragging: VW.current.activeId != null
37489
- }), WW = useDerivedTransform({
37490
- disabled: !UW,
37488
+ wasDragging: UW.current.activeId != null
37489
+ }), KW = useDerivedTransform({
37490
+ disabled: !GW,
37491
37491
  index: j,
37492
37492
  node: R,
37493
37493
  rect: L
37494
37494
  });
37495
37495
  return (0, import_react.useEffect)(() => {
37496
- FW && VW.current.newIndex !== zW && (VW.current.newIndex = zW), _ !== VW.current.containerId && (VW.current.containerId = _), g !== VW.current.items && (VW.current.items = g);
37496
+ LW && UW.current.newIndex !== VW && (UW.current.newIndex = VW), _ !== UW.current.containerId && (UW.current.containerId = _), g !== UW.current.items && (UW.current.items = g);
37497
37497
  }, [
37498
- FW,
37499
- zW,
37498
+ LW,
37499
+ VW,
37500
37500
  _,
37501
37501
  g
37502
37502
  ]), (0, import_react.useEffect)(() => {
37503
- if (BW === VW.current.activeId) return;
37504
- if (BW != null && VW.current.activeId == null) {
37505
- VW.current.activeId = BW;
37503
+ if (HW === UW.current.activeId) return;
37504
+ if (HW != null && UW.current.activeId == null) {
37505
+ UW.current.activeId = HW;
37506
37506
  return;
37507
37507
  }
37508
37508
  let e2 = setTimeout(() => {
37509
- VW.current.activeId = BW;
37509
+ UW.current.activeId = HW;
37510
37510
  }, 50);
37511
37511
  return () => clearTimeout(e2);
37512
37512
  }, [
37513
- BW
37513
+ HW
37514
37514
  ]), {
37515
37515
  active: H,
37516
37516
  activeIndex: v,
@@ -37518,25 +37518,25 @@ ${c}
37518
37518
  data: M,
37519
37519
  rect: L,
37520
37520
  index: j,
37521
- newIndex: zW,
37521
+ newIndex: VW,
37522
37522
  items: g,
37523
37523
  isOver: z,
37524
- isSorting: FW,
37524
+ isSorting: LW,
37525
37525
  isDragging: Z,
37526
- listeners: AW,
37526
+ listeners: MW,
37527
37527
  node: R,
37528
37528
  overIndex: w,
37529
- over: jW,
37530
- setNodeRef: PW,
37531
- setActivatorNodeRef: MW,
37529
+ over: NW,
37530
+ setNodeRef: IW,
37531
+ setActivatorNodeRef: PW,
37532
37532
  setDroppableNodeRef: B,
37533
- setDraggableNodeRef: kW,
37534
- transform: WW ?? RW,
37535
- transition: GW()
37533
+ setDraggableNodeRef: jW,
37534
+ transform: KW ?? BW,
37535
+ transition: qW()
37536
37536
  };
37537
- function GW() {
37538
- if (WW || HW && VW.current.newIndex === j) return disabledTransition;
37539
- if (!(LW && !isKeyboardEvent(W) || !h) && (FW || UW)) return CSS$1.Transition.toString({
37537
+ function qW() {
37538
+ if (KW || WW && UW.current.newIndex === j) return disabledTransition;
37539
+ if (!(zW && !isKeyboardEvent(W) || !h) && (LW || GW)) return CSS$1.Transition.toString({
37540
37540
  ...h,
37541
37541
  property: transitionProperty
37542
37542
  });
@@ -37836,13 +37836,13 @@ ${c}
37836
37836
  G
37837
37837
  ]
37838
37838
  }), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
37839
- let kW = q;
37840
- if (!v && !g) return kW;
37841
- let AW;
37842
- r[46] === kW ? AW = r[47] : (AW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
37839
+ let jW = q;
37840
+ if (!v && !g) return jW;
37841
+ let MW;
37842
+ r[46] === jW ? MW = r[47] : (MW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
37843
37843
  asChild: true,
37844
- children: kW
37845
- }), r[46] = kW, r[47] = AW);
37844
+ children: jW
37845
+ }), r[46] = jW, r[47] = MW);
37846
37846
  let Z;
37847
37847
  r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
37848
37848
  onSelect: v,
@@ -37853,10 +37853,10 @@ ${c}
37853
37853
  "Add cell"
37854
37854
  ]
37855
37855
  }), r[48] = v, r[49] = Z);
37856
- let jW;
37857
- r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = jW) : jW = r[50];
37858
- let MW;
37859
- r[51] === g ? MW = r[52] : (MW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
37856
+ let NW;
37857
+ r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (NW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = NW) : NW = r[50];
37858
+ let PW;
37859
+ r[51] === g ? PW = r[52] : (PW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
37860
37860
  variant: "danger",
37861
37861
  onSelect: g,
37862
37862
  children: [
@@ -37865,22 +37865,22 @@ ${c}
37865
37865
  }),
37866
37866
  "Delete cell"
37867
37867
  ]
37868
- }), r[51] = g, r[52] = MW);
37869
- let NW;
37870
- r[53] !== Z || r[54] !== MW ? (NW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
37868
+ }), r[51] = g, r[52] = PW);
37869
+ let FW;
37870
+ r[53] !== Z || r[54] !== PW ? (FW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
37871
37871
  children: [
37872
37872
  Z,
37873
- jW,
37874
- MW
37873
+ NW,
37874
+ PW
37875
37875
  ]
37876
- }), r[53] = Z, r[54] = MW, r[55] = NW) : NW = r[55];
37877
- let PW;
37878
- return r[56] !== AW || r[57] !== NW ? (PW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
37876
+ }), r[53] = Z, r[54] = PW, r[55] = FW) : FW = r[55];
37877
+ let IW;
37878
+ return r[56] !== MW || r[57] !== FW ? (IW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
37879
37879
  children: [
37880
- AW,
37881
- NW
37880
+ MW,
37881
+ FW
37882
37882
  ]
37883
- }), r[56] = AW, r[57] = NW, r[58] = PW) : PW = r[58], PW;
37883
+ }), r[56] = MW, r[57] = FW, r[58] = IW) : IW = r[58], IW;
37884
37884
  }, InsertCellLine = (e) => {
37885
37885
  let r = (0, import_compiler_runtime$10.c)(10), { position: c, onInsert: l } = e, u = c === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", d;
37886
37886
  r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", u), r[0] = u, r[1] = d);
@@ -37934,10 +37934,10 @@ ${c}
37934
37934
  ...B,
37935
37935
  ...h
37936
37936
  }, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
37937
- let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", kW = w && !T && "opacity-35", AW = T && "opacity-95 shadow-lg", Z;
37938
- r[25] !== l || r[26] !== kW || r[27] !== AW || r[28] !== q ? (Z = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, kW, AW, l), r[25] = l, r[26] = kW, r[27] = AW, r[28] = q, r[29] = Z) : Z = r[29];
37939
- let jW;
37940
- r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (jW = G && (0, import_jsx_runtime.jsx)("div", {
37937
+ let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", jW = w && !T && "opacity-35", MW = T && "opacity-95 shadow-lg", Z;
37938
+ r[25] !== l || r[26] !== jW || r[27] !== MW || r[28] !== q ? (Z = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, jW, MW, l), r[25] = l, r[26] = jW, r[27] = MW, r[28] = q, r[29] = Z) : Z = r[29];
37939
+ let NW;
37940
+ r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (NW = G && (0, import_jsx_runtime.jsx)("div", {
37941
37941
  className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
37942
37942
  style: {
37943
37943
  transform: `scale(${I})`,
@@ -37953,14 +37953,14 @@ ${c}
37953
37953
  output: c.output,
37954
37954
  stale: outputIsStale(c, false)
37955
37955
  })
37956
- }), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = jW) : jW = r[36];
37957
- let MW;
37958
- r[37] === z ? MW = r[38] : (MW = z && (0, import_jsx_runtime.jsx)("div", {
37956
+ }), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = NW) : NW = r[36];
37957
+ let PW;
37958
+ r[37] === z ? PW = r[38] : (PW = z && (0, import_jsx_runtime.jsx)("div", {
37959
37959
  className: "absolute inset-0 bg-muted/50 pointer-events-none",
37960
37960
  "aria-hidden": true
37961
- }), r[37] = z, r[38] = MW);
37962
- let NW;
37963
- r[39] !== z || r[40] !== R ? (NW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
37961
+ }), r[37] = z, r[38] = PW);
37962
+ let FW;
37963
+ r[39] !== z || r[40] !== R ? (FW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
37964
37964
  content: (0, import_jsx_runtime.jsx)("span", {
37965
37965
  className: "text-xs opacity-80",
37966
37966
  children: R.description
@@ -37972,19 +37972,19 @@ ${c}
37972
37972
  className: "h-3.5 w-3.5"
37973
37973
  })
37974
37974
  })
37975
- }), r[39] = z, r[40] = R, r[41] = NW) : NW = r[41];
37976
- let PW;
37977
- return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== jW || r[47] !== MW || r[48] !== NW ? (PW = (0, import_jsx_runtime.jsxs)("div", {
37975
+ }), r[39] = z, r[40] = R, r[41] = FW) : FW = r[41];
37976
+ let IW;
37977
+ return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== NW || r[47] !== PW || r[48] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
37978
37978
  ref: f,
37979
37979
  className: Z,
37980
37980
  style: W,
37981
37981
  ...d,
37982
37982
  children: [
37983
- jW,
37984
- MW,
37985
- NW
37983
+ NW,
37984
+ PW,
37985
+ FW
37986
37986
  ]
37987
- }), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = jW, r[47] = MW, r[48] = NW, r[49] = PW) : PW = r[49], PW;
37987
+ }), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = NW, r[47] = PW, r[48] = FW, r[49] = IW) : IW = r[49], IW;
37988
37988
  }, MiniCodePreview = (e) => {
37989
37989
  let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
37990
37990
  return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
@@ -38024,7 +38024,7 @@ ${c}
38024
38024
  function _temp2$2(e) {
38025
38025
  e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
38026
38026
  }
38027
- var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BuQ2GKAM.js"));
38027
+ var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-D8A33Afr.js"));
38028
38028
  const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
38029
38029
  var _a5;
38030
38030
  let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
@@ -38079,15 +38079,20 @@ ${c}
38079
38079
  ]).optional(),
38080
38080
  speakerNotes: string().optional(),
38081
38081
  showCode: boolean().optional()
38082
- }), DeckConfigSchema = looseObject({
38083
- transition: _enum([
38084
- "none",
38085
- "fade",
38086
- "slide",
38087
- "convex",
38088
- "concave",
38089
- "zoom"
38090
- ]).optional()
38082
+ }), DeckTransitionSchema = _enum([
38083
+ "none",
38084
+ "fade",
38085
+ "slide",
38086
+ "convex",
38087
+ "concave",
38088
+ "zoom"
38089
+ ]), DeckVerticalAlignSchema = _enum([
38090
+ "top",
38091
+ "center",
38092
+ "bottom"
38093
+ ]), DeckConfigSchema = looseObject({
38094
+ transition: DeckTransitionSchema.optional(),
38095
+ verticalAlign: DeckVerticalAlignSchema.optional()
38091
38096
  });
38092
38097
  const SlidesLayoutPlugin = {
38093
38098
  type: "slides",
@@ -38404,7 +38409,7 @@ ${c}
38404
38409
  let r2 = e2.scrollHeight - e2.clientHeight;
38405
38410
  r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
38406
38411
  }, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
38407
- let H, W, G, q, kW, AW, Z, jW, MW, NW;
38412
+ let H, W, G, q, jW, MW, Z, NW, PW, FW;
38408
38413
  if (r[3] !== T || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== m || r[19] !== l) {
38409
38414
  let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
38410
38415
  r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
@@ -38450,11 +38455,11 @@ ${c}
38450
38455
  })
38451
38456
  })
38452
38457
  ]
38453
- }), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", kW = c, AW = R, Z = 0;
38454
- let PW2 = y && "marimo-output-stale", FW2 = L ? "p-5" : "p-3";
38455
- r[40] !== M || r[41] !== PW2 || r[42] !== FW2 ? (jW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", PW2, FW2, M), r[40] = M, r[41] = PW2, r[42] = FW2, r[43] = jW) : jW = r[43], r[44] === d ? MW = r[45] : (MW = d ? {
38458
+ }), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", jW = c, MW = R, Z = 0;
38459
+ let IW2 = y && "marimo-output-stale", LW2 = L ? "p-5" : "p-3";
38460
+ r[40] !== M || r[41] !== IW2 || r[42] !== LW2 ? (NW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", IW2, LW2, M), r[40] = M, r[41] = IW2, r[42] = LW2, r[43] = NW) : NW = r[43], r[44] === d ? PW = r[45] : (PW = d ? {
38456
38461
  maxHeight: "none"
38457
- } : void 0, r[44] = d, r[45] = MW), NW = e2.map((e3, r2) => {
38462
+ } : void 0, r[44] = d, r[45] = PW), FW = e2.map((e3, r2) => {
38458
38463
  if (e3.channel === "pdb") return null;
38459
38464
  if (e3.channel === "stdin") {
38460
38465
  invariant(typeof e3.data == "string", "Expected data to be a string");
@@ -38483,36 +38488,36 @@ ${c}
38483
38488
  wrapText: l
38484
38489
  })
38485
38490
  }, r2);
38486
- }), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = kW, r[25] = AW, r[26] = Z, r[27] = jW, r[28] = MW, r[29] = NW;
38487
- } else H = r[20], W = r[21], G = r[22], q = r[23], kW = r[24], AW = r[25], Z = r[26], jW = r[27], MW = r[28], NW = r[29];
38488
- let PW;
38489
- r[46] !== T || r[47] !== S ? (PW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
38491
+ }), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = jW, r[25] = MW, r[26] = Z, r[27] = NW, r[28] = PW, r[29] = FW;
38492
+ } else H = r[20], W = r[21], G = r[22], q = r[23], jW = r[24], MW = r[25], Z = r[26], NW = r[27], PW = r[28], FW = r[29];
38493
+ let IW;
38494
+ r[46] !== T || r[47] !== S ? (IW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
38490
38495
  value: S,
38491
38496
  cellId: T,
38492
38497
  className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
38493
- }), r[46] = T, r[47] = S, r[48] = PW) : PW = r[48];
38494
- let FW;
38495
- r[49] !== PW || r[50] !== G || r[51] !== q || r[52] !== kW || r[53] !== AW || r[54] !== Z || r[55] !== jW || r[56] !== MW || r[57] !== NW ? (FW = (0, import_jsx_runtime.jsxs)("div", {
38498
+ }), r[46] = T, r[47] = S, r[48] = IW) : IW = r[48];
38499
+ let LW;
38500
+ r[49] !== IW || r[50] !== G || r[51] !== q || r[52] !== jW || r[53] !== MW || r[54] !== Z || r[55] !== NW || r[56] !== PW || r[57] !== FW ? (LW = (0, import_jsx_runtime.jsxs)("div", {
38496
38501
  title: G,
38497
38502
  "data-testid": q,
38498
- ref: kW,
38499
- ...AW,
38503
+ ref: jW,
38504
+ ...MW,
38500
38505
  tabIndex: Z,
38501
- className: jW,
38502
- style: MW,
38506
+ className: NW,
38507
+ style: PW,
38503
38508
  children: [
38504
- NW,
38505
- PW
38509
+ FW,
38510
+ IW
38506
38511
  ]
38507
- }), r[49] = PW, r[50] = G, r[51] = q, r[52] = kW, r[53] = AW, r[54] = Z, r[55] = jW, r[56] = MW, r[57] = NW, r[58] = FW) : FW = r[58];
38508
- let IW;
38509
- return r[59] !== H || r[60] !== W || r[61] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
38512
+ }), r[49] = IW, r[50] = G, r[51] = q, r[52] = jW, r[53] = MW, r[54] = Z, r[55] = NW, r[56] = PW, r[57] = FW, r[58] = LW) : LW = r[58];
38513
+ let RW;
38514
+ return r[59] !== H || r[60] !== W || r[61] !== LW ? (RW = (0, import_jsx_runtime.jsxs)("div", {
38510
38515
  className: H,
38511
38516
  children: [
38512
38517
  W,
38513
- FW
38518
+ LW
38514
38519
  ]
38515
- }), r[59] = H, r[60] = W, r[61] = FW, r[62] = IW) : IW = r[62], IW;
38520
+ }), r[59] = H, r[60] = W, r[61] = LW, r[62] = RW) : RW = r[62], RW;
38516
38521
  }, StdInput = (e) => {
38517
38522
  let r = (0, import_compiler_runtime$6.c)(25), { value: c, setValue: l, inputHistory: u, output: d, isPassword: f, isPdb: p, onSubmit: m, onClear: h } = e, { navigateUp: g, navigateDown: _, addToHistory: v } = u, y;
38518
38523
  r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
@@ -39012,14 +39017,14 @@ ${c}
39012
39017
  stale: I,
39013
39018
  loading: R
39014
39019
  }), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = G, r[52] = q) : q = r[52];
39015
- let kW;
39016
- return r[53] !== H || r[54] !== W || r[55] !== q ? (kW = (0, import_jsx_runtime.jsx)("div", {
39020
+ let jW;
39021
+ return r[53] !== H || r[54] !== W || r[55] !== q ? (jW = (0, import_jsx_runtime.jsx)("div", {
39017
39022
  tabIndex: -1,
39018
39023
  ref: j,
39019
39024
  className: H,
39020
39025
  ...W,
39021
39026
  children: q
39022
- }), r[53] = H, r[54] = W, r[55] = q, r[56] = kW) : kW = r[56], kW;
39027
+ }), r[53] = H, r[54] = W, r[55] = q, r[56] = jW) : jW = r[56], jW;
39023
39028
  });
39024
39029
  VerticalCell.displayName = "VerticalCell";
39025
39030
  const VerticalLayoutPlugin = {