@marimo-team/islands 0.23.3-dev39 → 0.23.3-dev41

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 Logger, c as Objects, g as cn, h as Events, p as composeRefs, r as
6
6
  import { t as require_react } from "./react-DA-nE2FX.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
8
8
  import { n as Copy, r as toast, t as copyToClipboard } from "./copy-TGGAUEWp.js";
9
- import { $ as useCellNames, A as ChevronRightIcon, An as FileText, At as useChromeActions, C as AccordionContent, Cn as Wrench, Dn as LoaderCircle, Dt as goToCellLine, En as NotebookPen, Ft as PluralWord, G as getCellEditorView, I as base64ToUint8Array, In as Braces, Kt as useRequestClient, Ln as esm_default, Lt as DATA_TYPE_ICON, M as PinLeftIcon, Mt as adaptForLocalStorage, N as PinRightIcon, Nt as jotaiJsonStorage, O as CheckIcon, Q as useCellIds, R as extractBase64FromDataURL, Rn as import_lib, S as Accordion, T as AccordionTrigger, V as renderHTML, Wt as getRequestClient, Xt as extractAllTracebackInfo, Yt as elementContainsMarimoCellFile, Z as useCellActions, Zt as getTracebackInfo, an as HTMLCellId, bt as Checkbox, c as Popover, ct as viewStateAtom, d as PopoverTrigger, dn as jsonParseWithSpecialChar, en as filenameAtom, fn as jsonToMarkdown, g as getDatasourceContext, gt as displayCellName, hn as atomWithStorage, ht as getCellDomProps, in as CellOutputId, j as DotFilledIcon, l as PopoverClose$1, lt as outputIsLoading, m as useExpandedOutput, mt as DATA_CELL_ID, n as MarkdownRenderer, on as SCRATCH_CELL_ID, pn as jsonToTSV, pt as sanitizeHtml, q as notebookAtom, rt as AnsiUp, s as Spinner, st as useInstallAllowed, t as toPng, u as PopoverContent, vn as Close$1, w as AccordionItem, z as isDataURLString, __tla as __tla_0 } from "./html-to-image-XYwXqg2E.js";
9
+ import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, Bn as import_lib, C as AccordionContent, Ft as jotaiJsonStorage, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mn as FileText, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, On as NotebookPen, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as Braces, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, V as renderHTML, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, kn as LoaderCircle, kt as goToCellLine, l as PopoverClose$1, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as MarkdownRenderer, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, s as Spinner, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zn as esm_default, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-DBosi5GK.js";
10
10
  import { u as createLucideIcon } from "./dist-ESg7xyoD.js";
11
11
  import { i as createReducerAndAtoms, r as Badge } from "./useLifecycle-smVfjLNI.js";
12
12
  import { a as ListFilter, i as Table$1, o as ChartPie, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B3mCQMP3.js";
@@ -4238,11 +4238,26 @@ let __tla = Promise.all([
4238
4238
  function isMatch(e, t, n) {
4239
4239
  return isValid(parse$1(e, t, /* @__PURE__ */ new Date(), n));
4240
4240
  }
4241
+ function isStringToStringRecord(e) {
4242
+ if (typeof e != "object" || !e || Array.isArray(e)) return false;
4243
+ for (let t of Object.values(e)) if (typeof t != "string") return false;
4244
+ return true;
4245
+ }
4246
+ function isMarimoStaticState(e) {
4247
+ if (typeof e != "object" || !e || Array.isArray(e)) return false;
4248
+ let t = e;
4249
+ return !(!isStringToStringRecord(t.files) || t.modelNotifications !== void 0 && !Array.isArray(t.modelNotifications));
4250
+ }
4251
+ function getMarimoStaticState() {
4252
+ let e = window == null ? void 0 : window.__MARIMO_STATIC__;
4253
+ return isMarimoStaticState(e) ? e : void 0;
4254
+ }
4241
4255
  isStaticNotebook = function() {
4242
- return (window == null ? void 0 : window.__MARIMO_STATIC__) !== void 0;
4256
+ return getMarimoStaticState() !== void 0;
4243
4257
  };
4244
4258
  getStaticVirtualFiles = function() {
4245
- return invariant(window.__MARIMO_STATIC__ !== void 0, "Not a static notebook"), window.__MARIMO_STATIC__.files;
4259
+ let e = getMarimoStaticState();
4260
+ return invariant(e !== void 0, "Not a static notebook"), e.files;
4246
4261
  };
4247
4262
  var isDevelopment$3 = false;
4248
4263
  function sheetForTag(e) {
@@ -7103,33 +7118,33 @@ try {
7103
7118
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
7104
7119
  function y(e2) {
7105
7120
  var _a2, _b, _c, _d;
7106
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, gj = import_react.useRef(false), q = useTheme$2(), J = import_react.useContext(f), _j = !!J && !I, Q = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7121
+ 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), yj = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7107
7122
  h2
7108
- ]), vj = Q[t], $ = vj || Q, { colorSchemes: yj = _, components: bj = v, cssVarPrefix: xj } = $, Sj = Object.keys(yj).filter((e3) => !!yj[e3]).join(","), Cj = import_react.useMemo(() => Sj.split(","), [
7109
- Sj
7110
- ]), wj = typeof s == "string" ? s : s.light, Tj = typeof s == "string" ? s : s.dark, { mode: Ej, setMode: Dj, systemMode: Oj, lightColorScheme: kj, darkColorScheme: Aj, colorScheme: jj, setColorScheme: Mj } = useCurrentColorScheme({
7111
- supportedColorSchemes: Cj,
7112
- defaultLightColorScheme: wj,
7113
- defaultDarkColorScheme: Tj,
7123
+ ]), bj = $[t], xj = bj || $, { colorSchemes: Sj = _, components: Cj = v, cssVarPrefix: wj } = xj, Tj = Object.keys(Sj).filter((e3) => !!Sj[e3]).join(","), Ej = import_react.useMemo(() => Tj.split(","), [
7124
+ Tj
7125
+ ]), Dj = typeof s == "string" ? s : s.light, Oj = typeof s == "string" ? s : s.dark, { mode: kj, setMode: Aj, systemMode: jj, lightColorScheme: Mj, darkColorScheme: Nj, colorScheme: Pj, setColorScheme: Fj } = useCurrentColorScheme({
7126
+ supportedColorSchemes: Ej,
7127
+ defaultLightColorScheme: Dj,
7128
+ defaultDarkColorScheme: Oj,
7114
7129
  modeStorageKey: y2,
7115
7130
  colorSchemeStorageKey: S2,
7116
- defaultMode: yj[wj] && yj[Tj] ? U : ((_b = (_a2 = yj[$.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = $.palette) == null ? void 0 : _c.mode),
7131
+ defaultMode: Sj[Dj] && Sj[Oj] ? U : ((_b = (_a2 = Sj[xj.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = xj.palette) == null ? void 0 : _c.mode),
7117
7132
  storageManager: E,
7118
7133
  storageWindow: O,
7119
7134
  noSsr: K
7120
- }), Nj = Ej, Pj = jj;
7121
- _j && (Nj = J.mode, Pj = J.colorScheme);
7122
- let Fj = import_react.useMemo(() => {
7135
+ }), Ij = kj, Lj = Pj;
7136
+ yj && (Ij = Q.mode, Lj = Q.colorScheme);
7137
+ let Rj = import_react.useMemo(() => {
7123
7138
  var _a3;
7124
- let e3 = Pj || $.defaultColorScheme, t2 = ((_a3 = $.generateThemeVars) == null ? void 0 : _a3.call($)) || $.vars, n2 = {
7125
- ...$,
7126
- components: bj,
7127
- colorSchemes: yj,
7128
- cssVarPrefix: xj,
7139
+ let e3 = Lj || xj.defaultColorScheme, t2 = ((_a3 = xj.generateThemeVars) == null ? void 0 : _a3.call(xj)) || xj.vars, n2 = {
7140
+ ...xj,
7141
+ components: Cj,
7142
+ colorSchemes: Sj,
7143
+ cssVarPrefix: wj,
7129
7144
  vars: t2
7130
7145
  };
7131
7146
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
7132
- let t3 = yj[e3];
7147
+ let t3 = Sj[e3];
7133
7148
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
7134
7149
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
7135
7150
  ...n2[e4],
@@ -7139,34 +7154,34 @@ try {
7139
7154
  }
7140
7155
  return c ? c(n2) : n2;
7141
7156
  }, [
7142
- $,
7143
- Pj,
7144
- bj,
7145
- yj,
7146
- xj
7147
- ]), Ij = $.colorSchemeSelector;
7157
+ xj,
7158
+ Lj,
7159
+ Cj,
7160
+ Sj,
7161
+ wj
7162
+ ]), zj = xj.colorSchemeSelector;
7148
7163
  useEnhancedEffect_default(() => {
7149
- if (Pj && M && Ij && Ij !== "media") {
7150
- let e3 = Ij, t2 = Ij;
7151
- if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...Cj.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", Pj));
7164
+ if (Lj && M && zj && zj !== "media") {
7165
+ let e3 = zj, t2 = zj;
7166
+ 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(...Ej.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", Lj));
7152
7167
  else {
7153
- let e4 = t2.replace("%s", Pj).match(/\[([^\]]+)\]/);
7168
+ let e4 = t2.replace("%s", Lj).match(/\[([^\]]+)\]/);
7154
7169
  if (e4) {
7155
7170
  let [t3, n2] = e4[1].split("=");
7156
- n2 || Cj.forEach((e5) => {
7157
- M.removeAttribute(t3.replace(Pj, e5));
7171
+ n2 || Ej.forEach((e5) => {
7172
+ M.removeAttribute(t3.replace(Lj, e5));
7158
7173
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
7159
- } else M.setAttribute(t2, Pj);
7174
+ } else M.setAttribute(t2, Lj);
7160
7175
  }
7161
7176
  }
7162
7177
  }, [
7163
- Pj,
7164
- Ij,
7178
+ Lj,
7179
+ zj,
7165
7180
  M,
7166
- Cj
7181
+ Ej
7167
7182
  ]), import_react.useEffect(() => {
7168
7183
  let e3;
7169
- if (w2 && gj.current && A) {
7184
+ if (w2 && q.current && A) {
7170
7185
  let t2 = A.createElement("style");
7171
7186
  t2.appendChild(A.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), A.head.appendChild(t2), window.getComputedStyle(A.body), e3 = setTimeout(() => {
7172
7187
  A.head.removeChild(t2);
@@ -7176,48 +7191,48 @@ try {
7176
7191
  clearTimeout(e3);
7177
7192
  };
7178
7193
  }, [
7179
- Pj,
7194
+ Lj,
7180
7195
  w2,
7181
7196
  A
7182
- ]), import_react.useEffect(() => (gj.current = true, () => {
7183
- gj.current = false;
7197
+ ]), import_react.useEffect(() => (q.current = true, () => {
7198
+ q.current = false;
7184
7199
  }), []);
7185
- let Lj = import_react.useMemo(() => ({
7186
- allColorSchemes: Cj,
7187
- colorScheme: Pj,
7188
- darkColorScheme: Aj,
7189
- lightColorScheme: kj,
7190
- mode: Nj,
7191
- setColorScheme: Mj,
7192
- setMode: Dj,
7193
- systemMode: Oj
7200
+ let Bj = import_react.useMemo(() => ({
7201
+ allColorSchemes: Ej,
7202
+ colorScheme: Lj,
7203
+ darkColorScheme: Nj,
7204
+ lightColorScheme: Mj,
7205
+ mode: Ij,
7206
+ setColorScheme: Fj,
7207
+ setMode: Aj,
7208
+ systemMode: jj
7194
7209
  }), [
7195
- Cj,
7196
- Pj,
7197
- Aj,
7198
- kj,
7210
+ Ej,
7211
+ Lj,
7199
7212
  Nj,
7200
7213
  Mj,
7201
- Dj,
7202
- Oj,
7203
- Fj.colorSchemeSelector
7204
- ]), Rj = true;
7205
- (z || $.cssVariables === false || _j && (q == null ? void 0 : q.cssVarPrefix) === xj) && (Rj = false);
7206
- let zj = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7214
+ Ij,
7215
+ Fj,
7216
+ Aj,
7217
+ jj,
7218
+ Rj.colorSchemeSelector
7219
+ ]), Vj = true;
7220
+ (z || xj.cssVariables === false || yj && (J == null ? void 0 : J.cssVarPrefix) === wj) && (Vj = false);
7221
+ let Hj = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7207
7222
  children: [
7208
7223
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
7209
- themeId: vj ? t : void 0,
7210
- theme: Fj,
7224
+ themeId: bj ? t : void 0,
7225
+ theme: Rj,
7211
7226
  children: d2
7212
7227
  }),
7213
- Rj && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7214
- styles: ((_d = Fj.generateStyleSheets) == null ? void 0 : _d.call(Fj)) || []
7228
+ Vj && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7229
+ styles: ((_d = Rj.generateStyleSheets) == null ? void 0 : _d.call(Rj)) || []
7215
7230
  })
7216
7231
  ]
7217
7232
  });
7218
- return _j ? zj : (0, import_jsx_runtime.jsx)(f.Provider, {
7219
- value: Lj,
7220
- children: zj
7233
+ return yj ? Hj : (0, import_jsx_runtime.jsx)(f.Provider, {
7234
+ value: Bj,
7235
+ children: Hj
7221
7236
  });
7222
7237
  }
7223
7238
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -7963,10 +7978,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
7963
7978
  disableCssColorScheme: a,
7964
7979
  shouldSkipGeneratingVar: s,
7965
7980
  getSelector: createGetSelector_default(I)
7966
- }, { vars: U, generateThemeVars: K, generateStyleSheets: gj } = prepareCssVars_default(I, z);
7981
+ }, { vars: U, generateThemeVars: K, generateStyleSheets: q } = prepareCssVars_default(I, z);
7967
7982
  return I.vars = U, Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([e2, t2]) => {
7968
7983
  I[e2] = t2;
7969
- }), I.generateThemeVars = K, I.generateStyleSheets = gj, I.generateSpacing = function() {
7984
+ }), I.generateThemeVars = K, I.generateStyleSheets = q, I.generateSpacing = function() {
7970
7985
  return createSpacing(f.spacing, createUnarySpacing(this));
7971
7986
  }, I.getColorSchemeSelector = createGetColorSchemeSelector(c), I.spacing = I.generateSpacing(), I.shouldSkipGeneratingVar = s, I.unstable_sxConfig = {
7972
7987
  ...defaultSxConfig_default,
@@ -8717,10 +8732,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
8717
8732
  let n = useDefaultProps({
8718
8733
  props: e,
8719
8734
  name: "MuiInputBase"
8720
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: gj, onBlur: q, onChange: J, onClick: _j, onFocus: Q, onKeyDown: vj, onKeyUp: $, placeholder: yj, readOnly: bj, renderSuffix: xj, rows: Sj, size: Cj, slotProps: wj = {}, slots: Tj = {}, startAdornment: Ej, type: Dj = "text", value: Oj, ...kj } = n, Aj = A.value == null ? Oj : A.value, { current: jj } = import_react.useRef(Aj != null), Mj = import_react.useRef(), Nj = import_react.useCallback((e2) => {
8721
- }, []), Pj = useForkRef_default(Mj, M, A.ref, Nj), [Fj, Ij] = import_react.useState(false), Lj = useFormControl(), Rj = formControlState({
8735
+ }), { "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: yj, onFocus: $, onKeyDown: bj, onKeyUp: xj, placeholder: Sj, readOnly: Cj, renderSuffix: wj, rows: Tj, size: Ej, slotProps: Dj = {}, slots: Oj = {}, startAdornment: kj, type: Aj = "text", value: jj, ...Mj } = n, Nj = A.value == null ? jj : A.value, { current: Pj } = import_react.useRef(Nj != null), Fj = import_react.useRef(), Ij = import_react.useCallback((e2) => {
8736
+ }, []), Lj = useForkRef_default(Fj, M, A.ref, Ij), [Rj, zj] = import_react.useState(false), Bj = useFormControl(), Vj = formControlState({
8722
8737
  props: n,
8723
- muiFormControl: Lj,
8738
+ muiFormControl: Bj,
8724
8739
  states: [
8725
8740
  "color",
8726
8741
  "disabled",
@@ -8731,145 +8746,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
8731
8746
  "filled"
8732
8747
  ]
8733
8748
  });
8734
- Rj.focused = Lj ? Lj.focused : Fj, import_react.useEffect(() => {
8735
- !Lj && _ && Fj && (Ij(false), q && q());
8749
+ Vj.focused = Bj ? Bj.focused : Rj, import_react.useEffect(() => {
8750
+ !Bj && _ && Rj && (zj(false), J && J());
8736
8751
  }, [
8737
- Lj,
8752
+ Bj,
8738
8753
  _,
8739
- Fj,
8740
- q
8754
+ Rj,
8755
+ J
8741
8756
  ]);
8742
- let zj = Lj && Lj.onFilled, Bj = Lj && Lj.onEmpty, Vj = import_react.useCallback((e2) => {
8743
- isFilled(e2) ? zj && zj() : Bj && Bj();
8757
+ let Hj = Bj && Bj.onFilled, Uj = Bj && Bj.onEmpty, Wj = import_react.useCallback((e2) => {
8758
+ isFilled(e2) ? Hj && Hj() : Uj && Uj();
8744
8759
  }, [
8745
- zj,
8746
- Bj
8760
+ Hj,
8761
+ Uj
8747
8762
  ]);
8748
8763
  useEnhancedEffect_default$1(() => {
8749
- jj && Vj({
8750
- value: Aj
8764
+ Pj && Wj({
8765
+ value: Nj
8751
8766
  });
8752
8767
  }, [
8753
- Aj,
8754
- Vj,
8755
- jj
8768
+ Nj,
8769
+ Wj,
8770
+ Pj
8756
8771
  ]);
8757
- let Hj = (e2) => {
8758
- Q && Q(e2), A.onFocus && A.onFocus(e2), Lj && Lj.onFocus ? Lj.onFocus(e2) : Ij(true);
8759
- }, Uj = (e2) => {
8760
- q && q(e2), A.onBlur && A.onBlur(e2), Lj && Lj.onBlur ? Lj.onBlur(e2) : Ij(false);
8761
- }, Wj = (e2, ...t2) => {
8762
- if (!jj) {
8763
- let t3 = e2.target || Mj.current;
8772
+ let Gj = (e2) => {
8773
+ $ && $(e2), A.onFocus && A.onFocus(e2), Bj && Bj.onFocus ? Bj.onFocus(e2) : zj(true);
8774
+ }, Kj = (e2) => {
8775
+ J && J(e2), A.onBlur && A.onBlur(e2), Bj && Bj.onBlur ? Bj.onBlur(e2) : zj(false);
8776
+ }, qj = (e2, ...t2) => {
8777
+ if (!Pj) {
8778
+ let t3 = e2.target || Fj.current;
8764
8779
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
8765
- Vj({
8780
+ Wj({
8766
8781
  value: t3.value
8767
8782
  });
8768
8783
  }
8769
- A.onChange && A.onChange(e2, ...t2), J && J(e2, ...t2);
8784
+ A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
8770
8785
  };
8771
8786
  import_react.useEffect(() => {
8772
- Vj(Mj.current);
8787
+ Wj(Fj.current);
8773
8788
  }, []);
8774
- let Gj = (e2) => {
8775
- Mj.current && e2.currentTarget === e2.target && Mj.current.focus(), _j && _j(e2);
8776
- }, Kj = O, qj = A;
8777
- K && Kj === "input" && (qj = Sj ? {
8789
+ let Jj = (e2) => {
8790
+ Fj.current && e2.currentTarget === e2.target && Fj.current.focus(), yj && yj(e2);
8791
+ }, Yj = O, Xj = A;
8792
+ K && Yj === "input" && (Xj = Tj ? {
8778
8793
  type: void 0,
8779
- minRows: Sj,
8780
- maxRows: Sj,
8781
- ...qj
8794
+ minRows: Tj,
8795
+ maxRows: Tj,
8796
+ ...Xj
8782
8797
  } : {
8783
8798
  type: void 0,
8784
8799
  maxRows: z,
8785
8800
  minRows: U,
8786
- ...qj
8787
- }, Kj = TextareaAutosize_default);
8788
- let Jj = (e2) => {
8789
- Vj(e2.animationName === "mui-auto-fill-cancel" ? Mj.current : {
8801
+ ...Xj
8802
+ }, Yj = TextareaAutosize_default);
8803
+ let Zj = (e2) => {
8804
+ Wj(e2.animationName === "mui-auto-fill-cancel" ? Fj.current : {
8790
8805
  value: "x"
8791
8806
  });
8792
8807
  };
8793
8808
  import_react.useEffect(() => {
8794
- Lj && Lj.setAdornedStart(!!Ej);
8809
+ Bj && Bj.setAdornedStart(!!kj);
8795
8810
  }, [
8796
- Lj,
8797
- Ej
8811
+ Bj,
8812
+ kj
8798
8813
  ]);
8799
- let Yj = {
8814
+ let Qj = {
8800
8815
  ...n,
8801
- color: Rj.color || "primary",
8802
- disabled: Rj.disabled,
8816
+ color: Vj.color || "primary",
8817
+ disabled: Vj.disabled,
8803
8818
  endAdornment: y,
8804
- error: Rj.error,
8805
- focused: Rj.focused,
8806
- formControl: Lj,
8819
+ error: Vj.error,
8820
+ focused: Vj.focused,
8821
+ formControl: Bj,
8807
8822
  fullWidth: w,
8808
- hiddenLabel: Rj.hiddenLabel,
8823
+ hiddenLabel: Vj.hiddenLabel,
8809
8824
  multiline: K,
8810
- size: Rj.size,
8811
- startAdornment: Ej,
8812
- type: Dj
8813
- }, Xj = useUtilityClasses(Yj), Zj = Tj.root || d.Root || InputBaseRoot, Qj = wj.root || f.root || {}, $j = Tj.input || d.Input || InputBaseInput;
8814
- return qj = {
8815
- ...qj,
8816
- ...wj.input ?? f.input
8825
+ size: Vj.size,
8826
+ startAdornment: kj,
8827
+ type: Aj
8828
+ }, $j = useUtilityClasses(Qj), eM = Oj.root || d.Root || InputBaseRoot, tM = Dj.root || f.root || {}, nM = Oj.input || d.Input || InputBaseInput;
8829
+ return Xj = {
8830
+ ...Xj,
8831
+ ...Dj.input ?? f.input
8817
8832
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
8818
8833
  children: [
8819
8834
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
8820
- (0, import_jsx_runtime.jsxs)(Zj, {
8821
- ...Qj,
8835
+ (0, import_jsx_runtime.jsxs)(eM, {
8836
+ ...tM,
8822
8837
  ref: t,
8823
- onClick: Gj,
8824
- ...kj,
8825
- ...!isHostComponent_default(Zj) && {
8838
+ onClick: Jj,
8839
+ ...Mj,
8840
+ ...!isHostComponent_default(eM) && {
8826
8841
  ownerState: {
8827
- ...Yj,
8828
- ...Qj.ownerState
8842
+ ...Qj,
8843
+ ...tM.ownerState
8829
8844
  }
8830
8845
  },
8831
- className: clsx_default(Xj.root, Qj.className, s, bj && "MuiInputBase-readOnly"),
8846
+ className: clsx_default($j.root, tM.className, s, Cj && "MuiInputBase-readOnly"),
8832
8847
  children: [
8833
- Ej,
8848
+ kj,
8834
8849
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
8835
8850
  value: null,
8836
- children: (0, import_jsx_runtime.jsx)($j, {
8837
- "aria-invalid": Rj.error,
8851
+ children: (0, import_jsx_runtime.jsx)(nM, {
8852
+ "aria-invalid": Vj.error,
8838
8853
  "aria-describedby": i,
8839
8854
  autoComplete: a,
8840
8855
  autoFocus: o,
8841
8856
  defaultValue: h,
8842
- disabled: Rj.disabled,
8857
+ disabled: Vj.disabled,
8843
8858
  id: E,
8844
- onAnimationStart: Jj,
8845
- name: gj,
8846
- placeholder: yj,
8847
- readOnly: bj,
8848
- required: Rj.required,
8849
- rows: Sj,
8850
- value: Aj,
8851
- onKeyDown: vj,
8852
- onKeyUp: $,
8853
- type: Dj,
8854
- ...qj,
8855
- ...!isHostComponent_default($j) && {
8856
- as: Kj,
8859
+ onAnimationStart: Zj,
8860
+ name: q,
8861
+ placeholder: Sj,
8862
+ readOnly: Cj,
8863
+ required: Vj.required,
8864
+ rows: Tj,
8865
+ value: Nj,
8866
+ onKeyDown: bj,
8867
+ onKeyUp: xj,
8868
+ type: Aj,
8869
+ ...Xj,
8870
+ ...!isHostComponent_default(nM) && {
8871
+ as: Yj,
8857
8872
  ownerState: {
8858
- ...Yj,
8859
- ...qj.ownerState
8873
+ ...Qj,
8874
+ ...Xj.ownerState
8860
8875
  }
8861
8876
  },
8862
- ref: Pj,
8863
- className: clsx_default(Xj.input, qj.className, bj && "MuiInputBase-readOnly"),
8864
- onBlur: Uj,
8865
- onChange: Wj,
8866
- onFocus: Hj
8877
+ ref: Lj,
8878
+ className: clsx_default($j.input, Xj.className, Cj && "MuiInputBase-readOnly"),
8879
+ onBlur: Kj,
8880
+ onChange: qj,
8881
+ onFocus: Gj
8867
8882
  })
8868
8883
  }),
8869
8884
  y,
8870
- xj ? xj({
8871
- ...Rj,
8872
- startAdornment: Ej
8885
+ wj ? wj({
8886
+ ...Vj,
8887
+ startAdornment: kj
8873
8888
  }) : null
8874
8889
  ]
8875
8890
  })
@@ -9945,30 +9960,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9945
9960
  M,
9946
9961
  i,
9947
9962
  a
9948
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, gj] = useInspect(i, t, a), [q, J] = (0, import_react.useState)(false), _j = useJsonViewerStore((e2) => e2.onChange), Q = useTextColor(), vj = useJsonViewerStore((e2) => e2.colorspace.base0C), $ = useJsonViewerStore((e2) => e2.colorspace.base0A), yj = useJsonViewerStore((e2) => e2.displayComma), bj = useJsonViewerStore((e2) => e2.quotesOnKeys), xj = useJsonViewerStore((e2) => e2.rootName), Sj = U === t, Cj = Number.isInteger(Number(A)), wj = useJsonViewerStore((e2) => e2.enableAdd), Tj = useJsonViewerStore((e2) => e2.onAdd), Ej = (0, import_react.useMemo)(() => !Tj || a !== void 0 || wj === false || v === false ? false : typeof wj == "function" ? !!wj(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
9949
- Tj,
9963
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), yj = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), bj = useJsonViewerStore((e2) => e2.colorspace.base0C), xj = useJsonViewerStore((e2) => e2.colorspace.base0A), Sj = useJsonViewerStore((e2) => e2.displayComma), Cj = useJsonViewerStore((e2) => e2.quotesOnKeys), wj = useJsonViewerStore((e2) => e2.rootName), Tj = U === t, Ej = Number.isInteger(Number(A)), Dj = useJsonViewerStore((e2) => e2.enableAdd), Oj = useJsonViewerStore((e2) => e2.onAdd), kj = (0, import_react.useMemo)(() => !Oj || a !== void 0 || Dj === false || v === false ? false : typeof Dj == "function" ? !!Dj(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
9964
+ Oj,
9950
9965
  a,
9951
9966
  i,
9952
- wj,
9967
+ Dj,
9953
9968
  v,
9954
9969
  t
9955
- ]), Dj = useJsonViewerStore((e2) => e2.enableDelete), Oj = useJsonViewerStore((e2) => e2.onDelete), kj = (0, import_react.useMemo)(() => !Oj || a !== void 0 || Sj || Dj === false || v === false ? false : typeof Dj == "function" ? !!Dj(i, t) : Dj, [
9956
- Oj,
9970
+ ]), Aj = useJsonViewerStore((e2) => e2.enableDelete), jj = useJsonViewerStore((e2) => e2.onDelete), Mj = (0, import_react.useMemo)(() => !jj || a !== void 0 || Tj || Aj === false || v === false ? false : typeof Aj == "function" ? !!Aj(i, t) : Aj, [
9971
+ jj,
9957
9972
  a,
9958
- Sj,
9973
+ Tj,
9959
9974
  i,
9960
- Dj,
9975
+ Aj,
9961
9976
  v,
9962
9977
  t
9963
- ]), Aj = useJsonViewerStore((e2) => e2.enableClipboard), { copy: jj, copied: Mj } = useClipboard(), Nj = useJsonViewerStore((e2) => e2.highlightUpdates), Pj = (0, import_react.useMemo)(() => !Nj || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
9964
- Nj,
9978
+ ]), Nj = useJsonViewerStore((e2) => e2.enableClipboard), { copy: Pj, copied: Fj } = useClipboard(), Ij = useJsonViewerStore((e2) => e2.highlightUpdates), Lj = (0, import_react.useMemo)(() => !Ij || 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, [
9979
+ Ij,
9965
9980
  n,
9966
9981
  t
9967
- ]), Fj = (0, import_react.useRef)();
9982
+ ]), Rj = (0, import_react.useRef)();
9968
9983
  (0, import_react.useEffect)(() => {
9969
- Fj.current && Pj && "animate" in Fj.current && Fj.current.animate([
9984
+ Rj.current && Lj && "animate" in Rj.current && Rj.current.animate([
9970
9985
  {
9971
- backgroundColor: $
9986
+ backgroundColor: xj
9972
9987
  },
9973
9988
  {
9974
9989
  backgroundColor: ""
@@ -9978,40 +9993,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9978
9993
  easing: "ease-in"
9979
9994
  });
9980
9995
  }, [
9981
- $,
9982
- Pj,
9996
+ xj,
9997
+ Lj,
9983
9998
  n,
9984
9999
  t
9985
10000
  ]);
9986
- let Ij = (0, import_react.useCallback)((e2) => {
9987
- e2.preventDefault(), h && E(h(t)), J(true);
10001
+ let zj = (0, import_react.useCallback)((e2) => {
10002
+ e2.preventDefault(), h && E(h(t)), Q(true);
9988
10003
  }, [
9989
10004
  h,
9990
10005
  t
9991
- ]), Lj = (0, import_react.useCallback)(() => {
9992
- J(false), E("");
10006
+ ]), Bj = (0, import_react.useCallback)(() => {
10007
+ Q(false), E("");
9993
10008
  }, [
9994
- J,
10009
+ Q,
9995
10010
  E
9996
- ]), Rj = (0, import_react.useCallback)((e2) => {
9997
- if (J(false), _) try {
9998
- _j(i, t, _(e2));
10011
+ ]), Vj = (0, import_react.useCallback)((e2) => {
10012
+ if (Q(false), _) try {
10013
+ yj(i, t, _(e2));
9999
10014
  } catch {
10000
10015
  }
10001
10016
  }, [
10002
- J,
10017
+ Q,
10003
10018
  _,
10004
- _j,
10019
+ yj,
10005
10020
  i,
10006
10021
  t
10007
- ]), zj = (0, import_react.useMemo)(() => q ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10022
+ ]), Hj = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10008
10023
  children: [
10009
10024
  (0, import_jsx_runtime.jsx)(IconBox, {
10010
10025
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
10011
10026
  sx: {
10012
10027
  fontSize: ".8rem"
10013
10028
  },
10014
- onClick: Lj
10029
+ onClick: Bj
10015
10030
  })
10016
10031
  }),
10017
10032
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -10019,22 +10034,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10019
10034
  sx: {
10020
10035
  fontSize: ".8rem"
10021
10036
  },
10022
- onClick: () => Rj(w)
10037
+ onClick: () => Vj(w)
10023
10038
  })
10024
10039
  })
10025
10040
  ]
10026
10041
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10027
10042
  children: [
10028
- Aj && (0, import_jsx_runtime.jsx)(IconBox, {
10043
+ Nj && (0, import_jsx_runtime.jsx)(IconBox, {
10029
10044
  onClick: (e2) => {
10030
10045
  e2.preventDefault();
10031
10046
  try {
10032
- jj(i, t, copyString);
10047
+ Pj(i, t, copyString);
10033
10048
  } catch (e3) {
10034
10049
  console.error(e3);
10035
10050
  }
10036
10051
  },
10037
- children: Mj ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10052
+ children: Fj ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10038
10053
  sx: {
10039
10054
  fontSize: ".8rem"
10040
10055
  }
@@ -10045,16 +10060,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10045
10060
  })
10046
10061
  }),
10047
10062
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
10048
- onClick: Ij,
10063
+ onClick: zj,
10049
10064
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
10050
10065
  sx: {
10051
10066
  fontSize: ".8rem"
10052
10067
  }
10053
10068
  })
10054
10069
  }),
10055
- Ej && (0, import_jsx_runtime.jsx)(IconBox, {
10070
+ kj && (0, import_jsx_runtime.jsx)(IconBox, {
10056
10071
  onClick: (e2) => {
10057
- e2.preventDefault(), Tj == null ? void 0 : Tj(i);
10072
+ e2.preventDefault(), Oj == null ? void 0 : Oj(i);
10058
10073
  },
10059
10074
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
10060
10075
  sx: {
@@ -10062,9 +10077,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10062
10077
  }
10063
10078
  })
10064
10079
  }),
10065
- kj && (0, import_jsx_runtime.jsx)(IconBox, {
10080
+ Mj && (0, import_jsx_runtime.jsx)(IconBox, {
10066
10081
  onClick: (e2) => {
10067
- e2.preventDefault(), Oj == null ? void 0 : Oj(i, t);
10082
+ e2.preventDefault(), jj == null ? void 0 : jj(i, t);
10068
10083
  },
10069
10084
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
10070
10085
  sx: {
@@ -10077,34 +10092,34 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10077
10092
  f,
10078
10093
  h,
10079
10094
  _,
10080
- Mj,
10081
- jj,
10095
+ Fj,
10096
+ Pj,
10082
10097
  S,
10083
- q,
10084
- Aj,
10085
- Ej,
10098
+ J,
10099
+ Nj,
10086
10100
  kj,
10101
+ Mj,
10087
10102
  w,
10088
10103
  i,
10089
10104
  t,
10090
- Tj,
10091
10105
  Oj,
10092
- Ij,
10093
- Lj,
10094
- Rj
10095
- ]), Bj = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10106
+ jj,
10107
+ zj,
10108
+ Bj,
10109
+ Vj
10110
+ ]), Uj = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10096
10111
  t
10097
- ]), Vj = !Bj && !!(c && d), Hj = useJsonViewerStore((e2) => e2.keyRenderer), Uj = (0, import_react.useMemo)(() => ({
10112
+ ]), Wj = !Uj && !!(c && d), Gj = useJsonViewerStore((e2) => e2.keyRenderer), Kj = (0, import_react.useMemo)(() => ({
10098
10113
  path: i,
10099
10114
  inspect: K,
10100
- setInspect: gj,
10115
+ setInspect: q,
10101
10116
  value: t,
10102
10117
  prevValue: n,
10103
10118
  nestedIndex: a
10104
10119
  }), [
10105
10120
  K,
10106
10121
  i,
10107
- gj,
10122
+ q,
10108
10123
  t,
10109
10124
  n,
10110
10125
  a
@@ -10126,18 +10141,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10126
10141
  className: "data-key",
10127
10142
  sx: {
10128
10143
  lineHeight: 1.5,
10129
- color: Q,
10144
+ color: $,
10130
10145
  letterSpacing: 0.5,
10131
10146
  opacity: 0.8
10132
10147
  },
10133
10148
  onClick: (0, import_react.useCallback)((e2) => {
10134
- e2.isDefaultPrevented() || Bj || gj((e3) => !e3);
10149
+ e2.isDefaultPrevented() || Uj || q((e3) => !e3);
10135
10150
  }, [
10136
- Bj,
10137
- gj
10151
+ Uj,
10152
+ q
10138
10153
  ]),
10139
10154
  children: [
10140
- Vj ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10155
+ Wj ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10141
10156
  className: "data-key-toggle-expanded",
10142
10157
  sx: {
10143
10158
  fontSize: ".8rem",
@@ -10155,27 +10170,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10155
10170
  }
10156
10171
  }) : null,
10157
10172
  (0, import_jsx_runtime.jsx)(Box_default, {
10158
- ref: Fj,
10173
+ ref: Rj,
10159
10174
  className: "data-key-key",
10160
10175
  component: "span",
10161
- children: Sj && O === 0 ? xj === false ? null : bj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10176
+ children: Tj && O === 0 ? wj === false ? null : Cj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10162
10177
  children: [
10163
10178
  '"',
10164
- xj,
10179
+ wj,
10165
10180
  '"'
10166
10181
  ]
10167
10182
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
10168
- children: xj
10169
- }) : Hj.when(Uj) ? (0, import_jsx_runtime.jsx)(Hj, {
10170
- ...Uj
10171
- }) : a === void 0 && (Cj ? (0, import_jsx_runtime.jsx)(Box_default, {
10183
+ children: wj
10184
+ }) : Gj.when(Kj) ? (0, import_jsx_runtime.jsx)(Gj, {
10185
+ ...Kj
10186
+ }) : a === void 0 && (Ej ? (0, import_jsx_runtime.jsx)(Box_default, {
10172
10187
  component: "span",
10173
10188
  style: {
10174
- color: vj,
10175
- userSelect: Cj ? "none" : "auto"
10189
+ color: bj,
10190
+ userSelect: Ej ? "none" : "auto"
10176
10191
  },
10177
10192
  children: A
10178
- }) : bj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10193
+ }) : Cj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10179
10194
  children: [
10180
10195
  '"',
10181
10196
  A,
@@ -10185,7 +10200,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10185
10200
  children: A
10186
10201
  }))
10187
10202
  }),
10188
- Sj ? xj !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10203
+ Tj ? wj !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10189
10204
  className: "data-key-colon",
10190
10205
  sx: {
10191
10206
  mr: 0.5
@@ -10198,38 +10213,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10198
10213
  ".data-key-key:empty + &": {
10199
10214
  display: "none"
10200
10215
  },
10201
- userSelect: Cj ? "none" : "auto"
10216
+ userSelect: Ej ? "none" : "auto"
10202
10217
  },
10203
10218
  children: ":"
10204
10219
  }),
10205
10220
  c && (0, import_jsx_runtime.jsx)(c, {
10206
- ...Uj
10221
+ ...Kj
10207
10222
  }),
10208
- I && Vj && K && zj
10223
+ I && Wj && K && Hj
10209
10224
  ]
10210
10225
  }),
10211
- q && S ? f && (0, import_jsx_runtime.jsx)(f, {
10226
+ J && S ? f && (0, import_jsx_runtime.jsx)(f, {
10212
10227
  path: i,
10213
10228
  value: w,
10214
10229
  setValue: E,
10215
- abortEditing: Lj,
10216
- commitEditing: Rj
10230
+ abortEditing: Bj,
10231
+ commitEditing: Vj
10217
10232
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
10218
- ...Uj
10233
+ ...Kj
10219
10234
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
10220
10235
  component: "span",
10221
10236
  className: "data-value-fallback",
10222
10237
  children: `fallback: ${t}`
10223
10238
  }),
10224
10239
  d && (0, import_jsx_runtime.jsx)(d, {
10225
- ...Uj
10240
+ ...Kj
10226
10241
  }),
10227
- !o && yj && (0, import_jsx_runtime.jsx)(DataBox, {
10242
+ !o && Sj && (0, import_jsx_runtime.jsx)(DataBox, {
10228
10243
  children: ","
10229
10244
  }),
10230
- I && Vj && !K && zj,
10231
- I && !Vj && zj,
10232
- !I && q && zj
10245
+ I && Wj && !K && Hj,
10246
+ I && !Wj && Hj,
10247
+ !I && J && Hj
10233
10248
  ]
10234
10249
  });
10235
10250
  }, query = "(prefers-color-scheme: dark)";
@@ -10617,13 +10632,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10617
10632
  }
10618
10633
  }), t2 == null ? void 0 : t2.focus();
10619
10634
  }, t[5] = i, t[6] = c, t[7] = y, t[8] = v, t[9] = s, t[10] = S) : S = t[10];
10620
- let w = S, E;
10621
- t[11] === o ? E = t[12] : (E = cn("my-2", o), t[11] = o, t[12] = E);
10622
- let O;
10623
- t[13] !== y.description || t[14] !== y.fixType || t[15] !== y.title || t[16] !== w ? (O = y.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
10635
+ let E = S, O;
10636
+ t[11] === o ? O = t[12] : (O = cn("my-2", o), t[11] = o, t[12] = O);
10637
+ let A;
10638
+ t[13] !== y.description || t[14] !== y.fixType || t[15] !== y.title || t[16] !== E ? (A = y.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
10624
10639
  tooltip: y.description,
10625
- openPrompt: () => w(false),
10626
- applyAutofix: () => w(true)
10640
+ openPrompt: () => E(false),
10641
+ applyAutofix: () => E(true)
10627
10642
  }) : (0, import_jsx_runtime.jsx)(Tooltip, {
10628
10643
  content: y.description,
10629
10644
  align: "start",
@@ -10631,7 +10646,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10631
10646
  size: "xs",
10632
10647
  variant: "outline",
10633
10648
  className: "font-normal",
10634
- onClick: () => w(false),
10649
+ onClick: () => E(false),
10635
10650
  children: [
10636
10651
  (0, import_jsx_runtime.jsx)(Wrench, {
10637
10652
  className: "h-3 w-3 mr-2"
@@ -10639,12 +10654,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10639
10654
  y.title
10640
10655
  ]
10641
10656
  })
10642
- }), t[13] = y.description, t[14] = y.fixType, t[15] = y.title, t[16] = w, t[17] = O) : O = t[17];
10643
- let A;
10644
- return t[18] !== E || t[19] !== O ? (A = (0, import_jsx_runtime.jsx)("div", {
10645
- className: E,
10646
- children: O
10647
- }), t[18] = E, t[19] = O, t[20] = A) : A = t[20], A;
10657
+ }), t[13] = y.description, t[14] = y.fixType, t[15] = y.title, t[16] = E, t[17] = A) : A = t[17];
10658
+ let M;
10659
+ return t[18] !== O || t[19] !== A ? (M = (0, import_jsx_runtime.jsx)("div", {
10660
+ className: O,
10661
+ children: A
10662
+ }), t[18] = O, t[19] = A, t[20] = M) : M = t[20], M;
10648
10663
  };
10649
10664
  var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
10650
10665
  const AIFixButton = (e) => {
@@ -11070,18 +11085,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11070
11085
  }
11071
11086
  let _, v, y, S, w, E;
11072
11087
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
11073
- let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A = n.filter(_temp9), M2 = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), gj = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), _j = n.filter(_temp15), Q = n.filter(_temp16), vj = n.filter(_temp17), $;
11074
- t[15] === s ? $ = t[16] : ($ = () => {
11088
+ let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), yj = n.filter(_temp16), $ = n.filter(_temp17), bj;
11089
+ t[15] === s ? bj = t[16] : (bj = () => {
11075
11090
  s.openApplication("scratchpad");
11076
- }, t[15] = s, t[16] = $);
11077
- let yj = $, bj = () => {
11091
+ }, t[15] = s, t[16] = bj);
11092
+ let Sj = bj, Cj = () => {
11078
11093
  let t2 = [];
11079
- if (_j.length > 0 || Q.length > 0) {
11080
- let e3 = _j.some(_temp18), n2 = !e3 && _j.some(_temp19);
11094
+ if (Q.length > 0 || yj.length > 0) {
11095
+ let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
11081
11096
  t2.push((0, import_jsx_runtime.jsxs)("div", {
11082
11097
  children: [
11083
- _j.map(_temp20),
11084
- Q.map(_temp21),
11098
+ Q.map(_temp20),
11099
+ yj.map(_temp21),
11085
11100
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
11086
11101
  size: "xs",
11087
11102
  variant: "outline",
@@ -11112,8 +11127,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11112
11127
  }),
11113
11128
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11114
11129
  errors: [
11115
- ..._j,
11116
- ...Q
11130
+ ...Q,
11131
+ ...yj
11117
11132
  ],
11118
11133
  cellId: i
11119
11134
  })
@@ -11212,17 +11227,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11212
11227
  ]
11213
11228
  })
11214
11229
  ]
11215
- }, "cycle")), A.length > 0) {
11216
- let e3 = A[0].name;
11230
+ }, "cycle")), A2.length > 0) {
11231
+ let e3 = A2[0].name;
11217
11232
  t2.push((0, import_jsx_runtime.jsxs)("div", {
11218
11233
  children: [
11219
11234
  (0, import_jsx_runtime.jsx)("p", {
11220
11235
  className: "text-muted-foreground font-medium",
11221
11236
  children: "This cell redefines variables from other cells."
11222
11237
  }),
11223
- A.map(_temp25),
11238
+ A2.map(_temp25),
11224
11239
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11225
- errors: A,
11240
+ errors: A2,
11226
11241
  cellId: i
11227
11242
  }),
11228
11243
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -11274,7 +11289,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11274
11289
  size: "xs",
11275
11290
  variant: "link",
11276
11291
  className: "my-2 font-normal mx-0 px-0",
11277
- onClick: yj,
11292
+ onClick: Sj,
11278
11293
  children: [
11279
11294
  (0, import_jsx_runtime.jsx)(NotebookPen, {
11280
11295
  className: "h-3"
@@ -11293,11 +11308,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11293
11308
  ]
11294
11309
  }, "multiple-defs"));
11295
11310
  }
11296
- return M2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11311
+ return M.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11297
11312
  children: [
11298
- M2.map(_temp26),
11313
+ M.map(_temp26),
11299
11314
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11300
- errors: M2,
11315
+ errors: M,
11301
11316
  cellId: i
11302
11317
  }),
11303
11318
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -11365,11 +11380,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11365
11380
  children: U.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
11366
11381
  })
11367
11382
  ]
11368
- }, "strict-exception")), gj.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11383
+ }, "strict-exception")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11369
11384
  children: [
11370
- gj.map(_temp32),
11385
+ K.map(_temp32),
11371
11386
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11372
- errors: gj,
11387
+ errors: K,
11373
11388
  cellId: i
11374
11389
  })
11375
11390
  ]
@@ -11389,23 +11404,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11389
11404
  cellId: i
11390
11405
  })
11391
11406
  ]
11392
- }, "ancestor-stopped")), vj.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11407
+ }, "ancestor-stopped")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11393
11408
  children: [
11394
- vj.map(_temp35),
11409
+ $.map(_temp35),
11395
11410
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11396
- errors: vj,
11411
+ errors: $,
11397
11412
  cellId: i,
11398
11413
  className: "mt-2.5"
11399
11414
  })
11400
11415
  ]
11401
11416
  }, "sql-errors")), t2;
11402
- }, xj = `font-code font-medium tracking-wide ${h}`, Sj;
11403
- t[17] !== xj || t[18] !== c ? (Sj = (0, import_jsx_runtime.jsx)(AlertTitle, {
11404
- className: xj,
11417
+ }, wj = `font-code font-medium tracking-wide ${h}`, Tj;
11418
+ t[17] !== wj || t[18] !== c ? (Tj = (0, import_jsx_runtime.jsx)(AlertTitle, {
11419
+ className: wj,
11405
11420
  children: c
11406
- }), t[17] = xj, t[18] = c, t[19] = Sj) : Sj = t[19];
11407
- let Cj = Sj;
11408
- _ = Alert, S = f, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = Cj, v = "flex flex-col gap-8", y = bj(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11421
+ }), t[17] = wj, t[18] = c, t[19] = Tj) : Tj = t[19];
11422
+ let Ej = Tj;
11423
+ _ = Alert, S = f, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = Ej, v = "flex flex-col gap-8", y = Cj(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11409
11424
  } else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
11410
11425
  let O;
11411
11426
  t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
@@ -11414,15 +11429,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11414
11429
  children: y
11415
11430
  })
11416
11431
  }), t[22] = v, t[23] = y, t[24] = O) : O = t[24];
11417
- let M;
11418
- return t[25] !== _ || t[26] !== S || t[27] !== w || t[28] !== E || t[29] !== O ? (M = (0, import_jsx_runtime.jsxs)(_, {
11432
+ let A;
11433
+ return t[25] !== _ || t[26] !== S || t[27] !== w || t[28] !== E || t[29] !== O ? (A = (0, import_jsx_runtime.jsxs)(_, {
11419
11434
  variant: S,
11420
11435
  className: w,
11421
11436
  children: [
11422
11437
  E,
11423
11438
  O
11424
11439
  ]
11425
- }), t[25] = _, t[26] = S, t[27] = w, t[28] = E, t[29] = O, t[30] = M) : M = t[30], M;
11440
+ }), t[25] = _, t[26] = S, t[27] = w, t[28] = E, t[29] = O, t[30] = A) : A = t[30], A;
11426
11441
  };
11427
11442
  function _temp$3(e) {
11428
11443
  return e.type === "interruption";
@@ -12294,7 +12309,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12294
12309
  }, [
12295
12310
  h
12296
12311
  ]), k(() => {
12297
- U(6, vj);
12312
+ U(6, bj);
12298
12313
  }, []);
12299
12314
  let K = import_react.useMemo(() => ({
12300
12315
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -12303,7 +12318,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12303
12318
  var _a2;
12304
12319
  var a2, o2, s2;
12305
12320
  if (!Object.is(n.current[e2], t2)) {
12306
- if (n.current[e2] = t2, e2 === "search") Q(), J(), U(1, _j);
12321
+ if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, yj);
12307
12322
  else if (e2 === "value") {
12308
12323
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
12309
12324
  let e3 = document.getElementById(I);
@@ -12311,8 +12326,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12311
12326
  }
12312
12327
  if (U(7, () => {
12313
12328
  var _a3;
12314
- n.current.selectedItemId = (_a3 = $()) == null ? void 0 : _a3.id, K.emit();
12315
- }), i2 || U(5, vj), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12329
+ n.current.selectedItemId = (_a3 = xj()) == null ? void 0 : _a3.id, K.emit();
12330
+ }), i2 || U(5, bj), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12316
12331
  let e3 = t2 ?? "";
12317
12332
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
12318
12333
  return;
@@ -12324,25 +12339,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12324
12339
  emit: () => {
12325
12340
  s.current.forEach((e2) => e2());
12326
12341
  }
12327
- }), []), gj = import_react.useMemo(() => ({
12342
+ }), []), q = import_react.useMemo(() => ({
12328
12343
  value: (e2, t2, i2) => {
12329
12344
  var _a2;
12330
12345
  t2 !== ((_a2 = o.current.get(e2)) == null ? void 0 : _a2.value) && (o.current.set(e2, {
12331
12346
  value: t2,
12332
12347
  keywords: i2
12333
- }), n.current.filtered.items.set(e2, q(t2, i2)), U(2, () => {
12334
- J(), K.emit();
12348
+ }), n.current.filtered.items.set(e2, J(t2, i2)), U(2, () => {
12349
+ Q(), K.emit();
12335
12350
  }));
12336
12351
  },
12337
12352
  item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
12338
12353
  e2
12339
12354
  ]))), U(3, () => {
12340
- Q(), J(), n.current.value || _j(), K.emit();
12355
+ $(), Q(), n.current.value || yj(), K.emit();
12341
12356
  }), () => {
12342
12357
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
12343
- let t3 = $();
12358
+ let t3 = xj();
12344
12359
  U(4, () => {
12345
- Q(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && _j(), K.emit();
12360
+ $(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && yj(), K.emit();
12346
12361
  });
12347
12362
  }),
12348
12363
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -12356,12 +12371,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12356
12371
  labelId: M,
12357
12372
  listInnerRef: z
12358
12373
  }), []);
12359
- function q(e2, t2) {
12374
+ function J(e2, t2) {
12360
12375
  var _a2;
12361
12376
  let i2 = ((_a2 = c.current) == null ? void 0 : _a2.filter) ?? Re;
12362
12377
  return e2 ? i2(e2, n.current.search, t2) : 0;
12363
12378
  }
12364
- function J() {
12379
+ function Q() {
12365
12380
  if (!n.current.search || c.current.shouldFilter === false) return;
12366
12381
  let e2 = n.current.filtered.items, t2 = [];
12367
12382
  n.current.filtered.groups.forEach((n2) => {
@@ -12375,7 +12390,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12375
12390
  ]);
12376
12391
  });
12377
12392
  let i2 = z.current;
12378
- yj().sort((t3, n2) => {
12393
+ Sj().sort((t3, n2) => {
12379
12394
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
12380
12395
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
12381
12396
  }).forEach((e3) => {
@@ -12387,12 +12402,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12387
12402
  t3 == null ? void 0 : t3.parentElement.appendChild(t3);
12388
12403
  });
12389
12404
  }
12390
- function _j() {
12405
+ function yj() {
12391
12406
  var _a2;
12392
- let e2 = (_a2 = yj().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12407
+ let e2 = (_a2 = Sj().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12393
12408
  K.setState("value", e2 || void 0);
12394
12409
  }
12395
- function Q() {
12410
+ function $() {
12396
12411
  var _a2, _b;
12397
12412
  if (!n.current.search || c.current.shouldFilter === false) {
12398
12413
  n.current.filtered.count = i.current.size;
@@ -12401,7 +12416,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12401
12416
  n.current.filtered.groups = /* @__PURE__ */ new Set();
12402
12417
  let e2 = 0;
12403
12418
  for (let t2 of i.current) {
12404
- let i2 = q(((_a2 = o.current.get(t2)) == null ? void 0 : _a2.value) ?? "", ((_b = o.current.get(t2)) == null ? void 0 : _b.keywords) ?? []);
12419
+ let i2 = J(((_a2 = o.current.get(t2)) == null ? void 0 : _a2.value) ?? "", ((_b = o.current.get(t2)) == null ? void 0 : _b.keywords) ?? []);
12405
12420
  n.current.filtered.items.set(t2, i2), i2 > 0 && e2++;
12406
12421
  }
12407
12422
  for (let [e3, t2] of a.current) for (let i2 of t2) if (n.current.filtered.items.get(i2) > 0) {
@@ -12410,43 +12425,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12410
12425
  }
12411
12426
  n.current.filtered.count = e2;
12412
12427
  }
12413
- function vj() {
12428
+ function bj() {
12414
12429
  var _a2, _b;
12415
12430
  var e2;
12416
- let t2 = $();
12431
+ let t2 = xj();
12417
12432
  t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
12418
12433
  block: "nearest"
12419
12434
  })), t2.scrollIntoView({
12420
12435
  block: "nearest"
12421
12436
  }));
12422
12437
  }
12423
- function $() {
12438
+ function xj() {
12424
12439
  var _a2;
12425
12440
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
12426
12441
  }
12427
- function yj() {
12442
+ function Sj() {
12428
12443
  var _a2;
12429
12444
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
12430
12445
  }
12431
- function bj(e2) {
12432
- let t2 = yj()[e2];
12446
+ function Cj(e2) {
12447
+ let t2 = Sj()[e2];
12433
12448
  t2 && K.setState("value", t2.getAttribute(T));
12434
12449
  }
12435
- function xj(e2) {
12450
+ function wj(e2) {
12436
12451
  var t2;
12437
- let n2 = $(), i2 = yj(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12452
+ let n2 = xj(), i2 = Sj(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12438
12453
  (t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
12439
12454
  }
12440
- function Sj(e2) {
12455
+ function Tj(e2) {
12441
12456
  var _a2;
12442
- let t2 = (_a2 = $()) == null ? void 0 : _a2.closest(N$1), n2;
12457
+ let t2 = (_a2 = xj()) == null ? void 0 : _a2.closest(N$1), n2;
12443
12458
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
12444
- n2 ? K.setState("value", n2.getAttribute(T)) : xj(e2);
12459
+ n2 ? K.setState("value", n2.getAttribute(T)) : wj(e2);
12445
12460
  }
12446
- let Cj = () => bj(yj().length - 1), wj = (e2) => {
12447
- e2.preventDefault(), e2.metaKey ? Cj() : e2.altKey ? Sj(1) : xj(1);
12448
- }, Tj = (e2) => {
12449
- e2.preventDefault(), e2.metaKey ? bj(0) : e2.altKey ? Sj(-1) : xj(-1);
12461
+ let Ej = () => Cj(Sj().length - 1), Dj = (e2) => {
12462
+ e2.preventDefault(), e2.metaKey ? Ej() : e2.altKey ? Tj(1) : wj(1);
12463
+ }, Oj = (e2) => {
12464
+ e2.preventDefault(), e2.metaKey ? Cj(0) : e2.altKey ? Tj(-1) : wj(-1);
12450
12465
  };
12451
12466
  return import_react.createElement(Primitive.div, {
12452
12467
  ref: t,
@@ -12460,27 +12475,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12460
12475
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
12461
12476
  case "n":
12462
12477
  case "j":
12463
- E && e2.ctrlKey && wj(e2);
12478
+ E && e2.ctrlKey && Dj(e2);
12464
12479
  break;
12465
12480
  case "ArrowDown":
12466
- wj(e2);
12481
+ Dj(e2);
12467
12482
  break;
12468
12483
  case "p":
12469
12484
  case "k":
12470
- E && e2.ctrlKey && Tj(e2);
12485
+ E && e2.ctrlKey && Oj(e2);
12471
12486
  break;
12472
12487
  case "ArrowUp":
12473
- Tj(e2);
12488
+ Oj(e2);
12474
12489
  break;
12475
12490
  case "Home":
12476
- e2.preventDefault(), bj(0);
12491
+ e2.preventDefault(), Cj(0);
12477
12492
  break;
12478
12493
  case "End":
12479
- e2.preventDefault(), Cj();
12494
+ e2.preventDefault(), Ej();
12480
12495
  break;
12481
12496
  case "Enter": {
12482
12497
  e2.preventDefault();
12483
- let t3 = $();
12498
+ let t3 = xj();
12484
12499
  if (t3) {
12485
12500
  let e3 = new Event(Z);
12486
12501
  t3.dispatchEvent(e3);
@@ -12490,13 +12505,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12490
12505
  }
12491
12506
  }, import_react.createElement("label", {
12492
12507
  "cmdk-label": "",
12493
- htmlFor: gj.inputId,
12494
- id: gj.labelId,
12508
+ htmlFor: q.inputId,
12509
+ id: q.labelId,
12495
12510
  style: Te
12496
12511
  }, d), B(e, (e2) => import_react.createElement(de.Provider, {
12497
12512
  value: K
12498
12513
  }, import_react.createElement(ue$1.Provider, {
12499
- value: gj
12514
+ value: q
12500
12515
  }, e2))));
12501
12516
  }), he$1 = import_react.forwardRef((e, t) => {
12502
12517
  var _a2;
@@ -16243,11 +16258,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16243
16258
  }, U = [
16244
16259
  n
16245
16260
  ], t[7] = n, t[8] = z, t[9] = U), (0, import_react.useEffect)(z, U);
16246
- let K = d && !y ? false : _, gj = d ? E : null, q = K ? i : a, J;
16247
- return t[10] !== gj || t[11] !== q ? (J = (0, import_jsx_runtime.jsx)("div", {
16248
- ref: gj,
16249
- children: q
16250
- }), t[10] = gj, t[11] = q, t[12] = J) : J = t[12], J;
16261
+ let K = d && !y ? false : _, q = d ? E : null, J = K ? i : a, Q;
16262
+ return t[10] !== q || t[11] !== J ? (Q = (0, import_jsx_runtime.jsx)("div", {
16263
+ ref: q,
16264
+ children: J
16265
+ }), t[10] = q, t[11] = J, t[12] = Q) : Q = t[12], Q;
16251
16266
  };
16252
16267
  var import_compiler_runtime$22 = require_compiler_runtime();
16253
16268
  const DatePopover = (e) => {
@@ -18473,7 +18488,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18473
18488
  function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
18474
18489
  let E = (0, import_react.useContext)(PanelGroupContext);
18475
18490
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
18476
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: gj, resizePanel: q, unregisterPanel: J } = E, _j = useUniqueId(s), Q = (0, import_react.useRef)({
18491
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, yj = useUniqueId(s), $ = (0, import_react.useRef)({
18477
18492
  callbacks: {
18478
18493
  onCollapse: f,
18479
18494
  onExpand: h,
@@ -18486,72 +18501,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18486
18501
  maxSize: c,
18487
18502
  minSize: d
18488
18503
  },
18489
- id: _j,
18504
+ id: yj,
18490
18505
  idIsFromProps: s !== void 0,
18491
18506
  order: v
18492
18507
  });
18493
18508
  (0, import_react.useRef)({
18494
18509
  didLogMissingDefaultSizeWarning: false
18495
18510
  }), useIsomorphicLayoutEffect$1(() => {
18496
- let { callbacks: e2, constraints: t2 } = Q.current, o2 = {
18511
+ let { callbacks: e2, constraints: t2 } = $.current, o2 = {
18497
18512
  ...t2
18498
18513
  };
18499
- Q.current.id = _j, Q.current.idIsFromProps = s !== void 0, Q.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(Q.current, o2);
18514
+ $.current.id = yj, $.current.idIsFromProps = s !== void 0, $.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K($.current, o2);
18500
18515
  }), useIsomorphicLayoutEffect$1(() => {
18501
- let e2 = Q.current;
18502
- return gj(e2), () => {
18503
- J(e2);
18516
+ let e2 = $.current;
18517
+ return q(e2), () => {
18518
+ Q(e2);
18504
18519
  };
18505
18520
  }, [
18506
18521
  v,
18507
- _j,
18508
- gj,
18509
- J
18522
+ yj,
18523
+ q,
18524
+ Q
18510
18525
  ]), (0, import_react.useImperativeHandle)(o, () => ({
18511
18526
  collapse: () => {
18512
- O(Q.current);
18527
+ O($.current);
18513
18528
  },
18514
18529
  expand: (e2) => {
18515
- A(Q.current, e2);
18530
+ A($.current, e2);
18516
18531
  },
18517
18532
  getId() {
18518
- return _j;
18533
+ return yj;
18519
18534
  },
18520
18535
  getSize() {
18521
- return M(Q.current);
18536
+ return M($.current);
18522
18537
  },
18523
18538
  isCollapsed() {
18524
- return U(Q.current);
18539
+ return U($.current);
18525
18540
  },
18526
18541
  isExpanded() {
18527
- return !U(Q.current);
18542
+ return !U($.current);
18528
18543
  },
18529
18544
  resize: (e2) => {
18530
- q(Q.current, e2);
18545
+ J($.current, e2);
18531
18546
  }
18532
18547
  }), [
18533
18548
  O,
18534
18549
  A,
18535
18550
  M,
18536
18551
  U,
18537
- _j,
18538
- q
18552
+ yj,
18553
+ J
18539
18554
  ]);
18540
- let vj = I(Q.current, a);
18555
+ let bj = I($.current, a);
18541
18556
  return (0, import_react.createElement)(S, {
18542
18557
  ...w,
18543
18558
  children: e,
18544
18559
  className: t,
18545
- id: _j,
18560
+ id: yj,
18546
18561
  style: {
18547
- ...vj,
18562
+ ...bj,
18548
18563
  ...y
18549
18564
  },
18550
18565
  [DATA_ATTRIBUTES.groupId]: z,
18551
18566
  [DATA_ATTRIBUTES.panel]: "",
18552
18567
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
18553
- [DATA_ATTRIBUTES.panelId]: _j,
18554
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + vj.flexGrow).toFixed(1)
18568
+ [DATA_ATTRIBUTES.panelId]: yj,
18569
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + bj.flexGrow).toFixed(1)
18555
18570
  });
18556
18571
  }
18557
18572
  var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -19288,7 +19303,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19288
19303
  d
19289
19304
  ]), (0, import_react.useEffect)(() => {
19290
19305
  });
19291
- let gj = (0, import_react.useCallback)((e2) => {
19306
+ let q = (0, import_react.useCallback)((e2) => {
19292
19307
  let { onLayout: t2 } = U.current, { layout: n2, panelDataArray: i2 } = K.current;
19293
19308
  if (e2.constraints.collapsible) {
19294
19309
  let a2 = i2.map((e3) => e3.constraints), { collapsedSize: o2 = 0, panelSize: s2, pivotIndices: c2 } = panelDataHelper(i2, e2, n2);
@@ -19305,7 +19320,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19305
19320
  compareLayouts(n2, d2) || (O(d2), K.current.layout = d2, t2 && t2(d2), callPanelCallbacks(i2, d2, M.current));
19306
19321
  }
19307
19322
  }
19308
- }, []), q = (0, import_react.useCallback)((e2, t2) => {
19323
+ }, []), J = (0, import_react.useCallback)((e2, t2) => {
19309
19324
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current;
19310
19325
  if (e2.constraints.collapsible) {
19311
19326
  let o2 = a2.map((e3) => e3.constraints), { collapsedSize: s2 = 0, panelSize: c2 = 0, minSize: d2 = 0, pivotIndices: f2 } = panelDataHelper(a2, e2, i2), h2 = t2 ?? d2;
@@ -19321,10 +19336,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19321
19336
  compareLayouts(i2, d3) || (O(d3), K.current.layout = d3, n2 && n2(d3), callPanelCallbacks(a2, d3, M.current));
19322
19337
  }
19323
19338
  }
19324
- }, []), J = (0, import_react.useCallback)((e2) => {
19339
+ }, []), Q = (0, import_react.useCallback)((e2) => {
19325
19340
  let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
19326
19341
  return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
19327
- }, []), _j = (0, import_react.useCallback)((e2, t2) => {
19342
+ }, []), yj = (0, import_react.useCallback)((e2, t2) => {
19328
19343
  let { panelDataArray: n2 } = K.current;
19329
19344
  return computePanelFlexBoxStyle({
19330
19345
  defaultSize: t2,
@@ -19336,13 +19351,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19336
19351
  }, [
19337
19352
  S,
19338
19353
  E
19339
- ]), Q = (0, import_react.useCallback)((e2) => {
19354
+ ]), $ = (0, import_react.useCallback)((e2) => {
19340
19355
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19341
19356
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
19342
- }, []), vj = (0, import_react.useCallback)((e2) => {
19357
+ }, []), bj = (0, import_react.useCallback)((e2) => {
19343
19358
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19344
19359
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
19345
- }, []), $ = (0, import_react.useCallback)((e2) => {
19360
+ }, []), xj = (0, import_react.useCallback)((e2) => {
19346
19361
  let { panelDataArray: t2 } = K.current;
19347
19362
  t2.push(e2), t2.sort((e3, t3) => {
19348
19363
  let n2 = e3.order, i2 = t3.order;
@@ -19374,7 +19389,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19374
19389
  e2.layout = [];
19375
19390
  };
19376
19391
  }, []);
19377
- let yj = (0, import_react.useCallback)((e2) => {
19392
+ let Sj = (0, import_react.useCallback)((e2) => {
19378
19393
  let t2 = false, n2 = y.current;
19379
19394
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
19380
19395
  n3.preventDefault();
@@ -19392,7 +19407,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19392
19407
  }), I2 = !compareLayouts(f2, A2);
19393
19408
  (isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
19394
19409
  };
19395
- }, []), bj = (0, import_react.useCallback)((e2, t2) => {
19410
+ }, []), Cj = (0, import_react.useCallback)((e2, t2) => {
19396
19411
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
19397
19412
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
19398
19413
  let d2 = adjustLayoutByDelta({
@@ -19404,12 +19419,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19404
19419
  trigger: "imperative-api"
19405
19420
  });
19406
19421
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
19407
- }, []), xj = (0, import_react.useCallback)((e2, t2) => {
19422
+ }, []), wj = (0, import_react.useCallback)((e2, t2) => {
19408
19423
  let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
19409
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || bj(e2, s2) : h2 < f2 ? bj(e2, f2) : h2 > d2 && bj(e2, d2));
19424
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || Cj(e2, s2) : h2 < f2 ? Cj(e2, f2) : h2 > d2 && Cj(e2, d2));
19410
19425
  }, [
19411
- bj
19412
- ]), Sj = (0, import_react.useCallback)((e2, t2) => {
19426
+ Cj
19427
+ ]), Tj = (0, import_react.useCallback)((e2, t2) => {
19413
19428
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
19414
19429
  if (!y.current) return;
19415
19430
  let a2 = getResizeHandleElement(e2, y.current);
@@ -19421,49 +19436,49 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19421
19436
  initialCursorPosition: o2,
19422
19437
  initialLayout: i2
19423
19438
  });
19424
- }, []), Cj = (0, import_react.useCallback)(() => {
19439
+ }, []), Ej = (0, import_react.useCallback)(() => {
19425
19440
  w(null);
19426
- }, []), wj = (0, import_react.useCallback)((e2) => {
19441
+ }, []), Dj = (0, import_react.useCallback)((e2) => {
19427
19442
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
19428
19443
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
19429
19444
  }, [
19430
19445
  A
19431
- ]), Tj = (0, import_react.useMemo)(() => ({
19432
- collapsePanel: gj,
19446
+ ]), Oj = (0, import_react.useMemo)(() => ({
19447
+ collapsePanel: q,
19433
19448
  direction: i,
19434
19449
  dragState: S,
19435
- expandPanel: q,
19436
- getPanelSize: J,
19437
- getPanelStyle: _j,
19450
+ expandPanel: J,
19451
+ getPanelSize: Q,
19452
+ getPanelStyle: yj,
19438
19453
  groupId: v,
19439
- isPanelCollapsed: Q,
19440
- isPanelExpanded: vj,
19441
- reevaluatePanelConstraints: xj,
19442
- registerPanel: $,
19443
- registerResizeHandle: yj,
19444
- resizePanel: bj,
19445
- startDragging: Sj,
19446
- stopDragging: Cj,
19447
- unregisterPanel: wj,
19454
+ isPanelCollapsed: $,
19455
+ isPanelExpanded: bj,
19456
+ reevaluatePanelConstraints: wj,
19457
+ registerPanel: xj,
19458
+ registerResizeHandle: Sj,
19459
+ resizePanel: Cj,
19460
+ startDragging: Tj,
19461
+ stopDragging: Ej,
19462
+ unregisterPanel: Dj,
19448
19463
  panelGroupElement: y.current
19449
19464
  }), [
19450
- gj,
19465
+ q,
19451
19466
  S,
19452
19467
  i,
19453
- q,
19454
19468
  J,
19455
- _j,
19456
- v,
19457
19469
  Q,
19458
- vj,
19459
- xj,
19460
- $,
19461
19470
  yj,
19471
+ v,
19472
+ $,
19462
19473
  bj,
19474
+ wj,
19475
+ xj,
19463
19476
  Sj,
19464
19477
  Cj,
19465
- wj
19466
- ]), Ej = {
19478
+ Tj,
19479
+ Ej,
19480
+ Dj
19481
+ ]), kj = {
19467
19482
  display: "flex",
19468
19483
  flexDirection: i === "horizontal" ? "row" : "column",
19469
19484
  height: "100%",
@@ -19471,7 +19486,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19471
19486
  width: "100%"
19472
19487
  };
19473
19488
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
19474
- value: Tj
19489
+ value: Oj
19475
19490
  }, (0, import_react.createElement)(h, {
19476
19491
  ..._,
19477
19492
  children: t,
@@ -19479,7 +19494,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19479
19494
  id: o,
19480
19495
  ref: y,
19481
19496
  style: {
19482
- ...Ej,
19497
+ ...kj,
19483
19498
  ...f
19484
19499
  },
19485
19500
  [DATA_ATTRIBUTES.group]: "",
@@ -19556,50 +19571,50 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19556
19571
  });
19557
19572
  let O = (0, import_react.useContext)(PanelGroupContext);
19558
19573
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
19559
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, gj = useUniqueId(a), [q, J] = (0, import_react.useState)("inactive"), [_j, Q] = (0, import_react.useState)(false), [vj, $] = (0, import_react.useState)(null), yj = (0, import_react.useRef)({
19560
- state: q
19574
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [yj, $] = (0, import_react.useState)(false), [bj, xj] = (0, import_react.useState)(null), Sj = (0, import_react.useRef)({
19575
+ state: J
19561
19576
  });
19562
19577
  useIsomorphicLayoutEffect$1(() => {
19563
- yj.current.state = q;
19578
+ Sj.current.state = J;
19564
19579
  }), (0, import_react.useEffect)(() => {
19565
- if (n) $(null);
19580
+ if (n) xj(null);
19566
19581
  else {
19567
- let e2 = I(gj);
19568
- $(() => e2);
19582
+ let e2 = I(q);
19583
+ xj(() => e2);
19569
19584
  }
19570
19585
  }, [
19571
19586
  n,
19572
- gj,
19587
+ q,
19573
19588
  I
19574
19589
  ]);
19575
- let bj = (i == null ? void 0 : i.coarse) ?? 15, xj = (i == null ? void 0 : i.fine) ?? 5;
19590
+ let Cj = (i == null ? void 0 : i.coarse) ?? 15, wj = (i == null ? void 0 : i.fine) ?? 5;
19576
19591
  (0, import_react.useEffect)(() => {
19577
- if (n || vj == null) return;
19592
+ if (n || bj == null) return;
19578
19593
  let e2 = w.current;
19579
19594
  assert(e2, "Element ref not attached");
19580
19595
  let t2 = false;
19581
- return registerResizeHandle(gj, e2, A, {
19582
- coarse: bj,
19583
- fine: xj
19596
+ return registerResizeHandle(q, e2, A, {
19597
+ coarse: Cj,
19598
+ fine: wj
19584
19599
  }, (e3, n2, i2) => {
19585
19600
  if (!n2) {
19586
- J("inactive");
19601
+ Q("inactive");
19587
19602
  return;
19588
19603
  }
19589
19604
  switch (e3) {
19590
19605
  case "down": {
19591
- J("drag"), t2 = false, assert(i2, 'Expected event to be defined for "down" action'), z(gj, i2);
19606
+ Q("drag"), t2 = false, assert(i2, 'Expected event to be defined for "down" action'), z(q, i2);
19592
19607
  let { onDragging: e4, onPointerDown: n3 } = E.current;
19593
19608
  e4 == null ? void 0 : e4(true), n3 == null ? void 0 : n3();
19594
19609
  break;
19595
19610
  }
19596
19611
  case "move": {
19597
- let { state: e4 } = yj.current;
19598
- t2 = true, e4 !== "drag" && J("hover"), assert(i2, 'Expected event to be defined for "move" action'), vj(i2);
19612
+ let { state: e4 } = Sj.current;
19613
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), bj(i2);
19599
19614
  break;
19600
19615
  }
19601
19616
  case "up": {
19602
- J("hover"), U();
19617
+ Q("hover"), U();
19603
19618
  let { onClick: e4, onDragging: n3, onPointerUp: i3 } = E.current;
19604
19619
  n3 == null ? void 0 : n3(false), i3 == null ? void 0 : i3(), t2 || (e4 == null ? void 0 : e4());
19605
19620
  break;
@@ -19607,22 +19622,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19607
19622
  }
19608
19623
  });
19609
19624
  }, [
19610
- bj,
19625
+ Cj,
19611
19626
  A,
19612
19627
  n,
19613
- xj,
19628
+ wj,
19614
19629
  I,
19615
- gj,
19616
- vj,
19630
+ q,
19631
+ bj,
19617
19632
  z,
19618
19633
  U
19619
19634
  ]), useWindowSplitterResizeHandlerBehavior({
19620
19635
  disabled: n,
19621
- handleId: gj,
19622
- resizeHandler: vj,
19636
+ handleId: q,
19637
+ resizeHandler: bj,
19623
19638
  panelGroupElement: K
19624
19639
  });
19625
- let Sj = {
19640
+ let Tj = {
19626
19641
  touchAction: "none",
19627
19642
  userSelect: "none"
19628
19643
  };
@@ -19632,25 +19647,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19632
19647
  className: t,
19633
19648
  id: a,
19634
19649
  onBlur: () => {
19635
- Q(false), o == null ? void 0 : o();
19650
+ $(false), o == null ? void 0 : o();
19636
19651
  },
19637
19652
  onFocus: () => {
19638
- Q(true), d == null ? void 0 : d();
19653
+ $(true), d == null ? void 0 : d();
19639
19654
  },
19640
19655
  ref: w,
19641
19656
  role: "separator",
19642
19657
  style: {
19643
- ...Sj,
19658
+ ...Tj,
19644
19659
  ..._
19645
19660
  },
19646
19661
  tabIndex: v,
19647
19662
  [DATA_ATTRIBUTES.groupDirection]: A,
19648
19663
  [DATA_ATTRIBUTES.groupId]: M,
19649
19664
  [DATA_ATTRIBUTES.resizeHandle]: "",
19650
- [DATA_ATTRIBUTES.resizeHandleActive]: q === "drag" ? "pointer" : _j ? "keyboard" : void 0,
19665
+ [DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : yj ? "keyboard" : void 0,
19651
19666
  [DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
19652
- [DATA_ATTRIBUTES.resizeHandleId]: gj,
19653
- [DATA_ATTRIBUTES.resizeHandleState]: q
19667
+ [DATA_ATTRIBUTES.resizeHandleId]: q,
19668
+ [DATA_ATTRIBUTES.resizeHandleState]: J
19654
19669
  });
19655
19670
  }
19656
19671
  PanelResizeHandle.displayName = "PanelResizeHandle";
@@ -21580,7 +21595,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21580
21595
  })
21581
21596
  ]
21582
21597
  }, e2.id);
21583
- }, gj = t.length <= 4, q = t.length + (gj ? 1 : 0);
21598
+ }, q = t.length <= 4, J = t.length + (q ? 1 : 0);
21584
21599
  return (0, import_jsx_runtime.jsx)(DataTableContextMenu, {
21585
21600
  tableBody: (0, import_jsx_runtime.jsx)(TableBody, {
21586
21601
  onKeyDown: w,
@@ -21589,7 +21604,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21589
21604
  var _a2, _b;
21590
21605
  if (c.length === 0) return (0, import_jsx_runtime.jsx)(TableRow, {
21591
21606
  children: (0, import_jsx_runtime.jsx)(TableCell, {
21592
- colSpan: q,
21607
+ colSpan: J,
21593
21608
  className: "h-24 text-center",
21594
21609
  children: "No results."
21595
21610
  })
@@ -21604,7 +21619,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21604
21619
  height: e2[0].start
21605
21620
  },
21606
21621
  children: (0, import_jsx_runtime.jsx)("td", {
21607
- colSpan: q
21622
+ colSpan: J
21608
21623
  })
21609
21624
  }),
21610
21625
  e2.map((e3) => K(c[e3.index])),
@@ -21614,7 +21629,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21614
21629
  height: t2 - (((_b = e2.at(-1)) == null ? void 0 : _b.end) ?? t2)
21615
21630
  },
21616
21631
  children: (0, import_jsx_runtime.jsx)("td", {
21617
- colSpan: q
21632
+ colSpan: J
21618
21633
  })
21619
21634
  })
21620
21635
  ]
@@ -22379,7 +22394,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22379
22394
  filename: i2.filename
22380
22395
  };
22381
22396
  }, t[5] = e, t[6] = v);
22382
- let w = v, E, O, A, M, I, z, U, K, gj, q, J, _j, Q;
22397
+ let w = v, E, O, A, M, I, z, U, K, q, J, Q, yj, $;
22383
22398
  if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== w) {
22384
22399
  let e2 = async (t2) => {
22385
22400
  let n2 = await w(t2, () => {
@@ -22426,10 +22441,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22426
22441
  content: "Export",
22427
22442
  open: s2,
22428
22443
  children: c2
22429
- }), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, gj = "bottom", q = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22444
+ }), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, q = "bottom", J = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22430
22445
  className: "text-xs text-muted-foreground",
22431
22446
  children: "Download"
22432
- }), t[29] = J) : J = t[29], _j = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22447
+ }), t[29] = Q) : Q = t[29], yj = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22433
22448
  onSelect: () => {
22434
22449
  e2(t2.format);
22435
22450
  },
@@ -22450,10 +22465,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22450
22465
  ]
22451
22466
  })
22452
22467
  ]
22453
- }, t2.label)), t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), A = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22468
+ }, t2.label)), t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), A = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22454
22469
  className: "text-xs text-muted-foreground",
22455
22470
  children: "Copy to clipboard"
22456
- }), t[30] = A, t[31] = Q) : (A = t[30], Q = t[31]), M = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22471
+ }), t[30] = A, t[31] = $) : (A = t[30], $ = t[31]), M = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22457
22472
  onSelect: async () => {
22458
22473
  try {
22459
22474
  await a(e3.format);
@@ -22482,30 +22497,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22482
22497
  ]
22483
22498
  })
22484
22499
  ]
22485
- }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = w, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = gj, t[20] = q, t[21] = J, t[22] = _j, t[23] = Q;
22486
- } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], gj = t[19], q = t[20], J = t[21], _j = t[22], Q = t[23];
22487
- let vj;
22488
- t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== gj || t[36] !== q || t[37] !== J || t[38] !== _j || t[39] !== Q ? (vj = (0, import_jsx_runtime.jsxs)(E, {
22489
- side: gj,
22490
- className: q,
22500
+ }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = w, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = yj, t[23] = $;
22501
+ } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21], yj = t[22], $ = t[23];
22502
+ let bj;
22503
+ t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== yj || t[39] !== $ ? (bj = (0, import_jsx_runtime.jsxs)(E, {
22504
+ side: q,
22505
+ className: J,
22491
22506
  children: [
22492
- J,
22493
- _j,
22494
22507
  Q,
22508
+ yj,
22509
+ $,
22495
22510
  A,
22496
22511
  M
22497
22512
  ]
22498
- }), t[32] = E, t[33] = A, t[34] = M, t[35] = gj, t[36] = q, t[37] = J, t[38] = _j, t[39] = Q, t[40] = vj) : vj = t[40];
22499
- let $;
22500
- return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== vj ? ($ = (0, import_jsx_runtime.jsxs)(O, {
22513
+ }), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = yj, t[39] = $, t[40] = bj) : bj = t[40];
22514
+ let xj;
22515
+ return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== bj ? (xj = (0, import_jsx_runtime.jsxs)(O, {
22501
22516
  modal: I,
22502
22517
  open: z,
22503
22518
  onOpenChange: U,
22504
22519
  children: [
22505
22520
  K,
22506
- vj
22521
+ bj
22507
22522
  ]
22508
- }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = vj, t[47] = $) : $ = t[47], $;
22523
+ }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = bj, t[47] = xj) : xj = t[47], xj;
22509
22524
  };
22510
22525
  function fetchJson(e) {
22511
22526
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -22596,22 +22611,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22596
22611
  ]
22597
22612
  }) : null;
22598
22613
  };
22599
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: gj, getRowIds: q, enableSearch: J = false, searchQuery: _j, onSearchQueryChange: Q, showFilters: vj = false, filters: $, onFiltersChange: yj, reloading: bj, freezeColumnsLeft: xj, freezeColumnsRight: Sj, toggleDisplayHeader: Cj, showChartBuilder: wj, isChartBuilderOpen: Tj, showPageSizeSelector: Ej, showTableExplorer: Dj, togglePanel: Oj, isPanelOpen: kj, isAnyPanelOpen: Aj, viewedRowIdx: jj, onViewedRowChange: Mj }) => {
22600
- let [Nj, Pj] = import_react.useState(false), { locale: Fj } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: Ij, setColumnPinning: Lj } = useColumnPinning(xj, Sj);
22614
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: yj, onSearchQueryChange: $, showFilters: bj = false, filters: xj, onFiltersChange: Sj, reloading: Cj, freezeColumnsLeft: wj, freezeColumnsRight: Tj, toggleDisplayHeader: Ej, showChartBuilder: Dj, isChartBuilderOpen: Oj, showPageSizeSelector: kj, showTableExplorer: Aj, togglePanel: jj, isPanelOpen: Mj, isAnyPanelOpen: Nj, viewedRowIdx: Pj, onViewedRowChange: Fj }) => {
22615
+ let [Ij, Lj] = import_react.useState(false), { locale: Rj } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: zj, setColumnPinning: Bj } = useColumnPinning(wj, Tj);
22601
22616
  import_react.useEffect(() => {
22602
22617
  let e2;
22603
- return bj ? e2 = setTimeout(() => {
22604
- Pj(true);
22605
- }, 300) : Pj(false), () => {
22618
+ return Cj ? e2 = setTimeout(() => {
22619
+ Lj(true);
22620
+ }, 300) : Lj(false), () => {
22606
22621
  e2 && clearTimeout(e2);
22607
22622
  };
22608
22623
  }, [
22609
- bj
22624
+ Cj
22610
22625
  ]);
22611
- function Rj(e2, t2) {
22626
+ function Vj(e2, t2) {
22612
22627
  return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
22613
22628
  }
22614
- let zj = useReactTable({
22629
+ let Hj = useReactTable({
22615
22630
  _features: [
22616
22631
  ColumnPinning,
22617
22632
  ColumnWrappingFeature,
@@ -22635,11 +22650,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22635
22650
  getRowId: (e2, t2) => {
22636
22651
  let n2 = getStableRowId(e2);
22637
22652
  if (n2) return n2;
22638
- let i2 = Rj(e2, t2);
22653
+ let i2 = Vj(e2, t2);
22639
22654
  return String(i2);
22640
22655
  }
22641
22656
  } : {},
22642
- locale: Fj,
22657
+ locale: Rj,
22643
22658
  manualPagination: z,
22644
22659
  getPaginationRowModel: getPaginationRowModel(),
22645
22660
  ...v ? {
@@ -22649,21 +22664,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22649
22664
  enableMultiSort: true,
22650
22665
  getSortedRowModel: getSortedRowModel(),
22651
22666
  manualFiltering: true,
22652
- enableColumnFilters: vj,
22667
+ enableColumnFilters: bj,
22653
22668
  getFilteredRowModel: getFilteredRowModel(),
22654
- onColumnFiltersChange: yj,
22669
+ onColumnFiltersChange: Sj,
22655
22670
  onRowSelectionChange: K,
22656
- onCellSelectionChange: gj,
22671
+ onCellSelectionChange: q,
22657
22672
  enableCellSelection: c === "single-cell" || c === "multi-cell",
22658
22673
  enableMultiCellSelection: c === "multi-cell",
22659
- onColumnPinningChange: Lj,
22674
+ onColumnPinningChange: Bj,
22660
22675
  enableFocusRow: true,
22661
- onFocusRowChange: Mj,
22676
+ onFocusRowChange: Fj,
22662
22677
  state: {
22663
22678
  ..._ ? {
22664
22679
  sorting: _
22665
22680
  } : {},
22666
- columnFilters: $,
22681
+ columnFilters: xj,
22667
22682
  ...A ? {
22668
22683
  pagination: A
22669
22684
  } : U && !A ? {} : {
@@ -22675,20 +22690,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22675
22690
  rowSelection: y ?? {},
22676
22691
  cellSelection: S ?? [],
22677
22692
  cellStyling: w,
22678
- columnPinning: Ij,
22693
+ columnPinning: zj,
22679
22694
  cellHoverTemplate: E,
22680
22695
  cellHoverTexts: O ?? {}
22681
22696
  }
22682
- }), Bj = (kj == null ? void 0 : kj(PANEL_TYPES.ROW_VIEWER)) ?? false, Vj = !U && o.length > 100, Hj = useScrollContainerHeight({
22697
+ }), Uj = (Mj == null ? void 0 : Mj(PANEL_TYPES.ROW_VIEWER)) ?? false, Wj = !U && o.length > 100, Gj = useScrollContainerHeight({
22683
22698
  maxHeight: n,
22684
- virtualize: Vj
22699
+ virtualize: Wj
22685
22700
  });
22686
22701
  return (0, import_jsx_runtime.jsxs)("div", {
22687
22702
  className: cn(e, "flex flex-col space-y-1"),
22688
22703
  children: [
22689
22704
  (0, import_jsx_runtime.jsx)(FilterPills, {
22690
- filters: $,
22691
- table: zj
22705
+ filters: xj,
22706
+ table: Hj
22692
22707
  }),
22693
22708
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
22694
22709
  children: (0, import_jsx_runtime.jsxs)("div", {
@@ -22696,33 +22711,33 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22696
22711
  className: cn(t || "rounded-md border overflow-hidden"),
22697
22712
  children: [
22698
22713
  (0, import_jsx_runtime.jsx)(TableTopBar, {
22699
- enableSearch: J,
22700
- searchQuery: _j,
22701
- onSearchQueryChange: Q,
22702
- reloading: bj,
22703
- showChartBuilder: wj,
22704
- isChartBuilderOpen: Tj,
22705
- toggleDisplayHeader: Cj,
22706
- showTableExplorer: Dj,
22707
- togglePanel: Oj,
22708
- isAnyPanelOpen: Aj,
22714
+ enableSearch: Q,
22715
+ searchQuery: yj,
22716
+ onSearchQueryChange: $,
22717
+ reloading: Cj,
22718
+ showChartBuilder: Dj,
22719
+ isChartBuilderOpen: Oj,
22720
+ toggleDisplayHeader: Ej,
22721
+ showTableExplorer: Aj,
22722
+ togglePanel: jj,
22723
+ isAnyPanelOpen: Nj,
22709
22724
  downloadAs: I
22710
22725
  }),
22711
22726
  (0, import_jsx_runtime.jsxs)(Table, {
22712
22727
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
22713
- ref: Hj,
22728
+ ref: Gj,
22714
22729
  children: [
22715
- Nj && (0, import_jsx_runtime.jsx)("thead", {
22730
+ Ij && (0, import_jsx_runtime.jsx)("thead", {
22716
22731
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
22717
22732
  }),
22718
- renderTableHeader(zj, Vj || !!n),
22733
+ renderTableHeader(Hj, Wj || !!n),
22719
22734
  (0, import_jsx_runtime.jsx)(DataTableBody, {
22720
- table: zj,
22735
+ table: Hj,
22721
22736
  columns: i,
22722
- rowViewerPanelOpen: Bj,
22723
- getRowIndex: Rj,
22724
- viewedRowIdx: jj,
22725
- virtualize: Vj
22737
+ rowViewerPanelOpen: Uj,
22738
+ getRowIndex: Vj,
22739
+ viewedRowIdx: Pj,
22740
+ virtualize: Wj
22726
22741
  })
22727
22742
  ]
22728
22743
  }),
@@ -22733,10 +22748,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22733
22748
  pagination: U,
22734
22749
  selection: c,
22735
22750
  onRowSelectionChange: K,
22736
- table: zj,
22737
- getRowIds: q,
22738
- showPageSizeSelector: Ej,
22739
- tableLoading: bj
22751
+ table: Hj,
22752
+ getRowIds: J,
22753
+ showPageSizeSelector: kj,
22754
+ tableLoading: Cj
22740
22755
  })
22741
22756
  ]
22742
22757
  })
@@ -22817,76 +22832,76 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22817
22832
  t[4] !== o || t[5] !== E ? (O = E && E.kind === "cell" && !isWasm() && !isStaticNotebook() && o !== "__scratch__", t[4] = o, t[5] = E, t[6] = O) : O = t[6];
22818
22833
  let A = O, I;
22819
22834
  t[7] !== y || t[8] !== n ? (I = n && y && !isStaticNotebook(), t[7] = y, t[8] = n, t[9] = I) : I = t[9];
22820
- let z = I, U = !isStaticNotebook(), K = (e2) => {
22835
+ let z = I, U = !isStaticNotebook(), q = (e2) => {
22821
22836
  n == null ? void 0 : n({
22822
22837
  prompt: `My code gives the following error:
22823
22838
 
22824
22839
  ${_}`,
22825
22840
  triggerImmediately: e2
22826
22841
  });
22827
- }, [gj, q] = _.split(":", 2), J = f ? KEY : "", _j;
22828
- t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_j = () => h(_temp$1), t[10] = _j) : _j = t[10];
22829
- let Q = f ? "rotate-180" : "rotate-0", vj;
22830
- t[11] === Q ? vj = t[12] : (vj = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", Q), t[11] = Q, t[12] = vj);
22831
- let $;
22832
- t[13] === vj ? $ = t[14] : ($ = (0, import_jsx_runtime.jsx)(ChevronDown, {
22833
- className: vj
22834
- }), t[13] = vj, t[14] = $);
22835
- let yj = gj || "Error", bj;
22836
- t[15] === yj ? bj = t[16] : (bj = (0, import_jsx_runtime.jsxs)("span", {
22842
+ }, [J, Q] = _.split(":", 2), yj = f ? KEY : "", $;
22843
+ t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$1), t[10] = $) : $ = t[10];
22844
+ let bj = f ? "rotate-180" : "rotate-0", xj;
22845
+ t[11] === bj ? xj = t[12] : (xj = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", bj), t[11] = bj, t[12] = xj);
22846
+ let Sj;
22847
+ t[13] === xj ? Sj = t[14] : (Sj = (0, import_jsx_runtime.jsx)(ChevronDown, {
22848
+ className: xj
22849
+ }), t[13] = xj, t[14] = Sj);
22850
+ let wj = J || "Error", Tj;
22851
+ t[15] === wj ? Tj = t[16] : (Tj = (0, import_jsx_runtime.jsxs)("span", {
22837
22852
  className: "text-destructive",
22838
22853
  children: [
22839
- yj,
22854
+ wj,
22840
22855
  ":"
22841
22856
  ]
22842
- }), t[15] = yj, t[16] = bj);
22843
- let xj;
22844
- t[17] !== q || t[18] !== bj ? (xj = (0, import_jsx_runtime.jsxs)("div", {
22857
+ }), t[15] = wj, t[16] = Tj);
22858
+ let Dj;
22859
+ t[17] !== Q || t[18] !== Tj ? (Dj = (0, import_jsx_runtime.jsxs)("div", {
22845
22860
  className: "text-sm inline font-mono",
22846
22861
  children: [
22847
- bj,
22862
+ Tj,
22848
22863
  " ",
22849
- q
22864
+ Q
22850
22865
  ]
22851
- }), t[17] = q, t[18] = bj, t[19] = xj) : xj = t[19];
22852
- let Sj;
22853
- t[20] !== xj || t[21] !== $ ? (Sj = (0, import_jsx_runtime.jsxs)("div", {
22866
+ }), t[17] = Q, t[18] = Tj, t[19] = Dj) : Dj = t[19];
22867
+ let Oj;
22868
+ t[20] !== Dj || t[21] !== Sj ? (Oj = (0, import_jsx_runtime.jsxs)("div", {
22854
22869
  className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
22855
- onClick: _j,
22870
+ onClick: $,
22856
22871
  children: [
22857
- $,
22858
- xj
22872
+ Sj,
22873
+ Dj
22859
22874
  ]
22860
- }), t[20] = xj, t[21] = $, t[22] = Sj) : Sj = t[22];
22861
- let Cj;
22862
- t[23] === c ? Cj = t[24] : (Cj = (0, import_jsx_runtime.jsx)(AccordionContent, {
22875
+ }), t[20] = Dj, t[21] = Sj, t[22] = Oj) : Oj = t[22];
22876
+ let kj;
22877
+ t[23] === c ? kj = t[24] : (kj = (0, import_jsx_runtime.jsx)(AccordionContent, {
22863
22878
  className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
22864
22879
  children: c
22865
- }), t[23] = c, t[24] = Cj);
22866
- let wj;
22867
- t[25] !== Sj || t[26] !== Cj ? (wj = (0, import_jsx_runtime.jsxs)(AccordionItem, {
22880
+ }), t[23] = c, t[24] = kj);
22881
+ let jj;
22882
+ t[25] !== Oj || t[26] !== kj ? (jj = (0, import_jsx_runtime.jsxs)(AccordionItem, {
22868
22883
  value: KEY,
22869
22884
  className: "border-none",
22870
22885
  children: [
22871
- Sj,
22872
- Cj
22886
+ Oj,
22887
+ kj
22873
22888
  ]
22874
- }), t[25] = Sj, t[26] = Cj, t[27] = wj) : wj = t[27];
22875
- let Tj;
22876
- t[28] !== wj || t[29] !== J ? (Tj = (0, import_jsx_runtime.jsx)(Accordion, {
22889
+ }), t[25] = Oj, t[26] = kj, t[27] = jj) : jj = t[27];
22890
+ let Mj;
22891
+ t[28] !== jj || t[29] !== yj ? (Mj = (0, import_jsx_runtime.jsx)(Accordion, {
22877
22892
  type: "single",
22878
22893
  collapsible: true,
22879
- value: J,
22880
- children: wj
22881
- }), t[28] = wj, t[29] = J, t[30] = Tj) : Tj = t[30];
22882
- let Ej;
22883
- t[31] !== K || t[32] !== z ? (Ej = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
22894
+ value: yj,
22895
+ children: jj
22896
+ }), t[28] = jj, t[29] = yj, t[30] = Mj) : Mj = t[30];
22897
+ let Nj;
22898
+ t[31] !== q || t[32] !== z ? (Nj = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
22884
22899
  tooltip: "Fix with AI",
22885
- openPrompt: () => K(false),
22886
- applyAutofix: () => K(true)
22887
- }), t[31] = K, t[32] = z, t[33] = Ej) : Ej = t[33];
22888
- let Oj;
22889
- t[34] !== A || t[35] !== E ? (Oj = A && (0, import_jsx_runtime.jsx)(Tooltip, {
22900
+ openPrompt: () => q(false),
22901
+ applyAutofix: () => q(true)
22902
+ }), t[31] = q, t[32] = z, t[33] = Nj) : Nj = t[33];
22903
+ let Pj;
22904
+ t[34] !== A || t[35] !== E ? (Pj = A && (0, import_jsx_runtime.jsx)(Tooltip, {
22890
22905
  content: "Attach pdb to the exception point.",
22891
22906
  children: (0, import_jsx_runtime.jsxs)(Button, {
22892
22907
  size: "xs",
@@ -22903,9 +22918,9 @@ ${_}`,
22903
22918
  "Launch debugger"
22904
22919
  ]
22905
22920
  })
22906
- }), t[34] = A, t[35] = E, t[36] = Oj) : Oj = t[36];
22907
- let Mj;
22908
- t[37] !== _ || t[38] !== i ? (Mj = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
22921
+ }), t[34] = A, t[35] = E, t[36] = Pj) : Pj = t[36];
22922
+ let Fj;
22923
+ t[37] !== _ || t[38] !== i ? (Fj = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
22909
22924
  children: [
22910
22925
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
22911
22926
  asChild: true,
@@ -22973,24 +22988,24 @@ ${_}`,
22973
22988
  ]
22974
22989
  })
22975
22990
  ]
22976
- }), t[37] = _, t[38] = i, t[39] = Mj) : Mj = t[39];
22977
- let Nj;
22978
- t[40] !== Ej || t[41] !== Oj || t[42] !== Mj ? (Nj = (0, import_jsx_runtime.jsxs)("div", {
22991
+ }), t[37] = _, t[38] = i, t[39] = Fj) : Fj = t[39];
22992
+ let Ij;
22993
+ t[40] !== Nj || t[41] !== Pj || t[42] !== Fj ? (Ij = (0, import_jsx_runtime.jsxs)("div", {
22979
22994
  className: "flex gap-2",
22980
22995
  children: [
22981
- Ej,
22982
- Oj,
22983
- Mj
22996
+ Nj,
22997
+ Pj,
22998
+ Fj
22984
22999
  ]
22985
- }), t[40] = Ej, t[41] = Oj, t[42] = Mj, t[43] = Nj) : Nj = t[43];
22986
- let Pj;
22987
- return t[44] !== Tj || t[45] !== Nj ? (Pj = (0, import_jsx_runtime.jsxs)("div", {
23000
+ }), t[40] = Nj, t[41] = Pj, t[42] = Fj, t[43] = Ij) : Ij = t[43];
23001
+ let Lj;
23002
+ return t[44] !== Mj || t[45] !== Ij ? (Lj = (0, import_jsx_runtime.jsxs)("div", {
22988
23003
  className: "flex flex-col gap-2 min-w-full w-fit",
22989
23004
  children: [
22990
- Tj,
22991
- Nj
23005
+ Mj,
23006
+ Ij
22992
23007
  ]
22993
- }), t[44] = Tj, t[45] = Nj, t[46] = Pj) : Pj = t[46], Pj;
23008
+ }), t[44] = Mj, t[45] = Ij, t[46] = Lj) : Lj = t[46], Lj;
22994
23009
  };
22995
23010
  function lastLine(e) {
22996
23011
  var _a2, _b;