@sheetxl/sdk 0.6.23 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{VqFNEVCNut75jqTe.cjs → -eqWNU1jwfWwgTeF.cjs} +1 -1
- package/browser/cjs/{D9MjjEJzwKBla6rI.cjs → 1VxNxiLM_gsYeIjq.cjs} +1 -1
- package/browser/cjs/{BmXPFjW9WzKz514T.cjs → BJvmiOAUlJrU-IiL.cjs} +1 -1
- package/browser/cjs/{dkKD4E_5JlBKmenQ.cjs → BSvbZ-Ju_tTVWHaI.cjs} +1 -1
- package/browser/cjs/{zxWSBKUUAWn5gPkp.cjs → B_7Q1sjWYU-morbG.cjs} +1 -1
- package/browser/cjs/{ClaGVbXSzwvt77vY.cjs → BhnYThV_4fiI-Zqt.cjs} +1 -1
- package/browser/cjs/{DDckFrH_-L4EVqb0.cjs → Bl-S6cBJ33KDdPwt.cjs} +1 -1
- package/browser/cjs/{BfztWpbAEebcdg00.cjs → Bl9-4YBlZ1nNWRGt.cjs} +1 -1
- package/browser/cjs/{CvmdsdmM9gTFto6Q.cjs → BuHiw7l3AK2ylTp0.cjs} +1 -1
- package/browser/cjs/{BrUJKhMqxGMVobwG.cjs → CAs8o628r8bmsRJr.cjs} +1 -1
- package/browser/cjs/{PQ8d4sCpQKFSpwaB.cjs → CBLcx-crlTk-ZMJE.cjs} +1 -1
- package/browser/cjs/{DUgW6lyniJ3QFadv.cjs → COXLDWZTLOGygwiR.cjs} +1 -1
- package/browser/cjs/{DT_4tCJHONBQG_42.cjs → COspRFhlEdGJ2yRo.cjs} +1 -1
- package/browser/cjs/{BunlKVnn_xl8O_9Y.cjs → CTCNhEH4eMoZv-AM.cjs} +1 -1
- package/browser/cjs/{DxkXebOmw772ooCm.cjs → CfdYPESsjUaoIcBL.cjs} +1 -1
- package/browser/cjs/{DfLQHIoEjA1I_jxd.cjs → CgxQtA0OmMBQoMal.cjs} +1 -1
- package/browser/cjs/{CpWEv8EmNnSvXN2x.cjs → CnqTYtiCu44TLZcG.cjs} +2 -2
- package/browser/cjs/{W4NuIDVzly-TJyr-.cjs → CspQBlJ-v9hKGSgd.cjs} +1 -1
- package/browser/cjs/{B9KfWCBgBcz1AZjE.cjs → Csu84Dydw3a23vwk.cjs} +2 -2
- package/browser/cjs/{C215-8-WtJ8F2Ofw.cjs → DB2YuzJy4XlevUS-.cjs} +3 -3
- package/browser/cjs/{DSucB2nfw-az8XAQ.cjs → DMF-8AngZ_m_PqeQ.cjs} +1 -1
- package/browser/cjs/{CW1fefdmDhoJ7bWm.cjs → DdlVjKJJ1rSVwQu1.cjs} +1 -1
- package/browser/cjs/{Brv8UDnZaQUZbHfI.cjs → DlbstoAgEFUGA6ok.cjs} +1 -1
- package/browser/cjs/{QthjMaqeFiEAys4I.cjs → DmmG0u8V0iSFyaXH.cjs} +1 -1
- package/browser/cjs/{BO_dPjNF9uSjNn0O.cjs → Dmuy6ZTFaqHmukB0.cjs} +1 -1
- package/browser/cjs/DuwhVm23SfaA8_Kx.cjs +54 -0
- package/browser/cjs/{Dok__N_eENZ8W5Um.cjs → SHvDWykGyyWc9Cw4.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{D8p8IkttQTtlUNhJ.mjs → 4I91cUxK20diss1h.mjs} +2 -2
- package/browser/esm/{-PjSkPHFfAt1m6Vt.mjs → 5rz7F7bxGUbrs5iV.mjs} +3917 -3918
- package/browser/esm/{CNSUJ5uEFudyM0Zy.mjs → B3PzotUu4mTd2IzA.mjs} +1 -1
- package/{node/esm/va2rg6eByFJ__BNX.mjs → browser/esm/BIVOOX8sBIdLDhOL.mjs} +1 -1
- package/browser/esm/{DEDEwMZdXBpLywrc.mjs → BQdD2z9DOSwSDRyO.mjs} +1 -1
- package/browser/esm/{4MFrq1GLlW6b7Zaw.mjs → BUsD0sqaploWbALV.mjs} +1 -1
- package/browser/esm/{CboKw4pbDH0gmNak.mjs → BcfepocKxsDkB8jH.mjs} +1 -1
- package/{node/esm/8URKJXdZnrdp4p4G.mjs → browser/esm/BfZiIh35GoHcIOWw.mjs} +1 -1
- package/browser/esm/{Dq0ataLFT4KBYWfB.mjs → BhVmbmKrBGoi2BPy.mjs} +1 -1
- package/{node/esm/CAjb6cDH0y1xK6k8.mjs → browser/esm/BuYH1e_PwnIa2W9T.mjs} +1 -1
- package/{node/esm/CV7XkmrpSMppVsej.mjs → browser/esm/C9ZqjXCEDLsq_v8A.mjs} +1 -1
- package/{node/esm/B2M5P7hoeBPqH-ah.mjs → browser/esm/CCALhGqcryjqX8ej.mjs} +1 -1
- package/browser/esm/{DguU3M6BHdVTZnMT.mjs → CFPgGK187dVyWIbD.mjs} +1 -1
- package/{node/esm/C8ZJ64zHCAugI_HP.mjs → browser/esm/CL4B6HB3Mw9WRxOT.mjs} +1 -1
- package/{node/esm/Dr-T9YBKHNWk4AN7.mjs → browser/esm/CZRpdZoMMRFV3GZb.mjs} +1 -1
- package/browser/esm/{JdN9d-P0v80_VRus.mjs → CdZD6UpIyAmHz2IM.mjs} +1 -1
- package/browser/esm/{BAN16V0j5M3OBD15.mjs → Cdhxjv7xkdZE1WhJ.mjs} +1 -1
- package/browser/esm/{BXbHSwGWymFp_2ns.mjs → CeKTsgavn-mqNA1V.mjs} +1 -1
- package/browser/esm/{Dr9yPoh7xxeMixhe.mjs → Cfazr7mrw0wWuHxq.mjs} +1 -1
- package/browser/esm/{BoVeFmCaOptdpx29.mjs → Cl1cxaAG4peb-ZLa.mjs} +2 -2
- package/browser/esm/{Dpp0MRNkr9GoupYn.mjs → D9P3WlL62Cwvph8q.mjs} +3 -3
- package/{node/esm/BQkJG3Epk-oBxY9Q.mjs → browser/esm/DBFbzhs6KknM7XBi.mjs} +1 -1
- package/browser/esm/{DtntyCUwzvjK5BAE.mjs → DRGLEC0ip1StZ-jZ.mjs} +1 -1
- package/{node/esm/B_UcqA3UgKFP51pQ.mjs → browser/esm/DRbXtbvdyhqwEfDn.mjs} +1 -1
- package/browser/esm/{CemLfNgVQuBG7s1J.mjs → DSNldqBNajxlvNSm.mjs} +1 -1
- package/{node/esm/BORlUX9nhLi5B7u8.mjs → browser/esm/DqvEHUoio9KEvK60.mjs} +1 -1
- package/browser/esm/{DNwhC3fSHqPim-E9.mjs → eH1jwuQioCrBlIfD.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/{browser/esm/va2rg6eByFJ__BNX.mjs → node/esm/BIVOOX8sBIdLDhOL.mjs} +1 -1
- package/node/esm/{DEDEwMZdXBpLywrc.mjs → BQdD2z9DOSwSDRyO.mjs} +1 -1
- package/node/esm/{4MFrq1GLlW6b7Zaw.mjs → BUsD0sqaploWbALV.mjs} +1 -1
- package/node/esm/{BrH7VQx8vE9foIj5.mjs → BXXzMMrR8wwAECRP.mjs} +1 -1
- package/node/esm/{CboKw4pbDH0gmNak.mjs → BcfepocKxsDkB8jH.mjs} +1 -1
- package/{browser/esm/8URKJXdZnrdp4p4G.mjs → node/esm/BfZiIh35GoHcIOWw.mjs} +1 -1
- package/node/esm/{B6kDiB8b_jdd7FW9.mjs → BtIS_GU4cqypGglS.mjs} +2 -2
- package/{browser/esm/CAjb6cDH0y1xK6k8.mjs → node/esm/BuYH1e_PwnIa2W9T.mjs} +1 -1
- package/{browser/esm/CV7XkmrpSMppVsej.mjs → node/esm/C9ZqjXCEDLsq_v8A.mjs} +1 -1
- package/{browser/esm/B2M5P7hoeBPqH-ah.mjs → node/esm/CCALhGqcryjqX8ej.mjs} +1 -1
- package/node/esm/{DguU3M6BHdVTZnMT.mjs → CFPgGK187dVyWIbD.mjs} +1 -1
- package/node/esm/{D8yMF8hXS8M75D1E.mjs → CHkws9Q2y3EyvobG.mjs} +1 -1
- package/{browser/esm/C8ZJ64zHCAugI_HP.mjs → node/esm/CL4B6HB3Mw9WRxOT.mjs} +1 -1
- package/node/esm/{BZbX52PEktlB57N4.mjs → CMilMCmPksGr9MNw.mjs} +1 -1
- package/node/esm/{B63aEz8AX-cWx_CY.mjs → CPFVSs4PE477t3Yt.mjs} +1 -1
- package/{browser/esm/Dr-T9YBKHNWk4AN7.mjs → node/esm/CZRpdZoMMRFV3GZb.mjs} +1 -1
- package/node/esm/{BXbHSwGWymFp_2ns.mjs → CeKTsgavn-mqNA1V.mjs} +1 -1
- package/node/esm/{DXZpbg5rGExBcISh.mjs → D-0QdPGcLyDXR21u.mjs} +1 -1
- package/{browser/esm/BQkJG3Epk-oBxY9Q.mjs → node/esm/DBFbzhs6KknM7XBi.mjs} +1 -1
- package/node/esm/{DtntyCUwzvjK5BAE.mjs → DRGLEC0ip1StZ-jZ.mjs} +1 -1
- package/{browser/esm/B_UcqA3UgKFP51pQ.mjs → node/esm/DRbXtbvdyhqwEfDn.mjs} +1 -1
- package/node/esm/{ColLZZTrZtZMbQg9.mjs → DckkOP8yE5zNk_n9.mjs} +1 -1
- package/node/esm/{Gwjg8tTIdX4QsWKz.mjs → Dovyk08WR6zy4JU5.mjs} +1 -1
- package/{browser/esm/BORlUX9nhLi5B7u8.mjs → node/esm/DqvEHUoio9KEvK60.mjs} +1 -1
- package/node/esm/{BaPKR2Tqb0dPI52A.mjs → YIo6Auzr1WiuP866.mjs} +1 -1
- package/node/esm/index.mjs +768 -777
- package/package.json +4 -4
- package/browser/cjs/BkEzdVRpjF_lWC0e.cjs +0 -54
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.1
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -18,8 +18,8 @@ const M = (t2, e2) => {
|
|
|
18
18
|
e2.get(r2) !== t3 && n2.set(r2, t3);
|
|
19
19
|
}), n2;
|
|
20
20
|
};
|
|
21
|
-
let
|
|
22
|
-
class
|
|
21
|
+
let N = false;
|
|
22
|
+
class T {
|
|
23
23
|
constructor(t2) {
|
|
24
24
|
this._record = t2;
|
|
25
25
|
}
|
|
@@ -44,15 +44,15 @@ class N {
|
|
|
44
44
|
}
|
|
45
45
|
class k {
|
|
46
46
|
constructor(t2) {
|
|
47
|
-
this._listeners = /* @__PURE__ */ new Set(), this._listenersState = /* @__PURE__ */ new Map(), this._commits = /* @__PURE__ */ new Map(), this._locked = false, this._current = null, this._pending = null, this._isSync = t2?.sync ??
|
|
48
|
-
const e2 = { id: "0", description: "initial", meta: {}, author: this._author, timestamp: Date.now(), states: /* @__PURE__ */ new Map(), version: 0, previousId: null }, n2 = { record: e2, commit: new
|
|
47
|
+
this._listeners = /* @__PURE__ */ new Set(), this._listenersState = /* @__PURE__ */ new Map(), this._commits = /* @__PURE__ */ new Map(), this._locked = false, this._current = null, this._pending = null, this._isSync = t2?.sync ?? N, this._isTransient = t2?.transient ?? false, this._author = t2?.author;
|
|
48
|
+
const e2 = { id: "0", description: "initial", meta: {}, author: this._author, timestamp: Date.now(), states: /* @__PURE__ */ new Map(), version: 0, previousId: null }, n2 = { record: e2, commit: new T(e2) };
|
|
49
49
|
this._current = n2, this._cacheModel = null, this._cacheState = null, this._states = e2.states, this._transactionStack = [], this._transactionOpen = false;
|
|
50
50
|
const r2 = /* @__PURE__ */ new Map();
|
|
51
51
|
r2.set(e2.id, n2), this._commits = r2;
|
|
52
52
|
}
|
|
53
53
|
static {
|
|
54
54
|
this.setDefaultSync = (t2) => {
|
|
55
|
-
|
|
55
|
+
N = t2;
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
getLog(t2, e2 = 100) {
|
|
@@ -132,7 +132,7 @@ class k {
|
|
|
132
132
|
};
|
|
133
133
|
let l2;
|
|
134
134
|
if (0 === n2.length) {
|
|
135
|
-
const e3 = this._current.record, n3 = { states: /* @__PURE__ */ new Map(), id: o.uuidV4(), description: "string" == typeof t2 ? t2 : t2?.description ?? null, meta: {}, timestamp: Date.now(), author: null, version: e3.version + 1, previousId: e3.id, viewBefore: null, viewAfter: {}, operation: t2?.operation }, r3 = { record: n3, commit: new
|
|
135
|
+
const e3 = this._current.record, n3 = { states: /* @__PURE__ */ new Map(), id: o.uuidV4(), description: "string" == typeof t2 ? t2 : t2?.description ?? null, meta: {}, timestamp: Date.now(), author: null, version: e3.version + 1, previousId: e3.id, viewBefore: null, viewAfter: {}, operation: t2?.operation }, r3 = { record: n3, commit: new T(n3) };
|
|
136
136
|
this._pending = r3, this._notify("onCommitStart", r3.commit), l2 = new O(this, r3, e3?.states, t2, a2);
|
|
137
137
|
} else {
|
|
138
138
|
l2 = n2[n2.length - 1].beginTransaction(t2, a2);
|
|
@@ -377,18 +377,18 @@ class B extends s {
|
|
|
377
377
|
}
|
|
378
378
|
const L = () => {
|
|
379
379
|
try {
|
|
380
|
-
return "0.
|
|
380
|
+
return "0.7.1";
|
|
381
381
|
} catch (t2) {
|
|
382
382
|
return "";
|
|
383
383
|
}
|
|
384
|
-
},
|
|
384
|
+
}, z = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
|
|
385
385
|
try {
|
|
386
|
-
return "
|
|
386
|
+
return "Sat Sep 06 2025";
|
|
387
387
|
} catch (t2) {
|
|
388
388
|
return "";
|
|
389
389
|
}
|
|
390
|
-
}, getBuildVersion: L }, Symbol.toStringTag, { value: "Module" })),
|
|
391
|
-
https://www.sheetxl.com ${L()}`,
|
|
390
|
+
}, getBuildVersion: L }, Symbol.toStringTag, { value: "Module" })), P = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", W = `
|
|
391
|
+
https://www.sheetxl.com ${L()}`, H = "#1976d2", V = "#FFA726", $ = Object.freeze(Object.defineProperty({ __proto__: null, generateNodeId: async () => {
|
|
392
392
|
if (!o.isNode()) return null;
|
|
393
393
|
const t2 = await import(
|
|
394
394
|
/* @vite-ignore */
|
|
@@ -412,10 +412,10 @@ const L = () => {
|
|
|
412
412
|
"chalk"
|
|
413
413
|
)).default;
|
|
414
414
|
t3.level = 2;
|
|
415
|
-
const e2 = t3.hex(
|
|
416
|
-
return console.log(e2(
|
|
415
|
+
const e2 = t3.hex(H), n2 = t3.hex(V);
|
|
416
|
+
return console.log(e2(P) + n2(W));
|
|
417
417
|
} catch (t3) {
|
|
418
|
-
return console.log(
|
|
418
|
+
return console.log(P + "\n" + W + "\n");
|
|
419
419
|
}
|
|
420
420
|
}, printDetails: async (t2, e2 = false, n2 = false, r2 = false) => {
|
|
421
421
|
let o2;
|
|
@@ -425,7 +425,7 @@ const L = () => {
|
|
|
425
425
|
"chalk"
|
|
426
426
|
)).default;
|
|
427
427
|
s2.level = 2;
|
|
428
|
-
const i2 = s2.red, a2 = s2.hex(
|
|
428
|
+
const i2 = s2.red, a2 = s2.hex(H), l2 = s2.hex(V), c2 = t2.isEval();
|
|
429
429
|
if (c2 ? (o2 = "Evaluation Only", console.log(i2(o2)), o2 = "Please visit https://my.sheetxl.com to register.", console.log(a2(o2))) : (o2 = `Licensee: ${t2.licensee() ?? "Invalid License"}
|
|
430
430
|
`, o2 += `Expires: ${t2.expiration()?.toLocaleDateString() ?? "Never"}`, t2.domains() && t2.domains().length > 0 && (o2 += `
|
|
431
431
|
Domains: ${t2.domains().join(", ")}`), t2.cpuCount() > 0 && (o2 += `
|
|
@@ -457,58 +457,77 @@ KeyFrom: '${t2.keyFrom()}'`, console.log(l2(o2))), Promise.resolve();
|
|
|
457
457
|
return r2.join("");
|
|
458
458
|
})(t2, n2 - e2), G = (t2) => "object" == typeof window ? window.atob(t2) : Buffer.from(t2, "base64").toString("ascii");
|
|
459
459
|
function U(t2, e2, n2, r2, o2) {
|
|
460
|
-
return Q(
|
|
460
|
+
return Q(n2 - 850, t2);
|
|
461
461
|
}
|
|
462
462
|
function J(t2, e2, n2, r2, o2) {
|
|
463
|
-
return Q(
|
|
463
|
+
return Q(r2 - -239, n2);
|
|
464
464
|
}
|
|
465
465
|
function q(t2, e2, n2, r2, o2) {
|
|
466
|
-
return Q(
|
|
467
|
-
}
|
|
468
|
-
function K(t2, e2, n2, r2, o2) {
|
|
469
|
-
return Q(e2 - -918, t2);
|
|
466
|
+
return Q(t2 - 482, r2);
|
|
470
467
|
}
|
|
471
468
|
!(function() {
|
|
472
|
-
const t2 = "
|
|
473
|
-
function
|
|
474
|
-
return Q(
|
|
469
|
+
const t2 = "d(nN", e2 = "Z(rN", n2 = 39, r2 = 753, o2 = "%PVG", s2 = 875, i2 = "^x^]", a2 = 446, l2 = 851, c2 = 294;
|
|
470
|
+
function h2(t3, e3, n3, r3, o3) {
|
|
471
|
+
return Q(n3 - c2, o3);
|
|
472
|
+
}
|
|
473
|
+
function d2(t3, e3, n3, r3, o3) {
|
|
474
|
+
return Q(o3 - -505, t3);
|
|
475
475
|
}
|
|
476
|
+
const u2 = it();
|
|
476
477
|
function g2(t3, e3, n3, r3, o3) {
|
|
477
|
-
return Q(
|
|
478
|
+
return Q(t3 - 406, e3);
|
|
478
479
|
}
|
|
479
480
|
function m2(t3, e3, n3, r3, o3) {
|
|
480
|
-
return Q(
|
|
481
|
-
}
|
|
482
|
-
function f2(t3, e3, n3, r3, o3) {
|
|
483
|
-
return Q(o3 - c2, n3);
|
|
481
|
+
return Q(e3 - -167, t3);
|
|
484
482
|
}
|
|
485
|
-
function p2(t3, e3, n3, r3, o3) {
|
|
486
|
-
return Q(e3 - 818, n3);
|
|
487
|
-
}
|
|
488
|
-
const _2 = st();
|
|
489
483
|
for (; ; ) try {
|
|
490
|
-
if (
|
|
491
|
-
|
|
484
|
+
if (132215 === parseInt(d2(t2, 0, 0, 0, -41)) / 1 + parseInt(d2(e2, 0, 0, 0, n2)) / 2 + parseInt(h2(0, 0, r2, 0, o2)) / 3 + parseInt(d2("M^Q)", 0, 0, 0, 35)) / 4 * (-parseInt(g2(882, "iS3%")) / 5) + parseInt(g2(1034, "(nKA")) / 6 + parseInt(h2(0, 0, s2, 0, "PPw3")) / 7 + parseInt(m2(i2, a2)) / 8 * (-parseInt(h2(0, 0, l2, 0, "y4%(")) / 9)) break;
|
|
485
|
+
u2.push(u2.shift());
|
|
492
486
|
} catch (t3) {
|
|
493
|
-
|
|
487
|
+
u2.push(u2.shift());
|
|
494
488
|
}
|
|
495
489
|
})();
|
|
496
|
-
const
|
|
497
|
-
const t2 = "
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
490
|
+
const K = () => {
|
|
491
|
+
const t2 = 215, e2 = 242, n2 = "1kNl", r2 = 606, s2 = "fb1v", i2 = 456, a2 = 157;
|
|
492
|
+
if (typeof window === u2(187, 81, 141, 104, "@@2h")) return window[u2(t2, 245, 297, e2, n2)][l2 = r2, c2 = s2, Q(l2 - a2, c2)];
|
|
493
|
+
var l2, c2, h2, d2;
|
|
494
|
+
function u2(t3, e3, n3, r3, o2) {
|
|
495
|
+
return Q(r3 - -331, o2);
|
|
496
|
+
}
|
|
497
|
+
return o[h2 = 955, d2 = "d(nN", Q(h2 - i2, d2)]();
|
|
498
|
+
}, X = () => {
|
|
499
|
+
const t2 = "*eT2", e2 = "^eP$";
|
|
500
|
+
function n2(t3, e3, n3, r2, o2) {
|
|
501
|
+
return Q(o2 - -787, t3);
|
|
502
|
+
}
|
|
503
|
+
return K()[n2(t2, 0, 0, 0, -312)](n2(e2, 0, 0, 0, -237)) || K() === n2("*eT2", 0, 0, 0, -350);
|
|
504
|
+
}, Y = (t2) => {
|
|
505
|
+
const e2 = 977, n2 = "2Iqj", r2 = 1612, s2 = 1599, i2 = 1524, a2 = "(nKA", l2 = 379, c2 = 439, h2 = "zr%%", d2 = "zJ0w", u2 = 361, g2 = 182, m2 = 1e3, f2 = 401;
|
|
506
|
+
let p2 = o[w2("EoPR", -229)];
|
|
507
|
+
if (X() || o[_2 = e2, S2 = n2, Q(_2 - f2, S2)]()) {
|
|
508
|
+
const t3 = z[C2(1623, r2, "1kNl", s2, i2)](), e3 = new Date(t3), n3 = /* @__PURE__ */ new Date(), o2 = 864e5;
|
|
509
|
+
Math[w2(a2, -332)]((n3[y2(393, l2, "^x^]", 301)]() - e3[y2(376, c2, "zr%%", 408)]()) / o2) >= 120 && (p2 = [w2(h2, -246)]);
|
|
510
|
+
} else p2 = [];
|
|
511
|
+
var _2, S2;
|
|
512
|
+
function w2(t3, e3, n3, r3, o2) {
|
|
513
|
+
return Q(e3 - -784, t3);
|
|
514
|
+
}
|
|
515
|
+
function y2(t3, e3, n3, r3, o2) {
|
|
516
|
+
return Q(r3 - -202, n3);
|
|
517
|
+
}
|
|
518
|
+
function E2(t3, e3, n3, r3, o2) {
|
|
519
|
+
return Q(t3 - -404, o2);
|
|
520
|
+
}
|
|
521
|
+
function C2(t3, e3, n3, r3, o2) {
|
|
522
|
+
return Q(o2 - m2, n3);
|
|
523
|
+
}
|
|
524
|
+
return { licensee: () => E2(102, 0, 0, 0, "C#0b"), expiration: () => null, domains: () => [K()], developerCount: () => 1, cpuCount: () => 0, type: () => C2(0, 0, "Gcy[", 0, 1598), isEval: () => true, exceptions: () => p2, isValidFor: () => 0 === p2[y2(0, 0, "hy(B", 402)], isValid: () => false, features: () => Object[w2("pb[A", -273)]({}), keyFrom: () => t2, getBuildVersion: z[y2(0, 0, d2, u2)], getBuildDate: z[E2(g2, 0, 0, 0, "XLf$")] };
|
|
503
525
|
};
|
|
504
|
-
function Y(t2, e2, n2, r2, o2) {
|
|
505
|
-
return Q(o2 - 304, n2);
|
|
506
|
-
}
|
|
507
526
|
function Q(t2, e2) {
|
|
508
|
-
const n2 =
|
|
527
|
+
const n2 = it();
|
|
509
528
|
return Q = function(e3, r2) {
|
|
510
|
-
let o2 = n2[e3 -=
|
|
511
|
-
if (void 0 === Q.
|
|
529
|
+
let o2 = n2[e3 -= 435];
|
|
530
|
+
if (void 0 === Q.aGJDjY) {
|
|
512
531
|
const e4 = function(t3, e5) {
|
|
513
532
|
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
514
533
|
for (t3 = (function(t4) {
|
|
@@ -522,107 +541,82 @@ function Q(t2, e2) {
|
|
|
522
541
|
for (let e6 = 0; e6 < t3.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t3.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
|
|
523
542
|
return i3;
|
|
524
543
|
};
|
|
525
|
-
Q.
|
|
544
|
+
Q.SOFNIm = e4, t2 = arguments, Q.aGJDjY = true;
|
|
526
545
|
}
|
|
527
546
|
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
528
|
-
return i2 ? o2 = i2 : (void 0 === Q.
|
|
547
|
+
return i2 ? o2 = i2 : (void 0 === Q.xHnpli && (Q.xHnpli = true), o2 = Q.SOFNIm(o2, r2), t2[s2] = o2), o2;
|
|
529
548
|
}, Q(t2, e2);
|
|
530
549
|
}
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
return X()[r2 = "5f&I", o2 = t2, Q(o2 - n2, r2)](Q(-478 - -857, e2)) || X() === Q(-122 - -416, "IRrt");
|
|
534
|
-
var r2, o2;
|
|
535
|
-
}, tt = (t2) => {
|
|
536
|
-
const e2 = "wHAb", n2 = "Y8y^", r2 = 39, s2 = "D4iA", i2 = 121, a2 = 225, l2 = 696, c2 = 677;
|
|
537
|
-
function h2(t3, e3, n3, r3, o2) {
|
|
538
|
-
return Q(e3 - 326, r3);
|
|
539
|
-
}
|
|
540
|
-
function d2(t3, e3, n3, r3, o2) {
|
|
541
|
-
return Q(o2 - c2, r3);
|
|
542
|
-
}
|
|
543
|
-
function u2(t3, e3, n3, r3, o2) {
|
|
544
|
-
return Q(n3 - -429, r3);
|
|
545
|
-
}
|
|
546
|
-
let g2 = o[d2(0, 0, 0, ")m6U", 1035)];
|
|
547
|
-
if (Z() || o[d2(0, 0, 0, e2, 992)]()) {
|
|
548
|
-
const t3 = P[u2(0, 0, -121, "vF!A")](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), l3 = 864e5;
|
|
549
|
-
Math[m2(105, 85, n2)]((o2[f2(-43, 49, -98, "4@UV")]() - e3[f2(26, -73, r2, s2)]()) / l3) >= 120 && (g2 = [m2(i2, a2, "bs4T")]);
|
|
550
|
-
} else g2 = [];
|
|
551
|
-
function m2(t3, e3, n3, r3, o2) {
|
|
552
|
-
return Q(t3 - -185, n3);
|
|
553
|
-
}
|
|
554
|
-
function f2(t3, e3, n3, r3, o2) {
|
|
555
|
-
return Q(t3 - -369, r3);
|
|
556
|
-
}
|
|
557
|
-
return { licensee: () => u2(0, 0, -132, "7oHq"), expiration: () => null, domains: () => [X()], developerCount: () => 1, cpuCount: () => 0, type: () => d2(0, 0, 0, "wHAb", 1043), isEval: () => true, exceptions: () => g2, isValidFor: () => 0 === g2[u2(0, 0, -81, ")m6U")], isValid: () => false, features: () => Object[h2(0, 564, 0, "koaZ")]({}), keyFrom: () => t2, getBuildVersion: P[h2(0, l2, 0, "Tn4x")], getBuildDate: P[d2(0, 0, 0, "zFWy", 1089)] };
|
|
558
|
-
}, et = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
559
|
-
let nt = false, rt = false;
|
|
560
|
-
const ot = J("aAM[", 60)[q(0, 0, 0, 640, "aAM[")]("")[q(0, 0, 0, 729, "zC*6")]((t2, e2) => e2 + t2, "");
|
|
561
|
-
function st() {
|
|
562
|
-
const t2 = ["WRZcSmk8WRBdKCoW", "WQBcQejm", "WO7dQ8kVDMxcS19HW6fu", "j8kMsmkLoxddI8krW7pcSW", "WRqXpSoBcSopyCoTvKS", "n3lcRbK", "WOqiu8oCkJ5ZWQLGWODhWOfwWOitpcSx", "zCkjWPldPItcPW", "nSkwW6/cQCkbW6PyW7RdVSkjWQhdTmkfh8kprSomxJq", "cmouvLVcGexdQLxcGNWaFW", "g8k6qZZdRW", "W60csSoynxD5W6zXW59AWOLqWOapDq", "W4FcPSkwFq", "WOtdMezCnmkUWP13avJcVGtdMGhdI8oa", "W67cVmk+ActdQW", "fuTMkCozf8kkW5mxW7pcLtG", "k8kJBupcU8kHWPxdVNNdUSo9gmkPcIy", "oHtcRSoeW6zVxSk2W51NW5RdJa", "gSk5dSoPW7xcSSkTWPZcKq", "FeXso3jlW6rGWQW2acVdRv0", "zmkUbtarW4JdLHm", "jbZdVZDlWO0RWPhcKG", "oXxcQSkpWQ/dMMtcGvDevmkt", "urNcI8ksWQ5NocxdMCkVWRPvsLi", "WQFcRSkvr3tcK8o4", "FSotW5NdTSkYCrVdSeC", "WP7dSmkGD37cRg1FW7XiWO/dTxL0W5/cLCowuvu", "W4nSD8kxomoVE8okBLW", "CdlcItRcISopzYe", "W6hcOmk1W6DZnHiYW50", "W79ga8oeW65AaCowh8o4", "zKpcOSoOW5pcISkNw8oTyq", "vmoQW7KzW4bD", "WPy2WPPIeq", "b8oRfcS3dSk9hYy", "WPZdVSoMW4v4fdfCW7xdH8o0EqLAfSkvcCkyymoRDW3dJZ5KvMvKW7W", "xwxdN8k2WOqbEq", "amoQW4nzW7PQ", "W6ZcN8k/lq", "ortdRSo8W4tcN8k2CmoG", "wmkCW6b8ymkg", "WPZdL8oGzfBcU28", "pXNcSSoJWRBdI3ZcGhznuW", "WRRcSLjfW45NWOTT", "WQlcVmk7WQBdNmoMu8k2qHS", "WRGYomooh8oND8k/w1VdOSkiWQymW4eWW7DewM0", "WPNdUSk6zxJcRhS", "kmoObI8", "amkGWP9pWPBdKwtcJSodW4aql8kCsW", "pmo4asy3bSkVoZevC8koWOe0", "EmkoWOVdRcVcPxm", "W6BdQmolgYZdKCondNNdHSkAoa", "cCkWEg3dRSkeWPddUuRdSCo8dSoGlI3dLq", "WOlcG0yHDYa0W5L7tMX0Da", "WQ0eW6hdLSoYddJcN8o4WOhcPrHZ", "WOBcKe0QAdC", "kbTWeeXjW6fg", "DSozW47dTSk3DqFdK0ewW6GaWQtcHW", "WOesFSkSWQahlsTevSoFna", "C0X9WPGUWPZdMba", "aSkPowtcTSk4WPddQe7dQ8oMbmkU", "zCo1W68vW6Dn", "W5nYW4DVcW0rwCow", "W4eEWQtcTSoNvaXKW6uLW4WW", "dSohu0dcKuFdUq", "qfn/WPePWOVdNahdVa", "WP01lCokhCo9DSouuKS", "rfLon25EW5rGWPy4dsldLW", "W7rggCoNW79g", "xHNcHSk1WRvKjG", "wCkbW6r0E8ktWRVcL8oHWQOIWPWbyG", "beVdJCodW79khbZdKCkaWRC", "WQ3dM8o0D8o5sSkDWP49W4fSW58", "jXZdVXHnWOu9", "qfvSWPqUWPS", "wSocW4NcTq8N", "CK7cUZ5bWRGiWPBcSa", "W6VcQSkvEthdRW", "W5fnaCoHW6DhbmkFp8oIWQfbW79Il8kitY/dHrNdMCoTcw/dPeJdRG", "cSknW6xcOSkBW51yWQ7dUSkyWR3dRG", "z8kYbcy8W4q", "WRnpWP0uWRzsWPVdTSkhxxGxuSoCWOZcTYBcNSo5pa", "BCkoWPBdPJxcSMlcNCkMW6zEymoBfW", "AGRcNSkFWQ5VkGhdJG", "Dmo4xCk1WQtcL8kBWOhcJGjw", "W73cOmkfEmoBW7tcHKjvW5ZcUZW", "WQNcSr3dT8k7W4JdLbjoaSkcWOPRW55s", "WQOttSk4W4bpcmoQkSoL", "WQ7cJqGKDYS", "AuJdRSk8WOm", "rqNcJmkB", "w8kwW7vWAmkA", "WR7cSSkms3hcICo5", "tComW4JdVSkWBtddPKCEW68yWRi", "oSo3W5bzW7G+", "WQpcJuuIzZWnW59R", "D8osW4W", "c8osxKFcGhldMeJcL30", "WQihW6iozCoVW5DcW6q0", "W5hdPConbCkgW40Q", "t8oiW5BcSrqTWQa", "W6Xgd8o0", "D8kHdtyJW6FdLa", "AfxcGmonW5RcL8kI", "WQhdN1nynSk0WPWCcK4", "dmojC1RcL2ddO0tcP3qyACoynSohW6NdH2u", "lXJcU8kOWQ7dI2tcUN9mq8ktWOFdKmo/eNWPfa", "m8o1W5y", "wSo/hwBcO8ooox3cSHysga", "W6TxfSoYW79Dn8owb8oJ", "WQaAW7uVCmoVW59eW6y0", "WRykW7mVDmoJW5O", "AGVdVWpcMYxcHeyCBGKa", "WPtdG8kAWPxcMmkK", "WOVdMCkNWPpcImoH", "pmoQW4rZW7TRWPhcJG", "WQeds8oAmJ8", "z8kLadCZW5pdHWG", "lWdcSSkKWQ4", "kHCUW4TZWPxdQXZdNCk3jq", "WP9zWOGqWQPpWPBcUCkfrW", "maNdPXbq", "W6ZcQSkcwdFdQaK", "lv5GaSoccSkKW5yVW7JcGJKVW57cHW", "p8kYEhpcUSk7WQ7dS1VdTW", "mSkSrmkTihFdHW", "WRWqW7/dImoLgXVcNSobWP3cUbnJ", "kmkJBwdcP8kKWOO", "WPXmW73dPCkRda", "WR3cSr3dVSkRW5G", "W7FcVCksCdhdHqxcJ0RcKtm", "vmkxW556DSkA", "WR0utmotmHv2W6DRWPPf", "AGZcJCkAWQL/", "WOnpW5FdTx0wvxddK3bmqcy/jfP5W57cTL4", "WR3dHf9qmCk0WPW", "WOeRWP1Lfaq7FSobW6BdKW", "cCkPrdZdVSkmo2pcMt4SnqO", "dmkHgCoKW7dcV8kOW4JcKcTyWOCNBa", "W7VdPCkakmkgW4a8cq/dUSoOWRGgWQW", "lXZdPr5qWOe", "WQtdGSoMwvhcOKJdHmo+qmouWPS", "WQPfWOpdMNCc", "BCo2W6qFW5W", "gSk/hCoSW7lcOG", "ACo7W6uEW4TBW6bsyLSeWPxdSW", "WQlcSqFdKSk6W4K", "CJldSLRdTSkcjKZdHq", "W7NcHmk6e8kOca", "xSkFetePW5xdJstdKG", "W5NcNmkTkCk8g8kDWQedW5uaW50/i8k4AwLj", "hSods1BcNcNcQa/dJa", "WPatW67dLmo+gGNcMCo0", "nH/cOSkJWQi4rCkvW5C", "dCk2WR9lWPBdL3a", "WQCdW7GKzCoPW6zzW6ePW5malW", "CLPYmwrp", "WOddI8khWPlcICo2W4uuf0BdOtBcKG", "BCkoWOZdGtlcUNRcNmkSW6Hoya", "wLn/WPe1WO7dIrZdTSkaqmkkdmoaW4dcHYpcRCkTW7DVW6v+w8om", "A1XpnG", "WRdcUCkoAgJcICoXpfZdT8kzka", "WONcKx4UFJSa", "WONcKwyGDJC", "WQGEvCounc4", "WPxdSmk9Ch/cOwvT", "DLzBWOSHWOm", "jCk1xhFcR8kK", "W4VcO8k5FSorW6u", "j8owtvZcMNu", "WQTsWPldTgGE", "W7WuWPNdI1eXD10", "lConWQrLWRBdHY8p", "nwhcQqhcO8oQya", "pCoRfcS", "kXhcRCkDWQJdMMBcKxzb", "W5BcQCkhDa", "W5NdR8ooa8kBW4S", "WPavW73dKCo5cIZcImoLWO7cUbfK", "jbZdVY1nWOqR", "W4/cI8kGbWNdOghdHmo7B8o9WQm", "WOJdHSo1qKVcPv3dJmoKrG", "WPhcPbVdNmkGW5xdVbnSbSkzWPvX", "WOyHWODIfa8BwSoCW73dMbNdSSkX", "W47cTCkzDSobW6G", "l8oVW4jy", "nmoYuxv1W5VdTbldICo0W6C", "c8ods3NcNwldQK/cKhaNACoY", "wSkbW6rrD8klWQNcRSo/WRa", "WR/cKLOMFcyMW4P8tN1J", "Eub/WOK1WP3dMay", "WQLpWPRdShSvrW", "W6TxfSo0W75D", "dmosWQr5zmkrWRhcLmoR", "WR0tvSov", "rmkeW5JdRY7cShpcLSkBW6WADCoGhmoMW5OUf0i", "WPldMmkgWPhcHCo3W7a", "uxldQSkbWR8TwSkiW6K", "nmo4gYaQaG", "WOBdJ8kDWP3cHCoOW6y2dehdUYFcK3y", "rHNcI8k/WQ5OlHVdMmkJWP9evG", "WP05imoib8oM", "fSkwW6/cQCkbW6PyWPhdVSki", "BmoYW7ZcMsKgWONdT8kof8k/gahdUmkAW4hdGIOa", "WQKxrSkXWROFmmoPeSoBWRvr", "mmo0dXKfW6VdOt8", "wmoFW43cNGG3WQNdJmkuo8kolIBdHmkX"];
|
|
563
|
-
return (st = function() {
|
|
564
|
-
return t2;
|
|
565
|
-
})();
|
|
550
|
+
function Z(t2, e2, n2, r2, o2) {
|
|
551
|
+
return Q(t2 - 928, o2);
|
|
566
552
|
}
|
|
567
|
-
|
|
553
|
+
const tt = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
554
|
+
let et = false, nt = false;
|
|
555
|
+
const rt = J(0, 0, "MkQZ", 312)[J(0, 0, "N52t", 293)]("")[J(0, 0, "(#%@", 382)]((t2, e2) => e2 + t2, "");
|
|
556
|
+
class ot {
|
|
568
557
|
constructor() {
|
|
569
|
-
|
|
570
|
-
|
|
558
|
+
const t2 = "ndz*", e2 = 1385;
|
|
559
|
+
function n2(t3, n3, r2, o2, s2) {
|
|
560
|
+
return at(r2, n3 - e2);
|
|
571
561
|
}
|
|
572
|
-
this[
|
|
562
|
+
this[n2(0, 1120, "6oX5")][n2(0, 1166, t2)] = null;
|
|
573
563
|
}
|
|
574
|
-
async [
|
|
575
|
-
const n2 =
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
return Y(0, 0, t3, 0, e3 - -241);
|
|
581
|
-
}
|
|
582
|
-
if (!t2 || t2[T2("np%a", 319)](T2(n2, 323)) || t2[T2("D4iA", r2)](O2(s2, 299, i2)) || t2[N2(a2, 111, 45)](N2(l2, 216, 161)) || t2[O2(c2, h2, d2)](O2("9HF0", u2, 341))) return nt = true, await this[F2(23, -30, -110, -60, g2)](true);
|
|
583
|
-
function N2(t3, e3, n3, r3, o2) {
|
|
584
|
-
return U(0, 0, 0, n3 - -970, t3);
|
|
564
|
+
async [at("%PVG", -273)](t2, e2 = false) {
|
|
565
|
+
const n2 = 258, r2 = "fdu9", s2 = 327, i2 = "ndz*", a2 = 124, l2 = 88, c2 = "N52t", h2 = 183, d2 = 1240, u2 = "MkQZ", g2 = 1337, m2 = 1332, f2 = 1393, p2 = 1398, _2 = "V4rJ", S2 = "PPw3", w2 = 1398, y2 = "^x^]", E2 = 1440, C2 = "J4bH", b2 = "C#0b", v2 = "(#%@", x2 = 1359, I2 = "zJ0w", R2 = "2Iqj", A2 = "9^MW", M2 = "zr%%";
|
|
566
|
+
if (!t2 || t2[F2(148, "*0Ao", 227)](F2(n2, r2, s2)) || t2[N2 = i2, T2 = -374, U(N2, 0, T2 - -1662)](D2("C#0b", a2, l2)) || t2[D2(c2, 198, 103)](F2(131, "@g[L", h2)) || t2[O2(1316, d2, u2, 1290)](O2(1253, 1188, "bg0!", 1260))) return et = true, await this[F2(244, "V4rJ", 208)](true);
|
|
567
|
+
var N2, T2;
|
|
568
|
+
function k2(t3, e3, n3, r3, o2) {
|
|
569
|
+
return U(t3, 0, r3 - -1);
|
|
585
570
|
}
|
|
586
|
-
if (
|
|
587
|
-
const t3 = await this[
|
|
588
|
-
if (t3[
|
|
571
|
+
if (et = false, !e2 && tt[k2("V4rJ", 0, 0, g2)]) {
|
|
572
|
+
const t3 = await this[k2("d(nN", 0, 0, m2)]();
|
|
573
|
+
if (t3[O2(f2, p2, _2, 1309)]() && !t3[k2(S2, 0, 0, 1318)]()) return t3;
|
|
589
574
|
}
|
|
590
|
-
et[O2("zC*6", p2, 500)] = t2, et[N2("YQX1", 0, 43)] = F2(-77, -26, -23, -12, "B^dn"), et[N2(_2, 0, -6)] = null, et[O2(n2, 401, S2)] = null;
|
|
591
|
-
const k2 = await this[F2(w2, 126, -73, 29, y2)]();
|
|
592
|
-
if (!k2[M2(E2, 0, 279)]()) throw await this[F2(51, 16, 22, C2, s2)](true), new Error(O2("NeE#", b2, 216));
|
|
593
575
|
function F2(t3, e3, n3, r3, o2) {
|
|
594
|
-
return
|
|
576
|
+
return q(t3 - -807, 0, 0, e3);
|
|
595
577
|
}
|
|
596
578
|
function O2(t3, e3, n3, r3, o2) {
|
|
597
|
-
return
|
|
579
|
+
return J(0, 0, n3, r3 - 1052);
|
|
598
580
|
}
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
if (!(await this[N2(x2, 0, 4)]())[N2("wp%w", 0, 83)]()) throw await this[T2(I2, 449)](true), new Error(M2(")m6U", 0, R2));
|
|
581
|
+
function D2(t3, e3, n3, r3, o2) {
|
|
582
|
+
return U(t3, 0, n3 - -1232);
|
|
602
583
|
}
|
|
603
|
-
|
|
584
|
+
tt[k2("bg0!", 0, 0, w2)] = t2, tt[O2(0, 0, "1kNl", 1308)] = k2("zJ0w", 0, 0, 1433), tt[O2(0, 0, "9^MW", 1373)] = null, tt[O2(0, 0, "zr%%", 1333)] = null;
|
|
585
|
+
const B2 = await this[k2(y2, 0, 0, E2)]();
|
|
586
|
+
if (!B2[O2(0, 0, C2, 1372)]()) throw await this[D2("1X0#", 0, 212)](true), new Error(k2(b2, 0, 0, 1303));
|
|
587
|
+
if (o[O2(0, 0, v2, x2)]()) {
|
|
588
|
+
await $[D2(I2, 0, 126)](t2, e2);
|
|
589
|
+
if (!(await this[k2("ndz*", 0, 0, 1315)]())[O2(0, 0, R2, 1261)]()) throw await this[k2(A2, 0, 0, 1411)](true), new Error(F2(299, M2));
|
|
590
|
+
}
|
|
591
|
+
return B2;
|
|
604
592
|
}
|
|
605
|
-
async [
|
|
606
|
-
const e2 = "
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
593
|
+
async [at("XLf$", -202)](t2 = false) {
|
|
594
|
+
const e2 = "8Kh3", n2 = 1565, r2 = "Wn7e", s2 = 387, i2 = "*eT2", a2 = "zr%%", l2 = 48, c2 = 46, h2 = "C#0b", d2 = 85, u2 = 286, g2 = 766, m2 = "kWr2", f2 = 710, p2 = 359, _2 = 709, S2 = "0D9k", w2 = "MkQZ", y2 = "zr%%", E2 = "EEi2", C2 = 52, b2 = 222, v2 = "Z(rN", x2 = 192, I2 = "1X0#", R2 = 125, A2 = "5(RO", M2 = 713, N2 = "iS3%", T2 = "@@2h", k2 = 1447, F2 = "V4rJ", O2 = "N52t", D2 = "$%W4", B2 = 1179, L2 = 728, P2 = "zJ0w", W2 = 775, H2 = 430, V2 = 237;
|
|
595
|
+
function U2(t3, e3, n3, r3, o2) {
|
|
596
|
+
return J(0, 0, o2, n3 - 10);
|
|
597
|
+
}
|
|
598
|
+
function q2(t3, e3, n3, r3, o2) {
|
|
599
|
+
return Z(t3 - -1647, 0, 0, 0, e3);
|
|
610
600
|
}
|
|
611
|
-
if (
|
|
612
|
-
|
|
613
|
-
|
|
601
|
+
if (tt[U2(0, 0, 291, 0, "zr%%")]) return tt[q2(-257, e2)];
|
|
602
|
+
if (!this[q2(-258, "$%W4")][ut2(n2, r2)] && (this[U2(0, 0, s2, 0, i2)][st2(a2, 81, l2, c2)] = new Error("FV")), tt[st2(h2, 124, 31, 61)]) return tt[q2(-184, "Z(rN")];
|
|
603
|
+
let ot2 = null;
|
|
604
|
+
function st2(t3, e3, n3, r3, o2) {
|
|
605
|
+
return at(t3, r3 - V2);
|
|
614
606
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
St2 = t3;
|
|
607
|
+
tt[st2("1X0#", d2, -31, 54)] = new Promise((t3) => {
|
|
608
|
+
ot2 = t3;
|
|
618
609
|
});
|
|
619
|
-
let
|
|
620
|
-
function
|
|
621
|
-
return
|
|
610
|
+
let it2, lt2 = null;
|
|
611
|
+
function ct2(t3, e3, n3, r3, o2) {
|
|
612
|
+
return J(0, 0, n3, t3 - H2);
|
|
622
613
|
}
|
|
623
|
-
const
|
|
614
|
+
const ht2 = async (t3, e3) => {
|
|
615
|
+
function n3(t4, e4, n4, r3, o2) {
|
|
616
|
+
return st2(n4, 0, 0, e4 - W2);
|
|
617
|
+
}
|
|
624
618
|
try {
|
|
625
|
-
const
|
|
619
|
+
const r3 = ((t4) => {
|
|
626
620
|
let e4 = t4;
|
|
627
621
|
const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
|
|
628
622
|
if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = G(e4), e4 = e4.trim(), e4[e4.length - 1] !== n4) throw new Error();
|
|
@@ -634,203 +628,200 @@ class it {
|
|
|
634
628
|
} catch (t5) {
|
|
635
629
|
throw new Error("Invalid license key.");
|
|
636
630
|
}
|
|
637
|
-
})(e3),
|
|
638
|
-
const r4 =
|
|
639
|
-
function
|
|
640
|
-
return Q(
|
|
641
|
-
}
|
|
642
|
-
function a4(t5, e5, n5, r5, o3) {
|
|
643
|
-
return Q(r5 - s4, n5);
|
|
631
|
+
})(e3), s3 = ((t4, e4, n4) => {
|
|
632
|
+
const r4 = 519, o2 = "zJ0w", s4 = "iS3%", i3 = 1207, a3 = 54, l3 = 267;
|
|
633
|
+
function c3(t5, e5, n5, r5, o3) {
|
|
634
|
+
return Q(r5 - l3, o3);
|
|
644
635
|
}
|
|
645
|
-
function
|
|
646
|
-
return Q(o3 -
|
|
636
|
+
function h3(t5, e5, n5, r5, o3) {
|
|
637
|
+
return Q(o3 - -945, t5);
|
|
647
638
|
}
|
|
648
|
-
function
|
|
649
|
-
return Q(
|
|
639
|
+
function d3(t5, e5, n5, r5, o3) {
|
|
640
|
+
return Q(r5 - a3, o3);
|
|
650
641
|
}
|
|
651
|
-
function
|
|
652
|
-
return Q(
|
|
642
|
+
function u3(t5, e5, n5, r5, o3) {
|
|
643
|
+
return Q(n5 - -513, t5);
|
|
653
644
|
}
|
|
654
|
-
return { licensee: () => t4[
|
|
655
|
-
return !(e4?.[n5 =
|
|
656
|
-
var n5,
|
|
657
|
-
}, isValid: () => true, isEval: () => false, features: () => Object[
|
|
658
|
-
})(
|
|
659
|
-
const e4 =
|
|
660
|
-
function
|
|
661
|
-
return Q(
|
|
645
|
+
return { licensee: () => t4[d3(0, 0, 0, 554, "N52t")], expiration: () => new Date(t4[d3(0, 0, 0, 646, "T1ou")]), domains: () => t4[c3(0, 0, 0, 711, "d(nN")] ?? [], developerCount: () => t4[d3(0, 0, 0, 602, "zJ0w")] ?? 1, cpuCount: () => t4[h3("1X0#", 0, 0, 0, -417)] ?? 0, type: () => t4[h3("*eT2", 0, 0, 0, -506)] ?? h3("fdu9", 0, 0, 0, -365), exceptions: () => e4, isValidFor: (t5) => {
|
|
646
|
+
return !(e4?.[n5 = 1303, r5 = s4, u3(r5, 0, n5 - i3)] > 0);
|
|
647
|
+
var n5, r5;
|
|
648
|
+
}, isValid: () => true, isEval: () => false, features: () => Object[c3(0, 0, 0, 852, "kWr2")](t4[h3("*eT2", 0, 0, 0, -355)] ?? {}), keyFrom: () => n4, getBuildVersion: z[u3("PPw3", 0, -23)], getBuildDate: z[d3(0, 0, 0, r4, o2)] };
|
|
649
|
+
})(r3, await (async (t4) => {
|
|
650
|
+
const e4 = 452, n4 = 386, r4 = 344, s4 = "T1ou", i3 = "Wn7e", a3 = "XLf$", l3 = "ndz*", c3 = "0D9k", h3 = "(#%@", d3 = "8Kh3", u3 = "f#!7", g3 = "fdu9", m3 = 578, f3 = "d(nN", p3 = t4[S3(-290, -342, "0D9k", -364, -376)];
|
|
651
|
+
function _3(t5, e5, n5, r5, o2) {
|
|
652
|
+
return Q(t5 - -19, o2);
|
|
662
653
|
}
|
|
663
|
-
const _3 = t4[b3(-514, -493, -510, -588, n4)] ? new Date(t4[C3(-264, -334, "koaZ")]) : null;
|
|
664
654
|
function S3(t5, e5, n5, r5, o2) {
|
|
665
|
-
return Q(
|
|
655
|
+
return Q(o2 - -892, n5);
|
|
666
656
|
}
|
|
667
|
-
|
|
668
|
-
|
|
657
|
+
const w3 = t4[y3(412, e4, n4, r4, "zJ0w")] ? new Date(t4[E3(-90, -54, -17, -93, s4)]) : null;
|
|
658
|
+
function y3(t5, e5, n5, r5, o2) {
|
|
659
|
+
return Q(n5 - -105, o2);
|
|
669
660
|
}
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
return Q(e5 - -728, n5);
|
|
661
|
+
function E3(t5, e5, n5, r5, o2) {
|
|
662
|
+
return Q(r5 - -685, o2);
|
|
673
663
|
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
const t5 = await $[b3(0, 0, 0, -581, "1*M[")]();
|
|
680
|
-
t5 !== y3 && E3[p3(0, "7oHq", c4)](b3(0, 0, 0, -443, h4) + y3 + p3(0, "S(8&", d3) + t5);
|
|
664
|
+
const C3 = t4[_3(520, 0, 0, 0, "*0Ao")], b3 = [];
|
|
665
|
+
if (w3 ? isNaN(w3) ? b3[v3(-143, -89, -241, "J4bH")](_3(549, 0, 0, 0, "%PVG")) : w3 < /* @__PURE__ */ new Date() && b3[v3(-43, -71, -134, "Z(rN")](v3(-147, -154, -78, a3) + w3[S3(0, 0, "^x^]", 0, -286)]()) : b3[_3(601, 0, 0, 0, i3)](S3(0, 0, a3, 0, -278)), o[S3(0, 0, "Wn7e", 0, -320)]()) {
|
|
666
|
+
if (!C3) return b3[v3(-34, -89, -51, l3)](_3(424, 0, 0, 0, "f#!7")), b3;
|
|
667
|
+
const t5 = await $[E3(0, 0, 0, -155, "%PVG")]();
|
|
668
|
+
t5 !== C3 && b3[y3(0, 0, 350, 0, c3)](_3(475, 0, 0, 0, h3) + C3 + y3(0, 0, 377, 0, "^x^]") + t5);
|
|
681
669
|
} else {
|
|
682
|
-
if (
|
|
683
|
-
if (
|
|
670
|
+
if (X()) return b3;
|
|
671
|
+
if (p3 && 0 !== p3[S3(0, 0, "^x^]", 0, -351)]) {
|
|
684
672
|
let t5 = false;
|
|
685
|
-
const e5 =
|
|
686
|
-
for (let n5 = 0; !t5 && n5 <
|
|
687
|
-
!t5 &&
|
|
688
|
-
} else
|
|
673
|
+
const e5 = K();
|
|
674
|
+
for (let n5 = 0; !t5 && n5 < p3[S3(0, 0, g3, 0, -305)]; n5++) t5 = e5[_3(m3, 0, 0, 0, "A1X&")](p3[n5]);
|
|
675
|
+
!t5 && b3[v3(-43, -47, -141, "Z(rN")](_3(584, 0, 0, 0, f3));
|
|
676
|
+
} else b3[S3(0, 0, d3, 0, -280)](E3(0, 0, 0, -118, u3));
|
|
677
|
+
}
|
|
678
|
+
function v3(t5, e5, n5, r5, o2) {
|
|
679
|
+
return Q(t5 - -636, r5);
|
|
689
680
|
}
|
|
690
|
-
return
|
|
691
|
-
})(
|
|
692
|
-
return
|
|
681
|
+
return b3;
|
|
682
|
+
})(r3), t3);
|
|
683
|
+
return s3[n3(0, L2, P2)]()[n3(0, 761, "@g[L")] > 0 && (it2 = s3), s3;
|
|
693
684
|
} catch (e4) {
|
|
694
|
-
|
|
695
|
-
const e5 =
|
|
696
|
-
function
|
|
697
|
-
return Q(
|
|
685
|
+
it2 = ((t4) => {
|
|
686
|
+
const e5 = 427;
|
|
687
|
+
function n4(t5, e6, n5, r4, o3) {
|
|
688
|
+
return Q(t5 - -401, e6);
|
|
698
689
|
}
|
|
699
|
-
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () =>
|
|
700
|
-
return [(
|
|
701
|
-
var
|
|
702
|
-
}, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[
|
|
703
|
-
var
|
|
690
|
+
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => n4(85, "%PVG"), exceptions: () => {
|
|
691
|
+
return [(r4 = 584, o3 = "*0Ao", n4(r4 - e5, o3) + t4 + "'")];
|
|
692
|
+
var r4, o3;
|
|
693
|
+
}, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[n4(104, "bg0!")]({}), keyFrom: () => t4, getBuildVersion: z[s3 = "z%n[", i3 = 1309, Q(i3 - 739, s3)], getBuildDate: z[r3 = 350, o2 = "V4rJ", Q(r3 - -224, o2)] };
|
|
694
|
+
var r3, o2, s3, i3;
|
|
704
695
|
})(t3);
|
|
705
696
|
}
|
|
706
|
-
var n3, r3, s3, i3, a3, l3;
|
|
707
697
|
};
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
if (
|
|
714
|
-
if (o[
|
|
715
|
-
if (!
|
|
716
|
-
const t3 = process[
|
|
717
|
-
e3 && (
|
|
698
|
+
tt[st2("V4rJ", 0, 0, -73)] && (lt2 = await ht2(tt[U2(0, 0, u2, 0, "8Kh3")], tt[ct2(g2, 0, "6oX5")]));
|
|
699
|
+
let dt2 = false;
|
|
700
|
+
function ut2(t3, e3, n3, r3, o2) {
|
|
701
|
+
return J(0, 0, e3, t3 - B2);
|
|
702
|
+
}
|
|
703
|
+
if (et && (dt2 = true, lt2 = Y(ut2(1471, "z%n["))), !lt2) {
|
|
704
|
+
if (o[q2(-182, "M^Q)")]()) {
|
|
705
|
+
if (!lt2) {
|
|
706
|
+
const t3 = process[st2(m2, 0, 0, 17)], e3 = t3[ct2(672, 0, "9^MW")] || t3[ct2(f2, 0, "EEi2")] || t3[U2(0, 0, p2, 0, "EoPR")] || t3[ct2(_2, 0, S2)];
|
|
707
|
+
e3 && (lt2 = await ht2(U2(0, 0, 324, 0, "zJ0w"), e3));
|
|
718
708
|
}
|
|
719
|
-
if (!
|
|
720
|
-
const t3 = await $[
|
|
721
|
-
t3 && (
|
|
709
|
+
if (!lt2) {
|
|
710
|
+
const t3 = await $[q2(-241, w2)]();
|
|
711
|
+
t3 && (lt2 = await ht2(q2(-269, "%PVG"), t3));
|
|
722
712
|
}
|
|
723
|
-
!
|
|
713
|
+
!lt2 && (dt2 = true);
|
|
724
714
|
} else {
|
|
725
|
-
if (!
|
|
726
|
-
const t3 = await fetch("./" +
|
|
715
|
+
if (!lt2) try {
|
|
716
|
+
const t3 = await fetch("./" + rt);
|
|
727
717
|
let e3 = null;
|
|
728
|
-
if (200 === t3[
|
|
729
|
-
const n3 = (await t3[
|
|
730
|
-
for (let t4 = 0; !e3 && t4 < n3[
|
|
731
|
-
const r3 = n3[t4][
|
|
732
|
-
r3[
|
|
718
|
+
if (200 === t3[ct2(820, 0, y2)]) {
|
|
719
|
+
const n3 = (await t3[st2(E2, 0, 0, -C2)]())[st2("@g[L", 0, 0, 47)]("\n");
|
|
720
|
+
for (let t4 = 0; !e3 && t4 < n3[U2(0, 0, b2, 0, v2)]; t4++) {
|
|
721
|
+
const r3 = n3[t4][q2(-x2, "bg0!")]();
|
|
722
|
+
r3[st2(I2, 0, 0, -R2)]("#") || 0 === r3[st2(A2, 0, 0, -82)] || (e3 = r3);
|
|
733
723
|
}
|
|
734
724
|
}
|
|
735
725
|
if (e3) {
|
|
736
|
-
const t4 =
|
|
737
|
-
|
|
726
|
+
const t4 = st2("A1X&", 0, 0, -9) + rt + "')";
|
|
727
|
+
lt2 = await ht2(t4, e3);
|
|
738
728
|
}
|
|
739
729
|
} catch (t3) {
|
|
740
730
|
}
|
|
741
|
-
!
|
|
731
|
+
!lt2 && X() && (dt2 = true);
|
|
742
732
|
}
|
|
743
733
|
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
if (!yt2 && vt2 && (yt2 = tt(Et2(1167, 0, 0, W2))), !yt2 && wt2 && (yt2 = wt2), !yt2 && (yt2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [bt2(0, "1*M[", 0, 0, 768)], isValidFor: (t3) => false, isValid: () => false, features: () => Object[xt2(544, 452, 539, "82H$")]({}), keyFrom: () => pt2(0, 0, -662, 0, "wp%w"), getBuildVersion: P[pt2(0, 0, -544, 0, "y9y7")], getBuildDate: P[bt2(0, "1*M[", 0, 0, 731)] }), et[Et2(1155, 0, 0, V2)] = yt2, St2(yt2), t2) {
|
|
748
|
-
if (!(et[bt2(0, J2, 0, 0, 834)] && et[pt2(0, 0, -494, 0, q2)]) && (vt2 || yt2[xt2(0, 0, 569, "T&K4")]()[bt2(0, "c$^#", 0, 0, st2)] > 0 || yt2[xt2(0, 0, it2, "82H$")]()?.pb)) {
|
|
749
|
-
if (rt) return void setTimeout(() => {
|
|
734
|
+
if (!lt2 && dt2 && (lt2 = Y(ct2(M2, 0, N2))), !lt2 && it2 && (lt2 = it2), !lt2 && (lt2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [U2(0, 0, 272, 0, "(#%@")], isValidFor: (t3) => false, isValid: () => false, features: () => Object[ut2(1505, "%PVG")]({}), keyFrom: () => ut2(1529, "pb[A"), getBuildVersion: z[ct2(733, 0, "*0Ao")], getBuildDate: z[ut2(1414, h2)] }), tt[st2("(#%@", 0, 0, -40)] = lt2, ot2(lt2), t2) {
|
|
735
|
+
if (!(tt[q2(-163, T2)] && tt[ut2(k2, F2)]) && (dt2 || lt2[q2(-205, "zJ0w")]()[ct2(678, 0, O2)] > 0 || lt2[ut2(1453, D2)]()?.pb)) {
|
|
736
|
+
if (nt) return void setTimeout(() => {
|
|
750
737
|
var t3, e3;
|
|
751
|
-
this[t3 =
|
|
738
|
+
this[t3 = "*eT2", e3 = -216, st2(t3, 0, 0, e3 - -278)](false, false);
|
|
752
739
|
}, 8e3);
|
|
753
|
-
await this[
|
|
740
|
+
await this[st2("8Kh3", 0, 0, -16)](false, false);
|
|
754
741
|
}
|
|
755
742
|
}
|
|
756
|
-
return
|
|
757
|
-
}
|
|
758
|
-
async [Y(0, 0, "!5j0", 0, 673)](t2) {
|
|
759
|
-
const e2 = "np%a", n2 = 236, r2 = "8NNN", o2 = "4@UV";
|
|
760
|
-
function s2(t3, e3, n3, r3, o3) {
|
|
761
|
-
return U(0, 0, 0, n3 - -892, e3);
|
|
762
|
-
}
|
|
763
|
-
var i2, a2;
|
|
764
|
-
function l2(t3, e3, n3, r3, o3) {
|
|
765
|
-
return Y(0, 0, r3, 0, n3 - -1228);
|
|
766
|
-
}
|
|
767
|
-
et[i2 = -379, a2 = "T&K4", J(a2, i2 - -345)] = true;
|
|
768
|
-
const c2 = await this[s2(0, e2, n2)]();
|
|
769
|
-
return await $[s2(0, "YQX1", 129)](t2), !et[l2(0, 0, -594, r2)] && (c2[s2(0, "bs4T", 165)]() || c2[s2(0, "NeE#", 119)]()[l2(0, 0, -637, o2)] > 0) && await this[h2 = -641, d2 = "c$^#", U(0, 0, 0, h2 - -1714, d2)](t2), Promise[l2(0, 0, -520, "1*M[")]();
|
|
770
|
-
var h2, d2;
|
|
743
|
+
return tt[U2(0, 0, 405, 0, D2)];
|
|
771
744
|
}
|
|
772
|
-
async [q(
|
|
773
|
-
const r2 =
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
const c2 = await this[u2(-512, -568, -544, -568, "dway")]();
|
|
777
|
-
var h2, d2;
|
|
778
|
-
et[u2(-593, -661, -591, -550, "T#(5")] || !(c2[g2(r2, -40, o2)]() || c2[g2(s2, -51, "3RV7")]()[h2 = 246, d2 = i2, Y(0, 0, d2, 0, h2 - -389)] > 0) ? await $[g2(0, -182, "!hfE")](c2, t2, e2, n2) : await this[u2(-665, -767, -691, -740, "wHAb")](t2);
|
|
779
|
-
function u2(t3, e3, n3, r3, o3) {
|
|
780
|
-
return q(0, 0, 0, t3 - -1272, o3);
|
|
781
|
-
}
|
|
745
|
+
async [q(1113, 0, 0, "$%W4")](t2) {
|
|
746
|
+
const e2 = "(nKA", n2 = "EoPR", r2 = 1441, o2 = "zr%%", s2 = 1046, i2 = "A1X&", a2 = 679, l2 = 723, c2 = "6oX5", h2 = 602, d2 = 1696;
|
|
747
|
+
tt[S2(-129, -65, -119, "ndz*")] = true;
|
|
748
|
+
const u2 = await this[S2(-341, -187, -281, e2)]();
|
|
782
749
|
function g2(t3, e3, n3, r3, o3) {
|
|
783
|
-
return
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
function
|
|
794
|
-
return
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
const
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
750
|
+
return U(r3, 0, o3 - -688);
|
|
751
|
+
}
|
|
752
|
+
var m2, f2, p2, _2;
|
|
753
|
+
function S2(t3, e3, n3, r3, o3) {
|
|
754
|
+
return J(0, 0, r3, n3 - -513);
|
|
755
|
+
}
|
|
756
|
+
return await $[g2(0, 0, 0, n2, 660)](t2), !tt[p2 = "y4%(", _2 = r2, at(p2, _2 - d2)] && (u2[g2(0, 0, 0, o2, 607)]() || u2[m2 = "d(nN", f2 = s2, at(m2, f2 - 1308)]()[g2(0, 0, 0, i2, a2)] > 0) && await this[g2(0, 0, 0, "d(nN", l2)](t2), Promise[g2(0, 0, 0, c2, h2)]();
|
|
757
|
+
}
|
|
758
|
+
async [U("2Iqj", 0, 1318)](t2 = false, e2 = false, n2 = false) {
|
|
759
|
+
const r2 = "0D9k", o2 = 162, s2 = 1413, i2 = 1443, a2 = 1061, l2 = 1214, c2 = 1350, h2 = 1395, d2 = 1341, u2 = 1382, g2 = "NSX(", m2 = 289, f2 = 1416, p2 = "EoPR", _2 = 1614, S2 = 1333;
|
|
760
|
+
function w2(t3, e3, n3, r3, o3) {
|
|
761
|
+
return at(t3, r3 - S2);
|
|
762
|
+
}
|
|
763
|
+
tt[w2("%PVG", 0, 0, 1165)] = true;
|
|
764
|
+
const y2 = await this[E2 = r2, C2 = o2, U(E2, 0, C2 - -1198)]();
|
|
765
|
+
var E2, C2, b2, v2;
|
|
766
|
+
tt[x2(1462, s2, i2, "A1X&")] || !(y2[w2("Wn7e", 0, 0, a2)]() || y2[x2(l2, c2, 1296, "M^Q)")]()[x2(h2, d2, u2, g2)] > 0) ? await $[x2(0, 0, f2, p2)](y2, t2, e2, n2) : await this[b2 = "2Iqj", v2 = m2, U(b2, 0, v2 - -1024)](t2);
|
|
767
|
+
function x2(t3, e3, n3, r3, o3) {
|
|
768
|
+
return at(r3, n3 - _2);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
async [at("ndz*", -352)](t2, e2) {
|
|
772
|
+
const n2 = 956, r2 = 874, s2 = 793, i2 = 776, a2 = "6oX5", l2 = 1085, c2 = "bg0!", h2 = 966, d2 = "2Iqj", u2 = 1153, g2 = 1430;
|
|
773
|
+
if (!t2 && (tt[E2("9^MW", 836, 872, 909, 919)] || tt[m2 = 880, f2 = "f#!7", U(f2, 0, m2 - -474)])) return;
|
|
774
|
+
var m2, f2, p2, _2;
|
|
775
|
+
tt[E2("Z(rN", n2, r2, 815, 857)] = true, tt[p2 = -196, _2 = "KOkN", U(_2, 0, p2 - -1487)] = true, await this[E2("d(nN", s2, i2, 826, 797)](t2);
|
|
776
|
+
const S2 = o[w2 = a2, y2 = l2, at(w2, y2 - g2)]();
|
|
777
|
+
var w2, y2;
|
|
778
|
+
function E2(t3, e3, n3, r3, o2) {
|
|
779
|
+
return at(t3, o2 - u2);
|
|
780
|
+
}
|
|
781
|
+
const C2 = t2 || S2 ? console[E2("KOkN", 0, 0, 0, 972)] : o[E2(c2, 0, 0, 0, h2)];
|
|
782
|
+
S2 && C2(""), await this[E2(d2, 0, 0, 0, 823)](t2, e2), C2("");
|
|
783
|
+
}
|
|
784
|
+
[J(0, 0, "XLf$", 366)]() {
|
|
785
|
+
return this[t2 = -40, e2 = "J4bH", J(0, 0, e2, t2 - -335)]();
|
|
804
786
|
var t2, e2;
|
|
805
787
|
}
|
|
806
|
-
[
|
|
807
|
-
return this[e2 =
|
|
788
|
+
[Z(1527, 0, 0, 0, "5(RO")](t2) {
|
|
789
|
+
return this[e2 = "NSX(", n2 = 497, Z(n2 - -1050, 0, 0, 0, e2)](true, t2);
|
|
808
790
|
var e2, n2;
|
|
809
791
|
}
|
|
810
|
-
[
|
|
811
|
-
const t2 =
|
|
812
|
-
return
|
|
813
|
-
var
|
|
792
|
+
[q(1108, 0, 0, "^eP$")]() {
|
|
793
|
+
const t2 = 789, e2 = "^x^]", n2 = 516;
|
|
794
|
+
return tt[s2 = "zJ0w", i2 = 300, q(i2 - -783, 0, 0, s2)] || tt[r2 = t2, o2 = e2, J(0, 0, o2, r2 - n2)];
|
|
795
|
+
var r2, o2, s2, i2;
|
|
814
796
|
}
|
|
815
|
-
[
|
|
816
|
-
|
|
797
|
+
[at("(nKA", -326)](t2) {
|
|
798
|
+
nt = true;
|
|
817
799
|
}
|
|
818
|
-
async [
|
|
819
|
-
return this[t2 = "
|
|
800
|
+
async [at("MkQZ", -166)]() {
|
|
801
|
+
return this[t2 = "(#%@", e2 = 304, U(t2, 0, e2 - -1069)](true);
|
|
820
802
|
var t2, e2;
|
|
821
803
|
}
|
|
822
|
-
async [
|
|
823
|
-
const n2 = "
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
return await this[a2 = -732, l2 = "I9Rj", J(l2, a2 - -610)](true, t2, e2), o2;
|
|
804
|
+
async [U("N52t", 0, 1310)](t2, e2) {
|
|
805
|
+
const n2 = 1269, r2 = "PPw3", o2 = "PPw3", s2 = 733, i2 = await this[a2 = n2, l2 = r2, at(l2, a2 - 1490)]();
|
|
806
|
+
var a2, l2, c2, h2;
|
|
807
|
+
return await this[c2 = o2, h2 = 951, J(0, 0, c2, h2 - s2)](true, t2, e2), i2;
|
|
827
808
|
}
|
|
828
|
-
async [
|
|
809
|
+
async [J(0, 0, "y4%(", 356)]() {
|
|
829
810
|
var t2, e2;
|
|
830
|
-
return await $[t2 =
|
|
811
|
+
return await $[t2 = "z%n[", e2 = -504, q(e2 - -1470, 0, 0, t2)]();
|
|
831
812
|
}
|
|
832
813
|
}
|
|
833
|
-
const
|
|
814
|
+
const st = new ot();
|
|
815
|
+
function it() {
|
|
816
|
+
const t2 = ["D8kEWQxcQ8oSha", "BgGIWQCBmSkN", "AvdcG8oyW4vc", "brf3WRetW7RcSCkP", "stbcW7BdId5ed8kR", "W6tdKxddM8oMW48", "W5ZdJmkzWO4", "W7pdK2tcOruN", "WReoWP/cUZjNW7/cTty", "W7RdJw7dJCoEW4FcMaldUq", "jCkBhCkvWPBdL2tcRq", "umkEWPvU", "W7CTWO/cGMy", "B3iUWQWBdSkUWRpdILLTWPi", "f3NdGtVdKSkEj8ose0JcRCkgva", "W4tdRCoCWPq", "f8kqWQRcSSkIbmkKWPFdHCocEmoeW4iw", "WPdcNmozgSk1cq", "W4ldNNVdPCosW5FcMb/dSmkb", "yILVW7xdGJTjhSkkrCkrW6VcUSoDwgbQWQW", "xMxdUmkaW6PSW6C", "W45amK5t", "W6hdH8kbymkanq", "t2hdOmkHW6zhW7q", "W7xcThSmWR0xWPWPWRn/WRrTWQBdPmoov3rbgW", "vCo4y8k5", "lJjmW63dIrb0", "W6VdLc/dHmopW5pcKatdVCkgtrFcPG", "W5ZdKxNcPriGlW", "pcTMWRCjW7ZcU8kfoq", "WRuXW50", "W7FcM2/cJr3cMIxdTcT8WQi", "bvC7cSkUCq", "o2n9eG", "W4fLW5HPW4LD", "W4fDEmk+BmkUWQ8", "parKWQWiW7W", "ywRdOSkuW6ndW7xdG3y4yZDUWPFcOvBcUCozDxu", "pxDId8k8hSoT", "WRBdJYxdQL/cPdZdKGTp", "iSkuf8kiWQtdJedcT8oZW4nCW5HF", "kMFcGmoxWPLuuSoiWPdcLGq", "w3ddTCkbW7Pz", "brSSWQeButK1pmkGW6hcHSoUW5y", "W7OaW6pcVCkjW5qXgCoRW6JcP8kc", "Ad/cJmk4WPhcVumCWQCSDG", "W5BdUCobWPicW5yIDSoZcresW78", "W4evW6xcTCkoW4Wa", "WO3cHxpcPCkQWP4", "W5/dL3FcUG8Ght9yW5W", "uKyHW6TwWQBdPmo0vW", "W4FdRmooWO4tW5CLBCoUdW", "fW1MWQa", "W5iNcCkMhr8P", "WR07W47cT8oWWPJdMqJcJsKZAgKq", "aCkoWQ7cUSkGgCkcW5BdJ8odCmox", "es7dHcdcI8ksbt4SltTWjmoSDxdcOXldOwXXg8k2W79IiCoch8oF", "oSkrWRhcSSkNa8kZ", "qxFdKCkdW65g", "W6VdQmoDWPujW5a", "W7pcRxqt", "lmowuuldSSoBW4i", "kbHMWQdcHqTKsq", "aHe2WQyBwHKriCk7W6O", "W4ddNmkeWOhdUH4", "EJ7dLSkpW5S", "W4KXnmkMfqW", "W7HbyCkYACk0WQ5dj8kOeSkjoSo+fCkxfXKlWPK", "eSoeW5BcMq", "W4Lcn0zl", "W4BcQHDXW4ddHfRdMwxdV3VdK8kV", "W5BdLs7dS8o4W57dGIFdGCkEESo6", "vuXVW7ndctGobmkDW7VcGa", "bspdSmotAsXbtaZcUx5a", "W7OVW6hcPSkiW5qCj8oA", "vCo/F8k8WQFdN0K", "gSovDuRdSmogW6tcO8ohWQ/cG8oq", "BmopW6RdOCo5wCkOW4xdR8oACmoG", "eN3dMXFdGSkfg8oepKFcRCkg", "W6VdRSooWPaoW4atCmo/", "WP7cKcFdUujLmbLAW5pdH8ov", "gSovDuRdSmogW6lcP8oDWQdcJ8ooW6e", "W7dcQsbUW4/dNa", "W5rcDSk6ACo9", "EZFdJCkKW4X3rmoZWRNcSG", "BYFdICkqW5TMvSoPWOxcSZ9TW64", "W7dcMmkQWQySW6S+pSoZma", "W5zky8krCmk0WQyhd8kGbCkj", "bHPYWRyXW6hcOmkY", "WRRcLmoEn8onAmoEWOdcVmksWRi7", "AZNcHmkKWPhcJhuBWR0H", "FYJcKCkDWOdcHG", "W6S6WOJcI2BdMG", "WOhdJGa3W6ZcKCkuWQxdMCkF", "WOS0AN/cOSoXDSkNwConfCkFEcjhwW9GtW", "nIjmW7/dKNPlfmk6bmkiW6/cNCokqIK", "aCkiWR3cV8kNcCkHW4pdHa", "W7nwW7TOm2pcH8ktWQTGW4FcOCkoWQa", "bIxdUmopArTZurNcUa", "cbaUWQeEvc4", "gttdT8oAAqa", "a8o2WR9JW7ZdPwRcQfNdMW", "W6NdKMZdHmozW5dcNfBdUCkkvbhcUSkqW4OzB0ZcKG", "W77cVXfAW5VdMxldMeFdU2ddJmk1WObX", "egddNZZdHCkv", "WPD0s8o5sfWyWRVdRSoZqJK", "DcRcQb4", "W7PUW4P9W4zrW53cVIJcTN7cVc58xf4", "xSkABapdOqLX", "bSoSWOPNW77dV2S", "W6NcGbq2agutyem+rYvL", "B3iUWQWBcmkQWQNdHvvZ", "oCkBWQJcNmkD", "gtJdUSoyCXTbxq", "W71VWPXWW4nBW5ZdSdxcVdRcQrv3ebFdUuzP", "W47dMmkeWOJdQWqTW5ZdTIZdJapcKa", "CsnxW47dIdDa", "osldKYtcJmkne04WkYeKn8oP", "W7dcQxaAWQGE", "W7rzDSk/Cmk8WR4kjmkVuCkGpCoUfCozdXK", "c8o6WQHNW7VdUNZcS07dIX3dQ8kKra", "bN3dMX7dKSkv", "emkJWQba", "bCouW5hcTCkKW7BcI8oAsmkL", "qu3dHSowW5PE", "CInxW7VdIdzwk8k8tCklW7RcJmon", "W4mvW7dcOmksW5iwcW", "egddJdddH8kyhSopffu", "tSoOACkxWRZdG0e", "bSoEW4JcKmkOW6ZcMq", "lmkqf8kbWRxdLG", "eCozW4dcLmk1W7RcHSoSsmk/WOlcQmkXf8o/WR9rjmo+", "n8koWP1Xl8kEaW", "whBdU8kyW6zzW7q", "W5DLW4H9W4nuW4O", "W4pdJCops8kDpSoVWQ3cPSkyW7CAEmo9", "W6XWW451W4rmW7VdVYJcT3/cQW", "uSkAyqFdPG9Ws8o1WOGLW6K", "eHSSWOWBxI8lpCkSW4tcL8oY", "iMvldmk4na", "W6lcQxWs", "W4/dK2pcIXqMjci", "W6HVWONdOSkSW4lcMJlcQXyktgG", "bHS2WQuaxd4aamkMW6VcL8ocW5y", "W5ffW7rHyu7cMSkvWObHW5dcOCoNWO/cICk0", "bIhdTCouAq", "W78DcSk7hH0JWQFdMa", "wYNcUHRcUSocW4ldVrW", "W5ZdI8kfWOVdPWuy", "o8kgWR/cTSk+gCkPW5JdJ8oE", "WO3dHs09W7JcGa", "BxldTCkzW7PlW6xcINu/icjLWPBcRrNcTSkCAsnhW7avWQFcNq", "W63cG8kVWRerW7W", "W5ddVsCxW4JcLSk/", "EInnW73dLti", "W6tcICk/WPyTW7efm8orprisy8oRW4S", "WRioWP/cLdrVW6NcRcddK8kdsMFdGq", "WP7cISoBW5FcT0ahW6hdQsxdQHC", "ESo9ySk4WQddMa", "W5PZW7jZW45D", "W5fvmebtW5G", "ex3dMtddM8kdb8ofcgxcTSkwxMe", "W7RcSNyAWRWiWPW1WR9Y", "WQ3dGtxdM0hcPt3dLrO", "EYtcICo4WONcH1yxWQWHDW", "jSkqdCkfWQNcLJFdQ8k1", "ehBdMqpdLSkE", "WRmuWQlcQuBdGr8", "wM03WRywc8k5WRxdIKK", "WOdcHNFcRSkSWPJdOd7dOSkKESoTWRu", "W6vzW53dG2G2WQpcMstdNSkRDxO", "W4RcGSk9WRu0W7enD8olmqmezmo3W4dcUSoOWQC8nv/dKmo/WOitW6qr", "BsZcJrFcV8opW4C", "WRWzw1VcN8ofsq", "aCkoWQ7cUSkGgCkeW5ldLComFmojW5G", "WOCmxvpcMmoD", "eN3dMXFdGSkfg8oelepcQ8kqwxO8", "WRODqvtcK8oBASkkFmoQiSk/uG", "bWW9WQuiwa", "nKiNbmk0Bq", "eYJcHYhcISkmaxCSmw8JiSoOENdcOvVdOMC", "kbaUWQeEvc5fk8kXW7/cM8o5W5m4W7TJsq", "mmoPWR1QW7VdSM7cL1K", "W7nwW6fpngVcN8ksWRnQW5hcT8kUWQVcGG", "i8kpWQtcU8oWpSox", "iMvafCk9pq", "wCkqDItdPW9Zqq", "cmo6WQHeW6FdV2pcH3JdGWFdUG", "W4WRgCkShXOPWRpdOSoL", "lmowsuZdUSox", "W77cVXfCW4VdHh/dLx3dRq", "b8oAW40", "W4ldUCodWOKcW6ie", "wmkuWQBcOCoTgSoVv8oq", "WQJdQ1ySWPVcHI7dLKxdIexdR8k4", "xCkUW6O0WQxcOMFcKxldLrBdMG", "BCksWRJcPCoSva", "bN3dMXNdNSkpeSoocupcKSkgsq", "bmogW57dOmkMma", "W4ldNNVdO8ocW4RcLrldMmktub0"];
|
|
817
|
+
return (it = function() {
|
|
818
|
+
return t2;
|
|
819
|
+
})();
|
|
820
|
+
}
|
|
821
|
+
function at(t2, e2, n2, r2, o2) {
|
|
822
|
+
return Q(e2 - -798, t2);
|
|
823
|
+
}
|
|
824
|
+
const lt = (t2, e2) => {
|
|
834
825
|
const n2 = [];
|
|
835
826
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
836
827
|
const o2 = t2[r2];
|
|
@@ -1617,8 +1608,8 @@ var At;
|
|
|
1617
1608
|
}, At.simpleComparator = function(t2, e2) {
|
|
1618
1609
|
return t2 > e2 ? 1 : t2 < e2 ? -1 : 0;
|
|
1619
1610
|
};
|
|
1620
|
-
const Mt = [-1, null],
|
|
1621
|
-
var
|
|
1611
|
+
const Mt = [-1, null], Nt = { done: false, value: [-1, null] };
|
|
1612
|
+
var Tt;
|
|
1622
1613
|
((t2) => {
|
|
1623
1614
|
t2.Builder = class {
|
|
1624
1615
|
constructor(t3, e3 = 0, n2 = 0) {
|
|
@@ -1711,7 +1702,7 @@ var Nt;
|
|
|
1711
1702
|
return h2 + d2.length !== t3 && (d2 = [], h2 = t3, l2.push([h2, d2])), d2.push(r2), this._majorMax = Math.max(this._majorMax, t3), this._minorIndex = n2, this;
|
|
1712
1703
|
}
|
|
1713
1704
|
build() {
|
|
1714
|
-
const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0,
|
|
1705
|
+
const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0, Nt);
|
|
1715
1706
|
let r2 = n2.next();
|
|
1716
1707
|
for (; !r2.done; ) {
|
|
1717
1708
|
const o2 = r2.value[1].span;
|
|
@@ -1727,7 +1718,7 @@ var Nt;
|
|
|
1727
1718
|
}
|
|
1728
1719
|
}
|
|
1729
1720
|
t2.OutOfOrderError = e2;
|
|
1730
|
-
})(
|
|
1721
|
+
})(Tt || (Tt = {}));
|
|
1731
1722
|
const kt = { lessThanXSeconds: { one: "less than a second", other: "less than {{count}} seconds" }, xSeconds: { one: "1 second", other: "{{count}} seconds" }, halfAMinute: "half a minute", lessThanXMinutes: { one: "less than a minute", other: "less than {{count}} minutes" }, xMinutes: { one: "1 minute", other: "{{count}} minutes" }, aboutXHours: { one: "about 1 hour", other: "about {{count}} hours" }, xHours: { one: "1 hour", other: "{{count}} hours" }, xDays: { one: "1 day", other: "{{count}} days" }, aboutXWeeks: { one: "about 1 week", other: "about {{count}} weeks" }, xWeeks: { one: "1 week", other: "{{count}} weeks" }, aboutXMonths: { one: "about 1 month", other: "about {{count}} months" }, xMonths: { one: "1 month", other: "{{count}} months" }, aboutXYears: { one: "about 1 year", other: "about {{count}} years" }, xYears: { one: "1 year", other: "{{count}} years" }, overXYears: { one: "over 1 year", other: "over {{count}} years" }, almostXYears: { one: "almost 1 year", other: "almost {{count}} years" } };
|
|
1732
1723
|
function Ft(t2) {
|
|
1733
1724
|
return (e2 = {}) => {
|
|
@@ -1765,8 +1756,8 @@ function Lt(t2) {
|
|
|
1765
1756
|
return { value: c2, rest: e2.slice(i2.length) };
|
|
1766
1757
|
};
|
|
1767
1758
|
}
|
|
1768
|
-
var
|
|
1769
|
-
const
|
|
1759
|
+
var zt;
|
|
1760
|
+
const Pt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
1770
1761
|
let r2;
|
|
1771
1762
|
const o2 = kt[t2];
|
|
1772
1763
|
return r2 = "string" == typeof o2 ? o2 : 1 === e2 ? o2.one : o2.other.replace("{{count}}", e2.toString()), n2?.addSuffix ? n2.comparison && n2.comparison > 0 ? "in " + r2 : r2 + " ago" : r2;
|
|
@@ -1781,14 +1772,14 @@ const zt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1781
1772
|
return n2 + "rd";
|
|
1782
1773
|
}
|
|
1783
1774
|
return n2 + "th";
|
|
1784
|
-
}, era: Bt({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" }), quarter: Bt({ values: { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }, defaultWidth: "wide", argumentCallback: (t2) => t2 - 1 }), month: Bt({ values: { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }, defaultWidth: "wide" }), day: Bt({ values: { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }, defaultWidth: "wide" }), dayPeriod: Bt({ values: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, defaultWidth: "wide", formattingValues: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, defaultFormattingWidth: "wide" }) }, match: { ordinalNumber: (
|
|
1785
|
-
const n2 = t2.match(
|
|
1775
|
+
}, era: Bt({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" }), quarter: Bt({ values: { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }, defaultWidth: "wide", argumentCallback: (t2) => t2 - 1 }), month: Bt({ values: { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }, defaultWidth: "wide" }), day: Bt({ values: { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }, defaultWidth: "wide" }), dayPeriod: Bt({ values: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, defaultWidth: "wide", formattingValues: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, defaultFormattingWidth: "wide" }) }, match: { ordinalNumber: (zt = { matchPattern: /^(\d+)(th|st|nd|rd)?/i, parsePattern: /\d+/i, valueCallback: (t2) => parseInt(t2, 10) }, (t2, e2 = {}) => {
|
|
1776
|
+
const n2 = t2.match(zt.matchPattern);
|
|
1786
1777
|
if (!n2) return null;
|
|
1787
|
-
const r2 = n2[0], o2 = t2.match(
|
|
1778
|
+
const r2 = n2[0], o2 = t2.match(zt.parsePattern);
|
|
1788
1779
|
if (!o2) return null;
|
|
1789
|
-
let s2 =
|
|
1780
|
+
let s2 = zt.valueCallback ? zt.valueCallback(o2[0]) : o2[0];
|
|
1790
1781
|
return s2 = e2.valueCallback ? e2.valueCallback(s2) : s2, { value: s2, rest: t2.slice(r2.length) };
|
|
1791
|
-
}), era: Lt({ matchPatterns: { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/^b/i, /^(a|c)/i] }, defaultParseWidth: "any" }), quarter: Lt({ matchPatterns: { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/1/i, /2/i, /3/i, /4/i] }, defaultParseWidth: "any", valueCallback: (t2) => t2 + 1 }), month: Lt({ matchPatterns: { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] }, defaultParseWidth: "any" }), day: Lt({ matchPatterns: { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] }, defaultParseWidth: "any" }), dayPeriod: Lt({ matchPatterns: { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }, defaultMatchWidth: "any", parsePatterns: { any: { am: /^a/i, pm: /^p/i, midnight: /^mi/i, noon: /^no/i, morning: /morning/i, afternoon: /afternoon/i, evening: /evening/i, night: /night/i } }, defaultParseWidth: "any" }) }, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } },
|
|
1782
|
+
}), era: Lt({ matchPatterns: { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/^b/i, /^(a|c)/i] }, defaultParseWidth: "any" }), quarter: Lt({ matchPatterns: { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/1/i, /2/i, /3/i, /4/i] }, defaultParseWidth: "any", valueCallback: (t2) => t2 + 1 }), month: Lt({ matchPatterns: { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] }, defaultParseWidth: "any" }), day: Lt({ matchPatterns: { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] }, defaultParseWidth: "any" }), dayPeriod: Lt({ matchPatterns: { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }, defaultMatchWidth: "any", parsePatterns: { any: { am: /^a/i, pm: /^p/i, midnight: /^mi/i, noon: /^no/i, morning: /morning/i, afternoon: /afternoon/i, evening: /evening/i, night: /night/i } }, defaultParseWidth: "any" }) }, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }, Wt = (t2, e2) => {
|
|
1792
1783
|
switch (t2) {
|
|
1793
1784
|
case "P":
|
|
1794
1785
|
return e2.date({ width: "short" });
|
|
@@ -1799,7 +1790,7 @@ const zt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1799
1790
|
default:
|
|
1800
1791
|
return e2.date({ width: "full" });
|
|
1801
1792
|
}
|
|
1802
|
-
},
|
|
1793
|
+
}, Ht = (t2, e2) => {
|
|
1803
1794
|
switch (t2) {
|
|
1804
1795
|
case "p":
|
|
1805
1796
|
return e2.time({ width: "short" });
|
|
@@ -1810,9 +1801,9 @@ const zt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1810
1801
|
default:
|
|
1811
1802
|
return e2.time({ width: "full" });
|
|
1812
1803
|
}
|
|
1813
|
-
}, Vt = { p:
|
|
1804
|
+
}, Vt = { p: Ht, P: (t2, e2) => {
|
|
1814
1805
|
const n2 = t2.match(/(P+)(p+)?/) || [], r2 = n2[1], o2 = n2[2];
|
|
1815
|
-
if (!o2) return
|
|
1806
|
+
if (!o2) return Wt(t2, e2);
|
|
1816
1807
|
let s2;
|
|
1817
1808
|
switch (r2) {
|
|
1818
1809
|
case "P":
|
|
@@ -1827,7 +1818,7 @@ const zt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1827
1818
|
default:
|
|
1828
1819
|
s2 = e2.dateTime({ width: "full" });
|
|
1829
1820
|
}
|
|
1830
|
-
return s2.replace("{{date}}",
|
|
1821
|
+
return s2.replace("{{date}}", Wt(r2, e2)).replace("{{time}}", Ht(o2, e2));
|
|
1831
1822
|
} }, $t = /^D+$/, jt = /^Y+$/, Gt = ["D", "DD", "YY", "YYYY"];
|
|
1832
1823
|
function Ut(t2) {
|
|
1833
1824
|
return $t.test(t2);
|
|
@@ -2037,7 +2028,7 @@ const _e = { y: new class extends re {
|
|
|
2037
2028
|
}
|
|
2038
2029
|
}() }, Se = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, we = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ye = /^'([^]*?)'?$/, Ee = /''/g, Ce = /\S/, be = /[a-zA-Z]/;
|
|
2039
2030
|
function ve(t2, e2, n2, r2) {
|
|
2040
|
-
const o2 = () => Xt(r2?.in || n2, NaN), s2 = Object.assign({}, Qt()), i2 = r2?.locale ?? s2.locale ??
|
|
2031
|
+
const o2 = () => Xt(r2?.in || n2, NaN), s2 = Object.assign({}, Qt()), i2 = r2?.locale ?? s2.locale ?? Pt, a2 = r2?.firstWeekContainsDate ?? r2?.locale?.options?.firstWeekContainsDate ?? s2.firstWeekContainsDate ?? s2.locale?.options?.firstWeekContainsDate ?? 1, l2 = r2?.weekStartsOn ?? r2?.locale?.options?.weekStartsOn ?? s2.weekStartsOn ?? s2.locale?.options?.weekStartsOn ?? 0;
|
|
2041
2032
|
if (!e2) return t2 ? o2() : Zt(n2, r2?.in);
|
|
2042
2033
|
const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new ne(r2?.in, n2)], d2 = e2.match(we).map((t3) => {
|
|
2043
2034
|
const e3 = t3[0];
|
|
@@ -2098,11 +2089,11 @@ function Me(t2) {
|
|
|
2098
2089
|
for (var e2 = "", n2 = t2.length - 1; n2 >= 0; ) e2 += t2.charAt(n2--);
|
|
2099
2090
|
return e2;
|
|
2100
2091
|
}
|
|
2101
|
-
function
|
|
2092
|
+
function Ne(t2, e2) {
|
|
2102
2093
|
var n2 = "" + t2;
|
|
2103
2094
|
return n2.length >= e2 ? n2 : Ae("0", e2 - n2.length) + n2;
|
|
2104
2095
|
}
|
|
2105
|
-
function
|
|
2096
|
+
function Te(t2, e2) {
|
|
2106
2097
|
var n2 = "" + t2;
|
|
2107
2098
|
return n2.length >= e2 ? n2 : Ae(" ", e2 - n2.length) + n2;
|
|
2108
2099
|
}
|
|
@@ -2123,8 +2114,8 @@ function Oe(t2, e2) {
|
|
|
2123
2114
|
function De(t2, e2) {
|
|
2124
2115
|
return e2 = e2 || 0, t2.length >= 7 + e2 && 103 == (32 | t2.charCodeAt(e2)) && 101 == (32 | t2.charCodeAt(e2 + 1)) && 110 == (32 | t2.charCodeAt(e2 + 2)) && 101 == (32 | t2.charCodeAt(e2 + 3)) && 114 == (32 | t2.charCodeAt(e2 + 4)) && 97 == (32 | t2.charCodeAt(e2 + 5)) && 108 == (32 | t2.charCodeAt(e2 + 6));
|
|
2125
2116
|
}
|
|
2126
|
-
var Be = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], Le = [["J", "Jan", "January"], ["F", "Feb", "February"], ["M", "Mar", "March"], ["A", "Apr", "April"], ["M", "May", "May"], ["J", "Jun", "June"], ["J", "Jul", "July"], ["A", "Aug", "August"], ["S", "Sep", "September"], ["O", "Oct", "October"], ["N", "Nov", "November"], ["D", "Dec", "December"]],
|
|
2127
|
-
function
|
|
2117
|
+
var Be = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], Le = [["J", "Jan", "January"], ["F", "Feb", "February"], ["M", "Mar", "March"], ["A", "Apr", "April"], ["M", "May", "May"], ["J", "Jun", "June"], ["J", "Jul", "July"], ["A", "Aug", "August"], ["S", "Sep", "September"], ["O", "Oct", "October"], ["N", "Nov", "November"], ["D", "Dec", "December"]], ze = { 0: "General", 1: "0", 2: "0.00", 3: "#,##0", 4: "#,##0.00", 5: "$#,##0_);($#,##0)", 6: "$#,##0_);[Red]($#,##0)", 7: "$#,##0.00_);($#,##0.00)", 8: "$#,##0.00_);[Red]($#,##0.00)", 9: "0%", 10: "0.00%", 11: "0.00E+00", 12: "# ?/?", 13: "# ??/??", 14: "m/d/yy", 15: "d-mmm-yy", 16: "d-mmm", 17: "mmm-yy", 18: "h:mm AM/PM", 19: "h:mm:ss AM/PM", 20: "h:mm", 21: "h:mm:ss", 22: "m/d/yy h:mm", 23: "General", 24: "General", 25: "General", 26: "General", 27: "m/d/yyyy", 28: "m/d/yyyy", 29: "m/d/yyyy", 30: "m/d/yyyy", 32: "h:mm:ss", 31: "m/d/yyyy", 33: "h:mm:ss", 34: "h:mm:ss", 35: "h:mm:ss", 36: "m/d/yyyy", 37: "#,##0_);(#,##0)", 38: "#,##0_);[Red](#,##0)", 39: "#,##0.00_);(#,##0.00)", 40: "#,##0.00_);[Red](#,##0.00)", 41: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', 42: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', 44: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)', 45: "mm:ss", 46: "[h]:mm:ss", 47: "mmss.0", 48: "##0.0E+0", 49: "@", 50: "m/d/yyyy", 51: "m/d/yyyy", 52: "m/d/yyyy", 53: "m/d/yyyy", 54: "m/d/yyyy", 55: "m/d/yyyy", 56: '"上午/下午 "hh"時"mm"分"ss"秒 "' }, Pe = { 5: 37, 6: 38, 7: 39, 8: 40, 23: 0, 24: 0, 25: 0, 26: 0, 27: 14, 28: 14, 29: 14, 30: 14, 31: 14, 50: 14, 51: 14, 52: 14, 53: 14, 54: 14, 55: 14, 56: 14, 57: 14, 58: 14, 59: 1, 60: 2, 61: 3, 62: 4, 67: 9, 68: 10, 69: 12, 70: 13, 71: 14, 72: 14, 73: 15, 74: 16, 75: 17, 76: 20, 77: 21, 78: 22, 79: 45, 80: 46, 81: 47, 82: 0 }, We = { 5: '"$"#,##0_);\\("$"#,##0\\)', 63: '"$"#,##0_);\\("$"#,##0\\)', 6: '"$"#,##0_);[Red]\\("$"#,##0\\)', 64: '"$"#,##0_);[Red]\\("$"#,##0\\)', 7: '"$"#,##0.00_);\\("$"#,##0.00\\)', 65: '"$"#,##0.00_);\\("$"#,##0.00\\)', 8: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 66: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 41: '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', 42: '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', 44: '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)' };
|
|
2118
|
+
function He(t2, e2, n2) {
|
|
2128
2119
|
for (var r2 = t2 < 0 ? -1 : 1, o2 = t2 * r2, s2 = 0, i2 = 1, a2 = 0, l2 = 1, c2 = 0, h2 = 0, d2 = Math.floor(o2); c2 < e2 && (a2 = (d2 = Math.floor(o2)) * i2 + s2, h2 = d2 * c2 + l2, !(o2 - d2 < 5e-8)); ) o2 = 1 / (o2 - d2), s2 = i2, i2 = a2, l2 = c2, c2 = h2;
|
|
2129
2120
|
if (h2 > e2 && (c2 > e2 ? (h2 = l2, a2 = s2) : (h2 = c2, a2 = i2)), !n2) return [0, r2 * a2, h2];
|
|
2130
2121
|
var u2 = Math.floor(r2 * a2 / h2);
|
|
@@ -2256,7 +2247,7 @@ function Xe(t2, e2, n2, r2) {
|
|
|
2256
2247
|
break;
|
|
2257
2248
|
case 115:
|
|
2258
2249
|
if ("s" !== e2 && "ss" !== e2 && ".0" !== e2 && ".00" !== e2 && ".000" !== e2) throw new Error("bad second format: " + e2);
|
|
2259
|
-
return 0 !== n2.u || "s" !== e2 && "ss" !== e2 ? (a2 = r2 >= 2 ? 3 === r2 ? 1e3 : 100 : 1 === r2 ? 10 : 1, (i2 = Math.round(a2 * (n2.S + n2.u))) >= 60 * a2 && (i2 = 0), "s" === e2 ? 0 === i2 ? "0" : "" + i2 / a2 : (s2 =
|
|
2250
|
+
return 0 !== n2.u || "s" !== e2 && "ss" !== e2 ? (a2 = r2 >= 2 ? 3 === r2 ? 1e3 : 100 : 1 === r2 ? 10 : 1, (i2 = Math.round(a2 * (n2.S + n2.u))) >= 60 * a2 && (i2 = 0), "s" === e2 ? 0 === i2 ? "0" : "" + i2 / a2 : (s2 = Ne(i2, 2 + r2), "ss" === e2 ? s2.substr(0, 2) : "." + s2.substr(2, e2.length - 1))) : Ne(n2.S, e2.length);
|
|
2260
2251
|
case 90:
|
|
2261
2252
|
switch (e2) {
|
|
2262
2253
|
case "[h]":
|
|
@@ -2279,7 +2270,7 @@ function Xe(t2, e2, n2, r2) {
|
|
|
2279
2270
|
case 101:
|
|
2280
2271
|
o2 = l2, c2 = 1;
|
|
2281
2272
|
}
|
|
2282
|
-
return c2 > 0 ?
|
|
2273
|
+
return c2 > 0 ? Ne(o2, c2) : "";
|
|
2283
2274
|
}
|
|
2284
2275
|
function Ye(t2) {
|
|
2285
2276
|
if (t2.length <= 3) return t2;
|
|
@@ -2361,7 +2352,7 @@ function cn(t2, e2, n2) {
|
|
|
2361
2352
|
if (e2.match(/^[#?]+$/)) return "0" === (o2 = Oe(n2, 0)) && (o2 = ""), o2.length > e2.length ? o2 : on(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2362
2353
|
if (s2 = e2.match(tn)) return (function(t3, e3, n3) {
|
|
2363
2354
|
var r3 = parseInt(t3[4], 10), o3 = Math.round(e3 * r3), s3 = Math.floor(o3 / r3), i3 = o3 - s3 * r3, a3 = r3;
|
|
2364
|
-
return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? Ae(" ", t3[1].length + 1 + t3[4].length) :
|
|
2355
|
+
return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? Ae(" ", t3[1].length + 1 + t3[4].length) : Te(i3, t3[1].length) + t3[2] + "/" + t3[3] + Ne(a3, t3[4].length));
|
|
2365
2356
|
})(s2, l2, c2);
|
|
2366
2357
|
if (e2.match(/^#+0+$/)) return c2 + Oe(l2, e2.length - e2.indexOf("0"));
|
|
2367
2358
|
if (s2 = e2.match(en)) return i2 = Math.trunc(sn(n2, s2[2].length)), a2 = an(Math.abs(i2 - n2), s2[2].length), a2 = (a2 = "" + an(a2, (function(t3) {
|
|
@@ -2373,15 +2364,15 @@ function cn(t2, e2, n2) {
|
|
|
2373
2364
|
if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Ye(Oe(l2, 0));
|
|
2374
2365
|
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + cn(t2, e2, -n2) : Ye("" + (Math.floor(n2) + (function(t3, e3) {
|
|
2375
2366
|
return e3 < ("" + Math.round((t3 - Math.floor(t3)) * Math.pow(10, e3))).length ? 1 : 0;
|
|
2376
|
-
})(n2, s2[1].length))) + "." +
|
|
2367
|
+
})(n2, s2[1].length))) + "." + Ne(ln(n2, s2[1].length), s2[1].length);
|
|
2377
2368
|
if (s2 = e2.match(/^#,#*,#0/)) return cn(t2, e2.replace(/^#,#*,/, ""), n2);
|
|
2378
2369
|
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 = Me(cn(t2, e2.replace(/[\\-]/g, ""), n2)), i2 = 0, Me(Me(e2.replace(/\\/g, "")).replace(/[0#]/g, function(t3) {
|
|
2379
2370
|
return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
|
|
2380
2371
|
}));
|
|
2381
2372
|
if (e2.match(rn)) return "(" + (o2 = cn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
|
|
2382
2373
|
var h2 = "";
|
|
2383
|
-
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 =
|
|
2384
|
-
if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 =
|
|
2374
|
+
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = He(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = un("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = ke(a2[2], i2)).length < s2[4].length && (h2 = on(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
|
|
2375
|
+
if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 = He(l2, Math.pow(10, i2) - 1, true), c2 + cn(t2, e2.substring(0, s2.index + 1), a2[0]) + " " + (a2[1] ? Te(a2[1], i2) + s2[2] + "/" + s2[3] + ke(a2[2], i2) : Ae(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
|
|
2385
2376
|
if (s2 = e2.match(/^[#0?]+$/)) return o2 = Oe(n2, 0), e2.length <= o2.length ? o2 : on(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2386
2377
|
if (s2 = e2.match(/^([#0?]+)\.([#0]+)$/)) {
|
|
2387
2378
|
o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
|
|
@@ -2391,8 +2382,8 @@ function cn(t2, e2, n2) {
|
|
|
2391
2382
|
if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return i2 = ln(n2, s2[1].length), n2 < 0 ? "-" + cn(t2, e2, -n2) : Ye((function(t3) {
|
|
2392
2383
|
return t3 < 2147483647 && t3 > -2147483648 ? "" + (t3 >= 0 ? 0 | t3 : t3 - 1 | 0) : "" + Math.floor(t3);
|
|
2393
2384
|
})(n2)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
|
|
2394
|
-
return "00," + (t3.length < 3 ?
|
|
2395
|
-
}) + "." +
|
|
2385
|
+
return "00," + (t3.length < 3 ? Ne(0, 3 - t3.length) : "") + t3;
|
|
2386
|
+
}) + "." + Ne(i2, s2[1].length);
|
|
2396
2387
|
switch (e2) {
|
|
2397
2388
|
case "###,##0.00":
|
|
2398
2389
|
return cn(t2, "#,##0.00", n2);
|
|
@@ -2442,13 +2433,13 @@ function dn(t2, e2, n2) {
|
|
|
2442
2433
|
if (-1 !== e2.indexOf("E")) return hn(e2, n2);
|
|
2443
2434
|
if (36 === e2.charCodeAt(0)) return "$" + dn(t2, e2.substr(" " === e2.charAt(1) ? 2 : 1), n2);
|
|
2444
2435
|
var o2, s2, i2, a2, l2 = Math.abs(n2), c2 = n2 < 0 ? "-" : "";
|
|
2445
|
-
if (e2.match(/^00+$/)) return c2 +
|
|
2436
|
+
if (e2.match(/^00+$/)) return c2 + Ne(l2, e2.length);
|
|
2446
2437
|
if (e2.match(/^[#?]+$/)) return o2 = "" + n2, 0 === n2 && (o2 = ""), o2.length > e2.length ? o2 : on(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2447
2438
|
if (s2 = e2.match(tn)) return (function(t3, e3, n3) {
|
|
2448
2439
|
return n3 + (0 === e3 ? "" : "" + e3) + Ae(" ", t3[1].length + 2 + t3[4].length);
|
|
2449
2440
|
})(s2, l2, c2);
|
|
2450
|
-
if (e2.match(/^#+0+$/)) return c2 +
|
|
2451
|
-
if (s2 = e2.match(en)) return o2 = ("" + n2).replace(/^([^.]+)$/, "." + on(s2[2])).replace(/\.$/, "." + on(s2[2])), o2 =
|
|
2441
|
+
if (e2.match(/^#+0+$/)) return c2 + Ne(l2, e2.length - e2.indexOf("0"));
|
|
2442
|
+
if (s2 = e2.match(en)) return o2 = ("" + n2).replace(/^([^.]+)$/, "." + on(s2[2])).replace(/\.$/, "." + on(s2[2])), o2 = Ne(Math.abs(n2), s2[1].length) + o2.replace(/\.(\d*)$/, function(t3, e3) {
|
|
2452
2443
|
return "." + e3 + Ae("0", on(s2[2]).length - e3.length);
|
|
2453
2444
|
}), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
|
|
2454
2445
|
if (e2 = e2.replace(/^#+([0.])/, "$1"), s2 = e2.match(/^(0*)\.(#*)$/)) return c2 + ("" + l2).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s2[1].length ? "0." : ".");
|
|
@@ -2460,8 +2451,8 @@ function dn(t2, e2, n2) {
|
|
|
2460
2451
|
}));
|
|
2461
2452
|
if (e2.match(rn)) return "(" + (o2 = dn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
|
|
2462
2453
|
var h2 = "";
|
|
2463
|
-
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 =
|
|
2464
|
-
if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 =
|
|
2454
|
+
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = He(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = un("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = ke(a2[2], i2)).length < s2[4].length && (h2 = on(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
|
|
2455
|
+
if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 = He(l2, Math.pow(10, i2) - 1, true))[0] || (a2[1] ? "" : "0")) + " " + (a2[1] ? Te(a2[1], i2) + s2[2] + "/" + s2[3] + ke(a2[2], i2) : Ae(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
|
|
2465
2456
|
if (s2 = e2.match(/^[#0?]+$/)) return o2 = "" + n2, e2.length <= o2.length ? o2 : on(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2466
2457
|
if (s2 = e2.match(/^([#0]+)\.([#0]+)$/)) {
|
|
2467
2458
|
o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
|
|
@@ -2469,8 +2460,8 @@ function dn(t2, e2, n2) {
|
|
|
2469
2460
|
return on(e2.substr(0, d2) + o2 + e2.substr(e2.length - u2));
|
|
2470
2461
|
}
|
|
2471
2462
|
if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return n2 < 0 ? "-" + dn(t2, e2, -n2) : Ye("" + n2).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
|
|
2472
|
-
return "00," + (t3.length < 3 ?
|
|
2473
|
-
}) + "." +
|
|
2463
|
+
return "00," + (t3.length < 3 ? Ne(0, 3 - t3.length) : "") + t3;
|
|
2464
|
+
}) + "." + Ne(0, s2[1].length);
|
|
2474
2465
|
switch (e2) {
|
|
2475
2466
|
case "###,###":
|
|
2476
2467
|
case "##,###":
|
|
@@ -2613,7 +2604,7 @@ function Sn(t2, e2, n2) {
|
|
|
2613
2604
|
r2 = "m/d/yy" === t2 && n2.dateNF ? n2.dateNF : t2;
|
|
2614
2605
|
break;
|
|
2615
2606
|
case "number":
|
|
2616
|
-
null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table :
|
|
2607
|
+
null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : ze)[t2]) && (r2 = n2.table && n2.table[Pe[t2]] || ze[Pe[t2]]), null == r2 && (r2 = We[t2] || "General");
|
|
2617
2608
|
}
|
|
2618
2609
|
if (De(r2, 0)) return Ke(e2, n2);
|
|
2619
2610
|
Ie(e2) && (e2 = Ue(e2, n2.date1904));
|
|
@@ -2850,21 +2841,21 @@ function Sn(t2, e2, n2) {
|
|
|
2850
2841
|
function wn(t2, e2) {
|
|
2851
2842
|
if ("number" != typeof e2) {
|
|
2852
2843
|
e2 = +e2 || -1;
|
|
2853
|
-
for (var n2 = 0; n2 < 392; ++n2) if (void 0 !==
|
|
2854
|
-
if (
|
|
2844
|
+
for (var n2 = 0; n2 < 392; ++n2) if (void 0 !== ze[n2]) {
|
|
2845
|
+
if (ze[n2] === t2) {
|
|
2855
2846
|
e2 = n2;
|
|
2856
2847
|
break;
|
|
2857
2848
|
}
|
|
2858
2849
|
} else e2 < 0 && (e2 = n2);
|
|
2859
2850
|
e2 < 0 && (e2 = 391);
|
|
2860
2851
|
}
|
|
2861
|
-
return
|
|
2852
|
+
return ze[e2] = t2, e2;
|
|
2862
2853
|
}
|
|
2863
|
-
const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table:
|
|
2854
|
+
const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: ze, load_table: function(t2) {
|
|
2864
2855
|
for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && wn(t2[e2], e2);
|
|
2865
2856
|
}, parse_date_code: Ve, is_date: fn, get_table: function() {
|
|
2866
|
-
return yn._table =
|
|
2867
|
-
} }, En = "\\s*([-]?[0-9e]*[.]?[0-9]+)", Cn = new RegExp(`^rgb\\(${En},${En},${En}\\)$`), bn = new RegExp(`^rgba\\(${En},${En},${En},${En}\\)$`), vn = new RegExp(`^lrgb\\(${En},${En},${En}\\)$`), xn = new RegExp(`^lrgba\\(${En},${En},${En},${En}\\)$`), In = new RegExp(`^hsl\\(${En},${En},${En}\\)$`), Rn = new RegExp(`^hsla\\(${En},${En},${En},${En}\\)$`), An = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Mn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/),
|
|
2857
|
+
return yn._table = ze;
|
|
2858
|
+
} }, En = "\\s*([-]?[0-9e]*[.]?[0-9]+)", Cn = new RegExp(`^rgb\\(${En},${En},${En}\\)$`), bn = new RegExp(`^rgba\\(${En},${En},${En},${En}\\)$`), vn = new RegExp(`^lrgb\\(${En},${En},${En}\\)$`), xn = new RegExp(`^lrgba\\(${En},${En},${En},${En}\\)$`), In = new RegExp(`^hsl\\(${En},${En},${En}\\)$`), Rn = new RegExp(`^hsla\\(${En},${En},${En},${En}\\)$`), An = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Mn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Nn = new RegExp("^index(\\d+)$", "i"), Tn = (t2, e2, n2) => [parseFloat(t2), parseFloat(e2), parseFloat(n2)], kn = (t2, e2 = 255) => {
|
|
2868
2859
|
const n2 = [...t2];
|
|
2869
2860
|
for (var r2 = 0; r2 < t2.length; r2++) n2[r2] = t2[r2] / e2;
|
|
2870
2861
|
return n2;
|
|
@@ -2878,13 +2869,13 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2878
2869
|
return n2;
|
|
2879
2870
|
}, Dn = (t2) => Math.max(0, Math.min(1, t2)), Bn = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), Ln = (t2) => {
|
|
2880
2871
|
const e2 = [...t2];
|
|
2881
|
-
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] =
|
|
2872
|
+
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Pn(t2[n2]);
|
|
2882
2873
|
return e2;
|
|
2883
|
-
},
|
|
2874
|
+
}, zn = (t2) => {
|
|
2884
2875
|
const e2 = [...t2];
|
|
2885
|
-
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] =
|
|
2876
|
+
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Wn(t2[n2]);
|
|
2886
2877
|
return e2;
|
|
2887
|
-
},
|
|
2878
|
+
}, Pn = (t2) => t2 < 0.04045 ? t2 / 12.92 : Math.pow((t2 + 0.055) / 1.055, 2.4), Wn = (t2) => t2 < 31308e-7 ? 12.92 * t2 : 1.055 * Math.pow(t2, 1 / 2.4) - 0.055, Hn = (t2) => {
|
|
2888
2879
|
let e2 = t2[0], n2 = t2[1], r2 = t2[2];
|
|
2889
2880
|
e2 %= 360, e2 /= 360, n2 /= 100, r2 /= 100;
|
|
2890
2881
|
let o2 = r2 < 0.5 ? r2 * (1 + n2) : r2 + n2 - n2 * r2, s2 = 2 * r2 - o2;
|
|
@@ -2900,24 +2891,24 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2900
2891
|
return ((t3, e3) => {
|
|
2901
2892
|
let n3 = Ln(t3);
|
|
2902
2893
|
n3[0] = e3(n3[0], n3), n3[1] = e3(n3[1], n3), n3[2] = e3(n3[2], n3);
|
|
2903
|
-
let r2 =
|
|
2894
|
+
let r2 = zn(n3);
|
|
2904
2895
|
return r2 = On(r2), r2;
|
|
2905
2896
|
})(t2, (t3, e3) => t3 * n2);
|
|
2906
2897
|
}, tr = 2.55, er = (t2, e2) => {
|
|
2907
2898
|
const n2 = $n(t2), r2 = n2[2], s2 = o.roundAccurately((i2 = r2, (a2 = e2) > 0 ? (i2 * tr * (1 - a2) + (255 - 255 * (1 - a2))) / tr : a2 < 0 ? i2 * tr * (1 + a2) / tr : i2), 3);
|
|
2908
2899
|
var i2, a2;
|
|
2909
2900
|
n2[2] = s2;
|
|
2910
|
-
let l2 =
|
|
2901
|
+
let l2 = Hn(n2);
|
|
2911
2902
|
return l2 = On(l2), l2;
|
|
2912
2903
|
}, nr = (t2, e2) => {
|
|
2913
2904
|
let n2 = Ln(t2), r2 = e2 / 100;
|
|
2914
2905
|
for (var o2 = 0; o2 < 3; o2++) n2[o2] = n2[o2] * r2 + (1 - r2);
|
|
2915
|
-
let s2 =
|
|
2906
|
+
let s2 = zn(n2);
|
|
2916
2907
|
return s2 = On(s2), s2;
|
|
2917
2908
|
}, rr = (t2, e2, n2) => {
|
|
2918
2909
|
let r2 = $n(e2), o2 = n2 / 1;
|
|
2919
2910
|
t2 === jn && (o2 = Bn(n2)), r2[t2] = o2;
|
|
2920
|
-
let s2 =
|
|
2911
|
+
let s2 = Hn(r2);
|
|
2921
2912
|
return s2 = On(s2), s2;
|
|
2922
2913
|
}, or = (t2, e2, n2) => {
|
|
2923
2914
|
let r2 = $n(e2);
|
|
@@ -2928,39 +2919,39 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2928
2919
|
let e3 = n2 / 0.1;
|
|
2929
2920
|
r2[t2] = 0.1 * (r2[t2] / 0.1 + e3);
|
|
2930
2921
|
}
|
|
2931
|
-
let o2 =
|
|
2922
|
+
let o2 = Hn(r2);
|
|
2932
2923
|
return o2 = On(o2), o2;
|
|
2933
2924
|
}, sr = (t2, e2, n2) => {
|
|
2934
2925
|
let r2 = $n(e2), o2 = n2 / 100;
|
|
2935
2926
|
r2[t2] = r2[t2] * o2, t2 === jn && (r2[jn] = Bn(r2[jn]));
|
|
2936
|
-
let s2 =
|
|
2927
|
+
let s2 = Hn(r2);
|
|
2937
2928
|
return s2 = On(s2), s2;
|
|
2938
2929
|
}, ir = (t2, e2, n2, r2) => {
|
|
2939
2930
|
let o2 = Ln(e2), s2 = n2 / 100;
|
|
2940
2931
|
r2 === Xn ? o2[t2] = s2 : r2 === Yn ? o2[t2] += s2 : r2 === Qn && (o2[t2] *= s2);
|
|
2941
|
-
let i2 =
|
|
2932
|
+
let i2 = zn(o2);
|
|
2942
2933
|
return i2 = On(i2), i2;
|
|
2943
2934
|
}, ar = (t2) => {
|
|
2944
2935
|
let e2 = Ln(t2), n2 = 0.213 * e2[Jn] + 0.715 * e2[qn] + 0.072 * e2[Kn];
|
|
2945
2936
|
e2[0] = n2, e2[1] = n2, e2[2] = n2;
|
|
2946
|
-
let r2 =
|
|
2937
|
+
let r2 = zn(e2);
|
|
2947
2938
|
return r2 = On(r2), r2;
|
|
2948
2939
|
}, lr = (t2) => {
|
|
2949
2940
|
let e2 = $n(t2);
|
|
2950
2941
|
e2[jn] += 180, e2[jn] %= 360, e2[jn] < 0 && (e2[jn] -= 360);
|
|
2951
|
-
let n2 =
|
|
2942
|
+
let n2 = Hn(e2);
|
|
2952
2943
|
return n2 = On(n2), n2;
|
|
2953
2944
|
}, cr = (t2, e2 = true) => {
|
|
2954
2945
|
let n2 = e2 ? Ln(t2) : [...t2];
|
|
2955
2946
|
const r2 = e2 ? 1 : 255;
|
|
2956
|
-
return n2[0] = r2 - n2[0], n2[1] = r2 - n2[1], n2[2] = r2 - n2[2], e2 && (n2 =
|
|
2947
|
+
return n2[0] = r2 - n2[0], n2[1] = r2 - n2[1], n2[2] = r2 - n2[2], e2 && (n2 = zn(n2)), n2 = On(n2, e2), n2;
|
|
2957
2948
|
}, hr = (t2) => {
|
|
2958
2949
|
const e2 = [0, 0, 0];
|
|
2959
|
-
e2[0] =
|
|
2950
|
+
e2[0] = Wn(t2[0]), e2[1] = Wn(t2[1]), e2[2] = Wn(t2[2]);
|
|
2960
2951
|
return On(e2);
|
|
2961
2952
|
}, dr = (t2) => {
|
|
2962
2953
|
const e2 = [0, 0, 0];
|
|
2963
|
-
e2[0] =
|
|
2954
|
+
e2[0] = Pn(t2[0]), e2[1] = Pn(t2[1]), e2[2] = Pn(t2[2]);
|
|
2964
2955
|
return On(e2);
|
|
2965
2956
|
}, ur = (t2, e2, n2, r2 = null) => {
|
|
2966
2957
|
const o2 = (t3) => {
|
|
@@ -3053,12 +3044,12 @@ const xr = () => vr || (vr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3053
3044
|
let t3 = r2[1];
|
|
3054
3045
|
Rr.test(t3) || t3.includes("-");
|
|
3055
3046
|
}
|
|
3056
|
-
if (
|
|
3057
|
-
const r3 =
|
|
3047
|
+
if (Tr[t2] && (t2 = Tr[t2]), "number" == typeof e2) {
|
|
3048
|
+
const r3 = Nr(t2, e2, { locale: o2, ...n2 });
|
|
3058
3049
|
if (null !== r3) return r3.fmt;
|
|
3059
3050
|
}
|
|
3060
3051
|
return yn.format(t2, e2, n2);
|
|
3061
|
-
},
|
|
3052
|
+
}, Nr = (t2, e2, n2) => {
|
|
3062
3053
|
if ("number" != typeof e2) return null;
|
|
3063
3054
|
const r2 = to(e2, n2?.date1904 ?? false), o2 = n2?.locale ?? xr();
|
|
3064
3055
|
let s2 = false, i2 = t2, a2 = -1;
|
|
@@ -3087,7 +3078,7 @@ const xr = () => vr || (vr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3087
3078
|
i2 = i2.substring(0, a2) + t3 + i2.substring(a2 + 9), s2 = true;
|
|
3088
3079
|
}
|
|
3089
3080
|
return s2 ? { fmt: i2, date: r2 } : null;
|
|
3090
|
-
},
|
|
3081
|
+
}, Tr = Object.freeze({ "General Number": "General", "General Date": "m/d/yyyy h:mm", "Medium Date": yn.get_table()[15], "Medium Time": yn.get_table()[18], "Short Time": yn.get_table()[20], Currency: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', Fixed: yn.get_table()[2], Standard: yn.get_table()[4], Percent: yn.get_table()[10], Scientific: yn.get_table()[11], "Yes/No": '"Yes";"Yes";"No";@', "True/False": '"True";"True";"False";@', "On/Off": '"Yes";"Yes";"No";@' }), kr = Object.freeze({ black: 0, white: 1, red: 2, green: 3, blue: 4, yellow: 5, magenta: 6, cyan: 7 }), Fr = (t2) => {
|
|
3091
3082
|
let e2 = null;
|
|
3092
3083
|
if ((t2 = t2.toLowerCase()).startsWith("color")) {
|
|
3093
3084
|
const n2 = parseInt(t2.substring(5));
|
|
@@ -3098,13 +3089,13 @@ const xr = () => vr || (vr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3098
3089
|
void 0 !== n2 && (e2 = Cr(n2).toString());
|
|
3099
3090
|
}
|
|
3100
3091
|
return e2;
|
|
3101
|
-
}, Or = "=", Dr = "<>", Br = ">", Lr = "<",
|
|
3102
|
-
|
|
3103
|
-
const
|
|
3092
|
+
}, Or = "=", Dr = "<>", Br = ">", Lr = "<", zr = ">=", Pr = "<=", Wr = /* @__PURE__ */ new Map();
|
|
3093
|
+
Wr.set(Or, (t2, e2) => t2 === e2), Wr.set(Dr, (t2, e2) => t2 !== e2), Wr.set(Br, (t2, e2) => t2 > e2), Wr.set(Lr, (t2, e2) => t2 < e2), Wr.set(zr, (t2, e2) => t2 >= e2), Wr.set(Pr, (t2, e2) => t2 <= e2);
|
|
3094
|
+
const Hr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, $r = /\[(.*?)\]/g, jr = (t2, e2) => {
|
|
3104
3095
|
const n2 = { color: null, condition: null };
|
|
3105
3096
|
let r2 = null, o2 = new RegExp($r);
|
|
3106
3097
|
for (; null !== (r2 = o2.exec(t2)); ) {
|
|
3107
|
-
let e3 = false, o3 =
|
|
3098
|
+
let e3 = false, o3 = Hr.exec(r2[1]);
|
|
3108
3099
|
if (o3) {
|
|
3109
3100
|
if (e3 = true, n2.color) throw new Error(`format error, two colors specified: '${t2}' and '${n2.color}'.`);
|
|
3110
3101
|
n2.color = Fr(o3[1]), n2.color || console.warn("Unable to parse LegacyColor", o3[1]);
|
|
@@ -3124,7 +3115,7 @@ const Wr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr =
|
|
|
3124
3115
|
const n3 = t3.split(";");
|
|
3125
3116
|
for (let t4 = 0; t4 < n3.length; t4++) {
|
|
3126
3117
|
let r3 = null;
|
|
3127
|
-
2 === n3.length ? 0 === t4 ? r3 = { op:
|
|
3118
|
+
2 === n3.length ? 0 === t4 ? r3 = { op: zr, comp: 0 } : 1 === t4 && (r3 = { op: Lr, comp: 0 }) : 3 !== n3.length && 4 !== n3.length || (r3 = 0 === t4 ? { op: Br, comp: 0 } : 1 === t4 ? { op: Lr, comp: 0 } : 2 === t4 ? { op: Or, comp: 0 } : null);
|
|
3128
3119
|
const o2 = n3[t4], s2 = jr(o2, r3);
|
|
3129
3120
|
e3.push({ format: o2, colorAndCondition: s2 });
|
|
3130
3121
|
}
|
|
@@ -3136,7 +3127,7 @@ const Wr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr =
|
|
|
3136
3127
|
let o2 = r2?.condition ?? void 0;
|
|
3137
3128
|
if (3 === t3) return "string" == typeof e2 && r2?.color ? r2.color : null;
|
|
3138
3129
|
if (o2 && "number" == typeof e2) {
|
|
3139
|
-
if (
|
|
3130
|
+
if (Wr.get(o2.op)(e2, o2.comp)) return r2?.color ?? null;
|
|
3140
3131
|
}
|
|
3141
3132
|
}
|
|
3142
3133
|
}, Ur = (t2) => {
|
|
@@ -3323,8 +3314,8 @@ const Eo = (t2, e2, n2 = 1e3) => {
|
|
|
3323
3314
|
if (void 0 === t2) return 0;
|
|
3324
3315
|
let e2 = t2.toString().split(".");
|
|
3325
3316
|
return e2.length <= 1 ? 0 : e2[1].length || 0;
|
|
3326
|
-
}, Ro = new RegExp(/^["|'|`](.*)["|'|`]$/), Ao = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), Mo = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"),
|
|
3327
|
-
let r2 =
|
|
3317
|
+
}, Ro = new RegExp(/^["|'|`](.*)["|'|`]$/), Ao = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), Mo = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), No = Mo(), To = (t2) => t2.replace(Ro, "$1"), ko = (t2, e2 = "'") => `${e2}${t2}${e2}`, Fo = (t2, e2 = void 0, n2 = void 0) => {
|
|
3318
|
+
let r2 = No;
|
|
3328
3319
|
return void 0 === e2 && void 0 === n2 || (r2 = Mo(e2, n2)), t2.split(r2);
|
|
3329
3320
|
}, Oo = (t2) => {
|
|
3330
3321
|
let e2;
|
|
@@ -3334,30 +3325,30 @@ const Eo = (t2, e2, n2 = 1e3) => {
|
|
|
3334
3325
|
return false;
|
|
3335
3326
|
}
|
|
3336
3327
|
return ("http:" === e2.protocol || "https:" === e2.protocol) && Ao.test(t2);
|
|
3337
|
-
}, Do = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Bo = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Do.test(t2), Lo = (t2) => ((t2 >= 26 ? Lo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(),
|
|
3328
|
+
}, Do = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Bo = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Do.test(t2), Lo = (t2) => ((t2 >= 26 ? Lo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), zo = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx: No, camelToSnake: (t2) => t2 ? t2.replace(/[A-Z]/g, (t3) => `_${t3.toLowerCase()}`) : t2, capitalize: Co, clampString: xo, countDecimals: Io, findValidTextValue: Eo, getBaseName: (t2, e2 = false) => {
|
|
3338
3329
|
if (!t2 || "string" != typeof t2) return "";
|
|
3339
3330
|
const n2 = t2.split(/[\\/]/).pop() || "";
|
|
3340
3331
|
if ("" === n2) return "";
|
|
3341
3332
|
const r2 = bo(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
|
|
3342
3333
|
return e2 ? Co(o2, true) : o2;
|
|
3343
|
-
}, getFileNameExtension: bo, isQuoted: (t2) => t2 && t2.length > 1 && Ro.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Bo, isValidHttpUrl: Oo, numberToAlphabet: Lo, quote: ko, snakeToCamel: vo, splitUnquoted: Fo, unquote:
|
|
3334
|
+
}, getFileNameExtension: bo, isQuoted: (t2) => t2 && t2.length > 1 && Ro.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Bo, isValidHttpUrl: Oo, numberToAlphabet: Lo, quote: ko, snakeToCamel: vo, splitUnquoted: Fo, unquote: To }, Symbol.toStringTag, { value: "Module" })), Po = (t2, e2, n2, r2 = null) => {
|
|
3344
3335
|
const o2 = (e2 || 11 * qo.getDeviceScale()) / qo.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
|
|
3345
3336
|
const a2 = i2 * (0.55 * o2) - (t2.match(/[il.,;!|]/g) || []).length * o2 * 0.15 + (t2.match(/[mwMW]/g) || []).length * o2 * 0.1 + (i2 > 0 ? (i2 - 1) * s2 : 0), l2 = Math.ceil(1.2 * o2), c2 = Math.ceil(0.8 * o2), h2 = Math.ceil(0.2 * o2), d2 = Math.ceil(0.45 * o2), u2 = Math.ceil(1.1 * o2), g2 = Math.max(1, Math.ceil(0.08 * o2));
|
|
3346
3337
|
return { width: a2, lineHeight: l2, baseline: c2, lineGap: h2, strikePosition: d2, underlinePosition: u2, strikeThickness: g2, underlineThickness: g2, actualBoundingBoxLeft: 0, actualBoundingBoxRight: a2, actualBoundingBoxAscent: c2, actualBoundingBoxDescent: l2 - c2, fontBoundingBoxAscent: c2, fontBoundingBoxDescent: l2 - c2, emHeightAscent: c2, emHeightDescent: l2 - c2, hangingBaseline: 0.8 * c2, alphabeticBaseline: c2, ideographicBaseline: l2 };
|
|
3347
|
-
},
|
|
3348
|
-
let
|
|
3338
|
+
}, Wo = () => Po;
|
|
3339
|
+
let Ho = "./packages/sdk/src/__tests__/fonts/";
|
|
3349
3340
|
const Vo = /* @__PURE__ */ new Map(), $o = /* @__PURE__ */ new Set(), jo = (t2, e2, n2, r2 = null) => {
|
|
3350
|
-
const o2 = e2, s2 =
|
|
3341
|
+
const o2 = e2, s2 = Ho + n2.toLowerCase() + ".ttf";
|
|
3351
3342
|
let i2 = null;
|
|
3352
3343
|
try {
|
|
3353
3344
|
i2 = R(s2);
|
|
3354
3345
|
} catch (t3) {
|
|
3355
3346
|
}
|
|
3356
3347
|
if (!i2) try {
|
|
3357
|
-
i2 = R(
|
|
3348
|
+
i2 = R(Ho + "calibri.ttf");
|
|
3358
3349
|
} catch (t3) {
|
|
3359
3350
|
}
|
|
3360
|
-
if (!i2) return $o.has(s2) || $o.add(s2),
|
|
3351
|
+
if (!i2) return $o.has(s2) || $o.add(s2), Wo().call(null, t2, e2, n2, r2);
|
|
3361
3352
|
const a2 = `${s2}${t2}${o2}`;
|
|
3362
3353
|
let l2 = Vo.get(a2);
|
|
3363
3354
|
l2 || (l2 = i2.layout(t2), t2.length < 2 && Vo.set(a2, l2));
|
|
@@ -3385,7 +3376,7 @@ var qo, Ko;
|
|
|
3385
3376
|
Go = jo;
|
|
3386
3377
|
} catch {
|
|
3387
3378
|
}
|
|
3388
|
-
return Go || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Go =
|
|
3379
|
+
return Go || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Go = Wo()), Go;
|
|
3389
3380
|
})(), Jo), Ko.getDeviceScale = () => Uo(), Ko.getPanoseFallback = (t2) => {
|
|
3390
3381
|
const e2 = [], n2 = t2.length;
|
|
3391
3382
|
for (let r3 = 0; r3 < n2; r3 += 2) e2.push(parseInt(t2.substring(r3, r3 + 2), 16));
|
|
@@ -3929,7 +3920,7 @@ const Is = (t2, e2 = false) => {
|
|
|
3929
3920
|
return n2.value = t3, t3;
|
|
3930
3921
|
}
|
|
3931
3922
|
return i2--, e2.index = i2, n2.min = i2 >= 0 ? a2[i2].max + 1 : Number.MIN_SAFE_INTEGER, n2.max = c2 - 1, n2.value = null, null;
|
|
3932
|
-
},
|
|
3923
|
+
}, Ns = function(t2, e2, n2, r2) {
|
|
3933
3924
|
if (0 === t2.length) {
|
|
3934
3925
|
if (null != n2 || null != r2) {
|
|
3935
3926
|
const t3 = e2({ min: n2 ?? r2, max: r2 ?? n2 });
|
|
@@ -3952,7 +3943,7 @@ const Is = (t2, e2 = false) => {
|
|
|
3952
3943
|
const t3 = e2({ min: Math.min(a2 + 1, i2), max: i2 });
|
|
3953
3944
|
if (t3 && t3.break) return t3;
|
|
3954
3945
|
}
|
|
3955
|
-
},
|
|
3946
|
+
}, Ts = new RegExp("([0-9]+)$");
|
|
3956
3947
|
var ks, Fs, Os, Ds, Bs, Ls;
|
|
3957
3948
|
((t2) => {
|
|
3958
3949
|
t2.Date = class {
|
|
@@ -4019,7 +4010,7 @@ var ks, Fs, Os, Ds, Bs, Ls;
|
|
|
4019
4010
|
const e2 = { value: null, template: null }, n2 = { sensitivity: "accent" };
|
|
4020
4011
|
t2.Ordinal = class {
|
|
4021
4012
|
_template(t3) {
|
|
4022
|
-
const e3 = t3.match(
|
|
4013
|
+
const e3 = t3.match(Ts);
|
|
4023
4014
|
if (!e3) return null;
|
|
4024
4015
|
const n3 = e3[1], r3 = t3.lastIndexOf(n3);
|
|
4025
4016
|
return -1 === r3 ? null : t3.substring(0, r3);
|
|
@@ -4034,7 +4025,7 @@ var ks, Fs, Os, Ds, Bs, Ls;
|
|
|
4034
4025
|
const n3 = [], r3 = t3[0];
|
|
4035
4026
|
let o3 = null, s3 = null, i3 = 0;
|
|
4036
4027
|
if (r3) {
|
|
4037
|
-
const t4 = r3.match(
|
|
4028
|
+
const t4 = r3.match(Ts);
|
|
4038
4029
|
if (t4) {
|
|
4039
4030
|
o3 = t4[1], o3.startsWith("0") && (i3 = o3.length);
|
|
4040
4031
|
const e4 = r3.lastIndexOf(o3);
|
|
@@ -4225,26 +4216,26 @@ var ks, Fs, Os, Ds, Bs, Ls;
|
|
|
4225
4216
|
return o3;
|
|
4226
4217
|
};
|
|
4227
4218
|
})(ks || (ks = {})), Fs || (Fs = {}), (Ds = Os || (Os = {})).Type = { None: "none", Solid: "solid", Gradient: "gradient", Pattern: "pattern", Image: "pattern", Background: "background", Group: "group", Custom: "custom" }, Ds.GradientType = { Linear: "linear", Path: "path", Circular: "circular", Rect: "rect" }, Ds.TileMirror = { None: "none", Vertical: "v", Horizontal: "h", Both: "b" }, Ds.BuiltInSheetPattern = { None: "none", Solid: "solid", DarkGray: "darkGray", MediumGray: "mediumGray", LightGray: "lightGray", Gray0625: "gray0625", Gray125: "gray125", DarkHorizontal: "darkHorizontal", DarkVertical: "darkVertical", DarkDown: "darkDown", DarkUp: "darkUp", DarkGrid: "darkGrid", DarkTrellis: "darkTrellis", LightHorizontal: "lightHorizontal", LightVertical: "lightVertical", LightDown: "lightDown", LightUp: "lightUp", LightGrid: "lightGrid", LightTrellis: "lightTrellis", Custom: "custom" }, (Ls = Bs || (Bs = {})).AdjustmentType = { Alpha: "alpha", AlphaOff: "alphaOff", AlphaMod: "alphaMod", Hue: "hue", Sat: "sat", Lum: "lum", HueOff: "hueOff", SatOff: "satOff", LumOff: "lumOff", HueMod: "hueMod", SatMod: "satMod", LumMod: "lumMod", Red: "red", Green: "green", Blue: "blue", RedOff: "redOff", GreenOff: "greenOff", BlueOff: "blueOff", RedMod: "redMod", GreenMod: "greenMod", BlueMod: "blueMod", Shade: "shade", Tint: "tint", ETint: "eTint", Gray: "gray", Comp: "comp", Inv: "inv", Gamma: "gamma", InvGamma: "invGamma" }, Ls.Named = { ActiveBorder: "activeBorder", ActiveCaption: "activeCaption", CaptionText: "captionText", AppWorkspace: "appWorkspace", BtnFace: "btnFace", BtnShadow: "btnShadow", DkShadow3d: "3dDkShadow", BtnHighlight: "btnHighlight", Light3d: "3dLight", BtnText: "btnText", Background: "background", GrayText: "grayText", Highlight: "highlight", HighlightText: "highlightText", HotLight: "hotLight", InactiveBorder: "inactiveBorder", InactiveCaption: "inactiveCaption", InactiveCaptionText: "inactiveCaptionText", InfoBk: "infoBk", InfoText: "infoText", Menu: "menu", MenuText: "menuText", ScrollBar: "scrollBar", Window: "window", WindowFrame: "windowFrame", WindowText: "windowText", Transparent: "transparent", AliceBlue: "aliceBlue", AntiqueWhite: "antiqueWhite", Aqua: "aqua", Aquamarine: "aquamarine", Azure: "azure", Beige: "beige", Bisque: "bisque", Black: "black", BlanchedAlmond: "blanchedAlmond", Blue: "blue", BlueViolet: "blueViolet", Brown: "brown", BurlyWood: "burlyWood", CadetBlue: "cadetBlue", Chartreuse: "chartreuse", Chocolate: "chocolate", Coral: "coral", CornflowerBlue: "cornflowerBlue", Cornsilk: "cornsilk", Crimson: "crimson", Cyan: "cyan", DkBlue: "dkBlue", DkCyan: "dkCyan", DkGoldenrod: "dkGoldenrod", DkGray: "dkGray", DkGreen: "dkGreen", DkKhaki: "dkKhaki", DkMagenta: "dkMagenta", DkOliveGreen: "dkOliveGreen", DkOrange: "dkOrange", DkOrchid: "dkOrchid", DkRed: "dkRed", DkSalmon: "dkSalmon", DkSeaGreen: "dkSeaGreen", DkSlateBlue: "dkSlateBlue", DkSlateGray: "dkSlateGray", DkTurquoise: "dkTurquoise", DkViolet: "dkViolet", DeepPink: "deepPink", DeepSkyBlue: "deepSkyBlue", DimGray: "dimGray", DodgerBlue: "dodgerBlue", Firebrick: "firebrick", FloralWhite: "floralWhite", ForestGreen: "forestGreen", Fuchsia: "fuchsia", Gainsboro: "gainsboro", GhostWhite: "ghostWhite", Gold: "gold", Goldenrod: "goldenrod", Gray: "gray", Green: "green", GreenYellow: "greenYellow", Honeydew: "honeydew", HotPink: "hotPink", IndianRed: "indianRed", Indigo: "indigo", Ivory: "ivory", Khaki: "khaki", Lavender: "lavender", LavenderBlush: "lavenderBlush", LawnGreen: "lawnGreen", LemonChiffon: "lemonChiffon", LtBlue: "ltBlue", LtCoral: "ltCoral", LtCyan: "ltCyan", LtGoldenrodYellow: "ltGoldenrodYellow", LtGray: "ltGray", LtGreen: "ltGreen", LtPink: "ltPink", LtSalmon: "ltSalmon", LtSeaGreen: "ltSeaGreen", LtSkyBlue: "ltSkyBlue", LtSlateGray: "ltSlateGray", LtSteelBlue: "ltSteelBlue", LtYellow: "ltYellow", Lime: "lime", LimeGreen: "limeGreen", Linen: "linen", Magenta: "magenta", Maroon: "maroon", MedAquamarine: "medAquamarine", MedBlue: "medBlue", MedOrchid: "medOrchid", MedPurple: "medPurple", MedSeaGreen: "medSeaGreen", MedSlateBlue: "medSlateBlue", MedSpringGreen: "medSpringGreen", MedTurquoise: "medTurquoise", MedVioletRed: "medVioletRed", MidnightBlue: "midnightBlue", MintCream: "mintCream", MistyRose: "mistyRose", Moccasin: "moccasin", NavajoWhite: "navajoWhite", Navy: "navy", OldLace: "oldLace", Olive: "olive", OliveDrab: "oliveDrab", Orange: "orange", OrangeRed: "orangeRed", Orchid: "orchid", PaleGoldenrod: "paleGoldenrod", PaleGreen: "paleGreen", PaleTurquoise: "paleTurquoise", PaleVioletRed: "paleVioletRed", PapayaWhip: "papayaWhip", PeachPuff: "peachPuff", Peru: "peru", Pink: "pink", Plum: "plum", PowderBlue: "powderBlue", Purple: "purple", Red: "red", RosyBrown: "rosyBrown", RoyalBlue: "royalBlue", SaddleBrown: "saddleBrown", Salmon: "salmon", SandyBrown: "sandyBrown", SeaGreen: "seaGreen", SeaShell: "seaShell", Sienna: "sienna", Silver: "silver", SkyBlue: "skyBlue", SlateBlue: "slateBlue", SlateGray: "slateGray", Snow: "snow", SpringGreen: "springGreen", SteelBlue: "steelBlue", Tan: "tan", Teal: "teal", Thistle: "thistle", Tomato: "tomato", Turquoise: "turquoise", Violet: "violet", Wheat: "wheat", White: "white", WhiteSmoke: "whiteSmoke", Yellow: "yellow", YellowGreen: "yellowGreen", ButtonFace: "buttonFace", ButtonHighlight: "buttonHighlight", ButtonShadow: "buttonShadow", GradientActiveCaption: "gradientActiveCaption", GradientInactiveCaption: "gradientInactiveCaption", MenuBar: "menuBar", MenuHighlight: "menuHighlight" }, Ls.Scheme = { Bg1: "bg1", Bg2: "bg2", Tx1: "tx1", Tx2: "tx2", Accent1: "accent1", Accent2: "accent2", Accent3: "accent3", Accent4: "accent4", Accent5: "accent5", Accent6: "accent6", Hlink: "hlink", FolHlink: "folHlink" }, Ls.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
|
|
4228
|
-
const
|
|
4229
|
-
const
|
|
4219
|
+
const zs = [[4290032820, 1, Bs.Named.ActiveBorder, true], [4288263377, 2, Bs.Named.ActiveCaption, true], [4278190080, 3, Bs.Named.CaptionText, true], [4289440683, 4, Bs.Named.AppWorkspace, true], [4293980400, 5, Bs.Named.BtnFace, true], [4285098345, 6, Bs.Named.BtnShadow, true], [4278190080, 7, Bs.Named.DkShadow3d, true], [4293125091, 8, Bs.Named.BtnHighlight, true], [4293125091, 9, Bs.Named.Light3d, true], [4278190080, 10, Bs.Named.BtnText, true], [4278190080, 11, Bs.Named.Background, true], [4285361517, 12, Bs.Named.GrayText, true], [4281571839, 13, Bs.Named.Highlight, true], [4294967295, 14, Bs.Named.HighlightText, true], [4278216396, 15, Bs.Named.HotLight, true], [4294244348, 16, Bs.Named.InactiveBorder, true], [4290760155, 17, Bs.Named.InactiveCaption, true], [4278190080, 18, Bs.Named.InactiveCaptionText, true], [4294967265, 19, Bs.Named.InfoBk, true], [4278190080, 20, Bs.Named.InfoText, true], [4293980400, 21, Bs.Named.Menu, true], [4278190080, 22, Bs.Named.MenuText, true], [4291348680, 23, Bs.Named.ScrollBar, true], [4294967295, 24, Bs.Named.Window, true], [4284769380, 25, Bs.Named.WindowFrame, true], [4278190080, 26, Bs.Named.WindowText, true], [16777215, 27, Bs.Named.Transparent], [4293982463, 28, Bs.Named.AliceBlue], [4294634455, 29, Bs.Named.AntiqueWhite], [4278255615, 30, Bs.Named.Aqua], [4286578644, 31, Bs.Named.Aquamarine], [4293984255, 32, Bs.Named.Azure], [4294309340, 33, Bs.Named.Beige], [4294960324, 34, Bs.Named.Bisque], [4278190080, 35, Bs.Named.Black], [4294962125, 36, Bs.Named.BlanchedAlmond], [4278190335, 37, Bs.Named.Blue], [4287245282, 38, Bs.Named.BlueViolet], [4289014314, 39, Bs.Named.Brown], [4292786311, 40, Bs.Named.BurlyWood], [4284456608, 41, Bs.Named.CadetBlue], [4286578432, 42, Bs.Named.Chartreuse], [4291979550, 43, Bs.Named.Chocolate], [4294934352, 44, Bs.Named.Coral], [4284782061, 45, Bs.Named.CornflowerBlue], [4294965468, 46, Bs.Named.Cornsilk], [4292613180, 47, Bs.Named.Crimson], [4278255615, 48, Bs.Named.Cyan], [4278190219, 49, Bs.Named.DkBlue], [4278225803, 50, Bs.Named.DkCyan], [4290283019, 51, Bs.Named.DkGoldenrod], [4289309097, 52, Bs.Named.DkGray], [4278215680, 53, Bs.Named.DkGreen], [4290623339, 54, Bs.Named.DkKhaki], [4287299723, 55, Bs.Named.DkMagenta], [4283788079, 56, Bs.Named.DkOliveGreen], [4294937600, 57, Bs.Named.DkOrange], [4288230092, 58, Bs.Named.DkOrchid], [4287299584, 59, Bs.Named.DkRed], [4293498490, 60, Bs.Named.DkSalmon], [4287609995, 61, Bs.Named.DkSeaGreen], [4282924427, 62, Bs.Named.DkSlateBlue], [4281290575, 63, Bs.Named.DkSlateGray], [4278243025, 64, Bs.Named.DkTurquoise], [4287889619, 65, Bs.Named.DkViolet], [4294907027, 66, Bs.Named.DeepPink], [4278239231, 67, Bs.Named.DeepSkyBlue], [4285098345, 68, Bs.Named.DimGray], [4280193279, 69, Bs.Named.DodgerBlue], [4289864226, 70, Bs.Named.Firebrick], [4294966e3, 71, Bs.Named.FloralWhite], [4280453922, 72, Bs.Named.ForestGreen], [4294902015, 73, Bs.Named.Fuchsia], [4292664540, 74, Bs.Named.Gainsboro], [4294506751, 75, Bs.Named.GhostWhite], [4294956800, 76, Bs.Named.Gold], [4292519200, 77, Bs.Named.Goldenrod], [4286611584, 78, Bs.Named.Gray], [4278222848, 79, Bs.Named.Green], [4289593135, 80, Bs.Named.GreenYellow], [4293984240, 81, Bs.Named.Honeydew], [4294928820, 82, Bs.Named.HotPink], [4291648604, 83, Bs.Named.IndianRed], [4283105410, 84, Bs.Named.Indigo], [4294967280, 85, Bs.Named.Ivory], [4293977740, 86, Bs.Named.Khaki], [4293322490, 87, Bs.Named.Lavender], [4294963445, 88, Bs.Named.LavenderBlush], [4286381056, 89, Bs.Named.LawnGreen], [4294965965, 90, Bs.Named.LemonChiffon], [4289583334, 91, Bs.Named.LtBlue], [4293951616, 92, Bs.Named.LtCoral], [4292935679, 93, Bs.Named.LtCyan], [4294638200, 94, Bs.Named.LtGoldenrodYellow], [4292072403, 95, Bs.Named.LtGray], [4287688336, 96, Bs.Named.LtGreen], [4294948545, 97, Bs.Named.LtPink], [4294942842, 98, Bs.Named.LtSalmon], [4280332970, 99, Bs.Named.LtSeaGreen], [4287090426, 100, Bs.Named.LtSkyBlue], [4286023833, 101, Bs.Named.LtSlateGray], [4289774814, 102, Bs.Named.LtSteelBlue], [4294967264, 103, Bs.Named.LtYellow], [4278255360, 104, Bs.Named.Lime], [4281519410, 105, Bs.Named.LimeGreen], [4294635750, 106, Bs.Named.Linen], [4294902015, 107, Bs.Named.Magenta], [4286578688, 108, Bs.Named.Maroon], [4284927402, 109, Bs.Named.MedAquamarine], [4278190285, 110, Bs.Named.MedBlue], [4290401747, 111, Bs.Named.MedOrchid], [4287852763, 112, Bs.Named.MedPurple], [4282168177, 113, Bs.Named.MedSeaGreen], [4286277870, 114, Bs.Named.MedSlateBlue], [4278254234, 115, Bs.Named.MedSpringGreen], [4282962380, 116, Bs.Named.MedTurquoise], [4291237253, 117, Bs.Named.MedVioletRed], [4279834992, 118, Bs.Named.MidnightBlue], [4294311930, 119, Bs.Named.MintCream], [4294960353, 120, Bs.Named.MistyRose], [4294960309, 121, Bs.Named.Moccasin], [4294958765, 122, Bs.Named.NavajoWhite], [4278190208, 123, Bs.Named.Navy], [4294833638, 124, Bs.Named.OldLace], [4286611456, 125, Bs.Named.Olive], [4285238819, 126, Bs.Named.OliveDrab], [4294944e3, 127, Bs.Named.Orange], [4294919424, 128, Bs.Named.OrangeRed], [4292505814, 129, Bs.Named.Orchid], [4293847210, 130, Bs.Named.PaleGoldenrod], [4288215960, 131, Bs.Named.PaleGreen], [4289720046, 132, Bs.Named.PaleTurquoise], [4292571283, 133, Bs.Named.PaleVioletRed], [4294963157, 134, Bs.Named.PapayaWhip], [4294957753, 135, Bs.Named.PeachPuff], [4291659071, 136, Bs.Named.Peru], [4294951115, 137, Bs.Named.Pink], [4292714717, 138, Bs.Named.Plum], [4289781990, 139, Bs.Named.PowderBlue], [4286578816, 140, Bs.Named.Purple], [4294901760, 141, Bs.Named.Red], [4290547599, 142, Bs.Named.RosyBrown], [4282477025, 143, Bs.Named.RoyalBlue], [4287317267, 144, Bs.Named.SaddleBrown], [4294606962, 145, Bs.Named.Salmon], [4294222944, 146, Bs.Named.SandyBrown], [4281240407, 147, Bs.Named.SeaGreen], [4294964718, 148, Bs.Named.SeaShell], [4288696877, 149, Bs.Named.Sienna], [4290822336, 150, Bs.Named.Silver], [4287090411, 151, Bs.Named.SkyBlue], [4285160141, 152, Bs.Named.SlateBlue], [4285563024, 153, Bs.Named.SlateGray], [4294966010, 154, Bs.Named.Snow], [4278255487, 155, Bs.Named.SpringGreen], [4282811060, 156, Bs.Named.SteelBlue], [4291998860, 157, Bs.Named.Tan], [4278222976, 158, Bs.Named.Teal], [4292394968, 159, Bs.Named.Thistle], [4294927175, 160, Bs.Named.Tomato], [4282441936, 161, Bs.Named.Turquoise], [4293821166, 162, Bs.Named.Violet], [4294303411, 163, Bs.Named.Wheat], [4294967295, 164, Bs.Named.White], [4294309365, 165, Bs.Named.WhiteSmoke], [4294967040, 166, Bs.Named.Yellow], [4288335154, 167, Bs.Named.YellowGreen], [4293980400, 168, Bs.Named.ButtonFace], [4294967295, 169, Bs.Named.ButtonHighlight], [4288716960, 170, Bs.Named.ButtonShadow], [4290367978, 171, Bs.Named.GradientActiveCaption], [4292338930, 172, Bs.Named.GradientInactiveCaption], [4293980400, 173, Bs.Named.MenuBar], [4281571839, 174, Bs.Named.MenuHighlight]];
|
|
4220
|
+
const Ps = new class {
|
|
4230
4221
|
constructor() {
|
|
4231
4222
|
this._lookupByName = /* @__PURE__ */ new Map();
|
|
4232
|
-
for (let t2 = 0; t2 <
|
|
4233
|
-
const e2 =
|
|
4223
|
+
for (let t2 = 0; t2 < zs.length; t2++) {
|
|
4224
|
+
const e2 = zs[t2], n2 = e2[0], r2 = (n2 >> 24 & 255) / 255, o2 = n2 >> 16 & 255, s2 = n2 >> 8 & 255, i2 = 255 & n2, a2 = { id: e2[1], name: e2[2], rgbaColor: { r: o2, g: s2, b: i2, a: r2 }, system: e2.length > 3 };
|
|
4234
4225
|
this._lookupByName.set(a2.name.toLowerCase(), a2);
|
|
4235
4226
|
}
|
|
4236
4227
|
}
|
|
4237
4228
|
valueOfName(t2) {
|
|
4238
4229
|
return this._lookupByName.get(t2 ? t2.toLowerCase() : "transparent");
|
|
4239
4230
|
}
|
|
4240
|
-
}(),
|
|
4241
|
-
for (let t2 = 0; t2 <
|
|
4231
|
+
}(), Ws = [{ scheme: Bs.Scheme.Tx1, description: "First Text Color" }, { scheme: Bs.Scheme.Tx2, description: "Second Text Color" }, { scheme: Bs.Scheme.Bg1, description: "First Background Color" }, { scheme: Bs.Scheme.Bg2, description: "Second Background Color" }, { scheme: Bs.Scheme.Accent1, description: "Accent 1" }, { scheme: Bs.Scheme.Accent2, description: "Accent 2" }, { scheme: Bs.Scheme.Accent3, description: "Accent 3" }, { scheme: Bs.Scheme.Accent4, description: "Accent 4" }, { scheme: Bs.Scheme.Accent5, description: "Accent 5" }, { scheme: Bs.Scheme.Accent6, description: "Accent 6" }, { scheme: Bs.Scheme.Hlink, description: "Hyperlink" }, { scheme: Bs.Scheme.FolHlink, description: "Followed Hyperlink" }, { scheme: "dk1", description: "Text/Background - Dark 1" }, { scheme: "lt1", description: "Text/Background - Light 1" }, { scheme: "dk2", description: "Text/Background - Dark 2" }, { scheme: "lt2", description: "Text/Background - Light 2" }], Hs = /* @__PURE__ */ new Map();
|
|
4232
|
+
for (let t2 = 0; t2 < Ws.length; t2++) Hs.set(Ws[t2].scheme.toLowerCase(), Ws[t2]);
|
|
4242
4233
|
const Vs = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], alpha: void 0 !== t2.alpha ? t2.alpha : 1 } : null, $s = function(t2, e2, n2, r2) {
|
|
4243
4234
|
let o2 = Vs(((t3) => {
|
|
4244
|
-
let e3 =
|
|
4235
|
+
let e3 = Ps.valueOfName(t3);
|
|
4245
4236
|
return e3 ? new pr.RGBA(e3.rgbaColor.r, e3.rgbaColor.g, e3.rgbaColor.b, e3.rgbaColor.a) : null;
|
|
4246
4237
|
})(t2)), s2 = null, i2 = null, a2 = null;
|
|
4247
|
-
if (null === o2 && (l2 = t2,
|
|
4238
|
+
if (null === o2 && (l2 = t2, Hs.get(l2.toLowerCase()))) {
|
|
4248
4239
|
if (!e2) throw new Error("a scheme val was used but a schemeLookup was not provided");
|
|
4249
4240
|
s2 = t2, i2 = e2(s2), o2 = Vs(i2), a2 = Bs.Type.Scheme;
|
|
4250
4241
|
}
|
|
@@ -4259,26 +4250,26 @@ const Vs = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
|
|
|
4259
4250
|
if (null === o2) {
|
|
4260
4251
|
let e3 = t2.match(Cn) || t2.match(bn);
|
|
4261
4252
|
if (e3) {
|
|
4262
|
-
let t3 =
|
|
4253
|
+
let t3 = Tn(e3[1], e3[2], e3[3]);
|
|
4263
4254
|
t3 = kn(t3), t3 = On(t3), o2 = { srgb: t3, alpha: e3[4] ? Dn(parseFloat(e3[4])) : 1 }, a2 = Bs.Type.RGB;
|
|
4264
4255
|
}
|
|
4265
4256
|
}
|
|
4266
4257
|
if (null === o2) {
|
|
4267
4258
|
let e3 = t2.match(vn) || t2.match(xn);
|
|
4268
4259
|
if (e3) {
|
|
4269
|
-
let t3 =
|
|
4270
|
-
t3 = kn(t3, 100), t3 =
|
|
4260
|
+
let t3 = Tn(e3[1], e3[2], e3[3]);
|
|
4261
|
+
t3 = kn(t3, 100), t3 = zn(t3), t3 = On(t3), o2 = { srgb: t3, alpha: e3[4] ? Dn(parseFloat(e3[4])) : 1 }, a2 = Bs.Type.LRGB;
|
|
4271
4262
|
}
|
|
4272
4263
|
}
|
|
4273
4264
|
if (null === o2) {
|
|
4274
4265
|
let e3 = t2.match(In) || t2.match(Rn);
|
|
4275
4266
|
if (e3) {
|
|
4276
|
-
let t3 =
|
|
4277
|
-
t3 =
|
|
4267
|
+
let t3 = Tn(e3[1], e3[2], e3[3]);
|
|
4268
|
+
t3 = Hn(t3), t3 = On(t3), o2 = { srgb: t3, alpha: e3[4] ? Dn(parseFloat(e3[4])) : 1 }, a2 = Bs.Type.HSL;
|
|
4278
4269
|
}
|
|
4279
4270
|
}
|
|
4280
4271
|
if (null === o2) {
|
|
4281
|
-
let e3 = t2.match(
|
|
4272
|
+
let e3 = t2.match(Nn);
|
|
4282
4273
|
if (e3) {
|
|
4283
4274
|
const t3 = parseInt(e3[1]);
|
|
4284
4275
|
let r3 = n2?.(t3) ?? Cr(t3);
|
|
@@ -4338,7 +4329,7 @@ class Xs {
|
|
|
4338
4329
|
})(n2, 180), n2 = cr(n2, false);
|
|
4339
4330
|
let r2 = Ln(n2);
|
|
4340
4331
|
const o2 = $n(r2);
|
|
4341
|
-
if (o2[Un] = 0.95 * o2[Un], r2 =
|
|
4332
|
+
if (o2[Un] = 0.95 * o2[Un], r2 = Hn(o2), n2 = zn(r2), n2 = Fn(n2), n2 = On(n2, false), t2) return new pr.RGBA(n2[0], n2[1], n2[2], e2.alpha);
|
|
4342
4333
|
const s2 = $n(Ln(n2));
|
|
4343
4334
|
return new pr.HSLA(s2[0], s2[1], s2[2], e2.alpha);
|
|
4344
4335
|
}
|
|
@@ -4559,13 +4550,13 @@ const wi = (t2, e2, n2, r2, o2) => {
|
|
|
4559
4550
|
};
|
|
4560
4551
|
var Ei, Ci;
|
|
4561
4552
|
(Ei || (Ei = {})).buildPalette = yi, (Ci || (Ci = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
|
|
4562
|
-
const bi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], vi = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], xi = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], Ii = "Themes is readonly. To make modifications create a new DocsThemes instance.", Ri = { [Bs.Scheme.Bg1]: "lt1", [Bs.Scheme.Bg2]: "lt2", [Bs.Scheme.Tx1]: "dk1", [Bs.Scheme.Tx2]: "dk2", [Bs.Scheme.Accent1]: "accent1", [Bs.Scheme.Accent2]: "accent2", [Bs.Scheme.Accent3]: "accent3", [Bs.Scheme.Accent4]: "accent4", [Bs.Scheme.Accent5]: "accent5", [Bs.Scheme.Accent6]: "accent6", [Bs.Scheme.Hlink]: "hlink", [Bs.Scheme.FolHlink]: "folHlink" }, Ai = "Office", Mi = [Ai, "Calibri Light", "Calibri"],
|
|
4553
|
+
const bi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], vi = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], xi = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], Ii = "Themes is readonly. To make modifications create a new DocsThemes instance.", Ri = { [Bs.Scheme.Bg1]: "lt1", [Bs.Scheme.Bg2]: "lt2", [Bs.Scheme.Tx1]: "dk1", [Bs.Scheme.Tx2]: "dk2", [Bs.Scheme.Accent1]: "accent1", [Bs.Scheme.Accent2]: "accent2", [Bs.Scheme.Accent3]: "accent3", [Bs.Scheme.Accent4]: "accent4", [Bs.Scheme.Accent5]: "accent5", [Bs.Scheme.Accent6]: "accent6", [Bs.Scheme.Hlink]: "hlink", [Bs.Scheme.FolHlink]: "folHlink" }, Ai = "Office", Mi = [Ai, "Calibri Light", "Calibri"], Ni = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], Ti = (t2) => {
|
|
4563
4554
|
const e2 = {};
|
|
4564
4555
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4565
4556
|
const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
|
|
4566
4557
|
e2[o2] = s2;
|
|
4567
|
-
for (let t3 = 0; t3 <
|
|
4568
|
-
const e3 =
|
|
4558
|
+
for (let t3 = 0; t3 < Ni.length; t3++) {
|
|
4559
|
+
const e3 = Ni[t3], n3 = r2[t3 + 1];
|
|
4569
4560
|
if (!n3) continue;
|
|
4570
4561
|
const o3 = Xs.parse(n3);
|
|
4571
4562
|
n3 && (s2[e3] = o3.toString());
|
|
@@ -4579,13 +4570,13 @@ const bi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
|
|
|
4579
4570
|
e2[o2] = s2, s2.majorFont = r2[1] ?? Mi[1], s2.minorFont = r2[2] ?? Mi[2];
|
|
4580
4571
|
}
|
|
4581
4572
|
return e2;
|
|
4582
|
-
}, Fi =
|
|
4573
|
+
}, Fi = Ti([[Ai, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Oi = ki([Mi]), Di = Fi[Ai], Bi = Oi[Ai];
|
|
4583
4574
|
let Li = null;
|
|
4584
|
-
const
|
|
4575
|
+
const zi = new class {
|
|
4585
4576
|
constructor() {
|
|
4586
4577
|
this._colors = {};
|
|
4587
|
-
for (let t2 = 0; t2 <
|
|
4588
|
-
const e2 =
|
|
4578
|
+
for (let t2 = 0; t2 < Ni.length; t2++) {
|
|
4579
|
+
const e2 = Ni[t2], n2 = Xs.parse(Di[e2]);
|
|
4589
4580
|
this._colors[e2] = n2;
|
|
4590
4581
|
}
|
|
4591
4582
|
}
|
|
@@ -4632,8 +4623,8 @@ const Pi = new class {
|
|
|
4632
4623
|
return null;
|
|
4633
4624
|
}
|
|
4634
4625
|
}();
|
|
4635
|
-
class
|
|
4636
|
-
constructor(t2, e2 =
|
|
4626
|
+
class Pi {
|
|
4627
|
+
constructor(t2, e2 = zi) {
|
|
4637
4628
|
this._delegate = e2, this._fromJSON(t2);
|
|
4638
4629
|
}
|
|
4639
4630
|
_fromJSON(t2) {
|
|
@@ -4691,11 +4682,11 @@ class zi {
|
|
|
4691
4682
|
return e2 && (t2.name = e2), t2;
|
|
4692
4683
|
}
|
|
4693
4684
|
}
|
|
4694
|
-
const
|
|
4685
|
+
const Wi = new class {
|
|
4695
4686
|
constructor() {
|
|
4696
4687
|
this._colors = {};
|
|
4697
|
-
for (let t2 = 0; t2 <
|
|
4698
|
-
const e2 =
|
|
4688
|
+
for (let t2 = 0; t2 < Ni.length; t2++) {
|
|
4689
|
+
const e2 = Ni[t2], n2 = Xs.parse(Di[e2]);
|
|
4699
4690
|
this._colors[e2] = n2;
|
|
4700
4691
|
}
|
|
4701
4692
|
}
|
|
@@ -4715,8 +4706,8 @@ const Hi = new class {
|
|
|
4715
4706
|
return Bi.minorFallbacks;
|
|
4716
4707
|
}
|
|
4717
4708
|
}();
|
|
4718
|
-
class
|
|
4719
|
-
constructor(t2, e2 =
|
|
4709
|
+
class Hi {
|
|
4710
|
+
constructor(t2, e2 = Wi) {
|
|
4720
4711
|
this._delegate = e2, this._fromJSON(t2);
|
|
4721
4712
|
}
|
|
4722
4713
|
_fromJSON(t2) {
|
|
@@ -4757,7 +4748,7 @@ class Vi {
|
|
|
4757
4748
|
n3 && (e2 = n3);
|
|
4758
4749
|
}
|
|
4759
4750
|
if (!e2 && Li && (e2 = Li.get(Ai.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
|
|
4760
|
-
this._builtInID = n2, this._delegate = e2, this._colors = new
|
|
4751
|
+
this._builtInID = n2, this._delegate = e2, this._colors = new Pi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Hi(t2?.fonts, this._delegate?.getFontScheme());
|
|
4761
4752
|
const r2 = Ri, o2 = {}, s2 = Object.keys(r2);
|
|
4762
4753
|
for (let t3 = 0; t3 < s2.length; t3++) {
|
|
4763
4754
|
const e3 = s2[t3];
|
|
@@ -4813,7 +4804,7 @@ const $i = () => {
|
|
|
4813
4804
|
r2.push({ name: i2, colors: a2, fonts: l2 });
|
|
4814
4805
|
}
|
|
4815
4806
|
return r2;
|
|
4816
|
-
})(xi,
|
|
4807
|
+
})(xi, Ti(bi), ki(vi)), e2 = /* @__PURE__ */ new Map();
|
|
4817
4808
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4818
4809
|
const r2 = new Vi(t2[n2]), o2 = new Vi(null, r2, n2 + 1);
|
|
4819
4810
|
e2.set(o2.getName().toLowerCase(), o2);
|
|
@@ -5833,7 +5824,7 @@ const _a = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1,
|
|
|
5833
5824
|
if (e2) for (let t3 = i2; t3 < n2; t3++) o2.push(void 0);
|
|
5834
5825
|
return o2;
|
|
5835
5826
|
}, Ca = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), ba = Object.seal({ done: false, value: [-1, null] }), va = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ba }, xa = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ba }), Ia = { min: 0, max: Number.MAX_SAFE_INTEGER }, Ra = { min: 0, max: Number.MAX_SAFE_INTEGER }, Aa = [null, null], Ma = { bounds: { min: 0, max: 0 }, overflowRun: true };
|
|
5836
|
-
class
|
|
5827
|
+
class Na {
|
|
5837
5828
|
constructor(t2 = 9) {
|
|
5838
5829
|
this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
|
|
5839
5830
|
}
|
|
@@ -5852,7 +5843,7 @@ class Ta {
|
|
|
5852
5843
|
const e3 = n2.children, o2 = e3.length, a2 = n2.leaf;
|
|
5853
5844
|
for (let n3 = 0; n3 < o2; n3++) {
|
|
5854
5845
|
const o3 = e3[n3], l2 = a2 ? s2(o3) : o3;
|
|
5855
|
-
Va(t2, l2) && (a2 ? r2.push(o3) :
|
|
5846
|
+
Va(t2, l2) && (a2 ? r2.push(o3) : Ha(t2, l2) ? this._all(o3, r2) : i2.push(o3));
|
|
5856
5847
|
}
|
|
5857
5848
|
n2 = i2.pop();
|
|
5858
5849
|
}
|
|
@@ -5866,7 +5857,7 @@ class Ta {
|
|
|
5866
5857
|
for (let r2 = 0; r2 < e2.children.length; r2++) {
|
|
5867
5858
|
const o2 = e2.children[r2], s2 = e2.leaf ? this.toBBox(o2) : o2;
|
|
5868
5859
|
if (Va(t2, s2)) {
|
|
5869
|
-
if (e2.leaf ||
|
|
5860
|
+
if (e2.leaf || Ha(t2, s2)) return true;
|
|
5870
5861
|
n2.push(o2);
|
|
5871
5862
|
}
|
|
5872
5863
|
}
|
|
@@ -5906,10 +5897,10 @@ class Ta {
|
|
|
5906
5897
|
let i2, a2, l2;
|
|
5907
5898
|
for (; n2 || o2.length; ) {
|
|
5908
5899
|
if (n2 || (n2 = o2.pop(), a2 = o2[o2.length - 1], i2 = s2.pop(), l2 = true), n2.leaf) {
|
|
5909
|
-
const r3 =
|
|
5900
|
+
const r3 = Ta(t2, n2.children, e2);
|
|
5910
5901
|
if (-1 !== r3) return n2.children.splice(r3, 1), o2.push(n2), this._condense(o2), this;
|
|
5911
5902
|
}
|
|
5912
|
-
l2 || n2.leaf || !
|
|
5903
|
+
l2 || n2.leaf || !Ha(n2, r2) ? a2 ? (i2++, n2 = a2.children[i2], l2 = false) : n2 = null : (o2.push(n2), s2.push(i2), i2 = 0, a2 = n2, n2 = n2.children[0]);
|
|
5913
5904
|
}
|
|
5914
5905
|
return this;
|
|
5915
5906
|
}
|
|
@@ -5954,7 +5945,7 @@ class Ta {
|
|
|
5954
5945
|
for (; r2.push(e2), !e2.leaf && r2.length - 1 !== n2; ) {
|
|
5955
5946
|
let n3, r3 = 1 / 0, o2 = 1 / 0;
|
|
5956
5947
|
for (let s2 = 0; s2 < e2.children.length; s2++) {
|
|
5957
|
-
const i2 = e2.children[s2], a2 = La(i2), l2 =
|
|
5948
|
+
const i2 = e2.children[s2], a2 = La(i2), l2 = Pa(t2, i2) - a2;
|
|
5958
5949
|
l2 < o2 ? (o2 = l2, r3 = a2 < r3 ? a2 : r3, n3 = i2) : l2 === o2 && a2 < r3 && (r3 = a2, n3 = i2);
|
|
5959
5950
|
}
|
|
5960
5951
|
e2 = n3 || e2.children[0];
|
|
@@ -5978,7 +5969,7 @@ class Ta {
|
|
|
5978
5969
|
_chooseSplitIndex(t2, e2, n2) {
|
|
5979
5970
|
let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
|
|
5980
5971
|
for (let i2 = e2; i2 <= n2 - e2; i2++) {
|
|
5981
|
-
const e3 = Fa(t2, 0, i2, this.toBBox), a2 = Fa(t2, i2, n2, this.toBBox), l2 =
|
|
5972
|
+
const e3 = Fa(t2, 0, i2, this.toBBox), a2 = Fa(t2, i2, n2, this.toBBox), l2 = Wa(e3, a2), c2 = La(e3) + La(a2);
|
|
5982
5973
|
l2 < o2 ? (o2 = l2, r2 = i2, s2 = c2 < s2 ? c2 : s2) : l2 === o2 && c2 < s2 && (s2 = c2, r2 = i2);
|
|
5983
5974
|
}
|
|
5984
5975
|
return r2 || n2 - e2;
|
|
@@ -5990,14 +5981,14 @@ class Ta {
|
|
|
5990
5981
|
_allDistMargin(t2, e2, n2, r2) {
|
|
5991
5982
|
t2.children.sort(r2);
|
|
5992
5983
|
const o2 = this.toBBox, s2 = Fa(t2, 0, e2, o2), i2 = Fa(t2, n2 - e2, n2, o2);
|
|
5993
|
-
let a2 =
|
|
5984
|
+
let a2 = za(s2) + za(i2);
|
|
5994
5985
|
for (let r3 = e2; r3 < n2 - e2; r3++) {
|
|
5995
5986
|
const e3 = t2.children[r3];
|
|
5996
|
-
Oa(s2, t2.leaf ? o2(e3) : e3), a2 +=
|
|
5987
|
+
Oa(s2, t2.leaf ? o2(e3) : e3), a2 += za(s2);
|
|
5997
5988
|
}
|
|
5998
5989
|
for (let r3 = n2 - e2 - 1; r3 >= e2; r3--) {
|
|
5999
5990
|
const e3 = t2.children[r3];
|
|
6000
|
-
Oa(i2, t2.leaf ? o2(e3) : e3), a2 +=
|
|
5991
|
+
Oa(i2, t2.leaf ? o2(e3) : e3), a2 += za(i2);
|
|
6001
5992
|
}
|
|
6002
5993
|
return a2;
|
|
6003
5994
|
}
|
|
@@ -6008,7 +5999,7 @@ class Ta {
|
|
|
6008
5999
|
for (let e2, n2 = t2.length - 1; n2 >= 0; n2--) 0 === t2[n2].children.length ? n2 > 0 ? (e2 = t2[n2 - 1].children, e2.splice(e2.indexOf(t2[n2]), 1)) : this.clear() : ka(t2[n2], this.toBBox);
|
|
6009
6000
|
}
|
|
6010
6001
|
}
|
|
6011
|
-
function
|
|
6002
|
+
function Ta(t2, e2, n2) {
|
|
6012
6003
|
if (!n2) return e2.indexOf(t2);
|
|
6013
6004
|
for (let r2 = 0; r2 < e2.length; r2++) if (n2(t2, e2[r2])) return r2;
|
|
6014
6005
|
return -1;
|
|
@@ -6036,17 +6027,17 @@ function Ba(t2, e2) {
|
|
|
6036
6027
|
function La(t2) {
|
|
6037
6028
|
return (t2.maxX - t2.minX) * (t2.maxY - t2.minY);
|
|
6038
6029
|
}
|
|
6039
|
-
function
|
|
6030
|
+
function za(t2) {
|
|
6040
6031
|
return t2.maxX - t2.minX + (t2.maxY - t2.minY);
|
|
6041
6032
|
}
|
|
6042
|
-
function
|
|
6033
|
+
function Pa(t2, e2) {
|
|
6043
6034
|
return (Math.max(e2.maxX, t2.maxX) - Math.min(e2.minX, t2.minX)) * (Math.max(e2.maxY, t2.maxY) - Math.min(e2.minY, t2.minY));
|
|
6044
6035
|
}
|
|
6045
|
-
function
|
|
6036
|
+
function Wa(t2, e2) {
|
|
6046
6037
|
const n2 = Math.max(t2.minX, e2.minX), r2 = Math.max(t2.minY, e2.minY), o2 = Math.min(t2.maxX, e2.maxX), s2 = Math.min(t2.maxY, e2.maxY);
|
|
6047
6038
|
return Math.max(0, o2 - n2) * Math.max(0, s2 - r2);
|
|
6048
6039
|
}
|
|
6049
|
-
function
|
|
6040
|
+
function Ha(t2, e2) {
|
|
6050
6041
|
return t2.minX <= e2.minX && t2.minY <= e2.minY && e2.maxX <= t2.maxX && e2.maxY <= t2.maxY;
|
|
6051
6042
|
}
|
|
6052
6043
|
function Va(t2, e2) {
|
|
@@ -6082,7 +6073,7 @@ function Ua(t2, e2, n2) {
|
|
|
6082
6073
|
const r2 = t2[e2];
|
|
6083
6074
|
t2[e2] = t2[n2], t2[n2] = r2;
|
|
6084
6075
|
}
|
|
6085
|
-
class Ja extends
|
|
6076
|
+
class Ja extends Na {
|
|
6086
6077
|
toBBox(t2) {
|
|
6087
6078
|
return { minX: 10 * t2.colStart, minY: 10 * t2.rowStart, maxX: 10 * t2.colEnd + 5, maxY: 10 * t2.rowEnd + 5 };
|
|
6088
6079
|
}
|
|
@@ -6152,7 +6143,7 @@ class qa {
|
|
|
6152
6143
|
let _2 = null;
|
|
6153
6144
|
const S2 = this.getBoundingCoords();
|
|
6154
6145
|
if (!S2) return this;
|
|
6155
|
-
const w2 = n2 === h.Up || n2 === h.Left ? h.Right : h.Left, y2 = /* @__PURE__ */ new Map(), E2 = /* @__PURE__ */ new Map(), C2 = this._options?.updateEntryOptions, b2 = C2?.isMergeOnShift ?? false, v2 = C2?.isSplitOnExpand ?? false, x2 = C2?.isTrailingEdge ?? false, I2 = n2 === h.Left || n2 === h.Up, R2 = C2?.getSplit ?? nl, A2 = C2?.getShifted, M2 = C2?.onShifted,
|
|
6146
|
+
const w2 = n2 === h.Up || n2 === h.Left ? h.Right : h.Left, y2 = /* @__PURE__ */ new Map(), E2 = /* @__PURE__ */ new Map(), C2 = this._options?.updateEntryOptions, b2 = C2?.isMergeOnShift ?? false, v2 = C2?.isSplitOnExpand ?? false, x2 = C2?.isTrailingEdge ?? false, I2 = n2 === h.Left || n2 === h.Up, R2 = C2?.getSplit ?? nl, A2 = C2?.getShifted, M2 = C2?.onShifted, N2 = C2?.onRemoved, T2 = C2?.onMerged, k2 = C2?.onUpdated, F2 = M2 ? [] : null, O2 = N2 ? [] : null, D2 = k2 ? [] : null;
|
|
6156
6147
|
this.visitRanges({ colStart: e2.colStart - (a2 ? 1 : 0), rowStart: e2.rowStart - (a2 ? 0 : 1), colEnd: a2 ? S2.colEnd : e2.colEnd, rowEnd: a2 ? e2.rowEnd : S2.rowEnd }, (t3) => {
|
|
6157
6148
|
if ((a2 ? t3.colEnd < e2.colStart : t3.rowEnd < e2.rowStart) && !x2) return;
|
|
6158
6149
|
const r3 = ol(e2, t3, a2 ? g.Column : g.Row), o2 = t3.group;
|
|
@@ -6186,10 +6177,10 @@ class qa {
|
|
|
6186
6177
|
let t3 = true;
|
|
6187
6178
|
if (m2 > 0 && (t3 = a2 ? e2.rowStart > S2.rowStart || e2.rowEnd < S2.rowEnd : e2.colStart > S2.colStart || e2.colEnd < S2.colEnd), t3) {
|
|
6188
6179
|
const t4 = Ka(_2, c.unionRanges(S2, _2), a2 ? 0 : 1, a2 ? 1 : 0);
|
|
6189
|
-
|
|
6180
|
+
T2 && (L2 = B2._mergeNodes(t4, false));
|
|
6190
6181
|
}
|
|
6191
6182
|
}
|
|
6192
|
-
return k2 && D2.length > 0 && k2(D2), M2 && F2.length > 0 && M2(F2),
|
|
6183
|
+
return k2 && D2.length > 0 && k2(D2), M2 && F2.length > 0 && M2(F2), T2 && L2.length > 0 && T2(L2), N2 && O2.length > 0 && N2(O2), B2;
|
|
6193
6184
|
}
|
|
6194
6185
|
insertNonOverlapping(t2, e2) {
|
|
6195
6186
|
const n2 = e2?.onIntersect ?? ((t3, e3) => ({ ...t3, value: e3.value })), r2 = this.search(t2), s2 = /* @__PURE__ */ new Map(), i2 = /* @__PURE__ */ new Map(), a2 = this._options?.updateEntryOptions, h2 = a2?.onUpdated, d2 = a2?.onRemoved, u2 = a2?.onMerged, g2 = a2?.getSplit, m2 = a2?.getIntersect, f2 = a2?.getUpdate;
|
|
@@ -6846,7 +6837,7 @@ const pl = "Must be an array of arrays.", _l = (t2, e2, n2) => {
|
|
|
6846
6837
|
}
|
|
6847
6838
|
if (!Array.isArray(t2)) throw new Error(pl);
|
|
6848
6839
|
if (t2.length > i2) throw new d();
|
|
6849
|
-
const l2 = e2 ? new
|
|
6840
|
+
const l2 = e2 ? new Tt.TransposedBuilder() : new Tt.Builder();
|
|
6850
6841
|
for (let e3 = 0; e3 < t2.length; e3++) {
|
|
6851
6842
|
let n3 = t2[e3];
|
|
6852
6843
|
if (null != n3 && 0 !== n3.length) {
|
|
@@ -6932,7 +6923,7 @@ class bl {
|
|
|
6932
6923
|
}
|
|
6933
6924
|
if (!s2) return sa;
|
|
6934
6925
|
r2 || d2 !== u2 || (r2 = true), Ml.bounds.min = d2, Ml.bounds.max = u2, Ml.reverse = p2, Ml.processSkip = a2, Ml.reuseResult = Rl;
|
|
6935
|
-
let _2 = this._major.entries(Ml), S2 =
|
|
6926
|
+
let _2 = this._major.entries(Ml), S2 = Nl();
|
|
6936
6927
|
const w2 = (t3) => {
|
|
6937
6928
|
if (!t3.nextActive) return;
|
|
6938
6929
|
const e3 = (e4) => {
|
|
@@ -6972,7 +6963,7 @@ class bl {
|
|
|
6972
6963
|
for (; S2; ) {
|
|
6973
6964
|
let a3 = null;
|
|
6974
6965
|
if (s3) {
|
|
6975
|
-
let e4 = n3 ?
|
|
6966
|
+
let e4 = n3 ? Nl() : S2;
|
|
6976
6967
|
if (a3 = y2(e4), a3) {
|
|
6977
6968
|
n3 ? (e4.prevMajorCursor = S2, S2.nextMajorCursor = e4, S2 = e4) : n3 = S2, o3 = p2 ? Math.max(o3, S2.nextMinorIndex) : Math.min(o3, S2.nextMinorIndex);
|
|
6978
6969
|
const r4 = S2.minorIndex;
|
|
@@ -7047,13 +7038,13 @@ class bl {
|
|
|
7047
7038
|
if (!t2 || 0 === t2.length) return this;
|
|
7048
7039
|
let a2 = Number.MAX_SAFE_INTEGER, l2 = Number.MIN_SAFE_INTEGER, c2 = 0, h2 = e2 - 1;
|
|
7049
7040
|
const g2 = [], m2 = (t3, e3, n3) => {
|
|
7050
|
-
if (h2 === n3) throw new
|
|
7041
|
+
if (h2 === n3) throw new Tt.OutOfOrderError(`Duplicate major Indices: {${n3}}.`);
|
|
7051
7042
|
h2 = n3, e3 = e3.sort(ul), t3 = t3.clone();
|
|
7052
7043
|
let s3 = Number.MIN_SAFE_INTEGER;
|
|
7053
7044
|
const i3 = e3.length;
|
|
7054
7045
|
for (let h3 = 0; h3 < i3; h3++) {
|
|
7055
7046
|
const i4 = e3[h3], u2 = i4[0], g3 = i4[1], m3 = u2 + g3.length - 1;
|
|
7056
|
-
if (s3 >= u2) throw new
|
|
7047
|
+
if (s3 >= u2) throw new Tt.OutOfOrderError(`Overlapping minor Indices: {${n3}, ${u2}}.`);
|
|
7057
7048
|
if (u2 < r2 || m3 > o2) throw new d();
|
|
7058
7049
|
if (g3 && g3.length > 0) {
|
|
7059
7050
|
const e4 = t3.getCount();
|
|
@@ -7185,9 +7176,9 @@ class bl {
|
|
|
7185
7176
|
}
|
|
7186
7177
|
let I2 = n2 ? f2.colStart : f2.rowStart, R2 = n2 ? f2.colEnd : f2.rowEnd, A2 = n2 ? f2.rowStart : f2.colStart, M2 = n2 ? f2.rowEnd : f2.colEnd;
|
|
7187
7178
|
o2 || (A2 = Number.MAX_SAFE_INTEGER, M2 = Number.MIN_SAFE_INTEGER);
|
|
7188
|
-
let
|
|
7189
|
-
r2 && (
|
|
7190
|
-
const
|
|
7179
|
+
let N2 = Number.MAX_SAFE_INTEGER;
|
|
7180
|
+
r2 && (N2 = s2 ? r2.colEnd : r2.rowEnd);
|
|
7181
|
+
const T2 = /* @__PURE__ */ new Set(), k2 = E2 ? /* @__PURE__ */ new Map() : null, F2 = [], O2 = v2.entries(Ml), D2 = { bounds: { min: g2, max: m2 } };
|
|
7191
7182
|
let B2 = O2.next();
|
|
7192
7183
|
for (; !B2.done; ) {
|
|
7193
7184
|
const t3 = B2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
|
|
@@ -7199,24 +7190,24 @@ class bl {
|
|
|
7199
7190
|
r5 - 1 <= m2 && o4 > m2 && (s4 = s4.slice(0, m2 + 1 - r5)), r5 < g2 && o4 + 1 >= g2 && (s4 = s4.slice(g2 - r5)), F2.push({ majorIndex: e3 + C2, minorIndex: Math.max(r5, g2), run: s4 });
|
|
7200
7191
|
}), n3.delete(g2, m2 - g2 + 1)) : n3.shift(g2, C2);
|
|
7201
7192
|
const r4 = n3.getCount();
|
|
7202
|
-
if (0 === r4)
|
|
7193
|
+
if (0 === r4) T2.add(e3), A2 = Math.min(A2, s3), M2 = Math.max(M2, o3);
|
|
7203
7194
|
else {
|
|
7204
7195
|
const t5 = n3.getCoords();
|
|
7205
|
-
if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 >
|
|
7196
|
+
if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 > N2) throw new d();
|
|
7206
7197
|
}
|
|
7207
7198
|
b2 += r4 - t4, x2.push([e3, n3]);
|
|
7208
7199
|
}
|
|
7209
7200
|
B2 = O2.next();
|
|
7210
7201
|
}
|
|
7211
7202
|
const L2 = this._optionsMinor;
|
|
7212
|
-
let
|
|
7203
|
+
let z2 = false;
|
|
7213
7204
|
for (let t3 = 0; t3 < F2.length; t3++) {
|
|
7214
7205
|
const e3 = F2[t3], n3 = e3.majorIndex, r3 = e3.run;
|
|
7215
7206
|
let o3 = k2.get(n3);
|
|
7216
|
-
o3 || (o3 = new pa(L2), k2.set(n3, o3), x2.push([n3, o3]),
|
|
7207
|
+
o3 || (o3 = new pa(L2), k2.set(n3, o3), x2.push([n3, o3]), z2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), T2 && T2.delete(n3);
|
|
7217
7208
|
}
|
|
7218
|
-
if (this._updateMajorSpan(x2,
|
|
7219
|
-
const t3 = Array.from(
|
|
7209
|
+
if (this._updateMajorSpan(x2, z2), T2 && T2.size > 0) {
|
|
7210
|
+
const t3 = Array.from(T2.values()), e3 = Is(t3);
|
|
7220
7211
|
for (let t4 = 0; t4 < e3.length; t4++) {
|
|
7221
7212
|
const n4 = e3[t4];
|
|
7222
7213
|
v2.delete(n4.min, n4.max - n4.min + 1);
|
|
@@ -7256,7 +7247,7 @@ class bl {
|
|
|
7256
7247
|
m2 = { ...m2 };
|
|
7257
7248
|
const f2 = o2 !== l.Row, p2 = t2.getMaxCoords();
|
|
7258
7249
|
g2 = cl(a2?.colStart ?? Number.MIN_SAFE_INTEGER, a2?.rowStart ?? Number.MIN_SAFE_INTEGER, a2?.colEnd ?? Number.MAX_SAFE_INTEGER, a2?.rowEnd ?? Number.MAX_SAFE_INTEGER, f2, p2), g2 = { ...g2 };
|
|
7259
|
-
const _2 = g2.majorStart - m2.majorStart, S2 = g2.minorStart - m2.minorStart, w2 = r2 === o2 ? new
|
|
7250
|
+
const _2 = g2.majorStart - m2.majorStart, S2 = g2.minorStart - m2.minorStart, w2 = r2 === o2 ? new Tt.Builder() : new Tt.TransposedBuilder();
|
|
7260
7251
|
for (; !i2.done; ) {
|
|
7261
7252
|
const t3 = i2.value[0];
|
|
7262
7253
|
let e3 = i2.value[1], n3 = i2.value[2];
|
|
@@ -7305,8 +7296,8 @@ class bl {
|
|
|
7305
7296
|
bl || (bl = {});
|
|
7306
7297
|
const vl = 12;
|
|
7307
7298
|
Object.seal({ done: false, value: null });
|
|
7308
|
-
const xl = [-1, -1, null], Il = Object.seal({ done: false, value: [-1, null] }), Rl = Object.seal({ done: false, value: [-1, null] }), Al = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Il }, Ml = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Rl },
|
|
7309
|
-
class
|
|
7299
|
+
const xl = [-1, -1, null], Il = Object.seal({ done: false, value: [-1, null] }), Rl = Object.seal({ done: false, value: [-1, null] }), Al = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Il }, Ml = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Rl }, Nl = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: false, nextMinorIndex: -1, nextActive: false, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
|
|
7300
|
+
class Tl {
|
|
7310
7301
|
constructor(t2) {
|
|
7311
7302
|
if (this._l = 0, this._at = null, this._dt = ql.Undefined, this._a32 = null, this._a64 = null, this._cv = null, this._vt = null, this._vi32 = null, this._vi64 = null, this._vf32 = null, this._vf64 = null, !t2) throw new Error("options is required");
|
|
7312
7303
|
const e2 = t2.length;
|
|
@@ -7332,8 +7323,8 @@ class Nl {
|
|
|
7332
7323
|
return o2 ? this._vf64[t2] : this._vf32[t2];
|
|
7333
7324
|
case Dl:
|
|
7334
7325
|
return !!r2;
|
|
7335
|
-
case Pl:
|
|
7336
7326
|
case zl:
|
|
7327
|
+
case Pl:
|
|
7337
7328
|
return this._cv(n2, o2 ? Number(r2) : r2);
|
|
7338
7329
|
case Bl:
|
|
7339
7330
|
return this._vi64[o2 ? t2 : r2];
|
|
@@ -7345,9 +7336,9 @@ class Nl {
|
|
|
7345
7336
|
return Number.MAX_SAFE_INTEGER;
|
|
7346
7337
|
case jl:
|
|
7347
7338
|
return Number.MIN_SAFE_INTEGER;
|
|
7348
|
-
case Hl:
|
|
7349
|
-
return 1 / 0;
|
|
7350
7339
|
case Wl:
|
|
7340
|
+
return 1 / 0;
|
|
7341
|
+
case Hl:
|
|
7351
7342
|
return -1 / 0;
|
|
7352
7343
|
case Gl:
|
|
7353
7344
|
return null;
|
|
@@ -7383,7 +7374,7 @@ class Nl {
|
|
|
7383
7374
|
}
|
|
7384
7375
|
static fromArray(t2, e2, n2, r2, o2 = kl) {
|
|
7385
7376
|
const s2 = t2.length;
|
|
7386
|
-
if (0 === s2) return new
|
|
7377
|
+
if (0 === s2) return new Tl({ type: ql.Undefined, length: s2, getCoercedValue: n2 });
|
|
7387
7378
|
let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Kl(t2[0], r2);
|
|
7388
7379
|
for (let e3 = 0; e3 < s2; e3++) {
|
|
7389
7380
|
const n3 = t2[e3], o3 = Kl(n3, r2);
|
|
@@ -7411,8 +7402,8 @@ class Nl {
|
|
|
7411
7402
|
case Ll:
|
|
7412
7403
|
u2[n3] = r3;
|
|
7413
7404
|
break;
|
|
7414
|
-
case Pl:
|
|
7415
7405
|
case zl:
|
|
7406
|
+
case Pl:
|
|
7416
7407
|
d2[n3] = BigInt(e2?.(y2, r3) ?? 0);
|
|
7417
7408
|
break;
|
|
7418
7409
|
default:
|
|
@@ -7439,8 +7430,8 @@ class Nl {
|
|
|
7439
7430
|
case Ll:
|
|
7440
7431
|
_2[r3] = n3, f2[n3] = o3, n3++;
|
|
7441
7432
|
break;
|
|
7442
|
-
case Pl:
|
|
7443
7433
|
case zl:
|
|
7434
|
+
case Pl:
|
|
7444
7435
|
d2[r3] = e2?.(y2, o3) ?? 0;
|
|
7445
7436
|
break;
|
|
7446
7437
|
default:
|
|
@@ -7448,28 +7439,28 @@ class Nl {
|
|
|
7448
7439
|
}
|
|
7449
7440
|
}
|
|
7450
7441
|
}
|
|
7451
|
-
return new
|
|
7442
|
+
return new Tl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
|
|
7452
7443
|
}
|
|
7453
7444
|
}
|
|
7454
|
-
const kl = 0.1, Fl = 1, Ol = 2, Dl = 3, Bl = 4, Ll = 5,
|
|
7445
|
+
const kl = 0.1, Fl = 1, Ol = 2, Dl = 3, Bl = 4, Ll = 5, zl = 6, Pl = 7, Wl = 8, Hl = 9, Vl = 10, $l = 11, jl = 12, Gl = 13, Ul = 14, Jl = 127, ql = { Undefined: Ul }, Kl = (t2, e2) => {
|
|
7455
7446
|
switch (typeof t2) {
|
|
7456
7447
|
case "number":
|
|
7457
7448
|
const n2 = t2;
|
|
7458
7449
|
if (Number.isNaN(n2)) return Vl;
|
|
7459
|
-
if (n2 === 1 / 0) return
|
|
7460
|
-
if (n2 === -1 / 0) return
|
|
7450
|
+
if (n2 === 1 / 0) return Wl;
|
|
7451
|
+
if (n2 === -1 / 0) return Hl;
|
|
7461
7452
|
if (Object.is(n2, -0)) return Ol;
|
|
7462
7453
|
if (n2 === Number.MAX_SAFE_INTEGER) return $l;
|
|
7463
7454
|
if (n2 === Number.MIN_SAFE_INTEGER) return jl;
|
|
7464
7455
|
if (Number.isInteger(n2) && n2 <= 2147483647 && n2 >= -2147483648) return Fl;
|
|
7465
7456
|
return Math.fround(n2) === n2 ? Ol : Ll;
|
|
7466
7457
|
case "string":
|
|
7467
|
-
return
|
|
7458
|
+
return zl;
|
|
7468
7459
|
case "boolean":
|
|
7469
7460
|
return Dl;
|
|
7470
7461
|
case "object":
|
|
7471
7462
|
if (null === t2) return Gl;
|
|
7472
|
-
if (t2 instanceof Error) return
|
|
7463
|
+
if (t2 instanceof Error) return Pl;
|
|
7473
7464
|
if (!e2) return Jl;
|
|
7474
7465
|
const r2 = e2(t2);
|
|
7475
7466
|
if (r2 < 128 || r2 > 255) throw new Error("Custom type must be between 128 and 255");
|
|
@@ -7661,7 +7652,7 @@ class rc {
|
|
|
7661
7652
|
return (t2 > o2 || e2 > s2) && (a2 = a2.clone(), t2 > o2 && (oc.colStart = r2.colEnd + 1, oc.rowStart = r2.rowStart, oc.colEnd = r2.colEnd, oc.rowEnd = r2.rowEnd, this._fill(a2, r2, n2)), e2 > s2 && (oc.colStart = r2.colStart, oc.rowStart = r2.rowEnd + 1, oc.colEnd = r2.colEnd, oc.rowEnd = r2.rowEnd, this._fill(a2, r2, n2))), new rc(a2, i2, this._type);
|
|
7662
7653
|
}
|
|
7663
7654
|
_mergeIterators(t2, n2, r2) {
|
|
7664
|
-
const o2 = this._coords ?? c.EmptyRange, s2 = t2._coords ?? c.EmptyRange, i2 = this._values.getOrientation(), a2 = r2?.orientation ?? i2, l2 = a2 !== e.Orientation.Row, h2 = this._entries(r2), d2 = this._entries(r2), u2 = o2.colStart, g2 = o2.rowStart, m2 = u2 - s2.colStart, f2 = g2 - s2.rowStart, p2 = a2 === i2 ? new
|
|
7655
|
+
const o2 = this._coords ?? c.EmptyRange, s2 = t2._coords ?? c.EmptyRange, i2 = this._values.getOrientation(), a2 = r2?.orientation ?? i2, l2 = a2 !== e.Orientation.Row, h2 = this._entries(r2), d2 = this._entries(r2), u2 = o2.colStart, g2 = o2.rowStart, m2 = u2 - s2.colStart, f2 = g2 - s2.rowStart, p2 = a2 === i2 ? new Tt.Builder() : new Tt.TransposedBuilder(), _2 = new fl({ ...r2, bounds: o2, comparator: (l2 ? Zl : tc)(o2, s2) }, h2, d2);
|
|
7665
7656
|
let S2 = _2.next();
|
|
7666
7657
|
for (; !S2.done; ) {
|
|
7667
7658
|
const t3 = S2.value;
|
|
@@ -7679,7 +7670,7 @@ class rc {
|
|
|
7679
7670
|
return this._cloneFromBuilder(i2, n2);
|
|
7680
7671
|
}
|
|
7681
7672
|
startIncrementalUpdates(t2) {
|
|
7682
|
-
const n2 = t2?.orientation ?? e.Orientation.Column, r2 = this._values.getOrientation(), o2 = (t2?.orientation ?? r2) !== e.Orientation.Row, s2 = n2 === r2 ? new
|
|
7673
|
+
const n2 = t2?.orientation ?? e.Orientation.Column, r2 = this._values.getOrientation(), o2 = (t2?.orientation ?? r2) !== e.Orientation.Row, s2 = n2 === r2 ? new Tt.Builder() : new Tt.TransposedBuilder(), i2 = this, a2 = this._coords ?? c.EmptyRange, l2 = a2.colStart, h2 = a2.rowStart, d2 = o2 ? l2 : h2, u2 = o2 ? h2 : l2, g2 = { pushAt(t3, e2, n3) {
|
|
7683
7674
|
const r3 = o2 ? e2 : t3, i3 = o2 ? t3 : e2;
|
|
7684
7675
|
return s2.addValue(r3 + d2, i3 + u2, n3), g2;
|
|
7685
7676
|
}, pushMultipleAt(t3, e2, n3) {
|
|
@@ -7760,28 +7751,28 @@ class rc {
|
|
|
7760
7751
|
const t2 = { ...M2 };
|
|
7761
7752
|
1 === p2 && (t2.colEnd = t2.colStart), 1 === _2 && (t2.rowEnd = t2.rowStart), A2 = new ml({ delegate: g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: t2, reuseResult: false }), bounds: t2, orientation: x2, dims: { major: I2 ? S2 : w2, minor: I2 ? w2 : S2 } });
|
|
7762
7753
|
} else A2 = g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: M2, reuseResult: false });
|
|
7763
|
-
const
|
|
7754
|
+
const N2 = i2.colStart, T2 = i2.rowStart, k2 = N2 - M2.colStart, F2 = T2 - M2.rowStart, O2 = x2 === v2 ? new Tt.Builder() : new Tt.TransposedBuilder(), D2 = new fl({ ...s2, bounds: i2, comparator: (I2 ? Zl : tc)(i2, M2) }, R2, A2);
|
|
7764
7755
|
let B2, L2 = D2.next();
|
|
7765
7756
|
for (; !L2.done; ) {
|
|
7766
7757
|
const t2 = L2.value;
|
|
7767
7758
|
let e2 = t2[1], r3 = t2[3];
|
|
7768
7759
|
const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex + k2, l3 = s3 ? s3.rowIndex : i3.rowIndex + F2;
|
|
7769
7760
|
let c2, u3;
|
|
7770
|
-
e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 -
|
|
7761
|
+
e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 - N2, rowIndex: l3 - T2 }, this);
|
|
7771
7762
|
const g3 = I2 ? a3 : l3, m3 = I2 ? l3 : a3;
|
|
7772
7763
|
O2.addValue(g3, m3, u3), L2 = D2.next();
|
|
7773
7764
|
}
|
|
7774
7765
|
if (C2 && y2 > S2 || E2 > w2) {
|
|
7775
7766
|
const t2 = this._values.clone();
|
|
7776
7767
|
if (this._applyBuilder(t2, O2), y2 > S2) {
|
|
7777
|
-
const e2 = cl(
|
|
7768
|
+
const e2 = cl(N2 + S2, T2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = _l(C2, e2, I2);
|
|
7778
7769
|
t2.setValues(n2.tuples);
|
|
7779
7770
|
}
|
|
7780
7771
|
if (E2 > w2) {
|
|
7781
|
-
const e2 = cl(
|
|
7772
|
+
const e2 = cl(N2, T2 + w2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = _l(C2, e2, I2);
|
|
7782
7773
|
t2.setValues(n2.tuples);
|
|
7783
7774
|
}
|
|
7784
|
-
B2 = new rc(t2, { colStart:
|
|
7775
|
+
B2 = new rc(t2, { colStart: N2, rowStart: T2, colEnd: N2 + y2 - 1, rowEnd: T2 + E2 - 1 }, this._type);
|
|
7785
7776
|
} else B2 = this._cloneFromBuilder(O2, s2, y2, E2);
|
|
7786
7777
|
return B2;
|
|
7787
7778
|
}
|
|
@@ -7816,7 +7807,7 @@ class rc {
|
|
|
7816
7807
|
if (n2 < 1 && r2 < 1) throw new Error("Must be at least size of 1");
|
|
7817
7808
|
const i2 = s2.getOrientation(), a2 = i2, l2 = a2 === e.Orientation.Column, c2 = Math.max(this.getWidth(), n2), h2 = Math.max(this.getHeight(), r2), d2 = l2 ? o2.colStart : o2.rowStart, u2 = l2 ? o2.rowStart : o2.colStart, g2 = l2 ? o2.colStart + c2 - 1 : o2.rowStart + h2 - 1, m2 = l2 ? o2.rowStart + h2 - 1 : o2.colStart + c2 - 1, f2 = s2.getRuns({ bounds: { colStart: o2.colStart, rowStart: o2.rowStart, colEnd: l2 ? g2 : m2, rowEnd: l2 ? m2 : g2 }, overflowRun: true });
|
|
7818
7809
|
let p2 = f2.next(), _2 = d2, S2 = u2;
|
|
7819
|
-
const w2 = a2 === i2 ? new
|
|
7810
|
+
const w2 = a2 === i2 ? new Tt.Builder() : new Tt.TransposedBuilder();
|
|
7820
7811
|
for (; !p2.done; ) {
|
|
7821
7812
|
const e2 = p2.value, n3 = e2[0];
|
|
7822
7813
|
for (; _2 < n3; ) {
|
|
@@ -7838,7 +7829,7 @@ class rc {
|
|
|
7838
7829
|
}
|
|
7839
7830
|
transpose() {
|
|
7840
7831
|
if (this.size <= 1) return this;
|
|
7841
|
-
const t2 = this._values.getOrientation(), n2 = this._coords, r2 = this.getWidth(), o2 = this.getHeight(), s2 = this._entries({ orientation: t2 === e.Orientation.Column ? e.Orientation.Row : e.Orientation.Column, bounds: n2, reuseResult: true }), i2 = t2 === e.Orientation.Column, a2 = new
|
|
7832
|
+
const t2 = this._values.getOrientation(), n2 = this._coords, r2 = this.getWidth(), o2 = this.getHeight(), s2 = this._entries({ orientation: t2 === e.Orientation.Column ? e.Orientation.Row : e.Orientation.Column, bounds: n2, reuseResult: true }), i2 = t2 === e.Orientation.Column, a2 = new Tt.Builder(), l2 = i2 ? n2.colStart : n2.rowStart, c2 = i2 ? n2.rowStart : n2.colStart;
|
|
7842
7833
|
let h2 = s2.next();
|
|
7843
7834
|
for (; !h2.done; ) {
|
|
7844
7835
|
const t3 = h2.value, e2 = t3[0], n3 = i2 ? e2.colIndex : e2.rowIndex - l2, r3 = (i2 ? e2.rowIndex : e2.colIndex - c2) + l2, o3 = n3 + c2, d2 = t3[1];
|
|
@@ -7857,7 +7848,7 @@ class rc {
|
|
|
7857
7848
|
}
|
|
7858
7849
|
_createTupleBuilder(t2) {
|
|
7859
7850
|
const n2 = this._coords, r2 = this._values.getOrientation(), o2 = t2 ?? r2, s2 = o2 !== e.Orientation.Row, i2 = s2 ? n2.colStart : n2.rowStart, a2 = s2 ? n2.rowStart : n2.colStart;
|
|
7860
|
-
return o2 === r2 ? new
|
|
7851
|
+
return o2 === r2 ? new Tt.Builder(null, i2, a2) : new Tt.TransposedBuilder(null, i2, a2);
|
|
7861
7852
|
}
|
|
7862
7853
|
entries(t2) {
|
|
7863
7854
|
const e2 = this._coords;
|
|
@@ -8144,8 +8135,8 @@ const oc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
|
|
|
8144
8135
|
n2.setValues(a2.tuples);
|
|
8145
8136
|
return new rc(n2, l2, o2, !r2);
|
|
8146
8137
|
}, yc = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), Ec = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), Cc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), bc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), vc = /\s+/g, xc = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, Ic = /[\uE000-\uF8FF]/g, Rc = "#REF!", Ac = Math.pow(2, 14), Mc = Math.pow(2, 20);
|
|
8147
|
-
let
|
|
8148
|
-
const kc = (t2) => (
|
|
8138
|
+
let Nc, Tc;
|
|
8139
|
+
const kc = (t2) => (Nc === t2 || (Tc = "" + (t2 + 1), Nc = t2), Tc);
|
|
8149
8140
|
let Fc, Oc;
|
|
8150
8141
|
const Dc = (t2) => {
|
|
8151
8142
|
if (Fc === t2) return Oc;
|
|
@@ -8156,15 +8147,15 @@ const Dc = (t2) => {
|
|
|
8156
8147
|
}, Bc = /[^a-zA-Z0-9]/, Lc = (t2) => {
|
|
8157
8148
|
if (!t2) return null;
|
|
8158
8149
|
return Dc(t2.colIndex) + kc(t2.rowIndex);
|
|
8159
|
-
},
|
|
8150
|
+
}, zc = (t2) => {
|
|
8160
8151
|
if (!t2) return Rc;
|
|
8161
8152
|
const e2 = Dc(t2.colIndex), n2 = kc(t2.rowIndex);
|
|
8162
8153
|
return (t2.$colIndex ? "$" + e2 : e2) + (t2.$rowIndex ? "$" + n2 : n2);
|
|
8163
|
-
},
|
|
8154
|
+
}, Pc = (t2, e2) => {
|
|
8164
8155
|
let n2 = t2 ?? e2;
|
|
8165
8156
|
var r2;
|
|
8166
|
-
return n2 && (n2 =
|
|
8167
|
-
},
|
|
8157
|
+
return n2 && (n2 = To(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, Bc.test(r2) && (n2 = ko(n2))), n2;
|
|
8158
|
+
}, Wc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Rc, Hc = (t2, e2, n2 = Lc) => {
|
|
8168
8159
|
if (!t2) return null;
|
|
8169
8160
|
const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
|
|
8170
8161
|
if (r2 === s2 && o2 === i2) return n2({ colIndex: r2, rowIndex: o2 });
|
|
@@ -8174,16 +8165,16 @@ const Dc = (t2) => {
|
|
|
8174
8165
|
c2 = l2 ? Dc(r2) : a2 ? kc(o2) : n2({ colIndex: r2, rowIndex: o2 });
|
|
8175
8166
|
let h2 = null;
|
|
8176
8167
|
return h2 = l2 ? Dc(s2) : a2 ? kc(i2) : n2({ colIndex: s2, rowIndex: i2 }), c2 + ":" + h2;
|
|
8177
|
-
}, Vc = (t2, e2, n2 =
|
|
8168
|
+
}, Vc = (t2, e2, n2 = zc) => {
|
|
8178
8169
|
if (!t2) return Rc;
|
|
8179
8170
|
const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
|
|
8180
8171
|
let i2 = null;
|
|
8181
8172
|
if (o2 === Number.MIN_SAFE_INTEGER ? (i2 = Dc(r2), t2.$colIndex && (i2 = "$" + i2)) : s2 ? (i2 = kc(o2), t2.$rowIndex && (i2 = "$" + i2)) : i2 = n2(t2), t2.sheetName || e2) {
|
|
8182
|
-
const n3 =
|
|
8183
|
-
i2 =
|
|
8173
|
+
const n3 = Pc(t2.sheetName, e2);
|
|
8174
|
+
i2 = Wc(n3, i2);
|
|
8184
8175
|
}
|
|
8185
8176
|
return i2;
|
|
8186
|
-
}, $c = (t2, e2, n2 =
|
|
8177
|
+
}, $c = (t2, e2, n2 = zc) => {
|
|
8187
8178
|
if (!t2) return Rc;
|
|
8188
8179
|
const r2 = void 0 !== t2.rowStart && t2.rowStart === t2.rowEnd;
|
|
8189
8180
|
if (void 0 !== t2.colStart && t2.colStart === t2.colEnd && r2) return n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
@@ -8193,9 +8184,9 @@ const Dc = (t2) => {
|
|
|
8193
8184
|
o2 ? (i2 = Dc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 = kc(t2.rowStart), i2 = t2.$rowStart ? "$" + i2 : i2) : i2 = n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
8194
8185
|
let a2 = null;
|
|
8195
8186
|
return o2 ? (a2 = Dc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 = kc(t2.rowEnd), a2 = t2.$rowEnd ? "$" + a2 : a2) : a2 = n2({ colIndex: t2.colEnd, rowIndex: t2.rowEnd, $colIndex: t2.$colEnd, $rowIndex: t2.$rowEnd }), i2 + ":" + a2;
|
|
8196
|
-
}, jc = (t2, e2, n2 =
|
|
8197
|
-
const r2 = $c(t2, e2, n2), o2 =
|
|
8198
|
-
return
|
|
8187
|
+
}, jc = (t2, e2, n2 = zc) => {
|
|
8188
|
+
const r2 = $c(t2, e2, n2), o2 = Pc(t2?.sheetName, e2?.sheetName);
|
|
8189
|
+
return Wc(o2, r2);
|
|
8199
8190
|
}, Gc = (t2, e2 = false) => {
|
|
8200
8191
|
if (!t2) return null;
|
|
8201
8192
|
let n2 = 0, r2 = 0, o2 = false, s2 = false;
|
|
@@ -8239,7 +8230,7 @@ const Dc = (t2) => {
|
|
|
8239
8230
|
const e3 = t3.lastIndexOf("!");
|
|
8240
8231
|
if (-1 === e3) return null;
|
|
8241
8232
|
let n3 = t3.slice(0, e3);
|
|
8242
|
-
return n3 =
|
|
8233
|
+
return n3 = To(n3), n3 = n3.replace(/''/g, "'"), [n3, t3.slice(e3 + 1)];
|
|
8243
8234
|
})(t2);
|
|
8244
8235
|
let o2;
|
|
8245
8236
|
if (r2) {
|
|
@@ -8247,7 +8238,7 @@ const Dc = (t2) => {
|
|
|
8247
8238
|
o2.sheetName = r2[0];
|
|
8248
8239
|
} else o2 = Uc(t2, e2, n2);
|
|
8249
8240
|
return o2 || null;
|
|
8250
|
-
}, qc = (t2, e2, n2 = $c, r2 =
|
|
8241
|
+
}, qc = (t2, e2, n2 = $c, r2 = zc) => {
|
|
8251
8242
|
if (!t2 || 0 === t2.length) return null;
|
|
8252
8243
|
const o2 = [], s2 = t2.length;
|
|
8253
8244
|
for (let i2 = 0; i2 < s2; i2++) {
|
|
@@ -8256,7 +8247,7 @@ const Dc = (t2) => {
|
|
|
8256
8247
|
s3 ? void 0 !== s3.rowIndex || void 0 !== s3.colIndex ? a2 = r2(s3) : void 0 !== s3.rowStart || void 0 !== s3.colStart ? a2 = n2(s3, e2, r2) : "string" == typeof s3 && (a2 = s3) : a2 = Rc, a2 && o2.push(a2);
|
|
8257
8248
|
}
|
|
8258
8249
|
return o2;
|
|
8259
|
-
}, Kc = (t2, e2, n2 = jc, r2 =
|
|
8250
|
+
}, Kc = (t2, e2, n2 = jc, r2 = zc) => {
|
|
8260
8251
|
const o2 = qc(t2, e2, n2, r2);
|
|
8261
8252
|
return o2 ? o2.join(",") : Rc;
|
|
8262
8253
|
}, Xc = (t2, e2, n2, r2 = Jc, o2, s2 = false) => {
|
|
@@ -8412,7 +8403,7 @@ const Dc = (t2) => {
|
|
|
8412
8403
|
r2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? n2 += `R${r2 + 1}` : n2 += 0 === r2 ? "R" : `R[${r2 + 1}]`);
|
|
8413
8404
|
let o2 = "";
|
|
8414
8405
|
const s2 = t2.colIndex;
|
|
8415
|
-
return s2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? o2 += `C${s2 + 1}` : o2 += 0 === s2 ? "C" : `C[${s2 + 1}]`), t2.sheetName && (n2 =
|
|
8406
|
+
return s2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? o2 += `C${s2 + 1}` : o2 += 0 === s2 ? "C" : `C[${s2 + 1}]`), t2.sheetName && (n2 = Pc(t2.sheetName, e2) + "!" + n2), n2 + o2;
|
|
8416
8407
|
}, dh = (t2, e2, n2) => {
|
|
8417
8408
|
let r2 = "";
|
|
8418
8409
|
const o2 = t2.colIndex;
|
|
@@ -8550,7 +8541,7 @@ class xh {
|
|
|
8550
8541
|
}
|
|
8551
8542
|
toJSON() {
|
|
8552
8543
|
const t2 = this.ref;
|
|
8553
|
-
return [
|
|
8544
|
+
return [Hc(t2), this.formula.getTextAt(t2.rowStart, t2.colStart)];
|
|
8554
8545
|
}
|
|
8555
8546
|
getCoords() {
|
|
8556
8547
|
return this.ref;
|
|
@@ -8612,9 +8603,9 @@ class xh {
|
|
|
8612
8603
|
const Ih = Object.freeze({ break: true });
|
|
8613
8604
|
var Rh;
|
|
8614
8605
|
(Rh || (Rh = {})).Type = { Style: "style", Table: "table", Merge: "merge", Hyperlink: "hyperlink", Comments: "comments", Unlock: "unlock", Contentful: "contentful", Conditional: "conditional", Formula: "formula", Spill: "spill", Continuous: "continuous", Pending: "pending", CalcError: "calcError" };
|
|
8615
|
-
const Ah = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: false, [Rh.Type.Merge]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Formula]: false, [Rh.Type.Spill]: false, [Rh.Type.Pending]: false, [Rh.Type.CalcError]: false, [Rh.Type.Contentful]: false, [Rh.Type.Conditional]: false, [Rh.Type.Continuous]: false }), Mh = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: false, [Rh.Type.Merge]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Formula]: false, [Rh.Type.Spill]: false, [Rh.Type.Pending]: false, [Rh.Type.CalcError]: false, [Rh.Type.Conditional]: false, [Rh.Type.Continuous]: false }),
|
|
8606
|
+
const Ah = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: false, [Rh.Type.Merge]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Formula]: false, [Rh.Type.Spill]: false, [Rh.Type.Pending]: false, [Rh.Type.CalcError]: false, [Rh.Type.Contentful]: false, [Rh.Type.Conditional]: false, [Rh.Type.Continuous]: false }), Mh = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: false, [Rh.Type.Merge]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Formula]: false, [Rh.Type.Spill]: false, [Rh.Type.Pending]: false, [Rh.Type.CalcError]: false, [Rh.Type.Conditional]: false, [Rh.Type.Continuous]: false }), Nh = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: true, [Rh.Type.Merge]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Formula]: false });
|
|
8616
8607
|
Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Contentful]: false, [Rh.Type.Formula]: false });
|
|
8617
|
-
const
|
|
8608
|
+
const Th = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Continuous]: false, [Rh.Type.Contentful]: false }), kh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", Fh = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, Oh = "The range is outside of the bounds of the sheet.", Dh = "Listener can not be null", Bh = "We can't insert items. The sheet is protected.", Lh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, zh = "Overlapping ranges can not be merged.", Ph = "We can't insert cells because this would push values off the end of the worksheet. These cells may appear empty but they have some formatting or formulas. Delete enough rows or columns and try again.", Wh = "Unable to partially fill over merged cells.", Hh = "Unable to sort merged cells unless they are all the same size.", Vh = "Sheet has been closed. No further operations are allowed.", $h = "IteratorContext can only be used during visit.", jh = "When using addresses directly from the sheet do not include the sheet name.", Gh = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, Uh = "'setValue' expects a single value; when working with an array use 'setValue'.", Jh = "Multiple selection ranges can not be copied.", qh = "Unable to determine source.", Kh = "When pasting before or after the cut area both areas must align.";
|
|
8618
8609
|
var Xh, Yh;
|
|
8619
8610
|
(Yh = Xh || (Xh = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, Yh.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
|
|
8620
8611
|
class Qh {
|
|
@@ -8670,10 +8661,10 @@ const Zh = (t2) => {
|
|
|
8670
8661
|
n2 && "]" !== s2 && '"' !== s2 ? e2 += s2 : '"' === s2 ? (e2 += "\\0022", n2 = !n2) : ["[", "]", ",", "#", ".", "@", "/", ":", ";", "-", " "].includes(s2) ? (e2 += "\\" + s2, "[" === s2 ? n2 = true : "]" === s2 && (n2 = false)) : ["(", ")"].includes(s2) ? e2 += "_" === r2 ? "\\" + s2 : "\\\\\\" + s2 : ["$"].includes(s2) ? e2 += "\\0022" + s2 + "\\0022" : e2 += s2, r2 = s2;
|
|
8671
8662
|
}
|
|
8672
8663
|
return '"' + e2 + '"';
|
|
8673
|
-
}, cd = "Thin", hd = "Hairline", dd = "Extra Light", ud = "Ultra Light", gd = "Light", md = "Normal", fd = "Regular", pd = "Medium", _d = "Semi Bold", Sd = "Demi Bold", wd = "Bold", yd = "Extra Bold", Ed = "Ultra Bold", Cd = "Black", bd = "Heavy", vd = "Extra Black", xd = "Ultra Black", Id = "lighter", Rd = "normal", Ad = "bold", Md = "bolder",
|
|
8674
|
-
|
|
8675
|
-
const
|
|
8676
|
-
$d.set(o.textToKey(
|
|
8664
|
+
}, cd = "Thin", hd = "Hairline", dd = "Extra Light", ud = "Ultra Light", gd = "Light", md = "Normal", fd = "Regular", pd = "Medium", _d = "Semi Bold", Sd = "Demi Bold", wd = "Bold", yd = "Extra Bold", Ed = "Ultra Bold", Cd = "Black", bd = "Heavy", vd = "Extra Black", xd = "Ultra Black", Id = "lighter", Rd = "normal", Ad = "bold", Md = "bolder", Nd = /* @__PURE__ */ new Map();
|
|
8665
|
+
Nd.set(o.textToKey(cd), 100), Nd.set(o.textToKey(hd), 100), Nd.set(o.textToKey(dd), 200), Nd.set(o.textToKey(ud), 200), Nd.set(o.textToKey(gd), 300), Nd.set(o.textToKey(md), 400), Nd.set(o.textToKey(fd), 400), Nd.set(o.textToKey(pd), 500), Nd.set(o.textToKey(_d), 600), Nd.set(o.textToKey(Sd), 600), Nd.set(o.textToKey(md), 400), Nd.set(o.textToKey(wd), 700), Nd.set(o.textToKey(yd), 800), Nd.set(o.textToKey(Ed), 800), Nd.set(o.textToKey(Cd), 900), Nd.set(o.textToKey(bd), 900), Nd.set(o.textToKey(vd), 950), Nd.set(o.textToKey(xd), 950), Nd.set(o.textToKey(Id), 100), Nd.set(o.textToKey(Rd), 400), Nd.set(o.textToKey(Ad), 700), Nd.set(o.textToKey(Md), 700);
|
|
8666
|
+
const Td = "xx-small", kd = "x-small", Fd = "small", Od = "medium", Dd = "large", Bd = "x-large", Ld = "xx-large", zd = "xxx-large", Pd = "smaller", Wd = "larger", Hd = "math", Vd = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), $d = /* @__PURE__ */ new Map();
|
|
8667
|
+
$d.set(o.textToKey(Td), (t2) => 0.4 * t2), $d.set(o.textToKey(kd), (t2) => 0.5 * t2), $d.set(o.textToKey(Fd), (t2) => 0.6 * t2), $d.set(o.textToKey(Od), (t2) => t2), $d.set(o.textToKey(Dd), (t2) => 1.1 * t2), $d.set(o.textToKey(Bd), (t2) => 1.25 * t2), $d.set(o.textToKey(Ld), (t2) => 1.5 * t2), $d.set(o.textToKey(zd), (t2) => 2 * t2), $d.set(o.textToKey(Pd), (t2) => 0.9 * t2), $d.set(o.textToKey(Wd), (t2) => 1.1 * t2), $d.set(o.textToKey(Hd), (t2) => t2);
|
|
8677
8668
|
const jd = (t2, e2 = 11, n2 = "pt") => {
|
|
8678
8669
|
if (!t2) return null;
|
|
8679
8670
|
let r2 = e2;
|
|
@@ -8827,7 +8818,7 @@ const Iu = (t2) => {
|
|
|
8827
8818
|
return { left: n2, right: n2, top: n2, bottom: n2, horizontal: null, vertical: null, diagonalUp: null, diagonalDown: null };
|
|
8828
8819
|
}
|
|
8829
8820
|
return t2;
|
|
8830
|
-
}, properties: { top: Au, left: Au, right: Au, bottom: Au, horizontal: Au, vertical: Au, diagonalUp: Au, diagonalDown: Au } },
|
|
8821
|
+
}, properties: { top: Au, left: Au, right: Au, bottom: Au, horizontal: Au, vertical: Au, diagonalUp: Au, diagonalDown: Au } }, Nu = { shorthand: (t2, e2) => {
|
|
8831
8822
|
if ("string" == typeof t2) {
|
|
8832
8823
|
let e3 = fi.Styles.lookupDefault(t2);
|
|
8833
8824
|
return void 0 !== e3 ? e3 : t2;
|
|
@@ -8836,7 +8827,7 @@ const Iu = (t2) => {
|
|
|
8836
8827
|
return ii(t2);
|
|
8837
8828
|
}
|
|
8838
8829
|
return null;
|
|
8839
|
-
} },
|
|
8830
|
+
} }, Tu = { shorthand: (t2, e2) => {
|
|
8840
8831
|
if (t2.isIStyledFont) return t2.toJSON();
|
|
8841
8832
|
if ("string" == typeof t2) {
|
|
8842
8833
|
const e3 = Zh(t2);
|
|
@@ -8861,7 +8852,7 @@ const Iu = (t2) => {
|
|
|
8861
8852
|
let e3 = 400;
|
|
8862
8853
|
if (e3 = "number" == typeof t3 ? t3 : parseFloat(t3), !isNaN(e3)) return e3;
|
|
8863
8854
|
if ("string" == typeof t3) {
|
|
8864
|
-
const e4 = o.textToKey(t3), n3 =
|
|
8855
|
+
const e4 = o.textToKey(t3), n3 = Nd.get(e4);
|
|
8865
8856
|
if (n3) return n3;
|
|
8866
8857
|
}
|
|
8867
8858
|
return e3;
|
|
@@ -8888,19 +8879,19 @@ const Iu = (t2) => {
|
|
|
8888
8879
|
e2?.toJSON && (e2 = e2.toJSON());
|
|
8889
8880
|
const r2 = Os.BuiltInSheetPattern.MediumGray;
|
|
8890
8881
|
return e2?.type === Os.Type.Pattern ? { ...e2, ...t2 } : e2?.type === Os.Type.Solid ? { patternType: r2, foreground: e2?.color ?? Bs.Named.WindowText, background: Bs.Scheme.Bg1, ...t2 } : e2?.type === Os.Type.Gradient ? { patternType: r2, foreground: e2?.stops?.[0]?.color ?? Bs.Named.WindowText, background: e2?.stops?.[1]?.color ?? Bs.Scheme.Bg1, ...t2 } : t2 ? { type: Os.Type.Pattern, patternType: Os.BuiltInSheetPattern.Solid, foreground: Bs.Named.WindowText, background: Bs.Scheme.Bg1, ...t2 } : null;
|
|
8891
|
-
}, properties: { foreground: Ru, background: Ru } }, Lu = [Fu, Ou, Du, Bu],
|
|
8882
|
+
}, properties: { foreground: Ru, background: Ru } }, Lu = [Fu, Ou, Du, Bu], zu = [];
|
|
8892
8883
|
for (let t2 = 0; t2 < Lu.length; t2++) {
|
|
8893
8884
|
const e2 = Lu[t2]?.shorthand;
|
|
8894
|
-
|
|
8885
|
+
zu.push(e2);
|
|
8895
8886
|
}
|
|
8896
|
-
const
|
|
8887
|
+
const Pu = zu.length, Wu = { properties: { font: Tu, fill: { shorthand: (t2, e2) => {
|
|
8897
8888
|
t2.isIFill && (t2 = t2.toJSON());
|
|
8898
|
-
for (let n2 = 0; n2 <
|
|
8899
|
-
let r2 =
|
|
8889
|
+
for (let n2 = 0; n2 < Pu; n2++) {
|
|
8890
|
+
let r2 = zu[n2](t2, e2);
|
|
8900
8891
|
if (r2?.type) return r2;
|
|
8901
8892
|
}
|
|
8902
8893
|
return t2;
|
|
8903
|
-
}, getSubType: (t2) => t2.type === Os.Type.None ? Fu : t2.type === Os.Type.Solid ? Ou : t2.type === Os.Type.Gradient ? Du : t2.type === Os.Type.Pattern ? Bu : null }, alignment: ku, border: Mu, numberFormat:
|
|
8894
|
+
}, getSubType: (t2) => t2.type === Os.Type.None ? Fu : t2.type === Os.Type.Solid ? Ou : t2.type === Os.Type.Gradient ? Du : t2.type === Os.Type.Pattern ? Bu : null }, alignment: ku, border: Mu, numberFormat: Nu } }, Hu = { properties: { style: Wu } }, Vu = Object.freeze({ displayText: "", conditionalColor: null, repeatChars: o.EmptyArray, spacingChars: o.EmptyArray, repeatPlaceholder: null, formattedRuns: Object.freeze({ runs: o.EmptyArray, length: 0, width: 0, lastRepeatIndex: -1 }), canWrap: false, asDate: null, isDateFormat: false, isTimeFormat: false, isDate1904: false }), $u = (e2, n2, r2, s2, i2, a2 = false) => {
|
|
8904
8895
|
if (null == e2) return Vu;
|
|
8905
8896
|
let l2 = "", c2 = null, h2 = null, d2 = null;
|
|
8906
8897
|
if (r2 === t.Error) l2 = e2.getLabel();
|
|
@@ -9596,7 +9587,7 @@ class pg {
|
|
|
9596
9587
|
}
|
|
9597
9588
|
cloneWithUpdate(t2) {
|
|
9598
9589
|
if (void 0 === t2) return this;
|
|
9599
|
-
const e2 = this._c, n2 = this._r, r2 = this._p, o2 = f.resolveTypedUpdates(t2,
|
|
9590
|
+
const e2 = this._c, n2 = this._r, r2 = this._p, o2 = f.resolveTypedUpdates(t2, Wu, e2, r2);
|
|
9600
9591
|
return new pg(e2, n2, o2);
|
|
9601
9592
|
}
|
|
9602
9593
|
copyTo(t2, e2) {
|
|
@@ -9658,7 +9649,7 @@ class pg {
|
|
|
9658
9649
|
const y2 = 1 === g2 ? d2[_2] : d2[S2];
|
|
9659
9650
|
if (g2 > 1 && !fg(y2, d2[S2])) return;
|
|
9660
9651
|
if (!fg(w2, y2)) return;
|
|
9661
|
-
const E2 = { border: { [e2]: h2[e2], [r3]: h2[r3], [m2]: h2[m2], [S2]: w2, [_2]: h2[_2], [p2]: d2[p2] } }, C2 = f.resolveTypedUpdates(E2,
|
|
9652
|
+
const E2 = { border: { [e2]: h2[e2], [r3]: h2[r3], [m2]: h2[m2], [S2]: w2, [_2]: h2[_2], [p2]: d2[p2] } }, C2 = f.resolveTypedUpdates(E2, Wu, u2, i2);
|
|
9662
9653
|
return new pg(u2, n2, C2);
|
|
9663
9654
|
}
|
|
9664
9655
|
return new pg(u2, n2, this._p);
|
|
@@ -9821,11 +9812,11 @@ const Cg = new class {
|
|
|
9821
9812
|
const v2 = c2.colHeaders, x2 = v2.findOffset.bind(v2), I2 = v2.findIndex.bind(v2);
|
|
9822
9813
|
let R2 = x2(h2);
|
|
9823
9814
|
const A2 = R2;
|
|
9824
|
-
let M2 = x2(h2 + b2),
|
|
9825
|
-
const F2 = { x: 0, y: 0, width:
|
|
9815
|
+
let M2 = x2(h2 + b2), N2 = M2 - R2, T2 = h2, k2 = h2;
|
|
9816
|
+
const F2 = { x: 0, y: 0, width: N2, height: d2?.height ?? 0 };
|
|
9826
9817
|
const O2 = h2 - h2 + b2;
|
|
9827
|
-
let D2 = d2 ? d2.width -
|
|
9828
|
-
|
|
9818
|
+
let D2 = d2 ? d2.width - N2 : 0, B2 = F2;
|
|
9819
|
+
N2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (k2 = I2(M2 + D2), null !== a2 && (k2 = Math.min(k2, a2.colIndex - 1)), M2 = x2(k2), C2 = D2, y2 = k2 - h2), S2 !== p.Right && S2 !== p.Center || (T2 = I2(R2 - D2), null !== i2 && (T2 = Math.max(T2, i2.colIndex + 1)), R2 = x2(T2), E2 = D2, w2 = h2 - T2), F2.x = A2 - R2, B2.x = F2.x), b2 > 1 && (y2 = S2 === p.Center ? Math.max(O2 - 1, y2) : b2 - 1, M2 = x2(h2 + 1), F2.width = M2 - R2, B2 = { ...F2 }, B2.width = N2);
|
|
9829
9820
|
return { anchorBounds: F2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: B2 };
|
|
9830
9821
|
};
|
|
9831
9822
|
class Mg {
|
|
@@ -9857,31 +9848,31 @@ class Mg {
|
|
|
9857
9848
|
}
|
|
9858
9849
|
let i2 = null;
|
|
9859
9850
|
const a2 = this._table?.getPropertiesAt(t2, e2, n2);
|
|
9860
|
-
a2 && (i2 = i2 ? f.resolveTypedUpdates(a2,
|
|
9851
|
+
a2 && (i2 = i2 ? f.resolveTypedUpdates(a2, Wu, s2, i2) : a2), r2 && (i2 = i2 ? f.resolveTypedUpdates(r2, Wu, s2, i2) : r2);
|
|
9861
9852
|
const l2 = this._conditionals;
|
|
9862
9853
|
if (l2) for (let r3 = 0; r3 < l2.length; r3++) {
|
|
9863
9854
|
const o3 = l2[r3].getPropertiesAt(t2, e2, n2);
|
|
9864
|
-
o3 && (i2 = i2 ? f.resolveTypedUpdates(o3,
|
|
9855
|
+
o3 && (i2 = i2 ? f.resolveTypedUpdates(o3, Wu, s2, i2) : o3);
|
|
9865
9856
|
}
|
|
9866
|
-
return o2 && (i2 = i2 ? f.resolveTypedUpdates(o2,
|
|
9857
|
+
return o2 && (i2 = i2 ? f.resolveTypedUpdates(o2, Wu, s2, i2) : o2), i2;
|
|
9867
9858
|
}
|
|
9868
9859
|
cloneWithUpdate(t2) {
|
|
9869
9860
|
return (this._ri.directStyle ?? this._styles.getNormalRanged()).cloneWithUpdate(t2);
|
|
9870
9861
|
}
|
|
9871
9862
|
}
|
|
9872
|
-
const
|
|
9863
|
+
const Ng = (t2, e2, n2, r2) => {
|
|
9873
9864
|
const o2 = r2.styles;
|
|
9874
9865
|
return ug(o2, n2 ? new Mg(o2, n2) : null, e2, r2.styleUpdater);
|
|
9875
|
-
},
|
|
9866
|
+
}, Tg = (e2, n2, r2, s2, i2, a2, l2, c2 = null, h2 = Eg) => {
|
|
9876
9867
|
if (null === r2) return n2 ? n2.getBestFit() : null;
|
|
9877
9868
|
const d2 = e2 === t.String, u2 = n2.getFont(), g2 = u2.getWeight(), m2 = u2.getSize(), f2 = u2.getFamily(), p2 = n2.getAlignment(), _2 = p2.getOverflow(), S2 = p2.getRotation(), w2 = p2.getVertical(), y2 = n2.getNumberFormat(), E2 = d2 && _2 === wo.Overflow.Visible, C2 = d2 && (_2 === wo.Overflow.Wrap || w2 === wo.VerticalAlignment.Justify || w2 === wo.VerticalAlignment.Distributed), b2 = (c2 ?? "") + "\0" + m2 + f2 + g2 + y2 + S2 + E2 + C2 + a2 + l2 + (c2 ? "" : r2), v2 = h2.get(b2);
|
|
9878
9869
|
if (v2) return v2;
|
|
9879
9870
|
let x2 = null, I2 = null;
|
|
9880
9871
|
const R2 = Ig(e2, n2), A2 = R2.top + R2.bottom + +em(n2);
|
|
9881
|
-
let M2 = false,
|
|
9882
|
-
l2 && (
|
|
9883
|
-
const
|
|
9884
|
-
if (
|
|
9872
|
+
let M2 = false, N2 = false;
|
|
9873
|
+
l2 && (N2 = true, (0 !== S2 || C2) && (N2 = false));
|
|
9874
|
+
const T2 = N2 ? void 0 : xg(e2, n2, r2, s2), k2 = R2.left + R2.right + 2;
|
|
9875
|
+
if (T2) {
|
|
9885
9876
|
if (e2 === t.Number && "General" === y2 && a2) {
|
|
9886
9877
|
let t2 = r2, e3 = o.splitNumber(t2), s3 = "";
|
|
9887
9878
|
s3 = Math.abs(t2) >= Math.pow(10, 12) || Math.abs(t2) <= Math.pow(10, -12) ? `0.${"0".repeat(Math.max(2, Math.min(e3.ipLength, 5)))}E+00` : 0 === Math.abs(e3.ipLength) ? "0.0" : Math.abs(e3.fpLength) > 0 ? "0".repeat(e3.ipLength) + ".0" : "0".repeat(e3.ipLength), t2 < 0 && (s3 = "-" + s3), s3 = "0".repeat(s3.length);
|
|
@@ -9890,7 +9881,7 @@ const Tg = (t2, e2, n2, r2) => {
|
|
|
9890
9881
|
} else {
|
|
9891
9882
|
let t2 = null;
|
|
9892
9883
|
C2 && (t2 = { width: Math.max(1, i2 - k2) });
|
|
9893
|
-
const e3 =
|
|
9884
|
+
const e3 = T2.layout(t2);
|
|
9894
9885
|
x2 = e3.bounds.width, I2 = e3.bounds.height;
|
|
9895
9886
|
}
|
|
9896
9887
|
if (null !== x2 && (x2 += k2), null !== I2 && (I2 += A2), M2 = e2 === t.String, S2) {
|
|
@@ -9910,7 +9901,7 @@ const Tg = (t2, e2, n2, r2) => {
|
|
|
9910
9901
|
const o2 = Ig(t2, e2), s2 = Rg(t2, e2);
|
|
9911
9902
|
let i2 = o2.left + o2.right;
|
|
9912
9903
|
s2 === wo.HorizontalAlignment.Left ? i2 = o2.right : s2 === wo.HorizontalAlignment.Right ? i2 = o2.left : s2 === wo.HorizontalAlignment.Center && (i2 = o2.left + o2.right);
|
|
9913
|
-
const a2 =
|
|
9904
|
+
const a2 = Tg(t2, e2, n2, r2, Number.MAX_SAFE_INTEGER, false, false);
|
|
9914
9905
|
return { width: Math.ceil(a2.width - i2), height: Math.ceil(a2.height) };
|
|
9915
9906
|
};
|
|
9916
9907
|
class Fg {
|
|
@@ -9998,7 +9989,7 @@ class Fg {
|
|
|
9998
9989
|
return null !== this._v;
|
|
9999
9990
|
}
|
|
10000
9991
|
getBestFit(t2, e2 = false) {
|
|
10001
|
-
return void 0 === t2 && (t2 = this._options.sheet.getColumnHeaders().getSpanSize(this._coords.colIndex) ?? 64),
|
|
9992
|
+
return void 0 === t2 && (t2 = this._options.sheet.getColumnHeaders().getSpanSize(this._coords.colIndex) ?? 64), Tg(this._t, this.getStyle(), this._v, this._options, t2, e2, false);
|
|
10002
9993
|
}
|
|
10003
9994
|
getInsets() {
|
|
10004
9995
|
if (null === this._v) return this.getStyle().getInsets();
|
|
@@ -10036,7 +10027,7 @@ class Fg {
|
|
|
10036
10027
|
getStyle(t2 = false) {
|
|
10037
10028
|
if (!t2 && this._styleConditional) return this._styleConditional;
|
|
10038
10029
|
if (t2 && this._styleSpecific) return this._styleSpecific;
|
|
10039
|
-
const e2 =
|
|
10030
|
+
const e2 = Ng(0, c.cellToRange(this._coords), this._ri, this._options);
|
|
10040
10031
|
return t2 ? this._styleSpecific = e2 : this._styleConditional = e2, e2;
|
|
10041
10032
|
}
|
|
10042
10033
|
createTemporaryCell(t2) {
|
|
@@ -10045,7 +10036,7 @@ class Fg {
|
|
|
10045
10036
|
const n2 = bg(t2, this._options);
|
|
10046
10037
|
let r2 = this._ri;
|
|
10047
10038
|
if (void 0 !== n2.style) {
|
|
10048
|
-
const t3 = this._coords ?? c.EmptyCell, o3 = c.cellToRange(t3), s3 = () =>
|
|
10039
|
+
const t3 = this._coords ?? c.EmptyCell, o3 = c.cellToRange(t3), s3 = () => Ng(0, o3, this._ri, this._options), i2 = Qu(this._options.styles, n2.style, s3), a2 = (this._ri?.directStyle ?? new pg(e2.styles, o3)).cloneWithUpdate(i2);
|
|
10049
10040
|
r2 = { ...r2, directStyle: a2 };
|
|
10050
10041
|
}
|
|
10051
10042
|
let o2 = this._t, s2 = this._v;
|
|
@@ -10081,14 +10072,14 @@ class Fg {
|
|
|
10081
10072
|
const s3 = parseFloat(e3), a2 = s3 % 1 != 0, l2 = s3 >= 1;
|
|
10082
10073
|
if (s3 < 0) return o.castToString(e3);
|
|
10083
10074
|
if (!n2 || r4 || a2) if (!r4 || n2 || l2) {
|
|
10084
|
-
const e4 =
|
|
10075
|
+
const e4 = Nr("Short Date", t2, i2), n3 = Nr("Long Time", t2, i2);
|
|
10085
10076
|
if (e4 && n3) return e4.fmt + " " + n3.fmt;
|
|
10086
10077
|
} else {
|
|
10087
|
-
const e4 =
|
|
10078
|
+
const e4 = Nr("Long Time", t2, i2);
|
|
10088
10079
|
if (e4) return e4.fmt;
|
|
10089
10080
|
}
|
|
10090
10081
|
else {
|
|
10091
|
-
const e4 =
|
|
10082
|
+
const e4 = Nr("Short Date", t2, i2);
|
|
10092
10083
|
if (e4) return e4.fmt;
|
|
10093
10084
|
}
|
|
10094
10085
|
}
|
|
@@ -10215,8 +10206,8 @@ class Dg {
|
|
|
10215
10206
|
}
|
|
10216
10207
|
}
|
|
10217
10208
|
const Bg = [null], Lg = { colIndex: -1, rowIndex: -1 };
|
|
10218
|
-
let
|
|
10219
|
-
const
|
|
10209
|
+
let zg;
|
|
10210
|
+
const Pg = (t2, n2, r2, o2 = false) => {
|
|
10220
10211
|
const s2 = r2 === e.Orientation.Row, i2 = t2.length, a2 = new Array(i2);
|
|
10221
10212
|
for (let e2 = 0; e2 < i2; e2++) {
|
|
10222
10213
|
const r3 = t2[e2];
|
|
@@ -10229,14 +10220,14 @@ const zg = (t2, n2, r2, o2 = false) => {
|
|
|
10229
10220
|
}
|
|
10230
10221
|
}
|
|
10231
10222
|
return a2;
|
|
10232
|
-
},
|
|
10223
|
+
}, Wg = (t2, e2, n2) => {
|
|
10233
10224
|
const r2 = e2, o2 = t2.length;
|
|
10234
10225
|
for (let e3 = 0; e3 < o2; e3++) {
|
|
10235
10226
|
const o3 = t2[e3];
|
|
10236
10227
|
if ((o3.rowStart <= r2.rowStart && o3.rowEnd >= r2.rowEnd) !== n2) return !n2;
|
|
10237
10228
|
}
|
|
10238
10229
|
return n2;
|
|
10239
|
-
},
|
|
10230
|
+
}, Hg = (t2, e2, n2) => {
|
|
10240
10231
|
const r2 = e2, o2 = t2.length;
|
|
10241
10232
|
for (let e3 = 0; e3 < o2; e3++) {
|
|
10242
10233
|
const o3 = t2[e3];
|
|
@@ -10271,7 +10262,7 @@ const zg = (t2, n2, r2, o2 = false) => {
|
|
|
10271
10262
|
return [Rc];
|
|
10272
10263
|
}
|
|
10273
10264
|
getStyle(t2 = false) {
|
|
10274
|
-
return
|
|
10265
|
+
return zg || (zg = new $m().getNormal(), zg);
|
|
10275
10266
|
}
|
|
10276
10267
|
toString() {
|
|
10277
10268
|
return `${this._coords ? Lc(this._coords) : Rc} => ${this._v ?? "{blank}"}`;
|
|
@@ -10279,7 +10270,7 @@ const zg = (t2, n2, r2, o2 = false) => {
|
|
|
10279
10270
|
}(), Xg = () => Yg, Yg = { forEach: () => {
|
|
10280
10271
|
}, [Symbol.iterator]: Jg, entries: Jg, select: wh, find: wh, calculate: wh, getCell: () => Kg, getValue: Ug, waitForCalcs: () => Promise.resolve(Yg), setValue: wh, setFormula: wh, setValues: wh, updateCells: wh, getCells: () => [[Kg]], getStyle: wh, getValues: () => [[null]], getBounds: Ug, getIntersect: Xg, getUnion: Xg, getDifferences: wh, getResizeBy: Xg, getResizeTo: Xg, getOffsetBy: Xg, getOffsetTo: Xg, getFixed: Xg, getUsedRange: Xg, getEntireRows: Xg, getEntireColumns: Xg, getSurrounding: wh, getExtended: wh, isEntireRows: jg, isEntireColumns: jg, isEntireRange: jg, getWidth: qg, getHeight: qg, size: 0, sort: wh, clear: wh, setHyperlink: wh, setComments: wh, merge: wh, unmerge: wh, getMerges: wh, insert: wh, insertFrom: wh, delete: wh, getDefaultShiftOrientation: wh, getDefaultSortCriteria: wh, autoFill: wh, autoFit: wh, getSnapshot: wh, copyFrom: wh, doBatch: wh, startIncrementalUpdates: wh, getRowHeaders: wh, getColumnHeaders: wh, getCounts: wh, getCount: qg, isContentful: jg, addListener: wh, getColumnStart: qg, getRowStart: qg, getColumnEnd: qg, getRowEnd: qg, getRowCount: qg, getColumnCount: qg, getVisible: wh, getCoords: Ug, isEmpty: Gg, toString: () => Rc, getA1: () => Rc, isInvalid: Gg, getSheet: Ug, isReadOnly: Gg, isICellRange: true };
|
|
10281
10272
|
function Qg(t2, e2 = null, n2 = null, r2 = Rc) {
|
|
10282
|
-
return t2 || n2 ? Object.freeze({ ...Yg, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ?
|
|
10273
|
+
return t2 || n2 ? Object.freeze({ ...Yg, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ? Hc(n2, e2) : r2 }) : Yg;
|
|
10283
10274
|
}
|
|
10284
10275
|
const Zg = /^[\\+-]?[0-9]*\.?[0-9]*$/, tm = (t2, e2, r2) => {
|
|
10285
10276
|
if (void 0 === t2) throw new Error("A value is required to create a cell from a text.");
|
|
@@ -10684,7 +10675,7 @@ class pm {
|
|
|
10684
10675
|
}
|
|
10685
10676
|
}
|
|
10686
10677
|
var _m, Sm;
|
|
10687
|
-
(Sm = _m || (_m = {})).fastStringToCol = eh, Sm.fastStringToCell = Qc, Sm.fastStringToRange = nh, Sm.rangeToString =
|
|
10678
|
+
(Sm = _m || (_m = {})).fastStringToCol = eh, Sm.fastStringToCell = Qc, Sm.fastStringToRange = nh, Sm.rangeToString = Hc, Sm.cellToString = zc, Sm.normalizeA1ToR1C1 = gh, Sm.resolveRelativeToA1 = ch;
|
|
10688
10679
|
const wm = (t2, e2) => t2.offset - e2.offset, ym = (t2) => {
|
|
10689
10680
|
if (!t2 || 0 === t2.size) return [];
|
|
10690
10681
|
let e2 = [];
|
|
@@ -10850,12 +10841,12 @@ class Im extends pm {
|
|
|
10850
10841
|
}
|
|
10851
10842
|
toJSON() {
|
|
10852
10843
|
const t2 = {}, e2 = this._getState();
|
|
10853
|
-
e2.anchor && (t2.ref =
|
|
10844
|
+
e2.anchor && (t2.ref = Hc(e2.anchor, this._options.maxRangeCoords));
|
|
10854
10845
|
const n2 = bm(e2.byOffset);
|
|
10855
10846
|
return n2.length > 0 && (t2.fields = n2), e2.sort, 0 === Object.keys(t2).length ? null : t2;
|
|
10856
10847
|
}
|
|
10857
10848
|
}
|
|
10858
|
-
const Rm = "A table must have a least one row for the data.", Am = "Table1", Mm = Object.freeze({ showRowStripes: true, showColumnStripes: false, showFirstColumn: false, showLastColumn: false }),
|
|
10849
|
+
const Rm = "A table must have a least one row for the data.", Am = "Table1", Mm = Object.freeze({ showRowStripes: true, showColumnStripes: false, showFirstColumn: false, showLastColumn: false }), Nm = (t2, e2, n2) => {
|
|
10859
10850
|
if (t2.length !== e2.length) return console.warn("make columns the same length"), false;
|
|
10860
10851
|
const r2 = /* @__PURE__ */ new Set();
|
|
10861
10852
|
for (let t3 = 0; t3 < e2.length; t3++) {
|
|
@@ -10890,7 +10881,7 @@ const Rm = "A table must have a least one row for the data.", Am = "Table1", Mm
|
|
|
10890
10881
|
}
|
|
10891
10882
|
return a2 > 0;
|
|
10892
10883
|
};
|
|
10893
|
-
class
|
|
10884
|
+
class Tm {
|
|
10894
10885
|
constructor(t2, e2, n2, r2) {
|
|
10895
10886
|
this._name = t2, this._filter = e2, this._sort = n2, this._offset = r2;
|
|
10896
10887
|
}
|
|
@@ -11230,7 +11221,7 @@ class Fm extends pm {
|
|
|
11230
11221
|
if (!e2) return null;
|
|
11231
11222
|
const n2 = this.getSort();
|
|
11232
11223
|
let r2 = null;
|
|
11233
|
-
return r2 = this._getState()?.columns[t2], null === r2 ? null : new
|
|
11224
|
+
return r2 = this._getState()?.columns[t2], null === r2 ? null : new Tm(r2.name, e2, n2, t2);
|
|
11234
11225
|
}
|
|
11235
11226
|
getVisibleRefRangeCoords() {
|
|
11236
11227
|
return this._visibleRange ? this._visibleRange : this.getAnchorCoords();
|
|
@@ -11282,7 +11273,7 @@ class Fm extends pm {
|
|
|
11282
11273
|
n3.add(a3.toLocaleLowerCase()), t3[i3]?.name !== a3 && (t3[i3].name = a3, s3++);
|
|
11283
11274
|
}
|
|
11284
11275
|
return s3 > 0;
|
|
11285
|
-
})(a2, c2) :
|
|
11276
|
+
})(a2, c2) : Nm(a2, c2, o2);
|
|
11286
11277
|
if (!(r2 || c2.length !== a2.length || l2)) return;
|
|
11287
11278
|
const h2 = "Update Columns";
|
|
11288
11279
|
this._isUpdatingHeader = true;
|
|
@@ -11338,7 +11329,7 @@ class Fm extends pm {
|
|
|
11338
11329
|
const o4 = l2 + (c2 + r4 + 1);
|
|
11339
11330
|
o4 && !t3.has(o4.toLowerCase().trim()) && (e3.name = o4);
|
|
11340
11331
|
}
|
|
11341
|
-
|
|
11332
|
+
Nm(s2, o3, null);
|
|
11342
11333
|
} else s2 = o3, i2 = s2.splice(n3, -e2);
|
|
11343
11334
|
this._updateState({ columns: s2 }, { description: "Process Columns" }), this._updateColumns(s2, false, true, i2);
|
|
11344
11335
|
} else t2.after || this._updateState({ columns: [] }, { description: "Process Columns" });
|
|
@@ -11402,7 +11393,7 @@ class Fm extends pm {
|
|
|
11402
11393
|
toJSON() {
|
|
11403
11394
|
const t2 = {}, e2 = this._getState();
|
|
11404
11395
|
if (!e2) return null;
|
|
11405
|
-
if (e2.name && (t2.name = e2.name), e2.anchor && (t2.ref =
|
|
11396
|
+
if (e2.name && (t2.name = e2.name), e2.anchor && (t2.ref = Hc(e2.anchor, this._options.maxRangeCoords)), e2.description && (t2.description = e2.description), 1 !== e2.headerRowCount && (t2.headerRowCount = e2.headerRowCount), 0 !== e2.totalsRowCount && (t2.totalsRowCount = e2.totalsRowCount), e2.columns && (t2.columns = [...e2.columns]), e2.styleOptions) {
|
|
11406
11397
|
const n2 = o.diffValues(e2.styleOptions, { ...Mm, name: null });
|
|
11407
11398
|
n2 && (t2.styleOptions = n2);
|
|
11408
11399
|
}
|
|
@@ -11455,7 +11446,7 @@ class Lm {
|
|
|
11455
11446
|
for (let i2 = 0; i2 < s2; i2++) {
|
|
11456
11447
|
const s3 = r2[i2], a2 = t2[s3];
|
|
11457
11448
|
if (!a2 || !o.isObject(a2)) continue;
|
|
11458
|
-
const l2 = f.resolveTypedUpdates(Object.freeze(a2),
|
|
11449
|
+
const l2 = f.resolveTypedUpdates(Object.freeze(a2), Wu, n2);
|
|
11459
11450
|
e2[s3] = l2;
|
|
11460
11451
|
}
|
|
11461
11452
|
return Object.freeze(e2);
|
|
@@ -11465,8 +11456,8 @@ class Lm {
|
|
|
11465
11456
|
}
|
|
11466
11457
|
getPropertiesAt(t2, e2) {
|
|
11467
11458
|
const n2 = this._table, r2 = this._styles, o2 = this._properties;
|
|
11468
|
-
|
|
11469
|
-
const s2 = n2.getVisibleCellCoords(
|
|
11459
|
+
Pm.rowIndex = t2, Pm.colIndex = e2;
|
|
11460
|
+
const s2 = n2.getVisibleCellCoords(Pm), i2 = n2.getVisibleRefRangeCoords();
|
|
11470
11461
|
if (!i2) return null;
|
|
11471
11462
|
const a2 = Math.max(0, i2.colEnd - i2.colStart) + 1, l2 = Math.max(0, i2.rowEnd - i2.rowStart) + 1, c2 = Math.max(0, s2.rowIndex - i2.rowStart), h2 = Math.max(0, s2.colIndex - i2.colStart), d2 = { rowIndex: c2, colIndex: h2 }, u2 = n2.getStyleOptions();
|
|
11472
11463
|
let g2 = {}, m2 = false, p2 = 0;
|
|
@@ -11488,7 +11479,7 @@ class Lm {
|
|
|
11488
11479
|
const d3 = { rowIndex: c2, colIndex: n3 }, u3 = { rowStart: p2, rowEnd: l2 - S2 - 1, colStart: 0, colEnd: Math.min(a2 - h2, s3 ? t3 : e3) };
|
|
11489
11480
|
s3 && 0 === n3 && h2 > 0 && i3.border?.left && o2.secondColumnStripe?.border.right && (i3 = { ...i3 }, i3.border = { ...i3.border }, delete i3.border.left), s3 && n3 === t3 - 1 && h2 < a2 - 1 && i3.border?.right && o2.secondColumnStripe?.border.left && (i3 = { ...i3 }, i3.border = { ...i3.border }, delete i3.border.right);
|
|
11490
11481
|
const m3 = i3.border ? Bm(i3, d3, u3) : i3;
|
|
11491
|
-
g2 = f.resolveTypedUpdates(m3,
|
|
11482
|
+
g2 = f.resolveTypedUpdates(m3, Wu, r2, g2);
|
|
11492
11483
|
}
|
|
11493
11484
|
}
|
|
11494
11485
|
if (E2 && u2.showRowStripes) {
|
|
@@ -11501,45 +11492,45 @@ class Lm {
|
|
|
11501
11492
|
const u3 = { colIndex: h2, rowIndex: s3 }, m3 = { colStart: 0, colEnd: a2 - 1, rowStart: 0, rowEnd: Math.min(l2 - c2, i3 ? e3 : n3) };
|
|
11502
11493
|
i3 && 0 === s3 && c2 > t3 && d3.border?.top && o2.secondRowStripe?.border.bottom && (d3 = { ...d3 }, d3.border = { ...d3.border }, delete d3.border.top), i3 && s3 === e3 - 1 && c2 < l2 - 1 && d3.border?.bottom && o2.secondRowStripe?.border.top && (d3 = { ...d3 }, d3.border = { ...d3.border }, delete d3.border.bottom);
|
|
11503
11494
|
const p3 = d3.border ? Bm(d3, u3, m3) : d3;
|
|
11504
|
-
g2 = f.resolveTypedUpdates(p3,
|
|
11495
|
+
g2 = f.resolveTypedUpdates(p3, Wu, r2, g2);
|
|
11505
11496
|
}
|
|
11506
11497
|
}
|
|
11507
11498
|
if (w2 && o2.lastColumn) {
|
|
11508
11499
|
let t3 = o2.lastColumn;
|
|
11509
|
-
t3.border && (t3 = Bm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3,
|
|
11500
|
+
t3.border && (t3 = Bm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
|
|
11510
11501
|
}
|
|
11511
11502
|
if (y2 && o2.firstColumn) {
|
|
11512
11503
|
let t3 = o2.firstColumn;
|
|
11513
|
-
t3.border && (t3 = Bm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3,
|
|
11504
|
+
t3.border && (t3 = Bm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
|
|
11514
11505
|
}
|
|
11515
11506
|
if (m2 && o2.headerRow) {
|
|
11516
11507
|
let t3 = o2.headerRow;
|
|
11517
|
-
t3.border && (t3 = Bm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3,
|
|
11508
|
+
t3.border && (t3 = Bm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
|
|
11518
11509
|
}
|
|
11519
11510
|
if (_2 && o2.totalRow) {
|
|
11520
11511
|
let t3 = o2.totalRow;
|
|
11521
|
-
t3.border && (t3 = Bm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3,
|
|
11512
|
+
t3.border && (t3 = Bm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
|
|
11522
11513
|
}
|
|
11523
11514
|
if (m2 && y2 && o2.firstHeaderCell) {
|
|
11524
11515
|
let t3 = o2.firstHeaderCell;
|
|
11525
|
-
t3.border && (t3 = Bm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3,
|
|
11516
|
+
t3.border && (t3 = Bm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
|
|
11526
11517
|
}
|
|
11527
11518
|
if (m2 && w2 && o2.lastHeaderCell) {
|
|
11528
11519
|
let t3 = o2.lastHeaderCell;
|
|
11529
|
-
t3.border && (t3 = Bm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3,
|
|
11520
|
+
t3.border && (t3 = Bm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
|
|
11530
11521
|
}
|
|
11531
11522
|
if (_2 && y2 && o2.firstTotalCell) {
|
|
11532
11523
|
let t3 = o2.firstTotalCell;
|
|
11533
|
-
t3.border && (t3 = Bm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3,
|
|
11524
|
+
t3.border && (t3 = Bm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
|
|
11534
11525
|
}
|
|
11535
11526
|
if (_2 && w2 && o2.lastTotalCell) {
|
|
11536
11527
|
let t3 = o2.lastTotalCell;
|
|
11537
|
-
t3.border && (t3 = Bm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3,
|
|
11528
|
+
t3.border && (t3 = Bm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
|
|
11538
11529
|
}
|
|
11539
11530
|
return m2 && o2.headerRow && n2.getColumnFilter(h2) && !n2.getColumnFilter(h2).hasHiddenButton() && (g2.insets = { right: 15 }), g2;
|
|
11540
11531
|
}
|
|
11541
11532
|
}
|
|
11542
|
-
class
|
|
11533
|
+
class zm {
|
|
11543
11534
|
constructor(t2, e2, n2, r2) {
|
|
11544
11535
|
this._styles = t2, this._isBuiltIn = n2, this._doDelete = r2, this._properties = o.deepFreeze(this._resolveProperties(e2)), this.isShownInTableStyles();
|
|
11545
11536
|
}
|
|
@@ -11550,7 +11541,7 @@ class Pm {
|
|
|
11550
11541
|
for (let i2 = 0; i2 < s2; i2++) {
|
|
11551
11542
|
const s3 = r2[i2], a2 = t2[s3];
|
|
11552
11543
|
if (!a2 || !o.isObject(a2)) continue;
|
|
11553
|
-
const l2 = f.resolveTypedUpdates(Object.freeze(a2),
|
|
11544
|
+
const l2 = f.resolveTypedUpdates(Object.freeze(a2), Wu, n2);
|
|
11554
11545
|
e2[s3] = l2;
|
|
11555
11546
|
}
|
|
11556
11547
|
return Object.freeze(e2);
|
|
@@ -11585,8 +11576,8 @@ class Pm {
|
|
|
11585
11576
|
return true;
|
|
11586
11577
|
}
|
|
11587
11578
|
}
|
|
11588
|
-
const
|
|
11589
|
-
class
|
|
11579
|
+
const Pm = { rowIndex: 0, colIndex: 0 };
|
|
11580
|
+
class Wm extends pg {
|
|
11590
11581
|
constructor(t2, e2) {
|
|
11591
11582
|
super(t2, c.EmptyRange, e2);
|
|
11592
11583
|
}
|
|
@@ -11598,7 +11589,7 @@ class Hm extends pg {
|
|
|
11598
11589
|
}
|
|
11599
11590
|
cloneWithUpdate(t2) {
|
|
11600
11591
|
if (void 0 === t2) return this;
|
|
11601
|
-
const e2 = this._c, n2 = this._r, r2 = f.resolveTypedUpdates(t2,
|
|
11592
|
+
const e2 = this._c, n2 = this._r, r2 = f.resolveTypedUpdates(t2, Wu, e2, this._p);
|
|
11602
11593
|
return new pg(e2, n2, r2);
|
|
11603
11594
|
}
|
|
11604
11595
|
_createShifted(t2) {
|
|
@@ -11630,9 +11621,9 @@ class Hm extends pg {
|
|
|
11630
11621
|
return o.toSafeJSON(this._p);
|
|
11631
11622
|
}
|
|
11632
11623
|
}
|
|
11633
|
-
class
|
|
11624
|
+
class Hm {
|
|
11634
11625
|
constructor(t2, e2, n2, r2 = null) {
|
|
11635
|
-
this._name = e2.name, this._properties = e2, this._rangeStyle = new
|
|
11626
|
+
this._name = e2.name, this._properties = e2, this._rangeStyle = new Wm(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
|
|
11636
11627
|
}
|
|
11637
11628
|
getRanged() {
|
|
11638
11629
|
return this._rangeStyle;
|
|
@@ -11708,7 +11699,7 @@ class $m {
|
|
|
11708
11699
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
11709
11700
|
const r2 = t2[n2], o2 = { ...r2 }, s2 = r2.named;
|
|
11710
11701
|
delete o2.named;
|
|
11711
|
-
const i2 = f.resolveTypedUpdates(o2,
|
|
11702
|
+
const i2 = f.resolveTypedUpdates(o2, Wu, this), a2 = new Hm(this, { name: s2, style: i2 }, this._hideOrRemoveNamed.bind(this), n2);
|
|
11712
11703
|
s2 === _i.BuiltInName.Normal && (this._normalRanged = a2.getRanged(), this._normalStyle = ug(this, null)), e2.set(s2.toLowerCase(), a2);
|
|
11713
11704
|
}
|
|
11714
11705
|
}
|
|
@@ -11775,7 +11766,7 @@ class $m {
|
|
|
11775
11766
|
return Om;
|
|
11776
11767
|
})(), e2 = /* @__PURE__ */ new Map();
|
|
11777
11768
|
return t2.forEach((t3, n2) => {
|
|
11778
|
-
const r2 = t3.name.toLowerCase(), o2 = new
|
|
11769
|
+
const r2 = t3.name.toLowerCase(), o2 = new zm(this, t3, true);
|
|
11779
11770
|
e2.set(r2, o2);
|
|
11780
11771
|
}), e2;
|
|
11781
11772
|
}
|
|
@@ -11831,14 +11822,14 @@ class $m {
|
|
|
11831
11822
|
}
|
|
11832
11823
|
const a2 = Qu(0, t2.style, this.getNormal());
|
|
11833
11824
|
t2 = { ...t2, style: a2 };
|
|
11834
|
-
const l2 = f.resolveTypedUpdates(t2,
|
|
11825
|
+
const l2 = f.resolveTypedUpdates(t2, Hu, this, i2), c2 = new Hm(this, l2, this._hideOrRemoveNamed.bind(this), s2);
|
|
11835
11826
|
return l2.name === _i.BuiltInName.Normal && (this._normalRanged = c2.getRanged(), this._normalStyle = ug(this, null)), this._customCellStyles.set(r2, c2), c2;
|
|
11836
11827
|
}
|
|
11837
11828
|
_setCustomTableStyleInternal(t2, e2) {
|
|
11838
11829
|
const n2 = t2.toLowerCase();
|
|
11839
11830
|
let r2 = this._customTableStyles.get(n2) ?? this._builtInsTableStyles.get(n2);
|
|
11840
11831
|
r2 && (t2 = r2.getName());
|
|
11841
|
-
const o2 = new
|
|
11832
|
+
const o2 = new zm(this, { ...e2, name: t2 }, false, this._deleteCustomTableStyle.bind(this));
|
|
11842
11833
|
return this._customTableStyles.set(n2, o2), o2;
|
|
11843
11834
|
}
|
|
11844
11835
|
_hideOrRemoveNamed(t2) {
|
|
@@ -11883,7 +11874,7 @@ class $m {
|
|
|
11883
11874
|
}
|
|
11884
11875
|
normalize(t2) {
|
|
11885
11876
|
if (!t2) return null;
|
|
11886
|
-
const e2 = f.resolveTypedUpdates(t2,
|
|
11877
|
+
const e2 = f.resolveTypedUpdates(t2, Wu, this), n2 = Ku;
|
|
11887
11878
|
let r2 = null;
|
|
11888
11879
|
if (r2 = e2.named ? this.getNamed(e2.named)?.getRanged().getPropertiesAt(0, 0, null) : this._normalRanged.getPropertiesAt(0, 0, null), r2) {
|
|
11889
11880
|
const t3 = { ...r2 };
|
|
@@ -12289,14 +12280,14 @@ class tf extends rc {
|
|
|
12289
12280
|
return "[ReferenceRange]";
|
|
12290
12281
|
}
|
|
12291
12282
|
toString() {
|
|
12292
|
-
return `${
|
|
12283
|
+
return `${Hc(this._coords, this._getEntireCoords?.())}`;
|
|
12293
12284
|
}
|
|
12294
12285
|
}
|
|
12295
12286
|
const ef = (t2, e2) => {
|
|
12296
12287
|
let n2 = t2.rowStart, r2 = t2.rowEnd, o2 = t2.colStart, s2 = t2.colEnd, i2 = false;
|
|
12297
12288
|
return o2 === Number.MIN_SAFE_INTEGER && (o2 = e2.colStart, i2 = true), n2 === Number.MIN_SAFE_INTEGER && (n2 = e2.rowStart, i2 = true), r2 === Number.MAX_SAFE_INTEGER && (r2 = e2.rowEnd, i2 = true), s2 === Number.MAX_SAFE_INTEGER && (s2 = e2.colEnd, i2 = true), i2 ? { rowStart: n2, rowEnd: r2, colStart: o2, colEnd: s2 } : t2;
|
|
12298
12289
|
}, nf = (t2, e2) => t2.value?.once === e2.value?.once, rf = (t2, e2) => t2.colStart === e2.colStart && t2.rowStart === e2.rowStart, of = (t2, e2, n2) => !!n2 && (t2 === n2.rowStart && e2 === n2.colStart), sf = (t2, n2 = 0, r2 = 0) => {
|
|
12299
|
-
const o2 = t2._values, s2 = t2._coords, i2 = o2.getRuns({ bounds: s2 }), a2 = o2.getOrientation() !== e.Orientation.Row, l2 = a2 ? s2.colStart : s2.rowStart, c2 = a2 ? s2.rowStart : s2.colStart, h2 = new
|
|
12290
|
+
const o2 = t2._values, s2 = t2._coords, i2 = o2.getRuns({ bounds: s2 }), a2 = o2.getOrientation() !== e.Orientation.Row, l2 = a2 ? s2.colStart : s2.rowStart, c2 = a2 ? s2.rowStart : s2.colStart, h2 = new Tt.Builder(null, n2, r2);
|
|
12300
12291
|
let d2 = i2.next();
|
|
12301
12292
|
for (; !d2.done; ) {
|
|
12302
12293
|
const t3 = d2.value;
|
|
@@ -12537,8 +12528,8 @@ class cf {
|
|
|
12537
12528
|
for (let t4 = 0; t4 < s3; t4++) {
|
|
12538
12529
|
const n3 = o3[t4];
|
|
12539
12530
|
if (n3 === l3) continue;
|
|
12540
|
-
|
|
12541
|
-
const s4 =
|
|
12531
|
+
zf[0] = { colStart: r3.ref.colStart, rowStart: l3, colEnd: r3.ref.colEnd, rowEnd: n3 - 1, value: r3 }, zf[1] = { colStart: r3.ref.colStart, rowStart: n3, colEnd: r3.ref.colStart, rowEnd: r3.ref.rowEnd, value: r3 };
|
|
12532
|
+
const s4 = Wf(r3, zf, e.Orientation.Row, n3);
|
|
12542
12533
|
let i4 = s4[0];
|
|
12543
12534
|
_2(i4, a3), g2.push(i4), i4 = s4[1], _2(i4, a3), g2.push(i4), l3 = n3;
|
|
12544
12535
|
}
|
|
@@ -12606,7 +12597,7 @@ class cf {
|
|
|
12606
12597
|
let r2 = null;
|
|
12607
12598
|
const o2 = "string" == typeof t2 ? Qc(t2, gf) : t2;
|
|
12608
12599
|
if (null !== n2) {
|
|
12609
|
-
const t3 = new
|
|
12600
|
+
const t3 = new Tt.Builder(), s2 = this._values.getOrientation() === e.Orientation.Column, i2 = s2 ? o2.colIndex : o2.rowIndex, a2 = s2 ? o2.rowIndex : o2.colIndex;
|
|
12610
12601
|
t3.addValue(i2, a2, n2), r2 = this.setInputs(t3.build(), null);
|
|
12611
12602
|
} else this.delete(c.cellToRange(o2, mf));
|
|
12612
12603
|
return r2;
|
|
@@ -12760,7 +12751,7 @@ class cf {
|
|
|
12760
12751
|
}
|
|
12761
12752
|
}
|
|
12762
12753
|
o3 && (t3 = s2.concat(o3)), t3.sort(c.columnFirstRangeComparator);
|
|
12763
|
-
const i3 = new
|
|
12754
|
+
const i3 = new Tt.Builder((t4) => new aa(t4));
|
|
12764
12755
|
let a3;
|
|
12765
12756
|
const l3 = n2._values, g3 = l3.getOrientation() === e.Orientation.Column, m3 = t3.length;
|
|
12766
12757
|
for (let e2 = 0; e2 < m3; e2++) {
|
|
@@ -12837,7 +12828,7 @@ class cf {
|
|
|
12837
12828
|
if (this._calculation.getStatus() === Qm.Status.Starting) return this._addToPending(() => {
|
|
12838
12829
|
const e2 = this._setInputs(t2, n2, r2), s3 = { formulaInserts: e2.inserts ?? o.EmptyArray, formulaRemoves: e2.removes ?? o.EmptyArray, cycleId: this._cycleId, bounds: c.unionRanges(c.unionRangesArrays(e2.inserts), c.unionRangesArrays(e2.removes)) };
|
|
12839
12830
|
return Promise.resolve(s3);
|
|
12840
|
-
}),
|
|
12831
|
+
}), Pf;
|
|
12841
12832
|
const s2 = this._values.getOrientation() !== e.Orientation.Row, i2 = this._spillSpatial, a2 = this._errorSpatial, l2 = this._contentfulSpatial, h2 = [], d2 = this._formulaSpatial;
|
|
12842
12833
|
let u2, g2, m2 = !d2.isEmpty(), f2 = m2 ? [] : null, p2 = this._values;
|
|
12843
12834
|
if (t2 && t2.tuples) {
|
|
@@ -12918,7 +12909,7 @@ class cf {
|
|
|
12918
12909
|
}
|
|
12919
12910
|
_markAndPlan(t2, e2, n2) {
|
|
12920
12911
|
let r2;
|
|
12921
|
-
If = 0,
|
|
12912
|
+
If = 0, Tf = 0, kf = 0, Of = 0;
|
|
12922
12913
|
const s2 = this._precedentSpatial, i2 = this._formulaSpatial;
|
|
12923
12914
|
Af = 0, Mf = 0;
|
|
12924
12915
|
const a2 = this._cycleId, l2 = e2.length;
|
|
@@ -12967,13 +12958,13 @@ class cf {
|
|
|
12967
12958
|
}
|
|
12968
12959
|
}
|
|
12969
12960
|
}
|
|
12970
|
-
e3.inDegree = l3, 0 === e3.inDegree && (
|
|
12961
|
+
e3.inDegree = l3, 0 === e3.inDegree && (Nf[kf++] = e3);
|
|
12971
12962
|
}
|
|
12972
12963
|
const d2 = (t3) => {
|
|
12973
|
-
t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (
|
|
12964
|
+
t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Nf[kf++] = t3));
|
|
12974
12965
|
};
|
|
12975
|
-
for (;
|
|
12976
|
-
const t3 = Tf
|
|
12966
|
+
for (; Tf < kf; ) {
|
|
12967
|
+
const t3 = Nf[Tf++];
|
|
12977
12968
|
Ff[Of++] = t3;
|
|
12978
12969
|
const e3 = t3.colIndex, n3 = t3.rowIndex;
|
|
12979
12970
|
mf.colStart = e3, mf.rowStart = n3, mf.colEnd = e3, mf.rowEnd = n3;
|
|
@@ -13031,13 +13022,13 @@ class cf {
|
|
|
13031
13022
|
}
|
|
13032
13023
|
C2.pendingPrecedents = A2;
|
|
13033
13024
|
}
|
|
13034
|
-
const
|
|
13025
|
+
const N2 = S2 ? v2 : x2, T2 = S2 ? x2 : v2;
|
|
13035
13026
|
o2.node = C2, o2.colIndex = v2, o2.rowIndex = x2;
|
|
13036
13027
|
const k2 = b2.formula;
|
|
13037
13028
|
let F2, O2;
|
|
13038
13029
|
const D2 = C2.pending;
|
|
13039
13030
|
let B2 = D2;
|
|
13040
|
-
if ((A2 || C2.pendingPromise) && (B2 = true, F2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, B2 = false) : (C2.pendingPromise.cancelled = true, F2 = void 0))), void 0 === F2 && (o2.formula = k2, o2.colIndex = v2, o2.rowIndex = x2, F2 = k2.evaluate(r2, void 0, C2.inputs), o2.formula = null, O2 = F2 && F2.then ? F2 : null, B2 = !!O2), B2 !== D2 && (C2.pending = B2, w2 || (w2 = Cl(S2)), w2.append(
|
|
13031
|
+
if ((A2 || C2.pendingPromise) && (B2 = true, F2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, B2 = false) : (C2.pendingPromise.cancelled = true, F2 = void 0))), void 0 === F2 && (o2.formula = k2, o2.colIndex = v2, o2.rowIndex = x2, F2 = k2.evaluate(r2, void 0, C2.inputs), o2.formula = null, O2 = F2 && F2.then ? F2 : null, B2 = !!O2), B2 !== D2 && (C2.pending = B2, w2 || (w2 = Cl(S2)), w2.append(N2, T2, B2)), O2 && (F2 = C2.cachedValue ?? null, !O2.__originator)) {
|
|
13041
13032
|
O2.__originator = l2;
|
|
13042
13033
|
const t3 = C2;
|
|
13043
13034
|
vf.add(t3), t3.pendingPromise = O2, t3.pendingResolved = false, O2.then((e3) => {
|
|
@@ -13048,24 +13039,24 @@ class cf {
|
|
|
13048
13039
|
}, (t4) => {
|
|
13049
13040
|
});
|
|
13050
13041
|
}
|
|
13051
|
-
let L2 = 1,
|
|
13052
|
-
const
|
|
13053
|
-
let
|
|
13054
|
-
const
|
|
13055
|
-
if (
|
|
13042
|
+
let L2 = 1, z2 = 1;
|
|
13043
|
+
const P2 = I2 instanceof rc;
|
|
13044
|
+
let W2;
|
|
13045
|
+
const H2 = I2 instanceof n.Spill;
|
|
13046
|
+
if (P2 || H2) {
|
|
13056
13047
|
Sf.colStart = v2, Sf.rowStart = x2, Sf.colEnd = v2, Sf.rowEnd = x2;
|
|
13057
13048
|
const t3 = f2.search(Sf);
|
|
13058
|
-
for (let e3 = 0; !
|
|
13049
|
+
for (let e3 = 0; !W2 && e3 < t3.length; e3++) {
|
|
13059
13050
|
const n2 = t3[e3];
|
|
13060
|
-
n2.colStart === v2 && n2.rowStart === x2 && (
|
|
13051
|
+
n2.colStart === v2 && n2.rowStart === x2 && (W2 = n2);
|
|
13061
13052
|
}
|
|
13062
|
-
if (
|
|
13063
|
-
if (
|
|
13053
|
+
if (W2) {
|
|
13054
|
+
if (P2) {
|
|
13064
13055
|
const t5 = I2;
|
|
13065
|
-
L2 = t5.getWidth(),
|
|
13056
|
+
L2 = t5.getWidth(), z2 = t5.getHeight();
|
|
13066
13057
|
}
|
|
13067
|
-
const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 +
|
|
13068
|
-
f2.remove(
|
|
13058
|
+
const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 + z2 - 1 };
|
|
13059
|
+
f2.remove(W2), W2 && W2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
|
|
13069
13060
|
}
|
|
13070
13061
|
}
|
|
13071
13062
|
let V2 = 1, $2 = 1;
|
|
@@ -13084,14 +13075,14 @@ class cf {
|
|
|
13084
13075
|
let s3, i3;
|
|
13085
13076
|
if (J2) {
|
|
13086
13077
|
F2 = n.BuiltIn.Spill, V2 = 1, $2 = 1;
|
|
13087
|
-
s3 = [[
|
|
13078
|
+
s3 = [[N2, [[T2, [F2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
|
|
13088
13079
|
} else {
|
|
13089
|
-
const e4 = sf(j2,
|
|
13080
|
+
const e4 = sf(j2, N2, T2);
|
|
13090
13081
|
e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
|
|
13091
13082
|
}
|
|
13092
13083
|
U2 = { ...t3, value: new yh(t3, l2, J2) }, f2.insert(U2), E2 = lf(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Eh(i3, _2) });
|
|
13093
13084
|
}
|
|
13094
|
-
(!c.isEqualRanges(
|
|
13085
|
+
(!c.isEqualRanges(W2, U2) || J2 || H2) && (W2 && g2.insert(W2), U2 && g2.insert(U2)), V2 === L2 && $2 === z2 || (C2.state = vh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(V2, L2) - 1, rowEnd: x2 + Math.max($2, z2) - 1 }), a2 = false);
|
|
13095
13086
|
let q2 = F2 && F2.isFormulaError ? F2 : null;
|
|
13096
13087
|
k2.getError() && (q2 = k2.getError()), (q2 || R2 && !t2) && (q2 && !q2.equals(R2) || R2 && R2.equals(q2)), C2.cachedValue = F2, s2[i2++] = C2;
|
|
13097
13088
|
}
|
|
@@ -13288,7 +13279,7 @@ class cf {
|
|
|
13288
13279
|
if (i2 > 0) {
|
|
13289
13280
|
const t3 = this._getEntireCoords(), e2 = new Array(i2);
|
|
13290
13281
|
for (let n3 = 0; n3 < i2; n3++) {
|
|
13291
|
-
const r3 = s2[n3], o3 =
|
|
13282
|
+
const r3 = s2[n3], o3 = Hc(r3, t3);
|
|
13292
13283
|
e2[n3] = [o3, r3.value.getError()];
|
|
13293
13284
|
}
|
|
13294
13285
|
o2.dynamic = e2;
|
|
@@ -13315,7 +13306,7 @@ class cf {
|
|
|
13315
13306
|
}
|
|
13316
13307
|
const i3 = s3.done(true), l2 = i3.length, c2 = new Array(l2);
|
|
13317
13308
|
for (let t4 = 0; t4 < l2; t4++) {
|
|
13318
|
-
const e2 = i3[t4], n4 =
|
|
13309
|
+
const e2 = i3[t4], n4 = Hc(e2, this._getEntireCoords());
|
|
13319
13310
|
c2[t4] = n4;
|
|
13320
13311
|
}
|
|
13321
13312
|
o2.volatile = c2;
|
|
@@ -13324,7 +13315,7 @@ class cf {
|
|
|
13324
13315
|
}
|
|
13325
13316
|
}
|
|
13326
13317
|
const hf = (t2, e2, n2, r2) => {
|
|
13327
|
-
const o2 = new
|
|
13318
|
+
const o2 = new Tt.Builder(wf), s2 = Cl(r2);
|
|
13328
13319
|
t2.sort(r2 ? c.columnFirstCellComparator : c.rowFirstCellComparator);
|
|
13329
13320
|
const i2 = t2.length;
|
|
13330
13321
|
for (let e3 = 0; e3 < i2; e3++) {
|
|
@@ -13379,12 +13370,12 @@ const Ef = 1e4, Cf = new Array(Ef), bf = new Array(Ef), vf = /* @__PURE__ */ new
|
|
|
13379
13370
|
let If = 0;
|
|
13380
13371
|
const Rf = new Array(Ef);
|
|
13381
13372
|
let Af = 0, Mf = 0;
|
|
13382
|
-
const
|
|
13383
|
-
let
|
|
13373
|
+
const Nf = new Array(Ef);
|
|
13374
|
+
let Tf = 0, kf = 0;
|
|
13384
13375
|
const Ff = new Array(Ef);
|
|
13385
13376
|
let Of = 0;
|
|
13386
|
-
const Df = new Array(Ef), Bf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Lf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 },
|
|
13387
|
-
function
|
|
13377
|
+
const Df = new Array(Ef), Bf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Lf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, zf = [null, null], Pf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
|
|
13378
|
+
function Wf(t2, e2, n2, r2) {
|
|
13388
13379
|
const o2 = t2;
|
|
13389
13380
|
if (o2?.getSplit) {
|
|
13390
13381
|
const t3 = o2.getSplit(e2, n2, r2);
|
|
@@ -13393,7 +13384,7 @@ function Hf(t2, e2, n2, r2) {
|
|
|
13393
13384
|
}
|
|
13394
13385
|
return e2;
|
|
13395
13386
|
}
|
|
13396
|
-
class
|
|
13387
|
+
class Hf {
|
|
13397
13388
|
constructor(t2, e2 = true) {
|
|
13398
13389
|
this._options = { ...jf, ...t2 }, this._getFunction = this._options.getFunction, this._isColumn = e2;
|
|
13399
13390
|
}
|
|
@@ -13401,9 +13392,9 @@ class Wf {
|
|
|
13401
13392
|
this._instanceScope = t2;
|
|
13402
13393
|
}
|
|
13403
13394
|
async _initialize() {
|
|
13404
|
-
const t2 = await
|
|
13395
|
+
const t2 = await st._validate(true), e2 = $f();
|
|
13405
13396
|
this._calcScope = e2, this._runtime = new Vf(this._options, t2);
|
|
13406
|
-
const { initializeBuiltIns: n2 } = await import("./
|
|
13397
|
+
const { initializeBuiltIns: n2 } = await import("./BtIS_GU4cqypGglS.mjs"), r2 = this;
|
|
13407
13398
|
return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
|
|
13408
13399
|
}
|
|
13409
13400
|
getBuiltInFunctions() {
|
|
@@ -13576,7 +13567,7 @@ class Vf {
|
|
|
13576
13567
|
}
|
|
13577
13568
|
getVersion() {
|
|
13578
13569
|
try {
|
|
13579
|
-
const t2 = "0.
|
|
13570
|
+
const t2 = "0.7.1";
|
|
13580
13571
|
if (-1 === t2.indexOf(".env.")) return `${t2}`;
|
|
13581
13572
|
} catch (t2) {
|
|
13582
13573
|
return "local";
|
|
@@ -14116,11 +14107,11 @@ class mp extends Xi {
|
|
|
14116
14107
|
return this._statusTransition || (this._statusTransition = (async () => {
|
|
14117
14108
|
if (this._status === Qm.Status.Off) try {
|
|
14118
14109
|
this._status = Qm.Status.Starting, this._emitter.notify("onStatusChange"), this._emitter.notify("onStarting");
|
|
14119
|
-
const t2 = this, e2 = this._options, n2 = (n3) => t2.getFunctions().getByName(n3) ?? e2?.getFunction?.(n3), r2 = new
|
|
14110
|
+
const t2 = this, e2 = this._options, n2 = (n3) => t2.getFunctions().getByName(n3) ?? e2?.getFunction?.(n3), r2 = new Hf({ ...e2, getFunction: n2 });
|
|
14120
14111
|
this._context = r2;
|
|
14121
14112
|
const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
|
|
14122
14113
|
this._functions = new gp({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
|
|
14123
|
-
const i2 = await import("./
|
|
14114
|
+
const i2 = await import("./CPFVSs4PE477t3Yt.mjs");
|
|
14124
14115
|
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = Qm.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
|
|
14125
14116
|
} catch (t2) {
|
|
14126
14117
|
throw this._status = Qm.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
|
|
@@ -14475,7 +14466,7 @@ const Rp = (t2) => {
|
|
|
14475
14466
|
throw console.warn(t3), t3;
|
|
14476
14467
|
}
|
|
14477
14468
|
};
|
|
14478
|
-
class
|
|
14469
|
+
class Np {
|
|
14479
14470
|
constructor(t2) {
|
|
14480
14471
|
if (!t2) throw new u("snapshot is required.");
|
|
14481
14472
|
this._snapshot = t2;
|
|
@@ -14508,7 +14499,7 @@ class Tp {
|
|
|
14508
14499
|
return true;
|
|
14509
14500
|
}
|
|
14510
14501
|
}
|
|
14511
|
-
class
|
|
14502
|
+
class Tp {
|
|
14512
14503
|
constructor(t2, e2, n2, r2) {
|
|
14513
14504
|
if (this._parsed = void 0, !t2) throw new u("nativeItems are required.");
|
|
14514
14505
|
this._native = t2, this._markOptions = Object.freeze(e2 ?? {}), this._styles = n2, this._isDate1904 = r2;
|
|
@@ -14929,7 +14920,7 @@ class Bp extends Yi {
|
|
|
14929
14920
|
t2 && t2.removeListener?.(), super._processDelete();
|
|
14930
14921
|
}
|
|
14931
14922
|
}
|
|
14932
|
-
const Lp = "Item must be specified.",
|
|
14923
|
+
const Lp = "Item must be specified.", zp = "Name must be a non-empty string", Pp = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`, Wp = (t2) => {
|
|
14933
14924
|
const e2 = [];
|
|
14934
14925
|
for (let n2 = 0; n2 < t2.getCount(); n2++) {
|
|
14935
14926
|
let r2 = null;
|
|
@@ -14941,7 +14932,7 @@ const Lp = "Item must be specified.", Pp = "Name must be a non-empty string", zp
|
|
|
14941
14932
|
e2.push(r2 ? r2.toString().toLowerCase() : Rc);
|
|
14942
14933
|
}
|
|
14943
14934
|
return e2.sort(), e2.join(",");
|
|
14944
|
-
},
|
|
14935
|
+
}, Hp = /^[^a-zA-Z_\\]+$/, Vp = /^[^a-zA-Z0-9_.]+$/;
|
|
14945
14936
|
class $p {
|
|
14946
14937
|
constructor(t2) {
|
|
14947
14938
|
this._emitter = null, this._closed = false, this._lastLookup = o.EmptyArray, this._lastLookupAddress = null, this._lastLookupScope = null, this._lastLookupType = null, this._allowExtrudes = false, this._options = { ...t2 };
|
|
@@ -15005,7 +14996,7 @@ class $p {
|
|
|
15005
14996
|
const n2 = this._getState();
|
|
15006
14997
|
if (!n2) return null;
|
|
15007
14998
|
if (0 === n2.itemsByKey.size) return null;
|
|
15008
|
-
const r2 =
|
|
14999
|
+
const r2 = Wp(e2), o2 = n2.itemsByFullRange.get(r2);
|
|
15009
15000
|
if (!o2) return null;
|
|
15010
15001
|
const s2 = [];
|
|
15011
15002
|
return o2.forEach((t3) => {
|
|
@@ -15055,11 +15046,11 @@ class $p {
|
|
|
15055
15046
|
}
|
|
15056
15047
|
_validateName(t2, e2, n2 = false) {
|
|
15057
15048
|
if (this._closed) throw new Error(Ji);
|
|
15058
|
-
if (!t2 || 0 === t2.length) throw new Error(
|
|
15049
|
+
if (!t2 || 0 === t2.length) throw new Error(zp);
|
|
15059
15050
|
if (t2.length > 255) throw new Error("Name must not exceed 255 characters.");
|
|
15060
15051
|
if (-1 !== t2.indexOf(" ")) throw new Error("Name must not contain any spaces.");
|
|
15061
15052
|
const r2 = t2.trim().toLowerCase(), o2 = r2.substring(1, t2.length - 1);
|
|
15062
|
-
if (new RegExp(
|
|
15053
|
+
if (new RegExp(Hp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
|
|
15063
15054
|
if (new RegExp(Vp).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
|
|
15064
15055
|
if (1 === r2.length && ("r" === r2[0] || "c" === r2[0])) throw new Error("Name can not be 'r' or 'c'.");
|
|
15065
15056
|
if (((t3, e3 = Mc, n3 = Ac, r3 = false) => {
|
|
@@ -15079,7 +15070,7 @@ class $p {
|
|
|
15079
15070
|
const i2 = this._getState()?.itemsByKey.get(s2);
|
|
15080
15071
|
if (i2) {
|
|
15081
15072
|
const r3 = i2.item.getRanges();
|
|
15082
|
-
if (!n2 || r3 || r3.getCount() > 0) throw new Error(
|
|
15073
|
+
if (!n2 || r3 || r3.getCount() > 0) throw new Error(Pp(t2, e2));
|
|
15083
15074
|
}
|
|
15084
15075
|
}
|
|
15085
15076
|
addReference(t2, e2, n2 = false) {
|
|
@@ -15088,7 +15079,7 @@ class $p {
|
|
|
15088
15079
|
const i2 = this._beginCommit(`${o2 && n2 ? "Update" : "Insert"} Named '${t2}'`);
|
|
15089
15080
|
try {
|
|
15090
15081
|
if (o2) {
|
|
15091
|
-
if (!n2) throw new Error(
|
|
15082
|
+
if (!n2) throw new Error(Pp(t2));
|
|
15092
15083
|
this._delete(o2, { description: `Delete Named '${o2.getName()}'` });
|
|
15093
15084
|
}
|
|
15094
15085
|
s2 = new Bp({ value: r2, addressToRanges: this._options.addressToRanges, json: { name: t2, ref: r2.toString() }, transactions: this._transactions }), this.add(s2), i2.commit();
|
|
@@ -15161,7 +15152,7 @@ class $p {
|
|
|
15161
15152
|
const i2 = this._toKey(e2);
|
|
15162
15153
|
if (o2) {
|
|
15163
15154
|
const { asFullRange: a3, asPartialRanges: l3, asRanges: c3 } = ((t4) => {
|
|
15164
|
-
const e3 = t4.getCoords(), n3 =
|
|
15155
|
+
const e3 = t4.getCoords(), n3 = Wp(t4), r4 = n3.split(",");
|
|
15165
15156
|
return { asFullRange: n3, asPartialRanges: r4, asRanges: e3 };
|
|
15166
15157
|
})(o2);
|
|
15167
15158
|
if (r3 = a3, s2 = l3, c3) {
|
|
@@ -15198,7 +15189,7 @@ class $p {
|
|
|
15198
15189
|
const n2 = this._cloneState(), r2 = t2.length;
|
|
15199
15190
|
for (let e3 = 0; e3 < r2; e3++) {
|
|
15200
15191
|
const r3 = t2[e3];
|
|
15201
|
-
if (!r3.getName()) throw new Error(
|
|
15192
|
+
if (!r3.getName()) throw new Error(zp);
|
|
15202
15193
|
const o2 = this._toKey(r3);
|
|
15203
15194
|
try {
|
|
15204
15195
|
this._index(o2, r3, n2);
|
|
@@ -16247,7 +16238,7 @@ class y_ {
|
|
|
16247
16238
|
}, getA1(t3) {
|
|
16248
16239
|
if (!_2) throw new Error($h);
|
|
16249
16240
|
return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
|
|
16250
|
-
} }, w2 =
|
|
16241
|
+
} }, w2 = Ns(e2, (e3) => {
|
|
16251
16242
|
const n3 = e3.value;
|
|
16252
16243
|
if (!l2 && !n3) return;
|
|
16253
16244
|
let r3 = l2;
|
|
@@ -16287,7 +16278,7 @@ class y_ {
|
|
|
16287
16278
|
}, forEachSpan: (t3, e3) => o2(t3, e3, this._headers), forEachVisibleSpan: (t3, e3) => {
|
|
16288
16279
|
const n3 = r2?.min ?? null, o3 = r2?.max ?? null;
|
|
16289
16280
|
let s3;
|
|
16290
|
-
if (s3 = e3?.includeHidden ? t3(n3, o3) :
|
|
16281
|
+
if (s3 = e3?.includeHidden ? t3(n3, o3) : Ns(this._indexedHidden, (e4) => {
|
|
16291
16282
|
if (e4.value) return;
|
|
16292
16283
|
const n4 = t3(e4.min, e4.max);
|
|
16293
16284
|
return n4 && n4.break ? n4 : void 0;
|
|
@@ -16757,7 +16748,7 @@ class v_ {
|
|
|
16757
16748
|
}
|
|
16758
16749
|
toJSON() {
|
|
16759
16750
|
const t2 = this._c;
|
|
16760
|
-
return [
|
|
16751
|
+
return [Hc(t2), this.getFormulaTextAt(t2.rowStart, t2.colStart)];
|
|
16761
16752
|
}
|
|
16762
16753
|
getCoords() {
|
|
16763
16754
|
return this._c;
|
|
@@ -16827,7 +16818,7 @@ class I_ {
|
|
|
16827
16818
|
}
|
|
16828
16819
|
}
|
|
16829
16820
|
const R_ = Object.freeze({ coords: c.EmptyCell, topLeft: a.EmptyTopLeft }), A_ = Object.freeze({ cell: c.EmptyCell, ranges: o.EmptyArray, rangeIndex: 0 }), M_ = Object.freeze({ selection: A_, topLeft: a.EmptyTopLeft, freezePanes: R_, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: bp.HeaderTextStyle.One, columnHeaderStyle: bp.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
|
|
16830
|
-
class
|
|
16821
|
+
class N_ {
|
|
16831
16822
|
constructor(t2) {
|
|
16832
16823
|
if (this._emitter = null, !t2?.sheet) throw new Error("SheetView requires a sheet.");
|
|
16833
16824
|
const e2 = new Ki(this);
|
|
@@ -17015,8 +17006,8 @@ class T_ {
|
|
|
17015
17006
|
return true;
|
|
17016
17007
|
}
|
|
17017
17008
|
}
|
|
17018
|
-
async function
|
|
17019
|
-
const { getCrypto: t2 } = await import("./
|
|
17009
|
+
async function T_() {
|
|
17010
|
+
const { getCrypto: t2 } = await import("./DckkOP8yE5zNk_n9.mjs");
|
|
17020
17011
|
return t2();
|
|
17021
17012
|
}
|
|
17022
17013
|
const k_ = async (t2, e2, ...n2) => {
|
|
@@ -17043,7 +17034,7 @@ class D_ {
|
|
|
17043
17034
|
}
|
|
17044
17035
|
static async generateSaltAndHash(t2, e2 = D_.DefaultAlgo, n2 = D_.DefaultSpinCount) {
|
|
17045
17036
|
if (!t2) return null;
|
|
17046
|
-
const r2 = (await
|
|
17037
|
+
const r2 = (await T_()).getRandomValues(new Uint8Array(16)), o2 = O_(r2.buffer);
|
|
17047
17038
|
return { salt: o2, hash: await D_._convertPasswordToHash(t2, o2, e2, n2) };
|
|
17048
17039
|
}
|
|
17049
17040
|
static async verifyPassword(t2, e2, n2 = D_.DefaultAlgo, r2 = D_.DefaultSpinCount) {
|
|
@@ -17056,7 +17047,7 @@ class D_ {
|
|
|
17056
17047
|
})(await D_._convertPasswordToHash(t2, e2.salt, n2, r2), e2.hash);
|
|
17057
17048
|
}
|
|
17058
17049
|
static async _convertPasswordToHash(t2, e2, n2, r2) {
|
|
17059
|
-
const o2 = await
|
|
17050
|
+
const o2 = await T_();
|
|
17060
17051
|
n2 = n2.toUpperCase();
|
|
17061
17052
|
const s2 = ((t3) => {
|
|
17062
17053
|
const e3 = new ArrayBuffer(2 * t3.length), n3 = new DataView(e3);
|
|
@@ -17159,7 +17150,7 @@ class B_ {
|
|
|
17159
17150
|
}
|
|
17160
17151
|
}
|
|
17161
17152
|
const L_ = Object.freeze({ selectLockedCells: true, selectUnlockedCells: true, autoFilter: false, deleteColumns: false, deleteRows: false, formatCells: false, formatColumns: false, formatRows: false, insertColumns: false, insertHyperlinks: false, insertRows: false, objects: false, pivotTables: false, scenarios: false, sheet: false, sort: false, verifier: null });
|
|
17162
|
-
class
|
|
17153
|
+
class z_ extends B_ {
|
|
17163
17154
|
isAutoFilterAllowed() {
|
|
17164
17155
|
return this._isPropertyAllowed("autoFilter");
|
|
17165
17156
|
}
|
|
@@ -17227,17 +17218,17 @@ class P_ extends B_ {
|
|
|
17227
17218
|
return super._toJSON(t2);
|
|
17228
17219
|
}
|
|
17229
17220
|
}
|
|
17230
|
-
class
|
|
17221
|
+
class P_ {
|
|
17231
17222
|
constructor(t2, e2, n2) {
|
|
17232
17223
|
this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
|
|
17233
17224
|
}
|
|
17234
17225
|
_createRanges(t2, e2) {
|
|
17235
17226
|
let n2 = this._options;
|
|
17236
|
-
return e2 && (n2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new
|
|
17227
|
+
return e2 && (n2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new P_(t2, this._sheet, n2);
|
|
17237
17228
|
}
|
|
17238
17229
|
_createRange(t2, e2) {
|
|
17239
17230
|
let n2 = this._options;
|
|
17240
|
-
return e2 && (n2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new
|
|
17231
|
+
return e2 && (n2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, n2);
|
|
17241
17232
|
}
|
|
17242
17233
|
_validateWrite() {
|
|
17243
17234
|
const t2 = this._readOnly;
|
|
@@ -17354,10 +17345,10 @@ class z_ {
|
|
|
17354
17345
|
return this._sheet._getSnapshot(this.getCoords(), t2);
|
|
17355
17346
|
}
|
|
17356
17347
|
getEntireRows(t2, n2) {
|
|
17357
|
-
return this._createRanges(
|
|
17348
|
+
return this._createRanges(Pg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Column, t2), n2);
|
|
17358
17349
|
}
|
|
17359
17350
|
getEntireColumns(t2, n2) {
|
|
17360
|
-
return this._createRanges(
|
|
17351
|
+
return this._createRanges(Pg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Row, t2), n2);
|
|
17361
17352
|
}
|
|
17362
17353
|
getDefaultShiftOrientation() {
|
|
17363
17354
|
return this._sheet._getDefaultShiftOrientation(this.getCoords()[0]);
|
|
@@ -17378,16 +17369,16 @@ class z_ {
|
|
|
17378
17369
|
return Vg(this.getCoords(), e.Orientation.Column);
|
|
17379
17370
|
}
|
|
17380
17371
|
isEntireRowsAny() {
|
|
17381
|
-
return
|
|
17372
|
+
return Wg(this.getCoords(), this._sheet._entireCoords, false);
|
|
17382
17373
|
}
|
|
17383
17374
|
isEntireColumnsAny() {
|
|
17384
|
-
return
|
|
17375
|
+
return Hg(this.getCoords(), this._sheet._entireCoords, false);
|
|
17385
17376
|
}
|
|
17386
17377
|
isEntireRows() {
|
|
17387
|
-
return
|
|
17378
|
+
return Wg(this.getCoords(), this._sheet._entireCoords, true);
|
|
17388
17379
|
}
|
|
17389
17380
|
isEntireColumns() {
|
|
17390
|
-
return
|
|
17381
|
+
return Hg(this.getCoords(), this._sheet._entireCoords, true);
|
|
17391
17382
|
}
|
|
17392
17383
|
isOverlapping() {
|
|
17393
17384
|
return Xl(this.getCoords());
|
|
@@ -17404,7 +17395,7 @@ class z_ {
|
|
|
17404
17395
|
return false;
|
|
17405
17396
|
}
|
|
17406
17397
|
getA1() {
|
|
17407
|
-
return Kc(this.getCoords(), this._sheet._entireCoords, $c,
|
|
17398
|
+
return Kc(this.getCoords(), this._sheet._entireCoords, $c, zc);
|
|
17408
17399
|
}
|
|
17409
17400
|
getSheet() {
|
|
17410
17401
|
return this._sheet;
|
|
@@ -17422,7 +17413,7 @@ class z_ {
|
|
|
17422
17413
|
return true;
|
|
17423
17414
|
}
|
|
17424
17415
|
}
|
|
17425
|
-
class
|
|
17416
|
+
class W_ {
|
|
17426
17417
|
constructor(t2, e2, n2) {
|
|
17427
17418
|
this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
|
|
17428
17419
|
}
|
|
@@ -17434,11 +17425,11 @@ class H_ {
|
|
|
17434
17425
|
if (!t2) return Qg(n2, n2._entireCoords);
|
|
17435
17426
|
if (n2._validateCoords(t2), n2._closed) return Qg(null, n2._entireCoords, t2);
|
|
17436
17427
|
let r2 = this._options;
|
|
17437
|
-
return e2 && (r2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new
|
|
17428
|
+
return e2 && (r2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, r2);
|
|
17438
17429
|
}
|
|
17439
17430
|
_createRanges(t2, e2) {
|
|
17440
17431
|
let n2 = this._options;
|
|
17441
|
-
return e2 && (n2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new
|
|
17432
|
+
return e2 && (n2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new P_(t2, this._sheet, n2);
|
|
17442
17433
|
}
|
|
17443
17434
|
_deriveRanges(t2, e2) {
|
|
17444
17435
|
const n2 = this.getCoords();
|
|
@@ -17603,11 +17594,11 @@ class H_ {
|
|
|
17603
17594
|
}
|
|
17604
17595
|
getEntireRows(t2, n2) {
|
|
17605
17596
|
const r2 = this._sheet;
|
|
17606
|
-
return this._createRange(
|
|
17597
|
+
return this._createRange(Pg([this.getCoords()], r2._entireCoords, e.Orientation.Column, t2)[0], n2);
|
|
17607
17598
|
}
|
|
17608
17599
|
getEntireColumns(t2, n2) {
|
|
17609
17600
|
const r2 = this._sheet;
|
|
17610
|
-
return this._createRange(
|
|
17601
|
+
return this._createRange(Pg([this.getCoords()], r2._entireCoords, e.Orientation.Row, t2)[0], n2);
|
|
17611
17602
|
}
|
|
17612
17603
|
getRowHeaders(t2) {
|
|
17613
17604
|
const e2 = this.getCoords();
|
|
@@ -17692,15 +17683,15 @@ class H_ {
|
|
|
17692
17683
|
}
|
|
17693
17684
|
isEntireRows() {
|
|
17694
17685
|
const t2 = this._sheet;
|
|
17695
|
-
return
|
|
17686
|
+
return Wg([this.getCoords()], t2._entireCoords, true);
|
|
17696
17687
|
}
|
|
17697
17688
|
isEntireColumns() {
|
|
17698
17689
|
const t2 = this._sheet;
|
|
17699
|
-
return
|
|
17690
|
+
return Hg([this.getCoords()], t2._entireCoords, true);
|
|
17700
17691
|
}
|
|
17701
17692
|
isEntireRange() {
|
|
17702
17693
|
const t2 = this.getCoords(), e2 = this._sheet;
|
|
17703
|
-
return
|
|
17694
|
+
return Hg([t2], e2._entireCoords, true) && Wg([t2], e2._entireCoords, true);
|
|
17704
17695
|
}
|
|
17705
17696
|
getWidth() {
|
|
17706
17697
|
const t2 = this._coords;
|
|
@@ -17820,7 +17811,7 @@ class H_ {
|
|
|
17820
17811
|
return true;
|
|
17821
17812
|
}
|
|
17822
17813
|
}
|
|
17823
|
-
const
|
|
17814
|
+
const H_ = Math.pow(2, 14), V_ = Math.pow(2, 20), $_ = (t2) => `${t2}`, j_ = (t2) => Dc(t2), G_ = (t2) => `${t2 + 1}`;
|
|
17824
17815
|
let U_ = 0;
|
|
17825
17816
|
const J_ = () => [];
|
|
17826
17817
|
let q_ = 0;
|
|
@@ -17828,10 +17819,10 @@ class K_ {
|
|
|
17828
17819
|
constructor(t2) {
|
|
17829
17820
|
this._lastTransactionUUID = null, this._emitter = null, this._initializing = true, this._emitterMovables = null, this._rangesListenerSorted = null, this._lastCellDecoded = { address: null, coords: null }, this._lastCellSelected = { coords: null, cell: null }, this._lastCellRead = { coords: null, cell: null }, this._lastValueRead = { range: null, isDateOrTime: null }, this._lastGetRangeRead = {}, this._lastUsedCoordsRead = { coords: null, range: null }, this._lastActiveRead = { selection: null, range: null, ranges: null }, this._lastRangeRead = { address: null, range: null, ranges: null }, this._isDataColumn = true, this._isDate1904 = false, this._colHeaders = null, this._colHeadersShiftCallback = null, this._colHeadersListener = null, this._colHeadersRemoveListener = null, this._rowHeaders = null, this._rowHeadersShiftCallback = null, this._rowHeadersListener = null, this._rowHeadersRemoveListener = null, this._closed = false;
|
|
17830
17821
|
const e2 = Object.freeze({ ...t2 });
|
|
17831
|
-
|
|
17822
|
+
st._validate(true), this._transactions = e2.transactions ?? new k(), this._ownTransactions = !e2.transactions;
|
|
17832
17823
|
const n2 = this._beginCommit({ description: "New Sheet" }), r2 = this;
|
|
17833
17824
|
try {
|
|
17834
|
-
this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ??
|
|
17825
|
+
this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? H_) - 1, rowEnd: (e2.maxRows ?? V_) - 1 }), this._strings = e2.strings ?? new Xm(), this._ownStrings = !e2.strings;
|
|
17835
17826
|
const t3 = e2.styles ?? new $m();
|
|
17836
17827
|
this._styles = t3, this._ownStyles = !e2.styles, this._names = e2.names ?? new $p({ addressToRanges: (t4) => r2.getRanges(t4), getCurrentScope: () => r2.getName(), isReadOnly: () => r2._options.readonly ?? false, transactions: r2._transactions }), this._ownNames = !e2.names, this._namesRemoveListener = this._names.addListeners({ onCollectionChange: (t4) => {
|
|
17837
17828
|
r2._calculateFull();
|
|
@@ -17880,7 +17871,7 @@ class K_ {
|
|
|
17880
17871
|
if (this._validateCoords(t2), this._closed) return Qg(null, this._entireCoords, t2);
|
|
17881
17872
|
null === n2 && this._options.readonly && (n2 = "Readonly sheet");
|
|
17882
17873
|
let r2 = null;
|
|
17883
|
-
return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new
|
|
17874
|
+
return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new W_(((t3) => {
|
|
17884
17875
|
if (!t3) return null;
|
|
17885
17876
|
const e3 = { colStart: t3.colIndex ?? t3.colStart ?? 0, rowStart: t3.rowIndex ?? t3.rowStart ?? 0, colEnd: t3.colIndex ?? t3.colEnd ?? 0, rowEnd: t3.rowIndex ?? t3.rowEnd ?? 0 };
|
|
17886
17877
|
return (t3.$colStart || t3.$colIndex) && (e3.$colStart = true), (t3.$colEnd || t3.$colIndex) && (e3.$colEnd = true), (t3.$rowStart || t3.$rowIndex) && (e3.$rowStart = true), (t3.$rowEnd || t3.$rowIndex) && (e3.$rowEnd = true), e3;
|
|
@@ -17888,7 +17879,7 @@ class K_ {
|
|
|
17888
17879
|
}
|
|
17889
17880
|
_createRanges(t2, e2, n2 = null) {
|
|
17890
17881
|
let r2 = null;
|
|
17891
|
-
return null === n2 && this._options.readonly && (n2 = "Readonly sheet"), (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new
|
|
17882
|
+
return null === n2 && this._options.readonly && (n2 = "Readonly sheet"), (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new P_(t2, this, r2);
|
|
17892
17883
|
}
|
|
17893
17884
|
getRange(t2, e2) {
|
|
17894
17885
|
let n2 = !e2 && t2 && (void 0 !== t2.rowStart || "string" == typeof t2);
|
|
@@ -18083,7 +18074,7 @@ class K_ {
|
|
|
18083
18074
|
if (!o2 || !n2) return null;
|
|
18084
18075
|
let s2 = this._entireCoords;
|
|
18085
18076
|
r2 && (s2 = { colStart: Math.max(s2.colStart - r2, s2.colStart), rowStart: s2.rowStart, colEnd: Math.min(s2.colEnd + r2, s2.colEnd), rowEnd: s2.rowEnd });
|
|
18086
|
-
const i2 = { rowStart: n2.rowStart, colStart: s2.colStart, rowEnd: n2.rowEnd, colEnd: s2.colEnd }, a2 = { bounds: i2, includeRangeTypes:
|
|
18077
|
+
const i2 = { rowStart: n2.rowStart, colStart: s2.colStart, rowEnd: n2.rowEnd, colEnd: s2.colEnd }, a2 = { bounds: i2, includeRangeTypes: Th, orientation: e.Orientation.Row, excludeHidden: true, byCell: false }, l2 = n2.colStart, h2 = n2.colEnd;
|
|
18087
18078
|
let d2, u2, g2 = -1;
|
|
18088
18079
|
const m2 = (t2, e2) => {
|
|
18089
18080
|
let n3 = t2.next();
|
|
@@ -18114,7 +18105,7 @@ class K_ {
|
|
|
18114
18105
|
const i3 = n3.continuous;
|
|
18115
18106
|
if ("string" == typeof s3 || i3) {
|
|
18116
18107
|
lS.colStart = o3, lS.rowStart = r3, lS.colEnd = o3, lS.rowEnd = r3;
|
|
18117
|
-
const e3 =
|
|
18108
|
+
const e3 = Ng(0, lS, n3.intersection, _2);
|
|
18118
18109
|
n3.style = e3;
|
|
18119
18110
|
const a3 = Ag(r3, o3, t.String, e3, s3, null, null, i3?.getCoords(), _2);
|
|
18120
18111
|
if (a3) {
|
|
@@ -18155,14 +18146,14 @@ class K_ {
|
|
|
18155
18146
|
const C2 = n2?.cellValuesGrid ?? null;
|
|
18156
18147
|
let b2 = C2 ? C2.entries(l2) : sa, v2 = b2.next(), x2 = null, I2 = null, R2 = null;
|
|
18157
18148
|
v2.done || (x2 = v2.value[0], I2 = v2.value[1]);
|
|
18158
|
-
let A2 = p2?.[y2++], M2 = f2.next(),
|
|
18159
|
-
const
|
|
18149
|
+
let A2 = p2?.[y2++], M2 = f2.next(), N2 = null;
|
|
18150
|
+
const T2 = s2 !== e.Orientation.Row;
|
|
18160
18151
|
let k2;
|
|
18161
18152
|
const F2 = c.createCellComparator(s2, i2);
|
|
18162
18153
|
let O2;
|
|
18163
18154
|
if (!M2.done) {
|
|
18164
18155
|
const t3 = M2.value;
|
|
18165
|
-
|
|
18156
|
+
N2 = t3.intersection, O2 = t3.start;
|
|
18166
18157
|
}
|
|
18167
18158
|
k2 = (t3) => {
|
|
18168
18159
|
let e2 = null, n3 = null, r3 = null, o3 = false, s3 = false, i3 = null, a3 = null, l3 = false;
|
|
@@ -18174,25 +18165,25 @@ class K_ {
|
|
|
18174
18165
|
if (l3) e2 = { colIndex: A2.colIndex, rowIndex: A2.rowIndex }, n3 = A2.scalar, r3 = A2.intersection, A2 = p2[y2++];
|
|
18175
18166
|
else if (x2 && O2) {
|
|
18176
18167
|
const t4 = F2(x2, O2);
|
|
18177
|
-
t4 < 0 ? (e2 = x2, n3 = I2, o3 = true) : t4 > 0 ? (e2 = O2, r3 =
|
|
18168
|
+
t4 < 0 ? (e2 = x2, n3 = I2, o3 = true) : t4 > 0 ? (e2 = O2, r3 = N2, s3 = true) : (e2 = x2, n3 = I2, r3 = N2, o3 = true, s3 = true);
|
|
18178
18169
|
} else if (x2) e2 = x2, n3 = I2, o3 = true;
|
|
18179
18170
|
else {
|
|
18180
18171
|
if (!O2 || !u2) return oa;
|
|
18181
|
-
e2 = O2, r3 =
|
|
18172
|
+
e2 = O2, r3 = N2, s3 = true;
|
|
18182
18173
|
}
|
|
18183
18174
|
if (o3 && (v2 = b2.next(), v2.done ? x2 = null : (x2 = v2.value[0], I2 = v2.value[1])), s3) {
|
|
18184
18175
|
const t4 = u2 ? void 0 : x2;
|
|
18185
|
-
if (M2 = f2.next(t4), M2.done) O2 = null,
|
|
18176
|
+
if (M2 = f2.next(t4), M2.done) O2 = null, N2 = null;
|
|
18186
18177
|
else {
|
|
18187
18178
|
const t5 = M2.value;
|
|
18188
|
-
|
|
18179
|
+
N2 = t5.intersection, O2 = t5.cell;
|
|
18189
18180
|
}
|
|
18190
18181
|
}
|
|
18191
18182
|
let c2 = false;
|
|
18192
18183
|
const h3 = e2.rowIndex, d3 = e2.colIndex;
|
|
18193
|
-
|
|
18184
|
+
T2 || (c2 = h3 === R2?.rowIndex);
|
|
18194
18185
|
let g3 = false;
|
|
18195
|
-
if (
|
|
18186
|
+
if (T2 || (g3 = h3 === x2?.rowIndex), c2) i3 = R2;
|
|
18196
18187
|
else if (m2) {
|
|
18197
18188
|
let t4 = false;
|
|
18198
18189
|
for (; !t4 && E2 < w2; ) {
|
|
@@ -18288,7 +18279,7 @@ class K_ {
|
|
|
18288
18279
|
}
|
|
18289
18280
|
_createIncrementalUpdater(t2, n2 = null, r2) {
|
|
18290
18281
|
const s2 = t2?.orientation ?? e.Orientation.Row, i2 = t2?.allowUnorderedWrites ?? false, a2 = s2 === e.Orientation.Column, l2 = this._isDataColumn, h2 = a2 !== l2, u2 = this;
|
|
18291
|
-
let g2, m2, f2, p2 = h2 ? new
|
|
18282
|
+
let g2, m2, f2, p2 = h2 ? new Tt.TransposedBuilder() : new Tt.Builder(), _2 = null;
|
|
18292
18283
|
if (n2) {
|
|
18293
18284
|
const t3 = n2.getCoords(), e2 = t3.colStart, r3 = t3.rowStart, o2 = t3.colEnd, s3 = t3.rowEnd;
|
|
18294
18285
|
_2 = (t4, n3) => {
|
|
@@ -18303,7 +18294,7 @@ class K_ {
|
|
|
18303
18294
|
let E2 = null;
|
|
18304
18295
|
return g2 = Object.freeze({ push: (t3, e2) => {
|
|
18305
18296
|
const n3 = u2._cellToCoords(t3);
|
|
18306
|
-
return w2 && (E2 && w2(n3, E2) <= 0 && (S2(y2), p2 = h2 ? new
|
|
18297
|
+
return w2 && (E2 && w2(n3, E2) <= 0 && (S2(y2), p2 = h2 ? new Tt.TransposedBuilder() : new Tt.Builder()), E2 = n3), m2(a2 ? n3.colIndex : n3.rowIndex, a2 ? n3.rowIndex : n3.colIndex, e2);
|
|
18307
18298
|
}, pushAt: m2, pushMultipleAt: f2, apply: S2 }), g2;
|
|
18308
18299
|
}
|
|
18309
18300
|
_updateTuples(t2, n2, r2 = void 0, o2 = null) {
|
|
@@ -18318,24 +18309,24 @@ class K_ {
|
|
|
18318
18309
|
let v2 = false;
|
|
18319
18310
|
m2 && this._hasRangedEntries("unlockSpatial", E2) && (b2[Rh.Type.Unlock] = false, v2 = true), this._hasRangedEntries("mergeSpatial", E2) && (b2[Rh.Type.Merge] = false, v2 = true);
|
|
18320
18311
|
const x2 = this._rangeStateIterator({ bounds: E2, orientation: g2, includeRangeTypes: b2, reuseIterator: { done: false, value: null } });
|
|
18321
|
-
let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1,
|
|
18312
|
+
let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1, N2 = -1, T2 = null;
|
|
18322
18313
|
if (!I2.done) {
|
|
18323
18314
|
const t3 = I2.value, e2 = t3.start, n3 = t3.end;
|
|
18324
|
-
R2 = u2 ? e2.colIndex : e2.rowIndex, A2 = u2 ? n3.colIndex : n3.rowIndex, M2 = u2 ? e2.rowIndex : e2.colIndex,
|
|
18315
|
+
R2 = u2 ? e2.colIndex : e2.rowIndex, A2 = u2 ? n3.colIndex : n3.rowIndex, M2 = u2 ? e2.rowIndex : e2.colIndex, N2 = u2 ? n3.rowIndex : n3.colIndex, T2 = t3.intersection;
|
|
18325
18316
|
}
|
|
18326
18317
|
let k2 = (t3, e2) => {
|
|
18327
18318
|
do {
|
|
18328
|
-
if (!
|
|
18329
|
-
if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <=
|
|
18330
|
-
if (I2 = x2.next(), I2.done)
|
|
18319
|
+
if (!T2 || t3 <= M2 && e2 < M2) return null;
|
|
18320
|
+
if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <= N2) return T2;
|
|
18321
|
+
if (I2 = x2.next(), I2.done) T2 = null, k2 = null, v2 = false;
|
|
18331
18322
|
else {
|
|
18332
18323
|
const t4 = I2.value;
|
|
18333
|
-
R2 = u2 ? t4.start.colIndex : t4.start.rowIndex, A2 = u2 ? t4.end.colIndex : t4.end.rowIndex, M2 = u2 ? t4.start.rowIndex : t4.start.colIndex,
|
|
18324
|
+
R2 = u2 ? t4.start.colIndex : t4.start.rowIndex, A2 = u2 ? t4.end.colIndex : t4.end.rowIndex, M2 = u2 ? t4.start.rowIndex : t4.start.colIndex, N2 = u2 ? t4.end.rowIndex : t4.end.colIndex, T2 = t4.intersection;
|
|
18334
18325
|
}
|
|
18335
|
-
} while (
|
|
18336
|
-
return
|
|
18326
|
+
} while (T2);
|
|
18327
|
+
return T2;
|
|
18337
18328
|
};
|
|
18338
|
-
const F2 = c2.getState(this), O2 = F2.cellValuesGrid.clone(), D2 = F2.calcGraph.clone(), B2 = F2.formulaSpatial.clone(), L2 = F2.spillSpatial.clone(),
|
|
18329
|
+
const F2 = c2.getState(this), O2 = F2.cellValuesGrid.clone(), D2 = F2.calcGraph.clone(), B2 = F2.formulaSpatial.clone(), L2 = F2.spillSpatial.clone(), z2 = F2.pendingSpatial.clone(), P2 = F2.calcErrorsSpatial.clone(), W2 = F2.contentfulSpatial.clone(), H2 = Cl(u2), V2 = Cl(u2, (t3, e2) => {
|
|
18339
18330
|
if (t3 === e2) return e2;
|
|
18340
18331
|
}), $2 = Cl(u2, (t3, e2) => {
|
|
18341
18332
|
if (t3 === e2) return e2;
|
|
@@ -18387,20 +18378,20 @@ class K_ {
|
|
|
18387
18378
|
const t3 = a2.length;
|
|
18388
18379
|
for (let e2 = 0; e2 < t3; e2++) {
|
|
18389
18380
|
const t4 = a2[e2], n3 = t4[0];
|
|
18390
|
-
if (Z2 >= n3) throw new
|
|
18381
|
+
if (Z2 >= n3) throw new Tt.OutOfOrderError(`Duplicate or out of order major indices: {${n3}}.`);
|
|
18391
18382
|
if (Z2 = n3, tt2 = Number.MIN_SAFE_INTEGER, n3 < _2 || n3 > S2) throw new d("Provided major bounds is invalid");
|
|
18392
18383
|
const r4 = t4[1], o4 = [], i4 = r4.length;
|
|
18393
18384
|
for (let t5 = 0; t5 < i4; t5++) {
|
|
18394
18385
|
const e3 = r4[t5], i5 = e3[1], a3 = i5.length;
|
|
18395
18386
|
let l3 = e3[0], c3 = l3;
|
|
18396
|
-
if (tt2 > c3) throw new
|
|
18387
|
+
if (tt2 > c3) throw new Tt.OutOfOrderError(`Duplicate or out of order minor indices: {${c3}}.`);
|
|
18397
18388
|
if (c3 < w2 || c3 + a3 > y2 + 1) throw new d("Provided minor bounds is invalid");
|
|
18398
18389
|
let h3 = [];
|
|
18399
18390
|
for (let t6 = 0; t6 < a3; t6++) {
|
|
18400
18391
|
const e4 = i5[t6];
|
|
18401
18392
|
let r5 = null;
|
|
18402
18393
|
if (v2 || "number" != typeof e4 ? (v2 || null !== e4 || s2) && (r5 = Q2(e4, n3, c3)) : r5 = e4, null == r5) {
|
|
18403
|
-
if (null === r5 &&
|
|
18394
|
+
if (null === r5 && H2.append(n3, c3), h3.length > 0) {
|
|
18404
18395
|
const t7 = Y2(h3, p2);
|
|
18405
18396
|
o4.push([l3, t7]), h3 = [];
|
|
18406
18397
|
}
|
|
@@ -18415,10 +18406,10 @@ class K_ {
|
|
|
18415
18406
|
}
|
|
18416
18407
|
o4.length > 0 && q2.push([n3, o4]);
|
|
18417
18408
|
}
|
|
18418
|
-
const r3 =
|
|
18409
|
+
const r3 = H2.done(), o3 = r3.length;
|
|
18419
18410
|
for (let t4 = 0; t4 < o3; t4++) {
|
|
18420
18411
|
const e2 = r3[t4];
|
|
18421
|
-
O2.delete(r3[t4]),
|
|
18412
|
+
O2.delete(r3[t4]), W2.insertNonOverlapping({ ...e2, value: null });
|
|
18422
18413
|
const n3 = D2.delete(e2);
|
|
18423
18414
|
this._updateFormulaSpatial(B2, null, n3);
|
|
18424
18415
|
}
|
|
@@ -18430,11 +18421,11 @@ class K_ {
|
|
|
18430
18421
|
g3 = this._updateFormulaSpatial(B2, t4.inserts, t4.removes, F2.directStyleSpatial);
|
|
18431
18422
|
}
|
|
18432
18423
|
const f3 = dm(q2, u2), C3 = f3.length;
|
|
18433
|
-
for (let t4 = 0; t4 < C3; t4++)
|
|
18424
|
+
for (let t4 = 0; t4 < C3; t4++) W2.insertNonOverlapping(f3[t4]);
|
|
18434
18425
|
const b3 = V2.done();
|
|
18435
18426
|
b3.length > 0 && this._updateStyles(b3), G2.length > 0 && this._merge(G2);
|
|
18436
18427
|
const x3 = $2.done();
|
|
18437
|
-
if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial:
|
|
18428
|
+
if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial: W2, calcGraph: D2, formulaSpatial: B2, spillSpatial: L2, pendingSpatial: z2, calcErrorsSpatial: P2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
|
|
18438
18429
|
const t4 = "boolean" == typeof n2.autoFit ? iS : n2.autoFit;
|
|
18439
18430
|
this._autoFit([E2], t4);
|
|
18440
18431
|
}
|
|
@@ -18452,11 +18443,11 @@ class K_ {
|
|
|
18452
18443
|
if (a2.length > 0) {
|
|
18453
18444
|
i2 = true;
|
|
18454
18445
|
let e2 = a2[0];
|
|
18455
|
-
if (o2 = e2.colEnd - e2.colStart + 1, s2 = e2.rowEnd - e2.rowStart + 1, (t2.colEnd - t2.colStart + 1) % o2 != 0 || (t2.rowEnd - t2.rowStart + 1) % s2 != 0) throw new Error(
|
|
18446
|
+
if (o2 = e2.colEnd - e2.colStart + 1, s2 = e2.rowEnd - e2.rowStart + 1, (t2.colEnd - t2.colStart + 1) % o2 != 0 || (t2.rowEnd - t2.rowStart + 1) % s2 != 0) throw new Error(Hh);
|
|
18456
18447
|
const n3 = a2.length;
|
|
18457
18448
|
for (let t3 = 1; t3 < n3; t3++) {
|
|
18458
18449
|
const e3 = a2[t3];
|
|
18459
|
-
if (e3.colEnd - e3.colStart + 1 !== o2 || e3.rowEnd - e3.rowStart + 1 !== s2) throw new Error(
|
|
18450
|
+
if (e3.colEnd - e3.colStart + 1 !== o2 || e3.rowEnd - e3.rowStart + 1 !== s2) throw new Error(Hh);
|
|
18460
18451
|
}
|
|
18461
18452
|
}
|
|
18462
18453
|
const l2 = n2?.orientation ?? e.Orientation.Row, c2 = l2 === e.Orientation.Row;
|
|
@@ -18506,8 +18497,8 @@ class K_ {
|
|
|
18506
18497
|
}
|
|
18507
18498
|
if (!w2) return;
|
|
18508
18499
|
if (0 === S2.length) return;
|
|
18509
|
-
const M2 = /* @__PURE__ */ new Map(),
|
|
18510
|
-
for (let t3 = 0; t3 < k2; t3++) M2.set(
|
|
18500
|
+
const M2 = /* @__PURE__ */ new Map(), N2 = /* @__PURE__ */ new Map(), T2 = n2?.collators ?? Zi.DefaultCollators, k2 = T2.length;
|
|
18501
|
+
for (let t3 = 0; t3 < k2; t3++) M2.set(T2[t3].type, T2[t3].compare), N2.set(T2[t3].type, t3);
|
|
18511
18502
|
let F2 = null, O2 = null, D2 = null;
|
|
18512
18503
|
S2.sort((t3, e2) => {
|
|
18513
18504
|
const n3 = p2.length;
|
|
@@ -18520,14 +18511,14 @@ class K_ {
|
|
|
18520
18511
|
const h3 = o3.getType(), d2 = s3.getType();
|
|
18521
18512
|
let u3 = 0;
|
|
18522
18513
|
if (h3 !== d2) {
|
|
18523
|
-
let t4 =
|
|
18524
|
-
u3 =
|
|
18514
|
+
let t4 = N2.get(h3);
|
|
18515
|
+
u3 = N2.get(d2) - t4;
|
|
18525
18516
|
} else {
|
|
18526
18517
|
let t4 = O2;
|
|
18527
18518
|
if (F2 !== h3) {
|
|
18528
18519
|
t4 = M2.get(h3), O2 = t4, F2 = h3;
|
|
18529
|
-
let e3 =
|
|
18530
|
-
const r4 =
|
|
18520
|
+
let e3 = N2.get(d2);
|
|
18521
|
+
const r4 = T2[e3].defaultOptions;
|
|
18531
18522
|
D2 = { ...r4, ...n4.collatorOptions };
|
|
18532
18523
|
}
|
|
18533
18524
|
u3 = t4(i3, a3, D2);
|
|
@@ -18539,21 +18530,21 @@ class K_ {
|
|
|
18539
18530
|
const B2 = this._beginCommit({ description: r2 });
|
|
18540
18531
|
let L2 = [u2];
|
|
18541
18532
|
v2 || (L2 = this._getVisible(L2, { orientations: c2 ? e.Orientations.Row : e.Orientations.Column })), this._clear(L2, void 0, void 0, true);
|
|
18542
|
-
const
|
|
18543
|
-
let
|
|
18544
|
-
const
|
|
18545
|
-
for (let t3 = 0; t3 <
|
|
18533
|
+
const z2 = this._createIncrementalUpdater({ orientation: l2 });
|
|
18534
|
+
let P2 = c2 ? u2.rowStart : u2.colStart;
|
|
18535
|
+
const W2 = S2.length;
|
|
18536
|
+
for (let t3 = 0; t3 < W2; t3++) {
|
|
18546
18537
|
const e2 = S2[t3];
|
|
18547
|
-
if (b2 && (
|
|
18538
|
+
if (b2 && (P2 = b2(P2)), e2) {
|
|
18548
18539
|
const t4 = e2.values, n3 = t4.length;
|
|
18549
18540
|
for (let e3 = 0; e3 < n3; e3++) {
|
|
18550
|
-
const n4 = t4[e3], r3 = c2 ?
|
|
18551
|
-
|
|
18541
|
+
const n4 = t4[e3], r3 = c2 ? P2 : n4.getCoords().rowIndex, o3 = c2 ? n4.getCoords().colIndex : P2;
|
|
18542
|
+
z2.pushAt(r3, o3, n4);
|
|
18552
18543
|
}
|
|
18553
18544
|
}
|
|
18554
|
-
|
|
18545
|
+
P2 += I2;
|
|
18555
18546
|
}
|
|
18556
|
-
return
|
|
18547
|
+
return z2.apply(), B2.commit(), u2;
|
|
18557
18548
|
}
|
|
18558
18549
|
_autoFill(t2, n2, r2) {
|
|
18559
18550
|
const { direction: o2, amount: s2 } = ((t3, n3) => {
|
|
@@ -18569,7 +18560,7 @@ class K_ {
|
|
|
18569
18560
|
const p2 = { ...t2 };
|
|
18570
18561
|
let _2 = { ...t2 };
|
|
18571
18562
|
const S2 = [t2], w2 = this._getMerges(S2);
|
|
18572
|
-
if (w2.length > 0 && !c.isRangeWithinRange(c.unionRangesArrays(w2), t2)) throw new Error(
|
|
18563
|
+
if (w2.length > 0 && !c.isRangeWithinRange(c.unionRangesArrays(w2), t2)) throw new Error(Wh);
|
|
18573
18564
|
const y2 = { ..._2 };
|
|
18574
18565
|
let E2 = 1;
|
|
18575
18566
|
if (o2 === e.Direction.Left) p2.colStart = _2.colStart = t2.colStart - s2, p2.colEnd = t2.colStart - 1, E2 = 0 === w2.length ? E2 : t2.colEnd + 1 - t2.colStart, y2.rowStart = y2.rowEnd;
|
|
@@ -18580,20 +18571,20 @@ class K_ {
|
|
|
18580
18571
|
p2.rowEnd = _2.rowEnd = t2.rowEnd + s2, p2.rowStart = t2.rowEnd + 1, E2 = 0 === w2.length ? E2 : t2.rowEnd + 1 - t2.rowStart, y2.colStart = y2.colEnd;
|
|
18581
18572
|
}
|
|
18582
18573
|
if (s2 % E2 !== 0) throw new Error(((t3) => `When filling with merged cells the amount to fill must be a multiple of the input range [${t3}].`)(E2));
|
|
18583
|
-
const C2 = i2 ? "rowIndex" : "colIndex", v2 = i2 ? "colIndex" : "rowIndex", x2 = i2 ? t2.rowEnd + 1 - t2.rowStart : t2.colEnd + 1 - t2.colStart, I2 = i2 ? t2.rowStart : t2.colStart, R2 = i2 ? t2.rowEnd : t2.colEnd, A2 = i2 ? n2.rowStart : n2.colStart, M2 = i2 ? n2.rowEnd : n2.colEnd,
|
|
18584
|
-
|
|
18585
|
-
const
|
|
18574
|
+
const C2 = i2 ? "rowIndex" : "colIndex", v2 = i2 ? "colIndex" : "rowIndex", x2 = i2 ? t2.rowEnd + 1 - t2.rowStart : t2.colEnd + 1 - t2.colStart, I2 = i2 ? t2.rowStart : t2.colStart, R2 = i2 ? t2.rowEnd : t2.colEnd, A2 = i2 ? n2.rowStart : n2.colStart, M2 = i2 ? n2.rowEnd : n2.colEnd, N2 = i2 ? o2 === e.Direction.Down : o2 === e.Direction.Right;
|
|
18575
|
+
N2 || (g2.reverse = true);
|
|
18576
|
+
const T2 = N2 ? R2 + 1 : A2, k2 = (N2 ? M2 : I2 - 1) - T2 + 1, F2 = i2 ? t2.colEnd : t2.rowEnd;
|
|
18586
18577
|
l2.push(c.unionRanges(p2, t2));
|
|
18587
18578
|
const O2 = [];
|
|
18588
18579
|
let D2 = null;
|
|
18589
18580
|
h2 || (m2 = this._beginCommit({ description: "Auto Fill", operation: { name: "autoFill", params: [t2, n2, r2] } }));
|
|
18590
|
-
const B2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !
|
|
18581
|
+
const B2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Rh.Type.Style]: false } });
|
|
18591
18582
|
let L2 = B2.next();
|
|
18592
18583
|
for (; !L2.done; ) {
|
|
18593
18584
|
const t3 = L2.value.context, e2 = t3.getCell(), n3 = t3.getCoords();
|
|
18594
|
-
D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex:
|
|
18585
|
+
D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex: N2 ? I2 - 1 : R2 + 1, values: [] }, O2.push(D2));
|
|
18595
18586
|
const r3 = n3[C2];
|
|
18596
|
-
if (
|
|
18587
|
+
if (N2) for (let t4 = D2.lastIndex + 1; t4 < r3; t4++) D2.values.push(null);
|
|
18597
18588
|
else for (let t4 = D2.lastIndex - 1; t4 > r3; t4--) D2.values.push(null);
|
|
18598
18589
|
D2.lastIndex = r3;
|
|
18599
18590
|
const o3 = e2.toDate();
|
|
@@ -18604,45 +18595,45 @@ class K_ {
|
|
|
18604
18595
|
}
|
|
18605
18596
|
L2 = B2.next();
|
|
18606
18597
|
}
|
|
18607
|
-
const
|
|
18608
|
-
for (let t3 = 0; t3 <
|
|
18598
|
+
const z2 = O2.length;
|
|
18599
|
+
for (let t3 = 0; t3 < z2; t3++) {
|
|
18609
18600
|
const e2 = O2[t3].values;
|
|
18610
18601
|
for (let t4 = e2.length; t4 < x2; t4++) e2.push(null);
|
|
18611
18602
|
}
|
|
18612
|
-
const
|
|
18603
|
+
const P2 = (t3, e2) => {
|
|
18613
18604
|
if (t3.canFill(e2[0], [])) {
|
|
18614
18605
|
const n3 = t3.createFillAt(e2, g2);
|
|
18615
18606
|
if (n3) return n3;
|
|
18616
18607
|
}
|
|
18617
18608
|
return ks.Types.Copy.createFillAt(e2);
|
|
18618
|
-
},
|
|
18609
|
+
}, W2 = this;
|
|
18619
18610
|
if (h2) {
|
|
18620
18611
|
const t3 = O2[O2.length - 1];
|
|
18621
18612
|
if (O2[O2.length - 1]?.oppositeIndex !== F2) return null;
|
|
18622
|
-
const n3 =
|
|
18613
|
+
const n3 = P2(u2, t3.values);
|
|
18623
18614
|
return h2((t4) => {
|
|
18624
|
-
const r3 =
|
|
18615
|
+
const r3 = W2._rangeToCoords(t4);
|
|
18625
18616
|
let s3;
|
|
18626
18617
|
o2 === e.Direction.Down || o2 === e.Direction.Right ? s3 = { rowIndex: r3.rowEnd, colIndex: r3.colEnd } : o2 === e.Direction.Left ? s3 = { rowIndex: r3.rowEnd, colIndex: r3.colStart } : o2 === e.Direction.Up && (s3 = { rowIndex: r3.rowStart, colIndex: r3.colEnd });
|
|
18627
|
-
const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(
|
|
18618
|
+
const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(N2 ? a3 - I2 : I2 - a3 + x2 - 1) };
|
|
18628
18619
|
let c2 = null;
|
|
18629
18620
|
return c2 = d2 ? this.createTemporaryCell(l3, s3) : this.createTemporaryCell(null, s3).createTemporaryCell(l3), c2;
|
|
18630
18621
|
}), false;
|
|
18631
18622
|
}
|
|
18632
|
-
const
|
|
18623
|
+
const H2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), V2 = O2.length;
|
|
18633
18624
|
O2.sort((t3, e2) => t3.oppositeIndex - e2.oppositeIndex);
|
|
18634
18625
|
for (let t3 = 0; t3 < V2; t3++) {
|
|
18635
|
-
const e2 = t3, n3 =
|
|
18626
|
+
const e2 = t3, n3 = P2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = N2 ? x2 : x2 + k2 - 1, s3 = this.isDate1904();
|
|
18636
18627
|
for (let t4 = 0; t4 < k2; t4++) {
|
|
18637
|
-
let e3 = n3(o3 + (
|
|
18628
|
+
let e3 = n3(o3 + (N2 ? t4 : -t4));
|
|
18638
18629
|
qr(e3) && (e3 = eo(e3, s3));
|
|
18639
|
-
const a3 =
|
|
18640
|
-
i2 ?
|
|
18630
|
+
const a3 = T2 + t4;
|
|
18631
|
+
i2 ? H2.pushAt(a3, r3, e3) : H2.pushAt(r3, a3, e3);
|
|
18641
18632
|
}
|
|
18642
18633
|
}
|
|
18643
|
-
this._clear([p2], r2?.contentsOnly ? Xh.Content.Formats : void 0),
|
|
18634
|
+
this._clear([p2], r2?.contentsOnly ? Xh.Content.Formats : void 0), H2.apply();
|
|
18644
18635
|
const $2 = this._getMerges([_2]), j2 = c.unionRangesArrays($2);
|
|
18645
|
-
if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(
|
|
18636
|
+
if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Wh);
|
|
18646
18637
|
if ($2.length > 0) {
|
|
18647
18638
|
const n3 = [], r3 = s2 / E2;
|
|
18648
18639
|
if (i2) {
|
|
@@ -18669,7 +18660,7 @@ class K_ {
|
|
|
18669
18660
|
const G2 = this._getState(), U2 = {}, J2 = {};
|
|
18670
18661
|
J2.directStyleSpatial = G2.directStyleSpatial, J2.continuousFillSpatial = G2.continuousFillSpatial;
|
|
18671
18662
|
let q2 = t2, K2 = p2;
|
|
18672
|
-
if (!
|
|
18663
|
+
if (!N2) {
|
|
18673
18664
|
let e2 = (i2 ? _2.rowEnd + 1 - _2.rowStart : _2.colEnd + 1 - _2.colStart) % x2;
|
|
18674
18665
|
const n3 = i2 ? "rowStart" : "colStart", r3 = i2 ? "rowEnd" : "colEnd";
|
|
18675
18666
|
0 !== e2 && (K2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, q2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
|
|
@@ -18680,7 +18671,7 @@ class K_ {
|
|
|
18680
18671
|
for (let t4 = 0; t4 < s3; t4++) r3.remove(o3[t4]);
|
|
18681
18672
|
r3.load(n3.inserts), U2[e2] = r3;
|
|
18682
18673
|
}
|
|
18683
|
-
if (
|
|
18674
|
+
if (N2) {
|
|
18684
18675
|
const e2 = this.getTables().getItems({ address: { rowIndex: t2.rowEnd, colIndex: t2.colEnd } });
|
|
18685
18676
|
if (1 === e2.length) {
|
|
18686
18677
|
const t3 = e2[0], n3 = t3.getRange().getCoords();
|
|
@@ -18962,7 +18953,7 @@ class K_ {
|
|
|
18962
18953
|
const d2 = this._getMerges(t2);
|
|
18963
18954
|
if (Xl(t2) || d2.length > 0) {
|
|
18964
18955
|
const e2 = c.unionRangesArrays(d2), n3 = c.unionRangesArrays(t2);
|
|
18965
|
-
if (!(!e2 && !n3 || e2 && n3 && c.isRangeWithinRange(e2, n3))) throw console.warn(
|
|
18956
|
+
if (!(!e2 && !n3 || e2 && n3 && c.isRangeWithinRange(e2, n3))) throw console.warn(zh, t2), new Error(zh);
|
|
18966
18957
|
this._unmerge(d2);
|
|
18967
18958
|
}
|
|
18968
18959
|
const u2 = this._createIncrementalUpdater({ orientation: e.Orientation.Column }), g2 = [], m2 = [];
|
|
@@ -19063,7 +19054,7 @@ class K_ {
|
|
|
19063
19054
|
this._ownStyles && (t2.styles = this._styles), this._ownStrings && (t2.strings = this._strings), this._ownResources && (t2.resources = this._resources), this._ownNames && (t2.names = this._names), this._ownsCalculation && (t2.calculation = this._calculation), t2.transactions = new k({ transient: true });
|
|
19064
19055
|
const e2 = new K_(t2), n2 = this._transactions.getState(this);
|
|
19065
19056
|
e2._updateState(n2);
|
|
19066
|
-
const r2 = new
|
|
19057
|
+
const r2 = new N_({ sheet: this, json: this.getView().toJSON() });
|
|
19067
19058
|
return r2.selectMovables(this.getView().getMovableSelection()), e2.setView(r2), e2;
|
|
19068
19059
|
}
|
|
19069
19060
|
_getSnapshot(t2, e2) {
|
|
@@ -19263,16 +19254,16 @@ class K_ {
|
|
|
19263
19254
|
}
|
|
19264
19255
|
s3 && (_3 = true), a2.singleMerge && (g2 = false, f2 = false);
|
|
19265
19256
|
const b3 = h2.colStart - d2.colStart, R2 = h2.rowStart - d2.rowStart, A2 = i2.adjustCells;
|
|
19266
|
-
let M2 = { ...
|
|
19257
|
+
let M2 = { ...Nh };
|
|
19267
19258
|
if (delete M2[Rh.Type.Style], !g2) {
|
|
19268
19259
|
const t3 = this.getProtection().isLocked();
|
|
19269
19260
|
M2 = {}, t3 && (M2[Rh.Type.Unlock] = false);
|
|
19270
19261
|
}
|
|
19271
|
-
const
|
|
19272
|
-
let
|
|
19262
|
+
const N2 = e.Orientation.Column;
|
|
19263
|
+
let T2;
|
|
19273
19264
|
if (m2) {
|
|
19274
|
-
|
|
19275
|
-
const t3 = { orientation:
|
|
19265
|
+
T2 = p2.startIncrementalUpdates({ orientation: i2.transpose ? e.Orientation.Row : e.Orientation.Column });
|
|
19266
|
+
const t3 = { orientation: N2, includeRangeTypes: M2, bounds: d2 }, n3 = new am(this._strings, t3, this._cellOptions), r4 = (t4, e2, r5) => {
|
|
19276
19267
|
const o3 = t4[0], a3 = n3.setState(t4), l4 = n3.context, c2 = l4.getCell(), u4 = c2.isTopLeft();
|
|
19277
19268
|
let p3 = R2, w3 = b3;
|
|
19278
19269
|
if (s3) {
|
|
@@ -19291,7 +19282,7 @@ class K_ {
|
|
|
19291
19282
|
const t5 = A2(a3, l4, { rowIndex: p3, colIndex: w3 }, i2);
|
|
19292
19283
|
void 0 !== t5 && (C3 = t5, y3 = true);
|
|
19293
19284
|
}
|
|
19294
|
-
if (y3 && (
|
|
19285
|
+
if (y3 && (T2.pushAt(p3, w3, C3), g2)) {
|
|
19295
19286
|
const t5 = c2.getSpans();
|
|
19296
19287
|
(t5.width > 1 || t5.height > 1) && u4 && S2.push({ colStart: w3, rowStart: p3, colEnd: w3 + (i2.transpose ? t5.height : t5.width) - 1, rowEnd: p3 + (i2.transpose ? t5.width : t5.height) - 1 });
|
|
19297
19288
|
}
|
|
@@ -19305,7 +19296,7 @@ class K_ {
|
|
|
19305
19296
|
} };
|
|
19306
19297
|
if (!a2.singleMerge && !c.isEqualRanges(v2, d2)) {
|
|
19307
19298
|
const t4 = v2.colEnd - v2.colStart + 1, e2 = v2.rowEnd - v2.rowStart + 1;
|
|
19308
|
-
l3 = new ml({ delegate: l3, bounds: d2, orientation:
|
|
19299
|
+
l3 = new ml({ delegate: l3, bounds: d2, orientation: N2, dims: { major: i2.transpose ? e2 : t4, minor: i2.transpose ? t4 : e2 } });
|
|
19309
19300
|
}
|
|
19310
19301
|
let u3 = l3.next();
|
|
19311
19302
|
for (; !u3.done; ) {
|
|
@@ -19315,13 +19306,13 @@ class K_ {
|
|
|
19315
19306
|
}
|
|
19316
19307
|
const k2 = n2._getState(), F2 = {}, O2 = { transpose: s3 ?? false };
|
|
19317
19308
|
g2 && (F2.directStyleSpatial = k2.directStyleSpatial, F2.continuousFillSpatial = k2.continuousFillSpatial, F2.mergeSpatial = k2.mergeSpatial), u2 && (t2._clear([d2], void 0, void 0, false, true), E2.push(d2), F2.rangesListenerSpatial2 = k2.rangesListenerSpatial2);
|
|
19318
|
-
const D2 = l2, B2 = D2._getState(), L2 = Object.keys(F2),
|
|
19319
|
-
for (let t3 = 0; t3 <
|
|
19309
|
+
const D2 = l2, B2 = D2._getState(), L2 = Object.keys(F2), z2 = L2.length;
|
|
19310
|
+
for (let t3 = 0; t3 < z2; t3++) {
|
|
19320
19311
|
const e2 = L2[t3], n3 = F2[e2].createCopiedEntries(d2, v2, O2), r4 = B2[e2].clone(), o2 = n3.removes, s4 = o2.length;
|
|
19321
19312
|
for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
|
|
19322
19313
|
r4.load(n3.inserts), B2[e2] = r4;
|
|
19323
19314
|
}
|
|
19324
|
-
D2._updateState(B2), E2.push(v2), C2.push(v2), w2 && w2.length > 0 && D2._colHeaders.updateHeaderPairs(w2), y2 && y2.length > 0 && D2._rowHeaders.updateHeaderPairs(y2),
|
|
19315
|
+
D2._updateState(B2), E2.push(v2), C2.push(v2), w2 && w2.length > 0 && D2._colHeaders.updateHeaderPairs(w2), y2 && y2.length > 0 && D2._rowHeaders.updateHeaderPairs(y2), T2?.apply(), S2.length > 0 && l2.getRanges(S2).merge(), I2.commit({ viewBefore: x2, viewAfter: (t3) => ({ ...t3, view: l2.getView(), selection: mm(C2), ranges: E2 }) });
|
|
19325
19316
|
} catch (t3) {
|
|
19326
19317
|
throw console.warn(t3), I2.rollback(), new Error(((t4) => `Unable to paste: ${t4}`)(t3.message), { cause: t3 });
|
|
19327
19318
|
}
|
|
@@ -19421,7 +19412,7 @@ class K_ {
|
|
|
19421
19412
|
_insertCells(t2, n2, r2, o2 = void 0) {
|
|
19422
19413
|
const s2 = this;
|
|
19423
19414
|
o2 = o2 ?? ((t3, e2) => {
|
|
19424
|
-
s2._validateCoords(t3, e2 ??
|
|
19415
|
+
s2._validateCoords(t3, e2 ?? Ph);
|
|
19425
19416
|
});
|
|
19426
19417
|
const i2 = r2?.description ?? "Insert Cells", a2 = (n2 ?? this._getDefaultShiftOrientation(t2[0])) === e.Orientation.Column;
|
|
19427
19418
|
if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t2, i2), Xl(t2)) throw new Error("We can't insert cells with overlapping selections.");
|
|
@@ -19443,20 +19434,20 @@ class K_ {
|
|
|
19443
19434
|
}
|
|
19444
19435
|
n3 = n3.clone(), n3.shift(e2, f2), this._updateState({ cellValuesGrid: n3 });
|
|
19445
19436
|
}
|
|
19446
|
-
const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd,
|
|
19437
|
+
const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd, N3 = (t4, e3, n4, r4) => {
|
|
19447
19438
|
let o3 = null;
|
|
19448
19439
|
n4 > 1 && (o3 = t4.at(n4 - 1));
|
|
19449
19440
|
const s4 = r4 - n4 + 1;
|
|
19450
19441
|
e3?.(n4, s4), o3 && t4.updateHeaderPairs([{ address: { min: n4, max: r4 }, update: o3 }]);
|
|
19451
19442
|
};
|
|
19452
|
-
g3 &&
|
|
19443
|
+
g3 && N3(this._rowHeaders, this._rowHeadersShiftCallback, e2.rowStart, e2.rowEnd), M3 && N3(this._colHeaders, this._colHeadersShiftCallback, e2.colStart, e2.colEnd), s3 = s3.shift({ range: e2, direction: f2, cloneIfUpdate: s3 === m2.contentfulSpatial, coordValidator: o2 }), i3 = i3.shift({ range: e2, direction: f2, cloneIfUpdate: i3 === m2.unlockSpatial, coordValidator: o2 }), d2 = d2.shift({ range: e2, direction: f2, cloneIfUpdate: d2 === m2.mergeSpatial, coordValidator: o2 }), p2 = p2.shift({ range: e2, direction: f2, cloneIfUpdate: p2 === m2.directStyleSpatial, coordValidator: o2 }), _2 = _2.shift({ range: e2, direction: f2, cloneIfUpdate: _2 === m2.continuousFillSpatial, coordValidator: o2 }), S2 = S2.shift({ range: e2, direction: f2, cloneIfUpdate: S2 === m2.conditionalSpatial, coordValidator: o2 }), w2 = w2.shift({ range: e2, direction: f2, cloneIfUpdate: w2 === m2.hyperlinkSpatial, coordValidator: o2 }), y2 = y2.shift({ range: e2, direction: f2, cloneIfUpdate: y2 === m2.commentsSpatial, coordValidator: o2 }), E2 = E2.shift({ range: e2, direction: f2, cloneIfUpdate: E2 === m2.movableSpatial, coordValidator: o2 }), C2 = C2.shift({ range: e2, direction: f2, cloneIfUpdate: C2 === m2.tableSpatial, coordValidator: o2 }), b2 = b2.shift({ range: e2, direction: f2, cloneIfUpdate: b2 === m2.calcGraph }), x2 = x2.shift({ range: e2, direction: f2, cloneIfUpdate: x2 === m2.rangeListenerSpatial, onShift: (t4) => {
|
|
19453
19444
|
I2 === m2.rangesListenerMap && (I2 = new Map(I2)), this._processListenerShift(I2, R2, m2.rangesListenerMap, t4);
|
|
19454
19445
|
} }), v2 = v2.shift({ range: e2, direction: f2, cloneIfUpdate: v2 === m2.rangesListenerSpatial2, coordValidator: o2 });
|
|
19455
19446
|
}
|
|
19456
|
-
let
|
|
19457
|
-
b2 !== m2.calcGraph && (
|
|
19447
|
+
let N2 = m2.formulaSpatial, T2 = m2.spillSpatial, k2 = m2.pendingSpatial;
|
|
19448
|
+
b2 !== m2.calcGraph && (N2 = N2.clone(), T2 = T2.clone(), k2 = k2.clone()), this._updateState({ contentfulSpatial: s3, unlockSpatial: i3, mergeSpatial: d2, directStyleSpatial: p2, continuousFillSpatial: _2, conditionalSpatial: S2, hyperlinkSpatial: w2, commentsSpatial: y2, movableSpatial: E2, tableSpatial: C2, calcGraph: b2, formulaSpatial: N2, spillSpatial: T2, pendingSpatial: k2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(g2, u2, r2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
|
|
19458
19449
|
} catch (t3) {
|
|
19459
|
-
if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ??
|
|
19450
|
+
if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Ph);
|
|
19460
19451
|
throw t3;
|
|
19461
19452
|
}
|
|
19462
19453
|
}
|
|
@@ -19480,7 +19471,7 @@ class K_ {
|
|
|
19480
19471
|
}
|
|
19481
19472
|
this._updateState({ contentfulSpatial: o3, unlockSpatial: d2, mergeSpatial: s3, directStyleSpatial: m2, continuousFillSpatial: f2, conditionalSpatial: p2, hyperlinkSpatial: _2, commentsSpatial: S2, movableSpatial: w2, movableMapModel: y2, tableSpatial: E2, tableMapModel: C2, calcGraph: b2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(u2, h2, r2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
|
|
19482
19473
|
} catch (t3) {
|
|
19483
|
-
if (u2.rollback(), t3 instanceof d) throw new Error(t3.message ??
|
|
19474
|
+
if (u2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Ph);
|
|
19484
19475
|
throw t3;
|
|
19485
19476
|
}
|
|
19486
19477
|
}
|
|
@@ -19489,7 +19480,7 @@ class K_ {
|
|
|
19489
19480
|
r2 = { expandOnly: false, skipCustomSize: false, minContent: false, ...r2 };
|
|
19490
19481
|
const o2 = "Autofit";
|
|
19491
19482
|
let s2;
|
|
19492
|
-
const i2 =
|
|
19483
|
+
const i2 = Hg(n2, this._entireCoords, true), a2 = Wg(n2, this._entireCoords, true);
|
|
19493
19484
|
s2 = !i2 && a2 ? `${o2} ${w_}` : !a2 && i2 ? `${o2} ${S_}` : a2 && i2 ? `${o2} All` : `${o2}`;
|
|
19494
19485
|
let l2 = r2.orientations !== e.Orientations.Row;
|
|
19495
19486
|
this._colHeaders.isProtected() && (l2 = false);
|
|
@@ -19506,19 +19497,19 @@ class K_ {
|
|
|
19506
19497
|
let o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, S2 = false, w2 = false, y2 = false, E2 = Number.MAX_SAFE_INTEGER, C2 = Number.MIN_SAFE_INTEGER;
|
|
19507
19498
|
const b2 = this._styles.getNormal(), v2 = this._cellOptions, x2 = r2.orientations === e.Orientations.Row, I2 = /* @__PURE__ */ new Map(), R2 = el(n2, 1);
|
|
19508
19499
|
R2.sort(c.createRangeComparator(e.Orientation.Column));
|
|
19509
|
-
const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize },
|
|
19510
|
-
if (0 !== t2 && !(e2 > 1)) return t2 = Math.max(t2,
|
|
19500
|
+
const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, N2 = qo.getDeviceScale(), T2 = this._defaultRowHeight() * N2, k2 = this._defaultColWidth(), F2 = (t2, e2 = 1) => {
|
|
19501
|
+
if (0 !== t2 && !(e2 > 1)) return t2 = Math.max(t2, T2), (e3) => u2 ? t2 : Math.max(e3, t2 ?? T2);
|
|
19511
19502
|
}, O2 = (t2, e2 = 1) => {
|
|
19512
19503
|
if (0 !== t2 && !(e2 > 1)) return (e3) => d2 ? t2 : Math.max(e3, t2 ?? k2);
|
|
19513
19504
|
};
|
|
19514
19505
|
for (let n3 = 0; n3 < A2; n3++) {
|
|
19515
19506
|
const r3 = [];
|
|
19516
|
-
let f3 = -1, p3 = false, A3 = b2,
|
|
19507
|
+
let f3 = -1, p3 = false, A3 = b2, N3 = 1, T3 = 1, k3 = 1;
|
|
19517
19508
|
const D2 = R2[n3];
|
|
19518
|
-
let B2 = D2.colStart, L2 = D2.rowStart,
|
|
19519
|
-
const
|
|
19520
|
-
(u2 || d2) &&
|
|
19521
|
-
const
|
|
19509
|
+
let B2 = D2.colStart, L2 = D2.rowStart, z2 = D2.colEnd, P2 = D2.rowEnd;
|
|
19510
|
+
const W2 = this._getUsedCoords();
|
|
19511
|
+
(u2 || d2) && W2 && (B2 = u2 ? W2.colStart : D2.colStart, L2 = d2 ? W2.rowStart : D2.rowStart, z2 = u2 ? W2.colEnd : D2.colEnd, P2 = d2 ? W2.rowEnd : D2.rowEnd);
|
|
19512
|
+
const H2 = { includeRangeTypes: { [Rh.Type.Style]: false, [Rh.Type.Merge]: false, [Rh.Type.Continuous]: false, [Rh.Type.Contentful]: false }, excludeHidden: false, bounds: { colStart: B2, rowStart: L2, colEnd: z2, rowEnd: P2 }, orientation: e.Orientation.Column }, V2 = h2 ? [] : void 0, $2 = l2 ? [] : void 0, j2 = (t2, e2, n4) => {
|
|
19522
19513
|
if (t2 > e2) return null;
|
|
19523
19514
|
const r4 = [];
|
|
19524
19515
|
let o4 = t2;
|
|
@@ -19537,29 +19528,29 @@ class K_ {
|
|
|
19537
19528
|
r4.push(t3);
|
|
19538
19529
|
}
|
|
19539
19530
|
return r4;
|
|
19540
|
-
}, G2 = this._rangeStateIterator(
|
|
19531
|
+
}, G2 = this._rangeStateIterator(H2);
|
|
19541
19532
|
let U2 = G2.next();
|
|
19542
19533
|
for (; !U2.done; ) {
|
|
19543
19534
|
const t2 = U2.value, e2 = t2.intersection, n4 = t2.start, r4 = t2.end;
|
|
19544
19535
|
Q_.colStart = n4.colIndex, Q_.rowStart = n4.rowIndex, Q_.colEnd = r4.colIndex, Q_.rowEnd = r4.rowIndex;
|
|
19545
|
-
const o4 = c.intersectRanges(Q_, D2, Y_), s4 =
|
|
19536
|
+
const o4 = c.intersectRanges(Q_, D2, Y_), s4 = Ng(0, o4, e2, v2).getBestFit();
|
|
19546
19537
|
if (h2) {
|
|
19547
|
-
const t3 = Math.max(n4.rowIndex, L2), e3 = Math.min(r4.rowIndex,
|
|
19538
|
+
const t3 = Math.max(n4.rowIndex, L2), e3 = Math.min(r4.rowIndex, P2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: F2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
|
|
19548
19539
|
V2.push(i4);
|
|
19549
19540
|
}
|
|
19550
19541
|
if (l2) {
|
|
19551
|
-
const t3 = Math.max(n4.colIndex, B2), e3 = Math.min(r4.colIndex,
|
|
19542
|
+
const t3 = Math.max(n4.colIndex, B2), e3 = Math.min(r4.colIndex, z2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
|
|
19552
19543
|
$2.push(i4);
|
|
19553
19544
|
}
|
|
19554
19545
|
U2 = G2.next();
|
|
19555
19546
|
}
|
|
19556
|
-
const J2 = this._cellStateIterator({ ...
|
|
19547
|
+
const J2 = this._cellStateIterator({ ...H2, includeRangeTypes: { [Rh.Type.Merge]: false, [Rh.Type.Table]: false, [Rh.Type.Style]: false, [Rh.Type.Continuous]: false }, ignoreEmptyIntersections: true });
|
|
19557
19548
|
let q2, K2, X2, Y2 = J2.next(), Q2 = 1, Z2 = 1;
|
|
19558
19549
|
for (; !Y2.done; ) {
|
|
19559
19550
|
const e2 = Y2.value, n4 = e2[0], l3 = e2[2];
|
|
19560
19551
|
let h3 = b2;
|
|
19561
19552
|
const d3 = l3?.directStyle ?? l3?.table.getStyle() ?? null;
|
|
19562
|
-
d3 === q2 ? h3 = K2 : (h3 = d3 ?
|
|
19553
|
+
d3 === q2 ? h3 = K2 : (h3 = d3 ? Ng(0, c.cellToRange(n4, Z_), l3, v2) : b2, K2 = h3);
|
|
19563
19554
|
let u3 = 1, g3 = 1;
|
|
19564
19555
|
const m3 = l3?.merge ?? null;
|
|
19565
19556
|
if (m3 === X2) u3 = Q2, g3 = Z2;
|
|
@@ -19575,7 +19566,7 @@ class K_ {
|
|
|
19575
19566
|
k3 = O3.getCoords().colEnd - x3 + 1;
|
|
19576
19567
|
}
|
|
19577
19568
|
let B3 = false, L3 = false;
|
|
19578
|
-
if (q2 === d3 && u3 ===
|
|
19569
|
+
if (q2 === d3 && u3 === N3 && g3 === T3 && M3 !== t.String && M3 !== t.Error && F3 === p3 || (B3 = true, M3 === t.RichData && (L3 = true), L3 && (B3 = false)), q2 = d3, X2 = m3, (f3 !== x3 || B3) && (-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), measureWidth: -1, measureHeight: -1, colSpan: k3, isFit: p3 }), f3 = x3, A3 = h3, p3 = F3, N3 = u3, T3 = g3, o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, w2 = false, S2 = false, y2 = false, E2 = I3), C2 = I3, !L3) if (null === R3) y2 = true;
|
|
19579
19570
|
else switch (M3) {
|
|
19580
19571
|
case t.Number:
|
|
19581
19572
|
0 === R3 && (i3 = true), o3 = Math.min(o3, R3), s3 = Math.max(s3, R3);
|
|
@@ -19591,36 +19582,36 @@ class K_ {
|
|
|
19591
19582
|
}
|
|
19592
19583
|
Y2 = J2.next();
|
|
19593
19584
|
}
|
|
19594
|
-
-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth:
|
|
19585
|
+
-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: N3, spanHeight: T3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), colSpan: k3, measureWidth: -1, measureHeight: -1, isFit: p3 });
|
|
19595
19586
|
let tt2 = -1, et2 = -1;
|
|
19596
19587
|
const nt2 = r3.length;
|
|
19597
19588
|
for (let e2 = 0; e2 < nt2; e2++) {
|
|
19598
19589
|
const n4 = r3[e2], o4 = x2 || !n4.isFit, s4 = n4.maxVal, i4 = n4.style, a4 = n4.colSpan;
|
|
19599
19590
|
let l3 = n4.colWidth;
|
|
19600
19591
|
if (a4 > 1 && (l3 = this._colHeaders.getSpanSize(f3, f3 + a4)), tt2 = 0, et2 = 0, s4 !== Number.MIN_SAFE_INTEGER) {
|
|
19601
|
-
const e3 =
|
|
19592
|
+
const e3 = Tg(t.Number, i4, s4, v2, l3, g2, o4);
|
|
19602
19593
|
tt2 = e3.width, et2 = e3.height;
|
|
19603
19594
|
const r4 = n4.minVal;
|
|
19604
19595
|
if (r4 * s4 < 0) {
|
|
19605
|
-
const e4 =
|
|
19596
|
+
const e4 = Tg(t.Number, i4, r4, v2, l3, g2, o4);
|
|
19606
19597
|
tt2 = Math.max(tt2, e4.width), et2 = Math.max(et2, e4.height);
|
|
19607
19598
|
}
|
|
19608
19599
|
if (n4.hasZero && 0 !== r4 && 0 !== s4) {
|
|
19609
|
-
const e4 =
|
|
19600
|
+
const e4 = Tg(t.Number, i4, 0, v2, l3, g2, o4);
|
|
19610
19601
|
tt2 = Math.max(tt2, e4.width), et2 = Math.max(et2, e4.height);
|
|
19611
19602
|
}
|
|
19612
19603
|
}
|
|
19613
19604
|
const c2 = n4.text;
|
|
19614
19605
|
if (c2.length > 0) {
|
|
19615
|
-
const e3 =
|
|
19606
|
+
const e3 = Tg(t.String, i4, c2, v2, l3, g2, o4, void 0, I2);
|
|
19616
19607
|
tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
|
|
19617
19608
|
}
|
|
19618
19609
|
if (n4.hasTrue || n4.hasFalse) {
|
|
19619
|
-
const e3 =
|
|
19610
|
+
const e3 = Tg(t.Boolean, i4, !n4.hasFalse, v2, l3, g2, o4);
|
|
19620
19611
|
tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
|
|
19621
19612
|
}
|
|
19622
19613
|
if (n4.hasEmpty) {
|
|
19623
|
-
const e3 =
|
|
19614
|
+
const e3 = Tg(t.Boolean, i4, null, v2, l3, g2, o4);
|
|
19624
19615
|
tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
|
|
19625
19616
|
}
|
|
19626
19617
|
n4.measureWidth = tt2, n4.measureHeight = et2;
|
|
@@ -20461,7 +20452,7 @@ class K_ {
|
|
|
20461
20452
|
const s2 = [t2];
|
|
20462
20453
|
for (let e3 = 0; e3 < t2; e3++) s2.push(e3);
|
|
20463
20454
|
e2 && console.profileEnd("nativeArray"), window.noLoseArray = s2, o2 = performance.now(), console.log(`NativeArray: ${t2} records in ${o2 - r2} milliseconds`), r2 = performance.now(), e2 && console.profile("mixedType");
|
|
20464
|
-
const i2 =
|
|
20455
|
+
const i2 = Tl.fromArray(n2);
|
|
20465
20456
|
e2 && console.profileEnd("mixedType"), window.noLoseList = i2, o2 = performance.now(), console.log(`MixedTypedList: ${t2} records in ${o2 - r2} milliseconds`);
|
|
20466
20457
|
}
|
|
20467
20458
|
_validateOrRemoveOverlaps(t2, e2, n2 = null, r2 = false) {
|
|
@@ -20677,7 +20668,7 @@ class K_ {
|
|
|
20677
20668
|
}
|
|
20678
20669
|
close() {
|
|
20679
20670
|
if (this._closed) return;
|
|
20680
|
-
this._protectionRemoveListener?.(), this._protection = new
|
|
20671
|
+
this._protectionRemoveListener?.(), this._protection = new z_(void 0, this._options.readonly);
|
|
20681
20672
|
const t2 = this._getState().tableMapModel.keys();
|
|
20682
20673
|
for (const e2 of t2) e2.close();
|
|
20683
20674
|
this._searchMovables().forEach((t3) => {
|
|
@@ -20766,7 +20757,7 @@ class K_ {
|
|
|
20766
20757
|
const s2 = cS;
|
|
20767
20758
|
this._collectRanges(n2, s2);
|
|
20768
20759
|
const i2 = rm(s2);
|
|
20769
|
-
return
|
|
20760
|
+
return Ng(0, n2, i2, o2);
|
|
20770
20761
|
}
|
|
20771
20762
|
_initState() {
|
|
20772
20763
|
const t2 = this, n2 = () => {
|
|
@@ -20883,7 +20874,7 @@ class K_ {
|
|
|
20883
20874
|
}), a2 = o3, t2._emitter.notify("onMovableSelectionChange");
|
|
20884
20875
|
}, onAnyChange() {
|
|
20885
20876
|
t2._defaultColWidthCache = 0, t2._defaultRowHeightCache = 0, t2._defaultFontBoundsCache = null, t2._emitter.notify("onLayoutChange"), t2._emitter.notify("onViewChange");
|
|
20886
|
-
} }, c2 = new
|
|
20877
|
+
} }, c2 = new N_({ sheet: this });
|
|
20887
20878
|
this._view = c2, this._clearState(), this._viewRemoveListener = c2.addListeners(l2, { transactional: false }), this._viewListener = l2, this._colHeadersRemoveListener?.();
|
|
20888
20879
|
const h2 = () => {
|
|
20889
20880
|
const t3 = this.getView().isShowFormulas() ? 2 : 1;
|
|
@@ -20926,7 +20917,7 @@ class K_ {
|
|
|
20926
20917
|
} }, this._emptyCell = new Og(this._cellOptions);
|
|
20927
20918
|
}
|
|
20928
20919
|
_clearState() {
|
|
20929
|
-
this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new
|
|
20920
|
+
this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new z_(void 0, this._options.readonly), this._protectionRemoveListener = this._protection.addListeners({ onChange() {
|
|
20930
20921
|
if (t2._closed) throw new Error(Vh);
|
|
20931
20922
|
t2._getState().movableMapModel.forEach((t3) => {
|
|
20932
20923
|
t3.value.processProtectionCallback?.();
|
|
@@ -21246,7 +21237,7 @@ class K_ {
|
|
|
21246
21237
|
this._initializing = true, this._emitter.notify("onBeforeLoad", { params: n2 }), this._clearState();
|
|
21247
21238
|
const r2 = this._beginCommit({ description: "Load Sheet", viewAfter: { initial: true, skipProtectionCheck: true } }), o2 = n2 || {}, s2 = this._strings, i2 = s2.beginPersist(), a2 = this._resources.beginPersist(), l2 = this._styles.beginPersist();
|
|
21248
21239
|
try {
|
|
21249
|
-
this._ownStrings && i2.fromJSON(o2.strings), this._ownResources && a2.fromJSON(o2.resources), this._ownStyles && l2.fromJSON(o2.styles), this._colHeaders.fromJSON({ headers: o2.cols, defaultSize: o2.defaultColSize }), this._rowHeaders.fromJSON({ headers: o2.rows, defaultSize: o2.defaultRowSize }), this.setView(new
|
|
21240
|
+
this._ownStrings && i2.fromJSON(o2.strings), this._ownResources && a2.fromJSON(o2.resources), this._ownStyles && l2.fromJSON(o2.styles), this._colHeaders.fromJSON({ headers: o2.cols, defaultSize: o2.defaultColSize }), this._rowHeaders.fromJSON({ headers: o2.rows, defaultSize: o2.defaultRowSize }), this.setView(new N_({ sheet: this, json: o2.view })), this._rangeSelection.updateCoords(this._view.getRangeSelection()), o2.tabColor && (this._tabColor = this._styles.parseColor(o2.tabColor));
|
|
21250
21241
|
let h2 = this._getState();
|
|
21251
21242
|
const d2 = h2.cellValuesGrid, u2 = h2.contentfulSpatial, g2 = o2.data, m2 = g2?.length ?? 0, f2 = hm, p2 = [];
|
|
21252
21243
|
if (m2 > 0) {
|
|
@@ -21356,14 +21347,14 @@ class K_ {
|
|
|
21356
21347
|
}
|
|
21357
21348
|
R2.load(t2);
|
|
21358
21349
|
}
|
|
21359
|
-
const A2 = h2.tableMapModel, M2 = h2.tableMapName,
|
|
21360
|
-
if (
|
|
21361
|
-
const t2 = [], e2 =
|
|
21350
|
+
const A2 = h2.tableMapModel, M2 = h2.tableMapName, N2 = h2.tableSpatial, T2 = o2.tables;
|
|
21351
|
+
if (T2) {
|
|
21352
|
+
const t2 = [], e2 = T2.length;
|
|
21362
21353
|
for (let n3 = 0; n3 < e2; n3++) {
|
|
21363
|
-
const e3 =
|
|
21354
|
+
const e3 = T2[n3], r3 = this._createTableEntry(e3), o3 = r3.value.model;
|
|
21364
21355
|
A2.set(o3, r3), M2.set(r3.value.currentName, o3), t2.push(r3);
|
|
21365
21356
|
}
|
|
21366
|
-
|
|
21357
|
+
N2.load(t2);
|
|
21367
21358
|
}
|
|
21368
21359
|
const k2 = h2.conditionalSpatial, F2 = h2.conditionalModels, O2 = o2.conditionals;
|
|
21369
21360
|
if (O2) {
|
|
@@ -21374,7 +21365,7 @@ class K_ {
|
|
|
21374
21365
|
}
|
|
21375
21366
|
}
|
|
21376
21367
|
const D2 = h2.calcGraph, B2 = D2.fromJSON({ formulas: o2.formulas, data: p2, dynamic: o2.dynamicArray, volatile: o2.volatile });
|
|
21377
|
-
h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial:
|
|
21368
|
+
h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial: N2, tableMapModel: A2, tableMapName: M2, conditionalSpatial: k2, conditionalModels: F2, calcGraph: D2 });
|
|
21378
21369
|
const L2 = this._getUsedCoords();
|
|
21379
21370
|
L2 && this._autoFit([L2], { orientations: e.Orientations.Row, skipCustomSize: true }), r2.commit(), B2 && this._realizeCalcedValues(B2), o2.protection && this._protection.fromJSON(o2.protection), this._emitter.notify("onLoad");
|
|
21380
21371
|
} finally {
|
|
@@ -21860,7 +21851,7 @@ class bS extends B_ {
|
|
|
21860
21851
|
return super._toJSON(t2);
|
|
21861
21852
|
}
|
|
21862
21853
|
}
|
|
21863
|
-
const vS = (t2) => `Invalid SheetKey: ${t2}`, xS = "A workbook must contain at least one visible worksheet.", IS = "Internal error no visible sheetRefs", RS = "Workbook has been closed. No further operations are allowed.", AS = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", MS = "A sheet name",
|
|
21854
|
+
const vS = (t2) => `Invalid SheetKey: ${t2}`, xS = "A workbook must contain at least one visible worksheet.", IS = "Internal error no visible sheetRefs", RS = "Workbook has been closed. No further operations are allowed.", AS = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", MS = "A sheet name", NS = `${MS} can not be blank.`, TS = `${MS} can not be longer than 31 characters.`, kS = `${MS} can not begin or end with a "'" (single quote).`;
|
|
21864
21855
|
class FS {
|
|
21865
21856
|
constructor(t2, e2) {
|
|
21866
21857
|
this._add = t2, this._get = e2;
|
|
@@ -21878,16 +21869,16 @@ class FS {
|
|
|
21878
21869
|
return this._get().length;
|
|
21879
21870
|
}
|
|
21880
21871
|
}
|
|
21881
|
-
const OS = new RegExp(/[\\/\\*?:[\]]+/), DS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), BS = (t2) => `Sheet${t2 + 1}`, LS = (t2, e2) => ({ ...Yg, getSheet: () => null, toString: () => jc(t2, e2) }),
|
|
21882
|
-
if (!t2) throw new Error(
|
|
21872
|
+
const OS = new RegExp(/[\\/\\*?:[\]]+/), DS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), BS = (t2) => `Sheet${t2 + 1}`, LS = (t2, e2) => ({ ...Yg, getSheet: () => null, toString: () => jc(t2, e2) }), zS = (t2, e2 = false) => {
|
|
21873
|
+
if (!t2) throw new Error(NS);
|
|
21883
21874
|
if (OS.test(t2)) {
|
|
21884
21875
|
if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : MS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
|
|
21885
21876
|
t2 = t2.replace(OS, "");
|
|
21886
21877
|
}
|
|
21887
|
-
if (0 === t2.length) throw new Error(
|
|
21878
|
+
if (0 === t2.length) throw new Error(NS);
|
|
21888
21879
|
const n2 = t2.length;
|
|
21889
21880
|
if (n2 > 31) {
|
|
21890
|
-
if (!e2) throw new Error(
|
|
21881
|
+
if (!e2) throw new Error(TS);
|
|
21891
21882
|
t2 = t2.substring(0, 31);
|
|
21892
21883
|
}
|
|
21893
21884
|
if ("'" === t2.charAt(0) || "'" === t2.charAt(n2 - 1)) {
|
|
@@ -21896,7 +21887,7 @@ const OS = new RegExp(/[\\/\\*?:[\]]+/), DS = new RegExp(/\(((\d+)(?!.*\d))\)$/,
|
|
|
21896
21887
|
}
|
|
21897
21888
|
return t2;
|
|
21898
21889
|
};
|
|
21899
|
-
class
|
|
21890
|
+
class PS extends P_ {
|
|
21900
21891
|
constructor(t2, e2, n2, r2) {
|
|
21901
21892
|
super(t2, e2, r2), this._workbook = n2;
|
|
21902
21893
|
}
|
|
@@ -21905,7 +21896,7 @@ class zS extends z_ {
|
|
|
21905
21896
|
}
|
|
21906
21897
|
_createRanges(t2, e2) {
|
|
21907
21898
|
let n2 = this._options;
|
|
21908
|
-
return e2 && (n2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new
|
|
21899
|
+
return e2 && (n2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new PS(t2, this._sheet, this._workbook, n2);
|
|
21909
21900
|
}
|
|
21910
21901
|
_createRange(t2, e2) {
|
|
21911
21902
|
const n2 = t2 ? { ...t2 } : null;
|
|
@@ -21914,7 +21905,7 @@ class zS extends z_ {
|
|
|
21914
21905
|
return delete n2?.sheetName, LS(n2, n2 ? { sheetName: Rc, ...t3.getEntireRange().getCoords() } : null);
|
|
21915
21906
|
}
|
|
21916
21907
|
let r2 = this._options;
|
|
21917
|
-
return e2 && (r2 = { ...this._options, getOptions: lm(this._options.getOptions, e2) }), new
|
|
21908
|
+
return e2 && (r2 = { ...this._options, getOptions: lm(this._options.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, r2);
|
|
21918
21909
|
}
|
|
21919
21910
|
async select(t2) {
|
|
21920
21911
|
const e2 = [];
|
|
@@ -21941,23 +21932,23 @@ class zS extends z_ {
|
|
|
21941
21932
|
}
|
|
21942
21933
|
toString() {
|
|
21943
21934
|
const t2 = this.getCoords(), e2 = this._sheet, n2 = e2.getEntireRange().getCoords(), r2 = { sheetName: e2.getName(), ...n2 };
|
|
21944
|
-
return Kc(t2, r2, jc,
|
|
21935
|
+
return Kc(t2, r2, jc, zc);
|
|
21945
21936
|
}
|
|
21946
21937
|
}
|
|
21947
|
-
class
|
|
21938
|
+
class WS extends W_ {
|
|
21948
21939
|
constructor(t2, e2, n2, r2) {
|
|
21949
21940
|
super(t2, e2, r2), this._workbook = n2;
|
|
21950
21941
|
}
|
|
21951
21942
|
_createRanges(t2, e2) {
|
|
21952
21943
|
let n2 = this._options;
|
|
21953
|
-
return e2 && (n2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new
|
|
21944
|
+
return e2 && (n2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new PS(t2, this._sheet, this._workbook, n2);
|
|
21954
21945
|
}
|
|
21955
21946
|
_createRange(t2, e2) {
|
|
21956
21947
|
const n2 = this._sheet;
|
|
21957
21948
|
if (!t2) return Qg(n2, n2._entireCoords);
|
|
21958
21949
|
if (n2._validateCoords(t2), n2._closed) return Qg(null, n2._entireCoords, t2);
|
|
21959
21950
|
let r2 = this._options;
|
|
21960
|
-
return e2 && (r2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new
|
|
21951
|
+
return e2 && (r2 = { ...this._options, getOptions: lm(this._options?.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, r2);
|
|
21961
21952
|
}
|
|
21962
21953
|
getSource() {
|
|
21963
21954
|
return this._workbook;
|
|
@@ -21976,7 +21967,7 @@ class HS extends H_ {
|
|
|
21976
21967
|
return super.addListener(n2, e2);
|
|
21977
21968
|
}
|
|
21978
21969
|
}
|
|
21979
|
-
class
|
|
21970
|
+
class HS {
|
|
21980
21971
|
constructor(t2) {
|
|
21981
21972
|
this._lastTransactionUUID = null, this._closed = false, this._initializing = true, this._emitter = null, this._names = null, this._calculation = null, this._isDate1904 = false;
|
|
21982
21973
|
const e2 = this, n2 = { ...t2 }, r2 = n2.json;
|
|
@@ -22161,11 +22152,11 @@ class WS {
|
|
|
22161
22152
|
}
|
|
22162
22153
|
_validateNewSheetName(t2, e2 = true) {
|
|
22163
22154
|
if (null == t2) return t2;
|
|
22164
|
-
if (
|
|
22155
|
+
if (zS(t2), e2 && this._getState().sheetsByLowerCaseName.has(t2.toLowerCase())) throw new Error("That name is already taken. Try a different one.");
|
|
22165
22156
|
return t2.substring(0, 31);
|
|
22166
22157
|
}
|
|
22167
22158
|
findValidSheetName(t2) {
|
|
22168
|
-
t2 && (t2 =
|
|
22159
|
+
t2 && (t2 = zS(t2, true));
|
|
22169
22160
|
try {
|
|
22170
22161
|
return ((t3, e2) => {
|
|
22171
22162
|
try {
|
|
@@ -22229,7 +22220,7 @@ class WS {
|
|
|
22229
22220
|
_addSheet(t2, e2 = null, n2 = null) {
|
|
22230
22221
|
e2 = this._nextSheetName(e2);
|
|
22231
22222
|
const r2 = this._getState(), o2 = this._createSheet(r2.lastId, e2, kp.Visibility.Visible, n2, null);
|
|
22232
|
-
if (!o2) throw new Error(
|
|
22223
|
+
if (!o2) throw new Error(NS);
|
|
22233
22224
|
return t2 && this._emitter.notify("onSheetsChange"), o2;
|
|
22234
22225
|
}
|
|
22235
22226
|
_updateSheetRefStates(t2) {
|
|
@@ -22413,12 +22404,12 @@ class WS {
|
|
|
22413
22404
|
}
|
|
22414
22405
|
const r2 = this.getSelectedSheet();
|
|
22415
22406
|
let o2 = null;
|
|
22416
|
-
return e2 && (o2 = { getOptions: e2 }), new
|
|
22407
|
+
return e2 && (o2 = { getOptions: e2 }), new WS(t2, r2, this, o2);
|
|
22417
22408
|
}
|
|
22418
22409
|
_createRanges(t2, e2) {
|
|
22419
22410
|
const n2 = this.getSelectedSheet();
|
|
22420
22411
|
let r2 = null;
|
|
22421
|
-
return e2 && (r2 = { getOptions: e2 }), new
|
|
22412
|
+
return e2 && (r2 = { getOptions: e2 }), new PS(t2, n2, this, r2);
|
|
22422
22413
|
}
|
|
22423
22414
|
getRange(t2, e2) {
|
|
22424
22415
|
try {
|
|
@@ -22739,7 +22730,7 @@ export {
|
|
|
22739
22730
|
ks as AutoFill,
|
|
22740
22731
|
mp as Calculation,
|
|
22741
22732
|
Xs as Color,
|
|
22742
|
-
|
|
22733
|
+
Tp as ExternalRangeClipboardItem,
|
|
22743
22734
|
Kf as F,
|
|
22744
22735
|
St as GeomUtils,
|
|
22745
22736
|
Ui as IAnchored,
|
|
@@ -22766,10 +22757,10 @@ export {
|
|
|
22766
22757
|
wo as ITextFrame,
|
|
22767
22758
|
Ei as ITheme,
|
|
22768
22759
|
Ci as IThemeCollection,
|
|
22769
|
-
|
|
22760
|
+
st as LicenseManager,
|
|
22770
22761
|
fi as NumberFormat,
|
|
22771
22762
|
Zm as Picture,
|
|
22772
|
-
|
|
22763
|
+
Np as RangeClipboardItem,
|
|
22773
22764
|
Um as Resource,
|
|
22774
22765
|
qm as ResourceCollection,
|
|
22775
22766
|
K_ as Sheet,
|
|
@@ -22779,13 +22770,13 @@ export {
|
|
|
22779
22770
|
$m as StyleCollection,
|
|
22780
22771
|
rp as T,
|
|
22781
22772
|
Fm as Table,
|
|
22782
|
-
|
|
22773
|
+
zo as TextUtils,
|
|
22783
22774
|
Vi as Theme,
|
|
22784
22775
|
ji as ThemeCollection,
|
|
22785
22776
|
k as TransactionStore,
|
|
22786
22777
|
B as TransactionUndoManager,
|
|
22787
|
-
|
|
22788
|
-
|
|
22778
|
+
Tt as Tuple,
|
|
22779
|
+
HS as Workbook,
|
|
22789
22780
|
dS as WorkbookView,
|
|
22790
22781
|
b_ as a,
|
|
22791
22782
|
C_ as b,
|