@univerjs/engine-formula 0.14.0-insiders.20251222-4efcfbb → 0.14.0

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