@sheetxl/sdk 0.6.12 → 0.6.13
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/{C1Smy4MKFJ3pB8l1.cjs → 42k9_8D8BXyYm2F6.cjs} +1 -1
- package/browser/cjs/{Dh6qUnuK7BxsfXRw.cjs → 9Exe3eJQs_l_lfWj.cjs} +1 -1
- package/browser/cjs/{Dnc3kI4srJLGVmJn.cjs → B2dEW-ldkRUW4Qb-.cjs} +1 -1
- package/browser/cjs/{BxjB5h-Xg0A8N1AR.cjs → B62sO2sYppuZfpyP.cjs} +1 -1
- package/browser/cjs/{DzP68lkKL4yXIkav.cjs → BAezSd5BzhQ0Nx7p.cjs} +2 -2
- package/browser/cjs/{CwgOy6GOeB_w6_yn.cjs → BGcauuk5Cn0E8ABz.cjs} +1 -1
- package/browser/cjs/{BwEvFCusE_TJCzgb.cjs → BPAFlkke4nMSBXbt.cjs} +1 -1
- package/browser/cjs/{DSC2UXN01jb6tdhz.cjs → C1ZHponmPOK936Wk.cjs} +1 -1
- package/browser/cjs/{BXYrX2lIdSOARu4H.cjs → CFzvDZaNwjfbvOR1.cjs} +1 -1
- package/browser/cjs/{C0ZMw0y3G6zdIaQG.cjs → CP3LgrsfJUnWVoCx.cjs} +1 -1
- package/browser/cjs/{BB6vCaGGLDjHxJQI.cjs → CSN-Cxi05lkvut0y.cjs} +1 -1
- package/browser/cjs/{pFuL393J5zc42aQN.cjs → CVqaUUou2zr75FPt.cjs} +1 -1
- package/browser/cjs/CZIsFYD8fSOTpoPQ.cjs +54 -0
- package/browser/cjs/{DmjKSO008oGcN9VL.cjs → CfInu_hIrhhOXVCo.cjs} +1 -1
- package/browser/cjs/{C19WOy0GLFLOY8ck.cjs → CfVorJJ_mL2F36TQ.cjs} +1 -1
- package/browser/cjs/{qFWg_M-b3Ctgq0ZF.cjs → Cvnd60IkQyE4SFS3.cjs} +1 -1
- package/browser/cjs/{C-fip5g_xikmRmDT.cjs → Cwa1d_AvIJ7dwnEM.cjs} +1 -1
- package/browser/cjs/{DCfUdgP7Qh5zLu_S.cjs → Cxhx9tnGcSWTTrrI.cjs} +2 -2
- package/browser/cjs/{DeDJah0RnFnMP8rO.cjs → Cxilm0MCIYXQSTWn.cjs} +1 -1
- package/browser/cjs/{CWy_J48Xrr9hTfJV.cjs → D2AjhWBXFtcPVW9G.cjs} +1 -1
- package/browser/cjs/{BSifzyneq21ybUi5.cjs → D7ylMrwAA3dkNkGE.cjs} +3 -3
- package/browser/cjs/{B1zWd3st1ozR250n.cjs → DFCMGVtK9aa1sn8P.cjs} +1 -1
- package/browser/cjs/{BK2sbrJDcVCNWEQH.cjs → DIr0BFVT3pcxs-UF.cjs} +1 -1
- package/browser/cjs/{B_3Zj1bW7tkLwqqW.cjs → IEVwHVwEqzJaUuB3.cjs} +1 -1
- package/browser/cjs/{Bnp1bjxFGNPxQCbM.cjs → UMp5disCx1VWsr3e.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DzHRsnF-FhIY0PD9.cjs → s598ifH82QU6VtWz.cjs} +1 -1
- package/browser/cjs/{GJAx3q4wCjlYr5DB.cjs → saoQBtn9XuFB_w5i.cjs} +1 -1
- package/{node/esm/KcL8mZn8m5ARBPx2.mjs → browser/esm/B11vMnAprFUlEjLp.mjs} +1 -1
- package/browser/esm/{CxeqaMqxhm6cjo9h.mjs → BanQhpWt0r6W1t2o.mjs} +2 -2
- package/browser/esm/{B_pC9iGtnyasAnay.mjs → BjEVaBo1MHwTbt-1.mjs} +1 -1
- package/browser/esm/{C7ytBIR4YVhNd400.mjs → BjvtfOpL0KvhSAoZ.mjs} +1 -1
- package/{node/esm/Q4XFMgKjDEuagKj_.mjs → browser/esm/BoE5gBS-VsQjRGC5.mjs} +1 -1
- package/{node/esm/B4VMgA6g5-9VwnyF.mjs → browser/esm/Bpe6Z4bS4zOthJTq.mjs} +1 -1
- package/browser/esm/{DrHCgcLjcr0EdL2h.mjs → BvHhZzf3lHmELLtg.mjs} +1 -1
- package/{node/esm/CVdQI5RZGoSC4A67.mjs → browser/esm/C01KiElhH3UnbPks.mjs} +1 -1
- package/browser/esm/CIzAw9_VSYj8F9XP.mjs +23118 -0
- package/{node/esm/B7yI-hHeNYbwvtLM.mjs → browser/esm/CN1aKz4LbDF61-RW.mjs} +1 -1
- package/browser/esm/{DY93noNoenzdZnq2.mjs → CZLI0YaV7XXFwZ4H.mjs} +1 -1
- package/browser/esm/{lXjOin-xLosMAppt.mjs → Clerme3thZwP1XcH.mjs} +1 -1
- package/browser/esm/{BiGFS2hKcu_O6F9-.mjs → Csrq-7eBoWCxgb4w.mjs} +1 -1
- package/browser/esm/{BvNssETbqnDUrWaE.mjs → DGW24o1IkBVCmzVs.mjs} +1 -1
- package/browser/esm/{C8FTVudRau0L-X3y.mjs → DHtku-JgWdPTXTqe.mjs} +1 -1
- package/browser/esm/{l33rm1-Istq3IaJs.mjs → DKFSns2gj9GQ0ykF.mjs} +1 -1
- package/browser/esm/{hWaTWtTIod5bIIk5.mjs → DOlw5cpVEs-P06SW.mjs} +1 -1
- package/browser/esm/{C59bvecNTUTRBpT3.mjs → DSA92dgu7wFr_oO1.mjs} +1 -1
- package/browser/esm/{BsLsjMcWZoi0_PNG.mjs → DX1FVPOHnIUO4AJe.mjs} +1 -1
- package/browser/esm/{BA6MAyuNluTlgNUU.mjs → DaIh1YnTLIkuzaiG.mjs} +1 -1
- package/browser/esm/{BkgOIotQjkaBsv6l.mjs → Dej6QCxPQ7OU9Vci.mjs} +1 -1
- package/browser/esm/{ywyRLb79ZIvblLh-.mjs → Dp9s1_y7rTXubWdy.mjs} +3 -3
- package/browser/esm/{CkVncRXs3zxlXcN1.mjs → NymBnyDZJS2u2b55.mjs} +2 -2
- package/browser/esm/{Dkok60jUniz6HTlH.mjs → fTRNPe9Lj1gW8eqh.mjs} +1 -1
- package/{node/esm/ZUsSL4eqtp9AnIUN.mjs → browser/esm/hfRv3JY2zd0bT4cP.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{Bs13LyExFQBF5ziS.mjs → kGVMxaD7GTwRmk8Y.mjs} +1 -1
- package/{node/esm/HINsM-oJV0anMFQ3.mjs → browser/esm/ocHLl2y9nzRpRa85.mjs} +1 -1
- package/{browser/esm/KcL8mZn8m5ARBPx2.mjs → node/esm/B11vMnAprFUlEjLp.mjs} +1 -1
- package/node/esm/{MqFLkY02HqE70XzV.mjs → BO-jw-EK9dR2Yl0o.mjs} +1 -1
- package/{browser/esm/Q4XFMgKjDEuagKj_.mjs → node/esm/BoE5gBS-VsQjRGC5.mjs} +1 -1
- package/{browser/esm/B4VMgA6g5-9VwnyF.mjs → node/esm/Bpe6Z4bS4zOthJTq.mjs} +1 -1
- package/node/esm/{DrHCgcLjcr0EdL2h.mjs → BvHhZzf3lHmELLtg.mjs} +1 -1
- package/{browser/esm/CVdQI5RZGoSC4A67.mjs → node/esm/C01KiElhH3UnbPks.mjs} +1 -1
- package/node/esm/{Cepv_nCKh_KiXPso.mjs → C0XlT9aQHkn8VKvB.mjs} +1 -1
- package/node/esm/{3oDj1dTnCbDwAhJV.mjs → C5UbQfGTCH4EGett.mjs} +2 -2
- package/node/esm/{Bm_EVrik9OrtAaDp.mjs → CGkvBF9L7_nJYF8D.mjs} +1 -1
- package/{browser/esm/B7yI-hHeNYbwvtLM.mjs → node/esm/CN1aKz4LbDF61-RW.mjs} +1 -1
- package/node/esm/{BiGFS2hKcu_O6F9-.mjs → Csrq-7eBoWCxgb4w.mjs} +1 -1
- package/node/esm/{7ZS04uQ7l-rCXu-8.mjs → CxWY8PY7eNbHhT3k.mjs} +1 -1
- package/node/esm/{BvNssETbqnDUrWaE.mjs → DGW24o1IkBVCmzVs.mjs} +1 -1
- package/node/esm/{l33rm1-Istq3IaJs.mjs → DKFSns2gj9GQ0ykF.mjs} +1 -1
- package/node/esm/{hWaTWtTIod5bIIk5.mjs → DOlw5cpVEs-P06SW.mjs} +1 -1
- package/node/esm/{BsLsjMcWZoi0_PNG.mjs → DX1FVPOHnIUO4AJe.mjs} +1 -1
- package/node/esm/{DZKV8YMKiYEpXnE1.mjs → DXCuQA6N8QqTWg5t.mjs} +1 -1
- package/node/esm/{BC7mf8IrN4m-u-kn.mjs → DbVylyo9e9sSiS1W.mjs} +1 -1
- package/node/esm/{BkgOIotQjkaBsv6l.mjs → Dej6QCxPQ7OU9Vci.mjs} +1 -1
- package/node/esm/{BJaoqTkQvn0_H-a7.mjs → DgNkP4OtvKx2a9Bn.mjs} +1 -1
- package/node/esm/{DESXBdJuV9FtP2Rv.mjs → Dh0X3aE2Tq0__lr7.mjs} +1 -1
- package/node/esm/{Dkok60jUniz6HTlH.mjs → fTRNPe9Lj1gW8eqh.mjs} +1 -1
- package/{browser/esm/ZUsSL4eqtp9AnIUN.mjs → node/esm/hfRv3JY2zd0bT4cP.mjs} +1 -1
- package/node/esm/index.mjs +654 -658
- package/node/esm/{Bs13LyExFQBF5ziS.mjs → kGVMxaD7GTwRmk8Y.mjs} +1 -1
- package/{browser/esm/HINsM-oJV0anMFQ3.mjs → node/esm/ocHLl2y9nzRpRa85.mjs} +1 -1
- package/package.json +4 -4
- package/browser/cjs/D9AcAGDT1IutKwML.cjs +0 -54
- package/browser/esm/TBLTpDtYZ0mEwE7r.mjs +0 -23110
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.13
|
|
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.
|
|
@@ -377,7 +377,7 @@ class L extends s {
|
|
|
377
377
|
}
|
|
378
378
|
const B = () => {
|
|
379
379
|
try {
|
|
380
|
-
return "0.6.
|
|
380
|
+
return "0.6.13";
|
|
381
381
|
} catch (t2) {
|
|
382
382
|
return "";
|
|
383
383
|
}
|
|
@@ -388,7 +388,7 @@ const B = () => {
|
|
|
388
388
|
return "";
|
|
389
389
|
}
|
|
390
390
|
}, getBuildVersion: B }, Symbol.toStringTag, { value: "Module" })), z = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", W = `
|
|
391
|
-
https://www.sheetxl.com ${B()}`, H = "#1976d2",
|
|
391
|
+
https://www.sheetxl.com ${B()}`, H = "#1976d2", $ = "#FFA726", V = 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,7 +412,7 @@ const B = () => {
|
|
|
412
412
|
"chalk"
|
|
413
413
|
)).default;
|
|
414
414
|
t3.level = 2;
|
|
415
|
-
const e2 = t3.hex(H), n2 = t3.hex(
|
|
415
|
+
const e2 = t3.hex(H), n2 = t3.hex($);
|
|
416
416
|
return console.log(e2(z) + n2(W));
|
|
417
417
|
} catch (t3) {
|
|
418
418
|
return console.log(z + "\n" + W + "\n");
|
|
@@ -425,7 +425,7 @@ const B = () => {
|
|
|
425
425
|
"chalk"
|
|
426
426
|
)).default;
|
|
427
427
|
s2.level = 2;
|
|
428
|
-
const i2 = s2.red, a2 = s2.hex(H), l2 = s2.hex(
|
|
428
|
+
const i2 = s2.red, a2 = s2.hex(H), l2 = s2.hex($), 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,167 +457,173 @@ 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
|
|
460
|
+
return q(n2 - 149, r2);
|
|
461
|
+
}
|
|
462
|
+
function q(t2, e2) {
|
|
463
|
+
const n2 = J();
|
|
464
|
+
return q = function(e3, r2) {
|
|
465
|
+
let o2 = n2[e3 -= 489];
|
|
466
|
+
if (void 0 === q.olJHoA) {
|
|
467
|
+
const e4 = function(t3, e5) {
|
|
468
|
+
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
469
|
+
for (t3 = (function(t4) {
|
|
470
|
+
let e6 = "", n4 = "";
|
|
471
|
+
for (let n5, r4, o4 = 0, s4 = 0; r4 = t4.charAt(s4++); ~r4 && (n5 = o4 % 4 ? 64 * n5 + r4 : r4, o4++ % 4) ? e6 += String.fromCharCode(255 & n5 >> (-2 * o4 & 6)) : 0) r4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r4);
|
|
472
|
+
for (let t5 = 0, r4 = e6.length; t5 < r4; t5++) n4 += "%" + ("00" + e6.charCodeAt(t5).toString(16)).slice(-2);
|
|
473
|
+
return decodeURIComponent(n4);
|
|
474
|
+
})(t3), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
|
|
475
|
+
for (r3 = 0; r3 < 256; r3++) s3 = (s3 + o3[r3] + e5.charCodeAt(r3 % e5.length)) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3;
|
|
476
|
+
r3 = 0, s3 = 0;
|
|
477
|
+
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]);
|
|
478
|
+
return i3;
|
|
479
|
+
};
|
|
480
|
+
q.QlFulP = e4, t2 = arguments, q.olJHoA = true;
|
|
481
|
+
}
|
|
482
|
+
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
483
|
+
return i2 ? o2 = i2 : (void 0 === q.NsTgaE && (q.NsTgaE = true), o2 = q.QlFulP(o2, r2), t2[s2] = o2), o2;
|
|
484
|
+
}, q(t2, e2);
|
|
461
485
|
}
|
|
462
486
|
function J() {
|
|
463
|
-
const t2 = ["
|
|
487
|
+
const t2 = ["vsFdNe3dPgSewSklgfrOWPJcPW", "W6u4WRK/i8oCDY7dIfe1WR7dNG", "W6nsWQnb", "bWqxWQJdVZxdRCoepq", "W63cIb8AWOKNiXJcHSo4mq", "odVcNIpdIrKDcf4", "WRpdPb96W6dcISkRW6mLW7bdWOZdSq", "W6/cHsNcNW", "WQGar8o9zHddNCoDW4L0Df3dMCoEAJZcPLpdLNG", "BSkbW6XkBSoEW7/cICoWbSojWRJdVGa", "gq7cPYJdQdqi", "FLemW57dJxlcKq", "kmk6W43cV8ocW4u2", "hrZdPmkCw0ap", "kLLTWQm", "bI/cRmobB8kkWRlcUshdGfPe", "dIX3WO7dUSkxW53cMum", "W5D5WQtdQSkqp2q", "d8oWECkNWOfhW4xcImo0e8oBWOa", "dGn1WPxdU8kxW7BcO2HnWPGvtW", "W4rUWRNdN8kv", "oZ7cSmogzmkmWQdcQIBdGeTtW6G", "nI3cRXVdHXe", "WOFdUYBcLXtcP8opWRJcMCkWt8khWRymjG", "W5bFcCkPp03cGCkVW6jBBvhdUq", "W4tcLJdcH1/cLSkNWPNcPW", "WQb+tuZdUZ5Xj8kV", "gG8kWO/cTmkPWRCexG", "WQ/dOWftW6RcNq", "cSoNW4tdICoW", "AfDyqSoZoSo9W5SNEmkLWOG", "W7NcGt/cHvpcGmkwWP/cQ8oxWOpcINK", "W5hdI3uktWrHEvj9Amo3", "aXZdUCkuq14", "WQlcRmodW6xdMmo5eG", "pI55WOJdMGq", "edhcQmojBCkxWPtdUcpdH1XtW6jDW7b7WP9Oj8ke", "vHFcQH7dS8klWP/cUCkn", "W7SCumkvE8kCW5RdMmow", "WRJdNLLTW54zdYBcMSo+", "vsFdNKNdOwGhB8klmLvPWPpcTW", "W4H5bSkgfSkX", "WOvKW5qmm8kA", "W7ClzCkIqmkWW7NdMmofW6rAcSorWR7cNbH4a8kw", "W6OSamkcBmkyW5ZdTCoOW5LWimoX", "pdhcHb7dIreDfLpdQ8kYBmoVgmknWRxdKLJcSG", "W5hdI3umxXLSDhPV", "mCoUWPmIW7j/pXm", "mZVcHaRdKHu", "kJRcQSoKAmkDWPxcTJZdI3rtW7u", "dJtcRmosrSkjWQNdKmkPqIerWRe", "W6pdGdFcKCkWWPK", "oZHzWOddIGK", "WOr6W5P2WQ1og8o9fmkqW6reW47dRNnuW47dTWq", "W4NcN1OD", "nI3cPaldGHG", "irWFWOlcTmkHWQuGsvRdU8olWOLn", "hCoWW5NdO8oHWQZdK0hdTmkr", "WO5KW44PmSkBWPhcN2VcSCkDW7qYW5qQ", "ECkrW6HBDCoxW7/cQSoshCooWQldRW", "FM0ct20S", "s2VdKSkjfCoAW7ZdUSkcttWwWRGiW7a0A8kl", "WQNdSctcTa3cP8ohW7ZcQSkTtCkDWQ0cpgRdIIS", "pZRcV8oCDmkmWPxcQW", "W53dI3GosajG", "WQOGtSosWQtdGZNcKJfhlCkaWQi", "WRRdINVcJmk7s8k8W5Knha", "osZcJWJdNbG", "W5ldI3uPuWf+", "WObYW7qei8kx", "o8oIW74QoxSQAtW3lmklzXO", "CuThtCoRf8o8", "wMRdUSkviCosW6tdTW", "W756oSkahmkG", "iqz0WPq", "W7hdN8kRDJS0", "jWDhWQVcJvFcSCklkZhcSa", "W4uMW7nYWRDWh8oT", "yem1W4JcPCorWOVcIxncWPGBzG", "mb/cUttdOWy", "mdHzWOldJaddSXldV8kqjCo9kCol", "WQxdKxNcN8k7uCkeW54", "pY3cU8onE8kB", "WQyyECo+WP7dRZe", "W5j+kCkBbSkNW6uyW7lcPG", "W5/cJf0EohBcHSkpESobfwHc", "imoyW6WLfCodWQldLYyYW6LNW5hdOmksWPdcKX0", "xs3dIuNdPgWBtmkn", "W6ldHSk6EJSZWOldNGjrDuGiW6JdKq8DW4ZcPW", "WO/dVCo2ovSHWQvVWPa0WOu6k2LvW64", "WObYW78DjSkE", "c1ZdIbhdMCkeWRe", "W5ddLsVcN8kQWOxdUmoEfulcSmoc", "nmkHW4hcT8ofW4u2W6qfWQ0", "W5xdGw8UuWPEAxLUEq", "dwBdKCkFo8orW7i", "pJRcQSoQDmkxWPZcVbNdI01fW6vbW7S", "w2hdQSkhh8oxW6pdJ8k0rsyhWO4y", "WR3dISkyuGFdTJa", "qtddHuxdOxCr", "dmo0W4hdKSoHWP7dHa", "c1ZdKb/dKCki", "W4fOcmovWOZdKtFcLJC", "WOFdKtRcKSkMw8koW54kesWWpHmnWPhcIshcGW", "zMWhW5pcJfldRIBdPSkSmCoo", "u2TocMqTxKVdGmkDqa", "W5a6umkc", "WR7dN2NcRSk9uCkfW4qCea", "vmkCWRPNumkmW6BcKhG", "odVcNIBdGWq", "WPBdJMJcL8kHtmkVW5unfwuSpW", "WQhdTSo0df4LWQq", "rSknW7ToACobW6NdUCoSamotW6ZdRquIbd7cJbuEW6vuW6KLW5ddOsZdMmoe", "qhblsNWxs0ddI8kqqq", "kuPTWRSHcCktyW", "ma/dTSkFxLilW43dRa", "hWVdVSkDq3ipW43dQmkcW5JcLW", "WRBdPenD", "W7JcJYRdISo9c8kcW6eUj3Ww", "WOX8tvldPILhoSk+W40", "W5C3qCkvymkBW6ldRSo9W4u", "W6y8W4ziymk8kr8", "gCoeWOtcLNH/", "WR3dMKnhW54FpJ3cN8oJaY7dLa", "WPjZfSosjmkrW43dGmoiW4HW", "yXfiWOxdMmkjW5a", "lbBdUSkEqLGdW43dSa", "WRVdNLLiW5ibhq", "e8otWO/cLhzY", "WR4Eq8o1za3dU8kCW4TZCKO", "WOTGW5qfiSkaWQ3cIvtcUSkBW6i/", "WQZdUCkZWPNcSColjZHbt2K", "WOrMW55HWQ1fimoldmkr", "W7FcOLP6WQFcTmoEWRy", "Afbcra", "W7VcUX97A8oKhW", "pSk6W4FcT8orW5m", "zGBcUKlcJq", "WOH5WPBdT8kGguW", "W4rYk8kmaSkGW5SEW6JcVq", "Ev0wW73dKw7cMCkxpJ0", "B3jqtwyH", "W4dcRHLZBmo8", "qgZdOgpdOmofWOXMW4ZcHmkpWOhcL8o0", "W73dGd3cG8kNWPq", "W7NdGCkAvH3cUc3dN8kwW6ddImkzW4TLESkq", "W49Llmkmo8kW", "p1P/WQC", "AKy6WQxdUbFdPmo/", "WQr7W65NF8kBkG", "W6JdGc3cTmkXWPJdLSoBluNcP8odc2T0", "W77cMchcGKtcIW", "hX3cOJpdUtaFgmo7hrG", "W7/dKcRcNG", "cc1fWO7dKbu", "v2VdRCksgmoAW73dUG", "WQddVv9AWO8", "W7hdSmkPBtO0WOJcOtG", "vfKGW5uFW4qi", "W5JdHSkQDIfG", "WQNdL2NdMq7dGSksWQRcRCoDWQpcVW", "ufKfW6ZdHLZcJSkUoJ0", "ev/dSHNdGq", "k8k8W4pcPSoEW4u", "WQNdL8kAxGFdQYy", "W5D5WQtdVmkmo21uwaldH8kV", "t3BdSCklh8oiW7u", "fSkNWOlcNSocW5u2W4etWRhcRKSDda", "W6JcKd3cGKi", "FuHqrCoRxG", "WO0lx8o7FHe", "ntRcSmopDCkw", "WQ/dHmkzrGVdNJu", "amoXW6SNoxm4tsS", "W7pdMgaKtWX5DhLYpmoIewBcKCozWOlcKmomx8odz8otW7FcUa", "BMRdRSkEnCogWQRcTc3dMvvA", "pI5HWOBdKGJdOW", "W7bxWQvQqmkzt1e", "gmotWPxcSxDZWOOuWOvSgSoA", "W5bDw8otub3dNCkE", "pXCyWQhdPdddUmovfSkFWQrqeCoO", "dmoDW4G/aCoo", "buRdQJldGmkeWRNcVmk7aNqP", "WPz2z8kLySk8W5pdPa", "F0bfBSoYf8o0W4ScCmk9WP4", "WPHTwgtdTY5XoSkMW5y", "vxPbqxGHq0hdI8kg", "W7RcPGH/CSo8bvHUma", "W4eTvG", "W4G9hbBcPMjkp8kOW5iDWQ8", "pSkTW5BcSCodWP50WOfp", "WQldVL1uWPtcVSoj", "ntXzWONdMXpdLWxdMmkrnCo9ba", "W5RdH2iTvb5OvNnL", "W7/cSCo1W4xdS8ol", "FY3cIKZdP2KvvSkxkbTUWOBcTSoIW63cOw/dQ8kT", "EveBW7/dI3u", "r1vdrCoPcSoCW4OYCmkGWPFcJq", "naT3WPxdP8kA", "W4r8kCkf", "W6RdIY/cOmkLWOm", "xsFdHe/dVgW", "W63cJbuBWOnDoGJcMCoPiXS", "eCo2WPy9WOvAiHJcNWFdIXaZWQdcIXG", "tK8cW78wW5q", "WRxdISks", "CeWwW73dJ2NcLCkZntC", "WOddKgZcN8kJuCkpWPa1hw8LiG8EW5JcHIhcNJXPWRJdLHSPoX8", "xsVdIu3dPNCrwG", "ECkmW71oC8okW6a"];
|
|
464
488
|
return (J = function() {
|
|
465
489
|
return t2;
|
|
466
490
|
})();
|
|
467
491
|
}
|
|
468
492
|
!(function() {
|
|
469
|
-
const t2 =
|
|
470
|
-
function
|
|
471
|
-
return
|
|
493
|
+
const t2 = 829, e2 = "@mf%", n2 = 212, r2 = "q*t#", o2 = 48, s2 = "RhHr", i2 = "yHsB", a2 = 186, l2 = "Namc", c2 = 315, h2 = "T&yu", d2 = "%evM", u2 = 573, g2 = J();
|
|
494
|
+
function m2(t3, e3, n3, r3, o3) {
|
|
495
|
+
return q(e3 - -421, r3);
|
|
472
496
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
return ot(t3 - 974, n3);
|
|
497
|
+
function f2(t3, e3, n3, r3, o3) {
|
|
498
|
+
return q(n3 - 195, o3);
|
|
476
499
|
}
|
|
477
|
-
function
|
|
478
|
-
return
|
|
500
|
+
function p2(t3, e3, n3, r3, o3) {
|
|
501
|
+
return q(o3 - -996, n3);
|
|
479
502
|
}
|
|
480
|
-
function
|
|
481
|
-
return
|
|
503
|
+
function _2(t3, e3, n3, r3, o3) {
|
|
504
|
+
return q(e3 - u2, r3);
|
|
482
505
|
}
|
|
483
|
-
function
|
|
484
|
-
return
|
|
506
|
+
function S2(t3, e3, n3, r3, o3) {
|
|
507
|
+
return q(t3 - -501, e3);
|
|
485
508
|
}
|
|
486
509
|
for (; ; ) try {
|
|
487
|
-
if (
|
|
488
|
-
|
|
510
|
+
if (147136 === -parseInt(f2(0, 0, 856, 0, "%L6D")) / 1 * (-parseInt(f2(0, 0, 847, 0, "Namc")) / 2) + -parseInt(f2(0, 0, t2, 0, e2)) / 3 * (parseInt(m2(0, n2, 0, r2)) / 4) + parseInt(f2(0, 0, 725, 0, "9vcc")) / 5 * (parseInt(S2(o2, s2)) / 6) + -parseInt(S2(57, i2)) / 7 * (-parseInt(p2(0, 0, "IPf7", 0, -301)) / 8) + -parseInt(m2(0, a2, 0, l2)) / 9 + parseInt(p2(0, 0, "9vcc", 0, -c2)) / 10 * (-parseInt(m2(0, 238, 0, h2)) / 11) + -parseInt(f2(0, 0, 731, 0, d2)) / 12 * (-parseInt(_2(0, 1263, 0, "Ut!w")) / 13)) break;
|
|
511
|
+
g2.push(g2.shift());
|
|
489
512
|
} catch (t3) {
|
|
490
|
-
|
|
513
|
+
g2.push(g2.shift());
|
|
491
514
|
}
|
|
492
515
|
})();
|
|
493
|
-
const
|
|
494
|
-
const t2 =
|
|
495
|
-
if (typeof window ===
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}, K = () => {
|
|
502
|
-
const t2 = "ZV8z", e2 = "#$c*", n2 = 164;
|
|
503
|
-
function r2(t3, e3, n3, r3, o2) {
|
|
504
|
-
return ot(r3 - -433, n3);
|
|
505
|
-
}
|
|
506
|
-
return q()[r2(0, 0, t2, -195)](r2(0, 0, "L8pV", -248)) || q() === ot(n2 - -33, e2);
|
|
516
|
+
const K = () => {
|
|
517
|
+
const t2 = 1512, e2 = "Namc", n2 = 1166, r2 = "Dp70", s2 = 664;
|
|
518
|
+
if (typeof window === h2(1135, 1177, 1192, "RDdw", 1202)) return window[l2 = t2, c2 = "obtz", q(l2 - 874, c2)][i2 = e2, a2 = n2, q(a2 - s2, i2)];
|
|
519
|
+
var i2, a2, l2, c2;
|
|
520
|
+
function h2(t3, e3, n3, r3, o2) {
|
|
521
|
+
return q(o2 - 617, r3);
|
|
522
|
+
}
|
|
523
|
+
return o[h2(0, 0, 0, r2, 1311)]();
|
|
507
524
|
};
|
|
508
525
|
function X(t2, e2, n2, r2, o2) {
|
|
509
|
-
return
|
|
510
|
-
}
|
|
511
|
-
function Y(t2, e2, n2, r2, o2) {
|
|
512
|
-
return ot(r2 - 258, o2);
|
|
526
|
+
return q(r2 - -235, e2);
|
|
513
527
|
}
|
|
528
|
+
const Y = () => {
|
|
529
|
+
const t2 = "lf7Z", e2 = "DbWE", n2 = 223, r2 = 459;
|
|
530
|
+
return K()[o2 = t2, s2 = -26, q(s2 - -630, o2)](q(867 - n2, e2)) || K() === q(1124 - r2, "3DK5");
|
|
531
|
+
var o2, s2;
|
|
532
|
+
};
|
|
514
533
|
function Q(t2, e2, n2, r2, o2) {
|
|
515
|
-
return
|
|
534
|
+
return q(r2 - 70, t2);
|
|
516
535
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
536
|
+
function Z(t2, e2, n2, r2, o2) {
|
|
537
|
+
return q(e2 - 816, o2);
|
|
538
|
+
}
|
|
539
|
+
const tt = (t2) => {
|
|
540
|
+
const e2 = 1317, n2 = 1328, r2 = 1418, s2 = "Ut!w", i2 = 1337, a2 = 1313, l2 = "PG5P", c2 = 1151, h2 = 1004, d2 = "1#SL", u2 = 483;
|
|
541
|
+
function g2(t3, e3, n3, r3, o2) {
|
|
542
|
+
return q(t3 - 915, r3);
|
|
543
|
+
}
|
|
544
|
+
function m2(t3, e3, n3, r3, o2) {
|
|
545
|
+
return q(n3 - u2, t3);
|
|
546
|
+
}
|
|
547
|
+
let f2 = o[_2(-55, "q*t#")];
|
|
548
|
+
if (Y() || o[_2(49, "jDBb")]()) {
|
|
549
|
+
const t3 = P[p2(1426, e2, "jMbQ", 1226, n2)](), o2 = new Date(t3), d3 = /* @__PURE__ */ new Date(), u3 = 864e5;
|
|
550
|
+
Math[g2(r2, 0, 0, s2)]((d3[p2(i2, 1208, "IPf7", 1377, a2)]() - o2[m2(l2, 0, c2)]()) / u3) >= 120 && (f2 = [m2("jMbQ", 0, h2)]);
|
|
551
|
+
} else f2 = [];
|
|
534
552
|
function p2(t3, e3, n3, r3, o2) {
|
|
535
|
-
return
|
|
553
|
+
return q(o2 - 739, n3);
|
|
536
554
|
}
|
|
537
|
-
|
|
555
|
+
function _2(t3, e3, n3, r3, o2) {
|
|
556
|
+
return q(t3 - -563, e3);
|
|
557
|
+
}
|
|
558
|
+
return { licensee: () => _2(80, "3DK5"), expiration: () => null, domains: () => [K()], developerCount: () => 1, cpuCount: () => 0, type: () => g2(1461, 0, 0, "d4X("), isEval: () => true, exceptions: () => f2, isValidFor: () => 0 === f2[_2(-46, "qb00")], isValid: () => false, features: () => Object[p2(0, 0, "T$6W", 0, 1378)]({}), keyFrom: () => t2, getBuildVersion: P[m2(d2, 0, 1098)], getBuildDate: P[g2(1444, 0, 0, "^G3w")] };
|
|
538
559
|
};
|
|
539
|
-
function
|
|
540
|
-
return
|
|
560
|
+
function et(t2, e2, n2, r2, o2) {
|
|
561
|
+
return q(r2 - -45, t2);
|
|
541
562
|
}
|
|
542
|
-
const
|
|
543
|
-
let
|
|
544
|
-
|
|
545
|
-
const n2 = J();
|
|
546
|
-
return ot = function(e3, r2) {
|
|
547
|
-
let o2 = n2[e3 -= 109];
|
|
548
|
-
if (void 0 === ot.dwceNL) {
|
|
549
|
-
const e4 = function(t3, e5) {
|
|
550
|
-
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
551
|
-
for (t3 = (function(t4) {
|
|
552
|
-
let e6 = "", n4 = "";
|
|
553
|
-
for (let n5, r4, o4 = 0, s4 = 0; r4 = t4.charAt(s4++); ~r4 && (n5 = o4 % 4 ? 64 * n5 + r4 : r4, o4++ % 4) ? e6 += String.fromCharCode(255 & n5 >> (-2 * o4 & 6)) : 0) r4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r4);
|
|
554
|
-
for (let t5 = 0, r4 = e6.length; t5 < r4; t5++) n4 += "%" + ("00" + e6.charCodeAt(t5).toString(16)).slice(-2);
|
|
555
|
-
return decodeURIComponent(n4);
|
|
556
|
-
})(t3), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
|
|
557
|
-
for (r3 = 0; r3 < 256; r3++) s3 = (s3 + o3[r3] + e5.charCodeAt(r3 % e5.length)) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3;
|
|
558
|
-
r3 = 0, s3 = 0;
|
|
559
|
-
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]);
|
|
560
|
-
return i3;
|
|
561
|
-
};
|
|
562
|
-
ot.ejBFiO = e4, t2 = arguments, ot.dwceNL = true;
|
|
563
|
-
}
|
|
564
|
-
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
565
|
-
return i2 ? o2 = i2 : (void 0 === ot.CDSyPP && (ot.CDSyPP = true), o2 = ot.ejBFiO(o2, r2), t2[s2] = o2), o2;
|
|
566
|
-
}, ot(t2, e2);
|
|
567
|
-
}
|
|
568
|
-
const st = Y(0, 0, 0, 403, "V#]*")[Q(0, 0, -593, 0, "9W#S")]("")[U(0, 0, 0, "YcI9", 788)]((t2, e2) => e2 + t2, "");
|
|
563
|
+
const nt = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
564
|
+
let rt = false, ot = false;
|
|
565
|
+
const st = Z(0, 1478, 0, 0, "lVP!")[Z(0, 1331, 0, 0, "tGb5")]("")[et("ci4Q", 0, 0, 446)]((t2, e2) => e2 + t2, "");
|
|
569
566
|
class it {
|
|
570
567
|
constructor() {
|
|
571
|
-
const t2 =
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
568
|
+
const t2 = 928, e2 = 454;
|
|
569
|
+
var n2, r2, o2, s2;
|
|
570
|
+
this[o2 = "@B]W", s2 = -258, X(0, o2, 0, s2 - -527)][n2 = t2, r2 = "]D$&", et(r2, 0, 0, n2 - e2)] = null;
|
|
571
|
+
}
|
|
572
|
+
async [Q("T$6W", 0, 0, 676)](t2, e2 = false) {
|
|
573
|
+
const n2 = "%evM", r2 = 42, s2 = "IPf7", i2 = "@mf%", a2 = 43, l2 = 112, c2 = "tGb5", h2 = 57, d2 = "ei5)", u2 = 130, g2 = 22, m2 = "jMbQ", f2 = 1046, p2 = "RDdw", _2 = 1235, S2 = 1277, w2 = "^G3w", y2 = 2, E2 = "T$6W", C2 = "%L6D", b2 = 1254, v2 = 1168, x2 = ")pq6", I2 = 1092, R2 = "qb00", A2 = 1150;
|
|
574
|
+
if (!t2 || t2[T2(n2, 107, 91, 30)](T2("@B]W", -166, -208, -140)) || t2[T2("obtz", r2, -111, -23)](N2("L(lq", -365, -444)) || t2[N2("9vcc", -190, -283)](O2(1139, 1093, s2, 1162)) || t2[T2(i2, 42, -18, a2)](M2("6qTk", l2, 172))) return rt = true, await this[N2(c2, -335, -378)](true);
|
|
575
|
+
if (rt = false, !e2 && nt[T2("R#YL", h2, -71, 4)]) {
|
|
576
|
+
const t3 = await this[N2(d2, -511, -440)]();
|
|
577
|
+
if (t3[M2("%L6D", u2, 124)]() && !t3[T2("jDBb", g2, -22, -67)]()) return t3;
|
|
578
|
+
}
|
|
579
|
+
function M2(t3, e3, n3, r3, o2) {
|
|
580
|
+
return et(t3, 0, 0, n3 - -354);
|
|
581
|
+
}
|
|
582
|
+
function N2(t3, e3, n3, r3, o2) {
|
|
583
|
+
return Q(t3, 0, 0, n3 - -1030);
|
|
584
|
+
}
|
|
585
|
+
function T2(t3, e3, n3, r3, o2) {
|
|
586
|
+
return X(0, t3, 0, r3 - -411);
|
|
587
|
+
}
|
|
588
|
+
nt[T2(m2, -61, -136, -106)] = t2, nt[M2("jMbQ", 0, 222)] = O2(f2, 1052, p2, 1148), nt[O2(1235, _2, "8Ih2", S2)] = null, nt[F2(-441, -444, -532, "yHsB")] = null;
|
|
589
|
+
const k2 = await this[F2(-324, -268, -331, "fkmg")]();
|
|
590
|
+
if (!k2[T2(w2, 0, 0, y2)]()) throw await this[N2("d4X(", 0, -330)](true), new Error(N2(E2, 0, -367));
|
|
591
|
+
function F2(t3, e3, n3, r3, o2) {
|
|
592
|
+
return et(r3, 0, 0, e3 - -895);
|
|
593
|
+
}
|
|
594
|
+
if (o[T2(C2, 0, 0, -54)]()) {
|
|
595
|
+
await V[T2(")pq6", 0, 0, -95)](t2, e2);
|
|
596
|
+
if (!(await this[O2(1229, b2, n2, v2)]())[T2(x2, 0, 0, -141)]()) throw await this[M2("@B]W", 0, 233)](true), new Error(O2(1070, I2, R2, A2));
|
|
597
|
+
}
|
|
598
|
+
function O2(t3, e3, n3, r3, o2) {
|
|
599
|
+
return et(n3, 0, 0, r3 - 630);
|
|
600
|
+
}
|
|
601
|
+
return k2;
|
|
602
|
+
}
|
|
603
|
+
async [et("j7DY", 0, 0, 539)](t2 = false) {
|
|
604
|
+
const e2 = "X3kZ", n2 = "9vcc", r2 = 23, s2 = "R#YL", i2 = 899, a2 = "q*t#", l2 = "lf7Z", c2 = 672, h2 = "T&yu", d2 = "sqr4", u2 = 290, g2 = "@mf%", m2 = "ci4Q", f2 = "jDBb", p2 = 803, _2 = "tGb5", S2 = 298, w2 = "^G3w", y2 = 12, E2 = 31, C2 = 62, b2 = 716, v2 = "MOcW", x2 = "jMbQ", I2 = 755, R2 = "fkmg", A2 = "6qTk", M2 = "6!bh", N2 = 177, T2 = 151, k2 = 1362, F2 = "lVP!", O2 = 358, D2 = 359, L2 = 419, B2 = 475, z2 = 405, W2 = 132;
|
|
605
|
+
if (nt[H2("DbWE", 142, 57)]) return nt[H2("Namc", -125, -86)];
|
|
606
|
+
if (!this[ut2(-48, -124, e2, -99)][H2("6!bh", -123, -32)] && (this[H2(n2, -86, -4)][ut2(r2, -119, "Xc3j", -15)] = new Error("FV")), nt[H2("Namc", -121, -86)]) return nt[H2("]D$&", -147, -88)];
|
|
607
|
+
function H2(t3, e3, n3, r3, o2) {
|
|
608
|
+
return et(t3, 0, 0, n3 - -554);
|
|
609
|
+
}
|
|
610
|
+
let $2 = null;
|
|
611
|
+
function J2(t3, e3, n3, r3, o2) {
|
|
612
|
+
return Z(0, o2 - -679, 0, 0, r3);
|
|
613
|
+
}
|
|
614
|
+
function it2(t3, e3, n3, r3, o2) {
|
|
615
|
+
return Q(o2, 0, 0, t3 - W2);
|
|
616
|
+
}
|
|
617
|
+
function at2(t3, e3, n3, r3, o2) {
|
|
618
|
+
return X(0, e3, 0, n3 - -31);
|
|
619
|
+
}
|
|
620
|
+
nt[ut2(-28, -127, s2, -103)] = new Promise((t3) => {
|
|
621
|
+
$2 = t3;
|
|
615
622
|
});
|
|
616
|
-
let
|
|
617
|
-
const
|
|
618
|
-
const n3 = 77, r3 = 89, s3 = 230, i3 = 85;
|
|
623
|
+
let lt2, ct2 = null;
|
|
624
|
+
const ht2 = async (t3, e3) => {
|
|
619
625
|
try {
|
|
620
|
-
const
|
|
626
|
+
const c3 = ((t4) => {
|
|
621
627
|
let e4 = t4;
|
|
622
628
|
const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
|
|
623
629
|
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();
|
|
@@ -629,208 +635,198 @@ class it {
|
|
|
629
635
|
} catch (t5) {
|
|
630
636
|
throw new Error("Invalid license key.");
|
|
631
637
|
}
|
|
632
|
-
})(e3),
|
|
633
|
-
const r4 = "
|
|
638
|
+
})(e3), h3 = ((t4, e4, n4) => {
|
|
639
|
+
const r4 = "IPf7", o2 = 953, s4 = 484;
|
|
634
640
|
function i4(t5, e5, n5, r5, o3) {
|
|
635
|
-
return
|
|
641
|
+
return q(t5 - -439, o3);
|
|
636
642
|
}
|
|
637
643
|
function a4(t5, e5, n5, r5, o3) {
|
|
638
|
-
return
|
|
644
|
+
return q(r5 - 725, e5);
|
|
639
645
|
}
|
|
640
646
|
function l4(t5, e5, n5, r5, o3) {
|
|
641
|
-
return
|
|
647
|
+
return q(r5 - -792, o3);
|
|
648
|
+
}
|
|
649
|
+
function c4(t5, e5, n5, r5, o3) {
|
|
650
|
+
return q(e5 - s4, n5);
|
|
642
651
|
}
|
|
643
|
-
return { licensee: () => t4[
|
|
644
|
-
return !(e4?.[n5 =
|
|
652
|
+
return { licensee: () => t4[l4(0, 0, 0, -237, "DbWE")], expiration: () => new Date(t4[i4(106, 0, 0, 0, "X3kZ")]), domains: () => t4[i4(99, 0, 0, 0, "Ut!w")] ?? [], developerCount: () => t4[i4(118, 0, 0, 0, "DbWE")] ?? 1, cpuCount: () => t4[i4(85, 0, 0, 0, "KRUj")] ?? 0, type: () => t4[c4(0, 1147, "9vcc")] ?? c4(0, 1167, "fkmg"), exceptions: () => e4, isValidFor: (t5) => {
|
|
653
|
+
return !(e4?.[n5 = "q*t#", r5 = o2, c4(0, r5 - -74, n5)] > 0);
|
|
645
654
|
var n5, r5;
|
|
646
|
-
}, isValid: () => true, isEval: () => false, features: () => Object[
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
return ot(o2 - 502, t5);
|
|
655
|
+
}, isValid: () => true, isEval: () => false, features: () => Object[i4(240, 0, 0, 0, "MOcW")](t4[a4(0, "T$6W", 0, 1345)] ?? {}), keyFrom: () => n4, getBuildVersion: P[a4(0, "ci4Q", 0, 1222)], getBuildDate: P[l4(0, 0, 0, -280, r4)] };
|
|
656
|
+
})(c3, await (async (t4) => {
|
|
657
|
+
const e4 = "]D$&", n4 = "tGb5", r4 = "6o0y", s4 = 84, i4 = "ci4Q", a4 = 4, l4 = 971, c4 = "KRUj", h4 = 228, d3 = "L(lq", u3 = 300, g3 = "@B]W", m3 = "Namc", f3 = 227, p3 = 79, _3 = 29, S3 = "1#SL", w3 = 72, y3 = "sqr4", E3 = 1635, C3 = "%L6D", b3 = 340, v3 = "PG5P", x3 = 175, I3 = 131, R3 = "ci4Q", A3 = "6qTk", M3 = 106, N3 = 129, T3 = 151, k3 = 194, F3 = "DbWE", O3 = 157, D3 = 20, L3 = 32, B3 = 1086, P2 = "lByz";
|
|
658
|
+
function z3(t5, e5, n5, r5, o2) {
|
|
659
|
+
return q(t5 - 370, e5);
|
|
652
660
|
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
return ot(e5 - -437, n5);
|
|
661
|
+
function W3(t5, e5, n5, r5, o2) {
|
|
662
|
+
return q(r5 - 998, o2);
|
|
656
663
|
}
|
|
657
|
-
|
|
658
|
-
|
|
664
|
+
const H3 = t4[J3(32, 58, e4)], $3 = t4[J3(-70, -99, n4)] ? new Date(t4[J3(17, -56, r4)]) : null, j2 = t4[J3(-45, -104, "d4X(")];
|
|
665
|
+
function G2(t5, e5, n5, r5, o2) {
|
|
666
|
+
return q(t5 - 412, o2);
|
|
659
667
|
}
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
t5
|
|
668
|
+
const U2 = [];
|
|
669
|
+
if ($3 ? isNaN($3) ? U2[G2(l4, 0, 0, 0, c4)](X2(156, 145, "g&NQ", h4)) : $3 < /* @__PURE__ */ new Date() && U2[X2(328, 287, d3, u3)](G2(1057, 0, 0, 0, g3) + $3[X2(269, 310, m3, f3)]()) : U2[X2(s4, 128, i4, 109)](J3(-72, a4, "9vcc")), o[J3(p3, _3, S3)]()) {
|
|
670
|
+
if (!j2) return U2[z3(929, c4)](J3(97, w3, y3)), U2;
|
|
671
|
+
const t5 = await V[W3(0, 0, 0, E3, C3)]();
|
|
672
|
+
t5 !== j2 && U2[X2(191, b3, "X3kZ", 240)](W3(0, 0, 0, 1644, v3) + j2 + W3(0, 0, 0, 1490, e4) + t5);
|
|
664
673
|
} else {
|
|
665
|
-
if (
|
|
666
|
-
if (
|
|
674
|
+
if (Y()) return U2;
|
|
675
|
+
if (H3 && 0 !== H3[X2(x3, I3, R3, 217)]) {
|
|
667
676
|
let t5 = false;
|
|
668
|
-
const e5 =
|
|
669
|
-
for (let n5 = 0; !t5 && n5 <
|
|
670
|
-
!t5 &&
|
|
671
|
-
} else
|
|
677
|
+
const e5 = K();
|
|
678
|
+
for (let n5 = 0; !t5 && n5 < H3[X2(k3, 119, F3, O3)]; n5++) t5 = e5[J3(D3, L3, "Namc")](H3[n5]);
|
|
679
|
+
!t5 && U2[G2(B3, 0, 0, 0, "Ut!w")](z3(860, P2));
|
|
680
|
+
} else U2[J3(-20, -103, A3)](X2(M3, N3, "DbWE", T3));
|
|
672
681
|
}
|
|
673
|
-
function
|
|
674
|
-
return
|
|
682
|
+
function J3(t5, e5, n5, r5, o2) {
|
|
683
|
+
return q(e5 - -597, n5);
|
|
675
684
|
}
|
|
676
|
-
function
|
|
677
|
-
return
|
|
685
|
+
function X2(t5, e5, n5, r5, o2) {
|
|
686
|
+
return q(r5 - -391, n5);
|
|
678
687
|
}
|
|
679
|
-
return
|
|
680
|
-
})(
|
|
681
|
-
return
|
|
688
|
+
return U2;
|
|
689
|
+
})(c3), t3);
|
|
690
|
+
return h3[a3 = k2, l3 = F2, H2(l3, 0, a3 - 1428)]()[n3 = O2, r3 = D2, s3 = "MOcW", i3 = 418, ut2(n3 - L2, r3 - B2, s3, i3 - z2)] > 0 && (lt2 = h3), h3;
|
|
682
691
|
} catch (e4) {
|
|
683
|
-
|
|
684
|
-
const e5 =
|
|
692
|
+
lt2 = ((t4) => {
|
|
693
|
+
const e5 = "L(lq";
|
|
685
694
|
function n4(t5, e6, n5, r5, o2) {
|
|
686
|
-
return
|
|
695
|
+
return q(r5 - 961, t5);
|
|
687
696
|
}
|
|
688
697
|
function r4(t5, e6, n5, r5, o2) {
|
|
689
|
-
return
|
|
698
|
+
return q(o2 - -324, t5);
|
|
690
699
|
}
|
|
691
|
-
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () =>
|
|
692
|
-
return [(
|
|
693
|
-
var
|
|
694
|
-
}, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[
|
|
700
|
+
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => n4("L(lq", 0, 0, 1589), exceptions: () => {
|
|
701
|
+
return [(e6 = "obtz", r5 = -157, n4(e6, 0, 0, r5 - -1672) + t4 + "'")];
|
|
702
|
+
var e6, r5;
|
|
703
|
+
}, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[r4("jDBb", 0, 0, 0, 300)]({}), keyFrom: () => t4, getBuildVersion: P[n4("T$6W", 0, 0, 1614)], getBuildDate: P[r4(e5, 0, 0, 0, 207)] };
|
|
695
704
|
})(t3);
|
|
696
705
|
}
|
|
697
|
-
var
|
|
706
|
+
var n3, r3, s3, i3, a3, l3;
|
|
698
707
|
};
|
|
699
|
-
|
|
700
|
-
let
|
|
701
|
-
function
|
|
702
|
-
return
|
|
703
|
-
}
|
|
704
|
-
if (
|
|
705
|
-
if (o[
|
|
706
|
-
if (!
|
|
707
|
-
const t3 = process[
|
|
708
|
-
e3 && (
|
|
708
|
+
nt[it2(i2, 0, 0, 0, "q*t#")] && (ct2 = await ht2(nt[it2(770, 0, 0, 0, a2)], nt[H2("q*t#", 0, 98)]));
|
|
709
|
+
let dt2 = false;
|
|
710
|
+
function ut2(t3, e3, n3, r3, o2) {
|
|
711
|
+
return U(0, 0, r3 - -821, n3);
|
|
712
|
+
}
|
|
713
|
+
if (rt && (dt2 = true, ct2 = tt(H2(l2, 0, -49))), !ct2) {
|
|
714
|
+
if (o[J2(0, 0, 0, "d4X(", 735)]()) {
|
|
715
|
+
if (!ct2) {
|
|
716
|
+
const t3 = process[J2(0, 0, 0, "9vcc", c2)], e3 = t3[ut2(0, 0, n2, -72)] || t3[H2(h2, 0, 41)] || t3[at2(0, d2, u2)] || t3[it2(812, 0, 0, 0, g2)];
|
|
717
|
+
e3 && (ct2 = await ht2(it2(749, 0, 0, 0, m2), e3));
|
|
709
718
|
}
|
|
710
|
-
if (!
|
|
711
|
-
const t3 = await
|
|
712
|
-
t3 && (
|
|
719
|
+
if (!ct2) {
|
|
720
|
+
const t3 = await V[J2(0, 0, 0, f2, p2)]();
|
|
721
|
+
t3 && (ct2 = await ht2(ut2(0, 0, "jMbQ", -21), t3));
|
|
713
722
|
}
|
|
714
|
-
!
|
|
723
|
+
!ct2 && (dt2 = true);
|
|
715
724
|
} else {
|
|
716
|
-
if (!
|
|
725
|
+
if (!ct2) try {
|
|
717
726
|
const t3 = await fetch("./" + st);
|
|
718
727
|
let e3 = null;
|
|
719
|
-
if (200 === t3[
|
|
720
|
-
const n3 = (await t3[
|
|
721
|
-
for (let t4 = 0; !e3 && t4 < n3[
|
|
722
|
-
const r3 = n3[t4][
|
|
723
|
-
r3[
|
|
728
|
+
if (200 === t3[H2("R#YL", 0, -89)]) {
|
|
729
|
+
const n3 = (await t3[at2(0, _2, S2)]())[J2(0, 0, 0, w2, 646)]("\n");
|
|
730
|
+
for (let t4 = 0; !e3 && t4 < n3[at2(0, "jDBb", 339)]; t4++) {
|
|
731
|
+
const r3 = n3[t4][H2("i9lf", 0, y2)]();
|
|
732
|
+
r3[ut2(0, 0, "d4X(", -E2)]("#") || 0 === r3[at2(0, "%L6D", 343)] || (e3 = r3);
|
|
724
733
|
}
|
|
725
734
|
}
|
|
726
735
|
if (e3) {
|
|
727
|
-
const t4 =
|
|
728
|
-
|
|
736
|
+
const t4 = H2("R#YL", 0, -C2) + st + "')";
|
|
737
|
+
ct2 = await ht2(t4, e3);
|
|
729
738
|
}
|
|
730
739
|
} catch (t3) {
|
|
731
740
|
}
|
|
732
|
-
!
|
|
741
|
+
!ct2 && Y() && (dt2 = true);
|
|
733
742
|
}
|
|
734
743
|
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
function Xt2(t3, e3, n3, r3, o2) {
|
|
739
|
-
return Q(0, 0, r3 - zt2, 0, e3);
|
|
740
|
-
}
|
|
741
|
-
function Yt2(t3, e3, n3, r3, o2) {
|
|
742
|
-
return tt(t3 - Pt2, 0, 0, n3);
|
|
743
|
-
}
|
|
744
|
-
function Qt2(t3, e3, n3, r3, o2) {
|
|
745
|
-
return X(o2 - 645, 0, e3);
|
|
746
|
-
}
|
|
747
|
-
if (!Gt2 && Jt2 && (Gt2 = Z(Xt2(744, "DLPi", Et2, 643))), !Gt2 && jt2 && (Gt2 = jt2), !Gt2 && (Gt2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [qt2(0, "rP*Q", 0, 0, 370)], isValidFor: (t3) => false, isValid: () => false, features: () => Object[Xt2(759, "]ztY", 809, 823)]({}), keyFrom: () => Yt2(986, 929, "v(gg"), getBuildVersion: P[Kt2(Ct2, bt2, vt2, 108, xt2)], getBuildDate: P[Kt2("v(gg", It2, Rt2, 88, At2)] }), et[Yt2(983, Mt2, "lINb")] = Gt2, $t2(Gt2), t2) {
|
|
748
|
-
if (!(et[Yt2(Nt2, 0, "plK!")] && et[qt2(0, "pLjC", 0, 0, 254)]) && (Jt2 || Gt2[Qt2(0, "plK!", 0, 0, 890)]()[Yt2(939, 0, Tt2)] > 0 || Gt2[qt2(0, kt2, 0, 0, Ft2)]()?.pb)) {
|
|
749
|
-
if (rt) return void setTimeout(() => {
|
|
744
|
+
if (!ct2 && dt2 && (ct2 = tt(it2(b2, 0, 0, 0, "R#YL"))), !ct2 && lt2 && (ct2 = lt2), !ct2 && (ct2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [ut2(0, 0, "obtz", -12)], isValidFor: (t3) => false, isValid: () => false, features: () => Object[J2(0, 0, 0, "R#YL", 830)]({}), keyFrom: () => ut2(0, 0, "lVP!", -55), getBuildVersion: P[ut2(0, 0, "g&NQ", -92)], getBuildDate: P[it2(727, 0, 0, 0, v2)] }), nt[at2(0, x2, 359)] = ct2, $2(ct2), t2) {
|
|
745
|
+
if (!(nt[ut2(0, 0, "1#SL", 15)] && nt[ut2(0, 0, "Namc", -18)]) && (dt2 || ct2[it2(I2, 0, 0, 0, a2)]()[J2(0, 0, 0, R2, 727)] > 0 || ct2[H2(A2, 0, 72)]()?.pb)) {
|
|
746
|
+
if (ot) return void setTimeout(() => {
|
|
750
747
|
var t3, e3;
|
|
751
|
-
this[t3 = "
|
|
748
|
+
this[t3 = "lVP!", e3 = N2, ut2(0, 0, t3, e3 - T2)](false, false);
|
|
752
749
|
}, 8e3);
|
|
753
|
-
await this[
|
|
750
|
+
await this[J2(0, 0, 0, M2, 773)](false, false);
|
|
754
751
|
}
|
|
755
752
|
}
|
|
756
|
-
return
|
|
753
|
+
return nt[it2(886, 0, 0, 0, "RhHr")];
|
|
757
754
|
}
|
|
758
|
-
async [
|
|
759
|
-
const e2 = "
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
function i2(t3, e3, n3, r3, o3) {
|
|
763
|
-
return Y(0, 0, 0, e3 - -884, o3);
|
|
764
|
-
}
|
|
765
|
-
function a2(t3, e3, n3, r3, o3) {
|
|
766
|
-
return U(0, 0, 0, t3, e3 - -1134);
|
|
767
|
-
}
|
|
768
|
-
function l2(t3, e3, n3, r3, o3) {
|
|
769
|
-
return Q(0, 0, t3 - 33, 0, n3);
|
|
755
|
+
async [Q("v#FS", 0, 0, 645)](t2) {
|
|
756
|
+
const e2 = "jMbQ", n2 = "j7DY", r2 = 313, o2 = "3DK5", s2 = "8Ih2", i2 = 407, a2 = "T&yu", l2 = 355, c2 = "fkmg", h2 = 540, d2 = 488;
|
|
757
|
+
function u2(t3, e3, n3, r3, o3) {
|
|
758
|
+
return Z(0, t3 - -1031, 0, 0, n3);
|
|
770
759
|
}
|
|
771
|
-
function
|
|
772
|
-
return
|
|
760
|
+
function g2(t3, e3, n3, r3, o3) {
|
|
761
|
+
return et(o3, 0, 0, r3 - d2);
|
|
773
762
|
}
|
|
774
|
-
|
|
763
|
+
nt[g2(1057, 924, 1084, 982, "%L6D")] = true;
|
|
764
|
+
const m2 = await this[g2(0, 0, 0, 1046, e2)]();
|
|
765
|
+
return await V[w2 = "lVP!", y2 = 1410, Z(0, y2 - -76, 0, 0, w2)](t2), !nt[_2 = 918, S2 = n2, X(0, S2, 0, _2 - h2)] && (m2[u2(r2, 0, o2)]() || m2[g2(0, 0, 0, 977, s2)]()[f2 = -99, p2 = "T$6W", X(0, p2, 0, f2 - -382)] > 0) && await this[u2(i2, 0, a2)](t2), Promise[u2(l2, 0, c2)]();
|
|
766
|
+
var f2, p2, _2, S2, w2, y2;
|
|
775
767
|
}
|
|
776
|
-
async [
|
|
777
|
-
const r2 =
|
|
778
|
-
function
|
|
779
|
-
return
|
|
768
|
+
async [U(0, 0, 725, "X3kZ")](t2 = false, e2 = false, n2 = false) {
|
|
769
|
+
const r2 = "RhHr", o2 = 76, s2 = 227, i2 = "1#SL", a2 = "d4X(", l2 = 184, c2 = 234, h2 = 258, d2 = "fkmg";
|
|
770
|
+
function u2(t3, e3, n3, r3, o3) {
|
|
771
|
+
return et(r3, 0, 0, e3 - -370);
|
|
780
772
|
}
|
|
781
|
-
function
|
|
782
|
-
return
|
|
773
|
+
function g2(t3, e3, n3, r3, o3) {
|
|
774
|
+
return X(0, e3, 0, o3 - -369);
|
|
783
775
|
}
|
|
784
|
-
|
|
785
|
-
const
|
|
786
|
-
var
|
|
787
|
-
|
|
776
|
+
nt[g2(61, "ei5)", 58, -12, 23)] = true;
|
|
777
|
+
const m2 = await this[g2(0, "RhHr", 0, 0, -8)]();
|
|
778
|
+
var f2, p2;
|
|
779
|
+
nt[g2(0, r2, 0, 0, o2)] || !(m2[f2 = s2, p2 = i2, U(0, 0, f2 - -569, p2)]() || m2[u2(0, 281, 0, a2)]()[u2(0, l2, 0, i2)] > 0) ? await V[u2(0, h2, 0, d2)](m2, t2, e2, n2) : await this[u2(0, c2, 0, "ci4Q")](t2);
|
|
788
780
|
}
|
|
789
|
-
async [
|
|
790
|
-
const n2 =
|
|
791
|
-
if (!t2 && (
|
|
792
|
-
function
|
|
793
|
-
return
|
|
781
|
+
async [Q("8Ih2", 0, 0, 559)](t2, e2) {
|
|
782
|
+
const n2 = 1216, r2 = 1212, s2 = "sqr4", i2 = 158, a2 = 215, l2 = 130, c2 = "^G3w", h2 = 881, d2 = "jDBb", u2 = "obtz";
|
|
783
|
+
if (!t2 && (nt[_2(1037, "tGb5", 1117, 1087)] || nt[_2(n2, "Namc", r2, 1153)])) return;
|
|
784
|
+
function g2(t3, e3, n3, r3, o2) {
|
|
785
|
+
return Z(0, e3 - -1699, 0, 0, n3);
|
|
794
786
|
}
|
|
795
|
-
var
|
|
796
|
-
|
|
797
|
-
const
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
return tt(r3 - 787, 0, 0, n3);
|
|
787
|
+
var m2, f2;
|
|
788
|
+
nt[g2(-348, -305, "T$6W", -308)] = true, nt[m2 = -434, f2 = s2, Q(f2, 0, 0, m2 - -1070)] = true, await this[E2(233, i2, 201, "qb00")](t2);
|
|
789
|
+
const p2 = o[E2(a2, l2, 130, c2)]();
|
|
790
|
+
function _2(t3, e3, n3, r3, o2) {
|
|
791
|
+
return Q(e3, 0, 0, r3 - 429);
|
|
801
792
|
}
|
|
802
|
-
|
|
793
|
+
const S2 = t2 || p2 ? console[w2 = h2, y2 = "]D$&", et(y2, 0, 0, w2 - 374)] : o[g2(0, -281, d2)];
|
|
794
|
+
var w2, y2;
|
|
795
|
+
function E2(t3, e3, n3, r3, o2) {
|
|
796
|
+
return Q(r3, 0, 0, e3 - -598);
|
|
797
|
+
}
|
|
798
|
+
p2 && S2(""), await this[g2(0, -216, u2)](t2, e2), S2("");
|
|
803
799
|
}
|
|
804
|
-
[
|
|
805
|
-
return this[t2 =
|
|
800
|
+
[Z(0, 1348, 0, 0, "%evM")]() {
|
|
801
|
+
return this[t2 = 117, e2 = "o6*O", Q(e2, 0, 0, t2 - -513)]();
|
|
806
802
|
var t2, e2;
|
|
807
803
|
}
|
|
808
|
-
[Q(
|
|
809
|
-
return this[e2 = "
|
|
804
|
+
[Q("Xc3j", 0, 0, 656)](t2) {
|
|
805
|
+
return this[e2 = "%L6D", n2 = -208, X(0, e2, 0, n2 - -474)](true, t2);
|
|
810
806
|
var e2, n2;
|
|
811
807
|
}
|
|
812
|
-
[
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
808
|
+
[X(0, "obtz", 0, 429)]() {
|
|
809
|
+
function t2(t3, e2, n2, r2, o2) {
|
|
810
|
+
return U(0, 0, n2 - -1078, o2);
|
|
811
|
+
}
|
|
812
|
+
return nt[t2(0, 0, -287, 0, "i9lf")] || nt[t2(0, 0, -332, 0, "DbWE")];
|
|
816
813
|
}
|
|
817
|
-
[
|
|
818
|
-
|
|
814
|
+
[U(0, 0, 765, "sqr4")](t2) {
|
|
815
|
+
ot = true;
|
|
819
816
|
}
|
|
820
|
-
async [
|
|
821
|
-
return this[t2 =
|
|
817
|
+
async [Z(0, 1315, 0, 0, "6!bh")]() {
|
|
818
|
+
return this[t2 = "T$6W", e2 = 407, et(t2, 0, 0, e2 - -120)](true);
|
|
822
819
|
var t2, e2;
|
|
823
820
|
}
|
|
824
|
-
async [
|
|
825
|
-
const n2 =
|
|
826
|
-
const s2 = await this[i2 = -741, a2 = "zkqq", tt(i2 - -1009, 0, 0, a2)]();
|
|
821
|
+
async [Q("L(lq", 0, 0, 657)](t2, e2) {
|
|
822
|
+
const n2 = 129, r2 = 342, o2 = "L(lq", s2 = await this[i2 = n2, a2 = "Xc3j", et(a2, 0, 0, i2 - -440)]();
|
|
827
823
|
var i2, a2, l2, c2;
|
|
828
|
-
return await this[l2 =
|
|
824
|
+
return await this[l2 = r2, c2 = o2, et(c2, 0, 0, l2 - -157)](true, t2, e2), s2;
|
|
829
825
|
}
|
|
830
|
-
async [
|
|
831
|
-
const t2 =
|
|
826
|
+
async [Z(0, 1378, 0, 0, "jDBb")]() {
|
|
827
|
+
const t2 = 437;
|
|
832
828
|
var e2, n2;
|
|
833
|
-
return await
|
|
829
|
+
return await V[e2 = "o6*O", n2 = 1034, Q(e2, 0, 0, n2 - t2)]();
|
|
834
830
|
}
|
|
835
831
|
}
|
|
836
832
|
const at = new it(), lt = (t2, e2) => {
|
|
@@ -1813,7 +1809,7 @@ const zt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1813
1809
|
default:
|
|
1814
1810
|
return e2.time({ width: "full" });
|
|
1815
1811
|
}
|
|
1816
|
-
},
|
|
1812
|
+
}, $t = { p: Ht, P: (t2, e2) => {
|
|
1817
1813
|
const n2 = t2.match(/(P+)(p+)?/) || [], r2 = n2[1], o2 = n2[2];
|
|
1818
1814
|
if (!o2) return Wt(t2, e2);
|
|
1819
1815
|
let s2;
|
|
@@ -1831,14 +1827,14 @@ const zt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1831
1827
|
s2 = e2.dateTime({ width: "full" });
|
|
1832
1828
|
}
|
|
1833
1829
|
return s2.replace("{{date}}", Wt(r2, e2)).replace("{{time}}", Ht(o2, e2));
|
|
1834
|
-
} },
|
|
1830
|
+
} }, Vt = /^D+$/, jt = /^Y+$/, Gt = ["D", "DD", "YY", "YYYY"];
|
|
1835
1831
|
function Ut(t2) {
|
|
1836
|
-
return
|
|
1832
|
+
return Vt.test(t2);
|
|
1837
1833
|
}
|
|
1838
|
-
function
|
|
1834
|
+
function qt(t2) {
|
|
1839
1835
|
return jt.test(t2);
|
|
1840
1836
|
}
|
|
1841
|
-
function
|
|
1837
|
+
function Jt(t2, e2, n2) {
|
|
1842
1838
|
const r2 = (function(t3, e3, n3) {
|
|
1843
1839
|
const r3 = "Y" === t3[0] ? "years" : "days of the month";
|
|
1844
1840
|
return `Use \`${t3.toLowerCase()}\` instead of \`${t3}\` (in \`${e3}\`) for formatting ${r3} to the input \`${n3}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
@@ -2044,13 +2040,13 @@ function ve(t2, e2, n2, r2) {
|
|
|
2044
2040
|
if (!e2) return t2 ? o2() : Zt(n2, r2?.in);
|
|
2045
2041
|
const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new ne(r2?.in, n2)], d2 = e2.match(we).map((t3) => {
|
|
2046
2042
|
const e3 = t3[0];
|
|
2047
|
-
if (e3 in
|
|
2048
|
-
return (0,
|
|
2043
|
+
if (e3 in $t) {
|
|
2044
|
+
return (0, $t[e3])(t3, i2.formatLong);
|
|
2049
2045
|
}
|
|
2050
2046
|
return t3;
|
|
2051
2047
|
}).join("").match(Se), u2 = [];
|
|
2052
2048
|
for (let n3 of d2) {
|
|
2053
|
-
!r2?.useAdditionalWeekYearTokens &&
|
|
2049
|
+
!r2?.useAdditionalWeekYearTokens && qt(n3) && Jt(n3, e2, t2), !r2?.useAdditionalDayOfYearTokens && Ut(n3) && Jt(n3, e2, t2);
|
|
2054
2050
|
const s3 = n3[0], a3 = _e[s3];
|
|
2055
2051
|
if (a3) {
|
|
2056
2052
|
const { incompatibleTokens: e3 } = a3;
|
|
@@ -2133,7 +2129,7 @@ function He(t2, e2, n2) {
|
|
|
2133
2129
|
var u2 = Math.floor(r2 * a2 / h2);
|
|
2134
2130
|
return [u2, r2 * a2 - u2 * h2, h2];
|
|
2135
2131
|
}
|
|
2136
|
-
function
|
|
2132
|
+
function $e(t2, e2, n2) {
|
|
2137
2133
|
if (t2 > 2958465 || t2 < 0) return null;
|
|
2138
2134
|
var r2 = 0 | t2, o2 = Math.floor(86400 * (t2 - r2)), s2 = 0, i2 = [], a2 = { D: r2, T: o2, u: 86400 * (t2 - r2) - o2, y: 0, m: 0, d: 0, H: 0, M: 0, S: 0, q: 0 };
|
|
2139
2135
|
if (Math.abs(a2.u) < 1e-6 && (a2.u = 0), e2 && e2.date1904 && (r2 += 1462), a2.u > 0.9999 && (a2.u = 0, 86400 === ++o2 && (a2.T = o2 = 0, ++r2, ++a2.D)), 60 === r2) i2 = n2 ? [1317, 10, 29] : [1900, 2, 29], s2 = 3;
|
|
@@ -2150,23 +2146,23 @@ function Ve(t2, e2, n2) {
|
|
|
2150
2146
|
}
|
|
2151
2147
|
return a2.y = i2[0], a2.m = i2[1], a2.d = i2[2], a2.S = o2 % 60, o2 = Math.floor(o2 / 60), a2.M = o2 % 60, o2 = Math.floor(o2 / 60), a2.H = o2, a2.q = s2, a2;
|
|
2152
2148
|
}
|
|
2153
|
-
var
|
|
2149
|
+
var Ve = new Date(1899, 11, 31, 0, 0, 0), je = Ve.getTime(), Ge = new Date(1900, 2, 1, 0, 0, 0);
|
|
2154
2150
|
function Ue(t2, e2 = false) {
|
|
2155
2151
|
var n2 = t2.getTime();
|
|
2156
|
-
return e2 ? n2 -= 1262304e5 : t2 >= Ge && (n2 += 864e5), (n2 - (je + 6e4 * (t2.getTimezoneOffset() -
|
|
2152
|
+
return e2 ? n2 -= 1262304e5 : t2 >= Ge && (n2 += 864e5), (n2 - (je + 6e4 * (t2.getTimezoneOffset() - Ve.getTimezoneOffset()))) / 864e5;
|
|
2157
2153
|
}
|
|
2158
|
-
function
|
|
2154
|
+
function qe(t2) {
|
|
2159
2155
|
return -1 === t2.indexOf(".") ? t2 : t2.replace(/(?:\.0*|(\.\d*[1-9])0+)$/, "$1");
|
|
2160
2156
|
}
|
|
2161
|
-
function
|
|
2157
|
+
function Je(t2) {
|
|
2162
2158
|
var e2, n2 = Math.floor(Math.log(Math.abs(t2)) * Math.LOG10E);
|
|
2163
2159
|
return e2 = n2 >= -4 && n2 <= -1 ? t2.toPrecision(10 + n2) : Math.abs(n2) <= 9 ? (function(t3) {
|
|
2164
|
-
var e3 = t3 < 0 ? 12 : 11, n3 =
|
|
2160
|
+
var e3 = t3 < 0 ? 12 : 11, n3 = qe(t3.toFixed(12));
|
|
2165
2161
|
return n3.length <= e3 || (n3 = t3.toPrecision(10)).length <= e3 ? n3 : t3.toExponential(5);
|
|
2166
2162
|
})(t2) : 10 === n2 ? t2.toFixed(10).substr(0, 12) : (function(t3) {
|
|
2167
|
-
var e3 =
|
|
2163
|
+
var e3 = qe(t3.toFixed(11));
|
|
2168
2164
|
return e3.length > (t3 < 0 ? 12 : 11) || "0" === e3 || "-0" === e3 ? t3.toPrecision(6) : e3;
|
|
2169
|
-
})(t2),
|
|
2165
|
+
})(t2), qe((function(t3) {
|
|
2170
2166
|
return -1 === t3.indexOf("E") ? t3 : t3.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/, "$1E").replace(/(E[+-])(\d)$/, "$10$2");
|
|
2171
2167
|
})(e2.toUpperCase()));
|
|
2172
2168
|
}
|
|
@@ -2177,7 +2173,7 @@ function Ke(t2, e2) {
|
|
|
2177
2173
|
case "boolean":
|
|
2178
2174
|
return t2 ? "TRUE" : "FALSE";
|
|
2179
2175
|
case "number":
|
|
2180
|
-
return (0 | t2) === t2 ? t2.toString(10) :
|
|
2176
|
+
return (0 | t2) === t2 ? t2.toString(10) : Je(t2);
|
|
2181
2177
|
case "undefined":
|
|
2182
2178
|
return "";
|
|
2183
2179
|
case "object":
|
|
@@ -2668,7 +2664,7 @@ function Sn(t2, e2, n2) {
|
|
|
2668
2664
|
case "B":
|
|
2669
2665
|
case "b":
|
|
2670
2666
|
if ("1" === t3.charAt(c2 + 1) || "2" === t3.charAt(c2 + 1)) {
|
|
2671
|
-
if (null == o2 && null == (o2 =
|
|
2667
|
+
if (null == o2 && null == (o2 = $e(e3, n3, "2" === t3.charAt(c2 + 1)))) return "";
|
|
2672
2668
|
a2[a2.length] = { t: "X", v: t3.substr(c2, 2) }, d2 = h2, c2 += 2;
|
|
2673
2669
|
break;
|
|
2674
2670
|
}
|
|
@@ -2687,7 +2683,7 @@ function Sn(t2, e2, n2) {
|
|
|
2687
2683
|
case "e":
|
|
2688
2684
|
case "g":
|
|
2689
2685
|
if (e3 < 0) return "";
|
|
2690
|
-
if (null == o2 && null == (o2 =
|
|
2686
|
+
if (null == o2 && null == (o2 = $e(e3, n3))) return "";
|
|
2691
2687
|
for (l2 = h2; ++c2 < t3.length && t3.charAt(c2).toLowerCase() === h2; ) l2 += h2;
|
|
2692
2688
|
"m" === h2 && "h" === d2.toLowerCase() && (h2 = "M"), "h" === h2 && (h2 = u2), a2[a2.length] = { t: h2, v: l2 }, d2 = h2;
|
|
2693
2689
|
break;
|
|
@@ -2695,14 +2691,14 @@ function Sn(t2, e2, n2) {
|
|
|
2695
2691
|
case "a":
|
|
2696
2692
|
case "上":
|
|
2697
2693
|
var p2 = { t: h2, v: h2 };
|
|
2698
|
-
if (null == o2 && (o2 =
|
|
2694
|
+
if (null == o2 && (o2 = $e(e3, n3)), "A/P" === t3.substr(c2, 3).toUpperCase() ? (null != o2 && (p2.v = o2.H >= 12 ? "P" : "A"), p2.t = "T", u2 = "h", c2 += 3) : "AM/PM" === t3.substr(c2, 5).toUpperCase() ? (null != o2 && (p2.v = o2.H >= 12 ? "PM" : "AM"), p2.t = "T", c2 += 5, u2 = "h") : "上午/下午" === t3.substr(c2, 5).toUpperCase() ? (null != o2 && (p2.v = o2.H >= 12 ? "下午" : "上午"), p2.t = "T", c2 += 5, u2 = "h") : (p2.t = "t", ++c2), null == o2 && "T" === p2.t) return "";
|
|
2699
2695
|
a2[a2.length] = p2, d2 = h2;
|
|
2700
2696
|
break;
|
|
2701
2697
|
case "[":
|
|
2702
2698
|
for (l2 = h2; "]" !== t3.charAt(c2++) && c2 < t3.length; ) l2 += t3.charAt(c2);
|
|
2703
2699
|
if ("]" !== l2.slice(-1)) throw new Error('unterminated "[" block: |' + l2 + "|");
|
|
2704
2700
|
if (l2.match(mn)) {
|
|
2705
|
-
if (null == o2 && null == (o2 =
|
|
2701
|
+
if (null == o2 && null == (o2 = $e(e3, n3))) return "";
|
|
2706
2702
|
a2[a2.length] = { t: "Z", v: l2.toLowerCase() }, d2 = l2.charAt(1);
|
|
2707
2703
|
} else l2.indexOf("$") > -1 && (l2 = (l2.match(/\$([^-[\]]*)/) || [])[1] || "$", fn(t3) || (a2[a2.length] = { t: "t", v: l2 }));
|
|
2708
2704
|
break;
|
|
@@ -2865,7 +2861,7 @@ function wn(t2, e2) {
|
|
|
2865
2861
|
}
|
|
2866
2862
|
const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe, load_table: function(t2) {
|
|
2867
2863
|
for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && wn(t2[e2], e2);
|
|
2868
|
-
}, parse_date_code:
|
|
2864
|
+
}, parse_date_code: $e, is_date: fn, get_table: function() {
|
|
2869
2865
|
return yn._table = Pe;
|
|
2870
2866
|
} }, 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) => {
|
|
2871
2867
|
const n2 = [...t2];
|
|
@@ -2891,14 +2887,14 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2891
2887
|
let e2 = t2[0], n2 = t2[1], r2 = t2[2];
|
|
2892
2888
|
e2 %= 360, e2 /= 360, n2 /= 100, r2 /= 100;
|
|
2893
2889
|
let o2 = r2 < 0.5 ? r2 * (1 + n2) : r2 + n2 - n2 * r2, s2 = 2 * r2 - o2;
|
|
2894
|
-
return [Math.max(0,
|
|
2895
|
-
},
|
|
2890
|
+
return [Math.max(0, $n(s2, o2, e2 + 1 / 3)), Math.max(0, $n(s2, o2, e2)), Math.max(0, $n(s2, o2, e2 - 1 / 3))];
|
|
2891
|
+
}, $n = (t2, e2, n2) => (n2 < 0 && (n2 += 1), n2 > 1 && (n2 -= 1), 6 * n2 < 1 ? t2 + 6 * (e2 - t2) * n2 : 2 * n2 < 1 ? e2 : 3 * n2 < 2 ? t2 + 6 * (e2 - t2) * (2 / 3 - n2) : t2), Vn = (t2) => {
|
|
2896
2892
|
let e2 = t2[0], n2 = t2[1], r2 = t2[2], o2 = Math.min(e2, Math.min(n2, r2)), s2 = Math.max(e2, Math.max(n2, r2)), i2 = 0;
|
|
2897
2893
|
s2 === o2 ? i2 = 0 : s2 === e2 ? i2 = (60 * (n2 - r2) / (s2 - o2) + 360) % 360 : s2 === n2 ? i2 = 60 * (r2 - e2) / (s2 - o2) + 120 : s2 === r2 && (i2 = 60 * (e2 - n2) / (s2 - o2) + 240);
|
|
2898
2894
|
const a2 = (s2 + o2) / 2;
|
|
2899
2895
|
let l2 = 0;
|
|
2900
2896
|
return l2 = s2 === o2 ? 0 : a2 <= 0.5 ? (s2 - o2) / (s2 + o2) : (s2 - o2) / (2 - s2 - o2), [i2, 100 * l2, 100 * a2];
|
|
2901
|
-
}, jn = 0, Gn = 1, Un = 2,
|
|
2897
|
+
}, jn = 0, Gn = 1, Un = 2, qn = 0, Jn = 1, Kn = 2, Xn = 0, Yn = 1, Qn = 2, Zn = (t2, e2) => {
|
|
2902
2898
|
let n2 = e2 / 100;
|
|
2903
2899
|
return ((t3, e3) => {
|
|
2904
2900
|
let n3 = Bn(t3);
|
|
@@ -2907,7 +2903,7 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2907
2903
|
return r2 = On(r2), r2;
|
|
2908
2904
|
})(t2, (t3, e3) => t3 * n2);
|
|
2909
2905
|
}, tr = 2.55, er = (t2, e2) => {
|
|
2910
|
-
const n2 =
|
|
2906
|
+
const n2 = Vn(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);
|
|
2911
2907
|
var i2, a2;
|
|
2912
2908
|
n2[2] = s2;
|
|
2913
2909
|
let l2 = Hn(n2);
|
|
@@ -2918,12 +2914,12 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2918
2914
|
let s2 = Pn(n2);
|
|
2919
2915
|
return s2 = On(s2), s2;
|
|
2920
2916
|
}, rr = (t2, e2, n2) => {
|
|
2921
|
-
let r2 =
|
|
2917
|
+
let r2 = Vn(e2), o2 = n2 / 1;
|
|
2922
2918
|
t2 === jn && (o2 = Ln(n2)), r2[t2] = o2;
|
|
2923
2919
|
let s2 = Hn(r2);
|
|
2924
2920
|
return s2 = On(s2), s2;
|
|
2925
2921
|
}, or = (t2, e2, n2) => {
|
|
2926
|
-
let r2 =
|
|
2922
|
+
let r2 = Vn(e2);
|
|
2927
2923
|
if (t2 === jn) {
|
|
2928
2924
|
let t3 = n2 / 360;
|
|
2929
2925
|
r2[jn] = 360 * (r2[jn] / 360 + t3), r2[jn] %= 360, r2[jn] < 0 && (r2[jn] -= 360);
|
|
@@ -2934,7 +2930,7 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2934
2930
|
let o2 = Hn(r2);
|
|
2935
2931
|
return o2 = On(o2), o2;
|
|
2936
2932
|
}, sr = (t2, e2, n2) => {
|
|
2937
|
-
let r2 =
|
|
2933
|
+
let r2 = Vn(e2), o2 = n2 / 100;
|
|
2938
2934
|
r2[t2] = r2[t2] * o2, t2 === jn && (r2[jn] = Ln(r2[jn]));
|
|
2939
2935
|
let s2 = Hn(r2);
|
|
2940
2936
|
return s2 = On(s2), s2;
|
|
@@ -2944,12 +2940,12 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2944
2940
|
let i2 = Pn(o2);
|
|
2945
2941
|
return i2 = On(i2), i2;
|
|
2946
2942
|
}, ar = (t2) => {
|
|
2947
|
-
let e2 = Bn(t2), n2 = 0.213 * e2[
|
|
2943
|
+
let e2 = Bn(t2), n2 = 0.213 * e2[qn] + 0.715 * e2[Jn] + 0.072 * e2[Kn];
|
|
2948
2944
|
e2[0] = n2, e2[1] = n2, e2[2] = n2;
|
|
2949
2945
|
let r2 = Pn(e2);
|
|
2950
2946
|
return r2 = On(r2), r2;
|
|
2951
2947
|
}, lr = (t2) => {
|
|
2952
|
-
let e2 =
|
|
2948
|
+
let e2 = Vn(t2);
|
|
2953
2949
|
e2[jn] += 180, e2[jn] %= 360, e2[jn] < 0 && (e2[jn] -= 360);
|
|
2954
2950
|
let n2 = Hn(e2);
|
|
2955
2951
|
return n2 = On(n2), n2;
|
|
@@ -3103,16 +3099,16 @@ const xr = () => vr || (vr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3103
3099
|
return e2;
|
|
3104
3100
|
}, Or = "=", Dr = "<>", Lr = ">", Br = "<", Pr = ">=", zr = "<=", Wr = /* @__PURE__ */ new Map();
|
|
3105
3101
|
Wr.set(Or, (t2, e2) => t2 === e2), Wr.set(Dr, (t2, e2) => t2 !== e2), Wr.set(Lr, (t2, e2) => t2 > e2), Wr.set(Br, (t2, e2) => t2 < e2), Wr.set(Pr, (t2, e2) => t2 >= e2), Wr.set(zr, (t2, e2) => t2 <= e2);
|
|
3106
|
-
const Hr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i,
|
|
3102
|
+
const Hr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, Vr = /\[(.*?)\]/g, jr = (t2, e2) => {
|
|
3107
3103
|
const n2 = { color: null, condition: null };
|
|
3108
|
-
let r2 = null, o2 = new RegExp(
|
|
3104
|
+
let r2 = null, o2 = new RegExp(Vr);
|
|
3109
3105
|
for (; null !== (r2 = o2.exec(t2)); ) {
|
|
3110
3106
|
let e3 = false, o3 = Hr.exec(r2[1]);
|
|
3111
3107
|
if (o3) {
|
|
3112
3108
|
if (e3 = true, n2.color) throw new Error(`format error, two colors specified: '${t2}' and '${n2.color}'.`);
|
|
3113
3109
|
n2.color = Fr(o3[1]), n2.color || console.warn("Unable to parse LegacyColor", o3[1]);
|
|
3114
3110
|
}
|
|
3115
|
-
let s2 =
|
|
3111
|
+
let s2 = $r.exec(r2[1]);
|
|
3116
3112
|
if (s2) {
|
|
3117
3113
|
if (e3 = true, n2.condition) throw new Error(`Format error, two conditions specified: ' ${t2}'`);
|
|
3118
3114
|
n2.condition = { op: s2[1], comp: parseFloat(s2[2]) };
|
|
@@ -3144,7 +3140,7 @@ const Hr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr =
|
|
|
3144
3140
|
}
|
|
3145
3141
|
}, Ur = (t2) => {
|
|
3146
3142
|
if (t2 === br.MediumDate || t2 === br.LongDate || t2 === br.ShortDate || t2 === br.MediumTime || t2 === br.LongTime || t2 === br.ShortTime) return true;
|
|
3147
|
-
},
|
|
3143
|
+
}, qr = (t2, e2) => t2 === e2 ? 0 : Ur(t2) ? 1 : Ur(e2) ? -1 : t2 === br.Percentage ? 1 : e2 === br.Percentage ? -1 : t2 === br.Currency || t2 === br.Accounting ? 1 : e2 === br.Currency || e2 === br.Accounting ? -1 : 0, Jr = (t2) => (t2 instanceof Date || "[object Date]" === Object.prototype.toString.call(t2)) && !isNaN(t2.getTime()), Kr = (t2, e2, n2) => {
|
|
3148
3144
|
return "month" === n2 || "months" === n2 || "m" === n2 ? (r2 = t2, 12 * ((o2 = e2).getUTCFullYear() - r2.getUTCFullYear()) + (o2.getUTCMonth() - r2.getUTCMonth()) + (o2.getUTCDate() - r2.getUTCDate() < 0 ? -1 : 0)) : "year" === n2 || "years" === n2 || "y" === n2 ? ((t3, e3) => Math.abs(e3.getFullYear() - t3.getFullYear()))(t2, e2) : "day" === n2 || "days" === n2 || "d" === n2 ? ((t3, e3) => Math.floor((Date.UTC(e3.getFullYear(), e3.getMonth(), e3.getDate()) - Date.UTC(t3.getFullYear(), t3.getMonth(), t3.getDate())) / 864e5))(t2, e2) : void console.warn("invalid unit" + n2);
|
|
3149
3145
|
var r2, o2;
|
|
3150
3146
|
}, Xr = "d", Yr = "m", Qr = "y", Zr = (t2, e2, n2) => {
|
|
@@ -3270,7 +3266,7 @@ const Hr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr =
|
|
|
3270
3266
|
let n3 = s2;
|
|
3271
3267
|
ro[t3].containsDot ? n3 = i2 : ro[t3].containsDash && (n3 = a2);
|
|
3272
3268
|
let c2 = ve(n3, ro[t3].parseFormat, r2, go), h2 = yn.dateNumLocal(c2, e2);
|
|
3273
|
-
if (
|
|
3269
|
+
if (Jr(c2) && (ro[t3].windowYear || h2 > 0)) {
|
|
3274
3270
|
if (ro[t3].windowYear) {
|
|
3275
3271
|
let t4 = c2.getFullYear() <= 29 ? 2e3 + c2.getFullYear() : 1900 + c2.getFullYear();
|
|
3276
3272
|
c2.setFullYear(t4);
|
|
@@ -3344,12 +3340,12 @@ const Eo = (t2, e2, n2 = 1e3) => {
|
|
|
3344
3340
|
const r2 = bo(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
|
|
3345
3341
|
return e2 ? Co(o2, true) : o2;
|
|
3346
3342
|
}, getFileNameExtension: bo, isQuoted: (t2) => t2 && t2.length > 1 && Ro.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Lo, isValidHttpUrl: Oo, numberToAlphabet: Bo, quote: ko, snakeToCamel: vo, splitUnquoted: Fo, unquote: To }, Symbol.toStringTag, { value: "Module" })), zo = (t2, e2, n2, r2 = null) => {
|
|
3347
|
-
const o2 = (e2 || 11 *
|
|
3343
|
+
const o2 = (e2 || 11 * Jo.getDeviceScale()) / Jo.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
|
|
3348
3344
|
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));
|
|
3349
3345
|
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 };
|
|
3350
3346
|
}, Wo = () => zo;
|
|
3351
3347
|
let Ho = "./packages/sdk/src/__tests__/fonts/";
|
|
3352
|
-
const
|
|
3348
|
+
const $o = /* @__PURE__ */ new Map(), Vo = /* @__PURE__ */ new Set(), jo = (t2, e2, n2, r2 = null) => {
|
|
3353
3349
|
const o2 = e2, s2 = Ho + n2.toLowerCase() + ".ttf";
|
|
3354
3350
|
let i2 = null;
|
|
3355
3351
|
try {
|
|
@@ -3360,10 +3356,10 @@ const Vo = /* @__PURE__ */ new Map(), $o = /* @__PURE__ */ new Set(), jo = (t2,
|
|
|
3360
3356
|
i2 = R(Ho + "calibri.ttf");
|
|
3361
3357
|
} catch (t3) {
|
|
3362
3358
|
}
|
|
3363
|
-
if (!i2) return
|
|
3359
|
+
if (!i2) return Vo.has(s2) || Vo.add(s2), Wo().call(null, t2, e2, n2, r2);
|
|
3364
3360
|
const a2 = `${s2}${t2}${o2}`;
|
|
3365
|
-
let l2 =
|
|
3366
|
-
l2 || (l2 = i2.layout(t2), t2.length < 2 &&
|
|
3361
|
+
let l2 = $o.get(a2);
|
|
3362
|
+
l2 || (l2 = i2.layout(t2), t2.length < 2 && $o.set(a2, l2));
|
|
3367
3363
|
const c2 = o2;
|
|
3368
3364
|
let h2 = Math.max(0, l2.bbox.width / i2.unitsPerEm * c2), d2 = i2.ascent || 0;
|
|
3369
3365
|
const u2 = d2 - (i2.descent || 0);
|
|
@@ -3378,18 +3374,18 @@ const Vo = /* @__PURE__ */ new Map(), $o = /* @__PURE__ */ new Set(), jo = (t2,
|
|
|
3378
3374
|
};
|
|
3379
3375
|
let Go = null;
|
|
3380
3376
|
const Uo = () => 96 / 72;
|
|
3381
|
-
let
|
|
3382
|
-
var
|
|
3383
|
-
(Ko =
|
|
3384
|
-
|
|
3385
|
-
}, Ko.getSharedMeasurer = () =>
|
|
3377
|
+
let qo = null;
|
|
3378
|
+
var Jo, Ko;
|
|
3379
|
+
(Ko = Jo || (Jo = {})).Style = { Normal: "normal", Italic: "italic" }, Ko.Scheme = { Major: "major", Minor: "minor", None: "none" }, Ko.UnderlineStyle = { None: "none", Double: "double", DoubleAccounting: "doubleAccounting", Single: "single", SingleAccounting: "singleAccounting" }, Ko.VerticalAlignment = { Baseline: "baseline", Sub: "sub", Super: "super" }, Ko.setSharedMeasurer = (t2) => {
|
|
3380
|
+
qo = t2;
|
|
3381
|
+
}, Ko.getSharedMeasurer = () => qo || (qo = (() => {
|
|
3386
3382
|
if (Go) return Go;
|
|
3387
3383
|
try {
|
|
3388
3384
|
Go = jo;
|
|
3389
3385
|
} catch {
|
|
3390
3386
|
}
|
|
3391
3387
|
return Go || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Go = Wo()), Go;
|
|
3392
|
-
})(),
|
|
3388
|
+
})(), qo), Ko.getDeviceScale = () => Uo(), Ko.getPanoseFallback = (t2) => {
|
|
3393
3389
|
const e2 = [], n2 = t2.length;
|
|
3394
3390
|
for (let r3 = 0; r3 < n2; r3 += 2) e2.push(parseInt(t2.substring(r3, r3 + 2), 16));
|
|
3395
3391
|
const r2 = e2[0], o2 = e2[1], s2 = e2[3];
|
|
@@ -3430,7 +3426,7 @@ class Xo {
|
|
|
3430
3426
|
}
|
|
3431
3427
|
}
|
|
3432
3428
|
const Yo = ["Arial", "Arial Black", "Brush Script MT", "Calibri", "Comic Sans MS", "Courier New", "Garamond", "Georgia", "Impact", "Luminari", "Palatino Linotype", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana"], Qo = /* @__PURE__ */ new Map();
|
|
3433
|
-
Qo.set(
|
|
3429
|
+
Qo.set(Jo.GenericName.Serif, ["Tahoma"]), Qo.set(Jo.GenericName.SanSerif, ["Calibri"]), Qo.set(Jo.GenericName.MonoSpace, ["Courier New"]), Qo.set(Jo.GenericName.Cursive, ["Comic Sans MS"]), Qo.set(Jo.GenericName.Fantasy, ["Luminari"]), Qo.set(Jo.GenericName.UISystem, ["Arial"]), Qo.set(Jo.GenericName.UISerif, ["Tahoma"]), Qo.set(Jo.GenericName.UISanSerif, ["Arial"]), Qo.set(Jo.GenericName.UIMonoSpace, ["Courier New"]), Qo.set(Jo.GenericName.UIRounded, ["Arial"]), Qo.set(Jo.GenericName.Math, []), Qo.set(Jo.GenericName.Emoji, []), Qo.set(Jo.GenericName.Fangsong, []);
|
|
3434
3430
|
const Zo = /* @__PURE__ */ new Map();
|
|
3435
3431
|
let ts = [];
|
|
3436
3432
|
ns(Yo);
|
|
@@ -3771,7 +3767,7 @@ class ds {
|
|
|
3771
3767
|
return this._breaker = null, this._linesRead = [], r2;
|
|
3772
3768
|
}
|
|
3773
3769
|
}
|
|
3774
|
-
const us = (t2, e2, n2, r2 = null, o2 =
|
|
3770
|
+
const us = (t2, e2, n2, r2 = null, o2 = Jo.getSharedMeasurer()) => {
|
|
3775
3771
|
let s2 = "", i2 = null, l2 = null;
|
|
3776
3772
|
const c2 = t2.paragraphs, h2 = c2.length;
|
|
3777
3773
|
for (let t3 = 0; t3 < h2; t3++) {
|
|
@@ -3779,7 +3775,7 @@ const us = (t2, e2, n2, r2 = null, o2 = qo.getSharedMeasurer()) => {
|
|
|
3779
3775
|
for (let t4 = 0; t4 < n3; t4++) s2 += e3[t4].text, 0 === t4 && (i2 = e3[t4]);
|
|
3780
3776
|
0 === t3 && (l2 = c2[t3]);
|
|
3781
3777
|
}
|
|
3782
|
-
const d2 = t2.insets ?? a.EmptyRect, u2 = new ds(o2), g2 = r2?.width ? r2.width - d2.right - d2.left : r2?.width, m2 = r2?.height ? r2.height - d2.bottom - d2.top : null, f2 = u2.wrap(s2, { fontName: i2.fontName, fontSize: i2.fontSize *
|
|
3778
|
+
const d2 = t2.insets ?? a.EmptyRect, u2 = new ds(o2), g2 = r2?.width ? r2.width - d2.right - d2.left : r2?.width, m2 = r2?.height ? r2.height - d2.bottom - d2.top : null, f2 = u2.wrap(s2, { fontName: i2.fontName, fontSize: i2.fontSize * Jo.getDeviceScale(), bold: i2.bold, italic: i2.italic, superSub: i2.superSub, letterSpacing: i2.letterSpacing, maxWidth: t2.wrapped && g2 ? g2 : null, maxHeight: m2 });
|
|
3783
3779
|
let p2 = [];
|
|
3784
3780
|
const _2 = f2.lines, S2 = _2.length, w2 = new Array(S2);
|
|
3785
3781
|
for (let t3 = 0; t3 < S2; t3++) {
|
|
@@ -3797,7 +3793,7 @@ const us = (t2, e2, n2, r2 = null, o2 = qo.getSharedMeasurer()) => {
|
|
|
3797
3793
|
return e2 ? 1 : n2 ? -1 : 0;
|
|
3798
3794
|
}, ms = (t2, e2, n2, r2, o2 = false) => {
|
|
3799
3795
|
if (null == t2) return null;
|
|
3800
|
-
const s2 = new cs({ text: t2, fontName: e2.toCSS().fontFamily, fontSize: e2.getSize(), bold: e2.getWeight() > 400, italic: e2.getStyle() ===
|
|
3796
|
+
const s2 = new cs({ text: t2, fontName: e2.toCSS().fontFamily, fontSize: e2.getSize(), bold: e2.getWeight() > 400, italic: e2.getStyle() === Jo.Style.Italic, superSub: !o2 && (e2.getVerticalAlignment() === Jo.VerticalAlignment.Sub || e2.getVerticalAlignment() === Jo.VerticalAlignment.Super), letterSpacing: e2.getLetterSpacing() }), i2 = o2 ? wo.HorizontalAlignment.Left : n2.getHorizontal(), a2 = n2.getVertical(), l2 = new ls({ runs: [s2], align: i2 });
|
|
3801
3797
|
let c2 = [];
|
|
3802
3798
|
c2.push(new hs(null, e2.getSize(), [s2]));
|
|
3803
3799
|
return new ss({ paragraphs: [l2], wrapped: r2 && (n2.getOverflow() === wo.Overflow.Wrap || i2 === wo.HorizontalAlignment.Justify || i2 === wo.HorizontalAlignment.Distributed || a2 === wo.VerticalAlignment.Justify || a2 === wo.VerticalAlignment.Distributed), verticalAlignment: a2 }, e2, n2, c2);
|
|
@@ -3963,7 +3959,7 @@ var ks, Fs, Os, Ds, Ls, Bs;
|
|
|
3963
3959
|
this._options = t3;
|
|
3964
3960
|
}
|
|
3965
3961
|
canFill(t3, e3) {
|
|
3966
|
-
return
|
|
3962
|
+
return Jr(t3);
|
|
3967
3963
|
}
|
|
3968
3964
|
createFillAt(t3, e3) {
|
|
3969
3965
|
e3 = { ...this._options, ...e3 };
|
|
@@ -4242,14 +4238,14 @@ const zs = new class {
|
|
|
4242
4238
|
}
|
|
4243
4239
|
}(), Ws = [{ scheme: Ls.Scheme.Tx1, description: "First Text Color" }, { scheme: Ls.Scheme.Tx2, description: "Second Text Color" }, { scheme: Ls.Scheme.Bg1, description: "First Background Color" }, { scheme: Ls.Scheme.Bg2, description: "Second Background Color" }, { scheme: Ls.Scheme.Accent1, description: "Accent 1" }, { scheme: Ls.Scheme.Accent2, description: "Accent 2" }, { scheme: Ls.Scheme.Accent3, description: "Accent 3" }, { scheme: Ls.Scheme.Accent4, description: "Accent 4" }, { scheme: Ls.Scheme.Accent5, description: "Accent 5" }, { scheme: Ls.Scheme.Accent6, description: "Accent 6" }, { scheme: Ls.Scheme.Hlink, description: "Hyperlink" }, { scheme: Ls.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();
|
|
4244
4240
|
for (let t2 = 0; t2 < Ws.length; t2++) Hs.set(Ws[t2].scheme.toLowerCase(), Ws[t2]);
|
|
4245
|
-
const
|
|
4246
|
-
let o2 =
|
|
4241
|
+
const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], alpha: void 0 !== t2.alpha ? t2.alpha : 1 } : null, Vs = function(t2, e2, n2, r2) {
|
|
4242
|
+
let o2 = $s(((t3) => {
|
|
4247
4243
|
let e3 = zs.valueOfName(t3);
|
|
4248
4244
|
return e3 ? new pr.RGBA(e3.rgbaColor.r, e3.rgbaColor.g, e3.rgbaColor.b, e3.rgbaColor.a) : null;
|
|
4249
4245
|
})(t2)), s2 = null, i2 = null, a2 = null;
|
|
4250
4246
|
if (null === o2 && (l2 = t2, Hs.get(l2.toLowerCase()))) {
|
|
4251
4247
|
if (!e2) throw new Error("a scheme val was used but a schemeLookup was not provided");
|
|
4252
|
-
s2 = t2, i2 = e2(s2), o2 =
|
|
4248
|
+
s2 = t2, i2 = e2(s2), o2 = $s(i2), a2 = Ls.Type.Scheme;
|
|
4253
4249
|
}
|
|
4254
4250
|
var l2;
|
|
4255
4251
|
if (null === o2) {
|
|
@@ -4292,8 +4288,8 @@ const Vs = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
|
|
|
4292
4288
|
return { srgbAlpha: o2, key: s2, color: i2, type: a2 };
|
|
4293
4289
|
}, js = /* @__PURE__ */ new Map(), Gs = Object.keys(Ls.AdjustmentType);
|
|
4294
4290
|
for (let t2 = 0; t2 < Gs.length; t2++) js.set(Ls.AdjustmentType[Gs[t2]].toLowerCase(), Ls.AdjustmentType[Gs[t2]]);
|
|
4295
|
-
const Us = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
|
|
4296
|
-
let
|
|
4291
|
+
const Us = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), qs = new RegExp("\\s*[,]\\s*|\\s+");
|
|
4292
|
+
let Js = null;
|
|
4297
4293
|
const Ks = { [Ls.Scheme.Bg1]: "window", [Ls.Scheme.Bg2]: "E7E6E6", [Ls.Scheme.Tx1]: "windowText", [Ls.Scheme.Tx2]: "44546A", [Ls.Scheme.Accent1]: "4472C4", [Ls.Scheme.Accent2]: "ED7D31", [Ls.Scheme.Accent3]: "A5A5A5", [Ls.Scheme.Accent4]: "FFC000", [Ls.Scheme.Accent5]: "5B9BD5", [Ls.Scheme.Accent6]: "70AD47", [Ls.Scheme.Hlink]: "0563C1", [Ls.Scheme.FolHlink]: "954F72" };
|
|
4298
4294
|
class Xs {
|
|
4299
4295
|
constructor(t2, e2, n2, r2 = null) {
|
|
@@ -4304,13 +4300,13 @@ class Xs {
|
|
|
4304
4300
|
o2 = e3.val, s2 = e3.adjs;
|
|
4305
4301
|
} else t2?.val && (o2 = t2.val, s2 = t2.adjs);
|
|
4306
4302
|
if (!o2) throw new Error("Unable to determine color value");
|
|
4307
|
-
this._private = { val: o2, adjs: s2, schemeLookup: e2, indexedLookup: n2, parsedVal:
|
|
4303
|
+
this._private = { val: o2, adjs: s2, schemeLookup: e2, indexedLookup: n2, parsedVal: Vs(o2, e2, n2), adjusted: null, resolved: null };
|
|
4308
4304
|
}
|
|
4309
4305
|
_parse(t2) {
|
|
4310
4306
|
let e2 = null, n2 = t2.toLowerCase().trim();
|
|
4311
4307
|
const r2 = n2.split(Us);
|
|
4312
4308
|
if (r2 && (e2 = r2[0], n2 = n2.substring(e2.length, n2.length).trim()), !e2) throw new Error("no color key found");
|
|
4313
|
-
const o2 = [], s2 = n2.split(
|
|
4309
|
+
const o2 = [], s2 = n2.split(qs);
|
|
4314
4310
|
for (let t3 = 0; t3 < s2.length; t3++) {
|
|
4315
4311
|
const e3 = s2[t3];
|
|
4316
4312
|
if (!e3) continue;
|
|
@@ -4340,9 +4336,9 @@ class Xs {
|
|
|
4340
4336
|
return [s3(n3[0] * i2 + n3[1] * a2 + n3[2] * l2), s3(n3[3] * i2 + n3[4] * a2 + n3[5] * l2), s3(n3[6] * i2 + n3[7] * a2 + n3[8] * l2)];
|
|
4341
4337
|
})(n2, 180), n2 = cr(n2, false);
|
|
4342
4338
|
let r2 = Bn(n2);
|
|
4343
|
-
const o2 =
|
|
4339
|
+
const o2 = Vn(r2);
|
|
4344
4340
|
if (o2[Un] = 0.95 * o2[Un], r2 = Hn(o2), n2 = Pn(r2), n2 = Fn(n2), n2 = On(n2, false), t2) return new pr.RGBA(n2[0], n2[1], n2[2], e2.alpha);
|
|
4345
|
-
const s2 =
|
|
4341
|
+
const s2 = Vn(Bn(n2));
|
|
4346
4342
|
return new pr.HSLA(s2[0], s2[1], s2[2], e2.alpha);
|
|
4347
4343
|
}
|
|
4348
4344
|
_resolve() {
|
|
@@ -4351,12 +4347,12 @@ class Xs {
|
|
|
4351
4347
|
let t3 = this._private.schemeLookup(this._private.parsedVal.key);
|
|
4352
4348
|
if (t3 === this._private.parsedVal.color || t3?.isEqual(this._private.parsedVal.color)) return;
|
|
4353
4349
|
}
|
|
4354
|
-
const t2 =
|
|
4350
|
+
const t2 = Vs(this._private.val, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
|
|
4355
4351
|
let e2 = ((t3, e3) => {
|
|
4356
4352
|
let n3 = [...t3.srgb], r3 = void 0 !== t3.alpha ? t3.alpha : 1;
|
|
4357
4353
|
for (var o2 = 0; e3 && o2 < e3.length; o2++) {
|
|
4358
4354
|
const t4 = e3[o2], s2 = Object.keys(t4)[0], i2 = t4[s2];
|
|
4359
|
-
s2 === Ls.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.Hue ? n3 = rr(jn, n3, i2) : s2 === Ls.AdjustmentType.Sat ? n3 = rr(Gn, n3, i2) : s2 === Ls.AdjustmentType.Lum ? n3 = rr(Un, n3, i2) : s2 === Ls.AdjustmentType.HueOff ? n3 = or(jn, n3, i2) : s2 === Ls.AdjustmentType.SatOff ? n3 = or(Gn, n3, i2) : s2 === Ls.AdjustmentType.LumOff ? n3 = or(Un, n3, i2) : s2 === Ls.AdjustmentType.HueMod ? n3 = sr(jn, n3, i2) : s2 === Ls.AdjustmentType.SatMod ? n3 = sr(Gn, n3, i2) : s2 === Ls.AdjustmentType.LumMod ? n3 = sr(Un, n3, i2) : s2 === Ls.AdjustmentType.Red ? n3 = ir(
|
|
4355
|
+
s2 === Ls.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.Hue ? n3 = rr(jn, n3, i2) : s2 === Ls.AdjustmentType.Sat ? n3 = rr(Gn, n3, i2) : s2 === Ls.AdjustmentType.Lum ? n3 = rr(Un, n3, i2) : s2 === Ls.AdjustmentType.HueOff ? n3 = or(jn, n3, i2) : s2 === Ls.AdjustmentType.SatOff ? n3 = or(Gn, n3, i2) : s2 === Ls.AdjustmentType.LumOff ? n3 = or(Un, n3, i2) : s2 === Ls.AdjustmentType.HueMod ? n3 = sr(jn, n3, i2) : s2 === Ls.AdjustmentType.SatMod ? n3 = sr(Gn, n3, i2) : s2 === Ls.AdjustmentType.LumMod ? n3 = sr(Un, n3, i2) : s2 === Ls.AdjustmentType.Red ? n3 = ir(qn, n3, i2, Xn) : s2 === Ls.AdjustmentType.Green ? n3 = ir(Jn, n3, i2, Xn) : s2 === Ls.AdjustmentType.Blue ? n3 = ir(Kn, n3, i2, Xn) : s2 === Ls.AdjustmentType.RedOff ? n3 = ir(qn, n3, i2, Yn) : s2 === Ls.AdjustmentType.GreenOff ? n3 = ir(Jn, n3, i2, Yn) : s2 === Ls.AdjustmentType.BlueOff ? n3 = ir(Kn, n3, i2, Yn) : s2 === Ls.AdjustmentType.RedMod ? n3 = ir(qn, n3, i2, Qn) : s2 === Ls.AdjustmentType.GreenMod ? n3 = ir(Jn, n3, i2, Qn) : s2 === Ls.AdjustmentType.BlueMod ? n3 = ir(Kn, n3, i2, Qn) : s2 === Ls.AdjustmentType.Shade ? n3 = Zn(n3, i2) : s2 === Ls.AdjustmentType.Tint ? n3 = nr(n3, i2) : s2 === Ls.AdjustmentType.ETint ? n3 = er(n3, i2) : s2 === Ls.AdjustmentType.Gray ? n3 = ar(n3) : s2 === Ls.AdjustmentType.Comp ? n3 = lr(n3) : s2 === Ls.AdjustmentType.Inv ? n3 = cr(n3, i2) : s2 === Ls.AdjustmentType.Gamma ? n3 = hr(n3) : s2 === Ls.AdjustmentType.InvGamma ? n3 = dr(n3) : console.warn("unknown adjustmentType: " + s2);
|
|
4360
4356
|
}
|
|
4361
4357
|
return { srgb: n3, alpha: r3 };
|
|
4362
4358
|
})(t2.srgbAlpha, this._private.adjs), n2 = ((t3, e3 = 255) => {
|
|
@@ -4378,7 +4374,7 @@ class Xs {
|
|
|
4378
4374
|
t4 && (s2 = t4[0], i2 = i2.substring(s2.length, i2.length).trim());
|
|
4379
4375
|
}
|
|
4380
4376
|
if (!s2) throw new Error("no color found");
|
|
4381
|
-
const t3 = [], o3 = i2.split(
|
|
4377
|
+
const t3 = [], o3 = i2.split(qs);
|
|
4382
4378
|
for (let e3 = 0; e3 < o3.length; e3++) {
|
|
4383
4379
|
const n3 = o3[e3];
|
|
4384
4380
|
if (!n3) continue;
|
|
@@ -4401,15 +4397,15 @@ class Xs {
|
|
|
4401
4397
|
return a2;
|
|
4402
4398
|
}
|
|
4403
4399
|
static getDefaultSchemeLookup() {
|
|
4404
|
-
if (!
|
|
4400
|
+
if (!Js) {
|
|
4405
4401
|
const t2 = /* @__PURE__ */ new Map(), e2 = Object.keys(Ks);
|
|
4406
4402
|
for (let n2 = 0; n2 < e2.length; n2++) {
|
|
4407
4403
|
const r2 = e2[n2];
|
|
4408
4404
|
t2.set(r2.toLowerCase(), Xs.parse(Ks[r2], null));
|
|
4409
4405
|
}
|
|
4410
|
-
|
|
4406
|
+
Js = (e3) => t2.get(e3.toLowerCase())?.toRGBA();
|
|
4411
4407
|
}
|
|
4412
|
-
return
|
|
4408
|
+
return Js;
|
|
4413
4409
|
}
|
|
4414
4410
|
isEqual(t2) {
|
|
4415
4411
|
return t2 instanceof Xs && this.toString().toLowerCase() === t2.toString().toLowerCase();
|
|
@@ -4435,7 +4431,7 @@ class Xs {
|
|
|
4435
4431
|
}
|
|
4436
4432
|
toHSLA(t2 = false) {
|
|
4437
4433
|
if (this._resolve(), t2) return this._forceDark(false);
|
|
4438
|
-
let e2 =
|
|
4434
|
+
let e2 = Vn(this._private.adjusted.srgb);
|
|
4439
4435
|
return new pr.HSLA(e2[0], e2[1], e2[2], Dn(this._private.adjusted.alpha ?? 1));
|
|
4440
4436
|
}
|
|
4441
4437
|
toHex(t2 = false) {
|
|
@@ -4753,7 +4749,7 @@ class Hi {
|
|
|
4753
4749
|
return e2 && (t2.name = e2), t2;
|
|
4754
4750
|
}
|
|
4755
4751
|
}
|
|
4756
|
-
class
|
|
4752
|
+
class $i {
|
|
4757
4753
|
constructor(t2, e2 = null, n2 = null) {
|
|
4758
4754
|
if (this._cacheColors = /* @__PURE__ */ new Map(), !e2 && t2?.name) {
|
|
4759
4755
|
const n3 = Bi ? Bi.get(t2.name.toLowerCase()) : null;
|
|
@@ -4807,7 +4803,7 @@ class Vi {
|
|
|
4807
4803
|
return n2 && (Object.keys(n2).length > 1 || n2.name && n2.name !== t2.name) && (t2.fonts = n2), 1 === Object.keys(t2).length && t2.name === Ai ? null : t2;
|
|
4808
4804
|
}
|
|
4809
4805
|
}
|
|
4810
|
-
const
|
|
4806
|
+
const Vi = () => {
|
|
4811
4807
|
if (Bi) return Bi;
|
|
4812
4808
|
const t2 = ((t3, e3, n2) => {
|
|
4813
4809
|
const r2 = [];
|
|
@@ -4818,14 +4814,14 @@ const $i = () => {
|
|
|
4818
4814
|
return r2;
|
|
4819
4815
|
})(xi, Ti(bi), ki(vi)), e2 = /* @__PURE__ */ new Map();
|
|
4820
4816
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4821
|
-
const r2 = new
|
|
4817
|
+
const r2 = new $i(t2[n2]), o2 = new $i(null, r2, n2 + 1);
|
|
4822
4818
|
e2.set(o2.getName().toLowerCase(), o2);
|
|
4823
4819
|
}
|
|
4824
4820
|
return Bi = e2, e2;
|
|
4825
4821
|
};
|
|
4826
4822
|
class ji {
|
|
4827
4823
|
constructor(t2 = null, e2 = false) {
|
|
4828
|
-
|
|
4824
|
+
Vi(), this._isReadOnly = e2, this._customMap = /* @__PURE__ */ new Map(), this._defaultTheme = this.getByName("Office");
|
|
4829
4825
|
}
|
|
4830
4826
|
getDefaultTheme() {
|
|
4831
4827
|
return this._defaultTheme;
|
|
@@ -4897,7 +4893,7 @@ var Gi, Ui;
|
|
|
4897
4893
|
return true;
|
|
4898
4894
|
}
|
|
4899
4895
|
}, (Ui || (Ui = {})).Type = { Absolute: "absolute", OneCell: "oneCell", TwoCell: "twoCell" };
|
|
4900
|
-
const
|
|
4896
|
+
const qi = "Model has been closed. No further operations are allowed.", Ji = "Name is required";
|
|
4901
4897
|
class Ki {
|
|
4902
4898
|
constructor(t2, e2) {
|
|
4903
4899
|
this._listeners = /* @__PURE__ */ new Set(), this._pending = null, this._listeners = /* @__PURE__ */ new Set(), this._transactions = e2 ?? new k({ transient: true }), this._src = t2;
|
|
@@ -5015,7 +5011,7 @@ class Xi {
|
|
|
5015
5011
|
return null;
|
|
5016
5012
|
}
|
|
5017
5013
|
_getState() {
|
|
5018
|
-
if (this._closed) throw new Error(
|
|
5014
|
+
if (this._closed) throw new Error(qi);
|
|
5019
5015
|
return this._transactions.getState(this);
|
|
5020
5016
|
}
|
|
5021
5017
|
_beginCommit(t2) {
|
|
@@ -5025,7 +5021,7 @@ class Xi {
|
|
|
5025
5021
|
return this._transactions;
|
|
5026
5022
|
}
|
|
5027
5023
|
_updateState(t2, e2, n2) {
|
|
5028
|
-
if (this._closed) throw new Error(
|
|
5024
|
+
if (this._closed) throw new Error(qi);
|
|
5029
5025
|
if (!t2) return;
|
|
5030
5026
|
const r2 = this._beginCommit(e2?.description);
|
|
5031
5027
|
try {
|
|
@@ -5094,7 +5090,7 @@ class Xi {
|
|
|
5094
5090
|
class Yi extends Xi {
|
|
5095
5091
|
_fromJSON(t2) {
|
|
5096
5092
|
const e2 = {};
|
|
5097
|
-
if (e2.name = t2?.name ?? null, !e2.name) throw new Error(
|
|
5093
|
+
if (e2.name = t2?.name ?? null, !e2.name) throw new Error(Ji);
|
|
5098
5094
|
e2.comment = t2?.comment ?? null, e2.hidden = t2?.hidden ?? false, e2.scope = t2?.scope ?? null, this._updateState(e2, { description: this._options.createDescription ?? "Create Item" + (e2.name ? ` '${e2.name}'` : "") });
|
|
5099
5095
|
}
|
|
5100
5096
|
_toJSON() {
|
|
@@ -5105,7 +5101,7 @@ class Yi extends Xi {
|
|
|
5105
5101
|
return this._getState().name;
|
|
5106
5102
|
}
|
|
5107
5103
|
setName(t2, e2) {
|
|
5108
|
-
if (!t2) throw new Error(
|
|
5104
|
+
if (!t2) throw new Error(Ji);
|
|
5109
5105
|
return this._updateState({ name: t2 }, { description: `Update Named '${t2}'`, ...e2 });
|
|
5110
5106
|
}
|
|
5111
5107
|
getComment() {
|
|
@@ -5849,13 +5845,13 @@ class Na {
|
|
|
5849
5845
|
search(t2, e2) {
|
|
5850
5846
|
let n2 = this.data;
|
|
5851
5847
|
if (0 === n2.children.length) return o.EmptyArray;
|
|
5852
|
-
if (
|
|
5848
|
+
if (!$a(t2, n2)) return o.EmptyArray;
|
|
5853
5849
|
const r2 = e2 ?? [], s2 = this.toBBox, i2 = [];
|
|
5854
5850
|
for (; n2; ) {
|
|
5855
5851
|
const e3 = n2.children, o2 = e3.length, a2 = n2.leaf;
|
|
5856
5852
|
for (let n3 = 0; n3 < o2; n3++) {
|
|
5857
5853
|
const o3 = e3[n3], l2 = a2 ? s2(o3) : o3;
|
|
5858
|
-
|
|
5854
|
+
$a(t2, l2) && (a2 ? r2.push(o3) : Ha(t2, l2) ? this._all(o3, r2) : i2.push(o3));
|
|
5859
5855
|
}
|
|
5860
5856
|
n2 = i2.pop();
|
|
5861
5857
|
}
|
|
@@ -5863,12 +5859,12 @@ class Na {
|
|
|
5863
5859
|
}
|
|
5864
5860
|
collides(t2) {
|
|
5865
5861
|
let e2 = this.data;
|
|
5866
|
-
if (
|
|
5862
|
+
if (!$a(t2, e2)) return false;
|
|
5867
5863
|
const n2 = [];
|
|
5868
5864
|
for (; e2; ) {
|
|
5869
5865
|
for (let r2 = 0; r2 < e2.children.length; r2++) {
|
|
5870
5866
|
const o2 = e2.children[r2], s2 = e2.leaf ? this.toBBox(o2) : o2;
|
|
5871
|
-
if (
|
|
5867
|
+
if ($a(t2, s2)) {
|
|
5872
5868
|
if (e2.leaf || Ha(t2, s2)) return true;
|
|
5873
5869
|
n2.push(o2);
|
|
5874
5870
|
}
|
|
@@ -5900,7 +5896,7 @@ class Na {
|
|
|
5900
5896
|
return t2 && this._insert(t2, this.data.height - 1), this;
|
|
5901
5897
|
}
|
|
5902
5898
|
clear() {
|
|
5903
|
-
return this.data =
|
|
5899
|
+
return this.data = Va([]), this;
|
|
5904
5900
|
}
|
|
5905
5901
|
remove(t2, e2) {
|
|
5906
5902
|
if (!t2) return this;
|
|
@@ -5939,8 +5935,8 @@ class Na {
|
|
|
5939
5935
|
_build(t2, e2, n2, r2) {
|
|
5940
5936
|
const o2 = n2 - e2 + 1;
|
|
5941
5937
|
let s2, i2 = this._maxEntries;
|
|
5942
|
-
if (o2 <= i2) return s2 =
|
|
5943
|
-
r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 =
|
|
5938
|
+
if (o2 <= i2) return s2 = Va(t2.slice(e2, n2 + 1)), ka(s2, this.toBBox), s2;
|
|
5939
|
+
r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 = Va([]), s2.leaf = false, s2.height = r2;
|
|
5944
5940
|
const a2 = Math.ceil(o2 / i2), l2 = a2 * Math.ceil(Math.sqrt(i2));
|
|
5945
5941
|
ja(t2, e2, n2, l2, this.compareMinX);
|
|
5946
5942
|
for (let o3 = e2; o3 <= n2; o3 += l2) {
|
|
@@ -5972,11 +5968,11 @@ class Na {
|
|
|
5972
5968
|
_split(t2, e2) {
|
|
5973
5969
|
const n2 = t2[e2], r2 = n2.children.length, o2 = this._minEntries;
|
|
5974
5970
|
this._chooseSplitAxis(n2, o2, r2);
|
|
5975
|
-
const s2 = this._chooseSplitIndex(n2, o2, r2), i2 =
|
|
5971
|
+
const s2 = this._chooseSplitIndex(n2, o2, r2), i2 = Va(n2.children.splice(s2, n2.children.length - s2));
|
|
5976
5972
|
i2.height = n2.height, i2.leaf = n2.leaf, ka(n2, this.toBBox), ka(i2, this.toBBox), e2 ? t2[e2 - 1].children.push(i2) : this._splitRoot(n2, i2);
|
|
5977
5973
|
}
|
|
5978
5974
|
_splitRoot(t2, e2) {
|
|
5979
|
-
this.data =
|
|
5975
|
+
this.data = Va([t2, e2]), this.data.height = t2.height + 1, this.data.leaf = false, ka(this.data, this.toBBox);
|
|
5980
5976
|
}
|
|
5981
5977
|
_chooseSplitIndex(t2, e2, n2) {
|
|
5982
5978
|
let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
|
|
@@ -6020,7 +6016,7 @@ function ka(t2, e2) {
|
|
|
6020
6016
|
Fa(t2, 0, t2.children.length, e2, t2);
|
|
6021
6017
|
}
|
|
6022
6018
|
function Fa(t2, e2, n2, r2, o2 = null) {
|
|
6023
|
-
o2 || (o2 =
|
|
6019
|
+
o2 || (o2 = Va(null)), o2.minX = 1 / 0, o2.minY = 1 / 0, o2.maxX = -1 / 0, o2.maxY = -1 / 0;
|
|
6024
6020
|
for (let s2 = e2; s2 < n2; s2++) {
|
|
6025
6021
|
const e3 = t2.children[s2];
|
|
6026
6022
|
Oa(o2, t2.leaf ? r2(e3) : e3);
|
|
@@ -6052,10 +6048,10 @@ function Wa(t2, e2) {
|
|
|
6052
6048
|
function Ha(t2, e2) {
|
|
6053
6049
|
return t2.minX <= e2.minX && t2.minY <= e2.minY && e2.maxX <= t2.maxX && e2.maxY <= t2.maxY;
|
|
6054
6050
|
}
|
|
6055
|
-
function
|
|
6051
|
+
function $a(t2, e2) {
|
|
6056
6052
|
return e2.minX <= t2.maxX && e2.minY <= t2.maxY && e2.maxX >= t2.minX && e2.maxY >= t2.minY;
|
|
6057
6053
|
}
|
|
6058
|
-
function
|
|
6054
|
+
function Va(t2) {
|
|
6059
6055
|
return { children: t2, height: 1, leaf: true, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
|
|
6060
6056
|
}
|
|
6061
6057
|
function ja(t2, e2, n2, r2, o2) {
|
|
@@ -6085,7 +6081,7 @@ function Ua(t2, e2, n2) {
|
|
|
6085
6081
|
const r2 = t2[e2];
|
|
6086
6082
|
t2[e2] = t2[n2], t2[n2] = r2;
|
|
6087
6083
|
}
|
|
6088
|
-
class
|
|
6084
|
+
class qa extends Na {
|
|
6089
6085
|
toBBox(t2) {
|
|
6090
6086
|
return { minX: 10 * t2.colStart, minY: 10 * t2.rowStart, maxX: 10 * t2.colEnd + 5, maxY: 10 * t2.rowEnd + 5 };
|
|
6091
6087
|
}
|
|
@@ -6105,9 +6101,9 @@ class Ja extends Na {
|
|
|
6105
6101
|
return r2.filter((e3) => e3.colStart >= t2.colStart && e3.rowStart >= t2.rowStart && e3.colEnd <= t2.colEnd && e3.rowEnd <= t2.rowEnd);
|
|
6106
6102
|
}
|
|
6107
6103
|
}
|
|
6108
|
-
class
|
|
6104
|
+
class Ja {
|
|
6109
6105
|
constructor(t2) {
|
|
6110
|
-
this._shared = null, this._rTree = null, this._cloneKey = null, this._lastMiss = { colStart: Number.MAX_SAFE_INTEGER, rowStart: 0, colEnd: 0, rowEnd: 0 }, this._lastSingle = null, this._lastSingleResult = null, this._options = t2, this._rTree = new
|
|
6106
|
+
this._shared = null, this._rTree = null, this._cloneKey = null, this._lastMiss = { colStart: Number.MAX_SAFE_INTEGER, rowStart: 0, colEnd: 0, rowEnd: 0 }, this._lastSingle = null, this._lastSingleResult = null, this._options = t2, this._rTree = new qa(t2?.maxNodeEntries ?? 16);
|
|
6111
6107
|
}
|
|
6112
6108
|
visitRanges(t2, e2, n2 = null) {
|
|
6113
6109
|
let r2 = this.search(t2);
|
|
@@ -6221,9 +6217,9 @@ class qa {
|
|
|
6221
6217
|
e4.insert(n5), a3(n5, e4, false);
|
|
6222
6218
|
}
|
|
6223
6219
|
}
|
|
6224
|
-
}, l2 = new
|
|
6220
|
+
}, l2 = new Ja();
|
|
6225
6221
|
l2.load(t3), a3(e3, l2);
|
|
6226
|
-
const h3 = new
|
|
6222
|
+
const h3 = new Ja();
|
|
6227
6223
|
h3.load([e3]);
|
|
6228
6224
|
const d3 = l2.search(e3);
|
|
6229
6225
|
for (let t4 = 0; t4 < d3.length; t4++) a3(d3[t4], h3);
|
|
@@ -6245,7 +6241,7 @@ class qa {
|
|
|
6245
6241
|
} else e4.insert(i4);
|
|
6246
6242
|
}
|
|
6247
6243
|
}
|
|
6248
|
-
}, g3 = new
|
|
6244
|
+
}, g3 = new Ja(), m3 = h3.all(), f3 = m3.length;
|
|
6249
6245
|
for (let t4 = 0; t4 < f3; t4++) u3(m3[t4], l2, g3);
|
|
6250
6246
|
const p3 = (t4, e4) => {
|
|
6251
6247
|
const n4 = t4.all(), r4 = n4.length;
|
|
@@ -6349,7 +6345,7 @@ class qa {
|
|
|
6349
6345
|
}
|
|
6350
6346
|
_copy(t2, e2) {
|
|
6351
6347
|
let n2 = t2.rTree.all();
|
|
6352
|
-
const r2 = new
|
|
6348
|
+
const r2 = new qa(this._options?.maxNodeEntries);
|
|
6353
6349
|
return e2 && (n2 = n2.concat(e2)), n2.length > 0 && r2.load(n2), { refCount: 1, rTree: r2 };
|
|
6354
6350
|
}
|
|
6355
6351
|
_updateNodes(t2, e2, n2) {
|
|
@@ -6400,7 +6396,7 @@ class qa {
|
|
|
6400
6396
|
if (null !== t2 && this._cloneKey === t2) return this;
|
|
6401
6397
|
let e2 = this._shared;
|
|
6402
6398
|
e2 || (e2 = { rTree: this._rTree, refCount: 1 }, this._shared = e2), e2.refCount++;
|
|
6403
|
-
const n2 = new
|
|
6399
|
+
const n2 = new Ja(this._options);
|
|
6404
6400
|
return n2._shared = e2, n2._cloneKey = t2, n2;
|
|
6405
6401
|
}
|
|
6406
6402
|
fromJSON(t2) {
|
|
@@ -7311,7 +7307,7 @@ Object.seal({ done: false, value: null });
|
|
|
7311
7307
|
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 });
|
|
7312
7308
|
class Tl {
|
|
7313
7309
|
constructor(t2) {
|
|
7314
|
-
if (this._l = 0, this._at = null, this._dt =
|
|
7310
|
+
if (this._l = 0, this._at = null, this._dt = Jl.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");
|
|
7315
7311
|
const e2 = t2.length;
|
|
7316
7312
|
if (this._l = e2, this._dt = t2.type, this._cv = t2.getCoercedValue ?? null, e2 > 0) {
|
|
7317
7313
|
t2.types && (this._at = t2.types, this._vt = new Uint8Array(this._at));
|
|
@@ -7342,9 +7338,9 @@ class Tl {
|
|
|
7342
7338
|
return this._vi64[o2 ? t2 : r2];
|
|
7343
7339
|
case Bl:
|
|
7344
7340
|
return this._vf64[o2 ? t2 : r2];
|
|
7345
|
-
case Vl:
|
|
7346
|
-
return Number.NaN;
|
|
7347
7341
|
case $l:
|
|
7342
|
+
return Number.NaN;
|
|
7343
|
+
case Vl:
|
|
7348
7344
|
return Number.MAX_SAFE_INTEGER;
|
|
7349
7345
|
case jl:
|
|
7350
7346
|
return Number.MIN_SAFE_INTEGER;
|
|
@@ -7355,7 +7351,7 @@ class Tl {
|
|
|
7355
7351
|
case Gl:
|
|
7356
7352
|
return null;
|
|
7357
7353
|
case Ul:
|
|
7358
|
-
case
|
|
7354
|
+
case ql:
|
|
7359
7355
|
return;
|
|
7360
7356
|
}
|
|
7361
7357
|
return this._cv(n2, o2 ? Number(r2) : r2);
|
|
@@ -7386,7 +7382,7 @@ class Tl {
|
|
|
7386
7382
|
}
|
|
7387
7383
|
static fromArray(t2, e2, n2, r2, o2 = kl) {
|
|
7388
7384
|
const s2 = t2.length;
|
|
7389
|
-
if (0 === s2) return new Tl({ type:
|
|
7385
|
+
if (0 === s2) return new Tl({ type: Jl.Undefined, length: s2, getCoercedValue: n2 });
|
|
7390
7386
|
let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Kl(t2[0], r2);
|
|
7391
7387
|
for (let e3 = 0; e3 < s2; e3++) {
|
|
7392
7388
|
const n3 = t2[e3], o3 = Kl(n3, r2);
|
|
@@ -7454,15 +7450,15 @@ class Tl {
|
|
|
7454
7450
|
return new Tl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
|
|
7455
7451
|
}
|
|
7456
7452
|
}
|
|
7457
|
-
const kl = 0.1, Fl = 1, Ol = 2, Dl = 3, Ll = 4, Bl = 5, Pl = 6, zl = 7, Wl = 8, Hl = 9,
|
|
7453
|
+
const kl = 0.1, Fl = 1, Ol = 2, Dl = 3, Ll = 4, Bl = 5, Pl = 6, zl = 7, Wl = 8, Hl = 9, $l = 10, Vl = 11, jl = 12, Gl = 13, Ul = 14, ql = 127, Jl = { Undefined: Ul }, Kl = (t2, e2) => {
|
|
7458
7454
|
switch (typeof t2) {
|
|
7459
7455
|
case "number":
|
|
7460
7456
|
const n2 = t2;
|
|
7461
|
-
if (Number.isNaN(n2)) return
|
|
7457
|
+
if (Number.isNaN(n2)) return $l;
|
|
7462
7458
|
if (n2 === 1 / 0) return Wl;
|
|
7463
7459
|
if (n2 === -1 / 0) return Hl;
|
|
7464
7460
|
if (Object.is(n2, -0)) return Ol;
|
|
7465
|
-
if (n2 === Number.MAX_SAFE_INTEGER) return
|
|
7461
|
+
if (n2 === Number.MAX_SAFE_INTEGER) return Vl;
|
|
7466
7462
|
if (n2 === Number.MIN_SAFE_INTEGER) return jl;
|
|
7467
7463
|
if (Number.isInteger(n2) && n2 <= 2147483647 && n2 >= -2147483648) return Fl;
|
|
7468
7464
|
return Math.fround(n2) === n2 ? Ol : Bl;
|
|
@@ -7473,7 +7469,7 @@ const kl = 0.1, Fl = 1, Ol = 2, Dl = 3, Ll = 4, Bl = 5, Pl = 6, zl = 7, Wl = 8,
|
|
|
7473
7469
|
case "object":
|
|
7474
7470
|
if (null === t2) return Gl;
|
|
7475
7471
|
if (t2 instanceof Error) return zl;
|
|
7476
|
-
if (!e2) return
|
|
7472
|
+
if (!e2) return ql;
|
|
7477
7473
|
const r2 = e2(t2);
|
|
7478
7474
|
if (r2 < 128 || r2 > 255) throw new Error("Custom type must be between 128 and 255");
|
|
7479
7475
|
return r2;
|
|
@@ -7483,13 +7479,13 @@ const kl = 0.1, Fl = 1, Ol = 2, Dl = 3, Ll = 4, Bl = 5, Pl = 6, zl = 7, Wl = 8,
|
|
|
7483
7479
|
return Ul;
|
|
7484
7480
|
case "symbol":
|
|
7485
7481
|
case "function":
|
|
7486
|
-
return
|
|
7482
|
+
return ql;
|
|
7487
7483
|
}
|
|
7488
|
-
return
|
|
7484
|
+
return ql;
|
|
7489
7485
|
}, Xl = (t2) => {
|
|
7490
7486
|
if (!t2 || t2.length <= 1) return false;
|
|
7491
7487
|
if (2 === t2.length) return c.isRangesIntersect(t2[0], t2[1]);
|
|
7492
|
-
const e2 = new
|
|
7488
|
+
const e2 = new Ja();
|
|
7493
7489
|
e2.load(t2);
|
|
7494
7490
|
const n2 = t2.length;
|
|
7495
7491
|
for (let r2 = 0; r2 < n2; r2++) {
|
|
@@ -7981,7 +7977,7 @@ class rc {
|
|
|
7981
7977
|
return true;
|
|
7982
7978
|
}
|
|
7983
7979
|
}
|
|
7984
|
-
const oc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER }, sc = Object.freeze([Object.freeze([null])]), ic = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), ac = Object.freeze({ colIndex: 0, rowIndex: 0 }), lc = () => ic, hc = (e2, n2 = false) => "number" == typeof e2 ? isNaN(e2) || e2 === 1 / 0 || e2 === -1 / 0 ? t.Error : t.Number : "string" == typeof e2 ? t.String : "boolean" == typeof e2 ? t.Boolean : e2?.isFormulaError ? t.Error : null === e2 ? t.Null : o.isObject(e2) && e2.hasOwnProperty("type") && "string" == typeof e2.type ? t.RichData : n2 &&
|
|
7980
|
+
const oc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER }, sc = Object.freeze([Object.freeze([null])]), ic = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), ac = Object.freeze({ colIndex: 0, rowIndex: 0 }), lc = () => ic, hc = (e2, n2 = false) => "number" == typeof e2 ? isNaN(e2) || e2 === 1 / 0 || e2 === -1 / 0 ? t.Error : t.Number : "string" == typeof e2 ? t.String : "boolean" == typeof e2 ? t.Boolean : e2?.isFormulaError ? t.Error : null === e2 ? t.Null : o.isObject(e2) && e2.hasOwnProperty("type") && "string" == typeof e2.type ? t.RichData : n2 && Jr(e2) ? "Date" : void 0 === e2 ? (console.warn("undefined"), t.Null) : null, dc = /* @__PURE__ */ new Map([[t.Null, "any"], [t.Number, "number"], [t.String, "string"], [t.Boolean, "boolean"], [t.Error, "FormulaError"], [t.RichData, "richData"], ["*", "Scalar"]]), uc = /* @__PURE__ */ new Map([["p", "IReferenceRange"], ["r", "IRange"]]), gc = { orientation: e.Orientation.Row }, mc = (e2, r2, o2 = t.Number, s2 = false, i2 = false) => {
|
|
7985
7981
|
if (r2 === o2 || !o2) return r2 === t.Number && (e2 = Sc(e2, null, "number")), e2;
|
|
7986
7982
|
if (o2 === t.Number) {
|
|
7987
7983
|
switch (r2) {
|
|
@@ -8177,7 +8173,7 @@ const Dc = (t2) => {
|
|
|
8177
8173
|
c2 = l2 ? Dc(r2) : a2 ? kc(o2) : n2({ colIndex: r2, rowIndex: o2 });
|
|
8178
8174
|
let h2 = null;
|
|
8179
8175
|
return h2 = l2 ? Dc(s2) : a2 ? kc(i2) : n2({ colIndex: s2, rowIndex: i2 }), c2 + ":" + h2;
|
|
8180
|
-
},
|
|
8176
|
+
}, $c = (t2, e2, n2 = Pc) => {
|
|
8181
8177
|
if (!t2) return Rc;
|
|
8182
8178
|
const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
|
|
8183
8179
|
let i2 = null;
|
|
@@ -8186,7 +8182,7 @@ const Dc = (t2) => {
|
|
|
8186
8182
|
i2 = Wc(n3, i2);
|
|
8187
8183
|
}
|
|
8188
8184
|
return i2;
|
|
8189
|
-
},
|
|
8185
|
+
}, Vc = (t2, e2, n2 = Pc) => {
|
|
8190
8186
|
if (!t2) return Rc;
|
|
8191
8187
|
const r2 = void 0 !== t2.rowStart && t2.rowStart === t2.rowEnd;
|
|
8192
8188
|
if (void 0 !== t2.colStart && t2.colStart === t2.colEnd && r2) return n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
@@ -8197,7 +8193,7 @@ const Dc = (t2) => {
|
|
|
8197
8193
|
let a2 = null;
|
|
8198
8194
|
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;
|
|
8199
8195
|
}, jc = (t2, e2, n2 = Pc) => {
|
|
8200
|
-
const r2 =
|
|
8196
|
+
const r2 = Vc(t2, e2, n2), o2 = zc(t2?.sheetName, e2?.sheetName);
|
|
8201
8197
|
return Wc(o2, r2);
|
|
8202
8198
|
}, Gc = (t2, e2 = false) => {
|
|
8203
8199
|
if (!t2) return null;
|
|
@@ -8237,7 +8233,7 @@ const Dc = (t2) => {
|
|
|
8237
8233
|
}
|
|
8238
8234
|
const a2 = {};
|
|
8239
8235
|
return s2 && (void 0 !== s2.colIndex && (a2.colStart = s2.colIndex), void 0 !== s2.rowIndex && (a2.rowStart = s2.rowIndex), void 0 !== s2.$colIndex && (a2.$colStart = s2.$colIndex), void 0 !== s2.$rowIndex && (a2.$rowStart = s2.$rowIndex), void 0 !== a2?.colStart && a2?.colStart > e2?.colEnd) ? null : (i2 && (void 0 !== i2.colIndex && (a2.colEnd = i2.colIndex), void 0 !== i2.rowIndex && (a2.rowEnd = i2.rowIndex), void 0 !== i2.$colIndex && (a2.$colEnd = i2.$colIndex), void 0 !== i2.$rowIndex && (a2.$rowEnd = i2.$rowIndex)), { ...e2, ...a2 });
|
|
8240
|
-
},
|
|
8236
|
+
}, qc = (t2, e2, n2 = false) => {
|
|
8241
8237
|
const r2 = ((t3) => {
|
|
8242
8238
|
const e3 = t3.lastIndexOf("!");
|
|
8243
8239
|
if (-1 === e3) return null;
|
|
@@ -8250,7 +8246,7 @@ const Dc = (t2) => {
|
|
|
8250
8246
|
o2.sheetName = r2[0];
|
|
8251
8247
|
} else o2 = Uc(t2, e2, n2);
|
|
8252
8248
|
return o2 || null;
|
|
8253
|
-
},
|
|
8249
|
+
}, Jc = (t2, e2, n2 = Vc, r2 = Pc) => {
|
|
8254
8250
|
if (!t2 || 0 === t2.length) return null;
|
|
8255
8251
|
const o2 = [], s2 = t2.length;
|
|
8256
8252
|
for (let i2 = 0; i2 < s2; i2++) {
|
|
@@ -8260,9 +8256,9 @@ const Dc = (t2) => {
|
|
|
8260
8256
|
}
|
|
8261
8257
|
return o2;
|
|
8262
8258
|
}, Kc = (t2, e2, n2 = jc, r2 = Pc) => {
|
|
8263
|
-
const o2 =
|
|
8259
|
+
const o2 = Jc(t2, e2, n2, r2);
|
|
8264
8260
|
return o2 ? o2.join(",") : Rc;
|
|
8265
|
-
}, Xc = (t2, e2, n2, r2 =
|
|
8261
|
+
}, Xc = (t2, e2, n2, r2 = qc, o2, s2 = false) => {
|
|
8266
8262
|
if (null !== e2) {
|
|
8267
8263
|
if ("string" == typeof e2) {
|
|
8268
8264
|
const i2 = r2(e2, n2, s2);
|
|
@@ -8289,7 +8285,7 @@ const Dc = (t2) => {
|
|
|
8289
8285
|
}
|
|
8290
8286
|
} else t2.push(null);
|
|
8291
8287
|
} else t2.push(null);
|
|
8292
|
-
}, Yc = (t2, e2, n2 =
|
|
8288
|
+
}, Yc = (t2, e2, n2 = qc, r2, o2 = false) => {
|
|
8293
8289
|
if (!t2) return [e2];
|
|
8294
8290
|
let s2;
|
|
8295
8291
|
s2 = "string" == typeof t2 ? Fo(t2) : t2.isICellRanges ? t2.getCoords() : Array.isArray(t2) ? t2 : [t2];
|
|
@@ -8617,7 +8613,7 @@ var Rh;
|
|
|
8617
8613
|
(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" };
|
|
8618
8614
|
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 });
|
|
8619
8615
|
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 });
|
|
8620
|
-
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", Lh = "We can't insert items. The sheet is protected.", Bh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Ph = "Overlapping ranges can not be merged.", zh = "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.",
|
|
8616
|
+
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", Lh = "We can't insert items. The sheet is protected.", Bh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Ph = "Overlapping ranges can not be merged.", zh = "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.", $h = "Sheet has been closed. No further operations are allowed.", Vh = "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'.", qh = "Multiple selection ranges can not be copied.", Jh = "Unable to determine source.", Kh = "When pasting before or after the cut area both areas must align.";
|
|
8621
8617
|
var Xh, Yh;
|
|
8622
8618
|
(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" };
|
|
8623
8619
|
class Qh {
|
|
@@ -8660,9 +8656,9 @@ const Zh = (t2) => {
|
|
|
8660
8656
|
return { family: n2, fallbacks: r2, size: o2 };
|
|
8661
8657
|
}, td = (t2, e2 = false) => t2?.toHex(e2)?.toString(false).toLowerCase() ?? null, ed = (t2) => null == t2 ? null : o.roundAccurately(t2, 2) + "pt", nd = (t2, e2) => {
|
|
8662
8658
|
let n2 = "";
|
|
8663
|
-
const r2 = t2 && t2 !==
|
|
8664
|
-
return e2 && (n2 += "line-through"), r2 && e2 && (n2 += " "), r2 && (n2 += "underline", true !== t2 && t2 !==
|
|
8665
|
-
}, rd = Object.freeze({ underline:
|
|
8659
|
+
const r2 = t2 && t2 !== Jo.UnderlineStyle.None;
|
|
8660
|
+
return e2 && (n2 += "line-through"), r2 && e2 && (n2 += " "), r2 && (n2 += "underline", true !== t2 && t2 !== Jo.UnderlineStyle.Single && t2 !== Jo.UnderlineStyle.SingleAccounting || (n2 += " solid"), t2 !== Jo.UnderlineStyle.Double && t2 !== Jo.UnderlineStyle.DoubleAccounting || (n2 += " double")), n2;
|
|
8661
|
+
}, rd = Object.freeze({ underline: Jo.UnderlineStyle.None, strike: false }), od = (t2) => t2 ? "single" === (t2 = t2.toLowerCase()) ? Jo.UnderlineStyle.Single : "double" === t2 ? Jo.UnderlineStyle.Double : "single-accounting" === t2 || "singleaccounting" === t2 ? Jo.UnderlineStyle.SingleAccounting : "double-accounting" === t2 || "doubleaccounting" === t2 ? Jo.UnderlineStyle.DoubleAccounting : Jo.UnderlineStyle.None : Jo.UnderlineStyle.None, sd = (t2) => t2 ? t2.toLowerCase() : null, id = (t2) => t2 ? t2 === wo.Overflow.Visible || t2 === wo.Overflow.Clip || t2 === wo.Overflow.Shrink ? "nowrap" : t2 === wo.Overflow.Wrap ? "normal" : void 0 : null, ad = (t2, e2) => {
|
|
8666
8662
|
let n2 = "";
|
|
8667
8663
|
if (t2 && (t2.includes(" ") && (t2 = '"' + t2 + '"'), n2 = t2), e2) for (let t3 = 0; t3 < e2.length; t3++) n2.length > 0 && (n2 += ", "), n2 += e2[t3];
|
|
8668
8664
|
return n2;
|
|
@@ -8675,14 +8671,14 @@ const Zh = (t2) => {
|
|
|
8675
8671
|
return '"' + e2 + '"';
|
|
8676
8672
|
}, 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();
|
|
8677
8673
|
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);
|
|
8678
|
-
const Td = "xx-small", kd = "x-small", Fd = "small", Od = "medium", Dd = "large", Ld = "x-large", Bd = "xx-large", Pd = "xxx-large", zd = "smaller", Wd = "larger", Hd = "math",
|
|
8679
|
-
|
|
8674
|
+
const Td = "xx-small", kd = "x-small", Fd = "small", Od = "medium", Dd = "large", Ld = "x-large", Bd = "xx-large", Pd = "xxx-large", zd = "smaller", Wd = "larger", Hd = "math", $d = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), Vd = /* @__PURE__ */ new Map();
|
|
8675
|
+
Vd.set(o.textToKey(Td), (t2) => 0.4 * t2), Vd.set(o.textToKey(kd), (t2) => 0.5 * t2), Vd.set(o.textToKey(Fd), (t2) => 0.6 * t2), Vd.set(o.textToKey(Od), (t2) => t2), Vd.set(o.textToKey(Dd), (t2) => 1.1 * t2), Vd.set(o.textToKey(Ld), (t2) => 1.25 * t2), Vd.set(o.textToKey(Bd), (t2) => 1.5 * t2), Vd.set(o.textToKey(Pd), (t2) => 2 * t2), Vd.set(o.textToKey(zd), (t2) => 0.9 * t2), Vd.set(o.textToKey(Wd), (t2) => 1.1 * t2), Vd.set(o.textToKey(Hd), (t2) => t2);
|
|
8680
8676
|
const jd = (t2, e2 = 11, n2 = "pt") => {
|
|
8681
8677
|
if (!t2) return null;
|
|
8682
8678
|
let r2 = e2;
|
|
8683
8679
|
t2 = t2.trim().toLowerCase();
|
|
8684
|
-
const s2 = "pt" === n2 ?
|
|
8685
|
-
if (
|
|
8680
|
+
const s2 = "pt" === n2 ? Jo.getDeviceScale() : 1, i2 = "pt" === n2 ? 1 : Jo.getDeviceScale();
|
|
8681
|
+
if ($d.test(t2)) {
|
|
8686
8682
|
const e3 = parseFloat(t2);
|
|
8687
8683
|
isNaN(e3) || (t2 = e3 + n2);
|
|
8688
8684
|
}
|
|
@@ -8692,22 +8688,22 @@ const jd = (t2, e2 = 11, n2 = "pt") => {
|
|
|
8692
8688
|
else if (t2.endsWith("rem")) r2 = parseFloat(t2.substring(0, t2.length - 3).trim()) * e2;
|
|
8693
8689
|
else if (t2.endsWith("%")) r2 = parseFloat(t2.substring(0, t2.length - 1).trim()) / 100 * e2;
|
|
8694
8690
|
else if ("string" == typeof t2) {
|
|
8695
|
-
const n3 = o.textToKey(t2), r3 =
|
|
8691
|
+
const n3 = o.textToKey(t2), r3 = Vd.get(n3);
|
|
8696
8692
|
if (r3) return r3(e2);
|
|
8697
8693
|
}
|
|
8698
8694
|
return isNaN(r2) ? null : r2;
|
|
8699
8695
|
}, Gd = /* @__PURE__ */ new Map();
|
|
8700
8696
|
Gd.set(Os.BuiltInSheetPattern.None, { description: "None", cssKey: "none" }), Gd.set(Os.BuiltInSheetPattern.Solid, { description: "Solid", cssKey: "solid" }), Gd.set(Os.BuiltInSheetPattern.DarkGray, { description: "75% gray", cssKey: "gray-75" }), Gd.set(Os.BuiltInSheetPattern.MediumGray, { description: "50% gray", cssKey: "gray-50" }), Gd.set(Os.BuiltInSheetPattern.LightGray, { description: "25% gray", cssKey: "gray-25" }), Gd.set(Os.BuiltInSheetPattern.Gray125, { description: "12.5% Gray", cssKey: "gray-125" }), Gd.set(Os.BuiltInSheetPattern.Gray0625, { description: "6.25% Gray", cssKey: "gray-0625" }), Gd.set(Os.BuiltInSheetPattern.DarkHorizontal, { description: "Horizontal Strip", cssKey: "horz-stripe" }), Gd.set(Os.BuiltInSheetPattern.DarkVertical, { description: "Vertical Strip", cssKey: "vert-stripe" }), Gd.set(Os.BuiltInSheetPattern.DarkDown, { description: "Reverse Diagonal Stripe", cssKey: "reverse-diag-stripe" }), Gd.set(Os.BuiltInSheetPattern.DarkUp, { description: "Diagonal Strip", cssKey: "diag-stripe" }), Gd.set(Os.BuiltInSheetPattern.DarkGrid, { description: "Diagonal Crosshatch", cssKey: "diag-cross" }), Gd.set(Os.BuiltInSheetPattern.DarkTrellis, { description: "Thick Diagonal Crosshatch", cssKey: "thick-diag-cross" }), Gd.set(Os.BuiltInSheetPattern.LightHorizontal, { description: "Thin Horizontal Stripe", cssKey: "thin-horz-stripe" }), Gd.set(Os.BuiltInSheetPattern.LightVertical, { description: "Thin Vertical Stripe", cssKey: "thin-vert-stripe" }), Gd.set(Os.BuiltInSheetPattern.LightDown, { description: "Thin Reverse Diagonal Stripe", cssKey: "thin-reverse-diag-stripe" }), Gd.set(Os.BuiltInSheetPattern.LightUp, { description: "Thin Diagonal Stripe", cssKey: "thin-diag-stripe" }), Gd.set(Os.BuiltInSheetPattern.LightGrid, { description: "Thin Horizontal Cross", cssKey: "thin-horz-cross" }), Gd.set(Os.BuiltInSheetPattern.LightTrellis, { description: "Thin Diagonal Cross", cssKey: "thin-diag-cross" });
|
|
8701
8697
|
let Ud = "";
|
|
8702
|
-
const
|
|
8698
|
+
const qd = /* @__PURE__ */ new Map();
|
|
8703
8699
|
Gd.forEach((t2, e2) => {
|
|
8704
|
-
Ud.length > 0 && (Ud += "|"), Ud += "\\b" + t2.cssKey + "\\b",
|
|
8700
|
+
Ud.length > 0 && (Ud += "|"), Ud += "\\b" + t2.cssKey + "\\b", qd.set(t2.cssKey, e2);
|
|
8705
8701
|
});
|
|
8706
|
-
const
|
|
8702
|
+
const Jd = new RegExp(`(\\s*(?:${Ud}))`, "g"), Kd = (t2) => {
|
|
8707
8703
|
if (!t2) return null;
|
|
8708
8704
|
let e2 = t2.toLowerCase();
|
|
8709
8705
|
e2 = e2.replace(/;/, "");
|
|
8710
|
-
let n2 = e2.match(
|
|
8706
|
+
let n2 = e2.match(Jd);
|
|
8711
8707
|
if (!n2) return null;
|
|
8712
8708
|
let r2 = null;
|
|
8713
8709
|
n2 && n2.length > 0 && (r2 = ((t3) => {
|
|
@@ -8717,7 +8713,7 @@ const qd = new RegExp(`(\\s*(?:${Ud}))`, "g"), Kd = (t2) => {
|
|
|
8717
8713
|
})(n2[0])), e2 = e2.trim();
|
|
8718
8714
|
const o2 = e2 ? e2.trim() : null;
|
|
8719
8715
|
if (!r2 && !o2) return null;
|
|
8720
|
-
return { patternType:
|
|
8716
|
+
return { patternType: qd.get(r2 ?? "solid"), foreground: o2 ?? null };
|
|
8721
8717
|
}, Xd = (t2, e2 = false, n2 = null) => {
|
|
8722
8718
|
if (!t2 || !t2.getStops() || t2.getStops().length < 1) return null;
|
|
8723
8719
|
if (1 === t2.getStops().length) return td(t2.getStops()[0].getColor(), e2);
|
|
@@ -8847,7 +8843,7 @@ const xu = (t2, e2) => {
|
|
|
8847
8843
|
return e3;
|
|
8848
8844
|
})(t2);
|
|
8849
8845
|
return isNaN(n2) || "number" != typeof n2 ? null : n2;
|
|
8850
|
-
} }, underline: { shorthand: (t2, e2) => t2 ? true === t2 ?
|
|
8846
|
+
} }, underline: { shorthand: (t2, e2) => t2 ? true === t2 ? Jo.UnderlineStyle.Single : od(t2) : Jo.UnderlineStyle.None } } }, fill: { shorthand: (t2, e2) => {
|
|
8851
8847
|
const n2 = [Au, Mu, Nu, Tu];
|
|
8852
8848
|
for (let r2 = 0; r2 < n2.length; r2++) {
|
|
8853
8849
|
let o2 = n2[r2]?.shorthand?.(t2, e2);
|
|
@@ -8934,8 +8930,8 @@ const xu = (t2, e2) => {
|
|
|
8934
8930
|
}
|
|
8935
8931
|
const b2 = Gr(s2, e2), v2 = { displayText: l2 ?? "", conditionalColor: b2 ? i2(b2) : null, repeatChars: h2 ?? o.EmptyArray, spacingChars: d2 ?? o.EmptyArray, repeatPlaceholder: c2, formattedRuns: f2, canWrap: y2, asDate: m2, isDateFormat: u2, isTimeFormat: g2, isDate1904: a2 };
|
|
8936
8932
|
return Object.freeze(v2);
|
|
8937
|
-
}, Lu = Object.freeze({ fallbacks: o.EmptyArray, weight: 400, style:
|
|
8938
|
-
const t2 = [{ named: _i.BuiltInName.Normal }, { named: _i.BuiltInName.RowLevel }, { named: _i.BuiltInName.ColLevel }, { named: _i.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: _i.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: _i.BuiltInName.Percent, numberFormat: "0%" }, { named: _i.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: _i.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: _i.BuiltInName.Hyperlink, font: { ...Lu, fill: Ls.Scheme.Hlink, underline:
|
|
8933
|
+
}, Lu = Object.freeze({ fallbacks: o.EmptyArray, weight: 400, style: Jo.Style.Normal, fill: Ls.Scheme.Tx1, letterSpacing: null, underline: Jo.UnderlineStyle.None, strike: false, scheme: Jo.Scheme.Minor, verticalAlign: Jo.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), Bu = Object.freeze({ style: Ys.StrokeStyle.None, color: Ls.Scheme.Tx1 }), Pu = Object.freeze({ [Ys.Edge.Top]: Bu, [Ys.Edge.Left]: Bu, [Ys.Edge.Bottom]: Bu, [Ys.Edge.Right]: Bu, [Ys.Edge.Horizontal]: Bu, [Ys.Edge.Vertical]: Bu, [Ys.Edge.DiagonalUp]: Bu, [Ys.Edge.DiagonalDown]: Bu }), zu = Object.freeze({ horizontal: wo.HorizontalAlignment.General, vertical: wo.VerticalAlignment.Bottom, indent: 0, relativeIndent: 0, overflow: wo.Overflow.Visible, rotation: 0, stacked: false, quotePrefix: false, justifyLastLine: false, readingOrder: wo.ReadingDirection.Auto, readingDirection: wo.ReadingDirection.Auto }), Wu = Object.freeze({ locked: false, formulaHidden: false }), Hu = Object.freeze({ fill: { type: Os.Type.None }, numberFormat: "General", alignment: zu, font: Lu, border: Pu, protection: Wu, quotePrefix: false, namedStyle: null }), $u = (() => {
|
|
8934
|
+
const t2 = [{ named: _i.BuiltInName.Normal }, { named: _i.BuiltInName.RowLevel }, { named: _i.BuiltInName.ColLevel }, { named: _i.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: _i.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: _i.BuiltInName.Percent, numberFormat: "0%" }, { named: _i.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: _i.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: _i.BuiltInName.Hyperlink, font: { ...Lu, fill: Ls.Scheme.Hlink, underline: Jo.UnderlineStyle.Single } }, { named: _i.BuiltInName.FollowedHyperlink, font: { ...Lu, fill: Ls.Scheme.FolHlink, underline: Jo.UnderlineStyle.Single } }, { named: _i.BuiltInName.Note, fill: "FFFFFFCC", font: { ...Lu, style: Jo.Style.Normal, fill: Ls.Scheme.Tx1 }, border: { left: { style: Ys.StrokeStyle.Thin, color: "FFB2B2B2" }, top: { style: Ys.StrokeStyle.Thin, color: "FFB2B2B2" }, right: { style: Ys.StrokeStyle.Thin, color: "FFB2B2B2" }, bottom: { style: Ys.StrokeStyle.Thin, color: "FFB2B2B2" } } }, { named: _i.BuiltInName.WarningText, font: { ...Lu, fill: "FFFF0000" } }, { named: _i.BuiltInName.Unknown12 }, { named: _i.BuiltInName.Unknown13 }, { named: _i.BuiltInName.Unknown14 }, { named: _i.BuiltInName.Title, font: { ...Lu, size: 18, fill: Ls.Scheme.Tx2 } }, { named: _i.BuiltInName.Heading1, font: { ...Lu, size: 15, weight: "bold", fill: Ls.Scheme.Tx2 }, border: { bottom: { style: Ys.StrokeStyle.Thick, color: Ls.Scheme.Accent1 } } }, { named: _i.BuiltInName.Heading2, font: { ...Lu, size: 13, weight: "bold", fill: Ls.Scheme.Tx2 }, border: { bottom: { style: Ys.StrokeStyle.Thick, color: "accent1 lumMod 40, lumOff 60" } } }, { named: _i.BuiltInName.Heading3, font: { ...Lu, weight: "bold", fill: Ls.Scheme.Tx2 }, border: { bottom: { style: Ys.StrokeStyle.Medium, color: "accent1 lumMod 40, lumOff 60" } } }, { named: _i.BuiltInName.Heading4, font: { weight: "bold", fill: Ls.Scheme.Tx2, ...Lu } }, { named: _i.BuiltInName.Input, fill: "FFFFCC99", font: { ...Lu, fill: "FF3F3F76" }, border: { left: { style: Ys.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Ys.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Ys.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Ys.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: _i.BuiltInName.Output, fill: "FFF2F2F2", font: { ...Lu, fill: "FF3F3F3F" }, border: { left: { style: Ys.StrokeStyle.Thin, color: "FF3F3F3F" }, top: { style: Ys.StrokeStyle.Thin, color: "FF3F3F3F" }, right: { style: Ys.StrokeStyle.Thin, color: "FF3F3F3F" }, bottom: { style: Ys.StrokeStyle.Thin, color: "FF3F3F3F" } } }, { named: _i.BuiltInName.Calculation, fill: "FFF2F2F2", font: { ...Lu, fill: "FFFA7D00" }, border: { left: { style: Ys.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Ys.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Ys.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Ys.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: _i.BuiltInName.CheckCell, fill: "FFA5A5A5", font: { ...Lu, fill: Ls.Scheme.Bg1 }, border: { left: { style: Ys.StrokeStyle.Double, color: "FF3F3F3F" }, top: { style: Ys.StrokeStyle.Double, color: "FF3F3F3F" }, right: { style: Ys.StrokeStyle.Double, color: "FF3F3F3F" }, bottom: { style: Ys.StrokeStyle.Double, color: "FF3F3F3F" } } }, { named: _i.BuiltInName.LinkedCell, font: { ...Lu, fill: "FFFA7D00" }, border: { bottom: { style: Ys.StrokeStyle.Double, color: "FFFF8001" } } }, { named: _i.BuiltInName.Total, font: { ...Lu, weight: "bold", fill: Ls.Scheme.Tx1 }, border: { top: { style: Ys.StrokeStyle.Thin, color: Ls.Scheme.Accent1 }, bottom: { style: Ys.StrokeStyle.Double, color: Ls.Scheme.Accent1 } } }, { named: _i.BuiltInName.Good, fill: "FFC6EFCE", font: { ...Lu, fill: "FF006100" } }, { named: _i.BuiltInName.Bad, fill: "FFFFC7CE", font: { ...Lu, fill: "FF9C0006" } }, { named: _i.BuiltInName.Neutral, fill: "FFFFEB9C", font: { ...Lu, fill: "FF9C5700" } }, { named: _i.BuiltInName.Accent1 }, { named: _i.BuiltInName.Accent1_20 }, { named: _i.BuiltInName.Accent1_40 }, { named: _i.BuiltInName.Accent1_60 }, { named: _i.BuiltInName.Accent2 }, { named: _i.BuiltInName.Accent2_20 }, { named: _i.BuiltInName.Accent2_40 }, { named: _i.BuiltInName.Accent2_60 }, { named: _i.BuiltInName.Accent3 }, { named: _i.BuiltInName.Accent3_20 }, { named: _i.BuiltInName.Accent3_40 }, { named: _i.BuiltInName.Accent3_60 }, { named: _i.BuiltInName.Accent4 }, { named: _i.BuiltInName.Accent4_20 }, { named: _i.BuiltInName.Accent4_40 }, { named: _i.BuiltInName.Accent4_60 }, { named: _i.BuiltInName.Accent5 }, { named: _i.BuiltInName.Accent5_20 }, { named: _i.BuiltInName.Accent5_40 }, { named: _i.BuiltInName.Accent5_60 }, { named: _i.BuiltInName.Accent6 }, { named: _i.BuiltInName.Accent6_20 }, { named: _i.BuiltInName.Accent6_40 }, { named: _i.BuiltInName.Accent6_60 }, { named: _i.BuiltInName.ExplanatoryText, font: { ...Lu, style: Jo.Style.Italic, fill: "FF7F7F7F" } }];
|
|
8939
8935
|
for (let e2 = 29; e2 <= 52; e2++) {
|
|
8940
8936
|
const n2 = (e2 - 29) % 4, r2 = Math.floor((e2 - 29) / 4);
|
|
8941
8937
|
let o2 = "";
|
|
@@ -8943,7 +8939,7 @@ const xu = (t2, e2) => {
|
|
|
8943
8939
|
}
|
|
8944
8940
|
return o.deepFreeze(t2);
|
|
8945
8941
|
})();
|
|
8946
|
-
const
|
|
8942
|
+
const Vu = new class {
|
|
8947
8943
|
_svgImage(t2, e2, n2, r2 = 8) {
|
|
8948
8944
|
return { backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${r2}' height='${r2}' viewBox='0 0 ${r2} ${r2}' shape-rendering='crispEdges' %3E%3Cpath d='${n2}' stroke='${t2}' %3E%3C/path%3E%3C/svg%3E")`, backgroundRepeat: "repeat", backgroundSize: `${r2}px ${r2}px`, backgroundPositionX: "0px", backgroundPositionY: "0px", backgroundPosition: "" + -r2, backgroundColor: e2 };
|
|
8949
8945
|
}
|
|
@@ -9024,7 +9020,7 @@ class Uu {
|
|
|
9024
9020
|
return null;
|
|
9025
9021
|
}
|
|
9026
9022
|
}
|
|
9027
|
-
class
|
|
9023
|
+
class qu extends Uu {
|
|
9028
9024
|
constructor(t2, e2, n2) {
|
|
9029
9025
|
super(e2, n2), this._edge = t2;
|
|
9030
9026
|
}
|
|
@@ -9058,24 +9054,24 @@ class Ju extends Uu {
|
|
|
9058
9054
|
return true;
|
|
9059
9055
|
}
|
|
9060
9056
|
}
|
|
9061
|
-
class
|
|
9057
|
+
class Ju extends Uu {
|
|
9062
9058
|
getLeft() {
|
|
9063
|
-
return new
|
|
9059
|
+
return new qu(Ys.Edge.Left, this._c, this._values(Ys.Edge.Left));
|
|
9064
9060
|
}
|
|
9065
9061
|
getRight() {
|
|
9066
|
-
return new
|
|
9062
|
+
return new qu(Ys.Edge.Right, this._c, this._values(Ys.Edge.Right));
|
|
9067
9063
|
}
|
|
9068
9064
|
getTop() {
|
|
9069
|
-
return new
|
|
9065
|
+
return new qu(Ys.Edge.Top, this._c, this._values(Ys.Edge.Top));
|
|
9070
9066
|
}
|
|
9071
9067
|
getBottom() {
|
|
9072
|
-
return new
|
|
9068
|
+
return new qu(Ys.Edge.Bottom, this._c, this._values(Ys.Edge.Bottom));
|
|
9073
9069
|
}
|
|
9074
9070
|
getDiagonalUp() {
|
|
9075
|
-
return new
|
|
9071
|
+
return new qu(Ys.Edge.DiagonalUp, this._c, this._values(Ys.Edge.DiagonalUp));
|
|
9076
9072
|
}
|
|
9077
9073
|
getDiagonalDown() {
|
|
9078
|
-
return new
|
|
9074
|
+
return new qu(Ys.Edge.DiagonalDown, this._c, this._values(Ys.Edge.DiagonalDown));
|
|
9079
9075
|
}
|
|
9080
9076
|
isEmpty() {
|
|
9081
9077
|
return false;
|
|
@@ -9122,21 +9118,21 @@ class Xu extends Uu {
|
|
|
9122
9118
|
}
|
|
9123
9119
|
isSuperSub() {
|
|
9124
9120
|
const t2 = this.getVerticalAlignment();
|
|
9125
|
-
return t2 ===
|
|
9121
|
+
return t2 === Jo.VerticalAlignment.Sub || t2 === Jo.VerticalAlignment.Super;
|
|
9126
9122
|
}
|
|
9127
9123
|
isSuperScript() {
|
|
9128
9124
|
const t2 = this.getVerticalAlignment();
|
|
9129
|
-
return t2 ===
|
|
9125
|
+
return t2 === Jo.VerticalAlignment.Sub || t2 === Jo.VerticalAlignment.Super;
|
|
9130
9126
|
}
|
|
9131
9127
|
getSuperSubScale() {
|
|
9132
9128
|
return this.getFamily(), this.getSize(), this.getVerticalAlignment(), 0.6;
|
|
9133
9129
|
}
|
|
9134
9130
|
getSuperSubShift() {
|
|
9135
|
-
return this.getFamily(), t2 = this.getSize(), (e2 = this.getVerticalAlignment()) ===
|
|
9131
|
+
return this.getFamily(), t2 = this.getSize(), (e2 = this.getVerticalAlignment()) === Jo.VerticalAlignment.Super ? -t2 / 3 : e2 === Jo.VerticalAlignment.Sub ? t2 / 5 : 0;
|
|
9136
9132
|
var t2, e2;
|
|
9137
9133
|
}
|
|
9138
9134
|
toCSS(t2, e2 = 1, n2 = false) {
|
|
9139
|
-
const r2 = { fontFamily: ad(this.getFamily(), this.getFallbacks()), letterSpacing: `${this.getLetterSpacing()}px`, fontWeight: this.getWeight(), fontStyle: this.getStyle(), textDecoration: nd(this.getUnderline(), this.getStrike()), color: this.getFill().toCSS(t2), fontSize: `${o.roundAccurately(this.getSize() *
|
|
9135
|
+
const r2 = { fontFamily: ad(this.getFamily(), this.getFallbacks()), letterSpacing: `${this.getLetterSpacing()}px`, fontWeight: this.getWeight(), fontStyle: this.getStyle(), textDecoration: nd(this.getUnderline(), this.getStrike()), color: this.getFill().toCSS(t2), fontSize: `${o.roundAccurately(this.getSize() * Jo.getDeviceScale() * e2, 2)}px`, textRendering: "geometricPrecision" };
|
|
9140
9136
|
if (n2) {
|
|
9141
9137
|
const n3 = this._c.getNormal().getFont().toCSS(t2, e2, false), s2 = r2.textDecoration, i2 = r2.fontWeight;
|
|
9142
9138
|
o.removeEqualValues(r2, n3), s2 && (r2.textDecoration = s2), i2 && (r2.fontWeight = i2);
|
|
@@ -9276,7 +9272,7 @@ class ng extends Uu {
|
|
|
9276
9272
|
}
|
|
9277
9273
|
toCSS(t2) {
|
|
9278
9274
|
const e2 = this.getBackground().toCSS(t2), n2 = this.getForeground().toCSS(t2);
|
|
9279
|
-
return this.getPatternType() === Os.BuiltInSheetPattern.None ? { background: "none" } : this.getPatternType() === Os.BuiltInSheetPattern.Solid ? { background: this.getForeground().toCSS(t2) } :
|
|
9275
|
+
return this.getPatternType() === Os.BuiltInSheetPattern.None ? { background: "none" } : this.getPatternType() === Os.BuiltInSheetPattern.Solid ? { background: this.getForeground().toCSS(t2) } : Vu.toCSS(this.getPatternType(), n2, e2);
|
|
9280
9276
|
}
|
|
9281
9277
|
toJSON() {
|
|
9282
9278
|
const t2 = { type: Os.Type.Pattern };
|
|
@@ -9311,7 +9307,7 @@ class rg {
|
|
|
9311
9307
|
let s2 = o2.getFallbacks();
|
|
9312
9308
|
"Aptos Narrow" === n2 && (s2 = ["Calibri", ...s2]);
|
|
9313
9309
|
const i2 = ad(n2, s2);
|
|
9314
|
-
return
|
|
9310
|
+
return Jo.getSharedMeasurer()(t2, e2 * Jo.getDeviceScale(), i2, { isBold: o2.getWeight() > 400, isItalic: o2.getStyle().includes("italic"), letterSpacing: o2.getLetterSpacing(), ...r2 });
|
|
9315
9311
|
}
|
|
9316
9312
|
createTemporaryTextFrame(t2, e2 = false) {
|
|
9317
9313
|
return ms(t2, this.getFont(), this.getAlignment(), e2);
|
|
@@ -9329,7 +9325,7 @@ class rg {
|
|
|
9329
9325
|
return s2 && (void 0 !== s2.top && (r2.top += s2.top), void 0 !== s2.left && (r2.left += s2.left), void 0 !== s2.bottom && (r2.bottom += s2.bottom), void 0 !== s2.right && (r2.right += s2.right)), this._insets = Object.freeze(r2), this._insets;
|
|
9330
9326
|
}
|
|
9331
9327
|
getBorder() {
|
|
9332
|
-
return new
|
|
9328
|
+
return new Ju(this._c, this._p.values("border"));
|
|
9333
9329
|
}
|
|
9334
9330
|
getFont() {
|
|
9335
9331
|
return new Xu(this._c, this._p.values("font"));
|
|
@@ -9533,7 +9529,7 @@ const gg = new class {
|
|
|
9533
9529
|
const a2 = cg;
|
|
9534
9530
|
a2.type = void 0, a2.value = void 0, a2.style = void 0, a2.formula = void 0, a2.hyperlink = void 0, a2.stringToParse = void 0;
|
|
9535
9531
|
let l2, c2 = i2.value, h2 = false;
|
|
9536
|
-
if (void 0 !== i2.value && (l2 = hc(c2), l2 || (h2 =
|
|
9532
|
+
if (void 0 !== i2.value && (l2 = hc(c2), l2 || (h2 = Jr(c2), h2 && (l2 = t.Number)), !l2)) throw new Error("Invalid cell type. See documentation for information on valid built in cell types and creating custom cell types.");
|
|
9537
9533
|
let d2, u2, g2 = null, m2 = null;
|
|
9538
9534
|
let f2;
|
|
9539
9535
|
if (l2 === t.String) {
|
|
@@ -9729,7 +9725,7 @@ class vg {
|
|
|
9729
9725
|
}
|
|
9730
9726
|
getA1() {
|
|
9731
9727
|
const t2 = this._coords;
|
|
9732
|
-
return t2 ?
|
|
9728
|
+
return t2 ? Vc(this._options.resolveRange(t2).getCoords()) : Rc;
|
|
9733
9729
|
}
|
|
9734
9730
|
getSheet() {
|
|
9735
9731
|
return this._options.sheet;
|
|
@@ -10073,10 +10069,10 @@ const Ng = (t2, n2, r2, o2 = false) => {
|
|
|
10073
10069
|
toString() {
|
|
10074
10070
|
return `${this._coords ? Bc(this._coords) : Rc} => ${this._v ?? "{blank}"}`;
|
|
10075
10071
|
}
|
|
10076
|
-
}(), Hg = () =>
|
|
10077
|
-
}, [Symbol.iterator]: Pg, entries: Pg, select: wh, find: wh, calculate: wh, getCell: () => Wg, getValue: Bg, waitForCalcs: () => Promise.resolve(
|
|
10078
|
-
function
|
|
10079
|
-
return t2 || n2 ? Object.freeze({
|
|
10072
|
+
}(), Hg = () => $g, $g = { forEach: () => {
|
|
10073
|
+
}, [Symbol.iterator]: Pg, entries: Pg, select: wh, find: wh, calculate: wh, getCell: () => Wg, getValue: Bg, waitForCalcs: () => Promise.resolve($g), setValue: wh, setFormula: wh, setValues: wh, updateCells: wh, updateStyle: wh, getCells: () => [[Wg]], getStyleUpdater: wh, getValues: () => [[null]], getBounds: Bg, getIntersect: Hg, getUnion: Hg, getDifferences: wh, getResizeBy: Hg, getResizeTo: Hg, getOffsetBy: Hg, getOffsetTo: Hg, getFixed: Hg, getUsedRange: Hg, getEntireRows: Hg, getEntireColumns: Hg, getSurrounding: wh, getExtended: wh, isEntireRows: Dg, isEntireColumns: Dg, isEntireRange: Dg, getWidth: zg, getHeight: zg, 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: zg, isContentful: Dg, addListener: wh, getColumnStart: zg, getRowStart: zg, getColumnEnd: zg, getRowEnd: zg, getRowCount: zg, getColumnCount: zg, getVisible: wh, getCoords: Bg, isEmpty: Lg, toString: () => Rc, getA1: () => Rc, isInvalid: Lg, getSheet: Bg, isReadOnly: Lg, isICellRange: true };
|
|
10074
|
+
function Vg(t2, e2 = null, n2 = null, r2 = Rc) {
|
|
10075
|
+
return t2 || n2 ? Object.freeze({ ...$g, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ? Hc(n2, e2) : r2 }) : $g;
|
|
10080
10076
|
}
|
|
10081
10077
|
const jg = /^[\\+-]?[0-9]*\.?[0-9]*$/, Gg = (t2, e2, r2) => {
|
|
10082
10078
|
if (void 0 === t2) throw new Error("A value is required to create a cell from a text.");
|
|
@@ -10179,20 +10175,20 @@ const jg = /^[\\+-]?[0-9]*\.?[0-9]*$/, Gg = (t2, e2, r2) => {
|
|
|
10179
10175
|
const _2 = n.getBuiltInByLabel(t2);
|
|
10180
10176
|
return _2 ? (s2.value = _2, s2) : (s2.value = t2, Oo(t2) ? s2.hyperlink = t2 : Lo(t2) && (s2.hyperlink = t2, s2.hyperlink.toLowerCase().startsWith("mailto:") || (s2.hyperlink = `mailto:${s2.hyperlink}`)), t2.includes("\n") && (s2.style = { ...s2?.style, alignment: { overflow: wo.Overflow.Wrap } }), s2);
|
|
10181
10177
|
}, Ug = (t2) => {
|
|
10182
|
-
const e2 = t2.getFont().getUnderline() ===
|
|
10178
|
+
const e2 = t2.getFont().getUnderline() === Jo.UnderlineStyle.SingleAccounting, n2 = t2.getFont().getUnderline() === Jo.UnderlineStyle.DoubleAccounting;
|
|
10183
10179
|
let r2 = 0;
|
|
10184
10180
|
if (e2 || n2) {
|
|
10185
10181
|
r2 = t2.measureText("").underlineThickness + 1, n2 ? r2 *= 2 : r2 += 1;
|
|
10186
10182
|
}
|
|
10187
10183
|
return r2;
|
|
10188
|
-
},
|
|
10184
|
+
}, qg = (t2) => {
|
|
10189
10185
|
const e2 = [];
|
|
10190
10186
|
t2.getUsedRange().forEachSpan((t3, n2) => {
|
|
10191
10187
|
const r2 = n2.getCoords();
|
|
10192
10188
|
0 === t3 && e2.push(r2);
|
|
10193
10189
|
}, { includeStyles: false });
|
|
10194
10190
|
return bs(vs(e2));
|
|
10195
|
-
},
|
|
10191
|
+
}, Jg = (t2, n2, r2, o2) => {
|
|
10196
10192
|
const s2 = o2?.asJSDate;
|
|
10197
10193
|
let i2;
|
|
10198
10194
|
r2 ? i2 = Mh : (s2 || o2?.includeMergeOverflow) && (i2 = {}, s2 && (i2[Rh.Type.Style] = false, i2[Rh.Type.Table] = false), o2.includeMergeOverflow && (i2[Rh.Type.Merge] = false));
|
|
@@ -10235,16 +10231,16 @@ class Yg {
|
|
|
10235
10231
|
o2._c = null;
|
|
10236
10232
|
}, this.context = { getCoords() {
|
|
10237
10233
|
const t2 = o2._c;
|
|
10238
|
-
if (!t2) throw new Error(
|
|
10234
|
+
if (!t2) throw new Error(Vh);
|
|
10239
10235
|
return t2;
|
|
10240
10236
|
}, getCell() {
|
|
10241
10237
|
const t2 = o2._c;
|
|
10242
|
-
if (!t2) throw new Error(
|
|
10238
|
+
if (!t2) throw new Error(Vh);
|
|
10243
10239
|
if (this.excludeCellDetails) throw new Error("IteratorContext can only return a cell if the forEach excludeCellDetails has not been set to false.");
|
|
10244
10240
|
const e3 = o2._r, n3 = o2._t, s2 = o2._v;
|
|
10245
10241
|
return null !== s2 || e3 ? new vg(r2, t2, n3, s2, e3, o2._p, o2._n) : new vg(r2, t2);
|
|
10246
10242
|
}, getType: () => o2._t, getA1(t2) {
|
|
10247
|
-
if (!o2.context) throw new Error(
|
|
10243
|
+
if (!o2.context) throw new Error(Vh);
|
|
10248
10244
|
let e3 = o2._c;
|
|
10249
10245
|
return t2 && (e3 = { ...o2._c, ...t2 }), r2.resolveRange(e3).toString();
|
|
10250
10246
|
}, toJSDate(e3) {
|
|
@@ -10885,7 +10881,7 @@ class bm extends im {
|
|
|
10885
10881
|
return this.getUsedRange().select(t2);
|
|
10886
10882
|
}
|
|
10887
10883
|
getRange() {
|
|
10888
|
-
return this._range ? this._range : this._getState() ? this._range = this._sheet.getRange(this._getState().anchor) :
|
|
10884
|
+
return this._range ? this._range : this._getState() ? this._range = this._sheet.getRange(this._getState().anchor) : $g;
|
|
10889
10885
|
}
|
|
10890
10886
|
_processRestoreOrRevert(t2, e2, n2) {
|
|
10891
10887
|
this._styleCache = null, super._processRestoreOrRevert(t2, e2, n2);
|
|
@@ -10895,7 +10891,7 @@ class bm extends im {
|
|
|
10895
10891
|
}
|
|
10896
10892
|
getUsedRange() {
|
|
10897
10893
|
const t2 = this._getUsedCoords();
|
|
10898
|
-
return t2 ? this._sheet.getRange(t2) :
|
|
10894
|
+
return t2 ? this._sheet.getRange(t2) : $g;
|
|
10899
10895
|
}
|
|
10900
10896
|
_getUsedCoords() {
|
|
10901
10897
|
const t2 = this._getState(), e2 = t2.headerRowCount, n2 = t2.totalsRowCount, r2 = t2.anchor;
|
|
@@ -10905,7 +10901,7 @@ class bm extends im {
|
|
|
10905
10901
|
}
|
|
10906
10902
|
getHeaderRange() {
|
|
10907
10903
|
const t2 = this._getHeaderCoords();
|
|
10908
|
-
return t2 ? this._sheet.getRange(t2) :
|
|
10904
|
+
return t2 ? this._sheet.getRange(t2) : $g;
|
|
10909
10905
|
}
|
|
10910
10906
|
_getHeaderCoords() {
|
|
10911
10907
|
const t2 = this._getState(), e2 = t2.headerRowCount;
|
|
@@ -10915,7 +10911,7 @@ class bm extends im {
|
|
|
10915
10911
|
}
|
|
10916
10912
|
getTotalRange() {
|
|
10917
10913
|
const t2 = this._getTotalCoords();
|
|
10918
|
-
return t2 ? this._sheet.getRange(t2) :
|
|
10914
|
+
return t2 ? this._sheet.getRange(t2) : $g;
|
|
10919
10915
|
}
|
|
10920
10916
|
_getTotalCoords() {
|
|
10921
10917
|
const t2 = this._getState(), e2 = t2.totalsRowCount;
|
|
@@ -11556,7 +11552,7 @@ class Fm {
|
|
|
11556
11552
|
}
|
|
11557
11553
|
_initializeBuiltIns() {
|
|
11558
11554
|
const t2 = /* @__PURE__ */ new Map();
|
|
11559
|
-
this._builtInsCellStyles = t2, this._initializeNamedStyles(
|
|
11555
|
+
this._builtInsCellStyles = t2, this._initializeNamedStyles($u, t2), this._builtInsTableStyles = this._initializeTableStyles(), this._emptyTableStyle = new Gi.Empty(this._normalStyle);
|
|
11560
11556
|
}
|
|
11561
11557
|
getNormal() {
|
|
11562
11558
|
return this._normalStyle;
|
|
@@ -11987,9 +11983,9 @@ class Wm {
|
|
|
11987
11983
|
});
|
|
11988
11984
|
}
|
|
11989
11985
|
}
|
|
11990
|
-
var Hm,
|
|
11986
|
+
var Hm, $m;
|
|
11991
11987
|
Hm || (Hm = {});
|
|
11992
|
-
class
|
|
11988
|
+
class Vm extends Xi {
|
|
11993
11989
|
constructor(t2) {
|
|
11994
11990
|
super(t2), t2.json && (this._resource = t2.fromResourceId(t2.json.resId));
|
|
11995
11991
|
}
|
|
@@ -12038,7 +12034,7 @@ class $m extends Xi {
|
|
|
12038
12034
|
super._processDelete();
|
|
12039
12035
|
}
|
|
12040
12036
|
}
|
|
12041
|
-
(
|
|
12037
|
+
($m || ($m = {})).Status = { Ready: "ready", Error: "error", Starting: "starting", Stopping: "stopping", Off: "off" };
|
|
12042
12038
|
class jm extends rc {
|
|
12043
12039
|
constructor(t2, e2 = null, n2, r2, o2) {
|
|
12044
12040
|
if (super(t2, n2, e2), this._sheetName = r2 || null, this._getEntireCoords = o2 ?? lc, this._coords = Gm(n2, this._getEntireCoords()), !n2) throw new Error("ReferenceRange requires a coords");
|
|
@@ -12070,7 +12066,7 @@ class jm extends rc {
|
|
|
12070
12066
|
const Gm = (t2, e2) => {
|
|
12071
12067
|
let n2 = t2.rowStart, r2 = t2.rowEnd, o2 = t2.colStart, s2 = t2.colEnd, i2 = false;
|
|
12072
12068
|
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;
|
|
12073
|
-
}, Um = (t2, e2) => t2.value?.once === e2.value?.once,
|
|
12069
|
+
}, Um = (t2, e2) => t2.value?.once === e2.value?.once, qm = (t2, e2) => t2.colStart === e2.colStart && t2.rowStart === e2.rowStart, Jm = (t2, e2, n2) => !!n2 && (t2 === n2.rowStart && e2 === n2.colStart), Km = (t2, n2 = 0, r2 = 0) => {
|
|
12074
12070
|
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);
|
|
12075
12071
|
let d2 = i2.next();
|
|
12076
12072
|
for (; !d2.done; ) {
|
|
@@ -12088,11 +12084,11 @@ const Gm = (t2, e2) => {
|
|
|
12088
12084
|
const d3 = e2 < w2 ? n2[e2] : r2[e2 - w2], u3 = s2.search(d3), g3 = u3.length;
|
|
12089
12085
|
for (let e3 = 0; e3 < g3; e3++) {
|
|
12090
12086
|
const n3 = u3[e3];
|
|
12091
|
-
if (!
|
|
12087
|
+
if (!Jm(n3.rowStart, n3.colStart, d3)) {
|
|
12092
12088
|
if (n3.value.getError()) continue;
|
|
12093
12089
|
E2 || (E2 = []), E2.push(n3);
|
|
12094
12090
|
}
|
|
12095
|
-
s2.remove(n3,
|
|
12091
|
+
s2.remove(n3, qm);
|
|
12096
12092
|
const r3 = n3.value;
|
|
12097
12093
|
r3.getCycleId() !== t2 && h2?.insert(n3), r3.getError() || (i2.delete(n3), o2.insertNonOverlapping({ colStart: n3.colStart, rowStart: n3.rowStart, colEnd: n3.colEnd, rowEnd: n3.rowEnd, value: null }, { onIntersect: (t3, e4) => {
|
|
12098
12094
|
if (null !== t3.value) return a2?.push(t3), _2 = c.unionRanges(_2, t3), l2?.insertNonOverlapping(t3), _2 = c.unionRanges(_2, t3), e4;
|
|
@@ -12220,7 +12216,7 @@ class Qm {
|
|
|
12220
12216
|
}), this._cycleId = 1, this._values = new bl({ orientation: e.Orientation.Column }), this._getFormulaParser = t2.getFormulaParser, !this._getFormulaParser) throw new Error("Formula parser is not defined");
|
|
12221
12217
|
this._latest = { graph: this }, this._iterationId = 0;
|
|
12222
12218
|
const o2 = this;
|
|
12223
|
-
this._formulaSpatial = new
|
|
12219
|
+
this._formulaSpatial = new Ja({ updateEntryOptions: { isMergeOnShift: true, isSplitOnExpand: true, onUpdates: (t3, e2, r3) => {
|
|
12224
12220
|
const s3 = r3._cloneKey ?? o2;
|
|
12225
12221
|
if (s3._isProcessingJSON) return;
|
|
12226
12222
|
let i2 = s3._notifyFormulaInsertEntries, a2 = s3._notifyFormulaRemoveEntries;
|
|
@@ -12261,9 +12257,9 @@ class Qm {
|
|
|
12261
12257
|
}
|
|
12262
12258
|
l2.load(e3);
|
|
12263
12259
|
}
|
|
12264
|
-
} } }), this._contentfulSpatial = new
|
|
12260
|
+
} } }), this._contentfulSpatial = new Ja({ updateEntryOptions: { isSplitOnExpand: true, isMergeOnShift: true } });
|
|
12265
12261
|
const s2 = { updateEntryOptions: { isSplitOnExpand: true, isMergeOnShift: false } };
|
|
12266
|
-
this._precedentSpatial = new
|
|
12262
|
+
this._precedentSpatial = new Ja(s2), this._volatile = /* @__PURE__ */ new Set(), this._spillSpatial = new Ja(s2), this._errorSpatial = new Ja(s2), this._pendingSpatial = new Ja(s2), this._invalidations = new Ja(), this._notifyValues = new Ja(), this._notifySpills = new Ja(), this._notifyFormats = new Ja(), this._notifyPending = new Ja(), this._calculation = t2.calculation, this._clearScope();
|
|
12267
12263
|
}
|
|
12268
12264
|
addListeners(t2, e2) {
|
|
12269
12265
|
return this._emitter || (this._emitter = new Ki(this)), this._emitter.addListeners(t2, e2);
|
|
@@ -12581,7 +12577,7 @@ class Qm {
|
|
|
12581
12577
|
const e3 = t3.search(i4), n4 = e3.length;
|
|
12582
12578
|
for (let t4 = 0; t4 < n4; t4++) {
|
|
12583
12579
|
let n5 = e3[t4];
|
|
12584
|
-
if (
|
|
12580
|
+
if (Jm(i4.rowStart, i4.colStart, n5) && a3.getCycleId() === o2) {
|
|
12585
12581
|
r3 || (r3 = [], s3 = /* @__PURE__ */ new Set());
|
|
12586
12582
|
const t5 = Dc(n5.colStart) + kc(n5.rowStart);
|
|
12587
12583
|
if (s3.has(t5)) continue;
|
|
@@ -12609,7 +12605,7 @@ class Qm {
|
|
|
12609
12605
|
});
|
|
12610
12606
|
}
|
|
12611
12607
|
_setInputs(t2, n2, r2) {
|
|
12612
|
-
if (this._calculation.getStatus() ===
|
|
12608
|
+
if (this._calculation.getStatus() === $m.Status.Starting) return this._addToPending(() => {
|
|
12613
12609
|
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)) };
|
|
12614
12610
|
return Promise.resolve(s3);
|
|
12615
12611
|
}), Mf;
|
|
@@ -12843,32 +12839,32 @@ class Qm {
|
|
|
12843
12839
|
f2.remove(W2), W2 && W2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
|
|
12844
12840
|
}
|
|
12845
12841
|
}
|
|
12846
|
-
let
|
|
12842
|
+
let $2 = 1, V2 = 1;
|
|
12847
12843
|
const j2 = F2, G2 = j2?.isIRange;
|
|
12848
|
-
let U2,
|
|
12844
|
+
let U2, q2 = F2 instanceof n.Spill;
|
|
12849
12845
|
if (G2 && j2.size > 1) {
|
|
12850
|
-
|
|
12851
|
-
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 +
|
|
12852
|
-
if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)),
|
|
12846
|
+
$2 = j2.getWidth(), V2 = j2.getHeight();
|
|
12847
|
+
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + $2 - 1, rowEnd: x2 + V2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
|
|
12848
|
+
if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), q2 = o3, !q2) {
|
|
12853
12849
|
const e4 = d2.search(t3);
|
|
12854
|
-
if (
|
|
12850
|
+
if (q2 = e4.length > 1, !q2 && 1 === e4.length) {
|
|
12855
12851
|
const n2 = e4[0], r3 = c.intersectRanges(t3, n2, rf);
|
|
12856
|
-
(r3 && (r3.rowEnd !== r3.rowStart || r3.colStart !== r3.colEnd) || r3.colStart !== v2 || r3.rowStart !== x2) && (
|
|
12852
|
+
(r3 && (r3.rowEnd !== r3.rowStart || r3.colStart !== r3.colEnd) || r3.colStart !== v2 || r3.rowStart !== x2) && (q2 = true);
|
|
12857
12853
|
}
|
|
12858
12854
|
}
|
|
12859
12855
|
let s3, i3;
|
|
12860
|
-
if (
|
|
12861
|
-
F2 = n.BuiltIn.Spill,
|
|
12856
|
+
if (q2) {
|
|
12857
|
+
F2 = n.BuiltIn.Spill, $2 = 1, V2 = 1;
|
|
12862
12858
|
s3 = [[N2, [[T2, [F2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
|
|
12863
12859
|
} else {
|
|
12864
12860
|
const e4 = Km(j2, N2, T2);
|
|
12865
12861
|
e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
|
|
12866
12862
|
}
|
|
12867
|
-
U2 = { ...t3, value: new yh(t3, l2,
|
|
12863
|
+
U2 = { ...t3, value: new yh(t3, l2, q2) }, f2.insert(U2), E2 = Ym(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Eh(i3, _2) });
|
|
12868
12864
|
}
|
|
12869
|
-
(!c.isEqualRanges(W2, U2) ||
|
|
12870
|
-
let
|
|
12871
|
-
k2.getError() && (
|
|
12865
|
+
(!c.isEqualRanges(W2, U2) || q2 || H2) && (W2 && g2.insert(W2), U2 && g2.insert(U2)), $2 === B2 && V2 === P2 || (C2.state = vh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max($2, B2) - 1, rowEnd: x2 + Math.max(V2, P2) - 1 }), a2 = false);
|
|
12866
|
+
let J2 = F2 && F2.isFormulaError ? F2 : null;
|
|
12867
|
+
k2.getError() && (J2 = k2.getError()), (J2 || R2 && !t2) && (J2 && !J2.equals(R2) || R2 && R2.equals(J2)), C2.cachedValue = F2, s2[i2++] = C2;
|
|
12872
12868
|
}
|
|
12873
12869
|
if (o2.node = null, o2.colIndex = Number.MAX_SAFE_INTEGER, o2.rowIndex = Number.MAX_SAFE_INTEGER, w2) {
|
|
12874
12870
|
const t3 = w2.done(true);
|
|
@@ -12878,8 +12874,8 @@ class Qm {
|
|
|
12878
12874
|
}
|
|
12879
12875
|
async calculate(t2) {
|
|
12880
12876
|
const e2 = this._calculation.getStatus();
|
|
12881
|
-
if (e2 ===
|
|
12882
|
-
if (e2 !==
|
|
12877
|
+
if (e2 === $m.Status.Starting) return void this._addToPending(() => this.calculate(t2));
|
|
12878
|
+
if (e2 !== $m.Status.Ready) return;
|
|
12883
12879
|
let n2 = this._fullCalcRequired;
|
|
12884
12880
|
n2 || ("boolean" == typeof t2 ? n2 = t2 : t2 && (n2 = t2.full ?? false));
|
|
12885
12881
|
const r2 = this._invalidations;
|
|
@@ -12962,8 +12958,8 @@ class Qm {
|
|
|
12962
12958
|
}
|
|
12963
12959
|
fromJSON(t2) {
|
|
12964
12960
|
const r2 = this._calculation.getStatus();
|
|
12965
|
-
if (r2 ===
|
|
12966
|
-
if (r2 !==
|
|
12961
|
+
if (r2 === $m.Status.Starting) return void this._addToPending(() => Promise.resolve(this.fromJSON(t2)));
|
|
12962
|
+
if (r2 !== $m.Status.Ready) return;
|
|
12967
12963
|
this._clearAll();
|
|
12968
12964
|
const o2 = { cycleId: 0, isFull: true };
|
|
12969
12965
|
if (!t2) return o2;
|
|
@@ -13178,7 +13174,7 @@ class Tf {
|
|
|
13178
13174
|
async _initialize() {
|
|
13179
13175
|
const t2 = await at._validate(true), e2 = Ff();
|
|
13180
13176
|
this._calcScope = e2, this._runtime = new kf(this._options, t2);
|
|
13181
|
-
const { initializeBuiltIns: n2 } = await import("./
|
|
13177
|
+
const { initializeBuiltIns: n2 } = await import("./C5UbQfGTCH4EGett.mjs"), r2 = this;
|
|
13182
13178
|
return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
|
|
13183
13179
|
}
|
|
13184
13180
|
getBuiltInFunctions() {
|
|
@@ -13217,7 +13213,7 @@ class Tf {
|
|
|
13217
13213
|
return this._options.getSheetCount?.() ?? 1;
|
|
13218
13214
|
}
|
|
13219
13215
|
isValidDate(t2) {
|
|
13220
|
-
return
|
|
13216
|
+
return Jr(t2);
|
|
13221
13217
|
}
|
|
13222
13218
|
fromOADate(t2) {
|
|
13223
13219
|
return to(t2, this._options.isDate1904?.() ?? false);
|
|
@@ -13271,7 +13267,7 @@ class Tf {
|
|
|
13271
13267
|
if ("string" == typeof t2) {
|
|
13272
13268
|
if (e2) throw n.BuiltIn.Ref;
|
|
13273
13269
|
try {
|
|
13274
|
-
const r3 = Yc(t2, o2(),
|
|
13270
|
+
const r3 = Yc(t2, o2(), qc, () => {
|
|
13275
13271
|
throw n.BuiltIn.Ref;
|
|
13276
13272
|
}, e2);
|
|
13277
13273
|
if (r3.length > 1) throw n.BuiltIn.Ref;
|
|
@@ -13298,7 +13294,7 @@ class Tf {
|
|
|
13298
13294
|
getAddress(t2, e2 = false) {
|
|
13299
13295
|
t2 || (t2 = this.getPosition());
|
|
13300
13296
|
const n2 = this.getEntireCoords().sheetName;
|
|
13301
|
-
return void 0 !== t2.colIndex ? ((t3, e3, n3 = false) => n3 ? hh(t3, e3) :
|
|
13297
|
+
return void 0 !== t2.colIndex ? ((t3, e3, n3 = false) => n3 ? hh(t3, e3) : $c(t3, e3))(t2, n2, e2) : ((t3, e3, n3 = false) => (n3 ? hh({ colIndex: t3.colStart, rowIndex: t3.rowStart, $colIndex: t3.$colStart, $rowIndex: t3.$rowStart, sheetName: t3.sheetName }, e3) : $c({ colIndex: t3.colStart, rowIndex: t3.rowStart, $colIndex: t3.$colStart, $rowIndex: t3.$rowStart, sheetName: t3.sheetName }, e3)) + ":" + (n3 ? hh({ colIndex: t3.colEnd, rowIndex: t3.rowEnd, $colIndex: t3.$colEnd, $rowIndex: t3.$rowEnd }, null) : $c({ colIndex: t3.colEnd, rowIndex: t3.rowEnd, $colIndex: t3.$colEnd, $rowIndex: t3.$rowEnd }, null)))(t2, n2, e2);
|
|
13302
13298
|
}
|
|
13303
13299
|
parseAsDateTime(t2, e2 = false) {
|
|
13304
13300
|
return (function(t3, e3 = false, n2 = false) {
|
|
@@ -13351,7 +13347,7 @@ class kf {
|
|
|
13351
13347
|
}
|
|
13352
13348
|
getVersion() {
|
|
13353
13349
|
try {
|
|
13354
|
-
const t2 = "0.6.
|
|
13350
|
+
const t2 = "0.6.13";
|
|
13355
13351
|
if (-1 === t2.indexOf(".env.")) return `${t2}`;
|
|
13356
13352
|
} catch (t2) {
|
|
13357
13353
|
return "local";
|
|
@@ -13455,23 +13451,23 @@ class Pf {
|
|
|
13455
13451
|
}
|
|
13456
13452
|
const zf = new Pf(), Wf = "__SHEETXL";
|
|
13457
13453
|
let Hf;
|
|
13458
|
-
const
|
|
13459
|
-
let
|
|
13454
|
+
const $f = { FormulaContext: Hf, ScalarType: t, IRange: e, FormulaError: n, Observable: r };
|
|
13455
|
+
let Vf;
|
|
13460
13456
|
function jf(t2) {
|
|
13461
|
-
Hf || (Hf = zf,
|
|
13457
|
+
Hf || (Hf = zf, $f.FormulaContext = Hf), Vf = globalThis[Wf], globalThis[Wf] = $f, Hf._setScope(t2);
|
|
13462
13458
|
}
|
|
13463
13459
|
function Gf() {
|
|
13464
|
-
|
|
13460
|
+
Vf ? (globalThis[Wf] = Vf, Vf = void 0) : delete globalThis[Wf], Hf && Hf._setScope(null);
|
|
13465
13461
|
}
|
|
13466
13462
|
var Uf;
|
|
13467
13463
|
(Uf || (Uf = {})).Context = { Workbook: "workbook", Sheet: "sheet", Ranges: "ranges", Range: "range", Calculation: "calculation" };
|
|
13468
|
-
class
|
|
13464
|
+
class qf {
|
|
13469
13465
|
constructor(t2, e2, n2, r2 = null, o2 = false) {
|
|
13470
13466
|
this._ct = Uf.Context.Calculation, this._builtIn = false, this._broadcast = false, this._pj = null, this._json = t2, this._n = t2.name, this._d = new Zf(t2), this._ct = t2.context ?? Uf.Context.Calculation;
|
|
13471
13467
|
const s2 = t2.parameters;
|
|
13472
13468
|
let i2;
|
|
13473
13469
|
this._pj = s2, e2 || (console.log(`TypeFunction '${t2.name}' was not provided a function implementation.`), e2 = () => {
|
|
13474
|
-
}), this._fn = e2.bind(this), this._cf = n2 ?? Kf, this._builtIn = o2, i2 = r2 ? "function" == typeof r2 ? r2 : () => Promise.resolve(r2) :
|
|
13470
|
+
}), this._fn = e2.bind(this), this._cf = n2 ?? Kf, this._builtIn = o2, i2 = r2 ? "function" == typeof r2 ? r2 : () => Promise.resolve(r2) : Jf(t2), this._descFn = i2;
|
|
13475
13471
|
const a2 = s2?.length ?? 0;
|
|
13476
13472
|
let l2 = 1 === a2 || 2 === a2;
|
|
13477
13473
|
l2 && (s2[0].arrayDepth > 0 || s2[0].range) && (l2 = false), l2 && 2 === a2 && (s2[1].arrayDepth > 0 || s2[1].range) && (l2 = false), this._broadcast = l2;
|
|
@@ -13606,7 +13602,7 @@ class Jf {
|
|
|
13606
13602
|
return true;
|
|
13607
13603
|
}
|
|
13608
13604
|
}
|
|
13609
|
-
const
|
|
13605
|
+
const Jf = (t2) => async (e2) => {
|
|
13610
13606
|
const n2 = {};
|
|
13611
13607
|
for (let e3 = 0; e3 < t2.parameters.length; e3++) n2[t2.parameters[e3].name] = o.camelToPrettyCase(t2.parameters[e3].description);
|
|
13612
13608
|
return { summary: o.camelToPrettyCase(t2.name), parameters: n2, category: "User Defined" };
|
|
@@ -13826,18 +13822,18 @@ class rp {
|
|
|
13826
13822
|
return this._validateName(t2);
|
|
13827
13823
|
}
|
|
13828
13824
|
_validateName(t2, e2 = false) {
|
|
13829
|
-
if (this._closed) throw new Error(
|
|
13825
|
+
if (this._closed) throw new Error(qi);
|
|
13830
13826
|
}
|
|
13831
13827
|
add(t2) {
|
|
13832
|
-
if (this._closed) throw new Error(
|
|
13828
|
+
if (this._closed) throw new Error(qi);
|
|
13833
13829
|
if (!t2) throw new Error("Item must be specified.");
|
|
13834
13830
|
let e2;
|
|
13835
13831
|
if (t2.isIFunction) {
|
|
13836
13832
|
const n3 = t2, r3 = t2._json;
|
|
13837
|
-
e2 = new
|
|
13833
|
+
e2 = new qf(r3, n3._fn, () => this._options.context, n3._desc);
|
|
13838
13834
|
} else {
|
|
13839
13835
|
const n3 = t2;
|
|
13840
|
-
e2 = new
|
|
13836
|
+
e2 = new qf(n3.declaration, n3.execute, () => this._options.context, n3.descriptor);
|
|
13841
13837
|
}
|
|
13842
13838
|
const n2 = this._getState(), r2 = e2.getName().toUpperCase();
|
|
13843
13839
|
return n2.itemsByKey.set(r2, e2), e2;
|
|
@@ -13846,7 +13842,7 @@ class rp {
|
|
|
13846
13842
|
return this._beginCommit(t2);
|
|
13847
13843
|
}
|
|
13848
13844
|
_getState() {
|
|
13849
|
-
if (this._closed) throw new Error(
|
|
13845
|
+
if (this._closed) throw new Error(qi);
|
|
13850
13846
|
return this._transactions.getState(this);
|
|
13851
13847
|
}
|
|
13852
13848
|
_beginCommit(t2) {
|
|
@@ -13879,7 +13875,7 @@ class rp {
|
|
|
13879
13875
|
}
|
|
13880
13876
|
class op extends Xi {
|
|
13881
13877
|
constructor(t2) {
|
|
13882
|
-
super(t2), this._status =
|
|
13878
|
+
super(t2), this._status = $m.Status.Off, this._statusTransition = null, this._emitter = new Ki(this);
|
|
13883
13879
|
}
|
|
13884
13880
|
_getContext() {
|
|
13885
13881
|
return this._context;
|
|
@@ -13889,16 +13885,16 @@ class op extends Xi {
|
|
|
13889
13885
|
}
|
|
13890
13886
|
start() {
|
|
13891
13887
|
return this._statusTransition || (this._statusTransition = (async () => {
|
|
13892
|
-
if (this._status ===
|
|
13893
|
-
this._status =
|
|
13888
|
+
if (this._status === $m.Status.Off) try {
|
|
13889
|
+
this._status = $m.Status.Starting, this._emitter.notify("onStatusChange"), this._emitter.notify("onStarting");
|
|
13894
13890
|
const t2 = this, e2 = this._options, n2 = (n3) => t2.getFunctions().getByName(n3) ?? e2?.getFunction?.(n3), r2 = new Tf({ ...e2, getFunction: n2 });
|
|
13895
13891
|
this._context = r2;
|
|
13896
13892
|
const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
|
|
13897
13893
|
this._functions = new rp({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
|
|
13898
|
-
const i2 = await import("./
|
|
13899
|
-
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status =
|
|
13894
|
+
const i2 = await import("./BO-jw-EK9dR2Yl0o.mjs");
|
|
13895
|
+
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = $m.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
|
|
13900
13896
|
} catch (t2) {
|
|
13901
|
-
throw this._status =
|
|
13897
|
+
throw this._status = $m.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
|
|
13902
13898
|
} finally {
|
|
13903
13899
|
this._statusTransition = null;
|
|
13904
13900
|
}
|
|
@@ -13909,13 +13905,13 @@ class op extends Xi {
|
|
|
13909
13905
|
return new Qm({ ...e2, ...t2, getFormulaParser: () => this._formulaParser, calculation: this });
|
|
13910
13906
|
}
|
|
13911
13907
|
async stop() {
|
|
13912
|
-
this._status ===
|
|
13908
|
+
this._status === $m.Status.Ready && (this._status = $m.Status.Stopping, this._emitter.notify("onStatusChange"), this._emitter.notify("onStopping"), this._status = $m.Status.Off, this._emitter.notify("onStatusChange"), this._emitter.notify("onStop"));
|
|
13913
13909
|
}
|
|
13914
13910
|
getStatus() {
|
|
13915
13911
|
return this._status;
|
|
13916
13912
|
}
|
|
13917
13913
|
async waitForFinish() {
|
|
13918
|
-
return this._status ===
|
|
13914
|
+
return this._status === $m.Status.Starting && await this._statusTransition, sp;
|
|
13919
13915
|
}
|
|
13920
13916
|
getFunctions() {
|
|
13921
13917
|
return this._checkReady(), this._functions;
|
|
@@ -13924,15 +13920,15 @@ class op extends Xi {
|
|
|
13924
13920
|
return this._checkReady(), this._runtime;
|
|
13925
13921
|
}
|
|
13926
13922
|
_checkReady() {
|
|
13927
|
-
if (this._status !==
|
|
13923
|
+
if (this._status !== $m.Status.Ready) throw new Error(this._statusMessage());
|
|
13928
13924
|
}
|
|
13929
13925
|
_statusMessage() {
|
|
13930
13926
|
switch (this._status) {
|
|
13931
|
-
case
|
|
13927
|
+
case $m.Status.Off:
|
|
13932
13928
|
return "Calculation is off";
|
|
13933
|
-
case
|
|
13929
|
+
case $m.Status.Starting:
|
|
13934
13930
|
return "Calculation is starting";
|
|
13935
|
-
case
|
|
13931
|
+
case $m.Status.Ready:
|
|
13936
13932
|
return "Calculation is ready";
|
|
13937
13933
|
default:
|
|
13938
13934
|
return "Unknown calculation status";
|
|
@@ -13962,13 +13958,13 @@ class mp {
|
|
|
13962
13958
|
r2.font = {}, i2 && (r2.font.family = i2.family, r2.font.fallbacks = i2.fallbacks, r2.font.size = i2.size), r2.font.size = s2.fontSize, r2.font.weight = s2.fontWeight, r2.font.style = s2.fontStyle, r2.font.fill = s2.color;
|
|
13963
13959
|
const a2 = ((t3) => {
|
|
13964
13960
|
if (!t3) return rd;
|
|
13965
|
-
let e3 =
|
|
13966
|
-
return (t3 = t3.toLowerCase()).includes("underline") && (e3 =
|
|
13961
|
+
let e3 = Jo.UnderlineStyle.None, n3 = false;
|
|
13962
|
+
return (t3 = t3.toLowerCase()).includes("underline") && (e3 = Jo.UnderlineStyle.Single), (t3.includes("line-through") || t3.includes("linethrough")) && (n3 = true), { underline: e3, strike: n3 };
|
|
13967
13963
|
})(s2.textDecoration);
|
|
13968
13964
|
r2.font.underline = a2.underline, r2.font.strike = a2.strike, s2.textUnderlineStyle && (r2.font.underline = od(s2.textUnderlineStyle)), r2.alignment = {}, s2?.textAlign && (r2.alignment.horizontal = ((t3) => {
|
|
13969
13965
|
const e3 = o.textToKey(t3);
|
|
13970
13966
|
return bu.get(e3) || null;
|
|
13971
|
-
})(s2.textAlign)), s2?.textAlign && !r2.alignment.horizontal && "general" !== s2?.textAlign && ("center-across" === s2.textAlign ? r2.alignment.horizontal = wo.HorizontalAlignment.CenterContinuous : "fill" === s2.textAlign ? r2.alignment.horizontal = wo.HorizontalAlignment.Fill : "121" === s2.textAlign || "010" === s2.textAlign ? (r2.alignment.horizontal = wo.HorizontalAlignment.Distributed, r2.alignment.justifyLastLine = "121" === s2.textAlign) : console.warn("unknown text-align", s2.textAlign)), s2.verticalAlign && ("super" === s2.verticalAlign.toLowerCase() ? r2.font.verticalAlign =
|
|
13967
|
+
})(s2.textAlign)), s2?.textAlign && !r2.alignment.horizontal && "general" !== s2?.textAlign && ("center-across" === s2.textAlign ? r2.alignment.horizontal = wo.HorizontalAlignment.CenterContinuous : "fill" === s2.textAlign ? r2.alignment.horizontal = wo.HorizontalAlignment.Fill : "121" === s2.textAlign || "010" === s2.textAlign ? (r2.alignment.horizontal = wo.HorizontalAlignment.Distributed, r2.alignment.justifyLastLine = "121" === s2.textAlign) : console.warn("unknown text-align", s2.textAlign)), s2.verticalAlign && ("super" === s2.verticalAlign.toLowerCase() ? r2.font.verticalAlign = Jo.VerticalAlignment.Super : "sup" === s2.verticalAlign.toLowerCase() ? r2.font.verticalAlign = Jo.VerticalAlignment.Sub : r2.alignment.vertical = ((t3) => {
|
|
13972
13968
|
const e3 = o.textToKey(t3);
|
|
13973
13969
|
return vu.get(e3) || null;
|
|
13974
13970
|
})(s2.verticalAlign), r2.alignment.vertical || ("121" === s2.verticalAlign ? r2.alignment.vertical = wo.VerticalAlignment.Distributed : console.warn("unknown vertical-align", s2.verticalAlign))), s2.msoCharIndentCount && (r2.alignment.indent = s2.msoCharIndentCount), s2.whiteSpace && (r2.alignment.overflow = "no-wrap" === s2.whiteSpace || "nowrap" === s2.whiteSpace ? wo.Overflow.Visible : wo.Overflow.Wrap), "shrinktofit" === s2.msoTextControl && (r2.alignment.overflow = wo.Overflow.Shrink);
|
|
@@ -13996,7 +13992,7 @@ class mp {
|
|
|
13996
13992
|
let i2 = { value: void 0 !== e2 ? e2 : n2 ?? "" };
|
|
13997
13993
|
if ("string" == typeof i2.value && 0 === i2.value.length && (i2.value = void 0), s2 && this.applyCSSStyle(i2, s2), "TD" === o2?.tagName.toUpperCase()) {
|
|
13998
13994
|
let t3 = i2.style, e3 = t3?.font ?? {};
|
|
13999
|
-
(o2.querySelectorAll("s").length > 0 || o2.querySelectorAll("strike").length > 0) && (e3.strike = true), o2.querySelectorAll("sub").length > 0 && (e3.verticalAlign =
|
|
13995
|
+
(o2.querySelectorAll("s").length > 0 || o2.querySelectorAll("strike").length > 0) && (e3.strike = true), o2.querySelectorAll("sub").length > 0 && (e3.verticalAlign = Jo.VerticalAlignment.Sub), o2.querySelectorAll("sup").length > 0 && (e3.verticalAlign = Jo.VerticalAlignment.Super), (o2.querySelectorAll("b").length > 0 || o2.querySelectorAll("strong").length > 0) && (e3.weight = 700), o2.querySelectorAll("i").length > 0 && (e3.style = Jo.Style.Italic), o2.querySelectorAll("u").length > 0 && (e3.underline = Jo.UnderlineStyle.Single), Object.keys(e3).length > 0 && (t3 || (t3 = {}, i2.style = t3), t3.font || (t3.font = e3));
|
|
14000
13996
|
const n3 = o2.querySelectorAll("a");
|
|
14001
13997
|
if (n3.length > 0) {
|
|
14002
13998
|
const t4 = n3[0].getAttribute("href");
|
|
@@ -14030,13 +14026,13 @@ class mp {
|
|
|
14030
14026
|
let s3 = jd(o3, this._styles.getNormal().getFont().getSize(), "px");
|
|
14031
14027
|
null !== s3 && (i2 = Math.max(s3, i2 ?? 0));
|
|
14032
14028
|
}
|
|
14033
|
-
null !== i2 && this._rowsReading.push({ address: { min: this._topLeft.rowIndex + t2, max: this._topLeft.rowIndex + t2 + e2 - 1 }, update: { size: i2 *
|
|
14029
|
+
null !== i2 && this._rowsReading.push({ address: { min: this._topLeft.rowIndex + t2, max: this._topLeft.rowIndex + t2 + e2 - 1 }, update: { size: i2 * Jo.getDeviceScale() } });
|
|
14034
14030
|
}
|
|
14035
14031
|
onColumn(t2, e2, n2, r2) {
|
|
14036
14032
|
const o2 = n2(r2);
|
|
14037
14033
|
if ("userset" !== o2.msoWidthSource) return;
|
|
14038
14034
|
let s2 = r2.getAttribute("width") ?? o2.width, i2 = null;
|
|
14039
|
-
s2 && (i2 = jd(s2, this._styles.getNormal().getFont().getSize(), "px")), null !== i2 && this._colsReading.push({ address: { min: this._topLeft.colIndex + t2, max: this._topLeft.colIndex + t2 + e2 - 1 }, update: { size: i2 *
|
|
14035
|
+
s2 && (i2 = jd(s2, this._styles.getNormal().getFont().getSize(), "px")), null !== i2 && this._colsReading.push({ address: { min: this._topLeft.colIndex + t2, max: this._topLeft.colIndex + t2 + e2 - 1 }, update: { size: i2 * Jo.getDeviceScale() } });
|
|
14040
14036
|
}
|
|
14041
14037
|
onDone() {
|
|
14042
14038
|
this._colsReading.length > 0 && this._sheet.getColumnHeaders().updateHeaderPairs(this._colsReading), this._rowsReading.length > 0 && this._sheet.getRowHeaders().updateHeaderPairs(this._rowsReading), this._sheet.doBatch(() => {
|
|
@@ -14829,7 +14825,7 @@ class Fp {
|
|
|
14829
14825
|
return this._validateName(t2, e2, n2);
|
|
14830
14826
|
}
|
|
14831
14827
|
_validateName(t2, e2, n2 = false) {
|
|
14832
|
-
if (this._closed) throw new Error(
|
|
14828
|
+
if (this._closed) throw new Error(qi);
|
|
14833
14829
|
if (!t2 || 0 === t2.length) throw new Error(Ap);
|
|
14834
14830
|
if (t2.length > 255) throw new Error("Name must not exceed 255 characters.");
|
|
14835
14831
|
if (-1 !== t2.indexOf(" ")) throw new Error("Name must not contain any spaces.");
|
|
@@ -14873,7 +14869,7 @@ class Fp {
|
|
|
14873
14869
|
return s2;
|
|
14874
14870
|
}
|
|
14875
14871
|
add(t2) {
|
|
14876
|
-
if (this._closed) throw new Error(
|
|
14872
|
+
if (this._closed) throw new Error(qi);
|
|
14877
14873
|
if (!t2) throw new Error(Rp);
|
|
14878
14874
|
if (!t2.getName || "string" == typeof t2) throw new Error("Add must take a 'INamed' object. To add a string use 'addReference'.");
|
|
14879
14875
|
if (this._validateName(t2.getName(), t2.getScope(), false), this._options.isReadOnly?.()) throw new Error("Names are read-only.");
|
|
@@ -14888,7 +14884,7 @@ class Fp {
|
|
|
14888
14884
|
}
|
|
14889
14885
|
_delete(t2, e2) {
|
|
14890
14886
|
if (!t2) throw new Error(Rp);
|
|
14891
|
-
if (this._closed) throw new Error(
|
|
14887
|
+
if (this._closed) throw new Error(qi);
|
|
14892
14888
|
const n2 = this._beginCommit(e2?.description ?? `Delete Named Item '${t2.getName()}'`);
|
|
14893
14889
|
let r2 = null;
|
|
14894
14890
|
try {
|
|
@@ -14967,7 +14963,7 @@ class Fp {
|
|
|
14967
14963
|
}
|
|
14968
14964
|
}
|
|
14969
14965
|
_add(t2) {
|
|
14970
|
-
if (this._closed) throw new Error(
|
|
14966
|
+
if (this._closed) throw new Error(qi);
|
|
14971
14967
|
const e2 = this._getState();
|
|
14972
14968
|
if (!t2) return e2;
|
|
14973
14969
|
const n2 = this._cloneState(), r2 = t2.length;
|
|
@@ -14987,7 +14983,7 @@ class Fp {
|
|
|
14987
14983
|
return this._beginCommit(t2);
|
|
14988
14984
|
}
|
|
14989
14985
|
_getState() {
|
|
14990
|
-
if (this._closed) throw new Error(
|
|
14986
|
+
if (this._closed) throw new Error(qi);
|
|
14991
14987
|
return this._transactions.getState(this);
|
|
14992
14988
|
}
|
|
14993
14989
|
_beginCommit(t2) {
|
|
@@ -15004,11 +15000,11 @@ class Fp {
|
|
|
15004
15000
|
}
|
|
15005
15001
|
}
|
|
15006
15002
|
fromJSON(t2) {
|
|
15007
|
-
if (this._closed) throw new Error(
|
|
15003
|
+
if (this._closed) throw new Error(qi);
|
|
15008
15004
|
this._fromJSON(t2);
|
|
15009
15005
|
}
|
|
15010
15006
|
_initState() {
|
|
15011
|
-
this._updateState((t2) => ({ ...t2, items: /* @__PURE__ */ new Set(), itemsByKey: /* @__PURE__ */ new Map(), itemsSpatial: new
|
|
15007
|
+
this._updateState((t2) => ({ ...t2, items: /* @__PURE__ */ new Set(), itemsByKey: /* @__PURE__ */ new Map(), itemsSpatial: new Ja(), itemsByFullRange: /* @__PURE__ */ new Map(), itemsByPartialRange: /* @__PURE__ */ new Map() }));
|
|
15012
15008
|
}
|
|
15013
15009
|
_fromJSON(t2) {
|
|
15014
15010
|
const e2 = this._beginCommit("Load Names");
|
|
@@ -15169,7 +15165,7 @@ const zp = (t2, n2, r2) => {
|
|
|
15169
15165
|
if (0 === e2) return o2;
|
|
15170
15166
|
s2 ? o2 += e2 : o2 -= e2;
|
|
15171
15167
|
}
|
|
15172
|
-
}, Wp = Object.freeze({ colIndex: 0, rowIndex: 0 }), Hp = Object.freeze([]),
|
|
15168
|
+
}, Wp = Object.freeze({ colIndex: 0, rowIndex: 0 }), Hp = Object.freeze([]), $p = Object.freeze({ cell: c.EmptyCell, ranges: Hp, rangeIndex: -1 }), Vp = (t2, n2 = e.Direction.Right, r2, o2, s2, i2 = null) => {
|
|
15173
15169
|
if (i2 && c.isEqualSelectionCoords(i2, t2)) return t2;
|
|
15174
15170
|
const a2 = t2.ranges[t2.rangeIndex];
|
|
15175
15171
|
if (!c.isRangesIntersect({ rowStart: t2.cell.rowIndex, colStart: t2.cell.colIndex, rowEnd: t2.cell.rowIndex, colEnd: t2.cell.colIndex }, a2)) return t2;
|
|
@@ -15239,13 +15235,13 @@ const zp = (t2, n2, r2) => {
|
|
|
15239
15235
|
case e.Direction.Up:
|
|
15240
15236
|
t2.ranges[h2].rowStart === g2.rowStart && t2.ranges[h2].rowEnd === g2.rowEnd && (l2.colIndex = g2.colStart), l2.colIndex === g2.colStart ? l2.rowIndex = g2.rowStart + 1 : l2.rowIndex = g2.rowStart;
|
|
15241
15237
|
}
|
|
15242
|
-
return i2 && console.warn("call recursive > 1"),
|
|
15238
|
+
return i2 && console.warn("call recursive > 1"), Vp({ cell: l2, ranges: t2.ranges, rangeIndex: h2 }, n2, r2, o2, s2, i2 ?? t2);
|
|
15243
15239
|
}
|
|
15244
15240
|
return { ranges: t2.ranges, cell: l2, rangeIndex: h2 };
|
|
15245
15241
|
};
|
|
15246
15242
|
class jp {
|
|
15247
15243
|
constructor(t2) {
|
|
15248
|
-
this._adjusting = null, this._emitter = null, this._coords =
|
|
15244
|
+
this._adjusting = null, this._emitter = null, this._coords = $p, this._sheet = t2.sheet, this._emitter = new Ki(this);
|
|
15249
15245
|
const n2 = t2.sheet;
|
|
15250
15246
|
this._adjusting = null, this._hiddenRowsAt = (t3, e2) => n2.getRowHeaders().hiddenHeadersAt(t3, e2), this._hiddenColumnsAt = (t3, e2) => n2.getColumnHeaders().hiddenHeadersAt(t3, e2), this._getCellCoordsAsRangeCoords = (t3) => {
|
|
15251
15247
|
const e2 = c.cellToRange(t3);
|
|
@@ -15356,7 +15352,7 @@ class jp {
|
|
|
15356
15352
|
const e2 = this._coords;
|
|
15357
15353
|
if (c.isEqualSelectionCoords(e2, t2)) return;
|
|
15358
15354
|
const n2 = ((t3, e3, n3) => {
|
|
15359
|
-
if (!t3) return
|
|
15355
|
+
if (!t3) return $p;
|
|
15360
15356
|
let r2 = e3.cell;
|
|
15361
15357
|
c.isEqualCells(r2, t3?.cell) || (r2 = Object.freeze({ colIndex: Math.max(0, Math.min(t3?.cell?.colIndex ?? e3.cell?.colIndex ?? 0)), rowIndex: Math.max(0, Math.min(t3?.cell?.rowIndex ?? e3?.cell?.rowIndex ?? 0)) }));
|
|
15362
15358
|
const o2 = t3?.ranges ? [...t3.ranges] : [];
|
|
@@ -15369,7 +15365,7 @@ class jp {
|
|
|
15369
15365
|
}
|
|
15370
15366
|
let l2 = e3?.ranges ?? [];
|
|
15371
15367
|
!s2 && c.isEqualRangesArrays(l2, o2) || (l2 = o2);
|
|
15372
|
-
let h2 = t3?.rangeIndex ?? e3?.rangeIndex ??
|
|
15368
|
+
let h2 = t3?.rangeIndex ?? e3?.rangeIndex ?? $p.rangeIndex;
|
|
15373
15369
|
if (h2 = Math.max(-1, Math.min(h2, l2.length - 1)), !a2) {
|
|
15374
15370
|
const t4 = l2[h2];
|
|
15375
15371
|
let e4 = r2.rowIndex;
|
|
@@ -15400,7 +15396,7 @@ class jp {
|
|
|
15400
15396
|
if (0 === o2.ranges.length) return this.navigate(r2);
|
|
15401
15397
|
const s2 = this._getCellCoordsAsRangeCoords(o2.cell);
|
|
15402
15398
|
if (c.isEqualRangesArrays([s2], o2.ranges)) return this.navigate(r2);
|
|
15403
|
-
const i2 =
|
|
15399
|
+
const i2 = Vp(o2, r2, this._getCellCoordsAsRangeCoords.bind(this), this._hiddenRowsAt.bind(this), this._hiddenColumnsAt.bind(this));
|
|
15404
15400
|
this.updateCoords(i2);
|
|
15405
15401
|
}
|
|
15406
15402
|
clear() {
|
|
@@ -15637,7 +15633,7 @@ class Up extends Xi {
|
|
|
15637
15633
|
return true;
|
|
15638
15634
|
}
|
|
15639
15635
|
}
|
|
15640
|
-
class
|
|
15636
|
+
class qp {
|
|
15641
15637
|
constructor(t2, e2) {
|
|
15642
15638
|
this._add = t2, this._get = e2;
|
|
15643
15639
|
}
|
|
@@ -15654,7 +15650,7 @@ class Jp {
|
|
|
15654
15650
|
return this._get(null, false, false).length;
|
|
15655
15651
|
}
|
|
15656
15652
|
}
|
|
15657
|
-
const
|
|
15653
|
+
const Jp = (t2, e2) => {
|
|
15658
15654
|
if (e2) {
|
|
15659
15655
|
if (e2.getType() === Os.Type.Solid) t2.background = td(e2.getColor()) || "none", t2["mso-pattern"] = "black none";
|
|
15660
15656
|
else if (e2.getType() === Os.Type.Pattern) {
|
|
@@ -15683,7 +15679,7 @@ class Kp {
|
|
|
15683
15679
|
_createCSSStyle(t2) {
|
|
15684
15680
|
const e2 = this._normalStyle, n2 = {}, r2 = (t3, e3) => t3 === e3 || !(t3 && !e3) && (!(!t3 && e3) && e3.isEqual?.(t3)), o2 = t2.getFont(), s2 = e2.getFont();
|
|
15685
15681
|
var i2;
|
|
15686
|
-
r2(o2.getFill(), s2.getFill()) || (n2.color = td(o2.getFill())), r2(o2.getSize(), s2.getSize()) || (n2["font-size"] = ed(o2.getSize())), r2(o2.getWeight(), s2.getWeight()) || (n2["font-weight"] = o2.getWeight()), r2(o2.getStyle(), s2.getStyle()) || (n2["font-style"] = o2.getStyle()), r2(o2.getUnderline(), s2.getUnderline()) || (n2["text-decoration"] = "underline", n2["text-underline-style"] = (i2 = o2.getUnderline()) ===
|
|
15682
|
+
r2(o2.getFill(), s2.getFill()) || (n2.color = td(o2.getFill())), r2(o2.getSize(), s2.getSize()) || (n2["font-size"] = ed(o2.getSize())), r2(o2.getWeight(), s2.getWeight()) || (n2["font-weight"] = o2.getWeight()), r2(o2.getStyle(), s2.getStyle()) || (n2["font-style"] = o2.getStyle()), r2(o2.getUnderline(), s2.getUnderline()) || (n2["text-decoration"] = "underline", n2["text-underline-style"] = (i2 = o2.getUnderline()) === Jo.UnderlineStyle.Single ? "single" : i2 === Jo.UnderlineStyle.Double ? "double" : i2 === Jo.UnderlineStyle.SingleAccounting ? "single-accounting" : i2 === Jo.UnderlineStyle.DoubleAccounting ? "double-accounting" : "none"), r2(o2.getFamily(), s2.getFamily()) && r2(o2.getFallbacks(), s2.getFallbacks()) || (n2["font-family"] = ad(o2.getFamily(), o2.getFallbacks())), r2(t2.getNumberFormat(), e2.getNumberFormat()) || (n2["mso-number-format"] = ld(t2.getNumberFormat()));
|
|
15687
15683
|
const a2 = t2.getAlignment(), l2 = e2.getAlignment();
|
|
15688
15684
|
if (!r2(a2.getHorizontal(), l2.getHorizontal())) {
|
|
15689
15685
|
const t3 = a2.getHorizontal();
|
|
@@ -15698,13 +15694,13 @@ class Kp {
|
|
|
15698
15694
|
n2["white-space"] = id(t3), t3 === wo.Overflow.Shrink && (n2["mso-text-control"] = "shrinktofit");
|
|
15699
15695
|
}
|
|
15700
15696
|
var c2;
|
|
15701
|
-
r2(a2.getRotation(), l2.getRotation()) || (n2["mso-rotate"] = (c2 = a2.getRotation(), (c2 %= 360) < 0 && (c2 += 360), c2 > 180 ? c2 = 360 - c2 : c2 > 1 && (c2 *= -1), c2)), r2(a2.getIndent(), l2.getIndent()) || (n2["mso-char-indent-count"] = a2.getIndent()), r2(t2.getFill(), s2.getFill()) ||
|
|
15697
|
+
r2(a2.getRotation(), l2.getRotation()) || (n2["mso-rotate"] = (c2 = a2.getRotation(), (c2 %= 360) < 0 && (c2 += 360), c2 > 180 ? c2 = 360 - c2 : c2 > 1 && (c2 *= -1), c2)), r2(a2.getIndent(), l2.getIndent()) || (n2["mso-char-indent-count"] = a2.getIndent()), r2(t2.getFill(), s2.getFill()) || Jp(n2, t2.getFill());
|
|
15702
15698
|
const h2 = t2.getBorder();
|
|
15703
15699
|
return h2.getTop().isNone() || (n2["border-top"] = Qd(h2.getTop())), h2.getLeft().isNone() || (n2["border-left"] = Qd(h2.getLeft())), h2.getRight().isNone() || (n2["border-right"] = Qd(h2.getRight())), h2.getBottom().isNone() || (n2["border-bottom"] = Qd(h2.getBottom())), h2.getDiagonalUp().isNone() || (n2["border-mso-diagonal-up"] = Qd(h2.getDiagonalUp())), h2.getDiagonalDown().isNone() || (n2["border-mso-diagonal-down"] = Qd(h2.getDiagonalDown())), 0 === Object.keys(n2).length ? null : n2;
|
|
15704
15700
|
}
|
|
15705
15701
|
_createCSSNormalStyle() {
|
|
15706
15702
|
const t2 = this._normalStyle, e2 = { "padding-top": "1px", "padding-left": "1px", "padding-right": "1px", "mso-ignore": "padding" }, n2 = t2.getFont(), r2 = t2.getAlignment();
|
|
15707
|
-
return e2.color = td(n2.getFill()),
|
|
15703
|
+
return e2.color = td(n2.getFill()), Jp(e2, t2.getFill()), e2["font-size"] = ed(n2.getSize()), e2["font-weight"] = n2.getWeight(), e2["font-style"] = n2.getStyle(), e2["text-decoration"] = nd(n2.getUnderline(), n2.getStrike()), e2["font-family"] = ad(n2.getFamily(), n2.getFallbacks()), e2["mso-font-charset"] = "0", e2["mso-background-source"] = "auto", e2["mso-number-format"] = ld(t2.getNumberFormat()), e2["text-align"] = wo.toCSSHorizontalTextAlign(r2.getHorizontal()), e2["vertical-align"] = sd(r2.getVertical()), e2.border = "none", e2["mso-pattern"] = "auto", e2["white-space"] = id(r2.getOverflow()), r2.getOverflow() === wo.Overflow.Shrink && (e2["mso-text-control"] = "shrinktofit"), e2["mso-rotate"] = "0", r2.getIndent() > 0 && (e2["mso-char-indent-count"] = r2.getIndent()), e2["mso-protection"] = "locked visible", e2;
|
|
15708
15704
|
}
|
|
15709
15705
|
onCell(t2, e2, n2) {
|
|
15710
15706
|
let r2;
|
|
@@ -15716,7 +15712,7 @@ class Kp {
|
|
|
15716
15712
|
let i2 = t2.toTextUnformatted();
|
|
15717
15713
|
t2.getNumberFormat().repeatPlaceholder && (i2 = t2.getNumberFormat().repeatPlaceholder.repeat(5)), n2.setPlainText(i2 || "");
|
|
15718
15714
|
const a2 = t2.getStyle(), l2 = a2.getFont();
|
|
15719
|
-
if (l2.getVerticalAlignment() ===
|
|
15715
|
+
if (l2.getVerticalAlignment() === Jo.VerticalAlignment.Super && (i2 = `<sup>${i2}</sup>`), l2.getVerticalAlignment() === Jo.VerticalAlignment.Sub && (i2 = `<sub>${i2}</sub>`), l2.getStrike() && (i2 = `<s>${i2}</s>`), t2.getHyperlink() && (i2 = `<a href="${t2.getHyperlink().getAddress()}">${i2}</a>`), n2.setHTMLText(i2 || " "), !this._wroteTD) {
|
|
15720
15716
|
const t3 = this._createCSSNormalStyle();
|
|
15721
15717
|
n2.addSharedStyle("td", t3), this._wroteTD = true;
|
|
15722
15718
|
}
|
|
@@ -15727,19 +15723,19 @@ class Kp {
|
|
|
15727
15723
|
}
|
|
15728
15724
|
if (c2 && n2.addAttribute("class", c2), this._includeSizeInCell) {
|
|
15729
15725
|
const t3 = this._sheet.getColumnHeaders().at(e2.colIndex).getSize();
|
|
15730
|
-
n2.addAttribute("width", t3), n2.addStyle("width", o.roundAccurately(t3 /
|
|
15726
|
+
n2.addAttribute("width", t3), n2.addStyle("width", o.roundAccurately(t3 / Jo.getDeviceScale(), 2) + "pt");
|
|
15731
15727
|
const r3 = this._sheet.getRowHeaders().at(e2.rowIndex).getSize();
|
|
15732
|
-
n2.addAttribute("height", r3), n2.addStyle("height", o.roundAccurately(r3 /
|
|
15728
|
+
n2.addAttribute("height", r3), n2.addStyle("height", o.roundAccurately(r3 / Jo.getDeviceScale(), 2) + "pt");
|
|
15733
15729
|
}
|
|
15734
15730
|
return r2;
|
|
15735
15731
|
}
|
|
15736
15732
|
onRow(t2, e2, n2, r2) {
|
|
15737
15733
|
const s2 = t2.getSize();
|
|
15738
|
-
r2.addAttribute("height", s2), r2.addStyle("height", o.roundAccurately(s2 /
|
|
15734
|
+
r2.addAttribute("height", s2), r2.addStyle("height", o.roundAccurately(s2 / Jo.getDeviceScale(), 2) + "pt"), t2.isCustomSize() && r2.addStyle("mso-height-source", "userset");
|
|
15739
15735
|
}
|
|
15740
15736
|
onColumn(t2, e2, n2, r2) {
|
|
15741
15737
|
const s2 = t2.getSize();
|
|
15742
|
-
r2.addAttribute("width", s2), r2.addStyle("width", o.roundAccurately(s2 /
|
|
15738
|
+
r2.addAttribute("width", s2), r2.addStyle("width", o.roundAccurately(s2 / Jo.getDeviceScale(), 2) + "pt"), t2.isCustomSize() && r2.addStyle("mso-width-source", "userset"), n2 > 1 && r2.addAttribute("colspan", n2);
|
|
15743
15739
|
}
|
|
15744
15740
|
}
|
|
15745
15741
|
const Xp = (t2, e2, n2) => {
|
|
@@ -16014,13 +16010,13 @@ class h_ {
|
|
|
16014
16010
|
const i2 = o2?.min ?? null, a2 = o2?.max ?? null, l2 = s2?.includeEmpty ?? false, c2 = s2?.includeStyles ?? false, h2 = s2?.excludeHidden ?? false, d2 = s2?.includeSizes ?? false, u2 = this, g2 = this._options.sheet.getStyles().getNormal(), m2 = this._defaultSize, f2 = this._scaleFactor, p2 = this._emptyHeader;
|
|
16015
16011
|
let _2;
|
|
16016
16012
|
const S2 = { getCoords() {
|
|
16017
|
-
if (!_2) throw new Error(
|
|
16013
|
+
if (!_2) throw new Error(Vh);
|
|
16018
16014
|
return { min: _2.min, max: _2.max };
|
|
16019
16015
|
}, getIndex: () => _2.min, getCellHeader() {
|
|
16020
|
-
if (!_2) throw new Error(
|
|
16016
|
+
if (!_2) throw new Error(Vh);
|
|
16021
16017
|
return _2.value ? n2(u2, _2.value) : p2;
|
|
16022
16018
|
}, getA1(t3) {
|
|
16023
|
-
if (!_2) throw new Error(
|
|
16019
|
+
if (!_2) throw new Error(Vh);
|
|
16024
16020
|
return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
|
|
16025
16021
|
} }, w2 = Ns(e2, (e3) => {
|
|
16026
16022
|
const n3 = e3.value;
|
|
@@ -16051,7 +16047,7 @@ class h_ {
|
|
|
16051
16047
|
if (l2 && l2.break) return l2.break;
|
|
16052
16048
|
}, s2 = () => {
|
|
16053
16049
|
const t3 = n2._isColumn ? { colStart: r2.min, colEnd: r2.max } : { rowStart: r2.min, rowEnd: r2.max };
|
|
16054
|
-
return
|
|
16050
|
+
return Vc(t3, n2._maxRangeCoords) ?? Rc;
|
|
16055
16051
|
}, i2 = { getCoords: () => r2, getA1: s2, toString: s2, forEach: (t3, e3) => {
|
|
16056
16052
|
let n3 = Number.MAX_SAFE_INTEGER, s3 = null;
|
|
16057
16053
|
const i3 = { getIndex: () => n3, getCellHeader: () => s3.getCellHeader(), getA1: (t4) => s3.getA1(t4), getCoords: () => s3.getCoords() };
|
|
@@ -16571,7 +16567,7 @@ class p_ {
|
|
|
16571
16567
|
const o2 = () => {
|
|
16572
16568
|
if (r2) return r2;
|
|
16573
16569
|
const t3 = n2.sheet, o3 = n2.isRanges, s3 = n2.coords;
|
|
16574
|
-
return e2 || !s3 || 0 === s3.length ?
|
|
16570
|
+
return e2 || !s3 || 0 === s3.length ? Vg(t3, t3.getEntireRange().getCoords(), null, e2) : o3 ? (r2 = t3.getRanges(n2.coords), r2) : (r2 = t3.getRange(n2.coords[0]), r2);
|
|
16575
16571
|
}, s2 = t2.trigger;
|
|
16576
16572
|
return { getSource: o2, trigger: s2, isTransactional: t2.isTransactional ?? true, toString: () => `SheetRangeEvent: ('${s2}', ${o2().toString()})`, timeStamp: t2.timeStamp ?? Date.now() };
|
|
16577
16573
|
}
|
|
@@ -16737,7 +16733,7 @@ class y_ {
|
|
|
16737
16733
|
const n2 = this._state.selection;
|
|
16738
16734
|
if (n2) {
|
|
16739
16735
|
let e3 = {};
|
|
16740
|
-
!n2.cell || 0 === n2.cell.colIndex && 0 === n2.cell.rowIndex || (e3.cell = Bc(n2.cell)), n2.ranges && n2.ranges.length > 0 && (e3.ranges =
|
|
16736
|
+
!n2.cell || 0 === n2.cell.colIndex && 0 === n2.cell.rowIndex || (e3.cell = Bc(n2.cell)), n2.ranges && n2.ranges.length > 0 && (e3.ranges = Jc(n2.ranges), void 0 !== n2.rangeIndex && -1 !== n2.rangeIndex && 0 !== n2.rangeIndex && (e3.rangeIndex = n2.rangeIndex)), Object.keys(e3).length > 0 && (t2.selection = e3);
|
|
16741
16737
|
}
|
|
16742
16738
|
if (delete t2.freezePanes, this._state.freezePanes && (0 !== this._state.freezePanes.coords.colIndex || 0 !== this._state.freezePanes.coords.rowIndex)) {
|
|
16743
16739
|
const e3 = {};
|
|
@@ -16791,7 +16787,7 @@ class y_ {
|
|
|
16791
16787
|
}
|
|
16792
16788
|
}
|
|
16793
16789
|
async function E_() {
|
|
16794
|
-
const { getCrypto: t2 } = await import("./
|
|
16790
|
+
const { getCrypto: t2 } = await import("./DXCuQA6N8QqTWg5t.mjs");
|
|
16795
16791
|
return t2();
|
|
16796
16792
|
}
|
|
16797
16793
|
const C_ = async (t2, e2, ...n2) => {
|
|
@@ -17182,7 +17178,7 @@ class M_ {
|
|
|
17182
17178
|
return false;
|
|
17183
17179
|
}
|
|
17184
17180
|
getA1() {
|
|
17185
|
-
return Kc(this.getCoords(), this._sheet._entireCoords,
|
|
17181
|
+
return Kc(this.getCoords(), this._sheet._entireCoords, Vc, Pc);
|
|
17186
17182
|
}
|
|
17187
17183
|
getSheet() {
|
|
17188
17184
|
return this._sheet;
|
|
@@ -17209,8 +17205,8 @@ class N_ {
|
|
|
17209
17205
|
}
|
|
17210
17206
|
_createRange(t2, e2) {
|
|
17211
17207
|
const n2 = this._sheet;
|
|
17212
|
-
if (!t2) return
|
|
17213
|
-
if (n2._validateCoords(t2), n2._closed) return
|
|
17208
|
+
if (!t2) return Vg(n2, n2._entireCoords);
|
|
17209
|
+
if (n2._validateCoords(t2), n2._closed) return Vg(null, n2._entireCoords, t2);
|
|
17214
17210
|
let r2 = this._options;
|
|
17215
17211
|
return e2 && (r2 = { ...this._options, getOptions: Qg(this._options?.getOptions, e2) }), new N_(t2, this._sheet, r2);
|
|
17216
17212
|
}
|
|
@@ -17282,7 +17278,7 @@ class N_ {
|
|
|
17282
17278
|
const o2 = this.getCoords();
|
|
17283
17279
|
r2 || (r2 = o2);
|
|
17284
17280
|
const s2 = this._sheet, i2 = s2._isDataColumn, a2 = { majorStart: i2 ? o2.colStart : o2.rowStart, majorEnd: i2 ? o2.colEnd : o2.rowEnd, minorStart: i2 ? o2.rowStart : o2.colStart, minorEnd: i2 ? o2.rowEnd : o2.colEnd }, l2 = (n2?.orientation ?? e.Orientation.Row) === e.Orientation.Column !== i2, h2 = Sl(Array.isArray(t2) ? t2 : [[t2]], l2, a2);
|
|
17285
|
-
return s2._updateTuples(h2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Cell" : "Range"} ${
|
|
17281
|
+
return s2._updateTuples(h2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Cell" : "Range"} ${Vc(r2, s2._entireCoords)}`, ...n2 }, null, { isCell: true }), this;
|
|
17286
17282
|
}
|
|
17287
17283
|
setValues(t2, e2) {
|
|
17288
17284
|
if (!Array.isArray(t2)) throw new Error("'setValues' expects a 2d array; when working with a single value use 'setValue'.");
|
|
@@ -17309,12 +17305,12 @@ class N_ {
|
|
|
17309
17305
|
}
|
|
17310
17306
|
const h2 = { majorStart: i2 ? r2.colStart : r2.rowStart, majorEnd: i2 ? r2.colEnd : r2.rowEnd, minorStart: i2 ? r2.rowStart : r2.colStart, minorEnd: i2 ? r2.rowEnd : r2.colEnd }, d2 = a2 !== i2;
|
|
17311
17307
|
let u2 = null;
|
|
17312
|
-
return u2 = l2 ? Sl(Array.isArray(t2) ? t2 : [[t2]], d2, h2) : _l(t2, h2, i2), s2._updateTuples(u2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Value" : "Values"} ${
|
|
17308
|
+
return u2 = l2 ? Sl(Array.isArray(t2) ? t2 : [[t2]], d2, h2) : _l(t2, h2, i2), s2._updateTuples(u2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Value" : "Values"} ${Vc(r2, s2._entireCoords)}`, ...n2 }), o2;
|
|
17313
17309
|
}
|
|
17314
17310
|
getValues(t2) {
|
|
17315
17311
|
this._validateMaxSize(t2?.maxSize);
|
|
17316
17312
|
const e2 = this.getCoords(), n2 = this._sheet;
|
|
17317
|
-
return
|
|
17313
|
+
return Jg(n2._cellIterator.bind(this._sheet), e2, false, t2);
|
|
17318
17314
|
}
|
|
17319
17315
|
getValue(t2) {
|
|
17320
17316
|
const e2 = this.getCoords();
|
|
@@ -17330,7 +17326,7 @@ class N_ {
|
|
|
17330
17326
|
getCells(t2) {
|
|
17331
17327
|
this._validateMaxSize(t2?.maxSize);
|
|
17332
17328
|
const e2 = this.getCoords(), n2 = this._sheet;
|
|
17333
|
-
return
|
|
17329
|
+
return Jg(n2._cellIterator.bind(this._sheet), e2, true, t2);
|
|
17334
17330
|
}
|
|
17335
17331
|
getCell(t2) {
|
|
17336
17332
|
const e2 = this.getCoords();
|
|
@@ -17341,7 +17337,7 @@ class N_ {
|
|
|
17341
17337
|
if (!c.isCellWithinRange(s3, e2)) throw new Error("The cell is outside of the bounds of the range.");
|
|
17342
17338
|
n2 = s3.colIndex, r2 = s3.rowIndex;
|
|
17343
17339
|
}
|
|
17344
|
-
const s2 =
|
|
17340
|
+
const s2 = Jg(o2._cellIterator.bind(this._sheet), { colStart: n2, rowStart: r2, colEnd: n2, rowEnd: r2 }, true, null);
|
|
17345
17341
|
return 0 === s2.length ? o2._emptyCell : s2[0][0];
|
|
17346
17342
|
}
|
|
17347
17343
|
async select(t2) {
|
|
@@ -17589,14 +17585,14 @@ class N_ {
|
|
|
17589
17585
|
}
|
|
17590
17586
|
getA1() {
|
|
17591
17587
|
const t2 = this._sheet;
|
|
17592
|
-
return
|
|
17588
|
+
return Vc(this.getCoords(), t2._entireCoords);
|
|
17593
17589
|
}
|
|
17594
17590
|
get [Symbol.toStringTag]() {
|
|
17595
17591
|
return "[SheetRange]";
|
|
17596
17592
|
}
|
|
17597
17593
|
toString() {
|
|
17598
17594
|
const t2 = this._sheet;
|
|
17599
|
-
return
|
|
17595
|
+
return Vc(this.getCoords(), t2._entireCoords);
|
|
17600
17596
|
}
|
|
17601
17597
|
get isICellRange() {
|
|
17602
17598
|
return true;
|
|
@@ -17646,7 +17642,7 @@ class z_ {
|
|
|
17646
17642
|
}, (t4) => {
|
|
17647
17643
|
const e3 = r2._getState();
|
|
17648
17644
|
return e3 ? e3.tableMapName.get(t4.toLocaleLowerCase()) : null;
|
|
17649
|
-
}), this._conditionals = new
|
|
17645
|
+
}), this._conditionals = new qp(this._addConditional.bind(this), (t4, e3, n3) => {
|
|
17650
17646
|
const o3 = t4 ? this._rangeToCoords(t4) : this._entireCoords, s2 = /* @__PURE__ */ new Set();
|
|
17651
17647
|
return r2._getRangedEntries("conditionalSpatial", [o3], { excludeHidden: e3, fullyContained: n3, onEntry: (t5) => {
|
|
17652
17648
|
s2.add(t5.getModel());
|
|
@@ -17658,8 +17654,8 @@ class z_ {
|
|
|
17658
17654
|
this._initializing = false;
|
|
17659
17655
|
}
|
|
17660
17656
|
_createRange(t2, e2, n2 = null) {
|
|
17661
|
-
if (!t2) return
|
|
17662
|
-
if (this._validateCoords(t2), this._closed) return
|
|
17657
|
+
if (!t2) return Vg(this, this._entireCoords);
|
|
17658
|
+
if (this._validateCoords(t2), this._closed) return Vg(null, this._entireCoords, t2);
|
|
17663
17659
|
null === n2 && this._options.readonly && (n2 = "Readonly sheet");
|
|
17664
17660
|
let r2 = null;
|
|
17665
17661
|
return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new N_(((t3) => {
|
|
@@ -17749,7 +17745,7 @@ class z_ {
|
|
|
17749
17745
|
_rangesToCoords(t2, e2 = null, n2 = true, r2 = false) {
|
|
17750
17746
|
if (e2 && this._closed) return o.EmptyArray;
|
|
17751
17747
|
if (null == t2) return o.EmptyArray;
|
|
17752
|
-
const s2 = this, i2 = Yc(t2, this._entireCoords, r2 ? Uc :
|
|
17748
|
+
const s2 = this, i2 = Yc(t2, this._entireCoords, r2 ? Uc : qc, (t3) => {
|
|
17753
17749
|
if (n2 && "string" == typeof t3) {
|
|
17754
17750
|
const e3 = s2.getNames()?.getByName(t3);
|
|
17755
17751
|
if (e3) return e3.getRanges().getCoords();
|
|
@@ -17938,11 +17934,11 @@ class z_ {
|
|
|
17938
17934
|
a2 && (h2 = { bounds: o2, orientation: s2, reverse: i2 });
|
|
17939
17935
|
const d2 = t2?.excludeHidden;
|
|
17940
17936
|
if (true === d2 || d2 === e.Orientation.Row) {
|
|
17941
|
-
const t3 =
|
|
17937
|
+
const t3 = qg(this._rowHeaders);
|
|
17942
17938
|
l2.processRowSkip = ra(t3), a2 && (h2.processRowSkip = ra(t3));
|
|
17943
17939
|
}
|
|
17944
17940
|
if (true === d2 || d2 === e.Orientation.Column) {
|
|
17945
|
-
const t3 =
|
|
17941
|
+
const t3 = qg(this._colHeaders);
|
|
17946
17942
|
l2.processColumnSkip = ra(t3), a2 && (h2.processRowSkip = ra(t3));
|
|
17947
17943
|
}
|
|
17948
17944
|
const u2 = a2 || !t2?.ignoreEmptyIntersections;
|
|
@@ -18139,19 +18135,19 @@ class z_ {
|
|
|
18139
18135
|
} while (T2);
|
|
18140
18136
|
return T2;
|
|
18141
18137
|
};
|
|
18142
|
-
const F2 = c2.getState(this), O2 = F2.cellValuesGrid.clone(), D2 = F2.calcGraph.clone(), L2 = F2.formulaSpatial.clone(), B2 = F2.spillSpatial.clone(), P2 = F2.pendingSpatial.clone(), z2 = F2.calcErrorsSpatial.clone(), W2 = F2.contentfulSpatial.clone(), H2 = Cl(u2),
|
|
18138
|
+
const F2 = c2.getState(this), O2 = F2.cellValuesGrid.clone(), D2 = F2.calcGraph.clone(), L2 = F2.formulaSpatial.clone(), B2 = F2.spillSpatial.clone(), P2 = F2.pendingSpatial.clone(), z2 = F2.calcErrorsSpatial.clone(), W2 = F2.contentfulSpatial.clone(), H2 = Cl(u2), $2 = Cl(u2, (t3, e2) => {
|
|
18143
18139
|
if (t3 === e2) return e2;
|
|
18144
|
-
}),
|
|
18140
|
+
}), V2 = Cl(u2, (t3, e2) => {
|
|
18145
18141
|
if (t3 === e2) return e2;
|
|
18146
18142
|
}), j2 = Cl(u2, (t3, e2) => {
|
|
18147
18143
|
if (t3 === e2) return e2;
|
|
18148
18144
|
}), G2 = [];
|
|
18149
|
-
let U2 = null,
|
|
18145
|
+
let U2 = null, q2 = null;
|
|
18150
18146
|
if (false !== n2?.textParser) {
|
|
18151
18147
|
const t3 = n2 && true !== n2.textParser ? n2.textParser : {};
|
|
18152
|
-
|
|
18148
|
+
q2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, U2 = new Yg(p2, null, this._cellOptions);
|
|
18153
18149
|
}
|
|
18154
|
-
const
|
|
18150
|
+
const J2 = [], K2 = this._cellOptions, X2 = /* @__PURE__ */ new Map(), Y2 = tm, Q2 = (t3, e2, n3) => {
|
|
18155
18151
|
const r3 = k2?.(e2, n3);
|
|
18156
18152
|
if (r3?.merge) {
|
|
18157
18153
|
const t4 = r3.merge.getCoords(), o4 = u2 ? t4.colStart : t4.rowStart, s3 = u2 ? t4.rowStart : t4.colStart;
|
|
@@ -18164,12 +18160,12 @@ class z_ {
|
|
|
18164
18160
|
G2.push({ colStart: u2 ? e2 : n3, rowStart: u2 ? n3 : e2, colEnd: (u2 ? e2 : n3) + t4.width - 1, rowEnd: (u2 ? n3 : e2) + t4.height - 1 });
|
|
18165
18161
|
}
|
|
18166
18162
|
}
|
|
18167
|
-
let o3 = mg(t3, K2,
|
|
18163
|
+
let o3 = mg(t3, K2, q2, X2);
|
|
18168
18164
|
if (void 0 === o3) return;
|
|
18169
18165
|
const a3 = o3.value;
|
|
18170
18166
|
if (o3.stringToParse) {
|
|
18171
|
-
|
|
18172
|
-
const t4 =
|
|
18167
|
+
q_[0].colIndex = u2 ? e2 : n3, q_[0].rowIndex = u2 ? n3 : e2, q_[1] = a3, q_[2] = r3, U2.setState(q_);
|
|
18168
|
+
const t4 = q2?.parse(o3.stringToParse, U2.context), s3 = mg(t4, K2, q2, X2, true);
|
|
18173
18169
|
if (U2.clear(), null === s3) return s3;
|
|
18174
18170
|
void 0 !== s3 && (o3 = { ...s3 });
|
|
18175
18171
|
}
|
|
@@ -18179,9 +18175,9 @@ class z_ {
|
|
|
18179
18175
|
}
|
|
18180
18176
|
if (!i2) {
|
|
18181
18177
|
const t4 = o3.style;
|
|
18182
|
-
void 0 === t4 || null === t4 && !s2 ||
|
|
18178
|
+
void 0 === t4 || null === t4 && !s2 || $2.append(e2, n3, t4);
|
|
18183
18179
|
const r4 = o3.hyperlink;
|
|
18184
|
-
void 0 === r4 || null === r4 && !s2 ||
|
|
18180
|
+
void 0 === r4 || null === r4 && !s2 || V2.append(e2, n3, r4);
|
|
18185
18181
|
}
|
|
18186
18182
|
const l3 = o3.formula;
|
|
18187
18183
|
return void 0 === l3 || null === l3 && !s2 || j2.append(e2, n3, l3), a3;
|
|
@@ -18217,7 +18213,7 @@ class z_ {
|
|
|
18217
18213
|
o4.push([l3, t6]), h3 = null;
|
|
18218
18214
|
}
|
|
18219
18215
|
}
|
|
18220
|
-
o4.length > 0 &&
|
|
18216
|
+
o4.length > 0 && J2.push([n3, o4]);
|
|
18221
18217
|
}
|
|
18222
18218
|
const r3 = H2.done(), o3 = r3.length;
|
|
18223
18219
|
for (let t4 = 0; t4 < o3; t4++) {
|
|
@@ -18227,17 +18223,17 @@ class z_ {
|
|
|
18227
18223
|
this._updateFormulaSpatial(L2, null, n3);
|
|
18228
18224
|
}
|
|
18229
18225
|
let i3;
|
|
18230
|
-
|
|
18226
|
+
J2.length > 0 && (O2.setValues(J2), i3 = { tuples: J2, bounds: l2 });
|
|
18231
18227
|
let g3, m3 = j2.done();
|
|
18232
18228
|
if (m3.length > 1 && (m3 = tl(m3, e.Orientation.Column, 1)), i3 || m3.length > 0) {
|
|
18233
18229
|
const t4 = D2.setInputs(i3, m3);
|
|
18234
18230
|
g3 = this._updateFormulaSpatial(L2, t4.inserts, t4.removes, F2.directStyleSpatial);
|
|
18235
18231
|
}
|
|
18236
|
-
const f3 = em(
|
|
18232
|
+
const f3 = em(J2, u2), C3 = f3.length;
|
|
18237
18233
|
for (let t4 = 0; t4 < C3; t4++) W2.insertNonOverlapping(f3[t4]);
|
|
18238
|
-
const b3 =
|
|
18234
|
+
const b3 = $2.done();
|
|
18239
18235
|
b3.length > 0 && this._updateStyles(b3), G2.length > 0 && this._merge(G2);
|
|
18240
|
-
const x3 =
|
|
18236
|
+
const x3 = V2.done();
|
|
18241
18237
|
if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial: W2, calcGraph: D2, formulaSpatial: L2, spillSpatial: B2, pendingSpatial: P2, calcErrorsSpatial: z2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
|
|
18242
18238
|
const t4 = "boolean" == typeof n2.autoFit ? X_ : n2.autoFit;
|
|
18243
18239
|
this._autoFit([E2], t4);
|
|
@@ -18286,7 +18282,7 @@ class z_ {
|
|
|
18286
18282
|
let b2 = null;
|
|
18287
18283
|
const v2 = n2?.includeHidden ?? false;
|
|
18288
18284
|
if (!v2) {
|
|
18289
|
-
const t3 =
|
|
18285
|
+
const t3 = qg(c2 ? this._rowHeaders : this._colHeaders);
|
|
18290
18286
|
b2 = ra(t3);
|
|
18291
18287
|
}
|
|
18292
18288
|
const x2 = this._cellIterator({ bounds: u2, orientation: l2, excludeHidden: !v2 && l2, includeRangeTypes: { [Rh.Type.Style]: false, [Rh.Type.Merge]: false } }), I2 = c2 ? s2 : o2;
|
|
@@ -18433,35 +18429,35 @@ class z_ {
|
|
|
18433
18429
|
return c2 = d2 ? this.createTemporaryCell(l3, s3) : this.createTemporaryCell(null, s3).createTemporaryCell(l3), c2;
|
|
18434
18430
|
}), false;
|
|
18435
18431
|
}
|
|
18436
|
-
const H2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }),
|
|
18432
|
+
const H2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), $2 = O2.length;
|
|
18437
18433
|
O2.sort((t3, e2) => t3.oppositeIndex - e2.oppositeIndex);
|
|
18438
|
-
for (let t3 = 0; t3 <
|
|
18434
|
+
for (let t3 = 0; t3 < $2; t3++) {
|
|
18439
18435
|
const e2 = t3, n3 = z2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = N2 ? x2 : x2 + k2 - 1, s3 = this.isDate1904();
|
|
18440
18436
|
for (let t4 = 0; t4 < k2; t4++) {
|
|
18441
18437
|
let e3 = n3(o3 + (N2 ? t4 : -t4));
|
|
18442
|
-
|
|
18438
|
+
Jr(e3) && (e3 = eo(e3, s3));
|
|
18443
18439
|
const a3 = T2 + t4;
|
|
18444
18440
|
i2 ? H2.pushAt(a3, r3, e3) : H2.pushAt(r3, a3, e3);
|
|
18445
18441
|
}
|
|
18446
18442
|
}
|
|
18447
18443
|
this._clear([p2], r2?.contentsOnly ? Xh.Content.Formats : void 0), H2.apply();
|
|
18448
|
-
const
|
|
18449
|
-
if (
|
|
18450
|
-
if (
|
|
18444
|
+
const V2 = this._getMerges([_2]), j2 = c.unionRangesArrays(V2);
|
|
18445
|
+
if (V2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Wh);
|
|
18446
|
+
if (V2.length > 0) {
|
|
18451
18447
|
const n3 = [], r3 = s2 / E2;
|
|
18452
18448
|
if (i2) {
|
|
18453
|
-
const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 =
|
|
18449
|
+
const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 = V2.length;
|
|
18454
18450
|
for (let e2 = 0; e2 < a3; e2++) {
|
|
18455
|
-
const o3 =
|
|
18451
|
+
const o3 = V2[e2], a4 = o3.rowStart - t2.rowStart, l3 = o3.rowEnd - o3.rowStart + 1;
|
|
18456
18452
|
for (let t3 = 0; t3 < r3; t3++) {
|
|
18457
18453
|
const e3 = t3 * s3;
|
|
18458
18454
|
n3.push({ colStart: o3.colStart, rowStart: i3 + e3 + a4, colEnd: o3.colEnd, rowEnd: i3 + e3 + a4 + l3 - 1 });
|
|
18459
18455
|
}
|
|
18460
18456
|
}
|
|
18461
18457
|
} else {
|
|
18462
|
-
const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 =
|
|
18458
|
+
const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 = V2.length;
|
|
18463
18459
|
for (let e2 = 0; e2 < a3; e2++) {
|
|
18464
|
-
const o3 =
|
|
18460
|
+
const o3 = V2[e2], a4 = o3.colStart - t2.colStart, l3 = o3.colEnd - o3.colStart + 1;
|
|
18465
18461
|
for (let t3 = 0; t3 < r3; t3++) {
|
|
18466
18462
|
const e3 = t3 * s3;
|
|
18467
18463
|
n3.push({ colStart: i3 + e3 + a4, rowStart: o3.rowStart, colEnd: i3 + e3 + a4 + l3 - 1, rowEnd: o3.rowEnd });
|
|
@@ -18470,17 +18466,17 @@ class z_ {
|
|
|
18470
18466
|
}
|
|
18471
18467
|
this._merge(n3);
|
|
18472
18468
|
}
|
|
18473
|
-
const G2 = this._getState(), U2 = {},
|
|
18474
|
-
|
|
18475
|
-
let
|
|
18469
|
+
const G2 = this._getState(), U2 = {}, q2 = {};
|
|
18470
|
+
q2.directStyleSpatial = G2.directStyleSpatial, q2.continuousFillSpatial = G2.continuousFillSpatial;
|
|
18471
|
+
let J2 = t2, K2 = p2;
|
|
18476
18472
|
if (!N2) {
|
|
18477
18473
|
let e2 = (i2 ? _2.rowEnd + 1 - _2.rowStart : _2.colEnd + 1 - _2.colStart) % x2;
|
|
18478
18474
|
const n3 = i2 ? "rowStart" : "colStart", r3 = i2 ? "rowEnd" : "colEnd";
|
|
18479
|
-
0 !== e2 && (K2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) },
|
|
18475
|
+
0 !== e2 && (K2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, J2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
|
|
18480
18476
|
}
|
|
18481
|
-
const X2 = Object.keys(
|
|
18477
|
+
const X2 = Object.keys(q2), Y2 = X2.length;
|
|
18482
18478
|
for (let t3 = 0; t3 < Y2; t3++) {
|
|
18483
|
-
const e2 = X2[t3], n3 =
|
|
18479
|
+
const e2 = X2[t3], n3 = q2[e2].createCopiedEntries(J2, K2), r3 = G2[e2].clone(), o3 = n3.removes, s3 = o3.length;
|
|
18484
18480
|
for (let t4 = 0; t4 < s3; t4++) r3.remove(o3[t4]);
|
|
18485
18481
|
r3.load(n3.inserts), U2[e2] = r3;
|
|
18486
18482
|
}
|
|
@@ -18578,7 +18574,7 @@ class z_ {
|
|
|
18578
18574
|
if (e4) if (h2) {
|
|
18579
18575
|
d2 || (d2 = fi.Styles.lookupStyle(h2)?.formatType);
|
|
18580
18576
|
const t6 = fi.Styles.lookupStyle(e4)?.formatType;
|
|
18581
|
-
|
|
18577
|
+
qr(t6, d2) > 0 ? (d2 = t6, h2 = e4) : u2 = true;
|
|
18582
18578
|
} else h2 = e4;
|
|
18583
18579
|
}
|
|
18584
18580
|
}
|
|
@@ -18940,7 +18936,7 @@ class z_ {
|
|
|
18940
18936
|
if (i2.getMovableSelection().length > 0) return h2;
|
|
18941
18937
|
l2.push(h2);
|
|
18942
18938
|
}
|
|
18943
|
-
if (t2.length > 1) throw new Error(
|
|
18939
|
+
if (t2.length > 1) throw new Error(qh);
|
|
18944
18940
|
const d2 = { singleMerge: null };
|
|
18945
18941
|
l2.push({ copyTo(n3, o2) {
|
|
18946
18942
|
const s3 = { ...e2, ...o2 };
|
|
@@ -19135,13 +19131,13 @@ class z_ {
|
|
|
19135
19131
|
if (t2.isISnapshot) return t2;
|
|
19136
19132
|
const n2 = t2;
|
|
19137
19133
|
let r2 = null;
|
|
19138
|
-
if (n2?.isICellRanges) throw new Error(
|
|
19134
|
+
if (n2?.isICellRanges) throw new Error(qh);
|
|
19139
19135
|
if (r2 = n2?.isICellRange ? n2 : this.getRange(n2), r2.isICellRange) {
|
|
19140
19136
|
const t3 = r2;
|
|
19141
|
-
if (t3.isInvalid()) throw new Error(
|
|
19137
|
+
if (t3.isInvalid()) throw new Error(Jh);
|
|
19142
19138
|
return t3.getSnapshot(e2);
|
|
19143
19139
|
}
|
|
19144
|
-
throw new Error(
|
|
19140
|
+
throw new Error(Jh);
|
|
19145
19141
|
}
|
|
19146
19142
|
async _copyFrom(t2, e2, n2) {
|
|
19147
19143
|
if (!e2) throw new Error("Both a source and a destination are required to copy.");
|
|
@@ -19289,7 +19285,7 @@ class z_ {
|
|
|
19289
19285
|
}
|
|
19290
19286
|
}
|
|
19291
19287
|
_autoFit(n2, r2) {
|
|
19292
|
-
if (this._closed) throw new Error(
|
|
19288
|
+
if (this._closed) throw new Error($h);
|
|
19293
19289
|
r2 = { expandOnly: false, skipCustomSize: false, minContent: false, ...r2 };
|
|
19294
19290
|
const o2 = "Autofit";
|
|
19295
19291
|
let s2;
|
|
@@ -19308,7 +19304,7 @@ class z_ {
|
|
|
19308
19304
|
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;
|
|
19309
19305
|
const b2 = this._styles.getNormal(), v2 = this._cellOptions, x2 = r2.orientations === e.Orientations.Row, I2 = /* @__PURE__ */ new Map(), R2 = el(n2, 1);
|
|
19310
19306
|
R2.sort(c.createRangeComparator(e.Orientation.Column));
|
|
19311
|
-
const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, N2 =
|
|
19307
|
+
const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, N2 = Jo.getDeviceScale(), T2 = this._defaultRowHeight() * N2, k2 = this._defaultColWidth(), F2 = (t2, e2 = 1) => {
|
|
19312
19308
|
if (0 !== t2 && null !== t2 && !(e2 > 1)) return t2 = Math.max(t2, T2), (e3) => u2 ? t2 : Math.max(e3, t2);
|
|
19313
19309
|
}, O2 = (t2, e2 = 1) => {
|
|
19314
19310
|
if (0 !== t2 && !(e2 > 1)) return (e3) => d2 ? t2 : null !== t2 ? Math.max(e3, t2) : t2;
|
|
@@ -19318,9 +19314,9 @@ class z_ {
|
|
|
19318
19314
|
let f3 = -1, p3 = false, A3 = b2, N3 = 1, D2 = 1, L2 = 1;
|
|
19319
19315
|
const B2 = R2[n3];
|
|
19320
19316
|
let P2 = B2.colStart, z2 = B2.rowStart, W2 = B2.colEnd, H2 = B2.rowEnd;
|
|
19321
|
-
const
|
|
19322
|
-
(u2 || d2) &&
|
|
19323
|
-
const
|
|
19317
|
+
const $2 = this._getUsedCoords();
|
|
19318
|
+
(u2 || d2) && $2 && (P2 = u2 ? $2.colStart : B2.colStart, z2 = d2 ? $2.rowStart : B2.rowStart, W2 = u2 ? $2.colEnd : B2.colEnd, H2 = d2 ? $2.rowEnd : B2.rowEnd);
|
|
19319
|
+
const V2 = { includeRangeTypes: { [Rh.Type.Style]: false, [Rh.Type.Merge]: false, [Rh.Type.Continuous]: false, [Rh.Type.Contentful]: false }, excludeHidden: false, bounds: { colStart: P2, rowStart: z2, colEnd: W2, rowEnd: H2 }, orientation: e.Orientation.Column }, j2 = h2 ? [] : void 0, G2 = l2 ? [] : void 0, U2 = (t2, e2, n4) => {
|
|
19324
19320
|
if (t2 > e2) return null;
|
|
19325
19321
|
const r4 = [];
|
|
19326
19322
|
let o4 = t2;
|
|
@@ -19339,12 +19335,12 @@ class z_ {
|
|
|
19339
19335
|
r4.push(t3);
|
|
19340
19336
|
}
|
|
19341
19337
|
return r4;
|
|
19342
|
-
},
|
|
19343
|
-
let
|
|
19344
|
-
for (; !
|
|
19345
|
-
const t2 =
|
|
19346
|
-
|
|
19347
|
-
const o4 = c.intersectRanges(
|
|
19338
|
+
}, q2 = this._rangeStateIterator(V2);
|
|
19339
|
+
let J2 = q2.next();
|
|
19340
|
+
for (; !J2.done; ) {
|
|
19341
|
+
const t2 = J2.value, e2 = t2.intersection, n4 = t2.start, r4 = t2.end;
|
|
19342
|
+
$_.colStart = n4.colIndex, $_.rowStart = n4.rowIndex, $_.colEnd = r4.colIndex, $_.rowEnd = r4.rowIndex;
|
|
19343
|
+
const o4 = c.intersectRanges($_, B2, H_), s4 = Eg(0, o4, e2, v2).getBestFit();
|
|
19348
19344
|
if (h2) {
|
|
19349
19345
|
const t3 = Math.max(n4.rowIndex, z2), e3 = Math.min(r4.rowIndex, H2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: F2(o5), autoSize: true }, sizeSet: null === o5 ? T2 : o5 };
|
|
19350
19346
|
j2.push(i4);
|
|
@@ -19353,7 +19349,7 @@ class z_ {
|
|
|
19353
19349
|
const t3 = Math.max(n4.colIndex, P2), e3 = Math.min(r4.colIndex, W2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(s4.width), autoSize: true }, sizeSet: null === o5 ? k2 : o5 };
|
|
19354
19350
|
G2.push(i4);
|
|
19355
19351
|
}
|
|
19356
|
-
|
|
19352
|
+
J2 = q2.next();
|
|
19357
19353
|
}
|
|
19358
19354
|
if (G2) {
|
|
19359
19355
|
G2.sort(m2);
|
|
@@ -19369,13 +19365,13 @@ class z_ {
|
|
|
19369
19365
|
const e2 = U2(B2.rowStart, B2.rowEnd, t2);
|
|
19370
19366
|
e2 && this._rowHeaders.updateHeaderPairs(e2, M2);
|
|
19371
19367
|
}
|
|
19372
|
-
const K2 = this._cellStateIterator({
|
|
19368
|
+
const K2 = this._cellStateIterator({ ...V2, includeRangeTypes: { [Rh.Type.Merge]: false, [Rh.Type.Table]: false, [Rh.Type.Style]: false, [Rh.Type.Continuous]: false }, ignoreEmptyIntersections: true });
|
|
19373
19369
|
let X2, Y2, Q2, Z2 = K2.next(), tt2 = 1, et2 = 1;
|
|
19374
19370
|
for (; !Z2.done; ) {
|
|
19375
19371
|
const e2 = Z2.value, n4 = e2[0], l3 = e2[2];
|
|
19376
19372
|
let h3 = b2;
|
|
19377
19373
|
const d3 = l3?.directStyle ?? l3?.table.getStyle() ?? null;
|
|
19378
|
-
d3 === X2 ? h3 = Y2 : (h3 = d3 ? Eg(0, c.cellToRange(n4,
|
|
19374
|
+
d3 === X2 ? h3 = Y2 : (h3 = d3 ? Eg(0, c.cellToRange(n4, V_), l3, v2) : b2, Y2 = h3);
|
|
19379
19375
|
let u3 = 1, g3 = 1;
|
|
19380
19376
|
const m3 = l3?.merge ?? null;
|
|
19381
19377
|
if (m3 === Q2) u3 = tt2, g3 = et2;
|
|
@@ -19481,7 +19477,7 @@ class z_ {
|
|
|
19481
19477
|
_createRangeEvent(t2, e2) {
|
|
19482
19478
|
const n2 = this, r2 = () => {
|
|
19483
19479
|
const e3 = n2._getState();
|
|
19484
|
-
return this._closed || e3.deleted ?
|
|
19480
|
+
return this._closed || e3.deleted ? Vg(null) : t2 ? Array.isArray(t2) ? n2._createRanges(t2) : n2._createRange(t2) : Vg(this, this._entireCoords);
|
|
19485
19481
|
}, o2 = e2.trigger;
|
|
19486
19482
|
return { getSource: r2, getFrom: () => e2.from ?? null, getTo: () => e2.to ?? null, trigger: o2, isUndo: e2.isUndo ?? false, isDataChange: e2.isDataChange ?? false, isTransactional: e2.isTransactional ?? true, toString: () => `SheetRangeEvent: ('${o2}', ${r2().toString()})`, timeStamp: e2.timeStamp ?? Date.now() };
|
|
19487
19483
|
}
|
|
@@ -19574,7 +19570,7 @@ class z_ {
|
|
|
19574
19570
|
return r2;
|
|
19575
19571
|
}
|
|
19576
19572
|
_addRangesListeners(t2, e2, n2) {
|
|
19577
|
-
if (this._closed) throw new Error(
|
|
19573
|
+
if (this._closed) throw new Error($h);
|
|
19578
19574
|
if (!e2) throw new Error(Dh);
|
|
19579
19575
|
n2 = n2 ? { ...G_, ...n2 } : G_;
|
|
19580
19576
|
const r2 = n2?.transactional ?? false, o2 = this, s2 = L_++ % Number.MAX_SAFE_INTEGER, i2 = () => {
|
|
@@ -19614,7 +19610,7 @@ class z_ {
|
|
|
19614
19610
|
return h2.load(g2), d2.set(s2, l2), u2 && (this._updateState({ rangeListenerSpatial: h2, rangesListenerMap: d2 }), u2.commit({ forceAmend: true })), i2;
|
|
19615
19611
|
}
|
|
19616
19612
|
_addRangesListeners2(t2, e2, n2, r2) {
|
|
19617
|
-
if (this._closed) throw new Error(
|
|
19613
|
+
if (this._closed) throw new Error($h);
|
|
19618
19614
|
if (!e2) throw new Error(Dh);
|
|
19619
19615
|
n2 = n2 ? { ...G_, ...n2 } : G_;
|
|
19620
19616
|
const s2 = n2?.transactional ?? false, i2 = this, a2 = o.uuidV4(), l2 = P_++, h2 = () => {
|
|
@@ -19666,7 +19662,7 @@ class z_ {
|
|
|
19666
19662
|
return !!this._contentCounts(t2, void 0, e2);
|
|
19667
19663
|
}
|
|
19668
19664
|
_getCount(t2, e2 = false) {
|
|
19669
|
-
const n2 = this._contentCounts(t2,
|
|
19665
|
+
const n2 = this._contentCounts(t2, J_, e2);
|
|
19670
19666
|
return n2 ? n2[Xh.Content.Values] ?? 0 : 0;
|
|
19671
19667
|
}
|
|
19672
19668
|
_contentCounts(t2, e2, n2) {
|
|
@@ -19717,7 +19713,7 @@ class z_ {
|
|
|
19717
19713
|
return this.getEntireRange().find(t2, e2);
|
|
19718
19714
|
}
|
|
19719
19715
|
_find(t2, n2, r2) {
|
|
19720
|
-
if (this._closed) throw new Error(
|
|
19716
|
+
if (this._closed) throw new Error($h);
|
|
19721
19717
|
if (!n2) return null;
|
|
19722
19718
|
const o2 = [...t2], s2 = r2?.orientation ?? e.Orientation.Row, i2 = r2?.reverse, a2 = !r2?.disableWrap, l2 = r2?.from ? this._cellToCoords(r2?.from) : null;
|
|
19723
19719
|
let h2 = null;
|
|
@@ -19853,7 +19849,7 @@ class z_ {
|
|
|
19853
19849
|
return a2 || i2;
|
|
19854
19850
|
}
|
|
19855
19851
|
_extendRange(t2, n2) {
|
|
19856
|
-
if (this._closed) throw new Error(
|
|
19852
|
+
if (this._closed) throw new Error($h);
|
|
19857
19853
|
const r2 = this._entireCoords, o2 = this, s2 = { excludeHidden: true, onEntry: (t3, e2) => e2 }, i2 = { excludeHidden: true, onEntry: (t3, e2) => void 0 === t3.tvTl() ? null : e2 };
|
|
19858
19854
|
let a2;
|
|
19859
19855
|
const l2 = o2._getRangedEntries("mergeSpatial", [c.cellToRange(n2)], i2);
|
|
@@ -19948,7 +19944,7 @@ class z_ {
|
|
|
19948
19944
|
_defaultRowHeight() {
|
|
19949
19945
|
if (this._defaultRowHeightCache) return this._defaultRowHeightCache;
|
|
19950
19946
|
let t2 = this._defaultFontDims();
|
|
19951
|
-
if (!t2 || 0 === t2.width) return this._defaultRowHeightCache = 20 /
|
|
19947
|
+
if (!t2 || 0 === t2.width) return this._defaultRowHeightCache = 20 / Jo.getDeviceScale(), this._defaultRowHeightCache;
|
|
19952
19948
|
const e2 = this._styles.getNormal(), n2 = /* @__PURE__ */ new Map();
|
|
19953
19949
|
let r2 = t2.height + 2;
|
|
19954
19950
|
return this._colHeaders.getUsedRange().forEachSpan((t3, o2) => {
|
|
@@ -19958,7 +19954,7 @@ class z_ {
|
|
|
19958
19954
|
void 0 === e3 && (e3 = t4.measureText("M").lineHeight + 2, n2.set(t4, e3));
|
|
19959
19955
|
return e3;
|
|
19960
19956
|
})(s2.getStyle()), r2));
|
|
19961
|
-
}), this._defaultRowHeightCache = Math.round(r2 /
|
|
19957
|
+
}), this._defaultRowHeightCache = Math.round(r2 / Jo.getDeviceScale() * 4) / 4, this._defaultRowHeightCache;
|
|
19962
19958
|
}
|
|
19963
19959
|
getProtection() {
|
|
19964
19960
|
return this._protection ?? null;
|
|
@@ -20028,7 +20024,7 @@ class z_ {
|
|
|
20028
20024
|
return this._view;
|
|
20029
20025
|
}
|
|
20030
20026
|
setView(t2) {
|
|
20031
|
-
if (this._closed) throw new Error(
|
|
20027
|
+
if (this._closed) throw new Error($h);
|
|
20032
20028
|
if (!t2) throw new Error("View can not be empty.");
|
|
20033
20029
|
this._viewRemoveListener?.(), this._view = t2, this._viewRemoveListener = t2.addListeners(this._viewListener, { transactional: false });
|
|
20034
20030
|
const e2 = this.getSelection().getCoords();
|
|
@@ -20038,7 +20034,7 @@ class z_ {
|
|
|
20038
20034
|
return this._tabColor;
|
|
20039
20035
|
}
|
|
20040
20036
|
setTabColor(t2) {
|
|
20041
|
-
if (this._closed) throw new Error(
|
|
20037
|
+
if (this._closed) throw new Error($h);
|
|
20042
20038
|
return this._tabColor = "string" == typeof t2 ? this._styles.parseColor(t2) : t2 ?? null, this._emitter.notify("onTabColorChange"), this;
|
|
20043
20039
|
}
|
|
20044
20040
|
getRowHeaders() {
|
|
@@ -20048,7 +20044,7 @@ class z_ {
|
|
|
20048
20044
|
return this._colHeaders;
|
|
20049
20045
|
}
|
|
20050
20046
|
async toJSON(n2 = false) {
|
|
20051
|
-
if (this._closed) throw new Error(
|
|
20047
|
+
if (this._closed) throw new Error($h);
|
|
20052
20048
|
await this._emitter.notify("onBeforeSave", { async: true }), await Promise.resolve(this._starting);
|
|
20053
20049
|
let r2 = {};
|
|
20054
20050
|
const o2 = this._getState();
|
|
@@ -20096,7 +20092,7 @@ class z_ {
|
|
|
20096
20092
|
console.warn(t2);
|
|
20097
20093
|
}
|
|
20098
20094
|
const s2 = ma(o2.mergeSpatial.all());
|
|
20099
|
-
s2.length > 0 && (r2.merges =
|
|
20095
|
+
s2.length > 0 && (r2.merges = Jc(s2));
|
|
20100
20096
|
const i2 = ma(o2.directStyleSpatial.all());
|
|
20101
20097
|
if (i2.length > 0) {
|
|
20102
20098
|
const t2 = this._styles.beginPersist();
|
|
@@ -20234,7 +20230,7 @@ class z_ {
|
|
|
20234
20230
|
async _addMovable(t2) {
|
|
20235
20231
|
if (!this.getProtection().isObjectsAllowed()) throw new Error(Lh);
|
|
20236
20232
|
if (!t2) throw new Error("No movable options provided");
|
|
20237
|
-
if (this._closed) throw new Error(
|
|
20233
|
+
if (this._closed) throw new Error($h);
|
|
20238
20234
|
const e2 = {};
|
|
20239
20235
|
t2?.type && (e2.content = { type: t2.type, json: t2?.json }), t2?.anchorType && (e2.anchorType = t2?.anchorType), t2.bounds && (e2.anchor = null);
|
|
20240
20236
|
const n2 = this._getState().movableSpatial, r2 = this._beginCommit({ description: t2?.description ?? "Insert Drawing" }), o2 = this._createMovableEntry(e2, n2.size(), t2.fromResourceId), s2 = n2.clone();
|
|
@@ -20361,7 +20357,7 @@ class z_ {
|
|
|
20361
20357
|
}
|
|
20362
20358
|
_getVisible(t2, n2) {
|
|
20363
20359
|
if (0 === t2.length) return t2;
|
|
20364
|
-
const r2 = new
|
|
20360
|
+
const r2 = new Ja();
|
|
20365
20361
|
r2.load(t2);
|
|
20366
20362
|
const o2 = n2?.orientations ?? e.Orientations.Both, s2 = (t3, e2) => {
|
|
20367
20363
|
const n3 = r2.search(t3), o3 = n3.length;
|
|
@@ -20503,7 +20499,7 @@ class z_ {
|
|
|
20503
20499
|
}), this._emitter.notify("onClose"), this._ownResources, this._namesRemoveListener?.(), this._ownNames && this._names.close(), this._ownsCalculation && this._calculation.close(), this._ownStyles, this._colHeaders.close(), this._rowHeaders.close(), this._emitter.close(), this._transactionsRemoveListener?.(), this._closed = true;
|
|
20504
20500
|
}
|
|
20505
20501
|
beginCommit(t2) {
|
|
20506
|
-
if (this._closed) throw new Error(
|
|
20502
|
+
if (this._closed) throw new Error($h);
|
|
20507
20503
|
return this._beginCommit("string" == typeof t2 ? { description: t2 } : t2);
|
|
20508
20504
|
}
|
|
20509
20505
|
_getState() {
|
|
@@ -20688,26 +20684,26 @@ class z_ {
|
|
|
20688
20684
|
s3.get(e3)?.value.processSelectionCallback(true, 0 === t3);
|
|
20689
20685
|
}), a2 = o3, t2._emitter.notify("onMovableSelectionChange");
|
|
20690
20686
|
}, onAnyChange() {
|
|
20691
|
-
t2._emitter.notify("onViewChange");
|
|
20687
|
+
t2._defaultColWidthCache = 0, t2._defaultRowHeightCache = 0, t2._defaultFontBoundsCache = null, t2._emitter.notify("onLayoutChange"), t2._emitter.notify("onViewChange");
|
|
20692
20688
|
} }, c2 = new y_({ sheet: this });
|
|
20693
20689
|
this._view = c2, this._clearState(), this._viewRemoveListener = c2.addListeners(l2, { transactional: false }), this._viewListener = l2, this._colHeadersRemoveListener?.();
|
|
20694
|
-
const h2 = () =>
|
|
20690
|
+
const h2 = () => {
|
|
20691
|
+
const t3 = this.getView().isShowFormulas() ? 2 : 1;
|
|
20692
|
+
return Math.round(this._defaultFontDims().width) * t3;
|
|
20693
|
+
};
|
|
20695
20694
|
this._colHeaders = new h_({ sheet: t2, orientation: e.Orientation.Column, maxSheetCoords: this._entireCoords, transactions: this._transactions, isProtected: () => !t2._initializing && !t2.getProtection().isFormatColumnsAllowed(), getTextAt: (t3) => {
|
|
20696
20695
|
const e2 = this.getView().getColumnHeaderStyle();
|
|
20697
20696
|
return e2 === gp.HeaderTextStyle.A1 ? O_(t3) : e2 === gp.HeaderTextStyle.Zero ? F_(t3) : e2 === gp.HeaderTextStyle.One ? D_(t3) : void 0;
|
|
20698
|
-
}, defaultSize: () => {
|
|
20699
|
-
const t3 = this.getView().isShowFormulas() ? 2 : 1;
|
|
20700
|
-
return this._defaultColWidth() / h2() * t3;
|
|
20701
|
-
}, scaleFactor: h2, maxSize: () => 255, setContainerShiftedCallback: (t3) => {
|
|
20697
|
+
}, defaultSize: () => this._defaultColWidth() / h2(), scaleFactor: h2, maxSize: () => 255, setContainerShiftedCallback: (t3) => {
|
|
20702
20698
|
this._colHeadersShiftCallback = t3;
|
|
20703
20699
|
} }), this._colHeadersRemoveListener = this._colHeaders.addListeners(this._colHeadersListener, { transactional: true }), this._rowHeadersRemoveListener?.();
|
|
20704
|
-
const d2 =
|
|
20700
|
+
const d2 = Jo.getDeviceScale();
|
|
20705
20701
|
this._rowHeaders = new h_({ sheet: t2, orientation: e.Orientation.Row, maxSheetCoords: this._entireCoords, transactions: this._transactions, isProtected: () => !t2._initializing && !t2.getProtection().isFormatRowsAllowed(), getTextAt: (t3) => {
|
|
20706
20702
|
const e2 = this.getView().getRowHeaderStyle();
|
|
20707
20703
|
return e2 === gp.HeaderTextStyle.One ? D_(t3) : e2 === gp.HeaderTextStyle.Zero ? F_(t3) : e2 === gp.HeaderTextStyle.A1 ? O_(t3) : void 0;
|
|
20708
20704
|
}, defaultSize: () => this._defaultRowHeight(), scaleFactor: () => d2, minSize: () => 0, maxSize: () => 409, setContainerShiftedCallback: (t3) => {
|
|
20709
20705
|
this._rowHeadersShiftCallback = t3;
|
|
20710
|
-
} }), this._rowHeadersRemoveListener = this._rowHeaders.addListeners(this._rowHeadersListener, { transactional: true }), this._defaultFontBoundsCache = null, this._defaultColWidthCache =
|
|
20706
|
+
} }), this._rowHeadersRemoveListener = this._rowHeaders.addListeners(this._rowHeadersListener, { transactional: true }), this._defaultFontBoundsCache = null, this._defaultColWidthCache = 0, this._defaultRowHeightCache = 0;
|
|
20711
20707
|
const u2 = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, g2 = [u2], m2 = { excludeHidden: true, sort: { orientation: e.Orientation.Column, reverse: false } };
|
|
20712
20708
|
this._cellOptions = { resolveRange: (t3) => {
|
|
20713
20709
|
if (null === t3) return this._createRange(null, void 0, "temporary cell");
|
|
@@ -20730,7 +20726,7 @@ class z_ {
|
|
|
20730
20726
|
}
|
|
20731
20727
|
_clearState() {
|
|
20732
20728
|
this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new A_(void 0, this._options.readonly), this._protectionRemoveListener = this._protection.addListeners({ onChange() {
|
|
20733
|
-
if (t2._closed) throw new Error(
|
|
20729
|
+
if (t2._closed) throw new Error($h);
|
|
20734
20730
|
t2._getState().movableMapModel.forEach((t3) => {
|
|
20735
20731
|
t3.value.processProtectionCallback?.();
|
|
20736
20732
|
}), t2._getState().tableMapModel.forEach((t3) => {
|
|
@@ -20739,8 +20735,8 @@ class z_ {
|
|
|
20739
20735
|
} }), this._stylesRemoveListener?.();
|
|
20740
20736
|
const t2 = this;
|
|
20741
20737
|
this._stylesRemoveListener = this._styles.addListeners({ onAnyChange() {
|
|
20742
|
-
t2._defaultColWidthCache =
|
|
20743
|
-
} }), this._view.clear(false), this._rangeListenerSpatial = new
|
|
20738
|
+
t2._defaultColWidthCache = 0, t2._defaultRowHeightCache = 0, t2._defaultFontBoundsCache = null, t2._emitter.notify("onLayoutChange"), t2._emitter.notify("onStyleChange");
|
|
20739
|
+
} }), this._view.clear(false), this._rangeListenerSpatial = new Ja(), this._rangesListenerMap = /* @__PURE__ */ new Map(), this._rangesListenerSorted = new wt();
|
|
20744
20740
|
const n2 = (e2) => {
|
|
20745
20741
|
const n3 = t2._getState().rangesListenerSpatial2;
|
|
20746
20742
|
if (n3.isEmpty()) return;
|
|
@@ -20757,7 +20753,7 @@ class z_ {
|
|
|
20757
20753
|
}, getEntireCoords: () => t2._entireCoords, getSheetName: () => t2.getName() });
|
|
20758
20754
|
i2.addListeners({ onStart(t3) {
|
|
20759
20755
|
}, onInvalidate: () => {
|
|
20760
|
-
} }), this._updateState({ rangesListenerSpatial2: new
|
|
20756
|
+
} }), this._updateState({ rangesListenerSpatial2: new Ja({ updateEntryOptions: { onShifted: (e2) => {
|
|
20761
20757
|
let n3 = t2._getState().rangesListenerMap2;
|
|
20762
20758
|
if (0 === n3.size) return;
|
|
20763
20759
|
n3 = new Map(n3);
|
|
@@ -20779,24 +20775,24 @@ class z_ {
|
|
|
20779
20775
|
i3 = i3.processRemove(r4), t2._addEvent("address", i3), n3.set(s3, i3);
|
|
20780
20776
|
}
|
|
20781
20777
|
t2._updateState({ rangesListenerMap2: n3 });
|
|
20782
|
-
} } }), rangesListenerMap2: /* @__PURE__ */ new Map(), cellValuesGrid: new bl({ orientation: this._isDataColumn ? e.Orientation.Column : e.Orientation.Row }), formulaSpatial: new
|
|
20778
|
+
} } }), rangesListenerMap2: /* @__PURE__ */ new Map(), cellValuesGrid: new bl({ orientation: this._isDataColumn ? e.Orientation.Column : e.Orientation.Row }), formulaSpatial: new Ja(), spillSpatial: new Ja(), pendingSpatial: new Ja(), calcErrorsSpatial: new Ja(), calcGraph: i2, directStyleSpatial: new Ja({ updateEntryOptions: { isMergeOnShift: true, isTrailingEdge: true, onUpdated: n2, onRemoved: n2 } }), continuousFillSpatial: new Ja({ updateEntryOptions: { isMergeOnShift: true, isTrailingEdge: true } }), conditionalModels: /* @__PURE__ */ new Map(), conditionalSpatial: new Ja({ updateEntryOptions: { onGroupUpdate(e2, n3) {
|
|
20783
20779
|
let r3 = t2._getState().conditionalModels, o3 = r3.get(n3);
|
|
20784
20780
|
if (!o3) return;
|
|
20785
20781
|
r3 = new Map(r3);
|
|
20786
20782
|
const s3 = o3.spatials;
|
|
20787
20783
|
o3 = { ...o3 }, o3.spatials = e2, r3.set(n3, o3), t2._updateState({ conditionalModels: r3 }), o3.processCoordsChange({ before: s3, after: o3.spatials });
|
|
20788
|
-
} } }), mergeSpatial: new
|
|
20784
|
+
} } }), mergeSpatial: new Ja({ updateEntryOptions: { getShifted: (t3, e2) => e2 ? (e2.value = new d_(c.sanitizeRange(e2), t3.value._tvTl), e2) : null, getSplit(t3, e2) {
|
|
20789
20785
|
throw new Error("We can't insert through merges. Unmerge and try again.");
|
|
20790
|
-
}, onUpdated: n2, onRemoved: n2 } }), movableMapModel: /* @__PURE__ */ new Map(), movableSpatial: new
|
|
20786
|
+
}, onUpdated: n2, onRemoved: n2 } }), movableMapModel: /* @__PURE__ */ new Map(), movableSpatial: new Ja({ updateEntryOptions: { getShifted(e2, n3, r3) {
|
|
20791
20787
|
const o3 = e2.value.processShiftCallback?.(r3);
|
|
20792
20788
|
let s3 = null;
|
|
20793
20789
|
const i3 = new Map(t2._getState().movableMapModel), a2 = e2.value.model;
|
|
20794
20790
|
return o3 ? (s3 = { ...o3, value: { ...e2.value } }, i3.set(a2, s3)) : i3.delete(a2), t2._updateState({ movableMapModel: i3 }), s3;
|
|
20795
|
-
} } }), hyperlinkSpatial: new
|
|
20791
|
+
} } }), hyperlinkSpatial: new Ja({ updateEntryOptions: { isSplitOnExpand: true, isMergeOnShift: true } }), commentsSpatial: new Ja({ updateEntryOptions: { isSplitOnExpand: true, isMergeOnShift: true, onUpdated: n2, onRemoved: n2 } }), tableMapModel: /* @__PURE__ */ new Map(), tableMapName: /* @__PURE__ */ new Map(), tableSpatial: new Ja({ updateEntryOptions: { getShifted(e2, n3, r3) {
|
|
20796
20792
|
const o3 = new Map(t2._getState().tableMapModel), s3 = e2.value.model, i3 = e2.value.processShiftCallback?.(r3);
|
|
20797
20793
|
let a2 = null;
|
|
20798
20794
|
return i3 ? (a2 = { ...i3, value: { ...n3.value } }, o3.set(s3, a2)) : o3.delete(s3), t2._updateState({ tableMapModel: o3 }), a2;
|
|
20799
|
-
} } }), filter: null, sort: null, rangeListenerSpatial: new
|
|
20795
|
+
} } }), filter: null, sort: null, rangeListenerSpatial: new Ja(), rangesListenerMap: /* @__PURE__ */ new Map(), contentfulSpatial: new Ja({ updateEntryOptions: { isSplitOnExpand: true, isMergeOnShift: true, onShifted: (e2) => {
|
|
20800
20796
|
const n3 = t2._getState().rangesListenerSpatial2;
|
|
20801
20797
|
if (0 === n3.size()) return;
|
|
20802
20798
|
const r3 = e2.length;
|
|
@@ -20807,7 +20803,7 @@ class z_ {
|
|
|
20807
20803
|
t2._addEvent("data", n4);
|
|
20808
20804
|
}
|
|
20809
20805
|
}
|
|
20810
|
-
}, onRemoved: n2, onUpdated: n2 } }), unlockSpatial: new
|
|
20806
|
+
}, onRemoved: n2, onUpdated: n2 } }), unlockSpatial: new Ja({ updateEntryOptions: { isMergeOnShift: true } }), deleted: false }), this._defaultFontBoundsCache = null, this._defaultColWidthCache = null, this._defaultRowHeightCache = null;
|
|
20811
20807
|
}
|
|
20812
20808
|
_createTableEntry(t2, e2 = false) {
|
|
20813
20809
|
const n2 = { model: null, processShiftCallback: null, processDeleteCallback: null, processProtectionCallback: null, currentName: null, removeListener: null };
|
|
@@ -21036,7 +21032,7 @@ class z_ {
|
|
|
21036
21032
|
(i2()?.value ?? o2).processLayoutCallback = t3;
|
|
21037
21033
|
}, initialAnchor: r2, maxRangeCoords: this._entireCoords, json: t2 }, _2 = t2.content.json, S2 = { type: d2, transactions: this._transactions, beginPersistResource: m2, fromResourceId: n2, defaultLockAspectRatio: f2, json: _2 };
|
|
21038
21034
|
let w2 = null;
|
|
21039
|
-
if ("picture" === d2) w2 = new
|
|
21035
|
+
if ("picture" === d2) w2 = new Vm(S2);
|
|
21040
21036
|
else if ("chart" === d2) w2 = new Op(S2);
|
|
21041
21037
|
else if ("sp" === d2 || "cxnSp" === d2 || "grpSp" === d2) w2 = new Dp(S2);
|
|
21042
21038
|
else {
|
|
@@ -21189,7 +21185,7 @@ class z_ {
|
|
|
21189
21185
|
return this._closed ? Rc : this._options.container?.getName?.() ?? null;
|
|
21190
21186
|
}
|
|
21191
21187
|
setName(t2) {
|
|
21192
|
-
if (this._closed) throw new Error(
|
|
21188
|
+
if (this._closed) throw new Error($h);
|
|
21193
21189
|
const e2 = this._options.container?.setName;
|
|
21194
21190
|
if (!e2) throw new Error("Unable to set name for sheet.");
|
|
21195
21191
|
return e2(t2), this;
|
|
@@ -21198,7 +21194,7 @@ class z_ {
|
|
|
21198
21194
|
return this._closed ? Cp.Visibility.VeryHidden : this._options.container?.getVisibility?.() ?? Cp.Visibility.Hidden;
|
|
21199
21195
|
}
|
|
21200
21196
|
setVisibility(t2 = true) {
|
|
21201
|
-
if (this._closed) throw new Error(
|
|
21197
|
+
if (this._closed) throw new Error($h);
|
|
21202
21198
|
const e2 = this._options.container?.setVisibility;
|
|
21203
21199
|
if (!e2) throw new Error("Unable to set visibility for sheet.");
|
|
21204
21200
|
let n2;
|
|
@@ -21233,9 +21229,9 @@ class z_ {
|
|
|
21233
21229
|
return true;
|
|
21234
21230
|
}
|
|
21235
21231
|
}
|
|
21236
|
-
const W_ = { address: null, scope: null }, H_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 },
|
|
21232
|
+
const W_ = { address: null, scope: null }, H_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, $_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, V_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, j_ = { includeHidden: false };
|
|
21237
21233
|
Object.freeze({ [Xh.Content.Values]: Number.MAX_SAFE_INTEGER, [Xh.Content.Formulas]: Number.MAX_SAFE_INTEGER }), Object.freeze({ [Xh.Content.Values]: 1, [Xh.Content.Formulas]: 1 });
|
|
21238
|
-
const G_ = { ignoreDataChanges: false }, U_ = { colStart: -1, rowStart: -1, colEnd: -1, rowEnd: -1 },
|
|
21234
|
+
const G_ = { ignoreDataChanges: false }, U_ = { colStart: -1, rowStart: -1, colEnd: -1, rowEnd: -1 }, q_ = [{ colIndex: -1, rowIndex: -1 }, null, null, null, null], J_ = [Xh.Content.Values], K_ = { size: null, autoSize: true }, X_ = { skipCustomSize: true, expandOnly: true, minContent: true }, Y_ = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Q_ = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Z_ = { showFormulaBar: true, showTabs: true, tabRatio: 600, showHorizontalScrollbar: true, showVerticalScrollbar: true, showStatusBar: true, activeSheetId: null };
|
|
21239
21235
|
class tS {
|
|
21240
21236
|
constructor(t2) {
|
|
21241
21237
|
this._emitter = null, this._emitter = new Ki(this), this._state = { ...Z_ }, t2?.json && this._fromJSON(t2?.json);
|
|
@@ -21360,7 +21356,7 @@ class eS {
|
|
|
21360
21356
|
return this._beginCommit(t2);
|
|
21361
21357
|
}
|
|
21362
21358
|
_getState() {
|
|
21363
|
-
if (this._closed) throw new Error(
|
|
21359
|
+
if (this._closed) throw new Error(qi);
|
|
21364
21360
|
return this._transactions.getState(this);
|
|
21365
21361
|
}
|
|
21366
21362
|
_beginCommit(t2) {
|
|
@@ -21413,7 +21409,7 @@ class eS {
|
|
|
21413
21409
|
let nS;
|
|
21414
21410
|
const rS = "SheetXL", oS = nS || (nS = o.deepFreeze({ ISheet: { Visibility: Cp.Visibility }, ICell: { Content: Xh.Content, CalcStatus: Xh.CalcStatus }, IColor: { Named: Ls.Named, Scheme: Ls.Scheme, Type: Ls.Type, AdjustmentType: Ls.AdjustmentType }, Direction: h }), nS);
|
|
21415
21411
|
let sS;
|
|
21416
|
-
class iS extends
|
|
21412
|
+
class iS extends qf {
|
|
21417
21413
|
constructor(t2, e2, n2, r2 = null, o2 = false) {
|
|
21418
21414
|
super(t2, e2, n2, r2, o2);
|
|
21419
21415
|
}
|
|
@@ -21542,7 +21538,7 @@ const lS = async (t2, e2) => {
|
|
|
21542
21538
|
const s2 = r2[t3], i2 = s2[0], a2 = s2[1];
|
|
21543
21539
|
let l2, c2 = n2 ? () => {
|
|
21544
21540
|
} : await lS(e2, i2);
|
|
21545
|
-
l2 = i2.context && i2.context !== Uf.Context.Calculation ? new iS(i2, c2, () => null, a2) : new
|
|
21541
|
+
l2 = i2.context && i2.context !== Uf.Context.Calculation ? new iS(i2, c2, () => null, a2) : new qf(i2, c2, () => null, a2), o2.set(i2.name.toUpperCase(), l2);
|
|
21546
21542
|
}
|
|
21547
21543
|
return new aS({ json: e2, readonlyFunctions: o2, name: t2 });
|
|
21548
21544
|
};
|
|
@@ -21681,7 +21677,7 @@ class CS {
|
|
|
21681
21677
|
return this._get().length;
|
|
21682
21678
|
}
|
|
21683
21679
|
}
|
|
21684
|
-
const bS = new RegExp(/[\\/\\*?:[\]]+/), vS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), xS = (t2) => `Sheet${t2 + 1}`, IS = (t2, e2) => ({
|
|
21680
|
+
const bS = new RegExp(/[\\/\\*?:[\]]+/), vS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), xS = (t2) => `Sheet${t2 + 1}`, IS = (t2, e2) => ({ ...$g, getSheet: () => null, toString: () => jc(t2, e2) }), RS = (t2, e2 = false) => {
|
|
21685
21681
|
if (!t2) throw new Error(wS);
|
|
21686
21682
|
if (bS.test(t2)) {
|
|
21687
21683
|
if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : SS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
|
|
@@ -21757,8 +21753,8 @@ class MS extends N_ {
|
|
|
21757
21753
|
}
|
|
21758
21754
|
_createRange(t2, e2) {
|
|
21759
21755
|
const n2 = this._sheet;
|
|
21760
|
-
if (!t2) return
|
|
21761
|
-
if (n2._validateCoords(t2), n2._closed) return
|
|
21756
|
+
if (!t2) return Vg(n2, n2._entireCoords);
|
|
21757
|
+
if (n2._validateCoords(t2), n2._closed) return Vg(null, n2._entireCoords, t2);
|
|
21762
21758
|
let r2 = this._options;
|
|
21763
21759
|
return e2 && (r2 = { ...this._options, getOptions: Qg(this._options?.getOptions, e2) }), new MS(t2, this._sheet, this._workbook, r2);
|
|
21764
21760
|
}
|
|
@@ -22262,7 +22258,7 @@ class NS {
|
|
|
22262
22258
|
"r" === e3 ? r3.rowStart = r3.rowEnd = n3.rowIndex : r3.colStart = r3.colEnd = n3.colIndex, t2 = r3;
|
|
22263
22259
|
}
|
|
22264
22260
|
}
|
|
22265
|
-
const a2 = this, l2 = Yc(t2, s2,
|
|
22261
|
+
const a2 = this, l2 = Yc(t2, s2, qc, (t3) => {
|
|
22266
22262
|
if (!e2) return null;
|
|
22267
22263
|
if ("string" == typeof t3) {
|
|
22268
22264
|
const e3 = a2.getNames().getByName(t3);
|
|
@@ -22405,7 +22401,7 @@ class NS {
|
|
|
22405
22401
|
}
|
|
22406
22402
|
_fromJSON(t2) {
|
|
22407
22403
|
if (this._emitter.notify("onBeforeLoad", { params: t2 }), this._initState(), !t2.sheets || 0 === t2.sheets.length) throw new Error(mS);
|
|
22408
|
-
t2.theme && (this._theme = new
|
|
22404
|
+
t2.theme && (this._theme = new $i(t2.theme), this._styles.setTheme(this._theme));
|
|
22409
22405
|
const e2 = this._strings.beginPersist(), n2 = this._resources.beginPersist(), r2 = this._styles.beginPersist();
|
|
22410
22406
|
try {
|
|
22411
22407
|
e2.fromJSON(t2.strings), n2.fromJSON(t2.resources), r2.fromJSON(t2.styles), t2.date1904 && (this._isDate1904 = true), t2.view || (t2.view = {});
|
|
@@ -22430,7 +22426,7 @@ class NS {
|
|
|
22430
22426
|
const e2 = this;
|
|
22431
22427
|
return new hS({ transactions: this._transactions, json: t2, workbook: e2, getBuiltInFunctions: () => e2._calculation?.getFunctions(), onAdd: (t3, n2) => {
|
|
22432
22428
|
const r2 = e2._calculation;
|
|
22433
|
-
r2.getStatus() !==
|
|
22429
|
+
r2.getStatus() !== $m.Status.Off && r2.start().then(() => {
|
|
22434
22430
|
const t4 = n2.getFunctions().getItems({ type: "formula" }), e3 = t4.length;
|
|
22435
22431
|
for (let n3 = 0; n3 < e3; n3++) {
|
|
22436
22432
|
const e4 = t4[n3];
|
|
@@ -22548,14 +22544,14 @@ export {
|
|
|
22548
22544
|
Ui as IAnchored,
|
|
22549
22545
|
cp as IAutoFilter,
|
|
22550
22546
|
Ys as IBorder,
|
|
22551
|
-
|
|
22547
|
+
$m as ICalculation,
|
|
22552
22548
|
Xh as ICell,
|
|
22553
22549
|
ap as ICellHeaderRange,
|
|
22554
22550
|
ip as ICellRange,
|
|
22555
22551
|
Ls as IColor,
|
|
22556
22552
|
dp as IConditionalFormat,
|
|
22557
22553
|
Os as IFill,
|
|
22558
|
-
|
|
22554
|
+
Jo as IFont,
|
|
22559
22555
|
os as IFontCollection,
|
|
22560
22556
|
lp as IMovable,
|
|
22561
22557
|
Hm as IPicture,
|
|
@@ -22571,7 +22567,7 @@ export {
|
|
|
22571
22567
|
Ci as IThemeCollection,
|
|
22572
22568
|
at as LicenseManager,
|
|
22573
22569
|
fi as NumberFormat,
|
|
22574
|
-
|
|
22570
|
+
Vm as Picture,
|
|
22575
22571
|
yp as RangeClipboardItem,
|
|
22576
22572
|
Lm as Resource,
|
|
22577
22573
|
Pm as ResourceCollection,
|
|
@@ -22580,10 +22576,10 @@ export {
|
|
|
22580
22576
|
Zi as Sort,
|
|
22581
22577
|
Wm as StringCollection,
|
|
22582
22578
|
Fm as StyleCollection,
|
|
22583
|
-
|
|
22579
|
+
qf as T,
|
|
22584
22580
|
bm as Table,
|
|
22585
22581
|
Po as TextUtils,
|
|
22586
|
-
|
|
22582
|
+
$i as Theme,
|
|
22587
22583
|
ji as ThemeCollection,
|
|
22588
22584
|
k as TransactionStore,
|
|
22589
22585
|
L as TransactionUndoManager,
|