@marimo-team/islands 0.24.1-dev32 → 0.24.1-dev36

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.
@@ -6,7 +6,7 @@ import { _ as Functions, f as composeRefs, g as Logger, h as cn, m as Events, n
6
6
  import { t as require_react } from "./react-DhGsCS90.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-DsR6imPN.js";
8
8
  import { n as Copy, r as toast, t as copyToClipboard } from "./copy-C7ZKMKox.js";
9
- import { B as isDataURLString, Bt as PluralWord, C as Accordion, Cn as jsonToMarkdown, Dt as toggleBreakpoint, E as AccordionTrigger, H as renderHTML, Hn as FileText, Ht as DATA_TYPE_ICON, It as getFeatureFlag, J as getCellEditorView, L as base64ToUint8Array, Ln as NotebookPen, M as DotFilledIcon, Mt as useChromeActions, N as PinLeftIcon, Nn as Wrench, Nt as adaptForLocalStorage, On as Close$1, Ot as goToCellLine, P as PinRightIcon, Pn as Trash2, Pt as jotaiJsonStorage, Q as notebookAtom, Qt as useRequestClient, Rn as Minus, Sn as jsonParseWithSpecialChar, St as isRecord, T as AccordionItem, Tn as atomWithStorage, Un as Eye, Ut as getDataTypeColor, Vn as Info, Wn as ExternalLink, Wt as resolveDataType, Xn as esm_default, Xt as getRequestClient, Yn as Braces, Zn as import_lib, _ as getDatasourceContext, _n as SCRATCH_CELL_ID, c as Popover, cn as getTracebackInfo, ct as AnsiUp, d as PopoverTrigger, dn as filenameAtom, ft as sanitizeHtml, gn as HTMLCellId, hn as CellOutputId, ht as displayCellName, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, lt as outputIsLoading, m as useExpandedOutput, mt as getCellDomProps, n as Spinner, nt as useCellActions, on as elementContainsMarimoCellFile, pt as DATA_CELL_ID, qn as CircleX, r as MarkdownRenderer, rt as useCellIds, sn as extractAllTracebackInfo, t as toPng, u as PopoverContent, w as AccordionContent, yt as Checkbox, z as extractBase64FromDataURL, zn as LoaderCircle, __tla as __tla_0 } from "./html-to-image-BzT-fb14.js";
9
+ import { B as isDataURLString, Bn as LoaderCircle, Bt as PluralWord, C as Accordion, Cn as jsonToMarkdown, Dt as toggleBreakpoint, E as AccordionTrigger, En as atomWithStorage, Fn as Trash2, Gn as ExternalLink, H as renderHTML, Hn as Info, Ht as DATA_TYPE_ICON, It as getFeatureFlag, J as getCellEditorView, Jn as CircleX, L as base64ToUint8Array, M as DotFilledIcon, Mt as useChromeActions, N as PinLeftIcon, Nt as adaptForLocalStorage, Ot as goToCellLine, P as PinRightIcon, Pn as Wrench, Pt as jotaiJsonStorage, Q as notebookAtom, Qn as import_lib, Qt as useRequestClient, Rn as NotebookPen, Sn as jsonParseWithSpecialChar, St as isRecord, T as AccordionItem, Un as FileText, Ut as getDataTypeColor, Wn as Eye, Wt as resolveDataType, Xn as Braces, Xt as getRequestClient, Zn as esm_default, _ as getDatasourceContext, _n as SCRATCH_CELL_ID, c as Popover, cn as getTracebackInfo, ct as AnsiUp, d as PopoverTrigger, dn as filenameAtom, ft as sanitizeHtml, gn as HTMLCellId, hn as CellOutputId, ht as displayCellName, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, kn as Close$1, l as PopoverClose, lt as outputIsLoading, m as useExpandedOutput, mt as getCellDomProps, n as Spinner, nt as useCellActions, on as elementContainsMarimoCellFile, pt as DATA_CELL_ID, r as MarkdownRenderer, rt as useCellIds, sn as extractAllTracebackInfo, t as toPng, u as PopoverContent, w as AccordionContent, wn as parseContent, yt as Checkbox, z as extractBase64FromDataURL, zn as Minus, __tla as __tla_0 } from "./html-to-image-RKitVHn8.js";
10
10
  import { o as useSize, u as createLucideIcon } from "./dist-j30bBjjN.js";
11
11
  import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-Bw4wRj_O.js";
12
12
  import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B_vTzxpm.js";
@@ -2062,21 +2062,21 @@ Defaulting to \`null\`.`;
2062
2062
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
2063
2063
  let { block: i = "nearest", inline: a = "nearest" } = n;
2064
2064
  if (e === t) return;
2065
- let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, mJ = c.top - E, hJ = c.bottom + O, gJ = c.left - A, _J = c.right + M, vJ = e === _ ? 0 : Q + $, yJ = e === _ ? 0 : q + J, bJ = e.offsetWidth - e.clientWidth - vJ, xJ = e.offsetHeight - e.clientHeight - yJ, SJ = v + q + I, CJ = y - J - z - xJ, wJ = S + Q + U, TJ = w - $ - K;
2066
- h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? wJ += bJ : TJ -= bJ;
2067
- let EJ = mJ < SJ || hJ > CJ, DJ = gJ < wJ || _J > TJ;
2068
- if (EJ && i === "start") o += mJ - SJ;
2069
- else if (EJ && i === "center") o += (mJ + hJ) / 2 - (SJ + CJ) / 2;
2070
- else if (EJ && i === "end") o += hJ - CJ;
2071
- else if (EJ && i === "nearest") {
2072
- let e2 = mJ - SJ, t2 = hJ - CJ;
2065
+ let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, dJ = c.top - E, fJ = c.bottom + O, pJ = c.left - A, mJ = c.right + M, hJ = e === _ ? 0 : Q + $, gJ = e === _ ? 0 : q + J, _J = e.offsetWidth - e.clientWidth - hJ, vJ = e.offsetHeight - e.clientHeight - gJ, yJ = v + q + I, bJ = y - J - z - vJ, xJ = S + Q + U, SJ = w - $ - K;
2066
+ h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? xJ += _J : SJ -= _J;
2067
+ let CJ = dJ < yJ || fJ > bJ, wJ = pJ < xJ || mJ > SJ;
2068
+ if (CJ && i === "start") o += dJ - yJ;
2069
+ else if (CJ && i === "center") o += (dJ + fJ) / 2 - (yJ + bJ) / 2;
2070
+ else if (CJ && i === "end") o += fJ - bJ;
2071
+ else if (CJ && i === "nearest") {
2072
+ let e2 = dJ - yJ, t2 = fJ - bJ;
2073
2073
  o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2074
2074
  }
2075
- if (DJ && a === "start") s += gJ - wJ;
2076
- else if (DJ && a === "center") s += (gJ + _J) / 2 - (wJ + TJ) / 2;
2077
- else if (DJ && a === "end") s += _J - TJ;
2078
- else if (DJ && a === "nearest") {
2079
- let e2 = gJ - wJ, t2 = _J - TJ;
2075
+ if (wJ && a === "start") s += pJ - xJ;
2076
+ else if (wJ && a === "center") s += (pJ + mJ) / 2 - (xJ + SJ) / 2;
2077
+ else if (wJ && a === "end") s += mJ - SJ;
2078
+ else if (wJ && a === "nearest") {
2079
+ let e2 = pJ - xJ, t2 = mJ - SJ;
2080
2080
  s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2081
2081
  }
2082
2082
  e.scrollTo({
@@ -5186,23 +5186,23 @@ Defaulting to \`null\`.`;
5186
5186
  }
5187
5187
  let $ = "bottom";
5188
5188
  A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
5189
- let mJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5190
- q[I] += mJ;
5191
- let hJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5192
- y && y < hJ && (hJ = y), n.height = Math.min(n.height, hJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), mJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += mJ;
5193
- let gJ = {}, _J = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], vJ = _J + 0.5 * t[z], yJ = S / 2 + w, bJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), xJ = n[z] - bJ - S / 2 - w;
5194
- gJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(vJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), yJ, xJ), { placement: U, crossPlacement: K } = A, S ? _J = gJ[I] : K === "right" ? _J += t[z] : K === "center" && (_J += t[z] / 2);
5195
- let SJ = U === "left" || U === "top" ? n[M] : 0, CJ = {
5196
- x: U === "top" || U === "bottom" ? _J : SJ,
5197
- y: U === "left" || U === "right" ? _J : SJ
5189
+ let dJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5190
+ q[I] += dJ;
5191
+ let fJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5192
+ y && y < fJ && (fJ = y), n.height = Math.min(n.height, fJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), dJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += dJ;
5193
+ let pJ = {}, mJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], hJ = mJ + 0.5 * t[z], gJ = S / 2 + w, _J = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), vJ = n[z] - _J - S / 2 - w;
5194
+ pJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(hJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), gJ, vJ), { placement: U, crossPlacement: K } = A, S ? mJ = pJ[I] : K === "right" ? mJ += t[z] : K === "center" && (mJ += t[z] / 2);
5195
+ let yJ = U === "left" || U === "top" ? n[M] : 0, bJ = {
5196
+ x: U === "top" || U === "bottom" ? mJ : yJ,
5197
+ y: U === "left" || U === "right" ? mJ : yJ
5198
5198
  };
5199
5199
  return {
5200
5200
  position: q,
5201
- maxHeight: hJ,
5202
- arrowOffsetLeft: gJ.left,
5203
- arrowOffsetTop: gJ.top,
5201
+ maxHeight: fJ,
5202
+ arrowOffsetLeft: pJ.left,
5203
+ arrowOffsetTop: pJ.top,
5204
5204
  placement: U,
5205
- triggerAnchorPoint: CJ
5205
+ triggerAnchorPoint: bJ
5206
5206
  };
5207
5207
  }
5208
5208
  function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
@@ -7057,7 +7057,7 @@ Defaulting to \`null\`.`;
7057
7057
  n,
7058
7058
  h
7059
7059
  ]);
7060
- let mJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7060
+ let dJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7061
7061
  role: "textbox",
7062
7062
  "aria-valuemax": null,
7063
7063
  "aria-valuemin": null,
@@ -7067,8 +7067,8 @@ Defaulting to \`null\`.`;
7067
7067
  e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
7068
7068
  t.segments
7069
7069
  ]) && !t.isInvalid && (f = void 0);
7070
- let hJ = $bdb11010cef70236$export$f680877a34711e37(), gJ = !t.isDisabled && !t.isReadOnly && e.isEditable, _J = e.type === "literal" ? "" : s.of(e.type), vJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7071
- "aria-label": `${_J}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7070
+ let fJ = $bdb11010cef70236$export$f680877a34711e37(), pJ = !t.isDisabled && !t.isReadOnly && e.isEditable, mJ = e.type === "literal" ? "" : s.of(e.type), hJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7071
+ "aria-label": `${mJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7072
7072
  "aria-labelledby": d
7073
7073
  });
7074
7074
  if (e.type === "literal") return {
@@ -7076,32 +7076,32 @@ Defaulting to \`null\`.`;
7076
7076
  "aria-hidden": true
7077
7077
  }
7078
7078
  };
7079
- let yJ = {
7079
+ let gJ = {
7080
7080
  caretColor: "transparent"
7081
7081
  };
7082
7082
  if (o === "rtl") {
7083
- yJ.unicodeBidi = "embed";
7083
+ gJ.unicodeBidi = "embed";
7084
7084
  let t2 = v[e.type];
7085
- (t2 === "numeric" || t2 === "2-digit") && (yJ.direction = "ltr");
7085
+ (t2 === "numeric" || t2 === "2-digit") && (gJ.direction = "ltr");
7086
7086
  }
7087
7087
  return {
7088
- segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, vJ, {
7089
- id: hJ,
7090
- ...mJ,
7088
+ segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, hJ, {
7089
+ id: fJ,
7090
+ ...dJ,
7091
7091
  "aria-invalid": t.isInvalid ? "true" : void 0,
7092
7092
  "aria-describedby": f,
7093
7093
  "aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
7094
7094
  "data-placeholder": e.isPlaceholder || void 0,
7095
- contentEditable: gJ,
7096
- suppressContentEditableWarning: gJ,
7097
- spellCheck: gJ ? "false" : void 0,
7098
- autoCorrect: gJ ? "off" : void 0,
7099
- enterKeyHint: gJ ? "next" : void 0,
7100
- inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !gJ ? void 0 : "numeric",
7095
+ contentEditable: pJ,
7096
+ suppressContentEditableWarning: pJ,
7097
+ spellCheck: pJ ? "false" : void 0,
7098
+ autoCorrect: pJ ? "off" : void 0,
7099
+ enterKeyHint: pJ ? "next" : void 0,
7100
+ inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !pJ ? void 0 : "numeric",
7101
7101
  tabIndex: t.isDisabled ? void 0 : 0,
7102
7102
  onKeyDown: A,
7103
7103
  onFocus: Q,
7104
- style: yJ,
7104
+ style: gJ,
7105
7105
  onPointerDown(e2) {
7106
7106
  e2.stopPropagation();
7107
7107
  },
@@ -10344,12 +10344,12 @@ Defaulting to \`null\`.`;
10344
10344
  e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
10345
10345
  }
10346
10346
  }
10347
- let mJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10347
+ let dJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10348
10348
  w,
10349
10349
  f,
10350
10350
  s,
10351
10351
  c
10352
- ]), hJ = e.isInvalid || e.validationState === "invalid" || mJ, gJ = hJ ? "invalid" : null, _J = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10352
+ ]), fJ = e.isInvalid || e.validationState === "invalid" || dJ, pJ = fJ ? "invalid" : null, mJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10353
10353
  h,
10354
10354
  o
10355
10355
  ]);
@@ -10366,8 +10366,8 @@ Defaulting to \`null\`.`;
10366
10366
  maxValue: c,
10367
10367
  focusedDate: O,
10368
10368
  timeZone: E,
10369
- validationState: gJ,
10370
- isValueInvalid: hJ,
10369
+ validationState: pJ,
10370
+ isValueInvalid: fJ,
10371
10371
  setFocusedDate(e2) {
10372
10372
  Q(e2);
10373
10373
  },
@@ -10392,12 +10392,12 @@ Defaulting to \`null\`.`;
10392
10392
  }));
10393
10393
  },
10394
10394
  focusNextPage() {
10395
- let e2 = M.add(_J);
10396
- A($f62d864046160412$export$4f5203c0d889109e(O.add(_J), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, _J, i, s, c), _J, i));
10395
+ let e2 = M.add(mJ);
10396
+ A($f62d864046160412$export$4f5203c0d889109e(O.add(mJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, mJ, i, s, c), mJ, i));
10397
10397
  },
10398
10398
  focusPreviousPage() {
10399
- let e2 = M.subtract(_J);
10400
- A($f62d864046160412$export$4f5203c0d889109e(O.subtract(_J), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, _J, i, s, c), _J, i));
10399
+ let e2 = M.subtract(mJ);
10400
+ A($f62d864046160412$export$4f5203c0d889109e(O.subtract(mJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, mJ, i, s, c), mJ, i));
10401
10401
  },
10402
10402
  focusSectionStart() {
10403
10403
  o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
@@ -10534,13 +10534,13 @@ Defaulting to \`null\`.`;
10534
10534
  end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
10535
10535
  }), q(null);
10536
10536
  }
10537
- }, [$, mJ] = (0, import_react.useState)(false), { isDateUnavailable: hJ } = e, gJ = (0, import_react.useMemo)(() => !h || v ? false : hJ && (hJ(h.start) || hJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10538
- hJ,
10537
+ }, [$, dJ] = (0, import_react.useState)(false), { isDateUnavailable: fJ } = e, pJ = (0, import_react.useMemo)(() => !h || v ? false : fJ && (fJ(h.start) || fJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10538
+ fJ,
10539
10539
  h,
10540
10540
  v,
10541
10541
  c,
10542
10542
  d
10543
- ]), _J = e.isInvalid || e.validationState === "invalid" || gJ, vJ = _J ? "invalid" : null;
10543
+ ]), mJ = e.isInvalid || e.validationState === "invalid" || pJ, hJ = mJ ? "invalid" : null;
10544
10544
  return {
10545
10545
  ...I,
10546
10546
  value: h,
@@ -10548,8 +10548,8 @@ Defaulting to \`null\`.`;
10548
10548
  anchorDate: v,
10549
10549
  setAnchorDate: q,
10550
10550
  highlightedRange: J,
10551
- validationState: vJ,
10552
- isValueInvalid: _J,
10551
+ validationState: hJ,
10552
+ isValueInvalid: mJ,
10553
10553
  selectFocusedDate() {
10554
10554
  Q(I.focusedDate);
10555
10555
  },
@@ -10565,7 +10565,7 @@ Defaulting to \`null\`.`;
10565
10565
  return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
10566
10566
  },
10567
10567
  isDragging: $,
10568
- setDragging: mJ
10568
+ setDragging: dJ
10569
10569
  };
10570
10570
  }
10571
10571
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11752,7 +11752,7 @@ Defaulting to \`null\`.`;
11752
11752
  _,
11753
11753
  S,
11754
11754
  v
11755
- ]), mJ = (0, import_react.useMemo)(() => {
11755
+ ]), dJ = (0, import_react.useMemo)(() => {
11756
11756
  let t2 = w === "h11" || w === "h12", n2 = [
11757
11757
  "era",
11758
11758
  "year",
@@ -11770,15 +11770,15 @@ Defaulting to \`null\`.`;
11770
11770
  e.maxGranularity,
11771
11771
  _,
11772
11772
  w
11773
- ]), [hJ, gJ] = (0, import_react.useState)(M), [_J, vJ] = (0, import_react.useState)(S), [yJ, bJ] = (0, import_react.useState)(w);
11774
- (M !== hJ || w !== yJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, _J)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), gJ(M), vJ(S), bJ(w), z(I));
11775
- let xJ = (t2) => {
11776
- if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(mJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11773
+ ]), [fJ, pJ] = (0, import_react.useState)(M), [mJ, hJ] = (0, import_react.useState)(S), [gJ, _J] = (0, import_react.useState)(w);
11774
+ (M !== fJ || w !== gJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, mJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), pJ(M), hJ(S), _J(w), z(I));
11775
+ let vJ = (t2) => {
11776
+ if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(dJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11777
11777
  else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
11778
11778
  else {
11779
- if (t2.isComplete(mJ)) {
11779
+ if (t2.isComplete(dJ)) {
11780
11780
  let e2 = t2.toValue(M ?? $);
11781
- if (t2.validate(e2, mJ)) {
11781
+ if (t2.validate(e2, dJ)) {
11782
11782
  let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11783
11783
  if (!E || t3.compare(E) !== 0) {
11784
11784
  z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
@@ -11788,83 +11788,83 @@ Defaulting to \`null\`.`;
11788
11788
  }
11789
11789
  z(t2);
11790
11790
  }
11791
- }, SJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11791
+ }, yJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11792
11792
  I,
11793
11793
  y,
11794
11794
  M,
11795
11795
  $
11796
- ]), CJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(SJ, I, J, Q, S, t, _), [
11797
- SJ,
11796
+ ]), bJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(yJ, I, J, Q, S, t, _), [
11797
+ yJ,
11798
11798
  J,
11799
11799
  Q,
11800
11800
  I,
11801
11801
  S,
11802
11802
  t,
11803
11803
  _
11804
- ]), wJ = (e2, t2) => {
11805
- xJ(I.cycle(e2, t2, $, mJ));
11806
- }, TJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11804
+ ]), xJ = (e2, t2) => {
11805
+ vJ(I.cycle(e2, t2, $, dJ));
11806
+ }, SJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11807
11807
  E,
11808
11808
  c,
11809
11809
  d,
11810
11810
  f,
11811
11811
  K
11812
- ]), EJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11812
+ ]), CJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11813
11813
  ...e,
11814
11814
  value: E,
11815
- builtinValidation: TJ
11816
- }), DJ = EJ.displayValidation.isInvalid, OJ = e.validationState || (DJ ? "invalid" : null);
11815
+ builtinValidation: SJ
11816
+ }), wJ = CJ.displayValidation.isInvalid, TJ = e.validationState || (wJ ? "invalid" : null);
11817
11817
  return {
11818
- ...EJ,
11818
+ ...CJ,
11819
11819
  value: M,
11820
11820
  defaultValue: e.defaultValue ?? A,
11821
- dateValue: SJ,
11821
+ dateValue: yJ,
11822
11822
  calendar: S,
11823
- setValue: xJ,
11824
- segments: CJ,
11823
+ setValue: vJ,
11824
+ segments: bJ,
11825
11825
  dateFormatter: J,
11826
- validationState: OJ,
11827
- isInvalid: DJ,
11826
+ validationState: TJ,
11827
+ isInvalid: wJ,
11828
11828
  granularity: _,
11829
11829
  maxGranularity: e.maxGranularity ?? "year",
11830
11830
  isDisabled: a,
11831
11831
  isReadOnly: o,
11832
11832
  isRequired: s,
11833
11833
  increment(e2) {
11834
- wJ(e2, 1);
11834
+ xJ(e2, 1);
11835
11835
  },
11836
11836
  decrement(e2) {
11837
- wJ(e2, -1);
11837
+ xJ(e2, -1);
11838
11838
  },
11839
11839
  incrementPage(e2) {
11840
- wJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11840
+ xJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11841
11841
  },
11842
11842
  decrementPage(e2) {
11843
- wJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11843
+ xJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11844
11844
  },
11845
11845
  incrementToMax(e2) {
11846
11846
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11847
- xJ(I.set(e2, t2, $));
11847
+ vJ(I.set(e2, t2, $));
11848
11848
  },
11849
11849
  decrementToMin(e2) {
11850
11850
  let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
11851
- xJ(I.set(e2, t2, $));
11851
+ vJ(I.set(e2, t2, $));
11852
11852
  },
11853
11853
  setSegment(e2, t2) {
11854
- xJ(I.set(e2, t2, $));
11854
+ vJ(I.set(e2, t2, $));
11855
11855
  },
11856
11856
  confirmPlaceholder() {
11857
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(mJ)) {
11857
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(dJ)) {
11858
11858
  let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11859
11859
  (!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
11860
11860
  }
11861
11861
  },
11862
11862
  clearSegment(e2) {
11863
11863
  let t2 = I;
11864
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), xJ(t2);
11864
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), vJ(t2);
11865
11865
  },
11866
11866
  formatValue(e2) {
11867
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(SJ) : "";
11867
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(yJ) : "";
11868
11868
  },
11869
11869
  getDateFormatter(e2, t2) {
11870
11870
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11984,7 +11984,7 @@ Defaulting to \`null\`.`;
11984
11984
  e.endName
11985
11985
  ]),
11986
11986
  builtinValidation: J
11987
- }), $ = Q.displayValidation.isInvalid, mJ = e.validationState || ($ ? "invalid" : null);
11987
+ }), $ = Q.displayValidation.isInvalid, dJ = e.validationState || ($ ? "invalid" : null);
11988
11988
  return {
11989
11989
  ...Q,
11990
11990
  value: c,
@@ -12030,7 +12030,7 @@ Defaulting to \`null\`.`;
12030
12030
  end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
12031
12031
  }), t.setOpen(n2);
12032
12032
  },
12033
- validationState: mJ,
12033
+ validationState: dJ,
12034
12034
  isInvalid: $,
12035
12035
  formatValue(t2, n2) {
12036
12036
  if (!c || !c.start || !c.end) return null;
@@ -15924,33 +15924,33 @@ try {
15924
15924
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15925
15925
  function y(e2) {
15926
15926
  var _a2, _b, _c, _d;
15927
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, mJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15927
+ let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, dJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15928
15928
  h2
15929
- ]), hJ = mJ[t], gJ = hJ || mJ, { colorSchemes: _J = _, components: vJ = v, cssVarPrefix: yJ } = gJ, bJ = Object.keys(_J).filter((e3) => !!_J[e3]).join(","), xJ = import_react.useMemo(() => bJ.split(","), [
15930
- bJ
15931
- ]), SJ = typeof s == "string" ? s : s.light, CJ = typeof s == "string" ? s : s.dark, { mode: wJ, setMode: TJ, systemMode: EJ, lightColorScheme: DJ, darkColorScheme: OJ, colorScheme: kJ, setColorScheme: AJ } = useCurrentColorScheme({
15932
- supportedColorSchemes: xJ,
15933
- defaultLightColorScheme: SJ,
15934
- defaultDarkColorScheme: CJ,
15929
+ ]), fJ = dJ[t], pJ = fJ || dJ, { colorSchemes: mJ = _, components: hJ = v, cssVarPrefix: gJ } = pJ, _J = Object.keys(mJ).filter((e3) => !!mJ[e3]).join(","), vJ = import_react.useMemo(() => _J.split(","), [
15930
+ _J
15931
+ ]), yJ = typeof s == "string" ? s : s.light, bJ = typeof s == "string" ? s : s.dark, { mode: xJ, setMode: SJ, systemMode: CJ, lightColorScheme: wJ, darkColorScheme: TJ, colorScheme: EJ, setColorScheme: DJ } = useCurrentColorScheme({
15932
+ supportedColorSchemes: vJ,
15933
+ defaultLightColorScheme: yJ,
15934
+ defaultDarkColorScheme: bJ,
15935
15935
  modeStorageKey: y2,
15936
15936
  colorSchemeStorageKey: S2,
15937
- defaultMode: _J[SJ] && _J[CJ] ? U : ((_b = (_a2 = _J[gJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = gJ.palette) == null ? void 0 : _c.mode),
15937
+ defaultMode: mJ[yJ] && mJ[bJ] ? U : ((_b = (_a2 = mJ[pJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = pJ.palette) == null ? void 0 : _c.mode),
15938
15938
  storageManager: E,
15939
15939
  storageWindow: O,
15940
15940
  noSsr: K
15941
- }), jJ = wJ, MJ = kJ;
15942
- $ && (jJ = Q.mode, MJ = Q.colorScheme);
15943
- let NJ = import_react.useMemo(() => {
15941
+ }), OJ = xJ, kJ = EJ;
15942
+ $ && (OJ = Q.mode, kJ = Q.colorScheme);
15943
+ let AJ = import_react.useMemo(() => {
15944
15944
  var _a3;
15945
- let e3 = MJ || gJ.defaultColorScheme, t2 = ((_a3 = gJ.generateThemeVars) == null ? void 0 : _a3.call(gJ)) || gJ.vars, n2 = {
15946
- ...gJ,
15947
- components: vJ,
15948
- colorSchemes: _J,
15949
- cssVarPrefix: yJ,
15945
+ let e3 = kJ || pJ.defaultColorScheme, t2 = ((_a3 = pJ.generateThemeVars) == null ? void 0 : _a3.call(pJ)) || pJ.vars, n2 = {
15946
+ ...pJ,
15947
+ components: hJ,
15948
+ colorSchemes: mJ,
15949
+ cssVarPrefix: gJ,
15950
15950
  vars: t2
15951
15951
  };
15952
15952
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15953
- let t3 = _J[e3];
15953
+ let t3 = mJ[e3];
15954
15954
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
15955
15955
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
15956
15956
  ...n2[e4],
@@ -15960,31 +15960,31 @@ try {
15960
15960
  }
15961
15961
  return c ? c(n2) : n2;
15962
15962
  }, [
15963
- gJ,
15964
- MJ,
15965
- vJ,
15966
- _J,
15967
- yJ
15968
- ]), PJ = gJ.colorSchemeSelector;
15963
+ pJ,
15964
+ kJ,
15965
+ hJ,
15966
+ mJ,
15967
+ gJ
15968
+ ]), jJ = pJ.colorSchemeSelector;
15969
15969
  useEnhancedEffect_default(() => {
15970
- if (MJ && M && PJ && PJ !== "media") {
15971
- let e3 = PJ, t2 = PJ;
15972
- if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...xJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", MJ));
15970
+ if (kJ && M && jJ && jJ !== "media") {
15971
+ let e3 = jJ, t2 = jJ;
15972
+ if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...vJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", kJ));
15973
15973
  else {
15974
- let e4 = t2.replace("%s", MJ).match(/\[([^\]]+)\]/);
15974
+ let e4 = t2.replace("%s", kJ).match(/\[([^\]]+)\]/);
15975
15975
  if (e4) {
15976
15976
  let [t3, n2] = e4[1].split("=");
15977
- n2 || xJ.forEach((e5) => {
15978
- M.removeAttribute(t3.replace(MJ, e5));
15977
+ n2 || vJ.forEach((e5) => {
15978
+ M.removeAttribute(t3.replace(kJ, e5));
15979
15979
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15980
- } else M.setAttribute(t2, MJ);
15980
+ } else M.setAttribute(t2, kJ);
15981
15981
  }
15982
15982
  }
15983
15983
  }, [
15984
- MJ,
15985
- PJ,
15984
+ kJ,
15985
+ jJ,
15986
15986
  M,
15987
- xJ
15987
+ vJ
15988
15988
  ]), import_react.useEffect(() => {
15989
15989
  let e3;
15990
15990
  if (w2 && q.current && A) {
@@ -15997,48 +15997,48 @@ try {
15997
15997
  clearTimeout(e3);
15998
15998
  };
15999
15999
  }, [
16000
- MJ,
16000
+ kJ,
16001
16001
  w2,
16002
16002
  A
16003
16003
  ]), import_react.useEffect(() => (q.current = true, () => {
16004
16004
  q.current = false;
16005
16005
  }), []);
16006
- let FJ = import_react.useMemo(() => ({
16007
- allColorSchemes: xJ,
16008
- colorScheme: MJ,
16009
- darkColorScheme: OJ,
16010
- lightColorScheme: DJ,
16011
- mode: jJ,
16012
- setColorScheme: AJ,
16013
- setMode: TJ,
16014
- systemMode: EJ
16006
+ let MJ = import_react.useMemo(() => ({
16007
+ allColorSchemes: vJ,
16008
+ colorScheme: kJ,
16009
+ darkColorScheme: TJ,
16010
+ lightColorScheme: wJ,
16011
+ mode: OJ,
16012
+ setColorScheme: DJ,
16013
+ setMode: SJ,
16014
+ systemMode: CJ
16015
16015
  }), [
16016
- xJ,
16017
- MJ,
16016
+ vJ,
16017
+ kJ,
16018
+ TJ,
16019
+ wJ,
16018
16020
  OJ,
16019
16021
  DJ,
16020
- jJ,
16021
- AJ,
16022
- TJ,
16023
- EJ,
16024
- NJ.colorSchemeSelector
16025
- ]), IJ = true;
16026
- (z || gJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === yJ) && (IJ = false);
16027
- let LJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16022
+ SJ,
16023
+ CJ,
16024
+ AJ.colorSchemeSelector
16025
+ ]), NJ = true;
16026
+ (z || pJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === gJ) && (NJ = false);
16027
+ let PJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16028
16028
  children: [
16029
16029
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
16030
- themeId: hJ ? t : void 0,
16031
- theme: NJ,
16030
+ themeId: fJ ? t : void 0,
16031
+ theme: AJ,
16032
16032
  children: d2
16033
16033
  }),
16034
- IJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16035
- styles: ((_d = NJ.generateStyleSheets) == null ? void 0 : _d.call(NJ)) || []
16034
+ NJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16035
+ styles: ((_d = AJ.generateStyleSheets) == null ? void 0 : _d.call(AJ)) || []
16036
16036
  })
16037
16037
  ]
16038
16038
  });
16039
- return $ ? LJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16040
- value: FJ,
16041
- children: LJ
16039
+ return $ ? PJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16040
+ value: MJ,
16041
+ children: PJ
16042
16042
  });
16043
16043
  }
16044
16044
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17538,10 +17538,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17538
17538
  let n = useDefaultProps({
17539
17539
  props: e,
17540
17540
  name: "MuiInputBase"
17541
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: mJ, onKeyDown: hJ, onKeyUp: gJ, placeholder: _J, readOnly: vJ, renderSuffix: yJ, rows: bJ, size: xJ, slotProps: SJ = {}, slots: CJ = {}, startAdornment: wJ, type: TJ = "text", value: EJ, ...DJ } = n, OJ = A.value == null ? EJ : A.value, { current: kJ } = import_react.useRef(OJ != null), AJ = import_react.useRef(), jJ = import_react.useCallback((e2) => {
17542
- }, []), MJ = useForkRef_default(AJ, M, A.ref, jJ), [NJ, PJ] = import_react.useState(false), FJ = useFormControl(), IJ = formControlState({
17541
+ }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: dJ, onKeyDown: fJ, onKeyUp: pJ, placeholder: mJ, readOnly: hJ, renderSuffix: gJ, rows: _J, size: vJ, slotProps: yJ = {}, slots: bJ = {}, startAdornment: xJ, type: SJ = "text", value: CJ, ...wJ } = n, TJ = A.value == null ? CJ : A.value, { current: EJ } = import_react.useRef(TJ != null), DJ = import_react.useRef(), OJ = import_react.useCallback((e2) => {
17542
+ }, []), kJ = useForkRef_default(DJ, M, A.ref, OJ), [AJ, jJ] = import_react.useState(false), MJ = useFormControl(), NJ = formControlState({
17543
17543
  props: n,
17544
- muiFormControl: FJ,
17544
+ muiFormControl: MJ,
17545
17545
  states: [
17546
17546
  "color",
17547
17547
  "disabled",
@@ -17552,145 +17552,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17552
17552
  "filled"
17553
17553
  ]
17554
17554
  });
17555
- IJ.focused = FJ ? FJ.focused : NJ, import_react.useEffect(() => {
17556
- !FJ && _ && NJ && (PJ(false), J && J());
17555
+ NJ.focused = MJ ? MJ.focused : AJ, import_react.useEffect(() => {
17556
+ !MJ && _ && AJ && (jJ(false), J && J());
17557
17557
  }, [
17558
- FJ,
17558
+ MJ,
17559
17559
  _,
17560
- NJ,
17560
+ AJ,
17561
17561
  J
17562
17562
  ]);
17563
- let LJ = FJ && FJ.onFilled, RJ = FJ && FJ.onEmpty, zJ = import_react.useCallback((e2) => {
17564
- isFilled(e2) ? LJ && LJ() : RJ && RJ();
17563
+ let PJ = MJ && MJ.onFilled, FJ = MJ && MJ.onEmpty, IJ = import_react.useCallback((e2) => {
17564
+ isFilled(e2) ? PJ && PJ() : FJ && FJ();
17565
17565
  }, [
17566
- LJ,
17567
- RJ
17566
+ PJ,
17567
+ FJ
17568
17568
  ]);
17569
17569
  useEnhancedEffect_default$1(() => {
17570
- kJ && zJ({
17571
- value: OJ
17570
+ EJ && IJ({
17571
+ value: TJ
17572
17572
  });
17573
17573
  }, [
17574
- OJ,
17575
- zJ,
17576
- kJ
17574
+ TJ,
17575
+ IJ,
17576
+ EJ
17577
17577
  ]);
17578
- let BJ = (e2) => {
17579
- mJ && mJ(e2), A.onFocus && A.onFocus(e2), FJ && FJ.onFocus ? FJ.onFocus(e2) : PJ(true);
17580
- }, VJ = (e2) => {
17581
- J && J(e2), A.onBlur && A.onBlur(e2), FJ && FJ.onBlur ? FJ.onBlur(e2) : PJ(false);
17582
- }, HJ = (e2, ...t2) => {
17583
- if (!kJ) {
17584
- let t3 = e2.target || AJ.current;
17578
+ let LJ = (e2) => {
17579
+ dJ && dJ(e2), A.onFocus && A.onFocus(e2), MJ && MJ.onFocus ? MJ.onFocus(e2) : jJ(true);
17580
+ }, RJ = (e2) => {
17581
+ J && J(e2), A.onBlur && A.onBlur(e2), MJ && MJ.onBlur ? MJ.onBlur(e2) : jJ(false);
17582
+ }, zJ = (e2, ...t2) => {
17583
+ if (!EJ) {
17584
+ let t3 = e2.target || DJ.current;
17585
17585
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17586
- zJ({
17586
+ IJ({
17587
17587
  value: t3.value
17588
17588
  });
17589
17589
  }
17590
17590
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17591
17591
  };
17592
17592
  import_react.useEffect(() => {
17593
- zJ(AJ.current);
17593
+ IJ(DJ.current);
17594
17594
  }, []);
17595
- let UJ = (e2) => {
17596
- AJ.current && e2.currentTarget === e2.target && AJ.current.focus(), $ && $(e2);
17597
- }, WJ = O, GJ = A;
17598
- K && WJ === "input" && (GJ = bJ ? {
17595
+ let BJ = (e2) => {
17596
+ DJ.current && e2.currentTarget === e2.target && DJ.current.focus(), $ && $(e2);
17597
+ }, VJ = O, HJ = A;
17598
+ K && VJ === "input" && (HJ = _J ? {
17599
17599
  type: void 0,
17600
- minRows: bJ,
17601
- maxRows: bJ,
17602
- ...GJ
17600
+ minRows: _J,
17601
+ maxRows: _J,
17602
+ ...HJ
17603
17603
  } : {
17604
17604
  type: void 0,
17605
17605
  maxRows: z,
17606
17606
  minRows: U,
17607
- ...GJ
17608
- }, WJ = TextareaAutosize_default);
17609
- let KJ = (e2) => {
17610
- zJ(e2.animationName === "mui-auto-fill-cancel" ? AJ.current : {
17607
+ ...HJ
17608
+ }, VJ = TextareaAutosize_default);
17609
+ let UJ = (e2) => {
17610
+ IJ(e2.animationName === "mui-auto-fill-cancel" ? DJ.current : {
17611
17611
  value: "x"
17612
17612
  });
17613
17613
  };
17614
17614
  import_react.useEffect(() => {
17615
- FJ && FJ.setAdornedStart(!!wJ);
17615
+ MJ && MJ.setAdornedStart(!!xJ);
17616
17616
  }, [
17617
- FJ,
17618
- wJ
17617
+ MJ,
17618
+ xJ
17619
17619
  ]);
17620
- let qJ = {
17620
+ let WJ = {
17621
17621
  ...n,
17622
- color: IJ.color || "primary",
17623
- disabled: IJ.disabled,
17622
+ color: NJ.color || "primary",
17623
+ disabled: NJ.disabled,
17624
17624
  endAdornment: y,
17625
- error: IJ.error,
17626
- focused: IJ.focused,
17627
- formControl: FJ,
17625
+ error: NJ.error,
17626
+ focused: NJ.focused,
17627
+ formControl: MJ,
17628
17628
  fullWidth: w,
17629
- hiddenLabel: IJ.hiddenLabel,
17629
+ hiddenLabel: NJ.hiddenLabel,
17630
17630
  multiline: K,
17631
- size: IJ.size,
17632
- startAdornment: wJ,
17633
- type: TJ
17634
- }, JJ = useUtilityClasses(qJ), YJ = CJ.root || d.Root || InputBaseRoot, XJ = SJ.root || f.root || {}, ZJ = CJ.input || d.Input || InputBaseInput;
17635
- return GJ = {
17636
- ...GJ,
17637
- ...SJ.input ?? f.input
17631
+ size: NJ.size,
17632
+ startAdornment: xJ,
17633
+ type: SJ
17634
+ }, GJ = useUtilityClasses(WJ), KJ = bJ.root || d.Root || InputBaseRoot, qJ = yJ.root || f.root || {}, JJ = bJ.input || d.Input || InputBaseInput;
17635
+ return HJ = {
17636
+ ...HJ,
17637
+ ...yJ.input ?? f.input
17638
17638
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17639
17639
  children: [
17640
17640
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17641
- (0, import_jsx_runtime.jsxs)(YJ, {
17642
- ...XJ,
17641
+ (0, import_jsx_runtime.jsxs)(KJ, {
17642
+ ...qJ,
17643
17643
  ref: t,
17644
- onClick: UJ,
17645
- ...DJ,
17646
- ...!isHostComponent_default(YJ) && {
17644
+ onClick: BJ,
17645
+ ...wJ,
17646
+ ...!isHostComponent_default(KJ) && {
17647
17647
  ownerState: {
17648
- ...qJ,
17649
- ...XJ.ownerState
17648
+ ...WJ,
17649
+ ...qJ.ownerState
17650
17650
  }
17651
17651
  },
17652
- className: clsx_default(JJ.root, XJ.className, s, vJ && "MuiInputBase-readOnly"),
17652
+ className: clsx_default(GJ.root, qJ.className, s, hJ && "MuiInputBase-readOnly"),
17653
17653
  children: [
17654
- wJ,
17654
+ xJ,
17655
17655
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17656
17656
  value: null,
17657
- children: (0, import_jsx_runtime.jsx)(ZJ, {
17658
- "aria-invalid": IJ.error,
17657
+ children: (0, import_jsx_runtime.jsx)(JJ, {
17658
+ "aria-invalid": NJ.error,
17659
17659
  "aria-describedby": i,
17660
17660
  autoComplete: a,
17661
17661
  autoFocus: o,
17662
17662
  defaultValue: h,
17663
- disabled: IJ.disabled,
17663
+ disabled: NJ.disabled,
17664
17664
  id: E,
17665
- onAnimationStart: KJ,
17665
+ onAnimationStart: UJ,
17666
17666
  name: q,
17667
- placeholder: _J,
17668
- readOnly: vJ,
17669
- required: IJ.required,
17670
- rows: bJ,
17671
- value: OJ,
17672
- onKeyDown: hJ,
17673
- onKeyUp: gJ,
17674
- type: TJ,
17675
- ...GJ,
17676
- ...!isHostComponent_default(ZJ) && {
17677
- as: WJ,
17667
+ placeholder: mJ,
17668
+ readOnly: hJ,
17669
+ required: NJ.required,
17670
+ rows: _J,
17671
+ value: TJ,
17672
+ onKeyDown: fJ,
17673
+ onKeyUp: pJ,
17674
+ type: SJ,
17675
+ ...HJ,
17676
+ ...!isHostComponent_default(JJ) && {
17677
+ as: VJ,
17678
17678
  ownerState: {
17679
- ...qJ,
17680
- ...GJ.ownerState
17679
+ ...WJ,
17680
+ ...HJ.ownerState
17681
17681
  }
17682
17682
  },
17683
- ref: MJ,
17684
- className: clsx_default(JJ.input, GJ.className, vJ && "MuiInputBase-readOnly"),
17685
- onBlur: VJ,
17686
- onChange: HJ,
17687
- onFocus: BJ
17683
+ ref: kJ,
17684
+ className: clsx_default(GJ.input, HJ.className, hJ && "MuiInputBase-readOnly"),
17685
+ onBlur: RJ,
17686
+ onChange: zJ,
17687
+ onFocus: LJ
17688
17688
  })
17689
17689
  }),
17690
17690
  y,
17691
- yJ ? yJ({
17692
- ...IJ,
17693
- startAdornment: wJ
17691
+ gJ ? gJ({
17692
+ ...NJ,
17693
+ startAdornment: xJ
17694
17694
  }) : null
17695
17695
  ]
17696
17696
  })
@@ -18766,30 +18766,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18766
18766
  M,
18767
18767
  i,
18768
18768
  a
18769
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), mJ = useTextColor(), hJ = useJsonViewerStore((e2) => e2.colorspace.base0C), gJ = useJsonViewerStore((e2) => e2.colorspace.base0A), _J = useJsonViewerStore((e2) => e2.displayComma), vJ = useJsonViewerStore((e2) => e2.quotesOnKeys), yJ = useJsonViewerStore((e2) => e2.rootName), bJ = U === t, xJ = Number.isInteger(Number(A)), SJ = useJsonViewerStore((e2) => e2.enableAdd), CJ = useJsonViewerStore((e2) => e2.onAdd), wJ = (0, import_react.useMemo)(() => !CJ || a !== void 0 || SJ === false || v === false ? false : typeof SJ == "function" ? !!SJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18770
- CJ,
18769
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), dJ = useTextColor(), fJ = useJsonViewerStore((e2) => e2.colorspace.base0C), pJ = useJsonViewerStore((e2) => e2.colorspace.base0A), mJ = useJsonViewerStore((e2) => e2.displayComma), hJ = useJsonViewerStore((e2) => e2.quotesOnKeys), gJ = useJsonViewerStore((e2) => e2.rootName), _J = U === t, vJ = Number.isInteger(Number(A)), yJ = useJsonViewerStore((e2) => e2.enableAdd), bJ = useJsonViewerStore((e2) => e2.onAdd), xJ = (0, import_react.useMemo)(() => !bJ || a !== void 0 || yJ === false || v === false ? false : typeof yJ == "function" ? !!yJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18770
+ bJ,
18771
18771
  a,
18772
18772
  i,
18773
- SJ,
18773
+ yJ,
18774
18774
  v,
18775
18775
  t
18776
- ]), TJ = useJsonViewerStore((e2) => e2.enableDelete), EJ = useJsonViewerStore((e2) => e2.onDelete), DJ = (0, import_react.useMemo)(() => !EJ || a !== void 0 || bJ || TJ === false || v === false ? false : typeof TJ == "function" ? !!TJ(i, t) : TJ, [
18777
- EJ,
18776
+ ]), SJ = useJsonViewerStore((e2) => e2.enableDelete), CJ = useJsonViewerStore((e2) => e2.onDelete), wJ = (0, import_react.useMemo)(() => !CJ || a !== void 0 || _J || SJ === false || v === false ? false : typeof SJ == "function" ? !!SJ(i, t) : SJ, [
18777
+ CJ,
18778
18778
  a,
18779
- bJ,
18779
+ _J,
18780
18780
  i,
18781
- TJ,
18781
+ SJ,
18782
18782
  v,
18783
18783
  t
18784
- ]), OJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: kJ, copied: AJ } = useClipboard(), jJ = useJsonViewerStore((e2) => e2.highlightUpdates), MJ = (0, import_react.useMemo)(() => !jJ || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
18785
- jJ,
18784
+ ]), TJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: EJ, copied: DJ } = useClipboard(), OJ = useJsonViewerStore((e2) => e2.highlightUpdates), kJ = (0, import_react.useMemo)(() => !OJ || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
18785
+ OJ,
18786
18786
  n,
18787
18787
  t
18788
- ]), NJ = (0, import_react.useRef)();
18788
+ ]), AJ = (0, import_react.useRef)();
18789
18789
  (0, import_react.useEffect)(() => {
18790
- NJ.current && MJ && "animate" in NJ.current && NJ.current.animate([
18790
+ AJ.current && kJ && "animate" in AJ.current && AJ.current.animate([
18791
18791
  {
18792
- backgroundColor: gJ
18792
+ backgroundColor: pJ
18793
18793
  },
18794
18794
  {
18795
18795
  backgroundColor: ""
@@ -18799,22 +18799,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18799
18799
  easing: "ease-in"
18800
18800
  });
18801
18801
  }, [
18802
- gJ,
18803
- MJ,
18802
+ pJ,
18803
+ kJ,
18804
18804
  n,
18805
18805
  t
18806
18806
  ]);
18807
- let PJ = (0, import_react.useCallback)((e2) => {
18807
+ let jJ = (0, import_react.useCallback)((e2) => {
18808
18808
  e2.preventDefault(), h && E(h(t)), Q(true);
18809
18809
  }, [
18810
18810
  h,
18811
18811
  t
18812
- ]), FJ = (0, import_react.useCallback)(() => {
18812
+ ]), MJ = (0, import_react.useCallback)(() => {
18813
18813
  Q(false), E("");
18814
18814
  }, [
18815
18815
  Q,
18816
18816
  E
18817
- ]), IJ = (0, import_react.useCallback)((e2) => {
18817
+ ]), NJ = (0, import_react.useCallback)((e2) => {
18818
18818
  if (Q(false), _) try {
18819
18819
  $(i, t, _(e2));
18820
18820
  } catch {
@@ -18825,14 +18825,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18825
18825
  $,
18826
18826
  i,
18827
18827
  t
18828
- ]), LJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18828
+ ]), PJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18829
18829
  children: [
18830
18830
  (0, import_jsx_runtime.jsx)(IconBox, {
18831
18831
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18832
18832
  sx: {
18833
18833
  fontSize: ".8rem"
18834
18834
  },
18835
- onClick: FJ
18835
+ onClick: MJ
18836
18836
  })
18837
18837
  }),
18838
18838
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18840,22 +18840,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18840
18840
  sx: {
18841
18841
  fontSize: ".8rem"
18842
18842
  },
18843
- onClick: () => IJ(w)
18843
+ onClick: () => NJ(w)
18844
18844
  })
18845
18845
  })
18846
18846
  ]
18847
18847
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18848
18848
  children: [
18849
- OJ && (0, import_jsx_runtime.jsx)(IconBox, {
18849
+ TJ && (0, import_jsx_runtime.jsx)(IconBox, {
18850
18850
  onClick: (e2) => {
18851
18851
  e2.preventDefault();
18852
18852
  try {
18853
- kJ(i, t, copyString);
18853
+ EJ(i, t, copyString);
18854
18854
  } catch (e3) {
18855
18855
  console.error(e3);
18856
18856
  }
18857
18857
  },
18858
- children: AJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18858
+ children: DJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18859
18859
  sx: {
18860
18860
  fontSize: ".8rem"
18861
18861
  }
@@ -18866,16 +18866,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18866
18866
  })
18867
18867
  }),
18868
18868
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18869
- onClick: PJ,
18869
+ onClick: jJ,
18870
18870
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18871
18871
  sx: {
18872
18872
  fontSize: ".8rem"
18873
18873
  }
18874
18874
  })
18875
18875
  }),
18876
- wJ && (0, import_jsx_runtime.jsx)(IconBox, {
18876
+ xJ && (0, import_jsx_runtime.jsx)(IconBox, {
18877
18877
  onClick: (e2) => {
18878
- e2.preventDefault(), CJ == null ? void 0 : CJ(i);
18878
+ e2.preventDefault(), bJ == null ? void 0 : bJ(i);
18879
18879
  },
18880
18880
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18881
18881
  sx: {
@@ -18883,9 +18883,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18883
18883
  }
18884
18884
  })
18885
18885
  }),
18886
- DJ && (0, import_jsx_runtime.jsx)(IconBox, {
18886
+ wJ && (0, import_jsx_runtime.jsx)(IconBox, {
18887
18887
  onClick: (e2) => {
18888
- e2.preventDefault(), EJ == null ? void 0 : EJ(i, t);
18888
+ e2.preventDefault(), CJ == null ? void 0 : CJ(i, t);
18889
18889
  },
18890
18890
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18891
18891
  sx: {
@@ -18898,24 +18898,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18898
18898
  f,
18899
18899
  h,
18900
18900
  _,
18901
- AJ,
18902
- kJ,
18901
+ DJ,
18902
+ EJ,
18903
18903
  S,
18904
18904
  J,
18905
- OJ,
18905
+ TJ,
18906
+ xJ,
18906
18907
  wJ,
18907
- DJ,
18908
18908
  w,
18909
18909
  i,
18910
18910
  t,
18911
+ bJ,
18911
18912
  CJ,
18912
- EJ,
18913
- PJ,
18914
- FJ,
18915
- IJ
18916
- ]), RJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18913
+ jJ,
18914
+ MJ,
18915
+ NJ
18916
+ ]), FJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18917
18917
  t
18918
- ]), zJ = !RJ && !!(c && d), BJ = useJsonViewerStore((e2) => e2.keyRenderer), VJ = (0, import_react.useMemo)(() => ({
18918
+ ]), IJ = !FJ && !!(c && d), LJ = useJsonViewerStore((e2) => e2.keyRenderer), RJ = (0, import_react.useMemo)(() => ({
18919
18919
  path: i,
18920
18920
  inspect: K,
18921
18921
  setInspect: q,
@@ -18947,18 +18947,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18947
18947
  className: "data-key",
18948
18948
  sx: {
18949
18949
  lineHeight: 1.5,
18950
- color: mJ,
18950
+ color: dJ,
18951
18951
  letterSpacing: 0.5,
18952
18952
  opacity: 0.8
18953
18953
  },
18954
18954
  onClick: (0, import_react.useCallback)((e2) => {
18955
- e2.isDefaultPrevented() || RJ || q((e3) => !e3);
18955
+ e2.isDefaultPrevented() || FJ || q((e3) => !e3);
18956
18956
  }, [
18957
- RJ,
18957
+ FJ,
18958
18958
  q
18959
18959
  ]),
18960
18960
  children: [
18961
- zJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18961
+ IJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18962
18962
  className: "data-key-toggle-expanded",
18963
18963
  sx: {
18964
18964
  fontSize: ".8rem",
@@ -18976,27 +18976,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18976
18976
  }
18977
18977
  }) : null,
18978
18978
  (0, import_jsx_runtime.jsx)(Box_default, {
18979
- ref: NJ,
18979
+ ref: AJ,
18980
18980
  className: "data-key-key",
18981
18981
  component: "span",
18982
- children: bJ && O === 0 ? yJ === false ? null : vJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18982
+ children: _J && O === 0 ? gJ === false ? null : hJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18983
18983
  children: [
18984
18984
  '"',
18985
- yJ,
18985
+ gJ,
18986
18986
  '"'
18987
18987
  ]
18988
18988
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
18989
- children: yJ
18990
- }) : BJ.when(VJ) ? (0, import_jsx_runtime.jsx)(BJ, {
18991
- ...VJ
18992
- }) : a === void 0 && (xJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18989
+ children: gJ
18990
+ }) : LJ.when(RJ) ? (0, import_jsx_runtime.jsx)(LJ, {
18991
+ ...RJ
18992
+ }) : a === void 0 && (vJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18993
18993
  component: "span",
18994
18994
  style: {
18995
- color: hJ,
18996
- userSelect: xJ ? "none" : "auto"
18995
+ color: fJ,
18996
+ userSelect: vJ ? "none" : "auto"
18997
18997
  },
18998
18998
  children: A
18999
- }) : vJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18999
+ }) : hJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
19000
19000
  children: [
19001
19001
  '"',
19002
19002
  A,
@@ -19006,7 +19006,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19006
19006
  children: A
19007
19007
  }))
19008
19008
  }),
19009
- bJ ? yJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19009
+ _J ? gJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19010
19010
  className: "data-key-colon",
19011
19011
  sx: {
19012
19012
  mr: 0.5
@@ -19019,38 +19019,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19019
19019
  ".data-key-key:empty + &": {
19020
19020
  display: "none"
19021
19021
  },
19022
- userSelect: xJ ? "none" : "auto"
19022
+ userSelect: vJ ? "none" : "auto"
19023
19023
  },
19024
19024
  children: ":"
19025
19025
  }),
19026
19026
  c && (0, import_jsx_runtime.jsx)(c, {
19027
- ...VJ
19027
+ ...RJ
19028
19028
  }),
19029
- I && zJ && K && LJ
19029
+ I && IJ && K && PJ
19030
19030
  ]
19031
19031
  }),
19032
19032
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
19033
19033
  path: i,
19034
19034
  value: w,
19035
19035
  setValue: E,
19036
- abortEditing: FJ,
19037
- commitEditing: IJ
19036
+ abortEditing: MJ,
19037
+ commitEditing: NJ
19038
19038
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
19039
- ...VJ
19039
+ ...RJ
19040
19040
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
19041
19041
  component: "span",
19042
19042
  className: "data-value-fallback",
19043
19043
  children: `fallback: ${t}`
19044
19044
  }),
19045
19045
  d && (0, import_jsx_runtime.jsx)(d, {
19046
- ...VJ
19046
+ ...RJ
19047
19047
  }),
19048
- !o && _J && (0, import_jsx_runtime.jsx)(DataBox, {
19048
+ !o && mJ && (0, import_jsx_runtime.jsx)(DataBox, {
19049
19049
  children: ","
19050
19050
  }),
19051
- I && zJ && !K && LJ,
19052
- I && !zJ && LJ,
19053
- !I && J && LJ
19051
+ I && IJ && !K && PJ,
19052
+ I && !IJ && PJ,
19053
+ !I && J && PJ
19054
19054
  ]
19055
19055
  });
19056
19056
  }, query = "(prefers-color-scheme: dark)";
@@ -19876,26 +19876,6 @@ ${n}` : "Please fix this error.";
19876
19876
  }
19877
19877
  };
19878
19878
  }
19879
- var urlRegex = /(https?:\/\/\S+)/, imageRegex = /\.(png|jpe?g|gif|webp|svg|ico)(\?.*)?$/i, dataImageRegex = /^data:image\//i, knownImageDomains = [
19880
- "avatars.githubusercontent.com"
19881
- ];
19882
- function parseContent(e) {
19883
- return dataImageRegex.test(e) ? [
19884
- {
19885
- type: "image",
19886
- url: e
19887
- }
19888
- ] : e.split(urlRegex).filter((e2) => e2 !== "").map((e2) => urlRegex.test(e2) ? imageRegex.test(e2) || dataImageRegex.test(e2) || knownImageDomains.some((t) => e2.includes(t)) ? {
19889
- type: "image",
19890
- url: e2
19891
- } : {
19892
- type: "url",
19893
- url: e2
19894
- } : {
19895
- type: "text",
19896
- value: e2
19897
- });
19898
- }
19899
19879
  var import_compiler_runtime$55 = require_compiler_runtime(), ansiUp = new AnsiUp();
19900
19880
  const cleanAnsiCodes = (e) => {
19901
19881
  let t = RegExp("\x1B\\[[0-9;]*m", "g");
@@ -20130,18 +20110,18 @@ ${n}` : "Please fix this error.";
20130
20110
  }
20131
20111
  let y, S, w, E, O, A;
20132
20112
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== a || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
20133
- let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), hJ = n.filter(_temp16), gJ = n.filter(_temp17), _J = n.filter(_temp18), vJ;
20134
- t[17] === s ? vJ = t[18] : (vJ = () => {
20113
+ let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), dJ = n.filter(_temp15), fJ = n.filter(_temp16), pJ = n.filter(_temp17), mJ = n.filter(_temp18), hJ;
20114
+ t[17] === s ? hJ = t[18] : (hJ = () => {
20135
20115
  s.openApplication("scratchpad");
20136
- }, t[17] = s, t[18] = vJ);
20137
- let yJ = vJ, bJ = () => {
20116
+ }, t[17] = s, t[18] = hJ);
20117
+ let gJ = hJ, _J = () => {
20138
20118
  let t2 = [];
20139
- if (hJ.length > 0 || gJ.length > 0) {
20140
- let e3 = hJ.some(_temp19), n2 = !e3 && hJ.some(_temp20);
20119
+ if (fJ.length > 0 || pJ.length > 0) {
20120
+ let e3 = fJ.some(_temp19), n2 = !e3 && fJ.some(_temp20);
20141
20121
  t2.push((0, import_jsx_runtime.jsxs)("div", {
20142
20122
  children: [
20143
- hJ.map(_temp21),
20144
- gJ.map(_temp22),
20123
+ fJ.map(_temp21),
20124
+ pJ.map(_temp22),
20145
20125
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
20146
20126
  size: "xs",
20147
20127
  variant: "outline",
@@ -20172,8 +20152,8 @@ ${n}` : "Please fix this error.";
20172
20152
  }),
20173
20153
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20174
20154
  errors: [
20175
- ...hJ,
20176
- ...gJ
20155
+ ...fJ,
20156
+ ...pJ
20177
20157
  ],
20178
20158
  cellId: i
20179
20159
  })
@@ -20334,7 +20314,7 @@ ${n}` : "Please fix this error.";
20334
20314
  size: "xs",
20335
20315
  variant: "link",
20336
20316
  className: "my-2 font-normal mx-0 px-0",
20337
- onClick: yJ,
20317
+ onClick: gJ,
20338
20318
  children: [
20339
20319
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20340
20320
  className: "h-3"
@@ -20525,26 +20505,26 @@ ${n}` : "Please fix this error.";
20525
20505
  cellId: i
20526
20506
  })
20527
20507
  ]
20528
- }, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20508
+ }, "ancestor-prevented")), dJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20529
20509
  children: [
20530
- $.map(_temp34),
20510
+ dJ.map(_temp34),
20531
20511
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20532
- errors: $,
20512
+ errors: dJ,
20533
20513
  cellId: i
20534
20514
  })
20535
20515
  ]
20536
- }, "ancestor-stopped")), _J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20516
+ }, "ancestor-stopped")), mJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20537
20517
  children: [
20538
- _J.map(_temp35),
20518
+ mJ.map(_temp35),
20539
20519
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20540
- errors: _J,
20520
+ errors: mJ,
20541
20521
  cellId: i,
20542
20522
  className: "mt-2.5"
20543
20523
  })
20544
20524
  ]
20545
20525
  }, "sql-errors")), t2;
20546
- }, xJ;
20547
- t[19] === v ? xJ = t[20] : (xJ = v && (0, import_jsx_runtime.jsxs)("div", {
20526
+ }, vJ;
20527
+ t[19] === v ? vJ = t[20] : (vJ = v && (0, import_jsx_runtime.jsxs)("div", {
20548
20528
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20549
20529
  children: [
20550
20530
  v,
@@ -20556,22 +20536,22 @@ ${n}` : "Please fix this error.";
20556
20536
  })
20557
20537
  })
20558
20538
  ]
20559
- }), t[19] = v, t[20] = xJ);
20560
- let SJ;
20561
- t[21] !== _ || t[22] !== d ? (SJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20539
+ }), t[19] = v, t[20] = vJ);
20540
+ let yJ;
20541
+ t[21] !== _ || t[22] !== d ? (yJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20562
20542
  className: `font-code font-medium ${_}`,
20563
20543
  children: d
20564
- }), t[21] = _, t[22] = d, t[23] = SJ) : SJ = t[23];
20565
- let CJ;
20566
- t[24] !== xJ || t[25] !== SJ ? (CJ = (0, import_jsx_runtime.jsxs)("div", {
20544
+ }), t[21] = _, t[22] = d, t[23] = yJ) : yJ = t[23];
20545
+ let bJ;
20546
+ t[24] !== vJ || t[25] !== yJ ? (bJ = (0, import_jsx_runtime.jsxs)("div", {
20567
20547
  className: "space-y-0.5",
20568
20548
  children: [
20569
- xJ,
20570
- SJ
20549
+ vJ,
20550
+ yJ
20571
20551
  ]
20572
- }), t[24] = xJ, t[25] = SJ, t[26] = CJ) : CJ = t[26];
20573
- let wJ = CJ;
20574
- y = Alert, E = f, t[27] === a ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = O), A = wJ, S = "flex flex-col gap-4", w = bJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20552
+ }), t[24] = vJ, t[25] = yJ, t[26] = bJ) : bJ = t[26];
20553
+ let xJ = bJ;
20554
+ y = Alert, E = f, t[27] === a ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = O), A = xJ, S = "flex flex-col gap-4", w = _J(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20575
20555
  } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20576
20556
  let M;
20577
20557
  t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
@@ -26114,26 +26094,27 @@ ${n}` : "Please fix this error.";
26114
26094
  enableHiding: false
26115
26095
  }), M;
26116
26096
  };
26117
- var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: a, buttonText: s, wrapped: c, children: d }) => {
26118
- let f = i !== void 0 && (i.leading.length > 0 || i.trailing.length > 0) ? n.slice(i.leading.length, n.length - i.trailing.length) : n;
26097
+ var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: a, scrollable: c = false, wrapped: d, children: f, buttonText: _ }) => {
26098
+ let v = (0, import_react.useRef)(null), y = i !== void 0 && (i.leading.length > 0 || i.trailing.length > 0) ? n.slice(i.leading.length, n.length - i.trailing.length) : n;
26119
26099
  return (0, import_jsx_runtime.jsx)(EmotionCacheProvider, {
26120
26100
  container: null,
26121
26101
  children: (0, import_jsx_runtime.jsxs)(Popover, {
26122
26102
  children: [
26123
26103
  (0, import_jsx_runtime.jsx)(PopoverTrigger, {
26104
+ ref: v,
26124
26105
  className: cn(e, "max-w-fit outline-hidden"),
26125
26106
  onClick: t,
26126
26107
  onMouseDown: (e2) => {
26127
26108
  e2.stopPropagation();
26128
26109
  },
26129
26110
  children: (0, import_jsx_runtime.jsxs)("span", {
26130
- className: cn("cursor-pointer hover:text-link", c && "whitespace-pre-wrap min-w-[200px]"),
26111
+ className: cn("cursor-pointer hover:text-link", d && "whitespace-pre-wrap min-w-[200px]"),
26131
26112
  title: n,
26132
26113
  children: [
26133
26114
  i ? (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
26134
26115
  value: i.leading
26135
26116
  }) : null,
26136
- f,
26117
+ y,
26137
26118
  i ? (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
26138
26119
  value: i.trailing
26139
26120
  }) : null
@@ -26141,34 +26122,54 @@ ${n}` : "Please fix this error.";
26141
26122
  })
26142
26123
  }),
26143
26124
  (0, import_jsx_runtime.jsxs)(PopoverContent, {
26144
- className: a,
26125
+ className: cn(a, c && "flex flex-col overflow-hidden"),
26145
26126
  align: "start",
26146
26127
  alignOffset: 10,
26128
+ onInteractOutside: (e2) => {
26129
+ var _a2;
26130
+ let t2 = Events.composedTarget(e2.detail.originalEvent);
26131
+ ((_a2 = v.current) == null ? void 0 : _a2.contains(t2)) && e2.preventDefault();
26132
+ },
26147
26133
  children: [
26148
26134
  (0, import_jsx_runtime.jsxs)("div", {
26149
- className: "absolute top-2 right-2",
26135
+ className: cn("flex -mt-3 -mr-2", c ? "shrink-0 justify-end" : "float-right"),
26150
26136
  children: [
26151
26137
  (0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
26152
26138
  value: n,
26153
- className: "w-2.5 h-2.5",
26139
+ className: "size-3 hover:text-link",
26140
+ buttonClassName: "flex size-5 items-center justify-center",
26154
26141
  tooltip: false
26155
26142
  }),
26156
26143
  (0, import_jsx_runtime.jsx)(PopoverClose$1, {
26144
+ asChild: true,
26157
26145
  children: (0, import_jsx_runtime.jsx)(Button, {
26158
26146
  variant: "link",
26159
26147
  size: "xs",
26160
- children: s ?? "Close"
26148
+ className: cn("size-5 p-0", !_ && "ml-1.5 mr-1"),
26149
+ "aria-label": "Close",
26150
+ children: _ ?? "Close"
26161
26151
  })
26162
26152
  })
26163
26153
  ]
26164
26154
  }),
26165
- d
26155
+ c ? (0, import_jsx_runtime.jsx)("div", {
26156
+ className: "min-h-0 overflow-auto",
26157
+ children: f
26158
+ }) : f
26166
26159
  ]
26167
26160
  })
26168
26161
  ]
26169
26162
  })
26170
26163
  });
26171
26164
  };
26165
+ function parseJsonDocument(e) {
26166
+ let t = e.trim(), n = t[0], i = t[t.length - 1];
26167
+ if (n === "{" && i === "}" || n === "[" && i === "]") try {
26168
+ return JSON.parse(t);
26169
+ } catch {
26170
+ return;
26171
+ }
26172
+ }
26172
26173
  function isPrimitiveOrNullish(e) {
26173
26174
  return e == null ? true : typeof e != "object";
26174
26175
  }
@@ -26255,8 +26256,25 @@ ${n}` : "Please fix this error.";
26255
26256
  children: c.toString()
26256
26257
  });
26257
26258
  if (typeof c == "string") {
26258
- let n2 = d ? String(e.applyColumnFormatting(c)) : String(t()), { leading: a, middle: f2, trailing: h2 } = splitLeadingTrailingWhitespace(n2), v2 = parseContent(a.length > 0 || h2.length > 0 ? f2 : n2);
26259
- return v2.every((e2) => e2.type !== "text") || n2.length < MAX_STRING_LENGTH || _ ? (0, import_jsx_runtime.jsxs)("div", {
26259
+ let n2 = d ? String(e.applyColumnFormatting(c)) : String(t()), { leading: a, middle: f2, trailing: h2 } = splitLeadingTrailingWhitespace(n2), v2 = a.length > 0 || h2.length > 0, y2 = parseJsonDocument(f2);
26260
+ if (y2 !== void 0) return (0, import_jsx_runtime.jsx)(PopoutColumn, {
26261
+ cellStyles: s,
26262
+ selectCell: i,
26263
+ rawStringValue: n2,
26264
+ edges: {
26265
+ leading: a,
26266
+ trailing: h2
26267
+ },
26268
+ wrapped: _,
26269
+ children: (0, import_jsx_runtime.jsx)(JsonOutput, {
26270
+ data: y2,
26271
+ format: "tree",
26272
+ valueTypes: "json",
26273
+ className: "max-h-64"
26274
+ })
26275
+ });
26276
+ let S = parseContent(v2 ? f2 : n2);
26277
+ return S.every((e2) => e2.type !== "text") || n2.length < MAX_STRING_LENGTH || _ ? (0, import_jsx_runtime.jsxs)("div", {
26260
26278
  onClick: i,
26261
26279
  className: cn(s, _ && "whitespace-pre-wrap min-w-[200px]"),
26262
26280
  children: [
@@ -26264,7 +26282,7 @@ ${n}` : "Please fix this error.";
26264
26282
  value: a
26265
26283
  }),
26266
26284
  (0, import_jsx_runtime.jsx)(UrlDetector, {
26267
- parts: v2
26285
+ parts: S
26268
26286
  }),
26269
26287
  (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
26270
26288
  value: h2
@@ -26278,9 +26296,10 @@ ${n}` : "Please fix this error.";
26278
26296
  leading: a,
26279
26297
  trailing: h2
26280
26298
  },
26281
- contentClassName: "max-h-64 overflow-auto whitespace-pre-wrap wrap-break-word text-sm w-96",
26282
- buttonText: "X",
26299
+ contentClassName: "max-h-64 whitespace-pre-wrap wrap-break-word text-sm w-96",
26300
+ scrollable: true,
26283
26301
  wrapped: _,
26302
+ buttonText: "X",
26284
26303
  children: (0, import_jsx_runtime.jsx)(MarkdownUrlDetector, {
26285
26304
  content: n2,
26286
26305
  parts: parseContent(n2)
@@ -26653,7 +26672,7 @@ ${n}` : "Please fix this error.";
26653
26672
  function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
26654
26673
  let E = (0, import_react.useContext)(PanelGroupContext);
26655
26674
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
26656
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), mJ = (0, import_react.useRef)({
26675
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), dJ = (0, import_react.useRef)({
26657
26676
  callbacks: {
26658
26677
  onCollapse: f,
26659
26678
  onExpand: h,
@@ -26673,12 +26692,12 @@ ${n}` : "Please fix this error.";
26673
26692
  (0, import_react.useRef)({
26674
26693
  didLogMissingDefaultSizeWarning: false
26675
26694
  }), useIsomorphicLayoutEffect$1(() => {
26676
- let { callbacks: e2, constraints: t2 } = mJ.current, o2 = {
26695
+ let { callbacks: e2, constraints: t2 } = dJ.current, o2 = {
26677
26696
  ...t2
26678
26697
  };
26679
- mJ.current.id = $, mJ.current.idIsFromProps = s !== void 0, mJ.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(mJ.current, o2);
26698
+ dJ.current.id = $, dJ.current.idIsFromProps = s !== void 0, dJ.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(dJ.current, o2);
26680
26699
  }), useIsomorphicLayoutEffect$1(() => {
26681
- let e2 = mJ.current;
26700
+ let e2 = dJ.current;
26682
26701
  return q(e2), () => {
26683
26702
  Q(e2);
26684
26703
  };
@@ -26689,25 +26708,25 @@ ${n}` : "Please fix this error.";
26689
26708
  Q
26690
26709
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26691
26710
  collapse: () => {
26692
- O(mJ.current);
26711
+ O(dJ.current);
26693
26712
  },
26694
26713
  expand: (e2) => {
26695
- A(mJ.current, e2);
26714
+ A(dJ.current, e2);
26696
26715
  },
26697
26716
  getId() {
26698
26717
  return $;
26699
26718
  },
26700
26719
  getSize() {
26701
- return M(mJ.current);
26720
+ return M(dJ.current);
26702
26721
  },
26703
26722
  isCollapsed() {
26704
- return U(mJ.current);
26723
+ return U(dJ.current);
26705
26724
  },
26706
26725
  isExpanded() {
26707
- return !U(mJ.current);
26726
+ return !U(dJ.current);
26708
26727
  },
26709
26728
  resize: (e2) => {
26710
- J(mJ.current, e2);
26729
+ J(dJ.current, e2);
26711
26730
  }
26712
26731
  }), [
26713
26732
  O,
@@ -26717,21 +26736,21 @@ ${n}` : "Please fix this error.";
26717
26736
  $,
26718
26737
  J
26719
26738
  ]);
26720
- let hJ = I(mJ.current, a);
26739
+ let fJ = I(dJ.current, a);
26721
26740
  return (0, import_react.createElement)(S, {
26722
26741
  ...w,
26723
26742
  children: e,
26724
26743
  className: t,
26725
26744
  id: $,
26726
26745
  style: {
26727
- ...hJ,
26746
+ ...fJ,
26728
26747
  ...y
26729
26748
  },
26730
26749
  [DATA_ATTRIBUTES.groupId]: z,
26731
26750
  [DATA_ATTRIBUTES.panel]: "",
26732
26751
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26733
26752
  [DATA_ATTRIBUTES.panelId]: $,
26734
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + hJ.flexGrow).toFixed(1)
26753
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + fJ.flexGrow).toFixed(1)
26735
26754
  });
26736
26755
  }
26737
26756
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -27516,13 +27535,13 @@ ${n}` : "Please fix this error.";
27516
27535
  }, [
27517
27536
  S,
27518
27537
  E
27519
- ]), mJ = (0, import_react.useCallback)((e2) => {
27538
+ ]), dJ = (0, import_react.useCallback)((e2) => {
27520
27539
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27521
27540
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
27522
- }, []), hJ = (0, import_react.useCallback)((e2) => {
27541
+ }, []), fJ = (0, import_react.useCallback)((e2) => {
27523
27542
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27524
27543
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27525
- }, []), gJ = (0, import_react.useCallback)((e2) => {
27544
+ }, []), pJ = (0, import_react.useCallback)((e2) => {
27526
27545
  let { panelDataArray: t2 } = K.current;
27527
27546
  t2.push(e2), t2.sort((e3, t3) => {
27528
27547
  let n2 = e3.order, i2 = t3.order;
@@ -27554,7 +27573,7 @@ ${n}` : "Please fix this error.";
27554
27573
  e2.layout = [];
27555
27574
  };
27556
27575
  }, []);
27557
- let _J = (0, import_react.useCallback)((e2) => {
27576
+ let mJ = (0, import_react.useCallback)((e2) => {
27558
27577
  let t2 = false, n2 = y.current;
27559
27578
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27560
27579
  n3.preventDefault();
@@ -27572,7 +27591,7 @@ ${n}` : "Please fix this error.";
27572
27591
  }), I2 = !compareLayouts(f2, A2);
27573
27592
  (isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
27574
27593
  };
27575
- }, []), vJ = (0, import_react.useCallback)((e2, t2) => {
27594
+ }, []), hJ = (0, import_react.useCallback)((e2, t2) => {
27576
27595
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
27577
27596
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27578
27597
  let d2 = adjustLayoutByDelta({
@@ -27584,12 +27603,12 @@ ${n}` : "Please fix this error.";
27584
27603
  trigger: "imperative-api"
27585
27604
  });
27586
27605
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
27587
- }, []), yJ = (0, import_react.useCallback)((e2, t2) => {
27606
+ }, []), gJ = (0, import_react.useCallback)((e2, t2) => {
27588
27607
  let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
27589
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || vJ(e2, s2) : h2 < f2 ? vJ(e2, f2) : h2 > d2 && vJ(e2, d2));
27608
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || hJ(e2, s2) : h2 < f2 ? hJ(e2, f2) : h2 > d2 && hJ(e2, d2));
27590
27609
  }, [
27591
- vJ
27592
- ]), bJ = (0, import_react.useCallback)((e2, t2) => {
27610
+ hJ
27611
+ ]), _J = (0, import_react.useCallback)((e2, t2) => {
27593
27612
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27594
27613
  if (!y.current) return;
27595
27614
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27601,14 +27620,14 @@ ${n}` : "Please fix this error.";
27601
27620
  initialCursorPosition: o2,
27602
27621
  initialLayout: i2
27603
27622
  });
27604
- }, []), xJ = (0, import_react.useCallback)(() => {
27623
+ }, []), vJ = (0, import_react.useCallback)(() => {
27605
27624
  w(null);
27606
- }, []), SJ = (0, import_react.useCallback)((e2) => {
27625
+ }, []), yJ = (0, import_react.useCallback)((e2) => {
27607
27626
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27608
27627
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27609
27628
  }, [
27610
27629
  A
27611
- ]), CJ = (0, import_react.useMemo)(() => ({
27630
+ ]), bJ = (0, import_react.useMemo)(() => ({
27612
27631
  collapsePanel: q,
27613
27632
  direction: i,
27614
27633
  dragState: S,
@@ -27616,15 +27635,15 @@ ${n}` : "Please fix this error.";
27616
27635
  getPanelSize: Q,
27617
27636
  getPanelStyle: $,
27618
27637
  groupId: v,
27619
- isPanelCollapsed: mJ,
27620
- isPanelExpanded: hJ,
27621
- reevaluatePanelConstraints: yJ,
27622
- registerPanel: gJ,
27623
- registerResizeHandle: _J,
27624
- resizePanel: vJ,
27625
- startDragging: bJ,
27626
- stopDragging: xJ,
27627
- unregisterPanel: SJ,
27638
+ isPanelCollapsed: dJ,
27639
+ isPanelExpanded: fJ,
27640
+ reevaluatePanelConstraints: gJ,
27641
+ registerPanel: pJ,
27642
+ registerResizeHandle: mJ,
27643
+ resizePanel: hJ,
27644
+ startDragging: _J,
27645
+ stopDragging: vJ,
27646
+ unregisterPanel: yJ,
27628
27647
  panelGroupElement: y.current
27629
27648
  }), [
27630
27649
  q,
@@ -27634,16 +27653,16 @@ ${n}` : "Please fix this error.";
27634
27653
  Q,
27635
27654
  $,
27636
27655
  v,
27656
+ dJ,
27657
+ fJ,
27658
+ gJ,
27659
+ pJ,
27637
27660
  mJ,
27638
27661
  hJ,
27639
- yJ,
27640
- gJ,
27641
27662
  _J,
27642
27663
  vJ,
27643
- bJ,
27644
- xJ,
27645
- SJ
27646
- ]), wJ = {
27664
+ yJ
27665
+ ]), xJ = {
27647
27666
  display: "flex",
27648
27667
  flexDirection: i === "horizontal" ? "row" : "column",
27649
27668
  height: "100%",
@@ -27651,7 +27670,7 @@ ${n}` : "Please fix this error.";
27651
27670
  width: "100%"
27652
27671
  };
27653
27672
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27654
- value: CJ
27673
+ value: bJ
27655
27674
  }, (0, import_react.createElement)(h, {
27656
27675
  ..._,
27657
27676
  children: t,
@@ -27659,7 +27678,7 @@ ${n}` : "Please fix this error.";
27659
27678
  id: o,
27660
27679
  ref: y,
27661
27680
  style: {
27662
- ...wJ,
27681
+ ...xJ,
27663
27682
  ...f
27664
27683
  },
27665
27684
  [DATA_ATTRIBUTES.group]: "",
@@ -27736,31 +27755,31 @@ ${n}` : "Please fix this error.";
27736
27755
  });
27737
27756
  let O = (0, import_react.useContext)(PanelGroupContext);
27738
27757
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
27739
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, mJ] = (0, import_react.useState)(false), [hJ, gJ] = (0, import_react.useState)(null), _J = (0, import_react.useRef)({
27758
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, dJ] = (0, import_react.useState)(false), [fJ, pJ] = (0, import_react.useState)(null), mJ = (0, import_react.useRef)({
27740
27759
  state: J
27741
27760
  });
27742
27761
  useIsomorphicLayoutEffect$1(() => {
27743
- _J.current.state = J;
27762
+ mJ.current.state = J;
27744
27763
  }), (0, import_react.useEffect)(() => {
27745
- if (n) gJ(null);
27764
+ if (n) pJ(null);
27746
27765
  else {
27747
27766
  let e2 = I(q);
27748
- gJ(() => e2);
27767
+ pJ(() => e2);
27749
27768
  }
27750
27769
  }, [
27751
27770
  n,
27752
27771
  q,
27753
27772
  I
27754
27773
  ]);
27755
- let vJ = (i == null ? void 0 : i.coarse) ?? 15, yJ = (i == null ? void 0 : i.fine) ?? 5;
27774
+ let hJ = (i == null ? void 0 : i.coarse) ?? 15, gJ = (i == null ? void 0 : i.fine) ?? 5;
27756
27775
  (0, import_react.useEffect)(() => {
27757
- if (n || hJ == null) return;
27776
+ if (n || fJ == null) return;
27758
27777
  let e2 = w.current;
27759
27778
  assert(e2, "Element ref not attached");
27760
27779
  let t2 = false;
27761
27780
  return registerResizeHandle(q, e2, A, {
27762
- coarse: vJ,
27763
- fine: yJ
27781
+ coarse: hJ,
27782
+ fine: gJ
27764
27783
  }, (e3, n2, i2) => {
27765
27784
  if (!n2) {
27766
27785
  Q("inactive");
@@ -27774,8 +27793,8 @@ ${n}` : "Please fix this error.";
27774
27793
  break;
27775
27794
  }
27776
27795
  case "move": {
27777
- let { state: e4 } = _J.current;
27778
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), hJ(i2);
27796
+ let { state: e4 } = mJ.current;
27797
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), fJ(i2);
27779
27798
  break;
27780
27799
  }
27781
27800
  case "up": {
@@ -27787,22 +27806,22 @@ ${n}` : "Please fix this error.";
27787
27806
  }
27788
27807
  });
27789
27808
  }, [
27790
- vJ,
27809
+ hJ,
27791
27810
  A,
27792
27811
  n,
27793
- yJ,
27812
+ gJ,
27794
27813
  I,
27795
27814
  q,
27796
- hJ,
27815
+ fJ,
27797
27816
  z,
27798
27817
  U
27799
27818
  ]), useWindowSplitterResizeHandlerBehavior({
27800
27819
  disabled: n,
27801
27820
  handleId: q,
27802
- resizeHandler: hJ,
27821
+ resizeHandler: fJ,
27803
27822
  panelGroupElement: K
27804
27823
  });
27805
- let bJ = {
27824
+ let _J = {
27806
27825
  touchAction: "none",
27807
27826
  userSelect: "none"
27808
27827
  };
@@ -27812,15 +27831,15 @@ ${n}` : "Please fix this error.";
27812
27831
  className: t,
27813
27832
  id: a,
27814
27833
  onBlur: () => {
27815
- mJ(false), o == null ? void 0 : o();
27834
+ dJ(false), o == null ? void 0 : o();
27816
27835
  },
27817
27836
  onFocus: () => {
27818
- mJ(true), d == null ? void 0 : d();
27837
+ dJ(true), d == null ? void 0 : d();
27819
27838
  },
27820
27839
  ref: w,
27821
27840
  role: "separator",
27822
27841
  style: {
27823
- ...bJ,
27842
+ ..._J,
27824
27843
  ..._
27825
27844
  },
27826
27845
  tabIndex: v,
@@ -28119,7 +28138,7 @@ ${n}` : "Please fix this error.";
28119
28138
  }, [
28120
28139
  h
28121
28140
  ]), k(() => {
28122
- U(6, hJ);
28141
+ U(6, fJ);
28123
28142
  }, []);
28124
28143
  let K = import_react.useMemo(() => ({
28125
28144
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -28128,7 +28147,7 @@ ${n}` : "Please fix this error.";
28128
28147
  var _a2;
28129
28148
  var a2, o2, s2;
28130
28149
  if (!Object.is(n.current[e2], t2)) {
28131
- if (n.current[e2] = t2, e2 === "search") mJ(), Q(), U(1, $);
28150
+ if (n.current[e2] = t2, e2 === "search") dJ(), Q(), U(1, $);
28132
28151
  else if (e2 === "value") {
28133
28152
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
28134
28153
  let e3 = document.getElementById(I);
@@ -28136,8 +28155,8 @@ ${n}` : "Please fix this error.";
28136
28155
  }
28137
28156
  if (U(7, () => {
28138
28157
  var _a3;
28139
- n.current.selectedItemId = (_a3 = gJ()) == null ? void 0 : _a3.id, K.emit();
28140
- }), i2 || U(5, hJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28158
+ n.current.selectedItemId = (_a3 = pJ()) == null ? void 0 : _a3.id, K.emit();
28159
+ }), i2 || U(5, fJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28141
28160
  let e3 = t2 ?? "";
28142
28161
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
28143
28162
  return;
@@ -28162,12 +28181,12 @@ ${n}` : "Please fix this error.";
28162
28181
  item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
28163
28182
  e2
28164
28183
  ]))), U(3, () => {
28165
- mJ(), Q(), n.current.value || $(), K.emit();
28184
+ dJ(), Q(), n.current.value || $(), K.emit();
28166
28185
  }), () => {
28167
28186
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
28168
- let t3 = gJ();
28187
+ let t3 = pJ();
28169
28188
  U(4, () => {
28170
- mJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28189
+ dJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28171
28190
  });
28172
28191
  }),
28173
28192
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -28200,7 +28219,7 @@ ${n}` : "Please fix this error.";
28200
28219
  ]);
28201
28220
  });
28202
28221
  let i2 = z.current;
28203
- _J().sort((t3, n2) => {
28222
+ mJ().sort((t3, n2) => {
28204
28223
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
28205
28224
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
28206
28225
  }).forEach((e3) => {
@@ -28214,10 +28233,10 @@ ${n}` : "Please fix this error.";
28214
28233
  }
28215
28234
  function $() {
28216
28235
  var _a2;
28217
- let e2 = (_a2 = _J().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28236
+ let e2 = (_a2 = mJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28218
28237
  K.setState("value", e2 || void 0);
28219
28238
  }
28220
- function mJ() {
28239
+ function dJ() {
28221
28240
  var _a2, _b;
28222
28241
  if (!n.current.search || c.current.shouldFilter === false) {
28223
28242
  n.current.filtered.count = i.current.size;
@@ -28235,43 +28254,43 @@ ${n}` : "Please fix this error.";
28235
28254
  }
28236
28255
  n.current.filtered.count = e2;
28237
28256
  }
28238
- function hJ() {
28257
+ function fJ() {
28239
28258
  var _a2, _b;
28240
28259
  var e2;
28241
- let t2 = gJ();
28260
+ let t2 = pJ();
28242
28261
  t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
28243
28262
  block: "nearest"
28244
28263
  })), t2.scrollIntoView({
28245
28264
  block: "nearest"
28246
28265
  }));
28247
28266
  }
28248
- function gJ() {
28267
+ function pJ() {
28249
28268
  var _a2;
28250
28269
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
28251
28270
  }
28252
- function _J() {
28271
+ function mJ() {
28253
28272
  var _a2;
28254
28273
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
28255
28274
  }
28256
- function vJ(e2) {
28257
- let t2 = _J()[e2];
28275
+ function hJ(e2) {
28276
+ let t2 = mJ()[e2];
28258
28277
  t2 && K.setState("value", t2.getAttribute(T));
28259
28278
  }
28260
- function yJ(e2) {
28279
+ function gJ(e2) {
28261
28280
  var t2;
28262
- let n2 = gJ(), i2 = _J(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28281
+ let n2 = pJ(), i2 = mJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28263
28282
  (t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
28264
28283
  }
28265
- function bJ(e2) {
28284
+ function _J(e2) {
28266
28285
  var _a2;
28267
- let t2 = (_a2 = gJ()) == null ? void 0 : _a2.closest(N$1), n2;
28286
+ let t2 = (_a2 = pJ()) == null ? void 0 : _a2.closest(N$1), n2;
28268
28287
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
28269
- n2 ? K.setState("value", n2.getAttribute(T)) : yJ(e2);
28288
+ n2 ? K.setState("value", n2.getAttribute(T)) : gJ(e2);
28270
28289
  }
28271
- let xJ = () => vJ(_J().length - 1), SJ = (e2) => {
28272
- e2.preventDefault(), e2.metaKey ? xJ() : e2.altKey ? bJ(1) : yJ(1);
28273
- }, CJ = (e2) => {
28274
- e2.preventDefault(), e2.metaKey ? vJ(0) : e2.altKey ? bJ(-1) : yJ(-1);
28290
+ let vJ = () => hJ(mJ().length - 1), yJ = (e2) => {
28291
+ e2.preventDefault(), e2.metaKey ? vJ() : e2.altKey ? _J(1) : gJ(1);
28292
+ }, bJ = (e2) => {
28293
+ e2.preventDefault(), e2.metaKey ? hJ(0) : e2.altKey ? _J(-1) : gJ(-1);
28275
28294
  };
28276
28295
  return import_react.createElement(Primitive.div, {
28277
28296
  ref: t,
@@ -28285,27 +28304,27 @@ ${n}` : "Please fix this error.";
28285
28304
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
28286
28305
  case "n":
28287
28306
  case "j":
28288
- E && e2.ctrlKey && SJ(e2);
28307
+ E && e2.ctrlKey && yJ(e2);
28289
28308
  break;
28290
28309
  case "ArrowDown":
28291
- SJ(e2);
28310
+ yJ(e2);
28292
28311
  break;
28293
28312
  case "p":
28294
28313
  case "k":
28295
- E && e2.ctrlKey && CJ(e2);
28314
+ E && e2.ctrlKey && bJ(e2);
28296
28315
  break;
28297
28316
  case "ArrowUp":
28298
- CJ(e2);
28317
+ bJ(e2);
28299
28318
  break;
28300
28319
  case "Home":
28301
- e2.preventDefault(), vJ(0);
28320
+ e2.preventDefault(), hJ(0);
28302
28321
  break;
28303
28322
  case "End":
28304
- e2.preventDefault(), xJ();
28323
+ e2.preventDefault(), vJ();
28305
28324
  break;
28306
28325
  case "Enter": {
28307
28326
  e2.preventDefault();
28308
- let t3 = gJ();
28327
+ let t3 = pJ();
28309
28328
  if (t3) {
28310
28329
  let e3 = new Event(Z);
28311
28330
  t3.dispatchEvent(e3);
@@ -28714,153 +28733,153 @@ ${n}` : "Please fix this error.";
28714
28733
  Combobox = (e) => {
28715
28734
  let t = (0, import_compiler_runtime$35.c)(106), n, i, a, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
28716
28735
  t[0] === e ? (n = t[1], i = t[2], a = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: a, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = Q);
28717
- let $ = I === void 0 ? false : I, mJ = z === void 0 ? true : z, hJ = U === void 0 ? "Search..." : U, gJ = K === void 0 ? "Nothing found." : K, _J = q === void 0 ? false : q, vJ = J === void 0 ? false : J, yJ = s ?? false, bJ;
28718
- t[25] !== v || t[26] !== w || t[27] !== yJ ? (bJ = {
28736
+ let $ = I === void 0 ? false : I, dJ = z === void 0 ? true : z, fJ = U === void 0 ? "Search..." : U, pJ = K === void 0 ? "Nothing found." : K, hJ = q === void 0 ? false : q, gJ = J === void 0 ? false : J, _J = s ?? false, vJ;
28737
+ t[25] !== v || t[26] !== w || t[27] !== _J ? (vJ = {
28719
28738
  prop: w,
28720
- defaultProp: yJ,
28739
+ defaultProp: _J,
28721
28740
  onChange: v
28722
- }, t[25] = v, t[26] = w, t[27] = yJ, t[28] = bJ) : bJ = t[28];
28723
- let [xJ, SJ] = useControllableState(bJ), CJ = xJ === void 0 ? false : xJ, wJ;
28724
- t[29] === S ? wJ = t[30] : (wJ = (e2) => {
28741
+ }, t[25] = v, t[26] = w, t[27] = _J, t[28] = vJ) : vJ = t[28];
28742
+ let [yJ, bJ] = useControllableState(vJ), xJ = yJ === void 0 ? false : yJ, SJ;
28743
+ t[29] === S ? SJ = t[30] : (SJ = (e2) => {
28725
28744
  S == null ? void 0 : S(e2);
28726
- }, t[29] = S, t[30] = wJ);
28727
- let TJ;
28728
- t[31] !== c || t[32] !== wJ || t[33] !== Q ? (TJ = {
28745
+ }, t[29] = S, t[30] = SJ);
28746
+ let CJ;
28747
+ t[31] !== c || t[32] !== SJ || t[33] !== Q ? (CJ = {
28729
28748
  prop: Q,
28730
28749
  defaultProp: c,
28731
- onChange: wJ
28732
- }, t[31] = c, t[32] = wJ, t[33] = Q, t[34] = TJ) : TJ = t[34];
28733
- let [EJ, DJ] = useControllableState(TJ), OJ;
28734
- t[35] === EJ ? OJ = t[36] : (OJ = (e2) => Array.isArray(EJ) ? EJ.includes(e2) : EJ === e2, t[35] = EJ, t[36] = OJ);
28735
- let kJ = OJ, AJ;
28736
- t[37] !== _ || t[38] !== $ || t[39] !== SJ || t[40] !== DJ || t[41] !== EJ ? (AJ = (e2) => {
28750
+ onChange: SJ
28751
+ }, t[31] = c, t[32] = SJ, t[33] = Q, t[34] = CJ) : CJ = t[34];
28752
+ let [wJ, TJ] = useControllableState(CJ), EJ;
28753
+ t[35] === wJ ? EJ = t[36] : (EJ = (e2) => Array.isArray(wJ) ? wJ.includes(e2) : wJ === e2, t[35] = wJ, t[36] = EJ);
28754
+ let DJ = EJ, OJ;
28755
+ t[37] !== _ || t[38] !== $ || t[39] !== bJ || t[40] !== TJ || t[41] !== wJ ? (OJ = (e2) => {
28737
28756
  let t2 = e2;
28738
- if ($) if (Array.isArray(EJ)) if (EJ.includes(t2)) {
28739
- let n2 = EJ.filter((t3) => t3 !== e2);
28757
+ if ($) if (Array.isArray(wJ)) if (wJ.includes(t2)) {
28758
+ let n2 = wJ.filter((t3) => t3 !== e2);
28740
28759
  t2 = n2.length > 0 ? n2 : [];
28741
28760
  } else t2 = [
28742
- ...EJ,
28761
+ ...wJ,
28743
28762
  t2
28744
28763
  ];
28745
28764
  else t2 = [
28746
28765
  t2
28747
28766
  ];
28748
- else EJ === e2 && (t2 = null);
28749
- DJ(t2), (_ ?? $) || SJ(false);
28750
- }, t[37] = _, t[38] = $, t[39] = SJ, t[40] = DJ, t[41] = EJ, t[42] = AJ) : AJ = t[42];
28767
+ else wJ === e2 && (t2 = null);
28768
+ TJ(t2), (_ ?? $) || bJ(false);
28769
+ }, t[37] = _, t[38] = $, t[39] = bJ, t[40] = TJ, t[41] = wJ, t[42] = OJ) : OJ = t[42];
28770
+ let kJ = OJ, AJ;
28771
+ t[43] !== hJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== wJ ? (AJ = () => $ && hJ && E ? E : wJ == null ? E ?? "--" : Array.isArray(wJ) ? wJ.length === 0 ? E ?? "--" : wJ.length === 1 && d !== void 0 ? d(wJ[0]) : `${wJ.length} selected` : d === void 0 ? E ?? "--" : d(wJ), t[43] = hJ, t[44] = d, t[45] = $, t[46] = E, t[47] = wJ, t[48] = AJ) : AJ = t[48];
28751
28772
  let jJ = AJ, MJ;
28752
- t[43] !== _J || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== EJ ? (MJ = () => $ && _J && E ? E : EJ == null ? E ?? "--" : Array.isArray(EJ) ? EJ.length === 0 ? E ?? "--" : EJ.length === 1 && d !== void 0 ? d(EJ[0]) : `${EJ.length} selected` : d === void 0 ? E ?? "--" : d(EJ), t[43] = _J, t[44] = d, t[45] = $, t[46] = E, t[47] = EJ, t[48] = MJ) : MJ = t[48];
28773
+ t[49] !== kJ || t[50] !== DJ ? (MJ = {
28774
+ isSelected: DJ,
28775
+ onSelect: kJ
28776
+ }, t[49] = kJ, t[50] = DJ, t[51] = MJ) : MJ = t[51];
28753
28777
  let NJ = MJ, PJ;
28754
- t[49] !== jJ || t[50] !== kJ ? (PJ = {
28755
- isSelected: kJ,
28756
- onSelect: jJ
28757
- }, t[49] = jJ, t[50] = kJ, t[51] = PJ) : PJ = t[51];
28758
- let FJ = PJ, IJ;
28759
- t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (IJ = cn("relative"), t[52] = IJ) : IJ = t[52];
28760
- let LJ;
28761
- t[53] !== vJ || t[54] !== SJ ? (LJ = (e2) => {
28762
- vJ && e2 || SJ(e2);
28763
- }, t[53] = vJ, t[54] = SJ, t[55] = LJ) : LJ = t[55];
28764
- let RJ = vJ && "cursor-not-allowed opacity-50", zJ;
28765
- t[56] !== a || t[57] !== RJ ? (zJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", RJ, a), t[56] = a, t[57] = RJ, t[58] = zJ) : zJ = t[58];
28766
- let BJ;
28767
- t[59] !== O || t[60] !== NJ || t[61] !== EJ ? (BJ = O ? O(EJ ?? null) : NJ(), t[59] = O, t[60] = NJ, t[61] = EJ, t[62] = BJ) : BJ = t[62];
28768
- let VJ;
28769
- t[63] === BJ ? VJ = t[64] : (VJ = (0, import_jsx_runtime.jsx)("span", {
28778
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (PJ = cn("relative"), t[52] = PJ) : PJ = t[52];
28779
+ let FJ;
28780
+ t[53] !== gJ || t[54] !== bJ ? (FJ = (e2) => {
28781
+ gJ && e2 || bJ(e2);
28782
+ }, t[53] = gJ, t[54] = bJ, t[55] = FJ) : FJ = t[55];
28783
+ let IJ = gJ && "cursor-not-allowed opacity-50", LJ;
28784
+ t[56] !== a || t[57] !== IJ ? (LJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", IJ, a), t[56] = a, t[57] = IJ, t[58] = LJ) : LJ = t[58];
28785
+ let RJ;
28786
+ t[59] !== O || t[60] !== jJ || t[61] !== wJ ? (RJ = O ? O(wJ ?? null) : jJ(), t[59] = O, t[60] = jJ, t[61] = wJ, t[62] = RJ) : RJ = t[62];
28787
+ let zJ;
28788
+ t[63] === RJ ? zJ = t[64] : (zJ = (0, import_jsx_runtime.jsx)("span", {
28770
28789
  className: "truncate flex-1 min-w-0",
28771
- children: BJ
28772
- }), t[63] = BJ, t[64] = VJ);
28773
- let HJ;
28774
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (HJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28790
+ children: RJ
28791
+ }), t[63] = RJ, t[64] = zJ);
28792
+ let VJ;
28793
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (VJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28775
28794
  className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28776
- }), t[65] = HJ) : HJ = t[65];
28777
- let WJ;
28778
- t[66] !== vJ || t[67] !== h || t[68] !== CJ || t[69] !== zJ || t[70] !== VJ ? (WJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28795
+ }), t[65] = VJ) : VJ = t[65];
28796
+ let HJ;
28797
+ t[66] !== gJ || t[67] !== h || t[68] !== xJ || t[69] !== LJ || t[70] !== zJ ? (HJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28779
28798
  asChild: true,
28780
28799
  children: (0, import_jsx_runtime.jsxs)("button", {
28781
28800
  id: h,
28782
28801
  type: "button",
28783
- className: zJ,
28784
- "aria-expanded": CJ,
28785
- "aria-disabled": vJ,
28802
+ className: LJ,
28803
+ "aria-expanded": xJ,
28804
+ "aria-disabled": gJ,
28786
28805
  children: [
28787
- VJ,
28788
- HJ
28806
+ zJ,
28807
+ VJ
28789
28808
  ]
28790
28809
  })
28791
- }), t[66] = vJ, t[67] = h, t[68] = CJ, t[69] = zJ, t[70] = VJ, t[71] = WJ) : WJ = t[71];
28792
- let GJ;
28793
- t[72] !== hJ || t[73] !== y || t[74] !== M ? (GJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28794
- placeholder: hJ,
28810
+ }), t[66] = gJ, t[67] = h, t[68] = xJ, t[69] = LJ, t[70] = zJ, t[71] = HJ) : HJ = t[71];
28811
+ let WJ;
28812
+ t[72] !== fJ || t[73] !== y || t[74] !== M ? (WJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28813
+ placeholder: fJ,
28795
28814
  rootClassName: "px-1 h-8",
28796
28815
  autoFocus: true,
28797
28816
  value: M,
28798
28817
  onValueChange: y
28799
- }), t[72] = hJ, t[73] = y, t[74] = M, t[75] = GJ) : GJ = t[75];
28800
- let qJ;
28801
- t[76] === gJ ? qJ = t[77] : (qJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28802
- children: gJ
28803
- }), t[76] = gJ, t[77] = qJ);
28804
- let JJ;
28805
- t[78] !== n || t[79] !== FJ ? (JJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28806
- value: FJ,
28818
+ }), t[72] = fJ, t[73] = y, t[74] = M, t[75] = WJ) : WJ = t[75];
28819
+ let GJ;
28820
+ t[76] === pJ ? GJ = t[77] : (GJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28821
+ children: pJ
28822
+ }), t[76] = pJ, t[77] = GJ);
28823
+ let KJ;
28824
+ t[78] !== n || t[79] !== NJ ? (KJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28825
+ value: NJ,
28807
28826
  children: n
28808
- }), t[78] = n, t[79] = FJ, t[80] = JJ) : JJ = t[80];
28809
- let YJ;
28810
- t[81] !== qJ || t[82] !== JJ ? (YJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28827
+ }), t[78] = n, t[79] = NJ, t[80] = KJ) : KJ = t[80];
28828
+ let qJ;
28829
+ t[81] !== GJ || t[82] !== KJ ? (qJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28811
28830
  className: "max-h-60 py-.5",
28812
28831
  children: [
28813
- qJ,
28814
- JJ
28832
+ GJ,
28833
+ KJ
28815
28834
  ]
28816
- }), t[81] = qJ, t[82] = JJ, t[83] = YJ) : YJ = t[83];
28817
- let XJ;
28818
- t[84] !== f || t[85] !== mJ || t[86] !== GJ || t[87] !== YJ ? (XJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28835
+ }), t[81] = GJ, t[82] = KJ, t[83] = qJ) : qJ = t[83];
28836
+ let JJ;
28837
+ t[84] !== f || t[85] !== dJ || t[86] !== WJ || t[87] !== qJ ? (JJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28819
28838
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28820
28839
  align: "start",
28821
28840
  children: (0, import_jsx_runtime.jsxs)(Command, {
28822
28841
  filter: f,
28823
- shouldFilter: mJ,
28842
+ shouldFilter: dJ,
28824
28843
  children: [
28825
- GJ,
28826
- YJ
28844
+ WJ,
28845
+ qJ
28827
28846
  ]
28828
28847
  })
28829
- }), t[84] = f, t[85] = mJ, t[86] = GJ, t[87] = YJ, t[88] = XJ) : XJ = t[88];
28830
- let ZJ;
28831
- t[89] !== CJ || t[90] !== LJ || t[91] !== WJ || t[92] !== XJ ? (ZJ = (0, import_jsx_runtime.jsxs)(Popover, {
28832
- open: CJ,
28833
- onOpenChange: LJ,
28848
+ }), t[84] = f, t[85] = dJ, t[86] = WJ, t[87] = qJ, t[88] = JJ) : JJ = t[88];
28849
+ let YJ;
28850
+ t[89] !== xJ || t[90] !== FJ || t[91] !== HJ || t[92] !== JJ ? (YJ = (0, import_jsx_runtime.jsxs)(Popover, {
28851
+ open: xJ,
28852
+ onOpenChange: FJ,
28834
28853
  children: [
28835
- WJ,
28836
- XJ
28854
+ HJ,
28855
+ JJ
28837
28856
  ]
28838
- }), t[89] = CJ, t[90] = LJ, t[91] = WJ, t[92] = XJ, t[93] = ZJ) : ZJ = t[93];
28839
- let QJ;
28840
- t[94] !== _J || t[95] !== i || t[96] !== vJ || t[97] !== d || t[98] !== jJ || t[99] !== $ || t[100] !== EJ ? (QJ = $ && _J && (0, import_jsx_runtime.jsx)("div", {
28857
+ }), t[89] = xJ, t[90] = FJ, t[91] = HJ, t[92] = JJ, t[93] = YJ) : YJ = t[93];
28858
+ let XJ;
28859
+ t[94] !== hJ || t[95] !== i || t[96] !== gJ || t[97] !== d || t[98] !== kJ || t[99] !== $ || t[100] !== wJ ? (XJ = $ && hJ && (0, import_jsx_runtime.jsx)("div", {
28841
28860
  className: cn("flex flex-col gap-1 items-start", i),
28842
- children: Array.isArray(EJ) && EJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28861
+ children: Array.isArray(wJ) && wJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28843
28862
  variant: "secondary",
28844
28863
  children: [
28845
28864
  (d == null ? void 0 : d(e2)) ?? String(e2),
28846
28865
  (0, import_jsx_runtime.jsx)(CircleX, {
28847
28866
  onClick: () => {
28848
- vJ || jJ(e2);
28867
+ gJ || kJ(e2);
28849
28868
  },
28850
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", vJ && "pointer-events-none")
28869
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", gJ && "pointer-events-none")
28851
28870
  })
28852
28871
  ]
28853
28872
  }, String(e2)))
28854
- }), t[94] = _J, t[95] = i, t[96] = vJ, t[97] = d, t[98] = jJ, t[99] = $, t[100] = EJ, t[101] = QJ) : QJ = t[101];
28855
- let $J;
28856
- return t[102] !== A || t[103] !== ZJ || t[104] !== QJ ? ($J = (0, import_jsx_runtime.jsxs)("div", {
28857
- className: IJ,
28873
+ }), t[94] = hJ, t[95] = i, t[96] = gJ, t[97] = d, t[98] = kJ, t[99] = $, t[100] = wJ, t[101] = XJ) : XJ = t[101];
28874
+ let ZJ;
28875
+ return t[102] !== A || t[103] !== YJ || t[104] !== XJ ? (ZJ = (0, import_jsx_runtime.jsxs)("div", {
28876
+ className: PJ,
28858
28877
  ...A,
28859
28878
  children: [
28860
- ZJ,
28861
- QJ
28879
+ YJ,
28880
+ XJ
28862
28881
  ]
28863
- }), t[102] = A, t[103] = ZJ, t[104] = QJ, t[105] = $J) : $J = t[105], $J;
28882
+ }), t[102] = A, t[103] = YJ, t[104] = XJ, t[105] = ZJ) : ZJ = t[105], ZJ;
28864
28883
  };
28865
28884
  ComboboxItem = import_react.forwardRef((e, t) => {
28866
28885
  let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: a, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
@@ -29916,17 +29935,17 @@ ${n}` : "Please fix this error.";
29916
29935
  searchQuery: M,
29917
29936
  filteredOptions: z
29918
29937
  }, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
29919
- let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), mJ;
29920
- t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (mJ = {
29938
+ let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), dJ;
29939
+ t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (dJ = {
29921
29940
  value: i,
29922
29941
  onChange: a,
29923
29942
  multiple: o,
29924
29943
  maxSelections: s,
29925
29944
  allowSelectNone: c,
29926
29945
  selected: y
29927
- }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = mJ) : mJ = t[21];
29928
- let { isChecked: hJ, toggle: gJ } = useToggle(mJ), _J;
29929
- t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (_J = {
29946
+ }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = dJ) : dJ = t[21];
29947
+ let { isChecked: fJ, toggle: pJ } = useToggle(dJ), mJ;
29948
+ t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (mJ = {
29930
29949
  value: i,
29931
29950
  onChange: a,
29932
29951
  multiple: o,
@@ -29934,24 +29953,24 @@ ${n}` : "Please fix this error.";
29934
29953
  filteredOptions: z,
29935
29954
  searchQuery: M,
29936
29955
  maxSelections: s
29937
- }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = _J) : _J = t[29];
29938
- let { bulkActions: vJ } = useBulk(_J), yJ;
29939
- t[30] !== J || t[31] !== I ? (yJ = (e2) => {
29956
+ }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = mJ) : mJ = t[29];
29957
+ let { bulkActions: hJ } = useBulk(mJ), gJ;
29958
+ t[30] !== J || t[31] !== I ? (gJ = (e2) => {
29940
29959
  I(e2), e2 === "" && J();
29941
- }, t[30] = J, t[31] = I, t[32] = yJ) : yJ = t[32];
29942
- let bJ = yJ, xJ;
29943
- return t[33] !== vJ || t[34] !== hJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== bJ || t[41] !== gJ || t[42] !== Q ? (xJ = {
29960
+ }, t[30] = J, t[31] = I, t[32] = gJ) : gJ = t[32];
29961
+ let _J = gJ, vJ;
29962
+ return t[33] !== hJ || t[34] !== fJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== _J || t[41] !== pJ || t[42] !== Q ? (vJ = {
29944
29963
  searchQuery: M,
29945
- setSearchQuery: bJ,
29964
+ setSearchQuery: _J,
29946
29965
  open: K,
29947
29966
  setOpen: q,
29948
29967
  visibleOptions: Q,
29949
29968
  pinnedCount: $,
29950
- isChecked: hJ,
29951
- toggle: gJ,
29952
- bulkActions: vJ,
29969
+ isChecked: fJ,
29970
+ toggle: pJ,
29971
+ bulkActions: hJ,
29953
29972
  labelOf: O
29954
- }, t[33] = vJ, t[34] = hJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = bJ, t[41] = gJ, t[42] = Q, t[43] = xJ) : xJ = t[43], xJ;
29973
+ }, t[33] = hJ, t[34] = fJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = _J, t[41] = pJ, t[42] = Q, t[43] = vJ) : vJ = t[43], vJ;
29955
29974
  };
29956
29975
  const Sets = {
29957
29976
  merge(...e) {
@@ -30260,7 +30279,7 @@ ${n}` : "Please fix this error.";
30260
30279
  const FilterPillEditor = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: i, editIndex: a }) => {
30261
30280
  let o = (0, import_react.useId)(), s = (0, import_react.useId)(), c = (0, import_react.useId)(), d = e.value.type, f = e.value.operator, _ = toDraftValue(e.value), [v, y] = (0, import_react.useState)(e.columnId), [S, w] = (0, import_react.useState)(d), [E, O] = (0, import_react.useState)(f), [A, M] = (0, import_react.useState)(_), [I, z] = (0, import_react.useState)(EMPTY_NUMBER_TEXT_DRAFT), U = editableColumns(t), K = (t2) => {
30262
30281
  t2.id === e.columnId && t2.operator === f && M(_);
30263
- }, q = (e2) => {
30282
+ }, J = (e2) => {
30264
30283
  if (!e2) return;
30265
30284
  let n2 = t.getColumn(e2);
30266
30285
  if (!n2) return;
@@ -30269,20 +30288,20 @@ ${n}` : "Please fix this error.";
30269
30288
  id: e2,
30270
30289
  operator: a2
30271
30290
  });
30272
- }, J = (e2) => {
30291
+ }, Q = (e2) => {
30273
30292
  O(e2);
30274
30293
  let t2 = emptyDraftFor(S, e2);
30275
30294
  t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT), K({
30276
30295
  id: v,
30277
30296
  operator: e2
30278
30297
  });
30279
- }, Q = buildFilterValue({
30298
+ }, $ = buildFilterValue({
30280
30299
  type: S,
30281
30300
  operator: E,
30282
30301
  draft: mergeNumberTextDraft(A, I)
30283
- }), $ = Q === void 0, mJ = $ ? getMissingValueMessage(S, E) : "Apply filter", hJ = () => {
30284
- if (!Q) return;
30285
- let e2 = Q;
30302
+ }), dJ = $ === void 0, fJ = dJ ? getMissingValueMessage(S, E) : "Apply filter", pJ = () => {
30303
+ if (!$) return;
30304
+ let e2 = $;
30286
30305
  t.setColumnFilters((t2) => {
30287
30306
  if (a === void 0) return [
30288
30307
  {
@@ -30299,20 +30318,20 @@ ${n}` : "Please fix this error.";
30299
30318
  value: e2
30300
30319
  }, n2;
30301
30320
  }), i();
30302
- }, gJ = () => {
30321
+ }, mJ = () => {
30303
30322
  a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
30304
- }, _J = !OPERATORS_WITHOUT_VALUE.has(E), vJ = OPERATORS_BY_TYPE[S], yJ = (0, import_react.useRef)(null), bJ = (0, import_react.useRef)(null);
30323
+ }, hJ = !OPERATORS_WITHOUT_VALUE.has(E), gJ = OPERATORS_BY_TYPE[S], _J = (0, import_react.useRef)(null), vJ = (0, import_react.useRef)(null);
30305
30324
  return (0, import_react.useEffect)(() => {
30306
30325
  var _a2, _b;
30307
- let e2 = (_a2 = yJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30308
- e2 ? e2.focus() : (_b = bJ.current) == null ? void 0 : _b.focus();
30326
+ let e2 = (_a2 = _J.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30327
+ e2 ? e2.focus() : (_b = vJ.current) == null ? void 0 : _b.focus();
30309
30328
  }, [
30310
30329
  S,
30311
30330
  E
30312
30331
  ]), (0, import_jsx_runtime.jsxs)("form", {
30313
30332
  className: "flex flex-row gap-4 items-end p-3",
30314
30333
  onSubmit: (e2) => {
30315
- e2.preventDefault(), hJ();
30334
+ e2.preventDefault(), pJ();
30316
30335
  },
30317
30336
  onKeyDownCapture: (e2) => {
30318
30337
  e2.key === "Tab" && e2.stopPropagation();
@@ -30329,7 +30348,7 @@ ${n}` : "Please fix this error.";
30329
30348
  (0, import_jsx_runtime.jsx)(Combobox, {
30330
30349
  id: o,
30331
30350
  value: v,
30332
- onValueChange: q,
30351
+ onValueChange: J,
30333
30352
  multiple: false,
30334
30353
  placeholder: "Select column\u2026",
30335
30354
  displayValue: (e2) => e2,
@@ -30350,16 +30369,16 @@ ${n}` : "Please fix this error.";
30350
30369
  }),
30351
30370
  (0, import_jsx_runtime.jsxs)(Select, {
30352
30371
  value: E,
30353
- onValueChange: (e2) => J(e2),
30372
+ onValueChange: (e2) => Q(e2),
30354
30373
  children: [
30355
30374
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30356
- ref: bJ,
30375
+ ref: vJ,
30357
30376
  id: s,
30358
30377
  className: "h-6 mb-1 bg-transparent",
30359
30378
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30360
30379
  }),
30361
30380
  (0, import_jsx_runtime.jsx)(SelectContent, {
30362
- children: vJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30381
+ children: gJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30363
30382
  value: e2,
30364
30383
  children: OPERATOR_LABELS[e2]
30365
30384
  }, e2))
@@ -30368,8 +30387,8 @@ ${n}` : "Please fix this error.";
30368
30387
  }, S)
30369
30388
  ]
30370
30389
  }),
30371
- _J && (0, import_jsx_runtime.jsxs)("div", {
30372
- ref: yJ,
30390
+ hJ && (0, import_jsx_runtime.jsxs)("div", {
30391
+ ref: _J,
30373
30392
  className: "flex flex-col gap-1",
30374
30393
  children: [
30375
30394
  (0, import_jsx_runtime.jsx)("label", {
@@ -30396,14 +30415,14 @@ ${n}` : "Please fix this error.";
30396
30415
  className: "flex gap-1 mb-1",
30397
30416
  children: [
30398
30417
  (0, import_jsx_runtime.jsx)(Tooltip, {
30399
- content: mJ,
30418
+ content: fJ,
30400
30419
  children: (0, import_jsx_runtime.jsx)("span", {
30401
30420
  className: "inline-flex",
30402
30421
  children: (0, import_jsx_runtime.jsx)(Button, {
30403
30422
  type: "submit",
30404
30423
  size: "icon",
30405
30424
  variant: "ghost",
30406
- disabled: $,
30425
+ disabled: dJ,
30407
30426
  className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
30408
30427
  "aria-label": "Apply filter",
30409
30428
  children: (0, import_jsx_runtime.jsx)(Check, {
@@ -30435,7 +30454,7 @@ ${n}` : "Please fix this error.";
30435
30454
  size: "icon",
30436
30455
  variant: "ghost",
30437
30456
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30438
- onClick: gJ,
30457
+ onClick: mJ,
30439
30458
  "aria-label": "Remove filter",
30440
30459
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30441
30460
  className: "h-3.5 w-3.5",
@@ -32643,29 +32662,29 @@ ${n}` : "Please fix this error.";
32643
32662
  }, t[16] = a, t[17] = J);
32644
32663
  let Q = useEvent_default(J), $;
32645
32664
  t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
32646
- let mJ = useEvent_default($), hJ, gJ;
32647
- t[20] === S ? (hJ = t[21], gJ = t[22]) : (hJ = () => (window.addEventListener("scroll", S, {
32665
+ let dJ = useEvent_default($), fJ, pJ;
32666
+ t[20] === S ? (fJ = t[21], pJ = t[22]) : (fJ = () => (window.addEventListener("scroll", S, {
32648
32667
  passive: true,
32649
32668
  capture: true
32650
32669
  }), window.addEventListener("resize", S), () => {
32651
32670
  window.removeEventListener("scroll", S, {
32652
32671
  capture: true
32653
32672
  }), window.removeEventListener("resize", S);
32654
- }), gJ = [
32673
+ }), pJ = [
32655
32674
  S
32656
- ], t[20] = S, t[21] = hJ, t[22] = gJ), (0, import_react.useEffect)(hJ, gJ);
32657
- let _J, vJ;
32658
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_J = () => v, vJ = [], t[23] = _J, t[24] = vJ) : (_J = t[23], vJ = t[24]), (0, import_react.useEffect)(_J, vJ);
32659
- let yJ;
32660
- return t[25] !== mJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (yJ = {
32675
+ ], t[20] = S, t[21] = fJ, t[22] = pJ), (0, import_react.useEffect)(fJ, pJ);
32676
+ let mJ, hJ;
32677
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mJ = () => v, hJ = [], t[23] = mJ, t[24] = hJ) : (mJ = t[23], hJ = t[24]), (0, import_react.useEffect)(mJ, hJ);
32678
+ let gJ;
32679
+ return t[25] !== dJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (gJ = {
32661
32680
  tooltipState: o,
32662
32681
  tooltipContentId: d,
32663
32682
  hideTooltip: S,
32664
32683
  handleCellMouseOver: U,
32665
32684
  handleCellMouseLeave: q,
32666
32685
  handleCellFocus: Q,
32667
- handleCellBlur: mJ
32668
- }, t[25] = mJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = yJ) : yJ = t[32], yJ;
32686
+ handleCellBlur: dJ
32687
+ }, t[25] = dJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = gJ) : gJ = t[32], gJ;
32669
32688
  }
32670
32689
  var import_compiler_runtime$18 = require_compiler_runtime();
32671
32690
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
@@ -34110,7 +34129,7 @@ ${n}` : "Please fix this error.";
34110
34129
  filename: i2.filename
34111
34130
  };
34112
34131
  }, t[6] = e, t[7] = O);
34113
- let A = O, I, z, U, K, q, J, Q, $, mJ, hJ, gJ, _J, vJ;
34132
+ let A = O, M, z, U, K, q, J, Q, $, dJ, fJ, pJ, mJ, hJ;
34114
34133
  if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
34115
34134
  let e2 = async (t2) => {
34116
34135
  let n2 = labelForDownloadFormat(t2);
@@ -34176,10 +34195,10 @@ ${n}` : "Please fix this error.";
34176
34195
  content: d,
34177
34196
  open: o,
34178
34197
  children: h
34179
- }), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], I = DropdownMenuContent, mJ = "bottom", hJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34198
+ }), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], M = DropdownMenuContent, dJ = "bottom", fJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34180
34199
  className: "text-xs text-muted-foreground",
34181
34200
  children: "Download"
34182
- }), t[36] = gJ) : gJ = t[36], _J = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34201
+ }), t[36] = pJ) : pJ = t[36], mJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34183
34202
  onSelect: () => {
34184
34203
  e2(t2.format);
34185
34204
  },
@@ -34200,10 +34219,10 @@ ${n}` : "Please fix this error.";
34200
34219
  ]
34201
34220
  })
34202
34221
  ]
34203
- }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (vJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34222
+ }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34204
34223
  className: "text-xs text-muted-foreground",
34205
34224
  children: "Copy to clipboard"
34206
- }), t[37] = U, t[38] = vJ) : (U = t[37], vJ = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34225
+ }), t[37] = U, t[38] = hJ) : (U = t[37], hJ = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34207
34226
  onSelect: async () => {
34208
34227
  try {
34209
34228
  await a2(e3.format);
@@ -34232,30 +34251,30 @@ ${n}` : "Please fix this error.";
34232
34251
  ]
34233
34252
  })
34234
34253
  ]
34235
- }, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = I, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = mJ, t[22] = hJ, t[23] = gJ, t[24] = _J, t[25] = vJ;
34236
- } else I = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], mJ = t[21], hJ = t[22], gJ = t[23], _J = t[24], vJ = t[25];
34237
- let yJ;
34238
- t[39] !== I || t[40] !== U || t[41] !== K || t[42] !== mJ || t[43] !== hJ || t[44] !== gJ || t[45] !== _J || t[46] !== vJ ? (yJ = (0, import_jsx_runtime.jsxs)(I, {
34239
- side: mJ,
34240
- className: hJ,
34254
+ }, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = dJ, t[22] = fJ, t[23] = pJ, t[24] = mJ, t[25] = hJ;
34255
+ } else M = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], dJ = t[21], fJ = t[22], pJ = t[23], mJ = t[24], hJ = t[25];
34256
+ let gJ;
34257
+ t[39] !== M || t[40] !== U || t[41] !== K || t[42] !== dJ || t[43] !== fJ || t[44] !== pJ || t[45] !== mJ || t[46] !== hJ ? (gJ = (0, import_jsx_runtime.jsxs)(M, {
34258
+ side: dJ,
34259
+ className: fJ,
34241
34260
  children: [
34242
- gJ,
34243
- _J,
34244
- vJ,
34261
+ pJ,
34262
+ mJ,
34263
+ hJ,
34245
34264
  U,
34246
34265
  K
34247
34266
  ]
34248
- }), t[39] = I, t[40] = U, t[41] = K, t[42] = mJ, t[43] = hJ, t[44] = gJ, t[45] = _J, t[46] = vJ, t[47] = yJ) : yJ = t[47];
34249
- let bJ;
34250
- return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== yJ ? (bJ = (0, import_jsx_runtime.jsxs)(z, {
34267
+ }), t[39] = M, t[40] = U, t[41] = K, t[42] = dJ, t[43] = fJ, t[44] = pJ, t[45] = mJ, t[46] = hJ, t[47] = gJ) : gJ = t[47];
34268
+ let _J;
34269
+ return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)(z, {
34251
34270
  modal: q,
34252
34271
  open: J,
34253
34272
  onOpenChange: Q,
34254
34273
  children: [
34255
34274
  $,
34256
- yJ
34275
+ gJ
34257
34276
  ]
34258
- }), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = yJ, t[54] = bJ) : bJ = t[54], bJ;
34277
+ }), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = gJ, t[54] = _J) : _J = t[54], _J;
34259
34278
  };
34260
34279
  function fetchJson(e) {
34261
34280
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -34351,22 +34370,22 @@ ${n}` : "Please fix this error.";
34351
34370
  ]
34352
34371
  });
34353
34372
  };
34354
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: mJ, showSearch: hJ = false, searchQuery: gJ, onSearchQueryChange: _J, showFilters: vJ = false, filters: yJ, onFiltersChange: bJ, calculateTopKRows: xJ, reloading: SJ, freezeColumnsLeft: CJ, freezeColumnsRight: wJ, hiddenColumns: TJ, toggleDisplayHeader: EJ, showChartBuilder: DJ, isChartBuilderOpen: OJ, showPageSizeSelector: kJ, showTableExplorer: AJ, togglePanel: jJ, isPanelOpen: MJ, isAnyPanelOpen: NJ, viewedRowIdx: PJ, onViewedRowChange: FJ, renderTableExplorerPanel: IJ }) => {
34355
- let LJ = isStaticNotebook(), RJ = !LJ, [zJ, BJ] = import_react.useState(false), { locale: VJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: HJ, setColumnPinning: UJ } = useColumnPinning(CJ, wJ), { columnVisibility: WJ, setColumnVisibility: GJ } = useColumnVisibility(TJ);
34373
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: dJ, showSearch: fJ = false, searchQuery: pJ, onSearchQueryChange: mJ, showFilters: hJ = false, filters: gJ, onFiltersChange: _J, calculateTopKRows: vJ, reloading: yJ, freezeColumnsLeft: bJ, freezeColumnsRight: xJ, hiddenColumns: SJ, toggleDisplayHeader: CJ, showChartBuilder: wJ, isChartBuilderOpen: TJ, showPageSizeSelector: EJ, showTableExplorer: DJ, togglePanel: OJ, isPanelOpen: kJ, isAnyPanelOpen: AJ, viewedRowIdx: jJ, onViewedRowChange: MJ, renderTableExplorerPanel: NJ }) => {
34374
+ let PJ = isStaticNotebook(), FJ = !PJ, [IJ, LJ] = import_react.useState(false), { locale: RJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: zJ, setColumnPinning: BJ } = useColumnPinning(bJ, xJ), { columnVisibility: VJ, setColumnVisibility: HJ } = useColumnVisibility(SJ);
34356
34375
  import_react.useEffect(() => {
34357
34376
  let e2;
34358
- return SJ ? e2 = setTimeout(() => {
34359
- BJ(true);
34360
- }, 300) : BJ(false), () => {
34377
+ return yJ ? e2 = setTimeout(() => {
34378
+ LJ(true);
34379
+ }, 300) : LJ(false), () => {
34361
34380
  e2 && clearTimeout(e2);
34362
34381
  };
34363
34382
  }, [
34364
- SJ
34383
+ yJ
34365
34384
  ]);
34366
- function KJ(e2, t2) {
34385
+ function UJ(e2, t2) {
34367
34386
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
34368
34387
  }
34369
- let qJ = useReactTable({
34388
+ let WJ = useReactTable({
34370
34389
  _features: [
34371
34390
  ColumnPinning,
34372
34391
  ColumnWrappingFeature,
@@ -34390,37 +34409,37 @@ ${n}` : "Please fix this error.";
34390
34409
  getRowId: (e2, t2) => {
34391
34410
  let n2 = getStableRowId(e2);
34392
34411
  if (n2) return n2;
34393
- let i2 = KJ(e2, t2);
34412
+ let i2 = UJ(e2, t2);
34394
34413
  return String(i2);
34395
34414
  }
34396
34415
  } : {},
34397
- locale: VJ,
34416
+ locale: RJ,
34398
34417
  manualPagination: q,
34399
34418
  getPaginationRowModel: getPaginationRowModel(),
34400
34419
  ...w ? {
34401
34420
  onSortingChange: w
34402
34421
  } : {},
34403
34422
  manualSorting: y,
34404
- enableSorting: !LJ,
34423
+ enableSorting: !PJ,
34405
34424
  enableMultiSort: true,
34406
34425
  getSortedRowModel: getSortedRowModel(),
34407
34426
  manualFiltering: true,
34408
- enableColumnFilters: vJ && !LJ,
34427
+ enableColumnFilters: hJ && !PJ,
34409
34428
  getFilteredRowModel: getFilteredRowModel(),
34410
- onColumnFiltersChange: bJ,
34429
+ onColumnFiltersChange: _J,
34411
34430
  onRowSelectionChange: Q,
34412
34431
  onCellSelectionChange: $,
34413
34432
  enableCellSelection: c === "single-cell" || c === "multi-cell",
34414
34433
  enableMultiCellSelection: c === "multi-cell",
34415
- onColumnPinningChange: UJ,
34416
- onColumnVisibilityChange: GJ,
34434
+ onColumnPinningChange: BJ,
34435
+ onColumnVisibilityChange: HJ,
34417
34436
  enableFocusRow: true,
34418
- onFocusRowChange: FJ,
34437
+ onFocusRowChange: MJ,
34419
34438
  state: {
34420
34439
  ...S ? {
34421
34440
  sorting: S
34422
34441
  } : {},
34423
- columnFilters: yJ,
34442
+ columnFilters: gJ,
34424
34443
  ...z ? {
34425
34444
  pagination: z
34426
34445
  } : J && !z ? {} : {
@@ -34431,60 +34450,60 @@ ${n}` : "Please fix this error.";
34431
34450
  },
34432
34451
  rowSelection: E ?? {},
34433
34452
  cellSelection: O ?? [],
34434
- columnVisibility: WJ,
34453
+ columnVisibility: VJ,
34435
34454
  cellStyling: A,
34436
- columnPinning: HJ,
34455
+ columnPinning: zJ,
34437
34456
  cellHoverTemplate: M,
34438
34457
  cellHoverTexts: I ?? {}
34439
34458
  }
34440
- }), JJ = (MJ == null ? void 0 : MJ(PANEL_TYPES.ROW_VIEWER)) ?? false, YJ = !J && a.length > 100, XJ = useScrollContainerHeight({
34459
+ }), GJ = (kJ == null ? void 0 : kJ(PANEL_TYPES.ROW_VIEWER)) ?? false, KJ = !J && a.length > 100, qJ = useScrollContainerHeight({
34441
34460
  maxHeight: n,
34442
- virtualize: YJ
34443
- }), [ZJ, QJ] = import_react.useState(null), $J = import_react.useMemo(() => ({
34461
+ virtualize: KJ
34462
+ }), [JJ, YJ] = import_react.useState(null), XJ = import_react.useMemo(() => ({
34444
34463
  requestAddFilter: (e2) => {
34445
- let t2 = qJ.getColumn(e2.columnId);
34446
- t2 && QJ(buildEditorSnapshot(t2, {
34464
+ let t2 = WJ.getColumn(e2.columnId);
34465
+ t2 && YJ(buildEditorSnapshot(t2, {
34447
34466
  operator: e2.operator
34448
34467
  }));
34449
34468
  }
34450
34469
  }), [
34451
- qJ
34452
- ]), eY = getUserColumnVisibilityCounts(qJ), tY = eY.total > 0 && eY.visible === 0;
34470
+ WJ
34471
+ ]), ZJ = getUserColumnVisibilityCounts(WJ), QJ = ZJ.total > 0 && ZJ.visible === 0;
34453
34472
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
34454
- value: $J,
34473
+ value: XJ,
34455
34474
  children: (0, import_jsx_runtime.jsxs)("div", {
34456
34475
  className: cn(e, "flex flex-col space-y-1"),
34457
34476
  children: [
34458
34477
  (0, import_jsx_runtime.jsx)(FilterPills, {
34459
- filters: yJ,
34460
- table: qJ,
34461
- calculateTopKRows: xJ,
34462
- addFilterSnapshot: ZJ,
34463
- onAddFilterSnapshotChange: QJ
34478
+ filters: gJ,
34479
+ table: WJ,
34480
+ calculateTopKRows: vJ,
34481
+ addFilterSnapshot: JJ,
34482
+ onAddFilterSnapshotChange: YJ
34464
34483
  }),
34465
- IJ == null ? void 0 : IJ(qJ),
34484
+ NJ == null ? void 0 : NJ(WJ),
34466
34485
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
34467
34486
  children: (0, import_jsx_runtime.jsxs)("div", {
34468
34487
  part: "table-wrapper",
34469
34488
  className: cn(t || "rounded-md border overflow-hidden"),
34470
34489
  children: [
34471
- RJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34472
- table: qJ,
34473
- showSearch: hJ,
34474
- searchQuery: gJ,
34475
- onSearchQueryChange: _J,
34476
- reloading: SJ,
34477
- showChartBuilder: DJ,
34478
- isChartBuilderOpen: OJ,
34479
- toggleDisplayHeader: EJ,
34480
- showTableExplorer: AJ,
34481
- togglePanel: jJ,
34482
- isAnyPanelOpen: NJ,
34490
+ FJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34491
+ table: WJ,
34492
+ showSearch: fJ,
34493
+ searchQuery: pJ,
34494
+ onSearchQueryChange: mJ,
34495
+ reloading: yJ,
34496
+ showChartBuilder: wJ,
34497
+ isChartBuilderOpen: TJ,
34498
+ toggleDisplayHeader: CJ,
34499
+ showTableExplorer: DJ,
34500
+ togglePanel: OJ,
34501
+ isAnyPanelOpen: AJ,
34483
34502
  downloadAs: K,
34484
34503
  sizeBytes: _,
34485
34504
  sizeBytesIsLoading: v
34486
34505
  }),
34487
- tY && (0, import_jsx_runtime.jsxs)(Banner, {
34506
+ QJ && (0, import_jsx_runtime.jsxs)(Banner, {
34488
34507
  className: "mb-1 mx-2 rounded flex items-center justify-between",
34489
34508
  children: [
34490
34509
  (0, import_jsx_runtime.jsx)("span", {
@@ -34493,26 +34512,26 @@ ${n}` : "Please fix this error.";
34493
34512
  (0, import_jsx_runtime.jsx)(Button, {
34494
34513
  variant: "link",
34495
34514
  size: "xs",
34496
- onClick: () => qJ.resetColumnVisibility(true),
34515
+ onClick: () => WJ.resetColumnVisibility(true),
34497
34516
  children: "Unhide all"
34498
34517
  })
34499
34518
  ]
34500
34519
  }),
34501
34520
  (0, import_jsx_runtime.jsxs)(Table, {
34502
34521
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
34503
- ref: XJ,
34522
+ ref: qJ,
34504
34523
  children: [
34505
- zJ && (0, import_jsx_runtime.jsx)("thead", {
34524
+ IJ && (0, import_jsx_runtime.jsx)("thead", {
34506
34525
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
34507
34526
  }),
34508
- renderTableHeader(qJ, YJ || !!n),
34527
+ renderTableHeader(WJ, KJ || !!n),
34509
34528
  (0, import_jsx_runtime.jsx)(DataTableBody, {
34510
- table: qJ,
34529
+ table: WJ,
34511
34530
  columns: i,
34512
- rowViewerPanelOpen: JJ,
34513
- getRowIndex: KJ,
34514
- viewedRowIdx: PJ,
34515
- virtualize: YJ
34531
+ rowViewerPanelOpen: GJ,
34532
+ getRowIndex: UJ,
34533
+ viewedRowIdx: jJ,
34534
+ virtualize: KJ
34516
34535
  })
34517
34536
  ]
34518
34537
  }),
@@ -34523,10 +34542,10 @@ ${n}` : "Please fix this error.";
34523
34542
  pagination: J,
34524
34543
  selection: c,
34525
34544
  onRowSelectionChange: Q,
34526
- table: qJ,
34527
- getRowIds: mJ,
34528
- showPageSizeSelector: kJ,
34529
- tableLoading: SJ
34545
+ table: WJ,
34546
+ getRowIds: dJ,
34547
+ showPageSizeSelector: EJ,
34548
+ tableLoading: yJ
34530
34549
  })
34531
34550
  ]
34532
34551
  })
@@ -34611,60 +34630,60 @@ ${n}` : "Please fix this error.";
34611
34630
  t[6] !== a || t[7] !== S ? (E = S && S.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = S, t[8] = E) : E = t[8];
34612
34631
  let O = E, A;
34613
34632
  t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
34614
- let M = A, I = !isStaticNotebook(), [z, K] = (0, import_react.useState)(true), q;
34615
- t[12] !== d || t[13] !== n ? (q = (e2) => {
34633
+ let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), K;
34634
+ t[12] !== d || t[13] !== n ? (K = (e2) => {
34616
34635
  n == null ? void 0 : n({
34617
34636
  prompt: `My code gives the following error:
34618
34637
 
34619
34638
  ${d}`,
34620
34639
  triggerImmediately: e2
34621
34640
  });
34622
- }, t[12] = d, t[13] = n, t[14] = q) : q = t[14];
34623
- let J = q, Q;
34624
- t[15] !== a || t[16] !== d || t[17] !== _ ? (Q = () => {
34641
+ }, t[12] = d, t[13] = n, t[14] = K) : K = t[14];
34642
+ let q = K, $;
34643
+ t[15] !== a || t[16] !== d || t[17] !== _ ? ($ = () => {
34625
34644
  _({
34626
34645
  prompt: buildFixInChatPrompt(a, d)
34627
34646
  });
34628
- }, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
34629
- let $ = Q, mJ;
34630
- t[19] === z ? mJ = t[20] : (mJ = () => K(!z), t[19] = z, t[20] = mJ);
34631
- let hJ = z ? "Collapse traceback" : "Expand traceback", gJ;
34632
- t[21] === z ? gJ = t[22] : (gJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34647
+ }, t[15] = a, t[16] = d, t[17] = _, t[18] = $) : $ = t[18];
34648
+ let dJ = $, fJ;
34649
+ t[19] === z ? fJ = t[20] : (fJ = () => U(!z), t[19] = z, t[20] = fJ);
34650
+ let pJ = z ? "Collapse traceback" : "Expand traceback", mJ;
34651
+ t[21] === z ? mJ = t[22] : (mJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34633
34652
  className: "h-3 w-3"
34634
34653
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
34635
34654
  className: "h-3 w-3"
34636
- }), t[21] = z, t[22] = gJ);
34637
- let _J;
34638
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_J = (0, import_jsx_runtime.jsx)("span", {
34655
+ }), t[21] = z, t[22] = mJ);
34656
+ let hJ;
34657
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = (0, import_jsx_runtime.jsx)("span", {
34639
34658
  className: "text-[0.6875rem] uppercase tracking-wider",
34640
34659
  children: "Traceback"
34641
- }), t[23] = _J) : _J = t[23];
34642
- let vJ;
34643
- t[24] !== z || t[25] !== gJ || t[26] !== mJ || t[27] !== hJ ? (vJ = (0, import_jsx_runtime.jsxs)("button", {
34660
+ }), t[23] = hJ) : hJ = t[23];
34661
+ let gJ;
34662
+ t[24] !== z || t[25] !== mJ || t[26] !== fJ || t[27] !== pJ ? (gJ = (0, import_jsx_runtime.jsxs)("button", {
34644
34663
  type: "button",
34645
- onClick: mJ,
34664
+ onClick: fJ,
34646
34665
  "aria-expanded": z,
34647
- "aria-label": hJ,
34666
+ "aria-label": pJ,
34648
34667
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34649
34668
  children: [
34650
- gJ,
34651
- _J
34669
+ mJ,
34670
+ hJ
34652
34671
  ]
34653
- }), t[24] = z, t[25] = gJ, t[26] = mJ, t[27] = hJ, t[28] = vJ) : vJ = t[28];
34654
- let yJ;
34655
- t[29] !== s || t[30] !== z ? (yJ = z && (0, import_jsx_runtime.jsx)("div", {
34672
+ }), t[24] = z, t[25] = mJ, t[26] = fJ, t[27] = pJ, t[28] = gJ) : gJ = t[28];
34673
+ let _J;
34674
+ t[29] !== s || t[30] !== z ? (_J = z && (0, import_jsx_runtime.jsx)("div", {
34656
34675
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34657
34676
  children: s
34658
- }), t[29] = s, t[30] = z, t[31] = yJ) : yJ = t[31];
34659
- let bJ;
34660
- t[32] !== J || t[33] !== $ || t[34] !== M ? (bJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34677
+ }), t[29] = s, t[30] = z, t[31] = _J) : _J = t[31];
34678
+ let vJ;
34679
+ t[32] !== q || t[33] !== dJ || t[34] !== M ? (vJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34661
34680
  tooltip: "Fix with AI",
34662
- openPrompt: () => J(false),
34663
- applyAutofix: () => J(true),
34664
- openChat: $
34665
- }), t[32] = J, t[33] = $, t[34] = M, t[35] = bJ) : bJ = t[35];
34666
- let xJ;
34667
- t[36] !== O || t[37] !== S ? (xJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34681
+ openPrompt: () => q(false),
34682
+ applyAutofix: () => q(true),
34683
+ openChat: dJ
34684
+ }), t[32] = q, t[33] = dJ, t[34] = M, t[35] = vJ) : vJ = t[35];
34685
+ let yJ;
34686
+ t[36] !== O || t[37] !== S ? (yJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34668
34687
  content: "Attach pdb to the exception point.",
34669
34688
  children: (0, import_jsx_runtime.jsxs)(Button, {
34670
34689
  size: "xs",
@@ -34681,9 +34700,9 @@ ${d}`,
34681
34700
  "Launch debugger"
34682
34701
  ]
34683
34702
  })
34684
- }), t[36] = O, t[37] = S, t[38] = xJ) : xJ = t[38];
34685
- let SJ;
34686
- t[39] !== d || t[40] !== i ? (SJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34703
+ }), t[36] = O, t[37] = S, t[38] = yJ) : yJ = t[38];
34704
+ let bJ;
34705
+ t[39] !== d || t[40] !== i ? (bJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34687
34706
  children: [
34688
34707
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34689
34708
  asChild: true,
@@ -34751,25 +34770,25 @@ ${d}`,
34751
34770
  ]
34752
34771
  })
34753
34772
  ]
34754
- }), t[39] = d, t[40] = i, t[41] = SJ) : SJ = t[41];
34755
- let CJ;
34756
- t[42] !== bJ || t[43] !== xJ || t[44] !== SJ ? (CJ = (0, import_jsx_runtime.jsxs)("div", {
34773
+ }), t[39] = d, t[40] = i, t[41] = bJ) : bJ = t[41];
34774
+ let xJ;
34775
+ t[42] !== vJ || t[43] !== yJ || t[44] !== bJ ? (xJ = (0, import_jsx_runtime.jsxs)("div", {
34757
34776
  className: "flex gap-2",
34758
34777
  children: [
34759
- bJ,
34760
- xJ,
34761
- SJ
34778
+ vJ,
34779
+ yJ,
34780
+ bJ
34762
34781
  ]
34763
- }), t[42] = bJ, t[43] = xJ, t[44] = SJ, t[45] = CJ) : CJ = t[45];
34764
- let wJ;
34765
- return t[46] !== vJ || t[47] !== yJ || t[48] !== CJ ? (wJ = (0, import_jsx_runtime.jsxs)("div", {
34782
+ }), t[42] = vJ, t[43] = yJ, t[44] = bJ, t[45] = xJ) : xJ = t[45];
34783
+ let SJ;
34784
+ return t[46] !== gJ || t[47] !== _J || t[48] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
34766
34785
  className: "flex flex-col gap-2 min-w-full w-fit",
34767
34786
  children: [
34768
- vJ,
34769
- yJ,
34770
- CJ
34787
+ gJ,
34788
+ _J,
34789
+ xJ
34771
34790
  ]
34772
- }), t[46] = vJ, t[47] = yJ, t[48] = CJ, t[49] = wJ) : wJ = t[49], wJ;
34791
+ }), t[46] = gJ, t[47] = _J, t[48] = xJ, t[49] = SJ) : SJ = t[49], SJ;
34773
34792
  };
34774
34793
  function lastLine(e) {
34775
34794
  var _a2, _b;
@@ -36205,14 +36224,14 @@ ${d}`,
36205
36224
  Q
36206
36225
  ]
36207
36226
  }), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
36208
- let mJ;
36209
- return t[36] !== I || t[37] !== $ ? (mJ = (0, import_jsx_runtime.jsxs)("div", {
36227
+ let dJ;
36228
+ return t[36] !== I || t[37] !== $ ? (dJ = (0, import_jsx_runtime.jsxs)("div", {
36210
36229
  className: "flex flex-col gap-3",
36211
36230
  children: [
36212
36231
  I,
36213
36232
  $
36214
36233
  ]
36215
- }), t[36] = I, t[37] = $, t[38] = mJ) : mJ = t[38], mJ;
36234
+ }), t[36] = I, t[37] = $, t[38] = dJ) : dJ = t[38], dJ;
36216
36235
  };
36217
36236
  SlideSidebar = (e) => {
36218
36237
  let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: a, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
@@ -36337,7 +36356,7 @@ ${d}`,
36337
36356
  return Logger.warn("Failed to get version from mount config"), null;
36338
36357
  }
36339
36358
  }
36340
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.24.1-dev32");
36359
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.24.1-dev36");
36341
36360
  showCodeInRunModeAtom = atom(true);
36342
36361
  atom(null);
36343
36362
  var import_compiler_runtime = require_compiler_runtime();