@univerjs/sheets-formula 0.2.4 → 0.2.5

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 (41) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +610 -677
  3. package/lib/index.css +1 -1
  4. package/lib/locale/en-US.json +222 -264
  5. package/lib/locale/ru-RU.json +222 -264
  6. package/lib/locale/vi-VN.json +171 -221
  7. package/lib/locale/zh-CN.json +226 -268
  8. package/lib/locale/zh-TW.json +238 -280
  9. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +7 -8
  10. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +1 -2
  11. package/lib/types/controllers/formula-clipboard.controller.d.ts +1 -2
  12. package/lib/types/controllers/formula-ui.controller.d.ts +1 -2
  13. package/lib/types/controllers/menu.d.ts +1 -1
  14. package/lib/types/controllers/prompt.controller.d.ts +3 -0
  15. package/lib/types/controllers/update-formula.controller.d.ts +1 -2
  16. package/lib/types/formula-ui-plugin.d.ts +1 -2
  17. package/lib/types/locale/en-US.d.ts +96 -138
  18. package/lib/types/locale/function-list/date/en-US.d.ts +25 -17
  19. package/lib/types/locale/function-list/date/ja-JP.d.ts +25 -17
  20. package/lib/types/locale/function-list/date/zh-CN.d.ts +25 -17
  21. package/lib/types/locale/function-list/date/zh-TW.d.ts +27 -19
  22. package/lib/types/locale/function-list/information/en-US.d.ts +4 -12
  23. package/lib/types/locale/function-list/information/ja-JP.d.ts +4 -12
  24. package/lib/types/locale/function-list/information/zh-CN.d.ts +4 -12
  25. package/lib/types/locale/function-list/information/zh-TW.d.ts +4 -12
  26. package/lib/types/locale/function-list/math/en-US.d.ts +67 -109
  27. package/lib/types/locale/function-list/math/ja-JP.d.ts +67 -109
  28. package/lib/types/locale/function-list/math/zh-CN.d.ts +67 -109
  29. package/lib/types/locale/function-list/math/zh-TW.d.ts +69 -111
  30. package/lib/types/locale/ru-RU.d.ts +96 -138
  31. package/lib/types/locale/vi-VN.d.ts +71 -121
  32. package/lib/types/locale/zh-CN.d.ts +96 -138
  33. package/lib/types/locale/zh-TW.d.ts +100 -142
  34. package/lib/types/services/description.service.d.ts +2 -3
  35. package/lib/types/services/formula-ref-range.service.d.ts +1 -2
  36. package/lib/types/services/prompt.service.d.ts +2 -3
  37. package/lib/types/services/register-function.service.d.ts +2 -3
  38. package/lib/types/services/remote/remote-register-function.service.d.ts +1 -1
  39. package/lib/types/services/render-services/ref-selections.render-service.d.ts +1 -2
  40. package/lib/umd/index.js +4 -4
  41. package/package.json +21 -23
package/lib/es/index.js CHANGED
@@ -1,19 +1,17 @@
1
1
  var ui = Object.defineProperty;
2
2
  var mi = (a, e, t) => e in a ? ui(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var g = (a, e, t) => mi(a, typeof e != "symbol" ? e + "" : e, t);
4
- import { Disposable as re, ObjectMatrix as z, Dimension as xn, OnLifecycle as Le, LifecycleStages as Ae, IUniverInstanceService as Pe, CellValueType as Dt, ThemeService as Xt, ICommandService as le, isFormulaString as ge, isFormulaId as He, Tools as ie, Direction as X, UniverInstanceType as w, DEFAULT_EMPTY_DOCUMENT_VALUE as ua, toDisposable as Ee, ColorKit as ma, Rectangle as Ce, CommandType as Te, isRealNum as ci, getCellValueType as fi, LocaleService as we, FOCUSING_DOC as si, FOCUSING_UNIVER_EDITOR as li, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as di, throttle as vn, cellToRange as pi, RANGE_TYPE as ce, DisposableCollection as mt, isICellData as Li, RxDisposable as Ai, FOCUSING_EDITOR_INPUT_FORMULA as bt, getCellInfoInMergeData as Pi, AbsoluteRefType as ee, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as bi, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Si, IContextService as Ei, Plugin as Pn, DependentOn as ca } from "@univerjs/core";
5
- import { Inject as U, Injector as xe, createIdentifier as Wt, Optional as Ti } from "@wendellhu/redi";
6
- import { IRPCChannelService as fa, fromModule as Ii, toModule as Ri } from "@univerjs/rpc";
7
- import { SetDefinedNameMutation as yn, RemoveDefinedNameMutation as Fn, FormulaDataModel as Ge, IActiveDirtyManagerService as bn, IDefinedNamesService as sa, SetArrayFormulaDataMutation as gt, stripErrorMargin as Ni, LexerTreeBuilder as lt, SetFormulaCalculationResultMutation as la, ErrorType as K, sequenceNodeType as ue, serializeRange as ct, FUNCTION_NAMES_COMPATIBILITY as B, FunctionType as r, FUNCTION_NAMES_CUBE as _e, FUNCTION_NAMES_DATABASE as oe, FUNCTION_NAMES_DATE as G, FUNCTION_NAMES_ENGINEERING as O, FUNCTION_NAMES_FINANCIAL as _, FUNCTION_NAMES_INFORMATION as j, FUNCTION_NAMES_LOGICAL as J, FUNCTION_NAMES_LOOKUP as V, FUNCTION_NAMES_MATH as T, FUNCTION_NAMES_STATISTICAL as b, FUNCTION_NAMES_TEXT as q, FUNCTION_NAMES_WEB as $t, isReferenceStrings as Ci, functionArray as hi, functionCompatibility as _i, functionCube as Oi, functionDatabase as Mi, functionDate as Di, functionEngineering as gi, functionFinancial as xi, functionInformation as vi, functionLogical as yi, functionLookup as Fi, functionMath as qi, functionMeta as Ui, functionStatistical as Bi, functionText as Vi, functionUniver as Hi, functionWeb as wi, IFunctionService as Sn, ERROR_TYPE_SET as Gi, SetFormulaCalculationStartMutation as jt, SetFormulaCalculationStopMutation as qn, SetFormulaCalculationNotificationMutation as Xi, FormulaExecuteStageType as Qt, FormulaExecutedStateType as Fe, SetFormulaDataMutation as St, initSheetFormulaData as Un, deserializeRangeWithSheet as De, serializeRangeToRefString as Ct, generateStringWithSequence as xt, CustomFunction as da, serializeRangeWithSpreadsheet as Wi, serializeRangeWithSheet as Yi, SetOtherFormulaMutation as Ki, RemoveOtherFormulaMutation as ki, matchRefDrawToken as Bn, matchToken as qe, compareToken as zt, normalizeSheetName as $i, getAbsoluteRefTypeWitString as ji, UniverFormulaEnginePlugin as pa } from "@univerjs/engine-formula";
8
- import { IRenderManagerService as dt, ITextSelectionRenderManager as La, DeviceInputEventType as de, ScrollTimerType as Vn, SHEET_VIEWPORT_KEY as Qi, Vector2 as zi } from "@univerjs/engine-render";
9
- import { SetRangeValuesMutation as pe, SetStyleCommand as En, MoveRangeMutation as Hn, MoveRowsMutation as wn, MoveColsMutation as Gn, ReorderRangeMutation as Xn, RemoveRowMutation as Wn, RemoveColMutation as Yn, RemoveSheetMutation as fn, InsertSheetMutation as sn, SetDefinedNameCommand as ln, INTERCEPTOR_POINT as Aa, SheetInterceptorService as Tn, SetRangeValuesUndoMutationFactory as Zi, SetWorksheetRowHeightMutation as Ji, SetWorksheetColWidthMutation as er, SetColHiddenMutation as tr, SetColVisibleMutation as nr, SetRowHiddenMutation as ar, SetRowVisibleMutation as ir, SetWorksheetRowAutoHeightMutation as rr, SetRangeValuesCommand as or, SheetsSelectionsService as In, getSheetCommandTarget as ur, getCellAtRowCol as mr, SetSelectionsOperation as cr, WorkbookEditablePermission as Pa, WorksheetEditPermission as ba, WorksheetSetCellValuePermission as Sa, RangeProtectionPermissionEditPoint as Ea, SetBorderCommand as Ta, ClearSelectionFormatCommand as Ia, INumfmtService as fr, handleMoveRange as Ra, EffectRefRangId as k, runRefRangeMutations as $, handleMoveRows as Na, handleMoveCols as Ca, handleInsertRow as ha, handleInsertCol as _a, handleIRemoveRow as Oa, handleIRemoveCol as Ma, handleDeleteRangeMoveLeft as Da, handleDeleteRangeMoveUp as ga, handleInsertRangeMoveDown as xa, handleInsertRangeMoveRight as va, RemoveSheetCommand as sr, SetWorksheetNameCommand as lr, DeleteRangeMoveLeftCommand as dr, DeleteRangeMoveUpCommand as pr, RemoveColCommand as Lr, RemoveRowCommand as Ar, InsertRangeMoveDownCommand as Pr, InsertRangeMoveRightCommand as br, InsertColCommand as Sr, InsertRowCommand as Er, MoveColsCommand as Tr, MoveRowsCommand as Ir, MoveRangeCommand as Rr, SetWorksheetActiveOperation as Nr, InsertDefinedNameCommand as Cr, RemoveDefinedNameCommand as hr, RefRangeService as _r, handleDefaultRangeChangeWithEffectRefCommands as Or, convertSelectionDataToRange as ht, getNormalSelectionStyle as Mr, IRefSelectionsService as Rn, DISABLE_NORMAL_SELECTIONS as Zt, setEndForRange as Dr, getPrimaryForRange as gr, RefSelectionsService as xr } from "@univerjs/sheets";
10
- import { DATA_TYPE as Kn, APPLY_TYPE as vr, IAutoFillService as yr, PREDEFINED_HOOK_NAME as Ve, COPY_TYPE as ya, ISheetClipboardService as Fr, ISheetSelectionRenderService as qr, SelectionShape as Ur, IEditorBridgeService as Fa, SheetSkeletonManagerService as Nn, SheetPasteCommand as Br, useActiveWorkbook as Vr, getCurrentRangeDisable$ as qa, PASTE_SPECIAL_MENU_ID as Hr, whenFormulaEditorActivated as pt, CellAlertType as wr, HoverManagerService as Gr, CellAlertManagerService as Xr, BaseSelectionRenderService as Wr, getCoordByOffset as kn, checkInHeaderRanges as $n, getAllSelection as Yr, getSheetObject as Kr, getEditorObject as kr, MoveSelectionCommand as jn, JumpOver as Qn, ExpandSelectionCommand as zn } from "@univerjs/sheets-ui";
11
- import { IEditorService as Xe, ISidebarService as Ua, MenuGroup as $r, MenuItemType as Cn, MenuPosition as jr, getMenuHiddenObservable as Qr, IClipboardInterfaceService as Zn, KeyCode as H, MetaKeys as he, ComponentManager as zr, BuiltInUIPart as Zr, IMenuService as Jr, IShortcutService as Ba, IUIPartsService as eo, IProgressService as to, UNI_DISABLE_CHANGING_FOCUS_KEY as Jt, SetEditorResizeOperation as no, IContextMenuService as ao } from "@univerjs/ui";
12
- import { useDependency as fe, useInjector as io, connectInjector as ro } from "@wendellhu/redi/react-bindings";
4
+ import { Disposable as re, ObjectMatrix as z, Dimension as xn, OnLifecycle as Le, LifecycleStages as Pe, Inject as U, IUniverInstanceService as Ae, CellValueType as Dt, ThemeService as Xt, ICommandService as le, isFormulaString as ge, isFormulaId as He, Tools as ie, Direction as X, UniverInstanceType as w, Injector as xe, DEFAULT_EMPTY_DOCUMENT_VALUE as ua, toDisposable as Ee, ColorKit as ma, Rectangle as Ce, CommandType as Te, createIdentifier as Yt, isRealNum as ci, getCellValueType as fi, useDependency as ce, LocaleService as we, useInjector as si, FOCUSING_DOC as li, FOCUSING_UNIVER_EDITOR as di, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as pi, connectInjector as Li, throttle as vn, cellToRange as Pi, RANGE_TYPE as fe, DisposableCollection as mt, Optional as Ai, isICellData as bi, RxDisposable as Si, FOCUSING_EDITOR_INPUT_FORMULA as bt, getCellInfoInMergeData as Ei, AbsoluteRefType as ee, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Ti, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Ii, IContextService as Ri, Plugin as An, DependentOn as ca } from "@univerjs/core";
5
+ import { IRPCChannelService as fa, fromModule as Ni, toModule as Ci } from "@univerjs/rpc";
6
+ import { SetDefinedNameMutation as yn, RemoveDefinedNameMutation as Fn, FormulaDataModel as Ge, IActiveDirtyManagerService as bn, IDefinedNamesService as sa, SetArrayFormulaDataMutation as gt, stripErrorMargin as hi, LexerTreeBuilder as lt, SetFormulaCalculationResultMutation as la, ErrorType as K, sequenceNodeType as ue, serializeRange as ct, FUNCTION_NAMES_COMPATIBILITY as B, FunctionType as r, FUNCTION_NAMES_CUBE as _e, FUNCTION_NAMES_DATABASE as oe, FUNCTION_NAMES_DATE as G, FUNCTION_NAMES_ENGINEERING as O, FUNCTION_NAMES_FINANCIAL as _, FUNCTION_NAMES_INFORMATION as j, FUNCTION_NAMES_LOGICAL as J, FUNCTION_NAMES_LOOKUP as V, FUNCTION_NAMES_MATH as T, FUNCTION_NAMES_STATISTICAL as b, FUNCTION_NAMES_TEXT as q, FUNCTION_NAMES_WEB as $t, isReferenceStrings as _i, functionArray as Oi, functionCompatibility as Mi, functionCube as Di, functionDatabase as gi, functionDate as xi, functionEngineering as vi, functionFinancial as yi, functionInformation as Fi, functionLogical as qi, functionLookup as Ui, functionMath as Bi, functionMeta as Vi, functionStatistical as Hi, functionText as wi, functionUniver as Gi, functionWeb as Xi, IFunctionService as Sn, ERROR_TYPE_SET as Yi, SetFormulaCalculationStartMutation as jt, SetFormulaCalculationStopMutation as qn, SetFormulaCalculationNotificationMutation as Wi, FormulaExecuteStageType as Qt, FormulaExecutedStateType as Fe, SetFormulaDataMutation as St, initSheetFormulaData as Un, deserializeRangeWithSheet as De, serializeRangeToRefString as Ct, generateStringWithSequence as xt, CustomFunction as da, serializeRangeWithSpreadsheet as Ki, serializeRangeWithSheet as ki, SetOtherFormulaMutation as $i, RemoveOtherFormulaMutation as ji, matchRefDrawToken as Bn, matchToken as qe, compareToken as zt, normalizeSheetName as Qi, getAbsoluteRefTypeWitString as zi, UniverFormulaEnginePlugin as pa } from "@univerjs/engine-formula";
7
+ import { IRenderManagerService as dt, ITextSelectionRenderManager as La, DeviceInputEventType as de, ScrollTimerType as Vn, SHEET_VIEWPORT_KEY as Zi, Vector2 as Ji } from "@univerjs/engine-render";
8
+ import { SetRangeValuesMutation as pe, SetStyleCommand as En, MoveRangeMutation as Hn, MoveRowsMutation as wn, MoveColsMutation as Gn, ReorderRangeMutation as Xn, RemoveRowMutation as Yn, RemoveColMutation as Wn, RemoveSheetMutation as fn, InsertSheetMutation as sn, SetDefinedNameCommand as ln, INTERCEPTOR_POINT as Pa, SheetInterceptorService as Tn, SetRangeValuesUndoMutationFactory as er, SetWorksheetRowHeightMutation as tr, SetWorksheetColWidthMutation as nr, SetColHiddenMutation as ar, SetColVisibleMutation as ir, SetRowHiddenMutation as rr, SetRowVisibleMutation as or, SetWorksheetRowAutoHeightMutation as ur, SetRangeValuesCommand as mr, SheetsSelectionsService as In, getSheetCommandTarget as cr, getCellAtRowCol as fr, SetSelectionsOperation as sr, WorkbookEditablePermission as Aa, WorksheetEditPermission as ba, WorksheetSetCellValuePermission as Sa, RangeProtectionPermissionEditPoint as Ea, SetBorderCommand as Ta, ClearSelectionFormatCommand as Ia, INumfmtService as lr, handleMoveRange as Ra, EffectRefRangId as k, runRefRangeMutations as $, handleMoveRows as Na, handleMoveCols as Ca, handleInsertRow as ha, handleInsertCol as _a, handleIRemoveRow as Oa, handleIRemoveCol as Ma, handleDeleteRangeMoveLeft as Da, handleDeleteRangeMoveUp as ga, handleInsertRangeMoveDown as xa, handleInsertRangeMoveRight as va, RemoveSheetCommand as dr, SetWorksheetNameCommand as pr, DeleteRangeMoveLeftCommand as Lr, DeleteRangeMoveUpCommand as Pr, RemoveColCommand as Ar, RemoveRowCommand as br, InsertRangeMoveDownCommand as Sr, InsertRangeMoveRightCommand as Er, InsertColCommand as Tr, InsertRowCommand as Ir, MoveColsCommand as Rr, MoveRowsCommand as Nr, MoveRangeCommand as Cr, SetWorksheetActiveOperation as hr, InsertDefinedNameCommand as _r, RemoveDefinedNameCommand as Or, RefRangeService as Mr, handleDefaultRangeChangeWithEffectRefCommands as Dr, convertSelectionDataToRange as ht, getNormalSelectionStyle as gr, IRefSelectionsService as Rn, DISABLE_NORMAL_SELECTIONS as Zt, setEndForRange as xr, getPrimaryForRange as vr, RefSelectionsService as yr } from "@univerjs/sheets";
9
+ import { DATA_TYPE as Kn, APPLY_TYPE as Fr, IAutoFillService as qr, PREDEFINED_HOOK_NAME as Ve, COPY_TYPE as ya, ISheetClipboardService as Ur, ISheetSelectionRenderService as Br, SelectionShape as Vr, IEditorBridgeService as Fa, SheetSkeletonManagerService as Nn, SheetPasteCommand as Hr, useActiveWorkbook as wr, getCurrentRangeDisable$ as qa, PASTE_SPECIAL_MENU_ID as Gr, whenFormulaEditorActivated as pt, CellAlertType as Xr, HoverManagerService as Yr, CellAlertManagerService as Wr, BaseSelectionRenderService as Kr, getCoordByOffset as kn, checkInHeaderRanges as $n, getAllSelection as kr, getSheetObject as $r, getEditorObject as jr, MoveSelectionCommand as jn, JumpOver as Qn, ExpandSelectionCommand as zn } from "@univerjs/sheets-ui";
10
+ import { IEditorService as Xe, ISidebarService as Ua, MenuGroup as Qr, MenuItemType as Cn, MenuPosition as zr, getMenuHiddenObservable as Zr, IClipboardInterfaceService as Zn, KeyCode as H, MetaKeys as he, ComponentManager as Jr, BuiltInUIPart as eo, IMenuService as to, IShortcutService as Ba, IUIPartsService as no, IProgressService as ao, UNI_DISABLE_CHANGING_FOCUS_KEY as Jt, SetEditorResizeOperation as io, IContextMenuService as ro } from "@univerjs/ui";
13
11
  import { Subject as Me, throttleTime as oo, combineLatestWith as uo, map as Je, switchMap as mo, of as Jn, Observable as co, merge as ea, filter as dn, bufferTime as fo } from "rxjs";
14
- import so, { forwardRef as Lt, useRef as Va, createElement as At, useEffect as ft, useState as W } from "react";
12
+ import so, { forwardRef as Lt, useRef as Va, createElement as Pt, useEffect as ft, useState as Y } from "react";
15
13
  import { Popup as Ha, Select as lo, Input as po, Button as en } from "@univerjs/design";
16
- import { ReplaceContentCommand as Lo, DocSkeletonManagerService as Ao, MoveCursorOperation as Po, TextSelectionManagerService as bo } from "@univerjs/docs";
14
+ import { ReplaceContentCommand as Lo, DocSkeletonManagerService as Po, MoveCursorOperation as Ao, TextSelectionManagerService as bo } from "@univerjs/docs";
17
15
  const hn = "formula-ui";
18
16
  var So = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, To = (a, e, t, n) => {
19
17
  for (var i = n > 1 ? void 0 : n ? Eo(e, t) : e, o = a.length - 1, u; o >= 0; o--)
@@ -74,16 +72,16 @@ let et = class extends re {
74
72
  });
75
73
  }
76
74
  _initialRowAndColumn() {
77
- this._activeDirtyManagerService.register(Wn.id, {
78
- commandId: Wn.id,
75
+ this._activeDirtyManagerService.register(Yn.id, {
76
+ commandId: Yn.id,
79
77
  getDirtyData: (a) => {
80
78
  const e = a.params;
81
79
  return {
82
80
  dirtyRanges: this._getRemoveRowOrColumnMutation(e, !0)
83
81
  };
84
82
  }
85
- }), this._activeDirtyManagerService.register(Yn.id, {
86
- commandId: Yn.id,
83
+ }), this._activeDirtyManagerService.register(Wn.id, {
84
+ commandId: Wn.id,
87
85
  getDirtyData: (a) => {
88
86
  const e = a.params;
89
87
  return {
@@ -151,16 +149,16 @@ let et = class extends re {
151
149
  _getDeleteRangeMutationDirtyRange(a) {
152
150
  const { subUnitId: e, unitId: t, range: n, shiftDimension: i } = a, o = [], u = this._univerInstanceService.getUniverSheetInstance(t), m = u == null ? void 0 : u.getSheetBySheetId(e), c = (m == null ? void 0 : m.getLastRowWithContent()) || 0, f = (m == null ? void 0 : m.getLastColumnWithContent()) || 0, d = new z();
153
151
  let s = null;
154
- const { startRow: l, startColumn: A, endRow: P, endColumn: S } = n;
152
+ const { startRow: l, startColumn: P, endRow: A, endColumn: S } = n;
155
153
  i === xn.ROWS ? s = this._rangeToMatrix({
156
154
  startRow: l,
157
- startColumn: A,
155
+ startColumn: P,
158
156
  endRow: c,
159
157
  endColumn: S
160
158
  }) : i === xn.COLUMNS && (s = this._rangeToMatrix({
161
159
  startRow: l,
162
- startColumn: A,
163
- endRow: P,
160
+ startColumn: P,
161
+ endRow: A,
164
162
  endColumn: f
165
163
  })), s != null && d.merge(s);
166
164
  const p = d.getData();
@@ -169,15 +167,15 @@ let et = class extends re {
169
167
  _getRemoveRowOrColumnMutation(a, e = !0) {
170
168
  const { subUnitId: t, unitId: n, range: i } = a, o = [], u = this._univerInstanceService.getUniverSheetInstance(n), m = u == null ? void 0 : u.getSheetBySheetId(t), c = (m == null ? void 0 : m.getRowCount()) || 0, f = (m == null ? void 0 : m.getColumnCount()) || 0, d = new z();
171
169
  let s = null;
172
- const { startRow: l, endRow: A, startColumn: P, endColumn: S } = i;
170
+ const { startRow: l, endRow: P, startColumn: A, endColumn: S } = i;
173
171
  e === !0 ? s = this._rangeToMatrix({
174
172
  startRow: l,
175
173
  startColumn: 0,
176
- endRow: A,
174
+ endRow: P,
177
175
  endColumn: f - 1
178
176
  }) : s = this._rangeToMatrix({
179
177
  startRow: 0,
180
- startColumn: P,
178
+ startColumn: A,
181
179
  endRow: c,
182
180
  endColumn: S
183
181
  }), s != null && d.merge(s);
@@ -218,17 +216,17 @@ let et = class extends re {
218
216
  if ((u = o == null ? void 0 : o[a]) != null && u[e]) {
219
217
  const c = new z((m = o == null ? void 0 : o[a]) == null ? void 0 : m[e]);
220
218
  i.forValue((f, d) => {
221
- c.forValue((s, l, A) => {
222
- if (A == null)
219
+ c.forValue((s, l, P) => {
220
+ if (P == null)
223
221
  return !0;
224
- const { startRow: P, startColumn: S, endRow: p, endColumn: N } = A;
225
- f >= P && f <= p && d >= S && d <= N && n.push({
222
+ const { startRow: A, startColumn: S, endRow: p, endColumn: N } = P;
223
+ f >= A && f <= p && d >= S && d <= N && n.push({
226
224
  unitId: a,
227
225
  sheetId: e,
228
226
  range: {
229
- startRow: P,
227
+ startRow: A,
230
228
  startColumn: S,
231
- endRow: P,
229
+ endRow: A,
232
230
  endColumn: S
233
231
  }
234
232
  });
@@ -239,9 +237,9 @@ let et = class extends re {
239
237
  }
240
238
  };
241
239
  et = To([
242
- Le(Ae.Ready, et),
240
+ Le(Pe.Ready, et),
243
241
  Et(0, bn),
244
- Et(1, Pe),
242
+ Et(1, Ae),
245
243
  Et(2, U(Ge)),
246
244
  Et(3, sa)
247
245
  ], et);
@@ -272,7 +270,7 @@ let tt = class extends re {
272
270
  }
273
271
  _initInterceptorCellContent() {
274
272
  this.disposeWithMe(
275
- this._sheetInterceptorService.intercept(Aa.CELL_CONTENT, {
273
+ this._sheetInterceptorService.intercept(Pa.CELL_CONTENT, {
276
274
  priority: 100,
277
275
  handler: (a, e, t) => {
278
276
  var f, d, s;
@@ -286,7 +284,7 @@ let tt = class extends re {
286
284
  }) : (a == null ? void 0 : a.t) === Dt.NUMBER && typeof (a == null ? void 0 : a.v) == "number" ? t({
287
285
  ...a,
288
286
  ...c,
289
- v: Ni(a.v)
287
+ v: hi(a.v)
290
288
  }) : t({ ...a, ...c });
291
289
  }
292
290
  })
@@ -294,7 +292,7 @@ let tt = class extends re {
294
292
  }
295
293
  };
296
294
  tt = No([
297
- Le(Ae.Ready, tt),
295
+ Le(Pe.Ready, tt),
298
296
  Tt(0, le),
299
297
  Tt(1, U(Tn)),
300
298
  Tt(2, U(Ge)),
@@ -319,7 +317,7 @@ let _t = class extends re {
319
317
  match: (e) => ge(e == null ? void 0 : e.f) || He(e == null ? void 0 : e.si),
320
318
  isContinue: (e, t) => e.type === Kn.FORMULA,
321
319
  applyFunctions: {
322
- [vr.COPY]: (e, t, n, i) => {
320
+ [Fr.COPY]: (e, t, n, i) => {
323
321
  const { data: o, index: u } = e;
324
322
  return this._fillCopyFormula(o, t, n, u, i);
325
323
  }
@@ -333,9 +331,9 @@ let _t = class extends re {
333
331
  for (let d = 1; d <= e; d++) {
334
332
  const s = (d - 1) % a.length, l = ie.deepClone(a[s]);
335
333
  if (l) {
336
- const A = ((c = a[s]) == null ? void 0 : c.f) || "", P = ((f = a[s]) == null ? void 0 : f.si) || "", S = ge(A);
337
- if (He(P))
338
- l.si = P, l.f = null, l.v = null, l.p = null, l.t = null, t === X.DOWN || t === X.RIGHT ? u.push(l) : u.unshift(l);
334
+ const P = ((c = a[s]) == null ? void 0 : c.f) || "", A = ((f = a[s]) == null ? void 0 : f.si) || "", S = ge(P);
335
+ if (He(A))
336
+ l.si = A, l.f = null, l.v = null, l.p = null, l.t = null, t === X.DOWN || t === X.RIGHT ? u.push(l) : u.unshift(l);
339
337
  else if (S) {
340
338
  let N = m.get(s);
341
339
  if (N)
@@ -343,7 +341,7 @@ let _t = class extends re {
343
341
  else {
344
342
  N = ie.generateRandomId(6), m.set(s, N);
345
343
  const { offsetX: I, offsetY: L } = Oo(o, t), h = this._lexerTreeBuilder.moveFormulaRefOffset(
346
- A,
344
+ P,
347
345
  I,
348
346
  L
349
347
  );
@@ -357,8 +355,8 @@ let _t = class extends re {
357
355
  }
358
356
  };
359
357
  _t = _o([
360
- Le(Ae.Ready, _t),
361
- ta(0, yr),
358
+ Le(Pe.Ready, _t),
359
+ ta(0, qr),
362
360
  ta(1, U(lt))
363
361
  ], _t);
364
362
  function Oo(a, e) {
@@ -434,12 +432,12 @@ let nt = class extends re {
434
432
  return !d || !s ? {
435
433
  undos: [],
436
434
  redos: []
437
- } : this._injector.invoke((A) => yo(
435
+ } : this._injector.invoke((P) => yo(
438
436
  d,
439
437
  s,
440
438
  m,
441
439
  c,
442
- A,
440
+ P,
443
441
  u,
444
442
  this._lexerTreeBuilder,
445
443
  this._formulaDataModel,
@@ -449,41 +447,41 @@ let nt = class extends re {
449
447
  }
450
448
  };
451
449
  nt = xo([
452
- Le(Ae.Ready, nt),
453
- $e(0, Pe),
450
+ Le(Pe.Ready, nt),
451
+ $e(0, Ae),
454
452
  $e(1, U(lt)),
455
- $e(2, Fr),
453
+ $e(2, Ur),
456
454
  $e(3, U(xe)),
457
455
  $e(4, U(Ge))
458
456
  ], nt);
459
457
  function yo(a, e, t, n, i, o, u, m, c = !1, f) {
460
- const d = [], s = [], l = new z(), A = /* @__PURE__ */ new Map();
461
- let P = 0, S = 0;
458
+ const d = [], s = [], l = new z(), P = /* @__PURE__ */ new Map();
459
+ let A = 0, S = 0;
462
460
  if (o && o.copyRange) {
463
461
  const { copyType: I, copyRange: L } = o;
464
- I === ya.COPY && L && (P = L.rows.length, S = L.cols.length);
462
+ I === ya.COPY && L && (A = L.rows.length, S = L.cols.length);
465
463
  }
466
464
  n.forValue((I, L, h) => {
467
465
  var y, v, F, E;
468
466
  const M = h.f || "", x = h.si || "";
469
467
  let C = {};
470
- if (c && (C = ie.deepClone(h), C.s = null), !(!P || !S)) {
468
+ if (c && (C = ie.deepClone(h), C.s = null), !(!A || !S)) {
471
469
  if (He(x)) {
472
- const { unitId: D = "", subUnitId: Z = "", range: Y } = f || {};
473
- if ((D && a !== D || Z && e !== Z) && (Y != null && Y.rows) && (Y != null && Y.cols)) {
474
- const Q = m.getFormulaStringByCell(Y.rows[I], Y.cols[L], Z, D), be = I % P, ne = L % S, Ie = o != null && o.copyRange ? (y = o == null ? void 0 : o.copyRange) == null ? void 0 : y.cols[ne] : ne, se = o != null && o.copyRange ? (v = o == null ? void 0 : o.copyRange) == null ? void 0 : v.rows[be] : be, Ye = t.cols[L] - Ie, Ke = t.rows[I] - se, ke = u.moveFormulaRefOffset(Q || "", Ye, Ke);
470
+ const { unitId: D = "", subUnitId: Z = "", range: W } = f || {};
471
+ if ((D && a !== D || Z && e !== Z) && (W != null && W.rows) && (W != null && W.cols)) {
472
+ const Q = m.getFormulaStringByCell(W.rows[I], W.cols[L], Z, D), be = I % A, ne = L % S, Ie = o != null && o.copyRange ? (y = o == null ? void 0 : o.copyRange) == null ? void 0 : y.cols[ne] : ne, se = o != null && o.copyRange ? (v = o == null ? void 0 : o.copyRange) == null ? void 0 : v.rows[be] : be, We = t.cols[L] - Ie, Ke = t.rows[I] - se, ke = u.moveFormulaRefOffset(Q || "", We, Ke);
475
473
  C.si = null, C.f = ke, C.v = null, C.p = null;
476
474
  } else
477
475
  C.si = x, C.f = null, C.v = null, C.p = null;
478
476
  } else if (ge(M)) {
479
- const D = I % P, Z = L % S, Y = `${D}_${Z}`;
480
- let Q = A.get(Y);
477
+ const D = I % A, Z = L % S, W = `${D}_${Z}`;
478
+ let Q = P.get(W);
481
479
  if (Q)
482
480
  C.si = Q, C.f = null, C.v = null, C.p = null;
483
481
  else {
484
- Q = ie.generateRandomId(6), A.set(Y, Q);
485
- const be = o != null && o.copyRange ? (F = o == null ? void 0 : o.copyRange) == null ? void 0 : F.cols[Z] : Z, ne = o != null && o.copyRange ? (E = o == null ? void 0 : o.copyRange) == null ? void 0 : E.rows[D] : D, Ie = t.cols[L] - be, se = t.rows[I] - ne, Ye = u.moveFormulaRefOffset(M, Ie, se);
486
- C.si = Q, C.f = Ye, C.v = null, C.p = null;
482
+ Q = ie.generateRandomId(6), P.set(W, Q);
483
+ const be = o != null && o.copyRange ? (F = o == null ? void 0 : o.copyRange) == null ? void 0 : F.cols[Z] : Z, ne = o != null && o.copyRange ? (E = o == null ? void 0 : o.copyRange) == null ? void 0 : E.rows[D] : D, Ie = t.cols[L] - be, se = t.rows[I] - ne, We = u.moveFormulaRefOffset(M, Ie, se);
484
+ C.si = Q, C.f = We, C.v = null, C.p = null;
487
485
  }
488
486
  }
489
487
  if (o.pasteType === Ve.SPECIAL_PASTE_FORMULA && h.p) {
@@ -502,7 +500,7 @@ function yo(a, e, t, n, i, o, u, m, c = !1, f) {
502
500
  id: pe.id,
503
501
  params: p
504
502
  });
505
- const N = Zi(
503
+ const N = er(
506
504
  i,
507
505
  p
508
506
  );
@@ -529,12 +527,12 @@ var qo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Bo = (a, e
529
527
  return n && i && qo(e, t, i), i;
530
528
  }, Ue = (a, e) => (t, n) => e(t, n, a);
531
529
  const Vo = [
532
- Ji.id,
533
- er.id,
534
530
  tr.id,
535
531
  nr.id,
536
532
  ar.id,
537
- ir.id
533
+ ir.id,
534
+ rr.id,
535
+ or.id
538
536
  ];
539
537
  let vt = class extends re {
540
538
  constructor(e, t, n, i, o, u, m) {
@@ -549,16 +547,16 @@ let vt = class extends re {
549
547
  this._editorBridgeService.interceptor.getInterceptPoints().BEFORE_CELL_EDIT,
550
548
  {
551
549
  handler: (e, t, n) => {
552
- var P, S, p, N;
550
+ var A, S, p, N;
553
551
  const { row: i, col: o, unitId: u, subUnitId: m, worksheet: c } = t, f = this._formulaDataModel.getArrayFormulaRange(), d = this._formulaDataModel.getArrayFormulaCellData();
554
552
  if (this._removeArrayFormulaRangeShape(), e == null)
555
553
  return n(e);
556
554
  let s = null;
557
555
  const l = this._formulaDataModel.getFormulaStringByCell(i, o, m, u);
558
- if (l !== null && (s = { f: l }), e.v != null && e.v !== "" && ((p = (S = (P = d[u]) == null ? void 0 : P[m]) == null ? void 0 : S[i]) == null ? void 0 : p[o]) == null)
556
+ if (l !== null && (s = { f: l }), e.v != null && e.v !== "" && ((p = (S = (A = d[u]) == null ? void 0 : A[m]) == null ? void 0 : S[i]) == null ? void 0 : p[o]) == null)
559
557
  return s ? { ...e, ...s } : n(e);
560
- const A = (N = f == null ? void 0 : f[u]) == null ? void 0 : N[m];
561
- return A != null && (s = this._displayArrayFormulaRangeShape(A, i, o, u, m, c, s)), s ? { ...e, ...s } : n(e);
558
+ const P = (N = f == null ? void 0 : f[u]) == null ? void 0 : N[m];
559
+ return P != null && (s = this._displayArrayFormulaRangeShape(P, i, o, u, m, c, s)), s ? { ...e, ...s } : n(e);
562
560
  }
563
561
  }
564
562
  )
@@ -570,7 +568,7 @@ let vt = class extends re {
570
568
  (e.id === la.id || e.id === gt.id && t && t.remove) && this._removeArrayFormulaRangeShape();
571
569
  })), this.disposeWithMe(
572
570
  this._commandService.beforeCommandExecuted((e) => {
573
- rr.id === e.id && requestIdleCallback(() => {
571
+ ur.id === e.id && requestIdleCallback(() => {
574
572
  const t = e.params, { unitId: n, subUnitId: i, rowsAutoHeightInfo: o } = t;
575
573
  this._refreshArrayFormulaRangeShapeByRow(n, i, o);
576
574
  }), Vo.includes(e.id) && requestIdleCallback(() => {
@@ -584,10 +582,10 @@ let vt = class extends re {
584
582
  return new z(e).forValue((c, f, d) => {
585
583
  if (d == null)
586
584
  return !0;
587
- const { startRow: s, startColumn: l, endRow: A, endColumn: P } = d;
585
+ const { startRow: s, startColumn: l, endRow: P, endColumn: A } = d;
588
586
  if (c === t && f === n)
589
587
  return this._createArrayFormulaRangeShape(d, i), !1;
590
- if (t >= s && t <= A && n >= l && n <= P) {
588
+ if (t >= s && t <= P && n >= l && n <= A) {
591
589
  const S = u.getCell(s, l);
592
590
  if ((S == null ? void 0 : S.v) === K.SPILL)
593
591
  return;
@@ -615,14 +613,14 @@ let vt = class extends re {
615
613
  hasColumnHeader: !1
616
614
  }, u = this._renderManagerService.getRenderById(t);
617
615
  if (!u) return;
618
- const { scene: m } = u, { rangeWithCoord: c, primaryWithCoord: f } = u.with(qr).attachSelectionWithCoord({
616
+ const { scene: m } = u, { rangeWithCoord: c, primaryWithCoord: f } = u.with(Br).attachSelectionWithCoord({
619
617
  range: e,
620
618
  primary: null,
621
619
  style: o
622
620
  }), d = this._sheetSkeletonManagerService.getCurrentSkeleton();
623
621
  if (!m || !d) return;
624
- const { rowHeaderWidth: s, columnHeaderHeight: l } = d, A = new Ur(m, 100, !1, this._themeService);
625
- A.update(c, s, l, o, f), A.setEvent(!1), this._previousShape = A;
622
+ const { rowHeaderWidth: s, columnHeaderHeight: l } = d, P = new Vr(m, 100, !1, this._themeService);
623
+ P.update(c, s, l, o, f), P.setEvent(!1), this._previousShape = P;
626
624
  }
627
625
  _removeArrayFormulaRangeShape() {
628
626
  this._previousShape != null && (this._previousShape.dispose(), this._previousShape = null);
@@ -643,13 +641,13 @@ let vt = class extends re {
643
641
  if (!this._checkCurrentSheet(e, t) || !this._previousShape) return;
644
642
  const { startRow: i, endRow: o, startColumn: u, endColumn: m } = this._previousShape.getRange();
645
643
  for (let c = 0; c < n.length; c++) {
646
- const f = n[c], { startRow: d, endRow: s, startColumn: l, endColumn: A } = f;
644
+ const f = n[c], { startRow: d, endRow: s, startColumn: l, endColumn: P } = f;
647
645
  if (Ce.intersects(
648
646
  {
649
647
  startRow: d,
650
648
  endRow: s,
651
649
  startColumn: l,
652
- endColumn: A
650
+ endColumn: P
653
651
  },
654
652
  {
655
653
  startRow: i,
@@ -657,14 +655,14 @@ let vt = class extends re {
657
655
  startColumn: u,
658
656
  endColumn: m
659
657
  }
660
- ) || i >= s || l >= A) {
661
- const P = {
658
+ ) || i >= s || l >= P) {
659
+ const A = {
662
660
  startRow: i,
663
661
  endRow: o,
664
662
  startColumn: u,
665
663
  endColumn: m
666
664
  };
667
- this._refreshArrayFormulaRangeShape(e, P);
665
+ this._refreshArrayFormulaRangeShape(e, A);
668
666
  break;
669
667
  }
670
668
  }
@@ -698,7 +696,7 @@ vt = Bo([
698
696
  const wa = {
699
697
  id: "sheet.command.paste-formula",
700
698
  type: Te.COMMAND,
701
- handler: async (a) => a.get(le).executeCommand(Br.id, {
699
+ handler: async (a) => a.get(le).executeCommand(Hr.id, {
702
700
  value: Ve.SPECIAL_PASTE_FORMULA
703
701
  })
704
702
  }, Ga = {
@@ -712,9 +710,9 @@ const wa = {
712
710
  f,
713
711
  si: l
714
712
  });
715
- const { startRow: A, startColumn: P, endRow: S, endColumn: p } = m;
716
- for (let N = A; N <= S; N++)
717
- for (let I = P; I <= p; I++)
713
+ const { startRow: P, startColumn: A, endRow: S, endColumn: p } = m;
714
+ for (let N = P; N <= S; N++)
715
+ for (let I = A; I <= p; I++)
718
716
  (N !== d || I !== s) && i.setValue(N, I, {
719
717
  si: l
720
718
  });
@@ -722,7 +720,7 @@ const wa = {
722
720
  const o = {
723
721
  value: i.getData()
724
722
  };
725
- return n.executeCommand(or.id, o);
723
+ return n.executeCommand(mr.id, o);
726
724
  }
727
725
  }, ve = {
728
726
  id: "formula-ui.operation.select-editor-formula",
@@ -756,7 +754,7 @@ const wa = {
756
754
  // }
757
755
  !0
758
756
  )
759
- }, ye = Wt("formula-ui.prompt-service");
757
+ }, ye = Yt("formula-ui.prompt-service");
760
758
  class Xa {
761
759
  constructor() {
762
760
  g(this, "_search$", new Me());
@@ -923,13 +921,13 @@ const pn = {
923
921
  const t = a.get(In), n = a.get(Xe), i = t.getCurrentSelections();
924
922
  if (!i || !i.length)
925
923
  return !1;
926
- const o = ur(a.get(Pe));
924
+ const o = cr(a.get(Ae));
927
925
  if (!o) return !1;
928
926
  const { worksheet: u, unitId: m, subUnitId: c } = o, f = u.getCellMatrix(), { value: d } = e, s = a.get(le), l = [];
929
- let A = null, P = 0, S = 0, p = "";
927
+ let P = null, A = 0, S = 0, p = "";
930
928
  if (i.length === 1 && (Go(i[0].range) || Xo(i[0].range))) {
931
929
  const { range: L, primary: h } = i[0], M = (N = h == null ? void 0 : h.actualRow) != null ? N : L.startRow, x = (I = h == null ? void 0 : h.actualColumn) != null ? I : L.startColumn;
932
- A = L, P = M, S = x;
930
+ P = L, A = M, S = x;
933
931
  const C = na(f, M, x);
934
932
  C && (p = ct(C));
935
933
  } else
@@ -937,7 +935,7 @@ const pn = {
937
935
  var E, D;
938
936
  const { range: h, primary: M } = L, x = (E = M == null ? void 0 : M.actualRow) != null ? E : h.startRow, C = (D = M == null ? void 0 : M.actualColumn) != null ? D : h.startColumn, y = na(f, x, C);
939
937
  if (!y)
940
- return A = h, P = x, S = C, !0;
938
+ return P = h, A = x, S = C, !0;
941
939
  const v = ct(y), F = `=${d}(${v})`;
942
940
  return l.push({
943
941
  range: h,
@@ -948,25 +946,25 @@ const pn = {
948
946
  formula: F
949
947
  }), !1;
950
948
  });
951
- if (A) {
952
- const L = mr(P, S, u), h = {
953
- range: Ce.clone(A),
949
+ if (P) {
950
+ const L = fr(A, S, u), h = {
951
+ range: Ce.clone(P),
954
952
  primary: {
955
953
  startRow: L.startRow,
956
954
  startColumn: L.startColumn,
957
955
  endRow: L.endRow,
958
956
  endColumn: L.endColumn,
959
- actualRow: P,
957
+ actualRow: A,
960
958
  actualColumn: S,
961
959
  isMerged: L.isMerged,
962
- isMergedMainCell: L.startRow === P && L.startColumn === S
960
+ isMergedMainCell: L.startRow === A && L.startColumn === S
963
961
  }
964
962
  }, M = {
965
963
  unitId: m,
966
964
  subUnitId: c,
967
965
  selections: [h]
968
966
  };
969
- await s.executeCommand(cr.id, M), setTimeout(() => {
967
+ await s.executeCommand(sr.id, M), setTimeout(() => {
970
968
  n.setFormula(`=${d}(${p}`);
971
969
  }, 0);
972
970
  }
@@ -1042,12 +1040,12 @@ function Go(a) {
1042
1040
  function Xo(a) {
1043
1041
  return a.startRow !== a.endRow && a.startColumn !== a.endColumn;
1044
1042
  }
1045
- const Wa = `${hn}_MORE_FUNCTIONS_COMPONENT`, Ya = {
1043
+ const Ya = `${hn}_MORE_FUNCTIONS_COMPONENT`, Wa = {
1046
1044
  id: "formula-ui.operation.more-functions",
1047
1045
  type: Te.OPERATION,
1048
1046
  handler: async (a) => (a.get(Ua).open({
1049
1047
  header: { title: "formula.insert.tooltip" },
1050
- children: { label: Wa }
1048
+ children: { label: Ya }
1051
1049
  }), !0)
1052
1050
  }, On = {
1053
1051
  id: "formula-ui.operation.change-ref-to-absolute",
@@ -1058,7 +1056,7 @@ const Wa = `${hn}_MORE_FUNCTIONS_COMPONENT`, Ya = {
1058
1056
  type: Te.OPERATION,
1059
1057
  handler: async (a, e) => (a.get(ye).search(e), !0)
1060
1058
  };
1061
- var Ka = { exports: {} }, Yt = {};
1059
+ var Ka = { exports: {} }, Wt = {};
1062
1060
  /**
1063
1061
  * @license React
1064
1062
  * react-jsx-runtime.production.min.js
@@ -1068,18 +1066,18 @@ var Ka = { exports: {} }, Yt = {};
1068
1066
  * This source code is licensed under the MIT license found in the
1069
1067
  * LICENSE file in the root directory of this source tree.
1070
1068
  */
1071
- var Wo = so, Yo = Symbol.for("react.element"), Ko = Symbol.for("react.fragment"), ko = Object.prototype.hasOwnProperty, $o = Wo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, jo = { key: !0, ref: !0, __self: !0, __source: !0 };
1069
+ var Yo = so, Wo = Symbol.for("react.element"), Ko = Symbol.for("react.fragment"), ko = Object.prototype.hasOwnProperty, $o = Yo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, jo = { key: !0, ref: !0, __self: !0, __source: !0 };
1072
1070
  function ka(a, e, t) {
1073
1071
  var n, i = {}, o = null, u = null;
1074
1072
  t !== void 0 && (o = "" + t), e.key !== void 0 && (o = "" + e.key), e.ref !== void 0 && (u = e.ref);
1075
1073
  for (n in e) ko.call(e, n) && !jo.hasOwnProperty(n) && (i[n] = e[n]);
1076
1074
  if (a && a.defaultProps) for (n in e = a.defaultProps, e) i[n] === void 0 && (i[n] = e[n]);
1077
- return { $$typeof: Yo, type: a, key: o, ref: u, props: i, _owner: $o.current };
1075
+ return { $$typeof: Wo, type: a, key: o, ref: u, props: i, _owner: $o.current };
1078
1076
  }
1079
- Yt.Fragment = Ko;
1080
- Yt.jsx = ka;
1081
- Yt.jsxs = ka;
1082
- Ka.exports = Yt;
1077
+ Wt.Fragment = Ko;
1078
+ Wt.jsx = ka;
1079
+ Wt.jsxs = ka;
1080
+ Ka.exports = Wt;
1083
1081
  var R = Ka.exports, me = function() {
1084
1082
  return me = Object.assign || function(a) {
1085
1083
  for (var e, t = 1, n = arguments.length; t < n; t++) {
@@ -1095,12 +1093,12 @@ var R = Ka.exports, me = function() {
1095
1093
  for (var i = 0, n = Object.getOwnPropertySymbols(a); i < n.length; i++)
1096
1094
  e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(a, n[i]) && (t[n[i]] = a[n[i]]);
1097
1095
  return t;
1098
- }, Pt = Lt(function(a, e) {
1096
+ }, At = Lt(function(a, e) {
1099
1097
  var t = a.icon, n = a.id, i = a.className, o = a.extend, u = Qo(a, ["icon", "id", "className", "extend"]), m = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), c = Va("_".concat(Jo()));
1100
1098
  return $a(t, "".concat(n), { defIds: t.defIds, idSuffix: c.current }, me({ ref: e, className: m }, u), o);
1101
1099
  });
1102
1100
  function $a(a, e, t, n, i) {
1103
- return At(a.tag, me(me({ key: e }, zo(a, t, i)), n), (Zo(a, t).children || []).map(function(o, u) {
1101
+ return Pt(a.tag, me(me({ key: e }, zo(a, t, i)), n), (Zo(a, t).children || []).map(function(o, u) {
1104
1102
  return $a(o, "".concat(e, "-").concat(a.tag, "-").concat(u), t, void 0, i);
1105
1103
  }));
1106
1104
  }
@@ -1122,9 +1120,9 @@ function Zo(a, e) {
1122
1120
  function Jo() {
1123
1121
  return Math.random().toString(36).substring(2, 8);
1124
1122
  }
1125
- Pt.displayName = "UniverIcon";
1123
+ At.displayName = "UniverIcon";
1126
1124
  var eu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, ja = Lt(function(a, e) {
1127
- return At(Pt, Object.assign({}, a, {
1125
+ return Pt(At, Object.assign({}, a, {
1128
1126
  id: "check-mark-single",
1129
1127
  ref: e,
1130
1128
  icon: eu
@@ -1132,7 +1130,7 @@ var eu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
1132
1130
  });
1133
1131
  ja.displayName = "CheckMarkSingle";
1134
1132
  var tu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z" } }] }, Qa = Lt(function(a, e) {
1135
- return At(Pt, Object.assign({}, a, {
1133
+ return Pt(At, Object.assign({}, a, {
1136
1134
  id: "close-single",
1137
1135
  ref: e,
1138
1136
  icon: tu
@@ -1140,7 +1138,7 @@ var tu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
1140
1138
  });
1141
1139
  Qa.displayName = "CloseSingle";
1142
1140
  var nu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.75 5.32495C8.75 5.73916 8.41421 6.07495 8 6.07495 7.58579 6.07495 7.25 5.73916 7.25 5.32495 7.25 4.91074 7.58579 4.57495 8 4.57495 8.41421 4.57495 8.75 4.91074 8.75 5.32495zM8.5999 7.52505C8.5999 7.19368 8.33127 6.92505 7.9999 6.92505 7.66853 6.92505 7.3999 7.19368 7.3999 7.52505V11.425C7.3999 11.7564 7.66853 12.025 7.9999 12.025 8.33127 12.025 8.5999 11.7564 8.5999 11.425V7.52505z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M0.899902 8.00002C0.899902 4.0788 4.07868 0.900024 7.9999 0.900024C11.9211 0.900024 15.0999 4.0788 15.0999 8.00002C15.0999 11.9212 11.9211 15.1 7.9999 15.1C4.07868 15.1 0.899902 11.9212 0.899902 8.00002ZM7.9999 2.10002C4.74142 2.10002 2.0999 4.74154 2.0999 8.00002C2.0999 11.2585 4.74142 13.9 7.9999 13.9C11.2584 13.9 13.8999 11.2585 13.8999 8.00002C13.8999 4.74154 11.2584 2.10002 7.9999 2.10002Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, za = Lt(function(a, e) {
1143
- return At(Pt, Object.assign({}, a, {
1141
+ return Pt(At, Object.assign({}, a, {
1144
1142
  id: "details-single",
1145
1143
  ref: e,
1146
1144
  icon: nu
@@ -1148,7 +1146,7 @@ var nu = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
1148
1146
  });
1149
1147
  za.displayName = "DetailsSingle";
1150
1148
  var au = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.90913 3.57564C6.14345 3.34132 6.52335 3.34132 6.75766 3.57564L10.7577 7.57564C10.992 7.80995 10.992 8.18985 10.7577 8.42417L6.75766 12.4242C6.52335 12.6585 6.14345 12.6585 5.90913 12.4242C5.67482 12.1899 5.67482 11.81 5.90913 11.5756L9.48487 7.9999L5.90913 4.42417C5.67482 4.18985 5.67482 3.80995 5.90913 3.57564Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Za = Lt(function(a, e) {
1151
- return At(Pt, Object.assign({}, a, {
1149
+ return Pt(At, Object.assign({}, a, {
1152
1150
  id: "more-single",
1153
1151
  ref: e,
1154
1152
  icon: au
@@ -1187,7 +1185,7 @@ const ou = (a, e = 100) => {
1187
1185
  t !== null && clearTimeout(t), window.removeEventListener("scroll", n), window.removeEventListener("resize", n);
1188
1186
  };
1189
1187
  }, [a, e]);
1190
- }, uu = "univer-formula-help-function", mu = "univer-formula-help-function-title", cu = "univer-formula-help-function-title-icons", fu = "univer-formula-help-function-title-icon", su = "univer-formula-help-function-content", lu = "univer-formula-help-function-content-inner", du = "univer-formula-help-function-content-params", pu = "univer-formula-help-function-content-params-title", Lu = "univer-formula-help-function-content-params-detail", Au = "univer-formula-help-function-active", Pu = "univer-formula-help-decorator", bu = "univer-formula-help-param", Su = "univer-formula-help-param-prefix", Eu = "univer-formula-help-param-item", Tu = "univer-formula-help-param-active", te = {
1188
+ }, uu = "univer-formula-help-function", mu = "univer-formula-help-function-title", cu = "univer-formula-help-function-title-icons", fu = "univer-formula-help-function-title-icon", su = "univer-formula-help-function-content", lu = "univer-formula-help-function-content-inner", du = "univer-formula-help-function-content-params", pu = "univer-formula-help-function-content-params-title", Lu = "univer-formula-help-function-content-params-detail", Pu = "univer-formula-help-function-active", Au = "univer-formula-help-decorator", bu = "univer-formula-help-param", Su = "univer-formula-help-param-prefix", Eu = "univer-formula-help-param-item", Tu = "univer-formula-help-param-active", te = {
1191
1189
  formulaHelpFunction: uu,
1192
1190
  formulaHelpFunctionTitle: mu,
1193
1191
  formulaHelpFunctionTitleIcons: cu,
@@ -1197,18 +1195,18 @@ const ou = (a, e = 100) => {
1197
1195
  formulaHelpFunctionContentParams: du,
1198
1196
  formulaHelpFunctionContentParamsTitle: pu,
1199
1197
  formulaHelpFunctionContentParamsDetail: Lu,
1200
- formulaHelpFunctionActive: Au,
1201
- formulaHelpDecorator: Pu,
1198
+ formulaHelpFunctionActive: Pu,
1199
+ formulaHelpDecorator: Au,
1202
1200
  formulaHelpParam: bu,
1203
1201
  formulaHelpParamPrefix: Su,
1204
1202
  formulaHelpParamItem: Eu,
1205
1203
  formulaHelpParamActive: Tu
1206
1204
  };
1207
1205
  function Iu() {
1208
- const [a, e] = W(!1), [t, n] = W(!0), [i, o] = W(!0), [u, m] = W(0), [c, f] = W([0, 0]), [d, s] = W({ left: 0, top: 0 }), [l, A] = W(null), P = fe(ye), S = fe(we), p = S.t("formula.prompt.required"), N = S.t("formula.prompt.optional"), I = fe(Pe), L = fe(Xe), h = fe(Ua), M = io();
1206
+ const [a, e] = Y(!1), [t, n] = Y(!0), [i, o] = Y(!0), [u, m] = Y(0), [c, f] = Y([0, 0]), [d, s] = Y({ left: 0, top: 0 }), [l, P] = Y(null), A = ce(ye), S = ce(we), p = S.t("formula.prompt.required"), N = S.t("formula.prompt.optional"), I = ce(Ae), L = ce(Xe), h = ce(Ua), M = si();
1209
1207
  ou(x), ft(() => {
1210
- const F = P.help$.subscribe((D) => {
1211
- const { visible: Z, paramIndex: Y, functionInfo: Q } = D;
1208
+ const F = A.help$.subscribe((D) => {
1209
+ const { visible: Z, paramIndex: W, functionInfo: Q } = D;
1212
1210
  if (!Z) {
1213
1211
  e(Z);
1214
1212
  return;
@@ -1217,7 +1215,7 @@ function Iu() {
1217
1215
  if (be == null)
1218
1216
  return;
1219
1217
  const { left: ne, top: Ie, height: se } = be;
1220
- Q.description === "" && Q.functionParameter.length === 0 || (f([ne, Ie + se]), m(Y), A(Q), s({ left: ne, top: Ie }), e(Z));
1218
+ Q.description === "" && Q.functionParameter.length === 0 || (f([ne, Ie + se]), m(W), P(Q), s({ left: ne, top: Ie }), e(Z));
1221
1219
  }), E = h.scrollEvent$.pipe(oo(100)).subscribe(x);
1222
1220
  return () => {
1223
1221
  F == null || F.unsubscribe(), E.unsubscribe();
@@ -1356,7 +1354,7 @@ const tn = (a) => /* @__PURE__ */ R.jsxs("div", { className: te.formulaHelpFunct
1356
1354
  formulaSearchFunctionItemActive: Mu
1357
1355
  };
1358
1356
  function Du() {
1359
- const [a, e] = W(!1), [t, n] = W(0), [i, o] = W([0, 0]), [u, m] = W([]), [c, f] = W(""), d = Va(null), s = fe(ye), l = fe(Pe), A = fe(Xe);
1357
+ const [a, e] = Y(!1), [t, n] = Y(0), [i, o] = Y([0, 0]), [u, m] = Y([]), [c, f] = Y(""), d = Va(null), s = ce(ye), l = ce(Ae), P = ce(Xe);
1360
1358
  ft(() => {
1361
1359
  let I = [], L = 0;
1362
1360
  const h = s.search$.subscribe((C) => {
@@ -1365,11 +1363,11 @@ function Du() {
1365
1363
  e(y);
1366
1364
  return;
1367
1365
  }
1368
- const E = P();
1366
+ const E = A();
1369
1367
  if (E == null)
1370
1368
  return;
1371
- const { left: D, top: Z, height: Y } = E;
1372
- f(v), m(F), I = F, o([D, Z + Y]), e(y), n(0), L = 0;
1369
+ const { left: D, top: Z, height: W } = E;
1370
+ f(v), m(F), I = F, o([D, Z + W]), e(y), n(0), L = 0;
1373
1371
  }), M = s.navigate$.subscribe((C) => {
1374
1372
  const { direction: y } = C;
1375
1373
  if (y === X.UP) {
@@ -1388,11 +1386,11 @@ function Du() {
1388
1386
  h == null || h.unsubscribe(), M == null || M.unsubscribe(), x == null || x.unsubscribe();
1389
1387
  };
1390
1388
  }, []);
1391
- function P() {
1389
+ function A() {
1392
1390
  const L = l.getCurrentUniverDocInstance().getUnitId();
1393
- if (!A.isEditor(L))
1391
+ if (!P.isEditor(L))
1394
1392
  return;
1395
- const h = A.getEditor(L);
1393
+ const h = P.getEditor(L);
1396
1394
  return h == null ? void 0 : h.getBoundingClientRect();
1397
1395
  }
1398
1396
  function S(I) {
@@ -1478,8 +1476,8 @@ const Uu = "univer-formula-input-params-list", Bu = "univer-formula-input-params
1478
1476
  function Hu(a) {
1479
1477
  const { functionInfo: e, onChange: t } = a;
1480
1478
  if (!e) return null;
1481
- W([]);
1482
- const [n, i] = W(e.functionParameter), [o, u] = W(-1);
1479
+ Y([]);
1480
+ const [n, i] = Y(e.functionParameter), [o, u] = Y(-1);
1483
1481
  return /* @__PURE__ */ R.jsxs("div", { className: je.formulaInputParams, children: [
1484
1482
  /* @__PURE__ */ R.jsx("div", { className: je.formulaInputParamsList, children: n.map((m, c) => /* @__PURE__ */ R.jsxs("div", { children: [
1485
1483
  /* @__PURE__ */ R.jsx("div", { className: je.formulaInputParamsListItemName, children: m.name }),
@@ -2486,7 +2484,7 @@ const wu = [], Gu = [
2486
2484
  }
2487
2485
  ]
2488
2486
  }
2489
- ], Wu = [
2487
+ ], Yu = [
2490
2488
  {
2491
2489
  functionName: oe.DAVERAGE,
2492
2490
  functionType: r.Database,
@@ -2751,7 +2749,7 @@ const wu = [], Gu = [
2751
2749
  }
2752
2750
  ]
2753
2751
  }
2754
- ], Yu = [
2752
+ ], Wu = [
2755
2753
  {
2756
2754
  functionName: G.DATE,
2757
2755
  functionType: r.Date,
@@ -2788,16 +2786,23 @@ const wu = [], Gu = [
2788
2786
  abstract: "formula.functionList.DATEDIF.abstract",
2789
2787
  functionParameter: [
2790
2788
  {
2791
- name: "formula.functionList.DATEDIF.functionParameter.number1.name",
2792
- detail: "formula.functionList.DATEDIF.functionParameter.number1.detail",
2793
- example: "A1:A20",
2789
+ name: "formula.functionList.DATEDIF.functionParameter.startDate.name",
2790
+ detail: "formula.functionList.DATEDIF.functionParameter.startDate.detail",
2791
+ example: '"2001-6-1"',
2794
2792
  require: 1,
2795
2793
  repeat: 0
2796
2794
  },
2797
2795
  {
2798
- name: "formula.functionList.DATEDIF.functionParameter.number2.name",
2799
- detail: "formula.functionList.DATEDIF.functionParameter.number2.detail",
2800
- example: "A1:A20",
2796
+ name: "formula.functionList.DATEDIF.functionParameter.endDate.name",
2797
+ detail: "formula.functionList.DATEDIF.functionParameter.endDate.detail",
2798
+ example: '"2002-8-15"',
2799
+ require: 1,
2800
+ repeat: 0
2801
+ },
2802
+ {
2803
+ name: "formula.functionList.DATEDIF.functionParameter.method.name",
2804
+ detail: "formula.functionList.DATEDIF.functionParameter.method.detail",
2805
+ example: '"D"',
2801
2806
  require: 1,
2802
2807
  repeat: 0
2803
2808
  }
@@ -2840,16 +2845,16 @@ const wu = [], Gu = [
2840
2845
  abstract: "formula.functionList.DAYS.abstract",
2841
2846
  functionParameter: [
2842
2847
  {
2843
- name: "formula.functionList.DAYS.functionParameter.number1.name",
2844
- detail: "formula.functionList.DAYS.functionParameter.number1.detail",
2845
- example: "A1:A20",
2848
+ name: "formula.functionList.DAYS.functionParameter.endDate.name",
2849
+ detail: "formula.functionList.DAYS.functionParameter.endDate.detail",
2850
+ example: '"2021-12-31"',
2846
2851
  require: 1,
2847
2852
  repeat: 0
2848
2853
  },
2849
2854
  {
2850
- name: "formula.functionList.DAYS.functionParameter.number2.name",
2851
- detail: "formula.functionList.DAYS.functionParameter.number2.detail",
2852
- example: "A1:A20",
2855
+ name: "formula.functionList.DAYS.functionParameter.startDate.name",
2856
+ detail: "formula.functionList.DAYS.functionParameter.startDate.detail",
2857
+ example: '"2021-1-1"',
2853
2858
  require: 1,
2854
2859
  repeat: 0
2855
2860
  }
@@ -2862,18 +2867,25 @@ const wu = [], Gu = [
2862
2867
  abstract: "formula.functionList.DAYS360.abstract",
2863
2868
  functionParameter: [
2864
2869
  {
2865
- name: "formula.functionList.DAYS360.functionParameter.number1.name",
2866
- detail: "formula.functionList.DAYS360.functionParameter.number1.detail",
2867
- example: "A1:A20",
2870
+ name: "formula.functionList.DAYS360.functionParameter.startDate.name",
2871
+ detail: "formula.functionList.DAYS360.functionParameter.startDate.detail",
2872
+ example: '"2021-1-29"',
2868
2873
  require: 1,
2869
2874
  repeat: 0
2870
2875
  },
2871
2876
  {
2872
- name: "formula.functionList.DAYS360.functionParameter.number2.name",
2873
- detail: "formula.functionList.DAYS360.functionParameter.number2.detail",
2874
- example: "A1:A20",
2877
+ name: "formula.functionList.DAYS360.functionParameter.endDate.name",
2878
+ detail: "formula.functionList.DAYS360.functionParameter.endDate.detail",
2879
+ example: '"2021-3-31"',
2875
2880
  require: 1,
2876
2881
  repeat: 0
2882
+ },
2883
+ {
2884
+ name: "formula.functionList.DAYS360.functionParameter.method.name",
2885
+ detail: "formula.functionList.DAYS360.functionParameter.method.detail",
2886
+ example: "1",
2887
+ require: 0,
2888
+ repeat: 0
2877
2889
  }
2878
2890
  ]
2879
2891
  },
@@ -2906,16 +2918,16 @@ const wu = [], Gu = [
2906
2918
  abstract: "formula.functionList.EOMONTH.abstract",
2907
2919
  functionParameter: [
2908
2920
  {
2909
- name: "formula.functionList.EOMONTH.functionParameter.number1.name",
2910
- detail: "formula.functionList.EOMONTH.functionParameter.number1.detail",
2911
- example: "A1:A20",
2921
+ name: "formula.functionList.EOMONTH.functionParameter.startDate.name",
2922
+ detail: "formula.functionList.EOMONTH.functionParameter.startDate.detail",
2923
+ example: '"2011-1-1"',
2912
2924
  require: 1,
2913
2925
  repeat: 0
2914
2926
  },
2915
2927
  {
2916
- name: "formula.functionList.EOMONTH.functionParameter.number2.name",
2917
- detail: "formula.functionList.EOMONTH.functionParameter.number2.detail",
2918
- example: "A1:A20",
2928
+ name: "formula.functionList.EOMONTH.functionParameter.months.name",
2929
+ detail: "formula.functionList.EOMONTH.functionParameter.months.detail",
2930
+ example: "1",
2919
2931
  require: 1,
2920
2932
  repeat: 0
2921
2933
  }
@@ -2943,16 +2955,9 @@ const wu = [], Gu = [
2943
2955
  abstract: "formula.functionList.ISOWEEKNUM.abstract",
2944
2956
  functionParameter: [
2945
2957
  {
2946
- name: "formula.functionList.ISOWEEKNUM.functionParameter.number1.name",
2947
- detail: "formula.functionList.ISOWEEKNUM.functionParameter.number1.detail",
2948
- example: "A1:A20",
2949
- require: 1,
2950
- repeat: 0
2951
- },
2952
- {
2953
- name: "formula.functionList.ISOWEEKNUM.functionParameter.number2.name",
2954
- detail: "formula.functionList.ISOWEEKNUM.functionParameter.number2.detail",
2955
- example: "A1:A20",
2958
+ name: "formula.functionList.ISOWEEKNUM.functionParameter.date.name",
2959
+ detail: "formula.functionList.ISOWEEKNUM.functionParameter.date.detail",
2960
+ example: '"2012-3-9"',
2956
2961
  require: 1,
2957
2962
  repeat: 0
2958
2963
  }
@@ -3155,17 +3160,17 @@ const wu = [], Gu = [
3155
3160
  abstract: "formula.functionList.WEEKNUM.abstract",
3156
3161
  functionParameter: [
3157
3162
  {
3158
- name: "formula.functionList.WEEKNUM.functionParameter.number1.name",
3159
- detail: "formula.functionList.WEEKNUM.functionParameter.number1.detail",
3160
- example: "A1:A20",
3163
+ name: "formula.functionList.WEEKNUM.functionParameter.serialNumber.name",
3164
+ detail: "formula.functionList.WEEKNUM.functionParameter.serialNumber.detail",
3165
+ example: '"2012-3-9"',
3161
3166
  require: 1,
3162
3167
  repeat: 0
3163
3168
  },
3164
3169
  {
3165
- name: "formula.functionList.WEEKNUM.functionParameter.number2.name",
3166
- detail: "formula.functionList.WEEKNUM.functionParameter.number2.detail",
3167
- example: "A1:A20",
3168
- require: 1,
3170
+ name: "formula.functionList.WEEKNUM.functionParameter.returnType.name",
3171
+ detail: "formula.functionList.WEEKNUM.functionParameter.returnType.detail",
3172
+ example: "2",
3173
+ require: 0,
3169
3174
  repeat: 0
3170
3175
  }
3171
3176
  ]
@@ -3257,18 +3262,25 @@ const wu = [], Gu = [
3257
3262
  abstract: "formula.functionList.YEARFRAC.abstract",
3258
3263
  functionParameter: [
3259
3264
  {
3260
- name: "formula.functionList.YEARFRAC.functionParameter.number1.name",
3261
- detail: "formula.functionList.YEARFRAC.functionParameter.number1.detail",
3262
- example: "A1:A20",
3265
+ name: "formula.functionList.YEARFRAC.functionParameter.startDate.name",
3266
+ detail: "formula.functionList.YEARFRAC.functionParameter.startDate.detail",
3267
+ example: '"2012-1-1"',
3263
3268
  require: 1,
3264
3269
  repeat: 0
3265
3270
  },
3266
3271
  {
3267
- name: "formula.functionList.YEARFRAC.functionParameter.number2.name",
3268
- detail: "formula.functionList.YEARFRAC.functionParameter.number2.detail",
3269
- example: "A1:A20",
3272
+ name: "formula.functionList.YEARFRAC.functionParameter.endDate.name",
3273
+ detail: "formula.functionList.YEARFRAC.functionParameter.endDate.detail",
3274
+ example: '"2012-7-30"',
3270
3275
  require: 1,
3271
3276
  repeat: 0
3277
+ },
3278
+ {
3279
+ name: "formula.functionList.YEARFRAC.functionParameter.basis.name",
3280
+ detail: "formula.functionList.YEARFRAC.functionParameter.basis.detail",
3281
+ example: "1",
3282
+ require: 0,
3283
+ repeat: 0
3272
3284
  }
3273
3285
  ]
3274
3286
  }
@@ -5680,16 +5692,16 @@ const wu = [], Gu = [
5680
5692
  abstract: "formula.functionList.CELL.abstract",
5681
5693
  functionParameter: [
5682
5694
  {
5683
- name: "formula.functionList.CELL.functionParameter.number1.name",
5684
- detail: "formula.functionList.CELL.functionParameter.number1.detail",
5685
- example: "A1:A20",
5695
+ name: "formula.functionList.CELL.functionParameter.infoType.name",
5696
+ detail: "formula.functionList.CELL.functionParameter.infoType.detail",
5697
+ example: '"type"',
5686
5698
  require: 1,
5687
5699
  repeat: 0
5688
5700
  },
5689
5701
  {
5690
- name: "formula.functionList.CELL.functionParameter.number2.name",
5691
- detail: "formula.functionList.CELL.functionParameter.number2.detail",
5692
- example: "A1:A20",
5702
+ name: "formula.functionList.CELL.functionParameter.reference.name",
5703
+ detail: "formula.functionList.CELL.functionParameter.reference.detail",
5704
+ example: "A1",
5693
5705
  require: 1,
5694
5706
  repeat: 0
5695
5707
  }
@@ -5702,16 +5714,9 @@ const wu = [], Gu = [
5702
5714
  abstract: "formula.functionList.ERROR_TYPE.abstract",
5703
5715
  functionParameter: [
5704
5716
  {
5705
- name: "formula.functionList.ERROR_TYPE.functionParameter.number1.name",
5706
- detail: "formula.functionList.ERROR_TYPE.functionParameter.number1.detail",
5707
- example: "A1:A20",
5708
- require: 1,
5709
- repeat: 0
5710
- },
5711
- {
5712
- name: "formula.functionList.ERROR_TYPE.functionParameter.number2.name",
5713
- detail: "formula.functionList.ERROR_TYPE.functionParameter.number2.detail",
5714
- example: "A1:A20",
5717
+ name: "formula.functionList.ERROR_TYPE.functionParameter.errorVal.name",
5718
+ detail: "formula.functionList.ERROR_TYPE.functionParameter.errorVal.detail",
5719
+ example: '"#NULL!"',
5715
5720
  require: 1,
5716
5721
  repeat: 0
5717
5722
  }
@@ -6043,16 +6048,9 @@ const wu = [], Gu = [
6043
6048
  abstract: "formula.functionList.TYPE.abstract",
6044
6049
  functionParameter: [
6045
6050
  {
6046
- name: "formula.functionList.TYPE.functionParameter.number1.name",
6047
- detail: "formula.functionList.TYPE.functionParameter.number1.detail",
6048
- example: "A1:A20",
6049
- require: 1,
6050
- repeat: 0
6051
- },
6052
- {
6053
- name: "formula.functionList.TYPE.functionParameter.number2.name",
6054
- detail: "formula.functionList.TYPE.functionParameter.number2.detail",
6055
- example: "A1:A20",
6051
+ name: "formula.functionList.TYPE.functionParameter.value.name",
6052
+ detail: "formula.functionList.TYPE.functionParameter.value.detail",
6053
+ example: "A2",
6056
6054
  require: 1,
6057
6055
  repeat: 0
6058
6056
  }
@@ -7664,16 +7662,16 @@ const wu = [], Gu = [
7664
7662
  abstract: "formula.functionList.CEILING.abstract",
7665
7663
  functionParameter: [
7666
7664
  {
7667
- name: "formula.functionList.CEILING.functionParameter.number1.name",
7668
- detail: "formula.functionList.CEILING.functionParameter.number1.detail",
7669
- example: "A1:A20",
7665
+ name: "formula.functionList.CEILING.functionParameter.number.name",
7666
+ detail: "formula.functionList.CEILING.functionParameter.number.detail",
7667
+ example: "2.5",
7670
7668
  require: 1,
7671
7669
  repeat: 0
7672
7670
  },
7673
7671
  {
7674
- name: "formula.functionList.CEILING.functionParameter.number2.name",
7675
- detail: "formula.functionList.CEILING.functionParameter.number2.detail",
7676
- example: "A1:A20",
7672
+ name: "formula.functionList.CEILING.functionParameter.significance.name",
7673
+ detail: "formula.functionList.CEILING.functionParameter.significance.detail",
7674
+ example: "1",
7677
7675
  require: 1,
7678
7676
  repeat: 0
7679
7677
  }
@@ -7686,17 +7684,24 @@ const wu = [], Gu = [
7686
7684
  abstract: "formula.functionList.CEILING_MATH.abstract",
7687
7685
  functionParameter: [
7688
7686
  {
7689
- name: "formula.functionList.CEILING_MATH.functionParameter.number1.name",
7690
- detail: "formula.functionList.CEILING_MATH.functionParameter.number1.detail",
7691
- example: "A1:A20",
7687
+ name: "formula.functionList.CEILING_MATH.functionParameter.number.name",
7688
+ detail: "formula.functionList.CEILING_MATH.functionParameter.number.detail",
7689
+ example: "-5.5",
7692
7690
  require: 1,
7693
7691
  repeat: 0
7694
7692
  },
7695
7693
  {
7696
- name: "formula.functionList.CEILING_MATH.functionParameter.number2.name",
7697
- detail: "formula.functionList.CEILING_MATH.functionParameter.number2.detail",
7698
- example: "A1:A20",
7699
- require: 1,
7694
+ name: "formula.functionList.CEILING_MATH.functionParameter.significance.name",
7695
+ detail: "formula.functionList.CEILING_MATH.functionParameter.significance.detail",
7696
+ example: "2",
7697
+ require: 0,
7698
+ repeat: 0
7699
+ },
7700
+ {
7701
+ name: "formula.functionList.CEILING_MATH.functionParameter.mode.name",
7702
+ detail: "formula.functionList.CEILING_MATH.functionParameter.mode.detail",
7703
+ example: "-1",
7704
+ require: 0,
7700
7705
  repeat: 0
7701
7706
  }
7702
7707
  ]
@@ -7708,17 +7713,17 @@ const wu = [], Gu = [
7708
7713
  abstract: "formula.functionList.CEILING_PRECISE.abstract",
7709
7714
  functionParameter: [
7710
7715
  {
7711
- name: "formula.functionList.CEILING_PRECISE.functionParameter.number1.name",
7712
- detail: "formula.functionList.CEILING_PRECISE.functionParameter.number1.detail",
7713
- example: "A1:A20",
7716
+ name: "formula.functionList.CEILING_PRECISE.functionParameter.number.name",
7717
+ detail: "formula.functionList.CEILING_PRECISE.functionParameter.number.detail",
7718
+ example: "4.3",
7714
7719
  require: 1,
7715
7720
  repeat: 0
7716
7721
  },
7717
7722
  {
7718
- name: "formula.functionList.CEILING_PRECISE.functionParameter.number2.name",
7719
- detail: "formula.functionList.CEILING_PRECISE.functionParameter.number2.detail",
7720
- example: "A1:A20",
7721
- require: 1,
7723
+ name: "formula.functionList.CEILING_PRECISE.functionParameter.significance.name",
7724
+ detail: "formula.functionList.CEILING_PRECISE.functionParameter.significance.detail",
7725
+ example: "2",
7726
+ require: 0,
7722
7727
  repeat: 0
7723
7728
  }
7724
7729
  ]
@@ -7864,16 +7869,16 @@ const wu = [], Gu = [
7864
7869
  abstract: "formula.functionList.DECIMAL.abstract",
7865
7870
  functionParameter: [
7866
7871
  {
7867
- name: "formula.functionList.DECIMAL.functionParameter.number1.name",
7868
- detail: "formula.functionList.DECIMAL.functionParameter.number1.detail",
7869
- example: "A1:A20",
7872
+ name: "formula.functionList.DECIMAL.functionParameter.text.name",
7873
+ detail: "formula.functionList.DECIMAL.functionParameter.text.detail",
7874
+ example: '"FF"',
7870
7875
  require: 1,
7871
7876
  repeat: 0
7872
7877
  },
7873
7878
  {
7874
- name: "formula.functionList.DECIMAL.functionParameter.number2.name",
7875
- detail: "formula.functionList.DECIMAL.functionParameter.number2.detail",
7876
- example: "A1:A20",
7879
+ name: "formula.functionList.DECIMAL.functionParameter.radix.name",
7880
+ detail: "formula.functionList.DECIMAL.functionParameter.radix.detail",
7881
+ example: "16",
7877
7882
  require: 1,
7878
7883
  repeat: 0
7879
7884
  }
@@ -7886,16 +7891,9 @@ const wu = [], Gu = [
7886
7891
  abstract: "formula.functionList.DEGREES.abstract",
7887
7892
  functionParameter: [
7888
7893
  {
7889
- name: "formula.functionList.DEGREES.functionParameter.number1.name",
7890
- detail: "formula.functionList.DEGREES.functionParameter.number1.detail",
7891
- example: "A1:A20",
7892
- require: 1,
7893
- repeat: 0
7894
- },
7895
- {
7896
- name: "formula.functionList.DEGREES.functionParameter.number2.name",
7897
- detail: "formula.functionList.DEGREES.functionParameter.number2.detail",
7898
- example: "A1:A20",
7894
+ name: "formula.functionList.DEGREES.functionParameter.angle.name",
7895
+ detail: "formula.functionList.DEGREES.functionParameter.angle.detail",
7896
+ example: "PI()",
7899
7897
  require: 1,
7900
7898
  repeat: 0
7901
7899
  }
@@ -7908,16 +7906,9 @@ const wu = [], Gu = [
7908
7906
  abstract: "formula.functionList.EVEN.abstract",
7909
7907
  functionParameter: [
7910
7908
  {
7911
- name: "formula.functionList.EVEN.functionParameter.number1.name",
7912
- detail: "formula.functionList.EVEN.functionParameter.number1.detail",
7913
- example: "A1:A20",
7914
- require: 1,
7915
- repeat: 0
7916
- },
7917
- {
7918
- name: "formula.functionList.EVEN.functionParameter.number2.name",
7919
- detail: "formula.functionList.EVEN.functionParameter.number2.detail",
7920
- example: "A1:A20",
7909
+ name: "formula.functionList.EVEN.functionParameter.number.name",
7910
+ detail: "formula.functionList.EVEN.functionParameter.number.detail",
7911
+ example: "1.5",
7921
7912
  require: 1,
7922
7913
  repeat: 0
7923
7914
  }
@@ -7930,16 +7921,9 @@ const wu = [], Gu = [
7930
7921
  abstract: "formula.functionList.EXP.abstract",
7931
7922
  functionParameter: [
7932
7923
  {
7933
- name: "formula.functionList.EXP.functionParameter.number1.name",
7934
- detail: "formula.functionList.EXP.functionParameter.number1.detail",
7935
- example: "A1:A20",
7936
- require: 1,
7937
- repeat: 0
7938
- },
7939
- {
7940
- name: "formula.functionList.EXP.functionParameter.number2.name",
7941
- detail: "formula.functionList.EXP.functionParameter.number2.detail",
7942
- example: "A1:A20",
7924
+ name: "formula.functionList.EXP.functionParameter.number.name",
7925
+ detail: "formula.functionList.EXP.functionParameter.number.detail",
7926
+ example: "2",
7943
7927
  require: 1,
7944
7928
  repeat: 0
7945
7929
  }
@@ -7996,16 +7980,16 @@ const wu = [], Gu = [
7996
7980
  abstract: "formula.functionList.FLOOR.abstract",
7997
7981
  functionParameter: [
7998
7982
  {
7999
- name: "formula.functionList.FLOOR.functionParameter.number1.name",
8000
- detail: "formula.functionList.FLOOR.functionParameter.number1.detail",
8001
- example: "A1:A20",
7983
+ name: "formula.functionList.FLOOR.functionParameter.number.name",
7984
+ detail: "formula.functionList.FLOOR.functionParameter.number.detail",
7985
+ example: "3.7",
8002
7986
  require: 1,
8003
7987
  repeat: 0
8004
7988
  },
8005
7989
  {
8006
- name: "formula.functionList.FLOOR.functionParameter.number2.name",
8007
- detail: "formula.functionList.FLOOR.functionParameter.number2.detail",
8008
- example: "A1:A20",
7990
+ name: "formula.functionList.FLOOR.functionParameter.significance.name",
7991
+ detail: "formula.functionList.FLOOR.functionParameter.significance.detail",
7992
+ example: "2",
8009
7993
  require: 1,
8010
7994
  repeat: 0
8011
7995
  }
@@ -8018,17 +8002,24 @@ const wu = [], Gu = [
8018
8002
  abstract: "formula.functionList.FLOOR_MATH.abstract",
8019
8003
  functionParameter: [
8020
8004
  {
8021
- name: "formula.functionList.FLOOR_MATH.functionParameter.number1.name",
8022
- detail: "formula.functionList.FLOOR_MATH.functionParameter.number1.detail",
8023
- example: "A1:A20",
8005
+ name: "formula.functionList.FLOOR_MATH.functionParameter.number.name",
8006
+ detail: "formula.functionList.FLOOR_MATH.functionParameter.number.detail",
8007
+ example: "-5.5",
8024
8008
  require: 1,
8025
8009
  repeat: 0
8026
8010
  },
8027
8011
  {
8028
- name: "formula.functionList.FLOOR_MATH.functionParameter.number2.name",
8029
- detail: "formula.functionList.FLOOR_MATH.functionParameter.number2.detail",
8030
- example: "A1:A20",
8031
- require: 1,
8012
+ name: "formula.functionList.FLOOR_MATH.functionParameter.significance.name",
8013
+ detail: "formula.functionList.FLOOR_MATH.functionParameter.significance.detail",
8014
+ example: "2",
8015
+ require: 0,
8016
+ repeat: 0
8017
+ },
8018
+ {
8019
+ name: "formula.functionList.FLOOR_MATH.functionParameter.mode.name",
8020
+ detail: "formula.functionList.FLOOR_MATH.functionParameter.mode.detail",
8021
+ example: "-1",
8022
+ require: 0,
8032
8023
  repeat: 0
8033
8024
  }
8034
8025
  ]
@@ -8040,17 +8031,17 @@ const wu = [], Gu = [
8040
8031
  abstract: "formula.functionList.FLOOR_PRECISE.abstract",
8041
8032
  functionParameter: [
8042
8033
  {
8043
- name: "formula.functionList.FLOOR_PRECISE.functionParameter.number1.name",
8044
- detail: "formula.functionList.FLOOR_PRECISE.functionParameter.number1.detail",
8045
- example: "A1:A20",
8034
+ name: "formula.functionList.FLOOR_PRECISE.functionParameter.number.name",
8035
+ detail: "formula.functionList.FLOOR_PRECISE.functionParameter.number.detail",
8036
+ example: "-3.2",
8046
8037
  require: 1,
8047
8038
  repeat: 0
8048
8039
  },
8049
8040
  {
8050
- name: "formula.functionList.FLOOR_PRECISE.functionParameter.number2.name",
8051
- detail: "formula.functionList.FLOOR_PRECISE.functionParameter.number2.detail",
8052
- example: "A1:A20",
8053
- require: 1,
8041
+ name: "formula.functionList.FLOOR_PRECISE.functionParameter.significance.name",
8042
+ detail: "formula.functionList.FLOOR_PRECISE.functionParameter.significance.detail",
8043
+ example: "-1",
8044
+ require: 0,
8054
8045
  repeat: 0
8055
8046
  }
8056
8047
  ]
@@ -8172,16 +8163,9 @@ const wu = [], Gu = [
8172
8163
  abstract: "formula.functionList.LN.abstract",
8173
8164
  functionParameter: [
8174
8165
  {
8175
- name: "formula.functionList.LN.functionParameter.number1.name",
8176
- detail: "formula.functionList.LN.functionParameter.number1.detail",
8177
- example: "A1:A20",
8178
- require: 1,
8179
- repeat: 0
8180
- },
8181
- {
8182
- name: "formula.functionList.LN.functionParameter.number2.name",
8183
- detail: "formula.functionList.LN.functionParameter.number2.detail",
8184
- example: "A1:A20",
8166
+ name: "formula.functionList.LN.functionParameter.number.name",
8167
+ detail: "formula.functionList.LN.functionParameter.number.detail",
8168
+ example: "EXP(3)",
8185
8169
  require: 1,
8186
8170
  repeat: 0
8187
8171
  }
@@ -8194,17 +8178,17 @@ const wu = [], Gu = [
8194
8178
  abstract: "formula.functionList.LOG.abstract",
8195
8179
  functionParameter: [
8196
8180
  {
8197
- name: "formula.functionList.LOG.functionParameter.number1.name",
8198
- detail: "formula.functionList.LOG.functionParameter.number1.detail",
8199
- example: "A1:A20",
8181
+ name: "formula.functionList.LOG.functionParameter.number.name",
8182
+ detail: "formula.functionList.LOG.functionParameter.number.detail",
8183
+ example: "8",
8200
8184
  require: 1,
8201
8185
  repeat: 0
8202
8186
  },
8203
8187
  {
8204
- name: "formula.functionList.LOG.functionParameter.number2.name",
8205
- detail: "formula.functionList.LOG.functionParameter.number2.detail",
8206
- example: "A1:A20",
8207
- require: 1,
8188
+ name: "formula.functionList.LOG.functionParameter.base.name",
8189
+ detail: "formula.functionList.LOG.functionParameter.base.detail",
8190
+ example: "2",
8191
+ require: 0,
8208
8192
  repeat: 0
8209
8193
  }
8210
8194
  ]
@@ -8216,16 +8200,9 @@ const wu = [], Gu = [
8216
8200
  abstract: "formula.functionList.LOG10.abstract",
8217
8201
  functionParameter: [
8218
8202
  {
8219
- name: "formula.functionList.LOG10.functionParameter.number1.name",
8220
- detail: "formula.functionList.LOG10.functionParameter.number1.detail",
8221
- example: "A1:A20",
8222
- require: 1,
8223
- repeat: 0
8224
- },
8225
- {
8226
- name: "formula.functionList.LOG10.functionParameter.number2.name",
8227
- detail: "formula.functionList.LOG10.functionParameter.number2.detail",
8228
- example: "A1:A20",
8203
+ name: "formula.functionList.LOG10.functionParameter.number.name",
8204
+ detail: "formula.functionList.LOG10.functionParameter.number.detail",
8205
+ example: "100000",
8229
8206
  require: 1,
8230
8207
  repeat: 0
8231
8208
  }
@@ -8326,16 +8303,16 @@ const wu = [], Gu = [
8326
8303
  abstract: "formula.functionList.MROUND.abstract",
8327
8304
  functionParameter: [
8328
8305
  {
8329
- name: "formula.functionList.MROUND.functionParameter.number1.name",
8330
- detail: "formula.functionList.MROUND.functionParameter.number1.detail",
8331
- example: "A1:A20",
8306
+ name: "formula.functionList.MROUND.functionParameter.number.name",
8307
+ detail: "formula.functionList.MROUND.functionParameter.number.detail",
8308
+ example: "10",
8332
8309
  require: 1,
8333
8310
  repeat: 0
8334
8311
  },
8335
8312
  {
8336
- name: "formula.functionList.MROUND.functionParameter.number2.name",
8337
- detail: "formula.functionList.MROUND.functionParameter.number2.detail",
8338
- example: "A1:A20",
8313
+ name: "formula.functionList.MROUND.functionParameter.multiple.name",
8314
+ detail: "formula.functionList.MROUND.functionParameter.multiple.detail",
8315
+ example: "3",
8339
8316
  require: 1,
8340
8317
  repeat: 0
8341
8318
  }
@@ -8392,16 +8369,9 @@ const wu = [], Gu = [
8392
8369
  abstract: "formula.functionList.ODD.abstract",
8393
8370
  functionParameter: [
8394
8371
  {
8395
- name: "formula.functionList.ODD.functionParameter.number1.name",
8396
- detail: "formula.functionList.ODD.functionParameter.number1.detail",
8397
- example: "A1:A20",
8398
- require: 1,
8399
- repeat: 0
8400
- },
8401
- {
8402
- name: "formula.functionList.ODD.functionParameter.number2.name",
8403
- detail: "formula.functionList.ODD.functionParameter.number2.detail",
8404
- example: "A1:A20",
8372
+ name: "formula.functionList.ODD.functionParameter.number.name",
8373
+ detail: "formula.functionList.ODD.functionParameter.number.detail",
8374
+ example: "1.5",
8405
8375
  require: 1,
8406
8376
  repeat: 0
8407
8377
  }
@@ -8412,22 +8382,7 @@ const wu = [], Gu = [
8412
8382
  functionType: r.Math,
8413
8383
  description: "formula.functionList.PI.description",
8414
8384
  abstract: "formula.functionList.PI.abstract",
8415
- functionParameter: [
8416
- {
8417
- name: "formula.functionList.PI.functionParameter.number1.name",
8418
- detail: "formula.functionList.PI.functionParameter.number1.detail",
8419
- example: "A1:A20",
8420
- require: 1,
8421
- repeat: 0
8422
- },
8423
- {
8424
- name: "formula.functionList.PI.functionParameter.number2.name",
8425
- detail: "formula.functionList.PI.functionParameter.number2.detail",
8426
- example: "A1:A20",
8427
- require: 1,
8428
- repeat: 0
8429
- }
8430
- ]
8385
+ functionParameter: []
8431
8386
  },
8432
8387
  {
8433
8388
  functionName: T.POWER,
@@ -8502,16 +8457,9 @@ const wu = [], Gu = [
8502
8457
  abstract: "formula.functionList.RADIANS.abstract",
8503
8458
  functionParameter: [
8504
8459
  {
8505
- name: "formula.functionList.RADIANS.functionParameter.number1.name",
8506
- detail: "formula.functionList.RADIANS.functionParameter.number1.detail",
8507
- example: "A1:A20",
8508
- require: 1,
8509
- repeat: 0
8510
- },
8511
- {
8512
- name: "formula.functionList.RADIANS.functionParameter.number2.name",
8513
- detail: "formula.functionList.RADIANS.functionParameter.number2.detail",
8514
- example: "A1:A20",
8460
+ name: "formula.functionList.RADIANS.functionParameter.angle.name",
8461
+ detail: "formula.functionList.RADIANS.functionParameter.angle.detail",
8462
+ example: "270",
8515
8463
  require: 1,
8516
8464
  repeat: 0
8517
8465
  }
@@ -8522,22 +8470,7 @@ const wu = [], Gu = [
8522
8470
  functionType: r.Math,
8523
8471
  description: "formula.functionList.RAND.description",
8524
8472
  abstract: "formula.functionList.RAND.abstract",
8525
- functionParameter: [
8526
- {
8527
- name: "formula.functionList.RAND.functionParameter.number1.name",
8528
- detail: "formula.functionList.RAND.functionParameter.number1.detail",
8529
- example: "A1:A20",
8530
- require: 1,
8531
- repeat: 0
8532
- },
8533
- {
8534
- name: "formula.functionList.RAND.functionParameter.number2.name",
8535
- detail: "formula.functionList.RAND.functionParameter.number2.detail",
8536
- example: "A1:A20",
8537
- require: 1,
8538
- repeat: 0
8539
- }
8540
- ]
8473
+ functionParameter: []
8541
8474
  },
8542
8475
  {
8543
8476
  functionName: T.RANDARRAY,
@@ -8546,17 +8479,38 @@ const wu = [], Gu = [
8546
8479
  abstract: "formula.functionList.RANDARRAY.abstract",
8547
8480
  functionParameter: [
8548
8481
  {
8549
- name: "formula.functionList.RANDARRAY.functionParameter.number1.name",
8550
- detail: "formula.functionList.RANDARRAY.functionParameter.number1.detail",
8551
- example: "A1:A20",
8552
- require: 1,
8482
+ name: "formula.functionList.RANDARRAY.functionParameter.rows.name",
8483
+ detail: "formula.functionList.RANDARRAY.functionParameter.rows.detail",
8484
+ example: "5",
8485
+ require: 0,
8553
8486
  repeat: 0
8554
8487
  },
8555
8488
  {
8556
- name: "formula.functionList.RANDARRAY.functionParameter.number2.name",
8557
- detail: "formula.functionList.RANDARRAY.functionParameter.number2.detail",
8558
- example: "A1:A20",
8559
- require: 1,
8489
+ name: "formula.functionList.RANDARRAY.functionParameter.columns.name",
8490
+ detail: "formula.functionList.RANDARRAY.functionParameter.columns.detail",
8491
+ example: "3",
8492
+ require: 0,
8493
+ repeat: 0
8494
+ },
8495
+ {
8496
+ name: "formula.functionList.RANDARRAY.functionParameter.min.name",
8497
+ detail: "formula.functionList.RANDARRAY.functionParameter.min.detail",
8498
+ example: "1",
8499
+ require: 0,
8500
+ repeat: 0
8501
+ },
8502
+ {
8503
+ name: "formula.functionList.RANDARRAY.functionParameter.max.name",
8504
+ detail: "formula.functionList.RANDARRAY.functionParameter.max.detail",
8505
+ example: "100",
8506
+ require: 0,
8507
+ repeat: 0
8508
+ },
8509
+ {
8510
+ name: "formula.functionList.RANDARRAY.functionParameter.wholeNumber.name",
8511
+ detail: "formula.functionList.RANDARRAY.functionParameter.wholeNumber.detail",
8512
+ example: "TRUE",
8513
+ require: 0,
8560
8514
  repeat: 0
8561
8515
  }
8562
8516
  ]
@@ -8568,16 +8522,16 @@ const wu = [], Gu = [
8568
8522
  abstract: "formula.functionList.RANDBETWEEN.abstract",
8569
8523
  functionParameter: [
8570
8524
  {
8571
- name: "formula.functionList.RANDBETWEEN.functionParameter.number1.name",
8572
- detail: "formula.functionList.RANDBETWEEN.functionParameter.number1.detail",
8573
- example: "A1:A20",
8525
+ name: "formula.functionList.RANDBETWEEN.functionParameter.bottom.name",
8526
+ detail: "formula.functionList.RANDBETWEEN.functionParameter.bottom.detail",
8527
+ example: "1",
8574
8528
  require: 1,
8575
8529
  repeat: 0
8576
8530
  },
8577
8531
  {
8578
- name: "formula.functionList.RANDBETWEEN.functionParameter.number2.name",
8579
- detail: "formula.functionList.RANDBETWEEN.functionParameter.number2.detail",
8580
- example: "A1:A20",
8532
+ name: "formula.functionList.RANDBETWEEN.functionParameter.top.name",
8533
+ detail: "formula.functionList.RANDBETWEEN.functionParameter.top.detail",
8534
+ example: "100",
8581
8535
  require: 1,
8582
8536
  repeat: 0
8583
8537
  }
@@ -8612,16 +8566,16 @@ const wu = [], Gu = [
8612
8566
  abstract: "formula.functionList.ROUND.abstract",
8613
8567
  functionParameter: [
8614
8568
  {
8615
- name: "formula.functionList.ROUND.functionParameter.number1.name",
8616
- detail: "formula.functionList.ROUND.functionParameter.number1.detail",
8617
- example: "A1:A20",
8569
+ name: "formula.functionList.ROUND.functionParameter.number.name",
8570
+ detail: "formula.functionList.ROUND.functionParameter.number.detail",
8571
+ example: "2.15",
8618
8572
  require: 1,
8619
8573
  repeat: 0
8620
8574
  },
8621
8575
  {
8622
- name: "formula.functionList.ROUND.functionParameter.number2.name",
8623
- detail: "formula.functionList.ROUND.functionParameter.number2.detail",
8624
- example: "A1:A20",
8576
+ name: "formula.functionList.ROUND.functionParameter.numDigits.name",
8577
+ detail: "formula.functionList.ROUND.functionParameter.numDigits.detail",
8578
+ example: "1",
8625
8579
  require: 1,
8626
8580
  repeat: 0
8627
8581
  }
@@ -8634,16 +8588,16 @@ const wu = [], Gu = [
8634
8588
  abstract: "formula.functionList.ROUNDDOWN.abstract",
8635
8589
  functionParameter: [
8636
8590
  {
8637
- name: "formula.functionList.ROUNDDOWN.functionParameter.number1.name",
8638
- detail: "formula.functionList.ROUNDDOWN.functionParameter.number1.detail",
8639
- example: "A1:A20",
8591
+ name: "formula.functionList.ROUNDDOWN.functionParameter.number.name",
8592
+ detail: "formula.functionList.ROUNDDOWN.functionParameter.number.detail",
8593
+ example: "3.2",
8640
8594
  require: 1,
8641
8595
  repeat: 0
8642
8596
  },
8643
8597
  {
8644
- name: "formula.functionList.ROUNDDOWN.functionParameter.number2.name",
8645
- detail: "formula.functionList.ROUNDDOWN.functionParameter.number2.detail",
8646
- example: "A1:A20",
8598
+ name: "formula.functionList.ROUNDDOWN.functionParameter.numDigits.name",
8599
+ detail: "formula.functionList.ROUNDDOWN.functionParameter.numDigits.detail",
8600
+ example: "0",
8647
8601
  require: 1,
8648
8602
  repeat: 0
8649
8603
  }
@@ -8656,16 +8610,16 @@ const wu = [], Gu = [
8656
8610
  abstract: "formula.functionList.ROUNDUP.abstract",
8657
8611
  functionParameter: [
8658
8612
  {
8659
- name: "formula.functionList.ROUNDUP.functionParameter.number1.name",
8660
- detail: "formula.functionList.ROUNDUP.functionParameter.number1.detail",
8661
- example: "A1:A20",
8613
+ name: "formula.functionList.ROUNDUP.functionParameter.number.name",
8614
+ detail: "formula.functionList.ROUNDUP.functionParameter.number.detail",
8615
+ example: "3.2",
8662
8616
  require: 1,
8663
8617
  repeat: 0
8664
8618
  },
8665
8619
  {
8666
- name: "formula.functionList.ROUNDUP.functionParameter.number2.name",
8667
- detail: "formula.functionList.ROUNDUP.functionParameter.number2.detail",
8668
- example: "A1:A20",
8620
+ name: "formula.functionList.ROUNDUP.functionParameter.numDigits.name",
8621
+ detail: "formula.functionList.ROUNDUP.functionParameter.numDigits.detail",
8622
+ example: "0",
8669
8623
  require: 1,
8670
8624
  repeat: 0
8671
8625
  }
@@ -8678,16 +8632,9 @@ const wu = [], Gu = [
8678
8632
  abstract: "formula.functionList.SEC.abstract",
8679
8633
  functionParameter: [
8680
8634
  {
8681
- name: "formula.functionList.SEC.functionParameter.number1.name",
8682
- detail: "formula.functionList.SEC.functionParameter.number1.detail",
8683
- example: "A1:A20",
8684
- require: 1,
8685
- repeat: 0
8686
- },
8687
- {
8688
- name: "formula.functionList.SEC.functionParameter.number2.name",
8689
- detail: "formula.functionList.SEC.functionParameter.number2.detail",
8690
- example: "A1:A20",
8635
+ name: "formula.functionList.SEC.functionParameter.number.name",
8636
+ detail: "formula.functionList.SEC.functionParameter.number.detail",
8637
+ example: "30",
8691
8638
  require: 1,
8692
8639
  repeat: 0
8693
8640
  }
@@ -8700,16 +8647,9 @@ const wu = [], Gu = [
8700
8647
  abstract: "formula.functionList.SECH.abstract",
8701
8648
  functionParameter: [
8702
8649
  {
8703
- name: "formula.functionList.SECH.functionParameter.number1.name",
8704
- detail: "formula.functionList.SECH.functionParameter.number1.detail",
8705
- example: "A1:A20",
8706
- require: 1,
8707
- repeat: 0
8708
- },
8709
- {
8710
- name: "formula.functionList.SECH.functionParameter.number2.name",
8711
- detail: "formula.functionList.SECH.functionParameter.number2.detail",
8712
- example: "A1:A20",
8650
+ name: "formula.functionList.SECH.functionParameter.number.name",
8651
+ detail: "formula.functionList.SECH.functionParameter.number.detail",
8652
+ example: "30",
8713
8653
  require: 1,
8714
8654
  repeat: 0
8715
8655
  }
@@ -8818,16 +8758,9 @@ const wu = [], Gu = [
8818
8758
  abstract: "formula.functionList.SQRT.abstract",
8819
8759
  functionParameter: [
8820
8760
  {
8821
- name: "formula.functionList.SQRT.functionParameter.number1.name",
8822
- detail: "formula.functionList.SQRT.functionParameter.number1.detail",
8823
- example: "A1:A20",
8824
- require: 1,
8825
- repeat: 0
8826
- },
8827
- {
8828
- name: "formula.functionList.SQRT.functionParameter.number2.name",
8829
- detail: "formula.functionList.SQRT.functionParameter.number2.detail",
8830
- example: "A1:A20",
8761
+ name: "formula.functionList.SQRT.functionParameter.number.name",
8762
+ detail: "formula.functionList.SQRT.functionParameter.number.detail",
8763
+ example: "16",
8831
8764
  require: 1,
8832
8765
  repeat: 0
8833
8766
  }
@@ -8840,16 +8773,9 @@ const wu = [], Gu = [
8840
8773
  abstract: "formula.functionList.SQRTPI.abstract",
8841
8774
  functionParameter: [
8842
8775
  {
8843
- name: "formula.functionList.SQRTPI.functionParameter.number1.name",
8844
- detail: "formula.functionList.SQRTPI.functionParameter.number1.detail",
8845
- example: "A1:A20",
8846
- require: 1,
8847
- repeat: 0
8848
- },
8849
- {
8850
- name: "formula.functionList.SQRTPI.functionParameter.number2.name",
8851
- detail: "formula.functionList.SQRTPI.functionParameter.number2.detail",
8852
- example: "A1:A20",
8776
+ name: "formula.functionList.SQRTPI.functionParameter.number.name",
8777
+ detail: "formula.functionList.SQRTPI.functionParameter.number.detail",
8778
+ example: "1",
8853
8779
  require: 1,
8854
8780
  repeat: 0
8855
8781
  }
@@ -9011,16 +8937,16 @@ const wu = [], Gu = [
9011
8937
  {
9012
8938
  name: "formula.functionList.SUMSQ.functionParameter.number1.name",
9013
8939
  detail: "formula.functionList.SUMSQ.functionParameter.number1.detail",
9014
- example: "A1:A20",
8940
+ example: "3",
9015
8941
  require: 1,
9016
8942
  repeat: 0
9017
8943
  },
9018
8944
  {
9019
8945
  name: "formula.functionList.SUMSQ.functionParameter.number2.name",
9020
8946
  detail: "formula.functionList.SUMSQ.functionParameter.number2.detail",
9021
- example: "A1:A20",
9022
- require: 1,
9023
- repeat: 0
8947
+ example: "4",
8948
+ require: 0,
8949
+ repeat: 1
9024
8950
  }
9025
8951
  ]
9026
8952
  },
@@ -9031,16 +8957,16 @@ const wu = [], Gu = [
9031
8957
  abstract: "formula.functionList.SUMX2MY2.abstract",
9032
8958
  functionParameter: [
9033
8959
  {
9034
- name: "formula.functionList.SUMX2MY2.functionParameter.number1.name",
9035
- detail: "formula.functionList.SUMX2MY2.functionParameter.number1.detail",
9036
- example: "A1:A20",
8960
+ name: "formula.functionList.SUMX2MY2.functionParameter.arrayX.name",
8961
+ detail: "formula.functionList.SUMX2MY2.functionParameter.arrayX.detail",
8962
+ example: "A2:A8",
9037
8963
  require: 1,
9038
8964
  repeat: 0
9039
8965
  },
9040
8966
  {
9041
- name: "formula.functionList.SUMX2MY2.functionParameter.number2.name",
9042
- detail: "formula.functionList.SUMX2MY2.functionParameter.number2.detail",
9043
- example: "A1:A20",
8967
+ name: "formula.functionList.SUMX2MY2.functionParameter.arrayY.name",
8968
+ detail: "formula.functionList.SUMX2MY2.functionParameter.arrayY.detail",
8969
+ example: "B2:B8",
9044
8970
  require: 1,
9045
8971
  repeat: 0
9046
8972
  }
@@ -9053,16 +8979,16 @@ const wu = [], Gu = [
9053
8979
  abstract: "formula.functionList.SUMX2PY2.abstract",
9054
8980
  functionParameter: [
9055
8981
  {
9056
- name: "formula.functionList.SUMX2PY2.functionParameter.number1.name",
9057
- detail: "formula.functionList.SUMX2PY2.functionParameter.number1.detail",
9058
- example: "A1:A20",
8982
+ name: "formula.functionList.SUMX2PY2.functionParameter.arrayX.name",
8983
+ detail: "formula.functionList.SUMX2PY2.functionParameter.arrayX.detail",
8984
+ example: "A2:A8",
9059
8985
  require: 1,
9060
8986
  repeat: 0
9061
8987
  },
9062
8988
  {
9063
- name: "formula.functionList.SUMX2PY2.functionParameter.number2.name",
9064
- detail: "formula.functionList.SUMX2PY2.functionParameter.number2.detail",
9065
- example: "A1:A20",
8989
+ name: "formula.functionList.SUMX2PY2.functionParameter.arrayY.name",
8990
+ detail: "formula.functionList.SUMX2PY2.functionParameter.arrayY.detail",
8991
+ example: "B2:B8",
9066
8992
  require: 1,
9067
8993
  repeat: 0
9068
8994
  }
@@ -9075,16 +9001,16 @@ const wu = [], Gu = [
9075
9001
  abstract: "formula.functionList.SUMXMY2.abstract",
9076
9002
  functionParameter: [
9077
9003
  {
9078
- name: "formula.functionList.SUMXMY2.functionParameter.number1.name",
9079
- detail: "formula.functionList.SUMXMY2.functionParameter.number1.detail",
9080
- example: "A1:A20",
9004
+ name: "formula.functionList.SUMXMY2.functionParameter.arrayX.name",
9005
+ detail: "formula.functionList.SUMXMY2.functionParameter.arrayX.detail",
9006
+ example: "A2:A8",
9081
9007
  require: 1,
9082
9008
  repeat: 0
9083
9009
  },
9084
9010
  {
9085
- name: "formula.functionList.SUMXMY2.functionParameter.number2.name",
9086
- detail: "formula.functionList.SUMXMY2.functionParameter.number2.detail",
9087
- example: "A1:A20",
9011
+ name: "formula.functionList.SUMXMY2.functionParameter.arrayY.name",
9012
+ detail: "formula.functionList.SUMXMY2.functionParameter.arrayY.detail",
9013
+ example: "B2:B8",
9088
9014
  require: 1,
9089
9015
  repeat: 0
9090
9016
  }
@@ -12750,11 +12676,11 @@ const wu = [], Gu = [
12750
12676
  }
12751
12677
  ], nm = [
12752
12678
  ...ku,
12753
- ...Yu,
12679
+ ...Wu,
12754
12680
  ...zu,
12755
12681
  ...Zu,
12756
12682
  ...Qu,
12757
- ...Wu,
12683
+ ...Yu,
12758
12684
  ...Ju,
12759
12685
  ...ju,
12760
12686
  ...$u,
@@ -12770,7 +12696,7 @@ var am = Object.defineProperty, im = Object.getOwnPropertyDescriptor, rm = (a, e
12770
12696
  (u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
12771
12697
  return n && i && am(e, t, i), i;
12772
12698
  }, ia = (a, e) => (t, n) => e(t, n, a);
12773
- const We = Wt("formula-ui.description-service");
12699
+ const Ye = Yt("formula-ui.description-service");
12774
12700
  let Ft = class {
12775
12701
  constructor(a = [], e, t) {
12776
12702
  g(this, "_descriptions", []);
@@ -12829,7 +12755,7 @@ let Ft = class {
12829
12755
  if (e.length === 0)
12830
12756
  return !1;
12831
12757
  const t = e[0].description;
12832
- return !Ci(t);
12758
+ return !_i(t);
12833
12759
  }
12834
12760
  _initialize() {
12835
12761
  this._localeService.localeChanged$.subscribe(() => {
@@ -12838,8 +12764,6 @@ let Ft = class {
12838
12764
  }
12839
12765
  _initDescription() {
12840
12766
  const a = [
12841
- ...hi,
12842
- ..._i,
12843
12767
  ...Oi,
12844
12768
  ...Mi,
12845
12769
  ...Di,
@@ -12853,7 +12777,9 @@ let Ft = class {
12853
12777
  ...Bi,
12854
12778
  ...Vi,
12855
12779
  ...Hi,
12856
- ...wi
12780
+ ...wi,
12781
+ ...Gi,
12782
+ ...Xi
12857
12783
  ].map((t) => t[1]), e = nm.filter((t) => a.includes(t.functionName));
12858
12784
  this._descriptions = e.concat(this._description);
12859
12785
  }
@@ -12888,7 +12814,7 @@ const om = "univer-formula-select-function-select", um = "univer-formula-select-
12888
12814
  formulaSelectFunctionContent: lm
12889
12815
  };
12890
12816
  function dm(a) {
12891
- const { onChange: e } = a, t = "-1", [n, i] = W(""), [o, u] = W([]), [m, c] = W(0), [f, d] = W(t), [s, l] = W(0), [A, P] = W(null), S = fe(We), p = fe(we), N = iu(r, p);
12817
+ const { onChange: e } = a, t = "-1", [n, i] = Y(""), [o, u] = Y([]), [m, c] = Y(0), [f, d] = Y(t), [s, l] = Y(0), [P, A] = Y(null), S = ce(Ye), p = ce(we), N = iu(r, p);
12892
12818
  N.unshift({
12893
12819
  label: p.t("formula.moreFunctions.allFunctions"),
12894
12820
  value: t
@@ -12902,19 +12828,19 @@ function dm(a) {
12902
12828
  const h = (E) => {
12903
12829
  if (n.trim() === "") return E;
12904
12830
  const D = new RegExp(`(${n.toLocaleUpperCase()})`);
12905
- return E.split(D).filter(Boolean).map((Y, Q) => Y.match(D) ? /* @__PURE__ */ R.jsx("span", { className: Se.formulaSelectFunctionResultItemNameLight, children: Y }, Q) : Y);
12831
+ return E.split(D).filter(Boolean).map((W, Q) => W.match(D) ? /* @__PURE__ */ R.jsx("span", { className: Se.formulaSelectFunctionResultItemNameLight, children: W }, Q) : W);
12906
12832
  }, M = (E) => {
12907
12833
  if (o.length === 0) {
12908
- P(null);
12834
+ A(null);
12909
12835
  return;
12910
12836
  }
12911
12837
  l(E);
12912
12838
  const D = S.getFunctionInfo(o[E].name);
12913
12839
  if (!D) {
12914
- P(null);
12840
+ A(null);
12915
12841
  return;
12916
12842
  }
12917
- P(D), e(D);
12843
+ A(D), e(D);
12918
12844
  };
12919
12845
  function x(E) {
12920
12846
  d(E);
@@ -12969,23 +12895,23 @@ function dm(a) {
12969
12895
  },
12970
12896
  D
12971
12897
  )) }),
12972
- A && /* @__PURE__ */ R.jsxs("div", { className: Se.formulaSelectFunctionContent, children: [
12973
- /* @__PURE__ */ R.jsx(ze, { title: A.functionName, value: A.description }),
12898
+ P && /* @__PURE__ */ R.jsxs("div", { className: Se.formulaSelectFunctionContent, children: [
12899
+ /* @__PURE__ */ R.jsx(ze, { title: P.functionName, value: P.description }),
12974
12900
  /* @__PURE__ */ R.jsx(
12975
12901
  ze,
12976
12902
  {
12977
12903
  title: p.t("formula.moreFunctions.syntax"),
12978
- value: /* @__PURE__ */ R.jsx(ei, { prefix: A.functionName, value: A.functionParameter })
12904
+ value: /* @__PURE__ */ R.jsx(ei, { prefix: P.functionName, value: P.functionParameter })
12979
12905
  }
12980
12906
  ),
12981
12907
  /* @__PURE__ */ R.jsx(
12982
12908
  ze,
12983
12909
  {
12984
12910
  title: p.t("formula.prompt.helpExample"),
12985
- value: `${A.functionName}(${A.functionParameter.map((E) => E.example).join(",")})`
12911
+ value: `${P.functionName}(${P.functionParameter.map((E) => E.example).join(",")})`
12986
12912
  }
12987
12913
  ),
12988
- A.functionParameter && A.functionParameter.map((E, D) => /* @__PURE__ */ R.jsx(
12914
+ P.functionParameter && P.functionParameter.map((E, D) => /* @__PURE__ */ R.jsx(
12989
12915
  ze,
12990
12916
  {
12991
12917
  title: E.name,
@@ -12997,7 +12923,7 @@ function dm(a) {
12997
12923
  ] });
12998
12924
  }
12999
12925
  function pm() {
13000
- const a = Vr(), [e, t] = W(!0), [n, i] = W(!1), [o, u] = W(null), m = fe(we), c = fe(Xe);
12926
+ const a = wr(), [e, t] = Y(!0), [n, i] = Y(!1), [o, u] = Y(null), m = ce(we), c = ce(Xe);
13001
12927
  function f() {
13002
12928
  t(!e), i(!n);
13003
12929
  }
@@ -13027,9 +12953,9 @@ function Lm(a) {
13027
12953
  id: _n.id,
13028
12954
  icon: "FunctionSingle",
13029
12955
  tooltip: "formula.insert.tooltip",
13030
- group: $r.TOOLBAR_FORMULAS_INSERT,
12956
+ group: Qr.TOOLBAR_FORMULAS_INSERT,
13031
12957
  type: Cn.SELECTOR,
13032
- positions: [jr.TOOLBAR_START],
12958
+ positions: [zr.TOOLBAR_START],
13033
12959
  selections: [
13034
12960
  {
13035
12961
  label: "SUM",
@@ -13057,20 +12983,20 @@ function Lm(a) {
13057
12983
  icon: "MinSingle"
13058
12984
  }
13059
12985
  ],
13060
- hidden$: Qr(a, w.UNIVER_SHEET),
13061
- disabled$: qa(a, { workbookTypes: [Pa], worksheetTypes: [ba, Sa], rangeTypes: [Ea] })
12986
+ hidden$: Zr(a, w.UNIVER_SHEET),
12987
+ disabled$: qa(a, { workbookTypes: [Aa], worksheetTypes: [ba, Sa], rangeTypes: [Ea] })
13062
12988
  };
13063
12989
  }
13064
- function Am(a) {
12990
+ function Pm(a) {
13065
12991
  return {
13066
- id: Ya.id,
12992
+ id: Wa.id,
13067
12993
  title: "formula.insert.more",
13068
12994
  positions: _n.id,
13069
12995
  type: Cn.BUTTON
13070
12996
  };
13071
12997
  }
13072
- function Pm(a) {
13073
- return a.get(Pe).getCurrentTypeOfUnit$(w.UNIVER_SHEET).pipe(
12998
+ function Am(a) {
12999
+ return a.get(Ae).getCurrentTypeOfUnit$(w.UNIVER_SHEET).pipe(
13074
13000
  mo((n) => n ? a.get(Zn) ? new co((o) => o.next(!a.get(Zn).supportClipboard)) : Jn(!0) : Jn(!0))
13075
13001
  );
13076
13002
  }
@@ -13079,19 +13005,19 @@ function bm(a) {
13079
13005
  id: wa.id,
13080
13006
  type: Cn.BUTTON,
13081
13007
  title: "formula.operation.pasteFormula",
13082
- positions: [Hr],
13083
- disabled$: Pm(a).pipe(
13084
- uo(qa(a, { workbookTypes: [Pa], rangeTypes: [Ea], worksheetTypes: [Sa, ba] })),
13008
+ positions: [Gr],
13009
+ disabled$: Am(a).pipe(
13010
+ uo(qa(a, { workbookTypes: [Aa], rangeTypes: [Ea], worksheetTypes: [Sa, ba] })),
13085
13011
  Je(([e, t]) => e || t)
13086
13012
  )
13087
13013
  };
13088
13014
  }
13089
13015
  const ti = "meta_key_ctrl_And_Shift";
13090
13016
  function Sm(a) {
13091
- return a.getContextValue(si) && a.getContextValue(li) && a.getContextValue(di);
13017
+ return a.getContextValue(li) && a.getContextValue(di) && a.getContextValue(pi);
13092
13018
  }
13093
13019
  function ni(a) {
13094
- return (ge(a == null ? void 0 : a.f) || He(a == null ? void 0 : a.si)) && typeof (a == null ? void 0 : a.v) == "string" && Gi.has(a.v) ? a.v : null;
13020
+ return (ge(a == null ? void 0 : a.f) || He(a == null ? void 0 : a.si)) && typeof (a == null ? void 0 : a.v) == "string" && Yi.has(a.v) ? a.v : null;
13095
13021
  }
13096
13022
  const Kt = [
13097
13023
  H.ARROW_DOWN,
@@ -13193,7 +13119,7 @@ let at = class extends re {
13193
13119
  }
13194
13120
  _registerMenus() {
13195
13121
  const { menu: a = {} } = this._config;
13196
- [Lm, Am, bm].forEach(
13122
+ [Lm, Pm, bm].forEach(
13197
13123
  (e) => {
13198
13124
  this.disposeWithMe(this._menuService.addMenuItem(this._injector.invoke(e), a));
13199
13125
  }
@@ -13204,7 +13130,7 @@ let at = class extends re {
13204
13130
  Ga,
13205
13131
  wa,
13206
13132
  _n,
13207
- Ya,
13133
+ Wa,
13208
13134
  Ln,
13209
13135
  pn,
13210
13136
  ve,
@@ -13226,22 +13152,22 @@ let at = class extends re {
13226
13152
  }
13227
13153
  _registerComponents() {
13228
13154
  this.disposeWithMe(
13229
- this._uiPartsService.registerComponent(Zr.CONTENT, () => ro(gu, this._injector))
13230
- ), this._componentManager.register(Wa, pm);
13155
+ this._uiPartsService.registerComponent(eo.CONTENT, () => Li(gu, this._injector))
13156
+ ), this._componentManager.register(Ya, pm);
13231
13157
  }
13232
13158
  _registerRenderModules() {
13233
13159
  this.disposeWithMe(this._renderManagerService.registerRenderModule(w.UNIVER_SHEET, [vt]));
13234
13160
  }
13235
13161
  };
13236
13162
  at = Mm([
13237
- Le(Ae.Ready, at),
13163
+ Le(Pe.Ready, at),
13238
13164
  Oe(1, U(xe)),
13239
- Oe(2, Jr),
13165
+ Oe(2, to),
13240
13166
  Oe(3, le),
13241
13167
  Oe(4, Ba),
13242
- Oe(5, eo),
13168
+ Oe(5, no),
13243
13169
  Oe(6, dt),
13244
- Oe(7, U(zr))
13170
+ Oe(7, U(Jr))
13245
13171
  ], at);
13246
13172
  var Dm = Object.defineProperty, gm = Object.getOwnPropertyDescriptor, xm = (a, e, t, n) => {
13247
13173
  for (var i = n > 1 ? void 0 : n ? gm(e, t) : e, o = a.length - 1, u; o >= 0; o--)
@@ -13253,6 +13179,7 @@ let it = class extends re {
13253
13179
  super();
13254
13180
  g(this, "_waitingCommandQueue", []);
13255
13181
  g(this, "_executingDirtyData", {
13182
+ forceCalculation: !1,
13256
13183
  dirtyRanges: [],
13257
13184
  dirtyNameMap: {},
13258
13185
  dirtyDefinedNameMap: {},
@@ -13301,15 +13228,16 @@ let it = class extends re {
13301
13228
  const c = this._activeDirtyManagerService.get(m.id);
13302
13229
  if (c == null)
13303
13230
  continue;
13304
- const f = c.getDirtyData(m), { dirtyRanges: d, dirtyNameMap: s, dirtyDefinedNameMap: l, dirtyUnitFeatureMap: A, dirtyUnitOtherFormulaMap: P } = f;
13305
- d != null && t.push(...d), s != null && this._mergeDirtyNameMap(n, s), l != null && this._mergeDirtyNameMap(i, l), A != null && this._mergeDirtyUnitFeatureOrOtherFormulaMap(o, A), P != null && this._mergeDirtyUnitFeatureOrOtherFormulaMap(u, P);
13231
+ const f = c.getDirtyData(m), { dirtyRanges: d, dirtyNameMap: s, dirtyDefinedNameMap: l, dirtyUnitFeatureMap: P, dirtyUnitOtherFormulaMap: A } = f;
13232
+ d != null && t.push(...d), s != null && this._mergeDirtyNameMap(n, s), l != null && this._mergeDirtyNameMap(i, l), P != null && this._mergeDirtyUnitFeatureOrOtherFormulaMap(o, P), A != null && this._mergeDirtyUnitFeatureOrOtherFormulaMap(u, A);
13306
13233
  }
13307
13234
  return {
13308
13235
  dirtyRanges: t,
13309
13236
  dirtyNameMap: n,
13310
13237
  dirtyDefinedNameMap: i,
13311
13238
  dirtyUnitFeatureMap: o,
13312
- dirtyUnitOtherFormulaMap: u
13239
+ dirtyUnitOtherFormulaMap: u,
13240
+ forceCalculation: !1
13313
13241
  // numfmtItemMap,
13314
13242
  };
13315
13243
  }
@@ -13320,7 +13248,8 @@ let it = class extends re {
13320
13248
  dirtyNameMap: i,
13321
13249
  dirtyDefinedNameMap: o,
13322
13250
  dirtyUnitFeatureMap: u,
13323
- dirtyUnitOtherFormulaMap: m
13251
+ dirtyUnitOtherFormulaMap: m,
13252
+ forceCalculation: !1
13324
13253
  };
13325
13254
  }
13326
13255
  _mergeDirtyNameMap(e, t) {
@@ -13347,21 +13276,21 @@ let it = class extends re {
13347
13276
  this.disposeWithMe(
13348
13277
  // eslint-disable-next-line complexity, max-lines-per-function
13349
13278
  this._commandService.onCommandExecuted((f) => {
13350
- if (f.id !== Xi.id)
13279
+ if (f.id !== Wi.id)
13351
13280
  return;
13352
13281
  const d = f.params;
13353
13282
  if (d.stageInfo != null) {
13354
13283
  const {
13355
13284
  totalFormulasToCalculate: s,
13356
13285
  completedFormulasCount: l,
13357
- totalArrayFormulasToCalculate: A,
13358
- completedArrayFormulasCount: P,
13286
+ totalArrayFormulasToCalculate: P,
13287
+ completedArrayFormulasCount: A,
13359
13288
  stage: S
13360
13289
  } = d.stageInfo;
13361
13290
  S === Qt.START_DEPENDENCY ? (i++, n !== null && (clearTimeout(n), n = null), n = setTimeout(() => {
13362
13291
  const p = o - this._formulaCalculationDoneCount + (u - this._arrayFormulaCalculationDoneCount) + 100;
13363
13292
  this._progressService.insertTaskCount(p), this._progressService.pushTask({ count: 5 }), n = null;
13364
- }, 1e3)) : S === Qt.CURRENTLY_CALCULATING ? (l === 1 && !m && (m = !0, n ? o += s : this._progressService.insertTaskCount(s)), n ? this._formulaCalculationDoneCount = l : e(l)) : S === Qt.CURRENTLY_CALCULATING_ARRAY_FORMULA && (P === 1 && !c && (c = !0, n ? u += A : this._progressService.insertTaskCount(A)), n ? this._arrayFormulaCalculationDoneCount = P : t(P)), this._executionInProgressParams = d.stageInfo;
13293
+ }, 1e3)) : S === Qt.CURRENTLY_CALCULATING ? (l === 1 && !m && (m = !0, n ? o += s : this._progressService.insertTaskCount(s)), n ? this._formulaCalculationDoneCount = l : e(l)) : S === Qt.CURRENTLY_CALCULATING_ARRAY_FORMULA && (A === 1 && !c && (c = !0, n ? u += P : this._progressService.insertTaskCount(P)), n ? this._arrayFormulaCalculationDoneCount = A : t(A)), this._executionInProgressParams = d.stageInfo;
13365
13294
  } else {
13366
13295
  const s = d.functionsExecutedState;
13367
13296
  let l = "";
@@ -13398,7 +13327,8 @@ let it = class extends re {
13398
13327
  dirtyNameMap: {},
13399
13328
  dirtyDefinedNameMap: {},
13400
13329
  dirtyUnitFeatureMap: {},
13401
- dirtyUnitOtherFormulaMap: {}
13330
+ dirtyUnitOtherFormulaMap: {},
13331
+ forceCalculation: !1
13402
13332
  };
13403
13333
  }
13404
13334
  _initialExecuteFormula() {
@@ -13443,12 +13373,12 @@ let it = class extends re {
13443
13373
  }
13444
13374
  };
13445
13375
  it = xm([
13446
- Le(Ae.Ready, it),
13376
+ Le(Pe.Ready, it),
13447
13377
  Qe(0, le),
13448
13378
  Qe(1, bn),
13449
- Qe(2, U(fr)),
13379
+ Qe(2, U(lr)),
13450
13380
  Qe(3, U(Ge)),
13451
- Qe(4, U(to))
13381
+ Qe(4, U(ao))
13452
13382
  ], it);
13453
13383
  function vm(a, e, t) {
13454
13384
  var n;
@@ -13491,18 +13421,18 @@ function Fm(a, e) {
13491
13421
  subUnitId: m,
13492
13422
  unitId: i,
13493
13423
  cellValue: d.clone()
13494
- }, A = {
13424
+ }, P = {
13495
13425
  id: pe.id,
13496
13426
  params: l
13497
13427
  };
13498
- n.push(A);
13499
- const P = {
13428
+ n.push(P);
13429
+ const A = {
13500
13430
  subUnitId: m,
13501
13431
  unitId: i,
13502
13432
  cellValue: s.clone()
13503
13433
  }, S = {
13504
13434
  id: pe.id,
13505
- params: P
13435
+ params: A
13506
13436
  };
13507
13437
  t.push(S);
13508
13438
  });
@@ -13548,8 +13478,8 @@ function Um(a, e, t) {
13548
13478
  redoFormulaData: n,
13549
13479
  undoFormulaData: i
13550
13480
  };
13551
- const s = a[u][m], l = e[u][m], A = new z(s || {}), P = new z(l || {}), S = Bm(A, o, f, d, c);
13552
- return n = Zm(S, A, P), i = Jm(S, A), {
13481
+ const s = a[u][m], l = e[u][m], P = new z(s || {}), A = new z(l || {}), S = Bm(P, o, f, d, c);
13482
+ return n = Zm(S, P, A), i = Jm(S, P), {
13553
13483
  redoFormulaData: n,
13554
13484
  undoFormulaData: i
13555
13485
  };
@@ -13558,7 +13488,7 @@ function Bm(a, e, t, n, i) {
13558
13488
  const o = [];
13559
13489
  return a.forValue((u, m, c) => {
13560
13490
  if (c == null || !ec(c)) return !0;
13561
- const f = pi(u, m);
13491
+ const f = Pi(u, m);
13562
13492
  let d = null, s = !1;
13563
13493
  if ([
13564
13494
  0,
@@ -13592,10 +13522,10 @@ function Hm(a, e, t) {
13592
13522
  let n = null, i = !1;
13593
13523
  switch (a) {
13594
13524
  case 3:
13595
- n = Wm(e, t), i = !0;
13525
+ n = Ym(e, t), i = !0;
13596
13526
  break;
13597
13527
  case 4:
13598
- n = Ym(e, t), i = !0;
13528
+ n = Wm(e, t), i = !0;
13599
13529
  break;
13600
13530
  case 5:
13601
13531
  n = Km(e, t);
@@ -13648,7 +13578,7 @@ function Xm(a, e, t) {
13648
13578
  );
13649
13579
  return $(n, t);
13650
13580
  }
13651
- function Wm(a, e) {
13581
+ function Ym(a, e) {
13652
13582
  const t = ha(
13653
13583
  {
13654
13584
  id: k.InsertRowCommandId,
@@ -13658,7 +13588,7 @@ function Wm(a, e) {
13658
13588
  );
13659
13589
  return $(t, e);
13660
13590
  }
13661
- function Ym(a, e) {
13591
+ function Wm(a, e) {
13662
13592
  const t = _a(
13663
13593
  {
13664
13594
  id: k.InsertColCommandId,
@@ -13902,43 +13832,43 @@ let rt = class extends re {
13902
13832
  const { id: e } = a;
13903
13833
  let t = null;
13904
13834
  switch (e) {
13905
- case Rr.id:
13835
+ case Cr.id:
13906
13836
  t = this._handleMoveRange(a);
13907
13837
  break;
13908
- case Ir.id:
13838
+ case Nr.id:
13909
13839
  t = this._handleMoveRows(a);
13910
13840
  break;
13911
- case Tr.id:
13841
+ case Rr.id:
13912
13842
  t = this._handleMoveCols(a);
13913
13843
  break;
13914
- case Er.id:
13844
+ case Ir.id:
13915
13845
  t = this._handleInsertRow(a);
13916
13846
  break;
13917
- case Sr.id:
13847
+ case Tr.id:
13918
13848
  t = this._handleInsertCol(a);
13919
13849
  break;
13920
- case br.id:
13850
+ case Er.id:
13921
13851
  t = this._handleInsertRangeMoveRight(a);
13922
13852
  break;
13923
- case Pr.id:
13853
+ case Sr.id:
13924
13854
  t = this._handleInsertRangeMoveDown(a);
13925
13855
  break;
13926
- case Ar.id:
13856
+ case br.id:
13927
13857
  t = this._handleRemoveRow(a);
13928
13858
  break;
13929
- case Lr.id:
13859
+ case Ar.id:
13930
13860
  t = this._handleRemoveCol(a);
13931
13861
  break;
13932
- case pr.id:
13862
+ case Pr.id:
13933
13863
  t = this._handleDeleteRangeMoveUp(a);
13934
13864
  break;
13935
- case dr.id:
13865
+ case Lr.id:
13936
13866
  t = this._handleDeleteRangeMoveLeft(a);
13937
13867
  break;
13938
- case lr.id:
13868
+ case pr.id:
13939
13869
  t = this._handleSetWorksheetName(a);
13940
13870
  break;
13941
- case sr.id:
13871
+ case dr.id:
13942
13872
  t = this._handleRemoveWorksheet(a);
13943
13873
  break;
13944
13874
  }
@@ -13985,13 +13915,13 @@ let rt = class extends re {
13985
13915
  startColumn: 0,
13986
13916
  endRow: n,
13987
13917
  endColumn: c.getColumnCount() - 1,
13988
- rangeType: ce.ROW
13918
+ rangeType: fe.ROW
13989
13919
  }, s = {
13990
13920
  startRow: i,
13991
13921
  startColumn: 0,
13992
13922
  endRow: o,
13993
13923
  endColumn: c.getColumnCount() - 1,
13994
- rangeType: ce.ROW
13924
+ rangeType: fe.ROW
13995
13925
  };
13996
13926
  return {
13997
13927
  type: 1,
@@ -14014,13 +13944,13 @@ let rt = class extends re {
14014
13944
  startColumn: t,
14015
13945
  endRow: c.getRowCount() - 1,
14016
13946
  endColumn: n,
14017
- rangeType: ce.COLUMN
13947
+ rangeType: fe.COLUMN
14018
13948
  }, s = {
14019
13949
  startRow: 0,
14020
13950
  startColumn: i,
14021
13951
  endRow: c.getRowCount() - 1,
14022
13952
  endColumn: o,
14023
- rangeType: ce.COLUMN
13953
+ rangeType: fe.COLUMN
14024
13954
  };
14025
13955
  return {
14026
13956
  type: 2,
@@ -14153,10 +14083,10 @@ let rt = class extends re {
14153
14083
  ie.isDefine(i[u]) || (i[u] = {}), ie.isDefine(o[u]) || (o[u] = {});
14154
14084
  for (const f of c) {
14155
14085
  const d = new z(m[f] || {}), s = new z();
14156
- d.forValue((l, A, P) => {
14086
+ d.forValue((l, P, A) => {
14157
14087
  var C;
14158
- if (!P) return !0;
14159
- const { f: S, x: p, y: N, si: I } = P, L = this._lexerTreeBuilder.sequenceNodesBuilder(S);
14088
+ if (!A) return !0;
14089
+ const { f: S, x: p, y: N, si: I } = A, L = this._lexerTreeBuilder.sequenceNodesBuilder(S);
14160
14090
  if (L == null)
14161
14091
  return !0;
14162
14092
  let h = !1;
@@ -14165,7 +14095,7 @@ let rt = class extends re {
14165
14095
  const F = L[y];
14166
14096
  if (typeof F == "string" || F.nodeType !== ue.REFERENCE)
14167
14097
  continue;
14168
- const { token: E } = F, D = De(E), { range: Z, sheetName: Y, unitId: Q } = D, be = Q == null || Q.length === 0 ? u : Q, ne = (C = e == null ? void 0 : e[be]) == null ? void 0 : C[Y];
14098
+ const { token: E } = F, D = De(E), { range: Z, sheetName: W, unitId: Q } = D, be = Q == null || Q.length === 0 ? u : Q, ne = (C = e == null ? void 0 : e[be]) == null ? void 0 : C[W];
14169
14099
  if (!this._checkIsSameUnitAndSheet(
14170
14100
  t.unitId,
14171
14101
  t.sheetId,
@@ -14179,14 +14109,14 @@ let rt = class extends re {
14179
14109
  range: Z,
14180
14110
  sheetId: ne,
14181
14111
  unitId: Q,
14182
- sheetName: Y,
14112
+ sheetName: W,
14183
14113
  refOffsetX: p || 0,
14184
14114
  refOffsetY: N || 0
14185
14115
  };
14186
14116
  let se = null;
14187
14117
  if (t.type === 11) {
14188
14118
  const {
14189
- unitId: Ye,
14119
+ unitId: We,
14190
14120
  sheetId: Ke,
14191
14121
  sheetName: ke
14192
14122
  } = t;
@@ -14199,7 +14129,7 @@ let rt = class extends re {
14199
14129
  });
14200
14130
  } else if (t.type === 12) {
14201
14131
  const {
14202
- unitId: Ye,
14132
+ unitId: We,
14203
14133
  sheetId: Ke,
14204
14134
  sheetName: ke
14205
14135
  } = t;
@@ -14221,9 +14151,9 @@ let rt = class extends re {
14221
14151
  if (!h)
14222
14152
  return !0;
14223
14153
  const x = this._updateRefOffset(L, M, p, N);
14224
- p !== void 0 && p > 0 || N !== void 0 && N > 0 ? s.setValue(l, A, {
14154
+ p !== void 0 && p > 0 || N !== void 0 && N > 0 ? s.setValue(l, P, {
14225
14155
  f: `=${xt(x)}`
14226
- }) : s.setValue(l, A, {
14156
+ }) : s.setValue(l, P, {
14227
14157
  f: `=${xt(x)}`,
14228
14158
  si: I
14229
14159
  });
@@ -14237,8 +14167,8 @@ let rt = class extends re {
14237
14167
  range: d,
14238
14168
  sheetId: s,
14239
14169
  unitId: l,
14240
- sheetName: A,
14241
- refOffsetX: P,
14170
+ sheetName: P,
14171
+ refOffsetX: A,
14242
14172
  refOffsetY: S
14243
14173
  } = a;
14244
14174
  if (!this._checkIsSameUnitAndSheet(
@@ -14250,7 +14180,7 @@ let rt = class extends re {
14250
14180
  s
14251
14181
  ))
14252
14182
  return;
14253
- const p = Ce.moveOffset(d, P, S);
14183
+ const p = Ce.moveOffset(d, A, S);
14254
14184
  let N = null;
14255
14185
  if (i === 0) {
14256
14186
  if (c == null || f == null)
@@ -14410,7 +14340,7 @@ let rt = class extends re {
14410
14340
  if (N != null)
14411
14341
  return Ct({
14412
14342
  range: N,
14413
- sheetName: A,
14343
+ sheetName: P,
14414
14344
  unitId: l
14415
14345
  });
14416
14346
  }
@@ -14433,11 +14363,11 @@ let rt = class extends re {
14433
14363
  i.push(m);
14434
14364
  continue;
14435
14365
  }
14436
- const { token: c } = m, f = De(c), { range: d, sheetName: s, unitId: l } = f, A = Ce.moveOffset(d, t, n);
14366
+ const { token: c } = m, f = De(c), { range: d, sheetName: s, unitId: l } = f, P = Ce.moveOffset(d, t, n);
14437
14367
  i.push({
14438
14368
  ...m,
14439
14369
  token: Ct({
14440
- range: A,
14370
+ range: P,
14441
14371
  unitId: l,
14442
14372
  sheetName: s
14443
14373
  })
@@ -14484,8 +14414,8 @@ let rt = class extends re {
14484
14414
  startRow: d,
14485
14415
  startColumn: s,
14486
14416
  endRow: l,
14487
- endColumn: A,
14488
- rangeType: P = ce.NORMAL
14417
+ endColumn: P,
14418
+ rangeType: A = fe.NORMAL
14489
14419
  } = t, { startRow: S, startColumn: p, endRow: N, endColumn: I } = n, {
14490
14420
  startRow: L,
14491
14421
  endRow: h,
@@ -14532,9 +14462,9 @@ let rt = class extends re {
14532
14462
  else if (f < F)
14533
14463
  E.startColumn = c;
14534
14464
  else if (f >= F && p <= F)
14535
- E.startColumn = A + 1, E.endColumn = f;
14465
+ E.startColumn = P + 1, E.endColumn = f;
14536
14466
  else if (p > F)
14537
- E.endColumn -= A + 1 - v;
14467
+ E.endColumn -= P + 1 - v;
14538
14468
  else
14539
14469
  return;
14540
14470
  else
@@ -14553,7 +14483,7 @@ let rt = class extends re {
14553
14483
  return;
14554
14484
  else
14555
14485
  return;
14556
- else a === 4 ? (E.startRow = u, E.startColumn = c, E.endRow = m, E.endColumn = f) : s <= v && A >= F ? S > y ? E.endRow -= l - d + 1 : N < C && (E.startRow += l - d + 1) : d <= C && l >= y ? p > F ? E.endColumn -= A - s + 1 : I < v && (E.startColumn += A - s + 1) : ((p <= x + 1 && I >= F || p <= v && I >= M - 1) && S <= C && N >= y || (S <= h + 1 && N >= y || S <= C && N >= L - 1) && p <= v && I >= F) && (E.startRow = u, E.startColumn = c, E.endRow = m, E.endColumn = f);
14486
+ else a === 4 ? (E.startRow = u, E.startColumn = c, E.endRow = m, E.endColumn = f) : s <= v && P >= F ? S > y ? E.endRow -= l - d + 1 : N < C && (E.startRow += l - d + 1) : d <= C && l >= y ? p > F ? E.endColumn -= P - s + 1 : I < v && (E.startColumn += P - s + 1) : ((p <= x + 1 && I >= F || p <= v && I >= M - 1) && S <= C && N >= y || (S <= h + 1 && N >= y || S <= C && N >= L - 1) && p <= v && I >= F) && (E.startRow = u, E.startColumn = c, E.endRow = m, E.endColumn = f);
14557
14487
  return E;
14558
14488
  }
14559
14489
  _getCurrentSheetInfo() {
@@ -14566,8 +14496,8 @@ let rt = class extends re {
14566
14496
  }
14567
14497
  };
14568
14498
  rt = ac([
14569
- Le(Ae.Ready, rt),
14570
- Ne(0, Pe),
14499
+ Le(Pe.Ready, rt),
14500
+ Ne(0, Ae),
14571
14501
  Ne(1, le),
14572
14502
  Ne(2, U(lt)),
14573
14503
  Ne(3, U(Ge)),
@@ -14581,7 +14511,7 @@ var ic = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, oc = (a, e
14581
14511
  (u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
14582
14512
  return n && i && ic(e, t, i), i;
14583
14513
  }, uc = (a, e) => (t, n) => e(t, n, a);
14584
- const Dn = "sheets-formula.remote-register-function.service", ii = Wt(Dn);
14514
+ const Dn = "sheets-formula.remote-register-function.service", ii = Yt(Dn);
14585
14515
  let qt = class {
14586
14516
  constructor(a) {
14587
14517
  this._functionService = a;
@@ -14606,7 +14536,7 @@ var cc = Object.defineProperty, fc = Object.getOwnPropertyDescriptor, sc = (a, e
14606
14536
  (u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
14607
14537
  return n && i && cc(e, t, i), i;
14608
14538
  }, It = (a, e) => (t, n) => e(t, n, a);
14609
- const ri = Wt(
14539
+ const ri = Yt(
14610
14540
  "sheets-formula.register-function-service"
14611
14541
  );
14612
14542
  let Ut = class extends re {
@@ -14645,9 +14575,9 @@ let Ut = class extends re {
14645
14575
  };
14646
14576
  Ut = sc([
14647
14577
  It(0, U(we)),
14648
- It(1, U(We)),
14578
+ It(1, U(Ye)),
14649
14579
  It(2, Sn),
14650
- It(3, Ti(ii))
14580
+ It(3, Ai(ii))
14651
14581
  ], Ut);
14652
14582
  var lc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, pc = (a, e, t, n) => {
14653
14583
  for (var i = n > 1 ? void 0 : n ? dc(e, t) : e, o = a.length - 1, u; o >= 0; o--)
@@ -14682,12 +14612,12 @@ let ot = class extends re {
14682
14612
  this.disposeWithMe(
14683
14613
  this._commandService.onCommandExecuted((e, t) => {
14684
14614
  if (!(t != null && t.fromCollab)) {
14685
- if (e.id === Nr.id)
14615
+ if (e.id === hr.id)
14686
14616
  this._unregisterDescriptionsForNotInSheetId(), this._registerDescriptions();
14687
- else if (e.id === Cr.id) {
14617
+ else if (e.id === _r.id) {
14688
14618
  const n = e.params;
14689
14619
  this._registerDescription(n);
14690
- } else if (e.id === hr.id) {
14620
+ } else if (e.id === Or.id) {
14691
14621
  const n = e.params;
14692
14622
  this._unregisterDescription(n);
14693
14623
  } else if (e.id === ln.id) {
@@ -14771,14 +14701,14 @@ let ot = class extends re {
14771
14701
  }
14772
14702
  };
14773
14703
  ot = pc([
14774
- Le(Ae.Rendered, ot),
14775
- Rt(0, We),
14704
+ Le(Pe.Rendered, ot),
14705
+ Rt(0, Ye),
14776
14706
  Rt(1, sa),
14777
- Rt(2, Pe),
14707
+ Rt(2, Ae),
14778
14708
  Rt(3, le)
14779
14709
  ], ot);
14780
- var Lc = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, Pc = (a, e, t, n) => {
14781
- for (var i = n > 1 ? void 0 : n ? Ac(e, t) : e, o = a.length - 1, u; o >= 0; o--)
14710
+ var Lc = Object.defineProperty, Pc = Object.getOwnPropertyDescriptor, Ac = (a, e, t, n) => {
14711
+ for (var i = n > 1 ? void 0 : n ? Pc(e, t) : e, o = a.length - 1, u; o >= 0; o--)
14782
14712
  (u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
14783
14713
  return n && i && Lc(e, t, i), i;
14784
14714
  }, on = (a, e) => (t, n) => e(t, n, a);
@@ -14788,19 +14718,19 @@ let Bt = class extends re {
14788
14718
  }
14789
14719
  registerFormula(a, e) {
14790
14720
  const t = /* @__PURE__ */ new Map(), n = this._lexerTreeBuilder.sequenceNodesBuilder(a), i = new mt(), o = (u) => {
14791
- const m = this._univerInstanceService.getCurrentUnitForType(w.UNIVER_SHEET), c = m.getActiveSheet(), f = m.getUnitId(), d = c == null ? void 0 : c.getSheetId(), s = n == null ? void 0 : n.map((A) => {
14792
- if (typeof A == "object" && A.nodeType === ue.REFERENCE) {
14793
- const P = t.get(A.token);
14794
- if (P.unitId && P.unitId !== f && P.subUnitId && P.subUnitId !== d)
14795
- return A;
14796
- const S = Or(P.range, u);
14721
+ const m = this._univerInstanceService.getCurrentUnitForType(w.UNIVER_SHEET), c = m.getActiveSheet(), f = m.getUnitId(), d = c == null ? void 0 : c.getSheetId(), s = n == null ? void 0 : n.map((P) => {
14722
+ if (typeof P == "object" && P.nodeType === ue.REFERENCE) {
14723
+ const A = t.get(P.token);
14724
+ if (A.unitId && A.unitId !== f && A.subUnitId && A.subUnitId !== d)
14725
+ return P;
14726
+ const S = Dr(A.range, u);
14797
14727
  let p = "";
14798
- return P.unitId && P.sheetName ? p = Wi(P.unitId, P.sheetName, P.range) : P.sheetName ? p = Yi(P.sheetName, P.range) : p = S ? ct(S) : K.ERROR, {
14799
- ...A,
14728
+ return A.unitId && A.sheetName ? p = Ki(A.unitId, A.sheetName, A.range) : A.sheetName ? p = ki(A.sheetName, A.range) : p = S ? ct(S) : K.ERROR, {
14729
+ ...P,
14800
14730
  token: p
14801
14731
  };
14802
14732
  } else
14803
- return A;
14733
+ return P;
14804
14734
  }), l = s && xt(s);
14805
14735
  return e(`=${l}`);
14806
14736
  };
@@ -14809,21 +14739,21 @@ let Bt = class extends re {
14809
14739
  const m = De(u.token), { range: c, unitId: f, sheetName: d } = m, s = f ? this._univerInstanceService.getUniverSheetInstance(f) : this._univerInstanceService.getCurrentUnitForType(w.UNIVER_SHEET), l = d ? s == null ? void 0 : s.getSheetBySheetName(d) : s == null ? void 0 : s.getActiveSheet();
14810
14740
  if (!l)
14811
14741
  return;
14812
- const A = l.getSheetId(), P = {
14742
+ const P = l.getSheetId(), A = {
14813
14743
  unitId: f,
14814
- subUnitId: A,
14744
+ subUnitId: P,
14815
14745
  range: c,
14816
14746
  sheetName: d
14817
14747
  };
14818
- t.set(u.token, P), i.add(this._refRangeService.registerRefRange(c, o, f, A));
14748
+ t.set(u.token, A), i.add(this._refRangeService.registerRefRange(c, o, f, P));
14819
14749
  }
14820
14750
  }), i;
14821
14751
  }
14822
14752
  };
14823
- Bt = Pc([
14824
- on(0, U(_r)),
14753
+ Bt = Ac([
14754
+ on(0, U(Mr)),
14825
14755
  on(1, U(lt)),
14826
- on(2, Pe)
14756
+ on(2, Ae)
14827
14757
  ], Bt);
14828
14758
  var Ze = /* @__PURE__ */ ((a) => (a[a.NOT_REGISTER = 1] = "NOT_REGISTER", a[a.SUCCESS = 2] = "SUCCESS", a[a.WAIT = 3] = "WAIT", a[a.ERROR = 4] = "ERROR", a))(Ze || {}), bc = Object.defineProperty, Sc = Object.getOwnPropertyDescriptor, Ec = (a, e, t, n) => {
14829
14759
  for (var i = n > 1 ? void 0 : n ? Sc(e, t) : e, o = a.length - 1, u; o >= 0; o--)
@@ -14871,7 +14801,7 @@ let Vt = class extends re {
14871
14801
  for (const t in e)
14872
14802
  for (const n in e[t]) {
14873
14803
  const i = e[t][n], o = { unitId: t, subUnitId: n, formulaMap: i };
14874
- this._commandService.executeCommand(Ki.id, o).then(() => {
14804
+ this._commandService.executeCommand($i.id, o).then(() => {
14875
14805
  this._commandService.executeCommand(
14876
14806
  Ot.id,
14877
14807
  { [t]: { [n]: i } }
@@ -14891,12 +14821,12 @@ let Vt = class extends re {
14891
14821
  const f = this._ensureCacheMap(o, c), d = u[c], s = [];
14892
14822
  m[c] = s;
14893
14823
  for (const l in d) {
14894
- const A = d[l];
14824
+ const P = d[l];
14895
14825
  if (f.has(l)) {
14896
- const P = f.get(l);
14897
- P.result = A, P.status = Ze.SUCCESS, P.callbacks.forEach((S) => {
14898
- S(A);
14899
- }), P.callbacks.clear(), s.push(P);
14826
+ const A = f.get(l);
14827
+ A.result = P, A.status = Ze.SUCCESS, A.callbacks.forEach((S) => {
14828
+ S(P);
14829
+ }), A.callbacks.clear(), s.push(A);
14900
14830
  }
14901
14831
  }
14902
14832
  }
@@ -14926,7 +14856,7 @@ let Vt = class extends re {
14926
14856
  subUnitId: t,
14927
14857
  formulaIdList: n
14928
14858
  };
14929
- this._commandService.executeCommand(ki.id, i);
14859
+ this._commandService.executeCommand(ji.id, i);
14930
14860
  const o = this._ensureCacheMap(e, t);
14931
14861
  n.forEach((u) => o.delete(u));
14932
14862
  }
@@ -14965,7 +14895,7 @@ const mn = "SHEET_FORMULA_ALERT", Nc = {
14965
14895
  [K.CONNECT]: "connect",
14966
14896
  [K.NULL]: "null"
14967
14897
  };
14968
- let An = class extends re {
14898
+ let Pn = class extends re {
14969
14899
  constructor(a, e, t, n) {
14970
14900
  super(), this._context = a, this._hoverManagerService = e, this._cellAlertManagerService = t, this._localeService = n, this._init();
14971
14901
  }
@@ -14979,7 +14909,7 @@ let An = class extends re {
14979
14909
  const n = this._context.unit.getActiveSheet();
14980
14910
  if (!n) return;
14981
14911
  const i = n.getCell(a.location.row, a.location.col);
14982
- if (Li(i)) {
14912
+ if (bi(i)) {
14983
14913
  const o = ni(i);
14984
14914
  if (!o)
14985
14915
  return;
@@ -14987,7 +14917,7 @@ let An = class extends re {
14987
14917
  if (m && m.row === a.location.row && m.col === a.location.col && m.subUnitId === a.location.subUnitId && m.unitId === a.location.unitId)
14988
14918
  return;
14989
14919
  this._cellAlertManagerService.showAlert({
14990
- type: wr.ERROR,
14920
+ type: Xr.ERROR,
14991
14921
  title: this._localeService.t("formula.error.title"),
14992
14922
  message: this._localeService.t(`formula.error.${Nc[o]}`),
14993
14923
  location: a.location,
@@ -15002,11 +14932,11 @@ let An = class extends re {
15002
14932
  }));
15003
14933
  }
15004
14934
  };
15005
- An = Rc([
15006
- un(1, U(Gr)),
15007
- un(2, U(Xr)),
14935
+ Pn = Rc([
14936
+ un(1, U(Yr)),
14937
+ un(2, U(Wr)),
15008
14938
  un(3, U(we))
15009
- ], An);
14939
+ ], Pn);
15010
14940
  var Cc = Object.defineProperty, hc = Object.getOwnPropertyDescriptor, _c = (a, e, t, n) => {
15011
14941
  for (var i = n > 1 ? void 0 : n ? hc(e, t) : e, o = a.length - 1, u; o >= 0; o--)
15012
14942
  (u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
@@ -15018,13 +14948,13 @@ const Mc = {
15018
14948
  color: "#409f11"
15019
14949
  }
15020
14950
  };
15021
- let ut = class extends Ai {
14951
+ let ut = class extends Si {
15022
14952
  constructor(a) {
15023
14953
  super(), this._sheetInterceptorService = a, this._init();
15024
14954
  }
15025
14955
  _init() {
15026
14956
  this.disposeWithMe(this._sheetInterceptorService.intercept(
15027
- Aa.CELL_CONTENT,
14957
+ Pa.CELL_CONTENT,
15028
14958
  {
15029
14959
  handler: (a, e, t) => ni(a) ? t({
15030
14960
  ...a,
@@ -15039,7 +14969,7 @@ let ut = class extends Ai {
15039
14969
  }
15040
14970
  };
15041
14971
  ut = _c([
15042
- Le(Ae.Rendered, ut),
14972
+ Le(Pe.Rendered, ut),
15043
14973
  Oc(0, U(Tn))
15044
14974
  ], ut);
15045
14975
  var Dc = Object.defineProperty, gc = Object.getOwnPropertyDescriptor, xc = (a, e, t, n) => {
@@ -15047,7 +14977,7 @@ var Dc = Object.defineProperty, gc = Object.getOwnPropertyDescriptor, xc = (a, e
15047
14977
  (u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
15048
14978
  return n && i && Dc(e, t, i), i;
15049
14979
  }, Be = (a, e) => (t, n) => e(t, n, a);
15050
- let st = class extends Wr {
14980
+ let st = class extends Kr {
15051
14981
  constructor(e, t, n, i, o, u, m) {
15052
14982
  super(
15053
14983
  t,
@@ -15086,18 +15016,18 @@ let st = class extends Wr {
15086
15016
  const e = this._getSheetObject(), { spreadsheetRowHeader: t, spreadsheetColumnHeader: n, spreadsheet: i, spreadsheetLeftTopPlaceholder: o } = e, { scene: u } = this._context, m = new mt();
15087
15017
  return m.add(i == null ? void 0 : i.onPointerDown$.subscribeEvent((c, f) => {
15088
15018
  var d;
15089
- console.warn("debug start dragging", (d = this._skeleton.worksheet) == null ? void 0 : d.getUnitId()), this._onPointerDown(c, i.zIndex + 1, ce.NORMAL, this._getActiveViewport(c)), c.button !== 2 && f.stopPropagation();
15019
+ console.warn("debug start dragging", (d = this._skeleton.worksheet) == null ? void 0 : d.getUnitId()), this._onPointerDown(c, i.zIndex + 1, fe.NORMAL, this._getActiveViewport(c)), c.button !== 2 && f.stopPropagation();
15090
15020
  })), m.add(
15091
15021
  t == null ? void 0 : t.onPointerDown$.subscribeEvent((c, f) => {
15092
15022
  const d = this._sheetSkeletonManagerService.getCurrent().skeleton, { row: s } = kn(c.offsetX, c.offsetY, u, d);
15093
- $n(this._workbookSelections.getCurrentSelections(), s, ce.ROW) || (this._onPointerDown(c, (i.zIndex || 1) + 1, ce.ROW, this._getActiveViewport(c), Vn.Y), c.button !== 2 && f.stopPropagation());
15023
+ $n(this._workbookSelections.getCurrentSelections(), s, fe.ROW) || (this._onPointerDown(c, (i.zIndex || 1) + 1, fe.ROW, this._getActiveViewport(c), Vn.Y), c.button !== 2 && f.stopPropagation());
15094
15024
  })
15095
15025
  ), m.add(n == null ? void 0 : n.onPointerDown$.subscribeEvent((c, f) => {
15096
15026
  const d = this._sheetSkeletonManagerService.getCurrent().skeleton, { column: s } = kn(c.offsetX, c.offsetY, u, d);
15097
- $n(this._workbookSelections.getCurrentSelections(), s, ce.COLUMN) || (this._onPointerDown(c, (i.zIndex || 1) + 1, ce.COLUMN, this._getActiveViewport(c), Vn.X), c.button !== 2 && f.stopPropagation());
15027
+ $n(this._workbookSelections.getCurrentSelections(), s, fe.COLUMN) || (this._onPointerDown(c, (i.zIndex || 1) + 1, fe.COLUMN, this._getActiveViewport(c), Vn.X), c.button !== 2 && f.stopPropagation());
15098
15028
  })), m.add(o == null ? void 0 : o.onPointerDown$.subscribeEvent((c, f) => {
15099
15029
  this._reset();
15100
- const d = this._sheetSkeletonManagerService.getCurrent().skeleton, s = Yr(d), l = this.attachSelectionWithCoord(s);
15030
+ const d = this._sheetSkeletonManagerService.getCurrent().skeleton, s = kr(d), l = this.attachSelectionWithCoord(s);
15101
15031
  this._addSelectionControlBySelectionData(l), this.refreshSelectionMoveStart(), c.button !== 2 && f.stopPropagation();
15102
15032
  })), m;
15103
15033
  }
@@ -15124,16 +15054,16 @@ let st = class extends Wr {
15124
15054
  this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe((e) => {
15125
15055
  if (!e)
15126
15056
  return;
15127
- const { skeleton: t } = e, { scene: n } = this._context, i = n.getViewport(Qi.VIEW_MAIN);
15057
+ const { skeleton: t } = e, { scene: n } = this._context, i = n.getViewport(Zi.VIEW_MAIN);
15128
15058
  this._changeRuntime(t, n, i);
15129
15059
  }));
15130
15060
  }
15131
15061
  _getActiveViewport(e) {
15132
15062
  const t = this._getSheetObject();
15133
- return t == null ? void 0 : t.scene.getActiveViewportByCoord(zi.FromArray([e.offsetX, e.offsetY]));
15063
+ return t == null ? void 0 : t.scene.getActiveViewportByCoord(Ji.FromArray([e.offsetX, e.offsetY]));
15134
15064
  }
15135
15065
  _getSheetObject() {
15136
- return Kr(this._context.unit, this._context);
15066
+ return $r(this._context.unit, this._context);
15137
15067
  }
15138
15068
  };
15139
15069
  st = xc([
@@ -15145,7 +15075,7 @@ st = xc([
15145
15075
  Be(6, U(Nn))
15146
15076
  ], st);
15147
15077
  function vc(a) {
15148
- const e = Mr(a);
15078
+ const e = gr(a);
15149
15079
  return e.strokeDash = 8, e.hasAutoFill = !1, e.hasRowHeader = !1, e.hasColumnHeader = !1, e;
15150
15080
  }
15151
15081
  function cn(a, e, t) {
@@ -15169,9 +15099,9 @@ var yc = Object.defineProperty, Fc = Object.getOwnPropertyDescriptor, qc = (a, e
15169
15099
  (u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
15170
15100
  return n && i && yc(e, t, i), i;
15171
15101
  }, ae = (a, e) => (t, n) => e(t, n, a);
15172
- const Uc = [bi, Si];
15102
+ const Uc = [Ti, Ii];
15173
15103
  let Mt = class extends re {
15174
- constructor(e, t, n, i, o, u, m, c, f, d, s, l, A, P, S) {
15104
+ constructor(e, t, n, i, o, u, m, c, f, d, s, l, P, A, S) {
15175
15105
  super();
15176
15106
  g(this, "_formulaRefColors", []);
15177
15107
  g(this, "_previousSequenceNodes");
@@ -15190,7 +15120,7 @@ let Mt = class extends re {
15190
15120
  g(this, "_currentlyWorkingRefRenderer", null);
15191
15121
  g(this, "_selectionsChangeDisposables");
15192
15122
  g(this, "_isSelectingMode", !1);
15193
- this._commandService = e, this._contextService = t, this._textSelectionRenderManager = n, this._editorBridgeService = i, this._formulaPromptService = o, this._lexerTreeBuilder = u, this._renderManagerService = m, this._themeService = c, this._sheetsSelectionsService = f, this._refSelectionsService = d, this._univerInstanceService = s, this._descriptionService = l, this._textSelectionManagerService = A, this._contextMenuService = P, this._editorService = S, this._initialize();
15123
+ this._commandService = e, this._contextService = t, this._textSelectionRenderManager = n, this._editorBridgeService = i, this._formulaPromptService = o, this._lexerTreeBuilder = u, this._renderManagerService = m, this._themeService = c, this._sheetsSelectionsService = f, this._refSelectionsService = d, this._univerInstanceService = s, this._descriptionService = l, this._textSelectionManagerService = P, this._contextMenuService = A, this._editorService = S, this._initialize();
15194
15124
  }
15195
15125
  // TODO@wzhudev: selection render service would be a render unit, we we cannot
15196
15126
  // easily access it here.
@@ -15346,15 +15276,15 @@ let Mt = class extends re {
15346
15276
  c.token = e, c.endIndex += m, i[o] = c;
15347
15277
  const f = this._descriptionService.hasDefinedNameDescription(e), d = this._descriptionService.isFormulaDefinedName(e), s = e.length + 1, l = !f || d;
15348
15278
  l && i.splice(o + 1, 0, qe.OPEN_BRACKET);
15349
- for (let P = o + 2, S = i.length; P < S; P++) {
15350
- const p = i[P];
15279
+ for (let A = o + 2, S = i.length; A < S; A++) {
15280
+ const p = i[A];
15351
15281
  if (typeof p == "string")
15352
15282
  continue;
15353
15283
  const N = { ...p };
15354
- N.startIndex += s, N.endIndex += s, i[P] = N;
15284
+ N.startIndex += s, N.endIndex += s, i[A] = N;
15355
15285
  }
15356
- let A = c.endIndex + 1;
15357
- l && (A += 1), this._syncToEditor(i, A, void 0, !0, !1);
15286
+ let P = c.endIndex + 1;
15287
+ l && (P += 1), this._syncToEditor(i, P, void 0, !0, !1);
15358
15288
  })
15359
15289
  );
15360
15290
  }
@@ -15514,21 +15444,21 @@ let Mt = class extends re {
15514
15444
  const d = e[c];
15515
15445
  if (typeof d == "string" || this._descriptionService.hasDefinedNameDescription(d.token.trim()))
15516
15446
  continue;
15517
- const { startIndex: s, endIndex: l, nodeType: A, token: P } = d;
15447
+ const { startIndex: s, endIndex: l, nodeType: P, token: A } = d;
15518
15448
  let S = "";
15519
- if (A === ue.REFERENCE) {
15520
- if (i.has(P))
15521
- S = i.get(P);
15449
+ if (P === ue.REFERENCE) {
15450
+ if (i.has(A))
15451
+ S = i.get(A);
15522
15452
  else {
15523
15453
  const p = o % this._formulaRefColors.length;
15524
- S = this._formulaRefColors[p], i.set(P, S), o++;
15454
+ S = this._formulaRefColors[p], i.set(A, S), o++;
15525
15455
  }
15526
15456
  n.push({
15527
15457
  refIndex: c,
15528
15458
  themeColor: S,
15529
- token: P
15459
+ token: A
15530
15460
  });
15531
- } else A === ue.NUMBER ? S = this._numberColor : A === ue.STRING ? S = this._stringColor : A === ue.ARRAY && (S = this._stringColor);
15461
+ } else P === ue.NUMBER ? S = this._numberColor : P === ue.STRING ? S = this._stringColor : P === ue.ARRAY && (S = this._stringColor);
15532
15462
  S && S.length > 0 && t.push({
15533
15463
  st: s + 1 - u,
15534
15464
  ed: l + 2 - u,
@@ -15553,11 +15483,11 @@ let Mt = class extends re {
15553
15483
  const [n, i] = e.getLocation(), { unitId: o, sheetId: u } = this._getCurrentUnitIdAndSheetId(), m = n === o && i === u, f = this._univerInstanceService.getUniverSheetInstance(n).getSheetBySheetId(i);
15554
15484
  let d = null;
15555
15485
  const s = [];
15556
- for (let l = 0, A = t.length; l < A; l++) {
15557
- const P = t[l], { themeColor: S, token: p, refIndex: N } = P, I = De(p), { unitId: L, sheetName: h, range: M } = I;
15486
+ for (let l = 0, P = t.length; l < P; l++) {
15487
+ const A = t[l], { themeColor: S, token: p, refIndex: N } = A, I = De(p), { unitId: L, sheetName: h, range: M } = I;
15558
15488
  if (!m && (!L || !h))
15559
15489
  continue;
15560
- const x = Dr(M, f.getRowCount(), f.getColumnCount());
15490
+ const x = xr(M, f.getRowCount(), f.getColumnCount());
15561
15491
  if (L != null && L.length > 0 && n !== L)
15562
15492
  continue;
15563
15493
  const C = this._getSheetIdByName(n, h.trim());
@@ -15568,7 +15498,7 @@ let Mt = class extends re {
15568
15498
  d = y;
15569
15499
  continue;
15570
15500
  }
15571
- const v = gr(x, f);
15501
+ const v = vr(x, f);
15572
15502
  !Ce.equals(v, x) && x.startRow === x.endRow && x.startColumn === x.endColumn && (x.startRow = v.startRow, x.endRow = v.endRow, x.startColumn = v.startColumn, x.endColumn = v.endColumn), s.push({
15573
15503
  range: x,
15574
15504
  primary: v,
@@ -15580,8 +15510,8 @@ let Mt = class extends re {
15580
15510
  _getPrimary(e, t, n) {
15581
15511
  var s;
15582
15512
  const i = (s = this._insertSelections.find((l) => {
15583
- const { startRow: A, startColumn: P, endRow: S, endColumn: p } = l.range;
15584
- return A === e.startRow && P === e.startColumn && S === e.endRow && p === e.endColumn || A === e.startRow && P === e.startColumn && e.startRow === e.endRow && e.startColumn === e.endColumn;
15513
+ const { startRow: P, startColumn: A, endRow: S, endColumn: p } = l.range;
15514
+ return P === e.startRow && A === e.startColumn && S === e.endRow && p === e.endColumn || P === e.startRow && A === e.startColumn && e.startRow === e.endRow && e.startColumn === e.endColumn;
15585
15515
  })) == null ? void 0 : s.primary;
15586
15516
  if (i == null)
15587
15517
  return;
@@ -15602,7 +15532,7 @@ let Mt = class extends re {
15602
15532
  _getSheetIdByName(e, t) {
15603
15533
  var i;
15604
15534
  const n = this._univerInstanceService.getUniverSheetInstance(e);
15605
- return (i = n == null ? void 0 : n.getSheetBySheetName($i(t))) == null ? void 0 : i.getSheetId();
15535
+ return (i = n == null ? void 0 : n.getSheetBySheetName(Qi(t))) == null ? void 0 : i.getSheetId();
15606
15536
  }
15607
15537
  _getSheetNameById(e, t) {
15608
15538
  var o;
@@ -15639,8 +15569,8 @@ let Mt = class extends re {
15639
15569
  const { unitId: i, sheetId: o } = e.range, { openUnitId: u, openSheetId: m } = this._getEditorOpenedForSheet();
15640
15570
  i !== u && i && (t = i), o !== m && i && o && (n = this._getSheetNameById(i, o));
15641
15571
  const { range: c, primary: f } = e;
15642
- let { startRow: d, endRow: s, startColumn: l, endColumn: A } = c;
15643
- const { startAbsoluteRefType: P, endAbsoluteRefType: S, rangeType: p } = c;
15572
+ let { startRow: d, endRow: s, startColumn: l, endColumn: P } = c;
15573
+ const { startAbsoluteRefType: A, endAbsoluteRefType: S, rangeType: p } = c;
15644
15574
  if (f) {
15645
15575
  const {
15646
15576
  isMerged: N,
@@ -15650,7 +15580,7 @@ let Mt = class extends re {
15650
15580
  startColumn: M,
15651
15581
  endColumn: x
15652
15582
  } = f;
15653
- (N || I) && L === d && M === l && h === s && x === A && (d = L, l = M, s = L, A = M);
15583
+ (N || I) && L === d && M === l && h === s && x === P && (d = L, l = M, s = L, P = M);
15654
15584
  }
15655
15585
  return Ct({
15656
15586
  sheetName: n,
@@ -15659,9 +15589,9 @@ let Mt = class extends re {
15659
15589
  startRow: d,
15660
15590
  endRow: s,
15661
15591
  startColumn: l,
15662
- endColumn: A,
15592
+ endColumn: P,
15663
15593
  rangeType: p,
15664
- startAbsoluteRefType: P,
15594
+ startAbsoluteRefType: A,
15665
15595
  endAbsoluteRefType: S
15666
15596
  }
15667
15597
  });
@@ -15683,17 +15613,17 @@ let Mt = class extends re {
15683
15613
  this._currentInsertRefStringIndex = t, n == null && (n = this._univerInstanceService.getCurrentUniverDocInstance().getUnitId()), this._fitEditorSize();
15684
15614
  const l = this._editorService.getEditor(n);
15685
15615
  l != null && l.isSingleChoice() ? (u = u.split(",")[0], this._selectionRenderService.setSingleSelectionEnabled(!0)) : this._selectionRenderService.setSingleSelectionEnabled(!1);
15686
- let A = u, P = 1;
15687
- (!l || !l.onlyInputRange()) && (A = `${zt.EQUALS}${u}`, P = 0), i ? (this._commandService.executeCommand(Lo.id, {
15616
+ let P = u, A = 1;
15617
+ (!l || !l.onlyInputRange()) && (P = `${zt.EQUALS}${u}`, A = 0), i ? (this._commandService.executeCommand(Lo.id, {
15688
15618
  unitId: n,
15689
15619
  body: {
15690
- dataStream: A,
15620
+ dataStream: P,
15691
15621
  textRuns: m
15692
15622
  },
15693
15623
  textRanges: [
15694
15624
  {
15695
- startOffset: t + 1 - P,
15696
- endOffset: t + 1 - P,
15625
+ startOffset: t + 1 - A,
15626
+ endOffset: t + 1 - A,
15697
15627
  collapsed: d,
15698
15628
  style: s
15699
15629
  }
@@ -15702,15 +15632,15 @@ let Mt = class extends re {
15702
15632
  options: { fromSelection: o }
15703
15633
  }), this._textSelectionManagerService.replaceTextRanges([
15704
15634
  {
15705
- startOffset: t + 1 - P,
15706
- endOffset: t + 1 - P,
15635
+ startOffset: t + 1 - A,
15636
+ endOffset: t + 1 - A,
15707
15637
  style: s
15708
15638
  }
15709
- ], !0, { fromSelection: o })) : (this._updateEditorModel(`${A}\r
15639
+ ], !0, { fromSelection: o })) : (this._updateEditorModel(`${P}\r
15710
15640
  `, m), this._textSelectionManagerService.replaceTextRanges([
15711
15641
  {
15712
- startOffset: t + 1 - P,
15713
- endOffset: t + 1 - P,
15642
+ startOffset: t + 1 - A,
15643
+ endOffset: t + 1 - A,
15714
15644
  style: s
15715
15645
  }
15716
15646
  ], !0, { fromSelection: o })), setTimeout(() => {
@@ -15719,7 +15649,7 @@ let Mt = class extends re {
15719
15649
  }
15720
15650
  _fitEditorSize() {
15721
15651
  const t = this._univerInstanceService.getCurrentUniverDocInstance().getUnitId();
15722
- this._editorService.isEditor(t) && !this._editorService.isSheetEditor(t) || this._commandService.executeCommand(no.id, {
15652
+ this._editorService.isEditor(t) && !this._editorService.isSheetEditor(t) || this._commandService.executeCommand(io.id, {
15723
15653
  unitId: t
15724
15654
  });
15725
15655
  }
@@ -15733,7 +15663,7 @@ let Mt = class extends re {
15733
15663
  const n = this._univerInstanceService.getCurrentUniverDocInstance(), i = n.getUnitId();
15734
15664
  if (!this._editorService.isEditor(i))
15735
15665
  return;
15736
- const o = (c = this._renderManagerService.getRenderById(i)) == null ? void 0 : c.with(Ao).getViewModel();
15666
+ const o = (c = this._renderManagerService.getRenderById(i)) == null ? void 0 : c.with(Po).getViewModel();
15737
15667
  if (o == null || n == null)
15738
15668
  return;
15739
15669
  const u = n == null ? void 0 : n.getSnapshot();
@@ -15778,15 +15708,15 @@ let Mt = class extends re {
15778
15708
  _updateRefSelectionStyle(e, t) {
15779
15709
  const n = e.getSelectionControls(), [i, o] = e.getLocation(), u = /* @__PURE__ */ new Set();
15780
15710
  for (let m = 0, c = t.length; m < c; m++) {
15781
- const f = t[m], { refIndex: d, themeColor: s, token: l } = f, A = De(l), { unitId: P, sheetName: S, range: p } = A;
15782
- if (!P && P.length > 0 && i !== P)
15711
+ const f = t[m], { refIndex: d, themeColor: s, token: l } = f, P = De(l), { unitId: A, sheetName: S, range: p } = P;
15712
+ if (!A && A.length > 0 && i !== A)
15783
15713
  continue;
15784
15714
  const N = this._getSheetIdByName(i, S.trim());
15785
15715
  if (N && N !== o)
15786
15716
  continue;
15787
15717
  const I = n.find((L) => {
15788
15718
  const { startRow: h, startColumn: M, endRow: x, endColumn: C, rangeType: y } = L.getRange();
15789
- return y === ce.COLUMN && M === p.startColumn && C === p.endColumn || y === ce.ROW && h === p.startRow && x === p.endRow || h === p.startRow && M === p.startColumn && x === p.endRow && C === p.endColumn || h === p.startRow && M === p.startColumn && p.startRow === p.endRow && p.startColumn === p.endColumn;
15719
+ return y === fe.COLUMN && M === p.startColumn && C === p.endColumn || y === fe.ROW && h === p.startRow && x === p.endRow || h === p.startRow && M === p.startColumn && x === p.endRow && C === p.endColumn || h === p.startRow && M === p.startColumn && p.startRow === p.endRow && p.startColumn === p.endColumn;
15790
15720
  });
15791
15721
  if (I) {
15792
15722
  const L = cn(this._themeService, s, d.toString());
@@ -15802,7 +15732,7 @@ let Mt = class extends re {
15802
15732
  if (!i || !ie.isStringNumber(i))
15803
15733
  return;
15804
15734
  let { startRow: o, endRow: u, startColumn: m, endColumn: c } = e;
15805
- const f = Pi(o, m, n == null ? void 0 : n.mergeData);
15735
+ const f = Ei(o, m, n == null ? void 0 : n.mergeData);
15806
15736
  if (f) {
15807
15737
  const {
15808
15738
  isMerged: N,
@@ -15818,9 +15748,9 @@ let Mt = class extends re {
15818
15748
  let l = { startAbsoluteRefType: ee.NONE };
15819
15749
  if (typeof s != "string") {
15820
15750
  const N = s.token;
15821
- l = ji(N), l.endAbsoluteRefType == null && (l.endAbsoluteRefType = l.startAbsoluteRefType);
15751
+ l = zi(N), l.endAbsoluteRefType == null && (l.endAbsoluteRefType = l.startAbsoluteRefType);
15822
15752
  }
15823
- const A = this._generateRefString({
15753
+ const P = this._generateRefString({
15824
15754
  range: {
15825
15755
  startRow: Math.min(o, u),
15826
15756
  endRow: Math.max(o, u),
@@ -15831,14 +15761,14 @@ let Mt = class extends re {
15831
15761
  primary: f,
15832
15762
  style: null
15833
15763
  });
15834
- this._formulaPromptService.updateSequenceRef(d, A);
15835
- const P = this._formulaPromptService.getSequenceNodes(), S = P[d];
15836
- typeof S != "string" && (this._syncToEditor(P, S.endIndex + 1), t.update(e, void 0, void 0, void 0, this._selectionRenderService.attachPrimaryWithCoord(f)));
15764
+ this._formulaPromptService.updateSequenceRef(d, P);
15765
+ const A = this._formulaPromptService.getSequenceNodes(), S = A[d];
15766
+ typeof S != "string" && (this._syncToEditor(A, S.endIndex + 1), t.update(e, void 0, void 0, void 0, this._selectionRenderService.attachPrimaryWithCoord(f)));
15837
15767
  }
15838
15768
  _refreshFormulaAndCellEditor(e) {
15839
15769
  var t;
15840
15770
  for (const n of e) {
15841
- const i = kr(n, this._renderManagerService), o = i == null ? void 0 : i.document;
15771
+ const i = jr(n, this._renderManagerService), o = i == null ? void 0 : i.document;
15842
15772
  o != null && ((t = o.getSkeleton()) == null || t.calculate(), o.makeDirty());
15843
15773
  }
15844
15774
  }
@@ -15965,7 +15895,7 @@ let Mt = class extends re {
15965
15895
  if (e == null)
15966
15896
  return;
15967
15897
  let t = X.LEFT;
15968
- e === H.ARROW_DOWN ? t = X.DOWN : e === H.ARROW_UP ? t = X.UP : e === H.ARROW_RIGHT && (t = X.RIGHT), this._commandService.executeCommand(Po.id, {
15898
+ e === H.ARROW_DOWN ? t = X.DOWN : e === H.ARROW_UP ? t = X.UP : e === H.ARROW_RIGHT && (t = X.RIGHT), this._commandService.executeCommand(Ao.id, {
15969
15899
  direction: t
15970
15900
  });
15971
15901
  }
@@ -15990,7 +15920,7 @@ let Mt = class extends re {
15990
15920
  unitId: ""
15991
15921
  });
15992
15922
  const o = this._lexerTreeBuilder.sequenceNodesBuilder(t) || [];
15993
- this._formulaPromptService.setSequenceNodes(o), this._syncToEditor(o, t.length - 1, n);
15923
+ this._formulaPromptService.setSequenceNodes(o), this._syncToEditor(o, t.length - 1, n, !0, !1);
15994
15924
  })
15995
15925
  ), this.disposeWithMe(
15996
15926
  // TODO: unfinished
@@ -15998,6 +15928,9 @@ let Mt = class extends re {
15998
15928
  })
15999
15929
  );
16000
15930
  }
15931
+ /**
15932
+ * Absolute range, triggered by F4
15933
+ */
16001
15934
  _changeRefString() {
16002
15935
  const e = this._textSelectionManagerService.getActiveRange();
16003
15936
  if (e == null)
@@ -16016,8 +15949,8 @@ let Mt = class extends re {
16016
15949
  if (!this._userCursorMove)
16017
15950
  f = this._changeRangeRef(m);
16018
15951
  else {
16019
- const s = m.split(qe.COLON), l = s[0], A = s[1];
16020
- n - o.startIndex <= l.length ? f = this._changeSingleRef(l) + qe.COLON + A : f = l + qe.COLON + this._changeSingleRef(A);
15952
+ const s = m.split(qe.COLON), l = s[0], P = s[1];
15953
+ n - o.startIndex <= l.length ? f = this._changeSingleRef(l) + qe.COLON + P : f = l + qe.COLON + this._changeSingleRef(P);
16021
15954
  }
16022
15955
  else
16023
15956
  f = this._changeSingleRef(m);
@@ -16041,9 +15974,9 @@ let Mt = class extends re {
16041
15974
  }
16042
15975
  };
16043
15976
  Mt = qc([
16044
- Le(Ae.Steady, Mt),
15977
+ Le(Pe.Steady, Mt),
16045
15978
  ae(0, le),
16046
- ae(1, Ei),
15979
+ ae(1, Ri),
16047
15980
  ae(2, La),
16048
15981
  ae(3, U(Fa)),
16049
15982
  ae(4, U(ye)),
@@ -16052,10 +15985,10 @@ Mt = qc([
16052
15985
  ae(7, U(Xt)),
16053
15986
  ae(8, U(In)),
16054
15987
  ae(9, Rn),
16055
- ae(10, Pe),
16056
- ae(11, U(We)),
15988
+ ae(10, Ae),
15989
+ ae(11, U(Ye)),
16057
15990
  ae(12, U(bo)),
16058
- ae(13, ao),
15991
+ ae(13, ro),
16059
15992
  ae(14, Xe)
16060
15993
  ], Mt);
16061
15994
  var oi = Object.defineProperty, Bc = Object.getOwnPropertyDescriptor, Vc = (a, e, t) => e in a ? oi(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, gn = (a, e, t, n) => {
@@ -16063,14 +15996,14 @@ var oi = Object.defineProperty, Bc = Object.getOwnPropertyDescriptor, Vc = (a, e
16063
15996
  (u = a[o]) && (i = (n ? u(e, t, i) : u(i)) || i);
16064
15997
  return n && i && oi(e, t, i), i;
16065
15998
  }, Ht = (a, e) => (t, n) => e(t, n, a), kt = (a, e, t) => Vc(a, typeof e != "symbol" ? e + "" : e, t);
16066
- let wt = class extends Pn {
15999
+ let wt = class extends An {
16067
16000
  constructor(a = {}, e) {
16068
16001
  super(), this._config = a, this._injector = e;
16069
16002
  }
16070
16003
  onStarting(a) {
16071
16004
  a.add([qt]), a.get(fa).registerChannel(
16072
16005
  Dn,
16073
- Ii(a.get(qt))
16006
+ Ni(a.get(qt))
16074
16007
  );
16075
16008
  }
16076
16009
  };
@@ -16080,15 +16013,15 @@ wt = gn([
16080
16013
  ca(pa),
16081
16014
  Ht(1, U(xe))
16082
16015
  ], wt);
16083
- let Gt = class extends Pn {
16016
+ let Gt = class extends An {
16084
16017
  constructor(a = {}, e, t) {
16085
16018
  super(), this._config = a, this._injector = e, this._renderManagerService = t, this._config = ie.deepMerge({}, ai, this._config);
16086
16019
  }
16087
16020
  onStarting() {
16088
16021
  const a = this._injector, e = [
16089
16022
  [ye, { useClass: Xa }],
16090
- [Rn, { useClass: xr }],
16091
- [We, { useFactory: () => {
16023
+ [Rn, { useClass: yr }],
16024
+ [Ye, { useFactory: () => {
16092
16025
  var t;
16093
16026
  return a.createInstance(Ft, (t = this._config) == null ? void 0 : t.description);
16094
16027
  } }],
@@ -16110,7 +16043,7 @@ let Gt = class extends Pn {
16110
16043
  if (this._config.notExecuteFormula) {
16111
16044
  const t = a.get(fa);
16112
16045
  e.push([ii, {
16113
- useFactory: () => Ri(t.requestChannel(Dn))
16046
+ useFactory: () => Ci(t.requestChannel(Dn))
16114
16047
  }]);
16115
16048
  }
16116
16049
  e.forEach((t) => a.add(t));
@@ -16118,7 +16051,7 @@ let Gt = class extends Pn {
16118
16051
  onRendered() {
16119
16052
  [
16120
16053
  [st],
16121
- [An]
16054
+ [Pn]
16122
16055
  ].forEach((a) => {
16123
16056
  this.disposeWithMe(this._renderManagerService.registerRenderModule(w.UNIVER_SHEET, a));
16124
16057
  });
@@ -16132,7 +16065,7 @@ Gt = gn([
16132
16065
  Ht(2, dt)
16133
16066
  ], Gt);
16134
16067
  var Nt;
16135
- let oa = (Nt = class extends Pn {
16068
+ let oa = (Nt = class extends An {
16136
16069
  constructor(a = {}, e) {
16137
16070
  super(), this._config = a, this._injector = e, this._config = ie.deepMerge({}, ai, this._config);
16138
16071
  }
@@ -16144,7 +16077,7 @@ let oa = (Nt = class extends Pn {
16144
16077
  // services
16145
16078
  [ye, { useClass: Xa }],
16146
16079
  [
16147
- We,
16080
+ Ye,
16148
16081
  {
16149
16082
  useFactory: () => {
16150
16083
  var e;
@@ -16172,12 +16105,12 @@ export {
16172
16105
  Ft as DescriptionService,
16173
16106
  Bt as FormulaRefRangeService,
16174
16107
  pn as HelpFunctionOperation,
16175
- We as IDescriptionService,
16108
+ Ye as IDescriptionService,
16176
16109
  ri as IRegisterFunctionService,
16177
16110
  ii as IRemoteRegisterFunctionService,
16178
16111
  Ga as InsertFunctionCommand,
16179
16112
  _n as InsertFunctionOperation,
16180
- Ya as MoreFunctionsOperation,
16113
+ Wa as MoreFunctionsOperation,
16181
16114
  Ot as OtherFormulaMarkDirty,
16182
16115
  On as ReferenceAbsoluteOperation,
16183
16116
  Ut as RegisterFunctionService,