@sheetxl/studio-mui 0.3.19 → 0.3.21

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.
Files changed (85) hide show
  1. package/browser/cjs/{5EMNCalBy5T7Qv40.cjs → AotHdG8h5LY_X1zZ.cjs} +1 -1
  2. package/browser/cjs/{ByHotNG2i_czKEr8.cjs → B8WivZj-0U-VUpNl.cjs} +2 -2
  3. package/browser/cjs/{DkMBDN---q9jUa8V.cjs → BFG00BsPTMub0JFb.cjs} +2 -2
  4. package/browser/cjs/BYTmxIEiN7DW-q2n.cjs +12 -0
  5. package/browser/cjs/{CTlLfk6a9CkzbQNt.cjs → BcO7cIAU8lpEPCmQ.cjs} +4 -4
  6. package/browser/cjs/BzBz4q3fJRNagKUP.cjs +6 -0
  7. package/browser/cjs/{B98cTi8NhLFwk-0Q.cjs → BzfWGX84DCmwVFEI.cjs} +2 -2
  8. package/browser/cjs/CaSBw_kEWIgMLG-H.cjs +6 -0
  9. package/browser/cjs/{CUn6t8lfcG9cPH1h.cjs → CqKS-hoXra5susgw.cjs} +2 -2
  10. package/browser/cjs/{CF_a0DpvEBsJCpgQ.cjs → CtWBjHInShmozgj2.cjs} +2 -2
  11. package/browser/cjs/{DggumD9iQqyO3FFa.cjs → Cz0jmLNXsYpX1zrL.cjs} +2 -2
  12. package/browser/cjs/{B-i9az2r-j4BoodW.cjs → DAvPZ26oO8rRxQh0.cjs} +1 -1
  13. package/browser/cjs/{BsJ8nFqSJFJDsuan.cjs → DEnzdKFnndrfHL7v.cjs} +2 -2
  14. package/browser/cjs/{BvCYlgtHsPgA_aNK.cjs → DGwLTp_EVYZpmylI.cjs} +2 -2
  15. package/browser/cjs/{CLJkEcejZPl006p2.cjs → DHvp6J8krK7bK2rd.cjs} +28 -28
  16. package/browser/cjs/{COX8k8pyTOk8BoD-.cjs → DLhuoKtYVzBoUbmR.cjs} +1 -1
  17. package/browser/cjs/{D6E9xEe6tjbfqtEm.cjs → DLkUEk5MewpCLN_p.cjs} +2 -2
  18. package/browser/cjs/{_dSiOxKU18SdUtnS.cjs → DUcsAiqjPTDoGPRN.cjs} +1 -1
  19. package/browser/cjs/{Bg1sVEitsy9Ktlo9.cjs → DVMUMbx0awg0jZvp.cjs} +1 -1
  20. package/browser/cjs/{DW0q0AyrJofzss0y.cjs → FADJRME9QoGcSaQ3.cjs} +3 -3
  21. package/browser/cjs/{-Z_xfLHIzayq6e-C.cjs → Njzo0yDCLbxIwmrO.cjs} +2 -2
  22. package/browser/cjs/{C-oc8im_PZRCQOvZ.cjs → PcZrGiCcha_5t3lq.cjs} +1 -1
  23. package/browser/cjs/{CRV08682FzN5ew39.cjs → R-XOXK1tQUhfQPsu.cjs} +3 -3
  24. package/browser/cjs/index.cjs +2 -2
  25. package/browser/cjs/{BFe0zJbC0Wy4fqLf.cjs → poAv1CXYoRasoaE7.cjs} +1 -1
  26. package/browser/cjs/{oyaxmxAEZ4VTVk_8.cjs → v6rn0Tuh07ZQbPDd.cjs} +1 -1
  27. package/browser/esm/{BVzvMC6p5FNP8qK9.mjs → 6_sRju4K-NKiM5ca.mjs} +2 -2
  28. package/browser/esm/{Dsvtw0sJ8FRtGm5n.mjs → B5xN2hRZx1ESWQQr.mjs} +4 -4
  29. package/browser/esm/BWcV52NIuFc09ZMU.mjs +84 -0
  30. package/browser/esm/{zHTatrVtfVuPg1ii.mjs → Bj10sTfVu6lGDFdk.mjs} +4 -4
  31. package/browser/esm/{8JD53VBt79P-aa-S.mjs → C1gLpIX61vaGrOO1.mjs} +3 -3
  32. package/browser/esm/{BKhb4mVxGfN4CIjS.mjs → C8GOnWUHBPCk6pzN.mjs} +1 -1
  33. package/browser/esm/{CLRvr3EDwZwQGFld.mjs → C8wzMRAmJltGTr8t.mjs} +2 -2
  34. package/browser/esm/{Dkqkg5OonmopX_av.mjs → C9h77ckg-g9_Smhh.mjs} +2 -2
  35. package/browser/esm/{BbMrsjIGEkoLGak0.mjs → CCRPU5BPxwwbUsPJ.mjs} +2 -2
  36. package/browser/esm/{C7UEqLxvuNIEbzcl.mjs → CHBF4qBO9s4_6N6e.mjs} +2 -2
  37. package/browser/esm/{WKwjqHXBabDyAtuT.mjs → CSDhAj1_MCZ_0f8a.mjs} +1 -1
  38. package/browser/esm/{DsLBuFS0K1zRuAH4.mjs → CZHwRNMFtuOcxy3e.mjs} +1 -1
  39. package/browser/esm/{B97bNoiD5vSlwEfq.mjs → CcAYH8oOfA1DKm0V.mjs} +2 -2
  40. package/browser/esm/{BB_9iof-6U8Cb15P.mjs → CnjyKbrcllttonp4.mjs} +7 -7
  41. package/browser/esm/{CJPeBWCN11PDgfKC.mjs → CtrJpHZ64drgG60l.mjs} +1 -1
  42. package/browser/esm/{Bi-5-fOHXnnsSVMH.mjs → D3BuQogO8ThjEmP8.mjs} +1 -1
  43. package/browser/esm/{BHegaWai1nWBR-L9.mjs → DCXMnpTO38nAjARr.mjs} +1 -1
  44. package/browser/esm/DF3XnOqbVr24E49D.mjs +43 -0
  45. package/browser/esm/{CocO3lRUMqgv4AFJ.mjs → DHhvEfxfANVS8d0C.mjs} +1 -1
  46. package/browser/esm/{DNMEKvZSHupr35RK.mjs → D_LnxacKWa-IsgtZ.mjs} +4 -4
  47. package/browser/esm/{CUrgSndSnDCQKu6U.mjs → TIBHk_quiR5wXLJE.mjs} +2 -2
  48. package/browser/esm/index.mjs +2 -2
  49. package/browser/esm/{g4yV8ILPtVwy8tG5.mjs → ioGItqJQP3jeZKpu.mjs} +471 -466
  50. package/browser/esm/{w-PhBfcFM6AZzwmU.mjs → lN4yxY-ZpLcDFSmg.mjs} +2 -2
  51. package/browser/esm/{CTgZnJeqPNm0IneY.mjs → lbCnK3_fHMo5KB6f.mjs} +1 -1
  52. package/browser/esm/{C4vC41vzQpD-qyMn.mjs → nNrDuEQ3OAYy9DK0.mjs} +2 -2
  53. package/licenses/dependencies.txt +8 -8
  54. package/node/esm/{Cnz7_lvzqMqQs08b.mjs → 62T_CHjj6JWPaN40.mjs} +1 -1
  55. package/node/esm/{DbrD7HDgNfqUmzdP.mjs → 71IUJ3VoYQU5Nxpq.mjs} +1 -1
  56. package/node/esm/{lx40ksuj0iGDMKDe.mjs → B89QYM4aDEYtxPBv.mjs} +1 -1
  57. package/node/esm/{C06YIVEYQuR5Vaft.mjs → BEBkAOPOudbaHYuL.mjs} +1 -1
  58. package/node/esm/{BB6SV3cXsfTqodbb.mjs → BFnlaijeUNL5nNbL.mjs} +1 -1
  59. package/node/esm/{Ck6HJccOiajom0p5.mjs → BOr1N9XT8AusJt-W.mjs} +1 -1
  60. package/node/esm/{D2h4VPChcK5U-a0T.mjs → Bqz9cCXIPuC4yQoV.mjs} +2 -2
  61. package/node/esm/{D7jQWNfNldioygd-.mjs → Bt5eU0fX5Z8fnwRE.mjs} +1 -1
  62. package/node/esm/{uHvMtxBHa3ohbrOl.mjs → C7apky7bjgzNv38W.mjs} +1 -1
  63. package/node/esm/{Bp-CJA_tLpQ7pT29.mjs → C8hPBuU4-P31jB6y.mjs} +1 -1
  64. package/node/esm/CaWE8-SQb9-3J2NY.mjs +78 -0
  65. package/node/esm/{DoRbSUaOrfZffDc4.mjs → CatqJspkVTbv9hu1.mjs} +3 -3
  66. package/node/esm/{RfwcTEhVvbPAxFAu.mjs → Cj0b2sxb0wCKqTkZ.mjs} +1 -1
  67. package/node/esm/{tcog-VptibIIj9kW.mjs → CmcFBGPPl9UuR8vk.mjs} +1 -1
  68. package/node/esm/{bozut2iu1gZ26NCH.mjs → CpW7c0X7o4CrXmTU.mjs} +1 -1
  69. package/node/esm/{CCl1udn2B2Ht6C3g.mjs → CtmKDurKzsWSjbK8.mjs} +2 -2
  70. package/node/esm/{DX4vRmhbc53oBNeg.mjs → DAqBdmYBjuduBun8.mjs} +1 -1
  71. package/node/esm/{Xa5E_4nSt8LVXkNA.mjs → DeVpG32fkeJxmzVY.mjs} +1 -1
  72. package/node/esm/{Ya3wztkbwM47CwJy.mjs → DsR18mJb5sVH1hJC.mjs} +6 -6
  73. package/node/esm/{D1cFV6R_lGB3yi1w.mjs → DzyfOKP-rOMyppTD.mjs} +1 -1
  74. package/node/esm/{DTiWaGbGjtZCRAj0.mjs → LrOgQ9rHXyVnItvI.mjs} +1 -1
  75. package/node/esm/{acSFCnnB-d3FV6qe.mjs → YIld1up7UdhAVhVg.mjs} +4 -4
  76. package/node/esm/{DHqKiBp0YDn-rVWv.mjs → YVaLR3IViyMOFpQM.mjs} +1 -1
  77. package/node/esm/index.mjs +27 -23
  78. package/package.json +8 -8
  79. package/types/index.d.ts +50 -45
  80. package/browser/cjs/C-ElWpjJiAYCYYvU.cjs +0 -6
  81. package/browser/cjs/C645WCVpMGicXgBM.cjs +0 -12
  82. package/browser/cjs/D92iJHsZJX_wZ52_.cjs +0 -6
  83. package/browser/esm/DLTm93l6QUeTWBtR.mjs +0 -43
  84. package/browser/esm/Dkm4CH9HTgLMuj1z.mjs +0 -80
  85. package/node/esm/CvIwaInnb5xT75rt.mjs +0 -74
@@ -10,7 +10,7 @@ import { alpha as Lt, darken as Ng, lighten as Vg, useTheme as oh, unstable_crea
10
10
  import $g, { internal_mutateStyles as jg, internal_serializeStyles as Oi, ThemeContext as Wg } from "@mui/styled-engine";
11
11
  import { deepmerge as lh } from "@mui/utils";
12
12
  /**
13
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
13
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.21
14
14
  *
15
15
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
16
16
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -901,11 +901,11 @@ const Vi = Ch && window.ResizeObserver !== void 0 ? function() {
901
901
  }, [M, E]);
902
902
  const P = Y((N, j = !1) => {
903
903
  if (!b.current) return 0;
904
- const q = b.current.querySelector(".scrollbar-viewport"), te = q.getBoundingClientRect(), X = q.children, ne = j ? 0 : i2(N, te[_], X, !0, Math.max(0, N - p));
904
+ const U = b.current.querySelector(".scrollbar-viewport"), te = U.getBoundingClientRect(), X = U.children, ne = j ? 0 : i2(N, te[_], X, !0, Math.max(0, N - p));
905
905
  return R(ne), Math.max(0, ne);
906
906
  }, []), L = Y((N, j = !1) => {
907
907
  if (!b.current) return 0;
908
- const q = b.current.querySelector(".scrollbar-viewport"), te = q.getBoundingClientRect(), X = q.children, ne = Math.ceil(I - x), ce = j ? ne : i2(N, te[_], X, !1, Math.max(0, N + p));
908
+ const U = b.current.querySelector(".scrollbar-viewport"), te = U.getBoundingClientRect(), X = U.children, ne = Math.ceil(I - x), ce = j ? ne : i2(N, te[_], X, !1, Math.max(0, N + p));
909
909
  return R(ce), Math.min(ne, ce);
910
910
  }, [I, x]), A = oe(null), F = Y((N) => {
911
911
  A.current = n;
@@ -918,10 +918,10 @@ const Vi = Ch && window.ResizeObserver !== void 0 ? function() {
918
918
  }, [n, v]);
919
919
  const H = oe(null), O = oe(null), $ = Y(() => {
920
920
  H.current && (clearTimeout(H.current), H.current = null, O.current = null);
921
- }, []), Z = Y((N, j, q, te = u) => {
921
+ }, []), Z = Y((N, j, U, te = u) => {
922
922
  O.current = N, H.current = setTimeout(() => {
923
- const X = q ? P(O.current || N) : L(O.current || N);
924
- X !== O.current ? Z(X, !1, q, f) : $();
923
+ const X = U ? P(O.current || N) : L(O.current || N);
924
+ X !== O.current ? Z(X, !1, U, f) : $();
925
925
  }, j ? 0 : te);
926
926
  }, [P, L, $]);
927
927
  ye(() => () => $(), [$]);
@@ -1362,7 +1362,7 @@ const Fy = _e(Ve((e, t) => {
1362
1362
  ut = (yi(Ce.maxAfter, Pe, !1) ?? Le) - Le, Je = yi(Ce.minAfter, Pe, !1) ?? Pe, yt = Math.max(et, ut), rt = Math.min(Ct, Je), Me = Math.max(yt, Math.min(Me, rt)), Je = Math.min(Fe - Me, yi(Ce.maxAfter, Fe - Me, !0) ?? Fe), ut = Math.min(Fe - Me, yi(Ce.minAfter, Fe - Me, !0) ?? Fe), He[0] = Me, He[1] = Fe - He[0];
1363
1363
  const at = Math.max(0, Math.min(100, Me / Fe * 100));
1364
1364
  return le[0] = at, le[1] = 100 - le[0], { percents: le, pixels: He, minBefore: `${et}px`, minAfter: `${ut}px`, maxBefore: `${He[0]}px`, maxAfter: `${He[1]}px` };
1365
- })(v, H, F, E), [E, v, H, F, r]), [$, Z] = J(!1), ee = me(y, [y]), V = me(w, [w]), B = me(b, [b]), N = oe(null), j = oe(null), q = oe(null), { style: te, className: X, ...ne } = C, ce = { minWidth: 0, minHeight: 0, maxWidth: "100%", maxHeight: "100%", display: "flex", overflow: "hidden", ...te }, { className: ie, style: Q, ...fe } = k, { className: De, style: Ne, ...re } = D, pe = { flex: "1 1 100%", width: "100%", ...m, flexDirection: r, display: "flex" }, { className: Se, style: qe, onPointerDown: Ye, ..._t } = S, Rt = me((se) => {
1365
+ })(v, H, F, E), [E, v, H, F, r]), [$, Z] = J(!1), ee = me(y, [y]), V = me(w, [w]), B = me(b, [b]), N = oe(null), j = oe(null), U = oe(null), { style: te, className: X, ...ne } = C, ce = { minWidth: 0, minHeight: 0, maxWidth: "100%", maxHeight: "100%", display: "flex", overflow: "hidden", ...te }, { className: ie, style: Q, ...fe } = k, { className: De, style: Ne, ...re } = D, pe = { flex: "1 1 100%", width: "100%", ...m, flexDirection: r, display: "flex" }, { className: Se, style: qe, onPointerDown: Ye, ..._t } = S, Rt = me((se) => {
1366
1366
  const Pe = j0(se, i === null);
1367
1367
  x(Pe);
1368
1368
  }, [i]), Te = me((se) => {
@@ -1380,7 +1380,7 @@ const Fy = _e(Ve((e, t) => {
1380
1380
  }
1381
1381
  }, [v, $, l, i, H]), Et = me((se) => {
1382
1382
  Ye?.(se), se.defaultPrevented || g || $ || (Z(!0), ee(), document.addEventListener("pointermove", Te, { passive: !1 }), document.addEventListener("touchmove", Te, { passive: !1 }), document.addEventListener("pointerup", St, { passive: !1 }));
1383
- }, [Ye]), Ge = $o(t, () => ({ setPosition: Rt, isSplitPane: () => !0 }), []), Dt = K(() => z ? T?.({ key: "resizer", ref: A1([P, j]), className: hl("resizer", Se), onPointerDownCapture: Et, style: { cursor: g ? void 0 : r === "row" ? "ew-resize" : "ns-resize", minWidth: r === "row" ? "2px" : void 0, minHeight: r !== "row" ? "2px" : void 0, boxSizing: "border-box", pointerEvents: "all", zIndex: 1, ...qe }, splitDirection: r, disabled: g, ..._t }) : null, [z, Se, _t, r, qe, g]), it = r === "row" ? "Width" : "Height", ae = { ...ce, ...Q, flex: E.fixedPaneOffset === 0 && O?.pixels[0] !== null ? `0 0 ${Math.round(O?.pixels[0])}px` : `1 1 ${Math.round(O?.percents[0] ?? 100)}%`, [`min${it}`]: O?.minBefore, [`max${it}`]: o ? O?.maxBefore : "100%" }, Qe = { ...ce, ...Ne, flex: E.fixedPaneOffset === 1 && O?.pixels[1] !== null ? `0 0 ${Math.round(O?.pixels[1])}px` : `1 1 ${Math.round(O?.percents[1] ?? 100)}%`, [`min${it}`]: O?.minAfter, [`max${it}`]: n ? O?.maxAfter : "100%" }, xe = K(() => n ? d("div", { ref: N, className: hl("before", X, ie), style: ae, ...ne, ...fe, children: n }, "before") : null, [n, C, k, E, O]), ke = K(() => o ? d("div", { ref: q, className: hl("after", X, De), style: Qe, ...ne, ...re, children: o }, "after") : null, [o, C, D, E, O]);
1383
+ }, [Ye]), Ge = $o(t, () => ({ setPosition: Rt, isSplitPane: () => !0 }), []), Dt = K(() => z ? T?.({ key: "resizer", ref: A1([P, j]), className: hl("resizer", Se), onPointerDownCapture: Et, style: { cursor: g ? void 0 : r === "row" ? "ew-resize" : "ns-resize", minWidth: r === "row" ? "2px" : void 0, minHeight: r !== "row" ? "2px" : void 0, boxSizing: "border-box", pointerEvents: "all", zIndex: 1, ...qe }, splitDirection: r, disabled: g, ..._t }) : null, [z, Se, _t, r, qe, g]), it = r === "row" ? "Width" : "Height", ae = { ...ce, ...Q, flex: E.fixedPaneOffset === 0 && O?.pixels[0] !== null ? `0 0 ${Math.round(O?.pixels[0])}px` : `1 1 ${Math.round(O?.percents[0] ?? 100)}%`, [`min${it}`]: O?.minBefore, [`max${it}`]: o ? O?.maxBefore : "100%" }, Qe = { ...ce, ...Ne, flex: E.fixedPaneOffset === 1 && O?.pixels[1] !== null ? `0 0 ${Math.round(O?.pixels[1])}px` : `1 1 ${Math.round(O?.percents[1] ?? 100)}%`, [`min${it}`]: O?.minAfter, [`max${it}`]: n ? O?.maxAfter : "100%" }, xe = K(() => n ? d("div", { ref: N, className: hl("before", X, ie), style: ae, ...ne, ...fe, children: n }, "before") : null, [n, C, k, E, O]), ke = K(() => o ? d("div", { ref: U, className: hl("after", X, De), style: Qe, ...ne, ...re, children: o }, "after") : null, [o, C, D, E, O]);
1384
1384
  return G("div", { ref: A1([I, Ge]), className: hl("splitPane", r === "row" ? "vertical" : "horizontal", { dragging: $ }, f), style: pe, children: [xe, Dt, ke] });
1385
1385
  }));
1386
1386
  function n3(e, t) {
@@ -3508,7 +3508,7 @@ function w2(e = {}, ...t) {
3508
3508
  });
3509
3509
  }), M = p.reduce((H, O) => Lr(H, O), M);
3510
3510
  const P = { prefix: g, disableCssColorScheme: m, shouldSkipGeneratingVar: y, getSelector: ew(M) }, { vars: L, generateThemeVars: A, generateStyleSheets: F } = function(H, O = {}) {
3511
- const { getSelector: $ = fe, disableCssColorScheme: Z, colorSchemeSelector: ee } = O, { colorSchemes: V = {}, components: B, defaultColorScheme: N = "light", ...j } = H, { vars: q, css: te, varsWithDefaults: X } = cd(j, O);
3511
+ const { getSelector: $ = fe, disableCssColorScheme: Z, colorSchemeSelector: ee } = O, { colorSchemes: V = {}, components: B, defaultColorScheme: N = "light", ...j } = H, { vars: U, css: te, varsWithDefaults: X } = cd(j, O);
3512
3512
  let ne = X;
3513
3513
  const ce = {}, { [N]: ie, ...Q } = V;
3514
3514
  if (Object.entries(Q || {}).forEach(([De, Ne]) => {
@@ -3527,7 +3527,7 @@ function w2(e = {}, ...t) {
3527
3527
  return ":root";
3528
3528
  }
3529
3529
  return { vars: ne, generateThemeVars: () => {
3530
- let De = { ...q };
3530
+ let De = { ...U };
3531
3531
  return Object.entries(ce).forEach(([, { vars: Ne }]) => {
3532
3532
  De = Lr(De, Ne);
3533
3533
  }), De;
@@ -3768,11 +3768,11 @@ const Iu = _e(Ve((e, t) => {
3768
3768
  }, [M, E]);
3769
3769
  const P = Y((N, j = !1) => {
3770
3770
  if (!b.current) return 0;
3771
- const q = b.current.querySelector(".scrollbar-viewport"), te = q.getBoundingClientRect(), X = q.children, ne = j ? 0 : x2(N, te[_], X, !0, Math.max(0, N - p));
3771
+ const U = b.current.querySelector(".scrollbar-viewport"), te = U.getBoundingClientRect(), X = U.children, ne = j ? 0 : x2(N, te[_], X, !0, Math.max(0, N - p));
3772
3772
  return R(ne), Math.max(0, ne);
3773
3773
  }, []), L = Y((N, j = !1) => {
3774
3774
  if (!b.current) return 0;
3775
- const q = b.current.querySelector(".scrollbar-viewport"), te = q.getBoundingClientRect(), X = q.children, ne = Math.ceil(I - x), ce = j ? ne : x2(N, te[_], X, !1, Math.max(0, N + p));
3775
+ const U = b.current.querySelector(".scrollbar-viewport"), te = U.getBoundingClientRect(), X = U.children, ne = Math.ceil(I - x), ce = j ? ne : x2(N, te[_], X, !1, Math.max(0, N + p));
3776
3776
  return R(ce), Math.min(ne, ce);
3777
3777
  }, [I, x]), A = oe(null), F = Y((N) => {
3778
3778
  A.current = n;
@@ -3785,10 +3785,10 @@ const Iu = _e(Ve((e, t) => {
3785
3785
  }, [n, v]);
3786
3786
  const H = oe(null), O = oe(null), $ = Y(() => {
3787
3787
  H.current && (clearTimeout(H.current), H.current = null, O.current = null);
3788
- }, []), Z = Y((N, j, q, te = u) => {
3788
+ }, []), Z = Y((N, j, U, te = u) => {
3789
3789
  O.current = N, H.current = setTimeout(() => {
3790
- const X = q ? P(O.current || N) : L(O.current || N);
3791
- X !== O.current ? Z(X, !1, q, f) : $();
3790
+ const X = U ? P(O.current || N) : L(O.current || N);
3791
+ X !== O.current ? Z(X, !1, U, f) : $();
3792
3792
  }, j ? 0 : te);
3793
3793
  }, [P, L, $]);
3794
3794
  ye(() => () => $(), [$]);
@@ -4232,7 +4232,7 @@ _e(Ve((e, t) => {
4232
4232
  ut = (bi(Ce.maxAfter, Pe, !1) ?? Le) - Le, Je = bi(Ce.minAfter, Pe, !1) ?? Pe, yt = Math.max(et, ut), rt = Math.min(Ct, Je), Me = Math.max(yt, Math.min(Me, rt)), Je = Math.min(Fe - Me, bi(Ce.maxAfter, Fe - Me, !0) ?? Fe), ut = Math.min(Fe - Me, bi(Ce.minAfter, Fe - Me, !0) ?? Fe), He[0] = Me, He[1] = Fe - He[0];
4233
4233
  const at = Math.max(0, Math.min(100, Me / Fe * 100));
4234
4234
  return le[0] = at, le[1] = 100 - le[0], { percents: le, pixels: He, minBefore: `${et}px`, minAfter: `${ut}px`, maxBefore: `${He[0]}px`, maxAfter: `${He[1]}px` };
4235
- })(v, H, F, E), [E, v, H, F, r]), [$, Z] = J(!1), ee = kn(y, [y]), V = kn(w, [w]), B = kn(b, [b]), N = oe(null), j = oe(null), q = oe(null), { style: te, className: X, ...ne } = C, ce = { minWidth: 0, minHeight: 0, maxWidth: "100%", maxHeight: "100%", display: "flex", overflow: "hidden", ...te }, { className: ie, style: Q, ...fe } = k, { className: De, style: Ne, ...re } = D, pe = { flex: "1 1 100%", width: "100%", ...m, flexDirection: r, display: "flex" }, { className: Se, style: qe, onPointerDown: Ye, ..._t } = S, Rt = kn((se) => {
4235
+ })(v, H, F, E), [E, v, H, F, r]), [$, Z] = J(!1), ee = kn(y, [y]), V = kn(w, [w]), B = kn(b, [b]), N = oe(null), j = oe(null), U = oe(null), { style: te, className: X, ...ne } = C, ce = { minWidth: 0, minHeight: 0, maxWidth: "100%", maxHeight: "100%", display: "flex", overflow: "hidden", ...te }, { className: ie, style: Q, ...fe } = k, { className: De, style: Ne, ...re } = D, pe = { flex: "1 1 100%", width: "100%", ...m, flexDirection: r, display: "flex" }, { className: Se, style: qe, onPointerDown: Ye, ..._t } = S, Rt = kn((se) => {
4236
4236
  const Pe = U0(se, i === null);
4237
4237
  x(Pe);
4238
4238
  }, [i]), Te = kn((se) => {
@@ -4250,7 +4250,7 @@ _e(Ve((e, t) => {
4250
4250
  }
4251
4251
  }, [v, $, l, i, H]), Et = kn((se) => {
4252
4252
  Ye?.(se), se.defaultPrevented || g || $ || (Z(!0), ee(), document.addEventListener("pointermove", Te, { passive: !1 }), document.addEventListener("touchmove", Te, { passive: !1 }), document.addEventListener("pointerup", St, { passive: !1 }));
4253
- }, [Ye]), Ge = Cc(t, () => ({ setPosition: Rt, isSplitPane: () => !0 }), []), Dt = K(() => z ? T?.({ key: "resizer", ref: H1([P, j]), className: fl("resizer", Se), onPointerDownCapture: Et, style: { cursor: g ? void 0 : r === "row" ? "ew-resize" : "ns-resize", minWidth: r === "row" ? "2px" : void 0, minHeight: r !== "row" ? "2px" : void 0, boxSizing: "border-box", pointerEvents: "all", zIndex: 1, ...qe }, splitDirection: r, disabled: g, ..._t }) : null, [z, Se, _t, r, qe, g]), it = r === "row" ? "Width" : "Height", ae = { ...ce, ...Q, flex: E.fixedPaneOffset === 0 && O?.pixels[0] !== null ? `0 0 ${Math.round(O?.pixels[0])}px` : `1 1 ${Math.round(O?.percents[0] ?? 100)}%`, [`min${it}`]: O?.minBefore, [`max${it}`]: o ? O?.maxBefore : "100%" }, Qe = { ...ce, ...Ne, flex: E.fixedPaneOffset === 1 && O?.pixels[1] !== null ? `0 0 ${Math.round(O?.pixels[1])}px` : `1 1 ${Math.round(O?.percents[1] ?? 100)}%`, [`min${it}`]: O?.minAfter, [`max${it}`]: n ? O?.maxAfter : "100%" }, xe = K(() => n ? d("div", { ref: N, className: fl("before", X, ie), style: ae, ...ne, ...fe, children: n }, "before") : null, [n, C, k, E, O]), ke = K(() => o ? d("div", { ref: q, className: fl("after", X, De), style: Qe, ...ne, ...re, children: o }, "after") : null, [o, C, D, E, O]);
4253
+ }, [Ye]), Ge = Cc(t, () => ({ setPosition: Rt, isSplitPane: () => !0 }), []), Dt = K(() => z ? T?.({ key: "resizer", ref: H1([P, j]), className: fl("resizer", Se), onPointerDownCapture: Et, style: { cursor: g ? void 0 : r === "row" ? "ew-resize" : "ns-resize", minWidth: r === "row" ? "2px" : void 0, minHeight: r !== "row" ? "2px" : void 0, boxSizing: "border-box", pointerEvents: "all", zIndex: 1, ...qe }, splitDirection: r, disabled: g, ..._t }) : null, [z, Se, _t, r, qe, g]), it = r === "row" ? "Width" : "Height", ae = { ...ce, ...Q, flex: E.fixedPaneOffset === 0 && O?.pixels[0] !== null ? `0 0 ${Math.round(O?.pixels[0])}px` : `1 1 ${Math.round(O?.percents[0] ?? 100)}%`, [`min${it}`]: O?.minBefore, [`max${it}`]: o ? O?.maxBefore : "100%" }, Qe = { ...ce, ...Ne, flex: E.fixedPaneOffset === 1 && O?.pixels[1] !== null ? `0 0 ${Math.round(O?.pixels[1])}px` : `1 1 ${Math.round(O?.percents[1] ?? 100)}%`, [`min${it}`]: O?.minAfter, [`max${it}`]: n ? O?.maxAfter : "100%" }, xe = K(() => n ? d("div", { ref: N, className: fl("before", X, ie), style: ae, ...ne, ...fe, children: n }, "before") : null, [n, C, k, E, O]), ke = K(() => o ? d("div", { ref: U, className: fl("after", X, De), style: Qe, ...ne, ...re, children: o }, "after") : null, [o, C, D, E, O]);
4254
4254
  return G("div", { ref: H1([I, Ge]), className: fl("splitPane", r === "row" ? "vertical" : "horizontal", { dragging: $ }, f), style: pe, children: [xe, Dt, ke] });
4255
4255
  }));
4256
4256
  const Jw = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
@@ -4688,29 +4688,29 @@ const _x = { name: "maxSize", enabled: !0, phase: "main", requiresIfExists: ["of
4688
4688
  return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, N);
4689
4689
  }(typeof M != "number" ? M : (g = M, Sx.reduce(function(N, j) {
4690
4690
  return N[j] = g, N;
4691
- }, {}))), P = _ === ta ? "reference" : ta, L = f.rects.popper, A = f.elements[x ? P : _], F = function(N, j, q, te) {
4692
- var X = j === "clippingParents" ? kx(N) : [].concat(j), ne = [].concat(X, [q]), ce = ne[0], ie = ne.reduce(function(Q, fe) {
4691
+ }, {}))), P = _ === ta ? "reference" : ta, L = f.rects.popper, A = f.elements[x ? P : _], F = function(N, j, U, te) {
4692
+ var X = j === "clippingParents" ? kx(N) : [].concat(j), ne = [].concat(X, [U]), ce = ne[0], ie = ne.reduce(function(Q, fe) {
4693
4693
  var De = L6(N, fe, te);
4694
4694
  return Q.top = Oa(De.top, Q.top), Q.right = R6(De.right, Q.right), Q.bottom = R6(De.bottom, Q.bottom), Q.left = Oa(De.left, Q.left), Q;
4695
4695
  }, L6(N, ce, te));
4696
4696
  return ie.width = ie.right - ie.left, ie.height = ie.bottom - ie.top, ie.x = ie.left, ie.y = ie.top, ie;
4697
4697
  }(Ol(A) ? A : A.contextElement || Cl(f.elements.popper), D, z, C), H = Nu(f.elements.reference), O = function(N) {
4698
- var j, q = N.reference, te = N.element, X = N.placement, ne = X ? X.split("-")[0] : null, ce = X ? X.split("-")[1] : null, ie = q.x + q.width / 2 - te.width / 2, Q = q.y + q.height / 2 - te.height / 2;
4698
+ var j, U = N.reference, te = N.element, X = N.placement, ne = X ? X.split("-")[0] : null, ce = X ? X.split("-")[1] : null, ie = U.x + U.width / 2 - te.width / 2, Q = U.y + U.height / 2 - te.height / 2;
4699
4699
  switch (ne) {
4700
4700
  case R2:
4701
- j = { x: ie, y: q.y - te.height };
4701
+ j = { x: ie, y: U.y - te.height };
4702
4702
  break;
4703
4703
  case S1:
4704
- j = { x: ie, y: q.y + q.height };
4704
+ j = { x: ie, y: U.y + U.height };
4705
4705
  break;
4706
4706
  case D2:
4707
- j = { x: q.x + q.width, y: Q };
4707
+ j = { x: U.x + U.width, y: Q };
4708
4708
  break;
4709
4709
  case P9:
4710
- j = { x: q.x - te.width, y: Q };
4710
+ j = { x: U.x - te.width, y: Q };
4711
4711
  break;
4712
4712
  default:
4713
- j = { x: q.x, y: q.y };
4713
+ j = { x: U.x, y: U.y };
4714
4714
  }
4715
4715
  var fe = ne ? function(Ne) {
4716
4716
  return ["top", "bottom"].indexOf(Ne) >= 0 ? "x" : "y";
@@ -4719,10 +4719,10 @@ const _x = { name: "maxSize", enabled: !0, phase: "main", requiresIfExists: ["of
4719
4719
  var De = fe === "y" ? "height" : "width";
4720
4720
  switch (ce) {
4721
4721
  case "start":
4722
- j[fe] = j[fe] - (q[De] / 2 - te[De] / 2);
4722
+ j[fe] = j[fe] - (U[De] / 2 - te[De] / 2);
4723
4723
  break;
4724
4724
  case "end":
4725
- j[fe] = j[fe] + (q[De] / 2 - te[De] / 2);
4725
+ j[fe] = j[fe] + (U[De] / 2 - te[De] / 2);
4726
4726
  }
4727
4727
  }
4728
4728
  return j;
@@ -4730,8 +4730,8 @@ const _x = { name: "maxSize", enabled: !0, phase: "main", requiresIfExists: ["of
4730
4730
  if (_ === ta && V) {
4731
4731
  var B = V[b];
4732
4732
  Object.keys(ee).forEach(function(N) {
4733
- var j = [D2, S1].indexOf(N) >= 0 ? 1 : -1, q = [R2, S1].indexOf(N) >= 0 ? "y" : "x";
4734
- ee[N] += B[q] * j;
4733
+ var j = [D2, S1].indexOf(N) >= 0 ? 1 : -1, U = [R2, S1].indexOf(N) >= 0 ? "y" : "x";
4734
+ ee[N] += B[U] * j;
4735
4735
  });
4736
4736
  }
4737
4737
  return ee;
@@ -4833,12 +4833,12 @@ const bd = (e = null, t, n, o) => (L0 && (L0.fn.clear(), L0 = null), e === 0 ? t
4833
4833
  }, [t]);
4834
4834
  const C = (N) => {
4835
4835
  const j = Y0.get(N);
4836
- let q = null;
4837
- return j && (q = J0.get(j)?.close(0)), q;
4836
+ let U = null;
4837
+ return j && (U = J0.get(j)?.close(0)), U;
4838
4838
  }, k = () => C(F.key), [D, T] = J(), z = () => {
4839
4839
  if (!h) return void x();
4840
- const N = new Promise((j, q) => {
4841
- T((te) => ({ resolve: j, reject: q }));
4840
+ const N = new Promise((j, U) => {
4841
+ T((te) => ({ resolve: j, reject: U }));
4842
4842
  });
4843
4843
  return k(), Y0.delete(y.key), p(!1), N;
4844
4844
  };
@@ -4857,8 +4857,8 @@ const bd = (e = null, t, n, o) => (L0 && (L0.fn.clear(), L0 = null), e === 0 ? t
4857
4857
  Y0.set(y.key, F.key), p(!0);
4858
4858
  });
4859
4859
  }, [v, x] = Ue.useReducer((N) => N + 1, 0), I = Y((N) => s === null ? null : s({ closeFloat: P, closeFloatAll: A, ...N }), [s]), M = s === null, R = kn((N = 120) => bd(N, _, /* @__PURE__ */ new Set([F]), !1)(), [_]), P = kn((N = 60) => bd(N, z, P6(F), !0)(), [z]), L = kn((N = 360) => bd(N, k, P6(((j) => {
4860
- const q = Y0.get(j.key);
4861
- return q && J0.get(q) || null;
4860
+ const U = Y0.get(j.key);
4861
+ return U && J0.get(U) || null;
4862
4862
  })(F)), !0)(), [k]), A = kn(E, [E]), F = K(() => ({ key: w, isRoot: !1, label: n, parent: y, onChildVisible: () => {
4863
4863
  g(!0);
4864
4864
  }, onChildHidden: () => {
@@ -4879,8 +4879,8 @@ const bd = (e = null, t, n, o) => (L0 && (L0.fn.clear(), L0 = null), e === 0 ? t
4879
4879
  (j.contains(document.activeElement) || document.activeElement === document.body) && N.focus();
4880
4880
  }), O.current = null), c?.();
4881
4881
  }, []), Z = Y((N) => {
4882
- b.current = N, N.addEventListener("focus", (q) => {
4883
- O.current = q.relatedTarget;
4882
+ b.current = N, N.addEventListener("focus", (U) => {
4883
+ O.current = U.relatedTarget;
4884
4884
  }, { once: !0, passive: !0 });
4885
4885
  const j = document.activeElement;
4886
4886
  requestAnimationFrame(() => {
@@ -4899,8 +4899,8 @@ const bd = (e = null, t, n, o) => (L0 && (L0.fn.clear(), L0 = null), e === 0 ? t
4899
4899
  const B = kn((N) => {
4900
4900
  if (Y0.size === 0) return;
4901
4901
  let j = !1;
4902
- Y0.forEach((q) => {
4903
- const te = J0.get(q);
4902
+ Y0.forEach((U) => {
4903
+ const te = J0.get(U);
4904
4904
  !j && te && (te.floatElement()?.contains?.(N.target) && (j = !0), te.anchorElement()?.contains?.(N.target) && (j = !0));
4905
4905
  }), j || E();
4906
4906
  }, [E]);
@@ -4972,8 +4972,8 @@ const na = _e((e) => {
4972
4972
  w(!1), m?.(T);
4973
4973
  }, size: "small", TouchRippleProps: { center: !1 }, sx: C, edge: "end", ...g, children: [k, c] });
4974
4974
  if (a) if (a.simple && a.label && !a.disabled) {
4975
- const { label: T, description: z, maxWidth: E, shortcut: _, useModifierSymbols: v, componentDisabled: x, simple: I, chips: M, ...R } = a;
4976
- D = d(Nr, { disableInteractive: !0, title: T ?? "", ...R, children: d(we, { sx: { display: "flex" }, children: D }) });
4975
+ const { label: T, description: z, maxWidth: E, shortcut: _, useModifierSymbols: v, componentDisabled: x, simple: I, chips: M, ref: R, ...P } = a;
4976
+ D = d(Nr, { disableInteractive: !0, title: T ?? "", ...P, children: d(we, { sx: { display: "flex" }, children: D }) });
4977
4977
  } else D = d(ar, { children: D, ...a });
4978
4978
  return D;
4979
4979
  })), Lx = (e) => e.icon, _r = _e(Ve((e, t) => {
@@ -5015,8 +5015,8 @@ const na = _e((e) => {
5015
5015
  const Q = { "&.bordered": { borderWidth: "1px", borderRadius: "0px", borderTopStyle: "solid", borderBottomStyle: "solid", borderColor: (Se) => v.outline.color(Se), "&.Mui-focusVisible": { border: (Se) => `1px solid ${v.outline.focusColor(Se)} !important` }, "&:hover:not(.Mui-disabled, [disabled])": { borderColor: () => S ? "transparent" : void 0, backgroundColor: () => S ? "transparent" : void 0 }, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (Se) => v.outline.hoverColor(Se) }, "&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (Se) => v.outline.hoverColor(Se) }, "&.left": { borderTopLeftRadius: (Se) => `${Se.shape.borderRadius}px`, borderBottomLeftRadius: (Se) => `${Se.shape.borderRadius}px`, borderLeftStyle: "solid" }, "&.hard-right": { borderRightStyle: "solid", borderRightWidth: "1px", borderRightColor: (Se) => v.outline.color(Se) }, "&.right": { borderTopRightRadius: (Se) => `${Se.shape.borderRadius}px`, borderBottomRightRadius: (Se) => `${Se.shape.borderRadius}px`, borderRightStyle: "solid" }, "&.divider": { borderLeftWidth: "0px !important" } }, "& .MuiTouchRipple-child": { borderRadius: (Se) => `${Se.shape.borderRadius}px !important` } }, fe = { "&.Mui-selected": { backgroundColor: (Se) => Lt(Se.palette.primary.main, Se.palette.action.selectedOpacity), "&:hover:not(.Mui-disabled)": { backgroundColor: (Se) => Lt(Se.palette.primary.main, Se.palette.action.selectedOpacity + Se.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: (Se) => Lt(Se.palette.primary.main, Se.palette.action.selectedOpacity) } } } }, De = { maxHeight: "100%", "&.Mui-selected": { backgroundColor: (Se) => Lt(Se.palette.text.icon ?? Se.palette.action.active, Se.palette.action.selectedOpacity), "&:hover:not(.Mui-disabled)": { backgroundColor: (Se) => Lt(Se.palette.text.icon ?? Se.palette.action.active, Se.palette.action.selectedOpacity + Se.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: (Se) => Lt(Se.palette.text.icon ?? Se.palette.action.active, Se.palette.action.selectedOpacity) } } }, "&:hover:not(.Mui-disabled, [disabled])": { color: (Se) => Se.palette.text.primary }, backgroundColor: () => S ? "transparent" : void 0, color: (Se) => Se.palette.text.icon, "&.Mui-disabled path.styled": { filter: "grayscale(65%)", opacity: ".8" }, padding: () => n ? "2px 3px" : "7px", marginRight: "0" }, Ne = go.mergeContentful(De, Q), re = go.mergeContentful(Ne, fe), pe = go.mergeContentful(De, Q);
5016
5016
  return { quickButtonStyling: Ne, openQuickButtonStyling: re, compoundStyling: pe, openCompoundStyling: go.mergeContentful(pe, fe) };
5017
5017
  }, [v, S]), ee = kn((Q) => {
5018
- const { children: fe, ...De } = Q;
5019
- return d(Nr, { ...De, disableInteractive: !0, children: fe });
5018
+ const { children: fe, ref: De, ...Ne } = Q;
5019
+ return d(Nr, { ref: De, ...Ne, disableInteractive: !0, children: fe });
5020
5020
  }, []), V = l || f, B = V && (u?.tooltip || u?.createTooltip), N = (Q) => {
5021
5021
  const { tooltip: fe, createTooltip: De, sx: Ne, ...re } = Q;
5022
5022
  let pe = d(br, { sx: { ...Ne }, component: "div", ...re });
@@ -5024,7 +5024,7 @@ const na = _e((e) => {
5024
5024
  }, j = { onKeyDown: (Q) => {
5025
5025
  Q.keyCode === ir.Space ? $() : Q.keyCode === ir.F4 || Q.keyCode === ir.Down ? H.reference.open(0) : Q.keyCode === ir.Up && H.reference.close(0);
5026
5026
  } };
5027
- let q = d(vt, {});
5027
+ let U = d(vt, {});
5028
5028
  const te = K(() => typeof y == "function" ? y() : y, [y]);
5029
5029
  if (V) {
5030
5030
  let Q = x ? Z.openQuickButtonStyling : Z.quickButtonStyling;
@@ -5034,17 +5034,17 @@ const na = _e((e) => {
5034
5034
  Ne.button === 0 && (Ne.preventDefault(), O(Ne));
5035
5035
  }, touchRippleRef: C, children: te, ...u, className: Go({ "Mui-focusVisible": M || x, "Mui-selected": i, "Mui-hovered": P || x, "Mui-disabled": w, bordered: !0, left: !0, "hard-right": !0 }, u?.className), sx: { ...Z.quickButtonStyling, height: "100%", ...u?.sx } });
5036
5036
  let De = A6(!0, n, x);
5037
- B && (De = (g ?? ee)({ title: x ? "" : m, children: De }, x)), q = G(vt, { children: [fe, d(br, { ref: F, component: "div", className: Go({ "Mui-selected": x, "Mui-hovered": P || x, "Mui-disabled": w, "Mui-focusVisible": M || x, bordered: !0, right: !0, divider: !0 }), sx: { paddingLeft: (n ? 0 : 2) + "px", paddingRight: (n ? 0 : 2) + "px", width: () => "1em", ...Z.quickButtonStyling, ...Q }, TouchRippleProps: { center: !1 }, tabIndex: -1, disabled: w, size: "small", edge: "end", onMouseDown: (Ne) => {
5037
+ B && (De = (g ?? ee)({ title: x ? "" : m, children: De }, x)), U = G(vt, { children: [fe, d(br, { ref: F, component: "div", className: Go({ "Mui-selected": x, "Mui-hovered": P || x, "Mui-disabled": w, "Mui-focusVisible": M || x, bordered: !0, right: !0, divider: !0 }), sx: { paddingLeft: (n ? 0 : 2) + "px", paddingRight: (n ? 0 : 2) + "px", width: () => "1em", ...Z.quickButtonStyling, ...Q }, TouchRippleProps: { center: !1 }, tabIndex: -1, disabled: w, size: "small", edge: "end", onMouseDown: (Ne) => {
5038
5038
  Ne.button === 0 && (Ne.preventDefault(), $());
5039
5039
  }, children: De })] });
5040
5040
  } else {
5041
5041
  let Q = x ? Z.openCompoundStyling : Z.compoundStyling;
5042
- q = d(Pr, { ref: F, tabIndex: -1, disabled: w, size: "small", icon: te, className: Go({ "Mui-selected": x || i, "Mui-hovered": P, "Mui-disabled": w, "Mui-focusVisible": M || x, bordered: !0, left: !0, right: !0 }), sx: { ...Z.quickButtonStyling, ...Q }, onMouseDown: (fe) => {
5042
+ U = d(Pr, { ref: F, tabIndex: -1, disabled: w, size: "small", icon: te, className: Go({ "Mui-selected": x || i, "Mui-hovered": P, "Mui-disabled": w, "Mui-focusVisible": M || x, bordered: !0, left: !0, right: !0 }), sx: { ...Z.quickButtonStyling, ...Q }, onMouseDown: (fe) => {
5043
5043
  fe.button === 0 && (fe.preventDefault(), $());
5044
5044
  }, children: A6(!1, n, x) });
5045
5045
  }
5046
5046
  const { className: X, sx: ne, ...ce } = b;
5047
- let ie = d(we, { onFocus: () => R(!0), onBlur: () => R(!1), onMouseOver: () => L(!0), onMouseOut: () => L(!1), ...j, "aria-label": "split button", ref: A, tabIndex: w ? void 0 : 0, className: Go(X, "split-button-root", { "Mui-focusVisible": M || x, "Mui-selected": x || i, "Mui-hovered": P, "Mui-disabled": w }), sx: { display: "flex", flex: "1 1 100%", alignItems: "center", width: "fit-content", "&:not(.Mui-disabled)": { cursor: "pointer" }, marginLeft: o ? "1px" : "0px", marginRight: o ? "1px" : "0px", borderRadius: (Q) => `${Q.shape.borderRadius}px`, "&.Mui-focusVisible": { outline: (Q) => `solid ${Q.palette.primary.main} 1px`, zIndex: 2 }, ...ne }, ...ce, children: q });
5047
+ let ie = d(we, { onFocus: () => R(!0), onBlur: () => R(!1), onMouseOver: () => L(!0), onMouseOut: () => L(!1), ...j, "aria-label": "split button", ref: A, tabIndex: w ? void 0 : 0, className: Go(X, "split-button-root", { "Mui-focusVisible": M || x, "Mui-selected": x || i, "Mui-hovered": P, "Mui-disabled": w }), sx: { display: "flex", flex: "1 1 100%", alignItems: "center", width: "fit-content", "&:not(.Mui-disabled)": { cursor: "pointer" }, marginLeft: o ? "1px" : "0px", marginRight: o ? "1px" : "0px", borderRadius: (Q) => `${Q.shape.borderRadius}px`, "&.Mui-focusVisible": { outline: (Q) => `solid ${Q.palette.primary.main} 1px`, zIndex: 2 }, ...ne }, ...ce, children: U });
5048
5048
  return B || (ie = (g ?? ee)({ title: x ? "" : m, children: ie }, x)), G(we, { className: Go(z, "popupIconButton"), ref: t, ...E, sx: { zIndex: M || x ? 2 : void 0, display: "flex", alignItems: "center", ...T }, children: [ie, H.component] });
5049
5049
  }));
5050
5050
  h0.displayName = "ExhibitPopupIconButton";
@@ -5061,11 +5061,11 @@ const Ax = {}, ws = _e(Ve((e, t) => {
5061
5061
  B.button === 0 && (r?.(B), P.reference.close(0));
5062
5062
  }, [r]), A = d(eh, { sx: { transform: () => {
5063
5063
  } } }), F = { "&.Mui-selected": { color: (B) => B.palette.text.primary, "& svg * ": { color: (B) => B.palette.text.primary } } }, H = Y((B) => {
5064
- const { children: N, ...j } = B;
5065
- return d(Nr, { ...j, disableInteractive: !0, children: N });
5064
+ const { children: N, ref: j, ...U } = B;
5065
+ return d(Nr, { ref: j, ...U, disableInteractive: !0, children: N });
5066
5066
  }, []), O = r || p, $ = (B) => {
5067
- const { tooltip: N, createTooltip: j, ...q } = B;
5068
- return d(_r, { icon: m, className: Go({ "Mui-hovered": E }), sx: { flex: "1 1 100%", ...F }, ...q, children: o });
5067
+ const { tooltip: N, createTooltip: j, ...U } = B;
5068
+ return d(_r, { icon: m, className: Go({ "Mui-hovered": E }), sx: { flex: "1 1 100%", ...F }, ...U, children: o });
5069
5069
  }, Z = { onFocus: () => {
5070
5070
  z(!0);
5071
5071
  }, onBlur: () => z(!1), onMouseOver: () => {
@@ -6233,7 +6233,7 @@ const oS = Qh(nS), t4 = { x: 0, y: 0 }, rS = _e(Ve((e, t) => {
6233
6233
  let Ye = 0.5 * qe, _t = 0.5 * Se;
6234
6234
  typeof _?.x == "number" ? Ye = _.x : typeof _?.x == "string" && (Ye = qe * (parseFloat(_.x) / 100)), typeof _?.y == "number" ? _t = _.y : typeof _?.y == "string" && (_t = Se * (parseFloat(_.y) / 100)), R({ x: Ye, y: _t });
6235
6235
  }, [$, V]);
6236
- const [j, q] = J(!1), [te, X] = J(null), [ne, ce] = J(null), ie = kn((pe) => {
6236
+ const [j, U] = J(!1), [te, X] = J(null), [ne, ce] = J(null), ie = kn((pe) => {
6237
6237
  if (te) return te.focus(pe), !0;
6238
6238
  if (f) {
6239
6239
  const Se = Z.current?.querySelectorAll?.(f);
@@ -6276,9 +6276,9 @@ const oS = Qh(nS), t4 = { x: 0, y: 0 }, rS = _e(Ve((e, t) => {
6276
6276
  }, onFocus: (pe) => {
6277
6277
  !j && (pe.target === Z.current || pe.target.tabIndex < 0) && setTimeout(() => {
6278
6278
  ie();
6279
- }, 100), I.current?.focusTrap?.unpause(), q(!0), Z.current?.contains(pe.target) && pe.target !== Z.current && X(pe.target), pe.relatedTarget && !ne && ce(pe.relatedTarget);
6279
+ }, 100), I.current?.focusTrap?.unpause(), U(!0), Z.current?.contains(pe.target) && pe.target !== Z.current && X(pe.target), pe.relatedTarget && !ne && ce(pe.relatedTarget);
6280
6280
  }, onBlur: (pe) => {
6281
- Q?.current?.contains(pe.relatedTarget) || (ce(null), I.current?.focusTrap?.pause(), q(!1));
6281
+ Q?.current?.contains(pe.relatedTarget) || (ce(null), I.current?.focusTrap?.pause(), U(!1));
6282
6282
  }, children: [Ne, De] }), re(), i + "");
6283
6283
  });
6284
6284
  var Xr = typeof window < "u" ? window : { screen: {}, navigator: {} }, Al = (Xr.matchMedia || function() {
@@ -6507,12 +6507,12 @@ function bS(e = {}) {
6507
6507
  N && (B ? co(n.validatingFields, N, B) : Bo(n.validatingFields, N));
6508
6508
  }), u.state.next({ validatingFields: n.validatingFields, isValidating: !Sr(n.validatingFields) }));
6509
6509
  }, y = (V, B, N, j) => {
6510
- const q = Gt(o, V);
6511
- if (q) {
6510
+ const U = Gt(o, V);
6511
+ if (U) {
6512
6512
  const te = Gt(l, V, No(N) ? Gt(i, V) : N);
6513
- No(te) || j && j.defaultChecked || B ? co(l, V, B ? te : u4(q._f)) : D(V, te), s.mount && m();
6513
+ No(te) || j && j.defaultChecked || B ? co(l, V, B ? te : u4(U._f)) : D(V, te), s.mount && m();
6514
6514
  }
6515
- }, w = (V, B, N, j, q) => {
6515
+ }, w = (V, B, N, j, U) => {
6516
6516
  let te = !1, X = !1;
6517
6517
  const ne = { name: V };
6518
6518
  if (!t.disabled) {
@@ -6525,29 +6525,29 @@ function bS(e = {}) {
6525
6525
  const ce = Gt(n.touchedFields, V);
6526
6526
  ce || (co(n.touchedFields, V, N), ne.touchedFields = n.touchedFields, te = te || (h.touchedFields || p.touchedFields) && ce !== N);
6527
6527
  }
6528
- te && q && u.state.next(ne);
6528
+ te && U && u.state.next(ne);
6529
6529
  }
6530
6530
  return te ? ne : {};
6531
6531
  }, b = async (V) => {
6532
6532
  g(V, !0);
6533
- const B = await t.resolver(l, t.context, ((N, j, q, te) => {
6533
+ const B = await t.resolver(l, t.context, ((N, j, U, te) => {
6534
6534
  const X = {};
6535
6535
  for (const ne of N) {
6536
6536
  const ce = Gt(j, ne);
6537
6537
  ce && co(X, ne, ce._f);
6538
6538
  }
6539
- return { criteriaMode: q, names: [...N], fields: X, shouldUseNativeValidation: te };
6539
+ return { criteriaMode: U, names: [...N], fields: X, shouldUseNativeValidation: te };
6540
6540
  })(V || a.mount, o, t.criteriaMode, t.shouldUseNativeValidation));
6541
6541
  return g(V), B;
6542
6542
  }, S = async (V, B, N = { valid: !0 }) => {
6543
6543
  for (const j in V) {
6544
- const q = V[j];
6545
- if (q) {
6546
- const { _f: te, ...X } = q;
6544
+ const U = V[j];
6545
+ if (U) {
6546
+ const { _f: te, ...X } = U;
6547
6547
  if (te) {
6548
- const ne = a.array.has(te.name), ce = q._f && mS(q._f);
6548
+ const ne = a.array.has(te.name), ce = U._f && mS(U._f);
6549
6549
  ce && h.validatingFields && g([j], !0);
6550
- const ie = await y4(q, a.disabled, l, f, t.shouldUseNativeValidation && !B, ne);
6550
+ const ie = await y4(U, a.disabled, l, f, t.shouldUseNativeValidation && !B, ne);
6551
6551
  if (ce && h.validatingFields && g([j]), ie[te.name] && (N.valid = !1, B)) break;
6552
6552
  !B && (Gt(ie, te.name) ? ne ? gS(n.errors, ie, te.name) : co(n.errors, te.name, ie[te.name]) : Bo(n.errors, te.name));
6553
6553
  }
@@ -6555,36 +6555,36 @@ function bS(e = {}) {
6555
6555
  }
6556
6556
  }
6557
6557
  return N.valid;
6558
- }, C = (V, B) => !t.disabled && (V && B && co(l, V, B), !ii(x(), i)), k = (V, B, N) => ((j, q, te, X, ne) => C0(j) ? (X && q.watch.add(j), Gt(te, j, ne)) : Array.isArray(j) ? j.map((ce) => (X && q.watch.add(ce), Gt(te, ce))) : (X && (q.watchAll = !0), te))(V, a, { ...s.mount ? l : No(B) ? i : C0(V) ? { [V]: B } : B }, N, B), D = (V, B, N = {}) => {
6558
+ }, C = (V, B) => !t.disabled && (V && B && co(l, V, B), !ii(x(), i)), k = (V, B, N) => ((j, U, te, X, ne) => C0(j) ? (X && U.watch.add(j), Gt(te, j, ne)) : Array.isArray(j) ? j.map((ce) => (X && U.watch.add(ce), Gt(te, ce))) : (X && (U.watchAll = !0), te))(V, a, { ...s.mount ? l : No(B) ? i : C0(V) ? { [V]: B } : B }, N, B), D = (V, B, N = {}) => {
6559
6559
  const j = Gt(o, V);
6560
- let q = B;
6560
+ let U = B;
6561
6561
  if (j) {
6562
6562
  const te = j._f;
6563
- te && (!te.disabled && co(l, V, fp(B, te)), q = K1(te.ref) && gr(B) ? "" : B, dp(te.ref) ? [...te.ref.options].forEach((X) => X.selected = q.includes(X.value)) : te.refs ? Aa(te.ref) ? te.refs.forEach((X) => {
6564
- X.defaultChecked && X.disabled || (Array.isArray(q) ? X.checked = !!q.find((ne) => ne === X.value) : X.checked = q === X.value || !!q);
6565
- }) : te.refs.forEach((X) => X.checked = X.value === q) : Wu(te.ref) ? te.ref.value = "" : (te.ref.value = q, te.ref.type || u.state.next({ name: V, values: nr(l) })));
6563
+ te && (!te.disabled && co(l, V, fp(B, te)), U = K1(te.ref) && gr(B) ? "" : B, dp(te.ref) ? [...te.ref.options].forEach((X) => X.selected = U.includes(X.value)) : te.refs ? Aa(te.ref) ? te.refs.forEach((X) => {
6564
+ X.defaultChecked && X.disabled || (Array.isArray(U) ? X.checked = !!U.find((ne) => ne === X.value) : X.checked = U === X.value || !!U);
6565
+ }) : te.refs.forEach((X) => X.checked = X.value === U) : Wu(te.ref) ? te.ref.value = "" : (te.ref.value = U, te.ref.type || u.state.next({ name: V, values: nr(l) })));
6566
6566
  }
6567
- (N.shouldDirty || N.shouldTouch) && w(V, q, N.shouldTouch, N.shouldDirty, !0), N.shouldValidate && v(V);
6567
+ (N.shouldDirty || N.shouldTouch) && w(V, U, N.shouldTouch, N.shouldDirty, !0), N.shouldValidate && v(V);
6568
6568
  }, T = (V, B, N) => {
6569
6569
  for (const j in B) {
6570
6570
  if (!B.hasOwnProperty(j)) return;
6571
- const q = B[j], te = V + "." + j, X = Gt(o, te);
6572
- (a.array.has(V) || zo(q) || X && !X._f) && !Di(q) ? T(te, q, N) : D(te, q, N);
6571
+ const U = B[j], te = V + "." + j, X = Gt(o, te);
6572
+ (a.array.has(V) || zo(U) || X && !X._f) && !Di(U) ? T(te, U, N) : D(te, U, N);
6573
6573
  }
6574
6574
  }, z = (V, B, N = {}) => {
6575
- const j = Gt(o, V), q = a.array.has(V), te = nr(B);
6576
- co(l, V, te), q ? (u.array.next({ name: V, values: nr(l) }), (h.isDirty || h.dirtyFields || p.isDirty || p.dirtyFields) && N.shouldDirty && u.state.next({ name: V, dirtyFields: la(i, l), isDirty: C(V, te) })) : !j || j._f || gr(te) ? D(V, te, N) : T(V, te, N), f4(V, a) && u.state.next({ ...n }), u.state.next({ name: s.mount ? V : void 0, values: nr(l) });
6575
+ const j = Gt(o, V), U = a.array.has(V), te = nr(B);
6576
+ co(l, V, te), U ? (u.array.next({ name: V, values: nr(l) }), (h.isDirty || h.dirtyFields || p.isDirty || p.dirtyFields) && N.shouldDirty && u.state.next({ name: V, dirtyFields: la(i, l), isDirty: C(V, te) })) : !j || j._f || gr(te) ? D(V, te, N) : T(V, te, N), f4(V, a) && u.state.next({ ...n }), u.state.next({ name: s.mount ? V : void 0, values: nr(l) });
6577
6577
  }, E = async (V) => {
6578
6578
  s.mount = !0;
6579
6579
  const B = V.target;
6580
6580
  let N = B.name, j = !0;
6581
- const q = Gt(o, N), te = (ie) => {
6581
+ const U = Gt(o, N), te = (ie) => {
6582
6582
  j = Number.isNaN(ie) || Di(ie) && isNaN(ie.getTime()) || ii(ie, Gt(l, N, ie));
6583
6583
  }, X = h4(t.mode), ne = h4(t.reValidateMode);
6584
- if (q) {
6584
+ if (U) {
6585
6585
  let ie, Q;
6586
- const fe = B.type ? u4(q._f) : zo(ce = V) && ce.target ? Aa(ce.target) ? ce.target.checked : ce.target.value : ce, De = V.type === "blur" || V.type === "focusout", Ne = !((qe) => qe.mount && (qe.required || qe.min || qe.max || qe.maxLength || qe.minLength || qe.pattern || qe.validate))(q._f) && !t.resolver && !Gt(n.errors, N) && !q._f.deps || ((qe, Ye, _t, Rt, Te) => !Te.isOnAll && (!_t && Te.isOnTouch ? !(Ye || qe) : (_t ? Rt.isOnBlur : Te.isOnBlur) ? !qe : !(_t ? Rt.isOnChange : Te.isOnChange) || qe))(De, Gt(n.touchedFields, N), n.isSubmitted, ne, X), re = f4(N, a, De);
6587
- co(l, N, fe), De ? (q._f.onBlur && q._f.onBlur(V), r && r(0)) : q._f.onChange && q._f.onChange(V);
6586
+ const fe = B.type ? u4(U._f) : zo(ce = V) && ce.target ? Aa(ce.target) ? ce.target.checked : ce.target.value : ce, De = V.type === "blur" || V.type === "focusout", Ne = !((qe) => qe.mount && (qe.required || qe.min || qe.max || qe.maxLength || qe.minLength || qe.pattern || qe.validate))(U._f) && !t.resolver && !Gt(n.errors, N) && !U._f.deps || ((qe, Ye, _t, Rt, Te) => !Te.isOnAll && (!_t && Te.isOnTouch ? !(Ye || qe) : (_t ? Rt.isOnBlur : Te.isOnBlur) ? !qe : !(_t ? Rt.isOnChange : Te.isOnChange) || qe))(De, Gt(n.touchedFields, N), n.isSubmitted, ne, X), re = f4(N, a, De);
6587
+ co(l, N, fe), De ? (U._f.onBlur && U._f.onBlur(V), r && r(0)) : U._f.onChange && U._f.onChange(V);
6588
6588
  const pe = w(N, fe, De), Se = !Sr(pe) || re;
6589
6589
  if (!De && u.state.next({ name: N, type: V.type, values: nr(l) }), Ne) return (h.isValid || p.isValid) && (t.mode === "onBlur" ? De && m() : De || m()), Se && u.state.next({ name: N, ...re ? {} : pe });
6590
6590
  if (!De && re && u.state.next({ ...n }), t.resolver) {
@@ -6593,8 +6593,8 @@ function bS(e = {}) {
6593
6593
  const Ye = m4(n.errors, o, N), _t = m4(qe, o, Ye.name || N);
6594
6594
  ie = _t.error, N = _t.name, Q = Sr(qe);
6595
6595
  }
6596
- } else g([N], !0), ie = (await y4(q, a.disabled, l, f, t.shouldUseNativeValidation))[N], g([N]), te(fe), j && (ie ? Q = !1 : (h.isValid || p.isValid) && (Q = await S(o, !0)));
6597
- j && (q._f.deps && v(q._f.deps), ((qe, Ye, _t, Rt) => {
6596
+ } else g([N], !0), ie = (await y4(U, a.disabled, l, f, t.shouldUseNativeValidation))[N], g([N]), te(fe), j && (ie ? Q = !1 : (h.isValid || p.isValid) && (Q = await S(o, !0)));
6597
+ j && (U._f.deps && v(U._f.deps), ((qe, Ye, _t, Rt) => {
6598
6598
  const Te = Gt(n.errors, qe), St = (h.isValid || p.isValid) && x0(Ye) && n.isValid !== Ye;
6599
6599
  var Et;
6600
6600
  if (t.delayError && _t ? (Et = () => ((Ge, Dt) => {
@@ -6612,7 +6612,7 @@ function bS(e = {}) {
6612
6612
  if (Gt(n.errors, B) && V.focus) return V.focus(), 1;
6613
6613
  }, v = async (V, B = {}) => {
6614
6614
  let N, j;
6615
- const q = xa(V);
6615
+ const U = xa(V);
6616
6616
  if (t.resolver) {
6617
6617
  const te = await (async (X) => {
6618
6618
  const { errors: ne } = await b(X);
@@ -6622,22 +6622,22 @@ function bS(e = {}) {
6622
6622
  }
6623
6623
  else n.errors = ne;
6624
6624
  return ne;
6625
- })(No(V) ? V : q);
6626
- N = Sr(te), j = V ? !q.some((X) => Gt(te, X)) : N;
6627
- } else V ? (j = (await Promise.all(q.map(async (te) => {
6625
+ })(No(V) ? V : U);
6626
+ N = Sr(te), j = V ? !U.some((X) => Gt(te, X)) : N;
6627
+ } else V ? (j = (await Promise.all(U.map(async (te) => {
6628
6628
  const X = Gt(o, te);
6629
6629
  return await S(X && X._f ? { [te]: X } : X);
6630
6630
  }))).every(Boolean), (j || n.isValid) && m()) : j = N = await S(o);
6631
- return u.state.next({ ...!C0(V) || (h.isValid || p.isValid) && N !== n.isValid ? {} : { name: V }, ...t.resolver || !V ? { isValid: N } : {}, errors: n.errors }), B.shouldFocus && !j && Pa(o, _, V ? q : a.mount), j;
6631
+ return u.state.next({ ...!C0(V) || (h.isValid || p.isValid) && N !== n.isValid ? {} : { name: V }, ...t.resolver || !V ? { isValid: N } : {}, errors: n.errors }), B.shouldFocus && !j && Pa(o, _, V ? U : a.mount), j;
6632
6632
  }, x = (V) => {
6633
6633
  const B = { ...s.mount ? l : i };
6634
6634
  return No(V) ? B : C0(V) ? Gt(B, V) : V.map((N) => Gt(B, N));
6635
6635
  }, I = (V, B) => ({ invalid: !!Gt((B || n).errors, V), isDirty: !!Gt((B || n).dirtyFields, V), error: Gt((B || n).errors, V), isValidating: !!Gt(n.validatingFields, V), isTouched: !!Gt((B || n).touchedFields, V) }), M = (V, B, N) => {
6636
- const j = (Gt(o, V, { _f: {} })._f || {}).ref, q = Gt(n.errors, V) || {}, { ref: te, message: X, type: ne, ...ce } = q;
6636
+ const j = (Gt(o, V, { _f: {} })._f || {}).ref, U = Gt(n.errors, V) || {}, { ref: te, message: X, type: ne, ...ce } = U;
6637
6637
  co(n.errors, V, { ...ce, ...B, ref: j }), u.state.next({ name: V, errors: n.errors, isValid: !1 }), N && N.shouldFocus && j && j.focus && j.focus();
6638
6638
  }, R = (V) => u.state.subscribe({ next: (B) => {
6639
- var N, j, q;
6640
- N = V.name, j = B.name, q = V.exact, N && j && N !== j && !xa(N).some((te) => te && (q ? te === j : te.startsWith(j) || j.startsWith(te))) || !((te, X, ne, ce) => {
6639
+ var N, j, U;
6640
+ N = V.name, j = B.name, U = V.exact, N && j && N !== j && !xa(N).some((te) => te && (U ? te === j : te.startsWith(j) || j.startsWith(te))) || !((te, X, ne, ce) => {
6641
6641
  ne(te);
6642
6642
  const { name: ie, ...Q } = te;
6643
6643
  return Sr(Q) || Object.keys(Q).length >= Object.keys(X).length || Object.keys(Q).find((fe) => X[fe] === (!ce || Qa));
@@ -6650,10 +6650,10 @@ function bS(e = {}) {
6650
6650
  }, A = (V, B = {}) => {
6651
6651
  let N = Gt(o, V);
6652
6652
  const j = x0(B.disabled) || x0(t.disabled);
6653
- return co(o, V, { ...N || {}, _f: { ...N && N._f ? N._f : { ref: { name: V } }, name: V, mount: !0, ...B } }), a.mount.add(V), N ? L({ disabled: x0(B.disabled) ? B.disabled : t.disabled, name: V }) : y(V, !0, B.value), { ...j ? { disabled: B.disabled || t.disabled } : {}, ...t.progressive ? { required: !!B.required, min: aa(B.min), max: aa(B.max), minLength: aa(B.minLength), maxLength: aa(B.maxLength), pattern: aa(B.pattern) } : {}, name: V, onChange: E, onBlur: E, ref: (q) => {
6654
- if (q) {
6653
+ return co(o, V, { ...N || {}, _f: { ...N && N._f ? N._f : { ref: { name: V } }, name: V, mount: !0, ...B } }), a.mount.add(V), N ? L({ disabled: x0(B.disabled) ? B.disabled : t.disabled, name: V }) : y(V, !0, B.value), { ...j ? { disabled: B.disabled || t.disabled } : {}, ...t.progressive ? { required: !!B.required, min: aa(B.min), max: aa(B.max), minLength: aa(B.minLength), maxLength: aa(B.maxLength), pattern: aa(B.pattern) } : {}, name: V, onChange: E, onBlur: E, ref: (U) => {
6654
+ if (U) {
6655
6655
  A(V, B), N = Gt(o, V);
6656
- const te = No(q.value) && q.querySelectorAll && q.querySelectorAll("input,select,textarea")[0] || q, X = ((ce) => Uu(ce) || Aa(ce))(te), ne = N._f.refs || [];
6656
+ const te = No(U.value) && U.querySelectorAll && U.querySelectorAll("input,select,textarea")[0] || U, X = ((ce) => Uu(ce) || Aa(ce))(te), ne = N._f.refs || [];
6657
6657
  if (X ? ne.find((ce) => ce === te) : te === N._f.ref) return;
6658
6658
  co(o, V, { _f: { ...N._f, ...X ? { refs: [...ne.filter(Sd), te, ...Array.isArray(Gt(i, V)) ? [{}] : []], ref: { type: te.type, name: V } } : { ref: te } } }), y(V, !1, void 0, te);
6659
6659
  } else N = Gt(o, V, {}), N._f && (N._f.mount = !1), (t.shouldUnregister || B.shouldUnregister) && (!((te, X) => te.has(((ne) => ne.substring(0, ne.search(/\.\d+(\.|$)/)) || ne)(X)))(a.array, V) || !s.action) && a.unMount.add(V);
@@ -6661,23 +6661,23 @@ function bS(e = {}) {
6661
6661
  }, F = () => t.shouldFocusError && Pa(o, _, a.mount), H = (V, B) => async (N) => {
6662
6662
  let j;
6663
6663
  N && (N.preventDefault && N.preventDefault(), N.persist && N.persist());
6664
- let q = nr(l);
6664
+ let U = nr(l);
6665
6665
  if (u.state.next({ isSubmitting: !0 }), t.resolver) {
6666
6666
  const { errors: te, values: X } = await b();
6667
- n.errors = te, q = X;
6667
+ n.errors = te, U = X;
6668
6668
  } else await S(o);
6669
- if (a.disabled.size) for (const te of a.disabled) co(q, te, void 0);
6669
+ if (a.disabled.size) for (const te of a.disabled) co(U, te, void 0);
6670
6670
  if (Bo(n.errors, "root"), Sr(n.errors)) {
6671
6671
  u.state.next({ errors: {} });
6672
6672
  try {
6673
- await V(q, N);
6673
+ await V(U, N);
6674
6674
  } catch (te) {
6675
6675
  j = te;
6676
6676
  }
6677
6677
  } else B && await B({ ...n.errors }, N), F(), setTimeout(F);
6678
6678
  if (u.state.next({ isSubmitted: !0, isSubmitting: !1, isSubmitSuccessful: Sr(n.errors) && !j, submitCount: n.submitCount + 1, errors: n.errors }), j) throw j;
6679
6679
  }, O = (V, B = {}) => {
6680
- const N = V ? nr(V) : i, j = nr(N), q = Sr(V), te = q ? i : j;
6680
+ const N = V ? nr(V) : i, j = nr(N), U = Sr(V), te = U ? i : j;
6681
6681
  if (B.keepDefaultValues || (i = N), !B.keepValues) {
6682
6682
  if (B.keepDirtyValues) {
6683
6683
  const X = /* @__PURE__ */ new Set([...a.mount, ...Object.keys(la(i, l))]);
@@ -6700,24 +6700,24 @@ function bS(e = {}) {
6700
6700
  }
6701
6701
  l = nr(te), u.array.next({ values: { ...te } }), u.state.next({ values: { ...te } });
6702
6702
  }
6703
- a = { mount: B.keepDirtyValues ? a.mount : /* @__PURE__ */ new Set(), unMount: /* @__PURE__ */ new Set(), array: /* @__PURE__ */ new Set(), disabled: /* @__PURE__ */ new Set(), watch: /* @__PURE__ */ new Set(), watchAll: !1, focus: "" }, s.mount = !h.isValid || !!B.keepIsValid || !!B.keepDirtyValues, s.watch = !!t.shouldUnregister, u.state.next({ submitCount: B.keepSubmitCount ? n.submitCount : 0, isDirty: !q && (B.keepDirty ? n.isDirty : !(!B.keepDefaultValues || ii(V, i))), isSubmitted: !!B.keepIsSubmitted && n.isSubmitted, dirtyFields: q ? {} : B.keepDirtyValues ? B.keepDefaultValues && l ? la(i, l) : n.dirtyFields : B.keepDefaultValues && V ? la(i, V) : B.keepDirty ? n.dirtyFields : {}, touchedFields: B.keepTouched ? n.touchedFields : {}, errors: B.keepErrors ? n.errors : {}, isSubmitSuccessful: !!B.keepIsSubmitSuccessful && n.isSubmitSuccessful, isSubmitting: !1 });
6703
+ a = { mount: B.keepDirtyValues ? a.mount : /* @__PURE__ */ new Set(), unMount: /* @__PURE__ */ new Set(), array: /* @__PURE__ */ new Set(), disabled: /* @__PURE__ */ new Set(), watch: /* @__PURE__ */ new Set(), watchAll: !1, focus: "" }, s.mount = !h.isValid || !!B.keepIsValid || !!B.keepDirtyValues, s.watch = !!t.shouldUnregister, u.state.next({ submitCount: B.keepSubmitCount ? n.submitCount : 0, isDirty: !U && (B.keepDirty ? n.isDirty : !(!B.keepDefaultValues || ii(V, i))), isSubmitted: !!B.keepIsSubmitted && n.isSubmitted, dirtyFields: U ? {} : B.keepDirtyValues ? B.keepDefaultValues && l ? la(i, l) : n.dirtyFields : B.keepDefaultValues && V ? la(i, V) : B.keepDirty ? n.dirtyFields : {}, touchedFields: B.keepTouched ? n.touchedFields : {}, errors: B.keepErrors ? n.errors : {}, isSubmitSuccessful: !!B.keepIsSubmitSuccessful && n.isSubmitSuccessful, isSubmitting: !1 });
6704
6704
  }, $ = (V, B) => O(s0(V) ? V(l) : V, B), Z = (V) => {
6705
6705
  n = { ...n, ...V };
6706
- }, ee = { control: { register: A, unregister: P, getFieldState: I, handleSubmit: H, setError: M, _subscribe: R, _runSchema: b, _focusError: F, _getWatch: k, _getDirty: C, _setValid: m, _setFieldArray: (V, B = [], N, j, q = !0, te = !0) => {
6706
+ }, ee = { control: { register: A, unregister: P, getFieldState: I, handleSubmit: H, setError: M, _subscribe: R, _runSchema: b, _focusError: F, _getWatch: k, _getDirty: C, _setValid: m, _setFieldArray: (V, B = [], N, j, U = !0, te = !0) => {
6707
6707
  if (j && N && !t.disabled) {
6708
6708
  if (s.action = !0, te && Array.isArray(Gt(o, V))) {
6709
6709
  const X = N(Gt(o, V), j.argA, j.argB);
6710
- q && co(o, V, X);
6710
+ U && co(o, V, X);
6711
6711
  }
6712
6712
  if (te && Array.isArray(Gt(n.errors, V))) {
6713
6713
  const X = N(Gt(n.errors, V), j.argA, j.argB);
6714
- q && co(n.errors, V, X), ((ne, ce) => {
6714
+ U && co(n.errors, V, X), ((ne, ce) => {
6715
6715
  !F2(Gt(ne, ce)).length && Bo(ne, ce);
6716
6716
  })(n.errors, V);
6717
6717
  }
6718
6718
  if ((h.touchedFields || p.touchedFields) && te && Array.isArray(Gt(n.touchedFields, V))) {
6719
6719
  const X = N(Gt(n.touchedFields, V), j.argA, j.argB);
6720
- q && co(n.touchedFields, V, X);
6720
+ U && co(n.touchedFields, V, X);
6721
6721
  }
6722
6722
  (h.dirtyFields || p.dirtyFields) && (n.dirtyFields = la(i, l)), u.state.next({ name: V, isDirty: C(V, B), dirtyFields: n.dirtyFields, errors: n.errors, isValid: n.isValid });
6723
6723
  } else co(l, V, B);
@@ -6734,8 +6734,8 @@ function bS(e = {}) {
6734
6734
  }, _disableForm: (V) => {
6735
6735
  x0(V) && (u.state.next({ disabled: V }), Pa(o, (B, N) => {
6736
6736
  const j = Gt(o, N);
6737
- j && (B.disabled = j._f.disabled || V, Array.isArray(j._f.refs) && j._f.refs.forEach((q) => {
6738
- q.disabled = j._f.disabled || V;
6737
+ j && (B.disabled = j._f.disabled || V, Array.isArray(j._f.refs) && j._f.refs.forEach((U) => {
6738
+ U.disabled = j._f.disabled || V;
6739
6739
  }));
6740
6740
  }, 0, !1));
6741
6741
  }, _subjects: u, _proxyFormState: h, get _fields() {
@@ -6765,8 +6765,8 @@ function bS(e = {}) {
6765
6765
  }, unregister: P, setError: M, setFocus: (V, B = {}) => {
6766
6766
  const N = Gt(o, V), j = N && N._f;
6767
6767
  if (j) {
6768
- const q = j.refs ? j.refs[0] : j.ref;
6769
- q.focus && (q.focus(), B.shouldSelect && s0(q.select) && q.select());
6768
+ const U = j.refs ? j.refs[0] : j.ref;
6769
+ U.focus && (U.focus(), B.shouldSelect && s0(U.select) && U.select());
6770
6770
  }
6771
6771
  }, getFieldState: I };
6772
6772
  return { ...ee, formControl: ee };
@@ -6863,7 +6863,7 @@ const wS = ["Ok", "Cancel"], b4 = (e) => {
6863
6863
  t?.onDone?.(), o.hide();
6864
6864
  } });
6865
6865
  });
6866
- }, SS = Ue.lazy(() => import("./DLTm93l6QUeTWBtR.mjs")), AR = () => {
6866
+ }, SS = Ue.lazy(() => import("./DF3XnOqbVr24E49D.mjs")), AR = () => {
6867
6867
  const { showModal: e } = Bu();
6868
6868
  return (t) => {
6869
6869
  const { defaultOption: n = t.options?.[0], cancelOption: o = "Cancel", ...r } = t;
@@ -7808,18 +7808,18 @@ function ZC(e = {}, ...t) {
7808
7808
  let $ = O;
7809
7809
  const Z = {}, { [L]: ee, ...V } = R;
7810
7810
  if (Object.entries(V || {}).forEach(([N, j]) => {
7811
- const { vars: q, css: te, varsWithDefaults: X } = kd(j, v);
7812
- $ = zr($, X), Z[N] = { css: te, vars: q };
7811
+ const { vars: U, css: te, varsWithDefaults: X } = kd(j, v);
7812
+ $ = zr($, X), Z[N] = { css: te, vars: U };
7813
7813
  }), ee) {
7814
- const { css: N, vars: j, varsWithDefaults: q } = kd(ee, v);
7815
- $ = zr($, q), Z[L] = { css: N, vars: j };
7814
+ const { css: N, vars: j, varsWithDefaults: U } = kd(ee, v);
7815
+ $ = zr($, U), Z[L] = { css: N, vars: j };
7816
7816
  }
7817
7817
  function B(N, j) {
7818
- let q = M;
7819
- if (M === "class" && (q = ".%s"), M === "data" && (q = "[data-%s]"), M?.startsWith("data-") && !M.includes("%s") && (q = `[${M}="%s"]`), N) {
7820
- if (q === "media")
7818
+ let U = M;
7819
+ if (M === "class" && (U = ".%s"), M === "data" && (U = "[data-%s]"), M?.startsWith("data-") && !M.includes("%s") && (U = `[${M}="%s"]`), N) {
7820
+ if (U === "media")
7821
7821
  return _.defaultColorScheme === N ? ":root" : { [`@media (prefers-color-scheme: ${R[N]?.palette?.mode || N})`]: { ":root": j } };
7822
- if (q) return _.defaultColorScheme === N ? `:root, ${q.replace("%s", String(N))}` : q.replace("%s", String(N));
7822
+ if (U) return _.defaultColorScheme === N ? `:root, ${U.replace("%s", String(N))}` : U.replace("%s", String(N));
7823
7823
  }
7824
7824
  return ":root";
7825
7825
  }
@@ -7830,18 +7830,18 @@ function ZC(e = {}, ...t) {
7830
7830
  }), N;
7831
7831
  }, generateStyleSheets: () => {
7832
7832
  const N = [], j = _.defaultColorScheme || "light";
7833
- function q(ne, ce) {
7833
+ function U(ne, ce) {
7834
7834
  Object.keys(ce).length && N.push(typeof ne == "string" ? { [ne]: { ...ce } } : ne);
7835
7835
  }
7836
- q(x(void 0, { ...H }), H);
7836
+ U(x(void 0, { ...H }), H);
7837
7837
  const { [j]: te, ...X } = Z;
7838
7838
  if (te) {
7839
7839
  const { css: ne } = te, ce = R[j]?.palette?.mode, ie = !I && ce ? { colorScheme: ce, ...ne } : { ...ne };
7840
- q(x(j, { ...ie }), ie);
7840
+ U(x(j, { ...ie }), ie);
7841
7841
  }
7842
7842
  return Object.entries(X).forEach(([ne, { css: ce }]) => {
7843
7843
  const ie = R[ne]?.palette?.mode, Q = !I && ie ? { colorScheme: ie, ...ce } : { ...ce };
7844
- q(x(ne, { ...Q }), Q);
7844
+ U(x(ne, { ...Q }), Q);
7845
7845
  }), N;
7846
7846
  } };
7847
7847
  }(C, D);
@@ -8772,11 +8772,11 @@ const Ju = _e(Ve((e, t) => {
8772
8772
  }, [M, E]);
8773
8773
  const P = Y((N, j = !1) => {
8774
8774
  if (!b.current) return 0;
8775
- const q = b.current.querySelector(".scrollbar-viewport"), te = q.getBoundingClientRect(), X = q.children, ne = j ? 0 : U2(N, te[_], X, !0, Math.max(0, N - p));
8775
+ const U = b.current.querySelector(".scrollbar-viewport"), te = U.getBoundingClientRect(), X = U.children, ne = j ? 0 : U2(N, te[_], X, !0, Math.max(0, N - p));
8776
8776
  return R(ne), Math.max(0, ne);
8777
8777
  }, []), L = Y((N, j = !1) => {
8778
8778
  if (!b.current) return 0;
8779
- const q = b.current.querySelector(".scrollbar-viewport"), te = q.getBoundingClientRect(), X = q.children, ne = Math.ceil(I - x), ce = j ? ne : U2(N, te[_], X, !1, Math.max(0, N + p));
8779
+ const U = b.current.querySelector(".scrollbar-viewport"), te = U.getBoundingClientRect(), X = U.children, ne = Math.ceil(I - x), ce = j ? ne : U2(N, te[_], X, !1, Math.max(0, N + p));
8780
8780
  return R(ce), Math.min(ne, ce);
8781
8781
  }, [I, x]), A = oe(null), F = Y((N) => {
8782
8782
  A.current = n;
@@ -8789,10 +8789,10 @@ const Ju = _e(Ve((e, t) => {
8789
8789
  }, [n, v]);
8790
8790
  const H = oe(null), O = oe(null), $ = Y(() => {
8791
8791
  H.current && (clearTimeout(H.current), H.current = null, O.current = null);
8792
- }, []), Z = Y((N, j, q, te = u) => {
8792
+ }, []), Z = Y((N, j, U, te = u) => {
8793
8793
  O.current = N, H.current = setTimeout(() => {
8794
- const X = q ? P(O.current || N) : L(O.current || N);
8795
- X !== O.current ? Z(X, !1, q, f) : $();
8794
+ const X = U ? P(O.current || N) : L(O.current || N);
8795
+ X !== O.current ? Z(X, !1, U, f) : $();
8796
8796
  }, j ? 0 : te);
8797
8797
  }, [P, L, $]);
8798
8798
  ye(() => () => $(), [$]);
@@ -9271,7 +9271,7 @@ _e(Ve((e, t) => {
9271
9271
  ut = (xi(Ce.maxAfter, Pe, !1) ?? Le) - Le, Je = xi(Ce.minAfter, Pe, !1) ?? Pe, yt = Math.max(et, ut), rt = Math.min(Ct, Je), Me = Math.max(yt, Math.min(Me, rt)), Je = Math.min(Fe - Me, xi(Ce.maxAfter, Fe - Me, !0) ?? Fe), ut = Math.min(Fe - Me, xi(Ce.minAfter, Fe - Me, !0) ?? Fe), He[0] = Me, He[1] = Fe - He[0];
9272
9272
  const at = Math.max(0, Math.min(100, Me / Fe * 100));
9273
9273
  return le[0] = at, le[1] = 100 - le[0], { percents: le, pixels: He, minBefore: `${et}px`, minAfter: `${ut}px`, maxBefore: `${He[0]}px`, maxAfter: `${He[1]}px` };
9274
- })(v, H, F, E), [E, v, H, F, r]), [$, Z] = J(!1), ee = ft(y, [y]), V = ft(w, [w]), B = ft(b, [b]), N = oe(null), j = oe(null), q = oe(null), { style: te, className: X, ...ne } = C, ce = { minWidth: 0, minHeight: 0, maxWidth: "100%", maxHeight: "100%", display: "flex", overflow: "hidden", ...te }, { className: ie, style: Q, ...fe } = k, { className: De, style: Ne, ...re } = D, pe = { flex: "1 1 100%", width: "100%", ...m, flexDirection: r, display: "flex" }, { className: Se, style: qe, onPointerDown: Ye, ..._t } = S, Rt = ft((se) => {
9274
+ })(v, H, F, E), [E, v, H, F, r]), [$, Z] = J(!1), ee = ft(y, [y]), V = ft(w, [w]), B = ft(b, [b]), N = oe(null), j = oe(null), U = oe(null), { style: te, className: X, ...ne } = C, ce = { minWidth: 0, minHeight: 0, maxWidth: "100%", maxHeight: "100%", display: "flex", overflow: "hidden", ...te }, { className: ie, style: Q, ...fe } = k, { className: De, style: Ne, ...re } = D, pe = { flex: "1 1 100%", width: "100%", ...m, flexDirection: r, display: "flex" }, { className: Se, style: qe, onPointerDown: Ye, ..._t } = S, Rt = ft((se) => {
9275
9275
  const Pe = G0(se, i === null);
9276
9276
  x(Pe);
9277
9277
  }, [i]), Te = ft((se) => {
@@ -9289,7 +9289,7 @@ _e(Ve((e, t) => {
9289
9289
  }
9290
9290
  }, [v, $, l, i, H]), Et = ft((se) => {
9291
9291
  Ye?.(se), se.defaultPrevented || g || $ || (Z(!0), ee(), document.addEventListener("pointermove", Te, { passive: !1 }), document.addEventListener("touchmove", Te, { passive: !1 }), document.addEventListener("pointerup", St, { passive: !1 }));
9292
- }, [Ye]), Ge = Oc(t, () => ({ setPosition: Rt, isSplitPane: () => !0 }), []), Dt = K(() => z ? T?.({ key: "resizer", ref: rc([P, j]), className: gl("resizer", Se), onPointerDownCapture: Et, style: { cursor: g ? void 0 : r === "row" ? "ew-resize" : "ns-resize", minWidth: r === "row" ? "2px" : void 0, minHeight: r !== "row" ? "2px" : void 0, boxSizing: "border-box", pointerEvents: "all", zIndex: 1, ...qe }, splitDirection: r, disabled: g, ..._t }) : null, [z, Se, _t, r, qe, g]), it = r === "row" ? "Width" : "Height", ae = { ...ce, ...Q, flex: E.fixedPaneOffset === 0 && O?.pixels[0] !== null ? `0 0 ${Math.round(O?.pixels[0])}px` : `1 1 ${Math.round(O?.percents[0] ?? 100)}%`, [`min${it}`]: O?.minBefore, [`max${it}`]: o ? O?.maxBefore : "100%" }, Qe = { ...ce, ...Ne, flex: E.fixedPaneOffset === 1 && O?.pixels[1] !== null ? `0 0 ${Math.round(O?.pixels[1])}px` : `1 1 ${Math.round(O?.percents[1] ?? 100)}%`, [`min${it}`]: O?.minAfter, [`max${it}`]: n ? O?.maxAfter : "100%" }, xe = K(() => n ? d("div", { ref: N, className: gl("before", X, ie), style: ae, ...ne, ...fe, children: n }, "before") : null, [n, C, k, E, O]), ke = K(() => o ? d("div", { ref: q, className: gl("after", X, De), style: Qe, ...ne, ...re, children: o }, "after") : null, [o, C, D, E, O]);
9292
+ }, [Ye]), Ge = Oc(t, () => ({ setPosition: Rt, isSplitPane: () => !0 }), []), Dt = K(() => z ? T?.({ key: "resizer", ref: rc([P, j]), className: gl("resizer", Se), onPointerDownCapture: Et, style: { cursor: g ? void 0 : r === "row" ? "ew-resize" : "ns-resize", minWidth: r === "row" ? "2px" : void 0, minHeight: r !== "row" ? "2px" : void 0, boxSizing: "border-box", pointerEvents: "all", zIndex: 1, ...qe }, splitDirection: r, disabled: g, ..._t }) : null, [z, Se, _t, r, qe, g]), it = r === "row" ? "Width" : "Height", ae = { ...ce, ...Q, flex: E.fixedPaneOffset === 0 && O?.pixels[0] !== null ? `0 0 ${Math.round(O?.pixels[0])}px` : `1 1 ${Math.round(O?.percents[0] ?? 100)}%`, [`min${it}`]: O?.minBefore, [`max${it}`]: o ? O?.maxBefore : "100%" }, Qe = { ...ce, ...Ne, flex: E.fixedPaneOffset === 1 && O?.pixels[1] !== null ? `0 0 ${Math.round(O?.pixels[1])}px` : `1 1 ${Math.round(O?.percents[1] ?? 100)}%`, [`min${it}`]: O?.minAfter, [`max${it}`]: n ? O?.maxAfter : "100%" }, xe = K(() => n ? d("div", { ref: N, className: gl("before", X, ie), style: ae, ...ne, ...fe, children: n }, "before") : null, [n, C, k, E, O]), ke = K(() => o ? d("div", { ref: U, className: gl("after", X, De), style: Qe, ...ne, ...re, children: o }, "after") : null, [o, C, D, E, O]);
9293
9293
  return G("div", { ref: rc([I, Ge]), className: gl("splitPane", r === "row" ? "vertical" : "horizontal", { dragging: $ }, f), style: pe, children: [xe, Dt, ke] });
9294
9294
  }));
9295
9295
  const qk = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
@@ -9542,9 +9542,9 @@ const g7 = () => "sheetxl-ui-" + Xk++, Jk = Ue.useId ?? function() {
9542
9542
  }, []), D = n.current && Wt.isEqualCells(n.current, b), T = l && D && y, z = s({ autoFocus: !!t.startEvent?.autoFocus, ...a, onSubmitEdit: C, onCancelEdit: k, ref: g }, b), E = i.x + en.boundPixel(-h / 2), _ = en.boundPixel(i.width + h / 2, !0);
9543
9543
  return d("div", { tabIndex: 0, ref: m, style: { background: void 0, ...u, opacity: T ? u?.opacity ?? 1 : 0, pointerEvents: "auto", position: "absolute", boxSizing: "border-box", top: `${i.y + en.boundPixel(-h / 2)}px`, height: en.boundPixel(i.height + h / 2, !0), left: `${E}px`, width: _ }, ...f, children: d("div", { className: "editor-container", style: { position: "absolute", boxSizing: "border-box", left: `${en.boundPixel(1)}px`, top: `${en.boundPixel(1)}px`, width: en.boundPixel(i.width - 2, !0), height: en.boundPixel(i.height - 2, !0), outline: `${h}px ${c} solid`, boxShadow: "rgba(60,64,67,.35) 2px 2px 6px 3px", maxHeight: "100%", overflow: "hidden", display: "flex" }, children: z }) });
9544
9544
  }, r_ = (e) => {
9545
- const { view: t, canEdit: n = e_, getCellEditor: o, onBeforeStartEdit: r, onStartEdit: i, onSubmitEdit: l, onCancelEdit: s, onDoneEdit: a, isEditorStartKeyEvent: c = t_, isEditorStartPointerEvent: h = n_, containerProps: p, borderStrokeFill: u, borderStrokeWidth: f = 2, getRangeCoords: m = null, activeCoords: g, alignment: y = Ea.Left } = e, [w, b] = J(!1), [S, C] = J(void 0), k = ft((j, q, te, X, ne, ce) => {
9546
- if (!q) return null;
9547
- const ie = ne?.(q, j), Q = j.getRangeCoordsBounds(ie), fe = j.toClipBounds(Q), De = Q, Ne = j.getZoom();
9545
+ const { view: t, canEdit: n = e_, getCellEditor: o, onBeforeStartEdit: r, onStartEdit: i, onSubmitEdit: l, onCancelEdit: s, onDoneEdit: a, isEditorStartKeyEvent: c = t_, isEditorStartPointerEvent: h = n_, containerProps: p, borderStrokeFill: u, borderStrokeWidth: f = 2, getRangeCoords: m = null, activeCoords: g, alignment: y = Ea.Left } = e, [w, b] = J(!1), [S, C] = J(void 0), k = ft((j, U, te, X, ne, ce) => {
9546
+ if (!U) return null;
9547
+ const ie = ne?.(U, j), Q = j.getRangeCoordsBounds(ie), fe = j.toClipBounds(Q), De = Q, Ne = j.getZoom();
9548
9548
  if (!fe) return null;
9549
9549
  te && (te *= Ne), X && (X *= Ne);
9550
9550
  let re = De, pe = !1;
@@ -9571,8 +9571,8 @@ const g7 = () => "sheetxl-ui-" + Xk++, Jk = Ue.useId ?? function() {
9571
9571
  if (j.isSubmitted || j.isCancelled) return !1;
9572
9572
  try {
9573
9573
  return z.current = j.coords, j.isEditorClosing = !0, j.isSubmitted = !0, j.isEditorSubmitted || (j.isEditorSubmitted = !0, j.editorRefs[0]?.submitEdit?.()), j.coords, l?.(j.coords), j.isEditorClosed = !0, T(), H(), !0;
9574
- } catch (q) {
9575
- throw j.isEditorClosing = !1, j.isSubmitted = !1, q;
9574
+ } catch (U) {
9575
+ throw j.isEditorClosing = !1, j.isSubmitted = !1, U;
9576
9576
  }
9577
9577
  }, [l]), I = ft((j) => {
9578
9578
  b(!1), a?.(j.coords), H();
@@ -9580,15 +9580,15 @@ const g7 = () => "sheetxl-ui-" + Xk++, Jk = Ue.useId ?? function() {
9580
9580
  j && L.current.push(j), F();
9581
9581
  }, []), O = ft((j) => {
9582
9582
  if (j.defaultPrevented || j.isSynthetic || !t) return;
9583
- const q = t?.getCellCoordsFromClient(j.clientX, j.clientY);
9584
- q && H({ eventType: "pointer", event: j, coords: q });
9583
+ const U = t?.getCellCoordsFromClient(j.clientX, j.clientY);
9584
+ U && H({ eventType: "pointer", event: j, coords: U });
9585
9585
  }, [t]), $ = ft((j) => {
9586
- const q = j.nativeEvent;
9587
- O(q);
9586
+ const U = j.nativeEvent;
9587
+ O(U);
9588
9588
  }, [t]), Z = ft((j) => {
9589
9589
  if (j.defaultPrevented || j.isSynthetic || !t?.getStage()) return;
9590
- const q = R.current;
9591
- c(j, q) && (j.stopPropagation(), j.preventDefault()), j.key, H({ eventType: "keyboard", event: j, coords: q });
9590
+ const U = R.current;
9591
+ c(j, U) && (j.stopPropagation(), j.preventDefault()), j.key, H({ eventType: "keyboard", event: j, coords: U });
9592
9592
  }, [t]);
9593
9593
  In(() => {
9594
9594
  const j = (X, ne) => {
@@ -9620,8 +9620,8 @@ const g7 = () => "sheetxl-ui-" + Xk++, Jk = Ue.useId ?? function() {
9620
9620
  return fe;
9621
9621
  };
9622
9622
  if (L.current.length <= 0 && !M.current) return;
9623
- const q = L.current[0];
9624
- b7(q), ((X) => {
9623
+ const U = L.current[0];
9624
+ b7(U), ((X) => {
9625
9625
  const ne = [], ce = X?.length ?? 0;
9626
9626
  for (let ie = 0; ie < ce; ie++) {
9627
9627
  const Q = X[ie];
@@ -9636,12 +9636,12 @@ const g7 = () => "sheetxl-ui-" + Xk++, Jk = Ue.useId ?? function() {
9636
9636
  M.current.isDone || (I(M.current), M.current.isDone = !0);
9637
9637
  }
9638
9638
  }
9639
- if (q) {
9640
- if (q.eventType === "start") {
9641
- const X = q, ne = X.startEvent?.cell ?? R.current;
9639
+ if (U) {
9640
+ if (U.eventType === "start") {
9641
+ const X = U, ne = X.startEvent?.cell ?? R.current;
9642
9642
  M.current && Wt.isEqualCells(M.current.coords, ne) || (M.current = j(ne, X.startEvent));
9643
- } else if (q.eventType === "keyboard") {
9644
- const X = q.event;
9643
+ } else if (U.eventType === "keyboard") {
9644
+ const X = U.event;
9645
9645
  if (M.current) {
9646
9646
  let ne = !1;
9647
9647
  switch (X.which) {
@@ -9654,39 +9654,39 @@ const g7 = () => "sheetxl-ui-" + Xk++, Jk = Ue.useId ?? function() {
9654
9654
  ne = !0;
9655
9655
  }
9656
9656
  if (!ne) {
9657
- M.current.events.push(q);
9658
- for (let ce = 0; ce < M.current.editorRefsDispatchEditorEvent.length; ce++) M.current.editorRefsDispatchEditorEvent[ce](q);
9657
+ M.current.events.push(U);
9658
+ for (let ce = 0; ce < M.current.editorRefsDispatchEditorEvent.length; ce++) M.current.editorRefsDispatchEditorEvent[ce](U);
9659
9659
  }
9660
- } else if (c(X, q.coords)) {
9660
+ } else if (c(X, U.coords)) {
9661
9661
  const ce = j(R.current, void 0);
9662
- ce && ce.events.push(q), M.current = ce;
9662
+ ce && ce.events.push(U), M.current = ce;
9663
9663
  }
9664
- } else if (q.eventType === "pointer") {
9665
- const X = q.event;
9664
+ } else if (U.eventType === "pointer") {
9665
+ const X = U.event;
9666
9666
  if (M.current) {
9667
- M.current.events.push(q);
9668
- for (let ne = 0; ne < M.current.editorRefsDispatchEditorEvent.length; ne++) M.current.editorRefsDispatchEditorEvent[ne](q);
9667
+ M.current.events.push(U);
9668
+ for (let ne = 0; ne < M.current.editorRefsDispatchEditorEvent.length; ne++) M.current.editorRefsDispatchEditorEvent[ne](U);
9669
9669
  } else {
9670
- const ne = q?.coords ?? R.current, ce = h(X, ne);
9670
+ const ne = U?.coords ?? R.current, ce = h(X, ne);
9671
9671
  if (ce) {
9672
9672
  let ie;
9673
9673
  typeof ie != "boolean" && (ie = ce);
9674
9674
  const Q = j(ne, ie);
9675
- Q && Q.events.push(q), M.current = Q;
9675
+ Q && Q.events.push(U), M.current = Q;
9676
9676
  }
9677
9677
  }
9678
- } else if (q.eventType === "submit") {
9678
+ } else if (U.eventType === "submit") {
9679
9679
  if (M.current && !M.current.isSubmitted && !M.current.isCancelled) {
9680
9680
  if (!M.current.isMounted) return;
9681
9681
  x(M.current);
9682
9682
  }
9683
- } else if (q.eventType === "cancel") {
9683
+ } else if (U.eventType === "cancel") {
9684
9684
  if (M.current && !M.current.isSubmitted && !M.current.isCancelled) {
9685
9685
  if (!M.current.isMounted) return;
9686
9686
  v(M.current);
9687
9687
  }
9688
- } else if (q.eventType === "coordsChange") {
9689
- const X = q;
9688
+ } else if (U.eventType === "coordsChange") {
9689
+ const X = U;
9690
9690
  if (R.current = X.activeCoords, M.current, M.current && !M.current.isSubmitted && !M.current.isCancelled) {
9691
9691
  if (!M.current.isMounted) return;
9692
9692
  try {
@@ -9710,10 +9710,10 @@ const g7 = () => "sheetxl-ui-" + Xk++, Jk = Ue.useId ?? function() {
9710
9710
  return { overlay: ft((j) => {
9711
9711
  if (!M.current || M.current.isEditorClosed) return M.current, null;
9712
9712
  M.current.coords;
9713
- let q = k(j, M.current.coords, V, B, m, y), te = !0;
9714
- q && q.width !== 0 && q.height !== 0 || (q = { x: 0, y: 0, width: V, height: V }, te = !1);
9715
- const X = j.getZoom(), ne = { containerBounds: { x: 0, y: 0, width: q.width / X, height: q.height / X }, setNaturalDimensions: C, zoom: X };
9716
- return d(o_, { session: M.current, refLatestCoords: P, handleSubmitEdit: x, handleCancelEdit: v, cellBounds: q, borderStrokeWidth: f, borderStrokeFill: u, isInBounds: te, getCellEditor: N, propsEditor: ne, alignment: y, ...p }, "editor:" + M.current.uuid);
9713
+ let U = k(j, M.current.coords, V, B, m, y), te = !0;
9714
+ U && U.width !== 0 && U.height !== 0 || (U = { x: 0, y: 0, width: V, height: V }, te = !1);
9715
+ const X = j.getZoom(), ne = { containerBounds: { x: 0, y: 0, width: U.width / X, height: U.height / X }, setNaturalDimensions: C, zoom: X };
9716
+ return d(o_, { session: M.current, refLatestCoords: P, handleSubmitEdit: x, handleCancelEdit: v, cellBounds: U, borderStrokeWidth: f, borderStrokeFill: u, isInBounds: te, getCellEditor: N, propsEditor: ne, alignment: y, ...p }, "editor:" + M.current.uuid);
9717
9717
  }, [o, m, A, V, B, y, f, u]), startEdit: Y((j) => {
9718
9718
  H({ eventType: "start", startEvent: j });
9719
9719
  }, []), submitEdit: Y(() => {
@@ -10121,12 +10121,12 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10121
10121
  const o = e.getVisibleRangeCoords(), r = e.getScrollOrientation();
10122
10122
  !r.horizontal && (t.colIndex > o.colEnd || t.colIndex < o.colStart) && (t = { ...t, colIndex: t.colIndex > o.colEnd ? o.colEnd + 1 : o.colEnd - 1 }, e = n.current.getViewFromLocation(Mr)), !r.vertical && (t.rowIndex > o.rowEnd || t.rowIndex < o.rowStart) && (t = { ...t, rowIndex: t.rowIndex > o.rowEnd ? o.rowEnd + 1 : o.rowEnd - 1 }, e = n.current.getViewFromLocation(Mr)), e.scrollCellCoordsIntoView(t);
10123
10123
  }, m_ = () => !1, rf = ({ gridRef: e, commands: t, layout: n, selection: o, onSelectionChange: r, onSelectionDragStart: i, onSelectionDragEnd: l, selectionPolicy: s = "multiple", newSelectionMode: a = "clear", allowDeselectSelection: c = !0, onFillPreview: h, onFillCancel: p, onFillDone: u, onFill: f, disableFillDrag: m = !f, fillHandleBorderColor: g = "white", hiddenRowsAt: y, hiddenColumnsAt: w, isContentfulCell: b, contentfulCellFinder: S = s_, getDataCoords: C, alwaysScrollToActiveCoords: k = !1, selectionBounds: D, pointerDownInterceptor: T, pointerMoveInterceptor: z, mergedRanges: E, canSelectionSpanMergedCells: _ = m_, onMoveDragStart: v, onMoveDragUpdate: x, onMoveDragEnd: I, onMoveDragDone: M, selectionRenderer: R = Jp, disableMoveDrag: P = !I, getCellCoordsAsRangeCoords: L = Wt.cellToRange, moveDragHitSize: A = 6, moveDragOutlineSize: F = 4, selectionBackgroundColor: H = "rgba(16, 124, 65, 0.1)", selectionBorderColor: O = "rgb(33, 115, 70)", selectionRemoveBorderColor: $ = "rgb(255, 0, 0)", selectionRemoveBackgroundColor: Z = "rgba(250, 10, 10, 0.1)", disableTouchSelection: ee = !1, touchSelectHandleProps: V }) => {
10124
- const B = Y(() => ({ top: D?.top ?? 0, left: D?.left ?? 0, bottom: e.current?.rowCount - 1 || 0, right: e.current?.columnCount - 1 || 0 }), []), N = ft(f, [f]), j = ft(h, [h]), q = ft(p, [p]), te = ft(u, [u]), X = ft(b, [b]), ne = ft(R, [R]), ce = ft((W, U = !1) => lc(W, U, n.getRowOffset, U ? B().bottom : B().top), [n?.getRowOffset]), ie = ft(y ?? ce, [y]), Q = ft((W, U = !1) => lc(W, U, n.getColOffset, U ? B().right : B().left), [n?.getColOffset]), fe = ft(w ?? Q, [w]), [De, Ne] = J(() => Tr(o)), re = K(() => Tr(De), [De]), pe = oe(re), Se = oe(!0);
10124
+ const B = Y(() => ({ top: D?.top ?? 0, left: D?.left ?? 0, bottom: e.current?.rowCount - 1 || 0, right: e.current?.columnCount - 1 || 0 }), []), N = ft(f, [f]), j = ft(h, [h]), U = ft(p, [p]), te = ft(u, [u]), X = ft(b, [b]), ne = ft(R, [R]), ce = ft((W, q = !1) => lc(W, q, n.getRowOffset, q ? B().bottom : B().top), [n?.getRowOffset]), ie = ft(y ?? ce, [y]), Q = ft((W, q = !1) => lc(W, q, n.getColOffset, q ? B().right : B().left), [n?.getColOffset]), fe = ft(w ?? Q, [w]), [De, Ne] = J(() => Tr(o)), re = K(() => Tr(De), [De]), pe = oe(re), Se = oe(!0);
10125
10125
  In(Vo.throttle(() => {
10126
10126
  Ne((W) => {
10127
10127
  Se.current = !0;
10128
- const U = Tr(o);
10129
- return Wt.isEqualSelectionCoords(U, W) ? W : U;
10128
+ const q = Tr(o);
10129
+ return Wt.isEqualSelectionCoords(q, W) ? W : q;
10130
10130
  });
10131
10131
  }, 0), [o]), In(() => {
10132
10132
  pe.current = re;
@@ -10134,63 +10134,63 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10134
10134
  Se.current || !r || Wt.isEqualSelectionCoords(o, re) || r(re);
10135
10135
  }, [re]);
10136
10136
  const qe = Y((W) => {
10137
- Ne((U) => {
10138
- Se.current = !1, U = Tr(U);
10139
- let ue = typeof W == "function" ? W(U.ranges) : W ?? J2;
10140
- if (Wt.isEqualRangesArrays(ue, U.ranges)) return U;
10141
- let ge = Math.max(ue.length ? 0 : -1, Math.min(U.rangeIndex, ue.length - 1)), $e = U.cell;
10137
+ Ne((q) => {
10138
+ Se.current = !1, q = Tr(q);
10139
+ let ue = typeof W == "function" ? W(q.ranges) : W ?? J2;
10140
+ if (Wt.isEqualRangesArrays(ue, q.ranges)) return q;
10141
+ let ge = Math.max(ue.length ? 0 : -1, Math.min(q.rangeIndex, ue.length - 1)), $e = q.cell;
10142
10142
  ge === -1 || Wt.isCellWithinRange($e, ue[ge]) || ($e = { rowIndex: ue[ge].rowStart, colIndex: ue[ge].colStart }), ue.length === 1 && Wt.isSingleCell(ue[0]) && Wt.isCellWithinRange($e, ue[0]) && (ue = [], ge = -1);
10143
10143
  const ot = { cell: $e, ranges: ue, rangeIndex: ge };
10144
- return Wt.isEqualSelectionCoords(ot, U) ? U : ot;
10144
+ return Wt.isEqualSelectionCoords(ot, q) ? q : ot;
10145
10145
  });
10146
10146
  }, []), Ye = ft((W) => {
10147
- Ne((U) => {
10148
- Se.current = !1, U = Tr(U);
10147
+ Ne((q) => {
10148
+ Se.current = !1, q = Tr(q);
10149
10149
  const ue = W ?? of, ge = L(ue);
10150
- if (!Wt.isSingleCell(ge) && U.ranges.length === 0) return { ranges: [ge], rangeIndex: 0, cell: ue };
10151
- if (Wt.isEqualCells(ue, U.cell)) return U;
10152
- let $e = U.ranges, ot = U.rangeIndex;
10153
- U.ranges.length === 1 && (Wt.isSingleCell(U.ranges[0]) && Wt.isCellWithinRange(ue, U.ranges[0]) || !Wt.isCellWithinRange(ue, U.ranges[0])) && ($e = [], ot = -1);
10150
+ if (!Wt.isSingleCell(ge) && q.ranges.length === 0) return { ranges: [ge], rangeIndex: 0, cell: ue };
10151
+ if (Wt.isEqualCells(ue, q.cell)) return q;
10152
+ let $e = q.ranges, ot = q.rangeIndex;
10153
+ q.ranges.length === 1 && (Wt.isSingleCell(q.ranges[0]) && Wt.isCellWithinRange(ue, q.ranges[0]) || !Wt.isCellWithinRange(ue, q.ranges[0])) && ($e = [], ot = -1);
10154
10154
  const Ze = { ranges: $e, rangeIndex: ot, cell: ue };
10155
- return Wt.isEqualSelectionCoords(Ze, U) ? U : Ze;
10155
+ return Wt.isEqualSelectionCoords(Ze, q) ? q : Ze;
10156
10156
  });
10157
10157
  }, [L]), [_t, Rt] = J(null), [Te, St] = J(null), Et = oe(null), [Ge, Dt] = J(null), it = oe(null), ae = oe(null), [Qe, xe] = J(null), ke = oe(null), se = oe(null), Pe = oe(E);
10158
10158
  ye(() => {
10159
10159
  Pe.current = E;
10160
10160
  }, [E]);
10161
- const Le = ft((W, U = { inline: "nearest", block: "nearest" }) => {
10161
+ const Le = ft((W, q = { inline: "nearest", block: "nearest" }) => {
10162
10162
  let { rowIndex: ue, colIndex: ge } = W;
10163
- ue === void 0 && re?.cell && (ue = re.cell.rowIndex), ge === void 0 && re?.cell && (ge = re.cell.colIndex), ue !== void 0 && ge !== void 0 && e.current?.scrollCellCoordsIntoView({ rowIndex: ue, colIndex: ge }, U);
10163
+ ue === void 0 && re?.cell && (ue = re.cell.rowIndex), ge === void 0 && re?.cell && (ge = re.cell.colIndex), ue !== void 0 && ge !== void 0 && e.current?.scrollCellCoordsIntoView({ rowIndex: ue, colIndex: ge }, q);
10164
10164
  }, [re]), Ce = Y((W) => {
10165
- const U = B();
10166
- return W.rowIndex < U.top || W.colIndex < U.left || W.colIndex > U.right || W.rowIndex > U.bottom;
10167
- }, []), He = ft((W, U) => {
10165
+ const q = B();
10166
+ return W.rowIndex < q.top || W.colIndex < q.left || W.colIndex > q.right || W.rowIndex > q.bottom;
10167
+ }, []), He = ft((W, q) => {
10168
10168
  if (!e?.current) return null;
10169
- const ue = { rowStart: Math.min(W.rowIndex, U.rowIndex), colStart: Math.min(W.colIndex, U.colIndex), rowEnd: Math.max(W.rowIndex, U.rowIndex), colEnd: Math.max(W.colIndex, U.colIndex) };
10169
+ const ue = { rowStart: Math.min(W.rowIndex, q.rowIndex), colStart: Math.min(W.colIndex, q.colIndex), rowEnd: Math.max(W.rowIndex, q.rowIndex), colEnd: Math.max(W.colIndex, q.colIndex) };
10170
10170
  if (_?.(ue)) return ue;
10171
- const ge = L(W), $e = L(U), ot = { rowStart: Math.min(ge.rowStart, $e.rowStart), colStart: Math.min(ge.colStart, $e.colStart), rowEnd: Math.max(ge.rowEnd, $e.rowEnd), colEnd: Math.max(ge.colEnd, $e.colEnd) };
10171
+ const ge = L(W), $e = L(q), ot = { rowStart: Math.min(ge.rowStart, $e.rowStart), colStart: Math.min(ge.colStart, $e.colStart), rowEnd: Math.max(ge.rowEnd, $e.rowEnd), colEnd: Math.max(ge.colEnd, $e.colEnd) };
10172
10172
  let Ze;
10173
10173
  return typeof Pe.current == "function" ? Ze = Pe.current(ot) : E && (Ze = E), Ze ? Wt.extendRangeToUnionRanges(ot, Ze) : ot;
10174
- }, [_, L]), le = ft((W, U, ue) => {
10175
- const ge = W.ranges.length > 0 ? W.ranges[W.rangeIndex] : { rowStart: W.cell.rowIndex, colStart: W.cell.colIndex, rowEnd: W.cell.rowIndex, colEnd: W.cell.colIndex }, $e = { rowStart: Math.min(U.rowIndex ?? ge.rowStart, ue.rowIndex ?? ge.rowStart), colStart: Math.min(U.colIndex ?? ge.colStart, ue.colIndex ?? ge.colStart), rowEnd: Math.max(U.rowIndex ?? ge.rowEnd, ue.rowIndex ?? ge.rowEnd), colEnd: Math.max(U.colIndex ?? ge.colEnd, ue.colIndex ?? ge.colEnd) }, ot = { rowIndex: $e.rowStart, colIndex: $e.colStart }, Ze = { rowIndex: $e.rowEnd, colIndex: $e.colEnd };
10174
+ }, [_, L]), le = ft((W, q, ue) => {
10175
+ const ge = W.ranges.length > 0 ? W.ranges[W.rangeIndex] : { rowStart: W.cell.rowIndex, colStart: W.cell.colIndex, rowEnd: W.cell.rowIndex, colEnd: W.cell.colIndex }, $e = { rowStart: Math.min(q.rowIndex ?? ge.rowStart, ue.rowIndex ?? ge.rowStart), colStart: Math.min(q.colIndex ?? ge.colStart, ue.colIndex ?? ge.colStart), rowEnd: Math.max(q.rowIndex ?? ge.rowEnd, ue.rowIndex ?? ge.rowEnd), colEnd: Math.max(q.colIndex ?? ge.colEnd, ue.colIndex ?? ge.colEnd) }, ot = { rowIndex: $e.rowStart, colIndex: $e.colStart }, Ze = { rowIndex: $e.rowEnd, colIndex: $e.colEnd };
10176
10176
  if (!Ce(ot) && !Ce(Ze)) return He(ot, Ze);
10177
- }, [He]), Me = ft((W, U, ue) => {
10177
+ }, [He]), Me = ft((W, q, ue) => {
10178
10178
  if (s === "single" || !pe.current) return;
10179
- const ge = le(pe.current, W, U ?? pe.current.cell);
10179
+ const ge = le(pe.current, W, q ?? pe.current.cell);
10180
10180
  if (!ge) return;
10181
10181
  const $e = pe.current.rangeIndex;
10182
10182
  qe((ot) => ot.length ? ot.map((Ze, At) => $e === At ? ge : Ze) : [ge]), ue && ge && Ye({ colIndex: ge.colStart, rowIndex: ge.rowStart });
10183
- }, []), Fe = Y((W, U, ue) => {
10183
+ }, []), Fe = Y((W, q, ue) => {
10184
10184
  if (!pe.current) return;
10185
- W = { ...pe.current?.cell, ...W }, U = U ?? W;
10186
- const ge = le(pe.current, W, U);
10185
+ W = { ...pe.current?.cell, ...W }, q = q ?? W;
10186
+ const ge = le(pe.current, W, q);
10187
10187
  if (!ge) return;
10188
10188
  const $e = { rowIndex: ge.rowStart, colIndex: ge.colStart }, ot = { ...$e, ...ue };
10189
10189
  a === "clear" ? (ke.current = ot, Ct()) : a === "modify" ? Me($e) : et($e), Ye(ot);
10190
- }, []), et = Y((W, U = W, ue) => {
10191
- s !== "multiple" || !W || Ce(W) || Ce(U) || Ne((ge) => {
10190
+ }, []), et = Y((W, q = W, ue) => {
10191
+ s !== "multiple" || !W || Ce(W) || Ce(q) || Ne((ge) => {
10192
10192
  Se.current = !1, ge = Tr(ge);
10193
- const $e = He(W, U);
10193
+ const $e = He(W, q);
10194
10194
  if (!$e) return ge;
10195
10195
  let ot = ge.ranges.length > 0 ? [...ge.ranges] : [He(ge.cell, ge.cell)];
10196
10196
  ot.push($e);
@@ -10201,8 +10201,8 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10201
10201
  qe(J2);
10202
10202
  }, ut = en.detectIt().primaryInput === "touch", Je = oe(null), yt = oe(null), rt = oe(null), at = K(() => ({ onPointerDown: (W) => {
10203
10203
  if (!e || !e.current) return !1;
10204
- const U = W.nativeEvent, ue = e.current.getViewFromClient(U.clientX, U.clientY);
10205
- if (U.pointerType === "touch" || U.type === "touchstart") return yt.current = { topLeft: ue.getScrollTopLeft(), point: { x: U.clientX, y: U.clientY } }, !0;
10204
+ const q = W.nativeEvent, ue = e.current.getViewFromClient(q.clientX, q.clientY);
10205
+ if (q.pointerType === "touch" || q.type === "touchstart") return yt.current = { topLeft: ue.getScrollTopLeft(), point: { x: q.clientX, y: q.clientY } }, !0;
10206
10206
  const ge = ue.getCellCoordsFromClient(W.nativeEvent.clientX, W.nativeEvent.clientY);
10207
10207
  if (!ge) return !1;
10208
10208
  Je.current = { anchor: ue.getAnchor(), coords: ge }, se.current = null;
@@ -10224,7 +10224,7 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10224
10224
  return et(ge), Sn;
10225
10225
  }
10226
10226
  k && Le(ge), jt && re.ranges.length === 0 || Fe(ge);
10227
- }, onPointerMoveOrWait: Vo.throttle((W, U) => {
10227
+ }, onPointerMoveOrWait: Vo.throttle((W, q) => {
10228
10228
  if (!e?.current || W.pointerType === "touch" || W.type === "touchmove" || !Je.current) return;
10229
10229
  const ue = Je.current.anchor;
10230
10230
  let ge = e.current.getViewFromLocation(ue), $e = ge.getCellCoordsFromClient(W.clientX, W.clientY);
@@ -10235,7 +10235,7 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10235
10235
  const Ht = He(Ze, At);
10236
10236
  ae.current = Ht, Dt(Ht);
10237
10237
  } else Me($e);
10238
- rt.current = U, n1(ge, $e, e);
10238
+ rt.current = q, n1(ge, $e, e);
10239
10239
  }
10240
10240
  }, 60), onPointerUp: (W) => {
10241
10241
  if (Je.current = null, W.pointerType === "touch" || W.type === "touchend") {
@@ -10254,14 +10254,14 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10254
10254
  console.warn(ue);
10255
10255
  }
10256
10256
  if (!it.current) return;
10257
- const U = ae.current;
10257
+ const q = ae.current;
10258
10258
  it.current = null, ae.current = null, Dt(null), Ne((ue) => {
10259
10259
  if (Se.current = !1, (ue = Tr(ue)).ranges.length === 0) return ue;
10260
10260
  let ge = [], $e = -1, ot = ue.cell;
10261
10261
  for (let At = 0; At < ue.ranges.length; At++) {
10262
10262
  const Ht = ue.ranges[At];
10263
- if (Wt.isRangesIntersect(Ht, U)) {
10264
- const Vt = Vo.subtractRect({ top: Ht.rowStart, left: Ht.colStart, bottom: Ht.rowEnd + 1, right: Ht.colEnd + 1 }, { top: U.rowStart, left: U.colStart, bottom: U.rowEnd + 1, right: U.colEnd + 1 });
10263
+ if (Wt.isRangesIntersect(Ht, q)) {
10264
+ const Vt = Vo.subtractRect({ top: Ht.rowStart, left: Ht.colStart, bottom: Ht.rowEnd + 1, right: Ht.colEnd + 1 }, { top: q.rowStart, left: q.colStart, bottom: q.rowEnd + 1, right: q.colEnd + 1 });
10265
10265
  for (let qt = 0; qt < Vt.length; qt++) {
10266
10266
  const Sn = { rowStart: Vt[qt].top, colStart: Vt[qt].left, rowEnd: Vt[qt].bottom - 1, colEnd: Vt[qt].right - 1 };
10267
10267
  ge.push(Sn), Wt.isCellWithinRange(ue.cell, Sn) && ($e = ge.length - 1);
@@ -10272,7 +10272,7 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10272
10272
  const Ze = { cell: ot, rangeIndex: $e, ranges: ge };
10273
10273
  return Wt.isEqualSelectionCoords(Ze, ue) ? ue : Ze;
10274
10274
  });
10275
- }, processTouch: !0, consumeTouch: !1 }), [re, s, c, k, a]), Pt = ft(_l(at), []), Yt = K(() => ({ onSelectionPointerDown: (W, U, ue, ge, $e = re.cell, ot = k, Ze = W.nativeEvent.shiftKey, At = !1) => {
10275
+ }, processTouch: !0, consumeTouch: !1 }), [re, s, c, k, a]), Pt = ft(_l(at), []), Yt = K(() => ({ onSelectionPointerDown: (W, q, ue, ge, $e = re.cell, ot = k, Ze = W.nativeEvent.shiftKey, At = !1) => {
10276
10276
  if (!e || !e.current) return !1;
10277
10277
  W.stopPropagation(), W.preventDefault(), W.nativeEvent.stopImmediatePropagation();
10278
10278
  const Ht = ue ?? e.current.getViewFromClient(W.nativeEvent.clientX, W.nativeEvent.clientY), Vt = ge ?? Ht.getCellCoordsFromClient(W.nativeEvent.clientX, W.nativeEvent.clientY);
@@ -10296,7 +10296,7 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10296
10296
  return et(Vt), ln;
10297
10297
  }
10298
10298
  ot && Le(Vt), ho && re.ranges.length === 0 || Fe(Vt);
10299
- }, onSelectionPointerMoveOrWait: (W, U, ue, ge, $e, ot = re.cell, Ze = !0, At = !1) => {
10299
+ }, onSelectionPointerMoveOrWait: (W, q, ue, ge, $e, ot = re.cell, Ze = !0, At = !1) => {
10300
10300
  if (!e?.current || (W.stopPropagation(), W.preventDefault(), W.stopImmediatePropagation(), !Je.current)) return;
10301
10301
  const Ht = Je.current.anchor;
10302
10302
  let Vt = ge ?? e.current.getViewFromLocation(Ht), qt = $e ?? Vt.getCellCoordsFromClient(W.clientX, W.clientY);
@@ -10317,14 +10317,14 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10317
10317
  console.warn(ue);
10318
10318
  }
10319
10319
  if (!it.current) return;
10320
- const U = ae.current;
10320
+ const q = ae.current;
10321
10321
  it.current = null, ae.current = null, Dt(null), Ne((ue) => {
10322
10322
  if (Se.current = !1, (ue = Tr(ue)).ranges.length === 0) return ue;
10323
10323
  let ge = [], $e = -1, ot = ue.cell;
10324
10324
  for (let At = 0; At < ue.ranges.length; At++) {
10325
10325
  const Ht = ue.ranges[At];
10326
- if (Wt.isRangesIntersect(Ht, U)) {
10327
- const Vt = Vo.subtractRect({ top: Ht.rowStart, left: Ht.colStart, bottom: Ht.rowEnd + 1, right: Ht.colEnd + 1 }, { top: U.rowStart, left: U.colStart, bottom: U.rowEnd + 1, right: U.colEnd + 1 });
10326
+ if (Wt.isRangesIntersect(Ht, q)) {
10327
+ const Vt = Vo.subtractRect({ top: Ht.rowStart, left: Ht.colStart, bottom: Ht.rowEnd + 1, right: Ht.colEnd + 1 }, { top: q.rowStart, left: q.colStart, bottom: q.rowEnd + 1, right: q.colEnd + 1 });
10328
10328
  for (let qt = 0; qt < Vt.length; qt++) {
10329
10329
  const Sn = { rowStart: Vt[qt].top, colStart: Vt[qt].left, rowEnd: Vt[qt].bottom - 1, colEnd: Vt[qt].right - 1 };
10330
10330
  ge.push(Sn), Wt.isCellWithinRange(ue.cell, Sn) && ($e = ge.length - 1);
@@ -10335,10 +10335,10 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10335
10335
  const Ze = { cell: ot, rangeIndex: $e, ranges: ge };
10336
10336
  return Wt.isEqualSelectionCoords(Ze, ue) ? ue : Ze;
10337
10337
  });
10338
- } }), [re, s, c, k, a]), wt = ft((W, U = !1, ue = !1, ge = 0) => {
10338
+ } }), [re, s, c, k, a]), wt = ft((W, q = !1, ue = !1, ge = 0) => {
10339
10339
  if (!e.current || !re.cell) return;
10340
10340
  let $e = re.cell, ot = re.cell;
10341
- if (U && re.ranges.length > 0) {
10341
+ if (q && re.ranges.length > 0) {
10342
10342
  const gt = re.ranges[re.rangeIndex], ln = re.cell;
10343
10343
  switch (W) {
10344
10344
  case Xn:
@@ -10412,11 +10412,11 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10412
10412
  }
10413
10413
  }
10414
10414
  const Sn = { rowIndex: At, colIndex: Ht }, jt = L(Sn), Ut = { rowIndex: jt.rowStart, colIndex: jt.colStart };
10415
- U || (se.current = Sn);
10415
+ q || (se.current = Sn);
10416
10416
  const Zn = Wt.isEqualCells(ke.current, Ut) && Wt.isEqualCells(ke.current, $e);
10417
- if (U && !Zn ? Me(Ut, $e) : Fe(Ut), qt) e.current.scrollTo(qt);
10417
+ if (q && !Zn ? Me(Ut, $e) : Fe(Ut), qt) e.current.scrollTo(qt);
10418
10418
  else {
10419
- if (U && ke.current) {
10419
+ if (q && ke.current) {
10420
10420
  const gt = B();
10421
10421
  if (W === Wn && ke.current.colIndex === gt.left || W === Gn && ke.current.colIndex === gt.right || W === Xn && ke.current.rowIndex === gt.bottom || W === Yn && ke.current.rowIndex === gt.top) return;
10422
10422
  }
@@ -10425,8 +10425,8 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10425
10425
  }, [re, L]), tn = ft((W) => {
10426
10426
  if (!e.current) return;
10427
10427
  if (re.ranges.length === 0) return void wt(W);
10428
- const U = L(re.cell);
10429
- if (Wt.isEqualRangesArrays([U], re.ranges)) return void wt(W);
10428
+ const q = L(re.cell);
10429
+ if (Wt.isEqualRangesArrays([q], re.ranges)) return void wt(W);
10430
10430
  const ue = X2(re, W, L, ie, fe);
10431
10431
  Ne((ge) => {
10432
10432
  Se.current = !1, ge = Tr(ge);
@@ -10442,27 +10442,27 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10442
10442
  }, []), On = ft(() => {
10443
10443
  re.cell && e?.current && Le(re.cell);
10444
10444
  }, [re.cell]), Vn = Y((W = !1) => {
10445
- const U = { rowIndex: B().top };
10446
- W ? Me(U) : Fe(U), Le(U);
10445
+ const q = { rowIndex: B().top };
10446
+ W ? Me(q) : Fe(q), Le(q);
10447
10447
  }, []), no = Y((W = !1) => {
10448
- const U = { rowIndex: B().bottom };
10449
- W ? Me(U) : Fe(U), Le(U);
10448
+ const q = { rowIndex: B().bottom };
10449
+ W ? Me(q) : Fe(q), Le(q);
10450
10450
  }, []), wo = Y((W = !1) => {
10451
- const U = { colIndex: B().left };
10452
- W ? Me(U) : Fe(U), Le(U);
10451
+ const q = { colIndex: B().left };
10452
+ W ? Me(q) : Fe(q), Le(q);
10453
10453
  }, []), Eo = Y((W = !1) => {
10454
- const U = B(), ue = { rowIndex: U.top, colIndex: U.left };
10454
+ const q = B(), ue = { rowIndex: q.top, colIndex: q.left };
10455
10455
  W ? Me(ue) : Fe(ue), Le(ue);
10456
10456
  }, []), Bn = Y((W = !1) => {
10457
- const U = B(), ue = { colIndex: C?.()?.colEnd ?? U.right };
10457
+ const q = B(), ue = { colIndex: C?.()?.colEnd ?? q.right };
10458
10458
  W ? Me(ue) : Fe(ue), Le(ue);
10459
10459
  }, [C]), Kt = Y((W = !1) => {
10460
- const U = B(), ue = { rowIndex: C?.()?.rowEnd ?? U.bottom, colIndex: C?.()?.colEnd ?? U.right };
10460
+ const q = B(), ue = { rowIndex: C?.()?.rowEnd ?? q.bottom, colIndex: C?.()?.colEnd ?? q.right };
10461
10461
  W ? Me(ue) : Fe(ue), Le(ue);
10462
10462
  }, [C]), Qn = ft((W) => {
10463
10463
  if (!e.current || re.ranges.length <= 1) return;
10464
- const U = W === Gn || W === Xn;
10465
- let ue = re.rangeIndex + (U ? -1 : 1);
10464
+ const q = W === Gn || W === Xn;
10465
+ let ue = re.rangeIndex + (q ? -1 : 1);
10466
10466
  ue < 0 ? ue = re.ranges.length - 1 : ue > re.ranges.length - 1 && (ue = 0);
10467
10467
  const ge = re.ranges[ue], $e = X2({ cell: { rowIndex: ge.rowEnd, colIndex: ge.colEnd }, rangeIndex: 0, ranges: [ge] }, Wn, L, ie, fe);
10468
10468
  Ne((ot) => {
@@ -10472,14 +10472,14 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10472
10472
  }), $e.cell && Le($e.cell);
10473
10473
  }, [re, L]), so = ft(() => {
10474
10474
  const W = x7(re);
10475
- Ne((U) => {
10476
- Se.current = !1, U = Tr(U);
10477
- const ue = { ...U, visibleSelection: W };
10478
- return Wt.isEqualSelectionCoords(ue, U) ? U : ue;
10475
+ Ne((q) => {
10476
+ Se.current = !1, q = Tr(q);
10477
+ const ue = { ...q, visibleSelection: W };
10478
+ return Wt.isEqualSelectionCoords(ue, q) ? q : ue;
10479
10479
  }), W.cell && Le(W.cell);
10480
10480
  }, [re, L]), Pn = ft(() => {
10481
10481
  if (!e.current || re.ranges.length === 0) return;
10482
- const W = re.cell, U = re.ranges[re.rangeIndex], ue = x7({ cell: W, rangeIndex: 0, ranges: [U] }), ge = ue.ranges[ue.rangeIndex];
10482
+ const W = re.cell, q = re.ranges[re.rangeIndex], ue = x7({ cell: W, rangeIndex: 0, ranges: [q] }), ge = ue.ranges[ue.rangeIndex];
10483
10483
  let $e;
10484
10484
  $e = ge.rowStart === W.rowIndex && ge.colStart === W.colIndex ? { rowIndex: ge.rowStart, colIndex: ge.colEnd } : ge.rowStart === W.rowIndex && ge.colEnd === W.colIndex ? { rowIndex: ge.rowEnd, colIndex: ge.colStart } : ge.rowEnd === W.rowIndex && ge.colStart === W.colIndex ? { rowIndex: ge.rowEnd, colIndex: ge.colEnd } : { rowIndex: ge.rowStart, colIndex: ge.colStart }, Ne((ot) => {
10485
10485
  ot = Tr(ot);
@@ -10544,37 +10544,37 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10544
10544
  qe((W) => W.slice(0, -1));
10545
10545
  }, []), xn = K(() => {
10546
10546
  const W = B();
10547
- return ((U, ue, ge, $e, ot) => {
10548
- for (let Ze = 0; Ze < U.length; Ze++) {
10549
- const At = U[Ze];
10547
+ return ((q, ue, ge, $e, ot) => {
10548
+ for (let Ze = 0; Ze < q.length; Ze++) {
10549
+ const At = q[Ze];
10550
10550
  if (At.rowStart === ue && At.colStart === ge && At.rowEnd === $e && At.colEnd === ot) return !0;
10551
10551
  }
10552
10552
  return !1;
10553
10553
  })(re.ranges, W.top, W.left, W.bottom, W.right);
10554
- }, [D, re.ranges]), hn = Y((W, U = !0) => {
10555
- ke.current = W, Ye(W), U && W && e?.current && Le(W);
10554
+ }, [D, re.ranges]), hn = Y((W, q = !0) => {
10555
+ ke.current = W, Ye(W), q && W && e?.current && Le(W);
10556
10556
  }, []), Mt = ft((W = !0) => {
10557
- const U = Et.current;
10557
+ const q = Et.current;
10558
10558
  if (!pe.current?.cell) return;
10559
10559
  const ue = pe.current?.ranges, ge = pe.current?.cell;
10560
- if (!ge || !U || !U) return;
10560
+ if (!ge || !q || !q) return;
10561
10561
  let $e = null;
10562
10562
  if ($e = ue.length > 0 ? ue[ue.length - 1] : L(ge), $e.colEnd >= $e.colStart && $e.rowEnd >= $e.rowStart) {
10563
- const ot = S7($e, U);
10563
+ const ot = S7($e, q);
10564
10564
  let Ze = W ? N : j;
10565
10565
  try {
10566
- Ze?.($e, U, ot.direction);
10566
+ Ze?.($e, q, ot.direction);
10567
10567
  } catch (At) {
10568
10568
  console.warn(At);
10569
10569
  } finally {
10570
10570
  W && te?.();
10571
10571
  }
10572
10572
  }
10573
- }, [L]), nn = oe(null), Xo = _l(K(() => ({ onPointerDown: (W, U) => {
10574
- if (rt.current = U, !e || !e.current) return !1;
10573
+ }, [L]), nn = oe(null), Xo = _l(K(() => ({ onPointerDown: (W, q) => {
10574
+ if (rt.current = q, !e || !e.current) return !1;
10575
10575
  const ue = e.current.getViewFromClient(W.nativeEvent.clientX, W.nativeEvent.clientY), ge = ue?.getCellCoordsFromClient(W.nativeEvent.clientX, W.nativeEvent.clientY);
10576
10576
  ge && (W.stopPropagation(), Rt("crosshair"), nn.current = { anchor: ue.getAnchor(), coords: ge });
10577
- }, onPointerMoveOrWait: (W, U) => {
10577
+ }, onPointerMoveOrWait: (W, q) => {
10578
10578
  if (m || !e?.current || !pe.current || !nn.current) return;
10579
10579
  const ue = nn.current.anchor;
10580
10580
  let ge = e.current.getViewFromLocation(ue), $e = ge.getCellCoordsFromClient(W.clientX, W.clientY);
@@ -10612,27 +10612,27 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10612
10612
  if (At && Wt.isRangeWithinRange(Ze, Ht) && (Ze = null), !Wt.isEqualRanges(Ze, Et.current)) {
10613
10613
  if (St(Ze), Et.current = Ze, !Ze) {
10614
10614
  try {
10615
- q?.();
10615
+ U?.();
10616
10616
  } catch {
10617
10617
  }
10618
10618
  return void te?.();
10619
10619
  }
10620
10620
  Mt(!1);
10621
10621
  }
10622
- rt.current = U, n1(ge, $e, e);
10623
- }, onPointerUp: (W, U) => {
10624
- rt.current = U, Promise.resolve(Mt(!0)).finally(() => {
10622
+ rt.current = q, n1(ge, $e, e);
10623
+ }, onPointerUp: (W, q) => {
10624
+ rt.current = q, Promise.resolve(Mt(!0)).finally(() => {
10625
10625
  te?.(), St(null), Et.current = null, nn.current = null, Rt(null), e.current?.focus();
10626
10626
  });
10627
- } }), [L])), er = K(() => ({ onPointerDown: Xo }), [Xo]), [dn, Hn] = J(null), Tn = oe(null), jn = K(() => ({ onPointerDown: (W, U) => {
10628
- if (rt.current = U, !e || !e.current) return !1;
10627
+ } }), [L])), er = K(() => ({ onPointerDown: Xo }), [Xo]), [dn, Hn] = J(null), Tn = oe(null), jn = K(() => ({ onPointerDown: (W, q) => {
10628
+ if (rt.current = q, !e || !e.current) return !1;
10629
10629
  const ue = e.current.getViewFromClient(W.nativeEvent.clientX, W.nativeEvent.clientY), ge = ue?.getCellCoordsFromClient(W.nativeEvent.clientX, W.nativeEvent.clientY);
10630
10630
  if (!ge) return;
10631
10631
  if (T?.(W, ge, re) === !1) return !1;
10632
10632
  W.stopPropagation(), Rt("default");
10633
10633
  const $e = ue.getRelativePointFromClient(0, 0), ot = pe.current?.ranges[pe.current?.ranges.length - 1] ?? Wt.cellToRange(pe.current?.cell), Ze = ue.toClipBounds(ue.getRangeCoordsBounds(ot)), At = { x: 0, y: 0 };
10634
- Ze.x - $e.x > W.nativeEvent.clientX ? At.x = W.nativeEvent.clientX - (Ze.x - $e.x) : W.nativeEvent.clientX >= Ze.x - $e.x + Ze.width && (At.x = Math.max(0, W.nativeEvent.clientX - (Ze.x - $e.x + Ze.width)) + 1), Ze.y - $e.y > W.nativeEvent.clientY ? At.y = W.nativeEvent.clientY - (Ze.y - $e.y) : W.nativeEvent.clientY >= Ze.y - $e.y + Ze.height && (At.y = Math.max(0, W.nativeEvent.clientY - (Ze.y - $e.y + Ze.height)) + 1), v?.(ot, W.nativeEvent, U), Tn.current = { range: ot, anchor: ue.getAnchor(), cell: ge, isMoving: !1, extrusion: At };
10635
- }, onPointerMoveOrWait: (W, U, ue) => {
10634
+ Ze.x - $e.x > W.nativeEvent.clientX ? At.x = W.nativeEvent.clientX - (Ze.x - $e.x) : W.nativeEvent.clientX >= Ze.x - $e.x + Ze.width && (At.x = Math.max(0, W.nativeEvent.clientX - (Ze.x - $e.x + Ze.width)) + 1), Ze.y - $e.y > W.nativeEvent.clientY ? At.y = W.nativeEvent.clientY - (Ze.y - $e.y) : W.nativeEvent.clientY >= Ze.y - $e.y + Ze.height && (At.y = Math.max(0, W.nativeEvent.clientY - (Ze.y - $e.y + Ze.height)) + 1), v?.(ot, W.nativeEvent, q), Tn.current = { range: ot, anchor: ue.getAnchor(), cell: ge, isMoving: !1, extrusion: At };
10635
+ }, onPointerMoveOrWait: (W, q, ue) => {
10636
10636
  if (P || !e?.current || !pe.current || !Tn.current) return;
10637
10637
  const ge = W.clientX - ue.clientX, $e = W.clientY - ue.clientY;
10638
10638
  if (Tn.current.isMoving = Tn.current.isMoving || Math.abs(ge) > Math.max(1, 2) || Math.abs($e) > Math.max(1, 2) || performance.now() - ue.timeStamp > 500, !Tn.current.isMoving) return;
@@ -10640,22 +10640,22 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10640
10640
  let At = e.current.getViewFromLocation(ot), Ht = At.getCellCoordsFromClient(W.clientX - Ze.x, W.clientY - Ze.y, !0);
10641
10641
  if (!Ht) return;
10642
10642
  const Vt = Tn.current.cell, qt = Tn.current.range, Sn = B(), jt = qt.colEnd - qt.colStart + 1, Ut = Math.min(Math.max(0, Vt.colIndex - qt.colStart), jt - 1), Zn = Math.min(Sn.right - jt + 1, Math.max(Sn.left, Ht.colIndex - Ut)), gt = qt.rowEnd - qt.rowStart + 1, ln = Math.min(Math.max(0, Vt.rowIndex - qt.rowStart), gt - 1), ho = Math.min(Sn.bottom - gt + 1, Math.max(Sn.top, Ht.rowIndex - ln)), Xt = { colStart: Zn, colEnd: Zn + jt - 1, rowStart: ho, rowEnd: ho + gt - 1 };
10643
- Wt.isEqualRanges(dn, Xt) && !((mn) => !mn || !rt.current || rt.current.ctrlKey !== mn.ctrlKey || rt.current.shiftKey !== mn.shiftKey || rt.current.altKey !== mn.altKey || rt.current.metaKey !== mn.metaKey)(W) || (Hn(Xt), x?.(Xt, W, U)), rt.current = U, n1(At, Ht, e);
10644
- }, onPointerUp: (W, U) => {
10645
- rt.current = U;
10643
+ Wt.isEqualRanges(dn, Xt) && !((mn) => !mn || !rt.current || rt.current.ctrlKey !== mn.ctrlKey || rt.current.shiftKey !== mn.shiftKey || rt.current.altKey !== mn.altKey || rt.current.metaKey !== mn.metaKey)(W) || (Hn(Xt), x?.(Xt, W, q)), rt.current = q, n1(At, Ht, e);
10644
+ }, onPointerUp: (W, q) => {
10645
+ rt.current = q;
10646
10646
  const ue = () => {
10647
10647
  Hn(null), Tn.current = null, Rt(null), e.current?.focus();
10648
10648
  };
10649
10649
  if (!Tn.current) return void ue();
10650
10650
  const ge = Tn.current.range, $e = dn;
10651
- I?.(ge, W, U), Promise.resolve(ge && $e && M?.(ge, $e, W, U)).finally(() => {
10651
+ I?.(ge, W, q), Promise.resolve(ge && $e && M?.(ge, $e, W, q)).finally(() => {
10652
10652
  ue();
10653
10653
  });
10654
10654
  } }), [dn]), _n = _l(jn), uo = K(() => ({ onPointerDown: _n }), [_n]), ze = oe(null), de = K(() => {
10655
10655
  const W = Wt.isEqualSelectionCoords(re, ze.current) ? ze.current : re;
10656
10656
  return ze.current = W, W;
10657
10657
  }, [re]), mt = Y((W) => {
10658
- let U = null, ue = "br";
10658
+ let q = null, ue = "br";
10659
10659
  const ge = [], $e = { stroke: g, fill: H, strokeWidth: 0.5 }, ot = (jt, Ut, Zn) => {
10660
10660
  const gt = W.toClipBounds(W.getRangeCoordsBounds(jt), dr);
10661
10661
  if (!gt) return;
@@ -10694,7 +10694,7 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10694
10694
  mn && ge.push(ne({ range: Ut, key: `selection-anchor-${jt}`, x: mn.x, y: mn.y, width: Math.max(mn.width, ln), height: Math.max(mn.height, ln), stroke: O, style: { overflow: "hidden" }, strokeWidth: 2 }));
10695
10695
  }
10696
10696
  if (jt === Ze.ranges.length - 1) {
10697
- U = null, ue = null;
10697
+ q = null, ue = null;
10698
10698
  const Xt = Ut.rowStart === B().top && Ut.rowEnd === B().bottom, mn = Ut.colStart === B().left && Ut.colEnd === B().right, qn = W.getRangeCoordsBounds(Ut);
10699
10699
  let vr = null;
10700
10700
  if (Xt || mn) {
@@ -10704,7 +10704,7 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10704
10704
  }
10705
10705
  } else vr = W.toClipBounds(qn, dr);
10706
10706
  if (!vr || vr.width === 0 || vr.height === 0) continue;
10707
- U = { x: vr.x + vr.width + 1, y: vr.y + vr.height + 1 }, vr.width === 0 || vr.height === 0 || Ut.rowStart === B().top && Ut.colStart === B().left && Ut.rowEnd === B().bottom && Ut.colEnd === B().right || (Xt ? (U.y = gt, ue = "tr") : mn && (U.x = gt, ue = "bl"));
10707
+ q = { x: vr.x + vr.width + 1, y: vr.y + vr.height + 1 }, vr.width === 0 || vr.height === 0 || Ut.rowStart === B().top && Ut.colStart === B().left && Ut.rowEnd === B().bottom && Ut.colEnd === B().right || (Xt ? (q.y = gt, ue = "tr") : mn && (q.x = gt, ue = "bl"));
10708
10708
  }
10709
10709
  }
10710
10710
  let Ht = null;
@@ -10718,7 +10718,7 @@ const dr = -10, f_ = Object.freeze({ rowStart: 0, colStart: 0, rowEnd: 0, colEnd
10718
10718
  jt && (Vt = ne({ range: Te, key: "selection-fill-outline", x: jt.x - 1, y: jt.y - 1, width: jt.width + 1, height: jt.height + 1, strokeWidth: 2, stroke: O, strokeDasharray: "3 2" }));
10719
10719
  }
10720
10720
  let qt = null;
10721
- !m && U && !dn && (qt = Jn(ef, { ...U, corner: ue, size: 7.5, borderStroke: `${g} solid`, style: { borderRadius: 1 }, background: O, ...er, key: "fillHandle" }));
10721
+ !m && q && !dn && (qt = Jn(ef, { ...q, corner: ue, size: 7.5, borderStroke: `${g} solid`, style: { borderRadius: 1 }, background: O, ...er, key: "fillHandle" }));
10722
10722
  const Sn = [...ge];
10723
10723
  if (Ht && Sn.push(Ht), Vt && Sn.push(Vt), qt && Sn.push(qt), !ee && ut && Ze?.ranges.length === 1 && Ze.ranges[Ze.ranges.length - 1]) {
10724
10724
  const jt = Ze.ranges[Ze.ranges.length - 1], Ut = jt.rowStart === B().top && jt.rowEnd === B().bottom, Zn = jt.colStart === B().left && jt.colEnd === B().right, gt = { view: W, range: jt, borderStroke: `${O} solid`, background: g, selectionTouchPointerHandler: Yt, ...V, onTouchSelectStart: (ln) => xe(ln), onTouchSelectEnd: () => xe(null), currentTouchAnchor: Qe };
@@ -10745,7 +10745,7 @@ function R1(e, t) {
10745
10745
  const E7 = { "sheetxl-grid": "_sheetxl-grid_h9wwa_7" }, g_ = Object.freeze({ top: 0, left: 0 }), y_ = Object.freeze({ bottom: -4, right: -4 }), b_ = Object.freeze({ horizontal: !0, vertical: !0 }), T7 = [nc, ns, os, Mr], y0 = 3e3, Nd = {}, lf = _e(Ve((e, t) => {
10746
10746
  const { width: n, height: o, rowCount: r = 1, columnCount: i = 1, defaultRowHeight: l, defaultColumnWidth: s, getRowHeight: a, getColumnWidth: c, layout: h, onViewportScroll: p, onImmediateScroll: u, showGridLines: f = !0, gridLineColor: m = "rgb(224, 224, 224)", gridLineRowsProps: g, gridLineColumnsProps: y, clipCells: w = !0, cursor: b, freezeLeft: S = 0, freezeTop: C = 0, freezeLeftProps: k, freezeTopProps: D, cellRenderer: T, onViewportChange: z, onFirstRender: E, overlayRenderer: _, overlayProps: v, overlays: x, overlaysProps: I, allowOverlaysOverflow: M = !1, stageProps: R, stageWrapper: P = null, hiddenRowsAt: L, hiddenColumnsAt: A, hiddenCellAt: F, getVisibleCells: H, zoom: O = 1, enableMouseWheel: $ = !0, onWheelScroll: Z, getCellCoordsAsRangeCoords: ee = Wt.cellToRange, scrollPoint: V = g_, style: B = {}, ...N } = e;
10747
10747
  R1(T), R1(!e?.children);
10748
- const j = ft(u, [u]), q = ft(z, [z]), te = ft(p, [p]), X = ft(Z, [Z]), ne = ft(E, [E]), ce = oe(null), ie = oe(null), Q = oe(null), [fe, De] = lr((je) => je + 1, 0), [Ne, re] = J({ left: V?.left ?? 0, top: V?.top ?? 0, horizontalScrollDirection: null, verticalScrollDirection: null }), pe = oe(null), Se = oe(Ne), { top: qe, left: Ye, verticalScrollDirection: _t, horizontalScrollDirection: Rt } = Ne, Te = oe(!1), St = ((je) => {
10748
+ const j = ft(u, [u]), U = ft(z, [z]), te = ft(p, [p]), X = ft(Z, [Z]), ne = ft(E, [E]), ce = oe(null), ie = oe(null), Q = oe(null), [fe, De] = lr((je) => je + 1, 0), [Ne, re] = J({ left: V?.left ?? 0, top: V?.top ?? 0, horizontalScrollDirection: null, verticalScrollDirection: null }), pe = oe(null), Se = oe(Ne), { top: qe, left: Ye, verticalScrollDirection: _t, horizontalScrollDirection: Rt } = Ne, Te = oe(!1), St = ((je) => {
10749
10749
  const { rowCount: st, columnCount: ct, defaultRowHeight: tt, getRowHeight: ht, defaultColumnWidth: It, getColumnWidth: zt } = je || {}, Ot = oe({ columnMetadataMap: {}, rowMetadataMap: {}, lastMeasuredColumnIndex: -1, lastMeasuredRowIndex: -1, recalcColumnIndices: [], recalcRowIndices: [] }), Bt = ft((nn) => y7({ itemType: "row", itemCount: st, itemSize: ht ?? (() => tt ?? 20), instanceProps: Ot.current, offset: nn }), [st, ht, tt]), Nt = ft((nn) => nn === -1 ? 0 : bl({ itemType: "row", index: nn, itemSize: ht ?? (() => tt ?? 20), instanceProps: Ot.current }).offset, [ht, tt]), fn = ft((nn) => bl({ itemType: "row", index: nn, itemSize: ht ?? (() => tt ?? 20), instanceProps: Ot.current }).size, [ht, tt]), An = ft((nn) => y7({ itemType: "column", itemCount: ct, itemSize: zt ?? (() => It ?? 75), instanceProps: Ot.current, offset: nn }), [ct, zt, It]), vn = ft((nn) => nn === -1 ? 0 : bl({ itemType: "column", index: nn, itemSize: zt ?? (() => It ?? 75), instanceProps: Ot.current }).offset, [zt, It]), Ee = ft((nn) => bl({ itemType: "column", index: nn, itemSize: zt ?? (() => It ?? 75), instanceProps: Ot.current }).size, [zt, It]), [xt, Ft] = lr((nn) => nn + 1, 0), xn = () => ({ getRowOffset: Nt, getColOffset: vn, getRowIndex: Bt, getColIndex: An }), [hn, Mt] = J(() => je ? xn() : null);
10750
10750
  return ye(() => {
10751
10751
  Mt(je ? xn() : null);
@@ -10830,9 +10830,9 @@ const E7 = { "sheetxl-grid": "_sheetxl-grid_h9wwa_7" }, g_ = Object.freeze({ top
10830
10830
  }, [et]);
10831
10831
  const rt = ft(() => ({ containerWidth: ke, containerHeight: se, totalWidth: ut, totalHeight: Je }), [ke, se, Ge]);
10832
10832
  ye(() => {
10833
- !pe.current && Te.current && q({ top: qe, left: Ye, width: ke, height: se, totalWidth: ut, totalHeight: Je });
10833
+ !pe.current && Te.current && U({ top: qe, left: Ye, width: ke, height: se, totalWidth: ut, totalHeight: Je });
10834
10834
  }, [qe, Ye, ut, Je]), ye(() => {
10835
- Te.current && q({ top: qe, left: Ye, width: ke, height: se, totalWidth: ut, totalHeight: Je });
10835
+ Te.current && U({ top: qe, left: Ye, width: ke, height: se, totalWidth: ut, totalHeight: Je });
10836
10836
  }, [ke, se]);
10837
10837
  const at = Y((je, st) => {
10838
10838
  R1(typeof je == "number" && typeof st == "number");
@@ -10866,7 +10866,7 @@ const E7 = { "sheetxl-grid": "_sheetxl-grid_h9wwa_7" }, g_ = Object.freeze({ top
10866
10866
  const Bt = { ...Ot, left: tt, top: ht, horizontalScrollDirection: It, verticalScrollDirection: zt };
10867
10867
  return Se.current = Bt, Bt;
10868
10868
  });
10869
- }, 17)(), pe.current?.top === ht && pe.current?.left === tt || (pe.current = { left: tt, top: ht }, j({ left: tt, top: ht }), q({ left: tt, top: ht, width: ke, height: se, totalWidth: ut, totalHeight: Je })), pn();
10869
+ }, 17)(), pe.current?.top === ht && pe.current?.left === tt || (pe.current = { left: tt, top: ht }, j({ left: tt, top: ht }), U({ left: tt, top: ht, width: ke, height: se, totalWidth: ut, totalHeight: Je })), pn();
10870
10870
  }, [ut, Je, He, le]);
10871
10871
  ye(() => {
10872
10872
  pe.current || On({ left: Ye, top: qe });
@@ -10958,14 +10958,14 @@ const E7 = { "sheetxl-grid": "_sheetxl-grid_h9wwa_7" }, g_ = Object.freeze({ top
10958
10958
  const fn = je.getVisibleColumnOffsets(), An = je.getVisibleRowOffsets(), vn = je.getScrollTopLeft(), Ee = je.getFreezeTopLeft(), xt = vn.left + Ee.left, Ft = vn.top + Ee.top, xn = Math.trunc(xt / y0), hn = Math.trunc(Ft / y0), Mt = {}, nn = (Hn, Tn, jn, _n, uo) => {
10959
10959
  const ze = `view:${Hn.getAnchor()}:cell:${w7(Tn.rowIndex, Tn.colIndex)}`, de = _n.x, mt = _n.y, kt = Math.trunc((xt + de) / y0) - xn, W = Math.trunc((Ft + mt) / y0) - hn;
10960
10960
  Mt[W] || (Mt[W] = {});
10961
- let U = Mt[W][kt];
10962
- U || (U = Mt[W][kt] = []);
10961
+ let q = Mt[W][kt];
10962
+ q || (q = Mt[W][kt] = []);
10963
10963
  let ue = It?.get(ze);
10964
10964
  if (!ue) {
10965
10965
  const ge = (xt + de) % y0, $e = (Ft + mt) % y0;
10966
10966
  ue = T({ key: ze, coords: Tn, bounds: _n, zoom: O, range: jn, view: Hn, value: uo, style: { left: en.boundPixel(ge), top: en.boundPixel($e), width: en.boundPixel(_n.width, !0), height: en.boundPixel(_n.height, !0) } });
10967
10967
  }
10968
- zt?.set(ze, ue), U.push(ue);
10968
+ zt?.set(ze, ue), q.push(ue);
10969
10969
  };
10970
10970
  for (let Hn = 0; Nt && Hn < Nt.length; Hn++) {
10971
10971
  const Tn = Nt[Hn], jn = Tn?.coords ?? Tn;
@@ -10975,19 +10975,19 @@ const E7 = { "sheetxl-grid": "_sheetxl-grid_h9wwa_7" }, g_ = Object.freeze({ top
10975
10975
  const ze = _n && !Wt.isSingleCell(_n);
10976
10976
  if (!ze && F?.(jn)) continue;
10977
10977
  const de = jn.rowIndex, mt = jn.colIndex, kt = An[de], W = fn[mt];
10978
- let U = null;
10979
- kt && W && (U = { x: W.offset, y: kt.offset, width: W.size, height: kt.size });
10978
+ let q = null;
10979
+ kt && W && (q = { x: W.offset, y: kt.offset, width: W.size, height: kt.size });
10980
10980
  const ue = w7(_n.rowStart, _n.colStart);
10981
10981
  if (ze) {
10982
10982
  if (ht.has(ue)) continue;
10983
10983
  ht.add(ue), _n.rowEnd - _n.rowStart > 0 && ct.push(_n), _n.colEnd - _n.colStart > 0 && tt.push(_n);
10984
10984
  }
10985
- if (ze && (U = k7(je.getLayout(), _n)), !U) {
10985
+ if (ze && (q = k7(je.getLayout(), _n)), !q) {
10986
10986
  console.warn("no bounds for cell", ue);
10987
10987
  continue;
10988
10988
  }
10989
10989
  const ge = Tn?.value;
10990
- nn(je, jn, _n, U, ge);
10990
+ nn(je, jn, _n, q, ge);
10991
10991
  }
10992
10992
  const Xo = xt % y0, er = Ft % y0, dn = Object.keys(Mt);
10993
10993
  for (let Hn = 0; Hn < dn.length; Hn++) {
@@ -11208,14 +11208,14 @@ _e(Ve((e, t) => {
11208
11208
  }, [c, P]), In(() => {
11209
11209
  h?.({ width: T === "wrap" ? void 0 : P.width + I, height: P.height });
11210
11210
  }, [P, h]);
11211
- const H = ft(i, [i]), O = ft((q) => {
11212
- if (b.dirty === q) return;
11211
+ const H = ft(i, [i]), O = ft((U) => {
11212
+ if (b.dirty === U) return;
11213
11213
  const te = { ...b };
11214
- te.dirty = q, y.current, S(te), H?.(te);
11215
- }, [b]), $ = ft((q) => {
11216
- if (b.editMode === q) return;
11214
+ te.dirty = U, y.current, S(te), H?.(te);
11215
+ }, [b]), $ = ft((U) => {
11216
+ if (b.editMode === U) return;
11217
11217
  const te = { ...b };
11218
- te.editMode = q, S(te), H?.(te);
11218
+ te.editMode = U, S(te), H?.(te);
11219
11219
  }, [b]), Z = ft(() => {
11220
11220
  try {
11221
11221
  return l?.(b), a?.(), !0;
@@ -11224,19 +11224,19 @@ _e(Ve((e, t) => {
11224
11224
  }
11225
11225
  }, [l, b]), ee = ft(() => {
11226
11226
  S(n), s?.(), a?.();
11227
- }, [s, n]), V = ft((q) => {
11227
+ }, [s, n]), V = ft((U) => {
11228
11228
  if (!y.current) return;
11229
- if (q.isDefaultPrevented(), !(q.isTrusted || q.nativeEvent.ctrlKey || q.nativeEvent.metaKey || q.nativeEvent.altKey || q.nativeEvent.isComposing) && e5.indexOf(q.nativeEvent.key) !== -1) {
11229
+ if (U.isDefaultPrevented(), !(U.isTrusted || U.nativeEvent.ctrlKey || U.nativeEvent.metaKey || U.nativeEvent.altKey || U.nativeEvent.isComposing) && e5.indexOf(U.nativeEvent.key) !== -1) {
11230
11230
  const X = { ...b };
11231
- return X.dirty = q.nativeEvent.key === "Backspace" ? "" : (X.dirty ?? "") + q.key, S(X), H?.(X), void q.preventDefault();
11231
+ return X.dirty = U.nativeEvent.key === "Backspace" ? "" : (X.dirty ?? "") + U.key, S(X), H?.(X), void U.preventDefault();
11232
11232
  }
11233
- const te = q.nativeEvent.shiftKey;
11234
- if (q.which === 27) return q.preventDefault(), void ee();
11235
- if (q.which === 113) return $(!0), void q.preventDefault();
11236
- if (q.which === 13 && (q.preventDefault(), Z() && p?.(te ? Xn : Yn)), q.which === 9) return q.preventDefault(), void (Z() && p?.(te ? Gn : Wn));
11233
+ const te = U.nativeEvent.shiftKey;
11234
+ if (U.which === 27) return U.preventDefault(), void ee();
11235
+ if (U.which === 113) return $(!0), void U.preventDefault();
11236
+ if (U.which === 13 && (U.preventDefault(), Z() && p?.(te ? Xn : Yn)), U.which === 9) return U.preventDefault(), void (Z() && p?.(te ? Gn : Wn));
11237
11237
  if (!b.editMode) {
11238
11238
  let X = null;
11239
- switch (q.which) {
11239
+ switch (U.which) {
11240
11240
  case 37:
11241
11241
  X = Gn;
11242
11242
  break;
@@ -11255,25 +11255,25 @@ _e(Ve((e, t) => {
11255
11255
  ye(() => {
11256
11256
  N(!1);
11257
11257
  }, []);
11258
- const j = Oc(t, () => ({ startEdit(q) {
11259
- let te = q?.initialSelection;
11258
+ const j = Oc(t, () => ({ startEdit(U) {
11259
+ let te = U?.initialSelection;
11260
11260
  if (!te) {
11261
11261
  const ne = y.current.value.length ?? 0;
11262
11262
  te = { start: ne, end: ne, direction: "forward" };
11263
11263
  }
11264
11264
  y.current?.setSelectionRange(te.start, te.end, te.direction);
11265
- const X = { ...n, editMode: q?.editMode ?? !1 };
11266
- q?.text !== void 0 && (X.dirty = q.text), X.editMode === n.editMode && X.dirty === n.dirty || (S(X), H?.(X));
11265
+ const X = { ...n, editMode: U?.editMode ?? !1 };
11266
+ U?.text !== void 0 && (X.dirty = U.text), X.editMode === n.editMode && X.dirty === n.dirty || (S(X), H?.(X));
11267
11267
  }, submitEdit: () => Z(), cancelEdit() {
11268
11268
  ee();
11269
11269
  }, autoFocus() {
11270
11270
  y.current?.focus();
11271
- }, getLineHeight: () => P?.maxLineHeight ?? R, dispatchEvent: (q) => y.current.dispatchEvent(q) }), [n, r]);
11272
- return d("div", { ref: j, ...g, style: { background: "transparent", display: "flex", flexGrow: 1, alignSelf: "center", height: P.height, maxWidth: "100%", maxHeight: "100%", ...f }, children: d("textarea", { spellCheck: "false", ref: y, value: x, autoFocus: !1, disabled: B, name: "cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", position: "relative", fontSize: `${M}px`, fontFamily: `${z}`, fontWeight: `${_}`, fontStyle: `${v}`, padding: "0px", marginRight: C === "right" ? "3px" : "0px", marginLeft: C === "left" ? "2px" : "0px", lineHeight: A, height: P.height, textRendering: "geometricPrecision", letterSpacing: "-0.25px", boxSizing: "border-box", borderWidth: 0, outline: "none", resize: "none", overflow: "hidden", verticalAlign: "baseline", textAlign: C, background: "transparent", color: D, marginBottom: "0px", userSelect: "text", maxHeight: "100%", whiteSpace: T === "wrap" ? "break-spaces" : "pre", wordWrap: "break-word" }, onChange: (q) => {
11273
- O(q.target.value);
11274
- }, onDoubleClick: (q) => {
11275
- q.isTrusted;
11276
- }, onMouseDown: (q) => {
11271
+ }, getLineHeight: () => P?.maxLineHeight ?? R, dispatchEvent: (U) => y.current.dispatchEvent(U) }), [n, r]);
11272
+ return d("div", { ref: j, ...g, style: { background: "transparent", display: "flex", flexGrow: 1, alignSelf: "center", height: P.height, maxWidth: "100%", maxHeight: "100%", ...f }, children: d("textarea", { spellCheck: "false", ref: y, value: x, autoFocus: !1, disabled: B, name: "cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", position: "relative", fontSize: `${M}px`, fontFamily: `${z}`, fontWeight: `${_}`, fontStyle: `${v}`, padding: "0px", marginRight: C === "right" ? "3px" : "0px", marginLeft: C === "left" ? "2px" : "0px", lineHeight: A, height: P.height, textRendering: "geometricPrecision", letterSpacing: "-0.25px", boxSizing: "border-box", borderWidth: 0, outline: "none", resize: "none", overflow: "hidden", verticalAlign: "baseline", textAlign: C, background: "transparent", color: D, marginBottom: "0px", userSelect: "text", maxHeight: "100%", whiteSpace: T === "wrap" ? "break-spaces" : "pre", wordWrap: "break-word" }, onChange: (U) => {
11273
+ O(U.target.value);
11274
+ }, onDoubleClick: (U) => {
11275
+ U.isTrusted;
11276
+ }, onMouseDown: (U) => {
11277
11277
  $(!0);
11278
11278
  }, onKeyDown: V }) });
11279
11279
  })), _e((e) => {
@@ -11341,10 +11341,10 @@ const df = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30,
11341
11341
  (it !== void 0 || ee || V || C !== L) && (Object.keys(ae).length === 1 && ae.background === "none" || (Z = null, B = d("div", { className: "fill", style: { marginLeft: `${ke}px`, marginTop: `${se}px`, left: A * s, width: Mn.boundPixel(L * s - ke + 1 + ee), height: Mn.boundPixel(o.height - se + 1 + V), ...ae } }, "background")));
11342
11342
  }
11343
11343
  let N = null;
11344
- const j = k.getComments(), q = k.getWarnings(), te = k.getErrors();
11345
- if (j || v || te.length > 0 || q.length > 0) {
11344
+ const j = k.getComments(), U = k.getWarnings(), te = k.getErrors();
11345
+ if (j || v || te.length > 0 || U.length > 0) {
11346
11346
  const it = { size: 7 * s, darkMode: z, cellWidth: L * s + 2, cellHeight: S * s + 2, style: { top: -1, left: A * s - 1 } };
11347
- N = N ?? [], (q.length > 0 || te.length > 0 || v) && N.push(d(R7, { anchorLocation: _o.TopLeft, ...it }, `indicator-${N.length}`)), j && N.push(d(R7, { anchorLocation: _o.TopRight, ...it }, `indicator-${N.length}`));
11347
+ N = N ?? [], (U.length > 0 || te.length > 0 || v) && N.push(d(R7, { anchorLocation: _o.TopLeft, ...it }, `indicator-${N.length}`)), j && N.push(d(R7, { anchorLocation: _o.TopRight, ...it }, `indicator-${N.length}`));
11348
11348
  }
11349
11349
  const X = T.getFont();
11350
11350
  let ne = E?.conditionalColor;
@@ -11626,7 +11626,7 @@ const df = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30,
11626
11626
  Le = bt.Direction.Down;
11627
11627
  }
11628
11628
  !Le || Qe || xe || ke || se || R.editMode ? R.editMode && (Le || M_.includes(ae.which)) && ae.stopPropagation() : B();
11629
- }, [R, u, L]), q = Y(() => {
11629
+ }, [R, u, L]), U = Y(() => {
11630
11630
  A.current?.focus(), setTimeout(() => {
11631
11631
  A.current?.select();
11632
11632
  }, 0);
@@ -11665,7 +11665,7 @@ const df = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30,
11665
11665
  return Z(ke), M({ start: A.current.selectionStart + xe.length, end: A.current.selectionStart + xe.length, direction: "forward" }), !0;
11666
11666
  } }), [A.current]), fe = K(() => ({ contains: (ae) => A.current?.contains(ae) || !1, focus() {
11667
11667
  A.current.focus();
11668
- } }), []), De = K(() => [new Tt("selectAll", fe, { label: "Select All", description: "Select all of the text in cell.", shortcut: { key: "a", modifiers: [Re.Ctrl] } }, q), new Tt("startEditValueAbove", fe, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: '"', modifiers: [Re.Ctrl] }, { key: '"', modifiers: [Re.Ctrl, Re.Shift] }] }, X), new Tt("startEditCurrentTime", fe, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [Re.Ctrl, Re.Shift] } }, ne), new Tt("startEditCurrentDate", fe, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [Re.Ctrl] } }, ce), new Ie("relativeReferencesToggle", fe, { label: "Toggle References", description: "Toggles cell references from relative to absolute, to partially absolute, back to relative again.", shortcut: { key: "F4" } }, te), new Ie("toggleEditorFocus", fe, { label: "Toggle Editor Focus", description: "Moves focus between editors such as formula editor and inline editor.", shortcut: { key: "F2", modifiers: [Re.Ctrl] } })], []), Ne = K(() => {
11668
+ } }), []), De = K(() => [new Tt("selectAll", fe, { label: "Select All", description: "Select all of the text in cell.", shortcut: { key: "a", modifiers: [Re.Ctrl] } }, U), new Tt("startEditValueAbove", fe, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: '"', modifiers: [Re.Ctrl] }, { key: '"', modifiers: [Re.Ctrl, Re.Shift] }] }, X), new Tt("startEditCurrentTime", fe, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [Re.Ctrl, Re.Shift] } }, ne), new Tt("startEditCurrentDate", fe, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [Re.Ctrl] } }, ce), new Ie("relativeReferencesToggle", fe, { label: "Toggle References", description: "Toggles cell references from relative to absolute, to partially absolute, back to relative again.", shortcut: { key: "F4" } }, te), new Ie("toggleEditorFocus", fe, { label: "Toggle Editor Focus", description: "Moves focus between editors such as formula editor and inline editor.", shortcut: { key: "F2", modifiers: [Re.Ctrl] } })], []), Ne = K(() => {
11669
11669
  let ae = null;
11670
11670
  const Qe = () => ({ contains: (xe) => A.current?.contains(xe) || !1, focus() {
11671
11671
  A.current.focus();
@@ -12205,9 +12205,9 @@ const j7 = (e, t, n = null) => {
12205
12205
  }, [T, L, l]), In(() => {
12206
12206
  H(null), A(n?.getSheet().getView().getZoomScale() / 100), De(Q());
12207
12207
  }, [n]);
12208
- const V = Y((xe) => n.at(xe)?.isHidden() || n.at(xe)?.getSize() === 0, [n]), B = Y((xe, ke) => n.hiddenHeadersAt(xe, ke), [V]), N = me((xe) => n.isSelected(xe), [n]), j = me((xe) => n.isSelectedAll(xe), [n]), q = Y(() => n.getMinSize(), [n]), te = Y(() => n.getMaxSize(), [n]), X = me((xe, ke, se) => {
12208
+ const V = Y((xe) => n.at(xe)?.isHidden() || n.at(xe)?.getSize() === 0, [n]), B = Y((xe, ke) => n.hiddenHeadersAt(xe, ke), [V]), N = me((xe) => n.isSelected(xe), [n]), j = me((xe) => n.isSelectedAll(xe), [n]), U = Y(() => n.getMinSize(), [n]), te = Y(() => n.getMaxSize(), [n]), X = me((xe, ke, se) => {
12209
12209
  ke /= L;
12210
- const Pe = { size: ke = Math.max(q(), Math.min(Jt.roundAccurately(ke, q()), te())), hidden: !1 }, Le = [];
12210
+ const Pe = { size: ke = Math.max(U(), Math.min(Jt.roundAccurately(ke, U()), te())), hidden: !1 }, Le = [];
12211
12211
  if (ke <= 0 && (Pe.hidden = !0, Pe.size = se), Le.push({ address: { min: xe, max: xe }, update: Pe }), ke < 0) {
12212
12212
  const Ce = T === bt.Orientation.Column, He = Ce ? fe.getColOffset : fe.getRowOffset, le = Ce ? fe.getColIndex : fe.getRowIndex, Me = He(xe);
12213
12213
  let Fe = le(Me + ke);
@@ -12561,8 +12561,8 @@ The content is not applied.` }), new Ie("pasteFormulas", L, { label: "Paste Form
12561
12561
  X.removeEventListener("pointerdown", j);
12562
12562
  };
12563
12563
  }, [n?.getStage()]);
12564
- const q = $o(t, () => ({}), []), te = oe(null);
12565
- return d("div", { className: Er(r, "sheet-selection", "_sheet-selection_12wyx_5"), style: { position: "absolute", width: g?.width, height: g?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: Nl([q, te]), ...m, children: B(n) });
12564
+ const U = $o(t, () => ({}), []), te = oe(null);
12565
+ return d("div", { className: Er(r, "sheet-selection", "_sheet-selection_12wyx_5"), style: { position: "absolute", width: g?.width, height: g?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: Nl([U, te]), ...m, children: B(n) });
12566
12566
  })), i1 = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), tE = { fireOnModelChange: !1 }, nE = _e(Ve((e, t) => {
12567
12567
  const { children: n, view: o, movable: r, onRefLoad: i, onRefUnload: l, onHide: s, onShow: a, onUnFocus: c, isDragging: h, updateFrameBounds: p, dragStart: u, style: f, disabled: m, renderMovable: g, ...y } = e, [w, b] = J(i1), [S, C] = J(null), [k, D] = J(!1), T = oe(null);
12568
12568
  In(() => {
@@ -12635,13 +12635,13 @@ The content is not applied.` }), new Ie("pasteFormulas", L, { label: "Paste Form
12635
12635
  V.current = Te;
12636
12636
  }), []), N = oe(null), j = me(async (Te, St) => {
12637
12637
  N.current = St, await (async () => !(!await B.then() || !H.current))() && N.current === St && H.current.dragStart(Te, St);
12638
- }, [k]), [q, te] = J(!1), X = oe(null), ne = oe(null), ce = me(async (Te = null) => {
12638
+ }, [k]), [U, te] = J(!1), X = oe(null), ne = oe(null), ce = me(async (Te = null) => {
12639
12639
  if (Te || (Te = r.getMovableSelection()[0]), !Te) return S?.(), !1;
12640
12640
  const St = M.current.get(Te);
12641
12641
  St ? (await Jt.whenFocus(St), St.focus(), ne.current = St, X.current = null) : X.current = Te;
12642
12642
  }, [r]);
12643
12643
  ye(() => {
12644
- q && k.length > 0 && ne.current !== k[0] && ce(), v.current && (b?.(), v.current = !1);
12644
+ U && k.length > 0 && ne.current !== k[0] && ce(), v.current && (b?.(), v.current = !1);
12645
12645
  }, [k]);
12646
12646
  const ie = K(() => {
12647
12647
  const Te = o.search({ address: n.getVisibleRangeCoords(), excludeHidden: !0 });
@@ -12726,7 +12726,7 @@ The content is not applied.` }), new Ie("pasteFormulas", L, { label: "Paste Form
12726
12726
  qe.current = !0;
12727
12727
  const Te = Ue.lazy(async () => {
12728
12728
  try {
12729
- const St = await import("./Bi-5-fOHXnnsSVMH.mjs");
12729
+ const St = await import("./D3BuQogO8ThjEmP8.mjs");
12730
12730
  return qe.current = !1, Ye.current = !0, D([...k]), St;
12731
12731
  } catch (St) {
12732
12732
  return console.warn(St), V.current?.(!1), null;
@@ -13178,14 +13178,14 @@ The content is not applied.` }), new Ie("pasteFormulas", L, { label: "Paste Form
13178
13178
  In(() => {
13179
13179
  V.current = !0;
13180
13180
  }, [n]);
13181
- const B = n?.getStyles(), N = K(() => Z7(o, B), [o, B]), j = K(() => Z7(r, B), [r, B]), { body: q = {}, buttonSurface: te = {} } = N, { header: X = {}, headerSelect: ne = {}, headerSelectAll: ce = {} } = j, ie = oe(null), [Q, fe] = J(() => n?.getView()), De = (Q?.getZoomScale() ?? 100) / 100, Ne = K(() => ({ vertical: Q.isShowColumnGridlines() && De >= 0.4, horizontal: Q.isShowRowGridlines() && De >= 0.4 }), [Q?.isShowColumnGridlines(), Q?.isShowRowGridlines(), De]), re = K(() => {
13181
+ const B = n?.getStyles(), N = K(() => Z7(o, B), [o, B]), j = K(() => Z7(r, B), [r, B]), { body: U = {}, buttonSurface: te = {} } = N, { header: X = {}, headerSelect: ne = {}, headerSelectAll: ce = {} } = j, ie = oe(null), [Q, fe] = J(() => n?.getView()), De = (Q?.getZoomScale() ?? 100) / 100, Ne = K(() => ({ vertical: Q.isShowColumnGridlines() && De >= 0.4, horizontal: Q.isShowRowGridlines() && De >= 0.4 }), [Q?.isShowColumnGridlines(), Q?.isShowRowGridlines(), De]), re = K(() => {
13182
13182
  if (Q?.getGridLineColor()) return { strokeDasharray: "1,1" };
13183
13183
  }, [Q?.getGridLineColor(), N]), pe = l ?? Q?.isShowColumnHeaders(), Se = a ?? Q?.isShowRowHeaders(), [qe, Ye] = J({ width: 0, height: 0 }), _t = K(() => {
13184
13184
  let ze = 40, de = 20;
13185
13185
  const mt = n?.getStyles().getNormal().getFont();
13186
13186
  if (qe.width > 0 && qe.height > 0) {
13187
- const kt = mt?.toCSS()?.fontFamily ?? N.header.text.fontFamily, W = mt?.getSize() ?? N.header.text.fontSize, U = Dn.getSharedMeasurer()("" + qe.height, Math.ceil(W * Dn.getDeviceScale()), kt);
13188
- ze = U.width, de = U.lineHeight;
13187
+ const kt = mt?.toCSS()?.fontFamily ?? N.header.text.fontFamily, W = mt?.getSize() ?? N.header.text.fontSize, q = Dn.getSharedMeasurer()("" + qe.height, Math.ceil(W * Dn.getDeviceScale()), kt);
13188
+ ze = q.width, de = q.lineHeight;
13189
13189
  }
13190
13190
  return { width: Math.round(ze + 5), height: Math.round(de + 3) };
13191
13191
  }, [qe, N?.header.text, n]), Rt = Se ? De * _t.width : X.edgeStrokeWidth, Te = pe ? De * _t.height : X.edgeStrokeWidth, St = Math.max(F, (n?.getColumnHeaders().getDefaultSize() ?? _t.width) + Rt + 1), Et = Math.max(H, (n?.getRowHeaders().getDefaultSize() ?? _t.height) + Te + 1), Ge = oe(/* @__PURE__ */ new Map()), Dt = oe(null), it = () => ({ getColOffset: (ze) => n.getColumnHeaders().findOffset(ze), getColIndex: (ze) => n.getColumnHeaders().findIndex(ze), getRowOffset: (ze) => n.getRowHeaders().findOffset(ze), getRowIndex: (ze) => n.getRowHeaders().findIndex(ze) }), [ae, Qe] = J(() => it()), [xe, ke] = J(!1), [se, Pe] = J(null), Le = !0, Ce = N.selection?.strokeFill, He = Y(() => Ko.current, []), [le, Me] = J(), Fe = me((ze) => {
@@ -13211,7 +13211,7 @@ The content is not applied.` }), new Ie("pasteFormulas", L, { label: "Paste Form
13211
13211
  }, [rt, at] = J(() => yt(n.getView().getFreezePanes())), Pt = d0(), Yt = Y(() => ie.current, []), wt = me((ze) => {
13212
13212
  Pt.setMode((de) => de?.key === "edit" ? { ...de, args: { ...de.args } } : { key: "edit", args: { stateAndCoords: null, start: ze } });
13213
13213
  }, []), tn = me(() => le, [le]), pn = function(ze) {
13214
- const { sheet: de, onRepeatCommandChange: mt, bodyStyle: kt, commands: W, target: U, notifier: ue, onStartEdit: ge, getViewport: $e } = ze, [ot, Ze] = J(null), [At, Ht] = J(null), Vt = oe(null), qt = me(ge, [ge]), Sn = me($e, [$e]), [jt, Ut] = J(), [Zn, gt] = J(() => de?.getStyles().parseColor(Qd.Scheme.Bg2)), [ln, ho] = J(() => de?.getStyles().getNormal().getFont().getFill()), Xt = d0();
13214
+ const { sheet: de, onRepeatCommandChange: mt, bodyStyle: kt, commands: W, target: q, notifier: ue, onStartEdit: ge, getViewport: $e } = ze, [ot, Ze] = J(null), [At, Ht] = J(null), Vt = oe(null), qt = me(ge, [ge]), Sn = me($e, [$e]), [jt, Ut] = J(), [Zn, gt] = J(() => de?.getStyles().parseColor(Qd.Scheme.Bg2)), [ln, ho] = J(() => de?.getStyles().getNormal().getFont().getFill()), Xt = d0();
13215
13215
  oe(Xt.getMode()).current = Xt.getMode();
13216
13216
  const mn = Fh(), [qn, vr] = J(Jt.EmptyArray), H0 = Y(() => {
13217
13217
  if (Vt.current !== de) return;
@@ -13250,7 +13250,7 @@ The content is not applied.` }), new Ie("pasteFormulas", L, { label: "Paste Form
13250
13250
  let un = null;
13251
13251
  if (nt !== !1 && he) {
13252
13252
  const oo = nt ?? dt;
13253
- un = new Tt(he.key(), U, { label: oo, description: oo }, Cn);
13253
+ un = new Tt(he.key(), q, { label: oo, description: oo }, Cn);
13254
13254
  }
13255
13255
  mt(un);
13256
13256
  }
@@ -13510,85 +13510,85 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" }) !== "Con
13510
13510
  nt && (he = nt.toTextUnformatted(!0));
13511
13511
  }
13512
13512
  qt?.({ text: he });
13513
- }, [de]), [Wl, Wm] = lr((he) => he + 1, 0), [Rs, Ji] = lr((he) => he + 1, 0), v5 = K(() => [new Ie("gridlinesToggle", U, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new Ie("sheetViewToggleGridlinesRows", U, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new Ie("sheetViewToggleGridlinesColumns", U, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new Ie("sheetViewFormatGridlinesColor", U, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new Ie("sheetViewToggleShowHeadings", U, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new Ie("sheetViewToggleShowHeadingRows", U, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new Ie("sheetViewToggleShowHeadingColumns", U, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new Ie("sheetViewToggleShowHeadingsNumeric", U, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [Re.Ctrl, Re.Shift] } }), new Ie("sheetViewToggleFormulaView", U, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", shortcut: [{ key: "`", modifiers: [Re.Ctrl] }, { key: "`", modifiers: [Re.Ctrl, Re.Shift] }] }), new Ie("sheetViewToggleShowZeros", U, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank." }), new Tt("selectComments", U, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [Re.Ctrl, Re.Shift] } }, () => $m()), new Ie("selectAll", U, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [Re.Ctrl] }, { key: "Space", modifiers: [Re.Ctrl, Re.Shift] }] }, (he = !1) => b5(!1, he)), new Tt("selectRegion", U, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [Re.Ctrl, Re.Shift] } }, () => b5(!0, !1)), new Tt("breakSelection", U, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [Re.Ctrl, Re.Alt] } }, () => Hm()), new Tt("formatTextRotate0", U, { label: "No Text Rotation", description: "Remove all text rotation." }), new Tt("formatTextRotate45", U, { label: "Angle Clockwise", description: "Angle text 45 degrees downward." }), new Tt("formatTextRotate90", U, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left." }), new Tt("formatTextRotate270", U, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right." }), new Tt("formatTextRotate315", U, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward." }), new Ie("formatTextRotateCustom", U, { label: "Custom Text Rotation", description: "Angle your text using a custom angle." }), new Tt("formatTextRotateVertical", U, { label: "Vertical Text", description: "Stack text vertically." }), new Tt("sortAscending", U, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest." }, function() {
13513
+ }, [de]), [Wl, Wm] = lr((he) => he + 1, 0), [Rs, Ji] = lr((he) => he + 1, 0), v5 = K(() => [new Ie("gridlinesToggle", q, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new Ie("sheetViewToggleGridlinesRows", q, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new Ie("sheetViewToggleGridlinesColumns", q, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new Ie("sheetViewFormatGridlinesColor", q, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new Ie("sheetViewToggleShowHeadings", q, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new Ie("sheetViewToggleShowHeadingRows", q, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new Ie("sheetViewToggleShowHeadingColumns", q, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new Ie("sheetViewToggleShowHeadingsNumeric", q, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [Re.Ctrl, Re.Shift] } }), new Ie("sheetViewToggleFormulaView", q, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", shortcut: [{ key: "`", modifiers: [Re.Ctrl] }, { key: "`", modifiers: [Re.Ctrl, Re.Shift] }] }), new Ie("sheetViewToggleShowZeros", q, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank." }), new Tt("selectComments", q, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [Re.Ctrl, Re.Shift] } }, () => $m()), new Ie("selectAll", q, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [Re.Ctrl] }, { key: "Space", modifiers: [Re.Ctrl, Re.Shift] }] }, (he = !1) => b5(!1, he)), new Tt("selectRegion", q, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [Re.Ctrl, Re.Shift] } }, () => b5(!0, !1)), new Tt("breakSelection", q, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [Re.Ctrl, Re.Alt] } }, () => Hm()), new Tt("formatTextRotate0", q, { label: "No Text Rotation", description: "Remove all text rotation." }), new Tt("formatTextRotate45", q, { label: "Angle Clockwise", description: "Angle text 45 degrees downward." }), new Tt("formatTextRotate90", q, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left." }), new Tt("formatTextRotate270", q, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right." }), new Tt("formatTextRotate315", q, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward." }), new Ie("formatTextRotateCustom", q, { label: "Custom Text Rotation", description: "Angle your text using a custom angle." }), new Tt("formatTextRotateVertical", q, { label: "Vertical Text", description: "Stack text vertically." }), new Tt("sortAscending", q, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest." }, function() {
13514
13514
  $c(this, { reverse: !1 }, !1);
13515
- }), new Tt("sortDescending", U, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest." }, function() {
13515
+ }), new Tt("sortDescending", q, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest." }, function() {
13516
13516
  $c(this, { reverse: !0 }, !1);
13517
- }), new Tt("sortCustom", U, { label: "Custom Sort…", scopedLabels: { sort: "Custom…" }, description: "Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts." }, function() {
13517
+ }), new Tt("sortCustom", q, { label: "Custom Sort…", scopedLabels: { sort: "Custom…" }, description: "Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts." }, function() {
13518
13518
  $c(this, {}, !0);
13519
- }), new Ie("protectionSheetToggle", U, { label: "Protect Sheet", scopedLabels: { sheet: "Protected" }, description: `Prevent unwanted changes from others by limiting their ability to edit.
13520
- For example, you can prevent people from editing locked cells or making formatting changes.` }), new Ie("formatSheetTabColor", U, { label: "Tab Color", description: "Color the tab to help differentiate for other sheets." }), new Ie("formatCellStyle", U, { label: "Cell Styles", scopedLabels: { cellStyle: "Apply" }, description: "A colorful style is a great way to make important data stand out on the sheet." }, function(he) {
13519
+ }), new Ie("protectionSheetToggle", q, { label: "Protect Sheet", scopedLabels: { sheet: "Protected" }, description: `Prevent unwanted changes from others by limiting their ability to edit.
13520
+ For example, you can prevent people from editing locked cells or making formatting changes.` }), new Ie("formatSheetTabColor", q, { label: "Tab Color", description: "Color the tab to help differentiate for other sheets." }), new Ie("formatCellStyle", q, { label: "Cell Styles", scopedLabels: { cellStyle: "Apply" }, description: "A colorful style is a great way to make important data stand out on the sheet." }, function(he) {
13521
13521
  Zt(this, { named: he.getName() }, !0);
13522
- }), new Ie("formatTableStyle", U, { label: "Format as Table", scopedLabels: { table: "Apply (Keep Styles)" }, description: "Create a table or apply style to the current table." }, function(he) {
13522
+ }), new Ie("formatTableStyle", q, { label: "Format as Table", scopedLabels: { table: "Apply (Keep Styles)" }, description: "Create a table or apply style to the current table." }, function(he) {
13523
13523
  Ts(this, he);
13524
- }), new Ie("formatTableStyleClearCellStyles", U, { label: "Format as Table (Clear Styles)", scopedLabels: { table: "Apply (Clear Styles)" }, description: "Create a table or apply style to the current table and clears all cell styles." }, function(he) {
13524
+ }), new Ie("formatTableStyleClearCellStyles", q, { label: "Format as Table (Clear Styles)", scopedLabels: { table: "Apply (Clear Styles)" }, description: "Create a table or apply style to the current table and clears all cell styles." }, function(he) {
13525
13525
  Ts(this, he, !0);
13526
- }), new Ie("formatTableStyleClearTableStyle", U, { label: "Clear Table Style", scopedLabels: { table: "Clear Style" }, description: "Remove all the styling that is specific for the table." }, function() {
13526
+ }), new Ie("formatTableStyleClearTableStyle", q, { label: "Clear Table Style", scopedLabels: { table: "Clear Style" }, description: "Remove all the styling that is specific for the table." }, function() {
13527
13527
  Ts(this, { name: null }, !0);
13528
- }), new Ie("setDefaultTableStyle", U, { label: "Set Default Table Style", scopedLabels: { table: "Set As Default" }, description: "Sets the default table style used when a table is inserted." }, Nm), new Ie("deleteTableStyle", U, { label: "Delete Table Style", scopedLabels: { table: "Delete" }, description: "Remove the current table style." }, Vm), new Ie("formatBorder", U, { label: "Border", description: "Create an outline border." }, function(he) {
13528
+ }), new Ie("setDefaultTableStyle", q, { label: "Set Default Table Style", scopedLabels: { table: "Set As Default" }, description: "Sets the default table style used when a table is inserted." }, Nm), new Ie("deleteTableStyle", q, { label: "Delete Table Style", scopedLabels: { table: "Delete" }, description: "Remove the current table style." }, Vm), new Ie("formatBorder", q, { label: "Border", description: "Create an outline border." }, function(he) {
13529
13529
  Zt(this, { border: he });
13530
- }), new Ie("formatFillColor", U, { label: "Fill Color", description: "Color the background of the cells to make them stand out." }, function(he) {
13530
+ }), new Ie("formatFillColor", q, { label: "Fill Color", description: "Color the background of the cells to make them stand out." }, function(he) {
13531
13531
  Zt(this, { fill: he });
13532
- }), new Ie("formatFontColor", U, { label: "Font Color", description: "Change the color of your text." }, function(he) {
13532
+ }), new Ie("formatFontColor", q, { label: "Font Color", description: "Change the color of your text." }, function(he) {
13533
13533
  Zt(this, { font: { fill: he } });
13534
- }), new Ie("formatBoldToggle", U, { label: "Bold", description: "Toggle bold formatting of text.", shortcut: [{ key: "B", modifiers: [Re.Ctrl] }, { key: "2", modifiers: [Re.Ctrl] }] }), new Ie("formatItalicToggle", U, { label: "Italic", description: "Toggle italic formatting of text.", shortcut: [{ key: "I", modifiers: [Re.Ctrl] }, { key: "3", modifiers: [Re.Ctrl] }] }), new Ie("formatUnderlinedToggle", U, { label: "Underline", scopedLabels: { underline: "Single" }, description: "Underline the text.", shortcut: [{ key: "u", modifiers: [Re.Ctrl] }, { key: "4", modifiers: [Re.Ctrl] }] }), new Ie("formatUnderlinedDoubleToggle", U, { label: "Double Underline", scopedLabels: { underline: "Double" }, description: "Double underline the text." }), new Ie("formatUnderlinedAccountingToggle", U, { label: "Accounting Underline", scopedLabels: { underline: "Accounting" }, description: "Use accounting underline for the text." }), new Ie("formatUnderlinedAccountingDoubleToggle", U, { label: "Double Accounting Underline", scopedLabels: { underline: "Double Accounting" }, description: "Use accounting double underline the text." }), new Ie("formatStrikeThroughToggle", U, { label: "Strikethrough", description: "Toggle strike-through formatting of text.", shortcut: { key: "5", modifiers: [Re.Ctrl] } }), new Ie("formatSuperscriptToggle", U, { label: "Superscript", description: "Format your text to be smaller and sit at the top of the line." }), new Ie("formatSubscriptToggle", U, { label: "Subscript", description: "Format your text to be smaller and sit at the bottom of the line." }), new Ie("formatAlignTopToggle", U, { label: "Align Top", description: "Align text to the top." }), new Ie("formatTextOverflowVisibleToggle", U, { label: "Overflow Text", description: "Overflow text to the next cells." }), new Ie("formatTextOverflowWrapToggle", U, { label: "Wrap Text", description: "Wrap text with the existing cell and increase the height as required." }), new Ie("formatTextOverflowClipToggle", U, { label: "Clip Text", description: "Clip text that falls outside of the existing cell." }), new Ie("formatTextOverflowShrinkToggle", U, { label: "Shrink Text", description: "Shrink the text font to fit within existing cell." }), new Ie("formatTextOverflowEllipsisToggle", U, { label: "Ellipsis Text", description: "Add a trailing '…' to the text to indicate text is partially hidden." }), new Ie("formatAlignMiddleToggle", U, { label: "Align Middle", description: "Align text so that it is centered between the top and bottom of the cell." }), new Ie("formatAlignBottomToggle", U, { label: "Align Bottom", description: "Align text to the bottom." }), new Ie("formatAlignJustifyVerticalToggle", U, { label: "Justify Vertically", description: "Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell." }), new Ie("formatAlignDistributedVerticalToggle", U, { label: "Distribute Vertically", description: "Justify your content vertically." }), new Ie("formatAlignLeftToggle", U, { label: "Align Left", description: "Align your content to the left." }), new Ie("formatAlignCenterToggle", U, { label: "Align Center", description: "Center your content." }), new Ie("formatAlignRightToggle", U, { label: "Align Right", description: "Align your content to the right." }), new Ie("formatAlignJustifyToggle", U, { label: "Align Justify", description: "Justify your content." }), new Ie("formatAlignCenterContinuousToggle", U, { label: "Center Across", description: "Center your content across multiple cells." }), new Ie("formatAlignFillToggle", U, { label: "Fill Across", description: "Repeat the value to fill the entire cell." }), new Ie("formatAlignDistributedHorizontalToggle", U, { label: "Distribute Horizontally", description: "Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell." }), new Tt("formatFontSizeIncrease", U, { label: "Increase Font Size", description: "Make your text a bit bigger.", shortcut: { key: ">", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13534
+ }), new Ie("formatBoldToggle", q, { label: "Bold", description: "Toggle bold formatting of text.", shortcut: [{ key: "B", modifiers: [Re.Ctrl] }, { key: "2", modifiers: [Re.Ctrl] }] }), new Ie("formatItalicToggle", q, { label: "Italic", description: "Toggle italic formatting of text.", shortcut: [{ key: "I", modifiers: [Re.Ctrl] }, { key: "3", modifiers: [Re.Ctrl] }] }), new Ie("formatUnderlinedToggle", q, { label: "Underline", scopedLabels: { underline: "Single" }, description: "Underline the text.", shortcut: [{ key: "u", modifiers: [Re.Ctrl] }, { key: "4", modifiers: [Re.Ctrl] }] }), new Ie("formatUnderlinedDoubleToggle", q, { label: "Double Underline", scopedLabels: { underline: "Double" }, description: "Double underline the text." }), new Ie("formatUnderlinedAccountingToggle", q, { label: "Accounting Underline", scopedLabels: { underline: "Accounting" }, description: "Use accounting underline for the text." }), new Ie("formatUnderlinedAccountingDoubleToggle", q, { label: "Double Accounting Underline", scopedLabels: { underline: "Double Accounting" }, description: "Use accounting double underline the text." }), new Ie("formatStrikeThroughToggle", q, { label: "Strikethrough", description: "Toggle strike-through formatting of text.", shortcut: { key: "5", modifiers: [Re.Ctrl] } }), new Ie("formatSuperscriptToggle", q, { label: "Superscript", description: "Format your text to be smaller and sit at the top of the line." }), new Ie("formatSubscriptToggle", q, { label: "Subscript", description: "Format your text to be smaller and sit at the bottom of the line." }), new Ie("formatAlignTopToggle", q, { label: "Align Top", description: "Align text to the top." }), new Ie("formatTextOverflowVisibleToggle", q, { label: "Overflow Text", description: "Overflow text to the next cells." }), new Ie("formatTextOverflowWrapToggle", q, { label: "Wrap Text", description: "Wrap text with the existing cell and increase the height as required." }), new Ie("formatTextOverflowClipToggle", q, { label: "Clip Text", description: "Clip text that falls outside of the existing cell." }), new Ie("formatTextOverflowShrinkToggle", q, { label: "Shrink Text", description: "Shrink the text font to fit within existing cell." }), new Ie("formatTextOverflowEllipsisToggle", q, { label: "Ellipsis Text", description: "Add a trailing '…' to the text to indicate text is partially hidden." }), new Ie("formatAlignMiddleToggle", q, { label: "Align Middle", description: "Align text so that it is centered between the top and bottom of the cell." }), new Ie("formatAlignBottomToggle", q, { label: "Align Bottom", description: "Align text to the bottom." }), new Ie("formatAlignJustifyVerticalToggle", q, { label: "Justify Vertically", description: "Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell." }), new Ie("formatAlignDistributedVerticalToggle", q, { label: "Distribute Vertically", description: "Justify your content vertically." }), new Ie("formatAlignLeftToggle", q, { label: "Align Left", description: "Align your content to the left." }), new Ie("formatAlignCenterToggle", q, { label: "Align Center", description: "Center your content." }), new Ie("formatAlignRightToggle", q, { label: "Align Right", description: "Align your content to the right." }), new Ie("formatAlignJustifyToggle", q, { label: "Align Justify", description: "Justify your content." }), new Ie("formatAlignCenterContinuousToggle", q, { label: "Center Across", description: "Center your content across multiple cells." }), new Ie("formatAlignFillToggle", q, { label: "Fill Across", description: "Repeat the value to fill the entire cell." }), new Ie("formatAlignDistributedHorizontalToggle", q, { label: "Distribute Horizontally", description: "Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell." }), new Tt("formatFontSizeIncrease", q, { label: "Increase Font Size", description: "Make your text a bit bigger.", shortcut: { key: ">", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13535
13535
  Zt(this, (he) => ({ font: { size: Q2(he.getFont().getSize(), !0) } }));
13536
- }), new Tt("formatFontSizeDecrease", U, { label: "Decrease Font Size", description: "Make your text a bit smaller.", shortcut: { key: "<", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13536
+ }), new Tt("formatFontSizeDecrease", q, { label: "Decrease Font Size", description: "Make your text a bit smaller.", shortcut: { key: "<", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13537
13537
  Zt(this, (he) => ({ font: { size: Q2(he.getFont().getSize(), !1) } }));
13538
- }), new Ie("formatFontFamily", U, { label: "Font", description: "Select the font your text." }, function(he) {
13538
+ }), new Ie("formatFontFamily", q, { label: "Font", description: "Select the font your text." }, function(he) {
13539
13539
  Zt(this, { font: { family: he } });
13540
- }), new Ie("formatFontSize", U, { label: "Font Size", description: "Change the size of your text." }, function(he) {
13540
+ }), new Ie("formatFontSize", q, { label: "Font Size", description: "Change the size of your text." }, function(he) {
13541
13541
  Zt(this, { font: { size: he } });
13542
- }), new Ie("formatNumberDialog", U, { label: "Custom Number Format", scopedLabels: { numberFormat: "Custom" }, description: "Create a custom number format.", shortcut: [{ key: "1", modifiers: [Re.Ctrl] }, { key: "1", modifiers: [Re.Ctrl, Re.Alt] }] }, function(he, We) {
13542
+ }), new Ie("formatNumberDialog", q, { label: "Custom Number Format", scopedLabels: { numberFormat: "Custom" }, description: "Create a custom number format.", shortcut: [{ key: "1", modifiers: [Re.Ctrl] }, { key: "1", modifiers: [Re.Ctrl, Re.Alt] }] }, function(he, We) {
13543
13543
  const nt = this, Ae = { initialValue: he ?? We.state(), context: We.context(), onInputOption: (lt, dt) => {
13544
13544
  Zt(nt, { numberFormat: lt });
13545
13545
  } };
13546
13546
  ue.showWindow?.("numberFormat", Ae);
13547
- }), new Ie("formatNumberFormat", U, { label: "Number Format", description: "Choose the format for your cells, such as percentage, currency, date or time." }, function(he) {
13547
+ }), new Ie("formatNumberFormat", q, { label: "Number Format", description: "Choose the format for your cells, such as percentage, currency, date or time." }, function(he) {
13548
13548
  Zt(this, { numberFormat: he });
13549
- }), new Ie("formatNumberFormatGeneralStyle", U, { label: "General Style", description: "Remove all specific formatting.", shortcut: { key: "Backquote", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13549
+ }), new Ie("formatNumberFormatGeneralStyle", q, { label: "General Style", description: "Remove all specific formatting.", shortcut: { key: "Backquote", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13550
13550
  Zt(this, { numberFormat: qo.Type.General });
13551
- }), new Ie("formatNumberFormatNumberStyle", U, { label: "Number Style", description: "Format as number with two decimals and comma.", shortcut: { key: "1", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13551
+ }), new Ie("formatNumberFormatNumberStyle", q, { label: "Number Style", description: "Format as number with two decimals and comma.", shortcut: { key: "1", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13552
13552
  Zt(this, { numberFormat: "#,##0.00" });
13553
- }), new Ie("formatNumberFormatTimeStyle", U, { label: "Time Style", description: "Format as time with hour and minute, and AM or PM.", shortcut: { key: "2", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13553
+ }), new Ie("formatNumberFormatTimeStyle", q, { label: "Time Style", description: "Format as time with hour and minute, and AM or PM.", shortcut: { key: "2", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13554
13554
  Zt(this, { numberFormat: "h:mm AM/PM" });
13555
- }), new Ie("formatNumberFormatDateStyle", U, { label: "Date Style", description: "Format as date with day, month, and year.", shortcut: { key: "3", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13555
+ }), new Ie("formatNumberFormatDateStyle", q, { label: "Date Style", description: "Format as date with day, month, and year.", shortcut: { key: "3", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13556
13556
  Zt(this, { numberFormat: "d-mmm-yy" });
13557
- }), new Ie("formatNumberFormatAccountingStyle", U, { label: "Accounting Style", description: "Format as Dollars, Euros, or other currency.", shortcut: { key: "4", modifiers: [Re.Ctrl, Re.Shift] } }, function(he) {
13557
+ }), new Ie("formatNumberFormatAccountingStyle", q, { label: "Accounting Style", description: "Format as Dollars, Euros, or other currency.", shortcut: { key: "4", modifiers: [Re.Ctrl, Re.Shift] } }, function(he) {
13558
13558
  Zt(this, { numberFormat: he ?? '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' });
13559
- }), new Ie("formatNumberFormatPercentStyle", U, { label: "Percent Style", description: "Format as a percent with no decimal places.", shortcut: { key: "5", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13559
+ }), new Ie("formatNumberFormatPercentStyle", q, { label: "Percent Style", description: "Format as a percent with no decimal places.", shortcut: { key: "5", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13560
13560
  Zt(this, { numberFormat: "0%" });
13561
- }), new Ie("formatNumberFormatScientificStyle", U, { label: "Scientific Style", description: "Format as a scientific number with two decimal places .", shortcut: { key: "6", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13561
+ }), new Ie("formatNumberFormatScientificStyle", q, { label: "Scientific Style", description: "Format as a scientific number with two decimal places .", shortcut: { key: "6", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13562
13562
  Zt(this, { numberFormat: "0.00E+00" });
13563
- }), new Ie("formatNumberFormatCommaStyle", U, { label: "Comma Style", description: "Format with a thousands separator.", shortcut: { key: ",", modifiers: [Re.Ctrl] } }, function() {
13563
+ }), new Ie("formatNumberFormatCommaStyle", q, { label: "Comma Style", description: "Format with a thousands separator.", shortcut: { key: ",", modifiers: [Re.Ctrl] } }, function() {
13564
13564
  Zt(this, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' });
13565
- }), new Ie("formatNumberFormatIncreaseDecimal", U, { label: "Increase Decimal", description: "Show more decimal places for a more precise value." }, function() {
13565
+ }), new Ie("formatNumberFormatIncreaseDecimal", q, { label: "Increase Decimal", description: "Show more decimal places for a more precise value." }, function() {
13566
13566
  Zt(this, (he) => ({ numberFormat: qo.Parser.adjustDecimalPlaces(he.getNumberFormat(), 1) }));
13567
- }), new Ie("formatNumberFormatDecreaseDecimal", U, { label: "Decrease Decimal", description: "Show few decimal places." }, function() {
13567
+ }), new Ie("formatNumberFormatDecreaseDecimal", q, { label: "Decrease Decimal", description: "Show few decimal places." }, function() {
13568
13568
  Zt(this, (he) => ({ numberFormat: qo.Parser.adjustDecimalPlaces(he.getNumberFormat(), -1) }));
13569
- }), new Ie("displayPlaceholdersToggle", U, { label: "Display Placeholders", description: "Switch between hiding objects, displaying objects, and displaying placeholders for objects.", shortcut: { key: "6", modifiers: [Re.Ctrl] } }), new Tt("noOp", U, { label: "Do nothing", description: "Do Nothing.", shortcut: { key: "7", modifiers: [Re.Ctrl] } }, function() {
13570
- }), new Ie("displayOutlineSymbolsToggle", U, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [Re.Ctrl] } }), new Ie("hideRows", U, { label: "Hide Rows", description: "Hide the rows.", shortcut: { key: "9", modifiers: [Re.Ctrl] } }), new Ie("unhideRows", U, { label: "Unhide Rows", description: "Unhide the rows.", shortcut: { key: "(", modifiers: [Re.Ctrl, Re.Shift] } }), new Ie("hideColumns", U, { label: "Hide Columns", description: "Hide the columns.", shortcut: [{ key: "0", modifiers: [Re.Ctrl] }, { key: "0", modifiers: [Re.Ctrl, Re.Alt] }] }), new Ie("unhideColumns", U, { label: "Unhide Columns", description: "Unhide the columns.", shortcut: { key: ")", modifiers: [Re.Ctrl, Re.Shift] } }), new Ie("quickFormulaSum", U, { label: "Quick Sum", scopedLabels: { quickFormula: "Sum" }, description: "Quick sum of the cells.", shortcut: { key: "=", modifiers: [Re.Alt] } }, function() {
13569
+ }), new Ie("displayPlaceholdersToggle", q, { label: "Display Placeholders", description: "Switch between hiding objects, displaying objects, and displaying placeholders for objects.", shortcut: { key: "6", modifiers: [Re.Ctrl] } }), new Tt("noOp", q, { label: "Do nothing", description: "Do Nothing.", shortcut: { key: "7", modifiers: [Re.Ctrl] } }, function() {
13570
+ }), new Ie("displayOutlineSymbolsToggle", q, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [Re.Ctrl] } }), new Ie("hideRows", q, { label: "Hide Rows", description: "Hide the rows.", shortcut: { key: "9", modifiers: [Re.Ctrl] } }), new Ie("unhideRows", q, { label: "Unhide Rows", description: "Unhide the rows.", shortcut: { key: "(", modifiers: [Re.Ctrl, Re.Shift] } }), new Ie("hideColumns", q, { label: "Hide Columns", description: "Hide the columns.", shortcut: [{ key: "0", modifiers: [Re.Ctrl] }, { key: "0", modifiers: [Re.Ctrl, Re.Alt] }] }), new Ie("unhideColumns", q, { label: "Unhide Columns", description: "Unhide the columns.", shortcut: { key: ")", modifiers: [Re.Ctrl, Re.Shift] } }), new Ie("quickFormulaSum", q, { label: "Quick Sum", scopedLabels: { quickFormula: "Sum" }, description: "Quick sum of the cells.", shortcut: { key: "=", modifiers: [Re.Alt] } }, function() {
13571
13571
  $l(this, "SUM");
13572
- }), new Ie("quickFormulaAverage", U, { label: "Quick Average", scopedLabels: { quickFormula: "Average" }, description: "Quick average of the cells." }, function() {
13572
+ }), new Ie("quickFormulaAverage", q, { label: "Quick Average", scopedLabels: { quickFormula: "Average" }, description: "Quick average of the cells." }, function() {
13573
13573
  $l(this, "AVERAGE");
13574
- }), new Ie("quickFormulaCount", U, { label: "Quick Count", scopedLabels: { quickFormula: "Count Numbers" }, description: "Quick count of the cells." }, function() {
13574
+ }), new Ie("quickFormulaCount", q, { label: "Quick Count", scopedLabels: { quickFormula: "Count Numbers" }, description: "Quick count of the cells." }, function() {
13575
13575
  $l(this, "COUNT");
13576
- }), new Ie("quickFormulaMax", U, { label: "Quick Max", scopedLabels: { quickFormula: "Max" }, description: "Quick maximum of the cells." }, function() {
13576
+ }), new Ie("quickFormulaMax", q, { label: "Quick Max", scopedLabels: { quickFormula: "Max" }, description: "Quick maximum of the cells." }, function() {
13577
13577
  $l(this, "MAX");
13578
- }), new Ie("quickFormulaMin", U, { label: "Quick Min", scopedLabels: { quickFormula: "Min" }, description: "Quick minimum of the cells." }, function() {
13578
+ }), new Ie("quickFormulaMin", q, { label: "Quick Min", scopedLabels: { quickFormula: "Min" }, description: "Quick minimum of the cells." }, function() {
13579
13579
  $l(this, "MIN");
13580
- }), new Ie("startEditCurrentTime", U, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13580
+ }), new Ie("startEditCurrentTime", q, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13581
13581
  qt?.({ text: de.createTemporaryCell({ value: ls(), style: { numberFormat: "Medium Time" } }).toText() });
13582
- }), new Ie("startEditCurrentDate", U, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [Re.Ctrl] } }, function() {
13582
+ }), new Ie("startEditCurrentDate", q, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [Re.Ctrl] } }, function() {
13583
13583
  qt?.({ text: de.createTemporaryCell({ value: ls(), style: { numberFormat: "Short Date" } }).toText() });
13584
- }), new Tt("sheetZoomOut", U, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [Re.Ctrl, Re.Alt] }, { key: "NumpadSubtract", modifiers: [Re.Ctrl, Re.Alt] }] }), new Tt("sheetZoomIn", U, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [Re.Ctrl, Re.Alt] }, { key: "NumpadAdd", modifiers: [Re.Ctrl, Re.Alt] }] }), new Tt("sheetZoom100", U, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [Re.Ctrl, Re.Alt] } }), new Ie("insertFunction", U, { label: "Insert Function", disabled: !0, scopedLabels: { insert: "Function", quickFormula: "More Functions..." }, description: "Work with the formula in the current cell.", shortcut: { key: "F3", modifiers: [Re.Shift] } }, function(he, We) {
13584
+ }), new Tt("sheetZoomOut", q, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [Re.Ctrl, Re.Alt] }, { key: "NumpadSubtract", modifiers: [Re.Ctrl, Re.Alt] }] }), new Tt("sheetZoomIn", q, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [Re.Ctrl, Re.Alt] }, { key: "NumpadAdd", modifiers: [Re.Ctrl, Re.Alt] }] }), new Tt("sheetZoom100", q, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [Re.Ctrl, Re.Alt] } }), new Ie("insertFunction", q, { label: "Insert Function", disabled: !0, scopedLabels: { insert: "Function", quickFormula: "More Functions..." }, description: "Work with the formula in the current cell.", shortcut: { key: "F3", modifiers: [Re.Shift] } }, function(he, We) {
13585
13585
  console.log("insertFunction");
13586
- }), new Ie("updateHyperlink", U, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () => jo, shortcut: [{ key: "K", modifiers: [Re.Ctrl] }, { key: "K", modifiers: [Re.Ctrl, Re.Alt] }] }, async function(he, We) {
13586
+ }), new Ie("updateHyperlink", q, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () => jo, shortcut: [{ key: "K", modifiers: [Re.Ctrl] }, { key: "K", modifiers: [Re.Ctrl, Re.Alt] }] }, async function(he, We) {
13587
13587
  const nt = this, Ae = { context: We.context(), onUpdateHyperlink: (lt, dt) => {
13588
13588
  p5(nt, lt, dt);
13589
13589
  } };
13590
13590
  ue.showWindow?.("hyperlink", Ae);
13591
- }), new Ie("openHyperlink", U, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [Re.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", context: () => jo }, async (he, We) => {
13591
+ }), new Ie("openHyperlink", q, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [Re.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", context: () => jo }, async (he, We) => {
13592
13592
  const nt = We.context()();
13593
13593
  if (!nt) return;
13594
13594
  const Ae = nt.getHyperlink();
@@ -13597,114 +13597,114 @@ For example, you can prevent people from editing locked cells or making formatti
13597
13597
  } catch (lt) {
13598
13598
  ue?.showError?.(lt);
13599
13599
  }
13600
- }), new Ie("deleteHyperlink", U, { label: "Delete Link", scopedLabels: { hyperlink: "Delete" }, description: "Remove the hyperlink.", context: () => jo }, function(he, We) {
13600
+ }), new Ie("deleteHyperlink", q, { label: "Delete Link", scopedLabels: { hyperlink: "Delete" }, description: "Remove the hyperlink.", context: () => jo }, function(he, We) {
13601
13601
  p5(this, null, null);
13602
- }), new Tt("insertNote", U, { label: "Insert Note", scopedLabels: { contextMenu: "Insert Note…", insert: "Note" }, shortcut: { key: "F2", modifiers: [Re.Shift] }, description: "Add a note to the cell." }, (he, We) => {
13602
+ }), new Tt("insertNote", q, { label: "Insert Note", scopedLabels: { contextMenu: "Insert Note…", insert: "Note" }, shortcut: { key: "F2", modifiers: [Re.Shift] }, description: "Add a note to the cell." }, (he, We) => {
13603
13603
  ((nt, Ae) => {
13604
13604
  nt?.showMessage?.(G("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [Ae, " is not yet implemented.", d("br", {}), d("br", {}), "Please see the ", d("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
13605
13605
  })(ue, We.label());
13606
- }), new Ie("updateComments", U, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [Re.Ctrl, Re.Alt] }, description: "Add a comment to the current cell.", context: () => jo }, async function(he, We) {
13606
+ }), new Ie("updateComments", q, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [Re.Ctrl, Re.Alt] }, description: "Add a comment to the current cell.", context: () => jo }, async function(he, We) {
13607
13607
  const nt = this, Ae = { context: We.context(), onUpdateComments: (lt) => {
13608
13608
  f5(nt, lt);
13609
13609
  } };
13610
13610
  ue.showWindow?.("comments", Ae);
13611
- }), new Ie("deleteComments", U, { label: "Delete Comments", description: "Remove any comments.", context: () => jo }, function(he, We) {
13611
+ }), new Ie("deleteComments", q, { label: "Delete Comments", description: "Remove any comments.", context: () => jo }, function(he, We) {
13612
13612
  f5(this, null);
13613
- }), new Ie("insertImageFromFile", U, { label: "Insert Image", scopedLabels: { contextMenu: "Insert Image…", insert: "Image…", insertImage: "From Device…" }, description: "Insert a picture from your device." }, async function(he = null) {
13613
+ }), new Ie("insertImageFromFile", q, { label: "Insert Image", scopedLabels: { contextMenu: "Insert Image…", insert: "Image…", insertImage: "From Device…" }, description: "Insert a picture from your device." }, async function(he = null) {
13614
13614
  let We = null, nt = null;
13615
13615
  typeof he == "string" ? nt = he : We = he?.file ? he.file : he, (We || (We = await Jt.openFileDialog(nt ?? "image/*"), We)) && await w5(this, { file: We }, he?.options);
13616
- }), new Ie("insertImageFromURL", U, { label: "Insert Image From Web", scopedLabels: { insert: "Image From Web", insertImage: "From the Web…" }, description: "Insert a picture from the web." }, async function(he) {
13616
+ }), new Ie("insertImageFromURL", q, { label: "Insert Image From Web", scopedLabels: { insert: "Image From Web", insertImage: "From the Web…" }, description: "Insert a picture from the web." }, async function(he) {
13617
13617
  if (!he) {
13618
13618
  const We = await ue?.showInputOptions?.({ title: "Insert Image from Web", description: "Enter the web address for the image to insert.", inputLabel: "Address", initialValue: "https://picsum.photos/360", inputProps: { style: { minWidth: "440px" } }, options: ["Insert"] });
13619
13619
  if (We.option !== "Insert") return;
13620
13620
  he = We.input;
13621
13621
  }
13622
13622
  he && w5(this, { fetch: he });
13623
- }), new Tt("insertTable", U, { label: "Insert Table", scopedLabels: { contextMenu: "Insert Table…", insert: "Table" }, description: "Create a table. Tables enable auto formatting, sorting, filtering, and other advanced features.", shortcut: [{ key: "L", modifiers: [Re.Ctrl] }, { key: "T", modifiers: [Re.Alt, Re.Ctrl] }] }, function() {
13623
+ }), new Tt("insertTable", q, { label: "Insert Table", scopedLabels: { contextMenu: "Insert Table…", insert: "Table" }, description: "Create a table. Tables enable auto formatting, sorting, filtering, and other advanced features.", shortcut: [{ key: "L", modifiers: [Re.Ctrl] }, { key: "T", modifiers: [Re.Alt, Re.Ctrl] }] }, function() {
13624
13624
  Ts(this);
13625
- }), new Ie("editTable", U, { label: "Edit Table…", scopedLabels: { table: "Edit…", namedItem: "Edit…" }, description: "Edit the table to adjust formatting, sorting, filtering, or other advanced features." }, function(he) {
13625
+ }), new Ie("editTable", q, { label: "Edit Table…", scopedLabels: { table: "Edit…", namedItem: "Edit…" }, description: "Edit the table to adjust formatting, sorting, filtering, or other advanced features." }, function(he) {
13626
13626
  let We = null, nt = !1;
13627
13627
  he.isITable ? We = he : he.getValue() && (We = he.getValue(), nt = !0), Bm(this, We, nt);
13628
- }), new Ie("deleteTable", U, { label: "Delete Table", scopedLabels: { delete: "Table", table: "Delete", namedItem: "Delete" }, description: `Remove the table.
13628
+ }), new Ie("deleteTable", q, { label: "Delete Table", scopedLabels: { delete: "Table", table: "Delete", namedItem: "Delete" }, description: `Remove the table.
13629
13629
 
13630
13630
  The table and table specific styling will be removed but the values will be preserved.` }, function(he) {
13631
13631
  y5(this, he, !0);
13632
- }), new Ie("convertTableToRange", U, { label: "Convert To Range", description: `Convert the table into a normal range of cells.
13632
+ }), new Ie("convertTableToRange", q, { label: "Convert To Range", description: `Convert the table into a normal range of cells.
13633
13633
 
13634
13634
  The values and the formatting are preserved.` }, function(he) {
13635
13635
  y5(this, he, !1);
13636
- }), new Ie("tableTotalRowToggle", U, { label: "Toggle Table Total Row", description: "Toggle Total Row on/off.", scopedLabels: { table: "Total Row" }, shortcut: { key: "T", modifiers: [Re.Ctrl, Re.Alt] } }, function() {
13636
+ }), new Ie("tableTotalRowToggle", q, { label: "Toggle Table Total Row", description: "Toggle Total Row on/off.", scopedLabels: { table: "Total Row" }, shortcut: { key: "T", modifiers: [Re.Ctrl, Re.Alt] } }, function() {
13637
13637
  const he = this.context().table();
13638
13638
  he && he.setShowTotals(!he.getShowTotals());
13639
- }), new Ie("tableHeaderRowToggle", U, { label: "Toggle Table Header Row", description: "Toggle Header Row on/off.", scopedLabels: { table: "Header Row" } }, function() {
13639
+ }), new Ie("tableHeaderRowToggle", q, { label: "Toggle Table Header Row", description: "Toggle Header Row on/off.", scopedLabels: { table: "Header Row" } }, function() {
13640
13640
  const he = this.context().table();
13641
13641
  he && he.setShowHeaders(!he.getShowHeaders());
13642
- }), new Ie("autoFilterToggle", U, { label: "Toggle Filter", scopedLabels: { filter: "Filter" }, description: "Toggle Auto Filter on/off.", shortcut: { key: "L", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13642
+ }), new Ie("autoFilterToggle", q, { label: "Toggle Filter", scopedLabels: { filter: "Filter" }, description: "Toggle Auto Filter on/off.", shortcut: { key: "L", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13643
13643
  const he = this.context().table();
13644
13644
  he && he.setShowFilterButton(!he.getShowFilterButton());
13645
- }), new Ie("autoFilterReapply", U, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", shortcut: { key: "L", modifiers: [Re.Ctrl, Re.Alt] } }), new Ie("autoFilterClear", U, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter.." }), new Tt("startEditValueAbove", U, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [Re.Ctrl] }, { key: '"', modifiers: [Re.Ctrl, Re.Shift] }] }, jm), new Ie("formatPainterToggle", U, { label: "Format Painter", description: "Apply style to another part of your workbook." }), new Tt("insertCells", U, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", shortcut: { key: "=", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13645
+ }), new Ie("autoFilterReapply", q, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", shortcut: { key: "L", modifiers: [Re.Ctrl, Re.Alt] } }), new Ie("autoFilterClear", q, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter.." }), new Tt("startEditValueAbove", q, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [Re.Ctrl] }, { key: '"', modifiers: [Re.Ctrl, Re.Shift] }] }, jm), new Ie("formatPainterToggle", q, { label: "Format Painter", description: "Apply style to another part of your workbook." }), new Tt("insertCells", q, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", shortcut: { key: "=", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13646
13646
  pi(this);
13647
- }), new Tt("insertCellsShiftRight", U, { label: "Insert Cells (Shift Right)", scopedLabels: { insertCells: "Shift Right" }, description: "Insert cells to the left and shift the current cells to the right." }, function() {
13647
+ }), new Tt("insertCellsShiftRight", q, { label: "Insert Cells (Shift Right)", scopedLabels: { insertCells: "Shift Right" }, description: "Insert cells to the left and shift the current cells to the right." }, function() {
13648
13648
  pi(this, bt.Orientation.Column);
13649
- }), new Tt("insertCellsShiftDown", U, { label: "Insert Cells (Shift Down)", scopedLabels: { insertCells: "Shift Down" }, description: "Insert cells above and shift the current cells downward." }, function() {
13649
+ }), new Tt("insertCellsShiftDown", q, { label: "Insert Cells (Shift Down)", scopedLabels: { insertCells: "Shift Down" }, description: "Insert cells above and shift the current cells downward." }, function() {
13650
13650
  return pi(this, bt.Orientation.Row);
13651
- }), new Tt("insertRows", U, { label: "Insert Row(s)", scopedLabels: { insertCells: "Row(s)" }, description: "Insert a row above the current position." }, function() {
13651
+ }), new Tt("insertRows", q, { label: "Insert Row(s)", scopedLabels: { insertCells: "Row(s)" }, description: "Insert a row above the current position." }, function() {
13652
13652
  return pi(this, bt.Orientation.Row, !0);
13653
- }), new Tt("insertColumns", U, { label: "Insert Column(s)", scopedLabels: { insertCells: "Column(s)" }, description: "Insert a column before the current position." }, function() {
13653
+ }), new Tt("insertColumns", q, { label: "Insert Column(s)", scopedLabels: { insertCells: "Column(s)" }, description: "Insert a column before the current position." }, function() {
13654
13654
  return pi(this, bt.Orientation.Column, !0);
13655
- }), new Tt("insertRowsAfter", U, { label: "Insert Row Below", scopedLabels: { insertCells: "Row Below" }, description: "Insert a row below the current position." }, function() {
13655
+ }), new Tt("insertRowsAfter", q, { label: "Insert Row Below", scopedLabels: { insertCells: "Row Below" }, description: "Insert a row below the current position." }, function() {
13656
13656
  return pi(this, bt.Orientation.Row, !0, !0);
13657
- }), new Tt("insertColumnsAfter", U, { label: "Insert Column After", scopedLabels: { insertCells: "Column After" }, description: "Insert a column after the current position." }, function() {
13657
+ }), new Tt("insertColumnsAfter", q, { label: "Insert Column After", scopedLabels: { insertCells: "Column After" }, description: "Insert a column after the current position." }, function() {
13658
13658
  return pi(this, bt.Orientation.Column, !0, !0);
13659
- }), new Tt("deleteCells", U, { label: "Delete Cells", scopedLabels: { deleteCells: "At Selection" }, description: "Delete the cells.", shortcut: { key: "-", modifiers: [Re.Ctrl] } }, function() {
13659
+ }), new Tt("deleteCells", q, { label: "Delete Cells", scopedLabels: { deleteCells: "At Selection" }, description: "Delete the cells.", shortcut: { key: "-", modifiers: [Re.Ctrl] } }, function() {
13660
13660
  return jl(this);
13661
- }), new Tt("deleteCellsShiftUp", U, { label: "Delete Cells (Shift Up)", scopedLabels: { deleteCells: "Shift up" }, description: "Delete cells the current current downward." }, function() {
13661
+ }), new Tt("deleteCellsShiftUp", q, { label: "Delete Cells (Shift Up)", scopedLabels: { deleteCells: "Shift up" }, description: "Delete cells the current current downward." }, function() {
13662
13662
  return jl(this, bt.Orientation.Row);
13663
- }), new Tt("deleteCellsShiftLeft", U, { label: "Delete Cells (Shift Left)", scopedLabels: { deleteCells: "Shift Left" }, description: "Delete cells the current cells to the right." }, function() {
13663
+ }), new Tt("deleteCellsShiftLeft", q, { label: "Delete Cells (Shift Left)", scopedLabels: { deleteCells: "Shift Left" }, description: "Delete cells the current cells to the right." }, function() {
13664
13664
  return jl(this, bt.Orientation.Column);
13665
- }), new Tt("deleteRows", U, { label: "Delete Rows", scopedLabels: { deleteCells: "Rows" }, description: "Delete the rows at the current selection." }, function() {
13665
+ }), new Tt("deleteRows", q, { label: "Delete Rows", scopedLabels: { deleteCells: "Rows" }, description: "Delete the rows at the current selection." }, function() {
13666
13666
  return jl(this, bt.Orientation.Row, !0);
13667
- }), new Tt("deleteColumns", U, { label: "Delete Columns", scopedLabels: { deleteCells: "Columns" }, description: "Delete the columns at the current selection." }, function() {
13667
+ }), new Tt("deleteColumns", q, { label: "Delete Columns", scopedLabels: { deleteCells: "Columns" }, description: "Delete the columns at the current selection." }, function() {
13668
13668
  return jl(this, bt.Orientation.Column, !0);
13669
- }), new Tt("flashFill", U, { label: "Flash Fill", description: "Do a flash fill.", shortcut: [{ key: "e", modifiers: [Re.Ctrl] }, { key: "e", modifiers: [Re.Ctrl, Re.Alt] }] }), new Tt("fillDown", U, { label: "Fill Down", description: "Copy the top-most value from the selection to the bottom of the selection.", shortcut: { key: "d", modifiers: [Re.Ctrl] } }, function() {
13669
+ }), new Tt("flashFill", q, { label: "Flash Fill", description: "Do a flash fill.", shortcut: [{ key: "e", modifiers: [Re.Ctrl] }, { key: "e", modifiers: [Re.Ctrl, Re.Alt] }] }), new Tt("fillDown", q, { label: "Fill Down", description: "Copy the top-most value from the selection to the bottom of the selection.", shortcut: { key: "d", modifiers: [Re.Ctrl] } }, function() {
13670
13670
  return Ms(this, bt.Direction.Down);
13671
- }), new Tt("fillRight", U, { label: "Fill Right", description: "Copy the left-most value from the selection to the right of the selection.", shortcut: [{ key: "r", modifiers: [Re.Ctrl] }] }, function() {
13671
+ }), new Tt("fillRight", q, { label: "Fill Right", description: "Copy the left-most value from the selection to the right of the selection.", shortcut: [{ key: "r", modifiers: [Re.Ctrl] }] }, function() {
13672
13672
  return Ms(this, bt.Direction.Right);
13673
- }), new Tt("fillUp", U, { label: "Fill Up", description: "Copy the bottom-most value from the selection to the top of the selection." }, function() {
13673
+ }), new Tt("fillUp", q, { label: "Fill Up", description: "Copy the bottom-most value from the selection to the top of the selection." }, function() {
13674
13674
  return Ms(this, bt.Direction.Up);
13675
- }), new Tt("fillLeft", U, { label: "Fill Left", description: "Copy the right-most value from the selection to the left of the selection." }, function() {
13675
+ }), new Tt("fillLeft", q, { label: "Fill Left", description: "Copy the right-most value from the selection to the left of the selection." }, function() {
13676
13676
  return Ms(this, bt.Direction.Left);
13677
- }), new Tt("formatBorderAddOutline", U, { label: "Add Outline Border", description: "Apply an outline border.", shortcut: { key: "7", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13677
+ }), new Tt("formatBorderAddOutline", q, { label: "Add Outline Border", description: "Apply an outline border.", shortcut: { key: "7", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13678
13678
  return Zt(this, { border: { left: { style: sn.StrokeStyle.Thin, color: null }, top: { style: sn.StrokeStyle.Thin, color: null }, right: { style: sn.StrokeStyle.Thin, color: null }, bottom: { style: sn.StrokeStyle.Thin, color: null } } });
13679
- }), new Tt("formatBorderClearOutline", U, { label: "Remove Outline Border", description: "Remove the outline border.", shortcut: { key: "_", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13679
+ }), new Tt("formatBorderClearOutline", q, { label: "Remove Outline Border", description: "Remove the outline border.", shortcut: { key: "_", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13680
13680
  return Zt(this, { border: null });
13681
- }), new Tt("formatIndentDecrease", U, { label: "Decrease Indent", description: "Move your content closer to the border." }, function() {
13681
+ }), new Tt("formatIndentDecrease", q, { label: "Decrease Indent", description: "Move your content closer to the border." }, function() {
13682
13682
  return Zt(this, (he) => {
13683
13683
  const We = he.getAlignment().getIndent() - 1;
13684
13684
  return { alignment: { indent: We > 0 ? We : 0 } };
13685
13685
  });
13686
- }), new Tt("formatIndentIncrease", U, { label: "Increase Indent", description: "Move your content further from the border." }, function() {
13686
+ }), new Tt("formatIndentIncrease", q, { label: "Increase Indent", description: "Move your content further from the border." }, function() {
13687
13687
  return Zt(this, (he) => {
13688
13688
  const We = { alignment: { indent: he.getAlignment().getIndent() + 1 } };
13689
13689
  return he.getAlignment().getHorizontal() === pt.HorizontalAlignment.General && (We.alignment.horizontal = pt.HorizontalAlignment.Left), We;
13690
13690
  });
13691
- }), new Ie("mergeToggle", U, { label: "Merge", description: "Combine and center the contents into a single cell.", shortcut: { key: "m", modifiers: [Re.Ctrl] } }), new Tt("mergeHorizontal", U, { label: "Merge Horizontally", description: "Combine the contents into horizontal rows." }), new Tt("mergeVertical", U, { label: "Merge Vertically", description: "Combine the contents into vertical columns." }), new Tt("unmerge", U, { label: "Unmerge", description: "Split merged cells into multiple cells." }), new Tt("clearContents", U, { label: "Clear Contents", scopedLabels: { clear: "Contents" }, description: `Clear only the contents in the cells.
13691
+ }), new Ie("mergeToggle", q, { label: "Merge", description: "Combine and center the contents into a single cell.", shortcut: { key: "m", modifiers: [Re.Ctrl] } }), new Tt("mergeHorizontal", q, { label: "Merge Horizontally", description: "Combine the contents into horizontal rows." }), new Tt("mergeVertical", q, { label: "Merge Vertically", description: "Combine the contents into vertical columns." }), new Tt("unmerge", q, { label: "Unmerge", description: "Split merged cells into multiple cells." }), new Tt("clearContents", q, { label: "Clear Contents", scopedLabels: { clear: "Contents" }, description: `Clear only the contents in the cells.
13692
13692
 
13693
13693
  The formatting is not cleared.`, shortcut: { key: "Delete" } }, function() {
13694
13694
  Hl(this, A0.Content.Values);
13695
- }), new Tt("clearFormats", U, { label: "Clear Formats", scopedLabels: { clear: "Formats" }, description: "Clear only the formatting that is applied to the cells." }, function() {
13695
+ }), new Tt("clearFormats", q, { label: "Clear Formats", scopedLabels: { clear: "Formats" }, description: "Clear only the formatting that is applied to the cells." }, function() {
13696
13696
  Hl(this, A0.Content.Formats);
13697
- }), new Tt("clearHyperlinks", U, { label: "Clear Hyperlinks", scopedLabels: { clear: "Hyperlinks" }, description: "Clear only the hyperlinks in the cells." }, function() {
13697
+ }), new Tt("clearHyperlinks", q, { label: "Clear Hyperlinks", scopedLabels: { clear: "Hyperlinks" }, description: "Clear only the hyperlinks in the cells." }, function() {
13698
13698
  Hl(this, A0.Content.Hyperlinks);
13699
- }), new Tt("clearComments", U, { label: "Clear Comments", scopedLabels: { clear: "Comments" }, description: "Clear the comments from the cells." }, function() {
13699
+ }), new Tt("clearComments", q, { label: "Clear Comments", scopedLabels: { clear: "Comments" }, description: "Clear the comments from the cells." }, function() {
13700
13700
  Hl(this, A0.Content.Comments);
13701
- }), new Tt("clearAll", U, { label: "Clear All", scopedLabels: { clear: "All" }, description: `Clears everything from the cells.
13701
+ }), new Tt("clearAll", q, { label: "Clear All", scopedLabels: { clear: "All" }, description: `Clears everything from the cells.
13702
13702
 
13703
13703
  All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers: [Re.Ctrl, Re.Shift] } }, function() {
13704
13704
  Hl(this);
13705
- }), new Ie("freezeToggle", U, { label: "Freeze Panes", description: "Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)." }), new Ie("freezeToggleHorizontal", U, { label: "Freeze Top Rows", description: "Keep the top rows visible while scrolling through the rest of the sheet." }), new Ie("freezeToggleVertical", U, { label: "Freeze Left Columns", description: "Keep the left columns visible while scrolling through the rest of the sheet." }), new Tt("unfreeze", U, { label: "Unfreeze Panes", description: "Unfreeze both the rows and columns." }), new Tt("autoFitRows", U, { label: "Autofit Rows", description: "Adjust the rows to the best height." }), new Tt("autoFitColumns", U, { label: "Autofit Columns", description: "Adjust the columns to the best width." })], []), be = K(() => {
13705
+ }), new Ie("freezeToggle", q, { label: "Freeze Panes", description: "Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)." }), new Ie("freezeToggleHorizontal", q, { label: "Freeze Top Rows", description: "Keep the top rows visible while scrolling through the rest of the sheet." }), new Ie("freezeToggleVertical", q, { label: "Freeze Left Columns", description: "Keep the left columns visible while scrolling through the rest of the sheet." }), new Tt("unfreeze", q, { label: "Unfreeze Panes", description: "Unfreeze both the rows and columns." }), new Tt("autoFitRows", q, { label: "Autofit Rows", description: "Adjust the rows to the best height." }), new Tt("autoFitColumns", q, { label: "Autofit Columns", description: "Adjust the columns to the best width." })], []), be = K(() => {
13706
13706
  let he = null;
13707
- return he = W ? W.createChildGroup(U, "sheet", !1) : new fs(U, "sheet"), he.addCommands(v5, !0), he;
13707
+ return he = W ? W.createChildGroup(q, "sheet", !1) : new fs(q, "sheet"), he.addCommands(v5, !0), he;
13708
13708
  }, [W, v5]), [Ul, Um] = J(!1), [ql, qm] = J(!1);
13709
13709
  ye(() => {
13710
13710
  if (Vt.current !== de || !At) return;
@@ -14082,7 +14082,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
14082
14082
  const lt = t0 === pt.HorizontalAlignment.CenterContinuous || t0 === pt.HorizontalAlignment.Fill, dt = { disabled: nt || lt };
14083
14083
  be.getCommand("formatTextRotate0").update(dt), be.getCommand("formatTextRotate45").update(dt), be.getCommand("formatTextRotate90").update(dt), be.getCommand("formatTextRotate270").update(dt), be.getCommand("formatTextRotate315").update(dt), be.getCommand("formatTextRotateCustom").update(dt), be.getCommand("formatTextRotateVertical").update(dt);
14084
14084
  }, [Rs]), be;
14085
- }({ sheet: n, commands: f, target: Yt, onRepeatCommandChange: m, bodyStyle: q, notifier: z, onStartEdit: wt, getViewport: tn }), [wn, On] = J(n.getSelection().isEntire()), [Vn, no] = J(Q?.getMovableSelection().length > 0), wo = se !== null || Vn, Eo = null, [Bn, Kt] = J(!1);
14085
+ }({ sheet: n, commands: f, target: Yt, onRepeatCommandChange: m, bodyStyle: U, notifier: z, onStartEdit: wt, getViewport: tn }), [wn, On] = J(n.getSelection().isEntire()), [Vn, no] = J(Q?.getMovableSelection().length > 0), wo = se !== null || Vn, Eo = null, [Bn, Kt] = J(!1);
14086
14086
  ye(() => {
14087
14087
  Kt(!1);
14088
14088
  }, [n.getProtection()]);
@@ -14123,7 +14123,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
14123
14123
  const ze = (mt, kt) => {
14124
14124
  En.current = !0, Nn([(W) => {
14125
14125
  if (!W.toClipBounds(W.getRangeCoordsBounds({ rowStart: 0, rowEnd: qe.height, colStart: mt, colEnd: mt }))) return;
14126
- const U = W.getLayout(), ue = Math.max(0, U.getColOffset(mt)), ge = W.getBounds(), $e = Math.min(ge.x + ge.width, U.getColOffset(mt + 1)), ot = W.getAnchor();
14126
+ const q = W.getLayout(), ue = Math.max(0, q.getColOffset(mt)), ge = W.getBounds(), $e = Math.min(ge.x + ge.width, q.getColOffset(mt + 1)), ot = W.getAnchor();
14127
14127
  if (kt !== null && (ot === _o.Left || ot === _o.Center || ot === _o.Right)) {
14128
14128
  const Sn = Jt.roundAccurately(kt * Jt.getDPI(), 0), jt = Jt.roundAccurately(n?.getColumnWidthAsFontUnit(kt / De), 2).toFixed(2), Ut = "Width: " + (kt ? jt + " (" + Sn + " pixels)" : "Hidden"), Zn = Ft.current.getGridElement().getRelativePointFromClient(0, 0), gt = 0 - Zn.y, ln = 0 - Zn.y + Te, ho = { x: ue - (Zn.x - ge.x), y: gt, width: $e - ue, height: ln - gt };
14129
14129
  requestAnimationFrame(() => {
@@ -14150,7 +14150,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
14150
14150
  const ze = (mt, kt) => {
14151
14151
  En.current = !0, Nn([(W) => {
14152
14152
  if (!W.toClipBounds(W.getRangeCoordsBounds({ rowStart: mt, rowEnd: mt, colStart: 0, colEnd: qe.width }))) return;
14153
- const U = W.getLayout(), ue = Math.max(0, U.getRowOffset(mt)), ge = W.getBounds(), $e = Math.min(ge.y + ge.height, U.getRowOffset(mt + 1)), ot = W.getAnchor();
14153
+ const q = W.getLayout(), ue = Math.max(0, q.getRowOffset(mt)), ge = W.getBounds(), $e = Math.min(ge.y + ge.height, q.getRowOffset(mt + 1)), ot = W.getAnchor();
14154
14154
  if (kt !== null && (ot === _o.Top || ot === _o.Center || ot === _o.Bottom)) {
14155
14155
  const Sn = Math.floor(10 * Jt.getDPI()) / 10, jt = Jt.roundAccurately(kt * Sn, 0), Ut = Jt.roundAccurately(jt / De / (n?.getRowHeaders().getScaleFactor() * Jt.getDPI()), 2).toFixed(2), Zn = "Height: " + (kt ? Ut + " (" + jt + " pixels)" : "Hidden"), gt = Ee.current.getGridElement().getRelativePointFromClient(0, 0), ln = 0 - gt.x, ho = 0 - gt.x + Rt, Xt = { x: ln, y: ue - (gt.y - ge.y), width: ho - ln, height: $e - ue };
14156
14156
  requestAnimationFrame(() => {
@@ -14182,10 +14182,10 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
14182
14182
  if (!kt) return !1;
14183
14183
  const W = ie.current?.getViewFromCellCoords({ colIndex: kt.colStart, rowIndex: kt.rowStart });
14184
14184
  if (!W) return !1;
14185
- const U = W.getAnchor();
14185
+ const q = W.getAnchor();
14186
14186
  n?.getView().getMovableSelection().indexOf(mt) === -1 && n?.getView().selectMovables([mt]);
14187
- let ue = Ge.current?.get(U);
14188
- return ue?.current ? (await ue.current.focusMovable(mt), !0) : (Dt.current = { movable: mt, anchor: U }, !0);
14187
+ let ue = Ge.current?.get(q);
14188
+ return ue?.current ? (await ue.current.focusMovable(mt), !0) : (Dt.current = { movable: mt, anchor: q }, !0);
14189
14189
  };
14190
14190
  return { getGridElement: () => ie.current, getRowHeaderElement: () => Ee.current, getColumnHeaderElement: () => Ft.current, rowHeaderHeight: () => Te, colHeaderWidth: () => Rt, startEdit: wt, submitEdit: () => {
14191
14191
  Pt.setMode((mt) => mt?.key !== "edit" ? mt : { key: "edit", args: { stateAndCoords: null, submit: !0 } });
@@ -14226,14 +14226,14 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
14226
14226
  if (!de) return null;
14227
14227
  const mt = [];
14228
14228
  return n.getRange(de).forEach((kt, W) => {
14229
- const U = W.getCoords(), ue = W.getCell();
14229
+ const q = W.getCoords(), ue = W.getCell();
14230
14230
  ((ge) => {
14231
14231
  if (ge.isEmpty()) return !1;
14232
14232
  const $e = ge.getSpans();
14233
14233
  if ($e.width > 1 || $e.height > 1 || ge.getStyle().hasVisibleStyling() || Q.isShowFormulas() && ge.getFormula() !== null) return !0;
14234
14234
  const ot = ge.getValue();
14235
14235
  return ot !== null && !(!Q.isShowZeros() && ot === 0 && ge.getType() === $a.Number);
14236
- })(ue) && mt.push({ coords: U, value: ue, range: Q.isShowFormulas() ? null : ue.getExtrusions() });
14236
+ })(ue) && mt.push({ coords: q, value: ue, range: Q.isShowFormulas() ? null : ue.getExtrusions() });
14237
14237
  }, { excludeHidden: !0, includeMergeOverflow: !0 }), mt;
14238
14238
  }, [n, Q.isShowZeros(), Q.isShowFormulas(), se]);
14239
14239
  ye(() => {
@@ -14250,8 +14250,8 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
14250
14250
  return ze.keyCode === rn.Escape && de ? (ze.preventDefault(), void Pt.setMode(null)) : ze.keyCode === rn.Enter && An ? (ze.preventDefault(), await pn?.getCommand("paste")?.execute(), void Pt.setMode(null)) : void pn?.dispatchToFocusedCommand(ze);
14251
14251
  }, [pn, Pt]), Ee = oe(null), xt = K(() => d("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Te + 1}px`, width: `${Rt + X.edgeStrokeWidth}px`, minWidth: `${Rt + X.edgeStrokeWidth}px`, borderRight: `solid ${X.edgeStrokeWidth}px ${X.edgeStrokeFill}`, height: `calc(100% - ${Te}px)`, boxSizing: "border-box", zIndex: "2" }, children: d(W7, { ref: Ee, sheetElement: Ko.current, gridRef: ie, freezeStart: rt?.[_o.Top], oppositeSize: Rt, containerWidth: Rt, containerHeight: Et, sheetHeader: n.getRowHeaders(), gridStyle: j, verticalPadding: Math.max(0, Math.floor(n.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: cr, onSheetContextMenu: i, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Te + 1}px`, width: `${Rt + X.edgeStrokeWidth}px`, minWidth: `${Rt + X.edgeStrokeWidth}px`, borderRight: `solid ${X.edgeStrokeWidth}px ${X.edgeStrokeFill}`, height: `calc(100% - ${Te}px)`, boxSizing: "border-box", zIndex: "2", ...$r?.style }, ...$r }) }), [Rt, Te, Et, n, cr, rt?.[_o.Top], N, Le, i, X.fill, c]), Ft = oe(null), xn = K(() => d("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Te + X.edgeStrokeWidth}px`, minHeight: `${Te + X.edgeStrokeWidth}px`, borderBottom: `solid ${X.edgeStrokeWidth}px ${X.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: d(W7, { ref: Ft, sheetElement: Ko.current, gridRef: ie, freezeStart: rt?.[_o.Left], oppositeSize: Te, containerWidth: St, containerHeight: Te, sheetHeader: n.getColumnHeaders(), gridStyle: j, scrollPoint: sr, onSheetContextMenu: i, ...p0, style: { ...p0?.style, position: "relative", left: "0px", width: "100%", height: `${Te + X.edgeStrokeWidth}px`, minHeight: `${Te + X.edgeStrokeWidth}px`, borderBottom: `solid ${X.edgeStrokeWidth}px ${X.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Te, St, n, sr, rt?.[_o.Left], N, X.fill, Le, i, s]), hn = me((ze) => {
14252
14252
  const { value: de, key: mt, ...kt } = ze;
14253
- let W = de, U = se;
14254
- if (!U || U.colIndex === ze.coords.colIndex && U.rowIndex === ze.coords.rowIndex || (U = null), !W) {
14253
+ let W = de, q = se;
14254
+ if (!q || q.colIndex === ze.coords.colIndex && q.rowIndex === ze.coords.rowIndex || (q = null), !W) {
14255
14255
  const $e = ze.range;
14256
14256
  if (W = n.getRange({ rowIndex: $e.rowStart, colIndex: $e.colStart }).getCell(), W.isEmpty()) return null;
14257
14257
  }
@@ -14265,10 +14265,10 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
14265
14265
  z?.showError?.(ot);
14266
14266
  }
14267
14267
  }
14268
- }), U && U.colIndex === ze.range.colStart && U.rowIndex === ze.range.rowStart && (W = W.createTemporaryCell({ value: null }));
14268
+ }), q && q.colIndex === ze.range.colStart && q.rowIndex === ze.range.rowStart && (W = W.createTemporaryCell({ value: null }));
14269
14269
  const ge = n.getStyles();
14270
- return Jn(T_, { ...kt, key: mt, bodyStyle: q, docTheme: ge.getTheme(), normalStyle: ge.getNormal(), showFormulas: Q.isShowFormulas(), showZeros: Q.isShowZeros(), onLinkMouseDown: ue, ...M, value: W });
14271
- }, [n, ae, q, se, Q?.isShowFormulas(), Q.isShowZeros()]), Mt = Y((ze, de) => {
14270
+ return Jn(T_, { ...kt, key: mt, bodyStyle: U, docTheme: ge.getTheme(), normalStyle: ge.getNormal(), showFormulas: Q.isShowFormulas(), showZeros: Q.isShowZeros(), onLinkMouseDown: ue, ...M, value: W });
14271
+ }, [n, ae, U, se, Q?.isShowFormulas(), Q.isShowZeros()]), Mt = Y((ze, de) => {
14272
14272
  const { key: mt, ...kt } = ze;
14273
14273
  return [d(B_, { ref: de, getVisibleCells: Bt, sheet: n, gridStyle: N, ...kt }, `border-${mt}`), d(cE, { ref: de, sheet: n, commands: pn, ...kt }, `table-${mt}`), d(dE, { ref: de, sheet: n, ...kt }, `spill-${mt}`), d(eE, { ref: de, sheet: n, commands: pn, notifier: z, onShowTooltip: O, onCloseTooltip: ee, gridStyle: N, gridRef: ie, editingCoords: se, isActive: Le, ...kt }, `selection-${mt}`), d(G_, { ref: de, sheet: n, commands: pn, gridStyle: N, element: He, notifier: z, ...kt }, `copy-paste-${mt}`), d(iE, { ref: de, sheet: n, commands: pn, target: Yt, notifier: z, renderMovable: w, movableProps: { onUnFocus: () => {
14274
14274
  Ko.current.focus();
@@ -14276,24 +14276,24 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
14276
14276
  }, [n, ie.current, N, C, pn, z]), [nn, Xo] = J(!1), er = K(() => {
14277
14277
  if (St === 0 || Et === 0) return null;
14278
14278
  const ze = n.getStyles().getNormal(), de = ze.getFont(), mt = ze.getFill(), kt = ze.getBorder(), W = ze.getFill().getType() === Ti.Type.None;
14279
- let U = re, ue = re;
14280
- const ge = (ot, Ze, At) => At ? { stroke: kt.getBottom().isNone() ? "none" : ot.getColor().toRGBA(q.darkMode).toString(), ...Ze } : Ze;
14281
- ue = ge(kt.getBottom(), ue, !kt.getBottom().isNone()), ue = ge(kt.getTop(), ue, !kt.getTop().isNone()), U = ge(kt.getRight(), U, !kt.getRight().isNone()), U = ge(kt.getLeft(), U, !kt.getLeft().isNone());
14282
- let $e = Q?.getGridLineColor()?.toRGBA(q.darkMode).toString() ?? q.strokeFill;
14283
- return W || (ue = ge(kt.getBottom(), ue, !0), ue = ge(kt.getTop(), ue, !0), U = ge(kt.getRight(), U, !0), U = ge(kt.getLeft(), U, !0)), d(Ac, { className: "sheetxl-sheet-primary", style: { ...uE, ...mt.toCSS(q.darkMode), ...de.toCSS(q.darkMode, De), "--sxl-app-color-background": q.fill, "--sxl-app-color-shadow": N.colorShadow, "--sxl-app-color-grey": N.colorGrey, "--sxl-app-color-button-fill": te.fill, "--sxl-app-color-button-text": te.text?.fill, "--sxl-app-color-button-border": te.edgeStrokeFill, "--sxl-app-color-primary-dark": N.selection.strokeFill }, ref: ie, zoom: De, ...I, onFirstRender: (ot) => {
14279
+ let q = re, ue = re;
14280
+ const ge = (ot, Ze, At) => At ? { stroke: kt.getBottom().isNone() ? "none" : ot.getColor().toRGBA(U.darkMode).toString(), ...Ze } : Ze;
14281
+ ue = ge(kt.getBottom(), ue, !kt.getBottom().isNone()), ue = ge(kt.getTop(), ue, !kt.getTop().isNone()), q = ge(kt.getRight(), q, !kt.getRight().isNone()), q = ge(kt.getLeft(), q, !kt.getLeft().isNone());
14282
+ let $e = Q?.getGridLineColor()?.toRGBA(U.darkMode).toString() ?? U.strokeFill;
14283
+ return W || (ue = ge(kt.getBottom(), ue, !0), ue = ge(kt.getTop(), ue, !0), q = ge(kt.getRight(), q, !0), q = ge(kt.getLeft(), q, !0)), d(Ac, { className: "sheetxl-sheet-primary", style: { ...uE, ...mt.toCSS(U.darkMode), ...de.toCSS(U.darkMode, De), "--sxl-app-color-background": U.fill, "--sxl-app-color-shadow": N.colorShadow, "--sxl-app-color-grey": N.colorGrey, "--sxl-app-color-button-fill": te.fill, "--sxl-app-color-button-text": te.text?.fill, "--sxl-app-color-button-border": te.edgeStrokeFill, "--sxl-app-color-primary-dark": N.selection.strokeFill }, ref: ie, zoom: De, ...I, onFirstRender: (ot) => {
14284
14284
  Xo(!0), I?.onFirstRender?.(ot), pn?.activate();
14285
- }, showGridLines: Ne, gridLineColor: $e, gridLineColumnsProps: U, gridLineRowsProps: ue, freezeLeft: rt?.[_o.Left], freezeLeftProps: Nt, freezeTop: rt?.[_o.Top], freezeTopProps: Nt, width: St, height: Et, columnCount: qe.width, rowCount: qe.height, cursor: so ?? Eo ?? "cell", clipCells: !0, layout: ae, cellRenderer: hn, overlayRenderer: Mt, getCellCoordsAsRangeCoords: Je, getVisibleCells: Bt, onWheelScroll: Ot, onPointerDown: fn, onKeyDown: vn, onViewportChange: Fe, onImmediateScroll: It, scrollPoint: Ct, stageProps: { onFocus: () => {
14285
+ }, showGridLines: Ne, gridLineColor: $e, gridLineColumnsProps: q, gridLineRowsProps: ue, freezeLeft: rt?.[_o.Left], freezeLeftProps: Nt, freezeTop: rt?.[_o.Top], freezeTopProps: Nt, width: St, height: Et, columnCount: qe.width, rowCount: qe.height, cursor: so ?? Eo ?? "cell", clipCells: !0, layout: ae, cellRenderer: hn, overlayRenderer: Mt, getCellCoordsAsRangeCoords: Je, getVisibleCells: Bt, onWheelScroll: Ot, onPointerDown: fn, onKeyDown: vn, onViewportChange: Fe, onImmediateScroll: It, scrollPoint: Ct, stageProps: { onFocus: () => {
14286
14286
  pn?.activate();
14287
14287
  } }, overlays: wr });
14288
14288
  }, [P]);
14289
14289
  ye(() => {
14290
14290
  V.current || L();
14291
- }, [ae, rt, De, pn, Ct?.left, Ct?.top, q, I, St, Et, so, wr, Le, Eo]);
14291
+ }, [ae, rt, De, pn, Ct?.left, Ct?.top, U, I, St, Et, so, wr, Le, Eo]);
14292
14292
  let dn = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
14293
14293
  h || (dn = { ...dn, ...T });
14294
14294
  const Hn = K(() => {
14295
14295
  const ze = n.getStyles().getTheme(), de = ze.getColorScheme(), mt = ze.getFontScheme();
14296
- return { "--sxl-doc-color-dk1": de.getDk1().toCSS(q.darkMode), "--sxl-doc-color-dk2": de.getDk2().toCSS(q.darkMode), "--sxl-doc-color-lt1": de.getLt1().toCSS(q.darkMode), "--sxl-doc-color-lt2": de.getLt2().toCSS(q.darkMode), "--sxl-doc-color-accent1": de.getAccent1().toCSS(q.darkMode), "--sxl-doc-color-accent2": de.getAccent2().toCSS(q.darkMode), "--sxl-doc-color-accent3": de.getAccent3().toCSS(q.darkMode), "--sxl-doc-color-accent4": de.getAccent4().toCSS(q.darkMode), "--sxl-doc-color-accent5": de.getAccent5().toCSS(q.darkMode), "--sxl-doc-color-accent6": de.getAccent6().toCSS(q.darkMode), "--sxl-doc-color-hlink": de.getHlink().toCSS(q.darkMode), "--sxl-doc-color-fol-hlink": de.getFolHlink().toCSS(q.darkMode), "--sxl-doc-font-major": mt.getMajorFont(), "--sxl-doc-font-minor": mt.getMinorFont() };
14296
+ return { "--sxl-doc-color-dk1": de.getDk1().toCSS(U.darkMode), "--sxl-doc-color-dk2": de.getDk2().toCSS(U.darkMode), "--sxl-doc-color-lt1": de.getLt1().toCSS(U.darkMode), "--sxl-doc-color-lt2": de.getLt2().toCSS(U.darkMode), "--sxl-doc-color-accent1": de.getAccent1().toCSS(U.darkMode), "--sxl-doc-color-accent2": de.getAccent2().toCSS(U.darkMode), "--sxl-doc-color-accent3": de.getAccent3().toCSS(U.darkMode), "--sxl-doc-color-accent4": de.getAccent4().toCSS(U.darkMode), "--sxl-doc-color-accent5": de.getAccent5().toCSS(U.darkMode), "--sxl-doc-color-accent6": de.getAccent6().toCSS(U.darkMode), "--sxl-doc-color-hlink": de.getHlink().toCSS(U.darkMode), "--sxl-doc-color-fol-hlink": de.getFolHlink().toCSS(U.darkMode), "--sxl-doc-font-major": mt.getMajorFont(), "--sxl-doc-font-minor": mt.getMinorFont() };
14297
14297
  }, [n.getStyles().getTheme()]);
14298
14298
  let Tn = d("div", { style: dn, onTouchStart: () => {
14299
14299
  uo();
@@ -14301,7 +14301,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
14301
14301
  ke(!0), k?.(ze);
14302
14302
  }, onBlur: (ze) => {
14303
14303
  ke(!1), D?.(ze);
14304
- }, ref: Ko, ...R, children: d("div", { className: Er("sheetxl-sheet", "_sheetxl-sheet_1qeq6_5"), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...Hn }, children: G("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [ht, xt, G("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [xn, G("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${X.edgeStrokeWidth}px ${X.edgeStrokeFill}`, backgroundColor: q.fill }, ref: A, onContextMenu: zt, children: [er, tt, d(N_, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: N?.selection?.strokeFill, colorCredits: N?.body?.text?.fill })] })] })] }) }) });
14304
+ }, ref: Ko, ...R, children: d("div", { className: Er("sheetxl-sheet", "_sheetxl-sheet_1qeq6_5"), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...Hn }, children: G("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [ht, xt, G("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [xn, G("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${X.edgeStrokeWidth}px ${X.edgeStrokeFill}`, backgroundColor: U.fill }, ref: A, onContextMenu: zt, children: [er, tt, d(N_, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: N?.selection?.strokeFill, colorCredits: N?.body?.text?.fill })] })] })] }) }) });
14305
14305
  if (h) {
14306
14306
  const ze = (de) => d(ac, { ...de, sheet: n });
14307
14307
  Tn = d(gu, { style: { flex: "1 1 100%", overflow: "hidden", background: `${X.fill}`, minHeight: 2 * _t.height, minWidth: 2 * _t.width, ...T }, viewport: le, touchElement: ie.current?.stage, disableTouch: wo, onScrollViewport: (de) => {
@@ -15225,7 +15225,7 @@ const qE = _e(function(e) {
15225
15225
  }(T, D), N = K(() => P ? cc(P) : null, [P]), j = function() {
15226
15226
  const le = M?.autoScrollEnabled === !1, Me = typeof s == "object" ? s.enabled === !1 : s === !1, Fe = k && !le && !Me;
15227
15227
  return typeof s == "object" ? { ...s, enabled: Fe } : { enabled: Fe };
15228
- }(), q = function(le, Me) {
15228
+ }(), U = function(le, Me) {
15229
15229
  return ru(le, Me);
15230
15230
  }(B, O.draggable.measure);
15231
15231
  (function(le) {
@@ -15242,8 +15242,8 @@ const qE = _e(function(e) {
15242
15242
  Pt && Pt.scrollBy({ top: at.y, left: at.x });
15243
15243
  }
15244
15244
  }, [Me, Je, yt, et, Fe]);
15245
- })({ activeNode: D != null ? T.get(D) : null, config: j.layoutShiftCompensation, initialRect: q, measure: O.draggable.measure });
15246
- const te = i8(B, O.draggable.measure, q), X = i8(B ? B.parentElement : null), ne = oe({ activatorEvent: null, active: null, activeNode: B, collisionRect: null, collisions: null, droppableRects: Z, draggableNodes: T, draggingNode: null, draggingNodeRect: null, droppableContainers: E, over: null, scrollableAncestors: [], scrollAdjustedTranslate: null }), ce = E.getNodeFor((t = ne.current.over) == null ? void 0 : t.id), ie = function(le) {
15245
+ })({ activeNode: D != null ? T.get(D) : null, config: j.layoutShiftCompensation, initialRect: U, measure: O.draggable.measure });
15246
+ const te = i8(B, O.draggable.measure, U), X = i8(B ? B.parentElement : null), ne = oe({ activatorEvent: null, active: null, activeNode: B, collisionRect: null, collisions: null, droppableRects: Z, draggableNodes: T, draggingNode: null, draggingNodeRect: null, droppableContainers: E, over: null, scrollableAncestors: [], scrollAdjustedTranslate: null }), ce = E.getNodeFor((t = ne.current.over) == null ? void 0 : t.id), ie = function(le) {
15247
15247
  let { measure: Me } = le;
15248
15248
  const [Fe, et] = J(null), Ct = hc({ callback: Y((rt) => {
15249
15249
  for (const { target: at } of rt) if (_s(at)) {
@@ -15493,11 +15493,11 @@ const tT = Ue.memo((e) => {
15493
15493
  const { transform: $ } = yr(A).getComputedStyle(A), Z = Tf($);
15494
15494
  if (!Z) return;
15495
15495
  const ee = typeof I == "function" ? I : function(V) {
15496
- const { duration: B, easing: N, sideEffects: j, keyframes: q } = { ...Wf, ...V };
15496
+ const { duration: B, easing: N, sideEffects: j, keyframes: U } = { ...Wf, ...V };
15497
15497
  return (te) => {
15498
15498
  let { active: X, dragOverlay: ne, transform: ce, ...ie } = te;
15499
15499
  if (!B) return;
15500
- const Q = ne.rect.left - X.rect.left, fe = ne.rect.top - X.rect.top, De = { scaleX: ce.scaleX !== 1 ? X.rect.width * ce.scaleX / ne.rect.width : 1, scaleY: ce.scaleY !== 1 ? X.rect.height * ce.scaleY / ne.rect.height : 1 }, Ne = { x: ce.x - Q, y: ce.y - fe, ...De }, re = q({ ...ie, active: X, dragOverlay: ne, transform: { initial: ce, final: Ne } }), [pe] = re, Se = re[re.length - 1];
15500
+ const Q = ne.rect.left - X.rect.left, fe = ne.rect.top - X.rect.top, De = { scaleX: ce.scaleX !== 1 ? X.rect.width * ce.scaleX / ne.rect.width : 1, scaleY: ce.scaleY !== 1 ? X.rect.height * ce.scaleY / ne.rect.height : 1 }, Ne = { x: ce.x - Q, y: ce.y - fe, ...De }, re = U({ ...ie, active: X, dragOverlay: ne, transform: { initial: ce, final: Ne } }), [pe] = re, Se = re[re.length - 1];
15501
15501
  if (JSON.stringify(pe) === JSON.stringify(Se)) return;
15502
15502
  const qe = j?.({ active: X, dragOverlay: ne, ...ie }), Ye = ne.node.animate(re, { duration: B, easing: N, fill: "forwards" });
15503
15503
  return new Promise((_t) => {
@@ -15607,7 +15607,7 @@ function dT(e) {
15607
15607
  return K(() => (Q) => {
15608
15608
  ce.forEach((fe) => fe(Q));
15609
15609
  }, ce);
15610
- }(_, R), $ = !!v, Z = $ && !m && l1(u) && l1(y), ee = !w && L, V = Z ? (ee && Z ? H : null) ?? (s ?? b)({ rects: g, activeNodeRect: I, activeIndex: u, overIndex: y, index: C }) : null, B = l1(u) && l1(y) ? i({ id: l, items: h, activeIndex: u, overIndex: y }) : C, N = v?.id, j = oe({ activeId: N, items: h, newIndex: B, containerId: p }), q = h !== j.current.items, te = t({ active: v, containerId: p, isDragging: L, isSorting: $, id: l, index: C, items: h, newIndex: j.current.newIndex, previousItems: j.current.items, previousContainerId: j.current.containerId, transition: c, wasDragging: j.current.activeId != null }), X = function(ne) {
15610
+ }(_, R), $ = !!v, Z = $ && !m && l1(u) && l1(y), ee = !w && L, V = Z ? (ee && Z ? H : null) ?? (s ?? b)({ rects: g, activeNodeRect: I, activeIndex: u, overIndex: y, index: C }) : null, B = l1(u) && l1(y) ? i({ id: l, items: h, activeIndex: u, overIndex: y }) : C, N = v?.id, j = oe({ activeId: N, items: h, newIndex: B, containerId: p }), U = h !== j.current.items, te = t({ active: v, containerId: p, isDragging: L, isSorting: $, id: l, index: C, items: h, newIndex: j.current.newIndex, previousItems: j.current.items, previousContainerId: j.current.containerId, transition: c, wasDragging: j.current.activeId != null }), X = function(ne) {
15611
15611
  let { disabled: ce, index: ie, node: Q, rect: fe } = ne;
15612
15612
  const [De, Ne] = J(null), re = oe(ie);
15613
15613
  return c0(() => {
@@ -15632,7 +15632,7 @@ function dT(e) {
15632
15632
  j.current.activeId = N;
15633
15633
  }, 50);
15634
15634
  return () => clearTimeout(ne);
15635
- }, [N]), { active: v, activeIndex: u, attributes: M, data: k, rect: T, index: C, newIndex: B, items: h, isOver: E, isSorting: $, isDragging: L, listeners: P, node: z, overIndex: y, over: A, setNodeRef: O, setActivatorNodeRef: F, setDroppableNodeRef: _, setDraggableNodeRef: R, transform: X ?? V, transition: X || q && j.current.newIndex === C ? sT : ee && !Fc(x) || !c || !$ && !te ? void 0 : Zi.Transition.toString({ ...c, property: Zf }) };
15635
+ }, [N]), { active: v, activeIndex: u, attributes: M, data: k, rect: T, index: C, newIndex: B, items: h, isOver: E, isSorting: $, isDragging: L, listeners: P, node: z, overIndex: y, over: A, setNodeRef: O, setActivatorNodeRef: F, setDroppableNodeRef: _, setDraggableNodeRef: R, transform: X ?? V, transition: X || U && j.current.newIndex === C ? sT : ee && !Fc(x) || !c || !$ && !te ? void 0 : Zi.Transition.toString({ ...c, property: Zf }) };
15636
15636
  }
15637
15637
  function pc(e) {
15638
15638
  if (!e) return !1;
@@ -15784,7 +15784,7 @@ const wT = new a0("rgb(33, 115, 70)"), vT = "#eee", xT = (e) => d(fT, { ...e }),
15784
15784
  ye(() => {
15785
15785
  N !== null && ee.current && ee.current.scrollTo({ left: N, behavior: "smooth" });
15786
15786
  }, [N]);
15787
- const q = Y((Ne, re = !1) => {
15787
+ const U = Y((Ne, re = !1) => {
15788
15788
  if (!ee.current) return 0;
15789
15789
  let pe = ee.current.firstChild.getBoundingClientRect(), Se = ee.current.firstChild.firstChild.children, qe = 0;
15790
15790
  return qe = re ? 0 : K5.getScrollTo(Ne, pe.left, Se, !0, Math.max(0, Ne - 200)), j(qe), Math.max(0, qe);
@@ -15797,12 +15797,12 @@ const wT = new a0("rgb(33, 115, 70)"), vT = "#eee", xT = (e) => d(fT, { ...e }),
15797
15797
  ne.current && (clearTimeout(ne.current), ne.current = null, X.current = null);
15798
15798
  }, []), ie = Y((Ne, re, pe = 260) => {
15799
15799
  X.current = Ne, ne.current = setTimeout(() => {
15800
- const Se = re ? q(X.current || Ne) : te(X.current || Ne);
15800
+ const Se = re ? U(X.current || Ne) : te(X.current || Ne);
15801
15801
  Se !== X.current ? ie(Se, re, 120) : ce();
15802
15802
  }, pe);
15803
- }, [q, te, ce]);
15803
+ }, [U, te, ce]);
15804
15804
  ye(() => () => ce(), [ce]);
15805
- const Q = K(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(V.left) <= 0 || Math.floor(Z - O) === 0, orientation: Qo.Horizontal, onMouseUp: ce, onMouseLeave: ce, onMouseDown: () => ie(ee.current.scrollLeft, !0), onClick: (Ne) => q(Math.min(ee.current.scrollLeft, N ?? Number.MAX_SAFE_INTEGER), Ne.ctrlKey) }), [V, N, Z, O]), fe = K(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(Z - O) <= Math.ceil(V.left), orientation: Qo.Horizontal, onMouseUp: ce, onMouseLeave: ce, onMouseDown: () => ie(ee.current.scrollLeft, !1), onClick: (Ne) => te(Math.max(ee.current.scrollLeft, N ?? 0), Ne.ctrlKey) }), [V, N, Z, O]), De = K(() => G(vt, { children: [d("div", { style: { minWidth: "16px" } }), n, u?.(Q)] }), [Q, fe, h, p, n, u]);
15805
+ const Q = K(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(V.left) <= 0 || Math.floor(Z - O) === 0, orientation: Qo.Horizontal, onMouseUp: ce, onMouseLeave: ce, onMouseDown: () => ie(ee.current.scrollLeft, !0), onClick: (Ne) => U(Math.min(ee.current.scrollLeft, N ?? Number.MAX_SAFE_INTEGER), Ne.ctrlKey) }), [V, N, Z, O]), fe = K(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(Z - O) <= Math.ceil(V.left), orientation: Qo.Horizontal, onMouseUp: ce, onMouseLeave: ce, onMouseDown: () => ie(ee.current.scrollLeft, !1), onClick: (Ne) => te(Math.max(ee.current.scrollLeft, N ?? 0), Ne.ctrlKey) }), [V, N, Z, O]), De = K(() => G(vt, { children: [d("div", { style: { minWidth: "16px" } }), n, u?.(Q)] }), [Q, fe, h, p, n, u]);
15806
15806
  return G("div", { style: { ...o, display: "flex", alignItems: "stretch" }, className: Er("_TabStrip_3x0dp_1", r), ref: A, children: [d("div", { style: { borderTop: `solid ${C} ${k}px`, position: "absolute", width: "100%" } }), d("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: De }), d("div", { className: "Tabs", ref: H, style: { flex: "1 1 100%", display: "flex", position: "relative", overflow: "hidden" }, children: d("div", { style: { position: "relative", overflowY: "hidden", overflowX: "hidden", marginBottom: "3px" }, ref: ee, onScroll: (Ne) => {
15807
15807
  B({ left: Ne.target.scrollLeft, top: Ne.target.scrollTop, width: Ne.target.scrollWidth, height: Ne.target.scrollHeight });
15808
15808
  }, children: d(yT, { isDisabled: (Ne) => y || w, items: z, strategy: oT, modifiers: [pT], ref: $, renderItem: F, renderDivider: m, onMove: x, activationConstraint: { distance: 15 } }) }) }), d("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: u(fe) })] });
@@ -15811,7 +15811,7 @@ Kf.displayName = "TabStrip";
15811
15811
  const NR = (e) => G("svg", { ...e, viewBox: "0 0 48 48", children: [d("path", { d: "M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z", fill: "#547DBE" }), d("path", { d: "m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z", fill: "#FFFFFF" }), d("path", { d: "m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z", fill: "#547DBE", fillOpacity: "0.4" }), d("path", { d: "m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z", strokeWidth: "2.5", stroke: "#EB594D", fill: "#f9CECB" })] }), ST = Xi(null), Xf = () => {
15812
15812
  const e = S0(ST), [t] = J(() => new Km());
15813
15813
  return K(() => e || t, [e]);
15814
- }, CT = Ue.lazy(() => import("./DsLBuFS0K1zRuAH4.mjs")), kT = { lightbulb: { enabled: !1 }, tabSize: 2, acceptSuggestionOnCommitCharacter: !0, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: !0, autoIndent: !1, codeLens: !0, colorDecorators: !0, contextmenu: !0, cursorBlinking: "blink", cursorSmoothCaretAnimation: !1, cursorStyle: "line", disableLayerHinting: !1, disableMonospaceOptimizations: !1, dragAndDrop: !0, glyphMargin: !0, fixedOverflowWidgets: !1, folding: !0, foldingStrategy: "auto", fontLigatures: !1, formatOnPaste: !0, formatOnType: !1, hideCursorInOverviewRuler: !1, highlightActiveIndentGuide: !0, links: !0, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: !1, multiCursorMergeOverlapping: !0, multiCursorModifier: "alt", overviewRulerBorder: !0, overviewRulerLanes: 2, quickSuggestions: !0, quickSuggestionsDelay: 100, readOnly: !1, renderControlCharacters: !1, renderFinalNewline: !0, renderIndentGuides: !0, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: !0, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: !0, selectOnLineNumbers: !0, selectionClipboard: !0, selectionHighlight: !0, showLightbulbIconMode: !1, showFoldingControls: "mouseover", smoothScrolling: !0, suggestOnTriggerCharacters: !0, wordBasedSuggestions: !0, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: !0, wrappingIndent: "none" }, f8 = async (e, t, n) => {
15814
+ }, CT = Ue.lazy(() => import("./CZHwRNMFtuOcxy3e.mjs")), kT = { lightbulb: { enabled: !1 }, tabSize: 2, acceptSuggestionOnCommitCharacter: !0, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: !0, autoIndent: !1, codeLens: !0, colorDecorators: !0, contextmenu: !0, cursorBlinking: "blink", cursorSmoothCaretAnimation: !1, cursorStyle: "line", disableLayerHinting: !1, disableMonospaceOptimizations: !1, dragAndDrop: !0, glyphMargin: !0, fixedOverflowWidgets: !1, folding: !0, foldingStrategy: "auto", fontLigatures: !1, formatOnPaste: !0, formatOnType: !1, hideCursorInOverviewRuler: !1, highlightActiveIndentGuide: !0, links: !0, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: !1, multiCursorMergeOverlapping: !0, multiCursorModifier: "alt", overviewRulerBorder: !0, overviewRulerLanes: 2, quickSuggestions: !0, quickSuggestionsDelay: 100, readOnly: !1, renderControlCharacters: !1, renderFinalNewline: !0, renderIndentGuides: !0, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: !0, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: !0, selectOnLineNumbers: !0, selectionClipboard: !0, selectionHighlight: !0, showLightbulbIconMode: !1, showFoldingControls: "mouseover", smoothScrolling: !0, suggestOnTriggerCharacters: !0, wordBasedSuggestions: !0, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: !0, wrappingIndent: "none" }, f8 = async (e, t, n) => {
15815
15815
  const o = e.getModel();
15816
15816
  if (!o) return;
15817
15817
  const r = await t.languages.typescript.getTypeScriptWorker(), i = await r(o.uri), l = await i.getNavigationTree(o.uri.toString()), s = e.getPosition();
@@ -15900,13 +15900,13 @@ const TT = _e(Ve((e, t) => {
15900
15900
  const V = $.getModel();
15901
15901
  if (!V) return null;
15902
15902
  const B = await Z.languages.typescript.getTypeScriptWorker(), N = await B(V.uri), j = await N.getNavigationTree(V.uri.toString());
15903
- let q = null, te = $.getSelection();
15903
+ let U = null, te = $.getSelection();
15904
15904
  const X = te.startLineNumber === te.endLineNumber && te.startColumn === te.endColumn ? V.getLineCount() : Math.min(te.endLineNumber, V.getLineCount());
15905
- for (let ne = te.startLineNumber; !q && ne <= X; ne++) {
15905
+ for (let ne = te.startLineNumber; !U && ne <= X; ne++) {
15906
15906
  const ce = s5(j, V.getOffsetAt({ lineNumber: ne, column: 1 }), "function", ee);
15907
- ce && (q = ce.text);
15907
+ ce && (U = ce.text);
15908
15908
  }
15909
- return q;
15909
+ return U;
15910
15910
  })(F, H);
15911
15911
  return h?.({ message: (O ?? "").toUpperCase() }), O ? { source: F.getValue(), name: O } : null;
15912
15912
  }, [h]), E = me(async (A, F, H) => {
@@ -15919,7 +15919,7 @@ const TT = _e(Ve((e, t) => {
15919
15919
  }
15920
15920
  ee.editor.setModelMarkers(Z, "owner", V);
15921
15921
  }(A, F), async function(Z, ee, V, B) {
15922
- const N = await ee.languages.typescript.getTypeScriptWorker(), j = await N(Z.uri), q = await j.getNavigationTree(Z.uri.toString()), te = iu(Z, ee, B, q).map((X) => {
15922
+ const N = await ee.languages.typescript.getTypeScriptWorker(), j = await N(Z.uri), U = await j.getNavigationTree(Z.uri.toString()), te = iu(Z, ee, B, U).map((X) => {
15923
15923
  let ne = null, ce = null;
15924
15924
  return X.type === "formula" ? (ne = "formula.margin-icon", ce = "Formula") : X.type === "macro" ? (ne = "macro.margin-icon", ce = "Macro") : X.type === "autoRun" && (ne = "autorun.margin-icon", ce = "Auto Run"), { range: new ee.Range(X.lineNumber, 1, X.lineNumber, 1), options: { isWholeLine: !1, glyphMarginClassName: ne, glyphMarginHoverMessage: ce, stickiness: ee.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges } };
15925
15925
  });
@@ -15967,7 +15967,7 @@ const TT = _e(Ve((e, t) => {
15967
15967
  }, []), I = oe(null), M = me((A, F) => {
15968
15968
  u.current = { monaco: F, editor: A }, T(!0), v("Loading Types");
15969
15969
  const H = S.getScripts().getModules().search()[0]?.getSource() ?? "";
15970
- A.setValue(H), import("./CJPeBWCN11PDgfKC.mjs").then(($) => $.c).then(($) => {
15970
+ A.setValue(H), import("./CtrJpHZ64drgG60l.mjs").then(($) => $.c).then(($) => {
15971
15971
  v(""), $.AutoTypings.create(A, { shareCache: !0, monaco: F, onError: (Z) => {
15972
15972
  Z === "Not implemented yet" && (Z = "Compile Errors"), console.warn("Error compiling types", Z);
15973
15973
  } }).then(async (Z) => {
@@ -15988,10 +15988,10 @@ const TT = _e(Ve((e, t) => {
15988
15988
  });
15989
15989
  } }), A.onMouseDown(async ($) => {
15990
15990
  if ($.target.type === F.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
15991
- const Z = $.target.position.lineNumber, ee = await F.languages.typescript.getTypeScriptWorker(), V = await ee(O.uri), B = await V.getNavigationTree(O.uri.toString()), N = A?.getValue(), j = (await S?.saveSource(N)).getFunctions().search(), q = iu(O, F, j, B).find((te) => te.lineNumber === Z);
15992
- if (q) {
15991
+ const Z = $.target.position.lineNumber, ee = await F.languages.typescript.getTypeScriptWorker(), V = await ee(O.uri), B = await V.getNavigationTree(O.uri.toString()), N = A?.getValue(), j = (await S?.saveSource(N)).getFunctions().search(), U = iu(O, F, j, B).find((te) => te.lineNumber === Z);
15992
+ if (U) {
15993
15993
  const te = $.event.browserEvent.button;
15994
- te === 0 ? q.type === "macro" || q.type === "autoRun" ? C({ functionName: q.name }) : q.type === "formula" && S.quickInsertFunction?.(q.name) : te === 2 && (console.log("Context menu for function:", q.name), $.event.browserEvent.preventDefault());
15994
+ te === 0 ? U.type === "macro" || U.type === "autoRun" ? C({ functionName: U.name }) : U.type === "formula" && S.quickInsertFunction?.(U.name) : te === 2 && (console.log("Context menu for function:", U.name), $.event.browserEvent.preventDefault());
15995
15995
  }
15996
15996
  }
15997
15997
  }), A.onDidChangeModelContent(() => {
@@ -16003,8 +16003,8 @@ const TT = _e(Ve((e, t) => {
16003
16003
  Z.languages.registerInlayHintsProvider("typescript", { provideInlayHints(ee, V, B) {
16004
16004
  const N = [];
16005
16005
  for (let j = 1; j < ee.getLineCount() + 1; j++) {
16006
- const q = { startLineNumber: j, startColumn: 1, endLineNumber: j, endColumn: ee.getLineLength(j) + 1 }, te = "hint", X = ee.getValueInRange(q).indexOf("hint");
16007
- X !== -1 && N.push({ kind: Z.languages.InlayHintKind.Type, position: { lineNumber: q.startLineNumber, column: X + te.length + 1 }, label: "[hint]" });
16006
+ const U = { startLineNumber: j, startColumn: 1, endLineNumber: j, endColumn: ee.getLineLength(j) + 1 }, te = "hint", X = ee.getValueInRange(U).indexOf("hint");
16007
+ X !== -1 && N.push({ kind: Z.languages.InlayHintKind.Type, position: { lineNumber: U.startLineNumber, column: X + te.length + 1 }, label: "[hint]" });
16008
16008
  }
16009
16009
  return { hints: N, dispose: () => {
16010
16010
  } };
@@ -16032,11 +16032,11 @@ const TT = _e(Ve((e, t) => {
16032
16032
  F.languages.registerLinkProvider("*", { provideLinks: ($, Z) => {
16033
16033
  const ee = [], V = { links: ee }, B = $.getLinesContent();
16034
16034
  for (let N = 1; N <= B.length; N++) {
16035
- const j = B[N - 1], q = F.editor.tokenize(j, "typescript");
16036
- for (let te = 0; te < q[0].length; te++) {
16037
- const X = q[0]?.[te];
16035
+ const j = B[N - 1], U = F.editor.tokenize(j, "typescript");
16036
+ for (let te = 0; te < U[0].length; te++) {
16037
+ const X = U[0]?.[te];
16038
16038
  if (X && X.type.startsWith("string")) {
16039
- let ne = X.offset, ce = q[0]?.[te + 1]?.offset ?? j.length, ie = new F.Range(N, ne + 1, N, ce + 1), Q = $.getValueInRange(ie);
16039
+ let ne = X.offset, ce = U[0]?.[te + 1]?.offset ?? j.length, ie = new F.Range(N, ne + 1, N, ce + 1), Q = $.getValueInRange(ie);
16040
16040
  const fe = Q[0];
16041
16041
  fe !== "`" && fe !== "'" && fe !== '"' || (ne++, Q = Q.substring(1));
16042
16042
  const De = Q[Q.length - 1];
@@ -16150,7 +16150,7 @@ const TT = _e(Ve((e, t) => {
16150
16150
  r?.set(a, s);
16151
16151
  const c = s.toRGBA().toString();
16152
16152
  i?.set(c, s);
16153
- }, LT = Ue.lazy(() => import("./CLRvr3EDwZwQGFld.mjs")), AT = _e(Ve((e, t) => {
16153
+ }, LT = Ue.lazy(() => import("./C8wzMRAmJltGTr8t.mjs")), AT = _e(Ve((e, t) => {
16154
16154
  const { selectedColor: n = null, previewColor: o = e.selectedColor ?? null, recentColors: r, schemeLookup: i, disableAlpha: l = !1, previewDebounceTime: s = 100, initialPanelType: a, defaultButtonSize: c = 24, width: h, onElementLoad: p, onDone: u, onEyeDropStart: f, onEyeDropStop: m, onPreviewColor: g, onPreviewColorImmediate: y, onSelectColor: w, autoColor: b, autoColorLabel: S = "Automatic", autoColorPosition: C = Ha.Start, compareRGB: k = !1, darkMode: D = !1, ...T } = e, z = o || n, E = me(g, [g]), _ = me(y, [y]), v = me(w, [w]), x = me(f, [f]), I = me(m, [m]), [M, R] = J(!1), P = E0(), L = K(() => i || a0.getDefaultSchemeLookup(), [i]), A = K(() => {
16155
16155
  const Q = /* @__PURE__ */ new Map(), fe = /* @__PURE__ */ new Map(), De = [];
16156
16156
  Io("Primary Background", "bg1", L, De, Q, fe), Io("Primary Text", "tx1", L, De, Q, fe), Io("Secondary Background", "bg2", L, De, Q, fe), Io("Secondary Text", "tx2", L, De, Q, fe), Io("Accent 1", "accent1", L, De, Q, fe), Io("Accent 2", "accent2", L, De, Q, fe), Io("Accent 3", "accent3", L, De, Q, fe), Io("Accent 4", "accent4", L, De, Q, fe), Io("Accent 5", "accent5", L, De, Q, fe), Io("Accent 6", "accent6", L, De, Q, fe);
@@ -16200,7 +16200,7 @@ const TT = _e(Ve((e, t) => {
16200
16200
  fe = !A.mapAllPresets.has(De);
16201
16201
  }
16202
16202
  v?.(Q, fe);
16203
- }, [v, A]), q = me((Q) => {
16203
+ }, [v, A]), U = me((Q) => {
16204
16204
  const fe = Q ? new a0({ val: Q.definition.val, adjs: Q.definition.adjs }, L) : null;
16205
16205
  Promise.resolve(u?.()).then(() => {
16206
16206
  j(fe);
@@ -16233,10 +16233,10 @@ const TT = _e(Ve((e, t) => {
16233
16233
  return d(vt, { children: G(yc, { sx: { display: "flex", color: (fe) => fe.palette.text.secondary }, onMouseOver: () => {
16234
16234
  B(null);
16235
16235
  }, onClick: () => {
16236
- q(null);
16236
+ U(null);
16237
16237
  }, children: [d(we, { sx: { flex: "none", boxShadow: (fe) => fe.shadows[2], borderRadius: (fe) => fe.spacing(0.5), overflow: "hidden" }, children: d(c5, { schemeColorLookup: L, colorDef: Q, selectedColor: n === null ? b : n, previewColor: o === null ? b : o, defaultButtonSize: c, isLarge: !0, darkMode: D, compareRGB: k, swatchProps: ce }) }), d(Ln, { noWrap: !0, component: "div", style: { display: "flex", flex: "1 1 100%", marginLeft: "8px", userSelect: "none" }, children: S })] }) });
16238
16238
  }, [b, S, L, n, o]);
16239
- return G(we, { ref: t, sx: { width: h, outline: "none", padding: "10px 10px", overflow: "hidden", boxSizing: "content-box" }, ...T, children: [G("div", { style: { position: "relative", display: "flex" }, children: [G("div", { style: { opacity: F ? "0" : 1 }, children: [ie && C === Ha.Start ? G(vt, { children: [ie, d(Ei, { light: !0, style: { marginTop: "2px", marginBottom: "10px" } })] }) : null, d(s1, { title: "Theme Colors", schemeColorLookup: L, colorDefs: A.primaryColors, selectedColor: n, previewColor: o === void 0 ? n : o, swatchProps: ce, onPreviewColorDef: B, onSelectColorDef: q, compareRGB: k, darkMode: D }), d(s1, { schemeColorLookup: L, colorDefs: A.modifiedPresets, selectedColor: n, previewColor: o === void 0 ? n : o, swatchProps: ce, onPreviewColorDef: B, onSelectColorDef: q, compareRGB: k, darkMode: D }), d(Ei, { light: !0, style: { marginBottom: "10px" } }), d(s1, { title: "Standard Colors", schemeColorLookup: L, colorDefs: A.standardColors, selectedColor: n, previewColor: o === void 0 ? n : o, swatchProps: ce, onPreviewColorDef: B, onSelectColorDef: q, compareRGB: k, darkMode: D }), G("div", { style: { opacity: A.recentColorsLimited.length === 0 ? "0" : void 0, display: A.recentColorsLimited.length === 0 ? "none" : void 0 }, children: [d(Ei, { light: !0, style: { marginBottom: "10px" } }), d(s1, { title: "Recent Colors", schemeColorLookup: L, colorDefs: A.recentColorsLimited, selectedColor: n, previewColor: o === void 0 ? n : o, swatchProps: ce, onPreviewColorDef: B, onSelectColorDef: q, compareRGB: k, darkMode: D })] }), ie && C === Ha.End ? G(vt, { children: [d(Ei, { light: !0, sx: { marginTop: "2px", marginBottom: "2px" } }), ie, d("div", { style: { marginBottom: "2px" } })] }) : null] }), ne] }), d(Ei, { light: !0, style: { marginBottom: "10px" } }), G("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "space-around", gap: "8px", paddingLeft: "2px", paddingRight: "2px" }, children: [X, d("div", { style: { flex: "1 1 100%", background: "pink" } }), d(ja, { style: { minWidth: "75px", maxWidth: "75px" }, value: "check", variant: "outlined", size: "small", onClick: () => {
16239
+ return G(we, { ref: t, sx: { width: h, outline: "none", padding: "10px 10px", overflow: "hidden", boxSizing: "content-box" }, ...T, children: [G("div", { style: { position: "relative", display: "flex" }, children: [G("div", { style: { opacity: F ? "0" : 1 }, children: [ie && C === Ha.Start ? G(vt, { children: [ie, d(Ei, { light: !0, style: { marginTop: "2px", marginBottom: "10px" } })] }) : null, d(s1, { title: "Theme Colors", schemeColorLookup: L, colorDefs: A.primaryColors, selectedColor: n, previewColor: o === void 0 ? n : o, swatchProps: ce, onPreviewColorDef: B, onSelectColorDef: U, compareRGB: k, darkMode: D }), d(s1, { schemeColorLookup: L, colorDefs: A.modifiedPresets, selectedColor: n, previewColor: o === void 0 ? n : o, swatchProps: ce, onPreviewColorDef: B, onSelectColorDef: U, compareRGB: k, darkMode: D }), d(Ei, { light: !0, style: { marginBottom: "10px" } }), d(s1, { title: "Standard Colors", schemeColorLookup: L, colorDefs: A.standardColors, selectedColor: n, previewColor: o === void 0 ? n : o, swatchProps: ce, onPreviewColorDef: B, onSelectColorDef: U, compareRGB: k, darkMode: D }), G("div", { style: { opacity: A.recentColorsLimited.length === 0 ? "0" : void 0, display: A.recentColorsLimited.length === 0 ? "none" : void 0 }, children: [d(Ei, { light: !0, style: { marginBottom: "10px" } }), d(s1, { title: "Recent Colors", schemeColorLookup: L, colorDefs: A.recentColorsLimited, selectedColor: n, previewColor: o === void 0 ? n : o, swatchProps: ce, onPreviewColorDef: B, onSelectColorDef: U, compareRGB: k, darkMode: D })] }), ie && C === Ha.End ? G(vt, { children: [d(Ei, { light: !0, sx: { marginTop: "2px", marginBottom: "2px" } }), ie, d("div", { style: { marginBottom: "2px" } })] }) : null] }), ne] }), d(Ei, { light: !0, style: { marginBottom: "10px" } }), G("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "space-around", gap: "8px", paddingLeft: "2px", paddingRight: "2px" }, children: [X, d("div", { style: { flex: "1 1 100%", background: "pink" } }), d(ja, { style: { minWidth: "75px", maxWidth: "75px" }, value: "check", variant: "outlined", size: "small", onClick: () => {
16240
16240
  O();
16241
16241
  }, children: d("div", F ? { children: "Preset" } : { children: "Custom" }) }), d(ja, { variant: "contained", size: "small", style: { minWidth: "75px" }, onClick: () => {
16242
16242
  Promise.resolve(u?.()).then(() => {
@@ -17964,7 +17964,7 @@ const mM = (e, t) => d(ym, { ref: t, ...e }), bm = _e(Ve((e, t) => {
17964
17964
  }, defaultTextStyle: S, useRichStyling: !1, disabled: w, onChangeEdit: (N) => {
17965
17965
  if (N.dirty !== void 0) {
17966
17966
  const j = { sheet: u, coords: m, editState: N };
17967
- I.setMode((q) => ({ ...q, args: { ...q?.args, stateAndCoords: j } }));
17967
+ I.setMode((U) => ({ ...U, args: { ...U?.args, stateAndCoords: j } }));
17968
17968
  }
17969
17969
  }, editState: B, commands: h, onCancelEdit: () => {
17970
17970
  r?.cancelEdit(), r?.focus();
@@ -18377,7 +18377,7 @@ const hs = _e(Ve((e, t) => {
18377
18377
  return Fn({ ...k, children: T });
18378
18378
  }, [w]);
18379
18379
  return G(we, { className: "overflow-palette", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", width: "100%", maxWidth: "100%", ...o }, ref: h5([l, s, t]), ...i, children: [d(we, { sx: { flexDirection: "row", display: "flex", maxWidth: "100%", flex: "1 1 100%" }, children: g ?? f }), d(we, { sx: { display: w !== null && w.length === 0 ? "none" : "flex", flex: "1 1 0" }, children: d(h0, { createPopupPanel: C, ref: c, parentFloat: S, createTooltip: ({ children: k }, D) => d(ar, { label: "More", description: "More toolbar options…", disabled: D, children: k }), icon: d(p9, { children: d(Pg, {}) }) }) })] });
18380
- })), Mm = "https://unpkg.com/@sheetxl/scripting-templates/dist", wM = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], isDefault: !0, handler: async (e, t) => (await import("./Dkm4CH9HTgLMuj1z.mjs")).fromBufferJSON(e, t) }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: async (e, t) => (await import("./Dsvtw0sJ8FRtGm5n.mjs")).fromBufferCSV(e, t) }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: async (e, t) => (await import("./BB_9iof-6U8Cb15P.mjs").then((n) => n.i)).fromBufferXLSX(e, t) }], vM = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", isDefault: !0, handler: async (e, t) => (await import("./Dkm4CH9HTgLMuj1z.mjs")).toBufferJSON(e, t) }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: async (e, t) => (await import("./Dsvtw0sJ8FRtGm5n.mjs")).toBufferCSV(e, t) }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: async (e, t) => (await import("./BB_9iof-6U8Cb15P.mjs").then((n) => n.i)).toBufferXLSX(e, t) }];
18380
+ })), Mm = "https://unpkg.com/@sheetxl/scripting-templates/dist", wM = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], isDefault: !0, handler: async (e, t) => (await import("./BWcV52NIuFc09ZMU.mjs")).fromBufferJSON(e, t) }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: async (e, t) => (await import("./B5xN2hRZx1ESWQQr.mjs")).fromBufferCSV(e, t) }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: async (e, t) => (await import("./CnjyKbrcllttonp4.mjs").then((n) => n.i)).fromBufferXLSX(e, t) }], vM = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", isDefault: !0, handler: async (e, t) => (await import("./BWcV52NIuFc09ZMU.mjs")).toBufferJSON(e, t) }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: async (e, t) => (await import("./B5xN2hRZx1ESWQQr.mjs")).toBufferCSV(e, t) }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: async (e, t) => (await import("./CnjyKbrcllttonp4.mjs").then((n) => n.i)).toBufferXLSX(e, t) }];
18381
18381
  class Rm {
18382
18382
  constructor(t = wM, n = vM) {
18383
18383
  this._readFormatTypes = [], this._writeFormatType = [], this._readFormatTypes = Object.freeze([...t]), this._writeFormatType = Object.freeze([...n]);
@@ -18522,13 +18522,13 @@ class Rm {
18522
18522
  t?.name && (r = `${v0.getBaseName(t.name)}`);
18523
18523
  const i = this.getReadFormatTypeForExt(v0.getFileNameExtension(t?.name));
18524
18524
  if (!i) throw new Error(`Unknown file type: ${v0.getFileNameExtension(t?.name) ?? t?.name ?? "(empty)"}.`);
18525
- const l = await t.arrayBuffer(), s = new Uint8Array(l), a = { ...n, ...n?.typedConstructorOptions?.[i.key] };
18526
- delete a.typedConstructorOptions;
18527
- const c = i.handler;
18528
- if (!c) throw new Error(`Unable to resolve handler for type: ${i?.description ?? v0.getFileNameExtension(t?.name) ?? t?.name ?? "(empty)"}.`);
18529
- await a.onStart?.(r);
18530
- const h = await c(s, a);
18531
- o = new xM(t, h, r, i);
18525
+ const l = await t.arrayBuffer(), s = { ...n, ...n?.typedConstructorOptions?.[i.key] };
18526
+ delete s.typedConstructorOptions;
18527
+ const a = i.handler;
18528
+ if (!a) throw new Error(`Unable to resolve handler for type: ${i?.description ?? v0.getFileNameExtension(t?.name) ?? t?.name ?? "(empty)"}.`);
18529
+ await s.onStart?.(r);
18530
+ const c = await a(l, s);
18531
+ o = new xM(t, c, r, i);
18532
18532
  } catch (r) {
18533
18533
  throw r;
18534
18534
  }
@@ -18553,10 +18553,11 @@ class Rm {
18553
18553
  }
18554
18554
  try {
18555
18555
  await (async (h, p) => {
18556
- (function(u, f) {
18557
- const m = URL.createObjectURL(u), g = document.createElement("a");
18558
- g.style.display = "none", g.href = m, g.download = f, document.body.appendChild(g), g.click(), document.body.removeChild(g), URL.revokeObjectURL(m);
18559
- })(new Blob([p], { type: "application/octet-stream" }), h);
18556
+ let u;
18557
+ p instanceof SharedArrayBuffer ? (u = new ArrayBuffer(p.byteLength), new Uint8Array(u).set(new Uint8Array(p))) : u = p, function(f, m) {
18558
+ const g = URL.createObjectURL(f), y = document.createElement("a");
18559
+ y.style.display = "none", y.href = g, y.download = m, document.body.appendChild(y), y.click(), document.body.removeChild(y), URL.revokeObjectURL(g);
18560
+ }(new Blob([u], { type: "application/octet-stream" }), h);
18560
18561
  })(a, c);
18561
18562
  } catch (h) {
18562
18563
  throw new Error("Unable to write file.", { cause: h });
@@ -18946,8 +18947,12 @@ const Am = _e(Ve((e, t) => {
18946
18947
  return d(hu, { sx: { minWidth: "125px", maxWidth: "125px", "& .MuiInputBase-root": { paddingLeft: "0px", paddingRight: "0px" }, "& .MuiSelect-select": { paddingTop: (a) => a.spacing(0.5), paddingBottom: (a) => a.spacing(0.5), paddingLeft: (a) => a.spacing(2), color: (a) => a.palette.primary.main }, "& .MuiSelect-icon": { fill: (a) => a.palette.text.icon ?? a.palette.action.active, "&:hover:not(.Mui-disabled)": { color: (a) => a.palette.text.icon ?? a.palette.action.active } }, ...r }, size: "small", children: d(vg, { value: n, onChange: l, variant: "outlined", sx: { backgroundImage: `linear-gradient(${Lt("#fff", $n(5))}, ${Lt("#fff", $n(5))})` }, ...i, children: s }) });
18947
18948
  }), AM = _e(Ve((e, t) => {
18948
18949
  const { commands: n, selectWrapper: o, selectProps: r = {}, renderCompact: i = !1, paletteWrapper: l, toolbarsProps: s, paletteProps: a = {}, workbook: c, sx: h, ...p } = e, u = K(() => {
18949
- const k = [];
18950
- return k.push({ label: "Home", component: d(TM, { commands: n, ...s?.Home }) }), k.push({ label: "Insert", component: d(MM, { commands: n, ...s?.Insert }) }), k.push({ label: "View", component: d(RM, { commands: n, ...s?.View }) }), k;
18950
+ const k = [], { ref: D, ...T } = s?.Home || {};
18951
+ k.push({ label: "Home", component: d(TM, { commands: n, ...T }) });
18952
+ const { ref: z, ...E } = s?.Insert || {};
18953
+ k.push({ label: "Insert", component: d(MM, { commands: n, ...E }) });
18954
+ const { ref: _, ...v } = s?.View || {};
18955
+ return k.push({ label: "View", component: d(RM, { commands: n, ...v }) }), k;
18951
18956
  }, [n]), f = K(() => {
18952
18957
  const k = [];
18953
18958
  for (let D = 0; D < u.length; D++) k.push(Ue.cloneElement(u[D].component, { ...u[D].component.props, key: u[D].key ?? u[D].label }));
@@ -18985,9 +18990,9 @@ const Am = _e(Ve((e, t) => {
18985
18990
  }, [p, h, l, n, k]), { reference: Z, component: ee } = N0({ label: "allSheet", popperProps: A, anchor: F.current, onOpen: () => O(!0), onClose: () => O(!1), createPopupPanel: $ }), V = oe(null), [B, N] = J(null), j = Y((ie) => {
18986
18991
  const { floatReference: Q } = ie;
18987
18992
  return c?.({ workbook: n, index: B?.index, tabStripRef: V.current, commands: o, disabled: l, floatReference: Q, ...a });
18988
- }, [c, a, l, n, o, B]), { reference: q, component: te } = N0({ label: "sheetTab", popperProps: A, anchor: { getBoundingClientRect: () => new DOMRect(B?.left || 0, B?.top || 0, 0, 0) }, onClose: () => N(null), createPopupPanel: j });
18993
+ }, [c, a, l, n, o, B]), { reference: U, component: te } = N0({ label: "sheetTab", popperProps: A, anchor: { getBoundingClientRect: () => new DOMRect(B?.left || 0, B?.top || 0, 0, 0) }, onClose: () => N(null), createPopupPanel: j });
18989
18994
  ye(() => {
18990
- B ? q.open(0) : q.close(0);
18995
+ B ? U.open(0) : U.close(0);
18991
18996
  }, [B]);
18992
18997
  const X = Y((ie, Q) => {
18993
18998
  ie.preventDefault(), N({ left: ie.clientX - 2, top: ie.clientY - 4, index: Q });
@@ -19288,11 +19293,11 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
19288
19293
  } });
19289
19294
  const { isFullscreenAvailable: k, isFullscreenEnabled: D, toggleFullscreen: T } = function(x = {}) {
19290
19295
  const { target: I, onChange: M, onError: R, requestFullScreenOptions: P } = x, [L, A] = J(!1), [F, H] = J(null), [O, $] = J(!1), Z = Y(() => w0.requestFullscreen(I?.current || null, P), [I, P]), ee = Y(() => w0.exitFullscreen(), []), V = Y(() => w0.fullscreenElement ? ee() : Z(), [Z, ee]), B = Y((j) => {
19291
- const q = w0.fullscreenElement;
19292
- H(q), $(!!q), M?.(j);
19296
+ const U = w0.fullscreenElement;
19297
+ H(U), $(!!U), M?.(j);
19293
19298
  }, [M]), N = Y((j) => {
19294
- const q = w0.fullscreenElement;
19295
- H(q), $(!!q), R?.(j);
19299
+ const U = w0.fullscreenElement;
19300
+ H(U), $(!!U), R?.(j);
19296
19301
  }, [R]);
19297
19302
  return ye(() => {
19298
19303
  A(w0.fullscreenEnabled);
@@ -19522,7 +19527,7 @@ const HM = "_sheetxl-theme_4opcr_2", $M = "_sheetxl-workbook_1j3lu_5", jM = { fi
19522
19527
  const { workbook: n, createWorkbookOptions: o, onNewWorkbook: r, onElementLoad: i, notifier: l, autoFocus: s = !1, sx: a, style: c, className: h, onFocus: p, onBlur: u, onKeyDown: f, onRepeatCommandChange: m, commands: g, showFormulaBar: y, formulaBarProps: w, renderFormulaBar: b = KM, showTabs: S, tabsProps: C, renderTabs: k = UM, showStatusBar: D, statusBarProps: T, renderStatusBar: z = WM, toolbarProps: E, renderToolbar: _ = DM, contextMenuSx: v, renderContextMenu: x = ZM, renderFilterMenu: I = GM, renderMovableMenu: M = qM, renderLoadingPanel: R = XM, loadingPanelProps: P, sheetProps: L, renderSheet: A = YM, showHorizontalScrollbar: F, showVerticalScrollbar: H, gridTheme: O, headersTheme: $, forceLightImages: Z, ...ee } = e, V = E0(), B = Xf(), N = K(() => {
19523
19528
  const Ee = { theme: B.getDefaultTheme(), ...o };
19524
19529
  return n ?? new tg(Ee);
19525
- }, [n]), j = oe(null), [q, te] = J(!1), X = oe(null), ne = K(() => d(we, { className: "sheetxl-viewport", sx: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute", pointerEvents: "none !important", "& > :first-of-type": { position: "relative" } }, ref: X }), []), [ce, ie] = J(!1), [Q, fe] = J(!1), De = Y(() => {
19530
+ }, [n]), j = oe(null), [U, te] = J(!1), X = oe(null), ne = K(() => d(we, { className: "sheetxl-viewport", sx: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute", pointerEvents: "none !important", "& > :first-of-type": { position: "relative" } }, ref: X }), []), [ce, ie] = J(!1), [Q, fe] = J(!1), De = Y(() => {
19526
19531
  ie(!0);
19527
19532
  }, []), Ne = oe(null), re = $o(t, () => ({ isWorkbookElement: () => !0, getWorkbook: () => N, getSheetElement: () => j.current, getViewportElement: () => X.current, getFormulaBarElement: () => Ne.current, focus() {
19528
19533
  j && j.current && j.current.focus();
@@ -19688,7 +19693,7 @@ const HM = "_sheetxl-theme_4opcr_2", $M = "_sheetxl-workbook_1j3lu_5", jM = { fi
19688
19693
  let Ft = null, xn = 4, hn = 13;
19689
19694
  return Kt ? Ft = "m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991" : (Ft = "M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991", xn = 13, hn = 4), d(c2, { fixedPane: "after", position: "40%", minAfter: Kt ? "280px" : "120px", splitDirection: Kt ? "row" : "column", style: Jd, ref: Eo, resizerProps: { className: "styled-resizer", style: { minWidth: Kt ? "6px" : void 0, minHeight: Kt ? void 0 : "6px", maskImage: `url("data:image/svg+xml,%3Csvg width='${xn}' height='${hn}' viewBox='0 0 ${xn} ${hn}' version='1.1' fill='${V.palette.text.icon ?? V.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${Ft}' /%3E%3C/svg%3E%0A")`, maskRepeat: "no-repeat", maskPosition: Kt ? "left center" : "top center" } }, elementBefore: xt, paneBeforeProps: { style: { flexDirection: "column" } }, elementAfter: fn, paneAfterProps: { style: { marginLeft: Kt ? "0px" : "4px", marginRight: Kt ? "8px" : "4px" } } });
19690
19695
  }, [tn, wt, so, On, xe, fn, Nt, Qn, V, Kt]), vn = K(() => ({ boxSizing: "border-box", background: (Ee) => Ee.palette.mode !== "dark" ? it.header.fill : Ee.palette.background.paper, "& *": { ...Vu(V), fontWeight: 400 }, "&.Mui-focusVisible": {}, "& .viewport-overlay": { borderRight: `solid ${Vn} 1px` }, ...a }), [a, it]);
19691
- return G(_0, { className: yo("sheetxl-workbook", $M, { "Mui-focusVisible": q }, HM, h), sx: vn, style: c, square: !1, ...ee, ref: re, onFocus: (Ee) => {
19696
+ return G(_0, { className: yo("sheetxl-workbook", $M, { "Mui-focusVisible": U }, HM, h), sx: vn, style: c, square: !1, ...ee, ref: re, onFocus: (Ee) => {
19692
19697
  te(!0), Hr(), p?.(Ee);
19693
19698
  }, onBlur: (Ee) => {
19694
19699
  te(!1), u?.(Ee);
@@ -19730,7 +19735,7 @@ const QM = (e = !1, t = !1) => t ? null : { "& input:not(:focus):not(:hover)": {
19730
19735
  }, value: m }), d(we, { ref: b, sx: { position: "absolute", visibility: "hidden", top: "-9999px", fontWeight: "600 !important", whiteSpace: "pre", fontStyle: m !== y ? "italic" : void 0, fontFamily: (v) => v.typography.fontFamily, letterSpacing: "0.00938em" }, children: m || i })] }) }) });
19731
19736
  }));
19732
19737
  eR.displayName = "WorkbookTitle";
19733
- const tR = Ue.lazy(() => import("./zHTatrVtfVuPg1ii.mjs").then((e) => e.E)), nR = _e(Ve((e, t) => {
19738
+ const tR = Ue.lazy(() => import("./Bj10sTfVu6lGDFdk.mjs").then((e) => e.E)), nR = _e(Ve((e, t) => {
19734
19739
  const { sx: n, style: o, className: r, licenseKey: i, ...l } = e;
19735
19740
  return i && du.setLicenseKey(i), d(vt, { children: d(tR, { ...l, className: r, sx: n, style: o, ref: t }) });
19736
19741
  }));