@sheetxl/formulas 0.8.0-beta.5 → 0.8.0-beta.7
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/browser/cjs/index.cjs +1 -1
- package/browser/esm/{D3awenvxpQ1KDx15.mjs → 0x5l9_ZIbiV0OsPM.mjs} +1 -1
- package/browser/esm/{DSiBIwQ60UGTT4By.mjs → BMqGkc9lB3bzYJi2.mjs} +1 -1
- package/{node/esm/CfnUiLfVLC77gZtw.mjs → browser/esm/Bx8w0EgTgcvUP2FG.mjs} +1 -1
- package/{node/esm/BFNihluoZBNsYXCL.mjs → browser/esm/ByDxheg-vywRUW_k.mjs} +1 -1
- package/browser/esm/{D3HxZeTF0H2Pzj3w.mjs → ByxQneGrvNXRw1C3.mjs} +1 -1
- package/browser/esm/{Ag3eE6q5ZJM3fVav.mjs → C8T9tdc0Ro3dYT5i.mjs} +1 -1
- package/browser/esm/{Bm7qgQ2w1girWceN.mjs → CHSEyxhpLg7gA_-m.mjs} +1 -1
- package/browser/esm/{DPOEWf1NF3NI3XZ4.mjs → CNlk9maTZcfnUoqC.mjs} +1 -1
- package/{node/esm/Oyz1gF7vrQIcrZTJ.mjs → browser/esm/CfvEeNcQ1nU48r9h.mjs} +1 -1
- package/browser/esm/{5X8bpCTLz5g9VT2o.mjs → CnvR3EiK8b4IYqeQ.mjs} +1 -1
- package/browser/esm/{CqHYqOQrHyPoH-64.mjs → DDC5dkydbI95ULio.mjs} +1 -1
- package/browser/esm/{DMENp5P58xDDh86d.mjs → DNbjcGCykjUZf_DR.mjs} +1 -1
- package/{node/esm/CuaSmoQylFRBvp9P.mjs → browser/esm/DNqckj8TulTGo7FR.mjs} +1 -1
- package/browser/esm/{BsYQTAuC7Hq--ggs.mjs → DRamw-nLOZBXeDlT.mjs} +1 -1
- package/{node/esm/D8mtKfymlOxIp6fe.mjs → browser/esm/DSERN9sINhqwboEy.mjs} +1 -1
- package/{node/esm/Dv_OzvnifdH_iW01.mjs → browser/esm/Dbe7sAcT1MMSJCLl.mjs} +1 -1
- package/{node/esm/CyH2KnOPfO7f3wqp.mjs → browser/esm/Dl4FJb5rdXwETLy5.mjs} +1 -1
- package/browser/esm/{RZCrfC-2dhllAOfT.mjs → DxQH39LzO3Dy-i--.mjs} +1 -1
- package/{node/esm/Be2CwRYRoOSahicS.mjs → browser/esm/IdYYtD2hRuVaaSo5.mjs} +1 -1
- package/browser/esm/{C2unqUZMcJQswbkM.mjs → L8H_ruX1UE3o8Y3Y.mjs} +1 -1
- package/browser/esm/{DzU54uqsXvnhSKrR.mjs → LSB9NC_9pLFIXB2r.mjs} +1 -1
- package/browser/esm/{DTcWwF0L7wM4TA6R.mjs → VmFmgY9dzxIwm52h.mjs} +1 -1
- package/browser/esm/{CMZlUqf3eqW0b4t2.mjs → _EPqEYbpgoySRKpA.mjs} +1 -1
- package/browser/esm/{D0HY0ZIA1GFd17Hz.mjs → e3gK86aUTL33K049.mjs} +1 -1
- package/browser/esm/index.mjs +741 -741
- package/browser/esm/{B_w20YqHLHl33cfQ.mjs → rcUA627TgCowf8TT.mjs} +1 -1
- package/node/esm/{1riNkHcbYB6zVyQd.mjs → 3mZkK3J9uUuf4_r4.mjs} +1 -1
- package/node/esm/{DSiBIwQ60UGTT4By.mjs → BMqGkc9lB3bzYJi2.mjs} +1 -1
- package/node/esm/{DK2Jv1ksEXj01Txu.mjs → BS95wBl9mVWJgoWK.mjs} +1 -1
- package/node/esm/{CP1nc1n-SQUEvyg-.mjs → BVPS5Un1I5hdlqAx.mjs} +1 -1
- package/{browser/esm/CfnUiLfVLC77gZtw.mjs → node/esm/Bx8w0EgTgcvUP2FG.mjs} +1 -1
- package/{browser/esm/BFNihluoZBNsYXCL.mjs → node/esm/ByDxheg-vywRUW_k.mjs} +1 -1
- package/node/esm/{Ag3eE6q5ZJM3fVav.mjs → C8T9tdc0Ro3dYT5i.mjs} +1 -1
- package/node/esm/{Bm7qgQ2w1girWceN.mjs → CHSEyxhpLg7gA_-m.mjs} +1 -1
- package/node/esm/{DPOEWf1NF3NI3XZ4.mjs → CNlk9maTZcfnUoqC.mjs} +1 -1
- package/node/esm/{D-XKQ7s9vsHkQnZN.mjs → CSUb3dsHnebxlWcC.mjs} +1 -1
- package/{browser/esm/Oyz1gF7vrQIcrZTJ.mjs → node/esm/CfvEeNcQ1nU48r9h.mjs} +1 -1
- package/node/esm/{5X8bpCTLz5g9VT2o.mjs → CnvR3EiK8b4IYqeQ.mjs} +1 -1
- package/{browser/esm/CuaSmoQylFRBvp9P.mjs → node/esm/DNqckj8TulTGo7FR.mjs} +1 -1
- package/node/esm/{BsYQTAuC7Hq--ggs.mjs → DRamw-nLOZBXeDlT.mjs} +1 -1
- package/{browser/esm/D8mtKfymlOxIp6fe.mjs → node/esm/DSERN9sINhqwboEy.mjs} +1 -1
- package/{browser/esm/Dv_OzvnifdH_iW01.mjs → node/esm/Dbe7sAcT1MMSJCLl.mjs} +1 -1
- package/node/esm/{ChJD5hRF7wcBxJhZ.mjs → DgpL9kNphy9gXRFA.mjs} +1 -1
- package/{browser/esm/CyH2KnOPfO7f3wqp.mjs → node/esm/Dl4FJb5rdXwETLy5.mjs} +1 -1
- package/node/esm/{BZhz4wO8xRM_GaZ2.mjs → DpY6ubhJ6C7xwhJX.mjs} +1 -1
- package/node/esm/{DPbVTkgPOiFKUnlX.mjs → FLGhbLcK_-CaBWel.mjs} +1 -1
- package/{browser/esm/Be2CwRYRoOSahicS.mjs → node/esm/IdYYtD2hRuVaaSo5.mjs} +1 -1
- package/node/esm/{C2unqUZMcJQswbkM.mjs → L8H_ruX1UE3o8Y3Y.mjs} +1 -1
- package/node/esm/{DzU54uqsXvnhSKrR.mjs → LSB9NC_9pLFIXB2r.mjs} +1 -1
- package/node/esm/{DTcWwF0L7wM4TA6R.mjs → VmFmgY9dzxIwm52h.mjs} +1 -1
- package/node/esm/{CMZlUqf3eqW0b4t2.mjs → _EPqEYbpgoySRKpA.mjs} +1 -1
- package/node/esm/index.mjs +789 -789
- package/package.json +3 -3
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.7
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -167,7 +167,7 @@ var x = c({
|
|
|
167
167
|
DAY: () => F,
|
|
168
168
|
DAYS: () => P,
|
|
169
169
|
EDATE: () => k,
|
|
170
|
-
EOMONTH: () =>
|
|
170
|
+
EOMONTH: () => W,
|
|
171
171
|
HOUR: () => j,
|
|
172
172
|
ISOWEEKNUM: () => $,
|
|
173
173
|
MINUTE: () => Z,
|
|
@@ -231,13 +231,13 @@ function H(n, t) {
|
|
|
231
231
|
}
|
|
232
232
|
function k(r, t) {
|
|
233
233
|
const e = _(H(r, G)), { year: u, month: o, day: i } = n.getDateParts(e), { year: a, month: s } = Q(u, o, K(t));
|
|
234
|
-
return
|
|
234
|
+
return Y(a, s, n.getSerialDate(a, s, Math.min(i, z(a, s))));
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function W(r, t) {
|
|
237
237
|
const e = _(H(r, G)), { year: u, month: o } = n.getDateParts(e), { year: i, month: a } = Q(u, o, K(t));
|
|
238
|
-
return
|
|
238
|
+
return Y(i, a, n.getSerialDate(i, a, z(i, a)));
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Y(t, e, u) {
|
|
241
241
|
if (n.getSerialDate(t, e, 1) < 0) throw r.BuiltIn.Num;
|
|
242
242
|
if (u > n.getSerialDate(9999, 12, 31)) throw r.BuiltIn.Num;
|
|
243
243
|
return u;
|
|
@@ -574,8 +574,8 @@ var yn = c({
|
|
|
574
574
|
DEC2OCT: () => Xn,
|
|
575
575
|
HEX2BIN: () => Hn,
|
|
576
576
|
HEX2DEC: () => kn,
|
|
577
|
-
HEX2OCT: () =>
|
|
578
|
-
OCT2BIN: () =>
|
|
577
|
+
HEX2OCT: () => Wn,
|
|
578
|
+
OCT2BIN: () => Yn,
|
|
579
579
|
OCT2DEC: () => Kn,
|
|
580
580
|
OCT2HEX: () => qn
|
|
581
581
|
});
|
|
@@ -663,13 +663,13 @@ function kn(n) {
|
|
|
663
663
|
const r = parseInt(er(n, jn), 16);
|
|
664
664
|
return r >= 549755813888 ? r - 1099511627776 : r;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function Wn(n, t) {
|
|
667
667
|
t = rr(t);
|
|
668
668
|
const e = kn(er(n, jn));
|
|
669
669
|
if (e > $n || e < Zn) throw r.BuiltIn.Num;
|
|
670
670
|
return Xn(e, t);
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Yn(n, t) {
|
|
673
673
|
t = rr(t);
|
|
674
674
|
const e = er(n, Qn);
|
|
675
675
|
if (void 0 !== t && t > 10) throw r.BuiltIn.Num;
|
|
@@ -2550,30 +2550,30 @@ function Hr(n, r, t) {
|
|
|
2550
2550
|
return i;
|
|
2551
2551
|
}
|
|
2552
2552
|
var kr = c({
|
|
2553
|
-
ERF: () =>
|
|
2553
|
+
ERF: () => Yr,
|
|
2554
2554
|
ERFC: () => qr,
|
|
2555
2555
|
ERFC_PRECISE: () => zr,
|
|
2556
2556
|
ERF_PRECISE: () => Kr
|
|
2557
|
-
}),
|
|
2557
|
+
}), Wr = (t) => {
|
|
2558
2558
|
if (r.isError(t)) throw t;
|
|
2559
2559
|
return null === t ? 0 : n.parseAsNumber(t);
|
|
2560
2560
|
};
|
|
2561
|
-
function
|
|
2561
|
+
function Yr(n, t) {
|
|
2562
2562
|
if (void 0 === n) throw r.BuiltIn.NA;
|
|
2563
|
-
const e =
|
|
2564
|
-
return void 0 === t ? yr(e) : yr(
|
|
2563
|
+
const e = Wr(n);
|
|
2564
|
+
return void 0 === t ? yr(e) : yr(Wr(t)) - yr(e);
|
|
2565
2565
|
}
|
|
2566
2566
|
function Kr(n) {
|
|
2567
2567
|
if (void 0 === n) throw r.BuiltIn.NA;
|
|
2568
|
-
return yr(
|
|
2568
|
+
return yr(Wr(n));
|
|
2569
2569
|
}
|
|
2570
2570
|
function qr(n) {
|
|
2571
2571
|
if (void 0 === n) throw r.BuiltIn.NA;
|
|
2572
|
-
return Or(
|
|
2572
|
+
return Or(Wr(n));
|
|
2573
2573
|
}
|
|
2574
2574
|
function zr(n) {
|
|
2575
2575
|
if (void 0 === n) throw r.BuiltIn.NA;
|
|
2576
|
-
return Or(
|
|
2576
|
+
return Or(Wr(n));
|
|
2577
2577
|
}
|
|
2578
2578
|
var Qr = Math.PI, jr = 2 ** 27, $r = 134217729, Zr = (n, r) => {
|
|
2579
2579
|
const t = n + r, e = t - n;
|
|
@@ -2630,8 +2630,8 @@ var ut = (n) => tt(n) / et(n), ot = c({
|
|
|
2630
2630
|
IMREAL: () => Xt,
|
|
2631
2631
|
IMSEC: () => Ht,
|
|
2632
2632
|
IMSECH: () => kt,
|
|
2633
|
-
IMSIN: () =>
|
|
2634
|
-
IMSINH: () =>
|
|
2633
|
+
IMSIN: () => Wt,
|
|
2634
|
+
IMSINH: () => Yt,
|
|
2635
2635
|
IMSQRT: () => Kt,
|
|
2636
2636
|
IMSUB: () => qt,
|
|
2637
2637
|
IMSUM: () => zt,
|
|
@@ -2863,11 +2863,11 @@ function kt(n) {
|
|
|
2863
2863
|
const { real: r, im: t, unit: e } = ee(n), u = At(Et, Rt(t, It(r, t)));
|
|
2864
2864
|
return it(u.real, u.im, e);
|
|
2865
2865
|
}
|
|
2866
|
-
function
|
|
2866
|
+
function Wt(n) {
|
|
2867
2867
|
const { real: r, im: t, unit: e } = ee(n), u = Tt(Rt(r, Nt(r, t)));
|
|
2868
2868
|
return it(u.real, u.im, e);
|
|
2869
2869
|
}
|
|
2870
|
-
function
|
|
2870
|
+
function Yt(n) {
|
|
2871
2871
|
const { real: r, im: t, unit: e } = ee(n), u = Tt(Rt(t, bt(r, t)));
|
|
2872
2872
|
return it(u.real, u.im, e);
|
|
2873
2873
|
}
|
|
@@ -3186,7 +3186,7 @@ function Ge(r, t, e, u, o) {
|
|
|
3186
3186
|
}(u, n, r)) } : void 0);
|
|
3187
3187
|
}
|
|
3188
3188
|
var Xe = (n, r) => (n ?? 0) + r, He = (n, r) => n, ke = c({
|
|
3189
|
-
AND: () =>
|
|
3189
|
+
AND: () => Ye,
|
|
3190
3190
|
BYCOL: () => Ke,
|
|
3191
3191
|
BYROW: () => qe,
|
|
3192
3192
|
FALSE: () => ze,
|
|
@@ -3207,8 +3207,8 @@ var Xe = (n, r) => (n ?? 0) + r, He = (n, r) => n, ke = c({
|
|
|
3207
3207
|
SWITCH: () => lu,
|
|
3208
3208
|
TRUE: () => cu,
|
|
3209
3209
|
XOR: () => fu
|
|
3210
|
-
}),
|
|
3211
|
-
function
|
|
3210
|
+
}), We = (n) => "number" == typeof n ? f(n) : n;
|
|
3211
|
+
function Ye(n) {
|
|
3212
3212
|
let t = !1, e = !1;
|
|
3213
3213
|
for (const r of n) for (const n of r.values()) t = !0, n || (e = !0);
|
|
3214
3214
|
return t ? !e : r.BuiltIn.Value;
|
|
@@ -3357,10 +3357,10 @@ function su(t, e, u) {
|
|
|
3357
3357
|
return n.createRange(o, i, c);
|
|
3358
3358
|
}
|
|
3359
3359
|
function lu(t, e, u) {
|
|
3360
|
-
const o =
|
|
3360
|
+
const o = We(t ?? 0);
|
|
3361
3361
|
for (const [t, u] of e) {
|
|
3362
3362
|
if (r.isError(t)) return t;
|
|
3363
|
-
if (0 === n.compare(o,
|
|
3363
|
+
if (0 === n.compare(o, We(t ?? 0))) return u ?? 0;
|
|
3364
3364
|
}
|
|
3365
3365
|
return void 0 !== u ? u : r.BuiltIn.NA;
|
|
3366
3366
|
}
|
|
@@ -3404,8 +3404,8 @@ var Nu = Object.freeze({ includeEmpty: !0 }), Iu = Object.freeze({ axis: t.Axis.
|
|
|
3404
3404
|
HYPERLINK: () => Xu,
|
|
3405
3405
|
IMAGE: () => Hu,
|
|
3406
3406
|
INDEX: () => ku,
|
|
3407
|
-
INDIRECT: () =>
|
|
3408
|
-
LOOKUP: () =>
|
|
3407
|
+
INDIRECT: () => Wu,
|
|
3408
|
+
LOOKUP: () => Yu,
|
|
3409
3409
|
MATCH: () => Ku,
|
|
3410
3410
|
OFFSET: () => qu,
|
|
3411
3411
|
ROW: () => zu,
|
|
@@ -3669,10 +3669,10 @@ function ku(t, e, u = void 0, o = 1) {
|
|
|
3669
3669
|
colEnd: p
|
|
3670
3670
|
});
|
|
3671
3671
|
}
|
|
3672
|
-
function
|
|
3672
|
+
function Wu(r, t = !0) {
|
|
3673
3673
|
return n.getReference(r, !t);
|
|
3674
3674
|
}
|
|
3675
|
-
function
|
|
3675
|
+
function Yu(t, e, u) {
|
|
3676
3676
|
if (r.isError(t)) return t;
|
|
3677
3677
|
if (e.length > 1) return r.BuiltIn.NA;
|
|
3678
3678
|
const o = e[0];
|
|
@@ -4234,8 +4234,8 @@ var Oo = (n) => {
|
|
|
4234
4234
|
CEILING_MATH: () => Go,
|
|
4235
4235
|
CEILING_PRECISE: () => Xo,
|
|
4236
4236
|
COMBIN: () => ko,
|
|
4237
|
-
COMBINA: () =>
|
|
4238
|
-
DECIMAL: () =>
|
|
4237
|
+
COMBINA: () => Wo,
|
|
4238
|
+
DECIMAL: () => Yo,
|
|
4239
4239
|
DEGREES: () => Ko,
|
|
4240
4240
|
ECMA_CEILING: () => Ho,
|
|
4241
4241
|
EVEN: () => qo,
|
|
@@ -4282,8 +4282,8 @@ var Oo = (n) => {
|
|
|
4282
4282
|
SUM: () => Xi,
|
|
4283
4283
|
SUMIF: () => Hi,
|
|
4284
4284
|
SUMIFS: () => ki,
|
|
4285
|
-
SUMPRODUCT: () =>
|
|
4286
|
-
SUMSQ: () =>
|
|
4285
|
+
SUMPRODUCT: () => Wi,
|
|
4286
|
+
SUMSQ: () => Yi,
|
|
4287
4287
|
SUMX2MY2: () => Ki,
|
|
4288
4288
|
SUMX2PY2: () => qi,
|
|
4289
4289
|
SUMXMY2: () => zi,
|
|
@@ -4424,14 +4424,14 @@ function ko(n, r) {
|
|
|
4424
4424
|
const t = Math.trunc(n), e = Math.trunc(r);
|
|
4425
4425
|
return t > 2147483646 || t < e ? NaN : Do(t, e);
|
|
4426
4426
|
}
|
|
4427
|
-
function
|
|
4427
|
+
function Wo(n, r) {
|
|
4428
4428
|
const t = Math.trunc(n), e = Math.trunc(r);
|
|
4429
4429
|
if (0 === e && (0 === t || 1 === t)) return 1;
|
|
4430
4430
|
if (n < 0 || r < 0) return NaN;
|
|
4431
4431
|
const u = t + e - 1;
|
|
4432
4432
|
return u > 2147483646 || u < e ? NaN : Do(u, e);
|
|
4433
4433
|
}
|
|
4434
|
-
function
|
|
4434
|
+
function Yo(n, t) {
|
|
4435
4435
|
const e = Math.trunc(t);
|
|
4436
4436
|
if (e < 2 || e > 36) return NaN;
|
|
4437
4437
|
if (n.length > ea) throw r.BuiltIn.Value;
|
|
@@ -4491,11 +4491,11 @@ function Jo(n, r = 1) {
|
|
|
4491
4491
|
function ni(n) {
|
|
4492
4492
|
ia(n);
|
|
4493
4493
|
let r, t = n[0];
|
|
4494
|
-
if (t < 0 || t >
|
|
4494
|
+
if (t < 0 || t > fa) return NaN;
|
|
4495
4495
|
t = Math.abs(Math.trunc(t));
|
|
4496
4496
|
const e = n.length;
|
|
4497
4497
|
for (let u = 1; u < e; u++) {
|
|
4498
|
-
if (r = n[u], r < 0 || r >
|
|
4498
|
+
if (r = n[u], r < 0 || r > fa) return NaN;
|
|
4499
4499
|
for (r = Math.abs(Math.trunc(r)); t && r;) t > r ? t %= r : r %= t;
|
|
4500
4500
|
t += r;
|
|
4501
4501
|
}
|
|
@@ -4511,15 +4511,15 @@ function ti(n, r = 1) {
|
|
|
4511
4511
|
function ei(n) {
|
|
4512
4512
|
ia(n);
|
|
4513
4513
|
let r, t, e, u = n[0];
|
|
4514
|
-
if (u < 0 || u >
|
|
4514
|
+
if (u < 0 || u > fa) return NaN;
|
|
4515
4515
|
u = Math.abs(Math.trunc(u));
|
|
4516
4516
|
const o = n.length;
|
|
4517
4517
|
for (let i = 1; i < o; i++) {
|
|
4518
4518
|
const o = n[i];
|
|
4519
|
-
if (o < 0 || o >
|
|
4519
|
+
if (o < 0 || o > fa) return NaN;
|
|
4520
4520
|
if (r = Math.abs(Math.trunc(o)), 0 !== u && 0 !== r) {
|
|
4521
4521
|
for (t = u, e = r; t && e;) t > e ? t %= e : e %= t;
|
|
4522
|
-
if (u = u / (t + e) * r, u >
|
|
4522
|
+
if (u = u / (t + e) * r, u > fa) return NaN;
|
|
4523
4523
|
} else u = 0;
|
|
4524
4524
|
}
|
|
4525
4525
|
return u;
|
|
@@ -4793,7 +4793,7 @@ function Li(t, e, u, o) {
|
|
|
4793
4793
|
return (null === r ? 0 : n.parseAsNumber(r)) * Fi(i, a);
|
|
4794
4794
|
}
|
|
4795
4795
|
let g = 0, h = 0;
|
|
4796
|
-
for (const n of o.values(
|
|
4796
|
+
for (const n of o.values(ca)) if (null !== n) {
|
|
4797
4797
|
if (r.isError(n)) throw n;
|
|
4798
4798
|
if ("number" != typeof n) throw r.BuiltIn.Value;
|
|
4799
4799
|
g += n * Fi(i, a + h * s), h++;
|
|
@@ -4819,41 +4819,41 @@ function _i(n) {
|
|
|
4819
4819
|
return r < 0 ? NaN : Math.sqrt(r * Math.PI);
|
|
4820
4820
|
}
|
|
4821
4821
|
function Gi(e, u) {
|
|
4822
|
-
const o = Math.trunc(e), i = o >= 101, a = i ? o - 100 : o;
|
|
4823
|
-
let
|
|
4822
|
+
const o = Math.trunc(e), i = o >= 101, a = i ? o - 100 : o, s = i ? void 0 : la;
|
|
4823
|
+
let l = u.map((r) => n.filterHidden(r, s)).map((r) => n.filterTotals(r));
|
|
4824
4824
|
if (2 !== a && 3 !== a) {
|
|
4825
|
-
for (const n of
|
|
4825
|
+
for (const n of l) if (n.hasError()) return n.firstError();
|
|
4826
4826
|
}
|
|
4827
|
-
const
|
|
4827
|
+
const c = l.reduce((n, r) => n.concat(r, t.Axis.Row, null)), f = c.getStats().getAggregates();
|
|
4828
4828
|
switch (a) {
|
|
4829
4829
|
case 1: {
|
|
4830
|
-
const n =
|
|
4830
|
+
const n = f.numericalCount ?? 0;
|
|
4831
4831
|
if (0 === n) throw r.BuiltIn.Div0;
|
|
4832
|
-
return
|
|
4832
|
+
return c.getStats().getSnappedSum() / n;
|
|
4833
4833
|
}
|
|
4834
|
-
case 2: return
|
|
4835
|
-
case 3: return
|
|
4836
|
-
case 4: return
|
|
4837
|
-
case 5: return
|
|
4834
|
+
case 2: return f.numericalCount ?? 0;
|
|
4835
|
+
case 3: return c.getStats().getCount();
|
|
4836
|
+
case 4: return f.max ?? 0;
|
|
4837
|
+
case 5: return f.min ?? 0;
|
|
4838
4838
|
case 6: {
|
|
4839
4839
|
let n = 1, r = !1;
|
|
4840
|
-
return
|
|
4840
|
+
return c.forEach((t) => {
|
|
4841
4841
|
"number" == typeof t && (n *= t, r = !0);
|
|
4842
4842
|
}), r ? n : 0;
|
|
4843
4843
|
}
|
|
4844
4844
|
case 7:
|
|
4845
|
-
if ((
|
|
4846
|
-
return
|
|
4845
|
+
if ((f.numericalCount ?? 0) < 2) throw r.BuiltIn.Div0;
|
|
4846
|
+
return f.stdDev;
|
|
4847
4847
|
case 8:
|
|
4848
|
-
if ((
|
|
4849
|
-
return
|
|
4850
|
-
case 9: return
|
|
4848
|
+
if ((f.numericalCount ?? 0) < 1) throw r.BuiltIn.Div0;
|
|
4849
|
+
return f.stdDevP;
|
|
4850
|
+
case 9: return c.getStats().getSnappedSum();
|
|
4851
4851
|
case 10:
|
|
4852
|
-
if ((
|
|
4853
|
-
return
|
|
4852
|
+
if ((f.numericalCount ?? 0) < 2) throw r.BuiltIn.Div0;
|
|
4853
|
+
return f.var;
|
|
4854
4854
|
case 11:
|
|
4855
|
-
if ((
|
|
4856
|
-
return
|
|
4855
|
+
if ((f.numericalCount ?? 0) < 1) throw r.BuiltIn.Div0;
|
|
4856
|
+
return f.varP;
|
|
4857
4857
|
default: return r.BuiltIn.Value;
|
|
4858
4858
|
}
|
|
4859
4859
|
}
|
|
@@ -4871,7 +4871,7 @@ function Hi(n, r, t) {
|
|
|
4871
4871
|
function ki(r, t) {
|
|
4872
4872
|
return Bo(n, t, yo((n, r) => "number" != typeof r ? n : null === n ? r : n + r), r, 0, He);
|
|
4873
4873
|
}
|
|
4874
|
-
function
|
|
4874
|
+
function Wi(t) {
|
|
4875
4875
|
const e = n.getArgs().getRepeatingArgsAt(0);
|
|
4876
4876
|
for (let n = 0, t = e.getLength(); n < t; n++) {
|
|
4877
4877
|
const t = e.getRawAt(n);
|
|
@@ -4894,7 +4894,7 @@ function Yi(t) {
|
|
|
4894
4894
|
}
|
|
4895
4895
|
return oa(u, o, ua);
|
|
4896
4896
|
}
|
|
4897
|
-
function
|
|
4897
|
+
function Yi(n) {
|
|
4898
4898
|
let r = 0;
|
|
4899
4899
|
for (const t of n) for (const n of t.values()) r += f(n ** 2);
|
|
4900
4900
|
return r;
|
|
@@ -4961,223 +4961,223 @@ var ji = (n) => Math.trunc(n), $i = 2147483646, Zi = (n) => {
|
|
|
4961
4961
|
const u = n.getRowCount(), o = n.getColumnCount();
|
|
4962
4962
|
if (u * o !== t.getRowCount() * t.getColumnCount()) throw r.BuiltIn.NA;
|
|
4963
4963
|
u === t.getRowCount() && o === t.getColumnCount() || (t = t.reshape(u, o));
|
|
4964
|
-
for (const t of n.values(
|
|
4965
|
-
for (const n of t.values(
|
|
4964
|
+
for (const t of n.values(ca)) if (r.isError(t)) throw t;
|
|
4965
|
+
for (const n of t.values(ca)) if (r.isError(n)) throw n;
|
|
4966
4966
|
let i = 0;
|
|
4967
4967
|
const a = n.alignReduce([t], (n, r) => "number" != typeof r[0] || "number" != typeof r[1] ? n : (i++, n + e(r[0], r[1])), 0);
|
|
4968
4968
|
if (0 === i) throw r.BuiltIn.Div0;
|
|
4969
4969
|
return a;
|
|
4970
|
-
}, la = { axis: t.Axis.Row },
|
|
4971
|
-
ACOS: () =>
|
|
4972
|
-
ACOSH: () =>
|
|
4973
|
-
ACOT: () =>
|
|
4974
|
-
ACOTH: () =>
|
|
4975
|
-
ASIN: () =>
|
|
4976
|
-
ASINH: () =>
|
|
4977
|
-
ATAN: () =>
|
|
4978
|
-
ATAN2: () =>
|
|
4979
|
-
ATANH: () =>
|
|
4980
|
-
COS: () =>
|
|
4981
|
-
COSH: () =>
|
|
4982
|
-
COT: () =>
|
|
4983
|
-
COTH: () =>
|
|
4984
|
-
CSC: () =>
|
|
4985
|
-
CSCH: () =>
|
|
4986
|
-
SEC: () =>
|
|
4987
|
-
SECH: () =>
|
|
4988
|
-
SIN: () =>
|
|
4989
|
-
SINH: () =>
|
|
4990
|
-
TAN: () =>
|
|
4991
|
-
TANH: () =>
|
|
4970
|
+
}, la = { onlyWhileFiltered: !0 }, ca = { axis: t.Axis.Row }, fa = 9007199254740992, ma = c({
|
|
4971
|
+
ACOS: () => ga,
|
|
4972
|
+
ACOSH: () => ha,
|
|
4973
|
+
ACOT: () => pa,
|
|
4974
|
+
ACOTH: () => Na,
|
|
4975
|
+
ASIN: () => Ia,
|
|
4976
|
+
ASINH: () => ba,
|
|
4977
|
+
ATAN: () => Ea,
|
|
4978
|
+
ATAN2: () => Aa,
|
|
4979
|
+
ATANH: () => da,
|
|
4980
|
+
COS: () => Ma,
|
|
4981
|
+
COSH: () => Sa,
|
|
4982
|
+
COT: () => Ra,
|
|
4983
|
+
COTH: () => Ta,
|
|
4984
|
+
CSC: () => Ca,
|
|
4985
|
+
CSCH: () => wa,
|
|
4986
|
+
SEC: () => va,
|
|
4987
|
+
SECH: () => Ba,
|
|
4988
|
+
SIN: () => ya,
|
|
4989
|
+
SINH: () => Oa,
|
|
4990
|
+
TAN: () => Da,
|
|
4991
|
+
TANH: () => xa
|
|
4992
4992
|
});
|
|
4993
|
-
function
|
|
4993
|
+
function ga(n) {
|
|
4994
4994
|
return n > 1 || n < -1 ? NaN : Math.PI / 2 - Math.asin(n);
|
|
4995
4995
|
}
|
|
4996
|
-
function
|
|
4996
|
+
function ha(n) {
|
|
4997
4997
|
return n < 1 ? NaN : Math.log(n + Math.sqrt(n * n - 1));
|
|
4998
4998
|
}
|
|
4999
|
-
function
|
|
4999
|
+
function pa(n) {
|
|
5000
5000
|
const r = Math.atan(f(1 / n));
|
|
5001
5001
|
return n < 0 ? Math.PI + r : r;
|
|
5002
5002
|
}
|
|
5003
|
-
function
|
|
5003
|
+
function Na(n) {
|
|
5004
5004
|
return Math.abs(n) <= 1 ? NaN : Math.abs(n) <= 2 ? Math.log((n + 1) / (n - 1)) / 2 : m(f(1 / n));
|
|
5005
5005
|
}
|
|
5006
|
-
function
|
|
5006
|
+
function Ia(n) {
|
|
5007
5007
|
return n > 1 || n < -1 ? NaN : Math.asin(n);
|
|
5008
5008
|
}
|
|
5009
|
-
function
|
|
5009
|
+
function ba(n) {
|
|
5010
5010
|
const r = Math.abs(n), t = Math.log(r + Math.sqrt(r * r + 1));
|
|
5011
5011
|
return n < 0 ? -t : t;
|
|
5012
5012
|
}
|
|
5013
|
-
function
|
|
5013
|
+
function Ea(n) {
|
|
5014
5014
|
return Math.atan(n);
|
|
5015
5015
|
}
|
|
5016
|
-
function
|
|
5016
|
+
function Aa(n, t) {
|
|
5017
5017
|
if (0 === t && 0 === n) throw r.BuiltIn.Div0;
|
|
5018
5018
|
const e = t / n;
|
|
5019
5019
|
if (0 !== n && !Number.isFinite(e)) return NaN;
|
|
5020
5020
|
const u = Math.atan(e);
|
|
5021
5021
|
return n >= 0 ? u : t >= 0 ? u + Math.PI : u - Math.PI;
|
|
5022
5022
|
}
|
|
5023
|
-
function
|
|
5023
|
+
function da(n) {
|
|
5024
5024
|
return Math.abs(n) >= 1 ? NaN : m(n);
|
|
5025
5025
|
}
|
|
5026
|
-
function
|
|
5026
|
+
function Ma(n) {
|
|
5027
5027
|
return Math.abs(n) >= jr ? NaN : et(n);
|
|
5028
5028
|
}
|
|
5029
|
-
function
|
|
5029
|
+
function Sa(n) {
|
|
5030
5030
|
return Number.isFinite(Math.exp(Math.abs(n))) ? Math.cosh(n) : NaN;
|
|
5031
5031
|
}
|
|
5032
|
-
function
|
|
5032
|
+
function Ra(n) {
|
|
5033
5033
|
if (Math.abs(n) >= jr) return NaN;
|
|
5034
5034
|
if (0 === n) throw r.BuiltIn.Div0;
|
|
5035
5035
|
return 1 / ut(n);
|
|
5036
5036
|
}
|
|
5037
|
-
function
|
|
5037
|
+
function Ta(n) {
|
|
5038
5038
|
if (0 === n) throw r.BuiltIn.Div0;
|
|
5039
5039
|
return f(1 / Math.tanh(n));
|
|
5040
5040
|
}
|
|
5041
|
-
function
|
|
5041
|
+
function Ca(n) {
|
|
5042
5042
|
if (Math.abs(n) >= jr) return NaN;
|
|
5043
5043
|
if (0 === n) throw r.BuiltIn.Div0;
|
|
5044
5044
|
return 1 / tt(n);
|
|
5045
5045
|
}
|
|
5046
|
-
function
|
|
5046
|
+
function wa(n) {
|
|
5047
5047
|
if (0 === n) throw r.BuiltIn.Div0;
|
|
5048
5048
|
return f(1 / Math.sinh(n));
|
|
5049
5049
|
}
|
|
5050
|
-
function
|
|
5050
|
+
function va(n) {
|
|
5051
5051
|
return Math.abs(n) >= jr ? NaN : 1 / et(n);
|
|
5052
5052
|
}
|
|
5053
|
-
function
|
|
5053
|
+
function Ba(n) {
|
|
5054
5054
|
return f(1 / Math.cosh(n));
|
|
5055
5055
|
}
|
|
5056
|
-
function
|
|
5056
|
+
function ya(n) {
|
|
5057
5057
|
return Math.abs(n) >= jr ? NaN : tt(n);
|
|
5058
5058
|
}
|
|
5059
|
-
function
|
|
5059
|
+
function Oa(n) {
|
|
5060
5060
|
return Number.isFinite(Math.exp(Math.abs(n))) ? Math.sinh(n) : NaN;
|
|
5061
5061
|
}
|
|
5062
|
-
function
|
|
5062
|
+
function Da(n) {
|
|
5063
5063
|
return Math.abs(n) >= jr ? NaN : ut(n);
|
|
5064
5064
|
}
|
|
5065
|
-
function
|
|
5065
|
+
function xa(n) {
|
|
5066
5066
|
return Math.tanh(n);
|
|
5067
5067
|
}
|
|
5068
|
-
var
|
|
5069
|
-
ADD: () =>
|
|
5070
|
-
DIVIDE: () =>
|
|
5071
|
-
EQ: () =>
|
|
5072
|
-
GT: () =>
|
|
5073
|
-
GTE: () =>
|
|
5074
|
-
ISBETWEEN: () =>
|
|
5075
|
-
LT: () =>
|
|
5076
|
-
LTE: () =>
|
|
5077
|
-
MINUS: () =>
|
|
5078
|
-
MULTIPLY: () =>
|
|
5068
|
+
var Va = c({
|
|
5069
|
+
ADD: () => Fa,
|
|
5070
|
+
DIVIDE: () => Pa,
|
|
5071
|
+
EQ: () => Ua,
|
|
5072
|
+
GT: () => _a,
|
|
5073
|
+
GTE: () => Ga,
|
|
5074
|
+
ISBETWEEN: () => ja,
|
|
5075
|
+
LT: () => Xa,
|
|
5076
|
+
LTE: () => Ha,
|
|
5077
|
+
MINUS: () => ka,
|
|
5078
|
+
MULTIPLY: () => Wa,
|
|
5079
5079
|
NE: () => Ya,
|
|
5080
|
-
POW: () =>
|
|
5081
|
-
UMINUS: () =>
|
|
5082
|
-
UNARY_PERCENT: () =>
|
|
5083
|
-
UPLUS: () =>
|
|
5084
|
-
}),
|
|
5085
|
-
function
|
|
5080
|
+
POW: () => Ka,
|
|
5081
|
+
UMINUS: () => qa,
|
|
5082
|
+
UNARY_PERCENT: () => za,
|
|
5083
|
+
UPLUS: () => Qa
|
|
5084
|
+
}), La = (n) => n > -22250738585072014e-324 && n < 22250738585072014e-324 ? 0 : n;
|
|
5085
|
+
function Fa(n, r) {
|
|
5086
5086
|
return n + r;
|
|
5087
5087
|
}
|
|
5088
|
-
function
|
|
5089
|
-
if (0 ===
|
|
5090
|
-
return
|
|
5088
|
+
function Pa(n, t) {
|
|
5089
|
+
if (0 === La(t)) throw r.BuiltIn.Div0;
|
|
5090
|
+
return La(n / t);
|
|
5091
5091
|
}
|
|
5092
|
-
function
|
|
5092
|
+
function Ua(r, t) {
|
|
5093
5093
|
return 0 === n.compare(r, t);
|
|
5094
5094
|
}
|
|
5095
|
-
function
|
|
5095
|
+
function _a(r, t) {
|
|
5096
5096
|
return n.compare(r, t) > 0;
|
|
5097
5097
|
}
|
|
5098
|
-
function
|
|
5098
|
+
function Ga(r, t) {
|
|
5099
5099
|
return n.compare(r, t) >= 0;
|
|
5100
5100
|
}
|
|
5101
|
-
function
|
|
5101
|
+
function Xa(r, t) {
|
|
5102
5102
|
return n.compare(r, t) < 0;
|
|
5103
5103
|
}
|
|
5104
|
-
function
|
|
5104
|
+
function Ha(r, t) {
|
|
5105
5105
|
return n.compare(r, t) <= 0;
|
|
5106
5106
|
}
|
|
5107
|
-
function
|
|
5107
|
+
function ka(n, r) {
|
|
5108
5108
|
return n - r;
|
|
5109
5109
|
}
|
|
5110
|
-
function
|
|
5111
|
-
return
|
|
5110
|
+
function Wa(n, r) {
|
|
5111
|
+
return La(n * r);
|
|
5112
5112
|
}
|
|
5113
5113
|
function Ya(r, t) {
|
|
5114
5114
|
return 0 !== n.compare(r, t);
|
|
5115
5115
|
}
|
|
5116
|
-
function
|
|
5116
|
+
function Ka(n, t) {
|
|
5117
5117
|
if (0 === n) {
|
|
5118
5118
|
if (t < 0) throw r.BuiltIn.Div0;
|
|
5119
5119
|
if (0 === t) return NaN;
|
|
5120
5120
|
}
|
|
5121
5121
|
if (n < 0) {
|
|
5122
|
-
if (Number.isInteger(t) && Math.abs(t) <= 4294967294) return
|
|
5122
|
+
if (Number.isInteger(t) && Math.abs(t) <= 4294967294) return La(n ** t);
|
|
5123
5123
|
const r = Number((1 / t).toPrecision(15));
|
|
5124
|
-
return Number.isInteger(r) && 1 === Math.abs(r % 2) ?
|
|
5124
|
+
return Number.isInteger(r) && 1 === Math.abs(r % 2) ? La(-((-n) ** t)) : NaN;
|
|
5125
5125
|
}
|
|
5126
|
-
return
|
|
5127
|
-
}
|
|
5128
|
-
function Ka(n) {
|
|
5129
|
-
return -1 * n;
|
|
5126
|
+
return La(n ** t);
|
|
5130
5127
|
}
|
|
5131
5128
|
function qa(n) {
|
|
5132
|
-
return
|
|
5129
|
+
return -1 * n;
|
|
5133
5130
|
}
|
|
5134
5131
|
function za(n) {
|
|
5132
|
+
return Pa(n, 100);
|
|
5133
|
+
}
|
|
5134
|
+
function Qa(n) {
|
|
5135
5135
|
return n;
|
|
5136
5136
|
}
|
|
5137
|
-
function
|
|
5137
|
+
function ja(n, r, t, e = !0, u = !0) {
|
|
5138
5138
|
return (e ? n >= r : n > r) && (u ? n <= t : n < t);
|
|
5139
5139
|
}
|
|
5140
|
-
var
|
|
5141
|
-
const a =
|
|
5140
|
+
var $a = (n) => !!n.isIReferenceRange, Za = (n) => Object.freeze({ coerce: (t, e, o, i) => {
|
|
5141
|
+
const a = $a(i);
|
|
5142
5142
|
if (e === u.String) return a ? 0 : n;
|
|
5143
5143
|
if (e === u.Boolean) return a ? t ? 1 : 0 : null;
|
|
5144
5144
|
if (r.isError(t)) throw t;
|
|
5145
5145
|
return null;
|
|
5146
|
-
} }),
|
|
5146
|
+
} }), Ja = Za(null), ns = Za(0), rs = (n, t) => {
|
|
5147
5147
|
if ("number" == typeof n) return n;
|
|
5148
5148
|
if ("boolean" == typeof n) return t ? n ? 1 : 0 : null;
|
|
5149
5149
|
if ("string" == typeof n) return t ? 0 : null;
|
|
5150
5150
|
if (r.isError(n)) throw n;
|
|
5151
5151
|
return null;
|
|
5152
|
-
},
|
|
5153
|
-
AVEDEV: () =>
|
|
5154
|
-
AVERAGE: () =>
|
|
5155
|
-
AVERAGEA: () =>
|
|
5156
|
-
AVERAGEIF: () =>
|
|
5157
|
-
AVERAGEIFS: () =>
|
|
5158
|
-
AVERAGE_WEIGHTED: () =>
|
|
5159
|
-
COUNT: () =>
|
|
5160
|
-
COUNTA: () =>
|
|
5161
|
-
COUNTBLANK: () =>
|
|
5162
|
-
COUNTIF: () =>
|
|
5163
|
-
COUNTIFS: () =>
|
|
5164
|
-
COUNTUNIQUE: () =>
|
|
5165
|
-
COUNTUNIQUEIFS: () =>
|
|
5166
|
-
LARGE: () =>
|
|
5167
|
-
MAX: () =>
|
|
5168
|
-
MAXA: () =>
|
|
5169
|
-
MAXIF: () =>
|
|
5170
|
-
MAXIFS: () =>
|
|
5171
|
-
MEDIAN: () =>
|
|
5172
|
-
MIN: () =>
|
|
5173
|
-
MINA: () =>
|
|
5174
|
-
MINIF: () =>
|
|
5175
|
-
MINIFS: () =>
|
|
5176
|
-
PERMUT: () =>
|
|
5177
|
-
PERMUTATIONA: () =>
|
|
5178
|
-
SMALL: () =>
|
|
5152
|
+
}, ts = c({
|
|
5153
|
+
AVEDEV: () => es,
|
|
5154
|
+
AVERAGE: () => us,
|
|
5155
|
+
AVERAGEA: () => os,
|
|
5156
|
+
AVERAGEIF: () => is,
|
|
5157
|
+
AVERAGEIFS: () => as,
|
|
5158
|
+
AVERAGE_WEIGHTED: () => ss,
|
|
5159
|
+
COUNT: () => ls,
|
|
5160
|
+
COUNTA: () => cs,
|
|
5161
|
+
COUNTBLANK: () => fs,
|
|
5162
|
+
COUNTIF: () => ms,
|
|
5163
|
+
COUNTIFS: () => gs,
|
|
5164
|
+
COUNTUNIQUE: () => hs,
|
|
5165
|
+
COUNTUNIQUEIFS: () => ps,
|
|
5166
|
+
LARGE: () => Ns,
|
|
5167
|
+
MAX: () => Is,
|
|
5168
|
+
MAXA: () => bs,
|
|
5169
|
+
MAXIF: () => Es,
|
|
5170
|
+
MAXIFS: () => As,
|
|
5171
|
+
MEDIAN: () => ds,
|
|
5172
|
+
MIN: () => Ms,
|
|
5173
|
+
MINA: () => Ss,
|
|
5174
|
+
MINIF: () => Rs,
|
|
5175
|
+
MINIFS: () => Ts,
|
|
5176
|
+
PERMUT: () => Cs,
|
|
5177
|
+
PERMUTATIONA: () => ws,
|
|
5178
|
+
SMALL: () => vs
|
|
5179
5179
|
});
|
|
5180
|
-
function
|
|
5180
|
+
function es(n) {
|
|
5181
5181
|
let t = 0;
|
|
5182
5182
|
const e = [];
|
|
5183
5183
|
for (const r of n) for (const n of r.values()) t += n, e.push(n);
|
|
@@ -5188,21 +5188,21 @@ function ts(n) {
|
|
|
5188
5188
|
for (let n = 0; n < u; n++) t += Math.abs(e[n] - o);
|
|
5189
5189
|
return t / u;
|
|
5190
5190
|
}
|
|
5191
|
-
function es(n) {
|
|
5192
|
-
return ys(n);
|
|
5193
|
-
}
|
|
5194
5191
|
function us(n) {
|
|
5195
|
-
return
|
|
5192
|
+
return Os(n);
|
|
5196
5193
|
}
|
|
5197
|
-
function os(n
|
|
5194
|
+
function os(n) {
|
|
5195
|
+
return Os(n, ns);
|
|
5196
|
+
}
|
|
5197
|
+
function is(n, t, e) {
|
|
5198
5198
|
const u = Ge(n, t, e, (n, r) => "number" != typeof r ? n : n + 1, He), o = Ge(n, t, e, yo((n, r) => (null === n && (n = 0), "number" != typeof r ? n : n + r)), He);
|
|
5199
5199
|
return r.isError(o) ? o : u ? o / u : r.BuiltIn.Div0;
|
|
5200
5200
|
}
|
|
5201
|
-
function
|
|
5201
|
+
function as(t, e) {
|
|
5202
5202
|
const u = Bo(n, e, yo((n, r) => "number" != typeof r ? n : null === n ? r : n + r), t, null, He), o = Bo(n, e, (n, r) => "number" != typeof r ? n : null === n ? 1 : n + 1, t, 0, He);
|
|
5203
5203
|
return r.isError(u) ? u : 0 === o || null === o ? r.BuiltIn.Div0 : u / o;
|
|
5204
5204
|
}
|
|
5205
|
-
function
|
|
5205
|
+
function ss(n) {
|
|
5206
5206
|
let t = 0, e = 0;
|
|
5207
5207
|
const u = n.length;
|
|
5208
5208
|
for (let o = 0; o < u; o++) {
|
|
@@ -5218,12 +5218,12 @@ function as(n) {
|
|
|
5218
5218
|
if (0 === e) throw r.BuiltIn.Div0;
|
|
5219
5219
|
return t / e;
|
|
5220
5220
|
}
|
|
5221
|
-
function
|
|
5221
|
+
function ls(n) {
|
|
5222
5222
|
let t = 0;
|
|
5223
5223
|
for (const e of n) r.isError(e) || (t += e.getStats().getAggregates().numericalCount ?? 0);
|
|
5224
5224
|
return t;
|
|
5225
5225
|
}
|
|
5226
|
-
function
|
|
5226
|
+
function cs(t) {
|
|
5227
5227
|
const e = n.getArgs().getRepeatingArgsAt(0);
|
|
5228
5228
|
let u = 0;
|
|
5229
5229
|
for (let n = 0; n < t.length; n++) {
|
|
@@ -5236,28 +5236,28 @@ function ls(t) {
|
|
|
5236
5236
|
}
|
|
5237
5237
|
return u;
|
|
5238
5238
|
}
|
|
5239
|
-
function
|
|
5239
|
+
function fs(t) {
|
|
5240
5240
|
if (n.getArgs().getAreaCountAt(0) > 1) return r.BuiltIn.Value;
|
|
5241
5241
|
let e = 0;
|
|
5242
5242
|
for (const { value: n } of t.entries({ includeEmpty: !1 })) "" !== n && e++;
|
|
5243
5243
|
return t.getColumnCount() * t.getRowCount() - e;
|
|
5244
5244
|
}
|
|
5245
|
-
function
|
|
5245
|
+
function ms(n, r) {
|
|
5246
5246
|
return Ge(n, r, void 0, (n) => null === n ? 1 : n + 1, Xe);
|
|
5247
5247
|
}
|
|
5248
|
-
function
|
|
5248
|
+
function gs(r) {
|
|
5249
5249
|
return Bo(n, r, (n) => null === n ? 1 : n + 1, void 0, 0, Xe);
|
|
5250
5250
|
}
|
|
5251
|
-
function
|
|
5251
|
+
function hs(n) {
|
|
5252
5252
|
const t = /* @__PURE__ */ new Set(), e = n.length;
|
|
5253
5253
|
for (let u = 0; u < e; u++) {
|
|
5254
5254
|
const e = n[u];
|
|
5255
|
-
if (r.isError(e)) t.add(
|
|
5256
|
-
else for (const n of e.values()) t.add(
|
|
5255
|
+
if (r.isError(e)) t.add(Bs(e));
|
|
5256
|
+
else for (const n of e.values()) t.add(Bs(n));
|
|
5257
5257
|
}
|
|
5258
5258
|
return t.size;
|
|
5259
5259
|
}
|
|
5260
|
-
function
|
|
5260
|
+
function ps(t, e) {
|
|
5261
5261
|
const u = t.getRowCount(), o = t.getColumnCount(), i = e.length, a = new Array(i), s = new Array(i);
|
|
5262
5262
|
for (let t = 0; t < i; t++) {
|
|
5263
5263
|
const i = e[t][0];
|
|
@@ -5269,26 +5269,26 @@ function hs(t, e) {
|
|
|
5269
5269
|
const t = r[0];
|
|
5270
5270
|
if (null === t) return n;
|
|
5271
5271
|
for (let t = 0; t < i; t++) if (!s[t](r[t + 1])) return n;
|
|
5272
|
-
return l.add(
|
|
5272
|
+
return l.add(Bs(t)), n;
|
|
5273
5273
|
}, null), l.size;
|
|
5274
5274
|
}
|
|
5275
|
-
function
|
|
5275
|
+
function Ns(r, t) {
|
|
5276
5276
|
const e = n.flattenAreas(r).getStats().getSortedNumbers().getLarge(t);
|
|
5277
5277
|
return null === e ? NaN : e;
|
|
5278
5278
|
}
|
|
5279
|
-
function Ns(n) {
|
|
5280
|
-
return Bs(n, !0);
|
|
5281
|
-
}
|
|
5282
5279
|
function Is(n) {
|
|
5283
|
-
return
|
|
5280
|
+
return ys(n, !0);
|
|
5281
|
+
}
|
|
5282
|
+
function bs(n) {
|
|
5283
|
+
return ys(n, !0, Ja);
|
|
5284
5284
|
}
|
|
5285
|
-
function
|
|
5285
|
+
function Es(n, r, t) {
|
|
5286
5286
|
return Ge(n, r, t, yo((n, r) => "number" != typeof r ? n ?? 0 : null === n ? r : Math.max(n, r)), He);
|
|
5287
5287
|
}
|
|
5288
|
-
function
|
|
5288
|
+
function As(r, t) {
|
|
5289
5289
|
return Bo(n, t, yo((n, r) => "number" != typeof r ? n : null === n ? r : Math.max(n, r)), r, 0, He);
|
|
5290
5290
|
}
|
|
5291
|
-
function
|
|
5291
|
+
function ds(n) {
|
|
5292
5292
|
const r = [];
|
|
5293
5293
|
for (const t of n) for (const n of t.values()) r.push(n);
|
|
5294
5294
|
if (0 === r.length) return NaN;
|
|
@@ -5300,37 +5300,37 @@ function As(n) {
|
|
|
5300
5300
|
}
|
|
5301
5301
|
return r[Math.floor(t / 2)];
|
|
5302
5302
|
}
|
|
5303
|
-
function ds(n) {
|
|
5304
|
-
return Bs(n, !1);
|
|
5305
|
-
}
|
|
5306
5303
|
function Ms(n) {
|
|
5307
|
-
return
|
|
5304
|
+
return ys(n, !1);
|
|
5305
|
+
}
|
|
5306
|
+
function Ss(n) {
|
|
5307
|
+
return ys(n, !1, Ja);
|
|
5308
5308
|
}
|
|
5309
|
-
function
|
|
5309
|
+
function Rs(n, r, t) {
|
|
5310
5310
|
return Ge(n, r, t, yo((n, r) => "number" != typeof r ? n ?? 0 : null === n ? r : Math.min(n, r)), He);
|
|
5311
5311
|
}
|
|
5312
|
-
function
|
|
5312
|
+
function Ts(r, t) {
|
|
5313
5313
|
return Bo(n, t, yo((n, r) => "number" != typeof r ? n : null === n ? r : Math.min(n, r)), r, 0, He);
|
|
5314
5314
|
}
|
|
5315
|
-
function
|
|
5315
|
+
function Cs(n, r) {
|
|
5316
5316
|
if (n = Math.trunc(n), r = Math.trunc(r), n < 0 || r < 0 || r > n) return NaN;
|
|
5317
5317
|
if (n > 2147483646) return NaN;
|
|
5318
5318
|
let t = 1;
|
|
5319
5319
|
for (let e = n; e > n - r; e--) if (t *= e, !Number.isFinite(t)) return NaN;
|
|
5320
5320
|
return t;
|
|
5321
5321
|
}
|
|
5322
|
-
function
|
|
5322
|
+
function ws(n, r) {
|
|
5323
5323
|
return n = Math.trunc(n), r = Math.trunc(r), n < 0 || r < 0 || n > 2147483646 || r > 2147483646 ? NaN : Math.pow(n, r);
|
|
5324
5324
|
}
|
|
5325
|
-
function
|
|
5325
|
+
function vs(r, t) {
|
|
5326
5326
|
const e = (r = n.flattenAreas(r)).getStats().getSortedNumbers().getSmall(t);
|
|
5327
5327
|
return null === e ? NaN : e;
|
|
5328
5328
|
}
|
|
5329
|
-
var
|
|
5329
|
+
var Bs = (n) => {
|
|
5330
5330
|
if (null === n) return "\0";
|
|
5331
5331
|
const t = typeof n;
|
|
5332
5332
|
return "number" === t ? "" + n.toString() : "string" === t ? "" + n : "boolean" === t ? "" + (n ? "1" : "0") : r.isError(n) ? "" + n.getCode() : "" + String(n);
|
|
5333
|
-
},
|
|
5333
|
+
}, ys = (n, r, t) => {
|
|
5334
5334
|
let e = 0, u = !1;
|
|
5335
5335
|
for (const o of n) {
|
|
5336
5336
|
const n = o.getStats(t).getAggregates();
|
|
@@ -5339,7 +5339,7 @@ var vs = (n) => {
|
|
|
5339
5339
|
e = u ? r ? Math.max(e, i) : Math.min(e, i) : i, u = !0;
|
|
5340
5340
|
}
|
|
5341
5341
|
return u ? e : 0;
|
|
5342
|
-
},
|
|
5342
|
+
}, Os = (n, t) => {
|
|
5343
5343
|
let e = 0, u = 0, o = null;
|
|
5344
5344
|
for (const r of n) {
|
|
5345
5345
|
const n = r.getStats(t), i = n.getAggregates();
|
|
@@ -5347,38 +5347,38 @@ var vs = (n) => {
|
|
|
5347
5347
|
}
|
|
5348
5348
|
if (0 === u) throw r.BuiltIn.Div0;
|
|
5349
5349
|
return (o ? o.getSnappedSum(e) : e) / u;
|
|
5350
|
-
},
|
|
5351
|
-
function
|
|
5350
|
+
}, Ds = (n, r, t) => Math.exp(-.5 * Math.log(2 * Math.PI) - Math.log(t) - Math.pow(n - r, 2) / (2 * t * t)), xs = (n, r, t) => .5 * Or(-(n - r) / Math.sqrt(2 * t * t)), Vs = (n, r, t) => -1.4142135623730951 * t * Dr(2 * n) + r;
|
|
5351
|
+
function Ls(n, r, t) {
|
|
5352
5352
|
return n < 0 ? 0 : 0 === n && 1 === r ? 1 / t : r >= 30 ? Math.exp(function(n, r) {
|
|
5353
5353
|
const t = r / n - 1;
|
|
5354
5354
|
return -n * t * t * (1 + Lr(t) * t) / 2 - Math.log1p(t) - .5 * Math.log(n) - .5 * Math.log(2 * Math.PI) - Cr(n);
|
|
5355
5355
|
}(r, n / t)) / t : Math.exp((r - 1) * Math.log(n) - n / t - Mr(r) - r * Math.log(t));
|
|
5356
5356
|
}
|
|
5357
|
-
function
|
|
5357
|
+
function Fs(n, r) {
|
|
5358
5358
|
return n < 0 ? 1 : ((n, r) => Fr(n, r, !0))(r / 2, n / 2);
|
|
5359
5359
|
}
|
|
5360
|
-
var
|
|
5361
|
-
function
|
|
5360
|
+
var Ps = (n, r) => 2 * Pr(n, .5 * r);
|
|
5361
|
+
function Us(n, r, t) {
|
|
5362
5362
|
if (n < 0) return 0;
|
|
5363
5363
|
const e = r * n + t;
|
|
5364
5364
|
return Gr(r * n / e, t / e, r / 2, t / 2);
|
|
5365
5365
|
}
|
|
5366
|
-
var
|
|
5367
|
-
function
|
|
5366
|
+
var _s = (n, r, t) => t / (r * (1 / Hr(n, r / 2, t / 2) - 1));
|
|
5367
|
+
function Gs(n, r) {
|
|
5368
5368
|
if (!Number.isFinite(n * n)) return NaN;
|
|
5369
|
-
const t = .5 *
|
|
5369
|
+
const t = .5 * Xs(n, r);
|
|
5370
5370
|
return n > 0 ? t : 1 - t;
|
|
5371
5371
|
}
|
|
5372
|
-
function
|
|
5372
|
+
function Xs(n, r) {
|
|
5373
5373
|
const t = r + n * n;
|
|
5374
5374
|
return Gr(r / t, n * n / t, r / 2, .5);
|
|
5375
5375
|
}
|
|
5376
|
-
function
|
|
5376
|
+
function Hs(n, r) {
|
|
5377
5377
|
let t = Hr(2 * Math.min(n, 1 - n), .5 * r, .5);
|
|
5378
5378
|
return t = Math.sqrt(r * (1 - t) / t), n > .5 ? t : -t;
|
|
5379
5379
|
}
|
|
5380
|
-
var
|
|
5381
|
-
function
|
|
5380
|
+
var ks = 1e5;
|
|
5381
|
+
function Ws(n, r) {
|
|
5382
5382
|
if (r < 0 || n % 1 != 0 || n < 0) return 0;
|
|
5383
5383
|
const t = n <= 170 ? Math.pow(r, n) * Math.exp(-r) / Oo(n) : Infinity;
|
|
5384
5384
|
return Number.isFinite(t) ? t : 0 === r ? 0 === n ? 1 : 0 : Math.exp(n * Math.log(r) - r - Mr(n + 1));
|
|
@@ -5388,219 +5388,219 @@ var Ys = (n, r, t) => {
|
|
|
5388
5388
|
const e = Do(r, n) * Math.pow(t, n) * Math.pow(1 - t, r - n);
|
|
5389
5389
|
return Number.isFinite(e) ? e : Math.exp(Mr(r + 1) - Mr(n + 1) - Mr(r - n + 1) + n * Math.log(t) + (r - n) * Math.log(1 - t));
|
|
5390
5390
|
};
|
|
5391
|
-
function
|
|
5391
|
+
function Ks(n, r, t) {
|
|
5392
5392
|
let e;
|
|
5393
5393
|
const u = 1e-10;
|
|
5394
5394
|
if (n < 0) return 0;
|
|
5395
5395
|
if (n >= r) return 1;
|
|
5396
5396
|
if (t < 0 || t > 1 || r <= 0) return NaN;
|
|
5397
5397
|
const o = t, i = (n = Math.floor(n)) + 1, a = r - n, s = i + a, l = Math.exp(Mr(s) - Mr(a) - Mr(i) + i * Math.log(o) + a * Math.log(1 - o));
|
|
5398
|
-
return e = o < (i + 1) / (s + 2) ? l *
|
|
5398
|
+
return e = o < (i + 1) / (s + 2) ? l * zs(o, i, a, u) : 1 - l * zs(1 - o, a, i, u), Math.round(1 / u * (1 - e)) / (1 / u);
|
|
5399
5399
|
}
|
|
5400
|
-
function
|
|
5400
|
+
function qs(n, r, t) {
|
|
5401
5401
|
return n !== n >>> 0 || n < 0 ? 0 : Do(n + r - 1, r - 1) * Math.pow(1 - t, n) * Math.pow(t, r);
|
|
5402
5402
|
}
|
|
5403
|
-
function
|
|
5403
|
+
function zs(n, r, t, e) {
|
|
5404
5404
|
let u, o = 0, i = 1, a = 1, s = 1, l = 0, c = 0;
|
|
5405
5405
|
for (; Math.abs((a - c) / a) > e;) c = a, u = -(r + l) * (r + t + l) * n / (r + 2 * l) / (r + 2 * l + 1), o = a + u * o, i = s + u * i, l += 1, u = l * (t - l) * n / (r + 2 * l - 1) / (r + 2 * l), a = o + u * a, s = i + u * s, o /= s, i /= s, a /= s, s = 1;
|
|
5406
5406
|
return a / r;
|
|
5407
5407
|
}
|
|
5408
|
-
var
|
|
5409
|
-
BETADIST: () =>
|
|
5410
|
-
BETAINV: () =>
|
|
5411
|
-
BETA_DIST: () =>
|
|
5412
|
-
BETA_INV: () =>
|
|
5413
|
-
BINOMDIST: () =>
|
|
5414
|
-
BINOM_DIST: () =>
|
|
5415
|
-
BINOM_DIST_RANGE: () =>
|
|
5416
|
-
BINOM_INV: () =>
|
|
5417
|
-
CHIDIST: () =>
|
|
5418
|
-
CHIINV: () =>
|
|
5419
|
-
CHISQ_DIST: () =>
|
|
5420
|
-
CHISQ_DIST_RT: () =>
|
|
5421
|
-
CHISQ_INV: () =>
|
|
5422
|
-
CHISQ_INV_RT: () =>
|
|
5423
|
-
CHISQ_TEST: () =>
|
|
5424
|
-
CHITEST: () =>
|
|
5425
|
-
CONFIDENCE: () =>
|
|
5426
|
-
CONFIDENCE_NORM: () =>
|
|
5427
|
-
CONFIDENCE_T: () =>
|
|
5428
|
-
CORREL: () =>
|
|
5429
|
-
COVAR: () =>
|
|
5430
|
-
COVARIANCE_P: () =>
|
|
5431
|
-
COVARIANCE_S: () =>
|
|
5432
|
-
CRITBINOM: () =>
|
|
5433
|
-
DEVSQ: () =>
|
|
5434
|
-
EXPONDIST: () =>
|
|
5435
|
-
EXPON_DIST: () =>
|
|
5436
|
-
FDIST: () =>
|
|
5437
|
-
FINV: () =>
|
|
5438
|
-
FISHER: () =>
|
|
5439
|
-
FISHERINV: () =>
|
|
5440
|
-
FORECAST: () =>
|
|
5441
|
-
FORECAST_LINEAR: () =>
|
|
5442
|
-
FREQUENCY: () =>
|
|
5443
|
-
FTEST: () =>
|
|
5444
|
-
F_DIST: () =>
|
|
5445
|
-
F_DIST_RT: () =>
|
|
5446
|
-
F_INV: () =>
|
|
5447
|
-
F_INV_RT: () =>
|
|
5448
|
-
F_TEST: () =>
|
|
5449
|
-
GAMMA: () =>
|
|
5450
|
-
GAMMADIST: () =>
|
|
5451
|
-
GAMMAINV: () =>
|
|
5452
|
-
GAMMALN: () =>
|
|
5453
|
-
GAMMALN_PRECISE: () =>
|
|
5408
|
+
var Qs = c({
|
|
5409
|
+
BETADIST: () => ul,
|
|
5410
|
+
BETAINV: () => il,
|
|
5411
|
+
BETA_DIST: () => el,
|
|
5412
|
+
BETA_INV: () => ol,
|
|
5413
|
+
BINOMDIST: () => sl,
|
|
5414
|
+
BINOM_DIST: () => al,
|
|
5415
|
+
BINOM_DIST_RANGE: () => ll,
|
|
5416
|
+
BINOM_INV: () => fl,
|
|
5417
|
+
CHIDIST: () => gl,
|
|
5418
|
+
CHIINV: () => Nl,
|
|
5419
|
+
CHISQ_DIST: () => ml,
|
|
5420
|
+
CHISQ_DIST_RT: () => hl,
|
|
5421
|
+
CHISQ_INV: () => pl,
|
|
5422
|
+
CHISQ_INV_RT: () => Il,
|
|
5423
|
+
CHISQ_TEST: () => bl,
|
|
5424
|
+
CHITEST: () => El,
|
|
5425
|
+
CONFIDENCE: () => dl,
|
|
5426
|
+
CONFIDENCE_NORM: () => Al,
|
|
5427
|
+
CONFIDENCE_T: () => Ml,
|
|
5428
|
+
CORREL: () => Sl,
|
|
5429
|
+
COVAR: () => Rl,
|
|
5430
|
+
COVARIANCE_P: () => Tl,
|
|
5431
|
+
COVARIANCE_S: () => Cl,
|
|
5432
|
+
CRITBINOM: () => wl,
|
|
5433
|
+
DEVSQ: () => vl,
|
|
5434
|
+
EXPONDIST: () => yl,
|
|
5435
|
+
EXPON_DIST: () => Bl,
|
|
5436
|
+
FDIST: () => Dl,
|
|
5437
|
+
FINV: () => Ll,
|
|
5438
|
+
FISHER: () => _l,
|
|
5439
|
+
FISHERINV: () => Gl,
|
|
5440
|
+
FORECAST: () => Xl,
|
|
5441
|
+
FORECAST_LINEAR: () => Hl,
|
|
5442
|
+
FREQUENCY: () => kl,
|
|
5443
|
+
FTEST: () => Ul,
|
|
5444
|
+
F_DIST: () => Ol,
|
|
5445
|
+
F_DIST_RT: () => xl,
|
|
5446
|
+
F_INV: () => Vl,
|
|
5447
|
+
F_INV_RT: () => Fl,
|
|
5448
|
+
F_TEST: () => Pl,
|
|
5449
|
+
GAMMA: () => Wl,
|
|
5450
|
+
GAMMADIST: () => Kl,
|
|
5451
|
+
GAMMAINV: () => zl,
|
|
5452
|
+
GAMMALN: () => Ql,
|
|
5453
|
+
GAMMALN_PRECISE: () => jl,
|
|
5454
5454
|
GAMMA_DIST: () => Yl,
|
|
5455
|
-
GAMMA_INV: () =>
|
|
5456
|
-
GAUSS: () =>
|
|
5457
|
-
GEOMEAN: () =>
|
|
5458
|
-
HARMEAN: () =>
|
|
5459
|
-
HYPGEOMDIST: () =>
|
|
5460
|
-
HYPGEOM_DIST: () =>
|
|
5461
|
-
INTERCEPT: () =>
|
|
5462
|
-
KURT: () =>
|
|
5463
|
-
LOGINV: () =>
|
|
5464
|
-
LOGNORMDIST: () =>
|
|
5465
|
-
LOGNORM_DIST: () =>
|
|
5466
|
-
LOGNORM_INV: () =>
|
|
5467
|
-
MODE: () =>
|
|
5468
|
-
MODE_MULT: () =>
|
|
5469
|
-
MODE_SNGL: () =>
|
|
5470
|
-
NEGBINOMDIST: () =>
|
|
5471
|
-
NEGBINOM_DIST: () =>
|
|
5472
|
-
NORMDIST: () =>
|
|
5473
|
-
NORMINV: () =>
|
|
5474
|
-
NORMSDIST: () =>
|
|
5475
|
-
NORMSINV: () =>
|
|
5476
|
-
NORM_DIST: () =>
|
|
5477
|
-
NORM_INV: () =>
|
|
5478
|
-
NORM_S_DIST: () =>
|
|
5479
|
-
NORM_S_INV: () =>
|
|
5480
|
-
PEARSON: () =>
|
|
5481
|
-
PERCENTILE: () =>
|
|
5482
|
-
PERCENTILE_EXC: () =>
|
|
5483
|
-
PERCENTILE_INC: () =>
|
|
5484
|
-
PERCENTRANK: () =>
|
|
5485
|
-
PERCENTRANK_EXC: () =>
|
|
5486
|
-
PERCENTRANK_INC: () =>
|
|
5487
|
-
PHI: () =>
|
|
5488
|
-
POISSON: () =>
|
|
5489
|
-
POISSON_DIST: () =>
|
|
5490
|
-
PROB: () =>
|
|
5491
|
-
QUARTILE: () =>
|
|
5492
|
-
QUARTILE_EXC: () =>
|
|
5493
|
-
QUARTILE_INC: () =>
|
|
5494
|
-
RANK: () =>
|
|
5495
|
-
RANK_AVG: () =>
|
|
5496
|
-
RANK_EQ: () =>
|
|
5497
|
-
RSQ: () =>
|
|
5498
|
-
SKEW: () =>
|
|
5499
|
-
SKEW_P: () =>
|
|
5500
|
-
SLOPE: () =>
|
|
5501
|
-
STANDARDIZE: () =>
|
|
5502
|
-
STDEV: () =>
|
|
5503
|
-
STDEVA: () =>
|
|
5504
|
-
STDEVP: () =>
|
|
5505
|
-
STDEVPA: () =>
|
|
5506
|
-
STDEV_P: () =>
|
|
5455
|
+
GAMMA_INV: () => ql,
|
|
5456
|
+
GAUSS: () => $l,
|
|
5457
|
+
GEOMEAN: () => Zl,
|
|
5458
|
+
HARMEAN: () => Jl,
|
|
5459
|
+
HYPGEOMDIST: () => rc,
|
|
5460
|
+
HYPGEOM_DIST: () => nc,
|
|
5461
|
+
INTERCEPT: () => tc,
|
|
5462
|
+
KURT: () => ec,
|
|
5463
|
+
LOGINV: () => ac,
|
|
5464
|
+
LOGNORMDIST: () => oc,
|
|
5465
|
+
LOGNORM_DIST: () => uc,
|
|
5466
|
+
LOGNORM_INV: () => ic,
|
|
5467
|
+
MODE: () => lc,
|
|
5468
|
+
MODE_MULT: () => fc,
|
|
5469
|
+
MODE_SNGL: () => mc,
|
|
5470
|
+
NEGBINOMDIST: () => hc,
|
|
5471
|
+
NEGBINOM_DIST: () => gc,
|
|
5472
|
+
NORMDIST: () => Nc,
|
|
5473
|
+
NORMINV: () => bc,
|
|
5474
|
+
NORMSDIST: () => Ac,
|
|
5475
|
+
NORMSINV: () => Mc,
|
|
5476
|
+
NORM_DIST: () => pc,
|
|
5477
|
+
NORM_INV: () => Ic,
|
|
5478
|
+
NORM_S_DIST: () => Ec,
|
|
5479
|
+
NORM_S_INV: () => dc,
|
|
5480
|
+
PEARSON: () => Sc,
|
|
5481
|
+
PERCENTILE: () => Rc,
|
|
5482
|
+
PERCENTILE_EXC: () => Tc,
|
|
5483
|
+
PERCENTILE_INC: () => Cc,
|
|
5484
|
+
PERCENTRANK: () => wc,
|
|
5485
|
+
PERCENTRANK_EXC: () => vc,
|
|
5486
|
+
PERCENTRANK_INC: () => Bc,
|
|
5487
|
+
PHI: () => yc,
|
|
5488
|
+
POISSON: () => Dc,
|
|
5489
|
+
POISSON_DIST: () => Oc,
|
|
5490
|
+
PROB: () => xc,
|
|
5491
|
+
QUARTILE: () => Vc,
|
|
5492
|
+
QUARTILE_EXC: () => Lc,
|
|
5493
|
+
QUARTILE_INC: () => Fc,
|
|
5494
|
+
RANK: () => Pc,
|
|
5495
|
+
RANK_AVG: () => Uc,
|
|
5496
|
+
RANK_EQ: () => _c,
|
|
5497
|
+
RSQ: () => Gc,
|
|
5498
|
+
SKEW: () => Xc,
|
|
5499
|
+
SKEW_P: () => Hc,
|
|
5500
|
+
SLOPE: () => kc,
|
|
5501
|
+
STANDARDIZE: () => Wc,
|
|
5502
|
+
STDEV: () => Kc,
|
|
5503
|
+
STDEVA: () => Qc,
|
|
5504
|
+
STDEVP: () => zc,
|
|
5505
|
+
STDEVPA: () => jc,
|
|
5506
|
+
STDEV_P: () => qc,
|
|
5507
5507
|
STDEV_S: () => Yc,
|
|
5508
|
-
STEYX: () =>
|
|
5509
|
-
TDIST: () =>
|
|
5510
|
-
TINV: () =>
|
|
5511
|
-
TRIMMEAN: () =>
|
|
5512
|
-
T_DIST: () =>
|
|
5513
|
-
T_DIST_2T: () =>
|
|
5514
|
-
T_DIST_RT: () =>
|
|
5515
|
-
T_INV: () =>
|
|
5516
|
-
T_INV_2T: () =>
|
|
5517
|
-
VAR: () =>
|
|
5518
|
-
VARA: () =>
|
|
5519
|
-
VARP: () =>
|
|
5520
|
-
VARPA: () =>
|
|
5521
|
-
VAR_P: () =>
|
|
5522
|
-
VAR_S: () =>
|
|
5523
|
-
WEIBULL: () =>
|
|
5524
|
-
WEIBULL_DIST: () =>
|
|
5525
|
-
ZTEST: () =>
|
|
5526
|
-
Z_TEST: () =>
|
|
5527
|
-
}),
|
|
5508
|
+
STEYX: () => $c,
|
|
5509
|
+
TDIST: () => Jc,
|
|
5510
|
+
TINV: () => ef,
|
|
5511
|
+
TRIMMEAN: () => of,
|
|
5512
|
+
T_DIST: () => Zc,
|
|
5513
|
+
T_DIST_2T: () => nf,
|
|
5514
|
+
T_DIST_RT: () => rf,
|
|
5515
|
+
T_INV: () => tf,
|
|
5516
|
+
T_INV_2T: () => uf,
|
|
5517
|
+
VAR: () => ff,
|
|
5518
|
+
VARA: () => gf,
|
|
5519
|
+
VARP: () => lf,
|
|
5520
|
+
VARPA: () => hf,
|
|
5521
|
+
VAR_P: () => sf,
|
|
5522
|
+
VAR_S: () => cf,
|
|
5523
|
+
WEIBULL: () => Nf,
|
|
5524
|
+
WEIBULL_DIST: () => pf,
|
|
5525
|
+
ZTEST: () => bf,
|
|
5526
|
+
Z_TEST: () => If
|
|
5527
|
+
}), js = 1e10, $s = 22250738585072014e-324, Zs = (n) => ((n) => {
|
|
5528
5528
|
let r = 0;
|
|
5529
5529
|
for (let t = 0; t < n.length; t++) r += n[t];
|
|
5530
5530
|
return r;
|
|
5531
|
-
})(n) / n.length,
|
|
5532
|
-
const t =
|
|
5531
|
+
})(n) / n.length, Js = (n) => Math.exp(Zs(n.map(Math.log))), nl = (n, r) => {
|
|
5532
|
+
const t = Zs(n);
|
|
5533
5533
|
let e = 0;
|
|
5534
5534
|
for (let r = 0; r < n.length; r++) {
|
|
5535
5535
|
const u = n[r] - t;
|
|
5536
5536
|
e += u * u;
|
|
5537
5537
|
}
|
|
5538
5538
|
return Math.sqrt(e / (n.length - (r ? 1 : 0)));
|
|
5539
|
-
},
|
|
5539
|
+
}, rl = 2 ** -22, tl = (n, r, t) => {
|
|
5540
5540
|
let e = 0, u = Math.floor(n);
|
|
5541
5541
|
for (; e < u;) {
|
|
5542
|
-
const o = e + Math.floor((u - e) / 2), i =
|
|
5542
|
+
const o = e + Math.floor((u - e) / 2), i = Ks(o, n, r) > t, a = i ? e : o + 1, s = i ? o : u;
|
|
5543
5543
|
if (a === e && s === u) break;
|
|
5544
5544
|
e = a, u = s;
|
|
5545
5545
|
}
|
|
5546
|
-
return
|
|
5546
|
+
return Ks(e, n, r) > t ? e : NaN;
|
|
5547
5547
|
};
|
|
5548
|
-
function
|
|
5548
|
+
function el(n, r, t, e, u = 0, o = 1) {
|
|
5549
5549
|
return r <= 0 || t <= 0 || n < u || n > o || u === o ? NaN : (n = (n - u) / (o - u), e ? ((n, r, t) => n > 1 || n < 0 ? n > 1 ? 1 : 0 : _r(n, r, t))(n, r, t) : function(n, r, t) {
|
|
5550
5550
|
return n > 1 || n < 0 ? 0 : 1 === r && 1 === t ? 1 : r < 512 && t < 512 ? Math.pow(n, r - 1) * Math.pow(1 - n, t - 1) / Rr(r, t) : Math.exp((r - 1) * Math.log(n) + (t - 1) * Math.log(1 - n) - wr(r, t));
|
|
5551
5551
|
}(n, r, t) / (o - u));
|
|
5552
5552
|
}
|
|
5553
|
-
function el(n, r, t, e = 0, u = 1) {
|
|
5554
|
-
return tl(n, r, t, !0, e, u);
|
|
5555
|
-
}
|
|
5556
5553
|
function ul(n, r, t, e = 0, u = 1) {
|
|
5557
|
-
return
|
|
5554
|
+
return el(n, r, t, !0, e, u);
|
|
5558
5555
|
}
|
|
5559
5556
|
function ol(n, r, t, e = 0, u = 1) {
|
|
5560
|
-
return
|
|
5557
|
+
return r <= 0 || t <= 0 || n <= 0 || n >= 1 || e >= u ? NaN : ((n, r, t) => Hr(n, r, t))(n, r, t) * (u - e) + e;
|
|
5561
5558
|
}
|
|
5562
|
-
function il(n, r, t, e) {
|
|
5563
|
-
return
|
|
5559
|
+
function il(n, r, t, e = 0, u = 1) {
|
|
5560
|
+
return ol(n, r, t, e, u);
|
|
5564
5561
|
}
|
|
5565
5562
|
function al(n, r, t, e) {
|
|
5566
|
-
return
|
|
5563
|
+
return n = Math.trunc(n), (r = Math.trunc(r)) < 0 || t < 0 || t > 1 || n < 0 || n > r || r > 2147483646 ? NaN : e ? Ks(n, r, t) : Ys(n, r, t);
|
|
5567
5564
|
}
|
|
5568
|
-
function sl(n, r, t, e
|
|
5565
|
+
function sl(n, r, t, e) {
|
|
5566
|
+
return al(n, r, t, e);
|
|
5567
|
+
}
|
|
5568
|
+
function ll(n, r, t, e = t) {
|
|
5569
5569
|
if (n = Math.trunc(n), t = Math.trunc(t), e = Math.trunc(e), n < 0 || r < 0 || r > 1 || t < 0 || t > n || e < t || e > n) return NaN;
|
|
5570
5570
|
if (n > 2147483646) return NaN;
|
|
5571
|
-
if (e - t >
|
|
5571
|
+
if (e - t > cl) return Ks(e, n, r) - (t > 0 ? Ks(t - 1, n, r) : 0);
|
|
5572
5572
|
let u = 0;
|
|
5573
5573
|
for (let o = t; o <= e; o++) u += Ys(o, n, r);
|
|
5574
5574
|
return u;
|
|
5575
5575
|
}
|
|
5576
|
-
var
|
|
5577
|
-
function cl(n, r, t) {
|
|
5578
|
-
return (n = Math.floor(n)) < 0 || n > 2147483646 || r <= 0 || r >= 1 || t <= 0 || t >= 1 ? NaN : rl(n, r, t);
|
|
5579
|
-
}
|
|
5576
|
+
var cl = 1e5;
|
|
5580
5577
|
function fl(n, r, t) {
|
|
5581
|
-
return
|
|
5578
|
+
return (n = Math.floor(n)) < 0 || n > 2147483646 || r <= 0 || r >= 1 || t <= 0 || t >= 1 ? NaN : tl(n, r, t);
|
|
5579
|
+
}
|
|
5580
|
+
function ml(n, r, t) {
|
|
5581
|
+
return r = Math.trunc(r), n < 0 || r < 1 || r > js ? NaN : t ? function(n, r) {
|
|
5582
5582
|
return n < 0 ? 0 : xr(r / 2, n / 2);
|
|
5583
5583
|
}(n, r) : function(n, r) {
|
|
5584
5584
|
return n < 0 ? 0 : 0 === n && 2 === r ? .5 : Math.exp((r / 2 - 1) * Math.log(n) - n / 2 - r / 2 * Math.log(2) - Mr(r / 2));
|
|
5585
5585
|
}(n, r);
|
|
5586
5586
|
}
|
|
5587
|
-
function ml(n, r) {
|
|
5588
|
-
return gl(n, r);
|
|
5589
|
-
}
|
|
5590
5587
|
function gl(n, r) {
|
|
5591
|
-
return
|
|
5588
|
+
return hl(n, r);
|
|
5592
5589
|
}
|
|
5593
5590
|
function hl(n, r) {
|
|
5594
|
-
return r = Math.trunc(r), n < 0 ||
|
|
5591
|
+
return r = Math.trunc(r), n < 0 || r < 1 || r > js ? NaN : Fs(n, r);
|
|
5595
5592
|
}
|
|
5596
5593
|
function pl(n, r) {
|
|
5597
|
-
return
|
|
5594
|
+
return r = Math.trunc(r), n < 0 || n >= 1 || r < 1 || r > js ? NaN : Ps(n, r);
|
|
5598
5595
|
}
|
|
5599
5596
|
function Nl(n, r) {
|
|
5600
|
-
return
|
|
5597
|
+
return Il(n, r);
|
|
5601
5598
|
}
|
|
5602
|
-
function Il(n,
|
|
5603
|
-
|
|
5599
|
+
function Il(n, r) {
|
|
5600
|
+
return r = Math.trunc(r), n <= 0 || n > 1 || r < 1 || r > js ? NaN : Ps(1 - n, r);
|
|
5601
|
+
}
|
|
5602
|
+
function bl(n, t) {
|
|
5603
|
+
const e = Af(n) ?? Af(t);
|
|
5604
5604
|
if (e) return e;
|
|
5605
5605
|
const u = n.getRowCount(), o = n.getColumnCount();
|
|
5606
5606
|
if (u * o !== t.getRowCount() * t.getColumnCount()) throw r.BuiltIn.NA;
|
|
@@ -5617,45 +5617,45 @@ function Il(n, t) {
|
|
|
5617
5617
|
a += (n - t) ** 2 / t, s++;
|
|
5618
5618
|
}
|
|
5619
5619
|
}
|
|
5620
|
-
return 0 === s ? r.BuiltIn.Div0 : Number.isFinite(a) ?
|
|
5620
|
+
return 0 === s ? r.BuiltIn.Div0 : Number.isFinite(a) ? hl(a, i) : r.BuiltIn.Num;
|
|
5621
5621
|
}
|
|
5622
|
-
function
|
|
5623
|
-
return
|
|
5622
|
+
function El(n, r) {
|
|
5623
|
+
return bl(n, r);
|
|
5624
5624
|
}
|
|
5625
|
-
function
|
|
5625
|
+
function Al(n, r, t) {
|
|
5626
5626
|
return t = Math.trunc(t), n <= 0 || n >= 1 || r <= 0 || t < 1 || 1 - n / 2 == 1 ? NaN : function(n, r, t) {
|
|
5627
|
-
return 1 + Math.abs(
|
|
5627
|
+
return 1 + Math.abs(Vs(n / 2, 0, 1) * r / Math.sqrt(t)) - 1;
|
|
5628
5628
|
}(n, r, t);
|
|
5629
5629
|
}
|
|
5630
|
-
function
|
|
5631
|
-
return
|
|
5630
|
+
function dl(n, r, t) {
|
|
5631
|
+
return Al(n, r, t);
|
|
5632
5632
|
}
|
|
5633
|
-
function
|
|
5633
|
+
function Ml(n, t, e) {
|
|
5634
5634
|
if (e = Math.trunc(e), n <= 0 || n >= 1 || t <= 0 || e < 1) return NaN;
|
|
5635
5635
|
if (1 === e) throw r.BuiltIn.Div0;
|
|
5636
|
-
return e - 1 >
|
|
5637
|
-
return 1 + Math.abs(
|
|
5636
|
+
return e - 1 > js || n / 2 < $s ? NaN : function(n, r, t) {
|
|
5637
|
+
return 1 + Math.abs(Hs(n / 2, t - 1) * r / Math.sqrt(t)) - 1;
|
|
5638
5638
|
}(n, t, e);
|
|
5639
5639
|
}
|
|
5640
|
-
function
|
|
5641
|
-
const e =
|
|
5640
|
+
function Sl(n, t) {
|
|
5641
|
+
const e = df(n, t);
|
|
5642
5642
|
return r.isError(e) ? e : null === e ? r.BuiltIn.NA : Number.isFinite(e.ssX) && Number.isFinite(e.ssY) ? 0 === e.ssX || 0 === e.ssY ? r.BuiltIn.Div0 : e.ssXY / Math.sqrt(e.ssX * e.ssY) : r.BuiltIn.Num;
|
|
5643
5643
|
}
|
|
5644
|
-
function
|
|
5645
|
-
return
|
|
5644
|
+
function Rl(n, r) {
|
|
5645
|
+
return Tl(n, r);
|
|
5646
5646
|
}
|
|
5647
|
-
function
|
|
5648
|
-
const e =
|
|
5647
|
+
function Tl(n, t) {
|
|
5648
|
+
const e = df(n, t);
|
|
5649
5649
|
return r.isError(e) ? e : null === e ? r.BuiltIn.NA : 0 === e.n ? r.BuiltIn.Div0 : Number.isFinite(e.ssXY) ? e.ssXY / e.n : r.BuiltIn.Num;
|
|
5650
5650
|
}
|
|
5651
|
-
function
|
|
5652
|
-
const e =
|
|
5651
|
+
function Cl(n, t) {
|
|
5652
|
+
const e = df(n, t);
|
|
5653
5653
|
return r.isError(e) ? e : null === e ? r.BuiltIn.NA : e.n <= 1 ? r.BuiltIn.Div0 : Number.isFinite(e.ssXY) ? e.ssXY / (e.n - 1) : r.BuiltIn.Num;
|
|
5654
5654
|
}
|
|
5655
|
-
function
|
|
5656
|
-
return
|
|
5655
|
+
function wl(n, r, t) {
|
|
5656
|
+
return fl(n, r, t);
|
|
5657
5657
|
}
|
|
5658
|
-
function
|
|
5658
|
+
function vl(n) {
|
|
5659
5659
|
let t = 0, e = [];
|
|
5660
5660
|
for (const r of n) for (const n of r.values()) t += n, e.push(n);
|
|
5661
5661
|
const u = e.length;
|
|
@@ -5665,38 +5665,38 @@ function wl(n) {
|
|
|
5665
5665
|
for (let n = 0; n < u; n++) t += (e[n] - o) ** 2;
|
|
5666
5666
|
return t;
|
|
5667
5667
|
}
|
|
5668
|
-
function
|
|
5668
|
+
function Bl(n, r, t) {
|
|
5669
5669
|
return n < 0 || r <= 0 ? NaN : Number.isFinite(r * n) ? t ? ((n, r) => n < 0 ? 0 : 1 - Math.exp(-r * n))(n, r) : ((n, r) => n < 0 ? 0 : r * Math.exp(-r * n))(n, r) : NaN;
|
|
5670
5670
|
}
|
|
5671
|
-
function
|
|
5672
|
-
return
|
|
5671
|
+
function yl(n, r, t) {
|
|
5672
|
+
return Bl(n, r, t);
|
|
5673
5673
|
}
|
|
5674
|
-
function
|
|
5675
|
-
return n < 0 || r < 1 || t < 1 ? NaN : (r = Math.trunc(r), t = Math.trunc(t), r >
|
|
5674
|
+
function Ol(n, r, t, e) {
|
|
5675
|
+
return n < 0 || r < 1 || t < 1 ? NaN : (r = Math.trunc(r), t = Math.trunc(t), r > js || t > js ? NaN : e ? Us(n, r, t) : function(n, r, t) {
|
|
5676
5676
|
return n < 0 ? 0 : 0 === n && r < 2 ? Infinity : 0 === n && 2 === r ? 1 : r < 512 && t < 512 ? 1 / Rr(r / 2, t / 2) * Math.pow(r / t, r / 2) * Math.pow(n, r / 2 - 1) * Math.pow(1 + r / t * n, -(r + t) / 2) : Math.exp(r / 2 * Math.log(r / t) + (r / 2 - 1) * Math.log(n) - (r + t) / 2 * Math.log(1 + r / t * n) - wr(r / 2, t / 2));
|
|
5677
5677
|
}(n, r, t));
|
|
5678
5678
|
}
|
|
5679
|
-
function Ol(n, r, t) {
|
|
5680
|
-
return Dl(n, r, t);
|
|
5681
|
-
}
|
|
5682
5679
|
function Dl(n, r, t) {
|
|
5683
|
-
return
|
|
5680
|
+
return xl(n, r, t);
|
|
5681
|
+
}
|
|
5682
|
+
function xl(n, r, t) {
|
|
5683
|
+
return n < 0 || r < 1 || t < 1 ? NaN : (r = Math.trunc(r), t = Math.trunc(t), r > js || t > js ? NaN : function(n, r, t) {
|
|
5684
5684
|
if (n < 0) return 1;
|
|
5685
5685
|
const e = r * n + t;
|
|
5686
5686
|
return Gr(t / e, r * n / e, t / 2, r / 2);
|
|
5687
5687
|
}(n, r, t));
|
|
5688
5688
|
}
|
|
5689
|
-
function xl(n, r, t) {
|
|
5690
|
-
return n < 0 || n > 1 || r < 1 || t < 1 ? NaN : (r = Math.trunc(r), t = Math.trunc(t), r > Qs || t > Qs ? NaN : Us(n, r, t));
|
|
5691
|
-
}
|
|
5692
5689
|
function Vl(n, r, t) {
|
|
5693
|
-
return
|
|
5690
|
+
return n < 0 || n > 1 || r < 1 || t < 1 ? NaN : (r = Math.trunc(r), t = Math.trunc(t), r > js || t > js ? NaN : _s(n, r, t));
|
|
5694
5691
|
}
|
|
5695
5692
|
function Ll(n, r, t) {
|
|
5696
|
-
return
|
|
5693
|
+
return Fl(n, r, t);
|
|
5697
5694
|
}
|
|
5698
|
-
function Fl(n, t) {
|
|
5699
|
-
|
|
5695
|
+
function Fl(n, r, t) {
|
|
5696
|
+
return n < 0 || n > 1 || r < 1 || t < 1 ? NaN : (r = Math.trunc(r), t = Math.trunc(t), r > js || t > js ? NaN : _s(1 - n, r, t));
|
|
5697
|
+
}
|
|
5698
|
+
function Pl(n, t) {
|
|
5699
|
+
const e = Af(n) ?? Af(t);
|
|
5700
5700
|
if (e) return e;
|
|
5701
5701
|
if (n.hasError()) return n.firstError();
|
|
5702
5702
|
if (t.hasError()) return t.firstError();
|
|
@@ -5715,24 +5715,24 @@ function Fl(n, t) {
|
|
|
5715
5715
|
for (let n = 0; n < o.length; n++) l += (a - o[n]) ** 2;
|
|
5716
5716
|
if (l /= o.length - 1, s = f(s), l = f(l), 0 === s || 0 === l) return r.BuiltIn.Div0;
|
|
5717
5717
|
if (!Number.isFinite(s) || !Number.isFinite(l)) return r.BuiltIn.Num;
|
|
5718
|
-
const c =
|
|
5718
|
+
const c = Us(s / l, u.length - 1, o.length - 1);
|
|
5719
5719
|
return 2 * Math.min(c, 1 - c);
|
|
5720
5720
|
}
|
|
5721
|
-
function
|
|
5722
|
-
return
|
|
5721
|
+
function Ul(n, r) {
|
|
5722
|
+
return Pl(n, r);
|
|
5723
5723
|
}
|
|
5724
|
-
function
|
|
5724
|
+
function _l(n) {
|
|
5725
5725
|
return n > -1 && n < 1 ? Math.log((1 + n) / (1 - n)) / 2 : NaN;
|
|
5726
5726
|
}
|
|
5727
|
-
function
|
|
5727
|
+
function Gl(n) {
|
|
5728
5728
|
const r = Math.exp(2 * n);
|
|
5729
5729
|
return r === Number.POSITIVE_INFINITY ? 1 : (r - 1) / (r + 1);
|
|
5730
5730
|
}
|
|
5731
|
-
function
|
|
5732
|
-
return
|
|
5731
|
+
function Xl(n, r, t) {
|
|
5732
|
+
return Hl(n, r, t);
|
|
5733
5733
|
}
|
|
5734
|
-
function
|
|
5735
|
-
const u =
|
|
5734
|
+
function Hl(n, t, e) {
|
|
5735
|
+
const u = df(t, e);
|
|
5736
5736
|
if (r.isError(u)) return u;
|
|
5737
5737
|
if (null === u) return r.BuiltIn.NA;
|
|
5738
5738
|
if (0 === u.n || 0 === u.ssX) return r.BuiltIn.Div0;
|
|
@@ -5740,7 +5740,7 @@ function Xl(n, t, e) {
|
|
|
5740
5740
|
const o = u.ssXY / u.ssX, i = u.yMean - o * u.xMean + o * n;
|
|
5741
5741
|
return Number.isFinite(i) ? i : r.BuiltIn.Num;
|
|
5742
5742
|
}
|
|
5743
|
-
function
|
|
5743
|
+
function kl(r, t) {
|
|
5744
5744
|
if (r = n.flattenAreas(r), t = n.flattenAreas(t), r.hasError()) throw r.firstError();
|
|
5745
5745
|
const e = [];
|
|
5746
5746
|
for (const n of t.values()) "number" == typeof n && e.push(n);
|
|
@@ -5763,42 +5763,42 @@ function Hl(r, t) {
|
|
|
5763
5763
|
for (let n = 0; n < u.length; n++) u[n] > a && s++;
|
|
5764
5764
|
return i[e.length][0] = s, i;
|
|
5765
5765
|
}
|
|
5766
|
-
function
|
|
5766
|
+
function Wl(n) {
|
|
5767
5767
|
return 0 === n || n < 0 && n === Math.trunc(n) ? NaN : Sr(n);
|
|
5768
5768
|
}
|
|
5769
5769
|
function Yl(n, r, t, e) {
|
|
5770
5770
|
return n < 0 || r <= 0 || t <= 0 ? NaN : Number.isFinite(Mr(r)) && Number.isFinite(n / t * 2) ? e ? function(n, r, t) {
|
|
5771
5771
|
return n < 0 ? 0 : xr(r, n / t);
|
|
5772
|
-
}(n, r, t) :
|
|
5772
|
+
}(n, r, t) : Ls(n, r, t) : NaN;
|
|
5773
5773
|
}
|
|
5774
|
-
function
|
|
5774
|
+
function Kl(n, r, t, e) {
|
|
5775
5775
|
return Yl(n, r, t, e);
|
|
5776
5776
|
}
|
|
5777
|
-
function
|
|
5777
|
+
function ql(n, r, t) {
|
|
5778
5778
|
return n < 0 || n >= 1 || r <= 0 || t <= 0 ? NaN : (e = t, Pr(n, r) * e);
|
|
5779
5779
|
var e;
|
|
5780
5780
|
}
|
|
5781
|
-
function
|
|
5782
|
-
return
|
|
5783
|
-
}
|
|
5784
|
-
function zl(n) {
|
|
5785
|
-
return n <= 0 ? NaN : Mr(n);
|
|
5781
|
+
function zl(n, r, t) {
|
|
5782
|
+
return ql(n, r, t);
|
|
5786
5783
|
}
|
|
5787
5784
|
function Ql(n) {
|
|
5788
5785
|
return n <= 0 ? NaN : Mr(n);
|
|
5789
5786
|
}
|
|
5790
5787
|
function jl(n) {
|
|
5791
|
-
return
|
|
5788
|
+
return n <= 0 ? NaN : Mr(n);
|
|
5792
5789
|
}
|
|
5793
5790
|
function $l(n) {
|
|
5791
|
+
return xs(n, 0, 1) - .5;
|
|
5792
|
+
}
|
|
5793
|
+
function Zl(n) {
|
|
5794
5794
|
const r = [];
|
|
5795
5795
|
for (const t of n) for (const n of t.values()) {
|
|
5796
5796
|
if (n <= 0) return NaN;
|
|
5797
5797
|
r.push(n);
|
|
5798
5798
|
}
|
|
5799
|
-
return
|
|
5799
|
+
return Js(r);
|
|
5800
5800
|
}
|
|
5801
|
-
function
|
|
5801
|
+
function Jl(n) {
|
|
5802
5802
|
let t = 0, e = 0;
|
|
5803
5803
|
for (const r of n) for (const n of r.values()) {
|
|
5804
5804
|
if (n <= 0) return NaN;
|
|
@@ -5807,7 +5807,7 @@ function Zl(n) {
|
|
|
5807
5807
|
if (0 === t) throw r.BuiltIn.NA;
|
|
5808
5808
|
return t / e;
|
|
5809
5809
|
}
|
|
5810
|
-
function
|
|
5810
|
+
function nc(n, r, t, e, u) {
|
|
5811
5811
|
if (n = Math.trunc(n), r = Math.trunc(r), t = Math.trunc(t), e = Math.trunc(e), n < 0 || r < 0 || t < 0 || e < 0) return NaN;
|
|
5812
5812
|
if (r > e) return NaN;
|
|
5813
5813
|
if (t > e) return NaN;
|
|
@@ -5827,11 +5827,11 @@ function Jl(n, r, t, e, u) {
|
|
|
5827
5827
|
for (let n = 0; n <= a; n++) i += o(n);
|
|
5828
5828
|
return i;
|
|
5829
5829
|
}
|
|
5830
|
-
function
|
|
5831
|
-
return
|
|
5830
|
+
function rc(n, r, t, e) {
|
|
5831
|
+
return nc(n, r, t, e, !1);
|
|
5832
5832
|
}
|
|
5833
|
-
function
|
|
5834
|
-
const e =
|
|
5833
|
+
function tc(n, t) {
|
|
5834
|
+
const e = df(n, t);
|
|
5835
5835
|
if (r.isError(e)) return e;
|
|
5836
5836
|
if (null === e) return r.BuiltIn.NA;
|
|
5837
5837
|
if (0 === e.ssX) return r.BuiltIn.Div0;
|
|
@@ -5839,7 +5839,7 @@ function rc(n, t) {
|
|
|
5839
5839
|
const u = e.ssXY / e.ssX, o = e.yMean - u * e.xMean;
|
|
5840
5840
|
return Number.isFinite(o) ? o : r.BuiltIn.Num;
|
|
5841
5841
|
}
|
|
5842
|
-
function
|
|
5842
|
+
function ec(n) {
|
|
5843
5843
|
let t = 0;
|
|
5844
5844
|
const e = [];
|
|
5845
5845
|
for (const r of n) for (const n of r.values()) t += n, e.push(n);
|
|
@@ -5848,28 +5848,28 @@ function tc(n) {
|
|
|
5848
5848
|
t /= u;
|
|
5849
5849
|
let o = 0;
|
|
5850
5850
|
for (let n = 0; n < u; n++) o += Math.pow(e[n] - t, 4);
|
|
5851
|
-
const i =
|
|
5851
|
+
const i = nl(e, !0);
|
|
5852
5852
|
if (0 === i) throw r.BuiltIn.Div0;
|
|
5853
5853
|
return o /= Math.pow(i, 4), u * (u + 1) / ((u - 1) * (u - 2) * (u - 3)) * o - 3 * (u - 1) * (u - 1) / ((u - 2) * (u - 3));
|
|
5854
5854
|
}
|
|
5855
|
-
function
|
|
5855
|
+
function uc(n, r, t, e) {
|
|
5856
5856
|
return n <= 0 || t <= 0 ? NaN : e ? function(n, r, t) {
|
|
5857
5857
|
return n < 0 ? 0 : .5 * Or(-(Math.log(n) - r) / Math.sqrt(2 * t * t));
|
|
5858
5858
|
}(n, r, t) : function(n, r, t) {
|
|
5859
5859
|
return n <= 0 ? 0 : Math.exp(-Math.log(n) - .5 * Math.log(2 * Math.PI) - Math.log(t) - Math.pow(Math.log(n) - r, 2) / (2 * t * t));
|
|
5860
5860
|
}(n, r, t);
|
|
5861
5861
|
}
|
|
5862
|
-
function uc(n, r, t) {
|
|
5863
|
-
return ec(n, r, t, !0);
|
|
5864
|
-
}
|
|
5865
5862
|
function oc(n, r, t) {
|
|
5863
|
+
return uc(n, r, t, !0);
|
|
5864
|
+
}
|
|
5865
|
+
function ic(n, r, t) {
|
|
5866
5866
|
return n <= 0 || n >= 1 || t <= 0 ? NaN : (e = n, u = r, o = t, Math.exp(-1.4142135623730951 * o * Dr(2 * e) + u));
|
|
5867
5867
|
var e, u, o;
|
|
5868
5868
|
}
|
|
5869
|
-
function
|
|
5870
|
-
return
|
|
5869
|
+
function ac(n, r, t) {
|
|
5870
|
+
return ic(n, r, t);
|
|
5871
5871
|
}
|
|
5872
|
-
var
|
|
5872
|
+
var sc = () => {
|
|
5873
5873
|
const t = n.getArgs().getRepeatingArgsAt(0);
|
|
5874
5874
|
for (let n = 0; n < t.getLength(); n++) {
|
|
5875
5875
|
if (t.getKindAt(n) === o.Reference) {
|
|
@@ -5880,17 +5880,17 @@ var ac = () => {
|
|
|
5880
5880
|
}
|
|
5881
5881
|
return null;
|
|
5882
5882
|
};
|
|
5883
|
-
function
|
|
5884
|
-
return
|
|
5883
|
+
function lc(n) {
|
|
5884
|
+
return mc(n);
|
|
5885
5885
|
}
|
|
5886
|
-
var
|
|
5887
|
-
for (const t of n) if (1 === t.size &&
|
|
5886
|
+
var cc = (n) => {
|
|
5887
|
+
for (const t of n) if (1 === t.size && $a(t) && t.entries({ includeEmpty: !1 }).next().done) throw r.BuiltIn.Value;
|
|
5888
5888
|
};
|
|
5889
|
-
function
|
|
5890
|
-
const t =
|
|
5889
|
+
function fc(n) {
|
|
5890
|
+
const t = sc();
|
|
5891
5891
|
if (t) throw t;
|
|
5892
5892
|
for (const r of n) if (r.hasError()) throw r.firstError();
|
|
5893
|
-
|
|
5893
|
+
cc(n);
|
|
5894
5894
|
const e = /* @__PURE__ */ new Map();
|
|
5895
5895
|
let u = 0;
|
|
5896
5896
|
for (const r of n) {
|
|
@@ -5913,10 +5913,10 @@ function cc(n) {
|
|
|
5913
5913
|
const i = [...e.entries()].filter(([, { count: n }]) => n === o).sort((n, r) => n[1].firstSeen - r[1].firstSeen).map(([n]) => [n]);
|
|
5914
5914
|
return 0 === i.length ? r.BuiltIn.NA : i;
|
|
5915
5915
|
}
|
|
5916
|
-
function
|
|
5917
|
-
const t =
|
|
5916
|
+
function mc(n) {
|
|
5917
|
+
const t = sc();
|
|
5918
5918
|
if (t) return t;
|
|
5919
|
-
|
|
5919
|
+
cc(n);
|
|
5920
5920
|
const e = /* @__PURE__ */ new Map();
|
|
5921
5921
|
let u = 0;
|
|
5922
5922
|
for (const r of n) {
|
|
@@ -5939,86 +5939,86 @@ function fc(n) {
|
|
|
5939
5939
|
for (const [n, { count: r, firstSeen: t }] of e) r < 2 || (r > i || r === i && t < a) && (o = n, i = r, a = t);
|
|
5940
5940
|
return null === o ? r.BuiltIn.NA : o;
|
|
5941
5941
|
}
|
|
5942
|
-
function
|
|
5942
|
+
function gc(n, r, t, e) {
|
|
5943
5943
|
return n = Math.trunc(n), r = Math.trunc(r), t <= 0 || t >= 1 || n < 0 || r < 1 ? NaN : e ? function(n, r, t) {
|
|
5944
5944
|
if (n < 0) return 0;
|
|
5945
5945
|
let e = 0, u = !1;
|
|
5946
|
-
const o = Math.min(n,
|
|
5946
|
+
const o = Math.min(n, ks);
|
|
5947
5947
|
for (let i = 0; i <= o; i++) {
|
|
5948
|
-
const o =
|
|
5948
|
+
const o = qs(i, r, t);
|
|
5949
5949
|
if (!Number.isFinite(o)) return _r(t, r, Math.floor(n) + 1);
|
|
5950
5950
|
if (0 === o && u) return e;
|
|
5951
5951
|
0 !== o && (u = !0), e += o;
|
|
5952
5952
|
}
|
|
5953
|
-
return u && n <=
|
|
5954
|
-
}(n, r, t) :
|
|
5953
|
+
return u && n <= ks ? e : _r(t, r, Math.floor(n) + 1);
|
|
5954
|
+
}(n, r, t) : qs(n, r, t);
|
|
5955
5955
|
}
|
|
5956
|
-
function
|
|
5957
|
-
return
|
|
5956
|
+
function hc(n, r, t) {
|
|
5957
|
+
return gc(n, r, t, !1);
|
|
5958
5958
|
}
|
|
5959
|
-
function
|
|
5959
|
+
function pc(n, r, t, e) {
|
|
5960
5960
|
if (t <= 0) return NaN;
|
|
5961
|
-
if (e) return
|
|
5961
|
+
if (e) return xs(n, r, t);
|
|
5962
5962
|
const u = (n - r) / t;
|
|
5963
|
-
return Number.isFinite(u * u) ?
|
|
5964
|
-
}
|
|
5965
|
-
function pc(n, r, t, e) {
|
|
5966
|
-
return hc(n, r, t, e);
|
|
5963
|
+
return Number.isFinite(u * u) ? Ds(n, r, t) : NaN;
|
|
5967
5964
|
}
|
|
5968
|
-
function Nc(n, r, t) {
|
|
5969
|
-
return
|
|
5965
|
+
function Nc(n, r, t, e) {
|
|
5966
|
+
return pc(n, r, t, e);
|
|
5970
5967
|
}
|
|
5971
5968
|
function Ic(n, r, t) {
|
|
5972
|
-
return
|
|
5969
|
+
return n <= 0 || n >= 1 || t <= 0 ? NaN : Vs(n, r, t);
|
|
5973
5970
|
}
|
|
5974
|
-
function bc(n, r) {
|
|
5975
|
-
return
|
|
5971
|
+
function bc(n, r, t) {
|
|
5972
|
+
return Ic(n, r, t);
|
|
5976
5973
|
}
|
|
5977
|
-
function Ec(n) {
|
|
5978
|
-
return
|
|
5974
|
+
function Ec(n, r) {
|
|
5975
|
+
return r ? xs(n, 0, 1) : Number.isFinite(n * n) ? Ds(n, 0, 1) : NaN;
|
|
5979
5976
|
}
|
|
5980
5977
|
function Ac(n) {
|
|
5981
|
-
return
|
|
5978
|
+
return Ec(n, !0);
|
|
5982
5979
|
}
|
|
5983
5980
|
function dc(n) {
|
|
5984
|
-
return
|
|
5981
|
+
return n <= 0 || n >= 1 ? NaN : Vs(n, 0, 1);
|
|
5985
5982
|
}
|
|
5986
|
-
function Mc(n
|
|
5987
|
-
return
|
|
5983
|
+
function Mc(n) {
|
|
5984
|
+
return dc(n);
|
|
5988
5985
|
}
|
|
5989
|
-
function Sc(
|
|
5990
|
-
return
|
|
5986
|
+
function Sc(n, r) {
|
|
5987
|
+
return Sl(n, r);
|
|
5991
5988
|
}
|
|
5992
5989
|
function Rc(r, t) {
|
|
5990
|
+
return Cc(r = n.flattenAreas(r), t);
|
|
5991
|
+
}
|
|
5992
|
+
function Tc(r, t) {
|
|
5993
5993
|
if ((r = n.flattenAreas(r)).hasError()) throw r.firstError();
|
|
5994
5994
|
if (t <= 0 || t >= 1) return NaN;
|
|
5995
5995
|
const e = r.getStats().getSortedNumbers().getPercentile(t, !0);
|
|
5996
5996
|
return null === e ? NaN : e;
|
|
5997
5997
|
}
|
|
5998
|
-
function
|
|
5998
|
+
function Cc(r, t) {
|
|
5999
5999
|
if ((r = n.flattenAreas(r)).hasError()) throw r.firstError();
|
|
6000
6000
|
if (t < 0 || t > 1) return NaN;
|
|
6001
6001
|
const e = r.getStats().getSortedNumbers().getPercentile(t, !1);
|
|
6002
6002
|
return null === e ? NaN : e;
|
|
6003
6003
|
}
|
|
6004
|
-
function
|
|
6005
|
-
return
|
|
6004
|
+
function wc(r, t, e = 3) {
|
|
6005
|
+
return Bc(r = n.flattenAreas(r), t, e);
|
|
6006
6006
|
}
|
|
6007
|
-
function
|
|
6007
|
+
function vc(t, e, u = 3) {
|
|
6008
6008
|
return (t = n.flattenAreas(t)).hasError() ? t.firstError() : t.getStats().getSortedNumbers().getPercentRankOf(e, !0, u) ?? r.BuiltIn.NA;
|
|
6009
6009
|
}
|
|
6010
|
-
function
|
|
6010
|
+
function Bc(t, e, u = 3) {
|
|
6011
6011
|
return (t = n.flattenAreas(t)).hasError() ? t.firstError() : t.getStats().getSortedNumbers().getPercentRankOf(e, !1, u) ?? r.BuiltIn.NA;
|
|
6012
6012
|
}
|
|
6013
|
-
function
|
|
6014
|
-
return Number.isFinite(n * n) ? Math.exp(-.5 * n * n) /
|
|
6013
|
+
function yc(n) {
|
|
6014
|
+
return Number.isFinite(n * n) ? Math.exp(-.5 * n * n) / Ef : NaN;
|
|
6015
6015
|
}
|
|
6016
|
-
function
|
|
6016
|
+
function Oc(n, r, t) {
|
|
6017
6017
|
return n < 0 || r < 0 ? NaN : (n = Math.trunc(n), Number.isFinite(Mr(n + 1)) ? t ? function(n, r) {
|
|
6018
6018
|
if (n < 0) return 0;
|
|
6019
6019
|
if (n <= 170) {
|
|
6020
6020
|
const t = [];
|
|
6021
|
-
for (let e = 0; e <= n; e++) t.push(
|
|
6021
|
+
for (let e = 0; e <= n; e++) t.push(Ws(e, r));
|
|
6022
6022
|
if (t.every(Number.isFinite)) {
|
|
6023
6023
|
let n = 0;
|
|
6024
6024
|
for (let r = t.length - 1; r >= 0; r--) n += t[r];
|
|
@@ -6026,13 +6026,13 @@ function yc(n, r, t) {
|
|
|
6026
6026
|
}
|
|
6027
6027
|
}
|
|
6028
6028
|
return 1 - xr(Math.floor(n) + 1, r);
|
|
6029
|
-
}(n, r) :
|
|
6029
|
+
}(n, r) : Ws(n, r) : NaN);
|
|
6030
6030
|
}
|
|
6031
|
-
function
|
|
6032
|
-
return
|
|
6031
|
+
function Dc(n, r, t) {
|
|
6032
|
+
return Oc(n, r, t);
|
|
6033
6033
|
}
|
|
6034
|
-
function
|
|
6035
|
-
|
|
6034
|
+
function xc(n, t, e, u) {
|
|
6035
|
+
cc([n, t]);
|
|
6036
6036
|
const o = n.flatten(), i = t.flatten();
|
|
6037
6037
|
if (o.getRowCount() !== i.getRowCount()) return r.BuiltIn.NA;
|
|
6038
6038
|
if (n.hasError()) return n.firstError();
|
|
@@ -6042,38 +6042,38 @@ function Dc(n, t, e, u) {
|
|
|
6042
6042
|
for (const [[n, r]] of o.alignValues([i])) "number" == typeof n && "number" == typeof r && (s += r, n >= e && n <= a && (l += r));
|
|
6043
6043
|
return 1e10 !== Math.round(1e10 * s) ? r.BuiltIn.Num : l;
|
|
6044
6044
|
}
|
|
6045
|
-
function xc(r, t) {
|
|
6046
|
-
return Lc(r = n.flattenAreas(r), t);
|
|
6047
|
-
}
|
|
6048
6045
|
function Vc(r, t) {
|
|
6046
|
+
return Fc(r = n.flattenAreas(r), t);
|
|
6047
|
+
}
|
|
6048
|
+
function Lc(r, t) {
|
|
6049
6049
|
if ((r = n.flattenAreas(r)).hasError()) throw r.firstError();
|
|
6050
6050
|
if ((t = Math.trunc(t)) < 1 || t > 3) return NaN;
|
|
6051
6051
|
const e = t / 4, u = r.getStats().getSortedNumbers().getPercentile(e, !0);
|
|
6052
6052
|
return null === u ? NaN : u;
|
|
6053
6053
|
}
|
|
6054
|
-
function
|
|
6054
|
+
function Fc(r, t) {
|
|
6055
6055
|
if ((r = n.flattenAreas(r)).hasError()) throw r.firstError();
|
|
6056
6056
|
if ((t = Math.trunc(t)) < 0 || t > 4) return NaN;
|
|
6057
6057
|
const e = t / 4, u = r.getStats().getSortedNumbers().getPercentile(e, !1);
|
|
6058
6058
|
return null === u ? NaN : u;
|
|
6059
6059
|
}
|
|
6060
|
-
function
|
|
6061
|
-
return
|
|
6060
|
+
function Pc(n, r, t = !1) {
|
|
6061
|
+
return _c(n, r, t);
|
|
6062
6062
|
}
|
|
6063
|
-
function
|
|
6063
|
+
function Uc(t, e, u = !1) {
|
|
6064
6064
|
const o = n.flattenAreas(e);
|
|
6065
6065
|
if (o.hasError()) return o.firstError();
|
|
6066
6066
|
const i = o.getStats().getSortedNumbers().getRankOf(t, !u, !0);
|
|
6067
6067
|
return null === i ? r.BuiltIn.NA : i;
|
|
6068
6068
|
}
|
|
6069
|
-
function
|
|
6069
|
+
function _c(t, e, u = !1) {
|
|
6070
6070
|
const o = n.flattenAreas(e);
|
|
6071
6071
|
if (o.hasError()) return o.firstError();
|
|
6072
6072
|
const i = o.getStats().getSortedNumbers().getRankOf(t, !u, !1);
|
|
6073
6073
|
return null === i ? r.BuiltIn.NA : i;
|
|
6074
6074
|
}
|
|
6075
|
-
function
|
|
6076
|
-
const e =
|
|
6075
|
+
function Gc(n, t) {
|
|
6076
|
+
const e = df(n, t);
|
|
6077
6077
|
if (r.isError(e)) return e;
|
|
6078
6078
|
if (null === e) return r.BuiltIn.NA;
|
|
6079
6079
|
if (!Number.isFinite(e.ssX) || !Number.isFinite(e.ssY)) return r.BuiltIn.Num;
|
|
@@ -6081,7 +6081,7 @@ function _c(n, t) {
|
|
|
6081
6081
|
const u = e.ssXY / Math.sqrt(e.ssX * e.ssY);
|
|
6082
6082
|
return u * u;
|
|
6083
6083
|
}
|
|
6084
|
-
function
|
|
6084
|
+
function Xc(n) {
|
|
6085
6085
|
let t = 0, e = 0;
|
|
6086
6086
|
for (const r of n) {
|
|
6087
6087
|
if (r.hasError()) return r.firstError();
|
|
@@ -6103,7 +6103,7 @@ function Gc(n) {
|
|
|
6103
6103
|
});
|
|
6104
6104
|
return t / ((t - 1) * (t - 2)) * a;
|
|
6105
6105
|
}
|
|
6106
|
-
function
|
|
6106
|
+
function Hc(n) {
|
|
6107
6107
|
let t = 0, e = 0;
|
|
6108
6108
|
for (const r of n) {
|
|
6109
6109
|
if (r.hasError()) return r.firstError();
|
|
@@ -6125,8 +6125,8 @@ function Xc(n) {
|
|
|
6125
6125
|
});
|
|
6126
6126
|
return a / t;
|
|
6127
6127
|
}
|
|
6128
|
-
function
|
|
6129
|
-
const e =
|
|
6128
|
+
function kc(n, t) {
|
|
6129
|
+
const e = df(n, t);
|
|
6130
6130
|
if (r.isError(e)) return e;
|
|
6131
6131
|
if (null === e) return r.BuiltIn.NA;
|
|
6132
6132
|
if (0 === e.ssX) return r.BuiltIn.Div0;
|
|
@@ -6134,67 +6134,67 @@ function Hc(n, t) {
|
|
|
6134
6134
|
const u = e.ssXY / e.ssX;
|
|
6135
6135
|
return Number.isFinite(u) ? u : r.BuiltIn.Num;
|
|
6136
6136
|
}
|
|
6137
|
-
function
|
|
6137
|
+
function Wc(n, r, t) {
|
|
6138
6138
|
return t <= 0 ? NaN : (n - r) / t;
|
|
6139
6139
|
}
|
|
6140
6140
|
function Yc(n) {
|
|
6141
|
-
const r =
|
|
6141
|
+
const r = cf(n);
|
|
6142
6142
|
return Math.sqrt(r);
|
|
6143
6143
|
}
|
|
6144
|
-
function Wc(n) {
|
|
6145
|
-
return Yc(n);
|
|
6146
|
-
}
|
|
6147
6144
|
function Kc(n) {
|
|
6148
|
-
|
|
6149
|
-
return Math.sqrt(r);
|
|
6145
|
+
return Yc(n);
|
|
6150
6146
|
}
|
|
6151
6147
|
function qc(n) {
|
|
6152
|
-
|
|
6148
|
+
const r = sf(n);
|
|
6149
|
+
return Math.sqrt(r);
|
|
6153
6150
|
}
|
|
6154
6151
|
function zc(n) {
|
|
6155
|
-
|
|
6156
|
-
return Math.sqrt(r);
|
|
6152
|
+
return qc(n);
|
|
6157
6153
|
}
|
|
6158
6154
|
function Qc(n) {
|
|
6159
6155
|
const r = gf(n);
|
|
6160
6156
|
return Math.sqrt(r);
|
|
6161
6157
|
}
|
|
6162
|
-
function jc(n
|
|
6163
|
-
const
|
|
6158
|
+
function jc(n) {
|
|
6159
|
+
const r = hf(n);
|
|
6160
|
+
return Math.sqrt(r);
|
|
6161
|
+
}
|
|
6162
|
+
function $c(n, t) {
|
|
6163
|
+
const e = df(n, t);
|
|
6164
6164
|
return r.isError(e) ? e : null === e ? r.BuiltIn.NA : e.n < 3 || 0 === e.ssX ? r.BuiltIn.Div0 : Number.isFinite(e.ssX) && Number.isFinite(e.ssY) ? Math.sqrt((e.ssY - e.ssXY * e.ssXY / e.ssX) / (e.n - 2)) : r.BuiltIn.Num;
|
|
6165
6165
|
}
|
|
6166
|
-
function
|
|
6167
|
-
return (r = Math.trunc(r)) < 1 || r >
|
|
6166
|
+
function Zc(n, r, t) {
|
|
6167
|
+
return (r = Math.trunc(r)) < 1 || r > js ? NaN : t ? 0 === n ? .5 : function(n, r) {
|
|
6168
6168
|
if (!Number.isFinite(n * n)) return NaN;
|
|
6169
|
-
const t = .5 *
|
|
6169
|
+
const t = .5 * Xs(n, r);
|
|
6170
6170
|
return n > 0 ? 1 - t : t;
|
|
6171
6171
|
}(n, r) : function(n, r) {
|
|
6172
6172
|
return r = r > 1e100 ? 1e100 : r, 1 / (Math.sqrt(r) * Rr(.5, r / 2)) * Math.pow(1 + n * n / r, -(r + 1) / 2);
|
|
6173
6173
|
}(n, r);
|
|
6174
6174
|
}
|
|
6175
|
-
function
|
|
6176
|
-
return n < 0 || 1 !== (t = Math.floor(t +
|
|
6177
|
-
}
|
|
6178
|
-
function Jc(n, r) {
|
|
6179
|
-
return (r = Math.trunc(r)) < 1 || n < 0 || r > Qs ? NaN : 2 * _s(n, r);
|
|
6175
|
+
function Jc(n, r, t) {
|
|
6176
|
+
return n < 0 || 1 !== (t = Math.floor(t + rl)) && 2 !== t ? NaN : 1 === t ? rf(n, r) : nf(n, r);
|
|
6180
6177
|
}
|
|
6181
6178
|
function nf(n, r) {
|
|
6182
|
-
return (r = Math.trunc(r)) < 1 || r >
|
|
6179
|
+
return (r = Math.trunc(r)) < 1 || n < 0 || r > js ? NaN : 2 * Gs(n, r);
|
|
6183
6180
|
}
|
|
6184
6181
|
function rf(n, r) {
|
|
6185
|
-
return
|
|
6182
|
+
return (r = Math.trunc(r)) < 1 || r > js ? NaN : 0 === n ? .5 : Gs(n, r);
|
|
6186
6183
|
}
|
|
6187
6184
|
function tf(n, r) {
|
|
6188
|
-
return
|
|
6185
|
+
return n <= 0 || n >= 1 || r < 1 || (r = Math.trunc(r)) > js ? NaN : 1 === r ? Math.tan(Math.PI * (n - .5)) : Hs(n, r);
|
|
6189
6186
|
}
|
|
6190
6187
|
function ef(n, r) {
|
|
6191
|
-
return
|
|
6188
|
+
return uf(n, r);
|
|
6189
|
+
}
|
|
6190
|
+
function uf(n, r) {
|
|
6191
|
+
return n <= 0 || r < 1 || (r = Math.trunc(r)) > js ? NaN : 1 === r ? Math.tan(Math.PI * (.5 - n / 2)) : -Hs(n / 2, r);
|
|
6192
6192
|
}
|
|
6193
|
-
function
|
|
6193
|
+
function of(r, t) {
|
|
6194
6194
|
if ((r = n.flattenAreas(r)).hasError()) return r.firstError();
|
|
6195
6195
|
if (t < 0 || t >= 1) return NaN;
|
|
6196
6196
|
const e = [];
|
|
6197
|
-
for (const { value: n } of r.entries(
|
|
6197
|
+
for (const { value: n } of r.entries(af)) "number" == typeof n && e.push(n);
|
|
6198
6198
|
const u = e.length, o = Math.floor(u * t / 2);
|
|
6199
6199
|
let i = 0, a = 0;
|
|
6200
6200
|
if (0 === o) {
|
|
@@ -6210,20 +6210,20 @@ function uf(r, t) {
|
|
|
6210
6210
|
}
|
|
6211
6211
|
return 0 === a ? NaN : i / a;
|
|
6212
6212
|
}
|
|
6213
|
-
var
|
|
6214
|
-
function
|
|
6213
|
+
var af = { axis: t.Axis.Row };
|
|
6214
|
+
function sf(n) {
|
|
6215
6215
|
let r = 0, t = 0;
|
|
6216
|
-
const e =
|
|
6216
|
+
const e = us(n);
|
|
6217
6217
|
for (const u of n) for (const n of u.values()) r += Math.pow(n - e, 2), t++;
|
|
6218
6218
|
const u = r / t;
|
|
6219
6219
|
return isNaN(u) ? NaN : u;
|
|
6220
6220
|
}
|
|
6221
|
-
function sf(n) {
|
|
6222
|
-
return af(n);
|
|
6223
|
-
}
|
|
6224
6221
|
function lf(n) {
|
|
6222
|
+
return sf(n);
|
|
6223
|
+
}
|
|
6224
|
+
function cf(n) {
|
|
6225
6225
|
let t = 0, e = 0;
|
|
6226
|
-
const o =
|
|
6226
|
+
const o = us(n);
|
|
6227
6227
|
for (const r of n) for (const n of r.values({
|
|
6228
6228
|
type: u.Number,
|
|
6229
6229
|
onError: "value"
|
|
@@ -6231,16 +6231,16 @@ function lf(n) {
|
|
|
6231
6231
|
if (e < 2) throw r.BuiltIn.Div0;
|
|
6232
6232
|
return t / (e - 1);
|
|
6233
6233
|
}
|
|
6234
|
-
function
|
|
6235
|
-
return
|
|
6234
|
+
function ff(n) {
|
|
6235
|
+
return cf(n);
|
|
6236
6236
|
}
|
|
6237
|
-
var
|
|
6237
|
+
var mf = (n) => {
|
|
6238
6238
|
const r = [];
|
|
6239
6239
|
let t = 0;
|
|
6240
6240
|
for (const e of n) {
|
|
6241
|
-
const n =
|
|
6241
|
+
const n = $a(e);
|
|
6242
6242
|
for (const u of e.values({ type: null })) {
|
|
6243
|
-
const e =
|
|
6243
|
+
const e = rs(u, n);
|
|
6244
6244
|
null !== e && (r.push(e), t += e);
|
|
6245
6245
|
}
|
|
6246
6246
|
}
|
|
@@ -6252,17 +6252,17 @@ var ff = (n) => {
|
|
|
6252
6252
|
count: e
|
|
6253
6253
|
};
|
|
6254
6254
|
};
|
|
6255
|
-
function
|
|
6256
|
-
const { sigma: t, count: e } =
|
|
6255
|
+
function gf(n) {
|
|
6256
|
+
const { sigma: t, count: e } = mf(n);
|
|
6257
6257
|
if (e < 2) throw r.BuiltIn.Div0;
|
|
6258
6258
|
return t / (e - 1);
|
|
6259
6259
|
}
|
|
6260
|
-
function
|
|
6261
|
-
const { sigma: t, count: e } =
|
|
6260
|
+
function hf(n) {
|
|
6261
|
+
const { sigma: t, count: e } = mf(n);
|
|
6262
6262
|
if (0 === e) throw r.BuiltIn.Div0;
|
|
6263
6263
|
return t / e;
|
|
6264
6264
|
}
|
|
6265
|
-
function
|
|
6265
|
+
function pf(n, t, e, u) {
|
|
6266
6266
|
if (n < 0 || t <= 0 || e <= 0) return NaN;
|
|
6267
6267
|
if (!u && 0 === n) return 0;
|
|
6268
6268
|
const o = Math.pow(n / e, t);
|
|
@@ -6273,10 +6273,10 @@ function hf(n, t, e, u) {
|
|
|
6273
6273
|
if (0 === a) throw r.BuiltIn.Div0;
|
|
6274
6274
|
return i / a * Math.exp(-o);
|
|
6275
6275
|
}
|
|
6276
|
-
function
|
|
6277
|
-
return
|
|
6276
|
+
function Nf(n, r, t, e) {
|
|
6277
|
+
return pf(n, r, t, e);
|
|
6278
6278
|
}
|
|
6279
|
-
function
|
|
6279
|
+
function If(t, e, u) {
|
|
6280
6280
|
const o = [];
|
|
6281
6281
|
if (void 0 === t) o.push(0);
|
|
6282
6282
|
else {
|
|
@@ -6296,14 +6296,14 @@ function Nf(t, e, u) {
|
|
|
6296
6296
|
if (0 === n) throw r.BuiltIn.Div0;
|
|
6297
6297
|
u = Math.sqrt(n / (i - 1));
|
|
6298
6298
|
} else if (!(u > 0)) throw r.BuiltIn.Num;
|
|
6299
|
-
return 1 -
|
|
6299
|
+
return 1 - Ec((a - e) / (u / Math.sqrt(i)), !0);
|
|
6300
6300
|
}
|
|
6301
|
-
function
|
|
6302
|
-
return
|
|
6301
|
+
function bf(n, r, t) {
|
|
6302
|
+
return If(n, r, t);
|
|
6303
6303
|
}
|
|
6304
|
-
var
|
|
6305
|
-
function
|
|
6306
|
-
const e =
|
|
6304
|
+
var Ef = 2.5066282746310002, Af = (n) => 1 === n.size && $a(n) ? n.hasError() ? n.firstError() : n.entries({ includeEmpty: !1 }).next().done ? r.BuiltIn.Value : null : null;
|
|
6305
|
+
function df(n, t) {
|
|
6306
|
+
const e = Af(n) ?? Af(t);
|
|
6307
6307
|
if (e) return e;
|
|
6308
6308
|
const u = n.getRowCount(), o = n.getColumnCount();
|
|
6309
6309
|
if (u * o !== t.getRowCount() * t.getColumnCount()) return null;
|
|
@@ -6333,11 +6333,11 @@ function Af(n, t) {
|
|
|
6333
6333
|
ssXY: p
|
|
6334
6334
|
};
|
|
6335
6335
|
}
|
|
6336
|
-
var
|
|
6337
|
-
DELAY: () =>
|
|
6338
|
-
WAIT: () =>
|
|
6336
|
+
var Mf = c({
|
|
6337
|
+
DELAY: () => Sf,
|
|
6338
|
+
WAIT: () => wf
|
|
6339
6339
|
});
|
|
6340
|
-
async function
|
|
6340
|
+
async function Sf(n, r, t = "No label") {
|
|
6341
6341
|
return new Promise((t) => {
|
|
6342
6342
|
setTimeout(() => {
|
|
6343
6343
|
t(r);
|
|
@@ -6345,82 +6345,82 @@ async function Mf(n, r, t = "No label") {
|
|
|
6345
6345
|
});
|
|
6346
6346
|
}
|
|
6347
6347
|
globalThis.debugEventTarget ??= new EventTarget();
|
|
6348
|
-
var
|
|
6349
|
-
function
|
|
6348
|
+
var Rf = globalThis.debugEventTarget, Tf = /* @__PURE__ */ new Map();
|
|
6349
|
+
function Cf(n) {
|
|
6350
6350
|
const { inbox: r, waiters: t } = function(n) {
|
|
6351
|
-
if (
|
|
6351
|
+
if (Tf.has(n)) return Tf.get(n);
|
|
6352
6352
|
const r = {
|
|
6353
6353
|
inbox: [],
|
|
6354
6354
|
waiters: []
|
|
6355
6355
|
};
|
|
6356
|
-
return
|
|
6356
|
+
return Rf.addEventListener(n, (n) => {
|
|
6357
6357
|
r.waiters.length ? r.waiters.shift()(n.detail) : r.inbox.push(n.detail);
|
|
6358
|
-
}),
|
|
6358
|
+
}), Tf.set(n, r), r;
|
|
6359
6359
|
}(n);
|
|
6360
6360
|
return r.length ? Promise.resolve(r.shift()) : new Promise((n) => t.push(n));
|
|
6361
6361
|
}
|
|
6362
|
-
async function
|
|
6363
|
-
const t = await
|
|
6362
|
+
async function wf(n, r) {
|
|
6363
|
+
const t = await Cf(n);
|
|
6364
6364
|
let e = r?.getValueAt(0, 0) ?? "", u = `event["${n}"`;
|
|
6365
6365
|
return void 0 !== t && (u += `, payload: ${t}`), "" !== e && (u += `, input: ${e}`), u += "]", console.log(u), "" + t + e;
|
|
6366
6366
|
}
|
|
6367
|
-
var
|
|
6368
|
-
ARRAYTOTEXT: () =>
|
|
6369
|
-
ASC: () =>
|
|
6370
|
-
CHAR: () =>
|
|
6371
|
-
CLEAN: () =>
|
|
6372
|
-
CODE: () =>
|
|
6373
|
-
CONCAT: () =>
|
|
6374
|
-
CONCATENATE: () =>
|
|
6375
|
-
DBCS: () =>
|
|
6376
|
-
DETECTLANGUAGE: () =>
|
|
6377
|
-
DOLLAR: () =>
|
|
6378
|
-
EXACT: () =>
|
|
6379
|
-
FIND: () =>
|
|
6380
|
-
FINDB: () =>
|
|
6367
|
+
var vf = c({
|
|
6368
|
+
ARRAYTOTEXT: () => Df,
|
|
6369
|
+
ASC: () => Of,
|
|
6370
|
+
CHAR: () => xf,
|
|
6371
|
+
CLEAN: () => Vf,
|
|
6372
|
+
CODE: () => Lf,
|
|
6373
|
+
CONCAT: () => Ff,
|
|
6374
|
+
CONCATENATE: () => Uf,
|
|
6375
|
+
DBCS: () => Gf,
|
|
6376
|
+
DETECTLANGUAGE: () => _f,
|
|
6377
|
+
DOLLAR: () => Xf,
|
|
6378
|
+
EXACT: () => Hf,
|
|
6379
|
+
FIND: () => kf,
|
|
6380
|
+
FINDB: () => Wf,
|
|
6381
6381
|
FIXED: () => Yf,
|
|
6382
|
-
JOIN: () =>
|
|
6383
|
-
LEFT: () =>
|
|
6384
|
-
LEFTB: () =>
|
|
6385
|
-
LEN: () =>
|
|
6386
|
-
LENB: () =>
|
|
6387
|
-
LOWER: () =>
|
|
6388
|
-
MID: () =>
|
|
6389
|
-
MIDB: () =>
|
|
6390
|
-
NUMBERVALUE: () =>
|
|
6391
|
-
PROPER: () =>
|
|
6392
|
-
REPLACE: () =>
|
|
6393
|
-
REPLACEB: () =>
|
|
6394
|
-
REPT: () =>
|
|
6395
|
-
RIGHT: () =>
|
|
6396
|
-
RIGHTB: () =>
|
|
6397
|
-
SEARCH: () =>
|
|
6398
|
-
SEARCHB: () =>
|
|
6399
|
-
SPLIT: () =>
|
|
6400
|
-
SUBSTITUTE: () =>
|
|
6401
|
-
T: () =>
|
|
6402
|
-
TEXT: () =>
|
|
6403
|
-
TEXTAFTER: () =>
|
|
6404
|
-
TEXTBEFORE: () =>
|
|
6405
|
-
TEXTJOIN: () =>
|
|
6406
|
-
TEXTSPLIT: () =>
|
|
6407
|
-
TRANSLATE: () =>
|
|
6408
|
-
TRIM: () =>
|
|
6409
|
-
UNICHAR: () =>
|
|
6410
|
-
UNICODE: () =>
|
|
6411
|
-
UPPER: () =>
|
|
6412
|
-
VALUE: () =>
|
|
6413
|
-
VALUETOTEXT: () =>
|
|
6414
|
-
}),
|
|
6382
|
+
JOIN: () => Kf,
|
|
6383
|
+
LEFT: () => qf,
|
|
6384
|
+
LEFTB: () => zf,
|
|
6385
|
+
LEN: () => Qf,
|
|
6386
|
+
LENB: () => jf,
|
|
6387
|
+
LOWER: () => $f,
|
|
6388
|
+
MID: () => Zf,
|
|
6389
|
+
MIDB: () => Jf,
|
|
6390
|
+
NUMBERVALUE: () => nm,
|
|
6391
|
+
PROPER: () => rm,
|
|
6392
|
+
REPLACE: () => tm,
|
|
6393
|
+
REPLACEB: () => em,
|
|
6394
|
+
REPT: () => um,
|
|
6395
|
+
RIGHT: () => om,
|
|
6396
|
+
RIGHTB: () => im,
|
|
6397
|
+
SEARCH: () => am,
|
|
6398
|
+
SEARCHB: () => sm,
|
|
6399
|
+
SPLIT: () => lm,
|
|
6400
|
+
SUBSTITUTE: () => cm,
|
|
6401
|
+
T: () => fm,
|
|
6402
|
+
TEXT: () => gm,
|
|
6403
|
+
TEXTAFTER: () => hm,
|
|
6404
|
+
TEXTBEFORE: () => pm,
|
|
6405
|
+
TEXTJOIN: () => Nm,
|
|
6406
|
+
TEXTSPLIT: () => Im,
|
|
6407
|
+
TRANSLATE: () => bm,
|
|
6408
|
+
TRIM: () => Em,
|
|
6409
|
+
UNICHAR: () => Am,
|
|
6410
|
+
UNICODE: () => dm,
|
|
6411
|
+
UPPER: () => Mm,
|
|
6412
|
+
VALUE: () => Sm,
|
|
6413
|
+
VALUETOTEXT: () => Rm
|
|
6414
|
+
}), Bf = /* @__PURE__ */ new Set([
|
|
6415
6415
|
32,
|
|
6416
6416
|
9,
|
|
6417
6417
|
13,
|
|
6418
6418
|
10
|
|
6419
|
-
]),
|
|
6420
|
-
function
|
|
6421
|
-
return
|
|
6419
|
+
]), yf = 255;
|
|
6420
|
+
function Of(n) {
|
|
6421
|
+
return Tm() ? ym(n) : n;
|
|
6422
6422
|
}
|
|
6423
|
-
function
|
|
6423
|
+
function Df(n, t = 0) {
|
|
6424
6424
|
if (0 !== (t = Math.floor(t)) && 1 !== t) throw r.BuiltIn.Value;
|
|
6425
6425
|
const e = 1 === t;
|
|
6426
6426
|
if (1 === n.size) {
|
|
@@ -6432,10 +6432,10 @@ function Of(n, t = 0) {
|
|
|
6432
6432
|
if (!e) {
|
|
6433
6433
|
if (1 === n.size) {
|
|
6434
6434
|
const r = n.getValueAt(0, 0);
|
|
6435
|
-
return null === r ? null :
|
|
6435
|
+
return null === r ? null : Rm(r, t);
|
|
6436
6436
|
}
|
|
6437
6437
|
const { rows: r, columns: e } = n.getShape(), u = [];
|
|
6438
|
-
for (let o = 0; o < r; o++) for (let r = 0; r < e; r++) u.push(
|
|
6438
|
+
for (let o = 0; o < r; o++) for (let r = 0; r < e; r++) u.push(Rm(n.getValueAt(o, r), t));
|
|
6439
6439
|
return u.join(", ");
|
|
6440
6440
|
}
|
|
6441
6441
|
const o = n.getValues();
|
|
@@ -6443,35 +6443,35 @@ function Of(n, t = 0) {
|
|
|
6443
6443
|
const i = o.length;
|
|
6444
6444
|
for (let n = 0; n < i; n++) {
|
|
6445
6445
|
const r = o[n], e = r.length;
|
|
6446
|
-
for (let n = 0; n < e; n++) u +=
|
|
6446
|
+
for (let n = 0; n < e; n++) u += Rm(r[n], t), n < e - 1 && (u += ",");
|
|
6447
6447
|
n < i - 1 && (u += ";");
|
|
6448
6448
|
}
|
|
6449
6449
|
return e && (u += "}"), u;
|
|
6450
6450
|
}
|
|
6451
|
-
function
|
|
6452
|
-
const t =
|
|
6451
|
+
function xf(n) {
|
|
6452
|
+
const t = Gm(n);
|
|
6453
6453
|
if (!(t >= 1 && t <= 255)) throw r.BuiltIn.Value;
|
|
6454
6454
|
return String.fromCharCode(t);
|
|
6455
6455
|
}
|
|
6456
|
-
function
|
|
6456
|
+
function Vf(n) {
|
|
6457
6457
|
return n.replace(/[\x00-\x1F\x80-\x9F]/g, "");
|
|
6458
6458
|
}
|
|
6459
|
-
function
|
|
6459
|
+
function Lf(n) {
|
|
6460
6460
|
if (0 === n.length) throw r.BuiltIn.Value;
|
|
6461
6461
|
return n.charCodeAt(0);
|
|
6462
6462
|
}
|
|
6463
|
-
function
|
|
6463
|
+
function Ff(n) {
|
|
6464
6464
|
let t = "";
|
|
6465
6465
|
for (const u of n) for (const n of u.values()) if (t += n, t.length > e.MAX_TEXT_LENGTH) throw r.BuiltIn.Calc;
|
|
6466
6466
|
return t;
|
|
6467
6467
|
}
|
|
6468
|
-
var
|
|
6468
|
+
var Pf = {
|
|
6469
6469
|
type: u.String,
|
|
6470
6470
|
coerce: [u.Boolean, u.Number],
|
|
6471
6471
|
onError: "value",
|
|
6472
6472
|
misalignValue: r.BuiltIn.NA
|
|
6473
6473
|
};
|
|
6474
|
-
function
|
|
6474
|
+
function Uf(t) {
|
|
6475
6475
|
let u = n.createRange(1, 1, "");
|
|
6476
6476
|
for (const o of t) {
|
|
6477
6477
|
const t = r.isError(o) ? n.createRange(1, 1, o) : o;
|
|
@@ -6483,78 +6483,78 @@ function Pf(t) {
|
|
|
6483
6483
|
let o = e.MAX_TEXT_LENGTH;
|
|
6484
6484
|
const i = u.charCodeAt(o - 1), a = u.charCodeAt(o);
|
|
6485
6485
|
return i >= 55296 && i <= 56319 && a >= 56320 && a <= 57343 && o--, u.slice(0, o);
|
|
6486
|
-
},
|
|
6486
|
+
}, Pf);
|
|
6487
6487
|
}
|
|
6488
6488
|
return 1 === u.getRowCount() && 1 === u.getColumnCount() ? u.getValueAt(0, 0) ?? "" : u;
|
|
6489
6489
|
}
|
|
6490
|
-
function
|
|
6490
|
+
function _f(n) {
|
|
6491
6491
|
return r.BuiltIn.NA;
|
|
6492
6492
|
}
|
|
6493
|
-
function
|
|
6494
|
-
return
|
|
6493
|
+
function Gf(n) {
|
|
6494
|
+
return Tm() ? Bm(n) : n;
|
|
6495
6495
|
}
|
|
6496
|
-
function
|
|
6497
|
-
if ((e = Math.trunc(e)) >
|
|
6498
|
-
t =
|
|
6496
|
+
function Xf(t, e = 2) {
|
|
6497
|
+
if ((e = Math.trunc(e)) > Pm) throw r.BuiltIn.Value;
|
|
6498
|
+
t = Fm(t, e < 0 ? e : Math.min(e, 15)), e < 0 && (e = 0, t = t || 0);
|
|
6499
6499
|
const u = n.getRuntime().getLocaleProfile().currencySymbol, o = e > 0 ? `.${"0".repeat(e)}` : "", i = `(${u}#,##0${o})`, a = Object.is(t, -0) ? i : `${u}#,##0${o}_);${i}`;
|
|
6500
|
-
if (
|
|
6500
|
+
if (_m(t, e, !0, u.length) > Um) throw r.BuiltIn.Value;
|
|
6501
6501
|
return n.getNumberFormat(a, t).trim();
|
|
6502
6502
|
}
|
|
6503
|
-
function
|
|
6503
|
+
function Hf(n, r) {
|
|
6504
6504
|
return n === r;
|
|
6505
6505
|
}
|
|
6506
|
-
function
|
|
6507
|
-
e =
|
|
6508
|
-
const u =
|
|
6506
|
+
function kf(n, t, e = 1) {
|
|
6507
|
+
e = Gm(e);
|
|
6508
|
+
const u = xm(t), o = u ? jm(t) : t.length;
|
|
6509
6509
|
if (e < 1 || e > o + 1) throw r.BuiltIn.Value;
|
|
6510
|
-
const i = u ?
|
|
6510
|
+
const i = u ? $m(t, e - 1) : e - 1, a = t.indexOf(n, i);
|
|
6511
6511
|
if (-1 === a) throw r.BuiltIn.Value;
|
|
6512
|
-
return u ?
|
|
6512
|
+
return u ? Zm(t, a) + 1 : a + 1;
|
|
6513
6513
|
}
|
|
6514
|
-
function
|
|
6515
|
-
if ((e =
|
|
6514
|
+
function Wf(n, t, e = 1) {
|
|
6515
|
+
if ((e = Gm(e)) < 1 || e > t.length + 1) throw r.BuiltIn.Value;
|
|
6516
6516
|
const u = t.indexOf(n, e - 1);
|
|
6517
6517
|
if (-1 === u) throw r.BuiltIn.Value;
|
|
6518
6518
|
return u + 1;
|
|
6519
6519
|
}
|
|
6520
6520
|
function Yf(t, e = 2, u = !1) {
|
|
6521
|
-
if ((e = Math.trunc(e)) >
|
|
6522
|
-
t =
|
|
6521
|
+
if ((e = Math.trunc(e)) > Pm) throw r.BuiltIn.Value;
|
|
6522
|
+
t = Fm(t, e < 0 ? e : Math.min(e, 15)), e < 0 && (e = 0);
|
|
6523
6523
|
const o = `${u ? "" : "#,"}##0${e > 0 ? `.${"0".repeat(e)}` : ""}`;
|
|
6524
|
-
if (
|
|
6524
|
+
if (_m(t, e, !u, 0) > Um) throw r.BuiltIn.Value;
|
|
6525
6525
|
return n.getNumberFormat(o, t).trim();
|
|
6526
6526
|
}
|
|
6527
|
-
function
|
|
6528
|
-
return
|
|
6527
|
+
function Kf(n, r) {
|
|
6528
|
+
return Nm([n], !0, [r]);
|
|
6529
6529
|
}
|
|
6530
|
-
function
|
|
6530
|
+
function qf(n, t = 1) {
|
|
6531
6531
|
if (t < 0) throw r.BuiltIn.Value;
|
|
6532
|
-
return t =
|
|
6533
|
-
}
|
|
6534
|
-
function qf(n, r = 1) {
|
|
6535
|
-
return Kf(n, r);
|
|
6532
|
+
return t = Gm(t), xm(n) ? n.slice(0, $m(n, t)) : t > n.length ? n : n.slice(0, t);
|
|
6536
6533
|
}
|
|
6537
|
-
function zf(n) {
|
|
6538
|
-
return
|
|
6534
|
+
function zf(n, r = 1) {
|
|
6535
|
+
return qf(n, r);
|
|
6539
6536
|
}
|
|
6540
6537
|
function Qf(n) {
|
|
6541
|
-
return n.length;
|
|
6538
|
+
return Vm.test(n) ? jm(n) : n.length;
|
|
6542
6539
|
}
|
|
6543
6540
|
function jf(n) {
|
|
6544
|
-
return
|
|
6541
|
+
return n.length;
|
|
6545
6542
|
}
|
|
6546
|
-
function $f(n
|
|
6547
|
-
|
|
6548
|
-
if (t = Math.trunc(t), e = Math.trunc(e), !Dm(n)) return t > n.length ? "" : n.slice(t - 1, t + e - 1);
|
|
6549
|
-
const u = jm(n, t - 1);
|
|
6550
|
-
return u >= n.length ? "" : n.slice(u, jm(n, t - 1 + e));
|
|
6543
|
+
function $f(n) {
|
|
6544
|
+
return Qm(n, !1);
|
|
6551
6545
|
}
|
|
6552
6546
|
function Zf(n, t, e) {
|
|
6547
|
+
if (t < 1 || e < 0) return r.BuiltIn.Value;
|
|
6548
|
+
if (t = Math.trunc(t), e = Math.trunc(e), !xm(n)) return t > n.length ? "" : n.slice(t - 1, t + e - 1);
|
|
6549
|
+
const u = $m(n, t - 1);
|
|
6550
|
+
return u >= n.length ? "" : n.slice(u, $m(n, t - 1 + e));
|
|
6551
|
+
}
|
|
6552
|
+
function Jf(n, t, e) {
|
|
6553
6553
|
return t < 1 || e < 0 ? r.BuiltIn.Value : (t = Math.trunc(t), e = Math.trunc(e), t > n.length ? "" : n.slice(t - 1, t - 1 + e));
|
|
6554
6554
|
}
|
|
6555
|
-
function
|
|
6555
|
+
function nm(t, e, u) {
|
|
6556
6556
|
if (0 === e?.length || 0 === u?.length) throw r.BuiltIn.Value;
|
|
6557
|
-
if (t.length >
|
|
6557
|
+
if (t.length > yf) throw r.BuiltIn.Value;
|
|
6558
6558
|
if (0 === t.length) return 0;
|
|
6559
6559
|
const o = n.getRuntime().getLocaleProfile(), i = void 0 !== e ? e[0] : o.decimal;
|
|
6560
6560
|
let a = void 0 !== u ? u[0] : o.group;
|
|
@@ -6564,7 +6564,7 @@ function Jf(t, e, u) {
|
|
|
6564
6564
|
}
|
|
6565
6565
|
const s = [];
|
|
6566
6566
|
let l = !1, c = 0;
|
|
6567
|
-
for (; c < t.length;) if (
|
|
6567
|
+
for (; c < t.length;) if (Bf.has(t.charCodeAt(c))) c += 1;
|
|
6568
6568
|
else if (!l && t.startsWith(a, c)) c += a.length;
|
|
6569
6569
|
else if (t.startsWith(i, c)) l = !0, s.push(o.decimal), c += i.length;
|
|
6570
6570
|
else {
|
|
@@ -6578,52 +6578,52 @@ function Jf(t, e, u) {
|
|
|
6578
6578
|
for (let n = 0; n < f; n++) m /= 100;
|
|
6579
6579
|
return m;
|
|
6580
6580
|
}
|
|
6581
|
-
function
|
|
6582
|
-
return (n =
|
|
6583
|
-
}
|
|
6584
|
-
function rm(n, t, e, u) {
|
|
6585
|
-
return e + Vm < 0 ? r.BuiltIn.Value : (t = _m(t), e = _m(e), t < 1 ? r.BuiltIn.Value : Dm(n) ? n.slice(0, jm(n, t - 1)) + u + n.slice(jm(n, t - 1 + e)) : n.slice(0, t - 1) + u + n.slice(t - 1 + e));
|
|
6581
|
+
function rm(n) {
|
|
6582
|
+
return (n = Qm(n, !1)).replace(/(^|\P{L})(\p{L})/gu, (n, r, t) => r + Qm(t, !0));
|
|
6586
6583
|
}
|
|
6587
6584
|
function tm(n, t, e, u) {
|
|
6588
|
-
return e +
|
|
6585
|
+
return e + Lm < 0 ? r.BuiltIn.Value : (t = Gm(t), e = Gm(e), t < 1 ? r.BuiltIn.Value : xm(n) ? n.slice(0, $m(n, t - 1)) + u + n.slice($m(n, t - 1 + e)) : n.slice(0, t - 1) + u + n.slice(t - 1 + e));
|
|
6586
|
+
}
|
|
6587
|
+
function em(n, t, e, u) {
|
|
6588
|
+
return e + Lm < 0 ? r.BuiltIn.Value : (t = Gm(t), e = Gm(e), t < 1 ? r.BuiltIn.Value : n.slice(0, t - 1) + u + n.slice(t - 1 + e));
|
|
6589
6589
|
}
|
|
6590
|
-
function
|
|
6590
|
+
function um(n, t) {
|
|
6591
6591
|
return (t = Math.floor(t)) < 0 || n.length * t > e.MAX_TEXT_LENGTH ? r.BuiltIn.Value : n.repeat(t);
|
|
6592
6592
|
}
|
|
6593
|
-
function
|
|
6593
|
+
function om(n, t = 1) {
|
|
6594
6594
|
if (t < 0) throw r.BuiltIn.Value;
|
|
6595
|
-
if (t =
|
|
6595
|
+
if (t = Gm(t), !xm(n)) {
|
|
6596
6596
|
const r = n.length;
|
|
6597
6597
|
return t > r ? n : n.slice(r - t);
|
|
6598
6598
|
}
|
|
6599
|
-
const e =
|
|
6600
|
-
return t >= e ? n : n.slice(
|
|
6599
|
+
const e = jm(n);
|
|
6600
|
+
return t >= e ? n : n.slice($m(n, e - t));
|
|
6601
6601
|
}
|
|
6602
|
-
function
|
|
6603
|
-
return
|
|
6602
|
+
function im(n, r = 1) {
|
|
6603
|
+
return om(n, r);
|
|
6604
6604
|
}
|
|
6605
|
-
function
|
|
6606
|
-
e =
|
|
6607
|
-
const u =
|
|
6605
|
+
function am(n, t, e = 1) {
|
|
6606
|
+
e = Gm(e);
|
|
6607
|
+
const u = xm(t), o = u ? jm(t) : t.length;
|
|
6608
6608
|
if (e < 1 || e > o) throw r.BuiltIn.Value;
|
|
6609
|
-
const a = i.toRegex(
|
|
6609
|
+
const a = i.toRegex(Wm(n), "i"), s = u ? $m(t, e - 1) : e - 1, l = Wm(t).slice(s).search(a);
|
|
6610
6610
|
if (-1 === l) throw r.BuiltIn.Value;
|
|
6611
|
-
return u ?
|
|
6611
|
+
return u ? Zm(t, s + l) + 1 : l + e;
|
|
6612
6612
|
}
|
|
6613
|
-
function
|
|
6614
|
-
if ((e =
|
|
6615
|
-
const u = i.toRegex(
|
|
6613
|
+
function sm(n, t, e = 1) {
|
|
6614
|
+
if ((e = Gm(e)) < 1 || e > t.length) throw r.BuiltIn.Value;
|
|
6615
|
+
const u = i.toRegex(Wm(n), "i"), o = Wm(t).slice(e - 1).search(u);
|
|
6616
6616
|
if (-1 === o) throw r.BuiltIn.Value;
|
|
6617
6617
|
return o + e;
|
|
6618
6618
|
}
|
|
6619
|
-
function
|
|
6620
|
-
return
|
|
6619
|
+
function lm(n, r, t = !0, e = !0) {
|
|
6620
|
+
return Im(n, t ? r.split("") : [r], void 0, e);
|
|
6621
6621
|
}
|
|
6622
|
-
function
|
|
6622
|
+
function cm(t, u, o, i) {
|
|
6623
6623
|
let a = -1;
|
|
6624
6624
|
if (void 0 !== i) {
|
|
6625
6625
|
if (null === i) return r.BuiltIn.Value;
|
|
6626
|
-
if (a =
|
|
6626
|
+
if (a = Gm(n.parseAsNumber(i)), a <= 0) return r.BuiltIn.Value;
|
|
6627
6627
|
}
|
|
6628
6628
|
if (!t || !u) return t;
|
|
6629
6629
|
let s = t, l = 0, c = 0;
|
|
@@ -6634,12 +6634,12 @@ function lm(t, u, o, i) {
|
|
|
6634
6634
|
} else l += 1;
|
|
6635
6635
|
return s;
|
|
6636
6636
|
}
|
|
6637
|
-
function
|
|
6637
|
+
function fm(n) {
|
|
6638
6638
|
const r = !0 === n?.isIRange ? n : null;
|
|
6639
|
-
return r ? ue(r,
|
|
6639
|
+
return r ? ue(r, mm) : mm(n);
|
|
6640
6640
|
}
|
|
6641
|
-
var
|
|
6642
|
-
function
|
|
6641
|
+
var mm = (n) => "string" == typeof n ? n : "";
|
|
6642
|
+
function gm(t, e) {
|
|
6643
6643
|
if (null === t && (t = 0), "" === e) return "";
|
|
6644
6644
|
if ("string" == typeof t && "" !== t.trim()) try {
|
|
6645
6645
|
t = n.parseAsNumber(t.trim());
|
|
@@ -6651,13 +6651,13 @@ function mm(t, e) {
|
|
|
6651
6651
|
return r.BuiltIn.Value;
|
|
6652
6652
|
}
|
|
6653
6653
|
}
|
|
6654
|
-
function gm(n, r, t, e = 0, u = 0, o) {
|
|
6655
|
-
return Zm(n, r, t ?? 1, void 0 !== t, e, u, o, !0);
|
|
6656
|
-
}
|
|
6657
6654
|
function hm(n, r, t, e = 0, u = 0, o) {
|
|
6658
|
-
return
|
|
6655
|
+
return Jm(n, r, t ?? 1, void 0 !== t, e, u, o, !0);
|
|
6659
6656
|
}
|
|
6660
|
-
function pm(n, t, u) {
|
|
6657
|
+
function pm(n, r, t, e = 0, u = 0, o) {
|
|
6658
|
+
return Jm(n, r, t ?? 1, void 0 !== t, e, u, o, !1);
|
|
6659
|
+
}
|
|
6660
|
+
function Nm(n, t, u) {
|
|
6661
6661
|
let o = "", i = 0;
|
|
6662
6662
|
for (const a of u) for (const u of a.values({ includeEmpty: !t })) if (0 !== u.length || !t) {
|
|
6663
6663
|
if (i > 0 && n.length > 0 && (o += n[(i - 1) % n.length]), o += u, o.length > e.MAX_TEXT_LENGTH) return r.BuiltIn.Calc;
|
|
@@ -6665,7 +6665,7 @@ function pm(n, t, u) {
|
|
|
6665
6665
|
}
|
|
6666
6666
|
return o;
|
|
6667
6667
|
}
|
|
6668
|
-
function
|
|
6668
|
+
function Im(n, t, e, u = !1, o = 0, i = void 0) {
|
|
6669
6669
|
if (!n) throw r.BuiltIn.Value;
|
|
6670
6670
|
if (0 !== (o = Math.trunc(o)) && 1 !== o) throw r.BuiltIn.Value;
|
|
6671
6671
|
if (0 === t.length && (!e || 0 === e.length)) throw r.BuiltIn.Value;
|
|
@@ -6673,7 +6673,7 @@ function Nm(n, t, e, u = !1, o = 0, i = void 0) {
|
|
|
6673
6673
|
if (0 === n.length) return null;
|
|
6674
6674
|
if (n.some((n) => 0 === n.length)) throw r.BuiltIn.Value;
|
|
6675
6675
|
const t = [...n].sort((n, r) => r.length - n.length);
|
|
6676
|
-
return new RegExp(t.map((n) =>
|
|
6676
|
+
return new RegExp(t.map((n) => Om(n)).join("|"), 1 === o ? "i" : "");
|
|
6677
6677
|
}, s = (n, r) => r ? n.split(r) : [n], l = a(t);
|
|
6678
6678
|
let c = [n];
|
|
6679
6679
|
if (e && (c = s(n, a(e))), u) {
|
|
@@ -6707,39 +6707,39 @@ function Nm(n, t, e, u = !1, o = 0, i = void 0) {
|
|
|
6707
6707
|
}
|
|
6708
6708
|
return f.length > 0 ? f : [[""]];
|
|
6709
6709
|
}
|
|
6710
|
-
function
|
|
6710
|
+
function bm(n, t, e) {
|
|
6711
6711
|
return r.BuiltIn.NA;
|
|
6712
6712
|
}
|
|
6713
|
-
function
|
|
6713
|
+
function Em(n) {
|
|
6714
6714
|
return n.replace(/ +/g, " ").replace(/^ +| +$/g, "");
|
|
6715
6715
|
}
|
|
6716
|
-
function
|
|
6716
|
+
function Am(n) {
|
|
6717
6717
|
if (!(n >= 1)) throw r.BuiltIn.Value;
|
|
6718
6718
|
const t = Math.trunc(n);
|
|
6719
6719
|
if (t > 1114111) throw r.BuiltIn.Value;
|
|
6720
6720
|
if (t >= 55296 && t <= 57343 || t >= 64976 && t <= 65007 || (65535 & t) >= 65534) throw r.BuiltIn.NA;
|
|
6721
6721
|
return String.fromCodePoint(t);
|
|
6722
6722
|
}
|
|
6723
|
-
function
|
|
6723
|
+
function dm(n) {
|
|
6724
6724
|
if (0 === n.length) throw r.BuiltIn.Value;
|
|
6725
6725
|
const t = n.codePointAt(0);
|
|
6726
6726
|
if (t >= 55296 && t <= 56319) throw r.BuiltIn.Value;
|
|
6727
6727
|
return t;
|
|
6728
6728
|
}
|
|
6729
|
-
function
|
|
6730
|
-
return
|
|
6729
|
+
function Mm(n) {
|
|
6730
|
+
return Qm(n, !0);
|
|
6731
6731
|
}
|
|
6732
|
-
function
|
|
6732
|
+
function Sm(r) {
|
|
6733
6733
|
return null === r ? 0 : n.parseAsNumber(r);
|
|
6734
6734
|
}
|
|
6735
|
-
function
|
|
6735
|
+
function Rm(t, e = 0) {
|
|
6736
6736
|
if (0 !== (e = Math.floor(e)) && 1 !== e) throw r.BuiltIn.Value;
|
|
6737
6737
|
return "string" == typeof t ? 1 === e ? "\"" + t.replace(/"/g, "\"\"") + "\"" : t : n.toText(t);
|
|
6738
6738
|
}
|
|
6739
|
-
var
|
|
6739
|
+
var Tm = () => {
|
|
6740
6740
|
const r = n.getRuntime().getLocale().toLowerCase().split(/[-_]/)[0];
|
|
6741
6741
|
return "ja" === r || "zh" === r || "ko" === r;
|
|
6742
|
-
},
|
|
6742
|
+
}, Cm = {
|
|
6743
6743
|
latin: {
|
|
6744
6744
|
halfRE: /[!-~]/g,
|
|
6745
6745
|
fullRE: /[!-~]/g,
|
|
@@ -6765,30 +6765,30 @@ var Rm = () => {
|
|
|
6765
6765
|
half: "¢£¬¯¦¥₩ |←↑→↓■°",
|
|
6766
6766
|
full: "¢£¬ ̄¦¥₩ │←↑→↓■○"
|
|
6767
6767
|
}
|
|
6768
|
-
},
|
|
6769
|
-
function
|
|
6768
|
+
}, wm = (n, r) => n[`${r}RE`] || new RegExp("[" + n[r] + "]", "g"), vm = Object.keys(Cm).map((n) => Cm[n]), Bm = (n) => vm.reduce((n, r) => n.replace(wm(r, "half"), ((n) => (r) => n.delta ? String.fromCharCode(r.charCodeAt(0) + n.delta) : [...n.full][[...n.half].indexOf(r)])(r)), n), ym = (n) => vm.reduce((n, r) => n.replace(wm(r, "full"), ((n) => (r) => n.delta ? String.fromCharCode(r.charCodeAt(0) - n.delta) : [...n.half][[...n.full].indexOf(r)])(r)), n);
|
|
6769
|
+
function Om(n) {
|
|
6770
6770
|
return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
6771
6771
|
}
|
|
6772
|
-
var
|
|
6772
|
+
var Dm = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, xm = (n) => Dm.test(n), Vm = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF]$/, Lm = Math.pow(2, -22), Fm = (n, r) => {
|
|
6773
6773
|
if (r < -308) return 0;
|
|
6774
6774
|
const t = 10 ** r, e = Number(Math.abs(n).toPrecision(15)), u = Number((e * t).toPrecision(15));
|
|
6775
6775
|
return Number.isFinite(u) ? Math.sign(n) * Math.round(u) / t : n;
|
|
6776
|
-
},
|
|
6776
|
+
}, Pm = 127, Um = 255, _m = (n, r, t, e) => {
|
|
6777
6777
|
const u = Math.abs(n), o = u < 1 ? 1 : Math.floor(Math.log10(u)) + 1;
|
|
6778
6778
|
return o + (t ? Math.floor((o - 1) / 3) : 0) + (r > 0 ? r + 1 : 0) + (n < 0 ? 1 : 0) + e;
|
|
6779
|
-
},
|
|
6779
|
+
}, Gm = (n) => Math.trunc(n + Lm), Xm = new Map([
|
|
6780
6780
|
[8490, 75],
|
|
6781
6781
|
[8491, 197],
|
|
6782
6782
|
[8486, 937],
|
|
6783
6783
|
[7838, 223]
|
|
6784
|
-
].map(([n, r]) => [String.fromCharCode(n), String.fromCharCode(r)])),
|
|
6784
|
+
].map(([n, r]) => [String.fromCharCode(n), String.fromCharCode(r)])), Hm = new RegExp(`[${[...Xm.keys()].join("")}]`), km = new RegExp(Hm.source, "g"), Wm = (n) => Hm.test(n) ? n.replace(km, (n) => Xm.get(n)) : n, Ym = /* @__PURE__ */ new Set([
|
|
6785
6785
|
181,
|
|
6786
6786
|
7838,
|
|
6787
6787
|
8486,
|
|
6788
6788
|
8490,
|
|
6789
6789
|
8491
|
|
6790
|
-
]),
|
|
6791
|
-
if (
|
|
6790
|
+
]), Km = /* @__PURE__ */ new Map([[304, "i"]]), qm = String.fromCharCode(962), zm = /^[\x00-\x7F]*$/, Qm = (n, r) => {
|
|
6791
|
+
if (zm.test(n)) return r ? n.toUpperCase() : n.toLowerCase();
|
|
6792
6792
|
let t = "";
|
|
6793
6793
|
for (let e = 0; e < n.length; e++) {
|
|
6794
6794
|
const u = n[e], o = n.charCodeAt(e);
|
|
@@ -6797,13 +6797,13 @@ var Om = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, Dm = (n) => Om.test(n), xm = /[\uD800
|
|
|
6797
6797
|
continue;
|
|
6798
6798
|
}
|
|
6799
6799
|
if (!r) {
|
|
6800
|
-
const r =
|
|
6800
|
+
const r = Km.get(o);
|
|
6801
6801
|
if (void 0 !== r) {
|
|
6802
6802
|
t += r;
|
|
6803
6803
|
continue;
|
|
6804
6804
|
}
|
|
6805
6805
|
if (931 === o && e === n.length - 1) {
|
|
6806
|
-
t +=
|
|
6806
|
+
t += qm;
|
|
6807
6807
|
continue;
|
|
6808
6808
|
}
|
|
6809
6809
|
}
|
|
@@ -6811,7 +6811,7 @@ var Om = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, Dm = (n) => Om.test(n), xm = /[\uD800
|
|
|
6811
6811
|
t += 1 === i.length ? i : u;
|
|
6812
6812
|
}
|
|
6813
6813
|
return t;
|
|
6814
|
-
},
|
|
6814
|
+
}, jm = (n) => {
|
|
6815
6815
|
const r = n.length;
|
|
6816
6816
|
let t = 0;
|
|
6817
6817
|
for (let e = 0; e < r - 1; e++) {
|
|
@@ -6822,7 +6822,7 @@ var Om = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, Dm = (n) => Om.test(n), xm = /[\uD800
|
|
|
6822
6822
|
}
|
|
6823
6823
|
const e = r > 0 ? n.charCodeAt(r - 1) : 0;
|
|
6824
6824
|
return r - t - (e >= 55296 && e <= 56319 ? 1 : 0);
|
|
6825
|
-
},
|
|
6825
|
+
}, $m = (n, r) => {
|
|
6826
6826
|
const t = Math.trunc(r), e = n.length;
|
|
6827
6827
|
let u = 0;
|
|
6828
6828
|
for (let r = 0; r < t && u < e; r++) {
|
|
@@ -6830,12 +6830,12 @@ var Om = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, Dm = (n) => Om.test(n), xm = /[\uD800
|
|
|
6830
6830
|
u += r >= 55296 && r <= 56319 && t >= 56320 && t <= 57343 ? 2 : 1;
|
|
6831
6831
|
}
|
|
6832
6832
|
return Math.min(u, e);
|
|
6833
|
-
},
|
|
6833
|
+
}, Zm = (n, r) => jm(n.slice(0, r)), Jm = (n, t, e, u, o, i, a, s) => {
|
|
6834
6834
|
const l = Math.trunc(o);
|
|
6835
6835
|
if (0 !== l && 1 !== l) return r.BuiltIn.Value;
|
|
6836
6836
|
const c = Math.trunc(i);
|
|
6837
6837
|
if (0 !== c && 1 !== c) return r.BuiltIn.Value;
|
|
6838
|
-
const f = Math.floor(e +
|
|
6838
|
+
const f = Math.floor(e + Lm);
|
|
6839
6839
|
if (0 === f) return r.BuiltIn.Value;
|
|
6840
6840
|
if (0 === t.length || t.some((n) => 0 === n.length)) return s === f > 0 ? n : "";
|
|
6841
6841
|
const m = Math.min(...t.map((n) => n.length));
|
|
@@ -6843,7 +6843,7 @@ var Om = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, Dm = (n) => Om.test(n), xm = /[\uD800
|
|
|
6843
6843
|
const g = ((n, r, t) => {
|
|
6844
6844
|
const e = [], u = r.filter((n) => n.length > 0);
|
|
6845
6845
|
if (0 === u.length) return e;
|
|
6846
|
-
const o = 1 === t ? u.map((n) => new RegExp(
|
|
6846
|
+
const o = 1 === t ? u.map((n) => new RegExp(Om(n), "gi")) : null;
|
|
6847
6847
|
let i = 0;
|
|
6848
6848
|
for (; i <= n.length;) {
|
|
6849
6849
|
let r = null;
|
|
@@ -6864,31 +6864,31 @@ var Om = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, Dm = (n) => Om.test(n), xm = /[\uD800
|
|
|
6864
6864
|
1 === c && (f > 0 ? g.push([n.length, n.length]) : g.unshift([0, 0]));
|
|
6865
6865
|
const h = f > 0 ? f - 1 : g.length + f;
|
|
6866
6866
|
return h < 0 || h >= g.length ? a ?? r.BuiltIn.NA : s ? n.substring(g[h][1]) : n.substring(0, g[h][0]);
|
|
6867
|
-
},
|
|
6868
|
-
function
|
|
6867
|
+
}, ng = c({ BAHTTEXT: () => rg });
|
|
6868
|
+
function rg(n) {
|
|
6869
6869
|
try {
|
|
6870
6870
|
return s(n);
|
|
6871
6871
|
} catch (n) {
|
|
6872
6872
|
throw Error(`Error in https://github.com/jojoee/bahttext \n${n.toString()}`);
|
|
6873
6873
|
}
|
|
6874
6874
|
}
|
|
6875
|
-
var
|
|
6876
|
-
async function
|
|
6877
|
-
if (
|
|
6878
|
-
if (!
|
|
6879
|
-
|
|
6875
|
+
var tg = c({ FILTERXML: () => eg });
|
|
6876
|
+
async function eg(n, t) {
|
|
6877
|
+
if (ag) throw r.BuiltIn.Blocked;
|
|
6878
|
+
if (!og || !ig) try {
|
|
6879
|
+
sg ??= ug(), await sg;
|
|
6880
6880
|
} catch (n) {
|
|
6881
|
-
throw
|
|
6881
|
+
throw ag || (ag = !0, console.warn(`FILTERXML is unavailable: XML libraries could not be loaded (${n?.message ?? n}).`)), r.BuiltIn.Blocked;
|
|
6882
6882
|
}
|
|
6883
|
-
if (!
|
|
6883
|
+
if (!og) throw ag = !0, console.warn("Unable to load XML libraries"), r.BuiltIn.Blocked;
|
|
6884
6884
|
try {
|
|
6885
|
-
const r =
|
|
6886
|
-
return [[
|
|
6885
|
+
const r = og.parseFromString(n, "text/xml");
|
|
6886
|
+
return [[ig.evaluateXPathToString(t, r, null, {})]];
|
|
6887
6887
|
} catch (n) {
|
|
6888
6888
|
throw r.BuiltIn.Value;
|
|
6889
6889
|
}
|
|
6890
6890
|
}
|
|
6891
|
-
var
|
|
6891
|
+
var ug = async () => {
|
|
6892
6892
|
const [n, r] = await Promise.all([import(
|
|
6893
6893
|
/* webpackIgnore: true */
|
|
6894
6894
|
/* @vite-ignore */
|
|
@@ -6898,17 +6898,17 @@ var eg = async () => {
|
|
|
6898
6898
|
/* @vite-ignore */
|
|
6899
6899
|
"https://esm.sh/@xmldom/xmldom@0.8.11"
|
|
6900
6900
|
)]);
|
|
6901
|
-
|
|
6901
|
+
ig = n;
|
|
6902
6902
|
const t = r.DOMParser;
|
|
6903
|
-
|
|
6904
|
-
},
|
|
6905
|
-
ENCODEURL: () =>
|
|
6906
|
-
WEBSERVICE: () =>
|
|
6903
|
+
og = new t();
|
|
6904
|
+
}, og = null, ig = null, ag = !1, sg = null, lg = c({
|
|
6905
|
+
ENCODEURL: () => cg,
|
|
6906
|
+
WEBSERVICE: () => fg
|
|
6907
6907
|
});
|
|
6908
|
-
function
|
|
6908
|
+
function cg(n) {
|
|
6909
6909
|
return encodeURIComponent(n);
|
|
6910
6910
|
}
|
|
6911
|
-
async function
|
|
6911
|
+
async function fg(n) {
|
|
6912
6912
|
try {
|
|
6913
6913
|
const r = await fetch(n, {
|
|
6914
6914
|
method: "GET",
|
|
@@ -6923,7 +6923,7 @@ async function cg(n) {
|
|
|
6923
6923
|
throw r.BuiltIn.Value;
|
|
6924
6924
|
}
|
|
6925
6925
|
}
|
|
6926
|
-
var
|
|
6926
|
+
var mg = {
|
|
6927
6927
|
DAVERAGE: {
|
|
6928
6928
|
p: [
|
|
6929
6929
|
{
|
|
@@ -7178,7 +7178,7 @@ var fg = {
|
|
|
7178
7178
|
],
|
|
7179
7179
|
r: { s: "*" }
|
|
7180
7180
|
}
|
|
7181
|
-
},
|
|
7181
|
+
}, gg = {
|
|
7182
7182
|
DATE: {
|
|
7183
7183
|
p: [
|
|
7184
7184
|
{ n: "year" },
|
|
@@ -7433,7 +7433,7 @@ var fg = {
|
|
|
7433
7433
|
p: [{ n: "serialNumber" }],
|
|
7434
7434
|
r: { s: "number" }
|
|
7435
7435
|
}
|
|
7436
|
-
},
|
|
7436
|
+
}, hg = {
|
|
7437
7437
|
Weekend: { m: [
|
|
7438
7438
|
["Saturday, Sunday", 1],
|
|
7439
7439
|
["Sunday, Monday", 2],
|
|
@@ -7474,7 +7474,7 @@ var fg = {
|
|
|
7474
7474
|
["Week begins on Sunday", 17],
|
|
7475
7475
|
["Week begins on Monday (ISO 8601)", 21]
|
|
7476
7476
|
] }
|
|
7477
|
-
},
|
|
7477
|
+
}, pg = {
|
|
7478
7478
|
BESSELI: {
|
|
7479
7479
|
p: [{
|
|
7480
7480
|
n: "x",
|
|
@@ -7539,7 +7539,7 @@ var fg = {
|
|
|
7539
7539
|
}],
|
|
7540
7540
|
r: { s: "number" }
|
|
7541
7541
|
}
|
|
7542
|
-
},
|
|
7542
|
+
}, Ng = {
|
|
7543
7543
|
BIN2DEC: {
|
|
7544
7544
|
p: [{
|
|
7545
7545
|
n: "number",
|
|
@@ -7780,7 +7780,7 @@ var fg = {
|
|
|
7780
7780
|
}],
|
|
7781
7781
|
r: { s: "*" }
|
|
7782
7782
|
}
|
|
7783
|
-
},
|
|
7783
|
+
}, Ig = { CONVERT: {
|
|
7784
7784
|
p: [
|
|
7785
7785
|
{
|
|
7786
7786
|
n: "number",
|
|
@@ -7801,7 +7801,7 @@ var fg = {
|
|
|
7801
7801
|
}
|
|
7802
7802
|
],
|
|
7803
7803
|
r: { s: "number" }
|
|
7804
|
-
} },
|
|
7804
|
+
} }, bg = {
|
|
7805
7805
|
DELTA: {
|
|
7806
7806
|
p: [{
|
|
7807
7807
|
n: "number1",
|
|
@@ -7838,7 +7838,7 @@ var fg = {
|
|
|
7838
7838
|
}],
|
|
7839
7839
|
r: { s: "number" }
|
|
7840
7840
|
}
|
|
7841
|
-
},
|
|
7841
|
+
}, Eg = {
|
|
7842
7842
|
ERF: {
|
|
7843
7843
|
p: [{
|
|
7844
7844
|
n: "lowerLimit",
|
|
@@ -7884,7 +7884,7 @@ var fg = {
|
|
|
7884
7884
|
}],
|
|
7885
7885
|
r: { s: "number" }
|
|
7886
7886
|
}
|
|
7887
|
-
},
|
|
7887
|
+
}, Ag = {
|
|
7888
7888
|
COMPLEX: {
|
|
7889
7889
|
p: [
|
|
7890
7890
|
{
|
|
@@ -8165,7 +8165,7 @@ var fg = {
|
|
|
8165
8165
|
}],
|
|
8166
8166
|
r: { s: "*" }
|
|
8167
8167
|
}
|
|
8168
|
-
},
|
|
8168
|
+
}, dg = {
|
|
8169
8169
|
CELL: {
|
|
8170
8170
|
p: [{
|
|
8171
8171
|
n: "infoType",
|
|
@@ -8363,7 +8363,7 @@ var fg = {
|
|
|
8363
8363
|
}],
|
|
8364
8364
|
r: { s: "number" }
|
|
8365
8365
|
}
|
|
8366
|
-
},
|
|
8366
|
+
}, Mg = {
|
|
8367
8367
|
CellInfoType: {
|
|
8368
8368
|
s: "string",
|
|
8369
8369
|
m: [
|
|
@@ -8425,7 +8425,7 @@ var fg = {
|
|
|
8425
8425
|
["User", "user"]
|
|
8426
8426
|
]
|
|
8427
8427
|
}
|
|
8428
|
-
},
|
|
8428
|
+
}, Sg = {
|
|
8429
8429
|
DATESTRING: {
|
|
8430
8430
|
p: [{ n: "number" }],
|
|
8431
8431
|
r: { s: "*" }
|
|
@@ -8434,13 +8434,13 @@ var fg = {
|
|
|
8434
8434
|
p: [{ n: "number" }, { n: "number2" }],
|
|
8435
8435
|
r: { s: "*" }
|
|
8436
8436
|
}
|
|
8437
|
-
},
|
|
8437
|
+
}, Rg = { PHONETIC: {
|
|
8438
8438
|
p: [{
|
|
8439
8439
|
n: "reference",
|
|
8440
8440
|
r: "p"
|
|
8441
8441
|
}],
|
|
8442
8442
|
r: { s: "*" }
|
|
8443
|
-
} },
|
|
8443
|
+
} }, Tg = {
|
|
8444
8444
|
AND: {
|
|
8445
8445
|
p: [{
|
|
8446
8446
|
n: "logical",
|
|
@@ -8751,7 +8751,7 @@ var fg = {
|
|
|
8751
8751
|
}],
|
|
8752
8752
|
r: { s: "*" }
|
|
8753
8753
|
}
|
|
8754
|
-
},
|
|
8754
|
+
}, Cg = { GROUPBY: {
|
|
8755
8755
|
p: [
|
|
8756
8756
|
{
|
|
8757
8757
|
n: "rowFields",
|
|
@@ -8800,7 +8800,7 @@ var fg = {
|
|
|
8800
8800
|
s: "*",
|
|
8801
8801
|
r: "m"
|
|
8802
8802
|
}
|
|
8803
|
-
} },
|
|
8803
|
+
} }, wg = { PIVOTBY: {
|
|
8804
8804
|
p: [
|
|
8805
8805
|
{
|
|
8806
8806
|
n: "rowFields",
|
|
@@ -8866,7 +8866,7 @@ var fg = {
|
|
|
8866
8866
|
s: "*",
|
|
8867
8867
|
r: "m"
|
|
8868
8868
|
}
|
|
8869
|
-
} },
|
|
8869
|
+
} }, vg = {
|
|
8870
8870
|
ADDRESS: {
|
|
8871
8871
|
p: [
|
|
8872
8872
|
{ n: "rowNum" },
|
|
@@ -9602,7 +9602,7 @@ var fg = {
|
|
|
9602
9602
|
],
|
|
9603
9603
|
r: { s: "*" }
|
|
9604
9604
|
}
|
|
9605
|
-
},
|
|
9605
|
+
}, Bg = {
|
|
9606
9606
|
MatchType: { m: [
|
|
9607
9607
|
["Less than", 1],
|
|
9608
9608
|
["Exact match", 0],
|
|
@@ -9627,7 +9627,7 @@ var fg = {
|
|
|
9627
9627
|
["Binary search (sorted ascending order)", 2],
|
|
9628
9628
|
["Binary search (sorted descending order)", -2]
|
|
9629
9629
|
] }
|
|
9630
|
-
},
|
|
9630
|
+
}, yg = {
|
|
9631
9631
|
ABS: {
|
|
9632
9632
|
p: [{ n: "number" }],
|
|
9633
9633
|
r: { s: "number" }
|
|
@@ -10235,7 +10235,7 @@ var fg = {
|
|
|
10235
10235
|
}],
|
|
10236
10236
|
r: { s: "number" }
|
|
10237
10237
|
}
|
|
10238
|
-
},
|
|
10238
|
+
}, Og = {
|
|
10239
10239
|
AggregateFunction: { m: [
|
|
10240
10240
|
["AVERAGE", 1],
|
|
10241
10241
|
["COUNT", 2],
|
|
@@ -10291,7 +10291,7 @@ var fg = {
|
|
|
10291
10291
|
["VAR (visible rows)", 110],
|
|
10292
10292
|
["VARP (visible rows)", 111]
|
|
10293
10293
|
] }
|
|
10294
|
-
},
|
|
10294
|
+
}, Dg = {
|
|
10295
10295
|
ACOS: {
|
|
10296
10296
|
p: [{ n: "number" }],
|
|
10297
10297
|
r: { s: "number" }
|
|
@@ -10376,7 +10376,7 @@ var fg = {
|
|
|
10376
10376
|
p: [{ n: "number" }],
|
|
10377
10377
|
r: { s: "number" }
|
|
10378
10378
|
}
|
|
10379
|
-
},
|
|
10379
|
+
}, xg = {
|
|
10380
10380
|
ADD: {
|
|
10381
10381
|
p: [{ n: "value1" }, { n: "value2" }],
|
|
10382
10382
|
r: { s: "number" }
|
|
@@ -10489,7 +10489,7 @@ var fg = {
|
|
|
10489
10489
|
],
|
|
10490
10490
|
r: { s: "boolean" }
|
|
10491
10491
|
}
|
|
10492
|
-
},
|
|
10492
|
+
}, Vg = {
|
|
10493
10493
|
"BETA.DIST": {
|
|
10494
10494
|
fn: "BETA_DIST",
|
|
10495
10495
|
p: [
|
|
@@ -11741,7 +11741,7 @@ var fg = {
|
|
|
11741
11741
|
],
|
|
11742
11742
|
r: { s: "number" }
|
|
11743
11743
|
}
|
|
11744
|
-
},
|
|
11744
|
+
}, Lg = {
|
|
11745
11745
|
AVEDEV: {
|
|
11746
11746
|
p: [{
|
|
11747
11747
|
n: "number",
|
|
@@ -12062,7 +12062,7 @@ var fg = {
|
|
|
12062
12062
|
}, { n: "k" }],
|
|
12063
12063
|
r: { s: "number" }
|
|
12064
12064
|
}
|
|
12065
|
-
},
|
|
12065
|
+
}, Fg = {
|
|
12066
12066
|
DELAY: {
|
|
12067
12067
|
p: [
|
|
12068
12068
|
{ n: "time" },
|
|
@@ -12090,7 +12090,7 @@ var fg = {
|
|
|
12090
12090
|
}],
|
|
12091
12091
|
r: { s: "string" }
|
|
12092
12092
|
}
|
|
12093
|
-
},
|
|
12093
|
+
}, Pg = {
|
|
12094
12094
|
ASC: {
|
|
12095
12095
|
p: [{
|
|
12096
12096
|
n: "text",
|
|
@@ -12701,10 +12701,10 @@ var fg = {
|
|
|
12701
12701
|
}],
|
|
12702
12702
|
r: { s: "string" }
|
|
12703
12703
|
}
|
|
12704
|
-
},
|
|
12704
|
+
}, Ug = { BAHTTEXT: {
|
|
12705
12705
|
p: [{ n: "number" }],
|
|
12706
12706
|
r: { s: "string" }
|
|
12707
|
-
} },
|
|
12707
|
+
} }, _g = { FILTERXML: {
|
|
12708
12708
|
p: [{
|
|
12709
12709
|
n: "xml",
|
|
12710
12710
|
s: "string"
|
|
@@ -12716,7 +12716,7 @@ var fg = {
|
|
|
12716
12716
|
s: "*",
|
|
12717
12717
|
r: "m"
|
|
12718
12718
|
}
|
|
12719
|
-
} },
|
|
12719
|
+
} }, Gg = {
|
|
12720
12720
|
ENCODEURL: {
|
|
12721
12721
|
p: [{
|
|
12722
12722
|
n: "text",
|
|
@@ -12731,5 +12731,5 @@ var fg = {
|
|
|
12731
12731
|
}],
|
|
12732
12732
|
r: { s: "string" }
|
|
12733
12733
|
}
|
|
12734
|
-
},
|
|
12735
|
-
export {
|
|
12734
|
+
}, Xg = () => import("./CnvR3EiK8b4IYqeQ.mjs"), Hg = () => import("./FLGhbLcK_-CaBWel.mjs"), kg = () => import("./LSB9NC_9pLFIXB2r.mjs"), Wg = () => import("./CNlk9maTZcfnUoqC.mjs"), Yg = () => import("./3mZkK3J9uUuf4_r4.mjs"), Kg = () => import("./DSERN9sINhqwboEy.mjs"), qg = () => import("./BVPS5Un1I5hdlqAx.mjs"), zg = () => import("./C8T9tdc0Ro3dYT5i.mjs"), Qg = () => import("./IdYYtD2hRuVaaSo5.mjs"), jg = () => import("./_EPqEYbpgoySRKpA.mjs"), $g = () => import("./DRamw-nLOZBXeDlT.mjs"), Zg = () => import("./CfvEeNcQ1nU48r9h.mjs"), Jg = () => import("./VmFmgY9dzxIwm52h.mjs"), nh = () => import("./ByDxheg-vywRUW_k.mjs"), rh = () => import("./BS95wBl9mVWJgoWK.mjs"), th = () => import("./L8H_ruX1UE3o8Y3Y.mjs"), eh = () => import("./Bx8w0EgTgcvUP2FG.mjs"), uh = () => import("./Dl4FJb5rdXwETLy5.mjs"), oh = () => import("./CHSEyxhpLg7gA_-m.mjs"), ih = () => import("./DNqckj8TulTGo7FR.mjs"), ah = () => import("./BMqGkc9lB3bzYJi2.mjs"), sh = () => import("./DpY6ubhJ6C7xwhJX.mjs"), lh = () => import("./CSUb3dsHnebxlWcC.mjs"), ch = () => import("./DgpL9kNphy9gXRFA.mjs"), fh = () => import("./Dbe7sAcT1MMSJCLl.mjs"), mh = (n, r, t) => (t || (t = /* @__PURE__ */ new Map()), r(t, n, h, mg, Xg, "Database"), r(t, n, x, gg, Hg, "Date & Time", hg), r(t, n, Mn, pg, kg, "Engineering"), r(t, n, yn, Ng, Wg, "Engineering"), r(t, n, sr, Ig, Yg, "Engineering"), r(t, n, Ir, bg, Kg, "Engineering"), r(t, n, kr, Eg, qg, "Engineering"), r(t, n, ot, Ag, zg, "Engineering"), r(t, n, oe, dg, Qg, "Information", Mg), r(t, n, Le, Sg, jg, "Japanese"), r(t, n, Ue, Rg, $g, "Japanese"), r(t, n, ke, Tg, Zg, "Logical"), r(t, n, mu, Cg, Jg, "Lookup & Reference"), r(t, n, hu, wg, nh, "Lookup & Reference"), r(t, n, Eu, vg, rh, "Lookup & Reference", Bg), r(t, n, xo, yg, th, "Math & Trig", Og), r(t, n, ma, Dg, eh, "Math & Trig"), r(t, n, Va, xg, uh, "Operators"), r(t, n, Qs, Vg, oh, "Statistical"), r(t, n, ts, Lg, ih, "Statistical"), r(t, n, Mf, Fg, ah, "Testing"), r(t, n, vf, Pg, sh, "Text"), r(t, n, ng, Ug, lh, "Thai"), r(t, n, tg, _g, ch, "Web"), r(t, n, lg, Gg, fh, "Web"), t);
|
|
12735
|
+
export { mh as default };
|