@univerjs/sheets-formula 0.12.3 → 0.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  var en = Object.defineProperty;
2
2
  var tn = (n, e, a) => e in n ? en(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a;
3
3
  var w = (n, e, a) => tn(n, typeof e != "symbol" ? e + "" : e, a);
4
- import { CommandType as wt, ICommandService as re, ObjectMatrix as v, generateRandomId as Yt, IUniverInstanceService as Ee, Rectangle as fe, sequenceExecuteAsync as an, Inject as H, Disposable as z, CellValueType as gt, InterceptorEffectEnum as Ea, createDocumentModelWithStyle as nn, WrapTextType as rn, PositionedObjectLayoutType as on, BooleanNumber as un, ObjectRelativeFromV as mn, ObjectRelativeFromH as fn, ImageSourceType as cn, DrawingTypeEnum as ln, BuildTextUtils as sn, LifecycleService as dn, ILogService as pn, IConfigService as be, LocaleService as Xt, isFormulaString as ye, isFormulaId as Ia, cellToRange as Na, Tools as Ke, Direction as Qe, getIntersectRange as ke, RANGE_TYPE as W, UniverInstanceType as j, Injector as st, isRealNum as Ln, createIdentifier as Wt, toDisposable as ee, moveRangeByOffset as ht, DisposableCollection as $e, AbsoluteRefType as je, Optional as Pn, DependentOn as Ra, Plugin as Sa, merge as Aa, touchDependencies as ve, isNodeEnv as $t } from "@univerjs/core";
5
- import { SetRangeValuesCommand as Ca, SheetsSelectionsService as Tn, getSheetCommandTarget as En, findFirstNonEmptyCell as In, alignToMergedCellsBorders as Rt, expandToContinuousRange as Nn, SetSelectionsOperation as Rn, SheetInterceptorService as dt, INTERCEPTOR_POINT as Da, SetRangeValuesMutation as Q, SetStyleCommand as Kt, SetBorderCommand as ba, ClearSelectionFormatCommand as Oa, handleMoveCols as Ma, EffectRefRangId as Y, runRefRangeMutations as X, handleMoveRows as xa, handleMoveRange as _a, handleInsertRangeMoveRight as ya, handleInsertRangeMoveDown as ga, handleDeleteRangeMoveUp as ha, handleDeleteRangeMoveLeft as qa, handleIRemoveCol as Ua, handleIRemoveRow as Fa, handleInsertCol as Ba, handleInsertRow as va, RemoveDefinedNameCommand as Va, SetDefinedNameCommand as Ga, RemoveSheetCommand as Sn, SetWorksheetNameCommand as An, DeleteRangeMoveLeftCommand as Cn, DeleteRangeMoveUpCommand as Dn, RemoveColCommand as bn, RemoveRowCommand as On, InsertRangeMoveDownCommand as Mn, InsertRangeMoveRightCommand as xn, InsertColCommand as _n, InsertRowCommand as yn, MoveColsCommand as gn, MoveRowsCommand as hn, MoveRangeCommand as qn, RemoveSheetMutation as qt, InsertSheetMutation as Ut, MoveRangeMutation as jt, MoveRowsMutation as zt, MoveColsMutation as Zt, ReorderRangeMutation as Jt, RemoveRowMutation as ea, RemoveColMutation as ta, InsertColMutation as aa, InsertRowMutation as na, SetRowHiddenMutation as ia, SetRowVisibleMutation as ra, SetWorksheetActiveOperation as Ha, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as St, RefRangeService as Un, handleDefaultRangeChangeWithEffectRefCommands as oa, getSeparateEffectedRangesOnCommand as Fn, handleCommonDefaultRangeChangeWithEffectRefCommands as Bn, UniverSheetsPlugin as vn } from "@univerjs/sheets";
6
- import { serializeRange as Ce, FormulaDataModel as qe, ErrorType as k, SetImageFormulaDataMutation as Vn, IActiveDirtyManagerService as kt, SetFormulaCalculationResultMutation as wa, RemoveOtherFormulaMutation as Gn, SetOtherFormulaMutation as Hn, SetFormulaCalculationStartMutation as Ne, SetFormulaCalculationStopMutation as ua, ENGINE_FORMULA_CYCLE_REFERENCE_COUNT as ma, SetFormulaCalculationNotificationMutation as wn, FormulaExecuteStageType as Ve, FormulaExecutedStateType as Me, sequenceNodeType as ie, deserializeRangeWithSheetWithCache as Pe, serializeRangeToRefString as pt, IDefinedNamesService as Lt, LexerTreeBuilder as Pt, generateStringWithSequence as ze, SetDefinedNameMutation as De, SetFormulaDataMutation as Ge, SetArrayFormulaDataMutation as Ft, initSheetFormulaData as fa, RemoveDefinedNameMutation as Bt, IFunctionService as Tt, stripErrorMargin as Yn, FunctionType as t, FUNCTION_NAMES_ARRAY as ca, FUNCTION_NAMES_COMPATIBILITY as _, FUNCTION_NAMES_CUBE as de, FUNCTION_NAMES_DATABASE as $, FUNCTION_NAMES_DATE as V, FUNCTION_NAMES_ENGINEERING as C, FUNCTION_NAMES_FINANCIAL as D, FUNCTION_NAMES_INFORMATION as G, FUNCTION_NAMES_LOGICAL as K, FUNCTION_NAMES_LOOKUP as g, FUNCTION_NAMES_MATH as E, FUNCTION_NAMES_STATISTICAL as s, FUNCTION_NAMES_TEXT as b, FUNCTION_NAMES_WEB as At, isReferenceStrings as Xn, functionArray as Wn, functionCompatibility as Kn, functionCube as kn, functionDatabase as Qn, functionDate as $n, functionEngineering as jn, functionFinancial as zn, functionInformation as Zn, functionLogical as Jn, functionLookup as ei, functionMath as ti, functionMeta as ai, functionStatistical as ni, functionText as ii, functionUniver as ri, functionWeb as oi, SetSuperTableMutation as ui, RemoveSuperTableMutation as mi, serializeRangeWithSheet as Ze, ISuperTableService as fi, serializeRangeWithSpreadsheet as la, CustomFunction as vt, AsyncCustomFunction as Ya, UniverFormulaEnginePlugin as Xa, IFormulaCurrentConfigService as ci, Lexer as li, AstTreeBuilder as si, Interpreter as di, generateExecuteAstNodeData as pi, getObjectValue as Li } from "@univerjs/engine-formula";
7
- import { Subject as sa, BehaviorSubject as Wa, bufferWhen as Pi, filter as da, map as Ti } from "rxjs";
8
- import { IRPCChannelService as Ka, fromModule as Ei, toModule as Ii } from "@univerjs/rpc";
9
- const Ni = {
4
+ import { CommandType as Yt, ICommandService as re, ObjectMatrix as v, generateRandomId as Xt, IUniverInstanceService as Ee, Rectangle as fe, sequenceExecuteAsync as an, Inject as H, Disposable as z, CellValueType as gt, createDocumentModelWithStyle as nn, WrapTextType as rn, PositionedObjectLayoutType as on, BooleanNumber as un, ObjectRelativeFromV as mn, ObjectRelativeFromH as fn, ImageSourceType as cn, DrawingTypeEnum as ln, BuildTextUtils as sn, InterceptorEffectEnum as ht, LifecycleService as dn, ILogService as pn, IConfigService as be, LocaleService as Wt, isFormulaString as ye, isFormulaId as Ia, cellToRange as Na, Tools as Ke, Direction as Qe, getIntersectRange as ke, RANGE_TYPE as W, UniverInstanceType as j, Injector as st, isRealNum as Ln, createIdentifier as Kt, toDisposable as ee, moveRangeByOffset as qt, DisposableCollection as $e, AbsoluteRefType as je, Optional as Pn, DependentOn as Ra, Plugin as Sa, merge as Aa, touchDependencies as ve, isNodeEnv as jt } from "@univerjs/core";
5
+ import { SetRangeValuesCommand as Ca, SheetsSelectionsService as Tn, getSheetCommandTarget as En, findFirstNonEmptyCell as In, alignToMergedCellsBorders as Rt, expandToContinuousRange as Nn, SetSelectionsOperation as Rn, SheetInterceptorService as dt, INTERCEPTOR_POINT as Da, InterceptCellContentPriority as Sn, SetRangeValuesMutation as Q, SetStyleCommand as kt, SetBorderCommand as ba, ClearSelectionFormatCommand as Oa, handleMoveCols as Ma, EffectRefRangId as Y, runRefRangeMutations as X, handleMoveRows as xa, handleMoveRange as _a, handleInsertRangeMoveRight as ya, handleInsertRangeMoveDown as ga, handleDeleteRangeMoveUp as ha, handleDeleteRangeMoveLeft as qa, handleIRemoveCol as Ua, handleIRemoveRow as Fa, handleInsertCol as Ba, handleInsertRow as va, RemoveDefinedNameCommand as Va, SetDefinedNameCommand as Ga, RemoveSheetCommand as An, SetWorksheetNameCommand as Cn, DeleteRangeMoveLeftCommand as Dn, DeleteRangeMoveUpCommand as bn, RemoveColCommand as On, RemoveRowCommand as Mn, InsertRangeMoveDownCommand as xn, InsertRangeMoveRightCommand as _n, InsertColCommand as yn, InsertRowCommand as gn, MoveColsCommand as hn, MoveRowsCommand as qn, MoveRangeCommand as Un, RemoveSheetMutation as Ut, InsertSheetMutation as Ft, MoveRangeMutation as zt, MoveRowsMutation as Zt, MoveColsMutation as Jt, ReorderRangeMutation as ea, RemoveRowMutation as ta, RemoveColMutation as aa, InsertColMutation as na, InsertRowMutation as ia, SetRowHiddenMutation as ra, SetRowVisibleMutation as oa, SetWorksheetActiveOperation as Ha, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as St, RefRangeService as Fn, handleDefaultRangeChangeWithEffectRefCommands as ua, getSeparateEffectedRangesOnCommand as Bn, handleCommonDefaultRangeChangeWithEffectRefCommands as vn, UniverSheetsPlugin as Vn } from "@univerjs/sheets";
6
+ import { serializeRange as Ce, FormulaDataModel as qe, ErrorType as k, SetImageFormulaDataMutation as Gn, IActiveDirtyManagerService as Qt, SetFormulaCalculationResultMutation as wa, RemoveOtherFormulaMutation as Hn, SetOtherFormulaMutation as wn, SetFormulaCalculationStartMutation as Ne, SetFormulaCalculationStopMutation as ma, ENGINE_FORMULA_CYCLE_REFERENCE_COUNT as fa, SetFormulaCalculationNotificationMutation as Yn, FormulaExecuteStageType as Ve, FormulaExecutedStateType as Me, sequenceNodeType as ie, deserializeRangeWithSheetWithCache as Pe, serializeRangeToRefString as pt, IDefinedNamesService as Lt, LexerTreeBuilder as Pt, generateStringWithSequence as ze, SetDefinedNameMutation as De, SetFormulaDataMutation as Ge, SetArrayFormulaDataMutation as Bt, initSheetFormulaData as ca, RemoveDefinedNameMutation as vt, IFunctionService as Tt, stripErrorMargin as Xn, FunctionType as t, FUNCTION_NAMES_ARRAY as la, FUNCTION_NAMES_COMPATIBILITY as _, FUNCTION_NAMES_CUBE as de, FUNCTION_NAMES_DATABASE as $, FUNCTION_NAMES_DATE as V, FUNCTION_NAMES_ENGINEERING as C, FUNCTION_NAMES_FINANCIAL as D, FUNCTION_NAMES_INFORMATION as G, FUNCTION_NAMES_LOGICAL as K, FUNCTION_NAMES_LOOKUP as g, FUNCTION_NAMES_MATH as E, FUNCTION_NAMES_STATISTICAL as s, FUNCTION_NAMES_TEXT as b, FUNCTION_NAMES_WEB as At, isReferenceStrings as Wn, functionArray as Kn, functionCompatibility as kn, functionCube as Qn, functionDatabase as $n, functionDate as jn, functionEngineering as zn, functionFinancial as Zn, functionInformation as Jn, functionLogical as ei, functionLookup as ti, functionMath as ai, functionMeta as ni, functionStatistical as ii, functionText as ri, functionUniver as oi, functionWeb as ui, SetSuperTableMutation as mi, RemoveSuperTableMutation as fi, serializeRangeWithSheet as Ze, ISuperTableService as ci, serializeRangeWithSpreadsheet as sa, CustomFunction as Vt, AsyncCustomFunction as Ya, UniverFormulaEnginePlugin as Xa, IFormulaCurrentConfigService as li, Lexer as si, AstTreeBuilder as di, Interpreter as pi, generateExecuteAstNodeData as Li, getObjectValue as Pi } from "@univerjs/engine-formula";
7
+ import { Subject as da, BehaviorSubject as Wa, bufferWhen as Ti, filter as pa, map as Ei } from "rxjs";
8
+ import { IRPCChannelService as Ka, fromModule as Ii, toModule as Ni } from "@univerjs/rpc";
9
+ const Ri = {
10
10
  id: "formula.command.insert-function",
11
- type: wt.COMMAND,
11
+ type: Yt.COMMAND,
12
12
  handler: async (n, e) => {
13
13
  const { list: a, listOfRangeHasNumber: i } = e, r = n.get(re), o = new v();
14
14
  a.forEach((f) => {
15
- const { range: m, primary: c, formula: l } = f, { row: p, column: T } = c, L = Yt(6);
15
+ const { range: m, primary: c, formula: l } = f, { row: p, column: T } = c, L = Xt(6);
16
16
  o.setValue(p, T, {
17
17
  f: l,
18
18
  si: L
@@ -34,9 +34,9 @@ const Ni = {
34
34
  };
35
35
  return r.executeCommand(Ca.id, u);
36
36
  }
37
- }, Ri = {
37
+ }, Si = {
38
38
  id: "sheets-formula.command.quick-sum",
39
- type: wt.COMMAND,
39
+ type: Yt.COMMAND,
40
40
  handler: async (n) => {
41
41
  const a = n.get(Tn).getCurrentLastSelection();
42
42
  if (!a) return !1;
@@ -107,16 +107,16 @@ const Ni = {
107
107
  ], T)).result;
108
108
  }
109
109
  }, _e = {
110
- type: wt.MUTATION,
110
+ type: Yt.MUTATION,
111
111
  id: "sheet.mutation.data-validation-formula-mark-dirty",
112
112
  handler() {
113
113
  return !0;
114
114
  }
115
115
  }, Ue = "sheets-formula.base.config";
116
116
  var Te = /* @__PURE__ */ ((n) => (n[n.FORCED = 0] = "FORCED", n[n.WHEN_EMPTY = 1] = "WHEN_EMPTY", n[n.NO_CALCULATION = 2] = "NO_CALCULATION", n))(Te || {});
117
- const pa = {}, Si = "sheets-formula.remote.config", La = {};
118
- var Ai = Object.getOwnPropertyDescriptor, Ci = (n, e, a, i) => {
119
- for (var r = i > 1 ? void 0 : i ? Ai(e, a) : e, o = n.length - 1, u; o >= 0; o--)
117
+ const La = {}, Ai = "sheets-formula.remote.config", Pa = {};
118
+ var Ci = Object.getOwnPropertyDescriptor, Di = (n, e, a, i) => {
119
+ for (var r = i > 1 ? void 0 : i ? Ci(e, a) : e, o = n.length - 1, u; o >= 0; o--)
120
120
  (u = n[o]) && (r = u(r) || r);
121
121
  return r;
122
122
  }, Ct = (n, e) => (a, i) => e(a, i, n);
@@ -136,7 +136,7 @@ let Je = class extends z {
136
136
  _commandExecutedListener() {
137
137
  this.disposeWithMe(
138
138
  this._commandService.onCommandExecuted(async (e) => {
139
- if (e.id === Vn.id) {
139
+ if (e.id === Gn.id) {
140
140
  const a = e.params;
141
141
  if (!a) return;
142
142
  const { imageFormulaData: i } = a;
@@ -156,8 +156,8 @@ let Je = class extends z {
156
156
  _initInterceptorCellContent() {
157
157
  this.disposeWithMe(
158
158
  this._sheetInterceptorService.intercept(Da.CELL_CONTENT, {
159
- priority: 100,
160
- effect: Ea.Value,
159
+ priority: Sn.CELL_IMAGE,
160
+ effect: ht.Value | ht.Style,
161
161
  // eslint-disable-next-line max-lines-per-function
162
162
  handler: (e, a, i) => {
163
163
  var h, M;
@@ -179,7 +179,7 @@ let Je = class extends z {
179
179
  const N = T || I, d = p || A, S = nn("", {}), R = {
180
180
  unitId: r,
181
181
  subUnitId: o,
182
- drawingId: Yt(),
182
+ drawingId: Xt(),
183
183
  drawingType: ln.DRAWING_IMAGE,
184
184
  imageSourceType: cn.URL,
185
185
  source: l,
@@ -224,6 +224,7 @@ let Je = class extends z {
224
224
  }
225
225
  });
226
226
  return P ? (S.apply(P), i({
227
+ ...e,
227
228
  p: S.getSnapshot()
228
229
  })) : i(this._errorValueCell);
229
230
  }
@@ -261,13 +262,13 @@ let Je = class extends z {
261
262
  this._refreshRender = e;
262
263
  }
263
264
  };
264
- Je = Ci([
265
+ Je = Di([
265
266
  Ct(0, re),
266
267
  Ct(1, H(dt)),
267
268
  Ct(2, H(qe))
268
269
  ], Je);
269
- var Re = /* @__PURE__ */ ((n) => (n[n.NOT_REGISTER = 1] = "NOT_REGISTER", n[n.SUCCESS = 2] = "SUCCESS", n[n.WAIT = 3] = "WAIT", n[n.ERROR = 4] = "ERROR", n))(Re || {}), Di = Object.getOwnPropertyDescriptor, bi = (n, e, a, i) => {
270
- for (var r = i > 1 ? void 0 : i ? Di(e, a) : e, o = n.length - 1, u; o >= 0; o--)
270
+ var Re = /* @__PURE__ */ ((n) => (n[n.NOT_REGISTER = 1] = "NOT_REGISTER", n[n.SUCCESS = 2] = "SUCCESS", n[n.WAIT = 3] = "WAIT", n[n.ERROR = 4] = "ERROR", n))(Re || {}), bi = Object.getOwnPropertyDescriptor, Oi = (n, e, a, i) => {
271
+ for (var r = i > 1 ? void 0 : i ? bi(e, a) : e, o = n.length - 1, u; o >= 0; o--)
271
272
  (u = n[o]) && (r = u(r) || r);
272
273
  return r;
273
274
  }, Dt = (n, e) => (a, i) => e(a, i, n);
@@ -275,10 +276,10 @@ let et = class extends z {
275
276
  constructor(e, a, i) {
276
277
  super();
277
278
  w(this, "_formulaCacheMap", /* @__PURE__ */ new Map());
278
- w(this, "_formulaChangeWithRange$", new sa());
279
+ w(this, "_formulaChangeWithRange$", new da());
279
280
  w(this, "formulaChangeWithRange$", this._formulaChangeWithRange$.asObservable());
280
281
  // FIXME: this design could be improved.
281
- w(this, "_formulaResult$", new sa());
282
+ w(this, "_formulaResult$", new da());
282
283
  w(this, "formulaResult$", this._formulaResult$.asObservable());
283
284
  w(this, "calculateStarted$", new Wa(!1));
284
285
  this._commandService = e, this._activeDirtyManagerService = a, this._lifecycleService = i, this._initFormulaRegister(), this._initFormulaCalculationResultChange();
@@ -293,7 +294,7 @@ let et = class extends z {
293
294
  return r || (r = /* @__PURE__ */ new Map(), i.set(a, r)), r;
294
295
  }
295
296
  _createFormulaId(e, a) {
296
- return `formula.${e}_${a}_${Yt(8)}`;
297
+ return `formula.${e}_${a}_${Xt(8)}`;
297
298
  }
298
299
  _initFormulaRegister() {
299
300
  this._activeDirtyManagerService.register(
@@ -321,7 +322,7 @@ let et = class extends z {
321
322
  }
322
323
  }
323
324
  };
324
- this._commandService.executeCommand(Hn.id, c).then(() => {
325
+ this._commandService.executeCommand(wn.id, c).then(() => {
325
326
  this._commandService.executeCommand(
326
327
  _e.id,
327
328
  { [i]: { [r]: { [u]: !0 } } }
@@ -329,9 +330,9 @@ let et = class extends z {
329
330
  });
330
331
  };
331
332
  this.disposeWithMe(
332
- this._formulaChangeWithRange$.pipe(Pi(() => this.calculateStarted$.pipe(da((a) => a)))).subscribe((a) => a.forEach(e))
333
+ this._formulaChangeWithRange$.pipe(Ti(() => this.calculateStarted$.pipe(pa((a) => a)))).subscribe((a) => a.forEach(e))
333
334
  ), this.disposeWithMe(
334
- this._formulaChangeWithRange$.pipe(da(() => this.calculateStarted$.getValue())).subscribe(e)
335
+ this._formulaChangeWithRange$.pipe(pa(() => this.calculateStarted$.getValue())).subscribe(e)
335
336
  );
336
337
  }
337
338
  _initFormulaCalculationResultChange() {
@@ -387,7 +388,7 @@ let et = class extends z {
387
388
  subUnitId: a,
388
389
  formulaIdList: i
389
390
  };
390
- this._commandService.executeCommand(Gn.id, r);
391
+ this._commandService.executeCommand(Hn.id, r);
391
392
  const o = this._ensureCacheMap(e, a);
392
393
  i.forEach((u) => o.delete(u));
393
394
  }
@@ -410,17 +411,17 @@ let et = class extends z {
410
411
  ));
411
412
  }
412
413
  };
413
- et = bi([
414
+ et = Oi([
414
415
  Dt(0, re),
415
- Dt(1, kt),
416
+ Dt(1, Qt),
416
417
  Dt(2, H(dn))
417
418
  ], et);
418
- var Oi = Object.getOwnPropertyDescriptor, Mi = (n, e, a, i) => {
419
- for (var r = i > 1 ? void 0 : i ? Oi(e, a) : e, o = n.length - 1, u; o >= 0; o--)
419
+ var Mi = Object.getOwnPropertyDescriptor, xi = (n, e, a, i) => {
420
+ for (var r = i > 1 ? void 0 : i ? Mi(e, a) : e, o = n.length - 1, u; o >= 0; o--)
420
421
  (u = n[o]) && (r = u(r) || r);
421
422
  return r;
422
423
  }, pe = (n, e) => (a, i) => e(a, i, n);
423
- const Pa = { done: 0, count: 0 }, bt = { onlyLocal: !0 };
424
+ const Ta = { done: 0, count: 0 }, bt = { onlyLocal: !0 };
424
425
  let ge = class extends z {
425
426
  constructor(e, a, i, r, o, u, f) {
426
427
  super();
@@ -444,7 +445,7 @@ let ge = class extends z {
444
445
  * The mark of forced calculation. If a new mutation triggers dirty area calculation during the forced calculation process, forced calculation is still required.
445
446
  */
446
447
  w(this, "_forceCalculating", !1);
447
- w(this, "_progress$", new Wa(Pa));
448
+ w(this, "_progress$", new Wa(Ta));
448
449
  w(this, "progress$", this._progress$.asObservable());
449
450
  this._commandService = e, this._activeDirtyManagerService = a, this._logService = i, this._configService = r, this._formulaDataModel = o, this._localeService = u, this._registerOtherFormulaService = f, this._commandExecutedListener(), this._initialExecuteFormulaProcessListener(), this._initialExecuteFormula();
450
451
  }
@@ -473,7 +474,7 @@ let ge = class extends z {
473
474
  this._doneCalculationTaskCount = 0, this._totalCalculationTaskCount = 0, this._emitProgress();
474
475
  }
475
476
  dispose() {
476
- super.dispose(), this._progress$.next(Pa), this._progress$.complete(), clearTimeout(this._setTimeoutKey);
477
+ super.dispose(), this._progress$.next(Ta), this._progress$.complete(), clearTimeout(this._setTimeoutKey);
477
478
  }
478
479
  _getCalculationMode() {
479
480
  var a;
@@ -493,12 +494,12 @@ let ge = class extends z {
493
494
  if (this._activeDirtyManagerService.get(e.id)) {
494
495
  if (e.id === Q.id) {
495
496
  const i = e.params;
496
- if (a && a.onlyLocal === !0 || i.trigger === Kt.id || i.trigger === ba.id || i.trigger === Oa.id)
497
+ if (a && a.onlyLocal === !0 || i.trigger === kt.id || i.trigger === ba.id || i.trigger === Oa.id)
497
498
  return;
498
499
  }
499
500
  this._waitingCommandQueue.push(e), clearTimeout(this._setTimeoutKey), this._setTimeoutKey = setTimeout(() => {
500
501
  const i = this._generateDirty(this._waitingCommandQueue);
501
- this._executingDirtyData = this._mergeDirty(this._executingDirtyData, i), this._executionInProgressParams == null ? this._commandService.executeCommand(Ne.id, { ...this._executingDirtyData }, bt) : (this._restartCalculation = !0, this._commandService.executeCommand(ua.id, {})), this._waitingCommandQueue = [];
502
+ this._executingDirtyData = this._mergeDirty(this._executingDirtyData, i), this._executionInProgressParams == null ? this._commandService.executeCommand(Ne.id, { ...this._executingDirtyData }, bt) : (this._restartCalculation = !0, this._commandService.executeCommand(ma.id, {})), this._waitingCommandQueue = [];
502
503
  }, 100);
503
504
  }
504
505
  })
@@ -521,7 +522,7 @@ let ge = class extends z {
521
522
  dirtyUnitOtherFormulaMap: u,
522
523
  forceCalculation: !1,
523
524
  clearDependencyTreeCache: f,
524
- maxIteration: this._configService.getConfig(ma)
525
+ maxIteration: this._configService.getConfig(fa)
525
526
  // numfmtItemMap,
526
527
  };
527
528
  }
@@ -585,8 +586,8 @@ let ge = class extends z {
585
586
  if (i.id === Ne.id) {
586
587
  const { forceCalculation: o = !1 } = i.params;
587
588
  o && (this._forceCalculating = !0);
588
- } else i.id === ua.id && this.clearProgress();
589
- if (i.id !== wn.id)
589
+ } else i.id === ma.id && this.clearProgress();
590
+ if (i.id !== Yn.id)
590
591
  return;
591
592
  const r = i.params;
592
593
  if (r.stageInfo != null) {
@@ -664,20 +665,20 @@ let ge = class extends z {
664
665
  dirtyUnitFeatureMap: {},
665
666
  dirtyUnitOtherFormulaMap: {},
666
667
  clearDependencyTreeCache: {},
667
- maxIteration: this._configService.getConfig(ma)
668
+ maxIteration: this._configService.getConfig(fa)
668
669
  };
669
670
  }
670
671
  };
671
- ge = Mi([
672
+ ge = xi([
672
673
  pe(0, re),
673
- pe(1, kt),
674
+ pe(1, Qt),
674
675
  pe(2, pn),
675
676
  pe(3, be),
676
677
  pe(4, H(qe)),
677
- pe(5, H(Xt)),
678
+ pe(5, H(Wt)),
678
679
  pe(6, H(et))
679
680
  ], ge);
680
- function xi(n, e, a) {
681
+ function _i(n, e, a) {
681
682
  var i;
682
683
  return n == null || n[e] == null || ((i = n[e]) == null ? void 0 : i[a]) == null;
683
684
  }
@@ -696,18 +697,18 @@ function Ot(n, e, a) {
696
697
  };
697
698
  }
698
699
  var y = /* @__PURE__ */ ((n) => (n[n.MoveRange = 0] = "MoveRange", n[n.MoveRows = 1] = "MoveRows", n[n.MoveCols = 2] = "MoveCols", n[n.InsertRow = 3] = "InsertRow", n[n.InsertColumn = 4] = "InsertColumn", n[n.RemoveRow = 5] = "RemoveRow", n[n.RemoveColumn = 6] = "RemoveColumn", n[n.DeleteMoveLeft = 7] = "DeleteMoveLeft", n[n.DeleteMoveUp = 8] = "DeleteMoveUp", n[n.InsertMoveDown = 9] = "InsertMoveDown", n[n.InsertMoveRight = 10] = "InsertMoveRight", n[n.SetName = 11] = "SetName", n[n.RemoveSheet = 12] = "RemoveSheet", n[n.SetDefinedName = 13] = "SetDefinedName", n[n.RemoveDefinedName = 14] = "RemoveDefinedName", n))(y || {});
699
- const _i = [
700
+ const yi = [
700
701
  11,
701
702
  12,
702
703
  13,
703
704
  14
704
705
  /* RemoveDefinedName */
705
706
  ];
706
- function yi(n, e, a) {
707
+ function gi(n, e, a) {
707
708
  const { type: i } = a;
708
- return _i.includes(i) ? gi(n, e) : hi(n, e, a);
709
+ return yi.includes(i) ? hi(n, e) : qi(n, e, a);
709
710
  }
710
- function gi(n, e) {
711
+ function hi(n, e) {
711
712
  const a = [], i = [];
712
713
  return Object.keys(e).forEach((r) => {
713
714
  const o = e[r], u = n[r];
@@ -746,8 +747,8 @@ function gi(n, e) {
746
747
  redos: i
747
748
  };
748
749
  }
749
- function hi(n, e, a) {
750
- const { redoFormulaData: i, undoFormulaData: r } = qi(n, e, a), o = [], u = [];
750
+ function qi(n, e, a) {
751
+ const { redoFormulaData: i, undoFormulaData: r } = Ui(n, e, a), o = [], u = [];
751
752
  return Object.keys(i).forEach((f) => {
752
753
  Object.keys(i[f]).forEach((m) => {
753
754
  if (Object.keys(i[f][m]).length !== 0) {
@@ -781,10 +782,10 @@ function hi(n, e, a) {
781
782
  redos: o
782
783
  };
783
784
  }
784
- function qi(n, e, a) {
785
+ function Ui(n, e, a) {
785
786
  const i = {}, r = {}, { unitId: o, sheetId: u } = a;
786
787
  return (/* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(e)])).forEach((m) => {
787
- if (xi(n, m, u))
788
+ if (_i(n, m, u))
788
789
  return;
789
790
  (/* @__PURE__ */ new Set([
790
791
  ...Object.keys(n[m] || {}),
@@ -793,8 +794,8 @@ function qi(n, e, a) {
793
794
  var S, R;
794
795
  const p = (S = n[m]) == null ? void 0 : S[l], T = (R = e[m]) == null ? void 0 : R[l], L = new v(p || {}), I = new v(T || {});
795
796
  let A = [];
796
- m !== o || l !== u ? A = Fi(I) : A = Ui(L, I, a);
797
- const N = ji(A, L, I), d = zi(A, L);
797
+ m !== o || l !== u ? A = Bi(I) : A = Fi(L, I, a);
798
+ const N = zi(A, L, I), d = Zi(A, L);
798
799
  i[m] || (i[m] = {}), r[m] || (r[m] = {}), i[m][l] = {
799
800
  ...i[m][l],
800
801
  ...N
@@ -808,7 +809,7 @@ function qi(n, e, a) {
808
809
  undoFormulaData: r
809
810
  };
810
811
  }
811
- function Ui(n, e, a) {
812
+ function Fi(n, e, a) {
812
813
  const { type: i, from: r, to: o, range: u } = a, f = [];
813
814
  return n.forValue((m, c, l) => {
814
815
  if (l == null || !ka(l)) return !0;
@@ -820,9 +821,9 @@ function Ui(n, e, a) {
820
821
  2
821
822
  /* MoveCols */
822
823
  ].includes(i))
823
- T = Bi(i, r, o, p);
824
+ T = vi(i, r, o, p);
824
825
  else if (u != null) {
825
- const I = vi(p, a);
826
+ const I = Vi(p, a);
826
827
  T = I.newCell, L = I.isReverse;
827
828
  }
828
829
  if (Ke.diffValue(p, T) && !e.getValue(m, c))
@@ -830,7 +831,7 @@ function Ui(n, e, a) {
830
831
  L ? f.unshift({ oldCell: p, newCell: T }) : f.push({ oldCell: p, newCell: T });
831
832
  }), f;
832
833
  }
833
- function Fi(n) {
834
+ function Bi(n) {
834
835
  const e = [];
835
836
  return n.forValue((a, i, r) => {
836
837
  if (r == null || !ka(r)) return !0;
@@ -838,52 +839,52 @@ function Fi(n) {
838
839
  e.push({ oldCell: o, newCell: o });
839
840
  }), e;
840
841
  }
841
- function Bi(n, e, a, i) {
842
+ function vi(n, e, a, i) {
842
843
  if (e == null || a == null)
843
844
  return null;
844
845
  switch (n) {
845
846
  case 0:
846
- return Vi(e, a, i);
847
- case 1:
848
847
  return Gi(e, a, i);
849
- case 2:
848
+ case 1:
850
849
  return Hi(e, a, i);
850
+ case 2:
851
+ return wi(e, a, i);
851
852
  default:
852
853
  return null;
853
854
  }
854
855
  }
855
- function vi(n, e) {
856
+ function Vi(n, e) {
856
857
  const { type: a, rangeFilteredRows: i } = e, r = e.range;
857
858
  let o = null, u = !1;
858
859
  switch (a) {
859
860
  case 3:
860
- o = wi(r, n), u = !0;
861
+ o = Yi(r, n), u = !0;
861
862
  break;
862
863
  case 4:
863
- o = Yi(r, n), u = !0;
864
+ o = Xi(r, n), u = !0;
864
865
  break;
865
866
  case 5:
866
- o = Xi(r, n, i);
867
+ o = Wi(r, n, i);
867
868
  break;
868
869
  case 6:
869
- o = Wi(r, n);
870
+ o = Ki(r, n);
870
871
  break;
871
872
  case 7:
872
- o = Ki(r, n);
873
+ o = ki(r, n);
873
874
  break;
874
875
  case 8:
875
- o = ki(r, n);
876
+ o = Qi(r, n);
876
877
  break;
877
878
  case 9:
878
- o = Qi(r, n), u = !0;
879
+ o = $i(r, n), u = !0;
879
880
  break;
880
881
  case 10:
881
- o = $i(r, n), u = !0;
882
+ o = ji(r, n), u = !0;
882
883
  break;
883
884
  }
884
885
  return { newCell: o, isReverse: u };
885
886
  }
886
- function Vi(n, e, a) {
887
+ function Gi(n, e, a) {
887
888
  const i = _a(
888
889
  {
889
890
  id: Y.MoveRangeCommandId,
@@ -893,7 +894,7 @@ function Vi(n, e, a) {
893
894
  );
894
895
  return X(i, a);
895
896
  }
896
- function Gi(n, e, a) {
897
+ function Hi(n, e, a) {
897
898
  const i = xa(
898
899
  {
899
900
  id: Y.MoveRowsCommandId,
@@ -903,7 +904,7 @@ function Gi(n, e, a) {
903
904
  );
904
905
  return X(i, a);
905
906
  }
906
- function Hi(n, e, a) {
907
+ function wi(n, e, a) {
907
908
  const i = Ma(
908
909
  {
909
910
  id: Y.MoveColsCommandId,
@@ -913,7 +914,7 @@ function Hi(n, e, a) {
913
914
  );
914
915
  return X(i, a);
915
916
  }
916
- function wi(n, e) {
917
+ function Yi(n, e) {
917
918
  const a = va(
918
919
  {
919
920
  id: Y.InsertRowCommandId,
@@ -923,7 +924,7 @@ function wi(n, e) {
923
924
  );
924
925
  return X(a, e);
925
926
  }
926
- function Yi(n, e) {
927
+ function Xi(n, e) {
927
928
  const a = Ba(
928
929
  {
929
930
  id: Y.InsertColCommandId,
@@ -933,7 +934,7 @@ function Yi(n, e) {
933
934
  );
934
935
  return X(a, e);
935
936
  }
936
- function Xi(n, e, a) {
937
+ function Wi(n, e, a) {
937
938
  const i = Fa(
938
939
  {
939
940
  id: Y.RemoveRowCommandId,
@@ -944,7 +945,7 @@ function Xi(n, e, a) {
944
945
  );
945
946
  return X(i, e);
946
947
  }
947
- function Wi(n, e) {
948
+ function Ki(n, e) {
948
949
  const a = Ua(
949
950
  {
950
951
  id: Y.RemoveColCommandId,
@@ -954,7 +955,7 @@ function Wi(n, e) {
954
955
  );
955
956
  return X(a, e);
956
957
  }
957
- function Ki(n, e) {
958
+ function ki(n, e) {
958
959
  const a = qa(
959
960
  {
960
961
  id: Y.DeleteRangeMoveLeftCommandId,
@@ -964,7 +965,7 @@ function Ki(n, e) {
964
965
  );
965
966
  return X(a, e);
966
967
  }
967
- function ki(n, e) {
968
+ function Qi(n, e) {
968
969
  const a = ha(
969
970
  {
970
971
  id: Y.DeleteRangeMoveUpCommandId,
@@ -974,7 +975,7 @@ function ki(n, e) {
974
975
  );
975
976
  return X(a, e);
976
977
  }
977
- function Qi(n, e) {
978
+ function $i(n, e) {
978
979
  const a = ga(
979
980
  {
980
981
  id: Y.InsertRangeMoveDownCommandId,
@@ -984,7 +985,7 @@ function Qi(n, e) {
984
985
  );
985
986
  return X(a, e);
986
987
  }
987
- function $i(n, e) {
988
+ function ji(n, e) {
988
989
  const a = ya(
989
990
  {
990
991
  id: Y.InsertRangeMoveRightCommandId,
@@ -994,7 +995,7 @@ function $i(n, e) {
994
995
  );
995
996
  return X(a, e);
996
997
  }
997
- function ji(n, e, a) {
998
+ function zi(n, e, a) {
998
999
  var r, o, u;
999
1000
  const i = new v({});
1000
1001
  for (let f = 0; f < n.length; f++) {
@@ -1006,7 +1007,7 @@ function ji(n, e, a) {
1006
1007
  }
1007
1008
  return i.getMatrix();
1008
1009
  }
1009
- function zi(n, e) {
1010
+ function Zi(n, e) {
1010
1011
  const a = new v({});
1011
1012
  for (let i = n.length - 1; i >= 0; i--) {
1012
1013
  const { oldCell: r, newCell: o } = n[i], u = e.getValue(r.startRow, r.startColumn), f = he(u);
@@ -1029,7 +1030,7 @@ function he(n) {
1029
1030
  const f = {};
1030
1031
  return u && (f.si = a), o && i === 0 && r === 0 && (f.f = e), f.f === void 0 && (f.f = null), f.si === void 0 && (f.si = null), f;
1031
1032
  }
1032
- function Zi(n) {
1033
+ function Ji(n) {
1033
1034
  const e = new v({});
1034
1035
  return new v(n).forValue((i, r, o) => {
1035
1036
  const u = he(o);
@@ -1368,50 +1369,50 @@ function za(n, e) {
1368
1369
  const { id: a } = e;
1369
1370
  let i = null;
1370
1371
  switch (a) {
1372
+ case Un.id:
1373
+ i = er(e, n);
1374
+ break;
1371
1375
  case qn.id:
1372
- i = Ji(e, n);
1376
+ i = tr(e, n);
1373
1377
  break;
1374
1378
  case hn.id:
1375
- i = er(e, n);
1379
+ i = ar(e, n);
1376
1380
  break;
1377
1381
  case gn.id:
1378
- i = tr(e, n);
1382
+ i = nr(e);
1379
1383
  break;
1380
1384
  case yn.id:
1381
- i = ar(e);
1385
+ i = ir(e);
1382
1386
  break;
1383
1387
  case _n.id:
1384
- i = nr(e);
1388
+ i = rr(e, n);
1385
1389
  break;
1386
1390
  case xn.id:
1387
- i = ir(e, n);
1391
+ i = or(e, n);
1388
1392
  break;
1389
1393
  case Mn.id:
1390
- i = rr(e, n);
1394
+ i = ur(e, n);
1391
1395
  break;
1392
1396
  case On.id:
1393
- i = or(e, n);
1397
+ i = mr(e, n);
1394
1398
  break;
1395
1399
  case bn.id:
1396
- i = ur(e, n);
1400
+ i = fr(e, n);
1397
1401
  break;
1398
1402
  case Dn.id:
1399
- i = mr(e, n);
1403
+ i = cr(e, n);
1400
1404
  break;
1401
1405
  case Cn.id:
1402
- i = fr(e, n);
1406
+ i = lr(e, n);
1403
1407
  break;
1404
1408
  case An.id:
1405
- i = cr(e, n);
1406
- break;
1407
- case Sn.id:
1408
- i = lr(e, n);
1409
+ i = sr(e, n);
1409
1410
  break;
1410
1411
  case Ga.id:
1411
- i = sr(e, n);
1412
+ i = dr(e, n);
1412
1413
  break;
1413
1414
  case Va.id:
1414
- i = dr(e, n);
1415
+ i = pr(e, n);
1415
1416
  break;
1416
1417
  }
1417
1418
  return i;
@@ -1424,7 +1425,7 @@ function te(n) {
1424
1425
  sheetId: a
1425
1426
  };
1426
1427
  }
1427
- function Ji(n, e) {
1428
+ function er(n, e) {
1428
1429
  const { params: a } = n;
1429
1430
  if (!a) return null;
1430
1431
  const { fromRange: i, toRange: r } = a;
@@ -1438,7 +1439,7 @@ function Ji(n, e) {
1438
1439
  sheetId: u
1439
1440
  };
1440
1441
  }
1441
- function er(n, e) {
1442
+ function tr(n, e) {
1442
1443
  const { params: a } = n;
1443
1444
  if (!a) return null;
1444
1445
  const {
@@ -1467,7 +1468,7 @@ function er(n, e) {
1467
1468
  sheetId: c
1468
1469
  };
1469
1470
  }
1470
- function tr(n, e) {
1471
+ function ar(n, e) {
1471
1472
  const { params: a } = n;
1472
1473
  if (!a) return null;
1473
1474
  const {
@@ -1496,7 +1497,7 @@ function tr(n, e) {
1496
1497
  sheetId: c
1497
1498
  };
1498
1499
  }
1499
- function ar(n) {
1500
+ function nr(n) {
1500
1501
  const { params: e } = n;
1501
1502
  if (!e) return null;
1502
1503
  const { range: a, unitId: i, subUnitId: r } = e;
@@ -1507,7 +1508,7 @@ function ar(n) {
1507
1508
  sheetId: r
1508
1509
  };
1509
1510
  }
1510
- function nr(n) {
1511
+ function ir(n) {
1511
1512
  const { params: e } = n;
1512
1513
  if (!e) return null;
1513
1514
  const { range: a, unitId: i, subUnitId: r } = e;
@@ -1518,7 +1519,7 @@ function nr(n) {
1518
1519
  sheetId: r
1519
1520
  };
1520
1521
  }
1521
- function ir(n, e) {
1522
+ function rr(n, e) {
1522
1523
  const { params: a } = n;
1523
1524
  if (!a) return null;
1524
1525
  const { range: i } = a, { unitId: r, sheetId: o } = te(e);
@@ -1529,7 +1530,7 @@ function ir(n, e) {
1529
1530
  sheetId: o
1530
1531
  };
1531
1532
  }
1532
- function rr(n, e) {
1533
+ function or(n, e) {
1533
1534
  const { params: a } = n;
1534
1535
  if (!a) return null;
1535
1536
  const { range: i } = a, { unitId: r, sheetId: o } = te(e);
@@ -1540,7 +1541,7 @@ function rr(n, e) {
1540
1541
  sheetId: o
1541
1542
  };
1542
1543
  }
1543
- function or(n, e) {
1544
+ function ur(n, e) {
1544
1545
  var u, f;
1545
1546
  const { params: a } = n;
1546
1547
  if (!a) return null;
@@ -1553,7 +1554,7 @@ function or(n, e) {
1553
1554
  rangeFilteredRows: (f = (u = e.getSheetBySheetId(o)) == null ? void 0 : u.getRangeFilterRows(i)) != null ? f : []
1554
1555
  };
1555
1556
  }
1556
- function ur(n, e) {
1557
+ function mr(n, e) {
1557
1558
  const { params: a } = n;
1558
1559
  if (!a) return null;
1559
1560
  const { range: i } = a, { unitId: r, sheetId: o } = te(e);
@@ -1564,7 +1565,7 @@ function ur(n, e) {
1564
1565
  sheetId: o
1565
1566
  };
1566
1567
  }
1567
- function mr(n, e) {
1568
+ function fr(n, e) {
1568
1569
  const { params: a } = n;
1569
1570
  if (!a) return null;
1570
1571
  const { range: i } = a, { unitId: r, sheetId: o } = te(e);
@@ -1575,7 +1576,7 @@ function mr(n, e) {
1575
1576
  sheetId: o
1576
1577
  };
1577
1578
  }
1578
- function fr(n, e) {
1579
+ function cr(n, e) {
1579
1580
  const { params: a } = n;
1580
1581
  if (!a) return null;
1581
1582
  const { range: i } = a, { unitId: r, sheetId: o } = te(e);
@@ -1586,7 +1587,7 @@ function fr(n, e) {
1586
1587
  sheetId: o
1587
1588
  };
1588
1589
  }
1589
- function cr(n, e) {
1590
+ function lr(n, e) {
1590
1591
  const { params: a } = n;
1591
1592
  if (!a) return null;
1592
1593
  const { unitId: i, subUnitId: r, name: o } = a, { unitId: u, sheetId: f } = te(e);
@@ -1597,7 +1598,7 @@ function cr(n, e) {
1597
1598
  sheetName: o
1598
1599
  };
1599
1600
  }
1600
- function lr(n, e) {
1601
+ function sr(n, e) {
1601
1602
  const { params: a } = n;
1602
1603
  if (!a) return null;
1603
1604
  const { unitId: i, subUnitId: r } = a, { unitId: o, sheetId: u } = te(e);
@@ -1607,7 +1608,7 @@ function lr(n, e) {
1607
1608
  sheetId: r || u
1608
1609
  };
1609
1610
  }
1610
- function sr(n, e) {
1611
+ function dr(n, e) {
1611
1612
  const { params: a } = n;
1612
1613
  if (!a) return null;
1613
1614
  const { unitId: i, name: r, id: o } = a, { sheetId: u } = te(e);
@@ -1619,7 +1620,7 @@ function sr(n, e) {
1619
1620
  definedNameId: o
1620
1621
  };
1621
1622
  }
1622
- function dr(n, e) {
1623
+ function pr(n, e) {
1623
1624
  const { params: a } = n;
1624
1625
  if (!a) return null;
1625
1626
  const { unitId: i, name: r, id: o } = a, { sheetId: u } = te(e);
@@ -1631,8 +1632,8 @@ function dr(n, e) {
1631
1632
  definedNameId: o
1632
1633
  };
1633
1634
  }
1634
- var pr = Object.getOwnPropertyDescriptor, Lr = (n, e, a, i) => {
1635
- for (var r = i > 1 ? void 0 : i ? pr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
1635
+ var Lr = Object.getOwnPropertyDescriptor, Pr = (n, e, a, i) => {
1636
+ for (var r = i > 1 ? void 0 : i ? Lr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
1636
1637
  (u = n[o]) && (r = u(r) || r);
1637
1638
  return r;
1638
1639
  }, He = (n, e) => (a, i) => e(a, i, n);
@@ -1752,14 +1753,14 @@ let tt = class extends z {
1752
1753
  return ((o = this._definedNamesService.getWorksheetByRef(e, i)) == null ? void 0 : o.getSheetId()) === a ? k.REF : null;
1753
1754
  }
1754
1755
  };
1755
- tt = Lr([
1756
+ tt = Pr([
1756
1757
  He(0, Lt),
1757
1758
  He(1, Ee),
1758
1759
  He(2, H(dt)),
1759
1760
  He(3, H(Pt))
1760
1761
  ], tt);
1761
- var Pr = Object.getOwnPropertyDescriptor, Tr = (n, e, a, i) => {
1762
- for (var r = i > 1 ? void 0 : i ? Pr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
1762
+ var Tr = Object.getOwnPropertyDescriptor, Er = (n, e, a, i) => {
1763
+ for (var r = i > 1 ? void 0 : i ? Tr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
1763
1764
  (u = n[o]) && (r = u(r) || r);
1764
1765
  return r;
1765
1766
  }, me = (n, e) => (a, i) => e(a, i, n);
@@ -1773,21 +1774,21 @@ let at = class extends z {
1773
1774
  })), this.disposeWithMe(
1774
1775
  this._commandService.onCommandExecuted((n) => {
1775
1776
  if (n.params)
1776
- if (n.id === qt.id) {
1777
+ if (n.id === Ut.id) {
1777
1778
  const { subUnitId: e, unitId: a } = n.params;
1778
1779
  this._handleWorkbookDisposed(a, e);
1779
- } else n.id === Ut.id && this._handleInsertSheetMutation(n.params);
1780
+ } else n.id === Ft.id && this._handleInsertSheetMutation(n.params);
1780
1781
  })
1781
1782
  ), this.disposeWithMe(
1782
1783
  this._commandService.beforeCommandExecuted((n, e) => {
1783
1784
  if (n.id === Q.id) {
1784
1785
  const a = n.params;
1785
- if (e && e.onlyLocal === !0 || a.trigger === Kt.id || a.trigger === ba.id || a.trigger === Oa.id)
1786
+ if (e && e.onlyLocal === !0 || e && e.syncOnly === !0 || a.trigger === kt.id || a.trigger === ba.id || a.trigger === Oa.id)
1786
1787
  return;
1787
1788
  this._handleSetRangeValuesMutation(a);
1788
1789
  }
1789
1790
  })
1790
- ), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(j.UNIVER_SHEET).subscribe((n) => this._handleWorkbookAdded(n))), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$(j.UNIVER_SHEET).pipe(Ti((n) => n.getUnitId())).subscribe((n) => this._handleWorkbookDisposed(n)));
1791
+ ), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(j.UNIVER_SHEET).subscribe((n) => this._handleWorkbookAdded(n))), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$(j.UNIVER_SHEET).pipe(Ei((n) => n.getUnitId())).subscribe((n) => this._handleWorkbookDisposed(n)));
1791
1792
  }
1792
1793
  _handleSetRangeValuesMutation(n) {
1793
1794
  const { subUnitId: e, unitId: a, cellValue: i } = n;
@@ -1806,7 +1807,7 @@ let at = class extends z {
1806
1807
  {
1807
1808
  unitId: a,
1808
1809
  subUnitId: e,
1809
- cellValue: Zi(r)
1810
+ cellValue: Ji(r)
1810
1811
  },
1811
1812
  {
1812
1813
  onlyLocal: !0,
@@ -1821,7 +1822,7 @@ let at = class extends z {
1821
1822
  onlyLocal: !0
1822
1823
  }
1823
1824
  ), this._commandService.executeCommand(
1824
- Ft.id,
1825
+ Bt.id,
1825
1826
  {
1826
1827
  arrayFormulaRange: this._formulaDataModel.getArrayFormulaRange(),
1827
1828
  arrayFormulaCellData: this._formulaDataModel.getArrayFormulaCellData()
@@ -1844,7 +1845,7 @@ let at = class extends z {
1844
1845
  onlyLocal: !0
1845
1846
  }
1846
1847
  ), o && f && this._commandService.executeCommand(
1847
- Ft.id,
1848
+ Bt.id,
1848
1849
  {
1849
1850
  arrayFormulaRange: r,
1850
1851
  arrayFormulaCellData: u
@@ -1855,7 +1856,7 @@ let at = class extends z {
1855
1856
  );
1856
1857
  }
1857
1858
  _handleInsertSheetMutation(n) {
1858
- const { sheet: e, unitId: a } = n, i = this._formulaDataModel.getFormulaData(), { id: r, cellData: o } = e, u = new v(o), f = fa(i, a, r, u);
1859
+ const { sheet: e, unitId: a } = n, i = this._formulaDataModel.getFormulaData(), { id: r, cellData: o } = e, u = new v(o), f = ca(i, a, r, u);
1859
1860
  this._commandService.executeCommand(
1860
1861
  Ge.id,
1861
1862
  {
@@ -1871,7 +1872,7 @@ let at = class extends z {
1871
1872
  const e = {}, a = n.getUnitId(), i = { [a]: {} };
1872
1873
  n.getSheets().forEach((c) => {
1873
1874
  var L;
1874
- const l = c.getCellMatrix(), p = c.getSheetId(), T = fa(e, a, p, l);
1875
+ const l = c.getCellMatrix(), p = c.getSheetId(), T = ca(e, a, p, l);
1875
1876
  i[a][p] = (L = T[a]) == null ? void 0 : L[p];
1876
1877
  }), this._commandService.executeCommand(Ge.id, { formulaData: i }, { onlyLocal: !0 });
1877
1878
  const o = this._configService.getConfig(Ue), u = (m = o == null ? void 0 : o.initialFormulaComputing) != null ? m : Te.WHEN_EMPTY, f = this._getDirtyDataByCalculationMode(u);
@@ -1902,7 +1903,7 @@ let at = class extends z {
1902
1903
  r,
1903
1904
  i,
1904
1905
  a
1905
- ), { undos: u, redos: f } = yi(r, o, a);
1906
+ ), { undos: u, redos: f } = gi(r, o, a);
1906
1907
  return {
1907
1908
  undos: u,
1908
1909
  redos: f
@@ -2024,7 +2025,7 @@ let at = class extends z {
2024
2025
  return { newFormulaData: o };
2025
2026
  }
2026
2027
  };
2027
- at = Tr([
2028
+ at = Er([
2028
2029
  me(0, Ee),
2029
2030
  me(1, re),
2030
2031
  me(2, H(Pt)),
@@ -2034,9 +2035,9 @@ at = Tr([
2034
2035
  me(6, be),
2035
2036
  me(7, H(st))
2036
2037
  ], at);
2037
- const Er = "SHEETS_FORMULA_PLUGIN";
2038
- var Ir = Object.getOwnPropertyDescriptor, Nr = (n, e, a, i) => {
2039
- for (var r = i > 1 ? void 0 : i ? Ir(e, a) : e, o = n.length - 1, u; o >= 0; o--)
2038
+ const Ir = "SHEETS_FORMULA_PLUGIN";
2039
+ var Nr = Object.getOwnPropertyDescriptor, Rr = (n, e, a, i) => {
2040
+ for (var r = i > 1 ? void 0 : i ? Nr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
2040
2041
  (u = n[o]) && (r = u(r) || r);
2041
2042
  return r;
2042
2043
  }, _t = (n, e) => (a, i) => e(a, i, n);
@@ -2052,15 +2053,15 @@ let nt = class extends z {
2052
2053
  commandId: Q.id,
2053
2054
  getDirtyData: (n) => {
2054
2055
  const e = n.params;
2055
- return e.trigger === Kt.id ? {} : {
2056
+ return e.trigger === kt.id ? {} : {
2056
2057
  dirtyRanges: this._getSetRangeValuesMutationDirtyRange(e)
2057
2058
  };
2058
2059
  }
2059
2060
  }), this._initialMove(), this._initialRowAndColumn(), this._initialHideRow(), this._initialSheet(), this._initialDefinedName();
2060
2061
  }
2061
2062
  _initialMove() {
2062
- this._activeDirtyManagerService.register(jt.id, {
2063
- commandId: jt.id,
2063
+ this._activeDirtyManagerService.register(zt.id, {
2064
+ commandId: zt.id,
2064
2065
  getDirtyData: (n) => {
2065
2066
  const e = n.params;
2066
2067
  return {
@@ -2073,8 +2074,8 @@ let nt = class extends z {
2073
2074
  }
2074
2075
  };
2075
2076
  }
2076
- }), this._activeDirtyManagerService.register(zt.id, {
2077
- commandId: zt.id,
2077
+ }), this._activeDirtyManagerService.register(Zt.id, {
2078
+ commandId: Zt.id,
2078
2079
  getDirtyData: (n) => {
2079
2080
  const e = n.params;
2080
2081
  return {
@@ -2086,8 +2087,8 @@ let nt = class extends z {
2086
2087
  }
2087
2088
  };
2088
2089
  }
2089
- }), this._activeDirtyManagerService.register(Zt.id, {
2090
- commandId: Zt.id,
2090
+ }), this._activeDirtyManagerService.register(Jt.id, {
2091
+ commandId: Jt.id,
2091
2092
  getDirtyData: (n) => {
2092
2093
  const e = n.params;
2093
2094
  return {
@@ -2099,8 +2100,8 @@ let nt = class extends z {
2099
2100
  }
2100
2101
  };
2101
2102
  }
2102
- }), this._activeDirtyManagerService.register(Jt.id, {
2103
- commandId: Jt.id,
2103
+ }), this._activeDirtyManagerService.register(ea.id, {
2104
+ commandId: ea.id,
2104
2105
  getDirtyData: (n) => {
2105
2106
  const e = n.params;
2106
2107
  return {
@@ -2115,8 +2116,8 @@ let nt = class extends z {
2115
2116
  });
2116
2117
  }
2117
2118
  _initialRowAndColumn() {
2118
- this._activeDirtyManagerService.register(ea.id, {
2119
- commandId: ea.id,
2119
+ this._activeDirtyManagerService.register(ta.id, {
2120
+ commandId: ta.id,
2120
2121
  getDirtyData: (n) => {
2121
2122
  const e = n.params;
2122
2123
  return {
@@ -2128,8 +2129,8 @@ let nt = class extends z {
2128
2129
  }
2129
2130
  };
2130
2131
  }
2131
- }), this._activeDirtyManagerService.register(ta.id, {
2132
- commandId: ta.id,
2132
+ }), this._activeDirtyManagerService.register(aa.id, {
2133
+ commandId: aa.id,
2133
2134
  getDirtyData: (n) => {
2134
2135
  const e = n.params;
2135
2136
  return {
@@ -2141,8 +2142,8 @@ let nt = class extends z {
2141
2142
  }
2142
2143
  };
2143
2144
  }
2144
- }), this._activeDirtyManagerService.register(aa.id, {
2145
- commandId: aa.id,
2145
+ }), this._activeDirtyManagerService.register(na.id, {
2146
+ commandId: na.id,
2146
2147
  getDirtyData: (n) => {
2147
2148
  const e = n.params;
2148
2149
  return {
@@ -2153,8 +2154,8 @@ let nt = class extends z {
2153
2154
  }
2154
2155
  };
2155
2156
  }
2156
- }), this._activeDirtyManagerService.register(na.id, {
2157
- commandId: na.id,
2157
+ }), this._activeDirtyManagerService.register(ia.id, {
2158
+ commandId: ia.id,
2158
2159
  getDirtyData: (n) => {
2159
2160
  const e = n.params;
2160
2161
  return {
@@ -2168,8 +2169,8 @@ let nt = class extends z {
2168
2169
  });
2169
2170
  }
2170
2171
  _initialHideRow() {
2171
- this._activeDirtyManagerService.register(ia.id, {
2172
- commandId: ia.id,
2172
+ this._activeDirtyManagerService.register(ra.id, {
2173
+ commandId: ra.id,
2173
2174
  getDirtyData: (n) => {
2174
2175
  const e = n.params;
2175
2176
  return {
@@ -2181,8 +2182,8 @@ let nt = class extends z {
2181
2182
  }
2182
2183
  };
2183
2184
  }
2184
- }), this._activeDirtyManagerService.register(ra.id, {
2185
- commandId: ra.id,
2185
+ }), this._activeDirtyManagerService.register(oa.id, {
2186
+ commandId: oa.id,
2186
2187
  getDirtyData: (n) => {
2187
2188
  const e = n.params;
2188
2189
  return {
@@ -2197,8 +2198,8 @@ let nt = class extends z {
2197
2198
  });
2198
2199
  }
2199
2200
  _initialSheet() {
2200
- this._activeDirtyManagerService.register(qt.id, {
2201
- commandId: qt.id,
2201
+ this._activeDirtyManagerService.register(Ut.id, {
2202
+ commandId: Ut.id,
2202
2203
  getDirtyData: (n) => {
2203
2204
  const e = n.params;
2204
2205
  return {
@@ -2210,8 +2211,8 @@ let nt = class extends z {
2210
2211
  }
2211
2212
  };
2212
2213
  }
2213
- }), this._activeDirtyManagerService.register(Ut.id, {
2214
- commandId: Ut.id,
2214
+ }), this._activeDirtyManagerService.register(Ft.id, {
2215
+ commandId: Ft.id,
2215
2216
  getDirtyData: (n) => {
2216
2217
  const e = n.params;
2217
2218
  return {
@@ -2227,8 +2228,8 @@ let nt = class extends z {
2227
2228
  const e = n.params;
2228
2229
  return { dirtyDefinedNameMap: this._getDefinedNameMutation(e) };
2229
2230
  }
2230
- }), this._activeDirtyManagerService.register(Bt.id, {
2231
- commandId: Bt.id,
2231
+ }), this._activeDirtyManagerService.register(vt.id, {
2232
+ commandId: vt.id,
2232
2233
  getDirtyData: (n) => {
2233
2234
  const e = n.params;
2234
2235
  return { dirtyDefinedNameMap: this._getDefinedNameMutation(e) };
@@ -2334,13 +2335,13 @@ let nt = class extends z {
2334
2335
  return i;
2335
2336
  }
2336
2337
  };
2337
- nt = Nr([
2338
- _t(0, kt),
2338
+ nt = Rr([
2339
+ _t(0, Qt),
2339
2340
  _t(1, Ee),
2340
2341
  _t(2, H(qe))
2341
2342
  ], nt);
2342
- var Rr = Object.getOwnPropertyDescriptor, Sr = (n, e, a, i) => {
2343
- for (var r = i > 1 ? void 0 : i ? Rr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
2343
+ var Sr = Object.getOwnPropertyDescriptor, Ar = (n, e, a, i) => {
2344
+ for (var r = i > 1 ? void 0 : i ? Sr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
2344
2345
  (u = n[o]) && (r = u(r) || r);
2345
2346
  return r;
2346
2347
  }, Le = (n, e) => (a, i) => e(a, i, n);
@@ -2356,7 +2357,7 @@ let it = class extends z {
2356
2357
  this._commandService.onCommandExecuted((n) => {
2357
2358
  var a;
2358
2359
  const e = (a = this._configService.getConfig(Ue)) == null ? void 0 : a.writeArrayFormulaToSnapshot;
2359
- if (n.id === Ft.id) {
2360
+ if (n.id === Bt.id) {
2360
2361
  const i = n.params;
2361
2362
  if (i == null)
2362
2363
  return;
@@ -2468,18 +2469,18 @@ let it = class extends z {
2468
2469
  this.disposeWithMe(
2469
2470
  this._sheetInterceptorService.intercept(Da.CELL_CONTENT, {
2470
2471
  priority: 100,
2471
- effect: Ea.Value,
2472
+ effect: ht.Value,
2472
2473
  handler: (n, e, a) => {
2473
2474
  var l, p, T;
2474
2475
  let i = n;
2475
2476
  const { unitId: r, subUnitId: o, row: u, col: f } = e, m = this._formulaDataModel.getArrayFormulaCellData(), c = (T = (p = (l = m == null ? void 0 : m[r]) == null ? void 0 : l[o]) == null ? void 0 : p[u]) == null ? void 0 : T[f];
2476
- return c == null ? a(i) : ((!i || i === e.rawData) && (i = { ...e.rawData }), c.v == null && c.t == null ? (i.v = 0, i.t = gt.NUMBER, a(i)) : (i == null ? void 0 : i.t) === gt.NUMBER && i.v !== void 0 && i.v !== null && Ln(i.v) ? (i.v = Yn(Number(i.v)), a(i)) : (i.v = c.v, i.t = c.t, a(i)));
2477
+ return c == null ? a(i) : ((!i || i === e.rawData) && (i = { ...e.rawData }), c.v == null && c.t == null ? (i.v = 0, i.t = gt.NUMBER, a(i)) : (i == null ? void 0 : i.t) === gt.NUMBER && i.v !== void 0 && i.v !== null && Ln(i.v) ? (i.v = Xn(Number(i.v)), a(i)) : (i.v = c.v, i.t = c.t, a(i)));
2477
2478
  }
2478
2479
  })
2479
2480
  );
2480
2481
  }
2481
2482
  };
2482
- it = Sr([
2483
+ it = Ar([
2483
2484
  Le(0, re),
2484
2485
  Le(1, be),
2485
2486
  Le(2, H(dt)),
@@ -2488,9 +2489,9 @@ it = Sr([
2488
2489
  Le(5, Tt),
2489
2490
  Le(6, Lt)
2490
2491
  ], it);
2491
- const Ar = [
2492
+ const Cr = [
2492
2493
  {
2493
- functionName: ca.ARRAY_CONSTRAIN,
2494
+ functionName: la.ARRAY_CONSTRAIN,
2494
2495
  functionType: t.Array,
2495
2496
  description: "formula.functionList.ARRAY_CONSTRAIN.description",
2496
2497
  abstract: "formula.functionList.ARRAY_CONSTRAIN.abstract",
@@ -2519,7 +2520,7 @@ const Ar = [
2519
2520
  ]
2520
2521
  },
2521
2522
  {
2522
- functionName: ca.FLATTEN,
2523
+ functionName: la.FLATTEN,
2523
2524
  functionType: t.Array,
2524
2525
  description: "formula.functionList.FLATTEN.description",
2525
2526
  abstract: "formula.functionList.FLATTEN.abstract",
@@ -2540,7 +2541,7 @@ const Ar = [
2540
2541
  }
2541
2542
  ]
2542
2543
  }
2543
- ], Cr = [
2544
+ ], Dr = [
2544
2545
  {
2545
2546
  functionName: _.BETADIST,
2546
2547
  functionType: t.Compatibility,
@@ -3594,7 +3595,7 @@ const Ar = [
3594
3595
  }
3595
3596
  ]
3596
3597
  }
3597
- ], Dr = [
3598
+ ], br = [
3598
3599
  {
3599
3600
  functionName: de.CUBEKPIMEMBER,
3600
3601
  functionType: t.Cube,
@@ -3749,7 +3750,7 @@ const Ar = [
3749
3750
  }
3750
3751
  ]
3751
3752
  }
3752
- ], br = [
3753
+ ], Or = [
3753
3754
  {
3754
3755
  functionName: $.DAVERAGE,
3755
3756
  functionType: t.Database,
@@ -4098,7 +4099,7 @@ const Ar = [
4098
4099
  }
4099
4100
  ]
4100
4101
  }
4101
- ], Or = [
4102
+ ], Mr = [
4102
4103
  {
4103
4104
  functionName: V.DATE,
4104
4105
  functionType: t.Date,
@@ -4670,7 +4671,7 @@ const Ar = [
4670
4671
  }
4671
4672
  ]
4672
4673
  }
4673
- ], Mr = [
4674
+ ], xr = [
4674
4675
  {
4675
4676
  functionName: C.BESSELI,
4676
4677
  functionType: t.Engineering,
@@ -5743,7 +5744,7 @@ const Ar = [
5743
5744
  }
5744
5745
  ]
5745
5746
  }
5746
- ], xr = [
5747
+ ], _r = [
5747
5748
  {
5748
5749
  functionName: D.ACCRINT,
5749
5750
  functionType: t.Financial,
@@ -8004,7 +8005,7 @@ const Ar = [
8004
8005
  }
8005
8006
  ]
8006
8007
  }
8007
- ], _r = [
8008
+ ], yr = [
8008
8009
  {
8009
8010
  functionName: G.CELL,
8010
8011
  functionType: t.Information,
@@ -8413,7 +8414,7 @@ const Ar = [
8413
8414
  }
8414
8415
  ]
8415
8416
  }
8416
- ], yr = [
8417
+ ], gr = [
8417
8418
  {
8418
8419
  functionName: K.AND,
8419
8420
  functionType: t.Logical,
@@ -8887,7 +8888,7 @@ const Ar = [
8887
8888
  }
8888
8889
  ]
8889
8890
  }
8890
- ], gr = [
8891
+ ], hr = [
8891
8892
  {
8892
8893
  functionName: g.ADDRESS,
8893
8894
  functionType: t.Lookup,
@@ -9940,7 +9941,7 @@ const Ar = [
9940
9941
  }
9941
9942
  ]
9942
9943
  }
9943
- ], hr = [
9944
+ ], qr = [
9944
9945
  {
9945
9946
  functionName: E.ABS,
9946
9947
  functionType: t.Math,
@@ -11592,7 +11593,7 @@ const Ar = [
11592
11593
  }
11593
11594
  ]
11594
11595
  }
11595
- ], qr = [
11596
+ ], Ur = [
11596
11597
  {
11597
11598
  functionName: s.AVEDEV,
11598
11599
  functionType: t.Statistical,
@@ -14534,7 +14535,7 @@ const Ar = [
14534
14535
  }
14535
14536
  ]
14536
14537
  }
14537
- ], Ur = [
14538
+ ], Fr = [
14538
14539
  {
14539
14540
  functionName: b.ASC,
14540
14541
  functionType: t.Text,
@@ -15748,7 +15749,7 @@ const Ar = [
15748
15749
  }
15749
15750
  ]
15750
15751
  }
15751
- ], Fr = [], Br = [
15752
+ ], Br = [], vr = [
15752
15753
  {
15753
15754
  functionName: At.ENCODEURL,
15754
15755
  functionType: t.Web,
@@ -15808,34 +15809,34 @@ const Ar = [
15808
15809
  }
15809
15810
  ]
15810
15811
  }
15811
- ], vr = [
15812
- ...xr,
15813
- ...Or,
15814
- ...hr,
15812
+ ], Vr = [
15813
+ ..._r,
15814
+ ...Mr,
15815
15815
  ...qr,
15816
- ...gr,
15817
- ...br,
15818
15816
  ...Ur,
15817
+ ...hr,
15818
+ ...Or,
15819
+ ...Fr,
15820
+ ...gr,
15819
15821
  ...yr,
15820
- ..._r,
15821
- ...Mr,
15822
+ ...xr,
15823
+ ...br,
15822
15824
  ...Dr,
15825
+ ...vr,
15823
15826
  ...Cr,
15824
- ...Br,
15825
- ...Ar,
15826
- ...Fr
15827
+ ...Br
15827
15828
  ];
15828
- function Vr(n, e) {
15829
+ function Gr(n, e) {
15829
15830
  let a = "";
15830
15831
  return n.aliasFunctionName ? (a = e.t(n.aliasFunctionName), a === n.aliasFunctionName && (a = n.functionName)) : a = n.functionName, a;
15831
15832
  }
15832
- var Gr = Object.getOwnPropertyDescriptor, Hr = (n, e, a, i) => {
15833
- for (var r = i > 1 ? void 0 : i ? Gr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
15833
+ var Hr = Object.getOwnPropertyDescriptor, wr = (n, e, a, i) => {
15834
+ for (var r = i > 1 ? void 0 : i ? Hr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
15834
15835
  (u = n[o]) && (r = u(r) || r);
15835
15836
  return r;
15836
15837
  }, yt = (n, e) => (a, i) => e(a, i, n);
15837
- const Et = Wt("formula.description-service");
15838
- let Vt = class {
15838
+ const Et = Kt("formula.description-service");
15839
+ let Gt = class {
15839
15840
  constructor(n, e, a) {
15840
15841
  w(this, "_descriptions", []);
15841
15842
  this._functionService = n, this._localeService = e, this._configService = a, this._initialize();
@@ -15893,7 +15894,7 @@ let Vt = class {
15893
15894
  if (e.length === 0)
15894
15895
  return !1;
15895
15896
  const a = e[0].description;
15896
- return !Xn(a);
15897
+ return !Wn(a);
15897
15898
  }
15898
15899
  _initialize() {
15899
15900
  this._localeService.localeChanged$.subscribe(() => {
@@ -15903,7 +15904,6 @@ let Vt = class {
15903
15904
  _initDescription() {
15904
15905
  var i;
15905
15906
  const n = [
15906
- ...Wn,
15907
15907
  ...Kn,
15908
15908
  ...kn,
15909
15909
  ...Qn,
@@ -15918,13 +15918,14 @@ let Vt = class {
15918
15918
  ...ni,
15919
15919
  ...ii,
15920
15920
  ...ri,
15921
- ...oi
15922
- ].map((r) => r[1]), e = vr.filter((r) => n.includes(r.functionName)), a = this._configService.getConfig(Ue);
15921
+ ...oi,
15922
+ ...ui
15923
+ ].map((r) => r[1]), e = Vr.filter((r) => n.includes(r.functionName)), a = this._configService.getConfig(Ue);
15923
15924
  this._descriptions = e.concat((i = a == null ? void 0 : a.description) != null ? i : []);
15924
15925
  }
15925
15926
  _registerDescriptions() {
15926
15927
  const n = this._localeService, e = this._descriptions.map((a) => ({
15927
- functionName: Vr(a, n),
15928
+ functionName: Gr(a, n),
15928
15929
  functionType: a.functionType,
15929
15930
  description: n.t(a.description),
15930
15931
  abstract: n.t(a.abstract),
@@ -15939,13 +15940,13 @@ let Vt = class {
15939
15940
  this._functionService.registerDescriptions(...e);
15940
15941
  }
15941
15942
  };
15942
- Vt = Hr([
15943
+ Gt = wr([
15943
15944
  yt(0, Tt),
15944
- yt(1, H(Xt)),
15945
+ yt(1, H(Wt)),
15945
15946
  yt(2, be)
15946
- ], Vt);
15947
- var wr = Object.getOwnPropertyDescriptor, Yr = (n, e, a, i) => {
15948
- for (var r = i > 1 ? void 0 : i ? wr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
15947
+ ], Gt);
15948
+ var Yr = Object.getOwnPropertyDescriptor, Xr = (n, e, a, i) => {
15949
+ for (var r = i > 1 ? void 0 : i ? Yr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
15949
15950
  (u = n[o]) && (r = u(r) || r);
15950
15951
  return r;
15951
15952
  }, we = (n, e) => (a, i) => e(a, i, n);
@@ -15981,7 +15982,7 @@ let rt = class extends z {
15981
15982
  else if (e.id === De.id) {
15982
15983
  const i = e.params;
15983
15984
  this._registerDescription(i);
15984
- } else if (e.id === Bt.id) {
15985
+ } else if (e.id === vt.id) {
15985
15986
  const i = e.params;
15986
15987
  this._unregisterDescription(i);
15987
15988
  }
@@ -16061,31 +16062,31 @@ let rt = class extends z {
16061
16062
  }), this._descriptionService.unregisterDescriptions(r);
16062
16063
  }
16063
16064
  };
16064
- rt = Yr([
16065
+ rt = Xr([
16065
16066
  we(0, Et),
16066
16067
  we(1, Lt),
16067
16068
  we(2, Ee),
16068
16069
  we(3, re)
16069
16070
  ], rt);
16070
- var Xr = Object.getOwnPropertyDescriptor, Wr = (n, e, a, i) => {
16071
- for (var r = i > 1 ? void 0 : i ? Xr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16071
+ var Wr = Object.getOwnPropertyDescriptor, Kr = (n, e, a, i) => {
16072
+ for (var r = i > 1 ? void 0 : i ? Wr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16072
16073
  (u = n[o]) && (r = u(r) || r);
16073
16074
  return r;
16074
- }, Kr = (n, e) => (a, i) => e(a, i, n);
16075
+ }, kr = (n, e) => (a, i) => e(a, i, n);
16075
16076
  let ot = class extends z {
16076
16077
  constructor(n) {
16077
16078
  super(), this._commandService = n, [
16078
- Ni,
16079
16079
  Ri,
16080
+ Si,
16080
16081
  _e
16081
16082
  ].forEach((e) => this._commandService.registerCommand(e));
16082
16083
  }
16083
16084
  };
16084
- ot = Wr([
16085
- Kr(0, re)
16085
+ ot = Kr([
16086
+ kr(0, re)
16086
16087
  ], ot);
16087
- var kr = Object.getOwnPropertyDescriptor, Qr = (n, e, a, i) => {
16088
- for (var r = i > 1 ? void 0 : i ? kr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16088
+ var Qr = Object.getOwnPropertyDescriptor, $r = (n, e, a, i) => {
16089
+ for (var r = i > 1 ? void 0 : i ? Qr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16089
16090
  (u = n[o]) && (r = u(r) || r);
16090
16091
  return r;
16091
16092
  }, Ye = (n, e) => (a, i) => e(a, i, n);
@@ -16118,10 +16119,10 @@ let ut = class extends z {
16118
16119
  if (!(a != null && a.fromCollab)) {
16119
16120
  if (e.id === Ha.id)
16120
16121
  this._unregisterDescriptionsForNotInSheetId(), this._registerDescriptions();
16121
- else if (e.id === ui.id) {
16122
+ else if (e.id === mi.id) {
16122
16123
  const i = e.params;
16123
16124
  this._registerDescription(i);
16124
- } else if (e.id === mi.id) {
16125
+ } else if (e.id === fi.id) {
16125
16126
  const i = e.params;
16126
16127
  this._unregisterDescription(i);
16127
16128
  }
@@ -16204,18 +16205,18 @@ let ut = class extends z {
16204
16205
  }), this._descriptionService.unregisterDescriptions(r);
16205
16206
  }
16206
16207
  };
16207
- ut = Qr([
16208
+ ut = $r([
16208
16209
  Ye(0, Et),
16209
16210
  Ye(1, Ee),
16210
16211
  Ye(2, re),
16211
- Ye(3, fi)
16212
+ Ye(3, ci)
16212
16213
  ], ut);
16213
- var $r = Object.getOwnPropertyDescriptor, jr = (n, e, a, i) => {
16214
- for (var r = i > 1 ? void 0 : i ? $r(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16214
+ var jr = Object.getOwnPropertyDescriptor, zr = (n, e, a, i) => {
16215
+ for (var r = i > 1 ? void 0 : i ? jr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16215
16216
  (u = n[o]) && (r = u(r) || r);
16216
16217
  return r;
16217
16218
  }, Xe = (n, e) => (a, i) => e(a, i, n);
16218
- function Ta(n, e, a, i) {
16219
+ function Ea(n, e, a, i) {
16219
16220
  const r = n.sequenceNodesBuilder(e);
16220
16221
  if (r == null)
16221
16222
  return e;
@@ -16226,7 +16227,7 @@ function Ta(n, e, a, i) {
16226
16227
  continue;
16227
16228
  const { token: c } = m, l = Pe(c), { sheetName: p, unitId: T } = l;
16228
16229
  let L = l.range;
16229
- L.startAbsoluteRefType === je.ALL && L.endAbsoluteRefType === je.ALL || (L = ht(L, a, i), o.push({
16230
+ L.startAbsoluteRefType === je.ALL && L.endAbsoluteRefType === je.ALL || (L = qt(L, a, i), o.push({
16230
16231
  unitId: T,
16231
16232
  sheetName: p,
16232
16233
  range: L
@@ -16234,7 +16235,7 @@ function Ta(n, e, a, i) {
16234
16235
  }
16235
16236
  return o.map((u) => `${u.unitId}!${u.sheetName}!${u.range.startRow}!${u.range.endRow}!${u.range.startColumn}!${u.range.endColumn}`).join("|");
16236
16237
  }
16237
- let Gt = class extends z {
16238
+ let Ht = class extends z {
16238
16239
  constructor(n, e, a, i) {
16239
16240
  super(), this._refRangeService = n, this._lexerTreeBuilder = e, this._univerInstanceService = a, this._injector = i;
16240
16241
  }
@@ -16247,11 +16248,11 @@ let Gt = class extends z {
16247
16248
  const d = A.getUnitId(), S = N.getSheetId();
16248
16249
  if (d !== f || S !== m)
16249
16250
  return l;
16250
- const R = oa(T, i);
16251
+ const R = ua(T, i);
16251
16252
  let P = "";
16252
16253
  if (R) {
16253
- const h = R.startColumn - T.startColumn, M = R.startRow - T.startRow, U = ht(T, h, M);
16254
- L && I ? P = la(L, I, U) : I ? P = Ze(I, U) : P = Ce(U);
16254
+ const h = R.startColumn - T.startColumn, M = R.startRow - T.startRow, U = qt(T, h, M);
16255
+ L && I ? P = sa(L, I, U) : I ? P = Ze(I, U) : P = Ce(U);
16255
16256
  } else
16256
16257
  P = k.REF;
16257
16258
  return {
@@ -16270,11 +16271,11 @@ let Gt = class extends z {
16270
16271
  const N = r.get(A.token);
16271
16272
  if (N.unitId !== p || N.subUnitId !== T)
16272
16273
  return A;
16273
- const d = oa(N.range, m);
16274
+ const d = ua(N.range, m);
16274
16275
  let S = "";
16275
16276
  if (d) {
16276
- const R = d.startColumn - N.range.startColumn, P = d.startRow - N.range.startRow, h = ht(N.range, R, P);
16277
- N.unitId && N.sheetName ? S = la(N.unitId, N.sheetName, h) : N.sheetName ? S = Ze(N.sheetName, h) : S = Ce(h);
16277
+ const R = d.startColumn - N.range.startColumn, P = d.startRow - N.range.startRow, h = qt(N.range, R, P);
16278
+ N.unitId && N.sheetName ? S = sa(N.unitId, N.sheetName, h) : N.sheetName ? S = Ze(N.sheetName, h) : S = Ce(h);
16278
16279
  } else
16279
16280
  S = k.REF;
16280
16281
  return {
@@ -16328,7 +16329,7 @@ let Gt = class extends z {
16328
16329
  // eslint-disable-next-line max-lines-per-function
16329
16330
  registerRangeFormula(n, e, a, i, r) {
16330
16331
  const o = new $e(), u = i.map((m) => this._getFormulaDependcy(n, e, m, a)), f = (m) => {
16331
- const c = a[0].startRow, l = a[0].startColumn, p = [{ unitId: n, subUnitId: e, ranges: a }, ...u.flat()], T = [], L = Fn(this._injector, m);
16332
+ const c = a[0].startRow, l = a[0].startColumn, p = [{ unitId: n, subUnitId: e, ranges: a }, ...u.flat()], T = [], L = Bn(this._injector, m);
16332
16333
  for (const { unitId: I, subUnitId: A, ranges: N } of p)
16333
16334
  if (I === L.unitId && A === L.subUnitId) {
16334
16335
  const d = [], S = N[0].startRow, R = N[0].startColumn, P = S - c, h = R - l;
@@ -16350,12 +16351,12 @@ let Gt = class extends z {
16350
16351
  A.sort((P, h) => P.startRow - h.startRow || P.startColumn - h.startColumn);
16351
16352
  const N = /* @__PURE__ */ new Map();
16352
16353
  for (let P = 0; P < I.length; P++) {
16353
- const h = I[P], M = h.startRow, U = h.startColumn, q = M - c, x = U - l, F = Bn(h, m).sort((Z, oe) => Z.startRow - oe.startRow || Z.startColumn - oe.startColumn);
16354
+ const h = I[P], M = h.startRow, U = h.startColumn, q = M - c, x = U - l, F = vn(h, m).sort((Z, oe) => Z.startRow - oe.startRow || Z.startColumn - oe.startColumn);
16354
16355
  if (!F.length)
16355
16356
  continue;
16356
16357
  const B = F[0].startRow, ae = F[0].startColumn, O = B - c, ce = ae - l, ne = [];
16357
16358
  for (let Z = 0; Z < i.length; Z++) {
16358
- const oe = i[Z], ue = ye(oe), Fe = ue ? this._lexerTreeBuilder.moveFormulaRefOffset(oe, x, q) : oe, J = ue ? this.transformFormulaByEffectCommand(n, e, Fe, m) : Fe, Nt = Ta(this._lexerTreeBuilder, J, -ce, -O);
16359
+ const oe = i[Z], ue = ye(oe), Fe = ue ? this._lexerTreeBuilder.moveFormulaRefOffset(oe, x, q) : oe, J = ue ? this.transformFormulaByEffectCommand(n, e, Fe, m) : Fe, Nt = Ea(this._lexerTreeBuilder, J, -ce, -O);
16359
16360
  ne.push({
16360
16361
  newFormula: J,
16361
16362
  orginFormula: Nt
@@ -16368,7 +16369,7 @@ let Gt = class extends z {
16368
16369
  };
16369
16370
  N.has(le.key) ? N.get(le.key).push(le) : N.set(le.key, [le]);
16370
16371
  }
16371
- const d = i.map((P) => Ta(this._lexerTreeBuilder, P, 0, 0)).join("_");
16372
+ const d = i.map((P) => Ea(this._lexerTreeBuilder, P, 0, 0)).join("_");
16372
16373
  if (A.length > 0) {
16373
16374
  const P = A[0].startRow, h = A[0].startColumn, M = [];
16374
16375
  for (let q = 0; q < i.length; q++) {
@@ -16414,54 +16415,54 @@ let Gt = class extends z {
16414
16415
  }), o;
16415
16416
  }
16416
16417
  };
16417
- Gt = jr([
16418
- Xe(0, H(Un)),
16418
+ Ht = zr([
16419
+ Xe(0, H(Fn)),
16419
16420
  Xe(1, H(Pt)),
16420
16421
  Xe(2, Ee),
16421
16422
  Xe(3, H(st))
16422
- ], Gt);
16423
- var zr = Object.getOwnPropertyDescriptor, Zr = (n, e, a, i) => {
16424
- for (var r = i > 1 ? void 0 : i ? zr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16423
+ ], Ht);
16424
+ var Zr = Object.getOwnPropertyDescriptor, Jr = (n, e, a, i) => {
16425
+ for (var r = i > 1 ? void 0 : i ? Zr(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16425
16426
  (u = n[o]) && (r = u(r) || r);
16426
16427
  return r;
16427
- }, Jr = (n, e) => (a, i) => e(a, i, n);
16428
- const Qt = "sheets-formula.remote-register-function.service", Za = Wt(Qt);
16428
+ }, eo = (n, e) => (a, i) => e(a, i, n);
16429
+ const $t = "sheets-formula.remote-register-function.service", Za = Kt($t);
16429
16430
  let mt = class {
16430
16431
  constructor(n) {
16431
16432
  this._functionService = n;
16432
16433
  }
16433
16434
  async registerFunctions(n) {
16434
- const e = n.map(([a, i]) => eo(a, i));
16435
+ const e = n.map(([a, i]) => to(a, i));
16435
16436
  this._functionService.registerExecutors(...e);
16436
16437
  }
16437
16438
  async registerAsyncFunctions(n) {
16438
- const e = n.map(([a, i]) => to(a, i));
16439
+ const e = n.map(([a, i]) => ao(a, i));
16439
16440
  this._functionService.registerExecutors(...e);
16440
16441
  }
16441
16442
  async unregisterFunctions(n) {
16442
16443
  this._functionService.unregisterExecutors(...n), this._functionService.unregisterDescriptions(...n), this._functionService.deleteFormulaAstCacheKey(...n);
16443
16444
  }
16444
16445
  };
16445
- mt = Zr([
16446
- Jr(0, Tt)
16446
+ mt = Jr([
16447
+ eo(0, Tt)
16447
16448
  ], mt);
16448
- function eo(n, e) {
16449
- const a = new vt(e), i = new Function(`return ${n}`)();
16449
+ function to(n, e) {
16450
+ const a = new Vt(e), i = new Function(`return ${n}`)();
16450
16451
  return a.calculateCustom = i, a;
16451
16452
  }
16452
- function to(n, e) {
16453
+ function ao(n, e) {
16453
16454
  const a = new Ya(e), i = new Function(`return ${n}`)();
16454
16455
  return a.calculateCustom = i, a;
16455
16456
  }
16456
- var ao = Object.getOwnPropertyDescriptor, no = (n, e, a, i) => {
16457
- for (var r = i > 1 ? void 0 : i ? ao(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16457
+ var no = Object.getOwnPropertyDescriptor, io = (n, e, a, i) => {
16458
+ for (var r = i > 1 ? void 0 : i ? no(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16458
16459
  (u = n[o]) && (r = u(r) || r);
16459
16460
  return r;
16460
16461
  }, We = (n, e) => (a, i) => e(a, i, n);
16461
- const io = Wt(
16462
+ const ro = Kt(
16462
16463
  "sheets-formula.register-function-service"
16463
16464
  );
16464
- let Ht = class extends z {
16465
+ let wt = class extends z {
16465
16466
  constructor(n, e, a, i) {
16466
16467
  super(), this._localeService = n, this._descriptionService = e, this._functionService = a, this._remoteRegisterFunctionService = i;
16467
16468
  }
@@ -16502,14 +16503,14 @@ let Ht = class extends z {
16502
16503
  u.add(this._descriptionService.registerDescriptions([m]));
16503
16504
  } else
16504
16505
  u.add(this._descriptionService.registerDescriptions([i]));
16505
- const f = o ? new Ya(e) : new vt(e);
16506
+ const f = o ? new Ya(e) : new Vt(e);
16506
16507
  return f.calculateCustom = a, this._functionService.registerExecutors(f), u.add(ee(() => this._functionService.unregisterExecutors(e))), u.add(ee(() => this._functionService.unregisterDescriptions(e))), u.add(ee(() => this._functionService.deleteFormulaAstCacheKey(e))), this._remoteRegisterFunctionService && (this._remoteRegisterFunctionService.registerAsyncFunctions([[a.toString(), e]]), u.add(
16507
16508
  ee(() => this._remoteRegisterFunctionService.unregisterFunctions([e]))
16508
16509
  )), u;
16509
16510
  }
16510
16511
  _registerLocalExecutors(n) {
16511
16512
  const e = n.map(([i, r]) => r), a = n.map(([i, r]) => {
16512
- const o = new vt(r);
16513
+ const o = new Vt(r);
16513
16514
  return o.calculateCustom = i, o;
16514
16515
  });
16515
16516
  return this._functionService.registerExecutors(...a), ee(() => this._functionService.unregisterExecutors(...e));
@@ -16519,31 +16520,31 @@ let Ht = class extends z {
16519
16520
  return this._remoteRegisterFunctionService.registerFunctions(a), ee(() => this._remoteRegisterFunctionService.unregisterFunctions(e));
16520
16521
  }
16521
16522
  };
16522
- Ht = no([
16523
- We(0, H(Xt)),
16523
+ wt = io([
16524
+ We(0, H(Wt)),
16524
16525
  We(1, H(Et)),
16525
16526
  We(2, Tt),
16526
16527
  We(3, Pn(Za))
16527
- ], Ht);
16528
- var ro = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, uo = (n, e, a) => e in n ? ro(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a, Ja = (n, e, a, i) => {
16529
- for (var r = i > 1 ? void 0 : i ? oo(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16528
+ ], wt);
16529
+ var oo = Object.defineProperty, uo = Object.getOwnPropertyDescriptor, mo = (n, e, a) => e in n ? oo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a, Ja = (n, e, a, i) => {
16530
+ for (var r = i > 1 ? void 0 : i ? uo(e, a) : e, o = n.length - 1, u; o >= 0; o--)
16530
16531
  (u = n[o]) && (r = u(r) || r);
16531
16532
  return r;
16532
- }, ft = (n, e) => (a, i) => e(a, i, n), It = (n, e, a) => uo(n, typeof e != "symbol" ? e + "" : e, a);
16533
+ }, ft = (n, e) => (a, i) => e(a, i, n), It = (n, e, a) => mo(n, typeof e != "symbol" ? e + "" : e, a);
16533
16534
  let ct = class extends Sa {
16534
- constructor(n = La, e, a) {
16535
+ constructor(n = Pa, e, a) {
16535
16536
  super(), this._config = n, this._injector = e, this._configService = a;
16536
16537
  const { ...i } = Aa(
16537
16538
  {},
16538
- La,
16539
+ Pa,
16539
16540
  this._config
16540
16541
  );
16541
- this._configService.setConfig(Si, i);
16542
+ this._configService.setConfig(Ai, i);
16542
16543
  }
16543
16544
  onStarting() {
16544
16545
  this._injector.add([mt]), this._injector.get(Ka).registerChannel(
16545
- Qt,
16546
- Ei(this._injector.get(mt))
16546
+ $t,
16547
+ Ii(this._injector.get(mt))
16547
16548
  );
16548
16549
  }
16549
16550
  };
@@ -16555,21 +16556,21 @@ ct = Ja([
16555
16556
  ft(2, be)
16556
16557
  ], ct);
16557
16558
  let lt = class extends Sa {
16558
- constructor(n = pa, e, a) {
16559
+ constructor(n = La, e, a) {
16559
16560
  super(), this._config = n, this._injector = e, this._configService = a;
16560
16561
  const { ...i } = Aa(
16561
16562
  {},
16562
- pa,
16563
+ La,
16563
16564
  this._config
16564
16565
  );
16565
16566
  this._configService.setConfig(Ue, i, { merge: !0 });
16566
16567
  }
16567
16568
  onStarting() {
16568
16569
  const n = this._injector, e = [
16569
- [io, { useClass: Ht }],
16570
- [Et, { useClass: Vt }],
16570
+ [ro, { useClass: wt }],
16571
+ [Et, { useClass: Gt }],
16571
16572
  [ot],
16572
- [Gt],
16573
+ [Ht],
16573
16574
  [et],
16574
16575
  [it],
16575
16576
  [Je],
@@ -16583,7 +16584,7 @@ let lt = class extends Sa {
16583
16584
  if (this._config.notExecuteFormula) {
16584
16585
  const a = n.get(Ka);
16585
16586
  e.push([Za, {
16586
- useFactory: () => Ii(a.requestChannel(Qt))
16587
+ useFactory: () => Ni(a.requestChannel($t))
16587
16588
  }]);
16588
16589
  }
16589
16590
  e.forEach((a) => n.add(a));
@@ -16596,7 +16597,7 @@ let lt = class extends Sa {
16596
16597
  [Je],
16597
16598
  [at],
16598
16599
  [tt]
16599
- ]), $t() && ve(this._injector, [
16600
+ ]), jt() && ve(this._injector, [
16600
16601
  [ge]
16601
16602
  ]);
16602
16603
  }
@@ -16604,20 +16605,20 @@ let lt = class extends Sa {
16604
16605
  ve(this._injector, [
16605
16606
  [rt],
16606
16607
  [ut]
16607
- ]), $t() || ve(this._injector, [
16608
+ ]), jt() || ve(this._injector, [
16608
16609
  [ge]
16609
16610
  ]);
16610
16611
  }
16611
16612
  };
16612
- It(lt, "pluginName", Er);
16613
+ It(lt, "pluginName", Ir);
16613
16614
  It(lt, "type", j.UNIVER_SHEET);
16614
16615
  lt = Ja([
16615
- Ra(Xa, vn),
16616
+ Ra(Xa, Vn),
16616
16617
  ft(1, H(st)),
16617
16618
  ft(2, be)
16618
16619
  ], lt);
16619
- function Lo(n, e, a, i) {
16620
- const r = n.get(ci), o = n.get(li), u = n.get(si), f = n.get(di);
16620
+ function Po(n, e, a, i) {
16621
+ const r = n.get(li), o = n.get(si), u = n.get(di), f = n.get(pi);
16621
16622
  r.load({
16622
16623
  formulaData: {},
16623
16624
  arrayFormulaCellData: {},
@@ -16633,22 +16634,22 @@ function Lo(n, e, a, i) {
16633
16634
  },
16634
16635
  dirtyUnitOtherFormulaMap: {}
16635
16636
  });
16636
- const m = o.treeBuilder(e), c = u.parse(m), l = f.execute(pi(c));
16637
- return Li(l);
16637
+ const m = o.treeBuilder(e), c = u.parse(m), l = f.execute(Li(c));
16638
+ return Pi(l);
16638
16639
  }
16639
16640
  export {
16640
16641
  Te as CalculationMode,
16641
- Vt as DescriptionService,
16642
- Gt as FormulaRefRangeService,
16642
+ Gt as DescriptionService,
16643
+ Ht as FormulaRefRangeService,
16643
16644
  Et as IDescriptionService,
16644
- io as IRegisterFunctionService,
16645
+ ro as IRegisterFunctionService,
16645
16646
  Za as IRemoteRegisterFunctionService,
16646
16647
  Je as ImageFormulaCellInterceptorController,
16647
- Ni as InsertFunctionCommand,
16648
+ Ri as InsertFunctionCommand,
16648
16649
  _e as OtherFormulaMarkDirty,
16649
16650
  Ue as PLUGIN_CONFIG_KEY_BASE,
16650
- Ri as QuickSumCommand,
16651
- Ht as RegisterFunctionService,
16651
+ Si as QuickSumCommand,
16652
+ wt as RegisterFunctionService,
16652
16653
  et as RegisterOtherFormulaService,
16653
16654
  mt as RemoteRegisterFunctionService,
16654
16655
  ge as TriggerCalculationController,
@@ -16656,5 +16657,5 @@ export {
16656
16657
  lt as UniverSheetsFormulaPlugin,
16657
16658
  tt as UpdateDefinedNameController,
16658
16659
  at as UpdateFormulaController,
16659
- Lo as calculateFormula
16660
+ Po as calculateFormula
16660
16661
  };