@sheetxl/studio-mui 0.6.12 → 0.6.14

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 (38) hide show
  1. package/browser/cjs/{X_QtYHYH9ht4XZW0.cjs → BQxxS6muGRFYXvUF.cjs} +2 -2
  2. package/browser/cjs/{BXt8uMQ52Aco51CA.cjs → BUMcGVazpDM6KEn4.cjs} +1 -1
  3. package/browser/cjs/{DaiVK3Jma7IA404G.cjs → Bp2eLYFNvWgdHaEK.cjs} +1 -1
  4. package/browser/cjs/{Bv-QM2xw1182mYqk.cjs → BqAxyBkxHI9YvYoI.cjs} +2 -2
  5. package/browser/cjs/{Db03YcMQ9maTwJ9D.cjs → CKxpf8fGr0tYMT54.cjs} +5 -5
  6. package/browser/cjs/{C462q3C-1i37-WcU.cjs → CrP1SeXEjD5z2kO9.cjs} +1 -1
  7. package/browser/cjs/{DcNlcX3qO6sqvxQf.cjs → DUL7ill4zxukej0l.cjs} +2 -2
  8. package/browser/cjs/{BlpnGAbo58UgDQza.cjs → DUnNpuXAjXuBii_N.cjs} +2 -2
  9. package/browser/cjs/{BDR5nFOWX7NnyMoM.cjs → DXAJnkt5-kE3qsyF.cjs} +1 -1
  10. package/browser/cjs/{DEcDM8irq4LIav7r.cjs → M_HfZgTRPMWR_Dk-.cjs} +2 -2
  11. package/browser/cjs/{nHyclCVg5asgz1Py.cjs → Ybt7Mp-bRpT9Mk6H.cjs} +1 -1
  12. package/browser/cjs/index.cjs +2 -2
  13. package/browser/cjs/{Dfn2Lw7IOO4phi45.cjs → iuoocQ-M6lashFtX.cjs} +3 -3
  14. package/browser/esm/{PcyaGm6Ks_ug6tAh.mjs → B199XiibGphLZrXQ.mjs} +2 -2
  15. package/browser/esm/{On696rEx9BC35NND.mjs → BGH4JI5_Y2myilnk.mjs} +1 -1
  16. package/browser/esm/{CPpr3_WRDtllZc1x.mjs → BI4wh920NPkWujDP.mjs} +2 -2
  17. package/browser/esm/{B3VQ5Lla2rVfNvoU.mjs → BTfgoZRgUPUwvb0c.mjs} +2 -2
  18. package/browser/esm/{1aZt8s1N3IwPtg0I.mjs → BbLyHyLMgPVrNHV7.mjs} +2 -2
  19. package/browser/esm/{DIm7aUgG-G4Cjytb.mjs → Bze6aQavB3PhqIdO.mjs} +1 -1
  20. package/browser/esm/{RYweFvFtXKvPatSu.mjs → C0t3tTXJfCa-OSQR.mjs} +2 -2
  21. package/browser/esm/{HhIqNSmKsD_3vRst.mjs → CFjfD15EsnTlMlc2.mjs} +713 -713
  22. package/browser/esm/{D9OxV_CsDvcbDc4m.mjs → DvObASTOT-4DToJz.mjs} +1 -1
  23. package/browser/esm/{CqYqRJFt_MMSJjPm.mjs → IgB4VJkYazowEboE.mjs} +1 -1
  24. package/browser/esm/{B7jlirA4L119wA18.mjs → IwGsANxAJE1W0MS8.mjs} +3 -3
  25. package/browser/esm/{DcQAbZC7Pyl8H0Du.mjs → S9lMSxFPx_FXOTaR.mjs} +1 -1
  26. package/browser/esm/index.mjs +2 -2
  27. package/node/esm/{PbVay6TywQ6hnERf.mjs → B602KxC_3fiNFPpe.mjs} +1 -1
  28. package/node/esm/{BeLD1GQMpb-3tagW.mjs → BpQiLxP8DQDmrHtY.mjs} +1 -1
  29. package/node/esm/{ClVFqEPum-4R1nLc.mjs → C_tYZi5ecOkqDYUy.mjs} +1 -1
  30. package/node/esm/{CfjM1J3URUX2QGVY.mjs → CeUhT8vbhB5VHd6-.mjs} +1 -1
  31. package/node/esm/{b6kGExDaA7mRDL2O.mjs → CxVrmF0K2K6ftKzV.mjs} +1 -1
  32. package/node/esm/{Blb4cEHQ_lYuMe3Q.mjs → D4ujfc4Ugqcdqzg1.mjs} +1 -1
  33. package/node/esm/{CDYO1tY_wsBp0pz2.mjs → D7s8wJBpX6SKSl76.mjs} +1 -1
  34. package/node/esm/{BV6xXCI8xc1LWPTh.mjs → Dts5yAtSO_1mPq94.mjs} +1 -1
  35. package/node/esm/{CUj8Wnq_-HuKB_Ss.mjs → DzzBNKNsbkuloUVy.mjs} +1 -1
  36. package/node/esm/index.mjs +684 -684
  37. package/node/esm/{CdaO7TfZOk6GEFJm.mjs → tiKem60RN2pWD1NY.mjs} +1 -1
  38. package/package.json +8 -8
@@ -1,18 +1,18 @@
1
- import { Color as ft, IColor as zr, ITheme as us, CommonUtils as Ze, IBorder as Ce, IFont as Bt, NumberFormat as gt, IFontCollection as ms, IStyle as pe, ITextFrame as gs, Table as nr, IFill as kn, CoordUtils as hs, ISheet as Rt, LicenseManager as vo, Workbook as jn, TypesUtils as fs } from "@sheetxl/sdk";
1
+ import { Color as ft, IColor as zr, ITheme as us, CommonUtils as Ze, IBorder as Ce, IFont as Bt, NumberFormat as gt, IFontCollection as ms, IStyle as pe, ITextFrame as gs, Table as nr, IFill as kn, CoordUtils as hs, ISheet as Rt, LicenseManager as So, Workbook as jn, TypesUtils as fs } from "@sheetxl/sdk";
2
2
  import { jsx as e, jsxs as $, Fragment as se } from "react/jsx-runtime";
3
3
  import ae, { memo as Y, forwardRef as J, useMemo as W, useCallback as G, isValidElement as rr, useState as U, useEffect as ue, Suspense as ci, useRef as Se, createElement as Pe, useReducer as ar, useImperativeHandle as bs, version as xs, useLayoutEffect as St, Component as di, createContext as ys, useContext as ws, cloneElement as Ss } from "react";
4
- import { Box as A, Typography as Oe, IconButton as dt, MenuItem as pi, Divider as lo, Button as nn, SvgIcon as ir, Input as lr, FormControlLabel as Et, Checkbox as Dt, useMediaQuery as vs, FormControl as sr, TextField as ui, InputAdornment as Cs, Slider as ks, Paper as Po, CircularProgress as Ts, DialogTitle as Es, Select as Ds, Tabs as Ps, Tab as Rs, Card as Ms, CardActions as Is, Collapse as Ns, CssBaseline as Fs } from "@mui/material";
5
- import { themeIcon as R, CommandButton as O, ExhibitDivider as re, FormatIndentDecreaseIcon as Os, FormatIndentIncreaseIcon as As, defaultCreatePopupPanel as xe, CommandPopupButton as Re, TextVerticalTopIcon as Bs, TextVerticalCenterIcon as Ls, TextVerticalBottomIcon as Wr, TextHorizontalOverflowIcon as $r, TextHorizontalWrapIcon as Hs, TextHorizontalClipIcon as zs, TextHorizontalShrinkIcon as Ws, TextRotation315Icon as zo, TextRotation45Icon as jr, TextRotation90Icon as Vr, TextRotation2702Icon as _r, TextRotationCustomIcon as Ur, TextRotation0Icon as $s, InputCommandButton as js, SimpleTooltip as At, LoadingPanel as Lt, PopupButtonType as nt, ExhibitPopupIconButton as vt, ExhibitPopupMenuItem as cr, ColorizedCircleIcon as Vs, ExhibitMenuItem as pt, createStrokeShadowFilter as Gr, strokeShadowFilter as _s, ColorizedStrokeIcon as dr, ExhibitTooltip as rt, ExhibitIconButton as bt, CommandTooltip as pr, MergeAllIcon as qr, MergeHorizontalIcon as Us, MergeVerticalIcon as Gs, MergeUnMergeIcon as mi, FreezeBothIcon as qs, FreezeRowsIcon as Xs, FreezeColumnsIcon as Ks, FreezeIcon as Ys, FindIcon as Xr, FindReplaceIcon as Zs, GotoIcon as Js, TextSizeIncreaseIcon as Qs, TextSizeDecreaseIcon as ec, SelectedIcon as sn, CurrencyDollarIcon as tc, PercentIcon as oc, CommaIcon as nc, IncreaseDecimalIcon2 as rc, DecreaseDecimalIcon2 as ac, ClearAllIcon as Kr, ClearFormatsIcon as gi, ClearContentsIcon as ic, FillDownIcon as so, InsertCells as Yr, InsertRowIcon as lc, InsertColumn2Icon as Zr, BlankIcon as rn, RemoveCellsIcon as Jr, RemoveRowIcon as sc, RemoveColumn2Icon as Qr, LabelIcon as eo, SortIncreaseIcon as Vn, SortDecreaseIcon as hi, SortCustomIcon as cc, FilterToggleIcon as _n, FilterClearIcon as ur, FilterReapplyIcon as fi, RedoIcon as dc, UndoIcon as pc, TextStrikeIcon as ea, TextSuperscriptIcon as uc, TextSubscriptIcon as mc, TextUnderlineIcon as Tn, TextUnderlineDoubleIcon as ta, TextUnderlineAccountingIcon as oa, TextUnderlineAccountingDoubleIcon as na, PasteIcon as ra, PasteValuesIcon as gc, PasteFormatsIcon as hc, PasteFormulasIcon as fc, PasteTransposeIcon as bc, PasteLinksIcon as xc, NewPresetStylesIcon as yc, PresetStylesIcon as Ro, ExhibitMenuHeader as to, ContextMenu as bi, Theme2Icon as xi, SystemDefaultDarkMode as wc, SystemDefaultLightMode as Sc, GithubIcon as vc, DiscordIcon as Cc, DocumentationIcon as yi, TicketIcon as kc, HelpIcon as Tc, InsertImageIcon as Wo, WalkingCopyIcon as Ec, SimpleCommandPopupButton as ct, FunctionThinIcon as Dc, FunctionSumIcon as Pc, FormulaGroupIcon as Rc, FormulaFinancialIcon as Mc, FormulaLogicalIcon as Ic, FormulaTextIcon as Nc, FormulaDateTimeIcon as Fc, FormulaLookupReferenceIcon as Oc, FormulaMathTrigIcon as Ac, FormulaStatisticalIcon as Bc, FormulaEngineeringIcon as Lc, FormulaInformationIcon as Hc, FormulaCubeIcon as zc, FormulaDatabaseIcon as Wc, FormulaWebIcon as $c, FormulaCustomIcon as jc, ExhibitOptionButton as Vc, SelectRangeModeIcon as _c, hexToRGB as aa, useFloatStack as oo, CellSelectionIcon as Uc, CellSelectionRemoveIcon as Gc, CellSelectionEditIcon as qc, InsertTableIcon as an, CellSelectionInsertIcon as Xc, CloseErrorIcon as Kc, CheckSuccessIcon as Yc, FunctionIcon as Zc, VisibilityOffIcon as wi, elevateColor as it, ThemedIcon as Jc, ScriptNewIcon as Qc, ScriptFormulaIcon as Si, ScriptMacroIcon as mr, ScriptSaveIcon as ed, CommandToolbar as cn, CodeIcon as td, ScriptRunIcon as od, ColorizedTextIcon as nd, ColorizedFillIcon as rd, FormatPaintIcon as ad, TextBoldIcon as id, TextItalicIcon as ld, InsertHyperlinkIcon as Un, InsertCommentIcon as Gn, FullScreenOffIcon as sd, FullScreenIcon as cd, createScrollEdgeButton as dd, createScrollEndButton as pd, createScrollStartButton as ud, HideColumnIcon as md, ShowColumnIcon as gd, HideRowIcon as hd, ShowRowIcon as fd, ColumnsResizeAutoIcon as bd, RowsResizeAutoIcon as xd, CutIcon as yd, DrawAspectIcon as ia, DrawAlignLeftIcon as la, DrawResizeIcon as sa, DrawAlignDistributeVertIcon as wd, DrawAlignDistributeHorzIcon as Sd, DrawAlignBottomIcon as vd, DrawAlignMiddleIcon as Cd, DrawAlignTopIcon as kd, DrawAlignRightIcon as Td, DrawAlignCenterIcon as Ed, DrawMoveBackwardIcon as Dd, DrawToBackIcon as Pd, DrawMoveForwardIcon as Rd, DrawToFrontIcon as Md, scrollbarTheming as Id, StackTrace as Nd, FileNewIcon as Fd, FileOpenIcon as Od, FileDownloadAsCSVIcon as Ad, FileDownloadAsExcelIcon as Bd, FileDownloadAsSheetIcon as Ld, useResolvedThemeMode as vi, ThemeMode as qn, useModal as Hd, useLazyWindow as zd, useOptionsDialog as Wd, useInputDialog as $d, AnimatedTraversingEllipsisIcon as jd, ErrorPanel as Vd, createExhibitTheme as ca, ModalProvider as _d, ErrorAlertIcon as Ud } from "@sheetxl/utils-mui";
6
- import { FormatAlignLeft as da, FormatAlignCenter as pa, FormatAlignRight as Gd, FormatAlignJustify as To, Colorize as qd, DarkMode as ua, LightMode as ma, Keyboard as Xd, Remove as Kd, Add as Yd, ExpandLess as Zd, ExpandMore as Ci, Lock as dn, MoreHoriz as Jd, WebhookOutlined as ki, Close as Ti, AddCircleOutline as Qd, Menu as ep, CancelOutlined as tp } from "@mui/icons-material";
7
- import { useCommands as He, CommandButtonType as le, useCallbackRef as te, ReactUtils as pn, KeyCodes as be, useCommand as Ht, useEditMode as un, useMouseDownAndHoldListener as ga, NotificationType as wt, useImperativeElement as zt, SplitPane as Xn, RoundedTab as op, SimpleCommand as Ge, Command as we, KeyModifiers as ke, CommandGroup as gr, ToolTipPlacement as co, ScrollPane as np, useUndoManager as rp } from "@sheetxl/utils-react";
4
+ import { Box as A, Typography as Oe, IconButton as dt, MenuItem as pi, Divider as io, Button as on, SvgIcon as ir, Input as lr, FormControlLabel as Et, Checkbox as Dt, useMediaQuery as vs, FormControl as sr, TextField as ui, InputAdornment as Cs, Slider as ks, Paper as Do, CircularProgress as Ts, DialogTitle as Es, Select as Ds, Tabs as Ps, Tab as Rs, Card as Ms, CardActions as Is, Collapse as Ns, CssBaseline as Fs } from "@mui/material";
5
+ import { themeIcon as D, CommandButton as O, ExhibitDivider as re, FormatIndentDecreaseIcon as Os, FormatIndentIncreaseIcon as As, defaultCreatePopupPanel as xe, CommandPopupButton as Re, TextVerticalTopIcon as Bs, TextVerticalCenterIcon as Ls, TextVerticalBottomIcon as Wr, TextHorizontalOverflowIcon as $r, TextHorizontalWrapIcon as Hs, TextHorizontalClipIcon as zs, TextHorizontalShrinkIcon as Ws, TextRotation315Icon as Ho, TextRotation45Icon as jr, TextRotation90Icon as Vr, TextRotation2702Icon as _r, TextRotationCustomIcon as Ur, TextRotation0Icon as $s, InputCommandButton as js, SimpleTooltip as At, LoadingPanel as Lt, PopupButtonType as nt, ExhibitPopupIconButton as vt, ExhibitPopupMenuItem as cr, ColorizedCircleIcon as Vs, ExhibitMenuItem as pt, createStrokeShadowFilter as Gr, strokeShadowFilter as _s, ColorizedStrokeIcon as dr, ExhibitTooltip as rt, ExhibitIconButton as bt, CommandTooltip as pr, MergeAllIcon as qr, MergeHorizontalIcon as Us, MergeVerticalIcon as Gs, MergeUnMergeIcon as mi, FreezeBothIcon as qs, FreezeRowsIcon as Xs, FreezeColumnsIcon as Ks, FreezeIcon as Ys, FindIcon as Xr, FindReplaceIcon as Zs, GotoIcon as Js, TextSizeIncreaseIcon as Qs, TextSizeDecreaseIcon as ec, SelectedIcon as ln, CurrencyDollarIcon as tc, PercentIcon as oc, CommaIcon as nc, IncreaseDecimalIcon2 as rc, DecreaseDecimalIcon2 as ac, ClearAllIcon as Kr, ClearFormatsIcon as gi, ClearContentsIcon as ic, FillDownIcon as lo, InsertCells as Yr, InsertRowIcon as lc, InsertColumn2Icon as Zr, BlankIcon as nn, RemoveCellsIcon as Jr, RemoveRowIcon as sc, RemoveColumn2Icon as Qr, LabelIcon as sn, SortIncreaseIcon as Vn, SortDecreaseIcon as hi, SortCustomIcon as cc, FilterToggleIcon as _n, FilterClearIcon as ur, FilterReapplyIcon as fi, RedoIcon as dc, UndoIcon as pc, TextStrikeIcon as ea, TextSuperscriptIcon as uc, TextSubscriptIcon as mc, TextUnderlineIcon as Tn, TextUnderlineDoubleIcon as ta, TextUnderlineAccountingIcon as oa, TextUnderlineAccountingDoubleIcon as na, PasteIcon as ra, PasteValuesIcon as gc, PasteFormatsIcon as hc, PasteFormulasIcon as fc, PasteTransposeIcon as bc, PasteLinksIcon as xc, NewPresetStylesIcon as yc, PresetStylesIcon as Po, ExhibitMenuHeader as eo, ContextMenu as bi, Theme2Icon as xi, SystemDefaultDarkMode as wc, SystemDefaultLightMode as Sc, GithubIcon as vc, DiscordIcon as Cc, DocumentationIcon as yi, TicketIcon as kc, HelpIcon as Tc, InsertImageIcon as zo, WalkingCopyIcon as Ec, SimpleCommandPopupButton as ct, FunctionThinIcon as Dc, FunctionSumIcon as Pc, FormulaGroupIcon as Rc, FormulaFinancialIcon as Mc, FormulaLogicalIcon as Ic, FormulaTextIcon as Nc, FormulaDateTimeIcon as Fc, FormulaLookupReferenceIcon as Oc, FormulaMathTrigIcon as Ac, FormulaStatisticalIcon as Bc, FormulaEngineeringIcon as Lc, FormulaInformationIcon as Hc, FormulaCubeIcon as zc, FormulaDatabaseIcon as Wc, FormulaWebIcon as $c, FormulaCustomIcon as jc, ExhibitOptionButton as Vc, SelectRangeModeIcon as _c, hexToRGB as aa, useFloatStack as to, CellSelectionIcon as Uc, CellSelectionRemoveIcon as Gc, CellSelectionEditIcon as qc, InsertTableIcon as rn, CellSelectionInsertIcon as Xc, CloseErrorIcon as Kc, CheckSuccessIcon as Yc, FunctionIcon as Zc, VisibilityOffIcon as wi, elevateColor as it, ThemedIcon as Jc, ScriptNewIcon as Qc, ScriptFormulaIcon as Si, ScriptMacroIcon as mr, ScriptSaveIcon as ed, CommandToolbar as cn, CodeIcon as td, ScriptRunIcon as od, ColorizedTextIcon as nd, ColorizedFillIcon as rd, FormatPaintIcon as ad, TextBoldIcon as id, TextItalicIcon as ld, InsertHyperlinkIcon as Un, InsertCommentIcon as Gn, FormulaViewIcon as sd, ViewZeroIcon as cd, FullScreenOffIcon as dd, FullScreenIcon as pd, createScrollEdgeButton as ud, createScrollEndButton as md, createScrollStartButton as gd, HideColumnIcon as hd, ShowColumnIcon as fd, HideRowIcon as bd, ShowRowIcon as xd, ColumnsResizeAutoIcon as yd, RowsResizeAutoIcon as wd, CutIcon as Sd, DrawAspectIcon as ia, DrawAlignLeftIcon as la, DrawResizeIcon as sa, DrawAlignDistributeVertIcon as vd, DrawAlignDistributeHorzIcon as Cd, DrawAlignBottomIcon as kd, DrawAlignMiddleIcon as Td, DrawAlignTopIcon as Ed, DrawAlignRightIcon as Dd, DrawAlignCenterIcon as Pd, DrawMoveBackwardIcon as Rd, DrawToBackIcon as Md, DrawMoveForwardIcon as Id, DrawToFrontIcon as Nd, scrollbarTheming as Fd, StackTrace as Od, FileNewIcon as Ad, FileOpenIcon as Bd, FileDownloadAsCSVIcon as Ld, FileDownloadAsExcelIcon as Hd, FileDownloadAsSheetIcon as zd, useResolvedThemeMode as vi, ThemeMode as qn, useModal as Wd, useLazyWindow as $d, useOptionsDialog as jd, useInputDialog as Vd, AnimatedTraversingEllipsisIcon as _d, ErrorPanel as Ud, createExhibitTheme as ca, ModalProvider as Gd, ErrorAlertIcon as qd } from "@sheetxl/utils-mui";
6
+ import { FormatAlignLeft as da, FormatAlignCenter as pa, FormatAlignRight as Xd, FormatAlignJustify as ko, Colorize as Kd, DarkMode as ua, LightMode as ma, Keyboard as Yd, Remove as Zd, Add as Jd, ExpandLess as Qd, ExpandMore as Ci, Lock as dn, MoreHoriz as ep, WebhookOutlined as ki, Close as Ti, AddCircleOutline as tp, Menu as op, CancelOutlined as np } from "@mui/icons-material";
7
+ import { useCommands as He, CommandButtonType as le, useCallbackRef as te, ReactUtils as pn, KeyCodes as be, useCommand as Ht, useEditMode as un, useMouseDownAndHoldListener as ga, NotificationType as wt, useImperativeElement as zt, SplitPane as Xn, RoundedTab as rp, SimpleCommand as Ge, Command as we, KeyModifiers as ke, CommandGroup as gr, ToolTipPlacement as so, ScrollPane as ap, useUndoManager as ip } from "@sheetxl/utils-react";
8
8
  import { useTheme as at, alpha as he, getOverlayAlpha as De, ThemeProvider as Ei } from "@mui/material/styles";
9
- import { StyledStrokePath as ap, StaticBorderRenderer as hr, FontUtils as ip, useModelListener as _e, createCellEditStateFromCell as lp, SheetCellEditor as sp, ScriptEditor as cp, useDocThemes as fr, TabStrip as dp, SheetElement as pp, SheetScrollbar as ha, PictureEditor as up, ChartEditor as mp, EmptyFrame as gp, LogoNoPaddingIcon as hp } from "@sheetxl/react";
9
+ import { StyledStrokePath as lp, StaticBorderRenderer as hr, FontUtils as sp, useModelListener as _e, createCellEditStateFromCell as cp, SheetCellEditor as dp, ScriptEditor as pp, useDocThemes as fr, TabStrip as up, SheetElement as mp, SheetScrollbar as ha, PictureEditor as gp, ChartEditor as hp, EmptyFrame as fp, LogoNoPaddingIcon as bp } from "@sheetxl/react";
10
10
  import { alpha as Qe } from "@mui/system";
11
- import Kt, { createPortal as fp } from "react-dom";
12
- import { CommonUtils as Jt, ChainedError as Kn, PartialError as bp, UndoManager as xp } from "@sheetxl/utils";
11
+ import Kt, { createPortal as xp } from "react-dom";
12
+ import { CommonUtils as Jt, ChainedError as Kn, PartialError as yp, UndoManager as wp } from "@sheetxl/utils";
13
13
  import { IOUtils as Yt } from "@sheetxl/io";
14
14
  /**
15
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.12
15
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.14
16
16
  *
17
17
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
18
18
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -30,47 +30,47 @@ function Ae() {
30
30
  for (var r, i, o = 0, t = "", n = arguments.length; o < n; o++) (r = arguments[o]) && (i = Di(r)) && (t && (t += " "), t += i);
31
31
  return t;
32
32
  }
33
- const yp = Y(J((r, i) => {
33
+ const Sp = Y(J((r, i) => {
34
34
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, parentFloat: c, ...g } = r, a = He(o, ["formatAlignLeftToggle", "formatAlignCenterToggle", "formatAlignRightToggle", "formatAlignJustifyToggle", "formatAlignCenterContinuousToggle", "formatAlignFillToggle", "formatAlignDistributedHorizontalToggle"]), s = W(() => {
35
35
  for (let d = 0; d < a.length; d++) if (a[d]?.state()) return a[d].key();
36
36
  return a[0]?.key();
37
37
  }, [a]), u = W(() => {
38
38
  const d = /* @__PURE__ */ new Map();
39
- return d.set("formatAlignLeftToggle", R(e(da, {}))), d.set("formatAlignCenterToggle", R(e(pa, {}))), d.set("formatAlignRightToggle", R(e(Gd, {}))), d.set("formatAlignJustifyToggle", R(e(To, {}))), d.set("formatAlignCenterContinuousToggle", R(e(pa, {}))), d.set("formatAlignFillToggle", R(e(To, {}))), d.set("formatAlignDistributedHorizontalToggle", R(e(To, {}))), d;
39
+ return d.set("formatAlignLeftToggle", D(e(da, {}))), d.set("formatAlignCenterToggle", D(e(pa, {}))), d.set("formatAlignRightToggle", D(e(Xd, {}))), d.set("formatAlignJustifyToggle", D(e(ko, {}))), d.set("formatAlignCenterContinuousToggle", D(e(pa, {}))), d.set("formatAlignFillToggle", D(e(ko, {}))), d.set("formatAlignDistributedHorizontalToggle", D(e(ko, {}))), d;
40
40
  }, []), p = W(() => {
41
41
  if (!t) return null;
42
42
  const d = { ...t };
43
43
  return delete d.beforeExecute, d;
44
44
  }, [t]), h = G((d, m) => {
45
- const y = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, b = $(se, { children: [e(O, { ...y, command: m.getCommand("formatAlignLeftToggle"), icon: u.get("formatAlignLeftToggle") }), e(O, { ...y, command: m.getCommand("formatAlignCenterToggle"), icon: u.get("formatAlignCenterToggle") }), e(O, { ...y, command: m.getCommand("formatAlignRightToggle"), icon: u.get("formatAlignRightToggle") }), e(O, { ...y, command: m.getCommand("formatAlignJustifyToggle"), icon: u.get("formatAlignJustifyToggle") }), e(re, { orientation: "horizontal" }), e(O, { ...y, command: m.getCommand("formatAlignCenterContinuousToggle"), icon: u.get("formatAlignCenterContinuousToggle") }), e(O, { ...y, command: m.getCommand("formatAlignFillToggle"), icon: u.get("formatAlignFillToggle") }), e(O, { ...y, command: m.getCommand("formatAlignDistributedHorizontalToggle"), icon: u.get("formatAlignDistributedHorizontalToggle") })] }), x = $(A, { sx: { className: Ae("quick-buttons"), display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (w) => w.stopPropagation(), children: [e(O, { command: m.getCommand("formatIndentDecrease"), commandHook: p, scope: n, disabled: l, icon: R(e(Os, {})) }), e(O, { command: m.getCommand("formatIndentIncrease"), commandHook: p, scope: n, disabled: l, icon: R(e(As, {})) })] }), f = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...g, children: [x, e(re, { orientation: "horizontal" }), e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: b })] });
45
+ const y = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, b = $(se, { children: [e(O, { ...y, command: m.getCommand("formatAlignLeftToggle"), icon: u.get("formatAlignLeftToggle") }), e(O, { ...y, command: m.getCommand("formatAlignCenterToggle"), icon: u.get("formatAlignCenterToggle") }), e(O, { ...y, command: m.getCommand("formatAlignRightToggle"), icon: u.get("formatAlignRightToggle") }), e(O, { ...y, command: m.getCommand("formatAlignJustifyToggle"), icon: u.get("formatAlignJustifyToggle") }), e(re, { orientation: "horizontal" }), e(O, { ...y, command: m.getCommand("formatAlignCenterContinuousToggle"), icon: u.get("formatAlignCenterContinuousToggle") }), e(O, { ...y, command: m.getCommand("formatAlignFillToggle"), icon: u.get("formatAlignFillToggle") }), e(O, { ...y, command: m.getCommand("formatAlignDistributedHorizontalToggle"), icon: u.get("formatAlignDistributedHorizontalToggle") })] }), x = $(A, { sx: { className: Ae("quick-buttons"), display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (w) => w.stopPropagation(), children: [e(O, { command: m.getCommand("formatIndentDecrease"), commandHook: p, scope: n, disabled: l, icon: D(e(Os, {})) }), e(O, { command: m.getCommand("formatIndentIncrease"), commandHook: p, scope: n, disabled: l, icon: D(e(As, {})) })] }), f = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...g, children: [x, e(re, { orientation: "horizontal" }), e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: b })] });
46
46
  return xe({ ...d, children: f });
47
47
  }, [l, t]);
48
48
  return e(Re, { ref: i, parentFloat: c, commands: o, commandHook: t, scope: n, createPopupPanel: h, label: "Horizontal Alignment", tooltip: "Configure how text is placed in the horizontal direction of the cell.", quickCommand: s, icon: u.get(s) ?? e(da, {}), ...g });
49
- })), wp = Y(J((r, i) => {
49
+ })), vp = Y(J((r, i) => {
50
50
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = He(o, ["formatAlignTopToggle", "formatAlignMiddleToggle", "formatAlignBottomToggle", "formatAlignJustifyVerticalToggle", "formatAlignDistributedVerticalToggle"]), a = W(() => {
51
51
  for (let p = 0; p < g.length; p++) if (g[p]?.state()) return g[p].key();
52
52
  return g[0]?.key();
53
53
  }, [g]), s = W(() => {
54
54
  const p = /* @__PURE__ */ new Map();
55
- return p.set("formatAlignTopToggle", R(e(Bs, {}))), p.set("formatAlignMiddleToggle", R(e(Ls, {}))), p.set("formatAlignBottomToggle", R(e(Wr, {}))), p.set("formatAlignJustifyVerticalToggle", R(e(To, {}))), p.set("formatAlignDistributedVerticalToggle", R(e(To, {}))), p;
55
+ return p.set("formatAlignTopToggle", D(e(Bs, {}))), p.set("formatAlignMiddleToggle", D(e(Ls, {}))), p.set("formatAlignBottomToggle", D(e(Wr, {}))), p.set("formatAlignJustifyVerticalToggle", D(e(ko, {}))), p.set("formatAlignDistributedVerticalToggle", D(e(ko, {}))), p;
56
56
  }, []), u = G((p, h) => {
57
57
  const d = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, m = $(se, { children: [e(O, { ...d, command: h.getCommand("formatAlignTopToggle"), icon: s.get("formatAlignTopToggle") }), e(O, { ...d, command: h.getCommand("formatAlignMiddleToggle"), icon: s.get("formatAlignMiddleToggle") }), e(O, { ...d, command: h.getCommand("formatAlignBottomToggle"), icon: s.get("formatAlignBottomToggle") }), e(re, { orientation: "horizontal" }), e(O, { ...d, command: h.getCommand("formatAlignJustifyVerticalToggle"), icon: s.get("formatAlignJustifyVerticalToggle") }), e(O, { ...d, command: h.getCommand("formatAlignDistributedVerticalToggle"), icon: s.get("formatAlignDistributedVerticalToggle") })] });
58
58
  return xe({ ...p, children: m });
59
59
  }, [l, t, s]);
60
- return e(Re, { ref: i, commands: o, commandHook: t, createPopupPanel: u, label: "Vertical Alignment", tooltip: "Configure how text is placed in the vertical direction of the cell.", icon: s.get(a) ?? R(e(Wr, {})), ...c });
61
- })), Sp = Y(J((r, i) => {
60
+ return e(Re, { ref: i, commands: o, commandHook: t, createPopupPanel: u, label: "Vertical Alignment", tooltip: "Configure how text is placed in the vertical direction of the cell.", icon: s.get(a) ?? D(e(Wr, {})), ...c });
61
+ })), Cp = Y(J((r, i) => {
62
62
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = He(o, ["formatTextOverflowVisibleToggle", "formatTextOverflowWrapToggle", "formatTextOverflowClipToggle", "formatTextOverflowShrinkToggle"]), a = W(() => {
63
63
  for (let p = 0; p < g.length; p++) if (g[p]?.state()) return g[p].key();
64
64
  return g[0]?.key();
65
65
  }, [g]), s = W(() => {
66
66
  const p = /* @__PURE__ */ new Map();
67
- return p.set("formatTextOverflowVisibleToggle", R(e($r, {}))), p.set("formatTextOverflowWrapToggle", R(e(Hs, {}))), p.set("formatTextOverflowClipToggle", R(e(zs, {}))), p.set("formatTextOverflowShrinkToggle", R(e(Ws, {}))), p;
67
+ return p.set("formatTextOverflowVisibleToggle", D(e($r, {}))), p.set("formatTextOverflowWrapToggle", D(e(Hs, {}))), p.set("formatTextOverflowClipToggle", D(e(zs, {}))), p.set("formatTextOverflowShrinkToggle", D(e(Ws, {}))), p;
68
68
  }, []), u = te((p, h) => {
69
69
  const d = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, m = $(se, { children: [e(O, { ...d, command: h.getCommand("formatTextOverflowVisibleToggle"), icon: s.get("formatTextOverflowVisibleToggle") }), e(O, { ...d, command: h.getCommand("formatTextOverflowWrapToggle"), icon: s.get("formatTextOverflowWrapToggle") }), e(O, { ...d, command: h.getCommand("formatTextOverflowClipToggle"), icon: s.get("formatTextOverflowClipToggle") }), e(re, { orientation: "horizontal" }), e(O, { ...d, command: h.getCommand("formatTextOverflowShrinkToggle"), icon: s.get("formatTextOverflowShrinkToggle") })] });
70
70
  return xe({ ...p, children: m });
71
71
  }, [l, t, n]);
72
- return e(Re, { ref: i, commands: o, commandHook: t, scope: n, label: "Text Overflow", tooltip: "Configure how text behaves when it doesn't fit within a cell.", createPopupPanel: u, icon: s.get(a) ?? R(e($r, {})), ...c });
73
- })), vp = Y(J((r, i) => {
72
+ return e(Re, { ref: i, commands: o, commandHook: t, scope: n, label: "Text Overflow", tooltip: "Configure how text behaves when it doesn't fit within a cell.", createPopupPanel: u, icon: s.get(a) ?? D(e($r, {})), ...c });
73
+ })), kp = Y(J((r, i) => {
74
74
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = He(o, ["formatTextRotate0", "formatTextRotate315", "formatTextRotate45", "formatTextRotate90", "formatTextRotate270", "formatSubscriptToggle", "formatTextRotateCustom"]), a = W(() => {
75
75
  const h = g.length;
76
76
  for (let d = 0; d < h; d++) {
@@ -80,13 +80,13 @@ const yp = Y(J((r, i) => {
80
80
  return g[1]?.key();
81
81
  }, [g]), s = W(() => {
82
82
  const h = /* @__PURE__ */ new Map();
83
- return h.set("formatTextRotate0", R(e(zo, {}))), h.set("formatTextRotate315", R(e(zo, {}))), h.set("formatTextRotate45", R(e(jr, {}))), h.set("formatTextRotate90", R(e(Vr, {}))), h.set("formatTextRotate270", R(e(_r, {}))), h.set("formatTextRotateCustom", R(e(Ur, {}))), h;
83
+ return h.set("formatTextRotate0", D(e(Ho, {}))), h.set("formatTextRotate315", D(e(Ho, {}))), h.set("formatTextRotate45", D(e(jr, {}))), h.set("formatTextRotate90", D(e(Vr, {}))), h.set("formatTextRotate270", D(e(_r, {}))), h.set("formatTextRotateCustom", D(e(Ur, {}))), h;
84
84
  }, []), u = G((h, d) => {
85
- const m = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, y = $(se, { children: [e(O, { ...m, command: d.getCommand("formatTextRotate0"), icon: R(e($s, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...m, command: d.getCommand("formatTextRotate315"), icon: R(e(zo, {})) }), e(O, { ...m, command: d.getCommand("formatTextRotate45"), icon: R(e(jr, {})) }), e(O, { ...m, command: d.getCommand("formatTextRotate90"), icon: R(e(Vr, {})) }), e(O, { ...m, command: d.getCommand("formatTextRotate270"), icon: R(e(_r, {})) }), e(re, { orientation: "horizontal" }), e(js, { ...m, command: d.getCommand("formatTextRotateCustom"), icon: R(e(Ur, {})), label: "Custom" })] });
85
+ const m = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, y = $(se, { children: [e(O, { ...m, command: d.getCommand("formatTextRotate0"), icon: D(e($s, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...m, command: d.getCommand("formatTextRotate315"), icon: D(e(Ho, {})) }), e(O, { ...m, command: d.getCommand("formatTextRotate45"), icon: D(e(jr, {})) }), e(O, { ...m, command: d.getCommand("formatTextRotate90"), icon: D(e(Vr, {})) }), e(O, { ...m, command: d.getCommand("formatTextRotate270"), icon: D(e(_r, {})) }), e(re, { orientation: "horizontal" }), e(js, { ...m, command: d.getCommand("formatTextRotateCustom"), icon: D(e(Ur, {})), label: "Custom" })] });
86
86
  return xe({ ...h, children: y });
87
87
  }, [l, t, n, o]), p = W(() => (o.getCommand("formatTextRotateCustom")?.state() ?? 0) !== 0, [g]);
88
- return e(Re, { ref: i, commands: o, commandHook: t, scope: n, selected: p, label: "Text Orientation", tooltip: "Rotate your text diagonally or vertically. This is a great way to label narrow columns.", createPopupPanel: u, quickCommand: p ? "formatTextRotate0" : "formatTextRotate315", icon: R(s.get(a) ?? e(zo, {})), ...c });
89
- })), Cp = { Preset: "preset", Custom: "custom" }, Eo = { Start: "start", End: "end" }, En = {}, kp = (r, i, o, t) => {
88
+ return e(Re, { ref: i, commands: o, commandHook: t, scope: n, selected: p, label: "Text Orientation", tooltip: "Rotate your text diagonally or vertically. This is a great way to label narrow columns.", createPopupPanel: u, quickCommand: p ? "formatTextRotate0" : "formatTextRotate315", icon: D(s.get(a) ?? e(Ho, {})), ...c });
89
+ })), Tp = { Preset: "preset", Custom: "custom" }, To = { Start: "start", End: "end" }, En = {}, Ep = (r, i, o, t) => {
90
90
  const n = r + "-" + i + "-" + o + (t ? "-server" : "");
91
91
  if (En[n]) return En[n];
92
92
  const l = ((c, g, a, s) => {
@@ -97,10 +97,10 @@ const yp = Y(J((r, i) => {
97
97
  return p ? (p.fillStyle = c, p.fillRect(0, 0, u.width, u.height), p.fillStyle = g, p.fillRect(0, 0, a, a), p.translate(a, a), p.fillRect(0, 0, a, a), u.toDataURL()) : null;
98
98
  })(r, i, o, t);
99
99
  return En[n] = l, l;
100
- }, Tp = {}, Ep = Y((r) => {
101
- const { className: i, style: o = pn.EmptyCssProperties, white: t = "transparent", grey: n = "grey", size: l = 8, borderRadius: c, boxShadow: g, renderers: a = Tp, children: s, ...u } = r, p = s, h = W(() => Object.assign({ borderRadius: c, boxShadow: g, position: "absolute", top: "0px", left: "0px", width: "100%", height: "100%", background: `url(${kp(t, n, l, a?.canvas)}) center left` }, o), [t, n, l, a]);
100
+ }, Dp = {}, Pp = Y((r) => {
101
+ const { className: i, style: o = pn.EmptyCssProperties, white: t = "transparent", grey: n = "grey", size: l = 8, borderRadius: c, boxShadow: g, renderers: a = Dp, children: s, ...u } = r, p = s, h = W(() => Object.assign({ borderRadius: c, boxShadow: g, position: "absolute", top: "0px", left: "0px", width: "100%", height: "100%", background: `url(${Ep(t, n, l, a?.canvas)}) center left` }, o), [t, n, l, a]);
102
102
  return rr(s) ? ae.cloneElement(s, { ...p.props }) : e("div", { style: h, ...u });
103
- }), Dp = Y((r) => {
103
+ }), Rp = Y((r) => {
104
104
  const { selectedColor: i, onSelectColor: o, onPreviewColor: t, onClick: n, onKeyDown: l, onMouseOver: c, onMouseLeave: g, onFocus: a, style: s = pn.EmptyCssProperties, children: u, alphaWhite: p, alphaGrey: h, darkMode: d, alphaCheckSize: m = 7, ...y } = r;
105
105
  if (!i) throw new Error("a selectedColor is required");
106
106
  const b = G((k) => {
@@ -113,7 +113,7 @@ const yp = Y(J((r, i) => {
113
113
  a?.(k), k.isDefaultPrevented() || t?.(i.toRGBA());
114
114
  }, [t, a, i]), v = G((k) => {
115
115
  l?.(k), k.isDefaultPrevented() || k.keyCode === be.Enter && o?.(i.toRGBA());
116
- }, [o, l, i]), C = W(() => i.toRGBA().alpha === 1 ? null : e(Ep, { size: m, white: p, grey: h, style: { position: "absolute", width: "calc(100% - 1.5px)", height: "calc(100% - 1.5px)", top: "0.75px", left: "0.75px" } }), [p, h, i]);
116
+ }, [o, l, i]), C = W(() => i.toRGBA().alpha === 1 ? null : e(Pp, { size: m, white: p, grey: h, style: { position: "absolute", width: "calc(100% - 1.5px)", height: "calc(100% - 1.5px)", top: "0.75px", left: "0.75px" } }), [p, h, i]);
117
117
  return $("div", { style: { position: "absolute", height: "100%", width: "100%", top: "0px", left: "0px", cursor: "pointer", outline: "none", ...s }, tabIndex: 0, ...y, onClick: b, onKeyDown: v, onMouseOver: x, onMouseLeave: f, onFocus: w, children: [C, e("div", { style: { position: "absolute", top: "0px", left: "0px", height: "100%", width: "100%", background: i.toCSS(d) }, children: u })] });
118
118
  }), br = Y((r) => {
119
119
  const { schemeColorLookup: i, selectedColor: o, previewColor: t, colorDef: n, onSelectColorDef: l, onPreviewColorDef: c, swatchProps: g, defaultButtonSize: a = 24, isLarge: s = !1, compareRGB: u = !1, darkMode: p = !1, ...h } = r, d = new ft({ val: n.definition.val, adjs: n.definition.adjs }, (C) => i(C)), m = u ? d.toRGBA().toString() : d.toString(), y = o && (u ? o.toRGBA().toString() : o.toString()) === m, b = t && (u ? t.toRGBA().toString() : t.toString()) === m, x = [];
@@ -123,8 +123,8 @@ const yp = Y(J((r, i) => {
123
123
  }, [l, n]), v = G((C) => {
124
124
  c?.(C ? n : null);
125
125
  }, [c, n]);
126
- return e(At, { disableInteractive: !0, PopperProps: { style: { pointerEvents: "none" }, disablePortal: !0, popperOptions: { strategy: "fixed", modifiers: [{ name: "preventOverflow", enabled: !0, options: { boundariesElement: "viewport" } }] } }, title: n.description, placement: "bottom-start", children: e("div", { style: { width: a * (s ? 1.2 : 1) + "px", height: a * (s ? 1.2 : 1) + "px", position: "relative", boxSizing: "border-box", cursor: "pointer", outline: "none" }, ...h, children: $(Dp, { selectedColor: d, title: null, onSelectColor: w, onPreviewColor: v, alphaCheckSize: s ? 9 : void 0, darkMode: p, ...g, children: [e("div", { style: { position: "absolute", width: "100%", height: "100%", top: "0px", left: "0px", pointerEvents: "none", borderColor: f.toRGBA(p).toString(), borderWidth: "2px", borderStyle: "solid", boxSizing: "border-box", opacity: y ? "1" : "0" } }), e("div", { style: { position: "absolute", width: 0.33 * a * (s ? 1.2 : 1) + "px", height: 0.33 * a * (s ? 1.2 : 1) + "px", left: "calc(50% - 0.5px)", top: "calc(50% - 0.5px)", transform: "translate(-50%,-50%)", pointerEvents: "none", background: f.toRGBA(p).toString(), borderRadius: "50%", opacity: b ? "1" : "0" } })] }) }) });
127
- }), $o = Y((r) => {
126
+ return e(At, { disableInteractive: !0, PopperProps: { style: { pointerEvents: "none" }, disablePortal: !0, popperOptions: { strategy: "fixed", modifiers: [{ name: "preventOverflow", enabled: !0, options: { boundariesElement: "viewport" } }] } }, title: n.description, placement: "bottom-start", children: e("div", { style: { width: a * (s ? 1.2 : 1) + "px", height: a * (s ? 1.2 : 1) + "px", position: "relative", boxSizing: "border-box", cursor: "pointer", outline: "none" }, ...h, children: $(Rp, { selectedColor: d, title: null, onSelectColor: w, onPreviewColor: v, alphaCheckSize: s ? 9 : void 0, darkMode: p, ...g, children: [e("div", { style: { position: "absolute", width: "100%", height: "100%", top: "0px", left: "0px", pointerEvents: "none", borderColor: f.toRGBA(p).toString(), borderWidth: "2px", borderStyle: "solid", boxSizing: "border-box", opacity: y ? "1" : "0" } }), e("div", { style: { position: "absolute", width: 0.33 * a * (s ? 1.2 : 1) + "px", height: 0.33 * a * (s ? 1.2 : 1) + "px", left: "calc(50% - 0.5px)", top: "calc(50% - 0.5px)", transform: "translate(-50%,-50%)", pointerEvents: "none", background: f.toRGBA(p).toString(), borderRadius: "50%", opacity: b ? "1" : "0" } })] }) }) });
127
+ }), Wo = Y((r) => {
128
128
  const { title: i, schemeColorLookup: o, colorDefs: t, selectedColor: n, previewColor: l, onSelectColorDef: c, onPreviewColorDef: g, style: a = pn.EmptyCssProperties, compareRGB: s = !1, darkMode: u, swatchProps: p, ...h } = r;
129
129
  let d;
130
130
  if (Array.isArray(t[0])) d = t;
@@ -157,8 +157,8 @@ const yp = Y(J((r, i) => {
157
157
  n?.set(a, g);
158
158
  const s = g.toRGBA().toString();
159
159
  l?.set(s, g);
160
- }, Pp = ae.lazy(() => import("./RYweFvFtXKvPatSu.mjs")), Rp = Y(J((r, i) => {
161
- const { selectedColor: o = null, previewColor: t = r.selectedColor ?? null, recentColors: n, schemeLookup: l, disableAlpha: c = !1, previewDebounceTime: g = 100, initialPanelType: a, defaultButtonSize: s = 24, width: u, onElementLoad: p, onDone: h, onEyeDropStart: d, onEyeDropStop: m, onPreviewColor: y, onPreviewColorImmediate: b, onSelectColor: x, autoColor: f, autoColorLabel: w = "Automatic", autoColorPosition: v = Eo.Start, compareRGB: C = !1, darkMode: k = !1, ...T } = r, I = t || o, N = te(y, [y]), B = te(b, [b]), D = te(x, [x]), S = te(d, [d]), P = te(m, [m]), [L, F] = U(!1), V = at(), M = W(() => l || ft.getDefaultSchemeLookup(), [l]), E = W(() => {
160
+ }, Mp = ae.lazy(() => import("./C0t3tTXJfCa-OSQR.mjs")), Ip = Y(J((r, i) => {
161
+ const { selectedColor: o = null, previewColor: t = r.selectedColor ?? null, recentColors: n, schemeLookup: l, disableAlpha: c = !1, previewDebounceTime: g = 100, initialPanelType: a, defaultButtonSize: s = 24, width: u, onElementLoad: p, onDone: h, onEyeDropStart: d, onEyeDropStop: m, onPreviewColor: y, onPreviewColorImmediate: b, onSelectColor: x, autoColor: f, autoColorLabel: w = "Automatic", autoColorPosition: v = To.Start, compareRGB: C = !1, darkMode: k = !1, ...T } = r, I = t || o, N = te(y, [y]), B = te(b, [b]), P = te(x, [x]), S = te(d, [d]), R = te(m, [m]), [L, F] = U(!1), V = at(), M = W(() => l || ft.getDefaultSchemeLookup(), [l]), E = W(() => {
162
162
  const H = /* @__PURE__ */ new Map(), oe = /* @__PURE__ */ new Map(), Te = [];
163
163
  ze("Primary Background", "bg1", M, Te, H, oe), ze("Primary Text", "tx1", M, Te, H, oe), ze("Secondary Background", "bg2", M, Te, H, oe), ze("Secondary Text", "tx2", M, Te, H, oe), ze("Accent 1", "accent1", M, Te, H, oe), ze("Accent 2", "accent2", M, Te, H, oe), ze("Accent 3", "accent3", M, Te, H, oe), ze("Accent 4", "accent4", M, Te, H, oe), ze("Accent 5", "accent5", M, Te, H, oe), ze("Accent 6", "accent6", M, Te, H, oe);
164
164
  const ge = us.buildPalette(Te, M, H, oe), fe = [];
@@ -180,7 +180,7 @@ const yp = Y(J((r, i) => {
180
180
  Q((H) => !H);
181
181
  }, []);
182
182
  ue(() => {
183
- if (a) Q(a === Cp.Custom);
183
+ if (a) Q(a === Tp.Custom);
184
184
  else if (o) {
185
185
  let H = o.toString(), oe = E.mapAllPresets.get(H);
186
186
  oe || (H = o.toRGBA().toString(), oe = E.mapAllPresetsRGB.get(H));
@@ -206,8 +206,8 @@ const yp = Y(J((r, i) => {
206
206
  const Te = H.toString();
207
207
  oe = !E.mapAllPresets.has(Te);
208
208
  }
209
- D?.(H, oe);
210
- }, [D, E]), Le = te((H) => {
209
+ P?.(H, oe);
210
+ }, [P, E]), Le = te((H) => {
211
211
  const oe = H ? new ft({ val: H.definition.val, adjs: H.definition.adjs }, M) : null;
212
212
  Promise.resolve(h?.()).then(() => {
213
213
  me(oe);
@@ -216,7 +216,7 @@ const yp = Y(J((r, i) => {
216
216
  X(H ? new ft(H, M) : null);
217
217
  }, [M]), Be = W(() => window.EyeDropper === void 0 ? e(se, {}) : e(dt, { "aria-label": "eye dropper", size: "small", sx: { color: (H) => H.palette.text.icon ?? H.palette.action.active }, onClick: async () => {
218
218
  F(!0), S?.(), await new EyeDropper().open().then((H) => {
219
- F(!1), P?.();
219
+ F(!1), R?.();
220
220
  let oe = new ft(H.sRGBHex), Te = oe.toString(), ge = E.mapAllPresets.get(Te);
221
221
  if (ge || (Te = oe.toRGBA().toString(), ge = E.mapAllPresetsRGB.get(Te)), !ge) {
222
222
  const fe = oe.toRGBA(), Z = 3;
@@ -230,10 +230,10 @@ const yp = Y(J((r, i) => {
230
230
  }).catch((H) => {
231
231
  F(!1), H?.name !== "AbortError" && console.error(H);
232
232
  });
233
- }, children: e(qd, {}) }), [E, k]), Ye = W(() => {
233
+ }, children: e(Kd, {}) }), [E, k]), Ye = W(() => {
234
234
  if (!K) return;
235
235
  const H = { opacity: K ? 1 : "0", position: "absolute", top: "0px", left: "0px", width: "100%", height: "100%", boxSizing: "border-box" };
236
- return e(ci, { fallback: e("div", { style: H, children: e(Lt, {}) }), children: e(Pp, { style: H, selectedColor: I ? I.toRGBA().toString() : "transparent", onColorChange: Fe, disableAlpha: c }) });
236
+ return e(ci, { fallback: e("div", { style: H, children: e(Lt, {}) }), children: e(Mp, { style: H, selectedColor: I ? I.toRGBA().toString() : "transparent", onColorChange: Fe, disableAlpha: c }) });
237
237
  }, [K, I]), ve = W(() => ({ onClick: ee, alphaGrey: V.palette.text.icon ?? V.palette.action.active }), [ee, V]), $e = W(() => {
238
238
  if (!f) return null;
239
239
  const H = { description: w, definition: { val: f.getVal(), adjs: f.getAdjustments() } };
@@ -243,15 +243,15 @@ const yp = Y(J((r, i) => {
243
243
  Le(null);
244
244
  }, children: [e(A, { sx: { flex: "none", boxShadow: (oe) => oe.shadows[2], borderRadius: (oe) => oe.spacing(0.5), overflow: "hidden" }, children: e(br, { schemeColorLookup: M, colorDef: H, selectedColor: o === null ? f : o, previewColor: t === null ? f : t, defaultButtonSize: s, isLarge: !0, darkMode: k, compareRGB: C, swatchProps: ve }) }), e(Oe, { noWrap: !0, component: "div", style: { display: "flex", flex: "1 1 100%", marginLeft: "8px", userSelect: "none" }, children: w })] }) });
245
245
  }, [f, w, M, o, t]);
246
- return $(A, { ref: i, sx: { width: u, outline: "none", padding: "10px 10px", overflow: "hidden", boxSizing: "content-box" }, ...T, children: [$("div", { style: { position: "relative", display: "flex" }, children: [$("div", { style: { opacity: K ? "0" : 1 }, children: [$e && v === Eo.Start ? $(se, { children: [$e, e(lo, { light: !0, style: { marginTop: "2px", marginBottom: "10px" } })] }) : null, e($o, { title: "Theme Colors", schemeColorLookup: M, colorDefs: E.primaryColors, selectedColor: o, previewColor: t === void 0 ? o : t, swatchProps: ve, onPreviewColorDef: z, onSelectColorDef: Le, compareRGB: C, darkMode: k }), e($o, { schemeColorLookup: M, colorDefs: E.modifiedPresets, selectedColor: o, previewColor: t === void 0 ? o : t, swatchProps: ve, onPreviewColorDef: z, onSelectColorDef: Le, compareRGB: C, darkMode: k }), e(lo, { light: !0, style: { marginBottom: "10px" } }), e($o, { title: "Standard Colors", schemeColorLookup: M, colorDefs: E.standardColors, selectedColor: o, previewColor: t === void 0 ? o : t, swatchProps: ve, onPreviewColorDef: z, onSelectColorDef: Le, compareRGB: C, darkMode: k }), $("div", { style: { opacity: E.recentColorsLimited.length === 0 ? "0" : void 0, display: E.recentColorsLimited.length === 0 ? "none" : void 0 }, children: [e(lo, { light: !0, style: { marginBottom: "10px" } }), e($o, { title: "Recent Colors", schemeColorLookup: M, colorDefs: E.recentColorsLimited, selectedColor: o, previewColor: t === void 0 ? o : t, swatchProps: ve, onPreviewColorDef: z, onSelectColorDef: Le, compareRGB: C, darkMode: k })] }), $e && v === Eo.End ? $(se, { children: [e(lo, { light: !0, sx: { marginTop: "2px", marginBottom: "2px" } }), $e, e("div", { style: { marginBottom: "2px" } })] }) : null] }), Ye] }), e(lo, { light: !0, style: { marginBottom: "10px" } }), $("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "space-around", gap: "8px", paddingLeft: "2px", paddingRight: "2px" }, children: [Be, e("div", { style: { flex: "1 1 100%", background: "pink" } }), e(nn, { style: { minWidth: "75px", maxWidth: "75px" }, value: "check", variant: "outlined", size: "small", onClick: () => {
246
+ return $(A, { ref: i, sx: { width: u, outline: "none", padding: "10px 10px", overflow: "hidden", boxSizing: "content-box" }, ...T, children: [$("div", { style: { position: "relative", display: "flex" }, children: [$("div", { style: { opacity: K ? "0" : 1 }, children: [$e && v === To.Start ? $(se, { children: [$e, e(io, { light: !0, style: { marginTop: "2px", marginBottom: "10px" } })] }) : null, e(Wo, { title: "Theme Colors", schemeColorLookup: M, colorDefs: E.primaryColors, selectedColor: o, previewColor: t === void 0 ? o : t, swatchProps: ve, onPreviewColorDef: z, onSelectColorDef: Le, compareRGB: C, darkMode: k }), e(Wo, { schemeColorLookup: M, colorDefs: E.modifiedPresets, selectedColor: o, previewColor: t === void 0 ? o : t, swatchProps: ve, onPreviewColorDef: z, onSelectColorDef: Le, compareRGB: C, darkMode: k }), e(io, { light: !0, style: { marginBottom: "10px" } }), e(Wo, { title: "Standard Colors", schemeColorLookup: M, colorDefs: E.standardColors, selectedColor: o, previewColor: t === void 0 ? o : t, swatchProps: ve, onPreviewColorDef: z, onSelectColorDef: Le, compareRGB: C, darkMode: k }), $("div", { style: { opacity: E.recentColorsLimited.length === 0 ? "0" : void 0, display: E.recentColorsLimited.length === 0 ? "none" : void 0 }, children: [e(io, { light: !0, style: { marginBottom: "10px" } }), e(Wo, { title: "Recent Colors", schemeColorLookup: M, colorDefs: E.recentColorsLimited, selectedColor: o, previewColor: t === void 0 ? o : t, swatchProps: ve, onPreviewColorDef: z, onSelectColorDef: Le, compareRGB: C, darkMode: k })] }), $e && v === To.End ? $(se, { children: [e(io, { light: !0, sx: { marginTop: "2px", marginBottom: "2px" } }), $e, e("div", { style: { marginBottom: "2px" } })] }) : null] }), Ye] }), e(io, { light: !0, style: { marginBottom: "10px" } }), $("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "space-around", gap: "8px", paddingLeft: "2px", paddingRight: "2px" }, children: [Be, e("div", { style: { flex: "1 1 100%", background: "pink" } }), e(on, { style: { minWidth: "75px", maxWidth: "75px" }, value: "check", variant: "outlined", size: "small", onClick: () => {
247
247
  q();
248
- }, children: e("div", K ? { children: "Preset" } : { children: "Custom" }) }), e(nn, { variant: "contained", size: "small", style: { minWidth: "75px" }, onClick: () => {
248
+ }, children: e("div", K ? { children: "Preset" } : { children: "Custom" }) }), e(on, { variant: "contained", size: "small", style: { minWidth: "75px" }, onClick: () => {
249
249
  Promise.resolve(h?.()).then(() => {
250
250
  me(ne);
251
251
  });
252
252
  }, children: "Done" })] })] });
253
- })), Mp = e(Vs, {}), Pi = Y(J((r, i) => {
254
- const { selectedColor: o, quickColor: t, icon: n = Mp, tooltip: l, label: c, onPreviewColor: g, onPreviewColorImmediate: a, onSelectColor: s, variant: u = nt.Toolbar, panelProps: p, shouldCloseFloatAll: h = !0, compareRGB: d = !1, darkMode: m = !1, ...y } = r, b = te(g, [g]), x = te(a, [a]), f = te(s, [s]), [w, v] = U(() => {
253
+ })), Np = e(Vs, {}), Pi = Y(J((r, i) => {
254
+ const { selectedColor: o, quickColor: t, icon: n = Np, tooltip: l, label: c, onPreviewColor: g, onPreviewColorImmediate: a, onSelectColor: s, variant: u = nt.Toolbar, panelProps: p, shouldCloseFloatAll: h = !0, compareRGB: d = !1, darkMode: m = !1, ...y } = r, b = te(g, [g]), x = te(a, [a]), f = te(s, [s]), [w, v] = U(() => {
255
255
  }), C = t || w || o || p?.autoColor, k = Se(!1), T = G(() => {
256
256
  }, []), I = te(() => {
257
257
  v(o);
@@ -259,59 +259,59 @@ const yp = Y(J((r, i) => {
259
259
  k.current || (v(E), b?.(E));
260
260
  }, [b]), B = te((E) => {
261
261
  k.current || (v(E), x?.(E));
262
- }, [x]), D = te((E, K) => {
262
+ }, [x]), P = te((E, K) => {
263
263
  k.current || (v(void 0), f?.(E, K));
264
- }, [f]), S = W(() => e(A, { sx: { width: "24px", height: "24px", color: "inherit", "--sxl-color-active": `${C?.toCSS(m) ?? "transparent"}`, "& .activeColor": { fill: `${C?.toCSS(m) ?? "transparent"}` }, "& .style_grey": { fill: (E) => E.palette.text.icon ?? E.palette.action.active } }, children: typeof n == "function" ? n() : n }), [C, n, m]), P = te((E) => {
264
+ }, [f]), S = W(() => e(A, { sx: { width: "24px", height: "24px", color: "inherit", "--sxl-color-active": `${C?.toCSS(m) ?? "transparent"}`, "& .activeColor": { fill: `${C?.toCSS(m) ?? "transparent"}` }, "& .style_grey": { fill: (E) => E.palette.text.icon ?? E.palette.action.active } }, children: typeof n == "function" ? n() : n }), [C, n, m]), R = te((E) => {
265
265
  f?.(t, !1);
266
266
  }, [f, t]), [L, F] = U(!1), V = G((E) => {
267
267
  const { closeFloat: K, closeFloatAll: Q } = E;
268
- return e(Rp, { ...p, selectedColor: o, previewColor: w, onDone: h ? Q : K, onKeyDown: (q) => {
268
+ return e(Ip, { ...p, selectedColor: o, previewColor: w, onDone: h ? Q : K, onKeyDown: (q) => {
269
269
  q.which === be.Enter && (h ? Q() : K());
270
- }, onPreviewColorImmediate: B, onPreviewColor: N, onSelectColor: D, onEyeDropStart: () => F(!0), onEyeDropStop: () => F(!1), compareRGB: d, darkMode: m });
271
- }, [o, w, h, C, p?.autoColor, m]), M = { onQuickClick: t ? P : void 0, createPopupPanel: V, popupProps: { popperProps: { resizeOnOverflow: !1 } }, onPopupOpen: I, onPopupClose: T, tooltip: l || c || "Color", label: c, icon: S, ...y };
270
+ }, onPreviewColorImmediate: B, onPreviewColor: N, onSelectColor: P, onEyeDropStart: () => F(!0), onEyeDropStop: () => F(!1), compareRGB: d, darkMode: m });
271
+ }, [o, w, h, C, p?.autoColor, m]), M = { onQuickClick: t ? R : void 0, createPopupPanel: V, popupProps: { popperProps: { resizeOnOverflow: !1 } }, onPopupOpen: I, onPopupClose: T, tooltip: l || c || "Color", label: c, icon: S, ...y };
272
272
  return u === nt.Toolbar ? e(vt, { ref: i, ...M }) : e(cr, { ref: i, ...M });
273
- })), tn = 82, fa = (r) => {
274
- const { styleColor: i, length: o = tn, width: t = 1, dashArray: n = null, sx: l, isDouble: c = !1, isAngled: g = !1, darkMode: a = !1, ...s } = r;
275
- return e(ir, { sx: { width: `${o}px`, height: `${t}px`, color: "inherit", overflow: "visible", "& .activeColor": { stroke: (u) => `${i ? i.toRGBA(a).toString() : u.palette.text.icon ?? u.palette.action.active}` }, "& .style_grey": { stroke: (u) => u.palette.text.icon ?? u.palette.action.active }, ...l }, height: t, width: o, viewBox: `0 0 ${o} ${t}`, ...s, children: e(ap, { length: o, width: t, dashArray: n, isDouble: c, isAngled: g, className: "activeColor" }) });
276
- }, Ip = Y(J((r, i) => {
273
+ })), en = 82, fa = (r) => {
274
+ const { styleColor: i, length: o = en, width: t = 1, dashArray: n = null, sx: l, isDouble: c = !1, isAngled: g = !1, darkMode: a = !1, ...s } = r;
275
+ return e(ir, { sx: { width: `${o}px`, height: `${t}px`, color: "inherit", overflow: "visible", "& .activeColor": { stroke: (u) => `${i ? i.toRGBA(a).toString() : u.palette.text.icon ?? u.palette.action.active}` }, "& .style_grey": { stroke: (u) => u.palette.text.icon ?? u.palette.action.active }, ...l }, height: t, width: o, viewBox: `0 0 ${o} ${t}`, ...s, children: e(lp, { length: o, width: t, dashArray: n, isDouble: c, isAngled: g, className: "activeColor" }) });
276
+ }, Fp = Y(J((r, i) => {
277
277
  const { variant: o, showLabels: t = !1, disabled: n = !1, createPopupPanel: l, styleColor: c, selectedStyle: g, onSelectStyle: a, showNone: s = !0, darkMode: u, sx: p, ...h } = r, d = te(a, []), m = G((f) => {
278
278
  const { popupContainer: w, floatReference: v, closeFloat: C, ...k } = f, T = [], I = Ce.BuiltInDefinitionsArray;
279
279
  for (let N = 0; N < I.length; N++) {
280
280
  const B = I[N];
281
281
  if (B.description === "None" && !s) continue;
282
- const D = e(fa, { styleColor: c, length: tn, width: B.width, darkMode: u, dashArray: B.pattern, isDouble: B.description.toLowerCase().includes("double"), isAngled: B.description.toLowerCase().includes("slant") });
282
+ const P = e(fa, { styleColor: c, length: en, width: B.width, darkMode: u, dashArray: B.pattern, isDouble: B.description.toLowerCase().includes("double"), isAngled: B.description.toLowerCase().includes("slant") });
283
283
  let S = null;
284
- S = t ? $(se, { children: [e(A, { sx: { marginRight: "6px" }, children: B.description }), $(A, { sx: { marginLeft: "6px", marginRight: "6px", display: "flex", alignItems: "center", flex: "1 1 100%" }, children: [e("div", { style: { flex: "1 1 100%" } }), D] })] }) : B.description === "None" ? "None" : D, T.push(e(pt, { className: "border-stroke", tabIndex: 0, sx: { height: "28px", "& svg path.activeColor": { filter: Gr(4) }, paddingLeft: "16px", background: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` }, tooltipProps: { description: t ? "" : B.description }, icon: null, disabled: n, onMouseDown: (P) => P.preventDefault(), onMouseUp: () => {
284
+ S = t ? $(se, { children: [e(A, { sx: { marginRight: "6px" }, children: B.description }), $(A, { sx: { marginLeft: "6px", marginRight: "6px", display: "flex", alignItems: "center", flex: "1 1 100%" }, children: [e("div", { style: { flex: "1 1 100%" } }), P] })] }) : B.description === "None" ? "None" : P, T.push(e(pt, { className: "border-stroke", tabIndex: 0, sx: { height: "28px", "& svg path.activeColor": { filter: Gr(4) }, paddingLeft: "16px", background: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` }, tooltipProps: { description: t ? "" : B.description }, icon: null, disabled: n, onMouseDown: (R) => R.preventDefault(), onMouseUp: () => {
285
285
  C(), d(B.style);
286
- }, onKeyDown: (P) => {
287
- P.which === be.Enter && C();
286
+ }, onKeyDown: (R) => {
287
+ R.which === be.Enter && C();
288
288
  }, selected: B.style === g, parentFloat: v, children: S }, N));
289
289
  }
290
290
  return e(A, { sx: { display: "flex", flexDirection: "column", paddingTop: "4px", paddingBottom: "4px" }, children: T });
291
291
  }, [n, s, c, g, u]), y = W(() => {
292
292
  const f = Ce.BuiltInDefinitions.get(g);
293
293
  let w;
294
- return w = f.description === "None" ? e(A, { sx: { minWidth: `${tn}px` }, children: "None" }) : e(fa, { styleColor: c, length: tn, width: f.width, dashArray: f.pattern, darkMode: u, isDouble: f.description.toLowerCase().includes("double"), isAngled: f.description.toLowerCase().includes("slant") }), e(A, { className: "border-stroke", sx: { paddingLeft: "12px", marginLeft: "4px", marginRight: "4px", height: "24px", display: "flex", alignItems: "center", "& svg path.activeColor": { filter: Gr() } }, children: w });
294
+ return w = f.description === "None" ? e(A, { sx: { minWidth: `${en}px` }, children: "None" }) : e(fa, { styleColor: c, length: en, width: f.width, dashArray: f.pattern, darkMode: u, isDouble: f.description.toLowerCase().includes("double"), isAngled: f.description.toLowerCase().includes("slant") }), e(A, { className: "border-stroke", sx: { paddingLeft: "12px", marginLeft: "4px", marginRight: "4px", height: "24px", display: "flex", alignItems: "center", "& svg path.activeColor": { filter: Gr() } }, children: w });
295
295
  }, [g, c]), b = W(() => Ce.BuiltInDefinitions.get(g), [g]), x = { disabled: n, icon: y, tooltip: "Border Style: " + b.description, sx: { background: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, ...p }, createPopupPanel: m, ...h };
296
296
  return o === nt.Toolbar ? e(vt, { ...x }) : e(cr, { ...x });
297
- })), Np = Y(J((r, i) => {
297
+ })), Op = Y(J((r, i) => {
298
298
  const { autoColor: o = null, schemeLookup: t, autoStrokeStyle: n = Ce.StrokeStyle.Thin, disabled: l = !1, darkMode: c = !1, showStylingBefore: g = !0, onSelectBorder: a, onPreviewBorder: s, selectedBorder: u, createTemporaryBorder: p, ...h } = r, d = te(a, [a]), m = te(s, [s]), [y, b] = U(), [x, f] = U(), w = y ?? n, v = x ?? o, C = u || { bottom: { style: n, color: o?.toString() } }, k = te((S) => {
299
- const P = {}, L = S ? Object.keys(S) : [];
299
+ const R = {}, L = S ? Object.keys(S) : [];
300
300
  let F = !1;
301
- for (let ne = 0; ne < L.length; ne++) S[L[ne]]?.style && (P[L[ne]] = { style: S[L[ne]].style, color: S[L[ne]].color }, F || P[L[ne]].style === Ce.StrokeStyle.None || (F = !0));
301
+ for (let ne = 0; ne < L.length; ne++) S[L[ne]]?.style && (R[L[ne]] = { style: S[L[ne]].style, color: S[L[ne]].color }, F || R[L[ne]].style === Ce.StrokeStyle.None || (F = !0));
302
302
  L.length < 6 && (F = !0);
303
- const V = F ? P.left : null, M = F ? P.top : null, E = F ? P.right : null, K = F ? P.bottom : null, Q = F ? P.vertical : null, q = F ? P.horizontal : null;
303
+ const V = F ? R.left : null, M = F ? R.top : null, E = F ? R.right : null, K = F ? R.bottom : null, Q = F ? R.vertical : null, q = F ? R.horizontal : null;
304
304
  let _ = "";
305
305
  return M || V || (_ += "M 3,5 H 5 V 3 H 3 "), M || (_ += "M 7,5 H 9 V 3 H 7 "), M || Q || (_ += "M 11,5 h 2 V 3 h -2 "), M || (_ += "M 15,5 h 2 V 3 h -2 "), M || E || (_ += "M 19,5 h 2 V 3 h -2 "), V || (_ += "M 3,9 H 5 V 7 H 3 "), Q || (_ += "M 11,9 h 2 V 7 h -2 "), E || (_ += "M 19,9 h 2 V 7 h -2 "), q || V || (_ += "M 3,13 H 5 V 11 H 3 "), q || (_ += "M 7,13 H 9 V 11 H 7 "), q || Q || (_ += "M 11,13 h 2 v -2 h -2 "), q || E || (_ += "M 19,13 h 2 v -2 h -2 "), q || (_ += "M 15,13 h 2 v -2 h -2 "), V || (_ += "M 3,17 H 5 V 15 H 3 "), Q || (_ += "M 11,17 h 2 v -2 h -2 "), E || (_ += "M 19,17 h 2 v -2 h -2 "), K || V || (_ += "M 3,21 H 5 V 19 H 3 "), K || (_ += "M 7,21 H 9 V 19 H 7 "), K || Q || (_ += "M 11,21 h 2 v -2 h -2 "), K || (_ += "M 15,21 h 2 v -2 h -2 "), K || E || (_ += "M 19,21 h 2 v -2 h -2 "), $("div", { style: { width: "24px", height: "24px", position: "relative" }, children: [e(ir, { sx: { position: "absolute", top: "0px", left: "0px", "& path": { opacity: "0.8", transform: "translate(-0.5px, -0.5px)" } }, children: e("path", { d: _ }) }), e(A, { sx: { width: "24px", height: "24px", display: "flex", alignItems: "center", justifyContent: "center", position: "absolute", top: "-1px", left: "-1px", "& svg path": { filter: _s } }, children: e(hr, { getBorderAt: (ne, ie) => {
306
306
  if (!p || L.length === 0) return null;
307
307
  const X = ne.rowIndex, z = ne.colIndex, ee = {};
308
- return X === 0 ? (ee.top = P.top, ee.bottom = P.horizontal) : (ee.top = P.horizontal, ee.bottom = P.bottom), z === 0 ? (ee.left = P.left, ee.right = P.vertical) : (ee.left = P.vertical, ee.right = P.right), p?.(ee);
308
+ return X === 0 ? (ee.top = R.top, ee.bottom = R.horizontal) : (ee.top = R.horizontal, ee.bottom = R.bottom), z === 0 ? (ee.left = R.left, ee.right = R.vertical) : (ee.left = R.vertical, ee.right = R.right), p?.(ee);
309
309
  }, width: 18, height: 18, darkMode: c, style: { top: "0px", left: "0px", width: "18px", height: "18px", minWidth: "18px", minHeight: "18px", position: "relative" } }) })] });
310
- }, [v, w, c]), T = G((S, P, L) => {
310
+ }, [v, w, c]), T = G((S, R, L) => {
311
311
  let F = null;
312
312
  if (S && S.length > 0) {
313
313
  let V = null;
314
- (P || L) && (V = { style: L, color: P?.toString() ?? null }), F = {};
314
+ (R || L) && (V = { style: L, color: R?.toString() ?? null }), F = {};
315
315
  for (let M = 0; M < S.length; M++) F[S[M]] = V;
316
316
  }
317
317
  return F;
@@ -320,50 +320,50 @@ const yp = Y(J((r, i) => {
320
320
  }, []), N = G((S) => {
321
321
  m?.(S);
322
322
  }, []), B = G((S) => {
323
- const { closeFloatAll: P, floatReference: L } = S, F = (E, K, Q = "bottom", q = !1) => {
323
+ const { closeFloatAll: R, floatReference: L } = S, F = (E, K, Q = "bottom", q = !1) => {
324
324
  const _ = T(E, v ?? null, q ? Ce.StrokeStyle.None : w ?? null), ne = q ? T([], v ?? null, w ?? null) : _;
325
325
  return e(bt, { icon: k(ne), sx: { background: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` }, tooltipProps: { label: K, simple: !0, placement: Q }, onClick: () => {
326
- P(), N(_), I(_);
326
+ R(), N(_), I(_);
327
327
  } });
328
328
  }, V = $(se, { children: [$(A, { sx: { display: "flex", padding: "6px 16px", justifyContent: "center", rowGap: "2px", gap: "2px" }, children: [F([Ce.Edge.Left, Ce.Edge.Top, Ce.Edge.Right, Ce.Edge.Bottom, Ce.Edge.Horizontal, Ce.Edge.Vertical], "All Borders", "top"), F([Ce.Edge.Horizontal, Ce.Edge.Vertical], "Inner Borders", "top"), F([Ce.Edge.Horizontal], "Inside Horizontal Borders", "top"), F([Ce.Edge.Vertical], "Inside Vertical Borders", "top"), F([Ce.Edge.Left, Ce.Edge.Top, Ce.Edge.Right, Ce.Edge.Bottom], "Outside Borders", "top")] }), $(A, { sx: { display: "flex", padding: "6px 16px", justifyContent: "center", rowGap: "2px", gap: "2px" }, children: [F([Ce.Edge.Left], "Left Borders"), F([Ce.Edge.Top], "Top Borders"), F([Ce.Edge.Right], "Right Borders"), F([Ce.Edge.Bottom], "Bottom Borders"), F([Ce.Edge.Left, Ce.Edge.Top, Ce.Edge.Right, Ce.Edge.Bottom, Ce.Edge.Horizontal, Ce.Edge.Vertical, Ce.Edge.DiagonalUp, Ce.Edge.DiagonalDown], "No Borders", "bottom", !0)] })] }), M = e(se, { children: $(A, { sx: { display: "flex", padding: "6px 16px", flexDirection: "row", gap: "6px" }, children: [e(Pi, { variant: nt.Toolbar, icon: e(dr, {}), selectedColor: w === Ce.StrokeStyle.None ? new ft("transparent") : v, onPreviewColor: (E) => {
329
329
  f(E);
330
330
  }, onSelectColor: (E, K) => {
331
331
  f(E);
332
- }, darkMode: c, tooltip: "Border Color", panelProps: { disableAlpha: !0, autoColor: o, schemeLookup: t }, disabled: l || w === Ce.StrokeStyle.None, parentFloat: L, shouldCloseFloatAll: !1 }), e(Ip, { selectedStyle: w, onSelectStyle: b, styleColor: v, darkMode: c, variant: nt.Toolbar, parentFloat: L })] }) });
332
+ }, darkMode: c, tooltip: "Border Color", panelProps: { disableAlpha: !0, autoColor: o, schemeLookup: t }, disabled: l || w === Ce.StrokeStyle.None, parentFloat: L, shouldCloseFloatAll: !1 }), e(Fp, { selectedStyle: w, onSelectStyle: b, styleColor: v, darkMode: c, variant: nt.Toolbar, parentFloat: L })] }) });
333
333
  return $(A, { sx: { display: "flex", flexDirection: "column", paddingTop: "4px", paddingBottom: "4px" }, onClick: (E) => E.stopPropagation(), children: [g ? M : V, e(re, { orientation: "horizontal" }), g ? V : M] });
334
- }, [w, v, o, t, c]), D = W(() => k(C), [C, c]);
335
- return e(vt, { ref: i, createPopupPanel: B, popupProps: { popperProps: { resizeOnOverflow: !1 } }, createTooltip: ({ children: S }, P) => e(rt, { label: "Borders", description: "Set the borders.", disabled: P, children: S }), onQuickClick: () => {
334
+ }, [w, v, o, t, c]), P = W(() => k(C), [C, c]);
335
+ return e(vt, { ref: i, createPopupPanel: B, popupProps: { popperProps: { resizeOnOverflow: !1 } }, createTooltip: ({ children: S }, R) => e(rt, { label: "Borders", description: "Set the borders.", disabled: R, children: S }), onQuickClick: () => {
336
336
  d?.(C);
337
- }, quickButtonProps: { sx: {} }, disabled: l, icon: D, ...h });
338
- })), Fp = Y(J((r, i) => {
337
+ }, quickButtonProps: { sx: {} }, disabled: l, icon: P, ...h });
338
+ })), Ap = Y(J((r, i) => {
339
339
  const { commands: o, command: t, commandHook: n, variant: l = le.Toolbar, disabled: c = !1, autoColor: g, autoStrokeStyle: a, schemeLookup: s, createTemporaryBorder: u, selectedBorder: p, onSelectBorder: h, darkMode: d, icon: m, label: y, ...b } = r, x = He(o, ["formatBorder"]), f = t ?? x[0], w = f?.context() ?? null, v = w?.autoColor ?? g, C = w?.autoStyle ?? a, k = p ?? w?.quickBorder, T = d ?? w?.darkMode, I = u ?? w?.createTemporaryBorder, N = s ?? w?.schemeLookup, B = te((S) => {
340
340
  w?.onBorderSelect && w.onBorderSelect(S), h?.(S), f?.execute(S, n);
341
- }, [f, h, n]), D = G((S, P) => {
341
+ }, [f, h, n]), P = G((S, R) => {
342
342
  const { children: L, title: F, ...V } = S;
343
343
  let M = S.children;
344
- return (f?.disabled() || c) && (M = e("div", { children: M })), e(pr, { command: f, placement: l === le.Toolbar ? "bottom-start" : "right-start", disabled: P, ...V, children: M });
344
+ return (f?.disabled() || c) && (M = e("div", { children: M })), e(pr, { command: f, placement: l === le.Toolbar ? "bottom-start" : "right-start", disabled: R, ...V, children: M });
345
345
  }, [f, c]);
346
- return e(Np, { ref: i, autoColor: v, darkMode: T, autoStrokeStyle: C, createTemporaryBorder: I, schemeLookup: N, selectedBorder: k, onSelectBorder: B, createTooltip: D, disabled: c || !f || f.disabled(), ...b });
347
- })), Op = Y(J((r, i) => {
346
+ return e(Op, { ref: i, autoColor: v, darkMode: T, autoStrokeStyle: C, createTemporaryBorder: I, schemeLookup: N, selectedBorder: k, onSelectBorder: B, createTooltip: P, disabled: c || !f || f.disabled(), ...b });
347
+ })), Bp = Y(J((r, i) => {
348
348
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = G((a, s) => {
349
- const u = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, p = $(se, { children: [e(O, { ...u, command: s.getCommand("mergeToggle"), icon: R(e(qr, {})) }), e(O, { ...u, command: s.getCommand("mergeHorizontal"), icon: R(e(Us, {})) }), e(O, { ...u, command: s.getCommand("mergeVertical"), icon: R(e(Gs, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...u, command: s.getCommand("unmerge"), icon: R(e(mi, {})) })] });
349
+ const u = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, p = $(se, { children: [e(O, { ...u, command: s.getCommand("mergeToggle"), icon: D(e(qr, {})) }), e(O, { ...u, command: s.getCommand("mergeHorizontal"), icon: D(e(Us, {})) }), e(O, { ...u, command: s.getCommand("mergeVertical"), icon: D(e(Gs, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...u, command: s.getCommand("unmerge"), icon: D(e(mi, {})) })] });
350
350
  return xe({ ...a, children: p });
351
351
  }, [l, t, n]);
352
- return e(Re, { ref: i, commands: o, quickCommand: "mergeToggle", commandHook: t, scope: n, tooltip: "Combine or split cells.", createPopupPanel: g, icon: R(e(qr, {})), ...c });
353
- })), Ap = Y(J((r, i) => {
352
+ return e(Re, { ref: i, commands: o, quickCommand: "mergeToggle", commandHook: t, scope: n, tooltip: "Combine or split cells.", createPopupPanel: g, icon: D(e(qr, {})), ...c });
353
+ })), Lp = Y(J((r, i) => {
354
354
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = G((a, s) => {
355
- const u = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, p = $(se, { children: [e(O, { ...u, command: s.getCommand("freezeToggle"), icon: R(e(qs, {})) }), e(O, { ...u, command: s.getCommand("freezeToggleHorizontal"), icon: R(e(Xs, {})) }), e(O, { ...u, command: s.getCommand("freezeToggleVertical"), icon: R(e(Ks, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...u, command: s.getCommand("unfreeze"), icon: e(mi, {}) })] });
355
+ const u = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, p = $(se, { children: [e(O, { ...u, command: s.getCommand("freezeToggle"), icon: D(e(qs, {})) }), e(O, { ...u, command: s.getCommand("freezeToggleHorizontal"), icon: D(e(Xs, {})) }), e(O, { ...u, command: s.getCommand("freezeToggleVertical"), icon: D(e(Ks, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...u, command: s.getCommand("unfreeze"), icon: e(mi, {}) })] });
356
356
  return xe({ ...a, children: p });
357
357
  }, [l, t, n]);
358
358
  return e(Re, { ref: i, commands: o, commandHook: t, createPopupPanel: g, quickCommand: "freezeToggle", label: "Freeze Panes", tooltip: "Freeze a portion of the sheet to keep it visible while you scroll through the rest of the sheet.\\n\\nUseful for viewing data in other parts of your worksheet without losing your headers or labels.", icon: e(Ys, {}), ...c });
359
- })), Bp = Y(J((r, i) => {
359
+ })), Hp = Y(J((r, i) => {
360
360
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = G((a, s) => {
361
- const u = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, p = $(se, { children: [e(O, { ...u, command: s.getCommand("find"), icon: R(e(Xr, {})) }), e(O, { ...u, command: s.getCommand("findReplace"), icon: R(e(Zs, {})) }), e(O, { ...u, command: s.getCommand("goto"), icon: R(e(Js, {})) })] });
361
+ const u = { variant: le.Menuitem, commandHook: t, scope: n, disabled: l }, p = $(se, { children: [e(O, { ...u, command: s.getCommand("find"), icon: D(e(Xr, {})) }), e(O, { ...u, command: s.getCommand("findReplace"), icon: D(e(Zs, {})) }), e(O, { ...u, command: s.getCommand("goto"), icon: D(e(Js, {})) })] });
362
362
  return xe({ ...a, children: p });
363
363
  }, [l, t, n]);
364
- return e(Re, { ref: i, commands: o, commandHook: t, createPopupPanel: g, label: "Find & Select", tooltip: "Find and replace cells or go to a specific location.", quickCommand: "find", icon: R(e(Xr, {})), ...c });
365
- })), Lp = Y(J((r, i) => {
366
- const { command: o, commandHook: t, showQuickButtons: n = !!r.commands, commands: l, fontSizes: c = ip.DefaultFontSizes, disabled: g = !1, parentFloat: a, icon: s, label: u, sx: p, ...h } = r;
364
+ return e(Re, { ref: i, commands: o, commandHook: t, createPopupPanel: g, label: "Find & Select", tooltip: "Find and replace cells or go to a specific location.", quickCommand: "find", icon: D(e(Xr, {})), ...c });
365
+ })), zp = Y(J((r, i) => {
366
+ const { command: o, commandHook: t, showQuickButtons: n = !!r.commands, commands: l, fontSizes: c = sp.DefaultFontSizes, disabled: g = !1, parentFloat: a, icon: s, label: u, sx: p, ...h } = r;
367
367
  Ht(o);
368
368
  const d = () => o?.state()?.toString() || "11", [m, y] = U(d), b = te(() => {
369
369
  const I = parseFloat(m);
@@ -376,9 +376,9 @@ const yp = Y(J((r, i) => {
376
376
  if (!t) return null;
377
377
  const I = { ...t };
378
378
  return delete I.beforeExecute, I;
379
- }, [t]), f = He(l, ["formatFontSizeIncrease", "formatFontSizeDecrease"]), w = W(() => f ? $(A, { className: Ae("quick-buttons", {}), sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (I) => I.stopPropagation(), children: [e(O, { command: f[0], commandHook: x, icon: R(e(Qs, {})) }), e(O, { command: f[1], icon: R(e(ec, {})) })] }) : null, [f]), v = at(), C = W(() => `${Bt.getSharedMeasurer()("12.3", Math.round(v.typography.fontSize), v.typography.fontFamily).width}px`, [v]), k = G((I) => {
380
- const { onMouseDown: N, onMouseUp: B, ...D } = I;
381
- return e(dt, { component: "div", ...D, disableRipple: !0, children: e(lr, { inputMode: "numeric", disabled: g || !o || o.disabled(), inputProps: { name: "font-input", autoComplete: "off", tabIndex: 0, type: "number", maxLength: 4, max: 409, min: 2 }, sx: { "&::before": { borderBottom: "1px solid transparent" }, "&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before": { borderBottom: (S) => `1px solid ${S.palette.text.icon ?? S.palette.action.active}` }, "&:hover:not(.Mui-disabled):not(.Mui-error):before": { borderBottom: (S) => `1px solid ${S.palette.error.main}` }, "::after": { borderBottom: (S) => `1px solid ${S.palette.primary.main}` }, paddingTop: "0px", paddingBottom: "0px", paddingLeft: "0px", paddingRight: "0px", fontSize: (S) => `${Math.round(S.typography.fontSize)}px`, width: C, color: (S) => S.palette.text.secondary, input: { padding: "0 0", textAlign: "center", MozAppearance: "textfield", "&:hover:not(.Mui-disabled):not(.Mui-error)": { color: (S) => S.palette.text.primary }, "&:focus:not(.Mui-disabled):not(.Mui-error)": { color: (S) => S.palette.text.primary } }, "input::-webkit-inner-spin-button": { WebkitAppearance: "none", margin: "0" }, minHeight: "24px" }, value: m, onFocus: (S) => {
379
+ }, [t]), f = He(l, ["formatFontSizeIncrease", "formatFontSizeDecrease"]), w = W(() => f ? $(A, { className: Ae("quick-buttons", {}), sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (I) => I.stopPropagation(), children: [e(O, { command: f[0], commandHook: x, icon: D(e(Qs, {})) }), e(O, { command: f[1], icon: D(e(ec, {})) })] }) : null, [f]), v = at(), C = W(() => `${Bt.getSharedMeasurer()("12.3", Math.round(v.typography.fontSize), v.typography.fontFamily).width}px`, [v]), k = G((I) => {
380
+ const { onMouseDown: N, onMouseUp: B, ...P } = I;
381
+ return e(dt, { component: "div", ...P, disableRipple: !0, children: e(lr, { inputMode: "numeric", disabled: g || !o || o.disabled(), inputProps: { name: "font-input", autoComplete: "off", tabIndex: 0, type: "number", maxLength: 4, max: 409, min: 2 }, sx: { "&::before": { borderBottom: "1px solid transparent" }, "&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before": { borderBottom: (S) => `1px solid ${S.palette.text.icon ?? S.palette.action.active}` }, "&:hover:not(.Mui-disabled):not(.Mui-error):before": { borderBottom: (S) => `1px solid ${S.palette.error.main}` }, "::after": { borderBottom: (S) => `1px solid ${S.palette.primary.main}` }, paddingTop: "0px", paddingBottom: "0px", paddingLeft: "0px", paddingRight: "0px", fontSize: (S) => `${Math.round(S.typography.fontSize)}px`, width: C, color: (S) => S.palette.text.secondary, input: { padding: "0 0", textAlign: "center", MozAppearance: "textfield", "&:hover:not(.Mui-disabled):not(.Mui-error)": { color: (S) => S.palette.text.primary }, "&:focus:not(.Mui-disabled):not(.Mui-error)": { color: (S) => S.palette.text.primary } }, "input::-webkit-inner-spin-button": { WebkitAppearance: "none", margin: "0" }, minHeight: "24px" }, value: m, onFocus: (S) => {
382
382
  S.target?.select();
383
383
  }, onKeyDown: (S) => {
384
384
  if (S.which === be.Enter) d() !== m && (S.stopPropagation(), S.preventDefault(), b());
@@ -396,33 +396,33 @@ const yp = Y(J((r, i) => {
396
396
  y(S.target.value);
397
397
  } }) });
398
398
  }, [m, g, o]), T = G((I) => {
399
- const N = (P) => {
400
- o?.execute(P, t);
401
- }, B = o?.state(), D = [];
402
- for (let P = 0; P < c.length; P++) {
403
- const L = c[P] === B;
404
- D.push(e(pt, { selected: L, icon: L ? e(sn, {}) : void 0, disabled: g || !o || o.disabled(), onMouseDown: (F) => {
399
+ const N = (R) => {
400
+ o?.execute(R, t);
401
+ }, B = o?.state(), P = [];
402
+ for (let R = 0; R < c.length; R++) {
403
+ const L = c[R] === B;
404
+ P.push(e(pt, { selected: L, icon: L ? e(ln, {}) : void 0, disabled: g || !o || o.disabled(), onMouseDown: (F) => {
405
405
  F.button === 0 && F.preventDefault();
406
406
  }, onMouseUp: (F) => {
407
- F.button === 0 && N(c[P]);
407
+ F.button === 0 && N(c[R]);
408
408
  }, onKeyDown: (F) => {
409
- F.keyCode !== be.Enter && F.keyCode !== be.Space || N(c[P]);
410
- }, sx: { paddingTop: "4px", paddingBottom: "4px" }, children: e(A, { sx: { display: "flex", flex: "1 1 100%", justifyContent: "end" }, children: c[P] }) }, "fontSize-" + P));
409
+ F.keyCode !== be.Enter && F.keyCode !== be.Space || N(c[R]);
410
+ }, sx: { paddingTop: "4px", paddingBottom: "4px" }, children: e(A, { sx: { display: "flex", flex: "1 1 100%", justifyContent: "end" }, children: c[R] }) }, "fontSize-" + R));
411
411
  }
412
- const S = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...h, children: [w, e(re, { orientation: "horizontal" }), e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: D })] });
412
+ const S = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...h, children: [w, e(re, { orientation: "horizontal" }), e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: P })] });
413
413
  return xe({ ...I, children: S });
414
414
  }, [g, o?.state(), t]);
415
415
  return e(vt, { ref: i, sx: { ...p }, tabIndex: -1, outlined: !0, disabled: g, parentFloat: a, createPopupPanel: T, createTooltip: ({ children: I }, N) => e(rt, { label: o?.label(), description: o?.description(), disabled: N || o?.disabled(), children: I }), createQuickButton: k, ...h });
416
416
  })), ba = Y((r) => {
417
417
  const { selected: i, disabled: o, formattedValue: t, handleSetFormat: n, format: l, sx: c, ...g } = r;
418
- return e(pt, { sx: { maxWidth: "360px", display: "flex", "*": { lineHeight: "1.2" }, ...c }, disabled: o, selected: i, icon: i ? e(sn, {}) : void 0, onMouseDown: (a) => {
418
+ return e(pt, { sx: { maxWidth: "360px", display: "flex", "*": { lineHeight: "1.2" }, ...c }, disabled: o, selected: i, icon: i ? e(ln, {}) : void 0, onMouseDown: (a) => {
419
419
  a.button === 0 && a.preventDefault();
420
420
  }, onMouseUp: (a) => {
421
421
  a.button === 0 && n(l.numberFormat);
422
422
  }, onKeyDown: (a) => {
423
423
  a.keyCode !== be.Enter && a.keyCode !== be.Space || n(l.numberFormat);
424
424
  }, ...g, children: $(A, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: [$(Oe, { component: "div", children: [l.formatType, l.formatType === gt.Type.Custom ? "…" : ""] }), e(Oe, { variant: "caption", component: "div", sx: { color: (a) => Qe(a.palette.text.primary, 0.6), paddingTop: t && t.length > 0 ? "1px" : void 0, overflow: "hidden", textOverflow: "ellipsis" }, children: t && t.length > 0 ? t : " " })] }) });
425
- }), Hp = Y(J((r, i) => {
425
+ }), Wp = Y(J((r, i) => {
426
426
  const { commands: o, commandHook: t, scope: n, sx: l, disabled: c = !1, parentFloat: g, ...a } = r, s = He(o, ["formatNumberFormat"])[0], u = s?.state() ? gt.Styles.lookupStyle(s?.state()).formatType : gt.Type.General, p = W(() => {
427
427
  if (!t) return null;
428
428
  const y = { ...t };
@@ -432,19 +432,19 @@ const yp = Y(J((r, i) => {
432
432
  t?.beforeExecute?.(s, s?.state()), s.execute(B, t), t?.onExecute?.(s, s?.state());
433
433
  }, f = s?.context()(), w = gt.Styles.lookupPrimary(), v = [];
434
434
  for (let B = 0; B < w.length; B++) {
435
- let D = "";
435
+ let P = "";
436
436
  if (f && !f.isEmpty()) try {
437
- D = f.getNumberFormat(w[B].numberFormat).displayText;
438
- } catch (P) {
439
- console.warn(P);
437
+ P = f.getNumberFormat(w[B].numberFormat).displayText;
438
+ } catch (R) {
439
+ console.warn(R);
440
440
  }
441
- D === "" && w[B].formatType === gt.Type.General && (D = "No specific format");
441
+ P === "" && w[B].formatType === gt.Type.General && (P = "No specific format");
442
442
  const S = w[B].formatType === u;
443
- v.push(e(ba, { selected: S, disabled: c || !s || s.disabled(), formattedValue: D, handleSetFormat: x, format: w[B] }, w[B].formatType));
443
+ v.push(e(ba, { selected: S, disabled: c || !s || s.disabled(), formattedValue: P, handleSetFormat: x, format: w[B] }, w[B].formatType));
444
444
  }
445
445
  const C = { numberFormat: "", formatType: gt.Type.Custom }, k = u === gt.Type.Custom, T = e(ba, { selected: k, disabled: c || !s || s.disabled(), formattedValue: k ? f.getNumberFormat().displayText : "", handleSetFormat: () => {
446
446
  t?.beforeExecute?.(s, s?.state()), b.getCommand("formatNumberDialog")?.execute(s?.state()), t?.onExecute?.(s, s?.state());
447
- }, format: C, sx: { flex: "0", width: "100%" } }, gt.Type.Custom), I = $(A, { className: "quick-buttons", sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (B) => B.stopPropagation(), children: [e(O, { command: b.getCommand("formatNumberFormatAccountingStyle"), commandHook: p, scope: n, icon: e(tc, {}) }), e(O, { command: b.getCommand("formatNumberFormatPercentStyle"), commandHook: p, scope: n, icon: e(oc, {}) }), e(O, { command: b.getCommand("formatNumberFormatCommaStyle"), commandHook: p, scope: n, icon: e(nc, {}) }), e(O, { command: b.getCommand("formatNumberFormatIncreaseDecimal"), commandHook: p, scope: n, icon: R(e(rc, {})) }), e(O, { command: b.getCommand("formatNumberFormatDecreaseDecimal"), commandHook: p, scope: n, icon: R(e(ac, {})) })] }), N = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...a, children: [I, e(re, { orientation: "horizontal" }), e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: v }), e(re, { orientation: "horizontal" }), T] });
447
+ }, format: C, sx: { flex: "0", width: "100%" } }, gt.Type.Custom), I = $(A, { className: "quick-buttons", sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (B) => B.stopPropagation(), children: [e(O, { command: b.getCommand("formatNumberFormatAccountingStyle"), commandHook: p, scope: n, icon: e(tc, {}) }), e(O, { command: b.getCommand("formatNumberFormatPercentStyle"), commandHook: p, scope: n, icon: e(oc, {}) }), e(O, { command: b.getCommand("formatNumberFormatCommaStyle"), commandHook: p, scope: n, icon: e(nc, {}) }), e(O, { command: b.getCommand("formatNumberFormatIncreaseDecimal"), commandHook: p, scope: n, icon: D(e(rc, {})) }), e(O, { command: b.getCommand("formatNumberFormatDecreaseDecimal"), commandHook: p, scope: n, icon: D(e(ac, {})) })] }), N = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...a, children: [I, e(re, { orientation: "horizontal" }), e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: v }), e(re, { orientation: "horizontal" }), T] });
448
448
  return xe({ ...y, children: N });
449
449
  }, [s?.context(), s?.state(), t, n]), d = at(), m = W(() => {
450
450
  const y = gt.Type.MediumTime;
@@ -453,16 +453,16 @@ const yp = Y(J((r, i) => {
453
453
  return e(Re, { ref: i, commands: o, sx: l, outlined: !0, disabled: c, parentFloat: g, createPopupPanel: h, createTooltip: ({ children: y }, b) => e(rt, { label: s?.label(), description: s?.description(), disabled: b, children: y }), icon: e(A, { sx: { display: "flex", paddingLeft: "4px", paddingRight: "4px", fontSize: (y) => `${Math.round(y.typography.fontSize)}px`, color: (y) => y.palette.text.secondary, fontFamily: (y) => y.typography.fontFamily, width: m }, children: e(A, { sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "pre" }, children: u }) }), ...a });
454
454
  })), Ri = Y(J((r, i) => {
455
455
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = G((a, s) => {
456
- const u = { variant: le.Menuitem, commandHook: t, scope: "clear", disabled: l }, p = $(se, { children: [e(O, { ...u, command: s.getCommand("clearAll"), icon: e(Kr, {}) }), e(O, { ...u, command: s.getCommand("clearFormats"), icon: R(e(gi, {})) }), e(O, { ...u, command: s.getCommand("clearContents"), icon: R(e(ic, {})) }), e(O, { ...u, command: s.getCommand("clearComments") }), e(O, { ...u, command: s.getCommand("clearHyperlinks") })] });
456
+ const u = { variant: le.Menuitem, commandHook: t, scope: "clear", disabled: l }, p = $(se, { children: [e(O, { ...u, command: s.getCommand("clearAll"), icon: e(Kr, {}) }), e(O, { ...u, command: s.getCommand("clearFormats"), icon: D(e(gi, {})) }), e(O, { ...u, command: s.getCommand("clearContents"), icon: D(e(ic, {})) }), e(O, { ...u, command: s.getCommand("clearComments") }), e(O, { ...u, command: s.getCommand("clearHyperlinks") })] });
457
457
  return xe({ ...a, children: p });
458
458
  }, [l, t, n]);
459
459
  return e(Re, { ref: i, commands: o, disabled: l, commandHook: t, scope: n, label: "Clear", tooltip: "Clear everything in the cell, or remove just the formatting or contents.", createPopupPanel: g, icon: e(Kr, {}), ...c });
460
- })), zp = Y(J((r, i) => {
460
+ })), $p = Y(J((r, i) => {
461
461
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = G((a, s) => {
462
- const u = { variant: le.Menuitem, commandHook: t, scope: "fill", disabled: l }, p = $(se, { children: [e(O, { ...u, command: s.getCommand("fillDown"), icon: R(e(so, {})) }), e(O, { ...u, command: s.getCommand("fillRight"), icon: R(e(so, { sx: { transform: "rotate(270deg)" } })) }), e(O, { ...u, command: s.getCommand("fillUp"), icon: R(e(so, { sx: { transform: "rotate(180deg)" } })) }), e(O, { ...u, command: s.getCommand("fillLeft"), icon: R(e(so, { sx: { transform: "rotate(90deg)" } })) })] });
462
+ const u = { variant: le.Menuitem, commandHook: t, scope: "fill", disabled: l }, p = $(se, { children: [e(O, { ...u, command: s.getCommand("fillDown"), icon: D(e(lo, {})) }), e(O, { ...u, command: s.getCommand("fillRight"), icon: D(e(lo, { sx: { transform: "rotate(270deg)" } })) }), e(O, { ...u, command: s.getCommand("fillUp"), icon: D(e(lo, { sx: { transform: "rotate(180deg)" } })) }), e(O, { ...u, command: s.getCommand("fillLeft"), icon: D(e(lo, { sx: { transform: "rotate(90deg)" } })) })] });
463
463
  return xe({ ...a, children: p });
464
464
  }, [l, t, n]);
465
- return e(Re, { ref: i, commands: o, disabled: l, commandHook: t, label: "Fill", tooltip: "Fill the selected cells with the value from one of the corners.", createPopupPanel: g, icon: R(e(so, {})), ...c });
465
+ return e(Re, { ref: i, commands: o, disabled: l, commandHook: t, label: "Fill", tooltip: "Fill the selected cells with the value from one of the corners.", createPopupPanel: g, icon: D(e(lo, {})), ...c });
466
466
  })), Mi = Y(J((r, i) => {
467
467
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, disableSheet: c = !1, preferSingleMenu: g = !0, showQuickButton: a = !0, variant: s = le.Toolbar, ...u } = r, p = ["insertCellsShiftDown", "insertCellsShiftRight", "insertRows", "insertColumns"], h = He(o, p), { singleCommand: d, allDisabled: m } = W(() => {
468
468
  let x = null, f = 0;
@@ -470,15 +470,15 @@ const yp = Y(J((r, i) => {
470
470
  return { singleCommand: x, allDisabled: f === 0 };
471
471
  }, [h]), y = W(() => {
472
472
  const x = /* @__PURE__ */ new Map();
473
- return x.set("insertCellsShiftDown", R(e(Yr, {}))), x.set("insertCellsShiftRight", R(e(Yr, { sx: { transform: "rotate(270deg)" } }))), x.set("insertRows", R(e(lc, {}))), x.set("insertColumns", R(e(Zr, {}))), x;
473
+ return x.set("insertCellsShiftDown", D(e(Yr, {}))), x.set("insertCellsShiftRight", D(e(Yr, { sx: { transform: "rotate(270deg)" } }))), x.set("insertRows", D(e(lc, {}))), x.set("insertColumns", D(e(Zr, {}))), x;
474
474
  }, []), b = G((x, f) => {
475
475
  let w = null;
476
476
  const v = { variant: le.Menuitem, commandHook: t, scope: "insertCells", disabled: l };
477
- c || (w = $(se, { children: [e(re, { orientation: "horizontal" }), e(O, { ...v, command: f.getCommand("addSheet"), icon: R(e(rn, {})) })] }));
477
+ c || (w = $(se, { children: [e(re, { orientation: "horizontal" }), e(O, { ...v, command: f.getCommand("addSheet"), icon: D(e(nn, {})) })] }));
478
478
  const C = $(se, { children: [e(O, { ...v, command: h[0], icon: y.get(p[0]) }), e(O, { ...v, command: h[1], icon: y.get(p[1]) }), e(re, { orientation: "horizontal" }), e(O, { ...v, command: h[2], icon: y.get(p[2]) }), e(O, { ...v, command: h[3], icon: y.get(p[3]) }), w] });
479
479
  return xe({ ...x, children: C });
480
480
  }, [l, h, t, n, y]);
481
- return d ? e(O, { ref: i, variant: s, commandHook: t, disabled: l, command: d, icon: y.get(d.key()), ...u }) : e(Re, { ref: i, variant: s, quickCommand: "insertCells", commands: o, commandHook: t, scope: n, disabled: l || m, tooltip: $(se, { children: [e("span", { children: "Insert new cells, rows or columns to your workbook." }), e("br", {}), e("span", { children: "To insert multiple rows or columns at a time, select multiple rows or columns in the sheet and click Insert." })] }), createPopupPanel: b, icon: R(e(Zr, {})), ...u });
481
+ return d ? e(O, { ref: i, variant: s, commandHook: t, disabled: l, command: d, icon: y.get(d.key()), ...u }) : e(Re, { ref: i, variant: s, quickCommand: "insertCells", commands: o, commandHook: t, scope: n, disabled: l || m, tooltip: $(se, { children: [e("span", { children: "Insert new cells, rows or columns to your workbook." }), e("br", {}), e("span", { children: "To insert multiple rows or columns at a time, select multiple rows or columns in the sheet and click Insert." })] }), createPopupPanel: b, icon: D(e(Zr, {})), ...u });
482
482
  })), Ii = Y(J((r, i) => {
483
483
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, disableSheet: c = !1, preferSingleMenu: g = !0, showQuickButton: a = !0, variant: s = le.Toolbar, ...u } = r, p = He(o, ["deleteCellsShiftUp", "deleteCellsShiftLeft", "deleteRows", "deleteColumns"]), { singleCommand: h, allDisabled: d } = W(() => {
484
484
  let b = null, x = 0;
@@ -486,50 +486,50 @@ const yp = Y(J((r, i) => {
486
486
  return { singleCommand: b, allDisabled: x === 0 };
487
487
  }, [p]), m = W(() => {
488
488
  const b = /* @__PURE__ */ new Map();
489
- return b.set("deleteCellsShiftUp", R(e(Jr, { sx: { transform: "rotate(0deg)" } }))), b.set("deleteCellsShiftLeft", R(e(Jr, { sx: { transform: "rotate(270deg)" } }))), b.set("deleteRows", R(e(sc, {}))), b.set("deleteColumns", R(e(Qr, {}))), b;
489
+ return b.set("deleteCellsShiftUp", D(e(Jr, { sx: { transform: "rotate(0deg)" } }))), b.set("deleteCellsShiftLeft", D(e(Jr, { sx: { transform: "rotate(270deg)" } }))), b.set("deleteRows", D(e(sc, {}))), b.set("deleteColumns", D(e(Qr, {}))), b;
490
490
  }, []), y = G((b, x) => {
491
491
  const f = { variant: le.Menuitem, commandHook: t, scope: "deleteCells", disabled: l };
492
492
  let w = null;
493
- c || (w = $(se, { children: [e(re, { orientation: "horizontal" }), e(O, { ...f, command: x.getCommand("deleteSheet"), icon: R(e(rn, {})) })] }));
493
+ c || (w = $(se, { children: [e(re, { orientation: "horizontal" }), e(O, { ...f, command: x.getCommand("deleteSheet"), icon: D(e(nn, {})) })] }));
494
494
  const v = $(se, { children: [e(O, { ...f, command: x.getCommand("deleteCellsShiftUp"), icon: m.get("deleteCellsShiftUp") }), e(O, { ...f, command: x.getCommand("deleteCellsShiftLeft"), icon: m.get("deleteCellsShiftLeft") }), e(re, { orientation: "horizontal" }), e(O, { ...f, command: x.getCommand("deleteRows"), icon: m.get("deleteRows") }), e(O, { ...f, command: x.getCommand("deleteColumns"), icon: m.get("deleteColumns") }), w] });
495
495
  return xe({ ...b, children: v });
496
496
  }, [l, t, n, m]);
497
- return h ? e(O, { ref: i, variant: s, commandHook: t, disabled: l, command: h, icon: m.get(h.key()), ...u }) : e(Re, { ref: i, variant: s, quickCommand: "deleteCells", commands: o, commandHook: t, scope: n, disabled: l || d, tooltip: $(se, { children: [e("span", { children: "Delete cells, rows, columns or sheets from your workbook." }), e("br", {}), e("span", { children: "To delete multiple rows or columns at a time, select multiple rows or columns in the sheet and click Delete." })] }), createPopupPanel: y, icon: R(e(Qr, {})), ...u });
498
- })), Mo = Y(J((r, i) => {
497
+ return h ? e(O, { ref: i, variant: s, commandHook: t, disabled: l, command: h, icon: m.get(h.key()), ...u }) : e(Re, { ref: i, variant: s, quickCommand: "deleteCells", commands: o, commandHook: t, scope: n, disabled: l || d, tooltip: $(se, { children: [e("span", { children: "Delete cells, rows, columns or sheets from your workbook." }), e("br", {}), e("span", { children: "To delete multiple rows or columns at a time, select multiple rows or columns in the sheet and click Delete." })] }), createPopupPanel: y, icon: D(e(Qr, {})), ...u });
498
+ })), Ro = Y(J((r, i) => {
499
499
  const { command: o, commandHook: t, onSelectColor: n, disabled: l = !1, variant: c = le.Toolbar, quickColor: g, panelProps: a, isSplit: s = !1, darkMode: u, icon: p, ...h } = r, { autoColor: d, schemeLookup: m, recentColors: y, ...b } = a;
500
500
  if (h.selectedColor) throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");
501
501
  Ht(o);
502
502
  const x = o?.context();
503
503
  let f = g ?? x?.quickColor;
504
504
  s && !f && (f = new ft("transparent"));
505
- const w = d ?? x?.autoColor, v = m ?? x?.schemeLookup, C = y ?? x?.recentColors, k = u ?? x?.darkMode, T = W(() => ({ autoColor: w, schemeLookup: v, recentColors: C, darkMode: k, ...b }), [w, v, C, k]), I = te((B, D) => {
506
- B && D && x?.addRecentColor && x.addRecentColor(B), x?.onColorSelect && x.onColorSelect(B), n?.(B, D), o?.execute(B, t);
507
- }, [o, n, t, x]), N = G((B, D) => {
508
- const { children: S, title: P, ...L } = B;
505
+ const w = d ?? x?.autoColor, v = m ?? x?.schemeLookup, C = y ?? x?.recentColors, k = u ?? x?.darkMode, T = W(() => ({ autoColor: w, schemeLookup: v, recentColors: C, darkMode: k, ...b }), [w, v, C, k]), I = te((B, P) => {
506
+ B && P && x?.addRecentColor && x.addRecentColor(B), x?.onColorSelect && x.onColorSelect(B), n?.(B, P), o?.execute(B, t);
507
+ }, [o, n, t, x]), N = G((B, P) => {
508
+ const { children: S, title: R, ...L } = B;
509
509
  let F = B.children;
510
- return (o?.disabled() || l) && (F = e("div", { children: F })), e(pr, { command: o, placement: c === le.Toolbar ? "bottom-start" : "right-start", disabled: D, ...L, children: F });
510
+ return (o?.disabled() || l) && (F = e("div", { children: F })), e(pr, { command: o, placement: c === le.Toolbar ? "bottom-start" : "right-start", disabled: P, ...L, children: F });
511
511
  }, [o, l]);
512
512
  return e(Pi, { ref: i, panelProps: T, icon: p, quickColor: f, selectedColor: o?.state(), onSelectColor: I, variant: c === le.Menuitem ? nt.Menuitem : nt.Toolbar, createTooltip: N, label: o?.label(), disabled: l || !o || o.disabled(), compareRGB: !0, darkMode: k, ...h });
513
513
  }));
514
- Mo.displayName = "ColorCommandButton";
515
- const Wp = Y(J((r, i) => {
514
+ Ro.displayName = "ColorCommandButton";
515
+ const jp = Y(J((r, i) => {
516
516
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, parentFloat: c, ...g } = r, a = He(o, ["gridlinesToggle", "sheetViewToggleGridlinesColumns", "sheetViewToggleGridlinesRows"]), s = G((u, p) => {
517
- const h = { variant: le.Menuitem, parentFloat: u.floatReference, commandHook: t, scope: n, disabled: l }, d = $(se, { children: [e(O, { ...h, command: p.getCommand("gridlinesToggle") }), e(Mo, { ...h, command: p.getCommand("sheetViewFormatGridlinesColor"), icon: e(dr, {}), panelProps: { disableAlpha: !0 } }), e(re, { orientation: "horizontal" }), e(O, { ...h, command: p.getCommand("sheetViewToggleGridlinesColumns") }), e(O, { ...h, command: p.getCommand("sheetViewToggleGridlinesRows") })] });
517
+ const h = { variant: le.Menuitem, parentFloat: u.floatReference, commandHook: t, scope: n, disabled: l }, d = $(se, { children: [e(O, { ...h, command: p.getCommand("gridlinesToggle") }), e(Ro, { ...h, command: p.getCommand("sheetViewFormatGridlinesColor"), icon: e(dr, {}), panelProps: { disableAlpha: !0 } }), e(re, { orientation: "horizontal" }), e(O, { ...h, command: p.getCommand("sheetViewToggleGridlinesColumns") }), e(O, { ...h, command: p.getCommand("sheetViewToggleGridlinesRows") })] });
518
518
  return xe({ ...u, children: d });
519
519
  }, [l, t]);
520
- return e(Re, { ref: i, parentFloat: c, quickCommand: a[0]?.key(), commands: o, commandHook: t, createPopupPanel: s, label: "Gridlines", tooltip: "Configure how the lines between rows and columns in the sheet are displayed.", icon: e(eo, { command: a[0], scope: "view" }), ...g });
520
+ return e(Re, { ref: i, parentFloat: c, quickCommand: a[0]?.key(), commands: o, commandHook: t, createPopupPanel: s, label: "Gridlines", tooltip: "Configure how the lines between rows and columns in the sheet are displayed.", icon: e(sn, { command: a[0], scope: "view" }), ...g });
521
521
  })), Ni = Y(J((r, i) => {
522
522
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = G((a, s) => {
523
- const u = { variant: le.Menuitem, commandHook: t, scope: "sort", disabled: l }, p = s.getCommand("sortCustom"), h = $(se, { children: [e(O, { ...u, command: s.getCommand("sortAscending"), icon: R(e(Vn, {})) }), e(O, { ...u, command: s.getCommand("sortDescending"), icon: R(e(hi, {})) }), p ? e(O, { ...u, command: p, icon: R(e(cc, {})) }) : null, e(re, { orientation: "horizontal" }), e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterToggle"), icon: R(e(_n, {})) }), e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterClear"), icon: R(e(ur, {})) }), e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterReapply"), icon: R(e(fi, {})) })] });
523
+ const u = { variant: le.Menuitem, commandHook: t, scope: "sort", disabled: l }, p = s.getCommand("sortCustom"), h = $(se, { children: [e(O, { ...u, command: s.getCommand("sortAscending"), icon: D(e(Vn, {})) }), e(O, { ...u, command: s.getCommand("sortDescending"), icon: D(e(hi, {})) }), p ? e(O, { ...u, command: p, icon: D(e(cc, {})) }) : null, e(re, { orientation: "horizontal" }), e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterToggle"), icon: D(e(_n, {})) }), e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterClear"), icon: D(e(ur, {})) }), e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterReapply"), icon: D(e(fi, {})) })] });
524
524
  return xe({ ...a, children: h });
525
525
  }, [l, t, n]);
526
- return e(Re, { ref: i, commands: o, commandHook: t, scope: n, disabled: l, label: "Sort", tooltip: $(se, { children: [e("span", { children: "Organize your data so it's easier to analyze." }), e("br", {}), e("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), createPopupPanel: g, icon: R(e(Vn, {})), ...c });
527
- })), Wm = Y(J((r, i) => {
526
+ return e(Re, { ref: i, commands: o, commandHook: t, scope: n, disabled: l, label: "Sort", tooltip: $(se, { children: [e("span", { children: "Organize your data so it's easier to analyze." }), e("br", {}), e("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), createPopupPanel: g, icon: D(e(Vn, {})), ...c });
527
+ })), jm = Y(J((r, i) => {
528
528
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = G((a, s) => {
529
- const u = { variant: le.Menuitem, commandHook: t, scope: "sort", disabled: l }, p = $(se, { children: [e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterToggle"), icon: R(e(_n, {})) }), e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterClear"), icon: R(e(ur, {})) }), e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterReapply"), icon: R(e(fi, {})) })] });
529
+ const u = { variant: le.Menuitem, commandHook: t, scope: "sort", disabled: l }, p = $(se, { children: [e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterToggle"), icon: D(e(_n, {})) }), e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterClear"), icon: D(e(ur, {})) }), e(O, { ...u, scope: "filter", command: s.getCommand("autoFilterReapply"), icon: D(e(fi, {})) })] });
530
530
  return xe({ ...a, children: p });
531
531
  }, [l, t, n]);
532
- return e(Re, { ref: i, commands: o, commandHook: t, scope: n, disabled: l, label: "Filter", tooltip: $(se, { children: [e("span", { children: "Organize your data so it's easier to analyze." }), e("br", {}), e("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), createPopupPanel: g, icon: R(e(_n, {})), ...c });
532
+ return e(Re, { ref: i, commands: o, commandHook: t, scope: n, disabled: l, label: "Filter", tooltip: $(se, { children: [e("span", { children: "Organize your data so it's easier to analyze." }), e("br", {}), e("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), createPopupPanel: g, icon: D(e(_n, {})), ...c });
533
533
  })), Fi = Y(J((r, i) => {
534
534
  const { quickCommand: o, icon: t, isRedo: n = !1, nestRedo: l = !0, undoManager: c, scope: g, sx: a, disabled: s, commands: u, ...p } = r, h = [o];
535
535
  !n && l && h.push("redo");
@@ -551,10 +551,10 @@ const Wp = Y(J((r, i) => {
551
551
  F.isDefaultPrevented() || F.keyCode !== be.Enter && F.keyCode !== be.Space || N(f);
552
552
  }, children: e(Oe, { component: "div", variant: "caption", sx: { fontSize: "0.875rem", letterSpacing: "0.01071em" }, children: T }) });
553
553
  if (I) return B;
554
- const D = n ? b?.getRedoDescriptions() : b?.getUndoDescriptions(), S = [];
555
- for (let F = 0; F < D.length; F++) {
556
- const V = D[F];
557
- S.push(e(pt, { sx: { maxWidth: "360px", display: "flex" }, icon: e(rn, {}), disabled: x, selected: F < f, onMouseEnter: () => {
554
+ const P = n ? b?.getRedoDescriptions() : b?.getUndoDescriptions(), S = [];
555
+ for (let F = 0; F < P.length; F++) {
556
+ const V = P[F];
557
+ S.push(e(pt, { sx: { maxWidth: "360px", display: "flex" }, icon: e(nn, {}), disabled: x, selected: F < f, onMouseEnter: () => {
558
558
  w(F + 1);
559
559
  }, onMouseDown: (M) => {
560
560
  M.button === 0 && M.preventDefault();
@@ -562,24 +562,24 @@ const Wp = Y(J((r, i) => {
562
562
  M.button === 0 && N(F + 1);
563
563
  }, onKeyDown: (M) => {
564
564
  M.isDefaultPrevented() || M.keyCode !== be.Enter && M.keyCode !== be.Space || N(F + 1);
565
- }, children: $(A, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "row", alignItems: "center", overflow: "hidden" }, children: [e(Oe, { component: "div", children: V }), e(rn, {})] }) }, `action:${F}`));
565
+ }, children: $(A, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "row", alignItems: "center", overflow: "hidden" }, children: [e(Oe, { component: "div", children: V }), e(nn, {})] }) }, `action:${F}`));
566
566
  }
567
- let P = null;
567
+ let R = null;
568
568
  if (!n && l) {
569
569
  const F = { scope: "undo", commands: k, variant: le.Menuitem, parentFloat: C.floatReference };
570
- P = [], P.push(e(Fi, { ...F, quickCommand: "redo", isRedo: !0 }, "nested:redo")), b.hasRedo() && b.hasUndo() && P.push(e(re, { orientation: "horizontal" }, "action:redo-div"));
570
+ R = [], R.push(e(Fi, { ...F, quickCommand: "redo", isRedo: !0 }, "nested:redo")), b.hasRedo() && b.hasUndo() && R.push(e(re, { orientation: "horizontal" }, "action:redo-div"));
571
571
  }
572
572
  const L = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, onClick: () => {
573
573
  C.closeFloatAll();
574
574
  }, onMouseLeave: () => {
575
575
  w(0);
576
- }, children: [P, e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: S }), e(re, { orientation: "horizontal" }), B] });
576
+ }, children: [R, e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: S }), e(re, { orientation: "horizontal" }), B] });
577
577
  return xe({ ...C, children: L });
578
578
  }, [m?.context(), m?.state(), g, b, f, x]);
579
- return e(Re, { ref: i, commands: u, quickCommand: o, scope: g, disabled: x, label: m?.label() ?? (n ? "Redo" : "Undo"), tooltip: e(se, { children: e("span", { children: `${m?.label() ?? "No"} last actions.` }) }), createPopupPanel: v, icon: t ?? R(e(n ? dc : pc, {})), selected: !1, ...p });
579
+ return e(Re, { ref: i, commands: u, quickCommand: o, scope: g, disabled: x, label: m?.label() ?? (n ? "Redo" : "Undo"), tooltip: e(se, { children: e("span", { children: `${m?.label() ?? "No"} last actions.` }) }), createPopupPanel: v, icon: t ?? D(e(n ? dc : pc, {})), selected: !1, ...p });
580
580
  })), Qt = ms.getFontList(), Oi = /* @__PURE__ */ new Map();
581
581
  for (let r = 0; r < Qt.length; r++) Oi.set(Qt[r].fontRef.getFamily(), Qt[r]);
582
- const $p = Y(J((r, i) => {
582
+ const Vp = Y(J((r, i) => {
583
583
  const { command: o, commandHook: t, sx: n, disabled: l = !1, parentFloat: c, icon: g, label: a, ...s } = r;
584
584
  Ht(o);
585
585
  const u = o?.state(), p = at(), h = W(() => `${Bt.getSharedMeasurer()("Times New Roman", Math.round(p.typography.fontSize), p.typography.fontFamily).width}px`, [p]), d = G((m) => {
@@ -591,7 +591,7 @@ const $p = Y(J((r, i) => {
591
591
  const x = [];
592
592
  for (let w = 0; w < b.length; w++) {
593
593
  const v = b[w].key === u;
594
- x.push(e(pt, { sx: { display: "flex", paddingTop: "4px", paddingBottom: "4px" }, selected: v, disabled: l || !o || o.disabled(), icon: v ? e(sn, {}) : void 0, onMouseUp: (C) => {
594
+ x.push(e(pt, { sx: { display: "flex", paddingTop: "4px", paddingBottom: "4px" }, selected: v, disabled: l || !o || o.disabled(), icon: v ? e(ln, {}) : void 0, onMouseUp: (C) => {
595
595
  C.button === 0 && y(b[w].key);
596
596
  }, onMouseDown: (C) => {
597
597
  C.button === 0 && C.preventDefault();
@@ -603,61 +603,61 @@ const $p = Y(J((r, i) => {
603
603
  return xe({ ...m, children: f });
604
604
  }, [l, o?.state()]);
605
605
  return e(vt, { ref: i, sx: { ...n }, outlined: !0, disabled: l, parentFloat: c, createPopupPanel: d, createTooltip: ({ children: m }, y) => e(rt, { label: o?.label(), description: o?.description(), disabled: y, children: m }), icon: e(A, { sx: { display: "flex", paddingLeft: "4px", paddingRight: "4px", fontSize: (m) => `${Math.round(m.typography.fontSize)}px`, fontFamily: (m) => m.typography.fontFamily, color: (m) => m.palette.text.secondary, width: h }, children: e(A, { sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "pre" }, children: u }) }), ...s });
606
- })), jp = Y(J((r, i) => {
606
+ })), _p = Y(J((r, i) => {
607
607
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = He(o, ["formatStrikeThroughToggle", "formatSuperscriptToggle", "formatSubscriptToggle"]), a = W(() => {
608
608
  for (let p = 0; p < g.length; p++) if (g[p]?.state()) return g[p].key();
609
609
  return g[0]?.key();
610
610
  }, [g]), s = W(() => {
611
611
  const p = /* @__PURE__ */ new Map();
612
- return p.set("formatStrikeThroughToggle", R(e(ea, {}))), p.set("formatSuperscriptToggle", R(e(uc, {}))), p.set("formatSubscriptToggle", R(e(mc, {}))), p;
612
+ return p.set("formatStrikeThroughToggle", D(e(ea, {}))), p.set("formatSuperscriptToggle", D(e(uc, {}))), p.set("formatSubscriptToggle", D(e(mc, {}))), p;
613
613
  }, []), u = G((p, h) => {
614
614
  const d = { variant: le.Menuitem, commandHook: t, scope: "textEffects", disabled: l }, m = $(se, { children: [e(O, { ...d, command: h.getCommand("formatStrikeThroughToggle"), icon: s.get("formatStrikeThroughToggle") }), e(O, { ...d, command: h.getCommand("formatSuperscriptToggle"), icon: s.get("formatSuperscriptToggle") }), e(O, { ...d, command: h.getCommand("formatSubscriptToggle"), icon: s.get("formatSubscriptToggle") })] });
615
615
  return xe({ ...p, children: m });
616
616
  }, [l, t, n]);
617
- return e(Re, { ref: i, quickCommand: a, commands: o, commandHook: t, createPopupPanel: u, label: "Text Effects", tooltip: "Style your text to differentiate it.", icon: s.get(a) ?? R(e(ea, {})), ...c });
618
- })), Vp = Y(J((r, i) => {
617
+ return e(Re, { ref: i, quickCommand: a, commands: o, commandHook: t, createPopupPanel: u, label: "Text Effects", tooltip: "Style your text to differentiate it.", icon: s.get(a) ?? D(e(ea, {})), ...c });
618
+ })), Up = Y(J((r, i) => {
619
619
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = He(o, ["formatUnderlinedToggle", "formatUnderlinedDoubleToggle", "formatUnderlinedAccountingToggle", "formatUnderlinedAccountingDoubleToggle"]), a = W(() => {
620
620
  for (let p = 0; p < g.length; p++) if (g[p]?.state()) return g[p].key();
621
621
  return g[0]?.key();
622
622
  }, [g]), s = W(() => {
623
623
  const p = /* @__PURE__ */ new Map();
624
- return p.set("formatUnderlinedToggle", R(e(Tn, {}))), p.set("formatUnderlinedDoubleToggle", R(e(ta, {}))), p.set("formatUnderlinedAccountingToggle", R(e(oa, {}))), p.set("formatUnderlinedAccountingDoubleToggle", R(e(na, {}))), p;
624
+ return p.set("formatUnderlinedToggle", D(e(Tn, {}))), p.set("formatUnderlinedDoubleToggle", D(e(ta, {}))), p.set("formatUnderlinedAccountingToggle", D(e(oa, {}))), p.set("formatUnderlinedAccountingDoubleToggle", D(e(na, {}))), p;
625
625
  }, []), u = G((p, h) => {
626
- const d = { variant: le.Menuitem, commandHook: t, scope: "underline", disabled: l }, m = $(se, { children: [e(O, { ...d, command: h.getCommand("formatUnderlinedToggle"), icon: R(e(Tn, {})) }), e(O, { ...d, command: h.getCommand("formatUnderlinedDoubleToggle"), icon: R(e(ta, {})) }), e(O, { ...d, command: h.getCommand("formatUnderlinedAccountingToggle"), commandHook: t, icon: R(e(oa, {})) }), e(O, { ...d, command: h.getCommand("formatUnderlinedAccountingDoubleToggle"), icon: R(e(na, {})) })] });
626
+ const d = { variant: le.Menuitem, commandHook: t, scope: "underline", disabled: l }, m = $(se, { children: [e(O, { ...d, command: h.getCommand("formatUnderlinedToggle"), icon: D(e(Tn, {})) }), e(O, { ...d, command: h.getCommand("formatUnderlinedDoubleToggle"), icon: D(e(ta, {})) }), e(O, { ...d, command: h.getCommand("formatUnderlinedAccountingToggle"), commandHook: t, icon: D(e(oa, {})) }), e(O, { ...d, command: h.getCommand("formatUnderlinedAccountingDoubleToggle"), icon: D(e(na, {})) })] });
627
627
  return xe({ ...p, children: m });
628
628
  }, [l, t, n]);
629
- return e(Re, { ref: i, quickCommand: a, commands: o, commandHook: t, label: "Underline", tooltip: "All underline stylings.", createPopupPanel: u, icon: s.get(a) ?? R(e(Tn, {})), ...c });
629
+ return e(Re, { ref: i, quickCommand: a, commands: o, commandHook: t, label: "Underline", tooltip: "All underline stylings.", createPopupPanel: u, icon: s.get(a) ?? D(e(Tn, {})), ...c });
630
630
  })), Ai = Y(J((r, i) => {
631
631
  const { command: o, commands: t, commandHook: n, scope: l, includePasteAllInPopup: c = !0, disabled: g = !1, ...a } = r, s = te((u, p) => {
632
632
  const h = { variant: le.Menuitem, commandHook: n, scope: "paste", disabled: g }, d = [];
633
- return c && (d.push(Pe(O, { ...h, command: p.getCommand("paste"), key: "paste", icon: e(ra, {}) })), d.push(e(re, { orientation: "horizontal" }, "paste-div"))), d.push(Pe(O, { ...h, command: p.getCommand("pasteValues"), key: "pasteValues", icon: R(e(gc, {})) })), d.push(Pe(O, { ...h, command: p.getCommand("pasteFormats"), key: "pasteFormats", icon: R(e(hc, {})) })), d.push(Pe(O, { ...h, command: p.getCommand("pasteFormulas"), key: "pasteFormulas", icon: R(e(fc, {})) })), d.push(Pe(O, { ...h, command: p.getCommand("pasteTranspose"), key: "pasteTranspose", icon: R(e(bc, {})) })), d.push(Pe(O, { ...h, command: p.getCommand("pasteLinks"), key: "pasteLinks", icon: R(e(xc, {})) })), xe({ ...u, children: d });
633
+ return c && (d.push(Pe(O, { ...h, command: p.getCommand("paste"), key: "paste", icon: e(ra, {}) })), d.push(e(re, { orientation: "horizontal" }, "paste-div"))), d.push(Pe(O, { ...h, command: p.getCommand("pasteValues"), key: "pasteValues", icon: D(e(gc, {})) })), d.push(Pe(O, { ...h, command: p.getCommand("pasteFormats"), key: "pasteFormats", icon: D(e(hc, {})) })), d.push(Pe(O, { ...h, command: p.getCommand("pasteFormulas"), key: "pasteFormulas", icon: D(e(fc, {})) })), d.push(Pe(O, { ...h, command: p.getCommand("pasteTranspose"), key: "pasteTranspose", icon: D(e(bc, {})) })), d.push(Pe(O, { ...h, command: p.getCommand("pasteLinks"), key: "pasteLinks", icon: D(e(xc, {})) })), xe({ ...u, children: d });
634
634
  }, [g, n, l, c]);
635
635
  return e(Re, { ref: i, commands: t, commandHook: n, scope: l, createPopupPanel: s, label: "Paste", tooltip: "Add content to the clipboard to your document.", quickCommand: "paste", icon: e(ra, {}), ...a });
636
- })), _p = Y(J((r, i) => {
636
+ })), Gp = Y(J((r, i) => {
637
637
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, parentFloat: c, ...g } = r, a = He(o, ["sheetViewToggleShowHeadings", "sheetViewToggleShowHeadingColumns", "sheetViewToggleShowHeadingRows"]), s = G((u, p) => {
638
638
  const h = { variant: le.Menuitem, parentFloat: u.floatReference, commandHook: t, scope: n, disabled: l }, d = $(se, { children: [e(O, { ...h, command: p.getCommand("sheetViewToggleShowHeadings") }), e(O, { ...h, command: p.getCommand("sheetViewToggleShowHeadingsNumeric") }), e(re, { orientation: "horizontal" }), e(O, { ...h, command: p.getCommand("sheetViewToggleShowHeadingColumns") }), e(O, { ...h, command: p.getCommand("sheetViewToggleShowHeadingRows") })] });
639
639
  return xe({ ...u, children: d });
640
640
  }, [l, t, n]);
641
- return e(Re, { ref: i, parentFloat: c, quickCommand: a[0]?.key(), commands: o, commandHook: t, createPopupPanel: s, label: "Headings", tooltip: "Configure how the column and rows headings in the sheet are displayed.", icon: e(eo, { command: a[0], scope: "view" }), ...g });
642
- })), Up = Y(J((r, i) => {
641
+ return e(Re, { ref: i, parentFloat: c, quickCommand: a[0]?.key(), commands: o, commandHook: t, createPopupPanel: s, label: "Headings", tooltip: "Configure how the column and rows headings in the sheet are displayed.", icon: e(sn, { command: a[0], scope: "view" }), ...g });
642
+ })), qp = Y(J((r, i) => {
643
643
  const { commands: o, commandHook: t, scope: n = "view", disabled: l = !1, ...c } = r, g = G((a) => {
644
644
  const s = { variant: le.Menuitem, parentFloat: a.floatReference, commandHook: t, scope: n, disabled: l }, u = $(se, { children: [e(O, { ...s, command: o.getCommand("workbookViewToggleShowFormulaBar") }), e(O, { ...s, command: o.getCommand("workbookViewToggleShowTabs") }), e(O, { ...s, command: o.getCommand("workbookViewToggleShowStatusBar") }), e(re, { orientation: "horizontal" }), e(O, { ...s, command: o.getCommand("workbookViewToggleShowHorizontalScrollBar") }), e(O, { ...s, command: o.getCommand("workbookViewToggleShowVerticalScrollBar") })] });
645
645
  return xe({ ...a, children: u });
646
646
  }, [l, o, t, n]);
647
- return e(Re, { ref: i, commands: o, disabled: l, commandHook: t, scope: n, label: "Workbook View", tooltip: "Options to configure how the workbook is displayed.", createPopupPanel: g, icon: e(eo, { icon: null, label: "Workbook View" }), ...c });
647
+ return e(Re, { ref: i, commands: o, disabled: l, commandHook: t, scope: n, label: "Workbook View", tooltip: "Options to configure how the workbook is displayed.", createPopupPanel: g, icon: e(sn, { icon: null, label: "Workbook View" }), ...c });
648
648
  })), Bi = Y(J((r, i) => {
649
649
  const { value: o, cellStyle: t, styles: n, createTemporaryCell: l, bodyStyle: c, sx: g, borderProps: a, disabled: s, ...u } = r, p = W(() => l({ value: o, style: t }), [o, t, l]), h = W(() => p.getStyle(), [p, c]), d = W(() => h.getFill().toCSS(c?.darkMode ?? !1), [h]), m = h.getInsets(), y = h.getFont(), b = G(() => h.getBorder(), [h]);
650
650
  return e(A, { ref: i, sx: { width: "100px", textOverflow: "ellipsis", display: "flex", alignItems: "stretch", background: c?.fill, filter: s ? "grayscale(0.4) opacity(0.8);" : "none", "& .fill": { flex: "1 1 100%", overflow: "hidden", ...d }, "& .text": { flex: "1 1 100%", ...y.toCSS(c?.darkMode ?? !1, 1), boxSizing: "border-box", padding: `${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`, margin: "0px", outline: "none", resize: "none", overflow: "hidden", textOverflow: "ellipsis", verticalAlign: "baseline", textDecoration: y.toCSS().textDecoration, textAlign: gs.toCSSHorizontalTextAlign(p.getRenderHorizontalAlignment()), background: "transparent", maxHeight: "100%", whiteSpace: "pre", wordWrap: "break-word" }, ...g }, ...u, children: e(hr, { getBorderAt: b, darkMode: c?.darkMode ?? !1, rowCount: 1, columnCount: 1, style: { display: "flex", flex: "1 1 100%", width: "100%", maxWidth: "100%", justifyContent: "start", alignItems: "stretch", ...a?.style }, ...a, children: e(A, { className: "fill", sx: { paddingLeft: "4px", paddingRight: "4px", marginLeft: "-1px", marginTop: "-1px", marginRight: "-1px", marginBottom: "-1px", overflow: "hidden", display: "flex", alignItems: "center" }, children: e(A, { className: "text", children: o }) }) }) });
651
- })), Gp = Y((r) => {
651
+ })), Xp = Y((r) => {
652
652
  const { styles: i, namedStyle: o, selectedNamed: t, hasContextMenu: n = !0, bodyStyle: l, onSelectNamed: c, createTemporaryCell: g, parentFloat: a, commands: s, disabled: u, commandHook: p, ...h } = r, d = G((b) => {
653
- const x = { variant: le.Menuitem, commandHook: p, context: "cellStyle" }, f = $(se, { children: [e(O, { ...x, sx: { fontWeight: 550 }, command: s.getCommand("formatCellStyle"), commandState: o, disabled: u, icon: R(e(Ro, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...x, command: s.getCommand("modifyCellStyle"), commandState: { named: o } }), e(O, { ...x, command: s.getCommand("deleteCellStyle"), commandState: o, disabled: u || o?.getName() === pe.BuiltInName.Normal })] });
653
+ const x = { variant: le.Menuitem, commandHook: p, context: "cellStyle" }, f = $(se, { children: [e(O, { ...x, sx: { fontWeight: 550 }, command: s.getCommand("formatCellStyle"), commandState: o, disabled: u, icon: D(e(Po, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...x, command: s.getCommand("modifyCellStyle"), commandState: { named: o } }), e(O, { ...x, command: s.getCommand("deleteCellStyle"), commandState: o, disabled: u || o?.getName() === pe.BuiltInName.Normal })] });
654
654
  return xe({ ...b, children: e(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: f }) }) });
655
655
  }, []), m = o?.getName() === t?.getName();
656
656
  let y = e(bt, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (b) => `solid ${m ? b.palette.primary.dark : "transparent"} 1px` }, tooltipProps: { label: o.getName(), placement: "bottom-start" }, disabled: u, icon: null, onClick: () => {
657
657
  c?.(o);
658
658
  }, ...h, children: e(Bi, { value: o.getName(), cellStyle: { named: o.getName() }, styles: i, createTemporaryCell: g, bodyStyle: l }) }, o.getName());
659
659
  return n && (y = e(bi, { label: o.getName(), parentFloat: a, createPopupPanel: d, children: y })), y;
660
- }), qp = Y(J((r, i) => {
660
+ }), Kp = Y(J((r, i) => {
661
661
  const { commands: o, command: t, commandHook: n, selectedNamed: l, onSelectNamed: c, disabled: g = !1, bodyStyle: a, usePreviewIcon: s = !0, ...u } = r;
662
662
  Ht(t);
663
663
  const p = t?.context(), h = p?.styles, d = l ?? p?.named(), m = a ?? p?.bodyStyle(), y = te((v) => {
@@ -667,14 +667,14 @@ const $p = Y(J((r, i) => {
667
667
  for (let M = 0; M < T.length; M++) I.set(T[M].getName(), T[M]), h().getNamed(T[M].getName()).getBuiltInID() === null && N.push(T[M].getName());
668
668
  const B = (M) => {
669
669
  let E = I.get(M);
670
- return E || (E = h().getNamed(M)), !E || E.isHidden() ? null : e(Gp, { namedStyle: E, selectedNamed: d, bodyStyle: p.bodyStyle(), createTemporaryCell: p.createTemporaryCell, commands: o, commandHook: n, ...k }, M);
671
- }, D = (M, E, K = !0) => {
670
+ return E || (E = h().getNamed(M)), !E || E.isHidden() ? null : e(Xp, { namedStyle: E, selectedNamed: d, bodyStyle: p.bodyStyle(), createTemporaryCell: p.createTemporaryCell, commands: o, commandHook: n, ...k }, M);
671
+ }, P = (M, E, K = !0) => {
672
672
  const Q = [];
673
673
  for (let q = 0; q < E.length; q++) {
674
674
  const _ = B(E[q]);
675
675
  _ && Q.push(_);
676
676
  }
677
- return Q.length === 0 ? null : $(A, { children: [K ? e(re, { orientation: "horizontal" }) : null, e(to, { children: M }, M + "-header"), e(A, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", width: "646px", maxWidth: "100%" }, children: Q }, M + "-presets")] }, M);
677
+ return Q.length === 0 ? null : $(A, { children: [K ? e(re, { orientation: "horizontal" }) : null, e(eo, { children: M }, M + "-header"), e(A, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", width: "646px", maxWidth: "100%" }, children: Q }, M + "-presets")] }, M);
678
678
  }, S = (M, E) => {
679
679
  const K = [];
680
680
  for (let Q = 0; Q < E.length; Q++) {
@@ -682,19 +682,19 @@ const $p = Y(J((r, i) => {
682
682
  q && K.push(q);
683
683
  }
684
684
  return K.length === 0 ? null : e(A, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", flexDirection: "column", flex: "0 0 0%" }, children: K }, M + "-presets");
685
- }, P = [];
686
- P.push(D("Custom", N, !1)), P.push(D("Good, Bad and Neutral", [pe.BuiltInName.Normal, pe.BuiltInName.Bad, pe.BuiltInName.Good, pe.BuiltInName.Neutral], N.length > 0)), P.push(D("Data and Model", [pe.BuiltInName.Calculation, pe.BuiltInName.CheckCell, pe.BuiltInName.ExplanatoryText, pe.BuiltInName.FollowedHyperlink, pe.BuiltInName.Hyperlink, pe.BuiltInName.Input, pe.BuiltInName.LinkedCell, pe.BuiltInName.Note, pe.BuiltInName.Output, pe.BuiltInName.WarningText])), P.push(D("Titles and Headings", [pe.BuiltInName.Heading1, pe.BuiltInName.Heading2, pe.BuiltInName.Heading3, pe.BuiltInName.Heading4, pe.BuiltInName.Title, pe.BuiltInName.Total]));
685
+ }, R = [];
686
+ R.push(P("Custom", N, !1)), R.push(P("Good, Bad and Neutral", [pe.BuiltInName.Normal, pe.BuiltInName.Bad, pe.BuiltInName.Good, pe.BuiltInName.Neutral], N.length > 0)), R.push(P("Data and Model", [pe.BuiltInName.Calculation, pe.BuiltInName.CheckCell, pe.BuiltInName.ExplanatoryText, pe.BuiltInName.FollowedHyperlink, pe.BuiltInName.Hyperlink, pe.BuiltInName.Input, pe.BuiltInName.LinkedCell, pe.BuiltInName.Note, pe.BuiltInName.Output, pe.BuiltInName.WarningText])), R.push(P("Titles and Headings", [pe.BuiltInName.Heading1, pe.BuiltInName.Heading2, pe.BuiltInName.Heading3, pe.BuiltInName.Heading4, pe.BuiltInName.Title, pe.BuiltInName.Total]));
687
687
  let L = [];
688
688
  var F, V;
689
- return L.push(S("Accent 1", [pe.BuiltInName.Accent1_20, pe.BuiltInName.Accent1_40, pe.BuiltInName.Accent1_60, pe.BuiltInName.Accent1])), L.push(S("Accent 2", [pe.BuiltInName.Accent2_20, pe.BuiltInName.Accent2_40, pe.BuiltInName.Accent2_60, pe.BuiltInName.Accent2])), L.push(S("Accent 3", [pe.BuiltInName.Accent3_20, pe.BuiltInName.Accent3_40, pe.BuiltInName.Accent3_60, pe.BuiltInName.Accent3])), L.push(S("Accent 4", [pe.BuiltInName.Accent4_20, pe.BuiltInName.Accent4_40, pe.BuiltInName.Accent4_60, pe.BuiltInName.Accent4])), L.push(S("Accent 5", [pe.BuiltInName.Accent5_20, pe.BuiltInName.Accent5_40, pe.BuiltInName.Accent5_60, pe.BuiltInName.Accent5])), L.push(S("Accent 6", [pe.BuiltInName.Accent6_20, pe.BuiltInName.Accent6_40, pe.BuiltInName.Accent6_60, pe.BuiltInName.Accent6])), P.push((F = "Themed Cell Styles", V = L, $(A, { children: [e(re, { orientation: "horizontal" }), e(to, { children: F }, F + "-header"), e(A, { sx: { display: "flex", gap: "2px", flexWrap: "wrap", alignItems: "start", flexDirection: "row" }, children: V }, F + "-presets")] }, F))), P.push(D("Number Format", [pe.BuiltInName.Comma, pe.BuiltInName.Comma0, pe.BuiltInName.Currency, pe.BuiltInName.Currency0, pe.BuiltInName.Percent])), $(A, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", paddingTop: (M) => `${M.shape.borderRadius}px`, paddingBottom: (M) => `${M.shape.borderRadius}px` }, children: [e(A, { onContextMenu: () => {
690
- }, sx: { display: "flex", flexDirection: "column", paddingTop: "6px", paddingBottom: "0px", paddingLeft: "16px", paddingRight: "16px" }, children: P }), e(re, { orientation: "horizontal" }), e(O, { variant: le.Menuitem, commandState: d, command: C.getCommand("newCellStyle"), context: "styles", commandHook: n, disabled: g, icon: R(e(yc, {})) })] });
689
+ return L.push(S("Accent 1", [pe.BuiltInName.Accent1_20, pe.BuiltInName.Accent1_40, pe.BuiltInName.Accent1_60, pe.BuiltInName.Accent1])), L.push(S("Accent 2", [pe.BuiltInName.Accent2_20, pe.BuiltInName.Accent2_40, pe.BuiltInName.Accent2_60, pe.BuiltInName.Accent2])), L.push(S("Accent 3", [pe.BuiltInName.Accent3_20, pe.BuiltInName.Accent3_40, pe.BuiltInName.Accent3_60, pe.BuiltInName.Accent3])), L.push(S("Accent 4", [pe.BuiltInName.Accent4_20, pe.BuiltInName.Accent4_40, pe.BuiltInName.Accent4_60, pe.BuiltInName.Accent4])), L.push(S("Accent 5", [pe.BuiltInName.Accent5_20, pe.BuiltInName.Accent5_40, pe.BuiltInName.Accent5_60, pe.BuiltInName.Accent5])), L.push(S("Accent 6", [pe.BuiltInName.Accent6_20, pe.BuiltInName.Accent6_40, pe.BuiltInName.Accent6_60, pe.BuiltInName.Accent6])), R.push((F = "Themed Cell Styles", V = L, $(A, { children: [e(re, { orientation: "horizontal" }), e(eo, { children: F }, F + "-header"), e(A, { sx: { display: "flex", gap: "2px", flexWrap: "wrap", alignItems: "start", flexDirection: "row" }, children: V }, F + "-presets")] }, F))), R.push(P("Number Format", [pe.BuiltInName.Comma, pe.BuiltInName.Comma0, pe.BuiltInName.Currency, pe.BuiltInName.Currency0, pe.BuiltInName.Percent])), $(A, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", paddingTop: (M) => `${M.shape.borderRadius}px`, paddingBottom: (M) => `${M.shape.borderRadius}px` }, children: [e(A, { onContextMenu: () => {
690
+ }, sx: { display: "flex", flexDirection: "column", paddingTop: "6px", paddingBottom: "0px", paddingLeft: "16px", paddingRight: "16px" }, children: R }), e(re, { orientation: "horizontal" }), e(O, { variant: le.Menuitem, commandState: d, command: C.getCommand("newCellStyle"), context: "styles", commandHook: n, disabled: g, icon: D(e(yc, {})) })] });
691
691
  }, [d, h?.().getTheme(), m]), x = te((v) => {
692
692
  const C = 18 / Bt.getDeviceScale(), k = p?.createTemporaryCell(v);
693
693
  return k.getStyle().getFont().getSize() <= C ? k : k.createTemporaryCell({ style: { font: { size: C } } });
694
- }, [p?.createTemporaryCell]), f = g || !t || t.disabled(), w = W(() => p && s ? e(Bi, { value: d?.getName() ?? "Custom", cellStyle: d ? { named: d.getName() } : void 0, styles: p.styles(), createTemporaryCell: x, bodyStyle: p.bodyStyle(), className: "outline-hover", disabled: f, sx: { maxHeight: "24px", height: "24px", marginRight: "2px", outline: (v) => `1px solid ${v.palette.action.hover}` }, borderProps: {} }) : R(e(Ro, {})), [d, m, f]);
694
+ }, [p?.createTemporaryCell]), f = g || !t || t.disabled(), w = W(() => p && s ? e(Bi, { value: d?.getName() ?? "Custom", cellStyle: d ? { named: d.getName() } : void 0, styles: p.styles(), createTemporaryCell: x, bodyStyle: p.bodyStyle(), className: "outline-hover", disabled: f, sx: { maxHeight: "24px", height: "24px", marginRight: "2px", outline: (v) => `1px solid ${v.palette.action.hover}` }, borderProps: {} }) : D(e(Po, {})), [d, m, f]);
695
695
  return e(Re, { ref: i, createPopupPanel: b, outlined: s, commands: o, createTooltip: ({ children: v }, C) => e(rt, { label: t?.label(), description: t?.description(), disabled: C, children: v }), selected: !1, disabled: f, label: t?.label(), icon: w, ...u });
696
- })), Li = "_sheetxl-reset_ods65_1", Xp = 10, Kp = Y(J((r, i) => {
697
- const { styles: o, table: t, tableStyle: n = t?.getStyle() ?? o.getDefaultTableStyle(), bodyStyle: l, sx: c, disabled: g, className: a, forceThinBorder: s, cellHeight: u = Xp, isLive: p = !1, ...h } = r, d = Math.ceil(1.3 * u), [m, y] = ar((v) => v + 1, 0);
696
+ })), Li = "_sheetxl-reset_ods65_1", Yp = 10, Zp = Y(J((r, i) => {
697
+ const { styles: o, table: t, tableStyle: n = t?.getStyle() ?? o.getDefaultTableStyle(), bodyStyle: l, sx: c, disabled: g, className: a, forceThinBorder: s, cellHeight: u = Yp, isLive: p = !1, ...h } = r, d = Math.ceil(1.3 * u), [m, y] = ar((v) => v + 1, 0);
698
698
  ue(() => {
699
699
  if (p && t) return t.addListeners({ onAnyChange: () => {
700
700
  y();
@@ -714,8 +714,8 @@ const $p = Y(J((r, i) => {
714
714
  }, [b]), f = W(() => {
715
715
  const v = (k, T, I) => {
716
716
  let N = I.getFill().toCSS(l?.darkMode ?? !1);
717
- const B = d - (T < 4 ? 1 : 0), D = u - (k < 4 ? 1 : 0), S = I.getFont().getFill().toCSS(l?.darkMode ?? !1);
718
- return N = { ...N, position: "absolute", boxSizing: "border-box", left: T * (d - 1), top: k * (u - 1), width: B, height: D }, e("td", { className: `table-style-fill ${k}-${T}`, style: N, children: e("div", { className: `table-style-text ${k}-${T}`, style: { position: "absolute", boxSizing: "border-box", width: "6px", left: (B - 6) / 2, top: (D - 1) / 2, borderTop: `1px solid ${S}` } }) }, `${k}-${T}`);
717
+ const B = d - (T < 4 ? 1 : 0), P = u - (k < 4 ? 1 : 0), S = I.getFont().getFill().toCSS(l?.darkMode ?? !1);
718
+ return N = { ...N, position: "absolute", boxSizing: "border-box", left: T * (d - 1), top: k * (u - 1), width: B, height: P }, e("td", { className: `table-style-fill ${k}-${T}`, style: N, children: e("div", { className: `table-style-text ${k}-${T}`, style: { position: "absolute", boxSizing: "border-box", width: "6px", left: (B - 6) / 2, top: (P - 1) / 2, borderTop: `1px solid ${S}` } }) }, `${k}-${T}`);
719
719
  }, C = [];
720
720
  for (let k = 0; k < 5; k++) {
721
721
  const T = [];
@@ -728,9 +728,9 @@ const $p = Y(J((r, i) => {
728
728
  return C;
729
729
  }, [b, n, l]), w = G((v, C) => x[C].getBorder() ?? null, [x]);
730
730
  return e(A, { ref: i, className: "table-format-preview", sx: { background: l?.fill, filter: g ? "grayscale(0.4) opacity(0.8);" : "none", "& .styled-element": { position: "absolute" }, ...c }, ...h, children: e(hr, { getBorderAt: w, rowCount: 5, columnCount: 5, forceThinBorder: s, width: 5 * (d - 1) + 1, height: 5 * (u - 1) + 1, darkMode: l?.darkMode ?? !1, style: { pointerEvents: "none" }, children: e("table", { className: Ae(a, "sheetxl-table-preview", Li), style: { borderCollapse: "collapse", width: 5 * (d - 1) + 1, height: 5 * (u - 1) + 1 }, children: e("tbody", { children: f }) }) }) });
731
- })), po = (r, i, o, t, n) => {
731
+ })), co = (r, i, o, t, n) => {
732
732
  r.beginPath(), r.moveTo(i + 0.5, o + 0.5), r.lineTo(t + 0.5, n + 0.5), r.stroke();
733
- }, Yp = Y(J((r, i) => {
733
+ }, Jp = Y(J((r, i) => {
734
734
  const { table: o, tableStyle: t, styles: n, bodyStyle: l, disabled: c, style: g, className: a, canvas: s, ...u } = r, p = W(() => {
735
735
  const m = o.toJSON(), y = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
736
736
  return m.styleOptions = { ...m.styleOptions, name: t.getName() }, m.ref = y, new nr({ initialAnchor: y, json: m, styles: n });
@@ -760,22 +760,22 @@ const $p = Y(J((r, i) => {
760
760
  const v = h[5 * f + w], C = w * b, k = 9 * f, T = v.getBorder();
761
761
  if (!T.isEmpty()) {
762
762
  const B = T.getLeft();
763
- B.isNone() || (y.strokeStyle = B.getColor().toCSS(x, !1), po(y, C, k, C, k + 9));
764
- const D = T.getTop();
765
- D.isNone() || (y.strokeStyle = D.getColor().toCSS(x, !1), po(y, C, k, C + b, 9 * f));
763
+ B.isNone() || (y.strokeStyle = B.getColor().toCSS(x, !1), co(y, C, k, C, k + 9));
764
+ const P = T.getTop();
765
+ P.isNone() || (y.strokeStyle = P.getColor().toCSS(x, !1), co(y, C, k, C + b, 9 * f));
766
766
  const S = T.getRight();
767
- S.isNone() || (y.strokeStyle = S.getColor().toCSS(x, !1), po(y, C + b, k, C + b, k + 9));
768
- const P = T.getBottom();
769
- P.isNone() || (y.strokeStyle = P.getColor().toCSS(x, !1), po(y, C, k + 9, C + b, k + 9));
767
+ S.isNone() || (y.strokeStyle = S.getColor().toCSS(x, !1), co(y, C + b, k, C + b, k + 9));
768
+ const R = T.getBottom();
769
+ R.isNone() || (y.strokeStyle = R.getColor().toCSS(x, !1), co(y, C, k + 9, C + b, k + 9));
770
770
  }
771
771
  y.strokeStyle = v.getFont().getFill().toCSS(x, !1);
772
772
  const I = 4, N = 2.5;
773
- po(y, w * b + N, 9 * f + I, w * b + N + 7, 9 * f + I);
773
+ co(y, w * b + N, 9 * f + I, w * b + N + 7, 9 * f + I);
774
774
  }
775
775
  return `url(${m.toDataURL()})`;
776
776
  }, [s, p, t, l]);
777
777
  return e("div", { ref: i, className: Ae("table-style-preview", a), style: { backgroundImage: d, width: 61, height: 46, ...g }, ...u });
778
- })), $m = Y(J((r, i) => {
778
+ })), Vm = Y(J((r, i) => {
779
779
  const { styleOptions: o, onStyleOptionsChange: t, showHeaderRow: n, onShowHeaderRowChange: l, showTotalRow: c, onShowTotalRowChange: g, showFilterButton: a, onShowFilterButtonChange: s, sx: u, disabled: p, ...h } = r;
780
780
  return $(A, { sx: { display: "flex", flexDirection: "column", flexWrap: "wrap", userSelect: "none", pt: 1, pb: 1, "& .MuiFormControlLabel-root": { marginLeft: (d) => `${d.spacing(2)}`, marginRight: (d) => `${d.spacing(2)}` }, "& .MuiCheckbox-root": { padding: (d) => `${d.spacing(0.5)}` }, ...u }, ...h, ref: i, children: [l && e(Et, { control: e(Dt, { checked: n ?? !1, indeterminate: n == null, onChange: () => l(!n), disabled: p || n == null }), label: "Header Row", labelPlacement: "end" }), g && e(Et, { control: e(Dt, { checked: c ?? !1, indeterminate: c == null, onChange: () => g(!c), disabled: p || c == null }), label: "Total Row", labelPlacement: "end" }), e(Et, { control: e(Dt, { checked: o?.showRowStripes ?? !1, indeterminate: !o, disabled: p || !o, onChange: () => {
781
781
  t?.({ ...o, showRowStripes: !o?.showRowStripes });
@@ -786,27 +786,27 @@ const $p = Y(J((r, i) => {
786
786
  } }), label: "Last Column", labelPlacement: "end" }), e(Et, { control: e(Dt, { checked: o?.showColumnStripes ?? !1, indeterminate: !o, disabled: p || !o, onChange: () => {
787
787
  t?.({ ...o, showColumnStripes: !o?.showColumnStripes });
788
788
  } }), label: "Banded Columns", labelPlacement: "end" }), s && e(Et, { control: e(Dt, { checked: a ?? !1, indeterminate: a == null, disabled: p || !o || a == null, onChange: () => s(!a) }), label: "Filter Button", labelPlacement: "end" })] });
789
- })), Zp = Y((r) => {
789
+ })), Qp = Y((r) => {
790
790
  const { table: i, tableStyle: o, selectedTableStyleName: t, onSelectTableStyleName: n, styles: l, hasContextMenu: c = !0, bodyStyle: g, parentFloat: a, commands: s, disabled: u, commandHook: p, useCanvasPreview: h = !0, canvas: d, ...m } = r, y = G((w) => {
791
- const v = { variant: le.Menuitem, commandHook: p, context: "table" }, C = $(se, { children: [e(O, { ...v, command: s.getCommand("formatTableStyleClearCellStyles"), commandState: o, disabled: u, icon: R(e(Ro, {})) }), e(O, { ...v, sx: { fontWeight: 550 }, command: s.getCommand("formatTableStyle"), commandState: { name: o.getName() }, disabled: u, icon: R(e(Ro, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...v, command: s.getCommand("setDefaultTableStyle"), commandState: o.getName(), disabled: u }), e(re, { orientation: "horizontal" }), e(O, { ...v, command: s.getCommand("deleteTableStyle"), commandState: o?.getName(), disabled: u || !o || o.isBuiltIn() })] });
791
+ const v = { variant: le.Menuitem, commandHook: p, context: "table" }, C = $(se, { children: [e(O, { ...v, command: s.getCommand("formatTableStyleClearCellStyles"), commandState: o, disabled: u, icon: D(e(Po, {})) }), e(O, { ...v, sx: { fontWeight: 550 }, command: s.getCommand("formatTableStyle"), commandState: { name: o.getName() }, disabled: u, icon: D(e(Po, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...v, command: s.getCommand("setDefaultTableStyle"), commandState: o.getName(), disabled: u }), e(re, { orientation: "horizontal" }), e(O, { ...v, command: s.getCommand("deleteTableStyle"), commandState: o?.getName(), disabled: u || !o || o.isBuiltIn() })] });
792
792
  return xe({ ...w, children: e(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: C }) }) });
793
793
  }, [s]), b = o?.getName() === t, x = W(() => {
794
794
  const w = { table: i, tableStyle: o, styles: l, bodyStyle: g };
795
- return h ? e(Yp, { canvas: d, ...w }) : e(Kp, { ...w });
795
+ return h ? e(Jp, { canvas: d, ...w }) : e(Zp, { ...w });
796
796
  }, [i, o, l, g]);
797
797
  let f = e(bt, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (w) => `solid ${b ? w.palette.primary.dark : "transparent"} 1px` }, tooltipProps: { label: o.getName() ?? "None", placement: "bottom-start" }, disabled: u, icon: null, onClick: () => {
798
798
  n?.(o?.getName());
799
799
  }, ...m, children: x }, o.getName());
800
800
  return c && (f = e(bi, { label: i.getStyleOptions().name, parentFloat: a, createPopupPanel: y, children: f })), f;
801
- }), Jp = Y(J((r, i) => {
801
+ }), eu = Y(J((r, i) => {
802
802
  const { commands: o, command: t, commandHook: n, selectedTable: l, onSelectTableStyleName: c, disabled: g = !1, bodyStyle: a, usePreviewIcon: s = !1, ...u } = r;
803
803
  Ht(t);
804
804
  const p = t?.context(), h = p?.styles, d = l ?? p?.table?.();
805
805
  let m = "insertTable";
806
806
  d && (m = "editTable");
807
807
  const y = W(() => ((N, B) => {
808
- const D = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
809
- return new nr({ initialAnchor: D, styles: B, json: { name: "PreviewTable", ref: D, description: "PreviewTable", headerRowCount: 1, totalsRowCount: 0, styleOptions: N } });
808
+ const P = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
809
+ return new nr({ initialAnchor: P, styles: B, json: { name: "PreviewTable", ref: P, description: "PreviewTable", headerRowCount: 1, totalsRowCount: 0, styleOptions: N } });
810
810
  })(d?.getStyleOptions(), h?.()), [h?.().getDefaultTableStyle(), d?.getStyleOptions()]), b = d ?? y, [x, f] = U(b);
811
811
  ue(() => {
812
812
  f(b);
@@ -814,43 +814,43 @@ const $p = Y(J((r, i) => {
814
814
  const w = a ?? p?.bodyStyle(), v = te((N) => {
815
815
  c?.(N), t?.execute({ name: N }, n);
816
816
  }, [t, c, n]), C = Se(null), k = G((N, B) => {
817
- const D = { onSelectTableStyleName: v, styles: h(), parentFloat: N.floatReference };
817
+ const P = { onSelectTableStyleName: v, styles: h(), parentFloat: N.floatReference };
818
818
  C.current || (C.current = document.createElement("canvas"));
819
819
  const S = (q) => {
820
820
  const _ = h().getTableStyle(q);
821
- return _ ? e(Zp, { table: x, tableStyle: _, selectedTableStyleName: x.getStyleOptions().name, bodyStyle: p.bodyStyle(), commands: B, commandHook: n, canvas: C.current, ...D }, q) : null;
822
- }, P = (q, _, ne = !0) => {
821
+ return _ ? e(Qp, { table: x, tableStyle: _, selectedTableStyleName: x.getStyleOptions().name, bodyStyle: p.bodyStyle(), commands: B, commandHook: n, canvas: C.current, ...P }, q) : null;
822
+ }, R = (q, _, ne = !0) => {
823
823
  const ie = [];
824
824
  for (let X = 0; X < _.length; X++) {
825
825
  const z = S(_[X]);
826
826
  z && ie.push(z);
827
827
  }
828
- return ie.length === 0 ? null : $(A, { children: [ne ? e(re, { orientation: "horizontal" }) : null, e(to, { children: q }, q + "-header"), e(A, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", width: "481px", maxWidth: "100%" }, children: ie }, q + "-presets")] }, q);
828
+ return ie.length === 0 ? null : $(A, { children: [ne ? e(re, { orientation: "horizontal" }) : null, e(eo, { children: q }, q + "-header"), e(A, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", width: "481px", maxWidth: "100%" }, children: ie }, q + "-presets")] }, q);
829
829
  }, L = [], F = h().getCustomTableStyles(), V = [];
830
830
  if (F.length > 0) {
831
831
  for (let q = 0; q < F.length; q++) F[q].isShownInTableStyles() && V.push(F[q].getName());
832
- L.push(P("Custom", V, !1));
832
+ L.push(R("Custom", V, !1));
833
833
  }
834
834
  const M = [];
835
835
  d && !d.getStyleOptions().name && M.push(null);
836
836
  for (let q = 0; q < 21; q++) M.push("TableStyleLight" + (q + 1));
837
- L.push(P("Light", M, V.length > 0));
837
+ L.push(R("Light", M, V.length > 0));
838
838
  const E = [];
839
839
  for (let q = 0; q < 28; q++) E.push("TableStyleMedium" + (q + 1));
840
- L.push(P("Medium", E));
840
+ L.push(R("Medium", E));
841
841
  const K = [];
842
842
  for (let q = 0; q < 11; q++) K.push("TableStyleDark" + (q + 1));
843
- L.push(P("Dark", K));
843
+ L.push(R("Dark", K));
844
844
  let Q = null;
845
- return d && (Q = $(se, { children: [e(re, { orientation: "horizontal" }), e(O, { variant: le.Menuitem, command: B.getCommand("formatTableStyleClearTableStyle"), commandHook: n, disabled: g, icon: R(e(gi, {})) })] })), $(A, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", paddingTop: (q) => `${q.shape.borderRadius}px`, paddingBottom: (q) => `${q.shape.borderRadius}px` }, children: [e(A, { onContextMenu: () => {
845
+ return d && (Q = $(se, { children: [e(re, { orientation: "horizontal" }), e(O, { variant: le.Menuitem, command: B.getCommand("formatTableStyleClearTableStyle"), commandHook: n, disabled: g, icon: D(e(gi, {})) })] })), $(A, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", paddingTop: (q) => `${q.shape.borderRadius}px`, paddingBottom: (q) => `${q.shape.borderRadius}px` }, children: [e(A, { onContextMenu: () => {
846
846
  }, sx: { display: "flex", flexDirection: "column", padding: "6px 16px" }, children: L }), Q] });
847
847
  }, [h, h?.().getTheme(), w, x]), T = g || !t || t.disabled(), I = W(() => {
848
- if (!p || !s) return R(e(Ro, {}));
848
+ if (!p || !s) return D(e(Po, {}));
849
849
  }, [x, w, T]);
850
850
  return e(Re, { ref: i, quickCommand: m, createPopupPanel: k, commands: o, label: t?.label(), commandState: d, commandHook: n, selected: d !== null, createTooltip: ({ children: N }, B) => e(rt, { label: t?.label(), description: t?.description(), disabled: B, children: N }), disabled: T, icon: I, ...u });
851
851
  })), Je = [];
852
852
  Je.push(ot("Primary Background", "bg1")), Je.push(ot("Primary Text", "tx1")), Je.push(ot("Secondary Background", "bg2")), Je.push(ot("Secondary Text", "tx2")), Je.push(ot("Accent 1", "accent1")), Je.push(ot("Accent 2", "accent2")), Je.push(ot("Accent 3", "accent3")), Je.push(ot("Accent 4", "accent4")), Je.push(ot("Accent 5", "accent5")), Je.push(ot("Accent 6", "accent6"));
853
- const Qp = (r) => {
853
+ const tu = (r) => {
854
854
  const { docTheme: i, onSelectTheme: o, darkMode: t, isSelected: n, outlined: l, sx: c, ...g } = r, a = at(), s = W(() => {
855
855
  let u = [];
856
856
  for (let p = 0; p < Je.length; p++) {
@@ -861,14 +861,14 @@ const Qp = (r) => {
861
861
  }, [i, a]);
862
862
  return e(bt, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (u) => `solid ${n ? u.palette.text.primary : "transparent"} 1px`, "&:hover:not([disabled])": { border: (u) => `solid ${u.palette.text.primary} 1px !important` } }, icon: null, ...g, children: $(A, { sx: { border: (u) => `solid ${u.palette.divider} 1px`, minWidth: "200px", borderRadius: "2px", padding: "4px 4px", textAlign: "left", display: "flex", gap: "4px", flexDirection: "column", alignItems: "stretch", color: (u) => n ? u.palette.text.primary : void 0, "&:hover:not([disabled])": { color: (u) => u.palette.text.primary } }, children: [e(A, { sx: {}, children: i.getName() }), $(A, { sx: { paddingTop: "6px", paddingLeft: "12px", paddingRight: "12px", display: "flex", flexDirection: "column", alignItems: "stretch" }, children: [s, e(A, { sx: { flex: "1 1 100%", textOverflow: "ellipsis", overflow: "hidden", marginTop: "2px", whiteSpace: "pre", fontFamily: () => i.getFontScheme().getMajorFont() }, children: e(At, { disableInteractive: !0, PopperProps: { style: { pointerEvents: "none" }, disablePortal: !0, popperOptions: { strategy: "fixed", modifiers: [{ name: "preventOverflow", enabled: !0, options: { boundariesElement: "viewport" } }] } }, title: e("div", { style: { textOverflow: "ellipsis", overflow: "hidden", whiteSpace: "pre" }, children: `The font used for the body.
863
863
  The heading font is '${i.getFontScheme().getMajorFont()}'.` }), placement: "bottom-start", children: e("div", { children: i.getFontScheme().getMinorFont() }) }) })] })] }) });
864
- }, eu = Y(J((r, i) => {
864
+ }, ou = Y(J((r, i) => {
865
865
  const { themes: o, selectedTheme: t, onSelectTheme: n, sx: l, disabled: c = !1, darkMode: g, ...a } = r, s = W(() => {
866
866
  const u = o?.getItems({ selected: t }) ?? [], p = [];
867
- if (u.length === 0) return e(to, { sx: { paddingLeft: "16px", paddingRight: "16px", paddingTop: "6px", paddingBottom: "6px" }, children: "No themes" });
867
+ if (u.length === 0) return e(eo, { sx: { paddingLeft: "16px", paddingRight: "16px", paddingTop: "6px", paddingBottom: "6px" }, children: "No themes" });
868
868
  const h = u.length;
869
869
  for (let d = 0; d < h; d++) {
870
870
  const m = u[d], y = t && m?.getName() === t.getName(), b = u[d + 1];
871
- b && b.isCustom() !== m.isCustom() && p.push(e(re, { orientation: "horizontal", sx: { marginBottom: "4px" } }, `divider-${d}`)), p.push(e(Qp, { docTheme: m, onSelectTheme: () => n(m), isSelected: y, disabled: c, darkMode: g, onMouseDown: (x) => {
871
+ b && b.isCustom() !== m.isCustom() && p.push(e(re, { orientation: "horizontal", sx: { marginBottom: "4px" } }, `divider-${d}`)), p.push(e(tu, { docTheme: m, onSelectTheme: () => n(m), isSelected: y, disabled: c, darkMode: g, onMouseDown: (x) => {
872
872
  x.button === 0 && x.preventDefault();
873
873
  }, onMouseUp: (x) => {
874
874
  x.button === 0 && n(m);
@@ -878,16 +878,16 @@ The heading font is '${i.getFontScheme().getMajorFont()}'.` }), placement: "bott
878
878
  }
879
879
  return p;
880
880
  }, [t, n, g]);
881
- return e(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%" }, ref: i, ...a, children: $(A, { sx: { display: "flex", flexDirection: "column", overflow: "hidden" }, children: [e(to, { sx: { paddingLeft: "16px", paddingRight: "16px", paddingTop: "4px", paddingBottom: "2px" }, children: "Themes" }), e(re, {}), e(A, { sx: { flex: "1 1 100%", overflow: "auto", padding: "6px 16px" }, children: s })] }) });
882
- })), tu = Y(J((r, i) => {
883
- const { themes: o, selectedTheme: t, onSelectTheme: n, icon: l, tooltip: c, label: g, variant: a = nt.Toolbar, darkMode: s, panelProps: u, ...p } = r, h = l || R(e(xi, {})), d = G((y) => {
881
+ return e(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%" }, ref: i, ...a, children: $(A, { sx: { display: "flex", flexDirection: "column", overflow: "hidden" }, children: [e(eo, { sx: { paddingLeft: "16px", paddingRight: "16px", paddingTop: "4px", paddingBottom: "2px" }, children: "Themes" }), e(re, {}), e(A, { sx: { flex: "1 1 100%", overflow: "auto", padding: "6px 16px" }, children: s })] }) });
882
+ })), nu = Y(J((r, i) => {
883
+ const { themes: o, selectedTheme: t, onSelectTheme: n, icon: l, tooltip: c, label: g, variant: a = nt.Toolbar, darkMode: s, panelProps: u, ...p } = r, h = l || D(e(xi, {})), d = G((y) => {
884
884
  const { closeFloatAll: b } = y;
885
- return e(eu, { ...u, themes: o, selectedTheme: t, onSelectTheme: n, darkMode: s, onKeyDown: (x) => {
885
+ return e(ou, { ...u, themes: o, selectedTheme: t, onSelectTheme: n, darkMode: s, onKeyDown: (x) => {
886
886
  x.which === be.Enter && b();
887
887
  } });
888
888
  }, [o, t, n, u, s]), m = { createPopupPanel: d, tooltip: c || g || "Theme", label: g, icon: h, ...p };
889
889
  return a === nt.Toolbar ? e(vt, { ref: i, ...m }) : e(cr, { ref: i, ...m });
890
- })), ou = Y(J((r, i) => {
890
+ })), ru = Y(J((r, i) => {
891
891
  const { command: o, commandHook: t, selectedTheme: n, onSelectTheme: l, disabled: c = !1, darkMode: g, label: a, icon: s, variant: u, ...p } = r;
892
892
  Ht(o);
893
893
  const h = o?.context()?.themes, d = n || o?.context()?.theme, m = g ?? o?.context()?.darkMode, y = c || o?.disabled(), b = te((f) => {
@@ -897,52 +897,52 @@ The heading font is '${i.getFontScheme().getMajorFont()}'.` }), placement: "bott
897
897
  let T = f.children;
898
898
  return (y || w) && (T = e("div", { children: T })), e(pr, { command: o, placement: u === le.Toolbar ? "bottom-start" : "right-start", disabled: y || w, ...k, children: T });
899
899
  }, [o, y]);
900
- return e(tu, { ref: i, themes: h, selectedTheme: d, onSelectTheme: b, variant: u === le.Menuitem ? nt.Menuitem : nt.Toolbar, createTooltip: x, disabled: y, darkMode: m, icon: R(e(xi, {})), ...p });
901
- })), nu = Y(J((r, i) => {
900
+ return e(nu, { ref: i, themes: h, selectedTheme: d, onSelectTheme: b, variant: u === le.Menuitem ? nt.Menuitem : nt.Toolbar, createTooltip: x, disabled: y, darkMode: m, icon: D(e(xi, {})), ...p });
901
+ })), au = Y(J((r, i) => {
902
902
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, ...c } = r, g = He(o, ["themeMode"])[0], a = g?.state(), s = g?.state() !== null, u = vs("(prefers-color-scheme: dark)"), p = a === "dark" || a === null && u, h = te((d, m) => {
903
- const y = { variant: le.Menuitem, commandHook: t, scope: "appearance", disabled: l }, b = $(se, { children: [e(O, { ...y, command: g, icon: R(e(p ? ua : ma, {})) }), e(O, { ...y, command: m.getCommand("defaultThemeMode"), icon: R(e(u ? wc : Sc, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...y, command: m.getCommand("enableDarkGrid") }), e(O, { ...y, command: m.getCommand("enableDarkImages") })] });
903
+ const y = { variant: le.Menuitem, commandHook: t, scope: "appearance", disabled: l }, b = $(se, { children: [e(O, { ...y, command: g, icon: D(e(p ? ua : ma, {})) }), e(O, { ...y, command: m.getCommand("defaultThemeMode"), icon: D(e(u ? wc : Sc, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...y, command: m.getCommand("enableDarkGrid") }), e(O, { ...y, command: m.getCommand("enableDarkImages") })] });
904
904
  return xe({ ...d, children: b });
905
905
  }, [l, g, t, n, u, a, s]);
906
906
  return e(Re, { ref: i, quickCommand: "themeMode", commands: o, commandHook: t, createPopupPanel: h, label: "Appearance", tooltip: "Change the light/dark mode to match your viewing preference. This does not affect the view for others.", onQuickClick: () => {
907
907
  g?.execute(p ? "light" : "dark", t);
908
- }, selected: s, icon: R(e(p ? ua : ma, {})), ...c });
909
- })), ru = Y(J((r, i) => {
908
+ }, selected: s, icon: D(e(p ? ua : ma, {})), ...c });
909
+ })), iu = Y(J((r, i) => {
910
910
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, sx: c, ...g } = r, a = G((s, u) => {
911
- const p = { variant: le.Menuitem, scope: "help", commandHook: { ...t, beforeExecute: (d, m) => t?.beforeExecute?.(d, m) !== !1 && s.floatReference.closeAll() }, disabled: l }, h = $(se, { children: [e(O, { ...p, command: u.getCommand("showKeyboardShortcuts"), icon: R(e(Xd, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...p, command: u.getCommand("gotoUrlGithub"), icon: R(e(vc, {})) }), e(O, { ...p, command: u.getCommand("gotoUrlDiscord"), icon: R(e(Cc, {})) }), e(O, { ...p, command: u.getCommand("gotoUrlDocumentation"), icon: R(e(yi, {})) }), e(O, { ...p, command: u.getCommand("gotoUrlIssue"), icon: R(e(kc, {})) })] });
911
+ const p = { variant: le.Menuitem, scope: "help", commandHook: { ...t, beforeExecute: (d, m) => t?.beforeExecute?.(d, m) !== !1 && s.floatReference.closeAll() }, disabled: l }, h = $(se, { children: [e(O, { ...p, command: u.getCommand("showKeyboardShortcuts"), icon: D(e(Yd, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...p, command: u.getCommand("gotoUrlGithub"), icon: D(e(vc, {})) }), e(O, { ...p, command: u.getCommand("gotoUrlDiscord"), icon: D(e(Cc, {})) }), e(O, { ...p, command: u.getCommand("gotoUrlDocumentation"), icon: D(e(yi, {})) }), e(O, { ...p, command: u.getCommand("gotoUrlIssue"), icon: D(e(kc, {})) })] });
912
912
  return xe({ ...s, children: h });
913
913
  }, [l, t]);
914
- return e(Re, { ref: i, sx: c, commands: o, disabled: l, commandHook: t, scope: n, label: "Help", tooltip: "Help, feedback, and keyboard shortcuts.", createPopupPanel: a, icon: R(e(Tc, { sx: { transform: "scale(0.75)" } })), ...g });
914
+ return e(Re, { ref: i, sx: c, commands: o, disabled: l, commandHook: t, scope: n, label: "Help", tooltip: "Help, feedback, and keyboard shortcuts.", createPopupPanel: a, icon: D(e(Tc, { sx: { transform: "scale(0.75)" } })), ...g });
915
915
  })), Hi = Y(J((r, i) => {
916
916
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, preferSingleMenu: c = !0, showQuickButton: g = !0, variant: a = le.Toolbar, ...s } = r, u = He(o, ["insertImageFromFile", "insertImageFromURL"]), { singleMenuCommand: p, allDisabled: h } = W(() => {
917
917
  let m = null, y = 0;
918
918
  for (let b = 0; b < u.length; b++) u[b] && !u[b]?.disabled() && (c && a === le.Menuitem && (m = y === 0 ? u[b] : null), y++);
919
919
  return { singleMenuCommand: m, allDisabled: y === 0 };
920
920
  }, [u]), d = G((m, y) => {
921
- const b = { variant: le.Menuitem, commandHook: t, scope: "insertImage", disabled: l }, x = $(se, { children: [e(O, { ...b, command: y.getCommand("insertImageFromFile"), icon: R(e(Wo, {})) }), e(O, { ...b, command: y.getCommand("insertImageFromURL"), icon: R(e(Wo, {})) })] });
921
+ const b = { variant: le.Menuitem, commandHook: t, scope: "insertImage", disabled: l }, x = $(se, { children: [e(O, { ...b, command: y.getCommand("insertImageFromFile"), icon: D(e(zo, {})) }), e(O, { ...b, command: y.getCommand("insertImageFromURL"), icon: D(e(zo, {})) })] });
922
922
  return xe({ ...m, children: x });
923
923
  }, [l, t, n]);
924
- return p ? e(O, { ref: i, variant: a, commandHook: t, disabled: l, command: p, icon: R(e(Wo, {})), ...s }) : e(Re, { ref: i, variant: a, quickCommand: "insertImageFromFile", commands: o, commandHook: t, scope: n, disabled: l || h, tooltip: "Insert a picture from the web to complement your data.", createPopupPanel: d, icon: R(e(Wo, {})), ...s });
924
+ return p ? e(O, { ref: i, variant: a, commandHook: t, disabled: l, command: p, icon: D(e(zo, {})), ...s }) : e(Re, { ref: i, variant: a, quickCommand: "insertImageFromFile", commands: o, commandHook: t, scope: n, disabled: l || h, tooltip: "Insert a picture from the web to complement your data.", createPopupPanel: d, icon: D(e(zo, {})), ...s });
925
925
  })), xr = Y(J((r, i) => {
926
926
  const { command: o, ...t } = r, n = un(), [l, c] = U(!1), [g, a] = U("info");
927
927
  return ue(() => {
928
928
  const s = n.getMode();
929
929
  c(s?.key === "copy" || s?.key === "cut"), a(s?.key === "cut" ? "warning" : "info");
930
- }, [n]), e(O, { ref: i, command: o, icon: R(e(Ec, { isWalking: l, themedType: g })), ...t });
931
- })), au = Y(J((r, i) => {
930
+ }, [n]), e(O, { ref: i, command: o, icon: D(e(Ec, { isWalking: l, themedType: g })), ...t });
931
+ })), lu = Y(J((r, i) => {
932
932
  const { ...o } = r;
933
933
  return e(ct, { ref: i, ...o, popupCommandKeys: ["insertFunctionSum", "insertFunctionAverage", "insertFunctionCount", "insertFunctionMax", "insertFunctionMin", null, "insertFunction"], quickCommand: "insertFunctionSum", popupScope: "insertFunction", label: "Quick Function", tooltip: "More functions.", icon: (t) => {
934
934
  switch (t?.key()) {
935
935
  case "insertFunctionSum":
936
- return R(e(Pc, {}));
936
+ return D(e(Pc, {}));
937
937
  case "insertFunction":
938
- return R(e(Dc, {}));
938
+ return D(e(Dc, {}));
939
939
  default:
940
940
  return null;
941
941
  }
942
942
  } });
943
943
  }));
944
- au.displayName = "InsertFunctionSumCommandPopupButton";
945
- const Dn = new Map([{ key: "financial", label: "Financial", icon: e(Mc, {}) }, { key: "logical", label: "Logical", icon: e(Ic, {}) }, { key: "text", label: "Text", icon: e(Nc, {}) }, { key: "dateTime", label: "Date & Time", icon: e(Fc, {}) }, { key: "lookupReference", label: "Lookup & Reference", icon: e(Oc, {}) }, { key: "mathTrig", label: "Math & Trig", icon: e(Ac, {}) }, { key: "statDist", label: "Statistical", icon: e(Bc, {}) }, { key: "engineering", label: "Engineering", icon: e(Lc, {}) }, { key: "information", label: "Information", icon: e(Hc, {}) }, { key: "cube", label: "Cube", icon: e(zc, {}) }, { key: "database", label: "Database", icon: e(Wc, {}) }, { key: "web", label: "Web", icon: e($c, {}) }, { key: "custom", label: "Custom", icon: e(jc, {}) }].map((r) => [r.key, r])), iu = Y((r) => {
944
+ lu.displayName = "InsertFunctionSumCommandPopupButton";
945
+ const Dn = new Map([{ key: "financial", label: "Financial", icon: e(Mc, {}) }, { key: "logical", label: "Logical", icon: e(Ic, {}) }, { key: "text", label: "Text", icon: e(Nc, {}) }, { key: "dateTime", label: "Date & Time", icon: e(Fc, {}) }, { key: "lookupReference", label: "Lookup & Reference", icon: e(Oc, {}) }, { key: "mathTrig", label: "Math & Trig", icon: e(Ac, {}) }, { key: "statDist", label: "Statistical", icon: e(Bc, {}) }, { key: "engineering", label: "Engineering", icon: e(Lc, {}) }, { key: "information", label: "Information", icon: e(Hc, {}) }, { key: "cube", label: "Cube", icon: e(zc, {}) }, { key: "database", label: "Database", icon: e(Wc, {}) }, { key: "web", label: "Web", icon: e($c, {}) }, { key: "custom", label: "Custom", icon: e(jc, {}) }].map((r) => [r.key, r])), su = Y((r) => {
946
946
  const { command: i, formulaFunction: o, commandHook: t, disabled: n = !1, parentFloat: l, handleInsert: c, icon: g, label: a, sx: s, ...u } = r, p = new Promise((h) => {
947
947
  o.getDescriptor().then((d) => {
948
948
  h(d.getSummary());
@@ -955,17 +955,17 @@ const Dn = new Map([{ key: "financial", label: "Financial", icon: e(Mc, {}) }, {
955
955
  }, onKeyDown: (h) => {
956
956
  h.keyCode === be.Enter || (h.keyCode, be.Space);
957
957
  }, ...u, children: e(A, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: e(Oe, { component: "div", children: o.getName() }) }) });
958
- }), lu = Y(J((r, i) => {
958
+ }), cu = Y(J((r, i) => {
959
959
  const { category: o, commands: t, commandHook: n, scope: l, sx: c, disabled: g = !1, parentFloat: a, ...s } = r, u = He(t, ["insertFunction"])[0], p = G((d, m) => {
960
960
  const y = Dn.get(o);
961
961
  if (!y) return console.warn("invalidate category", o), null;
962
- const b = { commandHook: n, ...d }, x = e(su, { category: y.label, ...b, commands: m });
962
+ const b = { commandHook: n, ...d }, x = e(du, { category: y.label, ...b, commands: m });
963
963
  return xe({ ...d, children: x });
964
964
  }, [o, u, n, l]), h = Dn.get(o);
965
- return e(Re, { ref: i, commands: t, commandHook: n, createPopupPanel: p, label: h.label, tooltip: "Insert Function", icon: R(Dn.get(o)?.icon ?? e(Rc, {})), ...s });
965
+ return e(Re, { ref: i, commands: t, commandHook: n, createPopupPanel: p, label: h.label, tooltip: "Insert Function", icon: D(Dn.get(o)?.icon ?? e(Rc, {})), ...s });
966
966
  }));
967
- lu.displayName = "InsertFunctionCommandPopupButton";
968
- const su = Y(J((r, i) => {
967
+ cu.displayName = "InsertFunctionCommandPopupButton";
968
+ const du = Y(J((r, i) => {
969
969
  const { commands: o, category: t, commandHook: n, ...l } = r, c = He(o, ["insertFunction"]), [g, a] = U([]), [s, u] = U(!1);
970
970
  ue(() => {
971
971
  (async () => {
@@ -979,73 +979,73 @@ const su = Y(J((r, i) => {
979
979
  };
980
980
  for (let y = 0; y < p; y++) {
981
981
  const b = g[y];
982
- h[y] = e(iu, { command: d, formulaFunction: b, handleInsert: m }, `formula-${b.getName()}-${y}`);
982
+ h[y] = e(su, { command: d, formulaFunction: b, handleInsert: m }, `formula-${b.getName()}-${y}`);
983
983
  }
984
984
  return xe({ ...l, children: e(A, { ref: i, sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: p > 0 ? e(se, { children: e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: h }) }) : null }) });
985
985
  })), zi = ae.createContext(null);
986
986
  zi.displayName = "HookFormContext";
987
987
  const Wi = () => ae.useContext(zi);
988
988
  typeof window < "u" ? ae.useLayoutEffect : ae.useEffect;
989
- const cu = Y(J((r, i) => {
989
+ const pu = Y(J((r, i) => {
990
990
  const { disabled: o, style: t, className: n, sx: l, defaultInput: c, value: g, formName: a, formOptions: s, onChangeInput: u, onValidate: p, onKeyDown: h, ...d } = r, m = Wi(), y = a && m ? m.register(a, s) : null, [b, x] = U(""), [f, w] = U(""), [v, C] = U(g);
991
991
  ue(() => {
992
992
  C(g), w("");
993
993
  }, [g]);
994
- const k = te((D) => {
994
+ const k = te((P) => {
995
995
  let S = "";
996
996
  try {
997
- C(D), p?.(D), u?.(D);
998
- } catch (P) {
999
- S = P.message ?? "Invalid Name";
997
+ C(P), p?.(P), u?.(P);
998
+ } catch (R) {
999
+ S = R.message ?? "Invalid Name";
1000
1000
  }
1001
1001
  a && m && (S ? m.setError(a, { message: S }) : m.clearErrors(a)), w(S);
1002
- }, [g, p, u]), T = te(async (D) => {
1003
- D.keyCode === be.Escape && b !== g && (k(b), m?.setValue(a, b), m?.clearErrors(a), D.stopPropagation()), h?.(D);
1004
- }, [h, b, g, m]), I = te((D) => {
1005
- x(D.target.value ?? "");
1006
- }, []), N = te((D) => {
1007
- x(""), y?.onBlur(D);
1008
- }, []), B = G((D) => {
1009
- k(D.target.value), y?.onChange(D);
1002
+ }, [g, p, u]), T = te(async (P) => {
1003
+ P.keyCode === be.Escape && b !== g && (k(b), m?.setValue(a, b), m?.clearErrors(a), P.stopPropagation()), h?.(P);
1004
+ }, [h, b, g, m]), I = te((P) => {
1005
+ x(P.target.value ?? "");
1006
+ }, []), N = te((P) => {
1007
+ x(""), y?.onBlur(P);
1008
+ }, []), B = G((P) => {
1009
+ k(P.target.value), y?.onChange(P);
1010
1010
  }, [y]);
1011
- return e(sr, { sx: { paddingTop: (D) => D.spacing(1.5), minWidth: 135, width: "100%", ...l }, size: "small", ref: i, className: Ae("named-input", n), ...d, children: e(ui, { label: "Name", placeholder: c, onFocus: I, onBlur: N, inputRef: y?.ref, disabled: o, error: !!f, helperText: f || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (D) => D.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", name: a, spellCheck: !1, autoComplete: "off", readOnly: o, sx: { paddingTop: (D) => D.spacing(1.25), paddingBottom: (D) => D.spacing(0.75), backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` } } }, value: v ?? "", onChange: B, onKeyDownCapture: T, onContextMenu: (D) => {
1012
- D.stopPropagation();
1011
+ return e(sr, { sx: { paddingTop: (P) => P.spacing(1.5), minWidth: 135, width: "100%", ...l }, size: "small", ref: i, className: Ae("named-input", n), ...d, children: e(ui, { label: "Name", placeholder: c, onFocus: I, onBlur: N, inputRef: y?.ref, disabled: o, error: !!f, helperText: f || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (P) => P.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", name: a, spellCheck: !1, autoComplete: "off", readOnly: o, sx: { paddingTop: (P) => P.spacing(1.25), paddingBottom: (P) => P.spacing(0.75), backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` } } }, value: v ?? "", onChange: B, onKeyDownCapture: T, onContextMenu: (P) => {
1012
+ P.stopPropagation();
1013
1013
  } }) });
1014
1014
  }));
1015
- cu.displayName = "NamedInput";
1016
- const jo = (r) => r === null ? "" : r.toString(), du = Y(J((r, i) => {
1017
- const { formName: o, formOptions: t, disabled: n, style: l, className: c, sx: g, onKeyDown: a, value: s, onChangeInput: u, resolvedAddress: p, ...h } = r, d = Wi(), m = o && d ? d.register(o, t) : null, [y, b] = U(""), [x, f] = U(!1), [w, v] = U(() => jo(s));
1015
+ pu.displayName = "NamedInput";
1016
+ const $o = (r) => r === null ? "" : r.toString(), uu = Y(J((r, i) => {
1017
+ const { formName: o, formOptions: t, disabled: n, style: l, className: c, sx: g, onKeyDown: a, value: s, onChangeInput: u, resolvedAddress: p, ...h } = r, d = Wi(), m = o && d ? d.register(o, t) : null, [y, b] = U(""), [x, f] = U(!1), [w, v] = U(() => $o(s));
1018
1018
  ue(() => {
1019
- v(jo(s)), b(""), o && d && d.clearErrors(o), f(!1);
1019
+ v($o(s)), b(""), o && d && d.clearErrors(o), f(!1);
1020
1020
  }, [s]);
1021
1021
  const C = te((S) => {
1022
- let P = "";
1022
+ let R = "";
1023
1023
  try {
1024
1024
  v(S);
1025
- const L = jo(s), F = p(S);
1025
+ const L = $o(s), F = p(S);
1026
1026
  F.toString() !== L && u?.(F);
1027
1027
  } catch {
1028
- P = "Invalid Range";
1028
+ R = "Invalid Range";
1029
1029
  }
1030
- o && d && (P ? d.setError(o, { message: P }) : d.clearErrors(o)), b(P), f(!0);
1030
+ o && d && (R ? d.setError(o, { message: R }) : d.clearErrors(o)), b(R), f(!0);
1031
1031
  }, [w, u, o, d]), k = te(async (S) => {
1032
1032
  if (x && S.keyCode === be.Escape) {
1033
- const P = jo(s);
1034
- v(P), b(""), f(!1), S.stopPropagation();
1033
+ const R = $o(s);
1034
+ v(R), b(""), f(!1), S.stopPropagation();
1035
1035
  }
1036
1036
  a?.(S);
1037
1037
  }, [s, u, a, x]), T = te((S) => {
1038
1038
  m?.onBlur(S);
1039
1039
  }, [m]), I = G((S) => {
1040
1040
  C(S.target.value), m?.onChange(S);
1041
- }, [m]), [N, B] = U(!1), D = W(() => e(Cs, { tabIndex: -1, sx: { display: "flex", position: "relative", flex: "0" }, position: "end", children: e(Vc, { disabled: !0, selected: N, onSelectToggle: (S) => {
1041
+ }, [m]), [N, B] = U(!1), P = W(() => e(Cs, { tabIndex: -1, sx: { display: "flex", position: "relative", flex: "0" }, position: "end", children: e(Vc, { disabled: !0, selected: N, onSelectToggle: (S) => {
1042
1042
  B(S);
1043
- }, label: "Select Range", icon: R(e(_c, {})) }) }), [N]);
1044
- return e(sr, { sx: { paddingTop: (S) => S.spacing(1.5), minWidth: 135, width: "100%", ...g }, size: "small", ref: i, className: Ae("range-input", c), ...h, children: e(ui, { label: "Range", placeholder: "Enter Range", onBlur: T, disabled: n, error: !!y, inputRef: m?.ref, helperText: y || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (S) => S.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { spellCheck: !1, autoComplete: "off", readOnly: n, name: o, sx: { paddingTop: (S) => S.spacing(1.25), paddingBottom: (S) => S.spacing(0.75) } }, sx: { backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` }, endAdornment: D }, value: w ?? "", onChange: I, onKeyDownCapture: k, onContextMenu: (S) => {
1043
+ }, label: "Select Range", icon: D(e(_c, {})) }) }), [N]);
1044
+ return e(sr, { sx: { paddingTop: (S) => S.spacing(1.5), minWidth: 135, width: "100%", ...g }, size: "small", ref: i, className: Ae("range-input", c), ...h, children: e(ui, { label: "Range", placeholder: "Enter Range", onBlur: T, disabled: n, error: !!y, inputRef: m?.ref, helperText: y || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (S) => S.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { spellCheck: !1, autoComplete: "off", readOnly: n, name: o, sx: { paddingTop: (S) => S.spacing(1.25), paddingBottom: (S) => S.spacing(0.75) } }, sx: { backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` }, endAdornment: P }, value: w ?? "", onChange: I, onKeyDownCapture: k, onContextMenu: (S) => {
1045
1045
  S.stopPropagation();
1046
1046
  } }) });
1047
1047
  }));
1048
- du.displayName = "RangeInput";
1048
+ uu.displayName = "RangeInput";
1049
1049
  const $i = Y(J((r, i) => {
1050
1050
  const { sheet: o, className: t, debounceDelay: n = 220, sx: l, ...c } = r, [g, a] = U(() => o.getView().getZoomScale()), [s, u] = U(null), p = Se(0);
1051
1051
  _e(o, { onViewChange: () => {
@@ -1081,7 +1081,7 @@ const $i = Y(J((r, i) => {
1081
1081
  T.button === 0 && f();
1082
1082
  }, ...c, children: [e(At, { disableInteractive: !0, title: "Zoom Out", children: e(dt, { sx: { padding: "0", "&:hover:not([disabled])": { color: (T) => T.palette.primary.main }, "& svg": { width: "12px", height: "12px" } }, size: "small", onPointerDown: (T) => {
1083
1083
  T.button !== 0 ? T.preventDefault() : w(T);
1084
- }, children: e(Kd, {}) }) }), e(ks, { ref: x, sx: { flex: "1 1 100%", padding: "6px 0px !important", marginRight: "2px", marginLeft: "2px", "& .MuiSlider-thumb": { height: 14, width: 6, borderRadius: 0.75, "&.Mui-focusVisible": { boxShadow: (T) => `0px 0px 0px 3px ${aa(T.palette.primary.main, 0.16)}` }, "&:focus, &:hover, &.Mui-active": { boxShadow: (T) => `0px 0px 0px 2px ${aa(T.palette.primary.main, 0.16)}` } }, "& .MuiSlider-mark": { width: "1px", height: "8px" }, "& .MuiSlider-markActive": { backgroundColor: "currentColor" }, "& .MuiSlider-thumb:not(.MuiSlider-active)": { transition: s ? "left 260ms ease-in" : "none" } }, valueLabelDisplay: "auto", size: "small", track: !1, min: 0, step: 1, value: m, max: 200, marks: [{ value: 100 }], onAnimationEnd: () => u(!1), onWheel: (T) => {
1084
+ }, children: e(Zd, {}) }) }), e(ks, { ref: x, sx: { flex: "1 1 100%", padding: "6px 0px !important", marginRight: "2px", marginLeft: "2px", "& .MuiSlider-thumb": { height: 14, width: 6, borderRadius: 0.75, "&.Mui-focusVisible": { boxShadow: (T) => `0px 0px 0px 3px ${aa(T.palette.primary.main, 0.16)}` }, "&:focus, &:hover, &.Mui-active": { boxShadow: (T) => `0px 0px 0px 2px ${aa(T.palette.primary.main, 0.16)}` } }, "& .MuiSlider-mark": { width: "1px", height: "8px" }, "& .MuiSlider-markActive": { backgroundColor: "currentColor" }, "& .MuiSlider-thumb:not(.MuiSlider-active)": { transition: s ? "left 260ms ease-in" : "none" } }, valueLabelDisplay: "auto", size: "small", track: !1, min: 0, step: 1, value: m, max: 200, marks: [{ value: 100 }], onAnimationEnd: () => u(!1), onWheel: (T) => {
1085
1085
  h(d(Ze.findNextStep(o.getView().getZoomScale(), T.deltaY < 0, 10)));
1086
1086
  }, onKeyDown: (T) => {
1087
1087
  T.which === be.Down || T.which === be.Right ? (h(d(Ze.findNextStep(o.getView().getZoomScale(), !0, 10))), T.preventDefault()) : T.which === be.Up || T.which === be.Left ? (h(d(Ze.findNextStep(o.getView().getZoomScale(), !1, 10))), T.preventDefault()) : T.which !== be.Enter && T.which !== be.Escape || f();
@@ -1089,7 +1089,7 @@ const $i = Y(J((r, i) => {
1089
1089
  Math.abs(I - 100) < 3 ? h(100) : h(I);
1090
1090
  }, valueLabelFormat: (T, I) => `Zoom: ${Math.round(g)}%` }), e(At, { disableInteractive: !0, title: "Zoom In", children: e(dt, { sx: { padding: "0", "&:hover:not([disabled])": { color: (T) => T.palette.primary.main }, "& svg": { width: "12px", height: "12px" } }, size: "small", onPointerDown: (T) => {
1091
1091
  T.button !== 0 ? T.preventDefault() : v(T);
1092
- }, children: e(Yd, {}) }) }), $(A, { sx: { display: "flex", flexDirection: "row" }, children: [e(A, { sx: { minWidth: "8px" } }), e(Oe, { noWrap: !0, component: "div", onClick: () => {
1092
+ }, children: e(Jd, {}) }) }), $(A, { sx: { display: "flex", flexDirection: "row" }, children: [e(A, { sx: { minWidth: "8px" } }), e(Oe, { noWrap: !0, component: "div", onClick: () => {
1093
1093
  h(100);
1094
1094
  }, sx: { cursor: "pointer", display: "flex", flex: "1 1 100%", fontSize: "0.70rem", marginLeft: "2px", marginRight: "2px", userSelect: "none", justifyContent: "center", width: k }, children: e("div", { children: Math.round(g) + "%" }) })] })] });
1095
1095
  }));
@@ -1111,18 +1111,18 @@ const ji = Y(J((r, i) => {
1111
1111
  return $(A, { ref: a, sx: { display: "flex", alignItems: "stretch", flexDirection: "row", flex: "0", paddingLeft: "12px", paddingRight: "12px", gap: "8px", paddingTop: "1px", minHeight: "calc(1em + 8px)", overflow: p ? "visible" : "hidden", boxShadow: `0px -1px 0px ${n.header.edgeStrokeFill}`, ...o }, onMouseOver: () => h(!0), onMouseLeave: () => h(!1), ...g, children: [l, e("div", { style: { flex: "1 1 100%", display: "flex", alignItems: "end", overflow: "hidden" }, children: e(Oe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", color: (d) => d.palette.text.secondary }, variant: "caption", children: u }) }), c ? e(A, { sx: { display: "flex", alignItems: "center" }, children: c }) : null, e(re, { style: { marginTop: "6px", marginBottom: "6px" } }), e($i, { sx: { paddingLeft: "4px", minWidth: "175px" }, sheet: t })] });
1112
1112
  }));
1113
1113
  ji.displayName = "StatusBar";
1114
- var Co = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1115
- function jm(r) {
1114
+ var vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1115
+ function _m(r) {
1116
1116
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
1117
1117
  }
1118
- var xa, ya, Pn, wa, Sa, Vo = { exports: {} }, uo = {}, mo = { exports: {} }, va = {}, Ca = { exports: {} };
1119
- function pu() {
1118
+ var xa, ya, Pn, wa, Sa, jo = { exports: {} }, po = {}, uo = { exports: {} }, va = {}, Ca = { exports: {} };
1119
+ function mu() {
1120
1120
  return ya ? xa : (ya = 1, xa = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1121
1121
  }
1122
- function uu() {
1122
+ function gu() {
1123
1123
  if (wa) return Pn;
1124
1124
  wa = 1;
1125
- var r = pu();
1125
+ var r = mu();
1126
1126
  function i() {
1127
1127
  }
1128
1128
  function o() {
@@ -1143,9 +1143,9 @@ function uu() {
1143
1143
  }, Pn;
1144
1144
  }
1145
1145
  function mn() {
1146
- return Sa || (Sa = 1, Ca.exports = uu()()), Ca.exports;
1146
+ return Sa || (Sa = 1, Ca.exports = gu()()), Ca.exports;
1147
1147
  }
1148
- var ka, _o = { exports: {} }, Ta, We = {}, xt = {};
1148
+ var ka, Vo = { exports: {} }, Ta, We = {}, xt = {};
1149
1149
  function gn() {
1150
1150
  return Ta || (Ta = 1, Object.defineProperty(xt, "__esModule", { value: !0 }), xt.dontSetMe = function(r, i, o) {
1151
1151
  if (r[i]) return new Error(`Invalid prop ${i} passed to ${o} - do not set this, set it on the child.`);
@@ -1327,14 +1327,14 @@ function Vi() {
1327
1327
  }
1328
1328
  return lt;
1329
1329
  }
1330
- var Ra, Ma, Ia, Na, go = {}, Uo = {};
1330
+ var Ra, Ma, Ia, Na, mo = {}, _o = {};
1331
1331
  function _i() {
1332
- return Ra || (Ra = 1, Object.defineProperty(Uo, "__esModule", { value: !0 }), Uo.default = function() {
1333
- }), Uo;
1332
+ return Ra || (Ra = 1, Object.defineProperty(_o, "__esModule", { value: !0 }), _o.default = function() {
1333
+ }), _o;
1334
1334
  }
1335
- function mu() {
1336
- if (Ma) return go;
1337
- Ma = 1, Object.defineProperty(go, "__esModule", { value: !0 }), go.default = void 0;
1335
+ function hu() {
1336
+ if (Ma) return mo;
1337
+ Ma = 1, Object.defineProperty(mo, "__esModule", { value: !0 }), mo.default = void 0;
1338
1338
  var r = (function(d, m) {
1339
1339
  if (typeof WeakMap == "function") var y = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap();
1340
1340
  return (function(x, f) {
@@ -1435,15 +1435,15 @@ function mu() {
1435
1435
  return r.cloneElement(r.Children.only(this.props.children), { onMouseDown: this.onMouseDown, onMouseUp: this.onMouseUp, onTouchEnd: this.onTouchEnd });
1436
1436
  }
1437
1437
  };
1438
- return go.default = h, a(h, "displayName", "DraggableCore"), a(h, "propTypes", { allowAnyClick: i.default.bool, allowMobileScroll: i.default.bool, children: i.default.node.isRequired, disabled: i.default.bool, enableUserSelectHack: i.default.bool, offsetParent: function(d, m) {
1438
+ return mo.default = h, a(h, "displayName", "DraggableCore"), a(h, "propTypes", { allowAnyClick: i.default.bool, allowMobileScroll: i.default.bool, children: i.default.node.isRequired, disabled: i.default.bool, enableUserSelectHack: i.default.bool, offsetParent: function(d, m) {
1439
1439
  if (d[m] && d[m].nodeType !== 1) throw new Error("Draggable's offsetParent must be a DOM Node.");
1440
1440
  }, grid: i.default.arrayOf(i.default.number), handle: i.default.string, cancel: i.default.string, nodeRef: i.default.object, onStart: i.default.func, onDrag: i.default.func, onStop: i.default.func, onMouseDown: i.default.func, scale: i.default.number, className: l.dontSetMe, style: l.dontSetMe, transform: l.dontSetMe }), a(h, "defaultProps", { allowAnyClick: !1, allowMobileScroll: !1, disabled: !1, enableUserSelectHack: !0, onStart: function() {
1441
1441
  }, onDrag: function() {
1442
1442
  }, onStop: function() {
1443
1443
  }, onMouseDown: function() {
1444
- }, scale: 1 }), go;
1444
+ }, scale: 1 }), mo;
1445
1445
  }
1446
- function gu() {
1446
+ function fu() {
1447
1447
  return Ia || (Ia = 1, (function(r) {
1448
1448
  Object.defineProperty(r, "__esModule", { value: !0 }), Object.defineProperty(r, "DraggableCore", { enumerable: !0, get: function() {
1449
1449
  return a.default;
@@ -1462,7 +1462,7 @@ function gu() {
1462
1462
  return k;
1463
1463
  })(m, y);
1464
1464
  })(ae), o = u(mn()), t = u(Kt), n = (function() {
1465
- if (ka) return _o.exports;
1465
+ if (ka) return Vo.exports;
1466
1466
  function m(b) {
1467
1467
  var x, f, w = "";
1468
1468
  if (typeof b == "string" || typeof b == "number") w += b;
@@ -1476,8 +1476,8 @@ function gu() {
1476
1476
  for (var b, x, f = 0, w = "", v = arguments.length; f < v; f++) (b = arguments[f]) && (x = m(b)) && (w && (w += " "), w += x);
1477
1477
  return w;
1478
1478
  }
1479
- return ka = 1, _o.exports = y, _o.exports.clsx = y, _o.exports;
1480
- })(), l = yr(), c = Vi(), g = gn(), a = u(mu()), s = u(_i());
1479
+ return ka = 1, Vo.exports = y, Vo.exports.clsx = y, Vo.exports;
1480
+ })(), l = yr(), c = Vi(), g = gn(), a = u(hu()), s = u(_i());
1481
1481
  function u(m) {
1482
1482
  return m && m.__esModule ? m : { default: m };
1483
1483
  }
@@ -1548,26 +1548,26 @@ function gu() {
1548
1548
  }
1549
1549
  render() {
1550
1550
  const { axis: y, bounds: b, children: x, defaultPosition: f, defaultClassName: w, defaultClassNameDragging: v, defaultClassNameDragged: C, position: k, positionOffset: T, scale: I, ...N } = this.props;
1551
- let B = {}, D = null;
1552
- const S = !k || this.state.dragging, P = k || f, L = { x: (0, c.canDragX)(this) && S ? this.state.x : P.x, y: (0, c.canDragY)(this) && S ? this.state.y : P.y };
1553
- this.state.isElementSVG ? D = (0, l.createSVGTransform)(L, T) : B = (0, l.createCSSTransform)(L, T);
1551
+ let B = {}, P = null;
1552
+ const S = !k || this.state.dragging, R = k || f, L = { x: (0, c.canDragX)(this) && S ? this.state.x : R.x, y: (0, c.canDragY)(this) && S ? this.state.y : R.y };
1553
+ this.state.isElementSVG ? P = (0, l.createSVGTransform)(L, T) : B = (0, l.createCSSTransform)(L, T);
1554
1554
  const F = (0, n.clsx)(x.props.className || "", w, { [v]: this.state.dragging, [C]: this.state.dragged });
1555
- return i.createElement(a.default, p({}, N, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), i.cloneElement(i.Children.only(x), { className: F, style: { ...x.props.style, ...B }, transform: D }));
1555
+ return i.createElement(a.default, p({}, N, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), i.cloneElement(i.Children.only(x), { className: F, style: { ...x.props.style, ...B }, transform: P }));
1556
1556
  }
1557
1557
  }
1558
1558
  r.default = d, h(d, "displayName", "Draggable"), h(d, "propTypes", { ...a.default.propTypes, axis: o.default.oneOf(["both", "x", "y", "none"]), bounds: o.default.oneOfType([o.default.shape({ left: o.default.number, right: o.default.number, top: o.default.number, bottom: o.default.number }), o.default.string, o.default.oneOf([!1])]), defaultClassName: o.default.string, defaultClassNameDragging: o.default.string, defaultClassNameDragged: o.default.string, defaultPosition: o.default.shape({ x: o.default.number, y: o.default.number }), positionOffset: o.default.shape({ x: o.default.oneOfType([o.default.number, o.default.string]), y: o.default.oneOfType([o.default.number, o.default.string]) }), position: o.default.shape({ x: o.default.number, y: o.default.number }), className: g.dontSetMe, style: g.dontSetMe, transform: g.dontSetMe }), h(d, "defaultProps", { ...a.default.defaultProps, axis: "both", bounds: !1, defaultClassName: "react-draggable", defaultClassNameDragging: "react-draggable-dragging", defaultClassNameDragged: "react-draggable-dragged", defaultPosition: { x: 0, y: 0 }, scale: 1 });
1559
1559
  })(va)), va;
1560
1560
  }
1561
1561
  function Ui() {
1562
- if (Na) return mo.exports;
1562
+ if (Na) return uo.exports;
1563
1563
  Na = 1;
1564
- const { default: r, DraggableCore: i } = gu();
1565
- return mo.exports = r, mo.exports.default = r, mo.exports.DraggableCore = i, mo.exports;
1564
+ const { default: r, DraggableCore: i } = fu();
1565
+ return uo.exports = r, uo.exports.default = r, uo.exports.DraggableCore = i, uo.exports;
1566
1566
  }
1567
- var Fa, Go = {};
1568
- function hu() {
1569
- if (Fa) return Go;
1570
- Fa = 1, Go.__esModule = !0, Go.cloneElement = function(l, c) {
1567
+ var Fa, Uo = {};
1568
+ function bu() {
1569
+ if (Fa) return Uo;
1570
+ Fa = 1, Uo.__esModule = !0, Uo.cloneElement = function(l, c) {
1571
1571
  return c.style && l.props.style && (c.style = t(t({}, l.props.style), c.style)), c.className && l.props.className && (c.className = l.props.className + " " + c.className), i.default.cloneElement(l, c);
1572
1572
  };
1573
1573
  var r, i = (r = ae) && r.__esModule ? r : { default: r };
@@ -1607,12 +1607,12 @@ function hu() {
1607
1607
  return typeof s == "symbol" ? s : String(s);
1608
1608
  })(c)) in l ? Object.defineProperty(l, c, { value: g, enumerable: !0, configurable: !0, writable: !0 }) : l[c] = g, l;
1609
1609
  }
1610
- return Go;
1610
+ return Uo;
1611
1611
  }
1612
- var Oa, Aa, ho = {};
1612
+ var Oa, Aa, go = {};
1613
1613
  function Gi() {
1614
- if (Oa) return ho;
1615
- Oa = 1, ho.__esModule = !0, ho.resizableProps = void 0;
1614
+ if (Oa) return go;
1615
+ Oa = 1, go.__esModule = !0, go.resizableProps = void 0;
1616
1616
  var r, i = (r = mn()) && r.__esModule ? r : { default: r };
1617
1617
  Ui();
1618
1618
  var o = { axis: i.default.oneOf(["both", "x", "y", "none"]), className: i.default.string, children: i.default.element.isRequired, draggableOpts: i.default.shape({ allowAnyClick: i.default.bool, cancel: i.default.string, children: i.default.node, disabled: i.default.bool, enableUserSelectHack: i.default.bool, offsetParent: i.default.node, grid: i.default.arrayOf(i.default.number), handle: i.default.string, nodeRef: i.default.object, onStart: i.default.func, onDrag: i.default.func, onStop: i.default.func, onMouseDown: i.default.func, scale: i.default.number }), height: function() {
@@ -1624,11 +1624,11 @@ function Gi() {
1624
1624
  var c, g = n[0];
1625
1625
  return g.axis === "both" || g.axis === "x" ? (c = i.default.number).isRequired.apply(c, n) : i.default.number.apply(i.default, n);
1626
1626
  } };
1627
- return ho.resizableProps = o, ho;
1627
+ return go.resizableProps = o, go;
1628
1628
  }
1629
1629
  function qi() {
1630
- if (Aa) return uo;
1631
- Aa = 1, uo.__esModule = !0, uo.default = void 0;
1630
+ if (Aa) return po;
1631
+ Aa = 1, po.__esModule = !0, po.default = void 0;
1632
1632
  var r = (function(h, d) {
1633
1633
  if (h && h.__esModule) return h;
1634
1634
  if (h === null || typeof h != "object" && typeof h != "function") return { default: h };
@@ -1640,7 +1640,7 @@ function qi() {
1640
1640
  f && (f.get || f.set) ? Object.defineProperty(y, x, f) : y[x] = h[x];
1641
1641
  }
1642
1642
  return y.default = h, m && m.set(h, y), y;
1643
- })(ae), i = Ui(), o = hu(), t = Gi(), n = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
1643
+ })(ae), i = Ui(), o = bu(), t = Gi(), n = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
1644
1644
  function l(h) {
1645
1645
  if (typeof WeakMap != "function") return null;
1646
1646
  var d = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
@@ -1717,8 +1717,8 @@ function qi() {
1717
1717
  var T = this.props.width / this.props.height, I = x - this.props.width, N = f - this.props.height;
1718
1718
  Math.abs(I) > Math.abs(N * T) ? f = x / T : x = f * T;
1719
1719
  }
1720
- var B = x, D = f, S = this.slack || [0, 0], P = S[0], L = S[1];
1721
- return x += P, f += L, v && (x = Math.max(v[0], x), f = Math.max(v[1], f)), C && (x = Math.min(C[0], x), f = Math.min(C[1], f)), this.slack = [P + (B - x), L + (D - f)], [x, f];
1720
+ var B = x, P = f, S = this.slack || [0, 0], R = S[0], L = S[1];
1721
+ return x += R, f += L, v && (x = Math.max(v[0], x), f = Math.max(v[1], f)), C && (x = Math.min(C[0], x), f = Math.min(C[1], f)), this.slack = [R + (B - x), L + (P - f)], [x, f];
1722
1722
  }, b.resizeHandler = function(x, f) {
1723
1723
  var w = this;
1724
1724
  return function(v, C) {
@@ -1726,8 +1726,8 @@ function qi() {
1726
1726
  x === "onResizeStart" && w.resetData();
1727
1727
  var N = (w.props.axis === "both" || w.props.axis === "x") && f !== "n" && f !== "s", B = (w.props.axis === "both" || w.props.axis === "y") && f !== "e" && f !== "w";
1728
1728
  if (N || B) {
1729
- var D = f[0], S = f[f.length - 1], P = k.getBoundingClientRect();
1730
- w.lastHandleRect != null && (S === "w" && (T += P.left - w.lastHandleRect.left), D === "n" && (I += P.top - w.lastHandleRect.top)), w.lastHandleRect = P, S === "w" && (T = -T), D === "n" && (I = -I);
1729
+ var P = f[0], S = f[f.length - 1], R = k.getBoundingClientRect();
1730
+ w.lastHandleRect != null && (S === "w" && (T += R.left - w.lastHandleRect.left), P === "n" && (I += R.top - w.lastHandleRect.top)), w.lastHandleRect = R, S === "w" && (T = -T), P === "n" && (I = -I);
1731
1731
  var L = w.props.width + (N ? T / w.props.transformScale : 0), F = w.props.height + (B ? I / w.props.transformScale : 0), V = w.runConstraints(L, F);
1732
1732
  L = V[0], F = V[1];
1733
1733
  var M = L !== w.props.width || F !== w.props.height, E = typeof w.props[x] == "function" ? w.props[x] : null;
@@ -1747,8 +1747,8 @@ function qi() {
1747
1747
  f.transformScale;
1748
1748
  var T = (function(I, N) {
1749
1749
  if (I == null) return {};
1750
- var B, D, S = {}, P = Object.keys(I);
1751
- for (D = 0; D < P.length; D++) B = P[D], N.indexOf(B) >= 0 || (S[B] = I[B]);
1750
+ var B, P, S = {}, R = Object.keys(I);
1751
+ for (P = 0; P < R.length; P++) B = R[P], N.indexOf(B) >= 0 || (S[B] = I[B]);
1752
1752
  return S;
1753
1753
  })(f, n);
1754
1754
  return (0, o.cloneElement)(w, a(a({}, T), {}, { className: (v ? v + " " : "") + "react-resizable", children: [].concat(w.props.children, k.map(function(I) {
@@ -1757,12 +1757,12 @@ function qi() {
1757
1757
  })) }));
1758
1758
  }, y;
1759
1759
  })(r.Component);
1760
- return uo.default = p, p.propTypes = t.resizableProps, p.defaultProps = { axis: "both", handleSize: [20, 20], lockAspectRatio: !1, minConstraints: [20, 20], maxConstraints: [1 / 0, 1 / 0], resizeHandles: ["se"], transformScale: 1 }, uo;
1760
+ return po.default = p, p.propTypes = t.resizableProps, p.defaultProps = { axis: "both", handleSize: [20, 20], lockAspectRatio: !1, minConstraints: [20, 20], maxConstraints: [1 / 0, 1 / 0], resizeHandles: ["se"], transformScale: 1 }, po;
1761
1761
  }
1762
- var Ba, La, fo = {};
1763
- function fu() {
1764
- if (Ba) return fo;
1765
- Ba = 1, fo.__esModule = !0, fo.default = void 0;
1762
+ var Ba, La, ho = {};
1763
+ function xu() {
1764
+ if (Ba) return ho;
1765
+ Ba = 1, ho.__esModule = !0, ho.default = void 0;
1766
1766
  var r = (function(d, m) {
1767
1767
  if (d && d.__esModule) return d;
1768
1768
  if (d === null || typeof d != "object" && typeof d != "function") return { default: d };
@@ -1853,25 +1853,25 @@ function fu() {
1853
1853
  x.onResize;
1854
1854
  var v = x.onResizeStart, C = x.onResizeStop, k = x.draggableOpts, T = x.minConstraints, I = x.maxConstraints, N = x.lockAspectRatio, B = x.axis;
1855
1855
  x.width, x.height;
1856
- var D = x.resizeHandles, S = x.style, P = x.transformScale, L = (function(F, V) {
1856
+ var P = x.resizeHandles, S = x.style, R = x.transformScale, L = (function(F, V) {
1857
1857
  if (F == null) return {};
1858
1858
  var M, E, K = {}, Q = Object.keys(F);
1859
1859
  for (E = 0; E < Q.length; E++) M = Q[E], V.indexOf(M) >= 0 || (K[M] = F[M]);
1860
1860
  return K;
1861
1861
  })(x, n);
1862
- return r.createElement(o.default, { axis: B, draggableOpts: k, handle: f, handleSize: w, height: this.state.height, lockAspectRatio: N, maxConstraints: I, minConstraints: T, onResizeStart: v, onResize: this.onResize, onResizeStop: C, resizeHandles: D, transformScale: P, width: this.state.width }, r.createElement("div", g({}, L, { style: s(s({}, S), {}, { width: this.state.width + "px", height: this.state.height + "px" }) })));
1862
+ return r.createElement(o.default, { axis: B, draggableOpts: k, handle: f, handleSize: w, height: this.state.height, lockAspectRatio: N, maxConstraints: I, minConstraints: T, onResizeStart: v, onResize: this.onResize, onResizeStop: C, resizeHandles: P, transformScale: R, width: this.state.width }, r.createElement("div", g({}, L, { style: s(s({}, S), {}, { width: this.state.width + "px", height: this.state.height + "px" }) })));
1863
1863
  }, b;
1864
1864
  })(r.Component);
1865
- return fo.default = h, h.propTypes = s(s({}, t.resizableProps), {}, { children: i.default.element }), fo;
1865
+ return ho.default = h, h.propTypes = s(s({}, t.resizableProps), {}, { children: i.default.element }), ho;
1866
1866
  }
1867
- var bu = (La || (La = 1, Vo.exports = function() {
1867
+ var yu = (La || (La = 1, jo.exports = function() {
1868
1868
  throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
1869
- }, Vo.exports.Resizable = qi().default, Vo.exports.ResizableBox = fu().default), Vo.exports);
1869
+ }, jo.exports.Resizable = qi().default, jo.exports.ResizableBox = xu().default), jo.exports);
1870
1870
  function Rn(r, i) {
1871
1871
  if (typeof r == "function") return r(i);
1872
1872
  r && (r.current = i);
1873
1873
  }
1874
- var Fo = parseInt(xs.split(".")[0], 10) >= 19 ? function(r) {
1874
+ var No = parseInt(xs.split(".")[0], 10) >= 19 ? function(r) {
1875
1875
  return (i) => {
1876
1876
  const o = [];
1877
1877
  for (const t of r) {
@@ -1888,7 +1888,7 @@ var Fo = parseInt(xs.split(".")[0], 10) >= 19 ? function(r) {
1888
1888
  };
1889
1889
  };
1890
1890
  const Xi = Y(J((r, i) => {
1891
- const { disabled: o, names: t, workbook: n, restoreFocus: l, readonly: c = !1, disabled: g = !1, commandPopupButtonProps: a, sx: s, notifier: u, ...p } = r, [h, d] = U(null), [m, y] = U(() => n.getSelectedRanges().getCoords()), [b, x] = U(!1), { reference: f } = oo({ parentFloat: a?.parentFloat }), [w, v] = U(() => c || !n.getProtection().isStructureAllowed()), C = () => h?.text ?? "", [k, T] = U(C), I = te(() => {
1891
+ const { disabled: o, names: t, workbook: n, restoreFocus: l, readonly: c = !1, disabled: g = !1, commandPopupButtonProps: a, sx: s, notifier: u, ...p } = r, [h, d] = U(null), [m, y] = U(() => n.getSelectedRanges().getCoords()), [b, x] = U(!1), { reference: f } = to({ parentFloat: a?.parentFloat }), [w, v] = U(() => c || !n.getProtection().isStructureAllowed()), C = () => h?.text ?? "", [k, T] = U(C), I = te(() => {
1892
1892
  if (f?.closeAll(), !k) {
1893
1893
  const X = C();
1894
1894
  return T(C()), X;
@@ -1934,21 +1934,21 @@ const Xi = Y(J((r, i) => {
1934
1934
  }
1935
1935
  let ie = null;
1936
1936
  ie = ne?.length > 0 ? ne[0].getName() : n.getSelectedSheet().getSelectedRange().toString(), d({ text: ie });
1937
- }, [n, m]), [B, D] = U(() => t?.getItems() ?? null);
1937
+ }, [n, m]), [B, P] = U(() => t?.getItems() ?? null);
1938
1938
  _e(t, { onCollectionChange(_) {
1939
- D(t.getItems()), N();
1939
+ P(t.getItems()), N();
1940
1940
  }, onClose(_) {
1941
- D([]);
1941
+ P([]);
1942
1942
  } }), ue(() => {
1943
1943
  T(C());
1944
1944
  }, [h, m]);
1945
- const [S, P] = U(n?.getSelectedSheet());
1945
+ const [S, R] = U(n?.getSelectedSheet());
1946
1946
  _e(n, { onProtectionChange: (_) => {
1947
1947
  v(c || !_.getProtection().isStructureAllowed());
1948
1948
  }, onSheetsChange: (_) => {
1949
- P(_?.getSelectedSheet());
1949
+ R(_?.getSelectedSheet());
1950
1950
  }, onViewChange(_) {
1951
- P(_?.getSelectedSheet());
1951
+ R(_?.getSelectedSheet());
1952
1952
  } });
1953
1953
  const [L, F] = U(null), V = te(Ze.debounce(N, L ? 320 : 0), []);
1954
1954
  _e(S.getSelection(), { onChange: () => {
@@ -2003,27 +2003,27 @@ const Xi = Y(J((r, i) => {
2003
2003
  const Be = ie[Fe], Ye = Be.getRanges();
2004
2004
  if (!Ye || Be.isHidden()) continue;
2005
2005
  const ve = Be.getType();
2006
- ve !== ie[Fe - 1]?.getType() && (Fe > 0 && ee.push(e(re, { orientation: "horizontal" }, `type-divider-${ee.length}`)), ee.push(e(to, { variant: "subtitle2", sx: { paddingLeft: "16px" }, children: Be.getType() === "reference" ? "Ranges" : "Tables" }, `type-header-${ee.length}`))), ve === "reference" ? ee.push(Pe(ct, { ...ne, key: "named-" + ee.length, popupCommandKeys: X, popupScope: "namedItem", scope: "namedItem", commandState: Be, commands: a?.commands, label: Be.getName(), quickCommand: "selectNamed", disabled: !Be.getRanges() || g, icon: ($e) => {
2006
+ ve !== ie[Fe - 1]?.getType() && (Fe > 0 && ee.push(e(re, { orientation: "horizontal" }, `type-divider-${ee.length}`)), ee.push(e(eo, { variant: "subtitle2", sx: { paddingLeft: "16px" }, children: Be.getType() === "reference" ? "Ranges" : "Tables" }, `type-header-${ee.length}`))), ve === "reference" ? ee.push(Pe(ct, { ...ne, key: "named-" + ee.length, popupCommandKeys: X, popupScope: "namedItem", scope: "namedItem", commandState: Be, commands: a?.commands, label: Be.getName(), quickCommand: "selectNamed", disabled: !Be.getRanges() || g, icon: ($e) => {
2007
2007
  switch ($e.key()) {
2008
2008
  case "editNamedReference":
2009
- return R(e(qc, {}));
2009
+ return D(e(qc, {}));
2010
2010
  case "deleteNamedReference":
2011
- return R(e(Gc, {}));
2011
+ return D(e(Gc, {}));
2012
2012
  default:
2013
- return R(e(Uc, {}));
2013
+ return D(e(Uc, {}));
2014
2014
  }
2015
- } })) : ve === "table" && ee.push(Pe(ct, { ...ne, key: "namedItem-" + ee.length, popupCommandKeys: z, popupScope: "namedItem", scope: "namedItem", commands: a?.commands, commandState: Be, label: Be.getName(), quickCommand: "selectNamed", disabled: !Ye || g, icon: ($e) => ($e.key(), R(e(an, {}))) }));
2015
+ } })) : ve === "table" && ee.push(Pe(ct, { ...ne, key: "namedItem-" + ee.length, popupCommandKeys: z, popupScope: "namedItem", scope: "namedItem", commands: a?.commands, commandState: Be, label: Be.getName(), quickCommand: "selectNamed", disabled: !Ye || g, icon: ($e) => ($e.key(), D(e(rn, {}))) }));
2016
2016
  }
2017
- const Le = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...p, children: [w ? null : e(O, { ...ne, scope: "namedItem", command: a?.commands.getCommand("addNamedReference"), icon: R(e(Xc, {})) }), ee && ee.length > 0 ? $(se, { children: [w ? null : e(re, { orientation: "horizontal" }), e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: ee })] }) : null] });
2017
+ const Le = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...p, children: [w ? null : e(O, { ...ne, scope: "namedItem", command: a?.commands.getCommand("addNamedReference"), icon: D(e(Xc, {})) }), ee && ee.length > 0 ? $(se, { children: [w ? null : e(re, { orientation: "horizontal" }), e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: ee })] }) : null] });
2018
2018
  return xe({ ..._, children: Le });
2019
2019
  }, [n, B, t, h, w]), q = zt(i, () => ({ focus(_) {
2020
2020
  M.current?.focus(_);
2021
2021
  } }), []);
2022
- return e(A, { className: "outer", sx: { minWidth: 120, flex: "1 1 100%", display: "flex", alignItems: "center", justifyContent: "start", ...s }, ref: Fo([q, i]), ...p, children: e(vt, { className: "outer-button", sx: { display: "flex", flex: "1 1 100%", "& .tooltip-wrapper": { display: "flex", flex: "1 1 100%", width: "100%", height: "27px" }, ...s }, buttonProps: { sx: { backgroundColor: (_) => _.palette.background.paper, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` } }, tabIndex: -1, outlined: { color: (_) => o ? _.palette.action.disabled : he(_.palette.divider, 0.2) }, parentFloat: f, createPopupPanel: Q, onPopupOpen: () => x(!0), onPopupClose: () => x(!1), createTooltip: ({ children: _ }, ne) => e(rt, { title: ne || b ? "" : "Name Box", disabled: ne, leaveDelay: 0, sx: { opacity: ne || b ? 0 : 1 }, children: _ }), createQuickButton: E }) });
2022
+ return e(A, { className: "outer", sx: { minWidth: 120, flex: "1 1 100%", display: "flex", alignItems: "center", justifyContent: "start", ...s }, ref: No([q, i]), ...p, children: e(vt, { className: "outer-button", sx: { display: "flex", flex: "1 1 100%", "& .tooltip-wrapper": { display: "flex", flex: "1 1 100%", width: "100%", height: "27px" }, ...s }, buttonProps: { sx: { backgroundColor: (_) => _.palette.background.paper, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` } }, tabIndex: -1, outlined: { color: (_) => o ? _.palette.action.disabled : he(_.palette.divider, 0.2) }, parentFloat: f, createPopupPanel: Q, onPopupOpen: () => x(!0), onPopupClose: () => x(!1), createTooltip: ({ children: _ }, ne) => e(rt, { title: ne || b ? "" : "Name Box", disabled: ne, leaveDelay: 0, sx: { opacity: ne || b ? 0 : 1 }, children: _ }), createQuickButton: E }) });
2023
2023
  }));
2024
2024
  Xi.displayName = "NamedCollectionEditor";
2025
- const xu = (r, i) => e(Xi, { ref: i, ...r }), Ki = Y(J((r, i) => {
2026
- const { sx: o, workbook: t, sheetElement: n, gridStyle: l, showNamedCollectionEditor: c = !0, NamedCollectionEditorProps: g, renderNamedCollectionEditor: a = xu, disabled: s, commands: u, ...p } = r, [h, d] = U(t?.getSelectedSheet());
2025
+ const wu = (r, i) => e(Xi, { ref: i, ...r }), Ki = Y(J((r, i) => {
2026
+ const { sx: o, workbook: t, sheetElement: n, gridStyle: l, showNamedCollectionEditor: c = !0, NamedCollectionEditorProps: g, renderNamedCollectionEditor: a = wu, disabled: s, commands: u, ...p } = r, [h, d] = U(t?.getSelectedSheet());
2027
2027
  _e(t, { onSheetsChange: (z) => {
2028
2028
  d(z?.getSelectedSheet());
2029
2029
  }, onViewChange(z) {
@@ -2035,43 +2035,43 @@ const xu = (r, i) => e(Xi, { ref: i, ...r }), Ki = Y(J((r, i) => {
2035
2035
  } }), _e(h, { onProtectionChange() {
2036
2036
  y(h.getSelection().getCoords().cell);
2037
2037
  } });
2038
- const v = f.current?.getLineHeight() ?? 20, [C, k] = U(v), [T, I] = U(5), [N, B] = U(1), D = te((z, { size: ee }) => {
2038
+ const v = f.current?.getLineHeight() ?? 20, [C, k] = U(v), [T, I] = U(5), [N, B] = U(1), P = te((z, { size: ee }) => {
2039
2039
  z.preventDefault(), z.stopPropagation();
2040
2040
  const me = Math.floor(ee.height / v);
2041
2041
  k(me * v + 1), me > 1 && I(me);
2042
2042
  }, [v]), S = te((z, { size: ee }) => {
2043
2043
  const me = Math.floor(ee.height / v);
2044
2044
  B(me);
2045
- }, [v]), P = un(), L = P.getMode();
2045
+ }, [v]), R = un(), L = R.getMode();
2046
2046
  let F = null;
2047
2047
  L?.key === "edit" && (F = L.args?.stateAndCoords);
2048
2048
  const V = W(() => {
2049
2049
  let z = F?.editState;
2050
- return z || (z = lp(() => h.getRange(m).getCell())), e(A, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "row", gap: 4 }, children: e(sp, { ref: f, activeCoords: m, sheet: h, onFocus: () => {
2050
+ return z || (z = cp(() => h.getRange(m).getCell())), e(A, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "row", gap: 4 }, children: e(dp, { ref: f, activeCoords: m, sheet: h, onFocus: () => {
2051
2051
  n?.startEdit({ autoFocus: !1, editMode: !0, cell: m });
2052
2052
  }, defaultTextStyle: w, useRichStyling: !1, disabled: x, onChangeEdit: (ee) => {
2053
2053
  if (ee.dirty !== void 0) {
2054
2054
  const me = { sheet: h, coords: m, editState: ee };
2055
- P.setMode((Le) => ({ ...Le, args: { ...Le?.args, stateAndCoords: me } }));
2055
+ R.setMode((Le) => ({ ...Le, args: { ...Le?.args, stateAndCoords: me } }));
2056
2056
  }
2057
2057
  }, editState: z, commands: u, onCancelEdit: () => {
2058
2058
  n?.cancelEdit(), n?.focus();
2059
2059
  }, onSubmitEdit: () => {
2060
2060
  n?.submitEdit(), n?.focus();
2061
2061
  }, linesVisible: N }) });
2062
- }, [h, F, m, N, n]), M = Se(null), E = W(() => c ? a({ names: t.getNames(), workbook: t, ...g }, M) : null, [a, g, c, h, t, x]), K = W(() => $(Po, { elevation: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 0, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, border: (z) => `solid ${x ? z.palette.action.disabled : he(z.palette.divider, 0.2)} 1px` }, children: [e(bt, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, color: "warning", "aria-label": "cancel-formula-edit", icon: R(e(Kc, {})), tooltipProps: { label: "Cancel", simple: !0 }, disabled: x || F === null, onMouseDown: (z) => {
2062
+ }, [h, F, m, N, n]), M = Se(null), E = W(() => c ? a({ names: t.getNames(), workbook: t, ...g }, M) : null, [a, g, c, h, t, x]), K = W(() => $(Do, { elevation: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 0, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, border: (z) => `solid ${x ? z.palette.action.disabled : he(z.palette.divider, 0.2)} 1px` }, children: [e(bt, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, color: "warning", "aria-label": "cancel-formula-edit", icon: D(e(Kc, {})), tooltipProps: { label: "Cancel", simple: !0 }, disabled: x || F === null, onMouseDown: (z) => {
2063
2063
  z.button === 0 && z.preventDefault();
2064
2064
  }, onClick: () => {
2065
2065
  n.cancelEdit();
2066
- } }), e(bt, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, color: "primary", "aria-label": "commit-formula-edit", icon: R(e(Yc, {})), tooltipProps: { label: "Enter", simple: !0 }, disabled: x || F === null, onMouseDown: (z) => {
2066
+ } }), e(bt, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, color: "primary", "aria-label": "commit-formula-edit", icon: D(e(Yc, {})), tooltipProps: { label: "Enter", simple: !0 }, disabled: x || F === null, onMouseDown: (z) => {
2067
2067
  z.button === 0 && z.preventDefault();
2068
2068
  }, onClick: () => {
2069
2069
  n.submitEdit();
2070
- } }), e(bt, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, disabled: !0, "aria-label": "commit-formula-function", icon: R(e(Zc, { sx: { transform: "scale(0.85)" } })), tooltipProps: { label: "Insert Function", simple: !0 }, onMouseDown: (z) => {
2070
+ } }), e(bt, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, disabled: !0, "aria-label": "commit-formula-function", icon: D(e(Zc, { sx: { transform: "scale(0.85)" } })), tooltipProps: { label: "Insert Function", simple: !0 }, onMouseDown: (z) => {
2071
2071
  z.button === 0 && z.preventDefault();
2072
- } })] }), [x, F]), Q = at(), [q, _] = U(!1), ne = W(() => $(A, { sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", gap: (z) => z.spacing(0.5), alignItems: "start" }, children: [K, $(Po, { elevation: 0, sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", fontFamily: (z) => z.typography.fontFamily, fontSize: 11 * Bt.getDeviceScale(), "& .editor-placement": { top: "2px !important" }, boxShadow: "none", borderRadius: (z) => `${z.shape.borderRadius}px`, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, border: (z) => `solid ${x ? z.palette.action.disabled : he(z.palette.divider, 0.2)} 1px`, "& textarea": { color: (z) => x ? `${z.palette.text.disabled} !important` : z.palette.text.primary }, "& .react-resizable-handle": { width: "100%", height: "8px", backgroundColor: "transparent", boxSizing: "content-box", zIndex: 1e3 }, "& .react-resizable-handle-s": { position: "absolute", bottom: "-10px", cursor: "s-resize" } }, onFocus: () => _(!0), onBlur: () => _(!1), onMouseDown: (z) => {
2072
+ } })] }), [x, F]), Q = at(), [q, _] = U(!1), ne = W(() => $(A, { sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", gap: (z) => z.spacing(0.5), alignItems: "start" }, children: [K, $(Do, { elevation: 0, sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", fontFamily: (z) => z.typography.fontFamily, fontSize: 11 * Bt.getDeviceScale(), "& .editor-placement": { top: "2px !important" }, boxShadow: "none", borderRadius: (z) => `${z.shape.borderRadius}px`, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, border: (z) => `solid ${x ? z.palette.action.disabled : he(z.palette.divider, 0.2)} 1px`, "& textarea": { color: (z) => x ? `${z.palette.text.disabled} !important` : z.palette.text.primary }, "& .react-resizable-handle": { width: "100%", height: "8px", backgroundColor: "transparent", boxSizing: "content-box", zIndex: 1e3 }, "& .react-resizable-handle-s": { position: "absolute", bottom: "-10px", cursor: "s-resize" } }, onFocus: () => _(!0), onBlur: () => _(!1), onMouseDown: (z) => {
2073
2073
  z.target?.classList.contains("react-resizable-handle") && z.preventDefault();
2074
- }, children: [e(A, { className: "formula-editor", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", alignSelf: "baseline", paddingLeft: (z) => z.spacing(1), paddingRight: (z) => z.spacing(1) }, children: e(bu.ResizableBox, { height: C, draggableOpts: { grid: [v, v] }, minConstraints: [v, v], maxConstraints: [15 * v, 15 * v], onResize: S, onResizeStop: D, resizeHandles: ["s"], axis: "y", style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: V }) }), e(bt, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, "aria-label": "toggle-expand-formula-edit", icon: R(e(N > 1 ? Zd : Ci, {})), tooltipProps: { label: (N > 1 ? "Collapse" : "Expand") + " Formula Bar", simple: !0 }, onMouseDown: (z) => {
2074
+ }, children: [e(A, { className: "formula-editor", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", alignSelf: "baseline", paddingLeft: (z) => z.spacing(1), paddingRight: (z) => z.spacing(1) }, children: e(yu.ResizableBox, { height: C, draggableOpts: { grid: [v, v] }, minConstraints: [v, v], maxConstraints: [15 * v, 15 * v], onResize: S, onResizeStop: P, resizeHandles: ["s"], axis: "y", style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: V }) }), e(bt, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, "aria-label": "toggle-expand-formula-edit", icon: D(e(N > 1 ? Qd : Ci, {})), tooltipProps: { label: (N > 1 ? "Collapse" : "Expand") + " Formula Bar", simple: !0 }, onMouseDown: (z) => {
2075
2075
  z.button === 0 && z.preventDefault();
2076
2076
  }, onClick: () => {
2077
2077
  const z = N > 1 ? 1 : T;
@@ -2084,15 +2084,15 @@ const Yi = Y(J((r, i) => {
2084
2084
  const { filter: o, commands: t, disabled: n, sx: l, floatReference: c, ...g } = r, a = W(() => ({}), []), s = W(() => ({ commandHook: { beforeExecute: (h, d) => c.closeAll(), onExecute() {
2085
2085
  }, onError() {
2086
2086
  console.log("onError");
2087
- } }, disabled: n, parentFloat: c }), [n, c]), u = W(() => ({ ...a, ...s, variant: le.Menuitem }), [a, s]), p = $(se, { children: [e(O, { ...u, command: t.getCommand("sortAscending"), icon: R(e(Vn, {})) }), e(O, { ...u, command: t.getCommand("sortDescending"), icon: R(e(hi, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...u, command: t.getCommand("autoFilterClear"), icon: R(e(ur, {})) }), []] });
2087
+ } }, disabled: n, parentFloat: c }), [n, c]), u = W(() => ({ ...a, ...s, variant: le.Menuitem }), [a, s]), p = $(se, { children: [e(O, { ...u, command: t.getCommand("sortAscending"), icon: D(e(Vn, {})) }), e(O, { ...u, command: t.getCommand("sortDescending"), icon: D(e(hi, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...u, command: t.getCommand("autoFilterClear"), icon: D(e(ur, {})) }), []] });
2088
2088
  return e(A, { ref: i, sx: { paddingTop: "4px", paddingBottom: "4px", display: "flex", flexDirection: "column", ...l }, ...g, children: p });
2089
2089
  }));
2090
2090
  Yi.displayName = "FilterColumnMenu";
2091
- const yu = Y(J((r, i) => {
2091
+ const Su = Y(J((r, i) => {
2092
2092
  const { children: o, className: t, disabled: n, style: l, filter: c, ...g } = r, a = zt(i, () => ({ isFilters: () => !0 }), []);
2093
2093
  return e("div", { ref: a, className: Ae("filters", t), style: { position: "relative", display: "flex", flexDirection: "column", alignItems: "center", gap: "8px", ...l }, ...g, children: $("div", { style: { flex: "1 1 100%", display: "flex", minHeight: "100px", minWidth: "220px", alignItems: "center", border: "grey solid 1px", padding: "4px 4px", overflow: "hidden", flexDirection: "column", justifyContent: "space-evenly", marginTop: "4px", marginBottom: "4px", marginLeft: "16px", marginRight: "16px" }, children: [e("div", { children: c.getName() }), e("div", { children: "Filter Widget" })] }) });
2094
2094
  }));
2095
- yu.displayName = "Filters";
2095
+ Su.displayName = "Filters";
2096
2096
  const Zi = Y(J((r, i) => {
2097
2097
  const { children: o, sheet: t, style: n, className: l, value: c, index: g, editing: a, editable: s, disabled: u, selectedIndex: p, dragging: h, borderColor: d, borderWidth: m, activeColor: y, background: b = "white", tabRadius: x = 4, gridTheme: f, ...w } = r, [v, C] = U(() => !!t && t.getProtection().isLocked()), [k, T] = U(() => t ? t.getTabColor() : null);
2098
2098
  _e(t, { onProtectionChange: () => {
@@ -2103,15 +2103,15 @@ const Zi = Y(J((r, i) => {
2103
2103
  T(t.getTabColor());
2104
2104
  } });
2105
2105
  const I = at(), N = p === g;
2106
- let B = null, D = null;
2106
+ let B = null, P = null;
2107
2107
  if (k || h) {
2108
2108
  let L = b;
2109
- k ? (D = k.toBlackOrWhite().toCSS(), L = k?.toCSS()) : N || (L = I.palette.background.paper), B = e(A, { sx: { position: "absolute", boxSizing: "border-box", top: "3px", left: "4px", right: "4.5px", bottom: "1.5px", opacity: N ? "50%" : "100%", borderRadius: "4px", border: (F) => N ? `${b} solid 1px` : `${F.palette.divider} solid 1px`, background: N && k ? `linear-gradient(0deg, ${L} 0%, transparent)` : L } });
2109
+ k ? (P = k.toBlackOrWhite().toCSS(), L = k?.toCSS()) : N || (L = I.palette.background.paper), B = e(A, { sx: { position: "absolute", boxSizing: "border-box", top: "3px", left: "4px", right: "4.5px", bottom: "1.5px", opacity: N ? "50%" : "100%", borderRadius: "4px", border: (F) => N ? `${b} solid 1px` : `${F.palette.divider} solid 1px`, background: N && k ? `linear-gradient(0deg, ${L} 0%, transparent)` : L } });
2110
2110
  }
2111
2111
  let S = null;
2112
2112
  typeof d == "string" ? S = d : d?.toCSS && (S = d.toCSS());
2113
- const P = N ? e(A, { sx: { width: "100%", borderRadius: "4px", minWidth: "4px", height: "2px", backgroundColor: (L) => L.palette.primary.main } }) : null;
2114
- return e(Ei, { theme: N ? f ?? I : I, children: e(A, { ref: i, className: Ae(l), sx: { ...n, display: "flex", flexDirection: "column", minHeight: "0px", fontWeight: N ? "700" : "400", fontSize: "0.85rem", letterSpacing: "0", lineHeight: "1", textTransform: "none", minWidth: "unset", cursor: h ? "grabbing" : void 0 }, ...w, children: e(op, { style: { flex: "1 1 100%", display: "flex", flexDirection: "row" }, radius: x, strokeColor: N ? S : "transparent", children: e(nn, { sx: { textTransform: "none", borderRadius: "0px", minHeight: "0px", paddingLeft: "11px", paddingRight: "12px", paddingTop: "3px", flex: "1 1 100%", paddingBottom: "3px", fontWeight: N ? "700" : "400", fontSize: "0.85rem", letterSpacing: "0", transition: "none", cursor: h ? "grabbing" : void 0, color: N ? "primary" : D || "text.secondary", backgroundColor: N ? b : "transparent", "&:hover:not([disabled])": { backgroundColor: N ? b : "transparent" }, "& input": { color: (L) => `${L.palette.text.primary}`, textAlign: "center", fontWeight: "500" }, marginTop: "0px", minWidth: "unset" }, disabled: u, disableRipple: a, component: "div", children: $(se, { children: [B, $(A, { sx: { zIndex: "1", display: "flex", flexDirection: "row", alignItems: "center" }, children: [$(A, { sx: { display: "flex", flexDirection: "column", alignItems: "center", rowGap: "1px", lineHeight: "1", marginTop: N ? void 0 : "1px" }, children: [o, P] }), v ? e(dn, { sx: { scale: "0.80", marginLeft: "2px", width: "22px", height: "22px" }, color: "secondary" }) : e(A, { sx: { minHeight: "22px" } })] })] }) }, c + ":" + g) }) }) });
2113
+ const R = N ? e(A, { sx: { width: "100%", borderRadius: "4px", minWidth: "4px", height: "2px", backgroundColor: (L) => L.palette.primary.main } }) : null;
2114
+ return e(Ei, { theme: N ? f ?? I : I, children: e(A, { ref: i, className: Ae(l), sx: { ...n, display: "flex", flexDirection: "column", minHeight: "0px", fontWeight: N ? "700" : "400", fontSize: "0.85rem", letterSpacing: "0", lineHeight: "1", textTransform: "none", minWidth: "unset", cursor: h ? "grabbing" : void 0 }, ...w, children: e(rp, { style: { flex: "1 1 100%", display: "flex", flexDirection: "row" }, radius: x, strokeColor: N ? S : "transparent", children: e(on, { sx: { textTransform: "none", borderRadius: "0px", minHeight: "0px", paddingLeft: "11px", paddingRight: "12px", paddingTop: "3px", flex: "1 1 100%", paddingBottom: "3px", fontWeight: N ? "700" : "400", fontSize: "0.85rem", letterSpacing: "0", transition: "none", cursor: h ? "grabbing" : void 0, color: N ? "primary" : P || "text.secondary", backgroundColor: N ? b : "transparent", "&:hover:not([disabled])": { backgroundColor: N ? b : "transparent" }, "& input": { color: (L) => `${L.palette.text.primary}`, textAlign: "center", fontWeight: "500" }, marginTop: "0px", minWidth: "unset" }, disabled: u, disableRipple: a, component: "div", children: $(se, { children: [B, $(A, { sx: { zIndex: "1", display: "flex", flexDirection: "row", alignItems: "center" }, children: [$(A, { sx: { display: "flex", flexDirection: "column", alignItems: "center", rowGap: "1px", lineHeight: "1", marginTop: N ? void 0 : "1px" }, children: [o, R] }), v ? e(dn, { sx: { scale: "0.80", marginLeft: "2px", width: "22px", height: "22px" }, color: "secondary" }) : e(A, { sx: { minHeight: "22px" } })] })] }) }, c + ":" + g) }) }) });
2115
2115
  }));
2116
2116
  Zi.displayName = "SheetTab";
2117
2117
  const Ji = Y(J((r, i) => {
@@ -2128,7 +2128,7 @@ const Ji = Y(J((r, i) => {
2128
2128
  Promise.resolve(g.closeAll()).then(() => {
2129
2129
  u?.startEdit(t);
2130
2130
  });
2131
- }, disabled: c || !h.isStructureAllowed(), parentFloat: g, children: ["Rename", l !== "sheet" ? " Sheet" : ""] }), e(O, { command: n.getCommand("duplicateSheet"), ...b, variant: le.Menuitem }), e(O, { command: n?.getCommand("protectionSheetToggle"), ...b, variant: le.Menuitem, icon: e(dn, {}) }), e(Mo, { variant: le.Menuitem, command: n.getCommand("formatSheetTabColor"), icon: e(dr, {}), panelProps: { disableAlpha: !0, autoColorLabel: "No Tab Color", autoColorPosition: Eo.End }, parentFloat: g }), e(re, { orientation: "horizontal" }), e(O, { command: n.getCommand("hideSheet"), ...b, variant: le.Menuitem, icon: R(e(wi, {})) })] });
2131
+ }, disabled: c || !h.isStructureAllowed(), parentFloat: g, children: ["Rename", l !== "sheet" ? " Sheet" : ""] }), e(O, { command: n.getCommand("duplicateSheet"), ...b, variant: le.Menuitem }), e(O, { command: n?.getCommand("protectionSheetToggle"), ...b, variant: le.Menuitem, icon: e(dn, {}) }), e(Ro, { variant: le.Menuitem, command: n.getCommand("formatSheetTabColor"), icon: e(dr, {}), panelProps: { disableAlpha: !0, autoColorLabel: "No Tab Color", autoColorPosition: To.End }, parentFloat: g }), e(re, { orientation: "horizontal" }), e(O, { command: n.getCommand("hideSheet"), ...b, variant: le.Menuitem, icon: D(e(wi, {})) })] });
2132
2132
  return e(A, { ref: i, className: Ae("menu", s), sx: { ...a }, ...p, children: x });
2133
2133
  }));
2134
2134
  Ji.displayName = "SheetTabMenu";
@@ -2146,17 +2146,17 @@ const Qi = Y(J((r, i) => {
2146
2146
  if (f === Rt.Visibility.VeryHidden) continue;
2147
2147
  const w = y === x, v = x.getProtection().isLocked(), C = x.getTabColor(), k = t?.body.fill ?? "transparent";
2148
2148
  let T = null, I = null, N = k;
2149
- C && (N = C.toCSS(), w || (I = C.toBlackOrWhite().toCSS()), T = e(A, { sx: { position: "absolute", display: "flex", flexDirection: "column", top: "4px", left: "40px", right: "8px", bottom: "4px", background: w ? N : "transparent", borderRadius: "4px", border: `solid 1px ${t.header.edgeStrokeFill}` }, children: e(A, { sx: { flex: "1 1 100%", boxSizing: "content-box", opacity: w || f === Rt.Visibility.Hidden ? "50%" : "100%", border: (D) => w ? `${k} solid 1.5px` : `${D.palette.divider} solid 1px`, background: w && C ? `linear-gradient(0deg, ${N} 0%, ${k})` : N, borderRadius: "4px" } }) }));
2149
+ C && (N = C.toCSS(), w || (I = C.toBlackOrWhite().toCSS()), T = e(A, { sx: { position: "absolute", display: "flex", flexDirection: "column", top: "4px", left: "40px", right: "8px", bottom: "4px", background: w ? N : "transparent", borderRadius: "4px", border: `solid 1px ${t.header.edgeStrokeFill}` }, children: e(A, { sx: { flex: "1 1 100%", boxSizing: "content-box", opacity: w || f === Rt.Visibility.Hidden ? "50%" : "100%", border: (P) => w ? `${k} solid 1.5px` : `${P.palette.divider} solid 1px`, background: w && C ? `linear-gradient(0deg, ${N} 0%, ${k})` : N, borderRadius: "4px" } }) }));
2150
2150
  let B = null;
2151
- v && (B = e(dn, { color: "secondary" })), f !== Rt.Visibility.Visible && (B = R(e(wi, { style: { opacity: u.isStructureAllowed() ? 1 : 0.7 }, color: "secondary" }))), B && (B = e(A, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", ml: "16px", "& *": { lineHeight: "1em", fontSize: "1.3em" } }, children: B })), d.push(e(pt, { disabled: !u.isStructureAllowed() && f === Rt.Visibility.Hidden, sx: { color: (D) => {
2152
- let S = w ? D.palette.primary.main : D.palette.text.secondary;
2153
- return I && (S = I), f === Rt.Visibility.Hidden && (S = Qe(S, D.palette.action.disabledOpacity)), S;
2154
- }, borderLeft: (D) => `${w ? D.palette.primary.main : "transparent"} solid 2px`, paddingLeft: "4px", fontWeight: w ? "700" : "400", "&:hover": { fontWeight: "700" } }, icon: w ? e(sn, {}) : void 0, onMouseDown: (D) => D.preventDefault(), onMouseUp: () => {
2151
+ v && (B = e(dn, { color: "secondary" })), f !== Rt.Visibility.Visible && (B = D(e(wi, { style: { opacity: u.isStructureAllowed() ? 1 : 0.7 }, color: "secondary" }))), B && (B = e(A, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", ml: "16px", "& *": { lineHeight: "1em", fontSize: "1.3em" } }, children: B })), d.push(e(pt, { disabled: !u.isStructureAllowed() && f === Rt.Visibility.Hidden, sx: { color: (P) => {
2152
+ let S = w ? P.palette.primary.main : P.palette.text.secondary;
2153
+ return I && (S = I), f === Rt.Visibility.Hidden && (S = Qe(S, P.palette.action.disabledOpacity)), S;
2154
+ }, borderLeft: (P) => `${w ? P.palette.primary.main : "transparent"} solid 2px`, paddingLeft: "4px", fontWeight: w ? "700" : "400", "&:hover": { fontWeight: "700" } }, icon: w ? e(ln, {}) : void 0, onMouseDown: (P) => P.preventDefault(), onMouseUp: () => {
2155
2155
  Promise.resolve(n.closeAll()).then(() => {
2156
2156
  try {
2157
2157
  x.select();
2158
- } catch (D) {
2159
- console.error(D);
2158
+ } catch (P) {
2159
+ console.error(P);
2160
2160
  }
2161
2161
  });
2162
2162
  }, children: $(se, { children: [T, $(A, { sx: { paddingRight: "0px", paddingLeft: "4px", display: "flex", flexDirection: "row", flex: "1 1 100%", overflow: "hidden", alignItems: "center", zIndex: 2 }, children: [$(A, { className: "sheet-name", sx: { display: "flex", flexDirection: "column", paddingLeft: "8px", paddingRight: "8px", alignItems: "center" }, children: [x.getName(), e(A, { sx: { height: "0px", opacity: "0", fontWeight: "700" }, children: x.getName() })] }), B] })] }) }, "" + b));
@@ -2166,24 +2166,24 @@ const Qi = Y(J((r, i) => {
2166
2166
  return e(A, { ref: i, className: Ae("menu", c), ...g, children: h });
2167
2167
  }));
2168
2168
  Qi.displayName = "SheetsAllMenu";
2169
- let qo = !1, el = !1, Pt = null;
2169
+ let Go = !1, el = !1, Pt = null;
2170
2170
  const Ha = async (r) => {
2171
- const i = await vo.getDetails();
2171
+ const i = await So.getDetails();
2172
2172
  if (el || i.isEval()) {
2173
2173
  try {
2174
2174
  const o = top ?? window;
2175
- o.SheetXL || (o.SheetXL = Object.freeze({ getSelectedWorkbook: () => Pt?.getWorkbook(), getSelectedSheet: () => Pt?.getWorkbook().getSelectedSheet(), getSelectedRange: () => Pt?.getWorkbook().getSelectedRange(), getRange: (t) => Pt?.getWorkbook().getRange(t), getSelectedWorkbookElement: () => Pt, getLicenseManager: () => vo, moreExamples: () => {
2175
+ o.SheetXL || (o.SheetXL = Object.freeze({ getSelectedWorkbook: () => Pt?.getWorkbook(), getSelectedSheet: () => Pt?.getWorkbook().getSelectedSheet(), getSelectedRange: () => Pt?.getWorkbook().getSelectedRange(), getRange: (t) => Pt?.getWorkbook().getRange(t), getSelectedWorkbookElement: () => Pt, getLicenseManager: () => So, moreExamples: () => {
2176
2176
  console.table({ "SheetXL.getRange('Sheet1!e5:f6').setValues([[110, 220], [210, 220]])": { Summary: "Set an array of values." }, "SheetXL.getRange('a1:e5').setValue(100)": { Summary: "Set a single repeating value to a range." }, "SheetXL.getRange('Sheet1!e5:f6').getValues()": { Summary: "Get the values as a 2d array (see forEach)." }, "SheetXL.getSelectedRange().setValue(new Date())": { Summary: "Set current date/time using Javascript Date." }, "SheetXL.getSelectedRange().setValue('10/23/95')": { Summary: "Set current date/time using string." }, "SheetXL.getSelectedSheet().getUsedRange().getValues()": { Summary: "Get all of the values in a sheet." }, "SheetXL.getSelectedRange().updateStyle({ fill: 'accent4' })": { Summary: "Set fill to theme color 4." }, "SheetXL.getRange('E:L').updateStyle({ fill: 'accent1 lumMod 90 lumOff 40' })": { Summary: "Set some columns to a modified theme color." }, "SheetXL.getRange('e5:f10').updateStyle({ style: { border: 'double blue' }})": { Summary: "Set border." }, "SheetXL.getCell().getStyle().fill.toCSS()": { Summary: "Get the fill style as css for the selected cell." }, "SheetXL.getRange('a1:a3').autoFill('a1:a7')": { Summary: "Autofill down." }, "SheetXL.getRange('e7:i9').merge({ orientation: 'rows' })": { Summary: "Merge cells horizontally." }, "SheetXL.getSelectedRange().sort({ ascending: false, hasHeader: false })": { Summary: "Sort selected cells ascending with a header." }, "SheetXL.getSelectedRange().clear('all')": { Summary: "Clear the current range a different way." }, "SheetXL.getSelectedSheet().getTables().add('b2:e9')": { Summary: "Create a 4x8 table at b2 for current sheet." }, "SheetXL.getRange('a1:c3').copyFrom('e1:g3')": { Summary: "Copy cells." }, "SheetXL.getRange('c:t').getColumnHeaders().setSize(30)": { Summary: "Set the size of columns to 30 pixels." }, "SheetXL.getRange('2:3').delete()": { Summary: "Remove rows 2 and 3 and shift up." }, "SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg')": { Summary: "Add an image." }, "SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg', { bounds: { height: 100 } })": { Summary: "Add an image of height 100." }, "SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue(1.50).updateStyle({ numberFormat: '0%' }).autoFit(); }, 'Enter 150%')": { Summary: "Set value to 100 and numberformat to 0% as a single." }, "SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue('Remind Me Later').updateStyle({ namedStyle: 'Note'}).autoFit(); }, 'Set Reminder')": { Summary: "Set a value and style to Note style and autofit text." }, "SheetXL.getSelectedWorkbook().getNames().addReference('Small_Range', 'A2:E5');": { Summary: "Add a named range." }, "SheetXL.getSelectedWorkbook().getRange('a1:e5').addListener((e) => { console.log('got an update for:', e.getSource().toString()) })": { Summary: "Listen for updates at a range." } });
2177
2177
  } }));
2178
2178
  } catch (o) {
2179
- o instanceof DOMException || console.error(o), qo = !0;
2179
+ o instanceof DOMException || console.error(o), Go = !0;
2180
2180
  }
2181
- if (Pt !== r && (Pt = r, !qo)) try {
2182
- qo = !0, (top ?? window).SheetXL && (await vo._validate(!0), vo.wasPrinted() && (() => {
2181
+ if (Pt !== r && (Pt = r, !Go)) try {
2182
+ Go = !0, (top ?? window).SheetXL && (await So._validate(!0), So.wasPrinted() && (() => {
2183
2183
  Jt.consoleWithNoSource(`%cTip: You can access the API directly in the console.
2184
2184
  Try
2185
2185
  %c>%c SheetXL.getRange('b2:c3').setValues([[42, 'Hello Word'], [new Date(), true]]) %c
2186
- >%c SheetXL.moreExamples()`, "color:#ffa726;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;"), qo = !0;
2186
+ >%c SheetXL.moreExamples()`, "color:#ffa726;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;"), Go = !0;
2187
2187
  const o = document.getElementById("openEditorLink");
2188
2188
  o && o.addEventListener("click", (t) => {
2189
2189
  t.preventDefault(), console.log("openScriptEditor called from console");
@@ -2193,12 +2193,12 @@ Try
2193
2193
  o instanceof DOMException || console.error(o);
2194
2194
  }
2195
2195
  }
2196
- }, Vm = (r) => {
2196
+ }, Um = (r) => {
2197
2197
  el = r;
2198
2198
  };
2199
- var wu = function() {
2200
- }, tl = typeof window < "u", Su = tl ? St : ue, za = { x: 0, y: 0, width: 0, height: 0, top: 0, left: 0, bottom: 0, right: 0 };
2201
- const Io = tl && window.ResizeObserver !== void 0 ? function() {
2199
+ var vu = function() {
2200
+ }, tl = typeof window < "u", Cu = tl ? St : ue, za = { x: 0, y: 0, width: 0, height: 0, top: 0, left: 0, bottom: 0, right: 0 };
2201
+ const Mo = tl && window.ResizeObserver !== void 0 ? function() {
2202
2202
  var r = U(null), i = r[0], o = r[1], t = U(za), n = t[0], l = t[1], c = W(function() {
2203
2203
  return new window.ResizeObserver(function(g) {
2204
2204
  if (g[0]) {
@@ -2207,13 +2207,13 @@ const Io = tl && window.ResizeObserver !== void 0 ? function() {
2207
2207
  }
2208
2208
  });
2209
2209
  }, []);
2210
- return Su(function() {
2210
+ return Cu(function() {
2211
2211
  if (i) return c.observe(i), function() {
2212
2212
  c.disconnect();
2213
2213
  };
2214
2214
  }, [i]), [o, n];
2215
2215
  } : function() {
2216
- return [wu, za];
2216
+ return [vu, za];
2217
2217
  };
2218
2218
  function Yn() {
2219
2219
  return Yn = Object.assign ? Object.assign.bind() : function(r) {
@@ -2247,15 +2247,15 @@ function Wa(r, i) {
2247
2247
  const $a = !1, rl = ae.createContext(null);
2248
2248
  var al = function(r) {
2249
2249
  return r.scrollTop;
2250
- }, ko = "unmounted", Mt = "exited", It = "entering", qt = "entered", Jn = "exiting", ht = (function(r) {
2250
+ }, Co = "unmounted", Mt = "exited", It = "entering", qt = "entered", Jn = "exiting", ht = (function(r) {
2251
2251
  function i(t, n) {
2252
2252
  var l;
2253
2253
  l = r.call(this, t, n) || this;
2254
2254
  var c, g = n && !n.isMounting ? t.enter : t.appear;
2255
- return l.appearStatus = null, t.in ? g ? (c = Mt, l.appearStatus = It) : c = qt : c = t.unmountOnExit || t.mountOnEnter ? ko : Mt, l.state = { status: c }, l.nextCallback = null, l;
2255
+ return l.appearStatus = null, t.in ? g ? (c = Mt, l.appearStatus = It) : c = qt : c = t.unmountOnExit || t.mountOnEnter ? Co : Mt, l.state = { status: c }, l.nextCallback = null, l;
2256
2256
  }
2257
2257
  nl(i, r), i.getDerivedStateFromProps = function(t, n) {
2258
- return t.in && n.status === ko ? { status: Mt } : null;
2258
+ return t.in && n.status === Co ? { status: Mt } : null;
2259
2259
  };
2260
2260
  var o = i.prototype;
2261
2261
  return o.componentDidMount = function() {
@@ -2280,7 +2280,7 @@ var al = function(r) {
2280
2280
  }
2281
2281
  this.performEnter(t);
2282
2282
  } else this.performExit();
2283
- else this.props.unmountOnExit && this.state.status === Mt && this.setState({ status: ko });
2283
+ else this.props.unmountOnExit && this.state.status === Mt && this.setState({ status: Co });
2284
2284
  }, o.performEnter = function(t) {
2285
2285
  var n = this, l = this.props.enter, c = this.context ? this.context.isMounting : t, g = this.props.nodeRef ? [c] : [Kt.findDOMNode(this), c], a = g[0], s = g[1], u = this.getTimeouts(), p = c ? u.appear : u.enter;
2286
2286
  !t && !l || $a ? this.safeSetState({ status: qt }, function() {
@@ -2326,7 +2326,7 @@ var al = function(r) {
2326
2326
  } else setTimeout(this.nextCallback, 0);
2327
2327
  }, o.render = function() {
2328
2328
  var t = this.state.status;
2329
- if (t === ko) return null;
2329
+ if (t === Co) return null;
2330
2330
  var n = this.props, l = n.children;
2331
2331
  n.in, n.mountOnEnter, n.unmountOnExit, n.appear, n.enter, n.exit, n.timeout, n.addEndListener, n.onEnter, n.onEntering, n.onEntered, n.onExit, n.onExiting, n.onExited, n.nodeRef;
2332
2332
  var c = ol(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
@@ -2335,7 +2335,7 @@ var al = function(r) {
2335
2335
  })(ae.Component);
2336
2336
  function Vt() {
2337
2337
  }
2338
- ht.contextType = rl, ht.propTypes = {}, ht.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: Vt, onEntering: Vt, onEntered: Vt, onExit: Vt, onExiting: Vt, onExited: Vt }, ht.UNMOUNTED = ko, ht.EXITED = Mt, ht.ENTERING = It, ht.ENTERED = qt, ht.EXITING = Jn;
2338
+ ht.contextType = rl, ht.propTypes = {}, ht.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: Vt, onEntering: Vt, onEntered: Vt, onExit: Vt, onExiting: Vt, onExited: Vt }, ht.UNMOUNTED = Co, ht.EXITED = Mt, ht.ENTERING = It, ht.ENTERED = qt, ht.EXITING = Jn;
2339
2339
  var Mn = function(r, i) {
2340
2340
  return r && i && i.split(" ").forEach(function(o) {
2341
2341
  return n = o, void ((t = r).classList ? t.classList.remove(n) : typeof t.className == "string" ? t.className = Wa(t.className, n) : t.setAttribute("class", Wa(t.className && t.className.baseVal || "", n)));
@@ -2402,8 +2402,8 @@ const In = 0.12, ja = (r, i) => {
2402
2402
  o.headerSelect = { ...o.header, strokeFill: r.palette.primary.main, fill: Qe(l, 0.2), text: { ...o.header.text, fill: r.palette.primary.main }, dividerStrokeFill: Qe(l, 0.7) }, o.headerSelectAll = { ...o.headerSelect, fill: Qe(l, 0.9), text: { ...o.headerSelect.text, fill: r.palette.primary.contrastText }, edgeStrokeFill: o.headerSelect.strokeFill }, o.buttonSurface = { ...n, strokeFill: it(n.fill, In, i.palette?.mode), fill: i && i.palette.mode === "dark" && i.palette.mode !== r.palette.mode ? n.fill : it(n.fill, 0.055, i.palette?.mode), edgeStrokeFill: i.palette.mode === "dark" ? n.strokeFill : it(n.fill, 0.328, i.palette?.mode) }, o.headerSelection = { fill: r.palette?.primary?.main ? Qe(r.palette?.primary?.main, 0.1) : void 0, strokeFill: r.palette?.primary?.main }, o.headerSelectionInactive = { ...o.headerSelection, fill: r.palette?.divider ? Qe(r.palette?.divider, 0.05) : void 0, strokeFill: "transparent" };
2403
2403
  const c = i ?? r, g = c.palette.mode === "dark";
2404
2404
  return o.selection = { fill: c.palette?.primary?.main ? Qe(c.palette?.primary?.main, 0.1) : void 0, strokeFill: c.palette?.primary?.main }, o.selectionInactive = { ...o.selection, fill: c.palette?.divider ? Qe(c.palette?.divider, 0.05) : void 0, strokeFill: "transparent" }, o.selectionRemove = { ...o.selection, fill: Qe(c.palette.warning.light, 0.05), strokeFill: c.palette.warning.dark }, i && (o.body = t(i)), o.colorShadow = Qe(c.palette.action.active, 0.5), o.colorGrey = c.palette.action.active, o.filterDarkInvert = g ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", o;
2405
- }, No = Y(J((r, i) => {
2406
- const { children: o, sx: t, parentFloat: n, ...l } = r, c = zt(i, () => ({}), []), [g, a] = Io(), s = Se(null), u = Se(null), [p, h] = ae.useReducer((C) => C + 1, 0), [d, m] = U(null), [y, b] = U(null), [x, f] = U(null), { reference: w } = oo({ parentFloat: n, label: "overflow" });
2405
+ }, Io = Y(J((r, i) => {
2406
+ const { children: o, sx: t, parentFloat: n, ...l } = r, c = zt(i, () => ({}), []), [g, a] = Mo(), s = Se(null), u = Se(null), [p, h] = ae.useReducer((C) => C + 1, 0), [d, m] = U(null), [y, b] = U(null), [x, f] = U(null), { reference: w } = to({ parentFloat: n, label: "overflow" });
2407
2407
  St(() => {
2408
2408
  u.current = { refs: [] };
2409
2409
  const C = [], k = ae.Children.toArray(o);
@@ -2411,8 +2411,8 @@ const In = 0.12, ja = (r, i) => {
2411
2411
  k.forEach((I, N) => {
2412
2412
  C.push(e(A, { sx: { display: "flex" }, ref: (B) => {
2413
2413
  T++, T === k.length && h();
2414
- const D = { current: null };
2415
- D.current = B, u.current.refs[N] = D;
2414
+ const P = { current: null };
2415
+ P.current = B, u.current.refs[N] = P;
2416
2416
  }, children: I }, N));
2417
2417
  }), m(C);
2418
2418
  }, [o, a]), St(() => {
@@ -2420,28 +2420,28 @@ const In = 0.12, ja = (r, i) => {
2420
2420
  const C = u.current.refs, k = C ? C.length : 0;
2421
2421
  if (!c.current || k === 0) return b(null), void f(null);
2422
2422
  const T = c.current?.getBoundingClientRect(), I = [], N = [];
2423
- let B = 0, D = !1;
2424
- for (let P = 0; !D && P < k; P++) {
2425
- const L = C[P];
2423
+ let B = 0, P = !1;
2424
+ for (let R = 0; !P && R < k; R++) {
2425
+ const L = C[R];
2426
2426
  if (!L) continue;
2427
2427
  if (!L.current) {
2428
- D = !0;
2428
+ P = !0;
2429
2429
  continue;
2430
2430
  }
2431
2431
  const F = L.current.getBoundingClientRect();
2432
- B += F?.width, B > T.width && (D = !0);
2432
+ B += F?.width, B > T.width && (P = !0);
2433
2433
  }
2434
- if (!D) return b(null), void f([]);
2434
+ if (!P) return b(null), void f([]);
2435
2435
  const S = s.current?.getBoundingClientRect();
2436
2436
  B = 0;
2437
- for (let P = 0; P < k; P++) {
2438
- const L = C[P];
2437
+ for (let R = 0; R < k; R++) {
2438
+ const L = C[R];
2439
2439
  let F = !1;
2440
2440
  if (L.current) {
2441
2441
  const V = L.current.getBoundingClientRect();
2442
2442
  B += V?.width, B < T.width - S.width && (F = !0);
2443
2443
  }
2444
- F ? I.push(d[P]) : N.push(d[P]);
2444
+ F ? I.push(d[R]) : N.push(d[R]);
2445
2445
  }
2446
2446
  b(I.length > 0 ? I : null), f(N.length > 0 ? N : null);
2447
2447
  }, [o, d, a, w, p]);
@@ -2449,18 +2449,18 @@ const In = 0.12, ja = (r, i) => {
2449
2449
  const k = [], T = x.length;
2450
2450
  for (let N = 0; N < T; N++) {
2451
2451
  const B = ae.Children.toArray(x[N])[0];
2452
- ae.Children.toArray(B.props.children?.props?.children ?? B.props.children).forEach((D, S) => {
2453
- const P = D, L = { ...P.props, key: `overflow-${N}-${S}${P.key ?? ""}` };
2452
+ ae.Children.toArray(B.props.children?.props?.children ?? B.props.children).forEach((P, S) => {
2453
+ const R = P, L = { ...R.props, key: `overflow-${N}-${S}${R.key ?? ""}` };
2454
2454
  L.parentFloat && C && (L.parentFloat = C.floatReference);
2455
- const F = ae.cloneElement(P, L);
2455
+ const F = ae.cloneElement(R, L);
2456
2456
  k.push(F);
2457
2457
  });
2458
2458
  }
2459
2459
  const I = e(A, { className: "overflow-palette-popup-panel", sx: { display: "flex", flexDirection: "row", flexWrap: "wrap", rowGap: (N) => N.spacing(0.25), paddingTop: (N) => N.spacing(0.5), paddingBottom: (N) => N.spacing(0.5), paddingLeft: (N) => N.spacing(1), paddingRight: (N) => N.spacing(1), overflow: "hidden" }, children: k });
2460
2460
  return xe({ ...C, children: I });
2461
2461
  }, [x]);
2462
- return $(A, { className: "overflow-palette", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", width: "100%", maxWidth: "100%", ...t }, ref: Fo([c, g, i]), ...l, children: [e(A, { sx: { flexDirection: "row", display: "flex", maxWidth: "100%", flex: "1 1 100%" }, children: y ?? d }), e(A, { sx: { display: x !== null && x.length === 0 ? "none" : "flex", flex: "1 1 0" }, children: e(vt, { createPopupPanel: v, ref: s, parentFloat: w, createTooltip: ({ children: C }, k) => e(rt, { label: "More", description: "More toolbar options…", disabled: k, children: C }), icon: e(Jc, { children: e(Jd, {}) }) }) })] });
2463
- })), il = "https://unpkg.com/@sheetxl/scripting-templates/dist", vu = (r) => {
2462
+ return $(A, { className: "overflow-palette", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", width: "100%", maxWidth: "100%", ...t }, ref: No([c, g, i]), ...l, children: [e(A, { sx: { flexDirection: "row", display: "flex", maxWidth: "100%", flex: "1 1 100%" }, children: y ?? d }), e(A, { sx: { display: x !== null && x.length === 0 ? "none" : "flex", flex: "1 1 0" }, children: e(vt, { createPopupPanel: v, ref: s, parentFloat: w, createTooltip: ({ children: C }, k) => e(rt, { label: "More", description: "More toolbar options…", disabled: k, children: C }), icon: e(Jc, { children: e(ep, {}) }) }) })] });
2463
+ })), il = "https://unpkg.com/@sheetxl/scripting-templates/dist", ku = (r) => {
2464
2464
  if (r.metadata?.name) return r.metadata.name;
2465
2465
  let i = (r.path.split("/").pop() || "").replace(/\.[^/.]+$/, "");
2466
2466
  return r.metadata?.icon === "formula" ? i.toUpperCase() : (i = i.replace(/([a-z])([A-Z])/g, "$1 $2"), i.replace(/[-_]/g, " ").trim().split(/\s+/).map((o) => o.charAt(0).toUpperCase() + o.slice(1)).join(" "));
@@ -2481,14 +2481,14 @@ const In = 0.12, ja = (r, i) => {
2481
2481
  if (!a.ok) throw new Error(`Failed to fetch file at '${c.path}': ${a.statusText}`);
2482
2482
  const s = await a.text();
2483
2483
  let u = c.metadata;
2484
- return u?.title || (u = { title: vu(c), ...u }), { path: c.path, content: s, metadata: u };
2484
+ return u?.title || (u = { title: ku(c), ...u }), { path: c.path, content: s, metadata: u };
2485
2485
  } catch (g) {
2486
2486
  console.error(g.message);
2487
2487
  }
2488
2488
  return null;
2489
2489
  });
2490
2490
  return (await Promise.all(l)).filter((c) => c !== null);
2491
- }, Nn = { fontSize: "0.8rem", marginRight: "4px" }, Cu = Y((r) => {
2491
+ }, Nn = { fontSize: "0.8rem", marginRight: "4px" }, Tu = Y((r) => {
2492
2492
  const { disabled: i, snippet: o, description: t, handleInsert: n, sx: l, ...c } = r;
2493
2493
  let g;
2494
2494
  return g = o.metadata?.icon === "formula" ? e(Si, { sx: Nn }) : o.metadata?.icon === "macro" ? e(mr, { sx: Nn }) : e(ki, { sx: Nn }), e(pt, { sx: { maxWidth: "460px", display: "flex", "*": { lineHeight: "1.2" }, ...l }, disabled: i, icon: g, onMouseDown: (a) => {
@@ -2498,7 +2498,7 @@ const In = 0.12, ja = (r, i) => {
2498
2498
  }, onKeyDown: (a) => {
2499
2499
  a.keyCode !== be.Enter && a.keyCode !== be.Space || n(o);
2500
2500
  }, ...c, children: $(A, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: [e(Oe, { component: "div", children: o.metadata?.title ?? o.path }), e(Oe, { variant: "caption", component: "div", sx: { color: (a) => Qe(a.palette.text.secondary ?? a.palette.text.primary, 0.6), overflow: "hidden", textOverflow: "ellipsis" }, children: o.metadata?.summary })] }) });
2501
- }), ku = Y(J((r, i) => {
2501
+ }), Eu = Y(J((r, i) => {
2502
2502
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, scriptPath: c = il, ...g } = r, [a, s] = U([]), [u, p] = U(!0), h = He(o, ["executeSelectedScript"]), d = h[0]?.context?.();
2503
2503
  ue(() => {
2504
2504
  (async () => {
@@ -2518,16 +2518,16 @@ const In = 0.12, ja = (r, i) => {
2518
2518
  }, w = [];
2519
2519
  for (let C = 0; C < a.length; C++) {
2520
2520
  const k = a[C];
2521
- k && w.push(e(Cu, { handleInsert: f, snippet: k }, k.path));
2521
+ k && w.push(e(Tu, { handleInsert: f, snippet: k }, k.path));
2522
2522
  }
2523
- const v = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: [w.length > 0 ? $(se, { children: [e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: w }), e(re, { orientation: "horizontal" })] }) : null, Pe(O, { ...x, key: "help", command: o.getCommand("help"), icon: R(e(yi, {})) })] });
2523
+ const v = $(A, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: [w.length > 0 ? $(se, { children: [e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: w }), e(re, { orientation: "horizontal" })] }) : null, Pe(O, { ...x, key: "help", command: o.getCommand("help"), icon: D(e(yi, {})) })] });
2524
2524
  return xe({ ...y, children: v });
2525
2525
  }, [l, t, n, u, d]);
2526
- return e(Re, { ref: i, commands: o, disabled: l, commandHook: t, scope: n, label: "Insert Script", tooltip: "Inserts a script from a set of templates.", createPopupPanel: m, icon: R(e(Qc, {})), ...g });
2526
+ return e(Re, { ref: i, commands: o, disabled: l, commandHook: t, scope: n, label: "Insert Script", tooltip: "Inserts a script from a set of templates.", createPopupPanel: m, icon: D(e(Qc, {})), ...g });
2527
2527
  })), sl = Y(J((r, i) => {
2528
2528
  const { commands: o, parentFloat: t, commandButtonProps: n, ...l } = r, c = te((g) => {
2529
2529
  const { commandButtonProps: a, commandPopupProps: s } = g;
2530
- return e(se, { children: $("div", { style: { display: "flex", flex: "1 1 100%" }, children: [e("div", { children: e(No, { parentFloat: t, style: {}, children: e(O, { ...a, command: o.getCommand("saveScripts"), icon: R(e(ed, {})) }) }) }), e("div", { style: { flex: "1 1 100%" } }), e("div", { children: e(No, { parentFloat: t, style: {}, children: e(ku, { ...a, commands: o }) }) })] }) });
2530
+ return e(se, { children: $("div", { style: { display: "flex", flex: "1 1 100%" }, children: [e("div", { children: e(Io, { parentFloat: t, style: {}, children: e(O, { ...a, command: o.getCommand("saveScripts"), icon: D(e(ed, {})) }) }) }), e("div", { style: { flex: "1 1 100%" } }), e("div", { children: e(Io, { parentFloat: t, style: {}, children: e(Eu, { ...a, commands: o }) }) })] }) });
2531
2531
  }, [o]);
2532
2532
  return e(cn, { ref: i, commands: o, parentFloat: t, commandButtonProps: n, createToolbarPalette: c, ...l });
2533
2533
  }));
@@ -2557,7 +2557,7 @@ const Fn = { fontSize: "1rem" }, cl = Y(J((r, i) => {
2557
2557
  const w = f.metadata?.icon;
2558
2558
  return w === "macro" ? e(mr, { sx: Fn }) : w === "formula" ? e(Si, { sx: Fn }) : w === "autostart" ? e(ki, { sx: Fn }) : null;
2559
2559
  };
2560
- return $(A, { ref: i, className: Ae(l, "script-select"), sx: { background: (f) => f.palette.background.paper, zIndex: 1e3, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, ...n }, ...s, children: [$(A, { p: 3, className: "script-select-content", sx: { overflow: "auto", flex: "1 1 auto" }, children: [e(Oe, { variant: "h6", gutterBottom: !0, children: "Script Template" }), e(Oe, { variant: "body2", component: "div", color: "text.secondary", gutterBottom: !0, children: "Choose from a template to provide a starting point to automate tasks or create user defined functions." }), e(Oe, { variant: "body2", component: "div", color: "text.secondary", gutterBottom: !0, children: "Templates provide a foundation to customize and meet your specific needs." }), e(A, { sx: { display: "grid", gridTemplateColumns: `repeat(auto-fill, minmax(${c}px, 1fr))`, gap: `${a}px`, padding: 2, paddingLeft: "0px", paddingRight: "0px" }, children: u.map((f, w) => $(nn, { variant: "outlined", sx: { minWidth: c, minHeight: g, display: "flex", flexDirection: "column", justifyContent: "flex-start", alignItems: "flex-start", textAlign: "left", padding: 2, textTransform: "none", overflow: "hidden", ...w === 0 && { borderStyle: "dashed", marginBottom: "8px" }, ...w === 1 && { gridColumn: "1" } }, onClick: () => t?.(f), children: [$(A, { sx: { display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", width: "100%", marginBottom: 0.5 }, children: [e(Oe, { variant: "subtitle2", component: "div", children: f.metadata?.title || f.path.split("/").pop()?.replace(/\.\w+$/, "") || "Untitled" }), x(f)] }), f.metadata?.summary && e(Oe, { variant: "body2", component: "div", color: "text.secondary", sx: { overflow: "hidden", display: "flex", flexDirection: "column", textOverflow: "ellipsis", alignItems: "flex-start" }, children: f.metadata.summary })] }, `${f.path}-${w}`)) })] }), b] });
2560
+ return $(A, { ref: i, className: Ae(l, "script-select"), sx: { background: (f) => f.palette.background.paper, zIndex: 1e3, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, ...n }, ...s, children: [$(A, { p: 3, className: "script-select-content", sx: { overflow: "auto", flex: "1 1 auto" }, children: [e(Oe, { variant: "h6", gutterBottom: !0, children: "Script Template" }), e(Oe, { variant: "body2", component: "div", color: "text.secondary", gutterBottom: !0, children: "Choose from a template to provide a starting point to automate tasks or create user defined functions." }), e(Oe, { variant: "body2", component: "div", color: "text.secondary", gutterBottom: !0, children: "Templates provide a foundation to customize and meet your specific needs." }), e(A, { sx: { display: "grid", gridTemplateColumns: `repeat(auto-fill, minmax(${c}px, 1fr))`, gap: `${a}px`, padding: 2, paddingLeft: "0px", paddingRight: "0px" }, children: u.map((f, w) => $(on, { variant: "outlined", sx: { minWidth: c, minHeight: g, display: "flex", flexDirection: "column", justifyContent: "flex-start", alignItems: "flex-start", textAlign: "left", padding: 2, textTransform: "none", overflow: "hidden", ...w === 0 && { borderStyle: "dashed", marginBottom: "8px" }, ...w === 1 && { gridColumn: "1" } }, onClick: () => t?.(f), children: [$(A, { sx: { display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", width: "100%", marginBottom: 0.5 }, children: [e(Oe, { variant: "subtitle2", component: "div", children: f.metadata?.title || f.path.split("/").pop()?.replace(/\.\w+$/, "") || "Untitled" }), x(f)] }), f.metadata?.summary && e(Oe, { variant: "body2", component: "div", color: "text.secondary", sx: { overflow: "hidden", display: "flex", flexDirection: "column", textOverflow: "ellipsis", alignItems: "flex-start" }, children: f.metadata.summary })] }, `${f.path}-${w}`)) })] }), b] });
2561
2561
  }));
2562
2562
  cl.displayName = "TemplateSelectPanel";
2563
2563
  const dl = Y(J((r, i) => {
@@ -2582,7 +2582,7 @@ const dl = Y(J((r, i) => {
2582
2582
  if (K && K.length > 0) return K[0]?.focus?.(E), !0;
2583
2583
  }
2584
2584
  return k.current?.focus?.(E), !1;
2585
- }, [T, a, s]), D = W(() => e(Lt, { transitionDelay: "160ms", style: { position: "absolute", width: "100%", height: "100%" }, transparentBackground: !1 }), []), S = W(() => e(Po, { elevation: 1, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, marginLeft: (E) => E.spacing(0.5), marginRight: (E) => E.spacing(0.5), marginTop: (E) => E.spacing(1), marginBottom: (E) => E.spacing(1) }, children: e(sl, { commands: l }) }), [h, l]), P = W(() => e(A, { className: Ae("script-status-panel", "status-panel"), sx: { display: "flex", alignItems: "stretch", flexDirection: "row", flex: "0", paddingLeft: "12px", paddingRight: "12px", gap: "8px", paddingTop: "1px", minHeight: "calc(1em + 8px)", margin: 0, borderTop: `solid 1px ${h.palette.divider}` }, children: $("div", { style: { flex: "1 1 100%", display: "flex", alignItems: "center", flexDirection: "row", justifyContent: "center" }, children: [e(Oe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "1 1 100%", color: (E) => E.palette.text.secondary }, variant: "caption", children: b.message }), e(Oe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "none", color: (E) => E.palette.text.secondary }, variant: "caption", children: b.dirty ? "Unsaved" : "" }), e(Oe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "none", marginLeft: "8px", minWidth: "90px", display: "flex", justifyContent: "end", color: (E) => E.palette.text.secondary }, variant: "caption", children: b.cursor })] }) }), [b]), L = W(() => $(A, { className: Ae("script-editor-content"), sx: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "column", boxSizing: "border-box" }, children: [S, e(A, { sx: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: e(cp, { ref: k, loadingPanel: D, readOnly: c, onClose: g, autoFocus: s, commands: l, onStatusChange: v, darkMode: h.palette.mode === "dark", ...n }) }), P] }), [h, l, S, P, d, D, c, n, s, a, g, v]), F = W(() => e(Es, { className: Ae({ "Mui-selected": y.current }), sx: { display: "flex", color: (E) => E.palette.text.secondary, boxSizing: "border-box", padding: "0 0", transitionProperty: "opacity", transitionDuration: (E) => `${E.transitions.duration.shortest}ms`, opacity: 0.7, "&.Mui-selected": { opacity: 1, transitionDuration: (E) => E.transitions.duration.shortest / 2 + "ms" }, backgroundColor: (E) => he(E.palette.action.hover, 0.03), borderBottom: (E) => `solid ${he(E.palette.divider, 0.2)} 1px` }, onPointerDown: (E) => {
2585
+ }, [T, a, s]), P = W(() => e(Lt, { transitionDelay: "160ms", style: { position: "absolute", width: "100%", height: "100%" }, transparentBackground: !1 }), []), S = W(() => e(Do, { elevation: 1, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, marginLeft: (E) => E.spacing(0.5), marginRight: (E) => E.spacing(0.5), marginTop: (E) => E.spacing(1), marginBottom: (E) => E.spacing(1) }, children: e(sl, { commands: l }) }), [h, l]), R = W(() => e(A, { className: Ae("script-status-panel", "status-panel"), sx: { display: "flex", alignItems: "stretch", flexDirection: "row", flex: "0", paddingLeft: "12px", paddingRight: "12px", gap: "8px", paddingTop: "1px", minHeight: "calc(1em + 8px)", margin: 0, borderTop: `solid 1px ${h.palette.divider}` }, children: $("div", { style: { flex: "1 1 100%", display: "flex", alignItems: "center", flexDirection: "row", justifyContent: "center" }, children: [e(Oe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "1 1 100%", color: (E) => E.palette.text.secondary }, variant: "caption", children: b.message }), e(Oe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "none", color: (E) => E.palette.text.secondary }, variant: "caption", children: b.dirty ? "Unsaved" : "" }), e(Oe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "none", marginLeft: "8px", minWidth: "90px", display: "flex", justifyContent: "end", color: (E) => E.palette.text.secondary }, variant: "caption", children: b.cursor })] }) }), [b]), L = W(() => $(A, { className: Ae("script-editor-content"), sx: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "column", boxSizing: "border-box" }, children: [S, e(A, { sx: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: e(pp, { ref: k, loadingPanel: P, readOnly: c, onClose: g, autoFocus: s, commands: l, onStatusChange: v, darkMode: h.palette.mode === "dark", ...n }) }), R] }), [h, l, S, R, d, P, c, n, s, a, g, v]), F = W(() => e(Es, { className: Ae({ "Mui-selected": y.current }), sx: { display: "flex", color: (E) => E.palette.text.secondary, boxSizing: "border-box", padding: "0 0", transitionProperty: "opacity", transitionDuration: (E) => `${E.transitions.duration.shortest}ms`, opacity: 0.7, "&.Mui-selected": { opacity: 1, transitionDuration: (E) => E.transitions.duration.shortest / 2 + "ms" }, backgroundColor: (E) => he(E.palette.action.hover, 0.03), borderBottom: (E) => `solid ${he(E.palette.divider, 0.2)} 1px` }, onPointerDown: (E) => {
2586
2586
  E.isDefaultPrevented() || (E.preventDefault(), B());
2587
2587
  }, children: $(A, { sx: { display: "flex", flex: "1 1 10%", flexDirection: "row", alignItems: "center", marginTop: (E) => E.spacing(0.25), marginBottom: (E) => E.spacing(0.25), marginLeft: (E) => E.spacing(1), marginRight: (E) => E.spacing(1) }, children: [e(A, { sx: { flex: "1 1 100%", paddingLeft: (E) => E.spacing(1) }, children: "Script (Typescript)" }), e(rt, { label: "Close", children: e(dt, { "aria-label": "close", sx: { color: (E) => E.palette.text.icon ?? E.palette.action.active }, touchRippleRef: C, onPointerDown: (E) => {
2588
2588
  C.current?.start(E, { center: !1 }), E.stopPropagation(), E.preventDefault();
@@ -2618,9 +2618,9 @@ const pl = Y(J((r, i) => {
2618
2618
  const u = { variant: le.Menuitem, parentFloat: r.floatReference, scope: "scripts", shortcut: null }, p = [], h = l.length;
2619
2619
  for (let m = 0; m < h; m++) {
2620
2620
  const y = l[m];
2621
- p.push(e(O, { ...u, command: o.getCommand("executeScript"), commandState: { declaration: y }, tooltipProps: { description: `Execute ${y.getName() ?? "macro"}` }, icon: R(e(mr, {})), label: y.getName() ?? `Script '${y.getName()}'` }, `macro-${y.getName()}-${m}`));
2621
+ p.push(e(O, { ...u, command: o.getCommand("executeScript"), commandState: { declaration: y }, tooltipProps: { description: `Execute ${y.getName() ?? "macro"}` }, icon: D(e(mr, {})), label: y.getName() ?? `Script '${y.getName()}'` }, `macro-${y.getName()}-${m}`));
2622
2622
  }
2623
- const d = $(A, { ref: i, sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: [p.length > 0 ? $(se, { children: [e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: p }), e(re, { orientation: "horizontal" })] }) : null, Pe(O, { ...u, key: "show-editor", command: o.getCommand("showScriptEditor"), icon: R(e(td, {})) })] });
2623
+ const d = $(A, { ref: i, sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: [p.length > 0 ? $(se, { children: [e(A, { sx: { overflow: "auto", flex: "1 1 100%" }, children: p }), e(re, { orientation: "horizontal" })] }) : null, Pe(O, { ...u, key: "show-editor", command: o.getCommand("showScriptEditor"), icon: D(e(td, {})) })] });
2624
2624
  return xe({ ...t, children: d });
2625
2625
  }));
2626
2626
  pl.displayName = "RunScriptPopupPanel";
@@ -2629,7 +2629,7 @@ const ul = Y(J((r, i) => {
2629
2629
  const h = e(pl, { ...u, commands: p });
2630
2630
  return xe({ ...u, children: h });
2631
2631
  }, [l, a, t, n]);
2632
- return e(Re, { ref: i, commands: o, commandHook: t, createPopupPanel: s, selected: o.getCommand(g).state(), label: "Macros", tooltip: "Run or manage macros.", quickCommand: g, icon: R(e(od, {})), ...c });
2632
+ return e(Re, { ref: i, commands: o, commandHook: t, createPopupPanel: s, selected: o.getCommand(g).state(), label: "Macros", tooltip: "Run or manage macros.", quickCommand: g, icon: D(e(od, {})), ...c });
2633
2633
  })), ml = Y(J((r, i) => {
2634
2634
  const { commands: o, parentFloat: t, commandButtonProps: n, ...l } = r, [c, g] = U(!1), a = He(o, ["executeScript", "showScriptEditor"]), s = a[0]?.context?.();
2635
2635
  ue(() => {
@@ -2655,9 +2655,9 @@ const ul = Y(J((r, i) => {
2655
2655
  };
2656
2656
  }, [s]);
2657
2657
  const u = G((p) => {
2658
- const { commandButtonProps: h, commandPopupProps: d } = p, m = e(Mo, { ...d, command: o.getCommand("formatFontColor"), icon: e(nd, {}), isSplit: !0, panelProps: { disableAlpha: !0 } }), y = e(Mo, { ...d, command: o.getCommand("formatFillColor"), icon: e(rd, {}), isSplit: !0, panelProps: { disableAlpha: !0, autoColorLabel: "No Fill", autoColorPosition: Eo.End } }), b = o.getCommand("undo") ? e(se, { children: e(Fi, { ...d, quickCommand: "undo" }) }) : null, x = o.getCommand("find") ? e(se, { children: e(Bp, { ...d }) }) : null;
2658
+ const { commandButtonProps: h, commandPopupProps: d } = p, m = e(Ro, { ...d, command: o.getCommand("formatFontColor"), icon: e(nd, {}), isSplit: !0, panelProps: { disableAlpha: !0 } }), y = e(Ro, { ...d, command: o.getCommand("formatFillColor"), icon: e(rd, {}), isSplit: !0, panelProps: { disableAlpha: !0, autoColorLabel: "No Fill", autoColorPosition: To.End } }), b = o.getCommand("undo") ? e(se, { children: e(Fi, { ...d, quickCommand: "undo" }) }) : null, x = o.getCommand("find") ? e(se, { children: e(Hp, { ...d }) }) : null;
2659
2659
  let f = null;
2660
- return c && (f = $(se, { children: [e(re, {}), e(ul, { ...d })] })), $(No, { parentFloat: t, children: [b, null, b ? e(re, {}) : null, e(Ai, { ...d, command: o.getCommand("paste") }), e(O, { ...h, command: o.getCommand("formatPainterToggle"), icon: R(e(ad, {})) }), e(xr, { ...h, command: o.getCommand("copy") }), e(re, {}), e($p, { ...d, command: o.getCommand("formatFontFamily") }), e(Lp, { ...d, command: o.getCommand("formatFontSize") }), e(O, { ...h, command: o.getCommand("formatBoldToggle"), icon: e(id, {}) }), e(O, { ...h, command: o.getCommand("formatItalicToggle"), icon: e(ld, {}) }), e(Vp, { ...d }), e(jp, { ...d }), m, e(re, {}), y, e(Fp, { ...d }), e(Op, { ...d }), e(re, {}), e(yp, { ...d }), e(wp, { ...d }), e(Sp, { ...d }), e(vp, { ...d }), e(re, {}), e(Hp, { ...d }), e(qp, { command: o.getCommand("formatCellStyle"), ...d }), e(Jp, { command: o.getCommand("formatTableStyle"), ...d }), e(re, {}), e(Mi, { ...d }), e(Ii, { ...d }), e(re, {}), e(zp, { ...d }), null, e(Ri, { ...d }), e(Ni, { ...d }), x, f] });
2660
+ return c && (f = $(se, { children: [e(re, {}), e(ul, { ...d })] })), $(Io, { parentFloat: t, children: [b, null, b ? e(re, {}) : null, e(Ai, { ...d, command: o.getCommand("paste") }), e(O, { ...h, command: o.getCommand("formatPainterToggle"), icon: D(e(ad, {})) }), e(xr, { ...h, command: o.getCommand("copy") }), e(re, {}), e(Vp, { ...d, command: o.getCommand("formatFontFamily") }), e(zp, { ...d, command: o.getCommand("formatFontSize") }), e(O, { ...h, command: o.getCommand("formatBoldToggle"), icon: e(id, {}) }), e(O, { ...h, command: o.getCommand("formatItalicToggle"), icon: e(ld, {}) }), e(Up, { ...d }), e(_p, { ...d }), m, e(re, {}), y, e(Ap, { ...d }), e(Bp, { ...d }), e(re, {}), e(Sp, { ...d }), e(vp, { ...d }), e(Cp, { ...d }), e(kp, { ...d }), e(re, {}), e(Wp, { ...d }), e(Kp, { command: o.getCommand("formatCellStyle"), ...d }), e(eu, { command: o.getCommand("formatTableStyle"), ...d }), e(re, {}), e(Mi, { ...d }), e(Ii, { ...d }), e(re, {}), e($p, { ...d }), null, e(Ri, { ...d }), e(Ni, { ...d }), x, f] });
2661
2661
  }, [o, a, c]);
2662
2662
  return e(cn, { ref: i, commands: o, parentFloat: t, commandButtonProps: n, createToolbarPalette: u, ...l });
2663
2663
  }));
@@ -2665,7 +2665,7 @@ ml.displayName = "HomeToolbar";
2665
2665
  const gl = Y(J((r, i) => {
2666
2666
  const { commands: o, parentFloat: t, commandButtonProps: n, ...l } = r, c = te((g) => {
2667
2667
  const { commandButtonProps: a, commandPopupProps: s } = g;
2668
- return $(No, { parentFloat: t, children: [null, e(O, { ...a, command: o.getCommand("updateHyperlink"), icon: R(e(Un, {})) }), e(O, { ...a, command: o.getCommand("updateComments"), icon: R(e(Gn, {})) }), e(Hi, { ...s }), e(O, { ...a, command: o.getCommand("insertTable"), icon: R(e(an, {})) })] });
2668
+ return $(Io, { parentFloat: t, children: [null, e(O, { ...a, command: o.getCommand("updateHyperlink"), icon: D(e(Un, {})) }), e(O, { ...a, command: o.getCommand("updateComments"), icon: D(e(Gn, {})) }), e(Hi, { ...s }), e(O, { ...a, command: o.getCommand("insertTable"), icon: D(e(rn, {})) })] });
2669
2669
  }, [o]);
2670
2670
  return e(cn, { ref: i, commands: o, parentFloat: t, commandButtonProps: n, createToolbarPalette: c, ...l });
2671
2671
  }));
@@ -2673,26 +2673,26 @@ gl.displayName = "InsertToolbar";
2673
2673
  const hl = Y(J((r, i) => {
2674
2674
  const { commands: o, parentFloat: t, commandButtonProps: n, ...l } = r, c = te((g) => {
2675
2675
  const { commandButtonProps: a, commandPopupProps: s } = g;
2676
- return $(No, { parentFloat: t, children: [e(Ap, { ...s }), e(O, { ...a, command: o.getCommand("protectionSheetToggle"), icon: e(dn, { color: "secondary" }) }), e(re, {}), e(Wp, { ...s }), e(_p, { ...s }), e(re, {}), e(O, { ...a, command: o.getCommand("sheetViewToggleFormulaView"), scope: "view", icon: e(eo, { command: o.getCommand("sheetViewToggleFormulaView"), scope: "view" }) }), e(O, { ...a, command: o.getCommand("sheetViewToggleShowZeros"), scope: "view", icon: e(eo, { command: o.getCommand("sheetViewToggleShowZeros"), scope: "view" }) }), e(re, {}), e(Up, { ...s }), e(ou, { command: o.getCommand("selectTheme"), ...s }), e(re, {}), e(ul, { ...s, scope: "view" }), e(re, {}), e(O, { ...a, command: o.getCommand("fullScreenToggle"), scope: "view", icon: () => R(o.getCommand("fullScreenToggle").state() ? e(sd, {}) : e(cd, {})) })] });
2676
+ return $(Io, { parentFloat: t, children: [e(Lp, { ...s }), e(O, { ...a, command: o.getCommand("protectionSheetToggle"), icon: e(dn, { color: "secondary" }) }), e(re, {}), e(jp, { ...s }), e(Gp, { ...s }), e(re, {}), e(O, { ...a, command: o.getCommand("sheetViewToggleFormulaView"), scope: "view", icon: D(e(sd, {})) }), e(O, { ...a, command: o.getCommand("sheetViewToggleShowZeros"), scope: "view", icon: D(e(cd, {})) }), e(re, {}), e(qp, { ...s }), e(ru, { command: o.getCommand("selectTheme"), ...s }), e(re, {}), e(ul, { ...s, scope: "view" }), e(re, {}), e(O, { ...a, command: o.getCommand("fullScreenToggle"), scope: "view", icon: () => D(o.getCommand("fullScreenToggle").state() ? e(dd, {}) : e(pd, {})) })] });
2677
2677
  }, [o]);
2678
2678
  return e(cn, { ref: i, commands: o, parentFloat: t, commandButtonProps: n, createToolbarPalette: c, ...l });
2679
2679
  }));
2680
2680
  hl.displayName = "ViewToolbar";
2681
- const fl = (r) => e(bl, { ...r }), Tu = Y((r) => {
2681
+ const fl = (r) => e(bl, { ...r }), Du = Y((r) => {
2682
2682
  const { sx: i, ...o } = r;
2683
2683
  return $(A, { sx: { display: "flex", flexDirection: "column", position: "relative", "&:hover:not([disabled]) .indicator": { borderBottom: (t) => `${he(t.palette.primary.main, 0.35)} solid 2px` } }, children: [e(Rs, { disableRipple: !0, onMouseDown: (t) => {
2684
2684
  t.button === 0 && t.preventDefault();
2685
2685
  }, sx: { textTransform: "none", flex: "1 1 100%", fontWeight: (t) => t.typography.fontWeightRegular, padding: "2px 6px", minHeight: "0px", minWidth: "0px", marginRight: (t) => t.spacing(0.5), "&.Mui-selected": {}, "&.Mui-focusVisible": {}, ...i }, ...o }), e(A, { className: "indicator", sx: { width: "90%", borderRadius: "4px", minWidth: "4px", position: "absolute", bottom: "0", alignSelf: "center", display: "flex" } })] });
2686
- }), Eu = Y((r) => {
2686
+ }), Pu = Y((r) => {
2687
2687
  const { toolbars: i, value: o, onToolbarChange: t, sx: n, ...l } = r, c = W(() => {
2688
2688
  const g = [];
2689
- for (let a = 0; a < i.length; a++) g.push(e(Tu, { label: i[a].label }, i[a].label));
2689
+ for (let a = 0; a < i.length; a++) g.push(e(Du, { label: i[a].label }, i[a].label));
2690
2690
  return g;
2691
2691
  }, [i]);
2692
2692
  return e(Ps, { value: o, onChange: (g, a) => {
2693
2693
  t?.(a);
2694
2694
  }, variant: "scrollable", scrollButtons: !1, sx: { paddingLeft: (g) => g.spacing(1.5), paddingRight: (g) => g.spacing(1.5), paddingTop: (g) => g.spacing(0), paddingBottom: (g) => g.spacing(0), minHeight: "26px", alignItems: "center", "& .MuiTabs-indicator": { display: "flex", justifyContent: "center", backgroundColor: "transparent" }, "& .MuiTabs-indicatorSpan": { width: "90%", borderRadius: "4px", minWidth: "4px", backgroundColor: (g) => g.palette.primary.main }, "& .MuiTab-root": { marginRight: "0px" }, ...n }, TabIndicatorProps: { children: e("span", { className: "MuiTabs-indicatorSpan" }) }, ...l, children: c });
2695
- }), Du = Y((r) => {
2695
+ }), Ru = Y((r) => {
2696
2696
  const { toolbars: i, value: o, onToolbarChange: t, selectProps: n, ...l } = r, c = G((a) => {
2697
2697
  t?.(a.target.value);
2698
2698
  }, [t]), g = W(() => {
@@ -2712,22 +2712,22 @@ const fl = (r) => e(bl, { ...r }), Tu = Y((r) => {
2712
2712
  C.push({ label: "Home", component: e(ml, { commands: o, ...T }) });
2713
2713
  const { ref: I, ...N } = g?.Insert || {};
2714
2714
  C.push({ label: "Insert", component: e(gl, { commands: o, ...N }) });
2715
- const { ref: B, ...D } = g?.View || {};
2716
- return C.push({ label: "View", component: e(hl, { commands: o, ...D }) }), C;
2715
+ const { ref: B, ...P } = g?.View || {};
2716
+ return C.push({ label: "View", component: e(hl, { commands: o, ...P }) }), C;
2717
2717
  }, [o, s]), d = W(() => {
2718
2718
  const C = [];
2719
2719
  for (let k = 0; k < h.length; k++) C.push(ae.cloneElement(h[k].component, { ...h[k].component.props, key: h[k].key ?? h[k].label }));
2720
2720
  return C;
2721
2721
  }, [h]), [m, y] = U(0), b = (C) => {
2722
2722
  y(C);
2723
- }, x = W(() => e(l ? Du : Eu, { toolbars: h, value: m, onToolbarChange: b, sx: n }), [h, m, n, l]), { sx: f, ...w } = a, v = e(Po, { elevation: 2, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, marginLeft: (C) => C.spacing(1), marginRight: (C) => C.spacing(1), marginTop: (C) => C.spacing(0.5), marginBottom: (C) => C.spacing(0.5), ...f }, ...w, children: d[m] });
2723
+ }, x = W(() => e(l ? Ru : Pu, { toolbars: h, value: m, onToolbarChange: b, sx: n }), [h, m, n, l]), { sx: f, ...w } = a, v = e(Do, { elevation: 2, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, borderRadius: "8px", backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, marginLeft: (C) => C.spacing(1), marginRight: (C) => C.spacing(1), marginTop: (C) => C.spacing(0.5), marginBottom: (C) => C.spacing(0.5), ...f }, ...w, children: d[m] });
2724
2724
  return $(A, { ref: i, className: "toolbarWrappers", sx: { display: "flex", flexDirection: "column", paddingTop: (C) => C.spacing(0.5), "*": { userSelect: "none" }, ...u }, ...p, children: [t ? t(x) : x, c ? c(v) : v] });
2725
2725
  }));
2726
2726
  var Va, _a;
2727
2727
  bl.displayName = "WorkbookToolbars", (function() {
2728
2728
  if (_a) return Va;
2729
2729
  _a = 1;
2730
- var r = /^\s+|\s+$/g, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, t = /^0o[0-7]+$/i, n = parseInt, l = typeof Co == "object" && Co && Co.Object === Object && Co, c = typeof self == "object" && self && self.Object === Object && self, g = l || c || Function("return this")(), a = Object.prototype.toString, s = Math.max, u = Math.min, p = function() {
2730
+ var r = /^\s+|\s+$/g, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, t = /^0o[0-7]+$/i, n = parseInt, l = typeof vo == "object" && vo && vo.Object === Object && vo, c = typeof self == "object" && self && self.Object === Object && self, g = l || c || Function("return this")(), a = Object.prototype.toString, s = Math.max, u = Math.min, p = function() {
2731
2731
  return g.Date.now();
2732
2732
  };
2733
2733
  function h(m) {
@@ -2753,7 +2753,7 @@ bl.displayName = "WorkbookToolbars", (function() {
2753
2753
  Va = function(m, y, b) {
2754
2754
  var x, f, w, v, C, k, T = 0, I = !1, N = !1, B = !0;
2755
2755
  if (typeof m != "function") throw new TypeError("Expected a function");
2756
- function D(V) {
2756
+ function P(V) {
2757
2757
  var M = x, E = f;
2758
2758
  return x = f = void 0, T = V, v = m.apply(E, M);
2759
2759
  }
@@ -2761,26 +2761,26 @@ bl.displayName = "WorkbookToolbars", (function() {
2761
2761
  var M = V - k;
2762
2762
  return k === void 0 || M >= y || M < 0 || N && V - T >= w;
2763
2763
  }
2764
- function P() {
2764
+ function R() {
2765
2765
  var V = p();
2766
2766
  if (S(V)) return L(V);
2767
- C = setTimeout(P, (function(M) {
2767
+ C = setTimeout(R, (function(M) {
2768
2768
  var E = y - (M - k);
2769
2769
  return N ? u(E, w - (M - T)) : E;
2770
2770
  })(V));
2771
2771
  }
2772
2772
  function L(V) {
2773
- return C = void 0, B && x ? D(V) : (x = f = void 0, v);
2773
+ return C = void 0, B && x ? P(V) : (x = f = void 0, v);
2774
2774
  }
2775
2775
  function F() {
2776
2776
  var V = p(), M = S(V);
2777
2777
  if (x = arguments, f = this, k = V, M) {
2778
2778
  if (C === void 0) return (function(E) {
2779
- return T = E, C = setTimeout(P, y), I ? D(E) : v;
2779
+ return T = E, C = setTimeout(R, y), I ? P(E) : v;
2780
2780
  })(k);
2781
- if (N) return C = setTimeout(P, y), D(k);
2781
+ if (N) return C = setTimeout(R, y), P(k);
2782
2782
  }
2783
- return C === void 0 && (C = setTimeout(P, y)), v;
2783
+ return C === void 0 && (C = setTimeout(R, y)), v;
2784
2784
  }
2785
2785
  return y = d(y) || 0, h(b) && (I = !!b.leading, w = (N = "maxWait" in b) ? s(d(b.maxWait) || 0, y) : w, B = "trailing" in b ? !!b.trailing : B), F.cancel = function() {
2786
2786
  C !== void 0 && clearTimeout(C), T = 0, x = k = f = C = void 0;
@@ -2820,9 +2820,9 @@ Ga || (Ga = 1, qa.exports = (function() {
2820
2820
  };
2821
2821
  return On.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : g, On;
2822
2822
  })()), qa.exports;
2823
- var Xa, Ka, bo = { exports: {} }, Xt = { exports: {} }, Pu = Xt.exports;
2823
+ var Xa, Ka, fo = { exports: {} }, Xt = { exports: {} }, Mu = Xt.exports;
2824
2824
  (function() {
2825
- if (Ka) return bo.exports;
2825
+ if (Ka) return fo.exports;
2826
2826
  Ka = 1;
2827
2827
  for (var r = (Xa || (Xa = 1, function() {
2828
2828
  var p, h, d, m, y, b;
@@ -2838,7 +2838,7 @@ var Xa, Ka, bo = { exports: {} }, Xt = { exports: {} }, Pu = Xt.exports;
2838
2838
  }, d = Date.now()) : (Xt.exports = function() {
2839
2839
  return (/* @__PURE__ */ new Date()).getTime() - d;
2840
2840
  }, d = (/* @__PURE__ */ new Date()).getTime());
2841
- }.call(Pu)), Xt.exports), i = typeof window > "u" ? Co : window, o = ["moz", "webkit"], t = "AnimationFrame", n = i["request" + t], l = i["cancel" + t] || i["cancelRequest" + t], c = 0; !n && c < o.length; c++) n = i[o[c] + "Request" + t], l = i[o[c] + "Cancel" + t] || i[o[c] + "CancelRequest" + t];
2841
+ }.call(Mu)), Xt.exports), i = typeof window > "u" ? vo : window, o = ["moz", "webkit"], t = "AnimationFrame", n = i["request" + t], l = i["cancel" + t] || i["cancelRequest" + t], c = 0; !n && c < o.length; c++) n = i[o[c] + "Request" + t], l = i[o[c] + "Cancel" + t] || i[o[c] + "CancelRequest" + t];
2842
2842
  if (!n || !l) {
2843
2843
  var g = 0, a = 0, s = [], u = 1e3 / 60;
2844
2844
  n = function(p) {
@@ -2861,13 +2861,13 @@ var Xa, Ka, bo = { exports: {} }, Xt = { exports: {} }, Pu = Xt.exports;
2861
2861
  for (var h = 0; h < s.length; h++) s[h].handle === p && (s[h].cancelled = !0);
2862
2862
  };
2863
2863
  }
2864
- bo.exports = function(p) {
2864
+ fo.exports = function(p) {
2865
2865
  return n.call(i, p);
2866
- }, bo.exports.cancel = function() {
2866
+ }, fo.exports.cancel = function() {
2867
2867
  l.apply(i, arguments);
2868
- }, bo.exports.polyfill = function(p) {
2868
+ }, fo.exports.polyfill = function(p) {
2869
2869
  p || (p = i), p.requestAnimationFrame = n, p.cancelAnimationFrame = l;
2870
- }, bo.exports;
2870
+ }, fo.exports;
2871
2871
  })();
2872
2872
  var st = { DOM_UNAVAILABLE_ERROR: "DOM is unavailable server-side. Please use this method client-side only.", FULLSCREEN_UNSUPPORTED_ERROR: "Your browser does not support Fullscreen API.", getEventsNames() {
2873
2873
  if (typeof document > "u") return null;
@@ -2901,19 +2901,19 @@ var st = { DOM_UNAVAILABLE_ERROR: "DOM is unavailable server-side. Please use th
2901
2901
  const o = this.getEventName(r);
2902
2902
  o && document.removeEventListener(o, i);
2903
2903
  } };
2904
- const Ru = (r) => {
2905
- const { workbook: i, workbookElement: o, notifier: t, target: n, commands: l, darkMode: c, onShowSidebar: g, onNewWorkbook: a = Mu } = r, [s, u] = U(i?.getSelectedSheet()), [p, h] = U(i?.getSheets().getItems()), d = te(g, [g]), m = te(a, [a]), y = W(() => [new Ge("workbookStatistics", n, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [ke.Ctrl, ke.Shift] } }), new Ge("showFormat", n, { label: "Show Format", description: "Open the format pane.", shortcut: { key: "F", modifiers: [ke.Ctrl, ke.Shift] } }), new we("newCellStyle", n, { label: "New Cell Style…", scopedLabels: { cellStyle: "New Cell Style" }, description: "Create a new named style can can be quickly used later." }), new we("deleteCellStyle", n, { label: "Delete Cell Style", scopedLabels: { cellStyle: "Delete" }, description: "Remove a named style that is no longer needed." }), new we("modifyCellStyle", n, { label: "Modify Cell Style", scopedLabels: { cellStyle: "Modify" }, description: "Update a style with the currently style." }), new Ge("find", n, { label: "Find", description: "Open the Find window.", shortcut: [{ key: "F", modifiers: [ke.Ctrl] }, { key: "F5", modifiers: [ke.Shift] }] }), new Ge("findReplace", n, { label: "Find & Replace", description: "Open the Find & Replace window.", shortcut: [{ key: "H", modifiers: [ke.Ctrl] }, { key: "H", modifiers: [ke.Ctrl, ke.Alt] }] }), new Ge("goto", n, { label: "Go To", description: "Open the 'Go To' window.", shortcut: [{ key: "G", modifiers: [ke.Ctrl] }] }), new Ge("workbookViewToggleExpandFormulaBar", n, { label: "Toggle Expand Formula bar", description: "Expand or collapse the formula bar.", shortcut: { key: "U", modifiers: [ke.Ctrl, ke.Shift] } }), new Ge("workbookViewToggleShowFormulaBar", n, { label: "View Formula bar", scopedLabels: { view: "Formula Bar" }, description: "Show or hide the formula bar." }), new Ge("workbookViewToggleShowTabs", n, { label: "View Sheet Tabs", description: "Show or hide the sheet tabs.", scopedLabels: { view: "Sheet Tabs" } }), new Ge("workbookViewToggleShowStatusBar", n, { label: "View Status Bar", description: "Show or hide the status bar.", scopedLabels: { view: "Status Bar" } }), new Ge("workbookViewToggleShowHorizontalScrollBar", n, { label: "View Horizontal Scrollbar", description: "Show or hide the horizontal scrollbar.", scopedLabels: { view: "Horizontal Scrollbar" } }), new Ge("workbookViewToggleShowVerticalScrollBar", n, { label: "View Vertical Scrollbar", description: "Show or hide the vertical scrollbar.", scopedLabels: { view: "Vertical Scrollbar" } }), new we("hideSheet", n, { label: "Hide Sheet", scopedLabels: { sheet: "Hide" }, description: "Hide the sheet from appearing in the tabs. This keeps the data but de-clutters the tabs." }), new we("deleteSheet", n, { label: "Delete Sheet", scopedLabels: { sheet: "Delete" }, description: "Delete the sheet and all the data." }), new we("addSheet", n, { label: "Insert Sheet", scopedLabels: { sheet: "Insert" }, description: "Insert sheet before the current sheet.", shortcut: [{ key: "F11", modifiers: [ke.Shift] }, { key: "F1", modifiers: [ke.Alt, ke.Shift] }] }), new we("duplicateSheet", n, { label: "Duplicate Sheet", description: "Duplicate the current sheet.", scopedLabels: { sheet: "Duplicate" } }), new we("nextSheet", n, { label: "Next Sheet", scopedLabels: { sheet: "Next" }, description: "Activate the next sheet.", shortcut: [{ key: "PageDown", modifiers: [ke.Ctrl] }] }), new we("previousSheet", n, { label: "Previous Sheet", scopedLabels: { sheet: "Previous" }, description: "Activate the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [ke.Ctrl] }] }), new we("selectNextSheet", n, { label: "Select Next Sheet", scopedLabels: { sheet: "Select Next" }, description: "Select the next sheet.", shortcut: [{ key: "PageDown", modifiers: [ke.Ctrl, ke.Shift] }] }), new we("selectPreviousSheet", n, { label: "Select Previous Sheet", scopedLabels: { sheet: "Select Previous" }, description: "Select the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [ke.Ctrl, ke.Shift] }] }), new we("selectTheme", n, { label: "Theme", description: "Select a theme that coveys a style suitable for your data." }), new we("selectNamed", n, { label: (S) => S?.getName() ?? "Select Named Item", scopedLabels: { namedItem: (S) => S?.getName() ?? "Select" }, description: "Select the item." }), new we("addNamedReference", n, { label: "Define Named Reference", scopedLabels: { namedItem: "Define Name…" }, description: "Add a new named reference. Names can be used as a substitute for cell references." }), new we("editNamedReference", n, { label: "Edit Named Reference…", scopedLabels: { namedItem: "Edit…" }, description: "Add a new named reference. Names can be used as a substitute for cell references." }), new we("deleteNamedReference", n, { label: "Delete Named Reference", scopedLabels: { namedItem: "Delete" }, description: "Remove the named reference." }), new Ge("activeNameBox", n, { label: "Activate Name Box", description: "Move the focus to the name box.", shortcut: { key: "F3", modifiers: [ke.Alt] } }), new Ge("createNamedReferenceFromSelection", n, { label: "Create from Selection", description: "Automatically generate names from the selected cells.", shortcut: { key: "F3", modifiers: [ke.Ctrl, ke.Shift] } }), new Ge("activeNameManager", n, { label: "Activate Name Manager", description: `Create, edit, delete, and find all the names used in the workbook.
2904
+ const Iu = (r) => {
2905
+ const { workbook: i, workbookElement: o, notifier: t, target: n, commands: l, darkMode: c, onShowSidebar: g, onNewWorkbook: a = Nu } = r, [s, u] = U(i?.getSelectedSheet()), [p, h] = U(i?.getSheets().getItems()), d = te(g, [g]), m = te(a, [a]), y = W(() => [new Ge("workbookStatistics", n, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [ke.Ctrl, ke.Shift] } }), new Ge("showFormat", n, { label: "Show Format", description: "Open the format pane.", shortcut: { key: "F", modifiers: [ke.Ctrl, ke.Shift] } }), new we("newCellStyle", n, { label: "New Cell Style…", scopedLabels: { cellStyle: "New Cell Style" }, description: "Create a new named style can can be quickly used later." }), new we("deleteCellStyle", n, { label: "Delete Cell Style", scopedLabels: { cellStyle: "Delete" }, description: "Remove a named style that is no longer needed." }), new we("modifyCellStyle", n, { label: "Modify Cell Style", scopedLabels: { cellStyle: "Modify" }, description: "Update a style with the currently style." }), new Ge("find", n, { label: "Find", description: "Open the Find window.", shortcut: [{ key: "F", modifiers: [ke.Ctrl] }, { key: "F5", modifiers: [ke.Shift] }] }), new Ge("findReplace", n, { label: "Find & Replace", description: "Open the Find & Replace window.", shortcut: [{ key: "H", modifiers: [ke.Ctrl] }, { key: "H", modifiers: [ke.Ctrl, ke.Alt] }] }), new Ge("goto", n, { label: "Go To", description: "Open the 'Go To' window.", shortcut: [{ key: "G", modifiers: [ke.Ctrl] }] }), new Ge("workbookViewToggleExpandFormulaBar", n, { label: "Toggle Expand Formula bar", description: "Expand or collapse the formula bar.", shortcut: { key: "U", modifiers: [ke.Ctrl, ke.Shift] } }), new Ge("workbookViewToggleShowFormulaBar", n, { label: "View Formula bar", scopedLabels: { view: "Formula Bar" }, description: "Show or hide the formula bar." }), new Ge("workbookViewToggleShowTabs", n, { label: "View Sheet Tabs", description: "Show or hide the sheet tabs.", scopedLabels: { view: "Sheet Tabs" } }), new Ge("workbookViewToggleShowStatusBar", n, { label: "View Status Bar", description: "Show or hide the status bar.", scopedLabels: { view: "Status Bar" } }), new Ge("workbookViewToggleShowHorizontalScrollBar", n, { label: "View Horizontal Scrollbar", description: "Show or hide the horizontal scrollbar.", scopedLabels: { view: "Horizontal Scrollbar" } }), new Ge("workbookViewToggleShowVerticalScrollBar", n, { label: "View Vertical Scrollbar", description: "Show or hide the vertical scrollbar.", scopedLabels: { view: "Vertical Scrollbar" } }), new we("hideSheet", n, { label: "Hide Sheet", scopedLabels: { sheet: "Hide" }, description: "Hide the sheet from appearing in the tabs. This keeps the data but de-clutters the tabs." }), new we("deleteSheet", n, { label: "Delete Sheet", scopedLabels: { sheet: "Delete" }, description: "Delete the sheet and all the data." }), new we("addSheet", n, { label: "Insert Sheet", scopedLabels: { sheet: "Insert" }, description: "Insert sheet before the current sheet.", shortcut: [{ key: "F11", modifiers: [ke.Shift] }, { key: "F1", modifiers: [ke.Alt, ke.Shift] }] }), new we("duplicateSheet", n, { label: "Duplicate Sheet", description: "Duplicate the current sheet.", scopedLabels: { sheet: "Duplicate" } }), new we("nextSheet", n, { label: "Next Sheet", scopedLabels: { sheet: "Next" }, description: "Activate the next sheet.", shortcut: [{ key: "PageDown", modifiers: [ke.Ctrl] }] }), new we("previousSheet", n, { label: "Previous Sheet", scopedLabels: { sheet: "Previous" }, description: "Activate the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [ke.Ctrl] }] }), new we("selectNextSheet", n, { label: "Select Next Sheet", scopedLabels: { sheet: "Select Next" }, description: "Select the next sheet.", shortcut: [{ key: "PageDown", modifiers: [ke.Ctrl, ke.Shift] }] }), new we("selectPreviousSheet", n, { label: "Select Previous Sheet", scopedLabels: { sheet: "Select Previous" }, description: "Select the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [ke.Ctrl, ke.Shift] }] }), new we("selectTheme", n, { label: "Theme", description: "Select a theme that coveys a style suitable for your data." }), new we("selectNamed", n, { label: (S) => S?.getName() ?? "Select Named Item", scopedLabels: { namedItem: (S) => S?.getName() ?? "Select" }, description: "Select the item." }), new we("addNamedReference", n, { label: "Define Named Reference", scopedLabels: { namedItem: "Define Name…" }, description: "Add a new named reference. Names can be used as a substitute for cell references." }), new we("editNamedReference", n, { label: "Edit Named Reference…", scopedLabels: { namedItem: "Edit…" }, description: "Add a new named reference. Names can be used as a substitute for cell references." }), new we("deleteNamedReference", n, { label: "Delete Named Reference", scopedLabels: { namedItem: "Delete" }, description: "Remove the named reference." }), new Ge("activeNameBox", n, { label: "Activate Name Box", description: "Move the focus to the name box.", shortcut: { key: "F3", modifiers: [ke.Alt] } }), new Ge("createNamedReferenceFromSelection", n, { label: "Create from Selection", description: "Automatically generate names from the selected cells.", shortcut: { key: "F3", modifiers: [ke.Ctrl, ke.Shift] } }), new Ge("activeNameManager", n, { label: "Activate Name Manager", description: `Create, edit, delete, and find all the names used in the workbook.
2906
2906
 
2907
2907
  Names can be used as a substitute for cell references.`, shortcut: { key: "F3", modifiers: [ke.Ctrl] } }), new we("fullScreenToggle", n, { label: "FullScreen", description: "Toggle showing the workbook using the full screen.", shortcut: { key: "F11" } }), new we("showScriptEditor", n, { label: "Scripts", scopedLabels: { scripts: "Script Editor…" }, description: "Show the script editor.", shortcut: [{ key: "F11", modifiers: [ke.Alt] }] }), new we("executeScript", n, { label: "Run Script", description: "Run the selected or last executed script.", shortcut: { key: "F8" } }), new we("executeSelectedScript", n, { label: "Run Script", description: "Run the selected script.", shortcut: { key: "F8" } }), new we("saveScripts", n, { label: "Save Script", description: "Save the current scripts." }), new we("maximumWorkbookToggle", n, { label: "Maximize", description: "Toggle showing the workbook maximized.", shortcut: { key: "F10", modifiers: [ke.Ctrl] } }), new we("spellCheck", n, { label: "Spell Check", description: "Check the workbook for spelling mistakes.", shortcut: { key: "F7" } }), new we("calculateAll", n, { label: "Calculate Now", description: "Recalculate all formulas.", shortcut: { key: "F9" } }), new Ge("closeWorkbook", n, { label: "Close Workbook", description: "Close the workbook.", shortcut: { key: "W", modifiers: [ke.Ctrl] } }), new Ge("newWorkbook", n, { label: "New Workbook", description: "Create a new workbook in another tab." })], []), b = W(() => {
2908
2908
  let S = null;
2909
2909
  return S = l ? l.createChildGroup(n, "workbook", !1) : new gr(n, "workbook"), S.addCommands(y, !0), S;
2910
2910
  }, [l, y]), x = un(), f = ae.useRef(null), w = te(() => {
2911
- let S, P = null;
2911
+ let S, R = null;
2912
2912
  const L = b.getCommand("executeScript");
2913
2913
  if (L.update({ disabled: !1, context: { getScripts: () => i.getScripts() } }), !L) return;
2914
2914
  const F = b.getCommand("showScriptEditor");
2915
2915
  F.updateCallback(function(E = !0) {
2916
- P ? P.close() : d?.();
2916
+ R ? R.close() : d?.();
2917
2917
  });
2918
2918
  const V = b.getCommand("executeSelectedScript");
2919
2919
  if (!V) return;
@@ -2936,8 +2936,8 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
2936
2936
  const K = `=${E.toUpperCase()}(`, Q = { text: K + ")", editMode: !0, initialSelection: { start: K.length, end: K.length + 0 } };
2937
2937
  x.setMode((q) => q?.key === "edit" ? { ...q, args: { ...q.args } } : { key: "edit", args: { stateAndCoords: null, start: Q } });
2938
2938
  }, getSelectedFunction: () => S, setEditor: (E) => {
2939
- P = E ?? null, F.update({ state: P !== null });
2940
- }, getEditor: () => P, getRanges: (E) => {
2939
+ R = E ?? null, F.update({ state: R !== null });
2940
+ }, getEditor: () => R, getRanges: (E) => {
2941
2941
  try {
2942
2942
  return i.getRanges(E);
2943
2943
  } catch {
@@ -2957,13 +2957,13 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
2957
2957
  }, onViewChange(S) {
2958
2958
  u(S?.getSelectedSheet());
2959
2959
  }, onProtectionChange: (S) => {
2960
- const P = { disabled: !S.getProtection().isStructureAllowed() };
2961
- b.getCommand("hideSheet").update(P), b.getCommand("deleteSheet").update(P), b.getCommand("addSheet").update(P), b.getCommand("duplicateSheet").update(P), b.getCommand("selectTheme").update(P), b.getCommand("addNamedReference").update(P), b.getCommand("editNamedReference").update(P), b.getCommand("deleteNamedReference").update(P);
2960
+ const R = { disabled: !S.getProtection().isStructureAllowed() };
2961
+ b.getCommand("hideSheet").update(R), b.getCommand("deleteSheet").update(R), b.getCommand("addSheet").update(R), b.getCommand("duplicateSheet").update(R), b.getCommand("selectTheme").update(R), b.getCommand("addNamedReference").update(R), b.getCommand("editNamedReference").update(R), b.getCommand("deleteNamedReference").update(R);
2962
2962
  }, onScriptsChange: (S) => {
2963
2963
  w();
2964
2964
  } });
2965
2965
  const { isFullscreenAvailable: C, isFullscreenEnabled: k, toggleFullscreen: T } = (function(S = {}) {
2966
- const { target: P, onChange: L, onError: F, requestFullScreenOptions: V } = S, [M, E] = U(!1), [K, Q] = U(null), [q, _] = U(!1), ne = G(() => st.requestFullscreen(P?.current || null, V), [P, V]), ie = G(() => st.exitFullscreen(), []), X = G(() => st.fullscreenElement ? ie() : ne(), [ne, ie]), z = G((me) => {
2966
+ const { target: R, onChange: L, onError: F, requestFullScreenOptions: V } = S, [M, E] = U(!1), [K, Q] = U(null), [q, _] = U(!1), ne = G(() => st.requestFullscreen(R?.current || null, V), [R, V]), ie = G(() => st.exitFullscreen(), []), X = G(() => st.fullscreenElement ? ie() : ne(), [ne, ie]), z = G((me) => {
2967
2967
  const Le = st.fullscreenElement;
2968
2968
  Q(Le), _(!!Le), L?.(me);
2969
2969
  }, [L]), ee = G((me) => {
@@ -2979,7 +2979,7 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
2979
2979
  ue(() => {
2980
2980
  b.getCommand("selectTheme").update({ state: () => i.getTheme(), context: () => ({ theme: i.getTheme(), themes: I, darkMode: c }) });
2981
2981
  }, [i?.getTheme(), c]);
2982
- const N = te(async function(S, P) {
2982
+ const N = te(async function(S, R) {
2983
2983
  let L = null;
2984
2984
  const F = i.getScripts();
2985
2985
  if (S?.declaration || S?.functionName) {
@@ -2995,35 +2995,35 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
2995
2995
  ue(() => {
2996
2996
  b.getCommand("newCellStyle").updateCallback((S) => {
2997
2997
  t?.showInputOptions?.({ initialValue: (() => {
2998
- let P = 0;
2998
+ let R = 0;
2999
2999
  for (; ; ) {
3000
- P++;
3001
- const L = `Style ${P}`;
3000
+ R++;
3001
+ const L = `Style ${R}`;
3002
3002
  try {
3003
3003
  return i.getStyles().validateStyleName(L, !0), L;
3004
3004
  } catch {
3005
3005
  }
3006
3006
  }
3007
- })(), title: b.getCommand("newCellStyle")?.label("cellStyle"), description: "Enter a name for the new cell style.", inputLabel: "Style Name", inputProps: { style: { minWidth: "300px" } }, options: ["Ok", "Cancel"], defaultOption: "Ok", onValidateInputOption: async (P, L) => {
3007
+ })(), title: b.getCommand("newCellStyle")?.label("cellStyle"), description: "Enter a name for the new cell style.", inputLabel: "Style Name", inputProps: { style: { minWidth: "300px" } }, options: ["Ok", "Cancel"], defaultOption: "Ok", onValidateInputOption: async (R, L) => {
3008
3008
  let F = null;
3009
3009
  try {
3010
- i.getStyles().validateStyleName(P, !1);
3010
+ i.getStyles().validateStyleName(R, !1);
3011
3011
  } catch (E) {
3012
3012
  F = E.message;
3013
3013
  }
3014
- let V = i.getStyles().getNamed(P), M = F;
3014
+ let V = i.getStyles().getNamed(R), M = F;
3015
3015
  return !M && V && (M = `Update style '${V.getName()}'.`), { valid: F === null, message: M };
3016
- } }).then(({ input: P, option: L }) => {
3016
+ } }).then(({ input: R, option: L }) => {
3017
3017
  const F = i.getSelectedSheet().getSelectedRange();
3018
3018
  if (L !== "Ok") return;
3019
- const V = i.getStyles().setNamed({ name: P, style: F.getCell().getStyle() });
3019
+ const V = i.getStyles().setNamed({ name: R, style: F.getCell().getStyle() });
3020
3020
  F.updateStyle({ named: V.getName() });
3021
3021
  });
3022
3022
  }), b.getCommand("deleteCellStyle").updateCallback((S) => {
3023
3023
  S.delete();
3024
3024
  }), b.getCommand("modifyCellStyle").updateCallback(({ named: S }) => {
3025
- const P = i.getSelectedSheet().getSelectedRange();
3026
- i.getStyles().setNamed({ name: S.getName(), style: P.getCell().getStyle() });
3025
+ const R = i.getSelectedSheet().getSelectedRange();
3026
+ i.getStyles().setNamed({ name: S.getName(), style: R.getCell().getStyle() });
3027
3027
  }), b.getCommand("hideSheet").updateCallback((S) => {
3028
3028
  i.getSheetAt(S).setVisibility(Rt.Visibility.Hidden);
3029
3029
  }), b.getCommand("deleteSheet").updateCallback(async (S) => {
@@ -3051,7 +3051,7 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3051
3051
  }), b.getCommand("executeScript").updateCallback(N), b.getCommand("executeSelectedScript").updateCallback(N);
3052
3052
  }, [i, t]);
3053
3053
  const B = te(async (S) => {
3054
- let P = 0, L = null, F = "Find & Replace";
3054
+ let R = 0, L = null, F = "Find & Replace";
3055
3055
  S?.replace && !S?.replaceOptions?.maxCount && (F = "Replace All");
3056
3056
  const V = await t?.showBusy?.(F);
3057
3057
  try {
@@ -3060,18 +3060,18 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3060
3060
  const K = i.getSelectedSheet(), Q = { from: K.getSelectedCell(), ...S.findOptions };
3061
3061
  if (E = M === "sheet" ? i.getSelectedSheet().find(S.findText, Q) : i.find(S.findText, Q), S.replace) {
3062
3062
  const q = i.replace(E, S.replaceText, S.replaceOptions);
3063
- P = q.count, S.replaceOptions.maxCount && (L = q.last);
3063
+ R = q.count, S.replaceOptions.maxCount && (L = q.last);
3064
3064
  } else {
3065
3065
  let q = E.next();
3066
- q.done || (P++, L = q.value);
3066
+ q.done || (R++, L = q.value);
3067
3067
  }
3068
- L?.select({ autoFocus: !1 }), V?.(), !S.replaceOptions.maxCount && P > 1 && t?.showMessage?.(`We replaced ${P} cells.`);
3068
+ L?.select({ autoFocus: !1 }), V?.(), !S.replaceOptions.maxCount && R > 1 && t?.showMessage?.(`We replaced ${R} cells.`);
3069
3069
  } catch (M) {
3070
3070
  V?.(), t?.showError?.(M);
3071
3071
  }
3072
- return P;
3073
- }, [i, o]), D = te((S) => {
3074
- const P = { value: S, context: { selection: () => {
3072
+ return R;
3073
+ }, [i, o]), P = te((S) => {
3074
+ const R = { value: S, context: { selection: () => {
3075
3075
  const L = i.getSelectedRanges(), F = [];
3076
3076
  for (let V = 0; V < L.getCount(); V++) {
3077
3077
  const M = L.at(V).getFixed(!0).getCoords();
@@ -3085,21 +3085,21 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3085
3085
  t?.showMessage?.(F.message, { type: wt.Error });
3086
3086
  }
3087
3087
  } };
3088
- return t.showWindow?.("namedDetails", P);
3088
+ return t.showWindow?.("namedDetails", R);
3089
3089
  }, [t, i, o]);
3090
3090
  return ue(() => {
3091
- const S = (P = !1) => {
3091
+ const S = (R = !1) => {
3092
3092
  const L = i.getSelectedCell(), F = { onFindOrReplace: B, onKeyDown: (V) => {
3093
3093
  b.findCommandByEvent(V) !== b.getCommand("find") && b.findCommandByEvent(V) !== b.getCommand("findReplace") || V.preventDefault();
3094
3094
  }, findOptions: {}, findText: L.toTextUnformatted(!0) };
3095
- F.replace = P, t.showWindow?.("find", F, { disableAutoDestroy: !0 });
3095
+ F.replace = R, t.showWindow?.("find", F, { disableAutoDestroy: !0 });
3096
3096
  };
3097
3097
  b.getCommand("find")?.update({ disabled: !t?.showWindow }).updateCallback(() => {
3098
3098
  S();
3099
3099
  }), b.getCommand("findReplace")?.update({ disabled: !t?.showWindow }).updateCallback(() => {
3100
3100
  S(!0);
3101
3101
  }), b.getCommand("goto")?.update({ disabled: !t }).updateCallback(() => {
3102
- const P = { onInputOption: async (L) => {
3102
+ const R = { onInputOption: async (L) => {
3103
3103
  try {
3104
3104
  await i.getRanges(L).select();
3105
3105
  } catch (F) {
@@ -3108,19 +3108,19 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3108
3108
  }, onKeyDown: (L) => {
3109
3109
  b.findCommandByEvent(L) === b.getCommand("goto") && L.preventDefault();
3110
3110
  }, title: b.getCommand("goto")?.label(), inputLabel: "Location", options: ["Go To"] };
3111
- t?.showInputOptions?.(P);
3112
- }), b.getCommand("selectNamed")?.update({ disabled: !t }).updateCallback(async (P) => {
3113
- if (P) try {
3114
- await P.select();
3111
+ t?.showInputOptions?.(R);
3112
+ }), b.getCommand("selectNamed")?.update({ disabled: !t }).updateCallback(async (R) => {
3113
+ if (R) try {
3114
+ await R.select();
3115
3115
  } catch (L) {
3116
3116
  t?.showError?.(L);
3117
3117
  }
3118
- }), b.getCommand("addNamedReference")?.updateCallback(async function(P) {
3119
- D(null);
3120
- }), b.getCommand("editNamedReference")?.updateCallback(async function(P) {
3121
- D(P);
3122
- }), b.getCommand("deleteNamedReference")?.updateCallback(async function(P) {
3123
- P?.delete?.();
3118
+ }), b.getCommand("addNamedReference")?.updateCallback(async function(R) {
3119
+ P(null);
3120
+ }), b.getCommand("editNamedReference")?.updateCallback(async function(R) {
3121
+ P(R);
3122
+ }), b.getCommand("deleteNamedReference")?.updateCallback(async function(R) {
3123
+ R?.delete?.();
3124
3124
  }), b.getCommand("activeNameBox")?.updateCallback(async function() {
3125
3125
  o?.getFormulaBarElement()?.getNamedCollectionEditorElement()?.focus();
3126
3126
  });
@@ -3144,10 +3144,10 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3144
3144
  const S = i.getProtection().isStructureAllowed();
3145
3145
  b.getCommand("hideSheet").update({ disabled: p.length <= 1 || !S }), b.getCommand("deleteSheet").update({ disabled: p.length <= 1 || !S });
3146
3146
  }, [p, s]), b;
3147
- }, Mu = () => {
3147
+ }, Nu = () => {
3148
3148
  window.open(window.origin.toString(), "sheetxl-" + Ze.uuidV4(), "popup=true");
3149
- }, Iu = "_sheetxl-theme_4opcr_2", Nu = "_sheetxl-workbook_1j3lu_5", Fu = (r) => e(Ji, { ...r }), Ou = (r) => e(Qi, { ...r }), Au = (r) => e(Zi, { ...r }), xl = Y(J((r, i) => {
3150
- const { workbook: o, commands: t, onBeforeUserChange: n, onUserChange: l, disabled: c = !1, readOnly: g = !1, contextMenuProps: a, renderContextMenu: s = Fu, sheetsAllProps: u, renderSheetsAll: p = Ou, sheetTabProps: h, renderSheetTab: d, background: m = "transparent", className: y, notifier: b, sx: x, borderWidth: f, borderColor: w, gridTheme: v, gridStyle: C, ...k } = r, [T, I] = U(o?.getSelectedSheetIndex()), [N, B] = U(o?.getSheets().getItems()), [D, S] = U(o?.getProtection());
3149
+ }, Fu = "_sheetxl-theme_4opcr_2", Ou = "_sheetxl-workbook_1j3lu_5", Au = (r) => e(Ji, { ...r }), Bu = (r) => e(Qi, { ...r }), Lu = (r) => e(Zi, { ...r }), xl = Y(J((r, i) => {
3150
+ const { workbook: o, commands: t, onBeforeUserChange: n, onUserChange: l, disabled: c = !1, readOnly: g = !1, contextMenuProps: a, renderContextMenu: s = Au, sheetsAllProps: u, renderSheetsAll: p = Bu, sheetTabProps: h, renderSheetTab: d, background: m = "transparent", className: y, notifier: b, sx: x, borderWidth: f, borderColor: w, gridTheme: v, gridStyle: C, ...k } = r, [T, I] = U(o?.getSelectedSheetIndex()), [N, B] = U(o?.getSheets().getItems()), [P, S] = U(o?.getProtection());
3151
3151
  _e(o, { onViewChange(H) {
3152
3152
  I(H?.getSelectedSheetIndex());
3153
3153
  }, onSheetsChange: (H) => {
@@ -3155,7 +3155,7 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3155
3155
  }, onProtectionChange: (H) => {
3156
3156
  S(H?.getProtection());
3157
3157
  } });
3158
- const P = g || !D.isStructureAllowed(), L = W(() => {
3158
+ const R = g || !P.isStructureAllowed(), L = W(() => {
3159
3159
  const H = [];
3160
3160
  for (let oe = 0; oe < N.length; oe++) H.push(N[oe].getName());
3161
3161
  return H;
@@ -3172,10 +3172,10 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3172
3172
  }, [o, n, l, T]), K = W(() => ({ placement: "top-start" }), []), Q = Se(null), [q, _] = U(!1), ne = G((H) => {
3173
3173
  const { closeFloatAll: oe, floatReference: Te } = H;
3174
3174
  return p({ workbook: o, gridStyle: C, floatReference: Te, closeFloatAll: oe, ...u });
3175
- }, [p, u, c, o, C]), { reference: ie, component: X } = oo({ label: "allSheet", popperProps: K, anchor: Q.current, onOpen: () => _(!0), onClose: () => _(!1), createPopupPanel: ne }), z = Se(null), [ee, me] = U(null), Le = G((H) => {
3175
+ }, [p, u, c, o, C]), { reference: ie, component: X } = to({ label: "allSheet", popperProps: K, anchor: Q.current, onOpen: () => _(!0), onClose: () => _(!1), createPopupPanel: ne }), z = Se(null), [ee, me] = U(null), Le = G((H) => {
3176
3176
  const { floatReference: oe } = H;
3177
3177
  return s?.({ workbook: o, index: ee?.index, tabStripRef: z.current, commands: t, disabled: c, floatReference: oe, ...a });
3178
- }, [s, a, c, o, t, ee]), { reference: Fe, component: Be } = oo({ label: "sheetTab", popperProps: K, anchor: { getBoundingClientRect: () => new DOMRect(ee?.left || 0, ee?.top || 0, 0, 0) }, onClose: () => me(null), createPopupPanel: Le });
3178
+ }, [s, a, c, o, t, ee]), { reference: Fe, component: Be } = to({ label: "sheetTab", popperProps: K, anchor: { getBoundingClientRect: () => new DOMRect(ee?.left || 0, ee?.top || 0, 0, 0) }, onClose: () => me(null), createPopupPanel: Le });
3179
3179
  ue(() => {
3180
3180
  ee ? Fe.open(0) : Fe.close(0);
3181
3181
  }, [ee]);
@@ -3187,16 +3187,16 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3187
3187
  oe = o?.getSheetAt(H.index);
3188
3188
  } catch {
3189
3189
  }
3190
- return oe ? (d ?? Au)({ sheet: oe, gridTheme: v, onContextMenu: (Te) => {
3190
+ return oe ? (d ?? Lu)({ sheet: oe, gridTheme: v, onContextMenu: (Te) => {
3191
3191
  F(H.index), Ye(Te, H.index);
3192
3192
  }, ...H, ...h }) : null;
3193
- }, [d, h, o, v]), $e = W(() => P ? null : e(At, { disableInteractive: !0, title: "New sheet", children: e(dt, { disabled: c, component: "div", sx: { padding: "0", "&:hover:not([disabled])": { color: (H) => H.palette.primary.main }, color: (H) => H.palette.text.icon ?? H.palette.action.active, "& svg": { width: "18px", height: "18px" } }, "aria-label": "addTab", size: "small", onMouseDown: (H) => {
3193
+ }, [d, h, o, v]), $e = W(() => R ? null : e(At, { disableInteractive: !0, title: "New sheet", children: e(dt, { disabled: c, component: "div", sx: { padding: "0", "&:hover:not([disabled])": { color: (H) => H.palette.primary.main }, color: (H) => H.palette.text.icon ?? H.palette.action.active, "& svg": { width: "18px", height: "18px" } }, "aria-label": "addTab", size: "small", onMouseDown: (H) => {
3194
3194
  H.button === 0 && H.preventDefault();
3195
- }, onClick: () => E(), children: e(Qd, {}) }) }), [c, P, E]);
3196
- return $(A, { ref: i, className: Ae(y), sx: { position: "relative", display: "flex", alignItems: "stretch", flex: "1 1 100%", maxWidth: "100%", ...x }, ...k, children: [e(dp, { ref: z, selectedTabIndex: T, tabNames: L, onSelectedTabIndexChange: F, onTabNameChange: V, onTabMove: M, background: m, borderColor: w, borderWidth: f, activeColor: null, disabled: c, disableDrag: P, createScrollStartButton: ud, createScrollEndButton: pd, createScrollEdgeButton: dd, createTabButton: ve, createTabDivider: (H) => {
3195
+ }, onClick: () => E(), children: e(tp, {}) }) }), [c, R, E]);
3196
+ return $(A, { ref: i, className: Ae(y), sx: { position: "relative", display: "flex", alignItems: "stretch", flex: "1 1 100%", maxWidth: "100%", ...x }, ...k, children: [e(up, { ref: z, selectedTabIndex: T, tabNames: L, onSelectedTabIndexChange: F, onTabNameChange: V, onTabMove: M, background: m, borderColor: w, borderWidth: f, activeColor: null, disabled: c, disableDrag: R, createScrollStartButton: gd, createScrollEndButton: md, createScrollEdgeButton: ud, createTabButton: ve, createTabDivider: (H) => {
3197
3197
  const { key: oe, ...Te } = H;
3198
3198
  return e(re, { sx: { marginLeft: "-1px", marginRight: "0px", marginTop: "6px", marginBottom: "6px", background: (ge) => he(ge.palette.divider, 0.25) }, ...Te }, oe);
3199
- }, editLabelProps: { readOnly: P, maxLength: 31, styleHover: { fontWeight: "700" }, onKeyPress: (H) => {
3199
+ }, editLabelProps: { readOnly: R, maxLength: 31, styleHover: { fontWeight: "700" }, onKeyPress: (H) => {
3200
3200
  o.isValidSheetNameCharacter(H.key) || H.preventDefault();
3201
3201
  }, onCancel: () => {
3202
3202
  l?.(T);
@@ -3204,7 +3204,7 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3204
3204
  H.button === 0 && H.preventDefault();
3205
3205
  }, onClick: () => {
3206
3206
  q ? ie.close(0) : ie.open(0);
3207
- }, icon: e(ep, {}) }) }) }), e("div", { style: { borderTop: `solid ${w} ${f}px`, minWidth: "4px" } }), e("div", { style: { borderTop: `solid ${w} ${f}px`, flex: "none", display: "flex", alignItems: "center" }, children: $e }), e("div", { style: { borderTop: `solid ${w} ${f}px`, flex: 1, minWidth: "24px" } }), Be, X] });
3207
+ }, icon: e(op, {}) }) }) }), e("div", { style: { borderTop: `solid ${w} ${f}px`, minWidth: "4px" } }), e("div", { style: { borderTop: `solid ${w} ${f}px`, flex: "none", display: "flex", alignItems: "center" }, children: $e }), e("div", { style: { borderTop: `solid ${w} ${f}px`, flex: 1, minWidth: "24px" } }), Be, X] });
3208
3208
  }));
3209
3209
  xl.displayName = "WorkbookStrip";
3210
3210
  const yl = Y(J((r, i) => {
@@ -3216,28 +3216,28 @@ const yl = Y(J((r, i) => {
3216
3216
  } }), He(t, [], { onChange: () => {
3217
3217
  u();
3218
3218
  } });
3219
- const x = W(() => ({}), []), f = W(() => ({ commandHook: { beforeExecute: (S, P) => c.closeAll(), onExecute() {
3219
+ const x = W(() => ({}), []), f = W(() => ({ commandHook: { beforeExecute: (S, R) => c.closeAll(), onExecute() {
3220
3220
  }, onError() {
3221
3221
  console.log("onError");
3222
3222
  } }, disabled: n, scope: "contextMenu", parentFloat: c }), [n, c]), w = W(() => ({ ...x, ...f, variant: le.Menuitem }), [x, f]), v = W(() => ({ commands: t, variant: le.Menuitem, parentFloat: c, ...f }), [t, f, c]), C = [];
3223
3223
  let k = d.isEntireRows(), T = d.isEntireColumns();
3224
- d && (k && (C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), C.push(Pe(O, { command: t.getCommand("hideColumns"), ...w, icon: R(e(md, {})), key: "context:" + C.length })), C.push(Pe(O, { command: t.getCommand("unhideColumns"), ...w, icon: R(e(gd, {})), key: "context:" + C.length }))), T && (C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), C.push(Pe(O, { command: t.getCommand("hideRows"), ...w, icon: R(e(hd, {})), key: "context:" + C.length })), C.push(Pe(O, { command: t.getCommand("unhideRows"), ...w, icon: R(e(fd, {})), key: "context:" + C.length }))), (k || T) && C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), k && C.push(Pe(O, { command: t.getCommand("autoFitColumns"), ...w, icon: R(e(bd, {})), key: "context:" + C.length })), T && C.push(Pe(O, { command: t.getCommand("autoFitRows"), ...w, icon: R(e(xd, {})), key: "context:" + C.length })));
3224
+ d && (k && (C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), C.push(Pe(O, { command: t.getCommand("hideColumns"), ...w, icon: D(e(hd, {})), key: "context:" + C.length })), C.push(Pe(O, { command: t.getCommand("unhideColumns"), ...w, icon: D(e(fd, {})), key: "context:" + C.length }))), T && (C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), C.push(Pe(O, { command: t.getCommand("hideRows"), ...w, icon: D(e(bd, {})), key: "context:" + C.length })), C.push(Pe(O, { command: t.getCommand("unhideRows"), ...w, icon: D(e(xd, {})), key: "context:" + C.length }))), (k || T) && C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), k && C.push(Pe(O, { command: t.getCommand("autoFitColumns"), ...w, icon: D(e(yd, {})), key: "context:" + C.length })), T && C.push(Pe(O, { command: t.getCommand("autoFitRows"), ...w, icon: D(e(wd, {})), key: "context:" + C.length })));
3225
3225
  const I = [], N = t.getCommand("formatTableStyle"), B = N?.context()?.table();
3226
3226
  if (Ht(N), !k && !T) {
3227
- if (I.push(e(re, { orientation: "horizontal" }, "contextBefore:" + I.length)), y?.getHyperlink()) I.push(Pe(ct, { ...v, popupCommandKeys: ["updateHyperlink", "deleteHyperlink"], popupScope: "hyperlink", key: "contextBefore:action" + I.length, quickCommand: "openHyperlink", icon: (S) => S.key() === "openHyperlink" ? R(e(Un, {})) : null }));
3227
+ if (I.push(e(re, { orientation: "horizontal" }, "contextBefore:" + I.length)), y?.getHyperlink()) I.push(Pe(ct, { ...v, popupCommandKeys: ["updateHyperlink", "deleteHyperlink"], popupScope: "hyperlink", key: "contextBefore:action" + I.length, quickCommand: "openHyperlink", icon: (S) => S.key() === "openHyperlink" ? D(e(Un, {})) : null }));
3228
3228
  else {
3229
3229
  const S = t.getCommand("updateHyperlink");
3230
- I.push(Pe(O, { command: S, ...w, icon: R(e(Un, {})), key: "contextBefore:" + I.length }));
3230
+ I.push(Pe(O, { command: S, ...w, icon: D(e(Un, {})), key: "contextBefore:" + I.length }));
3231
3231
  }
3232
- if (y?.getComments()) I.push(Pe(ct, { ...v, popupCommandKeys: ["deleteComments"], key: "contextBefore:action" + I.length, quickCommand: "updateComments", icon: (S) => S.key() === "updateComments" ? R(e(Gn, {})) : null }));
3232
+ if (y?.getComments()) I.push(Pe(ct, { ...v, popupCommandKeys: ["deleteComments"], key: "contextBefore:action" + I.length, quickCommand: "updateComments", icon: (S) => S.key() === "updateComments" ? D(e(Gn, {})) : null }));
3233
3233
  else {
3234
3234
  const S = t.getCommand("updateComments");
3235
- I.push(Pe(O, { command: S, ...w, icon: R(e(Gn, {})), key: "contextBefore:" + I.length }));
3235
+ I.push(Pe(O, { command: S, ...w, icon: D(e(Gn, {})), key: "contextBefore:" + I.length }));
3236
3236
  }
3237
- B ? I.push(Pe(ct, { ...v, variant: le.Menuitem, key: "contextBefore:" + I.length, popupCommandKeys: ["convertTableToRange", "deleteTable"], popupScope: "table", scope: "context", commandState: B, quickCommand: "editTable", icon: (S) => (S.key(), R(e(an, {}))) })) : I.push(Pe(O, { command: t.getCommand("insertTable"), ...w, icon: R(e(an, {})), key: "context:" + C.length })), I.push(Pe(Hi, { ...v, key: "contextBefore:" + I.length }));
3237
+ B ? I.push(Pe(ct, { ...v, variant: le.Menuitem, key: "contextBefore:" + I.length, popupCommandKeys: ["convertTableToRange", "deleteTable"], popupScope: "table", scope: "context", commandState: B, quickCommand: "editTable", icon: (S) => (S.key(), D(e(rn, {}))) })) : I.push(Pe(O, { command: t.getCommand("insertTable"), ...w, icon: D(e(rn, {})), key: "context:" + C.length })), I.push(Pe(Hi, { ...v, key: "contextBefore:" + I.length }));
3238
3238
  }
3239
- const D = $(se, { children: [e(O, { command: t.getCommand("cut"), ...w, icon: e(yd, {}) }), e(xr, { command: t.getCommand("copy"), ...w }), e(Ai, { command: t.getCommand("paste"), ...v, includePasteAllInPopup: !1 }), e(re, { orientation: "horizontal" }), e(Ni, { ...v }), e(re, { orientation: "horizontal" }), e(Mi, { commands: t, ...v, disableSheet: !0 }), e(Ii, { commands: t, ...v, disableSheet: !0 }), e(Ri, { ...v }), I, C] });
3240
- return e(A, { ref: i, className: Ae("menu", g), sx: { ...l }, ...a, children: D });
3239
+ const P = $(se, { children: [e(O, { command: t.getCommand("cut"), ...w, icon: e(Sd, {}) }), e(xr, { command: t.getCommand("copy"), ...w }), e(Ai, { command: t.getCommand("paste"), ...v, includePasteAllInPopup: !1 }), e(re, { orientation: "horizontal" }), e(Ni, { ...v }), e(re, { orientation: "horizontal" }), e(Mi, { commands: t, ...v, disableSheet: !0 }), e(Ii, { commands: t, ...v, disableSheet: !0 }), e(Ri, { ...v }), I, C] });
3240
+ return e(A, { ref: i, className: Ae("menu", g), sx: { ...l }, ...a, children: P });
3241
3241
  }));
3242
3242
  yl.displayName = "WorkbookContextMenu";
3243
3243
  const wl = Y(J((r, i) => {
@@ -3250,44 +3250,44 @@ const wl = Y(J((r, i) => {
3250
3250
  } }, disabled: n, parentFloat: c }), [n, c]), u = W(() => ({ variant: le.Menuitem, ...a, ...s }), [a, s]), p = W(() => ({ commands: t, variant: le.Menuitem, parentFloat: c, ...s }), [t, s, c]), h = (m) => {
3251
3251
  switch (m?.key()) {
3252
3252
  case "moveToFront":
3253
- return R(e(Md, {}));
3253
+ return D(e(Nd, {}));
3254
3254
  case "moveForward":
3255
- return R(e(Rd, {}));
3255
+ return D(e(Id, {}));
3256
3256
  case "moveToBack":
3257
- return R(e(Pd, {}));
3257
+ return D(e(Md, {}));
3258
3258
  case "moveBackward":
3259
- return R(e(Dd, {}));
3259
+ return D(e(Rd, {}));
3260
3260
  case "toggleLockAspectRatio":
3261
- return R(e(ia, {}));
3261
+ return D(e(ia, {}));
3262
3262
  case "formatDrawAlignLeft":
3263
- return R(e(la, {}));
3263
+ return D(e(la, {}));
3264
3264
  case "formatDrawAlignCenter":
3265
- return R(e(Ed, {}));
3265
+ return D(e(Pd, {}));
3266
3266
  case "formatDrawAlignRight":
3267
- return R(e(Td, {}));
3267
+ return D(e(Dd, {}));
3268
3268
  case "formatDrawAlignTop":
3269
- return R(e(kd, {}));
3269
+ return D(e(Ed, {}));
3270
3270
  case "formatDrawAlignMiddle":
3271
- return R(e(Cd, {}));
3271
+ return D(e(Td, {}));
3272
3272
  case "formatDrawAlignBottom":
3273
- return R(e(vd, {}));
3273
+ return D(e(kd, {}));
3274
3274
  case "formatDrawDistributeHorz":
3275
- return R(e(Sd, {}));
3275
+ return D(e(Cd, {}));
3276
3276
  case "formatDrawDistributeVert":
3277
- return R(e(wd, {}));
3277
+ return D(e(vd, {}));
3278
3278
  case "formatAnchorTypeTwoCell":
3279
3279
  case "formatAnchorTypeOneCell":
3280
3280
  case "formatAnchorTypeAbsolute":
3281
- return R(e(sa, {}));
3281
+ return D(e(sa, {}));
3282
3282
  default:
3283
3283
  return null;
3284
3284
  }
3285
- }, d = $(se, { children: [e(xr, { command: t.getCommand("copy"), ...u, variant: le.Menuitem }), [], e(re, { orientation: "horizontal" }), e(ct, { ...p, popupCommandKeys: ["moveToFront", "moveForward"], quickCommand: "moveToFront", icon: h }), e(ct, { ...p, popupCommandKeys: ["moveToBack", "moveBackward"], quickCommand: "moveToBack", icon: h }), e(re, { orientation: "horizontal" }), e(O, { ...u, command: t.getCommand("toggleLockAspectRatio"), icon: R(e(ia, {})) }), e(re, { orientation: "horizontal" }), e(ct, { ...p, popupCommandKeys: ["formatDrawAlignLeft", "formatDrawAlignCenter", "formatDrawAlignRight", null, "formatDrawAlignTop", "formatDrawAlignMiddle", "formatDrawAlignBottom", null, "formatDrawDistributeHorz", "formatDrawDistributeVert"], label: "Align", icon: (m) => h(m) || R(e(la, {})), tooltip: "Quickly change the placement of your drawings." }), e(re, { orientation: "horizontal" }), e(ct, { ...p, popupCommandKeys: ["formatAnchorTypeTwoCell", "formatAnchorTypeOneCell", "formatAnchorTypeAbsolute"], label: "Sizing", icon: (m) => h(m) || R(e(sa, {})), tooltip: "Determine how the drawing size will adjust as the cell sizes adjust." }), []] });
3285
+ }, d = $(se, { children: [e(xr, { command: t.getCommand("copy"), ...u, variant: le.Menuitem }), [], e(re, { orientation: "horizontal" }), e(ct, { ...p, popupCommandKeys: ["moveToFront", "moveForward"], quickCommand: "moveToFront", icon: h }), e(ct, { ...p, popupCommandKeys: ["moveToBack", "moveBackward"], quickCommand: "moveToBack", icon: h }), e(re, { orientation: "horizontal" }), e(O, { ...u, command: t.getCommand("toggleLockAspectRatio"), icon: D(e(ia, {})) }), e(re, { orientation: "horizontal" }), e(ct, { ...p, popupCommandKeys: ["formatDrawAlignLeft", "formatDrawAlignCenter", "formatDrawAlignRight", null, "formatDrawAlignTop", "formatDrawAlignMiddle", "formatDrawAlignBottom", null, "formatDrawDistributeHorz", "formatDrawDistributeVert"], label: "Align", icon: (m) => h(m) || D(e(la, {})), tooltip: "Quickly change the placement of your drawings." }), e(re, { orientation: "horizontal" }), e(ct, { ...p, popupCommandKeys: ["formatAnchorTypeTwoCell", "formatAnchorTypeOneCell", "formatAnchorTypeAbsolute"], label: "Sizing", icon: (m) => h(m) || D(e(sa, {})), tooltip: "Determine how the drawing size will adjust as the cell sizes adjust." }), []] });
3286
3286
  return e(A, { ref: i, sx: { paddingTop: "4px", paddingBottom: "4px", ...l }, ...g, children: d });
3287
3287
  }));
3288
3288
  wl.displayName = "MovableContextMenu";
3289
- const Bu = (r) => e(wl, { ...r }), Lu = (r) => e(yl, { ...r }), Hu = (r) => e(Yi, { ...r }), zu = (r, i) => e(Ki, { ref: i, ...r }), Wu = (r) => e(Lt, { ...r }), $u = (r, i) => e(pp, { ref: i, ...r }), ju = (r) => e(ji, { ...r }), Vu = (r) => e(xl, { ...r }), _u = { fireOnModelChange: !1 }, An = { flex: "1 1 100%", display: "flex" }, Sl = Y(J((r, i) => {
3290
- const { workbook: o, createWorkbookOptions: t, onNewWorkbook: n, onElementLoad: l, notifier: c, autoFocus: g = !1, sx: a, style: s, className: u, onFocus: p, onBlur: h, onKeyDown: d, onRepeatCommandChange: m, commands: y, showFormulaBar: b, formulaBarProps: x, renderFormulaBar: f = zu, showTabs: w, tabsProps: v, renderTabs: C = Vu, showStatusBar: k, statusBarProps: T, renderStatusBar: I = ju, toolbarProps: N, renderToolbar: B = fl, contextMenuSx: D, renderContextMenu: S = Lu, renderFilterMenu: P = Hu, renderMovableMenu: L = Bu, renderLoadingPanel: F = Wu, loadingPanelProps: V, sheetProps: M, renderSheet: E = $u, showHorizontalScrollbar: K, showVerticalScrollbar: Q, gridTheme: q, headersTheme: _, enableDarkImages: ne, ...ie } = r, X = at(), z = fr(), ee = W(() => {
3289
+ const Hu = (r) => e(wl, { ...r }), zu = (r) => e(yl, { ...r }), Wu = (r) => e(Yi, { ...r }), $u = (r, i) => e(Ki, { ref: i, ...r }), ju = (r) => e(Lt, { ...r }), Vu = (r, i) => e(mp, { ref: i, ...r }), _u = (r) => e(ji, { ...r }), Uu = (r) => e(xl, { ...r }), Gu = { fireOnModelChange: !1 }, An = { flex: "1 1 100%", display: "flex" }, Sl = Y(J((r, i) => {
3290
+ const { workbook: o, createWorkbookOptions: t, onNewWorkbook: n, onElementLoad: l, notifier: c, autoFocus: g = !1, sx: a, style: s, className: u, onFocus: p, onBlur: h, onKeyDown: d, onRepeatCommandChange: m, commands: y, showFormulaBar: b, formulaBarProps: x, renderFormulaBar: f = $u, showTabs: w, tabsProps: v, renderTabs: C = Uu, showStatusBar: k, statusBarProps: T, renderStatusBar: I = _u, toolbarProps: N, renderToolbar: B = fl, contextMenuSx: P, renderContextMenu: S = zu, renderFilterMenu: R = Wu, renderMovableMenu: L = Hu, renderLoadingPanel: F = ju, loadingPanelProps: V, sheetProps: M, renderSheet: E = Vu, showHorizontalScrollbar: K, showVerticalScrollbar: Q, gridTheme: q, headersTheme: _, enableDarkImages: ne, ...ie } = r, X = at(), z = fr(), ee = W(() => {
3291
3291
  const j = { theme: z.getDefaultTheme(), ...t };
3292
3292
  return o ?? new jn(j);
3293
3293
  }, [o]), me = Se(null), [Le, Fe] = U(!1), Be = Se(null), Ye = W(() => e(A, { className: "sheetxl-viewport", sx: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute", pointerEvents: "none !important", "& > :first-of-type": { position: "relative" } }, ref: Be }), []), [ve, $e] = U(!1), [H, oe] = U(!1), Te = G(() => {
@@ -3302,73 +3302,73 @@ const Bu = (r) => e(wl, { ...r }), Lu = (r) => e(yl, { ...r }), Hu = (r) => e(Yi
3302
3302
  requestAnimationFrame(() => {
3303
3303
  me?.current?.focus();
3304
3304
  });
3305
- }, []), [ye, qe] = U(ee?.getSelectedSheet()), [et, no] = U(ee?.getProtection());
3305
+ }, []), [ye, qe] = U(ee?.getSelectedSheet()), [et, oo] = U(ee?.getProtection());
3306
3306
  _e(ee, { onSheetsChange: (j) => {
3307
3307
  qe(j?.getSelectedSheet());
3308
3308
  }, onViewChange(j) {
3309
3309
  qe(j?.getSelectedSheet());
3310
3310
  }, onProtectionChange: (j) => {
3311
- no(j?.getProtection());
3311
+ oo(j?.getProtection());
3312
3312
  } }), _e(ee, { onRequestSelect: async (j, de) => new Promise((Ee) => {
3313
3313
  me.current.getSheet() !== de ? me.current.getGridElement()?.onViewChangeOnce(() => {
3314
3314
  me.current.getSheet() !== de && Ee(!1), Ee(!0);
3315
3315
  }) : Ee(!0);
3316
- }) }, _u);
3316
+ }) }, Gu);
3317
3317
  const [fn, Cr] = ar((j) => j + 1, 0), $t = ee?.getView();
3318
3318
  _e($t, { onViewChange: (j) => {
3319
3319
  Cr();
3320
3320
  } });
3321
- const ro = q ?? X, Ke = W(() => ja(X, ro), [X, ro]), kr = _ ?? X, Wl = W(() => ja(X, kr), [X, kr]), [Tr, $l] = U(null);
3321
+ const no = q ?? X, Ke = W(() => ja(X, no), [X, no]), kr = _ ?? X, Wl = W(() => ja(X, kr), [X, kr]), [Tr, $l] = U(null);
3322
3322
  G(() => {
3323
3323
  me.current.focus();
3324
3324
  }, []);
3325
- const [bn, Er] = U(!1), Dr = Se(null), Ie = Ru({ workbook: ee, workbookElement: fe.current, target: () => me.current, notifier: c, commands: y, darkMode: Ke.body.darkMode, onNewWorkbook: n, onShowSidebar: () => {
3325
+ const [bn, Er] = U(!1), Dr = Se(null), Ie = Iu({ workbook: ee, workbookElement: fe.current, target: () => me.current, notifier: c, commands: y, darkMode: Ke.body.darkMode, onNewWorkbook: n, onShowSidebar: () => {
3326
3326
  bn ? Dr.current?.focus() : Er(!0);
3327
- } }), xn = Se(null), [Pr, Rr] = U(!1), [jl, Mr] = U(null), [Vl, _l] = U(co.Top), [Bo, Ul] = U(fs.EmptyBounds), yn = () => {
3327
+ } }), xn = Se(null), [Pr, Rr] = U(!1), [jl, Mr] = U(null), [Vl, _l] = U(so.Top), [Ao, Ul] = U(fs.EmptyBounds), yn = () => {
3328
3328
  Rr(!1), Mr(null);
3329
- }, ao = (j, de, Ee = co.Top) => {
3329
+ }, ro = (j, de, Ee = so.Top) => {
3330
3330
  Ul(j), _l(Ee), Mr(de), xn.current !== null && xn.current.update(), Rr(!0);
3331
- }, [Em, Ir] = U("sheet"), Ct = w ?? $t?.isShowTabs(), kt = K ?? $t?.isShowHorizontalScrollbar(), Gl = b ?? $t?.isShowFormulaBar(), Lo = k ?? $t?.isShowStatusBar(), Nr = Q ?? $t?.isShowVerticalScrollbar(), jt = Ke?.header?.edgeStrokeFill || "rgb(171,171,171)", ql = W(() => Lo ? I({ sheet: ye, gridStyle: Ke, ...T }) : null, [I, T, Lo, Ke, ye]), Xl = W(() => B({ commands: Ie, workbook: fe.current, ...N }), [Ie, B, N, X]), [Kl, { width: Fr }] = Io(), Xe = Fr === 0 || Fr > 560, wn = W(() => {
3331
+ }, [Pm, Ir] = U("sheet"), Ct = w ?? $t?.isShowTabs(), kt = K ?? $t?.isShowHorizontalScrollbar(), Gl = b ?? $t?.isShowFormulaBar(), Bo = k ?? $t?.isShowStatusBar(), Nr = Q ?? $t?.isShowVerticalScrollbar(), jt = Ke?.header?.edgeStrokeFill || "rgb(171,171,171)", ql = W(() => Bo ? I({ sheet: ye, gridStyle: Ke, ...T }) : null, [I, T, Bo, Ke, ye]), Xl = W(() => B({ commands: Ie, workbook: fe.current, ...N }), [Ie, B, N, X]), [Kl, { width: Fr }] = Mo(), Xe = Fr === 0 || Fr > 560, wn = W(() => {
3332
3332
  if (!Ct) return null;
3333
- let j = C({ background: Ke.body.fill, borderWidth: 1, borderColor: jt, gridTheme: ro, gridStyle: Ke, onBeforeUserChange: ce, onUserChange: Me, workbook: ee, commands: Ie, sheetTabProps: {}, notifier: c, ...v });
3333
+ let j = C({ background: Ke.body.fill, borderWidth: 1, borderColor: jt, gridTheme: no, gridStyle: Ke, onBeforeUserChange: ce, onUserChange: Me, workbook: ee, commands: Ie, sheetTabProps: {}, notifier: c, ...v });
3334
3334
  return Xe || (j = e("div", { style: { flex: "none", display: "flex" }, children: j })), j;
3335
- }, [C, v, c, X, ee, ro, Xe, Ie, Ct]), Or = G((j) => {
3335
+ }, [C, v, c, X, ee, no, Xe, Ie, Ct]), Or = G((j) => {
3336
3336
  const de = Ze.getOS() === Ze.OSType.Firefox;
3337
3337
  let Ee = null, Ue = null, je = null;
3338
3338
  if (kt && (Ue = e("div", { style: { display: "flex", flex: "1 1 100%", borderTop: `solid ${jt} 1px`, maxWidth: "100%" }, children: e(ha, { style: { alignItems: "center", borderTop: (de ? 6 : 3) + "px solid transparent", borderBottom: (Xe ? 6 : 3) + "px solid transparent", borderLeft: (de ? 3 : 0) + "px solid transparent", borderRight: (de ? 3 : 0) + "px solid transparent" }, ...j, endGap: 700, sheet: ye, showCustomScrollButtons: !de, onShowTooltip: (Ve) => {
3339
- ao({ x: Ve.anchor.x, y: Ve.anchor.y, width: 0, height: 0 }, Ve.display, Ve.placement);
3339
+ ro({ x: Ve.anchor.x, y: Ve.anchor.y, width: 0, height: 0 }, Ve.display, Ve.placement);
3340
3340
  }, onCloseTooltip: () => yn() }) })), Ct && Xe && (je = wn), Ct && Xe && !kt && (je = $(A, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center" }, children: [je, e(A, { sx: { borderTop: `solid ${jt} 1px`, flex: "1" } })] })), je && kt) Ee = e(Xn, { position: ee.getView().getTabRatio() / 10 + "%", onPositionChange: ({ percent: Ve }) => {
3341
3341
  ee.getView().setTabRatio(Math.round(10 * Ve));
3342
3342
  }, minBefore: "200px", minAfter: "180px", resizerProps: { style: { minWidth: "11px", backgroundImage: `url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${X.palette.text.icon ?? X.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`, backgroundRepeat: "no-repeat", backgroundPosition: "center", borderTop: `solid ${jt} 1px`, borderBottom: "solid 3px transparent" } }, elementBefore: je, elementAfter: Ue });
3343
3343
  else if (kt) Ee = Ue;
3344
3344
  else {
3345
- if (!je) return e(A, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center", height: "1px", borderTop: Lo ? null : `solid ${jt} 1px` } });
3345
+ if (!je) return e(A, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center", height: "1px", borderTop: Bo ? null : `solid ${jt} 1px` } });
3346
3346
  Ee = je;
3347
3347
  }
3348
3348
  return e(A, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center" }, children: Ee });
3349
- }, [ye, ce, ee, Ke, ro, Ie, Ct, kt, Lo, Xe]), [tt, io] = ae.useState(null), Yl = W(() => ({ placement: "right-start", ...tt?.popperProps }), [tt?.popperProps]), { reference: Ar, component: Zl } = oo({ label: "contextMenu", popperProps: Yl, anchor: tt?.anchor ?? { getBoundingClientRect: () => new DOMRect(tt?.clientX || 0, tt?.clientY || 0) }, onClose: () => io(null), createPopupPanel: tt?.createPopupPanel });
3349
+ }, [ye, ce, ee, Ke, no, Ie, Ct, kt, Bo, Xe]), [tt, ao] = ae.useState(null), Yl = W(() => ({ placement: "right-start", ...tt?.popperProps }), [tt?.popperProps]), { reference: Ar, component: Zl } = to({ label: "contextMenu", popperProps: Yl, anchor: tt?.anchor ?? { getBoundingClientRect: () => new DOMRect(tt?.clientX || 0, tt?.clientY || 0) }, onClose: () => ao(null), createPopupPanel: tt?.createPopupPanel });
3350
3350
  ue(() => {
3351
3351
  tt ? Ar.open(0) : Ar.close(0);
3352
3352
  }, [tt]);
3353
3353
  const Jl = te((j, de) => {
3354
3354
  if (j?.isDefaultPrevented()) return !0;
3355
- j.preventDefault(), tt && tt.anchor === j.currentTarget ? io(null) : io({ anchor: j.currentTarget, popperProps: { offsets: [-4, 2] }, createPopupPanel: (Ee) => {
3355
+ j.preventDefault(), tt && tt.anchor === j.currentTarget ? ao(null) : ao({ anchor: j.currentTarget, popperProps: { offsets: [-4, 2] }, createPopupPanel: (Ee) => {
3356
3356
  const { floatReference: Ue } = Ee;
3357
- return P({ filter: de, commands: Ie, floatReference: Ue, sx: { ...D } });
3357
+ return R({ filter: de, commands: Ie, floatReference: Ue, sx: { ...P } });
3358
3358
  } });
3359
- }, [P, D, Ie, ee, tt]), Br = te((j) => {
3359
+ }, [R, P, Ie, ee, tt]), Br = te((j) => {
3360
3360
  if (j.originalEvent?.isDefaultPrevented()) return !0;
3361
- j.originalEvent?.preventDefault(), io({ clientX: j.clientX, clientY: j.clientY, createPopupPanel: (de) => {
3361
+ j.originalEvent?.preventDefault(), ao({ clientX: j.clientX, clientY: j.clientY, createPopupPanel: (de) => {
3362
3362
  const { floatReference: Ee } = de;
3363
- return S({ commands: Ie, workbook: ee, floatReference: Ee, sx: { ...D } });
3363
+ return S({ commands: Ie, workbook: ee, floatReference: Ee, sx: { ...P } });
3364
3364
  } });
3365
- }, [S, D, Ie, ee]), Ql = te((j, de) => {
3365
+ }, [S, P, Ie, ee]), Ql = te((j, de) => {
3366
3366
  if (j?.isDefaultPrevented()) return !0;
3367
- j.preventDefault(), io({ clientX: j.clientX, clientY: j.clientY, createPopupPanel: (Ee) => {
3367
+ j.preventDefault(), ao({ clientX: j.clientX, clientY: j.clientY, createPopupPanel: (Ee) => {
3368
3368
  const { floatReference: Ue } = Ee;
3369
- return L({ movable: de, commands: Ie, floatReference: Ue, sx: { ...D } });
3369
+ return L({ movable: de, commands: Ie, floatReference: Ue, sx: { ...P } });
3370
3370
  } });
3371
- }, [L, D, Ie]);
3371
+ }, [L, P, Ie]);
3372
3372
  W(() => {
3373
3373
  const j = [new Ge("openContextMenu", () => me.current, { label: "Context Menu", description: "Open the context menu.", shortcut: [{ key: "F10", modifiers: [ke.Shift] }, { key: "ContextMenu" }] })];
3374
3374
  Ie.addCommands(j, !0);
@@ -3394,13 +3394,13 @@ const Bu = (r) => e(wl, { ...r }), Lu = (r) => e(yl, { ...r }), Hu = (r) => e(Yi
3394
3394
  }, []), rs = te((j) => {
3395
3395
  const de = Ze.getOS() === Ze.OSType.Firefox;
3396
3396
  return e(ha, { style: { borderLeft: "3px solid transparent", borderRight: "0px solid transparent", borderTop: (de ? 3 : 0) + "px solid transparent", borderBottom: (de ? 3 : 0) + "px solid transparent", width: de ? "13px" : void 0 }, ...j, sheet: ye, endGap: 700, showCustomScrollButtons: !de, onShowTooltip: (Ee) => {
3397
- ao(Ee.anchor, Ee.display, co.Left);
3397
+ ro(Ee.anchor, Ee.display, so.Left);
3398
3398
  }, onCloseTooltip: () => yn() });
3399
3399
  }, [ye]);
3400
3400
  ue(() => {
3401
3401
  g && me && me.current && me.current.focus();
3402
3402
  }, []);
3403
- const [Ho, Sn] = ae.useState(null), vn = G((j) => {
3403
+ const [Lo, Sn] = ae.useState(null), vn = G((j) => {
3404
3404
  Ie?.getCommand("openWorkbook") && (j.type === "dragenter" || j.type === "dragover" ? j.dataTransfer?.types.includes("Files") ? j.dataTransfer.files[0]?.type?.startsWith("image/") || j.dataTransfer.items[0]?.type?.startsWith("image/") || j.dataTransfer.types.length === 1 && Sn("Drop to open") : (j.dataTransfer?.types.includes("text/html") || j.dataTransfer?.types.includes("text/plain"), j.dataTransfer.effectAllowed = "none", j.dataTransfer.dropEffect = "none") : j.type === "dragleave" && Sn(null), j.preventDefault());
3405
3405
  }, [Ie]), as = te((j) => {
3406
3406
  if (Ie?.getCommand("openWorkbook") && (j.preventDefault(), j.stopPropagation(), Sn(null), j.dataTransfer.files && j.dataTransfer.files.length > 0)) {
@@ -3414,29 +3414,29 @@ const Bu = (r) => e(wl, { ...r }), Lu = (r) => e(yl, { ...r }), Hu = (r) => e(Yi
3414
3414
  Ie?.getCommand("insertImageFromFile")?.execute({ file: de, options: { bounds: { x: je.x, y: je.y } }, goto: { range: { ...Ve } } });
3415
3415
  } else Ie?.getCommand("openWorkbook")?.execute(de);
3416
3416
  }
3417
- }, [Ie, Ho]), is = W(() => Ho ? e(A, { sx: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", pointerEvents: "none", display: "flex", justifyContent: "center", alignItems: "center", background: (j) => j.palette.divider, color: (j) => j.palette.primary.dark }, children: e(Oe, { variant: "h4", children: Ho }) }) : null, [Ho]), Lr = Se(null), ls = W(() => e(Qn, { in: !H, nodeRef: Lr, timeout: 500, classNames: "animating", unmountOnExit: !0, children: e(A, { style: { display: "flex", alignItems: "center", justifyContent: "center", left: "0px", top: "0px", width: "100%", height: "100%", pointerEvents: H ? "none" : a?.pointerEvents, position: "absolute", boxSizing: "border-box" }, children: F({ ref: Lr, transitionDelay: "0", transparentBackground: !1, sx: { opacity: H ? 0 : a?.opacity, pointerEvents: H ? "none" : a?.pointerEvents, position: "absolute", left: "0px", top: "0px", width: "100%", height: "100%", ...V } }) }) }), [H, F, V]), ss = W(() => f({ sx: { marginTop: (j) => j.spacing(0.25), marginLeft: (j) => j.spacing(1), marginRight: (j) => j.spacing(1) }, workbook: ee, sheetElement: me.current, gridStyle: Ke, onFocus: ns, ...x, NamedCollectionEditorProps: { restoreFocus: (j) => me.current.focus(j), notifier: c, ...x?.NamedCollectionEditorProps, commandPopupButtonProps: { commands: Ie, ...x?.NamedCollectionEditorProps?.commandPopupButtonProps } } }, ge), [f, x, ee, Ke, Ie, H]), cs = G((j) => {
3417
+ }, [Ie, Lo]), is = W(() => Lo ? e(A, { sx: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", pointerEvents: "none", display: "flex", justifyContent: "center", alignItems: "center", background: (j) => j.palette.divider, color: (j) => j.palette.primary.dark }, children: e(Oe, { variant: "h4", children: Lo }) }) : null, [Lo]), Lr = Se(null), ls = W(() => e(Qn, { in: !H, nodeRef: Lr, timeout: 500, classNames: "animating", unmountOnExit: !0, children: e(A, { style: { display: "flex", alignItems: "center", justifyContent: "center", left: "0px", top: "0px", width: "100%", height: "100%", pointerEvents: H ? "none" : a?.pointerEvents, position: "absolute", boxSizing: "border-box" }, children: F({ ref: Lr, transitionDelay: "0", transparentBackground: !1, sx: { opacity: H ? 0 : a?.opacity, pointerEvents: H ? "none" : a?.pointerEvents, position: "absolute", left: "0px", top: "0px", width: "100%", height: "100%", ...V } }) }) }), [H, F, V]), ss = W(() => f({ sx: { marginTop: (j) => j.spacing(0.25), marginLeft: (j) => j.spacing(1), marginRight: (j) => j.spacing(1) }, workbook: ee, sheetElement: me.current, gridStyle: Ke, onFocus: ns, ...x, NamedCollectionEditorProps: { restoreFocus: (j) => me.current.focus(j), notifier: c, ...x?.NamedCollectionEditorProps, commandPopupButtonProps: { commands: Ie, ...x?.NamedCollectionEditorProps?.commandPopupButtonProps } } }, ge), [f, x, ee, Ke, Ie, H]), cs = G((j) => {
3418
3418
  const { movable: de, ...Ee } = j, Ue = { movable: de, onContextMenuCapture: (Tt) => {
3419
3419
  Ql(Tt, de);
3420
3420
  }, ...Ee }, je = de.getContent().getType();
3421
3421
  let Ve = null;
3422
- if (je === "picture") return e(up, { loadingPanel: e(Lt, { transitionDelay: "100", style: { position: "absolute" }, sx: { border: (Tt) => `solid 1px ${Tt.palette.action.active}` } }), picture: de.getContent(), description: de.getDescription() ?? de?.getName(), ...Ue });
3422
+ if (je === "picture") return e(gp, { loadingPanel: e(Lt, { transitionDelay: "100", style: { position: "absolute" }, sx: { border: (Tt) => `solid 1px ${Tt.palette.action.active}` } }), picture: de.getContent(), description: de.getDescription() ?? de?.getName(), ...Ue });
3423
3423
  if (je === "chart") {
3424
3424
  const Tt = { ...Ue, chart: de.getContent() };
3425
- return e(mp, { ...Tt });
3425
+ return e(hp, { ...Tt });
3426
3426
  }
3427
3427
  if (Ve = `Float of type '${je}'.`, typeof Ve == "string") {
3428
3428
  const Tt = { ...Ue, description: Ve };
3429
- Ve = e(gp, { ...Tt });
3429
+ Ve = e(fp, { ...Tt });
3430
3430
  }
3431
3431
  return e("div", { style: { position: "absolute", clipPath: "inset(0px)", display: "flex", alignItems: "stretch", justifyContent: "stretch", pointerEvents: "all" }, children: Ve }, de.getUUID());
3432
3432
  }, []), Hr = W(() => E({ style: An, onFocus: os, notifier: c, gridStyle: Ke, headersStyle: Wl, sheet: ye, commands: Ie, onSheetContextMenu: Br, onViewportChange: (j) => {
3433
3433
  $l(j);
3434
3434
  }, showScrollbars: !1, viewportComponent: Ye, onRepeatCommandChange: m, onElementLoad: Te, onShowColumnTooltip: (j) => {
3435
- ao(j.anchor, j.display, co.Top);
3435
+ ro(j.anchor, j.display, so.Top);
3436
3436
  }, onShowRowTooltip: (j) => {
3437
- ao(j.anchor, j.display, co.Right);
3437
+ ro(j.anchor, j.display, so.Right);
3438
3438
  }, onShowTooltip: (j) => {
3439
- ao({ x: j.anchor.x, y: j.anchor.y, width: 0, height: 0 }, j.display, j.placement);
3439
+ ro({ x: j.anchor.x, y: j.anchor.y, width: 0, height: 0 }, j.display, j.placement);
3440
3440
  }, onCloseTooltip: () => yn(), renderMovable: cs, ...M, cellRenderProps: { onFilterButtonMouseDown: (j, de) => {
3441
3441
  M?.cellRenderProps?.onFilterButtonMouseDown(j, de), Jl(j, de);
3442
3442
  }, ...M?.cellRenderProps } }, me), [E, Ie, M, ye, Ke, c, m]), Cn = W(() => {
@@ -3448,15 +3448,15 @@ const Bu = (r) => e(wl, { ...r }), Lu = (r) => e(yl, { ...r }), Hu = (r) => e(Yi
3448
3448
  });
3449
3449
  }, readOnly: j, commands: Ie, ref: Dr, scripts: ee.getScripts() });
3450
3450
  }, [bn, Ie, ee, c, et]), ds = W(() => {
3451
- const j = e(np, { style: { ...An, marginRight: Cn && Xe ? "0px" : "6px" }, viewport: Tr, touchElement: me.current?.getGridElement()?.stage, onScrollViewport: (Ve) => {
3451
+ const j = e(ap, { style: { ...An, marginRight: Cn && Xe ? "0px" : "6px" }, viewport: Tr, touchElement: me.current?.getGridElement()?.stage, onScrollViewport: (Ve) => {
3452
3452
  me.current?.getGridElement()?.scrollTo(Ve);
3453
3453
  }, showHorizontalScrollbar: kt || Ct, showVerticalScrollbar: Nr, createHorizontalScrollbar: Or, createVerticalScrollbar: rs, children: Hr });
3454
3454
  let de = j;
3455
3455
  Xe || (de = $(se, { children: [j, wn] }));
3456
3456
  let Ee = null, Ue = 4, je = 13;
3457
3457
  return Xe ? Ee = "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" : (Ee = "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", Ue = 13, je = 4), e(Xn, { fixedPane: "after", position: "40%", minAfter: Xe ? "280px" : "120px", splitDirection: Xe ? "row" : "column", style: An, ref: Kl, resizerProps: { className: "styled-resizer", style: { minWidth: Xe ? "6px" : void 0, minHeight: Xe ? void 0 : "6px", maskImage: `url("data:image/svg+xml,%3Csvg width='${Ue}' height='${je}' viewBox='0 0 ${Ue} ${je}' version='1.1' fill='${X.palette.text.icon ?? X.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${Ee}' /%3E%3C/svg%3E%0A")`, maskRepeat: "no-repeat", maskPosition: Xe ? "left center" : "top center" } }, elementBefore: de, paneBeforeProps: { style: { flexDirection: "column" } }, elementAfter: Cn, paneAfterProps: { style: { marginLeft: Xe ? "0px" : "4px", marginRight: Xe ? "8px" : "4px" } } });
3458
- }, [kt, Ct, Or, Nr, Tr, Cn, Hr, wn, X, Xe]), ps = W(() => ({ boxSizing: "border-box", background: (j) => j.palette.mode !== "dark" ? Ke.header.fill : j.palette.background.paper, "& *": { ...Id(X), fontWeight: 400 }, "&.Mui-focusVisible": {}, "& .viewport-overlay": { borderRight: `solid ${jt} 1px` }, ...a }), [a, Ke]);
3459
- return $(Po, { className: Ae("sheetxl-workbook", Nu, { "Mui-focusVisible": Le }, Iu, u), sx: ps, style: s, square: !1, ...ie, ref: fe, onFocus: (j) => {
3458
+ }, [kt, Ct, Or, Nr, Tr, Cn, Hr, wn, X, Xe]), ps = W(() => ({ boxSizing: "border-box", background: (j) => j.palette.mode !== "dark" ? Ke.header.fill : j.palette.background.paper, "& *": { ...Fd(X), fontWeight: 400 }, "&.Mui-focusVisible": {}, "& .viewport-overlay": { borderRight: `solid ${jt} 1px` }, ...a }), [a, Ke]);
3459
+ return $(Do, { className: Ae("sheetxl-workbook", Ou, { "Mui-focusVisible": Le }, Fu, u), sx: ps, style: s, square: !1, ...ie, ref: fe, onFocus: (j) => {
3460
3460
  Fe(!0), ts(), p?.(j);
3461
3461
  }, onBlur: (j) => {
3462
3462
  Fe(!1), h?.(j);
@@ -3467,14 +3467,14 @@ const Bu = (r) => e(wl, { ...r }), Lu = (r) => e(yl, { ...r }), Hu = (r) => e(Yi
3467
3467
  const de = new Image();
3468
3468
  de.src = j.target.src, j.dataTransfer.setDragImage(de, 1, 1);
3469
3469
  }
3470
- }, onDragEnter: vn, onDragLeave: vn, onDragOver: vn, onDrop: as, children: [$("div", { className: Ae(Li), style: { flex: "1 1 100%", width: "100%", display: "flex", flexDirection: "column", opacity: H ? void 0 : 0, "--sxl-app-color-high-contrast": X.palette.primary.main, "--sxl-app-color-primary": X.palette.primary.main, "--sxl-app-color-primary-dark": X.palette.primary.dark, "--sxl-app-color-primary-light": X.palette.primary.light, "--sxl-app-color-info": X.palette.info.main, "--sxl-app-color-info-dark": X.palette.info.dark, "--sxl-app-color-info-light": X.palette.info.light, "--sxl-app-color-secondary": X.palette.secondary.main, "--sxl-app-color-secondary-dark": X.palette.secondary.dark, "--sxl-app-color-secondary-light": X.palette.secondary.light, "--sxl-app-color-success": X.palette.success.main, "--sxl-app-color-success-dark": X.palette.success.dark, "--sxl-app-color-success-light": X.palette.success.light, "--sxl-app-color-warning": X.palette.warning.main, "--sxl-app-color-warning-dark": X.palette.warning.dark, "--sxl-app-color-warning-light": X.palette.warning.light, "--sxl-app-color-error": X.palette.error.main, "--sxl-app-color-error-dark": X.palette.error.dark, "--sxl-app-color-error-light": X.palette.error.light, "--sxl-app-color-text": X.palette.text.primary, "--sxl-app-color-text-secondary": X.palette.text.secondary, "--sxl-app-color-text-disabled": X.palette.text.disabled, "--sxl-app-color-background": X.palette.background.paper, "--sxl-app-color-button-surface": X.palette.grey[600], "--sxl-app-color-shadow": X.palette.action.focus, "--sxl-app-color-grey": X.palette.grey[500], "--sxl-app-filter-dark-invert": Ke.body.darkMode && ne ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", "--sxl-app-image-background": Ke.body.darkMode ? `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` : void 0 }, children: [Xl, Gl ? ss : null, e(A, { sx: { marginBottom: (j) => j.spacing(0.75) } }), ds, ql, e(At, { arrow: !0, disableInteractive: !0, open: Pr, title: e(Oe, { variant: "subtitle2", component: "div", children: jl }), placement: Vl, TransitionProps: { timeout: { exit: 0 } }, PopperProps: { popperRef: xn, sx: { "& .MuiTooltip-tooltip": { padding: "2px 6px", "& .MuiTooltip-arrow": { display: Pr ? "visible" : "none" } } }, anchorEl: { getBoundingClientRect: () => new DOMRect(Bo.x, Bo.y, Bo.width, Bo.height) }, modifiers: [{ name: "offset", options: { offset: [0, 0] } }] }, children: e(A, {}) }), Zl, is] }), ls] });
3470
+ }, onDragEnter: vn, onDragLeave: vn, onDragOver: vn, onDrop: as, children: [$("div", { className: Ae(Li), style: { flex: "1 1 100%", width: "100%", display: "flex", flexDirection: "column", opacity: H ? void 0 : 0, "--sxl-app-color-high-contrast": X.palette.primary.main, "--sxl-app-color-primary": X.palette.primary.main, "--sxl-app-color-primary-dark": X.palette.primary.dark, "--sxl-app-color-primary-light": X.palette.primary.light, "--sxl-app-color-info": X.palette.info.main, "--sxl-app-color-info-dark": X.palette.info.dark, "--sxl-app-color-info-light": X.palette.info.light, "--sxl-app-color-secondary": X.palette.secondary.main, "--sxl-app-color-secondary-dark": X.palette.secondary.dark, "--sxl-app-color-secondary-light": X.palette.secondary.light, "--sxl-app-color-success": X.palette.success.main, "--sxl-app-color-success-dark": X.palette.success.dark, "--sxl-app-color-success-light": X.palette.success.light, "--sxl-app-color-warning": X.palette.warning.main, "--sxl-app-color-warning-dark": X.palette.warning.dark, "--sxl-app-color-warning-light": X.palette.warning.light, "--sxl-app-color-error": X.palette.error.main, "--sxl-app-color-error-dark": X.palette.error.dark, "--sxl-app-color-error-light": X.palette.error.light, "--sxl-app-color-text": X.palette.text.primary, "--sxl-app-color-text-secondary": X.palette.text.secondary, "--sxl-app-color-text-disabled": X.palette.text.disabled, "--sxl-app-color-background": X.palette.background.paper, "--sxl-app-color-button-surface": X.palette.grey[600], "--sxl-app-color-shadow": X.palette.action.focus, "--sxl-app-color-grey": X.palette.grey[500], "--sxl-app-filter-dark-invert": Ke.body.darkMode && ne ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", "--sxl-app-image-background": Ke.body.darkMode ? `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` : void 0 }, children: [Xl, Gl ? ss : null, e(A, { sx: { marginBottom: (j) => j.spacing(0.75) } }), ds, ql, e(At, { arrow: !0, disableInteractive: !0, open: Pr, title: e(Oe, { variant: "subtitle2", component: "div", children: jl }), placement: Vl, TransitionProps: { timeout: { exit: 0 } }, PopperProps: { popperRef: xn, sx: { "& .MuiTooltip-tooltip": { padding: "2px 6px", "& .MuiTooltip-arrow": { display: Pr ? "visible" : "none" } } }, anchorEl: { getBoundingClientRect: () => new DOMRect(Ao.x, Ao.y, Ao.width, Ao.height) }, modifiers: [{ name: "offset", options: { offset: [0, 0] } }] }, children: e(A, {}) }), Zl, is] }), ls] });
3471
3471
  }));
3472
3472
  Sl.displayName = "WorkbookElement";
3473
- const Uu = (r = !1, i = !1) => i ? null : { "& input:not(:focus):not(:hover)": { color: (o) => o.palette.text.secondary }, backgroundColor: (o) => he(o.palette.background.paper, 0.6), borderRadius: (o) => `${o.shape.borderRadius}px`, border: (o) => `solid ${r ? o.palette.divider : "transparent"} 1px`, "&.Mui-disabled": { border: (o) => `solid ${r ? o.palette.divider : "transparent"} 1px` }, "&:focus-within:not([disabled])": { backgroundColor: (o) => o.palette.background.paper }, "&:hover:not([disabled])": { border: (o) => `solid ${r ? o.palette.text?.primary : o.palette.divider} 1px`, backgroundColor: null }, "&.Mui-focusVisible": { outline: (o) => `solid ${o.palette.primary.main} 1px !important`, border: (o) => `1px solid ${o.palette?.primary?.main} !important` } }, vl = Y(J((r, i) => {
3474
- const { sx: o, workbook: t, title: n = "", placeHolder: l = "Untitled", onTitleChange: c, readOnly: g = !1, hidden: a, ...s } = r, [u, p] = U(!1), [h, d] = U(!1), [m, y] = U(n ?? ""), [b, x] = U(""), [f, { width: w }] = Io(), [v, { width: C }] = Io(), [k, T] = U(!1), I = Se(null), N = Se(null), B = zt(i, () => ({ requestWorkbookTitle: (D = null, S) => {
3475
- N.current = { onAccept: D, requestReason: S?.requestReason }, S?.selectAll && I.current?.select(), I.current?.focus(S);
3476
- }, focus: (D) => {
3477
- I.current?.focus(D);
3473
+ const qu = (r = !1, i = !1) => i ? null : { "& input:not(:focus):not(:hover)": { color: (o) => o.palette.text.secondary }, backgroundColor: (o) => he(o.palette.background.paper, 0.6), borderRadius: (o) => `${o.shape.borderRadius}px`, border: (o) => `solid ${r ? o.palette.divider : "transparent"} 1px`, "&.Mui-disabled": { border: (o) => `solid ${r ? o.palette.divider : "transparent"} 1px` }, "&:focus-within:not([disabled])": { backgroundColor: (o) => o.palette.background.paper }, "&:hover:not([disabled])": { border: (o) => `solid ${r ? o.palette.text?.primary : o.palette.divider} 1px`, backgroundColor: null }, "&.Mui-focusVisible": { outline: (o) => `solid ${o.palette.primary.main} 1px !important`, border: (o) => `1px solid ${o.palette?.primary?.main} !important` } }, vl = Y(J((r, i) => {
3474
+ const { sx: o, workbook: t, title: n = "", placeHolder: l = "Untitled", onTitleChange: c, readOnly: g = !1, hidden: a, ...s } = r, [u, p] = U(!1), [h, d] = U(!1), [m, y] = U(n ?? ""), [b, x] = U(""), [f, { width: w }] = Mo(), [v, { width: C }] = Mo(), [k, T] = U(!1), I = Se(null), N = Se(null), B = zt(i, () => ({ requestWorkbookTitle: (P = null, S) => {
3475
+ N.current = { onAccept: P, requestReason: S?.requestReason }, S?.selectAll && I.current?.select(), I.current?.focus(S);
3476
+ }, focus: (P) => {
3477
+ I.current?.focus(P);
3478
3478
  } }), []);
3479
3479
  return St(() => {
3480
3480
  T(n !== m), x(n), y(n);
@@ -3484,32 +3484,32 @@ const Uu = (r = !1, i = !1) => i ? null : { "& input:not(:focus):not(:hover)": {
3484
3484
  }, 300)();
3485
3485
  }, [k, w]), ue(() => {
3486
3486
  d(m && !Yt.isValidWindowsFilename(m));
3487
- }, [m]), a ? null : e(A, { sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", opacity: k ? "0" : "1", transition: k ? void 0 : "opacity .25s ease-in", "& .tooltip-wrapper": { maxWidth: "100%" } }, ref: Fo([B, v, i]), ...s, children: e(rt, { label: N.current?.requestReason ?? "Workbook Name", children: $(A, { className: Ae({ "Mui-focusVisible": u }), sx: { visibility: w === 0 ? "hidden" : "visible", display: "block", maxWidth: "100%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", paddingLeft: "12px", paddingRight: "12px", marginLeft: "2px", marginRight: "2px", paddingTop: "2px", paddingBottom: "1px", ...Uu(!0, g), ...o }, children: [g ? e(Oe, { variant: "subtitle1", component: "div", sx: { whiteSpace: "nowrap", fontStyle: m !== b ? "italic" : void 0, userSelect: "none", textOverflow: "ellipsis", lineHeight: "1.4375em", border: "transparent 1px solid", color: (D) => h ? D.palette.error.dark : void 0 }, children: n ?? l }) : e(lr, { sx: { width: `${Math.min(w + 3, Math.max(C, B.current?.getBoundingClientRect()?.width))}px`, overflow: "hidden", whiteSpace: "nowrap", fontWeight: "600", maxWidth: "100%", border: "none", padding: "0px", margin: "0px", color: (D) => h ? D.palette.error.dark : void 0, fontStyle: m !== b ? "italic" : void 0, "& input": { paddingTop: "0px", paddingBottom: "0px", textOverflow: "ellipsis" } }, disableUnderline: !0, fullWidth: !1, multiline: !1, readOnly: g, spellCheck: !1, placeholder: l, onFocus: (D) => {
3488
- p(!0), D.target?.select();
3487
+ }, [m]), a ? null : e(A, { sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", opacity: k ? "0" : "1", transition: k ? void 0 : "opacity .25s ease-in", "& .tooltip-wrapper": { maxWidth: "100%" } }, ref: No([B, v, i]), ...s, children: e(rt, { label: N.current?.requestReason ?? "Workbook Name", children: $(A, { className: Ae({ "Mui-focusVisible": u }), sx: { visibility: w === 0 ? "hidden" : "visible", display: "block", maxWidth: "100%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", paddingLeft: "12px", paddingRight: "12px", marginLeft: "2px", marginRight: "2px", paddingTop: "2px", paddingBottom: "1px", ...qu(!0, g), ...o }, children: [g ? e(Oe, { variant: "subtitle1", component: "div", sx: { whiteSpace: "nowrap", fontStyle: m !== b ? "italic" : void 0, userSelect: "none", textOverflow: "ellipsis", lineHeight: "1.4375em", border: "transparent 1px solid", color: (P) => h ? P.palette.error.dark : void 0 }, children: n ?? l }) : e(lr, { sx: { width: `${Math.min(w + 3, Math.max(C, B.current?.getBoundingClientRect()?.width))}px`, overflow: "hidden", whiteSpace: "nowrap", fontWeight: "600", maxWidth: "100%", border: "none", padding: "0px", margin: "0px", color: (P) => h ? P.palette.error.dark : void 0, fontStyle: m !== b ? "italic" : void 0, "& input": { paddingTop: "0px", paddingBottom: "0px", textOverflow: "ellipsis" } }, disableUnderline: !0, fullWidth: !1, multiline: !1, readOnly: g, spellCheck: !1, placeholder: l, onFocus: (P) => {
3488
+ p(!0), P.target?.select();
3489
3489
  }, inputProps: { name: "input-workbook-title", autoComplete: "off", ref: I }, onBlur: () => {
3490
3490
  p(!1), h ? y(b) : (m !== b && (c?.(m), m && N.current?.onAccept?.(m, "blur")), N.current = null);
3491
- }, onChange: (D) => {
3492
- if (D.target.value.length > Yt.MAX_WORKBOOK_NAME_SIZE) return D.stopPropagation(), void D.preventDefault();
3493
- y(D.target.value);
3494
- }, onKeyDown: (D) => {
3495
- (Yt.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(D.key) || D.target?.value.length > Yt.MAX_WORKBOOK_NAME_SIZE) && D.preventDefault(), D.which === be.Enter || D.which === be.Tab ? (h ? y(b) : (c?.(m), m && (N.current?.onAccept?.(m, "keydown"), N.current = null)), D.stopPropagation(), D.preventDefault(), t?.focus()) : D.which === be.Escape && (m === b ? t?.focus() : (y(b), setTimeout(() => {
3496
- D.target?.select();
3497
- }, 0)), N.current = null, D.stopPropagation(), D.preventDefault());
3498
- }, value: m }), e(A, { ref: f, sx: { position: "absolute", visibility: "hidden", top: "-9999px", fontWeight: "600 !important", whiteSpace: "pre", fontStyle: m !== b ? "italic" : void 0, fontFamily: (D) => D.typography.fontFamily, letterSpacing: "0.00938em" }, children: m || l })] }) }) });
3491
+ }, onChange: (P) => {
3492
+ if (P.target.value.length > Yt.MAX_WORKBOOK_NAME_SIZE) return P.stopPropagation(), void P.preventDefault();
3493
+ y(P.target.value);
3494
+ }, onKeyDown: (P) => {
3495
+ (Yt.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(P.key) || P.target?.value.length > Yt.MAX_WORKBOOK_NAME_SIZE) && P.preventDefault(), P.which === be.Enter || P.which === be.Tab ? (h ? y(b) : (c?.(m), m && (N.current?.onAccept?.(m, "keydown"), N.current = null)), P.stopPropagation(), P.preventDefault(), t?.focus()) : P.which === be.Escape && (m === b ? t?.focus() : (y(b), setTimeout(() => {
3496
+ P.target?.select();
3497
+ }, 0)), N.current = null, P.stopPropagation(), P.preventDefault());
3498
+ }, value: m }), e(A, { ref: f, sx: { position: "absolute", visibility: "hidden", top: "-9999px", fontWeight: "600 !important", whiteSpace: "pre", fontStyle: m !== b ? "italic" : void 0, fontFamily: (P) => P.typography.fontFamily, letterSpacing: "0.00938em" }, children: m || l })] }) }) });
3499
3499
  }));
3500
3500
  vl.displayName = "WorkbookTitle";
3501
- const Gu = Y(J((r, i) => {
3501
+ const Xu = Y(J((r, i) => {
3502
3502
  const { sx: o, style: t, className: n, licenseKey: l, renderLoadingPanel: c, ...g } = r;
3503
- l && vo.setLicenseKey(l);
3503
+ l && So.setLicenseKey(l);
3504
3504
  const a = W(() => {
3505
3505
  const u = { transitionDelay: "160ms", transparentBackground: !0 };
3506
3506
  return e(A, { sx: o, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", ...t }, children: c?.(u) ?? e(Lt, { ...u }) });
3507
- }, [o, t, c]), s = W(() => ae.lazy(async () => await Promise.resolve().then(() => Tm)), []);
3507
+ }, [o, t, c]), s = W(() => ae.lazy(async () => await Promise.resolve().then(() => Dm)), []);
3508
3508
  return e(se, { children: e(ci, { fallback: a, children: e(s, { ...g, className: n, renderLoadingPanel: c, sx: o, style: t, ref: i }) }) });
3509
3509
  }));
3510
- Gu.displayName = "Studio";
3511
- const qu = ys(null), Bn = { didCatch: !1, error: null };
3512
- class Xu extends di {
3510
+ Xu.displayName = "Studio";
3511
+ const Ku = ys(null), Bn = { didCatch: !1, error: null };
3512
+ class Yu extends di {
3513
3513
  constructor(i) {
3514
3514
  super(i), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Bn;
3515
3515
  }
@@ -3547,7 +3547,7 @@ class Xu extends di {
3547
3547
  g = n;
3548
3548
  }
3549
3549
  }
3550
- return Pe(qu.Provider, { value: { didCatch: l, error: c, resetErrorBoundary: this.resetErrorBoundary } }, g);
3550
+ return Pe(Ku.Provider, { value: { didCatch: l, error: c, resetErrorBoundary: this.resetErrorBoundary } }, g);
3551
3551
  }
3552
3552
  }
3553
3553
  function Cl(r) {
@@ -3561,7 +3561,7 @@ function Wt() {
3561
3561
  for (var r, i, o = 0, t = ""; o < arguments.length; ) (r = arguments[o++]) && (i = Cl(r)) && (t && (t += " "), t += i);
3562
3562
  return t;
3563
3563
  }
3564
- let Ku = { data: "" }, Yu = (r) => typeof window == "object" ? ((r ? r.querySelector("#_goober") : window._goober) || Object.assign((r || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : r || Ku, Zu = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Ju = /\/\*[^]*?\*\/| +/g, Ya = /\n+/g, Ft = (r, i) => {
3564
+ let Zu = { data: "" }, Ju = (r) => typeof window == "object" ? ((r ? r.querySelector("#_goober") : window._goober) || Object.assign((r || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : r || Zu, Qu = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, em = /\/\*[^]*?\*\/| +/g, Ya = /\n+/g, Ft = (r, i) => {
3565
3565
  let o = "", t = "", n = "";
3566
3566
  for (let l in r) {
3567
3567
  let c = r[l];
@@ -3575,7 +3575,7 @@ let Ku = { data: "" }, Yu = (r) => typeof window == "object" ? ((r ? r.querySele
3575
3575
  return i;
3576
3576
  }
3577
3577
  return r;
3578
- }, Qu = (r, i, o, t, n) => {
3578
+ }, tm = (r, i, o, t, n) => {
3579
3579
  let l = kl(r), c = ut[l] || (ut[l] = ((a) => {
3580
3580
  let s = 0, u = 11;
3581
3581
  for (; s < a.length; ) u = 101 * u + a.charCodeAt(s++) >>> 0;
@@ -3584,7 +3584,7 @@ let Ku = { data: "" }, Yu = (r) => typeof window == "object" ? ((r ? r.querySele
3584
3584
  if (!ut[c]) {
3585
3585
  let a = l !== r ? r : ((s) => {
3586
3586
  let u, p, h = [{}];
3587
- for (; u = Zu.exec(s.replace(Ju, "")); ) u[4] ? h.shift() : u[3] ? (p = u[3].replace(Ya, " ").trim(), h.unshift(h[0][p] = h[0][p] || {})) : h[0][u[1]] = u[2].replace(Ya, " ").trim();
3587
+ for (; u = Qu.exec(s.replace(em, "")); ) u[4] ? h.shift() : u[3] ? (p = u[3].replace(Ya, " ").trim(), h.unshift(h[0][p] = h[0][p] || {})) : h[0][u[1]] = u[2].replace(Ya, " ").trim();
3588
3588
  return h[0];
3589
3589
  })(r);
3590
3590
  ut[c] = Ft(n ? { ["@keyframes " + c]: a } : a, o ? "" : "." + c);
@@ -3596,14 +3596,14 @@ let Ku = { data: "" }, Yu = (r) => typeof window == "object" ? ((r ? r.querySele
3596
3596
  };
3597
3597
  function er(r) {
3598
3598
  let i = this || {}, o = r.call ? r(i.p) : r;
3599
- return Qu(o.unshift ? o.raw ? ((t, n, l) => t.reduce((c, g, a) => {
3599
+ return tm(o.unshift ? o.raw ? ((t, n, l) => t.reduce((c, g, a) => {
3600
3600
  let s = n[a];
3601
3601
  if (s && s.call) {
3602
3602
  let u = s(l), p = u && u.props && u.props.className || /^go/.test(u) && u;
3603
3603
  s = p ? "." + p : u && typeof u == "object" ? u.props ? "" : Ft(u, "") : u === !1 ? "" : u;
3604
3604
  }
3605
3605
  return c + g + (s ?? "");
3606
- }, ""))(o, [].slice.call(arguments, 1), i.p) : o.reduce((t, n) => Object.assign(t, n && n.call ? n(i.p) : n), {}) : o, Yu(i.target), i.g, i.o, i.k);
3606
+ }, ""))(o, [].slice.call(arguments, 1), i.p) : o.reduce((t, n) => Object.assign(t, n && n.call ? n(i.p) : n), {}) : o, Ju(i.target), i.g, i.o, i.k);
3607
3607
  }
3608
3608
  function Tl(r, i, o) {
3609
3609
  return i && (function(t, n) {
@@ -3625,7 +3625,7 @@ function Ne() {
3625
3625
  function El(r, i) {
3626
3626
  r.prototype = Object.create(i.prototype), r.prototype.constructor = r, r.__proto__ = i;
3627
3627
  }
3628
- function Oo(r, i) {
3628
+ function Fo(r, i) {
3629
3629
  if (r == null) return {};
3630
3630
  var o, t, n = {}, l = Object.keys(r);
3631
3631
  for (t = 0; t < l.length; t++) o = l[t], i.indexOf(o) >= 0 || (n[o] = r[o]);
@@ -3638,21 +3638,21 @@ function Za(r) {
3638
3638
  er.bind({ g: 1 }), er.bind({ k: 1 });
3639
3639
  var Ja = function() {
3640
3640
  return "";
3641
- }, Dl = ae.createContext({ enqueueSnackbar: Ja, closeSnackbar: Ja }), Ln = "@media (max-width:599.95px)", on = "@media (min-width:600px)", Qa = function(r) {
3641
+ }, Dl = ae.createContext({ enqueueSnackbar: Ja, closeSnackbar: Ja }), Ln = "@media (max-width:599.95px)", tn = "@media (min-width:600px)", Qa = function(r) {
3642
3642
  return r.charAt(0).toUpperCase() + r.slice(1);
3643
3643
  }, wr = function(r) {
3644
3644
  return "" + Qa(r.vertical) + Qa(r.horizontal);
3645
- }, Xo = function(r) {
3645
+ }, qo = function(r) {
3646
3646
  return !!r || r === 0;
3647
- }, Ko = "unmounted", _t = "exited", Ut = "entering", xo = "entered", ei = "exiting", Sr = (function(r) {
3647
+ }, Xo = "unmounted", _t = "exited", Ut = "entering", bo = "entered", ei = "exiting", Sr = (function(r) {
3648
3648
  function i(t) {
3649
3649
  var n;
3650
3650
  n = r.call(this, t) || this;
3651
3651
  var l, c = t.appear;
3652
- return n.appearStatus = null, t.in ? c ? (l = _t, n.appearStatus = Ut) : l = xo : l = t.unmountOnExit || t.mountOnEnter ? Ko : _t, n.state = { status: l }, n.nextCallback = null, n;
3652
+ return n.appearStatus = null, t.in ? c ? (l = _t, n.appearStatus = Ut) : l = bo : l = t.unmountOnExit || t.mountOnEnter ? Xo : _t, n.state = { status: l }, n.nextCallback = null, n;
3653
3653
  }
3654
3654
  El(i, r), i.getDerivedStateFromProps = function(t, n) {
3655
- return t.in && n.status === Ko ? { status: _t } : null;
3655
+ return t.in && n.status === Xo ? { status: _t } : null;
3656
3656
  };
3657
3657
  var o = i.prototype;
3658
3658
  return o.componentDidMount = function() {
@@ -3661,7 +3661,7 @@ var Ja = function() {
3661
3661
  var n = null;
3662
3662
  if (t !== this.props) {
3663
3663
  var l = this.state.status;
3664
- this.props.in ? l !== Ut && l !== xo && (n = Ut) : l !== Ut && l !== xo || (n = ei);
3664
+ this.props.in ? l !== Ut && l !== bo && (n = Ut) : l !== Ut && l !== bo || (n = ei);
3665
3665
  }
3666
3666
  this.updateStatus(!1, n);
3667
3667
  }, o.componentWillUnmount = function() {
@@ -3670,16 +3670,16 @@ var Ja = function() {
3670
3670
  var t = this.props.timeout, n = t, l = t;
3671
3671
  return t != null && typeof t != "number" && typeof t != "string" && (l = t.exit, n = t.enter), { exit: l, enter: n };
3672
3672
  }, o.updateStatus = function(t, n) {
3673
- t === void 0 && (t = !1), n !== null ? (this.cancelNextCallback(), n === Ut ? this.performEnter(t) : this.performExit()) : this.props.unmountOnExit && this.state.status === _t && this.setState({ status: Ko });
3673
+ t === void 0 && (t = !1), n !== null ? (this.cancelNextCallback(), n === Ut ? this.performEnter(t) : this.performExit()) : this.props.unmountOnExit && this.state.status === _t && this.setState({ status: Xo });
3674
3674
  }, o.performEnter = function(t) {
3675
3675
  var n = this, l = this.props.enter, c = t, g = this.getTimeouts();
3676
3676
  t || l ? (this.props.onEnter && this.props.onEnter(this.node, c), this.safeSetState({ status: Ut }, function() {
3677
3677
  n.props.onEntering && n.props.onEntering(n.node, c), n.onTransitionEnd(g.enter, function() {
3678
- n.safeSetState({ status: xo }, function() {
3678
+ n.safeSetState({ status: bo }, function() {
3679
3679
  n.props.onEntered && n.props.onEntered(n.node, c);
3680
3680
  });
3681
3681
  });
3682
- })) : this.safeSetState({ status: xo }, function() {
3682
+ })) : this.safeSetState({ status: bo }, function() {
3683
3683
  n.props.onEntered && n.props.onEntered(n.node, c);
3684
3684
  });
3685
3685
  }, o.performExit = function() {
@@ -3710,9 +3710,9 @@ var Ja = function() {
3710
3710
  this.node && !l ? (this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback), t != null && setTimeout(this.nextCallback, t)) : setTimeout(this.nextCallback, 0);
3711
3711
  }, o.render = function() {
3712
3712
  var t = this.state.status;
3713
- if (t === Ko) return null;
3713
+ if (t === Xo) return null;
3714
3714
  var n = this.props;
3715
- return (0, n.children)(t, Oo(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]));
3715
+ return (0, n.children)(t, Fo(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]));
3716
3716
  }, Tl(i, [{ key: "node", get: function() {
3717
3717
  var t, n = (t = this.props.nodeRef) === null || t === void 0 ? void 0 : t.current;
3718
3718
  if (!n) throw new Error("notistack - Custom snackbar is not refForwarding");
@@ -3731,19 +3731,19 @@ function tr(r, i) {
3731
3731
  };
3732
3732
  }, [r, i]);
3733
3733
  }
3734
- function ln(r) {
3734
+ function an(r) {
3735
3735
  var i = r.timeout, o = r.style, t = o === void 0 ? {} : o, n = r.mode;
3736
3736
  return { duration: typeof i == "object" ? i[n] || 0 : i, easing: t.transitionTimingFunction, delay: t.transitionDelay };
3737
3737
  }
3738
3738
  Sr.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: Gt, onEntering: Gt, onEntered: Gt, onExit: Gt, onExiting: Gt, onExited: Gt };
3739
- var em = "cubic-bezier(0.4, 0, 0.2, 1)", tm = "cubic-bezier(0.0, 0, 0.2, 1)", om = "cubic-bezier(0.4, 0, 0.6, 1)", Pl = function(r) {
3739
+ var om = "cubic-bezier(0.4, 0, 0.2, 1)", nm = "cubic-bezier(0.0, 0, 0.2, 1)", rm = "cubic-bezier(0.4, 0, 0.6, 1)", Pl = function(r) {
3740
3740
  r.scrollTop = r.scrollTop;
3741
3741
  }, oi = function(r) {
3742
3742
  return Math.round(r) + "ms";
3743
3743
  };
3744
3744
  function Zt(r, i) {
3745
3745
  r === void 0 && (r = ["all"]);
3746
- var o = i || {}, t = o.duration, n = t === void 0 ? 300 : t, l = o.easing, c = l === void 0 ? em : l, g = o.delay, a = g === void 0 ? 0 : g;
3746
+ var o = i || {}, t = o.duration, n = t === void 0 ? 300 : t, l = o.easing, c = l === void 0 ? om : l, g = o.delay, a = g === void 0 ? 0 : g;
3747
3747
  return (Array.isArray(r) ? r : [r]).map(function(s) {
3748
3748
  var u = typeof n == "string" ? n : oi(n), p = typeof a == "string" ? a : oi(a);
3749
3749
  return s + " " + u + " " + c + " " + p;
@@ -3755,7 +3755,7 @@ function Rl(r) {
3755
3755
  })(r);
3756
3756
  return i.defaultView || window;
3757
3757
  }
3758
- function Yo(r, i) {
3758
+ function Ko(r, i) {
3759
3759
  if (i) {
3760
3760
  var o = (function(t, n) {
3761
3761
  var l, c = n.getBoundingClientRect(), g = Rl(n);
@@ -3784,15 +3784,15 @@ function Yo(r, i) {
3784
3784
  }
3785
3785
  }
3786
3786
  var Ml = J(function(r, i) {
3787
- var o = r.children, t = r.direction, n = t === void 0 ? "down" : t, l = r.in, c = r.style, g = r.timeout, a = g === void 0 ? 0 : g, s = r.onEnter, u = r.onEntered, p = r.onExit, h = r.onExited, d = Oo(r, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), m = Se(null), y = tr(o.ref, m), b = tr(y, i), x = G(function() {
3788
- m.current && Yo(n, m.current);
3787
+ var o = r.children, t = r.direction, n = t === void 0 ? "down" : t, l = r.in, c = r.style, g = r.timeout, a = g === void 0 ? 0 : g, s = r.onEnter, u = r.onEntered, p = r.onExit, h = r.onExited, d = Fo(r, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), m = Se(null), y = tr(o.ref, m), b = tr(y, i), x = G(function() {
3788
+ m.current && Ko(n, m.current);
3789
3789
  }, [n]);
3790
3790
  return ue(function() {
3791
3791
  if (!l && n !== "down" && n !== "right") {
3792
3792
  var f = (function(v, C) {
3793
3793
  var k;
3794
3794
  function T() {
3795
- for (var I = this, N = arguments.length, B = new Array(N), D = 0; D < N; D++) B[D] = arguments[D];
3795
+ for (var I = this, N = arguments.length, B = new Array(N), P = 0; P < N; P++) B[P] = arguments[P];
3796
3796
  clearTimeout(k), k = setTimeout(function() {
3797
3797
  v.apply(I, B);
3798
3798
  }, C);
@@ -3801,7 +3801,7 @@ var Ml = J(function(r, i) {
3801
3801
  clearTimeout(k);
3802
3802
  }, T;
3803
3803
  })(function() {
3804
- m.current && Yo(n, m.current);
3804
+ m.current && Ko(n, m.current);
3805
3805
  }), w = Rl(m.current);
3806
3806
  return w.addEventListener("resize", f), function() {
3807
3807
  f.clear(), w.removeEventListener("resize", f);
@@ -3810,13 +3810,13 @@ var Ml = J(function(r, i) {
3810
3810
  }, [n, l]), ue(function() {
3811
3811
  l || x();
3812
3812
  }, [l, x]), Pe(Sr, Object.assign({ appear: !0, nodeRef: m, onEnter: function(f, w) {
3813
- Yo(n, f), Pl(f), s && s(f, w);
3813
+ Ko(n, f), Pl(f), s && s(f, w);
3814
3814
  }, onEntered: u, onEntering: function(f) {
3815
- var w = c?.transitionTimingFunction || tm, v = ln({ timeout: a, mode: "enter", style: Ne({}, c, { transitionTimingFunction: w }) });
3815
+ var w = c?.transitionTimingFunction || nm, v = an({ timeout: a, mode: "enter", style: Ne({}, c, { transitionTimingFunction: w }) });
3816
3816
  f.style.webkitTransition = Zt("-webkit-transform", v), f.style.transition = Zt("transform", v), f.style.webkitTransform = "none", f.style.transform = "none";
3817
3817
  }, onExit: function(f) {
3818
- var w = c?.transitionTimingFunction || om, v = ln({ timeout: a, mode: "exit", style: Ne({}, c, { transitionTimingFunction: w }) });
3819
- f.style.webkitTransition = Zt("-webkit-transform", v), f.style.transition = Zt("transform", v), Yo(n, f), p && p(f);
3818
+ var w = c?.transitionTimingFunction || rm, v = an({ timeout: a, mode: "exit", style: Ne({}, c, { transitionTimingFunction: w }) });
3819
+ f.style.webkitTransition = Zt("-webkit-transform", v), f.style.transition = Zt("transform", v), Ko(n, f), p && p(f);
3820
3820
  }, onExited: function(f) {
3821
3821
  f.style.webkitTransition = "", f.style.transition = "", h && h(f);
3822
3822
  }, in: l, timeout: a }, d), function(f, w) {
@@ -3826,19 +3826,19 @@ var Ml = J(function(r, i) {
3826
3826
  Ml.displayName = "Slide";
3827
3827
  var hn = function(r) {
3828
3828
  return ae.createElement("svg", Object.assign({ viewBox: "0 0 24 24", focusable: "false", style: { fontSize: 20, marginInlineEnd: 8, userSelect: "none", width: "1em", height: "1em", display: "inline-block", fill: "currentColor", flexShrink: 0 } }, r));
3829
- }, nm = function() {
3829
+ }, am = function() {
3830
3830
  return ae.createElement(hn, null, ae.createElement("path", { d: `M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
3831
3831
  10.59L10 14.17L17.59 6.58L19 8L10 17Z` }));
3832
- }, rm = function() {
3832
+ }, im = function() {
3833
3833
  return ae.createElement(hn, null, ae.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
3834
- }, am = function() {
3834
+ }, lm = function() {
3835
3835
  return ae.createElement(hn, null, ae.createElement("path", { d: `M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
3836
3836
  6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
3837
3837
  13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z` }));
3838
- }, im = function() {
3838
+ }, sm = function() {
3839
3839
  return ae.createElement(hn, null, ae.createElement("path", { d: `M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
3840
3840
  0 22,12A10,10 0 0,0 12,2Z` }));
3841
- }, Nt = { maxSnack: 3, persist: !1, hideIconVariant: !1, disableWindowBlurListener: !1, variant: "default", autoHideDuration: 5e3, iconVariant: { default: void 0, success: ae.createElement(nm, null), warning: ae.createElement(rm, null), error: ae.createElement(am, null), info: ae.createElement(im, null) }, anchorOrigin: { vertical: "bottom", horizontal: "left" }, TransitionComponent: Ml, transitionDuration: { enter: 225, exit: 195 } }, lm = function(r, i) {
3841
+ }, Nt = { maxSnack: 3, persist: !1, hideIconVariant: !1, disableWindowBlurListener: !1, variant: "default", autoHideDuration: 5e3, iconVariant: { default: void 0, success: ae.createElement(am, null), warning: ae.createElement(im, null), error: ae.createElement(lm, null), info: ae.createElement(sm, null) }, anchorOrigin: { vertical: "bottom", horizontal: "left" }, TransitionComponent: Ml, transitionDuration: { enter: 225, exit: 195 } }, cm = function(r, i) {
3842
3842
  return function(o, t) {
3843
3843
  return t === void 0 && (t = !1), t ? Ne({}, Nt[o], {}, i[o], {}, r[o]) : o === "autoHideDuration" ? (n = r.autoHideDuration, l = i.autoHideDuration, (c = function(g) {
3844
3844
  return typeof g == "number" || g === null;
@@ -3853,15 +3853,15 @@ var hn = function(r) {
3853
3853
  var n, l, c;
3854
3854
  };
3855
3855
  };
3856
- function Ao(r) {
3856
+ function Oo(r) {
3857
3857
  return Object.entries(r).reduce(function(i, o) {
3858
3858
  var t, n = o[0], l = o[1];
3859
3859
  return Ne({}, i, ((t = {})[n] = er(l), t));
3860
3860
  }, {});
3861
3861
  }
3862
- var sm = "notistack-SnackbarContainer", cm = "notistack-Snackbar", Il = "notistack-CollapseWrapper", dm = "notistack-MuiContent", pm = function(r) {
3862
+ var dm = "notistack-SnackbarContainer", pm = "notistack-Snackbar", Il = "notistack-CollapseWrapper", um = "notistack-MuiContent", mm = function(r) {
3863
3863
  return "notistack-MuiContent-" + r;
3864
- }, ni = Ao({ root: { height: 0 }, entered: { height: "auto" } }), Hn = "0px", Nl = J(function(r, i) {
3864
+ }, ni = Oo({ root: { height: 0 }, entered: { height: "auto" } }), Hn = "0px", Nl = J(function(r, i) {
3865
3865
  var o = r.children, t = r.in, n = r.onExited, l = Se(null), c = Se(null), g = tr(i, c), a = function() {
3866
3866
  return l.current ? l.current.clientHeight : 0;
3867
3867
  };
@@ -3870,36 +3870,36 @@ var sm = "notistack-SnackbarContainer", cm = "notistack-Snackbar", Il = "notista
3870
3870
  }, onEntered: function(s) {
3871
3871
  s.style.height = "auto";
3872
3872
  }, onEntering: function(s) {
3873
- var u = a(), p = ln({ timeout: 175, mode: "enter" }), h = p.duration, d = p.easing;
3873
+ var u = a(), p = an({ timeout: 175, mode: "enter" }), h = p.duration, d = p.easing;
3874
3874
  s.style.transitionDuration = typeof h == "string" ? h : h + "ms", s.style.height = u + "px", s.style.transitionTimingFunction = d || "";
3875
3875
  }, onExit: function(s) {
3876
3876
  s.style.height = a() + "px";
3877
3877
  }, onExited: n, onExiting: function(s) {
3878
3878
  Pl(s);
3879
- var u = ln({ timeout: 175, mode: "exit" }), p = u.duration, h = u.easing;
3879
+ var u = an({ timeout: 175, mode: "exit" }), p = u.duration, h = u.easing;
3880
3880
  s.style.transitionDuration = typeof p == "string" ? p : p + "ms", s.style.height = Hn, s.style.transitionTimingFunction = h || "";
3881
3881
  }, nodeRef: c, timeout: 175 }, function(s, u) {
3882
3882
  return Pe("div", Object.assign({ ref: g, className: Wt(ni.root, s === "entered" && ni.entered), style: Ne({ pointerEvents: "all", overflow: "hidden", minHeight: Hn, transition: Zt("height") }, s === "entered" && { overflow: "visible" }, {}, s === "exited" && !t && { visibility: "hidden" }) }, u), Pe("div", { ref: l, className: Il, style: { display: "flex", width: "100%" } }, o));
3883
3883
  });
3884
3884
  });
3885
3885
  Nl.displayName = "Collapse";
3886
- var ri = { right: "left", left: "right", bottom: "up", top: "down" }, um = function(r) {
3886
+ var ri = { right: "left", left: "right", bottom: "up", top: "down" }, gm = function(r) {
3887
3887
  return "anchorOrigin" + wr(r);
3888
- }, mm = function() {
3888
+ }, hm = function() {
3889
3889
  };
3890
- function Do(r, i) {
3890
+ function Eo(r, i) {
3891
3891
  return r.reduce(function(o, t) {
3892
3892
  return t == null ? o : function() {
3893
3893
  for (var n = arguments.length, l = new Array(n), c = 0; c < n; c++) l[c] = arguments[c];
3894
3894
  var g = [].concat(l);
3895
3895
  i && g.indexOf(i) === -1 && g.push(i), o.apply(this, g), t.apply(this, g);
3896
3896
  };
3897
- }, mm);
3897
+ }, hm);
3898
3898
  }
3899
- var gm = typeof window < "u" ? St : ue;
3899
+ var fm = typeof window < "u" ? St : ue;
3900
3900
  function ai(r) {
3901
3901
  var i = Se(r);
3902
- return gm(function() {
3902
+ return fm(function() {
3903
3903
  i.current = r;
3904
3904
  }), G(function() {
3905
3905
  return i.current.apply(void 0, arguments);
@@ -3927,25 +3927,25 @@ var zn, Fl = J(function(r, i) {
3927
3927
  if (!c && s) return window.addEventListener("focus", b), window.addEventListener("blur", y), function() {
3928
3928
  window.removeEventListener("focus", b), window.removeEventListener("blur", y);
3929
3929
  };
3930
- }, [c, b, s]), Pe("div", Object.assign({ ref: i }, p, { className: Wt(cm, t), onMouseEnter: function(x) {
3930
+ }, [c, b, s]), Pe("div", Object.assign({ ref: i }, p, { className: Wt(pm, t), onMouseEnter: function(x) {
3931
3931
  p.onMouseEnter && p.onMouseEnter(x), y();
3932
3932
  }, onMouseLeave: function(x) {
3933
3933
  p.onMouseLeave && p.onMouseLeave(x), b();
3934
3934
  } }), o);
3935
3935
  });
3936
3936
  Fl.displayName = "Snackbar";
3937
- var hm = Ao({ root: (zn = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, zn[on] = { flexGrow: "initial", minWidth: "288px" }, zn) }), vr = J(function(r, i) {
3938
- var o = r.className, t = Oo(r, ["className"]);
3939
- return ae.createElement("div", Object.assign({ ref: i, className: Wt(hm.root, o) }, t));
3937
+ var bm = Oo({ root: (zn = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, zn[tn] = { flexGrow: "initial", minWidth: "288px" }, zn) }), vr = J(function(r, i) {
3938
+ var o = r.className, t = Fo(r, ["className"]);
3939
+ return ae.createElement("div", Object.assign({ ref: i, className: Wt(bm.root, o) }, t));
3940
3940
  });
3941
3941
  vr.displayName = "SnackbarContent";
3942
- var yo = Ao({ root: { backgroundColor: "#313131", fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", color: "#fff", alignItems: "center", padding: "6px 16px", borderRadius: "4px", boxShadow: "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)" }, lessPadding: { paddingLeft: "20px" }, default: { backgroundColor: "#313131" }, success: { backgroundColor: "#43a047" }, error: { backgroundColor: "#d32f2f" }, warning: { backgroundColor: "#ff9800" }, info: { backgroundColor: "#2196f3" }, message: { display: "flex", alignItems: "center", padding: "8px 0" }, action: { display: "flex", alignItems: "center", marginLeft: "auto", paddingLeft: "16px", marginRight: "-8px" } }), ii = "notistack-snackbar", Ol = J(function(r, i) {
3942
+ var xo = Oo({ root: { backgroundColor: "#313131", fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", color: "#fff", alignItems: "center", padding: "6px 16px", borderRadius: "4px", boxShadow: "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)" }, lessPadding: { paddingLeft: "20px" }, default: { backgroundColor: "#313131" }, success: { backgroundColor: "#43a047" }, error: { backgroundColor: "#d32f2f" }, warning: { backgroundColor: "#ff9800" }, info: { backgroundColor: "#2196f3" }, message: { display: "flex", alignItems: "center", padding: "8px 0" }, action: { display: "flex", alignItems: "center", marginLeft: "auto", paddingLeft: "16px", marginRight: "-8px" } }), ii = "notistack-snackbar", Ol = J(function(r, i) {
3943
3943
  var o = r.id, t = r.message, n = r.action, l = r.iconVariant, c = r.variant, g = r.hideIconVariant, a = r.style, s = r.className, u = l[c], p = n;
3944
- return typeof p == "function" && (p = p(o)), ae.createElement(vr, { ref: i, role: "alert", "aria-describedby": ii, style: a, className: Wt(dm, pm(c), yo.root, yo[c], s, !g && u && yo.lessPadding) }, ae.createElement("div", { id: ii, className: yo.message }, g ? null : u, t), p && ae.createElement("div", { className: yo.action }, p));
3944
+ return typeof p == "function" && (p = p(o)), ae.createElement(vr, { ref: i, role: "alert", "aria-describedby": ii, style: a, className: Wt(um, mm(c), xo.root, xo[c], s, !g && u && xo.lessPadding) }, ae.createElement("div", { id: ii, className: xo.message }, g ? null : u, t), p && ae.createElement("div", { className: xo.action }, p));
3945
3945
  });
3946
3946
  Ol.displayName = "MaterialDesignContent";
3947
- var wo, Wn, Zo, Jo, $n, fm = Y(Ol), bm = Ao({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), xm = function(r) {
3948
- var i = Se(), o = U(!0), t = o[0], n = o[1], l = Do([r.snack.onClose, r.onClose]), c = G(function() {
3947
+ var yo, Wn, Yo, Zo, $n, xm = Y(Ol), ym = Oo({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), wm = function(r) {
3948
+ var i = Se(), o = U(!0), t = o[0], n = o[1], l = Eo([r.snack.onClose, r.onClose]), c = G(function() {
3949
3949
  i.current = setTimeout(function() {
3950
3950
  n(function(I) {
3951
3951
  return !I;
@@ -3957,37 +3957,37 @@ var wo, Wn, Zo, Jo, $n, fm = Y(Ol), bm = Ao({ wrappedRoot: { width: "100%", posi
3957
3957
  i.current && clearTimeout(i.current);
3958
3958
  };
3959
3959
  }, []);
3960
- var g, a = r.snack, s = r.classes, u = r.Component, p = u === void 0 ? fm : u, h = W(function() {
3960
+ var g, a = r.snack, s = r.classes, u = r.Component, p = u === void 0 ? xm : u, h = W(function() {
3961
3961
  return (function(I) {
3962
3962
  I === void 0 && (I = {});
3963
3963
  var N = { containerRoot: !0, containerAnchorOriginTopCenter: !0, containerAnchorOriginBottomCenter: !0, containerAnchorOriginTopRight: !0, containerAnchorOriginBottomRight: !0, containerAnchorOriginTopLeft: !0, containerAnchorOriginBottomLeft: !0 };
3964
3964
  return Object.keys(I).filter(function(B) {
3965
3965
  return !N[B];
3966
- }).reduce(function(B, D) {
3966
+ }).reduce(function(B, P) {
3967
3967
  var S;
3968
- return Ne({}, B, ((S = {})[D] = I[D], S));
3968
+ return Ne({}, B, ((S = {})[P] = I[P], S));
3969
3969
  }, {});
3970
3970
  })(s);
3971
- }, [s]), d = a.open, m = a.SnackbarProps, y = a.TransitionComponent, b = a.TransitionProps, x = a.transitionDuration, f = a.disableWindowBlurListener, w = a.content, v = Oo(a, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), C = Ne({ direction: (g = v.anchorOrigin, g.horizontal !== "center" ? ri[g.horizontal] : ri[g.vertical]), timeout: x }, b), k = w;
3971
+ }, [s]), d = a.open, m = a.SnackbarProps, y = a.TransitionComponent, b = a.TransitionProps, x = a.transitionDuration, f = a.disableWindowBlurListener, w = a.content, v = Fo(a, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), C = Ne({ direction: (g = v.anchorOrigin, g.horizontal !== "center" ? ri[g.horizontal] : ri[g.vertical]), timeout: x }, b), k = w;
3972
3972
  typeof k == "function" && (k = k(v.id, v.message));
3973
3973
  var T = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function(I, N) {
3974
3974
  var B;
3975
- return Ne({}, I, ((B = {})[N] = Do([r.snack[N], r[N]], v.id), B));
3975
+ return Ne({}, I, ((B = {})[N] = Eo([r.snack[N], r[N]], v.id), B));
3976
3976
  }, {});
3977
- return ae.createElement(Nl, { in: t, onExited: T.onExited }, ae.createElement(Fl, { open: d, id: v.id, disableWindowBlurListener: f, autoHideDuration: v.autoHideDuration, className: Wt(bm.wrappedRoot, h.root, h[um(v.anchorOrigin)]), SnackbarProps: m, onClose: l }, ae.createElement(y, Object.assign({}, C, { appear: !0, in: d, onExit: T.onExit, onExited: c, onEnter: T.onEnter, onEntered: Do([T.onEntered, function() {
3977
+ return ae.createElement(Nl, { in: t, onExited: T.onExited }, ae.createElement(Fl, { open: d, id: v.id, disableWindowBlurListener: f, autoHideDuration: v.autoHideDuration, className: Wt(ym.wrappedRoot, h.root, h[gm(v.anchorOrigin)]), SnackbarProps: m, onClose: l }, ae.createElement(y, Object.assign({}, C, { appear: !0, in: d, onExit: T.onExit, onExited: c, onEnter: T.onEnter, onEntered: Eo([T.onEntered, function() {
3978
3978
  r.snack.requestClose && l(null, "instructed", r.snack.id);
3979
3979
  }], v.id) }), k || ae.createElement(p, Object.assign({}, v)))));
3980
- }, So = { default: 20 }, Qo = { default: 6, dense: 2 }, li = "." + Il, en = Ao({ root: (wo = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: Zt(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, wo[li] = { padding: Qo.default + "px 0px", transition: "padding 300ms ease 0ms" }, wo.maxWidth = "calc(100% - " + 2 * So.default + "px)", wo[Ln] = { width: "100%", maxWidth: "calc(100% - 32px)" }, wo), rootDense: (Wn = {}, Wn[li] = { padding: Qo.dense + "px 0px" }, Wn), top: { top: So.default - Qo.default + "px", flexDirection: "column" }, bottom: { bottom: So.default - Qo.default + "px", flexDirection: "column-reverse" }, left: (Zo = { left: So.default + "px" }, Zo[on] = { alignItems: "flex-start" }, Zo[Ln] = { left: "16px" }, Zo), right: (Jo = { right: So.default + "px" }, Jo[on] = { alignItems: "flex-end" }, Jo[Ln] = { right: "16px" }, Jo), center: ($n = { left: "50%", transform: "translateX(-50%)" }, $n[on] = { alignItems: "center" }, $n) }), ym = Y(function(r) {
3981
- var i = r.classes, o = i === void 0 ? {} : i, t = r.anchorOrigin, n = r.dense, l = r.children, c = Wt(sm, en[t.vertical], en[t.horizontal], en.root, o.containerRoot, o["containerAnchorOrigin" + wr(t)], n && en.rootDense);
3980
+ }, wo = { default: 20 }, Jo = { default: 6, dense: 2 }, li = "." + Il, Qo = Oo({ root: (yo = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: Zt(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, yo[li] = { padding: Jo.default + "px 0px", transition: "padding 300ms ease 0ms" }, yo.maxWidth = "calc(100% - " + 2 * wo.default + "px)", yo[Ln] = { width: "100%", maxWidth: "calc(100% - 32px)" }, yo), rootDense: (Wn = {}, Wn[li] = { padding: Jo.dense + "px 0px" }, Wn), top: { top: wo.default - Jo.default + "px", flexDirection: "column" }, bottom: { bottom: wo.default - Jo.default + "px", flexDirection: "column-reverse" }, left: (Yo = { left: wo.default + "px" }, Yo[tn] = { alignItems: "flex-start" }, Yo[Ln] = { left: "16px" }, Yo), right: (Zo = { right: wo.default + "px" }, Zo[tn] = { alignItems: "flex-end" }, Zo[Ln] = { right: "16px" }, Zo), center: ($n = { left: "50%", transform: "translateX(-50%)" }, $n[tn] = { alignItems: "center" }, $n) }), Sm = Y(function(r) {
3981
+ var i = r.classes, o = i === void 0 ? {} : i, t = r.anchorOrigin, n = r.dense, l = r.children, c = Wt(dm, Qo[t.vertical], Qo[t.horizontal], Qo.root, o.containerRoot, o["containerAnchorOrigin" + wr(t)], n && Qo.rootDense);
3982
3982
  return ae.createElement("div", { className: c }, l);
3983
3983
  }), si = function(r) {
3984
3984
  return !(typeof r == "string" || rr(r));
3985
- }, wm = (function(r) {
3985
+ }, vm = (function(r) {
3986
3986
  function i(o) {
3987
3987
  var t;
3988
3988
  return (t = r.call(this, o) || this).enqueueSnackbar = function(n, l) {
3989
3989
  if (l === void 0 && (l = {}), n == null) throw new Error("enqueueSnackbar called with invalid argument");
3990
- var c = si(n) ? n : l, g = si(n) ? n.message : n, a = c.key, s = c.preventDuplicate, u = Oo(c, ["key", "preventDuplicate"]), p = Xo(a), h = p ? a : (/* @__PURE__ */ new Date()).getTime() + Math.random(), d = lm(u, t.props), m = Ne({ id: h }, u, { message: g, open: !0, entered: !1, requestClose: !1, persist: d("persist"), action: d("action"), content: d("content"), variant: d("variant"), anchorOrigin: d("anchorOrigin"), disableWindowBlurListener: d("disableWindowBlurListener"), autoHideDuration: d("autoHideDuration"), hideIconVariant: d("hideIconVariant"), TransitionComponent: d("TransitionComponent"), transitionDuration: d("transitionDuration"), TransitionProps: d("TransitionProps", !0), iconVariant: d("iconVariant", !0), style: d("style", !0), SnackbarProps: d("SnackbarProps", !0), className: Wt(t.props.className, u.className) });
3990
+ var c = si(n) ? n : l, g = si(n) ? n.message : n, a = c.key, s = c.preventDuplicate, u = Fo(c, ["key", "preventDuplicate"]), p = qo(a), h = p ? a : (/* @__PURE__ */ new Date()).getTime() + Math.random(), d = cm(u, t.props), m = Ne({ id: h }, u, { message: g, open: !0, entered: !1, requestClose: !1, persist: d("persist"), action: d("action"), content: d("content"), variant: d("variant"), anchorOrigin: d("anchorOrigin"), disableWindowBlurListener: d("disableWindowBlurListener"), autoHideDuration: d("autoHideDuration"), hideIconVariant: d("hideIconVariant"), TransitionComponent: d("TransitionComponent"), transitionDuration: d("transitionDuration"), TransitionProps: d("TransitionProps", !0), iconVariant: d("iconVariant", !0), style: d("style", !0), SnackbarProps: d("SnackbarProps", !0), className: Wt(t.props.className, u.className) });
3991
3991
  return m.persist && (m.autoHideDuration = void 0), t.setState(function(y) {
3992
3992
  if (s === void 0 && t.props.preventDuplicate || s) {
3993
3993
  var b = function(w) {
@@ -4015,7 +4015,7 @@ var wo, Wn, Zo, Jo, $n, fm = Y(Ol), bm = Ao({ wrappedRoot: { width: "100%", posi
4015
4015
  });
4016
4016
  return Ne({}, n, { snacks: g });
4017
4017
  }, t.handleEnteredSnack = function(n, l, c) {
4018
- if (!Xo(c)) throw new Error("handleEnteredSnack Cannot be called with undefined key");
4018
+ if (!qo(c)) throw new Error("handleEnteredSnack Cannot be called with undefined key");
4019
4019
  t.setState(function(g) {
4020
4020
  return { snacks: g.snacks.map(function(a) {
4021
4021
  return a.id === c ? Ne({}, a, { entered: !0 }) : Ne({}, a);
@@ -4036,9 +4036,9 @@ var wo, Wn, Zo, Jo, $n, fm = Y(Ol), bm = Ao({ wrappedRoot: { width: "100%", posi
4036
4036
  var l = t.state.snacks.find(function(c) {
4037
4037
  return c.id === n;
4038
4038
  });
4039
- Xo(n) && l && l.onClose && l.onClose(null, "instructed", n), t.handleCloseSnack(null, "instructed", n);
4039
+ qo(n) && l && l.onClose && l.onClose(null, "instructed", n), t.handleCloseSnack(null, "instructed", n);
4040
4040
  }, t.handleExitedSnack = function(n, l) {
4041
- if (!Xo(l)) throw new Error("handleExitedSnack Cannot be called with undefined key");
4041
+ if (!qo(l)) throw new Error("handleExitedSnack Cannot be called with undefined key");
4042
4042
  t.setState(function(c) {
4043
4043
  var g = t.processQueue(Ne({}, c, { snacks: c.snacks.filter(function(a) {
4044
4044
  return a.id !== l;
@@ -4053,20 +4053,20 @@ var wo, Wn, Zo, Jo, $n, fm = Y(Ol), bm = Ao({ wrappedRoot: { width: "100%", posi
4053
4053
  return Ne({}, m, ((b = {})[x] = [].concat(f, [y]), b));
4054
4054
  }, {}), d = Object.keys(h).map(function(m) {
4055
4055
  var y = h[m], b = y[0];
4056
- return ae.createElement(ym, { key: m, dense: a, anchorOrigin: b.anchorOrigin, classes: p }, y.map(function(x) {
4057
- return ae.createElement(xm, { key: x.id, snack: x, classes: p, Component: u[x.variant], onClose: o.handleCloseSnack, onEnter: o.props.onEnter, onExit: o.props.onExit, onExited: Do([o.handleExitedSnack, o.props.onExited], x.id), onEntered: Do([o.handleEnteredSnack, o.props.onEntered], x.id) });
4056
+ return ae.createElement(Sm, { key: m, dense: a, anchorOrigin: b.anchorOrigin, classes: p }, y.map(function(x) {
4057
+ return ae.createElement(wm, { key: x.id, snack: x, classes: p, Component: u[x.variant], onClose: o.handleCloseSnack, onEnter: o.props.onEnter, onExit: o.props.onExit, onExited: Eo([o.handleExitedSnack, o.props.onExited], x.id), onEntered: Eo([o.handleEnteredSnack, o.props.onEntered], x.id) });
4058
4058
  }));
4059
4059
  });
4060
- return ae.createElement(Dl.Provider, { value: t }, c, l ? fp(d, l) : d);
4060
+ return ae.createElement(Dl.Provider, { value: t }, c, l ? xp(d, l) : d);
4061
4061
  }, Tl(i, [{ key: "maxSnack", get: function() {
4062
4062
  return this.props.maxSnack || Nt.maxSnack;
4063
4063
  } }]), i;
4064
4064
  })(di), Al = function() {
4065
4065
  return ws(Dl);
4066
4066
  };
4067
- const Sm = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], handler: null, isDefault: !0 }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: null }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: null }], vm = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", handler: null, isDefault: !0 }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: null }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: null }];
4068
- class Cm {
4069
- constructor(i = Sm, o = vm) {
4067
+ const Cm = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], handler: null, isDefault: !0 }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: null }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: null }], km = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", handler: null, isDefault: !0 }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: null }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: null }];
4068
+ class Tm {
4069
+ constructor(i = Cm, o = km) {
4070
4070
  this._readFormatType = [], this._writeFormatType = [], this._readFormatType = Object.freeze([...i]), this._writeFormatType = Object.freeze([...o]);
4071
4071
  }
4072
4072
  getReadFormats() {
@@ -4107,24 +4107,24 @@ class Cm {
4107
4107
  }
4108
4108
  }
4109
4109
  }
4110
- const Ot = new Cm(), mt = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, Bl = J((r, i) => {
4110
+ const Ot = new Tm(), mt = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, Bl = J((r, i) => {
4111
4111
  const { id: o, message: t, iconVariant: n, error: l, hideIconVariant: c, ...g } = r, { closeSnackbar: a } = Al(), s = at(), [u, p] = U(!1), h = G(() => {
4112
4112
  p((y) => !y);
4113
4113
  }, []), d = G(() => {
4114
4114
  a(o);
4115
4115
  }, [o, a]);
4116
4116
  let m = l?.message;
4117
- return !m && rr(t) && (m = t), m || typeof t != "string" || (m = t), m || (m = `Unknown Error: ${t}`), e(vr, { ref: i, className: Ae(mt.root, "error-snackbar"), children: $(Ms, { className: mt.card, style: { backgroundColor: s.palette.error.dark, border: `1px solid ${s.palette.error.dark}` }, children: [$(Is, { className: mt.actionRoot, children: [c ? null : n?.error, e(Oe, { variant: "body2", component: "div", className: mt.typography, children: m }), e("div", { style: { flex: "1 1 auto" } }), $("div", { className: mt.icons, children: [l ? e(dt, { "aria-label": "Show more", size: "small", className: Ae(mt.expand, { [mt.expandOpen]: u }), onClick: h, children: e(Ci, {}) }) : null, e(dt, { size: "small", className: mt.expand, onClick: d, children: e(Ti, { fontSize: "small" }) })] })] }), l ? e(Ns, { in: u, timeout: "auto", unmountOnExit: !0, children: e("div", { className: mt.stackTraceContainer, style: { backgroundColor: s.palette.error.light, borderTop: `1px solid ${s.palette.error.main}` }, children: e(Nd, { error: l, hideLineNumbers: !0 }) }) }) : null] }) });
4117
+ return !m && rr(t) && (m = t), m || typeof t != "string" || (m = t), m || (m = `Unknown Error: ${t}`), e(vr, { ref: i, className: Ae(mt.root, "error-snackbar"), children: $(Ms, { className: mt.card, style: { backgroundColor: s.palette.error.dark, border: `1px solid ${s.palette.error.dark}` }, children: [$(Is, { className: mt.actionRoot, children: [c ? null : n?.error, e(Oe, { variant: "body2", component: "div", className: mt.typography, children: m }), e("div", { style: { flex: "1 1 auto" } }), $("div", { className: mt.icons, children: [l ? e(dt, { "aria-label": "Show more", size: "small", className: Ae(mt.expand, { [mt.expandOpen]: u }), onClick: h, children: e(Ci, {}) }) : null, e(dt, { size: "small", className: mt.expand, onClick: d, children: e(Ti, { fontSize: "small" }) })] })] }), l ? e(Ns, { in: u, timeout: "auto", unmountOnExit: !0, children: e("div", { className: mt.stackTraceContainer, style: { backgroundColor: s.palette.error.light, borderTop: `1px solid ${s.palette.error.main}` }, children: e(Od, { error: l, hideLineNumbers: !0 }) }) }) : null] }) });
4118
4118
  });
4119
4119
  Bl.displayName = "ToastError";
4120
4120
  const Ll = Y(J((r, i) => {
4121
4121
  const { commands: o, commandHook: t, scope: n = "workbook", disabled: l = !1, ...c } = r, g = te((s) => {
4122
- const u = { variant: le.Menuitem, parentFloat: s.floatReference, commandHook: t, scope: n, disabled: l }, p = $(se, { children: [e(O, { ...u, command: o.getCommand("newWorkbook"), icon: R(e(Fd, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...u, command: o.getCommand("openWorkbook"), icon: R(e(Od, {})) }), e(Re, { ...u, commands: o, quickCommand: "saveWorkbook", icon: R(e(Ld, {})), createPopupPanel: (h) => {
4122
+ const u = { variant: le.Menuitem, parentFloat: s.floatReference, commandHook: t, scope: n, disabled: l }, p = $(se, { children: [e(O, { ...u, command: o.getCommand("newWorkbook"), icon: D(e(Ad, {})) }), e(re, { orientation: "horizontal" }), e(O, { ...u, command: o.getCommand("openWorkbook"), icon: D(e(Bd, {})) }), e(Re, { ...u, commands: o, quickCommand: "saveWorkbook", icon: D(e(zd, {})), createPopupPanel: (h) => {
4123
4123
  const d = { ...u, parentFloat: h.floatReference, scope: "saveWorkbook" }, m = [];
4124
4124
  return Ot.getWriteFormats().forEach((y) => {
4125
4125
  if (y.isDefault) return;
4126
4126
  let b = null;
4127
- y.key === "CSV" ? b = R(e(Ad, {})) : y.key === "Excel" && (b = R(e(Bd, {})));
4127
+ y.key === "CSV" ? b = D(e(Ld, {})) : y.key === "Excel" && (b = D(e(Hd, {})));
4128
4128
  const x = o.getCommand(`saveWorkbookAs${y.key}`);
4129
4129
  x ? m.push(Pe(O, { ...d, key: y.key, command: x, icon: b })) : console.warn(`Unable to resolve command: 'saveWorkbookAs${y.key}'`);
4130
4130
  }), xe({ ...h, children: m, onClick: () => {
@@ -4135,20 +4135,20 @@ const Ll = Y(J((r, i) => {
4135
4135
  h.isDefaultPrevented || s.closeFloatAll();
4136
4136
  } });
4137
4137
  }, [l, o, t, n]), a = "File";
4138
- return e(Re, { commands: o, disabled: l, commandHook: t, scope: n, label: a, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (s) => `calc(1.25rem + ${s.spacing(2)}px)` } }, ...c, createPopupPanel: g, icon: e(eo, { className: "label", icon: null, label: a }) });
4138
+ return e(Re, { commands: o, disabled: l, commandHook: t, scope: n, label: a, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (s) => `calc(1.25rem + ${s.spacing(2)}px)` } }, ...c, createPopupPanel: g, icon: e(sn, { className: "label", icon: null, label: a }) });
4139
4139
  }));
4140
4140
  Ll.displayName = "StandaloneFileCommandButton";
4141
- const km = e(rt, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: e(A, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: e(hp, { onClick: () => {
4141
+ const Em = e(rt, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: e(A, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: e(bp, { onClick: () => {
4142
4142
  window?.open("https://www.sheetxl.com", "_blank");
4143
4143
  }, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), Hl = Y(J((r, i) => {
4144
- const { commands: o, workbook: t, logo: n = km, mainElement: l, showFileMenu: c = !0, showAppearanceMenu: g = !0, ...a } = r, { reference: s } = oo(), [u, { width: p }] = Io(), h = p < 530, d = c ? e(Ll, { commands: o, commandHook: { beforeExecute() {
4144
+ const { commands: o, workbook: t, logo: n = Em, mainElement: l, showFileMenu: c = !0, showAppearanceMenu: g = !0, ...a } = r, { reference: s } = to(), [u, { width: p }] = Mo(), h = p < 530, d = c ? e(Ll, { commands: o, commandHook: { beforeExecute() {
4145
4145
  s?.closeAll();
4146
4146
  }, onError(x, f, w) {
4147
- } } }) : null, m = g ? e(nu, { commands: o, commandHook: { beforeExecute() {
4147
+ } } }) : null, m = g ? e(au, { commands: o, commandHook: { beforeExecute() {
4148
4148
  s?.closeAll();
4149
4149
  }, onError(x, f, w) {
4150
4150
  } } }) : null, y = W(() => ({ paddingLeft: (x) => x.spacing(1), paddingRight: (x) => x.spacing(1) }), []), b = Se(null);
4151
- return e(A, { ref: Fo([b, u, i]), ...a, children: fl({ commands: o, renderCompact: h, workbook: t, selectWrapper: (x) => $(A, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (f) => f.spacing(1), paddingLeft: (f) => f.spacing(1), paddingRight: (f) => f.spacing(1) }, children: [$(A, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (f) => f.spacing(0.5) }, children: [n, $(A, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (f) => f.spacing(0.25) }, children: [d, x] })] }), e(A, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: l }), e(A, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: h && !m ? "0 0 auto" : "1 1 100%" }, children: m })] }), selectProps: y, toolbarsProps: { Home: { sx: {} } } }) });
4151
+ return e(A, { ref: No([b, u, i]), ...a, children: fl({ commands: o, renderCompact: h, workbook: t, selectWrapper: (x) => $(A, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (f) => f.spacing(1), paddingLeft: (f) => f.spacing(1), paddingRight: (f) => f.spacing(1) }, children: [$(A, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (f) => f.spacing(0.5) }, children: [n, $(A, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (f) => f.spacing(0.25) }, children: [d, x] })] }), e(A, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: l }), e(A, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: h && !m ? "0 0 auto" : "1 1 100%" }, children: m })] }), selectProps: y, toolbarsProps: { Home: { sx: {} } } }) });
4152
4152
  }));
4153
4153
  Hl.displayName = "StudioToolbar";
4154
4154
  const zl = Y(J((r, i) => {
@@ -4158,14 +4158,14 @@ const zl = Y(J((r, i) => {
4158
4158
  x((V) => ({ ...V, isMounted: !0 }));
4159
4159
  }, []), w = G(() => {
4160
4160
  x((V) => ({ ...V, isMounted: !1 }));
4161
- }, []), v = {}, C = zd(v), k = Wd(v), T = $d(v), I = Se(/* @__PURE__ */ new Set()), N = W(() => {
4161
+ }, []), v = {}, C = $d(v), k = jd(v), T = Vd(v), I = Se(/* @__PURE__ */ new Set()), N = W(() => {
4162
4162
  const V = (M, E) => {
4163
4163
  if (E?.onceKey) {
4164
4164
  if (I.current.has(E.onceKey)) return;
4165
4165
  const Q = new Set(I.current);
4166
4166
  Q.add(E.onceKey), I.current = Q;
4167
4167
  }
4168
- const K = { variant: E?.type ?? wt.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: E?.preventDuplicate, persist: E?.persist ?? E?.type === wt.Error, action: (Q) => e(dt, { onClick: () => y(Q), children: e(tp, {}) }) };
4168
+ const K = { variant: E?.type ?? wt.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: E?.preventDuplicate, persist: E?.persist ?? E?.type === wt.Error, action: (Q) => e(dt, { onClick: () => y(Q), children: e(np, {}) }) };
4169
4169
  E?.enqueueProps && Object.assign(K, E.enqueueProps), M || console.log("message is 'null'", E), m(M ?? "Alert", K);
4170
4170
  };
4171
4171
  return { showMessage: V, showBusy: (M, E) => {
@@ -4181,19 +4181,19 @@ const zl = Y(J((r, i) => {
4181
4181
  const Q = { ...E, onKeyDown: (q) => {
4182
4182
  u?.dispatchToFocusedCommand(q), q.isDefaultPrevented() || q.isPropagationStopped() || E?.onKeyDown?.(q);
4183
4183
  } };
4184
- return C(M, { sort: () => import("./CqYqRJFt_MMSJjPm.mjs"), numberFormat: () => import("./D9OxV_CsDvcbDc4m.mjs"), hyperlink: () => import("./DcQAbZC7Pyl8H0Du.mjs"), comments: () => import("./DIm7aUgG-G4Cjytb.mjs"), find: () => import("./CPpr3_WRDtllZc1x.mjs"), tableDetails: () => import("./B3VQ5Lla2rVfNvoU.mjs"), tableNew: () => import("./PcyaGm6Ks_ug6tAh.mjs"), namedDetails: () => import("./1aZt8s1N3IwPtg0I.mjs") }[M], Q, K);
4184
+ return C(M, { sort: () => import("./IgB4VJkYazowEboE.mjs"), numberFormat: () => import("./DvObASTOT-4DToJz.mjs"), hyperlink: () => import("./S9lMSxFPx_FXOTaR.mjs"), comments: () => import("./Bze6aQavB3PhqIdO.mjs"), find: () => import("./BI4wh920NPkWujDP.mjs"), tableDetails: () => import("./BTfgoZRgUPUwvb0c.mjs"), tableNew: () => import("./B199XiibGphLZrXQ.mjs"), namedDetails: () => import("./BbLyHyLMgPVrNHV7.mjs") }[M], Q, K);
4185
4185
  }, showOptions: k, showInputOptions: T, showError: (M) => {
4186
4186
  let E, K = wt.Error, Q = "Unknown Error";
4187
- typeof M == "string" ? Q = M : M instanceof Error && (E = M, M.message && (Q = M.message)), M instanceof bp && (K = wt.Info), V(Q, { type: K, enqueueProps: { error: E } });
4187
+ typeof M == "string" ? Q = M : M instanceof Error && (E = M, M.message && (Q = M.message)), M instanceof yp && (K = wt.Info), V(Q, { type: K, enqueueProps: { error: E } });
4188
4188
  } };
4189
4189
  }, []), B = G(() => {
4190
- }, []), D = ((V) => {
4190
+ }, []), P = ((V) => {
4191
4191
  const { workbook: M, setWorkbook: E, importExportDisabled: K, workbookTitle: Q = "export", setWorkbookTitle: q, notifier: _, requestWorkbookTitle: ne, themeOptions: ie, undoManager: X, commands: z, onExecute: ee } = V, me = te(ie?.onModeChange, [ie?.onModeChange]), Le = te(ie?.onEnabledDarkGridChange, [ie?.onEnabledDarkGridChange]), Fe = te(ie?.onEnabledDarkImagesChange, [ie?.onEnabledDarkImagesChange]), Be = te(async (ge = null, fe = null) => {
4192
4192
  const Z = [];
4193
4193
  let ce, Me = null, ye = null;
4194
4194
  if (typeof ge == "string" ? ye = ge : Me = ge, ce = Me ? ge : await Jt.openFileDialog(ye ?? Ot.getAllReadFormatTypeAsString().join(",")), !ce) return null;
4195
- const qe = { source: ce, createWorkbookOptions: fe, onWarning: (no) => {
4196
- Z.push(no);
4195
+ const qe = { source: ce, createWorkbookOptions: fe, onWarning: (oo) => {
4196
+ Z.push(oo);
4197
4197
  } }, et = await Ot.read(qe, _);
4198
4198
  return Z.length > 0 && (_?.showMessage?.("Some elements were not able to be imported. See console for details."), console.warn(`Import warnings:
4199
4199
  ` + Z.join(`
@@ -4227,11 +4227,11 @@ const zl = Y(J((r, i) => {
4227
4227
  if (!Me) return;
4228
4228
  const ye = Me.title, qe = Me.workbook, et = qe.getSelectedSheet();
4229
4229
  if (Me.formatType.mimeType === "text/csv") {
4230
- const no = M.findValidSheetName(ye);
4230
+ const oo = M.findValidSheetName(ye);
4231
4231
  await M.doBatch(async () => {
4232
4232
  const fn = et.getUsedRange();
4233
4233
  if (!fn) return void _?.showMessage("The file appears to be blank.");
4234
- await M.getSheets().add({ name: no, autoSelect: !0 }).getRange({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }).copyFrom(fn);
4234
+ await M.getSheets().add({ name: oo, autoSelect: !0 }).getRange({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }).copyFrom(fn);
4235
4235
  }, `Import CSV '${ye}'`);
4236
4236
  } else M?.close(), q?.(ye), E(qe);
4237
4237
  } catch (Me) {
@@ -4261,7 +4261,7 @@ const zl = Y(J((r, i) => {
4261
4261
  let ge = null;
4262
4262
  return ge = z ? z.createChildGroup(ve, "standaloneWorkbook", !1) : new gr(ve, "standaloneWorkbook"), ge.addCommands($e, !0), ge;
4263
4263
  }, [z, $e]);
4264
- rp({ manager: X, commands: H, notifier: _ });
4264
+ ip({ manager: X, commands: H, notifier: _ });
4265
4265
  const { themeMode: oe } = vi();
4266
4266
  ue(() => {
4267
4267
  if (!ie || !H) return;
@@ -4276,10 +4276,10 @@ const zl = Y(J((r, i) => {
4276
4276
  Fe(!ie.enableDarkImages);
4277
4277
  });
4278
4278
  }, [oe, ie, $e]);
4279
- const { showModal: Te } = Hd();
4279
+ const { showModal: Te } = Wd();
4280
4280
  return ue(() => {
4281
4281
  const ge = () => new Promise((fe, Z) => {
4282
- const ce = ae.lazy(() => import("./B7jlirA4L119wA18.mjs")), Me = Te(ce, { title: "Shortcut Keys Reference", commands: H, onDone: () => {
4282
+ const ce = ae.lazy(() => import("./IwGsANxAJE1W0MS8.mjs")), Me = Te(ce, { title: "Shortcut Keys Reference", commands: H, onDone: () => {
4283
4283
  Me.hide();
4284
4284
  }, TransitionProps: { onExited: () => {
4285
4285
  fe(!0);
@@ -4306,18 +4306,18 @@ const zl = Y(J((r, i) => {
4306
4306
  }), { ...V, starting: /* @__PURE__ */ new Map(), running: M };
4307
4307
  });
4308
4308
  }, [b]);
4309
- const [S, P] = U(null);
4309
+ const [S, R] = U(null);
4310
4310
  ue(() => {
4311
- b.starting.size !== 0 || b.running.size !== 0 ? P(e(Lt, { icon: e(jd, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: b.label, onMount: f, onUnmount: w, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : P(null);
4311
+ b.starting.size !== 0 || b.running.size !== 0 ? R(e(Lt, { icon: e(_d, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: b.label, onMount: f, onUnmount: w, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : R(null);
4312
4312
  }, [b.starting, b.running]);
4313
- const L = W(() => e(ru, { commands: D, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [D]), F = { notifier: N, commands: D };
4313
+ const L = W(() => e(iu, { commands: P, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [P]), F = { notifier: N, commands: P };
4314
4314
  return o && (F.statusBarProps = { childrenEnd: L }), $(se, { children: [S, a ? ae.cloneElement(a, F) : null] });
4315
4315
  }));
4316
4316
  zl.displayName = "SnackbarAndCommandsWrapper";
4317
4317
  const or = Y(J((r, i) => {
4318
- const { className: o, sx: t, style: n, onElementLoad: l, onError: c, undoManager: g, errorPanel: a = Vd, onKeyDown: s, workbook: u, createWorkbookOptions: p, onWorkbookChange: h, logo: d, importExportDisabled: m = !1, themeOptions: y, autoFocus: b = !1, commands: x, title: f, onTitleChange: w, titleProps: v, renderLoadingPanel: C, ...k } = r, T = Se(null), I = te(h, [h]), N = te(w ?? v?.onTitleChange, [w ?? v?.onTitleChange]), B = v?.placeHolder ?? "Untitled", D = y?.mode, { themeMode: S, source: P } = vi({ mode: D }), L = W(() => ({ ...y, light: ca(!1, Jt.deepMerge(y?.theme ?? {}, y?.light ?? {})), dark: ca(!0, Jt.deepMerge(y?.theme ?? {}, y?.dark ?? {})) }), [y]), F = S === qn.Dark, [V, M] = U(null);
4318
+ const { className: o, sx: t, style: n, onElementLoad: l, onError: c, undoManager: g, errorPanel: a = Ud, onKeyDown: s, workbook: u, createWorkbookOptions: p, onWorkbookChange: h, logo: d, importExportDisabled: m = !1, themeOptions: y, autoFocus: b = !1, commands: x, title: f, onTitleChange: w, titleProps: v, renderLoadingPanel: C, ...k } = r, T = Se(null), I = te(h, [h]), N = te(w ?? v?.onTitleChange, [w ?? v?.onTitleChange]), B = v?.placeHolder ?? "Untitled", P = y?.mode, { themeMode: S, source: R } = vi({ mode: P }), L = W(() => ({ ...y, light: ca(!1, Jt.deepMerge(y?.theme ?? {}, y?.light ?? {})), dark: ca(!0, Jt.deepMerge(y?.theme ?? {}, y?.dark ?? {})) }), [y]), F = S === qn.Dark, [V, M] = U(null);
4319
4319
  ue(() => {
4320
- M(g ?? new xp());
4320
+ M(g ?? new wp());
4321
4321
  }, [g]);
4322
4322
  const [E, K] = U(null), [Q, q] = U(null), _ = fr();
4323
4323
  St(() => {
@@ -4383,7 +4383,7 @@ const or = Y(J((r, i) => {
4383
4383
  const $e = W(() => {
4384
4384
  const Z = { transparentBackground: !0 };
4385
4385
  return e(A, { sx: t, style: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, display: "flex", alignItems: "center", justifyContent: "center", ...n }, children: C?.(Z) ?? e(Lt, { ...Z }) });
4386
- }, [t, n, C]), H = G(({ error: Z }) => (c?.(Z), e(a, { sx: t, style: n, error: Z ?? "Unable to display empty workbook." })), [t, n, c]), oe = W(() => ({ ...t, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-SnackbarContainer > div": { maxWidth: "100%" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-Snackbar > .error-snackbar .MuiTypography-root": { color: (Z) => Z.palette.getContrastText(Z.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiCardActions-root": { color: (Z) => Z.palette.getContrastText(Z.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiButtonBase-root": { color: (Z) => Z.palette.getContrastText(Z.palette.error.main) }, "& .notistack-MuiContent *": { fontFamily: (Z) => Z.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [t]), Te = Fo([T, i]), ge = W(() => {
4386
+ }, [t, n, C]), H = G(({ error: Z }) => (c?.(Z), e(a, { sx: t, style: n, error: Z ?? "Unable to display empty workbook." })), [t, n, c]), oe = W(() => ({ ...t, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-SnackbarContainer > div": { maxWidth: "100%" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-Snackbar > .error-snackbar .MuiTypography-root": { color: (Z) => Z.palette.getContrastText(Z.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiCardActions-root": { color: (Z) => Z.palette.getContrastText(Z.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiButtonBase-root": { color: (Z) => Z.palette.getContrastText(Z.palette.error.main) }, "& .notistack-MuiContent *": { fontFamily: (Z) => Z.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [t]), Te = No([T, i]), ge = W(() => {
4387
4387
  if (!E) return $e;
4388
4388
  if (E.error || !E.workbook) return H({ error: E.error });
4389
4389
  let Z = null, ce = null, Me = !1;
@@ -4391,97 +4391,97 @@ const or = Y(J((r, i) => {
4391
4391
  s?.(ye);
4392
4392
  }, renderLoadingPanel: C, gridTheme: ce, headersTheme: Z, enableDarkImages: Me, className: Ae(o, "sheetxl-workbook"), onContextMenu: (ye) => ye.preventDefault(), ...k }, "WorkbookElement");
4393
4393
  }, [E, z, V, $e, C, L, k, ve, oe]);
4394
- let fe = e(Xu, { fallbackRender: H, children: e(wm, { maxSnack: 3, domRoot: me, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (Z, ce, Me) => {
4394
+ let fe = e(Yu, { fallbackRender: H, children: e(vm, { maxSnack: 3, domRoot: me, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (Z, ce, Me) => {
4395
4395
  T.current?.focus();
4396
- }, Components: { error: Bl }, iconVariant: { success: e(ir, { style: { marginRight: "8px" }, children: e("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }) }), error: e(Ud, { style: { marginRight: "8px" } }) }, children: e(_d, { children: e(zl, { workbook: E?.workbook, setWorkbook: q, importExportDisabled: m, titlePlaceHolder: B, titleWorkbook: z, setWorkbookTitle: ee, refWorkbookTitle: Ye, commands: Fe, undoManager: V, themeOptions: L, children: ge }) }) }) });
4396
+ }, Components: { error: Bl }, iconVariant: { success: e(ir, { style: { marginRight: "8px" }, children: e("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }) }), error: e(qd, { style: { marginRight: "8px" } }) }, children: e(Gd, { children: e(zl, { workbook: E?.workbook, setWorkbook: q, importExportDisabled: m, titlePlaceHolder: B, titleWorkbook: z, setWorkbookTitle: ee, refWorkbookTitle: Ye, commands: Fe, undoManager: V, themeOptions: L, children: ge }) }) }) });
4397
4397
  return L && (fe = $(Ei, { theme: F ? L.dark : L.light, children: [L.cssBaseline ? e(Fs, {}) : null, fe] })), fe;
4398
4398
  }));
4399
4399
  or.displayName = "EagerStudio";
4400
- const Tm = Object.freeze(Object.defineProperty({ __proto__: null, EagerStudio: or, default: or }, Symbol.toStringTag, { value: "Module" }));
4400
+ const Dm = Object.freeze(Object.defineProperty({ __proto__: null, EagerStudio: or, default: or }, Symbol.toStringTag, { value: "Module" }));
4401
4401
  export {
4402
- Eo as $,
4403
- ou as A,
4404
- Fp as B,
4405
- Ep as C,
4402
+ To as $,
4403
+ ru as A,
4404
+ Ap as B,
4405
+ Pp as C,
4406
4406
  Ii as D,
4407
- nu as E,
4408
- Ap as F,
4409
- ru as G,
4410
- yp as H,
4407
+ au as E,
4408
+ Lp as F,
4409
+ iu as G,
4410
+ Sp as H,
4411
4411
  Mi as I,
4412
4412
  Hi as J,
4413
4413
  xr as K,
4414
- au as L,
4415
- Op as M,
4416
- cu as N,
4417
- lu as O,
4414
+ lu as L,
4415
+ Bp as M,
4416
+ pu as N,
4417
+ cu as O,
4418
4418
  Ai as P,
4419
- Np as Q,
4420
- du as R,
4421
- Gu as S,
4422
- $m as T,
4419
+ Op as Q,
4420
+ uu as R,
4421
+ Xu as S,
4422
+ Vm as T,
4423
4423
  Fi as U,
4424
- wp as V,
4425
- Up as W,
4424
+ vp as V,
4425
+ qp as W,
4426
4426
  fa as X,
4427
- Ip as Y,
4428
- Cp as Z,
4427
+ Fp as Y,
4428
+ Tp as Z,
4429
4429
  Zn as _,
4430
- Kp as a,
4431
- Rp as a0,
4430
+ Zp as a,
4431
+ Ip as a0,
4432
4432
  br as a1,
4433
4433
  Pi as a2,
4434
- Qp as a3,
4435
- eu as a4,
4436
- tu as a5,
4434
+ tu as a3,
4435
+ ou as a4,
4436
+ nu as a5,
4437
4437
  ji as a6,
4438
4438
  $i as a7,
4439
4439
  Ki as a8,
4440
4440
  Xi as a9,
4441
4441
  Yi as aa,
4442
- yu as ab,
4443
- Yp as ac,
4442
+ Su as ab,
4443
+ Jp as ac,
4444
4444
  Zi as ad,
4445
4445
  Ji as ae,
4446
4446
  Qi as af,
4447
- Vm as ag,
4447
+ Um as ag,
4448
4448
  Sl as ah,
4449
4449
  vl as ai,
4450
4450
  yl as aj,
4451
4451
  xl as ak,
4452
- Ru as al,
4453
- Mu as am,
4452
+ Iu as al,
4453
+ Nu as am,
4454
4454
  ja as an,
4455
4455
  or as ao,
4456
- Cm as ap,
4456
+ Tm as ap,
4457
4457
  Ot as aq,
4458
4458
  dl as ar,
4459
4459
  ul as as,
4460
- ku as at,
4460
+ Eu as at,
4461
4461
  sl as au,
4462
4462
  Wt as b,
4463
- Co as c,
4463
+ vo as c,
4464
4464
  Yn as d,
4465
4465
  ol as e,
4466
4466
  Ae as f,
4467
- jm as g,
4468
- Sp as h,
4469
- vp as i,
4470
- Bp as j,
4471
- Lp as k,
4472
- Hp as l,
4467
+ _m as g,
4468
+ Cp as h,
4469
+ kp as i,
4470
+ Hp as j,
4471
+ zp as k,
4472
+ Wp as l,
4473
4473
  Ri as m,
4474
- zp as n,
4475
- Wp as o,
4474
+ $p as n,
4475
+ jp as o,
4476
4476
  Ni as p,
4477
- Wm as q,
4477
+ jm as q,
4478
4478
  mn as r,
4479
- Mo as s,
4480
- $p as t,
4481
- Io as u,
4482
- jp as v,
4483
- Vp as w,
4484
- _p as x,
4485
- qp as y,
4486
- Jp as z
4479
+ Ro as s,
4480
+ Vp as t,
4481
+ Mo as u,
4482
+ _p as v,
4483
+ Up as w,
4484
+ Gp as x,
4485
+ Kp as y,
4486
+ eu as z
4487
4487
  };