@univerjs/sheets-formula-ui 0.10.1 → 0.10.2

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.
package/lib/es/index.js CHANGED
@@ -1,27 +1,27 @@
1
1
  var Wr = Object.defineProperty;
2
2
  var Hr = (e, t, n) => t in e ? Wr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var q = (e, t, n) => Hr(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { CommandType as Me, ICommandService as ve, createIdentifier as Br, IContextService as un, IUniverInstanceService as ne, Rectangle as Qn, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as dn, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Jn, DEFAULT_EMPTY_DOCUMENT_VALUE as er, isRealNum as jr, CellValueType as Nn, getCellValueType as qr, Inject as j, Disposable as lt, ObjectMatrix as $e, Range as Kr, Tools as hn, isFormulaString as xe, isFormulaId as je, FOCUSING_DOC as Yr, FOCUSING_UNIVER_EDITOR as Gr, LocaleService as ut, isICellData as Zr, generateRandomId as qt, Direction as ue, Injector as _t, UniverInstanceType as H, ThemeService as Rt, ILogService as zr, toDisposable as tr, ColorKit as fn, RxDisposable as Xr, InterceptorEffectEnum as Qr, DisposableCollection as qe, RANGE_TYPE as Re, getBodySlice as xn, EDITOR_ACTIVATED as wt, createInternalEditorID as Jr, BuildTextUtils as eo, RichTextBuilder as to, DependentOn as no, IConfigService as ro, Plugin as oo, merge as so, registerDependencies as io, touchDependencies as co } from "@univerjs/core";
5
- import { SheetPasteCommand as ao, PREDEFINED_HOOK_NAME as st, IEditorBridgeService as gn, SetCellEditVisibleOperation as nr, HoverManagerService as lo, CellAlertManagerService as uo, CellAlertType as ho, IAutoFillService as fo, APPLY_TYPE as go, DATA_TYPE as Mn, ISheetClipboardService as mo, COPY_TYPE as rr, SheetSkeletonManagerService as Kt, attachSelectionWithCoord as on, SelectionControl as or, SELECTION_SHAPE_DEPTH as po, useActiveWorkbook as vo, getCurrentRangeDisable$ as Ke, PASTE_SPECIAL_MENU_ID as So, whenFormulaEditorActivated as Et, whenSheetEditorFocused as Co, SheetsUIPart as _o, BaseSelectionRenderService as Ro, getCoordByOffset as wn, checkInHeaderRanges as kn, getAllSelection as Eo, genNormalSelectionStyle as sr, getSheetObject as Io, MoveSelectionCommand as An, JumpOver as Fn, ExpandSelectionCommand as Dn, EMBEDDING_FORMULA_EDITOR as bo, IMarkSelectionService as yo, RANGE_SELECTOR_COMPONENT_KEY as To, EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY as Oo } from "@univerjs/sheets-ui";
6
- import { sequenceNodeType as Q, serializeRange as Ee, FormulaDataModel as It, LexerTreeBuilder as Ie, ERROR_TYPE_SET as No, ErrorType as le, SetFormulaCalculationResultMutation as xo, SetArrayFormulaDataMutation as Mo, SetFormulaCalculationStopMutation as wo, FunctionType as ko, deserializeRangeWithSheetWithCache as Ao, matchRefDrawToken as Fo, isFormulaLexerToken as Do, matchToken as ct, deserializeRangeWithSheet as dt, serializeRangeToRefString as Lo, serializeRangeWithSheet as St, serializeRangeWithSpreadsheet as $o, generateStringWithSequence as Po, operatorToken as ir, UniverFormulaEnginePlugin as Uo } from "@univerjs/engine-formula";
7
- import { Subject as gt, debounceTime as mn, combineLatestWith as Vo, map as cr, switchMap as Wo, of as Ln, Observable as Ho, BehaviorSubject as ar, throttleTime as Bo, filter as lr, distinctUntilChanged as jo, merge as qo } from "rxjs";
4
+ import { CommandType as Me, ICommandService as ve, createIdentifier as Br, IContextService as un, IUniverInstanceService as ne, Rectangle as Qn, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as dn, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Jn, DEFAULT_EMPTY_DOCUMENT_VALUE as er, isRealNum as jr, CellValueType as Nn, getCellValueType as qr, Inject as j, Disposable as ut, ObjectMatrix as $e, Range as Kr, Tools as hn, isFormulaString as xe, isFormulaId as je, FOCUSING_DOC as Yr, FOCUSING_UNIVER_EDITOR as Gr, LocaleService as dt, isICellData as Zr, generateRandomId as qt, Direction as ue, Injector as Rt, UniverInstanceType as H, ThemeService as Et, ILogService as zr, toDisposable as tr, ColorKit as fn, RxDisposable as Xr, InterceptorEffectEnum as Qr, DisposableCollection as qe, RANGE_TYPE as Re, getBodySlice as xn, EDITOR_ACTIVATED as wt, createInternalEditorID as Jr, BuildTextUtils as eo, RichTextBuilder as to, DependentOn as no, IConfigService as ro, Plugin as oo, merge as so, registerDependencies as io, touchDependencies as co } from "@univerjs/core";
5
+ import { SheetPasteCommand as ao, PREDEFINED_HOOK_NAME as it, IEditorBridgeService as gn, SetCellEditVisibleOperation as nr, HoverManagerService as lo, CellAlertManagerService as uo, CellAlertType as ho, IAutoFillService as fo, APPLY_TYPE as go, DATA_TYPE as Mn, ISheetClipboardService as mo, COPY_TYPE as rr, SheetSkeletonManagerService as Kt, attachSelectionWithCoord as on, SelectionControl as or, SELECTION_SHAPE_DEPTH as po, useActiveWorkbook as vo, getCurrentRangeDisable$ as Ke, PASTE_SPECIAL_MENU_ID as So, whenFormulaEditorActivated as It, whenSheetEditorFocused as Co, SheetsUIPart as _o, BaseSelectionRenderService as Ro, getCoordByOffset as wn, checkInHeaderRanges as kn, getAllSelection as Eo, genNormalSelectionStyle as sr, getSheetObject as Io, MoveSelectionCommand as An, JumpOver as Fn, ExpandSelectionCommand as Dn, EMBEDDING_FORMULA_EDITOR as bo, IMarkSelectionService as yo, RANGE_SELECTOR_COMPONENT_KEY as To, EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY as Oo } from "@univerjs/sheets-ui";
6
+ import { sequenceNodeType as Q, serializeRange as Ee, FormulaDataModel as bt, LexerTreeBuilder as Ie, ERROR_TYPE_SET as No, ErrorType as le, SetFormulaCalculationResultMutation as xo, SetArrayFormulaDataMutation as Mo, SetFormulaCalculationStopMutation as wo, FunctionType as ko, deserializeRangeWithSheetWithCache as Ao, matchRefDrawToken as Fo, isFormulaLexerToken as Do, matchToken as at, deserializeRangeWithSheet as ht, serializeRangeToRefString as Lo, serializeRangeWithSheet as Ct, serializeRangeWithSpreadsheet as $o, generateStringWithSequence as Po, operatorToken as ir, UniverFormulaEnginePlugin as Uo } from "@univerjs/engine-formula";
7
+ import { Subject as mt, debounceTime as mn, combineLatestWith as Vo, map as cr, switchMap as Wo, of as Ln, Observable as Ho, BehaviorSubject as ar, throttleTime as Bo, filter as lr, distinctUntilChanged as jo, merge as qo } from "rxjs";
8
8
  import { IEditorService as Ye, DocSelectionRenderService as ur, ReplaceTextRunsCommand as $n, MoveSelectionOperation as Ko, MoveCursorOperation as Yo, useKeyboardEvent as Go, useResize as Zo, DocBackScrollRenderController as zo, RichTextEditor as Xo } from "@univerjs/docs-ui";
9
9
  import { DeviceInputEventType as we, IRenderManagerService as ke, ScrollTimerType as en, SHEET_VIEWPORT_KEY as Pn, Vector2 as Un } from "@univerjs/engine-render";
10
10
  import { SheetsSelectionsService as pn, getSheetCommandTarget as dr, getCellAtRowCol as Qo, SetSelectionsOperation as vn, SheetInterceptorService as Sn, ReorderRangeCommand as Jo, SetRangeValuesMutation as Dt, SetRangeValuesUndoMutationFactory as es, BEFORE_CELL_EDIT as ts, SetWorksheetRowAutoHeightMutation as ns, INTERCEPTOR_POINT as rs, WorksheetSetCellValuePermission as Ge, WorksheetEditPermission as Ze, RangeProtectionPermissionEditPoint as ze, WorkbookEditablePermission as Xe, IRefSelectionsService as Yt, SelectionMoveType as tn, convertSelectionDataToRange as os, setEndForRange as ss, REF_SELECTIONS_ENABLED as Vn, SetWorksheetActiveOperation as Wn } from "@univerjs/sheets";
11
11
  import { InsertFunctionCommand as is, TriggerCalculationController as cs, IDescriptionService as Gt, QuickSumCommand as as, UniverSheetsFormulaPlugin as ls } from "@univerjs/sheets-formula";
12
- import { ISidebarService as Cn, IZenZoneService as us, useDependency as y, useObservable as Ce, ProgressBar as ds, MenuItemType as Qe, getMenuHiddenObservable as ht, IClipboardInterfaceService as Hn, RibbonFormulasGroup as Bn, KeyCode as L, MetaKeys as P, IMenuManagerService as hs, IShortcutService as Zt, IUIPartsService as hr, ComponentManager as fr, connectInjector as gr, useEvent as ee, RectPopup as sn, IContextMenuService as fs, useUpdateEffect as gs, BuiltInUIPart as ms } from "@univerjs/ui";
12
+ import { ISidebarService as Cn, IZenZoneService as us, useDependency as y, useObservable as Ce, ProgressBar as ds, MenuItemType as Qe, getMenuHiddenObservable as ft, IClipboardInterfaceService as Hn, RibbonFormulasGroup as Bn, KeyCode as L, MetaKeys as P, IMenuManagerService as hs, IShortcutService as Zt, IUIPartsService as hr, ComponentManager as fr, connectInjector as gr, useEvent as te, RectPopup as sn, IContextMenuService as fs, useUpdateEffect as gs, BuiltInUIPart as ms } from "@univerjs/ui";
13
13
  import { jsx as N, jsxs as W, Fragment as ps } from "react/jsx-runtime";
14
14
  import { useCallback as Lt, useState as V, forwardRef as Ae, useRef as z, createElement as Je, useEffect as $, useMemo as se, useLayoutEffect as $t, useImperativeHandle as vs } from "react";
15
- import { clsx as re, scrollbarClassName as at, borderLeftClassName as Ss, Select as Cs, Input as mr, borderClassName as _n, Button as it, borderTopClassName as _s, Tooltip as Rs, Dialog as Es } from "@univerjs/design";
15
+ import { clsx as re, scrollbarClassName as lt, borderLeftClassName as Ss, Select as Cs, Input as mr, borderClassName as _n, Button as ct, borderTopClassName as _s, Tooltip as Rs, Dialog as Es } from "@univerjs/design";
16
16
  import { DocSelectionManagerService as pr } from "@univerjs/docs";
17
17
  import { debounceTime as Is } from "rxjs/operators";
18
18
  const Rn = {
19
19
  id: "sheet.command.paste-formula",
20
20
  type: Me.COMMAND,
21
21
  handler: async (e) => e.get(ve).executeCommand(ao.id, {
22
- value: st.SPECIAL_PASTE_FORMULA
22
+ value: it.SPECIAL_PASTE_FORMULA
23
23
  })
24
- }, ft = {
24
+ }, gt = {
25
25
  id: "formula-ui.operation.select-editor-formula",
26
26
  type: Me.OPERATION,
27
27
  handler: (e, t) => !0
@@ -34,11 +34,11 @@ var bs = Object.getOwnPropertyDescriptor, ys = (e, t, n, o) => {
34
34
  const Os = "FORMULA_PROMPT_ACTIVATED", zt = Br("formula-ui.prompt-service");
35
35
  let cn = class {
36
36
  constructor(e) {
37
- q(this, "_search$", new gt());
38
- q(this, "_help$", new gt());
39
- q(this, "_navigate$", new gt());
40
- q(this, "_accept$", new gt());
41
- q(this, "_acceptFormulaName$", new gt());
37
+ q(this, "_search$", new mt());
38
+ q(this, "_help$", new mt());
39
+ q(this, "_navigate$", new mt());
40
+ q(this, "_accept$", new mt());
41
+ q(this, "_acceptFormulaName$", new mt());
42
42
  q(this, "search$", this._search$.asObservable());
43
43
  q(this, "help$", this._help$.asObservable());
44
44
  q(this, "navigate$", this._navigate$.asObservable());
@@ -331,11 +331,11 @@ function xs(e, t, n) {
331
331
  if (t === 0) return t;
332
332
  for (let r = t - 1; r >= 0; r--) {
333
333
  const s = e.getValue(r, n);
334
- if (Ct(s) && !o) {
334
+ if (_t(s) && !o) {
335
335
  if (r === 0) return 0;
336
336
  o = !0;
337
337
  } else {
338
- if (o && !Ct(s))
338
+ if (o && !_t(s))
339
339
  return r + 1;
340
340
  if (o && r === 0)
341
341
  return 0;
@@ -348,11 +348,11 @@ function Ms(e, t, n) {
348
348
  if (n === 0) return n;
349
349
  for (let r = n - 1; r >= 0; r--) {
350
350
  const s = e.getValue(t, r);
351
- if (Ct(s) && !o) {
351
+ if (_t(s) && !o) {
352
352
  if (r === 0) return 0;
353
353
  o = !0;
354
354
  } else {
355
- if (o && !Ct(s))
355
+ if (o && !_t(s))
356
356
  return r + 1;
357
357
  if (o && r === 0)
358
358
  return 0;
@@ -360,7 +360,7 @@ function Ms(e, t, n) {
360
360
  }
361
361
  return n;
362
362
  }
363
- function Ct(e) {
363
+ function _t(e) {
364
364
  if (e != null && e.p) {
365
365
  const t = e == null ? void 0 : e.p.body;
366
366
  if (t == null)
@@ -379,7 +379,7 @@ function ks(e) {
379
379
  function qn(e, t) {
380
380
  for (let n = t.startRow; n <= t.endRow; n++)
381
381
  for (let o = t.startColumn; o <= t.endColumn; o++)
382
- if (Ct(e.getValue(n, o)))
382
+ if (_t(e.getValue(n, o)))
383
383
  return !1;
384
384
  return !0;
385
385
  }
@@ -416,7 +416,7 @@ var Ls = Object.getOwnPropertyDescriptor, $s = (e, t, n, o) => {
416
416
  (c = e[s]) && (r = c(r) || r);
417
417
  return r;
418
418
  }, kt = (e, t) => (n, o) => t(n, o, e);
419
- let Pt = class extends lt {
419
+ let Pt = class extends ut {
420
420
  constructor(e, t, n, o) {
421
421
  super(), this._sheetInterceptorService = e, this._univerInstanceService = t, this._formulaDataModel = n, this._lexerTreeBuilder = o, this._initialize();
422
422
  }
@@ -478,7 +478,7 @@ let Pt = class extends lt {
478
478
  Pt = $s([
479
479
  kt(0, j(Sn)),
480
480
  kt(1, j(ne)),
481
- kt(2, j(It)),
481
+ kt(2, j(bt)),
482
482
  kt(3, j(Ie))
483
483
  ], Pt);
484
484
  const Ps = "sheets-formula-ui.base.config", Kn = {};
@@ -492,7 +492,7 @@ var Vs = Object.getOwnPropertyDescriptor, Ws = (e, t, n, o) => {
492
492
  for (var r = o > 1 ? void 0 : o ? Vs(t, n) : t, s = e.length - 1, c; s >= 0; s--)
493
493
  (c = e[s]) && (r = c(r) || r);
494
494
  return r;
495
- }, mt = (e, t) => (n, o) => t(n, o, e);
495
+ }, pt = (e, t) => (n, o) => t(n, o, e);
496
496
  const nn = "SHEET_FORMULA_ALERT", Hs = {
497
497
  [le.DIV_BY_ZERO]: "divByZero",
498
498
  [le.NAME]: "name",
@@ -507,7 +507,7 @@ const nn = "SHEET_FORMULA_ALERT", Hs = {
507
507
  [le.CONNECT]: "connect",
508
508
  [le.NULL]: "null"
509
509
  };
510
- let an = class extends lt {
510
+ let an = class extends ut {
511
511
  constructor(e, t, n, o, r, s) {
512
512
  super(), this._context = e, this._hoverManagerService = t, this._cellAlertManagerService = n, this._localeService = o, this._formulaDataModel = r, this._zenZoneService = s, this._init();
513
513
  }
@@ -555,18 +555,18 @@ let an = class extends lt {
555
555
  }
556
556
  };
557
557
  an = Ws([
558
- mt(1, j(lo)),
559
- mt(2, j(uo)),
560
- mt(3, j(ut)),
561
- mt(4, j(It)),
562
- mt(5, us)
558
+ pt(1, j(lo)),
559
+ pt(2, j(uo)),
560
+ pt(3, j(dt)),
561
+ pt(4, j(bt)),
562
+ pt(5, us)
563
563
  ], an);
564
564
  var Bs = Object.getOwnPropertyDescriptor, js = (e, t, n, o) => {
565
565
  for (var r = o > 1 ? void 0 : o ? Bs(t, n) : t, s = e.length - 1, c; s >= 0; s--)
566
566
  (c = e[s]) && (r = c(r) || r);
567
567
  return r;
568
568
  }, Yn = (e, t) => (n, o) => t(n, o, e);
569
- let Ut = class extends lt {
569
+ let Ut = class extends ut {
570
570
  constructor(e, t) {
571
571
  super(), this._autoFillService = e, this._lexerTreeBuilder = t, this._registerAutoFill();
572
572
  }
@@ -649,9 +649,9 @@ var Ys = Object.getOwnPropertyDescriptor, Gs = (e, t, n, o) => {
649
649
  for (var r = o > 1 ? void 0 : o ? Ys(t, n) : t, s = e.length - 1, c; s >= 0; s--)
650
650
  (c = e[s]) && (r = c(r) || r);
651
651
  return r;
652
- }, pt = (e, t) => (n, o) => t(n, o, e);
652
+ }, vt = (e, t) => (n, o) => t(n, o, e);
653
653
  const Zs = "default-paste-formula";
654
- let Vt = class extends lt {
654
+ let Vt = class extends ut {
655
655
  constructor(e, t, n, o, r) {
656
656
  super(), this._currentUniverSheet = e, this._lexerTreeBuilder = t, this._sheetClipboardService = n, this._injector = o, this._formulaDataModel = r, this._initialize();
657
657
  }
@@ -663,7 +663,7 @@ let Vt = class extends lt {
663
663
  }
664
664
  _pasteFormulaHook() {
665
665
  return {
666
- id: st.SPECIAL_PASTE_FORMULA,
666
+ id: it.SPECIAL_PASTE_FORMULA,
667
667
  priority: 10,
668
668
  specialPasteInfo: { label: "specialPaste.formula" },
669
669
  onPasteCells: (e, t, n, o) => this._onPasteCells(e, t, n, o, !0)
@@ -679,8 +679,8 @@ let Vt = class extends lt {
679
679
  _onPasteCells(e, t, n, o, r) {
680
680
  var u;
681
681
  if ([
682
- st.SPECIAL_PASTE_FORMAT,
683
- st.SPECIAL_PASTE_COL_WIDTH
682
+ it.SPECIAL_PASTE_FORMAT,
683
+ it.SPECIAL_PASTE_COL_WIDTH
684
684
  ].includes(o.pasteType))
685
685
  return {
686
686
  undos: [],
@@ -712,11 +712,11 @@ let Vt = class extends lt {
712
712
  }
713
713
  };
714
714
  Vt = Gs([
715
- pt(0, ne),
716
- pt(1, j(Ie)),
717
- pt(2, mo),
718
- pt(3, j(_t)),
719
- pt(4, j(It))
715
+ vt(0, ne),
716
+ vt(1, j(Ie)),
717
+ vt(2, mo),
718
+ vt(3, j(Rt)),
719
+ vt(4, j(bt))
720
720
  ], Vt);
721
721
  function zs(e, t, n, o, r, s, c, i, a = !1, f) {
722
722
  const h = [], g = [], u = Xs(e, t, n, o, s, c, i, f);
@@ -747,7 +747,7 @@ function zs(e, t, n, o, r, s, c, i, a = !1, f) {
747
747
  };
748
748
  }
749
749
  function Xs(e, t, n, o, r, s, c, i) {
750
- return i ? r.pasteType === st.SPECIAL_PASTE_VALUE ? Js(e, t, n, o, c, i) : r.pasteType === st.SPECIAL_PASTE_FORMULA ? ei(e, t, n, o, s, c, i) : ti(e, t, n, o, r.copyType, s, c, i) : Qs(e, t, n, o, c);
750
+ return i ? r.pasteType === it.SPECIAL_PASTE_VALUE ? Js(e, t, n, o, c, i) : r.pasteType === it.SPECIAL_PASTE_FORMULA ? ei(e, t, n, o, s, c, i) : ti(e, t, n, o, r.copyType, s, c, i) : Qs(e, t, n, o, c);
751
751
  }
752
752
  function Qs(e, t, n, o, r) {
753
753
  const s = new $e(), c = r.getSheetFormulaData(e, t);
@@ -891,7 +891,7 @@ var ni = Object.getOwnPropertyDescriptor, ri = (e, t, n, o) => {
891
891
  (c = e[s]) && (r = c(r) || r);
892
892
  return r;
893
893
  }, He = (e, t) => (n, o) => t(n, o, e);
894
- let Wt = class extends lt {
894
+ let Wt = class extends ut {
895
895
  constructor(t, n, o, r, s, c, i, a) {
896
896
  super();
897
897
  q(this, "_previousShape");
@@ -1031,8 +1031,8 @@ let Wt = class extends lt {
1031
1031
  };
1032
1032
  Wt = ri([
1033
1033
  He(1, j(Sn)),
1034
- He(2, j(It)),
1035
- He(3, j(Rt)),
1034
+ He(2, j(bt)),
1035
+ He(3, j(Et)),
1036
1036
  He(4, ke),
1037
1037
  He(5, j(Kt)),
1038
1038
  He(6, ve),
@@ -1070,7 +1070,7 @@ let Ht = class extends Xr {
1070
1070
  };
1071
1071
  Ht = si([
1072
1072
  Gn(0, j(Sn)),
1073
- Gn(1, j(It))
1073
+ Gn(1, j(bt))
1074
1074
  ], Ht);
1075
1075
  function ci() {
1076
1076
  const e = y(cs), t = y(ve), n = Ce(e.progress$), o = Lt(() => {
@@ -1110,7 +1110,7 @@ function Ir(e) {
1110
1110
  ")"
1111
1111
  ] });
1112
1112
  }
1113
- function vt(e) {
1113
+ function St(e) {
1114
1114
  const { className: t, value: n, title: o } = e;
1115
1115
  return /* @__PURE__ */ W("div", { className: "univer-mb-2 univer-text-xs", children: [
1116
1116
  /* @__PURE__ */ N(
@@ -1134,12 +1134,12 @@ function li(e) {
1134
1134
  if (!t) return null;
1135
1135
  const [o, r] = V([]), [s, c] = V(t.functionParameter), [i, a] = V(-1);
1136
1136
  return /* @__PURE__ */ W("div", { children: [
1137
- /* @__PURE__ */ N("div", { className: re("univer-h-[364px] univer-overflow-y-auto", at), children: s.map((f, h) => /* @__PURE__ */ W("div", { children: [
1137
+ /* @__PURE__ */ N("div", { className: re("univer-h-[364px] univer-overflow-y-auto", lt), children: s.map((f, h) => /* @__PURE__ */ W("div", { children: [
1138
1138
  /* @__PURE__ */ N("div", { className: "univer-text-sm", children: f.name }),
1139
1139
  /* @__PURE__ */ N("div", { className: "univer-mb-2 univer-mt-1" })
1140
1140
  ] }, h)) }),
1141
1141
  /* @__PURE__ */ N("div", { className: re("univer-flex-1 univer-p-3", Ss), children: /* @__PURE__ */ N(
1142
- vt,
1142
+ St,
1143
1143
  {
1144
1144
  title: i === -1 ? /* @__PURE__ */ N(Ir, { prefix: t.functionName, value: s }) : s[i].name,
1145
1145
  value: i === -1 ? t.description : s[i].detail
@@ -1242,7 +1242,7 @@ var Ci = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none
1242
1242
  });
1243
1243
  Mr.displayName = "SelectRangeIcon";
1244
1244
  function _i(e) {
1245
- const { onChange: t } = e, n = "-1", [o, r] = V(""), [s, c] = V([]), [i, a] = V(0), [f, h] = V(n), [g, u] = V(0), [d, l] = V(null), S = y(Gt), p = y(ut), v = y(Cn), C = Ce(v.sidebarOptions$), R = ai(ko, p);
1245
+ const { onChange: t } = e, n = "-1", [o, r] = V(""), [s, c] = V([]), [i, a] = V(0), [f, h] = V(n), [g, u] = V(0), [d, l] = V(null), S = y(Gt), p = y(dt), v = y(Cn), C = Ce(v.sidebarOptions$), R = ai(ko, p);
1246
1246
  R.unshift({
1247
1247
  label: p.t("formula.moreFunctions.allFunctions"),
1248
1248
  value: n
@@ -1314,7 +1314,7 @@ function _i(e) {
1314
1314
  s.length > 0 && /* @__PURE__ */ N(
1315
1315
  "ul",
1316
1316
  {
1317
- className: re("univer-m-0 univer-mt-2 univer-box-border univer-max-h-72 univer-w-full univer-select-none univer-list-none univer-overflow-y-auto univer-rounded univer-p-3 univer-outline-none", _n, at),
1317
+ className: re("univer-m-0 univer-mt-2 univer-box-border univer-max-h-72 univer-w-full univer-select-none univer-list-none univer-overflow-y-auto univer-rounded univer-p-3 univer-outline-none", _n, lt),
1318
1318
  onKeyDown: T,
1319
1319
  tabIndex: -1,
1320
1320
  children: s.map(({ name: I }, E) => /* @__PURE__ */ W(
@@ -1340,24 +1340,24 @@ function _i(e) {
1340
1340
  ))
1341
1341
  }
1342
1342
  ),
1343
- d && /* @__PURE__ */ W("div", { className: re("univer-mx-0 univer-my-2 univer-overflow-y-auto", at), children: [
1344
- /* @__PURE__ */ N(vt, { title: d.functionName, value: d.description }),
1343
+ d && /* @__PURE__ */ W("div", { className: re("univer-mx-0 univer-my-2 univer-overflow-y-auto", lt), children: [
1344
+ /* @__PURE__ */ N(St, { title: d.functionName, value: d.description }),
1345
1345
  /* @__PURE__ */ N(
1346
- vt,
1346
+ St,
1347
1347
  {
1348
1348
  title: p.t("formula.moreFunctions.syntax"),
1349
1349
  value: /* @__PURE__ */ N(Ir, { prefix: d.functionName, value: d.functionParameter })
1350
1350
  }
1351
1351
  ),
1352
1352
  /* @__PURE__ */ N(
1353
- vt,
1353
+ St,
1354
1354
  {
1355
1355
  title: p.t("formula.prompt.helpExample"),
1356
1356
  value: `${d.functionName}(${d.functionParameter.map((I) => I.example).join(",")})`
1357
1357
  }
1358
1358
  ),
1359
1359
  d.functionParameter && d.functionParameter.map((I) => /* @__PURE__ */ N(
1360
- vt,
1360
+ St,
1361
1361
  {
1362
1362
  title: I.name,
1363
1363
  value: `${I.require ? _ : m} ${I.detail}`
@@ -1370,7 +1370,7 @@ function _i(e) {
1370
1370
  function Ri() {
1371
1371
  const e = vo(), [t, n] = V(!0), [o, r] = V(!1), [s, c] = V(null);
1372
1372
  y(gn);
1373
- const i = y(ut), a = y(Ye), f = y(ne), h = y(ve);
1373
+ const i = y(dt), a = y(Ye), f = y(ne), h = y(ve);
1374
1374
  function g() {
1375
1375
  n(!t), r(!o);
1376
1376
  }
@@ -1396,7 +1396,7 @@ function Ri() {
1396
1396
  } }),
1397
1397
  /* @__PURE__ */ W("div", { className: "univer-flex univer-justify-end", children: [
1398
1398
  o && /* @__PURE__ */ N(
1399
- it,
1399
+ ct,
1400
1400
  {
1401
1401
  variant: "primary",
1402
1402
  onClick: g,
@@ -1404,9 +1404,9 @@ function Ri() {
1404
1404
  children: i.t("formula.moreFunctions.next")
1405
1405
  }
1406
1406
  ),
1407
- o && /* @__PURE__ */ N(it, { onClick: g, className: "univer-mb-5 univer-ml-4 univer-mr-0 univer-mt-0", children: i.t("formula.moreFunctions.prev") }),
1407
+ o && /* @__PURE__ */ N(ct, { onClick: g, className: "univer-mb-5 univer-ml-4 univer-mr-0 univer-mt-0", children: i.t("formula.moreFunctions.prev") }),
1408
1408
  t && !!e && /* @__PURE__ */ N(
1409
- it,
1409
+ ct,
1410
1410
  {
1411
1411
  variant: "primary",
1412
1412
  onClick: u,
@@ -1428,7 +1428,7 @@ function Ei(e) {
1428
1428
  params: {
1429
1429
  value: "SUM"
1430
1430
  },
1431
- hidden$: ht(e, H.UNIVER_SHEET),
1431
+ hidden$: ft(e, H.UNIVER_SHEET),
1432
1432
  disabled$: Ke(e, {
1433
1433
  workbookTypes: [Xe],
1434
1434
  worksheetTypes: [Ze, Ge],
@@ -1445,7 +1445,7 @@ function Ii(e) {
1445
1445
  params: {
1446
1446
  value: "COUNT"
1447
1447
  },
1448
- hidden$: ht(e, H.UNIVER_SHEET),
1448
+ hidden$: ft(e, H.UNIVER_SHEET),
1449
1449
  disabled$: Ke(e, {
1450
1450
  workbookTypes: [Xe],
1451
1451
  worksheetTypes: [Ze, Ge],
@@ -1462,7 +1462,7 @@ function bi(e) {
1462
1462
  params: {
1463
1463
  value: "AVERAGE"
1464
1464
  },
1465
- hidden$: ht(e, H.UNIVER_SHEET),
1465
+ hidden$: ft(e, H.UNIVER_SHEET),
1466
1466
  disabled$: Ke(e, {
1467
1467
  workbookTypes: [Xe],
1468
1468
  worksheetTypes: [Ze, Ge],
@@ -1479,7 +1479,7 @@ function yi(e) {
1479
1479
  params: {
1480
1480
  value: "MAX"
1481
1481
  },
1482
- hidden$: ht(e, H.UNIVER_SHEET),
1482
+ hidden$: ft(e, H.UNIVER_SHEET),
1483
1483
  disabled$: Ke(e, {
1484
1484
  workbookTypes: [Xe],
1485
1485
  worksheetTypes: [Ze, Ge],
@@ -1496,7 +1496,7 @@ function Ti(e) {
1496
1496
  params: {
1497
1497
  value: "MIN"
1498
1498
  },
1499
- hidden$: ht(e, H.UNIVER_SHEET),
1499
+ hidden$: ft(e, H.UNIVER_SHEET),
1500
1500
  disabled$: Ke(e, {
1501
1501
  workbookTypes: [Xe],
1502
1502
  worksheetTypes: [Ze, Ge],
@@ -1510,7 +1510,7 @@ function Oi(e) {
1510
1510
  title: "formula.insert.more",
1511
1511
  tooltip: "formula.insert.tooltip",
1512
1512
  type: Qe.BUTTON,
1513
- hidden$: ht(e, H.UNIVER_SHEET),
1513
+ hidden$: ft(e, H.UNIVER_SHEET),
1514
1514
  disabled$: Ke(e, {
1515
1515
  workbookTypes: [Xe],
1516
1516
  worksheetTypes: [Ze, Ge],
@@ -1583,9 +1583,9 @@ function Ai() {
1583
1583
  const e = [];
1584
1584
  for (const t of ki)
1585
1585
  e.push({
1586
- id: ft.id,
1586
+ id: gt.id,
1587
1587
  binding: t,
1588
- preconditions: (n) => Et(n),
1588
+ preconditions: (n) => It(n),
1589
1589
  staticParameters: {
1590
1590
  eventType: we.Keyboard,
1591
1591
  keycode: t
@@ -1597,9 +1597,9 @@ function Fi() {
1597
1597
  const e = [];
1598
1598
  for (const t of Xt)
1599
1599
  e.push({
1600
- id: ft.id,
1600
+ id: gt.id,
1601
1601
  binding: t | P.SHIFT,
1602
- preconditions: (n) => Et(n),
1602
+ preconditions: (n) => It(n),
1603
1603
  staticParameters: {
1604
1604
  eventType: we.Keyboard,
1605
1605
  keycode: t,
@@ -1612,9 +1612,9 @@ function Di() {
1612
1612
  const e = [];
1613
1613
  for (const t of Xt)
1614
1614
  e.push({
1615
- id: ft.id,
1615
+ id: gt.id,
1616
1616
  binding: t | P.CTRL_COMMAND,
1617
- preconditions: (n) => Et(n),
1617
+ preconditions: (n) => It(n),
1618
1618
  staticParameters: {
1619
1619
  eventType: we.Keyboard,
1620
1620
  keycode: t,
@@ -1627,9 +1627,9 @@ function Li() {
1627
1627
  const e = [];
1628
1628
  for (const t of Xt)
1629
1629
  e.push({
1630
- id: ft.id,
1630
+ id: gt.id,
1631
1631
  binding: t | P.SHIFT | P.CTRL_COMMAND,
1632
- preconditions: (n) => Et(n),
1632
+ preconditions: (n) => It(n),
1633
1633
  staticParameters: {
1634
1634
  eventType: we.Keyboard,
1635
1635
  keycode: t,
@@ -1641,13 +1641,13 @@ function Li() {
1641
1641
  const $i = {
1642
1642
  id: Cr.id,
1643
1643
  binding: L.F4,
1644
- preconditions: (e) => Et(e)
1644
+ preconditions: (e) => It(e)
1645
1645
  };
1646
1646
  function Pi() {
1647
1647
  const e = [];
1648
1648
  for (const t of [L.ENTER, L.TAB, L.ARROW_DOWN, L.ARROW_UP])
1649
1649
  e.push({
1650
- id: ft.id,
1650
+ id: gt.id,
1651
1651
  binding: t,
1652
1652
  preconditions: (n) => Us(n),
1653
1653
  staticParameters: {
@@ -1671,7 +1671,7 @@ var Vi = Object.getOwnPropertyDescriptor, Wi = (e, t, n, o) => {
1671
1671
  (c = e[s]) && (r = c(r) || r);
1672
1672
  return r;
1673
1673
  }, Be = (e, t) => (n, o) => t(n, o, e);
1674
- let Bt = class extends lt {
1674
+ let Bt = class extends ut {
1675
1675
  constructor(e, t, n, o, r, s, c) {
1676
1676
  super(), this._injector = e, this._menuManagerService = t, this._commandService = n, this._shortcutService = o, this._uiPartsService = r, this._renderManagerService = s, this._componentManager = c, this._initialize();
1677
1677
  }
@@ -1688,7 +1688,7 @@ let Bt = class extends lt {
1688
1688
  En,
1689
1689
  Ds,
1690
1690
  Ns,
1691
- ft,
1691
+ gt,
1692
1692
  Cr
1693
1693
  ].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e)));
1694
1694
  }
@@ -1713,7 +1713,7 @@ let Bt = class extends lt {
1713
1713
  }
1714
1714
  };
1715
1715
  Bt = Wi([
1716
- Be(0, j(_t)),
1716
+ Be(0, j(Rt)),
1717
1717
  Be(1, hs),
1718
1718
  Be(2, ve),
1719
1719
  Be(3, Zt),
@@ -1739,7 +1739,7 @@ var Hi = Object.getOwnPropertyDescriptor, Bi = (e, t, n, o) => {
1739
1739
  for (var r = o > 1 ? void 0 : o ? Hi(t, n) : t, s = e.length - 1, c; s >= 0; s--)
1740
1740
  (c = e[s]) && (r = c(r) || r);
1741
1741
  return r;
1742
- }, ot = (e, t) => (n, o) => t(n, o, e);
1742
+ }, st = (e, t) => (n, o) => t(n, o, e);
1743
1743
  let Pe = class extends Ro {
1744
1744
  constructor(t, n, o, r, s, c, i) {
1745
1745
  super(
@@ -1925,7 +1925,7 @@ let Pe = class extends Ro {
1925
1925
  ) : F && m ? m.updateRangeBySelectionWithCoord(R) : m = this.newSelectionControl(i, c, C);
1926
1926
  for (let k = 0; k < this.getSelectionControls().length - 1; k++)
1927
1927
  this.getSelectionControls()[k].clearHighlight();
1928
- this._selectionMoveStart$.next(this.getSelectionDataWithStyle()), i.disableObjectsEvent(), this._clearUpdatingListeners(), this._addEndingListeners(), (T = i.getTransformer()) == null || T.clearSelectedObjects(), this._setupPointerMoveListener(h, m, o, s, u, d), this._escapeShortcutDisposable = this._shortcutService.forceEscape(), this._scenePointerUpSub = i.onPointerUp$.subscribeEvent(() => {
1928
+ this._selectionMoveStart$.next(this.getSelectionDataWithStyle()), this._clearUpdatingListeners(), this._addEndingListeners(), (T = i.getTransformer()) == null || T.clearSelectedObjects(), this._setupPointerMoveListener(h, m, o, s, u, d), this._escapeShortcutDisposable = this._shortcutService.forceEscape(), this._scenePointerUpSub = i.onPointerUp$.subscribeEvent(() => {
1929
1929
  var k;
1930
1930
  this._clearUpdatingListeners(), this._selectionMoveEnd$.next(this.getSelectionDataWithStyle()), (k = this._escapeShortcutDisposable) == null || k.dispose(), this._escapeShortcutDisposable = null;
1931
1931
  });
@@ -1958,12 +1958,12 @@ let Pe = class extends Ro {
1958
1958
  }
1959
1959
  };
1960
1960
  Pe = Bi([
1961
- ot(1, j(_t)),
1962
- ot(2, j(Rt)),
1963
- ot(3, Zt),
1964
- ot(4, j(Kt)),
1965
- ot(5, un),
1966
- ot(6, Yt)
1961
+ st(1, j(Rt)),
1962
+ st(2, j(Et)),
1963
+ st(3, Zt),
1964
+ st(4, j(Kt)),
1965
+ st(5, un),
1966
+ st(6, Yt)
1967
1967
  ], Pe);
1968
1968
  function ji(e) {
1969
1969
  const t = sr(e);
@@ -2006,7 +2006,7 @@ const In = (e, t, n = !0) => {
2006
2006
  }, [e, t]);
2007
2007
  };
2008
2008
  function Ar(e, t, n) {
2009
- const o = y(Ye), r = se(() => new ar({ left: -999, top: -999, right: -999, bottom: -999 }), []), s = y(Cn), c = y(ne), i = ee(() => {
2009
+ const o = y(Ye), r = se(() => new ar({ left: -999, top: -999, right: -999, bottom: -999 }), []), s = y(Cn), c = y(ne), i = te(() => {
2010
2010
  var R;
2011
2011
  const a = o.getEditor(e);
2012
2012
  if (!a)
@@ -2127,11 +2127,11 @@ const tt = (e) => {
2127
2127
  }, Zn = () => {
2128
2128
  };
2129
2129
  function Zi(e) {
2130
- const { onParamsSwitch: t = Zn, onClose: n = Zn, isFocus: o, editor: r, formulaText: s } = e, { functionInfo: c, paramIndex: i, reset: a } = Ki(o, s, r), f = y(gn), h = !Ce(f.helpFunctionVisible$), [g, u] = V(!0), d = y(ut), l = d.t("formula.prompt.required"), S = d.t("formula.prompt.optional"), p = r.getEditorId(), [v] = Ar(p, !!c, [c, i]);
2130
+ const { onParamsSwitch: t = Zn, onClose: n = Zn, isFocus: o, editor: r, formulaText: s } = e, { functionInfo: c, paramIndex: i, reset: a } = Ki(o, s, r), f = y(gn), h = !Ce(f.helpFunctionVisible$), [g, u] = V(!0), d = y(dt), l = d.t("formula.prompt.required"), S = d.t("formula.prompt.optional"), p = r.getEditorId(), [v] = Ar(p, !!c, [c, i]);
2131
2131
  function C(m) {
2132
2132
  t && t(m);
2133
2133
  }
2134
- const R = ee((m) => {
2134
+ const R = te((m) => {
2135
2135
  f.helpFunctionVisible$.next(!m);
2136
2136
  }), _ = () => {
2137
2137
  R(!0), n();
@@ -2180,7 +2180,7 @@ function Zi(e) {
2180
2180
  /* @__PURE__ */ N(
2181
2181
  "div",
2182
2182
  {
2183
- className: re("univer-box-border univer-max-h-[350px] univer-overflow-y-auto univer-px-4 univer-pb-3 univer-pt-0", at),
2183
+ className: re("univer-box-border univer-max-h-[350px] univer-overflow-y-auto univer-px-4 univer-pb-3 univer-pt-0", lt),
2184
2184
  style: {
2185
2185
  height: g ? "unset" : 0,
2186
2186
  padding: g ? "revert-layer" : 0
@@ -2218,7 +2218,7 @@ function Zi(e) {
2218
2218
  }
2219
2219
  const zi = (e) => {
2220
2220
  const t = y(Ye);
2221
- return ee((o) => {
2221
+ return te((o) => {
2222
2222
  var r, s;
2223
2223
  if (e) {
2224
2224
  t.focus(e.getEditorId());
@@ -2242,15 +2242,15 @@ function Xi(e) {
2242
2242
  var Ne = /* @__PURE__ */ ((e) => (e[e.NOT_SELECT = 0] = "NOT_SELECT", e[e.NEED_ADD = 1] = "NEED_ADD", e[e.CAN_EDIT = 2] = "CAN_EDIT", e[e.EDIT_OTHER_SHEET_REFERENCE = 3] = "EDIT_OTHER_SHEET_REFERENCE", e[e.EDIT_OTHER_WORKBOOK_REFERENCE = 4] = "EDIT_OTHER_WORKBOOK_REFERENCE", e))(Ne || {});
2243
2243
  function Qi(e) {
2244
2244
  var x;
2245
- const { editorId: t, isFocus: n, disableOnClick: o, unitId: r, subUnitId: s } = e, c = y(ke), i = y(ne), a = c.getRenderById(r), f = c.getRenderById(t), h = f == null ? void 0 : f.with(ur), g = y(pr), u = y(_t), [d, l] = V(
2245
+ const { editorId: t, isFocus: n, disableOnClick: o, unitId: r, subUnitId: s } = e, c = y(ke), i = y(ne), a = c.getRenderById(r), f = c.getRenderById(t), h = f == null ? void 0 : f.with(ur), g = y(pr), u = y(Rt), [d, l] = V(
2246
2246
  0
2247
2247
  /* NOT_SELECT */
2248
- ), S = y(Ie), p = z(!0), v = a == null ? void 0 : a.with(Pe), C = tt(d), R = i.getUnit(r, H.UNIVER_SHEET), _ = R == null ? void 0 : R.getSheetBySheetId(s), m = ee((w) => {
2248
+ ), S = y(Ie), p = z(!0), v = a == null ? void 0 : a.with(Pe), C = tt(d), R = i.getUnit(r, H.UNIVER_SHEET), _ = R == null ? void 0 : R.getSheetBySheetId(s), m = te((w) => {
2249
2249
  v && v.setSkipLastEnabled(
2250
2250
  w === 1 || w === 3 || w === 4
2251
2251
  /* EDIT_OTHER_WORKBOOK_REFERENCE */
2252
2252
  ), C.current = w, l(w);
2253
- }), O = ee(() => {
2253
+ }), O = te(() => {
2254
2254
  var ie, ce, de;
2255
2255
  const w = i.getCurrentUnitOfType(H.UNIVER_SHEET);
2256
2256
  if (!w) return;
@@ -2262,13 +2262,13 @@ function Qi(e) {
2262
2262
  } : {
2263
2263
  ...K,
2264
2264
  range: void 0
2265
- } : K), b = I[k - 1], M = I[k], D = E.find((K) => typeof K == "object" && K.nodeType === Q.REFERENCE && k === K.endIndex + 2), U = b && Fo(b) && (!M || Do(M) && M !== ct.OPEN_BRACKET), B = !!D;
2265
+ } : K), b = I[k - 1], M = I[k], D = E.find((K) => typeof K == "object" && K.nodeType === Q.REFERENCE && k === K.endIndex + 2), U = b && Fo(b) && (!M || Do(M) && M !== at.OPEN_BRACKET), B = !!D;
2266
2266
  if ((I == null ? void 0 : I.substring(0, 1)) === "=" && (U || B))
2267
2267
  if (B) {
2268
2268
  if (p.current)
2269
2269
  return;
2270
- const { sheetName: K, unitId: te } = D.range;
2271
- te !== ((de = i.getCurrentUnitOfType(H.UNIVER_SHEET)) == null ? void 0 : de.getUnitId()) ? m(
2270
+ const { sheetName: K, unitId: J } = D.range, nt = (de = i.getCurrentUnitOfType(H.UNIVER_SHEET)) == null ? void 0 : de.getUnitId();
2271
+ J && J !== nt ? m(
2272
2272
  4
2273
2273
  /* EDIT_OTHER_WORKBOOK_REFERENCE */
2274
2274
  ) : !K && F.getSheetId() === (_ == null ? void 0 : _.getSheetId()) || K === F.getName() ? m(
@@ -2363,7 +2363,7 @@ function Fr(e) {
2363
2363
  if (!((R = a == null ? void 0 : a.getWorksheetSkeleton(S)) == null ? void 0 : R.skeleton)) return;
2364
2364
  const C = [];
2365
2365
  for (let O = 0, x = r.length; O < x; O++) {
2366
- const w = r[O], { themeColor: F, token: T, refIndex: k, endIndex: A } = w, I = dt(T), { unitId: E, sheetName: b, range: M } = I, D = p(b);
2366
+ const w = r[O], { themeColor: F, token: T, refIndex: k, endIndex: A } = w, I = ht(T), { unitId: E, sheetName: b, range: M } = I, D = p(b);
2367
2367
  if (!D && b || g !== t && E !== g || E && E !== g || D && D !== S || !D && S !== n)
2368
2368
  continue;
2369
2369
  const U = ss(M, d.getRowCount(), d.getColumnCount());
@@ -2380,7 +2380,7 @@ function Fr(e) {
2380
2380
  return l;
2381
2381
  }
2382
2382
  function tc(e, t) {
2383
- const n = y(ne), o = y(Rt), r = y(Yt), s = y(ke), c = Ce(se(() => n.getCurrentTypeOfUnit$(H.UNIVER_SHEET), [n])), i = c ? s.getRenderById(c.getUnitId()) : null, a = i == null ? void 0 : i.with(Pe), f = i == null ? void 0 : i.with(Kt), h = ee((g, u) => {
2383
+ const n = y(ne), o = y(Et), r = y(Yt), s = y(ke), c = Ce(se(() => n.getCurrentTypeOfUnit$(H.UNIVER_SHEET), [n])), i = c ? s.getRenderById(c.getUnitId()) : null, a = i == null ? void 0 : i.with(Pe), f = i == null ? void 0 : i.with(Kt), h = te((g, u) => {
2384
2384
  const d = n.getCurrentUnitOfType(H.UNIVER_SHEET);
2385
2385
  if (!d || a != null && a.selectionMoving) return;
2386
2386
  const l = Fr({
@@ -2404,7 +2404,7 @@ function tc(e, t) {
2404
2404
  }
2405
2405
  function Dr(e = "") {
2406
2406
  const t = y(Gt), n = nc(), o = y(ve), r = se(() => e.length, [e]);
2407
- return ee((c, i, a = !0, f) => {
2407
+ return te((c, i, a = !0, f) => {
2408
2408
  const h = c.getDocumentData(), g = c.getEditorId();
2409
2409
  if (!h)
2410
2410
  return [];
@@ -2443,7 +2443,7 @@ function Dr(e = "") {
2443
2443
  });
2444
2444
  }
2445
2445
  function nc() {
2446
- const e = y(Rt), t = e.getCurrentTheme();
2446
+ const e = y(Et), t = e.getCurrentTheme();
2447
2447
  return se(() => {
2448
2448
  const o = [
2449
2449
  e.getColorFromTheme("loop-color.1"),
@@ -2643,7 +2643,7 @@ const oc = (e, t, n, o) => {
2643
2643
  (i == null ? void 0 : i.getUnitId()) !== t && o.setCurrentUnitForType(t), a && a.getSheetId() === n && r.setSelections(c);
2644
2644
  }
2645
2645
  }, [e, r, n, t, o]);
2646
- }, cc = (e) => e.reduce((t, n) => typeof n == "string" ? t + n.length : t + n.token.length, 0), ln = (e) => e.map((t) => typeof t == "string" ? t : t.token).join(""), At = (e, t = !1, n = "", o = !1) => !t && !o ? e.map((r) => Ee(r.range)) : e.map((r) => o ? Lo(r) : r.sheetName !== "" && r.sheetName !== n ? St(r.sheetName, r.range) : Ee(r.range)), ac = (e) => {
2646
+ }, cc = (e) => e.reduce((t, n) => typeof n == "string" ? t + n.length : t + n.token.length, 0), ln = (e) => e.map((t) => typeof t == "string" ? t : t.token).join(""), At = (e, t = !1, n = "", o = !1) => !t && !o ? e.map((r) => Ee(r.range)) : e.map((r) => o ? Lo(r) : r.sheetName !== "" && r.sheetName !== n ? Ct(r.sheetName, r.range) : Ee(r.range)), ac = (e) => {
2647
2647
  var h, g, u;
2648
2648
  const { editor: t, lexerTreeBuilder: n } = e, o = t == null ? void 0 : t.getSelectionRanges();
2649
2649
  if ((o == null ? void 0 : o.length) !== 1)
@@ -2659,11 +2659,11 @@ const oc = (e, t, n, o) => {
2659
2659
  }, lc = () => {
2660
2660
  }, uc = (e, t, n, o, r, s, c, i, a, f = lc) => {
2661
2661
  var k;
2662
- const h = y(ke), g = y(ne), u = y(ve), d = y(pr), l = y(Rt), S = y(Ie), p = g.getUnit(o), v = ee((A, I) => {
2662
+ const h = y(ke), g = y(ne), u = y(ve), d = y(pr), l = y(Et), S = y(Ie), p = g.getUnit(o), v = te((A, I) => {
2663
2663
  var E, b, M;
2664
2664
  return (M = (b = (E = g.getUnit(A)) == null ? void 0 : E.getSheetBySheetId(I)) == null ? void 0 : b.getName()) != null ? M : "";
2665
- }), C = se(() => v(o, r), [v, r, o]), R = Ce(p == null ? void 0 : p.activeSheet$), _ = tt({ activeSheet: R, sheetName: C }), m = Ce(se(() => g.getCurrentTypeOfUnit$(H.UNIVER_SHEET), [g])), O = h.getRenderById((k = m == null ? void 0 : m.getUnitId()) != null ? k : ""), x = O == null ? void 0 : O.with(Pe), w = O == null ? void 0 : O.with(Kt), F = y(Yt), T = ee((A, I) => {
2666
- var B, ie, ce, de, K, te, bt, nt, yt, be;
2665
+ }), C = se(() => v(o, r), [v, r, o]), R = Ce(p == null ? void 0 : p.activeSheet$), _ = tt({ activeSheet: R, sheetName: C }), m = Ce(se(() => g.getCurrentTypeOfUnit$(H.UNIVER_SHEET), [g])), O = h.getRenderById((k = m == null ? void 0 : m.getUnitId()) != null ? k : ""), x = O == null ? void 0 : O.with(Pe), w = O == null ? void 0 : O.with(Kt), F = y(Yt), T = te((A, I) => {
2666
+ var B, ie, ce, de, K, J, nt, rt, yt, be;
2667
2667
  const E = ac({ editor: a, lexerTreeBuilder: S });
2668
2668
  if (!E) return;
2669
2669
  const { nodeIndex: b, updatingRefIndex: M, sequenceNodes: D, offset: U } = E;
@@ -2675,7 +2675,7 @@ const oc = (e, t, n, o) => {
2675
2675
  range: Y,
2676
2676
  unitId: (ie = Y.unitId) != null ? ie : m.getUnitId(),
2677
2677
  sheetName: v((ce = Y.unitId) != null ? ce : m.getUnitId(), ye)
2678
- }, J = ye !== r, ae = (m == null ? void 0 : m.getUnitId()) !== o, Te = At([he], c && (J || ae), C, ae);
2678
+ }, ee = ye !== r, ae = (m == null ? void 0 : m.getUnitId()) !== o, Te = At([he], c && (ee || ae), C, ae);
2679
2679
  D.push({ token: Te[0], nodeType: Q.REFERENCE });
2680
2680
  const Ue = [...D, ...X], Fe = ln(Ue);
2681
2681
  f(Fe, cc(D), I);
@@ -2683,8 +2683,8 @@ const oc = (e, t, n, o) => {
2683
2683
  const Y = A[A.length - 1], X = (de = Y.sheetId) != null ? de : r, ye = {
2684
2684
  range: Y,
2685
2685
  unitId: (K = Y.unitId) != null ? K : m.getUnitId(),
2686
- sheetName: v((te = Y.unitId) != null ? te : m.getUnitId(), X)
2687
- }, he = X !== r, J = (m == null ? void 0 : m.getUnitId()) !== o, ae = At([ye], c && (he || J), C, J);
2686
+ sheetName: v((J = Y.unitId) != null ? J : m.getUnitId(), X)
2687
+ }, he = X !== r, ee = (m == null ? void 0 : m.getUnitId()) !== o, ae = At([ye], c && (he || ee), C, ee);
2688
2688
  D.unshift({ token: ae[0], nodeType: Q.REFERENCE });
2689
2689
  const Te = ln(D);
2690
2690
  f(Te, ae[0].length, I);
@@ -2695,9 +2695,9 @@ const oc = (e, t, n, o) => {
2695
2695
  const X = D[b];
2696
2696
  if (typeof X == "object" && X.nodeType === Q.REFERENCE) {
2697
2697
  const ye = X.token;
2698
- (m == null ? void 0 : m.getUnitId()) !== o ? X.token = $o((bt = m == null ? void 0 : m.getUnitId()) != null ? bt : "", C, Y) : X.token = C === (R == null ? void 0 : R.getName()) ? Ee(Y) : St(R.getName(), Y);
2699
- const J = U + (X.token.length - ye.length);
2700
- f(Po(D), J, I);
2698
+ (m == null ? void 0 : m.getUnitId()) !== o ? X.token = $o((nt = m == null ? void 0 : m.getUnitId()) != null ? nt : "", C, Y) : X.token = C === (R == null ? void 0 : R.getName()) ? Ee(Y) : Ct(R.getName(), Y);
2699
+ const ee = U + (X.token.length - ye.length);
2700
+ f(Po(D), ee, I);
2701
2701
  }
2702
2702
  } else {
2703
2703
  const Y = [...A];
@@ -2707,11 +2707,11 @@ const oc = (e, t, n, o) => {
2707
2707
  }
2708
2708
  let X = 0;
2709
2709
  const ye = D.map((G) => {
2710
- var fe, Ve, rt, ge;
2710
+ var fe, Ve, ot, ge;
2711
2711
  if (typeof G == "string")
2712
2712
  return G;
2713
2713
  if (G.nodeType === Q.REFERENCE) {
2714
- const me = dt(G.token);
2714
+ const me = ht(G.token);
2715
2715
  if (me.sheetName || (me.sheetName = C), (me.unitId || o) !== (m == null ? void 0 : m.getUnitId()) || c && ((fe = _.current.activeSheet) == null ? void 0 : fe.getName()) !== me.sheetName)
2716
2716
  return G.token;
2717
2717
  const _e = Y[X];
@@ -2719,28 +2719,28 @@ const oc = (e, t, n, o) => {
2719
2719
  return "";
2720
2720
  const Tt = (Ve = _e.sheetId) != null ? Ve : r, Qt = {
2721
2721
  range: _e,
2722
- unitId: (rt = _e.unitId) != null ? rt : m.getUnitId(),
2722
+ unitId: (ot = _e.unitId) != null ? ot : m.getUnitId(),
2723
2723
  sheetName: v((ge = _e.unitId) != null ? ge : m.getUnitId(), Tt)
2724
2724
  }, Ot = (m == null ? void 0 : m.getUnitId()) !== o;
2725
2725
  return At([Qt], c && (Tt !== r || Ot), C, Ot)[0];
2726
2726
  }
2727
2727
  return G.token;
2728
2728
  });
2729
- let he = "", J;
2729
+ let he = "", ee;
2730
2730
  ye.forEach((G, fe) => {
2731
- he += G, fe === b && (J = he.length);
2731
+ he += G, fe === b && (ee = he.length);
2732
2732
  });
2733
2733
  const ae = [];
2734
2734
  for (let G = X; G <= A.length - 1; G++) {
2735
- const fe = A[G], Ve = (nt = fe.sheetId) != null ? nt : r, rt = {
2735
+ const fe = A[G], Ve = (rt = fe.sheetId) != null ? rt : r, ot = {
2736
2736
  range: fe,
2737
2737
  unitId: (yt = fe.unitId) != null ? yt : m.getUnitId(),
2738
2738
  sheetName: v((be = fe.unitId) != null ? be : m.getUnitId(), Ve)
2739
- }, ge = (m == null ? void 0 : m.getUnitId()) !== o, _e = At([rt], c && (Ve !== r || ge), C, ge);
2739
+ }, ge = (m == null ? void 0 : m.getUnitId()) !== o, _e = At([ot], c && (Ve !== r || ge), C, ge);
2740
2740
  ae.push(_e[0]);
2741
2741
  }
2742
2742
  const Te = D[D.length - 1], Ue = Te && (typeof Te == "string" ? !1 : Te.nodeType === Q.REFERENCE), Fe = `${he}${ae.length && Ue ? "," : ""}${ae.join(",")}`;
2743
- f(Fe, !ae.length && J ? J : Fe.length, I);
2743
+ f(Fe, !ae.length && ee ? ee : Fe.length, I);
2744
2744
  }
2745
2745
  });
2746
2746
  $(() => {
@@ -2916,7 +2916,7 @@ const oc = (e, t, n, o) => {
2916
2916
  if (a.current !== -1) {
2917
2917
  const l = d.splice(a.current + 1), S = d.pop() || "";
2918
2918
  let p = (typeof S == "string" ? S.length : S.token.length) - u.length;
2919
- return d.push(u), l[0] !== ct.OPEN_BRACKET && (d.push(ct.OPEN_BRACKET), p--), { text: ln([...d, ...l]), offset: p };
2919
+ return d.push(u), l[0] !== at.OPEN_BRACKET && (d.push(at.OPEN_BRACKET), p--), { text: ln([...d, ...l]), offset: p };
2920
2920
  }
2921
2921
  },
2922
2922
  reset: h
@@ -3017,7 +3017,7 @@ function pc(e, t) {
3017
3017
  S.current = T, t && (t.current = T);
3018
3018
  },
3019
3019
  "data-u-comp": "sheets-formula-editor",
3020
- className: re("univer-m-0 univer-box-border univer-max-h-[400px] univer-w-[250px] univer-list-none univer-overflow-y-auto univer-rounded-lg univer-bg-white univer-p-2 univer-leading-5 univer-shadow-md univer-outline-none dark:!univer-bg-gray-900", _n, at),
3020
+ className: re("univer-m-0 univer-box-border univer-max-h-[400px] univer-w-[250px] univer-list-none univer-overflow-y-auto univer-rounded-lg univer-bg-white univer-p-2 univer-leading-5 univer-shadow-md univer-outline-none dark:!univer-bg-gray-900", _n, lt),
3021
3021
  children: h.map((T, k) => /* @__PURE__ */ W(
3022
3022
  "li",
3023
3023
  {
@@ -3076,17 +3076,17 @@ const vc = (e) => e.startsWith(ir.EQUALS) ? e.slice(1) : "", zn = () => {
3076
3076
  autofocus: O = !0,
3077
3077
  disableContextMenu: x,
3078
3078
  style: w
3079
- } = e, F = y(Ye), T = z(null), k = ee(h);
3079
+ } = e, F = y(Ye), T = z(null), k = te(h);
3080
3080
  vs(t, () => ({
3081
3081
  isClickOutSide: (Z) => T.current ? !T.current.contains(Z.target) : !1
3082
3082
  }));
3083
- const A = ee(S), I = z(null), E = z(void 0), b = E.current, [M, D] = V(c), U = z(null), B = se(() => d != null ? d : Jr(`${bo}-${qt(4)}`), []), ie = se(() => n !== void 0, [n]), ce = y(ne), de = ce.getUnit(B);
3083
+ const A = te(S), I = z(null), E = z(void 0), b = E.current, [M, D] = V(c), U = z(null), B = se(() => d != null ? d : Jr(`${bo}-${qt(4)}`), []), ie = se(() => n !== void 0, [n]), ce = y(ne), de = ce.getUnit(B);
3084
3084
  Ce(de == null ? void 0 : de.change$);
3085
- const K = Ji(), te = eo.transform.getPlainText((yn = (Jt = de == null ? void 0 : de.getBody()) == null ? void 0 : Jt.dataStream) != null ? yn : ""), bt = tt(te), nt = se(() => vc(te), [te]), yt = se(() => K(nt), [nt, K]), { isSelecting: be, isSelectingRef: Y } = Qi({ unitId: r, subUnitId: s, editorId: B, isFocus: M, disableOnClick: m }), X = z(""), he = y(ke).getRenderById(B), J = he == null ? void 0 : he.with(ur), ae = J == null ? void 0 : J.isFocusing, Te = se(() => ce.getCurrentTypeOfUnit$(H.UNIVER_DOC), [ce]), Ue = Ce(Te), Fe = (Ue == null ? void 0 : Ue.getUnitId()) === B, G = z([]), fe = be;
3085
+ const K = Ji(), J = eo.transform.getPlainText((yn = (Jt = de == null ? void 0 : de.getBody()) == null ? void 0 : Jt.dataStream) != null ? yn : ""), nt = tt(J), rt = se(() => vc(J), [J]), yt = se(() => K(rt), [rt, K]), { isSelecting: be, isSelectingRef: Y } = Qi({ unitId: r, subUnitId: s, editorId: B, isFocus: M, disableOnClick: m }), X = z(""), he = y(ke).getRenderById(B), ee = he == null ? void 0 : he.with(ur), ae = ee == null ? void 0 : ee.isFocusing, Te = se(() => ce.getCurrentTypeOfUnit$(H.UNIVER_DOC), [ce]), Ue = Ce(Te), Fe = (Ue == null ? void 0 : Ue.getUnitId()) === B, G = z([]), fe = be;
3086
3086
  gs(() => {
3087
- k(te);
3088
- }, [te, k]);
3089
- const Ve = Dr("="), rt = tc(r, s), ge = ee((Z, oe = !0, De, Oe) => {
3087
+ k(J);
3088
+ }, [J, k]);
3089
+ const Ve = Dr("="), ot = tc(r, s), ge = te((Z, oe = !0, De, Oe) => {
3090
3090
  if (!E.current) return;
3091
3091
  X.current = Z;
3092
3092
  const Nt = Z[0] === "=" ? Z.slice(1) : "", Le = K(Nt), Pr = Le.reduce((We, Mt) => typeof Mt == "object" ? `${We}${Mt.token}` : `${We}${Mt}`, ""), xt = Ve(
@@ -3104,21 +3104,21 @@ const vc = (e) => e.startsWith(ir.EQUALS) ? e.slice(1) : "", zn = () => {
3104
3104
  const On = xt.splice(Tn, 1)[0];
3105
3105
  On && xt.push(On);
3106
3106
  }
3107
- rt(M ? xt : [], E.current);
3107
+ ot(M ? xt : [], E.current);
3108
3108
  }
3109
3109
  });
3110
3110
  $(() => {
3111
- M && ge(te, !1, !0);
3111
+ M && ge(J, !1, !0);
3112
3112
  }, [M]), $(() => {
3113
3113
  if (M) {
3114
- if (X.current === te) return;
3115
- ge(te, !1, !0);
3114
+ if (X.current === J) return;
3115
+ ge(J, !1, !0);
3116
3116
  }
3117
- }, [te]), hc(M, g, te);
3117
+ }, [J]), hc(M, g, J);
3118
3118
  const me = zi(b), _e = ic(M, r, s);
3119
3119
  $(() => {
3120
3120
  var Z;
3121
- A(be, (Z = J == null ? void 0 : J.isFocusing) != null ? Z : !0);
3121
+ A(be, (Z = ee == null ? void 0 : ee.isFocusing) != null ? Z : !0);
3122
3122
  }, [A, be]), Go(M, p, b), $t(() => {
3123
3123
  let Z;
3124
3124
  if (U.current) {
@@ -3149,7 +3149,7 @@ const vc = (e) => e.startsWith(ir.EQUALS) ? e.slice(1) : "", zn = () => {
3149
3149
  }, [c, b, me, _e, C]);
3150
3150
  const { checkScrollBar: Tt } = Zo(b, _, R);
3151
3151
  sc(M, !!(be && Fe), r, x), oc(!!(M && ae && l), fe, b, v);
3152
- const Qt = ee((Z, oe, De) => {
3152
+ const Qt = te((Z, oe, De) => {
3153
3153
  if (!ae)
3154
3154
  return;
3155
3155
  const Oe = oe !== -1 ? [{ startOffset: oe + 1, endOffset: oe + 1, collapsed: !0 }] : void 0;
@@ -3170,7 +3170,7 @@ const vc = (e) => e.startsWith(ir.EQUALS) ? e.slice(1) : "", zn = () => {
3170
3170
  b,
3171
3171
  Qt
3172
3172
  ), dc(M && !!(be && Fe), r, i, D, f, () => {
3173
- ge(bt.current, !1, !0);
3173
+ ge(nt.current, !1, !0);
3174
3174
  });
3175
3175
  const Ot = (Z) => {
3176
3176
  if (Z) {
@@ -3209,12 +3209,12 @@ const vc = (e) => e.startsWith(ir.EQUALS) ? e.slice(1) : "", zn = () => {
3209
3209
  }
3210
3210
  ),
3211
3211
  n !== void 0 && /* @__PURE__ */ N("div", { className: "univer-my-1 univer-text-xs univer-text-red-500", children: n }),
3212
- b && nt !== "" && /* @__PURE__ */ N(
3212
+ b && rt !== "" && /* @__PURE__ */ N(
3213
3213
  Zi,
3214
3214
  {
3215
3215
  editor: b,
3216
3216
  isFocus: M,
3217
- formulaText: te,
3217
+ formulaText: J,
3218
3218
  onClose: () => me()
3219
3219
  }
3220
3220
  ),
@@ -3257,7 +3257,7 @@ function Cc(e, t, n, o) {
3257
3257
  }
3258
3258
  const u = s(e, i, !1), d = new qe();
3259
3259
  return u.forEach((p) => {
3260
- const v = dt(p.token), C = g.getCurrentUnitForType(H.UNIVER_SHEET), R = C == null ? void 0 : C.getActiveSheet();
3260
+ const v = ht(p.token), C = g.getCurrentUnitForType(H.UNIVER_SHEET), R = C == null ? void 0 : C.getActiveSheet();
3261
3261
  if (!v.sheetName && o !== (R == null ? void 0 : R.getSheetId()) || v.sheetName && (R == null ? void 0 : R.getName()) !== v.sheetName)
3262
3262
  return;
3263
3263
  const _ = new fn(p.themeColor).toRgb(), m = f.addShape({
@@ -3276,7 +3276,7 @@ function Cc(e, t, n, o) {
3276
3276
  }, [e, t, s, f, i]), { sequenceNodes: i };
3277
3277
  }
3278
3278
  function _c(e) {
3279
- const t = y(pn), { supportAcrossSheet: n = !1, unitId: o, subUnitId: r, onChange: s } = e, i = y(ne).getUnit(o, H.UNIVER_SHEET), a = ee(s), f = ee((h, g) => {
3279
+ const t = y(pn), { supportAcrossSheet: n = !1, unitId: o, subUnitId: r, onChange: s } = e, i = y(ne).getUnit(o, H.UNIVER_SHEET), a = te(s), f = te((h, g) => {
3280
3280
  const u = i == null ? void 0 : i.getActiveSheet();
3281
3281
  if (!u || !n && u.getSheetId() !== r || !(h != null && h.length)) return;
3282
3282
  const d = h.map((l) => ({
@@ -3301,7 +3301,7 @@ function _c(e) {
3301
3301
  }
3302
3302
  const Xn = (e) => !e.some((n) => {
3303
3303
  if (typeof n == "string") {
3304
- if (n !== ct.COMMA)
3304
+ if (n !== at.COMMA)
3305
3305
  return !0;
3306
3306
  } else if (n.nodeType !== Q.REFERENCE)
3307
3307
  return !0;
@@ -3328,10 +3328,10 @@ function Ec(e) {
3328
3328
  onConfirm: i,
3329
3329
  onClose: a,
3330
3330
  onShowBySelection: f
3331
- } = e, h = y(ut), g = y(Ie), [u, d] = V([]), [l, S] = V(0), p = z(null);
3331
+ } = e, h = y(dt), g = y(Ie), [u, d] = V([]), [l, S] = V(0), p = z(null);
3332
3332
  $(() => {
3333
3333
  if (t && n.length) {
3334
- const _ = n.map((m) => m.sheetName ? St(m.sheetName, m.range) : Ee(m.range));
3334
+ const _ = n.map((m) => m.sheetName ? Ct(m.sheetName, m.range) : Ee(m.range));
3335
3335
  d(_), S(_.length - 1);
3336
3336
  } else
3337
3337
  d([""]), S(0);
@@ -3351,7 +3351,7 @@ function Ec(e) {
3351
3351
  onChange: (_, m) => {
3352
3352
  if (!t && f != null && f(_))
3353
3353
  return;
3354
- const O = new Set(u), x = _.map((T) => T.sheetName ? St(T.sheetName, T.range) : Ee(T.range)), w = x.filter((T) => !O.has(T));
3354
+ const O = new Set(u), x = _.map((T) => T.sheetName ? Ct(T.sheetName, T.range) : Ee(T.range)), w = x.filter((T) => !O.has(T));
3355
3355
  if (!w.length) return;
3356
3356
  const F = [...u];
3357
3357
  if (x.length > 1) {
@@ -3377,9 +3377,9 @@ function Ec(e) {
3377
3377
  mask: !1,
3378
3378
  maskClosable: !1,
3379
3379
  footer: /* @__PURE__ */ W("footer", { className: "univer-flex univer-gap-2", children: [
3380
- /* @__PURE__ */ N(it, { onClick: a, children: h.t("rangeSelector.cancel") }),
3380
+ /* @__PURE__ */ N(ct, { onClick: a, children: h.t("rangeSelector.cancel") }),
3381
3381
  /* @__PURE__ */ N(
3382
- it,
3382
+ ct,
3383
3383
  {
3384
3384
  variant: "primary",
3385
3385
  onClick: () => {
@@ -3387,7 +3387,7 @@ function Ec(e) {
3387
3387
  u.filter((_) => {
3388
3388
  const m = g.sequenceNodesBuilder(_);
3389
3389
  return m && m.length === 1 && typeof m[0] != "string" && m[0].nodeType === Q.REFERENCE;
3390
- }).map((_) => dt(_)).map((_) => ({ ..._, range: Rc(_.range) }))
3390
+ }).map((_) => ht(_)).map((_) => ({ ..._, range: Rc(_.range) }))
3391
3391
  );
3392
3392
  },
3393
3393
  children: h.t("rangeSelector.confirm")
@@ -3399,7 +3399,7 @@ function Ec(e) {
3399
3399
  "div",
3400
3400
  {
3401
3401
  ref: p,
3402
- className: re("-univer-mx-6 univer-max-h-60 univer-overflow-y-auto univer-px-6", at),
3402
+ className: re("-univer-mx-6 univer-max-h-60 univer-overflow-y-auto univer-px-6", lt),
3403
3403
  children: [
3404
3404
  u.map((_, m) => /* @__PURE__ */ W(
3405
3405
  "div",
@@ -3429,7 +3429,7 @@ function Ec(e) {
3429
3429
  },
3430
3430
  m
3431
3431
  )),
3432
- u.length < s && /* @__PURE__ */ N("div", { children: /* @__PURE__ */ W(it, { variant: "link", onClick: C, children: [
3432
+ u.length < s && /* @__PURE__ */ N("div", { children: /* @__PURE__ */ W(ct, { variant: "link", onClick: C, children: [
3433
3433
  /* @__PURE__ */ N(Nr, {}),
3434
3434
  /* @__PURE__ */ N("span", { children: h.t("rangeSelector.addAnotherRange") })
3435
3435
  ] }) })
@@ -3440,10 +3440,10 @@ function Ec(e) {
3440
3440
  );
3441
3441
  }
3442
3442
  function Ic(e) {
3443
- return e.split(ct.COMMA).filter((t) => !!t).map((t) => dt(t));
3443
+ return e.split(at.COMMA).filter((t) => !!t).map((t) => ht(t));
3444
3444
  }
3445
3445
  function bc(e) {
3446
- return e.map((t) => t.sheetName ? St(t.sheetName, t.range) : Ee(t.range)).join(ct.COMMA);
3446
+ return e.map((t) => t.sheetName ? Ct(t.sheetName, t.range) : Ee(t.range)).join(at.COMMA);
3447
3447
  }
3448
3448
  function Lr(e) {
3449
3449
  const [t, n] = V(null), {
@@ -3461,9 +3461,9 @@ function Lr(e) {
3461
3461
  forceShowDialogWhenSelectionChanged: l,
3462
3462
  hideEditor: S,
3463
3463
  resetRange: p
3464
- } = e, [v, C] = V(f != null ? f : !1), [R, _] = V(!1), [m, O] = V([]), x = y(ut), w = y(Ye), { sequenceNodes: F } = Cc(t, v, s, c), T = tt(F), k = y(ve), A = ee(() => {
3464
+ } = e, [v, C] = V(f != null ? f : !1), [R, _] = V(!1), [m, O] = V([]), x = y(dt), w = y(Ye), { sequenceNodes: F } = Cc(t, v, s, c), T = tt(F), k = y(ve), A = te(() => {
3465
3465
  t == null || t.setSelectionRanges([]), t == null || t.blur(), w.blur();
3466
- }), I = ee(() => {
3466
+ }), I = te(() => {
3467
3467
  var E;
3468
3468
  A(), O(Ic((E = t == null ? void 0 : t.getDocumentDataModel().getPlainText()) != null ? E : "")), _(!0);
3469
3469
  });
@@ -3567,7 +3567,7 @@ const yc = () => {
3567
3567
  selectorRef: n,
3568
3568
  onChange: (s, c) => {
3569
3569
  var i;
3570
- t == null || t.callback((i = c == null ? void 0 : c.split(",").map((a) => dt(a))) != null ? i : []);
3570
+ t == null || t.callback((i = c == null ? void 0 : c.split(",").map((a) => ht(a))) != null ? i : []);
3571
3571
  }
3572
3572
  }
3573
3573
  );
@@ -3629,7 +3629,7 @@ $r(jt, "pluginName", vr);
3629
3629
  $r(jt, "type", H.UNIVER_SHEET);
3630
3630
  jt = xc([
3631
3631
  no(Uo, ls),
3632
- Ft(1, j(_t)),
3632
+ Ft(1, j(Rt)),
3633
3633
  Ft(2, ke),
3634
3634
  Ft(3, ro),
3635
3635
  Ft(4, hr)
@@ -3646,7 +3646,7 @@ export {
3646
3646
  Pe as RefSelectionsRenderService,
3647
3647
  Cr as ReferenceAbsoluteOperation,
3648
3648
  Ds as SearchFunctionOperation,
3649
- ft as SelectEditorFormulaOperation,
3649
+ gt as SelectEditorFormulaOperation,
3650
3650
  Rn as SheetOnlyPasteFormulaCommand,
3651
3651
  jt as UniverSheetsFormulaUIPlugin
3652
3652
  };