@marimo-team/islands 0.23.3-dev45 → 0.23.3-dev48

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.
@@ -7473,33 +7473,33 @@ try {
7473
7473
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
7474
7474
  function y(e2) {
7475
7475
  var _a2, _b, _c, _d;
7476
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), _M = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7476
+ let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), vM = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7477
7477
  h2
7478
- ]), vM = $[t], yM = vM || $, { colorSchemes: bM = _, components: xM = v, cssVarPrefix: SM } = yM, CM = Object.keys(bM).filter((e3) => !!bM[e3]).join(","), wM = import_react.useMemo(() => CM.split(","), [
7479
- CM
7480
- ]), TM = typeof s == "string" ? s : s.light, EM = typeof s == "string" ? s : s.dark, { mode: DM, setMode: OM, systemMode: kM, lightColorScheme: AM, darkColorScheme: jM, colorScheme: MM, setColorScheme: NM } = useCurrentColorScheme({
7481
- supportedColorSchemes: wM,
7482
- defaultLightColorScheme: TM,
7483
- defaultDarkColorScheme: EM,
7478
+ ]), yM = $[t], bM = yM || $, { colorSchemes: xM = _, components: SM = v, cssVarPrefix: CM } = bM, wM = Object.keys(xM).filter((e3) => !!xM[e3]).join(","), TM = import_react.useMemo(() => wM.split(","), [
7479
+ wM
7480
+ ]), EM = typeof s == "string" ? s : s.light, DM = typeof s == "string" ? s : s.dark, { mode: OM, setMode: kM, systemMode: AM, lightColorScheme: jM, darkColorScheme: MM, colorScheme: NM, setColorScheme: PM } = useCurrentColorScheme({
7481
+ supportedColorSchemes: TM,
7482
+ defaultLightColorScheme: EM,
7483
+ defaultDarkColorScheme: DM,
7484
7484
  modeStorageKey: y2,
7485
7485
  colorSchemeStorageKey: S2,
7486
- defaultMode: bM[TM] && bM[EM] ? U : ((_b = (_a2 = bM[yM.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = yM.palette) == null ? void 0 : _c.mode),
7486
+ defaultMode: xM[EM] && xM[DM] ? U : ((_b = (_a2 = xM[bM.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = bM.palette) == null ? void 0 : _c.mode),
7487
7487
  storageManager: E,
7488
7488
  storageWindow: O,
7489
7489
  noSsr: K
7490
- }), PM = DM, FM = MM;
7491
- _M && (PM = Q.mode, FM = Q.colorScheme);
7492
- let IM = import_react.useMemo(() => {
7490
+ }), FM = OM, IM = NM;
7491
+ vM && (FM = Q.mode, IM = Q.colorScheme);
7492
+ let LM = import_react.useMemo(() => {
7493
7493
  var _a3;
7494
- let e3 = FM || yM.defaultColorScheme, t2 = ((_a3 = yM.generateThemeVars) == null ? void 0 : _a3.call(yM)) || yM.vars, n2 = {
7495
- ...yM,
7496
- components: xM,
7497
- colorSchemes: bM,
7498
- cssVarPrefix: SM,
7494
+ let e3 = IM || bM.defaultColorScheme, t2 = ((_a3 = bM.generateThemeVars) == null ? void 0 : _a3.call(bM)) || bM.vars, n2 = {
7495
+ ...bM,
7496
+ components: SM,
7497
+ colorSchemes: xM,
7498
+ cssVarPrefix: CM,
7499
7499
  vars: t2
7500
7500
  };
7501
7501
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
7502
- let t3 = bM[e3];
7502
+ let t3 = xM[e3];
7503
7503
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
7504
7504
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
7505
7505
  ...n2[e4],
@@ -7509,31 +7509,31 @@ try {
7509
7509
  }
7510
7510
  return c ? c(n2) : n2;
7511
7511
  }, [
7512
- yM,
7513
- FM,
7514
- xM,
7515
7512
  bM,
7516
- SM
7517
- ]), LM = yM.colorSchemeSelector;
7513
+ IM,
7514
+ SM,
7515
+ xM,
7516
+ CM
7517
+ ]), RM = bM.colorSchemeSelector;
7518
7518
  useEnhancedEffect_default(() => {
7519
- if (FM && M && LM && LM !== "media") {
7520
- let e3 = LM, t2 = LM;
7521
- if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...wM.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", FM));
7519
+ if (IM && M && RM && RM !== "media") {
7520
+ let e3 = RM, t2 = RM;
7521
+ if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...TM.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", IM));
7522
7522
  else {
7523
- let e4 = t2.replace("%s", FM).match(/\[([^\]]+)\]/);
7523
+ let e4 = t2.replace("%s", IM).match(/\[([^\]]+)\]/);
7524
7524
  if (e4) {
7525
7525
  let [t3, n2] = e4[1].split("=");
7526
- n2 || wM.forEach((e5) => {
7527
- M.removeAttribute(t3.replace(FM, e5));
7526
+ n2 || TM.forEach((e5) => {
7527
+ M.removeAttribute(t3.replace(IM, e5));
7528
7528
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
7529
- } else M.setAttribute(t2, FM);
7529
+ } else M.setAttribute(t2, IM);
7530
7530
  }
7531
7531
  }
7532
7532
  }, [
7533
- FM,
7534
- LM,
7533
+ IM,
7534
+ RM,
7535
7535
  M,
7536
- wM
7536
+ TM
7537
7537
  ]), import_react.useEffect(() => {
7538
7538
  let e3;
7539
7539
  if (w2 && q.current && A) {
@@ -7546,48 +7546,48 @@ try {
7546
7546
  clearTimeout(e3);
7547
7547
  };
7548
7548
  }, [
7549
- FM,
7549
+ IM,
7550
7550
  w2,
7551
7551
  A
7552
7552
  ]), import_react.useEffect(() => (q.current = true, () => {
7553
7553
  q.current = false;
7554
7554
  }), []);
7555
- let RM = import_react.useMemo(() => ({
7556
- allColorSchemes: wM,
7557
- colorScheme: FM,
7558
- darkColorScheme: jM,
7559
- lightColorScheme: AM,
7560
- mode: PM,
7561
- setColorScheme: NM,
7562
- setMode: OM,
7563
- systemMode: kM
7555
+ let zM = import_react.useMemo(() => ({
7556
+ allColorSchemes: TM,
7557
+ colorScheme: IM,
7558
+ darkColorScheme: MM,
7559
+ lightColorScheme: jM,
7560
+ mode: FM,
7561
+ setColorScheme: PM,
7562
+ setMode: kM,
7563
+ systemMode: AM
7564
7564
  }), [
7565
- wM,
7566
- FM,
7565
+ TM,
7566
+ IM,
7567
+ MM,
7567
7568
  jM,
7568
- AM,
7569
+ FM,
7569
7570
  PM,
7570
- NM,
7571
- OM,
7572
7571
  kM,
7573
- IM.colorSchemeSelector
7574
- ]), zM = true;
7575
- (z || yM.cssVariables === false || _M && (J == null ? void 0 : J.cssVarPrefix) === SM) && (zM = false);
7576
- let BM = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7572
+ AM,
7573
+ LM.colorSchemeSelector
7574
+ ]), BM = true;
7575
+ (z || bM.cssVariables === false || vM && (J == null ? void 0 : J.cssVarPrefix) === CM) && (BM = false);
7576
+ let VM = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7577
7577
  children: [
7578
7578
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
7579
- themeId: vM ? t : void 0,
7580
- theme: IM,
7579
+ themeId: yM ? t : void 0,
7580
+ theme: LM,
7581
7581
  children: d2
7582
7582
  }),
7583
- zM && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7584
- styles: ((_d = IM.generateStyleSheets) == null ? void 0 : _d.call(IM)) || []
7583
+ BM && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7584
+ styles: ((_d = LM.generateStyleSheets) == null ? void 0 : _d.call(LM)) || []
7585
7585
  })
7586
7586
  ]
7587
7587
  });
7588
- return _M ? BM : (0, import_jsx_runtime.jsx)(f.Provider, {
7589
- value: RM,
7590
- children: BM
7588
+ return vM ? VM : (0, import_jsx_runtime.jsx)(f.Provider, {
7589
+ value: zM,
7590
+ children: VM
7591
7591
  });
7592
7592
  }
7593
7593
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -9087,10 +9087,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9087
9087
  let n = useDefaultProps({
9088
9088
  props: e,
9089
9089
  name: "MuiInputBase"
9090
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: _M, onFocus: $, onKeyDown: vM, onKeyUp: yM, placeholder: bM, readOnly: xM, renderSuffix: SM, rows: CM, size: wM, slotProps: TM = {}, slots: EM = {}, startAdornment: DM, type: OM = "text", value: kM, ...AM } = n, jM = A.value == null ? kM : A.value, { current: MM } = import_react.useRef(jM != null), NM = import_react.useRef(), PM = import_react.useCallback((e2) => {
9091
- }, []), FM = useForkRef_default(NM, M, A.ref, PM), [IM, LM] = import_react.useState(false), RM = useFormControl(), zM = formControlState({
9090
+ }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: vM, onFocus: $, onKeyDown: yM, onKeyUp: bM, placeholder: xM, readOnly: SM, renderSuffix: CM, rows: wM, size: TM, slotProps: EM = {}, slots: DM = {}, startAdornment: OM, type: kM = "text", value: AM, ...jM } = n, MM = A.value == null ? AM : A.value, { current: NM } = import_react.useRef(MM != null), PM = import_react.useRef(), FM = import_react.useCallback((e2) => {
9091
+ }, []), IM = useForkRef_default(PM, M, A.ref, FM), [LM, RM] = import_react.useState(false), zM = useFormControl(), BM = formControlState({
9092
9092
  props: n,
9093
- muiFormControl: RM,
9093
+ muiFormControl: zM,
9094
9094
  states: [
9095
9095
  "color",
9096
9096
  "disabled",
@@ -9101,145 +9101,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9101
9101
  "filled"
9102
9102
  ]
9103
9103
  });
9104
- zM.focused = RM ? RM.focused : IM, import_react.useEffect(() => {
9105
- !RM && _ && IM && (LM(false), J && J());
9104
+ BM.focused = zM ? zM.focused : LM, import_react.useEffect(() => {
9105
+ !zM && _ && LM && (RM(false), J && J());
9106
9106
  }, [
9107
- RM,
9107
+ zM,
9108
9108
  _,
9109
- IM,
9109
+ LM,
9110
9110
  J
9111
9111
  ]);
9112
- let BM = RM && RM.onFilled, VM = RM && RM.onEmpty, HM = import_react.useCallback((e2) => {
9113
- isFilled(e2) ? BM && BM() : VM && VM();
9112
+ let VM = zM && zM.onFilled, HM = zM && zM.onEmpty, UM = import_react.useCallback((e2) => {
9113
+ isFilled(e2) ? VM && VM() : HM && HM();
9114
9114
  }, [
9115
- BM,
9116
- VM
9115
+ VM,
9116
+ HM
9117
9117
  ]);
9118
9118
  useEnhancedEffect_default$1(() => {
9119
- MM && HM({
9120
- value: jM
9119
+ NM && UM({
9120
+ value: MM
9121
9121
  });
9122
9122
  }, [
9123
- jM,
9124
- HM,
9125
- MM
9123
+ MM,
9124
+ UM,
9125
+ NM
9126
9126
  ]);
9127
- let UM = (e2) => {
9128
- $ && $(e2), A.onFocus && A.onFocus(e2), RM && RM.onFocus ? RM.onFocus(e2) : LM(true);
9129
- }, WM = (e2) => {
9130
- J && J(e2), A.onBlur && A.onBlur(e2), RM && RM.onBlur ? RM.onBlur(e2) : LM(false);
9131
- }, GM = (e2, ...t2) => {
9132
- if (!MM) {
9133
- let t3 = e2.target || NM.current;
9127
+ let WM = (e2) => {
9128
+ $ && $(e2), A.onFocus && A.onFocus(e2), zM && zM.onFocus ? zM.onFocus(e2) : RM(true);
9129
+ }, GM = (e2) => {
9130
+ J && J(e2), A.onBlur && A.onBlur(e2), zM && zM.onBlur ? zM.onBlur(e2) : RM(false);
9131
+ }, KM = (e2, ...t2) => {
9132
+ if (!NM) {
9133
+ let t3 = e2.target || PM.current;
9134
9134
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
9135
- HM({
9135
+ UM({
9136
9136
  value: t3.value
9137
9137
  });
9138
9138
  }
9139
9139
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
9140
9140
  };
9141
9141
  import_react.useEffect(() => {
9142
- HM(NM.current);
9142
+ UM(PM.current);
9143
9143
  }, []);
9144
- let KM = (e2) => {
9145
- NM.current && e2.currentTarget === e2.target && NM.current.focus(), _M && _M(e2);
9146
- }, qM = O, JM = A;
9147
- K && qM === "input" && (JM = CM ? {
9144
+ let qM = (e2) => {
9145
+ PM.current && e2.currentTarget === e2.target && PM.current.focus(), vM && vM(e2);
9146
+ }, JM = O, YM = A;
9147
+ K && JM === "input" && (YM = wM ? {
9148
9148
  type: void 0,
9149
- minRows: CM,
9150
- maxRows: CM,
9151
- ...JM
9149
+ minRows: wM,
9150
+ maxRows: wM,
9151
+ ...YM
9152
9152
  } : {
9153
9153
  type: void 0,
9154
9154
  maxRows: z,
9155
9155
  minRows: U,
9156
- ...JM
9157
- }, qM = TextareaAutosize_default);
9158
- let YM = (e2) => {
9159
- HM(e2.animationName === "mui-auto-fill-cancel" ? NM.current : {
9156
+ ...YM
9157
+ }, JM = TextareaAutosize_default);
9158
+ let XM = (e2) => {
9159
+ UM(e2.animationName === "mui-auto-fill-cancel" ? PM.current : {
9160
9160
  value: "x"
9161
9161
  });
9162
9162
  };
9163
9163
  import_react.useEffect(() => {
9164
- RM && RM.setAdornedStart(!!DM);
9164
+ zM && zM.setAdornedStart(!!OM);
9165
9165
  }, [
9166
- RM,
9167
- DM
9166
+ zM,
9167
+ OM
9168
9168
  ]);
9169
- let XM = {
9169
+ let ZM = {
9170
9170
  ...n,
9171
- color: zM.color || "primary",
9172
- disabled: zM.disabled,
9171
+ color: BM.color || "primary",
9172
+ disabled: BM.disabled,
9173
9173
  endAdornment: y,
9174
- error: zM.error,
9175
- focused: zM.focused,
9176
- formControl: RM,
9174
+ error: BM.error,
9175
+ focused: BM.focused,
9176
+ formControl: zM,
9177
9177
  fullWidth: w,
9178
- hiddenLabel: zM.hiddenLabel,
9178
+ hiddenLabel: BM.hiddenLabel,
9179
9179
  multiline: K,
9180
- size: zM.size,
9181
- startAdornment: DM,
9182
- type: OM
9183
- }, ZM = useUtilityClasses(XM), QM = EM.root || d.Root || InputBaseRoot, $M = TM.root || f.root || {}, eN = EM.input || d.Input || InputBaseInput;
9184
- return JM = {
9185
- ...JM,
9186
- ...TM.input ?? f.input
9180
+ size: BM.size,
9181
+ startAdornment: OM,
9182
+ type: kM
9183
+ }, QM = useUtilityClasses(ZM), $M = DM.root || d.Root || InputBaseRoot, eN = EM.root || f.root || {}, tN = DM.input || d.Input || InputBaseInput;
9184
+ return YM = {
9185
+ ...YM,
9186
+ ...EM.input ?? f.input
9187
9187
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
9188
9188
  children: [
9189
9189
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
9190
- (0, import_jsx_runtime.jsxs)(QM, {
9191
- ...$M,
9190
+ (0, import_jsx_runtime.jsxs)($M, {
9191
+ ...eN,
9192
9192
  ref: t,
9193
- onClick: KM,
9194
- ...AM,
9195
- ...!isHostComponent_default(QM) && {
9193
+ onClick: qM,
9194
+ ...jM,
9195
+ ...!isHostComponent_default($M) && {
9196
9196
  ownerState: {
9197
- ...XM,
9198
- ...$M.ownerState
9197
+ ...ZM,
9198
+ ...eN.ownerState
9199
9199
  }
9200
9200
  },
9201
- className: clsx_default(ZM.root, $M.className, s, xM && "MuiInputBase-readOnly"),
9201
+ className: clsx_default(QM.root, eN.className, s, SM && "MuiInputBase-readOnly"),
9202
9202
  children: [
9203
- DM,
9203
+ OM,
9204
9204
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
9205
9205
  value: null,
9206
- children: (0, import_jsx_runtime.jsx)(eN, {
9207
- "aria-invalid": zM.error,
9206
+ children: (0, import_jsx_runtime.jsx)(tN, {
9207
+ "aria-invalid": BM.error,
9208
9208
  "aria-describedby": i,
9209
9209
  autoComplete: a,
9210
9210
  autoFocus: o,
9211
9211
  defaultValue: h,
9212
- disabled: zM.disabled,
9212
+ disabled: BM.disabled,
9213
9213
  id: E,
9214
- onAnimationStart: YM,
9214
+ onAnimationStart: XM,
9215
9215
  name: q,
9216
- placeholder: bM,
9217
- readOnly: xM,
9218
- required: zM.required,
9219
- rows: CM,
9220
- value: jM,
9221
- onKeyDown: vM,
9222
- onKeyUp: yM,
9223
- type: OM,
9224
- ...JM,
9225
- ...!isHostComponent_default(eN) && {
9226
- as: qM,
9216
+ placeholder: xM,
9217
+ readOnly: SM,
9218
+ required: BM.required,
9219
+ rows: wM,
9220
+ value: MM,
9221
+ onKeyDown: yM,
9222
+ onKeyUp: bM,
9223
+ type: kM,
9224
+ ...YM,
9225
+ ...!isHostComponent_default(tN) && {
9226
+ as: JM,
9227
9227
  ownerState: {
9228
- ...XM,
9229
- ...JM.ownerState
9228
+ ...ZM,
9229
+ ...YM.ownerState
9230
9230
  }
9231
9231
  },
9232
- ref: FM,
9233
- className: clsx_default(ZM.input, JM.className, xM && "MuiInputBase-readOnly"),
9234
- onBlur: WM,
9235
- onChange: GM,
9236
- onFocus: UM
9232
+ ref: IM,
9233
+ className: clsx_default(QM.input, YM.className, SM && "MuiInputBase-readOnly"),
9234
+ onBlur: GM,
9235
+ onChange: KM,
9236
+ onFocus: WM
9237
9237
  })
9238
9238
  }),
9239
9239
  y,
9240
- SM ? SM({
9241
- ...zM,
9242
- startAdornment: DM
9240
+ CM ? CM({
9241
+ ...BM,
9242
+ startAdornment: OM
9243
9243
  }) : null
9244
9244
  ]
9245
9245
  })
@@ -10315,30 +10315,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10315
10315
  M,
10316
10316
  i,
10317
10317
  a
10318
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), _M = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), vM = useJsonViewerStore((e2) => e2.colorspace.base0C), yM = useJsonViewerStore((e2) => e2.colorspace.base0A), bM = useJsonViewerStore((e2) => e2.displayComma), xM = useJsonViewerStore((e2) => e2.quotesOnKeys), SM = useJsonViewerStore((e2) => e2.rootName), CM = U === t, wM = Number.isInteger(Number(A)), TM = useJsonViewerStore((e2) => e2.enableAdd), EM = useJsonViewerStore((e2) => e2.onAdd), DM = (0, import_react.useMemo)(() => !EM || a !== void 0 || TM === false || v === false ? false : typeof TM == "function" ? !!TM(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
10319
- EM,
10318
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), vM = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), yM = useJsonViewerStore((e2) => e2.colorspace.base0C), bM = useJsonViewerStore((e2) => e2.colorspace.base0A), xM = useJsonViewerStore((e2) => e2.displayComma), SM = useJsonViewerStore((e2) => e2.quotesOnKeys), CM = useJsonViewerStore((e2) => e2.rootName), wM = U === t, TM = Number.isInteger(Number(A)), EM = useJsonViewerStore((e2) => e2.enableAdd), DM = useJsonViewerStore((e2) => e2.onAdd), OM = (0, import_react.useMemo)(() => !DM || a !== void 0 || EM === false || v === false ? false : typeof EM == "function" ? !!EM(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
10319
+ DM,
10320
10320
  a,
10321
10321
  i,
10322
- TM,
10322
+ EM,
10323
10323
  v,
10324
10324
  t
10325
- ]), OM = useJsonViewerStore((e2) => e2.enableDelete), kM = useJsonViewerStore((e2) => e2.onDelete), AM = (0, import_react.useMemo)(() => !kM || a !== void 0 || CM || OM === false || v === false ? false : typeof OM == "function" ? !!OM(i, t) : OM, [
10326
- kM,
10325
+ ]), kM = useJsonViewerStore((e2) => e2.enableDelete), AM = useJsonViewerStore((e2) => e2.onDelete), jM = (0, import_react.useMemo)(() => !AM || a !== void 0 || wM || kM === false || v === false ? false : typeof kM == "function" ? !!kM(i, t) : kM, [
10326
+ AM,
10327
10327
  a,
10328
- CM,
10328
+ wM,
10329
10329
  i,
10330
- OM,
10330
+ kM,
10331
10331
  v,
10332
10332
  t
10333
- ]), jM = useJsonViewerStore((e2) => e2.enableClipboard), { copy: MM, copied: NM } = useClipboard(), PM = useJsonViewerStore((e2) => e2.highlightUpdates), FM = (0, import_react.useMemo)(() => !PM || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
10334
- PM,
10333
+ ]), MM = useJsonViewerStore((e2) => e2.enableClipboard), { copy: NM, copied: PM } = useClipboard(), FM = useJsonViewerStore((e2) => e2.highlightUpdates), IM = (0, import_react.useMemo)(() => !FM || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
10334
+ FM,
10335
10335
  n,
10336
10336
  t
10337
- ]), IM = (0, import_react.useRef)();
10337
+ ]), LM = (0, import_react.useRef)();
10338
10338
  (0, import_react.useEffect)(() => {
10339
- IM.current && FM && "animate" in IM.current && IM.current.animate([
10339
+ LM.current && IM && "animate" in LM.current && LM.current.animate([
10340
10340
  {
10341
- backgroundColor: yM
10341
+ backgroundColor: bM
10342
10342
  },
10343
10343
  {
10344
10344
  backgroundColor: ""
@@ -10348,40 +10348,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10348
10348
  easing: "ease-in"
10349
10349
  });
10350
10350
  }, [
10351
- yM,
10352
- FM,
10351
+ bM,
10352
+ IM,
10353
10353
  n,
10354
10354
  t
10355
10355
  ]);
10356
- let LM = (0, import_react.useCallback)((e2) => {
10356
+ let RM = (0, import_react.useCallback)((e2) => {
10357
10357
  e2.preventDefault(), h && E(h(t)), Q(true);
10358
10358
  }, [
10359
10359
  h,
10360
10360
  t
10361
- ]), RM = (0, import_react.useCallback)(() => {
10361
+ ]), zM = (0, import_react.useCallback)(() => {
10362
10362
  Q(false), E("");
10363
10363
  }, [
10364
10364
  Q,
10365
10365
  E
10366
- ]), zM = (0, import_react.useCallback)((e2) => {
10366
+ ]), BM = (0, import_react.useCallback)((e2) => {
10367
10367
  if (Q(false), _) try {
10368
- _M(i, t, _(e2));
10368
+ vM(i, t, _(e2));
10369
10369
  } catch {
10370
10370
  }
10371
10371
  }, [
10372
10372
  Q,
10373
10373
  _,
10374
- _M,
10374
+ vM,
10375
10375
  i,
10376
10376
  t
10377
- ]), BM = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10377
+ ]), VM = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10378
10378
  children: [
10379
10379
  (0, import_jsx_runtime.jsx)(IconBox, {
10380
10380
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
10381
10381
  sx: {
10382
10382
  fontSize: ".8rem"
10383
10383
  },
10384
- onClick: RM
10384
+ onClick: zM
10385
10385
  })
10386
10386
  }),
10387
10387
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -10389,22 +10389,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10389
10389
  sx: {
10390
10390
  fontSize: ".8rem"
10391
10391
  },
10392
- onClick: () => zM(w)
10392
+ onClick: () => BM(w)
10393
10393
  })
10394
10394
  })
10395
10395
  ]
10396
10396
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10397
10397
  children: [
10398
- jM && (0, import_jsx_runtime.jsx)(IconBox, {
10398
+ MM && (0, import_jsx_runtime.jsx)(IconBox, {
10399
10399
  onClick: (e2) => {
10400
10400
  e2.preventDefault();
10401
10401
  try {
10402
- MM(i, t, copyString);
10402
+ NM(i, t, copyString);
10403
10403
  } catch (e3) {
10404
10404
  console.error(e3);
10405
10405
  }
10406
10406
  },
10407
- children: NM ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10407
+ children: PM ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10408
10408
  sx: {
10409
10409
  fontSize: ".8rem"
10410
10410
  }
@@ -10415,16 +10415,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10415
10415
  })
10416
10416
  }),
10417
10417
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
10418
- onClick: LM,
10418
+ onClick: RM,
10419
10419
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
10420
10420
  sx: {
10421
10421
  fontSize: ".8rem"
10422
10422
  }
10423
10423
  })
10424
10424
  }),
10425
- DM && (0, import_jsx_runtime.jsx)(IconBox, {
10425
+ OM && (0, import_jsx_runtime.jsx)(IconBox, {
10426
10426
  onClick: (e2) => {
10427
- e2.preventDefault(), EM == null ? void 0 : EM(i);
10427
+ e2.preventDefault(), DM == null ? void 0 : DM(i);
10428
10428
  },
10429
10429
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
10430
10430
  sx: {
@@ -10432,9 +10432,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10432
10432
  }
10433
10433
  })
10434
10434
  }),
10435
- AM && (0, import_jsx_runtime.jsx)(IconBox, {
10435
+ jM && (0, import_jsx_runtime.jsx)(IconBox, {
10436
10436
  onClick: (e2) => {
10437
- e2.preventDefault(), kM == null ? void 0 : kM(i, t);
10437
+ e2.preventDefault(), AM == null ? void 0 : AM(i, t);
10438
10438
  },
10439
10439
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
10440
10440
  sx: {
@@ -10447,24 +10447,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10447
10447
  f,
10448
10448
  h,
10449
10449
  _,
10450
+ PM,
10450
10451
  NM,
10451
- MM,
10452
10452
  S,
10453
10453
  J,
10454
+ MM,
10455
+ OM,
10454
10456
  jM,
10455
- DM,
10456
- AM,
10457
10457
  w,
10458
10458
  i,
10459
10459
  t,
10460
- EM,
10461
- kM,
10462
- LM,
10460
+ DM,
10461
+ AM,
10463
10462
  RM,
10464
- zM
10465
- ]), VM = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10463
+ zM,
10464
+ BM
10465
+ ]), HM = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10466
10466
  t
10467
- ]), HM = !VM && !!(c && d), UM = useJsonViewerStore((e2) => e2.keyRenderer), WM = (0, import_react.useMemo)(() => ({
10467
+ ]), UM = !HM && !!(c && d), WM = useJsonViewerStore((e2) => e2.keyRenderer), GM = (0, import_react.useMemo)(() => ({
10468
10468
  path: i,
10469
10469
  inspect: K,
10470
10470
  setInspect: q,
@@ -10501,13 +10501,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10501
10501
  opacity: 0.8
10502
10502
  },
10503
10503
  onClick: (0, import_react.useCallback)((e2) => {
10504
- e2.isDefaultPrevented() || VM || q((e3) => !e3);
10504
+ e2.isDefaultPrevented() || HM || q((e3) => !e3);
10505
10505
  }, [
10506
- VM,
10506
+ HM,
10507
10507
  q
10508
10508
  ]),
10509
10509
  children: [
10510
- HM ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10510
+ UM ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10511
10511
  className: "data-key-toggle-expanded",
10512
10512
  sx: {
10513
10513
  fontSize: ".8rem",
@@ -10525,27 +10525,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10525
10525
  }
10526
10526
  }) : null,
10527
10527
  (0, import_jsx_runtime.jsx)(Box_default, {
10528
- ref: IM,
10528
+ ref: LM,
10529
10529
  className: "data-key-key",
10530
10530
  component: "span",
10531
- children: CM && O === 0 ? SM === false ? null : xM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10531
+ children: wM && O === 0 ? CM === false ? null : SM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10532
10532
  children: [
10533
10533
  '"',
10534
- SM,
10534
+ CM,
10535
10535
  '"'
10536
10536
  ]
10537
10537
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
10538
- children: SM
10539
- }) : UM.when(WM) ? (0, import_jsx_runtime.jsx)(UM, {
10540
- ...WM
10541
- }) : a === void 0 && (wM ? (0, import_jsx_runtime.jsx)(Box_default, {
10538
+ children: CM
10539
+ }) : WM.when(GM) ? (0, import_jsx_runtime.jsx)(WM, {
10540
+ ...GM
10541
+ }) : a === void 0 && (TM ? (0, import_jsx_runtime.jsx)(Box_default, {
10542
10542
  component: "span",
10543
10543
  style: {
10544
- color: vM,
10545
- userSelect: wM ? "none" : "auto"
10544
+ color: yM,
10545
+ userSelect: TM ? "none" : "auto"
10546
10546
  },
10547
10547
  children: A
10548
- }) : xM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10548
+ }) : SM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10549
10549
  children: [
10550
10550
  '"',
10551
10551
  A,
@@ -10555,7 +10555,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10555
10555
  children: A
10556
10556
  }))
10557
10557
  }),
10558
- CM ? SM !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10558
+ wM ? CM !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10559
10559
  className: "data-key-colon",
10560
10560
  sx: {
10561
10561
  mr: 0.5
@@ -10568,38 +10568,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10568
10568
  ".data-key-key:empty + &": {
10569
10569
  display: "none"
10570
10570
  },
10571
- userSelect: wM ? "none" : "auto"
10571
+ userSelect: TM ? "none" : "auto"
10572
10572
  },
10573
10573
  children: ":"
10574
10574
  }),
10575
10575
  c && (0, import_jsx_runtime.jsx)(c, {
10576
- ...WM
10576
+ ...GM
10577
10577
  }),
10578
- I && HM && K && BM
10578
+ I && UM && K && VM
10579
10579
  ]
10580
10580
  }),
10581
10581
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
10582
10582
  path: i,
10583
10583
  value: w,
10584
10584
  setValue: E,
10585
- abortEditing: RM,
10586
- commitEditing: zM
10585
+ abortEditing: zM,
10586
+ commitEditing: BM
10587
10587
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
10588
- ...WM
10588
+ ...GM
10589
10589
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
10590
10590
  component: "span",
10591
10591
  className: "data-value-fallback",
10592
10592
  children: `fallback: ${t}`
10593
10593
  }),
10594
10594
  d && (0, import_jsx_runtime.jsx)(d, {
10595
- ...WM
10595
+ ...GM
10596
10596
  }),
10597
- !o && bM && (0, import_jsx_runtime.jsx)(DataBox, {
10597
+ !o && xM && (0, import_jsx_runtime.jsx)(DataBox, {
10598
10598
  children: ","
10599
10599
  }),
10600
- I && HM && !K && BM,
10601
- I && !HM && BM,
10602
- !I && J && BM
10600
+ I && UM && !K && VM,
10601
+ I && !UM && VM,
10602
+ !I && J && VM
10603
10603
  ]
10604
10604
  });
10605
10605
  }, query = "(prefers-color-scheme: dark)";
@@ -11440,18 +11440,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11440
11440
  }
11441
11441
  let _, v, y, S, w, E;
11442
11442
  if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
11443
- let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), _M = n.filter(_temp16), $ = n.filter(_temp17), vM;
11444
- t[15] === s ? vM = t[16] : (vM = () => {
11443
+ let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), vM = n.filter(_temp16), $ = n.filter(_temp17), yM;
11444
+ t[15] === s ? yM = t[16] : (yM = () => {
11445
11445
  s.openApplication("scratchpad");
11446
- }, t[15] = s, t[16] = vM);
11447
- let yM = vM, xM = () => {
11446
+ }, t[15] = s, t[16] = yM);
11447
+ let bM = yM, SM = () => {
11448
11448
  let t2 = [];
11449
- if (Q.length > 0 || _M.length > 0) {
11449
+ if (Q.length > 0 || vM.length > 0) {
11450
11450
  let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
11451
11451
  t2.push((0, import_jsx_runtime.jsxs)("div", {
11452
11452
  children: [
11453
11453
  Q.map(_temp20),
11454
- _M.map(_temp21),
11454
+ vM.map(_temp21),
11455
11455
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
11456
11456
  size: "xs",
11457
11457
  variant: "outline",
@@ -11483,7 +11483,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11483
11483
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11484
11484
  errors: [
11485
11485
  ...Q,
11486
- ..._M
11486
+ ...vM
11487
11487
  ],
11488
11488
  cellId: i
11489
11489
  })
@@ -11644,7 +11644,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11644
11644
  size: "xs",
11645
11645
  variant: "link",
11646
11646
  className: "my-2 font-normal mx-0 px-0",
11647
- onClick: yM,
11647
+ onClick: bM,
11648
11648
  children: [
11649
11649
  (0, import_jsx_runtime.jsx)(NotebookPen, {
11650
11650
  className: "h-3"
@@ -11769,13 +11769,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11769
11769
  })
11770
11770
  ]
11771
11771
  }, "sql-errors")), t2;
11772
- }, SM = `font-code font-medium tracking-wide ${h}`, CM;
11773
- t[17] !== SM || t[18] !== c ? (CM = (0, import_jsx_runtime.jsx)(AlertTitle, {
11774
- className: SM,
11772
+ }, CM = `font-code font-medium tracking-wide ${h}`, wM;
11773
+ t[17] !== CM || t[18] !== c ? (wM = (0, import_jsx_runtime.jsx)(AlertTitle, {
11774
+ className: CM,
11775
11775
  children: c
11776
- }), t[17] = SM, t[18] = c, t[19] = CM) : CM = t[19];
11777
- let wM = CM;
11778
- _ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = wM, v = "flex flex-col gap-8", y = xM(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11776
+ }), t[17] = CM, t[18] = c, t[19] = wM) : wM = t[19];
11777
+ let TM = wM;
11778
+ _ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = TM, v = "flex flex-col gap-8", y = SM(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11779
11779
  } else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
11780
11780
  let O;
11781
11781
  t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
@@ -12664,7 +12664,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12664
12664
  }, [
12665
12665
  h
12666
12666
  ]), k(() => {
12667
- U(6, vM);
12667
+ U(6, yM);
12668
12668
  }, []);
12669
12669
  let K = import_react.useMemo(() => ({
12670
12670
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -12673,7 +12673,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12673
12673
  var _a2;
12674
12674
  var a2, o2, s2;
12675
12675
  if (!Object.is(n.current[e2], t2)) {
12676
- if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, _M);
12676
+ if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, vM);
12677
12677
  else if (e2 === "value") {
12678
12678
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
12679
12679
  let e3 = document.getElementById(I);
@@ -12681,8 +12681,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12681
12681
  }
12682
12682
  if (U(7, () => {
12683
12683
  var _a3;
12684
- n.current.selectedItemId = (_a3 = yM()) == null ? void 0 : _a3.id, K.emit();
12685
- }), i2 || U(5, vM), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12684
+ n.current.selectedItemId = (_a3 = bM()) == null ? void 0 : _a3.id, K.emit();
12685
+ }), i2 || U(5, yM), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12686
12686
  let e3 = t2 ?? "";
12687
12687
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
12688
12688
  return;
@@ -12707,12 +12707,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12707
12707
  item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
12708
12708
  e2
12709
12709
  ]))), U(3, () => {
12710
- $(), Q(), n.current.value || _M(), K.emit();
12710
+ $(), Q(), n.current.value || vM(), K.emit();
12711
12711
  }), () => {
12712
12712
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
12713
- let t3 = yM();
12713
+ let t3 = bM();
12714
12714
  U(4, () => {
12715
- $(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && _M(), K.emit();
12715
+ $(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && vM(), K.emit();
12716
12716
  });
12717
12717
  }),
12718
12718
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -12745,7 +12745,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12745
12745
  ]);
12746
12746
  });
12747
12747
  let i2 = z.current;
12748
- bM().sort((t3, n2) => {
12748
+ xM().sort((t3, n2) => {
12749
12749
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
12750
12750
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
12751
12751
  }).forEach((e3) => {
@@ -12757,9 +12757,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12757
12757
  t3 == null ? void 0 : t3.parentElement.appendChild(t3);
12758
12758
  });
12759
12759
  }
12760
- function _M() {
12760
+ function vM() {
12761
12761
  var _a2;
12762
- let e2 = (_a2 = bM().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12762
+ let e2 = (_a2 = xM().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12763
12763
  K.setState("value", e2 || void 0);
12764
12764
  }
12765
12765
  function $() {
@@ -12780,43 +12780,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12780
12780
  }
12781
12781
  n.current.filtered.count = e2;
12782
12782
  }
12783
- function vM() {
12783
+ function yM() {
12784
12784
  var _a2, _b;
12785
12785
  var e2;
12786
- let t2 = yM();
12786
+ let t2 = bM();
12787
12787
  t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
12788
12788
  block: "nearest"
12789
12789
  })), t2.scrollIntoView({
12790
12790
  block: "nearest"
12791
12791
  }));
12792
12792
  }
12793
- function yM() {
12793
+ function bM() {
12794
12794
  var _a2;
12795
12795
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
12796
12796
  }
12797
- function bM() {
12797
+ function xM() {
12798
12798
  var _a2;
12799
12799
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
12800
12800
  }
12801
- function xM(e2) {
12802
- let t2 = bM()[e2];
12801
+ function SM(e2) {
12802
+ let t2 = xM()[e2];
12803
12803
  t2 && K.setState("value", t2.getAttribute(T));
12804
12804
  }
12805
- function SM(e2) {
12805
+ function CM(e2) {
12806
12806
  var t2;
12807
- let n2 = yM(), i2 = bM(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12807
+ let n2 = bM(), i2 = xM(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12808
12808
  (t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
12809
12809
  }
12810
- function CM(e2) {
12810
+ function wM(e2) {
12811
12811
  var _a2;
12812
- let t2 = (_a2 = yM()) == null ? void 0 : _a2.closest(N$1), n2;
12812
+ let t2 = (_a2 = bM()) == null ? void 0 : _a2.closest(N$1), n2;
12813
12813
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
12814
- n2 ? K.setState("value", n2.getAttribute(T)) : SM(e2);
12814
+ n2 ? K.setState("value", n2.getAttribute(T)) : CM(e2);
12815
12815
  }
12816
- let wM = () => xM(bM().length - 1), TM = (e2) => {
12817
- e2.preventDefault(), e2.metaKey ? wM() : e2.altKey ? CM(1) : SM(1);
12818
- }, EM = (e2) => {
12819
- e2.preventDefault(), e2.metaKey ? xM(0) : e2.altKey ? CM(-1) : SM(-1);
12816
+ let TM = () => SM(xM().length - 1), EM = (e2) => {
12817
+ e2.preventDefault(), e2.metaKey ? TM() : e2.altKey ? wM(1) : CM(1);
12818
+ }, DM = (e2) => {
12819
+ e2.preventDefault(), e2.metaKey ? SM(0) : e2.altKey ? wM(-1) : CM(-1);
12820
12820
  };
12821
12821
  return import_react.createElement(Primitive.div, {
12822
12822
  ref: t,
@@ -12830,27 +12830,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12830
12830
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
12831
12831
  case "n":
12832
12832
  case "j":
12833
- E && e2.ctrlKey && TM(e2);
12833
+ E && e2.ctrlKey && EM(e2);
12834
12834
  break;
12835
12835
  case "ArrowDown":
12836
- TM(e2);
12836
+ EM(e2);
12837
12837
  break;
12838
12838
  case "p":
12839
12839
  case "k":
12840
- E && e2.ctrlKey && EM(e2);
12840
+ E && e2.ctrlKey && DM(e2);
12841
12841
  break;
12842
12842
  case "ArrowUp":
12843
- EM(e2);
12843
+ DM(e2);
12844
12844
  break;
12845
12845
  case "Home":
12846
- e2.preventDefault(), xM(0);
12846
+ e2.preventDefault(), SM(0);
12847
12847
  break;
12848
12848
  case "End":
12849
- e2.preventDefault(), wM();
12849
+ e2.preventDefault(), TM();
12850
12850
  break;
12851
12851
  case "Enter": {
12852
12852
  e2.preventDefault();
12853
- let t3 = yM();
12853
+ let t3 = bM();
12854
12854
  if (t3) {
12855
12855
  let e3 = new Event(Z);
12856
12856
  t3.dispatchEvent(e3);
@@ -18843,7 +18843,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18843
18843
  function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
18844
18844
  let E = (0, import_react.useContext)(PanelGroupContext);
18845
18845
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
18846
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, _M = useUniqueId(s), $ = (0, import_react.useRef)({
18846
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, vM = useUniqueId(s), $ = (0, import_react.useRef)({
18847
18847
  callbacks: {
18848
18848
  onCollapse: f,
18849
18849
  onExpand: h,
@@ -18856,7 +18856,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18856
18856
  maxSize: c,
18857
18857
  minSize: d
18858
18858
  },
18859
- id: _M,
18859
+ id: vM,
18860
18860
  idIsFromProps: s !== void 0,
18861
18861
  order: v
18862
18862
  });
@@ -18866,7 +18866,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18866
18866
  let { callbacks: e2, constraints: t2 } = $.current, o2 = {
18867
18867
  ...t2
18868
18868
  };
18869
- $.current.id = _M, $.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);
18869
+ $.current.id = vM, $.current.idIsFromProps = s !== void 0, $.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K($.current, o2);
18870
18870
  }), useIsomorphicLayoutEffect$1(() => {
18871
18871
  let e2 = $.current;
18872
18872
  return q(e2), () => {
@@ -18874,7 +18874,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18874
18874
  };
18875
18875
  }, [
18876
18876
  v,
18877
- _M,
18877
+ vM,
18878
18878
  q,
18879
18879
  Q
18880
18880
  ]), (0, import_react.useImperativeHandle)(o, () => ({
@@ -18885,7 +18885,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18885
18885
  A($.current, e2);
18886
18886
  },
18887
18887
  getId() {
18888
- return _M;
18888
+ return vM;
18889
18889
  },
18890
18890
  getSize() {
18891
18891
  return M($.current);
@@ -18904,24 +18904,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18904
18904
  A,
18905
18905
  M,
18906
18906
  U,
18907
- _M,
18907
+ vM,
18908
18908
  J
18909
18909
  ]);
18910
- let vM = I($.current, a);
18910
+ let yM = I($.current, a);
18911
18911
  return (0, import_react.createElement)(S, {
18912
18912
  ...w,
18913
18913
  children: e,
18914
18914
  className: t,
18915
- id: _M,
18915
+ id: vM,
18916
18916
  style: {
18917
- ...vM,
18917
+ ...yM,
18918
18918
  ...y
18919
18919
  },
18920
18920
  [DATA_ATTRIBUTES.groupId]: z,
18921
18921
  [DATA_ATTRIBUTES.panel]: "",
18922
18922
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
18923
- [DATA_ATTRIBUTES.panelId]: _M,
18924
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + vM.flexGrow).toFixed(1)
18923
+ [DATA_ATTRIBUTES.panelId]: vM,
18924
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + yM.flexGrow).toFixed(1)
18925
18925
  });
18926
18926
  }
18927
18927
  var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -19694,7 +19694,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19694
19694
  }, []), Q = (0, import_react.useCallback)((e2) => {
19695
19695
  let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
19696
19696
  return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
19697
- }, []), _M = (0, import_react.useCallback)((e2, t2) => {
19697
+ }, []), vM = (0, import_react.useCallback)((e2, t2) => {
19698
19698
  let { panelDataArray: n2 } = K.current;
19699
19699
  return computePanelFlexBoxStyle({
19700
19700
  defaultSize: t2,
@@ -19709,10 +19709,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19709
19709
  ]), $ = (0, import_react.useCallback)((e2) => {
19710
19710
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19711
19711
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
19712
- }, []), vM = (0, import_react.useCallback)((e2) => {
19712
+ }, []), yM = (0, import_react.useCallback)((e2) => {
19713
19713
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19714
19714
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
19715
- }, []), yM = (0, import_react.useCallback)((e2) => {
19715
+ }, []), bM = (0, import_react.useCallback)((e2) => {
19716
19716
  let { panelDataArray: t2 } = K.current;
19717
19717
  t2.push(e2), t2.sort((e3, t3) => {
19718
19718
  let n2 = e3.order, i2 = t3.order;
@@ -19744,7 +19744,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19744
19744
  e2.layout = [];
19745
19745
  };
19746
19746
  }, []);
19747
- let bM = (0, import_react.useCallback)((e2) => {
19747
+ let xM = (0, import_react.useCallback)((e2) => {
19748
19748
  let t2 = false, n2 = y.current;
19749
19749
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
19750
19750
  n3.preventDefault();
@@ -19762,7 +19762,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19762
19762
  }), I2 = !compareLayouts(f2, A2);
19763
19763
  (isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
19764
19764
  };
19765
- }, []), xM = (0, import_react.useCallback)((e2, t2) => {
19765
+ }, []), SM = (0, import_react.useCallback)((e2, t2) => {
19766
19766
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
19767
19767
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
19768
19768
  let d2 = adjustLayoutByDelta({
@@ -19774,12 +19774,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19774
19774
  trigger: "imperative-api"
19775
19775
  });
19776
19776
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
19777
- }, []), SM = (0, import_react.useCallback)((e2, t2) => {
19777
+ }, []), CM = (0, import_react.useCallback)((e2, t2) => {
19778
19778
  let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
19779
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || xM(e2, s2) : h2 < f2 ? xM(e2, f2) : h2 > d2 && xM(e2, d2));
19779
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || SM(e2, s2) : h2 < f2 ? SM(e2, f2) : h2 > d2 && SM(e2, d2));
19780
19780
  }, [
19781
- xM
19782
- ]), CM = (0, import_react.useCallback)((e2, t2) => {
19781
+ SM
19782
+ ]), wM = (0, import_react.useCallback)((e2, t2) => {
19783
19783
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
19784
19784
  if (!y.current) return;
19785
19785
  let a2 = getResizeHandleElement(e2, y.current);
@@ -19791,30 +19791,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19791
19791
  initialCursorPosition: o2,
19792
19792
  initialLayout: i2
19793
19793
  });
19794
- }, []), wM = (0, import_react.useCallback)(() => {
19794
+ }, []), TM = (0, import_react.useCallback)(() => {
19795
19795
  w(null);
19796
- }, []), TM = (0, import_react.useCallback)((e2) => {
19796
+ }, []), EM = (0, import_react.useCallback)((e2) => {
19797
19797
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
19798
19798
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
19799
19799
  }, [
19800
19800
  A
19801
- ]), EM = (0, import_react.useMemo)(() => ({
19801
+ ]), DM = (0, import_react.useMemo)(() => ({
19802
19802
  collapsePanel: q,
19803
19803
  direction: i,
19804
19804
  dragState: S,
19805
19805
  expandPanel: J,
19806
19806
  getPanelSize: Q,
19807
- getPanelStyle: _M,
19807
+ getPanelStyle: vM,
19808
19808
  groupId: v,
19809
19809
  isPanelCollapsed: $,
19810
- isPanelExpanded: vM,
19811
- reevaluatePanelConstraints: SM,
19812
- registerPanel: yM,
19813
- registerResizeHandle: bM,
19814
- resizePanel: xM,
19815
- startDragging: CM,
19816
- stopDragging: wM,
19817
- unregisterPanel: TM,
19810
+ isPanelExpanded: yM,
19811
+ reevaluatePanelConstraints: CM,
19812
+ registerPanel: bM,
19813
+ registerResizeHandle: xM,
19814
+ resizePanel: SM,
19815
+ startDragging: wM,
19816
+ stopDragging: TM,
19817
+ unregisterPanel: EM,
19818
19818
  panelGroupElement: y.current
19819
19819
  }), [
19820
19820
  q,
@@ -19822,18 +19822,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19822
19822
  i,
19823
19823
  J,
19824
19824
  Q,
19825
- _M,
19825
+ vM,
19826
19826
  v,
19827
19827
  $,
19828
- vM,
19829
- SM,
19830
19828
  yM,
19829
+ CM,
19831
19830
  bM,
19832
19831
  xM,
19833
- CM,
19832
+ SM,
19834
19833
  wM,
19835
- TM
19836
- ]), DM = {
19834
+ TM,
19835
+ EM
19836
+ ]), OM = {
19837
19837
  display: "flex",
19838
19838
  flexDirection: i === "horizontal" ? "row" : "column",
19839
19839
  height: "100%",
@@ -19841,7 +19841,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19841
19841
  width: "100%"
19842
19842
  };
19843
19843
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
19844
- value: EM
19844
+ value: DM
19845
19845
  }, (0, import_react.createElement)(h, {
19846
19846
  ..._,
19847
19847
  children: t,
@@ -19849,7 +19849,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19849
19849
  id: o,
19850
19850
  ref: y,
19851
19851
  style: {
19852
- ...DM,
19852
+ ...OM,
19853
19853
  ...f
19854
19854
  },
19855
19855
  [DATA_ATTRIBUTES.group]: "",
@@ -19926,31 +19926,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19926
19926
  });
19927
19927
  let O = (0, import_react.useContext)(PanelGroupContext);
19928
19928
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
19929
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [_M, $] = (0, import_react.useState)(false), [vM, yM] = (0, import_react.useState)(null), bM = (0, import_react.useRef)({
19929
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [vM, $] = (0, import_react.useState)(false), [yM, bM] = (0, import_react.useState)(null), xM = (0, import_react.useRef)({
19930
19930
  state: J
19931
19931
  });
19932
19932
  useIsomorphicLayoutEffect$1(() => {
19933
- bM.current.state = J;
19933
+ xM.current.state = J;
19934
19934
  }), (0, import_react.useEffect)(() => {
19935
- if (n) yM(null);
19935
+ if (n) bM(null);
19936
19936
  else {
19937
19937
  let e2 = I(q);
19938
- yM(() => e2);
19938
+ bM(() => e2);
19939
19939
  }
19940
19940
  }, [
19941
19941
  n,
19942
19942
  q,
19943
19943
  I
19944
19944
  ]);
19945
- let xM = (i == null ? void 0 : i.coarse) ?? 15, SM = (i == null ? void 0 : i.fine) ?? 5;
19945
+ let SM = (i == null ? void 0 : i.coarse) ?? 15, CM = (i == null ? void 0 : i.fine) ?? 5;
19946
19946
  (0, import_react.useEffect)(() => {
19947
- if (n || vM == null) return;
19947
+ if (n || yM == null) return;
19948
19948
  let e2 = w.current;
19949
19949
  assert(e2, "Element ref not attached");
19950
19950
  let t2 = false;
19951
19951
  return registerResizeHandle(q, e2, A, {
19952
- coarse: xM,
19953
- fine: SM
19952
+ coarse: SM,
19953
+ fine: CM
19954
19954
  }, (e3, n2, i2) => {
19955
19955
  if (!n2) {
19956
19956
  Q("inactive");
@@ -19964,8 +19964,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19964
19964
  break;
19965
19965
  }
19966
19966
  case "move": {
19967
- let { state: e4 } = bM.current;
19968
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), vM(i2);
19967
+ let { state: e4 } = xM.current;
19968
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), yM(i2);
19969
19969
  break;
19970
19970
  }
19971
19971
  case "up": {
@@ -19977,22 +19977,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19977
19977
  }
19978
19978
  });
19979
19979
  }, [
19980
- xM,
19980
+ SM,
19981
19981
  A,
19982
19982
  n,
19983
- SM,
19983
+ CM,
19984
19984
  I,
19985
19985
  q,
19986
- vM,
19986
+ yM,
19987
19987
  z,
19988
19988
  U
19989
19989
  ]), useWindowSplitterResizeHandlerBehavior({
19990
19990
  disabled: n,
19991
19991
  handleId: q,
19992
- resizeHandler: vM,
19992
+ resizeHandler: yM,
19993
19993
  panelGroupElement: K
19994
19994
  });
19995
- let CM = {
19995
+ let wM = {
19996
19996
  touchAction: "none",
19997
19997
  userSelect: "none"
19998
19998
  };
@@ -20010,14 +20010,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20010
20010
  ref: w,
20011
20011
  role: "separator",
20012
20012
  style: {
20013
- ...CM,
20013
+ ...wM,
20014
20014
  ..._
20015
20015
  },
20016
20016
  tabIndex: v,
20017
20017
  [DATA_ATTRIBUTES.groupDirection]: A,
20018
20018
  [DATA_ATTRIBUTES.groupId]: M,
20019
20019
  [DATA_ATTRIBUTES.resizeHandle]: "",
20020
- [DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : _M ? "keyboard" : void 0,
20020
+ [DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : vM ? "keyboard" : void 0,
20021
20021
  [DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
20022
20022
  [DATA_ATTRIBUTES.resizeHandleId]: q,
20023
20023
  [DATA_ATTRIBUTES.resizeHandleState]: J
@@ -22749,7 +22749,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22749
22749
  filename: i2.filename
22750
22750
  };
22751
22751
  }, t[5] = e, t[6] = v);
22752
- let y = v, E, O, A, M, I, z, U, K, q, J, Q, _M, $;
22752
+ let y = v, E, O, A, M, I, z, U, K, q, J, Q, vM, $;
22753
22753
  if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
22754
22754
  let e2 = async (t2) => {
22755
22755
  let n2 = await y(t2, () => {
@@ -22799,7 +22799,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22799
22799
  }), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, q = "bottom", J = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22800
22800
  className: "text-xs text-muted-foreground",
22801
22801
  children: "Download"
22802
- }), t[29] = Q) : Q = t[29], _M = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22802
+ }), t[29] = Q) : Q = t[29], vM = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22803
22803
  onSelect: () => {
22804
22804
  e2(t2.format);
22805
22805
  },
@@ -22852,30 +22852,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22852
22852
  ]
22853
22853
  })
22854
22854
  ]
22855
- }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = _M, t[23] = $;
22856
- } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21], _M = t[22], $ = t[23];
22857
- let vM;
22858
- t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== _M || t[39] !== $ ? (vM = (0, import_jsx_runtime.jsxs)(E, {
22855
+ }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = vM, t[23] = $;
22856
+ } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21], vM = t[22], $ = t[23];
22857
+ let yM;
22858
+ t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== vM || t[39] !== $ ? (yM = (0, import_jsx_runtime.jsxs)(E, {
22859
22859
  side: q,
22860
22860
  className: J,
22861
22861
  children: [
22862
22862
  Q,
22863
- _M,
22863
+ vM,
22864
22864
  $,
22865
22865
  A,
22866
22866
  M
22867
22867
  ]
22868
- }), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = _M, t[39] = $, t[40] = vM) : vM = t[40];
22869
- let yM;
22870
- return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== vM ? (yM = (0, import_jsx_runtime.jsxs)(O, {
22868
+ }), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = vM, t[39] = $, t[40] = yM) : yM = t[40];
22869
+ let bM;
22870
+ return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== yM ? (bM = (0, import_jsx_runtime.jsxs)(O, {
22871
22871
  modal: I,
22872
22872
  open: z,
22873
22873
  onOpenChange: U,
22874
22874
  children: [
22875
22875
  K,
22876
- vM
22876
+ yM
22877
22877
  ]
22878
- }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = vM, t[47] = yM) : yM = t[47], yM;
22878
+ }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = yM, t[47] = bM) : bM = t[47], bM;
22879
22879
  };
22880
22880
  function fetchJson(e) {
22881
22881
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -22966,22 +22966,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22966
22966
  ]
22967
22967
  }) : null;
22968
22968
  };
22969
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: _M, onSearchQueryChange: $, showFilters: vM = false, filters: yM, onFiltersChange: bM, reloading: xM, freezeColumnsLeft: SM, freezeColumnsRight: CM, toggleDisplayHeader: wM, showChartBuilder: TM, isChartBuilderOpen: EM, showPageSizeSelector: DM, showTableExplorer: OM, togglePanel: kM, isPanelOpen: AM, isAnyPanelOpen: jM, viewedRowIdx: MM, onViewedRowChange: NM }) => {
22970
- let [PM, FM] = import_react.useState(false), { locale: IM } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: LM, setColumnPinning: RM } = useColumnPinning(SM, CM);
22969
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: vM, onSearchQueryChange: $, showFilters: yM = false, filters: bM, onFiltersChange: xM, reloading: SM, freezeColumnsLeft: CM, freezeColumnsRight: wM, toggleDisplayHeader: TM, showChartBuilder: EM, isChartBuilderOpen: DM, showPageSizeSelector: OM, showTableExplorer: kM, togglePanel: AM, isPanelOpen: jM, isAnyPanelOpen: MM, viewedRowIdx: NM, onViewedRowChange: PM }) => {
22970
+ let [FM, IM] = import_react.useState(false), { locale: LM } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: RM, setColumnPinning: zM } = useColumnPinning(CM, wM);
22971
22971
  import_react.useEffect(() => {
22972
22972
  let e2;
22973
- return xM ? e2 = setTimeout(() => {
22974
- FM(true);
22975
- }, 300) : FM(false), () => {
22973
+ return SM ? e2 = setTimeout(() => {
22974
+ IM(true);
22975
+ }, 300) : IM(false), () => {
22976
22976
  e2 && clearTimeout(e2);
22977
22977
  };
22978
22978
  }, [
22979
- xM
22979
+ SM
22980
22980
  ]);
22981
- function zM(e2, t2) {
22981
+ function BM(e2, t2) {
22982
22982
  return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
22983
22983
  }
22984
- let BM = useReactTable({
22984
+ let VM = useReactTable({
22985
22985
  _features: [
22986
22986
  ColumnPinning,
22987
22987
  ColumnWrappingFeature,
@@ -23005,11 +23005,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23005
23005
  getRowId: (e2, t2) => {
23006
23006
  let n2 = getStableRowId(e2);
23007
23007
  if (n2) return n2;
23008
- let i2 = zM(e2, t2);
23008
+ let i2 = BM(e2, t2);
23009
23009
  return String(i2);
23010
23010
  }
23011
23011
  } : {},
23012
- locale: IM,
23012
+ locale: LM,
23013
23013
  manualPagination: z,
23014
23014
  getPaginationRowModel: getPaginationRowModel(),
23015
23015
  ...v ? {
@@ -23019,21 +23019,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23019
23019
  enableMultiSort: true,
23020
23020
  getSortedRowModel: getSortedRowModel(),
23021
23021
  manualFiltering: true,
23022
- enableColumnFilters: vM,
23022
+ enableColumnFilters: yM,
23023
23023
  getFilteredRowModel: getFilteredRowModel(),
23024
- onColumnFiltersChange: bM,
23024
+ onColumnFiltersChange: xM,
23025
23025
  onRowSelectionChange: K,
23026
23026
  onCellSelectionChange: q,
23027
23027
  enableCellSelection: c === "single-cell" || c === "multi-cell",
23028
23028
  enableMultiCellSelection: c === "multi-cell",
23029
- onColumnPinningChange: RM,
23029
+ onColumnPinningChange: zM,
23030
23030
  enableFocusRow: true,
23031
- onFocusRowChange: NM,
23031
+ onFocusRowChange: PM,
23032
23032
  state: {
23033
23033
  ..._ ? {
23034
23034
  sorting: _
23035
23035
  } : {},
23036
- columnFilters: yM,
23036
+ columnFilters: bM,
23037
23037
  ...A ? {
23038
23038
  pagination: A
23039
23039
  } : U && !A ? {} : {
@@ -23045,20 +23045,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23045
23045
  rowSelection: y ?? {},
23046
23046
  cellSelection: S ?? [],
23047
23047
  cellStyling: w,
23048
- columnPinning: LM,
23048
+ columnPinning: RM,
23049
23049
  cellHoverTemplate: E,
23050
23050
  cellHoverTexts: O ?? {}
23051
23051
  }
23052
- }), VM = (AM == null ? void 0 : AM(PANEL_TYPES.ROW_VIEWER)) ?? false, HM = !U && o.length > 100, UM = useScrollContainerHeight({
23052
+ }), HM = (jM == null ? void 0 : jM(PANEL_TYPES.ROW_VIEWER)) ?? false, UM = !U && o.length > 100, WM = useScrollContainerHeight({
23053
23053
  maxHeight: n,
23054
- virtualize: HM
23054
+ virtualize: UM
23055
23055
  });
23056
23056
  return (0, import_jsx_runtime.jsxs)("div", {
23057
23057
  className: cn(e, "flex flex-col space-y-1"),
23058
23058
  children: [
23059
23059
  (0, import_jsx_runtime.jsx)(FilterPills, {
23060
- filters: yM,
23061
- table: BM
23060
+ filters: bM,
23061
+ table: VM
23062
23062
  }),
23063
23063
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
23064
23064
  children: (0, import_jsx_runtime.jsxs)("div", {
@@ -23067,32 +23067,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23067
23067
  children: [
23068
23068
  (0, import_jsx_runtime.jsx)(TableTopBar, {
23069
23069
  enableSearch: Q,
23070
- searchQuery: _M,
23070
+ searchQuery: vM,
23071
23071
  onSearchQueryChange: $,
23072
- reloading: xM,
23073
- showChartBuilder: TM,
23074
- isChartBuilderOpen: EM,
23075
- toggleDisplayHeader: wM,
23076
- showTableExplorer: OM,
23077
- togglePanel: kM,
23078
- isAnyPanelOpen: jM,
23072
+ reloading: SM,
23073
+ showChartBuilder: EM,
23074
+ isChartBuilderOpen: DM,
23075
+ toggleDisplayHeader: TM,
23076
+ showTableExplorer: kM,
23077
+ togglePanel: AM,
23078
+ isAnyPanelOpen: MM,
23079
23079
  downloadAs: I
23080
23080
  }),
23081
23081
  (0, import_jsx_runtime.jsxs)(Table, {
23082
23082
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
23083
- ref: UM,
23083
+ ref: WM,
23084
23084
  children: [
23085
- PM && (0, import_jsx_runtime.jsx)("thead", {
23085
+ FM && (0, import_jsx_runtime.jsx)("thead", {
23086
23086
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
23087
23087
  }),
23088
- renderTableHeader(BM, HM || !!n),
23088
+ renderTableHeader(VM, UM || !!n),
23089
23089
  (0, import_jsx_runtime.jsx)(DataTableBody, {
23090
- table: BM,
23090
+ table: VM,
23091
23091
  columns: i,
23092
- rowViewerPanelOpen: VM,
23093
- getRowIndex: zM,
23094
- viewedRowIdx: MM,
23095
- virtualize: HM
23092
+ rowViewerPanelOpen: HM,
23093
+ getRowIndex: BM,
23094
+ viewedRowIdx: NM,
23095
+ virtualize: UM
23096
23096
  })
23097
23097
  ]
23098
23098
  }),
@@ -23103,10 +23103,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23103
23103
  pagination: U,
23104
23104
  selection: c,
23105
23105
  onRowSelectionChange: K,
23106
- table: BM,
23106
+ table: VM,
23107
23107
  getRowIds: J,
23108
- showPageSizeSelector: DM,
23109
- tableLoading: xM
23108
+ showPageSizeSelector: OM,
23109
+ tableLoading: SM
23110
23110
  })
23111
23111
  ]
23112
23112
  })
@@ -23194,69 +23194,69 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23194
23194
  ${_}`,
23195
23195
  triggerImmediately: e2
23196
23196
  });
23197
- }, [J, Q] = _.split(":", 2), _M = d ? KEY : "", $;
23197
+ }, [J, Q] = _.split(":", 2), vM = d ? KEY : "", $;
23198
23198
  t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$2), t[10] = $) : $ = t[10];
23199
- let vM = d ? "rotate-180" : "rotate-0", yM;
23200
- t[11] === vM ? yM = t[12] : (yM = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", vM), t[11] = vM, t[12] = yM);
23201
- let bM;
23202
- t[13] === yM ? bM = t[14] : (bM = (0, import_jsx_runtime.jsx)(ChevronDown, {
23203
- className: yM
23204
- }), t[13] = yM, t[14] = bM);
23205
- let xM = J || "Error", CM;
23206
- t[15] === xM ? CM = t[16] : (CM = (0, import_jsx_runtime.jsxs)("span", {
23199
+ let yM = d ? "rotate-180" : "rotate-0", bM;
23200
+ t[11] === yM ? bM = t[12] : (bM = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", yM), t[11] = yM, t[12] = bM);
23201
+ let xM;
23202
+ t[13] === bM ? xM = t[14] : (xM = (0, import_jsx_runtime.jsx)(ChevronDown, {
23203
+ className: bM
23204
+ }), t[13] = bM, t[14] = xM);
23205
+ let SM = J || "Error", wM;
23206
+ t[15] === SM ? wM = t[16] : (wM = (0, import_jsx_runtime.jsxs)("span", {
23207
23207
  className: "text-destructive",
23208
23208
  children: [
23209
- xM,
23209
+ SM,
23210
23210
  ":"
23211
23211
  ]
23212
- }), t[15] = xM, t[16] = CM);
23213
- let wM;
23214
- t[17] !== Q || t[18] !== CM ? (wM = (0, import_jsx_runtime.jsxs)("div", {
23212
+ }), t[15] = SM, t[16] = wM);
23213
+ let TM;
23214
+ t[17] !== Q || t[18] !== wM ? (TM = (0, import_jsx_runtime.jsxs)("div", {
23215
23215
  className: "text-sm inline font-mono",
23216
23216
  children: [
23217
- CM,
23217
+ wM,
23218
23218
  " ",
23219
23219
  Q
23220
23220
  ]
23221
- }), t[17] = Q, t[18] = CM, t[19] = wM) : wM = t[19];
23222
- let EM;
23223
- t[20] !== wM || t[21] !== bM ? (EM = (0, import_jsx_runtime.jsxs)("div", {
23221
+ }), t[17] = Q, t[18] = wM, t[19] = TM) : TM = t[19];
23222
+ let DM;
23223
+ t[20] !== TM || t[21] !== xM ? (DM = (0, import_jsx_runtime.jsxs)("div", {
23224
23224
  className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
23225
23225
  onClick: $,
23226
23226
  children: [
23227
- bM,
23228
- wM
23227
+ xM,
23228
+ TM
23229
23229
  ]
23230
- }), t[20] = wM, t[21] = bM, t[22] = EM) : EM = t[22];
23231
- let DM;
23232
- t[23] === c ? DM = t[24] : (DM = (0, import_jsx_runtime.jsx)(AccordionContent, {
23230
+ }), t[20] = TM, t[21] = xM, t[22] = DM) : DM = t[22];
23231
+ let OM;
23232
+ t[23] === c ? OM = t[24] : (OM = (0, import_jsx_runtime.jsx)(AccordionContent, {
23233
23233
  className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
23234
23234
  children: c
23235
- }), t[23] = c, t[24] = DM);
23236
- let OM;
23237
- t[25] !== EM || t[26] !== DM ? (OM = (0, import_jsx_runtime.jsxs)(AccordionItem, {
23235
+ }), t[23] = c, t[24] = OM);
23236
+ let kM;
23237
+ t[25] !== DM || t[26] !== OM ? (kM = (0, import_jsx_runtime.jsxs)(AccordionItem, {
23238
23238
  value: KEY,
23239
23239
  className: "border-none",
23240
23240
  children: [
23241
- EM,
23242
- DM
23241
+ DM,
23242
+ OM
23243
23243
  ]
23244
- }), t[25] = EM, t[26] = DM, t[27] = OM) : OM = t[27];
23245
- let AM;
23246
- t[28] !== OM || t[29] !== _M ? (AM = (0, import_jsx_runtime.jsx)(Accordion, {
23244
+ }), t[25] = DM, t[26] = OM, t[27] = kM) : kM = t[27];
23245
+ let jM;
23246
+ t[28] !== kM || t[29] !== vM ? (jM = (0, import_jsx_runtime.jsx)(Accordion, {
23247
23247
  type: "single",
23248
23248
  collapsible: true,
23249
- value: _M,
23250
- children: OM
23251
- }), t[28] = OM, t[29] = _M, t[30] = AM) : AM = t[30];
23252
- let jM;
23253
- t[31] !== K || t[32] !== z ? (jM = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
23249
+ value: vM,
23250
+ children: kM
23251
+ }), t[28] = kM, t[29] = vM, t[30] = jM) : jM = t[30];
23252
+ let MM;
23253
+ t[31] !== K || t[32] !== z ? (MM = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
23254
23254
  tooltip: "Fix with AI",
23255
23255
  openPrompt: () => K(false),
23256
23256
  applyAutofix: () => K(true)
23257
- }), t[31] = K, t[32] = z, t[33] = jM) : jM = t[33];
23258
- let MM;
23259
- t[34] !== A || t[35] !== E ? (MM = A && (0, import_jsx_runtime.jsx)(Tooltip, {
23257
+ }), t[31] = K, t[32] = z, t[33] = MM) : MM = t[33];
23258
+ let NM;
23259
+ t[34] !== A || t[35] !== E ? (NM = A && (0, import_jsx_runtime.jsx)(Tooltip, {
23260
23260
  content: "Attach pdb to the exception point.",
23261
23261
  children: (0, import_jsx_runtime.jsxs)(Button, {
23262
23262
  size: "xs",
@@ -23273,9 +23273,9 @@ ${_}`,
23273
23273
  "Launch debugger"
23274
23274
  ]
23275
23275
  })
23276
- }), t[34] = A, t[35] = E, t[36] = MM) : MM = t[36];
23277
- let NM;
23278
- t[37] !== _ || t[38] !== i ? (NM = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
23276
+ }), t[34] = A, t[35] = E, t[36] = NM) : NM = t[36];
23277
+ let PM;
23278
+ t[37] !== _ || t[38] !== i ? (PM = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
23279
23279
  children: [
23280
23280
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
23281
23281
  asChild: true,
@@ -23343,24 +23343,24 @@ ${_}`,
23343
23343
  ]
23344
23344
  })
23345
23345
  ]
23346
- }), t[37] = _, t[38] = i, t[39] = NM) : NM = t[39];
23347
- let PM;
23348
- t[40] !== jM || t[41] !== MM || t[42] !== NM ? (PM = (0, import_jsx_runtime.jsxs)("div", {
23346
+ }), t[37] = _, t[38] = i, t[39] = PM) : PM = t[39];
23347
+ let FM;
23348
+ t[40] !== MM || t[41] !== NM || t[42] !== PM ? (FM = (0, import_jsx_runtime.jsxs)("div", {
23349
23349
  className: "flex gap-2",
23350
23350
  children: [
23351
- jM,
23352
23351
  MM,
23353
- NM
23352
+ NM,
23353
+ PM
23354
23354
  ]
23355
- }), t[40] = jM, t[41] = MM, t[42] = NM, t[43] = PM) : PM = t[43];
23356
- let FM;
23357
- return t[44] !== AM || t[45] !== PM ? (FM = (0, import_jsx_runtime.jsxs)("div", {
23355
+ }), t[40] = MM, t[41] = NM, t[42] = PM, t[43] = FM) : FM = t[43];
23356
+ let IM;
23357
+ return t[44] !== jM || t[45] !== FM ? (IM = (0, import_jsx_runtime.jsxs)("div", {
23358
23358
  className: "flex flex-col gap-2 min-w-full w-fit",
23359
23359
  children: [
23360
- AM,
23361
- PM
23360
+ jM,
23361
+ FM
23362
23362
  ]
23363
- }), t[44] = AM, t[45] = PM, t[46] = FM) : FM = t[46], FM;
23363
+ }), t[44] = jM, t[45] = FM, t[46] = IM) : IM = t[46], IM;
23364
23364
  };
23365
23365
  function lastLine(e) {
23366
23366
  var _a2, _b;
@@ -24178,21 +24178,23 @@ ${_}`,
24178
24178
  });
24179
24179
  }
24180
24180
  var KEY_ENCODED_PREFIX = "text/plain+";
24181
+ function formatCollectionItems(e) {
24182
+ return e.map((e2) => typeof e2 == "number" && !Number.isFinite(e2) ? Number.isNaN(e2) ? "float('nan')" : e2 > 0 ? "float('inf')" : "-float('inf')" : JSON.stringify(e2)).join(", ");
24183
+ }
24181
24184
  function formatTuplePayload(e) {
24182
- let t = JSON.parse(e), n = t.map((e2) => JSON.stringify(e2)).join(", ");
24183
- return t.length === 0 ? "()" : t.length === 1 ? `(${n},)` : `(${n})`;
24185
+ let t = jsonParseWithSpecialChar(e);
24186
+ if (!Array.isArray(t)) return e;
24187
+ if (t.length === 0) return "()";
24188
+ let n = formatCollectionItems(t);
24189
+ return t.length === 1 ? `(${n},)` : `(${n})`;
24184
24190
  }
24185
24191
  function formatFrozensetPayload(e) {
24186
- let t = JSON.parse(e);
24187
- return t.length === 0 ? "frozenset()" : `frozenset({${t.map((e2) => JSON.stringify(e2)).join(", ")}})`;
24192
+ let t = jsonParseWithSpecialChar(e);
24193
+ return Array.isArray(t) ? t.length === 0 ? "frozenset()" : `frozenset({${formatCollectionItems(t)}})` : e;
24188
24194
  }
24189
24195
  function formatSetPayload(e) {
24190
- try {
24191
- let t = JSON.parse(e);
24192
- return t.length === 0 ? "set()" : `{${t.map((e2) => JSON.stringify(e2)).join(", ")}}`;
24193
- } catch {
24194
- return e;
24195
- }
24196
+ let t = jsonParseWithSpecialChar(e);
24197
+ return Array.isArray(t) ? t.length === 0 ? "set()" : `{${formatCollectionItems(t)}}` : e;
24196
24198
  }
24197
24199
  var KEY_DECODERS = {
24198
24200
  "text/plain+int:": (e) => (0, import_jsx_runtime.jsx)("span", {