@univerjs/engine-formula 0.1.14 → 0.1.16
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/cjs/index.js +1 -1
- package/lib/es/index.js +157 -288
- package/lib/types/models/formula-data.model.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -10
package/lib/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _a = Object.defineProperty;
|
|
2
2
|
var Ea = (r, s, e) => s in r ? _a(r, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[s] = e;
|
|
3
|
-
var d = (r, s, e) =>
|
|
3
|
+
var d = (r, s, e) => Ea(r, typeof s != "symbol" ? s + "" : s, e);
|
|
4
4
|
import { ObjectMatrix as ie, CommandType as Se, LRUMap as ya, hashAlgorithm as Ca, Tools as je, AbsoluteRefType as Re, RANGE_TYPE as Ze, Disposable as le, moveRangeByOffset as Ss, isValidRange as Da, isRealNum as Ls, DEFAULT_EMPTY_DOCUMENT_VALUE as ba, isNullCell as ur, CellValueType as qe, BooleanNumber as Sa, isFormulaString as Ct, isFormulaId as wt, UniverInstanceType as Yt, IUniverInstanceService as cn, toDisposable as La, sortRules as Pa, OnLifecycle as Ye, LifecycleStages as Ie, requestImmediateMacroTask as Aa, IConfigService as xa, ICommandService as ct, Plugin as wa, Rectangle as Wn } from "@univerjs/core";
|
|
5
5
|
import { Inject as he, createIdentifier as tt, Injector as Kt, Optional as Va } from "@wendellhu/redi";
|
|
6
6
|
import { Subject as At } from "rxjs";
|
|
@@ -639,8 +639,7 @@ class _n extends le {
|
|
|
639
639
|
C += P, g += P, f = this._replacePrefixString(f);
|
|
640
640
|
}
|
|
641
641
|
this._processPushSequenceNode(t, we.REFERENCE, f, g, _, C);
|
|
642
|
-
} else
|
|
643
|
-
je.isStringNumber(b) ? this._processPushSequenceNode(t, we.NUMBER, f, g, _, C) : b.length > 0 && this._processPushSequenceNode(t, we.FUNCTION, f, g, _, C);
|
|
642
|
+
} else je.isStringNumber(b) ? this._processPushSequenceNode(t, we.NUMBER, f, g, _, C) : b.length > 0 && this._processPushSequenceNode(t, we.FUNCTION, f, g, _, C);
|
|
644
643
|
(a !== i - 1 || !this._isLastMergeString(l)) && t.push(l);
|
|
645
644
|
}
|
|
646
645
|
return this._mergeSequenceNodeReference(t);
|
|
@@ -1007,8 +1006,7 @@ class _n extends le {
|
|
|
1007
1006
|
return h.VALUE;
|
|
1008
1007
|
this._addSequenceArray(t, c, u, a), u++, this._addSequenceArray(t, l, u, a), u++, this._closeBracket();
|
|
1009
1008
|
continue;
|
|
1010
|
-
} else
|
|
1011
|
-
l && this._newAndPushCurrentLexerNode(Ge, u);
|
|
1009
|
+
} else l && this._newAndPushCurrentLexerNode(Ge, u);
|
|
1012
1010
|
} else
|
|
1013
1011
|
this._pushNodeToChildren(c), this._openBracket(
|
|
1014
1012
|
0
|
|
@@ -1095,8 +1093,7 @@ class _n extends le {
|
|
|
1095
1093
|
ge && (_ = ge);
|
|
1096
1094
|
} else
|
|
1097
1095
|
_ = L;
|
|
1098
|
-
else
|
|
1099
|
-
b && (_ = b, b.addChildren(l), l.setParent(b));
|
|
1096
|
+
else b && (_ = b, b.addChildren(l), l.setParent(b));
|
|
1100
1097
|
const se = new K();
|
|
1101
1098
|
se.setToken(this._segment), se.setParent(f), f.getChildren().push(se), this._resetSegment();
|
|
1102
1099
|
} else {
|
|
@@ -1121,8 +1118,7 @@ class _n extends le {
|
|
|
1121
1118
|
} else if (this._segment.length > 0 && this._isScientificNotation(i, u, c)) {
|
|
1122
1119
|
this._pushSegment(c), this._addSequenceArray(t, c, u, a), u++;
|
|
1123
1120
|
continue;
|
|
1124
|
-
} else
|
|
1125
|
-
this._segment.length > 0 && l === "" ? l = this._segment : (this._pushNodeToChildren(this._segment), l = "");
|
|
1121
|
+
} else this._segment.length > 0 && l === "" ? l = this._segment : (this._pushNodeToChildren(this._segment), l = "");
|
|
1126
1122
|
if (c === oe.LESS_THAN || c === oe.GREATER_THAN) {
|
|
1127
1123
|
const f = i[u + 1];
|
|
1128
1124
|
f && gt.has(c + f) ? (this._pushNodeToChildren(l + c + f), u++) : this._pushNodeToChildren(l + c);
|
|
@@ -1711,8 +1707,7 @@ var Is = { exports: {} };
|
|
|
1711
1707
|
})(typeof self < "u" ? self : mi, function() {
|
|
1712
1708
|
return function() {
|
|
1713
1709
|
var e = { d: function(R, p) {
|
|
1714
|
-
for (var E in p)
|
|
1715
|
-
e.o(p, E) && !e.o(R, E) && Object.defineProperty(R, E, { enumerable: !0, get: p[E] });
|
|
1710
|
+
for (var E in p) e.o(p, E) && !e.o(R, E) && Object.defineProperty(R, E, { enumerable: !0, get: p[E] });
|
|
1716
1711
|
}, o: function(R, p) {
|
|
1717
1712
|
return Object.prototype.hasOwnProperty.call(R, p);
|
|
1718
1713
|
} }, t = {};
|
|
@@ -1723,13 +1718,11 @@ var Is = { exports: {} };
|
|
|
1723
1718
|
const a = /^([a-z\d]+)(?:[_-]([a-z\d]+))?(?:\.([a-z\d]+))?(?:@([a-z\d]+))?$/i, i = {}, o = { group: " ", decimal: ".", positive: "+", negative: "-", percent: "%", exponent: "E", nan: "NaN", infinity: "∞", ampm: ["AM", "PM"], mmmm6: ["Muharram", "Safar", "Rabiʻ I", "Rabiʻ II", "Jumada I", "Jumada II", "Rajab", "Shaʻban", "Ramadan", "Shawwal", "Dhuʻl-Qiʻdah", "Dhuʻl-Hijjah"], mmm6: ["Muh.", "Saf.", "Rab. I", "Rab. II", "Jum. I", "Jum. II", "Raj.", "Sha.", "Ram.", "Shaw.", "Dhuʻl-Q.", "Dhuʻl-H."], mmmm: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], mmm: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], dddd: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], ddd: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] };
|
|
1724
1719
|
function u(R) {
|
|
1725
1720
|
const p = a.exec(R);
|
|
1726
|
-
if (!p)
|
|
1727
|
-
throw new SyntaxError("Malformed locale: ".concat(R));
|
|
1721
|
+
if (!p) throw new SyntaxError("Malformed locale: ".concat(R));
|
|
1728
1722
|
return { lang: p[1] + (p[2] ? "_" + p[2] : ""), language: p[1], territory: p[2] || "", codeset: p[3] || "", modifier: p[4] || "" };
|
|
1729
1723
|
}
|
|
1730
1724
|
function c(R) {
|
|
1731
|
-
if (typeof R == "number")
|
|
1732
|
-
return n[65535 & R] || null;
|
|
1725
|
+
if (typeof R == "number") return n[65535 & R] || null;
|
|
1733
1726
|
const p = parseInt(R, 16);
|
|
1734
1727
|
return isFinite(p) && n[65535 & p] ? n[65535 & p] || null : a.test(R) ? R : null;
|
|
1735
1728
|
}
|
|
@@ -1751,10 +1744,8 @@ var Is = { exports: {} };
|
|
|
1751
1744
|
}
|
|
1752
1745
|
const _ = f({ group: "," });
|
|
1753
1746
|
function C(R, p) {
|
|
1754
|
-
if (typeof R != "number")
|
|
1755
|
-
|
|
1756
|
-
if (R < 0)
|
|
1757
|
-
return -C(-R, p);
|
|
1747
|
+
if (typeof R != "number") return R;
|
|
1748
|
+
if (R < 0) return -C(-R, p);
|
|
1758
1749
|
if (p) {
|
|
1759
1750
|
const E = 10 ** (p || 0) || 1;
|
|
1760
1751
|
return C(R * E, 0) / E;
|
|
@@ -1765,16 +1756,12 @@ var Is = { exports: {} };
|
|
|
1765
1756
|
function b(R, p, E) {
|
|
1766
1757
|
const S = R < 0 ? -1 : 1, w = 10 ** (p || 2), O = 10 ** (E || 2);
|
|
1767
1758
|
let V, A, y = Math.abs(R), $ = 0, I = 0, v = 0, Q = 1;
|
|
1768
|
-
if ((R = y) % 1 == 0)
|
|
1769
|
-
|
|
1770
|
-
else if (R
|
|
1771
|
-
A = [S, 1e19];
|
|
1772
|
-
else if (R > 1e19)
|
|
1773
|
-
A = [1e19 * S, 1];
|
|
1759
|
+
if ((R = y) % 1 == 0) A = [R * S, 1];
|
|
1760
|
+
else if (R < 1e-19) A = [S, 1e19];
|
|
1761
|
+
else if (R > 1e19) A = [1e19 * S, 1];
|
|
1774
1762
|
else {
|
|
1775
1763
|
do
|
|
1776
|
-
if (y = 1 / (y - Math.floor(y)), V = Q, Q = Q * Math.floor(y) + $, $ = V, I = v, v = Math.floor(R * Q + 0.5), v >= w || Q >= O)
|
|
1777
|
-
return [S * I, $];
|
|
1764
|
+
if (y = 1 / (y - Math.floor(y)), V = Q, Q = Q * Math.floor(y) + $, $ = V, I = v, v = Math.floor(R * Q + 0.5), v >= w || Q >= O) return [S * I, $];
|
|
1778
1765
|
while (Math.abs(R - v / Q) >= 1e-10 && y !== Math.floor(y));
|
|
1779
1766
|
A = [S * v, Q];
|
|
1780
1767
|
}
|
|
@@ -1783,11 +1770,10 @@ var Is = { exports: {} };
|
|
|
1783
1770
|
const L = { overflow: "######", dateErrorThrows: !1, dateErrorNumber: !0, dateSpanLarge: !0, leap1900: !0, nbsp: !0, throws: !0, invalid: "######", locale: "", ignoreTimezone: !1 }, P = Object.assign({}, L);
|
|
1784
1771
|
function x(R) {
|
|
1785
1772
|
if (R === null && (R = L), R) {
|
|
1786
|
-
for (const p in R)
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
}
|
|
1773
|
+
for (const p in R) if (p in L) {
|
|
1774
|
+
const E = R[p];
|
|
1775
|
+
P[p] = E == null ? L[p] : E;
|
|
1776
|
+
}
|
|
1791
1777
|
}
|
|
1792
1778
|
return { ...P };
|
|
1793
1779
|
}
|
|
@@ -1816,13 +1802,10 @@ var Is = { exports: {} };
|
|
|
1816
1802
|
const A = [];
|
|
1817
1803
|
let y, $, I = !1;
|
|
1818
1804
|
for (; S && !O; ) {
|
|
1819
|
-
if (y = /^General/i.exec(S))
|
|
1820
|
-
|
|
1821
|
-
else if (w === "int" && (y = /^[#?0]+(?:,[#?0]+)*/.exec(S)) || w === "den" && (y = /^[#?\d]+/.exec(S)) || (y = /^[#?0]+/.exec(S)))
|
|
1822
|
-
E[w + "_pattern"].push(y[0]), V = { type: w, num: y[0] }, G(V, p);
|
|
1805
|
+
if (y = /^General/i.exec(S)) E.general = !0, G({ type: "general" }, p);
|
|
1806
|
+
else if (w === "int" && (y = /^[#?0]+(?:,[#?0]+)*/.exec(S)) || w === "den" && (y = /^[#?\d]+/.exec(S)) || (y = /^[#?0]+/.exec(S))) E[w + "_pattern"].push(y[0]), V = { type: w, num: y[0] }, G(V, p);
|
|
1823
1807
|
else if ((y = /^\//.exec(S)) && E[w + "_pattern"].length) {
|
|
1824
|
-
if (!V)
|
|
1825
|
-
throw new SyntaxError("Missing a numerator in pattern ".concat(R));
|
|
1808
|
+
if (!V) throw new SyntaxError("Missing a numerator in pattern ".concat(R));
|
|
1826
1809
|
E.fractions = !0, E.num_pattern.push(E[w + "_pattern"].pop()), V.type = "num", w = "den", G({ type: "div" }, p);
|
|
1827
1810
|
} else if (y = /^,+/.exec(S)) {
|
|
1828
1811
|
const U = S.charAt(1) in F;
|
|
@@ -1832,33 +1815,22 @@ var Is = { exports: {} };
|
|
|
1832
1815
|
O = !0;
|
|
1833
1816
|
break;
|
|
1834
1817
|
}
|
|
1835
|
-
if (y = /^[@+-]/.exec(S))
|
|
1836
|
-
y[0] === "@" && (E.text = !0), G({ type: z[y[0]] }, p);
|
|
1818
|
+
if (y = /^[@+-]/.exec(S)) y[0] === "@" && (E.text = !0), G({ type: z[y[0]] }, p);
|
|
1837
1819
|
else if (y = /^(?:\[(h+|m+|s+)\])/i.exec(S)) {
|
|
1838
1820
|
const U = y[1].toLowerCase(), j = U[0], X = { type: "", size: 0, date: 1, raw: y[0], pad: U.length };
|
|
1839
1821
|
j === "h" ? (X.size = 16, X.type = "hour-elap") : j === "m" ? (X.size = 32, X.type = "min-elap") : (X.size = 64, X.type = "sec-elap"), E.date = E.date | X.size, A.push(X), G(X, p);
|
|
1840
|
-
} else if (y = /^(?:B2)/i.exec(S))
|
|
1841
|
-
|
|
1842
|
-
else if (y = /^(?:B1)/i.exec(S))
|
|
1843
|
-
I || (E.date_system = 1);
|
|
1822
|
+
} else if (y = /^(?:B2)/i.exec(S)) I || (E.date_system = 6);
|
|
1823
|
+
else if (y = /^(?:B1)/i.exec(S)) I || (E.date_system = 1);
|
|
1844
1824
|
else if (y = /^(?:([hHmMsSyYbBdDegG])\1*)/.exec(S)) {
|
|
1845
1825
|
const U = { type: "", size: 0, date: 1, raw: y[0] }, j = y[0].toLowerCase(), X = j[0];
|
|
1846
|
-
if (j === "y" || j === "yy")
|
|
1847
|
-
|
|
1848
|
-
else if (
|
|
1849
|
-
|
|
1850
|
-
else if (j === "
|
|
1851
|
-
|
|
1852
|
-
else if (X === "
|
|
1853
|
-
|
|
1854
|
-
else if (j === "d" || j === "dd")
|
|
1855
|
-
U.size = 8, U.type = "day", U.pad = /dd/.test(j);
|
|
1856
|
-
else if (j === "ddd")
|
|
1857
|
-
U.size = 8, U.type = "weekday-short";
|
|
1858
|
-
else if (X === "d")
|
|
1859
|
-
U.size = 8, U.type = "weekday";
|
|
1860
|
-
else if (X === "h")
|
|
1861
|
-
U.size = 16, U.type = "hour", U.pad = /hh/i.test(j);
|
|
1826
|
+
if (j === "y" || j === "yy") U.size = 2, U.type = "year-short";
|
|
1827
|
+
else if (X === "y" || X === "e") U.size = 2, U.type = "year";
|
|
1828
|
+
else if (j === "b" || j === "bb") U.size = 2, U.type = "b-year-short";
|
|
1829
|
+
else if (X === "b") U.size = 2, U.type = "b-year";
|
|
1830
|
+
else if (j === "d" || j === "dd") U.size = 8, U.type = "day", U.pad = /dd/.test(j);
|
|
1831
|
+
else if (j === "ddd") U.size = 8, U.type = "weekday-short";
|
|
1832
|
+
else if (X === "d") U.size = 8, U.type = "weekday";
|
|
1833
|
+
else if (X === "h") U.size = 16, U.type = "hour", U.pad = /hh/i.test(j);
|
|
1862
1834
|
else if (X === "m") {
|
|
1863
1835
|
j.length === 3 ? (U.size = 4, U.type = "monthname-short") : j.length === 5 ? (U.size = 4, U.type = "monthname-single") : j.length >= 4 && (U.size = 4, U.type = "monthname");
|
|
1864
1836
|
const J = A[A.length - 1];
|
|
@@ -1869,15 +1841,12 @@ var Is = { exports: {} };
|
|
|
1869
1841
|
J && 32 & J.size ? U.used = !0 : J && J.indeterminate && (delete J.indeterminate, J.size = 32, J.type = "min", U.used = !0);
|
|
1870
1842
|
}
|
|
1871
1843
|
E.date = E.date | U.size, E.date_eval = !0, A.push(U), G(U, p);
|
|
1872
|
-
} else if (y = /^(?:AM\/PM|am\/pm|A\/P)/.exec(S))
|
|
1873
|
-
E.clock = 12, E.date = 16 | E.date, E.date_eval = !0, G({ type: "am", short: y[0] === "A/P" }, p);
|
|
1844
|
+
} else if (y = /^(?:AM\/PM|am\/pm|A\/P)/.exec(S)) E.clock = 12, E.date = 16 | E.date, E.date_eval = !0, G({ type: "am", short: y[0] === "A/P" }, p);
|
|
1874
1845
|
else if (E.date && (y = /^\.0{1,3}/i.exec(S))) {
|
|
1875
1846
|
const U = y[0].length - 1, j = [64, 128, 256, 512][U];
|
|
1876
1847
|
E.date = E.date | j, E.date_eval = !0, E.sec_decimals = Math.max(E.sec_decimals, U), G({ type: "subsec", size: j, decimals: U, date: 1, raw: y[0] }, p);
|
|
1877
|
-
} else if ((y = /^\\(.)/.exec(S)) || (y = /^"([^"]*?)"/.exec(S)))
|
|
1878
|
-
|
|
1879
|
-
else if (y = /^\[(<[=>]?|>=?|=)\s*(-?[.\d]+)\]/.exec(S))
|
|
1880
|
-
E.condition = [y[1], parseFloat(y[2], 10)];
|
|
1848
|
+
} else if ((y = /^\\(.)/.exec(S)) || (y = /^"([^"]*?)"/.exec(S))) G(y[1], p);
|
|
1849
|
+
else if (y = /^\[(<[=>]?|>=?|=)\s*(-?[.\d]+)\]/.exec(S)) E.condition = [y[1], parseFloat(y[2], 10)];
|
|
1881
1850
|
else if (y = /^\[\$([^\]]+)\]/.exec(S)) {
|
|
1882
1851
|
const U = y[1].split("-"), j = U.length < 2 ? "" : U[U.length - 1], X = U[0];
|
|
1883
1852
|
X && G(X, p);
|
|
@@ -1885,34 +1854,26 @@ var Is = { exports: {} };
|
|
|
1885
1854
|
J && (E.locale = J);
|
|
1886
1855
|
const ne = parseInt(j, 16);
|
|
1887
1856
|
isFinite(ne) && 16711680 & ne && (ne >> 16 & 255) === 6 && (E.date_system = 6), I = !0;
|
|
1888
|
-
} else if (y = /^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*(\d+))\]/i.exec(S))
|
|
1889
|
-
E.color = y[2] ? se[parseInt(y[2], 10)] || "#000" : y[1].toLowerCase();
|
|
1857
|
+
} else if (y = /^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*(\d+))\]/i.exec(S)) E.color = y[2] ? se[parseInt(y[2], 10)] || "#000" : y[1].toLowerCase();
|
|
1890
1858
|
else if (!(y = /^\[(DBNum1|ENG|HIJ|JPN|TWN)\]/i.exec(S))) {
|
|
1891
|
-
if (y = /^%/.exec(S))
|
|
1892
|
-
|
|
1893
|
-
else if (y =
|
|
1894
|
-
|
|
1895
|
-
else if (y = /^\./.exec(S))
|
|
1896
|
-
G({ type: "point", value: y[0] }, p), E.dec_fractions = !0, w = "frac";
|
|
1897
|
-
else if (y = /^[Ee]([+-]?|(?=[0#?]))/.exec(S))
|
|
1898
|
-
E.exponential = !0, E.exp_plus = y[1] === "+", w = "man", G({ type: "exp", plus: y[1] === "+" }, p);
|
|
1859
|
+
if (y = /^%/.exec(S)) E.scale = 100, E.percent = !0, G("%", p);
|
|
1860
|
+
else if (y = /^_(\\.|.)/.exec(S)) G(" ", p);
|
|
1861
|
+
else if (y = /^\./.exec(S)) G({ type: "point", value: y[0] }, p), E.dec_fractions = !0, w = "frac";
|
|
1862
|
+
else if (y = /^[Ee]([+-]?|(?=[0#?]))/.exec(S)) E.exponential = !0, E.exp_plus = y[1] === "+", w = "man", G({ type: "exp", plus: y[1] === "+" }, p);
|
|
1899
1863
|
else if (!(y = /^\*(\\.|.)/.exec(S))) {
|
|
1900
|
-
if (y = /^[BENn[]/.exec(S))
|
|
1901
|
-
throw new SyntaxError("Unexpected char ".concat(S.charAt(0), " in pattern ").concat(R));
|
|
1864
|
+
if (y = /^[BENn[]/.exec(S)) throw new SyntaxError("Unexpected char ".concat(S.charAt(0), " in pattern ").concat(R));
|
|
1902
1865
|
S[0] === "(" && (E.parens = !0), y = [S[0]], G(y[0], p);
|
|
1903
1866
|
}
|
|
1904
1867
|
}
|
|
1905
1868
|
}
|
|
1906
1869
|
$ = y[0], S = S.slice(y ? y[0].length : 1);
|
|
1907
1870
|
}
|
|
1908
|
-
if (E.pattern = R.slice(0, R.length - S.length), /^((?:\[[^\]]+\])+)(;|$)/.test(E.pattern) && !/^\[(?:h+|m+|s+)\]/.test(E.pattern) && G({ type: "text" }, p), E.fractions && E.dec_fractions || E.fractions && E.exponential)
|
|
1909
|
-
throw new SyntaxError("Invalid pattern: ".concat(E.pattern));
|
|
1871
|
+
if (E.pattern = R.slice(0, R.length - S.length), /^((?:\[[^\]]+\])+)(;|$)/.test(E.pattern) && !/^\[(?:h+|m+|s+)\]/.test(E.pattern) && G({ type: "text" }, p), E.fractions && E.dec_fractions || E.fractions && E.exponential) throw new SyntaxError("Invalid pattern: ".concat(E.pattern));
|
|
1910
1872
|
const v = E.int_pattern.join("");
|
|
1911
1873
|
if (E.grouping = v.indexOf(",") >= 0, E.grouping) {
|
|
1912
1874
|
const U = v.split(","), j = U.length;
|
|
1913
1875
|
j === 2 ? (E.group_pri = U[1].length, E.group_sec = E.group_pri) : j > 2 && (E.group_pri = U[j - 1].length, E.group_sec = U[j - 2].length);
|
|
1914
|
-
} else
|
|
1915
|
-
E.group_pri = 0, E.group_sec = 0;
|
|
1876
|
+
} else E.group_pri = 0, E.group_sec = 0;
|
|
1916
1877
|
de(v.replace(/[,]/g, ""), E, "int"), de(E.frac_pattern.join(""), E, "frac"), de(E.man_pattern.join(""), E, "man");
|
|
1917
1878
|
let Q = E.num_pattern.join(""), q = E.den_pattern.join("");
|
|
1918
1879
|
const W = /\?/.test(q) || /\?/.test(Q);
|
|
@@ -1929,38 +1890,29 @@ var Is = { exports: {} };
|
|
|
1929
1890
|
const p = [];
|
|
1930
1891
|
let E, S = !1, w = null, O = R, V = 0, A = !1, y = 0, $ = 0;
|
|
1931
1892
|
do {
|
|
1932
|
-
if (A = ue(O), (A.date || A.general) && (A.int_pattern.length || A.frac_pattern.length || A.scale !== 1 || A.text))
|
|
1933
|
-
throw new Error("Illegal format");
|
|
1893
|
+
if (A = ue(O), (A.date || A.general) && (A.int_pattern.length || A.frac_pattern.length || A.scale !== 1 || A.text)) throw new Error("Illegal format");
|
|
1934
1894
|
if (A.condition && ($++, S = !0), A.text) {
|
|
1935
|
-
if (w)
|
|
1936
|
-
throw new Error("Unexpected partition");
|
|
1895
|
+
if (w) throw new Error("Unexpected partition");
|
|
1937
1896
|
w = A;
|
|
1938
1897
|
}
|
|
1939
1898
|
A.locale && (E = c(A.locale)), p.push(A), V = O.charAt(A.pattern.length) === ";" ? 1 : 0, O = O.slice(A.pattern.length + V), y++;
|
|
1940
1899
|
} while (V && y < 4 && $ < 3);
|
|
1941
|
-
if (V)
|
|
1942
|
-
|
|
1943
|
-
if ($ > 2)
|
|
1944
|
-
throw new Error("Unexpected condition");
|
|
1900
|
+
if (V) throw new Error("Unexpected partition");
|
|
1901
|
+
if ($ > 2) throw new Error("Unexpected condition");
|
|
1945
1902
|
const I = p[3];
|
|
1946
|
-
if (I && (I.int_pattern.length || I.frac_pattern.length || I.date))
|
|
1947
|
-
throw new Error("Unexpected partition");
|
|
1903
|
+
if (I && (I.int_pattern.length || I.frac_pattern.length || I.date)) throw new Error("Unexpected partition");
|
|
1948
1904
|
if (S) {
|
|
1949
1905
|
const v = p.length;
|
|
1950
1906
|
if (v === 1 && (p[1] = ue("General"), p[1].generated = !0), v < 3) {
|
|
1951
1907
|
const Q = p[0], q = p[1];
|
|
1952
|
-
if ($r(Q), q.condition)
|
|
1953
|
-
$r(q);
|
|
1908
|
+
if ($r(Q), q.condition) $r(q);
|
|
1954
1909
|
else {
|
|
1955
1910
|
const W = Q.condition;
|
|
1956
1911
|
(W[0] === "=" || W[1] >= 0 && (W[0] === ">" || W[0] === ">=")) && q.tokens.unshift({ type: "minus", volatile: !0 });
|
|
1957
1912
|
}
|
|
1958
|
-
} else
|
|
1959
|
-
p.forEach($r);
|
|
1913
|
+
} else p.forEach($r);
|
|
1960
1914
|
} else {
|
|
1961
|
-
if (p.length < 4 && w)
|
|
1962
|
-
for (let v = 0, Q = p.length; v < Q; v++)
|
|
1963
|
-
p[v] === w && p.splice(v, 1);
|
|
1915
|
+
if (p.length < 4 && w) for (let v = 0, Q = p.length; v < Q; v++) p[v] === w && p.splice(v, 1);
|
|
1964
1916
|
if (p.length < 1 && w && (p[0] = ue("General"), p[0].generated = !0), p.length < 2) {
|
|
1965
1917
|
const v = ue(p[0].pattern);
|
|
1966
1918
|
v.tokens.unshift({ type: "minus", volatile: !0 }), v.generated = !0, p.push(v);
|
|
@@ -1969,13 +1921,11 @@ var Is = { exports: {} };
|
|
|
1969
1921
|
const v = ue(p[0].pattern);
|
|
1970
1922
|
v.generated = !0, p.push(v);
|
|
1971
1923
|
}
|
|
1972
|
-
if (p.length < 4)
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
v.generated = !0, p.push(v);
|
|
1978
|
-
}
|
|
1924
|
+
if (p.length < 4) if (w) p.push(w);
|
|
1925
|
+
else {
|
|
1926
|
+
const v = ue("@");
|
|
1927
|
+
v.generated = !0, p.push(v);
|
|
1928
|
+
}
|
|
1979
1929
|
p[0].condition = [">", 0], p[1].condition = ["<", 0], p[2].condition = null;
|
|
1980
1930
|
}
|
|
1981
1931
|
return { pattern: R, partitions: p, locale: E };
|
|
@@ -1983,12 +1933,9 @@ var Is = { exports: {} };
|
|
|
1983
1933
|
const Ve = Math.floor;
|
|
1984
1934
|
function Bn(R) {
|
|
1985
1935
|
if ((!(arguments.length > 1 && arguments[1] !== void 0) || arguments[1]) && R >= 0) {
|
|
1986
|
-
if (R === 0)
|
|
1987
|
-
|
|
1988
|
-
if (R
|
|
1989
|
-
return [1900, 2, 29];
|
|
1990
|
-
if (R < 60)
|
|
1991
|
-
return [1900, R < 32 ? 1 : 2, (R - 1) % 31 + 1];
|
|
1936
|
+
if (R === 0) return [1900, 1, 0];
|
|
1937
|
+
if (R === 60) return [1900, 2, 29];
|
|
1938
|
+
if (R < 60) return [1900, R < 32 ? 1 : 2, (R - 1) % 31 + 1];
|
|
1992
1939
|
}
|
|
1993
1940
|
let E = R + 68569 + 2415019;
|
|
1994
1941
|
const S = Ve(4 * E / 146097);
|
|
@@ -2004,12 +1951,9 @@ var Is = { exports: {} };
|
|
|
2004
1951
|
return Bn(R + 1462);
|
|
2005
1952
|
}
|
|
2006
1953
|
function aa(R) {
|
|
2007
|
-
if (R === 60)
|
|
2008
|
-
|
|
2009
|
-
if (R
|
|
2010
|
-
return [1317, 8, 29];
|
|
2011
|
-
if (R < 60)
|
|
2012
|
-
return [1317, R < 32 ? 9 : 10, 1 + (R - 2) % 30];
|
|
1954
|
+
if (R === 60) throw new Error("#VALUE!");
|
|
1955
|
+
if (R <= 1) return [1317, 8, 29];
|
|
1956
|
+
if (R < 60) return [1317, R < 32 ? 9 : 10, 1 + (R - 2) % 30];
|
|
2013
1957
|
const p = 10631 / 30, E = 0.1335;
|
|
2014
1958
|
let S = R + 466935;
|
|
2015
1959
|
const w = Ve(S / 10631);
|
|
@@ -2065,10 +2009,8 @@ var Is = { exports: {} };
|
|
|
2065
2009
|
const ca = { text: 15, datetime: 10.8, date: 10.8, time: 10.8, percent: 10.6, currency: 10.4, grouped: 10.2, scientific: 6, number: 4, fraction: 2, general: 0, error: 0 }, la = [["DMY", 1], ["DM", 2], ["MY", 3], ["MDY", 4], ["MD", 5], ["hmsa", 6], ["hma", 7], ["hms", 8], ["hm", 9]], fa = { total: 1, sign: 0, period: 0, int: 1, frac: 0 }, Ft = (R, p) => R.replace(/\./, p.decimal);
|
|
2066
2010
|
function Mn(R, p, E, S) {
|
|
2067
2011
|
const w = 0 | E;
|
|
2068
|
-
if (typeof E == "string")
|
|
2069
|
-
|
|
2070
|
-
else if (E === w)
|
|
2071
|
-
R.push(Math.abs(w));
|
|
2012
|
+
if (typeof E == "string") R.push(E);
|
|
2013
|
+
else if (E === w) R.push(Math.abs(w));
|
|
2072
2014
|
else {
|
|
2073
2015
|
const O = Math.abs(E);
|
|
2074
2016
|
let V = O ? Math.floor(Math.log10(O)) : 0, A = V < 0 ? O * 10 ** -V : O / 10 ** V;
|
|
@@ -2076,8 +2018,7 @@ var Is = { exports: {} };
|
|
|
2076
2018
|
const y = function(I) {
|
|
2077
2019
|
let v = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
|
|
2078
2020
|
const Q = Math.abs(I);
|
|
2079
|
-
if (!Q)
|
|
2080
|
-
return fa;
|
|
2021
|
+
if (!Q) return fa;
|
|
2081
2022
|
const q = v && I < 0 ? 1 : 0, W = Math.floor(Q), U = Math.floor(Math.log10(Q) + 1);
|
|
2082
2023
|
let j = 0, X = 0;
|
|
2083
2024
|
if (W !== Q) {
|
|
@@ -2105,14 +2046,11 @@ var Is = { exports: {} };
|
|
|
2105
2046
|
} else if (V === 10) {
|
|
2106
2047
|
const I = O.toFixed(10).slice(0, 12).replace(/\.$/, "");
|
|
2107
2048
|
R.push(Ft(I, S));
|
|
2108
|
-
} else if (Math.abs(V) <= 9)
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
V === 9 ? R.push(Math.floor(O)) : V >= 0 && V < 9 ? R.push(C(O, 9 - V)) : $();
|
|
2114
|
-
else
|
|
2115
|
-
y.total >= 12 ? $() : Math.floor(O) === O ? R.push(Math.floor(O)) : R.push(Ft(C(O, 9).toFixed(y.frac), S));
|
|
2049
|
+
} else if (Math.abs(V) <= 9) if (y.total <= 11) {
|
|
2050
|
+
const I = C(O, 9).toFixed(y.frac);
|
|
2051
|
+
R.push(Ft(I, S));
|
|
2052
|
+
} else V === 9 ? R.push(Math.floor(O)) : V >= 0 && V < 9 ? R.push(C(O, 9 - V)) : $();
|
|
2053
|
+
else y.total >= 12 ? $() : Math.floor(O) === O ? R.push(Math.floor(O)) : R.push(Ft(C(O, 9).toFixed(y.frac), S));
|
|
2116
2054
|
}
|
|
2117
2055
|
return R;
|
|
2118
2056
|
}
|
|
@@ -2125,8 +2063,7 @@ var Is = { exports: {} };
|
|
|
2125
2063
|
let w = "", O = "", V = "", A = "", y = "", $ = 0, I = 0 | R, v = 0, Q = 0, q = 1, W = 0, U = 0, j = 0, X = 0, J = 0, ne = 0;
|
|
2126
2064
|
const re = S || _;
|
|
2127
2065
|
if (!p.text && isFinite(p.scale) && p.scale !== 1 && (R = function(N) {
|
|
2128
|
-
if (N === 0)
|
|
2129
|
-
return N;
|
|
2066
|
+
if (N === 0) return N;
|
|
2130
2067
|
const ae = Math.ceil(Math.log10(N < 0 ? -N : N)), M = 10 ** (16 - Math.floor(ae));
|
|
2131
2068
|
return Math.round(N * M) / M;
|
|
2132
2069
|
}(R * p.scale)), p.exponential) {
|
|
@@ -2143,21 +2080,18 @@ var Is = { exports: {} };
|
|
|
2143
2080
|
}
|
|
2144
2081
|
if (p.grouping) {
|
|
2145
2082
|
let N = "", ae = y.length;
|
|
2146
|
-
for (ae > p.group_pri && (ae -= p.group_pri, N = re.group + y.slice(ae, ae + p.group_pri) + N); ae > p.group_sec; )
|
|
2147
|
-
ae -= p.group_sec, N = re.group + y.slice(ae, ae + p.group_sec) + N;
|
|
2083
|
+
for (ae > p.group_pri && (ae -= p.group_pri, N = re.group + y.slice(ae, ae + p.group_pri) + N); ae > p.group_sec; ) ae -= p.group_sec, N = re.group + y.slice(ae, ae + p.group_sec) + N;
|
|
2148
2084
|
y = ae ? y.slice(0, ae) + N : N;
|
|
2149
2085
|
}
|
|
2150
2086
|
p.dec_fractions && (A = String(C(R, p.frac_max)).split(".")[1] || "");
|
|
2151
2087
|
let Ce = !1;
|
|
2152
2088
|
if (p.fractions) {
|
|
2153
2089
|
const N = Math.abs(p.integer ? R % 1 : R);
|
|
2154
|
-
if (N)
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
O += ae[0], V += ae[1], p.integer && O === "0" && (y || (y = "0"), O = "", V = "", Ce = !1);
|
|
2160
|
-
}
|
|
2090
|
+
if (N) if (Ce = !0, isFinite(p.denominator)) V += p.denominator, O += C(N * p.denominator), O === "0" && (O = "", V = "", Ce = !1, y || (y = "0"));
|
|
2091
|
+
else {
|
|
2092
|
+
const ae = b(N, p.integer ? p.num_max : 1 / 0, p.den_max);
|
|
2093
|
+
O += ae[0], V += ae[1], p.integer && O === "0" && (y || (y = "0"), O = "", V = "", Ce = !1);
|
|
2094
|
+
}
|
|
2161
2095
|
}
|
|
2162
2096
|
if (p.date) {
|
|
2163
2097
|
I = Math.trunc(R);
|
|
@@ -2175,8 +2109,7 @@ var Is = { exports: {} };
|
|
|
2175
2109
|
J = Math.floor(ae) % 60, X = Math.floor(ae / 60) % 60, j = Math.floor(ae / 60 / 60) % 60;
|
|
2176
2110
|
}
|
|
2177
2111
|
if (U = (6 + I) % 7, p.date_eval && (Xe = R, ht = I + v / Mt, E.dateSpanLarge ? Xe < -694324 || ht >= 35830291 : Xe < 0 || ht >= 2958466)) {
|
|
2178
|
-
if (E.dateErrorThrows)
|
|
2179
|
-
throw new Error("Date out of bounds");
|
|
2112
|
+
if (E.dateErrorThrows) throw new Error("Date out of bounds");
|
|
2180
2113
|
return E.dateErrorNumber ? Mn(R < 0 ? [re.negative] : [], 0, R, re).join("") : E.overflow;
|
|
2181
2114
|
}
|
|
2182
2115
|
}
|
|
@@ -2190,64 +2123,41 @@ var Is = { exports: {} };
|
|
|
2190
2123
|
const nt = { int: 0, frac: 0, man: 0, num: 0, den: 0 };
|
|
2191
2124
|
for (let N = 0, ae = p.tokens.length; N < ae; N++) {
|
|
2192
2125
|
const M = p.tokens[N], rr = M.num ? M.num.length : 0;
|
|
2193
|
-
if (M.type === "string")
|
|
2194
|
-
|
|
2195
|
-
else if (M.type === "
|
|
2196
|
-
|
|
2197
|
-
else if (M.type === "
|
|
2198
|
-
|
|
2199
|
-
else if (M.type === "
|
|
2200
|
-
|
|
2201
|
-
else if (M.type === "
|
|
2202
|
-
|
|
2203
|
-
else
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
else if (M.type === "text")
|
|
2208
|
-
T.push(R);
|
|
2209
|
-
else if (M.type === "div")
|
|
2210
|
-
Ce ? T.push("/") : p.num_min > 0 || p.den_min > 0 ? T.push(F["?"]) : T.push(F["#"]);
|
|
2211
|
-
else if (M.type === "int")
|
|
2212
|
-
if (p.int_pattern.length === 1)
|
|
2213
|
-
T.push(y);
|
|
2214
|
-
else {
|
|
2215
|
-
const pe = Be ? p.int_pattern.join("").length - nt.int : 1 / 0, Lt = Be === p.int_pattern.length - 1 ? 0 : p.int_pattern.join("").length - (nt.int + M.num.length);
|
|
2216
|
-
T.push(y.substring(y.length - pe, y.length - Lt)), Be++, nt.int += M.num.length;
|
|
2217
|
-
}
|
|
2126
|
+
if (M.type === "string") M.rule ? M.rule === "num" ? Ce ? T.push(M.value) : (p.num_min > 0 || p.den_min > 0) && T.push(M.value.replace(/./g, F["?"])) : M.rule === "num+int" ? Ce && y ? T.push(M.value) : p.den_min > 0 && (y || p.num_min) && T.push(M.value.replace(/./g, F["?"])) : M.rule === "den" && (Ce ? T.push(M.value) : (p.den_min > 0 || p.den_min > 0) && T.push(M.value.replace(/./g, F["?"]))) : T.push(M.value);
|
|
2127
|
+
else if (M.type === "error") T.push(E.invalid);
|
|
2128
|
+
else if (M.type === "point") T.push(p.date ? M.value : re.decimal);
|
|
2129
|
+
else if (M.type === "general") Mn(T, 0, R, re);
|
|
2130
|
+
else if (M.type === "exp") T.push(re.exponent);
|
|
2131
|
+
else if (M.type === "minus") M.volatile && p.date || M.volatile && (R >= 0 || typeof R != "number") || (M.volatile && !p.fractions && (p.integer || p.dec_fractions) ? (R < 0 && y && y !== "0" || A) && T.push(re.negative) : T.push(re.negative));
|
|
2132
|
+
else if (M.type === "plus") T.push(re.positive);
|
|
2133
|
+
else if (M.type === "text") T.push(R);
|
|
2134
|
+
else if (M.type === "div") Ce ? T.push("/") : p.num_min > 0 || p.den_min > 0 ? T.push(F["?"]) : T.push(F["#"]);
|
|
2135
|
+
else if (M.type === "int") if (p.int_pattern.length === 1) T.push(y);
|
|
2136
|
+
else {
|
|
2137
|
+
const pe = Be ? p.int_pattern.join("").length - nt.int : 1 / 0, Lt = Be === p.int_pattern.length - 1 ? 0 : p.int_pattern.join("").length - (nt.int + M.num.length);
|
|
2138
|
+
T.push(y.substring(y.length - pe, y.length - Lt)), Be++, nt.int += M.num.length;
|
|
2139
|
+
}
|
|
2218
2140
|
else if (M.type === "frac") {
|
|
2219
2141
|
const pe = nt.frac;
|
|
2220
|
-
for (let Lt = 0; Lt < rr; Lt++)
|
|
2221
|
-
T.push(A[Lt + pe] || F[M.num[Lt]]);
|
|
2142
|
+
for (let Lt = 0; Lt < rr; Lt++) T.push(A[Lt + pe] || F[M.num[Lt]]);
|
|
2222
2143
|
nt.frac += rr;
|
|
2223
|
-
} else if (M.type in kn)
|
|
2224
|
-
|
|
2225
|
-
else if (M.type === "year")
|
|
2226
|
-
Q < 0 && T.push(re.negative), T.push(String(Math.abs(Q)).padStart(4, "0"));
|
|
2144
|
+
} else if (M.type in kn) p[M.type + "_pattern"].length === 1 ? (M.type === "int" && T.push(y), M.type === "frac" && T.push(A), M.type === "man" && T.push(w), M.type === "num" && T.push(O), M.type === "den" && T.push(V)) : (T.push(kn[M.type].slice(nt[M.type], nt[M.type] + rr)), nt[M.type] += rr);
|
|
2145
|
+
else if (M.type === "year") Q < 0 && T.push(re.negative), T.push(String(Math.abs(Q)).padStart(4, "0"));
|
|
2227
2146
|
else if (M.type === "year-short") {
|
|
2228
2147
|
const pe = Q % 100;
|
|
2229
2148
|
T.push(pe < 10 ? "0" : "", pe);
|
|
2230
|
-
} else if (M.type === "month")
|
|
2231
|
-
|
|
2232
|
-
else if (M.type === "monthname-
|
|
2233
|
-
|
|
2234
|
-
else if (M.type === "
|
|
2235
|
-
|
|
2236
|
-
else if (M.type === "
|
|
2237
|
-
p.date_system === 6 ? T.push(re.mmmm6[q - 1]) : T.push(re.mmmm[q - 1]);
|
|
2238
|
-
else if (M.type === "weekday-short")
|
|
2239
|
-
T.push(re.ddd[U]);
|
|
2240
|
-
else if (M.type === "weekday")
|
|
2241
|
-
T.push(re.dddd[U]);
|
|
2242
|
-
else if (M.type === "day")
|
|
2243
|
-
T.push(M.pad && W < 10 ? "0" : "", W);
|
|
2149
|
+
} else if (M.type === "month") T.push(M.pad && q < 10 ? "0" : "", q);
|
|
2150
|
+
else if (M.type === "monthname-single") p.date_system === 6 ? T.push(re.mmmm6[q - 1].charAt(0)) : T.push(re.mmmm[q - 1].charAt(0));
|
|
2151
|
+
else if (M.type === "monthname-short") p.date_system === 6 ? T.push(re.mmm6[q - 1]) : T.push(re.mmm[q - 1]);
|
|
2152
|
+
else if (M.type === "monthname") p.date_system === 6 ? T.push(re.mmmm6[q - 1]) : T.push(re.mmmm[q - 1]);
|
|
2153
|
+
else if (M.type === "weekday-short") T.push(re.ddd[U]);
|
|
2154
|
+
else if (M.type === "weekday") T.push(re.dddd[U]);
|
|
2155
|
+
else if (M.type === "day") T.push(M.pad && W < 10 ? "0" : "", W);
|
|
2244
2156
|
else if (M.type === "hour") {
|
|
2245
2157
|
const pe = j % p.clock || (p.clock < 24 ? p.clock : 0);
|
|
2246
2158
|
T.push(M.pad && pe < 10 ? "0" : "", pe);
|
|
2247
|
-
} else if (M.type === "min")
|
|
2248
|
-
|
|
2249
|
-
else if (M.type === "sec")
|
|
2250
|
-
T.push(M.pad && J < 10 ? "0" : "", J);
|
|
2159
|
+
} else if (M.type === "min") T.push(M.pad && X < 10 ? "0" : "", X);
|
|
2160
|
+
else if (M.type === "sec") T.push(M.pad && J < 10 ? "0" : "", J);
|
|
2251
2161
|
else if (M.type === "subsec") {
|
|
2252
2162
|
T.push(re.decimal);
|
|
2253
2163
|
const pe = ne.toFixed(p.sec_decimals);
|
|
@@ -2267,8 +2177,7 @@ var Is = { exports: {} };
|
|
|
2267
2177
|
R < 0 && T.push(re.negative);
|
|
2268
2178
|
const pe = I * Mt + Math.abs(v);
|
|
2269
2179
|
T.push(String(Math.abs(pe)).padStart(M.pad, "0"));
|
|
2270
|
-
} else if (M.type === "b-year")
|
|
2271
|
-
T.push(Q + 543);
|
|
2180
|
+
} else if (M.type === "b-year") T.push(Q + 543);
|
|
2272
2181
|
else if (M.type === "b-year-short") {
|
|
2273
2182
|
const pe = (Q + 543) % 100;
|
|
2274
2183
|
T.push(pe < 10 ? "0" : "", pe);
|
|
@@ -2284,10 +2193,8 @@ var Is = { exports: {} };
|
|
|
2284
2193
|
if (S.condition) {
|
|
2285
2194
|
const O = S.condition[0], V = S.condition[1];
|
|
2286
2195
|
O === "=" ? w = R === V : O === ">" ? w = R > V : O === "<" ? w = R < V : O === ">=" ? w = R >= V : O === "<=" ? w = R <= V : O === "<>" && (w = R !== V);
|
|
2287
|
-
} else
|
|
2288
|
-
|
|
2289
|
-
if (w)
|
|
2290
|
-
return S;
|
|
2196
|
+
} else w = !0;
|
|
2197
|
+
if (w) return S;
|
|
2291
2198
|
}
|
|
2292
2199
|
}
|
|
2293
2200
|
}
|
|
@@ -2296,8 +2203,7 @@ var Is = { exports: {} };
|
|
|
2296
2203
|
if (R) {
|
|
2297
2204
|
const E = R[0];
|
|
2298
2205
|
p[E] = p[E] || {}, Me(R.slice(1), p[E]);
|
|
2299
|
-
} else
|
|
2300
|
-
p.$ = !0;
|
|
2206
|
+
} else p.$ = !0;
|
|
2301
2207
|
}
|
|
2302
2208
|
["d-F-y", "d-F-Y", "d-M-y", "d-M-Y", "F-d-y", "F-d-Y", "F-j-y", "F-j-Y", "j-F-y", "j-F-Y", "j-M-y", "j-M-Y", "M-d-y", "M-d-Y", "M-j-y", "M-j-Y", "m-d-y", "m-d-Y", "m-j-y", "m-j-Y", "n-d-y", "n-d-Y", "n-j-y", "n-j-Y", "y-F-d", "y-F-j", "y-M-d", "y-M-j", "Y-F-d", "Y-F-j", "Y-M-d", "Y-m-d", "Y-M-j", "Y-m-j", "Y-n-d", "Y-n-j", "j-F", "j-M", "d-F", "d-M", "n-d", "n-j", "n-Y", "m-d", "m-j", "m-Y", "M-Y", "M-y", "F-y", "F-Y", "Y-M", "Y-n", "Y-m", "Y-F", "Y-M"].forEach((R) => {
|
|
2303
2209
|
Me(R, Fe), Me(R + " x", Fe), Me(R + " l", Fe), Me(R + " l x", Fe), Me("l " + R, Fe), Me("l " + R + " x", Fe), Me(R + " D", Fe), Me(R + " D x", Fe), Me("D " + R, Fe), Me("D " + R + " x", Fe);
|
|
@@ -2308,57 +2214,46 @@ var Is = { exports: {} };
|
|
|
2308
2214
|
if (p) {
|
|
2309
2215
|
const [, E, S, w, O, V] = p;
|
|
2310
2216
|
let A = 1, y = "", $ = !1, I = !1, v = !1, Q = !1, q = !1, W = null, U = !1, j = parseFloat(S.replace(/,/g, ""));
|
|
2311
|
-
if (!isFinite(j))
|
|
2312
|
-
return null;
|
|
2217
|
+
if (!isFinite(j)) return null;
|
|
2313
2218
|
for (let J = 0; J < E.length; J++) {
|
|
2314
2219
|
const ne = E[J];
|
|
2315
2220
|
if (ne === "-") {
|
|
2316
|
-
if ($ || I)
|
|
2317
|
-
return null;
|
|
2221
|
+
if ($ || I) return null;
|
|
2318
2222
|
$ = !0, A = -1;
|
|
2319
2223
|
} else if (Ee.test(ne)) {
|
|
2320
|
-
if (q)
|
|
2321
|
-
return null;
|
|
2224
|
+
if (q) return null;
|
|
2322
2225
|
q = !0, W = ne;
|
|
2323
2226
|
} else if (ne === "(") {
|
|
2324
|
-
if (I || $)
|
|
2325
|
-
return null;
|
|
2227
|
+
if (I || $) return null;
|
|
2326
2228
|
I = !0, A = -1;
|
|
2327
2229
|
} else if (ne === "%") {
|
|
2328
|
-
if (Q)
|
|
2329
|
-
return null;
|
|
2230
|
+
if (Q) return null;
|
|
2330
2231
|
Q = !0;
|
|
2331
2232
|
}
|
|
2332
2233
|
}
|
|
2333
2234
|
for (let J = 0; J < V.length; J++) {
|
|
2334
2235
|
const ne = V[J];
|
|
2335
2236
|
if (Ee.test(ne)) {
|
|
2336
|
-
if (q)
|
|
2337
|
-
return null;
|
|
2237
|
+
if (q) return null;
|
|
2338
2238
|
q = !0, W = ne, U = !0;
|
|
2339
2239
|
} else if (ne === ")") {
|
|
2340
|
-
if (v || !I)
|
|
2341
|
-
return null;
|
|
2240
|
+
if (v || !I) return null;
|
|
2342
2241
|
v = !0;
|
|
2343
2242
|
} else if (ne === "%") {
|
|
2344
|
-
if (Q)
|
|
2345
|
-
return null;
|
|
2243
|
+
if (Q) return null;
|
|
2346
2244
|
Q = !0;
|
|
2347
2245
|
}
|
|
2348
2246
|
}
|
|
2349
2247
|
if (O) {
|
|
2350
|
-
if (Q || q)
|
|
2351
|
-
return null;
|
|
2248
|
+
if (Q || q) return null;
|
|
2352
2249
|
y = "0.00E+00";
|
|
2353
2250
|
} else if (Q) {
|
|
2354
|
-
if (q)
|
|
2355
|
-
return null;
|
|
2251
|
+
if (q) return null;
|
|
2356
2252
|
y = w.includes(".") ? "0.00%" : "0%", j *= 0.01;
|
|
2357
2253
|
} else if (q) {
|
|
2358
2254
|
const J = w.includes(".") ? "#,##0.00" : "#,##0";
|
|
2359
2255
|
y = U ? J + W : W + J;
|
|
2360
|
-
} else
|
|
2361
|
-
w.includes(",") && (y = w.includes(".") ? "#,##0.00" : "#,##0");
|
|
2256
|
+
} else w.includes(",") && (y = w.includes(".") ? "#,##0.00" : "#,##0");
|
|
2362
2257
|
const X = { v: j * A };
|
|
2363
2258
|
return y && (X.z = y), X;
|
|
2364
2259
|
}
|
|
@@ -2369,8 +2264,7 @@ var Is = { exports: {} };
|
|
|
2369
2264
|
let V;
|
|
2370
2265
|
const A = w[O];
|
|
2371
2266
|
if (p[A]) {
|
|
2372
|
-
if (A === "$" || A === "€")
|
|
2373
|
-
R || (V = E);
|
|
2267
|
+
if (A === "$" || A === "€") R || (V = E);
|
|
2374
2268
|
else if (A === "-") {
|
|
2375
2269
|
const y = /^(\s*([./-]|,\s)\s*|\s+)/.exec(R);
|
|
2376
2270
|
if (y) {
|
|
@@ -2408,15 +2302,13 @@ var Is = { exports: {} };
|
|
|
2408
2302
|
const y = /^\d\d\d\d\b/.exec(R);
|
|
2409
2303
|
y && (V = Te(R.slice(y[0].length), p[A], { ...E, year: +y[0], path: S + A }));
|
|
2410
2304
|
} else {
|
|
2411
|
-
if (A !== "x")
|
|
2412
|
-
throw new Error('Unknown date token "'.concat(A, '"'));
|
|
2305
|
+
if (A !== "x") throw new Error('Unknown date token "'.concat(A, '"'));
|
|
2413
2306
|
{
|
|
2414
2307
|
const y = jr(R);
|
|
2415
2308
|
y && (V = Te("", p[A], { ...E, time: y.v, tf: y.z, path: S + A }));
|
|
2416
2309
|
}
|
|
2417
2310
|
}
|
|
2418
|
-
if (V)
|
|
2419
|
-
return V;
|
|
2311
|
+
if (V) return V;
|
|
2420
2312
|
}
|
|
2421
2313
|
}
|
|
2422
2314
|
};
|
|
@@ -2424,23 +2316,17 @@ var Is = { exports: {} };
|
|
|
2424
2316
|
const E = Te(R.trim(), Fe, { path: "" });
|
|
2425
2317
|
if (E) {
|
|
2426
2318
|
var S;
|
|
2427
|
-
if (E.sep === "." && E.path.length === 3)
|
|
2428
|
-
return null;
|
|
2319
|
+
if (E.sep === "." && E.path.length === 3) return null;
|
|
2429
2320
|
const w = +((S = E.year) !== null && S !== void 0 ? S : ga);
|
|
2430
2321
|
if (E.day || (E.day = 1), !function(A, y, $) {
|
|
2431
|
-
if ($ < 1 || y < 1 || y > 12)
|
|
2432
|
-
return !1;
|
|
2322
|
+
if ($ < 1 || y < 1 || y > 12) return !1;
|
|
2433
2323
|
if (y === 2) {
|
|
2434
|
-
if ($ > (A % 4 == 0 && A % 100 != 0 || A % 400 == 0 || A === 1900 ? 29 : 28))
|
|
2435
|
-
|
|
2436
|
-
} else if ((y === 4 || y === 6 || y === 9 || y === 11) && $ > 30 || (y === 1 || y === 3 || y === 5 || y === 7 || y === 8 || y === 10 || y === 12) && $ > 31)
|
|
2437
|
-
return !1;
|
|
2324
|
+
if ($ > (A % 4 == 0 && A % 100 != 0 || A % 400 == 0 || A === 1900 ? 29 : 28)) return !1;
|
|
2325
|
+
} else if ((y === 4 || y === 6 || y === 9 || y === 11) && $ > 30 || (y === 1 || y === 3 || y === 5 || y === 7 || y === 8 || y === 10 || y === 12) && $ > 31) return !1;
|
|
2438
2326
|
return !0;
|
|
2439
|
-
}(w, E.month, E.day))
|
|
2440
|
-
return null;
|
|
2327
|
+
}(w, E.month, E.day)) return null;
|
|
2441
2328
|
let O = -1 / 0;
|
|
2442
|
-
if (w < 1900)
|
|
2443
|
-
return null;
|
|
2329
|
+
if (w < 1900) return null;
|
|
2444
2330
|
w <= 1900 && E.month <= 2 ? O = 25568 : w < 1e4 && (O = 25569);
|
|
2445
2331
|
const V = Date.UTC(w, E.month - 1, E.day) / 864e5 + O + (E.time || 0);
|
|
2446
2332
|
if (V >= 0 && V <= 2958465) {
|
|
@@ -2454,12 +2340,10 @@ var Is = { exports: {} };
|
|
|
2454
2340
|
const p = /^\s*([10]?\d|2[0-4])(?::([0-5]\d|\d))?(?::([0-5]\d|\d))?(\.\d{1,10})?(?:\s*([AP])M?)?\s*$/i.exec(R);
|
|
2455
2341
|
if (p) {
|
|
2456
2342
|
const [, E, S, w, O, V] = p;
|
|
2457
|
-
if (O && !w || !V && !S && !w)
|
|
2458
|
-
return null;
|
|
2343
|
+
if (O && !w || !V && !S && !w) return null;
|
|
2459
2344
|
let A = 1 * (E || 0);
|
|
2460
2345
|
if (V) {
|
|
2461
|
-
if (A >= 13)
|
|
2462
|
-
return null;
|
|
2346
|
+
if (A >= 13) return null;
|
|
2463
2347
|
V[0] !== "p" && V[0] !== "P" || (A += 12);
|
|
2464
2348
|
}
|
|
2465
2349
|
return { v: (60 * A * 60 + 60 * (1 * (S || 0)) + 1 * (w || 0) + 1 * (O || 0)) / 86400, z: (E.length === 2 ? "hh" : "h") + ":mm" + (w ? ":ss" : "") + (V ? " AM/PM" : "") };
|
|
@@ -2478,10 +2362,8 @@ var Is = { exports: {} };
|
|
|
2478
2362
|
const I = O($);
|
|
2479
2363
|
return function(v, Q, q) {
|
|
2480
2364
|
const W = l(q.locale), U = Q[3] ? Q[3] : Yn;
|
|
2481
|
-
if (typeof v == "boolean" && (v = v ? "TRUE" : "FALSE"), v == null)
|
|
2482
|
-
|
|
2483
|
-
if (typeof v != "number")
|
|
2484
|
-
return Tn(v, U, q, W);
|
|
2365
|
+
if (typeof v == "boolean" && (v = v ? "TRUE" : "FALSE"), v == null) return "";
|
|
2366
|
+
if (typeof v != "number") return Tn(v, U, q, W);
|
|
2485
2367
|
if (!isFinite(v)) {
|
|
2486
2368
|
const X = W || _;
|
|
2487
2369
|
return isNaN(v) ? X.nan : (v < 0 ? X.negative : "") + X.infinity;
|
|
@@ -2491,8 +2373,7 @@ var Is = { exports: {} };
|
|
|
2491
2373
|
}(tr(y, I), S, I);
|
|
2492
2374
|
};
|
|
2493
2375
|
V.color = (y, $) => function(I, v) {
|
|
2494
|
-
if (typeof I != "number" || !isFinite(I))
|
|
2495
|
-
return (v[3] ? v[3].color : Yn.color) || In;
|
|
2376
|
+
if (typeof I != "number" || !isFinite(I)) return (v[3] ? v[3].color : Yn.color) || In;
|
|
2496
2377
|
const Q = jn(I, v);
|
|
2497
2378
|
return Q && Q.color || In;
|
|
2498
2379
|
}(tr(y, O($)), S);
|
|
@@ -2501,10 +2382,8 @@ var Is = { exports: {} };
|
|
|
2501
2382
|
let I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
2502
2383
|
const [v, Q] = y, q = v.frac_max, W = { type: "general", isDate: oa(y), isText: ua(y), isPercent: ia(y), maxDecimals: v.general ? 9 : q, scale: ($ = v.scale) !== null && $ !== void 0 ? $ : 1, color: 0, parentheses: 0, grouped: v.grouping ? 1 : 0, _partitions: y }, U = !W.isDate && !W.isText && !v.error && v.tokens.some((re) => re.type === "string" && (I ? re.value === I : Ee.test(re.value)));
|
|
2503
2384
|
let j = "G", X = q >= 0 ? Math.min(15, q) : "", J = "", ne = "";
|
|
2504
|
-
if (Q && Q.color && (ne = "-", W.color = 1), v.parens && (J = "()", W.parentheses = 1), U)
|
|
2505
|
-
|
|
2506
|
-
else if (v.error)
|
|
2507
|
-
W.type = "error", W.maxDecimals = 0;
|
|
2385
|
+
if (Q && Q.color && (ne = "-", W.color = 1), v.parens && (J = "()", W.parentheses = 1), U) j = "C", W.type = "currency";
|
|
2386
|
+
else if (v.error) W.type = "error", W.maxDecimals = 0;
|
|
2508
2387
|
else if (W.isDate) {
|
|
2509
2388
|
let re = 0, Ce = 0, Xe = "";
|
|
2510
2389
|
v.tokens.forEach((T) => {
|
|
@@ -2513,8 +2392,7 @@ var Is = { exports: {} };
|
|
|
2513
2392
|
}), W.type = "date", Ce && re ? W.type = "datetime" : !Ce && re && (W.type = "time");
|
|
2514
2393
|
const ht = la.find((T) => Xe.startsWith(T[0]));
|
|
2515
2394
|
j = ht ? "D" : "G", X = ht ? ht[1] : "";
|
|
2516
|
-
} else
|
|
2517
|
-
W.isText ? (j = "G", W.type = "text", X = "", W.maxDecimals = 0) : v.general ? (j = "G", W.type = "general", X = "") : v.fractions ? (j = "G", W.type = "fraction", X = "") : v.exponential ? (j = "S", W.type = "scientific") : W.isPercent ? (j = "P", W.type = "percent") : v.grouping ? (j = ",", W.type = "grouped") : (v.int_max || q) && (j = "F", W.type = "number");
|
|
2395
|
+
} else W.isText ? (j = "G", W.type = "text", X = "", W.maxDecimals = 0) : v.general ? (j = "G", W.type = "general", X = "") : v.fractions ? (j = "G", W.type = "fraction", X = "") : v.exponential ? (j = "S", W.type = "scientific") : W.isPercent ? (j = "P", W.type = "percent") : v.grouping ? (j = ",", W.type = "grouped") : (v.int_max || q) && (j = "F", W.type = "number");
|
|
2518
2396
|
return W.code = j + X + ne + J, W.level = ca[W.type], Object.freeze(W);
|
|
2519
2397
|
}(S, (p || {}).currency) || new SyntaxError();
|
|
2520
2398
|
return V.info = A, V.dateInfo = function(y) {
|
|
@@ -3352,8 +3230,7 @@ class _e extends lt {
|
|
|
3352
3230
|
if (n || (a = a.toLocaleLowerCase(), e = e.toLocaleLowerCase()), ni(e))
|
|
3353
3231
|
return this._checkWildcard(e, t);
|
|
3354
3232
|
i = this._compareString(a, e, t);
|
|
3355
|
-
} else
|
|
3356
|
-
typeof e == "number" ? i = this._compareNumber(t) : typeof e == "boolean" && (i = this._compareBoolean(t));
|
|
3233
|
+
} else typeof e == "number" ? i = this._compareNumber(t) : typeof e == "boolean" && (i = this._compareBoolean(t));
|
|
3357
3234
|
return Y.create(i);
|
|
3358
3235
|
}
|
|
3359
3236
|
_compareString(e, t, n) {
|
|
@@ -5691,8 +5568,7 @@ class uo extends k {
|
|
|
5691
5568
|
(o != null && o.isBoolean() || o != null && o.isNumber()) && (t = t && !!o.getValue(), n = !1);
|
|
5692
5569
|
}), a)
|
|
5693
5570
|
return a;
|
|
5694
|
-
} else
|
|
5695
|
-
(i.isBoolean() || i.isNumber()) && (t = t && !!i.getValue(), n = !1);
|
|
5571
|
+
} else (i.isBoolean() || i.isNumber()) && (t = t && !!i.getValue(), n = !1);
|
|
5696
5572
|
}
|
|
5697
5573
|
return n ? m.create(h.VALUE) : Y.create(t);
|
|
5698
5574
|
}
|
|
@@ -5818,8 +5694,7 @@ class mo extends k {
|
|
|
5818
5694
|
(o != null && o.isBoolean() || o != null && o.isNumber()) && (t = t || !!o.getValue(), n = !1);
|
|
5819
5695
|
}), a)
|
|
5820
5696
|
return a;
|
|
5821
|
-
} else
|
|
5822
|
-
(i.isBoolean() || i.isNumber()) && (t = t || !!i.getValue(), n = !1);
|
|
5697
|
+
} else (i.isBoolean() || i.isNumber()) && (t = t || !!i.getValue(), n = !1);
|
|
5823
5698
|
}
|
|
5824
5699
|
return n ? new m(h.VALUE) : new Y(t);
|
|
5825
5700
|
}
|
|
@@ -6910,8 +6785,7 @@ class Qo extends k {
|
|
|
6910
6785
|
});
|
|
6911
6786
|
const u = [];
|
|
6912
6787
|
for (let f = 0; f < t.length; f++) {
|
|
6913
|
-
if (f % 2 === 1)
|
|
6914
|
-
continue;
|
|
6788
|
+
if (f % 2 === 1) continue;
|
|
6915
6789
|
const g = t[f], _ = g.getRowCount(), C = g.getColumnCount();
|
|
6916
6790
|
if (_ !== n || C !== a)
|
|
6917
6791
|
return me(i, o, m.create(h.NA));
|
|
@@ -7101,8 +6975,7 @@ class Jo extends k {
|
|
|
7101
6975
|
if (t = t.plus(i.sum()), t.isError())
|
|
7102
6976
|
return t;
|
|
7103
6977
|
n = n.plus(i.count());
|
|
7104
|
-
} else
|
|
7105
|
-
i.isNull() || (t = t.plus(i), n = n.plus(D.create(1)));
|
|
6978
|
+
} else i.isNull() || (t = t.plus(i), n = n.plus(D.create(1)));
|
|
7106
6979
|
}
|
|
7107
6980
|
return t.divided(n);
|
|
7108
6981
|
}
|
|
@@ -7251,8 +7124,7 @@ class iu extends k {
|
|
|
7251
7124
|
});
|
|
7252
7125
|
const u = [];
|
|
7253
7126
|
for (let f = 0; f < t.length; f++) {
|
|
7254
|
-
if (f % 2 === 1)
|
|
7255
|
-
continue;
|
|
7127
|
+
if (f % 2 === 1) continue;
|
|
7256
7128
|
const g = t[f], _ = g.getRowCount(), C = g.getColumnCount();
|
|
7257
7129
|
if (_ !== n || C !== a)
|
|
7258
7130
|
return me(i, o, m.create(h.NA));
|
|
@@ -7446,6 +7318,7 @@ var Ru = /* @__PURE__ */ ((r) => r)(Ru || {});
|
|
|
7446
7318
|
const _u = [];
|
|
7447
7319
|
var Eu = /* @__PURE__ */ ((r) => (r.ENCODEURL = "ENCODEURL", r.FILTERXML = "FILTERXML", r.WEBSERVICE = "WEBSERVICE", r))(Eu || {});
|
|
7448
7320
|
function yu(r, s, e, t, n, a, i) {
|
|
7321
|
+
var f;
|
|
7449
7322
|
const o = (i == null ? void 0 : i.f) || "", u = (i == null ? void 0 : i.si) || "", c = Ct(o), l = wt(u);
|
|
7450
7323
|
if (c && l)
|
|
7451
7324
|
r.setValue(n, a, {
|
|
@@ -7467,8 +7340,12 @@ function yu(r, s, e, t, n, a, i) {
|
|
|
7467
7340
|
si: u
|
|
7468
7341
|
});
|
|
7469
7342
|
else if (!c && !l && r.getValue(n, a)) {
|
|
7470
|
-
const
|
|
7471
|
-
Ct(
|
|
7343
|
+
const g = r.getValue(n, a), _ = (g == null ? void 0 : g.f) || "", C = (g == null ? void 0 : g.si) || "";
|
|
7344
|
+
if (Ct(_) && wt(C)) {
|
|
7345
|
+
const b = (f = e.get(C)) == null ? void 0 : f.f;
|
|
7346
|
+
b ? t.set(C, b) : t.set(C, _);
|
|
7347
|
+
}
|
|
7348
|
+
r.realDeleteValue(n, a), s.setValue(n, a, null);
|
|
7472
7349
|
}
|
|
7473
7350
|
}
|
|
7474
7351
|
function Cu(r, s, e, t) {
|
|
@@ -7682,8 +7559,7 @@ let Xt = class extends le {
|
|
|
7682
7559
|
updateArrayFormulaRange(s, e, t) {
|
|
7683
7560
|
var o;
|
|
7684
7561
|
const n = (o = this._arrayFormulaRange[s]) == null ? void 0 : o[e];
|
|
7685
|
-
if (!n)
|
|
7686
|
-
return;
|
|
7562
|
+
if (!n) return;
|
|
7687
7563
|
const a = new ie(n);
|
|
7688
7564
|
new ie(t).forValue((u, c, l) => {
|
|
7689
7565
|
a.realDeleteValue(u, c);
|
|
@@ -7692,11 +7568,9 @@ let Xt = class extends le {
|
|
|
7692
7568
|
updateArrayFormulaCellData(s, e, t) {
|
|
7693
7569
|
var c, l;
|
|
7694
7570
|
const n = (c = this._arrayFormulaRange[s]) == null ? void 0 : c[e];
|
|
7695
|
-
if (!n)
|
|
7696
|
-
return;
|
|
7571
|
+
if (!n) return;
|
|
7697
7572
|
const a = new ie(n), i = (l = this._arrayFormulaCellData[s]) == null ? void 0 : l[e];
|
|
7698
|
-
if (!i)
|
|
7699
|
-
return;
|
|
7573
|
+
if (!i) return;
|
|
7700
7574
|
const o = new ie(i);
|
|
7701
7575
|
new ie(t).forValue((f, g, _) => {
|
|
7702
7576
|
Cu(a, o, f, g);
|
|
@@ -8119,8 +7993,7 @@ let Ut = class extends le {
|
|
|
8119
7993
|
if (f) {
|
|
8120
7994
|
let g = f.formulaOrRefString;
|
|
8121
7995
|
g.substring(0, 1) === oe.EQUALS && (g = g.substring(1)), t += g, a.push(f.name), n = !0;
|
|
8122
|
-
} else
|
|
8123
|
-
this._checkDefinedNameDirty(l) ? (t += h.NAME, n = !0, a.push(l)) : t += l;
|
|
7996
|
+
} else this._checkDefinedNameDirty(l) ? (t += h.NAME, n = !0, a.push(l)) : t += l;
|
|
8124
7997
|
} else
|
|
8125
7998
|
t += l;
|
|
8126
7999
|
}
|
|
@@ -8674,8 +8547,7 @@ let br = class extends We {
|
|
|
8674
8547
|
let t = "";
|
|
8675
8548
|
if (e === ye.MINUS)
|
|
8676
8549
|
t = Pe.MINUS;
|
|
8677
|
-
else
|
|
8678
|
-
return e === ye.AT ? new Dr(this._injector, e) : void 0;
|
|
8550
|
+
else return e === ye.AT ? new Dr(this._injector, e) : void 0;
|
|
8679
8551
|
const n = this._functionService.getExecutor(t);
|
|
8680
8552
|
return n ? new Dr(this._injector, e, n) : (console.error(`No function ${s}`), be.create(h.NAME));
|
|
8681
8553
|
}
|
|
@@ -9376,8 +9248,7 @@ let xr = class extends We {
|
|
|
9376
9248
|
let e = "";
|
|
9377
9249
|
if (s === Ne.PERCENTAGE)
|
|
9378
9250
|
e = Pe.DIVIDED;
|
|
9379
|
-
else
|
|
9380
|
-
return s === Ne.POUND ? new Es(this._injector, s) : void 0;
|
|
9251
|
+
else return s === Ne.POUND ? new Es(this._injector, s) : void 0;
|
|
9381
9252
|
const t = this._functionService.getExecutor(e);
|
|
9382
9253
|
return t ? new Es(this._injector, s, t) : (console.error(`No function ${r}`), be.create(h.NAME));
|
|
9383
9254
|
}
|
|
@@ -10184,8 +10055,7 @@ let It = class extends le {
|
|
|
10184
10055
|
if (this._isPreCalculateNode(i)) {
|
|
10185
10056
|
e.push(i);
|
|
10186
10057
|
continue;
|
|
10187
|
-
} else
|
|
10188
|
-
i.nodeType === Z.REFERENCE && e.push(i);
|
|
10058
|
+
} else i.nodeType === Z.REFERENCE && e.push(i);
|
|
10189
10059
|
this._nodeTraversalRef(i, e);
|
|
10190
10060
|
}
|
|
10191
10061
|
}
|
|
@@ -10454,8 +10324,7 @@ let Qt = class extends le {
|
|
|
10454
10324
|
), c != null && o.featureId != null) {
|
|
10455
10325
|
const { runtimeCellData: f, dirtyRanges: g } = c(o);
|
|
10456
10326
|
this._runtimeService.setRuntimeFeatureCellData(o.featureId, f), this._runtimeService.setRuntimeFeatureRange(o.featureId, g);
|
|
10457
|
-
} else
|
|
10458
|
-
u != null && (t.checkAsyncNode(u) ? l = await t.executeAsync(u) : l = t.execute(u), o.formulaId != null ? this._runtimeService.setRuntimeOtherData(o.formulaId, l) : this._runtimeService.setRuntimeData(l));
|
|
10327
|
+
} else u != null && (t.checkAsyncNode(u) ? l = await t.executeAsync(u) : l = t.execute(u), o.formulaId != null ? this._runtimeService.setRuntimeOtherData(o.formulaId, l) : this._runtimeService.setRuntimeData(l));
|
|
10459
10328
|
s ? (this._runtimeService.setFormulaExecuteStage(
|
|
10460
10329
|
Ke.CURRENTLY_CALCULATING_ARRAY_FORMULA
|
|
10461
10330
|
), this._runtimeService.setCompletedArrayFormulasCount(a + 1)) : (this._runtimeService.setFormulaExecuteStage(Ke.CURRENTLY_CALCULATING), this._runtimeService.setCompletedFormulasCount(a + 1)), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState());
|