@fileverse-dev/dsheet 2.0.34 → 2.0.36
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/dist/{executeStringFunction-CqY9CxQI.js → executeStringFunction-Bl4AYetV.js} +783 -774
- package/dist/formula.js +1 -1
- package/dist/{index-D9nJayaD.js → index-CqPhp0yr.js} +6476 -6438
- package/dist/index.es.js +25 -25
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/format.d.ts +6 -0
- package/dist/sheet-engine/core/modules/index.d.ts +1 -1
- package/dist/sheet-engine/react/constants.d.ts +12 -2
- package/dist/sheet-engine/react/utils/convertCellsToCrypto.d.ts +1 -1
- package/dist/{use-xlsx-import-impl-DgedLtO_.js → use-xlsx-import-impl-BIdckUWG.js} +2 -2
- package/dist/{xlsx-export-impl-1HOQoC6f.js → xlsx-export-impl-BEVF8Y2c.js} +1 -1
- package/package.json +1 -1
- package/dist/sheet-engine/core/api/emit-cell-ydoc.d.ts +0 -12
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Ge = (e, t, r) =>
|
|
1
|
+
var Ll = Object.defineProperty;
|
|
2
|
+
var Fl = (e, t, r) => t in e ? Ll(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var Ge = (e, t, r) => Fl(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import h, { isPlainObject as uo } from "lodash";
|
|
5
5
|
import fo from "dayjs";
|
|
6
6
|
import * as rr from "@fileverse-dev/formulajs";
|
|
7
|
-
import { F as
|
|
8
|
-
var
|
|
7
|
+
import { F as Bl } from "./crypto-constants-CqpCRs86.js";
|
|
8
|
+
var Pl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
9
|
function Wo(e) {
|
|
10
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
11
11
|
}
|
|
12
12
|
const Ln = {}, Ar = {
|
|
13
|
-
en: () => Promise.resolve().then(() =>
|
|
13
|
+
en: () => Promise.resolve().then(() => Jl),
|
|
14
14
|
zh: () => import("./zh-BfQYzoDQ.js"),
|
|
15
15
|
es: () => import("./es-BonrkVxY.js"),
|
|
16
16
|
hi: () => import("./hi-Ca55EZ4A.js"),
|
|
17
17
|
"zh-TW": () => import("./zh_tw-CINWHD2H.js")
|
|
18
18
|
};
|
|
19
|
-
async function
|
|
19
|
+
async function Ef(e) {
|
|
20
20
|
const t = e in Ar ? e : e.split("-")[0], r = t in Ar ? t : "en";
|
|
21
21
|
if (Ln[r]) return;
|
|
22
22
|
const a = await Ar[r]();
|
|
@@ -40,7 +40,7 @@ var Vo = { exports: {} };
|
|
|
40
40
|
(function(e) {
|
|
41
41
|
(function(t, r) {
|
|
42
42
|
e.exports ? e.exports = r() : t.numeral = r();
|
|
43
|
-
})(
|
|
43
|
+
})(Pl, function() {
|
|
44
44
|
var t, r, a = "2.0.6", n = {}, o = {}, i = {
|
|
45
45
|
currentLocale: "en",
|
|
46
46
|
zeroFormat: null,
|
|
@@ -447,8 +447,8 @@ var Vo = { exports: {} };
|
|
|
447
447
|
}(), t;
|
|
448
448
|
});
|
|
449
449
|
})(Vo);
|
|
450
|
-
var
|
|
451
|
-
const Ft = /* @__PURE__ */ Wo(
|
|
450
|
+
var Hl = Vo.exports;
|
|
451
|
+
const Ft = /* @__PURE__ */ Wo(Hl);
|
|
452
452
|
var sa = { exports: {} };
|
|
453
453
|
function ca() {
|
|
454
454
|
}
|
|
@@ -483,8 +483,8 @@ ca.prototype = {
|
|
|
483
483
|
};
|
|
484
484
|
sa.exports = ca;
|
|
485
485
|
sa.exports.TinyEmitter = ca;
|
|
486
|
-
var
|
|
487
|
-
const
|
|
486
|
+
var zl = sa.exports;
|
|
487
|
+
const Ul = /* @__PURE__ */ Wo(zl), Wl = /^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?$/i;
|
|
488
488
|
function Dt(e) {
|
|
489
489
|
if (e == null || e === "")
|
|
490
490
|
return 0;
|
|
@@ -496,7 +496,7 @@ function Dt(e) {
|
|
|
496
496
|
const r = e.trim();
|
|
497
497
|
if (r === "")
|
|
498
498
|
return 0;
|
|
499
|
-
if (!
|
|
499
|
+
if (!Wl.test(r))
|
|
500
500
|
return NaN;
|
|
501
501
|
const a = Number(r);
|
|
502
502
|
return Number.isNaN(a) ? NaN : a;
|
|
@@ -504,15 +504,15 @@ function Dt(e) {
|
|
|
504
504
|
const t = Number(e);
|
|
505
505
|
return Number.isNaN(t) ? NaN : t;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Vl(e) {
|
|
508
508
|
return -1 * Dt(e);
|
|
509
509
|
}
|
|
510
|
-
const Fn = "ERROR", ua = "DIV/0", gn = "NAME",
|
|
510
|
+
const Fn = "ERROR", ua = "DIV/0", gn = "NAME", Gl = "N/A", Go = "NULL", Yo = "NUM", Bn = "REF", en = "VALUE", jo = "CIRC", Pn = {
|
|
511
511
|
"Error: lookup_range and result_range are required": "Lookup range and result range are required",
|
|
512
512
|
[Fn]: "Syntax error",
|
|
513
513
|
[ua]: "#DIV/0!",
|
|
514
514
|
[gn]: "Wrong function name or parameter",
|
|
515
|
-
[
|
|
515
|
+
[Gl]: "#N/A",
|
|
516
516
|
[Go]: "#NULL!",
|
|
517
517
|
[Yo]: "#NUM!",
|
|
518
518
|
[Bn]: "#REF!",
|
|
@@ -532,7 +532,7 @@ function Xn(e) {
|
|
|
532
532
|
let t;
|
|
533
533
|
return e = (e + "").replace(/#|!|\?/g, ""), Pn[e] && (t = Pn[e]), t || e;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Yl(e) {
|
|
536
536
|
let t = !1;
|
|
537
537
|
for (const r in Pn)
|
|
538
538
|
if (Object.prototype.hasOwnProperty.call(Pn, r) && Pn[r] === e) {
|
|
@@ -541,7 +541,7 @@ function Gl(e) {
|
|
|
541
541
|
}
|
|
542
542
|
return t;
|
|
543
543
|
}
|
|
544
|
-
const
|
|
544
|
+
const jl = "+";
|
|
545
545
|
function Fr(e, ...t) {
|
|
546
546
|
const r = t.reduce(
|
|
547
547
|
(a, n) => a + Dt(n || 0),
|
|
@@ -551,13 +551,13 @@ function Fr(e, ...t) {
|
|
|
551
551
|
throw Error(en);
|
|
552
552
|
return r;
|
|
553
553
|
}
|
|
554
|
-
Fr.SYMBOL =
|
|
555
|
-
const
|
|
554
|
+
Fr.SYMBOL = jl;
|
|
555
|
+
const Xl = "&";
|
|
556
556
|
function Br(...e) {
|
|
557
557
|
return e.reduce((t, r) => t + r.toString(), "");
|
|
558
558
|
}
|
|
559
|
-
Br.SYMBOL =
|
|
560
|
-
const
|
|
559
|
+
Br.SYMBOL = Xl;
|
|
560
|
+
const Zl = "/";
|
|
561
561
|
function Pr(e, ...t) {
|
|
562
562
|
const r = t.reduce(
|
|
563
563
|
(a, n) => a / Dt(n),
|
|
@@ -565,13 +565,13 @@ function Pr(e, ...t) {
|
|
|
565
565
|
);
|
|
566
566
|
return r === 1 / 0 ? ua : isNaN(r) ? en : r;
|
|
567
567
|
}
|
|
568
|
-
Pr.SYMBOL =
|
|
569
|
-
const
|
|
568
|
+
Pr.SYMBOL = Zl;
|
|
569
|
+
const Kl = "=";
|
|
570
570
|
function Hr(e, t) {
|
|
571
571
|
return e === t;
|
|
572
572
|
}
|
|
573
|
-
Hr.SYMBOL =
|
|
574
|
-
const
|
|
573
|
+
Hr.SYMBOL = Kl;
|
|
574
|
+
const Ql = Object.keys(rr), Xo = {
|
|
575
575
|
generalDialog: {
|
|
576
576
|
partiallyError: "Cannot perform this operation on partially merged cells",
|
|
577
577
|
readOnlyError: "Cannot perform this operation in read-only mode",
|
|
@@ -580,7 +580,7 @@ const Kl = Object.keys(rr), Xo = {
|
|
|
580
580
|
cannotSelectMultiple: "Cannot select multiple selections"
|
|
581
581
|
},
|
|
582
582
|
functionlist: [
|
|
583
|
-
...
|
|
583
|
+
...Bl,
|
|
584
584
|
{
|
|
585
585
|
n: "SUMIF",
|
|
586
586
|
t: 0,
|
|
@@ -11302,45 +11302,45 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
11302
11302
|
currencyDetail: [
|
|
11303
11303
|
{ name: "US dollar", pos: "before", value: "$", geckoId: "usd" },
|
|
11304
11304
|
{ name: "EUR", pos: "before", value: "€", geckoId: "eur" },
|
|
11305
|
-
{ name: "RMB", pos: "before", value: "
|
|
11305
|
+
{ name: "RMB", pos: "before", value: "¥", geckoId: "cny" },
|
|
11306
11306
|
{ name: "GBP", pos: "before", value: "£", geckoId: "gbp" },
|
|
11307
|
-
{ name: "HK", pos: "before", value: "
|
|
11308
|
-
{ name: "JPY", pos: "before", value: "
|
|
11307
|
+
{ name: "HK", pos: "before", value: "HK$", geckoId: "hkd" },
|
|
11308
|
+
{ name: "JPY", pos: "before", value: "¥", geckoId: "jpy" },
|
|
11309
11309
|
{ name: "Australian Dollar", pos: "before", value: "AU$", geckoId: "aud" },
|
|
11310
11310
|
{ name: "Bangladeshi Taka", pos: "before", value: "৳", geckoId: "bdt" },
|
|
11311
|
-
{ name: "Bahraini Dinar", pos: "before", value: "
|
|
11311
|
+
{ name: "Bahraini Dinar", pos: "before", value: "din", geckoId: "bhd" },
|
|
11312
11312
|
{ name: "Bermudian Dollar", pos: "before", value: "$", geckoId: "bmd" },
|
|
11313
11313
|
{ name: "Brazilian real", pos: "before", value: "R$", geckoId: "brl" },
|
|
11314
11314
|
{ name: "Canadian Dollar", pos: "before", value: "CA$", geckoId: "cad" },
|
|
11315
|
-
{ name: "Swiss Franc", pos: "before", value: "
|
|
11316
|
-
{ name: "Chilean Peso", pos: "before", value: "
|
|
11317
|
-
{ name: "Czech Koruna", pos: "after", value: "
|
|
11315
|
+
{ name: "Swiss Franc", pos: "before", value: "CHF", geckoId: "chf" },
|
|
11316
|
+
{ name: "Chilean Peso", pos: "before", value: "$", geckoId: "clp" },
|
|
11317
|
+
{ name: "Czech Koruna", pos: "after", value: "Kč", geckoId: "czk" },
|
|
11318
11318
|
{ name: "Danish Krone", pos: "after", value: "kr", geckoId: "dkk" },
|
|
11319
|
-
{ name: "Georgian Lari", pos: "before", value: "
|
|
11319
|
+
{ name: "Georgian Lari", pos: "before", value: "GEL", geckoId: "gel" },
|
|
11320
11320
|
{ name: "Hungarian Forint", pos: "before", value: "Ft", geckoId: "huf" },
|
|
11321
11321
|
{ name: "Indonesian Rupiah", pos: "before", value: "Rp", geckoId: "idr" },
|
|
11322
|
-
{ name: "New Israeli Shekel", pos: "before", value: "
|
|
11322
|
+
{ name: "New Israeli Shekel", pos: "before", value: "₪", geckoId: "ils" },
|
|
11323
11323
|
{ name: "Indian Rupee", pos: "before", value: "₹", geckoId: "inr" },
|
|
11324
|
-
{ name: "
|
|
11325
|
-
{ name: "Kuwaiti Dinar", pos: "before", value: "
|
|
11326
|
-
{ name: "Sri Lanka Rupee", pos: "before", value: "
|
|
11324
|
+
{ name: "South Korean won", pos: "before", value: "₩", geckoId: "krw" },
|
|
11325
|
+
{ name: "Kuwaiti Dinar", pos: "before", value: "din", geckoId: "kwd" },
|
|
11326
|
+
{ name: "Sri Lanka Rupee", pos: "before", value: "Rs", geckoId: "lkr" },
|
|
11327
11327
|
{ name: "Myanmar Kyat", pos: "before", value: "K", geckoId: "mmk" },
|
|
11328
|
-
{ name: "Mexican Peso", pos: "before", value: "
|
|
11329
|
-
{ name: "Malaysian Ringgit", pos: "before", value: "
|
|
11328
|
+
{ name: "Mexican Peso", pos: "before", value: "MXN", geckoId: "mxn" },
|
|
11329
|
+
{ name: "Malaysian Ringgit", pos: "before", value: "RM", geckoId: "myr" },
|
|
11330
11330
|
{ name: "Nigerian Naira", pos: "before", value: "₦", geckoId: "ngn" },
|
|
11331
|
-
{ name: "Norwegian Krone", pos: "after", value: "
|
|
11332
|
-
{ name: "New Zealand Dollar", pos: "before", value: "
|
|
11331
|
+
{ name: "Norwegian Krone", pos: "after", value: "kr", geckoId: "nok" },
|
|
11332
|
+
{ name: "New Zealand Dollar", pos: "before", value: "NZ$", geckoId: "nzd" },
|
|
11333
11333
|
{ name: "Philippine Peso", pos: "before", value: "₱", geckoId: "php" },
|
|
11334
|
-
{ name: "Pakistan Rupee", pos: "before", value: "
|
|
11334
|
+
{ name: "Pakistan Rupee", pos: "before", value: "Rs", geckoId: "pkr" },
|
|
11335
11335
|
{ name: "Polish Zloty", pos: "after", value: "zł", geckoId: "pln" },
|
|
11336
|
-
{ name: "Russian Ruble", pos: "after", value: "
|
|
11336
|
+
{ name: "Russian Ruble", pos: "after", value: "₽", geckoId: "rub" },
|
|
11337
11337
|
{ name: "Saudi Riyal", pos: "before", value: "Rial", geckoId: "sar" },
|
|
11338
11338
|
{ name: "Swedish Krona", pos: "after", value: "kr", geckoId: "sek" },
|
|
11339
|
-
{ name: "Singapore Dollar", pos: "before", value: "
|
|
11339
|
+
{ name: "Singapore Dollar", pos: "before", value: "S$", geckoId: "sgd" },
|
|
11340
11340
|
{ name: "Thai Baht", pos: "before", value: "฿", geckoId: "thb" },
|
|
11341
|
-
{ name: "Turkish Lira", pos: "before", value: "
|
|
11341
|
+
{ name: "Turkish Lira", pos: "before", value: "₺", geckoId: "try" },
|
|
11342
11342
|
{ name: "Ukrainian Hryvnia", pos: "before", value: "грн.", geckoId: "uah" },
|
|
11343
|
-
{ name: "South African Rand", pos: "before", value: "
|
|
11343
|
+
{ name: "South African Rand", pos: "before", value: "R", geckoId: "zar" }
|
|
11344
11344
|
],
|
|
11345
11345
|
defaultFmt: (e) => [
|
|
11346
11346
|
{ text: "Auto", value: "General", example: "" },
|
|
@@ -11357,7 +11357,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
11357
11357
|
},
|
|
11358
11358
|
{
|
|
11359
11359
|
text: "Currency",
|
|
11360
|
-
value:
|
|
11360
|
+
value: `"${e}"#,##0.00`,
|
|
11361
11361
|
example: `${e}1,200.09`
|
|
11362
11362
|
},
|
|
11363
11363
|
{ text: "", value: "split", example: "" },
|
|
@@ -12310,10 +12310,10 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
12310
12310
|
contact: "Server communication error occurred, please refresh the page and try again, if not, please contact the administrator!",
|
|
12311
12311
|
support: "The current browser does not support WebSocket"
|
|
12312
12312
|
}
|
|
12313
|
-
},
|
|
12313
|
+
}, Jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12314
12314
|
__proto__: null,
|
|
12315
12315
|
default: Xo
|
|
12316
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
12316
|
+
}, Symbol.toStringTag, { value: "Module" })), es = Ql, mo = (Xo.functionlist || []).reduce((e, t) => (t != null && t.n && (e[t.n.toUpperCase()] = t), e), /* @__PURE__ */ Object.create(null));
|
|
12317
12317
|
function sr(e) {
|
|
12318
12318
|
return function(...r) {
|
|
12319
12319
|
e = e.toUpperCase();
|
|
@@ -12337,28 +12337,28 @@ function sr(e) {
|
|
|
12337
12337
|
};
|
|
12338
12338
|
}
|
|
12339
12339
|
sr.isFactory = !0;
|
|
12340
|
-
sr.SYMBOL =
|
|
12341
|
-
const
|
|
12340
|
+
sr.SYMBOL = es;
|
|
12341
|
+
const ts = ">";
|
|
12342
12342
|
function zr(e, t) {
|
|
12343
12343
|
return e > t;
|
|
12344
12344
|
}
|
|
12345
|
-
zr.SYMBOL =
|
|
12346
|
-
const
|
|
12345
|
+
zr.SYMBOL = ts;
|
|
12346
|
+
const ns = ">=";
|
|
12347
12347
|
function Ur(e, t) {
|
|
12348
12348
|
return e >= t;
|
|
12349
12349
|
}
|
|
12350
|
-
Ur.SYMBOL =
|
|
12351
|
-
const
|
|
12350
|
+
Ur.SYMBOL = ns;
|
|
12351
|
+
const rs = "<";
|
|
12352
12352
|
function Wr(e, t) {
|
|
12353
12353
|
return e < t;
|
|
12354
12354
|
}
|
|
12355
|
-
Wr.SYMBOL =
|
|
12356
|
-
const
|
|
12355
|
+
Wr.SYMBOL = rs;
|
|
12356
|
+
const as = "<=";
|
|
12357
12357
|
function Vr(e, t) {
|
|
12358
12358
|
return e <= t;
|
|
12359
12359
|
}
|
|
12360
|
-
Vr.SYMBOL =
|
|
12361
|
-
const
|
|
12360
|
+
Vr.SYMBOL = as;
|
|
12361
|
+
const is = "-";
|
|
12362
12362
|
function Gr(e, ...t) {
|
|
12363
12363
|
const r = t.reduce(
|
|
12364
12364
|
(a, n) => a - Dt(n),
|
|
@@ -12368,8 +12368,8 @@ function Gr(e, ...t) {
|
|
|
12368
12368
|
throw Error(en);
|
|
12369
12369
|
return r;
|
|
12370
12370
|
}
|
|
12371
|
-
Gr.SYMBOL =
|
|
12372
|
-
const
|
|
12371
|
+
Gr.SYMBOL = is;
|
|
12372
|
+
const os = "*";
|
|
12373
12373
|
function Yr(e, ...t) {
|
|
12374
12374
|
const r = t.reduce(
|
|
12375
12375
|
(a, n) => a * Dt(n),
|
|
@@ -12379,20 +12379,20 @@ function Yr(e, ...t) {
|
|
|
12379
12379
|
throw Error(en);
|
|
12380
12380
|
return r;
|
|
12381
12381
|
}
|
|
12382
|
-
Yr.SYMBOL =
|
|
12383
|
-
const
|
|
12382
|
+
Yr.SYMBOL = os;
|
|
12383
|
+
const ls = "<>";
|
|
12384
12384
|
function jr(e, t) {
|
|
12385
12385
|
return e !== t;
|
|
12386
12386
|
}
|
|
12387
|
-
jr.SYMBOL =
|
|
12388
|
-
const
|
|
12387
|
+
jr.SYMBOL = ls;
|
|
12388
|
+
const ss = "^";
|
|
12389
12389
|
function Xr(e, t) {
|
|
12390
12390
|
const r = Math.pow(Dt(e), Dt(t));
|
|
12391
12391
|
if (isNaN(r))
|
|
12392
12392
|
throw Error(en);
|
|
12393
12393
|
return r;
|
|
12394
12394
|
}
|
|
12395
|
-
Xr.SYMBOL =
|
|
12395
|
+
Xr.SYMBOL = ss;
|
|
12396
12396
|
const cr = /* @__PURE__ */ Object.create(null);
|
|
12397
12397
|
function ho(e, t = []) {
|
|
12398
12398
|
if (e = e.toUpperCase(), !cr[e])
|
|
@@ -12417,22 +12417,22 @@ _t(Vr.SYMBOL, Vr);
|
|
|
12417
12417
|
_t(Yr.SYMBOL, Yr);
|
|
12418
12418
|
_t(jr.SYMBOL, jr);
|
|
12419
12419
|
_t(Gr.SYMBOL, Gr);
|
|
12420
|
-
function
|
|
12420
|
+
function cs(e) {
|
|
12421
12421
|
if (!e) return null;
|
|
12422
12422
|
const t = e.match(/^([A-Z]+)(\d+):([A-Z]+)(\d+)$/i);
|
|
12423
12423
|
if (!t) return null;
|
|
12424
12424
|
const [, r, a, n, o] = t;
|
|
12425
12425
|
return r === n && a !== o ? !1 : a === o && r !== n ? !0 : null;
|
|
12426
12426
|
}
|
|
12427
|
-
const
|
|
12427
|
+
const us = "[A-Za-z0-9_À-ʯ]+", fs = "'(?:(?!').|'')*'", yr = `(?:${us}|${fs})!`, ds = new RegExp(
|
|
12428
12428
|
`^(?:${yr})?(?:[$][A-Za-z]+[$][0-9]+)`
|
|
12429
|
-
), ds = new RegExp(
|
|
12430
|
-
`^(?:${yr})?(?:[$][A-Za-z]+[0-9]*)`
|
|
12431
12429
|
), ms = new RegExp(
|
|
12432
|
-
`^(?:${yr})?(?:[A-Za-z]
|
|
12430
|
+
`^(?:${yr})?(?:[$][A-Za-z]+[0-9]*)`
|
|
12433
12431
|
), hs = new RegExp(
|
|
12432
|
+
`^(?:${yr})?(?:[A-Za-z]*[$][0-9]+)`
|
|
12433
|
+
), ps = new RegExp(
|
|
12434
12434
|
`^(?:${yr})?(?:(?:[A-Za-z]+[0-9]*)|(?:[A-Za-z]*[0-9]+))(?!\\d)(?!\\.)`
|
|
12435
|
-
),
|
|
12435
|
+
), gs = /^(?:[0-9]+$)/;
|
|
12436
12436
|
var ar, Oe = function(e, t, r, a) {
|
|
12437
12437
|
for (r = r || {}, a = e.length; a--; r[e[a]] = t) ;
|
|
12438
12438
|
return r;
|
|
@@ -12562,7 +12562,7 @@ var ar, Oe = function(e, t, r, a) {
|
|
|
12562
12562
|
let s;
|
|
12563
12563
|
if (c.toLowerCase().includes("xlookup")) {
|
|
12564
12564
|
let w = c.includes("XLOOKUP") ? (p = (d = (m = c == null ? void 0 : c.split("XLOOKUP(")) == null ? void 0 : m[1]) == null ? void 0 : d.split(",")) == null ? void 0 : p[1] : (b = (g = (y = c == null ? void 0 : c.split("xlookup(")) == null ? void 0 : y[1]) == null ? void 0 : g.split(",")) == null ? void 0 : b[1];
|
|
12565
|
-
s =
|
|
12565
|
+
s = cs(w);
|
|
12566
12566
|
}
|
|
12567
12567
|
var u = i.length - 1;
|
|
12568
12568
|
switch (o) {
|
|
@@ -13284,7 +13284,7 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : X = "
|
|
|
13284
13284
|
}
|
|
13285
13285
|
return !0;
|
|
13286
13286
|
}
|
|
13287
|
-
},
|
|
13287
|
+
}, ys = /* @__PURE__ */ function() {
|
|
13288
13288
|
var e = {
|
|
13289
13289
|
EOF: 1,
|
|
13290
13290
|
parseError: function(r, a) {
|
|
@@ -13422,7 +13422,7 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : X = "
|
|
|
13422
13422
|
if (a = this._input.match(this.rules[o[i]]), a && (!r || a[0].length > r[0].length)) {
|
|
13423
13423
|
r = a, n = i;
|
|
13424
13424
|
const l = ar.length;
|
|
13425
|
-
if (o[i] === 8 && r[0].match(
|
|
13425
|
+
if (o[i] === 8 && r[0].match(gs) && !(r.input.slice(r[0].length)[0] === ":" || l > 3 && ar[l - 4] === 25 && ar[l - 2] === 27)) {
|
|
13426
13426
|
r = !1;
|
|
13427
13427
|
continue;
|
|
13428
13428
|
}
|
|
@@ -13562,10 +13562,10 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : X = "
|
|
|
13562
13562
|
/^(?:'(\\[']|[^'])*'[^'!])/,
|
|
13563
13563
|
/^(?:[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]))/,
|
|
13564
13564
|
/^(?:#[A-Z0-9\/]+(!|\?)?)/,
|
|
13565
|
-
fs,
|
|
13566
13565
|
ds,
|
|
13567
13566
|
ms,
|
|
13568
13567
|
hs,
|
|
13568
|
+
ps,
|
|
13569
13569
|
/^(?:[A-Za-z\.]+(?=[(]))/,
|
|
13570
13570
|
/^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,
|
|
13571
13571
|
/^(?:[A-Za-z_]+)/,
|
|
@@ -13642,25 +13642,25 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : X = "
|
|
|
13642
13642
|
};
|
|
13643
13643
|
return e;
|
|
13644
13644
|
}();
|
|
13645
|
-
fa.lexer =
|
|
13645
|
+
fa.lexer = ys;
|
|
13646
13646
|
function da() {
|
|
13647
13647
|
this.yy = {};
|
|
13648
13648
|
}
|
|
13649
13649
|
da.prototype = fa;
|
|
13650
13650
|
fa.Parser = da;
|
|
13651
|
-
function
|
|
13651
|
+
function bs(e, t = 1) {
|
|
13652
13652
|
return e = e.substring(t, e.length - t), e;
|
|
13653
13653
|
}
|
|
13654
|
-
function
|
|
13654
|
+
function ws(e) {
|
|
13655
13655
|
let t = parseInt(e, 10);
|
|
13656
13656
|
return isNaN(t) ? t = -1 : t = Math.max(t - 1, -1), t;
|
|
13657
13657
|
}
|
|
13658
|
-
function
|
|
13658
|
+
function vs(e) {
|
|
13659
13659
|
let t = "";
|
|
13660
13660
|
return e >= 0 && (t = `${e + 1}`), t;
|
|
13661
13661
|
}
|
|
13662
13662
|
const Zo = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", Zr = Zo.length;
|
|
13663
|
-
function
|
|
13663
|
+
function _s(e) {
|
|
13664
13664
|
let t = 0;
|
|
13665
13665
|
if (typeof e == "string") {
|
|
13666
13666
|
e = e.toUpperCase();
|
|
@@ -13669,14 +13669,14 @@ function vs(e) {
|
|
|
13669
13669
|
}
|
|
13670
13670
|
return --t, t;
|
|
13671
13671
|
}
|
|
13672
|
-
function
|
|
13672
|
+
function Ts(e) {
|
|
13673
13673
|
let t = "";
|
|
13674
13674
|
for (; e >= 0; )
|
|
13675
13675
|
t = String.fromCharCode(e % Zr + 97) + t, e = Math.floor(e / Zr) - 1;
|
|
13676
13676
|
return t.toUpperCase();
|
|
13677
13677
|
}
|
|
13678
|
-
const
|
|
13679
|
-
`^(?:${
|
|
13678
|
+
const $s = "[A-Za-z0-9_À-ʯ]+", Cs = "'(?:(?!').|'')*'", Ns = `(${$s}|${Cs})!`, yo = new RegExp(
|
|
13679
|
+
`^(?:${Ns})?([$])?([A-Za-z]*)([$])?([0-9]*)$`
|
|
13680
13680
|
);
|
|
13681
13681
|
function kr(e) {
|
|
13682
13682
|
if (typeof e != "string" || !yo.test(e))
|
|
@@ -13686,12 +13686,12 @@ function kr(e) {
|
|
|
13686
13686
|
const i = t == null ? null : e.slice(0, t.length).replace(/^'|'$/g, "").replace(/''/g, "'");
|
|
13687
13687
|
return [
|
|
13688
13688
|
{
|
|
13689
|
-
index:
|
|
13689
|
+
index: ws(o),
|
|
13690
13690
|
label: o,
|
|
13691
13691
|
isAbsolute: n === "$"
|
|
13692
13692
|
},
|
|
13693
13693
|
{
|
|
13694
|
-
index:
|
|
13694
|
+
index: _s(a),
|
|
13695
13695
|
label: a,
|
|
13696
13696
|
isAbsolute: r === "$"
|
|
13697
13697
|
},
|
|
@@ -13699,18 +13699,18 @@ function kr(e) {
|
|
|
13699
13699
|
];
|
|
13700
13700
|
}
|
|
13701
13701
|
function bo(e, t) {
|
|
13702
|
-
const r = (e.isAbsolute ? "$" : "") +
|
|
13703
|
-
return (t.isAbsolute ? "$" : "") +
|
|
13702
|
+
const r = (e.isAbsolute ? "$" : "") + vs(e.index);
|
|
13703
|
+
return (t.isAbsolute ? "$" : "") + Ts(t.index) + r;
|
|
13704
13704
|
}
|
|
13705
|
-
function
|
|
13705
|
+
function xs(e) {
|
|
13706
13706
|
return e.replace(/[\u201C\u201D]/g, '"').replace(/[\u2018\u2019]/g, "'");
|
|
13707
13707
|
}
|
|
13708
|
-
class
|
|
13708
|
+
class As extends Ul {
|
|
13709
13709
|
constructor() {
|
|
13710
13710
|
super(), this.parser = new da(), this.cryptoDenomination = "", this.cryptoDecimals = 0, this.parser.yy = {
|
|
13711
13711
|
toNumber: Dt,
|
|
13712
|
-
trimEdges:
|
|
13713
|
-
invertNumber:
|
|
13712
|
+
trimEdges: bs,
|
|
13713
|
+
invertNumber: Vl,
|
|
13714
13714
|
throwError: (t) => this._throwError(t),
|
|
13715
13715
|
callVariable: (t) => this._callVariable(t),
|
|
13716
13716
|
evaluateByOperator: ho,
|
|
@@ -13728,7 +13728,7 @@ class xs extends zl {
|
|
|
13728
13728
|
* @return {*} Returns an object with tow properties `error` and `result`.
|
|
13729
13729
|
*/
|
|
13730
13730
|
parse(t, r) {
|
|
13731
|
-
t =
|
|
13731
|
+
t = xs(t);
|
|
13732
13732
|
let a = null, n = null;
|
|
13733
13733
|
this.options = r;
|
|
13734
13734
|
try {
|
|
@@ -13869,17 +13869,17 @@ class xs extends zl {
|
|
|
13869
13869
|
* @private
|
|
13870
13870
|
*/
|
|
13871
13871
|
_throwError(t) {
|
|
13872
|
-
throw
|
|
13872
|
+
throw Yl(t) ? Error(t) : Error(Fn);
|
|
13873
13873
|
}
|
|
13874
13874
|
}
|
|
13875
13875
|
let ma = "uk";
|
|
13876
|
-
function
|
|
13876
|
+
function Ss(e) {
|
|
13877
13877
|
return e === "us" ? "us" : "uk";
|
|
13878
13878
|
}
|
|
13879
|
-
function
|
|
13880
|
-
ma =
|
|
13879
|
+
function qf(e) {
|
|
13880
|
+
ma = Ss(e);
|
|
13881
13881
|
}
|
|
13882
|
-
function
|
|
13882
|
+
function ks() {
|
|
13883
13883
|
return ma;
|
|
13884
13884
|
}
|
|
13885
13885
|
function ha() {
|
|
@@ -13888,29 +13888,29 @@ function ha() {
|
|
|
13888
13888
|
function Ko(e) {
|
|
13889
13889
|
return ha() ? e ? "MM/dd/yyyy HH:mm:ss" : "MM/dd/yyyy" : e ? "dd/MM/yyyy HH:mm:ss" : "dd/MM/yyyy";
|
|
13890
13890
|
}
|
|
13891
|
-
function
|
|
13891
|
+
function Es(e) {
|
|
13892
13892
|
return e ? ((e.toLowerCase().replace(/"[^"]*"/g, "").replace(/\[[^\]]*]/g, "").split(/(?:am\/pm|h+)/i)[0] || "").match(/[dmy]+/g) || []).map((l) => l[0]).filter((l, c, s) => c === 0 || l !== s[c - 1]) : [];
|
|
13893
13893
|
}
|
|
13894
13894
|
function Qn(e, t) {
|
|
13895
|
-
const r =
|
|
13895
|
+
const r = Es(e);
|
|
13896
13896
|
if (r.length === 0) return !1;
|
|
13897
13897
|
const a = r.indexOf(t[0]), n = r.indexOf(t[1]), o = r.indexOf(t[2]);
|
|
13898
13898
|
return a !== -1 && n !== -1 && o !== -1 && a < n && n < o;
|
|
13899
13899
|
}
|
|
13900
|
-
function
|
|
13900
|
+
function qs(e) {
|
|
13901
13901
|
if (!e) return !1;
|
|
13902
13902
|
const n = e.toLowerCase().replace(/"[^"]*"/g, "").replace(/\[[^\]]*]/g, "").split(/(?:am\/pm|h+)/i)[0] || "";
|
|
13903
13903
|
if (!/m{3,}/.test(n)) return !1;
|
|
13904
13904
|
const i = n.match(/[dmy]+/g) || [], l = i.some((s) => s[0] === "d"), c = i.some((s) => s[0] === "y");
|
|
13905
13905
|
return l && c;
|
|
13906
13906
|
}
|
|
13907
|
-
function
|
|
13908
|
-
return !e || e === "General" || e === "@" ? !1 :
|
|
13907
|
+
function Ms(e) {
|
|
13908
|
+
return !e || e === "General" || e === "@" ? !1 : qs(e) ? !0 : ha() ? Qn(e, ["m", "d", "y"]) || Qn(e, ["y", "m", "d"]) : Qn(e, ["d", "m", "y"]) || Qn(e, ["y", "m", "d"]);
|
|
13909
13909
|
}
|
|
13910
|
-
function
|
|
13911
|
-
return
|
|
13910
|
+
function Rs(e, t) {
|
|
13911
|
+
return Ms(e) ? e : Ko(t);
|
|
13912
13912
|
}
|
|
13913
|
-
function
|
|
13913
|
+
function Mf(e) {
|
|
13914
13914
|
if (document.createRange)
|
|
13915
13915
|
if (e.innerHTML !== e.innerText || e.innerHTML === "") {
|
|
13916
13916
|
e.focus();
|
|
@@ -13930,7 +13930,7 @@ function Ef(e) {
|
|
|
13930
13930
|
function Qo(e) {
|
|
13931
13931
|
return e === document.body ? !1 : document.body.contains(e);
|
|
13932
13932
|
}
|
|
13933
|
-
function
|
|
13933
|
+
function Is(e) {
|
|
13934
13934
|
var t, r;
|
|
13935
13935
|
if (window.getSelection) {
|
|
13936
13936
|
const a = document.createRange(), n = e.firstChild;
|
|
@@ -13952,7 +13952,7 @@ function Kr(e) {
|
|
|
13952
13952
|
`).replace(/\r/g, `
|
|
13953
13953
|
`);
|
|
13954
13954
|
}
|
|
13955
|
-
function
|
|
13955
|
+
function Rf(e) {
|
|
13956
13956
|
const t = window.getSelection();
|
|
13957
13957
|
if (!t || t.rangeCount === 0) return null;
|
|
13958
13958
|
const r = t.focusNode;
|
|
@@ -13960,7 +13960,7 @@ function qf(e) {
|
|
|
13960
13960
|
const a = document.createRange();
|
|
13961
13961
|
return a.selectNodeContents(e), a.setEnd(r, t.focusOffset), Kr(a.toString()).length;
|
|
13962
13962
|
}
|
|
13963
|
-
function
|
|
13963
|
+
function If(e) {
|
|
13964
13964
|
const t = window.getSelection();
|
|
13965
13965
|
if (!t || t.rangeCount === 0) return null;
|
|
13966
13966
|
const r = t.getRangeAt(0);
|
|
@@ -13971,7 +13971,7 @@ function Mf(e) {
|
|
|
13971
13971
|
const n = Kr(a.toString()).length, o = Kr(r.toString());
|
|
13972
13972
|
return { start: n, end: n + o.length };
|
|
13973
13973
|
}
|
|
13974
|
-
function
|
|
13974
|
+
function Df(e, t, r) {
|
|
13975
13975
|
e.focus({ preventScroll: !0 });
|
|
13976
13976
|
const a = window.getSelection();
|
|
13977
13977
|
if (!a) return;
|
|
@@ -14002,7 +14002,7 @@ function Rf(e, t, r) {
|
|
|
14002
14002
|
u.setStart(o, i), u.setEnd(l, c), a.removeAllRanges(), a.addRange(u);
|
|
14003
14003
|
}
|
|
14004
14004
|
}
|
|
14005
|
-
function
|
|
14005
|
+
function Of(e, t, r) {
|
|
14006
14006
|
if (t >= r) return [];
|
|
14007
14007
|
let a = 0, n = null, o = 0, i = null, l = 0;
|
|
14008
14008
|
function c(f) {
|
|
@@ -14040,7 +14040,7 @@ const wo = {
|
|
|
14040
14040
|
fc: "color",
|
|
14041
14041
|
cl: "text-decoration",
|
|
14042
14042
|
un: "border-bottom"
|
|
14043
|
-
},
|
|
14043
|
+
}, Lf = {
|
|
14044
14044
|
bl: 1,
|
|
14045
14045
|
it: 1,
|
|
14046
14046
|
ff: 1,
|
|
@@ -14065,7 +14065,7 @@ function br(e) {
|
|
|
14065
14065
|
var t;
|
|
14066
14066
|
return (e == null ? void 0 : e.t) === "inlineStr" && (((t = e == null ? void 0 : e.s) == null ? void 0 : t.length) ?? 0) > 0;
|
|
14067
14067
|
}
|
|
14068
|
-
function
|
|
14068
|
+
function Ff(e, t, r) {
|
|
14069
14069
|
const a = Ke(e, t, r, "ct");
|
|
14070
14070
|
if (br(a)) {
|
|
14071
14071
|
const n = a.s;
|
|
@@ -14078,7 +14078,7 @@ function Of(e, t, r) {
|
|
|
14078
14078
|
}
|
|
14079
14079
|
return "";
|
|
14080
14080
|
}
|
|
14081
|
-
function
|
|
14081
|
+
function Ds(e, t) {
|
|
14082
14082
|
if (h.isEmpty(e))
|
|
14083
14083
|
return {};
|
|
14084
14084
|
const r = e.split(";"), a = {
|
|
@@ -14104,7 +14104,7 @@ function Is(e, t) {
|
|
|
14104
14104
|
o === "font-weight" && i === "bold" && (a.bl = 1), o === "font-style" && i === "italic" && (a.it = 1), o === "font-size" && (a.fs = parseInt(i, 10)), o === "color" && (a.fc = i), (o === "text-decoration" || o === "text-decoration-line") && (i.includes("underline") && (a.un = 1), i.includes("line-through") && (a.cl = 1)), o === "border-bottom" && (a.un = 1), o === "lucky-strike" && (a.cl = Number(i)), o === "lucky-underline" && (a.un = Number(i));
|
|
14105
14105
|
}), a;
|
|
14106
14106
|
}
|
|
14107
|
-
function
|
|
14107
|
+
function Os(e) {
|
|
14108
14108
|
var a;
|
|
14109
14109
|
const t = [], r = /* @__PURE__ */ new Set();
|
|
14110
14110
|
if (((a = e == null ? void 0 : e.ct) == null ? void 0 : a.t) === "inlineStr" && Array.isArray(e.ct.s))
|
|
@@ -14117,22 +14117,22 @@ function Ds(e) {
|
|
|
14117
14117
|
}
|
|
14118
14118
|
return t;
|
|
14119
14119
|
}
|
|
14120
|
-
function
|
|
14120
|
+
function Ls(e) {
|
|
14121
14121
|
return e.trim().toLowerCase().replace(/\s+/g, "");
|
|
14122
14122
|
}
|
|
14123
|
-
function
|
|
14124
|
-
const t =
|
|
14123
|
+
function Fs(e) {
|
|
14124
|
+
const t = Ls(e);
|
|
14125
14125
|
return t === "rgb(0,0,255)" || t === "#0000ff" || t === "#00f" || t === "blue";
|
|
14126
14126
|
}
|
|
14127
|
-
function
|
|
14128
|
-
typeof e.fc == "string" &&
|
|
14127
|
+
function Bf(e) {
|
|
14128
|
+
typeof e.fc == "string" && Fs(e.fc) && delete e.fc, e.un === 1 && delete e.un;
|
|
14129
14129
|
}
|
|
14130
|
-
function
|
|
14130
|
+
function Bs(e, t) {
|
|
14131
14131
|
var o, i, l, c;
|
|
14132
14132
|
const r = [];
|
|
14133
14133
|
let a = null, n = null;
|
|
14134
14134
|
for (let s = 0; s < e.length; s += 1) {
|
|
14135
|
-
const u = e[s], f =
|
|
14135
|
+
const u = e[s], f = Ds(
|
|
14136
14136
|
u.style.cssText,
|
|
14137
14137
|
t
|
|
14138
14138
|
);
|
|
@@ -14153,7 +14153,7 @@ function Fs(e, t) {
|
|
|
14153
14153
|
}
|
|
14154
14154
|
return r;
|
|
14155
14155
|
}
|
|
14156
|
-
function
|
|
14156
|
+
function Pf(e, t, r) {
|
|
14157
14157
|
if (h.isNil(e.ct))
|
|
14158
14158
|
return;
|
|
14159
14159
|
const { s: a } = e.ct;
|
|
@@ -14177,7 +14177,7 @@ function _o(e, t) {
|
|
|
14177
14177
|
}
|
|
14178
14178
|
return "";
|
|
14179
14179
|
}
|
|
14180
|
-
function
|
|
14180
|
+
function Ps(e, t, r) {
|
|
14181
14181
|
const a = e.split(";");
|
|
14182
14182
|
let n = "";
|
|
14183
14183
|
if (t == null || t.length === 0)
|
|
@@ -14192,7 +14192,7 @@ function Bs(e, t, r) {
|
|
|
14192
14192
|
else t.length > 0 && (e += `${t}:${r};`, n = e);
|
|
14193
14193
|
return n;
|
|
14194
14194
|
}
|
|
14195
|
-
function
|
|
14195
|
+
function Hs(e, t) {
|
|
14196
14196
|
const r = e.split(";");
|
|
14197
14197
|
let a = "";
|
|
14198
14198
|
const n = t;
|
|
@@ -14218,10 +14218,10 @@ function Wt(e, t, r) {
|
|
|
14218
14218
|
c === "" && (c = "11"), a._fontSize = Number(c), a._color = l;
|
|
14219
14219
|
}
|
|
14220
14220
|
const n = Sa(a, void 0, void 0, !1);
|
|
14221
|
-
if (e =
|
|
14221
|
+
if (e = Hs(e, t), h.isEmpty(n))
|
|
14222
14222
|
return e;
|
|
14223
14223
|
const o = h.kebabCase(Object.keys(n)[0]), i = Object.values(n)[0];
|
|
14224
|
-
return e =
|
|
14224
|
+
return e = Ps(e, o, i), e;
|
|
14225
14225
|
}
|
|
14226
14226
|
function pn(e, t, r = !0) {
|
|
14227
14227
|
const a = e.split(";"), n = t.split(";");
|
|
@@ -14258,7 +14258,7 @@ function pn(e, t, r = !0) {
|
|
|
14258
14258
|
function Ye(e) {
|
|
14259
14259
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
14260
14260
|
}
|
|
14261
|
-
function
|
|
14261
|
+
function Hf(e, t, r, a) {
|
|
14262
14262
|
var d, p, y;
|
|
14263
14263
|
const n = window.getSelection();
|
|
14264
14264
|
if (!n || n.rangeCount === 0) return;
|
|
@@ -14359,7 +14359,7 @@ function Bf(e, t, r, a) {
|
|
|
14359
14359
|
}
|
|
14360
14360
|
((d = u.parentElement) == null ? void 0 : d.tagName) === "SPAN" ? (b = h.indexOf(i.querySelectorAll("span"), g), g.outerHTML = Y) : (b = 0, g.innerHTML = Y);
|
|
14361
14361
|
let J = 0;
|
|
14362
|
-
B === 0 ? J = b : J = b + 1,
|
|
14362
|
+
B === 0 ? J = b : J = b + 1, Is(
|
|
14363
14363
|
i.querySelectorAll("span")[J]
|
|
14364
14364
|
);
|
|
14365
14365
|
}
|
|
@@ -14431,7 +14431,7 @@ function Er(e) {
|
|
|
14431
14431
|
const o = document.createRange();
|
|
14432
14432
|
o.setStart(n, ((c = n.textContent) == null ? void 0 : c.length) || 0), o.collapse(!0), t.removeAllRanges(), t.addRange(o);
|
|
14433
14433
|
}
|
|
14434
|
-
function
|
|
14434
|
+
function zs(e) {
|
|
14435
14435
|
var r, a;
|
|
14436
14436
|
const t = e.querySelectorAll("span");
|
|
14437
14437
|
for (let n = t.length - 1; n >= 0; n -= 1) {
|
|
@@ -14440,14 +14440,14 @@ function Hs(e) {
|
|
|
14440
14440
|
}
|
|
14441
14441
|
return null;
|
|
14442
14442
|
}
|
|
14443
|
-
function
|
|
14443
|
+
function Us(e) {
|
|
14444
14444
|
var r, a;
|
|
14445
14445
|
const t = e.nextElementSibling;
|
|
14446
14446
|
return t instanceof HTMLElement && t.tagName === "SPAN" && !((r = t.dataset) != null && r.linkType) && !((a = t.dataset) != null && a.linkAddress);
|
|
14447
14447
|
}
|
|
14448
14448
|
function qr(e) {
|
|
14449
|
-
const t =
|
|
14450
|
-
if (!t ||
|
|
14449
|
+
const t = zs(e);
|
|
14450
|
+
if (!t || Us(t)) return;
|
|
14451
14451
|
const r = document.createElement("span");
|
|
14452
14452
|
r.className = "luckysheet-input-span", r.setAttribute("data-no-link-anchor", "1"), r.textContent = " ", t.insertAdjacentElement("afterend", r);
|
|
14453
14453
|
}
|
|
@@ -14462,7 +14462,7 @@ function Jn(e, t, r) {
|
|
|
14462
14462
|
}
|
|
14463
14463
|
return a + r;
|
|
14464
14464
|
}
|
|
14465
|
-
function
|
|
14465
|
+
function zf(e, t, r) {
|
|
14466
14466
|
var d, p, y, g, b, w;
|
|
14467
14467
|
const a = window.getSelection();
|
|
14468
14468
|
if (!a || a.rangeCount === 0) return;
|
|
@@ -14600,7 +14600,7 @@ function Qr(e, t) {
|
|
|
14600
14600
|
}
|
|
14601
14601
|
return null;
|
|
14602
14602
|
}
|
|
14603
|
-
function
|
|
14603
|
+
function Ws(e) {
|
|
14604
14604
|
const t = window.getSelection();
|
|
14605
14605
|
if (!(t != null && t.rangeCount) || !t.anchorNode || !e.contains(t.anchorNode))
|
|
14606
14606
|
return;
|
|
@@ -14608,12 +14608,12 @@ function Us(e) {
|
|
|
14608
14608
|
if (!(!a || !n) && !(a.linkType !== n.linkType || a.linkAddress !== n.linkAddress))
|
|
14609
14609
|
return a;
|
|
14610
14610
|
}
|
|
14611
|
-
function
|
|
14611
|
+
function Uf(e) {
|
|
14612
14612
|
const t = window.getSelection();
|
|
14613
14613
|
if (!(t != null && t.rangeCount) || !t.anchorNode || !e.contains(t.anchorNode))
|
|
14614
14614
|
return;
|
|
14615
14615
|
const r = t.getRangeAt(0);
|
|
14616
|
-
return r.collapsed ? Qr(r.startContainer, e) ?? void 0 :
|
|
14616
|
+
return r.collapsed ? Qr(r.startContainer, e) ?? void 0 : Ws(e);
|
|
14617
14617
|
}
|
|
14618
14618
|
function To(e) {
|
|
14619
14619
|
return Math.ceil(e.charCodeAt(0).toString(2).length / 8);
|
|
@@ -14621,9 +14621,9 @@ function To(e) {
|
|
|
14621
14621
|
function el(e) {
|
|
14622
14622
|
return !!/[\u4E00-\u9FA5]|[\uFE30-\uFFA0]/gi.exec(e);
|
|
14623
14623
|
}
|
|
14624
|
-
const
|
|
14624
|
+
const Vs = 200, Gs = 5e3, mn = {};
|
|
14625
14625
|
let ir = 0, jt = {}, or = 0, tl = {};
|
|
14626
|
-
function
|
|
14626
|
+
function Ys(e) {
|
|
14627
14627
|
if (!e)
|
|
14628
14628
|
return null;
|
|
14629
14629
|
const t = e.match(/_\("([^"]*)"\*/);
|
|
@@ -14632,10 +14632,10 @@ function Gs(e) {
|
|
|
14632
14632
|
const r = e.match(/"([^"]*)"\*/);
|
|
14633
14633
|
return (r == null ? void 0 : r[1]) || null;
|
|
14634
14634
|
}
|
|
14635
|
-
function
|
|
14635
|
+
function js(e, t, r, a, n) {
|
|
14636
14636
|
if (!t || !t.includes("*") || !r || r <= 0)
|
|
14637
14637
|
return e;
|
|
14638
|
-
const o =
|
|
14638
|
+
const o = Ys(t);
|
|
14639
14639
|
if (!o)
|
|
14640
14640
|
return e;
|
|
14641
14641
|
const i = e.trim(), l = i.indexOf(o);
|
|
@@ -14647,24 +14647,24 @@ function Ys(e, t, r, a, n) {
|
|
|
14647
14647
|
const u = a.measureText(o).width, f = a.measureText(s).width, m = Math.max(1, a.measureText(" ").width || 1), d = r - n - u - f, p = Math.floor(d / m);
|
|
14648
14648
|
return p <= 1 ? e : `${`${c}${o}`}${" ".repeat(p)}${s}`;
|
|
14649
14649
|
}
|
|
14650
|
-
function
|
|
14650
|
+
function Wf() {
|
|
14651
14651
|
jt = {}, or = 0, tl = {};
|
|
14652
14652
|
for (const e in mn) delete mn[e];
|
|
14653
14653
|
ir = 0;
|
|
14654
14654
|
}
|
|
14655
|
-
function
|
|
14655
|
+
function Xs(e, t) {
|
|
14656
14656
|
if (t in mn)
|
|
14657
14657
|
return mn[t];
|
|
14658
14658
|
const r = document.createElement("span");
|
|
14659
14659
|
r.style.float = "left", r.style.whiteSpace = "nowrap", r.style.visibility = "hidden", r.style.margin = "0", r.style.padding = "0", r.innerHTML = e, document.body.append(r);
|
|
14660
14660
|
const a = Math.max(r.scrollWidth, r.offsetWidth, r.clientWidth), n = Math.max(r.scrollHeight, r.offsetHeight, r.clientHeight);
|
|
14661
|
-
if (ir >=
|
|
14661
|
+
if (ir >= Vs) {
|
|
14662
14662
|
for (const o in mn) delete mn[o];
|
|
14663
14663
|
ir = 0;
|
|
14664
14664
|
}
|
|
14665
14665
|
return mn[t] = [a, n], ir += 1, r.remove(), [a, n];
|
|
14666
14666
|
}
|
|
14667
|
-
function
|
|
14667
|
+
function Zs(e) {
|
|
14668
14668
|
return `normal normal normal ${e}pt "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif`;
|
|
14669
14669
|
}
|
|
14670
14670
|
function $o(e, t, r) {
|
|
@@ -14678,12 +14678,12 @@ function $o(e, t, r) {
|
|
|
14678
14678
|
n = `${o[0]},${n}`;
|
|
14679
14679
|
else {
|
|
14680
14680
|
let i = null;
|
|
14681
|
-
r && (
|
|
14681
|
+
r && (ac(e.ff).num ? i = o[parseInt(e.ff, 10)] : (i = e.ff, i = i.replace(/"/g, "").replace(/'/g, ""), i.indexOf(" ") > -1 && (i = `"${i}"`))), n = `${i},${n}`;
|
|
14682
14682
|
}
|
|
14683
14683
|
}
|
|
14684
14684
|
return `${a.join(" ")} ${n}`;
|
|
14685
14685
|
}
|
|
14686
|
-
return
|
|
14686
|
+
return Zs(t);
|
|
14687
14687
|
}
|
|
14688
14688
|
function un(e, t, r, a) {
|
|
14689
14689
|
let n = jt[`${e}_${t.font}`];
|
|
@@ -14694,7 +14694,7 @@ function un(e, t, r, a) {
|
|
|
14694
14694
|
if (i.width = o.width, a && (t.font = a), i.actualBoundingBoxDescent = o.actualBoundingBoxDescent, i.actualBoundingBoxAscent = o.actualBoundingBoxAscent, i.actualBoundingBoxDescent == null || i.actualBoundingBoxAscent == null || Number.isNaN(i.actualBoundingBoxDescent) || Number.isNaN(i.actualBoundingBoxAscent)) {
|
|
14695
14695
|
let l = "M";
|
|
14696
14696
|
el(e) && (l = "田");
|
|
14697
|
-
const c =
|
|
14697
|
+
const c = Xs(l, t.font)[1] * 0.8;
|
|
14698
14698
|
t.textBaseline === "top" ? (i.actualBoundingBoxDescent = c, i.actualBoundingBoxAscent = 0) : t.textBaseline === "middle" ? (i.actualBoundingBoxDescent = c / 2, i.actualBoundingBoxAscent = c / 2) : (i.actualBoundingBoxDescent = 0, i.actualBoundingBoxAscent = c);
|
|
14699
14699
|
}
|
|
14700
14700
|
if (t.textBaseline === "alphabetic") {
|
|
@@ -14704,9 +14704,9 @@ function un(e, t, r, a) {
|
|
|
14704
14704
|
let u = jt[`${c}_${t.font}`];
|
|
14705
14705
|
a && (u = jt[`${c}_${a}`]), s == null && (s = t.measureText(l)), u == null && (u = t.measureText(c)), i.actualBoundingBoxDescent <= u.actualBoundingBoxDescent && (i.actualBoundingBoxDescent = s.actualBoundingBoxDescent, i.actualBoundingBoxDescent || (i.actualBoundingBoxDescent = 0));
|
|
14706
14706
|
}
|
|
14707
|
-
return i.width *= r.zoomRatio, i.actualBoundingBoxDescent *= r.zoomRatio, i.actualBoundingBoxAscent *= r.zoomRatio, or >=
|
|
14707
|
+
return i.width *= r.zoomRatio, i.actualBoundingBoxDescent *= r.zoomRatio, i.actualBoundingBoxAscent *= r.zoomRatio, or >= Gs && (jt = {}, or = 0), jt[`${e}_${r.zoomRatio}_${t.font}`] = i, or += 1, i;
|
|
14708
14708
|
}
|
|
14709
|
-
function
|
|
14709
|
+
function Ks(e) {
|
|
14710
14710
|
const t = e.measureText("田");
|
|
14711
14711
|
return !h.isNil(t.actualBoundingBoxAscent);
|
|
14712
14712
|
}
|
|
@@ -14735,7 +14735,7 @@ function qn(e, t, r, a) {
|
|
|
14735
14735
|
}
|
|
14736
14736
|
}
|
|
14737
14737
|
}
|
|
14738
|
-
function
|
|
14738
|
+
function Qs(e, t, r, a, n) {
|
|
14739
14739
|
var B, W, Q;
|
|
14740
14740
|
const { cellWidth: o } = a, { cellHeight: i } = a;
|
|
14741
14741
|
let l = "", c = "";
|
|
@@ -14821,7 +14821,7 @@ function Ks(e, t, r, a, n) {
|
|
|
14821
14821
|
if (T = $o(e, r.defaultFontSize, n), t.font = T, $ = yt(e, "cl"), _ = yt(e, "un"), x = yt(e, "fs"), e instanceof Object ? (O = e.m, h.isNil(O) && (O = e.v)) : O = e, h.isEmpty(O))
|
|
14822
14822
|
return null;
|
|
14823
14823
|
const Y = (W = e == null ? void 0 : e.ct) == null ? void 0 : W.fa;
|
|
14824
|
-
if (h.isString(O) && h.isString(Y) && (O =
|
|
14824
|
+
if (h.isString(O) && h.isString(Y) && (O = js(
|
|
14825
14825
|
O,
|
|
14826
14826
|
Y,
|
|
14827
14827
|
o,
|
|
@@ -14922,7 +14922,7 @@ function Ks(e, t, r, a, n) {
|
|
|
14922
14922
|
oe += G;
|
|
14923
14923
|
}
|
|
14924
14924
|
} else {
|
|
14925
|
-
const Y =
|
|
14925
|
+
const Y = Ks(t);
|
|
14926
14926
|
if (Y ? t.textBaseline = "alphabetic" : t.textBaseline = "bottom", p === "2" || N) {
|
|
14927
14927
|
let J = 0, H = 0, X = 0, F = 0;
|
|
14928
14928
|
const te = {};
|
|
@@ -15345,7 +15345,7 @@ const Cn = {
|
|
|
15345
15345
|
// 数组范围有其它值
|
|
15346
15346
|
circ: "#CIRC!"
|
|
15347
15347
|
// 循环引用
|
|
15348
|
-
},
|
|
15348
|
+
}, Js = {
|
|
15349
15349
|
[ua]: "Invalid calculation: the divisor (second value) cannot be zero",
|
|
15350
15350
|
[gn]: "Wrong function name or parameter",
|
|
15351
15351
|
[Go]: "Formula returned null",
|
|
@@ -15355,21 +15355,21 @@ const Cn = {
|
|
|
15355
15355
|
[Fn]: "Unknown error",
|
|
15356
15356
|
[jo]: "Circular dependency."
|
|
15357
15357
|
};
|
|
15358
|
-
function
|
|
15359
|
-
return
|
|
15358
|
+
function ec(e) {
|
|
15359
|
+
return Js[e];
|
|
15360
15360
|
}
|
|
15361
|
-
const
|
|
15361
|
+
const tc = Object.values(Cn);
|
|
15362
15362
|
function Jr(e) {
|
|
15363
|
-
return
|
|
15363
|
+
return tc.includes(e);
|
|
15364
15364
|
}
|
|
15365
15365
|
function Je(e) {
|
|
15366
15366
|
return h.isNil(e) || e.toString().replace(/\s/g, "") === "";
|
|
15367
15367
|
}
|
|
15368
|
-
function
|
|
15368
|
+
function nc(e) {
|
|
15369
15369
|
return /^0x[a-fA-F0-9]+$/i.test(e);
|
|
15370
15370
|
}
|
|
15371
15371
|
function Xe(e) {
|
|
15372
|
-
return
|
|
15372
|
+
return nc(e == null ? void 0 : e.toString()) || h.isNil(e) || e.toString().replace(/\s/g, "") === "" || typeof e == "boolean" ? !1 : !Number.isNaN(Number(e));
|
|
15373
15373
|
}
|
|
15374
15374
|
function Xt(e) {
|
|
15375
15375
|
var t;
|
|
@@ -15939,16 +15939,16 @@ function pa(e) {
|
|
|
15939
15939
|
}
|
|
15940
15940
|
return null;
|
|
15941
15941
|
}
|
|
15942
|
-
function
|
|
15942
|
+
function rc(e) {
|
|
15943
15943
|
return pa(e) !== null;
|
|
15944
15944
|
}
|
|
15945
15945
|
function Nn(e) {
|
|
15946
|
-
return e === null || e.toString().length < 5 ? !1 : !!
|
|
15946
|
+
return e === null || e.toString().length < 5 ? !1 : !!rc(e);
|
|
15947
15947
|
}
|
|
15948
15948
|
function xt(e, t) {
|
|
15949
15949
|
return fo(e).diff(fo(t));
|
|
15950
15950
|
}
|
|
15951
|
-
function
|
|
15951
|
+
function ac(e) {
|
|
15952
15952
|
const t = {};
|
|
15953
15953
|
return Nn(e) && (t.date = !0), !Number.isNaN(parseFloat(e)) && !el(e) && (t.num = !0), t;
|
|
15954
15954
|
}
|
|
@@ -15976,7 +15976,7 @@ function tn(e, t, r, a, n, o) {
|
|
|
15976
15976
|
}), i;
|
|
15977
15977
|
}
|
|
15978
15978
|
var qt = {};
|
|
15979
|
-
const
|
|
15979
|
+
const ic = function(t) {
|
|
15980
15980
|
t.version = "0.11.2";
|
|
15981
15981
|
function r(R) {
|
|
15982
15982
|
for (var C = "", A = R.length - 1; A >= 0; ) C += R.charAt(A--);
|
|
@@ -17079,17 +17079,17 @@ const ac = function(t) {
|
|
|
17079
17079
|
C[A] !== void 0 && ve(C[A], A);
|
|
17080
17080
|
}, t.init_table = p, t.format = se;
|
|
17081
17081
|
};
|
|
17082
|
-
|
|
17083
|
-
const
|
|
17082
|
+
ic(qt);
|
|
17083
|
+
const oc = new Date(1900, 2, 1, 0, 0, 0), lc = 999999999999997, ga = 1e15;
|
|
17084
17084
|
function ya(e) {
|
|
17085
|
-
return Number.isFinite(e) && e >
|
|
17085
|
+
return Number.isFinite(e) && e > lc && e < ga;
|
|
17086
17086
|
}
|
|
17087
17087
|
function nl(e) {
|
|
17088
17088
|
if (typeof e != "string") return !1;
|
|
17089
17089
|
const t = e.trim().replace(/,/g, "");
|
|
17090
17090
|
return /^-?\d+$/.test(t) ? (t.startsWith("-") ? t.slice(1) : t).length >= 16 : !1;
|
|
17091
17091
|
}
|
|
17092
|
-
function
|
|
17092
|
+
function sc(e) {
|
|
17093
17093
|
const t = Math.abs(e);
|
|
17094
17094
|
if (e === 1 / 0 || e === -1 / 0) return String(e);
|
|
17095
17095
|
if (ya(t)) {
|
|
@@ -17109,13 +17109,13 @@ function lc(e) {
|
|
|
17109
17109
|
useGrouping: !1
|
|
17110
17110
|
});
|
|
17111
17111
|
}
|
|
17112
|
-
function sc(e) {
|
|
17113
|
-
return !Number.isFinite(e) || e === 0 ? 1 : e.toExponential().split("e")[0].replace("-", "").replace(".", "").replace(/^0+/, "").replace(/0+$/, "").length || 1;
|
|
17114
|
-
}
|
|
17115
17112
|
function cc(e) {
|
|
17116
|
-
return Number.isFinite(e) ?
|
|
17113
|
+
return !Number.isFinite(e) || e === 0 ? 1 : e.toExponential().split("e")[0].replace("-", "").replace(".", "").replace(/^0+/, "").replace(/0+$/, "").length || 1;
|
|
17117
17114
|
}
|
|
17118
17115
|
function uc(e) {
|
|
17116
|
+
return Number.isFinite(e) ? Number.isInteger(e) && Math.abs(e) > Number.MAX_SAFE_INTEGER ? !0 : cc(e) > 15 : !1;
|
|
17117
|
+
}
|
|
17118
|
+
function fc(e) {
|
|
17119
17119
|
const t = e.toExponential().split("e")[0];
|
|
17120
17120
|
let r = 0;
|
|
17121
17121
|
return t.includes(".") && (r = (t.split(".")[1] || "").length), ba(e, Math.min(5, Math.max(0, r)));
|
|
@@ -17125,7 +17125,7 @@ function ba(e, t = 5) {
|
|
|
17125
17125
|
const r = e.toExponential(Math.max(0, Math.min(20, t))), [a, n = "0"] = r.split("e"), o = a.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "").replace(/\.$/, ""), i = Number(n), l = i >= 0 ? "+" : "-", c = Math.abs(i).toString().padStart(2, "0");
|
|
17126
17126
|
return `${o}E${l}${c}`;
|
|
17127
17127
|
}
|
|
17128
|
-
function
|
|
17128
|
+
function dc(e) {
|
|
17129
17129
|
if (!Number.isFinite(e) || Number.isInteger(e)) return null;
|
|
17130
17130
|
const t = Math.abs(e);
|
|
17131
17131
|
if (ya(t)) return null;
|
|
@@ -17143,7 +17143,7 @@ function wr(e, t) {
|
|
|
17143
17143
|
e.getSeconds()
|
|
17144
17144
|
);
|
|
17145
17145
|
const a = Date.UTC(1899, 11, 31, 0, 0, 0);
|
|
17146
|
-
return t ? r -= 1461 * 24 * 60 * 60 * 1e3 : e >=
|
|
17146
|
+
return t ? r -= 1461 * 24 * 60 * 60 * 1e3 : e >= oc && (r += 24 * 60 * 60 * 1e3), (r - a) / (24 * 60 * 60 * 1e3);
|
|
17147
17147
|
}
|
|
17148
17148
|
function It(e) {
|
|
17149
17149
|
let t = null, r = {}, a = e;
|
|
@@ -17320,7 +17320,7 @@ function It(e) {
|
|
|
17320
17320
|
"dy dd/MM/yyyy": "ddd dd/mm/yyyy",
|
|
17321
17321
|
"dy MM/dd/yyyy": "ddd mm/dd/yyyy"
|
|
17322
17322
|
};
|
|
17323
|
-
r.fa = i[n.formatType] || (
|
|
17323
|
+
r.fa = i[n.formatType] || (ks() === "us" ? "MM/dd/yyyy" : "dd/MM/yyyy"), t = qt.format(r.fa, a);
|
|
17324
17324
|
} else
|
|
17325
17325
|
t = String(e), r.fa = "General", r.t = "g";
|
|
17326
17326
|
} else
|
|
@@ -17340,18 +17340,18 @@ function wa(e) {
|
|
|
17340
17340
|
(a, n) => n.length - a.length || (r.get(a) ?? 0) - (r.get(n) ?? 0)
|
|
17341
17341
|
);
|
|
17342
17342
|
}
|
|
17343
|
-
function
|
|
17343
|
+
function mc(e, t) {
|
|
17344
17344
|
if (!e) return !1;
|
|
17345
17345
|
for (const r of rl)
|
|
17346
17346
|
if (e.includes(`"${r}"`)) return !0;
|
|
17347
17347
|
return wa(t).some(
|
|
17348
|
-
(r) => e.startsWith(r) && /#,##0/.test(e)
|
|
17348
|
+
(r) => (e.startsWith(r) || e.startsWith(al(r))) && /#,##0/.test(e)
|
|
17349
17349
|
);
|
|
17350
17350
|
}
|
|
17351
|
-
function mc(e, t) {
|
|
17352
|
-
return !e || e === "General" || e === "@" ? !1 : !!(dc(e, t) || e.includes('_("') && /#,?#+0/.test(e) || /#,##0/.test(e) && !e.includes("%") && wa(t).some((a) => e.includes(a)));
|
|
17353
|
-
}
|
|
17354
17351
|
function hc(e, t) {
|
|
17352
|
+
return !e || e === "General" || e === "@" ? !1 : !!(mc(e, t) || e.includes('_("') && /#,?#+0/.test(e) || /#,##0/.test(e) && !e.includes("%") && wa(t).some((a) => e.includes(a)));
|
|
17353
|
+
}
|
|
17354
|
+
function pc(e, t) {
|
|
17355
17355
|
if (typeof e != "string" || e.trim() === "") return null;
|
|
17356
17356
|
let r = e.trim();
|
|
17357
17357
|
if (r.startsWith("=") || r.startsWith("'")) return null;
|
|
@@ -17379,19 +17379,26 @@ function hc(e, t) {
|
|
|
17379
17379
|
const b = `0 "${l}"`, w = { fa: b, t: "n" };
|
|
17380
17380
|
return [qt.format(b, d), w, d];
|
|
17381
17381
|
}
|
|
17382
|
-
const p =
|
|
17382
|
+
const p = gc(l, 0, { spaced: !1 }), y = { fa: p, t: "n" };
|
|
17383
17383
|
return [qt.format(p, d), y, d];
|
|
17384
17384
|
}
|
|
17385
17385
|
return null;
|
|
17386
17386
|
}
|
|
17387
17387
|
function nr(e, t, r) {
|
|
17388
|
-
const a =
|
|
17388
|
+
const a = pc(e, r);
|
|
17389
17389
|
return a || It(t);
|
|
17390
17390
|
}
|
|
17391
|
+
function al(e) {
|
|
17392
|
+
return `"${e.replace(/"/g, '""')}"`;
|
|
17393
|
+
}
|
|
17394
|
+
function gc(e, t = 2, r) {
|
|
17395
|
+
const a = "0".repeat(Math.max(0, t)), n = t > 0 ? `#,##0.${a}` : "#,##0", o = (r == null ? void 0 : r.spaced) === !1 ? "" : " ";
|
|
17396
|
+
return `${al(e)}${o}${n}`;
|
|
17397
|
+
}
|
|
17391
17398
|
function Et(e, t) {
|
|
17392
17399
|
return qt.format(e, t);
|
|
17393
17400
|
}
|
|
17394
|
-
const
|
|
17401
|
+
const yc = 15;
|
|
17395
17402
|
function Rr(e) {
|
|
17396
17403
|
const t = e.ct;
|
|
17397
17404
|
if (!t || t.fa !== "General") return;
|
|
@@ -17407,7 +17414,7 @@ function Rr(e) {
|
|
|
17407
17414
|
if (!Xe(r)) return;
|
|
17408
17415
|
const a = Number(r);
|
|
17409
17416
|
if (t.dp != null && t.dp >= 1) {
|
|
17410
|
-
const i = Math.min(
|
|
17417
|
+
const i = Math.min(yc, Math.max(1, Math.floor(t.dp)));
|
|
17411
17418
|
if (a.toString().toLowerCase().includes("e")) {
|
|
17412
17419
|
const c = It(a);
|
|
17413
17420
|
c && (e.m = c[0].toString());
|
|
@@ -17416,7 +17423,7 @@ function Rr(e) {
|
|
|
17416
17423
|
e.m = a.toFixed(i);
|
|
17417
17424
|
return;
|
|
17418
17425
|
}
|
|
17419
|
-
const n =
|
|
17426
|
+
const n = dc(a);
|
|
17420
17427
|
if (n != null) {
|
|
17421
17428
|
e.m = n;
|
|
17422
17429
|
return;
|
|
@@ -17427,7 +17434,7 @@ function Rr(e) {
|
|
|
17427
17434
|
function va(e, t) {
|
|
17428
17435
|
return qt.is_date(e, t);
|
|
17429
17436
|
}
|
|
17430
|
-
function
|
|
17437
|
+
function bc(e) {
|
|
17431
17438
|
let t = Number(e);
|
|
17432
17439
|
if (typeof e == "number")
|
|
17433
17440
|
return e;
|
|
@@ -17435,10 +17442,10 @@ function gc(e) {
|
|
|
17435
17442
|
let r = 1, a = e.replace(/([\d]),([\d])/g, "$1$2").replace(/[$]/g, "").replace(/[%]/g, () => (r *= 100, ""));
|
|
17436
17443
|
return t = Number(a), !Number.isNaN(t) || (a = a.replace(/[(](.*)[)]/, (n, o) => (r = -r, o)), t = Number(a), !Number.isNaN(t)) ? t / r : t;
|
|
17437
17444
|
}
|
|
17438
|
-
function
|
|
17445
|
+
function Vf(e, t, r) {
|
|
17439
17446
|
var n, o, i, l, c, s;
|
|
17440
17447
|
let a = Ke(e, t, r, "m");
|
|
17441
|
-
return a == null ? a = Ke(e, t, r, "v") : Number.isNaN(
|
|
17448
|
+
return a == null ? a = Ke(e, t, r, "v") : Number.isNaN(bc(a)) ? ((i = (o = (n = r[e]) == null ? void 0 : n[t]) == null ? void 0 : o.ct) == null ? void 0 : i.t) === "d" || ((s = (c = (l = r[e]) == null ? void 0 : l[t]) == null ? void 0 : c.ct) == null ? void 0 : s.t) === "b" || (a = Ke(e, t, r, "v")) : h.isString(a) && a.indexOf("%") > -1 || (a = Ke(e, t, r, "v")), a;
|
|
17442
17449
|
}
|
|
17443
17450
|
const _a = [
|
|
17444
17451
|
"#c1232b",
|
|
@@ -17471,29 +17478,29 @@ const _a = [
|
|
|
17471
17478
|
"#c4ebad",
|
|
17472
17479
|
"#96dee8"
|
|
17473
17480
|
];
|
|
17474
|
-
function
|
|
17481
|
+
function il(e, t, r) {
|
|
17475
17482
|
const a = e - r.rowHeaderWidth, n = t - // ctx.infobarHeight -
|
|
17476
17483
|
r.toolbarHeight - r.calculatebarHeight - r.columnHeaderHeight;
|
|
17477
17484
|
return [a, n];
|
|
17478
17485
|
}
|
|
17479
|
-
function
|
|
17486
|
+
function wc(e, t) {
|
|
17480
17487
|
let r = 0, a = 0;
|
|
17481
17488
|
return r = t[e], e === 0 ? a = 0 : a = t[e - 1], [a, r, e];
|
|
17482
17489
|
}
|
|
17483
17490
|
function Ta(e, t) {
|
|
17484
17491
|
let r = h.sortedIndex(t, e);
|
|
17485
|
-
return r >= t.length && e > 0 ? r = t.length - 1 : r === -1 && e <= 0 && (r = 0),
|
|
17492
|
+
return r >= t.length && e > 0 ? r = t.length - 1 : r === -1 && e <= 0 && (r = 0), wc(r, t);
|
|
17486
17493
|
}
|
|
17487
|
-
function
|
|
17494
|
+
function vc(e, t) {
|
|
17488
17495
|
let r = 0, a = 0;
|
|
17489
17496
|
return r = t[e], e === 0 ? a = 0 : a = t[e - 1], [a, r, e];
|
|
17490
17497
|
}
|
|
17491
17498
|
function $a(e, t) {
|
|
17492
17499
|
let r = h.sortedIndex(t, e);
|
|
17493
|
-
return r >= t.length && e > 0 ? r = t.length - 1 : r === -1 && e <= 0 && (r = 0),
|
|
17500
|
+
return r >= t.length && e > 0 ? r = t.length - 1 : r === -1 && e <= 0 && (r = 0), vc(r, t);
|
|
17494
17501
|
}
|
|
17495
17502
|
let Zt = 0, Hn = [];
|
|
17496
|
-
const
|
|
17503
|
+
const _c = {
|
|
17497
17504
|
"^": 0,
|
|
17498
17505
|
"%": 1,
|
|
17499
17506
|
"*": 1,
|
|
@@ -17503,10 +17510,10 @@ const wc = {
|
|
|
17503
17510
|
}, Co = "==|!=|<>|<=|>=|=|+|-|>|<|/|*|%|&|^".split("|"), et = {};
|
|
17504
17511
|
for (let e = 0; e < Co.length; e += 1)
|
|
17505
17512
|
et[Co[e].toString()] = 1;
|
|
17506
|
-
const Ir = "", Bt = (e) => (e || "").replace(/\u00a0/g, " ").replace(/\u200b/g, ""),
|
|
17513
|
+
const Ir = "", Bt = (e) => (e || "").replace(/\u00a0/g, " ").replace(/\u200b/g, ""), Tc = "[A-Za-z0-9_À-ʯ]+", $c = "'(?:(?!').|'')*'", Cc = `(${Tc}|${$c})!`, Nc = "[$]?[A-Za-z]+[$]?[0-9]+", xc = "[$]?[A-Za-z]+", Ac = "[$]?[0-9]+", Sc = `(?:${Nc}|${xc}|${Ac})`, No = `(?:${Cc})?(${Sc})`, kc = new RegExp(
|
|
17507
17514
|
`^${No}(?:[:]${No})?$`
|
|
17508
17515
|
);
|
|
17509
|
-
function
|
|
17516
|
+
function Ec(e) {
|
|
17510
17517
|
if (!e) return e;
|
|
17511
17518
|
const t = new Date(1900, 2, 1, 0, 0, 0), r = (i) => {
|
|
17512
17519
|
let l = Date.UTC(
|
|
@@ -17530,7 +17537,7 @@ function Sc(e) {
|
|
|
17530
17537
|
(i, l, c, s) => `${l} ${c} ${String(s).toUpperCase() === "NOW" ? o : n}`
|
|
17531
17538
|
);
|
|
17532
17539
|
}
|
|
17533
|
-
function
|
|
17540
|
+
function qc(e, t) {
|
|
17534
17541
|
if (typeof t != "number" || !Number.isFinite(t) || t <= 0 || t > 1e7)
|
|
17535
17542
|
return !1;
|
|
17536
17543
|
const r = e.replace(/^\s*=\s*/i, "").toUpperCase();
|
|
@@ -17540,7 +17547,7 @@ function kc(e, t) {
|
|
|
17540
17547
|
return a = a.replace(/\s+/g, ""), !(!a.includes("X") || !/^[0X+\-*/().]+$/.test(a));
|
|
17541
17548
|
}
|
|
17542
17549
|
const At = "#CIRC!", lr = "Circular Dependency";
|
|
17543
|
-
function
|
|
17550
|
+
function ol(e, t) {
|
|
17544
17551
|
const r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map(), n = [], o = /* @__PURE__ */ new Map(), i = (l) => {
|
|
17545
17552
|
const c = a.get(l) ?? 0;
|
|
17546
17553
|
if (c === 1) {
|
|
@@ -17562,7 +17569,7 @@ function il(e, t) {
|
|
|
17562
17569
|
};
|
|
17563
17570
|
return i(e), r;
|
|
17564
17571
|
}
|
|
17565
|
-
function
|
|
17572
|
+
function Mc(e, t) {
|
|
17566
17573
|
const r = new Set(e), a = Array.from(e);
|
|
17567
17574
|
for (; a.length > 0; ) {
|
|
17568
17575
|
const n = a.shift(), o = t.get(n);
|
|
@@ -17572,13 +17579,13 @@ function Ec(e, t) {
|
|
|
17572
17579
|
}
|
|
17573
17580
|
return r;
|
|
17574
17581
|
}
|
|
17575
|
-
function
|
|
17582
|
+
function Rc(e) {
|
|
17576
17583
|
const t = e.indexOf(":"), r = e.indexOf(":", t + 1);
|
|
17577
17584
|
if (t === -1 || r === -1) return null;
|
|
17578
17585
|
const a = e.slice(0, t), n = Number(e.slice(t + 1, r)), o = Number(e.slice(r + 1));
|
|
17579
17586
|
return !a || Number.isNaN(n) || Number.isNaN(o) ? null : { sheetId: a, r: n, c: o };
|
|
17580
17587
|
}
|
|
17581
|
-
class
|
|
17588
|
+
class Ic {
|
|
17582
17589
|
constructor() {
|
|
17583
17590
|
Ge(this, "parser");
|
|
17584
17591
|
Ge(this, "func_selectedrange");
|
|
@@ -17632,7 +17639,7 @@ class Mc {
|
|
|
17632
17639
|
const t = this, r = (n, o, i) => `${n}:${o}:${i}`, a = (n) => {
|
|
17633
17640
|
t.activeDepCollection && t.activeDepCollection.deps.add(n);
|
|
17634
17641
|
};
|
|
17635
|
-
this.data_parm_index = 0, this.selectingRangeIndex = -1, this.rangeSelectionActive = null, this.formulaEditorOwner = null, this.functionlistMap = {}, this.execFunctionGlobalData = {}, this.cellTextToIndexList = {}, this.depsByCell = /* @__PURE__ */ new Map(), this.revDepsByCell = /* @__PURE__ */ new Map(), this.activeDepCollection = null, this.parser = new
|
|
17642
|
+
this.data_parm_index = 0, this.selectingRangeIndex = -1, this.rangeSelectionActive = null, this.formulaEditorOwner = null, this.functionlistMap = {}, this.execFunctionGlobalData = {}, this.cellTextToIndexList = {}, this.depsByCell = /* @__PURE__ */ new Map(), this.revDepsByCell = /* @__PURE__ */ new Map(), this.activeDepCollection = null, this.parser = new As(), this.parser.on(
|
|
17636
17643
|
"callCellValue",
|
|
17637
17644
|
(n, o, i) => {
|
|
17638
17645
|
var m, d;
|
|
@@ -17697,7 +17704,7 @@ class Mc {
|
|
|
17697
17704
|
return String(t == null ? void 0 : t.m).includes("%") ? t == null ? void 0 : t.m : t == null ? void 0 : t.v;
|
|
17698
17705
|
}
|
|
17699
17706
|
}
|
|
17700
|
-
function
|
|
17707
|
+
function ll(e) {
|
|
17701
17708
|
return new DOMParser().parseFromString(e, "text/html").body.childNodes[0];
|
|
17702
17709
|
}
|
|
17703
17710
|
function vt(e) {
|
|
@@ -17729,7 +17736,7 @@ function xn(e, t, r) {
|
|
|
17729
17736
|
if (t.indexOf("!") > -1) {
|
|
17730
17737
|
if (t in e.formulaCache.cellTextToIndexList)
|
|
17731
17738
|
return e.formulaCache.cellTextToIndexList[t];
|
|
17732
|
-
const d = t.match(
|
|
17739
|
+
const d = t.match(kc);
|
|
17733
17740
|
if (d == null)
|
|
17734
17741
|
return null;
|
|
17735
17742
|
const [, p, y, g, b] = d;
|
|
@@ -17769,7 +17776,7 @@ function xn(e, t, r) {
|
|
|
17769
17776
|
};
|
|
17770
17777
|
return xo(e, t, m), m;
|
|
17771
17778
|
}
|
|
17772
|
-
function
|
|
17779
|
+
function Dc(e) {
|
|
17773
17780
|
if (e.length === 0)
|
|
17774
17781
|
return "";
|
|
17775
17782
|
const t = [];
|
|
@@ -17783,7 +17790,7 @@ function Rc(e) {
|
|
|
17783
17790
|
}
|
|
17784
17791
|
return t.length > 0 ? t[0] : "";
|
|
17785
17792
|
}
|
|
17786
|
-
function
|
|
17793
|
+
function Oc(e, t, r, a, n, o, i) {
|
|
17787
17794
|
if (t.substring(0, 30) === "luckysheet_getSpecialReference" || t.substring(0, 20) === "luckysheet_function.") {
|
|
17788
17795
|
if (t.substring(0, 20) === "luckysheet_function.") {
|
|
17789
17796
|
let l = t.split(".")[1];
|
|
@@ -17859,7 +17866,7 @@ function Rn(e, t, r, a, n, o, i) {
|
|
|
17859
17866
|
s += ",";
|
|
17860
17867
|
else if (g in et && f.squote === 0 && f.dquote === 0 && f.braces === 0) {
|
|
17861
17868
|
let b = "";
|
|
17862
|
-
const w =
|
|
17869
|
+
const w = _c;
|
|
17863
17870
|
if (c + 1 < l.length && (b = l[c + 1]), g + b in et) {
|
|
17864
17871
|
if (p.length === 0) {
|
|
17865
17872
|
if (h.trim(s).length > 0 ? d.unshift(
|
|
@@ -17922,11 +17929,11 @@ function Rn(e, t, r, a, n, o, i) {
|
|
|
17922
17929
|
if (b.length > 0 && d.unshift(b), m.length > 0)
|
|
17923
17930
|
for (u.length > 0 && (d.unshift(u), u = ""); m.length > 0; )
|
|
17924
17931
|
d.unshift(m.shift());
|
|
17925
|
-
d.length > 0 ? u =
|
|
17932
|
+
d.length > 0 ? u = Dc(d) : u += b;
|
|
17926
17933
|
}
|
|
17927
17934
|
c += 1;
|
|
17928
17935
|
}
|
|
17929
|
-
return
|
|
17936
|
+
return Oc(
|
|
17930
17937
|
e,
|
|
17931
17938
|
u,
|
|
17932
17939
|
r,
|
|
@@ -17936,7 +17943,7 @@ function Rn(e, t, r, a, n, o, i) {
|
|
|
17936
17943
|
i
|
|
17937
17944
|
), u;
|
|
17938
17945
|
}
|
|
17939
|
-
function
|
|
17946
|
+
function Lc(e) {
|
|
17940
17947
|
const { luckysheetfile: t } = e;
|
|
17941
17948
|
let r = [];
|
|
17942
17949
|
for (let a = 0; a < t.length; a += 1) {
|
|
@@ -17989,7 +17996,7 @@ function ea(e, t, r, a) {
|
|
|
17989
17996
|
f && (i.dynamicArray = m);
|
|
17990
17997
|
}
|
|
17991
17998
|
}
|
|
17992
|
-
function
|
|
17999
|
+
function Fc(e) {
|
|
17993
18000
|
const t = e.match(/\(/g), r = e.match(/\)/g), a = e.match(/(['"])(?:(?!\1).)*?\1/g), n = e.match(/(['"])(?:(?!\1).)*?\1/g);
|
|
17994
18001
|
let o = 0, i = 0;
|
|
17995
18002
|
h.isNil(t) || (o += t.length), h.isNil(r) || (i += r.length);
|
|
@@ -18006,7 +18013,7 @@ function Oc(e) {
|
|
|
18006
18013
|
}
|
|
18007
18014
|
return o -= l, i -= c, o === i;
|
|
18008
18015
|
}
|
|
18009
|
-
function
|
|
18016
|
+
function Bc(e, t, r, a, n) {
|
|
18010
18017
|
h.isNil(a) && (a = e.currentSheetId);
|
|
18011
18018
|
const { luckysheetfile: o } = e, i = Le(e, a);
|
|
18012
18019
|
if (h.isNil(i))
|
|
@@ -18028,7 +18035,7 @@ function Lc(e, t, r, a, n) {
|
|
|
18028
18035
|
};
|
|
18029
18036
|
c.push(s), l.calcChain = c, e.luckysheetfile = o;
|
|
18030
18037
|
}
|
|
18031
|
-
function
|
|
18038
|
+
function Pc(e) {
|
|
18032
18039
|
if (!e.startsWith("=")) return e;
|
|
18033
18040
|
const t = e.indexOf("(");
|
|
18034
18041
|
return t === -1 ? e : `=${e.substring(1, t).replace(/\./g, "_")}${e.substring(t)}`;
|
|
@@ -18036,12 +18043,12 @@ function Fc(e) {
|
|
|
18036
18043
|
function Tn(e, t, r, a, n, o, i, l) {
|
|
18037
18044
|
var x;
|
|
18038
18045
|
const c = t;
|
|
18039
|
-
if ((t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t =
|
|
18046
|
+
if ((t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = Pc(t)), t.indexOf(Cn.r) > -1)
|
|
18040
18047
|
return [!1, Cn.r, t];
|
|
18041
|
-
|
|
18048
|
+
Fc(t) || (t += ")"), h.isNil(n) && (n = e.currentSheetId), e.calculateSheetId = n;
|
|
18042
18049
|
const s = n || e.currentSheetId, u = `${s}:${r}:${a}`, f = /* @__PURE__ */ new Set();
|
|
18043
18050
|
e.formulaCache.activeDepCollection = { originKey: u, deps: f }, e.formulaCache.parser.context = e;
|
|
18044
|
-
const m =
|
|
18051
|
+
const m = Ec(t.substring(1));
|
|
18045
18052
|
let d;
|
|
18046
18053
|
try {
|
|
18047
18054
|
d = e.formulaCache.parser.parse(m, {
|
|
@@ -18061,14 +18068,14 @@ function Tn(e, t, r, a, n, o, i, l) {
|
|
|
18061
18068
|
if (p.has(N)) return;
|
|
18062
18069
|
const O = e.formulaCache.revDepsByCell.get(N) ?? /* @__PURE__ */ new Set();
|
|
18063
18070
|
O.add(u), e.formulaCache.revDepsByCell.set(N, O);
|
|
18064
|
-
}),
|
|
18071
|
+
}), ol(u, e.formulaCache.depsByCell).has(u) ? (d.error = At, d.result = At, ia(e, r, a, {
|
|
18065
18072
|
row_column: `${r}_${a}`,
|
|
18066
18073
|
title: lr,
|
|
18067
18074
|
message: "Circular dependency."
|
|
18068
18075
|
})) : Kt(e, r, a), f.size > 0 && d.error !== At)
|
|
18069
18076
|
for (const N of f) {
|
|
18070
18077
|
if (N === u) continue;
|
|
18071
|
-
const O =
|
|
18078
|
+
const O = Rc(N);
|
|
18072
18079
|
if (!O) continue;
|
|
18073
18080
|
const E = (x = e == null ? void 0 : e.formulaCache.execFunctionGlobalData) == null ? void 0 : x[`${O.r}_${O.c}_${O.sheetId}`];
|
|
18074
18081
|
if (h.isNil(E)) continue;
|
|
@@ -18092,13 +18099,13 @@ function Tn(e, t, r, a, n, o, i, l) {
|
|
|
18092
18099
|
n
|
|
18093
18100
|
);
|
|
18094
18101
|
}
|
|
18095
|
-
l ||
|
|
18102
|
+
l || Bc(e, r, a, n, o);
|
|
18096
18103
|
}
|
|
18097
18104
|
let w = b;
|
|
18098
18105
|
e.formulaCache.parser.cryptoDenomination && e.formulaCache.parser.cryptoDenomination !== "" && (typeof b == "number" || typeof b == "string") && (w = `${Number(b).toFixed(
|
|
18099
18106
|
e.formulaCache.parser.cryptoDecimals
|
|
18100
18107
|
)} ${e.formulaCache.parser.cryptoDenomination}`);
|
|
18101
|
-
const T = !h.isNil(g), $ =
|
|
18108
|
+
const T = !h.isNil(g), $ = ec(w == null ? void 0 : w.toString());
|
|
18102
18109
|
return T || $ ? ia(e, r, a, {
|
|
18103
18110
|
row_column: `${r}_${a}`,
|
|
18104
18111
|
title: g === At ? lr : "Error",
|
|
@@ -18114,7 +18121,7 @@ function Tn(e, t, r, a, n, o, i, l) {
|
|
|
18114
18121
|
}
|
|
18115
18122
|
];
|
|
18116
18123
|
}
|
|
18117
|
-
function
|
|
18124
|
+
function Hc(e, t) {
|
|
18118
18125
|
const { r, c: a } = t;
|
|
18119
18126
|
let { id: n } = t;
|
|
18120
18127
|
h.isNil(n) && (n = e.currentSheetId);
|
|
@@ -18130,7 +18137,7 @@ function Bc(e, t) {
|
|
|
18130
18137
|
}
|
|
18131
18138
|
return c.push(t), c;
|
|
18132
18139
|
}
|
|
18133
|
-
function
|
|
18140
|
+
function Gf(e) {
|
|
18134
18141
|
var r, a;
|
|
18135
18142
|
const { luckysheetfile: t } = e;
|
|
18136
18143
|
if (e.groupValuesRefreshData.length > 0) {
|
|
@@ -18141,7 +18148,7 @@ function Wf(e) {
|
|
|
18141
18148
|
if (h.isNil(c))
|
|
18142
18149
|
continue;
|
|
18143
18150
|
const s = {};
|
|
18144
|
-
h.isNil(o.spe) || (o.spe.type === "sparklines" ? s.spl = o.spe.data : o.spe.type === "dynamicArrayItem" && (l.dynamicArray =
|
|
18151
|
+
h.isNil(o.spe) || (o.spe.type === "sparklines" ? s.spl = o.spe.data : o.spe.type === "dynamicArrayItem" && (l.dynamicArray = Hc(e, o.spe.data))), s.v = o.v, s.f = o.f, bn(e, o.r, o.c, c, s), (r = e == null ? void 0 : e.hooks) != null && r.updateCellYdoc && e.hooks.updateCellYdoc([
|
|
18145
18152
|
{
|
|
18146
18153
|
sheetId: o.id,
|
|
18147
18154
|
path: ["celldata"],
|
|
@@ -18160,7 +18167,7 @@ function Wf(e) {
|
|
|
18160
18167
|
}
|
|
18161
18168
|
function Vn(e, t, r, a, n, o, i = !1) {
|
|
18162
18169
|
h.isNil(o) && (o = Re(e)), e.formulaCache.execFunctionGlobalData = {}, h.isNil(n) && (n = e.currentSheetId);
|
|
18163
|
-
const l = `${n}:${t}:${r}`, c =
|
|
18170
|
+
const l = `${n}:${t}:${r}`, c = ol(l, e.formulaCache.depsByCell), s = c.size ? Mc(c, e.formulaCache.revDepsByCell) : /* @__PURE__ */ new Set();
|
|
18164
18171
|
if (!h.isNil(a)) {
|
|
18165
18172
|
const x = [[{ v: void 0 }]];
|
|
18166
18173
|
bn(e, 0, 0, x, a), [
|
|
@@ -18169,7 +18176,7 @@ function Vn(e, t, r, a, n, o, i = !1) {
|
|
|
18169
18176
|
]
|
|
18170
18177
|
] = x;
|
|
18171
18178
|
}
|
|
18172
|
-
const u =
|
|
18179
|
+
const u = Lc(e), f = {}, m = e.luckysheetfile, d = {};
|
|
18173
18180
|
for (let x = 0; x < m.length; x += 1) {
|
|
18174
18181
|
const N = m[x];
|
|
18175
18182
|
d[N.id] = N.data;
|
|
@@ -18334,7 +18341,7 @@ function Vn(e, t, r, a, n, o, i = !1) {
|
|
|
18334
18341
|
N.id,
|
|
18335
18342
|
_
|
|
18336
18343
|
), W = B == null ? void 0 : B[1], Q = B == null ? void 0 : B[2];
|
|
18337
|
-
if (Array.isArray(W) &&
|
|
18344
|
+
if (Array.isArray(W) && _l(
|
|
18338
18345
|
e,
|
|
18339
18346
|
N.r,
|
|
18340
18347
|
N.c,
|
|
@@ -18367,7 +18374,7 @@ function Vn(e, t, r, a, n, o, i = !1) {
|
|
|
18367
18374
|
}
|
|
18368
18375
|
e.formulaCache.execFunctionExist = void 0;
|
|
18369
18376
|
}
|
|
18370
|
-
function
|
|
18377
|
+
function zc(e, t, r) {
|
|
18371
18378
|
const a = /<span.*?>/g, n = t.replace(a, "").split("</span>"), o = r.replace(a, "").split("</span>");
|
|
18372
18379
|
n.pop(), o[o.length - 1] === "" && o.pop();
|
|
18373
18380
|
let i = e.formulaCache.functionRangeIndex;
|
|
@@ -18428,7 +18435,7 @@ function Pc(e, t, r) {
|
|
|
18428
18435
|
}
|
|
18429
18436
|
return null;
|
|
18430
18437
|
}
|
|
18431
|
-
function
|
|
18438
|
+
function Yf(e) {
|
|
18432
18439
|
var a, n;
|
|
18433
18440
|
if (e.formulaCache.func_selectedrange) return !0;
|
|
18434
18441
|
const t = e.luckysheet_select_save;
|
|
@@ -18450,17 +18457,17 @@ function Vf(e) {
|
|
|
18450
18457
|
moveXY: r.moveXY
|
|
18451
18458
|
}, !0);
|
|
18452
18459
|
}
|
|
18453
|
-
function
|
|
18460
|
+
function jf(e, t) {
|
|
18454
18461
|
e.formulaRangeSelect = t;
|
|
18455
18462
|
}
|
|
18456
|
-
function
|
|
18457
|
-
const a =
|
|
18463
|
+
function Uc(e, t, r = -1) {
|
|
18464
|
+
const a = ll(`<div>${t}</div>`), n = [];
|
|
18458
18465
|
a.querySelectorAll("span.fortune-formula-functionrange-cell").forEach((o) => {
|
|
18459
18466
|
const i = parseInt(o.getAttribute("rangeindex") || "0", 10);
|
|
18460
18467
|
if (i === r) return;
|
|
18461
18468
|
const l = xn(e, o.textContent || "");
|
|
18462
18469
|
if (!(i === e.formulaCache.selectingRangeIndex || l == null) && (l.sheetId === e.currentSheetId || l.sheetId === -1 && e.formulaCache.rangetosheet === e.currentSheetId)) {
|
|
18463
|
-
const c =
|
|
18470
|
+
const c = Ju(
|
|
18464
18471
|
e,
|
|
18465
18472
|
l.row[0],
|
|
18466
18473
|
l.row[1],
|
|
@@ -18475,7 +18482,7 @@ function Hc(e, t, r = -1) {
|
|
|
18475
18482
|
}
|
|
18476
18483
|
}), e.formulaRangeHighlight = n;
|
|
18477
18484
|
}
|
|
18478
|
-
function
|
|
18485
|
+
function sl(e) {
|
|
18479
18486
|
if (!e || !(e instanceof Node)) return;
|
|
18480
18487
|
e.focus();
|
|
18481
18488
|
const t = document.createRange(), r = window.getSelection();
|
|
@@ -18529,10 +18536,10 @@ function fr(e, t, r, a, n) {
|
|
|
18529
18536
|
) : u.setStart(s, Math.min(Math.max(a, 0), s.childNodes.length));
|
|
18530
18537
|
u.collapse(!0), f == null || f.removeAllRanges(), f == null || f.addRange(u), s.focus();
|
|
18531
18538
|
} catch {
|
|
18532
|
-
n && n instanceof HTMLElement &&
|
|
18539
|
+
n && n instanceof HTMLElement && sl(n);
|
|
18533
18540
|
}
|
|
18534
18541
|
}
|
|
18535
|
-
function
|
|
18542
|
+
function Wc(e, t, r, a) {
|
|
18536
18543
|
if (window.getSelection) {
|
|
18537
18544
|
const n = window.getSelection();
|
|
18538
18545
|
if (!n) return;
|
|
@@ -18559,7 +18566,7 @@ function zc(e, t, r, a) {
|
|
|
18559
18566
|
l = [u, ur(o[u])];
|
|
18560
18567
|
}
|
|
18561
18568
|
} else {
|
|
18562
|
-
const c =
|
|
18569
|
+
const c = zc(e, r, a);
|
|
18563
18570
|
l = h.isNil(c) ? null : c;
|
|
18564
18571
|
}
|
|
18565
18572
|
h.isNil(l) ? (n.selectAllChildren(t), n.collapseToEnd()) : fr(
|
|
@@ -18571,7 +18578,7 @@ function zc(e, t, r, a) {
|
|
|
18571
18578
|
);
|
|
18572
18579
|
} else document.selection && (e.formulaCache.functionRangeIndex.moveToElementText(t), e.formulaCache.functionRangeIndex.collapse(!1), e.formulaCache.functionRangeIndex.select());
|
|
18573
18580
|
}
|
|
18574
|
-
function
|
|
18581
|
+
function Vc(e, t) {
|
|
18575
18582
|
const { functionlist: r } = Rt(e), a = [], n = [], o = [];
|
|
18576
18583
|
let i = 0;
|
|
18577
18584
|
for (let c = 0; c < r.length; c += 1) {
|
|
@@ -18582,7 +18589,7 @@ function Uc(e, t) {
|
|
|
18582
18589
|
const l = [...a, ...n, ...o];
|
|
18583
18590
|
l.length <= 0 || (e.functionCandidates = l);
|
|
18584
18591
|
}
|
|
18585
|
-
function
|
|
18592
|
+
function Gc() {
|
|
18586
18593
|
var n, o, i, l, c;
|
|
18587
18594
|
const e = window.getSelection();
|
|
18588
18595
|
if (!e) return null;
|
|
@@ -18647,8 +18654,8 @@ function Ao(e, t, r) {
|
|
|
18647
18654
|
}
|
|
18648
18655
|
return s;
|
|
18649
18656
|
}
|
|
18650
|
-
function
|
|
18651
|
-
const r =
|
|
18657
|
+
function Yc(e, t) {
|
|
18658
|
+
const r = Gc();
|
|
18652
18659
|
if (!r) return;
|
|
18653
18660
|
const a = h.trim(
|
|
18654
18661
|
(r.textContent || "").replace(/\u200b/g, "")
|
|
@@ -18661,7 +18668,7 @@ function Vc(e, t) {
|
|
|
18661
18668
|
return;
|
|
18662
18669
|
}
|
|
18663
18670
|
if (a != null && a.match(/^[a-zA-Z_]+$/))
|
|
18664
|
-
e.defaultCandidates = [],
|
|
18671
|
+
e.defaultCandidates = [], Vc(e, a.toUpperCase()), e.functionHint = null;
|
|
18665
18672
|
else {
|
|
18666
18673
|
const n = Ao(t, r, e);
|
|
18667
18674
|
e.functionHint = n == null ? void 0 : n.toUpperCase(), e.functionCandidates = [], e.defaultCandidates = [];
|
|
@@ -18763,7 +18770,7 @@ function ta(e) {
|
|
|
18763
18770
|
return r.includes(`
|
|
18764
18771
|
`) && (r = r.replace(/\n/g, "<br>")), r;
|
|
18765
18772
|
}
|
|
18766
|
-
function
|
|
18773
|
+
function cl(e) {
|
|
18767
18774
|
const t = [];
|
|
18768
18775
|
return e.querySelectorAll("span.fortune-formula-functionrange-cell").forEach((r) => {
|
|
18769
18776
|
const a = r.getAttribute("rangeindex");
|
|
@@ -18773,7 +18780,7 @@ function sl(e) {
|
|
|
18773
18780
|
}
|
|
18774
18781
|
}), t;
|
|
18775
18782
|
}
|
|
18776
|
-
function
|
|
18783
|
+
function jc(e, t) {
|
|
18777
18784
|
if (!t.anchorNode || t.rangeCount === 0 || !e.contains(t.anchorNode)) return null;
|
|
18778
18785
|
let r = 0, a = !1;
|
|
18779
18786
|
const n = (o) => {
|
|
@@ -18804,7 +18811,7 @@ function Gc(e, t) {
|
|
|
18804
18811
|
};
|
|
18805
18812
|
return n(e), a ? r : null;
|
|
18806
18813
|
}
|
|
18807
|
-
function
|
|
18814
|
+
function Xc(e) {
|
|
18808
18815
|
const t = Array.from(e.querySelectorAll("span")).filter(
|
|
18809
18816
|
(o) => {
|
|
18810
18817
|
var i;
|
|
@@ -18832,47 +18839,47 @@ function vr(e) {
|
|
|
18832
18839
|
const i = parseInt(o, 10);
|
|
18833
18840
|
return Number.isNaN(i) ? null : i;
|
|
18834
18841
|
}
|
|
18835
|
-
function
|
|
18842
|
+
function Xf(e, t) {
|
|
18836
18843
|
e.formulaCache.formulaEditorOwner = t;
|
|
18837
18844
|
}
|
|
18838
|
-
function
|
|
18845
|
+
function ul(e) {
|
|
18839
18846
|
var r, a;
|
|
18840
18847
|
const t = e.formulaCache.formulaEditorOwner;
|
|
18841
18848
|
return t === "cell" || t === "fx" ? t : ((r = document.activeElement) == null ? void 0 : r.id) === "luckysheet-functionbox-cell" ? "fx" : ((a = document.activeElement) == null ? void 0 : a.id) === "luckysheet-rich-text-editor" ? "cell" : null;
|
|
18842
18849
|
}
|
|
18843
|
-
function
|
|
18850
|
+
function fl(e) {
|
|
18844
18851
|
var o;
|
|
18845
18852
|
const t = document.getElementById(
|
|
18846
18853
|
"luckysheet-rich-text-editor"
|
|
18847
18854
|
), r = document.getElementById(
|
|
18848
18855
|
"luckysheet-functionbox-cell"
|
|
18849
|
-
), a =
|
|
18856
|
+
), a = ul(e);
|
|
18850
18857
|
if (a === "fx") return r ?? t;
|
|
18851
18858
|
if (a === "cell") return t ?? r;
|
|
18852
18859
|
const n = (o = document.activeElement) == null ? void 0 : o.id;
|
|
18853
18860
|
return n === "luckysheet-functionbox-cell" ? r ?? t : t ?? r;
|
|
18854
18861
|
}
|
|
18855
|
-
function
|
|
18862
|
+
function Zc(e, t) {
|
|
18856
18863
|
const a = Bt(
|
|
18857
18864
|
e.textContent || ""
|
|
18858
18865
|
).slice(0, t).split(/[=,(+\-*/&<>]/);
|
|
18859
18866
|
return h.trim(a[a.length - 1] || "");
|
|
18860
18867
|
}
|
|
18861
|
-
function
|
|
18868
|
+
function Kc(e) {
|
|
18862
18869
|
const t = e.replace(/\s/g, "");
|
|
18863
18870
|
return t && /[A-Za-z]+\d+:[A-Za-z]*$/i.test(t) ? !/[A-Za-z]+\d+:[A-Za-z]+\d+$/i.test(t) : !1;
|
|
18864
18871
|
}
|
|
18865
|
-
function
|
|
18872
|
+
function Qc(e, t) {
|
|
18866
18873
|
const r = Bt(e.textContent || ""), a = r.slice(0, t), n = r.slice(t), o = /[=,()+\-*/&<>%^]/, i = (a.split(o).pop() || "").trim(), l = (n.split(o)[0] || "").trim(), c = `${i}${l}`;
|
|
18867
|
-
return
|
|
18874
|
+
return Kc(c);
|
|
18868
18875
|
}
|
|
18869
|
-
function
|
|
18876
|
+
function Jc(e) {
|
|
18870
18877
|
const t = e.trim();
|
|
18871
18878
|
if (!t.startsWith("=")) return !1;
|
|
18872
18879
|
const r = t.slice(1).trim();
|
|
18873
18880
|
return !r || r.includes("(") || r.includes(")") ? !1 : vt(r);
|
|
18874
18881
|
}
|
|
18875
|
-
function
|
|
18882
|
+
function eu(e) {
|
|
18876
18883
|
e.formulaCache.rangeSelectionActive = !1, e.formulaCache.keyboardRangeSelectionLock = !0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1;
|
|
18877
18884
|
}
|
|
18878
18885
|
function Ca(e) {
|
|
@@ -18883,17 +18890,17 @@ function Ca(e) {
|
|
|
18883
18890
|
if (r && !e.contains(r))
|
|
18884
18891
|
return !1;
|
|
18885
18892
|
const a = Bt(e.innerText).trim();
|
|
18886
|
-
if (!a.startsWith("=") || /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(a) ||
|
|
18893
|
+
if (!a.startsWith("=") || /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(a) || Jc(a))
|
|
18887
18894
|
return !1;
|
|
18888
18895
|
const n = t.getRangeAt(0).cloneRange(), o = document.createRange();
|
|
18889
18896
|
o.selectNodeContents(e), o.setEnd(n.endContainer, n.endOffset);
|
|
18890
18897
|
const i = Bt(
|
|
18891
18898
|
o.toString()
|
|
18892
|
-
).length, l =
|
|
18899
|
+
).length, l = Zc(
|
|
18893
18900
|
e,
|
|
18894
18901
|
i
|
|
18895
18902
|
);
|
|
18896
|
-
if (
|
|
18903
|
+
if (Qc(e, i) || l.length > 0 && !vt(l))
|
|
18897
18904
|
return !1;
|
|
18898
18905
|
const c = Bt(e.textContent || ""), u = c.slice(i).replace(/^\s+/, "");
|
|
18899
18906
|
if (u.length === 0) {
|
|
@@ -18905,7 +18912,7 @@ function Ca(e) {
|
|
|
18905
18912
|
const f = u[0];
|
|
18906
18913
|
return f === "," || f === ")" || f === "&" || f in et;
|
|
18907
18914
|
}
|
|
18908
|
-
function
|
|
18915
|
+
function tu(e) {
|
|
18909
18916
|
var r, a;
|
|
18910
18917
|
let t = e.nextSibling;
|
|
18911
18918
|
for (; t; ) {
|
|
@@ -18918,13 +18925,13 @@ function Jc(e) {
|
|
|
18918
18925
|
}
|
|
18919
18926
|
return !1;
|
|
18920
18927
|
}
|
|
18921
|
-
function
|
|
18928
|
+
function nu(e) {
|
|
18922
18929
|
e.formulaCache.rangeSelectionActive = !1, e.formulaRangeHighlight = [], e.formulaRangeSelect = void 0, e.formulaCache.selectingRangeIndex = -1, e.formulaCache.func_selectedrange = void 0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, e.formulaCache.rangechangeindex = void 0;
|
|
18923
18930
|
}
|
|
18924
|
-
function
|
|
18931
|
+
function Zf(e) {
|
|
18925
18932
|
const t = vr(e);
|
|
18926
18933
|
if (t !== null) return t;
|
|
18927
|
-
const r =
|
|
18934
|
+
const r = Xc(e);
|
|
18928
18935
|
if (r === null) return null;
|
|
18929
18936
|
const a = e.querySelector(
|
|
18930
18937
|
`span.fortune-formula-functionrange-cell[rangeindex="${r}"]`
|
|
@@ -18952,9 +18959,9 @@ function jf(e) {
|
|
|
18952
18959
|
} catch {
|
|
18953
18960
|
return r;
|
|
18954
18961
|
}
|
|
18955
|
-
return o.compareBoundaryPoints(Range.START_TO_START, l) >= 0 &&
|
|
18962
|
+
return o.compareBoundaryPoints(Range.START_TO_START, l) >= 0 && tu(a) ? null : r;
|
|
18956
18963
|
}
|
|
18957
|
-
function
|
|
18964
|
+
function ru(e, t, r, a, n, o = !0) {
|
|
18958
18965
|
var i, l, c, s, u, f;
|
|
18959
18966
|
if (r)
|
|
18960
18967
|
try {
|
|
@@ -18962,7 +18969,7 @@ function tu(e, t, r, a, n, o = !0) {
|
|
|
18962
18969
|
const m = a === 8 || a === 46, d = a >= 48 && a <= 57 || // 0-9
|
|
18963
18970
|
a >= 65 && a <= 90 || // A-Z
|
|
18964
18971
|
a >= 97 && a <= 122;
|
|
18965
|
-
e.formulaCache.rangeSelectionActive === !0 && (m || d) &&
|
|
18972
|
+
e.formulaCache.rangeSelectionActive === !0 && (m || d) && nu(e);
|
|
18966
18973
|
let p;
|
|
18967
18974
|
const y = (w) => {
|
|
18968
18975
|
const T = (_) => {
|
|
@@ -18986,8 +18993,8 @@ function tu(e, t, r, a, n, o = !0) {
|
|
|
18986
18993
|
}, g = n ?? y(r);
|
|
18987
18994
|
let b = y(r);
|
|
18988
18995
|
if ((a === 8 || a === 46) && (b = b.replace(/\n{2,}$/, `
|
|
18989
|
-
`)), b =
|
|
18990
|
-
if (o || (Hn =
|
|
18996
|
+
`)), b = uf(b), b.length > 0 && b.substring(0, 1) === "=" && (a !== 229 || b.length === 1)) {
|
|
18997
|
+
if (o || (Hn = cl(r)), b = ta(b), !o && Zt < Hn.length && (o = !0), p = ta(g), Hn = [], window.getSelection) {
|
|
18991
18998
|
const w = window.getSelection();
|
|
18992
18999
|
if (!w) return;
|
|
18993
19000
|
if (((i = w.anchorNode) == null ? void 0 : i.nodeName.toLowerCase()) === "div") {
|
|
@@ -19005,7 +19012,7 @@ function tu(e, t, r, a, n, o = !0) {
|
|
|
19005
19012
|
),
|
|
19006
19013
|
w.anchorOffset
|
|
19007
19014
|
];
|
|
19008
|
-
e.formulaCache.functionRangeGlobalOffset =
|
|
19015
|
+
e.formulaCache.functionRangeGlobalOffset = jc(
|
|
19009
19016
|
r,
|
|
19010
19017
|
w
|
|
19011
19018
|
);
|
|
@@ -19013,7 +19020,7 @@ function tu(e, t, r, a, n, o = !0) {
|
|
|
19013
19020
|
const w = document.selection.createRange();
|
|
19014
19021
|
e.formulaCache.functionRangeIndex = w, e.formulaCache.functionRangeGlobalOffset = null;
|
|
19015
19022
|
}
|
|
19016
|
-
r.innerHTML = b, t && (t.innerHTML = b),
|
|
19023
|
+
r.innerHTML = b, t && (t.innerHTML = b), Wc(e, r, b, p), o && ($l(e), Uc(e, b), e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, Yc(e, r));
|
|
19017
19024
|
} else if (h.startsWith(g, "=") && !h.startsWith(b, "="))
|
|
19018
19025
|
t && (t.innerHTML = b), r.innerHTML = Wn(b);
|
|
19019
19026
|
else if (!h.startsWith(g, "=")) {
|
|
@@ -19036,7 +19043,7 @@ function Dr(e) {
|
|
|
19036
19043
|
let s = !1, u = !1;
|
|
19037
19044
|
return !l && !c ? (s = !0, u = !0) : l && c ? (s = !1, u = !0) : !l && c ? (s = !0, u = !1) : (s = !1, u = !1), `${r}${s ? "$" : ""}${n.toUpperCase()}${u ? "$" : ""}${i}`;
|
|
19038
19045
|
}
|
|
19039
|
-
function
|
|
19046
|
+
function au(e) {
|
|
19040
19047
|
const t = e.trim();
|
|
19041
19048
|
if (t.length === 0) return null;
|
|
19042
19049
|
if (t.includes(":")) {
|
|
@@ -19047,7 +19054,7 @@ function nu(e) {
|
|
|
19047
19054
|
}
|
|
19048
19055
|
return Dr(t);
|
|
19049
19056
|
}
|
|
19050
|
-
function
|
|
19057
|
+
function Kf(e, t, r) {
|
|
19051
19058
|
if (!r) return !1;
|
|
19052
19059
|
const a = window.getSelection();
|
|
19053
19060
|
if (!a || a.rangeCount === 0 || !a.anchorNode || !r.contains(a.anchorNode)) return !1;
|
|
@@ -19070,12 +19077,12 @@ function Xf(e, t, r) {
|
|
|
19070
19077
|
u.parentElement === r && (i = o(u.previousSibling) || o(u.nextSibling));
|
|
19071
19078
|
}
|
|
19072
19079
|
if (!i || !r.contains(i)) return !1;
|
|
19073
|
-
const l = i.textContent || "", c =
|
|
19080
|
+
const l = i.textContent || "", c = au(l);
|
|
19074
19081
|
if (!c || c === l) return !1;
|
|
19075
19082
|
const s = c.length;
|
|
19076
|
-
return i.textContent = c, fr(e, i, 0, s, r),
|
|
19083
|
+
return i.textContent = c, fr(e, i, 0, s, r), ru(e, t, r, 115), !0;
|
|
19077
19084
|
}
|
|
19078
|
-
function
|
|
19085
|
+
function iu(e, t, r, a, n, o) {
|
|
19079
19086
|
const i = e.split("!");
|
|
19080
19087
|
let l, c = "";
|
|
19081
19088
|
i.length > 1 ? ([, l] = i, c = `${i[0]}!`) : [l] = i;
|
|
@@ -19152,7 +19159,7 @@ function So(e, t, r) {
|
|
|
19152
19159
|
}
|
|
19153
19160
|
return !1;
|
|
19154
19161
|
}
|
|
19155
|
-
function
|
|
19162
|
+
function Qf(e) {
|
|
19156
19163
|
return !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start || e.formulaCache.rangeSelectionActive === !0 || _r(e);
|
|
19157
19164
|
}
|
|
19158
19165
|
function _r(e, t) {
|
|
@@ -19226,14 +19233,14 @@ function _r(e, t) {
|
|
|
19226
19233
|
}
|
|
19227
19234
|
return !1;
|
|
19228
19235
|
}
|
|
19229
|
-
function
|
|
19230
|
-
const t =
|
|
19236
|
+
function Jf(e) {
|
|
19237
|
+
const t = fl(e), r = ((t == null ? void 0 : t.innerText) || "").trim(), a = !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start, n = !!t && Ca(t), o = a || e.formulaCache.rangeSelectionActive === !0;
|
|
19231
19238
|
return r.startsWith("=") ? e.formulaCache.rangeSelectionActive === !0 && t && vr(t) !== null ? !0 : /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(r) || e.formulaCache.rangeSelectionActive === !1 ? !1 : o ? a ? !0 : n : n ? !0 : _r(e) : !1;
|
|
19232
19239
|
}
|
|
19233
|
-
function
|
|
19240
|
+
function ed(e) {
|
|
19234
19241
|
if (e.formulaCache.rangeSelectionActive !== !1)
|
|
19235
19242
|
return !1;
|
|
19236
|
-
const t =
|
|
19243
|
+
const t = fl(e);
|
|
19237
19244
|
if (!t)
|
|
19238
19245
|
return !1;
|
|
19239
19246
|
const r = (t.innerText || "").trim(), a = vr(t), n = Ca(t), o = _r(e);
|
|
@@ -19297,7 +19304,7 @@ function bt(e, t, r, a, n, o) {
|
|
|
19297
19304
|
f + m in et ? (c.length > 0 ? (s += bt(c, t, r, a, n, o) + f + m, c = "") : s += f + m, l += 1) : !/[^0-9]/.test(m) && f === "-" && (p === "(" || p == null || p === "," || p === " " || p in et) ? c += f : c.length > 0 ? (s += bt(c, t, r, a, n, o) + f, c = "") : s += f;
|
|
19298
19305
|
} else
|
|
19299
19306
|
c += f;
|
|
19300
|
-
l === i.length - 1 && (vt(h.trim(c)) ? s +=
|
|
19307
|
+
l === i.length - 1 && (vt(h.trim(c)) ? s += iu(
|
|
19301
19308
|
h.trim(c),
|
|
19302
19309
|
t,
|
|
19303
19310
|
r,
|
|
@@ -19314,14 +19321,14 @@ function Na(e, t, r, a) {
|
|
|
19314
19321
|
`<div>${t.innerHTML}</div>`,
|
|
19315
19322
|
"text/html"
|
|
19316
19323
|
).querySelectorAll("span"), l = i[i.length - 1], c = ((g = l == null ? void 0 : l.classList) == null ? void 0 : g.contains("fortune-formula-functionrange-cell")) ?? !1;
|
|
19317
|
-
if (l &&
|
|
19318
|
-
const _ =
|
|
19324
|
+
if (l && df(l == null ? void 0 : l.innerText) && !c) {
|
|
19325
|
+
const _ = mf(t.innerHTML);
|
|
19319
19326
|
t.innerHTML = `${_}`, t.focus();
|
|
19320
19327
|
const x = t.childNodes;
|
|
19321
19328
|
e.formulaCache.rangeSetValueTo = x.length > 0 ? x[x.length - 1] : void 0;
|
|
19322
19329
|
}
|
|
19323
19330
|
let s = t, u = a;
|
|
19324
|
-
|
|
19331
|
+
ul(e) === "fx" && (s = a, u = t);
|
|
19325
19332
|
let f = "";
|
|
19326
19333
|
const m = r.row[0], d = r.column[0];
|
|
19327
19334
|
e.config.merge != null && `${m}_${d}` in e.config.merge ? f = Io(
|
|
@@ -19344,7 +19351,7 @@ function Na(e, t, r, a) {
|
|
|
19344
19351
|
if (p && y)
|
|
19345
19352
|
y.innerHTML = f, fr(e, y, 0, f.length, s);
|
|
19346
19353
|
else {
|
|
19347
|
-
const _ =
|
|
19354
|
+
const _ = cl(s), x = _.length > 0 ? Math.max(..._) + 1 : Zt, N = `<span class="fortune-formula-functionrange-cell" rangeindex="${x}" dir="auto" style="color:${_a[x]};">${f}</span>`, O = ll(N);
|
|
19348
19355
|
let E = e.formulaCache.rangeSetValueTo;
|
|
19349
19356
|
if (E && !E.parentNode && (_r(e), E = e.formulaCache.rangeSetValueTo), E && E.parentNode) {
|
|
19350
19357
|
const W = (b = document.getElementsByClassName(
|
|
@@ -19357,11 +19364,11 @@ function Na(e, t, r, a) {
|
|
|
19357
19364
|
s.appendChild(O);
|
|
19358
19365
|
e.formulaCache.rangechangeindex = x, Zt = Math.max(Zt, x + 1);
|
|
19359
19366
|
const B = O != null && O.parentNode ? O : null;
|
|
19360
|
-
B ? fr(e, B, 0, f.length, s) :
|
|
19367
|
+
B ? fr(e, B, 0, f.length, s) : sl(s);
|
|
19361
19368
|
}
|
|
19362
19369
|
u && (u.innerHTML = s.innerHTML);
|
|
19363
19370
|
}
|
|
19364
|
-
function
|
|
19371
|
+
function td(e) {
|
|
19365
19372
|
if (e.formulaCache.func_selectedrange) {
|
|
19366
19373
|
const {
|
|
19367
19374
|
left_move: t,
|
|
@@ -19385,7 +19392,7 @@ function xa(e, t, r, a, n) {
|
|
|
19385
19392
|
);
|
|
19386
19393
|
o != null && (o.style.left = `${t}px`, o.style.top = `${r}px`, o.style.height = `${a}px`, o.style.width = `${n}px`);
|
|
19387
19394
|
}
|
|
19388
|
-
function
|
|
19395
|
+
function nd(e, t, r, a, n, o, i) {
|
|
19389
19396
|
e.formulaCache.rangeSelectionActive = !0;
|
|
19390
19397
|
const { func_selectedrange: l } = e.formulaCache;
|
|
19391
19398
|
if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
|
|
@@ -19415,12 +19422,12 @@ function ed(e, t, r, a, n, o, i) {
|
|
|
19415
19422
|
i
|
|
19416
19423
|
), xa(o, $, b, w, _), t.preventDefault();
|
|
19417
19424
|
}
|
|
19418
|
-
function
|
|
19425
|
+
function rd(e, t, r, a, n, o, i) {
|
|
19419
19426
|
e.formulaCache.rangeSelectionActive = !0;
|
|
19420
19427
|
const { func_selectedrange: l } = e.formulaCache;
|
|
19421
19428
|
if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
|
|
19422
19429
|
return;
|
|
19423
|
-
const s =
|
|
19430
|
+
const s = il(t.pageX, t.pageY, e)[0] + a, { visibledatarow: u } = e, f = u.length - 1, m = u[f], d = 0, [p, y, g] = $a(s, e.visibledatacolumn);
|
|
19424
19431
|
let b = 0, w = 0, T = [];
|
|
19425
19432
|
l.left > p ? (b = p, w = l.left + l.width - p, T = [g, l.column[1]]) : l.left === p ? (b = p, w = l.left + l.width - p, T = [g, l.column[0]]) : (b = l.left, w = y - l.left - 1, T = [l.column[0], g]);
|
|
19426
19433
|
const $ = Yn(
|
|
@@ -19443,12 +19450,12 @@ function td(e, t, r, a, n, o, i) {
|
|
|
19443
19450
|
i
|
|
19444
19451
|
), xa(o, b, d, m - d - 1, w);
|
|
19445
19452
|
}
|
|
19446
|
-
function
|
|
19453
|
+
function ad(e, t, r, a, n, o, i) {
|
|
19447
19454
|
e.formulaCache.rangeSelectionActive = !0;
|
|
19448
19455
|
const { func_selectedrange: l } = e.formulaCache;
|
|
19449
19456
|
if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
|
|
19450
19457
|
return;
|
|
19451
|
-
const s =
|
|
19458
|
+
const s = il(t.pageX, t.pageY, e)[1] + n, [u, f, m] = Ta(s, e.visibledatarow), { visibledatacolumn: d } = e, p = d.length - 1, y = d[p], g = 0;
|
|
19452
19459
|
let b = 0, w = 0, T = [];
|
|
19453
19460
|
l.top > u ? (b = u, w = l.top + l.height - u, T = [m, l.row[1]]) : l.top === u ? (b = u, w = l.top + l.height - u, T = [m, l.row[0]]) : (b = l.top, w = f - l.top - 1, T = [l.row[0], m]);
|
|
19454
19461
|
const $ = Yn(
|
|
@@ -19486,16 +19493,16 @@ function Tr(e, t, r) {
|
|
|
19486
19493
|
const c = $n(n[0]), s = $n(n[1]), u = c[0] ? "$" : "", f = c[1] ? "$" : "", m = s[0] ? "$" : "", d = s[1] ? "$" : "";
|
|
19487
19494
|
return e === "u" ? (c[0] || (i[0] -= r), s[0] || (i[1] -= r)) : e === "r" ? (c[1] || (l[0] += r), s[1] || (l[1] += r)) : e === "l" ? (c[1] || (l[0] -= r), s[1] || (l[1] -= r)) : e === "d" && (c[0] || (i[0] += r), s[0] || (i[1] += r)), i[0] < 0 || l[0] < 0 ? Cn.r : Number.isNaN(l[0]) && Number.isNaN(l[1]) ? `${o + u + i[0]}:${m}${i[1]}` : Number.isNaN(i[0]) && Number.isNaN(i[1]) ? `${o + f + Ze(l[0])}:${d}${Ze(l[1])}` : `${o + f + Ze(l[0]) + u + i[0]}:${d}${Ze(l[1])}${m}${i[1]}`;
|
|
19488
19495
|
}
|
|
19489
|
-
function
|
|
19496
|
+
function ou(e, t) {
|
|
19490
19497
|
return Tr("d", e, t);
|
|
19491
19498
|
}
|
|
19492
|
-
function
|
|
19499
|
+
function lu(e, t) {
|
|
19493
19500
|
return Tr("u", e, t);
|
|
19494
19501
|
}
|
|
19495
|
-
function
|
|
19502
|
+
function su(e, t) {
|
|
19496
19503
|
return Tr("l", e, t);
|
|
19497
19504
|
}
|
|
19498
|
-
function
|
|
19505
|
+
function cu(e, t) {
|
|
19499
19506
|
return Tr("r", e, t);
|
|
19500
19507
|
}
|
|
19501
19508
|
function hn(e, t, r, a) {
|
|
@@ -19530,20 +19537,20 @@ function hn(e, t, r, a) {
|
|
|
19530
19537
|
s + u in et ? (i.length > 0 ? (l += hn(e, i, r, a) + s + u, i = "") : l += s + u, o += 1) : !/[^0-9]/.test(u) && s === "-" && (m === "(" || m == null || m === "," || m === " " || m in et) ? i += s : i.length > 0 ? (l += hn(e, i, r, a) + s, i = "") : l += s;
|
|
19531
19538
|
} else
|
|
19532
19539
|
i += s;
|
|
19533
|
-
o === n.length - 1 && (vt(h.trim(i)) ? r === "down" ? l +=
|
|
19540
|
+
o === n.length - 1 && (vt(h.trim(i)) ? r === "down" ? l += ou(h.trim(i), a) : r === "up" ? l += lu(h.trim(i), a) : r === "left" ? l += su(h.trim(i), a) : r === "right" && (l += cu(h.trim(i), a)) : l += h.trim(i)), o += 1;
|
|
19534
19541
|
}
|
|
19535
19542
|
return l = l.replace(/NaN/g, ""), l;
|
|
19536
19543
|
}
|
|
19537
|
-
function
|
|
19544
|
+
function dl(e) {
|
|
19538
19545
|
return e.startsWith("'") && e.endsWith("'") ? e.slice(1, -1).replace(/''/g, "'") : e;
|
|
19539
19546
|
}
|
|
19540
|
-
const
|
|
19541
|
-
function
|
|
19547
|
+
const uu = /((?:'(?:[^']|'')+'|[A-Za-z_][A-Za-z0-9_.]*)!)?(\$?)([A-Za-z]+)(\$?)(\d+)(?::(\$?)([A-Za-z]+)(\$?)(\d+))?/g;
|
|
19548
|
+
function fu(e, t, r, a) {
|
|
19542
19549
|
const { rowMap: n, colMap: o } = a;
|
|
19543
19550
|
return e && e.replace(
|
|
19544
|
-
|
|
19551
|
+
uu,
|
|
19545
19552
|
(i, l, c, s, u, f, m, d, p, y) => {
|
|
19546
|
-
if ((l ?
|
|
19553
|
+
if ((l ? dl(l.slice(0, -1)) : t) !== r) return i;
|
|
19547
19554
|
const b = ($, _) => {
|
|
19548
19555
|
const x = wt($), N = parseInt(_, 10) - 1, O = !Number.isNaN(x) && !h.isNil(o == null ? void 0 : o[x]) ? Ze(o[x]) : $, E = !Number.isNaN(N) && !h.isNil(n == null ? void 0 : n[N]) ? String(n[N] + 1) : _;
|
|
19549
19556
|
return { nextCol: O, nextRow: E };
|
|
@@ -19555,24 +19562,24 @@ function cu(e, t, r, a) {
|
|
|
19555
19562
|
}
|
|
19556
19563
|
);
|
|
19557
19564
|
}
|
|
19558
|
-
function
|
|
19565
|
+
function du(e) {
|
|
19559
19566
|
const t = e.match(/^(\$?)([A-Za-z]+)(\$?)(\d+)$/);
|
|
19560
19567
|
if (!t) return null;
|
|
19561
19568
|
const r = t[1] === "$", a = wt(t[2]), n = t[3] === "$", o = parseInt(t[4], 10) - 1;
|
|
19562
19569
|
return Number.isNaN(o) || Number.isNaN(a) ? null : { colAbs: r, rowAbs: n, col: a, row: o };
|
|
19563
19570
|
}
|
|
19564
|
-
function
|
|
19571
|
+
function mu(e) {
|
|
19565
19572
|
return `${e.colAbs ? "$" : ""}${Ze(e.col)}${e.rowAbs ? "$" : ""}${e.row + 1}`;
|
|
19566
19573
|
}
|
|
19567
19574
|
function Or(e, t, r, a) {
|
|
19568
|
-
const n =
|
|
19569
|
-
return !n || !(n.row >= t.rowStart && n.row <= t.rowEnd && n.col >= t.colStart && n.col <= t.colEnd) ? e :
|
|
19575
|
+
const n = du(e);
|
|
19576
|
+
return !n || !(n.row >= t.rowStart && n.row <= t.rowEnd && n.col >= t.colStart && n.col <= t.colEnd) ? e : mu({
|
|
19570
19577
|
...n,
|
|
19571
19578
|
row: r + (n.row - t.rowStart),
|
|
19572
19579
|
col: a + (n.col - t.colStart)
|
|
19573
19580
|
});
|
|
19574
19581
|
}
|
|
19575
|
-
function
|
|
19582
|
+
function hu(e, t, r, a) {
|
|
19576
19583
|
const n = e.split(":");
|
|
19577
19584
|
if (n.length === 1)
|
|
19578
19585
|
return Or(
|
|
@@ -19595,11 +19602,11 @@ function du(e, t, r, a) {
|
|
|
19595
19602
|
);
|
|
19596
19603
|
return `${o}:${i}`;
|
|
19597
19604
|
}
|
|
19598
|
-
function
|
|
19605
|
+
function pu(e, t, r, a, n, o) {
|
|
19599
19606
|
const i = e.lastIndexOf("!");
|
|
19600
19607
|
let l = "", c = e, s = t;
|
|
19601
|
-
if (i > -1 && (l = e.slice(0, i + 1), c = e.slice(i + 1), s =
|
|
19602
|
-
const u =
|
|
19608
|
+
if (i > -1 && (l = e.slice(0, i + 1), c = e.slice(i + 1), s = dl(l.slice(0, -1))), s !== r) return e;
|
|
19609
|
+
const u = hu(
|
|
19603
19610
|
c,
|
|
19604
19611
|
a,
|
|
19605
19612
|
n,
|
|
@@ -19678,7 +19685,7 @@ function Mn(e, t, r, a, n, o) {
|
|
|
19678
19685
|
c += f;
|
|
19679
19686
|
if (l === i.length - 1) {
|
|
19680
19687
|
const m = h.trim(c);
|
|
19681
|
-
vt(m) ? s +=
|
|
19688
|
+
vt(m) ? s += pu(
|
|
19682
19689
|
m,
|
|
19683
19690
|
t,
|
|
19684
19691
|
r,
|
|
@@ -19691,7 +19698,7 @@ function Mn(e, t, r, a, n, o) {
|
|
|
19691
19698
|
}
|
|
19692
19699
|
return s;
|
|
19693
19700
|
}
|
|
19694
|
-
function
|
|
19701
|
+
function ml(e, t, r, a) {
|
|
19695
19702
|
var s, u;
|
|
19696
19703
|
const n = xr(e, a);
|
|
19697
19704
|
if (h.isNil(n))
|
|
@@ -19702,7 +19709,7 @@ function dl(e, t, r, a) {
|
|
|
19702
19709
|
const l = (u = n.config) == null ? void 0 : u.authority;
|
|
19703
19710
|
return !(h.isNil(l) || h.isNil(l.sheet) || l.sheet === 0);
|
|
19704
19711
|
}
|
|
19705
|
-
function
|
|
19712
|
+
function id(e, t, r, a) {
|
|
19706
19713
|
var c;
|
|
19707
19714
|
const n = xr(e, a);
|
|
19708
19715
|
if (h.isNil(n) || h.isNil(n.config) || h.isNil(n.config.authority))
|
|
@@ -19713,7 +19720,7 @@ function rd(e, t, r, a) {
|
|
|
19713
19720
|
const { data: i } = n, l = (c = i == null ? void 0 : i[t]) == null ? void 0 : c[r];
|
|
19714
19721
|
return l && l.lo === 0 ? !!(o.selectunLockedCells === 1 || h.isNil(o.selectunLockedCells)) : !!(o.selectLockedCells === 1 || h.isNil(o.selectLockedCells));
|
|
19715
19722
|
}
|
|
19716
|
-
function
|
|
19723
|
+
function od(e, t) {
|
|
19717
19724
|
const r = xr(e, t);
|
|
19718
19725
|
if (h.isNil(r) || h.isNil(r.config) || h.isNil(r.config.authority))
|
|
19719
19726
|
return !0;
|
|
@@ -19725,7 +19732,7 @@ function ad(e, t) {
|
|
|
19725
19732
|
let o = !1;
|
|
19726
19733
|
return (a.selectLockedCells === 1 || h.isNil(a.selectLockedCells)) && (o = !0), !!(n && o);
|
|
19727
19734
|
}
|
|
19728
|
-
function
|
|
19735
|
+
function gu(e) {
|
|
19729
19736
|
const t = xr(e, e.currentSheetId);
|
|
19730
19737
|
if (h.isNil(t) || h.isNil(t.config) || h.isNil(t.config.authority))
|
|
19731
19738
|
return !0;
|
|
@@ -19752,7 +19759,7 @@ function Eo(e, t, r) {
|
|
|
19752
19759
|
const o = Number(e), i = Number(t);
|
|
19753
19760
|
return !Number.isNaN(o) && !Number.isNaN(i) && r === "<=" ? o <= i : !Number.isNaN(o) && !Number.isNaN(i) ? o < i : r === "<=" ? a.localeCompare(n) <= 0 : a.localeCompare(n) < 0;
|
|
19754
19761
|
}
|
|
19755
|
-
function
|
|
19762
|
+
function yu(e, t, r) {
|
|
19756
19763
|
const a = String(e), n = String(t), o = String(r);
|
|
19757
19764
|
let i, l;
|
|
19758
19765
|
if (yn(t) || yn(r) || yn(e))
|
|
@@ -19775,7 +19782,7 @@ const dr = "DD/MM/YYYY";
|
|
|
19775
19782
|
function mr(e) {
|
|
19776
19783
|
return e < 10 ? `0${e}` : String(e);
|
|
19777
19784
|
}
|
|
19778
|
-
function
|
|
19785
|
+
function hl() {
|
|
19779
19786
|
const e = /* @__PURE__ */ new Date();
|
|
19780
19787
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
19781
19788
|
}
|
|
@@ -19786,13 +19793,13 @@ function qo(e, t) {
|
|
|
19786
19793
|
function _n(e) {
|
|
19787
19794
|
return `${mr(e.getDate())}/${mr(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
19788
19795
|
}
|
|
19789
|
-
function
|
|
19796
|
+
function bu(e) {
|
|
19790
19797
|
const t = e.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
19791
19798
|
if (!t) return e;
|
|
19792
19799
|
const r = Number(t[1]), a = Number(t[2]), n = Number(t[3]);
|
|
19793
19800
|
return `${mr(n)}/${mr(a)}/${r}`;
|
|
19794
19801
|
}
|
|
19795
|
-
function
|
|
19802
|
+
function wu(e) {
|
|
19796
19803
|
const t = Math.floor(e), r = Date.UTC(1899, 11, 31, 0, 0, 0), a = t * 864e5 + r, n = new Date(a);
|
|
19797
19804
|
return new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate());
|
|
19798
19805
|
}
|
|
@@ -19804,7 +19811,7 @@ function Gn(e) {
|
|
|
19804
19811
|
const i = new Date(o, n, a);
|
|
19805
19812
|
return i.getFullYear() !== o || i.getMonth() !== n || i.getDate() !== a ? null : wr(i, 0);
|
|
19806
19813
|
}
|
|
19807
|
-
function
|
|
19814
|
+
function vu(e) {
|
|
19808
19815
|
var t, r;
|
|
19809
19816
|
return e ? ((t = e.ct) == null ? void 0 : t.t) === "inlineStr" && Array.isArray((r = e.ct) == null ? void 0 : r.s) ? e.ct.s.map((a) => (a == null ? void 0 : a.v) != null ? String(a.v) : "").join("").trim() : e.m != null && String(e.m).trim() !== "" ? String(e.m).trim() : e.v != null && typeof e.v == "string" && !String(e.v).startsWith("=") ? String(e.v).trim() : "" : "";
|
|
19810
19817
|
}
|
|
@@ -19814,7 +19821,7 @@ function Mo(e) {
|
|
|
19814
19821
|
const t = e.v;
|
|
19815
19822
|
if (((a = e.ct) == null ? void 0 : a.t) === "d" && typeof t == "number" && Number.isFinite(t))
|
|
19816
19823
|
return Math.floor(t);
|
|
19817
|
-
const r =
|
|
19824
|
+
const r = vu(e);
|
|
19818
19825
|
if (r && !r.startsWith("=")) {
|
|
19819
19826
|
const o = Gn(r);
|
|
19820
19827
|
if (o != null) return Math.floor(o);
|
|
@@ -19823,11 +19830,11 @@ function Mo(e) {
|
|
|
19823
19830
|
}
|
|
19824
19831
|
return typeof t == "number" && Number.isFinite(t) && ((n = e.ct) != null && n.fa) && va(e.ct.fa) ? Math.floor(t) : null;
|
|
19825
19832
|
}
|
|
19826
|
-
function
|
|
19827
|
-
return Math.floor(wr(
|
|
19833
|
+
function pl() {
|
|
19834
|
+
return Math.floor(wr(hl(), 0));
|
|
19828
19835
|
}
|
|
19829
19836
|
function na(e) {
|
|
19830
|
-
const t =
|
|
19837
|
+
const t = hl();
|
|
19831
19838
|
switch (e) {
|
|
19832
19839
|
case "today":
|
|
19833
19840
|
return _n(t);
|
|
@@ -19845,7 +19852,7 @@ function na(e) {
|
|
|
19845
19852
|
return _n(t);
|
|
19846
19853
|
}
|
|
19847
19854
|
}
|
|
19848
|
-
function
|
|
19855
|
+
function ld(e) {
|
|
19849
19856
|
const t = dr;
|
|
19850
19857
|
if (!e || e.length === 0)
|
|
19851
19858
|
return {
|
|
@@ -19864,19 +19871,19 @@ function id(e) {
|
|
|
19864
19871
|
if (/^\d{4}-\d{2}-\d{2}$/.test(a))
|
|
19865
19872
|
return {
|
|
19866
19873
|
preset: "exact",
|
|
19867
|
-
snapshotOrExact:
|
|
19874
|
+
snapshotOrExact: bu(a),
|
|
19868
19875
|
format: t
|
|
19869
19876
|
};
|
|
19870
19877
|
const n = $r(a);
|
|
19871
19878
|
return n != null ? {
|
|
19872
19879
|
preset: "exact",
|
|
19873
19880
|
snapshotOrExact: _n(
|
|
19874
|
-
|
|
19881
|
+
wu(n)
|
|
19875
19882
|
),
|
|
19876
19883
|
format: t
|
|
19877
19884
|
} : { preset: "exact", snapshotOrExact: a, format: t };
|
|
19878
19885
|
}
|
|
19879
|
-
function
|
|
19886
|
+
function _u(e, t, r) {
|
|
19880
19887
|
if (!(r != null && r.length)) return !1;
|
|
19881
19888
|
const a = String(r[0] ?? ""), n = Math.floor(e);
|
|
19882
19889
|
if (!a.startsWith("preset:")) {
|
|
@@ -19892,7 +19899,7 @@ function wu(e, t, r) {
|
|
|
19892
19899
|
const u = Math.floor(s);
|
|
19893
19900
|
return t === "dateIs" ? n === u : n < u;
|
|
19894
19901
|
}
|
|
19895
|
-
const l =
|
|
19902
|
+
const l = pl();
|
|
19896
19903
|
if (o === "pastWeek" || o === "pastMonth" || o === "pastYear") {
|
|
19897
19904
|
let s = 6;
|
|
19898
19905
|
o === "pastMonth" && (s = 29), o === "pastYear" && (s = 364);
|
|
@@ -19912,7 +19919,7 @@ const Cr = /* @__PURE__ */ new Set([
|
|
|
19912
19919
|
"yesterday",
|
|
19913
19920
|
"exact"
|
|
19914
19921
|
]);
|
|
19915
|
-
function
|
|
19922
|
+
function Tu(e) {
|
|
19916
19923
|
switch (e) {
|
|
19917
19924
|
case "containsText":
|
|
19918
19925
|
return "textContains";
|
|
@@ -19935,7 +19942,7 @@ function vu(e) {
|
|
|
19935
19942
|
return e;
|
|
19936
19943
|
}
|
|
19937
19944
|
}
|
|
19938
|
-
function
|
|
19945
|
+
function $u(e, t) {
|
|
19939
19946
|
if (!(t != null && t.length)) return !1;
|
|
19940
19947
|
const r = String(t[0] ?? ""), a = Math.floor(e);
|
|
19941
19948
|
if (!r.startsWith("preset:")) {
|
|
@@ -19949,7 +19956,7 @@ function _u(e, t) {
|
|
|
19949
19956
|
}
|
|
19950
19957
|
if (!Cr.has(n))
|
|
19951
19958
|
return !1;
|
|
19952
|
-
const i =
|
|
19959
|
+
const i = pl();
|
|
19953
19960
|
let l;
|
|
19954
19961
|
if (n === "today") l = i;
|
|
19955
19962
|
else if (n === "tomorrow") l = i + 1;
|
|
@@ -19972,9 +19979,9 @@ function ra(e) {
|
|
|
19972
19979
|
let n = String(e.dateValue ?? "").trim();
|
|
19973
19980
|
return r !== "exact" && (n = n || na(r)), [`preset:${r}`, n, a];
|
|
19974
19981
|
}
|
|
19975
|
-
function
|
|
19982
|
+
function sd(e, t, r, a, n, o, i) {
|
|
19976
19983
|
var y, g, b, w;
|
|
19977
|
-
if (!
|
|
19984
|
+
if (!gu(e))
|
|
19978
19985
|
return;
|
|
19979
19986
|
const l = n.rulesType, c = [], s = [];
|
|
19980
19987
|
if (l === "greaterThan" || l === "greaterThanOrEqual" || l === "lessThan" || l === "lessThanOrEqual" || l === "equal" || l === "notEqual" || l === "textContains" || l === "textDoesNotContain" || l === "textStartsWith" || l === "textEndsWith" || l === "textExactly") {
|
|
@@ -20125,7 +20132,7 @@ function Lr(e, t, r, a, n) {
|
|
|
20125
20132
|
const o = e.split(","), i = parseInt(o[0].split("(")[1], 10), l = parseInt(o[1], 10), c = parseInt(o[2].split(")")[0], 10), s = t.split(","), u = parseInt(s[0].split("(")[1], 10), f = parseInt(s[1], 10), m = parseInt(s[2].split(")")[0], 10), d = r - a, p = r - n, y = Math.round(i - (i - u) / d * p), g = Math.round(l - (l - f) / d * p), b = Math.round(c - (c - m) / d * p);
|
|
20126
20133
|
return `rgb(${y}, ${g}, ${b})`;
|
|
20127
20134
|
}
|
|
20128
|
-
function
|
|
20135
|
+
function Cu(e, t, r) {
|
|
20129
20136
|
h.isNil(t) && (t = []);
|
|
20130
20137
|
const a = {};
|
|
20131
20138
|
if (t.length > 0)
|
|
@@ -20255,7 +20262,7 @@ function Tu(e, t, r) {
|
|
|
20255
20262
|
}
|
|
20256
20263
|
}
|
|
20257
20264
|
} else if (o !== "icons") {
|
|
20258
|
-
const c =
|
|
20265
|
+
const c = Tu(
|
|
20259
20266
|
String(t[n].conditionName ?? "")
|
|
20260
20267
|
), s = t[n].conditionValue[0], u = t[n].conditionValue[1], { textColor: f, cellColor: m, bold: d, italic: p, underline: y, strikethrough: g } = l;
|
|
20261
20268
|
for (let b = 0; b < i.length; b += 1)
|
|
@@ -20378,7 +20385,7 @@ function Tu(e, t, r) {
|
|
|
20378
20385
|
const $ = r[w][T];
|
|
20379
20386
|
if (h.isNil($) || h.isNil($.v) || Je($.v))
|
|
20380
20387
|
continue;
|
|
20381
|
-
const _ =
|
|
20388
|
+
const _ = yu(
|
|
20382
20389
|
$.v,
|
|
20383
20390
|
s,
|
|
20384
20391
|
u
|
|
@@ -20422,7 +20429,7 @@ function Tu(e, t, r) {
|
|
|
20422
20429
|
const _ = Mo(r[T][$]);
|
|
20423
20430
|
if (_ == null)
|
|
20424
20431
|
continue;
|
|
20425
|
-
|
|
20432
|
+
_u(
|
|
20426
20433
|
_,
|
|
20427
20434
|
c,
|
|
20428
20435
|
w
|
|
@@ -20444,7 +20451,7 @@ function Tu(e, t, r) {
|
|
|
20444
20451
|
const _ = Mo(r[T][$]);
|
|
20445
20452
|
if (_ == null)
|
|
20446
20453
|
continue;
|
|
20447
|
-
|
|
20454
|
+
$u(_, w) && !(`${T}_${$}` in a) && (a[`${T}_${$}`] = {
|
|
20448
20455
|
textColor: f,
|
|
20449
20456
|
cellColor: m,
|
|
20450
20457
|
bold: d,
|
|
@@ -20583,7 +20590,7 @@ function Tu(e, t, r) {
|
|
|
20583
20590
|
}
|
|
20584
20591
|
return a;
|
|
20585
20592
|
}
|
|
20586
|
-
function
|
|
20593
|
+
function Nu(e) {
|
|
20587
20594
|
var r, a;
|
|
20588
20595
|
if (!e) return !1;
|
|
20589
20596
|
const t = e.rulesType;
|
|
@@ -20598,19 +20605,19 @@ function $u(e) {
|
|
|
20598
20605
|
}
|
|
20599
20606
|
return t === "occurrenceDate" ? String(e.dateValue ?? "").trim() !== "" : t === "between" || t === "notBetween" ? String(((r = e.betweenValue) == null ? void 0 : r.value1) ?? "").trim() !== "" && String(((a = e.betweenValue) == null ? void 0 : a.value2) ?? "").trim() !== "" : String(e.rulesValue ?? "").trim() !== "";
|
|
20600
20607
|
}
|
|
20601
|
-
function
|
|
20608
|
+
function xu(e) {
|
|
20602
20609
|
if (!e) return [""];
|
|
20603
20610
|
const t = ra(e);
|
|
20604
20611
|
if (t) return t;
|
|
20605
20612
|
const r = e.rulesType;
|
|
20606
20613
|
return r === "occurrenceDate" ? [e.dateValue || ""] : (r === "between" || r === "notBetween") && e.betweenValue ? [e.betweenValue.value1, e.betweenValue.value2] : [e.rulesValue || ""];
|
|
20607
20614
|
}
|
|
20608
|
-
function
|
|
20615
|
+
function gl(e) {
|
|
20609
20616
|
var l, c, s, u, f, m, d, p, y, g, b, w, T, $;
|
|
20610
20617
|
const t = Le(e, e.currentSheetId), r = (l = e.luckysheetfile[t]) != null && l.luckysheet_conditionformat_save ? [...(c = e.luckysheetfile[t]) == null ? void 0 : c.luckysheet_conditionformat_save] : [], { data: a } = e.luckysheetfile[t];
|
|
20611
20618
|
if (h.isNil(a)) return null;
|
|
20612
20619
|
const n = (s = e.luckysheetfile[t].conditionRules) == null ? void 0 : s.editKey, o = e.luckysheetfile[t].conditionRules;
|
|
20613
|
-
return e.conditionFormatDraftActive && e.luckysheet_select_save &&
|
|
20620
|
+
return e.conditionFormatDraftActive && e.luckysheet_select_save && Nu(o) && (n != null && r.splice(Number(n), 1), r.unshift({
|
|
20614
20621
|
type: "default",
|
|
20615
20622
|
cellrange: e.luckysheet_select_save,
|
|
20616
20623
|
format: {
|
|
@@ -20623,13 +20630,13 @@ function pl(e) {
|
|
|
20623
20630
|
},
|
|
20624
20631
|
conditionName: ($ = e.luckysheetfile[t].conditionRules) == null ? void 0 : $.rulesType,
|
|
20625
20632
|
conditionRange: [],
|
|
20626
|
-
conditionValue:
|
|
20627
|
-
})),
|
|
20633
|
+
conditionValue: xu(o)
|
|
20634
|
+
})), Cu(e, r, a);
|
|
20628
20635
|
}
|
|
20629
|
-
function
|
|
20636
|
+
function Au(e, t, r) {
|
|
20630
20637
|
return !h.isNil(r) && `${e}_${t}` in r ? r[`${e}_${t}`] : null;
|
|
20631
20638
|
}
|
|
20632
|
-
function
|
|
20639
|
+
function Su(e, t, r, a) {
|
|
20633
20640
|
let n = [];
|
|
20634
20641
|
const o = r.row[0] - t.row[0], i = r.column[0] - t.column[0], l = e.row[0], c = e.row[1], s = e.column[0], u = e.column[1];
|
|
20635
20642
|
return l >= t.row[0] && c <= t.row[1] && s >= t.column[0] && u <= t.column[1] ? a === "allPart" ? n = [
|
|
@@ -20889,7 +20896,7 @@ function xu(e, t, r, a) {
|
|
|
20889
20896
|
}
|
|
20890
20897
|
]) : a === "allPart" ? n = [{ row: [l, c], column: [s, u] }] : a === "restPart" ? n = [{ row: [l, c], column: [s, u] }] : a === "operatePart" && (n = []), n;
|
|
20891
20898
|
}
|
|
20892
|
-
function
|
|
20899
|
+
function ku(e, t) {
|
|
20893
20900
|
const r = [];
|
|
20894
20901
|
if (vt(t)) {
|
|
20895
20902
|
const a = xn(e, t), n = Le(e, a.sheetId), o = e.luckysheetfile[n].data;
|
|
@@ -20913,7 +20920,7 @@ function Au(e, t) {
|
|
|
20913
20920
|
}
|
|
20914
20921
|
return r;
|
|
20915
20922
|
}
|
|
20916
|
-
function
|
|
20923
|
+
function Eu(e, t) {
|
|
20917
20924
|
if (/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/.test(t)) {
|
|
20918
20925
|
if (t.length === 18) {
|
|
20919
20926
|
const a = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], n = [1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2];
|
|
@@ -20927,11 +20934,11 @@ function Su(e, t) {
|
|
|
20927
20934
|
return !1;
|
|
20928
20935
|
return !1;
|
|
20929
20936
|
}
|
|
20930
|
-
function
|
|
20937
|
+
function yl(e, t, r) {
|
|
20931
20938
|
let { value1: a, value2: n } = t;
|
|
20932
20939
|
const { type: o, type2: i } = t;
|
|
20933
20940
|
if (o === "dropdown") {
|
|
20934
|
-
const l =
|
|
20941
|
+
const l = ku(e, a);
|
|
20935
20942
|
if (i && r)
|
|
20936
20943
|
return r.toString().split(",").every((s) => l.indexOf(s) !== -1);
|
|
20937
20944
|
let c = !1;
|
|
@@ -20955,12 +20962,12 @@ function gl(e, t, r) {
|
|
|
20955
20962
|
} else if (o === "date") {
|
|
20956
20963
|
if (!Nn(r) || i === "between" && (xt(r, a) < 0 || xt(r, n) > 0) || i === "notBetween" && xt(r, a) >= 0 && xt(r, n) <= 0 || i === "equal" && xt(r, a) !== 0 || i === "notEqualTo" && xt(r, a) === 0 || i === "earlierThan" && xt(r, a) >= 0 || i === "noEarlierThan" && xt(r, a) < 0 || i === "laterThan" && xt(r, a) <= 0 || i === "noLaterThan" && xt(r, a) > 0)
|
|
20957
20964
|
return !1;
|
|
20958
|
-
} else if (o === "validity" && (i === "identificationNumber" && !
|
|
20965
|
+
} else if (o === "validity" && (i === "identificationNumber" && !Eu(e, r) || i === "phoneNumber" && !/^1[3456789]\d{9}$/.test(r)))
|
|
20959
20966
|
return !1;
|
|
20960
20967
|
}
|
|
20961
20968
|
return !0;
|
|
20962
20969
|
}
|
|
20963
|
-
function
|
|
20970
|
+
function qu(e, t, r) {
|
|
20964
20971
|
var c, s;
|
|
20965
20972
|
const a = Le(e, e.currentSheetId), o = (e.luckysheetfile[a].dataVerification ?? {})[`${t}_${r}`];
|
|
20966
20973
|
o.checked = !o.checked;
|
|
@@ -20984,7 +20991,7 @@ function ku(e, t, r) {
|
|
|
20984
20991
|
}
|
|
20985
20992
|
]);
|
|
20986
20993
|
}
|
|
20987
|
-
function
|
|
20994
|
+
function bl(e, t) {
|
|
20988
20995
|
var c, s, u, f, m;
|
|
20989
20996
|
let r = "";
|
|
20990
20997
|
const { lang: a } = e, { type: n, type2: o, value1: i, value2: l } = t;
|
|
@@ -21006,7 +21013,7 @@ function yl(e, t) {
|
|
|
21006
21013
|
}
|
|
21007
21014
|
return r;
|
|
21008
21015
|
}
|
|
21009
|
-
function
|
|
21016
|
+
function Mu(e, t) {
|
|
21010
21017
|
var c, s, u, f;
|
|
21011
21018
|
let r = t.hintValue || "";
|
|
21012
21019
|
const { type: a, type2: n, value1: o, value2: i } = t, { lang: l } = e;
|
|
@@ -21027,8 +21034,8 @@ function Eu(e, t) {
|
|
|
21027
21034
|
}
|
|
21028
21035
|
return r;
|
|
21029
21036
|
}
|
|
21030
|
-
function
|
|
21031
|
-
const n = nn(e), o =
|
|
21037
|
+
function cd(e, t, r, a) {
|
|
21038
|
+
const n = nn(e), o = ff(e);
|
|
21032
21039
|
if (!n || o) return;
|
|
21033
21040
|
const i = document.getElementById(
|
|
21034
21041
|
"luckysheet-dataVerification-showHintBox"
|
|
@@ -21046,21 +21053,21 @@ function ld(e, t, r, a) {
|
|
|
21046
21053
|
if (!b) return;
|
|
21047
21054
|
const w = Qt(e, b, t, r);
|
|
21048
21055
|
if (w && ([m, f] = w.row, [y, p] = w.column), !u) return;
|
|
21049
|
-
if (u.type === "checkbox" &&
|
|
21056
|
+
if (u.type === "checkbox" && qu(e, t, r), u.type === "dropdown" && (l.style.display = "block", l.style.maxWidth = `${p - y}px`, l.style.maxHeight = `${f - m}px`, l.style.left = `${p - 20}px`, l.style.top = `${m + (f - m - 20) / 2 - 2}px`), u.hintShow) {
|
|
21050
21057
|
let _ = "";
|
|
21051
21058
|
const { lang: x } = e;
|
|
21052
|
-
x === "en" ? _ = '<span style="color:#f5a623;">Hint: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? _ = '<span style="color:#f5a623;">提示:</span>' : x === "es" ? _ = '<span style="color:#f5a623;">Consejos:</span>' : x === "hi" && (_ = '<span style="color:#f5a623;">सुझाव: </span>'), _ +=
|
|
21059
|
+
x === "en" ? _ = '<span style="color:#f5a623;">Hint: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? _ = '<span style="color:#f5a623;">提示:</span>' : x === "es" ? _ = '<span style="color:#f5a623;">Consejos:</span>' : x === "hi" && (_ = '<span style="color:#f5a623;">सुझाव: </span>'), _ += Mu(e, u), i.innerHTML = _, i.style.display = "block", i.style.left = `${y}px`, i.style.top = `${f}px`;
|
|
21053
21060
|
}
|
|
21054
21061
|
const T = Ke(t, r, b);
|
|
21055
21062
|
if (Je(T))
|
|
21056
21063
|
return;
|
|
21057
|
-
if (!
|
|
21064
|
+
if (!yl(e, u, T)) {
|
|
21058
21065
|
let _ = "";
|
|
21059
21066
|
const { lang: x } = e, N = '<div style="color:#F4874A;font-weight:500;font-size:14px;margin-bottom:4px;">Invalid</div>';
|
|
21060
|
-
x === "en" ? _ = '<span style="color:#f72626;">Failure: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? _ = '<span style="color:#f72626;">失效:</span>' : x === "es" ? _ = '<span style="color:#f72626;">Caducidad: </span>' : x === "hi" && (_ = '<span style="color:#f72626;">असफलता: </span>'), _ = N + _ +
|
|
21067
|
+
x === "en" ? _ = '<span style="color:#f72626;">Failure: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? _ = '<span style="color:#f72626;">失效:</span>' : x === "es" ? _ = '<span style="color:#f72626;">Caducidad: </span>' : x === "hi" && (_ = '<span style="color:#f72626;">असफलता: </span>'), _ = N + _ + bl(e, u), i.innerHTML = _, i.style.display = "block", i.style.left = `${g}px`, i.style.top = `${d}px`;
|
|
21061
21068
|
}
|
|
21062
21069
|
}
|
|
21063
|
-
function
|
|
21070
|
+
function ud(e, t, r) {
|
|
21064
21071
|
var p, y;
|
|
21065
21072
|
if (!e.luckysheet_select_save) return;
|
|
21066
21073
|
const a = Re(e);
|
|
@@ -21105,12 +21112,12 @@ function sd(e, t, r) {
|
|
|
21105
21112
|
type: "update"
|
|
21106
21113
|
}
|
|
21107
21114
|
]);
|
|
21108
|
-
const m =
|
|
21109
|
-
m < d &&
|
|
21115
|
+
const m = yf(e, [o])[o], d = 22 * (t.split(",").length || (s == null ? void 0 : s.length)) || 22;
|
|
21116
|
+
m < d && gf(e, {
|
|
21110
21117
|
[String(o)]: d
|
|
21111
|
-
}),
|
|
21118
|
+
}), wl(e, null, void 0);
|
|
21112
21119
|
}
|
|
21113
|
-
function
|
|
21120
|
+
function fd(e, t, r) {
|
|
21114
21121
|
var p, y;
|
|
21115
21122
|
const a = zn(
|
|
21116
21123
|
e,
|
|
@@ -21167,7 +21174,7 @@ function cd(e, t, r) {
|
|
|
21167
21174
|
}
|
|
21168
21175
|
return !0;
|
|
21169
21176
|
}
|
|
21170
|
-
function
|
|
21177
|
+
function Ru(e, t, r, a) {
|
|
21171
21178
|
e.formulaCache.execFunctionExist = [];
|
|
21172
21179
|
for (let n = 0; n < t.length; n += 1)
|
|
21173
21180
|
for (let o = t[n].row[0]; o <= t[n].row[1]; o += 1)
|
|
@@ -21175,10 +21182,10 @@ function qu(e, t, r, a) {
|
|
|
21175
21182
|
e.formulaCache.execFunctionExist.push({ r: o, c: i, i: r });
|
|
21176
21183
|
e.formulaCache.execFunctionExist.reverse(), Vn(e, null, null, null, null, a), e.formulaCache.execFunctionGlobalData = null;
|
|
21177
21184
|
}
|
|
21178
|
-
function
|
|
21179
|
-
t == null && (t = Re(e)), !(r == null && (r = e.luckysheet_select_save, r == null)) && a &&
|
|
21185
|
+
function wl(e, t, r, a = !0) {
|
|
21186
|
+
t == null && (t = Re(e)), !(r == null && (r = e.luckysheet_select_save, r == null)) && a && Ru(e, r, e.currentSheetId, t);
|
|
21180
21187
|
}
|
|
21181
|
-
function
|
|
21188
|
+
function Iu(e, t, r) {
|
|
21182
21189
|
e == null && (e = !0);
|
|
21183
21190
|
const a = (c, s) => {
|
|
21184
21191
|
let u = c[t], f = s[t];
|
|
@@ -21203,9 +21210,9 @@ function Mu(e, t, r) {
|
|
|
21203
21210
|
l[c.originalIndex] = s;
|
|
21204
21211
|
}), { sortedData: i, rowMap: l };
|
|
21205
21212
|
}
|
|
21206
|
-
function
|
|
21213
|
+
function vl(e, t, r, a, n, o, i, l, c) {
|
|
21207
21214
|
var y, g;
|
|
21208
|
-
const { sortedData: s, rowMap: u } =
|
|
21215
|
+
const { sortedData: s, rowMap: u } = Iu(n, a, r);
|
|
21209
21216
|
for (let b = o; b <= i; b += 1)
|
|
21210
21217
|
for (let w = l; w <= c; w += 1) {
|
|
21211
21218
|
const T = s[b - o][w - l];
|
|
@@ -21223,7 +21230,7 @@ function wl(e, t, r, a, n, o, i, l, c) {
|
|
|
21223
21230
|
if (w)
|
|
21224
21231
|
for (let T = 0; T < w.length; T += 1) {
|
|
21225
21232
|
const $ = w[T];
|
|
21226
|
-
$ != null && $.f && ($.f =
|
|
21233
|
+
$ != null && $.f && ($.f = fu($.f, p, p, {
|
|
21227
21234
|
rowMap: f
|
|
21228
21235
|
}));
|
|
21229
21236
|
}
|
|
@@ -21231,7 +21238,7 @@ function wl(e, t, r, a, n, o, i, l, c) {
|
|
|
21231
21238
|
if ((y = d == null ? void 0 : d.calcChain) == null || y.forEach((b) => {
|
|
21232
21239
|
const w = f[b.r];
|
|
21233
21240
|
h.isNil(w) || (b.r = w);
|
|
21234
|
-
}),
|
|
21241
|
+
}), wl(e, t, [{ row: [o, i], column: [l, c] }]), (g = e == null ? void 0 : e.hooks) != null && g.updateCellYdoc) {
|
|
21235
21242
|
const b = [];
|
|
21236
21243
|
for (let w = o; w <= i; w += 1) {
|
|
21237
21244
|
const T = t[w] || [];
|
|
@@ -21247,7 +21254,7 @@ function wl(e, t, r, a, n, o, i, l, c) {
|
|
|
21247
21254
|
b.length > 0 && e.hooks.updateCellYdoc(b);
|
|
21248
21255
|
}
|
|
21249
21256
|
}
|
|
21250
|
-
function
|
|
21257
|
+
function dd(e, t, r = 0) {
|
|
21251
21258
|
var d;
|
|
21252
21259
|
if (e.allowEdit === !1 || e.luckysheet_select_save == null || e.luckysheet_select_save.length > 1)
|
|
21253
21260
|
return;
|
|
@@ -21284,10 +21291,10 @@ function ud(e, t, r = 0) {
|
|
|
21284
21291
|
}
|
|
21285
21292
|
m.push(y);
|
|
21286
21293
|
}
|
|
21287
|
-
f ||
|
|
21294
|
+
f || vl(e, n, m, r, t, s, u, l, c);
|
|
21288
21295
|
}
|
|
21289
21296
|
}
|
|
21290
|
-
function
|
|
21297
|
+
function md(e, t) {
|
|
21291
21298
|
var f, m, d;
|
|
21292
21299
|
if (e.allowEdit === !1) return;
|
|
21293
21300
|
const r = Re(e);
|
|
@@ -21318,7 +21325,7 @@ function fd(e, t) {
|
|
|
21318
21325
|
if (s) break;
|
|
21319
21326
|
u.push(y);
|
|
21320
21327
|
}
|
|
21321
|
-
s ||
|
|
21328
|
+
s || vl(
|
|
21322
21329
|
e,
|
|
21323
21330
|
r,
|
|
21324
21331
|
u,
|
|
@@ -21330,7 +21337,7 @@ function fd(e, t) {
|
|
|
21330
21337
|
c
|
|
21331
21338
|
);
|
|
21332
21339
|
}
|
|
21333
|
-
function
|
|
21340
|
+
function Du(e, t, r, a, n) {
|
|
21334
21341
|
var s;
|
|
21335
21342
|
const o = Re(e);
|
|
21336
21343
|
if (!o) return;
|
|
@@ -21360,13 +21367,13 @@ function Ru(e, t, r, a, n) {
|
|
|
21360
21367
|
}
|
|
21361
21368
|
i.length > 0 && ((s = e == null ? void 0 : e.hooks) != null && s.updateCellYdoc) && e.hooks.updateCellYdoc(i);
|
|
21362
21369
|
}
|
|
21363
|
-
function
|
|
21370
|
+
function _l(e, t, r, a, n) {
|
|
21364
21371
|
var f;
|
|
21365
21372
|
const o = a == null ? void 0 : a.f, i = a == null ? void 0 : a.v;
|
|
21366
21373
|
if (typeof o != "string" || !(/= *SORT\s*\(/i.test(o) || /= *XLOOKUP\s*\(/i.test(o) || /= *SEQUENCE\s*\(/i.test(o)) || !Array.isArray(i)) return !1;
|
|
21367
21374
|
const l = Array.isArray(i[0]) ? i : i.map((m) => [m]), c = l.length, s = c && Array.isArray(l[0]) ? l[0].length : 0;
|
|
21368
21375
|
if (!c || !s) return !1;
|
|
21369
|
-
|
|
21376
|
+
Du(
|
|
21370
21377
|
e,
|
|
21371
21378
|
t,
|
|
21372
21379
|
r,
|
|
@@ -21409,8 +21416,8 @@ function vl(e, t, r, a, n) {
|
|
|
21409
21416
|
}
|
|
21410
21417
|
return !0;
|
|
21411
21418
|
}
|
|
21412
|
-
const
|
|
21413
|
-
function
|
|
21419
|
+
const Ou = 8;
|
|
21420
|
+
function Tl(e, t, r, a) {
|
|
21414
21421
|
var s, u, f, m;
|
|
21415
21422
|
if (!a) return;
|
|
21416
21423
|
const n = Le(e, e.currentSheetId), o = ((s = e.luckysheetfile[n]) == null ? void 0 : s.config) || {};
|
|
@@ -21421,14 +21428,14 @@ function _l(e, t, r, a) {
|
|
|
21421
21428
|
for (let d = 0; d < c.length; d += 1) {
|
|
21422
21429
|
const p = c[d];
|
|
21423
21430
|
if (!p || !((p == null ? void 0 : p.tb) === "2" || Vt(p))) continue;
|
|
21424
|
-
const y = ((f = o.columnlen) == null ? void 0 : f[d]) || e.defaultcollen, g =
|
|
21431
|
+
const y = ((f = o.columnlen) == null ? void 0 : f[d]) || e.defaultcollen, g = Qs(p, a, e, {
|
|
21425
21432
|
r: t,
|
|
21426
21433
|
c: d,
|
|
21427
21434
|
cellWidth: y
|
|
21428
21435
|
});
|
|
21429
21436
|
g && (l = Math.max(
|
|
21430
21437
|
l,
|
|
21431
|
-
g.textHeightAll +
|
|
21438
|
+
g.textHeightAll + Ou
|
|
21432
21439
|
));
|
|
21433
21440
|
}
|
|
21434
21441
|
h.isNil(o.rowlen) && (o.rowlen = {}), l > i ? o.rowlen[t] = l : h.isNil((m = o.rowlen) == null ? void 0 : m[t]) || delete o.rowlen[t], e.config = o;
|
|
@@ -21440,7 +21447,7 @@ function yt(e, t, r = 10) {
|
|
|
21440
21447
|
if (t in a || t === "fs" && Vt(e))
|
|
21441
21448
|
n || (n = "0");
|
|
21442
21449
|
else if (["fc", "bg", "bc"].includes(t))
|
|
21443
|
-
["fc", "bc"].includes(t) && (n || (n = "#000000")), (n == null ? void 0 : n.indexOf("rgba")) > -1 && (n =
|
|
21450
|
+
["fc", "bc"].includes(t) && (n || (n = "#000000")), (n == null ? void 0 : n.indexOf("rgba")) > -1 && (n = cf(n));
|
|
21444
21451
|
else if (t.substring(0, 2) === "bs")
|
|
21445
21452
|
n || (n = "none");
|
|
21446
21453
|
else if (t === "ht" || t === "vt") {
|
|
@@ -21449,14 +21456,14 @@ function yt(e, t, r = 10) {
|
|
|
21449
21456
|
} else t === "fs" ? n || (n = r.toString()) : (t === "tb" || t === "tr") && (n || (n = "0"));
|
|
21450
21457
|
return n;
|
|
21451
21458
|
}
|
|
21452
|
-
function
|
|
21459
|
+
function hd(e, t, r, a) {
|
|
21453
21460
|
if (!e || !e[t])
|
|
21454
21461
|
return null;
|
|
21455
21462
|
const n = e[t][r];
|
|
21456
21463
|
if (n)
|
|
21457
21464
|
return yt(n, a);
|
|
21458
21465
|
}
|
|
21459
|
-
function
|
|
21466
|
+
function Lu(e) {
|
|
21460
21467
|
return e ? e.replace(/\r\n|\r|\n/g, "<br />") : "";
|
|
21461
21468
|
}
|
|
21462
21469
|
function Ro(e) {
|
|
@@ -21477,7 +21484,7 @@ function Ro(e) {
|
|
|
21477
21484
|
}
|
|
21478
21485
|
return r <= 0 ? e : `${e}${")".repeat(r)}`;
|
|
21479
21486
|
}
|
|
21480
|
-
function
|
|
21487
|
+
function Fu(e) {
|
|
21481
21488
|
if (!Array.from(e.childNodes).some(
|
|
21482
21489
|
(o) => !(o.nodeType === Node.ELEMENT_NODE && o.tagName === "SPAN")
|
|
21483
21490
|
)) return;
|
|
@@ -21551,13 +21558,13 @@ function Ke(e, t, r, a) {
|
|
|
21551
21558
|
if (((s = m == null ? void 0 : m.ct) == null ? void 0 : s.t) === "d" && !h.isNil(m.v)) {
|
|
21552
21559
|
const d = String(((u = m == null ? void 0 : m.ct) == null ? void 0 : u.fa) || ""), p = /\b(h|hh|H|HH|s|ss)\b/.test(d) || /AM\/PM/i.test(d);
|
|
21553
21560
|
o = Et(
|
|
21554
|
-
|
|
21561
|
+
Rs(d, p),
|
|
21555
21562
|
m.v
|
|
21556
21563
|
);
|
|
21557
21564
|
} else
|
|
21558
21565
|
o = m.v;
|
|
21559
21566
|
else m && m.ct && m.ct.t === "d" && (o = m.m);
|
|
21560
|
-
m != null && m.ct && br(m.ct) && (a === "v" || a === "m") && (o =
|
|
21567
|
+
m != null && m.ct && br(m.ct) && (a === "v" || a === "m") && (o = Lu((f = m.ct.s[0]) == null ? void 0 : f.v));
|
|
21561
21568
|
}
|
|
21562
21569
|
return o === void 0 && (o = null), o;
|
|
21563
21570
|
}
|
|
@@ -21607,22 +21614,22 @@ function bn(e, t, r, a, n) {
|
|
|
21607
21614
|
const V = m.trim().replace(/,/g, "");
|
|
21608
21615
|
o.m = V, o.v = V, ((_ = o.ct) == null ? void 0 : _.fa) === "@" ? o.ct = { fa: "@", t: "s" } : o.ct = { fa: "General", t: "g" };
|
|
21609
21616
|
} else if (!h.isNil(o.f) && Array.isArray(l))
|
|
21610
|
-
o.v = l, h.isNil(o.ct) ? o.ct = { fa: "General", t: "g" } : (o.ct = { ...o.ct, fa: "General", t: "g" }, delete o.ct.dp), o.m =
|
|
21617
|
+
o.v = l, h.isNil(o.ct) ? o.ct = { fa: "General", t: "g" } : (o.ct = { ...o.ct, fa: "General", t: "g" }, delete o.ct.dp), o.m = Hu(l);
|
|
21611
21618
|
else if (!h.isNil(o.f) && typeof l == "number" && Number.isFinite(l) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(
|
|
21612
21619
|
m
|
|
21613
21620
|
)) {
|
|
21614
21621
|
if (o.v = l, h.isNil(o.ct) ? o.ct = { fa: "General", t: "g" } : ((o.ct.fa == null || o.ct.fa === "") && (o.ct = { ...o.ct, fa: "General" }), (o.ct.t == null || o.ct.t === "") && (o.ct = { ...o.ct, t: "g" })), Xe(l) && /^[\d.,]+$/.test(m.replace(/\s/g, "")) && h.isNil(o.qp) && ((x = o.ct) == null ? void 0 : x.fa) !== "@") {
|
|
21615
|
-
const G = Re(e), U = (N =
|
|
21622
|
+
const G = Re(e), U = (N = ql(o == null ? void 0 : o.f)) == null ? void 0 : N.split(","), se = U == null ? void 0 : U.map((R) => R.trim().toUpperCase()), ve = Ml(se, a, G);
|
|
21616
21623
|
ve && (o.ct.fa = ve, va(ve) ? o.ct.t = "d" : o.ct.t = "n");
|
|
21617
21624
|
}
|
|
21618
21625
|
if (o.v === 1 / 0 || o.v === -1 / 0)
|
|
21619
21626
|
o.m = o.v.toString();
|
|
21620
21627
|
else {
|
|
21621
21628
|
const G = Math.round(o.v * 1e9) / 1e9;
|
|
21622
|
-
if (
|
|
21623
|
-
o.m =
|
|
21629
|
+
if (uc(G))
|
|
21630
|
+
o.m = fc(G);
|
|
21624
21631
|
else if (o.v.toString().toLowerCase().indexOf("e") > -1)
|
|
21625
|
-
o.m =
|
|
21632
|
+
o.m = sc(o.v);
|
|
21626
21633
|
else if (h.isNil(o.ct)) {
|
|
21627
21634
|
const U = It(G);
|
|
21628
21635
|
U != null && (o.m = U[0].toString());
|
|
@@ -21631,7 +21638,7 @@ function bn(e, t, r, a, n) {
|
|
|
21631
21638
|
o.m = U.toString();
|
|
21632
21639
|
}
|
|
21633
21640
|
}
|
|
21634
|
-
if (
|
|
21641
|
+
if (qc(o.f, o.v) && (((O = o.ct) == null ? void 0 : O.fa) === "General" || ((E = o.ct) == null ? void 0 : E.t) === "g" || ((B = o.ct) == null ? void 0 : B.t) === "n" && (!((W = o.ct) != null && W.fa) || ((Q = o.ct) == null ? void 0 : Q.fa) === "General"))) {
|
|
21635
21642
|
const G = /\bNOW\s*\(/i.test(o.f), U = Ko(G);
|
|
21636
21643
|
o.ct = { fa: U, t: "d" };
|
|
21637
21644
|
const se = Math.round(o.v * 1e9) / 1e9;
|
|
@@ -21683,7 +21690,7 @@ function bn(e, t, r, a, n) {
|
|
|
21683
21690
|
R && (o.m = R[0].toString(), [, o.ct, o.v] = R);
|
|
21684
21691
|
}
|
|
21685
21692
|
else if (Xe(l)) {
|
|
21686
|
-
s && !V.includes(",") && (V =
|
|
21693
|
+
s && !V.includes(",") && (V = hf(String(l), s)), l = parseFloat(l), V.includes("%") && !m.includes("%") && (!i || G) && (l /= 100), o != null && o.ct && (o.ct = { ...o.ct, fa: V, t: "n" });
|
|
21687
21694
|
const R = Et(V, l);
|
|
21688
21695
|
if (R === l) {
|
|
21689
21696
|
const C = nr(
|
|
@@ -21697,7 +21704,7 @@ function bn(e, t, r, a, n) {
|
|
|
21697
21704
|
}
|
|
21698
21705
|
} else
|
|
21699
21706
|
n.m ? o.m = n.m : o.m = R.toString(), o.v = l;
|
|
21700
|
-
} else if (
|
|
21707
|
+
} else if (hc(V, Rt(e).currencyDetail) && typeof l == "string" && !m.startsWith("=") && !Xe(l))
|
|
21701
21708
|
o.v = m, o.m = m, o.ct = { fa: V, t: "s" };
|
|
21702
21709
|
else {
|
|
21703
21710
|
const R = Et(V, l);
|
|
@@ -21743,7 +21750,7 @@ function bn(e, t, r, a, n) {
|
|
|
21743
21750
|
}
|
|
21744
21751
|
h.isNil(o.f) || (c ? (o.ct || (o.ct = { fa: "General", t: "g" }), o.ct.s = c) : o != null && o.ct && h.isPlainObject(n) && Object.prototype.hasOwnProperty.call(n, "ct") && delete o.ct.s), a[t][r] = o, e.luckysheet_selection_range && (e.luckysheet_selection_range = []);
|
|
21745
21752
|
}
|
|
21746
|
-
function
|
|
21753
|
+
function pd(e, t, r, a) {
|
|
21747
21754
|
let n = Ke(e, t, r, "m");
|
|
21748
21755
|
if (h.isNil(n) && (n = Ke(e, t, r, a), h.isNil(n))) {
|
|
21749
21756
|
const o = Ke(e, t, r, "ct");
|
|
@@ -21782,7 +21789,7 @@ function Qt(e, t, r, a) {
|
|
|
21782
21789
|
}
|
|
21783
21790
|
return null;
|
|
21784
21791
|
}
|
|
21785
|
-
function
|
|
21792
|
+
function Bu(e, t, r, a, n, o, i, l, c) {
|
|
21786
21793
|
const s = t.r, u = t.r + t.rs - 1, f = t.c, m = t.c + t.cs - 1;
|
|
21787
21794
|
let d = !1;
|
|
21788
21795
|
if (r[0] = Math.min(r[0], r[1]), a[0] = Math.min(a[0], a[1]), r[0] <= f && r[1] >= m && a[0] <= s && a[1] >= u || !(r[1] < f || r[0] > m) && !(a[1] < s || a[0] > u)) {
|
|
@@ -21810,7 +21817,7 @@ function Yn(e, t, r, a, n, o, i, l) {
|
|
|
21810
21817
|
const d = s[m], p = c[d];
|
|
21811
21818
|
if (d in f)
|
|
21812
21819
|
continue;
|
|
21813
|
-
const y =
|
|
21820
|
+
const y = Bu(
|
|
21814
21821
|
e,
|
|
21815
21822
|
p,
|
|
21816
21823
|
t,
|
|
@@ -21826,22 +21833,22 @@ function Yn(e, t, r, a, n, o, i, l) {
|
|
|
21826
21833
|
}
|
|
21827
21834
|
return [t, r, n, o, i, l];
|
|
21828
21835
|
}
|
|
21829
|
-
function
|
|
21836
|
+
function $l(e) {
|
|
21830
21837
|
e.formulaCache.selectingRangeIndex === -1 && (e.formulaRangeSelect = void 0);
|
|
21831
21838
|
}
|
|
21832
21839
|
function Yt(e) {
|
|
21833
|
-
|
|
21840
|
+
$l(e), e.luckysheetCellUpdate = [], e.formulaRangeHighlight = [], e.functionHint = null, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, e.formulaCache.rangeSelectionActive = null, e.formulaCache.keyboardRangeSelectionLock = !1, e.formulaCache.formulaEditorOwner = null;
|
|
21834
21841
|
}
|
|
21835
|
-
function
|
|
21842
|
+
function Pu(e) {
|
|
21836
21843
|
return typeof e == "number" ? Number.isFinite(e) : typeof e != "string" ? !1 : /^[\d.,]+$/.test(e.replace(/\s/g, ""));
|
|
21837
21844
|
}
|
|
21838
|
-
function
|
|
21845
|
+
function Hu(e) {
|
|
21839
21846
|
if (!Array.isArray(e) || e.length === 0)
|
|
21840
21847
|
return "";
|
|
21841
21848
|
const t = e[0];
|
|
21842
21849
|
return Array.isArray(t) && e.every((r) => Array.isArray(r)) ? e.map((r) => r.map((a) => String(a ?? "")).join(", ")).join("; ") : e.map((r) => String(r ?? "")).join(", ");
|
|
21843
21850
|
}
|
|
21844
|
-
function
|
|
21851
|
+
function gd(e, t, r, a, n, o) {
|
|
21845
21852
|
var i, l, c, s, u, f, m, d, p, y, g, b, w, T, $, _, x, N, O, E, B, W, Q, Y, J;
|
|
21846
21853
|
try {
|
|
21847
21854
|
if (e.allowEdit === !1 || e.isFlvReadOnly) return;
|
|
@@ -21867,8 +21874,8 @@ function hd(e, t, r, a, n, o) {
|
|
|
21867
21874
|
const C = Le(e, e.currentSheetId), { dataVerification: A } = e.luckysheetfile[C], P = e.luckysheetfile[C];
|
|
21868
21875
|
if (!h.isNil(A)) {
|
|
21869
21876
|
const M = A[`${t}_${r}`];
|
|
21870
|
-
if (!h.isNil(M) && M.prohibitInput && !
|
|
21871
|
-
const ee =
|
|
21877
|
+
if (!h.isNil(M) && M.prohibitInput && !yl(e, M, V)) {
|
|
21878
|
+
const ee = bl(e, M);
|
|
21872
21879
|
Yt(e), e.warnDialog = ee;
|
|
21873
21880
|
return;
|
|
21874
21881
|
}
|
|
@@ -21889,7 +21896,7 @@ function hd(e, t, r, a, n, o) {
|
|
|
21889
21896
|
else if (me) {
|
|
21890
21897
|
h.isPlainObject(v) || (v = {}), v || (v = {});
|
|
21891
21898
|
const M = v.fs || 10;
|
|
21892
|
-
v.ct || (v.ct = {}, v.ct.fa = "General", v.tb = "1"), v.ct.t = "inlineStr",
|
|
21899
|
+
v.ct || (v.ct = {}, v.ct.fa = "General", v.tb = "1"), v.ct.t = "inlineStr", Fu(a), v.ct.s = Bs(
|
|
21893
21900
|
a.querySelectorAll("span"),
|
|
21894
21901
|
v
|
|
21895
21902
|
), delete v.fs, delete v.f, delete v._formulaEditHtml, delete v.v, delete v.m, v.fs = M, ue && (v.ct.s = [
|
|
@@ -21993,8 +22000,8 @@ function hd(e, t, r, a, n, o) {
|
|
|
21993
22000
|
v: he(n.f),
|
|
21994
22001
|
fs: n.fs || 10
|
|
21995
22002
|
}
|
|
21996
|
-
], ie(n)) : ($ = n.ct) == null || delete $.s,
|
|
21997
|
-
const ee = (_ =
|
|
22003
|
+
], ie(n)) : ($ = n.ct) == null || delete $.s, Pu(n.v)) {
|
|
22004
|
+
const ee = (_ = ql(n == null ? void 0 : n.f)) == null ? void 0 : _.split(","), ye = ee == null ? void 0 : ee.map((ge) => ge.trim().toUpperCase()), xe = Ml(ye, Ce, R);
|
|
21998
22005
|
if (xe) {
|
|
21999
22006
|
const ge = typeof n.v == "number" ? n.v : Number(String(n.v).replace(/,/g, ""));
|
|
22000
22007
|
n.m = Number.isFinite(ge) ? String(Et(xe, ge)) : String(n.v), n.ct = {
|
|
@@ -22050,7 +22057,7 @@ function hd(e, t, r, a, n, o) {
|
|
|
22050
22057
|
} : typeof n == "object" && !n.tb && (n.tb = "1");
|
|
22051
22058
|
const je = Array.isArray((W = n == null ? void 0 : n.v) == null ? void 0 : W[0]);
|
|
22052
22059
|
try {
|
|
22053
|
-
if (je &&
|
|
22060
|
+
if (je && _l(e, t, r, n, Ce)) {
|
|
22054
22061
|
if (Yt(e), e.hooks.afterUpdateCell) {
|
|
22055
22062
|
const M = h.cloneDeep(Ce[t][r]);
|
|
22056
22063
|
setTimeout(
|
|
@@ -22067,13 +22074,13 @@ function hd(e, t, r, a, n, o) {
|
|
|
22067
22074
|
}
|
|
22068
22075
|
const Me = `${t}_${r}`, pe = (Q = P.hyperlink) == null ? void 0 : Q[Me];
|
|
22069
22076
|
if (typeof n == "object" && n && ((Y = n.ct) == null ? void 0 : Y.t) === "inlineStr") {
|
|
22070
|
-
const M =
|
|
22077
|
+
const M = Os(n);
|
|
22071
22078
|
P.hyperlink || (P.hyperlink = {}), M.length === 0 ? delete P.hyperlink[Me] : P.hyperlink[Me] = M.length === 1 ? M[0] : M, typeof n == "object" && n && "hl" in n && delete n.hl;
|
|
22072
22079
|
} else
|
|
22073
22080
|
pe && P.hyperlink && delete P.hyperlink[Me], typeof n == "object" && n && "hl" in n && delete n.hl;
|
|
22074
22081
|
bn(e, t, r, Ce, n), Yt(e);
|
|
22075
22082
|
const D = e.luckysheetfile[Le(e, e.currentSheetId)].config || {}, I = (L == null ? void 0 : L.tb) === "2" && !h.isNil(L == null ? void 0 : L.v) && (L == null ? void 0 : L.v) !== "" || Vt(L), j = Ce[t][r], z = (j == null ? void 0 : j.tb) === "2" && !h.isNil(j == null ? void 0 : j.v) && (j == null ? void 0 : j.v) !== "" || Vt(j);
|
|
22076
|
-
if ((I || z) && !((J = D.customHeight) != null && J[t]) && o &&
|
|
22083
|
+
if ((I || z) && !((J = D.customHeight) != null && J[t]) && o && Tl(e, t, Ce, o), e.hooks.afterUpdateCell) {
|
|
22077
22084
|
const M = h.cloneDeep(R[t][r]), { afterUpdateCell: ee } = e.hooks;
|
|
22078
22085
|
setTimeout(() => {
|
|
22079
22086
|
ee == null || ee(t, r, L, M);
|
|
@@ -22084,15 +22091,15 @@ function hd(e, t, r, a, n, o) {
|
|
|
22084
22091
|
console.error(H), Yt(e);
|
|
22085
22092
|
}
|
|
22086
22093
|
}
|
|
22087
|
-
function
|
|
22094
|
+
function zu(e, t, r, a) {
|
|
22088
22095
|
const n = Re(e, a);
|
|
22089
22096
|
return h.isNil(t) || h.isNil(r) || !n || !n[t] || !n[t][r] ? null : n[t][r];
|
|
22090
22097
|
}
|
|
22091
22098
|
function Aa(e, t, r, a, n) {
|
|
22092
22099
|
let o;
|
|
22093
|
-
return h.isNil(n) ? o =
|
|
22100
|
+
return h.isNil(n) ? o = zu(e, t, r, a) : o = n[t][r], h.isNil(o) ? null : o.f;
|
|
22094
22101
|
}
|
|
22095
|
-
function
|
|
22102
|
+
function Uu(e) {
|
|
22096
22103
|
const t = h.cloneDeep(e.luckysheet_select_save), r = [];
|
|
22097
22104
|
if (!t) return r;
|
|
22098
22105
|
for (let a = 0; a < t.length; a += 1) {
|
|
@@ -22104,8 +22111,8 @@ function Hu(e) {
|
|
|
22104
22111
|
}
|
|
22105
22112
|
return r;
|
|
22106
22113
|
}
|
|
22107
|
-
function
|
|
22108
|
-
t = t ||
|
|
22114
|
+
function Wu(e, t) {
|
|
22115
|
+
t = t || Uu(e);
|
|
22109
22116
|
const r = [];
|
|
22110
22117
|
return t.forEach((a) => {
|
|
22111
22118
|
const n = a.row, o = a.column;
|
|
@@ -22144,7 +22151,7 @@ function zn(e, t) {
|
|
|
22144
22151
|
vt(t) && r.push(xn(e, t));
|
|
22145
22152
|
return r;
|
|
22146
22153
|
}
|
|
22147
|
-
function
|
|
22154
|
+
function Vu(e) {
|
|
22148
22155
|
const t = (e ?? "").split(",");
|
|
22149
22156
|
for (const r of t) {
|
|
22150
22157
|
const a = String(r).trim();
|
|
@@ -22161,11 +22168,11 @@ function Uu(e) {
|
|
|
22161
22168
|
}
|
|
22162
22169
|
return !1;
|
|
22163
22170
|
}
|
|
22164
|
-
function
|
|
22171
|
+
function yd(e, t) {
|
|
22165
22172
|
const r = (t ?? "").trim();
|
|
22166
|
-
return r === "" ? !0 :
|
|
22173
|
+
return r === "" ? !0 : Vu(r) ? !1 : zn(e, r).length > 0;
|
|
22167
22174
|
}
|
|
22168
|
-
function
|
|
22175
|
+
function bd(e, t, r) {
|
|
22169
22176
|
if (!h.isEmpty(e.luckysheetCellUpdate)) {
|
|
22170
22177
|
const o = window.getSelection();
|
|
22171
22178
|
if (!o || o.rangeCount === 0) return !1;
|
|
@@ -22197,7 +22204,7 @@ function gd(e, t, r) {
|
|
|
22197
22204
|
g.textContent && g.textContent.length > 0 && i.intersectsNode(g) && p.push(g);
|
|
22198
22205
|
}), p.length === 0 && (u && p.push(u), f && f !== u && p.push(f)), p.length === 0 ? !1 : h.every(p, (y) => d(y));
|
|
22199
22206
|
}
|
|
22200
|
-
const a =
|
|
22207
|
+
const a = Wu(e), n = Re(e);
|
|
22201
22208
|
return a.every(({ r: o, c: i }) => {
|
|
22202
22209
|
var c;
|
|
22203
22210
|
const l = (c = n == null ? void 0 : n[o]) == null ? void 0 : c[i];
|
|
@@ -22231,7 +22238,7 @@ function Sa(e, t, r, a = !0) {
|
|
|
22231
22238
|
function aa(e, t, r, a, n) {
|
|
22232
22239
|
var u;
|
|
22233
22240
|
let o = {};
|
|
22234
|
-
const i = [], l = n ??
|
|
22241
|
+
const i = [], l = n ?? gl(e), c = Au(r, a, l), s = (u = t == null ? void 0 : t[r]) == null ? void 0 : u[a];
|
|
22235
22242
|
if (!s) {
|
|
22236
22243
|
if (!c)
|
|
22237
22244
|
return {};
|
|
@@ -22252,7 +22259,7 @@ function aa(e, t, r, a, n) {
|
|
|
22252
22259
|
}
|
|
22253
22260
|
return o = h.assign(o, Sa(s, i, c)), Do(o, c), o;
|
|
22254
22261
|
}
|
|
22255
|
-
function
|
|
22262
|
+
function Gu(e) {
|
|
22256
22263
|
const t = /* @__PURE__ */ new Set(), r = {
|
|
22257
22264
|
color: e.color || "#000000",
|
|
22258
22265
|
fontFamily: e.fontFamily || "Arial",
|
|
@@ -22262,7 +22269,7 @@ function Wu(e) {
|
|
|
22262
22269
|
}, a = e.backgroundColor || e.background;
|
|
22263
22270
|
return a && a !== "transparent" && a !== "rgba(0, 0, 0, 0)" && (r.backgroundColor = a), typeof e.textDecoration == "string" && e.textDecoration.split(/\s+/).filter(Boolean).forEach((n) => t.add(n)), e.borderBottom && (t.add("underline"), r.textDecorationSkipInk = "none"), t.size > 0 && (r.textDecoration = Array.from(t).join(" ")), r;
|
|
22264
22271
|
}
|
|
22265
|
-
function
|
|
22272
|
+
function Yu(e, t) {
|
|
22266
22273
|
const a = e.replace(/\r\n/g, `
|
|
22267
22274
|
`).replace(/\r/g, `
|
|
22268
22275
|
`).split(`
|
|
@@ -22272,7 +22279,7 @@ function Vu(e, t) {
|
|
|
22272
22279
|
return n.length > 0 && (i += `<span style='${t}'>${n}</span>`), o < a.length - 1 && (i += `<span style='${t}'><br></span>`), i;
|
|
22273
22280
|
}).join("");
|
|
22274
22281
|
}
|
|
22275
|
-
function
|
|
22282
|
+
function Cl(e, t, r, a) {
|
|
22276
22283
|
const n = Ke(e, t, r, "ct");
|
|
22277
22284
|
if (br(n)) {
|
|
22278
22285
|
const o = n.s;
|
|
@@ -22283,7 +22290,7 @@ function $l(e, t, r, a) {
|
|
|
22283
22290
|
const s = {
|
|
22284
22291
|
...a != null && a.useSemanticMarkup ? a.inheritedStyle ?? {} : {},
|
|
22285
22292
|
...Sa(c)
|
|
22286
|
-
}, u = a != null && a.useSemanticMarkup ?
|
|
22293
|
+
}, u = a != null && a.useSemanticMarkup ? Gu(s) : s;
|
|
22287
22294
|
u.fontWeight || (u.fontWeight = "400"), u.fontStyle || (u.fontStyle = "normal"), u.fontSize || (u.fontSize = "11pt"), u.fontFamily || (u.fontFamily = "Arial");
|
|
22288
22295
|
const { link: f } = c, m = c, d = Object.prototype.hasOwnProperty.call(
|
|
22289
22296
|
m,
|
|
@@ -22302,7 +22309,7 @@ function $l(e, t, r, a) {
|
|
|
22302
22309
|
)}'${w ? " data-link-plain='1'" : ""}` : "";
|
|
22303
22310
|
if (a != null && a.isRichTextCopy)
|
|
22304
22311
|
if (a != null && a.useSemanticMarkup)
|
|
22305
|
-
i +=
|
|
22312
|
+
i += Yu(c.v, b);
|
|
22306
22313
|
else {
|
|
22307
22314
|
const $ = c.v.replace(/\r\n/g, "<br>").replace(/\n/g, "<br>");
|
|
22308
22315
|
i += `<span class="luckysheet-input-span" index='${l}' style='${b}'${T}>${$}</span>`;
|
|
@@ -22315,7 +22322,7 @@ function $l(e, t, r, a) {
|
|
|
22315
22322
|
}
|
|
22316
22323
|
return "";
|
|
22317
22324
|
}
|
|
22318
|
-
function
|
|
22325
|
+
function wd(e, t, r) {
|
|
22319
22326
|
let a = "";
|
|
22320
22327
|
if (e.toString().indexOf("pt") > -1) {
|
|
22321
22328
|
const o = parseFloat(e);
|
|
@@ -22327,7 +22334,7 @@ function yd(e, t, r) {
|
|
|
22327
22334
|
let n = 0;
|
|
22328
22335
|
return t = t.toLowerCase(), t === "double" ? n = 2 : t === "dotted" ? a === "Medium" || a === "Thick" ? n = 3 : n = 10 : t === "dashed" ? a === "Medium" || a === "Thick" ? n = 4 : n = 9 : t === "solid" && (a === "Medium" ? n = 8 : a === "Thick" ? n = 13 : n = 1), [n, r];
|
|
22329
22336
|
}
|
|
22330
|
-
function
|
|
22337
|
+
function ju(e, t, r) {
|
|
22331
22338
|
if (t == null && e.luckysheet_select_save && ([t] = e.luckysheet_select_save), !t) return [];
|
|
22332
22339
|
if (t.row == null || t.row.length === 0)
|
|
22333
22340
|
return [];
|
|
@@ -22344,12 +22351,12 @@ function Gu(e, t, r) {
|
|
|
22344
22351
|
}
|
|
22345
22352
|
return o;
|
|
22346
22353
|
}
|
|
22347
|
-
function
|
|
22354
|
+
function vd(e, t, r) {
|
|
22348
22355
|
var o;
|
|
22349
22356
|
const a = Re(e), n = (o = a == null ? void 0 : a[t]) == null ? void 0 : o[r];
|
|
22350
|
-
(n == null ? void 0 : n.f) != null && String(n.f).trim() !== "" &&
|
|
22357
|
+
(n == null ? void 0 : n.f) != null && String(n.f).trim() !== "" && eu(e), e.luckysheetCellUpdate = [t, r];
|
|
22351
22358
|
}
|
|
22352
|
-
function
|
|
22359
|
+
function Xu(e, t) {
|
|
22353
22360
|
if (!t || !t.row || t.row.length === 0) return [];
|
|
22354
22361
|
const r = [], a = Re(e);
|
|
22355
22362
|
if (!a) return [];
|
|
@@ -22393,7 +22400,7 @@ function ka(e) {
|
|
|
22393
22400
|
...n != null && typeof n == "object" ? { ct: n } : {}
|
|
22394
22401
|
} : null;
|
|
22395
22402
|
}
|
|
22396
|
-
function
|
|
22403
|
+
function _d(e) {
|
|
22397
22404
|
var i;
|
|
22398
22405
|
const t = Le(e, e.currentSheetId);
|
|
22399
22406
|
if (t == null) return;
|
|
@@ -22422,7 +22429,7 @@ function wd(e) {
|
|
|
22422
22429
|
}
|
|
22423
22430
|
}), (i = e == null ? void 0 : e.hooks) != null && i.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
|
|
22424
22431
|
}
|
|
22425
|
-
function
|
|
22432
|
+
function Td(e) {
|
|
22426
22433
|
var l, c;
|
|
22427
22434
|
const t = Le(e, e.currentSheetId);
|
|
22428
22435
|
if (t == null) return;
|
|
@@ -22451,7 +22458,7 @@ function vd(e) {
|
|
|
22451
22458
|
}
|
|
22452
22459
|
}), (c = e == null ? void 0 : e.hooks) != null && c.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
|
|
22453
22460
|
}
|
|
22454
|
-
function
|
|
22461
|
+
function $d(e) {
|
|
22455
22462
|
var l;
|
|
22456
22463
|
const t = Le(e, e.currentSheetId);
|
|
22457
22464
|
if (t == null) return;
|
|
@@ -22480,7 +22487,7 @@ function _d(e) {
|
|
|
22480
22487
|
}
|
|
22481
22488
|
}), (l = e == null ? void 0 : e.hooks) != null && l.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
|
|
22482
22489
|
}
|
|
22483
|
-
class
|
|
22490
|
+
class Zu {
|
|
22484
22491
|
static writeHtml(t) {
|
|
22485
22492
|
var r;
|
|
22486
22493
|
try {
|
|
@@ -22498,7 +22505,7 @@ class ju {
|
|
|
22498
22505
|
}
|
|
22499
22506
|
}
|
|
22500
22507
|
}
|
|
22501
|
-
function
|
|
22508
|
+
function Cd(e, t, r, a, n) {
|
|
22502
22509
|
var Q, Y, J, H, X;
|
|
22503
22510
|
const o = Re(e);
|
|
22504
22511
|
if (!o) return;
|
|
@@ -22538,7 +22545,7 @@ function Kt(e, t, r) {
|
|
|
22538
22545
|
const a = Re(e);
|
|
22539
22546
|
(n = a == null ? void 0 : a[t]) != null && n[r] && delete a[t][r].error;
|
|
22540
22547
|
}
|
|
22541
|
-
function
|
|
22548
|
+
function Ku(e) {
|
|
22542
22549
|
const t = e.hooks;
|
|
22543
22550
|
!(t != null && t.dataVerificationChange) && !(t != null && t.conditionFormatChange) && !(t != null && t.hyperlinkChange) || requestAnimationFrame(() => {
|
|
22544
22551
|
requestAnimationFrame(() => {
|
|
@@ -22547,10 +22554,10 @@ function Xu(e) {
|
|
|
22547
22554
|
});
|
|
22548
22555
|
});
|
|
22549
22556
|
}
|
|
22550
|
-
const
|
|
22557
|
+
const Nd = {
|
|
22551
22558
|
isPasteAction: !1,
|
|
22552
22559
|
isPasteValuesOnly: !1
|
|
22553
|
-
},
|
|
22560
|
+
}, Qu = 14e5;
|
|
22554
22561
|
function Un(e, t, r) {
|
|
22555
22562
|
var u, f, m, d;
|
|
22556
22563
|
const { scrollLeft: a, scrollTop: n } = e, o = e.cellmainHeight, i = e.cellmainWidth, l = Le(e, e.currentSheetId), c = l == null ? null : e.luckysheetfile[l];
|
|
@@ -22575,7 +22582,7 @@ function Un(e, t, r) {
|
|
|
22575
22582
|
}
|
|
22576
22583
|
}
|
|
22577
22584
|
}
|
|
22578
|
-
function
|
|
22585
|
+
function Ju(e, t, r, a, n) {
|
|
22579
22586
|
const o = e.visibledatarow[r], i = t - 1 === -1 ? 0 : e.visibledatarow[t - 1], l = e.visibledatacolumn[n], c = a - 1 === -1 ? 0 : e.visibledatacolumn[a - 1];
|
|
22580
22587
|
return h.isNumber(o) && h.isNumber(i) && h.isNumber(l) && h.isNumber(c) ? {
|
|
22581
22588
|
left: c,
|
|
@@ -22584,7 +22591,7 @@ function Ku(e, t, r, a, n) {
|
|
|
22584
22591
|
height: o - i - 1
|
|
22585
22592
|
} : null;
|
|
22586
22593
|
}
|
|
22587
|
-
function
|
|
22594
|
+
function ef(e, t) {
|
|
22588
22595
|
var c;
|
|
22589
22596
|
const r = Math.min(t.row[0], t.row[1]), a = Math.max(t.row[0], t.row[1]), n = Math.min(t.column[0], t.column[1]), o = Math.max(t.column[0], t.column[1]);
|
|
22590
22597
|
if (r === a && n === o)
|
|
@@ -22605,7 +22612,7 @@ function Oo(e, t) {
|
|
|
22605
22612
|
e.primaryCellActive = null;
|
|
22606
22613
|
return;
|
|
22607
22614
|
}
|
|
22608
|
-
if (
|
|
22615
|
+
if (ef(e, a)) {
|
|
22609
22616
|
e.primaryCellActive = null;
|
|
22610
22617
|
return;
|
|
22611
22618
|
}
|
|
@@ -22616,7 +22623,7 @@ function Oo(e, t) {
|
|
|
22616
22623
|
e.primaryCellActive = { r: o, c: i };
|
|
22617
22624
|
}
|
|
22618
22625
|
}
|
|
22619
|
-
function
|
|
22626
|
+
function xd(e, t = !0) {
|
|
22620
22627
|
const r = e.luckysheet_select_save;
|
|
22621
22628
|
if (!(r != null && r.length)) return !1;
|
|
22622
22629
|
const a = r[r.length - 1], n = a.row[0], o = a.row[1], i = a.column[0], l = a.column[1];
|
|
@@ -22628,10 +22635,10 @@ function Cd(e, t = !0) {
|
|
|
22628
22635
|
let g, b;
|
|
22629
22636
|
return t ? d < s ? (g = d + 1, b = p) : p < f ? (g = c, b = p + 1) : (g = c, b = u) : d > c ? (g = d - 1, b = p) : p > u ? (g = s, b = p - 1) : (g = s, b = f), a.row_focus = g, a.column_focus = b, Jt(e, r), !0;
|
|
22630
22637
|
}
|
|
22631
|
-
function
|
|
22638
|
+
function Ad(e, t, r) {
|
|
22632
22639
|
e.primaryCellActive = { r: t, c: r };
|
|
22633
22640
|
}
|
|
22634
|
-
function
|
|
22641
|
+
function Sd(e, t, r) {
|
|
22635
22642
|
const a = e.luckysheet_select_save, n = a == null ? void 0 : a[a.length - 1];
|
|
22636
22643
|
if (!(n != null && n.row) || n.row.length < 2 || !n.column || n.column.length < 2) {
|
|
22637
22644
|
e.luckysheet_select_save = [
|
|
@@ -22654,7 +22661,7 @@ function xd(e, t, r) {
|
|
|
22654
22661
|
}
|
|
22655
22662
|
], Jt(e, e.luckysheet_select_save));
|
|
22656
22663
|
}
|
|
22657
|
-
function
|
|
22664
|
+
function kd(e) {
|
|
22658
22665
|
var t, r, a, n;
|
|
22659
22666
|
return (r = (t = e == null ? void 0 : e[0]) == null ? void 0 : t[0]) != null && r.mc && !h.isNil((a = e[0][0].mc) == null ? void 0 : a.rs) && !h.isNil((n = e[0][0].mc) == null ? void 0 : n.cs) ? [
|
|
22660
22667
|
{
|
|
@@ -22681,13 +22688,13 @@ function Jt(e, t) {
|
|
|
22681
22688
|
}
|
|
22682
22689
|
return Oo(e, t), t;
|
|
22683
22690
|
}
|
|
22684
|
-
function
|
|
22691
|
+
function Ed(e, t, r) {
|
|
22685
22692
|
const a = e || {};
|
|
22686
22693
|
for (let n = t; n <= r; n += 1)
|
|
22687
22694
|
n in a || (a[n] = 0);
|
|
22688
22695
|
return a;
|
|
22689
22696
|
}
|
|
22690
|
-
function
|
|
22697
|
+
function qd(e) {
|
|
22691
22698
|
const t = Object.keys(e).map(Number);
|
|
22692
22699
|
t.sort((n, o) => n - o);
|
|
22693
22700
|
let r, a = [];
|
|
@@ -22699,7 +22706,7 @@ function kd(e) {
|
|
|
22699
22706
|
r = [], r.push([t[0]]);
|
|
22700
22707
|
return r;
|
|
22701
22708
|
}
|
|
22702
|
-
function
|
|
22709
|
+
function tf(e, t) {
|
|
22703
22710
|
return e.row[0] === t.row[0] && e.row[1] === t.row[1] && e.column[0] === t.column[0] && e.column[1] === t.column[1];
|
|
22704
22711
|
}
|
|
22705
22712
|
function Lo(e) {
|
|
@@ -22707,12 +22714,12 @@ function Lo(e) {
|
|
|
22707
22714
|
const t = h.cloneDeep(e);
|
|
22708
22715
|
return delete t.cellrange, JSON.stringify(t);
|
|
22709
22716
|
}
|
|
22710
|
-
function
|
|
22717
|
+
function Md(e, t) {
|
|
22711
22718
|
var F, te;
|
|
22712
22719
|
const r = e.config;
|
|
22713
22720
|
if (r.merge == null && (r.merge = {}), !t) return;
|
|
22714
22721
|
const a = t.HasMC, n = t.dataSheetId, o = t.copyRange[0].row[0], i = t.copyRange[0].row[1], l = t.copyRange[0].column[0], c = t.copyRange[0].column[1], s = h.cloneDeep(
|
|
22715
|
-
|
|
22722
|
+
ju(
|
|
22716
22723
|
e,
|
|
22717
22724
|
{ row: [o, i], column: [l, c] },
|
|
22718
22725
|
n
|
|
@@ -22739,7 +22746,7 @@ function Ed(e, t) {
|
|
|
22739
22746
|
}
|
|
22740
22747
|
const b = Math.ceil((m - f + 1) / y), w = Math.ceil((p - d + 1) / g), T = Re(e);
|
|
22741
22748
|
if (T == null) return;
|
|
22742
|
-
const $ = [], _ = [], x = T[0].length, N = T.length, O =
|
|
22749
|
+
const $ = [], _ = [], x = T[0].length, N = T.length, O = Nl(e, n), E = h.cloneDeep(
|
|
22743
22750
|
e.luckysheetfile[Le(e, n)].dataVerification
|
|
22744
22751
|
) || {};
|
|
22745
22752
|
let B = null, W = 0, Q = 0, Y = 0, J = 0;
|
|
@@ -22848,7 +22855,7 @@ function Ed(e, t) {
|
|
|
22848
22855
|
const U = ie[G].cellrange;
|
|
22849
22856
|
let se = [];
|
|
22850
22857
|
for (let ve = 0; ve < U.length; ve += 1) {
|
|
22851
|
-
const R =
|
|
22858
|
+
const R = Su(
|
|
22852
22859
|
U[ve],
|
|
22853
22860
|
{ row: [o, i], column: [l, c] },
|
|
22854
22861
|
{ row: [f, m], column: [d, p] },
|
|
@@ -22863,7 +22870,7 @@ function Ed(e, t) {
|
|
|
22863
22870
|
if (C >= 0) {
|
|
22864
22871
|
const A = h.cloneDeep(V[C]);
|
|
22865
22872
|
Array.isArray(A.cellrange) || (A.cellrange = []), A.cellrange.some(
|
|
22866
|
-
(P) =>
|
|
22873
|
+
(P) => tf(P, ve)
|
|
22867
22874
|
) || A.cellrange.push({ ...ve }), V[C] = A;
|
|
22868
22875
|
} else {
|
|
22869
22876
|
const A = h.cloneDeep(ie[G]);
|
|
@@ -22874,9 +22881,9 @@ function Ed(e, t) {
|
|
|
22874
22881
|
H.luckysheet_conditionformat_save = V;
|
|
22875
22882
|
}
|
|
22876
22883
|
}
|
|
22877
|
-
|
|
22884
|
+
Ku(e);
|
|
22878
22885
|
}
|
|
22879
|
-
function
|
|
22886
|
+
function Rd(e, t) {
|
|
22880
22887
|
e == null && (e = t.luckysheet_selection_range), e = JSON.parse(JSON.stringify(e));
|
|
22881
22888
|
}
|
|
22882
22889
|
function St(e, t, r, a) {
|
|
@@ -22987,7 +22994,7 @@ function zt(e, t, r, a) {
|
|
|
22987
22994
|
l = o;
|
|
22988
22995
|
return [i, l];
|
|
22989
22996
|
}
|
|
22990
|
-
function
|
|
22997
|
+
function Id(e, t, r, a) {
|
|
22991
22998
|
var y;
|
|
22992
22999
|
const n = Re(e);
|
|
22993
23000
|
if (!n) return;
|
|
@@ -23065,7 +23072,7 @@ function Md(e, t, r, a) {
|
|
|
23065
23072
|
}, Un(e, s, d);
|
|
23066
23073
|
}
|
|
23067
23074
|
}
|
|
23068
|
-
function
|
|
23075
|
+
function Dd(e, t, r, a) {
|
|
23069
23076
|
let n, o, i, l;
|
|
23070
23077
|
const c = Re(e);
|
|
23071
23078
|
if (!h.isNil(c) && !h.isNil(e.luckysheet_select_save)) {
|
|
@@ -23273,9 +23280,9 @@ function Nt(e, t) {
|
|
|
23273
23280
|
13: "Thick"
|
|
23274
23281
|
}[e.toString()], e.indexOf("Medium") > -1 ? r += "1pt " : e === "Thick" ? r += "1.5pt " : r += "0.5pt ", e === "Hair" ? r += "double " : e.indexOf("DashDotDot") > -1 ? r += "dotted " : e.indexOf("DashDot") > -1 ? r += "dashed " : e.indexOf("Dotted") > -1 ? r += "dotted " : e.indexOf("Dashed") > -1 ? r += "dashed " : r += "solid ", `${r + t};`;
|
|
23275
23282
|
}
|
|
23276
|
-
function
|
|
23283
|
+
function nf(e, t, r, a) {
|
|
23277
23284
|
var w, T;
|
|
23278
|
-
const n = (a == null ? void 0 : a.includeCellMetadata) ?? !1, o = (a == null ? void 0 : a.preferRichText) ?? !1, i = (a == null ? void 0 : a.respectFilterHiddenRows) ?? !1, l =
|
|
23285
|
+
const n = (a == null ? void 0 : a.includeCellMetadata) ?? !1, o = (a == null ? void 0 : a.preferRichText) ?? !1, i = (a == null ? void 0 : a.respectFilterHiddenRows) ?? !1, l = gl(e), c = /* @__PURE__ */ new Set();
|
|
23279
23286
|
i && t === e.currentSheetId && !h.isNil(e.luckysheet_filter_save) && !h.isEmpty(e.filter) && Object.values(e.filter || {}).forEach(($) => {
|
|
23280
23287
|
const _ = $ == null ? void 0 : $.rowhidden;
|
|
23281
23288
|
_ && Object.keys(_).forEach((x) => {
|
|
@@ -23296,7 +23303,7 @@ function ef(e, t, r, a) {
|
|
|
23296
23303
|
}
|
|
23297
23304
|
}
|
|
23298
23305
|
let d;
|
|
23299
|
-
(w = u.config) != null && w.borderInfo && u.config.borderInfo.length > 0 && (d =
|
|
23306
|
+
(w = u.config) != null && w.borderInfo && u.config.borderInfo.length > 0 && (d = Nl(e, t));
|
|
23300
23307
|
let p = "";
|
|
23301
23308
|
const y = u.data;
|
|
23302
23309
|
if (!y) return null;
|
|
@@ -23407,7 +23414,7 @@ function ef(e, t, r, a) {
|
|
|
23407
23414
|
const H = n ? encodeURIComponent(
|
|
23408
23415
|
JSON.stringify({ ...E, _srcRow: _, _srcCol: N })
|
|
23409
23416
|
) : "";
|
|
23410
|
-
O = Bo(O, { style: B, span: W, cellData: H }), h.isNil(Y) && (Y = Ke(_, N, y)), h.isNil(Y) && (Y = ""), o && Vt(E) ? O +=
|
|
23417
|
+
O = Bo(O, { style: B, span: W, cellData: H }), h.isNil(Y) && (Y = Ke(_, N, y)), h.isNil(Y) && (Y = ""), o && Vt(E) ? O += Cl(_, N, y, {
|
|
23411
23418
|
useSemanticMarkup: !0,
|
|
23412
23419
|
inheritedStyle: J,
|
|
23413
23420
|
isRichTextCopy: !0
|
|
@@ -23442,7 +23449,7 @@ function ef(e, t, r, a) {
|
|
|
23442
23449
|
}
|
|
23443
23450
|
return `<table data-type="fortune-copy-action-table">${g}${p}</table>`;
|
|
23444
23451
|
}
|
|
23445
|
-
function
|
|
23452
|
+
function Od(e) {
|
|
23446
23453
|
var y, g, b, w;
|
|
23447
23454
|
const t = Re(e);
|
|
23448
23455
|
e.lastInternalCopyHtmlMetadataStripped = !1, e.luckysheet_selection_range = [];
|
|
@@ -23499,7 +23506,7 @@ function Id(e) {
|
|
|
23499
23506
|
"textDecorationSkipInk"
|
|
23500
23507
|
]), Q = h.toPairs(B).filter(
|
|
23501
23508
|
([H, X]) => !h.isNil(X) && X !== "" && X !== "undefined" && !(O && W.has(H))
|
|
23502
|
-
).map(([H, X]) => `${h.kebabCase(H)}:${h.isNumber(X) ? `${X}px` : X};`).join(" "), Y = O ?
|
|
23509
|
+
).map(([H, X]) => `${h.kebabCase(H)}:${h.isNumber(X) ? `${X}px` : X};`).join(" "), Y = O ? Cl(T, $, t, {
|
|
23503
23510
|
useSemanticMarkup: !0,
|
|
23504
23511
|
inheritedStyle: B,
|
|
23505
23512
|
isRichTextCopy: !0
|
|
@@ -23512,7 +23519,7 @@ function Id(e) {
|
|
|
23512
23519
|
) : "";
|
|
23513
23520
|
f = `<table data-type="fortune-copy-action-table"><tr><td style="white-space: pre-line; ${Q}" data-fortune-cell="${J}">${Y}</td></tr></table>`;
|
|
23514
23521
|
} else
|
|
23515
|
-
f =
|
|
23522
|
+
f = nf(
|
|
23516
23523
|
e,
|
|
23517
23524
|
e.currentSheetId,
|
|
23518
23525
|
e.luckysheet_select_save,
|
|
@@ -23523,9 +23530,9 @@ function Id(e) {
|
|
|
23523
23530
|
}
|
|
23524
23531
|
), f = f === null ? f : f.replace('<td style="', '<td style="white-space: pre-line; ');
|
|
23525
23532
|
let p = !1;
|
|
23526
|
-
f && u && f.length >
|
|
23533
|
+
f && u && f.length > Qu && (p = !0, f = f.replace(/\sdata-fortune-cell="[^"]*"/g, "")), f && (e.iscopyself = !0, e.lastInternalCopyHtmlMetadataStripped = p, Zu.writeHtml(f));
|
|
23527
23534
|
}
|
|
23528
|
-
function
|
|
23535
|
+
function Ld(e) {
|
|
23529
23536
|
var a, n, o, i, l, c, s, u;
|
|
23530
23537
|
if (nn(e) === !1 || e.isFlvReadOnly)
|
|
23531
23538
|
return "allowEdit";
|
|
@@ -23574,11 +23581,11 @@ function Dd(e) {
|
|
|
23574
23581
|
const g = ((u = (s = (c = (l = e.getRefs) == null ? void 0 : l.call(e)) == null ? void 0 : c.canvas) == null ? void 0 : s.current) == null ? void 0 : u.getContext("2d")) ?? null;
|
|
23575
23582
|
if (g && m.size > 0)
|
|
23576
23583
|
for (const b of m)
|
|
23577
|
-
|
|
23584
|
+
Tl(e, b, f, g);
|
|
23578
23585
|
}
|
|
23579
23586
|
return "success";
|
|
23580
23587
|
}
|
|
23581
|
-
function
|
|
23588
|
+
function Fd(e) {
|
|
23582
23589
|
var a;
|
|
23583
23590
|
if (nn(e) === !1)
|
|
23584
23591
|
return "allowEdit";
|
|
@@ -23616,7 +23623,7 @@ function Od(e) {
|
|
|
23616
23623
|
}
|
|
23617
23624
|
return "success";
|
|
23618
23625
|
}
|
|
23619
|
-
function
|
|
23626
|
+
function Bd(e) {
|
|
23620
23627
|
var a, n, o;
|
|
23621
23628
|
if (nn(e) === !1)
|
|
23622
23629
|
return "allowEdit";
|
|
@@ -23723,7 +23730,7 @@ function Ld(e) {
|
|
|
23723
23730
|
}
|
|
23724
23731
|
return "success";
|
|
23725
23732
|
}
|
|
23726
|
-
function
|
|
23733
|
+
function Pd(e) {
|
|
23727
23734
|
var a, n, o;
|
|
23728
23735
|
if (nn(e) === !1)
|
|
23729
23736
|
return "allowEdit";
|
|
@@ -23830,7 +23837,7 @@ function Fd(e) {
|
|
|
23830
23837
|
}
|
|
23831
23838
|
return "success";
|
|
23832
23839
|
}
|
|
23833
|
-
function
|
|
23840
|
+
function Hd(e, t) {
|
|
23834
23841
|
var n;
|
|
23835
23842
|
if (nn(e) === !1)
|
|
23836
23843
|
return "allowEdit";
|
|
@@ -23868,7 +23875,7 @@ function Bd(e, t) {
|
|
|
23868
23875
|
}
|
|
23869
23876
|
return "success";
|
|
23870
23877
|
}
|
|
23871
|
-
function
|
|
23878
|
+
function zd(e) {
|
|
23872
23879
|
var a;
|
|
23873
23880
|
if (nn(e) === !1)
|
|
23874
23881
|
return "allowEdit";
|
|
@@ -23911,7 +23918,7 @@ function Pd(e) {
|
|
|
23911
23918
|
}
|
|
23912
23919
|
return "success";
|
|
23913
23920
|
}
|
|
23914
|
-
function
|
|
23921
|
+
function Ud(e) {
|
|
23915
23922
|
var a;
|
|
23916
23923
|
if (nn(e) === !1)
|
|
23917
23924
|
return "allowEdit";
|
|
@@ -23953,10 +23960,10 @@ function Hd(e) {
|
|
|
23953
23960
|
}
|
|
23954
23961
|
return "success";
|
|
23955
23962
|
}
|
|
23956
|
-
function
|
|
23963
|
+
function Wd(e, t) {
|
|
23957
23964
|
return !1;
|
|
23958
23965
|
}
|
|
23959
|
-
function
|
|
23966
|
+
function Vd(e) {
|
|
23960
23967
|
const t = Re(e);
|
|
23961
23968
|
t && (e.luckysheet_select_status = !1, e.luckysheet_select_save = [
|
|
23962
23969
|
{
|
|
@@ -23969,7 +23976,7 @@ function Ud(e) {
|
|
|
23969
23976
|
}
|
|
23970
23977
|
], Jt(e, e.luckysheet_select_save));
|
|
23971
23978
|
}
|
|
23972
|
-
function
|
|
23979
|
+
function Gd(e, t, r, a) {
|
|
23973
23980
|
var c;
|
|
23974
23981
|
if (!a) return {};
|
|
23975
23982
|
const n = {}, { scrollTop: o } = e, i = (c = a.horizontal) == null ? void 0 : c.freezenhorizontaldata;
|
|
@@ -23980,7 +23987,7 @@ function Wd(e, t, r, a) {
|
|
|
23980
23987
|
}
|
|
23981
23988
|
return l || (n.display = "none"), n;
|
|
23982
23989
|
}
|
|
23983
|
-
function
|
|
23990
|
+
function Yd(e, t, r, a) {
|
|
23984
23991
|
var c;
|
|
23985
23992
|
if (!a) return {};
|
|
23986
23993
|
const n = {}, { scrollLeft: o } = e, i = (c = a.vertical) == null ? void 0 : c.freezenverticaldata;
|
|
@@ -23991,12 +23998,12 @@ function Vd(e, t, r, a) {
|
|
|
23991
23998
|
}
|
|
23992
23999
|
return l || (n.display = "none"), n;
|
|
23993
24000
|
}
|
|
23994
|
-
function
|
|
24001
|
+
function jd(e) {
|
|
23995
24002
|
var c, s, u, f, m, d, p, y, g, b, w, T, $, _, x, N, O, E;
|
|
23996
24003
|
const t = e.luckysheet_select_save;
|
|
23997
24004
|
let r = 0, a = 0, n = 0, o = -1 / 0, i = 1 / 0;
|
|
23998
24005
|
for (let B = 0; B < t.length; B += 1) {
|
|
23999
|
-
const W =
|
|
24006
|
+
const W = Xu(e, t[B]);
|
|
24000
24007
|
for (let Q = 0; Q < W.length; Q += 1)
|
|
24001
24008
|
for (let Y = 0; Y < W[0].length && !(Q >= W.length || Y >= W[0].length); Y += 1) {
|
|
24002
24009
|
const J = (s = (c = W[Q][Y]) == null ? void 0 : c.ct) == null ? void 0 : s.t;
|
|
@@ -24010,7 +24017,7 @@ function Gd(e) {
|
|
|
24010
24017
|
const l = String(n / r);
|
|
24011
24018
|
return { numberC: r, count: a, sum: n, max: o, min: i, average: l };
|
|
24012
24019
|
}
|
|
24013
|
-
function
|
|
24020
|
+
function Xd(e) {
|
|
24014
24021
|
return {
|
|
24015
24022
|
luckysheetfile: [],
|
|
24016
24023
|
defaultcolumnNum: 60,
|
|
@@ -24278,7 +24285,7 @@ function Yd(e) {
|
|
|
24278
24285
|
},
|
|
24279
24286
|
groupValuesRefreshData: [],
|
|
24280
24287
|
formulaRangeNavRevision: 0,
|
|
24281
|
-
formulaCache: new
|
|
24288
|
+
formulaCache: new Ic(),
|
|
24282
24289
|
// class will not be frozen by immer, can be mutated at any time.
|
|
24283
24290
|
hooks: {},
|
|
24284
24291
|
showQuickSearch: !1,
|
|
@@ -24298,7 +24305,7 @@ function Re(e, t) {
|
|
|
24298
24305
|
const r = Le(e, t || e.currentSheetId);
|
|
24299
24306
|
return h.isNil(r) ? null : (n = (a = e.luckysheetfile) == null ? void 0 : a[r]) == null ? void 0 : n.data;
|
|
24300
24307
|
}
|
|
24301
|
-
function
|
|
24308
|
+
function rf(e, t, r) {
|
|
24302
24309
|
var o, i, l, c, s, u, f, m, d, p, y;
|
|
24303
24310
|
e.visibledatarow = [], e.rh_height = 0;
|
|
24304
24311
|
for (let g = 0; g < t; g += 1) {
|
|
@@ -24323,7 +24330,7 @@ function tf(e, t, r) {
|
|
|
24323
24330
|
}
|
|
24324
24331
|
e.ch_width += a;
|
|
24325
24332
|
}
|
|
24326
|
-
function
|
|
24333
|
+
function Zd(e, t) {
|
|
24327
24334
|
if ((e == null ? void 0 : e.length) > 0) {
|
|
24328
24335
|
let r = !1;
|
|
24329
24336
|
const a = [];
|
|
@@ -24332,7 +24339,7 @@ function jd(e, t) {
|
|
|
24332
24339
|
}), r || (e[0].status = 1);
|
|
24333
24340
|
}
|
|
24334
24341
|
}
|
|
24335
|
-
function
|
|
24342
|
+
function Kd(e) {
|
|
24336
24343
|
const t = e.luckysheetfile.filter(
|
|
24337
24344
|
(r) => h.isUndefined(r.hide) || r.hide !== 1
|
|
24338
24345
|
);
|
|
@@ -24343,11 +24350,11 @@ function Xd(e) {
|
|
|
24343
24350
|
break;
|
|
24344
24351
|
}
|
|
24345
24352
|
}
|
|
24346
|
-
function
|
|
24353
|
+
function Qd(e, t) {
|
|
24347
24354
|
const r = t.length, a = r === 0 ? 0 : t[0].length;
|
|
24348
|
-
|
|
24355
|
+
rf(e, r, a), Jt(e, e.luckysheet_select_save);
|
|
24349
24356
|
}
|
|
24350
|
-
function
|
|
24357
|
+
function Jd(e, t, r) {
|
|
24351
24358
|
e.luckysheetTableContentHW = [
|
|
24352
24359
|
r.clientWidth,
|
|
24353
24360
|
r.clientHeight
|
|
@@ -24357,7 +24364,7 @@ function Kd(e, t, r) {
|
|
|
24357
24364
|
e.luckysheetTableContentHW[1] * e.devicePixelRatio
|
|
24358
24365
|
);
|
|
24359
24366
|
}
|
|
24360
|
-
function
|
|
24367
|
+
function af(e, t, r, a, n, o) {
|
|
24361
24368
|
var f, m, d, p, y, g, b, w, T, $, _, x, N, O, E, B, W, Q, Y, J, H, X, F, te, ie, oe, he, V, G, U, se, ve, R, C, A, P, v, Z, k, L, le, me, ue, fe, _e, we, Te, Ce, de, ce, Pe, je, Me, pe, D, I, j, z, M, ee, ye, xe, ge, be, He, Se, qe, ke, Ue, Fe, Ve, Pt, Gt, Ot, Ea, qa, Ma, Ra, Ia, Da, Oa, La, Fa, Ba, Pa, Ha, za, Ua, Wa, Va, Ga, Ya, ja, Xa, Za, Ka, Qa, Ja, ei, ti, ni, ri, ai, ii, oi, li, si, ci, ui, fi, di, mi, hi, pi, gi, yi, bi, wi, vi, _i, Ti, $i, Ci, Ni, xi, Ai, Si, ki, Ei, qi, Mi, Ri, Ii, Di, Oi, Li, Fi, Bi, Pi, Hi, zi, Ui, Wi, Vi, Gi, Yi, ji, Xi, Zi, Ki, Qi, Ji, eo, to, no, ro, ao, io, oo, lo, so;
|
|
24362
24369
|
const i = {}, l = Re(e);
|
|
24363
24370
|
let c, s;
|
|
@@ -25112,7 +25119,7 @@ function nf(e, t, r, a, n, o) {
|
|
|
25112
25119
|
}
|
|
25113
25120
|
return i;
|
|
25114
25121
|
}
|
|
25115
|
-
function
|
|
25122
|
+
function Nl(e, t) {
|
|
25116
25123
|
let r = {};
|
|
25117
25124
|
const a = Re(e);
|
|
25118
25125
|
let n = {};
|
|
@@ -25125,7 +25132,7 @@ function Cl(e, t) {
|
|
|
25125
25132
|
else
|
|
25126
25133
|
return r;
|
|
25127
25134
|
}
|
|
25128
|
-
return r =
|
|
25135
|
+
return r = af(
|
|
25129
25136
|
e,
|
|
25130
25137
|
0,
|
|
25131
25138
|
n.length,
|
|
@@ -25141,7 +25148,7 @@ function Mt(e) {
|
|
|
25141
25148
|
{}
|
|
25142
25149
|
);
|
|
25143
25150
|
}
|
|
25144
|
-
function
|
|
25151
|
+
function xl(e) {
|
|
25145
25152
|
return Mt(e.filter);
|
|
25146
25153
|
}
|
|
25147
25154
|
function jn(e) {
|
|
@@ -25153,7 +25160,7 @@ function jn(e) {
|
|
|
25153
25160
|
e.config.rowhidden_manual = a.rowhidden_manual;
|
|
25154
25161
|
return;
|
|
25155
25162
|
}
|
|
25156
|
-
const n = ((c = e.config) == null ? void 0 : c.rowhidden) || {}, o = e.currentSheetId === r.id && !h.isNil(e.luckysheet_filter_save) && !h.isEmpty(e.filter), i = o ?
|
|
25163
|
+
const n = ((c = e.config) == null ? void 0 : c.rowhidden) || {}, o = e.currentSheetId === r.id && !h.isNil(e.luckysheet_filter_save) && !h.isEmpty(e.filter), i = o ? xl(e) : {}, l = o ? h.omit(n, h.keys(i)) : { ...n };
|
|
25157
25164
|
a.rowhidden_manual = l, r.config = a, e.config.rowhidden_manual = l;
|
|
25158
25165
|
}
|
|
25159
25166
|
function Nr(e) {
|
|
@@ -25161,7 +25168,7 @@ function Nr(e) {
|
|
|
25161
25168
|
const t = Le(e, e.currentSheetId);
|
|
25162
25169
|
if (t == null) return;
|
|
25163
25170
|
jn(e);
|
|
25164
|
-
const r = e.luckysheetfile[t], a = r.config || {}, n = e.config.rowhidden_manual || {}, o =
|
|
25171
|
+
const r = e.luckysheetfile[t], a = r.config || {}, n = e.config.rowhidden_manual || {}, o = xl(e), l = e.viewerFilterVisible !== !1 ? o : {}, c = h.assign({}, n, l);
|
|
25165
25172
|
if (e.config.rowhidden_filter = o, a.rowhidden_filter = o, e.config.rowhidden = c, a.rowhidden = c, a.rowhidden_manual = n, r.config = a, typeof process < "u" && ((s = process.env) == null ? void 0 : s.NODE_ENV) !== "production") {
|
|
25166
25173
|
const u = e.config.rowhidden || {}, f = h.assign({}, n, l);
|
|
25167
25174
|
h.size(f) === h.size(u) && h.every(f, (d, p) => u[p] === d) || console.warn("[rowVisibility] ctx.config.rowhidden diverged from union", {
|
|
@@ -25172,7 +25179,7 @@ function Nr(e) {
|
|
|
25172
25179
|
});
|
|
25173
25180
|
}
|
|
25174
25181
|
}
|
|
25175
|
-
const
|
|
25182
|
+
const Al = (e, t) => {
|
|
25176
25183
|
Object.entries(e).forEach(([, r]) => {
|
|
25177
25184
|
var l, c, s, u;
|
|
25178
25185
|
const { r: a, c: n, rs: o, cs: i } = r;
|
|
@@ -25185,7 +25192,7 @@ const xl = (e, t) => {
|
|
|
25185
25192
|
const t = { ...e };
|
|
25186
25193
|
return delete t.v, delete t.m, delete t.f, delete t.ps, delete t.hl, t;
|
|
25187
25194
|
};
|
|
25188
|
-
function
|
|
25195
|
+
function of(e, t, r, a) {
|
|
25189
25196
|
var i, l, c;
|
|
25190
25197
|
const n = [], o = e[t];
|
|
25191
25198
|
if (!o || !e[0]) return n;
|
|
@@ -25205,7 +25212,7 @@ function rf(e, t, r, a) {
|
|
|
25205
25212
|
}
|
|
25206
25213
|
return n;
|
|
25207
25214
|
}
|
|
25208
|
-
function
|
|
25215
|
+
function lf(e, t, r, a) {
|
|
25209
25216
|
var o, i, l;
|
|
25210
25217
|
const n = [];
|
|
25211
25218
|
for (let c = 0; c < e.length; c += 1) {
|
|
@@ -25224,7 +25231,7 @@ function af(e, t, r, a) {
|
|
|
25224
25231
|
}
|
|
25225
25232
|
return n;
|
|
25226
25233
|
}
|
|
25227
|
-
const
|
|
25234
|
+
const Sl = (e) => {
|
|
25228
25235
|
if (!e) return null;
|
|
25229
25236
|
let t = 1 / 0, r = 1 / 0, a = -1 / 0, n = -1 / 0;
|
|
25230
25237
|
return Object.values(e).forEach((o) => {
|
|
@@ -25252,7 +25259,7 @@ const Al = (e) => {
|
|
|
25252
25259
|
f.length > 0 && e.hooks.updateCellYdoc(f);
|
|
25253
25260
|
}, In = (e) => {
|
|
25254
25261
|
e.v = "#REF!", e.m = "#REF!", e.error = { title: "#REF!", message: "Reference is not valid." }, e.ct ? e.ct.t = "e" : e.ct = { fa: "General", t: "e" };
|
|
25255
|
-
},
|
|
25262
|
+
}, kl = (e, t, r, a, n, o, i) => {
|
|
25256
25263
|
const l = e.data;
|
|
25257
25264
|
if (!l) return;
|
|
25258
25265
|
const c = /* @__PURE__ */ new Set();
|
|
@@ -25270,7 +25277,7 @@ const Al = (e) => {
|
|
|
25270
25277
|
}
|
|
25271
25278
|
}
|
|
25272
25279
|
};
|
|
25273
|
-
function
|
|
25280
|
+
function sf(e, t, r = !0) {
|
|
25274
25281
|
var V, G, U, se, ve, R, C, A, P, v, Z, k, L, le, me, ue, fe, _e, we, Te, Ce, de, ce, Pe, je, Me, pe;
|
|
25275
25282
|
let { count: a, id: n } = t;
|
|
25276
25283
|
const { type: o, index: i, direction: l, templateSourceRows: c, templateSourceColumns: s } = t;
|
|
@@ -25389,7 +25396,7 @@ function of(e, t, r = !0) {
|
|
|
25389
25396
|
((k = (Z = j[ee]) == null ? void 0 : Z[ye]) == null ? void 0 : k.f) === ge && (j[ee][ye].f = be);
|
|
25390
25397
|
}
|
|
25391
25398
|
}
|
|
25392
|
-
|
|
25399
|
+
kl(
|
|
25393
25400
|
e.luckysheetfile[D],
|
|
25394
25401
|
I,
|
|
25395
25402
|
"add",
|
|
@@ -25558,7 +25565,7 @@ function of(e, t, r = !0) {
|
|
|
25558
25565
|
}
|
|
25559
25566
|
const Se = [];
|
|
25560
25567
|
for (let qe = 0; qe < a; qe += 1) {
|
|
25561
|
-
const ke = y ? b : i, Ue =
|
|
25568
|
+
const ke = y ? b : i, Ue = of(m, ke, a, l);
|
|
25562
25569
|
Se.push(JSON.stringify(Ue));
|
|
25563
25570
|
let Fe = [];
|
|
25564
25571
|
y ? Fe = D.filter(
|
|
@@ -25617,7 +25624,7 @@ function of(e, t, r = !0) {
|
|
|
25617
25624
|
for (let ge = 0; ge < a; ge += 1) {
|
|
25618
25625
|
const be = g ? w : i;
|
|
25619
25626
|
ye.push(
|
|
25620
|
-
|
|
25627
|
+
lf(m, be, a, l)
|
|
25621
25628
|
);
|
|
25622
25629
|
}
|
|
25623
25630
|
const xe = [];
|
|
@@ -25725,8 +25732,8 @@ function of(e, t, r = !0) {
|
|
|
25725
25732
|
{ row: [i, i + a - 1], column: [0, m[0].length - 1] }
|
|
25726
25733
|
] : oe = [
|
|
25727
25734
|
{ row: [i + 1, i + a], column: [0, m[0].length - 1] }
|
|
25728
|
-
], f.row = f.data.length) : (l === "lefttop" ? oe = [{ row: [0, m.length - 1], column: [i, i + a - 1] }] : oe = [{ row: [0, m.length - 1], column: [i + 1, i + a] }], f.column = (je = f.data[0]) == null ? void 0 : je.length), r && (f.luckysheet_select_save = oe, f.id === e.currentSheetId && (e.luckysheet_select_save = oe)),
|
|
25729
|
-
const he =
|
|
25735
|
+
], f.row = f.data.length) : (l === "lefttop" ? oe = [{ row: [0, m.length - 1], column: [i, i + a - 1] }] : oe = [{ row: [0, m.length - 1], column: [i + 1, i + a] }], f.column = (je = f.data[0]) == null ? void 0 : je.length), r && (f.luckysheet_select_save = oe, f.id === e.currentSheetId && (e.luckysheet_select_save = oe)), Al(_, f);
|
|
25736
|
+
const he = Sl(d.merge);
|
|
25730
25737
|
if (o === "row") {
|
|
25731
25738
|
const D = l === "lefttop" ? i : i + 1, I = he ? Math.min(D, he.minR) : D;
|
|
25732
25739
|
pr(
|
|
@@ -25751,7 +25758,7 @@ function of(e, t, r = !0) {
|
|
|
25751
25758
|
);
|
|
25752
25759
|
}
|
|
25753
25760
|
}
|
|
25754
|
-
function
|
|
25761
|
+
function El(e, t) {
|
|
25755
25762
|
var Q, Y, J, H, X, F, te, ie, oe, he, V, G, U, se, ve, R;
|
|
25756
25763
|
const { type: r } = t;
|
|
25757
25764
|
let { start: a, end: n, id: o } = t;
|
|
@@ -25795,7 +25802,7 @@ function kl(e, t) {
|
|
|
25795
25802
|
A.push({ start: P, end: v });
|
|
25796
25803
|
for (let Z = A.length - 1; Z >= 0; Z -= 1) {
|
|
25797
25804
|
const k = A[Z];
|
|
25798
|
-
|
|
25805
|
+
El(e, {
|
|
25799
25806
|
type: "row",
|
|
25800
25807
|
start: k.start,
|
|
25801
25808
|
end: k.end,
|
|
@@ -25875,7 +25882,7 @@ function kl(e, t) {
|
|
|
25875
25882
|
((V = (he = P[k]) == null ? void 0 : he[L]) == null ? void 0 : V.f) === me && (P[k][L].f = ue, ue === "=#REF!" && In(P[k][L]));
|
|
25876
25883
|
}
|
|
25877
25884
|
}
|
|
25878
|
-
|
|
25885
|
+
kl(
|
|
25879
25886
|
e.luckysheetfile[C],
|
|
25880
25887
|
A,
|
|
25881
25888
|
"del",
|
|
@@ -26083,8 +26090,8 @@ function kl(e, t) {
|
|
|
26083
26090
|
u[v].splice(a, f);
|
|
26084
26091
|
l.column = (se = u[0]) == null ? void 0 : se.length;
|
|
26085
26092
|
}
|
|
26086
|
-
e.luckysheet_select_save = void 0, l.data = u, l.config = c, l.calcChain = d, g != null && (l.filter = g.filter, l.filter_select = g.filter_select), l.luckysheet_conditionformat_save = T, l.luckysheet_alternateformat_save = _, l.dataVerification = O, l.hyperlink = B,
|
|
26087
|
-
const W =
|
|
26093
|
+
e.luckysheet_select_save = void 0, l.data = u, l.config = c, l.calcChain = d, g != null && (l.filter = g.filter, l.filter_select = g.filter_select), l.luckysheet_conditionformat_save = T, l.luckysheet_alternateformat_save = _, l.dataVerification = O, l.hyperlink = B, Al(m, l);
|
|
26094
|
+
const W = Sl(c.merge);
|
|
26088
26095
|
if (r === "row") {
|
|
26089
26096
|
const C = W ? Math.min(a, W.minR) : a;
|
|
26090
26097
|
pr(
|
|
@@ -26118,7 +26125,7 @@ function kl(e, t) {
|
|
|
26118
26125
|
C.length > 0 && (e.formulaCache.execFunctionExist = C, Vn(e, null, null, null, null, Re(e)), e.formulaCache.execFunctionExist = void 0);
|
|
26119
26126
|
}
|
|
26120
26127
|
}
|
|
26121
|
-
function
|
|
26128
|
+
function em(e, t) {
|
|
26122
26129
|
if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
|
|
26123
26130
|
return "noMulti";
|
|
26124
26131
|
const r = Le(e, e.currentSheetId);
|
|
@@ -26140,7 +26147,7 @@ function Qd(e, t) {
|
|
|
26140
26147
|
}
|
|
26141
26148
|
return e.luckysheetfile[r].config = e.config, "";
|
|
26142
26149
|
}
|
|
26143
|
-
function
|
|
26150
|
+
function tm(e, t) {
|
|
26144
26151
|
if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
|
|
26145
26152
|
return "noMulti";
|
|
26146
26153
|
const r = Le(e, e.currentSheetId);
|
|
@@ -26158,7 +26165,7 @@ function Jd(e, t) {
|
|
|
26158
26165
|
}
|
|
26159
26166
|
return e.luckysheetfile[r].config = e.config, "";
|
|
26160
26167
|
}
|
|
26161
|
-
function
|
|
26168
|
+
function nm(e) {
|
|
26162
26169
|
var t, r, a, n;
|
|
26163
26170
|
if (!e.luckysheet_select_save || !e.config.colhidden && !e.config.rowhidden)
|
|
26164
26171
|
return !1;
|
|
@@ -26174,7 +26181,7 @@ function em(e) {
|
|
|
26174
26181
|
}
|
|
26175
26182
|
return !1;
|
|
26176
26183
|
}
|
|
26177
|
-
function
|
|
26184
|
+
function rm(e, t) {
|
|
26178
26185
|
let r = 1;
|
|
26179
26186
|
if (!e.luckysheet_select_save) return 0;
|
|
26180
26187
|
const a = e.luckysheet_select_save[0], n = e.config.rowhidden ?? {}, o = e.config.colhidden ?? {};
|
|
@@ -26219,7 +26226,7 @@ function tm(e, t) {
|
|
|
26219
26226
|
}
|
|
26220
26227
|
return r;
|
|
26221
26228
|
}
|
|
26222
|
-
function
|
|
26229
|
+
function am(e, t, r) {
|
|
26223
26230
|
let a = e.length;
|
|
26224
26231
|
const n = Rt(r).pivotTable, { title: o } = n;
|
|
26225
26232
|
for (let i = 0; i < e.length; i += 1)
|
|
@@ -26231,7 +26238,7 @@ function nm(e, t, r) {
|
|
|
26231
26238
|
}
|
|
26232
26239
|
return t ? o + (a + 1) : `Sheet${a + 1}`;
|
|
26233
26240
|
}
|
|
26234
|
-
function
|
|
26241
|
+
function cf(e) {
|
|
26235
26242
|
let t;
|
|
26236
26243
|
e.indexOf("rgba") > -1 ? t = e.replace("rgba(", "").replace(")", "").split(",") : t = e.replace("rgb(", "").replace(")", "").split(",");
|
|
26237
26244
|
const r = Number(t[0]), a = Number(t[1]), n = Number(t[2]);
|
|
@@ -26252,7 +26259,7 @@ function wt(e) {
|
|
|
26252
26259
|
o = a(t[i]), n += o * 26 ** (r - i - 1);
|
|
26253
26260
|
return n === 0 ? NaN : n - 1;
|
|
26254
26261
|
}
|
|
26255
|
-
function
|
|
26262
|
+
function uf(e) {
|
|
26256
26263
|
return typeof e != "string" ? e : e.replace(/<script>/g, "<script>").replace(/<\/script>/, "</script>");
|
|
26257
26264
|
}
|
|
26258
26265
|
function Wn(e) {
|
|
@@ -26276,7 +26283,7 @@ function xr(e, t) {
|
|
|
26276
26283
|
const r = Le(e, t);
|
|
26277
26284
|
return h.isNil(r) ? null : e.luckysheetfile[r];
|
|
26278
26285
|
}
|
|
26279
|
-
function
|
|
26286
|
+
function im(e) {
|
|
26280
26287
|
const t = /* @__PURE__ */ new Date(), r = t.getFullYear();
|
|
26281
26288
|
let a = t.getMonth(), n = t.getDate(), o = t.getHours(), i = t.getMinutes(), l = t.getSeconds();
|
|
26282
26289
|
a += 1, a < 10 && (a = `0${a}`), n < 10 && (n = `0${n}`), o < 10 && (o = `0${o}`), i < 10 && (i = `0${i}`), l < 10 && (l = `0${l}`);
|
|
@@ -26289,10 +26296,10 @@ function Bo(e, t) {
|
|
|
26289
26296
|
return typeof n < "u" ? n : r;
|
|
26290
26297
|
});
|
|
26291
26298
|
}
|
|
26292
|
-
function
|
|
26299
|
+
function om(e) {
|
|
26293
26300
|
return e.replace("~*", "\\*").replace("~?", "\\?").replace(".", "\\.").replace("*", ".*").replace("?", ".");
|
|
26294
26301
|
}
|
|
26295
|
-
function
|
|
26302
|
+
function lm(e) {
|
|
26296
26303
|
let n = "";
|
|
26297
26304
|
for (; e >= 0; )
|
|
26298
26305
|
n = String.fromCharCode(e % 26 + 97) + n, e = Math.floor(e / 26) - 1;
|
|
@@ -26310,12 +26317,12 @@ function nn(e, t) {
|
|
|
26310
26317
|
return !1;
|
|
26311
26318
|
for (let l = n.row[0]; l <= n.row[1]; l += 1)
|
|
26312
26319
|
for (let c = n.column[0]; c <= n.column[1]; c += 1)
|
|
26313
|
-
if (
|
|
26320
|
+
if (ml(e, l, c, e.currentSheetId))
|
|
26314
26321
|
return !1;
|
|
26315
26322
|
return !0;
|
|
26316
26323
|
}) && (h.isUndefined(e.allowEdit) ? !0 : e.allowEdit) && !e.isFlvReadOnly;
|
|
26317
26324
|
}
|
|
26318
|
-
function
|
|
26325
|
+
function ff(e, t) {
|
|
26319
26326
|
const r = e.config, a = h.isUndefined(t) ? e.luckysheet_select_save : t;
|
|
26320
26327
|
return h.every(a, (n) => {
|
|
26321
26328
|
var o, i;
|
|
@@ -26327,28 +26334,28 @@ function cf(e, t) {
|
|
|
26327
26334
|
return !1;
|
|
26328
26335
|
for (let l = n.row[0]; l <= n.row[1]; l += 1)
|
|
26329
26336
|
for (let c = n.column[0]; c <= n.column[1]; c += 1)
|
|
26330
|
-
if (
|
|
26337
|
+
if (ml(e, l, c, e.currentSheetId))
|
|
26331
26338
|
return !1;
|
|
26332
26339
|
return !0;
|
|
26333
26340
|
}) && (h.isUndefined(e.isFlvReadOnly) ? !0 : e.isFlvReadOnly);
|
|
26334
26341
|
}
|
|
26335
|
-
function
|
|
26342
|
+
function df(e) {
|
|
26336
26343
|
return /^[a-zA-Z]\d+$/.test(e);
|
|
26337
26344
|
}
|
|
26338
|
-
function
|
|
26345
|
+
function mf(e) {
|
|
26339
26346
|
const t = document.createElement("div");
|
|
26340
26347
|
t.innerHTML = e;
|
|
26341
26348
|
const r = t.querySelectorAll("span");
|
|
26342
26349
|
return r.length > 0 && r[r.length - 1].remove(), t.innerHTML;
|
|
26343
26350
|
}
|
|
26344
|
-
function
|
|
26351
|
+
function ql(e) {
|
|
26345
26352
|
if (!e) return null;
|
|
26346
26353
|
const t = e.match(/\(([^)]+)\)/);
|
|
26347
26354
|
if (t) return t[1];
|
|
26348
26355
|
const r = e.match(/^=([\w\d:+\-*/]+)$/);
|
|
26349
26356
|
return r ? r[1].split(/[\+\-\*\/]/).map((n) => n.trim()).filter(Boolean).join(",") : null;
|
|
26350
26357
|
}
|
|
26351
|
-
function
|
|
26358
|
+
function Ml(e, t, r) {
|
|
26352
26359
|
function a(u) {
|
|
26353
26360
|
return /^[A-Za-z]+\d+$/.test(u);
|
|
26354
26361
|
}
|
|
@@ -26400,7 +26407,7 @@ function ql(e, t, r) {
|
|
|
26400
26407
|
}
|
|
26401
26408
|
}), s || c;
|
|
26402
26409
|
}
|
|
26403
|
-
function
|
|
26410
|
+
function hf(e, t) {
|
|
26404
26411
|
var o;
|
|
26405
26412
|
let r = "";
|
|
26406
26413
|
const a = e.includes("."), n = t;
|
|
@@ -26410,7 +26417,7 @@ function df(e, t) {
|
|
|
26410
26417
|
} else n ? r = "#,##0" : r = "General";
|
|
26411
26418
|
return r;
|
|
26412
26419
|
}
|
|
26413
|
-
const rn = new Error("invalid params"), Po = new Error("sheet not found"),
|
|
26420
|
+
const rn = new Error("invalid params"), Po = new Error("sheet not found"), pf = (e) => {
|
|
26414
26421
|
const t = [];
|
|
26415
26422
|
if (e == null)
|
|
26416
26423
|
return t;
|
|
@@ -26420,7 +26427,7 @@ const rn = new Error("invalid params"), Po = new Error("sheet not found"), mf =
|
|
|
26420
26427
|
n != null && t.push({ r, c: a, v: n });
|
|
26421
26428
|
}
|
|
26422
26429
|
return t;
|
|
26423
|
-
},
|
|
26430
|
+
}, sm = (e, t, r) => {
|
|
26424
26431
|
const a = h.maxBy(e, "r"), n = h.maxBy(e, "c");
|
|
26425
26432
|
let o = ((a == null ? void 0 : a.r) ?? 0) + 1, i = ((n == null ? void 0 : n.c) ?? 0) + 1;
|
|
26426
26433
|
if (t != null && r != null && t > 0 && r > 0 && (o = Math.max(o, t), i = Math.max(i, r)), o && i) {
|
|
@@ -26443,11 +26450,11 @@ function an(e, t = {}) {
|
|
|
26443
26450
|
throw Po;
|
|
26444
26451
|
return a;
|
|
26445
26452
|
}
|
|
26446
|
-
function
|
|
26453
|
+
function cm(e, t = {}) {
|
|
26447
26454
|
const r = an(e, t);
|
|
26448
|
-
return { ...r, celldata:
|
|
26455
|
+
return { ...r, celldata: pf(r.data) };
|
|
26449
26456
|
}
|
|
26450
|
-
function
|
|
26457
|
+
function um(e, t, r, a = {}) {
|
|
26451
26458
|
const n = an(e, a), i = {
|
|
26452
26459
|
row: "rangeRow",
|
|
26453
26460
|
column: "rangeColumn",
|
|
@@ -26462,12 +26469,12 @@ function sm(e, t, r, a = {}) {
|
|
|
26462
26469
|
}
|
|
26463
26470
|
};
|
|
26464
26471
|
}
|
|
26465
|
-
function
|
|
26472
|
+
function fm(e, t, r, a, n, o = {}) {
|
|
26466
26473
|
if (!["row", "column"].includes(t) || !h.isNumber(r) || !h.isNumber(a) || !["lefttop", "rightbottom"].includes(n))
|
|
26467
26474
|
throw rn;
|
|
26468
26475
|
const i = an(e, o);
|
|
26469
26476
|
try {
|
|
26470
|
-
|
|
26477
|
+
sf(e, {
|
|
26471
26478
|
type: t,
|
|
26472
26479
|
index: r,
|
|
26473
26480
|
count: a,
|
|
@@ -26478,13 +26485,13 @@ function cm(e, t, r, a, n, o = {}) {
|
|
|
26478
26485
|
console.error(l);
|
|
26479
26486
|
}
|
|
26480
26487
|
}
|
|
26481
|
-
function
|
|
26488
|
+
function dm(e, t, r, a, n = {}) {
|
|
26482
26489
|
if (!["row", "column"].includes(t) || !h.isNumber(r) || !h.isNumber(a))
|
|
26483
26490
|
throw rn;
|
|
26484
26491
|
const o = an(e, n);
|
|
26485
|
-
|
|
26492
|
+
El(e, { type: t, start: r, end: a, id: o.id });
|
|
26486
26493
|
}
|
|
26487
|
-
function
|
|
26494
|
+
function mm(e, t, r) {
|
|
26488
26495
|
if (!["row", "column"].includes(r))
|
|
26489
26496
|
throw rn;
|
|
26490
26497
|
if (!e || !e.config) return;
|
|
@@ -26503,7 +26510,7 @@ function fm(e, t, r) {
|
|
|
26503
26510
|
}
|
|
26504
26511
|
e.luckysheetfile[a].config = e.config;
|
|
26505
26512
|
}
|
|
26506
|
-
function
|
|
26513
|
+
function hm(e, t, r) {
|
|
26507
26514
|
if (!["row", "column"].includes(r))
|
|
26508
26515
|
throw rn;
|
|
26509
26516
|
if (!e || !e.config) return;
|
|
@@ -26522,7 +26529,7 @@ function dm(e, t, r) {
|
|
|
26522
26529
|
}
|
|
26523
26530
|
e.luckysheetfile[a].config = e.config;
|
|
26524
26531
|
}
|
|
26525
|
-
function
|
|
26532
|
+
function gf(e, t, r = {}, a = !1) {
|
|
26526
26533
|
if (!h.isPlainObject(t))
|
|
26527
26534
|
throw rn;
|
|
26528
26535
|
const n = an(e, r), o = n.config || {};
|
|
@@ -26530,7 +26537,7 @@ function hf(e, t, r = {}, a = !1) {
|
|
|
26530
26537
|
Number(l) >= 0 && Number(i) >= 0 && (o.rowlen[Number(l)] = Number(i), a && h.isUndefined(o.customHeight) ? o.customHeight = { [l]: 1 } : a && (o.customHeight[l] = 1));
|
|
26531
26538
|
}), n.config = o, e.currentSheetId === n.id && (e.config = o);
|
|
26532
26539
|
}
|
|
26533
|
-
function
|
|
26540
|
+
function pm(e, t, r = {}, a = !1) {
|
|
26534
26541
|
if (!h.isPlainObject(t))
|
|
26535
26542
|
throw rn;
|
|
26536
26543
|
const n = an(e, r), o = n.config || {};
|
|
@@ -26538,7 +26545,7 @@ function mm(e, t, r = {}, a = !1) {
|
|
|
26538
26545
|
Number(l) >= 0 && Number(i) >= 0 && (o.columnlen[Number(l)] = Number(i), a && h.isUndefined(o.customWidth) ? o.customWidth = { [l]: 1 } : a && (o.customWidth[l] = 1));
|
|
26539
26546
|
}), n.config = o, e.currentSheetId === n.id && (e.config = o);
|
|
26540
26547
|
}
|
|
26541
|
-
function
|
|
26548
|
+
function yf(e, t, r = {}) {
|
|
26542
26549
|
if (!h.isArray(t) || t.length === 0)
|
|
26543
26550
|
throw rn;
|
|
26544
26551
|
const o = (an(e, r).config || {}).rowlen || {}, i = {};
|
|
@@ -26549,7 +26556,7 @@ function pf(e, t, r = {}) {
|
|
|
26549
26556
|
}
|
|
26550
26557
|
}), i;
|
|
26551
26558
|
}
|
|
26552
|
-
function
|
|
26559
|
+
function gm(e, t, r = {}) {
|
|
26553
26560
|
if (!h.isArray(t) || t.length === 0)
|
|
26554
26561
|
throw rn;
|
|
26555
26562
|
const o = (an(e, r).config || {}).columnlen || {}, i = {};
|
|
@@ -26560,16 +26567,16 @@ function hm(e, t, r = {}) {
|
|
|
26560
26567
|
}
|
|
26561
26568
|
}), i;
|
|
26562
26569
|
}
|
|
26563
|
-
function
|
|
26570
|
+
function bf(e) {
|
|
26564
26571
|
return Number.isFinite(Number(e)) && !Number.isNaN(Number(e));
|
|
26565
26572
|
}
|
|
26566
|
-
function
|
|
26573
|
+
function wf(e) {
|
|
26567
26574
|
return /^0x?[a-fA-F0-9]+$/.test(e);
|
|
26568
26575
|
}
|
|
26569
|
-
function
|
|
26576
|
+
function Rl(e) {
|
|
26570
26577
|
return typeof e != "string" ? !1 : ["price", "fully_diluted_value"].includes(e) || e.toLowerCase().includes("usd") || e.toLowerCase().includes("price_in");
|
|
26571
26578
|
}
|
|
26572
|
-
const
|
|
26579
|
+
const Il = `$#,##0.${"0".repeat(2)}`, vf = ({
|
|
26573
26580
|
row: e,
|
|
26574
26581
|
column: t,
|
|
26575
26582
|
newValue: r,
|
|
@@ -26677,7 +26684,7 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
|
|
|
26677
26684
|
}
|
|
26678
26685
|
}
|
|
26679
26686
|
} else {
|
|
26680
|
-
if (
|
|
26687
|
+
if (_f({
|
|
26681
26688
|
row: e,
|
|
26682
26689
|
column: t,
|
|
26683
26690
|
apiData: a,
|
|
@@ -26732,7 +26739,7 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
|
|
|
26732
26739
|
const H = [];
|
|
26733
26740
|
c.forEach((X, F) => {
|
|
26734
26741
|
const te = a[J][X], ie = Dn(e + 1 + J, t + F, n), { m: oe, ct: he, ...V } = ie || {}, G = oa(te), U = {};
|
|
26735
|
-
G &&
|
|
26742
|
+
G && Rl(X) && !o ? (U.m = Et(Il, te), U.ht = 2) : te && (U.m = String(te)), H.push({
|
|
26736
26743
|
...V,
|
|
26737
26744
|
...Ho(ie, G),
|
|
26738
26745
|
// move color from styles to cell-level 'fc' when becoming numeric
|
|
@@ -26769,17 +26776,17 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
|
|
|
26769
26776
|
var o, i, l;
|
|
26770
26777
|
const a = (i = (o = r.current) == null ? void 0 : o.getSheet()) == null ? void 0 : i.data, n = (l = a == null ? void 0 : a[e]) == null ? void 0 : l[t];
|
|
26771
26778
|
return n == null ? {} : typeof n == "object" ? { ...n } : { v: n };
|
|
26772
|
-
}, oa = (e) =>
|
|
26779
|
+
}, oa = (e) => bf(e) && !wf(e), Dl = (e) => Array.isArray(e) ? e.map((t) => ({ ...t })) : e, On = (e, t, r) => {
|
|
26773
26780
|
const a = oa(e);
|
|
26774
|
-
if (r && a &&
|
|
26781
|
+
if (r && a && Rl(r)) {
|
|
26775
26782
|
const { s: l, ...c } = t || {};
|
|
26776
|
-
return { ...c, t: "n", fa:
|
|
26783
|
+
return { ...c, t: "n", fa: Il, ht: 2 };
|
|
26777
26784
|
}
|
|
26778
26785
|
if (!t)
|
|
26779
26786
|
return a ? { t: "n", fa: "General" } : { t: "s", fa: "@" };
|
|
26780
26787
|
if (!a) {
|
|
26781
26788
|
const l = t.t === "s" && t.fa ? t.fa : "@";
|
|
26782
|
-
return { ...t, t: "s", fa: l, s:
|
|
26789
|
+
return { ...t, t: "s", fa: l, s: Dl(t.s) };
|
|
26783
26790
|
}
|
|
26784
26791
|
const n = Xt({ ct: t, v: e }) && t.fa ? t.fa : "General", { s: o, ...i } = t || {};
|
|
26785
26792
|
return { ...i, t: "n", fa: n };
|
|
@@ -26793,8 +26800,8 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
|
|
|
26793
26800
|
}, zo = (e) => {
|
|
26794
26801
|
if (!e || typeof e != "object") return e ?? {};
|
|
26795
26802
|
const t = e.ct;
|
|
26796
|
-
return !t || !Array.isArray(t.s) ? { ...e } : { ...e, ct: { ...t, s:
|
|
26797
|
-
},
|
|
26803
|
+
return !t || !Array.isArray(t.s) ? { ...e } : { ...e, ct: { ...t, s: Dl(t.s) } };
|
|
26804
|
+
}, _f = ({
|
|
26798
26805
|
row: e,
|
|
26799
26806
|
column: t,
|
|
26800
26807
|
apiData: r,
|
|
@@ -26822,7 +26829,7 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
|
|
|
26822
26829
|
{},
|
|
26823
26830
|
!0
|
|
26824
26831
|
), !0;
|
|
26825
|
-
},
|
|
26832
|
+
}, Tf = (e) => e !== null && typeof e == "object" && !Array.isArray(e) && (e == null ? void 0 : e.responseType) === "smart-contract", $f = async ({
|
|
26826
26833
|
result: e,
|
|
26827
26834
|
handleSmartContractQuery: t,
|
|
26828
26835
|
sheetEditorRef: r,
|
|
@@ -26837,10 +26844,10 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
|
|
|
26837
26844
|
row: a,
|
|
26838
26845
|
column: n,
|
|
26839
26846
|
newValue: o,
|
|
26840
|
-
formulaResponseUiSync:
|
|
26847
|
+
formulaResponseUiSync: vf
|
|
26841
26848
|
}, { callSignature: l } = e;
|
|
26842
26849
|
await t(i)(l);
|
|
26843
|
-
},
|
|
26850
|
+
}, ym = async ({
|
|
26844
26851
|
functionCallString: e,
|
|
26845
26852
|
sheetEditorRef: t,
|
|
26846
26853
|
dataBlockRow: r,
|
|
@@ -26852,10 +26859,10 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
|
|
|
26852
26859
|
const i = await import("@fileverse-dev/formulajs"), l = e == null ? void 0 : e.match(/^(\w+)\((.*)\)$/);
|
|
26853
26860
|
if (!l)
|
|
26854
26861
|
throw new Error(`Invalid function call format: ${e}`);
|
|
26855
|
-
const c = l[1].toUpperCase(), s = l[2], f =
|
|
26862
|
+
const c = l[1].toUpperCase(), s = l[2], f = Cf(s).map((m) => {
|
|
26856
26863
|
var d;
|
|
26857
|
-
if (
|
|
26858
|
-
const p =
|
|
26864
|
+
if (Ol(m)) {
|
|
26865
|
+
const p = Nf(m);
|
|
26859
26866
|
return p == null ? void 0 : p.map((g) => {
|
|
26860
26867
|
var b;
|
|
26861
26868
|
return (b = t == null ? void 0 : t.current) == null ? void 0 : b.getCellValue(g == null ? void 0 : g.row, g == null ? void 0 : g.column);
|
|
@@ -26873,8 +26880,8 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
|
|
|
26873
26880
|
});
|
|
26874
26881
|
if (typeof i[c] == "function") {
|
|
26875
26882
|
const m = await i[c](...f);
|
|
26876
|
-
if (
|
|
26877
|
-
await
|
|
26883
|
+
if (Tf(m)) {
|
|
26884
|
+
await $f({
|
|
26878
26885
|
result: m,
|
|
26879
26886
|
handleSmartContractQuery: n,
|
|
26880
26887
|
sheetEditorRef: t,
|
|
@@ -26895,7 +26902,7 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
|
|
|
26895
26902
|
return;
|
|
26896
26903
|
}
|
|
26897
26904
|
};
|
|
26898
|
-
function
|
|
26905
|
+
function Cf(e) {
|
|
26899
26906
|
if (!(e != null && e.trim()))
|
|
26900
26907
|
return [];
|
|
26901
26908
|
const t = [];
|
|
@@ -26935,7 +26942,7 @@ function Uo(e) {
|
|
|
26935
26942
|
function gr(e) {
|
|
26936
26943
|
return !e || typeof e != "string" ? !1 : /^[A-Z]+\d+$/.test(e);
|
|
26937
26944
|
}
|
|
26938
|
-
function
|
|
26945
|
+
function Ol(e) {
|
|
26939
26946
|
if (!e || typeof e != "string" || !e.includes(":"))
|
|
26940
26947
|
return !1;
|
|
26941
26948
|
const t = e.split(":");
|
|
@@ -26958,8 +26965,8 @@ function la(e) {
|
|
|
26958
26965
|
column: n
|
|
26959
26966
|
};
|
|
26960
26967
|
}
|
|
26961
|
-
function
|
|
26962
|
-
if (!
|
|
26968
|
+
function Nf(e) {
|
|
26969
|
+
if (!Ol(e))
|
|
26963
26970
|
return null;
|
|
26964
26971
|
const t = e.split(":"), r = la(t[0]), a = la(t[1]);
|
|
26965
26972
|
if (!r || !a)
|
|
@@ -26971,232 +26978,234 @@ function $f(e) {
|
|
|
26971
26978
|
return c;
|
|
26972
26979
|
}
|
|
26973
26980
|
export {
|
|
26974
|
-
|
|
26975
|
-
|
|
26981
|
+
hd as $,
|
|
26982
|
+
Bs as A,
|
|
26976
26983
|
Yt as B,
|
|
26977
26984
|
Vt as C,
|
|
26978
26985
|
Vn as D,
|
|
26979
|
-
|
|
26980
|
-
|
|
26981
|
-
|
|
26982
|
-
|
|
26986
|
+
Rd as E,
|
|
26987
|
+
If as F,
|
|
26988
|
+
Rf as G,
|
|
26989
|
+
Ws as H,
|
|
26983
26990
|
tn as I,
|
|
26984
|
-
|
|
26985
|
-
|
|
26986
|
-
|
|
26987
|
-
|
|
26991
|
+
dd as J,
|
|
26992
|
+
Lf as K,
|
|
26993
|
+
Hf as L,
|
|
26994
|
+
Gf as M,
|
|
26988
26995
|
va as N,
|
|
26989
26996
|
Xe as O,
|
|
26990
26997
|
pa as P,
|
|
26991
26998
|
wr as Q,
|
|
26992
26999
|
Et as R,
|
|
26993
|
-
|
|
26994
|
-
|
|
26995
|
-
|
|
26996
|
-
|
|
27000
|
+
Pf as S,
|
|
27001
|
+
Qs as T,
|
|
27002
|
+
Wf as U,
|
|
27003
|
+
Tl as V,
|
|
26997
27004
|
fr as W,
|
|
26998
27005
|
Je as X,
|
|
26999
|
-
|
|
27000
|
-
|
|
27001
|
-
|
|
27006
|
+
ac as Y,
|
|
27007
|
+
bd as Z,
|
|
27008
|
+
ul as _,
|
|
27002
27009
|
Le as a,
|
|
27003
|
-
|
|
27004
|
-
|
|
27010
|
+
Od as a$,
|
|
27011
|
+
yc as a0,
|
|
27005
27012
|
Rr as a1,
|
|
27006
|
-
|
|
27007
|
-
|
|
27008
|
-
|
|
27009
|
-
|
|
27010
|
-
|
|
27011
|
-
|
|
27012
|
-
|
|
27013
|
-
|
|
27014
|
-
|
|
27015
|
-
|
|
27016
|
-
|
|
27017
|
-
|
|
27018
|
-
|
|
27019
|
-
|
|
27020
|
-
|
|
27021
|
-
|
|
27022
|
-
|
|
27023
|
-
|
|
27024
|
-
|
|
27025
|
-
|
|
27026
|
-
|
|
27027
|
-
|
|
27028
|
-
|
|
27029
|
-
|
|
27030
|
-
|
|
27031
|
-
|
|
27032
|
-
|
|
27033
|
-
|
|
27034
|
-
|
|
27035
|
-
|
|
27036
|
-
|
|
27037
|
-
|
|
27038
|
-
|
|
27039
|
-
|
|
27040
|
-
|
|
27041
|
-
|
|
27042
|
-
|
|
27043
|
-
|
|
27044
|
-
|
|
27045
|
-
|
|
27046
|
-
|
|
27047
|
-
|
|
27048
|
-
|
|
27049
|
-
|
|
27050
|
-
|
|
27051
|
-
|
|
27052
|
-
|
|
27053
|
-
|
|
27054
|
-
|
|
27055
|
-
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27060
|
-
|
|
27061
|
-
|
|
27062
|
-
|
|
27063
|
-
|
|
27064
|
-
|
|
27065
|
-
|
|
27066
|
-
|
|
27067
|
-
|
|
27068
|
-
|
|
27069
|
-
|
|
27070
|
-
|
|
27071
|
-
|
|
27072
|
-
|
|
27073
|
-
|
|
27074
|
-
|
|
27075
|
-
|
|
27076
|
-
|
|
27077
|
-
|
|
27078
|
-
|
|
27079
|
-
|
|
27080
|
-
|
|
27081
|
-
|
|
27082
|
-
|
|
27083
|
-
|
|
27084
|
-
|
|
27085
|
-
|
|
27086
|
-
|
|
27087
|
-
|
|
27088
|
-
|
|
27089
|
-
|
|
27090
|
-
|
|
27091
|
-
|
|
27092
|
-
|
|
27093
|
-
|
|
27094
|
-
|
|
27095
|
-
|
|
27096
|
-
|
|
27097
|
-
|
|
27098
|
-
|
|
27099
|
-
|
|
27100
|
-
|
|
27101
|
-
|
|
27102
|
-
|
|
27103
|
-
|
|
27104
|
-
|
|
27105
|
-
|
|
27106
|
-
|
|
27107
|
-
|
|
27108
|
-
|
|
27109
|
-
|
|
27110
|
-
|
|
27111
|
-
|
|
27112
|
-
|
|
27113
|
-
|
|
27114
|
-
|
|
27115
|
-
|
|
27116
|
-
|
|
27117
|
-
|
|
27118
|
-
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
|
-
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
|
|
27128
|
-
|
|
27129
|
-
|
|
27130
|
-
|
|
27131
|
-
|
|
27132
|
-
|
|
27133
|
-
|
|
27134
|
-
|
|
27135
|
-
|
|
27136
|
-
|
|
27137
|
-
|
|
27138
|
-
|
|
27139
|
-
|
|
27140
|
-
|
|
27141
|
-
|
|
27142
|
-
|
|
27143
|
-
|
|
27144
|
-
|
|
27145
|
-
|
|
27146
|
-
|
|
27147
|
-
|
|
27148
|
-
|
|
27149
|
-
|
|
27150
|
-
|
|
27151
|
-
|
|
27152
|
-
|
|
27153
|
-
|
|
27154
|
-
|
|
27155
|
-
em as
|
|
27156
|
-
|
|
27157
|
-
|
|
27158
|
-
|
|
27159
|
-
|
|
27160
|
-
|
|
27161
|
-
|
|
27162
|
-
|
|
27163
|
-
|
|
27164
|
-
|
|
27165
|
-
|
|
27166
|
-
|
|
27167
|
-
|
|
27168
|
-
|
|
27169
|
-
|
|
27170
|
-
|
|
27171
|
-
|
|
27172
|
-
|
|
27013
|
+
gc as a2,
|
|
27014
|
+
Io as a3,
|
|
27015
|
+
bn as a4,
|
|
27016
|
+
_a as a5,
|
|
27017
|
+
_r as a6,
|
|
27018
|
+
Na as a7,
|
|
27019
|
+
jf as a8,
|
|
27020
|
+
Zs as a9,
|
|
27021
|
+
il as aA,
|
|
27022
|
+
ju as aB,
|
|
27023
|
+
Mn as aC,
|
|
27024
|
+
Qd as aD,
|
|
27025
|
+
Ke as aE,
|
|
27026
|
+
an as aF,
|
|
27027
|
+
ea as aG,
|
|
27028
|
+
Po as aH,
|
|
27029
|
+
ta as aI,
|
|
27030
|
+
qt as aJ,
|
|
27031
|
+
gd as aK,
|
|
27032
|
+
rn as aL,
|
|
27033
|
+
nf as aM,
|
|
27034
|
+
sm as aN,
|
|
27035
|
+
Kt as aO,
|
|
27036
|
+
dm as aP,
|
|
27037
|
+
um as aQ,
|
|
27038
|
+
yf as aR,
|
|
27039
|
+
cm as aS,
|
|
27040
|
+
mm as aT,
|
|
27041
|
+
fm as aU,
|
|
27042
|
+
Cd as aV,
|
|
27043
|
+
ia as aW,
|
|
27044
|
+
pm as aX,
|
|
27045
|
+
gf as aY,
|
|
27046
|
+
hm as aZ,
|
|
27047
|
+
Wd as a_,
|
|
27048
|
+
un as aa,
|
|
27049
|
+
Ze as ab,
|
|
27050
|
+
gl as ac,
|
|
27051
|
+
pd as ad,
|
|
27052
|
+
af as ae,
|
|
27053
|
+
Au as af,
|
|
27054
|
+
gm as ag,
|
|
27055
|
+
yl as ah,
|
|
27056
|
+
Xt as ai,
|
|
27057
|
+
$o as aj,
|
|
27058
|
+
ff as ak,
|
|
27059
|
+
Nl as al,
|
|
27060
|
+
hn as am,
|
|
27061
|
+
sc as an,
|
|
27062
|
+
It as ao,
|
|
27063
|
+
Su as ap,
|
|
27064
|
+
wl as aq,
|
|
27065
|
+
Vf as ar,
|
|
27066
|
+
zn as as,
|
|
27067
|
+
Un as at,
|
|
27068
|
+
lm as au,
|
|
27069
|
+
om as av,
|
|
27070
|
+
jn as aw,
|
|
27071
|
+
Nr as ax,
|
|
27072
|
+
cf as ay,
|
|
27073
|
+
vl as az,
|
|
27074
|
+
vc as b,
|
|
27075
|
+
Rs as b$,
|
|
27076
|
+
Hd as b0,
|
|
27077
|
+
zd as b1,
|
|
27078
|
+
Ud as b2,
|
|
27079
|
+
Bd as b3,
|
|
27080
|
+
Pd as b4,
|
|
27081
|
+
Jf as b5,
|
|
27082
|
+
Id as b6,
|
|
27083
|
+
rm as b7,
|
|
27084
|
+
eu as b8,
|
|
27085
|
+
Kf as b9,
|
|
27086
|
+
Oo as bA,
|
|
27087
|
+
td as bB,
|
|
27088
|
+
Md as bC,
|
|
27089
|
+
nd as bD,
|
|
27090
|
+
ad as bE,
|
|
27091
|
+
rd as bF,
|
|
27092
|
+
Ku as bG,
|
|
27093
|
+
Zu as bH,
|
|
27094
|
+
dr as bI,
|
|
27095
|
+
Ic as bJ,
|
|
27096
|
+
jd as bK,
|
|
27097
|
+
$d as bL,
|
|
27098
|
+
Td as bM,
|
|
27099
|
+
_d as bN,
|
|
27100
|
+
fd as bO,
|
|
27101
|
+
Xd as bP,
|
|
27102
|
+
kd as bQ,
|
|
27103
|
+
El as bR,
|
|
27104
|
+
xt as bS,
|
|
27105
|
+
Zd as bT,
|
|
27106
|
+
Wn as bU,
|
|
27107
|
+
uf as bV,
|
|
27108
|
+
Yd as bW,
|
|
27109
|
+
Gd as bX,
|
|
27110
|
+
na as bY,
|
|
27111
|
+
Ko as bZ,
|
|
27112
|
+
ks as b_,
|
|
27113
|
+
nu as ba,
|
|
27114
|
+
Ld as bb,
|
|
27115
|
+
Xf as bc,
|
|
27116
|
+
ru as bd,
|
|
27117
|
+
Mf as be,
|
|
27118
|
+
xd as bf,
|
|
27119
|
+
Qf as bg,
|
|
27120
|
+
im as bh,
|
|
27121
|
+
Fd as bi,
|
|
27122
|
+
Vd as bj,
|
|
27123
|
+
ed as bk,
|
|
27124
|
+
Dd as bl,
|
|
27125
|
+
vr as bm,
|
|
27126
|
+
Ca as bn,
|
|
27127
|
+
Yf as bo,
|
|
27128
|
+
Nd as bp,
|
|
27129
|
+
wd as bq,
|
|
27130
|
+
vd as br,
|
|
27131
|
+
cd as bs,
|
|
27132
|
+
Yn as bt,
|
|
27133
|
+
$l as bu,
|
|
27134
|
+
Uc as bv,
|
|
27135
|
+
Yc as bw,
|
|
27136
|
+
id as bx,
|
|
27137
|
+
od as by,
|
|
27138
|
+
Ju as bz,
|
|
27139
|
+
Pl as c,
|
|
27140
|
+
ku as c0,
|
|
27141
|
+
xl as c1,
|
|
27142
|
+
Mt as c2,
|
|
27143
|
+
Zf as c3,
|
|
27144
|
+
Uf as c4,
|
|
27145
|
+
Cl as c5,
|
|
27146
|
+
Ff as c6,
|
|
27147
|
+
Of as c7,
|
|
27148
|
+
aa as c8,
|
|
27149
|
+
Gc as c9,
|
|
27150
|
+
Sd as cA,
|
|
27151
|
+
md as cB,
|
|
27152
|
+
Jd as cC,
|
|
27153
|
+
wf as cD,
|
|
27154
|
+
Cf as cE,
|
|
27155
|
+
Ol as cF,
|
|
27156
|
+
Nf as cG,
|
|
27157
|
+
gr as cH,
|
|
27158
|
+
la as cI,
|
|
27159
|
+
Tf as cJ,
|
|
27160
|
+
$f as cK,
|
|
27161
|
+
Il as cL,
|
|
27162
|
+
em as ca,
|
|
27163
|
+
Kd as cb,
|
|
27164
|
+
sf as cc,
|
|
27165
|
+
hc as cd,
|
|
27166
|
+
nm as ce,
|
|
27167
|
+
mc as cf,
|
|
27168
|
+
ha as cg,
|
|
27169
|
+
yd as ch,
|
|
27170
|
+
Nn as ci,
|
|
27171
|
+
Ef as cj,
|
|
27172
|
+
Ss as ck,
|
|
27173
|
+
yt as cl,
|
|
27174
|
+
ld as cm,
|
|
27175
|
+
Gn as cn,
|
|
27176
|
+
al as co,
|
|
27177
|
+
fu as cp,
|
|
27178
|
+
Bo as cq,
|
|
27179
|
+
Ed as cr,
|
|
27180
|
+
qd as cs,
|
|
27181
|
+
ef as ct,
|
|
27173
27182
|
sd as cu,
|
|
27174
|
-
|
|
27175
|
-
|
|
27176
|
-
|
|
27177
|
-
|
|
27178
|
-
|
|
27183
|
+
qf as cv,
|
|
27184
|
+
ud as cw,
|
|
27185
|
+
Ad as cx,
|
|
27186
|
+
Ms as cy,
|
|
27187
|
+
tm as cz,
|
|
27179
27188
|
Tn as d,
|
|
27180
|
-
|
|
27181
|
-
|
|
27189
|
+
ym as e,
|
|
27190
|
+
vf as f,
|
|
27182
27191
|
Wo as g,
|
|
27183
27192
|
Re as h,
|
|
27184
|
-
|
|
27185
|
-
|
|
27186
|
-
|
|
27193
|
+
Bc as i,
|
|
27194
|
+
pf as j,
|
|
27195
|
+
am as k,
|
|
27187
27196
|
Rt as l,
|
|
27188
27197
|
br as m,
|
|
27189
|
-
|
|
27198
|
+
Os as n,
|
|
27190
27199
|
Ta as o,
|
|
27191
27200
|
$a as p,
|
|
27192
27201
|
Qt as q,
|
|
27193
|
-
|
|
27194
|
-
|
|
27202
|
+
wc as r,
|
|
27203
|
+
_l as s,
|
|
27195
27204
|
xn as t,
|
|
27196
27205
|
Jt as u,
|
|
27197
27206
|
vt as v,
|
|
27198
27207
|
nn as w,
|
|
27199
|
-
|
|
27200
|
-
|
|
27201
|
-
|
|
27208
|
+
Bf as x,
|
|
27209
|
+
Df as y,
|
|
27210
|
+
zf as z
|
|
27202
27211
|
};
|