@univerjs/engine-formula 0.13.0-insiders.20251220-0a5ea4d → 0.14.0-insiders.20251222-4efcfbb

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,11 +1,11 @@
1
- var Fc = Object.defineProperty;
2
- var Bc = (i, a, e) => a in i ? Fc(i, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[a] = e;
3
- var A = (i, a, e) => Bc(i, typeof a != "symbol" ? a + "" : a, e);
4
- import { ObjectMatrix as me, CommandType as be, RANGE_TYPE as rt, AbsoluteRefType as Pe, Tools as Ge, createIdentifier as Je, Disposable as Se, IUniverInstanceService as ts, LRUMap as kc, hashAlgorithm as $c, moveRangeByOffset as Ra, isValidRange as Yc, isFormulaString as At, isFormulaId as Lt, Rectangle as fi, cellToRange as Hc, Inject as Re, UniverInstanceType as Ar, BooleanNumber as _o, LocaleService as Gc, BuildTextUtils as Wc, LocaleType as Ct, numfmt as yt, isRealNum as q, getNumfmtParseValueFilter as ya, CellValueType as wt, isTextFormat as Qc, RichTextBuilder as qc, toDisposable as Xc, Injector as Ao, generateRandomId as Eo, sortRules as Kc, RTree as Fs, IConfigService as ba, AsyncLock as Zc, requestImmediateMacroTask as zc, ICommandService as lr, DataStreamTreeTokenType as Be, DisposableCollection as Jc, Optional as el, LifecycleService as tl, Plugin as rl, merge as nl, touchDependencies as ps } from "@univerjs/core";
5
- import { Subject as xt, BehaviorSubject as pa, distinctUntilChanged as Ro, combineLatest as sl, map as al, Observable as il, shareReplay as ol, bufferWhen as ul, filter as mi } from "rxjs";
6
- import { DataSyncPrimaryController as cl } from "@univerjs/rpc";
1
+ var Bc = Object.defineProperty;
2
+ var kc = (i, a, e) => a in i ? Bc(i, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[a] = e;
3
+ var A = (i, a, e) => kc(i, typeof a != "symbol" ? a + "" : a, e);
4
+ import { ObjectMatrix as me, CommandType as be, RANGE_TYPE as rt, AbsoluteRefType as Pe, Tools as Ge, createIdentifier as Je, Disposable as Se, IUniverInstanceService as ts, LRUMap as $c, hashAlgorithm as Yc, moveRangeByOffset as Ra, isValidRange as Hc, isFormulaString as At, isFormulaId as Lt, Rectangle as fi, cellToRange as Gc, Inject as Re, UniverInstanceType as Ar, BooleanNumber as Ao, LocaleService as Wc, BuildTextUtils as Qc, LocaleType as Ct, numfmt as yt, isRealNum as q, getNumfmtParseValueFilter as ya, CellValueType as wt, isTextFormat as qc, RichTextBuilder as Xc, toDisposable as Kc, Injector as Eo, generateRandomId as Ro, sortRules as Zc, RTree as Fs, IConfigService as ba, AsyncLock as zc, requestImmediateMacroTask as Jc, ICommandService as lr, DataStreamTreeTokenType as Be, DisposableCollection as el, Optional as tl, LifecycleService as rl, Plugin as nl, merge as sl, touchDependencies as ps } from "@univerjs/core";
5
+ import { Subject as xt, BehaviorSubject as pa, distinctUntilChanged as yo, combineLatest as al, map as il, Observable as ol, shareReplay as ul, bufferWhen as cl, filter as mi } from "rxjs";
6
+ import { DataSyncPrimaryController as ll } from "@univerjs/rpc";
7
7
  var ir = /* @__PURE__ */ ((i) => (i.FALSE = "FALSE", i.TRUE = "TRUE", i))(ir || {}), Ft = /* @__PURE__ */ ((i) => (i[i.SUCCESS = 0] = "SUCCESS", i[i.ERROR = 1] = "ERROR", i))(Ft || {}), we = /* @__PURE__ */ ((i) => (i.ALL = "#All", i.DATA = "#Data", i.HEADERS = "#Headers", i.TOTALS = "#Totals", i.THIS_ROW = "#This Row", i))(we || {}), ft = /* @__PURE__ */ ((i) => (i[i.FRONT = 0] = "FRONT", i[i.BACK = 1] = "BACK", i))(ft || {});
8
- function ll(i, a, e, t, r) {
8
+ function fl(i, a, e, t, r) {
9
9
  for (let n = 0, s = i.length; n < s; n++) {
10
10
  const o = i[n];
11
11
  if (a !== o.unitId || e !== o.sheetId)
@@ -18,7 +18,7 @@ function ll(i, a, e, t, r) {
18
18
  }
19
19
  var h = /* @__PURE__ */ ((i) => (i.DIV_BY_ZERO = "#DIV/0!", i.NAME = "#NAME?", i.VALUE = "#VALUE!", i.NUM = "#NUM!", i.NA = "#N/A", i.CYCLE = "#CYCLE!", i.REF = "#REF!", i.SPILL = "#SPILL!", i.CALC = "#CALC!", i.ERROR = "#ERROR!", i.CONNECT = "#GETTING_DATA", i.NULL = "#NULL!", i))(h || {});
20
20
  const fr = new Set(Object.values(h)), hi = [...new Set(Object.values(h).map((i) => i.length))];
21
- var fl = /* @__PURE__ */ ((i) => (i[i.Financial = 0] = "Financial", i[i.Date = 1] = "Date", i[i.Math = 2] = "Math", i[i.Statistical = 3] = "Statistical", i[i.Lookup = 4] = "Lookup", i[i.Database = 5] = "Database", i[i.Text = 6] = "Text", i[i.Logical = 7] = "Logical", i[i.Information = 8] = "Information", i[i.Engineering = 9] = "Engineering", i[i.Cube = 10] = "Cube", i[i.Compatibility = 11] = "Compatibility", i[i.Web = 12] = "Web", i[i.Array = 13] = "Array", i[i.Univer = 14] = "Univer", i[i.User = 15] = "User", i[i.DefinedName = 16] = "DefinedName", i[i.Table = 17] = "Table", i))(fl || {}), Z = /* @__PURE__ */ ((i) => (i.PLUS = "+", i.MINUS = "-", i.MULTIPLY = "*", i.DIVIDED = "/", i.CONCATENATE = "&", i.POWER = "^", i.EQUALS = "=", i.NOT_EQUAL = "<>", i.GREATER_THAN = ">", i.GREATER_THAN_OR_EQUAL = ">=", i.LESS_THAN = "<", i.LESS_THAN_OR_EQUAL = "<=", i))(Z || {}), Y = /* @__PURE__ */ ((i) => (i.EQUALS = "=", i.NOT_EQUAL = "<>", i.GREATER_THAN = ">", i.GREATER_THAN_OR_EQUAL = ">=", i.LESS_THAN = "<", i.LESS_THAN_OR_EQUAL = "<=", i))(Y || {});
21
+ var ml = /* @__PURE__ */ ((i) => (i[i.Financial = 0] = "Financial", i[i.Date = 1] = "Date", i[i.Math = 2] = "Math", i[i.Statistical = 3] = "Statistical", i[i.Lookup = 4] = "Lookup", i[i.Database = 5] = "Database", i[i.Text = 6] = "Text", i[i.Logical = 7] = "Logical", i[i.Information = 8] = "Information", i[i.Engineering = 9] = "Engineering", i[i.Cube = 10] = "Cube", i[i.Compatibility = 11] = "Compatibility", i[i.Web = 12] = "Web", i[i.Array = 13] = "Array", i[i.Univer = 14] = "Univer", i[i.User = 15] = "User", i[i.DefinedName = 16] = "DefinedName", i[i.Table = 17] = "Table", i))(ml || {}), Z = /* @__PURE__ */ ((i) => (i.PLUS = "+", i.MINUS = "-", i.MULTIPLY = "*", i.DIVIDED = "/", i.CONCATENATE = "&", i.POWER = "^", i.EQUALS = "=", i.NOT_EQUAL = "<>", i.GREATER_THAN = ">", i.GREATER_THAN_OR_EQUAL = ">=", i.LESS_THAN = "<", i.LESS_THAN_OR_EQUAL = "<=", i))(Z || {}), Y = /* @__PURE__ */ ((i) => (i.EQUALS = "=", i.NOT_EQUAL = "<>", i.GREATER_THAN = ">", i.GREATER_THAN_OR_EQUAL = ">=", i.LESS_THAN = "<", i.LESS_THAN_OR_EQUAL = "<=", i))(Y || {});
22
22
  const En = /* @__PURE__ */ new Map([
23
23
  ["<>", 4],
24
24
  ["<", 4],
@@ -33,7 +33,7 @@ const En = /* @__PURE__ */ new Map([
33
33
  ["*", 1],
34
34
  ["^", 0]
35
35
  // ^
36
- ]), Dt = new Set(En.keys()), ml = /* @__PURE__ */ new Set([
36
+ ]), Dt = new Set(En.keys()), hl = /* @__PURE__ */ new Set([
37
37
  "=",
38
38
  "<>",
39
39
  ">",
@@ -49,7 +49,7 @@ const Ns = /* @__PURE__ */ new Set([
49
49
  /* POUND */
50
50
  ]);
51
51
  var Le = /* @__PURE__ */ ((i) => (i.AT = "@", i.MINUS = "-", i.PLUS = "+", i))(Le || {});
52
- const hl = " ", yo = [
52
+ const gl = " ", bo = [
53
53
  ...Object.values(Y),
54
54
  ...Object.values(Z),
55
55
  ...Object.values(X),
@@ -57,10 +57,10 @@ const hl = " ", yo = [
57
57
  ...Object.values(Le)
58
58
  ];
59
59
  function Rn(i) {
60
- return yo.includes(i);
60
+ return bo.includes(i);
61
61
  }
62
- function gl(i) {
63
- for (const a of yo)
62
+ function dl(i) {
63
+ for (const a of bo)
64
64
  if (i.indexOf(a) > -1)
65
65
  return !0;
66
66
  return !1;
@@ -71,7 +71,7 @@ function eb(i) {
71
71
  function tb(i) {
72
72
  return Rn(i) && i !== X.CLOSE_BRACES && i !== X.CLOSE_BRACKET && i !== X.SINGLE_QUOTATION && i !== X.DOUBLE_QUOTATION || i === " ";
73
73
  }
74
- const dl = /* @__PURE__ */ new Set([
74
+ const Cl = /* @__PURE__ */ new Set([
75
75
  Z.PLUS,
76
76
  Z.MINUS,
77
77
  Z.MULTIPLY,
@@ -90,10 +90,10 @@ const dl = /* @__PURE__ */ new Set([
90
90
  X.OPEN_BRACES,
91
91
  X.OPEN_SQUARE_BRACKET
92
92
  ]);
93
- function Cl(i) {
94
- return dl.has(i);
93
+ function _l(i) {
94
+ return Cl.has(i);
95
95
  }
96
- const _l = /* @__PURE__ */ new Set([
96
+ const Al = /* @__PURE__ */ new Set([
97
97
  Z.PLUS,
98
98
  Z.MINUS,
99
99
  Z.MULTIPLY,
@@ -114,45 +114,45 @@ const _l = /* @__PURE__ */ new Set([
114
114
  nt.PERCENTAGE,
115
115
  nt.POUND
116
116
  ]);
117
- function Al(i) {
118
- return _l.has(i);
117
+ function El(i) {
118
+ return Al.has(i);
119
119
  }
120
- const Lr = '\\[([^\\[\\]\\/?:"<>|*\\\\]+)\\]', gi = new RegExp(Lr), El = "((?![\\[\\]\\/?*\\\\]).)*!", Yt = "$", rs = "\\s*?:\\s*?", Sn = "[A-Za-z]+", Dn = "[1-9][0-9]*", Pr = `'?(${Lr})?(${El})?'?`, Bs = `\\${Yt}?${Sn}\\${Yt}?${Dn}`, Rl = `^(${Le.AT})?${Pr}${Bs}${rs}${Bs}$`, di = new RegExp(Rl), yl = `^${Pr}\\s*?${Bs}(${nt.POUND})?$`, Ci = new RegExp(yl), bl = `^${Pr}\\${Yt}?${Dn}${rs}\\${Yt}?${Dn}$`, _i = new RegExp(bl), pl = `^${Pr}\\${Yt}?${Sn}${rs}\\${Yt}?${Sn}$`, Ai = new RegExp(pl), Nl = `^${Pr}\\s*?\\${Yt}?${Dn}$`, Ei = new RegExp(Nl), Vl = `^${Pr}\\s*?\\${Yt}?${Sn}$`, Ri = new RegExp(Vl), Br = "((?![~!@#$%^&*()_+<>?:,./;’,。、‘:“《》?~!@#¥%……()【】\\[\\]\\/\\\\]).)+", bo = "\\[#.+\\]\\s*?,\\s*?", wn = "\\[((?<!#).)*\\]", yi = `${wn}${rs}${wn}`, Ol = `^(${Lr})?${Br}$`, Ml = `^(${Lr})?${Br}(${wn}|\\[${bo}${wn}\\])+$`, Sl = `^(${Lr})?${Br}(\\[${yi}\\])?$|^${Br}(\\[${bo}${yi}\\])?$`, Dl = `^(${Lr})?${Br}\\[\\s*#([^\\]]+)\\s*\\]$`, bi = new RegExp(Ol), pi = new RegExp(Ml), Ni = new RegExp(Sl), Vi = new RegExp(Dl), wl = "{.*?}", Oi = new RegExp(wl, "g");
120
+ const Lr = '\\[([^\\[\\]\\/?:"<>|*\\\\]+)\\]', gi = new RegExp(Lr), Rl = "((?![\\[\\]\\/?*\\\\]).)*!", Yt = "$", rs = "\\s*?:\\s*?", Sn = "[A-Za-z]+", Dn = "[1-9][0-9]*", Pr = `'?(${Lr})?(${Rl})?'?`, Bs = `\\${Yt}?${Sn}\\${Yt}?${Dn}`, yl = `^(${Le.AT})?${Pr}${Bs}${rs}${Bs}$`, di = new RegExp(yl), bl = `^${Pr}\\s*?${Bs}(${nt.POUND})?$`, Ci = new RegExp(bl), pl = `^${Pr}\\${Yt}?${Dn}${rs}\\${Yt}?${Dn}$`, _i = new RegExp(pl), Nl = `^${Pr}\\${Yt}?${Sn}${rs}\\${Yt}?${Sn}$`, Ai = new RegExp(Nl), Vl = `^${Pr}\\s*?\\${Yt}?${Dn}$`, Ei = new RegExp(Vl), Ol = `^${Pr}\\s*?\\${Yt}?${Sn}$`, Ri = new RegExp(Ol), Br = "((?![~!@#$%^&*()_+<>?:,./;’,。、‘:“《》?~!@#¥%……()【】\\[\\]\\/\\\\]).)+", po = "\\[#.+\\]\\s*?,\\s*?", wn = "\\[((?<!#).)*\\]", yi = `${wn}${rs}${wn}`, Ml = `^(${Lr})?${Br}$`, Sl = `^(${Lr})?${Br}(${wn}|\\[${po}${wn}\\])+$`, Dl = `^(${Lr})?${Br}(\\[${yi}\\])?$|^${Br}(\\[${po}${yi}\\])?$`, wl = `^(${Lr})?${Br}\\[\\s*#([^\\]]+)\\s*\\]$`, bi = new RegExp(Ml), pi = new RegExp(Sl), Ni = new RegExp(Dl), Vi = new RegExp(wl), Ll = "{.*?}", Oi = new RegExp(Ll, "g");
121
121
  function Kr(i) {
122
122
  return Ci.lastIndex = 0, Ci.test(i);
123
123
  }
124
- function Ll(i) {
124
+ function Pl(i) {
125
125
  return di.lastIndex = 0, di.test(i);
126
126
  }
127
- function po(i) {
127
+ function No(i) {
128
128
  return _i.lastIndex = 0, _i.test(i);
129
129
  }
130
- function No(i) {
130
+ function Vo(i) {
131
131
  return Ai.lastIndex = 0, Ai.test(i);
132
132
  }
133
- function Vo(i) {
133
+ function Oo(i) {
134
134
  return Ei.lastIndex = 0, Ei.test(i);
135
135
  }
136
- function Oo(i) {
136
+ function Mo(i) {
137
137
  return Ri.lastIndex = 0, Ri.test(i);
138
138
  }
139
- function Pl(i) {
139
+ function xl(i) {
140
140
  return bi.lastIndex = 0, bi.test(i);
141
141
  }
142
- function xl(i) {
142
+ function jl(i) {
143
143
  return pi.lastIndex = 0, pi.test(i);
144
144
  }
145
- function jl(i) {
145
+ function Ul(i) {
146
146
  return Ni.lastIndex = 0, Ni.test(i);
147
147
  }
148
- function Ul(i) {
148
+ function Tl(i) {
149
149
  return Vi.lastIndex = 0, Vi.test(i);
150
150
  }
151
- function Tl(i) {
151
+ function vl(i) {
152
152
  return Oi.lastIndex = 0, Oi.test(i);
153
153
  }
154
- function Mo(i) {
155
- return Kr(i) || Ll(i) || po(i) || No(i);
154
+ function So(i) {
155
+ return Kr(i) || Pl(i) || No(i) || Vo(i);
156
156
  }
157
157
  function Mi(i) {
158
158
  const a = {};
@@ -166,7 +166,7 @@ function Mi(i) {
166
166
  });
167
167
  }), a;
168
168
  }
169
- function vl(i) {
169
+ function Il(i) {
170
170
  const a = {};
171
171
  for (const e in i) {
172
172
  const t = i[e];
@@ -182,13 +182,13 @@ function vl(i) {
182
182
  }
183
183
  return a;
184
184
  }
185
- const _t = "P_1", kt = "R_1", br = "L_1", Zr = "LR_1", So = "LO_1", Il = "LET", kr = "LAMBDA", Fl = "CUBE", Bl = /* @__PURE__ */ new Set(["RAND", "RANDBETWEEN", "NOW", "TODAY"]), cn = {
185
+ const _t = "P_1", kt = "R_1", br = "L_1", Zr = "LR_1", Do = "LO_1", Fl = "LET", kr = "LAMBDA", Bl = "CUBE", kl = /* @__PURE__ */ new Set(["RAND", "RANDBETWEEN", "NOW", "TODAY"]), cn = {
186
186
  type: be.MUTATION,
187
187
  id: "sheet.mutation.data-validation-formula-mark-dirty",
188
188
  handler() {
189
189
  return !0;
190
190
  }
191
- }, kl = {
191
+ }, $l = {
192
192
  id: "formula.mutation.register-function",
193
193
  type: be.MUTATION,
194
194
  handler: () => !0
@@ -196,7 +196,7 @@ const _t = "P_1", kt = "R_1", br = "L_1", Zr = "LR_1", So = "LO_1", Il = "LET",
196
196
  id: "formula.mutation.set-array-formula-data",
197
197
  type: be.MUTATION,
198
198
  handler: (i, a) => !0
199
- }, $l = /[^0-9]/g, Yl = /[^A-Za-z]/g;
199
+ }, Yl = /[^0-9]/g, Hl = /[^A-Za-z]/g;
200
200
  function yn(i) {
201
201
  let a = i[0] === "$";
202
202
  const e = i.substring(1);
@@ -240,18 +240,18 @@ function Ht(i) {
240
240
  const l = `${u.columnAbsoluteString}${Ge.chatAtABC(a)}${u.rowAbsoluteString}${e + 1}`, f = `${c.columnAbsoluteString}${Ge.chatAtABC(t)}${c.rowAbsoluteString}${r + 1}`;
241
241
  return l === f ? l : `${l}:${f}`;
242
242
  }
243
- function Hl(i, a) {
244
- return `${wo(i)}!${Ht(a)}`;
243
+ function Gl(i, a) {
244
+ return `${Lo(i)}!${Ht(a)}`;
245
245
  }
246
- function Gl(i, a, e) {
246
+ function Wl(i, a, e) {
247
247
  return Ys(i) || Ys(a) ? `'[${Hs(i)}]${Hs(a)}'!${Ht(e)}` : `[${i}]${a}!${Ht(e)}`;
248
248
  }
249
249
  function $s(i) {
250
250
  const { unitId: a, sheetName: e, range: t } = i;
251
- return a != null && a.length > 0 && e != null && e.length > 0 ? Gl(a, e, t) : e != null && e.length > 0 ? Hl(e, t) : Ht(t);
251
+ return a != null && a.length > 0 && e != null && e.length > 0 ? Wl(a, e, t) : e != null && e.length > 0 ? Gl(e, t) : Ht(t);
252
252
  }
253
253
  function Vs(i) {
254
- const a = Number.parseInt(i.replace($l, "")) - 1, e = Ge.ABCatNum(i.replace(Yl, "")), t = yn(i);
254
+ const a = Number.parseInt(i.replace(Yl, "")) - 1, e = Ge.ABCatNum(i.replace(Hl, "")), t = yn(i);
255
255
  return {
256
256
  row: a,
257
257
  column: e,
@@ -303,20 +303,20 @@ function $r(i) {
303
303
  }
304
304
  };
305
305
  }
306
- const Wl = ["LOG10"];
306
+ const Ql = ["LOG10"];
307
307
  function bn(i) {
308
- const a = Do(i);
309
- if (!Mo(a) || Wl.includes(a.toUpperCase().trim()))
308
+ const a = wo(i);
309
+ if (!So(a) || Ql.includes(a.toUpperCase().trim()))
310
310
  return !1;
311
311
  const { range: e } = $r(a);
312
312
  return !(e.endColumn >= 16384);
313
313
  }
314
- function Do(i) {
314
+ function wo(i) {
315
315
  const a = [];
316
316
  let e = !1;
317
317
  for (let t = 0, r = i.length; t < r; t++) {
318
318
  const n = i[t];
319
- if (n === hl && !e)
319
+ if (n === gl && !e)
320
320
  a.push(n);
321
321
  else {
322
322
  if (!e && (n === Le.AT || n === Le.MINUS || n === Le.PLUS))
@@ -328,7 +328,7 @@ function Do(i) {
328
328
  }
329
329
  function nb(i, a) {
330
330
  const e = (i == null ? void 0 : i.split(",")) || [];
331
- return i === "" || e.length === 0 ? [] : Ql(i) ? e.map((n) => {
331
+ return i === "" || e.length === 0 ? [] : ql(i) ? e.map((n) => {
332
332
  const s = $r(n);
333
333
  return {
334
334
  unitId: s.unitId,
@@ -338,13 +338,13 @@ function nb(i, a) {
338
338
  };
339
339
  }) : [];
340
340
  }
341
- function Ql(i) {
341
+ function ql(i) {
342
342
  return ((i == null ? void 0 : i.split(",")) || []).every((e) => bn(e.trim()));
343
343
  }
344
344
  function Ys(i) {
345
- return i.length === 0 ? !1 : !!(gl(i) || ql(i) || Xl(i) || Kl(i) || /[\s!$%^&*()+\-=\[\]{};':"\\|,.<>\/?()]/.test(i));
345
+ return i.length === 0 ? !1 : !!(dl(i) || Xl(i) || Kl(i) || Zl(i) || /[\s!$%^&*()+\-=\[\]{};':"\\|,.<>\/?()]/.test(i));
346
346
  }
347
- function wo(i) {
347
+ function Lo(i) {
348
348
  return Ys(i) ? `'${Hs(i)}'` : i;
349
349
  }
350
350
  function Hs(i) {
@@ -353,17 +353,17 @@ function Hs(i) {
353
353
  function Di(i) {
354
354
  return i.replace(/''/g, "'");
355
355
  }
356
- function ql(i) {
356
+ function Xl(i) {
357
357
  const a = i.match(/[1-9][0-9]{0,6}/);
358
358
  return /^[A-Z]+[1-9][0-9]{0,6}$/.test(i) && a !== null;
359
359
  }
360
- function Xl(i) {
360
+ function Kl(i) {
361
361
  return /^(R(-?[0-9]+)?C(-?[0-9]+)?|C(-?[0-9]+)?|R(-?[0-9]+)?)$/.test(i);
362
362
  }
363
- function Kl(i) {
363
+ function Zl(i) {
364
364
  return !new RegExp("^\\p{Letter}", "u").test(i.charAt(0));
365
365
  }
366
- function Zl(i) {
366
+ function zl(i) {
367
367
  const a = i.indexOf("[");
368
368
  return a === -1 ? { tableName: i, struct: "" } : {
369
369
  tableName: i.slice(0, a),
@@ -371,11 +371,11 @@ function Zl(i) {
371
371
  // include [[...]]
372
372
  };
373
373
  }
374
- var zl = Object.getOwnPropertyDescriptor, Jl = (i, a, e, t) => {
375
- for (var r = t > 1 ? void 0 : t ? zl(a, e) : a, n = i.length - 1, s; n >= 0; n--)
374
+ var Jl = Object.getOwnPropertyDescriptor, ef = (i, a, e, t) => {
375
+ for (var r = t > 1 ? void 0 : t ? Jl(a, e) : a, n = i.length - 1, s; n >= 0; n--)
376
376
  (s = i[n]) && (r = s(r) || r);
377
377
  return r;
378
- }, ef = (i, a) => (e, t) => a(e, t, i);
378
+ }, tf = (i, a) => (e, t) => a(e, t, i);
379
379
  let Gs = class extends Se {
380
380
  constructor(a) {
381
381
  super();
@@ -484,8 +484,8 @@ let Gs = class extends Se {
484
484
  this._nameCacheMap[a][t.name.toLowerCase()] = t;
485
485
  }
486
486
  };
487
- Gs = Jl([
488
- ef(0, ts)
487
+ Gs = ef([
488
+ tf(0, ts)
489
489
  ], Gs);
490
490
  const xr = Je("univer.formula.defined-names.service"), sb = (i, a) => {
491
491
  const { unitId: e, id: t } = a;
@@ -493,7 +493,7 @@ const xr = Je("univer.formula.defined-names.service"), sb = (i, a) => {
493
493
  ...i.get(xr).getValueById(e, t),
494
494
  unitId: e
495
495
  };
496
- }, Lo = {
496
+ }, Po = {
497
497
  id: "formula.mutation.set-defined-name",
498
498
  type: be.MUTATION,
499
499
  handler: (i, a) => {
@@ -510,7 +510,7 @@ const xr = Je("univer.formula.defined-names.service"), sb = (i, a) => {
510
510
  formulaOrRefStringWithPrefix: l
511
511
  }), !0;
512
512
  }
513
- }, tf = {
513
+ }, rf = {
514
514
  id: "formula.mutation.remove-defined-name",
515
515
  type: be.MUTATION,
516
516
  handler: (i, a) => {
@@ -527,23 +527,23 @@ const xr = Je("univer.formula.defined-names.service"), sb = (i, a) => {
527
527
  id: "formula.mutation.remove-feature-calculation",
528
528
  type: be.MUTATION,
529
529
  handler: () => !0
530
- }, Po = {
530
+ }, xo = {
531
531
  id: "formula.mutation.set-formula-calculation-start",
532
532
  type: be.MUTATION,
533
533
  handler: () => !0
534
- }, rf = {
534
+ }, nf = {
535
535
  id: "formula.mutation.set-trigger-formula-calculation-start",
536
536
  type: be.MUTATION,
537
537
  handler: () => !0
538
- }, xo = {
538
+ }, jo = {
539
539
  id: "formula.mutation.set-formula-string-batch-calculation",
540
540
  type: be.MUTATION,
541
541
  handler: () => !0
542
- }, jo = {
542
+ }, Uo = {
543
543
  id: "formula.mutation.set-formula-string-batch-calculation-result",
544
544
  type: be.MUTATION,
545
545
  handler: () => !0
546
- }, Uo = {
546
+ }, To = {
547
547
  id: "formula.mutation.set-formula-calculation-stop",
548
548
  type: be.MUTATION,
549
549
  handler: () => !0
@@ -555,7 +555,7 @@ const xr = Je("univer.formula.defined-names.service"), sb = (i, a) => {
555
555
  id: "formula.mutation.set-formula-calculation-result",
556
556
  type: be.MUTATION,
557
557
  handler: () => !0
558
- }, To = {
558
+ }, vo = {
559
559
  id: "formula.mutation.set-formula-dependency-calculation",
560
560
  type: be.MUTATION,
561
561
  handler: () => !0
@@ -563,35 +563,35 @@ const xr = Je("univer.formula.defined-names.service"), sb = (i, a) => {
563
563
  id: "formula.mutation.set-formula-dependency-calculation-result",
564
564
  type: be.MUTATION,
565
565
  handler: () => !0
566
- }, vo = {
566
+ }, Io = {
567
567
  id: "formula.mutation.set-cell-formula-dependency-calculation",
568
568
  type: be.MUTATION,
569
569
  handler: () => !0
570
- }, Io = {
570
+ }, Fo = {
571
571
  id: "formula.mutation.set-cell-formula-dependency-calculation-result",
572
572
  type: be.MUTATION,
573
573
  handler: () => !0
574
- }, Fo = {
574
+ }, Bo = {
575
575
  id: "formula.mutation.set-query-formula-dependency",
576
576
  type: be.MUTATION,
577
577
  handler: () => !0
578
- }, Bo = {
578
+ }, ko = {
579
579
  id: "formula.mutation.set-query-formula-dependency-result",
580
580
  type: be.MUTATION,
581
581
  handler: () => !0
582
- }, ko = {
582
+ }, $o = {
583
583
  id: "formula.mutation.set-query-formula-dependency-all",
584
584
  type: be.MUTATION,
585
585
  handler: () => !0
586
- }, $o = {
586
+ }, Yo = {
587
587
  id: "formula.mutation.set-query-formula-dependency-all-result",
588
588
  type: be.MUTATION,
589
589
  handler: () => !0
590
- }, Yo = {
590
+ }, Ho = {
591
591
  id: "formula.mutation.set-formula-data",
592
592
  type: be.MUTATION,
593
593
  handler: (i, a) => !0
594
- }, Ho = {
594
+ }, Go = {
595
595
  id: "formula.mutation.set-image-formula-data",
596
596
  type: be.MUTATION,
597
597
  handler: (i, a) => !0
@@ -604,7 +604,7 @@ const xr = Je("univer.formula.defined-names.service"), sb = (i, a) => {
604
604
  type: be.MUTATION,
605
605
  handler: () => !0
606
606
  };
607
- class nf extends Se {
607
+ class sf extends Se {
608
608
  constructor() {
609
609
  super();
610
610
  // 18.5.1.2 table (Table)
@@ -647,21 +647,21 @@ class nf extends Se {
647
647
  this._update$.next(null);
648
648
  }
649
649
  }
650
- const zr = Je("univer.formula.super-table.service"), sf = {
650
+ const zr = Je("univer.formula.super-table.service"), af = {
651
651
  id: "formula.mutation.set-super-table",
652
652
  type: be.MUTATION,
653
653
  handler: (i, a) => {
654
654
  const { unitId: e, tableName: t, reference: r } = a;
655
655
  return i.get(zr).registerTable(e, t, r), !0;
656
656
  }
657
- }, af = {
657
+ }, of = {
658
658
  id: "formula.mutation.remove-super-table",
659
659
  type: be.MUTATION,
660
660
  handler: (i, a) => {
661
661
  const { unitId: e, tableName: t } = a;
662
662
  return i.get(zr).remove(e, t), !0;
663
663
  }
664
- }, of = {
664
+ }, uf = {
665
665
  id: "formula.mutation.set-super-table-option",
666
666
  type: be.MUTATION,
667
667
  handler: (i, a) => {
@@ -672,7 +672,7 @@ const zr = Je("univer.formula.super-table.service"), sf = {
672
672
  class Ut {
673
673
  constructor(a) {
674
674
  A(this, "_cache");
675
- this._cache = new kc(a);
675
+ this._cache = new $c(a);
676
676
  }
677
677
  set(a, e) {
678
678
  const t = this._hash(a);
@@ -692,7 +692,7 @@ class Ut {
692
692
  this._cache.forEach(a, e);
693
693
  }
694
694
  _hash(a) {
695
- return a.length <= 64 ? a : $c(a).toString();
695
+ return a.length <= 64 ? a : Yc(a).toString();
696
696
  }
697
697
  }
698
698
  const Qs = new Ut(1e5);
@@ -703,7 +703,7 @@ function pr(i) {
703
703
  const e = $r(i);
704
704
  return Qs.set(i, e), $r(i);
705
705
  }
706
- function uf() {
706
+ function cf() {
707
707
  Qs.clear();
708
708
  }
709
709
  var He = /* @__PURE__ */ ((i) => (i[i.NORMAL = 0] = "NORMAL", i[i.NUMBER = 1] = "NUMBER", i[i.STRING = 2] = "STRING", i[i.FUNCTION = 3] = "FUNCTION", i[i.REFERENCE = 4] = "REFERENCE", i[i.ARRAY = 5] = "ARRAY", i[i.DEFINED_NAME = 6] = "DEFINED_NAME", i[i.TABLE = 7] = "TABLE", i))(He || {});
@@ -820,7 +820,7 @@ class ie {
820
820
  return r;
821
821
  }
822
822
  }
823
- const Go = 2e3, Os = new Ut(Go), Ms = new Ut(Go);
823
+ const Wo = 2e3, Os = new Ut(Wo), Ms = new Ut(Wo);
824
824
  class Yr extends Se {
825
825
  constructor() {
826
826
  super(...arguments);
@@ -984,7 +984,7 @@ class Yr extends Se {
984
984
  } else
985
985
  C = Ra(C, t, r, n);
986
986
  let E = "";
987
- Yc(C) ? E = $s({
987
+ Hc(C) ? E = $s({
988
988
  range: C,
989
989
  unitId: _,
990
990
  sheetName: d
@@ -1032,7 +1032,7 @@ class Yr extends Se {
1032
1032
  t.push(l);
1033
1033
  continue;
1034
1034
  }
1035
- const C = f.trim(), E = Do(C);
1035
+ const C = f.trim(), E = wo(C);
1036
1036
  r === !0 && C[C.length - 1] === X.DOUBLE_QUOTATION && C[0] !== X.OPEN_BRACES ? (r = !1, this._processPushSequenceNode(t, He.STRING, f, m, d, _)) : Kr(E) && bn(E) ? this._processPushSequenceNode(t, He.REFERENCE, f, m, d, _) : Ge.isStringNumber(C) ? this._processPushSequenceNode(t, He.NUMBER, f, m, d, _) : C.length > 0 && this._processPushSequenceNode(t, He.FUNCTION, f, m, d, _), (n !== s - 1 || !this._isLastMergeString(l)) && t.push(l);
1037
1037
  }
1038
1038
  return this._mergeSequenceNodeReference(t);
@@ -1473,11 +1473,11 @@ class Yr extends Se {
1473
1473
  */
1474
1474
  _formulaErrorLastTokenCheck(e, t) {
1475
1475
  const r = this._findPreviousToken(e, t) || "", n = e.length - 1 === t;
1476
- if (!n && this._isOperatorToken(r) || n && Cl(r))
1476
+ if (!n && this._isOperatorToken(r) || n && _l(r))
1477
1477
  return !0;
1478
1478
  if (Ns.has(r)) {
1479
1479
  const s = this._findSecondLastNonSpaceToken(e, t);
1480
- if (s == null || Al(s))
1480
+ if (s == null || El(s))
1481
1481
  return !0;
1482
1482
  }
1483
1483
  return !1;
@@ -1647,7 +1647,7 @@ class Yr extends Se {
1647
1647
  this._newAndPushCurrentLexerNode(_t, u);
1648
1648
  } else {
1649
1649
  const f = new ie();
1650
- f.setToken(Fl);
1650
+ f.setToken(Bl);
1651
1651
  const m = new ie();
1652
1652
  m.setToken(_t), m.changeToParent(f);
1653
1653
  const d = this._currentLexerNode.getParent();
@@ -1760,7 +1760,7 @@ class Yr extends Se {
1760
1760
  return null;
1761
1761
  }
1762
1762
  }
1763
- function cf(i, a, e, t, r, n, s) {
1763
+ function lf(i, a, e, t, r, n, s) {
1764
1764
  const o = (s == null ? void 0 : s.f) || "", u = (s == null ? void 0 : s.si) || "", c = At(o), l = Lt(u), f = i.getValue(r, n), m = (f == null ? void 0 : f.f) || "", d = (f == null ? void 0 : f.si) || "";
1765
1765
  function _() {
1766
1766
  var C;
@@ -1784,7 +1784,7 @@ function cf(i, a, e, t, r, n, s) {
1784
1784
  si: u
1785
1785
  })) : !c && !l && i.getValue(r, n) && (_(), i.realDeleteValue(r, n), a.setValue(r, n, null));
1786
1786
  }
1787
- function lf(i, a, e, t) {
1787
+ function ff(i, a, e, t) {
1788
1788
  const r = i == null ? void 0 : i.getValue(e, t);
1789
1789
  if (r == null)
1790
1790
  return !0;
@@ -1796,12 +1796,12 @@ function lf(i, a, e, t) {
1796
1796
  for (let l = s; l <= u; l++)
1797
1797
  for (let f = o; f <= c; f++) {
1798
1798
  let m = !1;
1799
- const d = Hc(l, f);
1799
+ const d = Gc(l, f);
1800
1800
  n.some((_) => fi.contains(_, d) ? (m = !0, !0) : !1), m || a.realDeleteValue(l, f);
1801
1801
  }
1802
1802
  }
1803
- var ff = Object.getOwnPropertyDescriptor, mf = (i, a, e, t) => {
1804
- for (var r = t > 1 ? void 0 : t ? ff(a, e) : a, n = i.length - 1, s; n >= 0; n--)
1803
+ var mf = Object.getOwnPropertyDescriptor, hf = (i, a, e, t) => {
1804
+ for (var r = t > 1 ? void 0 : t ? mf(a, e) : a, n = i.length - 1, s; n >= 0; n--)
1805
1805
  (s = i[n]) && (r = s(r) || r);
1806
1806
  return r;
1807
1807
  }, Li = (i, a) => (e, t) => a(e, t, i);
@@ -1981,7 +1981,7 @@ let Nr = class extends Se {
1981
1981
  const u = 0, c = s.getRowCount() - 1, l = {};
1982
1982
  for (let f = u; f <= c; f++)
1983
1983
  s.getRowVisible(f) || (l[f] = {
1984
- hd: _o.TRUE
1984
+ hd: Ao.TRUE
1985
1985
  });
1986
1986
  e[r][o] = l;
1987
1987
  }
@@ -1995,7 +1995,7 @@ let Nr = class extends Se {
1995
1995
  u[e] == null && (u[e] = {});
1996
1996
  const c = new me(u[e] || {}), l = new me();
1997
1997
  return r.forValue((f, m, d) => {
1998
- cf(c, l, n, s, f, m, d);
1998
+ lf(c, l, n, s, f, m, d);
1999
1999
  }), c.forValue((f, m, d) => {
2000
2000
  const _ = (d == null ? void 0 : d.f) || "", C = (d == null ? void 0 : d.si) || "";
2001
2001
  if (Lt(C)) {
@@ -2030,7 +2030,7 @@ let Nr = class extends Se {
2030
2030
  if (!s) return;
2031
2031
  const o = new me(s);
2032
2032
  new me(t).forValue((f, m, d) => {
2033
- lf(n, o, f, m);
2033
+ ff(n, o, f, m);
2034
2034
  });
2035
2035
  }
2036
2036
  updateImageFormulaData(a, e, t) {
@@ -2133,7 +2133,7 @@ let Nr = class extends Se {
2133
2133
  }), t;
2134
2134
  }
2135
2135
  };
2136
- Nr = mf([
2136
+ Nr = hf([
2137
2137
  Li(0, ts),
2138
2138
  Li(1, Re(Yr))
2139
2139
  ], Nr);
@@ -2169,7 +2169,7 @@ function Pi(i, a, e, t) {
2169
2169
  }
2170
2170
  };
2171
2171
  }
2172
- const hf = class qs {
2172
+ const gf = class qs {
2173
2173
  /**
2174
2174
  * Accept two comparable values and creates new instance of interval
2175
2175
  * Predicate Interval.comparable_less(low, high) supposed to return true on these values
@@ -2265,7 +2265,7 @@ class Zt {
2265
2265
  constructor(a = void 0, e = void 0, t = null, r = null, n = null, s = ye) {
2266
2266
  if (this.left = t, this.right = r, this.parent = n, this.color = s, this.item = { key: a, value: e }, a && a instanceof Array && a.length === 2 && !Number.isNaN(a[0]) && !Number.isNaN(a[1])) {
2267
2267
  let [o, u] = a;
2268
- o > u && ([o, u] = [u, o]), this.item.key = new hf(o, u);
2268
+ o > u && ([o, u] = [u, o]), this.item.key = new gf(o, u);
2269
2269
  }
2270
2270
  this.max = this.item.key ? this.item.key.max : void 0;
2271
2271
  }
@@ -2558,7 +2558,7 @@ class Sa {
2558
2558
  }
2559
2559
  }
2560
2560
  const Xs = Symbol("EMPTY_CELL");
2561
- class gf {
2561
+ class df {
2562
2562
  constructor() {
2563
2563
  /**
2564
2564
  * {
@@ -2683,8 +2683,8 @@ class gf {
2683
2683
  a.insert([n, s]);
2684
2684
  }
2685
2685
  }
2686
- const Ke = new gf(), Da = "engine-formula.config", Wo = 1, ab = "CYCLE_REFERENCE_COUNT", ib = "RETURN_DEPENDENCY_TREE", xi = {};
2687
- class df extends Se {
2686
+ const Ke = new df(), Da = "engine-formula.config", Qo = 1, ab = "CYCLE_REFERENCE_COUNT", ib = "RETURN_DEPENDENCY_TREE", xi = {};
2687
+ class Cf extends Se {
2688
2688
  constructor() {
2689
2689
  super(...arguments);
2690
2690
  A(this, "_getRowFilteredCallback");
@@ -2697,11 +2697,11 @@ class df extends Se {
2697
2697
  return this._getRowFilteredCallback && (n = this._getRowFilteredCallback(e, t, r)) != null ? n : !1;
2698
2698
  }
2699
2699
  }
2700
- const Qo = Je(
2700
+ const qo = Je(
2701
2701
  "univer.formula.sheet-row-filtered.service"
2702
2702
  );
2703
- var Cf = Object.getOwnPropertyDescriptor, _f = (i, a, e, t) => {
2704
- for (var r = t > 1 ? void 0 : t ? Cf(a, e) : a, n = i.length - 1, s; n >= 0; n--)
2703
+ var _f = Object.getOwnPropertyDescriptor, Af = (i, a, e, t) => {
2704
+ for (var r = t > 1 ? void 0 : t ? _f(a, e) : a, n = i.length - 1, s; n >= 0; n--)
2705
2705
  (s = i[n]) && (r = s(r) || r);
2706
2706
  return r;
2707
2707
  }, ln = (i, a) => (e, t) => a(e, t, i);
@@ -2935,17 +2935,17 @@ let Ks = class extends Se {
2935
2935
  }), this._unitData[e][t].rowData = a[e][t]);
2936
2936
  }
2937
2937
  };
2938
- Ks = _f([
2938
+ Ks = Af([
2939
2939
  ln(0, ts),
2940
- ln(1, Re(Gc)),
2940
+ ln(1, Re(Wc)),
2941
2941
  ln(2, Re(Nr)),
2942
- ln(3, Re(Qo))
2942
+ ln(3, Re(qo))
2943
2943
  ], Ks);
2944
2944
  const Qt = Je(
2945
2945
  "univer.formula.current-data.service"
2946
2946
  );
2947
- var Af = Object.getOwnPropertyDescriptor, Ef = (i, a, e, t) => {
2948
- for (var r = t > 1 ? void 0 : t ? Af(a, e) : a, n = i.length - 1, s; n >= 0; n--)
2947
+ var Ef = Object.getOwnPropertyDescriptor, Rf = (i, a, e, t) => {
2948
+ for (var r = t > 1 ? void 0 : t ? Ef(a, e) : a, n = i.length - 1, s; n >= 0; n--)
2949
2949
  (s = i[n]) && (r = s(r) || r);
2950
2950
  return r;
2951
2951
  }, Ss = (i, a) => (e, t) => a(e, t, i);
@@ -2969,7 +2969,7 @@ let Vr = class extends Se {
2969
2969
  return !0;
2970
2970
  }
2971
2971
  };
2972
- Vr = Ef([
2972
+ Vr = Rf([
2973
2973
  Ss(0, xr),
2974
2974
  Ss(1, Re(Yr)),
2975
2975
  Ss(2, Qt)
@@ -3018,7 +3018,7 @@ class as {
3018
3018
  return !1;
3019
3019
  }
3020
3020
  }
3021
- function Rf(i) {
3021
+ function yf(i) {
3022
3022
  var a;
3023
3023
  if (i === null)
3024
3024
  return 0;
@@ -3027,14 +3027,14 @@ function Rf(i) {
3027
3027
  if (e == null)
3028
3028
  return 0;
3029
3029
  const t = e.dataStream;
3030
- return Wc.transform.getPlainText(t);
3030
+ return Qc.transform.getPlainText(t);
3031
3031
  }
3032
3032
  return (a = i == null ? void 0 : i.v) != null ? a : 0;
3033
3033
  }
3034
3034
  function ob(i, a = !1) {
3035
3035
  return !a && !(At(i == null ? void 0 : i.f) || Lt(i == null ? void 0 : i.si)) ? null : typeof (i == null ? void 0 : i.v) == "string" && fr.has(i.v) ? i.v : null;
3036
3036
  }
3037
- function qo(i, a, e, t, r) {
3037
+ function Xo(i, a, e, t, r) {
3038
3038
  var s;
3039
3039
  const n = Object.keys(r);
3040
3040
  for (const o of n) {
@@ -3050,17 +3050,17 @@ var Jt = /* @__PURE__ */ ((i) => (i[i.MIN = 0] = "MIN", i[i.MAX = 1] = "MAX", i)
3050
3050
  function Pn() {
3051
3051
  return Intl && Intl.Collator ? new Intl.Collator(void 0, { numeric: !1 }).compare : (i, a) => i.localeCompare(a);
3052
3052
  }
3053
- function Xo(i) {
3053
+ function Ko(i) {
3054
3054
  return i.indexOf("*") > -1 || i.indexOf("?") > -1;
3055
3055
  }
3056
3056
  function Ds(i, a) {
3057
- const e = bf(a).replace(/~?[*?]/g, (r) => r.startsWith("~") ? `\\${r.substring(1)}` : r === "*" ? ".*" : r === "?" ? "." : r);
3057
+ const e = pf(a).replace(/~?[*?]/g, (r) => r.startsWith("~") ? `\\${r.substring(1)}` : r === "*" ? ".*" : r === "?" ? "." : r);
3058
3058
  return new RegExp(`^${e}$`).test(i);
3059
3059
  }
3060
3060
  function ji(i) {
3061
3061
  return i.replace(/~?[*?]/g, (a) => a.startsWith("~") ? a.substring(1) : " ");
3062
3062
  }
3063
- function yf(i, a, e) {
3063
+ function bf(i, a, e) {
3064
3064
  let t = !1;
3065
3065
  switch (e) {
3066
3066
  case Y.EQUALS:
@@ -3080,7 +3080,7 @@ function yf(i, a, e) {
3080
3080
  }
3081
3081
  return t;
3082
3082
  }
3083
- function bf(i) {
3083
+ function pf(i) {
3084
3084
  return i.replace(/[.+^${}()|[\]\\]/g, "\\$&");
3085
3085
  }
3086
3086
  function Zs(i) {
@@ -3098,7 +3098,7 @@ function Zs(i) {
3098
3098
  function zs(i) {
3099
3099
  return i === -2 ? 1 : 0;
3100
3100
  }
3101
- const pf = [
3101
+ const Nf = [
3102
3102
  "$",
3103
3103
  "£",
3104
3104
  "¥",
@@ -3126,7 +3126,7 @@ const pf = [
3126
3126
  "₽",
3127
3127
  "₾",
3128
3128
  "₿"
3129
- ], Nf = {
3129
+ ], Vf = {
3130
3130
  currency: 2,
3131
3131
  date: 4,
3132
3132
  datetime: 5,
@@ -3160,20 +3160,20 @@ function Ui(i) {
3160
3160
  const a = Js.get(i);
3161
3161
  if (a !== void 0)
3162
3162
  return a;
3163
- const e = Of(i);
3163
+ const e = Mf(i);
3164
3164
  return Js.set(i, e), e;
3165
3165
  }
3166
- function Vf() {
3166
+ function Of() {
3167
3167
  Js.clear();
3168
3168
  }
3169
- function Of(i) {
3170
- if (Mf(i))
3169
+ function Mf(i) {
3170
+ if (Sf(i))
3171
3171
  return 3;
3172
3172
  const a = yt.getFormatInfo(i).type || "unknown";
3173
- return Nf[a];
3173
+ return Vf[a];
3174
3174
  }
3175
- function Mf(i) {
3176
- return !!pf.find((a) => i.includes(a)) && i.startsWith("_(");
3175
+ function Sf(i) {
3176
+ return !!Nf.find((a) => i.includes(a)) && i.startsWith("_(");
3177
3177
  }
3178
3178
  function fn(i, a, e) {
3179
3179
  if (i === "")
@@ -3183,7 +3183,7 @@ function fn(i, a, e) {
3183
3183
  const t = Ui(i), r = Ui(a);
3184
3184
  return e === Z.PLUS || e === Z.MINUS ? t === 4 && r === 4 || t === 11 && r === 11 ? "" : a : e === Z.MULTIPLY || e === Z.DIVIDED ? t === 6 && r === 6 || t === 7 && r === 7 || t === 8 && r === 8 || t === 9 && r === 9 ? a : "" : i || a;
3185
3185
  }
3186
- const Sf = /* @__PURE__ */ new Map([
3186
+ const Df = /* @__PURE__ */ new Map([
3187
3187
  [Ct.EN_US, "$"],
3188
3188
  [Ct.RU_RU, "₽"],
3189
3189
  [Ct.VI_VN, "₫"],
@@ -3196,7 +3196,7 @@ const Sf = /* @__PURE__ */ new Map([
3196
3196
  [Ct.CA_ES, "€"]
3197
3197
  ]);
3198
3198
  function Ti(i) {
3199
- return Sf.get(i) || "$";
3199
+ return Df.get(i) || "$";
3200
3200
  }
3201
3201
  function et(i, a = 2) {
3202
3202
  let e = a;
@@ -3204,11 +3204,11 @@ function et(i, a = 2) {
3204
3204
  let t = "";
3205
3205
  return e > 0 && (t = `.${"0".repeat(e)}`), `"${Ti(i)}"#,##0${t}_);[Red]("${Ti(i)}"#,##0${t})`;
3206
3206
  }
3207
- function Df(i, a, e = 2) {
3207
+ function wf(i, a, e = 2) {
3208
3208
  return yt.format(et(i, e), a);
3209
3209
  }
3210
3210
  const wa = new Ut(1e5);
3211
- function wf(i) {
3211
+ function Lf(i) {
3212
3212
  let a = i;
3213
3213
  a.startsWith('"') && a.endsWith('"') && (a = a.slice(1, -1));
3214
3214
  const e = wa.get(a);
@@ -3239,7 +3239,7 @@ function ws(i, a, e) {
3239
3239
  pattern: e
3240
3240
  };
3241
3241
  }
3242
- function Lf() {
3242
+ function Pf() {
3243
3243
  wa.clear();
3244
3244
  }
3245
3245
  class qt extends as {
@@ -3546,7 +3546,7 @@ class qt extends as {
3546
3546
  return g.create(h.VALUE);
3547
3547
  }
3548
3548
  }
3549
- const Pf = 1e3, ea = new Ut(Pf);
3549
+ const xf = 1e3, ea = new Ut(xf);
3550
3550
  class g extends qt {
3551
3551
  constructor(a, e = "") {
3552
3552
  super(a), this._errorType = a, this._errorContent = e;
@@ -3656,7 +3656,7 @@ var _r = 9e15, Xt = 1e9, ta = "0123456789abcdef", xn = "2.3025850929940456840179
3656
3656
  // Whether to use cryptographically-secure random number generation, if available.
3657
3657
  crypto: !1
3658
3658
  // true/false
3659
- }, Ko, Pt, ue = !0, is = "[DecimalError] ", Gt = is + "Invalid argument: ", Zo = is + "Precision limit exceeded", zo = is + "crypto unavailable", Jo = "[object Decimal]", $e = Math.floor, Ue = Math.pow, xf = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, jf = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Uf = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, eu = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ht = 1e7, se = 7, Tf = 9007199254740991, vf = xn.length - 1, na = jn.length - 1, F = { toStringTag: Jo };
3659
+ }, Zo, Pt, ue = !0, is = "[DecimalError] ", Gt = is + "Invalid argument: ", zo = is + "Precision limit exceeded", Jo = is + "crypto unavailable", eu = "[object Decimal]", $e = Math.floor, Ue = Math.pow, jf = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Uf = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Tf = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, tu = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ht = 1e7, se = 7, vf = 9007199254740991, If = xn.length - 1, na = jn.length - 1, F = { toStringTag: eu };
3660
3660
  F.absoluteValue = F.abs = function() {
3661
3661
  var i = new this.constructor(this);
3662
3662
  return i.s < 0 && (i.s = 1), te(i);
@@ -3683,7 +3683,7 @@ F.comparedTo = F.cmp = function(i) {
3683
3683
  };
3684
3684
  F.cosine = F.cos = function() {
3685
3685
  var i, a, e = this, t = e.constructor;
3686
- return e.d ? e.d[0] ? (i = t.precision, a = t.rounding, t.precision = i + Math.max(e.e, e.sd()) + se, t.rounding = 1, e = If(t, au(t, e)), t.precision = i, t.rounding = a, te(Pt == 2 || Pt == 3 ? e.neg() : e, i, a, !0)) : new t(1) : new t(NaN);
3686
+ return e.d ? e.d[0] ? (i = t.precision, a = t.rounding, t.precision = i + Math.max(e.e, e.sd()) + se, t.rounding = 1, e = Ff(t, iu(t, e)), t.precision = i, t.rounding = a, te(Pt == 2 || Pt == 3 ? e.neg() : e, i, a, !0)) : new t(1) : new t(NaN);
3687
3687
  };
3688
3688
  F.cubeRoot = F.cbrt = function() {
3689
3689
  var i, a, e, t, r, n, s, o, u, c, l = this, f = l.constructor;
@@ -3911,7 +3911,7 @@ F.plus = F.add = function(i) {
3911
3911
  F.precision = F.sd = function(i) {
3912
3912
  var a, e = this;
3913
3913
  if (i !== void 0 && i !== !!i && i !== 1 && i !== 0) throw Error(Gt + i);
3914
- return e.d ? (a = tu(e.d), i && e.e + 1 > a && (a = e.e + 1)) : a = NaN, a;
3914
+ return e.d ? (a = ru(e.d), i && e.e + 1 > a && (a = e.e + 1)) : a = NaN, a;
3915
3915
  };
3916
3916
  F.round = function() {
3917
3917
  var i = this, a = i.constructor;
@@ -3919,7 +3919,7 @@ F.round = function() {
3919
3919
  };
3920
3920
  F.sine = F.sin = function() {
3921
3921
  var i, a, e = this, t = e.constructor;
3922
- return e.isFinite() ? e.isZero() ? new t(e) : (i = t.precision, a = t.rounding, t.precision = i + Math.max(e.e, e.sd()) + se, t.rounding = 1, e = Bf(t, au(t, e)), t.precision = i, t.rounding = a, te(Pt > 2 ? e.neg() : e, i, a, !0)) : new t(NaN);
3922
+ return e.isFinite() ? e.isZero() ? new t(e) : (i = t.precision, a = t.rounding, t.precision = i + Math.max(e.e, e.sd()) + se, t.rounding = 1, e = kf(t, iu(t, e)), t.precision = i, t.rounding = a, te(Pt > 2 ? e.neg() : e, i, a, !0)) : new t(NaN);
3923
3923
  };
3924
3924
  F.squareRoot = F.sqrt = function() {
3925
3925
  var i, a, e, t, r, n, s = this, o = s.d, u = s.e, c = s.s, l = s.constructor;
@@ -3974,7 +3974,7 @@ F.toFixed = function(i, a) {
3974
3974
  F.toFraction = function(i) {
3975
3975
  var a, e, t, r, n, s, o, u, c, l, f, m, d = this, _ = d.d, C = d.constructor;
3976
3976
  if (!_) return new C(d);
3977
- if (c = e = new C(1), t = u = new C(0), a = new C(t), n = a.e = tu(_) - d.e - 1, s = n % se, a.d[0] = Ue(10, s < 0 ? se + s : s), i == null)
3977
+ if (c = e = new C(1), t = u = new C(0), a = new C(t), n = a.e = ru(_) - d.e - 1, s = n % se, a.d[0] = Ue(10, s < 0 ? se + s : s), i == null)
3978
3978
  i = n > 0 ? a : c;
3979
3979
  else {
3980
3980
  if (o = new C(i), !o.isInt() || o.lt(c)) throw Error(Gt + o);
@@ -4010,8 +4010,8 @@ F.toPower = F.pow = function(i) {
4010
4010
  if (!o.d || !i.d || !o.d[0] || !i.d[0]) return new u(Ue(+o, c));
4011
4011
  if (o = new u(o), o.eq(1)) return o;
4012
4012
  if (t = u.precision, n = u.rounding, i.eq(1)) return te(o, t, n);
4013
- if (a = $e(i.e / se), a >= i.d.length - 1 && (e = c < 0 ? -c : c) <= Tf)
4014
- return r = ru(u, o, e, t), i.s < 0 ? new u(1).div(r) : te(r, t, n);
4013
+ if (a = $e(i.e / se), a >= i.d.length - 1 && (e = c < 0 ? -c : c) <= vf)
4014
+ return r = nu(u, o, e, t), i.s < 0 ? new u(1).div(r) : te(r, t, n);
4015
4015
  if (s = o.s, s < 0) {
4016
4016
  if (a < i.d.length - 1) return new u(NaN);
4017
4017
  if ((i.d[a] & 1) == 0 && (s = 1), o.e == 0 && o.d[0] == 1 && o.d.length == 1)
@@ -4066,7 +4066,7 @@ function Nn(i, a, e) {
4066
4066
  }
4067
4067
  return r.reverse();
4068
4068
  }
4069
- function If(i, a) {
4069
+ function Ff(i, a) {
4070
4070
  var e, t, r;
4071
4071
  if (a.isZero()) return a;
4072
4072
  t = a.d.length, t < 32 ? (e = Math.ceil(t / 3), r = (1 / us(4, e)).toString()) : (e = 16, r = "2.3283064365386962890625e-10"), i.precision += e, a = Or(i, 1, a.times(r), new i(1));
@@ -4129,7 +4129,7 @@ var Me = /* @__PURE__ */ (function() {
4129
4129
  y[0] || y.shift();
4130
4130
  }
4131
4131
  if (d == 1)
4132
- R.e = l, Ko = _;
4132
+ R.e = l, Zo = _;
4133
4133
  else {
4134
4134
  for (f = 1, m = y[0]; m >= 10; m /= 10) f++;
4135
4135
  R.e = f + l * d - 1, te(R, o ? n + R.e + 1 : n, s, _);
@@ -4173,7 +4173,7 @@ function te(i, a, e, t) {
4173
4173
  return ue && (i.e > d.maxE ? (i.d = null, i.e = NaN) : i.e < d.minE && (i.e = 0, i.d = [0])), i;
4174
4174
  }
4175
4175
  function pt(i, a, e) {
4176
- if (!i.isFinite()) return su(i);
4176
+ if (!i.isFinite()) return au(i);
4177
4177
  var t, r = i.e, n = Ie(i.d), s = n.length;
4178
4178
  return a ? (e && (t = e - s) > 0 ? n = n.charAt(0) + "." + n.slice(1) + It(t) : s > 1 && (n = n.charAt(0) + "." + n.slice(1)), n = n + (i.e < 0 ? "e" : "e+") + i.e) : r < 0 ? (n = "0." + It(-r - 1) + n, e && (t = e - s) > 0 && (n += It(t))) : r >= s ? (n += It(r + 1 - s), e && (t = e - r - 1) > 0 && (n = n + "." + It(t))) : ((t = r + 1) < s && (n = n.slice(0, t) + "." + n.slice(t)), e && (t = e - s) > 0 && (r + 1 === s && (n += "."), n += It(t))), n;
4179
4179
  }
@@ -4183,15 +4183,15 @@ function os(i, a) {
4183
4183
  return a;
4184
4184
  }
4185
4185
  function Un(i, a, e) {
4186
- if (a > vf)
4187
- throw ue = !0, e && (i.precision = e), Error(Zo);
4186
+ if (a > If)
4187
+ throw ue = !0, e && (i.precision = e), Error(zo);
4188
4188
  return te(new i(xn), a, 1, !0);
4189
4189
  }
4190
4190
  function Rt(i, a, e) {
4191
- if (a > na) throw Error(Zo);
4191
+ if (a > na) throw Error(zo);
4192
4192
  return te(new i(jn), a, e, !0);
4193
4193
  }
4194
- function tu(i) {
4194
+ function ru(i) {
4195
4195
  var a = i.length - 1, e = a * se + 1;
4196
4196
  if (a = i[a], a) {
4197
4197
  for (; a % 10 == 0; a /= 10) e--;
@@ -4203,7 +4203,7 @@ function It(i) {
4203
4203
  for (var a = ""; i--; ) a += "0";
4204
4204
  return a;
4205
4205
  }
4206
- function ru(i, a, e, t) {
4206
+ function nu(i, a, e, t) {
4207
4207
  var r, n = new i(1), s = Math.ceil(t / se + 4);
4208
4208
  for (ue = !1; ; ) {
4209
4209
  if (e % 2 && (n = n.times(a), Ii(n.d, s) && (r = !0)), e = $e(e / 2), e === 0) {
@@ -4217,7 +4217,7 @@ function ru(i, a, e, t) {
4217
4217
  function vi(i) {
4218
4218
  return i.d[i.d.length - 1] & 1;
4219
4219
  }
4220
- function nu(i, a, e) {
4220
+ function su(i, a, e) {
4221
4221
  for (var t, r, n = new i(a[0]), s = 0; ++s < a.length; ) {
4222
4222
  if (r = new i(a[s]), !r.s) {
4223
4223
  n = r;
@@ -4269,7 +4269,7 @@ function Bt(i, a) {
4269
4269
  u = c, r += 2;
4270
4270
  }
4271
4271
  }
4272
- function su(i) {
4272
+ function au(i) {
4273
4273
  return String(i.s * i.s / 0);
4274
4274
  }
4275
4275
  function Vn(i, a) {
@@ -4288,24 +4288,24 @@ function Vn(i, a) {
4288
4288
  i.e = 0, i.d = [0];
4289
4289
  return i;
4290
4290
  }
4291
- function Ff(i, a) {
4291
+ function Bf(i, a) {
4292
4292
  var e, t, r, n, s, o, u, c, l;
4293
4293
  if (a.indexOf("_") > -1) {
4294
- if (a = a.replace(/(\d)_(?=\d)/g, "$1"), eu.test(a)) return Vn(i, a);
4294
+ if (a = a.replace(/(\d)_(?=\d)/g, "$1"), tu.test(a)) return Vn(i, a);
4295
4295
  } else if (a === "Infinity" || a === "NaN")
4296
4296
  return +a || (i.s = NaN), i.e = NaN, i.d = null, i;
4297
- if (jf.test(a))
4297
+ if (Uf.test(a))
4298
4298
  e = 16, a = a.toLowerCase();
4299
- else if (xf.test(a))
4299
+ else if (jf.test(a))
4300
4300
  e = 2;
4301
- else if (Uf.test(a))
4301
+ else if (Tf.test(a))
4302
4302
  e = 8;
4303
4303
  else
4304
4304
  throw Error(Gt + a);
4305
- for (n = a.search(/p/i), n > 0 ? (u = +a.slice(n + 1), a = a.substring(2, n)) : a = a.slice(2), n = a.indexOf("."), s = n >= 0, t = i.constructor, s && (a = a.replace(".", ""), o = a.length, n = o - n, r = ru(t, new t(e), n, n * 2)), c = Nn(a, e, ht), l = c.length - 1, n = l; c[n] === 0; --n) c.pop();
4305
+ for (n = a.search(/p/i), n > 0 ? (u = +a.slice(n + 1), a = a.substring(2, n)) : a = a.slice(2), n = a.indexOf("."), s = n >= 0, t = i.constructor, s && (a = a.replace(".", ""), o = a.length, n = o - n, r = nu(t, new t(e), n, n * 2)), c = Nn(a, e, ht), l = c.length - 1, n = l; c[n] === 0; --n) c.pop();
4306
4306
  return n < 0 ? new t(i.s * 0) : (i.e = os(c, l), i.d = c, ue = !1, s && (i = Me(i, r, o * 4)), u && (i = i.times(Math.abs(u) < 54 ? Ue(2, u) : x.pow(2, u))), ue = !0, i);
4307
4307
  }
4308
- function Bf(i, a) {
4308
+ function kf(i, a) {
4309
4309
  var e, t = a.d.length;
4310
4310
  if (t < 3)
4311
4311
  return a.isZero() ? a : Or(i, 2, a, a);
@@ -4329,7 +4329,7 @@ function us(i, a) {
4329
4329
  for (var e = i; --a; ) e *= i;
4330
4330
  return e;
4331
4331
  }
4332
- function au(i, a) {
4332
+ function iu(i, a) {
4333
4333
  var e, t = a.s < 0, r = Rt(i, i.precision, 1), n = r.times(0.5);
4334
4334
  if (a = a.abs(), a.lte(n))
4335
4335
  return Pt = t ? 4 : 1, a;
@@ -4345,13 +4345,13 @@ function au(i, a) {
4345
4345
  function Pa(i, a, e, t) {
4346
4346
  var r, n, s, o, u, c, l, f, m, d = i.constructor, _ = e !== void 0;
4347
4347
  if (_ ? (Qe(e, 1, Xt), t === void 0 ? t = d.rounding : Qe(t, 0, 8)) : (e = d.precision, t = d.rounding), !i.isFinite())
4348
- l = su(i);
4348
+ l = au(i);
4349
4349
  else {
4350
4350
  for (l = pt(i), s = l.indexOf("."), _ ? (r = 2, a == 16 ? e = e * 4 - 3 : a == 8 && (e = e * 3 - 2)) : r = a, s >= 0 && (l = l.replace(".", ""), m = new d(1), m.e = l.length - s, m.d = Nn(pt(m), 10, r), m.e = m.d.length), f = Nn(l, 10, r), n = u = f.length; f[--u] == 0; ) f.pop();
4351
4351
  if (!f[0])
4352
4352
  l = _ ? "0p+0" : "0";
4353
4353
  else {
4354
- if (s < 0 ? n-- : (i = new d(i), i.d = f, i.e = n, i = Me(i, m, e, t, 0, r), f = i.d, n = i.e, c = Ko), s = f[e], o = r / 2, c = c || f[e + 1] !== void 0, c = t < 4 ? (s !== void 0 || c) && (t === 0 || t === (i.s < 0 ? 3 : 2)) : s > o || s === o && (t === 4 || c || t === 6 && f[e - 1] & 1 || t === (i.s < 0 ? 8 : 7)), f.length = e, c)
4354
+ if (s < 0 ? n-- : (i = new d(i), i.d = f, i.e = n, i = Me(i, m, e, t, 0, r), f = i.d, n = i.e, c = Zo), s = f[e], o = r / 2, c = c || f[e + 1] !== void 0, c = t < 4 ? (s !== void 0 || c) && (t === 0 || t === (i.s < 0 ? 3 : 2)) : s > o || s === o && (t === 4 || c || t === 6 && f[e - 1] & 1 || t === (i.s < 0 ? 8 : 7)), f.length = e, c)
4355
4355
  for (; ++f[--e] > r - 1; )
4356
4356
  f[e] = 0, e || (++n, f.unshift(1));
4357
4357
  for (u = f.length; !f[u - 1]; --u) ;
@@ -4379,45 +4379,45 @@ function Ii(i, a) {
4379
4379
  if (i.length > a)
4380
4380
  return i.length = a, !0;
4381
4381
  }
4382
- function kf(i) {
4382
+ function $f(i) {
4383
4383
  return new this(i).abs();
4384
4384
  }
4385
- function $f(i) {
4385
+ function Yf(i) {
4386
4386
  return new this(i).acos();
4387
4387
  }
4388
- function Yf(i) {
4388
+ function Hf(i) {
4389
4389
  return new this(i).acosh();
4390
4390
  }
4391
- function Hf(i, a) {
4391
+ function Gf(i, a) {
4392
4392
  return new this(i).plus(a);
4393
4393
  }
4394
- function Gf(i) {
4394
+ function Wf(i) {
4395
4395
  return new this(i).asin();
4396
4396
  }
4397
- function Wf(i) {
4397
+ function Qf(i) {
4398
4398
  return new this(i).asinh();
4399
4399
  }
4400
- function Qf(i) {
4400
+ function qf(i) {
4401
4401
  return new this(i).atan();
4402
4402
  }
4403
- function qf(i) {
4403
+ function Xf(i) {
4404
4404
  return new this(i).atanh();
4405
4405
  }
4406
- function Xf(i, a) {
4406
+ function Kf(i, a) {
4407
4407
  i = new this(i), a = new this(a);
4408
4408
  var e, t = this.precision, r = this.rounding, n = t + 4;
4409
4409
  return !i.s || !a.s ? e = new this(NaN) : !i.d && !a.d ? (e = Rt(this, n, 1).times(a.s > 0 ? 0.25 : 0.75), e.s = i.s) : !a.d || i.isZero() ? (e = a.s < 0 ? Rt(this, t, r) : new this(0), e.s = i.s) : !i.d || a.isZero() ? (e = Rt(this, n, 1).times(0.5), e.s = i.s) : a.s < 0 ? (this.precision = n, this.rounding = 1, e = this.atan(Me(i, a, n, 1)), a = Rt(this, n, 1), this.precision = t, this.rounding = r, e = i.s < 0 ? e.minus(a) : e.plus(a)) : e = this.atan(Me(i, a, n, 1)), e;
4410
4410
  }
4411
- function Kf(i) {
4411
+ function Zf(i) {
4412
4412
  return new this(i).cbrt();
4413
4413
  }
4414
- function Zf(i) {
4414
+ function zf(i) {
4415
4415
  return te(i = new this(i), i.e + 1, 2);
4416
4416
  }
4417
- function zf(i, a, e) {
4417
+ function Jf(i, a, e) {
4418
4418
  return new this(i).clamp(a, e);
4419
4419
  }
4420
- function Jf(i) {
4420
+ function em(i) {
4421
4421
  if (!i || typeof i != "object") throw Error(is + "Object expected");
4422
4422
  var a, e, t, r = i.defaults === !0, n = [
4423
4423
  "precision",
@@ -4452,20 +4452,20 @@ function Jf(i) {
4452
4452
  if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
4453
4453
  this[e] = !0;
4454
4454
  else
4455
- throw Error(zo);
4455
+ throw Error(Jo);
4456
4456
  else
4457
4457
  this[e] = !1;
4458
4458
  else
4459
4459
  throw Error(Gt + e + ": " + t);
4460
4460
  return this;
4461
4461
  }
4462
- function em(i) {
4462
+ function tm(i) {
4463
4463
  return new this(i).cos();
4464
4464
  }
4465
- function tm(i) {
4465
+ function rm(i) {
4466
4466
  return new this(i).cosh();
4467
4467
  }
4468
- function iu(i) {
4468
+ function ou(i) {
4469
4469
  var a, e, t;
4470
4470
  function r(n) {
4471
4471
  var s, o, u, c = this;
@@ -4491,25 +4491,25 @@ function iu(i) {
4491
4491
  return Vn(c, n.toString());
4492
4492
  }
4493
4493
  if (u === "string")
4494
- return (o = n.charCodeAt(0)) === 45 ? (n = n.slice(1), c.s = -1) : (o === 43 && (n = n.slice(1)), c.s = 1), eu.test(n) ? Vn(c, n) : Ff(c, n);
4494
+ return (o = n.charCodeAt(0)) === 45 ? (n = n.slice(1), c.s = -1) : (o === 43 && (n = n.slice(1)), c.s = 1), tu.test(n) ? Vn(c, n) : Bf(c, n);
4495
4495
  if (u === "bigint")
4496
4496
  return n < 0 ? (n = -n, c.s = -1) : c.s = 1, Vn(c, n.toString());
4497
4497
  throw Error(Gt + n);
4498
4498
  }
4499
- if (r.prototype = F, r.ROUND_UP = 0, r.ROUND_DOWN = 1, r.ROUND_CEIL = 2, r.ROUND_FLOOR = 3, r.ROUND_HALF_UP = 4, r.ROUND_HALF_DOWN = 5, r.ROUND_HALF_EVEN = 6, r.ROUND_HALF_CEIL = 7, r.ROUND_HALF_FLOOR = 8, r.EUCLID = 9, r.config = r.set = Jf, r.clone = iu, r.isDecimal = Fi, r.abs = kf, r.acos = $f, r.acosh = Yf, r.add = Hf, r.asin = Gf, r.asinh = Wf, r.atan = Qf, r.atanh = qf, r.atan2 = Xf, r.cbrt = Kf, r.ceil = Zf, r.clamp = zf, r.cos = em, r.cosh = tm, r.div = rm, r.exp = nm, r.floor = sm, r.hypot = am, r.ln = im, r.log = om, r.log10 = cm, r.log2 = um, r.max = lm, r.min = fm, r.mod = mm, r.mul = hm, r.pow = gm, r.random = dm, r.round = Cm, r.sign = _m, r.sin = Am, r.sinh = Em, r.sqrt = Rm, r.sub = ym, r.sum = bm, r.tan = pm, r.tanh = Nm, r.trunc = Vm, i === void 0 && (i = {}), i && i.defaults !== !0)
4499
+ if (r.prototype = F, r.ROUND_UP = 0, r.ROUND_DOWN = 1, r.ROUND_CEIL = 2, r.ROUND_FLOOR = 3, r.ROUND_HALF_UP = 4, r.ROUND_HALF_DOWN = 5, r.ROUND_HALF_EVEN = 6, r.ROUND_HALF_CEIL = 7, r.ROUND_HALF_FLOOR = 8, r.EUCLID = 9, r.config = r.set = em, r.clone = ou, r.isDecimal = Fi, r.abs = $f, r.acos = Yf, r.acosh = Hf, r.add = Gf, r.asin = Wf, r.asinh = Qf, r.atan = qf, r.atanh = Xf, r.atan2 = Kf, r.cbrt = Zf, r.ceil = zf, r.clamp = Jf, r.cos = tm, r.cosh = rm, r.div = nm, r.exp = sm, r.floor = am, r.hypot = im, r.ln = om, r.log = um, r.log10 = lm, r.log2 = cm, r.max = fm, r.min = mm, r.mod = hm, r.mul = gm, r.pow = dm, r.random = Cm, r.round = _m, r.sign = Am, r.sin = Em, r.sinh = Rm, r.sqrt = ym, r.sub = bm, r.sum = pm, r.tan = Nm, r.tanh = Vm, r.trunc = Om, i === void 0 && (i = {}), i && i.defaults !== !0)
4500
4500
  for (t = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], a = 0; a < t.length; ) i.hasOwnProperty(e = t[a++]) || (i[e] = this[e]);
4501
4501
  return r.config(i), r;
4502
4502
  }
4503
- function rm(i, a) {
4503
+ function nm(i, a) {
4504
4504
  return new this(i).div(a);
4505
4505
  }
4506
- function nm(i) {
4506
+ function sm(i) {
4507
4507
  return new this(i).exp();
4508
4508
  }
4509
- function sm(i) {
4509
+ function am(i) {
4510
4510
  return te(i = new this(i), i.e + 1, 3);
4511
4511
  }
4512
- function am() {
4512
+ function im() {
4513
4513
  var i, a, e = new this(0);
4514
4514
  for (ue = !1, i = 0; i < arguments.length; )
4515
4515
  if (a = new this(arguments[i++]), a.d)
@@ -4522,36 +4522,36 @@ function am() {
4522
4522
  return ue = !0, e.sqrt();
4523
4523
  }
4524
4524
  function Fi(i) {
4525
- return i instanceof x || i && i.toStringTag === Jo || !1;
4525
+ return i instanceof x || i && i.toStringTag === eu || !1;
4526
4526
  }
4527
- function im(i) {
4527
+ function om(i) {
4528
4528
  return new this(i).ln();
4529
4529
  }
4530
- function om(i, a) {
4530
+ function um(i, a) {
4531
4531
  return new this(i).log(a);
4532
4532
  }
4533
- function um(i) {
4533
+ function cm(i) {
4534
4534
  return new this(i).log(2);
4535
4535
  }
4536
- function cm(i) {
4536
+ function lm(i) {
4537
4537
  return new this(i).log(10);
4538
4538
  }
4539
- function lm() {
4540
- return nu(this, arguments, -1);
4541
- }
4542
4539
  function fm() {
4543
- return nu(this, arguments, 1);
4540
+ return su(this, arguments, -1);
4544
4541
  }
4545
- function mm(i, a) {
4546
- return new this(i).mod(a);
4542
+ function mm() {
4543
+ return su(this, arguments, 1);
4547
4544
  }
4548
4545
  function hm(i, a) {
4549
- return new this(i).mul(a);
4546
+ return new this(i).mod(a);
4550
4547
  }
4551
4548
  function gm(i, a) {
4549
+ return new this(i).mul(a);
4550
+ }
4551
+ function dm(i, a) {
4552
4552
  return new this(i).pow(a);
4553
4553
  }
4554
- function dm(i) {
4554
+ function Cm(i) {
4555
4555
  var a, e, t, r, n = 0, s = new this(1), o = [];
4556
4556
  if (i === void 0 ? i = this.precision : Qe(i, 1, Xt), t = Math.ceil(i / se), this.crypto)
4557
4557
  if (crypto.getRandomValues)
@@ -4562,7 +4562,7 @@ function dm(i) {
4562
4562
  r = a[n] + (a[n + 1] << 8) + (a[n + 2] << 16) + ((a[n + 3] & 127) << 24), r >= 214e7 ? crypto.randomBytes(4).copy(a, n) : (o.push(r % 1e7), n += 4);
4563
4563
  n = t / 4;
4564
4564
  } else
4565
- throw Error(zo);
4565
+ throw Error(Jo);
4566
4566
  else for (; n < t; ) o[n++] = Math.random() * 1e7 | 0;
4567
4567
  for (t = o[--n], i %= se, t && i && (r = Ue(10, se - i), o[n] = (t / r | 0) * r); o[n] === 0; n--) o.pop();
4568
4568
  if (n < 0)
@@ -4574,48 +4574,48 @@ function dm(i) {
4574
4574
  }
4575
4575
  return s.e = e, s.d = o, s;
4576
4576
  }
4577
- function Cm(i) {
4577
+ function _m(i) {
4578
4578
  return te(i = new this(i), i.e + 1, this.rounding);
4579
4579
  }
4580
- function _m(i) {
4580
+ function Am(i) {
4581
4581
  return i = new this(i), i.d ? i.d[0] ? i.s : 0 * i.s : i.s || NaN;
4582
4582
  }
4583
- function Am(i) {
4583
+ function Em(i) {
4584
4584
  return new this(i).sin();
4585
4585
  }
4586
- function Em(i) {
4586
+ function Rm(i) {
4587
4587
  return new this(i).sinh();
4588
4588
  }
4589
- function Rm(i) {
4589
+ function ym(i) {
4590
4590
  return new this(i).sqrt();
4591
4591
  }
4592
- function ym(i, a) {
4592
+ function bm(i, a) {
4593
4593
  return new this(i).sub(a);
4594
4594
  }
4595
- function bm() {
4595
+ function pm() {
4596
4596
  var i = 0, a = arguments, e = new this(a[i]);
4597
4597
  for (ue = !1; e.s && ++i < a.length; ) e = e.plus(a[i]);
4598
4598
  return ue = !0, te(e, this.precision, this.rounding);
4599
4599
  }
4600
- function pm(i) {
4600
+ function Nm(i) {
4601
4601
  return new this(i).tan();
4602
4602
  }
4603
- function Nm(i) {
4603
+ function Vm(i) {
4604
4604
  return new this(i).tanh();
4605
4605
  }
4606
- function Vm(i) {
4606
+ function Om(i) {
4607
4607
  return te(i = new this(i), i.e + 1, 1);
4608
4608
  }
4609
4609
  F[Symbol.for("nodejs.util.inspect.custom")] = F.toString;
4610
4610
  F[Symbol.toStringTag] = "Decimal";
4611
- var x = F.constructor = iu(ra);
4611
+ var x = F.constructor = ou(ra);
4612
4612
  xn = new x(xn);
4613
4613
  jn = new x(jn);
4614
- function Om(i, a) {
4614
+ function Mm(i, a) {
4615
4615
  const e = i + a;
4616
4616
  return Number.isSafeInteger(e) ? e : new x(i).add(a).toNumber();
4617
4617
  }
4618
- function Mm(i, a) {
4618
+ function Sm(i, a) {
4619
4619
  const e = i - a;
4620
4620
  return Number.isSafeInteger(e) ? e : new x(i).sub(a).toNumber();
4621
4621
  }
@@ -4623,7 +4623,7 @@ function jr(i, a) {
4623
4623
  const e = i * a;
4624
4624
  return Number.isSafeInteger(e) ? e : new x(i).mul(a).toNumber();
4625
4625
  }
4626
- function Sm(i, a) {
4626
+ function Dm(i, a) {
4627
4627
  const e = i / a;
4628
4628
  return Number.isSafeInteger(e) ? e : new x(i).div(a).toNumber();
4629
4629
  }
@@ -4645,38 +4645,38 @@ function cs(i, a) {
4645
4645
  function Bi(i, a) {
4646
4646
  return i - a * Math.floor(i / a);
4647
4647
  }
4648
- function Dm(i, a) {
4648
+ function wm(i, a) {
4649
4649
  return i ** a;
4650
4650
  }
4651
- function wm(i) {
4651
+ function Lm(i) {
4652
4652
  return Math.sqrt(i);
4653
4653
  }
4654
4654
  function ki(i, a) {
4655
4655
  return i === a;
4656
4656
  }
4657
- function Lm(i, a) {
4657
+ function Pm(i, a) {
4658
4658
  return i > a;
4659
4659
  }
4660
- function Pm(i, a) {
4660
+ function xm(i, a) {
4661
4661
  return i >= a;
4662
4662
  }
4663
- function xm(i, a) {
4663
+ function jm(i, a) {
4664
4664
  return i < a;
4665
4665
  }
4666
- function jm(i, a) {
4666
+ function Um(i, a) {
4667
4667
  return i <= a;
4668
4668
  }
4669
4669
  function $i(i, a = 15) {
4670
4670
  return Math.floor(Math.abs(i)).toString().length >= a ? i : Number.parseFloat(i.toPrecision(a));
4671
4671
  }
4672
- function Um(i, a, e = Number.EPSILON) {
4672
+ function Tm(i, a, e = Number.EPSILON) {
4673
4673
  return Math.abs(i - a) < e;
4674
4674
  }
4675
4675
  function xa(i, a = 12, e = 1e-10) {
4676
4676
  const t = $i(i, a);
4677
- return Um(i, t, e) ? t : $i(i);
4677
+ return Tm(i, t, e) ? t : $i(i);
4678
4678
  }
4679
- function Tm(i) {
4679
+ function vm(i) {
4680
4680
  return i - Math.trunc(i);
4681
4681
  }
4682
4682
  const es = class es extends qt {
@@ -5077,7 +5077,7 @@ class b extends qt {
5077
5077
  return g.create(h.VALUE);
5078
5078
  if (!Number.isFinite(t) || !Number.isFinite(r))
5079
5079
  return g.create(h.NUM);
5080
- const n = Om(t, r);
5080
+ const n = Mm(t, r);
5081
5081
  return Number.isFinite(n) ? b.create(n) : g.create(h.NUM);
5082
5082
  }
5083
5083
  minusBy(e) {
@@ -5088,7 +5088,7 @@ class b extends qt {
5088
5088
  return g.create(h.VALUE);
5089
5089
  if (!Number.isFinite(t) || !Number.isFinite(r))
5090
5090
  return g.create(h.NUM);
5091
- const n = Mm(t, r);
5091
+ const n = Sm(t, r);
5092
5092
  return Number.isFinite(n) ? b.create(n) : g.create(h.NUM);
5093
5093
  }
5094
5094
  multiplyBy(e) {
@@ -5112,7 +5112,7 @@ class b extends qt {
5112
5112
  return g.create(h.NUM);
5113
5113
  if (r === 0)
5114
5114
  return g.create(h.DIV_BY_ZERO);
5115
- const n = Sm(t, r);
5115
+ const n = Dm(t, r);
5116
5116
  return Number.isFinite(n) ? b.create(n) : g.create(h.NUM);
5117
5117
  }
5118
5118
  compareBy(e, t, r = !1) {
@@ -5140,13 +5140,13 @@ class b extends qt {
5140
5140
  case Y.EQUALS:
5141
5141
  return ki(e, t);
5142
5142
  case Y.GREATER_THAN:
5143
- return Lm(e, t);
5144
- case Y.GREATER_THAN_OR_EQUAL:
5145
5143
  return Pm(e, t);
5146
- case Y.LESS_THAN:
5144
+ case Y.GREATER_THAN_OR_EQUAL:
5147
5145
  return xm(e, t);
5148
- case Y.LESS_THAN_OR_EQUAL:
5146
+ case Y.LESS_THAN:
5149
5147
  return jm(e, t);
5148
+ case Y.LESS_THAN_OR_EQUAL:
5149
+ return Um(e, t);
5150
5150
  case Y.NOT_EQUAL:
5151
5151
  return !ki(e, t);
5152
5152
  }
@@ -5179,14 +5179,14 @@ class b extends qt {
5179
5179
  return g.create(h.NUM);
5180
5180
  if (t === 0)
5181
5181
  return n < 0 ? g.create(h.DIV_BY_ZERO) : n === 0 ? g.create(h.NUM) : b.create(0);
5182
- const s = Dm(t, n);
5182
+ const s = wm(t, n);
5183
5183
  return Number.isFinite(s) ? b.create(s) : g.create(h.NUM);
5184
5184
  }
5185
5185
  sqrt() {
5186
5186
  const e = this.getValue();
5187
5187
  if (!Number.isFinite(e))
5188
5188
  return g.create(h.NUM);
5189
- const t = wm(e);
5189
+ const t = Lm(e);
5190
5190
  return Number.isFinite(t) ? b.create(t) : g.create(h.NUM);
5191
5191
  }
5192
5192
  cbrt() {
@@ -5397,7 +5397,7 @@ class b extends qt {
5397
5397
  return n;
5398
5398
  }
5399
5399
  }
5400
- const vm = 1e5, aa = new Ut(vm);
5400
+ const Im = 1e5, aa = new Ut(Im);
5401
5401
  class U extends qt {
5402
5402
  constructor(e) {
5403
5403
  super(e);
@@ -5462,7 +5462,7 @@ class U extends qt {
5462
5462
  let n = this.getValue(), s = !1;
5463
5463
  if (typeof e == "string") {
5464
5464
  let o = e;
5465
- if (r || (n = n.toLocaleLowerCase(), o = o.toLocaleLowerCase()), Xo(o))
5465
+ if (r || (n = n.toLocaleLowerCase(), o = o.toLocaleLowerCase()), Ko(o))
5466
5466
  return this._checkWildcard(o, t);
5467
5467
  s = this._compareString(n, o, t);
5468
5468
  } else typeof e == "number" ? s = this._compareNumber(t) : typeof e == "boolean" && (s = this._compareBoolean(t));
@@ -5516,7 +5516,7 @@ class U extends qt {
5516
5516
  return v.create(!0);
5517
5517
  }
5518
5518
  _checkWildcard(e, t) {
5519
- const r = this.getValue().toLocaleLowerCase(), n = yf(r, e, t);
5519
+ const r = this.getValue().toLocaleLowerCase(), n = bf(r, e, t);
5520
5520
  return v.create(n);
5521
5521
  }
5522
5522
  }
@@ -5531,7 +5531,7 @@ function ls(i) {
5531
5531
  i === 1 ? a = !0 : a = !1;
5532
5532
  return v.create(a);
5533
5533
  }
5534
- function Im(i) {
5534
+ function Fm(i) {
5535
5535
  let a = i.toString();
5536
5536
  return a.charAt(0) === '"' && a.charAt(a.length - 1) === '"' && (a = a.slice(1, -1), a = a.replace(/""/g, '"')), U.create(a);
5537
5537
  }
@@ -5547,10 +5547,10 @@ function Gr(i, a = "") {
5547
5547
  }
5548
5548
  return g.create(h.VALUE);
5549
5549
  }
5550
- function Fm(i) {
5550
+ function Bm(i) {
5551
5551
  return "";
5552
5552
  }
5553
- function ou(i = [], a = !1) {
5553
+ function uu(i = [], a = !1) {
5554
5554
  const e = [];
5555
5555
  for (let t = 0; t < i.length; t++) {
5556
5556
  const r = i[t];
@@ -5562,7 +5562,7 @@ function ou(i = [], a = !1) {
5562
5562
  }
5563
5563
  return e;
5564
5564
  }
5565
- function Bm(i = []) {
5565
+ function km(i = []) {
5566
5566
  const a = [];
5567
5567
  for (let e = 0; e < i.length; e++) {
5568
5568
  const t = i[e];
@@ -5576,7 +5576,7 @@ function Bm(i = []) {
5576
5576
  }
5577
5577
  class K extends qt {
5578
5578
  constructor(e) {
5579
- super(typeof e == "string" ? e : Fm());
5579
+ super(typeof e == "string" ? e : Bm());
5580
5580
  A(this, "_values", []);
5581
5581
  A(this, "_rowCount", -1);
5582
5582
  A(this, "_columnCount", -1);
@@ -5608,7 +5608,7 @@ class K extends qt {
5608
5608
  */
5609
5609
  static createByArray(e) {
5610
5610
  const r = {
5611
- calculateValueList: ou(e),
5611
+ calculateValueList: uu(e),
5612
5612
  rowCount: e.length,
5613
5613
  columnCount: e[0].length || 0,
5614
5614
  unitId: "",
@@ -5684,8 +5684,10 @@ class K extends qt {
5684
5684
  return this.get(e, t) || this._defaultValue;
5685
5685
  }
5686
5686
  set(e, t, r) {
5687
- if (e >= this._rowCount || t >= this._columnCount)
5688
- throw new Error("Exceeding array bounds.");
5687
+ if (e >= this._rowCount || t >= this._columnCount) {
5688
+ console.error("Exceeding array bounds.");
5689
+ return;
5690
+ }
5689
5691
  this._clearCache(), this._values[e][t] = r;
5690
5692
  }
5691
5693
  getRangePosition() {
@@ -6239,7 +6241,7 @@ class K extends qt {
6239
6241
  return this.map((t) => t.isError() ? t : e.ceil(t));
6240
6242
  }
6241
6243
  toValue() {
6242
- return Bm(this._values);
6244
+ return km(this._values);
6243
6245
  }
6244
6246
  _clearCache() {
6245
6247
  this._flattenCache = null, this._sliceCache.clear();
@@ -6308,7 +6310,7 @@ class K extends qt {
6308
6310
  f + u - 1
6309
6311
  );
6310
6312
  if (d.length > 0) {
6311
- if (s === Y.EQUALS && !(e.isString() && Xo(e.getValue()))) {
6313
+ if (s === Y.EQUALS && !(e.isString() && Ko(e.getValue()))) {
6312
6314
  const C = Ke.getCellPositions(
6313
6315
  c,
6314
6316
  l,
@@ -6568,21 +6570,21 @@ class jt {
6568
6570
  if (q(a))
6569
6571
  return b.create(Number(a));
6570
6572
  if (!e) {
6571
- const { isNumberPattern: n, value: s, pattern: o } = wf(a);
6573
+ const { isNumberPattern: n, value: s, pattern: o } = Lf(a);
6572
6574
  if (n)
6573
6575
  return b.create(s, o);
6574
6576
  }
6575
6577
  const r = a.replace(/\n/g, "").replace(/\r/g, "");
6576
- return !km(r) && Tl(r) ? K.create(r) : Im(a);
6578
+ return !$m(r) && vl(r) ? K.create(r) : Fm(a);
6577
6579
  }
6578
6580
  return typeof a == "number" ? Gr(a) : g.create(h.VALUE);
6579
6581
  }
6580
6582
  }
6581
- function km(i) {
6583
+ function $m(i) {
6582
6584
  const a = i.trim();
6583
6585
  return a.startsWith('"') && a.endsWith('"');
6584
6586
  }
6585
- const $m = 1e4, Er = new Ut($m);
6587
+ const Ym = 1e4, Er = new Ut(Ym);
6586
6588
  class Ur extends as {
6587
6589
  constructor(e) {
6588
6590
  super();
@@ -6834,12 +6836,12 @@ class Ur extends as {
6834
6836
  };
6835
6837
  }
6836
6838
  getCellValueObject(e) {
6837
- const t = Rf(e);
6839
+ const t = yf(e);
6838
6840
  if (fr.has(t))
6839
6841
  return g.create(t);
6840
6842
  if (e.t === wt.NUMBER) {
6841
6843
  const r = this._getPatternByCell(e);
6842
- return Qc(r) ? U.create(t.toString()) : Gr(t, r);
6844
+ return qc(r) ? U.create(t.toString()) : Gr(t, r);
6843
6845
  }
6844
6846
  return e.t === wt.STRING || e.t === wt.FORCE_STRING ? U.create(t.toString()) : e.t === wt.BOOLEAN ? ls(t) : jt.create(t);
6845
6847
  }
@@ -6880,7 +6882,7 @@ class Ur extends as {
6880
6882
  return (n == null ? void 0 : n.getValue(e, t)) || (o == null ? void 0 : o.getValue(e, t)) || this.getRuntimeFeatureCellValue(e, t) || (s == null ? void 0 : s.getValue(e, t)) || (r == null ? void 0 : r.cellData.getValue(e, t));
6881
6883
  }
6882
6884
  getRuntimeFeatureCellValue(e, t) {
6883
- return qo(e, t, this.getSheetId(), this.getUnitId(), this._runtimeFeatureCellData);
6885
+ return Xo(e, t, this.getSheetId(), this.getUnitId(), this._runtimeFeatureCellData);
6884
6886
  }
6885
6887
  getCellByPosition(e, t) {
6886
6888
  let r = e, n = t;
@@ -6964,7 +6966,7 @@ class Ur extends as {
6964
6966
  return K.create(e);
6965
6967
  }
6966
6968
  }
6967
- class Ym extends as {
6969
+ class Hm extends as {
6968
6970
  constructor(a) {
6969
6971
  super(), this._promise = a;
6970
6972
  }
@@ -6975,7 +6977,7 @@ class Ym extends as {
6975
6977
  return this._promise;
6976
6978
  }
6977
6979
  }
6978
- class Hm extends as {
6980
+ class Gm extends as {
6979
6981
  constructor(a) {
6980
6982
  super(), this._promiseList = a;
6981
6983
  }
@@ -7182,14 +7184,14 @@ function fs(i, a, e, t) {
7182
7184
  e = Y.EQUALS;
7183
7185
  return i.compare(a, e, t);
7184
7186
  }
7185
- function Gm(i, a) {
7187
+ function Wm(i, a) {
7186
7188
  const e = Math.max(i.isArray() ? i.getRowCount() : 1, a.isArray() ? a.getRowCount() : 1), t = Math.max(i.isArray() ? i.getColumnCount() : 1, a.isArray() ? a.getColumnCount() : 1), r = O(e, t, i), n = O(e, t, a);
7187
7189
  return r.mapValue((s, o, u) => {
7188
7190
  const c = n.get(o, u);
7189
7191
  return s != null && s.isError() ? s : c != null && c.isError() ? c : s != null && s.isBoolean() && (c != null && c.isBoolean()) ? ls(s.getValue() && c.getValue()) : v.create(!1);
7190
7192
  });
7191
7193
  }
7192
- function Wm(i) {
7194
+ function Qm(i) {
7193
7195
  const a = i.getValue();
7194
7196
  let e = 0;
7195
7197
  return a && (e = 1), b.create(e);
@@ -7197,7 +7199,7 @@ function Wm(i) {
7197
7199
  function Yi(i) {
7198
7200
  return i.isArray() && i.getRowCount() === 1 && i.getColumnCount() === 1 ? !0 : i.isReferenceObject() ? !!(i.isCell() || i.getRowCount() === 1 && i.getColumnCount() === 1) : (i = i, !!(i.isString() || i.isNumber() || i.isBoolean() || i.isError() || i.isNull()));
7199
7201
  }
7200
- function Qm(i) {
7202
+ function qm(i) {
7201
7203
  const a = i == null ? void 0 : i.getPattern();
7202
7204
  let e = {}, t = {};
7203
7205
  if (a && (e = {
@@ -7249,7 +7251,7 @@ function Qm(i) {
7249
7251
  };
7250
7252
  }
7251
7253
  }
7252
- function qm(i) {
7254
+ function Xm(i) {
7253
7255
  let a = 0, e = 0;
7254
7256
  return i.forEach((t, r) => {
7255
7257
  if (r % 2 === 1)
@@ -7331,7 +7333,7 @@ function en(i, a, e, t = !1) {
7331
7333
  r[l][f] = m;
7332
7334
  return;
7333
7335
  }
7334
- r[l][f] = Gm(r[l][f], m);
7336
+ r[l][f] = Wm(r[l][f], m);
7335
7337
  });
7336
7338
  }
7337
7339
  return r;
@@ -7340,7 +7342,7 @@ function ms(i, a, e) {
7340
7342
  const [t, r] = va(`${e.getValue()}`);
7341
7343
  return i.mapValue((n, s, o) => {
7342
7344
  const u = a.get(s, o);
7343
- if (u && Xm(u, r))
7345
+ if (u && Km(u, r))
7344
7346
  return n;
7345
7347
  if (u != null && u.isError() && r.isError() && u.getValue() === r.getValue())
7346
7348
  return v.create(!0);
@@ -7363,39 +7365,38 @@ function ms(i, a, e) {
7363
7365
  return v.create(!1);
7364
7366
  });
7365
7367
  }
7366
- function Xm(i, a) {
7368
+ function Km(i, a) {
7367
7369
  if (i.isNumber() && a.isNumber() || i.isBoolean() && a.isBoolean())
7368
7370
  return !0;
7369
7371
  const e = i.isString() && i.getValue() === "", t = a.isString() && a.getValue() === "";
7370
7372
  return !!((e || i.isNull()) && (t || a.isNull()) || i.isString() && !e && a.isString() && !t);
7371
7373
  }
7372
7374
  var Ir = /* @__PURE__ */ ((i) => (i[i.CELL = 0] = "CELL", i[i.COLUMN = 1] = "COLUMN", i[i.ROW = 2] = "ROW", i))(Ir || {});
7373
- function Km(i, a) {
7375
+ function Zm(i, a) {
7374
7376
  let e;
7375
7377
  switch (a) {
7376
- case 0:
7377
- e = new ja(i);
7378
- break;
7379
7378
  case 1:
7380
7379
  e = new Ua(i);
7381
7380
  break;
7382
7381
  case 2:
7383
7382
  e = new Ta(i);
7384
7383
  break;
7384
+ case 0:
7385
7385
  default:
7386
- throw new Error("Unknown reference object type");
7386
+ e = new ja(i);
7387
+ break;
7387
7388
  }
7388
7389
  return e;
7389
7390
  }
7390
- function Zm(i, a) {
7391
+ function zm(i, a) {
7391
7392
  let e;
7392
7393
  return i.isCell() && a.isCell() || i.isRow() && a.isRow() || i.isColumn() && a.isColumn() ? e = i.unionBy(a) : e = g.create(h.NAME), e;
7393
7394
  }
7394
- var zm = Object.getOwnPropertyDescriptor, Jm = (i, a, e, t) => {
7395
- for (var r = t > 1 ? void 0 : t ? zm(a, e) : a, n = i.length - 1, s; n >= 0; n--)
7395
+ var Jm = Object.getOwnPropertyDescriptor, eh = (i, a, e, t) => {
7396
+ for (var r = t > 1 ? void 0 : t ? Jm(a, e) : a, n = i.length - 1, s; n >= 0; n--)
7396
7397
  (s = i[n]) && (r = s(r) || r);
7397
7398
  return r;
7398
- }, eh = (i, a) => (e, t) => a(e, t, i);
7399
+ }, th = (i, a) => (e, t) => a(e, t, i);
7399
7400
  let oa = class extends Se {
7400
7401
  constructor(i) {
7401
7402
  super(), this._univerInstanceService = i;
@@ -7406,7 +7407,7 @@ let oa = class extends Se {
7406
7407
  v: ""
7407
7408
  };
7408
7409
  let e = i;
7409
- if (i.startsWith("#") && Mo(i.slice(1))) {
7410
+ if (i.startsWith("#") && So(i.slice(1))) {
7410
7411
  const { unitId: t, sheetName: r, range: n } = $r(i.slice(1)), s = this._univerInstanceService.getCurrentUnitOfType(Ar.UNIVER_SHEET);
7411
7412
  if (t === "" || t === s.getUnitId())
7412
7413
  if (r === "")
@@ -7417,18 +7418,18 @@ let oa = class extends Se {
7417
7418
  }
7418
7419
  } else Ge.isLegalUrl(i) && (e = Ge.normalizeUrl(i));
7419
7420
  return {
7420
- p: qc.create().insertLink(a, e).getData()
7421
+ p: Xc.create().insertLink(a, e).getData()
7421
7422
  };
7422
7423
  }
7423
7424
  };
7424
- oa = Jm([
7425
- eh(0, ts)
7425
+ oa = eh([
7426
+ th(0, ts)
7426
7427
  ], oa);
7427
- const uu = Je(
7428
+ const cu = Je(
7428
7429
  "univer.formula.hyperlink-engine-formula.service"
7429
7430
  );
7430
- var th = Object.getOwnPropertyDescriptor, rh = (i, a, e, t) => {
7431
- for (var r = t > 1 ? void 0 : t ? th(a, e) : a, n = i.length - 1, s; n >= 0; n--)
7431
+ var rh = Object.getOwnPropertyDescriptor, nh = (i, a, e, t) => {
7432
+ for (var r = t > 1 ? void 0 : t ? rh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
7432
7433
  (s = i[n]) && (r = s(r) || r);
7433
7434
  return r;
7434
7435
  }, Hi = (i, a) => (e, t) => a(e, t, i), tt = /* @__PURE__ */ ((i) => (i[i.IDLE = 0] = "IDLE", i[i.START = 1] = "START", i[i.START_DEPENDENCY = 2] = "START_DEPENDENCY", i[i.START_CALCULATION = 3] = "START_CALCULATION", i[i.CURRENTLY_CALCULATING = 4] = "CURRENTLY_CALCULATING", i[i.START_DEPENDENCY_ARRAY_FORMULA = 5] = "START_DEPENDENCY_ARRAY_FORMULA", i[i.START_CALCULATION_ARRAY_FORMULA = 6] = "START_CALCULATION_ARRAY_FORMULA", i[i.CURRENTLY_CALCULATING_ARRAY_FORMULA = 7] = "CURRENTLY_CALCULATING_ARRAY_FORMULA", i[i.CALCULATION_COMPLETED = 8] = "CALCULATION_COMPLETED", i))(tt || {}), Fr = /* @__PURE__ */ ((i) => (i[i.INITIAL = 0] = "INITIAL", i[i.STOP_EXECUTION = 1] = "STOP_EXECUTION", i[i.NOT_EXECUTED = 2] = "NOT_EXECUTED", i[i.SUCCESS = 3] = "SUCCESS", i))(Fr || {});
@@ -7556,7 +7557,7 @@ let ua = class extends Se {
7556
7557
  this._formulaExecuteStage = 0, this._runtimeData = {}, this._runtimeOtherData = {}, this._unitArrayFormulaRange = {}, this._unitArrayFormulaEmbeddedMap = {}, this._runtimeArrayFormulaCellData = {}, this._runtimeClearArrayFormulaCellData = {}, this._runtimeImageFormulaData = [], this._functionDefinitionPrivacyVar.clear(), this.markedAsInitialFunctionsExecuted(), this._stopState = !1, this._isCycleDependency = !1, this._totalFormulasToCalculate = 0, this._completedFormulasCount = 0, this.clearReferenceAndNumberformatCache();
7557
7558
  }
7558
7559
  clearReferenceAndNumberformatCache() {
7559
- Vf(), Lf(), uf();
7560
+ Of(), Pf(), cf();
7560
7561
  }
7561
7562
  setCurrent(a, e, t, r, n, s) {
7562
7563
  this._currentRow = a, this._currentColumn = e, this._currentRowCount = t, this._currentColumnCount = r, this._currentSubUnitId = n, this._currentUnitId = s;
@@ -7697,7 +7698,7 @@ let ua = class extends Se {
7697
7698
  return a != null && a.isString() && a.isHyperlink() ? this._hyperlinkEngineFormulaService.generateCellValue(
7698
7699
  a.getHyperlinkUrl(),
7699
7700
  a.getValue()
7700
- ) : Qm(a);
7701
+ ) : qm(a);
7701
7702
  }
7702
7703
  getUnitData() {
7703
7704
  return this._runtimeData;
@@ -7791,7 +7792,7 @@ let ua = class extends Se {
7791
7792
  return !1;
7792
7793
  }
7793
7794
  _getRuntimeFeatureCellValue(a, e, t, r) {
7794
- return qo(a, e, t, r, this._runtimeFeatureCellData);
7795
+ return Xo(a, e, t, r, this._runtimeFeatureCellData);
7795
7796
  }
7796
7797
  _arrayCellHasData(a) {
7797
7798
  return a == null ? !1 : a.v !== void 0;
@@ -7831,12 +7832,12 @@ let ua = class extends Se {
7831
7832
  }
7832
7833
  _isInDirtyRange(a, e, t, r) {
7833
7834
  const n = this._currentConfigService.getDirtyRanges();
7834
- return n.length === 0 ? !0 : ll(n, a, e, t, r);
7835
+ return n.length === 0 ? !0 : fl(n, a, e, t, r);
7835
7836
  }
7836
7837
  };
7837
- ua = rh([
7838
+ ua = nh([
7838
7839
  Hi(0, Qt),
7839
- Hi(1, uu)
7840
+ Hi(1, cu)
7840
7841
  ], ua);
7841
7842
  const Nt = Je("univer.formula.runtime.service");
7842
7843
  var oe = /* @__PURE__ */ ((i) => (i[i.REFERENCE = 1] = "REFERENCE", i[i.VALUE = 2] = "VALUE", i[i.OPERATOR = 3] = "OPERATOR", i[i.FUNCTION = 4] = "FUNCTION", i[i.LAMBDA = 5] = "LAMBDA", i[i.LAMBDA_PARAMETER = 6] = "LAMBDA_PARAMETER", i[i.ERROR = 7] = "ERROR", i[i.BASE = 8] = "BASE", i[i.ROOT = 9] = "ROOT", i[i.UNION = 10] = "UNION", i[i.PREFIX = 11] = "PREFIX", i[i.SUFFIX = 12] = "SUFFIX", i[i.NULL = 13] = "NULL", i))(oe || {});
@@ -7995,7 +7996,7 @@ class ca extends qe {
7995
7996
  e == null ? this.setValue(g.create(h.VALUE)) : this.setValue(e.getValue());
7996
7997
  }
7997
7998
  }
7998
- class cu extends Mt {
7999
+ class lu extends Mt {
7999
8000
  get zIndex() {
8000
8001
  return Vt.get(oe.ROOT) || Ot;
8001
8002
  }
@@ -8006,19 +8007,15 @@ class cu extends Mt {
8006
8007
  return new ca(kt);
8007
8008
  }
8008
8009
  }
8009
- const nh = 5e3, Wr = new Ut(nh);
8010
+ const sh = 5e3, Wr = new Ut(sh);
8010
8011
  function Gi(i, a, e, t, r) {
8011
8012
  let n = Wr.get(`${i}${a}`);
8012
- if (n && !lu(n, r))
8013
+ if (n && !fu(n, r))
8013
8014
  return n;
8014
8015
  const s = e.treeBuilder(a);
8015
- if (fr.has(s))
8016
- return Te.create(s);
8017
- if (n = t.parse(s), n == null)
8018
- throw new Error("astNode is null");
8019
- return Wr.set(`${i}${a}`, n), n;
8016
+ return fr.has(s) ? Te.create(s) : (n = t.parse(s), n == null ? (console.error("generateAstNode astNode is null"), Te.create(s)) : (Wr.set(`${i}${a}`, n), n));
8020
8017
  }
8021
- function lu(i, a) {
8018
+ function fu(i, a) {
8022
8019
  const e = a.getDirtyDefinedNameMap(), t = a.getExecuteUnitId();
8023
8020
  if (t != null && e[t] != null) {
8024
8021
  const r = Object.keys(e[t]);
@@ -8030,11 +8027,11 @@ function lu(i, a) {
8030
8027
  }
8031
8028
  return !1;
8032
8029
  }
8033
- function sh(i, a, e) {
8034
- return !!(a != null && lu(a, e));
8030
+ function ah(i, a, e) {
8031
+ return !!(a != null && fu(a, e));
8035
8032
  }
8036
8033
  const Kt = Je("univer.formula-function.service");
8037
- class ah extends Se {
8034
+ class ih extends Se {
8038
8035
  constructor() {
8039
8036
  super(...arguments);
8040
8037
  A(this, "_functionExecutors", /* @__PURE__ */ new Map());
@@ -8069,7 +8066,7 @@ class ah extends Se {
8069
8066
  const r = e[t];
8070
8067
  this._functionDescriptions.set(r.functionName, r);
8071
8068
  }
8072
- return Xc(() => {
8069
+ return Kc(() => {
8073
8070
  for (let t = 0; t < e.length; t++) {
8074
8071
  const r = e[t];
8075
8072
  this._functionDescriptions.delete(r.functionName);
@@ -8099,8 +8096,8 @@ class ah extends Se {
8099
8096
  });
8100
8097
  }
8101
8098
  }
8102
- var ke = /* @__PURE__ */ ((i) => (i.COMPARE = "COMPARE", i.DIVIDED = "DIVIDED", i.MINUS = "MINUS", i.MULTIPLY = "MULTIPLY", i.PLUS = "PLUS", i.UNION = "UNION", i.CUBE = "CUBE", i))(ke || {}), ih = Object.getOwnPropertyDescriptor, oh = (i, a, e, t) => {
8103
- for (var r = t > 1 ? void 0 : t ? ih(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8099
+ var ke = /* @__PURE__ */ ((i) => (i.COMPARE = "COMPARE", i.DIVIDED = "DIVIDED", i.MINUS = "MINUS", i.MULTIPLY = "MULTIPLY", i.PLUS = "PLUS", i.UNION = "UNION", i.CUBE = "CUBE", i))(ke || {}), oh = Object.getOwnPropertyDescriptor, uh = (i, a, e, t) => {
8100
+ for (var r = t > 1 ? void 0 : t ? oh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8104
8101
  (s = i[n]) && (r = s(r) || r);
8105
8102
  return r;
8106
8103
  }, Wi = (i, a) => (e, t) => a(e, t, i);
@@ -8113,8 +8110,10 @@ class vn extends qe {
8113
8110
  }
8114
8111
  execute() {
8115
8112
  let e = this.getChildren()[0].getValue(), t;
8116
- if (e == null)
8117
- throw new Error("object is null");
8113
+ if (e == null) {
8114
+ console.error("PrefixNode execute value is null"), this.setValue(g.create(h.VALUE));
8115
+ return;
8116
+ }
8118
8117
  this._operatorString === Le.MINUS ? (e.isReferenceObject() && (e = e.toArrayValueObject()), t = this._functionExecutor.calculate(
8119
8118
  b.create(0),
8120
8119
  e
@@ -8151,11 +8150,11 @@ let In = class extends Mt {
8151
8150
  return r ? new vn(this._runtimeService, e, r) : (console.error(`No function ${a}`), Te.create(h.NAME));
8152
8151
  }
8153
8152
  };
8154
- In = oh([
8153
+ In = uh([
8155
8154
  Wi(0, Kt),
8156
8155
  Wi(1, Nt)
8157
8156
  ], In);
8158
- function fu(i, a, e) {
8157
+ function mu(i, a, e) {
8159
8158
  let t, r, n = i;
8160
8159
  const s = n[0];
8161
8160
  let o = 0;
@@ -8165,12 +8164,12 @@ function fu(i, a, e) {
8165
8164
  } else s === Le.AT && (r = new vn(e, Le.AT), t && r.setParent(t), o++);
8166
8165
  return o > 0 && (n = n.slice(o)), { tokenTrim: n, minusPrefixNode: t, atPrefixNode: r };
8167
8166
  }
8168
- var uh = Object.getOwnPropertyDescriptor, ch = (i, a, e, t) => {
8169
- for (var r = t > 1 ? void 0 : t ? uh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8167
+ var ch = Object.getOwnPropertyDescriptor, lh = (i, a, e, t) => {
8168
+ for (var r = t > 1 ? void 0 : t ? ch(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8170
8169
  (s = i[n]) && (r = s(r) || r);
8171
8170
  return r;
8172
8171
  }, hr = (i, a) => (e, t) => a(e, t, i);
8173
- class lh extends qe {
8172
+ class fh extends qe {
8174
8173
  constructor(a, e, t, r, n, s) {
8175
8174
  super(a), this._functionExecutor = e, this._currentConfigService = t, this._runtimeService = r, this._definedNamesService = n, this._formulaDataModel = s, this._functionExecutor.isAsync() && this.setAsync(), this._functionExecutor.isAddress() && this.setAddress(), this._functionExecutor.needsLocale && this._setLocale(), this._functionExecutor.needsSheetsInfo && this._setSheetsInfo(), this._functionExecutor.needsFormulaDataModel && this._functionExecutor.setFormulaDataModel(this._formulaDataModel);
8176
8175
  }
@@ -8246,7 +8245,7 @@ class lh extends qe {
8246
8245
  var t;
8247
8246
  if (typeof a != "object" || a == null)
8248
8247
  return jt.create(a);
8249
- const e = ou(a);
8248
+ const e = uu(a);
8250
8249
  return K.create({
8251
8250
  calculateValueList: e,
8252
8251
  rowCount: e.length,
@@ -8327,7 +8326,7 @@ class lh extends qe {
8327
8326
  a.setFilteredOutRows(r);
8328
8327
  }
8329
8328
  }
8330
- class fh extends qe {
8329
+ class mh extends qe {
8331
8330
  constructor(a = "Error") {
8332
8331
  super(a);
8333
8332
  }
@@ -8350,7 +8349,7 @@ let Fn = class extends Mt {
8350
8349
  }
8351
8350
  create(i) {
8352
8351
  const a = this._functionService.getExecutor(i);
8353
- return a ? new lh(
8352
+ return a ? new fh(
8354
8353
  i,
8355
8354
  a,
8356
8355
  this._currentConfigService,
@@ -8362,7 +8361,7 @@ let Fn = class extends Mt {
8362
8361
  checkAndCreateNodeType(i) {
8363
8362
  if (typeof i == "string")
8364
8363
  return;
8365
- const a = i.getToken(), { tokenTrim: e, minusPrefixNode: t, atPrefixNode: r } = fu(a.trim(), this._functionService, this._runtimeService);
8364
+ const a = i.getToken(), { tokenTrim: e, minusPrefixNode: t, atPrefixNode: r } = mu(a.trim(), this._functionService, this._runtimeService);
8366
8365
  if (!Number.isNaN(Number(e)) && !this._isParentUnionNode(i))
8367
8366
  return Te.create(h.VALUE);
8368
8367
  const n = e.toUpperCase();
@@ -8376,19 +8375,19 @@ let Fn = class extends Mt {
8376
8375
  return ((e = (a = i.getParent()) == null ? void 0 : a.getParent()) == null ? void 0 : e.getToken()) === X.COLON;
8377
8376
  }
8378
8377
  };
8379
- Fn = ch([
8378
+ Fn = lh([
8380
8379
  hr(0, Kt),
8381
8380
  hr(1, Qt),
8382
8381
  hr(2, Nt),
8383
8382
  hr(3, xr),
8384
- hr(4, Re(Ao)),
8383
+ hr(4, Re(Eo)),
8385
8384
  hr(5, Re(Nr))
8386
8385
  ], Fn);
8387
- var mh = Object.getOwnPropertyDescriptor, hh = (i, a, e, t) => {
8388
- for (var r = t > 1 ? void 0 : t ? mh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8386
+ var hh = Object.getOwnPropertyDescriptor, gh = (i, a, e, t) => {
8387
+ for (var r = t > 1 ? void 0 : t ? hh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8389
8388
  (s = i[n]) && (r = s(r) || r);
8390
8389
  return r;
8391
- }, gh = (i, a) => (e, t) => a(e, t, i);
8390
+ }, dh = (i, a) => (e, t) => a(e, t, i);
8392
8391
  let Mr = class extends Se {
8393
8392
  constructor(i) {
8394
8393
  super(), this._runtimeService = i;
@@ -8458,20 +8457,20 @@ let Mr = class extends Se {
8458
8457
  return i.nodeType === oe.REFERENCE && i.setRefOffset(a, e), i.execute(), Ft.SUCCESS;
8459
8458
  }
8460
8459
  };
8461
- Mr = hh([
8462
- gh(0, Nt)
8460
+ Mr = gh([
8461
+ dh(0, Nt)
8463
8462
  ], Mr);
8464
- function mu(i) {
8463
+ function hu(i) {
8465
8464
  return i instanceof ie ? i.getToken() === br : !1;
8466
8465
  }
8467
- function dh(i) {
8468
- return i instanceof ie ? i.getToken() === So : !1;
8466
+ function Ch(i) {
8467
+ return i instanceof ie ? i.getToken() === Do : !1;
8469
8468
  }
8470
8469
  function Ia(i, a, e) {
8471
8470
  const t = i.getChildren(), r = t.length, n = t[0];
8472
8471
  for (let s = 0; s < r; s++) {
8473
8472
  const o = t[s];
8474
- if (!(mu(n) && s !== 0))
8473
+ if (!(hu(n) && s !== 0))
8475
8474
  if (o instanceof ie)
8476
8475
  Ia(o, a, e);
8477
8476
  else {
@@ -8483,7 +8482,7 @@ function Ia(i, a, e) {
8483
8482
  }
8484
8483
  }
8485
8484
  }
8486
- function Ch(i) {
8485
+ function _h(i) {
8487
8486
  let a = i;
8488
8487
  for (; a != null && a.getParent(); )
8489
8488
  a = a.getParent();
@@ -8496,7 +8495,7 @@ function Qi(i, a = 0, e = 0) {
8496
8495
  refOffsetY: e
8497
8496
  };
8498
8497
  }
8499
- function hu(i) {
8498
+ function gu(i) {
8500
8499
  if (!i)
8501
8500
  return;
8502
8501
  if (i.getToken() !== Zr)
@@ -8505,7 +8504,7 @@ function hu(i) {
8505
8504
  if (!e)
8506
8505
  return;
8507
8506
  const r = e.get(t);
8508
- return r == null && i.getValue() ? i : hu(r);
8507
+ return r == null && i.getValue() ? i : gu(r);
8509
8508
  }
8510
8509
  class Fa extends qt {
8511
8510
  constructor(e, t, r) {
@@ -8529,7 +8528,7 @@ class Fa extends qt {
8529
8528
  this._setLambdaPrivacyValueMap(e), this._setLambdaNodeValue(this._lambdaNode), this._lambdaNode.setNotEmpty(!1);
8530
8529
  let r;
8531
8530
  if (this._interpreter.checkAsyncNode(this._lambdaNode))
8532
- r = new Ym(this._interpreter.executeAsync(Qi(this._lambdaNode)));
8531
+ r = new Hm(this._interpreter.executeAsync(Qi(this._lambdaNode)));
8533
8532
  else {
8534
8533
  const n = this._interpreter.execute(Qi(this._lambdaNode));
8535
8534
  n.isReferenceObject() ? r = n.toArrayValueObject() : r = n;
@@ -8555,7 +8554,7 @@ class Fa extends qt {
8555
8554
  if (c)
8556
8555
  s.setValue(c);
8557
8556
  else {
8558
- const l = s.getCurrentLambdaPrivacyVar(), f = hu(l.get(u));
8557
+ const l = s.getCurrentLambdaPrivacyVar(), f = gu(l.get(u));
8559
8558
  f != null && s.setValue(f.getValue());
8560
8559
  }
8561
8560
  continue;
@@ -8573,12 +8572,12 @@ class Fa extends qt {
8573
8572
  return this._lambdaPrivacyVarKeys;
8574
8573
  }
8575
8574
  }
8576
- var _h = Object.getOwnPropertyDescriptor, Ah = (i, a, e, t) => {
8577
- for (var r = t > 1 ? void 0 : t ? _h(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8575
+ var Ah = Object.getOwnPropertyDescriptor, Eh = (i, a, e, t) => {
8576
+ for (var r = t > 1 ? void 0 : t ? Ah(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8578
8577
  (s = i[n]) && (r = s(r) || r);
8579
8578
  return r;
8580
8579
  }, qi = (i, a) => (e, t) => a(e, t, i);
8581
- class Eh extends qe {
8580
+ class Rh extends qe {
8582
8581
  constructor(e, t, r, n, s) {
8583
8582
  super(e);
8584
8583
  A(this, "_isNotEmpty", !0);
@@ -8638,16 +8637,16 @@ let Bn = class extends Mt {
8638
8637
  return Te.create(h.VALUE);
8639
8638
  } else
8640
8639
  t = a.slice(0, -1);
8641
- const n = Eo(8), s = /* @__PURE__ */ new Map();
8640
+ const n = Ro(8), s = /* @__PURE__ */ new Map();
8642
8641
  for (let o = 0; o < t.length; o++) {
8643
8642
  const u = t[o];
8644
8643
  if (u instanceof ie) {
8645
8644
  const c = u.getChildren()[0];
8646
- u.setToken(So), s.set(c.trim(), void 0);
8645
+ u.setToken(Do), s.set(c.trim(), void 0);
8647
8646
  } else
8648
8647
  return Te.create(h.VALUE);
8649
8648
  }
8650
- return this._runtimeService.registerFunctionDefinitionPrivacyVar(n, s), this._updateLambdaStatement(r, n, s), new Eh(i.getToken(), n, this._interpreter, [...s.keys()], this._runtimeService);
8649
+ return this._runtimeService.registerFunctionDefinitionPrivacyVar(n, s), this._updateLambdaStatement(r, n, s), new Rh(i.getToken(), n, this._interpreter, [...s.keys()], this._runtimeService);
8651
8650
  }
8652
8651
  checkAndCreateNodeType(i) {
8653
8652
  if (!(!(i instanceof ie) || i.getToken().trim().toUpperCase() !== kr))
@@ -8657,20 +8656,20 @@ let Bn = class extends Mt {
8657
8656
  Ia(i, a, e);
8658
8657
  }
8659
8658
  };
8660
- Bn = Ah([
8659
+ Bn = Eh([
8661
8660
  qi(0, Nt),
8662
8661
  qi(1, Re(Mr))
8663
8662
  ], Bn);
8664
- function gu(i) {
8663
+ function du(i) {
8665
8664
  if (!i)
8666
8665
  return;
8667
8666
  if (i.getToken() !== Zr)
8668
8667
  return i;
8669
8668
  const a = i, e = a.getCurrentLambdaPrivacyVar(), t = a.getLambdaParameter();
8670
8669
  if (e)
8671
- return gu(e.get(t));
8670
+ return du(e.get(t));
8672
8671
  }
8673
- class Rh extends qe {
8672
+ class yh extends qe {
8674
8673
  constructor(a, e, t) {
8675
8674
  super(a), this._lambdaParameter = e, this._currentLambdaPrivacyVar = t;
8676
8675
  }
@@ -8684,7 +8683,7 @@ class Rh extends qe {
8684
8683
  return oe.LAMBDA_PARAMETER;
8685
8684
  }
8686
8685
  execute() {
8687
- const a = gu(this._currentLambdaPrivacyVar.get(this._lambdaParameter));
8686
+ const a = du(this._currentLambdaPrivacyVar.get(this._lambdaParameter));
8688
8687
  if (a)
8689
8688
  this.setValue(a.getValue());
8690
8689
  else {
@@ -8693,20 +8692,20 @@ class Rh extends qe {
8693
8692
  }
8694
8693
  }
8695
8694
  }
8696
- class du extends Mt {
8695
+ class Cu extends Mt {
8697
8696
  get zIndex() {
8698
8697
  return Vt.get(oe.LAMBDA_PARAMETER) || Ot;
8699
8698
  }
8700
8699
  create(a) {
8701
8700
  const e = a.getFunctionDefinitionPrivacyVar(), t = a.getLambdaParameter();
8702
- return e ? new Rh(a.getToken(), t, e) : new Te(h.NAME);
8701
+ return e ? new yh(a.getToken(), t, e) : new Te(h.NAME);
8703
8702
  }
8704
8703
  checkAndCreateNodeType(a) {
8705
8704
  if (!(!(a instanceof ie) || a.getToken().trim() !== Zr))
8706
8705
  return this.create(a);
8707
8706
  }
8708
8707
  }
8709
- class yh extends qe {
8708
+ class bh extends qe {
8710
8709
  constructor(a) {
8711
8710
  super(a), this._operatorString = a;
8712
8711
  }
@@ -8717,12 +8716,12 @@ class yh extends qe {
8717
8716
  this.setValue(ce.create());
8718
8717
  }
8719
8718
  }
8720
- var B = /* @__PURE__ */ ((i) => (i.ABS = "ABS", i.ACOS = "ACOS", i.ACOSH = "ACOSH", i.ACOT = "ACOT", i.ACOTH = "ACOTH", i.AGGREGATE = "AGGREGATE", i.ARABIC = "ARABIC", i.ASIN = "ASIN", i.ASINH = "ASINH", i.ATAN = "ATAN", i.ATAN2 = "ATAN2", i.ATANH = "ATANH", i.BASE = "BASE", i.CEILING = "CEILING", i.CEILING_MATH = "CEILING.MATH", i.CEILING_PRECISE = "CEILING.PRECISE", i.COMBIN = "COMBIN", i.COMBINA = "COMBINA", i.COS = "COS", i.COSH = "COSH", i.COT = "COT", i.COTH = "COTH", i.CSC = "CSC", i.CSCH = "CSCH", i.DECIMAL = "DECIMAL", i.DEGREES = "DEGREES", i.EVEN = "EVEN", i.EXP = "EXP", i.FACT = "FACT", i.FACTDOUBLE = "FACTDOUBLE", i.FLOOR = "FLOOR", i.FLOOR_MATH = "FLOOR.MATH", i.FLOOR_PRECISE = "FLOOR.PRECISE", i.GCD = "GCD", i.INT = "INT", i.ISO_CEILING = "ISO.CEILING", i.LCM = "LCM", i.LET = "LET", i.LN = "LN", i.LOG = "LOG", i.LOG10 = "LOG10", i.MDETERM = "MDETERM", i.MINVERSE = "MINVERSE", i.MMULT = "MMULT", i.MOD = "MOD", i.MROUND = "MROUND", i.MULTINOMIAL = "MULTINOMIAL", i.MUNIT = "MUNIT", i.ODD = "ODD", i.PI = "PI", i.POWER = "POWER", i.PRODUCT = "PRODUCT", i.QUOTIENT = "QUOTIENT", i.RADIANS = "RADIANS", i.RAND = "RAND", i.RANDARRAY = "RANDARRAY", i.RANDBETWEEN = "RANDBETWEEN", i.ROMAN = "ROMAN", i.ROUND = "ROUND", i.ROUNDBANK = "ROUNDBANK", i.ROUNDDOWN = "ROUNDDOWN", i.ROUNDUP = "ROUNDUP", i.SEC = "SEC", i.SECH = "SECH", i.SERIESSUM = "SERIESSUM", i.SEQUENCE = "SEQUENCE", i.SIGN = "SIGN", i.SIN = "SIN", i.SINH = "SINH", i.SQRT = "SQRT", i.SQRTPI = "SQRTPI", i.SUBTOTAL = "SUBTOTAL", i.SUM = "SUM", i.SUMIF = "SUMIF", i.SUMIFS = "SUMIFS", i.SUMPRODUCT = "SUMPRODUCT", i.SUMSQ = "SUMSQ", i.SUMX2MY2 = "SUMX2MY2", i.SUMX2PY2 = "SUMX2PY2", i.SUMXMY2 = "SUMXMY2", i.TAN = "TAN", i.TANH = "TANH", i.TRUNC = "TRUNC", i))(B || {}), J = /* @__PURE__ */ ((i) => (i.ASC = "ASC", i.ARRAYTOTEXT = "ARRAYTOTEXT", i.BAHTTEXT = "BAHTTEXT", i.CHAR = "CHAR", i.CLEAN = "CLEAN", i.CODE = "CODE", i.CONCAT = "CONCAT", i.CONCATENATE = "CONCATENATE", i.DBCS = "DBCS", i.DOLLAR = "DOLLAR", i.EXACT = "EXACT", i.FIND = "FIND", i.FINDB = "FINDB", i.FIXED = "FIXED", i.LEFT = "LEFT", i.LEFTB = "LEFTB", i.LEN = "LEN", i.LENB = "LENB", i.LOWER = "LOWER", i.MID = "MID", i.MIDB = "MIDB", i.NUMBERSTRING = "NUMBERSTRING", i.NUMBERVALUE = "NUMBERVALUE", i.PHONETIC = "PHONETIC", i.PROPER = "PROPER", i.REGEXEXTRACT = "REGEXEXTRACT", i.REGEXMATCH = "REGEXMATCH", i.REGEXREPLACE = "REGEXREPLACE", i.REPLACE = "REPLACE", i.REPLACEB = "REPLACEB", i.REPT = "REPT", i.RIGHT = "RIGHT", i.RIGHTB = "RIGHTB", i.SEARCH = "SEARCH", i.SEARCHB = "SEARCHB", i.SUBSTITUTE = "SUBSTITUTE", i.T = "T", i.TEXT = "TEXT", i.TEXTAFTER = "TEXTAFTER", i.TEXTBEFORE = "TEXTBEFORE", i.TEXTJOIN = "TEXTJOIN", i.TEXTSPLIT = "TEXTSPLIT", i.TRIM = "TRIM", i.UNICHAR = "UNICHAR", i.UNICODE = "UNICODE", i.UPPER = "UPPER", i.VALUE = "VALUE", i.VALUETOTEXT = "VALUETOTEXT", i.CALL = "CALL", i.EUROCONVERT = "EUROCONVERT", i.REGISTER_ID = "REGISTER.ID", i))(J || {}), bh = Object.getOwnPropertyDescriptor, ph = (i, a, e, t) => {
8721
- for (var r = t > 1 ? void 0 : t ? bh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8719
+ var B = /* @__PURE__ */ ((i) => (i.ABS = "ABS", i.ACOS = "ACOS", i.ACOSH = "ACOSH", i.ACOT = "ACOT", i.ACOTH = "ACOTH", i.AGGREGATE = "AGGREGATE", i.ARABIC = "ARABIC", i.ASIN = "ASIN", i.ASINH = "ASINH", i.ATAN = "ATAN", i.ATAN2 = "ATAN2", i.ATANH = "ATANH", i.BASE = "BASE", i.CEILING = "CEILING", i.CEILING_MATH = "CEILING.MATH", i.CEILING_PRECISE = "CEILING.PRECISE", i.COMBIN = "COMBIN", i.COMBINA = "COMBINA", i.COS = "COS", i.COSH = "COSH", i.COT = "COT", i.COTH = "COTH", i.CSC = "CSC", i.CSCH = "CSCH", i.DECIMAL = "DECIMAL", i.DEGREES = "DEGREES", i.EVEN = "EVEN", i.EXP = "EXP", i.FACT = "FACT", i.FACTDOUBLE = "FACTDOUBLE", i.FLOOR = "FLOOR", i.FLOOR_MATH = "FLOOR.MATH", i.FLOOR_PRECISE = "FLOOR.PRECISE", i.GCD = "GCD", i.INT = "INT", i.ISO_CEILING = "ISO.CEILING", i.LCM = "LCM", i.LET = "LET", i.LN = "LN", i.LOG = "LOG", i.LOG10 = "LOG10", i.MDETERM = "MDETERM", i.MINVERSE = "MINVERSE", i.MMULT = "MMULT", i.MOD = "MOD", i.MROUND = "MROUND", i.MULTINOMIAL = "MULTINOMIAL", i.MUNIT = "MUNIT", i.ODD = "ODD", i.PI = "PI", i.POWER = "POWER", i.PRODUCT = "PRODUCT", i.QUOTIENT = "QUOTIENT", i.RADIANS = "RADIANS", i.RAND = "RAND", i.RANDARRAY = "RANDARRAY", i.RANDBETWEEN = "RANDBETWEEN", i.ROMAN = "ROMAN", i.ROUND = "ROUND", i.ROUNDBANK = "ROUNDBANK", i.ROUNDDOWN = "ROUNDDOWN", i.ROUNDUP = "ROUNDUP", i.SEC = "SEC", i.SECH = "SECH", i.SERIESSUM = "SERIESSUM", i.SEQUENCE = "SEQUENCE", i.SIGN = "SIGN", i.SIN = "SIN", i.SINH = "SINH", i.SQRT = "SQRT", i.SQRTPI = "SQRTPI", i.SUBTOTAL = "SUBTOTAL", i.SUM = "SUM", i.SUMIF = "SUMIF", i.SUMIFS = "SUMIFS", i.SUMPRODUCT = "SUMPRODUCT", i.SUMSQ = "SUMSQ", i.SUMX2MY2 = "SUMX2MY2", i.SUMX2PY2 = "SUMX2PY2", i.SUMXMY2 = "SUMXMY2", i.TAN = "TAN", i.TANH = "TANH", i.TRUNC = "TRUNC", i))(B || {}), J = /* @__PURE__ */ ((i) => (i.ASC = "ASC", i.ARRAYTOTEXT = "ARRAYTOTEXT", i.BAHTTEXT = "BAHTTEXT", i.CHAR = "CHAR", i.CLEAN = "CLEAN", i.CODE = "CODE", i.CONCAT = "CONCAT", i.CONCATENATE = "CONCATENATE", i.DBCS = "DBCS", i.DOLLAR = "DOLLAR", i.EXACT = "EXACT", i.FIND = "FIND", i.FINDB = "FINDB", i.FIXED = "FIXED", i.LEFT = "LEFT", i.LEFTB = "LEFTB", i.LEN = "LEN", i.LENB = "LENB", i.LOWER = "LOWER", i.MID = "MID", i.MIDB = "MIDB", i.NUMBERSTRING = "NUMBERSTRING", i.NUMBERVALUE = "NUMBERVALUE", i.PHONETIC = "PHONETIC", i.PROPER = "PROPER", i.REGEXEXTRACT = "REGEXEXTRACT", i.REGEXMATCH = "REGEXMATCH", i.REGEXREPLACE = "REGEXREPLACE", i.REPLACE = "REPLACE", i.REPLACEB = "REPLACEB", i.REPT = "REPT", i.RIGHT = "RIGHT", i.RIGHTB = "RIGHTB", i.SEARCH = "SEARCH", i.SEARCHB = "SEARCHB", i.SUBSTITUTE = "SUBSTITUTE", i.T = "T", i.TEXT = "TEXT", i.TEXTAFTER = "TEXTAFTER", i.TEXTBEFORE = "TEXTBEFORE", i.TEXTJOIN = "TEXTJOIN", i.TEXTSPLIT = "TEXTSPLIT", i.TRIM = "TRIM", i.UNICHAR = "UNICHAR", i.UNICODE = "UNICODE", i.UPPER = "UPPER", i.VALUE = "VALUE", i.VALUETOTEXT = "VALUETOTEXT", i.CALL = "CALL", i.EUROCONVERT = "EUROCONVERT", i.REGISTER_ID = "REGISTER.ID", i))(J || {}), ph = Object.getOwnPropertyDescriptor, Nh = (i, a, e, t) => {
8720
+ for (var r = t > 1 ? void 0 : t ? ph(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8722
8721
  (s = i[n]) && (r = s(r) || r);
8723
8722
  return r;
8724
8723
  }, Xi = (i, a) => (e, t) => a(e, t, i);
8725
- class Nh extends qe {
8724
+ class Vh extends qe {
8726
8725
  constructor(a, e, t) {
8727
8726
  super(a), this._functionExecutor = e, this._runtimeService = t;
8728
8727
  }
@@ -8766,9 +8765,9 @@ let kn = class extends Mt {
8766
8765
  create(i) {
8767
8766
  let a = "";
8768
8767
  const e = i;
8769
- e === Z.PLUS ? a = ke.PLUS : e === Z.MINUS ? a = ke.MINUS : e === Z.MULTIPLY ? a = ke.MULTIPLY : e === Z.DIVIDED ? a = ke.DIVIDED : e === Z.CONCATENATE ? a = J.CONCATENATE : e === Z.POWER ? a = B.POWER : ml.has(e) && (a = ke.COMPARE);
8768
+ e === Z.PLUS ? a = ke.PLUS : e === Z.MINUS ? a = ke.MINUS : e === Z.MULTIPLY ? a = ke.MULTIPLY : e === Z.DIVIDED ? a = ke.DIVIDED : e === Z.CONCATENATE ? a = J.CONCATENATE : e === Z.POWER ? a = B.POWER : hl.has(e) && (a = ke.COMPARE);
8770
8769
  const t = this._functionService.getExecutor(a);
8771
- return t ? new Nh(e, t, this._runtimeService) : (console.error(`No function ${i}`), Te.create(h.NAME));
8770
+ return t ? new Vh(e, t, this._runtimeService) : (console.error(`No function ${i}`), Te.create(h.NAME));
8772
8771
  }
8773
8772
  checkAndCreateNodeType(i) {
8774
8773
  if (i instanceof ie)
@@ -8778,11 +8777,11 @@ let kn = class extends Mt {
8778
8777
  return this.create(a);
8779
8778
  }
8780
8779
  };
8781
- kn = ph([
8780
+ kn = Nh([
8782
8781
  Xi(0, Kt),
8783
8782
  Xi(1, Nt)
8784
8783
  ], kn);
8785
- class Vh extends Ur {
8784
+ class Oh extends Ur {
8786
8785
  constructor(e, t, r, n) {
8787
8786
  super(e);
8788
8787
  A(this, "_isCurrentRowForRange", !1);
@@ -8966,8 +8965,8 @@ class Vh extends Ur {
8966
8965
  return this._isCurrentRowForRange = !0, Math.min(e + 1, t);
8967
8966
  }
8968
8967
  }
8969
- var Oh = Object.getOwnPropertyDescriptor, Mh = (i, a, e, t) => {
8970
- for (var r = t > 1 ? void 0 : t ? Oh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8968
+ var Mh = Object.getOwnPropertyDescriptor, Sh = (i, a, e, t) => {
8969
+ for (var r = t > 1 ? void 0 : t ? Mh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8971
8970
  (s = i[n]) && (r = s(r) || r);
8972
8971
  return r;
8973
8972
  }, mn = (i, a) => (e, t) => a(e, t, i);
@@ -8982,7 +8981,7 @@ class Ki extends qe {
8982
8981
  return oe.REFERENCE;
8983
8982
  }
8984
8983
  execute() {
8985
- const e = this._currentConfigService, t = this._runtimeService, r = this._tableReferenceObject || Km(this.getToken(), this._referenceObjectType);
8984
+ const e = this._currentConfigService, t = this._runtimeService, r = this._tableReferenceObject || Zm(this.getToken(), this._referenceObjectType);
8986
8985
  r.setDefaultUnitId(t.currentUnitId), r.setDefaultSheetId(t.currentSubUnitId), r.setForcedSheetId(e.getSheetNameMap()), r.setUnitData(e.getUnitData()), r.setArrayFormulaCellData(e.getArrayFormulaCellData()), r.setRuntimeData(t.getUnitData()), r.setUnitStylesData(e.getUnitStylesData()), r.setRuntimeArrayFormulaCellData(t.getRuntimeArrayFormulaCellData()), r.setRuntimeFeatureCellData(t.getRuntimeFeatureCellData());
8987
8986
  const n = t.currentRow, s = t.currentColumn;
8988
8987
  r.setCurrentRowAndColumn(n, s);
@@ -9010,7 +9009,7 @@ let $n = class extends Mt {
9010
9009
  var u, c;
9011
9010
  let a = !1, e, t = !1;
9012
9011
  i instanceof ie ? (a = !0, e = i.getToken().trim(), ((c = (u = i.getParent()) == null ? void 0 : u.getParent()) == null ? void 0 : c.getToken().trim()) === X.COLON && (t = !0)) : e = i.trim();
9013
- const { tokenTrim: r, minusPrefixNode: n, atPrefixNode: s } = fu(e, this._functionService, this._formulaRuntimeService);
9012
+ const { tokenTrim: r, minusPrefixNode: n, atPrefixNode: s } = mu(e, this._functionService, this._formulaRuntimeService);
9014
9013
  if (!a && r.charAt(0) === '"' && r.charAt(r.length - 1) === '"')
9015
9014
  return;
9016
9015
  const o = this._getNode(r, a, t, i);
@@ -9030,12 +9029,12 @@ let $n = class extends Mt {
9030
9029
  if (Kr(i))
9031
9030
  return s(Ir.CELL);
9032
9031
  const l = a && this._checkParentIsUnionOperator(t);
9033
- return l && Vo(i) ? s(Ir.ROW) : l && Oo(i) ? s(Ir.COLUMN) : this._getTableReferenceNode(i, a, e, !1);
9032
+ return l && Oo(i) ? s(Ir.ROW) : l && Mo(i) ? s(Ir.COLUMN) : this._getTableReferenceNode(i, a, e, !1);
9034
9033
  }
9035
9034
  _getTableReferenceNode(i, a, e, t = !1) {
9036
9035
  if (!this._checkTokenIsTableReference(i) && !t)
9037
9036
  return;
9038
- const { tableName: r, columnStruct: n } = Zl(i), s = this._getTableMap();
9037
+ const { tableName: r, columnStruct: n } = zl(i), s = this._getTableMap();
9039
9038
  if (!a && (s != null && s.has(r))) {
9040
9039
  const o = n, u = s.get(r), c = this._superTableService.getTableOptionMap();
9041
9040
  return new Ki(
@@ -9044,26 +9043,26 @@ let $n = class extends Mt {
9044
9043
  i,
9045
9044
  Ir.COLUMN,
9046
9045
  e,
9047
- new Vh(i, u, o, c)
9046
+ new Oh(i, u, o, c)
9048
9047
  );
9049
9048
  }
9050
9049
  }
9051
9050
  _checkTokenIsTableReference(i) {
9052
- return Pl(i) || xl(i) || jl(i) || Ul(i);
9051
+ return xl(i) || jl(i) || Ul(i) || Tl(i);
9053
9052
  }
9054
9053
  _checkParentIsUnionOperator(i) {
9055
9054
  var a, e;
9056
9055
  return ((e = (a = i.getParent()) == null ? void 0 : a.getParent()) == null ? void 0 : e.getToken().trim()) === X.COLON;
9057
9056
  }
9058
9057
  };
9059
- $n = Mh([
9058
+ $n = Sh([
9060
9059
  mn(0, Qt),
9061
9060
  mn(1, Nt),
9062
9061
  mn(2, Kt),
9063
9062
  mn(3, zr)
9064
9063
  ], $n);
9065
- var Sh = Object.getOwnPropertyDescriptor, Dh = (i, a, e, t) => {
9066
- for (var r = t > 1 ? void 0 : t ? Sh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
9064
+ var Dh = Object.getOwnPropertyDescriptor, wh = (i, a, e, t) => {
9065
+ for (var r = t > 1 ? void 0 : t ? Dh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
9067
9066
  (s = i[n]) && (r = s(r) || r);
9068
9067
  return r;
9069
9068
  }, Ls = (i, a) => (e, t) => a(e, t, i);
@@ -9121,17 +9120,17 @@ let Yn = class extends Mt {
9121
9120
  return t ? new Zi(this._currentConfigService, this._lexer, a, t) : (console.error(`No function ${i}`), Te.create(h.NAME));
9122
9121
  }
9123
9122
  };
9124
- Yn = Dh([
9123
+ Yn = wh([
9125
9124
  Ls(0, Kt),
9126
9125
  Ls(1, Re(Vr)),
9127
9126
  Ls(2, Qt)
9128
9127
  ], Yn);
9129
- var wh = Object.getOwnPropertyDescriptor, Lh = (i, a, e, t) => {
9130
- for (var r = t > 1 ? void 0 : t ? wh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
9128
+ var Lh = Object.getOwnPropertyDescriptor, Ph = (i, a, e, t) => {
9129
+ for (var r = t > 1 ? void 0 : t ? Lh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
9131
9130
  (s = i[n]) && (r = s(r) || r);
9132
9131
  return r;
9133
- }, Ph = (i, a) => (e, t) => a(e, t, i);
9134
- class xh extends qe {
9132
+ }, xh = (i, a) => (e, t) => a(e, t, i);
9133
+ class jh extends qe {
9135
9134
  constructor(a) {
9136
9135
  super(a);
9137
9136
  }
@@ -9140,13 +9139,15 @@ class xh extends qe {
9140
9139
  }
9141
9140
  execute() {
9142
9141
  const a = this.getChildren(), e = a[0], t = a[1], r = e.getValue(), n = t.getValue();
9143
- if (r == null || n == null)
9144
- throw new Error("leftNode and rightNode");
9142
+ if (r == null || n == null) {
9143
+ console.error("UnionNode execute leftNode or rightNode is null"), this.setValue(g.create(h.VALUE));
9144
+ return;
9145
+ }
9145
9146
  let s;
9146
9147
  this.getToken() === X.COLON ? s = this._unionFunction(r, n) : s = g.create(h.NAME), this.setValue(s);
9147
9148
  }
9148
9149
  _unionFunction(a, e) {
9149
- return a.isError() || e.isError() || !a.isReferenceObject() || !e.isReferenceObject() ? g.create(h.REF) : (a = a, e = e, Zm(a, e));
9150
+ return a.isError() || e.isError() || !a.isReferenceObject() || !e.isReferenceObject() ? g.create(h.REF) : (a = a, e = e, zm(a, e));
9150
9151
  }
9151
9152
  }
9152
9153
  let Hn = class extends Mt {
@@ -9157,7 +9158,7 @@ let Hn = class extends Mt {
9157
9158
  return Vt.get(oe.UNION) || Ot;
9158
9159
  }
9159
9160
  create(i) {
9160
- return new xh(i);
9161
+ return new jh(i);
9161
9162
  }
9162
9163
  checkAndCreateNodeType(i) {
9163
9164
  if (!(i instanceof ie))
@@ -9167,10 +9168,10 @@ let Hn = class extends Mt {
9167
9168
  return this.create(e);
9168
9169
  }
9169
9170
  };
9170
- Hn = Lh([
9171
- Ph(0, Kt)
9171
+ Hn = Ph([
9172
+ xh(0, Kt)
9172
9173
  ], Hn);
9173
- class jh extends qe {
9174
+ class Uh extends qe {
9174
9175
  constructor(a) {
9175
9176
  super(a);
9176
9177
  }
@@ -9183,7 +9184,7 @@ class jh extends qe {
9183
9184
  this.setValue(jt.create(this.getToken(), a));
9184
9185
  }
9185
9186
  }
9186
- class Cu extends Mt {
9187
+ class _u extends Mt {
9187
9188
  get zIndex() {
9188
9189
  return Vt.get(oe.VALUE) || Ot;
9189
9190
  }
@@ -9203,15 +9204,15 @@ class Cu extends Mt {
9203
9204
  return this.create(a);
9204
9205
  }
9205
9206
  create(a) {
9206
- return new jh(a);
9207
+ return new Uh(a);
9207
9208
  }
9208
9209
  checkAndCreateNodeType(a) {
9209
9210
  if (!(a instanceof ie))
9210
9211
  return this._checkValueNode(a);
9211
9212
  }
9212
9213
  }
9213
- var Uh = Object.getOwnPropertyDescriptor, Th = (i, a, e, t) => {
9214
- for (var r = t > 1 ? void 0 : t ? Uh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
9214
+ var Th = Object.getOwnPropertyDescriptor, vh = (i, a, e, t) => {
9215
+ for (var r = t > 1 ? void 0 : t ? Th(a, e) : a, n = i.length - 1, s; n >= 0; n--)
9215
9216
  (s = i[n]) && (r = s(r) || r);
9216
9217
  return r;
9217
9218
  }, lt = (i, a) => (e, t) => a(e, t, i);
@@ -9273,13 +9274,13 @@ let Qr = class extends Se {
9273
9274
  const t = a.getChildren(), r = t.length, n = [];
9274
9275
  let s = null;
9275
9276
  const o = a.getToken().trim().toUpperCase();
9276
- if (o === Il) {
9277
+ if (o === Fl) {
9277
9278
  const f = this._changeLetToLambda(a);
9278
9279
  return f != null ? this._parse(f, e) : Te.create(h.ERROR);
9279
9280
  }
9280
9281
  if (o === _t) {
9281
9282
  if (s = e, r === 0)
9282
- return new yh(kt).setParent(e), s;
9283
+ return new bh(kt).setParent(e), s;
9283
9284
  } else {
9284
9285
  if (o === br) {
9285
9286
  let f = this._lambdaParameterHandler(a, e);
@@ -9291,10 +9292,10 @@ let Qr = class extends Se {
9291
9292
  const u = t[0];
9292
9293
  for (let f = 0; f < r; f++) {
9293
9294
  const m = t[f];
9294
- if (mu(u)) {
9295
+ if (hu(u)) {
9295
9296
  if (f !== 0 && f !== r - 1)
9296
9297
  continue;
9297
- } else if (dh(m) && f !== r - 1)
9298
+ } else if (Ch(m) && f !== r - 1)
9298
9299
  continue;
9299
9300
  let d = null;
9300
9301
  if (m instanceof ie) {
@@ -9309,14 +9310,14 @@ let Qr = class extends Se {
9309
9310
  d = this._checkAstNode(m);
9310
9311
  if (d == null)
9311
9312
  return Te.create(h.NAME);
9312
- if (d = Ch(d), d == null || (d == null ? void 0 : d.nodeType) === oe.ERROR)
9313
+ if (d = _h(d), d == null || (d == null ? void 0 : d.nodeType) === oe.ERROR)
9313
9314
  return d;
9314
9315
  switch (d.nodeType) {
9315
9316
  // case NodeType.ERROR:
9316
9317
  // return astNode;
9317
9318
  case oe.FUNCTION: {
9318
9319
  const _ = d.getToken().trim().toUpperCase();
9319
- Bl.has(_) && d.setForcedCalculateFunction(), n.push(d);
9320
+ kl.has(_) && d.setForcedCalculateFunction(), n.push(d);
9320
9321
  break;
9321
9322
  }
9322
9323
  case oe.LAMBDA:
@@ -9370,7 +9371,7 @@ let Qr = class extends Se {
9370
9371
  const t = this._astNodeFactoryList.length;
9371
9372
  for (let r = 0; r < t && (e = this._astNodeFactoryList[r].checkAndCreateNodeType(a), e == null); r++)
9372
9373
  ;
9373
- return e == null ? new fh() : e;
9374
+ return e == null ? new mh() : e;
9374
9375
  }
9375
9376
  _initializeAstNode() {
9376
9377
  this._astNodeFactoryList = [
@@ -9384,23 +9385,23 @@ let Qr = class extends Se {
9384
9385
  this._suffixNodeFactory,
9385
9386
  this._unionNodeFactory,
9386
9387
  this._valueNodeFactory
9387
- ].sort(Kc);
9388
+ ].sort(Zc);
9388
9389
  }
9389
9390
  };
9390
- Qr = Th([
9391
+ Qr = vh([
9391
9392
  lt(0, Nt),
9392
- lt(1, Re(cu)),
9393
+ lt(1, Re(lu)),
9393
9394
  lt(2, Re(Fn)),
9394
9395
  lt(3, Re(Bn)),
9395
- lt(4, Re(du)),
9396
+ lt(4, Re(Cu)),
9396
9397
  lt(5, Re(kn)),
9397
9398
  lt(6, Re(In)),
9398
9399
  lt(7, Re($n)),
9399
9400
  lt(8, Re(Yn)),
9400
9401
  lt(9, Re(Hn)),
9401
- lt(10, Re(Cu))
9402
+ lt(10, Re(_u))
9402
9403
  ], Qr);
9403
- class vh extends Se {
9404
+ class Ih extends Se {
9404
9405
  constructor() {
9405
9406
  super(...arguments);
9406
9407
  A(this, "_otherFormulaData", /* @__PURE__ */ new Map());
@@ -9515,7 +9516,7 @@ class vh extends Se {
9515
9516
  this._addDefinedName(e.unitId, s, r);
9516
9517
  }
9517
9518
  }
9518
- class Ih extends vh {
9519
+ class Fh extends Ih {
9519
9520
  constructor() {
9520
9521
  super(...arguments);
9521
9522
  A(this, "_allTreeMap", /* @__PURE__ */ new Map());
@@ -9747,7 +9748,7 @@ class Ih extends vh {
9747
9748
  const hs = Je(
9748
9749
  "univer.formula.dependency-manager.service"
9749
9750
  );
9750
- class Fh extends Se {
9751
+ class Bh extends Se {
9751
9752
  constructor() {
9752
9753
  super(...arguments);
9753
9754
  A(this, "_referenceExecutorMap", /* @__PURE__ */ new Map());
@@ -9793,7 +9794,7 @@ class Fh extends Se {
9793
9794
  const qr = Je(
9794
9795
  "univer.formula.feature-calculation-manager.service"
9795
9796
  );
9796
- class Bh extends Se {
9797
+ class kh extends Se {
9797
9798
  constructor() {
9798
9799
  super(...arguments);
9799
9800
  A(this, "_otherFormulaData", {});
@@ -9870,7 +9871,7 @@ const Ba = Je(
9870
9871
  "univer.formula.other-formula-manager.service"
9871
9872
  );
9872
9873
  var dr = /* @__PURE__ */ ((i) => (i[i.NORMAL_FORMULA = 0] = "NORMAL_FORMULA", i[i.OTHER_FORMULA = 1] = "OTHER_FORMULA", i[i.FEATURE_FORMULA = 2] = "FEATURE_FORMULA", i))(dr || {});
9873
- class _u {
9874
+ class Au {
9874
9875
  constructor() {
9875
9876
  A(this, "_state", 0);
9876
9877
  A(this, "type", 0);
@@ -9903,7 +9904,7 @@ class _u {
9903
9904
  this.parents.add(a.treeId);
9904
9905
  }
9905
9906
  }
9906
- class zi extends _u {
9907
+ class zi extends Au {
9907
9908
  constructor() {
9908
9909
  super(...arguments);
9909
9910
  A(this, "refTree");
@@ -10010,7 +10011,7 @@ class zi extends _u {
10010
10011
  return this.refTree == null ? "" : this.refTree.formulaId;
10011
10012
  }
10012
10013
  }
10013
- class Ps extends _u {
10014
+ class Ps extends Au {
10014
10015
  constructor(e) {
10015
10016
  super();
10016
10017
  A(this, "isCache", !1);
@@ -10146,7 +10147,7 @@ class Ps extends _u {
10146
10147
  // this.parents.add(tree.treeId);
10147
10148
  // }
10148
10149
  }
10149
- class kh {
10150
+ class Ji {
10150
10151
  constructor(a) {
10151
10152
  A(this, "children", /* @__PURE__ */ new Set());
10152
10153
  A(this, "parents", /* @__PURE__ */ new Set());
@@ -10764,7 +10765,7 @@ let fa = class extends Se {
10764
10765
  _includeTree(a, e) {
10765
10766
  var c, l, f;
10766
10767
  const t = a.unitId, r = a.subUnitId;
10767
- if (this._detectForcedRecalculationNode(a, e) === !0 || this._includeTreeFeature(a) === !0 || this._includeOtherFormula(a) === !0 || sh(a, e, this._currentConfigService) === !0)
10768
+ if (this._detectForcedRecalculationNode(a, e) === !0 || this._includeTreeFeature(a) === !0 || this._includeOtherFormula(a) === !0 || ah(a, e, this._currentConfigService) === !0)
10768
10769
  return !0;
10769
10770
  const n = (l = (c = this._currentConfigService.getExcludedRange()) == null ? void 0 : c[t]) == null ? void 0 : l[r];
10770
10771
  if ((n == null ? void 0 : n.getValue(a.row, a.column)) != null)
@@ -10800,15 +10801,19 @@ let fa = class extends Se {
10800
10801
  r.length = 0;
10801
10802
  for (const o of n.parents) {
10802
10803
  const u = this._dependencyManagerService.getTreeById(o);
10803
- if (!u)
10804
- throw new Error("ParentDependencyTree object is null");
10804
+ if (!u) {
10805
+ console.error("Dependency tree not found for treeId:", o);
10806
+ continue;
10807
+ }
10805
10808
  u.isAdded() || n.isSkip() || r.push(u);
10806
10809
  }
10807
10810
  const s = this._dependencyRTreeCacheForAddressFunction.bulkSearch(n.toRTreeItem());
10808
10811
  for (const o of s) {
10809
10812
  const u = this._dependencyManagerService.getTreeById(o);
10810
- if (!u)
10811
- throw new Error("ParentDependencyTree object is null");
10813
+ if (!u) {
10814
+ console.error("Dependency tree not found for treeId:", o);
10815
+ continue;
10816
+ }
10812
10817
  u.isAdded() || n.isSkip() || r.push(u);
10813
10818
  }
10814
10819
  r.length === 0 ? (t.push(n), n.setSkip()) : (n.setAdded(), e.push(n, ...r));
@@ -10827,9 +10832,11 @@ let fa = class extends Se {
10827
10832
  let e = this._formulaDependencyTreeModel.get(a);
10828
10833
  if (!e) {
10829
10834
  const t = this._getTreeById(a);
10830
- if (!t)
10831
- throw new Error("FormulaDependencyTree is null");
10832
- e = new kh(t), this._formulaDependencyTreeModel.set(a, e);
10835
+ if (!t) {
10836
+ console.error("FormulaDependencyTree is null for treeId:", a);
10837
+ return;
10838
+ }
10839
+ e = new Ji(t), this._formulaDependencyTreeModel.set(a, e);
10833
10840
  }
10834
10841
  return e;
10835
10842
  }
@@ -10841,9 +10848,11 @@ let fa = class extends Se {
10841
10848
  }
10842
10849
  _getFormulaDependencyTreeModel(a) {
10843
10850
  const e = this._getTreeModel(a.treeId), t = this._getDependencyTreeParenIds(a);
10851
+ if (!e)
10852
+ return new Ji(a);
10844
10853
  for (const r of t) {
10845
10854
  const n = this._getTreeModel(r);
10846
- e.addParent(n), n.addChild(e);
10855
+ n && (e.addParent(n), n.addChild(e));
10847
10856
  }
10848
10857
  return e;
10849
10858
  }
@@ -10898,7 +10907,7 @@ let fa = class extends Se {
10898
10907
  const u = this._getDependencyTreeChildrenIds(s);
10899
10908
  for (const c of u) {
10900
10909
  const l = this._getTreeModel(c);
10901
- this._setRealFormulaString(l), o.addChild(l);
10910
+ l && (this._setRealFormulaString(l), o.addChild(l));
10902
10911
  }
10903
10912
  for (const c of o.parents)
10904
10913
  this._setRealFormulaString(c);
@@ -10983,7 +10992,7 @@ let ha = class extends Se {
10983
10992
  A(this, "executionInProgressListener$", this._executionInProgressListener$.asObservable());
10984
10993
  A(this, "_executionCompleteListener$", new xt());
10985
10994
  A(this, "executionCompleteListener$", this._executionCompleteListener$.asObservable());
10986
- A(this, "_executeLock", new Zc());
10995
+ A(this, "_executeLock", new zc());
10987
10996
  A(this, "_isCalculateTreeModel", !1);
10988
10997
  this._configService = a, this._lexer = e, this._currentConfigService = t, this._runtimeService = r, this._formulaDependencyGenerator = n, this._interpreter = s, this._astTreeBuilder = o;
10989
10998
  }
@@ -11011,7 +11020,7 @@ let ha = class extends Se {
11011
11020
  }
11012
11021
  async execute(a) {
11013
11022
  this._runtimeService.setFormulaExecuteStage(tt.START), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState()), this._currentConfigService.load(a), this._runtimeService.reset();
11014
- const e = a.maxIteration || Wo;
11023
+ const e = a.maxIteration || Qo;
11015
11024
  this._isCalculateTreeModel = a.isCalculateTreeModel || !1, this._executeLock.acquire("FORMULA_EXECUTION_LOCK", async () => {
11016
11025
  for (let t = 0; t < e && (this._runtimeService.setFormulaCycleIndex(t), await this._executeStep(), Er.clear(), !!this._runtimeService.isCycleDependency()); t++)
11017
11026
  ;
@@ -11070,7 +11079,7 @@ let ha = class extends Se {
11070
11079
  for (let c = 0; c < o; c++) {
11071
11080
  const l = e[c], f = l.nodeData, m = l.getDirtyData;
11072
11081
  if (c % s === 0 && (await new Promise((_) => {
11073
- const C = zc(_);
11082
+ const C = Jc(_);
11074
11083
  r.push(C);
11075
11084
  }), a ? (this._runtimeService.setFormulaExecuteStage(
11076
11085
  tt.CURRENTLY_CALCULATING_ARRAY_FORMULA
@@ -11225,9 +11234,9 @@ let Gn = class extends Se {
11225
11234
  _commandExecutedListener() {
11226
11235
  this.disposeWithMe(
11227
11236
  this._commandService.onCommandExecuted((i) => {
11228
- if (i.id === Uo.id)
11237
+ if (i.id === To.id)
11229
11238
  this._calculateFormulaService.stopFormulaExecution();
11230
- else if (i.id === Po.id)
11239
+ else if (i.id === xo.id)
11231
11240
  this._calculate(i.params);
11232
11241
  else if (i.id === ks.id) {
11233
11242
  const a = i.params;
@@ -11235,16 +11244,16 @@ let Gn = class extends Se {
11235
11244
  return;
11236
11245
  const { arrayFormulaRange: e, arrayFormulaCellData: t } = a;
11237
11246
  this._formulaDataModel.setArrayFormulaRange(e), this._formulaDataModel.setArrayFormulaCellData(t);
11238
- } else if (i.id === xo.id)
11247
+ } else if (i.id === jo.id)
11239
11248
  this._calculateFormulaString(i.params);
11240
- else if (i.id === To.id)
11241
- this._generateAllDependencyTreeJson();
11242
11249
  else if (i.id === vo.id)
11250
+ this._generateAllDependencyTreeJson();
11251
+ else if (i.id === Io.id)
11243
11252
  this._generateCellDependencyTreeJson(i.params);
11244
- else if (i.id === Fo.id) {
11253
+ else if (i.id === Bo.id) {
11245
11254
  const a = i.params;
11246
11255
  this._queryFormulaDependencyJson(a);
11247
- } else if (i.id === ko.id) {
11256
+ } else if (i.id === $o.id) {
11248
11257
  const a = i.params;
11249
11258
  this._queryFormulaDependencyAllJson(a);
11250
11259
  }
@@ -11252,7 +11261,7 @@ let Gn = class extends Se {
11252
11261
  );
11253
11262
  }
11254
11263
  async _calculate(i) {
11255
- const { forceCalculation: a = !1, dirtyRanges: e = [], dirtyNameMap: t = {}, dirtyDefinedNameMap: r = {}, dirtyUnitFeatureMap: n = {}, dirtyUnitOtherFormulaMap: s = {}, clearDependencyTreeCache: o = {}, maxIteration: u = Wo, rowData: c, isCalculateTreeModel: l = !1 } = i, f = this._formulaDataModel.getFormulaData(), m = this._formulaDataModel.getArrayFormulaCellData(), d = this._formulaDataModel.getArrayFormulaRange();
11264
+ const { forceCalculation: a = !1, dirtyRanges: e = [], dirtyNameMap: t = {}, dirtyDefinedNameMap: r = {}, dirtyUnitFeatureMap: n = {}, dirtyUnitOtherFormulaMap: s = {}, clearDependencyTreeCache: o = {}, maxIteration: u = Qo, rowData: c, isCalculateTreeModel: l = !1 } = i, f = this._formulaDataModel.getFormulaData(), m = this._formulaDataModel.getArrayFormulaCellData(), d = this._formulaDataModel.getArrayFormulaRange();
11256
11265
  this._calculateFormulaService.execute({
11257
11266
  formulaData: f,
11258
11267
  arrayFormulaCellData: m,
@@ -11273,7 +11282,7 @@ let Gn = class extends Se {
11273
11282
  const { unitRanges: a, isInRange: e } = i;
11274
11283
  let t = [];
11275
11284
  e ? t = await this._calculateFormulaService.getInRangeFormulas(a) : t = await this._calculateFormulaService.getRangeDependents(a), this._commandService.executeCommand(
11276
- Bo.id,
11285
+ ko.id,
11277
11286
  {
11278
11287
  result: t
11279
11288
  },
@@ -11285,7 +11294,7 @@ let Gn = class extends Se {
11285
11294
  async _queryFormulaDependencyAllJson(i) {
11286
11295
  const { unitRanges: a } = i, e = await this._calculateFormulaService.getDependentsAndInRangeFormulas(a);
11287
11296
  this._commandService.executeCommand(
11288
- $o.id,
11297
+ Yo.id,
11289
11298
  {
11290
11299
  result: e
11291
11300
  },
@@ -11309,7 +11318,7 @@ let Gn = class extends Se {
11309
11318
  async _generateCellDependencyTreeJson(i) {
11310
11319
  const { unitId: a, sheetId: e, row: t, column: r } = i, n = await this._calculateFormulaService.getCellDependencyJson(a, e, t, r);
11311
11320
  this._commandService.executeCommand(
11312
- Io.id,
11321
+ Fo.id,
11313
11322
  {
11314
11323
  result: n
11315
11324
  },
@@ -11323,7 +11332,7 @@ let Gn = class extends Se {
11323
11332
  a
11324
11333
  );
11325
11334
  this._commandService.executeCommand(
11326
- jo.id,
11335
+ Uo.id,
11327
11336
  {
11328
11337
  result: e
11329
11338
  },
@@ -11338,6 +11347,7 @@ let Gn = class extends Se {
11338
11347
  const a = i.functionsExecutedState;
11339
11348
  switch (a) {
11340
11349
  case Fr.NOT_EXECUTED:
11350
+ this._applyTreeResult(i);
11341
11351
  break;
11342
11352
  case Fr.STOP_EXECUTION:
11343
11353
  break;
@@ -11368,10 +11378,22 @@ let Gn = class extends Se {
11368
11378
  );
11369
11379
  });
11370
11380
  }
11381
+ async _applyTreeResult(i) {
11382
+ const { dependencyTreeModelData: a } = i;
11383
+ a.length > 0 && this._commandService.executeCommand(
11384
+ Ws.id,
11385
+ {
11386
+ result: a
11387
+ },
11388
+ {
11389
+ onlyLocal: !0
11390
+ }
11391
+ );
11392
+ }
11371
11393
  async _applyResult(i) {
11372
11394
  const { unitData: a, unitOtherData: e, arrayFormulaRange: t, arrayFormulaCellData: r, clearArrayFormulaCellData: n, arrayFormulaEmbedded: s, imageFormulaData: o, dependencyTreeModelData: u } = i;
11373
11395
  if (!a) {
11374
- console.error("No sheetData from Formula Engine!");
11396
+ this._applyTreeResult(i), console.error("No sheetData from Formula Engine!");
11375
11397
  return;
11376
11398
  }
11377
11399
  (t || s) && (this._formulaDataModel.clearPreviousArrayFormulaCellData(n), this._formulaDataModel.mergeArrayFormulaCellData(r), this._formulaDataModel.mergeArrayFormulaRange(t), this._commandService.executeCommand(
@@ -11385,25 +11407,17 @@ let Gn = class extends Se {
11385
11407
  onlyLocal: !0
11386
11408
  }
11387
11409
  )), o && o.length > 0 && this._commandService.executeCommand(
11388
- Ho.id,
11410
+ Go.id,
11389
11411
  {
11390
11412
  imageFormulaData: o
11391
11413
  },
11392
11414
  {
11393
11415
  onlyLocal: !0
11394
11416
  }
11395
- ), u.length > 0 && this._commandService.executeCommand(
11396
- Ws.id,
11397
- {
11398
- result: u
11399
- },
11400
- {
11401
- onlyLocal: !0
11402
- }
11403
- ), this._commandService.executeCommand(
11417
+ ), this._applyTreeResult(i), this._commandService.executeCommand(
11404
11418
  Ma.id,
11405
11419
  {
11406
- unitData: vl(a),
11420
+ unitData: Il(a),
11407
11421
  unitOtherData: e
11408
11422
  },
11409
11423
  {
@@ -11417,17 +11431,17 @@ Gn = qh([
11417
11431
  xs(1, ma),
11418
11432
  xs(2, Re(Nr))
11419
11433
  ], Gn);
11420
- const Ji = /[\[\]]/g;
11421
- function eo(i, a) {
11422
- if (Ji.test(i)) {
11423
- const e = Number(i.replace(Ji, ""));
11434
+ const eo = /[\[\]]/g;
11435
+ function to(i, a) {
11436
+ if (eo.test(i)) {
11437
+ const e = Number(i.replace(eo, ""));
11424
11438
  return a + e;
11425
11439
  }
11426
11440
  return Number(i) - 1;
11427
11441
  }
11428
11442
  function js(i, a = 0, e = 0) {
11429
11443
  i = i.toLocaleUpperCase();
11430
- const t = i.split(/[RC]/), r = t[1], n = t[2], s = eo(r, a), o = eo(n, e);
11444
+ const t = i.split(/[RC]/), r = t[1], n = t[2], s = to(r, a), o = to(n, e);
11431
11445
  return {
11432
11446
  row: s,
11433
11447
  column: o,
@@ -11833,7 +11847,7 @@ class N {
11833
11847
  return mt(t, 1, t[0].length);
11834
11848
  }
11835
11849
  _includingLogicalValuesAndText(a) {
11836
- if (a.isBoolean() && (a = Wm(a)), a.isString()) {
11850
+ if (a.isBoolean() && (a = Qm(a)), a.isString()) {
11837
11851
  const e = Number(a.getValue());
11838
11852
  a = b.create(Number.isNaN(e) ? 0 : e);
11839
11853
  }
@@ -11846,7 +11860,7 @@ class N {
11846
11860
  range: e
11847
11861
  });
11848
11862
  let u;
11849
- return Kr(o) ? u = new ja(o) : Vo(o) ? u = new Ta(o) : Oo(o) ? u = new Ua(o) : u = new Tn(e, r, t), this._setReferenceDefault(a, u);
11863
+ return Kr(o) ? u = new ja(o) : Oo(o) ? u = new Ta(o) : Mo(o) ? u = new Ua(o) : u = new Tn(e, r, t), this._setReferenceDefault(a, u);
11850
11864
  }
11851
11865
  _setReferenceDefault(a, e) {
11852
11866
  if (this.unitId == null || this.subUnitId == null)
@@ -12149,7 +12163,7 @@ function da(i, a) {
12149
12163
  }
12150
12164
  return e;
12151
12165
  }
12152
- function to(i, a) {
12166
+ function ro(i, a) {
12153
12167
  const e = da(i, a);
12154
12168
  return e === 0 ? 0 : Math.abs(i * a) / e;
12155
12169
  }
@@ -12159,7 +12173,7 @@ function Ga(i) {
12159
12173
  return i[0][0];
12160
12174
  if (a === 2)
12161
12175
  return i[0][0] * i[1][1] - i[0][1] * i[1][0];
12162
- const { rowSwap: e, smallPivotDetected: t, luMatrix: r, permutation: n } = Au(i);
12176
+ const { rowSwap: e, smallPivotDetected: t, luMatrix: r, permutation: n } = Eu(i);
12163
12177
  if (t)
12164
12178
  return 0;
12165
12179
  let s = e ? 1 : -1;
@@ -12192,10 +12206,10 @@ function Et(i) {
12192
12206
  return i[0].map((a, e) => i.map((t) => t[e]));
12193
12207
  }
12194
12208
  function sg(i) {
12195
- const { smallPivotDetected: a, luMatrix: e, permutation: t } = Au(i);
12209
+ const { smallPivotDetected: a, luMatrix: e, permutation: t } = Eu(i);
12196
12210
  return a ? null : ag(e, t);
12197
12211
  }
12198
- function Au(i) {
12212
+ function Eu(i) {
12199
12213
  const a = Et(i), e = a.length, t = a[0].length;
12200
12214
  let r = !0, n = !1;
12201
12215
  const s = Ca(e, t, 0), o = new Array(t).fill(0).map((u, c) => c);
@@ -12298,7 +12312,7 @@ function og(i) {
12298
12312
  a[p][y] += c / R * a[p][C];
12299
12313
  }
12300
12314
  }
12301
- if (n[C] = u, c = ro(a, C + 1, t, C, C), c <= 1e-64 / o)
12315
+ if (n[C] = u, c = no(a, C + 1, t, C, C), c <= 1e-64 / o)
12302
12316
  u = 0;
12303
12317
  else {
12304
12318
  u = Math.sqrt(c), a[C][C + 1] >= 0 && (u = -u);
@@ -12307,7 +12321,7 @@ function og(i) {
12307
12321
  for (let y = C + 1; y < t; y++)
12308
12322
  r[y] = a[C][y] / R;
12309
12323
  for (let y = C + 1; y < e; y++) {
12310
- c = ro(a, C + 1, t, y, C);
12324
+ c = no(a, C + 1, t, y, C);
12311
12325
  for (let p = C + 1; p < t; p++)
12312
12326
  a[y][p] += c * r[p];
12313
12327
  }
@@ -12433,7 +12447,7 @@ function Us(i, a, e, t, r) {
12433
12447
  n += i[s][t] * i[s][r];
12434
12448
  return n;
12435
12449
  }
12436
- function ro(i, a, e, t, r) {
12450
+ function no(i, a, e, t, r) {
12437
12451
  let n = 0;
12438
12452
  for (let s = a; s < e; s++)
12439
12453
  n += i[t][s] * i[r][s];
@@ -12480,7 +12494,7 @@ const dn = /* @__PURE__ */ new Map([
12480
12494
  [1, 4, 5, 9, 10, 40, 45, 49, 50, 90, 95, 99, 100, 400, 450, 490, 495, 500, 900, 950, 990, 995, 1e3, 4e3],
12481
12495
  [1, 4, 5, 9, 10, 40, 45, 49, 50, 90, 95, 99, 100, 400, 450, 490, 495, 499, 500, 900, 950, 990, 995, 999, 1e3, 4e3]
12482
12496
  ];
12483
- function Eu(i, a, e) {
12497
+ function Ru(i, a, e) {
12484
12498
  return i <= 0 ? 0 : i >= 1 ? 1 : gs(i, a, e);
12485
12499
  }
12486
12500
  function lg(i, a, e) {
@@ -12514,9 +12528,9 @@ function Wa(i, a, e) {
12514
12528
  }
12515
12529
  function gs(i, a, e) {
12516
12530
  const t = i === 0 || i === 1 ? 0 : Math.exp(gt(a + e) - gt(a) - gt(e) + a * Math.log(i) + e * Math.log(1 - i));
12517
- return i < (a + 1) / (a + e + 2) ? t * no(i, a, e) / a : 1 - t * no(1 - i, e, a) / e;
12531
+ return i < (a + 1) / (a + e + 2) ? t * so(i, a, e) / a : 1 - t * so(1 - i, e, a) / e;
12518
12532
  }
12519
- function no(i, a, e) {
12533
+ function so(i, a, e) {
12520
12534
  let n = 1 - (a + e) * i / (a + 1);
12521
12535
  Math.abs(n) < 1e-8 && (n = 1e-8), n = 1 / n;
12522
12536
  let s = 1, o = n;
@@ -12533,7 +12547,7 @@ function Qa(i, a) {
12533
12547
  function qa(i, a) {
12534
12548
  return gt(i) + gt(a) - gt(i + a);
12535
12549
  }
12536
- function Ru(i, a, e) {
12550
+ function yu(i, a, e) {
12537
12551
  if (i < 0)
12538
12552
  return 0;
12539
12553
  if (i >= a)
@@ -12554,8 +12568,8 @@ function Ka(i, a) {
12554
12568
  function fg(i, a) {
12555
12569
  return i < 0 ? 0 : i === 0 && a === 2 ? 0.5 : Math.exp((a / 2 - 1) * Math.log(i) - i / 2 - a / 2 * Math.log(2) - gt(a / 2));
12556
12570
  }
12557
- function yu(i, a) {
12558
- return i <= 0 ? 0 : i >= 1 ? 1 / 0 : 2 * Nu(i, a / 2);
12571
+ function bu(i, a) {
12572
+ return i <= 0 ? 0 : i >= 1 ? 1 / 0 : 2 * Vu(i, a / 2);
12559
12573
  }
12560
12574
  function Za(i, a, e) {
12561
12575
  return i < 0 ? 0 : gs(a * i / (a * i + e), a / 2, e / 2);
@@ -12570,7 +12584,7 @@ function mg(i, a, e) {
12570
12584
  let t = 1 / Qa(a / 2, e / 2);
12571
12585
  return t *= (a / e) ** (a / 2), t *= i ** (a / 2 - 1), t *= (1 + a / e * i) ** (-(a + e) / 2), t;
12572
12586
  }
12573
- function bu(i, a, e) {
12587
+ function pu(i, a, e) {
12574
12588
  return i <= 0 ? 0 : i >= 1 ? 1 / 0 : e / (a * (1 / Wa(i, a / 2, e / 2) - 1));
12575
12589
  }
12576
12590
  function hg(i, a) {
@@ -12579,7 +12593,7 @@ function hg(i, a) {
12579
12593
  function gg(i, a) {
12580
12594
  return i < 0 ? 0 : a * Math.exp(-a * i);
12581
12595
  }
12582
- function pu(i, a, e) {
12596
+ function Nu(i, a, e) {
12583
12597
  const t = a.length;
12584
12598
  let r = 0, n = 0;
12585
12599
  for (let m = 0; m < t; m++)
@@ -12646,7 +12660,7 @@ function Cg(i, a, e) {
12646
12660
  return i < 0 ? 0 : i === 0 && a === 1 ? 1 / e : Math.exp((a - 1) * Math.log(i) - i / e - gt(a) - a * Math.log(e));
12647
12661
  }
12648
12662
  function _g(i, a, e) {
12649
- return i <= 0 ? 0 : i >= 1 ? 1 / 0 : e * Nu(i, a);
12663
+ return i <= 0 ? 0 : i >= 1 ? 1 / 0 : e * Vu(i, a);
12650
12664
  }
12651
12665
  function gt(i) {
12652
12666
  const a = [
@@ -12687,7 +12701,7 @@ function za(i, a) {
12687
12701
  }
12688
12702
  return 1 - m * n;
12689
12703
  }
12690
- function Nu(i, a) {
12704
+ function Vu(i, a) {
12691
12705
  if (i <= 0)
12692
12706
  return 0;
12693
12707
  if (i >= 1)
@@ -12719,7 +12733,7 @@ function Ag(i, a, e, t) {
12719
12733
  function Ja(i, a, e, t) {
12720
12734
  return a - i > t - e ? 0 : sr(e, i) * sr(t - e, a - i) / sr(t, a);
12721
12735
  }
12722
- function Vu(i, a, e) {
12736
+ function Ou(i, a, e) {
12723
12737
  return i < 0 ? 0 : 0.5 + 0.5 * nr((Math.log(i) - a) / Math.sqrt(2 * e * e));
12724
12738
  }
12725
12739
  function Eg(i, a, e) {
@@ -12742,7 +12756,7 @@ function ei(i, a, e) {
12742
12756
  function rn(i, a, e) {
12743
12757
  return 0.5 * (1 + nr((i - a) / Math.sqrt(2 * e * e)));
12744
12758
  }
12745
- function Ou(i, a, e) {
12759
+ function Mu(i, a, e) {
12746
12760
  return Math.exp(-0.5 * Math.log(2 * Math.PI) - Math.log(e) - (i - a) ** 2 / (2 * e * e));
12747
12761
  }
12748
12762
  function ds(i, a, e) {
@@ -12751,10 +12765,10 @@ function ds(i, a, e) {
12751
12765
  function bg(i, a) {
12752
12766
  let e = 0;
12753
12767
  for (let t = 0; t <= i; t++)
12754
- e += Mu(t, a);
12768
+ e += Su(t, a);
12755
12769
  return e;
12756
12770
  }
12757
- function Mu(i, a) {
12771
+ function Su(i, a) {
12758
12772
  return Math.exp(-a) * a ** i / Rr(i);
12759
12773
  }
12760
12774
  function nn(i, a) {
@@ -12933,7 +12947,7 @@ function Rs(i, a, e, t, r) {
12933
12947
  XTXInverse: m
12934
12948
  };
12935
12949
  }
12936
- function Su(i) {
12950
+ function Du(i) {
12937
12951
  const a = [], e = [];
12938
12952
  let t = !1;
12939
12953
  for (let r = 0; r < i.length; r++) {
@@ -12952,11 +12966,11 @@ function Su(i) {
12952
12966
  };
12953
12967
  }
12954
12968
  var De = /* @__PURE__ */ ((i) => (i.AVERAGE = "AVERAGE", i.COUNT = "COUNT", i.COUNTA = "COUNTA", i.MAX = "MAX", i.MIN = "MIN", i.PRODUCT = "PRODUCT", i.STDEV = "STDEV", i.STDEV_S = "STDEV.S", i.STDEVP = "STDEVP", i.STDEV_P = "STDEV.P", i.SUM = "SUM", i.VAR = "VAR", i.VAR_S = "VAR.S", i.VARP = "VARP", i.VAR_P = "VAR.P", i.MEDIAN = "MEDIAN", i.MODE_SNGL = "MODE.SNGL", i))(De || {});
12955
- function Du(i, a) {
12969
+ function wu(i, a) {
12956
12970
  const e = i[a];
12957
- return e ? e.hd === _o.TRUE : !1;
12971
+ return e ? e.hd === Ao.TRUE : !1;
12958
12972
  }
12959
- function wu(i, a, e, t, r, n) {
12973
+ function Lu(i, a, e, t, r, n) {
12960
12974
  const s = i.getValue(a, e);
12961
12975
  if (s != null && s.f || s != null && s.si) {
12962
12976
  const o = n.getFormulaStringByCell(a, e, t, r);
@@ -12965,11 +12979,11 @@ function wu(i, a, e, t, r, n) {
12965
12979
  }
12966
12980
  return !1;
12967
12981
  }
12968
- function Lu(i, a) {
12982
+ function Pu(i, a) {
12969
12983
  const e = Object.entries(i).filter(([t, { count: r }]) => r === a).sort((t, r) => t[1].order - r[1].order).map(([t]) => +t);
12970
12984
  return b.create(e[0]);
12971
12985
  }
12972
- function Pu(i, a) {
12986
+ function xu(i, a) {
12973
12987
  var y, p;
12974
12988
  const { type: e, ignoreRowHidden: t, ignoreErrorValues: r, ignoreNested: n, formulaDataModel: s } = i, o = [];
12975
12989
  let u = 0, c = 0, l = 0, f = 0, m = 0, d = 0, _ = 1;
@@ -12979,7 +12993,7 @@ function Pu(i, a) {
12979
12993
  const M = a[V], S = M.getFilteredOutRows(), D = M.getRowData(), w = M.getUnitId(), L = M.getSheetId(), j = (p = (y = M.getUnitData()[w]) == null ? void 0 : y[L]) == null ? void 0 : p.cellData;
12980
12994
  let k;
12981
12995
  if (M.iterator((G, ne, z) => {
12982
- if (S.includes(ne) || t && Du(D, ne) || n && wu(j, ne, z, L, w, s))
12996
+ if (S.includes(ne) || t && wu(D, ne) || n && Lu(j, ne, z, L, w, s))
12983
12997
  return !0;
12984
12998
  if (e === "COUNT")
12985
12999
  return G != null && G.isNumber() && u++, !0;
@@ -13030,9 +13044,9 @@ function Pu(i, a) {
13030
13044
  case "VAR.P":
13031
13045
  return f === 0 ? g.create(h.DIV_BY_ZERO) : mt([o], 1, f).var();
13032
13046
  case "MEDIAN":
13033
- return f === 0 ? g.create(h.NUM) : xu(o.map((V) => +V.getValue()));
13047
+ return f === 0 ? g.create(h.NUM) : ju(o.map((V) => +V.getValue()));
13034
13048
  case "MODE.SNGL":
13035
- return R === 0 || E === 1 ? g.create(h.NA) : Lu(C, E);
13049
+ return R === 0 || E === 1 ? g.create(h.NA) : Pu(C, E);
13036
13050
  default:
13037
13051
  return g.create(h.VALUE);
13038
13052
  }
@@ -13044,11 +13058,11 @@ function mr(i, a, e) {
13044
13058
  const c = i.getFilteredOutRows(), l = i.getRowData(), f = i.getUnitId(), m = i.getSheetId(), _ = (u = (o = i.getUnitData()[f]) == null ? void 0 : o[m]) == null ? void 0 : u.cellData;
13045
13059
  let C;
13046
13060
  if (i.iterator((E, R, y) => {
13047
- if (c.includes(R) || t && Du(l, R))
13061
+ if (c.includes(R) || t && wu(l, R))
13048
13062
  return !0;
13049
13063
  if (E != null && E.isError())
13050
13064
  return r ? !0 : (C = E, !1);
13051
- if (n && e && wu(_, R, y, m, f, e) || !E || E.isNull() || E.isBoolean() || E.isString())
13065
+ if (n && e && Lu(_, R, y, m, f, e) || !E || E.isNull() || E.isBoolean() || E.isString())
13052
13066
  return !0;
13053
13067
  const p = E.getValue();
13054
13068
  if (!q(p))
@@ -13073,7 +13087,7 @@ function mr(i, a, e) {
13073
13087
  }
13074
13088
  return s.length === 0 ? g.create(h.NUM) : s;
13075
13089
  }
13076
- function xu(i) {
13090
+ function ju(i) {
13077
13091
  const a = i.length;
13078
13092
  i.sort((t, r) => t - r);
13079
13093
  let e;
@@ -13084,21 +13098,21 @@ function xu(i) {
13084
13098
  e = i[Math.floor(a / 2)];
13085
13099
  return b.create(e);
13086
13100
  }
13087
- function ju(i, a) {
13101
+ function Uu(i, a) {
13088
13102
  if (a < 1 || a > i.length)
13089
13103
  return g.create(h.NUM);
13090
13104
  i.sort((t, r) => r - t);
13091
13105
  const e = Math.ceil(a);
13092
13106
  return b.create(i[e - 1]);
13093
13107
  }
13094
- function Uu(i, a) {
13108
+ function Tu(i, a) {
13095
13109
  if (a < 1 || a > i.length)
13096
13110
  return g.create(h.NUM);
13097
13111
  i.sort((t, r) => t - r);
13098
13112
  const e = Math.floor(a);
13099
13113
  return b.create(i[e - 1]);
13100
13114
  }
13101
- function Tu(i, a) {
13115
+ function vu(i, a) {
13102
13116
  const e = i.length;
13103
13117
  if (a < 0 || a > 1)
13104
13118
  return g.create(h.NUM);
@@ -13109,7 +13123,7 @@ function Tu(i, a) {
13109
13123
  const s = i[r] + n * (i[r + 1] - i[r]);
13110
13124
  return b.create(s);
13111
13125
  }
13112
- function vu(i, a) {
13126
+ function Iu(i, a) {
13113
13127
  const e = i.length;
13114
13128
  if (a < 1 / (e + 1) || a > 1 - 1 / (e + 1))
13115
13129
  return g.create(h.NUM);
@@ -13120,7 +13134,7 @@ function vu(i, a) {
13120
13134
  const s = i[r] + n * (i[r + 1] - i[r]);
13121
13135
  return b.create(s);
13122
13136
  }
13123
- function Iu(i, a) {
13137
+ function Fu(i, a) {
13124
13138
  const e = i.length;
13125
13139
  if (a < 0 || a > 4)
13126
13140
  return g.create(h.NUM);
@@ -13131,7 +13145,7 @@ function Iu(i, a) {
13131
13145
  const o = i[n] + s * (i[n + 1] - i[n]);
13132
13146
  return b.create(o);
13133
13147
  }
13134
- function Fu(i, a) {
13148
+ function Bu(i, a) {
13135
13149
  const e = i.length;
13136
13150
  if (a <= 0 || a >= 4)
13137
13151
  return g.create(h.NUM);
@@ -13145,7 +13159,7 @@ function Fu(i, a) {
13145
13159
  const o = i[n] + s * (i[n + 1] - i[n]);
13146
13160
  return b.create(o);
13147
13161
  }
13148
- class Bu extends N {
13162
+ class ku extends N {
13149
13163
  constructor() {
13150
13164
  super(...arguments);
13151
13165
  A(this, "minParams", 3);
@@ -13193,7 +13207,7 @@ class Bu extends N {
13193
13207
  return b.create(V);
13194
13208
  }
13195
13209
  }
13196
- class ku extends N {
13210
+ class $u extends N {
13197
13211
  constructor() {
13198
13212
  super(...arguments);
13199
13213
  A(this, "minParams", 4);
@@ -13224,10 +13238,10 @@ class ku extends N {
13224
13238
  if (d < 0 || d > _ || C < 0 || C > 1)
13225
13239
  return g.create(h.NUM);
13226
13240
  let R;
13227
- return E ? R = Ru(d, _, C) : R = Xa(d, _, C), b.create(R);
13241
+ return E ? R = yu(d, _, C) : R = Xa(d, _, C), b.create(R);
13228
13242
  }
13229
13243
  }
13230
- class $u extends N {
13244
+ class Yu extends N {
13231
13245
  constructor() {
13232
13246
  super(...arguments);
13233
13247
  A(this, "minParams", 3);
@@ -13256,12 +13270,12 @@ class $u extends N {
13256
13270
  if (f < 0 || m <= 0 || m >= 1 || d <= 0 || d >= 1)
13257
13271
  return g.create(h.NUM);
13258
13272
  let _ = 0;
13259
- for (; _ <= f && !(Ru(_, f, m) >= d); )
13273
+ for (; _ <= f && !(yu(_, f, m) >= d); )
13260
13274
  _++;
13261
13275
  return b.create(_);
13262
13276
  }
13263
13277
  }
13264
- class Yu extends N {
13278
+ class Hu extends N {
13265
13279
  constructor() {
13266
13280
  super(...arguments);
13267
13281
  A(this, "minParams", 2);
@@ -13291,7 +13305,7 @@ class Yu extends N {
13291
13305
  return b.create(f);
13292
13306
  }
13293
13307
  }
13294
- class Hu extends N {
13308
+ class Gu extends N {
13295
13309
  constructor() {
13296
13310
  super(...arguments);
13297
13311
  A(this, "minParams", 2);
@@ -13317,11 +13331,11 @@ class Hu extends N {
13317
13331
  const [o, u] = s, c = +o.getValue(), l = Math.floor(+u.getValue());
13318
13332
  if (c < 0 || c > 1 || l < 1 || l > 10 ** 10)
13319
13333
  return g.create(h.NUM);
13320
- const f = yu(1 - c, l);
13334
+ const f = bu(1 - c, l);
13321
13335
  return Number.isNaN(f) || !Number.isFinite(f) ? g.create(h.NUM) : b.create(f);
13322
13336
  }
13323
13337
  }
13324
- class Gu extends N {
13338
+ class Wu extends N {
13325
13339
  constructor() {
13326
13340
  super(...arguments);
13327
13341
  A(this, "minParams", 2);
@@ -13367,7 +13381,7 @@ class Gu extends N {
13367
13381
  return b.create(u);
13368
13382
  }
13369
13383
  }
13370
- class Wu extends N {
13384
+ class Qu extends N {
13371
13385
  constructor() {
13372
13386
  super(...arguments);
13373
13387
  A(this, "minParams", 3);
@@ -13402,7 +13416,7 @@ class Wu extends N {
13402
13416
  return n === 1 && s === 1 ? l.get(0, 0) : l;
13403
13417
  }
13404
13418
  }
13405
- class Qu extends N {
13419
+ class qu extends N {
13406
13420
  constructor() {
13407
13421
  super(...arguments);
13408
13422
  A(this, "minParams", 2);
@@ -13451,7 +13465,7 @@ class Qu extends N {
13451
13465
  return b.create(c / r);
13452
13466
  }
13453
13467
  }
13454
- class qu extends N {
13468
+ class Xu extends N {
13455
13469
  constructor() {
13456
13470
  super(...arguments);
13457
13471
  A(this, "minParams", 3);
@@ -13483,7 +13497,7 @@ class qu extends N {
13483
13497
  return d ? _ = hg(f, m) : _ = gg(f, m), b.create(_);
13484
13498
  }
13485
13499
  }
13486
- class Xu extends N {
13500
+ class Ku extends N {
13487
13501
  constructor() {
13488
13502
  super(...arguments);
13489
13503
  A(this, "minParams", 3);
@@ -13515,7 +13529,7 @@ class Xu extends N {
13515
13529
  return b.create(_);
13516
13530
  }
13517
13531
  }
13518
- class Ku extends N {
13532
+ class Zu extends N {
13519
13533
  constructor() {
13520
13534
  super(...arguments);
13521
13535
  A(this, "minParams", 3);
@@ -13543,11 +13557,11 @@ class Ku extends N {
13543
13557
  const [u, c, l] = o, f = +u.getValue(), m = Math.floor(+c.getValue()), d = Math.floor(+l.getValue());
13544
13558
  if (f < 0 || f > 1 || m < 1 || m > 10 ** 10 || d < 1 || d > 10 ** 10)
13545
13559
  return g.create(h.NUM);
13546
- const _ = bu(1 - f, m, d);
13560
+ const _ = pu(1 - f, m, d);
13547
13561
  return Number.isNaN(_) || !Number.isFinite(_) ? g.create(h.NUM) : b.create(_);
13548
13562
  }
13549
13563
  }
13550
- class Zu extends N {
13564
+ class zu extends N {
13551
13565
  constructor() {
13552
13566
  super(...arguments);
13553
13567
  A(this, "minParams", 2);
@@ -13637,7 +13651,7 @@ class Zu extends N {
13637
13651
  };
13638
13652
  }
13639
13653
  }
13640
- class zu extends N {
13654
+ class Ju extends N {
13641
13655
  constructor() {
13642
13656
  super(...arguments);
13643
13657
  A(this, "minParams", 4);
@@ -13671,7 +13685,7 @@ class zu extends N {
13671
13685
  return E ? R = dg(d, _, C) : R = Cg(d, _, C), b.create(R);
13672
13686
  }
13673
13687
  }
13674
- class Ju extends N {
13688
+ class ec extends N {
13675
13689
  constructor() {
13676
13690
  super(...arguments);
13677
13691
  A(this, "minParams", 3);
@@ -13703,7 +13717,7 @@ class Ju extends N {
13703
13717
  return Number.isNaN(_) || !Number.isFinite(_) ? g.create(h.NUM) : b.create(_);
13704
13718
  }
13705
13719
  }
13706
- class ec extends N {
13720
+ class tc extends N {
13707
13721
  constructor() {
13708
13722
  super(...arguments);
13709
13723
  A(this, "minParams", 3);
@@ -13735,7 +13749,7 @@ class ec extends N {
13735
13749
  return Number.isNaN(_) || !Number.isFinite(_) ? g.create(h.NUM) : b.create(_);
13736
13750
  }
13737
13751
  }
13738
- class tc extends N {
13752
+ class rc extends N {
13739
13753
  constructor() {
13740
13754
  super(...arguments);
13741
13755
  A(this, "minParams", 1);
@@ -13765,10 +13779,10 @@ class tc extends N {
13765
13779
  q(d) && (t[+d] ? (t[+d].count++, t[+d].count > n && (n = t[+d].count)) : t[+d] = { count: 1, order: r++ });
13766
13780
  }
13767
13781
  }
13768
- return r === 0 || n === 1 ? new g(h.NA) : Lu(t, n);
13782
+ return r === 0 || n === 1 ? new g(h.NA) : Pu(t, n);
13769
13783
  }
13770
13784
  }
13771
- class rc extends N {
13785
+ class nc extends N {
13772
13786
  constructor() {
13773
13787
  super(...arguments);
13774
13788
  A(this, "minParams", 4);
@@ -13799,10 +13813,10 @@ class rc extends N {
13799
13813
  if (C <= 0)
13800
13814
  return g.create(h.NUM);
13801
13815
  let R;
13802
- return E ? R = rn(d, _, C) : R = Ou(d, _, C), b.create(R);
13816
+ return E ? R = rn(d, _, C) : R = Mu(d, _, C), b.create(R);
13803
13817
  }
13804
13818
  }
13805
- class nc extends N {
13819
+ class sc extends N {
13806
13820
  constructor() {
13807
13821
  super(...arguments);
13808
13822
  A(this, "minParams", 3);
@@ -13834,7 +13848,7 @@ class nc extends N {
13834
13848
  return b.create(_);
13835
13849
  }
13836
13850
  }
13837
- class sc extends N {
13851
+ class ac extends N {
13838
13852
  constructor() {
13839
13853
  super(...arguments);
13840
13854
  A(this, "minParams", 1);
@@ -13858,7 +13872,7 @@ class sc extends N {
13858
13872
  return b.create(u);
13859
13873
  }
13860
13874
  }
13861
- class ac extends N {
13875
+ class ic extends N {
13862
13876
  constructor() {
13863
13877
  super(...arguments);
13864
13878
  A(this, "minParams", 2);
@@ -13879,10 +13893,10 @@ class ac extends N {
13879
13893
  if (r)
13880
13894
  return n;
13881
13895
  const [o] = s, u = +o.getValue();
13882
- return Tu(e, u);
13896
+ return vu(e, u);
13883
13897
  }
13884
13898
  }
13885
- class ic extends N {
13899
+ class oc extends N {
13886
13900
  constructor() {
13887
13901
  super(...arguments);
13888
13902
  A(this, "minParams", 2);
@@ -13935,7 +13949,7 @@ class ic extends N {
13935
13949
  return n.sort((s, o) => s - o);
13936
13950
  }
13937
13951
  }
13938
- class oc extends N {
13952
+ class uc extends N {
13939
13953
  constructor() {
13940
13954
  super(...arguments);
13941
13955
  A(this, "minParams", 3);
@@ -13964,10 +13978,10 @@ class oc extends N {
13964
13978
  if (f < 0 || m < 0)
13965
13979
  return g.create(h.NUM);
13966
13980
  let _;
13967
- return d ? _ = bg(f, m) : _ = Mu(f, m), b.create(_);
13981
+ return d ? _ = bg(f, m) : _ = Su(f, m), b.create(_);
13968
13982
  }
13969
13983
  }
13970
- class uc extends N {
13984
+ class cc extends N {
13971
13985
  constructor() {
13972
13986
  super(...arguments);
13973
13987
  A(this, "minParams", 2);
@@ -13988,10 +14002,10 @@ class uc extends N {
13988
14002
  if (r)
13989
14003
  return n;
13990
14004
  const [o] = s, u = Math.floor(+o.getValue());
13991
- return Iu(e, u);
14005
+ return Fu(e, u);
13992
14006
  }
13993
14007
  }
13994
- class cc extends N {
14008
+ class lc extends N {
13995
14009
  constructor() {
13996
14010
  super(...arguments);
13997
14011
  A(this, "minParams", 1);
@@ -14002,7 +14016,7 @@ class cc extends N {
14002
14016
  return t.isError() ? t : t.std();
14003
14017
  }
14004
14018
  }
14005
- class lc extends N {
14019
+ class fc extends N {
14006
14020
  constructor() {
14007
14021
  super(...arguments);
14008
14022
  A(this, "minParams", 1);
@@ -14013,7 +14027,7 @@ class lc extends N {
14013
14027
  return t.isError() ? t : t.std(1);
14014
14028
  }
14015
14029
  }
14016
- class fc extends N {
14030
+ class mc extends N {
14017
14031
  constructor() {
14018
14032
  super(...arguments);
14019
14033
  A(this, "minParams", 2);
@@ -14043,7 +14057,7 @@ class fc extends N {
14043
14057
  return Number.isNaN(f) || !Number.isFinite(f) ? g.create(h.NUM) : b.create(f);
14044
14058
  }
14045
14059
  }
14046
- class mc extends N {
14060
+ class hc extends N {
14047
14061
  constructor() {
14048
14062
  super(...arguments);
14049
14063
  A(this, "minParams", 4);
@@ -14238,7 +14252,7 @@ class mc extends N {
14238
14252
  };
14239
14253
  }
14240
14254
  }
14241
- class hc extends N {
14255
+ class gc extends N {
14242
14256
  constructor() {
14243
14257
  super(...arguments);
14244
14258
  A(this, "minParams", 1);
@@ -14249,7 +14263,7 @@ class hc extends N {
14249
14263
  return t.isError() ? t : t.var();
14250
14264
  }
14251
14265
  }
14252
- class gc extends N {
14266
+ class dc extends N {
14253
14267
  constructor() {
14254
14268
  super(...arguments);
14255
14269
  A(this, "minParams", 1);
@@ -14260,7 +14274,7 @@ class gc extends N {
14260
14274
  return t.isError() ? t : t.var(1);
14261
14275
  }
14262
14276
  }
14263
- class dc extends N {
14277
+ class Cc extends N {
14264
14278
  constructor() {
14265
14279
  super(...arguments);
14266
14280
  A(this, "minParams", 4);
@@ -14295,7 +14309,7 @@ class dc extends N {
14295
14309
  return E ? y = 1 - R : y = _ / C ** _ * d ** (_ - 1) * R, Number.isNaN(y) || !Number.isFinite(y) ? g.create(h.NUM) : b.create(y);
14296
14310
  }
14297
14311
  }
14298
- class Cc extends N {
14312
+ class _c extends N {
14299
14313
  constructor() {
14300
14314
  super(...arguments);
14301
14315
  A(this, "minParams", 2);
@@ -14401,7 +14415,7 @@ class Og extends N {
14401
14415
  const [l, f, m, d, _] = c, C = +l.getValue(), E = +f.getValue(), R = +m.getValue(), y = +d.getValue(), p = +_.getValue();
14402
14416
  if (E <= 0 || R <= 0 || C < y || C > p || y === p)
14403
14417
  return g.create(h.NUM);
14404
- const V = Eu((C - y) / (p - y), E, R);
14418
+ const V = Ru((C - y) / (p - y), E, R);
14405
14419
  return b.create(V);
14406
14420
  }
14407
14421
  }
@@ -14468,7 +14482,7 @@ class Sg extends N {
14468
14482
  const [u, c, l] = o, f = +u.getValue(), m = +c.getValue(), d = +l.getValue();
14469
14483
  if (f <= 0 || d <= 0)
14470
14484
  return g.create(h.NUM);
14471
- const _ = Vu(f, m, d);
14485
+ const _ = Ou(f, m, d);
14472
14486
  return b.create(_);
14473
14487
  }
14474
14488
  }
@@ -14618,43 +14632,43 @@ class Pg extends N {
14618
14632
  }
14619
14633
  const xg = [
14620
14634
  [Og, fe.BETADIST],
14621
- [Bu, fe.BETAINV],
14622
- [ku, fe.BINOMDIST],
14623
- [Yu, fe.CHIDIST],
14624
- [Hu, fe.CHIINV],
14625
- [Gu, fe.CHITEST],
14626
- [Wu, fe.CONFIDENCE],
14627
- [Qu, fe.COVAR],
14628
- [$u, fe.CRITBINOM],
14629
- [qu, fe.EXPONDIST],
14630
- [Xu, fe.FDIST],
14631
- [Ku, fe.FINV],
14632
- [Zu, fe.FTEST],
14633
- [zu, fe.GAMMADIST],
14634
- [Ju, fe.GAMMAINV],
14635
+ [ku, fe.BETAINV],
14636
+ [$u, fe.BINOMDIST],
14637
+ [Hu, fe.CHIDIST],
14638
+ [Gu, fe.CHIINV],
14639
+ [Wu, fe.CHITEST],
14640
+ [Qu, fe.CONFIDENCE],
14641
+ [qu, fe.COVAR],
14642
+ [Yu, fe.CRITBINOM],
14643
+ [Xu, fe.EXPONDIST],
14644
+ [Ku, fe.FDIST],
14645
+ [Zu, fe.FINV],
14646
+ [zu, fe.FTEST],
14647
+ [Ju, fe.GAMMADIST],
14648
+ [ec, fe.GAMMAINV],
14635
14649
  [Mg, fe.HYPGEOMDIST],
14636
14650
  [Sg, fe.LOGNORMDIST],
14637
- [ec, fe.LOGINV],
14638
- [tc, fe.MODE],
14651
+ [tc, fe.LOGINV],
14652
+ [rc, fe.MODE],
14639
14653
  [Dg, fe.NEGBINOMDIST],
14640
- [rc, fe.NORMDIST],
14641
- [nc, fe.NORMINV],
14654
+ [nc, fe.NORMDIST],
14655
+ [sc, fe.NORMINV],
14642
14656
  [wg, fe.NORMSDIST],
14643
- [sc, fe.NORMSINV],
14644
- [ac, fe.PERCENTILE],
14645
- [ic, fe.PERCENTRANK],
14646
- [oc, fe.POISSON],
14647
- [uc, fe.QUARTILE],
14657
+ [ac, fe.NORMSINV],
14658
+ [ic, fe.PERCENTILE],
14659
+ [oc, fe.PERCENTRANK],
14660
+ [uc, fe.POISSON],
14661
+ [cc, fe.QUARTILE],
14648
14662
  [Lg, fe.RANK],
14649
- [lc, fe.STDEV],
14650
- [cc, fe.STDEVP],
14663
+ [fc, fe.STDEV],
14664
+ [lc, fe.STDEVP],
14651
14665
  [Pg, fe.TDIST],
14652
- [fc, fe.TINV],
14653
- [mc, fe.TTEST],
14654
- [gc, fe.VAR],
14655
- [hc, fe.VARP],
14656
- [dc, fe.WEIBULL],
14657
- [Cc, fe.ZTEST]
14666
+ [mc, fe.TINV],
14667
+ [hc, fe.TTEST],
14668
+ [dc, fe.VAR],
14669
+ [gc, fe.VARP],
14670
+ [Cc, fe.WEIBULL],
14671
+ [_c, fe.ZTEST]
14658
14672
  ], jg = [];
14659
14673
  var Ug = /* @__PURE__ */ ((i) => (i.CUBEKPIMEMBER = "CUBEKPIMEMBER", i.CUBEMEMBER = "CUBEMEMBER", i.CUBEMEMBERPROPERTY = "CUBEMEMBERPROPERTY", i.CUBERANKEDMEMBER = "CUBERANKEDMEMBER", i.CUBESET = "CUBESET", i.CUBESETCOUNT = "CUBESETCOUNT", i.CUBEVALUE = "CUBEVALUE", i))(Ug || {});
14660
14674
  class Tg extends N {
@@ -15192,7 +15206,7 @@ function Qn(i) {
15192
15206
  function si(i) {
15193
15207
  return yt.getFormatInfo(i).isDate;
15194
15208
  }
15195
- const _c = {
15209
+ const Ac = {
15196
15210
  1: [6, 0],
15197
15211
  // Saturday, Sunday
15198
15212
  2: [0, 1],
@@ -15223,9 +15237,9 @@ const _c = {
15223
15237
  // Saturday only
15224
15238
  };
15225
15239
  function Xr(i) {
15226
- return !!(typeof i == "string" && /^[0|1]{7}/.test(i) || _c[Number(i)]);
15240
+ return !!(typeof i == "string" && /^[0|1]{7}/.test(i) || Ac[Number(i)]);
15227
15241
  }
15228
- function Ac(i) {
15242
+ function Ec(i) {
15229
15243
  if (!Xr(i))
15230
15244
  return [];
15231
15245
  if (typeof i == "string" && /^[0|1]{7}/.test(i)) {
@@ -15234,10 +15248,10 @@ function Ac(i) {
15234
15248
  `${i[e - 1]}` == "1" && (e === i.length ? a.push(0) : a.push(e));
15235
15249
  return a;
15236
15250
  }
15237
- return _c[Number(i)] || [];
15251
+ return Ac[Number(i)] || [];
15238
15252
  }
15239
15253
  function qn(i, a, e = 1, t) {
15240
- const r = Ac(e), n = Math.floor(i), s = Math.floor(a), o = s > n ? n : s;
15254
+ const r = Ec(e), n = Math.floor(i), s = Math.floor(a), o = s > n ? n : s;
15241
15255
  let u = 0;
15242
15256
  const c = Math.abs(Math.floor(a) - Math.floor(i)) + 1;
15243
15257
  for (let l = 0; l < c; l++) {
@@ -15250,7 +15264,7 @@ function qn(i, a, e = 1, t) {
15250
15264
  return s >= n ? u : -u;
15251
15265
  }
15252
15266
  function Xn(i, a, e = 1, t) {
15253
- const r = Ac(e), n = Math.floor(i);
15267
+ const r = Ec(e), n = Math.floor(i);
15254
15268
  let s = n, o = Math.abs(a);
15255
15269
  for (let u = 1; u <= o; u++) {
15256
15270
  const c = a < 0 ? n - u : n + u;
@@ -15370,7 +15384,7 @@ function an(i, a) {
15370
15384
  function ys(i) {
15371
15385
  return rd(i) ? 366 : 365;
15372
15386
  }
15373
- function Ec(i, a) {
15387
+ function Rc(i, a) {
15374
15388
  switch (a) {
15375
15389
  case 0:
15376
15390
  case 2:
@@ -16068,7 +16082,7 @@ class pd extends N {
16068
16082
  if (r) {
16069
16083
  let { v: n, z: s } = r;
16070
16084
  if (s && si(s))
16071
- return n instanceof Date && (n = sn(n)), b.create(Tm(+n));
16085
+ return n instanceof Date && (n = sn(n)), b.create(vm(+n));
16072
16086
  }
16073
16087
  }
16074
16088
  return g.create(h.VALUE);
@@ -18505,7 +18519,7 @@ function ze(i, a, e, t) {
18505
18519
  } else t === 3 ? r = 365 / e : r = 360 / e;
18506
18520
  return r;
18507
18521
  }
18508
- function Rc(i, a, e) {
18522
+ function yc(i, a, e) {
18509
18523
  const t = ae(i);
18510
18524
  let r = ae(a);
18511
18525
  for (r.setUTCFullYear(t.getUTCFullYear()), r < t && r.setUTCFullYear(r.getUTCFullYear() + 1); r > t; )
@@ -18527,7 +18541,7 @@ function Wt(i, a, e) {
18527
18541
  r = wr(r, -12 / e);
18528
18542
  return Ne(r);
18529
18543
  }
18530
- function yc(i, a, e, t, r, n) {
18544
+ function bc(i, a, e, t, r, n) {
18531
18545
  const s = bs(i, a, r, n), o = ze(i, a, r, n), u = ur(i, a, r), c = (o - s) / o - 1, l = t / r + 1, f = e * 100 / r;
18532
18546
  let m = 0, d = 0;
18533
18547
  for (let E = 1; E <= u; E++) {
@@ -18559,17 +18573,17 @@ function cr(i, a, e, t, r) {
18559
18573
  }
18560
18574
  return -n;
18561
18575
  }
18562
- function bc(i, a, e, t, r, n) {
18576
+ function pc(i, a, e, t, r, n) {
18563
18577
  const s = on(i, e, t, r, n);
18564
18578
  return (a === 1 ? n === 1 ? 0 : -t : n === 1 ? cr(i, a - 2, s, t, 1) - s : cr(i, a - 1, s, t, 0)) * i;
18565
18579
  }
18566
- function pc(i, a) {
18580
+ function Nc(i, a) {
18567
18581
  let e = 0;
18568
18582
  for (let t = 1; t <= a.length; t++)
18569
18583
  e += a[t - 1] / (1 + i) ** t;
18570
18584
  return e;
18571
18585
  }
18572
- function Nc(i, a, e, t, r, n, s, o, u) {
18586
+ function Vc(i, a, e, t, r, n, s, o, u) {
18573
18587
  const c = tr(e, t, u), l = ze(i, t, o, u);
18574
18588
  return c < l ? v1(
18575
18589
  i,
@@ -18610,7 +18624,7 @@ function I1(i, a, e, t, r, n, s, o, u, c) {
18610
18624
  const f = ur(t, a, o), m = F1(t, i, 12 / o);
18611
18625
  let d;
18612
18626
  if (u === 2 || u === 3) {
18613
- const y = Rc(i, t, o);
18627
+ const y = yc(i, t, o);
18614
18628
  d = tr(i, y, u);
18615
18629
  } else {
18616
18630
  const y = Wt(i, t, o), { days: p } = _e(y, i, u);
@@ -18634,7 +18648,7 @@ function tr(i, a, e) {
18634
18648
  const { days: t } = _e(i, a, e);
18635
18649
  return i < a ? t : 0;
18636
18650
  }
18637
- function Vc(i, a, e) {
18651
+ function Oc(i, a, e) {
18638
18652
  const t = ae(i), r = t.getUTCFullYear(), n = t.getUTCMonth(), s = t.getUTCDate(), o = Dr(r, n, s), u = ae(a), c = u.getUTCFullYear(), l = u.getUTCMonth(), f = u.getUTCDate(), m = Dr(c, l, f);
18639
18653
  return !(s !== f && !(o && m) || Math.abs((c - r) * 12 + (l - n)) % (12 / e) !== 0);
18640
18654
  }
@@ -18923,7 +18937,7 @@ class Q1 extends N {
18923
18937
  return g.create(h.VALUE);
18924
18938
  if (![1, 2, 4].includes(E) || R < 0 || R > 4 || Math.floor(_) >= Math.floor(C))
18925
18939
  return g.create(h.NUM);
18926
- const y = Rc(_, C, E);
18940
+ const y = yc(_, C, E);
18927
18941
  return b.create(y);
18928
18942
  }
18929
18943
  }
@@ -19202,7 +19216,7 @@ class n0 extends N {
19202
19216
  return g.create(h.VALUE);
19203
19217
  if (V < 0 || M < 0 || ![1, 2, 4].includes(S) || D < 0 || D > 4 || Math.floor(y) >= Math.floor(p) || y <= 0 || p <= 366)
19204
19218
  return g.create(h.NUM);
19205
- const w = yc(y, p, V, M, S, D);
19219
+ const w = bc(y, p, V, M, S, D);
19206
19220
  return b.create(w);
19207
19221
  }
19208
19222
  }
@@ -19347,7 +19361,7 @@ class u0 extends N {
19347
19361
  const [ne, z, $, de, Ce, pe] = G, Ve = +ne.getValue(), ge = +z.getValue(), Fe = +$.getValue(), dt = +de.getValue(), Tt = +Ce.getValue(), vt = +pe.getValue();
19348
19362
  if (ge < 1 || Math.floor(ge) > Math.ceil(Fe))
19349
19363
  return g.create(h.NUM);
19350
- const ct = bc(Ve, ge, Fe, dt, Tt, vt ? 1 : 0);
19364
+ const ct = pc(Ve, ge, Fe, dt, Tt, vt ? 1 : 0);
19351
19365
  return Number.isNaN(ct) || !Number.isFinite(ct) ? g.create(h.NUM) : V === 0 && M === 0 ? b.create(ct, et(this.getLocale())) : b.create(ct);
19352
19366
  });
19353
19367
  return l === 1 && f === 1 ? y.get(0, 0) : y;
@@ -19381,7 +19395,7 @@ class c0 extends N {
19381
19395
  const c = +u.getValue(), { positive: l, negative: f } = this._checkValues(s);
19382
19396
  if (!l || !f)
19383
19397
  return g.create(h.NUM);
19384
- const m = ai(c, (d) => pc(d, s));
19398
+ const m = ai(c, (d) => Nc(d, s));
19385
19399
  return typeof m != "number" ? m : r === 0 && n === 0 ? b.create(m, "0%") : b.create(m);
19386
19400
  }
19387
19401
  _getValues(e) {
@@ -19465,7 +19479,7 @@ class f0 extends N {
19465
19479
  return g.create(h.VALUE);
19466
19480
  if (V < 0 || M < 0 || ![1, 2, 4].includes(S) || D < 0 || D > 4 || Math.floor(y) >= Math.floor(p))
19467
19481
  return g.create(h.NUM);
19468
- let w = yc(y, p, V, M, S, D);
19482
+ let w = bc(y, p, V, M, S, D);
19469
19483
  return w /= 1 + M / S, b.create(w);
19470
19484
  }
19471
19485
  }
@@ -19636,7 +19650,7 @@ class d0 extends N {
19636
19650
  return u;
19637
19651
  if (t)
19638
19652
  return r;
19639
- const c = +e.getValue(), l = pc(c, n);
19653
+ const c = +e.getValue(), l = Nc(c, n);
19640
19654
  return Number.isNaN(l) || Math.abs(l) === 1 / 0 ? g.create(h.DIV_BY_ZERO) : s === 0 && o === 0 ? b.create(l, et(this.getLocale())) : b.create(l);
19641
19655
  }
19642
19656
  _getValues(e) {
@@ -19710,11 +19724,11 @@ class C0 extends N {
19710
19724
  return g.create(h.VALUE);
19711
19725
  if (k < 0 || G < 0 || ne <= 0 || ![1, 2, 4].includes(z) || $ < 0 || $ > 4 || !this._validDate(L, j, w, T, z))
19712
19726
  return g.create(h.NUM);
19713
- const de = Nc(w, L, T, j, k, G, ne, z, $);
19727
+ const de = Vc(w, L, T, j, k, G, ne, z, $);
19714
19728
  return b.create(de);
19715
19729
  }
19716
19730
  _validDate(e, t, r, n, s) {
19717
- return this._getDateCorrectOrder(e, t, r, n) && Vc(e, t, s) && Tr(n, e, s);
19731
+ return this._getDateCorrectOrder(e, t, r, n) && Oc(e, t, s) && Tr(n, e, s);
19718
19732
  }
19719
19733
  _getDateCorrectOrder(e, t, r, n) {
19720
19734
  return Math.floor(e) > Math.floor(t) && Math.floor(t) > Math.floor(r) && Math.floor(r) > Math.floor(n);
@@ -19748,7 +19762,7 @@ class _0 extends N {
19748
19762
  return Number.isNaN(k) || Number.isNaN(G) || Number.isNaN(ne) || Number.isNaN(z) || Number.isNaN($) ? g.create(h.VALUE) : k < 0 || G <= 0 || ne <= 0 || ![1, 2, 4].includes(z) || $ < 0 || $ > 4 || !this._validDate(L, j, w, T, z) ? g.create(h.NUM) : this._getResult(w, L, T, j, k, G, ne, z, $);
19749
19763
  }
19750
19764
  _validDate(e, t, r, n, s) {
19751
- return this._getDateCorrectOrder(e, t, r, n) && Vc(e, t, s) && Tr(n, e, s);
19765
+ return this._getDateCorrectOrder(e, t, r, n) && Oc(e, t, s) && Tr(n, e, s);
19752
19766
  }
19753
19767
  _getDateCorrectOrder(e, t, r, n) {
19754
19768
  return Math.floor(e) > Math.floor(t) && Math.floor(t) > Math.floor(r) && Math.floor(r) > Math.floor(n);
@@ -19756,7 +19770,7 @@ class _0 extends N {
19756
19770
  _getResult(e, t, r, n, s, o, u, c, l) {
19757
19771
  const { days: f } = _e(e, t, l), m = (s * f * 100 - (o - 100)) / ((o - 100) * 0.25 * (1 + 2 * f) + f * 100);
19758
19772
  function d(C) {
19759
- return o - Nc(e, t, r, n, s, C, u, c, l);
19773
+ return o - Vc(e, t, r, n, s, C, u, c, l);
19760
19774
  }
19761
19775
  const _ = ai(m, (C) => d(C));
19762
19776
  return typeof _ != "number" ? _ : b.create(_);
@@ -19978,7 +19992,7 @@ class b0 extends N {
19978
19992
  const [ne, z, $, de, Ce, pe] = G, Ve = +ne.getValue(), ge = +z.getValue(), Fe = +$.getValue(), dt = +de.getValue(), Tt = +Ce.getValue(), vt = +pe.getValue();
19979
19993
  if (ge < 1 || Math.floor(ge) > Math.ceil(Fe) || ge - Fe >= 1)
19980
19994
  return g.create(h.NUM);
19981
- const ct = on(Ve, Fe, dt, Tt, vt ? 1 : 0) - bc(Ve, ge, Fe, dt, Tt, vt ? 1 : 0);
19995
+ const ct = on(Ve, Fe, dt, Tt, vt ? 1 : 0) - pc(Ve, ge, Fe, dt, Tt, vt ? 1 : 0);
19982
19996
  return Number.isNaN(ct) || !Number.isFinite(ct) ? g.create(h.NUM) : V === 0 && M === 0 ? b.create(ct, et(this.getLocale())) : b.create(ct);
19983
19997
  });
19984
19998
  return l === 1 && f === 1 ? y.get(0, 0) : y;
@@ -20065,7 +20079,7 @@ class V0 extends N {
20065
20079
  const w = this._getDateCorrectOrder(p, y, V);
20066
20080
  if (M < 0 || S < 0 || D < 0 || D > 4 || !w)
20067
20081
  return g.create(h.NUM);
20068
- const L = Ec(y, D), { days: T } = _e(y, p, D), { days: j } = _e(V, p, D), { days: k } = _e(V, y, D), G = (100 + j / L * M * 100) / (1 + T / L * S) - k / L * M * 100;
20082
+ const L = Rc(y, D), { days: T } = _e(y, p, D), { days: j } = _e(V, p, D), { days: k } = _e(V, y, D), G = (100 + j / L * M * 100) / (1 + T / L * S) - k / L * M * 100;
20069
20083
  return b.create(G);
20070
20084
  }
20071
20085
  _getDateCorrectOrder(e, t, r) {
@@ -20135,8 +20149,8 @@ class M0 extends N {
20135
20149
  const ct = +Ve.getValue();
20136
20150
  if (vt = vt ? 1 : 0, ge <= 0)
20137
20151
  return g.create(h.NUM);
20138
- const vc = Fe >= 0 && dt >= 0 && Tt >= 0, Ic = Fe <= 0 && dt <= 0 && Tt <= 0;
20139
- return vc || Ic ? g.create(h.NUM) : this._getResult(ge, Fe, dt, Tt, vt, ct, M, S);
20152
+ const Ic = Fe >= 0 && dt >= 0 && Tt >= 0, Fc = Fe <= 0 && dt <= 0 && Tt <= 0;
20153
+ return Ic || Fc ? g.create(h.NUM) : this._getResult(ge, Fe, dt, Tt, vt, ct, M, S);
20140
20154
  });
20141
20155
  return f === 1 && m === 1 ? p.get(0, 0) : p;
20142
20156
  }
@@ -20869,7 +20883,7 @@ class B0 extends N {
20869
20883
  const w = this._getDateCorrectOrder(p, y, V);
20870
20884
  if (M < 0 || S <= 0 || D < 0 || D > 4 || !w)
20871
20885
  return g.create(h.NUM);
20872
- const L = Ec(y, D), { days: T } = _e(y, p, D), { days: j } = _e(V, p, D), { days: k } = _e(V, y, D), G = ((1 + j / L * M) / (S / 100 + k / L * M) - 1) / (T / L);
20886
+ const L = Rc(y, D), { days: T } = _e(y, p, D), { days: j } = _e(V, p, D), { days: k } = _e(V, y, D), G = ((1 + j / L * M) / (S / 100 + k / L * M) - 1) / (T / L);
20873
20887
  return b.create(G);
20874
20888
  }
20875
20889
  _getDateCorrectOrder(e, t, r) {
@@ -21735,7 +21749,7 @@ class bC extends N {
21735
21749
  c.isArray() && (c = c.get(0, 0)), s[o][u] = c;
21736
21750
  }
21737
21751
  }
21738
- return new Hm(s);
21752
+ return new Gm(s);
21739
21753
  }
21740
21754
  isAsync() {
21741
21755
  return !0;
@@ -22129,7 +22143,7 @@ class PC extends N {
22129
22143
  const o = Number.parseInt(`${Number(e.getValue()) - 1}`), u = Number.parseInt(`${Number(t.getValue()) - 1}`), c = Number.parseInt(`${Number(r.getValue())}`);
22130
22144
  if (Number.isNaN(o) || Number.isNaN(u) || Number.isNaN(c) || c < 1 || c > 4)
22131
22145
  return g.create(h.VALUE);
22132
- const l = xC(c), f = this.getZeroOrOneByOneDefault(n), m = `${s.getValue()}`, d = wo(m), _ = {
22146
+ const l = xC(c), f = this.getZeroOrOneByOneDefault(n), m = `${s.getValue()}`, d = Lo(m), _ = {
22133
22147
  startRow: o,
22134
22148
  startColumn: u,
22135
22149
  endRow: o,
@@ -22870,9 +22884,9 @@ class XC extends N {
22870
22884
  }
22871
22885
  if (Kr(n))
22872
22886
  return this._setDefault(new ja(n));
22873
- if (po(n))
22874
- return this._setDefault(new Ta(n));
22875
22887
  if (No(n))
22888
+ return this._setDefault(new Ta(n));
22889
+ if (Vo(n))
22876
22890
  return this._setDefault(new Ua(n));
22877
22891
  const s = pr(n), { range: o, sheetName: u, unitId: c } = s;
22878
22892
  if (Number.isNaN(o.startRow) || o.endRow + 1 > 1048576 || Number.isNaN(o.startColumn) || o.endColumn + 1 > 16384)
@@ -23474,7 +23488,7 @@ class n_ extends N {
23474
23488
  }
23475
23489
  calculate(e, ...t) {
23476
23490
  t.length === 1 && t.push(b.create(1));
23477
- const r = this._getVariantsError(e, ...t), { maxRowLength: n, maxColumnLength: s } = qm(t);
23491
+ const r = this._getVariantsError(e, ...t), { maxRowLength: n, maxColumnLength: s } = Xm(t);
23478
23492
  if (r.isError()) {
23479
23493
  const c = O(n, s, r);
23480
23494
  return n === 1 && s === 1 ? c.get(0, 0) : c;
@@ -24427,10 +24441,10 @@ class E_ extends N {
24427
24441
  }
24428
24442
  calculate(e) {
24429
24443
  let t = e;
24430
- return t.isString() && (t = t.convertToNumberObjectValue()), t.isError() ? t : t.isArray() ? t.map((r) => r.isError() ? r : so(r)) : so(t);
24444
+ return t.isString() && (t = t.convertToNumberObjectValue()), t.isError() ? t : t.isArray() ? t.map((r) => r.isError() ? r : ao(r)) : ao(t);
24431
24445
  }
24432
24446
  }
24433
- function so(i) {
24447
+ function ao(i) {
24434
24448
  let a = i.getValue();
24435
24449
  if (i.isBoolean() && (a = a ? 1 : 0), !Number.isFinite(a))
24436
24450
  return g.create(h.VALUE);
@@ -24446,10 +24460,10 @@ class R_ extends N {
24446
24460
  }
24447
24461
  calculate(e) {
24448
24462
  let t = e;
24449
- return t.isString() && (t = t.convertToNumberObjectValue()), t.isError() ? t : t.isArray() ? t.map((r) => r.isError() ? r : ao(r)) : ao(t);
24463
+ return t.isString() && (t = t.convertToNumberObjectValue()), t.isError() ? t : t.isArray() ? t.map((r) => r.isError() ? r : io(r)) : io(t);
24450
24464
  }
24451
24465
  }
24452
- function ao(i) {
24466
+ function io(i) {
24453
24467
  let a = i.getValue();
24454
24468
  if (i.isBoolean() && (a = a ? 1 : 0), !Number.isFinite(a))
24455
24469
  return g.create(h.VALUE);
@@ -24483,7 +24497,7 @@ class b_ extends N {
24483
24497
  A(this, "needsFormulaDataModel", !0);
24484
24498
  }
24485
24499
  calculate(e, t, ...r) {
24486
- const { isError: n, multiAreaRefs: s, normalRefs: o } = Su(r);
24500
+ const { isError: n, multiAreaRefs: s, normalRefs: o } = Du(r);
24487
24501
  let u;
24488
24502
  e.isReferenceObject() ? u = e.toArrayValueObject() : u = e;
24489
24503
  let c;
@@ -24521,7 +24535,7 @@ class b_ extends N {
24521
24535
  f,
24522
24536
  r[0],
24523
24537
  r[1]
24524
- ) : Pu({
24538
+ ) : xu({
24525
24539
  type: y_[u],
24526
24540
  ...f,
24527
24541
  formulaDataModel: this._formulaDataModel
@@ -24596,17 +24610,17 @@ class b_ extends N {
24596
24610
  const u = +s.getValue();
24597
24611
  switch (e) {
24598
24612
  case 14:
24599
- return ju(o, u);
24600
- case 15:
24601
24613
  return Uu(o, u);
24602
- case 16:
24614
+ case 15:
24603
24615
  return Tu(o, u);
24616
+ case 16:
24617
+ return vu(o, u);
24604
24618
  case 17:
24605
- return Iu(o, u);
24619
+ return Fu(o, u);
24606
24620
  case 18:
24607
- return vu(o, u);
24621
+ return Iu(o, u);
24608
24622
  case 19:
24609
- return Fu(o, u);
24623
+ return Bu(o, u);
24610
24624
  default:
24611
24625
  return g.create(h.VALUE);
24612
24626
  }
@@ -25328,14 +25342,14 @@ class z_ extends N {
25328
25342
  const { isError: l, errorObject: f, number: m } = this._handleSingleObject(c);
25329
25343
  if (l)
25330
25344
  return o = !0, u = f, !1;
25331
- t = to(t, m), r = !1;
25345
+ t = ro(t, m), r = !1;
25332
25346
  }), o)
25333
25347
  return u;
25334
25348
  } else {
25335
25349
  const { isError: o, errorObject: u, number: c } = this._handleSingleObject(s);
25336
25350
  if (o)
25337
25351
  return u;
25338
- t = to(t, c), r = !1;
25352
+ t = ro(t, c), r = !1;
25339
25353
  }
25340
25354
  }
25341
25355
  return r ? b.create(0) : Number.isNaN(t) || !Number.isFinite(t) || t >= 2 ** 53 ? g.create(h.VALUE) : b.create(t);
@@ -26335,7 +26349,7 @@ class xA extends N {
26335
26349
  calculate(e, ...t) {
26336
26350
  let r;
26337
26351
  e.isReferenceObject() ? r = e.toArrayValueObject() : r = e;
26338
- const { isError: n, multiAreaRefs: s, normalRefs: o } = Su(t);
26352
+ const { isError: n, multiAreaRefs: s, normalRefs: o } = Du(t);
26339
26353
  if (!n && s.length > 0)
26340
26354
  return this._handleMultiAreaRefs(r, s, t);
26341
26355
  if (r.isArray()) {
@@ -26361,7 +26375,7 @@ class xA extends N {
26361
26375
  if (o < 1 || o > 11 && o < 101 || o > 111)
26362
26376
  return g.create(h.VALUE);
26363
26377
  let u = !1;
26364
- return o >= 101 && (o -= 100, u = !0), Pu({
26378
+ return o >= 101 && (o -= 100, u = !0), xu({
26365
26379
  type: PA[o],
26366
26380
  ignoreRowHidden: u,
26367
26381
  ignoreErrorValues: !1,
@@ -27494,7 +27508,7 @@ class iE extends N {
27494
27508
  if (y <= 0 || p <= 0 || R < M || R > S || M === S)
27495
27509
  return g.create(h.NUM);
27496
27510
  let D;
27497
- return V ? D = Eu((R - M) / (S - M), y, p) : D = lg((R - M) / (S - M), y, p) / (S - M), b.create(D);
27511
+ return V ? D = Ru((R - M) / (S - M), y, p) : D = lg((R - M) / (S - M), y, p) / (S - M), b.create(D);
27498
27512
  }
27499
27513
  }
27500
27514
  class oE extends N {
@@ -27593,7 +27607,7 @@ class cE extends N {
27593
27607
  const [o, u] = s, c = +o.getValue(), l = Math.floor(+u.getValue());
27594
27608
  if (c < 0 || c > 1 || l < 1 || l > 10 ** 10)
27595
27609
  return g.create(h.NUM);
27596
- const f = yu(c, l);
27610
+ const f = bu(c, l);
27597
27611
  return Number.isNaN(f) || !Number.isFinite(f) ? g.create(h.NUM) : b.create(f);
27598
27612
  }
27599
27613
  }
@@ -27962,7 +27976,7 @@ class yE extends N {
27962
27976
  const [u, c, l] = o, f = +u.getValue(), m = Math.floor(+c.getValue()), d = Math.floor(+l.getValue());
27963
27977
  if (f < 0 || f > 1 || m < 1 || m > 10 ** 10 || d < 1 || d > 10 ** 10)
27964
27978
  return g.create(h.NUM);
27965
- const _ = bu(f, m, d);
27979
+ const _ = pu(f, m, d);
27966
27980
  return Number.isNaN(_) || !Number.isFinite(_) ? g.create(h.NUM) : b.create(_);
27967
27981
  }
27968
27982
  }
@@ -28003,7 +28017,7 @@ class pE extends N {
28003
28017
  return !Number.isFinite(u) && u > 0 && !Number.isFinite(c) && c > 0 ? b.create(1) : b.create(u / c);
28004
28018
  }
28005
28019
  }
28006
- class io extends N {
28020
+ class oo extends N {
28007
28021
  constructor() {
28008
28022
  super(...arguments);
28009
28023
  A(this, "minParams", 3);
@@ -28050,7 +28064,7 @@ class io extends N {
28050
28064
  return m;
28051
28065
  if (C)
28052
28066
  return g.create(h.DIV_BY_ZERO);
28053
- const E = pu(l, d, _);
28067
+ const E = Nu(l, d, _);
28054
28068
  return Number.isFinite(E) ? b.create(E) : g.create(h.DIV_BY_ZERO);
28055
28069
  }
28056
28070
  }
@@ -28149,7 +28163,7 @@ class VE extends N {
28149
28163
  return Number.isNaN(u) || !Number.isFinite(u) ? g.create(h.NUM) : b.create(u);
28150
28164
  }
28151
28165
  }
28152
- class oo extends N {
28166
+ class uo extends N {
28153
28167
  constructor() {
28154
28168
  super(...arguments);
28155
28169
  A(this, "minParams", 1);
@@ -28410,7 +28424,7 @@ class LE extends N {
28410
28424
  return l ? f : _ ? g.create(h.DIV_BY_ZERO) : this._getResult(m, d);
28411
28425
  }
28412
28426
  _getResult(e, t) {
28413
- const r = pu(0, e, t);
28427
+ const r = Nu(0, e, t);
28414
28428
  return Number.isFinite(r) ? b.create(r) : g.create(h.DIV_BY_ZERO);
28415
28429
  }
28416
28430
  }
@@ -28482,7 +28496,7 @@ class xE extends N {
28482
28496
  if (r)
28483
28497
  return n;
28484
28498
  const [o] = s, u = +o.getValue();
28485
- return ju(e, u);
28499
+ return Uu(e, u);
28486
28500
  }
28487
28501
  }
28488
28502
  class jE extends N {
@@ -28756,7 +28770,7 @@ class TE extends N {
28756
28770
  if (d <= 0 || C <= 0)
28757
28771
  return g.create(h.NUM);
28758
28772
  let R;
28759
- return E ? R = Vu(d, _, C) : R = Eg(d, _, C), b.create(R);
28773
+ return E ? R = Ou(d, _, C) : R = Eg(d, _, C), b.create(R);
28760
28774
  }
28761
28775
  }
28762
28776
  class vE extends N {
@@ -28932,7 +28946,7 @@ class kE extends N {
28932
28946
  t.push(+s);
28933
28947
  }
28934
28948
  }
28935
- return t.length === 0 ? g.create(h.NUM) : xu(t);
28949
+ return t.length === 0 ? g.create(h.NUM) : ju(t);
28936
28950
  }
28937
28951
  }
28938
28952
  class $E extends N {
@@ -29126,7 +29140,7 @@ class QE extends N {
29126
29140
  return n;
29127
29141
  const [o, u] = s, c = +o.getValue(), l = +u.getValue();
29128
29142
  let f;
29129
- return l ? f = rn(c, 0, 1) : f = Ou(c, 0, 1), b.create(f);
29143
+ return l ? f = rn(c, 0, 1) : f = Mu(c, 0, 1), b.create(f);
29130
29144
  }
29131
29145
  }
29132
29146
  class qE extends N {
@@ -29198,7 +29212,7 @@ class XE extends N {
29198
29212
  if (r)
29199
29213
  return n;
29200
29214
  const [o] = s, u = +o.getValue();
29201
- return vu(e, u);
29215
+ return Iu(e, u);
29202
29216
  }
29203
29217
  }
29204
29218
  class KE extends N {
@@ -29460,7 +29474,7 @@ class tR extends N {
29460
29474
  if (r)
29461
29475
  return n;
29462
29476
  const [o] = s, u = Math.floor(+o.getValue());
29463
- return Fu(e, u);
29477
+ return Bu(e, u);
29464
29478
  }
29465
29479
  }
29466
29480
  class rR extends N {
@@ -29804,7 +29818,7 @@ class uR extends N {
29804
29818
  if (r)
29805
29819
  return n;
29806
29820
  const [o] = s, u = +o.getValue();
29807
- return Uu(e, u);
29821
+ return Tu(e, u);
29808
29822
  }
29809
29823
  }
29810
29824
  class cR extends N {
@@ -30161,16 +30175,16 @@ const yR = [
30161
30175
  [sE, P.AVERAGEIF],
30162
30176
  [aE, P.AVERAGEIFS],
30163
30177
  [iE, P.BETA_DIST],
30164
- [Bu, P.BETA_INV],
30165
- [ku, P.BINOM_DIST],
30178
+ [ku, P.BETA_INV],
30179
+ [$u, P.BINOM_DIST],
30166
30180
  [oE, P.BINOM_DIST_RANGE],
30167
- [$u, P.BINOM_INV],
30181
+ [Yu, P.BINOM_INV],
30168
30182
  [uE, P.CHISQ_DIST],
30169
- [Yu, P.CHISQ_DIST_RT],
30183
+ [Hu, P.CHISQ_DIST_RT],
30170
30184
  [cE, P.CHISQ_INV],
30171
- [Hu, P.CHISQ_INV_RT],
30172
- [Gu, P.CHISQ_TEST],
30173
- [Wu, P.CONFIDENCE_NORM],
30185
+ [Gu, P.CHISQ_INV_RT],
30186
+ [Wu, P.CHISQ_TEST],
30187
+ [Qu, P.CONFIDENCE_NORM],
30174
30188
  [lE, P.CONFIDENCE_T],
30175
30189
  [fE, P.CORREL],
30176
30190
  [mE, P.COUNT],
@@ -30178,25 +30192,25 @@ const yR = [
30178
30192
  [gE, P.COUNTBLANK],
30179
30193
  [dE, P.COUNTIF],
30180
30194
  [CE, P.COUNTIFS],
30181
- [Qu, P.COVARIANCE_P],
30195
+ [qu, P.COVARIANCE_P],
30182
30196
  [AE, P.COVARIANCE_S],
30183
30197
  [EE, P.DEVSQ],
30184
- [qu, P.EXPON_DIST],
30198
+ [Xu, P.EXPON_DIST],
30185
30199
  [RE, P.F_DIST],
30186
- [Xu, P.F_DIST_RT],
30200
+ [Ku, P.F_DIST_RT],
30187
30201
  [yE, P.F_INV],
30188
- [Ku, P.F_INV_RT],
30189
- [Zu, P.F_TEST],
30202
+ [Zu, P.F_INV_RT],
30203
+ [zu, P.F_TEST],
30190
30204
  [bE, P.FISHER],
30191
30205
  [pE, P.FISHERINV],
30192
- [io, P.FORECAST],
30193
- [io, P.FORECAST_LINEAR],
30206
+ [oo, P.FORECAST],
30207
+ [oo, P.FORECAST_LINEAR],
30194
30208
  [NE, P.FREQUENCY],
30195
30209
  [VE, P.GAMMA],
30196
- [zu, P.GAMMA_DIST],
30197
- [Ju, P.GAMMA_INV],
30198
- [oo, P.GAMMALN],
30199
- [oo, P.GAMMALN_PRECISE],
30210
+ [Ju, P.GAMMA_DIST],
30211
+ [ec, P.GAMMA_INV],
30212
+ [uo, P.GAMMALN],
30213
+ [uo, P.GAMMALN_PRECISE],
30200
30214
  [OE, P.GAUSS],
30201
30215
  [ME, P.GEOMEAN],
30202
30216
  [SE, P.GROWTH],
@@ -30208,7 +30222,7 @@ const yR = [
30208
30222
  [jE, P.LINEST],
30209
30223
  [UE, P.LOGEST],
30210
30224
  [TE, P.LOGNORM_DIST],
30211
- [ec, P.LOGNORM_INV],
30225
+ [tc, P.LOGNORM_INV],
30212
30226
  [vE, P.MARGINOFERROR],
30213
30227
  [IE, P.MAX],
30214
30228
  [FE, P.MAXA],
@@ -30218,24 +30232,24 @@ const yR = [
30218
30232
  [YE, P.MINA],
30219
30233
  [HE, P.MINIFS],
30220
30234
  [GE, P.MODE_MULT],
30221
- [tc, P.MODE_SNGL],
30235
+ [rc, P.MODE_SNGL],
30222
30236
  [WE, P.NEGBINOM_DIST],
30223
- [rc, P.NORM_DIST],
30224
- [nc, P.NORM_INV],
30237
+ [nc, P.NORM_DIST],
30238
+ [sc, P.NORM_INV],
30225
30239
  [QE, P.NORM_S_DIST],
30226
- [sc, P.NORM_S_INV],
30240
+ [ac, P.NORM_S_INV],
30227
30241
  [qE, P.PEARSON],
30228
30242
  [XE, P.PERCENTILE_EXC],
30229
- [ac, P.PERCENTILE_INC],
30243
+ [ic, P.PERCENTILE_INC],
30230
30244
  [KE, P.PERCENTRANK_EXC],
30231
- [ic, P.PERCENTRANK_INC],
30245
+ [oc, P.PERCENTRANK_INC],
30232
30246
  [ZE, P.PERMUT],
30233
30247
  [zE, P.PERMUTATIONA],
30234
30248
  [JE, P.PHI],
30235
- [oc, P.POISSON_DIST],
30249
+ [uc, P.POISSON_DIST],
30236
30250
  [eR, P.PROB],
30237
30251
  [tR, P.QUARTILE_EXC],
30238
- [uc, P.QUARTILE_INC],
30252
+ [cc, P.QUARTILE_INC],
30239
30253
  [rR, P.RANK_AVG],
30240
30254
  [nR, P.RANK_EQ],
30241
30255
  [sR, P.RSQ],
@@ -30244,8 +30258,8 @@ const yR = [
30244
30258
  [oR, P.SLOPE],
30245
30259
  [uR, P.SMALL],
30246
30260
  [cR, P.STANDARDIZE],
30247
- [cc, P.STDEV_P],
30248
- [lc, P.STDEV_S],
30261
+ [lc, P.STDEV_P],
30262
+ [fc, P.STDEV_S],
30249
30263
  [lR, P.STDEVA],
30250
30264
  [fR, P.STDEVPA],
30251
30265
  [mR, P.STEYX],
@@ -30253,16 +30267,16 @@ const yR = [
30253
30267
  [gR, P.T_DIST_2T],
30254
30268
  [dR, P.T_DIST_RT],
30255
30269
  [CR, P.T_INV],
30256
- [fc, P.T_INV_2T],
30257
- [mc, P.T_TEST],
30270
+ [mc, P.T_INV_2T],
30271
+ [hc, P.T_TEST],
30258
30272
  [_R, P.TREND],
30259
30273
  [AR, P.TRIMMEAN],
30260
- [hc, P.VAR_P],
30261
- [gc, P.VAR_S],
30274
+ [gc, P.VAR_P],
30275
+ [dc, P.VAR_S],
30262
30276
  [ER, P.VARA],
30263
30277
  [RR, P.VARPA],
30264
- [dc, P.WEIBULL_DIST],
30265
- [Cc, P.Z_TEST]
30278
+ [Cc, P.WEIBULL_DIST],
30279
+ [_c, P.Z_TEST]
30266
30280
  ];
30267
30281
  class bR extends N {
30268
30282
  constructor() {
@@ -30570,7 +30584,7 @@ class PR extends N {
30570
30584
  if (l > 127)
30571
30585
  return g.create(h.VALUE);
30572
30586
  l < 0 && (`${c}`.length < Math.abs(l) ? c = 0 : c = c < 0 ? -$t(Math.abs(c), l) : $t(c, l), l = 0);
30573
- const f = Df(this.getLocale(), c, l);
30587
+ const f = wf(this.getLocale(), c, l);
30574
30588
  return U.create(f);
30575
30589
  }
30576
30590
  }
@@ -30653,27 +30667,27 @@ function ci(i) {
30653
30667
  function un(i, a, e = "ltr") {
30654
30668
  return UR(i, a, e) > 255 ? 2 : 1;
30655
30669
  }
30656
- function uo(i) {
30670
+ function co(i) {
30657
30671
  return i >= 55296 && i <= 56319;
30658
30672
  }
30659
- function co(i) {
30673
+ function lo(i) {
30660
30674
  return i >= 56320 && i <= 57343;
30661
30675
  }
30662
- function lo(i, a) {
30676
+ function fo(i, a) {
30663
30677
  const e = (i & 1023) << 10, t = a & 1023;
30664
30678
  return e + t + 65536;
30665
30679
  }
30666
30680
  function UR(i, a, e = "ltr") {
30667
30681
  const t = i.charCodeAt(a);
30668
- if (e === "ltr" && uo(t) && a + 1 < i.length) {
30682
+ if (e === "ltr" && co(t) && a + 1 < i.length) {
30669
30683
  const r = i.charCodeAt(a + 1);
30670
- if (co(r))
30671
- return lo(t, r);
30684
+ if (lo(r))
30685
+ return fo(t, r);
30672
30686
  }
30673
- if (e === "rtl" && co(t) && a - 1 >= 0) {
30687
+ if (e === "rtl" && lo(t) && a - 1 >= 0) {
30674
30688
  const r = i.charCodeAt(a - 1);
30675
- if (uo(r))
30676
- return lo(r, t);
30689
+ if (co(r))
30690
+ return fo(r, t);
30677
30691
  }
30678
30692
  return t;
30679
30693
  }
@@ -31096,13 +31110,13 @@ class KR extends N {
31096
31110
  return U.create(r);
31097
31111
  }
31098
31112
  }
31099
- const Oc = () => [
31113
+ const Mc = () => [
31100
31114
  {
31101
31115
  type: 4,
31102
31116
  from: 48,
31103
31117
  to: 57
31104
31118
  }
31105
- ], Mc = () => [
31119
+ ], Sc = () => [
31106
31120
  {
31107
31121
  type: 7,
31108
31122
  value: 95
@@ -31122,7 +31136,7 @@ const Oc = () => [
31122
31136
  from: 48,
31123
31137
  to: 57
31124
31138
  }
31125
- ], Sc = () => [
31139
+ ], Dc = () => [
31126
31140
  {
31127
31141
  type: 7,
31128
31142
  value: 9
@@ -31184,29 +31198,29 @@ const Oc = () => [
31184
31198
  type: 7,
31185
31199
  value: 65279
31186
31200
  }
31187
- ], Dc = () => ({
31201
+ ], wc = () => ({
31188
31202
  type: 3,
31189
- set: Mc(),
31203
+ set: Sc(),
31190
31204
  not: !1
31191
- }), wc = () => ({
31205
+ }), Lc = () => ({
31192
31206
  type: 3,
31193
- set: Mc(),
31207
+ set: Sc(),
31194
31208
  not: !0
31195
- }), Lc = () => ({
31209
+ }), Pc = () => ({
31196
31210
  type: 3,
31197
- set: Oc(),
31211
+ set: Mc(),
31198
31212
  not: !1
31199
- }), Pc = () => ({
31213
+ }), xc = () => ({
31200
31214
  type: 3,
31201
- set: Oc(),
31215
+ set: Mc(),
31202
31216
  not: !0
31203
- }), xc = () => ({
31217
+ }), jc = () => ({
31204
31218
  type: 3,
31205
- set: Sc(),
31219
+ set: Dc(),
31206
31220
  not: !1
31207
- }), jc = () => ({
31221
+ }), Uc = () => ({
31208
31222
  type: 3,
31209
- set: Sc(),
31223
+ set: Dc(),
31210
31224
  not: !0
31211
31225
  }), ZR = () => ({
31212
31226
  type: 3,
@@ -31261,22 +31275,22 @@ function zR(i) {
31261
31275
  });
31262
31276
  break;
31263
31277
  case "w":
31264
- t.push(Dc());
31278
+ t.push(wc());
31265
31279
  break;
31266
31280
  case "W":
31267
- t.push(wc());
31281
+ t.push(Lc());
31268
31282
  break;
31269
31283
  case "d":
31270
- t.push(Lc());
31284
+ t.push(Pc());
31271
31285
  break;
31272
31286
  case "D":
31273
- t.push(Pc());
31287
+ t.push(xc());
31274
31288
  break;
31275
31289
  case "s":
31276
- t.push(xc());
31290
+ t.push(jc());
31277
31291
  break;
31278
31292
  case "S":
31279
- t.push(jc());
31293
+ t.push(Uc());
31280
31294
  break;
31281
31295
  default:
31282
31296
  if (/\d/.test(l)) {
@@ -31424,7 +31438,7 @@ function JR(i, a) {
31424
31438
  set: [],
31425
31439
  not: !1
31426
31440
  };
31427
- return s ? E = Dc() : o ? E = Lc() : u ? E = xc() : c ? E = wc() : l ? E = Pc() : f && (E = jc()), E;
31441
+ return s ? E = wc() : o ? E = Pc() : u ? E = jc() : c ? E = Lc() : l ? E = xc() : f && (E = Uc()), E;
31428
31442
  })() : m && C ? n = {
31429
31443
  type: 4,
31430
31444
  from: (d || _).charCodeAt(0),
@@ -32582,16 +32596,16 @@ const Sy = [
32582
32596
  [My, J.VALUETOTEXT]
32583
32597
  ], Dy = [];
32584
32598
  var wy = /* @__PURE__ */ ((i) => i)(wy || {});
32585
- function fo(i) {
32599
+ function mo(i) {
32586
32600
  return i.map((a) => a.map((e) => typeof e == "number" ? xa(e) : e));
32587
32601
  }
32588
32602
  function mb(i, a = !1) {
32589
32603
  if (i.isReferenceObject()) {
32590
32604
  const e = i.toArrayValueObject().toValue();
32591
- return a ? fo(e) : e;
32605
+ return a ? mo(e) : e;
32592
32606
  } else if (i.isArray()) {
32593
32607
  const e = i.toValue();
32594
- return a ? fo(e) : e;
32608
+ return a ? mo(e) : e;
32595
32609
  } else if (i.isNumber()) {
32596
32610
  const e = i.getValue();
32597
32611
  return a ? xa(e) : e;
@@ -32621,12 +32635,12 @@ class Ly extends N {
32621
32635
  const Py = [
32622
32636
  [Ly, oi.ENCODEURL]
32623
32637
  ];
32624
- class Uc extends Se {
32638
+ class Tc extends Se {
32625
32639
  constructor() {
32626
32640
  super(...arguments);
32627
32641
  A(this, "_allSubjects", []);
32628
32642
  A(this, "_computingStatus$", new pa(!0));
32629
- A(this, "computingStatus$", this._computingStatus$.pipe(Ro()));
32643
+ A(this, "computingStatus$", this._computingStatus$.pipe(yo()));
32630
32644
  A(this, "_computingSubscription");
32631
32645
  }
32632
32646
  get computingStatus() {
@@ -32652,18 +32666,18 @@ class Uc extends Se {
32652
32666
  this._computingStatus$.next(!0);
32653
32667
  return;
32654
32668
  }
32655
- this._computingSubscription = sl(this._allSubjects).pipe(al((t) => t.every((r) => r))).subscribe((t) => this._computingStatus$.next(t));
32669
+ this._computingSubscription = al(this._allSubjects).pipe(il((t) => t.every((r) => r))).subscribe((t) => this._computingStatus$.next(t));
32656
32670
  }
32657
32671
  }
32658
32672
  var xy = Object.getOwnPropertyDescriptor, jy = (i, a, e, t) => {
32659
32673
  for (var r = t > 1 ? void 0 : t ? xy(a, e) : a, n = i.length - 1, s; n >= 0; n--)
32660
32674
  (s = i[n]) && (r = s(r) || r);
32661
32675
  return r;
32662
- }, mo = (i, a) => (e, t) => a(e, t, i);
32676
+ }, ho = (i, a) => (e, t) => a(e, t, i);
32663
32677
  let Aa = class extends Se {
32664
32678
  constructor(a, e) {
32665
32679
  super();
32666
- A(this, "_computingCompleted$", new il((a) => {
32680
+ A(this, "_computingCompleted$", new ol((a) => {
32667
32681
  this._commandService.onCommandExecuted((e) => {
32668
32682
  if (e.id !== Ln.id) return;
32669
32683
  const t = e.params;
@@ -32673,17 +32687,17 @@ let Aa = class extends Se {
32673
32687
  );
32674
32688
  });
32675
32689
  }).pipe(
32676
- Ro(),
32677
- ol()
32690
+ yo(),
32691
+ ul()
32678
32692
  ));
32679
32693
  this._commandService = a, this._globalComputingSrv = e;
32680
- const t = new Jc(), r = new pa(!0);
32694
+ const t = new el(), r = new pa(!0);
32681
32695
  t.add(this._globalComputingSrv.pushComputingStatusSubject(r)), t.add(this._computingCompleted$.subscribe((n) => r.next(n))), t.add(() => r.complete()), this.disposeWithMe(t);
32682
32696
  }
32683
32697
  };
32684
32698
  Aa = jy([
32685
- mo(0, lr),
32686
- mo(1, Re(Uc))
32699
+ ho(0, lr),
32700
+ ho(1, Re(Tc))
32687
32701
  ], Aa);
32688
32702
  var Uy = Object.getOwnPropertyDescriptor, Ty = (i, a, e, t) => {
32689
32703
  for (var r = t > 1 ? void 0 : t ? Uy(a, e) : a, n = i.length - 1, s; n >= 0; n--)
@@ -32699,34 +32713,34 @@ let Kn = class extends Se {
32699
32713
  }
32700
32714
  _registerCommands() {
32701
32715
  [
32702
- Yo,
32703
- ks,
32704
32716
  Ho,
32705
- Po,
32706
- rf,
32717
+ ks,
32718
+ Go,
32707
32719
  xo,
32720
+ nf,
32708
32721
  jo,
32709
- Fo,
32710
- Bo,
32711
32722
  Uo,
32723
+ Bo,
32724
+ ko,
32725
+ To,
32712
32726
  Ln,
32713
32727
  Ma,
32714
- ko,
32715
32728
  $o,
32716
- To,
32717
- Ws,
32729
+ Yo,
32718
32730
  vo,
32731
+ Ws,
32719
32732
  Io,
32720
- Lo,
32721
- tf,
32733
+ Fo,
32734
+ Po,
32735
+ rf,
32722
32736
  Va,
32723
32737
  Oa,
32724
32738
  ns,
32725
32739
  ss,
32726
- sf,
32727
32740
  af,
32728
32741
  of,
32729
- kl
32742
+ uf,
32743
+ $l
32730
32744
  ].forEach((i) => {
32731
32745
  var a;
32732
32746
  this._commandService.registerCommand(i), (a = this._dataSyncPrimaryController) == null || a.registerSyncingMutations(i);
@@ -32762,7 +32776,7 @@ Kn = Ty([
32762
32776
  _n(0, lr),
32763
32777
  _n(1, Kt),
32764
32778
  _n(2, ba),
32765
- _n(3, el(cl))
32779
+ _n(3, tl(ll))
32766
32780
  ], Kn);
32767
32781
  var vy = Object.getOwnPropertyDescriptor, Iy = (i, a, e, t) => {
32768
32782
  for (var r = t > 1 ? void 0 : t ? vy(a, e) : a, n = i.length - 1, s; n >= 0; n--)
@@ -32812,7 +32826,7 @@ let Zn = class extends Se {
32812
32826
  Object.keys(e).forEach((r) => {
32813
32827
  t.push(r);
32814
32828
  }), this._dependencyManagerService.removeOtherFormulaDependency(a.unitId, a.subUnitId, t);
32815
- } else if (i.id === Yo.id) {
32829
+ } else if (i.id === Ho.id) {
32816
32830
  const a = i.params.formulaData;
32817
32831
  Object.keys(a).forEach((e) => {
32818
32832
  const t = a[e];
@@ -32833,7 +32847,7 @@ let Zn = class extends Se {
32833
32847
  });
32834
32848
  }
32835
32849
  });
32836
- } else i.id === Lo.id && this._handleSetDefinedName(i);
32850
+ } else i.id === Po.id && this._handleSetDefinedName(i);
32837
32851
  })
32838
32852
  );
32839
32853
  }
@@ -32855,7 +32869,7 @@ var Fy = Object.getOwnPropertyDescriptor, By = (i, a, e, t) => {
32855
32869
  for (var r = t > 1 ? void 0 : t ? Fy(a, e) : a, n = i.length - 1, s; n >= 0; n--)
32856
32870
  (s = i[n]) && (r = s(r) || r);
32857
32871
  return r;
32858
- }, ho = (i, a) => (e, t) => a(e, t, i);
32872
+ }, go = (i, a) => (e, t) => a(e, t, i);
32859
32873
  let zn = class extends Se {
32860
32874
  constructor(i, a) {
32861
32875
  super(), this._commandService = i, this._featureCalculationManagerService = a, this._initialize();
@@ -32884,8 +32898,8 @@ let zn = class extends Se {
32884
32898
  }
32885
32899
  };
32886
32900
  zn = By([
32887
- ho(0, lr),
32888
- ho(1, qr)
32901
+ go(0, lr),
32902
+ go(1, qr)
32889
32903
  ], zn);
32890
32904
  var ky = Object.getOwnPropertyDescriptor, $y = (i, a, e, t) => {
32891
32905
  for (var r = t > 1 ? void 0 : t ? ky(a, e) : a, n = i.length - 1, s; n >= 0; n--)
@@ -32950,7 +32964,7 @@ class Yy extends Se {
32950
32964
  return this._dirtyConversionMap;
32951
32965
  }
32952
32966
  }
32953
- const Tc = Je(
32967
+ const vc = Je(
32954
32968
  "univer.formula.active-dirty-manager.service"
32955
32969
  );
32956
32970
  var Cr = /* @__PURE__ */ ((i) => (i[i.NOT_REGISTER = 1] = "NOT_REGISTER", i[i.SUCCESS = 2] = "SUCCESS", i[i.WAIT = 3] = "WAIT", i[i.ERROR = 4] = "ERROR", i))(Cr || {}), Hy = Object.getOwnPropertyDescriptor, Gy = (i, a, e, t) => {
@@ -32980,7 +32994,7 @@ let Ea = class extends Se {
32980
32994
  return r || (r = /* @__PURE__ */ new Map(), t.set(e, r)), r;
32981
32995
  }
32982
32996
  _createFormulaId(a, e, t, r) {
32983
- return `formula.${a}_${e}_${t}_${r}_${Eo(8)}`;
32997
+ return `formula.${a}_${e}_${t}_${r}_${Ro(8)}`;
32984
32998
  }
32985
32999
  _initFormulaRegister() {
32986
33000
  this._activeDirtyManagerService.register(
@@ -33016,7 +33030,7 @@ let Ea = class extends Se {
33016
33030
  });
33017
33031
  };
33018
33032
  this.disposeWithMe(
33019
- this._formulaChangeWithRange$.pipe(ul(() => this.calculateStarted$.pipe(mi((e) => e)))).subscribe((e) => e.forEach(a))
33033
+ this._formulaChangeWithRange$.pipe(cl(() => this.calculateStarted$.pipe(mi((e) => e)))).subscribe((e) => e.forEach(a))
33020
33034
  ), this.disposeWithMe(
33021
33035
  this._formulaChangeWithRange$.pipe(mi(() => this.calculateStarted$.getValue())).subscribe(a)
33022
33036
  );
@@ -33099,20 +33113,20 @@ let Ea = class extends Se {
33099
33113
  };
33100
33114
  Ea = Gy([
33101
33115
  vs(0, lr),
33102
- vs(1, Tc),
33103
- vs(2, Re(tl))
33116
+ vs(1, vc),
33117
+ vs(2, Re(rl))
33104
33118
  ], Ea);
33105
33119
  var Qy = Object.getOwnPropertyDescriptor, qy = (i, a, e, t) => {
33106
33120
  for (var r = t > 1 ? void 0 : t ? Qy(a, e) : a, n = i.length - 1, s; n >= 0; n--)
33107
33121
  (s = i[n]) && (r = s(r) || r);
33108
33122
  return r;
33109
- }, go = (i, a) => (e, t) => a(e, t, i);
33123
+ }, Co = (i, a) => (e, t) => a(e, t, i);
33110
33124
  const Xy = "UNIVER_ENGINE_FORMULA_PLUGIN";
33111
33125
  var Is;
33112
- let Co = (Is = class extends rl {
33126
+ let _o = (Is = class extends nl {
33113
33127
  constructor(i = xi, a, e) {
33114
33128
  super(), this._config = i, this._injector = a, this._configService = e;
33115
- const { ...t } = nl(
33129
+ const { ...t } = sl(
33116
33130
  {},
33117
33131
  xi,
33118
33132
  this._config
@@ -33144,14 +33158,14 @@ let Co = (Is = class extends rl {
33144
33158
  _initialize() {
33145
33159
  const i = !this._config.notExecuteFormula, a = [
33146
33160
  // Services
33147
- [Kt, { useClass: ah }],
33161
+ [Kt, { useClass: ih }],
33148
33162
  [xr, { useClass: Gs }],
33149
- [Tc, { useClass: Yy }],
33163
+ [vc, { useClass: Yy }],
33150
33164
  [Ea],
33151
- [uu, { useClass: oa }],
33152
- [Qo, { useClass: df }],
33153
- [zr, { useClass: nf }],
33154
- [Uc],
33165
+ [cu, { useClass: oa }],
33166
+ [qo, { useClass: Cf }],
33167
+ [zr, { useClass: sf }],
33168
+ [Tc],
33155
33169
  // Models
33156
33170
  [Nr],
33157
33171
  //Controllers
@@ -33161,10 +33175,10 @@ let Co = (Is = class extends rl {
33161
33175
  ];
33162
33176
  i && a.push(
33163
33177
  // Services
33164
- [Ba, { useClass: Bh }],
33178
+ [Ba, { useClass: kh }],
33165
33179
  [Nt, { useClass: ua }],
33166
33180
  [Qt, { useClass: Ks }],
33167
- [qr, { useClass: Fh }],
33181
+ [qr, { useClass: Bh }],
33168
33182
  //Controller
33169
33183
  [Gn],
33170
33184
  [Jn],
@@ -33175,39 +33189,39 @@ let Co = (Is = class extends rl {
33175
33189
  [Qr],
33176
33190
  [Vr],
33177
33191
  // AstNode factory
33178
- [cu],
33192
+ [lu],
33179
33193
  [Fn],
33180
33194
  [Bn],
33181
- [du],
33195
+ [Cu],
33182
33196
  [kn],
33183
33197
  [In],
33184
33198
  [$n],
33185
33199
  [Yn],
33186
33200
  [Hn],
33187
- [Cu]
33201
+ [_u]
33188
33202
  ), a.forEach((e) => this._injector.add(e));
33189
33203
  }
33190
33204
  _initializeWithOverride() {
33191
33205
  var i;
33192
33206
  this._injector.add([Yr, { useClass: Yr }]), (i = this._config) != null && i.notExecuteFormula || [
33193
33207
  [ma, { useClass: ha }],
33194
- [hs, { useClass: Ih }],
33208
+ [hs, { useClass: Fh }],
33195
33209
  [la, { useClass: fa }]
33196
33210
  ].forEach((e) => this._injector.add(e));
33197
33211
  }
33198
33212
  }, A(Is, "pluginName", Xy), Is);
33199
- Co = qy([
33200
- go(1, Re(Ao)),
33201
- go(2, ba)
33202
- ], Co);
33213
+ _o = qy([
33214
+ Co(1, Re(Eo)),
33215
+ Co(2, ba)
33216
+ ], _o);
33203
33217
  export {
33204
33218
  Yy as ActiveDirtyManagerService,
33205
33219
  K as ArrayValueObject,
33206
- cu as AstRootNodeFactory,
33220
+ lu as AstRootNodeFactory,
33207
33221
  Qr as AstTreeBuilder,
33208
- Hm as AsyncArrayObject,
33222
+ Gm as AsyncArrayObject,
33209
33223
  cb as AsyncCustomFunction,
33210
- Ym as AsyncObject,
33224
+ Hm as AsyncObject,
33211
33225
  N as BaseFunction,
33212
33226
  Ur as BaseReferenceObject,
33213
33227
  qt as BaseValueObject,
@@ -33218,13 +33232,13 @@ export {
33218
33232
  Tg as CustomFunction,
33219
33233
  Wh as DEFAULT_INTERVAL_COUNT,
33220
33234
  kr as DEFAULT_TOKEN_LAMBDA_FUNCTION_NAME,
33221
- Il as DEFAULT_TOKEN_LET_FUNCTION_NAME,
33235
+ Fl as DEFAULT_TOKEN_LET_FUNCTION_NAME,
33222
33236
  br as DEFAULT_TOKEN_TYPE_LAMBDA_PARAMETER,
33223
33237
  _t as DEFAULT_TOKEN_TYPE_PARAMETER,
33224
33238
  kt as DEFAULT_TOKEN_TYPE_ROOT,
33225
33239
  Gs as DefinedNamesService,
33226
- vh as DependencyManagerBaseService,
33227
- Ih as DependencyManagerService,
33240
+ Ih as DependencyManagerBaseService,
33241
+ Fh as DependencyManagerService,
33228
33242
  ab as ENGINE_FORMULA_CYCLE_REFERENCE_COUNT,
33229
33243
  Da as ENGINE_FORMULA_PLUGIN_CONFIG_KEY,
33230
33244
  ib as ENGINE_FORMULA_RETURN_DEPENDENCY_TREE,
@@ -33246,12 +33260,12 @@ export {
33246
33260
  J as FUNCTION_NAMES_TEXT,
33247
33261
  wy as FUNCTION_NAMES_UNIVER,
33248
33262
  oi as FUNCTION_NAMES_WEB,
33249
- Fh as FeatureCalculationManagerService,
33263
+ Bh as FeatureCalculationManagerService,
33250
33264
  Ks as FormulaCurrentConfigService,
33251
33265
  Nr as FormulaDataModel,
33252
33266
  fa as FormulaDependencyGenerator,
33253
33267
  Ps as FormulaDependencyTree,
33254
- kh as FormulaDependencyTreeModel,
33268
+ Ji as FormulaDependencyTreeModel,
33255
33269
  dr as FormulaDependencyTreeType,
33256
33270
  zi as FormulaDependencyTreeVirtual,
33257
33271
  tt as FormulaExecuteStageType,
@@ -33259,11 +33273,11 @@ export {
33259
33273
  Cr as FormulaResultStatus,
33260
33274
  ua as FormulaRuntimeService,
33261
33275
  Fn as FunctionNodeFactory,
33262
- ah as FunctionService,
33263
- fl as FunctionType,
33264
- Uc as GlobalComputingStatusService,
33276
+ ih as FunctionService,
33277
+ ml as FunctionType,
33278
+ Tc as GlobalComputingStatusService,
33265
33279
  oa as HyperlinkEngineFormulaService,
33266
- Tc as IActiveDirtyManagerService,
33280
+ vc as IActiveDirtyManagerService,
33267
33281
  ma as ICalculateFormulaService,
33268
33282
  xr as IDefinedNamesService,
33269
33283
  hs as IDependencyManagerService,
@@ -33272,13 +33286,13 @@ export {
33272
33286
  la as IFormulaDependencyGenerator,
33273
33287
  Nt as IFormulaRuntimeService,
33274
33288
  Kt as IFunctionService,
33275
- uu as IHyperlinkEngineFormulaService,
33289
+ cu as IHyperlinkEngineFormulaService,
33276
33290
  Ba as IOtherFormulaManagerService,
33277
- Qo as ISheetRowFilteredService,
33291
+ qo as ISheetRowFilteredService,
33278
33292
  zr as ISuperTableService,
33279
33293
  Mr as Interpreter,
33280
33294
  Bn as LambdaNodeFactory,
33281
- du as LambdaParameterNodeFactory,
33295
+ Cu as LambdaParameterNodeFactory,
33282
33296
  Fa as LambdaValueObjectObject,
33283
33297
  Vr as Lexer,
33284
33298
  ie as LexerNode,
@@ -33289,49 +33303,49 @@ export {
33289
33303
  Dt as OPERATOR_TOKEN_SET,
33290
33304
  kn as OperatorNodeFactory,
33291
33305
  Wy as OtherFormulaBizType,
33292
- Bh as OtherFormulaManagerService,
33306
+ kh as OtherFormulaManagerService,
33293
33307
  cn as OtherFormulaMarkDirty,
33294
33308
  In as PrefixNodeFactory,
33295
33309
  Tn as RangeReferenceObject,
33296
33310
  $n as ReferenceNodeFactory,
33297
- kl as RegisterFunctionMutation,
33311
+ $l as RegisterFunctionMutation,
33298
33312
  Ea as RegisterOtherFormulaService,
33299
- tf as RemoveDefinedNameMutation,
33313
+ rf as RemoveDefinedNameMutation,
33300
33314
  Oa as RemoveFeatureCalculationMutation,
33301
33315
  ss as RemoveOtherFormulaMutation,
33302
- af as RemoveSuperTableMutation,
33316
+ of as RemoveSuperTableMutation,
33303
33317
  Ns as SUFFIX_TOKEN_SET,
33304
33318
  ks as SetArrayFormulaDataMutation,
33305
- vo as SetCellFormulaDependencyCalculationMutation,
33306
- Io as SetCellFormulaDependencyCalculationResultMutation,
33307
- Lo as SetDefinedNameMutation,
33319
+ Io as SetCellFormulaDependencyCalculationMutation,
33320
+ Fo as SetCellFormulaDependencyCalculationResultMutation,
33321
+ Po as SetDefinedNameMutation,
33308
33322
  sb as SetDefinedNameMutationFactory,
33309
33323
  Va as SetFeatureCalculationMutation,
33310
33324
  Ln as SetFormulaCalculationNotificationMutation,
33311
33325
  Ma as SetFormulaCalculationResultMutation,
33312
- Po as SetFormulaCalculationStartMutation,
33313
- Uo as SetFormulaCalculationStopMutation,
33314
- Yo as SetFormulaDataMutation,
33315
- To as SetFormulaDependencyCalculationMutation,
33326
+ xo as SetFormulaCalculationStartMutation,
33327
+ To as SetFormulaCalculationStopMutation,
33328
+ Ho as SetFormulaDataMutation,
33329
+ vo as SetFormulaDependencyCalculationMutation,
33316
33330
  Ws as SetFormulaDependencyCalculationResultMutation,
33317
- xo as SetFormulaStringBatchCalculationMutation,
33318
- jo as SetFormulaStringBatchCalculationResultMutation,
33319
- Ho as SetImageFormulaDataMutation,
33331
+ jo as SetFormulaStringBatchCalculationMutation,
33332
+ Uo as SetFormulaStringBatchCalculationResultMutation,
33333
+ Go as SetImageFormulaDataMutation,
33320
33334
  ns as SetOtherFormulaMutation,
33321
- ko as SetQueryFormulaDependencyAllMutation,
33322
- $o as SetQueryFormulaDependencyAllResultMutation,
33323
- Fo as SetQueryFormulaDependencyMutation,
33324
- Bo as SetQueryFormulaDependencyResultMutation,
33325
- sf as SetSuperTableMutation,
33326
- of as SetSuperTableOptionMutation,
33327
- rf as SetTriggerFormulaCalculationStartMutation,
33328
- df as SheetRowFilteredService,
33335
+ $o as SetQueryFormulaDependencyAllMutation,
33336
+ Yo as SetQueryFormulaDependencyAllResultMutation,
33337
+ Bo as SetQueryFormulaDependencyMutation,
33338
+ ko as SetQueryFormulaDependencyResultMutation,
33339
+ af as SetSuperTableMutation,
33340
+ uf as SetSuperTableOptionMutation,
33341
+ nf as SetTriggerFormulaCalculationStartMutation,
33342
+ Cf as SheetRowFilteredService,
33329
33343
  U as StringValueObject,
33330
33344
  Yn as SuffixNodeFactory,
33331
- nf as SuperTableService,
33345
+ sf as SuperTableService,
33332
33346
  Hn as UnionNodeFactory,
33333
- Co as UniverFormulaEnginePlugin,
33334
- Cu as ValueNodeFactory,
33347
+ _o as UniverFormulaEnginePlugin,
33348
+ _u as ValueNodeFactory,
33335
33349
  jt as ValueObjectFactory,
33336
33350
  Y as compareToken,
33337
33351
  Mi as convertUnitDataToRuntime,
@@ -33365,13 +33379,13 @@ export {
33365
33379
  nb as getRangeWithRefsString,
33366
33380
  ub as handleNumfmtInCell,
33367
33381
  Na as handleRefStringInfo,
33368
- gl as includeFormulaLexerToken,
33382
+ dl as includeFormulaLexerToken,
33369
33383
  Pi as initSheetFormulaData,
33370
33384
  Rn as isFormulaLexerToken,
33371
- ll as isInDirtyRange,
33372
- Mo as isReferenceString,
33385
+ fl as isInDirtyRange,
33386
+ So as isReferenceString,
33373
33387
  bn as isReferenceStringWithEffectiveColumn,
33374
- Ql as isReferenceStrings,
33388
+ ql as isReferenceStrings,
33375
33389
  tb as matchRefDrawToken,
33376
33390
  X as matchToken,
33377
33391
  Ys as needsQuoting,
@@ -33382,10 +33396,10 @@ export {
33382
33396
  He as sequenceNodeType,
33383
33397
  Ht as serializeRange,
33384
33398
  $s as serializeRangeToRefString,
33385
- Hl as serializeRangeWithSheet,
33386
- Gl as serializeRangeWithSpreadsheet,
33399
+ Gl as serializeRangeWithSheet,
33400
+ Wl as serializeRangeWithSpreadsheet,
33387
33401
  Vs as singleReferenceToGrid,
33388
- Zl as splitTableStructuredRef,
33402
+ zl as splitTableStructuredRef,
33389
33403
  $i as strip,
33390
33404
  xa as stripErrorMargin,
33391
33405
  Di as unquoteSheetName