@sheetxl/sdk 0.6.14 → 0.6.15
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/{DgzoBVFFLC3Zv3ZF.cjs → B1FSysGLiMuBWWG7.cjs} +1 -1
- package/browser/cjs/{DVKdHM5HtVpKbIsi.cjs → B8Z20ZHnVdKPe_wg.cjs} +1 -1
- package/browser/cjs/{KPg1p4gr1jYrRFOQ.cjs → BE6JxE7oSWBEp-mN.cjs} +2 -2
- package/browser/cjs/{CgcJnLXv6G0DXZgX.cjs → BMlsgnEKkvuJ_zCU.cjs} +1 -1
- package/browser/cjs/{wvL0ZKtQC1IqdzGf.cjs → BmAuZ-x329wWwez-.cjs} +2 -2
- package/browser/cjs/{CMpaOlZJ_Eknu4Ta.cjs → BqL47R-5d3W6dAVu.cjs} +1 -1
- package/browser/cjs/BxD8HnRMYSdquKAd.cjs +54 -0
- package/browser/cjs/{DIUZi-C_4XyTFJVO.cjs → C1Z-iNMVmlFh0-9a.cjs} +1 -1
- package/browser/cjs/{zNL-k-477FDHDMNB.cjs → C62iavaEh4cKs8ra.cjs} +1 -1
- package/browser/cjs/{D_5lNxYXtg8pTBl4.cjs → CCTKLml0jGdTAZmx.cjs} +1 -1
- package/browser/cjs/{Cdw22URvA8dpCqXh.cjs → CVgEYzGdf73vqt1t.cjs} +1 -1
- package/browser/cjs/{D_y2_v6BxBvein0F.cjs → C_JGndrOOobXdWM9.cjs} +1 -1
- package/browser/cjs/{zvUJZO_ZiK6vYwur.cjs → CpEBLzivH9arChhd.cjs} +3 -3
- package/browser/cjs/{Dsi_3py7w3x0FOZh.cjs → DANE2K4uLXH2h6L_.cjs} +1 -1
- package/browser/cjs/{DjkbhKal3FbG1k-5.cjs → DD47hmAQlYVCONFG.cjs} +1 -1
- package/browser/cjs/{lOdJR1MygGekWVIY.cjs → DEezdLdn55kGultJ.cjs} +1 -1
- package/browser/cjs/{h3AnrXs1yGFRfhXn.cjs → DPW1fNYgmA7pYuD4.cjs} +1 -1
- package/browser/cjs/{Dev2f5p24znnfBw5.cjs → DV0GzxQXzduRewRU.cjs} +1 -1
- package/browser/cjs/{C3NbuWlwNH9zafeB.cjs → DnxziYwOHzv72aCD.cjs} +1 -1
- package/browser/cjs/{DGATUw2NU6Zk94Df.cjs → DoYc2FzwQCh04_iU.cjs} +1 -1
- package/browser/cjs/{BZoJWDhZE0dmT2Hr.cjs → DwsD11UtBZVBKXDj.cjs} +1 -1
- package/browser/cjs/{DTqdtm4RRC6H7GuB.cjs → Dx5kop28TgYNjLWg.cjs} +1 -1
- package/browser/cjs/{DBfWRgHutIY9Sq8n.cjs → Dy7TA5w_6b7NZ9L5.cjs} +1 -1
- package/browser/cjs/{CsVdrRbuvhM5QBRI.cjs → EYh0tqpDATD-VWjH.cjs} +1 -1
- package/browser/cjs/{2_0ljEmd3MqrQ5qe.cjs → b7ZrNvJyGPgBRWxt.cjs} +1 -1
- package/browser/cjs/{D1267MbujS_AycGh.cjs → drmp51GNkc-_dEhU.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{BXMdSgOOMcSA1CFe.cjs → tVPyTuFILZF8dLSx.cjs} +1 -1
- package/browser/esm/{BloJXjRn8hP4d255.mjs → 2hhwCP61Sa3v1NjZ.mjs} +1 -1
- package/browser/esm/{CSMZhlPFyiHkra-E.mjs → 6vhfFZ6TcuKo4lbQ.mjs} +3 -3
- package/browser/esm/{bF3CzNsuK2gxZG0s.mjs → B0g5pJy-yw8fGJdl.mjs} +1 -1
- package/browser/esm/{BEAtN_zsPK5rbDUV.mjs → B97kvVdQfa3Exl2N.mjs} +1 -1
- package/browser/esm/{nZ8XDZY4vqrIcI2J.mjs → BcWVEl_OmB71TLif.mjs} +1 -1
- package/browser/esm/{Vs22R2GDO7gQjz-p.mjs → BjhhLrmxn09ZN2F4.mjs} +1 -1
- package/{node/esm/ByWhojoBVky0DgYf.mjs → browser/esm/BoFx5mWOQ9kDmxAd.mjs} +1 -1
- package/browser/esm/{BEnTsF_20TsBA9zO.mjs → BphXbjjrr-xRvn_v.mjs} +1 -1
- package/{node/esm/D9oJ-zu3Mbebhpsv.mjs → browser/esm/BzevSgN_GJWMD5yy.mjs} +1 -1
- package/{node/esm/BfzoFiKoeuTwS5JP.mjs → browser/esm/C9G6mh11Yamc32zo.mjs} +1 -1
- package/browser/esm/{B1B2OGAH7tl-RQZ6.mjs → CIpcOv2dF1XO5m1x.mjs} +1 -1
- package/{node/esm/BFfcsadzoh0o3F-F.mjs → browser/esm/CNF1rtJTtfg0sPAm.mjs} +1 -1
- package/browser/esm/{CkO-OoQd3FNIbl1s.mjs → CTejJJENMp_FS_6U.mjs} +1 -1
- package/{node/esm/ybzO-nqWcHgDPHnZ.mjs → browser/esm/Cz0W8hPCLvXlkbQo.mjs} +1 -1
- package/{node/esm/DV2J_aPtnq-cSv8P.mjs → browser/esm/DJkuQy_knvUrhvPq.mjs} +1 -1
- package/browser/esm/{BmedVxLh7gfhTflw.mjs → DKa84yD16Xrsh-v9.mjs} +1 -1
- package/browser/esm/DLiq84aEiY21Fyro.mjs +23110 -0
- package/browser/esm/{CQE_Gj9MzWo7RvCR.mjs → Dm_128Lljhtv6Jn3.mjs} +1 -1
- package/{node/esm/DN_xnwatUgZObGQv.mjs → browser/esm/PPPix-VNwJDk_TOK.mjs} +1 -1
- package/browser/esm/{DJ5DeRigx-CqQNIB.mjs → QAWVi4qmFpATjne0.mjs} +2 -2
- package/browser/esm/{CeFW6L84_M2ZP5-n.mjs → T3E730OGyqLICaG4.mjs} +1 -1
- package/browser/esm/{BAe-5TDZS7vibtSd.mjs → ZH5jyv9nq8TH5fJm.mjs} +1 -1
- package/browser/esm/{Bsng578a29DvDn9e.mjs → gWGzpjWJcRXCmFpy.mjs} +1 -1
- package/browser/esm/{DTVsA9-oun-mxpJ-.mjs → icvBR7LJkMU_-6XY.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{C4I-V6FehP7m3xY6.mjs → nS59IDXNCyy1-vgD.mjs} +1 -1
- package/{node/esm/Dgl6EgVklVhNQN-j.mjs → browser/esm/sqBXERj3-thNudHO.mjs} +1 -1
- package/{node/esm/CypD31G2r5yIOxN7.mjs → browser/esm/uQly1tDDOJIVS3ry.mjs} +1 -1
- package/node/esm/{bF3CzNsuK2gxZG0s.mjs → B0g5pJy-yw8fGJdl.mjs} +1 -1
- package/node/esm/{s5bkiuBWGhbcEhvU.mjs → B4b_hQqKGPRL1siC.mjs} +1 -1
- package/node/esm/{DuU3u_ZVH0O6oV7O.mjs → B5SmfILHrn_jXyuk.mjs} +1 -1
- package/node/esm/{DOvw6Rpvhw8Q12Fc.mjs → B6qtasB4ksqh4JoN.mjs} +1 -1
- package/node/esm/{BEAtN_zsPK5rbDUV.mjs → B97kvVdQfa3Exl2N.mjs} +1 -1
- package/node/esm/{nZ8XDZY4vqrIcI2J.mjs → BcWVEl_OmB71TLif.mjs} +1 -1
- package/{browser/esm/ByWhojoBVky0DgYf.mjs → node/esm/BoFx5mWOQ9kDmxAd.mjs} +1 -1
- package/node/esm/{BEnTsF_20TsBA9zO.mjs → BphXbjjrr-xRvn_v.mjs} +1 -1
- package/{browser/esm/D9oJ-zu3Mbebhpsv.mjs → node/esm/BzevSgN_GJWMD5yy.mjs} +1 -1
- package/{browser/esm/BfzoFiKoeuTwS5JP.mjs → node/esm/C9G6mh11Yamc32zo.mjs} +1 -1
- package/node/esm/{Bq2byK_rc9xYtXP5.mjs → CAlsCjZ5AvJtJ3Pm.mjs} +1 -1
- package/node/esm/{B1B2OGAH7tl-RQZ6.mjs → CIpcOv2dF1XO5m1x.mjs} +1 -1
- package/node/esm/{CEF3Koz-ZYmoM15c.mjs → CKBYykISy-lvkNyD.mjs} +1 -1
- package/{browser/esm/BFfcsadzoh0o3F-F.mjs → node/esm/CNF1rtJTtfg0sPAm.mjs} +1 -1
- package/node/esm/{B0Q6s5oeTuDpEK0u.mjs → CW-N7xXW32EPyr3n.mjs} +1 -1
- package/node/esm/{CRsWrA5m6zxghBfc.mjs → Cfn8RWH90XePIyI4.mjs} +1 -1
- package/{browser/esm/ybzO-nqWcHgDPHnZ.mjs → node/esm/Cz0W8hPCLvXlkbQo.mjs} +1 -1
- package/node/esm/{Cu8ghfxjmgu90YcD.mjs → DHSx9xekAnH8zZVV.mjs} +2 -2
- package/{browser/esm/DV2J_aPtnq-cSv8P.mjs → node/esm/DJkuQy_knvUrhvPq.mjs} +1 -1
- package/{browser/esm/DN_xnwatUgZObGQv.mjs → node/esm/PPPix-VNwJDk_TOK.mjs} +1 -1
- package/node/esm/{Bsng578a29DvDn9e.mjs → gWGzpjWJcRXCmFpy.mjs} +1 -1
- package/node/esm/index.mjs +747 -753
- package/node/esm/{C4I-V6FehP7m3xY6.mjs → nS59IDXNCyy1-vgD.mjs} +1 -1
- package/node/esm/{DraNJl7CH4TpHhmP.mjs → pD_Jl_6CMYcVAUPV.mjs} +1 -1
- package/{browser/esm/Dgl6EgVklVhNQN-j.mjs → node/esm/sqBXERj3-thNudHO.mjs} +1 -1
- package/{browser/esm/CypD31G2r5yIOxN7.mjs → node/esm/uQly1tDDOJIVS3ry.mjs} +1 -1
- package/package.json +4 -4
- package/browser/cjs/-GbzD2TqGpqnE2Wr.cjs +0 -54
- package/browser/esm/D0oDESXG-L_eJjP6.mjs +0 -23128
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.15
|
|
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.
|
|
@@ -358,7 +358,7 @@ class D extends F {
|
|
|
358
358
|
}), this._parent._removeChild(this), this._closed = true, this._onClose?.(this, true, null), this._parent ?? this;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
class
|
|
361
|
+
class L extends s {
|
|
362
362
|
constructor(t2, e2 = 50) {
|
|
363
363
|
super(e2), this._transactions = t2;
|
|
364
364
|
const n2 = this;
|
|
@@ -375,9 +375,9 @@ class B extends s {
|
|
|
375
375
|
this._removeLister();
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
const
|
|
378
|
+
const B = () => {
|
|
379
379
|
try {
|
|
380
|
-
return "0.6.
|
|
380
|
+
return "0.6.15";
|
|
381
381
|
} catch (t2) {
|
|
382
382
|
return "";
|
|
383
383
|
}
|
|
@@ -387,8 +387,8 @@ const L = () => {
|
|
|
387
387
|
} catch (t2) {
|
|
388
388
|
return "";
|
|
389
389
|
}
|
|
390
|
-
}, getBuildVersion:
|
|
391
|
-
https://www.sheetxl.com ${
|
|
390
|
+
}, getBuildVersion: B }, Symbol.toStringTag, { value: "Module" })), P = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", W = `
|
|
391
|
+
https://www.sheetxl.com ${B()}`, H = "#1976d2", V = "#FFA726", $ = Object.freeze(Object.defineProperty({ __proto__: null, generateNodeId: async () => {
|
|
392
392
|
if (!o.isNode()) return null;
|
|
393
393
|
const t2 = await import(
|
|
394
394
|
/* @vite-ignore */
|
|
@@ -412,7 +412,7 @@ const L = () => {
|
|
|
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(V);
|
|
416
416
|
return console.log(e2(P) + n2(W));
|
|
417
417
|
} catch (t3) {
|
|
418
418
|
return console.log(P + "\n" + W + "\n");
|
|
@@ -425,7 +425,7 @@ const L = () => {
|
|
|
425
425
|
"chalk"
|
|
426
426
|
)).default;
|
|
427
427
|
s2.level = 2;
|
|
428
|
-
const i2 = s2.red, a2 = s2.hex(H), l2 = s2.hex(
|
|
428
|
+
const i2 = s2.red, a2 = s2.hex(H), l2 = s2.hex(V), c2 = t2.isEval();
|
|
429
429
|
if (c2 ? (o2 = "Evaluation Only", console.log(i2(o2)), o2 = "Please visit https://my.sheetxl.com to register.", console.log(a2(o2))) : (o2 = `Licensee: ${t2.licensee() ?? "Invalid License"}
|
|
430
430
|
`, o2 += `Expires: ${t2.expiration()?.toLocaleDateString() ?? "Never"}`, t2.domains() && t2.domains().length > 0 && (o2 += `
|
|
431
431
|
Domains: ${t2.domains().join(", ")}`), t2.cpuCount() > 0 && (o2 += `
|
|
@@ -451,201 +451,174 @@ KeyFrom: '${t2.keyFrom()}'`, console.log(l2(o2))), Promise.resolve();
|
|
|
451
451
|
} catch (t3) {
|
|
452
452
|
console.warn("Unable to save license key to config store.");
|
|
453
453
|
}
|
|
454
|
-
} }, Symbol.toStringTag, { value: "Module" })),
|
|
454
|
+
} }, Symbol.toStringTag, { value: "Module" })), j = (t2, e2, n2 = 126) => ((t3, e3, n3 = 126) => {
|
|
455
455
|
let r2 = t3.split("");
|
|
456
456
|
for (let t4 = 0; t4 < r2.length; t4++) r2[t4].charCodeAt(0) <= n3 && (r2[t4] = String.fromCharCode((r2[t4].charCodeAt(0) + e3) % n3));
|
|
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() {
|
|
460
|
-
const t2 = ["
|
|
460
|
+
const t2 = ["a8k7F1LOW6evhr/cKHTbW73cLsHZ", "WQ5Sk1iBD3W", "pKz3WO7cMqqTW741qZGb", "svvJsLRdUGxcVM3dQCo0oSktW47cL1dcPqeOW5xcS8kan2pcPsiG", "lmokW6BdGSk+nW", "WPvZnfOCBuVcHCoofCkrW4FcSa", "WQHzW7DmsCkSaZ3dTmodk8k2bG", "WONdRgtdSmk2W4C", "cutdICkzqCklAtFdV8olW7pdSSkQ", "W7n1WPFdObxcTKm", "WPHxcfmXj8kGytpcNmoGh38", "f8oCW4vPq8kcW7/cO0OmrdW", "zKG6tKLX", "CmkEWR7cLSoOcSoRzmoFmce", "dmkryxXjWRj/neWjWQu", "xCkPlJ4mC8ooWOmKWQyeW6dcM8kdWRddTSkPaqu", "repcOmkDWRi", "q8oYW6X5xmo3WPFdLSksWOO8W4mVW6RdMhVcO3a", "yCoCW7ycj1Dqx0RcJsDzW5Ka", "W51udGqvWOuOxafLWP91wHS", "WQldI8kqW7CgkZ4NdSou", "W5pdUmovW7abAG", "ExldHf0", "W4CpCCoUhCkdWP7dH8oobG", "dSo4pa", "C15Hz1/dSatdSfldPCoCoSke", "W71iWRW0WRneWRD1kwG", "wCkJna8wDSohWRaBWRCEW53cNCk/WRe", "W7vEWR8cW4hdPe7dN8kNyCkyW78/WRBdJG", "sqBcKCotbmoods3dQSoP", "usJdQNLaxmo0wmoyWOelvsfa", "E1xdNCoHjmofWOhcHSkFWQDCcmo2", "palcPLPWWPTu", "lwlcLCkYzeipW6jG", "DCkNBSksW497W4SNW7qZW5FdNIBdRG0gzuJdKq", "W5NdPCox", "WQZdPtL+pvSq", "re49tM5MWR7dRmoiiwOvl2OYncDEW70iWQGUw8oxWPVcQSkiW6jl", "W7KaDmoFa8kdWPtcK8oogSkwrfHRlw9HeW", "W6zQWPNdPbddPq", "W41OW5JdQrpcQeCHdCo9W5Lwr8oUWOegBSoVW4ev", "s0NcP8kMWO8mWOa+", "W5ClDSo8gSkdWPZdL8oVa8kssa", "j0DqWO/cIsu", "nr8mw2RdLSoyfCktWQtcVCocWOrIr38", "d8oZpSkQWRqnDq", "FCoSWQBcLqyR", "rCo4W4rJxmoZ", "aCkVfSoziCodkJyz", "WRddJCkpW4DEWPldHW/cKfa", "W7VcTWaEbCoKxq", "W7FdSZz5hN4", "sSkSywudWOO", "W4ZdQwCBtgDxqHRcIW", "gSkpz31p", "ySkcWPW1amoyW6xcUea", "WOyGW7vGW7uj", "wstdVx1hq8oIBq", "WRPkW7bmwmkCmIhdS8oilq", "wmk0jsGzEG", "eSoTka0TWPqZfWldUde", "W6P5pYaOWRex", "W55udIezWP06zr9/", "udxdVx1zrmoUz8oeWPS", "r8oOW5n+", "WQhcRYfcD3O", "C8oOWQBcNbCXWQ3dIhddTfHxW6K", "W7HuCd5moSoy", "zqlcGSoihSoj", "W6JcRG8oemowqLbQW7W", "yCk2mIqnA8oVWRe5WRmfW4lcHW", "W4tcUbOkdmoltX9OW6BcUYJdSCowW7CBW4b9W6TQ", "W7vEWR8oW5VdQuFdSSkv", "uCkFWPG2aCoYW6NcUfGTtJC", "afBdOmkWbJJdIq", "WQRdQgddUCk5W4moW4RcRSo4CSonv0VdIKBdGd0", "rmkvWOeXb8op", "W6P0WQ7dRbdcRei", "uepcOmkzWOqu", "oCkveSoVk8odjaaQW6e", "zGGYWRpdISobW7X7W4KRW6pdQCoqbW", "B1xdN8o6jmoXWQC", "gqKku3tdHG", "sCk7FSkF", "eCk6wK1zWOGm", "mSkzbCooimoeiciJW6S", "xmoaW6Ko", "WO91j18hEhVcICovgSoyW5VcPSowW6VdTmkLsSkEW6ORkMWqWQe", "kadcISk4D8koW6lcGSkAWOTLa8oq", "rmkdWOCofmoe", "cmo5pCoeWPC/WPC3W5qcW6VdHYxdIa", "W7NdPqDncNSlWPJdJSo8oKGqW4NdLW", "W79lWQNdGWLHW7xcNmkWFG", "W4PfgXCiWPOmzqDK", "rSkiWP89b8oxW7JcQxCRrIe+bq", "oSkveSokj8oBnJK0W7T7fSoxBq", "hMNdVSorw8kHsmogAZScBMO", "W7fdWQtdIajGW4dcPCk8Atupqa", "xmk4BmkB", "WQFdJ8kkW50glq88c8ojW7ykpG", "W7KoWQaAhCoOydZdVmoNcmkxoG", "zvvXwghdUHxdTG", "o0/dRmk9bJldM8k4WRq", "eWdcU153WPW", "WRxdM8kxW5S", "f03dRmkJgYxdRCkLWQvO", "sCk8ySkAW4H7W4S", "WQxdGmkFW4O", "W6RcSXGPfColr1TaW67cRcG", "zKLWtKZdTG", "dmoZpSkjWQGiAJa3WRzFW5u", "hM/dRCouxmkXBCoxEG", "WQKfnG9CpCoTWO9c", "ebquxxldLW", "W4qlESok", "vHVcK8oehSoopW/dU8o4", "sSkSvuP6WQ0", "tSo5WRRcMXW3", "WPddMmkCW5zxWQFdNblcN1O", "nfv0W6RcM8kCW4LCW4OrW6tdUq", "yaWOWRZdHSoFW59zW5iSW7NdUmor", "yCkzmd8mA8oeWOSs", "zCoWWRJcLW", "WOrxWRLUrCk9nIhdRSoiF8kyb8oo", "W5JcQ8oXWRG", "wmkGEmo6W6GOrrmWWPjh", "tajMWR7dISooW6PfW4GNWQ3dRCohde/cJSk+WObb", "d8oZpSkQWRqnDqqbWR5fW4rADG", "W5bpWR3dIcJcNwOxl8ohWRPGECoyWQCWq8odW70", "W7FdRGvUe3Sd", "W6tcGSoCWPeyW5hcL1dcU2RcG8oDaqS", "WPRdNSkwW5OnkW", "W7D1WPhdRba", "oSo2FbycdW", "WPlcTJboD31QEYNcNW", "o0NdV8k4asldUmkTWR9UW5ab", "yfRdPmoBdSoEW4FdMLhdRW", "x8kRBmkdW5r6W4T0", "vHFcNSogbmov", "EM/dKLaqWRL2", "W7Luzr5qjCoyWOy", "oSkvemooiSoynqW0W5f6f8oCFq", "W5vufaiiWOe", "Fmkaye50WRuultq", "WQddLSkuW5OrjG", "zwJdLfqiWQL1W75+", "W6bkWQ/dGXnQW7ZcImk5BIipsNHMWQlcO1FcLq", "WRZdHSkIW41kWOm", "WQ5DW61drCkYib/dR8oemCkNb8ot", "tSo5WRRcMXW3WR/dM3FdTeLa", "fCoUja0TW7uihrJdUHby", "wrVcNmkphmoflIhdU8oPW5C", "damtvhi", "bSoEW63dI8o9d8obqmo5gZ7cM8k2WPOKW44", "wCkJlIGrFSoFWRedWR0iW4VcVCk0", "xSotW6WwlNHc", "gbqow2/dK8op", "qeNcUSk0WOGkWR4VWR1PWPy", "qXhcJbJcImojW5y1DCoczx1wudS", "W6jjWQqTW53dVKC", "v1VcK8oQoCohWRJcHSkxWR1baSo8", "lwtcHSk3y1iQW7nXB8ozBaS", "lwtcHSk3y1iSW7DRymovCG", "xSoUW655w8oZ", "W7/cSX8edmoutG", "xrSNWR7dISojW65FW54", "C0T5qKi", "duRdG8k+cZm", "WQJcUee3rYmHWOVdQCokiv8", "WOpdU2/dSSk4W4O", "oSkveSokj8oBnG", "WOyGW7vPW6uzWRHBW4VcTmohWOG", "zeiWthr9", "W7bsWR/dPqHNW77cOW", "d8o0D2ntmCkBW7P8", "aSoLhmkQWReiyG", "WPtcPddcPmkOxW", "W5vEgqqiWOa0yG", "iWeiu2JdIW", "AKtdN8oMnq", "W5hcUmo+WRnWW6O", "W6XuCczmnmoyWPT3jsHSuW", "W67dSHXIfMec", "euj/WOZcHcqPW74X", "ENldH0uwWQrPW75AW5BdG8o1W74", "mmoCW63dLCkPmmo/sSoOhq", "xd7dKhDnvq", "W6fpWQOYW4ddVNxdKSkfBa", "W7ruFsXxomoq", "zwldMviqWQK", "W73cOX8d", "r8kiWOu7hCkEWQVdOHy", "W5DXWRnoW6KAWOrfW4K", "gCkaWRHsFwT8gKFcQa0", "WRWkW6LWWPnE", "W6rsWRGPW4dcRq", "W4hdSafMewyLWP3dTSo3luK", "WOJcSZhcRSk1raC", "j0DiWOhcGsKS", "W5RcUmoKWPbHW7BdU8kfWQXM", "WQldI8kqW7ewnJmQjSogW7yk"];
|
|
461
461
|
return (U = function() {
|
|
462
462
|
return t2;
|
|
463
463
|
})();
|
|
464
464
|
}
|
|
465
465
|
function q(t2, e2, n2, r2, o2) {
|
|
466
|
-
return
|
|
466
|
+
return lt(r2 - 215, e2);
|
|
467
467
|
}
|
|
468
|
-
function J(t2, e2) {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
const e4 = function(t3, e5) {
|
|
474
|
-
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
475
|
-
for (t3 = (function(t4) {
|
|
476
|
-
let e6 = "", n4 = "";
|
|
477
|
-
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);
|
|
478
|
-
for (let t5 = 0, r4 = e6.length; t5 < r4; t5++) n4 += "%" + ("00" + e6.charCodeAt(t5).toString(16)).slice(-2);
|
|
479
|
-
return decodeURIComponent(n4);
|
|
480
|
-
})(t3), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
|
|
481
|
-
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;
|
|
482
|
-
r3 = 0, s3 = 0;
|
|
483
|
-
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]);
|
|
484
|
-
return i3;
|
|
485
|
-
};
|
|
486
|
-
J.zTxPeK = e4, t2 = arguments, J.AVWsfo = true;
|
|
487
|
-
}
|
|
488
|
-
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
489
|
-
return i2 ? o2 = i2 : (void 0 === J.louCPq && (J.louCPq = true), o2 = J.zTxPeK(o2, r2), t2[s2] = o2), o2;
|
|
490
|
-
}, J(t2, e2);
|
|
468
|
+
function J(t2, e2, n2, r2, o2) {
|
|
469
|
+
return lt(e2 - 451, n2);
|
|
470
|
+
}
|
|
471
|
+
function K(t2, e2, n2, r2, o2) {
|
|
472
|
+
return lt(r2 - 831, t2);
|
|
491
473
|
}
|
|
492
474
|
!(function() {
|
|
493
|
-
const t2 =
|
|
475
|
+
const t2 = "04uS", e2 = 1183, n2 = "XdDD", r2 = "BSC5", o2 = 1407, s2 = "(qWm", i2 = "UM2x", a2 = "rzAF", l2 = 936, c2 = 816, h2 = 813;
|
|
476
|
+
function d2(t3, e3, n3, r3, o3) {
|
|
477
|
+
return lt(n3 - h2, o3);
|
|
478
|
+
}
|
|
479
|
+
function u2(t3, e3, n3, r3, o3) {
|
|
480
|
+
return lt(t3 - 938, o3);
|
|
481
|
+
}
|
|
494
482
|
function g2(t3, e3, n3, r3, o3) {
|
|
495
|
-
return
|
|
483
|
+
return lt(o3 - c2, r3);
|
|
496
484
|
}
|
|
497
485
|
function m2(t3, e3, n3, r3, o3) {
|
|
498
|
-
return
|
|
486
|
+
return lt(r3 - l2, o3);
|
|
499
487
|
}
|
|
500
488
|
function f2(t3, e3, n3, r3, o3) {
|
|
501
|
-
return
|
|
502
|
-
}
|
|
503
|
-
function p2(t3, e3, n3, r3, o3) {
|
|
504
|
-
return J(e3 - -415, r3);
|
|
505
|
-
}
|
|
506
|
-
const _2 = U();
|
|
507
|
-
function S2(t3, e3, n3, r3, o3) {
|
|
508
|
-
return J(r3 - -30, e3);
|
|
489
|
+
return lt(o3 - 810, t3);
|
|
509
490
|
}
|
|
491
|
+
const p2 = U();
|
|
510
492
|
for (; ; ) try {
|
|
511
|
-
if (
|
|
512
|
-
|
|
493
|
+
if (451880 === parseInt(f2(t2, 0, 0, 0, 1136)) / 1 * (-parseInt(g2(0, 0, 0, "hSpx", 1259)) / 2) + -parseInt(u2(1307, 0, 0, 0, n2)) / 3 + parseInt(d2(0, 0, e2, 0, "neb1")) / 4 + -parseInt(d2(0, 0, 1185, 0, r2)) / 5 * (-parseInt(m2(0, 0, 0, o2, "Is#Q")) / 6) + -parseInt(g2(0, 0, 0, s2, 1275)) / 7 + -parseInt(m2(0, 0, 0, 1348, i2)) / 8 * (parseInt(g2(0, 0, 0, "tMI&", 1167)) / 9) + parseInt(g2(0, 0, 0, a2, 1265)) / 10) break;
|
|
494
|
+
p2.push(p2.shift());
|
|
513
495
|
} catch (t3) {
|
|
514
|
-
|
|
496
|
+
p2.push(p2.shift());
|
|
515
497
|
}
|
|
516
498
|
})();
|
|
517
|
-
const
|
|
518
|
-
const t2 = "
|
|
519
|
-
if (typeof window === n2(-253, -163, -264, -195, "tC&7")) return window[n2(-243, -159, -134, -182, "wDki")][n2(-127, -152, -171, -52, t2)];
|
|
499
|
+
const X = () => {
|
|
500
|
+
const t2 = "HWOk", e2 = "*YSv";
|
|
520
501
|
function n2(t3, e3, n3, r3, o2) {
|
|
521
|
-
return
|
|
502
|
+
return lt(o2 - -536, t3);
|
|
522
503
|
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
504
|
+
function r2(t3, e3, n3, r3, o2) {
|
|
505
|
+
return lt(t3 - -820, e3);
|
|
506
|
+
}
|
|
507
|
+
return typeof window === r2(-457, "BSC5") ? window[n2(t2, 0, 0, 0, -201)][n2(e2, 0, 0, 0, -136)] : o[r2(-445, "*YSv")]();
|
|
508
|
+
}, Y = () => {
|
|
509
|
+
const t2 = 1190, e2 = 1033, n2 = "M[wg", r2 = 20, o2 = "uAMc";
|
|
510
|
+
function s2(t3, e3, n3, r3, o3) {
|
|
511
|
+
return lt(e3 - 730, o3);
|
|
512
|
+
}
|
|
513
|
+
return X()[s2(0, t2, 0, 0, "ZWTd")](s2(0, e2, 0, 0, n2)) || X() === lt(r2 - -312, o2);
|
|
514
|
+
}, Q = (t2, e2, n2, r2) => {
|
|
515
|
+
const o2 = "HVvN";
|
|
516
|
+
function s2(t3, e3, n3, r3, o3) {
|
|
517
|
+
return lt(n3 - -659, t3);
|
|
529
518
|
}
|
|
530
|
-
return K()[n2(0, 0, "gB3N", 0, -89)](J(-212 - -610, "&Iag")) || K() === n2(0, 0, t2, 0, e2);
|
|
531
|
-
};
|
|
532
|
-
function Y(t2, e2, n2, r2, o2) {
|
|
533
|
-
return J(t2 - 576, o2);
|
|
534
|
-
}
|
|
535
|
-
const Q = (t2, e2, n2, r2) => {
|
|
536
|
-
const o2 = "!rqL", s2 = 340;
|
|
537
519
|
function i2(t3, e3, n3, r3, o3) {
|
|
538
|
-
return
|
|
520
|
+
return lt(o3 - -856, t3);
|
|
539
521
|
}
|
|
540
522
|
function a2(t3, e3, n3, r3, o3) {
|
|
541
|
-
return
|
|
523
|
+
return lt(o3 - -33, t3);
|
|
542
524
|
}
|
|
543
525
|
function l2(t3, e3, n3, r3, o3) {
|
|
544
|
-
return
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
return J(
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
var n3, r3
|
|
552
|
-
|
|
553
|
-
|
|
526
|
+
return lt(n3 - 205, r3);
|
|
527
|
+
}
|
|
528
|
+
return { licensee: () => t2[s2("OmED", 0, -243)], expiration: () => new Date(t2[i2("Mj)v", 0, 0, 0, -554)]), domains: () => t2[i2("8fis", 0, 0, 0, -423)] ?? [], developerCount: () => {
|
|
529
|
+
return t2[e3 = "J$rE", n3 = 167, lt(n3 - -132, e3)] ?? 1;
|
|
530
|
+
var e3, n3;
|
|
531
|
+
}, cpuCount: () => t2[s2("qAN6", 0, -328)] ?? 0, type: () => t2[a2("hPk0", 0, 0, 0, 448)] ?? i2("neb1", 0, 0, 0, -442), exceptions: () => e2, isValidFor: (t3) => {
|
|
532
|
+
return !(e2?.[n3 = -401, r3 = o2, i2(r3, 0, 0, 0, n3 - -17)] > 0);
|
|
533
|
+
var n3, r3;
|
|
534
|
+
}, isValid: () => true, isEval: () => false, features: () => Object[l2(0, 0, 623, "uAMc")](t2[a2("rzAF", 0, 0, 0, 262)] ?? {}), keyFrom: () => n2, getBuildVersion: z[l2(0, 0, 592, "D&1R")], getBuildDate: z[s2("aiPs", 0, -330)] };
|
|
535
|
+
}, Z = (t2) => {
|
|
536
|
+
const e2 = "OmED", n2 = "3*fs", r2 = "yeev", s2 = 1407, i2 = "Is#Q", a2 = "#BKX", l2 = "N3El", c2 = "i[s!", h2 = 63;
|
|
537
|
+
let d2 = o[_2(-218, -254, -209, "cEgA")];
|
|
538
|
+
if (Y() || o[_2(-351, -255, -330, e2)]()) {
|
|
539
|
+
const t3 = z[_2(-228, -228, -142, n2)](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), l3 = 864e5;
|
|
540
|
+
Math[_2(-282, -278, -372, r2)]((o2[m2 = s2, f2 = "Is#Q", lt(m2 - 981, f2)]() - e3[u2 = 1265, g2 = i2, lt(u2 - 839, g2)]()) / l3) >= 120 && (d2 = [_2(-249, -341, -221, a2)]);
|
|
541
|
+
} else d2 = [];
|
|
542
|
+
var u2, g2, m2, f2;
|
|
543
|
+
function p2(t3, e3, n3, r3, o2) {
|
|
544
|
+
return lt(t3 - -828, e3);
|
|
545
|
+
}
|
|
546
|
+
function _2(t3, e3, n3, r3, o2) {
|
|
547
|
+
return lt(t3 - -695, r3);
|
|
548
|
+
}
|
|
549
|
+
return { licensee: () => _2(-261, 0, 0, "p0Zn"), expiration: () => null, domains: () => [X()], developerCount: () => 1, cpuCount: () => 0, type: () => p2(-345, "%@nI"), isEval: () => true, exceptions: () => d2, isValidFor: () => {
|
|
550
|
+
return 0 === d2[t3 = 401, e3 = "%@nI", lt(t3 - h2, e3)];
|
|
551
|
+
var t3, e3;
|
|
552
|
+
}, isValid: () => false, features: () => Object[_2(-329, 0, 0, "p0Zn")]({}), keyFrom: () => t2, getBuildVersion: z[p2(-512, l2)], getBuildDate: z[p2(-359, c2)] };
|
|
554
553
|
};
|
|
555
|
-
function
|
|
556
|
-
return
|
|
554
|
+
function tt(t2, e2, n2, r2, o2) {
|
|
555
|
+
return lt(o2 - 632, n2);
|
|
557
556
|
}
|
|
558
|
-
const
|
|
559
|
-
const e2 = "tLvq", n2 = "3Kx$", r2 = 295, s2 = "A2Ew", i2 = 16;
|
|
560
|
-
let a2 = o[l2(-600, -591, "[jvj", -591, -549)];
|
|
561
|
-
function l2(t3, e3, n3, r3, o2) {
|
|
562
|
-
return J(o2 - -812, n3);
|
|
563
|
-
}
|
|
564
|
-
function c2(t3, e3, n3, r3, o2) {
|
|
565
|
-
return J(r3 - -861, e3);
|
|
566
|
-
}
|
|
567
|
-
if (X() || o[l2(0, 0, e2, 0, -550)]()) {
|
|
568
|
-
const t3 = z[l2(0, 0, "ihgJ", 0, -472)](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), c3 = 864e5;
|
|
569
|
-
Math[l2(0, 0, n2, 0, -527)]((o2[l2(0, 0, "QkhE", 0, -409)]() - e3[h2 = r2, d2 = "VKWn", J(h2 - i2, d2)]()) / c3) >= 120 && (a2 = [u2(-641, -611, -622, s2)]);
|
|
570
|
-
} else a2 = [];
|
|
571
|
-
var h2, d2;
|
|
572
|
-
function u2(t3, e3, n3, r3, o2) {
|
|
573
|
-
return J(n3 - -856, r3);
|
|
574
|
-
}
|
|
575
|
-
return { licensee: () => c2(0, "9PmY", 0, -552), expiration: () => null, domains: () => [K()], developerCount: () => 1, cpuCount: () => 0, type: () => u2(0, 0, -469, "p8ex"), isEval: () => true, exceptions: () => a2, isValidFor: () => 0 === a2[u2(0, 0, -486, "p8ex")], isValid: () => false, features: () => Object[l2(0, 0, "p8ex", 0, -416)]({}), keyFrom: () => t2, getBuildVersion: z[u2(0, 0, -601, "A2Ew")], getBuildDate: z[c2(0, "!HID", 0, -514)] };
|
|
576
|
-
}, et = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
557
|
+
const et = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
577
558
|
let nt = false, rt = false;
|
|
578
|
-
|
|
579
|
-
|
|
559
|
+
const ot = tt(0, 0, "^]xV", 0, 941)[st(407, "jmSO", 366, 419)]("")[q(0, "s)L3", 0, 621)]((t2, e2) => e2 + t2, "");
|
|
560
|
+
function st(t2, e2, n2, r2, o2) {
|
|
561
|
+
return lt(r2 - 82, e2);
|
|
580
562
|
}
|
|
581
|
-
const st = ot(1219, 0, 0, "A2Ew")[lt(1017, 983, 901, 899, "NMaS")]("")[lt(947, 878, 866, 864, "Y[pq")]((t2, e2) => e2 + t2, "");
|
|
582
563
|
class it {
|
|
583
564
|
constructor() {
|
|
584
|
-
const t2 =
|
|
585
|
-
function
|
|
586
|
-
return
|
|
565
|
+
const t2 = "3*fs", e2 = 543;
|
|
566
|
+
function n2(t3, n3, r2, o2, s2) {
|
|
567
|
+
return st(0, s2, 0, t3 - e2);
|
|
587
568
|
}
|
|
588
|
-
this[
|
|
569
|
+
this[n2(1032, 0, 0, 0, "J$rE")][n2(1034, 0, 0, 0, t2)] = null;
|
|
589
570
|
}
|
|
590
|
-
async [
|
|
591
|
-
const n2 =
|
|
592
|
-
|
|
593
|
-
|
|
571
|
+
async [st(0, "ZWTd", 0, 466)](t2, e2 = false) {
|
|
572
|
+
const n2 = 1375, r2 = "HWOk", s2 = 1385, i2 = 1358, a2 = ")AKh", l2 = 1217, c2 = 1249, h2 = ")AKh", d2 = "D&1R", u2 = 16, g2 = "5NzU", m2 = "^]xV", f2 = 808, p2 = "ZLhQ", _2 = 801, S2 = 1249, w2 = "HfrP", y2 = 872, E2 = 783, C2 = "Is#Q", b2 = 784, v2 = "i[s!", x2 = "D&1R", I2 = 1223, R2 = "Mj)v", A2 = 913, M2 = "3*fs", N2 = "s)L3", T2 = "*YSv", k2 = 1343, F2 = 1247, O2 = 824;
|
|
573
|
+
if (!t2 || t2[P2("8fis", -104, -60, 13, -69)](P2("D&1R", -205, -264, -245, -180)) || t2[D2(1352, n2, r2, s2, i2)](P2(a2, -143, -216, -94, -135)) || t2[D2(1319, 1179, "BSC5", l2, c2)](P2(h2, -178, -228, -155, -243)) || t2[P2(d2, -200, -218, -233, -188)](P2("rzAF", u2, -20, -50, -76))) return nt = true, await this[W2(-397, -377, g2)](true);
|
|
574
|
+
if (nt = false, !e2 && et[B2(m2, 897, f2, f2)]) {
|
|
575
|
+
const t3 = await this[B2(p2, 764, 734, _2)]();
|
|
576
|
+
if (t3[D2(1162, 1250, "i[s!", S2, 1239)]() && !t3[B2(w2, 834, y2, E2)]()) return t3;
|
|
594
577
|
}
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
return Z(n3 - -719, e3);
|
|
578
|
+
function D2(t3, e3, n3, r3, o2) {
|
|
579
|
+
return st(0, n3, 0, o2 - O2);
|
|
598
580
|
}
|
|
599
|
-
function
|
|
600
|
-
return
|
|
581
|
+
function L2(t3, e3, n3, r3, o2) {
|
|
582
|
+
return tt(0, 0, r3, 0, o2 - -187);
|
|
601
583
|
}
|
|
602
|
-
function
|
|
603
|
-
return
|
|
584
|
+
function B2(t3, e3, n3, r3, o2) {
|
|
585
|
+
return tt(0, 0, t3, 0, e3 - -209);
|
|
604
586
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
587
|
+
et[P2("J$rE", -176, -90, 2, -89)] = t2, et[P2(C2, -102, -96, -105, -187)] = L2(684, 779, 862, "Is#Q", b2), et[P2(v2, -111, -92, -30, -129)] = null, et[D2(0, 0, x2, 0, I2)] = null;
|
|
588
|
+
const z2 = await this[W2(-231, -308, "H]$W")]();
|
|
589
|
+
if (!z2[W2(-177, -264, a2)]()) throw await this[B2(R2, A2)](true), new Error(L2(0, 0, 0, M2, 875));
|
|
590
|
+
function P2(t3, e3, n3, r3, o2) {
|
|
591
|
+
return st(0, t3, 0, o2 - -615);
|
|
608
592
|
}
|
|
609
|
-
function
|
|
610
|
-
return
|
|
593
|
+
function W2(t3, e3, n3, r3, o2) {
|
|
594
|
+
return q(0, n3, 0, e3 - -915);
|
|
611
595
|
}
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
if (o[J2(0, 0, 0, -589, L2)]()) {
|
|
616
|
-
await V[J2(0, 0, 0, -664, "16Sq")](t2, e2);
|
|
617
|
-
if (!(await this[q2(0, 0, "1JH!", 0, 625)]())[J2(0, 0, 0, -513, "7hgj")]()) throw await this[q2(0, 0, "!HID", 0, z2)](true), new Error($2(543, 0, P2, "16Sq"));
|
|
596
|
+
if (o[D2(0, 0, N2, 0, 1227)]()) {
|
|
597
|
+
await $[D2(0, 0, T2, 0, k2)](t2, e2);
|
|
598
|
+
if (!(await this[D2(0, 0, p2, 0, F2)]())[L2(0, 0, 0, "ZLhQ", _2)]()) throw await this[L2(0, 0, 0, "HVvN", 781)](true), new Error(L2(0, 0, 0, "3*fs", 875));
|
|
618
599
|
}
|
|
619
|
-
return
|
|
600
|
+
return z2;
|
|
620
601
|
}
|
|
621
|
-
async [
|
|
622
|
-
const e2 =
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
if (et[dt2(726, 835, 728, 820, "YE&9")]) return et[dt2(757, 794, e2, 704, "7hgj")];
|
|
627
|
-
function Z2(t3, e3, n3, r3, o2) {
|
|
628
|
-
return Y(n3 - -1524, 0, 0, 0, o2);
|
|
602
|
+
async [st(0, "S&Dn", 0, 552)](t2 = false) {
|
|
603
|
+
const e2 = 827, n2 = 822, r2 = 923, s2 = 898, i2 = 245, a2 = 186, l2 = 376, c2 = 452, h2 = 497, d2 = "jmSO", u2 = 473, g2 = 550, m2 = 536, f2 = "uAMc", p2 = 203, _2 = "tMI&", S2 = 198, w2 = 350, y2 = "qAN6", E2 = 336, C2 = "BSC5", b2 = 769, v2 = 909, x2 = "i[s!", I2 = ")AKh", R2 = 305, A2 = 296, M2 = 400, N2 = 460, T2 = 492, k2 = 327, F2 = 231, O2 = "Dxe[", D2 = 75, L2 = 371, B2 = 336, P2 = 272, W2 = 342, H2 = 255, V2 = "Mv!*", U2 = 1003, q2 = 98, K2 = 49, it2 = "(qWm", at2 = 367, ct2 = "J$rE", ht2 = 60, dt2 = 308, ut2 = 310, gt2 = "Is#Q", mt2 = "UM2x", ft2 = "0mE]", pt2 = 356, _t2 = 1044, St2 = 343;
|
|
604
|
+
if (et[vt2(233, "0mE]", 276)]) return et[It2(e2, "04uS", n2, r2, s2)];
|
|
605
|
+
function wt2(t3, e3, n3, r3, o2) {
|
|
606
|
+
return J(0, t3 - -849, r3);
|
|
629
607
|
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
function it2(t3, e3, n3, r3, o2) {
|
|
635
|
-
return q(t3, 0, 0, 0, n3 - -169);
|
|
636
|
-
}
|
|
637
|
-
let at2 = null;
|
|
638
|
-
et[dt2(902, 907, u2, 828, "VKWn")] = new Promise((t3) => {
|
|
639
|
-
at2 = t3;
|
|
608
|
+
if (!this[vt2(i2, "hSpx", a2)][At2(l2, c2, h2, 469, d2)] && (this[At2(u2, 492, g2, m2, f2)][vt2(p2, _2, S2)] = new Error("FV")), et[wt2(-30, 0, 0, ")AKh")]) return et[vt2(265, "rzAF", w2)];
|
|
609
|
+
let yt2 = null;
|
|
610
|
+
et[Rt2(-99, -103, "HgtQ")] = new Promise((t3) => {
|
|
611
|
+
yt2 = t3;
|
|
640
612
|
});
|
|
641
|
-
let
|
|
642
|
-
const
|
|
613
|
+
let Et2, Ct2 = null;
|
|
614
|
+
const bt2 = async (t3, e3) => {
|
|
615
|
+
const n3 = 50;
|
|
643
616
|
try {
|
|
644
|
-
const
|
|
617
|
+
const h3 = ((t4) => {
|
|
645
618
|
let e4 = t4;
|
|
646
619
|
const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
|
|
647
620
|
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();
|
|
648
|
-
e4 = e4.substring(0, e4.length - 1), e4 =
|
|
621
|
+
e4 = e4.substring(0, e4.length - 1), e4 = j(e4, r4);
|
|
649
622
|
try {
|
|
650
623
|
e4.startsWith("{") || (e4 = "{" + e4);
|
|
651
624
|
const t5 = JSON.parse(e4), n5 = { licensee: t5.l, domains: t5.d, nodeId: t5.n, expiry: t5.e, developerCount: t5.dc, cpuCount: t5.cc, type: t5.t };
|
|
@@ -653,182 +626,217 @@ class it {
|
|
|
653
626
|
} catch (t5) {
|
|
654
627
|
throw new Error("Invalid license key.");
|
|
655
628
|
}
|
|
656
|
-
})(e3),
|
|
657
|
-
const e4 =
|
|
658
|
-
function
|
|
659
|
-
return
|
|
629
|
+
})(e3), d3 = await (async (t4) => {
|
|
630
|
+
const e4 = 143, n4 = 62, r4 = "HVvN", s4 = "neb1", i4 = "Mj)v", a4 = 558, l4 = 588, c4 = "s)L3", h4 = 28, d4 = 868, u4 = "Mv!*", g3 = "neb1", m3 = 11, f3 = "hSpx", p3 = 2, _3 = "M[wg", S3 = 51, w3 = 877, y3 = 1316, E3 = "rzAF", C3 = 472, b3 = 240, v3 = t4[T3(-56, -75, -19, -62, "#BKX")];
|
|
631
|
+
function x3(t5, e5, n5, r5, o2) {
|
|
632
|
+
return lt(o2 - b3, t5);
|
|
660
633
|
}
|
|
661
|
-
function
|
|
662
|
-
return
|
|
634
|
+
function I3(t5, e5, n5, r5, o2) {
|
|
635
|
+
return lt(t5 - -348, o2);
|
|
663
636
|
}
|
|
664
|
-
|
|
665
|
-
|
|
637
|
+
const R3 = t4[T3(e4, 111, n4, 39, r4)] ? new Date(t4[x3(s4, 0, 0, 0, 675)]) : null;
|
|
638
|
+
function A3(t5, e5, n5, r5, o2) {
|
|
639
|
+
return lt(r5 - C3, o2);
|
|
666
640
|
}
|
|
667
|
-
const
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
const t5 = await V[C3(-63, 0, 0, "NtGV")]();
|
|
671
|
-
t5 !== x3 && I3[E3("s[F0", 0, 0, d3)](A3(-640, -715, u3) + x3 + b3(g3, 0, 0, 132) + t5);
|
|
672
|
-
} else {
|
|
673
|
-
if (X()) return I3;
|
|
674
|
-
if (y3 && 0 !== y3[C3(-161, 0, 0, m3)]) {
|
|
675
|
-
let t5 = false;
|
|
676
|
-
const e5 = K();
|
|
677
|
-
for (let n5 = 0; !t5 && n5 < y3[R3(-195, -220, -231, -260, "&Iag")]; n5++) t5 = e5[A3(-643, -677, S3)](y3[n5]);
|
|
678
|
-
!t5 && I3[C3(-105, 0, 0, "IS&1")](R3(-278, -227, -263, -187, w3));
|
|
679
|
-
} else I3[b3(f3, 0, 0, 208)](E3(p3, 0, 0, _3));
|
|
641
|
+
const M3 = t4[A3(0, 0, 0, 843, "Mv!*")];
|
|
642
|
+
function N3(t5, e5, n5, r5, o2) {
|
|
643
|
+
return lt(o2 - 874, r5);
|
|
680
644
|
}
|
|
681
|
-
function
|
|
682
|
-
return
|
|
645
|
+
function T3(t5, e5, n5, r5, o2) {
|
|
646
|
+
return lt(n5 - -379, o2);
|
|
683
647
|
}
|
|
684
|
-
|
|
685
|
-
|
|
648
|
+
const k3 = [];
|
|
649
|
+
if (R3 ? isNaN(R3) ? k3[x3("3*fs", 0, 0, 0, l4)](N3(0, 0, 0, "qWi7", 1271)) : R3 < /* @__PURE__ */ new Date() && k3[N3(0, 0, 0, c4, 1297)](x3("rzAF", 0, 0, 0, 633) + R3[I3(h4, 0, 0, 0, "s)L3")]()) : k3[N3(0, 0, 0, i4, 1337)](x3("jmSO", 0, 0, 0, a4)), o[A3(0, 0, 0, 797, "8fis")]()) {
|
|
650
|
+
if (!M3) return k3[A3(0, 0, 0, 938, "cEgA")](A3(0, 0, 0, d4, u4)), k3;
|
|
651
|
+
const t5 = await $[T3(0, 0, 74, 0, g3)]();
|
|
652
|
+
t5 !== M3 && k3[A3(0, 0, 0, 938, "cEgA")](N3(0, 0, 0, "HVvN", 1277) + M3 + I3(m3, 0, 0, 0, f3) + t5);
|
|
653
|
+
} else {
|
|
654
|
+
if (Y()) return k3;
|
|
655
|
+
if (v3 && 0 !== v3[I3(-48, 0, 0, 0, "HWOk")]) {
|
|
656
|
+
let t5 = false;
|
|
657
|
+
const e5 = X();
|
|
658
|
+
for (let n5 = 0; !t5 && n5 < v3[A3(0, 0, 0, w3, "hPk0")]; n5++) t5 = e5[N3(0, 0, 0, "ZWTd", 1334)](v3[n5]);
|
|
659
|
+
!t5 && k3[N3(0, 0, 0, E3, y3)](N3(0, 0, 0, "tMI&", 1251));
|
|
660
|
+
} else k3[T3(0, 0, p3, 0, _3)](I3(S3, 0, 0, 0, ")AKh"));
|
|
686
661
|
}
|
|
687
|
-
return
|
|
688
|
-
})(
|
|
689
|
-
return
|
|
662
|
+
return k3;
|
|
663
|
+
})(h3), u3 = Q(h3, d3, t3);
|
|
664
|
+
return u3[a3 = 1065, l3 = "YF)Z", c3 = _t2, vt2(a3 - 150, l3, c3 - 865)]()[r3 = -St2, s3 = -418, i3 = "p0Zn", vt2(r3 - n3, i3, s3 - -630)] > 0 && (Et2 = u3), u3;
|
|
690
665
|
} catch (e4) {
|
|
691
|
-
|
|
692
|
-
const e5 =
|
|
693
|
-
function
|
|
694
|
-
return
|
|
695
|
-
}
|
|
696
|
-
function r4(t5, e6, n5, r5, o3) {
|
|
697
|
-
return J(e6 - -694, r5);
|
|
666
|
+
Et2 = ((t4) => {
|
|
667
|
+
const e5 = 985, n4 = "ZWTd", r4 = 518, o2 = 576;
|
|
668
|
+
function s4(t5, e6, n5, r5, o3) {
|
|
669
|
+
return lt(t5 - 105, e6);
|
|
698
670
|
}
|
|
699
|
-
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () =>
|
|
700
|
-
return [(
|
|
701
|
-
var
|
|
702
|
-
}, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[
|
|
703
|
-
var
|
|
671
|
+
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => s4(593, "04uS"), exceptions: () => {
|
|
672
|
+
return [(o3 = e5, i5 = n4, s4(o3 - r4, i5) + t4 + "'")];
|
|
673
|
+
var o3, i5;
|
|
674
|
+
}, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[s4(485, "p!oO")]({}), keyFrom: () => t4, getBuildVersion: z[s4(491, "uAMc")], getBuildDate: z[i4 = "Mj)v", a4 = 934, lt(a4 - o2, i4)] };
|
|
675
|
+
var i4, a4;
|
|
704
676
|
})(t3);
|
|
705
677
|
}
|
|
706
|
-
var
|
|
678
|
+
var r3, s3, i3, a3, l3, c3;
|
|
707
679
|
};
|
|
708
|
-
function
|
|
709
|
-
return
|
|
710
|
-
}
|
|
711
|
-
et[
|
|
712
|
-
let
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
680
|
+
function vt2(t3, e3, n3, r3, o2) {
|
|
681
|
+
return J(0, n3 - -566, e3);
|
|
682
|
+
}
|
|
683
|
+
et[wt2(-106, 0, 0, "UM2x")] && (Ct2 = await bt2(et[Rt2(-85, -112, "Is#Q")], et[vt2(0, y2, E2)]));
|
|
684
|
+
let xt2 = false;
|
|
685
|
+
function It2(t3, e3, n3, r3, o2) {
|
|
686
|
+
return tt(0, 0, e3, 0, o2 - -74);
|
|
687
|
+
}
|
|
688
|
+
function Rt2(t3, e3, n3, r3, o2) {
|
|
689
|
+
return J(0, e3 - -909, n3);
|
|
690
|
+
}
|
|
691
|
+
if (nt && (xt2 = true, Ct2 = Z(It2(950, C2, b2, v2, 869))), !Ct2) {
|
|
692
|
+
if (o[Rt2(0, -56, "ZLhQ")]()) {
|
|
693
|
+
if (!Ct2) {
|
|
694
|
+
const t3 = process[It2(0, x2, 0, 0, 941)], e3 = t3[Rt2(0, 29, I2)] || t3[vt2(0, "HWOk", R2)] || t3[At2(A2, 309, 212, 262, "M[wg")] || t3[It2(0, "qAN6", 0, 0, 862)];
|
|
695
|
+
e3 && (Ct2 = await bt2(At2(M2, N2, 427, T2, "neb1"), e3));
|
|
718
696
|
}
|
|
719
|
-
if (!
|
|
720
|
-
const t3 = await
|
|
721
|
-
t3 && (
|
|
697
|
+
if (!Ct2) {
|
|
698
|
+
const t3 = await $[vt2(0, "aiPs", 300)]();
|
|
699
|
+
t3 && (Ct2 = await bt2(At2(302, k2, 333, F2, "*YSv"), t3));
|
|
722
700
|
}
|
|
723
|
-
!
|
|
701
|
+
!Ct2 && (xt2 = true);
|
|
724
702
|
} else {
|
|
725
|
-
if (!
|
|
726
|
-
const t3 = await fetch("./" +
|
|
703
|
+
if (!Ct2) try {
|
|
704
|
+
const t3 = await fetch("./" + ot);
|
|
727
705
|
let e3 = null;
|
|
728
|
-
if (200 === t3[
|
|
729
|
-
const n3 = (await t3[
|
|
730
|
-
for (let t4 = 0; !e3 && t4 < n3[
|
|
731
|
-
const r3 = n3[t4][
|
|
732
|
-
r3[
|
|
706
|
+
if (200 === t3[It2(0, O2, 0, 0, 910)]) {
|
|
707
|
+
const n3 = (await t3[wt2(D2, 0, 0, "qWi7")]())[At2(L2, B2, 298, 386, "ZWTd")]("\n");
|
|
708
|
+
for (let t4 = 0; !e3 && t4 < n3[At2(P2, W2, 392, H2, V2)]; t4++) {
|
|
709
|
+
const r3 = n3[t4][It2(0, _2, 0, 0, U2)]();
|
|
710
|
+
r3[vt2(0, "^]xV", 273)]("#") || 0 === r3[wt2(-q2, 0, 0, "HWOk")] || (e3 = r3);
|
|
733
711
|
}
|
|
734
712
|
}
|
|
735
713
|
if (e3) {
|
|
736
|
-
const t4 =
|
|
737
|
-
|
|
714
|
+
const t4 = wt2(-K2, 0, 0, "neb1") + ot + "')";
|
|
715
|
+
Ct2 = await bt2(t4, e3);
|
|
738
716
|
}
|
|
739
717
|
} catch (t3) {
|
|
740
718
|
}
|
|
741
|
-
!
|
|
719
|
+
!Ct2 && Y() && (xt2 = true);
|
|
742
720
|
}
|
|
743
721
|
}
|
|
744
|
-
|
|
745
|
-
|
|
722
|
+
function At2(t3, e3, n3, r3, o2) {
|
|
723
|
+
return st(0, o2, 0, e3 - -70);
|
|
724
|
+
}
|
|
725
|
+
if (!Ct2 && xt2 && (Ct2 = Z(vt2(0, it2, at2))), !Ct2 && Et2 && (Ct2 = Et2), !Ct2 && (Ct2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [wt2(87, 0, 0, "5NzU")], isValidFor: (t3) => false, isValid: () => false, features: () => Object[Rt2(0, 10, "ZWTd")]({}), keyFrom: () => wt2(-107, 0, 0, "Z8yL"), getBuildVersion: z[vt2(0, "04uS", 335)], getBuildDate: z[At2(0, 413, 0, 0, "qWi7")] }), et[Rt2(0, -130, ct2)] = Ct2, yt2(Ct2), t2) {
|
|
726
|
+
if (!(et[wt2(ht2, 0, 0, "Mj)v")] && et[It2(0, "J$rE", 0, 0, 1012)]) && (xt2 || Ct2[Rt2(0, -36, "OmED")]()[At2(0, dt2, 0, 0, "^]xV")] > 0 || Ct2[At2(0, ut2, 0, 0, gt2)]()?.pb)) {
|
|
746
727
|
if (rt) return void setTimeout(() => {
|
|
747
728
|
var t3, e3;
|
|
748
|
-
this[t3 =
|
|
729
|
+
this[t3 = ft2, e3 = pt2, At2(0, e3 - -118, 0, 0, t3)](false, false);
|
|
749
730
|
}, 8e3);
|
|
750
|
-
await this[
|
|
731
|
+
await this[wt2(26, 0, 0, mt2)](false, false);
|
|
751
732
|
}
|
|
752
733
|
}
|
|
753
|
-
return et[
|
|
734
|
+
return et[wt2(-84, 0, 0, "HVvN")];
|
|
754
735
|
}
|
|
755
|
-
async [
|
|
756
|
-
const e2 =
|
|
757
|
-
function
|
|
758
|
-
return
|
|
736
|
+
async [K("04uS", 0, 0, 1185)](t2) {
|
|
737
|
+
const e2 = 1203, n2 = 910, r2 = 928, o2 = "hSpx", s2 = 1352, i2 = 1190, a2 = "cEgA", l2 = "HgtQ", c2 = 993, h2 = 1050, d2 = 960, u2 = 909, g2 = "S&Dn", m2 = 1104, f2 = "3*fs", p2 = 567;
|
|
738
|
+
function _2(t3, e3, n3, r3, o3) {
|
|
739
|
+
return tt(0, 0, e3, 0, r3 - 245);
|
|
740
|
+
}
|
|
741
|
+
function S2(t3, e3, n3, r3, o3) {
|
|
742
|
+
return q(0, n3, 0, t3 - p2);
|
|
759
743
|
}
|
|
744
|
+
et[S2(1261, 1286, "5NzU")] = true;
|
|
745
|
+
const w2 = await this[S2(e2, 0, "HWOk")]();
|
|
746
|
+
var y2, E2;
|
|
747
|
+
function C2(t3, e3, n3, r3, o3) {
|
|
748
|
+
return tt(0, 0, o3, 0, t3 - -94);
|
|
749
|
+
}
|
|
750
|
+
return await $[C2(911, n2, 882, r2, "yeev")](t2), !et[y2 = -421, E2 = "HWOk", q(0, E2, 0, y2 - -1014)] && (w2[_2(0, o2, 0, s2)]() || w2[S2(i2, 0, a2)]()[_2(0, l2, 0, 1211)] > 0) && await this[C2(c2, h2, d2, u2, g2)](t2), Promise[S2(m2, 0, f2)]();
|
|
751
|
+
}
|
|
752
|
+
async [q(0, "H]$W", 0, 534)](t2 = false, e2 = false, n2 = false) {
|
|
753
|
+
const r2 = "Mj)v", o2 = "(qWm", s2 = 752, i2 = 773, a2 = 485, l2 = "04uS", c2 = "3*fs", h2 = 792, d2 = "ZLhQ", u2 = 806;
|
|
760
754
|
function g2(t3, e3, n3, r3, o3) {
|
|
761
|
-
return
|
|
762
|
-
}
|
|
763
|
-
et[
|
|
764
|
-
const m2 = await this[
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
const
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
et[y2(-644, "s[F0", -648, -673)] = true, et[u2 = 718, g2 = "Y[pq", Z(u2 - -517, g2)] = true, await this[m2(s2, 369, i2, 445, a2)](t2);
|
|
792
|
-
const p2 = o[f2(0, 0, l2, 0, 1186)](), _2 = t2 || p2 ? console[m2(0, 425, 0, 0, c2)] : o[S2 = "NMaS", w2 = 261, Z(w2 - -812, S2)];
|
|
793
|
-
var S2, w2;
|
|
794
|
-
function y2(t3, e3, n3, r3, o2) {
|
|
795
|
-
return q(e3, 0, 0, 0, r3 - -1884);
|
|
796
|
-
}
|
|
797
|
-
p2 && _2(""), await this[f2(0, 0, h2, 0, d2)](t2, e2), _2("");
|
|
798
|
-
}
|
|
799
|
-
[q("tLvq", 0, 0, 0, 1175)]() {
|
|
800
|
-
return this[t2 = 1196, e2 = "gS)e", ot(t2 - 40, 0, 0, e2)]();
|
|
755
|
+
return q(0, n3, 0, e3 - -140);
|
|
756
|
+
}
|
|
757
|
+
et[f2(1374, 1368, "i[s!")] = true;
|
|
758
|
+
const m2 = await this[g2(0, 454, r2)]();
|
|
759
|
+
function f2(t3, e3, n3, r3, o3) {
|
|
760
|
+
return st(0, n3, 0, t3 - u2);
|
|
761
|
+
}
|
|
762
|
+
var p2, _2;
|
|
763
|
+
et[S2(o2, s2, i2)] || !(m2[g2(0, a2, l2)]() || m2[f2(1316, 0, c2)]()[S2("M[wg", 734, h2)] > 0) ? await $[S2(d2, 748)](m2, t2, e2, n2) : await this[p2 = -132, _2 = "8fis", tt(0, 0, _2, 0, p2 - -1057)](t2);
|
|
764
|
+
function S2(t3, e3, n3, r3, o3) {
|
|
765
|
+
return K(t3, 0, 0, e3 - -444);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
async [st(0, "^]xV", 0, 509)](t2, e2) {
|
|
769
|
+
const n2 = 629, r2 = "5NzU", s2 = 491, i2 = 556, a2 = 539, l2 = 840, c2 = "(qWm", h2 = "H]$W", d2 = 471, u2 = 507, g2 = "p!oO", m2 = 908, f2 = "uAMc";
|
|
770
|
+
function p2(t3, e3, n3, r3, o2) {
|
|
771
|
+
return K(n3, 0, 0, t3 - -297);
|
|
772
|
+
}
|
|
773
|
+
if (!t2 && (et[E2(481, 561, 508, 509, "hPk0")] || et[_2 = n2, S2 = r2, tt(0, 0, S2, 0, _2 - -442)])) return;
|
|
774
|
+
var _2, S2;
|
|
775
|
+
et[E2(s2, i2, a2, 499, "qAN6")] = true, et[p2(l2, 0, c2)] = true, await this[E2(465, 341, 403, 428, h2)](t2);
|
|
776
|
+
const w2 = o[p2(839, 0, "cEgA")](), y2 = t2 || w2 ? console[E2(464, d2, 477, u2, g2)] : o[p2(m2, 0, f2)];
|
|
777
|
+
function E2(t3, e3, n3, r3, o2) {
|
|
778
|
+
return tt(0, 0, o2, 0, n3 - -549);
|
|
779
|
+
}
|
|
780
|
+
var C2, b2;
|
|
781
|
+
w2 && y2(""), await this[C2 = 544, b2 = "uAMc", tt(0, 0, b2, 0, C2 - -517)](t2, e2), y2("");
|
|
782
|
+
}
|
|
783
|
+
[q(0, "J$rE", 0, 653)]() {
|
|
784
|
+
return this[t2 = 1330, e2 = "8fis", tt(0, 0, e2, 0, t2 - 237)]();
|
|
801
785
|
var t2, e2;
|
|
802
786
|
}
|
|
803
|
-
[
|
|
804
|
-
return this[e2 =
|
|
787
|
+
[q(0, "HVvN", 0, 525)](t2) {
|
|
788
|
+
return this[e2 = -354, n2 = "hPk0", K(n2, 0, 0, e2 - -1661)](true, t2);
|
|
805
789
|
var e2, n2;
|
|
806
790
|
}
|
|
807
|
-
[
|
|
808
|
-
const t2 =
|
|
809
|
-
return et[r2 =
|
|
791
|
+
[K("qWi7", 0, 0, 1213)]() {
|
|
792
|
+
const t2 = 315;
|
|
793
|
+
return et[r2 = 909, o2 = "jmSO", tt(0, 0, o2, 0, r2 - -113)] || et[e2 = 786, n2 = "OmED", st(0, n2, 0, e2 - t2)];
|
|
810
794
|
var e2, n2, r2, o2;
|
|
811
795
|
}
|
|
812
|
-
[
|
|
796
|
+
[st(0, "M[wg", 0, 424)](t2) {
|
|
813
797
|
rt = true;
|
|
814
798
|
}
|
|
815
|
-
async [
|
|
816
|
-
return this[t2 =
|
|
799
|
+
async [J(0, 868, "(qWm")]() {
|
|
800
|
+
return this[t2 = "hPk0", e2 = 654, tt(0, 0, t2, 0, e2 - -285)](true);
|
|
817
801
|
var t2, e2;
|
|
818
802
|
}
|
|
819
|
-
async [
|
|
820
|
-
const n2 =
|
|
821
|
-
|
|
822
|
-
|
|
803
|
+
async [K("neb1", 0, 0, 1263)](t2, e2) {
|
|
804
|
+
const n2 = await this[r2(-235, -147, "%@nI")]();
|
|
805
|
+
function r2(t3, e3, n3, r3, o2) {
|
|
806
|
+
return J(0, t3 - -1043, n3);
|
|
807
|
+
}
|
|
808
|
+
return await this[r2(-228, 0, "#BKX")](true, t2, e2), n2;
|
|
823
809
|
}
|
|
824
|
-
async [
|
|
825
|
-
|
|
826
|
-
|
|
810
|
+
async [J(0, 882, "D&1R")]() {
|
|
811
|
+
const t2 = 564, e2 = "uAMc";
|
|
812
|
+
var n2, r2;
|
|
813
|
+
return await $[n2 = t2, r2 = e2, K(r2, 0, 0, n2 - -579)]();
|
|
827
814
|
}
|
|
828
815
|
}
|
|
829
816
|
const at = new it();
|
|
830
|
-
function lt(t2, e2
|
|
831
|
-
|
|
817
|
+
function lt(t2, e2) {
|
|
818
|
+
const n2 = U();
|
|
819
|
+
return lt = function(e3, r2) {
|
|
820
|
+
let o2 = n2[e3 -= 290];
|
|
821
|
+
if (void 0 === lt.jthizG) {
|
|
822
|
+
const e4 = function(t3, e5) {
|
|
823
|
+
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
824
|
+
for (t3 = (function(t4) {
|
|
825
|
+
let e6 = "", n4 = "";
|
|
826
|
+
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);
|
|
827
|
+
for (let t5 = 0, r4 = e6.length; t5 < r4; t5++) n4 += "%" + ("00" + e6.charCodeAt(t5).toString(16)).slice(-2);
|
|
828
|
+
return decodeURIComponent(n4);
|
|
829
|
+
})(t3), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
|
|
830
|
+
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;
|
|
831
|
+
r3 = 0, s3 = 0;
|
|
832
|
+
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]);
|
|
833
|
+
return i3;
|
|
834
|
+
};
|
|
835
|
+
lt.jHvvGA = e4, t2 = arguments, lt.jthizG = true;
|
|
836
|
+
}
|
|
837
|
+
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
838
|
+
return i2 ? o2 = i2 : (void 0 === lt.gfmUsl && (lt.gfmUsl = true), o2 = lt.jHvvGA(o2, r2), t2[s2] = o2), o2;
|
|
839
|
+
}, lt(t2, e2);
|
|
832
840
|
}
|
|
833
841
|
const ct = (t2, e2) => {
|
|
834
842
|
const n2 = [];
|
|
@@ -1735,8 +1743,8 @@ function Ot(t2) {
|
|
|
1735
1743
|
return t2.formats[n2] || t2.formats[t2.defaultWidth];
|
|
1736
1744
|
};
|
|
1737
1745
|
}
|
|
1738
|
-
const Dt = { date: Ot({ formats: { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, defaultWidth: "full" }), time: Ot({ formats: { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" }, defaultWidth: "full" }), dateTime: Ot({ formats: { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, defaultWidth: "full" }) },
|
|
1739
|
-
function
|
|
1746
|
+
const Dt = { date: Ot({ formats: { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, defaultWidth: "full" }), time: Ot({ formats: { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" }, defaultWidth: "full" }), dateTime: Ot({ formats: { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, defaultWidth: "full" }) }, Lt = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" };
|
|
1747
|
+
function Bt(t2) {
|
|
1740
1748
|
return (e2, n2) => {
|
|
1741
1749
|
let r2;
|
|
1742
1750
|
if ("formatting" === (n2?.context ? String(n2.context) : "standalone") && t2.formattingValues) {
|
|
@@ -1770,7 +1778,7 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1770
1778
|
let r2;
|
|
1771
1779
|
const o2 = Ft[t2];
|
|
1772
1780
|
return r2 = "string" == typeof o2 ? o2 : 1 === e2 ? o2.one : o2.other.replace("{{count}}", e2.toString()), n2?.addSuffix ? n2.comparison && n2.comparison > 0 ? "in " + r2 : r2 + " ago" : r2;
|
|
1773
|
-
}, formatLong: Dt, formatRelative: (t2, e2, n2, r2) =>
|
|
1781
|
+
}, formatLong: Dt, formatRelative: (t2, e2, n2, r2) => Lt[t2], localize: { ordinalNumber: (t2, e2) => {
|
|
1774
1782
|
const n2 = Number(t2), r2 = n2 % 100;
|
|
1775
1783
|
if (r2 > 20 || r2 < 10) switch (r2 % 10) {
|
|
1776
1784
|
case 1:
|
|
@@ -1781,7 +1789,7 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1781
1789
|
return n2 + "rd";
|
|
1782
1790
|
}
|
|
1783
1791
|
return n2 + "th";
|
|
1784
|
-
}, era:
|
|
1792
|
+
}, era: Bt({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" }), quarter: Bt({ values: { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }, defaultWidth: "wide", argumentCallback: (t2) => t2 - 1 }), month: Bt({ values: { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }, defaultWidth: "wide" }), day: Bt({ values: { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }, defaultWidth: "wide" }), dayPeriod: Bt({ values: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, defaultWidth: "wide", formattingValues: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, defaultFormattingWidth: "wide" }) }, match: { ordinalNumber: (Pt = { matchPattern: /^(\d+)(th|st|nd|rd)?/i, parsePattern: /\d+/i, valueCallback: (t2) => parseInt(t2, 10) }, (t2, e2 = {}) => {
|
|
1785
1793
|
const n2 = t2.match(Pt.matchPattern);
|
|
1786
1794
|
if (!n2) return null;
|
|
1787
1795
|
const r2 = n2[0], o2 = t2.match(Pt.parsePattern);
|
|
@@ -1799,7 +1807,7 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1799
1807
|
default:
|
|
1800
1808
|
return e2.date({ width: "full" });
|
|
1801
1809
|
}
|
|
1802
|
-
},
|
|
1810
|
+
}, Vt = (t2, e2) => {
|
|
1803
1811
|
switch (t2) {
|
|
1804
1812
|
case "p":
|
|
1805
1813
|
return e2.time({ width: "short" });
|
|
@@ -1810,7 +1818,7 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1810
1818
|
default:
|
|
1811
1819
|
return e2.time({ width: "full" });
|
|
1812
1820
|
}
|
|
1813
|
-
},
|
|
1821
|
+
}, $t = { p: Vt, P: (t2, e2) => {
|
|
1814
1822
|
const n2 = t2.match(/(P+)(p+)?/) || [], r2 = n2[1], o2 = n2[2];
|
|
1815
1823
|
if (!o2) return Ht(t2, e2);
|
|
1816
1824
|
let s2;
|
|
@@ -1827,10 +1835,10 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1827
1835
|
default:
|
|
1828
1836
|
s2 = e2.dateTime({ width: "full" });
|
|
1829
1837
|
}
|
|
1830
|
-
return s2.replace("{{date}}", Ht(r2, e2)).replace("{{time}}",
|
|
1831
|
-
} },
|
|
1838
|
+
return s2.replace("{{date}}", Ht(r2, e2)).replace("{{time}}", Vt(o2, e2));
|
|
1839
|
+
} }, jt = /^D+$/, Gt = /^Y+$/, Ut = ["D", "DD", "YY", "YYYY"];
|
|
1832
1840
|
function qt(t2) {
|
|
1833
|
-
return
|
|
1841
|
+
return jt.test(t2);
|
|
1834
1842
|
}
|
|
1835
1843
|
function Jt(t2) {
|
|
1836
1844
|
return Gt.test(t2);
|
|
@@ -2041,8 +2049,8 @@ function xe(t2, e2, n2, r2) {
|
|
|
2041
2049
|
if (!e2) return t2 ? o2() : te(n2, r2?.in);
|
|
2042
2050
|
const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new re(r2?.in, n2)], d2 = e2.match(ye).map((t3) => {
|
|
2043
2051
|
const e3 = t3[0];
|
|
2044
|
-
if (e3 in
|
|
2045
|
-
return (0,
|
|
2052
|
+
if (e3 in $t) {
|
|
2053
|
+
return (0, $t[e3])(t3, i2.formatLong);
|
|
2046
2054
|
}
|
|
2047
2055
|
return t3;
|
|
2048
2056
|
}).join("").match(we), u2 = [];
|
|
@@ -2120,17 +2128,17 @@ function De(t2, e2) {
|
|
|
2120
2128
|
return n2.length >= e3 ? n2 : Me("0", e3 - n2.length) + n2;
|
|
2121
2129
|
})(Math.round(t2), e2);
|
|
2122
2130
|
}
|
|
2123
|
-
function
|
|
2131
|
+
function Le(t2, e2) {
|
|
2124
2132
|
return e2 = e2 || 0, t2.length >= 7 + e2 && 103 == (32 | t2.charCodeAt(e2)) && 101 == (32 | t2.charCodeAt(e2 + 1)) && 110 == (32 | t2.charCodeAt(e2 + 2)) && 101 == (32 | t2.charCodeAt(e2 + 3)) && 114 == (32 | t2.charCodeAt(e2 + 4)) && 97 == (32 | t2.charCodeAt(e2 + 5)) && 108 == (32 | t2.charCodeAt(e2 + 6));
|
|
2125
2133
|
}
|
|
2126
|
-
var
|
|
2127
|
-
function
|
|
2134
|
+
var Be = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], ze = [["J", "Jan", "January"], ["F", "Feb", "February"], ["M", "Mar", "March"], ["A", "Apr", "April"], ["M", "May", "May"], ["J", "Jun", "June"], ["J", "Jul", "July"], ["A", "Aug", "August"], ["S", "Sep", "September"], ["O", "Oct", "October"], ["N", "Nov", "November"], ["D", "Dec", "December"]], Pe = { 0: "General", 1: "0", 2: "0.00", 3: "#,##0", 4: "#,##0.00", 5: "$#,##0_);($#,##0)", 6: "$#,##0_);[Red]($#,##0)", 7: "$#,##0.00_);($#,##0.00)", 8: "$#,##0.00_);[Red]($#,##0.00)", 9: "0%", 10: "0.00%", 11: "0.00E+00", 12: "# ?/?", 13: "# ??/??", 14: "m/d/yy", 15: "d-mmm-yy", 16: "d-mmm", 17: "mmm-yy", 18: "h:mm AM/PM", 19: "h:mm:ss AM/PM", 20: "h:mm", 21: "h:mm:ss", 22: "m/d/yy h:mm", 23: "General", 24: "General", 25: "General", 26: "General", 27: "m/d/yyyy", 28: "m/d/yyyy", 29: "m/d/yyyy", 30: "m/d/yyyy", 32: "h:mm:ss", 31: "m/d/yyyy", 33: "h:mm:ss", 34: "h:mm:ss", 35: "h:mm:ss", 36: "m/d/yyyy", 37: "#,##0_);(#,##0)", 38: "#,##0_);[Red](#,##0)", 39: "#,##0.00_);(#,##0.00)", 40: "#,##0.00_);[Red](#,##0.00)", 41: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', 42: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', 44: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)', 45: "mm:ss", 46: "[h]:mm:ss", 47: "mmss.0", 48: "##0.0E+0", 49: "@", 50: "m/d/yyyy", 51: "m/d/yyyy", 52: "m/d/yyyy", 53: "m/d/yyyy", 54: "m/d/yyyy", 55: "m/d/yyyy", 56: '"上午/下午 "hh"時"mm"分"ss"秒 "' }, We = { 5: 37, 6: 38, 7: 39, 8: 40, 23: 0, 24: 0, 25: 0, 26: 0, 27: 14, 28: 14, 29: 14, 30: 14, 31: 14, 50: 14, 51: 14, 52: 14, 53: 14, 54: 14, 55: 14, 56: 14, 57: 14, 58: 14, 59: 1, 60: 2, 61: 3, 62: 4, 67: 9, 68: 10, 69: 12, 70: 13, 71: 14, 72: 14, 73: 15, 74: 16, 75: 17, 76: 20, 77: 21, 78: 22, 79: 45, 80: 46, 81: 47, 82: 0 }, He = { 5: '"$"#,##0_);\\("$"#,##0\\)', 63: '"$"#,##0_);\\("$"#,##0\\)', 6: '"$"#,##0_);[Red]\\("$"#,##0\\)', 64: '"$"#,##0_);[Red]\\("$"#,##0\\)', 7: '"$"#,##0.00_);\\("$"#,##0.00\\)', 65: '"$"#,##0.00_);\\("$"#,##0.00\\)', 8: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 66: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 41: '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', 42: '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', 44: '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)' };
|
|
2135
|
+
function Ve(t2, e2, n2) {
|
|
2128
2136
|
for (var r2 = t2 < 0 ? -1 : 1, o2 = t2 * r2, s2 = 0, i2 = 1, a2 = 0, l2 = 1, c2 = 0, h2 = 0, d2 = Math.floor(o2); c2 < e2 && (a2 = (d2 = Math.floor(o2)) * i2 + s2, h2 = d2 * c2 + l2, !(o2 - d2 < 5e-8)); ) o2 = 1 / (o2 - d2), s2 = i2, i2 = a2, l2 = c2, c2 = h2;
|
|
2129
2137
|
if (h2 > e2 && (c2 > e2 ? (h2 = l2, a2 = s2) : (h2 = c2, a2 = i2)), !n2) return [0, r2 * a2, h2];
|
|
2130
2138
|
var u2 = Math.floor(r2 * a2 / h2);
|
|
2131
2139
|
return [u2, r2 * a2 - u2 * h2, h2];
|
|
2132
2140
|
}
|
|
2133
|
-
function
|
|
2141
|
+
function $e(t2, e2, n2) {
|
|
2134
2142
|
if (t2 > 2958465 || t2 < 0) return null;
|
|
2135
2143
|
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 };
|
|
2136
2144
|
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;
|
|
@@ -2147,10 +2155,10 @@ function Ve(t2, e2, n2) {
|
|
|
2147
2155
|
}
|
|
2148
2156
|
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;
|
|
2149
2157
|
}
|
|
2150
|
-
var
|
|
2158
|
+
var je = new Date(1899, 11, 31, 0, 0, 0), Ge = je.getTime(), Ue = new Date(1900, 2, 1, 0, 0, 0);
|
|
2151
2159
|
function qe(t2, e2 = false) {
|
|
2152
2160
|
var n2 = t2.getTime();
|
|
2153
|
-
return e2 ? n2 -= 1262304e5 : t2 >= Ue && (n2 += 864e5), (n2 - (Ge + 6e4 * (t2.getTimezoneOffset() -
|
|
2161
|
+
return e2 ? n2 -= 1262304e5 : t2 >= Ue && (n2 += 864e5), (n2 - (Ge + 6e4 * (t2.getTimezoneOffset() - je.getTimezoneOffset()))) / 864e5;
|
|
2154
2162
|
}
|
|
2155
2163
|
function Je(t2) {
|
|
2156
2164
|
return -1 === t2.indexOf(".") ? t2 : t2.replace(/(?:\.0*|(\.\d*[1-9])0+)$/, "$1");
|
|
@@ -2219,9 +2227,9 @@ function Ye(t2, e2, n2, r2) {
|
|
|
2219
2227
|
o2 = n2.d, c2 = e2.length;
|
|
2220
2228
|
break;
|
|
2221
2229
|
case 3:
|
|
2222
|
-
return
|
|
2230
|
+
return Be[n2.q][0];
|
|
2223
2231
|
default:
|
|
2224
|
-
return
|
|
2232
|
+
return Be[n2.q][1];
|
|
2225
2233
|
}
|
|
2226
2234
|
break;
|
|
2227
2235
|
case 104:
|
|
@@ -2380,8 +2388,8 @@ function hn(t2, e2, n2) {
|
|
|
2380
2388
|
}));
|
|
2381
2389
|
if (e2.match(on)) return "(" + (o2 = hn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
|
|
2382
2390
|
var h2 = "";
|
|
2383
|
-
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 =
|
|
2384
|
-
if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 =
|
|
2391
|
+
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = Ve(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = gn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Fe(a2[2], i2)).length < s2[4].length && (h2 = sn(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
|
|
2392
|
+
if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 = Ve(l2, Math.pow(10, i2) - 1, true), c2 + hn(t2, e2.substring(0, s2.index + 1), a2[0]) + " " + (a2[1] ? ke(a2[1], i2) + s2[2] + "/" + s2[3] + Fe(a2[2], i2) : Me(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
|
|
2385
2393
|
if (s2 = e2.match(/^[#0?]+$/)) return o2 = De(n2, 0), e2.length <= o2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2386
2394
|
if (s2 = e2.match(/^([#0?]+)\.([#0]+)$/)) {
|
|
2387
2395
|
o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
|
|
@@ -2460,8 +2468,8 @@ function un(t2, e2, n2) {
|
|
|
2460
2468
|
}));
|
|
2461
2469
|
if (e2.match(on)) return "(" + (o2 = un(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
|
|
2462
2470
|
var h2 = "";
|
|
2463
|
-
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 =
|
|
2464
|
-
if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 =
|
|
2471
|
+
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = Ve(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = gn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Fe(a2[2], i2)).length < s2[4].length && (h2 = sn(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
|
|
2472
|
+
if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 = Ve(l2, Math.pow(10, i2) - 1, true))[0] || (a2[1] ? "" : "0")) + " " + (a2[1] ? ke(a2[1], i2) + s2[2] + "/" + s2[3] + Fe(a2[2], i2) : Me(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
|
|
2465
2473
|
if (s2 = e2.match(/^[#0?]+$/)) return o2 = "" + n2, e2.length <= o2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2466
2474
|
if (s2 = e2.match(/^([#0]+)\.([#0]+)$/)) {
|
|
2467
2475
|
o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
|
|
@@ -2507,7 +2515,7 @@ var fn = /\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;
|
|
|
2507
2515
|
function pn(t2) {
|
|
2508
2516
|
for (var e2 = 0, n2 = "", r2 = "", o2 = t2.length; e2 < o2; ) switch (n2 = t2.charAt(e2)) {
|
|
2509
2517
|
case "G":
|
|
2510
|
-
|
|
2518
|
+
Le(t2, e2) && (e2 += 6), e2++;
|
|
2511
2519
|
break;
|
|
2512
2520
|
case '"':
|
|
2513
2521
|
for (; 34 !== t2.charCodeAt(++e2) && e2 < t2.length; ) ;
|
|
@@ -2615,7 +2623,7 @@ function wn(t2, e2, n2) {
|
|
|
2615
2623
|
case "number":
|
|
2616
2624
|
null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : Pe)[t2]) && (r2 = n2.table && n2.table[We[t2]] || Pe[We[t2]]), null == r2 && (r2 = He[t2] || "General");
|
|
2617
2625
|
}
|
|
2618
|
-
if (
|
|
2626
|
+
if (Le(r2, 0)) return Xe(e2, n2);
|
|
2619
2627
|
Re(e2) && (e2 = qe(e2, n2.date1904));
|
|
2620
2628
|
var s2 = (function(t3, e3) {
|
|
2621
2629
|
var n3 = mn(t3), r3 = n3.length, o2 = n3[r3 - 1].indexOf("@");
|
|
@@ -2639,7 +2647,7 @@ function wn(t2, e2, n2) {
|
|
|
2639
2647
|
}
|
|
2640
2648
|
return [r3, s3];
|
|
2641
2649
|
})(r2, e2);
|
|
2642
|
-
if (
|
|
2650
|
+
if (Le(s2[1])) return Xe(e2, n2);
|
|
2643
2651
|
if (true === e2) e2 = "TRUE";
|
|
2644
2652
|
else if (false === e2) e2 = "FALSE";
|
|
2645
2653
|
else if ("" === e2 || null == e2) return "";
|
|
@@ -2648,7 +2656,7 @@ function wn(t2, e2, n2) {
|
|
|
2648
2656
|
let g2 = t3.length;
|
|
2649
2657
|
for (; c2 < g2; ) switch (h2 = t3.charAt(c2)) {
|
|
2650
2658
|
case "G":
|
|
2651
|
-
if (!
|
|
2659
|
+
if (!Le(t3, c2)) throw new Error("unrecognized character " + h2 + " in " + t3);
|
|
2652
2660
|
a2[a2.length] = { t: "G", v: "General" }, c2 += 7;
|
|
2653
2661
|
break;
|
|
2654
2662
|
case '"':
|
|
@@ -2665,7 +2673,7 @@ function wn(t2, e2, n2) {
|
|
|
2665
2673
|
case "B":
|
|
2666
2674
|
case "b":
|
|
2667
2675
|
if ("1" === t3.charAt(c2 + 1) || "2" === t3.charAt(c2 + 1)) {
|
|
2668
|
-
if (null == o2 && null == (o2 =
|
|
2676
|
+
if (null == o2 && null == (o2 = $e(e3, n3, "2" === t3.charAt(c2 + 1)))) return "";
|
|
2669
2677
|
a2[a2.length] = { t: "X", v: t3.substr(c2, 2) }, d2 = h2, c2 += 2;
|
|
2670
2678
|
break;
|
|
2671
2679
|
}
|
|
@@ -2684,7 +2692,7 @@ function wn(t2, e2, n2) {
|
|
|
2684
2692
|
case "e":
|
|
2685
2693
|
case "g":
|
|
2686
2694
|
if (e3 < 0) return "";
|
|
2687
|
-
if (null == o2 && null == (o2 =
|
|
2695
|
+
if (null == o2 && null == (o2 = $e(e3, n3))) return "";
|
|
2688
2696
|
for (l2 = h2; ++c2 < t3.length && t3.charAt(c2).toLowerCase() === h2; ) l2 += h2;
|
|
2689
2697
|
"m" === h2 && "h" === d2.toLowerCase() && (h2 = "M"), "h" === h2 && (h2 = u2), a2[a2.length] = { t: h2, v: l2 }, d2 = h2;
|
|
2690
2698
|
break;
|
|
@@ -2692,14 +2700,14 @@ function wn(t2, e2, n2) {
|
|
|
2692
2700
|
case "a":
|
|
2693
2701
|
case "上":
|
|
2694
2702
|
var p2 = { t: h2, v: h2 };
|
|
2695
|
-
if (null == o2 && (o2 =
|
|
2703
|
+
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 "";
|
|
2696
2704
|
a2[a2.length] = p2, d2 = h2;
|
|
2697
2705
|
break;
|
|
2698
2706
|
case "[":
|
|
2699
2707
|
for (l2 = h2; "]" !== t3.charAt(c2++) && c2 < t3.length; ) l2 += t3.charAt(c2);
|
|
2700
2708
|
if ("]" !== l2.slice(-1)) throw new Error('unterminated "[" block: |' + l2 + "|");
|
|
2701
2709
|
if (l2.match(fn)) {
|
|
2702
|
-
if (null == o2 && null == (o2 =
|
|
2710
|
+
if (null == o2 && null == (o2 = $e(e3, n3))) return "";
|
|
2703
2711
|
a2[a2.length] = { t: "Z", v: l2.toLowerCase() }, d2 = l2.charAt(1);
|
|
2704
2712
|
} else l2.indexOf("$") > -1 && (l2 = (l2.match(/\$([^-[\]]*)/) || [])[1] || "$", pn(t3) || (a2[a2.length] = { t: "t", v: l2 }));
|
|
2705
2713
|
break;
|
|
@@ -2862,7 +2870,7 @@ function yn(t2, e2) {
|
|
|
2862
2870
|
}
|
|
2863
2871
|
const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe, load_table: function(t2) {
|
|
2864
2872
|
for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && yn(t2[e2], e2);
|
|
2865
|
-
}, parse_date_code:
|
|
2873
|
+
}, parse_date_code: $e, is_date: pn, get_table: function() {
|
|
2866
2874
|
return En._table = Pe;
|
|
2867
2875
|
} }, Cn = "\\s*([-]?[0-9e]*[.]?[0-9]+)", bn = new RegExp(`^rgb\\(${Cn},${Cn},${Cn}\\)$`), vn = new RegExp(`^rgba\\(${Cn},${Cn},${Cn},${Cn}\\)$`), xn = new RegExp(`^lrgb\\(${Cn},${Cn},${Cn}\\)$`), In = new RegExp(`^lrgba\\(${Cn},${Cn},${Cn},${Cn}\\)$`), Rn = new RegExp(`^hsl\\(${Cn},${Cn},${Cn}\\)$`), An = new RegExp(`^hsla\\(${Cn},${Cn},${Cn},${Cn}\\)$`), Mn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Nn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Tn = new RegExp("^index(\\d+)$", "i"), kn = (t2, e2, n2) => [parseFloat(t2), parseFloat(e2), parseFloat(n2)], Fn = (t2, e2 = 255) => {
|
|
2868
2876
|
const n2 = [...t2];
|
|
@@ -2876,7 +2884,7 @@ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe,
|
|
|
2876
2884
|
const n2 = [...t2], r2 = e2 ? 1 : 255;
|
|
2877
2885
|
for (var o2 = 0; o2 < t2.length; o2++) n2[o2] = Math.max(0, Math.min(r2, t2[o2]));
|
|
2878
2886
|
return n2;
|
|
2879
|
-
},
|
|
2887
|
+
}, Ln = (t2) => Math.max(0, Math.min(1, t2)), Bn = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), zn = (t2) => {
|
|
2880
2888
|
const e2 = [...t2];
|
|
2881
2889
|
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Wn(t2[n2]);
|
|
2882
2890
|
return e2;
|
|
@@ -2884,12 +2892,12 @@ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe,
|
|
|
2884
2892
|
const e2 = [...t2];
|
|
2885
2893
|
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Hn(t2[n2]);
|
|
2886
2894
|
return e2;
|
|
2887
|
-
}, Wn = (t2) => t2 < 0.04045 ? t2 / 12.92 : Math.pow((t2 + 0.055) / 1.055, 2.4), Hn = (t2) => t2 < 31308e-7 ? 12.92 * t2 : 1.055 * Math.pow(t2, 1 / 2.4) - 0.055,
|
|
2895
|
+
}, Wn = (t2) => t2 < 0.04045 ? t2 / 12.92 : Math.pow((t2 + 0.055) / 1.055, 2.4), Hn = (t2) => t2 < 31308e-7 ? 12.92 * t2 : 1.055 * Math.pow(t2, 1 / 2.4) - 0.055, Vn = (t2) => {
|
|
2888
2896
|
let e2 = t2[0], n2 = t2[1], r2 = t2[2];
|
|
2889
2897
|
e2 %= 360, e2 /= 360, n2 /= 100, r2 /= 100;
|
|
2890
2898
|
let o2 = r2 < 0.5 ? r2 * (1 + n2) : r2 + n2 - n2 * r2, s2 = 2 * r2 - o2;
|
|
2891
|
-
return [Math.max(0,
|
|
2892
|
-
},
|
|
2899
|
+
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))];
|
|
2900
|
+
}, $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), jn = (t2) => {
|
|
2893
2901
|
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;
|
|
2894
2902
|
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);
|
|
2895
2903
|
const a2 = (s2 + o2) / 2;
|
|
@@ -2904,10 +2912,10 @@ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe,
|
|
|
2904
2912
|
return r2 = Dn(r2), r2;
|
|
2905
2913
|
})(t2, (t3, e3) => t3 * n2);
|
|
2906
2914
|
}, er = 2.55, nr = (t2, e2) => {
|
|
2907
|
-
const n2 =
|
|
2915
|
+
const n2 = jn(t2), r2 = n2[2], s2 = o.roundAccurately((i2 = r2, (a2 = e2) > 0 ? (i2 * er * (1 - a2) + (255 - 255 * (1 - a2))) / er : a2 < 0 ? i2 * er * (1 + a2) / er : i2), 3);
|
|
2908
2916
|
var i2, a2;
|
|
2909
2917
|
n2[2] = s2;
|
|
2910
|
-
let l2 =
|
|
2918
|
+
let l2 = Vn(n2);
|
|
2911
2919
|
return l2 = Dn(l2), l2;
|
|
2912
2920
|
}, rr = (t2, e2) => {
|
|
2913
2921
|
let n2 = zn(t2), r2 = e2 / 100;
|
|
@@ -2915,12 +2923,12 @@ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe,
|
|
|
2915
2923
|
let s2 = Pn(n2);
|
|
2916
2924
|
return s2 = Dn(s2), s2;
|
|
2917
2925
|
}, or = (t2, e2, n2) => {
|
|
2918
|
-
let r2 =
|
|
2919
|
-
t2 === Gn && (o2 =
|
|
2920
|
-
let s2 =
|
|
2926
|
+
let r2 = jn(e2), o2 = n2 / 1;
|
|
2927
|
+
t2 === Gn && (o2 = Bn(n2)), r2[t2] = o2;
|
|
2928
|
+
let s2 = Vn(r2);
|
|
2921
2929
|
return s2 = Dn(s2), s2;
|
|
2922
2930
|
}, sr = (t2, e2, n2) => {
|
|
2923
|
-
let r2 =
|
|
2931
|
+
let r2 = jn(e2);
|
|
2924
2932
|
if (t2 === Gn) {
|
|
2925
2933
|
let t3 = n2 / 360;
|
|
2926
2934
|
r2[Gn] = 360 * (r2[Gn] / 360 + t3), r2[Gn] %= 360, r2[Gn] < 0 && (r2[Gn] -= 360);
|
|
@@ -2928,12 +2936,12 @@ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe,
|
|
|
2928
2936
|
let e3 = n2 / 0.1;
|
|
2929
2937
|
r2[t2] = 0.1 * (r2[t2] / 0.1 + e3);
|
|
2930
2938
|
}
|
|
2931
|
-
let o2 =
|
|
2939
|
+
let o2 = Vn(r2);
|
|
2932
2940
|
return o2 = Dn(o2), o2;
|
|
2933
2941
|
}, ir = (t2, e2, n2) => {
|
|
2934
|
-
let r2 =
|
|
2935
|
-
r2[t2] = r2[t2] * o2, t2 === Gn && (r2[Gn] =
|
|
2936
|
-
let s2 =
|
|
2942
|
+
let r2 = jn(e2), o2 = n2 / 100;
|
|
2943
|
+
r2[t2] = r2[t2] * o2, t2 === Gn && (r2[Gn] = Bn(r2[Gn]));
|
|
2944
|
+
let s2 = Vn(r2);
|
|
2937
2945
|
return s2 = Dn(s2), s2;
|
|
2938
2946
|
}, ar = (t2, e2, n2, r2) => {
|
|
2939
2947
|
let o2 = zn(e2), s2 = n2 / 100;
|
|
@@ -2946,9 +2954,9 @@ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe,
|
|
|
2946
2954
|
let r2 = Pn(e2);
|
|
2947
2955
|
return r2 = Dn(r2), r2;
|
|
2948
2956
|
}, cr = (t2) => {
|
|
2949
|
-
let e2 =
|
|
2957
|
+
let e2 = jn(t2);
|
|
2950
2958
|
e2[Gn] += 180, e2[Gn] %= 360, e2[Gn] < 0 && (e2[Gn] -= 360);
|
|
2951
|
-
let n2 =
|
|
2959
|
+
let n2 = Vn(e2);
|
|
2952
2960
|
return n2 = Dn(n2), n2;
|
|
2953
2961
|
}, hr = (t2, e2 = true) => {
|
|
2954
2962
|
let n2 = e2 ? zn(t2) : [...t2];
|
|
@@ -3098,18 +3106,18 @@ const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3098
3106
|
void 0 !== n2 && (e2 = br(n2).toString());
|
|
3099
3107
|
}
|
|
3100
3108
|
return e2;
|
|
3101
|
-
}, Dr = "=",
|
|
3102
|
-
Hr.set(Dr, (t2, e2) => t2 === e2), Hr.set(
|
|
3103
|
-
const
|
|
3109
|
+
}, Dr = "=", Lr = "<>", Br = ">", zr = "<", Pr = ">=", Wr = "<=", Hr = /* @__PURE__ */ new Map();
|
|
3110
|
+
Hr.set(Dr, (t2, e2) => t2 === e2), Hr.set(Lr, (t2, e2) => t2 !== e2), Hr.set(Br, (t2, e2) => t2 > e2), Hr.set(zr, (t2, e2) => t2 < e2), Hr.set(Pr, (t2, e2) => t2 >= e2), Hr.set(Wr, (t2, e2) => t2 <= e2);
|
|
3111
|
+
const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, jr = /\[(.*?)\]/g, Gr = (t2, e2) => {
|
|
3104
3112
|
const n2 = { color: null, condition: null };
|
|
3105
|
-
let r2 = null, o2 = new RegExp(
|
|
3113
|
+
let r2 = null, o2 = new RegExp(jr);
|
|
3106
3114
|
for (; null !== (r2 = o2.exec(t2)); ) {
|
|
3107
|
-
let e3 = false, o3 =
|
|
3115
|
+
let e3 = false, o3 = Vr.exec(r2[1]);
|
|
3108
3116
|
if (o3) {
|
|
3109
3117
|
if (e3 = true, n2.color) throw new Error(`format error, two colors specified: '${t2}' and '${n2.color}'.`);
|
|
3110
3118
|
n2.color = Or(o3[1]), n2.color || console.warn("Unable to parse LegacyColor", o3[1]);
|
|
3111
3119
|
}
|
|
3112
|
-
let s2 =
|
|
3120
|
+
let s2 = $r.exec(r2[1]);
|
|
3113
3121
|
if (s2) {
|
|
3114
3122
|
if (e3 = true, n2.condition) throw new Error(`Format error, two conditions specified: ' ${t2}'`);
|
|
3115
3123
|
n2.condition = { op: s2[1], comp: parseFloat(s2[2]) };
|
|
@@ -3124,7 +3132,7 @@ const jr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr =
|
|
|
3124
3132
|
const n3 = t3.split(";");
|
|
3125
3133
|
for (let t4 = 0; t4 < n3.length; t4++) {
|
|
3126
3134
|
let r3 = null;
|
|
3127
|
-
2 === n3.length ? 0 === t4 ? r3 = { op: Pr, comp: 0 } : 1 === t4 && (r3 = { op: zr, comp: 0 }) : 3 !== n3.length && 4 !== n3.length || (r3 = 0 === t4 ? { op:
|
|
3135
|
+
2 === n3.length ? 0 === t4 ? r3 = { op: Pr, comp: 0 } : 1 === t4 && (r3 = { op: zr, comp: 0 }) : 3 !== n3.length && 4 !== n3.length || (r3 = 0 === t4 ? { op: Br, comp: 0 } : 1 === t4 ? { op: zr, comp: 0 } : 2 === t4 ? { op: Dr, comp: 0 } : null);
|
|
3128
3136
|
const o2 = n3[t4], s2 = Gr(o2, r3);
|
|
3129
3137
|
e3.push({ format: o2, colorAndCondition: s2 });
|
|
3130
3138
|
}
|
|
@@ -3334,33 +3342,33 @@ const Co = (t2, e2, n2 = 1e3) => {
|
|
|
3334
3342
|
return false;
|
|
3335
3343
|
}
|
|
3336
3344
|
return ("http:" === e2.protocol || "https:" === e2.protocol) && Mo.test(t2);
|
|
3337
|
-
},
|
|
3345
|
+
}, Lo = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Bo = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Lo.test(t2), zo = (t2) => ((t2 >= 26 ? zo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), Po = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx: To, camelToSnake: (t2) => t2 ? t2.replace(/[A-Z]/g, (t3) => `_${t3.toLowerCase()}`) : t2, capitalize: bo, clampString: Io, countDecimals: Ro, findValidTextValue: Co, getBaseName: (t2, e2 = false) => {
|
|
3338
3346
|
if (!t2 || "string" != typeof t2) return "";
|
|
3339
3347
|
const n2 = t2.split(/[\\/]/).pop() || "";
|
|
3340
3348
|
if ("" === n2) return "";
|
|
3341
3349
|
const r2 = vo(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
|
|
3342
3350
|
return e2 ? bo(o2, true) : o2;
|
|
3343
|
-
}, getFileNameExtension: vo, isQuoted: (t2) => t2 && t2.length > 1 && Ao.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail:
|
|
3351
|
+
}, getFileNameExtension: vo, isQuoted: (t2) => t2 && t2.length > 1 && Ao.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Bo, isValidHttpUrl: Do, numberToAlphabet: zo, quote: Fo, snakeToCamel: xo, splitUnquoted: Oo, unquote: ko }, Symbol.toStringTag, { value: "Module" })), Wo = (t2, e2, n2, r2 = null) => {
|
|
3344
3352
|
const o2 = (e2 || 11 * Ko.getDeviceScale()) / Ko.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
|
|
3345
3353
|
const a2 = i2 * (0.55 * o2) - (t2.match(/[il.,;!|]/g) || []).length * o2 * 0.15 + (t2.match(/[mwMW]/g) || []).length * o2 * 0.1 + (i2 > 0 ? (i2 - 1) * s2 : 0), l2 = Math.ceil(1.2 * o2), c2 = Math.ceil(0.8 * o2), h2 = Math.ceil(0.2 * o2), d2 = Math.ceil(0.45 * o2), u2 = Math.ceil(1.1 * o2), g2 = Math.max(1, Math.ceil(0.08 * o2));
|
|
3346
3354
|
return { width: a2, lineHeight: l2, baseline: c2, lineGap: h2, strikePosition: d2, underlinePosition: u2, strikeThickness: g2, underlineThickness: g2, actualBoundingBoxLeft: 0, actualBoundingBoxRight: a2, actualBoundingBoxAscent: c2, actualBoundingBoxDescent: l2 - c2, fontBoundingBoxAscent: c2, fontBoundingBoxDescent: l2 - c2, emHeightAscent: c2, emHeightDescent: l2 - c2, hangingBaseline: 0.8 * c2, alphabeticBaseline: c2, ideographicBaseline: l2 };
|
|
3347
3355
|
}, Ho = () => Wo;
|
|
3348
|
-
let
|
|
3349
|
-
const
|
|
3350
|
-
const o2 = e2, s2 =
|
|
3356
|
+
let Vo = "./packages/sdk/src/__tests__/fonts/";
|
|
3357
|
+
const $o = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), Go = (t2, e2, n2, r2 = null) => {
|
|
3358
|
+
const o2 = e2, s2 = Vo + n2.toLowerCase() + ".ttf";
|
|
3351
3359
|
let i2 = null;
|
|
3352
3360
|
try {
|
|
3353
3361
|
i2 = R(s2);
|
|
3354
3362
|
} catch (t3) {
|
|
3355
3363
|
}
|
|
3356
3364
|
if (!i2) try {
|
|
3357
|
-
i2 = R(
|
|
3365
|
+
i2 = R(Vo + "calibri.ttf");
|
|
3358
3366
|
} catch (t3) {
|
|
3359
3367
|
}
|
|
3360
|
-
if (!i2) return
|
|
3368
|
+
if (!i2) return jo.has(s2) || jo.add(s2), Ho().call(null, t2, e2, n2, r2);
|
|
3361
3369
|
const a2 = `${s2}${t2}${o2}`;
|
|
3362
|
-
let l2 =
|
|
3363
|
-
l2 || (l2 = i2.layout(t2), t2.length < 2 &&
|
|
3370
|
+
let l2 = $o.get(a2);
|
|
3371
|
+
l2 || (l2 = i2.layout(t2), t2.length < 2 && $o.set(a2, l2));
|
|
3364
3372
|
const c2 = o2;
|
|
3365
3373
|
let h2 = Math.max(0, l2.bbox.width / i2.unitsPerEm * c2), d2 = i2.ascent || 0;
|
|
3366
3374
|
const u2 = d2 - (i2.descent || 0);
|
|
@@ -3953,7 +3961,7 @@ const Rs = (t2, e2 = false) => {
|
|
|
3953
3961
|
if (t3 && t3.break) return t3;
|
|
3954
3962
|
}
|
|
3955
3963
|
}, ks = new RegExp("([0-9]+)$");
|
|
3956
|
-
var Fs, Os, Ds,
|
|
3964
|
+
var Fs, Os, Ds, Ls, Bs, zs;
|
|
3957
3965
|
((t2) => {
|
|
3958
3966
|
t2.Date = class {
|
|
3959
3967
|
constructor(t3) {
|
|
@@ -4224,8 +4232,8 @@ var Fs, Os, Ds, Bs, Ls, zs;
|
|
|
4224
4232
|
for (let t4 = s3; t4 < n3; t4++) o3.push(i3(t4));
|
|
4225
4233
|
return o3;
|
|
4226
4234
|
};
|
|
4227
|
-
})(Fs || (Fs = {})), Os || (Os = {}), (
|
|
4228
|
-
const Ps = [[4290032820, 1,
|
|
4235
|
+
})(Fs || (Fs = {})), Os || (Os = {}), (Ls = Ds || (Ds = {})).Type = { None: "none", Solid: "solid", Gradient: "gradient", Pattern: "pattern", Image: "pattern", Background: "background", Group: "group", Custom: "custom" }, Ls.GradientType = { Linear: "linear", Path: "path", Circular: "circular", Rect: "rect" }, Ls.TileMirror = { None: "none", Vertical: "v", Horizontal: "h", Both: "b" }, Ls.BuiltInSheetPattern = { None: "none", Solid: "solid", DarkGray: "darkGray", MediumGray: "mediumGray", LightGray: "lightGray", Gray0625: "gray0625", Gray125: "gray125", DarkHorizontal: "darkHorizontal", DarkVertical: "darkVertical", DarkDown: "darkDown", DarkUp: "darkUp", DarkGrid: "darkGrid", DarkTrellis: "darkTrellis", LightHorizontal: "lightHorizontal", LightVertical: "lightVertical", LightDown: "lightDown", LightUp: "lightUp", LightGrid: "lightGrid", LightTrellis: "lightTrellis", Custom: "custom" }, (zs = Bs || (Bs = {})).AdjustmentType = { Alpha: "alpha", AlphaOff: "alphaOff", AlphaMod: "alphaMod", Hue: "hue", Sat: "sat", Lum: "lum", HueOff: "hueOff", SatOff: "satOff", LumOff: "lumOff", HueMod: "hueMod", SatMod: "satMod", LumMod: "lumMod", Red: "red", Green: "green", Blue: "blue", RedOff: "redOff", GreenOff: "greenOff", BlueOff: "blueOff", RedMod: "redMod", GreenMod: "greenMod", BlueMod: "blueMod", Shade: "shade", Tint: "tint", ETint: "eTint", Gray: "gray", Comp: "comp", Inv: "inv", Gamma: "gamma", InvGamma: "invGamma" }, zs.Named = { ActiveBorder: "activeBorder", ActiveCaption: "activeCaption", CaptionText: "captionText", AppWorkspace: "appWorkspace", BtnFace: "btnFace", BtnShadow: "btnShadow", DkShadow3d: "3dDkShadow", BtnHighlight: "btnHighlight", Light3d: "3dLight", BtnText: "btnText", Background: "background", GrayText: "grayText", Highlight: "highlight", HighlightText: "highlightText", HotLight: "hotLight", InactiveBorder: "inactiveBorder", InactiveCaption: "inactiveCaption", InactiveCaptionText: "inactiveCaptionText", InfoBk: "infoBk", InfoText: "infoText", Menu: "menu", MenuText: "menuText", ScrollBar: "scrollBar", Window: "window", WindowFrame: "windowFrame", WindowText: "windowText", Transparent: "transparent", AliceBlue: "aliceBlue", AntiqueWhite: "antiqueWhite", Aqua: "aqua", Aquamarine: "aquamarine", Azure: "azure", Beige: "beige", Bisque: "bisque", Black: "black", BlanchedAlmond: "blanchedAlmond", Blue: "blue", BlueViolet: "blueViolet", Brown: "brown", BurlyWood: "burlyWood", CadetBlue: "cadetBlue", Chartreuse: "chartreuse", Chocolate: "chocolate", Coral: "coral", CornflowerBlue: "cornflowerBlue", Cornsilk: "cornsilk", Crimson: "crimson", Cyan: "cyan", DkBlue: "dkBlue", DkCyan: "dkCyan", DkGoldenrod: "dkGoldenrod", DkGray: "dkGray", DkGreen: "dkGreen", DkKhaki: "dkKhaki", DkMagenta: "dkMagenta", DkOliveGreen: "dkOliveGreen", DkOrange: "dkOrange", DkOrchid: "dkOrchid", DkRed: "dkRed", DkSalmon: "dkSalmon", DkSeaGreen: "dkSeaGreen", DkSlateBlue: "dkSlateBlue", DkSlateGray: "dkSlateGray", DkTurquoise: "dkTurquoise", DkViolet: "dkViolet", DeepPink: "deepPink", DeepSkyBlue: "deepSkyBlue", DimGray: "dimGray", DodgerBlue: "dodgerBlue", Firebrick: "firebrick", FloralWhite: "floralWhite", ForestGreen: "forestGreen", Fuchsia: "fuchsia", Gainsboro: "gainsboro", GhostWhite: "ghostWhite", Gold: "gold", Goldenrod: "goldenrod", Gray: "gray", Green: "green", GreenYellow: "greenYellow", Honeydew: "honeydew", HotPink: "hotPink", IndianRed: "indianRed", Indigo: "indigo", Ivory: "ivory", Khaki: "khaki", Lavender: "lavender", LavenderBlush: "lavenderBlush", LawnGreen: "lawnGreen", LemonChiffon: "lemonChiffon", LtBlue: "ltBlue", LtCoral: "ltCoral", LtCyan: "ltCyan", LtGoldenrodYellow: "ltGoldenrodYellow", LtGray: "ltGray", LtGreen: "ltGreen", LtPink: "ltPink", LtSalmon: "ltSalmon", LtSeaGreen: "ltSeaGreen", LtSkyBlue: "ltSkyBlue", LtSlateGray: "ltSlateGray", LtSteelBlue: "ltSteelBlue", LtYellow: "ltYellow", Lime: "lime", LimeGreen: "limeGreen", Linen: "linen", Magenta: "magenta", Maroon: "maroon", MedAquamarine: "medAquamarine", MedBlue: "medBlue", MedOrchid: "medOrchid", MedPurple: "medPurple", MedSeaGreen: "medSeaGreen", MedSlateBlue: "medSlateBlue", MedSpringGreen: "medSpringGreen", MedTurquoise: "medTurquoise", MedVioletRed: "medVioletRed", MidnightBlue: "midnightBlue", MintCream: "mintCream", MistyRose: "mistyRose", Moccasin: "moccasin", NavajoWhite: "navajoWhite", Navy: "navy", OldLace: "oldLace", Olive: "olive", OliveDrab: "oliveDrab", Orange: "orange", OrangeRed: "orangeRed", Orchid: "orchid", PaleGoldenrod: "paleGoldenrod", PaleGreen: "paleGreen", PaleTurquoise: "paleTurquoise", PaleVioletRed: "paleVioletRed", PapayaWhip: "papayaWhip", PeachPuff: "peachPuff", Peru: "peru", Pink: "pink", Plum: "plum", PowderBlue: "powderBlue", Purple: "purple", Red: "red", RosyBrown: "rosyBrown", RoyalBlue: "royalBlue", SaddleBrown: "saddleBrown", Salmon: "salmon", SandyBrown: "sandyBrown", SeaGreen: "seaGreen", SeaShell: "seaShell", Sienna: "sienna", Silver: "silver", SkyBlue: "skyBlue", SlateBlue: "slateBlue", SlateGray: "slateGray", Snow: "snow", SpringGreen: "springGreen", SteelBlue: "steelBlue", Tan: "tan", Teal: "teal", Thistle: "thistle", Tomato: "tomato", Turquoise: "turquoise", Violet: "violet", Wheat: "wheat", White: "white", WhiteSmoke: "whiteSmoke", Yellow: "yellow", YellowGreen: "yellowGreen", ButtonFace: "buttonFace", ButtonHighlight: "buttonHighlight", ButtonShadow: "buttonShadow", GradientActiveCaption: "gradientActiveCaption", GradientInactiveCaption: "gradientInactiveCaption", MenuBar: "menuBar", MenuHighlight: "menuHighlight" }, zs.Scheme = { Bg1: "bg1", Bg2: "bg2", Tx1: "tx1", Tx2: "tx2", Accent1: "accent1", Accent2: "accent2", Accent3: "accent3", Accent4: "accent4", Accent5: "accent5", Accent6: "accent6", Hlink: "hlink", FolHlink: "folHlink" }, zs.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
|
|
4236
|
+
const Ps = [[4290032820, 1, Bs.Named.ActiveBorder, true], [4288263377, 2, Bs.Named.ActiveCaption, true], [4278190080, 3, Bs.Named.CaptionText, true], [4289440683, 4, Bs.Named.AppWorkspace, true], [4293980400, 5, Bs.Named.BtnFace, true], [4285098345, 6, Bs.Named.BtnShadow, true], [4278190080, 7, Bs.Named.DkShadow3d, true], [4293125091, 8, Bs.Named.BtnHighlight, true], [4293125091, 9, Bs.Named.Light3d, true], [4278190080, 10, Bs.Named.BtnText, true], [4278190080, 11, Bs.Named.Background, true], [4285361517, 12, Bs.Named.GrayText, true], [4281571839, 13, Bs.Named.Highlight, true], [4294967295, 14, Bs.Named.HighlightText, true], [4278216396, 15, Bs.Named.HotLight, true], [4294244348, 16, Bs.Named.InactiveBorder, true], [4290760155, 17, Bs.Named.InactiveCaption, true], [4278190080, 18, Bs.Named.InactiveCaptionText, true], [4294967265, 19, Bs.Named.InfoBk, true], [4278190080, 20, Bs.Named.InfoText, true], [4293980400, 21, Bs.Named.Menu, true], [4278190080, 22, Bs.Named.MenuText, true], [4291348680, 23, Bs.Named.ScrollBar, true], [4294967295, 24, Bs.Named.Window, true], [4284769380, 25, Bs.Named.WindowFrame, true], [4278190080, 26, Bs.Named.WindowText, true], [16777215, 27, Bs.Named.Transparent], [4293982463, 28, Bs.Named.AliceBlue], [4294634455, 29, Bs.Named.AntiqueWhite], [4278255615, 30, Bs.Named.Aqua], [4286578644, 31, Bs.Named.Aquamarine], [4293984255, 32, Bs.Named.Azure], [4294309340, 33, Bs.Named.Beige], [4294960324, 34, Bs.Named.Bisque], [4278190080, 35, Bs.Named.Black], [4294962125, 36, Bs.Named.BlanchedAlmond], [4278190335, 37, Bs.Named.Blue], [4287245282, 38, Bs.Named.BlueViolet], [4289014314, 39, Bs.Named.Brown], [4292786311, 40, Bs.Named.BurlyWood], [4284456608, 41, Bs.Named.CadetBlue], [4286578432, 42, Bs.Named.Chartreuse], [4291979550, 43, Bs.Named.Chocolate], [4294934352, 44, Bs.Named.Coral], [4284782061, 45, Bs.Named.CornflowerBlue], [4294965468, 46, Bs.Named.Cornsilk], [4292613180, 47, Bs.Named.Crimson], [4278255615, 48, Bs.Named.Cyan], [4278190219, 49, Bs.Named.DkBlue], [4278225803, 50, Bs.Named.DkCyan], [4290283019, 51, Bs.Named.DkGoldenrod], [4289309097, 52, Bs.Named.DkGray], [4278215680, 53, Bs.Named.DkGreen], [4290623339, 54, Bs.Named.DkKhaki], [4287299723, 55, Bs.Named.DkMagenta], [4283788079, 56, Bs.Named.DkOliveGreen], [4294937600, 57, Bs.Named.DkOrange], [4288230092, 58, Bs.Named.DkOrchid], [4287299584, 59, Bs.Named.DkRed], [4293498490, 60, Bs.Named.DkSalmon], [4287609995, 61, Bs.Named.DkSeaGreen], [4282924427, 62, Bs.Named.DkSlateBlue], [4281290575, 63, Bs.Named.DkSlateGray], [4278243025, 64, Bs.Named.DkTurquoise], [4287889619, 65, Bs.Named.DkViolet], [4294907027, 66, Bs.Named.DeepPink], [4278239231, 67, Bs.Named.DeepSkyBlue], [4285098345, 68, Bs.Named.DimGray], [4280193279, 69, Bs.Named.DodgerBlue], [4289864226, 70, Bs.Named.Firebrick], [4294966e3, 71, Bs.Named.FloralWhite], [4280453922, 72, Bs.Named.ForestGreen], [4294902015, 73, Bs.Named.Fuchsia], [4292664540, 74, Bs.Named.Gainsboro], [4294506751, 75, Bs.Named.GhostWhite], [4294956800, 76, Bs.Named.Gold], [4292519200, 77, Bs.Named.Goldenrod], [4286611584, 78, Bs.Named.Gray], [4278222848, 79, Bs.Named.Green], [4289593135, 80, Bs.Named.GreenYellow], [4293984240, 81, Bs.Named.Honeydew], [4294928820, 82, Bs.Named.HotPink], [4291648604, 83, Bs.Named.IndianRed], [4283105410, 84, Bs.Named.Indigo], [4294967280, 85, Bs.Named.Ivory], [4293977740, 86, Bs.Named.Khaki], [4293322490, 87, Bs.Named.Lavender], [4294963445, 88, Bs.Named.LavenderBlush], [4286381056, 89, Bs.Named.LawnGreen], [4294965965, 90, Bs.Named.LemonChiffon], [4289583334, 91, Bs.Named.LtBlue], [4293951616, 92, Bs.Named.LtCoral], [4292935679, 93, Bs.Named.LtCyan], [4294638200, 94, Bs.Named.LtGoldenrodYellow], [4292072403, 95, Bs.Named.LtGray], [4287688336, 96, Bs.Named.LtGreen], [4294948545, 97, Bs.Named.LtPink], [4294942842, 98, Bs.Named.LtSalmon], [4280332970, 99, Bs.Named.LtSeaGreen], [4287090426, 100, Bs.Named.LtSkyBlue], [4286023833, 101, Bs.Named.LtSlateGray], [4289774814, 102, Bs.Named.LtSteelBlue], [4294967264, 103, Bs.Named.LtYellow], [4278255360, 104, Bs.Named.Lime], [4281519410, 105, Bs.Named.LimeGreen], [4294635750, 106, Bs.Named.Linen], [4294902015, 107, Bs.Named.Magenta], [4286578688, 108, Bs.Named.Maroon], [4284927402, 109, Bs.Named.MedAquamarine], [4278190285, 110, Bs.Named.MedBlue], [4290401747, 111, Bs.Named.MedOrchid], [4287852763, 112, Bs.Named.MedPurple], [4282168177, 113, Bs.Named.MedSeaGreen], [4286277870, 114, Bs.Named.MedSlateBlue], [4278254234, 115, Bs.Named.MedSpringGreen], [4282962380, 116, Bs.Named.MedTurquoise], [4291237253, 117, Bs.Named.MedVioletRed], [4279834992, 118, Bs.Named.MidnightBlue], [4294311930, 119, Bs.Named.MintCream], [4294960353, 120, Bs.Named.MistyRose], [4294960309, 121, Bs.Named.Moccasin], [4294958765, 122, Bs.Named.NavajoWhite], [4278190208, 123, Bs.Named.Navy], [4294833638, 124, Bs.Named.OldLace], [4286611456, 125, Bs.Named.Olive], [4285238819, 126, Bs.Named.OliveDrab], [4294944e3, 127, Bs.Named.Orange], [4294919424, 128, Bs.Named.OrangeRed], [4292505814, 129, Bs.Named.Orchid], [4293847210, 130, Bs.Named.PaleGoldenrod], [4288215960, 131, Bs.Named.PaleGreen], [4289720046, 132, Bs.Named.PaleTurquoise], [4292571283, 133, Bs.Named.PaleVioletRed], [4294963157, 134, Bs.Named.PapayaWhip], [4294957753, 135, Bs.Named.PeachPuff], [4291659071, 136, Bs.Named.Peru], [4294951115, 137, Bs.Named.Pink], [4292714717, 138, Bs.Named.Plum], [4289781990, 139, Bs.Named.PowderBlue], [4286578816, 140, Bs.Named.Purple], [4294901760, 141, Bs.Named.Red], [4290547599, 142, Bs.Named.RosyBrown], [4282477025, 143, Bs.Named.RoyalBlue], [4287317267, 144, Bs.Named.SaddleBrown], [4294606962, 145, Bs.Named.Salmon], [4294222944, 146, Bs.Named.SandyBrown], [4281240407, 147, Bs.Named.SeaGreen], [4294964718, 148, Bs.Named.SeaShell], [4288696877, 149, Bs.Named.Sienna], [4290822336, 150, Bs.Named.Silver], [4287090411, 151, Bs.Named.SkyBlue], [4285160141, 152, Bs.Named.SlateBlue], [4285563024, 153, Bs.Named.SlateGray], [4294966010, 154, Bs.Named.Snow], [4278255487, 155, Bs.Named.SpringGreen], [4282811060, 156, Bs.Named.SteelBlue], [4291998860, 157, Bs.Named.Tan], [4278222976, 158, Bs.Named.Teal], [4292394968, 159, Bs.Named.Thistle], [4294927175, 160, Bs.Named.Tomato], [4282441936, 161, Bs.Named.Turquoise], [4293821166, 162, Bs.Named.Violet], [4294303411, 163, Bs.Named.Wheat], [4294967295, 164, Bs.Named.White], [4294309365, 165, Bs.Named.WhiteSmoke], [4294967040, 166, Bs.Named.Yellow], [4288335154, 167, Bs.Named.YellowGreen], [4293980400, 168, Bs.Named.ButtonFace], [4294967295, 169, Bs.Named.ButtonHighlight], [4288716960, 170, Bs.Named.ButtonShadow], [4290367978, 171, Bs.Named.GradientActiveCaption], [4292338930, 172, Bs.Named.GradientInactiveCaption], [4293980400, 173, Bs.Named.MenuBar], [4281571839, 174, Bs.Named.MenuHighlight]];
|
|
4229
4237
|
const Ws = new class {
|
|
4230
4238
|
constructor() {
|
|
4231
4239
|
this._lookupByName = /* @__PURE__ */ new Map();
|
|
@@ -4237,44 +4245,44 @@ const Ws = new class {
|
|
|
4237
4245
|
valueOfName(t2) {
|
|
4238
4246
|
return this._lookupByName.get(t2 ? t2.toLowerCase() : "transparent");
|
|
4239
4247
|
}
|
|
4240
|
-
}(), Hs = [{ scheme:
|
|
4241
|
-
for (let t2 = 0; t2 < Hs.length; t2++)
|
|
4242
|
-
const
|
|
4243
|
-
let o2 =
|
|
4248
|
+
}(), Hs = [{ scheme: Bs.Scheme.Tx1, description: "First Text Color" }, { scheme: Bs.Scheme.Tx2, description: "Second Text Color" }, { scheme: Bs.Scheme.Bg1, description: "First Background Color" }, { scheme: Bs.Scheme.Bg2, description: "Second Background Color" }, { scheme: Bs.Scheme.Accent1, description: "Accent 1" }, { scheme: Bs.Scheme.Accent2, description: "Accent 2" }, { scheme: Bs.Scheme.Accent3, description: "Accent 3" }, { scheme: Bs.Scheme.Accent4, description: "Accent 4" }, { scheme: Bs.Scheme.Accent5, description: "Accent 5" }, { scheme: Bs.Scheme.Accent6, description: "Accent 6" }, { scheme: Bs.Scheme.Hlink, description: "Hyperlink" }, { scheme: Bs.Scheme.FolHlink, description: "Followed Hyperlink" }, { scheme: "dk1", description: "Text/Background - Dark 1" }, { scheme: "lt1", description: "Text/Background - Light 1" }, { scheme: "dk2", description: "Text/Background - Dark 2" }, { scheme: "lt2", description: "Text/Background - Light 2" }], Vs = /* @__PURE__ */ new Map();
|
|
4249
|
+
for (let t2 = 0; t2 < Hs.length; t2++) Vs.set(Hs[t2].scheme.toLowerCase(), Hs[t2]);
|
|
4250
|
+
const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], alpha: void 0 !== t2.alpha ? t2.alpha : 1 } : null, js = function(t2, e2, n2, r2) {
|
|
4251
|
+
let o2 = $s(((t3) => {
|
|
4244
4252
|
let e3 = Ws.valueOfName(t3);
|
|
4245
4253
|
return e3 ? new _r.RGBA(e3.rgbaColor.r, e3.rgbaColor.g, e3.rgbaColor.b, e3.rgbaColor.a) : null;
|
|
4246
4254
|
})(t2)), s2 = null, i2 = null, a2 = null;
|
|
4247
|
-
if (null === o2 && (l2 = t2,
|
|
4255
|
+
if (null === o2 && (l2 = t2, Vs.get(l2.toLowerCase()))) {
|
|
4248
4256
|
if (!e2) throw new Error("a scheme val was used but a schemeLookup was not provided");
|
|
4249
|
-
s2 = t2, i2 = e2(s2), o2 =
|
|
4257
|
+
s2 = t2, i2 = e2(s2), o2 = $s(i2), a2 = Bs.Type.Scheme;
|
|
4250
4258
|
}
|
|
4251
4259
|
var l2;
|
|
4252
4260
|
if (null === o2) {
|
|
4253
4261
|
let e3 = t2.match(Mn) || t2.match(Nn);
|
|
4254
4262
|
if (e3) {
|
|
4255
4263
|
let t3, n3 = 1;
|
|
4256
|
-
4 === e3.length ? t3 = [parseInt(e3[1], 16), parseInt(e3[2], 16), parseInt(e3[3], 16)] : (t3 = [parseInt(e3[2], 16), parseInt(e3[3], 16), parseInt(e3[4], 16)], n3 =
|
|
4264
|
+
4 === e3.length ? t3 = [parseInt(e3[1], 16), parseInt(e3[2], 16), parseInt(e3[3], 16)] : (t3 = [parseInt(e3[2], 16), parseInt(e3[3], 16), parseInt(e3[4], 16)], n3 = Ln(parseInt(e3[1], 16) / 255)), t3 = Fn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: n3 }, a2 = Bs.Type.Hex;
|
|
4257
4265
|
}
|
|
4258
4266
|
}
|
|
4259
4267
|
if (null === o2) {
|
|
4260
4268
|
let e3 = t2.match(bn) || t2.match(vn);
|
|
4261
4269
|
if (e3) {
|
|
4262
4270
|
let t3 = kn(e3[1], e3[2], e3[3]);
|
|
4263
|
-
t3 = Fn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ?
|
|
4271
|
+
t3 = Fn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ? Ln(parseFloat(e3[4])) : 1 }, a2 = Bs.Type.RGB;
|
|
4264
4272
|
}
|
|
4265
4273
|
}
|
|
4266
4274
|
if (null === o2) {
|
|
4267
4275
|
let e3 = t2.match(xn) || t2.match(In);
|
|
4268
4276
|
if (e3) {
|
|
4269
4277
|
let t3 = kn(e3[1], e3[2], e3[3]);
|
|
4270
|
-
t3 = Fn(t3, 100), t3 = Pn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ?
|
|
4278
|
+
t3 = Fn(t3, 100), t3 = Pn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ? Ln(parseFloat(e3[4])) : 1 }, a2 = Bs.Type.LRGB;
|
|
4271
4279
|
}
|
|
4272
4280
|
}
|
|
4273
4281
|
if (null === o2) {
|
|
4274
4282
|
let e3 = t2.match(Rn) || t2.match(An);
|
|
4275
4283
|
if (e3) {
|
|
4276
4284
|
let t3 = kn(e3[1], e3[2], e3[3]);
|
|
4277
|
-
t3 =
|
|
4285
|
+
t3 = Vn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ? Ln(parseFloat(e3[4])) : 1 }, a2 = Bs.Type.HSL;
|
|
4278
4286
|
}
|
|
4279
4287
|
}
|
|
4280
4288
|
if (null === o2) {
|
|
@@ -4282,16 +4290,16 @@ const Vs = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
|
|
|
4282
4290
|
if (e3) {
|
|
4283
4291
|
const t3 = parseInt(e3[1]);
|
|
4284
4292
|
let r3 = n2?.(t3) ?? br(t3);
|
|
4285
|
-
r3 && (o2 = { srgb: [r3.red / 255, r3.green / 255, r3.blue / 255], alpha: r3.alpha }, a2 =
|
|
4293
|
+
r3 && (o2 = { srgb: [r3.red / 255, r3.green / 255, r3.blue / 255], alpha: r3.alpha }, a2 = Bs.Type.Index);
|
|
4286
4294
|
}
|
|
4287
4295
|
}
|
|
4288
4296
|
if (null === o2) throw new Error("Not a valid color format: " + t2);
|
|
4289
4297
|
return { srgbAlpha: o2, key: s2, color: i2, type: a2 };
|
|
4290
|
-
}, Gs = /* @__PURE__ */ new Map(), Us = Object.keys(
|
|
4291
|
-
for (let t2 = 0; t2 < Us.length; t2++) Gs.set(
|
|
4298
|
+
}, Gs = /* @__PURE__ */ new Map(), Us = Object.keys(Bs.AdjustmentType);
|
|
4299
|
+
for (let t2 = 0; t2 < Us.length; t2++) Gs.set(Bs.AdjustmentType[Us[t2]].toLowerCase(), Bs.AdjustmentType[Us[t2]]);
|
|
4292
4300
|
const qs = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), Js = new RegExp("\\s*[,]\\s*|\\s+");
|
|
4293
4301
|
let Ks = null;
|
|
4294
|
-
const Xs = { [
|
|
4302
|
+
const Xs = { [Bs.Scheme.Bg1]: "window", [Bs.Scheme.Bg2]: "E7E6E6", [Bs.Scheme.Tx1]: "windowText", [Bs.Scheme.Tx2]: "44546A", [Bs.Scheme.Accent1]: "4472C4", [Bs.Scheme.Accent2]: "ED7D31", [Bs.Scheme.Accent3]: "A5A5A5", [Bs.Scheme.Accent4]: "FFC000", [Bs.Scheme.Accent5]: "5B9BD5", [Bs.Scheme.Accent6]: "70AD47", [Bs.Scheme.Hlink]: "0563C1", [Bs.Scheme.FolHlink]: "954F72" };
|
|
4295
4303
|
class Ys {
|
|
4296
4304
|
constructor(t2, e2, n2, r2 = null) {
|
|
4297
4305
|
let o2 = null, s2 = null;
|
|
@@ -4301,7 +4309,7 @@ class Ys {
|
|
|
4301
4309
|
o2 = e3.val, s2 = e3.adjs;
|
|
4302
4310
|
} else t2?.val && (o2 = t2.val, s2 = t2.adjs);
|
|
4303
4311
|
if (!o2) throw new Error("Unable to determine color value");
|
|
4304
|
-
this._private = { val: o2, adjs: s2, schemeLookup: e2, indexedLookup: n2, parsedVal:
|
|
4312
|
+
this._private = { val: o2, adjs: s2, schemeLookup: e2, indexedLookup: n2, parsedVal: js(o2, e2, n2), adjusted: null, resolved: null };
|
|
4305
4313
|
}
|
|
4306
4314
|
_parse(t2) {
|
|
4307
4315
|
let e2 = null, n2 = t2.toLowerCase().trim();
|
|
@@ -4314,7 +4322,7 @@ class Ys {
|
|
|
4314
4322
|
const n3 = Gs.get(e3.toLowerCase());
|
|
4315
4323
|
if (!n3) throw new Error("Invalid adjustment type:" + e3);
|
|
4316
4324
|
let r3 = null;
|
|
4317
|
-
if (n3 ===
|
|
4325
|
+
if (n3 === Bs.AdjustmentType.Gray || n3 === Bs.AdjustmentType.Comp || n3 === Bs.AdjustmentType.Inv || n3 === Bs.AdjustmentType.Gamma || n3 === Bs.AdjustmentType.InvGamma) ;
|
|
4318
4326
|
else {
|
|
4319
4327
|
t3++;
|
|
4320
4328
|
const n4 = s2[t3];
|
|
@@ -4337,9 +4345,9 @@ class Ys {
|
|
|
4337
4345
|
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)];
|
|
4338
4346
|
})(n2, 180), n2 = hr(n2, false);
|
|
4339
4347
|
let r2 = zn(n2);
|
|
4340
|
-
const o2 =
|
|
4341
|
-
if (o2[qn] = 0.95 * o2[qn], r2 =
|
|
4342
|
-
const s2 =
|
|
4348
|
+
const o2 = jn(r2);
|
|
4349
|
+
if (o2[qn] = 0.95 * o2[qn], r2 = Vn(o2), n2 = Pn(r2), n2 = On(n2), n2 = Dn(n2, false), t2) return new _r.RGBA(n2[0], n2[1], n2[2], e2.alpha);
|
|
4350
|
+
const s2 = jn(zn(n2));
|
|
4343
4351
|
return new _r.HSLA(s2[0], s2[1], s2[2], e2.alpha);
|
|
4344
4352
|
}
|
|
4345
4353
|
_resolve() {
|
|
@@ -4348,12 +4356,12 @@ class Ys {
|
|
|
4348
4356
|
let t3 = this._private.schemeLookup(this._private.parsedVal.key);
|
|
4349
4357
|
if (t3 === this._private.parsedVal.color || t3?.isEqual(this._private.parsedVal.color)) return;
|
|
4350
4358
|
}
|
|
4351
|
-
const t2 =
|
|
4359
|
+
const t2 = js(this._private.val, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
|
|
4352
4360
|
let e2 = ((t3, e3) => {
|
|
4353
4361
|
let n3 = [...t3.srgb], r3 = void 0 !== t3.alpha ? t3.alpha : 1;
|
|
4354
4362
|
for (var o2 = 0; e3 && o2 < e3.length; o2++) {
|
|
4355
4363
|
const t4 = e3[o2], s2 = Object.keys(t4)[0], i2 = t4[s2];
|
|
4356
|
-
s2 ===
|
|
4364
|
+
s2 === Bs.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Bs.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Bs.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Bs.AdjustmentType.Hue ? n3 = or(Gn, n3, i2) : s2 === Bs.AdjustmentType.Sat ? n3 = or(Un, n3, i2) : s2 === Bs.AdjustmentType.Lum ? n3 = or(qn, n3, i2) : s2 === Bs.AdjustmentType.HueOff ? n3 = sr(Gn, n3, i2) : s2 === Bs.AdjustmentType.SatOff ? n3 = sr(Un, n3, i2) : s2 === Bs.AdjustmentType.LumOff ? n3 = sr(qn, n3, i2) : s2 === Bs.AdjustmentType.HueMod ? n3 = ir(Gn, n3, i2) : s2 === Bs.AdjustmentType.SatMod ? n3 = ir(Un, n3, i2) : s2 === Bs.AdjustmentType.LumMod ? n3 = ir(qn, n3, i2) : s2 === Bs.AdjustmentType.Red ? n3 = ar(Jn, n3, i2, Yn) : s2 === Bs.AdjustmentType.Green ? n3 = ar(Kn, n3, i2, Yn) : s2 === Bs.AdjustmentType.Blue ? n3 = ar(Xn, n3, i2, Yn) : s2 === Bs.AdjustmentType.RedOff ? n3 = ar(Jn, n3, i2, Qn) : s2 === Bs.AdjustmentType.GreenOff ? n3 = ar(Kn, n3, i2, Qn) : s2 === Bs.AdjustmentType.BlueOff ? n3 = ar(Xn, n3, i2, Qn) : s2 === Bs.AdjustmentType.RedMod ? n3 = ar(Jn, n3, i2, Zn) : s2 === Bs.AdjustmentType.GreenMod ? n3 = ar(Kn, n3, i2, Zn) : s2 === Bs.AdjustmentType.BlueMod ? n3 = ar(Xn, n3, i2, Zn) : s2 === Bs.AdjustmentType.Shade ? n3 = tr(n3, i2) : s2 === Bs.AdjustmentType.Tint ? n3 = rr(n3, i2) : s2 === Bs.AdjustmentType.ETint ? n3 = nr(n3, i2) : s2 === Bs.AdjustmentType.Gray ? n3 = lr(n3) : s2 === Bs.AdjustmentType.Comp ? n3 = cr(n3) : s2 === Bs.AdjustmentType.Inv ? n3 = hr(n3, i2) : s2 === Bs.AdjustmentType.Gamma ? n3 = dr(n3) : s2 === Bs.AdjustmentType.InvGamma ? n3 = ur(n3) : console.warn("unknown adjustmentType: " + s2);
|
|
4357
4365
|
}
|
|
4358
4366
|
return { srgb: n3, alpha: r3 };
|
|
4359
4367
|
})(t2.srgbAlpha, this._private.adjs), n2 = ((t3, e3 = 255) => {
|
|
@@ -4362,7 +4370,7 @@ class Ys {
|
|
|
4362
4370
|
return n3;
|
|
4363
4371
|
})(e2.srgb);
|
|
4364
4372
|
n2 = On(n2);
|
|
4365
|
-
let r2 =
|
|
4373
|
+
let r2 = Ln(e2.alpha);
|
|
4366
4374
|
this._private.adjusted = e2, this._private.parsedVal = t2, this._private.resolved = new _r.RGBA(n2[0], n2[1], n2[2], r2);
|
|
4367
4375
|
}
|
|
4368
4376
|
static parse(t2, e2, n2, r2 = null) {
|
|
@@ -4382,7 +4390,7 @@ class Ys {
|
|
|
4382
4390
|
const r3 = Gs.get(n3.toLowerCase());
|
|
4383
4391
|
if (!r3) throw new Error("Invalid adjustment type:" + n3);
|
|
4384
4392
|
let s3 = null;
|
|
4385
|
-
if (r3 ===
|
|
4393
|
+
if (r3 === Bs.AdjustmentType.Gray || r3 === Bs.AdjustmentType.Comp || r3 === Bs.AdjustmentType.Inv || r3 === Bs.AdjustmentType.Gamma || r3 === Bs.AdjustmentType.InvGamma) ;
|
|
4386
4394
|
else {
|
|
4387
4395
|
e3++;
|
|
4388
4396
|
const t4 = o3[e3];
|
|
@@ -4432,8 +4440,8 @@ class Ys {
|
|
|
4432
4440
|
}
|
|
4433
4441
|
toHSLA(t2 = false) {
|
|
4434
4442
|
if (this._resolve(), t2) return this._forceDark(false);
|
|
4435
|
-
let e2 =
|
|
4436
|
-
return new _r.HSLA(e2[0], e2[1], e2[2],
|
|
4443
|
+
let e2 = jn(this._private.adjusted.srgb);
|
|
4444
|
+
return new _r.HSLA(e2[0], e2[1], e2[2], Ln(this._private.adjusted.alpha ?? 1));
|
|
4437
4445
|
}
|
|
4438
4446
|
toHex(t2 = false) {
|
|
4439
4447
|
this._resolve();
|
|
@@ -4539,7 +4547,7 @@ const yi = (t2, e2, n2, r2, o2) => {
|
|
|
4539
4547
|
const s2 = JSON.parse(JSON.stringify(t2.definition));
|
|
4540
4548
|
s2.adjs || (s2.adjs = []);
|
|
4541
4549
|
let i2 = "", a2 = 0, l2 = 0;
|
|
4542
|
-
e2 > 0 ? (l2 = e2, a2 = 100 - e2, i2 = `Lighter ${e2}%`) : e2 < 0 && (a2 = 100 + e2, i2 = `Darker ${-e2}%`), a2 && s2.adjs.push({ [
|
|
4550
|
+
e2 > 0 ? (l2 = e2, a2 = 100 - e2, i2 = `Lighter ${e2}%`) : e2 < 0 && (a2 = 100 + e2, i2 = `Darker ${-e2}%`), a2 && s2.adjs.push({ [Bs.AdjustmentType.LumMod]: a2 }), l2 && s2.adjs.push({ [Bs.AdjustmentType.LumOff]: l2 });
|
|
4543
4551
|
const c2 = new Ys({ val: s2.val, adjs: s2.adjs }, n2), h2 = c2.toString();
|
|
4544
4552
|
r2?.set(h2, c2);
|
|
4545
4553
|
const d2 = c2.toRGBA().toString();
|
|
@@ -4559,7 +4567,7 @@ const yi = (t2, e2, n2, r2, o2) => {
|
|
|
4559
4567
|
};
|
|
4560
4568
|
var Ci, bi;
|
|
4561
4569
|
(Ci || (Ci = {})).buildPalette = Ei, (bi || (bi = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
|
|
4562
|
-
const vi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], xi = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], Ii = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], Ri = "Themes is readonly. To make modifications create a new DocsThemes instance.", Ai = { [
|
|
4570
|
+
const vi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], xi = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], Ii = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], Ri = "Themes is readonly. To make modifications create a new DocsThemes instance.", Ai = { [Bs.Scheme.Bg1]: "lt1", [Bs.Scheme.Bg2]: "lt2", [Bs.Scheme.Tx1]: "dk1", [Bs.Scheme.Tx2]: "dk2", [Bs.Scheme.Accent1]: "accent1", [Bs.Scheme.Accent2]: "accent2", [Bs.Scheme.Accent3]: "accent3", [Bs.Scheme.Accent4]: "accent4", [Bs.Scheme.Accent5]: "accent5", [Bs.Scheme.Accent6]: "accent6", [Bs.Scheme.Hlink]: "hlink", [Bs.Scheme.FolHlink]: "folHlink" }, Mi = "Office", Ni = [Mi, "Calibri Light", "Calibri"], Ti = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], ki = (t2) => {
|
|
4563
4571
|
const e2 = {};
|
|
4564
4572
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4565
4573
|
const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
|
|
@@ -4579,18 +4587,18 @@ const vi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
|
|
|
4579
4587
|
e2[o2] = s2, s2.majorFont = r2[1] ?? Ni[1], s2.minorFont = r2[2] ?? Ni[2];
|
|
4580
4588
|
}
|
|
4581
4589
|
return e2;
|
|
4582
|
-
}, Oi = ki([[Mi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Di = Fi([Ni]),
|
|
4590
|
+
}, Oi = ki([[Mi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Di = Fi([Ni]), Li = Oi[Mi], Bi = Di[Mi];
|
|
4583
4591
|
let zi = null;
|
|
4584
4592
|
const Pi = new class {
|
|
4585
4593
|
constructor() {
|
|
4586
4594
|
this._colors = {};
|
|
4587
4595
|
for (let t2 = 0; t2 < Ti.length; t2++) {
|
|
4588
|
-
const e2 = Ti[t2], n2 = Ys.parse(
|
|
4596
|
+
const e2 = Ti[t2], n2 = Ys.parse(Li[e2]);
|
|
4589
4597
|
this._colors[e2] = n2;
|
|
4590
4598
|
}
|
|
4591
4599
|
}
|
|
4592
4600
|
getName() {
|
|
4593
|
-
return
|
|
4601
|
+
return Li.name;
|
|
4594
4602
|
}
|
|
4595
4603
|
getDk1() {
|
|
4596
4604
|
return this._colors.dk1;
|
|
@@ -4695,27 +4703,27 @@ const Hi = new class {
|
|
|
4695
4703
|
constructor() {
|
|
4696
4704
|
this._colors = {};
|
|
4697
4705
|
for (let t2 = 0; t2 < Ti.length; t2++) {
|
|
4698
|
-
const e2 = Ti[t2], n2 = Ys.parse(
|
|
4706
|
+
const e2 = Ti[t2], n2 = Ys.parse(Li[e2]);
|
|
4699
4707
|
this._colors[e2] = n2;
|
|
4700
4708
|
}
|
|
4701
4709
|
}
|
|
4702
4710
|
getName() {
|
|
4703
|
-
return
|
|
4711
|
+
return Bi.name;
|
|
4704
4712
|
}
|
|
4705
4713
|
getMajorFont() {
|
|
4706
|
-
return
|
|
4714
|
+
return Bi.majorFont;
|
|
4707
4715
|
}
|
|
4708
4716
|
getMinorFont() {
|
|
4709
|
-
return
|
|
4717
|
+
return Bi.minorFont;
|
|
4710
4718
|
}
|
|
4711
4719
|
getMajorFallbacks() {
|
|
4712
|
-
return
|
|
4720
|
+
return Bi.majorFallbacks;
|
|
4713
4721
|
}
|
|
4714
4722
|
getMinorFallbacks() {
|
|
4715
|
-
return
|
|
4723
|
+
return Bi.minorFallbacks;
|
|
4716
4724
|
}
|
|
4717
4725
|
}();
|
|
4718
|
-
class
|
|
4726
|
+
class Vi {
|
|
4719
4727
|
constructor(t2, e2 = Hi) {
|
|
4720
4728
|
this._delegate = e2, this._fromJSON(t2);
|
|
4721
4729
|
}
|
|
@@ -4750,14 +4758,14 @@ class ji {
|
|
|
4750
4758
|
return e2 && (t2.name = e2), t2;
|
|
4751
4759
|
}
|
|
4752
4760
|
}
|
|
4753
|
-
class
|
|
4761
|
+
class $i {
|
|
4754
4762
|
constructor(t2, e2 = null, n2 = null) {
|
|
4755
4763
|
if (this._cacheColors = /* @__PURE__ */ new Map(), !e2 && t2?.name) {
|
|
4756
4764
|
const n3 = zi ? zi.get(t2.name.toLowerCase()) : null;
|
|
4757
4765
|
n3 && (e2 = n3);
|
|
4758
4766
|
}
|
|
4759
4767
|
if (!e2 && zi && (e2 = zi.get(Mi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
|
|
4760
|
-
this._builtInID = n2, this._delegate = e2, this._colors = new Wi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new
|
|
4768
|
+
this._builtInID = n2, this._delegate = e2, this._colors = new Wi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Vi(t2?.fonts, this._delegate?.getFontScheme());
|
|
4761
4769
|
const r2 = Ai, o2 = {}, s2 = Object.keys(r2);
|
|
4762
4770
|
for (let t3 = 0; t3 < s2.length; t3++) {
|
|
4763
4771
|
const e3 = s2[t3];
|
|
@@ -4772,7 +4780,7 @@ class Vi {
|
|
|
4772
4780
|
if (!n3) throw new Error(`Invalid color scheme key: ${t3}`);
|
|
4773
4781
|
const r3 = i2.getColorScheme();
|
|
4774
4782
|
let o3 = r3[n3].bind(r3)();
|
|
4775
|
-
o3 || (o3 =
|
|
4783
|
+
o3 || (o3 = Li[Ai[t3] ?? t3]);
|
|
4776
4784
|
return e3 = new Ys(o3).toRGBA(), i2._cacheColors[t3] = e3, e3;
|
|
4777
4785
|
};
|
|
4778
4786
|
}
|
|
@@ -4804,25 +4812,25 @@ class Vi {
|
|
|
4804
4812
|
return n2 && (Object.keys(n2).length > 1 || n2.name && n2.name !== t2.name) && (t2.fonts = n2), 1 === Object.keys(t2).length && t2.name === Mi ? null : t2;
|
|
4805
4813
|
}
|
|
4806
4814
|
}
|
|
4807
|
-
const
|
|
4815
|
+
const ji = () => {
|
|
4808
4816
|
if (zi) return zi;
|
|
4809
4817
|
const t2 = ((t3, e3, n2) => {
|
|
4810
4818
|
const r2 = [];
|
|
4811
4819
|
for (let o2 = 0; o2 < t3.length; o2++) {
|
|
4812
|
-
const s2 = t3[o2], i2 = s2[0], a2 = e3[s2[1]] ??
|
|
4820
|
+
const s2 = t3[o2], i2 = s2[0], a2 = e3[s2[1]] ?? Li, l2 = n2[s2[2]] ?? Bi;
|
|
4813
4821
|
r2.push({ name: i2, colors: a2, fonts: l2 });
|
|
4814
4822
|
}
|
|
4815
4823
|
return r2;
|
|
4816
4824
|
})(Ii, ki(vi), Fi(xi)), e2 = /* @__PURE__ */ new Map();
|
|
4817
4825
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4818
|
-
const r2 = new
|
|
4826
|
+
const r2 = new $i(t2[n2]), o2 = new $i(null, r2, n2 + 1);
|
|
4819
4827
|
e2.set(o2.getName().toLowerCase(), o2);
|
|
4820
4828
|
}
|
|
4821
4829
|
return zi = e2, e2;
|
|
4822
4830
|
};
|
|
4823
4831
|
class Gi {
|
|
4824
4832
|
constructor(t2 = null, e2 = false) {
|
|
4825
|
-
|
|
4833
|
+
ji(), this._isReadOnly = e2, this._customMap = /* @__PURE__ */ new Map(), this._defaultTheme = this.getByName("Office");
|
|
4826
4834
|
}
|
|
4827
4835
|
getDefaultTheme() {
|
|
4828
4836
|
return this._defaultTheme;
|
|
@@ -5846,13 +5854,13 @@ class Ta {
|
|
|
5846
5854
|
search(t2, e2) {
|
|
5847
5855
|
let n2 = this.data;
|
|
5848
5856
|
if (0 === n2.children.length) return o.EmptyArray;
|
|
5849
|
-
if (
|
|
5857
|
+
if (!$a(t2, n2)) return o.EmptyArray;
|
|
5850
5858
|
const r2 = e2 ?? [], s2 = this.toBBox, i2 = [];
|
|
5851
5859
|
for (; n2; ) {
|
|
5852
5860
|
const e3 = n2.children, o2 = e3.length, a2 = n2.leaf;
|
|
5853
5861
|
for (let n3 = 0; n3 < o2; n3++) {
|
|
5854
5862
|
const o3 = e3[n3], l2 = a2 ? s2(o3) : o3;
|
|
5855
|
-
|
|
5863
|
+
$a(t2, l2) && (a2 ? r2.push(o3) : Va(t2, l2) ? this._all(o3, r2) : i2.push(o3));
|
|
5856
5864
|
}
|
|
5857
5865
|
n2 = i2.pop();
|
|
5858
5866
|
}
|
|
@@ -5860,13 +5868,13 @@ class Ta {
|
|
|
5860
5868
|
}
|
|
5861
5869
|
collides(t2) {
|
|
5862
5870
|
let e2 = this.data;
|
|
5863
|
-
if (
|
|
5871
|
+
if (!$a(t2, e2)) return false;
|
|
5864
5872
|
const n2 = [];
|
|
5865
5873
|
for (; e2; ) {
|
|
5866
5874
|
for (let r2 = 0; r2 < e2.children.length; r2++) {
|
|
5867
5875
|
const o2 = e2.children[r2], s2 = e2.leaf ? this.toBBox(o2) : o2;
|
|
5868
|
-
if (
|
|
5869
|
-
if (e2.leaf ||
|
|
5876
|
+
if ($a(t2, s2)) {
|
|
5877
|
+
if (e2.leaf || Va(t2, s2)) return true;
|
|
5870
5878
|
n2.push(o2);
|
|
5871
5879
|
}
|
|
5872
5880
|
}
|
|
@@ -5897,7 +5905,7 @@ class Ta {
|
|
|
5897
5905
|
return t2 && this._insert(t2, this.data.height - 1), this;
|
|
5898
5906
|
}
|
|
5899
5907
|
clear() {
|
|
5900
|
-
return this.data =
|
|
5908
|
+
return this.data = ja([]), this;
|
|
5901
5909
|
}
|
|
5902
5910
|
remove(t2, e2) {
|
|
5903
5911
|
if (!t2) return this;
|
|
@@ -5909,7 +5917,7 @@ class Ta {
|
|
|
5909
5917
|
const r3 = ka(t2, n2.children, e2);
|
|
5910
5918
|
if (-1 !== r3) return n2.children.splice(r3, 1), o2.push(n2), this._condense(o2), this;
|
|
5911
5919
|
}
|
|
5912
|
-
l2 || n2.leaf || !
|
|
5920
|
+
l2 || n2.leaf || !Va(n2, r2) ? a2 ? (i2++, n2 = a2.children[i2], l2 = false) : n2 = null : (o2.push(n2), s2.push(i2), i2 = 0, a2 = n2, n2 = n2.children[0]);
|
|
5913
5921
|
}
|
|
5914
5922
|
return this;
|
|
5915
5923
|
}
|
|
@@ -5936,8 +5944,8 @@ class Ta {
|
|
|
5936
5944
|
_build(t2, e2, n2, r2) {
|
|
5937
5945
|
const o2 = n2 - e2 + 1;
|
|
5938
5946
|
let s2, i2 = this._maxEntries;
|
|
5939
|
-
if (o2 <= i2) return s2 =
|
|
5940
|
-
r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 =
|
|
5947
|
+
if (o2 <= i2) return s2 = ja(t2.slice(e2, n2 + 1)), Fa(s2, this.toBBox), s2;
|
|
5948
|
+
r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 = ja([]), s2.leaf = false, s2.height = r2;
|
|
5941
5949
|
const a2 = Math.ceil(o2 / i2), l2 = a2 * Math.ceil(Math.sqrt(i2));
|
|
5942
5950
|
Ga(t2, e2, n2, l2, this.compareMinX);
|
|
5943
5951
|
for (let o3 = e2; o3 <= n2; o3 += l2) {
|
|
@@ -5969,11 +5977,11 @@ class Ta {
|
|
|
5969
5977
|
_split(t2, e2) {
|
|
5970
5978
|
const n2 = t2[e2], r2 = n2.children.length, o2 = this._minEntries;
|
|
5971
5979
|
this._chooseSplitAxis(n2, o2, r2);
|
|
5972
|
-
const s2 = this._chooseSplitIndex(n2, o2, r2), i2 =
|
|
5980
|
+
const s2 = this._chooseSplitIndex(n2, o2, r2), i2 = ja(n2.children.splice(s2, n2.children.length - s2));
|
|
5973
5981
|
i2.height = n2.height, i2.leaf = n2.leaf, Fa(n2, this.toBBox), Fa(i2, this.toBBox), e2 ? t2[e2 - 1].children.push(i2) : this._splitRoot(n2, i2);
|
|
5974
5982
|
}
|
|
5975
5983
|
_splitRoot(t2, e2) {
|
|
5976
|
-
this.data =
|
|
5984
|
+
this.data = ja([t2, e2]), this.data.height = t2.height + 1, this.data.leaf = false, Fa(this.data, this.toBBox);
|
|
5977
5985
|
}
|
|
5978
5986
|
_chooseSplitIndex(t2, e2, n2) {
|
|
5979
5987
|
let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
|
|
@@ -5984,7 +5992,7 @@ class Ta {
|
|
|
5984
5992
|
return r2 || n2 - e2;
|
|
5985
5993
|
}
|
|
5986
5994
|
_chooseSplitAxis(t2, e2, n2) {
|
|
5987
|
-
const r2 = t2.leaf ? this.compareMinX :
|
|
5995
|
+
const r2 = t2.leaf ? this.compareMinX : La, o2 = t2.leaf ? this.compareMinY : Ba;
|
|
5988
5996
|
this._allDistMargin(t2, e2, n2, r2) < this._allDistMargin(t2, e2, n2, o2) && t2.children.sort(r2);
|
|
5989
5997
|
}
|
|
5990
5998
|
_allDistMargin(t2, e2, n2, r2) {
|
|
@@ -6017,7 +6025,7 @@ function Fa(t2, e2) {
|
|
|
6017
6025
|
Oa(t2, 0, t2.children.length, e2, t2);
|
|
6018
6026
|
}
|
|
6019
6027
|
function Oa(t2, e2, n2, r2, o2 = null) {
|
|
6020
|
-
o2 || (o2 =
|
|
6028
|
+
o2 || (o2 = ja(null)), o2.minX = 1 / 0, o2.minY = 1 / 0, o2.maxX = -1 / 0, o2.maxY = -1 / 0;
|
|
6021
6029
|
for (let s2 = e2; s2 < n2; s2++) {
|
|
6022
6030
|
const e3 = t2.children[s2];
|
|
6023
6031
|
Da(o2, t2.leaf ? r2(e3) : e3);
|
|
@@ -6027,10 +6035,10 @@ function Oa(t2, e2, n2, r2, o2 = null) {
|
|
|
6027
6035
|
function Da(t2, e2) {
|
|
6028
6036
|
return t2.minX = Math.min(t2.minX, e2.minX), t2.minY = Math.min(t2.minY, e2.minY), t2.maxX = Math.max(t2.maxX, e2.maxX), t2.maxY = Math.max(t2.maxY, e2.maxY), t2;
|
|
6029
6037
|
}
|
|
6030
|
-
function
|
|
6038
|
+
function La(t2, e2) {
|
|
6031
6039
|
return t2.minX - e2.minX;
|
|
6032
6040
|
}
|
|
6033
|
-
function
|
|
6041
|
+
function Ba(t2, e2) {
|
|
6034
6042
|
return t2.minY - e2.minY;
|
|
6035
6043
|
}
|
|
6036
6044
|
function za(t2) {
|
|
@@ -6046,13 +6054,13 @@ function Ha(t2, e2) {
|
|
|
6046
6054
|
const n2 = Math.max(t2.minX, e2.minX), r2 = Math.max(t2.minY, e2.minY), o2 = Math.min(t2.maxX, e2.maxX), s2 = Math.min(t2.maxY, e2.maxY);
|
|
6047
6055
|
return Math.max(0, o2 - n2) * Math.max(0, s2 - r2);
|
|
6048
6056
|
}
|
|
6049
|
-
function
|
|
6057
|
+
function Va(t2, e2) {
|
|
6050
6058
|
return t2.minX <= e2.minX && t2.minY <= e2.minY && e2.maxX <= t2.maxX && e2.maxY <= t2.maxY;
|
|
6051
6059
|
}
|
|
6052
|
-
function
|
|
6060
|
+
function $a(t2, e2) {
|
|
6053
6061
|
return e2.minX <= t2.maxX && e2.minY <= t2.maxY && e2.maxX >= t2.minX && e2.maxY >= t2.minY;
|
|
6054
6062
|
}
|
|
6055
|
-
function
|
|
6063
|
+
function ja(t2) {
|
|
6056
6064
|
return { children: t2, height: 1, leaf: true, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
|
|
6057
6065
|
}
|
|
6058
6066
|
function Ga(t2, e2, n2, r2, o2) {
|
|
@@ -6179,17 +6187,17 @@ class Ka {
|
|
|
6179
6187
|
}
|
|
6180
6188
|
}
|
|
6181
6189
|
}, w2);
|
|
6182
|
-
let
|
|
6183
|
-
|
|
6184
|
-
let
|
|
6190
|
+
let L2 = null;
|
|
6191
|
+
L2 = r2 && (f2.length > 0 || p2.length > 0 || E2.size > 0) ? this.clone() : this, L2._updateNodes(p2, f2), E2.size > 0 && L2._updateGroupedEntries(y2, E2);
|
|
6192
|
+
let B2 = o.EmptyArray;
|
|
6185
6193
|
if (b2 && S2 && _2) {
|
|
6186
6194
|
let t3 = true;
|
|
6187
6195
|
if (m2 > 0 && (t3 = a2 ? e2.rowStart > S2.rowStart || e2.rowEnd < S2.rowEnd : e2.colStart > S2.colStart || e2.colEnd < S2.colEnd), t3) {
|
|
6188
6196
|
const t4 = Xa(_2, c.unionRanges(S2, _2), a2 ? 0 : 1, a2 ? 1 : 0);
|
|
6189
|
-
T2 && (
|
|
6197
|
+
T2 && (B2 = L2._mergeNodes(t4, false));
|
|
6190
6198
|
}
|
|
6191
6199
|
}
|
|
6192
|
-
return k2 && D2.length > 0 && k2(D2), M2 && F2.length > 0 && M2(F2), T2 &&
|
|
6200
|
+
return k2 && D2.length > 0 && k2(D2), M2 && F2.length > 0 && M2(F2), T2 && B2.length > 0 && T2(B2), N2 && O2.length > 0 && N2(O2), L2;
|
|
6193
6201
|
}
|
|
6194
6202
|
insertNonOverlapping(t2, e2) {
|
|
6195
6203
|
const n2 = e2?.onIntersect ?? ((t3, e3) => ({ ...t3, value: e3.value })), r2 = this.search(t2), s2 = /* @__PURE__ */ new Map(), i2 = /* @__PURE__ */ new Map(), a2 = this._options?.updateEntryOptions, h2 = a2?.onUpdated, d2 = a2?.onRemoved, u2 = a2?.onMerged, g2 = a2?.getSplit, m2 = a2?.getIntersect, f2 = a2?.getUpdate;
|
|
@@ -7188,9 +7196,9 @@ class vl {
|
|
|
7188
7196
|
let N2 = Number.MAX_SAFE_INTEGER;
|
|
7189
7197
|
r2 && (N2 = s2 ? r2.colEnd : r2.rowEnd);
|
|
7190
7198
|
const T2 = /* @__PURE__ */ new Set(), k2 = E2 ? /* @__PURE__ */ new Map() : null, F2 = [], O2 = v2.entries(Nl), D2 = { bounds: { min: g2, max: m2 } };
|
|
7191
|
-
let
|
|
7192
|
-
for (; !
|
|
7193
|
-
const t3 =
|
|
7199
|
+
let L2 = O2.next();
|
|
7200
|
+
for (; !L2.done; ) {
|
|
7201
|
+
const t3 = L2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
|
|
7194
7202
|
if (E2 && k2.set(e3, n3), g2 <= s3) {
|
|
7195
7203
|
const t4 = n3.getCount();
|
|
7196
7204
|
E2 ? (e3 >= a2 - C2 && na(n3.runs(D2), (t5, n4) => {
|
|
@@ -7206,14 +7214,14 @@ class vl {
|
|
|
7206
7214
|
}
|
|
7207
7215
|
b2 += r4 - t4, x2.push([e3, n3]);
|
|
7208
7216
|
}
|
|
7209
|
-
|
|
7217
|
+
L2 = O2.next();
|
|
7210
7218
|
}
|
|
7211
|
-
const
|
|
7219
|
+
const B2 = this._optionsMinor;
|
|
7212
7220
|
let z2 = false;
|
|
7213
7221
|
for (let t3 = 0; t3 < F2.length; t3++) {
|
|
7214
7222
|
const e3 = F2[t3], n3 = e3.majorIndex, r3 = e3.run;
|
|
7215
7223
|
let o3 = k2.get(n3);
|
|
7216
|
-
o3 || (o3 = new _a(
|
|
7224
|
+
o3 || (o3 = new _a(B2), k2.set(n3, o3), x2.push([n3, o3]), z2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), T2 && T2.delete(n3);
|
|
7217
7225
|
}
|
|
7218
7226
|
if (this._updateMajorSpan(x2, z2), T2 && T2.size > 0) {
|
|
7219
7227
|
const t3 = Array.from(T2.values()), e3 = Rs(t3);
|
|
@@ -7330,24 +7338,24 @@ class kl {
|
|
|
7330
7338
|
return o2 ? Number(r2) : r2;
|
|
7331
7339
|
case Dl:
|
|
7332
7340
|
return o2 ? this._vf64[t2] : this._vf32[t2];
|
|
7333
|
-
case
|
|
7341
|
+
case Ll:
|
|
7334
7342
|
return !!r2;
|
|
7335
7343
|
case Pl:
|
|
7336
7344
|
case Wl:
|
|
7337
7345
|
return this._cv(n2, o2 ? Number(r2) : r2);
|
|
7338
|
-
case
|
|
7346
|
+
case Bl:
|
|
7339
7347
|
return this._vi64[o2 ? t2 : r2];
|
|
7340
7348
|
case zl:
|
|
7341
7349
|
return this._vf64[o2 ? t2 : r2];
|
|
7342
|
-
case Vl:
|
|
7343
|
-
return Number.NaN;
|
|
7344
7350
|
case $l:
|
|
7351
|
+
return Number.NaN;
|
|
7352
|
+
case jl:
|
|
7345
7353
|
return Number.MAX_SAFE_INTEGER;
|
|
7346
7354
|
case Gl:
|
|
7347
7355
|
return Number.MIN_SAFE_INTEGER;
|
|
7348
7356
|
case Hl:
|
|
7349
7357
|
return 1 / 0;
|
|
7350
|
-
case
|
|
7358
|
+
case Vl:
|
|
7351
7359
|
return -1 / 0;
|
|
7352
7360
|
case Ul:
|
|
7353
7361
|
return null;
|
|
@@ -7387,7 +7395,7 @@ class kl {
|
|
|
7387
7395
|
let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Xl(t2[0], r2);
|
|
7388
7396
|
for (let e3 = 0; e3 < s2; e3++) {
|
|
7389
7397
|
const n3 = t2[e3], o3 = Xl(n3, r2);
|
|
7390
|
-
o3 !== zl && o3 !==
|
|
7398
|
+
o3 !== zl && o3 !== Bl || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
|
|
7391
7399
|
}
|
|
7392
7400
|
c2 || (a2 = null, i2 = null);
|
|
7393
7401
|
let d2, u2, g2, m2, f2, p2, _2, S2, w2 = false;
|
|
@@ -7399,13 +7407,13 @@ class kl {
|
|
|
7399
7407
|
case Ol:
|
|
7400
7408
|
d2[n3] = BigInt(r3);
|
|
7401
7409
|
break;
|
|
7402
|
-
case
|
|
7410
|
+
case Ll:
|
|
7403
7411
|
d2[n3] = BigInt(r3 ? 1 : 0);
|
|
7404
7412
|
break;
|
|
7405
7413
|
case Dl:
|
|
7406
7414
|
u2[n3] = r3;
|
|
7407
7415
|
break;
|
|
7408
|
-
case
|
|
7416
|
+
case Bl:
|
|
7409
7417
|
d2[n3] = r3;
|
|
7410
7418
|
break;
|
|
7411
7419
|
case zl:
|
|
@@ -7427,13 +7435,13 @@ class kl {
|
|
|
7427
7435
|
case Ol:
|
|
7428
7436
|
d2[r3] = o3;
|
|
7429
7437
|
break;
|
|
7430
|
-
case
|
|
7438
|
+
case Ll:
|
|
7431
7439
|
d2[r3] = o3 ? 1 : 0;
|
|
7432
7440
|
break;
|
|
7433
7441
|
case Dl:
|
|
7434
7442
|
u2[r3] = o3;
|
|
7435
7443
|
break;
|
|
7436
|
-
case
|
|
7444
|
+
case Bl:
|
|
7437
7445
|
_2[r3] = n3, m2[n3] = o3, n3++;
|
|
7438
7446
|
break;
|
|
7439
7447
|
case zl:
|
|
@@ -7451,22 +7459,22 @@ class kl {
|
|
|
7451
7459
|
return new kl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
|
|
7452
7460
|
}
|
|
7453
7461
|
}
|
|
7454
|
-
const Fl = 0.1, Ol = 1, Dl = 2,
|
|
7462
|
+
const Fl = 0.1, Ol = 1, Dl = 2, Ll = 3, Bl = 4, zl = 5, Pl = 6, Wl = 7, Hl = 8, Vl = 9, $l = 10, jl = 11, Gl = 12, Ul = 13, ql = 14, Jl = 127, Kl = { Undefined: ql }, Xl = (t2, e2) => {
|
|
7455
7463
|
switch (typeof t2) {
|
|
7456
7464
|
case "number":
|
|
7457
7465
|
const n2 = t2;
|
|
7458
|
-
if (Number.isNaN(n2)) return
|
|
7466
|
+
if (Number.isNaN(n2)) return $l;
|
|
7459
7467
|
if (n2 === 1 / 0) return Hl;
|
|
7460
|
-
if (n2 === -1 / 0) return
|
|
7468
|
+
if (n2 === -1 / 0) return Vl;
|
|
7461
7469
|
if (Object.is(n2, -0)) return Dl;
|
|
7462
|
-
if (n2 === Number.MAX_SAFE_INTEGER) return
|
|
7470
|
+
if (n2 === Number.MAX_SAFE_INTEGER) return jl;
|
|
7463
7471
|
if (n2 === Number.MIN_SAFE_INTEGER) return Gl;
|
|
7464
7472
|
if (Number.isInteger(n2) && n2 <= 2147483647 && n2 >= -2147483648) return Ol;
|
|
7465
7473
|
return Math.fround(n2) === n2 ? Dl : zl;
|
|
7466
7474
|
case "string":
|
|
7467
7475
|
return Pl;
|
|
7468
7476
|
case "boolean":
|
|
7469
|
-
return
|
|
7477
|
+
return Ll;
|
|
7470
7478
|
case "object":
|
|
7471
7479
|
if (null === t2) return Ul;
|
|
7472
7480
|
if (t2 instanceof Error) return Wl;
|
|
@@ -7475,7 +7483,7 @@ const Fl = 0.1, Ol = 1, Dl = 2, Bl = 3, Ll = 4, zl = 5, Pl = 6, Wl = 7, Hl = 8,
|
|
|
7475
7483
|
if (r2 < 128 || r2 > 255) throw new Error("Custom type must be between 128 and 255");
|
|
7476
7484
|
return r2;
|
|
7477
7485
|
case "bigint":
|
|
7478
|
-
return
|
|
7486
|
+
return Bl;
|
|
7479
7487
|
case "undefined":
|
|
7480
7488
|
return ql;
|
|
7481
7489
|
case "symbol":
|
|
@@ -7761,15 +7769,15 @@ class oc {
|
|
|
7761
7769
|
1 === p2 && (t2.colEnd = t2.colStart), 1 === _2 && (t2.rowEnd = t2.rowStart), A2 = new fl({ delegate: g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: t2, reuseResult: false }), bounds: t2, orientation: x2, dims: { major: I2 ? S2 : w2, minor: I2 ? w2 : S2 } });
|
|
7762
7770
|
} else A2 = g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: M2, reuseResult: false });
|
|
7763
7771
|
const N2 = i2.colStart, T2 = i2.rowStart, k2 = N2 - M2.colStart, F2 = T2 - M2.rowStart, O2 = x2 === v2 ? new kt.Builder() : new kt.TransposedBuilder(), D2 = new pl({ ...s2, bounds: i2, comparator: (I2 ? tc : ec)(i2, M2) }, R2, A2);
|
|
7764
|
-
let
|
|
7765
|
-
for (; !
|
|
7766
|
-
const t2 =
|
|
7772
|
+
let L2, B2 = D2.next();
|
|
7773
|
+
for (; !B2.done; ) {
|
|
7774
|
+
const t2 = B2.value;
|
|
7767
7775
|
let e2 = t2[1], r3 = t2[3];
|
|
7768
7776
|
const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex + k2, l3 = s3 ? s3.rowIndex : i3.rowIndex + F2;
|
|
7769
7777
|
let c2, u3;
|
|
7770
7778
|
e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 - N2, rowIndex: l3 - T2 }, this);
|
|
7771
7779
|
const g3 = I2 ? a3 : l3, m3 = I2 ? l3 : a3;
|
|
7772
|
-
O2.addValue(g3, m3, u3),
|
|
7780
|
+
O2.addValue(g3, m3, u3), B2 = D2.next();
|
|
7773
7781
|
}
|
|
7774
7782
|
if (C2 && y2 > S2 || E2 > w2) {
|
|
7775
7783
|
const t2 = this._values.clone();
|
|
@@ -7781,9 +7789,9 @@ class oc {
|
|
|
7781
7789
|
const e2 = hl(N2, T2 + w2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
|
|
7782
7790
|
t2.setValues(n2.tuples);
|
|
7783
7791
|
}
|
|
7784
|
-
|
|
7785
|
-
} else
|
|
7786
|
-
return
|
|
7792
|
+
L2 = new oc(t2, { colStart: N2, rowStart: T2, colEnd: N2 + y2 - 1, rowEnd: T2 + E2 - 1 }, this._type);
|
|
7793
|
+
} else L2 = this._cloneFromBuilder(O2, s2, y2, E2);
|
|
7794
|
+
return L2;
|
|
7787
7795
|
}
|
|
7788
7796
|
_fill(t2, n2, r2) {
|
|
7789
7797
|
if (null === r2) return void t2.delete(n2);
|
|
@@ -8147,54 +8155,54 @@ const sc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
|
|
|
8147
8155
|
let Tc, kc;
|
|
8148
8156
|
const Fc = (t2) => (Tc === t2 || (kc = "" + (t2 + 1), Tc = t2), kc);
|
|
8149
8157
|
let Oc, Dc;
|
|
8150
|
-
const
|
|
8158
|
+
const Lc = (t2) => {
|
|
8151
8159
|
if (Oc === t2) return Dc;
|
|
8152
8160
|
if (Oc = t2, t2 < 0) throw new Error("invalid column " + t2);
|
|
8153
8161
|
let e2 = "";
|
|
8154
8162
|
for (++t2; t2; t2 = Math.floor((t2 - 1) / 26)) e2 = String.fromCharCode((t2 - 1) % 26 + 65) + e2;
|
|
8155
8163
|
return Dc = e2, Dc;
|
|
8156
|
-
},
|
|
8164
|
+
}, Bc = /[^a-zA-Z0-9]/, zc = (t2) => {
|
|
8157
8165
|
if (!t2) return null;
|
|
8158
|
-
return
|
|
8166
|
+
return Lc(t2.colIndex) + Fc(t2.rowIndex);
|
|
8159
8167
|
}, Pc = (t2) => {
|
|
8160
8168
|
if (!t2) return Ac;
|
|
8161
|
-
const e2 =
|
|
8169
|
+
const e2 = Lc(t2.colIndex), n2 = Fc(t2.rowIndex);
|
|
8162
8170
|
return (t2.$colIndex ? "$" + e2 : e2) + (t2.$rowIndex ? "$" + n2 : n2);
|
|
8163
8171
|
}, Wc = (t2, e2) => {
|
|
8164
8172
|
let n2 = t2 ?? e2;
|
|
8165
8173
|
var r2;
|
|
8166
|
-
return n2 && (n2 = ko(n2), n2 = n2.replace(/'/g, "''"), r2 = n2,
|
|
8167
|
-
}, Hc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Ac,
|
|
8174
|
+
return n2 && (n2 = ko(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, Bc.test(r2) && (n2 = Fo(n2))), n2;
|
|
8175
|
+
}, Hc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Ac, Vc = (t2, e2, n2 = zc) => {
|
|
8168
8176
|
if (!t2) return null;
|
|
8169
8177
|
const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
|
|
8170
8178
|
if (r2 === s2 && o2 === i2) return n2({ colIndex: r2, rowIndex: o2 });
|
|
8171
8179
|
t2 = { ...e2, ...t2 };
|
|
8172
8180
|
const a2 = r2 === Number.MIN_SAFE_INTEGER || e2 && r2 <= e2.colStart && s2 >= e2.colEnd, l2 = o2 === Number.MIN_SAFE_INTEGER || e2 && o2 <= e2.rowStart && i2 >= e2.rowEnd;
|
|
8173
8181
|
let c2 = null;
|
|
8174
|
-
c2 = l2 ?
|
|
8182
|
+
c2 = l2 ? Lc(r2) : a2 ? Fc(o2) : n2({ colIndex: r2, rowIndex: o2 });
|
|
8175
8183
|
let h2 = null;
|
|
8176
|
-
return h2 = l2 ?
|
|
8177
|
-
},
|
|
8184
|
+
return h2 = l2 ? Lc(s2) : a2 ? Fc(i2) : n2({ colIndex: s2, rowIndex: i2 }), c2 + ":" + h2;
|
|
8185
|
+
}, $c = (t2, e2, n2 = Pc) => {
|
|
8178
8186
|
if (!t2) return Ac;
|
|
8179
8187
|
const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
|
|
8180
8188
|
let i2 = null;
|
|
8181
|
-
if (o2 === Number.MIN_SAFE_INTEGER ? (i2 =
|
|
8189
|
+
if (o2 === Number.MIN_SAFE_INTEGER ? (i2 = Lc(r2), t2.$colIndex && (i2 = "$" + i2)) : s2 ? (i2 = Fc(o2), t2.$rowIndex && (i2 = "$" + i2)) : i2 = n2(t2), t2.sheetName || e2) {
|
|
8182
8190
|
const n3 = Wc(t2.sheetName, e2);
|
|
8183
8191
|
i2 = Hc(n3, i2);
|
|
8184
8192
|
}
|
|
8185
8193
|
return i2;
|
|
8186
|
-
},
|
|
8194
|
+
}, jc = (t2, e2, n2 = Pc) => {
|
|
8187
8195
|
if (!t2) return Ac;
|
|
8188
8196
|
const r2 = void 0 !== t2.rowStart && t2.rowStart === t2.rowEnd;
|
|
8189
8197
|
if (void 0 !== t2.colStart && t2.colStart === t2.colEnd && r2) return n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
8190
8198
|
t2 = { ...e2, ...t2 };
|
|
8191
8199
|
const o2 = e2 && t2.rowStart <= e2.rowStart && t2.rowEnd >= e2.rowEnd, s2 = e2 && t2.colStart <= e2.colStart && t2.colEnd >= e2.colEnd;
|
|
8192
8200
|
let i2 = null;
|
|
8193
|
-
o2 ? (i2 =
|
|
8201
|
+
o2 ? (i2 = Lc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 = Fc(t2.rowStart), i2 = t2.$rowStart ? "$" + i2 : i2) : i2 = n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
8194
8202
|
let a2 = null;
|
|
8195
|
-
return o2 ? (a2 =
|
|
8203
|
+
return o2 ? (a2 = Lc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 = Fc(t2.rowEnd), a2 = t2.$rowEnd ? "$" + a2 : a2) : a2 = n2({ colIndex: t2.colEnd, rowIndex: t2.rowEnd, $colIndex: t2.$colEnd, $rowIndex: t2.$rowEnd }), i2 + ":" + a2;
|
|
8196
8204
|
}, Gc = (t2, e2, n2 = Pc) => {
|
|
8197
|
-
const r2 =
|
|
8205
|
+
const r2 = jc(t2, e2, n2), o2 = Wc(t2?.sheetName, e2?.sheetName);
|
|
8198
8206
|
return Hc(o2, r2);
|
|
8199
8207
|
}, Uc = (t2, e2 = false) => {
|
|
8200
8208
|
if (!t2) return null;
|
|
@@ -8247,7 +8255,7 @@ const Bc = (t2) => {
|
|
|
8247
8255
|
o2.sheetName = r2[0];
|
|
8248
8256
|
} else o2 = qc(t2, e2, n2);
|
|
8249
8257
|
return o2 || null;
|
|
8250
|
-
}, Kc = (t2, e2, n2 =
|
|
8258
|
+
}, Kc = (t2, e2, n2 = jc, r2 = Pc) => {
|
|
8251
8259
|
if (!t2 || 0 === t2.length) return null;
|
|
8252
8260
|
const o2 = [], s2 = t2.length;
|
|
8253
8261
|
for (let i2 = 0; i2 < s2; i2++) {
|
|
@@ -8416,7 +8424,7 @@ const Bc = (t2) => {
|
|
|
8416
8424
|
}, uh = (t2, e2, n2) => {
|
|
8417
8425
|
let r2 = "";
|
|
8418
8426
|
const o2 = t2.colIndex;
|
|
8419
|
-
o2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? r2 += "$" +
|
|
8427
|
+
o2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? r2 += "$" + Lc(o2) : r2 += Lc(o2 + n2));
|
|
8420
8428
|
const s2 = t2.rowIndex;
|
|
8421
8429
|
return s2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? r2 += "$" + Fc(s2) : r2 += Fc(s2 + e2)), r2;
|
|
8422
8430
|
}, gh = (t2, e2, n2, r2) => {
|
|
@@ -8550,7 +8558,7 @@ class Ih {
|
|
|
8550
8558
|
}
|
|
8551
8559
|
toJSON() {
|
|
8552
8560
|
const t2 = this.ref;
|
|
8553
|
-
return [
|
|
8561
|
+
return [Vc(t2), this.formula.getTextAt(t2.rowStart, t2.colStart)];
|
|
8554
8562
|
}
|
|
8555
8563
|
getCoords() {
|
|
8556
8564
|
return this.ref;
|
|
@@ -8614,7 +8622,7 @@ var Ah;
|
|
|
8614
8622
|
(Ah || (Ah = {})).Type = { Style: "style", Table: "table", Merge: "merge", Hyperlink: "hyperlink", Comments: "comments", Unlock: "unlock", Contentful: "contentful", Conditional: "conditional", Formula: "formula", Spill: "spill", Continuous: "continuous", Pending: "pending", CalcError: "calcError" };
|
|
8615
8623
|
const Mh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: false, [Ah.Type.Merge]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Formula]: false, [Ah.Type.Spill]: false, [Ah.Type.Pending]: false, [Ah.Type.CalcError]: false, [Ah.Type.Contentful]: false, [Ah.Type.Conditional]: false, [Ah.Type.Continuous]: false }), Nh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: false, [Ah.Type.Merge]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Formula]: false, [Ah.Type.Spill]: false, [Ah.Type.Pending]: false, [Ah.Type.CalcError]: false, [Ah.Type.Conditional]: false, [Ah.Type.Continuous]: false }), Th = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: true, [Ah.Type.Merge]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Formula]: false });
|
|
8616
8624
|
Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Contentful]: false, [Ah.Type.Formula]: false });
|
|
8617
|
-
const kh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Continuous]: false, [Ah.Type.Contentful]: false }), Fh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", Oh = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, Dh = "The range is outside of the bounds of the sheet.",
|
|
8625
|
+
const kh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Continuous]: false, [Ah.Type.Contentful]: false }), Fh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", Oh = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, Dh = "The range is outside of the bounds of the sheet.", Lh = "Listener can not be null", Bh = "We can't insert items. The sheet is protected.", zh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Ph = "Overlapping ranges can not be merged.", Wh = "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.", Hh = "Unable to partially fill over merged cells.", Vh = "Unable to sort merged cells unless they are all the same size.", $h = "Sheet has been closed. No further operations are allowed.", jh = "IteratorContext can only be used during visit.", Gh = "When using addresses directly from the sheet do not include the sheet name.", Uh = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, qh = "'setValue' expects a single value; when working with an array use 'setValue'.", Jh = "Multiple selection ranges can not be copied.", Kh = "Unable to determine source.", Xh = "When pasting before or after the cut area both areas must align.";
|
|
8618
8626
|
var Yh, Qh;
|
|
8619
8627
|
(Qh = Yh || (Yh = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, Qh.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
|
|
8620
8628
|
class Zh {
|
|
@@ -8672,14 +8680,14 @@ const td = (t2) => {
|
|
|
8672
8680
|
return '"' + e2 + '"';
|
|
8673
8681
|
}, hd = "Thin", dd = "Hairline", ud = "Extra Light", gd = "Ultra Light", md = "Light", fd = "Normal", pd = "Regular", _d = "Medium", Sd = "Semi Bold", wd = "Demi Bold", yd = "Bold", Ed = "Extra Bold", Cd = "Ultra Bold", bd = "Black", vd = "Heavy", xd = "Extra Black", Id = "Ultra Black", Rd = "lighter", Ad = "normal", Md = "bold", Nd = "bolder", Td = /* @__PURE__ */ new Map();
|
|
8674
8682
|
Td.set(o.textToKey(hd), 100), Td.set(o.textToKey(dd), 100), Td.set(o.textToKey(ud), 200), Td.set(o.textToKey(gd), 200), Td.set(o.textToKey(md), 300), Td.set(o.textToKey(fd), 400), Td.set(o.textToKey(pd), 400), Td.set(o.textToKey(_d), 500), Td.set(o.textToKey(Sd), 600), Td.set(o.textToKey(wd), 600), Td.set(o.textToKey(fd), 400), Td.set(o.textToKey(yd), 700), Td.set(o.textToKey(Ed), 800), Td.set(o.textToKey(Cd), 800), Td.set(o.textToKey(bd), 900), Td.set(o.textToKey(vd), 900), Td.set(o.textToKey(xd), 950), Td.set(o.textToKey(Id), 950), Td.set(o.textToKey(Rd), 100), Td.set(o.textToKey(Ad), 400), Td.set(o.textToKey(Md), 700), Td.set(o.textToKey(Nd), 700);
|
|
8675
|
-
const kd = "xx-small", Fd = "x-small", Od = "small", Dd = "medium",
|
|
8676
|
-
|
|
8683
|
+
const kd = "xx-small", Fd = "x-small", Od = "small", Dd = "medium", Ld = "large", Bd = "x-large", zd = "xx-large", Pd = "xxx-large", Wd = "smaller", Hd = "larger", Vd = "math", $d = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), jd = /* @__PURE__ */ new Map();
|
|
8684
|
+
jd.set(o.textToKey(kd), (t2) => 0.4 * t2), jd.set(o.textToKey(Fd), (t2) => 0.5 * t2), jd.set(o.textToKey(Od), (t2) => 0.6 * t2), jd.set(o.textToKey(Dd), (t2) => t2), jd.set(o.textToKey(Ld), (t2) => 1.1 * t2), jd.set(o.textToKey(Bd), (t2) => 1.25 * t2), jd.set(o.textToKey(zd), (t2) => 1.5 * t2), jd.set(o.textToKey(Pd), (t2) => 2 * t2), jd.set(o.textToKey(Wd), (t2) => 0.9 * t2), jd.set(o.textToKey(Hd), (t2) => 1.1 * t2), jd.set(o.textToKey(Vd), (t2) => t2);
|
|
8677
8685
|
const Gd = (t2, e2 = 11, n2 = "pt") => {
|
|
8678
8686
|
if (!t2) return null;
|
|
8679
8687
|
let r2 = e2;
|
|
8680
8688
|
t2 = t2.trim().toLowerCase();
|
|
8681
8689
|
const s2 = "pt" === n2 ? Ko.getDeviceScale() : 1, i2 = "pt" === n2 ? 1 : Ko.getDeviceScale();
|
|
8682
|
-
if (
|
|
8690
|
+
if ($d.test(t2)) {
|
|
8683
8691
|
const e3 = parseFloat(t2);
|
|
8684
8692
|
isNaN(e3) || (t2 = e3 + n2);
|
|
8685
8693
|
}
|
|
@@ -8689,7 +8697,7 @@ const Gd = (t2, e2 = 11, n2 = "pt") => {
|
|
|
8689
8697
|
else if (t2.endsWith("rem")) r2 = parseFloat(t2.substring(0, t2.length - 3).trim()) * e2;
|
|
8690
8698
|
else if (t2.endsWith("%")) r2 = parseFloat(t2.substring(0, t2.length - 1).trim()) / 100 * e2;
|
|
8691
8699
|
else if ("string" == typeof t2) {
|
|
8692
|
-
const n3 = o.textToKey(t2), r3 =
|
|
8700
|
+
const n3 = o.textToKey(t2), r3 = jd.get(n3);
|
|
8693
8701
|
if (r3) return r3(e2);
|
|
8694
8702
|
}
|
|
8695
8703
|
return isNaN(r2) ? null : r2;
|
|
@@ -8803,7 +8811,7 @@ const Iu = (t2, e2) => {
|
|
|
8803
8811
|
if ("string" == typeof t2 && (t2 = lu(t2)), !t2) return null;
|
|
8804
8812
|
const n2 = {};
|
|
8805
8813
|
return t2.style && (n2.style = t2.style), t2.color && (n2.color = t2.color), t2.isIStroke ? t2.getProperties() : n2;
|
|
8806
|
-
}, properties: { color: Ru } }, Mu = { shorthand: (t2, e2) => "none" === t2 || "transparent" === t2 || "object" == typeof t2 && 0 === Object.keys(t2).length ? { type: Ds.Type.None } : (t2.getType?.(), Ds.Type.None, t2) }, Nu = { shorthand: (t2, e2) => ("object" == typeof (t2 = Iu(t2, e2.parseColor.bind(e2))) && t2.color && (t2.type = Ds.Type.Solid), t2), merge: (t2, e2, n2) => t2.color ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === Ds.Type.Solid ? { ...e2 } : e2?.type === Ds.Type.Gradient ? { type: Ds.Type.Solid, color: e2?.stops?.[0]?.color ?? n2.parseColor(
|
|
8814
|
+
}, properties: { color: Ru } }, Mu = { shorthand: (t2, e2) => "none" === t2 || "transparent" === t2 || "object" == typeof t2 && 0 === Object.keys(t2).length ? { type: Ds.Type.None } : (t2.getType?.(), Ds.Type.None, t2) }, Nu = { shorthand: (t2, e2) => ("object" == typeof (t2 = Iu(t2, e2.parseColor.bind(e2))) && t2.color && (t2.type = Ds.Type.Solid), t2), merge: (t2, e2, n2) => t2.color ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === Ds.Type.Solid ? { ...e2 } : e2?.type === Ds.Type.Gradient ? { type: Ds.Type.Solid, color: e2?.stops?.[0]?.color ?? n2.parseColor(Bs.Scheme.Bg1) } : e2?.type === Ds.Type.Pattern ? { type: Ds.Type.Solid, color: e2?.foreground ?? n2.parseColor(Bs.Scheme.Bg1) } : t2 ? { ...t2 } : null), properties: { color: Ru } }, Tu = { shorthand: (t2, e2) => ("object" == typeof t2 && t2.stops && (t2.type = Ds.Type.Gradient), t2), merge: (t2, e2, n2) => t2.stops ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === Ds.Type.Gradient ? { ...e2 } : e2?.type === Ds.Type.Solid ? { type: Ds.Type.Gradient, stops: [{ offset: 0, color: e2?.color ?? Bs.Scheme.Accent1 }, { offset: 1, color: Bs.Scheme.Bg1 }] } : e2?.type === Ds.Type.Pattern ? { type: Ds.Type.Gradient, stops: [{ offset: 0, color: e2?.foreground ?? Bs.Scheme.Bg1 }, { offset: 1, color: e2?.background ?? Bs.Scheme.Accent1 }] } : t2 ? { ...t2 } : null), properties: { stops: { shorthand: (t2, e2) => t2, arrayType: { shorthand: (t2, e2) => t2 = Iu(t2, e2.parseColor.bind(e2)), properties: { color: Ru } } } } }, ku = { shorthand: (t2, e2) => {
|
|
8807
8815
|
if ("object" == typeof t2) {
|
|
8808
8816
|
const e3 = t2;
|
|
8809
8817
|
(e3.foreground || e3.background || e3.patternType) && (e3.type = Ds.Type.Pattern, e3.patternType = e3.patternType ?? Ds.BuiltInSheetPattern.Solid);
|
|
@@ -8813,7 +8821,7 @@ const Iu = (t2, e2) => {
|
|
|
8813
8821
|
if (t2.background && t2.foreground) return t2;
|
|
8814
8822
|
e2?.toJSON && (e2 = e2.toJSON());
|
|
8815
8823
|
const r2 = Ds.BuiltInSheetPattern.MediumGray;
|
|
8816
|
-
return e2?.type === Ds.Type.Pattern ? { ...e2, ...t2 } : e2?.type === Ds.Type.Solid ? { patternType: r2, ...t2, foreground: e2?.color ??
|
|
8824
|
+
return e2?.type === Ds.Type.Pattern ? { ...e2, ...t2 } : e2?.type === Ds.Type.Solid ? { patternType: r2, ...t2, foreground: e2?.color ?? Bs.Named.WindowText, background: Bs.Scheme.Bg1 } : e2?.type === Ds.Type.Gradient ? { patternType: r2, ...t2, foreground: e2?.stops?.[0]?.color ?? Bs.Named.WindowText, background: e2?.stops?.[1]?.color ?? Bs.Scheme.Bg1 } : t2 ? { type: Ds.Type.Pattern, patternType: Ds.BuiltInSheetPattern.Solid, foreground: Bs.Named.WindowText, background: Bs.Scheme.Bg1, ...t2 } : null;
|
|
8817
8825
|
}, properties: { foreground: Ru, background: Ru } }, Fu = { properties: { font: { shorthand: (t2, e2) => {
|
|
8818
8826
|
if ("string" == typeof t2) {
|
|
8819
8827
|
const e3 = td(t2);
|
|
@@ -8872,7 +8880,7 @@ const Iu = (t2, e2) => {
|
|
|
8872
8880
|
return ai(t2);
|
|
8873
8881
|
}
|
|
8874
8882
|
return null;
|
|
8875
|
-
} } } }, Ou = { properties: { style: Fu } }, Du = Object.freeze({ displayText: "", conditionalColor: null, repeatChars: o.EmptyArray, spacingChars: o.EmptyArray, repeatPlaceholder: null, formattedRuns: Object.freeze({ runs: o.EmptyArray, length: 0, width: 0, lastRepeatIndex: -1 }), canWrap: false, asDate: null, isDateFormat: false, isTimeFormat: false, isDate1904: false }),
|
|
8883
|
+
} } } }, Ou = { properties: { style: Fu } }, Du = Object.freeze({ displayText: "", conditionalColor: null, repeatChars: o.EmptyArray, spacingChars: o.EmptyArray, repeatPlaceholder: null, formattedRuns: Object.freeze({ runs: o.EmptyArray, length: 0, width: 0, lastRepeatIndex: -1 }), canWrap: false, asDate: null, isDateFormat: false, isTimeFormat: false, isDate1904: false }), Lu = (e2, n2, r2, s2, i2, a2 = false) => {
|
|
8876
8884
|
if (null == e2) return Du;
|
|
8877
8885
|
let l2 = "", c2 = null, h2 = null, d2 = null;
|
|
8878
8886
|
if (r2 === t.Error) l2 = e2.getLabel();
|
|
@@ -8931,16 +8939,16 @@ const Iu = (t2, e2) => {
|
|
|
8931
8939
|
}
|
|
8932
8940
|
const b2 = Ur(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 };
|
|
8933
8941
|
return Object.freeze(v2);
|
|
8934
|
-
},
|
|
8935
|
-
const t2 = [{ named: Si.BuiltInName.Normal }, { named: Si.BuiltInName.RowLevel }, { named: Si.BuiltInName.ColLevel }, { named: Si.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Si.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Si.BuiltInName.Percent, numberFormat: "0%" }, { named: Si.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Si.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Si.BuiltInName.Hyperlink, font: { ...
|
|
8942
|
+
}, Bu = Object.freeze({ fallbacks: o.EmptyArray, weight: 400, style: Ko.Style.Normal, fill: Bs.Scheme.Tx1, letterSpacing: null, underline: Ko.UnderlineStyle.None, strike: false, scheme: Ko.Scheme.Minor, verticalAlign: Ko.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), zu = Object.freeze({ style: Qs.StrokeStyle.None, color: Bs.Scheme.Tx1 }), Pu = Object.freeze({ [Qs.Edge.Top]: zu, [Qs.Edge.Left]: zu, [Qs.Edge.Bottom]: zu, [Qs.Edge.Right]: zu, [Qs.Edge.Horizontal]: zu, [Qs.Edge.Vertical]: zu, [Qs.Edge.DiagonalUp]: zu, [Qs.Edge.DiagonalDown]: zu }), Wu = Object.freeze({ horizontal: yo.HorizontalAlignment.General, vertical: yo.VerticalAlignment.Bottom, indent: 0, relativeIndent: 0, overflow: yo.Overflow.Visible, rotation: 0, stacked: false, quotePrefix: false, justifyLastLine: false, readingOrder: yo.ReadingDirection.Auto, readingDirection: yo.ReadingDirection.Auto }), Hu = Object.freeze({ locked: false, formulaHidden: false }), Vu = Object.freeze({ fill: { type: Ds.Type.None }, numberFormat: "General", alignment: Wu, font: Bu, border: Pu, protection: Hu, quotePrefix: false, namedStyle: null }), $u = (() => {
|
|
8943
|
+
const t2 = [{ named: Si.BuiltInName.Normal }, { named: Si.BuiltInName.RowLevel }, { named: Si.BuiltInName.ColLevel }, { named: Si.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Si.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Si.BuiltInName.Percent, numberFormat: "0%" }, { named: Si.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Si.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Si.BuiltInName.Hyperlink, font: { ...Bu, fill: Bs.Scheme.Hlink, underline: Ko.UnderlineStyle.Single } }, { named: Si.BuiltInName.FollowedHyperlink, font: { ...Bu, fill: Bs.Scheme.FolHlink, underline: Ko.UnderlineStyle.Single } }, { named: Si.BuiltInName.Note, fill: "FFFFFFCC", font: { ...Bu, style: Ko.Style.Normal, fill: Bs.Scheme.Tx1 }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" }, top: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" }, right: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" } } }, { named: Si.BuiltInName.WarningText, font: { ...Bu, fill: "FFFF0000" } }, { named: Si.BuiltInName.Unknown12 }, { named: Si.BuiltInName.Unknown13 }, { named: Si.BuiltInName.Unknown14 }, { named: Si.BuiltInName.Title, font: { ...Bu, size: 18, fill: Bs.Scheme.Tx2 } }, { named: Si.BuiltInName.Heading1, font: { ...Bu, size: 15, weight: "bold", fill: Bs.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Thick, color: Bs.Scheme.Accent1 } } }, { named: Si.BuiltInName.Heading2, font: { ...Bu, size: 13, weight: "bold", fill: Bs.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Thick, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Si.BuiltInName.Heading3, font: { ...Bu, weight: "bold", fill: Bs.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Medium, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Si.BuiltInName.Heading4, font: { weight: "bold", fill: Bs.Scheme.Tx2, ...Bu } }, { named: Si.BuiltInName.Input, fill: "FFFFCC99", font: { ...Bu, fill: "FF3F3F76" }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Si.BuiltInName.Output, fill: "FFF2F2F2", font: { ...Bu, fill: "FF3F3F3F" }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" }, top: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" }, right: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" } } }, { named: Si.BuiltInName.Calculation, fill: "FFF2F2F2", font: { ...Bu, fill: "FFFA7D00" }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Si.BuiltInName.CheckCell, fill: "FFA5A5A5", font: { ...Bu, fill: Bs.Scheme.Bg1 }, border: { left: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" }, top: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" }, right: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" }, bottom: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" } } }, { named: Si.BuiltInName.LinkedCell, font: { ...Bu, fill: "FFFA7D00" }, border: { bottom: { style: Qs.StrokeStyle.Double, color: "FFFF8001" } } }, { named: Si.BuiltInName.Total, font: { ...Bu, weight: "bold", fill: Bs.Scheme.Tx1 }, border: { top: { style: Qs.StrokeStyle.Thin, color: Bs.Scheme.Accent1 }, bottom: { style: Qs.StrokeStyle.Double, color: Bs.Scheme.Accent1 } } }, { named: Si.BuiltInName.Good, fill: "FFC6EFCE", font: { ...Bu, fill: "FF006100" } }, { named: Si.BuiltInName.Bad, fill: "FFFFC7CE", font: { ...Bu, fill: "FF9C0006" } }, { named: Si.BuiltInName.Neutral, fill: "FFFFEB9C", font: { ...Bu, fill: "FF9C5700" } }, { named: Si.BuiltInName.Accent1 }, { named: Si.BuiltInName.Accent1_20 }, { named: Si.BuiltInName.Accent1_40 }, { named: Si.BuiltInName.Accent1_60 }, { named: Si.BuiltInName.Accent2 }, { named: Si.BuiltInName.Accent2_20 }, { named: Si.BuiltInName.Accent2_40 }, { named: Si.BuiltInName.Accent2_60 }, { named: Si.BuiltInName.Accent3 }, { named: Si.BuiltInName.Accent3_20 }, { named: Si.BuiltInName.Accent3_40 }, { named: Si.BuiltInName.Accent3_60 }, { named: Si.BuiltInName.Accent4 }, { named: Si.BuiltInName.Accent4_20 }, { named: Si.BuiltInName.Accent4_40 }, { named: Si.BuiltInName.Accent4_60 }, { named: Si.BuiltInName.Accent5 }, { named: Si.BuiltInName.Accent5_20 }, { named: Si.BuiltInName.Accent5_40 }, { named: Si.BuiltInName.Accent5_60 }, { named: Si.BuiltInName.Accent6 }, { named: Si.BuiltInName.Accent6_20 }, { named: Si.BuiltInName.Accent6_40 }, { named: Si.BuiltInName.Accent6_60 }, { named: Si.BuiltInName.ExplanatoryText, font: { ...Bu, style: Ko.Style.Italic, fill: "FF7F7F7F" } }];
|
|
8936
8944
|
for (let e2 = 29; e2 <= 52; e2++) {
|
|
8937
8945
|
const n2 = (e2 - 29) % 4, r2 = Math.floor((e2 - 29) / 4);
|
|
8938
8946
|
let o2 = "";
|
|
8939
|
-
1 === n2 ? o2 = " lumMod 20, lumOff 80" : 2 === n2 ? o2 = " lumMod 40, lumOff 60" : 3 === n2 && (o2 = " lumMod 60, lumOff 40"), t2[e2].fill = `accent${r2 + 1}${o2}`, t2[e2].font = { fill: 0 === n2 ?
|
|
8947
|
+
1 === n2 ? o2 = " lumMod 20, lumOff 80" : 2 === n2 ? o2 = " lumMod 40, lumOff 60" : 3 === n2 && (o2 = " lumMod 60, lumOff 40"), t2[e2].fill = `accent${r2 + 1}${o2}`, t2[e2].font = { fill: 0 === n2 ? Bs.Scheme.Bg1 : Bs.Scheme.Tx1, ...Bu };
|
|
8940
8948
|
}
|
|
8941
8949
|
return o.deepFreeze(t2);
|
|
8942
8950
|
})();
|
|
8943
|
-
const
|
|
8951
|
+
const ju = new class {
|
|
8944
8952
|
_svgImage(t2, e2, n2, r2 = 8) {
|
|
8945
8953
|
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 };
|
|
8946
8954
|
}
|
|
@@ -9158,7 +9166,7 @@ class Yu extends qu {
|
|
|
9158
9166
|
}
|
|
9159
9167
|
getFill() {
|
|
9160
9168
|
const t2 = this._value("fill");
|
|
9161
|
-
return this._c.parseColor(t2 ??
|
|
9169
|
+
return this._c.parseColor(t2 ?? Bs.Scheme.Bg1);
|
|
9162
9170
|
}
|
|
9163
9171
|
getLetterSpacing() {
|
|
9164
9172
|
return this._value("letterSpacing") ?? this.getSize() / -25;
|
|
@@ -9205,7 +9213,7 @@ class tg extends qu {
|
|
|
9205
9213
|
return Ds.Type.Solid;
|
|
9206
9214
|
}
|
|
9207
9215
|
getColor() {
|
|
9208
|
-
return this._c.parseColor(this._value("color") ??
|
|
9216
|
+
return this._c.parseColor(this._value("color") ?? Bs.Scheme.Bg1);
|
|
9209
9217
|
}
|
|
9210
9218
|
toCSS(t2) {
|
|
9211
9219
|
return { background: this.getColor().toCSS(t2) };
|
|
@@ -9219,7 +9227,7 @@ class eg extends qu {
|
|
|
9219
9227
|
return this._value("offset") ?? 0;
|
|
9220
9228
|
}
|
|
9221
9229
|
getColor() {
|
|
9222
|
-
return this._c.parseColor(this._value("color") ??
|
|
9230
|
+
return this._c.parseColor(this._value("color") ?? Bs.Scheme.Bg1);
|
|
9223
9231
|
}
|
|
9224
9232
|
}
|
|
9225
9233
|
class ng extends qu {
|
|
@@ -9262,18 +9270,18 @@ class rg extends qu {
|
|
|
9262
9270
|
return Ds.Type.Pattern;
|
|
9263
9271
|
}
|
|
9264
9272
|
getBackground() {
|
|
9265
|
-
const t2 = this._value("background") ??
|
|
9273
|
+
const t2 = this._value("background") ?? Bs.Named.Window;
|
|
9266
9274
|
return this._c.parseColor(t2);
|
|
9267
9275
|
}
|
|
9268
9276
|
getForeground() {
|
|
9269
|
-
return this._c.parseColor(this._value("foreground") ??
|
|
9277
|
+
return this._c.parseColor(this._value("foreground") ?? Bs.Scheme.Tx1);
|
|
9270
9278
|
}
|
|
9271
9279
|
getPatternType() {
|
|
9272
9280
|
return this._value("patternType") ?? Ds.BuiltInSheetPattern.None;
|
|
9273
9281
|
}
|
|
9274
9282
|
toCSS(t2) {
|
|
9275
9283
|
const e2 = this.getBackground().toCSS(t2), n2 = this.getForeground().toCSS(t2);
|
|
9276
|
-
return this.getPatternType() === Ds.BuiltInSheetPattern.None ? { background: "none" } : this.getPatternType() === Ds.BuiltInSheetPattern.Solid ? { background: this.getForeground().toCSS(t2) } :
|
|
9284
|
+
return this.getPatternType() === Ds.BuiltInSheetPattern.None ? { background: "none" } : this.getPatternType() === Ds.BuiltInSheetPattern.Solid ? { background: this.getForeground().toCSS(t2) } : ju.toCSS(this.getPatternType(), n2, e2);
|
|
9277
9285
|
}
|
|
9278
9286
|
toJSON() {
|
|
9279
9287
|
const t2 = { type: Ds.Type.Pattern };
|
|
@@ -9351,7 +9359,7 @@ class og {
|
|
|
9351
9359
|
}
|
|
9352
9360
|
}
|
|
9353
9361
|
const sg = (t2, e2, n2) => {
|
|
9354
|
-
const r2 = n2?.rowStart ?? c.EmptyCell.rowIndex, o2 = n2?.colStart ?? c.EmptyCell.colIndex, s2 = [
|
|
9362
|
+
const r2 = n2?.rowStart ?? c.EmptyCell.rowIndex, o2 = n2?.colStart ?? c.EmptyCell.colIndex, s2 = [Vu], i2 = t2.getNormalRanged(), a2 = i2.getPropertiesAt(r2, o2, null);
|
|
9355
9363
|
if (a2 && s2.push(a2), !e2) {
|
|
9356
9364
|
return new ig({ styles: t2, range: n2, properties: s2, layerTypes: null, direct: i2 });
|
|
9357
9365
|
}
|
|
@@ -9558,7 +9566,7 @@ const mg = new class {
|
|
|
9558
9566
|
} else p2 = g2;
|
|
9559
9567
|
let _2 = false;
|
|
9560
9568
|
return void 0 !== c2 && (null === c2 ? (a2.value = null, a2.type = t.Null) : (a2.value = c2, a2.type = l2), _2 = true), void 0 !== p2 && (a2.style = p2, _2 = true), void 0 !== d2 && (a2.hyperlink = d2, _2 = true), void 0 !== u2 && (a2.formula = u2, _2 = true), s2 || (a2.stringToParse = m2, _2 = true), _2 ? (a2.type = l2, a2) : void 0;
|
|
9561
|
-
}, pg = (t2, e2, n2, r2) =>
|
|
9569
|
+
}, pg = (t2, e2, n2, r2) => Lu(n2, e2, t2, e2.getNumberFormat(), (t3) => r2.styles.parseColor(t3), r2.date1904), _g = (e2, n2, r2, o2, s2 = false) => {
|
|
9562
9570
|
if (e2 === t.Null) return null;
|
|
9563
9571
|
let i2 = "";
|
|
9564
9572
|
if (s2) i2 = "" + r2;
|
|
@@ -9617,9 +9625,9 @@ const mg = new class {
|
|
|
9617
9625
|
let M2 = x2(h2 + b2), N2 = M2 - R2, T2 = h2, k2 = h2;
|
|
9618
9626
|
const F2 = { x: 0, y: 0, width: N2, height: d2?.height ?? 0 };
|
|
9619
9627
|
const O2 = h2 - h2 + b2;
|
|
9620
|
-
let D2 = d2 ? d2.width - N2 : 0,
|
|
9621
|
-
N2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (k2 = I2(M2 + D2), null !== a2 && (k2 = Math.min(k2, a2.colIndex - 1)), M2 = x2(k2), C2 = D2, y2 = k2 - h2), S2 !== p.Right && S2 !== p.Center || (T2 = I2(R2 - D2), null !== i2 && (T2 = Math.max(T2, i2.colIndex + 1)), R2 = x2(T2), E2 = D2, w2 = h2 - T2), F2.x = A2 - R2,
|
|
9622
|
-
return { anchorBounds: F2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds:
|
|
9628
|
+
let D2 = d2 ? d2.width - N2 : 0, L2 = F2;
|
|
9629
|
+
N2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (k2 = I2(M2 + D2), null !== a2 && (k2 = Math.min(k2, a2.colIndex - 1)), M2 = x2(k2), C2 = D2, y2 = k2 - h2), S2 !== p.Right && S2 !== p.Center || (T2 = I2(R2 - D2), null !== i2 && (T2 = Math.max(T2, i2.colIndex + 1)), R2 = x2(T2), E2 = D2, w2 = h2 - T2), F2.x = A2 - R2, L2.x = F2.x), b2 > 1 && (y2 = S2 === p.Center ? Math.max(O2 - 1, y2) : b2 - 1, M2 = x2(h2 + 1), F2.width = M2 - R2, L2 = { ...F2 }, L2.width = N2);
|
|
9630
|
+
return { anchorBounds: F2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: L2 };
|
|
9623
9631
|
};
|
|
9624
9632
|
class Eg {
|
|
9625
9633
|
constructor(t2, e2) {
|
|
@@ -9726,7 +9734,7 @@ class xg {
|
|
|
9726
9734
|
}
|
|
9727
9735
|
getA1() {
|
|
9728
9736
|
const t2 = this._coords;
|
|
9729
|
-
return t2 ?
|
|
9737
|
+
return t2 ? jc(this._options.resolveRange(t2).getCoords()) : Ac;
|
|
9730
9738
|
}
|
|
9731
9739
|
getSheet() {
|
|
9732
9740
|
return this._options.sheet;
|
|
@@ -9851,7 +9859,7 @@ class xg {
|
|
|
9851
9859
|
getNumberFormat(t2) {
|
|
9852
9860
|
if (void 0 !== t2) {
|
|
9853
9861
|
const e2 = this._v;
|
|
9854
|
-
return
|
|
9862
|
+
return Lu(e2, this.getStyle(), this._t, t2, (t3) => this._options.styles.parseColor(t3), this._isDate1904());
|
|
9855
9863
|
}
|
|
9856
9864
|
return pg(this._t, this.getStyle(), this._v, this._options);
|
|
9857
9865
|
}
|
|
@@ -10051,7 +10059,7 @@ const Tg = (t2, n2, r2, o2 = false) => {
|
|
|
10051
10059
|
if (t2.rowStart <= n2.rowStart && t2.rowEnd >= n2.rowEnd) return e.Orientation.Column;
|
|
10052
10060
|
}
|
|
10053
10061
|
return t2 ? ((t3) => t3.rowEnd - t3.rowStart > t3.colEnd - t3.colStart ? e.Orientation.Column : e.Orientation.Row)(t2) : e.Orientation.Row;
|
|
10054
|
-
},
|
|
10062
|
+
}, Lg = () => false, Bg = () => true, zg = () => null, Pg = () => ia, Wg = () => 0, Hg = new class extends xg {
|
|
10055
10063
|
constructor() {
|
|
10056
10064
|
super(null, null);
|
|
10057
10065
|
}
|
|
@@ -10070,10 +10078,10 @@ const Tg = (t2, n2, r2, o2 = false) => {
|
|
|
10070
10078
|
toString() {
|
|
10071
10079
|
return `${this._coords ? zc(this._coords) : Ac} => ${this._v ?? "{blank}"}`;
|
|
10072
10080
|
}
|
|
10073
|
-
}(),
|
|
10074
|
-
}, [Symbol.iterator]: Pg, entries: Pg, select: yh, find: yh, calculate: yh, getCell: () => Hg, getValue: zg, waitForCalcs: () => Promise.resolve(
|
|
10075
|
-
function
|
|
10076
|
-
return t2 || n2 ? Object.freeze({
|
|
10081
|
+
}(), Vg = () => $g, $g = { forEach: () => {
|
|
10082
|
+
}, [Symbol.iterator]: Pg, entries: Pg, select: yh, find: yh, calculate: yh, getCell: () => Hg, getValue: zg, waitForCalcs: () => Promise.resolve($g), setValue: yh, setFormula: yh, setValues: yh, updateCells: yh, updateStyle: yh, getCells: () => [[Hg]], getStyleUpdater: yh, getValues: () => [[null]], getBounds: zg, getIntersect: Vg, getUnion: Vg, getDifferences: yh, getResizeBy: Vg, getResizeTo: Vg, getOffsetBy: Vg, getOffsetTo: Vg, getFixed: Vg, getUsedRange: Vg, getEntireRows: Vg, getEntireColumns: Vg, getSurrounding: yh, getExtended: yh, isEntireRows: Lg, isEntireColumns: Lg, isEntireRange: Lg, getWidth: Wg, getHeight: Wg, size: 0, sort: yh, clear: yh, setHyperlink: yh, setComments: yh, merge: yh, unmerge: yh, getMerges: yh, insert: yh, insertFrom: yh, delete: yh, getDefaultShiftOrientation: yh, getDefaultSortCriteria: yh, autoFill: yh, autoFit: yh, getSnapshot: yh, copyFrom: yh, doBatch: yh, startIncrementalUpdates: yh, getRowHeaders: yh, getColumnHeaders: yh, getCounts: yh, getCount: Wg, isContentful: Lg, addListener: yh, getColumnStart: Wg, getRowStart: Wg, getColumnEnd: Wg, getRowEnd: Wg, getRowCount: Wg, getColumnCount: Wg, getVisible: yh, getCoords: zg, isEmpty: Bg, toString: () => Ac, getA1: () => Ac, isInvalid: Bg, getSheet: zg, isReadOnly: Bg, isICellRange: true };
|
|
10083
|
+
function jg(t2, e2 = null, n2 = null, r2 = Ac) {
|
|
10084
|
+
return t2 || n2 ? Object.freeze({ ...$g, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ? Vc(n2, e2) : r2 }) : $g;
|
|
10077
10085
|
}
|
|
10078
10086
|
const Gg = /^[\\+-]?[0-9]*\.?[0-9]*$/, Ug = (t2, e2, r2) => {
|
|
10079
10087
|
if (void 0 === t2) throw new Error("A value is required to create a cell from a text.");
|
|
@@ -10174,7 +10182,7 @@ const Gg = /^[\\+-]?[0-9]*\.?[0-9]*$/, Ug = (t2, e2, r2) => {
|
|
|
10174
10182
|
return f2 && (t3 += f2.asOADate), p2 && (t3 += p2.parsed.oaDateTime), s2.value = t3, s2;
|
|
10175
10183
|
}
|
|
10176
10184
|
const _2 = n.getBuiltInByLabel(t2);
|
|
10177
|
-
return _2 ? (s2.value = _2, s2) : (s2.value = t2, Do(t2) ? s2.hyperlink = t2 :
|
|
10185
|
+
return _2 ? (s2.value = _2, s2) : (s2.value = t2, Do(t2) ? s2.hyperlink = t2 : Bo(t2) && (s2.hyperlink = t2, s2.hyperlink.toLowerCase().startsWith("mailto:") || (s2.hyperlink = `mailto:${s2.hyperlink}`)), t2.includes("\n") && (s2.style = { ...s2?.style, alignment: { overflow: yo.Overflow.Wrap } }), s2);
|
|
10178
10186
|
}, qg = (t2) => {
|
|
10179
10187
|
const e2 = t2.getFont().getUnderline() === Ko.UnderlineStyle.SingleAccounting, n2 = t2.getFont().getUnderline() === Ko.UnderlineStyle.DoubleAccounting;
|
|
10180
10188
|
let r2 = 0;
|
|
@@ -10232,16 +10240,16 @@ class Qg {
|
|
|
10232
10240
|
o2._c = null;
|
|
10233
10241
|
}, this.context = { getCoords() {
|
|
10234
10242
|
const t2 = o2._c;
|
|
10235
|
-
if (!t2) throw new Error(
|
|
10243
|
+
if (!t2) throw new Error(jh);
|
|
10236
10244
|
return t2;
|
|
10237
10245
|
}, getCell() {
|
|
10238
10246
|
const t2 = o2._c;
|
|
10239
|
-
if (!t2) throw new Error(
|
|
10247
|
+
if (!t2) throw new Error(jh);
|
|
10240
10248
|
if (this.excludeCellDetails) throw new Error("IteratorContext can only return a cell if the forEach excludeCellDetails has not been set to false.");
|
|
10241
10249
|
const e3 = o2._r, n3 = o2._t, s2 = o2._v;
|
|
10242
10250
|
return null !== s2 || e3 ? new xg(r2, t2, n3, s2, e3, o2._p, o2._n) : new xg(r2, t2);
|
|
10243
10251
|
}, getType: () => o2._t, getA1(t2) {
|
|
10244
|
-
if (!o2.context) throw new Error(
|
|
10252
|
+
if (!o2.context) throw new Error(jh);
|
|
10245
10253
|
let e3 = o2._c;
|
|
10246
10254
|
return t2 && (e3 = { ...o2._c, ...t2 }), r2.resolveRange(e3).toString();
|
|
10247
10255
|
}, toJSDate(e3) {
|
|
@@ -10456,7 +10464,7 @@ class am {
|
|
|
10456
10464
|
}
|
|
10457
10465
|
}
|
|
10458
10466
|
var lm, cm;
|
|
10459
|
-
(cm = lm || (lm = {})).fastStringToCol = nh, cm.fastStringToCell = Zc, cm.fastStringToRange = rh, cm.rangeToString =
|
|
10467
|
+
(cm = lm || (lm = {})).fastStringToCol = nh, cm.fastStringToCell = Zc, cm.fastStringToRange = rh, cm.rangeToString = Vc, cm.cellToString = Pc, cm.normalizeA1ToR1C1 = mh, cm.resolveRelativeToA1 = hh;
|
|
10460
10468
|
const hm = (t2, e2) => t2.offset - e2.offset, dm = (t2) => {
|
|
10461
10469
|
if (!t2 || 0 === t2.size) return [];
|
|
10462
10470
|
let e2 = [];
|
|
@@ -10622,7 +10630,7 @@ class _m extends am {
|
|
|
10622
10630
|
}
|
|
10623
10631
|
toJSON() {
|
|
10624
10632
|
const t2 = {}, e2 = this._getState();
|
|
10625
|
-
e2.anchor && (t2.ref =
|
|
10633
|
+
e2.anchor && (t2.ref = Vc(e2.anchor, this._options.maxRangeCoords));
|
|
10626
10634
|
const n2 = mm(e2.byOffset);
|
|
10627
10635
|
return n2.length > 0 && (t2.fields = n2), e2.sort, 0 === Object.keys(t2).length ? null : t2;
|
|
10628
10636
|
}
|
|
@@ -10882,7 +10890,7 @@ class vm extends am {
|
|
|
10882
10890
|
return this.getUsedRange().select(t2);
|
|
10883
10891
|
}
|
|
10884
10892
|
getRange() {
|
|
10885
|
-
return this._range ? this._range : this._getState() ? this._range = this._sheet.getRange(this._getState().anchor) :
|
|
10893
|
+
return this._range ? this._range : this._getState() ? this._range = this._sheet.getRange(this._getState().anchor) : $g;
|
|
10886
10894
|
}
|
|
10887
10895
|
_processRestoreOrRevert(t2, e2, n2) {
|
|
10888
10896
|
this._styleCache = null, super._processRestoreOrRevert(t2, e2, n2);
|
|
@@ -10892,7 +10900,7 @@ class vm extends am {
|
|
|
10892
10900
|
}
|
|
10893
10901
|
getUsedRange() {
|
|
10894
10902
|
const t2 = this._getUsedCoords();
|
|
10895
|
-
return t2 ? this._sheet.getRange(t2) :
|
|
10903
|
+
return t2 ? this._sheet.getRange(t2) : $g;
|
|
10896
10904
|
}
|
|
10897
10905
|
_getUsedCoords() {
|
|
10898
10906
|
const t2 = this._getState(), e2 = t2.headerRowCount, n2 = t2.totalsRowCount, r2 = t2.anchor;
|
|
@@ -10902,7 +10910,7 @@ class vm extends am {
|
|
|
10902
10910
|
}
|
|
10903
10911
|
getHeaderRange() {
|
|
10904
10912
|
const t2 = this._getHeaderCoords();
|
|
10905
|
-
return t2 ? this._sheet.getRange(t2) :
|
|
10913
|
+
return t2 ? this._sheet.getRange(t2) : $g;
|
|
10906
10914
|
}
|
|
10907
10915
|
_getHeaderCoords() {
|
|
10908
10916
|
const t2 = this._getState(), e2 = t2.headerRowCount;
|
|
@@ -10912,7 +10920,7 @@ class vm extends am {
|
|
|
10912
10920
|
}
|
|
10913
10921
|
getTotalRange() {
|
|
10914
10922
|
const t2 = this._getTotalCoords();
|
|
10915
|
-
return t2 ? this._sheet.getRange(t2) :
|
|
10923
|
+
return t2 ? this._sheet.getRange(t2) : $g;
|
|
10916
10924
|
}
|
|
10917
10925
|
_getTotalCoords() {
|
|
10918
10926
|
const t2 = this._getState(), e2 = t2.totalsRowCount;
|
|
@@ -11174,7 +11182,7 @@ class vm extends am {
|
|
|
11174
11182
|
toJSON() {
|
|
11175
11183
|
const t2 = {}, e2 = this._getState();
|
|
11176
11184
|
if (!e2) return null;
|
|
11177
|
-
if (e2.name && (t2.name = e2.name), e2.anchor && (t2.ref =
|
|
11185
|
+
if (e2.name && (t2.name = e2.name), e2.anchor && (t2.ref = Vc(e2.anchor, this._options.maxRangeCoords)), e2.description && (t2.description = e2.description), 1 !== e2.headerRowCount && (t2.headerRowCount = e2.headerRowCount), 0 !== e2.totalsRowCount && (t2.totalsRowCount = e2.totalsRowCount), e2.columns && (t2.columns = [...e2.columns]), e2.styleOptions) {
|
|
11178
11186
|
const n2 = o.diffValues(e2.styleOptions, { ...ym, name: null });
|
|
11179
11187
|
n2 && (t2.styleOptions = n2);
|
|
11180
11188
|
}
|
|
@@ -11553,7 +11561,7 @@ class Om {
|
|
|
11553
11561
|
}
|
|
11554
11562
|
_initializeBuiltIns() {
|
|
11555
11563
|
const t2 = /* @__PURE__ */ new Map();
|
|
11556
|
-
this._builtInsCellStyles = t2, this._initializeNamedStyles(
|
|
11564
|
+
this._builtInsCellStyles = t2, this._initializeNamedStyles($u, t2), this._builtInsTableStyles = this._initializeTableStyles(), this._emptyTableStyle = new Ui.Empty(this._normalStyle);
|
|
11557
11565
|
}
|
|
11558
11566
|
getNormal() {
|
|
11559
11567
|
return this._normalStyle;
|
|
@@ -11655,7 +11663,7 @@ class Om {
|
|
|
11655
11663
|
}
|
|
11656
11664
|
normalize(t2) {
|
|
11657
11665
|
if (!t2) return null;
|
|
11658
|
-
const e2 = f.resolveTypedUpdates(t2, Fu, this), n2 =
|
|
11666
|
+
const e2 = f.resolveTypedUpdates(t2, Fu, this), n2 = Vu;
|
|
11659
11667
|
let r2 = null;
|
|
11660
11668
|
if (r2 = e2.named ? this.getNamed(e2.named)?.getRanged().getPropertiesAt(0, 0, null) : this._normalRanged.getPropertiesAt(0, 0, null), r2) {
|
|
11661
11669
|
const t3 = { ...r2 };
|
|
@@ -11761,8 +11769,8 @@ class Om {
|
|
|
11761
11769
|
this._mruColors = r2;
|
|
11762
11770
|
}
|
|
11763
11771
|
}
|
|
11764
|
-
const Dm = "BinaryResource must have only one initial data value.",
|
|
11765
|
-
class
|
|
11772
|
+
const Dm = "BinaryResource must have only one initial data value.", Lm = "Resource is closed.";
|
|
11773
|
+
class Bm {
|
|
11766
11774
|
constructor(t2) {
|
|
11767
11775
|
if (this._listeners = /* @__PURE__ */ new Set(), this._type = t2.type, this._name = t2?.name, t2.base64) {
|
|
11768
11776
|
const e2 = t2.base64;
|
|
@@ -11818,11 +11826,11 @@ class Lm {
|
|
|
11818
11826
|
return this._type ? this._type : (await this.toBuffer(), this._type ?? S.DEFAULT_MIME_TYPE);
|
|
11819
11827
|
}
|
|
11820
11828
|
addReference(t2) {
|
|
11821
|
-
if (this._isClosed) throw new Error(
|
|
11829
|
+
if (this._isClosed) throw new Error(Lm);
|
|
11822
11830
|
this._refs.add(t2);
|
|
11823
11831
|
}
|
|
11824
11832
|
deleteReference(t2) {
|
|
11825
|
-
if (this._isClosed) throw new Error(
|
|
11833
|
+
if (this._isClosed) throw new Error(Lm);
|
|
11826
11834
|
if (0 === this._refs.size || !this._refs.has(t2)) return;
|
|
11827
11835
|
this._refs.delete(t2);
|
|
11828
11836
|
const e2 = this;
|
|
@@ -11834,7 +11842,7 @@ class Lm {
|
|
|
11834
11842
|
}
|
|
11835
11843
|
}
|
|
11836
11844
|
addUnloadListener(t2) {
|
|
11837
|
-
if (this._isClosed) throw new Error(
|
|
11845
|
+
if (this._isClosed) throw new Error(Lm);
|
|
11838
11846
|
this._listeners.add(t2);
|
|
11839
11847
|
}
|
|
11840
11848
|
get isIResource() {
|
|
@@ -11886,10 +11894,10 @@ class Pm {
|
|
|
11886
11894
|
let e3 = false;
|
|
11887
11895
|
this._resources.forEach((n3) => {
|
|
11888
11896
|
n3.getName() === t2 && (e3 = true, t2 = n3);
|
|
11889
|
-
}), e3 || (t2 = new
|
|
11897
|
+
}), e3 || (t2 = new Bm({ name: t2, fetch: t2, type: null }));
|
|
11890
11898
|
}
|
|
11891
11899
|
let e2 = null;
|
|
11892
|
-
e2 = t2 instanceof
|
|
11900
|
+
e2 = t2 instanceof Bm ? t2 : new Bm({ ...t2 });
|
|
11893
11901
|
const n2 = this;
|
|
11894
11902
|
return this._resources.has(e2) || (e2.addUnloadListener({ onUnload: (t3) => {
|
|
11895
11903
|
n2._resources.delete(e2);
|
|
@@ -11984,9 +11992,9 @@ class Hm {
|
|
|
11984
11992
|
});
|
|
11985
11993
|
}
|
|
11986
11994
|
}
|
|
11987
|
-
var
|
|
11988
|
-
|
|
11989
|
-
class
|
|
11995
|
+
var Vm, $m;
|
|
11996
|
+
Vm || (Vm = {});
|
|
11997
|
+
class jm extends Yi {
|
|
11990
11998
|
constructor(t2) {
|
|
11991
11999
|
super(t2), t2.json && (this._resource = t2.fromResourceId(t2.json.resId));
|
|
11992
12000
|
}
|
|
@@ -12035,7 +12043,7 @@ class $m extends Yi {
|
|
|
12035
12043
|
super._processDelete();
|
|
12036
12044
|
}
|
|
12037
12045
|
}
|
|
12038
|
-
(
|
|
12046
|
+
($m || ($m = {})).Status = { Ready: "ready", Error: "error", Starting: "starting", Stopping: "stopping", Off: "off" };
|
|
12039
12047
|
class Gm extends oc {
|
|
12040
12048
|
constructor(t2, e2 = null, n2, r2, o2) {
|
|
12041
12049
|
if (super(t2, n2, e2), this._sheetName = r2 || null, this._getEntireCoords = o2 ?? hc, this._coords = Um(n2, this._getEntireCoords()), !n2) throw new Error("ReferenceRange requires a coords");
|
|
@@ -12061,7 +12069,7 @@ class Gm extends oc {
|
|
|
12061
12069
|
return "[ReferenceRange]";
|
|
12062
12070
|
}
|
|
12063
12071
|
toString() {
|
|
12064
|
-
return `${
|
|
12072
|
+
return `${Vc(this._coords, this._getEntireCoords?.())}`;
|
|
12065
12073
|
}
|
|
12066
12074
|
}
|
|
12067
12075
|
const Um = (t2, e2) => {
|
|
@@ -12580,7 +12588,7 @@ class Zm {
|
|
|
12580
12588
|
let n5 = e3[t4];
|
|
12581
12589
|
if (Km(i4.rowStart, i4.colStart, n5) && a3.getCycleId() === o2) {
|
|
12582
12590
|
r3 || (r3 = [], s3 = /* @__PURE__ */ new Set());
|
|
12583
|
-
const t5 =
|
|
12591
|
+
const t5 = Lc(n5.colStart) + Fc(n5.rowStart);
|
|
12584
12592
|
if (s3.has(t5)) continue;
|
|
12585
12593
|
s3.add(t5), r3.push({ colStart: i4.colStart, rowStart: i4.rowStart, colEnd: i4.colEnd, rowEnd: i4.rowEnd, value: n5.value.getError() });
|
|
12586
12594
|
}
|
|
@@ -12606,7 +12614,7 @@ class Zm {
|
|
|
12606
12614
|
});
|
|
12607
12615
|
}
|
|
12608
12616
|
_setInputs(t2, n2, r2) {
|
|
12609
|
-
if (this._calculation.getStatus() ===
|
|
12617
|
+
if (this._calculation.getStatus() === $m.Status.Starting) return this._addToPending(() => {
|
|
12610
12618
|
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)) };
|
|
12611
12619
|
return Promise.resolve(s3);
|
|
12612
12620
|
}), Nf;
|
|
@@ -12808,8 +12816,8 @@ class Zm {
|
|
|
12808
12816
|
const k2 = b2.formula;
|
|
12809
12817
|
let F2, O2;
|
|
12810
12818
|
const D2 = C2.pending;
|
|
12811
|
-
let
|
|
12812
|
-
if ((A2 || C2.pendingPromise) && (
|
|
12819
|
+
let L2 = D2;
|
|
12820
|
+
if ((A2 || C2.pendingPromise) && (L2 = true, F2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, L2 = false) : (C2.pendingPromise.cancelled = true, F2 = void 0))), void 0 === F2 && (o2.formula = k2, o2.colIndex = v2, o2.rowIndex = x2, F2 = k2.evaluate(r2, void 0, C2.inputs), o2.formula = null, O2 = F2 && F2.then ? F2 : null, L2 = !!O2), L2 !== D2 && (C2.pending = L2, w2 || (w2 = bl(S2)), w2.append(N2, T2, L2)), O2 && (F2 = C2.cachedValue ?? null, !O2.__originator)) {
|
|
12813
12821
|
O2.__originator = l2;
|
|
12814
12822
|
const t3 = C2;
|
|
12815
12823
|
ff.add(t3), t3.pendingPromise = O2, t3.pendingResolved = false, O2.then((e3) => {
|
|
@@ -12820,7 +12828,7 @@ class Zm {
|
|
|
12820
12828
|
}, (t4) => {
|
|
12821
12829
|
});
|
|
12822
12830
|
}
|
|
12823
|
-
let
|
|
12831
|
+
let B2 = 1, z2 = 1;
|
|
12824
12832
|
const P2 = I2 instanceof oc;
|
|
12825
12833
|
let W2;
|
|
12826
12834
|
const H2 = I2 instanceof n.Spill;
|
|
@@ -12834,18 +12842,18 @@ class Zm {
|
|
|
12834
12842
|
if (W2) {
|
|
12835
12843
|
if (P2) {
|
|
12836
12844
|
const t5 = I2;
|
|
12837
|
-
|
|
12845
|
+
B2 = t5.getWidth(), z2 = t5.getHeight();
|
|
12838
12846
|
}
|
|
12839
|
-
const t4 = { colStart: v2, rowStart: x2, colEnd: v2 +
|
|
12847
|
+
const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + B2 - 1, rowEnd: x2 + z2 - 1 };
|
|
12840
12848
|
f2.remove(W2), W2 && W2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
|
|
12841
12849
|
}
|
|
12842
12850
|
}
|
|
12843
|
-
let
|
|
12844
|
-
const
|
|
12851
|
+
let V2 = 1, $2 = 1;
|
|
12852
|
+
const j2 = F2, G2 = j2?.isIRange;
|
|
12845
12853
|
let U2, q2 = F2 instanceof n.Spill;
|
|
12846
|
-
if (G2 &&
|
|
12847
|
-
|
|
12848
|
-
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 +
|
|
12854
|
+
if (G2 && j2.size > 1) {
|
|
12855
|
+
V2 = j2.getWidth(), $2 = j2.getHeight();
|
|
12856
|
+
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + V2 - 1, rowEnd: x2 + $2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
|
|
12849
12857
|
if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), q2 = o3, !q2) {
|
|
12850
12858
|
const e4 = d2.search(t3);
|
|
12851
12859
|
if (q2 = e4.length > 1, !q2 && 1 === e4.length) {
|
|
@@ -12855,15 +12863,15 @@ class Zm {
|
|
|
12855
12863
|
}
|
|
12856
12864
|
let s3, i3;
|
|
12857
12865
|
if (q2) {
|
|
12858
|
-
F2 = n.BuiltIn.Spill,
|
|
12866
|
+
F2 = n.BuiltIn.Spill, V2 = 1, $2 = 1;
|
|
12859
12867
|
s3 = [[N2, [[T2, [F2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
|
|
12860
12868
|
} else {
|
|
12861
|
-
const e4 = Xm(
|
|
12869
|
+
const e4 = Xm(j2, N2, T2);
|
|
12862
12870
|
e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
|
|
12863
12871
|
}
|
|
12864
12872
|
U2 = { ...t3, value: new Eh(t3, l2, q2) }, f2.insert(U2), E2 = Qm(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Ch(i3, _2) });
|
|
12865
12873
|
}
|
|
12866
|
-
(!c.isEqualRanges(W2, U2) || q2 || H2) && (W2 && g2.insert(W2), U2 && g2.insert(U2)),
|
|
12874
|
+
(!c.isEqualRanges(W2, U2) || q2 || H2) && (W2 && g2.insert(W2), U2 && g2.insert(U2)), V2 === B2 && $2 === z2 || (C2.state = xh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(V2, B2) - 1, rowEnd: x2 + Math.max($2, z2) - 1 }), a2 = false);
|
|
12867
12875
|
let J2 = F2 && F2.isFormulaError ? F2 : null;
|
|
12868
12876
|
k2.getError() && (J2 = k2.getError()), (J2 || R2 && !t2) && (J2 && !J2.equals(R2) || R2 && R2.equals(J2)), C2.cachedValue = F2, s2[i2++] = C2;
|
|
12869
12877
|
}
|
|
@@ -12875,8 +12883,8 @@ class Zm {
|
|
|
12875
12883
|
}
|
|
12876
12884
|
async calculate(t2) {
|
|
12877
12885
|
const e2 = this._calculation.getStatus();
|
|
12878
|
-
if (e2 ===
|
|
12879
|
-
if (e2 !==
|
|
12886
|
+
if (e2 === $m.Status.Starting) return void this._addToPending(() => this.calculate(t2));
|
|
12887
|
+
if (e2 !== $m.Status.Ready) return;
|
|
12880
12888
|
let n2 = this._fullCalcRequired;
|
|
12881
12889
|
n2 || ("boolean" == typeof t2 ? n2 = t2 : t2 && (n2 = t2.full ?? false));
|
|
12882
12890
|
const r2 = this._invalidations;
|
|
@@ -12959,8 +12967,8 @@ class Zm {
|
|
|
12959
12967
|
}
|
|
12960
12968
|
fromJSON(t2) {
|
|
12961
12969
|
const r2 = this._calculation.getStatus();
|
|
12962
|
-
if (r2 ===
|
|
12963
|
-
if (r2 !==
|
|
12970
|
+
if (r2 === $m.Status.Starting) return void this._addToPending(() => Promise.resolve(this.fromJSON(t2)));
|
|
12971
|
+
if (r2 !== $m.Status.Ready) return;
|
|
12964
12972
|
this._clearAll();
|
|
12965
12973
|
const o2 = { cycleId: 0, isFull: true };
|
|
12966
12974
|
if (!t2) return o2;
|
|
@@ -13060,7 +13068,7 @@ class Zm {
|
|
|
13060
13068
|
if (i2 > 0) {
|
|
13061
13069
|
const t3 = this._getEntireCoords(), e2 = new Array(i2);
|
|
13062
13070
|
for (let n3 = 0; n3 < i2; n3++) {
|
|
13063
|
-
const r3 = s2[n3], o3 =
|
|
13071
|
+
const r3 = s2[n3], o3 = Vc(r3, t3);
|
|
13064
13072
|
e2[n3] = [o3, r3.value.getError()];
|
|
13065
13073
|
}
|
|
13066
13074
|
o2.dynamic = e2;
|
|
@@ -13087,7 +13095,7 @@ class Zm {
|
|
|
13087
13095
|
}
|
|
13088
13096
|
const i3 = s3.done(true), l2 = i3.length, c2 = new Array(l2);
|
|
13089
13097
|
for (let t4 = 0; t4 < l2; t4++) {
|
|
13090
|
-
const e2 = i3[t4], n4 =
|
|
13098
|
+
const e2 = i3[t4], n4 = Vc(e2, this._getEntireCoords());
|
|
13091
13099
|
c2[t4] = n4;
|
|
13092
13100
|
}
|
|
13093
13101
|
o2.volatile = c2;
|
|
@@ -13175,7 +13183,7 @@ class kf {
|
|
|
13175
13183
|
async _initialize() {
|
|
13176
13184
|
const t2 = await at._validate(true), e2 = Of();
|
|
13177
13185
|
this._calcScope = e2, this._runtime = new Ff(this._options, t2);
|
|
13178
|
-
const { initializeBuiltIns: n2 } = await import("./
|
|
13186
|
+
const { initializeBuiltIns: n2 } = await import("./DHSx9xekAnH8zZVV.mjs"), r2 = this;
|
|
13179
13187
|
return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
|
|
13180
13188
|
}
|
|
13181
13189
|
getBuiltInFunctions() {
|
|
@@ -13193,8 +13201,8 @@ class kf {
|
|
|
13193
13201
|
getFormulaAt(t2, e2) {
|
|
13194
13202
|
const n2 = this._calcScope.formulaSpatial;
|
|
13195
13203
|
if (!n2) return null;
|
|
13196
|
-
|
|
13197
|
-
const r2 = n2.search(
|
|
13204
|
+
Bf.colStart = e2, Bf.rowStart = t2, Bf.colEnd = e2, Bf.rowEnd = t2;
|
|
13205
|
+
const r2 = n2.search(Bf);
|
|
13198
13206
|
if (0 === r2.length) return null;
|
|
13199
13207
|
return r2[0].value.formula.getTextAt(t2, e2) ?? null;
|
|
13200
13208
|
}
|
|
@@ -13284,7 +13292,7 @@ class kf {
|
|
|
13284
13292
|
let l2;
|
|
13285
13293
|
if (a2) {
|
|
13286
13294
|
const e3 = a2.precedents;
|
|
13287
|
-
l2 =
|
|
13295
|
+
l2 = Lf(e3, t2);
|
|
13288
13296
|
}
|
|
13289
13297
|
if (l2) {
|
|
13290
13298
|
const e3 = l2.calc;
|
|
@@ -13295,7 +13303,7 @@ class kf {
|
|
|
13295
13303
|
getAddress(t2, e2 = false) {
|
|
13296
13304
|
t2 || (t2 = this.getPosition());
|
|
13297
13305
|
const n2 = this.getEntireCoords().sheetName;
|
|
13298
|
-
return void 0 !== t2.colIndex ? ((t3, e3, n3 = false) => n3 ? dh(t3, e3) :
|
|
13306
|
+
return void 0 !== t2.colIndex ? ((t3, e3, n3 = false) => n3 ? dh(t3, e3) : $c(t3, e3))(t2, n2, e2) : ((t3, e3, n3 = false) => (n3 ? dh({ 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 ? dh({ 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);
|
|
13299
13307
|
}
|
|
13300
13308
|
parseAsDateTime(t2, e2 = false) {
|
|
13301
13309
|
return (function(t3, e3 = false, n2 = false) {
|
|
@@ -13348,7 +13356,7 @@ class Ff {
|
|
|
13348
13356
|
}
|
|
13349
13357
|
getVersion() {
|
|
13350
13358
|
try {
|
|
13351
|
-
const t2 = "0.6.
|
|
13359
|
+
const t2 = "0.6.15";
|
|
13352
13360
|
if (-1 === t2.indexOf(".env.")) return `${t2}`;
|
|
13353
13361
|
} catch (t2) {
|
|
13354
13362
|
return "local";
|
|
@@ -13361,7 +13369,7 @@ class Ff {
|
|
|
13361
13369
|
return this._license?.licensee?.() ?? null;
|
|
13362
13370
|
}
|
|
13363
13371
|
}
|
|
13364
|
-
const Of = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () => ac }), Df = { getSheetIndex: (t2) => -1, getSheetCount: () => 1, getSheetName: () => null, getEntireCoords: () => ac, getNamed: (t2, e2) => null, getFunction: (t2) => null, isDate1904: () => false },
|
|
13372
|
+
const Of = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () => ac }), Df = { getSheetIndex: (t2) => -1, getSheetCount: () => 1, getSheetName: () => null, getEntireCoords: () => ac, getNamed: (t2, e2) => null, getFunction: (t2) => null, isDate1904: () => false }, Lf = (t2, e2) => {
|
|
13365
13373
|
if (!t2) return;
|
|
13366
13374
|
const n2 = t2.length;
|
|
13367
13375
|
if (0 === n2) return;
|
|
@@ -13371,7 +13379,7 @@ const Of = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, value
|
|
|
13371
13379
|
if (void 0 !== a2 && (n3.colStart === r2 && n3.rowStart === o2 && n3.colEnd === s2 && n3.rowEnd === i2)) return a2;
|
|
13372
13380
|
}
|
|
13373
13381
|
return null;
|
|
13374
|
-
},
|
|
13382
|
+
}, Bf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, zf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 };
|
|
13375
13383
|
class Pf {
|
|
13376
13384
|
_setScope(t2) {
|
|
13377
13385
|
this._scope = t2;
|
|
@@ -13451,14 +13459,14 @@ class Pf {
|
|
|
13451
13459
|
}
|
|
13452
13460
|
}
|
|
13453
13461
|
const Wf = new Pf(), Hf = "__SHEETXL";
|
|
13462
|
+
let Vf;
|
|
13463
|
+
const $f = { FormulaContext: Vf, ScalarType: t, IRange: e, FormulaError: n, Observable: r };
|
|
13454
13464
|
let jf;
|
|
13455
|
-
const Vf = { FormulaContext: jf, ScalarType: t, IRange: e, FormulaError: n, Observable: r };
|
|
13456
|
-
let $f;
|
|
13457
13465
|
function Gf(t2) {
|
|
13458
|
-
|
|
13466
|
+
Vf || (Vf = Wf, $f.FormulaContext = Vf), jf = globalThis[Hf], globalThis[Hf] = $f, Vf._setScope(t2);
|
|
13459
13467
|
}
|
|
13460
13468
|
function Uf() {
|
|
13461
|
-
|
|
13469
|
+
jf ? (globalThis[Hf] = jf, jf = void 0) : delete globalThis[Hf], Vf && Vf._setScope(null);
|
|
13462
13470
|
}
|
|
13463
13471
|
var qf;
|
|
13464
13472
|
(qf || (qf = {})).Context = { Workbook: "workbook", Sheet: "sheet", Ranges: "ranges", Range: "range", Calculation: "calculation" };
|
|
@@ -13876,7 +13884,7 @@ class op {
|
|
|
13876
13884
|
}
|
|
13877
13885
|
class sp extends Yi {
|
|
13878
13886
|
constructor(t2) {
|
|
13879
|
-
super(t2), this._status =
|
|
13887
|
+
super(t2), this._status = $m.Status.Off, this._statusTransition = null, this._emitter = new Xi(this);
|
|
13880
13888
|
}
|
|
13881
13889
|
_getContext() {
|
|
13882
13890
|
return this._context;
|
|
@@ -13886,16 +13894,16 @@ class sp extends Yi {
|
|
|
13886
13894
|
}
|
|
13887
13895
|
start() {
|
|
13888
13896
|
return this._statusTransition || (this._statusTransition = (async () => {
|
|
13889
|
-
if (this._status ===
|
|
13890
|
-
this._status =
|
|
13897
|
+
if (this._status === $m.Status.Off) try {
|
|
13898
|
+
this._status = $m.Status.Starting, this._emitter.notify("onStatusChange"), this._emitter.notify("onStarting");
|
|
13891
13899
|
const t2 = this, e2 = this._options, n2 = (n3) => t2.getFunctions().getByName(n3) ?? e2?.getFunction?.(n3), r2 = new kf({ ...e2, getFunction: n2 });
|
|
13892
13900
|
this._context = r2;
|
|
13893
13901
|
const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
|
|
13894
13902
|
this._functions = new op({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
|
|
13895
|
-
const i2 = await import("./
|
|
13896
|
-
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status =
|
|
13903
|
+
const i2 = await import("./B5SmfILHrn_jXyuk.mjs");
|
|
13904
|
+
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = $m.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
|
|
13897
13905
|
} catch (t2) {
|
|
13898
|
-
throw this._status =
|
|
13906
|
+
throw this._status = $m.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
|
|
13899
13907
|
} finally {
|
|
13900
13908
|
this._statusTransition = null;
|
|
13901
13909
|
}
|
|
@@ -13906,13 +13914,13 @@ class sp extends Yi {
|
|
|
13906
13914
|
return new Zm({ ...e2, ...t2, getFormulaParser: () => this._formulaParser, calculation: this });
|
|
13907
13915
|
}
|
|
13908
13916
|
async stop() {
|
|
13909
|
-
this._status ===
|
|
13917
|
+
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"));
|
|
13910
13918
|
}
|
|
13911
13919
|
getStatus() {
|
|
13912
13920
|
return this._status;
|
|
13913
13921
|
}
|
|
13914
13922
|
async waitForFinish() {
|
|
13915
|
-
return this._status ===
|
|
13923
|
+
return this._status === $m.Status.Starting && await this._statusTransition, ip;
|
|
13916
13924
|
}
|
|
13917
13925
|
getFunctions() {
|
|
13918
13926
|
return this._checkReady(), this._functions;
|
|
@@ -13921,15 +13929,15 @@ class sp extends Yi {
|
|
|
13921
13929
|
return this._checkReady(), this._runtime;
|
|
13922
13930
|
}
|
|
13923
13931
|
_checkReady() {
|
|
13924
|
-
if (this._status !==
|
|
13932
|
+
if (this._status !== $m.Status.Ready) throw new Error(this._statusMessage());
|
|
13925
13933
|
}
|
|
13926
13934
|
_statusMessage() {
|
|
13927
13935
|
switch (this._status) {
|
|
13928
|
-
case
|
|
13936
|
+
case $m.Status.Off:
|
|
13929
13937
|
return "Calculation is off";
|
|
13930
|
-
case
|
|
13938
|
+
case $m.Status.Starting:
|
|
13931
13939
|
return "Calculation is starting";
|
|
13932
|
-
case
|
|
13940
|
+
case $m.Status.Ready:
|
|
13933
13941
|
return "Calculation is ready";
|
|
13934
13942
|
default:
|
|
13935
13943
|
return "Unknown calculation status";
|
|
@@ -15074,7 +15082,7 @@ class Dp extends Yi {
|
|
|
15074
15082
|
return "Chart";
|
|
15075
15083
|
}
|
|
15076
15084
|
}
|
|
15077
|
-
class
|
|
15085
|
+
class Lp extends Yi {
|
|
15078
15086
|
constructor(t2) {
|
|
15079
15087
|
super(t2), t2.json && this._updateState({ data: t2.json });
|
|
15080
15088
|
}
|
|
@@ -15094,7 +15102,7 @@ class Bp extends Yi {
|
|
|
15094
15102
|
return "Shape";
|
|
15095
15103
|
}
|
|
15096
15104
|
}
|
|
15097
|
-
class
|
|
15105
|
+
class Bp extends Yi {
|
|
15098
15106
|
constructor(t2) {
|
|
15099
15107
|
super(t2), t2.json && this._updateState({ data: t2.json });
|
|
15100
15108
|
}
|
|
@@ -15166,7 +15174,7 @@ const Wp = (t2, n2, r2) => {
|
|
|
15166
15174
|
if (0 === e2) return o2;
|
|
15167
15175
|
s2 ? o2 += e2 : o2 -= e2;
|
|
15168
15176
|
}
|
|
15169
|
-
}, Hp = Object.freeze({ colIndex: 0, rowIndex: 0 }),
|
|
15177
|
+
}, Hp = Object.freeze({ colIndex: 0, rowIndex: 0 }), Vp = Object.freeze([]), $p = Object.freeze({ cell: c.EmptyCell, ranges: Vp, rangeIndex: -1 }), jp = (t2, n2 = e.Direction.Right, r2, o2, s2, i2 = null) => {
|
|
15170
15178
|
if (i2 && c.isEqualSelectionCoords(i2, t2)) return t2;
|
|
15171
15179
|
const a2 = t2.ranges[t2.rangeIndex];
|
|
15172
15180
|
if (!c.isRangesIntersect({ rowStart: t2.cell.rowIndex, colStart: t2.cell.colIndex, rowEnd: t2.cell.rowIndex, colEnd: t2.cell.colIndex }, a2)) return t2;
|
|
@@ -15236,13 +15244,13 @@ const Wp = (t2, n2, r2) => {
|
|
|
15236
15244
|
case e.Direction.Up:
|
|
15237
15245
|
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;
|
|
15238
15246
|
}
|
|
15239
|
-
return i2 && console.warn("call recursive > 1"),
|
|
15247
|
+
return i2 && console.warn("call recursive > 1"), jp({ cell: l2, ranges: t2.ranges, rangeIndex: h2 }, n2, r2, o2, s2, i2 ?? t2);
|
|
15240
15248
|
}
|
|
15241
15249
|
return { ranges: t2.ranges, cell: l2, rangeIndex: h2 };
|
|
15242
15250
|
};
|
|
15243
15251
|
class Gp {
|
|
15244
15252
|
constructor(t2) {
|
|
15245
|
-
this._adjusting = null, this._emitter = null, this._coords =
|
|
15253
|
+
this._adjusting = null, this._emitter = null, this._coords = $p, this._sheet = t2.sheet, this._emitter = new Xi(this);
|
|
15246
15254
|
const n2 = t2.sheet;
|
|
15247
15255
|
this._adjusting = null, this._hiddenRowsAt = (t3, e2) => n2.getRowHeaders().hiddenHeadersAt(t3, e2), this._hiddenColumnsAt = (t3, e2) => n2.getColumnHeaders().hiddenHeadersAt(t3, e2), this._getCellCoordsAsRangeCoords = (t3) => {
|
|
15248
15256
|
const e2 = c.cellToRange(t3);
|
|
@@ -15353,7 +15361,7 @@ class Gp {
|
|
|
15353
15361
|
const e2 = this._coords;
|
|
15354
15362
|
if (c.isEqualSelectionCoords(e2, t2)) return;
|
|
15355
15363
|
const n2 = ((t3, e3, n3) => {
|
|
15356
|
-
if (!t3) return
|
|
15364
|
+
if (!t3) return $p;
|
|
15357
15365
|
let r2 = e3.cell;
|
|
15358
15366
|
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)) }));
|
|
15359
15367
|
const o2 = t3?.ranges ? [...t3.ranges] : [];
|
|
@@ -15366,7 +15374,7 @@ class Gp {
|
|
|
15366
15374
|
}
|
|
15367
15375
|
let l2 = e3?.ranges ?? [];
|
|
15368
15376
|
!s2 && c.isEqualRangesArrays(l2, o2) || (l2 = o2);
|
|
15369
|
-
let h2 = t3?.rangeIndex ?? e3?.rangeIndex ??
|
|
15377
|
+
let h2 = t3?.rangeIndex ?? e3?.rangeIndex ?? $p.rangeIndex;
|
|
15370
15378
|
if (h2 = Math.max(-1, Math.min(h2, l2.length - 1)), !a2) {
|
|
15371
15379
|
const t4 = l2[h2];
|
|
15372
15380
|
let e4 = r2.rowIndex;
|
|
@@ -15397,11 +15405,11 @@ class Gp {
|
|
|
15397
15405
|
if (0 === o2.ranges.length) return this.navigate(r2);
|
|
15398
15406
|
const s2 = this._getCellCoordsAsRangeCoords(o2.cell);
|
|
15399
15407
|
if (c.isEqualRangesArrays([s2], o2.ranges)) return this.navigate(r2);
|
|
15400
|
-
const i2 =
|
|
15408
|
+
const i2 = jp(o2, r2, this._getCellCoordsAsRangeCoords.bind(this), this._hiddenRowsAt.bind(this), this._hiddenColumnsAt.bind(this));
|
|
15401
15409
|
this.updateCoords(i2);
|
|
15402
15410
|
}
|
|
15403
15411
|
clear() {
|
|
15404
|
-
this._setSelectionRanges(
|
|
15412
|
+
this._setSelectionRanges(Vp);
|
|
15405
15413
|
}
|
|
15406
15414
|
modify(t2, e2, n2) {
|
|
15407
15415
|
if ("single" === this._selectionPolicy) return;
|
|
@@ -15438,7 +15446,7 @@ class Gp {
|
|
|
15438
15446
|
}
|
|
15439
15447
|
_setSelectionRanges(t2) {
|
|
15440
15448
|
const e2 = this._coords;
|
|
15441
|
-
let n2 = "function" == typeof t2 ? t2(e2.ranges) : t2 ??
|
|
15449
|
+
let n2 = "function" == typeof t2 ? t2(e2.ranges) : t2 ?? Vp;
|
|
15442
15450
|
if (c.isEqualRangesArrays(n2, e2.ranges)) return;
|
|
15443
15451
|
let r2 = Math.max(n2.length ? 0 : -1, Math.min(e2.rangeIndex, n2.length - 1)), o2 = e2.cell;
|
|
15444
15452
|
-1 === r2 || c.isCellWithinRange(o2, n2[r2]) || (o2 = { rowIndex: n2[r2].rowStart, colIndex: n2[r2].colStart }), 1 === n2.length && c.isSingleCell(n2[0]) && c.isCellWithinRange(o2, n2[0]) && (n2 = [], r2 = -1);
|
|
@@ -16011,13 +16019,13 @@ class d_ {
|
|
|
16011
16019
|
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;
|
|
16012
16020
|
let _2;
|
|
16013
16021
|
const S2 = { getCoords() {
|
|
16014
|
-
if (!_2) throw new Error(
|
|
16022
|
+
if (!_2) throw new Error(jh);
|
|
16015
16023
|
return { min: _2.min, max: _2.max };
|
|
16016
16024
|
}, getIndex: () => _2.min, getCellHeader() {
|
|
16017
|
-
if (!_2) throw new Error(
|
|
16025
|
+
if (!_2) throw new Error(jh);
|
|
16018
16026
|
return _2.value ? n2(u2, _2.value) : p2;
|
|
16019
16027
|
}, getA1(t3) {
|
|
16020
|
-
if (!_2) throw new Error(
|
|
16028
|
+
if (!_2) throw new Error(jh);
|
|
16021
16029
|
return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
|
|
16022
16030
|
} }, w2 = Ts(e2, (e3) => {
|
|
16023
16031
|
const n3 = e3.value;
|
|
@@ -16048,7 +16056,7 @@ class d_ {
|
|
|
16048
16056
|
if (l2 && l2.break) return l2.break;
|
|
16049
16057
|
}, s2 = () => {
|
|
16050
16058
|
const t3 = n2._isColumn ? { colStart: r2.min, colEnd: r2.max } : { rowStart: r2.min, rowEnd: r2.max };
|
|
16051
|
-
return
|
|
16059
|
+
return jc(t3, n2._maxRangeCoords) ?? Ac;
|
|
16052
16060
|
}, i2 = { getCoords: () => r2, getA1: s2, toString: s2, forEach: (t3, e3) => {
|
|
16053
16061
|
let n3 = Number.MAX_SAFE_INTEGER, s3 = null;
|
|
16054
16062
|
const i3 = { getIndex: () => n3, getCellHeader: () => s3.getCellHeader(), getA1: (t4) => s3.getA1(t4), getCoords: () => s3.getCoords() };
|
|
@@ -16529,7 +16537,7 @@ class f_ {
|
|
|
16529
16537
|
}
|
|
16530
16538
|
toJSON() {
|
|
16531
16539
|
const t2 = this._c;
|
|
16532
|
-
return [
|
|
16540
|
+
return [Vc(t2), this.getFormulaTextAt(t2.rowStart, t2.colStart)];
|
|
16533
16541
|
}
|
|
16534
16542
|
getCoords() {
|
|
16535
16543
|
return this._c;
|
|
@@ -16568,7 +16576,7 @@ class __ {
|
|
|
16568
16576
|
const o2 = () => {
|
|
16569
16577
|
if (r2) return r2;
|
|
16570
16578
|
const t3 = n2.sheet, o3 = n2.isRanges, s3 = n2.coords;
|
|
16571
|
-
return e2 || !s3 || 0 === s3.length ?
|
|
16579
|
+
return e2 || !s3 || 0 === s3.length ? jg(t3, t3.getEntireRange().getCoords(), null, e2) : o3 ? (r2 = t3.getRanges(n2.coords), r2) : (r2 = t3.getRange(n2.coords[0]), r2);
|
|
16572
16580
|
}, s2 = t2.trigger;
|
|
16573
16581
|
return { getSource: o2, trigger: s2, isTransactional: t2.isTransactional ?? true, toString: () => `SheetRangeEvent: ('${s2}', ${o2().toString()})`, timeStamp: t2.timeStamp ?? Date.now() };
|
|
16574
16582
|
}
|
|
@@ -16788,7 +16796,7 @@ class E_ {
|
|
|
16788
16796
|
}
|
|
16789
16797
|
}
|
|
16790
16798
|
async function C_() {
|
|
16791
|
-
const { getCrypto: t2 } = await import("./
|
|
16799
|
+
const { getCrypto: t2 } = await import("./CW-N7xXW32EPyr3n.mjs");
|
|
16792
16800
|
return t2();
|
|
16793
16801
|
}
|
|
16794
16802
|
const b_ = async (t2, e2, ...n2) => {
|
|
@@ -17179,7 +17187,7 @@ class N_ {
|
|
|
17179
17187
|
return false;
|
|
17180
17188
|
}
|
|
17181
17189
|
getA1() {
|
|
17182
|
-
return Xc(this.getCoords(), this._sheet._entireCoords,
|
|
17190
|
+
return Xc(this.getCoords(), this._sheet._entireCoords, jc, Pc);
|
|
17183
17191
|
}
|
|
17184
17192
|
getSheet() {
|
|
17185
17193
|
return this._sheet;
|
|
@@ -17206,8 +17214,8 @@ class T_ {
|
|
|
17206
17214
|
}
|
|
17207
17215
|
_createRange(t2, e2) {
|
|
17208
17216
|
const n2 = this._sheet;
|
|
17209
|
-
if (!t2) return
|
|
17210
|
-
if (n2._validateCoords(t2), n2._closed) return
|
|
17217
|
+
if (!t2) return jg(n2, n2._entireCoords);
|
|
17218
|
+
if (n2._validateCoords(t2), n2._closed) return jg(null, n2._entireCoords, t2);
|
|
17211
17219
|
let r2 = this._options;
|
|
17212
17220
|
return e2 && (r2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new T_(t2, this._sheet, r2);
|
|
17213
17221
|
}
|
|
@@ -17279,7 +17287,7 @@ class T_ {
|
|
|
17279
17287
|
const o2 = this.getCoords();
|
|
17280
17288
|
r2 || (r2 = o2);
|
|
17281
17289
|
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 = wl(Array.isArray(t2) ? t2 : [[t2]], l2, a2);
|
|
17282
|
-
return s2._updateTuples(h2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Cell" : "Range"} ${
|
|
17290
|
+
return s2._updateTuples(h2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Cell" : "Range"} ${jc(r2, s2._entireCoords)}`, ...n2 }, null, { isCell: true }), this;
|
|
17283
17291
|
}
|
|
17284
17292
|
setValues(t2, e2) {
|
|
17285
17293
|
if (!Array.isArray(t2)) throw new Error("'setValues' expects a 2d array; when working with a single value use 'setValue'.");
|
|
@@ -17306,7 +17314,7 @@ class T_ {
|
|
|
17306
17314
|
}
|
|
17307
17315
|
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;
|
|
17308
17316
|
let u2 = null;
|
|
17309
|
-
return u2 = l2 ? wl(Array.isArray(t2) ? t2 : [[t2]], d2, h2) : Sl(t2, h2, i2), s2._updateTuples(u2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Value" : "Values"} ${
|
|
17317
|
+
return u2 = l2 ? wl(Array.isArray(t2) ? t2 : [[t2]], d2, h2) : Sl(t2, h2, i2), s2._updateTuples(u2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Value" : "Values"} ${jc(r2, s2._entireCoords)}`, ...n2 }), o2;
|
|
17310
17318
|
}
|
|
17311
17319
|
getValues(t2) {
|
|
17312
17320
|
this._validateMaxSize(t2?.maxSize);
|
|
@@ -17586,21 +17594,21 @@ class T_ {
|
|
|
17586
17594
|
}
|
|
17587
17595
|
getA1() {
|
|
17588
17596
|
const t2 = this._sheet;
|
|
17589
|
-
return
|
|
17597
|
+
return jc(this.getCoords(), t2._entireCoords);
|
|
17590
17598
|
}
|
|
17591
17599
|
get [Symbol.toStringTag]() {
|
|
17592
17600
|
return "[SheetRange]";
|
|
17593
17601
|
}
|
|
17594
17602
|
toString() {
|
|
17595
17603
|
const t2 = this._sheet;
|
|
17596
|
-
return
|
|
17604
|
+
return jc(this.getCoords(), t2._entireCoords);
|
|
17597
17605
|
}
|
|
17598
17606
|
get isICellRange() {
|
|
17599
17607
|
return true;
|
|
17600
17608
|
}
|
|
17601
17609
|
}
|
|
17602
|
-
const k_ = Math.pow(2, 14), F_ = Math.pow(2, 20), O_ = (t2) => `${t2}`, D_ = (t2) =>
|
|
17603
|
-
let
|
|
17610
|
+
const k_ = Math.pow(2, 14), F_ = Math.pow(2, 20), O_ = (t2) => `${t2}`, D_ = (t2) => Lc(t2), L_ = (t2) => `${t2 + 1}`;
|
|
17611
|
+
let B_ = 0;
|
|
17604
17612
|
const z_ = () => [];
|
|
17605
17613
|
let P_ = 0;
|
|
17606
17614
|
class W_ {
|
|
@@ -17655,8 +17663,8 @@ class W_ {
|
|
|
17655
17663
|
this._initializing = false;
|
|
17656
17664
|
}
|
|
17657
17665
|
_createRange(t2, e2, n2 = null) {
|
|
17658
|
-
if (!t2) return
|
|
17659
|
-
if (this._validateCoords(t2), this._closed) return
|
|
17666
|
+
if (!t2) return jg(this, this._entireCoords);
|
|
17667
|
+
if (this._validateCoords(t2), this._closed) return jg(null, this._entireCoords, t2);
|
|
17660
17668
|
null === n2 && this._options.readonly && (n2 = "Readonly sheet");
|
|
17661
17669
|
let r2 = null;
|
|
17662
17670
|
return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new T_(((t3) => {
|
|
@@ -18136,12 +18144,12 @@ class W_ {
|
|
|
18136
18144
|
} while (T2);
|
|
18137
18145
|
return T2;
|
|
18138
18146
|
};
|
|
18139
|
-
const F2 = c2.getState(this), O2 = F2.cellValuesGrid.clone(), D2 = F2.calcGraph.clone(),
|
|
18140
|
-
if (t3 === e2) return e2;
|
|
18141
|
-
}), V2 = bl(u2, (t3, e2) => {
|
|
18147
|
+
const F2 = c2.getState(this), O2 = F2.cellValuesGrid.clone(), D2 = F2.calcGraph.clone(), L2 = F2.formulaSpatial.clone(), B2 = F2.spillSpatial.clone(), z2 = F2.pendingSpatial.clone(), P2 = F2.calcErrorsSpatial.clone(), W2 = F2.contentfulSpatial.clone(), H2 = bl(u2), V2 = bl(u2, (t3, e2) => {
|
|
18142
18148
|
if (t3 === e2) return e2;
|
|
18143
18149
|
}), $2 = bl(u2, (t3, e2) => {
|
|
18144
18150
|
if (t3 === e2) return e2;
|
|
18151
|
+
}), j2 = bl(u2, (t3, e2) => {
|
|
18152
|
+
if (t3 === e2) return e2;
|
|
18145
18153
|
}), G2 = [];
|
|
18146
18154
|
let U2 = null, q2 = null;
|
|
18147
18155
|
if (false !== n2?.textParser) {
|
|
@@ -18176,12 +18184,12 @@ class W_ {
|
|
|
18176
18184
|
}
|
|
18177
18185
|
if (!i2) {
|
|
18178
18186
|
const t4 = o3.style;
|
|
18179
|
-
void 0 === t4 || null === t4 && !s2 ||
|
|
18187
|
+
void 0 === t4 || null === t4 && !s2 || V2.append(e2, n3, t4);
|
|
18180
18188
|
const r4 = o3.hyperlink;
|
|
18181
|
-
void 0 === r4 || null === r4 && !s2 ||
|
|
18189
|
+
void 0 === r4 || null === r4 && !s2 || $2.append(e2, n3, r4);
|
|
18182
18190
|
}
|
|
18183
18191
|
const l3 = o3.formula;
|
|
18184
|
-
return void 0 === l3 || null === l3 && !s2 ||
|
|
18192
|
+
return void 0 === l3 || null === l3 && !s2 || j2.append(e2, n3, l3), a3;
|
|
18185
18193
|
};
|
|
18186
18194
|
let Z2 = -1, tt2 = -1;
|
|
18187
18195
|
try {
|
|
@@ -18221,21 +18229,21 @@ class W_ {
|
|
|
18221
18229
|
const e2 = r3[t4];
|
|
18222
18230
|
O2.delete(r3[t4]), W2.insertNonOverlapping({ ...e2, value: null });
|
|
18223
18231
|
const n3 = D2.delete(e2);
|
|
18224
|
-
this._updateFormulaSpatial(
|
|
18232
|
+
this._updateFormulaSpatial(L2, null, n3);
|
|
18225
18233
|
}
|
|
18226
18234
|
let i3;
|
|
18227
18235
|
J2.length > 0 && (O2.setValues(J2), i3 = { tuples: J2, bounds: l2 });
|
|
18228
|
-
let g3, m3 =
|
|
18236
|
+
let g3, m3 = j2.done();
|
|
18229
18237
|
if (m3.length > 1 && (m3 = el(m3, e.Orientation.Column, 1)), i3 || m3.length > 0) {
|
|
18230
18238
|
const t4 = D2.setInputs(i3, m3);
|
|
18231
|
-
g3 = this._updateFormulaSpatial(
|
|
18239
|
+
g3 = this._updateFormulaSpatial(L2, t4.inserts, t4.removes, F2.directStyleSpatial);
|
|
18232
18240
|
}
|
|
18233
18241
|
const f3 = nm(J2, u2), C3 = f3.length;
|
|
18234
18242
|
for (let t4 = 0; t4 < C3; t4++) W2.insertNonOverlapping(f3[t4]);
|
|
18235
|
-
const b3 =
|
|
18243
|
+
const b3 = V2.done();
|
|
18236
18244
|
b3.length > 0 && this._updateStyles(b3), G2.length > 0 && this._merge(G2);
|
|
18237
|
-
const x3 =
|
|
18238
|
-
if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial: W2, calcGraph: D2, formulaSpatial:
|
|
18245
|
+
const x3 = $2.done();
|
|
18246
|
+
if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial: W2, calcGraph: D2, formulaSpatial: L2, spillSpatial: B2, pendingSpatial: z2, calcErrorsSpatial: P2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
|
|
18239
18247
|
const t4 = "boolean" == typeof n2.autoFit ? Y_ : n2.autoFit;
|
|
18240
18248
|
this._autoFit([E2], t4);
|
|
18241
18249
|
}
|
|
@@ -18253,11 +18261,11 @@ class W_ {
|
|
|
18253
18261
|
if (a2.length > 0) {
|
|
18254
18262
|
i2 = true;
|
|
18255
18263
|
let e2 = a2[0];
|
|
18256
|
-
if (o2 = e2.colEnd - e2.colStart + 1, s2 = e2.rowEnd - e2.rowStart + 1, (t2.colEnd - t2.colStart + 1) % o2 != 0 || (t2.rowEnd - t2.rowStart + 1) % s2 != 0) throw new Error(
|
|
18264
|
+
if (o2 = e2.colEnd - e2.colStart + 1, s2 = e2.rowEnd - e2.rowStart + 1, (t2.colEnd - t2.colStart + 1) % o2 != 0 || (t2.rowEnd - t2.rowStart + 1) % s2 != 0) throw new Error(Vh);
|
|
18257
18265
|
const n3 = a2.length;
|
|
18258
18266
|
for (let t3 = 1; t3 < n3; t3++) {
|
|
18259
18267
|
const e3 = a2[t3];
|
|
18260
|
-
if (e3.colEnd - e3.colStart + 1 !== o2 || e3.rowEnd - e3.rowStart + 1 !== s2) throw new Error(
|
|
18268
|
+
if (e3.colEnd - e3.colStart + 1 !== o2 || e3.rowEnd - e3.rowStart + 1 !== s2) throw new Error(Vh);
|
|
18261
18269
|
}
|
|
18262
18270
|
}
|
|
18263
18271
|
const l2 = n2?.orientation ?? e.Orientation.Row, c2 = l2 === e.Orientation.Row;
|
|
@@ -18337,9 +18345,9 @@ class W_ {
|
|
|
18337
18345
|
}
|
|
18338
18346
|
return 0;
|
|
18339
18347
|
});
|
|
18340
|
-
const
|
|
18341
|
-
let
|
|
18342
|
-
v2 || (
|
|
18348
|
+
const L2 = this._beginCommit({ description: r2 });
|
|
18349
|
+
let B2 = [u2];
|
|
18350
|
+
v2 || (B2 = this._getVisible(B2, { orientations: c2 ? e.Orientations.Row : e.Orientations.Column })), this._clear(B2, void 0, void 0, true);
|
|
18343
18351
|
const z2 = this._createIncrementalUpdater({ orientation: l2 });
|
|
18344
18352
|
let P2 = c2 ? u2.rowStart : u2.colStart;
|
|
18345
18353
|
const W2 = S2.length;
|
|
@@ -18354,7 +18362,7 @@ class W_ {
|
|
|
18354
18362
|
}
|
|
18355
18363
|
P2 += I2;
|
|
18356
18364
|
}
|
|
18357
|
-
return z2.apply(),
|
|
18365
|
+
return z2.apply(), L2.commit(), u2;
|
|
18358
18366
|
}
|
|
18359
18367
|
_autoFill(t2, n2, r2) {
|
|
18360
18368
|
const { direction: o2, amount: s2 } = ((t3, n3) => {
|
|
@@ -18388,10 +18396,10 @@ class W_ {
|
|
|
18388
18396
|
const O2 = [];
|
|
18389
18397
|
let D2 = null;
|
|
18390
18398
|
h2 || (m2 = this._beginCommit({ description: "Auto Fill", operation: { name: "autoFill", params: [t2, n2, r2] } }));
|
|
18391
|
-
const
|
|
18392
|
-
let
|
|
18393
|
-
for (; !
|
|
18394
|
-
const t3 =
|
|
18399
|
+
const L2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Ah.Type.Style]: false } });
|
|
18400
|
+
let B2 = L2.next();
|
|
18401
|
+
for (; !B2.done; ) {
|
|
18402
|
+
const t3 = B2.value.context, e2 = t3.getCell(), n3 = t3.getCoords();
|
|
18395
18403
|
D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex: N2 ? I2 - 1 : R2 + 1, values: [] }, O2.push(D2));
|
|
18396
18404
|
const r3 = n3[C2];
|
|
18397
18405
|
if (N2) for (let t4 = D2.lastIndex + 1; t4 < r3; t4++) D2.values.push(null);
|
|
@@ -18403,7 +18411,7 @@ class W_ {
|
|
|
18403
18411
|
let t4 = e2.getValue();
|
|
18404
18412
|
D2.values.push(t4);
|
|
18405
18413
|
}
|
|
18406
|
-
|
|
18414
|
+
B2 = L2.next();
|
|
18407
18415
|
}
|
|
18408
18416
|
const z2 = O2.length;
|
|
18409
18417
|
for (let t3 = 0; t3 < z2; t3++) {
|
|
@@ -18430,9 +18438,9 @@ class W_ {
|
|
|
18430
18438
|
return c2 = d2 ? this.createTemporaryCell(l3, s3) : this.createTemporaryCell(null, s3).createTemporaryCell(l3), c2;
|
|
18431
18439
|
}), false;
|
|
18432
18440
|
}
|
|
18433
|
-
const H2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }),
|
|
18441
|
+
const H2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), V2 = O2.length;
|
|
18434
18442
|
O2.sort((t3, e2) => t3.oppositeIndex - e2.oppositeIndex);
|
|
18435
|
-
for (let t3 = 0; t3 <
|
|
18443
|
+
for (let t3 = 0; t3 < V2; t3++) {
|
|
18436
18444
|
const e2 = t3, n3 = P2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = N2 ? x2 : x2 + k2 - 1, s3 = this.isDate1904();
|
|
18437
18445
|
for (let t4 = 0; t4 < k2; t4++) {
|
|
18438
18446
|
let e3 = n3(o3 + (N2 ? t4 : -t4));
|
|
@@ -18442,23 +18450,23 @@ class W_ {
|
|
|
18442
18450
|
}
|
|
18443
18451
|
}
|
|
18444
18452
|
this._clear([p2], r2?.contentsOnly ? Yh.Content.Formats : void 0), H2.apply();
|
|
18445
|
-
const
|
|
18446
|
-
if (
|
|
18447
|
-
if (
|
|
18453
|
+
const $2 = this._getMerges([_2]), j2 = c.unionRangesArrays($2);
|
|
18454
|
+
if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Hh);
|
|
18455
|
+
if ($2.length > 0) {
|
|
18448
18456
|
const n3 = [], r3 = s2 / E2;
|
|
18449
18457
|
if (i2) {
|
|
18450
|
-
const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 =
|
|
18458
|
+
const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 = $2.length;
|
|
18451
18459
|
for (let e2 = 0; e2 < a3; e2++) {
|
|
18452
|
-
const o3 =
|
|
18460
|
+
const o3 = $2[e2], a4 = o3.rowStart - t2.rowStart, l3 = o3.rowEnd - o3.rowStart + 1;
|
|
18453
18461
|
for (let t3 = 0; t3 < r3; t3++) {
|
|
18454
18462
|
const e3 = t3 * s3;
|
|
18455
18463
|
n3.push({ colStart: o3.colStart, rowStart: i3 + e3 + a4, colEnd: o3.colEnd, rowEnd: i3 + e3 + a4 + l3 - 1 });
|
|
18456
18464
|
}
|
|
18457
18465
|
}
|
|
18458
18466
|
} else {
|
|
18459
|
-
const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 =
|
|
18467
|
+
const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 = $2.length;
|
|
18460
18468
|
for (let e2 = 0; e2 < a3; e2++) {
|
|
18461
|
-
const o3 =
|
|
18469
|
+
const o3 = $2[e2], a4 = o3.colStart - t2.colStart, l3 = o3.colEnd - o3.colStart + 1;
|
|
18462
18470
|
for (let t3 = 0; t3 < r3; t3++) {
|
|
18463
18471
|
const e3 = t3 * s3;
|
|
18464
18472
|
n3.push({ colStart: i3 + e3 + a4, rowStart: o3.rowStart, colEnd: i3 + e3 + a4 + l3 - 1, rowEnd: o3.rowEnd });
|
|
@@ -19116,13 +19124,13 @@ class W_ {
|
|
|
19116
19124
|
}
|
|
19117
19125
|
const k2 = n2._getState(), F2 = {}, O2 = { transpose: s3 ?? false };
|
|
19118
19126
|
g2 && (F2.directStyleSpatial = k2.directStyleSpatial, F2.continuousFillSpatial = k2.continuousFillSpatial, F2.mergeSpatial = k2.mergeSpatial), u2 && (t2._clear([d2], void 0, void 0, false, true), E2.push(d2), F2.rangesListenerSpatial2 = k2.rangesListenerSpatial2);
|
|
19119
|
-
const D2 = l2,
|
|
19127
|
+
const D2 = l2, L2 = D2._getState(), B2 = Object.keys(F2), z2 = B2.length;
|
|
19120
19128
|
for (let t3 = 0; t3 < z2; t3++) {
|
|
19121
|
-
const e2 =
|
|
19129
|
+
const e2 = B2[t3], n3 = F2[e2].createCopiedEntries(d2, v2, O2), r4 = L2[e2].clone(), o2 = n3.removes, s4 = o2.length;
|
|
19122
19130
|
for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
|
|
19123
|
-
r4.load(n3.inserts),
|
|
19131
|
+
r4.load(n3.inserts), L2[e2] = r4;
|
|
19124
19132
|
}
|
|
19125
|
-
D2._updateState(
|
|
19133
|
+
D2._updateState(L2), E2.push(v2), C2.push(v2), w2 && w2.length > 0 && D2._colHeaders.updateHeaderPairs(w2), y2 && y2.length > 0 && D2._rowHeaders.updateHeaderPairs(y2), T2?.apply(), S2.length > 0 && l2.getRanges(S2).merge(), I2.commit({ viewBefore: x2, viewAfter: (t3) => ({ ...t3, view: l2.getView(), selection: sm(C2), ranges: E2 }) });
|
|
19126
19134
|
} catch (t3) {
|
|
19127
19135
|
throw console.warn(t3), I2.rollback(), new Error(((t4) => `Unable to paste: ${t4}`)(t3.message), { cause: t3 });
|
|
19128
19136
|
}
|
|
@@ -19286,17 +19294,19 @@ class W_ {
|
|
|
19286
19294
|
}
|
|
19287
19295
|
}
|
|
19288
19296
|
_autoFit(n2, r2) {
|
|
19289
|
-
if (this._closed) throw new Error(
|
|
19297
|
+
if (this._closed) throw new Error($h);
|
|
19290
19298
|
r2 = { expandOnly: false, skipCustomSize: false, minContent: false, ...r2 };
|
|
19291
19299
|
const o2 = "Autofit";
|
|
19292
19300
|
let s2;
|
|
19293
19301
|
const i2 = Fg(n2, this._entireCoords, true), a2 = kg(n2, this._entireCoords, true);
|
|
19294
|
-
!i2 && a2 ?
|
|
19302
|
+
s2 = !i2 && a2 ? `${o2} ${h_}` : !a2 && i2 ? `${o2} ${c_}` : a2 && i2 ? `${o2} All` : `${o2}`;
|
|
19295
19303
|
let l2 = r2.orientations !== e.Orientations.Row;
|
|
19296
19304
|
this._colHeaders.isProtected() && (l2 = false);
|
|
19297
19305
|
let h2 = r2.orientations !== e.Orientations.Column;
|
|
19298
19306
|
if (this._rowHeaders.isProtected() && (h2 = false), !h2 && !l2) return;
|
|
19299
|
-
const d2 = l2 && (false === r2.expandOnly || r2.expandOnly === e.Orientation.Row), u2 = h2 && (false === r2.expandOnly || r2.expandOnly === e.Orientation.Column), g2 = r2.minContent
|
|
19307
|
+
const d2 = l2 && (false === r2.expandOnly || r2.expandOnly === e.Orientation.Row), u2 = h2 && (false === r2.expandOnly || r2.expandOnly === e.Orientation.Column), g2 = r2.minContent;
|
|
19308
|
+
h2 && this._protectionCheck(() => ["formatRows"], n2, s2), l2 && this._protectionCheck(() => ["formatColumns"], n2, s2);
|
|
19309
|
+
const m2 = (t2, e2) => {
|
|
19300
19310
|
if (void 0 === t2) return e2;
|
|
19301
19311
|
if (void 0 === e2) return t2;
|
|
19302
19312
|
return t2.sizeSet - e2.sizeSet;
|
|
@@ -19306,18 +19316,18 @@ class W_ {
|
|
|
19306
19316
|
const b2 = this._styles.getNormal(), v2 = this._cellOptions, x2 = r2.orientations === e.Orientations.Row, I2 = /* @__PURE__ */ new Map(), R2 = nl(n2, 1);
|
|
19307
19317
|
R2.sort(c.createRangeComparator(e.Orientation.Column));
|
|
19308
19318
|
const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, N2 = Ko.getDeviceScale(), T2 = this._defaultRowHeight() * N2, k2 = this._defaultColWidth(), F2 = (t2, e2 = 1) => {
|
|
19309
|
-
if (0 !== t2 &&
|
|
19319
|
+
if (0 !== t2 && !(e2 > 1)) return t2 = Math.max(t2, T2), (e3) => u2 ? t2 : Math.max(e3, t2 ?? T2);
|
|
19310
19320
|
}, O2 = (t2, e2 = 1) => {
|
|
19311
|
-
if (0 !== t2 &&
|
|
19321
|
+
if (0 !== t2 && !(e2 > 1)) return (e3) => d2 ? t2 : Math.max(e3, t2 ?? k2);
|
|
19312
19322
|
};
|
|
19313
19323
|
for (let n3 = 0; n3 < A2; n3++) {
|
|
19314
19324
|
const r3 = [];
|
|
19315
|
-
let f3 = -1, p3 = false, A3 = b2, N3 = 1,
|
|
19316
|
-
const
|
|
19317
|
-
let
|
|
19318
|
-
const
|
|
19319
|
-
(u2 || d2) &&
|
|
19320
|
-
const
|
|
19325
|
+
let f3 = -1, p3 = false, A3 = b2, N3 = 1, T3 = 1, k3 = 1;
|
|
19326
|
+
const D2 = R2[n3];
|
|
19327
|
+
let L2 = D2.colStart, B2 = D2.rowStart, z2 = D2.colEnd, P2 = D2.rowEnd;
|
|
19328
|
+
const W2 = this._getUsedCoords();
|
|
19329
|
+
(u2 || d2) && W2 && (L2 = u2 ? W2.colStart : D2.colStart, B2 = d2 ? W2.rowStart : D2.rowStart, z2 = u2 ? W2.colEnd : D2.colEnd, P2 = d2 ? W2.rowEnd : D2.rowEnd);
|
|
19330
|
+
const H2 = { includeRangeTypes: { [Ah.Type.Style]: false, [Ah.Type.Merge]: false, [Ah.Type.Continuous]: false, [Ah.Type.Contentful]: false }, excludeHidden: false, bounds: { colStart: L2, rowStart: B2, colEnd: z2, rowEnd: P2 }, orientation: e.Orientation.Column }, V2 = h2 ? [] : void 0, $2 = l2 ? [] : void 0, j2 = (t2, e2, n4) => {
|
|
19321
19331
|
if (t2 > e2) return null;
|
|
19322
19332
|
const r4 = [];
|
|
19323
19333
|
let o4 = t2;
|
|
@@ -19336,59 +19346,45 @@ class W_ {
|
|
|
19336
19346
|
r4.push(t3);
|
|
19337
19347
|
}
|
|
19338
19348
|
return r4;
|
|
19339
|
-
},
|
|
19340
|
-
let
|
|
19341
|
-
for (; !
|
|
19342
|
-
const t2 =
|
|
19343
|
-
|
|
19344
|
-
const o4 = c.intersectRanges(
|
|
19349
|
+
}, G2 = this._rangeStateIterator(H2);
|
|
19350
|
+
let U2 = G2.next();
|
|
19351
|
+
for (; !U2.done; ) {
|
|
19352
|
+
const t2 = U2.value, e2 = t2.intersection, n4 = t2.start, r4 = t2.end;
|
|
19353
|
+
$_.colStart = n4.colIndex, $_.rowStart = n4.rowIndex, $_.colEnd = r4.colIndex, $_.rowEnd = r4.rowIndex;
|
|
19354
|
+
const o4 = c.intersectRanges($_, D2, V_), s4 = Cg(0, o4, e2, v2).getBestFit();
|
|
19345
19355
|
if (h2) {
|
|
19346
|
-
const t3 = Math.max(n4.rowIndex,
|
|
19347
|
-
|
|
19356
|
+
const t3 = Math.max(n4.rowIndex, B2), e3 = Math.min(r4.rowIndex, P2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: F2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
|
|
19357
|
+
V2.push(i4);
|
|
19348
19358
|
}
|
|
19349
|
-
if (l2
|
|
19350
|
-
const t3 = Math.max(n4.colIndex,
|
|
19351
|
-
|
|
19359
|
+
if (l2) {
|
|
19360
|
+
const t3 = Math.max(n4.colIndex, L2), e3 = Math.min(r4.colIndex, z2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
|
|
19361
|
+
$2.push(i4);
|
|
19352
19362
|
}
|
|
19353
|
-
|
|
19354
|
-
}
|
|
19355
|
-
if (G2) {
|
|
19356
|
-
G2.sort(m2);
|
|
19357
|
-
let t2 = this._colHeaders.updateHeaderPairs(G2, M2);
|
|
19358
|
-
t2 = vs(xs(Is(t2)));
|
|
19359
|
-
const e2 = U2(L2.colStart, L2.colEnd, t2);
|
|
19360
|
-
e2 && this._colHeaders.updateHeaderPairs(e2, M2);
|
|
19361
|
-
}
|
|
19362
|
-
if ($2) {
|
|
19363
|
-
$2.sort(m2);
|
|
19364
|
-
let t2 = this._rowHeaders.updateHeaderPairs($2, M2);
|
|
19365
|
-
t2 = vs(xs(Is(t2)));
|
|
19366
|
-
const e2 = U2(L2.rowStart, L2.rowEnd, t2);
|
|
19367
|
-
e2 && this._rowHeaders.updateHeaderPairs(e2, M2);
|
|
19363
|
+
U2 = G2.next();
|
|
19368
19364
|
}
|
|
19369
|
-
const
|
|
19370
|
-
let
|
|
19371
|
-
for (; !
|
|
19372
|
-
const e2 =
|
|
19365
|
+
const q2 = this._cellStateIterator({ ...H2, includeRangeTypes: { [Ah.Type.Merge]: false, [Ah.Type.Table]: false, [Ah.Type.Style]: false, [Ah.Type.Continuous]: false }, ignoreEmptyIntersections: true });
|
|
19366
|
+
let J2, K2, X2, Y2 = q2.next(), Q2 = 1, Z2 = 1;
|
|
19367
|
+
for (; !Y2.done; ) {
|
|
19368
|
+
const e2 = Y2.value, n4 = e2[0], l3 = e2[2];
|
|
19373
19369
|
let h3 = b2;
|
|
19374
19370
|
const d3 = l3?.directStyle ?? l3?.table.getStyle() ?? null;
|
|
19375
|
-
d3 ===
|
|
19371
|
+
d3 === J2 ? h3 = K2 : (h3 = d3 ? Cg(0, c.cellToRange(n4, j_), l3, v2) : b2, K2 = h3);
|
|
19376
19372
|
let u3 = 1, g3 = 1;
|
|
19377
19373
|
const m3 = l3?.merge ?? null;
|
|
19378
|
-
if (m3 ===
|
|
19374
|
+
if (m3 === X2) u3 = Q2, g3 = Z2;
|
|
19379
19375
|
else {
|
|
19380
19376
|
if (m3) {
|
|
19381
19377
|
const t2 = m3.getCoords();
|
|
19382
19378
|
u3 = t2.colEnd - t2.colStart + 1, g3 = t2.rowEnd - t2.rowStart + 1;
|
|
19383
19379
|
} else u3 = 1, g3 = 1;
|
|
19384
|
-
|
|
19380
|
+
Q2 = u3, Z2 = g3;
|
|
19385
19381
|
}
|
|
19386
|
-
const x3 = n4.colIndex, I3 = n4.rowIndex, R3 = e2[1], M3 = dc(R3),
|
|
19387
|
-
if (
|
|
19388
|
-
|
|
19382
|
+
const x3 = n4.colIndex, I3 = n4.rowIndex, R3 = e2[1], M3 = dc(R3), F3 = c.isCellWithinRange(n4, D2), O3 = l3?.continuous ?? null;
|
|
19383
|
+
if (O3) {
|
|
19384
|
+
k3 = O3.getCoords().colEnd - x3 + 1;
|
|
19389
19385
|
}
|
|
19390
|
-
let
|
|
19391
|
-
if (
|
|
19386
|
+
let L3 = false, B3 = false;
|
|
19387
|
+
if (J2 === d3 && u3 === N3 && g3 === T3 && M3 !== t.String && M3 !== t.Error && F3 === p3 || (L3 = true, M3 === t.RichData && (B3 = true), B3 && (L3 = false)), J2 = d3, X2 = m3, (f3 !== x3 || L3) && (-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), measureWidth: -1, measureHeight: -1, colSpan: k3, isFit: p3 }), f3 = x3, A3 = h3, p3 = F3, N3 = u3, T3 = g3, o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, w2 = false, S2 = false, y2 = false, E2 = I3), C2 = I3, !B3) if (null === R3) y2 = true;
|
|
19392
19388
|
else switch (M3) {
|
|
19393
19389
|
case t.Number:
|
|
19394
19390
|
0 === R3 && (i3 = true), o3 = Math.min(o3, R3), s3 = Math.max(s3, R3);
|
|
@@ -19402,72 +19398,70 @@ class W_ {
|
|
|
19402
19398
|
case t.Boolean:
|
|
19403
19399
|
R3 ? S2 = true : w2 = true;
|
|
19404
19400
|
}
|
|
19405
|
-
|
|
19401
|
+
Y2 = q2.next();
|
|
19406
19402
|
}
|
|
19407
|
-
-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: N3, spanHeight:
|
|
19408
|
-
let
|
|
19409
|
-
const
|
|
19410
|
-
for (let e2 = 0; e2 <
|
|
19403
|
+
-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: N3, spanHeight: T3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), colSpan: k3, measureWidth: -1, measureHeight: -1, isFit: p3 });
|
|
19404
|
+
let tt2 = -1, et2 = -1;
|
|
19405
|
+
const nt2 = r3.length;
|
|
19406
|
+
for (let e2 = 0; e2 < nt2; e2++) {
|
|
19411
19407
|
const n4 = r3[e2], o4 = x2 || !n4.isFit, s4 = n4.maxVal, i4 = n4.style, a4 = n4.colSpan;
|
|
19412
19408
|
let l3 = n4.colWidth;
|
|
19413
|
-
if (a4 > 1 && (l3 = this._colHeaders.getSpanSize(f3, f3 + a4)),
|
|
19409
|
+
if (a4 > 1 && (l3 = this._colHeaders.getSpanSize(f3, f3 + a4)), tt2 = 0, et2 = 0, s4 !== Number.MIN_SAFE_INTEGER) {
|
|
19414
19410
|
const e3 = bg(t.Number, i4, s4, v2, l3, g2, o4);
|
|
19415
|
-
|
|
19411
|
+
tt2 = e3.width, et2 = e3.height;
|
|
19416
19412
|
const r4 = n4.minVal;
|
|
19417
19413
|
if (r4 * s4 < 0) {
|
|
19418
19414
|
const e4 = bg(t.Number, i4, r4, v2, l3, g2, o4);
|
|
19419
|
-
|
|
19415
|
+
tt2 = Math.max(tt2, e4.width), et2 = Math.max(et2, e4.height);
|
|
19420
19416
|
}
|
|
19421
19417
|
if (n4.hasZero && 0 !== r4 && 0 !== s4) {
|
|
19422
19418
|
const e4 = bg(t.Number, i4, 0, v2, l3, g2, o4);
|
|
19423
|
-
|
|
19419
|
+
tt2 = Math.max(tt2, e4.width), et2 = Math.max(et2, e4.height);
|
|
19424
19420
|
}
|
|
19425
19421
|
}
|
|
19426
19422
|
const c2 = n4.text;
|
|
19427
19423
|
if (c2.length > 0) {
|
|
19428
19424
|
const e3 = bg(t.String, i4, c2, v2, l3, g2, o4, void 0, I2);
|
|
19429
|
-
|
|
19425
|
+
tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
|
|
19430
19426
|
}
|
|
19431
19427
|
if (n4.hasTrue || n4.hasFalse) {
|
|
19432
19428
|
const e3 = bg(t.Boolean, i4, !n4.hasFalse, v2, l3, g2, o4);
|
|
19433
|
-
|
|
19429
|
+
tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
|
|
19434
19430
|
}
|
|
19435
19431
|
if (n4.hasEmpty) {
|
|
19436
19432
|
const e3 = bg(t.Boolean, i4, null, v2, l3, g2, o4);
|
|
19437
|
-
|
|
19433
|
+
tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
|
|
19438
19434
|
}
|
|
19439
|
-
n4.measureWidth =
|
|
19435
|
+
n4.measureWidth = tt2, n4.measureHeight = et2;
|
|
19440
19436
|
}
|
|
19441
19437
|
if (l2) {
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
t2.push({ address: { min: o4, max: o4 }, update: { size: l3, autoSize: true }, sizeSet: null === a4 ? k2 : a4 });
|
|
19438
|
+
for (let t3 = 0; t3 < nt2; t3++) {
|
|
19439
|
+
let e3 = r3[t3];
|
|
19440
|
+
const n4 = e3.col;
|
|
19441
|
+
let o4 = r3[t3 + 1], s4 = e3.measureWidth ?? 0;
|
|
19442
|
+
for (; o4 && o4.col === n4; ) o4.measureWidth && (s4 = Math.max(o4.measureWidth ?? 0, s4)), t3++, e3 = r3[t3], o4 = r3[t3 + 1];
|
|
19443
|
+
0 === s4 && (s4 = null);
|
|
19444
|
+
const i4 = O2(s4, e3.spanWidth);
|
|
19445
|
+
$2.push({ address: { min: n4, max: n4 }, update: { size: i4, autoSize: true }, sizeSet: null === s4 ? -1 : s4 });
|
|
19451
19446
|
}
|
|
19452
|
-
|
|
19447
|
+
$2.sort(m2);
|
|
19448
|
+
let t2 = this._colHeaders.updateHeaderPairs($2, M2);
|
|
19449
|
+
t2 = vs(xs(Is(t2)));
|
|
19450
|
+
const e2 = j2(D2.colStart, D2.colEnd, t2);
|
|
19451
|
+
e2 && this._colHeaders.updateHeaderPairs(e2, M2);
|
|
19453
19452
|
}
|
|
19454
19453
|
if (h2) {
|
|
19455
|
-
let
|
|
19456
|
-
|
|
19457
|
-
|
|
19458
|
-
|
|
19459
|
-
|
|
19460
|
-
for (let o5 = 0; o5 < ot2; o5++) {
|
|
19461
|
-
const s5 = r3[o5];
|
|
19462
|
-
t2 = s5.spanHeight;
|
|
19463
|
-
n4 = vs(bs(n4, { min: s5.minRow, max: s5.maxRow, value: s5.measureHeight }, e2));
|
|
19464
|
-
}
|
|
19465
|
-
const o4 = n4.length, s4 = new Array(o4);
|
|
19466
|
-
for (let t3 = 0; t3 < o4; t3++) {
|
|
19467
|
-
const e3 = n4[t3], r4 = F2(e3.value, 1), o5 = { address: { min: e3.min, max: e3.max }, update: { size: r4, autoSize: true } };
|
|
19468
|
-
s4[t3] = o5;
|
|
19454
|
+
for (let t3 = 0; t3 < nt2; t3++) {
|
|
19455
|
+
let e3 = r3[t3], n4 = e3.measureHeight ?? 0;
|
|
19456
|
+
0 === n4 && (n4 = null);
|
|
19457
|
+
const o4 = F2(n4, e3.spanHeight);
|
|
19458
|
+
V2.push({ address: { min: e3.minRow, max: e3.maxRow }, update: { size: o4, autoSize: true }, sizeSet: null === n4 ? -1 : n4 });
|
|
19469
19459
|
}
|
|
19470
|
-
|
|
19460
|
+
V2.sort(m2);
|
|
19461
|
+
let t2 = this._rowHeaders.updateHeaderPairs(V2, M2);
|
|
19462
|
+
t2 = vs(xs(Is(t2)));
|
|
19463
|
+
const e2 = j2(D2.rowStart, D2.rowEnd, t2);
|
|
19464
|
+
e2 && this._rowHeaders.updateHeaderPairs(e2, M2);
|
|
19471
19465
|
}
|
|
19472
19466
|
}
|
|
19473
19467
|
this._commitAndAutoSelect(p2, f2, r2?.autoSelect, { viewAfter: { ranges: n2 } });
|
|
@@ -19478,7 +19472,7 @@ class W_ {
|
|
|
19478
19472
|
_createRangeEvent(t2, e2) {
|
|
19479
19473
|
const n2 = this, r2 = () => {
|
|
19480
19474
|
const e3 = n2._getState();
|
|
19481
|
-
return this._closed || e3.deleted ?
|
|
19475
|
+
return this._closed || e3.deleted ? jg(null) : t2 ? Array.isArray(t2) ? n2._createRanges(t2) : n2._createRange(t2) : jg(this, this._entireCoords);
|
|
19482
19476
|
}, o2 = e2.trigger;
|
|
19483
19477
|
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() };
|
|
19484
19478
|
}
|
|
@@ -19571,10 +19565,10 @@ class W_ {
|
|
|
19571
19565
|
return r2;
|
|
19572
19566
|
}
|
|
19573
19567
|
_addRangesListeners(t2, e2, n2) {
|
|
19574
|
-
if (this._closed) throw new Error(
|
|
19575
|
-
if (!e2) throw new Error(
|
|
19568
|
+
if (this._closed) throw new Error($h);
|
|
19569
|
+
if (!e2) throw new Error(Lh);
|
|
19576
19570
|
n2 = n2 ? { ...U_, ...n2 } : U_;
|
|
19577
|
-
const r2 = n2?.transactional ?? false, o2 = this, s2 =
|
|
19571
|
+
const r2 = n2?.transactional ?? false, o2 = this, s2 = B_++ % Number.MAX_SAFE_INTEGER, i2 = () => {
|
|
19578
19572
|
let t3 = null, e3 = null;
|
|
19579
19573
|
if (r2) {
|
|
19580
19574
|
const n4 = o2._getState();
|
|
@@ -19611,8 +19605,8 @@ class W_ {
|
|
|
19611
19605
|
return h2.load(g2), d2.set(s2, l2), u2 && (this._updateState({ rangeListenerSpatial: h2, rangesListenerMap: d2 }), u2.commit({ forceAmend: true })), i2;
|
|
19612
19606
|
}
|
|
19613
19607
|
_addRangesListeners2(t2, e2, n2, r2) {
|
|
19614
|
-
if (this._closed) throw new Error(
|
|
19615
|
-
if (!e2) throw new Error(
|
|
19608
|
+
if (this._closed) throw new Error($h);
|
|
19609
|
+
if (!e2) throw new Error(Lh);
|
|
19616
19610
|
n2 = n2 ? { ...U_, ...n2 } : U_;
|
|
19617
19611
|
const s2 = n2?.transactional ?? false, i2 = this, a2 = o.uuidV4(), l2 = P_++, h2 = () => {
|
|
19618
19612
|
let t3 = null, e3 = null;
|
|
@@ -19714,7 +19708,7 @@ class W_ {
|
|
|
19714
19708
|
return this.getEntireRange().find(t2, e2);
|
|
19715
19709
|
}
|
|
19716
19710
|
_find(t2, n2, r2) {
|
|
19717
|
-
if (this._closed) throw new Error(
|
|
19711
|
+
if (this._closed) throw new Error($h);
|
|
19718
19712
|
if (!n2) return null;
|
|
19719
19713
|
const o2 = [...t2], s2 = r2?.orientation ?? e.Orientation.Row, i2 = r2?.reverse, a2 = !r2?.disableWrap, l2 = r2?.from ? this._cellToCoords(r2?.from) : null;
|
|
19720
19714
|
let h2 = null;
|
|
@@ -19850,7 +19844,7 @@ class W_ {
|
|
|
19850
19844
|
return a2 || i2;
|
|
19851
19845
|
}
|
|
19852
19846
|
_extendRange(t2, n2) {
|
|
19853
|
-
if (this._closed) throw new Error(
|
|
19847
|
+
if (this._closed) throw new Error($h);
|
|
19854
19848
|
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 };
|
|
19855
19849
|
let a2;
|
|
19856
19850
|
const l2 = o2._getRangedEntries("mergeSpatial", [c.cellToRange(n2)], i2);
|
|
@@ -20025,7 +20019,7 @@ class W_ {
|
|
|
20025
20019
|
return this._view;
|
|
20026
20020
|
}
|
|
20027
20021
|
setView(t2) {
|
|
20028
|
-
if (this._closed) throw new Error(
|
|
20022
|
+
if (this._closed) throw new Error($h);
|
|
20029
20023
|
if (!t2) throw new Error("View can not be empty.");
|
|
20030
20024
|
this._viewRemoveListener?.(), this._view = t2, this._viewRemoveListener = t2.addListeners(this._viewListener, { transactional: false });
|
|
20031
20025
|
const e2 = this.getSelection().getCoords();
|
|
@@ -20035,7 +20029,7 @@ class W_ {
|
|
|
20035
20029
|
return this._tabColor;
|
|
20036
20030
|
}
|
|
20037
20031
|
setTabColor(t2) {
|
|
20038
|
-
if (this._closed) throw new Error(
|
|
20032
|
+
if (this._closed) throw new Error($h);
|
|
20039
20033
|
return this._tabColor = "string" == typeof t2 ? this._styles.parseColor(t2) : t2 ?? null, this._emitter.notify("onTabColorChange"), this;
|
|
20040
20034
|
}
|
|
20041
20035
|
getRowHeaders() {
|
|
@@ -20045,7 +20039,7 @@ class W_ {
|
|
|
20045
20039
|
return this._colHeaders;
|
|
20046
20040
|
}
|
|
20047
20041
|
async toJSON(n2 = false) {
|
|
20048
|
-
if (this._closed) throw new Error(
|
|
20042
|
+
if (this._closed) throw new Error($h);
|
|
20049
20043
|
await this._emitter.notify("onBeforeSave", { async: true }), await Promise.resolve(this._starting);
|
|
20050
20044
|
let r2 = {};
|
|
20051
20045
|
const o2 = this._getState();
|
|
@@ -20229,9 +20223,9 @@ class W_ {
|
|
|
20229
20223
|
}
|
|
20230
20224
|
}
|
|
20231
20225
|
async _addMovable(t2) {
|
|
20232
|
-
if (!this.getProtection().isObjectsAllowed()) throw new Error(
|
|
20226
|
+
if (!this.getProtection().isObjectsAllowed()) throw new Error(Bh);
|
|
20233
20227
|
if (!t2) throw new Error("No movable options provided");
|
|
20234
|
-
if (this._closed) throw new Error(
|
|
20228
|
+
if (this._closed) throw new Error($h);
|
|
20235
20229
|
const e2 = {};
|
|
20236
20230
|
t2?.type && (e2.content = { type: t2.type, json: t2?.json }), t2?.anchorType && (e2.anchorType = t2?.anchorType), t2.bounds && (e2.anchor = null);
|
|
20237
20231
|
const n2 = this._getState().movableSpatial, r2 = this._beginCommit({ description: t2?.description ?? "Insert Drawing" }), o2 = this._createMovableEntry(e2, n2.size(), t2.fromResourceId), s2 = n2.clone();
|
|
@@ -20248,7 +20242,7 @@ class W_ {
|
|
|
20248
20242
|
}
|
|
20249
20243
|
async _addImage(t2, e2 = { type: "picture" }) {
|
|
20250
20244
|
if (!t2) throw new Error("An image must be provided as a string or a resource option.");
|
|
20251
|
-
if (!this.getProtection().isObjectsAllowed()) throw new Error(
|
|
20245
|
+
if (!this.getProtection().isObjectsAllowed()) throw new Error(Bh);
|
|
20252
20246
|
const n2 = this._resources.add(t2), r2 = await n2.toBuffer(), s2 = await n2.getType(), i2 = this._getBoundsAtCoords(om(this.getSelection().getCoords())[0]), { naturalDimensions: a2, asUrl: l2 } = await w.loadImageDetails(r2, s2);
|
|
20253
20247
|
URL.revokeObjectURL(l2);
|
|
20254
20248
|
const c2 = { ...i2, ...a2, ...e2?.bounds };
|
|
@@ -20500,7 +20494,7 @@ class W_ {
|
|
|
20500
20494
|
}), 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;
|
|
20501
20495
|
}
|
|
20502
20496
|
beginCommit(t2) {
|
|
20503
|
-
if (this._closed) throw new Error(
|
|
20497
|
+
if (this._closed) throw new Error($h);
|
|
20504
20498
|
return this._beginCommit("string" == typeof t2 ? { description: t2 } : t2);
|
|
20505
20499
|
}
|
|
20506
20500
|
_getState() {
|
|
@@ -20694,14 +20688,14 @@ class W_ {
|
|
|
20694
20688
|
};
|
|
20695
20689
|
this._colHeaders = new d_({ sheet: t2, orientation: e.Orientation.Column, maxSheetCoords: this._entireCoords, transactions: this._transactions, isProtected: () => !t2._initializing && !t2.getProtection().isFormatColumnsAllowed(), getTextAt: (t3) => {
|
|
20696
20690
|
const e2 = this.getView().getColumnHeaderStyle();
|
|
20697
|
-
return e2 === mp.HeaderTextStyle.A1 ? D_(t3) : e2 === mp.HeaderTextStyle.Zero ? O_(t3) : e2 === mp.HeaderTextStyle.One ?
|
|
20691
|
+
return e2 === mp.HeaderTextStyle.A1 ? D_(t3) : e2 === mp.HeaderTextStyle.Zero ? O_(t3) : e2 === mp.HeaderTextStyle.One ? L_(t3) : void 0;
|
|
20698
20692
|
}, defaultSize: () => this._defaultColWidth() / h2(), scaleFactor: h2, maxSize: () => 255, setContainerShiftedCallback: (t3) => {
|
|
20699
20693
|
this._colHeadersShiftCallback = t3;
|
|
20700
20694
|
} }), this._colHeadersRemoveListener = this._colHeaders.addListeners(this._colHeadersListener, { transactional: true }), this._rowHeadersRemoveListener?.();
|
|
20701
20695
|
const d2 = Ko.getDeviceScale();
|
|
20702
20696
|
this._rowHeaders = new d_({ sheet: t2, orientation: e.Orientation.Row, maxSheetCoords: this._entireCoords, transactions: this._transactions, isProtected: () => !t2._initializing && !t2.getProtection().isFormatRowsAllowed(), getTextAt: (t3) => {
|
|
20703
20697
|
const e2 = this.getView().getRowHeaderStyle();
|
|
20704
|
-
return e2 === mp.HeaderTextStyle.One ?
|
|
20698
|
+
return e2 === mp.HeaderTextStyle.One ? L_(t3) : e2 === mp.HeaderTextStyle.Zero ? O_(t3) : e2 === mp.HeaderTextStyle.A1 ? D_(t3) : void 0;
|
|
20705
20699
|
}, defaultSize: () => this._defaultRowHeight(), scaleFactor: () => d2, minSize: () => 0, maxSize: () => 409, setContainerShiftedCallback: (t3) => {
|
|
20706
20700
|
this._rowHeadersShiftCallback = t3;
|
|
20707
20701
|
} }), this._rowHeadersRemoveListener = this._rowHeaders.addListeners(this._rowHeadersListener, { transactional: true }), this._defaultFontBoundsCache = null, this._defaultColWidthCache = 0, this._defaultRowHeightCache = 0;
|
|
@@ -20727,7 +20721,7 @@ class W_ {
|
|
|
20727
20721
|
}
|
|
20728
20722
|
_clearState() {
|
|
20729
20723
|
this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new M_(void 0, this._options.readonly), this._protectionRemoveListener = this._protection.addListeners({ onChange() {
|
|
20730
|
-
if (t2._closed) throw new Error(
|
|
20724
|
+
if (t2._closed) throw new Error($h);
|
|
20731
20725
|
t2._getState().movableMapModel.forEach((t3) => {
|
|
20732
20726
|
t3.value.processProtectionCallback?.();
|
|
20733
20727
|
}), t2._getState().tableMapModel.forEach((t3) => {
|
|
@@ -21033,12 +21027,12 @@ class W_ {
|
|
|
21033
21027
|
(i2()?.value ?? o2).processLayoutCallback = t3;
|
|
21034
21028
|
}, 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 };
|
|
21035
21029
|
let w2 = null;
|
|
21036
|
-
if ("picture" === d2) w2 = new
|
|
21030
|
+
if ("picture" === d2) w2 = new jm(S2);
|
|
21037
21031
|
else if ("chart" === d2) w2 = new Dp(S2);
|
|
21038
|
-
else if ("sp" === d2 || "cxnSp" === d2 || "grpSp" === d2) w2 = new
|
|
21032
|
+
else if ("sp" === d2 || "cxnSp" === d2 || "grpSp" === d2) w2 = new Lp(S2);
|
|
21039
21033
|
else {
|
|
21040
21034
|
if ("graphicFrame" !== d2) throw new Error(((t3) => `Unsupported float type: ${t3}`)(d2));
|
|
21041
|
-
w2 = new
|
|
21035
|
+
w2 = new Bp(S2);
|
|
21042
21036
|
}
|
|
21043
21037
|
return o2.model = new vp({ ...p2, content: w2 }), u2 = false, s2;
|
|
21044
21038
|
}
|
|
@@ -21173,10 +21167,10 @@ class W_ {
|
|
|
21173
21167
|
this._createConditionalEntries(t3, k2, F2);
|
|
21174
21168
|
}
|
|
21175
21169
|
}
|
|
21176
|
-
const D2 = h2.calcGraph,
|
|
21170
|
+
const D2 = h2.calcGraph, L2 = D2.fromJSON({ formulas: o2.formulas, data: p2, dynamic: o2.dynamicArray, volatile: o2.volatile });
|
|
21177
21171
|
h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial: N2, tableMapModel: A2, tableMapName: M2, conditionalSpatial: k2, conditionalModels: F2, calcGraph: D2 });
|
|
21178
|
-
const
|
|
21179
|
-
|
|
21172
|
+
const B2 = this._getUsedCoords();
|
|
21173
|
+
B2 && this._autoFit([B2], { orientations: e.Orientations.Row, skipCustomSize: true }), r2.commit(), L2 && this._realizeCalcedValues(L2), o2.protection && this._protection.fromJSON(o2.protection), this._emitter.notify("onLoad");
|
|
21180
21174
|
} finally {
|
|
21181
21175
|
l2.endPersist(), a2.endPersist(), i2.endPersist();
|
|
21182
21176
|
}
|
|
@@ -21186,7 +21180,7 @@ class W_ {
|
|
|
21186
21180
|
return this._closed ? Ac : this._options.container?.getName?.() ?? null;
|
|
21187
21181
|
}
|
|
21188
21182
|
setName(t2) {
|
|
21189
|
-
if (this._closed) throw new Error(
|
|
21183
|
+
if (this._closed) throw new Error($h);
|
|
21190
21184
|
const e2 = this._options.container?.setName;
|
|
21191
21185
|
if (!e2) throw new Error("Unable to set name for sheet.");
|
|
21192
21186
|
return e2(t2), this;
|
|
@@ -21195,7 +21189,7 @@ class W_ {
|
|
|
21195
21189
|
return this._closed ? bp.Visibility.VeryHidden : this._options.container?.getVisibility?.() ?? bp.Visibility.Hidden;
|
|
21196
21190
|
}
|
|
21197
21191
|
setVisibility(t2 = true) {
|
|
21198
|
-
if (this._closed) throw new Error(
|
|
21192
|
+
if (this._closed) throw new Error($h);
|
|
21199
21193
|
const e2 = this._options.container?.setVisibility;
|
|
21200
21194
|
if (!e2) throw new Error("Unable to set visibility for sheet.");
|
|
21201
21195
|
let n2;
|
|
@@ -21230,7 +21224,7 @@ class W_ {
|
|
|
21230
21224
|
return true;
|
|
21231
21225
|
}
|
|
21232
21226
|
}
|
|
21233
|
-
const H_ = { address: null, scope: null },
|
|
21227
|
+
const H_ = { address: null, scope: null }, V_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, $_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, j_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, G_ = { includeHidden: false };
|
|
21234
21228
|
Object.freeze({ [Yh.Content.Values]: Number.MAX_SAFE_INTEGER, [Yh.Content.Formulas]: Number.MAX_SAFE_INTEGER }), Object.freeze({ [Yh.Content.Values]: 1, [Yh.Content.Formulas]: 1 });
|
|
21235
21229
|
const U_ = { ignoreDataChanges: false }, q_ = { colStart: -1, rowStart: -1, colEnd: -1, rowEnd: -1 }, J_ = [{ colIndex: -1, rowIndex: -1 }, null, null, null, null], K_ = [Yh.Content.Values], X_ = { size: null, autoSize: true }, Y_ = { skipCustomSize: true, expandOnly: true, minContent: true }, Q_ = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Z_ = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, tS = { showFormulaBar: true, showTabs: true, tabRatio: 600, showHorizontalScrollbar: true, showVerticalScrollbar: true, showStatusBar: true, activeSheetId: null };
|
|
21236
21230
|
class eS {
|
|
@@ -21408,7 +21402,7 @@ class nS {
|
|
|
21408
21402
|
}
|
|
21409
21403
|
}
|
|
21410
21404
|
let rS;
|
|
21411
|
-
const oS = "SheetXL", sS = rS || (rS = o.deepFreeze({ ISheet: { Visibility: bp.Visibility }, ICell: { Content: Yh.Content, CalcStatus: Yh.CalcStatus }, IColor: { Named:
|
|
21405
|
+
const oS = "SheetXL", sS = rS || (rS = o.deepFreeze({ ISheet: { Visibility: bp.Visibility }, ICell: { Content: Yh.Content, CalcStatus: Yh.CalcStatus }, IColor: { Named: Bs.Named, Scheme: Bs.Scheme, Type: Bs.Type, AdjustmentType: Bs.AdjustmentType }, Direction: h }), rS);
|
|
21412
21406
|
let iS;
|
|
21413
21407
|
class aS extends Jf {
|
|
21414
21408
|
constructor(t2, e2, n2, r2 = null, o2 = false) {
|
|
@@ -21678,7 +21672,7 @@ class bS {
|
|
|
21678
21672
|
return this._get().length;
|
|
21679
21673
|
}
|
|
21680
21674
|
}
|
|
21681
|
-
const vS = new RegExp(/[\\/\\*?:[\]]+/), xS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), IS = (t2) => `Sheet${t2 + 1}`, RS = (t2, e2) => ({
|
|
21675
|
+
const vS = new RegExp(/[\\/\\*?:[\]]+/), xS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), IS = (t2) => `Sheet${t2 + 1}`, RS = (t2, e2) => ({ ...$g, getSheet: () => null, toString: () => Gc(t2, e2) }), AS = (t2, e2 = false) => {
|
|
21682
21676
|
if (!t2) throw new Error(yS);
|
|
21683
21677
|
if (vS.test(t2)) {
|
|
21684
21678
|
if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : wS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
|
|
@@ -21754,8 +21748,8 @@ class NS extends T_ {
|
|
|
21754
21748
|
}
|
|
21755
21749
|
_createRange(t2, e2) {
|
|
21756
21750
|
const n2 = this._sheet;
|
|
21757
|
-
if (!t2) return
|
|
21758
|
-
if (n2._validateCoords(t2), n2._closed) return
|
|
21751
|
+
if (!t2) return jg(n2, n2._entireCoords);
|
|
21752
|
+
if (n2._validateCoords(t2), n2._closed) return jg(null, n2._entireCoords, t2);
|
|
21759
21753
|
let r2 = this._options;
|
|
21760
21754
|
return e2 && (r2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new NS(t2, this._sheet, this._workbook, r2);
|
|
21761
21755
|
}
|
|
@@ -22402,7 +22396,7 @@ class TS {
|
|
|
22402
22396
|
}
|
|
22403
22397
|
_fromJSON(t2) {
|
|
22404
22398
|
if (this._emitter.notify("onBeforeLoad", { params: t2 }), this._initState(), !t2.sheets || 0 === t2.sheets.length) throw new Error(fS);
|
|
22405
|
-
t2.theme && (this._theme = new
|
|
22399
|
+
t2.theme && (this._theme = new $i(t2.theme), this._styles.setTheme(this._theme));
|
|
22406
22400
|
const e2 = this._strings.beginPersist(), n2 = this._resources.beginPersist(), r2 = this._styles.beginPersist();
|
|
22407
22401
|
try {
|
|
22408
22402
|
e2.fromJSON(t2.strings), n2.fromJSON(t2.resources), r2.fromJSON(t2.styles), t2.date1904 && (this._isDate1904 = true), t2.view || (t2.view = {});
|
|
@@ -22427,7 +22421,7 @@ class TS {
|
|
|
22427
22421
|
const e2 = this;
|
|
22428
22422
|
return new dS({ transactions: this._transactions, json: t2, workbook: e2, getBuiltInFunctions: () => e2._calculation?.getFunctions(), onAdd: (t3, n2) => {
|
|
22429
22423
|
const r2 = e2._calculation;
|
|
22430
|
-
r2.getStatus() !==
|
|
22424
|
+
r2.getStatus() !== $m.Status.Off && r2.start().then(() => {
|
|
22431
22425
|
const t4 = n2.getFunctions().getItems({ type: "formula" }), e3 = t4.length;
|
|
22432
22426
|
for (let n3 = 0; n3 < e3; n3++) {
|
|
22433
22427
|
const e4 = t4[n3];
|
|
@@ -22545,17 +22539,17 @@ export {
|
|
|
22545
22539
|
qi as IAnchored,
|
|
22546
22540
|
hp as IAutoFilter,
|
|
22547
22541
|
Qs as IBorder,
|
|
22548
|
-
|
|
22542
|
+
$m as ICalculation,
|
|
22549
22543
|
Yh as ICell,
|
|
22550
22544
|
lp as ICellHeaderRange,
|
|
22551
22545
|
ap as ICellRange,
|
|
22552
|
-
|
|
22546
|
+
Bs as IColor,
|
|
22553
22547
|
up as IConditionalFormat,
|
|
22554
22548
|
Ds as IFill,
|
|
22555
22549
|
Ko as IFont,
|
|
22556
22550
|
ss as IFontCollection,
|
|
22557
22551
|
cp as IMovable,
|
|
22558
|
-
|
|
22552
|
+
Vm as IPicture,
|
|
22559
22553
|
Os as IPrint,
|
|
22560
22554
|
bp as ISheet,
|
|
22561
22555
|
mp as ISheetView,
|
|
@@ -22568,9 +22562,9 @@ export {
|
|
|
22568
22562
|
bi as IThemeCollection,
|
|
22569
22563
|
at as LicenseManager,
|
|
22570
22564
|
pi as NumberFormat,
|
|
22571
|
-
|
|
22565
|
+
jm as Picture,
|
|
22572
22566
|
Ep as RangeClipboardItem,
|
|
22573
|
-
|
|
22567
|
+
Bm as Resource,
|
|
22574
22568
|
Pm as ResourceCollection,
|
|
22575
22569
|
W_ as Sheet,
|
|
22576
22570
|
Yo as SimpleFontFace,
|
|
@@ -22580,10 +22574,10 @@ export {
|
|
|
22580
22574
|
Jf as T,
|
|
22581
22575
|
vm as Table,
|
|
22582
22576
|
Po as TextUtils,
|
|
22583
|
-
|
|
22577
|
+
$i as Theme,
|
|
22584
22578
|
Gi as ThemeCollection,
|
|
22585
22579
|
k as TransactionStore,
|
|
22586
|
-
|
|
22580
|
+
L as TransactionUndoManager,
|
|
22587
22581
|
kt as Tuple,
|
|
22588
22582
|
TS as Workbook,
|
|
22589
22583
|
eS as WorkbookView,
|
|
@@ -22591,7 +22585,7 @@ export {
|
|
|
22591
22585
|
g_ as b,
|
|
22592
22586
|
fc as c,
|
|
22593
22587
|
gh as d,
|
|
22594
|
-
|
|
22588
|
+
Lc as e,
|
|
22595
22589
|
hc as f,
|
|
22596
22590
|
yc as g,
|
|
22597
22591
|
wc as m,
|