@sheetxl/sdk 0.7.14 → 0.7.16
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/{-fzmLbmKCBzK9oRZ.cjs → -sMVXOuZJva89j8j.cjs} +1 -1
- package/browser/cjs/BFyalK9AUtNwQDEK.cjs +55 -0
- package/browser/cjs/{0lUbfhtrd_wufhL3.cjs → BNEOku8KgSSohSIj.cjs} +1 -1
- package/browser/cjs/{CBZAbsOH-qLoLVYi.cjs → BSGqaR2oeGd5OjgT.cjs} +1 -1
- package/browser/cjs/{b5Qta6o-hfdLsZ2C.cjs → BYZy2tWr7RD48Oi_.cjs} +1 -1
- package/browser/cjs/{B07Y1ERwDVHXTEuI.cjs → BcNNVLgYrbScQKSX.cjs} +1 -1
- package/browser/cjs/{BSjBjEqcjdqeygtj.cjs → BtxI2eFjZjcidjqW.cjs} +1 -1
- package/browser/cjs/{IHhWVKf3y4GPDEsu.cjs → Bvs2uuTmshF805_W.cjs} +2 -2
- package/browser/cjs/{CaBb29bMjYq4FPC4.cjs → C8WDOgMjxRDmcFwB.cjs} +1 -1
- package/browser/cjs/{BRR-eS8_1BbDQfVT.cjs → CAsRhXm0VW7sOikc.cjs} +1 -1
- package/browser/cjs/{CflowdD2ofBImyxf.cjs → CQVY9TTgLjQwczYU.cjs} +1 -1
- package/browser/cjs/{BihhzXuYuVZlH947.cjs → CSFupzMrX9RMnt0a.cjs} +3 -3
- package/browser/cjs/{CMA0dCN-jx8mUVpC.cjs → CVbygTr8hQYP7l88.cjs} +1 -1
- package/browser/cjs/{DJJI0nPForZ7Fyw8.cjs → ChnfBglQCqBpBzYM.cjs} +1 -1
- package/browser/cjs/{BPlMwBvlv1U2gJLp.cjs → Coisef2xuMNxiLXK.cjs} +2 -2
- package/browser/cjs/{C9EhsP1LNyShLPae.cjs → Crw11LgMU-2BXUg9.cjs} +1 -1
- package/browser/cjs/{B1KDlf4Fbft4tjjj.cjs → D0gtKwemWYBBEdp0.cjs} +1 -1
- package/browser/cjs/{CMcvl1Zwdr7xqxk-.cjs → D1AjspLzkSTP4QXS.cjs} +1 -1
- package/browser/cjs/{D8hRvoPQOnDRVPAe.cjs → DGkBQiMbPbdEq1pY.cjs} +1 -1
- package/browser/cjs/{LysRTzmqVW8lE0wn.cjs → DQDx-I8i6fWpfywh.cjs} +1 -1
- package/browser/cjs/{DkAdWdbvFE7n1Hcq.cjs → DUL6A70OH_BflOv4.cjs} +1 -1
- package/browser/cjs/{BWPBBRKOt1TnEQW2.cjs → DgTI5zamXamDuFUT.cjs} +1 -1
- package/browser/cjs/{Cjw_osDdQOhlKISB.cjs → Dr2TYctek46uGvC7.cjs} +1 -1
- package/browser/cjs/{DPnnTvpwZeCYEQjl.cjs → Raz_4cDNeZOIDIcf.cjs} +1 -1
- package/browser/cjs/{CPSnUEg6iB67D_fE.cjs → _CEXvd3ydxoZNNV3.cjs} +1 -1
- package/browser/cjs/{CfhCVN63umYqcdux.cjs → gKceF5kapwSu8CwC.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DkV8Vz21n9mOoxZg.cjs → qH6Ryp_38NSkcQlK.cjs} +1 -1
- package/browser/esm/{CgPPHJJUMVCN32D6.mjs → 4oqRKL4rfvQw4R1P.mjs} +1 -1
- package/browser/esm/{DLLkKYL-X-v73Z0R.mjs → 9VLPEARktgO5h09B.mjs} +2 -2
- package/browser/esm/{BY5jOMg7oXwIKByq.mjs → BE0e1_6mQlmMSQxw.mjs} +1 -1
- package/browser/esm/{myjs_Lwk8vlrSFNh.mjs → BF3umLwHF9QawqJE.mjs} +1 -1
- package/browser/esm/{zY-nSDUmnavhQata.mjs → BI2FstEVR2FD7hrQ.mjs} +1 -1
- package/{node/esm/DMASuJhDm2I6PXCN.mjs → browser/esm/BbTJfxrYTmKFjAgG.mjs} +1 -1
- package/browser/esm/{5UT-S_8enFmksHUV.mjs → BiX54GcB3Mv4aelM.mjs} +1 -1
- package/browser/esm/{DyG4EtOyTUl5wrhc.mjs → BjbpBqdzHQ_CSMTk.mjs} +2 -2
- package/browser/esm/{DbcMNEUrgozG6pB0.mjs → BltO_grHPNvgr8Ck.mjs} +1 -1
- package/{node/esm/DSD5aS6kewydAsCA.mjs → browser/esm/BtMOZV8vy98mTC_g.mjs} +1 -1
- package/{node/esm/CGD1FZtnkDQ0SSBz.mjs → browser/esm/Byj2wSNnwUi1fj0w.mjs} +1 -1
- package/browser/esm/{BmsSmazArGNZbNeZ.mjs → BzztyegF0heAE4XV.mjs} +5032 -5043
- package/browser/esm/{Bb0n7WwiIdOtgnRw.mjs → C8gnscfi0auF0T_a.mjs} +1 -1
- package/{node/esm/DJjQwq79V0wl9qhG.mjs → browser/esm/Cgy9d1V23dS5TIjq.mjs} +1 -1
- package/browser/esm/{PjxOQ4QiwWz0c6Ph.mjs → Chdtm9vkI7san88r.mjs} +1 -1
- package/browser/esm/{BdsrnU901jI-wd-4.mjs → CwFQPWavqDsxMJJZ.mjs} +1 -1
- package/browser/esm/{DHNBXeBjLI3QVhcQ.mjs → D0UMwfcT_mPeUEIe.mjs} +1 -1
- package/browser/esm/{7VJFgeFQVJmSYXYk.mjs → D2Bun5gXG5ne4pX4.mjs} +1 -1
- package/browser/esm/{ItKDnjJiNUadHt-H.mjs → D8zjdnplPREVWaJv.mjs} +3 -3
- package/browser/esm/{DJ-ZyaCf_y5KqImf.mjs → DORUjxQIyvJFWxLn.mjs} +1 -1
- package/browser/esm/{vLCpNb3EvVHobA40.mjs → DQPu2o7c5uGHqQt2.mjs} +1 -1
- package/browser/esm/{zeLLXOAGHLwXQiRi.mjs → DbGgyXWs1YCHpzle.mjs} +1 -1
- package/{node/esm/C7vIejJBnmBAEaEW.mjs → browser/esm/DgjCulVUF2g_Ibly.mjs} +1 -1
- package/browser/esm/{BGxFMxgIc6_Du8sb.mjs → DxUziXdPvjjSrt4U.mjs} +1 -1
- package/{node/esm/tO5paHU0QdSdv1Jc.mjs → browser/esm/i4bOWM_qUfTL4uBl.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/{node/esm/G5zHU3-mFg8u8npr.mjs → browser/esm/j3geq9QzzGZnfWOW.mjs} +1 -1
- package/browser/esm/{C-dC3AjFyCjRGGOv.mjs → miTq0iMry61Ov3Xv.mjs} +1 -1
- package/node/esm/{CgPPHJJUMVCN32D6.mjs → 4oqRKL4rfvQw4R1P.mjs} +1 -1
- package/node/esm/{9tEJsH5MtfgJF2X4.mjs → B05A9t2S4MoaS7x1.mjs} +1 -1
- package/node/esm/{BY5jOMg7oXwIKByq.mjs → BE0e1_6mQlmMSQxw.mjs} +1 -1
- package/node/esm/{myjs_Lwk8vlrSFNh.mjs → BF3umLwHF9QawqJE.mjs} +1 -1
- package/node/esm/{zY-nSDUmnavhQata.mjs → BI2FstEVR2FD7hrQ.mjs} +1 -1
- package/node/esm/{CaTmPKI90a8j_ksw.mjs → BSXYFAWOE2hPWzcI.mjs} +1 -1
- package/{browser/esm/DMASuJhDm2I6PXCN.mjs → node/esm/BbTJfxrYTmKFjAgG.mjs} +1 -1
- package/{browser/esm/DSD5aS6kewydAsCA.mjs → node/esm/BtMOZV8vy98mTC_g.mjs} +1 -1
- package/{browser/esm/CGD1FZtnkDQ0SSBz.mjs → node/esm/Byj2wSNnwUi1fj0w.mjs} +1 -1
- package/node/esm/{C1CvI8x7vaaCFzua.mjs → C1geTB5AlM3uG2rR.mjs} +1 -1
- package/node/esm/{0iGTcd9ooWNCeX4c.mjs → C84Wi-jbMcHXHPpY.mjs} +1 -1
- package/node/esm/{Bb0n7WwiIdOtgnRw.mjs → C8gnscfi0auF0T_a.mjs} +1 -1
- package/{browser/esm/DJjQwq79V0wl9qhG.mjs → node/esm/Cgy9d1V23dS5TIjq.mjs} +1 -1
- package/node/esm/{PjxOQ4QiwWz0c6Ph.mjs → Chdtm9vkI7san88r.mjs} +1 -1
- package/node/esm/{C0uCmd6tFf75Wgtv.mjs → Cp-iaUVcEEKwqqRo.mjs} +1 -1
- package/node/esm/{BNhLhktE2XilaoxK.mjs → CtMYadTWqGlUD_vF.mjs} +2 -2
- package/node/esm/{7VJFgeFQVJmSYXYk.mjs → D2Bun5gXG5ne4pX4.mjs} +1 -1
- package/node/esm/{zeLLXOAGHLwXQiRi.mjs → DbGgyXWs1YCHpzle.mjs} +1 -1
- package/{browser/esm/C7vIejJBnmBAEaEW.mjs → node/esm/DgjCulVUF2g_Ibly.mjs} +1 -1
- package/node/esm/{DeRbIp5DJRZ2hJCs.mjs → IyYqukbNKXYTC_jZ.mjs} +1 -1
- package/node/esm/{yS3knP21QkdRIsvW.mjs → YGrN3w9Dkdt7tx4l.mjs} +1 -1
- package/node/esm/{BPBgVCP0v-ej5g24.mjs → fm5G3b1UI8pUUAue.mjs} +1 -1
- package/{browser/esm/tO5paHU0QdSdv1Jc.mjs → node/esm/i4bOWM_qUfTL4uBl.mjs} +1 -1
- package/node/esm/index.mjs +694 -695
- package/{browser/esm/G5zHU3-mFg8u8npr.mjs → node/esm/j3geq9QzzGZnfWOW.mjs} +1 -1
- package/node/esm/{C-dC3AjFyCjRGGOv.mjs → miTq0iMry61Ov3Xv.mjs} +1 -1
- package/package.json +4 -4
- package/browser/cjs/QK4uMmDx2ivy6yLv.cjs +0 -55
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.16
|
|
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 L extends D {
|
|
|
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 P extends s {
|
|
362
362
|
constructor(t2, e2 = 50) {
|
|
363
363
|
super(e2), this._transactions = t2;
|
|
364
364
|
const n2 = this;
|
|
@@ -375,20 +375,20 @@ class z extends s {
|
|
|
375
375
|
this._removeLister();
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
const
|
|
378
|
+
const z = () => {
|
|
379
379
|
try {
|
|
380
|
-
return "0.7.
|
|
380
|
+
return "0.7.16";
|
|
381
381
|
} catch (t2) {
|
|
382
382
|
return "";
|
|
383
383
|
}
|
|
384
384
|
}, H = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
|
|
385
385
|
try {
|
|
386
|
-
return "
|
|
386
|
+
return "Wed Oct 08 2025";
|
|
387
387
|
} catch (t2) {
|
|
388
388
|
return "";
|
|
389
389
|
}
|
|
390
|
-
}, getBuildVersion:
|
|
391
|
-
https://www.sheetxl.com ${
|
|
390
|
+
}, getBuildVersion: z }, Symbol.toStringTag, { value: "Module" })), V = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", W = `
|
|
391
|
+
https://www.sheetxl.com ${z()}`, $ = "#1976d2", j = "#FFA726", G = 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 */
|
|
@@ -469,12 +469,48 @@ Cpus: ${r3}`), console.log(a2(o2)), o2 = null;
|
|
|
469
469
|
let r2 = t3.split("");
|
|
470
470
|
for (let t4 = 0; t4 < r2.length; t4++) r2[t4].charCodeAt(0) <= n3 && (r2[t4] = String.fromCharCode((r2[t4].charCodeAt(0) + e3) % n3));
|
|
471
471
|
return r2.join("");
|
|
472
|
-
})(t2, n2 - e2),
|
|
473
|
-
function
|
|
474
|
-
const n2 =
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
472
|
+
})(t2, n2 - e2), q = (t2) => "object" == typeof window ? window.atob(t2) : Buffer.from(t2, "base64").toString("ascii");
|
|
473
|
+
!(function() {
|
|
474
|
+
const t2 = 620, e2 = "yJV1", n2 = "Fh!K", r2 = 548, o2 = "RD^Z", s2 = 156, i2 = 370, a2 = 275;
|
|
475
|
+
function l2(t3, e3, n3, r3, o3) {
|
|
476
|
+
return K(r3 - -456, e3);
|
|
477
|
+
}
|
|
478
|
+
const c2 = ct();
|
|
479
|
+
function h2(t3, e3, n3, r3, o3) {
|
|
480
|
+
return K(e3 - a2, o3);
|
|
481
|
+
}
|
|
482
|
+
function d2(t3, e3, n3, r3, o3) {
|
|
483
|
+
return K(t3 - -209, r3);
|
|
484
|
+
}
|
|
485
|
+
function u2(t3, e3, n3, r3, o3) {
|
|
486
|
+
return K(e3 - -707, r3);
|
|
487
|
+
}
|
|
488
|
+
function g2(t3, e3, n3, r3, o3) {
|
|
489
|
+
return K(e3 - -732, t3);
|
|
490
|
+
}
|
|
491
|
+
for (; ; ) try {
|
|
492
|
+
if (741575 === parseInt(g2("oOeY", -427)) / 1 + -parseInt(h2(0, t2, 0, 0, e2)) / 2 + -parseInt(l2(0, "^uSd", 0, -104)) / 3 + -parseInt(l2(0, n2, 0, -229)) / 4 + parseInt(u2(0, -387, 0, "$AD$")) / 5 * (-parseInt(h2(0, r2, 0, 0, o2)) / 6) + -parseInt(d2(s2, 0, 0, "(0cu")) / 7 + -parseInt(u2(0, -i2, 0, "$s4a")) / 8 * (-parseInt(d2(75, 0, 0, "P8&e")) / 9)) break;
|
|
493
|
+
c2.push(c2.shift());
|
|
494
|
+
} catch (t3) {
|
|
495
|
+
c2.push(c2.shift());
|
|
496
|
+
}
|
|
497
|
+
})();
|
|
498
|
+
const J = () => {
|
|
499
|
+
const t2 = "@]F%", e2 = 74, n2 = "kBba";
|
|
500
|
+
if (typeof window === s2(186, "Cnvk", 98)) return window[r2("ChnO", -102, -85)][s2(56, t2, e2)];
|
|
501
|
+
function r2(t3, e3, n3, r3, o2) {
|
|
502
|
+
return K(n3 - -445, t3);
|
|
503
|
+
}
|
|
504
|
+
function s2(t3, e3, n3, r3, o2) {
|
|
505
|
+
return K(n3 - -165, e3);
|
|
506
|
+
}
|
|
507
|
+
return o[r2(n2, 0, -252)]();
|
|
508
|
+
};
|
|
509
|
+
function K(t2, e2) {
|
|
510
|
+
const n2 = ct();
|
|
511
|
+
return K = function(e3, r2) {
|
|
512
|
+
let o2 = n2[e3 -= 189];
|
|
513
|
+
if (void 0 === K.TqlGXW) {
|
|
478
514
|
const e4 = function(t3, e5) {
|
|
479
515
|
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
480
516
|
for (t3 = (function(t4) {
|
|
@@ -488,144 +524,102 @@ function q(t2, e2) {
|
|
|
488
524
|
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]);
|
|
489
525
|
return i3;
|
|
490
526
|
};
|
|
491
|
-
|
|
527
|
+
K.qHAeBq = e4, t2 = arguments, K.TqlGXW = true;
|
|
492
528
|
}
|
|
493
529
|
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
494
|
-
return i2 ? o2 = i2 : (void 0 ===
|
|
495
|
-
},
|
|
530
|
+
return i2 ? o2 = i2 : (void 0 === K.DASVoE && (K.DASVoE = true), o2 = K.qHAeBq(o2, r2), t2[s2] = o2), o2;
|
|
531
|
+
}, K(t2, e2);
|
|
496
532
|
}
|
|
497
|
-
function
|
|
498
|
-
return
|
|
533
|
+
function X(t2, e2, n2, r2, o2) {
|
|
534
|
+
return K(n2 - -855, r2);
|
|
499
535
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
function m2(t3, e3, n3, r3, o3) {
|
|
503
|
-
return q(r3 - -939, n3);
|
|
504
|
-
}
|
|
505
|
-
function f2(t3, e3, n3, r3, o3) {
|
|
506
|
-
return q(o3 - 150, e3);
|
|
507
|
-
}
|
|
508
|
-
function p2(t3, e3, n3, r3, o3) {
|
|
509
|
-
return q(n3 - -804, o3);
|
|
510
|
-
}
|
|
511
|
-
function _2(t3, e3, n3, r3, o3) {
|
|
512
|
-
return q(o3 - -730, n3);
|
|
513
|
-
}
|
|
514
|
-
const S2 = lt();
|
|
515
|
-
for (; ; ) try {
|
|
516
|
-
if (861965 === parseInt(m2(0, 0, t2, -e2)) / 1 * (-parseInt(m2(0, 0, "rtbL", -688)) / 2) + parseInt(p2(0, 0, -n2, 0, "tctv")) / 3 * (parseInt(p2(0, 0, -458, 0, r2)) / 4) + parseInt(p2(0, 0, -513, 0, o2)) / 5 * (-parseInt(f2(0, "lsmD", 0, 0, 431)) / 6) + parseInt(f2(0, s2, 0, 0, i2)) / 7 * (-parseInt(p2(0, 0, -573, 0, a2)) / 8) + -parseInt(_2(0, 0, l2, 0, -c2)) / 9 + -parseInt(f2(0, h2, 0, 0, d2)) / 10 + -parseInt(_2(0, 0, o2, 0, -u2)) / 11 * (-parseInt(_2(0, 0, "iYXS", 0, -g2)) / 12)) break;
|
|
517
|
-
S2.push(S2.shift());
|
|
518
|
-
} catch (t3) {
|
|
519
|
-
S2.push(S2.shift());
|
|
520
|
-
}
|
|
521
|
-
})();
|
|
522
|
-
const X = () => {
|
|
523
|
-
const t2 = 1201, e2 = 1108, n2 = 1136, r2 = "iVVp";
|
|
524
|
-
if (typeof window === c2("UMg4", 974, 991, 977, 1070)) return window[c2("%f20", t2, 1217, e2, n2)][s2 = -345, i2 = r2, q(s2 - -553, i2)];
|
|
525
|
-
var s2, i2, a2, l2;
|
|
526
|
-
function c2(t3, e3, n3, r3, o2) {
|
|
527
|
-
return q(o2 - 816, t3);
|
|
528
|
-
}
|
|
529
|
-
return o[a2 = "uJM5", l2 = -603, q(l2 - -883, a2)]();
|
|
530
|
-
}, Y = () => {
|
|
531
|
-
const t2 = "g]ax", e2 = 201, n2 = "MIIG";
|
|
532
|
-
return X()[r2 = t2, o2 = e2, q(o2 - -75, r2)](q(-131 - -327, "jmZV")) || X() === q(-589 - -808, n2);
|
|
533
|
-
var r2, o2;
|
|
534
|
-
};
|
|
535
|
-
function Q(t2, e2, n2, r2, o2) {
|
|
536
|
-
return q(e2 - 428, n2);
|
|
536
|
+
function Y(t2, e2, n2, r2, o2) {
|
|
537
|
+
return K(o2 - 173, t2);
|
|
537
538
|
}
|
|
538
|
-
|
|
539
|
-
|
|
539
|
+
const Z = () => {
|
|
540
|
+
const t2 = 387;
|
|
541
|
+
function e2(t3, e3, n2, r2, o2) {
|
|
542
|
+
return K(t3 - -375, o2);
|
|
543
|
+
}
|
|
544
|
+
return J()[e2(-51, 0, 0, 0, "Obsc")](K(t2 - 187, "Fh!K")) || J() === e2(-165, 0, 0, 0, "@]F%");
|
|
545
|
+
}, Q = (t2) => {
|
|
546
|
+
const e2 = 612, n2 = 1049, r2 = "@]F%", s2 = 1019, i2 = "GE#s", a2 = 1134, l2 = 1046, c2 = 907, h2 = 210, d2 = 539;
|
|
547
|
+
function u2(t3, e3, n3, r3, o2) {
|
|
548
|
+
return K(n3 - 334, e3);
|
|
549
|
+
}
|
|
550
|
+
let g2 = o[_2(486, 511, 430, "3YXZ")];
|
|
551
|
+
function m2(t3, e3, n3, r3, o2) {
|
|
552
|
+
return K(r3 - 577, t3);
|
|
553
|
+
}
|
|
554
|
+
function f2(t3, e3, n3, r3, o2) {
|
|
555
|
+
return K(r3 - d2, e3);
|
|
556
|
+
}
|
|
557
|
+
if (Z() || o[_2(e2, 573, 629, "Nqou")]()) {
|
|
558
|
+
const t3 = H[p2(1095, 1057, n2, r2)](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), c3 = 864e5;
|
|
559
|
+
Math[p2(1073, s2, 1016, i2)]((o2[u2(0, "Fh!K", 623)]() - e3[p2(a2, 1186, l2, "oOeY")]()) / c3) >= 120 && (g2 = [u2(0, "O*3!", 600)]);
|
|
560
|
+
} else g2 = [];
|
|
561
|
+
function p2(t3, e3, n3, r3, o2) {
|
|
562
|
+
return K(t3 - 808, r3);
|
|
563
|
+
}
|
|
564
|
+
function _2(t3, e3, n3, r3, o2) {
|
|
565
|
+
return K(e3 - h2, r3);
|
|
566
|
+
}
|
|
567
|
+
return { getLicensee: () => f2(0, "I01V", 0, 730), getExpiration: () => null, getDomains: () => [J()], getDeveloperCount: () => 1, getCpuCount: () => 0, getType: () => _2(0, 454, 0, "3YXZ"), isEval: () => true, getExceptions: () => g2, hasExceptions: () => g2[m2("H9VV", 0, 0, 852)] > 0, isValidFor: () => 0 === g2[m2("6zi]", 0, 0, 946)], isValid: () => false, getFeatures: () => Object[u2(0, "(0cu", 642)]({}), getKeyFrom: () => t2, getBuildVersion: H[f2(0, "2y5!", 0, c2)], getBuildDate: H[u2(0, "Fh!K", 672)] };
|
|
568
|
+
};
|
|
569
|
+
function tt(t2, e2, n2, r2, o2) {
|
|
570
|
+
return K(n2 - -201, r2);
|
|
540
571
|
}
|
|
541
|
-
const
|
|
542
|
-
const e2 = 789, n2 = 783, r2 = "Ppye", s2 = 854, i2 = 882, a2 = 768, l2 = 903, c2 = 343, h2 = 270, d2 = 929, u2 = 940, g2 = 945, m2 = 885, f2 = 287, p2 = "Zo30", _2 = "z25c", S2 = 607, w2 = 536, y2 = 11, E2 = 371;
|
|
543
|
-
function C2(t3, e3, n3, r3, o2) {
|
|
544
|
-
return q(n3 - E2, e3);
|
|
545
|
-
}
|
|
546
|
-
let b2 = o[R2(824, 903, 836, 837, "k*K7")];
|
|
547
|
-
if (Y() || o[R2(e2, 855, n2, 852, r2)]()) {
|
|
548
|
-
const t3 = H[R2(s2, i2, a2, l2, "UMg4")](), e3 = new Date(t3), n3 = /* @__PURE__ */ new Date(), r3 = 864e5;
|
|
549
|
-
Math[v2(c2, "z25c", h2)]((n3[C2(0, "[KiQ", 635)]() - e3[R2(d2, u2, g2, m2, "vpLS")]()) / r3) >= 120 && (b2 = [v2(f2, p2, 201)]);
|
|
550
|
-
} else b2 = [];
|
|
551
|
-
function v2(t3, e3, n3, r3, o2) {
|
|
552
|
-
return q(n3 - y2, e3);
|
|
553
|
-
}
|
|
554
|
-
function x2(t3, e3, n3, r3, o2) {
|
|
555
|
-
return q(n3 - 748, t3);
|
|
556
|
-
}
|
|
557
|
-
function I2(t3, e3, n3, r3, o2) {
|
|
558
|
-
return q(r3 - w2, e3);
|
|
559
|
-
}
|
|
560
|
-
function R2(t3, e3, n3, r3, o2) {
|
|
561
|
-
return q(t3 - S2, o2);
|
|
562
|
-
}
|
|
563
|
-
return { getLicensee: () => x2("[KiQ", 0, 961), getExpiration: () => null, getDomains: () => [X()], getDeveloperCount: () => 1, getCpuCount: () => 0, getType: () => R2(842, 0, 0, 0, ")5Jh"), isEval: () => true, getExceptions: () => b2, hasExceptions: () => b2[C2(0, "RCYU", 666)] > 0, isValidFor: () => 0 === b2[I2(0, "tctv", 0, 822)], isValid: () => false, getFeatures: () => Object[x2("Ppye", 0, 1016)]({}), getKeyFrom: () => t2, getBuildVersion: H[I2(0, "o$Xo", 0, 892)], getBuildDate: H[C2(0, _2, 551)] };
|
|
564
|
-
}, et = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
572
|
+
const et = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
565
573
|
let nt = false, rt = false;
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
}
|
|
569
|
-
function st(t2, e2, n2, r2, o2) {
|
|
570
|
-
return q(n2 - -866, r2);
|
|
571
|
-
}
|
|
572
|
-
const it = st(0, 0, -618, "LKlY")[st(0, 0, -588, "$Nmk")]("")[st(0, 0, -584, "nZ)x")]((t2, e2) => e2 + t2, "");
|
|
573
|
-
class at {
|
|
574
|
+
const ot = tt(0, 0, 4, "Zy6W")[X(0, 0, -514, "zR70")]("")[tt(0, 0, 63, "3YXZ")]((t2, e2) => e2 + t2, "");
|
|
575
|
+
class st {
|
|
574
576
|
constructor() {
|
|
575
|
-
const t2 =
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
this[e2(0, 100, "Btfc")][e2(0, -40, ")5Jh")] = null;
|
|
577
|
+
const t2 = 577;
|
|
578
|
+
var e2, n2, r2, o2;
|
|
579
|
+
this[r2 = 842, o2 = "U]cG", Y(o2, 0, 0, 0, r2 - 413)][e2 = "IklC", n2 = 747, tt(0, 0, n2 - t2, e2)] = null;
|
|
580
580
|
}
|
|
581
|
-
async [
|
|
582
|
-
const n2 =
|
|
583
|
-
if (!t2 || t2[
|
|
584
|
-
function B2(t3, e3, n3, r3, o2) {
|
|
585
|
-
return Q(0, r3 - -607, o2);
|
|
586
|
-
}
|
|
581
|
+
async [Y("$AD$", 0, 0, 0, 479)](t2, e2 = false) {
|
|
582
|
+
const n2 = 213, r2 = 344, s2 = "Ds93", i2 = 1180, a2 = 1109, l2 = 1087, c2 = 1033, h2 = "X5!V", d2 = 68, u2 = "$$5f", g2 = "JYVc", m2 = 1263, f2 = 1179, p2 = 247, _2 = 174, S2 = 1172, w2 = 1078, y2 = "rA[P", E2 = "#l!H", C2 = 248, b2 = 300, v2 = 351, x2 = "*(MJ", I2 = 279, R2 = "J#Iw", A2 = "2y5!", M2 = 1095, T2 = 1120, N2 = 1070, F2 = 126, k2 = 260, O2 = 757, D2 = 396, B2 = 277;
|
|
583
|
+
if (!t2 || t2[P2(130, 149, 104, "*%VU")](P2(281, 257, 209, "GE#s")) || t2[P2(125, 142, n2, "3YXZ")](H2(-782, -679, -777, -690, "oOeY")) || t2[z2(r2, 236, 311, 330, s2)](W2(i2, a2, l2, c2, h2)) || t2[P2(d2, 180, 148, "JYVc")](P2(179, 86, 115, u2))) return nt = true, o[H2(-640, -607, -691, -665, g2)]() && await G[W2(1219, m2, f2, 1126, "X5!V")](t2, e2), await this[z2(188, 233, p2, _2, "WuPX")](true);
|
|
587
584
|
function L2(t3, e3, n3, r3, o2) {
|
|
588
|
-
return
|
|
589
|
-
}
|
|
590
|
-
function z2(t3, e3, n3, r3, o2) {
|
|
591
|
-
return st(0, 0, e3 - -92, n3);
|
|
585
|
+
return at(t3 - 284, e3 - D2, t3 - -411, r3 - B2, o2);
|
|
592
586
|
}
|
|
593
587
|
function P2(t3, e3, n3, r3, o2) {
|
|
594
|
-
return
|
|
595
|
-
}
|
|
596
|
-
if (nt = false, !e2 && et[B2(0, 0, 0, b2, v2)]) {
|
|
597
|
-
const t3 = await this[L2(0, 0, x2, 0, I2)]();
|
|
598
|
-
if (t3[P2(0, 0, "bMkj", 0, 1005)]() && !t3[L2(0, 0, R2, 0, A2)]()) return t3;
|
|
588
|
+
return X(0, 0, n3 - O2, r3);
|
|
599
589
|
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
function V2(t3, e3, n3, r3, o2) {
|
|
604
|
-
return ot(e3 - 186, 0, 0, t3);
|
|
590
|
+
if (nt = false, !e2 && et[W2(S2, 1043, w2, 999, y2)]) {
|
|
591
|
+
const t3 = await this[H2(-702, -618, -600, -659, E2)]();
|
|
592
|
+
if (t3[z2(C2, b2, 267, v2, "I01V")]() && !t3[L2(-392, -390, 0, -329, "O*3!")]()) return t3;
|
|
605
593
|
}
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
594
|
+
function z2(t3, e3, n3, r3, o2) {
|
|
595
|
+
return X(0, 0, n3 - 824, o2);
|
|
596
|
+
}
|
|
597
|
+
function H2(t3, e3, n3, r3, o2) {
|
|
598
|
+
return tt(0, 0, r3 - -696, o2);
|
|
599
|
+
}
|
|
600
|
+
et[H2(-531, -544, -490, -582, "Nqou")] = t2, et[z2(0, 0, 313, 0, "zz)o")] = H2(-644, -588, -489, -562, "kBba"), et[L2(-354, -383, 0, -398, x2)] = null, et[z2(0, 0, I2, 0, "^uSd")] = null;
|
|
601
|
+
const V2 = await this[L2(-518, -570, 0, -452, "IklC")]();
|
|
602
|
+
function W2(t3, e3, n3, r3, o2) {
|
|
603
|
+
return at(t3 - F2, e3 - k2, n3 - 1183, r3 - 317, o2);
|
|
604
|
+
}
|
|
605
|
+
if (!V2[P2(0, 0, 206, R2)]()) throw await this[L2(-379, -294, 0, -410, "@]F%")](true), new Error(L2(-359, -411, 0, -401, A2));
|
|
606
|
+
return await G[W2(1178, M2, T2, N2, "O*3!")](t2, e2), V2;
|
|
607
|
+
}
|
|
608
|
+
async [X(0, 0, -607, "ODGP")](t2 = false) {
|
|
609
|
+
const e2 = "ODGP", n2 = 1138, r2 = 75, s2 = 47, i2 = 96, a2 = 45, l2 = "#l!H", c2 = "lC@v", h2 = "#l!H", d2 = "J#Iw", u2 = 20, g2 = "*(MJ", m2 = "$AD$", f2 = "$s4a", p2 = 4, _2 = 36, S2 = 9, w2 = 1107, y2 = 1109, E2 = "ls^8", C2 = 1158, b2 = "Cnvk", v2 = "3YXZ", x2 = 1069, I2 = 1043, R2 = 248, A2 = 279, M2 = 59, T2 = "ODGP", N2 = 49, F2 = 565, k2 = 413, O2 = 477, D2 = 494, B2 = 433, L2 = "ChnO", P2 = 378, z2 = 45, V2 = 166, W2 = "JYVc", $2 = 1146, j2 = 112, Y2 = 178, tt2 = "[AF5", st2 = "X5!V", it2 = 19, ct2 = "oOeY", ht2 = "lC@v", dt2 = 1128, ut2 = 270, gt2 = 105, mt2 = 125, ft2 = 374, pt2 = 496, _t2 = 21, St2 = 117, wt2 = 171, yt2 = 181, Et2 = "ChnO";
|
|
610
|
+
if (et[It2(-415, -404, "ls^8", -505, -456)]) return et[Nt2(e2, 1148, n2)];
|
|
611
|
+
if (!this[At2(37, r2, "kR@V", s2)][At2(i2, a2, l2, 81)] && (this[Tt2(c2, -215, -132, -152)][Tt2(h2, a2, -73, -13)] = new Error("FV")), et[Mt2(-314, -341, -321, d2, -326)]) return et[At2(u2, -18, "@]F%", -72)];
|
|
612
|
+
let Ct2 = null;
|
|
613
|
+
et[Mt2(-354, -375, -497, "(0cu", -412)] = new Promise((t3) => {
|
|
614
|
+
Ct2 = t3;
|
|
621
615
|
});
|
|
622
|
-
let
|
|
623
|
-
const
|
|
616
|
+
let bt2, vt2 = null;
|
|
617
|
+
const xt2 = async (t3, e3) => {
|
|
624
618
|
try {
|
|
625
|
-
const
|
|
619
|
+
const i3 = ((t4) => {
|
|
626
620
|
let e4 = t4;
|
|
627
621
|
const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
|
|
628
|
-
if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 =
|
|
622
|
+
if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = q(e4), e4 = e4.trim(), e4[e4.length - 1] !== n4) throw new Error();
|
|
629
623
|
e4 = e4.substring(0, e4.length - 1), e4 = U(e4, r4);
|
|
630
624
|
try {
|
|
631
625
|
e4.startsWith("{") || (e4 = "{" + e4);
|
|
@@ -634,228 +628,233 @@ class at {
|
|
|
634
628
|
} catch (t5) {
|
|
635
629
|
throw new Error("Invalid license key.");
|
|
636
630
|
}
|
|
637
|
-
})(e3),
|
|
638
|
-
const r4 =
|
|
639
|
-
function
|
|
640
|
-
return
|
|
641
|
-
}
|
|
642
|
-
function a3(t5, e5, n5, r5, o3) {
|
|
643
|
-
return q(r5 - s4, o3);
|
|
631
|
+
})(e3), a3 = ((t4, e4, n4) => {
|
|
632
|
+
const r4 = 153, o2 = "B6Zg", s4 = 394, i4 = 94;
|
|
633
|
+
function a4(t5, e5, n5, r5, o3) {
|
|
634
|
+
return K(o3 - -203, t5);
|
|
644
635
|
}
|
|
645
636
|
function l3(t5, e5, n5, r5, o3) {
|
|
646
|
-
return
|
|
637
|
+
return K(r5 - -94, e5);
|
|
647
638
|
}
|
|
648
639
|
function c3(t5, e5, n5, r5, o3) {
|
|
649
|
-
return
|
|
640
|
+
return K(o3 - i4, r5);
|
|
650
641
|
}
|
|
651
|
-
function h3(t5, e5, n5, r5,
|
|
652
|
-
return
|
|
642
|
+
function h3(t5, e5, n5, r5, o3) {
|
|
643
|
+
return K(n5 - 132, t5);
|
|
653
644
|
}
|
|
654
|
-
|
|
655
|
-
return
|
|
645
|
+
function d3(t5, e5, n5, r5, o3) {
|
|
646
|
+
return K(e5 - -597, o3);
|
|
647
|
+
}
|
|
648
|
+
return { getLicensee: () => t4[a4("I01V", 0, 0, 0, 73)], getExpiration: () => new Date(t4[l3(0, "WuPX", 0, 218)]), getDomains: () => t4[d3(0, -363, 0, 0, "uFJ$")] ?? [], getDeveloperCount: () => t4[a4("ls^8", 0, 0, 0, 145)] ?? 1, getCpuCount: () => t4[a4("!8ne", 0, 0, 0, 25)] ?? 0, getType: () => t4[h3("X5!V", 0, 445)] ?? h3("X5!V", 0, 461), getExceptions: () => e4, hasExceptions() {
|
|
649
|
+
return !!e4 && e4[t5 = -301, n5 = "3YXZ", a4(n5, 0, 0, 0, t5 - -296)] > 0;
|
|
656
650
|
var t5, n5;
|
|
657
651
|
}, isValidFor: (t5) => {
|
|
658
|
-
return !(e4?.[n5 =
|
|
652
|
+
return !(e4?.[n5 = "GE#s", r5 = 598, d3(0, r5 - 937, 0, 0, n5)] > 0);
|
|
659
653
|
var n5, r5;
|
|
660
|
-
}, isValid: () => true, isEval: () => false, getFeatures: () => Object[c3(0, 0, "
|
|
661
|
-
})(
|
|
662
|
-
const e4 =
|
|
663
|
-
function p3(t5, e5, n5, r5, o2) {
|
|
664
|
-
return q(e5 - f3, r5);
|
|
665
|
-
}
|
|
666
|
-
const _3 = t4[p3(0, 654, 0, "pRE#")];
|
|
667
|
-
function S3(t5, e5, n5, r5, o2) {
|
|
668
|
-
return q(o2 - -28, t5);
|
|
669
|
-
}
|
|
670
|
-
const w3 = t4[p3(0, 649, 0, "ar(W")] ? new Date(t4[y3(e4, "*5(d", n4, 922, r4)]) : null;
|
|
654
|
+
}, isValid: () => true, isEval: () => false, getFeatures: () => Object[c3(0, 0, 0, "(0cu", 402)](t4[l3(0, "*(MJ", 0, 107)] ?? {}), getKeyFrom: () => n4, getBuildVersion: H[l3(0, "RD^Z", 0, r4)], getBuildDate: H[c3(0, 0, 0, o2, s4)] };
|
|
655
|
+
})(i3, await (async (t4) => {
|
|
656
|
+
const e4 = 1123, n4 = "JYVc", r4 = 382, s4 = 731, i4 = "C^[r", a4 = 656, l3 = "(0cu", c3 = 1136, h3 = 1011, d3 = "kBba", u3 = "$s4a", g3 = 756, m3 = "lC@v", f3 = 403, p3 = 183, _3 = 800, S3 = t4[E3(1139, 1146, 1202, "B6Zg")], w3 = t4[y3(-310, "Cnvk", -211, -315, -266)] ? new Date(t4[E3(e4, 1080, 1051, n4)]) : null;
|
|
671
657
|
function y3(t5, e5, n5, r5, o2) {
|
|
672
|
-
return
|
|
658
|
+
return K(o2 - -606, e5);
|
|
673
659
|
}
|
|
674
660
|
function E3(t5, e5, n5, r5, o2) {
|
|
675
|
-
return
|
|
661
|
+
return K(e5 - _3, r5);
|
|
676
662
|
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
function b3(t5, e5, n5, r5, o2) {
|
|
680
|
-
return q(r5 - -63, n5);
|
|
663
|
+
function C3(t5, e5, n5, r5, o2) {
|
|
664
|
+
return K(n5 - f3, o2);
|
|
681
665
|
}
|
|
682
|
-
|
|
666
|
+
var b3, v3;
|
|
667
|
+
t4[b3 = "3YXZ", v3 = r4, K(v3 - p3, b3)];
|
|
668
|
+
const x3 = [];
|
|
669
|
+
var I3, R3;
|
|
670
|
+
if (w3 ? isNaN(w3) ? x3[C3(0, 0, 644, 0, "lC@v")](E3(0, 1025, 0, i4)) : w3 < /* @__PURE__ */ new Date() && x3[I3 = -555, R3 = "GE#s", K(I3 - -759, R3)](C3(0, 0, a4, 0, l3) + w3[E3(0, c3, 0, "RD^Z")]()) : x3[E3(0, 1103, 0, "3YXZ")](C3(0, 0, s4, 0, "Nqou")), o[E3(0, h3, 0, "rA[P")]()) ;
|
|
683
671
|
else {
|
|
684
|
-
if (
|
|
685
|
-
if (
|
|
672
|
+
if (Z()) return x3;
|
|
673
|
+
if (S3 && 0 !== S3[C3(0, 0, 753, 0, d3)]) {
|
|
686
674
|
let t5 = false;
|
|
687
|
-
const e5 =
|
|
688
|
-
for (let n5 = 0; !t5 && n5 <
|
|
689
|
-
!t5 &&
|
|
690
|
-
} else
|
|
675
|
+
const e5 = J();
|
|
676
|
+
for (let n5 = 0; !t5 && n5 < S3[y3(0, "kBba", 0, 0, -256)]; n5++) t5 = e5[C3(0, 0, g3, 0, "IklC")](S3[n5]);
|
|
677
|
+
!t5 && x3[E3(0, 1092, 0, "^uSd")](C3(0, 0, 673, 0, m3));
|
|
678
|
+
} else x3[E3(0, 996, 0, u3)](y3(0, "Ds93", 0, 0, -384));
|
|
691
679
|
}
|
|
692
|
-
return
|
|
693
|
-
})(
|
|
694
|
-
return
|
|
680
|
+
return x3;
|
|
681
|
+
})(i3), t3);
|
|
682
|
+
return a3[n3 = yt2, r3 = 136, s3 = Et2, Nt2(s3, n3 - 356, r3 - -939)]() && (bt2 = a3), a3;
|
|
695
683
|
} catch (e4) {
|
|
696
|
-
|
|
697
|
-
const e5 =
|
|
698
|
-
function
|
|
699
|
-
return
|
|
684
|
+
bt2 = ((t4) => {
|
|
685
|
+
const e5 = "ChnO", n4 = 762, r4 = 222, o2 = 131;
|
|
686
|
+
function s4(t5, e6, n5, r5, o3) {
|
|
687
|
+
return K(o3 - -199, n5);
|
|
700
688
|
}
|
|
701
|
-
|
|
702
|
-
return
|
|
689
|
+
function i3(t5, e6, n5, r5, o3) {
|
|
690
|
+
return K(e6 - 565, t5);
|
|
691
|
+
}
|
|
692
|
+
return { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => s4(0, 0, "lC@v", 0, 19), getExceptions: () => {
|
|
693
|
+
return [(e6 = r4, n5 = "P8&e", s4(0, 0, n5, 0, e6 - o2) + t4 + "'")];
|
|
703
694
|
var e6, n5;
|
|
704
|
-
}, hasExceptions: () => true, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, getFeatures: () => Object[
|
|
705
|
-
var i3, a3;
|
|
695
|
+
}, hasExceptions: () => true, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, getFeatures: () => Object[i3("Zy6W", 848)]({}), getKeyFrom: () => t4, getBuildVersion: H[i3("Zy6W", 834)], getBuildDate: H[i3(e5, n4)] };
|
|
706
696
|
})(t3);
|
|
707
697
|
}
|
|
708
|
-
var n3, r3;
|
|
698
|
+
var n3, r3, s3;
|
|
709
699
|
};
|
|
710
|
-
function
|
|
711
|
-
return
|
|
712
|
-
}
|
|
713
|
-
et[
|
|
714
|
-
let
|
|
715
|
-
if (nt && (
|
|
716
|
-
if (o[
|
|
717
|
-
if (!
|
|
718
|
-
const t3 = process[
|
|
719
|
-
e3 && (
|
|
700
|
+
function It2(t3, e3, n3, r3, o2) {
|
|
701
|
+
return at(t3 - wt2, e3 - 463, o2 - -514, r3 - 56, n3);
|
|
702
|
+
}
|
|
703
|
+
et[It2(-438, -518, g2, -493, -522)] && (vt2 = await xt2(et[Nt2(m2, 1195, 1168)], et[Tt2(f2, -18, p2, -56)]));
|
|
704
|
+
let Rt2 = false;
|
|
705
|
+
if (nt && (Rt2 = true, vt2 = Q(At2(-57, _2, "I01V", -27))), !vt2) {
|
|
706
|
+
if (o[At2(-54, -86, "rA[P", -67)]()) {
|
|
707
|
+
if (!vt2) {
|
|
708
|
+
const t3 = process[Tt2("*%VU", -111, S2, -23)], e3 = t3[Tt2("3YXZ", -25, -143, -86)] || t3[Mt2(-465, -420, -334, "rA[P", -375)] || t3[Nt2("^uSd", w2, y2)] || t3[Mt2(-376, -251, -298, "C^[r", -322)];
|
|
709
|
+
e3 && (vt2 = await xt2(Nt2(E2, C2, 1115), e3));
|
|
720
710
|
}
|
|
721
|
-
if (!
|
|
722
|
-
const t3 = await G[
|
|
723
|
-
t3 && (
|
|
711
|
+
if (!vt2) {
|
|
712
|
+
const t3 = await G[At2(47, 137, "[AF5", 99)]();
|
|
713
|
+
t3 && (vt2 = await xt2(It2(-592, -499, b2, -475, -536), t3));
|
|
724
714
|
}
|
|
725
|
-
!
|
|
715
|
+
!vt2 && (Rt2 = true);
|
|
726
716
|
} else {
|
|
727
|
-
if (!
|
|
717
|
+
if (!vt2) {
|
|
728
718
|
let t3 = false;
|
|
729
719
|
try {
|
|
730
|
-
const e3 = await fetch("./" +
|
|
720
|
+
const e3 = await fetch("./" + ot);
|
|
731
721
|
let n3 = null;
|
|
732
|
-
if (200 === e3[
|
|
733
|
-
const r3 = (await e3[
|
|
722
|
+
if (200 === e3[Nt2(v2, 1035, 1055, x2, I2)]) {
|
|
723
|
+
const r3 = (await e3[Mt2(-R2, -A2, -384, "^uSd", -335)]())[At2(-47, -M2, T2, -59, -N2)]("\n"), o2 = r3[It2(-F2, -k2, "lC@v", -O2, -D2)];
|
|
734
724
|
for (let e4 = 0; !n3 && e4 < o2; e4++) {
|
|
735
|
-
const o3 = r3[e4][
|
|
736
|
-
0 !== o3[
|
|
725
|
+
const o3 = r3[e4][Mt2(-389, -376, -B2, L2, -P2)]();
|
|
726
|
+
0 !== o3[Tt2("yJV1", -z2, -i2, -79, -V2)] && (o3[Tt2(W2, -75, -118, -126, -148)](Nt2("^uSd", 1148, 1080, $2, 1055)) ? t3 = true : n3 = o3);
|
|
737
727
|
}
|
|
738
728
|
}
|
|
739
729
|
if (t3 && n3) {
|
|
740
|
-
const t4 =
|
|
741
|
-
|
|
730
|
+
const t4 = Tt2("zz)o", -35, -70, -j2, -Y2) + ot + "')";
|
|
731
|
+
vt2 = await xt2(t4, n3);
|
|
742
732
|
}
|
|
743
733
|
} catch (t4) {
|
|
744
734
|
}
|
|
745
735
|
}
|
|
746
|
-
!
|
|
736
|
+
!vt2 && Z() && (Rt2 = true);
|
|
747
737
|
}
|
|
748
738
|
}
|
|
749
|
-
|
|
750
|
-
|
|
739
|
+
!vt2 && Rt2 && (vt2 = Q(Tt2(T2, -154, -141, -122))), !vt2 && bt2 && (vt2 = bt2), !vt2 && (vt2 = { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => null, isEval: () => false, getExceptions: () => [It2(-599, -498, "P8&e", -602, -558)], hasExceptions: () => true, isValidFor: (t3) => false, isValid: () => false, getFeatures: () => Object[Tt2("yJV1", -9, 26, -8)]({}), getKeyFrom: () => Tt2("H9VV", -64, -148, -84), getBuildVersion: H[Mt2(-415, -357, -483, ")bJ8", -426)], getBuildDate: H[Tt2(tt2, -80, -45, -6)] }), et[Mt2(-456, -363, -371, "oOeY", -425)] = vt2, Ct2(vt2);
|
|
740
|
+
function At2(t3, e3, n3, r3, o2) {
|
|
741
|
+
return at(t3 - ft2, e3 - pt2, r3 - _t2, r3 - St2, n3);
|
|
742
|
+
}
|
|
743
|
+
function Mt2(t3, e3, n3, r3, o2) {
|
|
744
|
+
return lt(t3 - 424, e3 - 72, n3 - gt2, r3, o2 - mt2);
|
|
751
745
|
}
|
|
752
|
-
function
|
|
753
|
-
return
|
|
746
|
+
function Tt2(t3, e3, n3, r3, o2) {
|
|
747
|
+
return lt(t3 - ut2, e3 - 95, n3 - 135, t3, r3 - 402);
|
|
748
|
+
}
|
|
749
|
+
function Nt2(t3, e3, n3, r3, o2) {
|
|
750
|
+
return X(0, 0, n3 - 1721, t3);
|
|
754
751
|
}
|
|
755
|
-
!ht2 && gt2 && (ht2 = tt(lt2(p2, 0, 0, B2))), !ht2 && ct2 && (ht2 = ct2), !ht2 && (ht2 = { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => null, isEval: () => false, getExceptions: () => [lt2("7Z(Y", 0, 0, 1260)], hasExceptions: () => true, isValidFor: (t3) => false, isValid: () => false, getFeatures: () => Object[mt2("LKlY", -474, -540)]({}), getKeyFrom: () => lt2("g]ax", 0, 0, 1179), getBuildVersion: H[ft2(-205, L2, -280, -291)], getBuildDate: H[ft2(-416, "[7eS", -467, -369)] }), et[lt2(z2, 0, 0, P2)] = ht2, at2(ht2);
|
|
756
752
|
if (t2 && ((t3, e3) => {
|
|
757
|
-
const n3 =
|
|
758
|
-
function s3(t4, e4, n4, r4,
|
|
759
|
-
return
|
|
753
|
+
const n3 = ")bJ8", r3 = "J#Iw", o2 = 604;
|
|
754
|
+
function s3(t4, e4, n4, r4, s4) {
|
|
755
|
+
return K(r4 - o2, t4);
|
|
756
|
+
}
|
|
757
|
+
if (et[i3(-128, -153, "Ds93")] && et[s3("zR70", 0, 0, 863)]) return false;
|
|
758
|
+
function i3(t4, e4, n4, r4, o3) {
|
|
759
|
+
return K(e4 - -414, n4);
|
|
760
760
|
}
|
|
761
|
-
return
|
|
762
|
-
|
|
763
|
-
})(gt2, ht2)) {
|
|
761
|
+
return t3 || e3[i3(0, -39, n3)]() || e3[s3(r3, 0, 0, 947)]()?.pb;
|
|
762
|
+
})(Rt2, vt2)) {
|
|
764
763
|
if (rt) return void setTimeout(() => {
|
|
765
|
-
var t3, e3;
|
|
766
|
-
this[t3 =
|
|
764
|
+
var t3, e3, n3;
|
|
765
|
+
this[t3 = 1172, e3 = ht2, n3 = dt2, Tt2(e3, e3 - 271, n3 - 185, t3 - 1287)](false, false);
|
|
767
766
|
}, 8e3);
|
|
768
|
-
await this[
|
|
767
|
+
await this[At2(87, -14, st2, it2)](false, false);
|
|
769
768
|
}
|
|
770
|
-
return et[
|
|
769
|
+
return et[Nt2(ct2, 0, 1090)];
|
|
771
770
|
}
|
|
772
|
-
async [
|
|
773
|
-
const e2 =
|
|
774
|
-
function c2(t3, e3, n3, r3, o3) {
|
|
775
|
-
return Q(0, n3 - -535, o3);
|
|
776
|
-
}
|
|
771
|
+
async [at(-94, -17, -109, -117, "^uSd")](t2) {
|
|
772
|
+
const e2 = "GE#s", n2 = "2y5!", r2 = "RD^Z", o2 = 638, s2 = "H9VV", i2 = "ChnO", a2 = 50, l2 = 232, c2 = 535;
|
|
777
773
|
function h2(t3, e3, n3, r3, o3) {
|
|
778
|
-
return
|
|
774
|
+
return X(0, 0, o3 - c2, e3);
|
|
779
775
|
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
function u2(t3, e3, n3, r3, o3) {
|
|
783
|
-
return K(0, t3 - 101, r3);
|
|
776
|
+
function d2(t3, e3, n3, r3, o3) {
|
|
777
|
+
return X(0, 0, n3 - l2, t3);
|
|
784
778
|
}
|
|
785
|
-
|
|
779
|
+
et[g2("uFJ$", 732, 612, 672)] = true;
|
|
780
|
+
const u2 = await this[h2(0, e2, 0, 0, -35)]();
|
|
781
|
+
function g2(t3, e3, n3, r3, o3) {
|
|
782
|
+
return X(0, 0, r3 - 1194, t3);
|
|
783
|
+
}
|
|
784
|
+
return await G[d2("zR70", 0, -397)](t2), !t2 && !et[h2(0, "@]F%", 0, 0, -87)] && (u2[h2(0, n2, 0, 0, 1)]() || u2[h2(0, "Nqou", 0, 0, -75)]()) && await this[g2(r2, 0, 0, o2)](t2, u2[d2(s2, 0, -381)]()), Promise[h2(0, i2, 0, 0, a2)]();
|
|
786
785
|
}
|
|
787
|
-
async [
|
|
788
|
-
const r2 = "
|
|
789
|
-
function
|
|
790
|
-
return
|
|
786
|
+
async [Y("O*3!", 0, 0, 0, 381)](t2 = false, e2 = false, n2 = false) {
|
|
787
|
+
const r2 = "*%VU", o2 = 1076, s2 = "JYVc", i2 = 1114, a2 = 588, l2 = 556, c2 = "#l!H", h2 = "6zi]", d2 = 380, u2 = 1154, g2 = 116, m2 = 197, f2 = 177;
|
|
788
|
+
function p2(t3, e3, n3, r3, o3) {
|
|
789
|
+
return Y(e3, 0, 0, 0, o3 - -100);
|
|
791
790
|
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
function u2(t3, e3, n3, r3, o3) {
|
|
795
|
-
return Q(0, e3 - 129, n3);
|
|
791
|
+
function _2(t3, e3, n3, r3, o3) {
|
|
792
|
+
return at(t3 - g2, e3 - m2, e3 - 660, r3 - f2, r3);
|
|
796
793
|
}
|
|
797
|
-
|
|
798
|
-
|
|
794
|
+
et[_2(753, 670, 630, "rA[P")] = true;
|
|
795
|
+
const S2 = await this[_2(720, 691, 0, r2)]();
|
|
796
|
+
var w2, y2, E2, C2;
|
|
797
|
+
et[p2(0, "(0cu", 0, 0, 390)] || !S2[w2 = o2, y2 = 1030, E2 = s2, C2 = i2, at(w2 - 5, y2 - d2, w2 - u2, C2 - 223, E2)]() && !S2[_2(a2, l2, 0, c2)]() ? await G[p2(0, "Obsc", 0, 0, 354)](S2, t2, e2, n2) : await this[_2(764, 737, 0, h2)](t2);
|
|
799
798
|
}
|
|
800
|
-
async [
|
|
801
|
-
const n2 =
|
|
802
|
-
if (!t2 && (et[
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
var g2, m2;
|
|
807
|
-
function f2(t3, e3, n3, r3, o2) {
|
|
808
|
-
return Z(t3 - -665, 0, 0, o2);
|
|
799
|
+
async [X(0, 0, -587, "WuPX")](t2, e2) {
|
|
800
|
+
const n2 = 1015, r2 = 1104, s2 = 1067, i2 = 689, a2 = 1240, l2 = 1145, c2 = 534, h2 = 596, d2 = 458, u2 = 568, g2 = "oOeY", m2 = 1223, f2 = 302, p2 = 182, _2 = 677;
|
|
801
|
+
if (!t2 && (et[S2 = 687, w2 = 755, y2 = "B6Zg", at(S2 - 156, w2 - 340, S2 - 734, y2 - 73, y2)] || et[E2("$$5f", n2, 1010, r2)])) return;
|
|
802
|
+
var S2, w2, y2;
|
|
803
|
+
function E2(t3, e3, n3, r3, o2) {
|
|
804
|
+
return Y(t3, 0, 0, 0, r3 - _2);
|
|
809
805
|
}
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
const _2 = t2 || p2 ? console[S2(a2, 238, 321, l2)] : o[u2(c2, 0, 0, "tctv")];
|
|
813
|
-
function S2(t3, e3, n3, r3, o2) {
|
|
814
|
-
return Q(0, r3 - -476, t3);
|
|
806
|
+
function C2(t3, e3, n3, r3, o2) {
|
|
807
|
+
return lt(t3 - f2, e3 - p2, n3 - 436, n3, e3 - 1015);
|
|
815
808
|
}
|
|
816
|
-
|
|
809
|
+
et[E2("Nqou", s2, 1215, 1146)] = true, et[C2(i2, 595, "$AD$")] = true, await this[E2("O*3!", a2, l2, 1197)](t2);
|
|
810
|
+
const b2 = o[C2(c2, h2, "3YXZ")](), v2 = t2 || b2 ? console[C2(530, d2, "H9VV")] : o[C2(u2, 508, "zR70")];
|
|
811
|
+
b2 && v2(""), await this[E2(g2, 0, 0, m2)](t2, e2), v2("");
|
|
817
812
|
}
|
|
818
|
-
[
|
|
819
|
-
return this[t2 = "
|
|
820
|
-
var t2, e2;
|
|
813
|
+
[lt(-509, -510, -513, "zz)o", -544)]() {
|
|
814
|
+
return this[t2 = -423, e2 = "H9VV", n2 = -439, at(t2 - 440, e2 - 263, t2 - -418, n2 - 175, e2)]();
|
|
815
|
+
var t2, e2, n2;
|
|
821
816
|
}
|
|
822
|
-
[
|
|
823
|
-
return this[e2 =
|
|
817
|
+
[at(132, 68, 62, 117, "[AF5")](t2) {
|
|
818
|
+
return this[e2 = "WuPX", n2 = 858, Y(e2, 0, 0, 0, n2 - 417)](true, t2);
|
|
824
819
|
var e2, n2;
|
|
825
820
|
}
|
|
826
|
-
[
|
|
827
|
-
const t2 =
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
}
|
|
831
|
-
return et[e2("iYXS", 0, 108)] || et[e2("B^Iv", 0, t2)];
|
|
821
|
+
[at(4, 138, 59, 95, "IpUI")]() {
|
|
822
|
+
const t2 = "$s4a", e2 = 726, n2 = 804, r2 = 485, o2 = 24, s2 = 74;
|
|
823
|
+
return et[h2 = -287, d2 = -282, u2 = -240, g2 = "^uSd", lt(h2 - 413, d2 - 431, u2 - 11, g2, h2 - 275)] || et[i2 = t2, a2 = 789, l2 = e2, c2 = n2, at(i2 - r2, a2 - o2, c2 - 781, l2 - s2, i2)];
|
|
824
|
+
var i2, a2, l2, c2, h2, d2, u2, g2;
|
|
832
825
|
}
|
|
833
|
-
[
|
|
826
|
+
[Y("H9VV", 0, 0, 0, 402)](t2) {
|
|
834
827
|
rt = true;
|
|
835
828
|
}
|
|
836
|
-
async [
|
|
837
|
-
return this[t2 =
|
|
829
|
+
async [X(0, 0, -488, "*%VU")]() {
|
|
830
|
+
return this[t2 = 1167, e2 = "WuPX", X(0, 0, t2 - 1807, e2)](true);
|
|
838
831
|
var t2, e2;
|
|
839
832
|
}
|
|
840
|
-
async [
|
|
841
|
-
const n2 =
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
}
|
|
845
|
-
return await this[l2(s2, 424, 404, 516, i2)](true, t2, e2), a2;
|
|
833
|
+
async [tt(0, 0, 78, "J#Iw")](t2, e2) {
|
|
834
|
+
const n2 = 914, r2 = "6zi]", o2 = 391, s2 = 1153, i2 = await this[a2 = n2, l2 = 855, c2 = 885, h2 = "kBba", lt(a2 - o2, l2 - 143, c2 - 373, h2, l2 - 1295)]();
|
|
835
|
+
var a2, l2, c2, h2, d2, u2;
|
|
836
|
+
return await this[d2 = r2, u2 = 538, X(0, 0, u2 - s2, d2)](true, t2, e2), i2;
|
|
846
837
|
}
|
|
847
|
-
async [
|
|
848
|
-
|
|
849
|
-
|
|
838
|
+
async [at(105, 1, 75, 157, "X5!V")]() {
|
|
839
|
+
const t2 = 662;
|
|
840
|
+
var e2, n2;
|
|
841
|
+
return await G[e2 = 89, n2 = "WNZd", X(0, 0, e2 - t2, n2)]();
|
|
850
842
|
}
|
|
851
843
|
}
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
return (
|
|
844
|
+
const it = new st();
|
|
845
|
+
function at(t2, e2, n2, r2, o2) {
|
|
846
|
+
return K(n2 - -299, o2);
|
|
847
|
+
}
|
|
848
|
+
function lt(t2, e2, n2, r2, o2) {
|
|
849
|
+
return K(o2 - -774, r2);
|
|
850
|
+
}
|
|
851
|
+
function ct() {
|
|
852
|
+
const t2 = ["nsfVfCkpW7a", "WQJdVb/dJKZdLCo7pgy1WRRcRmoT", "c1TWfq", "W6NcVt3dIuRdGSofpwP7WOxcRmoW", "lCoDWOHzcL7cLrXCtrxdOG", "W45UWRiwW5vJW6ZdNq7dI8k6", "WPuAW6K", "W5n0C140W6ddIG", "svqwW6Gh", "W6vfDu03W73dGCkNgW", "W4NcOqNcVhT6", "W5CXyx/dO8kjWPRcLZ43W60tvSkpWRZcPCo1WQVcPuq", "WPldQ8kkW67dTN/cOmoMjSkudW3dM8otWOa", "g8krW5imjfal", "ySoscJRdNCkFWOVcS8kNWQrBWPFdQI9/F1Tc", "WOKVW69kWPnNW77dVXBdTmk6", "W60iwY90WPSwW5ODWOOUWPNdSG", "W47cTKL8W6X4y00", "WOOaW74wcHhcPmkwjSkzsxn1", "W5OKgSonoSkzB8kOarK", "WR5fvhy7WQVdSmkP", "W4NcOqlcPx5Z", "bhCysCkgW4KQW6fWkXWqWO3cIG", "iSkExmkrW5dcQmo+", "WQZdIMTkW6n9cq0/CW", "dKpdSL9LWPi", "y8kdySoAWPKZqq", "W6VdSCkhDCoEgSoJgSo3", "ch0FxmkbW4q0W5q", "WPbopcpcGSoIWPhdHmo1b8knWQTJ", "W4PVDLC", "WPeuW70JabFcSSkvaSkct3nY", "WRNdTrtdHv3dN8oh", "WPmSnYq", "pM0dhmkHWOGqjYnWbJbo", "W5pcPI3cUg5LW7rlWPZdQa", "W4vrW5RcM2DUiZGAW6FdOSoYi8o+W4G", "zviBW60AWQ7dUqSh", "W4tdImkgWP13ka", "DeTAW40AWQNdVrerWOq+nX5G", "WP7cKCo/A8owAw5aqX9Vke13WQ7cTG", "W7GkWPTRrdNdJu7cTSo2n8oPaq", "x8kyBSosWP4ZqCoBWOVcKmolA8knkCkUtxOcBq", "cKHLgmkYWQOLeCodW5CFW48ofG", "W6WcwNNcHh/cVwFdISo5W4urgq9mWQZdPXyT", "W5uVC2uMWRZdRSkIeW", "W6vQD1y2W70", "W4NcPmk5WO1CWOa", "WP04W7jfWO5jW6ZdGqRdUmkMW6NcRmoi", "W5SKgSoQn8ofkCoVqG", "W7S/l3xdQCkwWQVcJdKQWRKfqG", "WQ9TCcVcTCoDW4VcRqKYWP4MCa", "jeiqy8kEha", "WOq/mJ3dGSoS", "W4pcRCk4WOvA", "ofddP3H1WOPuWRumgCkgWRxdSMtdMtvxW5FcO8ojWRhdImkIF8o9", "WPOYW6HxWOHjW7RdHHhdPCkGW5pcPSo/W7ZcUgBcRGi", "lCoDWOHzcL4", "WPNdKZGVlJfOWO/cHmkfomoyWRmQEa", "W7n0C140W6ddISoyimkYbSo0aeq", "ruRcOh8", "sLyvW6WAWRNdVq", "WPmhWP3dQsi1hsyzW6/dGSoe", "dXPKp8k/W43cIW", "WPuqW6abdbW", "WRFcJSo9ySkyvMjg", "ke8uymkudWFdPY3dLdu", "lCoBWPTCdu7cTGLx", "W67dV8ofk8kkac96WP7dM2hcTa", "W4xcQJZcO2HV", "pCoVWPqEW6i2nCoAxfLWzq", "W4W8hCkTW5jeW71YnCk9hSo7sM4", "WPJdHcKiit0", "WPvEtIFdN1RcQ0xdJ8ogWPC", "W4lcPmkJWQ5nWPXVWRKBuW", "WQuseW3dTCorySo4W5SkW6hcJrtdTmkCW6xdUH3dVW", "b3CyASkAW4W1W5vgiWyb", "WRCAWQ4nhq0", "WRLFgeSTW4rd", "W6SddhtcGxxcVcNdTCo1WOyebrnFW6xdQbyWstVcRZaComoZW7i", "BSoUtmkxC8oPz8okorW", "WRRdQaldIa", "W7pcMJuzW55K", "WQydW68kerdcTSkreW", "amoYW53cNs/cKa", "ng0En8k8WPKLjt53htTz", "lmoNW5VcVYtcNq", "WRlcLmoizSkAtgm", "W71eW5ZcShXZcZK4W6pdUCoToq", "W70oWOfhvcldSvJcM8o5n8oP", "WRm3jJZdMmoixmovW7y6", "W43dK8oqW6hcTComfW", "WOyVjsa", "W7FdVSo6jmksls4", "tSofWPbADarbWRjVovLbW7W", "W5xdK8oDW6VcRSoah8kXWPVdPYhdHKW", "W5pcQmkKWOnCW4G", "DCkdAmosWOOL", "odDvg8kcW7NcTgiqW5JcSSoKgI0", "WRRdRX7dJuddLmoo", "WOuUnZRdLCo6ECooW6mR", "f8ovWOPzfLm", "b8oUW5NcSW", "WR7dUaNdLa", "oMutpmk3WPGqhdjG", "WQuKWRVcO13cRSkrW73cQIa", "CCkqy8ozWPuYDmkjWOFcHSopz8kB", "ffxdG2jHWOC", "W5z/A1GSW6e", "WPlcG8o+W4BcTCoac8kl", "WQlcTazTWO5h", "WQ0OWQZcP1RcSCkhW6BcVtb1EepdSa", "W67dV8odkmkxnY8", "kmoZWPKdW4eBjmog", "rmo2W51uWQOkfCk2W5i", "gmkrW5i5jfeD", "wmougt7dHCkoWOpdJmkUWRviWPVdTJ1Usv9jWPO", "ggnqpmkHWPSCjtzTadft", "mmo4W4tcUZ/cH8o+kmob", "W7BcKSofW6tdHsNdIbhcICkP", "p2iEqCkbW5e", "DCodbSoaWONdTmk9C8k5dSotlCkt", "jmkqx8kEW5ZcTmoDq8kYomo+aSkp", "W65IWQZcGNuwmmoDfqu", "W7PIWQZcINKbnmoAcHpcUmojCq", "W5zBW6lcTNfMiZKiW6pdPmoKgCoLW5tcONRcIa", "W7P4W6JdSNRcRmkGW5VcVsa", "WRLFgf0XW4bkW7W7WRmdWRy", "xXWNtSoIW75VeCo9W48PW5y5", "lLGkB8kpeq", "WOOTW6PnWPm", "W6OQigNdUmkxWQZcLYqS", "W7NdQmoya8kBjt57WO3dL34", "W5yKf8oplCkcyW", "WQ3dI2TgWPm7BXOlx2FdLJG", "W74eWPHKscxdRG", "iLBdTh1UWP9IWR0ngCodWRC", "W4xdG8kgWQ56nCkbdCoxemkBW6ZdNYO", "W7tcMCoh", "W6vIWRBcOwqk", "WOlcQtv6WOncwSkphmooDCkSqLD5W5hcOSkejSkD", "W7JcQ0pcMr/cKCkzkMOpWRZcImoC", "WOBcH8k9emo9W6r5iG", "W4ldK8oDW4BcRSopcCkpWPRdQWtdL1aF", "WP8PgcFdHCoS", "zSoIw8ktDmo2Cq", "W5hdLmkFWQz/kCku", "lqNdRHKlWPJcIda5WPy", "W4ldPSkkBmosomo0", "xvFcQNpcNIxdOSo/", "W6uRtxNcLa", "WQHTCIVcVmowWQNcHauPWP8L", "p38+nSk9WO4", "W7NcJt4BW5bP", "jCocpmkhW4L5fmkOWRFcNSoOrmkP", "W7i8ufxcLCoJkmk4W57cNHtdQa", "W6hcHCoyW47dLb/dIbBcI8k/cW", "WQZcOJDzWPPcuSoljSoczmk6ruTY", "WQnBic3cMmo+", "q13cUN3cHJRdQa", "WPxcImk1fSopW4T7", "W7T5W6JdVGRdQSogW4ZcIqXlyxe", "imkeW5qei0G8WODxkwHaW50", "fmoYW53cMcxcJCoYfCoC", "WP3dR8knW6NdU3xcQCoYbmkyeHddGq", "WPbopcpcGSoIWPFdGmoVcmkbWRu", "W7i8ufZcHCoZ", "WOuUnZZdLmo6", "WPxdRqpdIuFdK8oPl2e1WQVcUW", "WP7cKCo/A8kdrhnksr88aqrFWQ7cOthcQq", "WRZcN8k4d8odW6LSpSk6", "W65IWQZcIum", "mdTch8kfW6BcONKhW4G", "W5ZdPSkvxmophCoNhSoMrmk7FmkP", "WRK4WQVcRG", "vL3cVvdcNYxdOCo1h3BcSSoI", "WPO/oc/dLCoH", "WPG1mI3dQmoT", "WRjvd34OW4fjW6Sl", "zmoItSkgAmoOz8oY", "W6lcG8oqW5ldLc7dVHhcKCkY", "b8oLW4dcTYy", "W5xcTmkKWOi", "WP3dNYbdnYbWWO7cT8kioq", "egadrCkgW5y8", "gSkzW4CeirW", "iLBdTh1UWP9KWRKxfSopWQNdPa", "wvNcULFcKI/dQmoHl37cQCoPtq", "usbBbSoFWOTPWP8Z"];
|
|
853
|
+
return (ct = function() {
|
|
855
854
|
return t2;
|
|
856
855
|
})();
|
|
857
856
|
}
|
|
858
|
-
const
|
|
857
|
+
const ht = (t2, e2) => {
|
|
859
858
|
const n2 = [];
|
|
860
859
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
861
860
|
const o2 = t2[r2];
|
|
@@ -1764,7 +1763,7 @@ function Dt(t2) {
|
|
|
1764
1763
|
};
|
|
1765
1764
|
}
|
|
1766
1765
|
const Bt = { date: Dt({ formats: { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, defaultWidth: "full" }), time: Dt({ 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: Dt({ 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" };
|
|
1767
|
-
function
|
|
1766
|
+
function Pt(t2) {
|
|
1768
1767
|
return (e2, n2) => {
|
|
1769
1768
|
let r2;
|
|
1770
1769
|
if ("formatting" === (n2?.context ? String(n2.context) : "standalone") && t2.formattingValues) {
|
|
@@ -1777,7 +1776,7 @@ function zt(t2) {
|
|
|
1777
1776
|
return r2[t2.argumentCallback ? t2.argumentCallback(e2) : e2];
|
|
1778
1777
|
};
|
|
1779
1778
|
}
|
|
1780
|
-
function
|
|
1779
|
+
function zt(t2) {
|
|
1781
1780
|
return (e2, n2 = {}) => {
|
|
1782
1781
|
const r2 = n2.width, o2 = r2 && t2.matchPatterns[r2] || t2.matchPatterns[t2.defaultMatchWidth], s2 = e2.match(o2);
|
|
1783
1782
|
if (!s2) return null;
|
|
@@ -1809,14 +1808,14 @@ const Vt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1809
1808
|
return n2 + "rd";
|
|
1810
1809
|
}
|
|
1811
1810
|
return n2 + "th";
|
|
1812
|
-
}, era:
|
|
1811
|
+
}, era: Pt({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" }), quarter: Pt({ 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: Pt({ 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: Pt({ 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: Pt({ 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: (Ht = { matchPattern: /^(\d+)(th|st|nd|rd)?/i, parsePattern: /\d+/i, valueCallback: (t2) => parseInt(t2, 10) }, (t2, e2 = {}) => {
|
|
1813
1812
|
const n2 = t2.match(Ht.matchPattern);
|
|
1814
1813
|
if (!n2) return null;
|
|
1815
1814
|
const r2 = n2[0], o2 = t2.match(Ht.parsePattern);
|
|
1816
1815
|
if (!o2) return null;
|
|
1817
1816
|
let s2 = Ht.valueCallback ? Ht.valueCallback(o2[0]) : o2[0];
|
|
1818
1817
|
return s2 = e2.valueCallback ? e2.valueCallback(s2) : s2, { value: s2, rest: t2.slice(r2.length) };
|
|
1819
|
-
}), era:
|
|
1818
|
+
}), era: zt({ matchPatterns: { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/^b/i, /^(a|c)/i] }, defaultParseWidth: "any" }), quarter: zt({ matchPatterns: { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/1/i, /2/i, /3/i, /4/i] }, defaultParseWidth: "any", valueCallback: (t2) => t2 + 1 }), month: zt({ matchPatterns: { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] }, defaultParseWidth: "any" }), day: zt({ matchPatterns: { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] }, defaultParseWidth: "any" }), dayPeriod: zt({ matchPatterns: { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }, defaultMatchWidth: "any", parsePatterns: { any: { am: /^a/i, pm: /^p/i, midnight: /^mi/i, noon: /^no/i, morning: /morning/i, afternoon: /afternoon/i, evening: /evening/i, night: /night/i } }, defaultParseWidth: "any" }) }, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }, Wt = (t2, e2) => {
|
|
1820
1819
|
switch (t2) {
|
|
1821
1820
|
case "P":
|
|
1822
1821
|
return e2.date({ width: "short" });
|
|
@@ -1856,8 +1855,8 @@ const Vt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1856
1855
|
s2 = e2.dateTime({ width: "full" });
|
|
1857
1856
|
}
|
|
1858
1857
|
return s2.replace("{{date}}", Wt(r2, e2)).replace("{{time}}", $t(o2, e2));
|
|
1859
|
-
} }, Gt = /^D+$/, Ut = /^Y+$/,
|
|
1860
|
-
function
|
|
1858
|
+
} }, Gt = /^D+$/, Ut = /^Y+$/, qt = ["D", "DD", "YY", "YYYY"];
|
|
1859
|
+
function Jt(t2) {
|
|
1861
1860
|
return Gt.test(t2);
|
|
1862
1861
|
}
|
|
1863
1862
|
function Kt(t2) {
|
|
@@ -1868,18 +1867,18 @@ function Xt(t2, e2, n2) {
|
|
|
1868
1867
|
const r3 = "Y" === t3[0] ? "years" : "days of the month";
|
|
1869
1868
|
return `Use \`${t3.toLowerCase()}\` instead of \`${t3}\` (in \`${e3}\`) for formatting ${r3} to the input \`${n3}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1870
1869
|
})(t2, e2, n2);
|
|
1871
|
-
if (console.warn(r2),
|
|
1870
|
+
if (console.warn(r2), qt.includes(t2)) throw new RangeError(r2);
|
|
1872
1871
|
}
|
|
1873
1872
|
const Yt = Symbol.for("constructDateFrom");
|
|
1874
|
-
function
|
|
1873
|
+
function Zt(t2, e2) {
|
|
1875
1874
|
return "function" == typeof t2 ? t2(e2) : t2 && "object" == typeof t2 && Yt in t2 ? t2[Yt](e2) : t2 instanceof Date ? new t2.constructor(e2) : new Date(e2);
|
|
1876
1875
|
}
|
|
1877
|
-
let
|
|
1876
|
+
let Qt = {};
|
|
1878
1877
|
function te() {
|
|
1879
|
-
return
|
|
1878
|
+
return Qt;
|
|
1880
1879
|
}
|
|
1881
1880
|
function ee(t2, e2) {
|
|
1882
|
-
return
|
|
1881
|
+
return Zt(e2 || t2, t2);
|
|
1883
1882
|
}
|
|
1884
1883
|
class ne {
|
|
1885
1884
|
constructor() {
|
|
@@ -1902,13 +1901,13 @@ class re extends ne {
|
|
|
1902
1901
|
}
|
|
1903
1902
|
class oe extends ne {
|
|
1904
1903
|
constructor(t2, e2) {
|
|
1905
|
-
super(), this.priority = 10, this.subPriority = -1, this.context = t2 || ((t3) =>
|
|
1904
|
+
super(), this.priority = 10, this.subPriority = -1, this.context = t2 || ((t3) => Zt(e2, t3));
|
|
1906
1905
|
}
|
|
1907
1906
|
set(t2, e2) {
|
|
1908
|
-
return e2.timestampIsSet ? t2 :
|
|
1907
|
+
return e2.timestampIsSet ? t2 : Zt(t2, (function(t3, e3) {
|
|
1909
1908
|
const n2 = (function(t4) {
|
|
1910
1909
|
return "function" == typeof t4 && t4.prototype?.constructor === t4;
|
|
1911
|
-
})(e3) ? new e3(0) :
|
|
1910
|
+
})(e3) ? new e3(0) : Zt(e3, 0);
|
|
1912
1911
|
return n2.setFullYear(t3.getFullYear(), t3.getMonth(), t3.getDate()), n2.setHours(t3.getHours(), t3.getMinutes(), t3.getSeconds(), t3.getMilliseconds()), n2;
|
|
1913
1912
|
})(t2, this.context));
|
|
1914
1913
|
}
|
|
@@ -1977,7 +1976,7 @@ function Se(t2, e2, n2) {
|
|
|
1977
1976
|
const r2 = te(), o2 = n2?.weekStartsOn ?? n2?.locale?.options?.weekStartsOn ?? r2.weekStartsOn ?? r2.locale?.options?.weekStartsOn ?? 0, s2 = ee(t2, n2?.in), i2 = s2.getDay(), a2 = 7 - o2;
|
|
1978
1977
|
return (function(t3, e3, n3) {
|
|
1979
1978
|
const r3 = ee(t3, n3?.in);
|
|
1980
|
-
return isNaN(e3) ?
|
|
1979
|
+
return isNaN(e3) ? Zt(n3?.in || t3, NaN) : e3 ? (r3.setDate(r3.getDate() + e3), r3) : r3;
|
|
1981
1980
|
})(s2, e2 < 0 || e2 > 6 ? e2 - (i2 + a2) % 7 : ((e2 % 7 + 7) % 7 + a2) % 7 - (i2 + a2) % 7, n2);
|
|
1982
1981
|
}
|
|
1983
1982
|
const we = { y: new class extends se {
|
|
@@ -2065,7 +2064,7 @@ const we = { y: new class extends se {
|
|
|
2065
2064
|
}
|
|
2066
2065
|
}() }, ye = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ee = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ce = /^'([^]*?)'?$/, be = /''/g, ve = /\S/, xe = /[a-zA-Z]/;
|
|
2067
2066
|
function Ie(t2, e2, n2, r2) {
|
|
2068
|
-
const o2 = () =>
|
|
2067
|
+
const o2 = () => Zt(r2?.in || n2, NaN), s2 = Object.assign({}, te()), i2 = r2?.locale ?? s2.locale ?? Vt, a2 = r2?.firstWeekContainsDate ?? r2?.locale?.options?.firstWeekContainsDate ?? s2.firstWeekContainsDate ?? s2.locale?.options?.firstWeekContainsDate ?? 1, l2 = r2?.weekStartsOn ?? r2?.locale?.options?.weekStartsOn ?? s2.weekStartsOn ?? s2.locale?.options?.weekStartsOn ?? 0;
|
|
2069
2068
|
if (!e2) return t2 ? o2() : ee(n2, r2?.in);
|
|
2070
2069
|
const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new oe(r2?.in, n2)], d2 = e2.match(Ee).map((t3) => {
|
|
2071
2070
|
const e3 = t3[0];
|
|
@@ -2075,7 +2074,7 @@ function Ie(t2, e2, n2, r2) {
|
|
|
2075
2074
|
return t3;
|
|
2076
2075
|
}).join("").match(ye), u2 = [];
|
|
2077
2076
|
for (let n3 of d2) {
|
|
2078
|
-
!r2?.useAdditionalWeekYearTokens && Kt(n3) && Xt(n3, e2, t2), !r2?.useAdditionalDayOfYearTokens &&
|
|
2077
|
+
!r2?.useAdditionalWeekYearTokens && Kt(n3) && Xt(n3, e2, t2), !r2?.useAdditionalDayOfYearTokens && Jt(n3) && Xt(n3, e2, t2);
|
|
2079
2078
|
const s3 = n3[0], a3 = we[s3];
|
|
2080
2079
|
if (a3) {
|
|
2081
2080
|
const { incompatibleTokens: e3 } = a3;
|
|
@@ -2151,7 +2150,7 @@ function Be(t2, e2) {
|
|
|
2151
2150
|
function Le(t2, e2) {
|
|
2152
2151
|
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));
|
|
2153
2152
|
}
|
|
2154
|
-
var
|
|
2153
|
+
var Pe = [["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"]], He = { 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"秒 "' }, Ve = { 5: 37, 6: 38, 7: 39, 8: 40, 23: 0, 24: 0, 25: 0, 26: 0, 27: 14, 28: 14, 29: 14, 30: 14, 31: 14, 50: 14, 51: 14, 52: 14, 53: 14, 54: 14, 55: 14, 56: 14, 57: 14, 58: 14, 59: 1, 60: 2, 61: 3, 62: 4, 67: 9, 68: 10, 69: 12, 70: 13, 71: 14, 72: 14, 73: 15, 74: 16, 75: 17, 76: 20, 77: 21, 78: 22, 79: 45, 80: 46, 81: 47, 82: 0 }, We = { 5: '"$"#,##0_);\\("$"#,##0\\)', 63: '"$"#,##0_);\\("$"#,##0\\)', 6: '"$"#,##0_);[Red]\\("$"#,##0\\)', 64: '"$"#,##0_);[Red]\\("$"#,##0\\)', 7: '"$"#,##0.00_);\\("$"#,##0.00\\)', 65: '"$"#,##0.00_);\\("$"#,##0.00\\)', 8: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 66: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 41: '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', 42: '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', 44: '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)' };
|
|
2155
2154
|
function $e(t2, e2, n2) {
|
|
2156
2155
|
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;
|
|
2157
2156
|
if (h2 > e2 && (c2 > e2 ? (h2 = l2, a2 = s2) : (h2 = c2, a2 = i2)), !n2) return [0, r2 * a2, h2];
|
|
@@ -2175,10 +2174,10 @@ function je(t2, e2, n2) {
|
|
|
2175
2174
|
}
|
|
2176
2175
|
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;
|
|
2177
2176
|
}
|
|
2178
|
-
var Ge = new Date(1899, 11, 31, 0, 0, 0), Ue = Ge.getTime(),
|
|
2179
|
-
function
|
|
2177
|
+
var Ge = new Date(1899, 11, 31, 0, 0, 0), Ue = Ge.getTime(), qe = new Date(1900, 2, 1, 0, 0, 0);
|
|
2178
|
+
function Je(t2, e2 = false) {
|
|
2180
2179
|
var n2 = t2.getTime();
|
|
2181
|
-
return e2 ? n2 -= 1262304e5 : t2 >=
|
|
2180
|
+
return e2 ? n2 -= 1262304e5 : t2 >= qe && (n2 += 864e5), (n2 - (Ue + 6e4 * (t2.getTimezoneOffset() - Ge.getTimezoneOffset()))) / 864e5;
|
|
2182
2181
|
}
|
|
2183
2182
|
function Ke(t2) {
|
|
2184
2183
|
return -1 === t2.indexOf(".") ? t2 : t2.replace(/(?:\.0*|(\.\d*[1-9])0+)$/, "$1");
|
|
@@ -2207,11 +2206,11 @@ function Ye(t2, e2) {
|
|
|
2207
2206
|
return "";
|
|
2208
2207
|
case "object":
|
|
2209
2208
|
if (null == t2) return "";
|
|
2210
|
-
if (Ae(t2)) return yn(14,
|
|
2209
|
+
if (Ae(t2)) return yn(14, Je(t2, e2 && e2.date1904), e2);
|
|
2211
2210
|
}
|
|
2212
2211
|
throw new Error("unsupported value in General format: " + t2);
|
|
2213
2212
|
}
|
|
2214
|
-
function
|
|
2213
|
+
function Ze(t2, e2, n2, r2) {
|
|
2215
2214
|
var o2, s2 = "", i2 = 0, a2 = 0, l2 = n2.y, c2 = 0;
|
|
2216
2215
|
switch (t2) {
|
|
2217
2216
|
case 98:
|
|
@@ -2233,11 +2232,11 @@ function Qe(t2, e2, n2, r2) {
|
|
|
2233
2232
|
o2 = n2.m, c2 = e2.length;
|
|
2234
2233
|
break;
|
|
2235
2234
|
case 3:
|
|
2236
|
-
return
|
|
2235
|
+
return ze[n2.m - 1][1];
|
|
2237
2236
|
case 5:
|
|
2238
|
-
return
|
|
2237
|
+
return ze[n2.m - 1][0];
|
|
2239
2238
|
default:
|
|
2240
|
-
return
|
|
2239
|
+
return ze[n2.m - 1][2];
|
|
2241
2240
|
}
|
|
2242
2241
|
break;
|
|
2243
2242
|
case 100:
|
|
@@ -2247,9 +2246,9 @@ function Qe(t2, e2, n2, r2) {
|
|
|
2247
2246
|
o2 = n2.d, c2 = e2.length;
|
|
2248
2247
|
break;
|
|
2249
2248
|
case 3:
|
|
2250
|
-
return
|
|
2249
|
+
return Pe[n2.q][0];
|
|
2251
2250
|
default:
|
|
2252
|
-
return
|
|
2251
|
+
return Pe[n2.q][1];
|
|
2253
2252
|
}
|
|
2254
2253
|
break;
|
|
2255
2254
|
case 104:
|
|
@@ -2309,7 +2308,7 @@ function Qe(t2, e2, n2, r2) {
|
|
|
2309
2308
|
}
|
|
2310
2309
|
return c2 > 0 ? Fe(o2, c2) : "";
|
|
2311
2310
|
}
|
|
2312
|
-
function
|
|
2311
|
+
function Qe(t2) {
|
|
2313
2312
|
if (t2.length <= 3) return t2;
|
|
2314
2313
|
for (var e2 = t2.length % 3, n2 = t2.substr(0, e2); e2 !== t2.length; e2 += 3) n2 += (n2.length > 0 ? "," : "") + t2.substr(e2, 3);
|
|
2315
2314
|
return n2;
|
|
@@ -2398,8 +2397,8 @@ function dn(t2, e2, n2) {
|
|
|
2398
2397
|
return n3;
|
|
2399
2398
|
})(a2))).replace(/^0\./, ""), o2 = Me("" + Math.abs(i2), s2[1]) + "." + Me("" + a2, s2[2], true), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
|
|
2400
2399
|
if (s2 = (e2 = e2.replace(/^#+([0.])/, "$1")).match(/^(0*)\.(#*)$/)) return c2 + ln(l2, s2[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s2[1].length ? "0." : ".");
|
|
2401
|
-
if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 +
|
|
2402
|
-
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + dn(t2, e2, -n2) :
|
|
2400
|
+
if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe(Be(l2, 0));
|
|
2401
|
+
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + dn(t2, e2, -n2) : Qe("" + (Math.floor(n2) + (function(t3, e3) {
|
|
2403
2402
|
return e3 < ("" + Math.round((t3 - Math.floor(t3)) * Math.pow(10, e3))).length ? 1 : 0;
|
|
2404
2403
|
})(n2, s2[1].length))) + "." + Fe(hn(n2, s2[1].length), s2[1].length);
|
|
2405
2404
|
if (s2 = e2.match(/^#,#*,#0/)) return dn(t2, e2.replace(/^#,#*,/, ""), n2);
|
|
@@ -2416,7 +2415,7 @@ function dn(t2, e2, n2) {
|
|
|
2416
2415
|
var d2 = e2.indexOf(".") - i2, u2 = e2.length - o2.length - d2;
|
|
2417
2416
|
return an(e2.substr(0, d2) + o2 + e2.substr(e2.length - u2));
|
|
2418
2417
|
}
|
|
2419
|
-
if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return i2 = hn(n2, s2[1].length), n2 < 0 ? "-" + dn(t2, e2, -n2) :
|
|
2418
|
+
if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return i2 = hn(n2, s2[1].length), n2 < 0 ? "-" + dn(t2, e2, -n2) : Qe((function(t3) {
|
|
2420
2419
|
return t3 < 2147483647 && t3 > -2147483648 ? "" + (t3 >= 0 ? 0 | t3 : t3 - 1 | 0) : "" + Math.floor(t3);
|
|
2421
2420
|
})(n2)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
|
|
2422
2421
|
return "00," + (t3.length < 3 ? Fe(0, 3 - t3.length) : "") + t3;
|
|
@@ -2427,7 +2426,7 @@ function dn(t2, e2, n2) {
|
|
|
2427
2426
|
case "###,###":
|
|
2428
2427
|
case "##,###":
|
|
2429
2428
|
case "#,###":
|
|
2430
|
-
var g2 =
|
|
2429
|
+
var g2 = Qe(Be(l2, 0));
|
|
2431
2430
|
return "0" !== g2 ? c2 + g2 : "";
|
|
2432
2431
|
case "###,###.00":
|
|
2433
2432
|
return dn(t2, "###,##0.00", n2).replace(/^0\./, ".");
|
|
@@ -2480,8 +2479,8 @@ function gn(t2, e2, n2) {
|
|
|
2480
2479
|
return "." + e3 + Te("0", an(s2[2]).length - e3.length);
|
|
2481
2480
|
}), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
|
|
2482
2481
|
if (e2 = e2.replace(/^#+([0.])/, "$1"), s2 = e2.match(/^(0*)\.(#*)$/)) return c2 + ("" + l2).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s2[1].length ? "0." : ".");
|
|
2483
|
-
if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 +
|
|
2484
|
-
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + gn(t2, e2, -n2) :
|
|
2482
|
+
if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe("" + l2);
|
|
2483
|
+
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + gn(t2, e2, -n2) : Qe("" + n2) + "." + Te("0", s2[1].length);
|
|
2485
2484
|
if (s2 = e2.match(/^#,#*,#0/)) return gn(t2, e2.replace(/^#,#*,/, ""), n2);
|
|
2486
2485
|
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 = Ne(gn(t2, e2.replace(/[\\-]/g, ""), n2)), i2 = 0, Ne(Ne(e2.replace(/\\/g, "")).replace(/[0#]/g, function(t3) {
|
|
2487
2486
|
return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
|
|
@@ -2496,14 +2495,14 @@ function gn(t2, e2, n2) {
|
|
|
2496
2495
|
var d2 = e2.indexOf(".") - i2, u2 = e2.length - o2.length - d2;
|
|
2497
2496
|
return an(e2.substr(0, d2) + o2 + e2.substr(e2.length - u2));
|
|
2498
2497
|
}
|
|
2499
|
-
if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return n2 < 0 ? "-" + gn(t2, e2, -n2) :
|
|
2498
|
+
if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return n2 < 0 ? "-" + gn(t2, e2, -n2) : Qe("" + n2).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
|
|
2500
2499
|
return "00," + (t3.length < 3 ? Fe(0, 3 - t3.length) : "") + t3;
|
|
2501
2500
|
}) + "." + Fe(0, s2[1].length);
|
|
2502
2501
|
switch (e2) {
|
|
2503
2502
|
case "###,###":
|
|
2504
2503
|
case "##,###":
|
|
2505
2504
|
case "#,###":
|
|
2506
|
-
var g2 =
|
|
2505
|
+
var g2 = Qe("" + l2);
|
|
2507
2506
|
return "0" !== g2 ? c2 + g2 : "";
|
|
2508
2507
|
default:
|
|
2509
2508
|
if (e2.match(/\.[0#?]*$/)) return gn(t2, e2.slice(0, e2.lastIndexOf(".")), n2) + an(e2.slice(e2.lastIndexOf(".")));
|
|
@@ -2644,7 +2643,7 @@ function yn(t2, e2, n2) {
|
|
|
2644
2643
|
null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : He)[t2]) && (r2 = n2.table && n2.table[Ve[t2]] || He[Ve[t2]]), null == r2 && (r2 = We[t2] || "General");
|
|
2645
2644
|
}
|
|
2646
2645
|
if (Le(r2, 0)) return Ye(e2, n2);
|
|
2647
|
-
Ae(e2) && (e2 =
|
|
2646
|
+
Ae(e2) && (e2 = Je(e2, n2.date1904));
|
|
2648
2647
|
var s2 = (function(t3, e3) {
|
|
2649
2648
|
var n3 = fn(t3), r3 = n3.length, o2 = n3[r3 - 1].indexOf("@");
|
|
2650
2649
|
if (-1 !== o2 && "\\" === n3[r3 - 1][o2 - 1] && (o2 = -1), r3 < 4 && o2 > -1 && --r3, n3.length > 4) throw new Error("We can't find right format for |" + n3.join("|") + "|");
|
|
@@ -2831,7 +2830,7 @@ function yn(t2, e2, n2) {
|
|
|
2831
2830
|
case "e":
|
|
2832
2831
|
case "b":
|
|
2833
2832
|
case "Z":
|
|
2834
|
-
a2[c2].v =
|
|
2833
|
+
a2[c2].v = Ze(a2[c2].t.charCodeAt(0), a2[c2].v, o2, w2), a2[c2].t = "t";
|
|
2835
2834
|
break;
|
|
2836
2835
|
case "n":
|
|
2837
2836
|
case "?":
|
|
@@ -2888,7 +2887,7 @@ function En(t2, e2) {
|
|
|
2888
2887
|
}
|
|
2889
2888
|
return He[e2] = t2, e2;
|
|
2890
2889
|
}
|
|
2891
|
-
const Cn = { format: yn, dateNumLocal:
|
|
2890
|
+
const Cn = { format: yn, dateNumLocal: Je, load: En, split_fmt: fn, _table: He, load_table: function(t2) {
|
|
2892
2891
|
for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && En(t2[e2], e2);
|
|
2893
2892
|
}, parse_date_code: je, is_date: _n, get_table: function() {
|
|
2894
2893
|
return Cn._table = He;
|
|
@@ -2904,7 +2903,7 @@ const Cn = { format: yn, dateNumLocal: qe, load: En, split_fmt: fn, _table: He,
|
|
|
2904
2903
|
const n2 = [...t2], r2 = e2 ? 1 : 255;
|
|
2905
2904
|
for (var o2 = 0; o2 < t2.length; o2++) n2[o2] = Math.max(0, Math.min(r2, t2[o2]));
|
|
2906
2905
|
return n2;
|
|
2907
|
-
}, Ln = (t2) => Math.max(0, Math.min(1, t2)),
|
|
2906
|
+
}, Ln = (t2) => Math.max(0, Math.min(1, t2)), Pn = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), zn = (t2) => {
|
|
2908
2907
|
const e2 = [...t2];
|
|
2909
2908
|
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Vn(t2[n2]);
|
|
2910
2909
|
return e2;
|
|
@@ -2923,10 +2922,10 @@ const Cn = { format: yn, dateNumLocal: qe, load: En, split_fmt: fn, _table: He,
|
|
|
2923
2922
|
const a2 = (s2 + o2) / 2;
|
|
2924
2923
|
let l2 = 0;
|
|
2925
2924
|
return l2 = s2 === o2 ? 0 : a2 <= 0.5 ? (s2 - o2) / (s2 + o2) : (s2 - o2) / (2 - s2 - o2), [i2, 100 * l2, 100 * a2];
|
|
2926
|
-
}, Un = 0,
|
|
2925
|
+
}, Un = 0, qn = 1, Jn = 2, Kn = 0, Xn = 1, Yn = 2, Zn = 0, Qn = 1, tr = 2, er = (t2, e2) => {
|
|
2927
2926
|
let n2 = e2 / 100;
|
|
2928
2927
|
return ((t3, e3) => {
|
|
2929
|
-
let n3 =
|
|
2928
|
+
let n3 = zn(t3);
|
|
2930
2929
|
n3[0] = e3(n3[0], n3), n3[1] = e3(n3[1], n3), n3[2] = e3(n3[2], n3);
|
|
2931
2930
|
let r2 = Hn(n3);
|
|
2932
2931
|
return r2 = Bn(r2), r2;
|
|
@@ -2938,13 +2937,13 @@ const Cn = { format: yn, dateNumLocal: qe, load: En, split_fmt: fn, _table: He,
|
|
|
2938
2937
|
let l2 = $n(n2);
|
|
2939
2938
|
return l2 = Bn(l2), l2;
|
|
2940
2939
|
}, or = (t2, e2) => {
|
|
2941
|
-
let n2 =
|
|
2940
|
+
let n2 = zn(t2), r2 = e2 / 100;
|
|
2942
2941
|
for (var o2 = 0; o2 < 3; o2++) n2[o2] = n2[o2] * r2 + (1 - r2);
|
|
2943
2942
|
let s2 = Hn(n2);
|
|
2944
2943
|
return s2 = Bn(s2), s2;
|
|
2945
2944
|
}, sr = (t2, e2, n2) => {
|
|
2946
2945
|
let r2 = Gn(e2), o2 = n2 / 1;
|
|
2947
|
-
t2 === Un && (o2 =
|
|
2946
|
+
t2 === Un && (o2 = Pn(n2)), r2[t2] = o2;
|
|
2948
2947
|
let s2 = $n(r2);
|
|
2949
2948
|
return s2 = Bn(s2), s2;
|
|
2950
2949
|
}, ir = (t2, e2, n2) => {
|
|
@@ -2960,16 +2959,16 @@ const Cn = { format: yn, dateNumLocal: qe, load: En, split_fmt: fn, _table: He,
|
|
|
2960
2959
|
return o2 = Bn(o2), o2;
|
|
2961
2960
|
}, ar = (t2, e2, n2) => {
|
|
2962
2961
|
let r2 = Gn(e2), o2 = n2 / 100;
|
|
2963
|
-
r2[t2] = r2[t2] * o2, t2 === Un && (r2[Un] =
|
|
2962
|
+
r2[t2] = r2[t2] * o2, t2 === Un && (r2[Un] = Pn(r2[Un]));
|
|
2964
2963
|
let s2 = $n(r2);
|
|
2965
2964
|
return s2 = Bn(s2), s2;
|
|
2966
2965
|
}, lr = (t2, e2, n2, r2) => {
|
|
2967
|
-
let o2 =
|
|
2968
|
-
r2 ===
|
|
2966
|
+
let o2 = zn(e2), s2 = n2 / 100;
|
|
2967
|
+
r2 === Zn ? o2[t2] = s2 : r2 === Qn ? o2[t2] += s2 : r2 === tr && (o2[t2] *= s2);
|
|
2969
2968
|
let i2 = Hn(o2);
|
|
2970
2969
|
return i2 = Bn(i2), i2;
|
|
2971
2970
|
}, cr = (t2) => {
|
|
2972
|
-
let e2 =
|
|
2971
|
+
let e2 = zn(t2), n2 = 0.213 * e2[Kn] + 0.715 * e2[Xn] + 0.072 * e2[Yn];
|
|
2973
2972
|
e2[0] = n2, e2[1] = n2, e2[2] = n2;
|
|
2974
2973
|
let r2 = Hn(e2);
|
|
2975
2974
|
return r2 = Bn(r2), r2;
|
|
@@ -2979,7 +2978,7 @@ const Cn = { format: yn, dateNumLocal: qe, load: En, split_fmt: fn, _table: He,
|
|
|
2979
2978
|
let n2 = $n(e2);
|
|
2980
2979
|
return n2 = Bn(n2), n2;
|
|
2981
2980
|
}, dr = (t2, e2 = true) => {
|
|
2982
|
-
let n2 = e2 ?
|
|
2981
|
+
let n2 = e2 ? zn(t2) : [...t2];
|
|
2983
2982
|
const r2 = e2 ? 1 : 255;
|
|
2984
2983
|
return n2[0] = r2 - n2[0], n2[1] = r2 - n2[1], n2[2] = r2 - n2[2], e2 && (n2 = Hn(n2)), n2 = Bn(n2, e2), n2;
|
|
2985
2984
|
}, ur = (t2) => {
|
|
@@ -3126,8 +3125,8 @@ const Rr = () => Ir || (Ir = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3126
3125
|
void 0 !== n2 && (e2 = vr(n2).toString());
|
|
3127
3126
|
}
|
|
3128
3127
|
return e2;
|
|
3129
|
-
}, Br = "=", Lr = "<>",
|
|
3130
|
-
Wr.set(Br, (t2, e2) => t2 === e2), Wr.set(Lr, (t2, e2) => t2 !== e2), Wr.set(
|
|
3128
|
+
}, Br = "=", Lr = "<>", Pr = ">", zr = "<", Hr = ">=", Vr = "<=", Wr = /* @__PURE__ */ new Map();
|
|
3129
|
+
Wr.set(Br, (t2, e2) => t2 === e2), Wr.set(Lr, (t2, e2) => t2 !== e2), Wr.set(Pr, (t2, e2) => t2 > e2), Wr.set(zr, (t2, e2) => t2 < e2), Wr.set(Hr, (t2, e2) => t2 >= e2), Wr.set(Vr, (t2, e2) => t2 <= e2);
|
|
3131
3130
|
const $r = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, jr = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, Gr = /\[(.*?)\]/g, Ur = (t2, e2) => {
|
|
3132
3131
|
const n2 = { color: null, condition: null };
|
|
3133
3132
|
let r2 = null, o2 = new RegExp(Gr);
|
|
@@ -3145,13 +3144,13 @@ const $r = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, jr =
|
|
|
3145
3144
|
if (!e3) return n2;
|
|
3146
3145
|
}
|
|
3147
3146
|
return n2.condition || (n2.condition = e2), n2;
|
|
3148
|
-
},
|
|
3147
|
+
}, qr = Object.freeze({ op: Hr, comp: 0 }), Jr = Object.freeze({ op: zr, comp: 0 }), Kr = Object.freeze({ op: Pr, comp: 0 }), Xr = Object.freeze({ op: Br, comp: 0 }), Yr = (t2, e2) => {
|
|
3149
3148
|
let n2 = ((t3) => {
|
|
3150
3149
|
if (!t3) return o.EmptyArray;
|
|
3151
3150
|
const e3 = [], n3 = t3.split(";"), r3 = n3.length;
|
|
3152
3151
|
for (let t4 = 0; t4 < r3; t4++) {
|
|
3153
3152
|
let o2 = null;
|
|
3154
|
-
2 === r3 ? 0 === t4 ? o2 =
|
|
3153
|
+
2 === r3 ? 0 === t4 ? o2 = qr : 1 === t4 && (o2 = Jr) : 3 !== r3 && 4 !== r3 || (o2 = 0 === t4 ? Kr : 1 === t4 ? Jr : 2 === t4 ? Xr : null);
|
|
3155
3154
|
const s3 = n3[t4], i2 = Ur(s3, o2);
|
|
3156
3155
|
e3.push({ format: s3, colorAndCondition: i2 });
|
|
3157
3156
|
}
|
|
@@ -3169,9 +3168,9 @@ const $r = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, jr =
|
|
|
3169
3168
|
if (Wr.get(r3.op)(e2, r3.comp)) return s2?.color ?? null;
|
|
3170
3169
|
}
|
|
3171
3170
|
}
|
|
3172
|
-
},
|
|
3171
|
+
}, Zr = (t2) => {
|
|
3173
3172
|
if (t2 === xr.MediumDate || t2 === xr.LongDate || t2 === xr.ShortDate || t2 === xr.MediumTime || t2 === xr.LongTime || t2 === xr.ShortTime) return true;
|
|
3174
|
-
},
|
|
3173
|
+
}, Qr = (t2, e2) => t2 === e2 ? 0 : Zr(t2) ? 1 : Zr(e2) ? -1 : t2 === xr.Percentage ? 1 : e2 === xr.Percentage ? -1 : t2 === xr.Currency || t2 === xr.Accounting ? 1 : e2 === xr.Currency || e2 === xr.Accounting ? -1 : 0, to = (t2) => (t2 instanceof Date || "[object Date]" === Object.prototype.toString.call(t2)) && !isNaN(t2.getTime()), eo = (t2, e2, n2) => {
|
|
3175
3174
|
return "month" === n2 || "months" === n2 || "m" === n2 ? (r2 = t2, 12 * ((o2 = e2).getUTCFullYear() - r2.getUTCFullYear()) + (o2.getUTCMonth() - r2.getUTCMonth()) + (o2.getUTCDate() - r2.getUTCDate() < 0 ? -1 : 0)) : "year" === n2 || "years" === n2 || "y" === n2 ? ((t3, e3) => Math.abs(e3.getFullYear() - t3.getFullYear()))(t2, e2) : "day" === n2 || "days" === n2 || "d" === n2 ? ((t3, e3) => Math.floor((Date.UTC(e3.getFullYear(), e3.getMonth(), e3.getDate()) - Date.UTC(t3.getFullYear(), t3.getMonth(), t3.getDate())) / 864e5))(t2, e2) : void console.warn("invalid unit" + n2);
|
|
3176
3175
|
var r2, o2;
|
|
3177
3176
|
}, no = "d", ro = "m", oo = "y", so = (t2, e2, n2) => {
|
|
@@ -3353,7 +3352,7 @@ const Ro = (t2, e2, n2 = 1e3) => {
|
|
|
3353
3352
|
if (void 0 === t2) return 0;
|
|
3354
3353
|
let e2 = t2.toString().split(".");
|
|
3355
3354
|
return e2.length <= 1 ? 0 : e2[1].length || 0;
|
|
3356
|
-
}, ko = new RegExp(/^["|'|`](.*)["|'|`]$/), Oo = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), Do = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), Bo = Do(), Lo = (t2) => t2 && t2.length > 1 && ko.test(t2) && t2[0] === t2[t2.length - 1],
|
|
3355
|
+
}, ko = new RegExp(/^["|'|`](.*)["|'|`]$/), Oo = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), Do = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), Bo = Do(), Lo = (t2) => t2 && t2.length > 1 && ko.test(t2) && t2[0] === t2[t2.length - 1], Po = (t2) => t2.replace(ko, "$1"), zo = (t2, e2 = "'") => `${e2}${t2}${e2}`, Ho = (t2, e2 = void 0, n2 = void 0) => {
|
|
3357
3356
|
let r2 = Bo;
|
|
3358
3357
|
return void 0 === e2 && void 0 === n2 || (r2 = Do(e2, n2)), t2.split(r2);
|
|
3359
3358
|
}, Vo = (t2) => {
|
|
@@ -3370,24 +3369,24 @@ const Ro = (t2, e2, n2 = 1e3) => {
|
|
|
3370
3369
|
if ("" === n2) return "";
|
|
3371
3370
|
const r2 = Mo(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
|
|
3372
3371
|
return e2 ? Ao(o2, true) : o2;
|
|
3373
|
-
}, getFileNameExtension: Mo, isQuoted: Lo, isValidEmail: $o, isValidHttpUrl: Vo, numberToAlphabet: jo, quote:
|
|
3372
|
+
}, getFileNameExtension: Mo, isQuoted: Lo, isValidEmail: $o, isValidHttpUrl: Vo, numberToAlphabet: jo, quote: zo, snakeToCamel: To, splitUnquoted: Ho, unquote: Po }, Symbol.toStringTag, { value: "Module" })), Uo = (t2, e2, n2, r2 = null) => {
|
|
3374
3373
|
const o2 = (e2 || 11 * es.getDeviceScale()) / es.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
|
|
3375
3374
|
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));
|
|
3376
3375
|
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 };
|
|
3377
|
-
},
|
|
3378
|
-
let
|
|
3376
|
+
}, qo = () => Uo;
|
|
3377
|
+
let Jo = "./packages/sdk/src/__tests__/fonts/";
|
|
3379
3378
|
const Ko = /* @__PURE__ */ new Map(), Xo = /* @__PURE__ */ new Set(), Yo = (t2, e2, n2, r2 = null) => {
|
|
3380
|
-
const o2 = e2, s2 =
|
|
3379
|
+
const o2 = e2, s2 = Jo + n2.toLowerCase() + ".ttf";
|
|
3381
3380
|
let i2 = null;
|
|
3382
3381
|
try {
|
|
3383
3382
|
i2 = M(s2);
|
|
3384
3383
|
} catch (t3) {
|
|
3385
3384
|
}
|
|
3386
3385
|
if (!i2) try {
|
|
3387
|
-
i2 = M(
|
|
3386
|
+
i2 = M(Jo + "calibri.ttf");
|
|
3388
3387
|
} catch (t3) {
|
|
3389
3388
|
}
|
|
3390
|
-
if (!i2) return Xo.has(s2) || Xo.add(s2),
|
|
3389
|
+
if (!i2) return Xo.has(s2) || Xo.add(s2), qo().call(null, t2, e2, n2, r2);
|
|
3391
3390
|
const a2 = `${s2}${t2}${o2}`;
|
|
3392
3391
|
let l2 = Ko.get(a2);
|
|
3393
3392
|
l2 || (l2 = i2.layout(t2), t2.length < 2 && Ko.set(a2, l2));
|
|
@@ -3403,20 +3402,20 @@ const Ko = /* @__PURE__ */ new Map(), Xo = /* @__PURE__ */ new Set(), Yo = (t2,
|
|
|
3403
3402
|
let _2 = i2.underlineThickness;
|
|
3404
3403
|
return _2 = _2 / i2.unitsPerEm * c2, { width: h2, lineHeight: m2, baseline: f2, underlinePosition: p2, underlineThickness: _2, lineGap: 0, actualBoundingBoxAscent: 0, actualBoundingBoxDescent: 0, actualBoundingBoxLeft: 0, actualBoundingBoxRight: 0, alphabeticBaseline: 0, emHeightAscent: 0, emHeightDescent: 0, fontBoundingBoxAscent: 0, fontBoundingBoxDescent: 0, hangingBaseline: 0, ideographicBaseline: 0 };
|
|
3405
3404
|
};
|
|
3406
|
-
let
|
|
3407
|
-
const
|
|
3405
|
+
let Zo = null;
|
|
3406
|
+
const Qo = () => 96 / 72;
|
|
3408
3407
|
let ts = null;
|
|
3409
3408
|
var es, ns;
|
|
3410
3409
|
(ns = es || (es = {})).Style = { Normal: "normal", Italic: "italic" }, ns.Scheme = { Major: "major", Minor: "minor", None: "none" }, ns.UnderlineStyle = { None: "none", Double: "double", DoubleAccounting: "doubleAccounting", Single: "single", SingleAccounting: "singleAccounting" }, ns.VerticalAlignment = { Baseline: "baseline", Sub: "sub", Super: "super" }, ns.setSharedMeasurer = (t2) => {
|
|
3411
3410
|
ts = t2;
|
|
3412
3411
|
}, ns.getSharedMeasurer = () => ts || (ts = (() => {
|
|
3413
|
-
if (
|
|
3412
|
+
if (Zo) return Zo;
|
|
3414
3413
|
try {
|
|
3415
|
-
|
|
3414
|
+
Zo = Yo;
|
|
3416
3415
|
} catch {
|
|
3417
3416
|
}
|
|
3418
|
-
return
|
|
3419
|
-
})(), ts), ns.getDeviceScale = () =>
|
|
3417
|
+
return Zo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Zo = qo()), Zo;
|
|
3418
|
+
})(), ts), ns.getDeviceScale = () => Qo(), ns.getPanoseFallback = (t2) => {
|
|
3420
3419
|
const e2 = [], n2 = t2.length;
|
|
3421
3420
|
for (let r3 = 0; r3 < n2; r3 += 2) e2.push(parseInt(t2.substring(r3, r3 + 2), 16));
|
|
3422
3421
|
const r2 = e2[0], o2 = e2[1], s2 = e2[3];
|
|
@@ -3943,7 +3942,7 @@ const Ds = (t2, e2 = false) => {
|
|
|
3943
3942
|
}, Bs = (t2, e2) => t2 ? e2 ? t2 || e2 ? t2.min > e2.max || t2.max < e2.min ? null : { min: Math.max(t2.min, e2.min), max: Math.min(t2.max, e2.max) } : null : { ...t2 } : { ...e2 }, Ls = (t2) => {
|
|
3944
3943
|
const e2 = 0 === t2.length;
|
|
3945
3944
|
return { runs: t2, run: { min: e2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER, max: e2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER, value: null }, index: Number.MAX_SAFE_INTEGER };
|
|
3946
|
-
},
|
|
3945
|
+
}, Ps = (t2, e2) => {
|
|
3947
3946
|
const n2 = e2.run, r2 = n2.min, s2 = n2.max;
|
|
3948
3947
|
if (t2 >= r2 && t2 <= s2) return n2.value;
|
|
3949
3948
|
let i2 = e2.index;
|
|
@@ -3966,7 +3965,7 @@ const Ds = (t2, e2 = false) => {
|
|
|
3966
3965
|
return n2.value = t3, t3;
|
|
3967
3966
|
}
|
|
3968
3967
|
return i2--, e2.index = i2, n2.min = i2 >= 0 ? a2[i2].max + 1 : Number.MIN_SAFE_INTEGER, n2.max = c2 - 1, n2.value = null, null;
|
|
3969
|
-
},
|
|
3968
|
+
}, zs = function(t2, e2, n2, r2) {
|
|
3970
3969
|
if (0 === t2.length) {
|
|
3971
3970
|
if (null != n2 || null != r2) {
|
|
3972
3971
|
const t3 = e2({ min: n2 ?? r2, max: r2 ?? n2 });
|
|
@@ -4242,7 +4241,7 @@ var Vs, Ws, $s, js, Gs, Us;
|
|
|
4242
4241
|
}
|
|
4243
4242
|
const f2 = Ls(a2);
|
|
4244
4243
|
return (t4) => {
|
|
4245
|
-
const e4 = t4 >= 0, n4 = Math.abs(t4), o4 =
|
|
4244
|
+
const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Ps(n4 % r3, f2);
|
|
4246
4245
|
if (!o4) return null;
|
|
4247
4246
|
const s4 = Math.floor(n4 / r3), i4 = o4.length, a3 = o4.start, l3 = (s4 + (e4 ? 1 : 0)) * a3 + (s4 + (e4 ? 0 : 1)) * (r3 - (a3 + i4));
|
|
4248
4247
|
let c3 = t4 + (e4 ? -l3 : l3);
|
|
@@ -4262,12 +4261,12 @@ var Vs, Ws, $s, js, Gs, Us;
|
|
|
4262
4261
|
return o3;
|
|
4263
4262
|
};
|
|
4264
4263
|
})(Vs || (Vs = {})), Ws || (Ws = {}), (js = $s || ($s = {})).Type = { None: "none", Solid: "solid", Gradient: "gradient", Pattern: "pattern", Image: "pattern", Background: "background", Group: "group", Custom: "custom" }, js.GradientType = { Linear: "linear", Path: "path", Circular: "circular", Rect: "rect" }, js.TileMirror = { None: "none", Vertical: "v", Horizontal: "h", Both: "b" }, js.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" }, (Us = Gs || (Gs = {})).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" }, Us.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" }, Us.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" }, Us.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
|
|
4265
|
-
const
|
|
4266
|
-
const
|
|
4264
|
+
const qs = [[4290032820, 1, Gs.Named.ActiveBorder, true], [4288263377, 2, Gs.Named.ActiveCaption, true], [4278190080, 3, Gs.Named.CaptionText, true], [4289440683, 4, Gs.Named.AppWorkspace, true], [4293980400, 5, Gs.Named.BtnFace, true], [4285098345, 6, Gs.Named.BtnShadow, true], [4278190080, 7, Gs.Named.DkShadow3d, true], [4293125091, 8, Gs.Named.BtnHighlight, true], [4293125091, 9, Gs.Named.Light3d, true], [4278190080, 10, Gs.Named.BtnText, true], [4278190080, 11, Gs.Named.Background, true], [4285361517, 12, Gs.Named.GrayText, true], [4281571839, 13, Gs.Named.Highlight, true], [4294967295, 14, Gs.Named.HighlightText, true], [4278216396, 15, Gs.Named.HotLight, true], [4294244348, 16, Gs.Named.InactiveBorder, true], [4290760155, 17, Gs.Named.InactiveCaption, true], [4278190080, 18, Gs.Named.InactiveCaptionText, true], [4294967265, 19, Gs.Named.InfoBk, true], [4278190080, 20, Gs.Named.InfoText, true], [4293980400, 21, Gs.Named.Menu, true], [4278190080, 22, Gs.Named.MenuText, true], [4291348680, 23, Gs.Named.ScrollBar, true], [4294967295, 24, Gs.Named.Window, true], [4284769380, 25, Gs.Named.WindowFrame, true], [4278190080, 26, Gs.Named.WindowText, true], [16777215, 27, Gs.Named.Transparent], [4293982463, 28, Gs.Named.AliceBlue], [4294634455, 29, Gs.Named.AntiqueWhite], [4278255615, 30, Gs.Named.Aqua], [4286578644, 31, Gs.Named.Aquamarine], [4293984255, 32, Gs.Named.Azure], [4294309340, 33, Gs.Named.Beige], [4294960324, 34, Gs.Named.Bisque], [4278190080, 35, Gs.Named.Black], [4294962125, 36, Gs.Named.BlanchedAlmond], [4278190335, 37, Gs.Named.Blue], [4287245282, 38, Gs.Named.BlueViolet], [4289014314, 39, Gs.Named.Brown], [4292786311, 40, Gs.Named.BurlyWood], [4284456608, 41, Gs.Named.CadetBlue], [4286578432, 42, Gs.Named.Chartreuse], [4291979550, 43, Gs.Named.Chocolate], [4294934352, 44, Gs.Named.Coral], [4284782061, 45, Gs.Named.CornflowerBlue], [4294965468, 46, Gs.Named.Cornsilk], [4292613180, 47, Gs.Named.Crimson], [4278255615, 48, Gs.Named.Cyan], [4278190219, 49, Gs.Named.DkBlue], [4278225803, 50, Gs.Named.DkCyan], [4290283019, 51, Gs.Named.DkGoldenrod], [4289309097, 52, Gs.Named.DkGray], [4278215680, 53, Gs.Named.DkGreen], [4290623339, 54, Gs.Named.DkKhaki], [4287299723, 55, Gs.Named.DkMagenta], [4283788079, 56, Gs.Named.DkOliveGreen], [4294937600, 57, Gs.Named.DkOrange], [4288230092, 58, Gs.Named.DkOrchid], [4287299584, 59, Gs.Named.DkRed], [4293498490, 60, Gs.Named.DkSalmon], [4287609995, 61, Gs.Named.DkSeaGreen], [4282924427, 62, Gs.Named.DkSlateBlue], [4281290575, 63, Gs.Named.DkSlateGray], [4278243025, 64, Gs.Named.DkTurquoise], [4287889619, 65, Gs.Named.DkViolet], [4294907027, 66, Gs.Named.DeepPink], [4278239231, 67, Gs.Named.DeepSkyBlue], [4285098345, 68, Gs.Named.DimGray], [4280193279, 69, Gs.Named.DodgerBlue], [4289864226, 70, Gs.Named.Firebrick], [4294966e3, 71, Gs.Named.FloralWhite], [4280453922, 72, Gs.Named.ForestGreen], [4294902015, 73, Gs.Named.Fuchsia], [4292664540, 74, Gs.Named.Gainsboro], [4294506751, 75, Gs.Named.GhostWhite], [4294956800, 76, Gs.Named.Gold], [4292519200, 77, Gs.Named.Goldenrod], [4286611584, 78, Gs.Named.Gray], [4278222848, 79, Gs.Named.Green], [4289593135, 80, Gs.Named.GreenYellow], [4293984240, 81, Gs.Named.Honeydew], [4294928820, 82, Gs.Named.HotPink], [4291648604, 83, Gs.Named.IndianRed], [4283105410, 84, Gs.Named.Indigo], [4294967280, 85, Gs.Named.Ivory], [4293977740, 86, Gs.Named.Khaki], [4293322490, 87, Gs.Named.Lavender], [4294963445, 88, Gs.Named.LavenderBlush], [4286381056, 89, Gs.Named.LawnGreen], [4294965965, 90, Gs.Named.LemonChiffon], [4289583334, 91, Gs.Named.LtBlue], [4293951616, 92, Gs.Named.LtCoral], [4292935679, 93, Gs.Named.LtCyan], [4294638200, 94, Gs.Named.LtGoldenrodYellow], [4292072403, 95, Gs.Named.LtGray], [4287688336, 96, Gs.Named.LtGreen], [4294948545, 97, Gs.Named.LtPink], [4294942842, 98, Gs.Named.LtSalmon], [4280332970, 99, Gs.Named.LtSeaGreen], [4287090426, 100, Gs.Named.LtSkyBlue], [4286023833, 101, Gs.Named.LtSlateGray], [4289774814, 102, Gs.Named.LtSteelBlue], [4294967264, 103, Gs.Named.LtYellow], [4278255360, 104, Gs.Named.Lime], [4281519410, 105, Gs.Named.LimeGreen], [4294635750, 106, Gs.Named.Linen], [4294902015, 107, Gs.Named.Magenta], [4286578688, 108, Gs.Named.Maroon], [4284927402, 109, Gs.Named.MedAquamarine], [4278190285, 110, Gs.Named.MedBlue], [4290401747, 111, Gs.Named.MedOrchid], [4287852763, 112, Gs.Named.MedPurple], [4282168177, 113, Gs.Named.MedSeaGreen], [4286277870, 114, Gs.Named.MedSlateBlue], [4278254234, 115, Gs.Named.MedSpringGreen], [4282962380, 116, Gs.Named.MedTurquoise], [4291237253, 117, Gs.Named.MedVioletRed], [4279834992, 118, Gs.Named.MidnightBlue], [4294311930, 119, Gs.Named.MintCream], [4294960353, 120, Gs.Named.MistyRose], [4294960309, 121, Gs.Named.Moccasin], [4294958765, 122, Gs.Named.NavajoWhite], [4278190208, 123, Gs.Named.Navy], [4294833638, 124, Gs.Named.OldLace], [4286611456, 125, Gs.Named.Olive], [4285238819, 126, Gs.Named.OliveDrab], [4294944e3, 127, Gs.Named.Orange], [4294919424, 128, Gs.Named.OrangeRed], [4292505814, 129, Gs.Named.Orchid], [4293847210, 130, Gs.Named.PaleGoldenrod], [4288215960, 131, Gs.Named.PaleGreen], [4289720046, 132, Gs.Named.PaleTurquoise], [4292571283, 133, Gs.Named.PaleVioletRed], [4294963157, 134, Gs.Named.PapayaWhip], [4294957753, 135, Gs.Named.PeachPuff], [4291659071, 136, Gs.Named.Peru], [4294951115, 137, Gs.Named.Pink], [4292714717, 138, Gs.Named.Plum], [4289781990, 139, Gs.Named.PowderBlue], [4286578816, 140, Gs.Named.Purple], [4294901760, 141, Gs.Named.Red], [4290547599, 142, Gs.Named.RosyBrown], [4282477025, 143, Gs.Named.RoyalBlue], [4287317267, 144, Gs.Named.SaddleBrown], [4294606962, 145, Gs.Named.Salmon], [4294222944, 146, Gs.Named.SandyBrown], [4281240407, 147, Gs.Named.SeaGreen], [4294964718, 148, Gs.Named.SeaShell], [4288696877, 149, Gs.Named.Sienna], [4290822336, 150, Gs.Named.Silver], [4287090411, 151, Gs.Named.SkyBlue], [4285160141, 152, Gs.Named.SlateBlue], [4285563024, 153, Gs.Named.SlateGray], [4294966010, 154, Gs.Named.Snow], [4278255487, 155, Gs.Named.SpringGreen], [4282811060, 156, Gs.Named.SteelBlue], [4291998860, 157, Gs.Named.Tan], [4278222976, 158, Gs.Named.Teal], [4292394968, 159, Gs.Named.Thistle], [4294927175, 160, Gs.Named.Tomato], [4282441936, 161, Gs.Named.Turquoise], [4293821166, 162, Gs.Named.Violet], [4294303411, 163, Gs.Named.Wheat], [4294967295, 164, Gs.Named.White], [4294309365, 165, Gs.Named.WhiteSmoke], [4294967040, 166, Gs.Named.Yellow], [4288335154, 167, Gs.Named.YellowGreen], [4293980400, 168, Gs.Named.ButtonFace], [4294967295, 169, Gs.Named.ButtonHighlight], [4288716960, 170, Gs.Named.ButtonShadow], [4290367978, 171, Gs.Named.GradientActiveCaption], [4292338930, 172, Gs.Named.GradientInactiveCaption], [4293980400, 173, Gs.Named.MenuBar], [4281571839, 174, Gs.Named.MenuHighlight]];
|
|
4265
|
+
const Js = new class {
|
|
4267
4266
|
constructor() {
|
|
4268
4267
|
this._lookupByName = /* @__PURE__ */ new Map();
|
|
4269
|
-
for (let t2 = 0; t2 <
|
|
4270
|
-
const e2 =
|
|
4268
|
+
for (let t2 = 0; t2 < qs.length; t2++) {
|
|
4269
|
+
const e2 = qs[t2], n2 = e2[0], r2 = (n2 >> 24 & 255) / 255, o2 = n2 >> 16 & 255, s2 = n2 >> 8 & 255, i2 = 255 & n2, a2 = { id: e2[1], name: e2[2], rgbaColor: { r: o2, g: s2, b: i2, a: r2 }, system: e2.length > 3 };
|
|
4271
4270
|
this._lookupByName.set(a2.name.toLowerCase(), a2);
|
|
4272
4271
|
}
|
|
4273
4272
|
}
|
|
@@ -4276,9 +4275,9 @@ const qs = new class {
|
|
|
4276
4275
|
}
|
|
4277
4276
|
}(), Ks = [{ scheme: Gs.Scheme.Tx1, description: "First Text Color" }, { scheme: Gs.Scheme.Tx2, description: "Second Text Color" }, { scheme: Gs.Scheme.Bg1, description: "First Background Color" }, { scheme: Gs.Scheme.Bg2, description: "Second Background Color" }, { scheme: Gs.Scheme.Accent1, description: "Accent 1" }, { scheme: Gs.Scheme.Accent2, description: "Accent 2" }, { scheme: Gs.Scheme.Accent3, description: "Accent 3" }, { scheme: Gs.Scheme.Accent4, description: "Accent 4" }, { scheme: Gs.Scheme.Accent5, description: "Accent 5" }, { scheme: Gs.Scheme.Accent6, description: "Accent 6" }, { scheme: Gs.Scheme.Hlink, description: "Hyperlink" }, { scheme: Gs.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" }], Xs = /* @__PURE__ */ new Map();
|
|
4278
4277
|
for (let t2 = 0; t2 < Ks.length; t2++) Xs.set(Ks[t2].scheme.toLowerCase(), Ks[t2]);
|
|
4279
|
-
const Ys = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], alpha: void 0 !== t2.alpha ? t2.alpha : 1 } : null,
|
|
4278
|
+
const Ys = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], alpha: void 0 !== t2.alpha ? t2.alpha : 1 } : null, Zs = function(t2, e2, n2, r2) {
|
|
4280
4279
|
let o2 = Ys(((t3) => {
|
|
4281
|
-
let e3 =
|
|
4280
|
+
let e3 = Js.valueOfName(t3);
|
|
4282
4281
|
return e3 ? new Sr.RGBA(e3.rgbaColor.r, e3.rgbaColor.g, e3.rgbaColor.b, e3.rgbaColor.a) : null;
|
|
4283
4282
|
})(t2)), s2 = null, i2 = null, a2 = null;
|
|
4284
4283
|
if (null === o2 && (l2 = t2, Xs.get(l2.toLowerCase()))) {
|
|
@@ -4324,10 +4323,10 @@ const Ys = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
|
|
|
4324
4323
|
}
|
|
4325
4324
|
if (null === o2) throw new Error("Not a valid color format: " + t2);
|
|
4326
4325
|
return { srgbAlpha: o2, key: s2, color: i2, type: a2 };
|
|
4327
|
-
},
|
|
4326
|
+
}, Qs = /* @__PURE__ */ new Map(), ti = Object.keys(Gs.AdjustmentType), ei = ti.length;
|
|
4328
4327
|
for (let t2 = 0; t2 < ei; t2++) {
|
|
4329
4328
|
const e2 = ti[t2];
|
|
4330
|
-
|
|
4329
|
+
Qs.set(Gs.AdjustmentType[e2].toLowerCase(), Gs.AdjustmentType[e2]);
|
|
4331
4330
|
}
|
|
4332
4331
|
const ni = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), ri = new RegExp("\\s*[,]\\s*|\\s+");
|
|
4333
4332
|
let oi = null;
|
|
@@ -4341,7 +4340,7 @@ class ii {
|
|
|
4341
4340
|
o2 = e3.val, s2 = e3.adjs;
|
|
4342
4341
|
} else t2?.val && (o2 = t2.val, s2 = t2.adjs);
|
|
4343
4342
|
if (!o2) throw new Error("Unable to determine color value");
|
|
4344
|
-
this._private = { val: o2, adjs: s2, schemeLookup: e2, indexedLookup: n2, parsedVal:
|
|
4343
|
+
this._private = { val: o2, adjs: s2, schemeLookup: e2, indexedLookup: n2, parsedVal: Zs(o2, e2, n2), adjusted: null, resolved: null };
|
|
4345
4344
|
}
|
|
4346
4345
|
_parse(t2) {
|
|
4347
4346
|
let e2 = null, n2 = t2.toLowerCase().trim();
|
|
@@ -4351,7 +4350,7 @@ class ii {
|
|
|
4351
4350
|
for (let t3 = 0; t3 < i2; t3++) {
|
|
4352
4351
|
const e3 = s2[t3];
|
|
4353
4352
|
if (!e3) continue;
|
|
4354
|
-
const n3 =
|
|
4353
|
+
const n3 = Qs.get(e3.toLowerCase());
|
|
4355
4354
|
if (!n3) throw new Error("Invalid adjustment type:" + e3);
|
|
4356
4355
|
let r3 = null;
|
|
4357
4356
|
if (n3 === Gs.AdjustmentType.Gray || n3 === Gs.AdjustmentType.Comp || n3 === Gs.AdjustmentType.Inv || n3 === Gs.AdjustmentType.Gamma || n3 === Gs.AdjustmentType.InvGamma) ;
|
|
@@ -4376,10 +4375,10 @@ class ii {
|
|
|
4376
4375
|
const s3 = (t4) => Math.round(Math.max(0, Math.min(255, t4))), i2 = t3[0], a2 = t3[1], l2 = t3[2];
|
|
4377
4376
|
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)];
|
|
4378
4377
|
})(n2, 180), n2 = dr(n2, false);
|
|
4379
|
-
let r2 =
|
|
4378
|
+
let r2 = zn(n2);
|
|
4380
4379
|
const o2 = Gn(r2);
|
|
4381
|
-
if (o2[
|
|
4382
|
-
const s2 = Gn(
|
|
4380
|
+
if (o2[Jn] = 0.95 * o2[Jn], r2 = $n(o2), n2 = Hn(r2), n2 = Dn(n2), n2 = Bn(n2, false), t2) return new Sr.RGBA(n2[0], n2[1], n2[2], e2.alpha);
|
|
4381
|
+
const s2 = Gn(zn(n2));
|
|
4383
4382
|
return new Sr.HSLA(s2[0], s2[1], s2[2], e2.alpha);
|
|
4384
4383
|
}
|
|
4385
4384
|
_resolve() {
|
|
@@ -4388,13 +4387,13 @@ class ii {
|
|
|
4388
4387
|
let t3 = this._private.schemeLookup(this._private.parsedVal.key);
|
|
4389
4388
|
if (t3 === this._private.parsedVal.color || t3?.isEqual(this._private.parsedVal.color)) return;
|
|
4390
4389
|
}
|
|
4391
|
-
const t2 =
|
|
4390
|
+
const t2 = Zs(this._private.val, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
|
|
4392
4391
|
let e2 = ((t3, e3) => {
|
|
4393
4392
|
let n3 = [...t3.srgb], r3 = void 0 !== t3.alpha ? t3.alpha : 1;
|
|
4394
4393
|
const o2 = e3 ? e3.length : 0;
|
|
4395
4394
|
for (var s2 = 0; s2 < o2; s2++) {
|
|
4396
4395
|
const t4 = e3[s2], o3 = Object.keys(t4)[0], i2 = t4[o3];
|
|
4397
|
-
o3 === Gs.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.Hue ? n3 = sr(Un, n3, i2) : o3 === Gs.AdjustmentType.Sat ? n3 = sr(
|
|
4396
|
+
o3 === Gs.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.Hue ? n3 = sr(Un, n3, i2) : o3 === Gs.AdjustmentType.Sat ? n3 = sr(qn, n3, i2) : o3 === Gs.AdjustmentType.Lum ? n3 = sr(Jn, n3, i2) : o3 === Gs.AdjustmentType.HueOff ? n3 = ir(Un, n3, i2) : o3 === Gs.AdjustmentType.SatOff ? n3 = ir(qn, n3, i2) : o3 === Gs.AdjustmentType.LumOff ? n3 = ir(Jn, n3, i2) : o3 === Gs.AdjustmentType.HueMod ? n3 = ar(Un, n3, i2) : o3 === Gs.AdjustmentType.SatMod ? n3 = ar(qn, n3, i2) : o3 === Gs.AdjustmentType.LumMod ? n3 = ar(Jn, n3, i2) : o3 === Gs.AdjustmentType.Red ? n3 = lr(Kn, n3, i2, Zn) : o3 === Gs.AdjustmentType.Green ? n3 = lr(Xn, n3, i2, Zn) : o3 === Gs.AdjustmentType.Blue ? n3 = lr(Yn, n3, i2, Zn) : o3 === Gs.AdjustmentType.RedOff ? n3 = lr(Kn, n3, i2, Qn) : o3 === Gs.AdjustmentType.GreenOff ? n3 = lr(Xn, n3, i2, Qn) : o3 === Gs.AdjustmentType.BlueOff ? n3 = lr(Yn, n3, i2, Qn) : o3 === Gs.AdjustmentType.RedMod ? n3 = lr(Kn, n3, i2, tr) : o3 === Gs.AdjustmentType.GreenMod ? n3 = lr(Xn, n3, i2, tr) : o3 === Gs.AdjustmentType.BlueMod ? n3 = lr(Yn, n3, i2, tr) : o3 === Gs.AdjustmentType.Shade ? n3 = er(n3, i2) : o3 === Gs.AdjustmentType.Tint ? n3 = or(n3, i2) : o3 === Gs.AdjustmentType.ETint ? n3 = rr(n3, i2) : o3 === Gs.AdjustmentType.Gray ? n3 = cr(n3) : o3 === Gs.AdjustmentType.Comp ? n3 = hr(n3) : o3 === Gs.AdjustmentType.Inv ? n3 = dr(n3, i2) : o3 === Gs.AdjustmentType.Gamma ? n3 = ur(n3) : o3 === Gs.AdjustmentType.InvGamma ? n3 = gr(n3) : console.warn("unknown adjustmentType: " + o3);
|
|
4398
4397
|
}
|
|
4399
4398
|
return { srgb: n3, alpha: r3 };
|
|
4400
4399
|
})(t2.srgbAlpha, this._private.adjs), n2 = ((t3, e3 = 255) => {
|
|
@@ -4420,7 +4419,7 @@ class ii {
|
|
|
4420
4419
|
for (let e3 = 0; e3 < l2; e3++) {
|
|
4421
4420
|
const n3 = o3[e3];
|
|
4422
4421
|
if (!n3) continue;
|
|
4423
|
-
const r3 =
|
|
4422
|
+
const r3 = Qs.get(n3.toLowerCase());
|
|
4424
4423
|
if (!r3) throw new Error("Invalid adjustment type:" + n3);
|
|
4425
4424
|
let s3 = null;
|
|
4426
4425
|
if (r3 === Gs.AdjustmentType.Gray || r3 === Gs.AdjustmentType.Comp || r3 === Gs.AdjustmentType.Inv || r3 === Gs.AdjustmentType.Gamma || r3 === Gs.AdjustmentType.InvGamma) ;
|
|
@@ -4600,7 +4599,7 @@ const Mi = (t2, e2, n2, r2, o2) => {
|
|
|
4600
4599
|
};
|
|
4601
4600
|
var Ni, Fi;
|
|
4602
4601
|
(Ni || (Ni = {})).buildPalette = Ti, (Fi || (Fi = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
|
|
4603
|
-
const ki = [["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"]], Oi = [["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"]], Di = [["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"]], Bi = "Themes is readonly. To make modifications create a new DocsThemes instance.", Li = { [Gs.Scheme.Bg1]: "lt1", [Gs.Scheme.Bg2]: "lt2", [Gs.Scheme.Tx1]: "dk1", [Gs.Scheme.Tx2]: "dk2", [Gs.Scheme.Accent1]: "accent1", [Gs.Scheme.Accent2]: "accent2", [Gs.Scheme.Accent3]: "accent3", [Gs.Scheme.Accent4]: "accent4", [Gs.Scheme.Accent5]: "accent5", [Gs.Scheme.Accent6]: "accent6", [Gs.Scheme.Hlink]: "hlink", [Gs.Scheme.FolHlink]: "folHlink" },
|
|
4602
|
+
const ki = [["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"]], Oi = [["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"]], Di = [["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"]], Bi = "Themes is readonly. To make modifications create a new DocsThemes instance.", Li = { [Gs.Scheme.Bg1]: "lt1", [Gs.Scheme.Bg2]: "lt2", [Gs.Scheme.Tx1]: "dk1", [Gs.Scheme.Tx2]: "dk2", [Gs.Scheme.Accent1]: "accent1", [Gs.Scheme.Accent2]: "accent2", [Gs.Scheme.Accent3]: "accent3", [Gs.Scheme.Accent4]: "accent4", [Gs.Scheme.Accent5]: "accent5", [Gs.Scheme.Accent6]: "accent6", [Gs.Scheme.Hlink]: "hlink", [Gs.Scheme.FolHlink]: "folHlink" }, Pi = "Office", zi = [Pi, "Calibri Light", "Calibri"], Hi = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], Vi = (t2) => {
|
|
4604
4603
|
const e2 = {};
|
|
4605
4604
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4606
4605
|
const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
|
|
@@ -4617,12 +4616,12 @@ const ki = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
|
|
|
4617
4616
|
const e2 = {};
|
|
4618
4617
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4619
4618
|
const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
|
|
4620
|
-
e2[o2] = s2, s2.majorFont = r2[1] ??
|
|
4619
|
+
e2[o2] = s2, s2.majorFont = r2[1] ?? zi[1], s2.minorFont = r2[2] ?? zi[2];
|
|
4621
4620
|
}
|
|
4622
4621
|
return e2;
|
|
4623
|
-
}, $i = Vi([[
|
|
4624
|
-
let
|
|
4625
|
-
const
|
|
4622
|
+
}, $i = Vi([[Pi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), ji = Wi([zi]), Gi = $i[Pi], Ui = ji[Pi];
|
|
4623
|
+
let qi = null;
|
|
4624
|
+
const Ji = new class {
|
|
4626
4625
|
constructor() {
|
|
4627
4626
|
this._colors = {};
|
|
4628
4627
|
for (let t2 = 0; t2 < Hi.length; t2++) {
|
|
@@ -4674,7 +4673,7 @@ const qi = new class {
|
|
|
4674
4673
|
}
|
|
4675
4674
|
}();
|
|
4676
4675
|
class Ki {
|
|
4677
|
-
constructor(t2, e2 =
|
|
4676
|
+
constructor(t2, e2 = Ji) {
|
|
4678
4677
|
this._delegate = e2, this._fromJSON(t2);
|
|
4679
4678
|
}
|
|
4680
4679
|
_fromJSON(t2) {
|
|
@@ -4791,13 +4790,13 @@ class Yi {
|
|
|
4791
4790
|
return e2 && (t2.name = e2), t2;
|
|
4792
4791
|
}
|
|
4793
4792
|
}
|
|
4794
|
-
class
|
|
4793
|
+
class Zi {
|
|
4795
4794
|
constructor(t2, e2 = null, n2 = null) {
|
|
4796
4795
|
if (this._cacheColors = /* @__PURE__ */ new Map(), !e2 && t2?.name) {
|
|
4797
|
-
const n3 =
|
|
4796
|
+
const n3 = qi ? qi.get(t2.name.toLowerCase()) : null;
|
|
4798
4797
|
n3 && (e2 = n3);
|
|
4799
4798
|
}
|
|
4800
|
-
if (!e2 &&
|
|
4799
|
+
if (!e2 && qi && (e2 = qi.get(Pi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
|
|
4801
4800
|
this._builtInID = n2, this._delegate = e2, this._colors = new Ki(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Yi(t2?.fonts, this._delegate?.getFontScheme());
|
|
4802
4801
|
const r2 = Li, o2 = {}, s2 = Object.keys(r2);
|
|
4803
4802
|
for (let t3 = 0; t3 < s2.length; t3++) {
|
|
@@ -4842,11 +4841,11 @@ class Qi {
|
|
|
4842
4841
|
const t2 = { name: this.getName() }, e2 = this._colors.toJSON();
|
|
4843
4842
|
e2 && (Object.keys(e2).length > 1 || e2.name && e2.name !== t2.name) && (t2.colors = e2);
|
|
4844
4843
|
const n2 = this._fonts.toJSON();
|
|
4845
|
-
return n2 && (Object.keys(n2).length > 1 || n2.name && n2.name !== t2.name) && (t2.fonts = n2), 1 === Object.keys(t2).length && t2.name ===
|
|
4844
|
+
return n2 && (Object.keys(n2).length > 1 || n2.name && n2.name !== t2.name) && (t2.fonts = n2), 1 === Object.keys(t2).length && t2.name === Pi ? null : t2;
|
|
4846
4845
|
}
|
|
4847
4846
|
}
|
|
4848
|
-
const
|
|
4849
|
-
if (
|
|
4847
|
+
const Qi = () => {
|
|
4848
|
+
if (qi) return qi;
|
|
4850
4849
|
const t2 = ((t3, e3, n2) => {
|
|
4851
4850
|
const r2 = [];
|
|
4852
4851
|
for (let o2 = 0; o2 < t3.length; o2++) {
|
|
@@ -4856,14 +4855,14 @@ const Zi = () => {
|
|
|
4856
4855
|
return r2;
|
|
4857
4856
|
})(Di, Vi(ki), Wi(Oi)), e2 = /* @__PURE__ */ new Map();
|
|
4858
4857
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4859
|
-
const r2 = new
|
|
4858
|
+
const r2 = new Zi(t2[n2]), o2 = new Zi(null, r2, n2 + 1);
|
|
4860
4859
|
e2.set(o2.getName().toLowerCase(), o2);
|
|
4861
4860
|
}
|
|
4862
|
-
return
|
|
4861
|
+
return qi = e2, e2;
|
|
4863
4862
|
};
|
|
4864
4863
|
class ta {
|
|
4865
4864
|
constructor(t2 = null, e2 = false) {
|
|
4866
|
-
|
|
4865
|
+
Qi(), this._isReadOnly = e2, this._customMap = /* @__PURE__ */ new Map(), this._defaultTheme = this.getByName("Office");
|
|
4867
4866
|
}
|
|
4868
4867
|
getDefaultTheme() {
|
|
4869
4868
|
return this._defaultTheme;
|
|
@@ -4877,18 +4876,18 @@ class ta {
|
|
|
4877
4876
|
getByName(t2) {
|
|
4878
4877
|
t2 = t2.toLowerCase();
|
|
4879
4878
|
const e2 = this._customMap.get(t2);
|
|
4880
|
-
return e2 || (
|
|
4879
|
+
return e2 || (qi.get(t2) ?? null);
|
|
4881
4880
|
}
|
|
4882
4881
|
getItems(t2) {
|
|
4883
4882
|
const e2 = t2?.type ?? Fi.BuiltInFilterType.All, n2 = /* @__PURE__ */ new Map();
|
|
4884
|
-
e2 !== Fi.BuiltInFilterType.BuiltIn && e2 !== Fi.BuiltInFilterType.All ||
|
|
4883
|
+
e2 !== Fi.BuiltInFilterType.BuiltIn && e2 !== Fi.BuiltInFilterType.All || qi.forEach((t3, e3) => n2.set(e3, t3)), e2 !== Fi.BuiltInFilterType.Custom && e2 !== Fi.BuiltInFilterType.All || this._customMap.forEach((t3, e3) => n2.set(e3, t3)), t2?.selected && n2.set(t2.selected.getName().toLowerCase(), t2.selected);
|
|
4885
4884
|
return ((t3) => {
|
|
4886
4885
|
const e3 = [...t3];
|
|
4887
4886
|
return e3.sort((t4, e4) => o.isDefined(t4.builtInID) && !o.isDefined(e4.builtInID) ? 1 : !o.isDefined(t4.builtInID) && o.isDefined(e4.builtInID) ? -1 : o.isDefined(t4.builtInID) && o.isDefined(e4.builtInID) ? t4.builtInID - e4.builtInID : t4.getName().localeCompare(e4.getName())), e3;
|
|
4888
4887
|
})(Array.from(n2.values()));
|
|
4889
4888
|
}
|
|
4890
4889
|
getCount() {
|
|
4891
|
-
return this._customMap.size +
|
|
4890
|
+
return this._customMap.size + qi.size;
|
|
4892
4891
|
}
|
|
4893
4892
|
setCustomTheme(t2) {
|
|
4894
4893
|
if (this._isReadOnly) throw new Error(Bi);
|
|
@@ -5712,8 +5711,8 @@ class Ia {
|
|
|
5712
5711
|
if (void 0 === e2 && (e2 = o2 + 1), 0 === this._count || t2 <= r2 && e2 - 1 >= o2) return this.clone();
|
|
5713
5712
|
const s2 = Math.max(r2, t2), i2 = Math.min(o2, e2 - 1), a2 = i2 - s2, l2 = [];
|
|
5714
5713
|
let c2 = 0;
|
|
5715
|
-
|
|
5716
|
-
const h2 = this.runs(
|
|
5714
|
+
za.bounds.min = s2, za.bounds.max = i2;
|
|
5715
|
+
const h2 = this.runs(za);
|
|
5717
5716
|
let d2 = h2.next();
|
|
5718
5717
|
for (; !d2.done; ) {
|
|
5719
5718
|
const t3 = d2.value;
|
|
@@ -5836,7 +5835,7 @@ class Ia {
|
|
|
5836
5835
|
if (n3 <= t2 && e2.max >= t2) return this._lastListRead.at(t2 - n3);
|
|
5837
5836
|
}
|
|
5838
5837
|
let n2, r2;
|
|
5839
|
-
const o2 = this._runs.getPairOrNextHigher(Ba,
|
|
5838
|
+
const o2 = this._runs.getPairOrNextHigher(Ba, Pa);
|
|
5840
5839
|
if (o2 && (n2 = o2[0], r2 = o2[1]), this._lastRunsRead = n2, this._lastListRead = r2, !(!n2 || t2 < n2.min || t2 > n2.max)) return r2.at(t2 - n2.min);
|
|
5841
5840
|
}
|
|
5842
5841
|
[Symbol.iterator]() {
|
|
@@ -5880,7 +5879,7 @@ const Ra = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1,
|
|
|
5880
5879
|
}
|
|
5881
5880
|
if (e2) for (let t3 = i2; t3 < n2; t3++) o2.push(void 0);
|
|
5882
5881
|
return o2;
|
|
5883
|
-
}, Fa = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), ka = Object.seal({ done: false, value: [-1, null] }), Oa = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ka }, Da = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ka }), Ba = { min: 0, max: Number.MAX_SAFE_INTEGER }, La = { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
5882
|
+
}, Fa = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), ka = Object.seal({ done: false, value: [-1, null] }), Oa = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ka }, Da = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ka }), Ba = { min: 0, max: Number.MAX_SAFE_INTEGER }, La = { min: 0, max: Number.MAX_SAFE_INTEGER }, Pa = [null, null], za = { bounds: { min: 0, max: 0 }, overflowRun: true };
|
|
5884
5883
|
class Ha {
|
|
5885
5884
|
constructor(t2 = 9) {
|
|
5886
5885
|
this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
|
|
@@ -5894,13 +5893,13 @@ class Ha {
|
|
|
5894
5893
|
search(t2, e2) {
|
|
5895
5894
|
let n2 = this.data;
|
|
5896
5895
|
if (0 === n2.children.length) return o.EmptyArray;
|
|
5897
|
-
if (!
|
|
5896
|
+
if (!Za(t2, n2)) return o.EmptyArray;
|
|
5898
5897
|
const r2 = e2 ?? [], s2 = this.toBBox, i2 = [];
|
|
5899
5898
|
for (; n2; ) {
|
|
5900
5899
|
const e3 = n2.children, o2 = e3.length, a2 = n2.leaf;
|
|
5901
5900
|
for (let n3 = 0; n3 < o2; n3++) {
|
|
5902
5901
|
const o3 = e3[n3], l2 = a2 ? s2(o3) : o3;
|
|
5903
|
-
|
|
5902
|
+
Za(t2, l2) && (a2 ? r2.push(o3) : Ya(t2, l2) ? this._all(o3, r2) : i2.push(o3));
|
|
5904
5903
|
}
|
|
5905
5904
|
n2 = i2.pop();
|
|
5906
5905
|
}
|
|
@@ -5908,12 +5907,12 @@ class Ha {
|
|
|
5908
5907
|
}
|
|
5909
5908
|
collides(t2) {
|
|
5910
5909
|
let e2 = this.data;
|
|
5911
|
-
if (!
|
|
5910
|
+
if (!Za(t2, e2)) return false;
|
|
5912
5911
|
const n2 = [];
|
|
5913
5912
|
for (; e2; ) {
|
|
5914
5913
|
for (let r2 = 0; r2 < e2.children.length; r2++) {
|
|
5915
5914
|
const o2 = e2.children[r2], s2 = e2.leaf ? this.toBBox(o2) : o2;
|
|
5916
|
-
if (
|
|
5915
|
+
if (Za(t2, s2)) {
|
|
5917
5916
|
if (e2.leaf || Ya(t2, s2)) return true;
|
|
5918
5917
|
n2.push(o2);
|
|
5919
5918
|
}
|
|
@@ -5945,7 +5944,7 @@ class Ha {
|
|
|
5945
5944
|
return t2 && this._insert(t2, this.data.height - 1), this;
|
|
5946
5945
|
}
|
|
5947
5946
|
clear() {
|
|
5948
|
-
return this.data =
|
|
5947
|
+
return this.data = Qa([]), this;
|
|
5949
5948
|
}
|
|
5950
5949
|
remove(t2, e2) {
|
|
5951
5950
|
if (!t2) return this;
|
|
@@ -5984,8 +5983,8 @@ class Ha {
|
|
|
5984
5983
|
_build(t2, e2, n2, r2) {
|
|
5985
5984
|
const o2 = n2 - e2 + 1;
|
|
5986
5985
|
let s2, i2 = this._maxEntries;
|
|
5987
|
-
if (o2 <= i2) return s2 =
|
|
5988
|
-
r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 =
|
|
5986
|
+
if (o2 <= i2) return s2 = Qa(t2.slice(e2, n2 + 1)), Wa(s2, this.toBBox), s2;
|
|
5987
|
+
r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 = Qa([]), s2.leaf = false, s2.height = r2;
|
|
5989
5988
|
const a2 = Math.ceil(o2 / i2), l2 = a2 * Math.ceil(Math.sqrt(i2));
|
|
5990
5989
|
tl(t2, e2, n2, l2, this.compareMinX);
|
|
5991
5990
|
for (let o3 = e2; o3 <= n2; o3 += l2) {
|
|
@@ -6002,7 +6001,7 @@ class Ha {
|
|
|
6002
6001
|
for (; r2.push(e2), !e2.leaf && r2.length - 1 !== n2; ) {
|
|
6003
6002
|
let n3, r3 = 1 / 0, o2 = 1 / 0;
|
|
6004
6003
|
for (let s2 = 0; s2 < e2.children.length; s2++) {
|
|
6005
|
-
const i2 = e2.children[s2], a2 =
|
|
6004
|
+
const i2 = e2.children[s2], a2 = qa(i2), l2 = Ka(t2, i2) - a2;
|
|
6006
6005
|
l2 < o2 ? (o2 = l2, r3 = a2 < r3 ? a2 : r3, n3 = i2) : l2 === o2 && a2 < r3 && (r3 = a2, n3 = i2);
|
|
6007
6006
|
}
|
|
6008
6007
|
e2 = n3 || e2.children[0];
|
|
@@ -6017,16 +6016,16 @@ class Ha {
|
|
|
6017
6016
|
_split(t2, e2) {
|
|
6018
6017
|
const n2 = t2[e2], r2 = n2.children.length, o2 = this._minEntries;
|
|
6019
6018
|
this._chooseSplitAxis(n2, o2, r2);
|
|
6020
|
-
const s2 = this._chooseSplitIndex(n2, o2, r2), i2 =
|
|
6019
|
+
const s2 = this._chooseSplitIndex(n2, o2, r2), i2 = Qa(n2.children.splice(s2, n2.children.length - s2));
|
|
6021
6020
|
i2.height = n2.height, i2.leaf = n2.leaf, Wa(n2, this.toBBox), Wa(i2, this.toBBox), e2 ? t2[e2 - 1].children.push(i2) : this._splitRoot(n2, i2);
|
|
6022
6021
|
}
|
|
6023
6022
|
_splitRoot(t2, e2) {
|
|
6024
|
-
this.data =
|
|
6023
|
+
this.data = Qa([t2, e2]), this.data.height = t2.height + 1, this.data.leaf = false, Wa(this.data, this.toBBox);
|
|
6025
6024
|
}
|
|
6026
6025
|
_chooseSplitIndex(t2, e2, n2) {
|
|
6027
6026
|
let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
|
|
6028
6027
|
for (let i2 = e2; i2 <= n2 - e2; i2++) {
|
|
6029
|
-
const e3 = $a(t2, 0, i2, this.toBBox), a2 = $a(t2, i2, n2, this.toBBox), l2 = Xa(e3, a2), c2 =
|
|
6028
|
+
const e3 = $a(t2, 0, i2, this.toBBox), a2 = $a(t2, i2, n2, this.toBBox), l2 = Xa(e3, a2), c2 = qa(e3) + qa(a2);
|
|
6030
6029
|
l2 < o2 ? (o2 = l2, r2 = i2, s2 = c2 < s2 ? c2 : s2) : l2 === o2 && c2 < s2 && (s2 = c2, r2 = i2);
|
|
6031
6030
|
}
|
|
6032
6031
|
return r2 || n2 - e2;
|
|
@@ -6038,14 +6037,14 @@ class Ha {
|
|
|
6038
6037
|
_allDistMargin(t2, e2, n2, r2) {
|
|
6039
6038
|
t2.children.sort(r2);
|
|
6040
6039
|
const o2 = this.toBBox, s2 = $a(t2, 0, e2, o2), i2 = $a(t2, n2 - e2, n2, o2);
|
|
6041
|
-
let a2 =
|
|
6040
|
+
let a2 = Ja(s2) + Ja(i2);
|
|
6042
6041
|
for (let r3 = e2; r3 < n2 - e2; r3++) {
|
|
6043
6042
|
const e3 = t2.children[r3];
|
|
6044
|
-
ja(s2, t2.leaf ? o2(e3) : e3), a2 +=
|
|
6043
|
+
ja(s2, t2.leaf ? o2(e3) : e3), a2 += Ja(s2);
|
|
6045
6044
|
}
|
|
6046
6045
|
for (let r3 = n2 - e2 - 1; r3 >= e2; r3--) {
|
|
6047
6046
|
const e3 = t2.children[r3];
|
|
6048
|
-
ja(i2, t2.leaf ? o2(e3) : e3), a2 +=
|
|
6047
|
+
ja(i2, t2.leaf ? o2(e3) : e3), a2 += Ja(i2);
|
|
6049
6048
|
}
|
|
6050
6049
|
return a2;
|
|
6051
6050
|
}
|
|
@@ -6065,7 +6064,7 @@ function Wa(t2, e2) {
|
|
|
6065
6064
|
$a(t2, 0, t2.children.length, e2, t2);
|
|
6066
6065
|
}
|
|
6067
6066
|
function $a(t2, e2, n2, r2, o2 = null) {
|
|
6068
|
-
o2 || (o2 =
|
|
6067
|
+
o2 || (o2 = Qa(null)), o2.minX = 1 / 0, o2.minY = 1 / 0, o2.maxX = -1 / 0, o2.maxY = -1 / 0;
|
|
6069
6068
|
for (let s2 = e2; s2 < n2; s2++) {
|
|
6070
6069
|
const e3 = t2.children[s2];
|
|
6071
6070
|
ja(o2, t2.leaf ? r2(e3) : e3);
|
|
@@ -6081,10 +6080,10 @@ function Ga(t2, e2) {
|
|
|
6081
6080
|
function Ua(t2, e2) {
|
|
6082
6081
|
return t2.minY - e2.minY;
|
|
6083
6082
|
}
|
|
6084
|
-
function
|
|
6083
|
+
function qa(t2) {
|
|
6085
6084
|
return (t2.maxX - t2.minX) * (t2.maxY - t2.minY);
|
|
6086
6085
|
}
|
|
6087
|
-
function
|
|
6086
|
+
function Ja(t2) {
|
|
6088
6087
|
return t2.maxX - t2.minX + (t2.maxY - t2.minY);
|
|
6089
6088
|
}
|
|
6090
6089
|
function Ka(t2, e2) {
|
|
@@ -6097,10 +6096,10 @@ function Xa(t2, e2) {
|
|
|
6097
6096
|
function Ya(t2, e2) {
|
|
6098
6097
|
return t2.minX <= e2.minX && t2.minY <= e2.minY && e2.maxX <= t2.maxX && e2.maxY <= t2.maxY;
|
|
6099
6098
|
}
|
|
6100
|
-
function
|
|
6099
|
+
function Za(t2, e2) {
|
|
6101
6100
|
return e2.minX <= t2.maxX && e2.minY <= t2.maxY && e2.maxX >= t2.minX && e2.maxY >= t2.minY;
|
|
6102
6101
|
}
|
|
6103
|
-
function
|
|
6102
|
+
function Qa(t2) {
|
|
6104
6103
|
return { children: t2, height: 1, leaf: true, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
|
|
6105
6104
|
}
|
|
6106
6105
|
function tl(t2, e2, n2, r2, o2) {
|
|
@@ -6979,8 +6978,8 @@ class kl {
|
|
|
6979
6978
|
p2 = t2.reverse ?? false, h2 = /* @__PURE__ */ ((t3) => "boolean" != typeof t3 ? t3 : true === t3 ? { done: false, value: [{ colIndex: -1, rowIndex: -1 }, null] } : void 0)(t2.reuseResult), a2 = e2 ? t2.processColumnSkip : t2.processRowSkip, a2 && (p2 ? u2 = a2(u2, p2) : d2 = a2(d2, p2)), c2 = e2 ? t2.processRowSkip : t2.processColumnSkip, c2 && (p2 ? f2 = c2(u2, p2) : g2 = c2(g2, p2));
|
|
6980
6979
|
}
|
|
6981
6980
|
if (!s2) return fa;
|
|
6982
|
-
r2 || d2 !== u2 || (r2 = true),
|
|
6983
|
-
let _2 = this._major.entries(
|
|
6981
|
+
r2 || d2 !== u2 || (r2 = true), zl.bounds.min = d2, zl.bounds.max = u2, zl.reverse = p2, zl.processSkip = a2, zl.reuseResult = Ll;
|
|
6982
|
+
let _2 = this._major.entries(zl), S2 = Hl();
|
|
6984
6983
|
const w2 = (t3) => {
|
|
6985
6984
|
if (!t3.nextActive) return;
|
|
6986
6985
|
const e3 = (e4) => {
|
|
@@ -6995,8 +6994,8 @@ class kl {
|
|
|
6995
6994
|
const e3 = _2.next();
|
|
6996
6995
|
if (e3.done) return void (_2 = void 0);
|
|
6997
6996
|
const n3 = e3.value, r3 = n3[1];
|
|
6998
|
-
r3 || console.warn("issue", r3), t3.majorIndex = n3[0], t3.active = true, t3.nextActive = false,
|
|
6999
|
-
const o3 = r3.entries(
|
|
6997
|
+
r3 || console.warn("issue", r3), t3.majorIndex = n3[0], t3.active = true, t3.nextActive = false, Pl.bounds.min = g2, Pl.bounds.max = f2, Pl.reverse = p2, Pl.processSkip = c2, Pl.reuseResult = Bl;
|
|
6998
|
+
const o3 = r3.entries(Pl), s3 = o3.next();
|
|
7000
6999
|
if (!s3.done) {
|
|
7001
7000
|
const e4 = s3.value;
|
|
7002
7001
|
return t3.nextMinorIndex = e4[0], t3.nextMinorValue = e4[1], t3.minorIterator = o3, t3.nextActive = true, w2(t3);
|
|
@@ -7118,8 +7117,8 @@ class kl {
|
|
|
7118
7117
|
const e3 = t2[_2], n3 = e3[0], r3 = e3[1], o3 = new Ia(p2);
|
|
7119
7118
|
m2(o3, r3, n3);
|
|
7120
7119
|
}, w2 = this._major;
|
|
7121
|
-
|
|
7122
|
-
const y2 = w2.entries(
|
|
7120
|
+
zl.bounds.min = e2, zl.bounds.max = n2, zl.reverse = false, zl.processSkip = null, zl.reuseResult = Ll;
|
|
7121
|
+
const y2 = w2.entries(zl);
|
|
7123
7122
|
let E2 = y2.next();
|
|
7124
7123
|
for (; !E2.done; ) {
|
|
7125
7124
|
const e3 = E2.value, n3 = e3[0];
|
|
@@ -7165,8 +7164,8 @@ class kl {
|
|
|
7165
7164
|
let f2 = false, p2 = 0;
|
|
7166
7165
|
const _2 = this._major;
|
|
7167
7166
|
if (l2 <= g2 && h2 >= m2) {
|
|
7168
|
-
|
|
7169
|
-
const t3 = _2.entries(
|
|
7167
|
+
zl.bounds.min = i2, zl.bounds.max = a2;
|
|
7168
|
+
const t3 = _2.entries(zl);
|
|
7170
7169
|
let e3 = t3.next();
|
|
7171
7170
|
for (; !e3.done; ) {
|
|
7172
7171
|
p2 -= e3.value[1].getCount(), e3 = t3.next();
|
|
@@ -7174,8 +7173,8 @@ class kl {
|
|
|
7174
7173
|
return _2.delete(i2, a2 - i2 + 1), this._count += p2, this._dataCoords = null, 0 !== p2;
|
|
7175
7174
|
}
|
|
7176
7175
|
const S2 = [], w2 = this._isShared, y2 = [];
|
|
7177
|
-
|
|
7178
|
-
const E2 = _2.entries(
|
|
7176
|
+
zl.bounds.min = i2, zl.bounds.max = a2, Pl.reverse = false, Pl.processSkip = null, Pl.reuseResult = Ll;
|
|
7177
|
+
const E2 = _2.entries(zl);
|
|
7179
7178
|
let C2 = E2.next();
|
|
7180
7179
|
for (; !C2.done; ) {
|
|
7181
7180
|
const t3 = C2.value, e3 = t3[0];
|
|
@@ -7218,10 +7217,10 @@ class kl {
|
|
|
7218
7217
|
if (!o2 && (C2 *= -1, c.isRangeWithinRange(f2, t2))) return this.clear(), true;
|
|
7219
7218
|
let b2 = 0;
|
|
7220
7219
|
const v2 = this._major, x2 = [];
|
|
7221
|
-
if (
|
|
7220
|
+
if (zl.bounds.min = a2, zl.bounds.max = E2 ? Number.MAX_SAFE_INTEGER : l2, Pl.reverse = !o2, Pl.processSkip = null, Pl.reuseResult = Ll, E2 && y2) {
|
|
7222
7221
|
if (!o2) {
|
|
7223
|
-
|
|
7224
|
-
const t4 = v2.entries(
|
|
7222
|
+
zl.bounds.max = l2;
|
|
7223
|
+
const t4 = v2.entries(zl);
|
|
7225
7224
|
let e3 = t4.next();
|
|
7226
7225
|
for (; !e3.done; ) {
|
|
7227
7226
|
b2 -= e3.value[1].getCount(), e3 = t4.next();
|
|
@@ -7235,7 +7234,7 @@ class kl {
|
|
|
7235
7234
|
o2 || (A2 = Number.MAX_SAFE_INTEGER, M2 = Number.MIN_SAFE_INTEGER);
|
|
7236
7235
|
let T2 = Number.MAX_SAFE_INTEGER;
|
|
7237
7236
|
r2 && (T2 = s2 ? r2.colEnd : r2.rowEnd);
|
|
7238
|
-
const N2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(
|
|
7237
|
+
const N2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(zl), D2 = { bounds: { min: g2, max: m2 } };
|
|
7239
7238
|
let B2 = O2.next();
|
|
7240
7239
|
for (; !B2.done; ) {
|
|
7241
7240
|
const t3 = B2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
|
|
@@ -7257,13 +7256,13 @@ class kl {
|
|
|
7257
7256
|
B2 = O2.next();
|
|
7258
7257
|
}
|
|
7259
7258
|
const L2 = this._optionsMinor;
|
|
7260
|
-
let
|
|
7259
|
+
let P2 = false;
|
|
7261
7260
|
for (let t3 = 0; t3 < k2.length; t3++) {
|
|
7262
7261
|
const e3 = k2[t3], n3 = e3.majorIndex, r3 = e3.run;
|
|
7263
7262
|
let o3 = F2.get(n3);
|
|
7264
|
-
o3 || (o3 = new Ia(L2), F2.set(n3, o3), x2.push([n3, o3]),
|
|
7263
|
+
o3 || (o3 = new Ia(L2), F2.set(n3, o3), x2.push([n3, o3]), P2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), N2 && N2.delete(n3);
|
|
7265
7264
|
}
|
|
7266
|
-
if (this._updateMajorSpan(x2,
|
|
7265
|
+
if (this._updateMajorSpan(x2, P2), N2 && N2.size > 0) {
|
|
7267
7266
|
const t3 = Array.from(N2.values()), e3 = Ds(t3);
|
|
7268
7267
|
for (let t4 = 0; t4 < e3.length; t4++) {
|
|
7269
7268
|
const n4 = e3[t4];
|
|
@@ -7353,7 +7352,7 @@ class kl {
|
|
|
7353
7352
|
kl || (kl = {});
|
|
7354
7353
|
const Ol = 12;
|
|
7355
7354
|
Object.seal({ done: false, value: null });
|
|
7356
|
-
const Dl = [-1, -1, null], Bl = Object.seal({ done: false, value: [-1, null] }), Ll = Object.seal({ done: false, value: [-1, null] }),
|
|
7355
|
+
const Dl = [-1, -1, null], Bl = Object.seal({ done: false, value: [-1, null] }), Ll = Object.seal({ done: false, value: [-1, null] }), Pl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Bl }, zl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Ll }, Hl = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: false, nextMinorIndex: -1, nextActive: false, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
|
|
7357
7356
|
class Vl {
|
|
7358
7357
|
constructor(t2) {
|
|
7359
7358
|
if (this._l = 0, this._at = null, this._dt = oc.Undefined, this._a32 = null, this._a64 = null, this._cv = null, this._vt = null, this._vi32 = null, this._vi64 = null, this._vf32 = null, this._vf64 = null, !t2) throw new Error("options is required");
|
|
@@ -7380,16 +7379,16 @@ class Vl {
|
|
|
7380
7379
|
return o2 ? this._vf64[t2] : this._vf32[t2];
|
|
7381
7380
|
case Gl:
|
|
7382
7381
|
return !!r2;
|
|
7383
|
-
case
|
|
7382
|
+
case Jl:
|
|
7384
7383
|
case Kl:
|
|
7385
7384
|
return this._cv(n2, o2 ? Number(r2) : r2);
|
|
7386
7385
|
case Ul:
|
|
7387
7386
|
return this._vi64[o2 ? t2 : r2];
|
|
7388
|
-
case
|
|
7387
|
+
case ql:
|
|
7389
7388
|
return this._vf64[o2 ? t2 : r2];
|
|
7390
|
-
case Ql:
|
|
7391
|
-
return Number.NaN;
|
|
7392
7389
|
case Zl:
|
|
7390
|
+
return Number.NaN;
|
|
7391
|
+
case Ql:
|
|
7393
7392
|
return Number.MAX_SAFE_INTEGER;
|
|
7394
7393
|
case tc:
|
|
7395
7394
|
return Number.MIN_SAFE_INTEGER;
|
|
@@ -7435,7 +7434,7 @@ class Vl {
|
|
|
7435
7434
|
let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = sc(t2[0], r2);
|
|
7436
7435
|
for (let e3 = 0; e3 < s2; e3++) {
|
|
7437
7436
|
const n3 = t2[e3], o3 = sc(n3, r2);
|
|
7438
|
-
o3 !==
|
|
7437
|
+
o3 !== ql && o3 !== Ul || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
|
|
7439
7438
|
}
|
|
7440
7439
|
c2 || (a2 = null, i2 = null);
|
|
7441
7440
|
let d2, u2, g2, m2, f2, p2, _2, S2, w2 = false;
|
|
@@ -7456,10 +7455,10 @@ class Vl {
|
|
|
7456
7455
|
case Ul:
|
|
7457
7456
|
d2[n3] = r3;
|
|
7458
7457
|
break;
|
|
7459
|
-
case
|
|
7458
|
+
case ql:
|
|
7460
7459
|
u2[n3] = r3;
|
|
7461
7460
|
break;
|
|
7462
|
-
case
|
|
7461
|
+
case Jl:
|
|
7463
7462
|
case Kl:
|
|
7464
7463
|
d2[n3] = BigInt(e2?.(y2, r3) ?? 0);
|
|
7465
7464
|
break;
|
|
@@ -7484,10 +7483,10 @@ class Vl {
|
|
|
7484
7483
|
case Ul:
|
|
7485
7484
|
_2[r3] = n3, m2[n3] = o3, n3++;
|
|
7486
7485
|
break;
|
|
7487
|
-
case
|
|
7486
|
+
case ql:
|
|
7488
7487
|
_2[r3] = n3, f2[n3] = o3, n3++;
|
|
7489
7488
|
break;
|
|
7490
|
-
case
|
|
7489
|
+
case Jl:
|
|
7491
7490
|
case Kl:
|
|
7492
7491
|
d2[r3] = e2?.(y2, o3) ?? 0;
|
|
7493
7492
|
break;
|
|
@@ -7499,20 +7498,20 @@ class Vl {
|
|
|
7499
7498
|
return new Vl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
|
|
7500
7499
|
}
|
|
7501
7500
|
}
|
|
7502
|
-
const Wl = 0.1, $l = 1, jl = 2, Gl = 3, Ul = 4,
|
|
7501
|
+
const Wl = 0.1, $l = 1, jl = 2, Gl = 3, Ul = 4, ql = 5, Jl = 6, Kl = 7, Xl = 8, Yl = 9, Zl = 10, Ql = 11, tc = 12, ec = 13, nc = 14, rc = 127, oc = { Undefined: nc }, sc = (t2, e2) => {
|
|
7503
7502
|
switch (typeof t2) {
|
|
7504
7503
|
case "number":
|
|
7505
7504
|
const n2 = t2;
|
|
7506
|
-
if (Number.isNaN(n2)) return
|
|
7505
|
+
if (Number.isNaN(n2)) return Zl;
|
|
7507
7506
|
if (n2 === 1 / 0) return Xl;
|
|
7508
7507
|
if (n2 === -1 / 0) return Yl;
|
|
7509
7508
|
if (Object.is(n2, -0)) return jl;
|
|
7510
|
-
if (n2 === Number.MAX_SAFE_INTEGER) return
|
|
7509
|
+
if (n2 === Number.MAX_SAFE_INTEGER) return Ql;
|
|
7511
7510
|
if (n2 === Number.MIN_SAFE_INTEGER) return tc;
|
|
7512
7511
|
if (Number.isInteger(n2) && n2 <= 2147483647 && n2 >= -2147483648) return $l;
|
|
7513
|
-
return Math.fround(n2) === n2 ? jl :
|
|
7512
|
+
return Math.fround(n2) === n2 ? jl : ql;
|
|
7514
7513
|
case "string":
|
|
7515
|
-
return
|
|
7514
|
+
return Jl;
|
|
7516
7515
|
case "boolean":
|
|
7517
7516
|
return Gl;
|
|
7518
7517
|
case "object":
|
|
@@ -8191,7 +8190,7 @@ const fc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
|
|
|
8191
8190
|
const i2 = n2.getOrientation() === e.Orientation.Column, a2 = Al(s2, i2, wl(r2?.colStart ?? 0, r2?.rowStart ?? 0, void 0, void 0, i2), true), l2 = yl(a2.bounds, i2);
|
|
8192
8191
|
n2.setValues(a2.tuples);
|
|
8193
8192
|
return new mc(n2, l2, o2, !r2);
|
|
8194
|
-
}, Tc = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), Nc = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), Fc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), kc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), Oc = /\s+/g, Dc = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, Bc = /[\uE000-\uF8FF]/g, Lc = "#REF!",
|
|
8193
|
+
}, Tc = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), Nc = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), Fc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), kc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), Oc = /\s+/g, Dc = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, Bc = /[\uE000-\uF8FF]/g, Lc = "#REF!", Pc = Math.pow(2, 14), zc = Math.pow(2, 20);
|
|
8195
8194
|
let Hc, Vc;
|
|
8196
8195
|
const Wc = (t2) => (Hc === t2 || (Vc = "" + (t2 + 1), Hc = t2), Vc);
|
|
8197
8196
|
let $c, jc;
|
|
@@ -8201,18 +8200,18 @@ const Gc = (t2) => {
|
|
|
8201
8200
|
let e2 = "";
|
|
8202
8201
|
for (++t2; t2; t2 = Math.floor((t2 - 1) / 26)) e2 = String.fromCharCode((t2 - 1) % 26 + 65) + e2;
|
|
8203
8202
|
return jc = e2, jc;
|
|
8204
|
-
}, Uc = /[^a-zA-Z0-9]/,
|
|
8203
|
+
}, Uc = /[^a-zA-Z0-9]/, qc = (t2) => {
|
|
8205
8204
|
if (!t2) return null;
|
|
8206
8205
|
return Gc(t2.colIndex) + Wc(t2.rowIndex);
|
|
8207
|
-
},
|
|
8206
|
+
}, Jc = (t2) => {
|
|
8208
8207
|
if (!t2) return Lc;
|
|
8209
8208
|
const e2 = Gc(t2.colIndex), n2 = Wc(t2.rowIndex);
|
|
8210
8209
|
return (t2.$colIndex ? "$" + e2 : e2) + (t2.$rowIndex ? "$" + n2 : n2);
|
|
8211
8210
|
}, Kc = (t2, e2) => {
|
|
8212
8211
|
let n2 = t2 ?? e2;
|
|
8213
8212
|
var r2;
|
|
8214
|
-
return n2 && (n2 =
|
|
8215
|
-
}, Xc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Lc, Yc = (t2, e2, n2 =
|
|
8213
|
+
return n2 && (n2 = Po(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, Uc.test(r2) && (n2 = zo(n2))), n2;
|
|
8214
|
+
}, Xc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Lc, Yc = (t2, e2, n2 = qc) => {
|
|
8216
8215
|
if (!t2) return null;
|
|
8217
8216
|
const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
|
|
8218
8217
|
if (r2 === s2 && o2 === i2) return n2({ colIndex: r2, rowIndex: o2 });
|
|
@@ -8222,7 +8221,7 @@ const Gc = (t2) => {
|
|
|
8222
8221
|
c2 = l2 ? Gc(r2) : a2 ? Wc(o2) : n2({ colIndex: r2, rowIndex: o2 });
|
|
8223
8222
|
let h2 = null;
|
|
8224
8223
|
return h2 = l2 ? Gc(s2) : a2 ? Wc(i2) : n2({ colIndex: s2, rowIndex: i2 }), c2 + ":" + h2;
|
|
8225
|
-
},
|
|
8224
|
+
}, Zc = (t2, e2, n2 = Jc) => {
|
|
8226
8225
|
if (!t2) return Lc;
|
|
8227
8226
|
const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
|
|
8228
8227
|
let i2 = null;
|
|
@@ -8231,7 +8230,7 @@ const Gc = (t2) => {
|
|
|
8231
8230
|
i2 = Xc(n3, i2);
|
|
8232
8231
|
}
|
|
8233
8232
|
return i2;
|
|
8234
|
-
},
|
|
8233
|
+
}, Qc = (t2, e2, n2 = Jc) => {
|
|
8235
8234
|
if (!t2) return Lc;
|
|
8236
8235
|
const r2 = void 0 !== t2.rowStart && t2.rowStart === t2.rowEnd;
|
|
8237
8236
|
if (void 0 !== t2.colStart && t2.colStart === t2.colEnd && r2) return n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
@@ -8241,8 +8240,8 @@ const Gc = (t2) => {
|
|
|
8241
8240
|
o2 ? (i2 = Gc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 = Wc(t2.rowStart), i2 = t2.$rowStart ? "$" + i2 : i2) : i2 = n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
8242
8241
|
let a2 = null;
|
|
8243
8242
|
return o2 ? (a2 = Gc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 = Wc(t2.rowEnd), a2 = t2.$rowEnd ? "$" + a2 : a2) : a2 = n2({ colIndex: t2.colEnd, rowIndex: t2.rowEnd, $colIndex: t2.$colEnd, $rowIndex: t2.$rowEnd }), i2 + ":" + a2;
|
|
8244
|
-
}, th = (t2, e2, n2 =
|
|
8245
|
-
const r2 =
|
|
8243
|
+
}, th = (t2, e2, n2 = Jc) => {
|
|
8244
|
+
const r2 = Qc(t2, e2, n2), o2 = Kc(t2?.sheetName, e2?.sheetName);
|
|
8246
8245
|
return Xc(o2, r2);
|
|
8247
8246
|
}, eh = (t2, e2 = false) => {
|
|
8248
8247
|
if (!t2) return null;
|
|
@@ -8287,7 +8286,7 @@ const Gc = (t2) => {
|
|
|
8287
8286
|
const e3 = t3.lastIndexOf("!");
|
|
8288
8287
|
if (-1 === e3) return null;
|
|
8289
8288
|
let n3 = t3.slice(0, e3);
|
|
8290
|
-
return n3 =
|
|
8289
|
+
return n3 = Po(n3), n3 = n3.replace(/''/g, "'"), [n3, t3.slice(e3 + 1)];
|
|
8291
8290
|
})(t2);
|
|
8292
8291
|
let o2;
|
|
8293
8292
|
if (r2) {
|
|
@@ -8295,7 +8294,7 @@ const Gc = (t2) => {
|
|
|
8295
8294
|
o2.sheetName = r2[0];
|
|
8296
8295
|
} else o2 = nh(t2, e2, n2);
|
|
8297
8296
|
return o2 || null;
|
|
8298
|
-
}, oh = (t2, e2, n2 =
|
|
8297
|
+
}, oh = (t2, e2, n2 = Qc, r2 = Jc) => {
|
|
8299
8298
|
if (!t2 || 0 === t2.length) return null;
|
|
8300
8299
|
const o2 = [], s2 = t2.length;
|
|
8301
8300
|
for (let i2 = 0; i2 < s2; i2++) {
|
|
@@ -8304,7 +8303,7 @@ const Gc = (t2) => {
|
|
|
8304
8303
|
s3 ? void 0 !== s3.rowIndex || void 0 !== s3.colIndex ? a2 = r2(s3) : void 0 !== s3.rowStart || void 0 !== s3.colStart ? a2 = n2(s3, e2, r2) : "string" == typeof s3 && (a2 = s3) : a2 = Lc, a2 && o2.push(a2);
|
|
8305
8304
|
}
|
|
8306
8305
|
return o2;
|
|
8307
|
-
}, sh = (t2, e2, n2 = th, r2 =
|
|
8306
|
+
}, sh = (t2, e2, n2 = th, r2 = Jc) => {
|
|
8308
8307
|
const o2 = oh(t2, e2, n2, r2);
|
|
8309
8308
|
return o2 ? o2.join(",") : Lc;
|
|
8310
8309
|
}, ih = (t2, e2, n2, r2 = rh, o2, s2 = false) => {
|
|
@@ -8415,7 +8414,7 @@ const Gc = (t2) => {
|
|
|
8415
8414
|
}, gh = (t2, e2 = false) => {
|
|
8416
8415
|
const n2 = t2.match(e2 ? Nc : Tc);
|
|
8417
8416
|
return t2.endsWith(":") ? null : n2;
|
|
8418
|
-
}, mh = { rowIndex: -1, colIndex: -1, $colIndex: false, $rowIndex: false }, fh = (t2, e2, n2, r2 =
|
|
8417
|
+
}, mh = { rowIndex: -1, colIndex: -1, $colIndex: false, $rowIndex: false }, fh = (t2, e2, n2, r2 = Pc) => {
|
|
8419
8418
|
let o2 = t2.lastIndexOf("!"), s2 = "";
|
|
8420
8419
|
-1 !== o2 && (s2 = t2.slice(0, o2) + "!", t2 = t2.slice(o2 + 1));
|
|
8421
8420
|
let i2 = null;
|
|
@@ -8660,9 +8659,9 @@ class Dh {
|
|
|
8660
8659
|
const Bh = Object.freeze({ break: true });
|
|
8661
8660
|
var Lh;
|
|
8662
8661
|
(Lh || (Lh = {})).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" };
|
|
8663
|
-
const
|
|
8662
|
+
const Ph = Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Table]: false, [Lh.Type.Merge]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Comments]: false, [Lh.Type.Unlock]: false, [Lh.Type.Formula]: false, [Lh.Type.Spill]: false, [Lh.Type.Pending]: false, [Lh.Type.CalcError]: false, [Lh.Type.Contentful]: false, [Lh.Type.Conditional]: false, [Lh.Type.Continuous]: false }), zh = Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Table]: false, [Lh.Type.Merge]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Comments]: false, [Lh.Type.Unlock]: false, [Lh.Type.Formula]: false, [Lh.Type.Spill]: false, [Lh.Type.Pending]: false, [Lh.Type.CalcError]: false, [Lh.Type.Conditional]: false, [Lh.Type.Continuous]: false }), Hh = Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Table]: true, [Lh.Type.Merge]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Comments]: false, [Lh.Type.Unlock]: false, [Lh.Type.Formula]: false });
|
|
8664
8663
|
Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Table]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Comments]: false, [Lh.Type.Unlock]: false, [Lh.Type.Contentful]: false, [Lh.Type.Formula]: false });
|
|
8665
|
-
const Vh = Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Continuous]: false, [Lh.Type.Contentful]: false }), Wh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", $h = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, jh = "The range is outside of the bounds of the sheet.", Gh = "Listener can not be null", Uh = "We can't insert items. The sheet is protected.",
|
|
8664
|
+
const Vh = Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Continuous]: false, [Lh.Type.Contentful]: false }), Wh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", $h = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, jh = "The range is outside of the bounds of the sheet.", Gh = "Listener can not be null", Uh = "We can't insert items. The sheet is protected.", qh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Jh = "Overlapping ranges can not be merged.", Kh = "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.", Xh = "Unable to partially fill over merged cells.", Yh = "Unable to sort merged cells unless they are all the same size.", Zh = "Sheet has been closed. No further operations are allowed.", Qh = "IteratorContext can only be used during visit.", td = "When using addresses directly from the sheet do not include the sheet name.", ed = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, nd = "'setValue' expects a single value; when working with an array use 'setValue'.", rd = "Multiple selection ranges can not be copied.", od = "Unable to determine source.", sd = "When pasting before or after the cut area both areas must align.";
|
|
8666
8665
|
var id, ad;
|
|
8667
8666
|
(ad = id || (id = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, ad.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
|
|
8668
8667
|
class ld {
|
|
@@ -8718,16 +8717,16 @@ const cd = (t2) => {
|
|
|
8718
8717
|
n2 && "]" !== s2 && '"' !== s2 ? e2 += s2 : '"' === s2 ? (e2 += "\\0022", n2 = !n2) : ["[", "]", ",", "#", ".", "@", "/", ":", ";", "-", " "].includes(s2) ? (e2 += "\\" + s2, "[" === s2 ? n2 = true : "]" === s2 && (n2 = false)) : ["(", ")"].includes(s2) ? e2 += "_" === r2 ? "\\" + s2 : "\\\\\\" + s2 : ["$"].includes(s2) ? e2 += "\\0022" + s2 + "\\0022" : e2 += s2, r2 = s2;
|
|
8719
8718
|
}
|
|
8720
8719
|
return '"' + e2 + '"';
|
|
8721
|
-
}, wd = "Thin", yd = "Hairline", Ed = "Extra Light", Cd = "Ultra Light", bd = "Light", vd = "Normal", xd = "Regular", Id = "Medium", Rd = "Semi Bold", Ad = "Demi Bold", Md = "Bold", Td = "Extra Bold", Nd = "Ultra Bold", Fd = "Black", kd = "Heavy", Od = "Extra Black", Dd = "Ultra Black", Bd = "lighter", Ld = "normal",
|
|
8722
|
-
Hd.set(o.textToKey(wd), 100), Hd.set(o.textToKey(yd), 100), Hd.set(o.textToKey(Ed), 200), Hd.set(o.textToKey(Cd), 200), Hd.set(o.textToKey(bd), 300), Hd.set(o.textToKey(vd), 400), Hd.set(o.textToKey(xd), 400), Hd.set(o.textToKey(Id), 500), Hd.set(o.textToKey(Rd), 600), Hd.set(o.textToKey(Ad), 600), Hd.set(o.textToKey(vd), 400), Hd.set(o.textToKey(Md), 700), Hd.set(o.textToKey(Td), 800), Hd.set(o.textToKey(Nd), 800), Hd.set(o.textToKey(Fd), 900), Hd.set(o.textToKey(kd), 900), Hd.set(o.textToKey(Od), 950), Hd.set(o.textToKey(Dd), 950), Hd.set(o.textToKey(Bd), 100), Hd.set(o.textToKey(Ld), 400), Hd.set(o.textToKey(
|
|
8723
|
-
const Vd = "xx-small", Wd = "x-small", $d = "small", jd = "medium", Gd = "large", Ud = "x-large",
|
|
8724
|
-
|
|
8720
|
+
}, wd = "Thin", yd = "Hairline", Ed = "Extra Light", Cd = "Ultra Light", bd = "Light", vd = "Normal", xd = "Regular", Id = "Medium", Rd = "Semi Bold", Ad = "Demi Bold", Md = "Bold", Td = "Extra Bold", Nd = "Ultra Bold", Fd = "Black", kd = "Heavy", Od = "Extra Black", Dd = "Ultra Black", Bd = "lighter", Ld = "normal", Pd = "bold", zd = "bolder", Hd = /* @__PURE__ */ new Map();
|
|
8721
|
+
Hd.set(o.textToKey(wd), 100), Hd.set(o.textToKey(yd), 100), Hd.set(o.textToKey(Ed), 200), Hd.set(o.textToKey(Cd), 200), Hd.set(o.textToKey(bd), 300), Hd.set(o.textToKey(vd), 400), Hd.set(o.textToKey(xd), 400), Hd.set(o.textToKey(Id), 500), Hd.set(o.textToKey(Rd), 600), Hd.set(o.textToKey(Ad), 600), Hd.set(o.textToKey(vd), 400), Hd.set(o.textToKey(Md), 700), Hd.set(o.textToKey(Td), 800), Hd.set(o.textToKey(Nd), 800), Hd.set(o.textToKey(Fd), 900), Hd.set(o.textToKey(kd), 900), Hd.set(o.textToKey(Od), 950), Hd.set(o.textToKey(Dd), 950), Hd.set(o.textToKey(Bd), 100), Hd.set(o.textToKey(Ld), 400), Hd.set(o.textToKey(Pd), 700), Hd.set(o.textToKey(zd), 700);
|
|
8722
|
+
const Vd = "xx-small", Wd = "x-small", $d = "small", jd = "medium", Gd = "large", Ud = "x-large", qd = "xx-large", Jd = "xxx-large", Kd = "smaller", Xd = "larger", Yd = "math", Zd = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), Qd = /* @__PURE__ */ new Map();
|
|
8723
|
+
Qd.set(o.textToKey(Vd), (t2) => 0.4 * t2), Qd.set(o.textToKey(Wd), (t2) => 0.5 * t2), Qd.set(o.textToKey($d), (t2) => 0.6 * t2), Qd.set(o.textToKey(jd), (t2) => t2), Qd.set(o.textToKey(Gd), (t2) => 1.1 * t2), Qd.set(o.textToKey(Ud), (t2) => 1.25 * t2), Qd.set(o.textToKey(qd), (t2) => 1.5 * t2), Qd.set(o.textToKey(Jd), (t2) => 2 * t2), Qd.set(o.textToKey(Kd), (t2) => 0.9 * t2), Qd.set(o.textToKey(Xd), (t2) => 1.1 * t2), Qd.set(o.textToKey(Yd), (t2) => t2);
|
|
8725
8724
|
const tu = (t2, e2 = 11, n2 = "pt") => {
|
|
8726
8725
|
if (!t2) return null;
|
|
8727
8726
|
let r2 = e2;
|
|
8728
8727
|
t2 = t2.trim().toLowerCase();
|
|
8729
8728
|
const s2 = "pt" === n2 ? es.getDeviceScale() : 1, i2 = "pt" === n2 ? 1 : es.getDeviceScale();
|
|
8730
|
-
if (
|
|
8729
|
+
if (Zd.test(t2)) {
|
|
8731
8730
|
const e3 = parseFloat(t2);
|
|
8732
8731
|
isNaN(e3) || (t2 = e3 + n2);
|
|
8733
8732
|
}
|
|
@@ -8737,7 +8736,7 @@ const tu = (t2, e2 = 11, n2 = "pt") => {
|
|
|
8737
8736
|
else if (t2.endsWith("rem")) r2 = parseFloat(t2.substring(0, t2.length - 3).trim()) * e2;
|
|
8738
8737
|
else if (t2.endsWith("%")) r2 = parseFloat(t2.substring(0, t2.length - 1).trim()) / 100 * e2;
|
|
8739
8738
|
else if ("string" == typeof t2) {
|
|
8740
|
-
const n3 = o.textToKey(t2), r3 =
|
|
8739
|
+
const n3 = o.textToKey(t2), r3 = Qd.get(n3);
|
|
8741
8740
|
if (r3) return r3(e2);
|
|
8742
8741
|
}
|
|
8743
8742
|
return isNaN(r2) ? null : r2;
|
|
@@ -8851,7 +8850,7 @@ const Bu = (t2) => {
|
|
|
8851
8850
|
console.warn("error", t3);
|
|
8852
8851
|
}
|
|
8853
8852
|
return t2;
|
|
8854
|
-
}, merge: (t2, e2, n2) => t2 },
|
|
8853
|
+
}, merge: (t2, e2, n2) => t2 }, Pu = { shorthand: (t2, e2) => {
|
|
8855
8854
|
if (t2.isIStroke) return t2.getProperties();
|
|
8856
8855
|
if ("string" == typeof t2 && (t2 = Su(t2, (t3) => {
|
|
8857
8856
|
try {
|
|
@@ -8862,7 +8861,7 @@ const Bu = (t2) => {
|
|
|
8862
8861
|
})), !t2) return null;
|
|
8863
8862
|
const n2 = {};
|
|
8864
8863
|
return t2.style && (n2.style = t2.style), t2.color && (n2.color = t2.color), n2;
|
|
8865
|
-
}, properties: { color: Lu } },
|
|
8864
|
+
}, properties: { color: Lu } }, zu = { shorthand: (t2, e2) => {
|
|
8866
8865
|
if (t2.isIBorder) return t2.getProperties();
|
|
8867
8866
|
if ("string" == typeof t2) {
|
|
8868
8867
|
const n2 = Su(t2, (t3) => {
|
|
@@ -8875,7 +8874,7 @@ const Bu = (t2) => {
|
|
|
8875
8874
|
return { left: n2, right: n2, top: n2, bottom: n2, horizontal: null, vertical: null, diagonalUp: null, diagonalDown: null };
|
|
8876
8875
|
}
|
|
8877
8876
|
return t2;
|
|
8878
|
-
}, properties: { top:
|
|
8877
|
+
}, properties: { top: Pu, left: Pu, right: Pu, bottom: Pu, horizontal: Pu, vertical: Pu, diagonalUp: Pu, diagonalDown: Pu } }, Hu = { shorthand: (t2, e2) => {
|
|
8879
8878
|
if ("string" == typeof t2) {
|
|
8880
8879
|
let e3 = xi.Styles.lookupDefault(t2);
|
|
8881
8880
|
return void 0 !== e3 ? e3 : t2;
|
|
@@ -8936,20 +8935,20 @@ const Bu = (t2) => {
|
|
|
8936
8935
|
e2?.toJSON && (e2 = e2.toJSON());
|
|
8937
8936
|
const r2 = $s.BuiltInSheetPattern.MediumGray;
|
|
8938
8937
|
return e2?.type === $s.Type.Pattern ? { ...e2, ...t2 } : e2?.type === $s.Type.Solid ? { patternType: r2, foreground: e2?.color ?? Gs.Named.WindowText, background: Gs.Scheme.Bg1, ...t2 } : e2?.type === $s.Type.Gradient ? { patternType: r2, foreground: e2?.stops?.[0]?.color ?? Gs.Named.WindowText, background: e2?.stops?.[1]?.color ?? Gs.Scheme.Bg1, ...t2 } : t2 ? { type: $s.Type.Pattern, patternType: $s.BuiltInSheetPattern.Solid, foreground: Gs.Named.WindowText, background: Gs.Scheme.Bg1, ...t2 } : null;
|
|
8939
|
-
}, properties: { foreground: Lu, background: Lu } },
|
|
8940
|
-
for (let t2 = 0; t2 <
|
|
8941
|
-
const e2 =
|
|
8942
|
-
|
|
8938
|
+
}, properties: { foreground: Lu, background: Lu } }, qu = [$u, ju, Gu, Uu], Ju = [];
|
|
8939
|
+
for (let t2 = 0; t2 < qu.length; t2++) {
|
|
8940
|
+
const e2 = qu[t2]?.shorthand;
|
|
8941
|
+
Ju.push(e2);
|
|
8943
8942
|
}
|
|
8944
|
-
const Ku =
|
|
8943
|
+
const Ku = Ju.length, Xu = { properties: { font: Vu, fill: { shorthand: (t2, e2) => {
|
|
8945
8944
|
t2.isIFill && (t2 = t2.toJSON());
|
|
8946
8945
|
for (let n2 = 0; n2 < Ku; n2++) {
|
|
8947
|
-
let r2 =
|
|
8946
|
+
let r2 = Ju[n2](t2, e2);
|
|
8948
8947
|
if (r2?.type) return r2;
|
|
8949
8948
|
}
|
|
8950
8949
|
return t2;
|
|
8951
|
-
}, getSubType: (t2) => t2.type === $s.Type.None ? $u : t2.type === $s.Type.Solid ? ju : t2.type === $s.Type.Gradient ? Gu : t2.type === $s.Type.Pattern ? Uu : null }, alignment: Wu, border:
|
|
8952
|
-
if (null == e2) return
|
|
8950
|
+
}, getSubType: (t2) => t2.type === $s.Type.None ? $u : t2.type === $s.Type.Solid ? ju : t2.type === $s.Type.Gradient ? Gu : t2.type === $s.Type.Pattern ? Uu : null }, alignment: Wu, border: zu, numberFormat: Hu } }, Yu = { properties: { style: Xu } }, Zu = 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 }), Qu = (e2, n2, r2, s2, i2, a2 = false) => {
|
|
8951
|
+
if (null == e2) return Zu;
|
|
8953
8952
|
let l2 = "", c2 = null, h2 = null, d2 = null;
|
|
8954
8953
|
if (r2 === t.Error) l2 = e2.getLabel();
|
|
8955
8954
|
else if (r2 === t.RichData) l2 = "(Rich Object)";
|
|
@@ -9868,7 +9867,7 @@ const Fg = new class {
|
|
|
9868
9867
|
} else p2 = g2;
|
|
9869
9868
|
let _2 = false;
|
|
9870
9869
|
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;
|
|
9871
|
-
}, Og = (t2, e2, n2, r2) =>
|
|
9870
|
+
}, Og = (t2, e2, n2, r2) => Qu(n2, e2, t2, e2.getNumberFormat(), (t3) => r2.styles.parseColor(t3), r2.date1904), Dg = (e2, n2, r2, o2, s2 = false) => {
|
|
9872
9871
|
if (e2 === t.Null) return null;
|
|
9873
9872
|
let i2 = "";
|
|
9874
9873
|
if (s2) i2 = "" + r2;
|
|
@@ -9897,7 +9896,7 @@ const Fg = new class {
|
|
|
9897
9896
|
}, Lg = (e2, n2) => {
|
|
9898
9897
|
const r2 = n2.getAlignment(), o2 = r2.getRotation(), s2 = r2.getHorizontal();
|
|
9899
9898
|
return 0 !== o2 && s2 === xo.HorizontalAlignment.General ? o2 > 0 && o2 < 90 || o2 > 180 && o2 <= 270 ? xo.HorizontalAlignment.Right : xo.HorizontalAlignment.Left : s2 === xo.HorizontalAlignment.General ? e2 === t.Null ? xo.HorizontalAlignment.Left : e2 === t.Boolean || e2 === t.Error ? xo.HorizontalAlignment.Center : "@" === n2.getNumberFormat() ? xo.HorizontalAlignment.Left : e2 === t.Number ? xo.HorizontalAlignment.Right : xo.HorizontalAlignment.Left : s2;
|
|
9900
|
-
},
|
|
9899
|
+
}, Pg = (e2, n2, r2, o2, s2, i2, a2, l2, c2) => {
|
|
9901
9900
|
if (r2 === t.Null || "" === s2) return null;
|
|
9902
9901
|
const h2 = n2;
|
|
9903
9902
|
if (!((e3, n3, r3 = false, o3 = false) => {
|
|
@@ -9917,9 +9916,9 @@ const Fg = new class {
|
|
|
9917
9916
|
const S2 = ((t2) => t2 === xo.HorizontalAlignment.Center || t2 === xo.HorizontalAlignment.CenterContinuous ? p.Center : t2 === xo.HorizontalAlignment.Right ? p.Right : p.Left)(Lg(r2, o2));
|
|
9918
9917
|
let w2 = 0, y2 = 0, E2 = 0, C2 = 0, b2 = 1;
|
|
9919
9918
|
if (_2 && null !== s2 && l2) {
|
|
9920
|
-
|
|
9919
|
+
qg.colIndex = n2, qg.rowIndex = e2;
|
|
9921
9920
|
const t2 = l2.colEnd;
|
|
9922
|
-
b2 = Math.min(c2.nextContentful(
|
|
9921
|
+
b2 = Math.min(c2.nextContentful(qg, t2), t2) - n2 + 1;
|
|
9923
9922
|
}
|
|
9924
9923
|
const v2 = c2.colHeaders, x2 = v2.findOffset.bind(v2), I2 = v2.findIndex.bind(v2);
|
|
9925
9924
|
let R2 = x2(h2);
|
|
@@ -9931,7 +9930,7 @@ const Fg = new class {
|
|
|
9931
9930
|
T2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (F2 = I2(M2 + D2), null !== a2 && (F2 = Math.min(F2, a2.colIndex - 1)), M2 = x2(F2), C2 = D2, y2 = F2 - h2), S2 !== p.Right && S2 !== p.Center || (N2 = I2(R2 - D2), null !== i2 && (N2 = Math.max(N2, i2.colIndex + 1)), R2 = x2(N2), E2 = D2, w2 = h2 - N2), k2.x = A2 - R2, B2.x = k2.x), b2 > 1 && (y2 = S2 === p.Center ? Math.max(O2 - 1, y2) : b2 - 1, M2 = x2(h2 + 1), k2.width = M2 - R2, B2 = { ...k2 }, B2.width = T2);
|
|
9932
9931
|
return { anchorBounds: k2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: B2 };
|
|
9933
9932
|
};
|
|
9934
|
-
class
|
|
9933
|
+
class zg {
|
|
9935
9934
|
constructor(t2, e2) {
|
|
9936
9935
|
this._styles = t2, this._ri = e2;
|
|
9937
9936
|
const n2 = e2?.table;
|
|
@@ -9975,7 +9974,7 @@ class Pg {
|
|
|
9975
9974
|
}
|
|
9976
9975
|
const Hg = (t2, e2, n2, r2) => {
|
|
9977
9976
|
const o2 = r2.styles;
|
|
9978
|
-
return Cg(o2, n2 ? new
|
|
9977
|
+
return Cg(o2, n2 ? new zg(o2, n2) : null, e2, r2.styleUpdater);
|
|
9979
9978
|
}, Vg = (e2, n2, r2, s2, i2, a2, l2, c2 = null, h2 = Ng) => {
|
|
9980
9979
|
if (null === r2) return n2 ? n2.getBestFit() : null;
|
|
9981
9980
|
const d2 = e2 === t.String, u2 = n2.getFont(), g2 = u2.getWeight(), m2 = u2.getSize(), f2 = u2.getFamily(), p2 = n2.getAlignment(), _2 = p2.getOverflow(), S2 = p2.getRotation(), w2 = p2.getVertical(), y2 = n2.getNumberFormat(), E2 = d2 && _2 === xo.Overflow.Visible, C2 = d2 && (_2 === xo.Overflow.Wrap || w2 === xo.VerticalAlignment.Justify || w2 === xo.VerticalAlignment.Distributed), b2 = (c2 ?? "") + "\0" + m2 + f2 + g2 + y2 + S2 + E2 + C2 + a2 + l2 + (c2 ? "" : r2), v2 = h2.get(b2);
|
|
@@ -10036,13 +10035,13 @@ class $g {
|
|
|
10036
10035
|
}
|
|
10037
10036
|
getA1() {
|
|
10038
10037
|
const t2 = this._coords;
|
|
10039
|
-
return t2 ?
|
|
10038
|
+
return t2 ? Qc(this._options.resolveRange(t2).getCoords()) : Lc;
|
|
10040
10039
|
}
|
|
10041
10040
|
getSheet() {
|
|
10042
10041
|
return this._options.sheet;
|
|
10043
10042
|
}
|
|
10044
10043
|
select(t2) {
|
|
10045
|
-
return this._options.opener("#" +
|
|
10044
|
+
return this._options.opener("#" + qc(this._coords), t2);
|
|
10046
10045
|
}
|
|
10047
10046
|
getColumnFilter() {
|
|
10048
10047
|
if (!this._ri) return null;
|
|
@@ -10068,7 +10067,7 @@ class $g {
|
|
|
10068
10067
|
let o2 = null;
|
|
10069
10068
|
if (r2 === t.String || n2 && n2.continuous) {
|
|
10070
10069
|
const t2 = this.getStyle(), e3 = this._coords;
|
|
10071
|
-
o2 =
|
|
10070
|
+
o2 = Pg(e3.rowIndex, e3.colIndex, r2, t2, this._v, this._p, this._n, n2?.continuous?.getCoords() ?? null, this._options);
|
|
10072
10071
|
}
|
|
10073
10072
|
return null === o2 || 0 === o2.leftIndex && 0 === o2.rightIndex && o2.colSpan <= 1 ? (this._to = null, null) : (this._to = o2, this._to);
|
|
10074
10073
|
}
|
|
@@ -10161,7 +10160,7 @@ class $g {
|
|
|
10161
10160
|
getNumberFormat(t2) {
|
|
10162
10161
|
if (void 0 !== t2) {
|
|
10163
10162
|
const e2 = this._v;
|
|
10164
|
-
return
|
|
10163
|
+
return Qu(e2, this.getStyle(), this._t, t2, (t3) => this._options.styles.parseColor(t3), this._isDate1904());
|
|
10165
10164
|
}
|
|
10166
10165
|
return Og(this._t, this.getStyle(), this._v, this._options);
|
|
10167
10166
|
}
|
|
@@ -10318,8 +10317,8 @@ class Gg {
|
|
|
10318
10317
|
return this.toText();
|
|
10319
10318
|
}
|
|
10320
10319
|
}
|
|
10321
|
-
const Ug = [null],
|
|
10322
|
-
let
|
|
10320
|
+
const Ug = [null], qg = { colIndex: -1, rowIndex: -1 };
|
|
10321
|
+
let Jg;
|
|
10323
10322
|
const Kg = (t2, n2, r2, o2 = false) => {
|
|
10324
10323
|
const s2 = r2 === e.Orientation.Row, i2 = t2.length, a2 = new Array(i2);
|
|
10325
10324
|
for (let e2 = 0; e2 < i2; e2++) {
|
|
@@ -10347,13 +10346,13 @@ const Kg = (t2, n2, r2, o2 = false) => {
|
|
|
10347
10346
|
if ((r3.colStart <= s2 && r3.colEnd >= i2) !== n2) return !n2;
|
|
10348
10347
|
}
|
|
10349
10348
|
return n2;
|
|
10350
|
-
},
|
|
10349
|
+
}, Zg = (t2, n2) => {
|
|
10351
10350
|
if (n2) {
|
|
10352
10351
|
if (t2.colStart <= n2.colStart && t2.colEnd >= n2.colEnd) return e.Orientation.Row;
|
|
10353
10352
|
if (t2.rowStart <= n2.rowStart && t2.rowEnd >= n2.rowEnd) return e.Orientation.Column;
|
|
10354
10353
|
}
|
|
10355
10354
|
return t2 ? ((t3) => t3.rowEnd - t3.rowStart > t3.colEnd - t3.colStart ? e.Orientation.Column : e.Orientation.Row)(t2) : e.Orientation.Row;
|
|
10356
|
-
},
|
|
10355
|
+
}, Qg = () => false, tm = () => true, em = () => null, nm = () => fa, rm = () => 0, om = new class extends $g {
|
|
10357
10356
|
constructor() {
|
|
10358
10357
|
super(null, null);
|
|
10359
10358
|
}
|
|
@@ -10367,13 +10366,13 @@ const Kg = (t2, n2, r2, o2 = false) => {
|
|
|
10367
10366
|
return [Lc];
|
|
10368
10367
|
}
|
|
10369
10368
|
getStyle(t2 = false) {
|
|
10370
|
-
return
|
|
10369
|
+
return Jg || (Jg = new Zm().getNormal(), Jg);
|
|
10371
10370
|
}
|
|
10372
10371
|
toString() {
|
|
10373
|
-
return `${this._coords ?
|
|
10372
|
+
return `${this._coords ? qc(this._coords) : Lc} => ${this._v ?? "{blank}"}`;
|
|
10374
10373
|
}
|
|
10375
10374
|
}(), sm = () => im, im = { forEach: () => {
|
|
10376
|
-
}, [Symbol.iterator]: nm, entries: nm, values: nm, select: Mh, find: Mh, calculate: Mh, getCell: () => om, getValue: em, waitForCalcs: () => Promise.resolve(im), setValue: Mh, setFormula: Mh, setValues: Mh, updateCells: Mh, getCells: () => [[om]], getStyle: Mh, getValues: () => [[null]], toText: () => "", getBounds: em, getIntersect: sm, getUnion: sm, getDifferences: Mh, getResizeBy: sm, getResizeTo: sm, getOffsetBy: sm, getOffsetTo: sm, getFixed: sm, getUsedRange: sm, getEntireRows: sm, getEntireColumns: sm, getSurrounding: Mh, getExtended: Mh, isEntireRows:
|
|
10375
|
+
}, [Symbol.iterator]: nm, entries: nm, values: nm, select: Mh, find: Mh, calculate: Mh, getCell: () => om, getValue: em, waitForCalcs: () => Promise.resolve(im), setValue: Mh, setFormula: Mh, setValues: Mh, updateCells: Mh, getCells: () => [[om]], getStyle: Mh, getValues: () => [[null]], toText: () => "", getBounds: em, getIntersect: sm, getUnion: sm, getDifferences: Mh, getResizeBy: sm, getResizeTo: sm, getOffsetBy: sm, getOffsetTo: sm, getFixed: sm, getUsedRange: sm, getEntireRows: sm, getEntireColumns: sm, getSurrounding: Mh, getExtended: Mh, isEntireRows: Qg, isEntireColumns: Qg, isEntireRange: Qg, getWidth: rm, getHeight: rm, size: 0, sort: Mh, clear: Mh, setHyperlink: Mh, setComments: Mh, merge: Mh, unmerge: Mh, getMerges: Mh, insert: Mh, insertFrom: Mh, delete: Mh, getDefaultShiftOrientation: Mh, getDefaultSortCriteria: Mh, autoFill: Mh, autoFit: Mh, getSnapshot: Mh, copyFrom: Mh, doBatch: Mh, startIncrementalUpdates: Mh, getRowHeaders: Mh, getColumnHeaders: Mh, getCounts: Mh, getCount: rm, isContentful: Qg, addListener: Mh, getColumnStart: rm, getRowStart: rm, getColumnEnd: rm, getRowEnd: rm, getRowCount: rm, getColumnCount: rm, getVisible: Mh, getCoords: em, isEmpty: tm, toString: () => Lc, getA1: () => Lc, isInvalid: tm, getSheet: em, isReadOnly: tm, isICellRange: true };
|
|
10377
10376
|
function am(t2, e2 = null, n2 = null, r2 = Lc) {
|
|
10378
10377
|
return t2 || n2 ? Object.freeze({ ...im, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ? Yc(n2, e2) : r2 }) : im;
|
|
10379
10378
|
}
|
|
@@ -10516,7 +10515,7 @@ const lm = /^[\\+-]?[0-9]*\.?[0-9]*$/, cm = (t2, e2, r2) => {
|
|
|
10516
10515
|
}, gm = (t2, n2, r2, o2) => {
|
|
10517
10516
|
const s2 = o2?.asJSDate;
|
|
10518
10517
|
let i2;
|
|
10519
|
-
r2 ? i2 =
|
|
10518
|
+
r2 ? i2 = zh : (s2 || o2?.includeMergeOverflow) && (i2 = {}, s2 && (i2[Lh.Type.Style] = false, i2[Lh.Type.Table] = false), o2.includeMergeOverflow && (i2[Lh.Type.Merge] = false));
|
|
10520
10519
|
const a2 = o2?.orientation ?? e.Orientation.Row, l2 = o2?.maxSize ?? 1e4, c2 = t2({ includeEmpty: true, orientation: a2, reverse: o2?.reverse, ignoreHidden: o2?.ignoreHidden, includeMergeOverflow: o2?.includeMergeOverflow, includeRangeTypes: i2, bounds: n2, ignoreCellDetails: !s2 }), h2 = a2 !== e.Orientation.Row, d2 = [];
|
|
10521
10520
|
let u2, g2 = -1, m2 = null, f2 = 0;
|
|
10522
10521
|
for (u2 = c2.next(); !u2.done; ) {
|
|
@@ -10556,16 +10555,16 @@ class pm {
|
|
|
10556
10555
|
o2._c = null;
|
|
10557
10556
|
}, this.context = { getCoords() {
|
|
10558
10557
|
const t2 = o2._c;
|
|
10559
|
-
if (!t2) throw new Error(
|
|
10558
|
+
if (!t2) throw new Error(Qh);
|
|
10560
10559
|
return t2;
|
|
10561
10560
|
}, getCell() {
|
|
10562
10561
|
const t2 = o2._c;
|
|
10563
|
-
if (!t2) throw new Error(
|
|
10562
|
+
if (!t2) throw new Error(Qh);
|
|
10564
10563
|
if (this.ignoreCellDetails) throw new Error("IteratorContext can only return a cell if the forEach ignoreCellDetails has not been set to false.");
|
|
10565
10564
|
const e3 = o2._r, n3 = o2._t, s2 = o2._v;
|
|
10566
10565
|
return null !== s2 || e3 ? new $g(r2, t2, n3, s2, e3, o2._p, o2._n) : new $g(r2, t2);
|
|
10567
10566
|
}, getType: () => o2._t, getA1(t2) {
|
|
10568
|
-
if (!o2.context) throw new Error(
|
|
10567
|
+
if (!o2.context) throw new Error(Qh);
|
|
10569
10568
|
let e3 = o2._c;
|
|
10570
10569
|
return t2 && (e3 = { ...o2._c, ...t2 }), r2.resolveRange(e3).toString();
|
|
10571
10570
|
}, toJSDate(e3) {
|
|
@@ -10781,7 +10780,7 @@ class xm {
|
|
|
10781
10780
|
}
|
|
10782
10781
|
}
|
|
10783
10782
|
var Im, Rm;
|
|
10784
|
-
(Rm = Im || (Im = {})).fastStringToCol = dh, Rm.fastStringToCell = lh, Rm.fastStringToRange = uh, Rm.rangeToString = Yc, Rm.cellToString =
|
|
10783
|
+
(Rm = Im || (Im = {})).fastStringToCol = dh, Rm.fastStringToCell = lh, Rm.fastStringToRange = uh, Rm.rangeToString = Yc, Rm.cellToString = Jc, Rm.normalizeA1ToR1C1 = bh, Rm.resolveRelativeToA1 = wh;
|
|
10785
10784
|
const Am = (t2, e2) => t2.offset - e2.offset, Mm = (t2) => {
|
|
10786
10785
|
if (!t2 || 0 === t2.size) return [];
|
|
10787
10786
|
let e2 = [];
|
|
@@ -10952,7 +10951,7 @@ class Dm extends xm {
|
|
|
10952
10951
|
return n2.length > 0 && (t2.fields = n2), e2.sort, 0 === Object.keys(t2).length ? null : t2;
|
|
10953
10952
|
}
|
|
10954
10953
|
}
|
|
10955
|
-
const Bm = "A table must have a least one row for the data.", Lm = "Table1",
|
|
10954
|
+
const Bm = "A table must have a least one row for the data.", Lm = "Table1", Pm = Object.freeze({ showRowStripes: true, showColumnStripes: false, showFirstColumn: false, showLastColumn: false }), zm = (t2, e2, n2) => {
|
|
10956
10955
|
if (t2.length !== e2.length) return console.warn("make columns the same length"), false;
|
|
10957
10956
|
const r2 = /* @__PURE__ */ new Set();
|
|
10958
10957
|
for (let t3 = 0; t3 < e2.length; t3++) {
|
|
@@ -11052,7 +11051,7 @@ class Wm extends xm {
|
|
|
11052
11051
|
if (super({ ...t2, createDescription: "Insert Table" }), this._isUpdatingHeader = false, this._colHeadersSizeUnlistener = null, this._rowHeadersSizeUnlistener = null, this._visibleRange = null, this._isHeaderVisible = true, this._isTotalVisible = true, this._isFirstColumnVisible = true, this._isLastColumnVisible = true, this._range = null, !t2.json) throw new Error("json is required");
|
|
11053
11052
|
if (!t2.json.ref) throw new Error("json.ref is required");
|
|
11054
11053
|
const e2 = this;
|
|
11055
|
-
this._styles = t2.styles ?? t2.sheet?.getStyles() ?? new
|
|
11054
|
+
this._styles = t2.styles ?? t2.sheet?.getStyles() ?? new Zm(), this._names = t2.names, this._sheet = t2.sheet, this._processTableUpdate = t2.processTableUpdate, this._setNameOnContainer = t2.setNameOnContainer, this._options = { ...t2 }, this._styleCache = null, this._stylePropsCache = null, this._stylesRemoveListener = this._styles.addListeners({ onTableStylesChange() {
|
|
11056
11055
|
e2._styleCache = null, e2._stylePropsCache = null, e2._getEmitter().notify("onStyleChange"), e2._getEmitter().notify("onAnyChange");
|
|
11057
11056
|
} });
|
|
11058
11057
|
const n2 = { ...t2?.json };
|
|
@@ -11245,10 +11244,10 @@ class Wm extends xm {
|
|
|
11245
11244
|
return n2 ? { ...n2, rowStart: n2.rowEnd - e2 + 1 } : null;
|
|
11246
11245
|
}
|
|
11247
11246
|
getStyleOptions() {
|
|
11248
|
-
return this.isClosed() ?
|
|
11247
|
+
return this.isClosed() ? Pm : this._getState()?.styleOptions;
|
|
11249
11248
|
}
|
|
11250
11249
|
updateStyleOptions(t2, e2 = "Update Style Info") {
|
|
11251
|
-
const n2 = this.getStyleOptions(), r2 = t2 ? { ...n2, ...t2 } :
|
|
11250
|
+
const n2 = this.getStyleOptions(), r2 = t2 ? { ...n2, ...t2 } : Pm;
|
|
11252
11251
|
return this._modifyTable({ styleOptions: r2 }, e2), this._styleCache = null, this._getEmitter().notify("onStyleChange"), this;
|
|
11253
11252
|
}
|
|
11254
11253
|
getStyleAt(t2) {
|
|
@@ -11378,7 +11377,7 @@ class Wm extends xm {
|
|
|
11378
11377
|
n3.add(a3.toLocaleLowerCase()), t3[i3]?.name !== a3 && (t3[i3].name = a3, s3++);
|
|
11379
11378
|
}
|
|
11380
11379
|
return s3 > 0;
|
|
11381
|
-
})(a2, c2) :
|
|
11380
|
+
})(a2, c2) : zm(a2, c2, o2);
|
|
11382
11381
|
if (!(r2 || c2.length !== a2.length || l2)) return;
|
|
11383
11382
|
const h2 = "Update Columns";
|
|
11384
11383
|
this._isUpdatingHeader = true;
|
|
@@ -11434,7 +11433,7 @@ class Wm extends xm {
|
|
|
11434
11433
|
const o4 = l2 + (c2 + r4 + 1);
|
|
11435
11434
|
o4 && !t3.has(o4.toLowerCase().trim()) && (e3.name = o4);
|
|
11436
11435
|
}
|
|
11437
|
-
|
|
11436
|
+
zm(s2, o3, null);
|
|
11438
11437
|
} else s2 = o3, i2 = s2.splice(n3, -e2);
|
|
11439
11438
|
this._updateState({ columns: s2 }, { description: "Process Columns" }), this._updateColumns(s2, false, true, i2);
|
|
11440
11439
|
} else t2.after || this._updateState({ columns: [] }, { description: "Process Columns" });
|
|
@@ -11505,7 +11504,7 @@ class Wm extends xm {
|
|
|
11505
11504
|
const t2 = {}, e2 = this._getState();
|
|
11506
11505
|
if (!e2) return null;
|
|
11507
11506
|
if (e2.name && (t2.name = e2.name), e2.anchor && (t2.ref = Yc(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) {
|
|
11508
|
-
const n2 = o.diffValues(e2.styleOptions, { ...
|
|
11507
|
+
const n2 = o.diffValues(e2.styleOptions, { ...Pm, name: null });
|
|
11509
11508
|
n2 && (t2.styleOptions = n2);
|
|
11510
11509
|
}
|
|
11511
11510
|
if (e2.filter) {
|
|
@@ -11525,7 +11524,7 @@ class Wm extends xm {
|
|
|
11525
11524
|
const t3 = this._names.findValidName(n2.name ?? Lm);
|
|
11526
11525
|
n2.name !== t3 && (n2.name = t3);
|
|
11527
11526
|
}
|
|
11528
|
-
n2.name || (n2.name = Lm), e2.description && (n2.description = e2.description), void 0 !== e2.headerRowCount && (n2.headerRowCount = e2.headerRowCount), void 0 !== e2.totalsRowCount && (n2.totalsRowCount = e2.totalsRowCount), n2.columns = e2.columns ?? o.EmptyArray, n2.styleOptions = { ...
|
|
11527
|
+
n2.name || (n2.name = Lm), e2.description && (n2.description = e2.description), void 0 !== e2.headerRowCount && (n2.headerRowCount = e2.headerRowCount), void 0 !== e2.totalsRowCount && (n2.totalsRowCount = e2.totalsRowCount), n2.columns = e2.columns ?? o.EmptyArray, n2.styleOptions = { ...Pm, ...e2.styleOptions };
|
|
11529
11528
|
const s2 = "Insert Table";
|
|
11530
11529
|
this._updateState(n2, { description: s2 });
|
|
11531
11530
|
const i2 = this._columnsFromSheet();
|
|
@@ -11567,8 +11566,8 @@ class Um {
|
|
|
11567
11566
|
}
|
|
11568
11567
|
getPropertiesAt(t2, e2) {
|
|
11569
11568
|
const n2 = this._table, r2 = this._styles, o2 = this._properties;
|
|
11570
|
-
|
|
11571
|
-
const s2 = n2.getVisibleCellCoords(
|
|
11569
|
+
Jm.rowIndex = t2, Jm.colIndex = e2;
|
|
11570
|
+
const s2 = n2.getVisibleCellCoords(Jm), i2 = n2.getVisibleRefRangeCoords();
|
|
11572
11571
|
if (!i2) return null;
|
|
11573
11572
|
const a2 = Math.max(0, i2.colEnd - i2.colStart) + 1, l2 = Math.max(0, i2.rowEnd - i2.rowStart) + 1, c2 = Math.max(0, s2.rowIndex - i2.rowStart), h2 = Math.max(0, s2.colIndex - i2.colStart), d2 = { rowIndex: c2, colIndex: h2 }, u2 = n2.getStyleOptions();
|
|
11574
11573
|
let g2 = {}, m2 = false, p2 = 0;
|
|
@@ -11641,7 +11640,7 @@ class Um {
|
|
|
11641
11640
|
return m2 && o2.headerRow && n2.getColumnFilter(h2) && !n2.getColumnFilter(h2).hasHiddenButton() && (g2.insets = { right: 15 }), g2;
|
|
11642
11641
|
}
|
|
11643
11642
|
}
|
|
11644
|
-
class
|
|
11643
|
+
class qm {
|
|
11645
11644
|
constructor(t2, e2, n2, r2) {
|
|
11646
11645
|
this._styles = t2, this._isBuiltIn = n2, this._doDelete = r2, this._properties = o.deepFreeze(this._resolveProperties(e2)), this.isShownInTableStyles();
|
|
11647
11646
|
}
|
|
@@ -11687,7 +11686,7 @@ class Jm {
|
|
|
11687
11686
|
return true;
|
|
11688
11687
|
}
|
|
11689
11688
|
}
|
|
11690
|
-
const
|
|
11689
|
+
const Jm = { rowIndex: 0, colIndex: 0 };
|
|
11691
11690
|
class Km extends Ig {
|
|
11692
11691
|
constructor(t2, e2) {
|
|
11693
11692
|
super(t2, c.EmptyRange, e2);
|
|
@@ -11797,7 +11796,7 @@ let Ym = class {
|
|
|
11797
11796
|
}), 1 === t2.length && t2.splice(0, 1), this._toJSONInternal(t2);
|
|
11798
11797
|
}
|
|
11799
11798
|
};
|
|
11800
|
-
class
|
|
11799
|
+
class Zm {
|
|
11801
11800
|
constructor(t2 = null, e2 = null, n2 = 11) {
|
|
11802
11801
|
this._emitter = null, this._normalRanged = null, this._theme = t2 ?? new ta().getDefaultTheme(), this._defaultFontSize = n2;
|
|
11803
11802
|
const r2 = this;
|
|
@@ -11877,7 +11876,7 @@ class Qm {
|
|
|
11877
11876
|
return $m;
|
|
11878
11877
|
})(), e2 = /* @__PURE__ */ new Map();
|
|
11879
11878
|
return t2.forEach((t3, n2) => {
|
|
11880
|
-
const r2 = t3.name.toLowerCase(), o2 = new
|
|
11879
|
+
const r2 = t3.name.toLowerCase(), o2 = new qm(this, t3, true);
|
|
11881
11880
|
e2.set(r2, o2);
|
|
11882
11881
|
}), e2;
|
|
11883
11882
|
}
|
|
@@ -11940,7 +11939,7 @@ class Qm {
|
|
|
11940
11939
|
const n2 = t2.toLowerCase();
|
|
11941
11940
|
let r2 = this._customTableStyles.get(n2) ?? this._builtInsTableStyles.get(n2);
|
|
11942
11941
|
r2 && (t2 = r2.getName());
|
|
11943
|
-
const o2 = new
|
|
11942
|
+
const o2 = new qm(this, { ...e2, name: t2 }, false, this._deleteCustomTableStyle.bind(this));
|
|
11944
11943
|
return this._customTableStyles.set(n2, o2), o2;
|
|
11945
11944
|
}
|
|
11946
11945
|
_hideOrRemoveNamed(t2) {
|
|
@@ -12091,7 +12090,7 @@ class Qm {
|
|
|
12091
12090
|
this._mruColors = r2;
|
|
12092
12091
|
}
|
|
12093
12092
|
}
|
|
12094
|
-
const
|
|
12093
|
+
const Qm = "BinaryResource must have only one initial data value.", tf = "Resource is closed.";
|
|
12095
12094
|
class ef {
|
|
12096
12095
|
constructor(t2) {
|
|
12097
12096
|
if (this._listeners = /* @__PURE__ */ new Set(), this._type = t2.type, this._name = t2?.name, t2.base64) {
|
|
@@ -12102,7 +12101,7 @@ class ef {
|
|
|
12102
12101
|
};
|
|
12103
12102
|
}
|
|
12104
12103
|
if (t2.fetch) {
|
|
12105
|
-
if (this._asArrayBufferResolve) throw new Error(
|
|
12104
|
+
if (this._asArrayBufferResolve) throw new Error(Qm);
|
|
12106
12105
|
const e2 = t2.fetch;
|
|
12107
12106
|
this._asArrayBufferResolve = async () => {
|
|
12108
12107
|
let n2, r2 = null;
|
|
@@ -12112,14 +12111,14 @@ class ef {
|
|
|
12112
12111
|
};
|
|
12113
12112
|
}
|
|
12114
12113
|
if (t2.buffer) {
|
|
12115
|
-
if (this._asArrayBufferResolve) throw new Error(
|
|
12114
|
+
if (this._asArrayBufferResolve) throw new Error(Qm);
|
|
12116
12115
|
this._asArrayBufferResolve = async () => {
|
|
12117
12116
|
let e2 = null;
|
|
12118
12117
|
return e2 = "function" == typeof t2.buffer ? await t2.buffer() : t2.buffer, Promise.resolve(e2);
|
|
12119
12118
|
};
|
|
12120
12119
|
}
|
|
12121
12120
|
if (t2.file) {
|
|
12122
|
-
if (this._asArrayBufferResolve) throw new Error(
|
|
12121
|
+
if (this._asArrayBufferResolve) throw new Error(Qm);
|
|
12123
12122
|
this._asArrayBufferResolve = async () => {
|
|
12124
12123
|
const e2 = await Promise.resolve(t2.file);
|
|
12125
12124
|
return await e2.arrayBuffer();
|
|
@@ -12639,8 +12638,8 @@ class Sf {
|
|
|
12639
12638
|
for (let t4 = 0; t4 < s3; t4++) {
|
|
12640
12639
|
const n3 = o3[t4];
|
|
12641
12640
|
if (n3 === l3) continue;
|
|
12642
|
-
|
|
12643
|
-
const s4 = Kf(r3,
|
|
12641
|
+
qf[0] = { colStart: r3.ref.colStart, rowStart: l3, colEnd: r3.ref.colEnd, rowEnd: n3 - 1, value: r3 }, qf[1] = { colStart: r3.ref.colStart, rowStart: n3, colEnd: r3.ref.colStart, rowEnd: r3.ref.rowEnd, value: r3 };
|
|
12642
|
+
const s4 = Kf(r3, qf, e.Orientation.Row, n3);
|
|
12644
12643
|
let i4 = s4[0];
|
|
12645
12644
|
_2(i4, a3), g2.push(i4), i4 = s4[1], _2(i4, a3), g2.push(i4), l3 = n3;
|
|
12646
12645
|
}
|
|
@@ -12687,7 +12686,7 @@ class Sf {
|
|
|
12687
12686
|
_formulaAt(t2, e2) {
|
|
12688
12687
|
Uf.colStart = e2, Uf.rowStart = t2, Uf.colEnd = e2, Uf.rowEnd = t2;
|
|
12689
12688
|
const n2 = this._formulaSpatial.search(Uf);
|
|
12690
|
-
if (0 === n2.length) throw new Error(`No formula found at ${
|
|
12689
|
+
if (0 === n2.length) throw new Error(`No formula found at ${qc({ rowIndex: t2, colIndex: e2 })}`);
|
|
12691
12690
|
return n2[0];
|
|
12692
12691
|
}
|
|
12693
12692
|
getDirectPrecedentsAt(t2, e2, n2) {
|
|
@@ -12939,7 +12938,7 @@ class Sf {
|
|
|
12939
12938
|
if (this._calculation.getStatus() === lf.Status.Starting) return this._addToPending(() => {
|
|
12940
12939
|
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)) };
|
|
12941
12940
|
return Promise.resolve(s3);
|
|
12942
|
-
}),
|
|
12941
|
+
}), Jf;
|
|
12943
12942
|
const s2 = this._values.getOrientation() !== e.Orientation.Row, i2 = this._spillSpatial, a2 = this._errorSpatial, l2 = this._contentfulSpatial, h2 = [], d2 = this._formulaSpatial;
|
|
12944
12943
|
let u2, g2, m2 = !d2.isEmpty(), f2 = m2 ? [] : null, p2 = this._values;
|
|
12945
12944
|
if (t2 && t2.tuples) {
|
|
@@ -13022,18 +13021,18 @@ class Sf {
|
|
|
13022
13021
|
let r2;
|
|
13023
13022
|
Df = 0, Hf = 0, Vf = 0, $f = 0;
|
|
13024
13023
|
const s2 = this._precedentSpatial, i2 = this._formulaSpatial;
|
|
13025
|
-
Lf = 0,
|
|
13024
|
+
Lf = 0, Pf = 0;
|
|
13026
13025
|
const a2 = this._cycleId, l2 = e2.length;
|
|
13027
13026
|
for (let t3 = 0; t3 < l2; t3++) {
|
|
13028
13027
|
const r3 = e2[t3];
|
|
13029
|
-
r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, Of[Df++] = r3, Bf[
|
|
13028
|
+
r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, Of[Df++] = r3, Bf[Pf++] = r3);
|
|
13030
13029
|
}
|
|
13031
13030
|
const c2 = (e3, n3, o2) => {
|
|
13032
13031
|
(t2 || e3.state === kh) && (r2 || (r2 = []), r2.push(n3), t2 || o2(e3));
|
|
13033
13032
|
}, h2 = (t3) => {
|
|
13034
|
-
t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, Of[Df++] = t3, Bf[
|
|
13033
|
+
t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, Of[Df++] = t3, Bf[Pf++] = t3);
|
|
13035
13034
|
};
|
|
13036
|
-
for (; Lf <
|
|
13035
|
+
for (; Lf < Pf; ) {
|
|
13037
13036
|
const t3 = Bf[Lf++], e3 = t3.colIndex, n3 = t3.rowIndex;
|
|
13038
13037
|
bf.colStart = e3, bf.rowStart = n3, bf.colEnd = e3, bf.rowEnd = n3;
|
|
13039
13038
|
const r3 = s2.search(bf), i3 = r3.length;
|
|
@@ -13069,13 +13068,13 @@ class Sf {
|
|
|
13069
13068
|
}
|
|
13070
13069
|
}
|
|
13071
13070
|
}
|
|
13072
|
-
e3.inDegree = l3, 0 === e3.inDegree && (
|
|
13071
|
+
e3.inDegree = l3, 0 === e3.inDegree && (zf[Vf++] = e3);
|
|
13073
13072
|
}
|
|
13074
13073
|
const d2 = (t3) => {
|
|
13075
|
-
t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (
|
|
13074
|
+
t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (zf[Vf++] = t3));
|
|
13076
13075
|
};
|
|
13077
13076
|
for (; Hf < Vf; ) {
|
|
13078
|
-
const t3 =
|
|
13077
|
+
const t3 = zf[Hf++];
|
|
13079
13078
|
Wf[$f++] = t3;
|
|
13080
13079
|
const e3 = t3.colIndex, n3 = t3.rowIndex;
|
|
13081
13080
|
bf.colStart = e3, bf.rowStart = n3, bf.colEnd = e3, bf.rowEnd = n3;
|
|
@@ -13150,11 +13149,11 @@ class Sf {
|
|
|
13150
13149
|
}, (t4) => {
|
|
13151
13150
|
});
|
|
13152
13151
|
}
|
|
13153
|
-
let L2 = 1,
|
|
13154
|
-
const
|
|
13152
|
+
let L2 = 1, P2 = 1;
|
|
13153
|
+
const z2 = I2 instanceof mc;
|
|
13155
13154
|
let H2;
|
|
13156
13155
|
const V2 = I2 instanceof n.Spill;
|
|
13157
|
-
if (
|
|
13156
|
+
if (z2 || V2) {
|
|
13158
13157
|
Rf.colStart = v2, Rf.rowStart = x2, Rf.colEnd = v2, Rf.rowEnd = x2;
|
|
13159
13158
|
const t3 = f2.search(Rf);
|
|
13160
13159
|
for (let e3 = 0; !H2 && e3 < t3.length; e3++) {
|
|
@@ -13162,40 +13161,40 @@ class Sf {
|
|
|
13162
13161
|
n2.colStart === v2 && n2.rowStart === x2 && (H2 = n2);
|
|
13163
13162
|
}
|
|
13164
13163
|
if (H2) {
|
|
13165
|
-
if (
|
|
13164
|
+
if (z2) {
|
|
13166
13165
|
const t5 = I2;
|
|
13167
|
-
L2 = t5.getWidth(),
|
|
13166
|
+
L2 = t5.getWidth(), P2 = t5.getHeight();
|
|
13168
13167
|
}
|
|
13169
|
-
const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 +
|
|
13168
|
+
const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 + P2 - 1 };
|
|
13170
13169
|
f2.remove(H2), H2 && H2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
|
|
13171
13170
|
}
|
|
13172
13171
|
}
|
|
13173
13172
|
let W2 = 1, $2 = 1;
|
|
13174
13173
|
const j2 = k2, G2 = j2?.isIRange;
|
|
13175
|
-
let U2,
|
|
13174
|
+
let U2, q2 = k2 instanceof n.Spill;
|
|
13176
13175
|
if (G2 && j2.size > 1) {
|
|
13177
13176
|
W2 = j2.getWidth(), $2 = j2.getHeight();
|
|
13178
13177
|
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + W2 - 1, rowEnd: x2 + $2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
|
|
13179
|
-
if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)),
|
|
13178
|
+
if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), q2 = o3, !q2) {
|
|
13180
13179
|
const e4 = d2.search(t3);
|
|
13181
|
-
if (
|
|
13180
|
+
if (q2 = e4.length > 1, !q2 && 1 === e4.length) {
|
|
13182
13181
|
const n2 = e4[0], r3 = c.intersectRanges(t3, n2, bf);
|
|
13183
|
-
(r3 && (r3.rowEnd !== r3.rowStart || r3.colStart !== r3.colEnd) || r3.colStart !== v2 || r3.rowStart !== x2) && (
|
|
13182
|
+
(r3 && (r3.rowEnd !== r3.rowStart || r3.colStart !== r3.colEnd) || r3.colStart !== v2 || r3.rowStart !== x2) && (q2 = true);
|
|
13184
13183
|
}
|
|
13185
13184
|
}
|
|
13186
13185
|
let s3, i3;
|
|
13187
|
-
if (
|
|
13186
|
+
if (q2) {
|
|
13188
13187
|
k2 = n.BuiltIn.Spill, W2 = 1, $2 = 1;
|
|
13189
13188
|
s3 = [[T2, [[N2, [k2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
|
|
13190
13189
|
} else {
|
|
13191
13190
|
const e4 = ff(j2, T2, N2);
|
|
13192
13191
|
e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
|
|
13193
13192
|
}
|
|
13194
|
-
U2 = { ...t3, value: new Th(t3, l2,
|
|
13193
|
+
U2 = { ...t3, value: new Th(t3, l2, q2) }, f2.insert(U2), E2 = _f(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Nh(i3, _2) });
|
|
13195
13194
|
}
|
|
13196
|
-
(!c.isEqualRanges(H2, U2) ||
|
|
13197
|
-
let
|
|
13198
|
-
F2.getError() && (
|
|
13195
|
+
(!c.isEqualRanges(H2, U2) || q2 || V2) && (H2 && g2.insert(H2), U2 && g2.insert(U2)), W2 === L2 && $2 === P2 || (C2.state = Oh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(W2, L2) - 1, rowEnd: x2 + Math.max($2, P2) - 1 }), a2 = false);
|
|
13196
|
+
let J2 = k2 && k2.isFormulaError ? k2 : null;
|
|
13197
|
+
F2.getError() && (J2 = F2.getError()), (J2 || R2 && !t2) && (J2 && !J2.equals(R2) || R2 && R2.equals(J2)), C2.cachedValue = k2, s2[i2++] = C2;
|
|
13199
13198
|
}
|
|
13200
13199
|
if (o2.node = null, o2.colIndex = Number.MAX_SAFE_INTEGER, o2.rowIndex = Number.MAX_SAFE_INTEGER, w2) {
|
|
13201
13200
|
const t3 = w2.done(true);
|
|
@@ -13480,12 +13479,12 @@ let Mf = 0;
|
|
|
13480
13479
|
const Tf = 1e4, Nf = new Array(Tf), Ff = new Array(Tf), kf = /* @__PURE__ */ new Set(), Of = new Array(Tf);
|
|
13481
13480
|
let Df = 0;
|
|
13482
13481
|
const Bf = new Array(Tf);
|
|
13483
|
-
let Lf = 0,
|
|
13484
|
-
const
|
|
13482
|
+
let Lf = 0, Pf = 0;
|
|
13483
|
+
const zf = new Array(Tf);
|
|
13485
13484
|
let Hf = 0, Vf = 0;
|
|
13486
13485
|
const Wf = new Array(Tf);
|
|
13487
13486
|
let $f = 0;
|
|
13488
|
-
const jf = new Array(Tf), Gf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Uf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 },
|
|
13487
|
+
const jf = new Array(Tf), Gf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Uf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, qf = [null, null], Jf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
|
|
13489
13488
|
function Kf(t2, e2, n2, r2) {
|
|
13490
13489
|
const o2 = t2;
|
|
13491
13490
|
if (o2?.getSplit) {
|
|
@@ -13504,9 +13503,9 @@ class Yf {
|
|
|
13504
13503
|
this._instanceScope = t2;
|
|
13505
13504
|
}
|
|
13506
13505
|
async _initialize() {
|
|
13507
|
-
const t2 = await
|
|
13508
|
-
this._calcScope = e2, this._runtime = new
|
|
13509
|
-
const { initializeBuiltIns: n2 } = await import("./
|
|
13506
|
+
const t2 = await it._validate(true), e2 = Qf();
|
|
13507
|
+
this._calcScope = e2, this._runtime = new Zf(this._options, t2);
|
|
13508
|
+
const { initializeBuiltIns: n2 } = await import("./CtMYadTWqGlUD_vF.mjs"), r2 = this;
|
|
13510
13509
|
return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
|
|
13511
13510
|
}
|
|
13512
13511
|
getBuiltInFunctions() {
|
|
@@ -13626,7 +13625,7 @@ class Yf {
|
|
|
13626
13625
|
getAddress(t2, e2 = false) {
|
|
13627
13626
|
t2 || (t2 = this.getPosition());
|
|
13628
13627
|
const n2 = this.getEntireCoords().sheetName;
|
|
13629
|
-
return void 0 !== t2.colIndex ? ((t3, e3, n3 = false) => n3 ? yh(t3, e3) :
|
|
13628
|
+
return void 0 !== t2.colIndex ? ((t3, e3, n3 = false) => n3 ? yh(t3, e3) : Zc(t3, e3))(t2, n2, e2) : ((t3, e3, n3 = false) => (n3 ? yh({ colIndex: t3.colStart, rowIndex: t3.rowStart, $colIndex: t3.$colStart, $rowIndex: t3.$rowStart, sheetName: t3.sheetName }, e3) : Zc({ colIndex: t3.colStart, rowIndex: t3.rowStart, $colIndex: t3.$colStart, $rowIndex: t3.$rowStart, sheetName: t3.sheetName }, e3)) + ":" + (n3 ? yh({ colIndex: t3.colEnd, rowIndex: t3.rowEnd, $colIndex: t3.$colEnd, $rowIndex: t3.$rowEnd }, null) : Zc({ colIndex: t3.colEnd, rowIndex: t3.rowEnd, $colIndex: t3.$colEnd, $rowIndex: t3.$rowEnd }, null)))(t2, n2, e2);
|
|
13630
13629
|
}
|
|
13631
13630
|
parseAsDateTime(t2, e2 = false) {
|
|
13632
13631
|
return (function(t3, e3 = false, n2 = false) {
|
|
@@ -13655,7 +13654,7 @@ class Yf {
|
|
|
13655
13654
|
return t2;
|
|
13656
13655
|
}
|
|
13657
13656
|
}
|
|
13658
|
-
class
|
|
13657
|
+
class Zf {
|
|
13659
13658
|
constructor(t2, e2) {
|
|
13660
13659
|
this._options = t2, this._license = e2;
|
|
13661
13660
|
}
|
|
@@ -13679,7 +13678,7 @@ class Qf {
|
|
|
13679
13678
|
}
|
|
13680
13679
|
getVersion() {
|
|
13681
13680
|
try {
|
|
13682
|
-
const t2 = "0.7.
|
|
13681
|
+
const t2 = "0.7.16";
|
|
13683
13682
|
if (-1 === t2.indexOf(".env.")) return `${t2}`;
|
|
13684
13683
|
} catch (t2) {
|
|
13685
13684
|
return "local";
|
|
@@ -13692,7 +13691,7 @@ class Qf {
|
|
|
13692
13691
|
return this._license?.getLicensee?.() ?? null;
|
|
13693
13692
|
}
|
|
13694
13693
|
}
|
|
13695
|
-
const
|
|
13694
|
+
const Qf = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () => _c }), tp = { getSheetIndex: (t2) => -1, getSheetCount: () => 1, getSheetName: () => null, getEntireCoords: () => _c, getNamed: (t2, e2) => null, getFunction: (t2) => null, isDate1904: () => false }, ep = (t2, e2) => {
|
|
13696
13695
|
if (!t2) return;
|
|
13697
13696
|
const n2 = t2.length;
|
|
13698
13697
|
if (0 === n2) return;
|
|
@@ -14223,7 +14222,7 @@ class vp extends ia {
|
|
|
14223
14222
|
this._context = r2;
|
|
14224
14223
|
const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
|
|
14225
14224
|
this._functions = new bp({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
|
|
14226
|
-
const i2 = await import("./
|
|
14225
|
+
const i2 = await import("./IyYqukbNKXYTC_jZ.mjs");
|
|
14227
14226
|
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = lf.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
|
|
14228
14227
|
} catch (t2) {
|
|
14229
14228
|
throw this._status = lf.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
|
|
@@ -14409,7 +14408,7 @@ class Lp {
|
|
|
14409
14408
|
this._node.htmlText = t2.replace(/(?:\r\n|\r|\n)/g, "<br>");
|
|
14410
14409
|
}
|
|
14411
14410
|
}
|
|
14412
|
-
const
|
|
14411
|
+
const Pp = (t2) => {
|
|
14413
14412
|
const e2 = {};
|
|
14414
14413
|
if (!t2) return e2;
|
|
14415
14414
|
t2.endsWith(";") || (t2 += ";");
|
|
@@ -14428,7 +14427,7 @@ const zp = (t2) => {
|
|
|
14428
14427
|
o2 = r2.index + 1;
|
|
14429
14428
|
}
|
|
14430
14429
|
return e2;
|
|
14431
|
-
},
|
|
14430
|
+
}, zp = (t2, e2) => {
|
|
14432
14431
|
const n2 = [];
|
|
14433
14432
|
if (!t2) return n2;
|
|
14434
14433
|
const r2 = t2.children;
|
|
@@ -14454,7 +14453,7 @@ const zp = (t2) => {
|
|
|
14454
14453
|
}
|
|
14455
14454
|
const s3 = t4.getAttribute("style");
|
|
14456
14455
|
if (s3) {
|
|
14457
|
-
const t5 =
|
|
14456
|
+
const t5 = Pp(s3);
|
|
14458
14457
|
t5 && (n3 = Object.assign(n3, t5));
|
|
14459
14458
|
}
|
|
14460
14459
|
return t4.getAttribute("align") && !n3.textAlign && (n3.textAlign = t4.getAttribute("align")), n3;
|
|
@@ -14477,7 +14476,7 @@ const zp = (t2) => {
|
|
|
14477
14476
|
const t6 = new RegExp("{(.*?)}", "gs");
|
|
14478
14477
|
let e5, r4 = 0;
|
|
14479
14478
|
for (; null !== (e5 = t6.exec(o3)); ) try {
|
|
14480
|
-
const t7 = o3.substring(r4, e5.index), s4 =
|
|
14479
|
+
const t7 = o3.substring(r4, e5.index), s4 = Pp(e5[1]);
|
|
14481
14480
|
n3.set(t7.trim(), s4), r4 = e5.index + e5[0].length;
|
|
14482
14481
|
} catch (t7) {
|
|
14483
14482
|
console.warn(t7);
|
|
@@ -14496,18 +14495,18 @@ const zp = (t2) => {
|
|
|
14496
14495
|
g2 = t3[0], m2 = t3.length > 1;
|
|
14497
14496
|
}
|
|
14498
14497
|
if (!g2) {
|
|
14499
|
-
g2 =
|
|
14498
|
+
g2 = zp(d2, i3)[0];
|
|
14500
14499
|
}
|
|
14501
14500
|
if (!g2) {
|
|
14502
|
-
g2 =
|
|
14501
|
+
g2 = zp(t2, i3)[0];
|
|
14503
14502
|
}
|
|
14504
14503
|
if ("TABLE" === g2?.nodeName.toUpperCase()) {
|
|
14505
14504
|
n2.onStart?.(o2);
|
|
14506
14505
|
const t3 = g2;
|
|
14507
14506
|
n2.onTableStart?.(s2, t3);
|
|
14508
|
-
const e3 =
|
|
14507
|
+
const e3 = zp(t3, "COLGROUP");
|
|
14509
14508
|
for (let t4 = 0; e3 && t4 < e3.length; t4++) {
|
|
14510
|
-
const r3 =
|
|
14509
|
+
const r3 = zp(e3[t4], "COL");
|
|
14511
14510
|
let o3 = 0;
|
|
14512
14511
|
for (let t5 = 0; t5 < r3.length; t5++) {
|
|
14513
14512
|
const e4 = r3[t5], i5 = parseFloat(e4.getAttribute("span")), a5 = isNaN(i5) ? 1 : i5;
|
|
@@ -14963,7 +14962,7 @@ class Gp {
|
|
|
14963
14962
|
}
|
|
14964
14963
|
}
|
|
14965
14964
|
const Up = { transactional: true, ignoreDataChanges: true };
|
|
14966
|
-
class
|
|
14965
|
+
class qp extends aa {
|
|
14967
14966
|
constructor(t2) {
|
|
14968
14967
|
super({ ...t2, type: "namedReference" });
|
|
14969
14968
|
const e2 = this;
|
|
@@ -15051,7 +15050,7 @@ class Jp extends aa {
|
|
|
15051
15050
|
return this._getDescription();
|
|
15052
15051
|
}
|
|
15053
15052
|
}
|
|
15054
|
-
const
|
|
15053
|
+
const Jp = "Item must be specified.", Kp = "Name must be a non-empty string", Xp = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`, Yp = (t2) => {
|
|
15055
15054
|
const e2 = [];
|
|
15056
15055
|
for (let n2 = 0; n2 < t2.getCount(); n2++) {
|
|
15057
15056
|
let r2 = null;
|
|
@@ -15063,7 +15062,7 @@ const qp = "Item must be specified.", Kp = "Name must be a non-empty string", Xp
|
|
|
15063
15062
|
e2.push(r2 ? r2.toString().toLowerCase() : Lc);
|
|
15064
15063
|
}
|
|
15065
15064
|
return e2.sort(), e2.join(",");
|
|
15066
|
-
},
|
|
15065
|
+
}, Zp = /^[^a-zA-Z_\\]+$/, Qp = /^[^a-zA-Z0-9_.]+$/;
|
|
15067
15066
|
class t_ {
|
|
15068
15067
|
constructor(t2) {
|
|
15069
15068
|
this._emitter = null, this._closed = false, this._lastLookup = o.EmptyArray, this._lastLookupAddress = null, this._lastLookupScope = null, this._lastLookupType = null, this._allowExtrudes = false, this._options = { ...t2 };
|
|
@@ -15181,10 +15180,10 @@ class t_ {
|
|
|
15181
15180
|
if (t2.length > 255) throw new Error("Name must not exceed 255 characters.");
|
|
15182
15181
|
if (-1 !== t2.indexOf(" ")) throw new Error("Name must not contain any spaces.");
|
|
15183
15182
|
const r2 = t2.trim().toLowerCase(), o2 = r2.substring(1, t2.length - 1);
|
|
15184
|
-
if (new RegExp(
|
|
15185
|
-
if (new RegExp(
|
|
15183
|
+
if (new RegExp(Zp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
|
|
15184
|
+
if (new RegExp(Qp).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
|
|
15186
15185
|
if (1 === r2.length && ("r" === r2[0] || "c" === r2[0])) throw new Error("Name can not be 'r' or 'c'.");
|
|
15187
|
-
if (((t3, e3 =
|
|
15186
|
+
if (((t3, e3 = zc, n3 = Pc, r3 = false) => {
|
|
15188
15187
|
let o3 = gh(t3, r3);
|
|
15189
15188
|
if (!o3) return false;
|
|
15190
15189
|
if (o3[2]) return false;
|
|
@@ -15213,7 +15212,7 @@ class t_ {
|
|
|
15213
15212
|
if (!n2) throw new Error(Xp(t2));
|
|
15214
15213
|
this._delete(o2, { description: `Delete Named '${o2.getName()}'` });
|
|
15215
15214
|
}
|
|
15216
|
-
s2 = new
|
|
15215
|
+
s2 = new qp({ value: r2, addressToRanges: this._options.addressToRanges, json: { name: t2, ref: r2.toString() }, transactions: this._transactions }), this.add(s2), i2.commit();
|
|
15217
15216
|
} catch (t3) {
|
|
15218
15217
|
throw i2.rollback(), t3;
|
|
15219
15218
|
}
|
|
@@ -15221,7 +15220,7 @@ class t_ {
|
|
|
15221
15220
|
}
|
|
15222
15221
|
add(t2) {
|
|
15223
15222
|
if (this._closed) throw new Error(ra);
|
|
15224
|
-
if (!t2) throw new Error(
|
|
15223
|
+
if (!t2) throw new Error(Jp);
|
|
15225
15224
|
if (!t2.getName || "string" == typeof t2) throw new Error("Add must take a 'INamed' object. To add a string use 'addReference'.");
|
|
15226
15225
|
if (this._validateName(t2.getName(), t2.getScope(), false), this._options.isReadOnly?.()) throw new Error("Names are read-only.");
|
|
15227
15226
|
const e2 = this._beginCommit(`Insert Named Item '${t2.getName()}'`), n2 = this._add([t2]);
|
|
@@ -15234,7 +15233,7 @@ class t_ {
|
|
|
15234
15233
|
return e2.startsWith("_xlnm.") && (e2 = e2.substring(6)), t2.getScope() ? e2 + ":" + t2.getScope().toLowerCase() : e2;
|
|
15235
15234
|
}
|
|
15236
15235
|
_delete(t2, e2) {
|
|
15237
|
-
if (!t2) throw new Error(
|
|
15236
|
+
if (!t2) throw new Error(Jp);
|
|
15238
15237
|
if (this._closed) throw new Error(ra);
|
|
15239
15238
|
const n2 = this._beginCommit(e2?.description ?? `Delete Named Item '${t2.getName()}'`);
|
|
15240
15239
|
let r2 = null;
|
|
@@ -15365,7 +15364,7 @@ class t_ {
|
|
|
15365
15364
|
for (let r3 = 0; r3 < n2; r3++) {
|
|
15366
15365
|
const n3 = t2[r3];
|
|
15367
15366
|
try {
|
|
15368
|
-
const t3 = this._options.addressToRanges(n3.ref), r4 = new
|
|
15367
|
+
const t3 = this._options.addressToRanges(n3.ref), r4 = new qp({ value: t3, addressToRanges: this._options.addressToRanges, deleteFromContainer: (t4) => {
|
|
15369
15368
|
this._delete(r4, t4);
|
|
15370
15369
|
}, json: n3, transactions: this._transactions });
|
|
15371
15370
|
e3.push(r4);
|
|
@@ -15868,7 +15867,7 @@ class u_ {
|
|
|
15868
15867
|
class g_ extends ia {
|
|
15869
15868
|
constructor(t2) {
|
|
15870
15869
|
if (super({ ...t2 }), this._coordsCache = null, !t2.json) throw new Error("json is required");
|
|
15871
|
-
this._sheet = t2.sheet, this._styles = t2.sheet?.getStyles() ?? new
|
|
15870
|
+
this._sheet = t2.sheet, this._styles = t2.sheet?.getStyles() ?? new Zm(), this._options = { ...t2 }, t2.setOnContainerCoordsChange(this._processCoordsChange.bind(this)), t2.setCreateSpatial(this._createSpatial.bind(this)), this._getContainerRanges = t2.getContainerRanges, this._setContainerRanges = t2.setContainerRanges;
|
|
15872
15871
|
const e2 = this;
|
|
15873
15872
|
this._options.transactions.addStateListener(this, { onRestoreOrRevert() {
|
|
15874
15873
|
e2._coordsCache = null;
|
|
@@ -16365,7 +16364,7 @@ class k_ {
|
|
|
16365
16364
|
forEachVisibleSpan(t2, e2) {
|
|
16366
16365
|
const n2 = this._coords, r2 = n2?.min ?? null, o2 = n2?.max ?? null;
|
|
16367
16366
|
let s2;
|
|
16368
|
-
if (s2 = e2?.includeHidden ? t2(r2, o2) :
|
|
16367
|
+
if (s2 = e2?.includeHidden ? t2(r2, o2) : zs(this._header._indexedHidden, (e3) => {
|
|
16369
16368
|
if (e3.value) return;
|
|
16370
16369
|
const n3 = t2(e3.min, e3.max);
|
|
16371
16370
|
return n3 && n3.break ? n3 : void 0;
|
|
@@ -16434,7 +16433,7 @@ class k_ {
|
|
|
16434
16433
|
}
|
|
16435
16434
|
getA1() {
|
|
16436
16435
|
const t2 = this._coords, e2 = this._header, n2 = e2._isColumn ? { colStart: t2.min, colEnd: t2.max } : { rowStart: t2.min, rowEnd: t2.max };
|
|
16437
|
-
return
|
|
16436
|
+
return Qc(n2, e2._maxRangeCoords) ?? Lc;
|
|
16438
16437
|
}
|
|
16439
16438
|
get [Symbol.toStringTag]() {
|
|
16440
16439
|
return "[SheetCellHeaderRange]";
|
|
@@ -16520,7 +16519,7 @@ class O_ {
|
|
|
16520
16519
|
}
|
|
16521
16520
|
getA1() {
|
|
16522
16521
|
const t2 = this._coords, e2 = this._header;
|
|
16523
|
-
return ((t3, e3, n2 =
|
|
16522
|
+
return ((t3, e3, n2 = Qc) => {
|
|
16524
16523
|
if (!t3) return Lc;
|
|
16525
16524
|
const r2 = t3.length, o2 = new Array(r2);
|
|
16526
16525
|
for (let s2 = 0; s2 < r2; s2++) o2[s2] = n2(t3[s2], e3);
|
|
@@ -16618,15 +16617,15 @@ class D_ {
|
|
|
16618
16617
|
const i2 = o2?.min ?? null, a2 = o2?.max ?? null, l2 = s2?.includeEmpty ?? false, c2 = s2?.includeStyles ?? false, h2 = s2?.ignoreHidden ?? false, d2 = s2?.includeSizes ?? false, u2 = this, g2 = this._options.sheet.getStyles().getNormal(), m2 = this._defaultSize, f2 = this._scaleFactor, p2 = this._emptyHeader;
|
|
16619
16618
|
let _2;
|
|
16620
16619
|
const S2 = { getCoords() {
|
|
16621
|
-
if (!_2) throw new Error(
|
|
16620
|
+
if (!_2) throw new Error(Qh);
|
|
16622
16621
|
return { min: _2.min, max: _2.max };
|
|
16623
16622
|
}, getIndex: () => _2.min, getCellHeader() {
|
|
16624
|
-
if (!_2) throw new Error(
|
|
16623
|
+
if (!_2) throw new Error(Qh);
|
|
16625
16624
|
return _2.value ? n2(u2, _2.value) : p2;
|
|
16626
16625
|
}, getA1(t3) {
|
|
16627
|
-
if (!_2) throw new Error(
|
|
16626
|
+
if (!_2) throw new Error(Qh);
|
|
16628
16627
|
return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
|
|
16629
|
-
} }, w2 =
|
|
16628
|
+
} }, w2 = zs(e2, (e3) => {
|
|
16630
16629
|
const n3 = e3.value;
|
|
16631
16630
|
if (!l2 && !n3) return;
|
|
16632
16631
|
let r3 = l2;
|
|
@@ -16680,7 +16679,7 @@ class D_ {
|
|
|
16680
16679
|
at(t2) {
|
|
16681
16680
|
if (t2 < 0 || t2 > this._maxDataIndex) return this._emptyHeader;
|
|
16682
16681
|
if (this._lastHeaderRead?.offset === t2) return this._lastHeaderRead.header;
|
|
16683
|
-
const e2 =
|
|
16682
|
+
const e2 = Ps(t2, this._readCache);
|
|
16684
16683
|
if (!e2) return this._emptyHeader;
|
|
16685
16684
|
const n2 = this._options.getTextAt?.(t2) ?? t2 + "", r2 = this._options.createCellHeader(this, e2, { value: n2 });
|
|
16686
16685
|
return this._lastHeaderRead = { offset: t2, header: r2 }, r2;
|
|
@@ -17035,7 +17034,7 @@ const L_ = (t2) => {
|
|
|
17035
17034
|
}
|
|
17036
17035
|
}
|
|
17037
17036
|
return e2;
|
|
17038
|
-
},
|
|
17037
|
+
}, P_ = (t2, e2 = 0, n2 = 0) => {
|
|
17039
17038
|
let r2 = "";
|
|
17040
17039
|
const o2 = Eh, s2 = t2.length;
|
|
17041
17040
|
for (let i2 = 0; i2 < s2; i2++) {
|
|
@@ -17048,12 +17047,12 @@ const L_ = (t2) => {
|
|
|
17048
17047
|
}
|
|
17049
17048
|
return r2;
|
|
17050
17049
|
};
|
|
17051
|
-
class
|
|
17050
|
+
class z_ {
|
|
17052
17051
|
constructor(t2, e2, n2) {
|
|
17053
17052
|
this._c = t2, this._tokens = e2, this._references = n2 || o.EmptyArray;
|
|
17054
17053
|
}
|
|
17055
17054
|
getFormulaTextAt(t2, e2, n2 = false) {
|
|
17056
|
-
return n2 ? L_(this._tokens) :
|
|
17055
|
+
return n2 ? L_(this._tokens) : P_(this._tokens, t2, e2);
|
|
17057
17056
|
}
|
|
17058
17057
|
getTokensAt(t2, e2, n2) {
|
|
17059
17058
|
let r2 = this._tokens;
|
|
@@ -17312,7 +17311,7 @@ class G_ {
|
|
|
17312
17311
|
const n2 = this._state.selection;
|
|
17313
17312
|
if (n2) {
|
|
17314
17313
|
let e3 = {};
|
|
17315
|
-
!n2.cell || 0 === n2.cell.colIndex && 0 === n2.cell.rowIndex || (e3.cell =
|
|
17314
|
+
!n2.cell || 0 === n2.cell.colIndex && 0 === n2.cell.rowIndex || (e3.cell = qc(n2.cell)), n2.ranges && n2.ranges.length > 0 && (e3.ranges = oh(n2.ranges), void 0 !== n2.rangeIndex && -1 !== n2.rangeIndex && 0 !== n2.rangeIndex && (e3.rangeIndex = n2.rangeIndex)), Object.keys(e3).length > 0 && (t2.selection = e3);
|
|
17316
17315
|
}
|
|
17317
17316
|
if (delete t2.freezePanes, this._state.freezePanes && (0 !== this._state.freezePanes.coords.colIndex || 0 !== this._state.freezePanes.coords.rowIndex)) {
|
|
17318
17317
|
const e3 = {};
|
|
@@ -17366,13 +17365,13 @@ class G_ {
|
|
|
17366
17365
|
}
|
|
17367
17366
|
}
|
|
17368
17367
|
async function U_() {
|
|
17369
|
-
const { getCrypto: t2 } = await import("./
|
|
17368
|
+
const { getCrypto: t2 } = await import("./C1geTB5AlM3uG2rR.mjs");
|
|
17370
17369
|
return t2();
|
|
17371
17370
|
}
|
|
17372
|
-
const
|
|
17373
|
-
const r2 =
|
|
17371
|
+
const q_ = async (t2, e2, ...n2) => {
|
|
17372
|
+
const r2 = J_(...n2);
|
|
17374
17373
|
return t2.subtle.digest(e2, r2);
|
|
17375
|
-
},
|
|
17374
|
+
}, J_ = (...t2) => {
|
|
17376
17375
|
const e2 = t2.reduce((t3, e3) => t3 + e3.byteLength, 0), n2 = new Uint8Array(e2);
|
|
17377
17376
|
let r2 = 0;
|
|
17378
17377
|
return t2.forEach((t3) => {
|
|
@@ -17417,10 +17416,10 @@ class X_ {
|
|
|
17417
17416
|
for (let t4 = 0; t4 < e3.length; t4++) n3[t4] = e3.charCodeAt(t4);
|
|
17418
17417
|
return n3.buffer;
|
|
17419
17418
|
})(e2);
|
|
17420
|
-
let a2 = await
|
|
17419
|
+
let a2 = await q_(o2, n2, i2, s2.buffer);
|
|
17421
17420
|
for (let t3 = 0; t3 < r2; t3++) {
|
|
17422
17421
|
const e3 = new Uint32Array([t3]).buffer;
|
|
17423
|
-
a2 = await
|
|
17422
|
+
a2 = await q_(o2, n2, a2, e3);
|
|
17424
17423
|
}
|
|
17425
17424
|
return K_(a2);
|
|
17426
17425
|
}
|
|
@@ -17508,8 +17507,8 @@ class Y_ {
|
|
|
17508
17507
|
return t2 = this._toJSON(t2) ?? {}, this._password && (t2.password = this._password), this._identities && (t2.identities = this._identities), t2;
|
|
17509
17508
|
}
|
|
17510
17509
|
}
|
|
17511
|
-
const
|
|
17512
|
-
class
|
|
17510
|
+
const Z_ = Object.freeze({ selectLockedCells: true, selectUnlockedCells: true, autoFilter: false, deleteColumns: false, deleteRows: false, formatCells: false, formatColumns: false, formatRows: false, insertColumns: false, insertHyperlinks: false, insertRows: false, objects: false, pivotTables: false, scenarios: false, sheet: false, sort: false, verifier: null });
|
|
17511
|
+
class Q_ extends Y_ {
|
|
17513
17512
|
isAutoFilterAllowed() {
|
|
17514
17513
|
return this._isPropertyAllowed("autoFilter");
|
|
17515
17514
|
}
|
|
@@ -17571,7 +17570,7 @@ class Z_ extends Y_ {
|
|
|
17571
17570
|
const n2 = Object.keys(e2);
|
|
17572
17571
|
for (let r2 = 0; r2 < n2.length; r2++) {
|
|
17573
17572
|
const o2 = e2[n2[r2]];
|
|
17574
|
-
null != o2 && o2 !==
|
|
17573
|
+
null != o2 && o2 !== Z_[n2[r2]] && (t2[n2[r2]] = o2);
|
|
17575
17574
|
}
|
|
17576
17575
|
}
|
|
17577
17576
|
return super._toJSON(t2);
|
|
@@ -17768,7 +17767,7 @@ class tS {
|
|
|
17768
17767
|
return false;
|
|
17769
17768
|
}
|
|
17770
17769
|
getA1() {
|
|
17771
|
-
return sh(this.getCoords(), this._sheet._entireCoords,
|
|
17770
|
+
return sh(this.getCoords(), this._sheet._entireCoords, Qc, Jc);
|
|
17772
17771
|
}
|
|
17773
17772
|
getSheet() {
|
|
17774
17773
|
return this._sheet;
|
|
@@ -17871,7 +17870,7 @@ class eS {
|
|
|
17871
17870
|
const o2 = this.getCoords();
|
|
17872
17871
|
r2 || (r2 = o2);
|
|
17873
17872
|
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 = Al(Array.isArray(t2) ? t2 : [[t2]], l2, a2);
|
|
17874
|
-
return s2._updateTuples(h2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Cell" : "Range"} ${
|
|
17873
|
+
return s2._updateTuples(h2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Cell" : "Range"} ${Qc(r2, s2._entireCoords)}`, ...n2 }, null, { isCell: true }), this;
|
|
17875
17874
|
}
|
|
17876
17875
|
setValues(t2, e2) {
|
|
17877
17876
|
if (!Array.isArray(t2)) throw new C("'setValues' expects a 2d array; when working with a single value use 'setValue'.");
|
|
@@ -17898,7 +17897,7 @@ class eS {
|
|
|
17898
17897
|
}
|
|
17899
17898
|
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;
|
|
17900
17899
|
let u2 = null;
|
|
17901
|
-
return u2 = l2 ? Al(Array.isArray(t2) ? t2 : [[t2]], d2, h2) : Rl(t2, h2, i2), s2._updateTuples(u2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Value" : "Values"} ${
|
|
17900
|
+
return u2 = l2 ? Al(Array.isArray(t2) ? t2 : [[t2]], d2, h2) : Rl(t2, h2, i2), s2._updateTuples(u2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Value" : "Values"} ${Qc(r2, s2._entireCoords)}`, ...n2 }), o2;
|
|
17902
17901
|
}
|
|
17903
17902
|
getValues(t2) {
|
|
17904
17903
|
this._validateMaxSize(t2?.maxSize);
|
|
@@ -18193,14 +18192,14 @@ class eS {
|
|
|
18193
18192
|
}
|
|
18194
18193
|
getA1() {
|
|
18195
18194
|
const t2 = this._sheet;
|
|
18196
|
-
return
|
|
18195
|
+
return Qc(this.getCoords(), t2._entireCoords);
|
|
18197
18196
|
}
|
|
18198
18197
|
get [Symbol.toStringTag]() {
|
|
18199
18198
|
return "[SheetRange]";
|
|
18200
18199
|
}
|
|
18201
18200
|
toString() {
|
|
18202
18201
|
const t2 = this._sheet;
|
|
18203
|
-
return
|
|
18202
|
+
return Qc(this.getCoords(), t2._entireCoords);
|
|
18204
18203
|
}
|
|
18205
18204
|
get isICellRange() {
|
|
18206
18205
|
return true;
|
|
@@ -18214,11 +18213,11 @@ class hS {
|
|
|
18214
18213
|
constructor(t2) {
|
|
18215
18214
|
this._lastTransactionUUID = null, this._emitter = null, this._initializing = true, this._emitterMovables = null, this._rangesListenerSorted = null, this._lastCellDecoded = { address: null, coords: null }, this._lastCellSelected = { coords: null, cell: null }, this._lastCellRead = { coords: null, cell: null }, this._lastValueRead = { range: null, isDateOrTime: null }, this._lastGetRangeRead = {}, this._lastUsedCoordsRead = { coords: null, range: null }, this._lastActiveRead = { selection: null, range: null, ranges: null }, this._lastRangeRead = { address: null, range: null, ranges: null }, this._isDataColumn = true, this._isDate1904 = false, this._colHeaders = null, this._colHeadersShiftCallback = null, this._colHeadersListener = null, this._colHeadersRemoveListener = null, this._rowHeaders = null, this._rowHeadersShiftCallback = null, this._rowHeadersListener = null, this._rowHeadersRemoveListener = null, this._closed = false;
|
|
18216
18215
|
const e2 = Object.freeze({ ...t2 });
|
|
18217
|
-
|
|
18216
|
+
it._validate(true), this._transactions = e2.transactions ?? new O(), this._ownTransactions = !e2.transactions;
|
|
18218
18217
|
const n2 = this._beginCommit({ description: "New Sheet" }), r2 = this;
|
|
18219
18218
|
try {
|
|
18220
18219
|
this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? nS) - 1, rowEnd: (e2.maxRows ?? rS) - 1 }), this._strings = e2.strings ?? new sf(), this._ownStrings = !e2.strings;
|
|
18221
|
-
const t3 = e2.styles ?? new
|
|
18220
|
+
const t3 = e2.styles ?? new Zm();
|
|
18222
18221
|
this._styles = t3, this._ownStyles = !e2.styles, this._names = e2.names ?? new t_({ addressToRanges: (t4) => r2.getRanges(t4), getCurrentScope: () => r2.getName(), isReadOnly: () => r2._options.readonly ?? false, transactions: r2._transactions }), this._ownNames = !e2.names, this._namesRemoveListener = this._names.addListeners({ onCollectionChange: (t4) => {
|
|
18223
18222
|
r2._calculateFull();
|
|
18224
18223
|
} }, { transactional: false }), this._calculation = e2.calculation ?? new vp({ getNamed: (t4, e3) => {
|
|
@@ -18442,7 +18441,7 @@ class hS {
|
|
|
18442
18441
|
if (!n2 || !t2 || !t2.includeRangeTypes) return fa;
|
|
18443
18442
|
const r2 = t2?.bounds ?? this._getUsedCoords() ?? this._entireCoords;
|
|
18444
18443
|
let s2 = null;
|
|
18445
|
-
true === t2.includeRangeTypes ? s2 =
|
|
18444
|
+
true === t2.includeRangeTypes ? s2 = Ph : o.isObject(t2.includeRangeTypes) && (s2 = t2.includeRangeTypes);
|
|
18446
18445
|
const i2 = t2?.ignoreHidden, a2 = true === i2 || i2 === e.Orientation.Row, l2 = true === i2 || i2 === e.Orientation.Column, c2 = t2?.includeMergeOverflow ?? false, h2 = [], d2 = this, u2 = { includeHidden: !l2 }, g2 = { min: r2.colStart, max: r2.colEnd }, m2 = { includeHidden: !a2 }, f2 = { min: r2.rowStart, max: r2.rowEnd };
|
|
18447
18446
|
this._rowHeaders.getRange(f2).forEachVisibleSpan((t3, e2) => {
|
|
18448
18447
|
this._colHeaders.getRange(g2).forEachVisibleSpan((r3, o2) => {
|
|
@@ -18507,7 +18506,7 @@ class hS {
|
|
|
18507
18506
|
bS.colStart = o3, bS.rowStart = r3, bS.colEnd = o3, bS.rowEnd = r3;
|
|
18508
18507
|
const e3 = Hg(0, bS, n3.intersection, _2);
|
|
18509
18508
|
n3.style = e3;
|
|
18510
|
-
const a3 =
|
|
18509
|
+
const a3 = Pg(r3, o3, t.String, e3, s3, null, null, i3?.getCoords(), _2);
|
|
18511
18510
|
if (a3) {
|
|
18512
18511
|
const t2 = a3.leftIndex, e4 = a3.rightIndex;
|
|
18513
18512
|
n3.leftIndex = t2, n3.rightIndex = e4, (e4 > 0 && o3 < l2 || t2 > 0 && o3 > h2) && (n3.overflow = a3);
|
|
@@ -18534,7 +18533,7 @@ class hS {
|
|
|
18534
18533
|
}
|
|
18535
18534
|
const u2 = a2 || !t2?.ignoreEmptyIntersections;
|
|
18536
18535
|
let g2 = t2.includeRangeTypes;
|
|
18537
|
-
true === g2 && (g2 =
|
|
18536
|
+
true === g2 && (g2 = zh);
|
|
18538
18537
|
const m2 = t2?.includeMergeOverflow ?? false, f2 = g2 ? this._rangeStateIterator({ bounds: o2, orientation: s2, reverse: i2, includeRangeTypes: g2, includeMergeOverflow: m2, ignoreHidden: t2.ignoreHidden, byCell: true }) : fa;
|
|
18539
18538
|
let p2, _2;
|
|
18540
18539
|
if (m2 && r2) {
|
|
@@ -18726,19 +18725,19 @@ class hS {
|
|
|
18726
18725
|
} while (F2);
|
|
18727
18726
|
return F2;
|
|
18728
18727
|
};
|
|
18729
|
-
const O2 = c2.getState(this), D2 = O2.cellValuesGrid.clone(), B2 = O2.calcGraph.clone(), L2 = O2.formulaSpatial.clone(),
|
|
18728
|
+
const O2 = c2.getState(this), D2 = O2.cellValuesGrid.clone(), B2 = O2.calcGraph.clone(), L2 = O2.formulaSpatial.clone(), P2 = O2.spillSpatial.clone(), z2 = O2.pendingSpatial.clone(), H2 = O2.calcErrorsSpatial.clone(), V2 = O2.contentfulSpatial.clone(), W2 = Fl(u2), $2 = Fl(u2, (t3, e2) => {
|
|
18730
18729
|
if (t3 === e2) return e2;
|
|
18731
18730
|
}), j2 = Fl(u2, (t3, e2) => {
|
|
18732
18731
|
if (t3 === e2) return e2;
|
|
18733
18732
|
}), G2 = Fl(u2, (t3, e2) => {
|
|
18734
18733
|
if (t3 === e2) return e2;
|
|
18735
18734
|
}), U2 = [];
|
|
18736
|
-
let
|
|
18735
|
+
let q2 = null, J2 = null;
|
|
18737
18736
|
if (false !== n2?.textParser) {
|
|
18738
18737
|
const t3 = n2 && true !== n2.textParser ? n2.textParser : {};
|
|
18739
|
-
|
|
18738
|
+
J2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, q2 = new pm(p2, null, this._cellOptions);
|
|
18740
18739
|
}
|
|
18741
|
-
const K2 = [], X2 = this._cellOptions, Y2 = /* @__PURE__ */ new Map(),
|
|
18740
|
+
const K2 = [], X2 = this._cellOptions, Y2 = /* @__PURE__ */ new Map(), Z2 = wm, Q2 = (t3, e2, n3) => {
|
|
18742
18741
|
const r3 = k2?.(e2, n3);
|
|
18743
18742
|
if (r3?.merge) {
|
|
18744
18743
|
const t4 = r3.merge.getCoords(), o4 = u2 ? t4.colStart : t4.rowStart, s3 = u2 ? t4.rowStart : t4.colStart;
|
|
@@ -18751,13 +18750,13 @@ class hS {
|
|
|
18751
18750
|
U2.push({ colStart: u2 ? e2 : n3, rowStart: u2 ? n3 : e2, colEnd: (u2 ? e2 : n3) + t4.width - 1, rowEnd: (u2 ? n3 : e2) + t4.height - 1 });
|
|
18752
18751
|
}
|
|
18753
18752
|
}
|
|
18754
|
-
let o3 = kg(t3, X2,
|
|
18753
|
+
let o3 = kg(t3, X2, J2, Y2);
|
|
18755
18754
|
if (void 0 === o3) return;
|
|
18756
18755
|
const a3 = o3.value;
|
|
18757
18756
|
if (o3.stringToParse) {
|
|
18758
|
-
SS[0].colIndex = u2 ? e2 : n3, SS[0].rowIndex = u2 ? n3 : e2, SS[1] = a3, SS[2] = r3,
|
|
18759
|
-
const t4 =
|
|
18760
|
-
if (
|
|
18757
|
+
SS[0].colIndex = u2 ? e2 : n3, SS[0].rowIndex = u2 ? n3 : e2, SS[1] = a3, SS[2] = r3, q2.setState(SS);
|
|
18758
|
+
const t4 = J2?.parse(o3.stringToParse, q2.context), s3 = kg(t4, X2, J2, Y2, true);
|
|
18759
|
+
if (q2.clear(), null === s3) return s3;
|
|
18761
18760
|
void 0 !== s3 && (o3 = { ...s3 });
|
|
18762
18761
|
}
|
|
18763
18762
|
if (m2) {
|
|
@@ -18790,9 +18789,9 @@ class hS {
|
|
|
18790
18789
|
for (let t6 = 0; t6 < a3; t6++) {
|
|
18791
18790
|
const e4 = i5[t6];
|
|
18792
18791
|
let r5 = null;
|
|
18793
|
-
if (x2 || "number" != typeof e4 ? (x2 || null !== e4 || s2) && (r5 =
|
|
18792
|
+
if (x2 || "number" != typeof e4 ? (x2 || null !== e4 || s2) && (r5 = Q2(e4, n3, c3)) : r5 = e4, null == r5) {
|
|
18794
18793
|
if (null === r5 && W2.append(n3, c3), h3.length > 0) {
|
|
18795
|
-
const t7 =
|
|
18794
|
+
const t7 = Z2(h3, p2);
|
|
18796
18795
|
o4.push([l3, t7]), h3 = [];
|
|
18797
18796
|
}
|
|
18798
18797
|
l3 = c3 + 1;
|
|
@@ -18800,7 +18799,7 @@ class hS {
|
|
|
18800
18799
|
c3++;
|
|
18801
18800
|
}
|
|
18802
18801
|
if (et2 = c3, h3.length > 0) {
|
|
18803
|
-
const t6 =
|
|
18802
|
+
const t6 = Z2(h3, p2);
|
|
18804
18803
|
o4.push([l3, t6]), h3 = null;
|
|
18805
18804
|
}
|
|
18806
18805
|
}
|
|
@@ -18825,7 +18824,7 @@ class hS {
|
|
|
18825
18824
|
const b3 = $2.done();
|
|
18826
18825
|
b3.length > 0 && this._updateStyles(b3), U2.length > 0 && this._merge(U2);
|
|
18827
18826
|
const v3 = j2.done();
|
|
18828
|
-
if (v3.length > 0 && this._setHyperlinks(v3), this._updateState({ cellValuesGrid: D2, contentfulSpatial: V2, calcGraph: B2, formulaSpatial: L2, spillSpatial:
|
|
18827
|
+
if (v3.length > 0 && this._setHyperlinks(v3), this._updateState({ cellValuesGrid: D2, contentfulSpatial: V2, calcGraph: B2, formulaSpatial: L2, spillSpatial: P2, pendingSpatial: z2, calcErrorsSpatial: H2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
|
|
18829
18828
|
const t4 = "boolean" == typeof n2.autoFit ? ES : n2.autoFit;
|
|
18830
18829
|
this._autoFit([E2], t4);
|
|
18831
18830
|
}
|
|
@@ -18927,9 +18926,9 @@ class hS {
|
|
|
18927
18926
|
}
|
|
18928
18927
|
return 0;
|
|
18929
18928
|
});
|
|
18930
|
-
const
|
|
18931
|
-
let
|
|
18932
|
-
I2 || (
|
|
18929
|
+
const P2 = this._beginCommit({ description: r2 });
|
|
18930
|
+
let z2 = [u2];
|
|
18931
|
+
I2 || (z2 = this._getVisible(z2, { orientations: c2 ? e.Orientations.Row : e.Orientations.Column })), this._clear(z2, void 0, void 0, true);
|
|
18933
18932
|
const H2 = this._createIncrementalUpdater({ orientation: l2 });
|
|
18934
18933
|
let V2 = c2 ? u2.rowStart : u2.colStart;
|
|
18935
18934
|
const W2 = w2.length;
|
|
@@ -18944,7 +18943,7 @@ class hS {
|
|
|
18944
18943
|
}
|
|
18945
18944
|
V2 += A2;
|
|
18946
18945
|
}
|
|
18947
|
-
return H2.apply(),
|
|
18946
|
+
return H2.apply(), P2.commit(), u2;
|
|
18948
18947
|
}
|
|
18949
18948
|
_autoFill(t2, n2, r2) {
|
|
18950
18949
|
const { direction: o2, amount: s2 } = ((t3, n3) => {
|
|
@@ -18979,9 +18978,9 @@ class hS {
|
|
|
18979
18978
|
let B2 = null;
|
|
18980
18979
|
h2 || (m2 = this._beginCommit({ description: "Auto Fill", operation: { name: "autoFill", params: [t2, n2, r2] } }));
|
|
18981
18980
|
const L2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Lh.Type.Style]: false } });
|
|
18982
|
-
let
|
|
18983
|
-
for (; !
|
|
18984
|
-
const t3 =
|
|
18981
|
+
let P2 = L2.next();
|
|
18982
|
+
for (; !P2.done; ) {
|
|
18983
|
+
const t3 = P2.value.context, e2 = t3.getCell(), n3 = t3.getCoords();
|
|
18985
18984
|
B2?.oppositeIndex !== n3[v2] && (B2 = { oppositeIndex: n3[v2], lastIndex: N2 ? R2 - 1 : A2 + 1, values: [] }, D2.push(B2));
|
|
18986
18985
|
const r3 = n3[b2];
|
|
18987
18986
|
if (N2) for (let t4 = B2.lastIndex + 1; t4 < r3; t4++) B2.values.push(null);
|
|
@@ -18993,10 +18992,10 @@ class hS {
|
|
|
18993
18992
|
let t4 = e2.getValue();
|
|
18994
18993
|
B2.values.push(t4);
|
|
18995
18994
|
}
|
|
18996
|
-
|
|
18995
|
+
P2 = L2.next();
|
|
18997
18996
|
}
|
|
18998
|
-
const
|
|
18999
|
-
for (let t3 = 0; t3 <
|
|
18997
|
+
const z2 = D2.length;
|
|
18998
|
+
for (let t3 = 0; t3 < z2; t3++) {
|
|
19000
18999
|
const e2 = D2[t3].values;
|
|
19001
19000
|
for (let t4 = e2.length; t4 < I2; t4++) e2.push(null);
|
|
19002
19001
|
}
|
|
@@ -19057,19 +19056,19 @@ class hS {
|
|
|
19057
19056
|
}
|
|
19058
19057
|
this._merge(n3);
|
|
19059
19058
|
}
|
|
19060
|
-
const U2 = this._getState(),
|
|
19061
|
-
|
|
19059
|
+
const U2 = this._getState(), q2 = {}, J2 = {};
|
|
19060
|
+
J2.directStyleSpatial = U2.directStyleSpatial, J2.continuousFillSpatial = U2.continuousFillSpatial;
|
|
19062
19061
|
let K2 = t2, X2 = p2;
|
|
19063
19062
|
if (!N2) {
|
|
19064
19063
|
let e2 = (i2 ? _2.rowEnd + 1 - _2.rowStart : _2.colEnd + 1 - _2.colStart) % I2;
|
|
19065
19064
|
const n3 = i2 ? "rowStart" : "colStart", r3 = i2 ? "rowEnd" : "colEnd";
|
|
19066
19065
|
0 !== e2 && (X2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, K2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
|
|
19067
19066
|
}
|
|
19068
|
-
const Y2 = Object.keys(
|
|
19069
|
-
for (let t3 = 0; t3 <
|
|
19070
|
-
const e2 = Y2[t3], n3 =
|
|
19067
|
+
const Y2 = Object.keys(J2), Z2 = Y2.length;
|
|
19068
|
+
for (let t3 = 0; t3 < Z2; t3++) {
|
|
19069
|
+
const e2 = Y2[t3], n3 = J2[e2].createCopiedEntries(K2, X2), r3 = U2[e2].clone(), o3 = n3.removes, s3 = o3.length;
|
|
19071
19070
|
for (let t4 = 0; t4 < s3; t4++) r3.remove(o3[t4]);
|
|
19072
|
-
r3.load(n3.inserts),
|
|
19071
|
+
r3.load(n3.inserts), q2[e2] = r3;
|
|
19073
19072
|
}
|
|
19074
19073
|
if (N2) {
|
|
19075
19074
|
const e2 = this.getTables().getItems({ address: { rowIndex: t2.rowEnd, colIndex: t2.colEnd } });
|
|
@@ -19078,8 +19077,8 @@ class hS {
|
|
|
19078
19077
|
t3.resize({ colStart: n3.colStart, rowStart: n3.rowStart, colEnd: i2 ? n3.colEnd : p2.colEnd, rowEnd: i2 ? p2.rowEnd : n3.rowEnd });
|
|
19079
19078
|
}
|
|
19080
19079
|
}
|
|
19081
|
-
const
|
|
19082
|
-
|
|
19080
|
+
const Q2 = U2.calcGraph.clone();
|
|
19081
|
+
Q2.autoFill(t2, p2), q2.calcGraph = Q2, this._updateState(q2), f2 = { ...a2, ranges: l2 }, m2.commit({ viewBefore: { view: this.getView(), selection: Cm([t2]), selectOptions: r2?.autoSelect }, viewAfter: { view: this.getView(), selection: f2, selectOptions: r2?.autoSelect } }), this._autoSelect(r2?.autoSelect ?? false, f2);
|
|
19083
19082
|
} catch (t3) {
|
|
19084
19083
|
throw m2?.rollback(), t3;
|
|
19085
19084
|
}
|
|
@@ -19149,7 +19148,7 @@ class hS {
|
|
|
19149
19148
|
if (e2) {
|
|
19150
19149
|
const n3 = [], s2 = e2.length;
|
|
19151
19150
|
for (let t3 = 0; t3 < s2; t3++) {
|
|
19152
|
-
const s3 = e2[t3], i2 = c.sanitizeRange(s3), a2 = new
|
|
19151
|
+
const s3 = e2[t3], i2 = c.sanitizeRange(s3), a2 = new z_(i2, s3.value.tokens, s3.value.references);
|
|
19153
19152
|
if (n3.push({ colStart: i2.colStart, rowStart: i2.rowStart, colEnd: i2.colEnd, rowEnd: i2.rowEnd, value: a2 }), !r2) continue;
|
|
19154
19153
|
const l2 = s3.value.precedents;
|
|
19155
19154
|
let h2, d2, u2 = false;
|
|
@@ -19165,7 +19164,7 @@ class hS {
|
|
|
19165
19164
|
if (e4) if (h2) {
|
|
19166
19165
|
d2 || (d2 = xi.Styles.lookupStyle(h2)?.formatType);
|
|
19167
19166
|
const t6 = xi.Styles.lookupStyle(e4)?.formatType;
|
|
19168
|
-
|
|
19167
|
+
Qr(t6, d2) > 0 ? (d2 = t6, h2 = e4) : u2 = true;
|
|
19169
19168
|
} else h2 = e4;
|
|
19170
19169
|
}
|
|
19171
19170
|
}
|
|
@@ -19353,7 +19352,7 @@ class hS {
|
|
|
19353
19352
|
const d2 = this._getMerges(t2);
|
|
19354
19353
|
if (ic(t2) || d2.length > 0) {
|
|
19355
19354
|
const e2 = c.unionRangesArrays(d2), n3 = c.unionRangesArrays(t2);
|
|
19356
|
-
if (!(!e2 && !n3 || e2 && n3 && c.isRangeWithinRange(e2, n3))) throw console.warn(
|
|
19355
|
+
if (!(!e2 && !n3 || e2 && n3 && c.isRangeWithinRange(e2, n3))) throw console.warn(Jh, t2), new C(Jh);
|
|
19357
19356
|
this._unmerge(d2);
|
|
19358
19357
|
}
|
|
19359
19358
|
const u2 = this._createIncrementalUpdater({ orientation: e.Orientation.Column }), g2 = [], m2 = [];
|
|
@@ -19706,8 +19705,8 @@ class hS {
|
|
|
19706
19705
|
}
|
|
19707
19706
|
const F2 = n2._getState(), k2 = {}, O2 = { transpose: s3 ?? false };
|
|
19708
19707
|
g2 && (k2.directStyleSpatial = F2.directStyleSpatial, k2.continuousFillSpatial = F2.continuousFillSpatial, k2.mergeSpatial = F2.mergeSpatial), u2 && (t2._clear([d2], void 0, void 0, false, true), E2.push(d2), k2.rangesListenerSpatial2 = F2.rangesListenerSpatial2);
|
|
19709
|
-
const D2 = l2, B2 = D2._getState(), L2 = Object.keys(k2),
|
|
19710
|
-
for (let t3 = 0; t3 <
|
|
19708
|
+
const D2 = l2, B2 = D2._getState(), L2 = Object.keys(k2), P2 = L2.length;
|
|
19709
|
+
for (let t3 = 0; t3 < P2; t3++) {
|
|
19711
19710
|
const e2 = L2[t3], n3 = k2[e2].createCopiedEntries(d2, x2, O2), r4 = B2[e2].clone(), o2 = n3.removes, s4 = o2.length;
|
|
19712
19711
|
for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
|
|
19713
19712
|
r4.load(n3.inserts), B2[e2] = r4;
|
|
@@ -19772,7 +19771,7 @@ class hS {
|
|
|
19772
19771
|
return null;
|
|
19773
19772
|
}
|
|
19774
19773
|
_getDefaultShiftOrientation(t2) {
|
|
19775
|
-
return
|
|
19774
|
+
return Zg(t2, this._entireCoords);
|
|
19776
19775
|
}
|
|
19777
19776
|
_getDefaultSortCriteria(t2, e2, n2) {
|
|
19778
19777
|
return Sm(this, t2, n2 ? this._cellToCoords(n2) : null, e2);
|
|
@@ -19879,7 +19878,7 @@ class hS {
|
|
|
19879
19878
|
}
|
|
19880
19879
|
}
|
|
19881
19880
|
_autoFit(n2, r2) {
|
|
19882
|
-
if (this._closed) throw new Error(
|
|
19881
|
+
if (this._closed) throw new Error(Zh);
|
|
19883
19882
|
r2 = { expandOnly: false, skipCustomSize: false, minContent: false, ...r2 };
|
|
19884
19883
|
const o2 = "Autofit";
|
|
19885
19884
|
let s2;
|
|
@@ -19909,10 +19908,10 @@ class hS {
|
|
|
19909
19908
|
const r3 = [];
|
|
19910
19909
|
let f3 = -1, p3 = false, A3 = b2, T3 = 1, N3 = 1, F3 = 1;
|
|
19911
19910
|
const D2 = R2[n3];
|
|
19912
|
-
let B2 = D2.colStart, L2 = D2.rowStart,
|
|
19911
|
+
let B2 = D2.colStart, L2 = D2.rowStart, P2 = D2.colEnd, z2 = D2.rowEnd;
|
|
19913
19912
|
const H2 = this._getUsedCoords();
|
|
19914
|
-
(u2 || d2) && H2 && (B2 = u2 ? H2.colStart : D2.colStart, L2 = d2 ? H2.rowStart : D2.rowStart,
|
|
19915
|
-
const V2 = { includeRangeTypes: { [Lh.Type.Style]: false, [Lh.Type.Merge]: false, [Lh.Type.Continuous]: false, [Lh.Type.Contentful]: false }, ignoreHidden: false, bounds: { colStart: B2, rowStart: L2, colEnd:
|
|
19913
|
+
(u2 || d2) && H2 && (B2 = u2 ? H2.colStart : D2.colStart, L2 = d2 ? H2.rowStart : D2.rowStart, P2 = u2 ? H2.colEnd : D2.colEnd, z2 = d2 ? H2.rowEnd : D2.rowEnd);
|
|
19914
|
+
const V2 = { includeRangeTypes: { [Lh.Type.Style]: false, [Lh.Type.Merge]: false, [Lh.Type.Continuous]: false, [Lh.Type.Contentful]: false }, ignoreHidden: false, bounds: { colStart: B2, rowStart: L2, colEnd: P2, rowEnd: z2 }, orientation: e.Orientation.Column }, W2 = h2 ? [] : void 0, $2 = l2 ? [] : void 0, j2 = (t2, e2, n4) => {
|
|
19916
19915
|
if (t2 > e2) return null;
|
|
19917
19916
|
const r4 = [];
|
|
19918
19917
|
let o4 = t2;
|
|
@@ -19938,38 +19937,38 @@ class hS {
|
|
|
19938
19937
|
gS.colStart = n4.colIndex, gS.rowStart = n4.rowIndex, gS.colEnd = r4.colIndex, gS.rowEnd = r4.rowIndex;
|
|
19939
19938
|
const o4 = c.intersectRanges(gS, D2, uS), s4 = Hg(0, o4, e2, v2).getBestFit();
|
|
19940
19939
|
if (h2) {
|
|
19941
|
-
const t3 = Math.max(n4.rowIndex, L2), e3 = Math.min(r4.rowIndex,
|
|
19940
|
+
const t3 = Math.max(n4.rowIndex, L2), e3 = Math.min(r4.rowIndex, z2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: k2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
|
|
19942
19941
|
W2.push(i4);
|
|
19943
19942
|
}
|
|
19944
19943
|
if (l2) {
|
|
19945
|
-
const t3 = Math.max(n4.colIndex, B2), e3 = Math.min(r4.colIndex,
|
|
19944
|
+
const t3 = Math.max(n4.colIndex, B2), e3 = Math.min(r4.colIndex, P2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
|
|
19946
19945
|
$2.push(i4);
|
|
19947
19946
|
}
|
|
19948
19947
|
U2 = G2.next();
|
|
19949
19948
|
}
|
|
19950
|
-
const
|
|
19951
|
-
let
|
|
19949
|
+
const q2 = this._cellStateIterator({ ...V2, includeRangeTypes: { [Lh.Type.Merge]: false, [Lh.Type.Table]: false, [Lh.Type.Style]: false, [Lh.Type.Continuous]: false }, ignoreEmptyIntersections: true });
|
|
19950
|
+
let J2, K2, X2, Y2 = q2.next(), Z2 = 1, Q2 = 1;
|
|
19952
19951
|
for (; !Y2.done; ) {
|
|
19953
19952
|
const e2 = Y2.value, n4 = e2[0], l3 = e2[2];
|
|
19954
19953
|
let h3 = b2;
|
|
19955
19954
|
const d3 = l3?.directStyle ?? l3?.table.getStyle() ?? null;
|
|
19956
|
-
d3 ===
|
|
19955
|
+
d3 === J2 ? h3 = K2 : (h3 = d3 ? Hg(0, c.cellToRange(n4, mS), l3, v2) : b2, K2 = h3);
|
|
19957
19956
|
let u3 = 1, g3 = 1;
|
|
19958
19957
|
const m3 = l3?.merge ?? null;
|
|
19959
|
-
if (m3 === X2) u3 =
|
|
19958
|
+
if (m3 === X2) u3 = Z2, g3 = Q2;
|
|
19960
19959
|
else {
|
|
19961
19960
|
if (m3) {
|
|
19962
19961
|
const t2 = m3.getCoords();
|
|
19963
19962
|
u3 = t2.colEnd - t2.colStart + 1, g3 = t2.rowEnd - t2.rowStart + 1;
|
|
19964
19963
|
} else u3 = 1, g3 = 1;
|
|
19965
|
-
|
|
19964
|
+
Z2 = u3, Q2 = g3;
|
|
19966
19965
|
}
|
|
19967
19966
|
const x3 = n4.colIndex, I3 = n4.rowIndex, R3 = e2[1], M3 = yc(R3), k3 = c.isCellWithinRange(n4, D2), O3 = l3?.continuous ?? null;
|
|
19968
19967
|
if (O3) {
|
|
19969
19968
|
F3 = O3.getCoords().colEnd - x3 + 1;
|
|
19970
19969
|
}
|
|
19971
19970
|
let B3 = false, L3 = false;
|
|
19972
|
-
if (
|
|
19971
|
+
if (J2 === d3 && u3 === T3 && g3 === N3 && M3 !== t.String && M3 !== t.Error && k3 === p3 || (B3 = true, M3 === t.RichData && (L3 = true), L3 && (B3 = false)), J2 = d3, X2 = m3, (f3 !== x3 || B3) && (-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), measureWidth: -1, measureHeight: -1, colSpan: F3, isFit: p3 }), f3 = x3, A3 = h3, p3 = k3, T3 = u3, N3 = g3, o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, w2 = false, S2 = false, y2 = false, E2 = I3), C2 = I3, !L3) if (null === R3) y2 = true;
|
|
19973
19972
|
else switch (M3) {
|
|
19974
19973
|
case t.Number:
|
|
19975
19974
|
0 === R3 && (i3 = true), o3 = Math.min(o3, R3), s3 = Math.max(s3, R3);
|
|
@@ -19983,7 +19982,7 @@ class hS {
|
|
|
19983
19982
|
case t.Boolean:
|
|
19984
19983
|
R3 ? S2 = true : w2 = true;
|
|
19985
19984
|
}
|
|
19986
|
-
Y2 =
|
|
19985
|
+
Y2 = q2.next();
|
|
19987
19986
|
}
|
|
19988
19987
|
-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: T3, spanHeight: N3, 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: F3, measureWidth: -1, measureHeight: -1, isFit: p3 });
|
|
19989
19988
|
let tt2 = -1, et2 = -1;
|
|
@@ -20155,7 +20154,7 @@ class hS {
|
|
|
20155
20154
|
return r2;
|
|
20156
20155
|
}
|
|
20157
20156
|
_addRangesListeners(t2, e2, n2) {
|
|
20158
|
-
if (this._closed) throw new Error(
|
|
20157
|
+
if (this._closed) throw new Error(Zh);
|
|
20159
20158
|
if (!e2) throw new C(Gh);
|
|
20160
20159
|
n2 = n2 ? { ...pS, ...n2 } : pS;
|
|
20161
20160
|
const r2 = n2?.transactional ?? false, o2 = this, s2 = aS++ % Number.MAX_SAFE_INTEGER, i2 = () => {
|
|
@@ -20195,7 +20194,7 @@ class hS {
|
|
|
20195
20194
|
return h2.load(g2), d2.set(s2, l2), u2 && (this._updateState({ rangeListenerSpatial: h2, rangesListenerMap: d2 }), u2.commit({ forceAmend: true })), i2;
|
|
20196
20195
|
}
|
|
20197
20196
|
_addRangesListeners2(t2, e2, n2, r2) {
|
|
20198
|
-
if (this._closed) throw new Error(
|
|
20197
|
+
if (this._closed) throw new Error(Zh);
|
|
20199
20198
|
if (!e2) throw new C(Gh);
|
|
20200
20199
|
n2 = n2 ? { ...pS, ...n2 } : pS;
|
|
20201
20200
|
const s2 = n2?.transactional ?? false, i2 = this, a2 = o.uuidV4(), l2 = cS++, h2 = () => {
|
|
@@ -20298,7 +20297,7 @@ class hS {
|
|
|
20298
20297
|
return t2 ? ((t2 = "string" == typeof t2 ? { text: t2 } : { ...t2 }).from || (t2.from = this.getSelection().getCoords().cell), this.getEntireRange().find(t2)) : fa;
|
|
20299
20298
|
}
|
|
20300
20299
|
_find(t2, n2) {
|
|
20301
|
-
if (this._closed) throw new Error(
|
|
20300
|
+
if (this._closed) throw new Error(Zh);
|
|
20302
20301
|
"string" == typeof n2 && (n2 = { text: n2 });
|
|
20303
20302
|
const r2 = n2?.text;
|
|
20304
20303
|
if (!r2) return null;
|
|
@@ -20436,7 +20435,7 @@ class hS {
|
|
|
20436
20435
|
return a2 || i2;
|
|
20437
20436
|
}
|
|
20438
20437
|
_extendRange(t2, n2) {
|
|
20439
|
-
if (this._closed) throw new Error(
|
|
20438
|
+
if (this._closed) throw new Error(Zh);
|
|
20440
20439
|
const r2 = this._entireCoords, o2 = this, s2 = { ignoreHidden: true, onEntry: (t3, e2) => e2 }, i2 = { ignoreHidden: true, onEntry: (t3, e2) => void 0 === t3.tvTl() ? null : e2 };
|
|
20441
20440
|
let a2;
|
|
20442
20441
|
const l2 = o2._getRangedEntries("mergeSpatial", [c.cellToRange(n2)], i2);
|
|
@@ -20616,7 +20615,7 @@ class hS {
|
|
|
20616
20615
|
return this._view;
|
|
20617
20616
|
}
|
|
20618
20617
|
setView(t2) {
|
|
20619
|
-
if (this._closed) throw new Error(
|
|
20618
|
+
if (this._closed) throw new Error(Zh);
|
|
20620
20619
|
if (!t2) throw new C("View can not be empty.");
|
|
20621
20620
|
this._viewRemoveListener?.(), this._view = t2, this._viewRemoveListener = t2.addListeners(this._viewListener, { transactional: false });
|
|
20622
20621
|
const e2 = this.getSelection().getCoords();
|
|
@@ -20626,7 +20625,7 @@ class hS {
|
|
|
20626
20625
|
return this._tabColor;
|
|
20627
20626
|
}
|
|
20628
20627
|
setTabColor(t2) {
|
|
20629
|
-
if (this._closed) throw new Error(
|
|
20628
|
+
if (this._closed) throw new Error(Zh);
|
|
20630
20629
|
return this._tabColor = "string" == typeof t2 ? this._styles.parseColor(t2) : t2 ?? null, this._emitter.notify("onTabColorChange"), this;
|
|
20631
20630
|
}
|
|
20632
20631
|
getRowHeaders() {
|
|
@@ -20636,7 +20635,7 @@ class hS {
|
|
|
20636
20635
|
return this._colHeaders;
|
|
20637
20636
|
}
|
|
20638
20637
|
async toJSON(n2 = false) {
|
|
20639
|
-
if (this._closed) throw new Error(
|
|
20638
|
+
if (this._closed) throw new Error(Zh);
|
|
20640
20639
|
await this._emitter.notify("onBeforeSave", { async: true }), await Promise.resolve(this._starting);
|
|
20641
20640
|
let r2 = {};
|
|
20642
20641
|
const o2 = this._getState();
|
|
@@ -20822,7 +20821,7 @@ class hS {
|
|
|
20822
20821
|
async _addMovable(t2) {
|
|
20823
20822
|
if (!this.getProtection().isObjectsAllowed()) throw new C(Uh);
|
|
20824
20823
|
if (!t2) throw new C("No movable options provided");
|
|
20825
|
-
if (this._closed) throw new Error(
|
|
20824
|
+
if (this._closed) throw new Error(Zh);
|
|
20826
20825
|
const e2 = {};
|
|
20827
20826
|
t2?.type && (e2.content = { type: t2.type, json: t2?.json }), t2?.anchorType && (e2.anchorType = t2?.anchorType), t2.bounds && (e2.anchor = null);
|
|
20828
20827
|
const n2 = this._getState().movableSpatial, r2 = this._beginCommit({ description: t2?.description ?? "Insert Drawing" }), o2 = this._createMovableEntry(e2, n2.size(), t2.fromResourceId), s2 = n2.clone();
|
|
@@ -20873,7 +20872,7 @@ class hS {
|
|
|
20873
20872
|
_validateOrRemoveOverlaps(t2, e2, n2 = null, r2 = false) {
|
|
20874
20873
|
const o2 = this;
|
|
20875
20874
|
"merge" !== e2 && lc(this._getMerges([t2]), t2, (t3, n3) => {
|
|
20876
|
-
if (n3 || !r2) throw new C(
|
|
20875
|
+
if (n3 || !r2) throw new C(qh(e2));
|
|
20877
20876
|
o2._unmerge([t3]);
|
|
20878
20877
|
});
|
|
20879
20878
|
const s2 = [], i2 = this.getTables().getItems({ address: t2 }), a2 = i2.length;
|
|
@@ -20882,7 +20881,7 @@ class hS {
|
|
|
20882
20881
|
n2 !== e3 && s2.push(e3.getAnchorCoords());
|
|
20883
20882
|
}
|
|
20884
20883
|
lc(s2, t2, (t3, n3, o3) => {
|
|
20885
|
-
if (n3 || !r2) throw new C(
|
|
20884
|
+
if (n3 || !r2) throw new C(qh(e2));
|
|
20886
20885
|
i2[o3].delete();
|
|
20887
20886
|
});
|
|
20888
20887
|
}
|
|
@@ -21083,7 +21082,7 @@ class hS {
|
|
|
21083
21082
|
}
|
|
21084
21083
|
close() {
|
|
21085
21084
|
if (this._closed) return;
|
|
21086
|
-
this._protectionRemoveListener?.(), this._protection = new
|
|
21085
|
+
this._protectionRemoveListener?.(), this._protection = new Q_(void 0, this._options.readonly);
|
|
21087
21086
|
const t2 = this._getState().tableMapModel.keys();
|
|
21088
21087
|
for (const e2 of t2) e2.close();
|
|
21089
21088
|
this._searchMovables().forEach((t3) => {
|
|
@@ -21091,7 +21090,7 @@ class hS {
|
|
|
21091
21090
|
}), 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;
|
|
21092
21091
|
}
|
|
21093
21092
|
beginCommit(t2) {
|
|
21094
|
-
if (this._closed) throw new Error(
|
|
21093
|
+
if (this._closed) throw new Error(Zh);
|
|
21095
21094
|
return this._beginCommit("string" == typeof t2 ? { description: t2 } : t2);
|
|
21096
21095
|
}
|
|
21097
21096
|
_getState() {
|
|
@@ -21332,8 +21331,8 @@ class hS {
|
|
|
21332
21331
|
} }, this._emptyCell = new jg(this._cellOptions);
|
|
21333
21332
|
}
|
|
21334
21333
|
_clearState() {
|
|
21335
|
-
this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new
|
|
21336
|
-
if (t2._closed) throw new Error(
|
|
21334
|
+
this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new Q_(void 0, this._options.readonly), this._protectionRemoveListener = this._protection.addListeners({ onChange() {
|
|
21335
|
+
if (t2._closed) throw new Error(Zh);
|
|
21337
21336
|
t2._getState().movableMapModel.forEach((t3) => {
|
|
21338
21337
|
t3.value.processProtectionCallback?.();
|
|
21339
21338
|
}), t2._getState().tableMapModel.forEach((t3) => {
|
|
@@ -21803,16 +21802,16 @@ class hS {
|
|
|
21803
21802
|
}
|
|
21804
21803
|
B2.load(t2);
|
|
21805
21804
|
}
|
|
21806
|
-
const
|
|
21805
|
+
const P2 = m2.conditionalSpatial, z2 = m2.conditionalModels, H2 = s2.conditionals;
|
|
21807
21806
|
if (H2) {
|
|
21808
21807
|
const t2 = H2.length;
|
|
21809
21808
|
for (let e2 = 0; e2 < t2; e2++) {
|
|
21810
21809
|
const t3 = H2[e2];
|
|
21811
|
-
this._createConditionalEntries(t3,
|
|
21810
|
+
this._createConditionalEntries(t3, P2, z2);
|
|
21812
21811
|
}
|
|
21813
21812
|
}
|
|
21814
21813
|
const V2 = m2.calcGraph, W2 = V2.fromJSON({ formulas: s2.formulas, data: y2, dynamic: s2.dynamicArray, volatile: s2.volatile });
|
|
21815
|
-
m2 = this._updateState({ hyperlinkSpatial: A2, commentsSpatial: T2, movableSpatial: k2, movableMapModel: F2, tableSpatial: B2, tableMapModel: O2, tableMapName: D2, conditionalSpatial:
|
|
21814
|
+
m2 = this._updateState({ hyperlinkSpatial: A2, commentsSpatial: T2, movableSpatial: k2, movableMapModel: F2, tableSpatial: B2, tableMapModel: O2, tableMapName: D2, conditionalSpatial: P2, conditionalModels: z2, calcGraph: V2 });
|
|
21816
21815
|
const $2 = this._getUsedCoords();
|
|
21817
21816
|
$2 && this._autoFit([$2], { orientations: e.Orientations.Row, skipCustomSize: true }), r2.commit(), W2 && this._realizeCalcedValues(W2), s2.protection && this._protection.fromJSON(s2.protection), this._emitter.notify("onLoad");
|
|
21818
21817
|
} finally {
|
|
@@ -21824,7 +21823,7 @@ class hS {
|
|
|
21824
21823
|
return this._closed ? Lc : this._options.container?.getName?.() ?? null;
|
|
21825
21824
|
}
|
|
21826
21825
|
setName(t2) {
|
|
21827
|
-
if (this._closed) throw new Error(
|
|
21826
|
+
if (this._closed) throw new Error(Zh);
|
|
21828
21827
|
const e2 = this._options.container?.setName;
|
|
21829
21828
|
if (!e2) throw new C("Unable to set name for sheet.");
|
|
21830
21829
|
return e2(t2), this;
|
|
@@ -21833,7 +21832,7 @@ class hS {
|
|
|
21833
21832
|
return this._closed ? $p.Visibility.VeryHidden : this._options.container?.getVisibility?.() ?? $p.Visibility.Hidden;
|
|
21834
21833
|
}
|
|
21835
21834
|
setVisibility(t2 = true) {
|
|
21836
|
-
if (this._closed) throw new Error(
|
|
21835
|
+
if (this._closed) throw new Error(Zh);
|
|
21837
21836
|
const e2 = this._options.container?.setVisibility;
|
|
21838
21837
|
if (!e2) throw new C("Unable to set visibility for sheet.");
|
|
21839
21838
|
let n2;
|
|
@@ -22270,7 +22269,7 @@ class BS {
|
|
|
22270
22269
|
}
|
|
22271
22270
|
}
|
|
22272
22271
|
const LS = Object.freeze({ lockStructure: false, lockWindows: false, lockRevision: false, workbookPassword: null, revisionsPassword: null });
|
|
22273
|
-
class
|
|
22272
|
+
class PS extends Y_ {
|
|
22274
22273
|
isWindowsAllowed() {
|
|
22275
22274
|
return this._isPropertyAllowed("windows");
|
|
22276
22275
|
}
|
|
@@ -22296,8 +22295,8 @@ class zS extends Y_ {
|
|
|
22296
22295
|
return super._toJSON(t2);
|
|
22297
22296
|
}
|
|
22298
22297
|
}
|
|
22299
|
-
const
|
|
22300
|
-
class
|
|
22298
|
+
const zS = (t2) => `Invalid SheetKey: ${t2}`, HS = "A workbook must contain at least one visible worksheet.", VS = "Internal error no visible sheetRefs", WS = "Workbook has been closed. No further operations are allowed.", $S = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", jS = "A sheet name", GS = `${jS} can not be blank.`, US = `${jS} can not be longer than 31 characters.`, qS = `${jS} can not begin or end with a "'" (single quote).`;
|
|
22299
|
+
class JS {
|
|
22301
22300
|
constructor(t2, e2) {
|
|
22302
22301
|
this._add = t2, this._get = e2;
|
|
22303
22302
|
}
|
|
@@ -22314,7 +22313,7 @@ class qS {
|
|
|
22314
22313
|
return this._get().length;
|
|
22315
22314
|
}
|
|
22316
22315
|
}
|
|
22317
|
-
const KS = new RegExp(/[\\/\\*?:[\]]+/), XS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), YS = (t2) => `Sheet${t2 + 1}`,
|
|
22316
|
+
const KS = new RegExp(/[\\/\\*?:[\]]+/), XS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), YS = (t2) => `Sheet${t2 + 1}`, ZS = (t2, e2) => ({ ...im, getSheet: () => null, toString: () => th(t2, e2) }), QS = (t2, e2 = false) => {
|
|
22318
22317
|
if (!t2) throw new Error(GS);
|
|
22319
22318
|
if (KS.test(t2)) {
|
|
22320
22319
|
if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : jS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
|
|
@@ -22327,7 +22326,7 @@ const KS = new RegExp(/[\\/\\*?:[\]]+/), XS = new RegExp(/\(((\d+)(?!.*\d))\)$/,
|
|
|
22327
22326
|
t2 = t2.substring(0, 31);
|
|
22328
22327
|
}
|
|
22329
22328
|
if ("'" === t2.charAt(0) || "'" === t2.charAt(n2 - 1)) {
|
|
22330
|
-
if (!e2) throw new Error(
|
|
22329
|
+
if (!e2) throw new Error(qS);
|
|
22331
22330
|
t2 = t2.replace(/^'|'$/g, "");
|
|
22332
22331
|
}
|
|
22333
22332
|
return t2;
|
|
@@ -22347,7 +22346,7 @@ class tw extends tS {
|
|
|
22347
22346
|
const n2 = t2 ? { ...t2 } : null;
|
|
22348
22347
|
if (!(n2 ? this._workbook._getSheetRef(n2.sheetName, $p.Visibility.VeryHidden) : null)) {
|
|
22349
22348
|
const t3 = this._workbook.getSelectedSheet();
|
|
22350
|
-
return delete n2?.sheetName,
|
|
22349
|
+
return delete n2?.sheetName, ZS(n2, n2 ? { sheetName: Lc, ...t3.getEntireRange().getCoords() } : null);
|
|
22351
22350
|
}
|
|
22352
22351
|
let r2 = this._options;
|
|
22353
22352
|
return e2 && (r2 = { ...this._options, getOptions: _m(this._options.getOptions, e2) }), new ew(t2, this._sheet, this._workbook, r2);
|
|
@@ -22377,7 +22376,7 @@ class tw extends tS {
|
|
|
22377
22376
|
}
|
|
22378
22377
|
toString() {
|
|
22379
22378
|
const t2 = this.getCoords(), e2 = this._sheet, n2 = e2.getEntireRange().getCoords(), r2 = { sheetName: e2.getName(), ...n2 };
|
|
22380
|
-
return sh(t2, r2, th,
|
|
22379
|
+
return sh(t2, r2, th, Jc);
|
|
22381
22380
|
}
|
|
22382
22381
|
}
|
|
22383
22382
|
class ew extends eS {
|
|
@@ -22483,12 +22482,12 @@ class nw {
|
|
|
22483
22482
|
} catch (t3) {
|
|
22484
22483
|
throw o2.rollback(), t3;
|
|
22485
22484
|
}
|
|
22486
|
-
this._sheets = new
|
|
22485
|
+
this._sheets = new JS((t3) => e2._addSheetOptions(t3), (t3, e3) => t3 ? [this.getSheet(t3, e3)] : this._getSheets(e3)), this._initializing = false;
|
|
22487
22486
|
}
|
|
22488
22487
|
_initState() {
|
|
22489
22488
|
let t2 = this._getSheetRefs();
|
|
22490
22489
|
for (let e3 = t2 && t2.length - 1; e3 >= 0; e3--) ;
|
|
22491
|
-
this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new ta().getDefaultTheme(), this._styles = this._options?.styles ?? new
|
|
22490
|
+
this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new ta().getDefaultTheme(), this._styles = this._options?.styles ?? new Zm(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new IS()), this._listenerProtection?.(), this._protection = new PS(void 0, this._options.readonly ?? false), this._listenerProtection = this._protection.addListeners({ onChange: (t3) => {
|
|
22492
22491
|
e2._emitter.notify("onProtectionChange");
|
|
22493
22492
|
} });
|
|
22494
22493
|
const e2 = this;
|
|
@@ -22597,11 +22596,11 @@ class nw {
|
|
|
22597
22596
|
}
|
|
22598
22597
|
_validateNewSheetName(t2, e2 = true) {
|
|
22599
22598
|
if (null == t2) return t2;
|
|
22600
|
-
if (
|
|
22599
|
+
if (QS(t2), e2 && this._getState().sheetsByLowerCaseName.has(t2.toLowerCase())) throw new C("That name is already taken. Try a different one.");
|
|
22601
22600
|
return t2.substring(0, 31);
|
|
22602
22601
|
}
|
|
22603
22602
|
findValidSheetName(t2) {
|
|
22604
|
-
t2 && (t2 =
|
|
22603
|
+
t2 && (t2 = QS(t2, true));
|
|
22605
22604
|
try {
|
|
22606
22605
|
return ((t3, e2) => {
|
|
22607
22606
|
try {
|
|
@@ -22840,7 +22839,7 @@ class nw {
|
|
|
22840
22839
|
const e2 = this._getSheetRefs(), n2 = this.getSelectedSheetIndex();
|
|
22841
22840
|
let r2 = null;
|
|
22842
22841
|
if (t2) {
|
|
22843
|
-
if (r2 = this._getSheetRef(t2), !r2) throw new C(
|
|
22842
|
+
if (r2 = this._getSheetRef(t2), !r2) throw new C(zS(r2));
|
|
22844
22843
|
} else r2 = e2[n2];
|
|
22845
22844
|
if (!r2) return null;
|
|
22846
22845
|
const o2 = r2.sheet, s2 = this._strings.beginPersist(), i2 = this.getResources().beginPersist(), a2 = this.getStyles().beginPersist();
|
|
@@ -22860,7 +22859,7 @@ class nw {
|
|
|
22860
22859
|
const n2 = t2 ? { ...t2 } : null;
|
|
22861
22860
|
if (!(n2 ? this._getSheetRef(n2.sheetName, $p.Visibility.VeryHidden) : null)) {
|
|
22862
22861
|
const t3 = this.getSelectedSheet();
|
|
22863
|
-
return t3 ? (delete n2?.sheetName,
|
|
22862
|
+
return t3 ? (delete n2?.sheetName, ZS(n2, n2 ? { sheetName: Lc, ...t3.getEntireRange().getCoords() } : null)) : void console.warn(VS);
|
|
22864
22863
|
}
|
|
22865
22864
|
const r2 = this.getSelectedSheet();
|
|
22866
22865
|
let o2 = null;
|
|
@@ -22945,7 +22944,7 @@ class nw {
|
|
|
22945
22944
|
if (this._closed) throw new Error(WS);
|
|
22946
22945
|
if (!this.getProtection().isStructureAllowed()) throw new C($S);
|
|
22947
22946
|
const n2 = this._getSheetRef(t2);
|
|
22948
|
-
if (!n2) throw new C(
|
|
22947
|
+
if (!n2) throw new C(zS(t2));
|
|
22949
22948
|
if (e2 === n2.name) return n2.sheet;
|
|
22950
22949
|
e2 = this._validateNewSheetName(e2);
|
|
22951
22950
|
const r2 = Object.freeze({ ...n2, name: e2 });
|
|
@@ -23008,7 +23007,7 @@ class nw {
|
|
|
23008
23007
|
_setSelectedSheet(t2) {
|
|
23009
23008
|
if (this._closed) throw new Error(WS);
|
|
23010
23009
|
const e2 = this._getSheetRef(t2);
|
|
23011
|
-
if (!e2) throw new C(
|
|
23010
|
+
if (!e2) throw new C(zS(t2));
|
|
23012
23011
|
let n2 = null;
|
|
23013
23012
|
return e2.visibility !== $p.Visibility.Visible && this._setSheetVisibility(e2, $p.Visibility.Visible), this._view.setActiveSheetId(e2.id), n2 = e2.sheet, n2;
|
|
23014
23013
|
}
|
|
@@ -23053,7 +23052,7 @@ class nw {
|
|
|
23053
23052
|
}
|
|
23054
23053
|
_fromJSON(t2) {
|
|
23055
23054
|
if (this._emitter.notify("onBeforeLoad", { params: t2 }), this._initState(), !t2.sheets || 0 === t2.sheets.length) throw new C(HS);
|
|
23056
|
-
t2.theme && (this._theme = new
|
|
23055
|
+
t2.theme && (this._theme = new Zi(t2.theme), this._styles.setTheme(this._theme));
|
|
23057
23056
|
const e2 = this._strings.beginPersist(), n2 = this._resources.beginPersist(), r2 = this._styles.beginPersist();
|
|
23058
23057
|
try {
|
|
23059
23058
|
e2.fromJSON(t2.strings), n2.fromJSON(t2.resources), r2.fromJSON(t2.styles), t2.date1904 && (this._isDate1904 = true), t2.view || (t2.view = {});
|
|
@@ -23067,7 +23066,7 @@ class nw {
|
|
|
23067
23066
|
}
|
|
23068
23067
|
this._updateState({ lastId: a2 }), t2.names && this._names.fromJSON(t2.names), t2.view.activeSheetId = i2 ?? a2, this.setView(new IS({ json: t2.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
|
|
23069
23068
|
const l2 = this;
|
|
23070
|
-
this._protection = new
|
|
23069
|
+
this._protection = new PS(t2?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (t3) => {
|
|
23071
23070
|
l2._emitter.notify("onProtectionChange", { source: t3 });
|
|
23072
23071
|
} }), t2.scripts && (this._scripts = this._createScripts(t2.scripts)), this._emitter.notify("onLoad");
|
|
23073
23072
|
} finally {
|
|
@@ -23219,7 +23218,7 @@ export {
|
|
|
23219
23218
|
xo as ITextFrame,
|
|
23220
23219
|
Ni as ITheme,
|
|
23221
23220
|
Fi as IThemeCollection,
|
|
23222
|
-
|
|
23221
|
+
it as LicenseManager,
|
|
23223
23222
|
xi as NumberFormat,
|
|
23224
23223
|
cf as Picture,
|
|
23225
23224
|
Vp as RangeClipboardItem,
|
|
@@ -23229,18 +23228,18 @@ export {
|
|
|
23229
23228
|
rs as SimpleFontFace,
|
|
23230
23229
|
ca as Sort,
|
|
23231
23230
|
sf as StringCollection,
|
|
23232
|
-
|
|
23231
|
+
Zm as StyleCollection,
|
|
23233
23232
|
gp as T,
|
|
23234
23233
|
Wm as Table,
|
|
23235
23234
|
Go as TextUtils,
|
|
23236
|
-
|
|
23235
|
+
Zi as Theme,
|
|
23237
23236
|
ta as ThemeCollection,
|
|
23238
23237
|
O as TransactionStore,
|
|
23239
|
-
|
|
23238
|
+
P as TransactionUndoManager,
|
|
23240
23239
|
kt as Tuple,
|
|
23241
23240
|
nw as Workbook,
|
|
23242
23241
|
IS as WorkbookView,
|
|
23243
|
-
|
|
23242
|
+
P_ as a,
|
|
23244
23243
|
L_ as b,
|
|
23245
23244
|
vc as c,
|
|
23246
23245
|
Ch as d,
|