@sheetxl/sdk 0.4.9 → 0.4.10
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/{CSkIIY8fgAYcsfJ0.cjs → -4uKwgMCs2uA4zYY.cjs} +1 -1
- package/browser/cjs/{CS2JAHasZYfPuOEI.cjs → 23Opade9fWTWmOw5.cjs} +1 -1
- package/browser/cjs/{xjh_alRipVqo8cZy.cjs → 6SNZR9WEya-Mi0Ec.cjs} +4 -4
- package/browser/cjs/{Cje8OteEkSLIh4eg.cjs → 7lk46bEggXm0Adux.cjs} +1 -1
- package/browser/cjs/{DLVyZuPozs2kGRVY.cjs → B0U3u9iqqnQvnw_Z.cjs} +1 -1
- package/browser/cjs/{nRRE57j_GGf6KVD8.cjs → BEQPlpKfeBPKELfa.cjs} +2 -2
- package/browser/cjs/{B4xf1YLqOOQ2BAAw.cjs → BKdxsyIZAckH_1Rs.cjs} +1 -1
- package/browser/cjs/{BQX47jn1fcYJXavn.cjs → BKu_2G3LBpnvF7WK.cjs} +1 -1
- package/browser/cjs/{CqczY8H5IIx8Ki4Z.cjs → BTWYrYyq7P04Hhgy.cjs} +1 -1
- package/browser/cjs/{OpVs8OmX1WcXQ1RU.cjs → BVgdgozKIof0HqZa.cjs} +1 -1
- package/browser/cjs/{eL9bgEPz6WhChraJ.cjs → BXi-7ztAEss53BNW.cjs} +1 -1
- package/browser/cjs/{L5ui83i8s4hwRnmo.cjs → BzzSS21ndAnpHnTK.cjs} +1 -1
- package/browser/cjs/{DmMxyZPbvj8EvAvA.cjs → C-JX44FribP4xuCm.cjs} +1 -1
- package/browser/cjs/{BjwfHgXl1fEZAU3g.cjs → C12NQkp7rKKeLgpL.cjs} +9 -9
- package/browser/cjs/{DxXvv5mYl4GyI4oU.cjs → CIisU9Fr1gqlOapx.cjs} +2 -2
- package/browser/cjs/{Bm5UJ5gS-Q06VEPK.cjs → CRjnB0UGZizopxIy.cjs} +3 -3
- package/browser/cjs/{Ntd4n6__drNXyV8Q.cjs → CfmxldeTiQsDhe4k.cjs} +1 -1
- package/browser/cjs/{B_RNceQBZ8p6fj3Q.cjs → CrkVZFNUXb_YVEfl.cjs} +1 -1
- package/browser/cjs/{DlgBYRYQwJb2Cmz0.cjs → Csmvu-Gg7GIET2fx.cjs} +2 -2
- package/browser/cjs/{CTM9G6roqBNmXvvV.cjs → D5kea7N3qYrpyi6Z.cjs} +1 -1
- package/browser/cjs/{C3td5E8SlcrJ5Mv-.cjs → DDPVADUPfi4JqKY9.cjs} +2 -2
- package/browser/cjs/{DSx2MKFyVvU32PBX.cjs → DJSDSOdIMakiUL9U.cjs} +1 -1
- package/browser/cjs/{BbwQg7G0IFkXlUYY.cjs → DgJG2zU2CpBE2JKD.cjs} +1 -1
- package/browser/cjs/{K35RWj2GxR0lKfCY.cjs → DqHT7AmlwwAApU0v.cjs} +4 -4
- package/browser/cjs/{CGHOtBonLRy9pyo4.cjs → DqdKJmCBZ3tiiTyS.cjs} +1 -1
- package/browser/cjs/{B-re3P7cjOaJW97v.cjs → Dy_w3ejsXCUjhwLi.cjs} +1 -1
- package/browser/cjs/{BZSt5E8X7SYSVhPs.cjs → EAjldglgyKcpKzX6.cjs} +1 -1
- package/browser/cjs/{pPmY7gcYQCH96lE4.cjs → QraWsiDLYuP865Pt.cjs} +1 -1
- package/browser/cjs/{WZhB_pgRZi4U_oXo.cjs → TMXcSm2F77kJ6GbS.cjs} +1 -1
- package/browser/cjs/{DQtLMWxJks5D1_ut.cjs → g9Un0PdQLp8LcMP-.cjs} +1 -1
- package/browser/cjs/{DSeBxJODV2wiVBFh.cjs → hNHT5yLsXAZ-mS5K.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{CnRawGcFEjRg8E7W.cjs → o_FLjAWENTjXcsuZ.cjs} +1 -1
- package/browser/cjs/{Cq-KGEktCK47S1ii.cjs → rBPqKMZ7T6poaL7T.cjs} +1 -1
- package/browser/esm/{CzRlLyr7iG0quh7r.mjs → 3-pvLx1jF0RJ56jT.mjs} +4 -4
- package/{node/esm/BRW_h-uc47yzfnF7.mjs → browser/esm/3AEwlfYXdvg1zUXm.mjs} +1 -1
- package/browser/esm/{B5GEE2P8-Fc2ApiM.mjs → 3kB3KaOgV-3ox4C3.mjs} +2 -2
- package/browser/esm/{SwZDnMDw8b9gb6VD.mjs → 70MScShy9oEFZGC-.mjs} +1 -1
- package/{node/esm/De2OxC60SZUNAEyp.mjs → browser/esm/BJgxNxKnNgVBP4Hp.mjs} +1 -1
- package/{node/esm/Br12zSs0kOLavLkw.mjs → browser/esm/BLET1HFCb5u0-_Eo.mjs} +1 -1
- package/browser/esm/{PC3F5BEQCLQN_a3x.mjs → BO-YRuEp35GIVL4O.mjs} +1 -1
- package/browser/esm/{C8aGSiCyYUCLobsp.mjs → BOL-jxmJyje4-Hxe.mjs} +1 -1
- package/browser/esm/{cthDTk2_8Syhe1Uh.mjs → BSFibAPQFeBovPl3.mjs} +1 -1
- package/{node/esm/DtJRjSTG45Z8JwZ-.mjs → browser/esm/BW04nsyJWeVHBcFW.mjs} +1 -1
- package/browser/esm/{DbT42LuoRjjQ7Rtu.mjs → BaGFns-M8bCUjgnc.mjs} +3 -3
- package/browser/esm/{DStq39R2rKQKUU7b.mjs → BifIJRmeTJJLYCr-.mjs} +1 -1
- package/browser/esm/{_N05nCCXsyDthwPS.mjs → Br_wraXbAu-VOj0p.mjs} +1 -1
- package/browser/esm/{DdU01D1n6S9BZnIr.mjs → BvE9cJg2esqHIr98.mjs} +1 -1
- package/{node/esm/-vEyF-b1iAJfL3xp.mjs → browser/esm/CA504N_MgS6GSFmG.mjs} +1 -1
- package/browser/esm/{BEWDCb-GzXXALTyM.mjs → CCcaxwoCKpK91TYc.mjs} +1 -1
- package/browser/esm/{BhPXhyivX9t4qJ2l.mjs → CMO8yX7mxIaFV5GC.mjs} +2 -2
- package/browser/esm/{HTu8yzgCTwbf9HU4.mjs → Cqf8ZomeNI_0U-UD.mjs} +2 -2
- package/browser/esm/{leTtDbQ6871lFfJe.mjs → CsPZhcz5eLf-CbkJ.mjs} +1 -1
- package/browser/esm/{6U_gCZNSSMBtVpQI.mjs → DQwOIKwLzYjUwPmT.mjs} +1 -1
- package/{node/esm/LpwVK3fzNuCZJlGb.mjs → browser/esm/DXj8p7NZndUJBRAj.mjs} +1 -1
- package/browser/esm/{P_0pzZ_mRTUIQOo8.mjs → DbezlvRyCGtHZgSZ.mjs} +1 -1
- package/browser/esm/{eYXmF3L6pehVXEBJ.mjs → DcPcMjMOmfyIGaSN.mjs} +4 -4
- package/browser/esm/{DwOgeqVyZwdrw1FB.mjs → DhqkybSwX2wqkqcf.mjs} +330 -325
- package/browser/esm/{CT933Kus8lsY5BJ2.mjs → Dk3ABmYKlVup4l-u.mjs} +1 -1
- package/browser/esm/{Cu1bjUPEdAVn7e23.mjs → DpJLw2aGOg6yuBjH.mjs} +1 -1
- package/browser/esm/{225JOcHgUUs1EIBP.mjs → Dq32tysuLIKWEFO_.mjs} +1 -1
- package/browser/esm/{CatWZ5LT2Nm4rT4U.mjs → DrU-yP_Fb9i7w1lb.mjs} +1 -1
- package/browser/esm/{9sdhSM-1zkdTJ6pD.mjs → WY6tkuqX7I-Tw85_.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/{node/esm/CYI5_V7h9SYP9uuu.mjs → browser/esm/mkuXwkQcdkBHUMsY.mjs} +1 -1
- package/{node/esm/CydkHy4FDohjJzxv.mjs → browser/esm/sUZorY3sws86BcMb.mjs} +1 -1
- package/browser/esm/{BMWawWgFuxMRf1cM.mjs → skZ-cAv6270PFv3k.mjs} +1 -1
- package/browser/esm/{BsN1Iav913PM0DTb.mjs → xUdz3zy_nz-hMfhq.mjs} +1 -1
- package/licenses/dependencies.txt +3 -3
- package/node/esm/{BIsxN-sskhnDr5fG.mjs → 0OTV9xpta6cm7Yx6.mjs} +1 -1
- package/{browser/esm/BRW_h-uc47yzfnF7.mjs → node/esm/3AEwlfYXdvg1zUXm.mjs} +1 -1
- package/node/esm/{SwZDnMDw8b9gb6VD.mjs → 70MScShy9oEFZGC-.mjs} +1 -1
- package/node/esm/{DxQdDzIhBW98FzK0.mjs → B2GPpiwGDiHZ4Mnx.mjs} +4 -4
- package/node/esm/{BMwuCJEUqdaa7U-p.mjs → BD4U7piuPUWGdmvF.mjs} +1 -1
- package/{browser/esm/De2OxC60SZUNAEyp.mjs → node/esm/BJgxNxKnNgVBP4Hp.mjs} +1 -1
- package/{browser/esm/Br12zSs0kOLavLkw.mjs → node/esm/BLET1HFCb5u0-_Eo.mjs} +1 -1
- package/{browser/esm/DtJRjSTG45Z8JwZ-.mjs → node/esm/BW04nsyJWeVHBcFW.mjs} +1 -1
- package/node/esm/{bz-ja27axdBXn18A.mjs → BWm5puKy7haAGpHu.mjs} +2 -2
- package/node/esm/{D8eFLYgEWXBVLJzP.mjs → BYw54CVi5Zykf7P_.mjs} +1 -1
- package/node/esm/{CswjcUAc3OQ1SAwa.mjs → BelMCqHHX_Ln7ik4.mjs} +2 -2
- package/node/esm/{Dtn71I8yWx6At8T4.mjs → Blozz9cX9jUqOnkK.mjs} +1 -1
- package/node/esm/{_N05nCCXsyDthwPS.mjs → Br_wraXbAu-VOj0p.mjs} +1 -1
- package/node/esm/{Dfr8q3AEbG7QZ6Xr.mjs → C8OHYChkHQk2jVzy.mjs} +1 -1
- package/{browser/esm/-vEyF-b1iAJfL3xp.mjs → node/esm/CA504N_MgS6GSFmG.mjs} +1 -1
- package/node/esm/{BEWDCb-GzXXALTyM.mjs → CCcaxwoCKpK91TYc.mjs} +1 -1
- package/node/esm/CSgS-BWwvF8YA6gv.mjs +80 -0
- package/node/esm/{DYiuMNxXQxzsyogd.mjs → CXhWG2Dg31l6Mo8r.mjs} +1 -1
- package/node/esm/{Cu9r1uru0-RQmPlz.mjs → CYs7VtVLEbhMy_iG.mjs} +1 -1
- package/node/esm/{bLL4P-mQqtHnzf3p.mjs → CdbncxwuP2LcomiC.mjs} +1 -1
- package/node/esm/{DRFDJvGYzZ2y7MNr.mjs → CxkMMFqIme5dCX9o.mjs} +1 -1
- package/node/esm/{V08nP8uFHLrde5Md.mjs → Cyb9hq0LVkNm7yoj.mjs} +1 -1
- package/node/esm/{6U_gCZNSSMBtVpQI.mjs → DQwOIKwLzYjUwPmT.mjs} +1 -1
- package/{browser/esm/LpwVK3fzNuCZJlGb.mjs → node/esm/DXj8p7NZndUJBRAj.mjs} +1 -1
- package/node/esm/{P_0pzZ_mRTUIQOo8.mjs → DbezlvRyCGtHZgSZ.mjs} +1 -1
- package/node/esm/{CT933Kus8lsY5BJ2.mjs → Dk3ABmYKlVup4l-u.mjs} +1 -1
- package/node/esm/{225JOcHgUUs1EIBP.mjs → Dq32tysuLIKWEFO_.mjs} +1 -1
- package/node/esm/{CatWZ5LT2Nm4rT4U.mjs → DrU-yP_Fb9i7w1lb.mjs} +1 -1
- package/node/esm/{DU-md5cmoqIFoIRF.mjs → YqgO5dqnNDu6tJAq.mjs} +2 -2
- package/node/esm/index.mjs +20 -15
- package/{browser/esm/CYI5_V7h9SYP9uuu.mjs → node/esm/mkuXwkQcdkBHUMsY.mjs} +1 -1
- package/{browser/esm/CydkHy4FDohjJzxv.mjs → node/esm/sUZorY3sws86BcMb.mjs} +1 -1
- package/package.json +4 -4
- package/node/esm/D6NZZinV6uCFvvPK.mjs +0 -80
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.10
|
|
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.
|
|
6
6
|
*/
|
|
7
7
|
const X = { Number: "n", String: "s", Boolean: "b", Error: "e", RichData: "r", Null: "z" };
|
|
8
|
-
var k,
|
|
9
|
-
(
|
|
8
|
+
var k, as, Y;
|
|
9
|
+
(as = k || (k = {})).Orientation = { Column: "column", Row: "row" }, as.Orientations = { ...as.Orientation, Both: "both" }, as.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((s) => {
|
|
10
10
|
s.Code = { Parse: 0, Null: 1, Div0: 2, Value: 3, Ref: 4, Name: 5, Num: 6, NA: 7, GettingData: 8, Spill: 9, Connect: 10, Blocked: 11, Unknown: 12, Field: 13, Calc: 14, Busy: 16, Python: 19, Timeout: 20 }, s.Label = { Parse: "#PARSE!", Null: "#NULL!", Div0: "#DIV/0!", Value: "#VALUE!", Ref: "#REF!", Name: "#NAME?", Num: "#NUM!", NA: "#N/A", GettingData: "#GETTING_DATA", Spill: "#SPILL!", Connect: "#CONNECT!", Blocked: "#BLOCKED!", Unknown: "#UNKNOWN!", Field: "#FIELD!", Calc: "#CALC!", Busy: "#BUSY!", Python: "#PYTHON!", Timeout: "#TIMEOUT!" };
|
|
11
11
|
class e extends Error {
|
|
12
12
|
constructor(b, w, v, I) {
|
|
@@ -237,10 +237,10 @@ let wf = class {
|
|
|
237
237
|
}
|
|
238
238
|
}, yf = class {
|
|
239
239
|
getRange(s) {
|
|
240
|
-
throw new
|
|
240
|
+
throw new ls();
|
|
241
241
|
}
|
|
242
242
|
getReference(s, e) {
|
|
243
|
-
throw new
|
|
243
|
+
throw new ls();
|
|
244
244
|
}
|
|
245
245
|
getNumberFormat(s, e) {
|
|
246
246
|
return e?.toString() ?? "";
|
|
@@ -283,16 +283,16 @@ let wf = class {
|
|
|
283
283
|
return null;
|
|
284
284
|
}
|
|
285
285
|
getAddress(s, e) {
|
|
286
|
-
throw new
|
|
286
|
+
throw new ls();
|
|
287
287
|
}
|
|
288
288
|
parseAsDateTime(s, e) {
|
|
289
|
-
throw new
|
|
289
|
+
throw new ls();
|
|
290
290
|
}
|
|
291
291
|
getRuntime() {
|
|
292
292
|
return vf;
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
|
-
class
|
|
295
|
+
class ls extends Error {
|
|
296
296
|
constructor(e = "Not implemented in StubbedFormulaContext") {
|
|
297
297
|
super(e), this.name = "NotImplementedError";
|
|
298
298
|
}
|
|
@@ -448,7 +448,7 @@ lr.all = function(s, e) {
|
|
|
448
448
|
return lr(t, n, e);
|
|
449
449
|
}, {});
|
|
450
450
|
};
|
|
451
|
-
const Lf = Object.freeze([]), Bf = Object.freeze({}), Rc = (s) => s,
|
|
451
|
+
const Lf = Object.freeze([]), Bf = Object.freeze({}), Rc = (s) => s, zs = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(s) {
|
|
452
452
|
let e = 16 * Math.random() | 0;
|
|
453
453
|
return (s === "x" ? e : 3 & e | 8).toString(16);
|
|
454
454
|
}), gg = (s, e) => s === e || !(!Array.isArray(s) || !Array.isArray(e) || s.length !== e.length) && s.every((t, n) => t === e[n]), Yr = (s) => typeof s == "object" && !Array.isArray(s) && s !== null, mg = (s) => typeof s != "object" || Array.isArray(s) || s === null ? s : (Object.keys(s).forEach(function(e) {
|
|
@@ -464,7 +464,7 @@ const Lf = Object.freeze([]), Bf = Object.freeze({}), Rc = (s) => s, Bs = () =>
|
|
|
464
464
|
fg(s[i], e?.[i], t) === null && (r = !0, delete s[i]);
|
|
465
465
|
}
|
|
466
466
|
return r && Object.keys(s).length === 0 ? null : void 0;
|
|
467
|
-
}, Mc = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), Tc = (s) => s == null, Nc = (s, e) => !(e.left > s.right || e.right < s.left || e.top > s.bottom || e.bottom < s.top), Fc = !(typeof window > "u" || !window.document || !window.document.createElement), bt = { Windows: "windows", MacOS: "macos", IOS: "ios", Linux: "linux", Android: "android", Safari: "safari", Firefox: "firefox", Node: "node", Unknown: "unknown" },
|
|
467
|
+
}, Mc = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), Tc = (s) => s == null, Nc = (s, e) => !(e.left > s.right || e.right < s.left || e.top > s.bottom || e.bottom < s.top), Fc = !(typeof window > "u" || !window.document || !window.document.createElement), bt = { Windows: "windows", MacOS: "macos", IOS: "ios", Linux: "linux", Android: "android", Safari: "safari", Firefox: "firefox", Node: "node", Unknown: "unknown" }, jo = () => {
|
|
468
468
|
if (pg()) return bt.Node;
|
|
469
469
|
const s = globalThis.navigator !== void 0 && globalThis.navigator.userAgent ? globalThis.navigator.userAgent.toLowerCase() : "";
|
|
470
470
|
return s ? /(win32|win64|windows|wince)/i.test(s) ? bt.Windows : /(macintosh|macintel|macppc|mac68k|macos)/i.test(s) ? bt.MacOS : /(iphone|ipad|ipod)/i.test(s) ? bt.IOS : /android/.test(s) ? bt.Android : /linux/.test(s) ? bt.Linux : /^((?!chrome|android|).)*safari/i.test(s) ? bt.Safari : /^((?!chrome|android|Seamonkey).)*firefox/i.test(s) ? bt.Firefox : bt.Unknown : bt.Unknown;
|
|
@@ -585,7 +585,7 @@ const kc = (s, e = !1) => (document.hasFocus() || e) && (s === document.activeEl
|
|
|
585
585
|
n = i;
|
|
586
586
|
}
|
|
587
587
|
return n ?? null;
|
|
588
|
-
}, getOS:
|
|
588
|
+
}, getOS: jo, hasFocus: kc, isDefined: (s) => s != null, isEmpty: (s) => s == null || s === "", isEqualArrays: gg, isEqualBounds: (s, e) => s === e || !(s && !e || e && !s) && s.x === e.x && s.y === e.y && s.width === e.width && s.height === e.height, isEqualObjectKeys: (s, e) => {
|
|
589
589
|
if (s === e) return !0;
|
|
590
590
|
if (s && !e || e && !s) return !1;
|
|
591
591
|
const t = Object.keys(s);
|
|
@@ -695,7 +695,7 @@ const kc = (s, e = !1) => (document.hasFocus() || e) && (s === document.activeEl
|
|
|
695
695
|
for (let r = 0; r < t; r++) n[r] = Array(e);
|
|
696
696
|
for (let r = 0; r < e; r++) for (let o = 0; o < t; o++) n[o][r] = s[r][o];
|
|
697
697
|
return n;
|
|
698
|
-
}, uuidV4:
|
|
698
|
+
}, uuidV4: zs, validEnumValue: (s, e) => {
|
|
699
699
|
if (!Object.values(s).includes(e)) throw new Error(`Invalid type: ${e ?? "null"}. Must be one of: ${Object.values(e).join(", ")}.`);
|
|
700
700
|
}, whenFocus: async (s, e = !1) => new Promise((t) => {
|
|
701
701
|
kc(s, e) ? t(!0) : s.addEventListener("focusin", () => {
|
|
@@ -741,7 +741,7 @@ const kc = (s, e = !1) => (document.hasFocus() || e) && (s === document.activeEl
|
|
|
741
741
|
n?.src && URL.revokeObjectURL(n.src);
|
|
742
742
|
}
|
|
743
743
|
n || t(wg);
|
|
744
|
-
}), ea = "image/svg+xml",
|
|
744
|
+
}), ea = "image/svg+xml", Ps = Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: Sg, getImageDataUrl: (s, e = 1) => new Promise(async (t, n) => {
|
|
745
745
|
let r = null;
|
|
746
746
|
try {
|
|
747
747
|
r = new Image(), r.src = s, r.addEventListener("load", function() {
|
|
@@ -861,7 +861,7 @@ var $e, Dc;
|
|
|
861
861
|
}
|
|
862
862
|
return a;
|
|
863
863
|
};
|
|
864
|
-
class
|
|
864
|
+
class Yo extends Error {
|
|
865
865
|
constructor(e, t = null) {
|
|
866
866
|
super(e, t), this.name = "ChainedError", this._cause = t;
|
|
867
867
|
}
|
|
@@ -869,22 +869,22 @@ class Ko extends Error {
|
|
|
869
869
|
return this._cause;
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
|
-
class jf extends
|
|
872
|
+
class jf extends Yo {
|
|
873
873
|
constructor(e = "Partial Error", t = null) {
|
|
874
874
|
super(e, t);
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
|
-
class
|
|
877
|
+
class je extends jf {
|
|
878
878
|
constructor(e = "Out of bounds", t = null) {
|
|
879
879
|
super(e, t), this.name = "OutOfBoundsError";
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
|
-
class Hf extends
|
|
882
|
+
class Hf extends Yo {
|
|
883
883
|
constructor(e = "Partial Error", t = null) {
|
|
884
884
|
super(e, t);
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
class Xt extends
|
|
887
|
+
class Xt extends Yo {
|
|
888
888
|
constructor(e = "Null not supported", t = null) {
|
|
889
889
|
super(e, t);
|
|
890
890
|
}
|
|
@@ -897,7 +897,7 @@ class Lc extends Error {
|
|
|
897
897
|
return this._type;
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
|
-
class yg extends
|
|
900
|
+
class yg extends Yo {
|
|
901
901
|
constructor(e = "Not implemented", t = null) {
|
|
902
902
|
super(e, t);
|
|
903
903
|
}
|
|
@@ -909,12 +909,12 @@ Please use Chrome or Edge if external copy and paste is required.`, na = `You do
|
|
|
909
909
|
All copy and paste operations will be limited to the browser tab.`, Eg = { Safari: `The Safari browser does not support advanced copy and paste.
|
|
910
910
|
Copy and paste will be limited to within the browser tab.
|
|
911
911
|
|
|
912
|
-
Please use Chrome or Edge if external copy and paste is required.`, Perms: na, PermsWrite:
|
|
912
|
+
Please use Chrome or Edge if external copy and paste is required.`, Perms: na, PermsWrite: jo() === bt.Safari ? Bc : na, PermsRead: jo() === bt.Safari ? Bc : na }, ra = async () => new Promise((s) => {
|
|
913
913
|
document.hasFocus() ? s() : globalThis.addEventListener?.("focus", () => {
|
|
914
914
|
s();
|
|
915
915
|
}, { once: !0 }), document.activeElement.focus?.();
|
|
916
916
|
}), oa = async (s, e, t) => {
|
|
917
|
-
if (
|
|
917
|
+
if (jo() === bt.Safari) return await t(new Error(Eg.Safari));
|
|
918
918
|
try {
|
|
919
919
|
const n = async (i) => {
|
|
920
920
|
try {
|
|
@@ -993,11 +993,11 @@ const fi = async (s, e = Le.html) => new Promise(async (t, n) => {
|
|
|
993
993
|
return n;
|
|
994
994
|
}, Cg = async (s) => {
|
|
995
995
|
s && await s.writeText("");
|
|
996
|
-
}, Gy = { readBlobFromClipboard: vg, readStringFromClipboard: fi, readHTMLFromClipboard: El, clearClipboard: Cg },
|
|
996
|
+
}, Gy = { readBlobFromClipboard: vg, readStringFromClipboard: fi, readHTMLFromClipboard: El, clearClipboard: Cg }, Ho = "clipboard-uuid", fr = "web text/uuid", zc = (s) => `<div style="display:none" ${Ho}="${s}"/>`, Vf = (s, e) => {
|
|
997
997
|
let t = null;
|
|
998
998
|
try {
|
|
999
999
|
const n = new DOMParser().parseFromString(e, Le.html);
|
|
1000
|
-
n.body.firstElementChild.setAttribute(
|
|
1000
|
+
n.body.firstElementChild.setAttribute(Ho, s), t = n.getElementsByTagName("body")[0].innerHTML;
|
|
1001
1001
|
} catch (n) {
|
|
1002
1002
|
console.warn("Can't embed uuid.", n);
|
|
1003
1003
|
}
|
|
@@ -1005,7 +1005,7 @@ const fi = async (s, e = Le.html) => new Promise(async (t, n) => {
|
|
|
1005
1005
|
}, Pc = (s, e) => {
|
|
1006
1006
|
if (!e || !s) return !1;
|
|
1007
1007
|
try {
|
|
1008
|
-
const t = e.querySelectorAll(`[${
|
|
1008
|
+
const t = e.querySelectorAll(`[${Ho}="${s}"]`);
|
|
1009
1009
|
if (t && t.length === 1) return !0;
|
|
1010
1010
|
if (e.querySelector("parsererror")) throw new Error("We are unable to parse node");
|
|
1011
1011
|
return !1;
|
|
@@ -1031,7 +1031,7 @@ class jc {
|
|
|
1031
1031
|
const t = await El(this._nativeClipboard, Le.html);
|
|
1032
1032
|
return !this._state || (Pc(this._state.uuid, t) || this.clear(), !0);
|
|
1033
1033
|
}, async (e) => {
|
|
1034
|
-
e?.message === "denied" || e.message?.includes("Document is not focused") ||
|
|
1034
|
+
e?.message === "denied" || e.message?.includes("Document is not focused") || jo() === bt.Safari || console.warn("Unable to detect clipboard changes: ", e);
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
1037
|
_init() {
|
|
@@ -1060,7 +1060,7 @@ class jc {
|
|
|
1060
1060
|
}), this._state?.items ?? [];
|
|
1061
1061
|
}
|
|
1062
1062
|
async write(e) {
|
|
1063
|
-
return this._write({ uuid:
|
|
1063
|
+
return this._write({ uuid: zs(), items: e, ref: null });
|
|
1064
1064
|
}
|
|
1065
1065
|
async _write(e) {
|
|
1066
1066
|
if (!this._nativeClipboard) return this._state = e, this.dispatchEvent(new Event("clipboardwrite")), this.dispatchEvent(new Event("clipboardchange")), null;
|
|
@@ -1082,12 +1082,12 @@ class jc {
|
|
|
1082
1082
|
const g = await l.getType(Le.plain);
|
|
1083
1083
|
if (g) {
|
|
1084
1084
|
let m = null;
|
|
1085
|
-
typeof g == "string" ? (console.warn("text as string", g), m = g) : m = await yl(g), m && (h = `<div ${
|
|
1085
|
+
typeof g == "string" ? (console.warn("text as string", g), m = g) : m = await yl(g), m && (h = `<div ${Ho}="${r}">${m}</div>`);
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
if (!h && l.types.includes(Le.png)) {
|
|
1089
1089
|
const g = await l.getType(Le.png), m = _g(await g.arrayBuffer());
|
|
1090
|
-
h = `<div ${
|
|
1090
|
+
h = `<div ${Ho}="${r}"><img src="${Sg + m}"/></div>`;
|
|
1091
1091
|
}
|
|
1092
1092
|
!h && r && (h = zc(r));
|
|
1093
1093
|
const u = new Blob([h ?? ""], { type: Le.html }), d = {};
|
|
@@ -1129,7 +1129,7 @@ class jc {
|
|
|
1129
1129
|
} catch (o) {
|
|
1130
1130
|
t = o, console.warn("export to png", o);
|
|
1131
1131
|
}
|
|
1132
|
-
const r = this._write({ uuid:
|
|
1132
|
+
const r = this._write({ uuid: zs(), ref: e, items: Object.keys(n).length > 0 ? [new ClipboardItem(n)] : null });
|
|
1133
1133
|
if (t) throw t;
|
|
1134
1134
|
return r;
|
|
1135
1135
|
}
|
|
@@ -1155,7 +1155,7 @@ class jc {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
async writeText(e) {
|
|
1157
1157
|
const t = [new ClipboardItem({ [Le.plain]: new Blob([e], { type: Le.plain }) })];
|
|
1158
|
-
return this._write({ uuid:
|
|
1158
|
+
return this._write({ uuid: zs(), items: t, ref: null });
|
|
1159
1159
|
}
|
|
1160
1160
|
addEventListener(e, t, n = {}) {
|
|
1161
1161
|
const r = n?.capture ? this._listenersCapture : this._listeners;
|
|
@@ -1625,11 +1625,11 @@ class Wy extends $f {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
const Oo = () => {
|
|
1627
1627
|
try {
|
|
1628
|
-
return "0.4.
|
|
1628
|
+
return "0.4.10";
|
|
1629
1629
|
} catch {
|
|
1630
1630
|
return "";
|
|
1631
1631
|
}
|
|
1632
|
-
},
|
|
1632
|
+
}, Do = () => {
|
|
1633
1633
|
try {
|
|
1634
1634
|
return "Thu Aug 07 2025";
|
|
1635
1635
|
} catch {
|
|
@@ -1652,7 +1652,10 @@ const Oo = () => {
|
|
|
1652
1652
|
} catch {
|
|
1653
1653
|
throw new Error("Invalid license key.");
|
|
1654
1654
|
}
|
|
1655
|
-
}, Wc = (s) =>
|
|
1655
|
+
}, Wc = (s) => {
|
|
1656
|
+
const e = Do(), t = new Date(e), n = /* @__PURE__ */ new Date(), r = Math.floor((n.getTime() - t.getTime()) / 864e5) >= 120;
|
|
1657
|
+
return { licensee: () => "Evaluation License", expiration: () => null, domains: () => [pi()], developerCount: () => 1, cpuCount: () => 0, type: () => "eval", isEval: () => !0, exceptions: () => r ? ["Evaluation period expired"] : [], isValidFor: () => !r, isValid: () => !1, features: () => Object.freeze({}), keyFrom: () => s, getBuildVersion: Oo, getBuildDate: Do };
|
|
1658
|
+
}, Be = { promise: null, details: null, bannerPrinted: !1, detailsPrinted: !1, licenseKey: null, keyFrom: null };
|
|
1656
1659
|
let aa = !1, qc = !1;
|
|
1657
1660
|
const Jc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), Ig = new class {
|
|
1658
1661
|
constructor() {
|
|
@@ -1660,11 +1663,11 @@ const Jc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), Ig = new class {
|
|
|
1660
1663
|
}
|
|
1661
1664
|
async setLicenseKey(s, e = !1) {
|
|
1662
1665
|
if (!s || s.startsWith("visit ") || s.startsWith("email ") || s.startsWith("trial") || s.startsWith("eval")) return aa = !0, await this._validate(!0);
|
|
1663
|
-
if (aa = !1, !e &&
|
|
1666
|
+
if (aa = !1, !e && Be.licenseKey) {
|
|
1664
1667
|
const n = await this._validate();
|
|
1665
1668
|
if (n.isValid() && !n.isEval()) return n;
|
|
1666
1669
|
}
|
|
1667
|
-
|
|
1670
|
+
Be.licenseKey = s, Be.keyFrom = "setLicenseKey", Be.details = null, Be.promise = null;
|
|
1668
1671
|
const t = await this._validate();
|
|
1669
1672
|
if (!t.isValid()) throw await this._print(!0), new Error("Invalid license key.");
|
|
1670
1673
|
if (F.isNode() && (await (async () => {
|
|
@@ -1674,9 +1677,9 @@ const Jc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), Ig = new class {
|
|
|
1674
1677
|
return t;
|
|
1675
1678
|
}
|
|
1676
1679
|
async _validate(s = !1) {
|
|
1677
|
-
if (
|
|
1680
|
+
if (Be.promise || (this.__proto__.valueFv || (this.__proto__.valueFv = new Error("FV")), Be.promise)) return Be.promise;
|
|
1678
1681
|
let e = null;
|
|
1679
|
-
|
|
1682
|
+
Be.promise = new Promise((i) => {
|
|
1680
1683
|
e = i;
|
|
1681
1684
|
});
|
|
1682
1685
|
let t, n = null;
|
|
@@ -1698,14 +1701,14 @@ const Jc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), Ig = new class {
|
|
|
1698
1701
|
} else _.push("No domains specified");
|
|
1699
1702
|
}
|
|
1700
1703
|
return _;
|
|
1701
|
-
})(c), u = /* @__PURE__ */ ((d, g, m) => ({ licensee: () => d.licensee, expiration: () => new Date(d.expiry), domains: () => d.domains ?? [], developerCount: () => d.developerCount ?? 1, cpuCount: () => d.cpuCount ?? 0, type: () => d.type ?? "Community", exceptions: () => g, isValidFor: (f) => !(g?.length > 0), isValid: () => !0, isEval: () => !1, features: () => Object.freeze(d.features ?? {}), keyFrom: () => m, getBuildVersion: Oo, getBuildDate:
|
|
1704
|
+
})(c), u = /* @__PURE__ */ ((d, g, m) => ({ licensee: () => d.licensee, expiration: () => new Date(d.expiry), domains: () => d.domains ?? [], developerCount: () => d.developerCount ?? 1, cpuCount: () => d.cpuCount ?? 0, type: () => d.type ?? "Community", exceptions: () => g, isValidFor: (f) => !(g?.length > 0), isValid: () => !0, isEval: () => !1, features: () => Object.freeze(d.features ?? {}), keyFrom: () => m, getBuildVersion: Oo, getBuildDate: Do }))(c, h, i);
|
|
1702
1705
|
return u.exceptions().length > 0 && (t = u), u;
|
|
1703
1706
|
} catch {
|
|
1704
|
-
l = i, t = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => "invalid", exceptions: () => [`Invalid License key using '${l}'`], isValidFor: (h) => !1, isValid: () => !1, isEval: () => !1, features: () => Object.freeze({}), keyFrom: () => l, getBuildVersion: Oo, getBuildDate:
|
|
1707
|
+
l = i, t = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => "invalid", exceptions: () => [`Invalid License key using '${l}'`], isValidFor: (h) => !1, isValid: () => !1, isEval: () => !1, features: () => Object.freeze({}), keyFrom: () => l, getBuildVersion: Oo, getBuildDate: Do };
|
|
1705
1708
|
}
|
|
1706
1709
|
var l;
|
|
1707
1710
|
};
|
|
1708
|
-
|
|
1711
|
+
Be.licenseKey && (n = await r(Be.keyFrom, Be.licenseKey));
|
|
1709
1712
|
let o = !1;
|
|
1710
1713
|
if (aa && (o = !0, n = Wc("Eval License Key")), !n)
|
|
1711
1714
|
if (F.isNode()) {
|
|
@@ -1740,17 +1743,19 @@ const Jc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), Ig = new class {
|
|
|
1740
1743
|
}
|
|
1741
1744
|
!n && Gc() && (o = !0);
|
|
1742
1745
|
}
|
|
1743
|
-
if (!n && o && (n = Wc("No License Key")), !n && t && (n = t), n || (n = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => !1, exceptions: () => ["No license provided"], isValidFor: (i) => !1, isValid: () => !1, features: () => Object.freeze({}), keyFrom: () => "No key", getBuildVersion: Oo, getBuildDate:
|
|
1746
|
+
if (!n && o && (n = Wc("No License Key")), !n && t && (n = t), n || (n = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => !1, exceptions: () => ["No license provided"], isValidFor: (i) => !1, isValid: () => !1, features: () => Object.freeze({}), keyFrom: () => "No key", getBuildVersion: Oo, getBuildDate: Do }), Be.details = n, e(n), s && !(Be.bannerPrinted && Be.detailsPrinted) && (o || n.exceptions().length > 0 || n.features()?.pb)) {
|
|
1744
1747
|
if (qc) return void setTimeout(() => {
|
|
1745
1748
|
this._print(!1, !1);
|
|
1746
1749
|
}, 8e3);
|
|
1747
1750
|
await this._print(!1, !1);
|
|
1748
1751
|
}
|
|
1749
|
-
return
|
|
1752
|
+
return Be.details;
|
|
1750
1753
|
}
|
|
1751
1754
|
async _printBanner(s) {
|
|
1752
|
-
|
|
1753
|
-
|
|
1755
|
+
Be.bannerPrinted = !0;
|
|
1756
|
+
const e = await this.getDetails();
|
|
1757
|
+
return await (async (t) => {
|
|
1758
|
+
const n = t ? console.log : F.consoleWithNoSource, r = `%c
|
|
1754
1759
|
███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗
|
|
1755
1760
|
██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║
|
|
1756
1761
|
███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║
|
|
@@ -1758,13 +1763,13 @@ const Jc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), Ig = new class {
|
|
|
1758
1763
|
███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗
|
|
1759
1764
|
╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝${Wf}
|
|
1760
1765
|
`;
|
|
1761
|
-
return await
|
|
1762
|
-
})(s), Promise.resolve();
|
|
1766
|
+
return await n(`${r}`, `font-family:monospace;color:${ia};font-size:12px;`), Promise.resolve();
|
|
1767
|
+
})(s), !Be.detailsPrinted && (e.isEval() || e.exceptions().length > 0) && await this._printDetails(s), Promise.resolve();
|
|
1763
1768
|
}
|
|
1764
1769
|
async _printDetails(s = !1, e = !1, t = !1) {
|
|
1765
|
-
|
|
1770
|
+
Be.detailsPrinted = !0;
|
|
1766
1771
|
const n = await this.getDetails();
|
|
1767
|
-
await (async (r, o = !1, i = !1, a = !1) => {
|
|
1772
|
+
Be.bannerPrinted || !(n.isEval() || n.exceptions().length > 0) ? await (async (r, o = !1, i = !1, a = !1) => {
|
|
1768
1773
|
let l;
|
|
1769
1774
|
const c = console.log, h = [`color:${ia};font-size:12px`];
|
|
1770
1775
|
if (r.isEval() ? (h.push(`font-family:monospace;color:${ia};font-size:12px;`), l = "%cEvaluation Only", h[0] = "color:#E12929;font-size:12px", l += `%c
|
|
@@ -1780,11 +1785,11 @@ Exceptions:
|
|
|
1780
1785
|
return i && (h.push("color:#FFA726;font-size:12px"), l += "%c", l += `
|
|
1781
1786
|
Location: '${qf()}'`, l += `
|
|
1782
1787
|
KeyFrom: '${r.keyFrom()}'`), await c(`${l}`, ...h), Promise.resolve();
|
|
1783
|
-
})(n, s, e, t);
|
|
1788
|
+
})(n, s, e, t) : await this._printBanner(s);
|
|
1784
1789
|
}
|
|
1785
1790
|
async _print(s, e) {
|
|
1786
|
-
if (!s && (
|
|
1787
|
-
|
|
1791
|
+
if (!s && (Be.bannerPrinted || Be.detailsPrinted)) return;
|
|
1792
|
+
Be.bannerPrinted = !0, Be.detailsPrinted = !0, await this._printBanner(s);
|
|
1788
1793
|
const t = F.isNode(), n = s || t ? console.log : F.consoleWithNoSource;
|
|
1789
1794
|
t && n(""), await this._printDetails(s, e), n("");
|
|
1790
1795
|
}
|
|
@@ -1795,7 +1800,7 @@ KeyFrom: '${r.keyFrom()}'`), await c(`${l}`, ...h), Promise.resolve();
|
|
|
1795
1800
|
return this._print(!0, s);
|
|
1796
1801
|
}
|
|
1797
1802
|
wasPrinted() {
|
|
1798
|
-
return
|
|
1803
|
+
return Be.bannerPrinted || Be.detailsPrinted;
|
|
1799
1804
|
}
|
|
1800
1805
|
suppressPrint(s) {
|
|
1801
1806
|
qc = !0;
|
|
@@ -1847,7 +1852,7 @@ KeyFrom: '${r.keyFrom()}'`), await c(`${l}`, ...h), Promise.resolve();
|
|
|
1847
1852
|
if (c === 0) return !1;
|
|
1848
1853
|
let h = ((i - r) * (e - o) - (a - o) * (s - r)) / c, u = ((t - s) * (e - o) - (n - e) * (s - r)) / c;
|
|
1849
1854
|
return (!l || !(h < 0 || h > 1 || u < 0 || u > 1)) && { x: s + h * (t - s), y: e + h * (n - e) };
|
|
1850
|
-
}, St = (s, e, t = !0) => Ag(s.p1.x, s.p1.y, s.p2.x, s.p2.y, e.p1.x, e.p1.y, e.p2.x, e.p2.y, t),
|
|
1855
|
+
}, St = (s, e, t = !0) => Ag(s.p1.x, s.p1.y, s.p2.x, s.p2.y, e.p1.x, e.p1.y, e.p2.x, e.p2.y, t), cs = (s) => ({ top: { p1: s[0], p2: s[1] }, left: { p1: s[3], p2: s[0] }, right: { p1: s[1], p2: s[2] }, bottom: { p1: s[2], p2: s[3] } }), Xc = (s, e, t) => {
|
|
1851
1856
|
let n = t * Math.PI / 180, r = Math.sin(n), o = Math.cos(n);
|
|
1852
1857
|
return { x: s * o - e * r, y: s * r + e * o };
|
|
1853
1858
|
}, Nn = (s, e) => {
|
|
@@ -1865,12 +1870,12 @@ KeyFrom: '${r.keyFrom()}'`), await c(`${l}`, ...h), Promise.resolve();
|
|
|
1865
1870
|
if (t === 90 || t === 270) return { height: e.width, width: e.height };
|
|
1866
1871
|
let n = la({ ...e, x: 0, y: 0 }), r = la({ ...s, x: 0, y: 0 });
|
|
1867
1872
|
r = bl(r, { x: e.width / 2 - s.width / 2, y: e.height / 2 - s.height / 2 }), r = ca(r, t);
|
|
1868
|
-
let o =
|
|
1873
|
+
let o = cs(r), i = cs(n);
|
|
1869
1874
|
if (t > 90) {
|
|
1870
1875
|
const l = St(o.top, i.top);
|
|
1871
1876
|
if (l) {
|
|
1872
1877
|
const h = l, u = St(o.bottom, i.bottom, !1) || r[3];
|
|
1873
|
-
r[0] = St(o.top, Nn(o.bottom, u), !1) || r[0], r[1] = h, r[3] = u, r[2] = St(o.bottom, Nn(o.top, h), !1) || r[2], o =
|
|
1878
|
+
r[0] = St(o.top, Nn(o.bottom, u), !1) || r[0], r[1] = h, r[3] = u, r[2] = St(o.bottom, Nn(o.top, h), !1) || r[2], o = cs(r);
|
|
1874
1879
|
}
|
|
1875
1880
|
const c = St(o.top, i.left);
|
|
1876
1881
|
if (c) {
|
|
@@ -1881,7 +1886,7 @@ KeyFrom: '${r.keyFrom()}'`), await c(`${l}`, ...h), Promise.resolve();
|
|
|
1881
1886
|
const l = St(o.top, i.top);
|
|
1882
1887
|
if (l) {
|
|
1883
1888
|
const h = l, u = St(o.bottom, i.bottom, !1) || r[2];
|
|
1884
|
-
r[0] = h, r[1] = St(o.top, Nn(o.bottom, u), !1) || r[1], r[3] = St(o.bottom, Nn(o.top, h), !1) || r[3], r[2] = u, o =
|
|
1889
|
+
r[0] = h, r[1] = St(o.top, Nn(o.bottom, u), !1) || r[1], r[3] = St(o.bottom, Nn(o.top, h), !1) || r[3], r[2] = u, o = cs(r);
|
|
1885
1890
|
}
|
|
1886
1891
|
const c = St(o.top, i.right);
|
|
1887
1892
|
if (c) {
|
|
@@ -1932,7 +1937,7 @@ class Ee {
|
|
|
1932
1937
|
set(e, t, n) {
|
|
1933
1938
|
this._root.isShared && (this._root = this._root.clone());
|
|
1934
1939
|
const r = this._root.set(e, t, n, this);
|
|
1935
|
-
return r === !0 || r === !1 ? r : (this._root = new
|
|
1940
|
+
return r === !0 || r === !1 ? r : (this._root = new Lo([this._root, r]), !0);
|
|
1936
1941
|
}
|
|
1937
1942
|
has(e) {
|
|
1938
1943
|
return this.forRange(e, e, !0, void 0) !== 0;
|
|
@@ -2309,7 +2314,7 @@ function pr(s = () => xl) {
|
|
|
2309
2314
|
}), e;
|
|
2310
2315
|
}
|
|
2311
2316
|
Symbol && Symbol.iterator && (Ee.prototype[Symbol.iterator] = Ee.prototype.entries), Ee.prototype.where = Ee.prototype.filter, Ee.prototype.setRange = Ee.prototype.setPairs, Ee.prototype.add = Ee.prototype.set;
|
|
2312
|
-
class
|
|
2317
|
+
class Vo {
|
|
2313
2318
|
get isLeaf() {
|
|
2314
2319
|
return this.children === void 0;
|
|
2315
2320
|
}
|
|
@@ -2350,7 +2355,7 @@ class Ho {
|
|
|
2350
2355
|
}
|
|
2351
2356
|
clone() {
|
|
2352
2357
|
const e = this.values, t = e === ct ? e : e.slice(0), n = this.keys.slice(0);
|
|
2353
|
-
return new
|
|
2358
|
+
return new Vo(n, t);
|
|
2354
2359
|
}
|
|
2355
2360
|
greedyClone(e) {
|
|
2356
2361
|
return this.isShared && !e ? this : this.clone();
|
|
@@ -2424,7 +2429,7 @@ class Ho {
|
|
|
2424
2429
|
}
|
|
2425
2430
|
splitOffRightSide() {
|
|
2426
2431
|
const e = this.keys.length >> 1, t = this.keys.splice(e), n = this.values === ct ? ct : this.values.splice(e);
|
|
2427
|
-
return new
|
|
2432
|
+
return new Vo(t, n);
|
|
2428
2433
|
}
|
|
2429
2434
|
forRange(e, t, n, r, o, i, a) {
|
|
2430
2435
|
const l = o._compare;
|
|
@@ -2454,7 +2459,7 @@ class Ho {
|
|
|
2454
2459
|
this.values.push.apply(this.values, e.reifyValues());
|
|
2455
2460
|
}
|
|
2456
2461
|
}
|
|
2457
|
-
class
|
|
2462
|
+
class Lo extends Vo {
|
|
2458
2463
|
constructor(e, t) {
|
|
2459
2464
|
if (!t) {
|
|
2460
2465
|
t = [];
|
|
@@ -2465,11 +2470,11 @@ class Do extends Ho {
|
|
|
2465
2470
|
clone() {
|
|
2466
2471
|
const e = this.children.slice(0);
|
|
2467
2472
|
for (let t = 0; t < e.length; t++) e[t].isShared = !0;
|
|
2468
|
-
return new
|
|
2473
|
+
return new Lo(e, this.keys.slice(0));
|
|
2469
2474
|
}
|
|
2470
2475
|
greedyClone(e) {
|
|
2471
2476
|
if (this.isShared && !e) return this;
|
|
2472
|
-
const t = new
|
|
2477
|
+
const t = new Lo(this.children.slice(0), this.keys.slice(0));
|
|
2473
2478
|
for (let n = 0; n < t.children.length; n++) t.children[n] = t.children[n].greedyClone(e);
|
|
2474
2479
|
return t;
|
|
2475
2480
|
}
|
|
@@ -2528,7 +2533,7 @@ class Do extends Ho {
|
|
|
2528
2533
|
}
|
|
2529
2534
|
splitOffRightSide() {
|
|
2530
2535
|
const e = this.children.length >> 1;
|
|
2531
|
-
return new
|
|
2536
|
+
return new Lo(this.children.splice(e), this.keys.splice(e));
|
|
2532
2537
|
}
|
|
2533
2538
|
takeFromRight(e) {
|
|
2534
2539
|
this.keys.push(e.keys.shift()), this.children.push(e.children.shift());
|
|
@@ -2572,7 +2577,7 @@ class Do extends Ho {
|
|
|
2572
2577
|
}
|
|
2573
2578
|
}
|
|
2574
2579
|
const ct = [], xl = Object.freeze({ done: !0, value: void 0 }), ha = function() {
|
|
2575
|
-
const s = new
|
|
2580
|
+
const s = new Vo();
|
|
2576
2581
|
return s.isShared = !0, s;
|
|
2577
2582
|
}(), Kc = [], Tt = (s, ...e) => {
|
|
2578
2583
|
if (!s) throw e.unshift("SortedMap:"), new Error(e.join(" "));
|
|
@@ -2697,7 +2702,7 @@ var De;
|
|
|
2697
2702
|
return t.length === 0 ? null : { tuples: t, bounds: { majorStart: t[0][0], minorStart: this._majorMin, majorEnd: t[t.length - 1][0], minorEnd: this._majorMax } };
|
|
2698
2703
|
}
|
|
2699
2704
|
};
|
|
2700
|
-
class e extends
|
|
2705
|
+
class e extends Yo {
|
|
2701
2706
|
constructor(n = "Out of order", r = null) {
|
|
2702
2707
|
super(n, r), this.name = "OutOfOrderError";
|
|
2703
2708
|
}
|
|
@@ -2875,7 +2880,7 @@ function Hn(s, e) {
|
|
|
2875
2880
|
const t = e.match(s);
|
|
2876
2881
|
return t ? { value: parseInt(t[0], 10), rest: e.slice(t[0].length) } : null;
|
|
2877
2882
|
}
|
|
2878
|
-
function
|
|
2883
|
+
function Bo(s, e) {
|
|
2879
2884
|
switch (s) {
|
|
2880
2885
|
case 1:
|
|
2881
2886
|
return Hn(hp, e);
|
|
@@ -2899,7 +2904,7 @@ class Ng extends js {
|
|
|
2899
2904
|
case "M":
|
|
2900
2905
|
return vn(Hn(Tg, e), r);
|
|
2901
2906
|
case "MM":
|
|
2902
|
-
return vn(
|
|
2907
|
+
return vn(Bo(2, e), r);
|
|
2903
2908
|
case "Mo":
|
|
2904
2909
|
return vn(n.ordinalNumber(e, { unit: "month" }), r);
|
|
2905
2910
|
case "MMM":
|
|
@@ -2933,11 +2938,11 @@ const bo = { y: new class extends js {
|
|
|
2933
2938
|
const n = (r) => ({ year: r, isTwoDigitYear: e === "yy" });
|
|
2934
2939
|
switch (e) {
|
|
2935
2940
|
case "y":
|
|
2936
|
-
return vn(
|
|
2941
|
+
return vn(Bo(4, s), n);
|
|
2937
2942
|
case "yo":
|
|
2938
2943
|
return vn(t.ordinalNumber(s, { unit: "year" }), n);
|
|
2939
2944
|
default:
|
|
2940
|
-
return vn(
|
|
2945
|
+
return vn(Bo(e.length, s), n);
|
|
2941
2946
|
}
|
|
2942
2947
|
}
|
|
2943
2948
|
validate(s, e) {
|
|
@@ -2972,7 +2977,7 @@ const bo = { y: new class extends js {
|
|
|
2972
2977
|
case "do":
|
|
2973
2978
|
return t.ordinalNumber(s, { unit: "date" });
|
|
2974
2979
|
default:
|
|
2975
|
-
return
|
|
2980
|
+
return Bo(e.length, s);
|
|
2976
2981
|
}
|
|
2977
2982
|
}
|
|
2978
2983
|
validate(s, e) {
|
|
@@ -3872,8 +3877,8 @@ const Qe = { format: Ug, dateNumLocal: ec, load: dh, split_fmt: Hg, _table: ir,
|
|
|
3872
3877
|
let i = ur(o);
|
|
3873
3878
|
return i = gt(i), i;
|
|
3874
3879
|
})(s, (n, r) => n * t);
|
|
3875
|
-
},
|
|
3876
|
-
const t = Gn(s), n = t[2], r = F.roundAccurately((o = n, (i = e) > 0 ? (o *
|
|
3880
|
+
}, hs = 2.55, jp = (s, e) => {
|
|
3881
|
+
const t = Gn(s), n = t[2], r = F.roundAccurately((o = n, (i = e) > 0 ? (o * hs * (1 - i) + (255 - 255 * (1 - i))) / hs : i < 0 ? o * hs * (1 + i) / hs : o), 3);
|
|
3877
3882
|
var o, i;
|
|
3878
3883
|
t[2] = r;
|
|
3879
3884
|
let a = dr(t);
|
|
@@ -4109,7 +4114,7 @@ const t_ = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, n_ =
|
|
|
4109
4114
|
}, i_ = (s, e) => s === e ? 0 : Sh(s) ? 1 : Sh(e) ? -1 : s === ge.Percentage ? 1 : e === ge.Percentage ? -1 : s === ge.Currency || s === ge.Accounting ? 1 : e === ge.Currency || e === ge.Accounting ? -1 : 0, Xr = (s) => (s instanceof Date || Object.prototype.toString.call(s) === "[object Date]") && !isNaN(s.getTime()), a_ = (s, e, t) => {
|
|
4110
4115
|
return t === "month" || t === "months" || t === "m" ? (n = s, 12 * ((r = e).getUTCFullYear() - n.getUTCFullYear()) + (r.getUTCMonth() - n.getUTCMonth()) + (r.getUTCDate() - n.getUTCDate() < 0 ? -1 : 0)) : t === "year" || t === "years" || t === "y" ? ((o, i) => Math.abs(i.getFullYear() - o.getFullYear()))(s, e) : t === "day" || t === "days" || t === "d" ? ((o, i) => Math.floor((Date.UTC(i.getFullYear(), i.getMonth(), i.getDate()) - Date.UTC(o.getFullYear(), o.getMonth(), o.getDate())) / 864e5))(s, e) : void console.warn("invalid unit" + t);
|
|
4111
4116
|
var n, r;
|
|
4112
|
-
},
|
|
4117
|
+
}, us = "d", wh = "m", yh = "y", Eh = (s, e, t) => {
|
|
4113
4118
|
if (t === "month" || t === "months" || t === "m") {
|
|
4114
4119
|
const n = new Date(s.getTime());
|
|
4115
4120
|
return new Date(n.setMonth(n.getMonth() + e));
|
|
@@ -4130,14 +4135,14 @@ const t_ = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, n_ =
|
|
|
4130
4135
|
}, Kr = (s, e = !1) => {
|
|
4131
4136
|
let t = Qe.parse_date_code(s, { date1904: e });
|
|
4132
4137
|
return t ? new Date(t.y, t.m - 1, t.d, t.H, t.M, t.S, Math.round(1e3 * t.u)) : null;
|
|
4133
|
-
},
|
|
4138
|
+
}, Zo = (s, e = !1) => isNaN(s) ? null : Qe.dateNumLocal(s, e), l_ = new class extends Ng {
|
|
4134
4139
|
parse(s, e, t) {
|
|
4135
4140
|
const n = (r) => r - 1;
|
|
4136
4141
|
switch (e) {
|
|
4137
4142
|
case "M":
|
|
4138
4143
|
return vn(Hn(Tg, s), n);
|
|
4139
4144
|
case "MM":
|
|
4140
|
-
return vn(
|
|
4145
|
+
return vn(Bo(2, s), n);
|
|
4141
4146
|
case "Mo":
|
|
4142
4147
|
return vn(t.ordinalNumber(s, { unit: "month" }), n);
|
|
4143
4148
|
case "MMM":
|
|
@@ -4162,7 +4167,7 @@ const t_ = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, n_ =
|
|
|
4162
4167
|
let o = n.day, i = n.hour;
|
|
4163
4168
|
i > 24 && (o += Math.floor(i / 24), i %= 24), o > 60 && --o;
|
|
4164
4169
|
const a = new Date(n.year, n.month - 1, o, i, n.minute, n.second, n.millis);
|
|
4165
|
-
return
|
|
4170
|
+
return Zo(a, r);
|
|
4166
4171
|
})(t, e), t;
|
|
4167
4172
|
}, u_ = new RegExp("([0-9]{1,2})\\s*(P[M]?|A[M]?)\\s*$", "i"), d_ = new RegExp("([0-9]+)\\s*\\:$", "i"), va = new RegExp("(\\s*[0-9]{1,2})\\s+(P[M]?|A[M]?)\\s*$", "i"), bh = new RegExp("(\\s*[0-9]{1,4})\\s*([\\.]{1}\\s*[0-9]+)?\\s*\\:", "i"), g_ = new RegExp("(\\s*[0-9]{1,4})\\s*([\\.]{1}\\s*[0-9]*)?\\s*$", "i"), Kg = (s, e = !1, t = !1) => {
|
|
4168
4173
|
if (!s || s.trim().length < 2 || s.indexOf(":") === -1 && s.match(va) === null) return null;
|
|
@@ -4245,7 +4250,7 @@ const t_ = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, n_ =
|
|
|
4245
4250
|
}
|
|
4246
4251
|
return bo.M = l, null;
|
|
4247
4252
|
};
|
|
4248
|
-
function
|
|
4253
|
+
function Qo(s) {
|
|
4249
4254
|
if (!s) return !1;
|
|
4250
4255
|
let e = s.replaceAll(/\[([^)]+)\]/g, "").toLowerCase();
|
|
4251
4256
|
return e = e.replaceAll(/".*"/g, ""), e = e.replaceAll(/\\./g, ""), e = e.replace(/[_*]./g, ""), !e.includes("time") && !!(e.includes("d") || e.includes("m") && !e.includes("h") && !e.includes("s") || e.includes("y") || e === "short date" || e === "medium date" || e === "long date");
|
|
@@ -4353,11 +4358,11 @@ const w_ = () => {
|
|
|
4353
4358
|
}
|
|
4354
4359
|
return yr || (console.warn("⚠️ CanvasFontMeasurer not available, falling back to SimpleFontMeasurer"), yr = __), yr;
|
|
4355
4360
|
};
|
|
4356
|
-
let
|
|
4361
|
+
let ds = null;
|
|
4357
4362
|
var ee, gn;
|
|
4358
4363
|
(gn = ee || (ee = {})).Style = { Normal: "normal", Italic: "italic" }, gn.Scheme = { Major: "major", Minor: "minor", None: "none" }, gn.UnderlineStyle = { None: "none", Double: "double", DoubleAccounting: "doubleAccounting", Single: "single", SingleAccounting: "singleAccounting" }, gn.VerticalAlignment = { Baseline: "baseline", Sub: "sub", Super: "super" }, gn.setSharedMeasurer = (s) => {
|
|
4359
|
-
|
|
4360
|
-
}, gn.getSharedMeasurer = () =>
|
|
4364
|
+
ds = s;
|
|
4365
|
+
}, gn.getSharedMeasurer = () => ds || (ds = w_(), ds), gn.getDeviceScale = () => 96 / 72 * 1, gn.getPanoseFallback = (s) => {
|
|
4361
4366
|
const e = [], t = s.length;
|
|
4362
4367
|
for (let i = 0; i < t; i += 2) e.push(parseInt(s.substring(i, i + 2), 16));
|
|
4363
4368
|
const n = e[0], r = e[1], o = e[3];
|
|
@@ -5033,7 +5038,7 @@ const M_ = (s, e, t, n = null, r = ee.getSharedMeasurer()) => {
|
|
|
5033
5038
|
const o = new $i({ text: s, fontName: e.toCSS().fontFamily, fontSize: e.getSize(), bold: e.getWeight() > 400, italic: e.getStyle() === ee.Style.Italic, superSub: !r && (e.getVerticalAlignment() === ee.VerticalAlignment.Sub || e.getVerticalAlignment() === ee.VerticalAlignment.Super), letterSpacing: e.getLetterSpacing() }), i = r ? K.HorizontalAlignment.Left : t.getHorizontal(), a = t.getVertical(), l = new Vi({ runs: [o], align: i });
|
|
5034
5039
|
let c = [];
|
|
5035
5040
|
return c.push(new hm(null, e.getSize(), [o])), new Hi({ paragraphs: [l], wrapped: n && (t.getOverflow() === K.Overflow.Wrap || i === K.HorizontalAlignment.Justify || i === K.HorizontalAlignment.Distributed || a === K.VerticalAlignment.Justify || a === K.VerticalAlignment.Distributed), verticalAlignment: a }, e, t, c);
|
|
5036
|
-
},
|
|
5041
|
+
}, gs = (s, e, t, n) => ({ x: s * n - e * t, y: s * t + e * n }), Hh = (s) => {
|
|
5037
5042
|
let e = 0, t = 0, n = 0, r = 0, o = 0, i = 0, a = 0, l = s.length;
|
|
5038
5043
|
if (l === 0) return { m: 0, b: 0 };
|
|
5039
5044
|
if (l === 1) return { m: 1, b: s[0] };
|
|
@@ -5186,7 +5191,7 @@ const $h = (s, e = !1) => {
|
|
|
5186
5191
|
if (c && c.break) return c;
|
|
5187
5192
|
}
|
|
5188
5193
|
}, Wh = new RegExp("([0-9]+)$");
|
|
5189
|
-
var bi, qh, Z,
|
|
5194
|
+
var bi, qh, Z, ms, T, fs;
|
|
5190
5195
|
((s) => {
|
|
5191
5196
|
s.Date = class {
|
|
5192
5197
|
constructor(a) {
|
|
@@ -5198,8 +5203,8 @@ var bi, qh, Z, gs, T, ms;
|
|
|
5198
5203
|
createFillAt(a, l) {
|
|
5199
5204
|
l = { ...this._options, ...l };
|
|
5200
5205
|
let c = 0, h = this._options?.unit;
|
|
5201
|
-
h || (h = a.length === 1 ?
|
|
5202
|
-
if (!g || g.length < 1) return
|
|
5206
|
+
h || (h = a.length === 1 ? us : ((g, m = !1) => {
|
|
5207
|
+
if (!g || g.length < 1) return us;
|
|
5203
5208
|
let f = g;
|
|
5204
5209
|
m || (f = g.slice(), f = f.sort((E, y) => E.getTime() - y.getTime()));
|
|
5205
5210
|
let _ = !1, p = -1, S = -1;
|
|
@@ -5207,7 +5212,7 @@ var bi, qh, Z, gs, T, ms;
|
|
|
5207
5212
|
let y = f[E];
|
|
5208
5213
|
if (E > f.length - 1 && y.getTime() < f[E + 1].getTime()) throw new Error("Dates are expected to be sorted.");
|
|
5209
5214
|
let b = 12 * y.getFullYear() + y.getMonth();
|
|
5210
|
-
if (b === S) return
|
|
5215
|
+
if (b === S) return us;
|
|
5211
5216
|
S = b;
|
|
5212
5217
|
let w = y.getFullYear();
|
|
5213
5218
|
w > p ? p = w : _ = !0;
|
|
@@ -5447,12 +5452,12 @@ var bi, qh, Z, gs, T, ms;
|
|
|
5447
5452
|
return typeof B == "function" ? B(O) : B[O % B.length];
|
|
5448
5453
|
};
|
|
5449
5454
|
}
|
|
5450
|
-
}, s.Types = { Series: new s.Composite([new s.Date(), new s.Linear(), new s.Ordinal(), new s.List()]), DateDays: new s.Date({ unit:
|
|
5455
|
+
}, s.Types = { Series: new s.Composite([new s.Date(), new s.Linear(), new s.Ordinal(), new s.List()]), DateDays: new s.Date({ unit: us }), DateMonths: new s.Date({ unit: wh }), DateYears: new s.Date({ unit: yh }), Copy: new s.Copy() }, s.fillTo = (a, l, c, h) => {
|
|
5451
5456
|
const u = [], d = l.length, g = a.createFillAt(l, h);
|
|
5452
5457
|
for (let m = d; m < c; m++) u.push(g(m));
|
|
5453
5458
|
return u;
|
|
5454
5459
|
};
|
|
5455
|
-
})(bi || (bi = {})), qh || (qh = {}), (
|
|
5460
|
+
})(bi || (bi = {})), qh || (qh = {}), (ms = Z || (Z = {})).Type = { None: "none", Solid: "solid", Gradient: "gradient", Pattern: "pattern", Image: "pattern", Background: "background", Group: "group", Custom: "custom" }, ms.GradientType = { Linear: "linear", Path: "path", Circular: "circular", Rect: "rect" }, ms.TileMirror = { None: "none", Vertical: "v", Horizontal: "h", Both: "b" }, ms.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" }, (fs = T || (T = {})).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" }, fs.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" }, fs.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" }, fs.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
|
|
5456
5461
|
const Jh = [[4290032820, 1, T.Named.ActiveBorder, !0], [4288263377, 2, T.Named.ActiveCaption, !0], [4278190080, 3, T.Named.CaptionText, !0], [4289440683, 4, T.Named.AppWorkspace, !0], [4293980400, 5, T.Named.BtnFace, !0], [4285098345, 6, T.Named.BtnShadow, !0], [4278190080, 7, T.Named.DkShadow3d, !0], [4293125091, 8, T.Named.BtnHighlight, !0], [4293125091, 9, T.Named.Light3d, !0], [4278190080, 10, T.Named.BtnText, !0], [4278190080, 11, T.Named.Background, !0], [4285361517, 12, T.Named.GrayText, !0], [4281571839, 13, T.Named.Highlight, !0], [4294967295, 14, T.Named.HighlightText, !0], [4278216396, 15, T.Named.HotLight, !0], [4294244348, 16, T.Named.InactiveBorder, !0], [4290760155, 17, T.Named.InactiveCaption, !0], [4278190080, 18, T.Named.InactiveCaptionText, !0], [4294967265, 19, T.Named.InfoBk, !0], [4278190080, 20, T.Named.InfoText, !0], [4293980400, 21, T.Named.Menu, !0], [4278190080, 22, T.Named.MenuText, !0], [4291348680, 23, T.Named.ScrollBar, !0], [4294967295, 24, T.Named.Window, !0], [4284769380, 25, T.Named.WindowFrame, !0], [4278190080, 26, T.Named.WindowText, !0], [16777215, 27, T.Named.Transparent], [4293982463, 28, T.Named.AliceBlue], [4294634455, 29, T.Named.AntiqueWhite], [4278255615, 30, T.Named.Aqua], [4286578644, 31, T.Named.Aquamarine], [4293984255, 32, T.Named.Azure], [4294309340, 33, T.Named.Beige], [4294960324, 34, T.Named.Bisque], [4278190080, 35, T.Named.Black], [4294962125, 36, T.Named.BlanchedAlmond], [4278190335, 37, T.Named.Blue], [4287245282, 38, T.Named.BlueViolet], [4289014314, 39, T.Named.Brown], [4292786311, 40, T.Named.BurlyWood], [4284456608, 41, T.Named.CadetBlue], [4286578432, 42, T.Named.Chartreuse], [4291979550, 43, T.Named.Chocolate], [4294934352, 44, T.Named.Coral], [4284782061, 45, T.Named.CornflowerBlue], [4294965468, 46, T.Named.Cornsilk], [4292613180, 47, T.Named.Crimson], [4278255615, 48, T.Named.Cyan], [4278190219, 49, T.Named.DkBlue], [4278225803, 50, T.Named.DkCyan], [4290283019, 51, T.Named.DkGoldenrod], [4289309097, 52, T.Named.DkGray], [4278215680, 53, T.Named.DkGreen], [4290623339, 54, T.Named.DkKhaki], [4287299723, 55, T.Named.DkMagenta], [4283788079, 56, T.Named.DkOliveGreen], [4294937600, 57, T.Named.DkOrange], [4288230092, 58, T.Named.DkOrchid], [4287299584, 59, T.Named.DkRed], [4293498490, 60, T.Named.DkSalmon], [4287609995, 61, T.Named.DkSeaGreen], [4282924427, 62, T.Named.DkSlateBlue], [4281290575, 63, T.Named.DkSlateGray], [4278243025, 64, T.Named.DkTurquoise], [4287889619, 65, T.Named.DkViolet], [4294907027, 66, T.Named.DeepPink], [4278239231, 67, T.Named.DeepSkyBlue], [4285098345, 68, T.Named.DimGray], [4280193279, 69, T.Named.DodgerBlue], [4289864226, 70, T.Named.Firebrick], [4294966e3, 71, T.Named.FloralWhite], [4280453922, 72, T.Named.ForestGreen], [4294902015, 73, T.Named.Fuchsia], [4292664540, 74, T.Named.Gainsboro], [4294506751, 75, T.Named.GhostWhite], [4294956800, 76, T.Named.Gold], [4292519200, 77, T.Named.Goldenrod], [4286611584, 78, T.Named.Gray], [4278222848, 79, T.Named.Green], [4289593135, 80, T.Named.GreenYellow], [4293984240, 81, T.Named.Honeydew], [4294928820, 82, T.Named.HotPink], [4291648604, 83, T.Named.IndianRed], [4283105410, 84, T.Named.Indigo], [4294967280, 85, T.Named.Ivory], [4293977740, 86, T.Named.Khaki], [4293322490, 87, T.Named.Lavender], [4294963445, 88, T.Named.LavenderBlush], [4286381056, 89, T.Named.LawnGreen], [4294965965, 90, T.Named.LemonChiffon], [4289583334, 91, T.Named.LtBlue], [4293951616, 92, T.Named.LtCoral], [4292935679, 93, T.Named.LtCyan], [4294638200, 94, T.Named.LtGoldenrodYellow], [4292072403, 95, T.Named.LtGray], [4287688336, 96, T.Named.LtGreen], [4294948545, 97, T.Named.LtPink], [4294942842, 98, T.Named.LtSalmon], [4280332970, 99, T.Named.LtSeaGreen], [4287090426, 100, T.Named.LtSkyBlue], [4286023833, 101, T.Named.LtSlateGray], [4289774814, 102, T.Named.LtSteelBlue], [4294967264, 103, T.Named.LtYellow], [4278255360, 104, T.Named.Lime], [4281519410, 105, T.Named.LimeGreen], [4294635750, 106, T.Named.Linen], [4294902015, 107, T.Named.Magenta], [4286578688, 108, T.Named.Maroon], [4284927402, 109, T.Named.MedAquamarine], [4278190285, 110, T.Named.MedBlue], [4290401747, 111, T.Named.MedOrchid], [4287852763, 112, T.Named.MedPurple], [4282168177, 113, T.Named.MedSeaGreen], [4286277870, 114, T.Named.MedSlateBlue], [4278254234, 115, T.Named.MedSpringGreen], [4282962380, 116, T.Named.MedTurquoise], [4291237253, 117, T.Named.MedVioletRed], [4279834992, 118, T.Named.MidnightBlue], [4294311930, 119, T.Named.MintCream], [4294960353, 120, T.Named.MistyRose], [4294960309, 121, T.Named.Moccasin], [4294958765, 122, T.Named.NavajoWhite], [4278190208, 123, T.Named.Navy], [4294833638, 124, T.Named.OldLace], [4286611456, 125, T.Named.Olive], [4285238819, 126, T.Named.OliveDrab], [4294944e3, 127, T.Named.Orange], [4294919424, 128, T.Named.OrangeRed], [4292505814, 129, T.Named.Orchid], [4293847210, 130, T.Named.PaleGoldenrod], [4288215960, 131, T.Named.PaleGreen], [4289720046, 132, T.Named.PaleTurquoise], [4292571283, 133, T.Named.PaleVioletRed], [4294963157, 134, T.Named.PapayaWhip], [4294957753, 135, T.Named.PeachPuff], [4291659071, 136, T.Named.Peru], [4294951115, 137, T.Named.Pink], [4292714717, 138, T.Named.Plum], [4289781990, 139, T.Named.PowderBlue], [4286578816, 140, T.Named.Purple], [4294901760, 141, T.Named.Red], [4290547599, 142, T.Named.RosyBrown], [4282477025, 143, T.Named.RoyalBlue], [4287317267, 144, T.Named.SaddleBrown], [4294606962, 145, T.Named.Salmon], [4294222944, 146, T.Named.SandyBrown], [4281240407, 147, T.Named.SeaGreen], [4294964718, 148, T.Named.SeaShell], [4288696877, 149, T.Named.Sienna], [4290822336, 150, T.Named.Silver], [4287090411, 151, T.Named.SkyBlue], [4285160141, 152, T.Named.SlateBlue], [4285563024, 153, T.Named.SlateGray], [4294966010, 154, T.Named.Snow], [4278255487, 155, T.Named.SpringGreen], [4282811060, 156, T.Named.SteelBlue], [4291998860, 157, T.Named.Tan], [4278222976, 158, T.Named.Teal], [4292394968, 159, T.Named.Thistle], [4294927175, 160, T.Named.Tomato], [4282441936, 161, T.Named.Turquoise], [4293821166, 162, T.Named.Violet], [4294303411, 163, T.Named.Wheat], [4294967295, 164, T.Named.White], [4294309365, 165, T.Named.WhiteSmoke], [4294967040, 166, T.Named.Yellow], [4288335154, 167, T.Named.YellowGreen], [4293980400, 168, T.Named.ButtonFace], [4294967295, 169, T.Named.ButtonHighlight], [4288716960, 170, T.Named.ButtonShadow], [4290367978, 171, T.Named.GradientActiveCaption], [4292338930, 172, T.Named.GradientInactiveCaption], [4293980400, 173, T.Named.MenuBar], [4281571839, 174, T.Named.MenuHighlight]], k_ = new class {
|
|
5457
5462
|
constructor() {
|
|
5458
5463
|
this._lookupByName = /* @__PURE__ */ new Map();
|
|
@@ -5723,28 +5728,28 @@ const O_ = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, nu = (s) => !
|
|
|
5723
5728
|
let o = Kp(s);
|
|
5724
5729
|
for (let i = 0; i < o.length; i++) r.push(n(o[i].trim(), e));
|
|
5725
5730
|
return r.join(";");
|
|
5726
|
-
} }), L_ = Qe._table, ic = (s) => s === 14 ? "Short Date" : L_[s] ?? null, no = [{ numberFormat: "General", formatType: ge.General, primary: 1 }, { numberFormat: "0", formatType: ge.Number, regMatch: /^0[.]{0,1}[0]*$/, args: { decimalPlaces: 0, separator: !1 } }, { numberFormat: "#,##0.00", formatType: ge.Number, regMatch: /^#,##0[.]{0,1}[0]*$/, primary: 2, args: { decimalPlaces: 2, separator: !0 } }, { numberFormat: "#,##0_);(#,##0)", formatType: ge.Number, args: { decimalPlaces: 0, separator: !0 } }, { numberFormat: "#,##0_);[Red](#,##0)", formatType: ge.Number, args: { decimalPlaces: 0, separator: !0 } }, { numberFormat: "#,##0.00_);(#,##0.00)", formatType: ge.Number, args: { decimalPlaces: 2, separator: !0 } }, { numberFormat: "#,##0.00_);[Red](#,##0.00)", formatType: ge.Number, args: { decimalPlaces: 2, separator: !0 } }, { numberFormat: "$#,##0.00", formatType: ge.Currency, primary: 3, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: "$#,##0_);($#,##0)", formatType: ge.Currency, args: { decimalPlaces: 0, currencySymbol: "$" } }, { numberFormat: "$#,##0_);[Red]($#,##0)", formatType: ge.Currency, args: { decimalPlaces: 0, currencySymbol: "$" } }, { numberFormat: "$#,##0.00_);($#,##0.00)", formatType: ge.Currency, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: "$#,##0.00_);[Red]($#,##0.00)", formatType: ge.Currency, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)', primary: 4, formatType: ge.Accounting }, { numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)', formatType: ge.Accounting }, { numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', formatType: ge.Accounting }, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', formatType: ge.Accounting }, { numberFormat: "Short Date", formatType: ge.ShortDate, primary: 5 }, { numberFormat: "d-mmm-yy", formatType: ge.MediumDate, primary: 5.5 }, { numberFormat: "Long Date", formatType: ge.LongDate, primary: 6 }, { numberFormat: "h:mm", formatType: ge.ShortTime, primary: 7 }, { numberFormat: "h:mm AM/PM", formatType: ge.MediumTime, primary: 7.5 }, { numberFormat: "Long Time", formatType: ge.LongTime, primary: 8 }, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', formatType: ge.Comma, primary: 9 }, { numberFormat: "0.00%", formatType: ge.Percentage, primary: 10, args: { decimalPlaces: 2 }, regMatch: /^^[0#?]*[.]{0,1}[0#?]*%*$/ }, { numberFormat: "0%", formatType: ge.Percentage, args: { decimalPlaces: 0 } }, { numberFormat: "# ?/?", formatType: ge.Fraction, primary: 11 }, { numberFormat: "# ??/??", formatType: ge.Fraction }, { numberFormat: "0.00E+00", formatType: ge.Scientific, primary: 12, args: { decimalPlaces: 2 }, regMatch: /^[0#?]*[.]{0,1}[0#?]*E\+[0#?]*$/ }, { numberFormat: "##0.0E+0", formatType: ge.Custom, args: { decimalPlaces: 0 } }, { numberFormat: "@", formatType: ge.Text, primary: 13 }, { numberFormat: "d-mmm", formatType: ge.Custom }, { numberFormat: "mmm-yy", formatType: ge.Custom }, { numberFormat: "h:mm:ss", formatType: ge.Custom }, { numberFormat: "m/d/yyyy h:mm", formatType: ge.Custom }, { numberFormat: "mm:ss", formatType: ge.Custom }, { numberFormat: "mm:ss.0", formatType: ge.Custom }, { numberFormat: "[h]:mm:ss", formatType: ge.Custom }], Ta = [{ numberFormat: "00000", formatType: ge.Special, primary: 11 }, { numberFormat: "00000-0000", formatType: ge.Special }, { numberFormat: "[<=9999999]###-####;(###) ###-####", formatType: ge.Special }, { numberFormat: "000-00-0000", formatType: ge.Special }],
|
|
5731
|
+
} }), L_ = Qe._table, ic = (s) => s === 14 ? "Short Date" : L_[s] ?? null, no = [{ numberFormat: "General", formatType: ge.General, primary: 1 }, { numberFormat: "0", formatType: ge.Number, regMatch: /^0[.]{0,1}[0]*$/, args: { decimalPlaces: 0, separator: !1 } }, { numberFormat: "#,##0.00", formatType: ge.Number, regMatch: /^#,##0[.]{0,1}[0]*$/, primary: 2, args: { decimalPlaces: 2, separator: !0 } }, { numberFormat: "#,##0_);(#,##0)", formatType: ge.Number, args: { decimalPlaces: 0, separator: !0 } }, { numberFormat: "#,##0_);[Red](#,##0)", formatType: ge.Number, args: { decimalPlaces: 0, separator: !0 } }, { numberFormat: "#,##0.00_);(#,##0.00)", formatType: ge.Number, args: { decimalPlaces: 2, separator: !0 } }, { numberFormat: "#,##0.00_);[Red](#,##0.00)", formatType: ge.Number, args: { decimalPlaces: 2, separator: !0 } }, { numberFormat: "$#,##0.00", formatType: ge.Currency, primary: 3, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: "$#,##0_);($#,##0)", formatType: ge.Currency, args: { decimalPlaces: 0, currencySymbol: "$" } }, { numberFormat: "$#,##0_);[Red]($#,##0)", formatType: ge.Currency, args: { decimalPlaces: 0, currencySymbol: "$" } }, { numberFormat: "$#,##0.00_);($#,##0.00)", formatType: ge.Currency, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: "$#,##0.00_);[Red]($#,##0.00)", formatType: ge.Currency, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)', primary: 4, formatType: ge.Accounting }, { numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)', formatType: ge.Accounting }, { numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', formatType: ge.Accounting }, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', formatType: ge.Accounting }, { numberFormat: "Short Date", formatType: ge.ShortDate, primary: 5 }, { numberFormat: "d-mmm-yy", formatType: ge.MediumDate, primary: 5.5 }, { numberFormat: "Long Date", formatType: ge.LongDate, primary: 6 }, { numberFormat: "h:mm", formatType: ge.ShortTime, primary: 7 }, { numberFormat: "h:mm AM/PM", formatType: ge.MediumTime, primary: 7.5 }, { numberFormat: "Long Time", formatType: ge.LongTime, primary: 8 }, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', formatType: ge.Comma, primary: 9 }, { numberFormat: "0.00%", formatType: ge.Percentage, primary: 10, args: { decimalPlaces: 2 }, regMatch: /^^[0#?]*[.]{0,1}[0#?]*%*$/ }, { numberFormat: "0%", formatType: ge.Percentage, args: { decimalPlaces: 0 } }, { numberFormat: "# ?/?", formatType: ge.Fraction, primary: 11 }, { numberFormat: "# ??/??", formatType: ge.Fraction }, { numberFormat: "0.00E+00", formatType: ge.Scientific, primary: 12, args: { decimalPlaces: 2 }, regMatch: /^[0#?]*[.]{0,1}[0#?]*E\+[0#?]*$/ }, { numberFormat: "##0.0E+0", formatType: ge.Custom, args: { decimalPlaces: 0 } }, { numberFormat: "@", formatType: ge.Text, primary: 13 }, { numberFormat: "d-mmm", formatType: ge.Custom }, { numberFormat: "mmm-yy", formatType: ge.Custom }, { numberFormat: "h:mm:ss", formatType: ge.Custom }, { numberFormat: "m/d/yyyy h:mm", formatType: ge.Custom }, { numberFormat: "mm:ss", formatType: ge.Custom }, { numberFormat: "mm:ss.0", formatType: ge.Custom }, { numberFormat: "[h]:mm:ss", formatType: ge.Custom }], Ta = [{ numberFormat: "00000", formatType: ge.Special, primary: 11 }, { numberFormat: "00000-0000", formatType: ge.Special }, { numberFormat: "[<=9999999]###-####;(###) ###-####", formatType: ge.Special }, { numberFormat: "000-00-0000", formatType: ge.Special }], es = /* @__PURE__ */ new Map(), xo = [];
|
|
5727
5732
|
for (let s = 0; s < no.length; s++) {
|
|
5728
5733
|
let e = no[s].numberFormat.toLowerCase();
|
|
5729
|
-
|
|
5734
|
+
es.set(e, no[s]), no[s].regMatch && xo.unshift(no[s]);
|
|
5730
5735
|
}
|
|
5731
5736
|
for (let s = 0; s < Ta.length; s++) {
|
|
5732
5737
|
let e = Ta[s].numberFormat.toLowerCase();
|
|
5733
|
-
|
|
5738
|
+
es.set(e, Ta[s]);
|
|
5734
5739
|
}
|
|
5735
5740
|
const kl = [], _m = /* @__PURE__ */ new Map();
|
|
5736
|
-
|
|
5741
|
+
es.forEach(function(s, e, t) {
|
|
5737
5742
|
s.primary && (kl.push(s), _m.set(F.textToKey(s.formatType), s.numberFormat));
|
|
5738
5743
|
}), kl.sort(function(s, e) {
|
|
5739
5744
|
return s.primary - e.primary;
|
|
5740
5745
|
});
|
|
5741
|
-
const ru =
|
|
5746
|
+
const ru = es.get(ge.General.toLowerCase());
|
|
5742
5747
|
class B_ {
|
|
5743
5748
|
lookupStyle(e) {
|
|
5744
5749
|
if (!e) return ru;
|
|
5745
5750
|
if (typeof e == "number" && (e = ic(e)), !e.toLowerCase) return console.warn("Invalid numberFormat", e), ru;
|
|
5746
5751
|
e = e.toLowerCase();
|
|
5747
|
-
let t =
|
|
5752
|
+
let t = es.get(e);
|
|
5748
5753
|
if (t) return t;
|
|
5749
5754
|
for (let n = 0; !t && n < xo.length; n++) xo[n].regMatch && e.match(xo[n].regMatch) && (t = xo[n]);
|
|
5750
5755
|
return t || { numberFormat: e, formatType: ge.Custom };
|
|
@@ -5756,8 +5761,8 @@ class B_ {
|
|
|
5756
5761
|
return _m.get(F.textToKey(e));
|
|
5757
5762
|
}
|
|
5758
5763
|
}
|
|
5759
|
-
var Ft,
|
|
5760
|
-
(
|
|
5764
|
+
var Ft, ps, ae, ou;
|
|
5765
|
+
(ps = Ft || (Ft = {})).Type = ge, ps.Parser = D_, ps.Styles = new B_(), ps.ParseRunType = O_, (ou = ae || (ae = {})).BuiltInName = { Normal: "Normal", RowLevel: "RowLevel_#", ColLevel: "ColLevel_#", Comma: "Comma", Currency: "Currency", Percent: "Percent", Comma0: "Comma [0]", Currency0: "Currency [0]", Hyperlink: "Hyperlink", FollowedHyperlink: "Followed Hyperlink", Note: "Note", WarningText: "Warning Text", Unknown12: "??-12", Unknown13: "??-13", Unknown14: "??-14", Title: "Title", Heading1: "Heading 1", Heading2: "Heading 2", Heading3: "Heading 3", Heading4: "Heading 4", Input: "Input", Output: "Output", Calculation: "Calculation", CheckCell: "Check Cell", LinkedCell: "Linked Cell", Total: "Total", Good: "Good", Bad: "Bad", Neutral: "Neutral", Accent1: "Accent1", Accent1_20: "20% - Accent1", Accent1_40: "40% - Accent1", Accent1_60: "60% - Accent1", Accent2: "Accent2", Accent2_20: "20% - Accent2", Accent2_40: "40% - Accent2", Accent2_60: "60% - Accent2", Accent3: "Accent3", Accent3_20: "20% - Accent3", Accent3_40: "40% - Accent3", Accent3_60: "60% - Accent3", Accent4: "Accent4", Accent4_20: "20% - Accent4", Accent4_40: "40% - Accent4", Accent4_60: "60% - Accent4", Accent5: "Accent5", Accent5_20: "20% - Accent5", Accent5_40: "40% - Accent5", Accent5_60: "60% - Accent5", Accent6: "Accent6", Accent6_20: "20% - Accent6", Accent6_40: "40% - Accent6", Accent6_60: "60% - Accent6", ExplanatoryText: "Explanatory Text" }, ou.IconSet = { Arrows3: "3Arrows", ArrowsGray3: "3ArrowsGray", Flags3: "3Flags", Signs3: "3Signs", Symbols3: "3Symbols", Symbols3_2: "3Symbols2", TrafficLights3: "3TrafficLights1", TrafficLights3_2: "3TrafficLights2", Arrows4: "4Arrows", ArrowsGray4: "4ArrowsGray", Rating4: "4Rating", RedToBlack4: "4RedToBlack", TrafficLights4: "4TrafficLights", Arrows5: "5Arrows", ArrowsGray5: "5ArrowsGray", Quarters5: "5Quarters", Rating5: "5Rating" };
|
|
5761
5766
|
const z_ = (s, e, t, n, r) => {
|
|
5762
5767
|
const o = JSON.parse(JSON.stringify(s.definition));
|
|
5763
5768
|
o.adjs || (o.adjs = []);
|
|
@@ -5802,18 +5807,18 @@ const j_ = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
|
|
|
5802
5807
|
e[r] = o, o.majorFont = n[1] ?? Ol[1], o.minorFont = n[2] ?? Ol[2];
|
|
5803
5808
|
}
|
|
5804
5809
|
return e;
|
|
5805
|
-
}, $_ = Sm([[Gr, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), U_ = wm([Ol]),
|
|
5810
|
+
}, $_ = Sm([[Gr, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), U_ = wm([Ol]), $o = $_[Gr], Rr = U_[Gr];
|
|
5806
5811
|
let rn = null;
|
|
5807
5812
|
const G_ = new class {
|
|
5808
5813
|
constructor() {
|
|
5809
5814
|
this._colors = {};
|
|
5810
5815
|
for (let s = 0; s < Wr.length; s++) {
|
|
5811
|
-
const e = Wr[s], t = rt.parse(
|
|
5816
|
+
const e = Wr[s], t = rt.parse($o[e]);
|
|
5812
5817
|
this._colors[e] = t;
|
|
5813
5818
|
}
|
|
5814
5819
|
}
|
|
5815
5820
|
getName() {
|
|
5816
|
-
return
|
|
5821
|
+
return $o.name;
|
|
5817
5822
|
}
|
|
5818
5823
|
getDk1() {
|
|
5819
5824
|
return this._colors.dk1;
|
|
@@ -5918,7 +5923,7 @@ const q_ = new class {
|
|
|
5918
5923
|
constructor() {
|
|
5919
5924
|
this._colors = {};
|
|
5920
5925
|
for (let s = 0; s < Wr.length; s++) {
|
|
5921
|
-
const e = Wr[s], t = rt.parse(
|
|
5926
|
+
const e = Wr[s], t = rt.parse($o[e]);
|
|
5922
5927
|
this._colors[e] = t;
|
|
5923
5928
|
}
|
|
5924
5929
|
}
|
|
@@ -5995,7 +6000,7 @@ class Dl {
|
|
|
5995
6000
|
if (!h) throw new Error(`Invalid color scheme key: ${l}`);
|
|
5996
6001
|
const u = a.getColorScheme();
|
|
5997
6002
|
let d = u[h].bind(u)();
|
|
5998
|
-
return d || (d =
|
|
6003
|
+
return d || (d = $o[iu[l] ?? l]), c = new rt(d).toRGBA(), a._cacheColors[l] = c, c;
|
|
5999
6004
|
};
|
|
6000
6005
|
}
|
|
6001
6006
|
get builtInID() {
|
|
@@ -6031,7 +6036,7 @@ const X_ = () => {
|
|
|
6031
6036
|
const s = ((t, n, r) => {
|
|
6032
6037
|
const o = [];
|
|
6033
6038
|
for (let i = 0; i < t.length; i++) {
|
|
6034
|
-
const a = t[i], l = a[0], c = n[a[1]] ??
|
|
6039
|
+
const a = t[i], l = a[0], c = n[a[1]] ?? $o, h = r[a[2]] ?? Rr;
|
|
6035
6040
|
o.push({ name: l, colors: c, fonts: h });
|
|
6036
6041
|
}
|
|
6037
6042
|
return o;
|
|
@@ -6780,7 +6785,7 @@ class Wn {
|
|
|
6780
6785
|
}
|
|
6781
6786
|
_validateBounds(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
6782
6787
|
const n = this._maxCoords, r = n?.min ?? Number.MIN_SAFE_INTEGER, o = n?.max ?? Number.MAX_SAFE_INTEGER;
|
|
6783
|
-
if (e < r || t > o) throw new
|
|
6788
|
+
if (e < r || t > o) throw new je();
|
|
6784
6789
|
}
|
|
6785
6790
|
entries(e) {
|
|
6786
6791
|
let t, n, r = Number.MIN_SAFE_INTEGER, o = Number.MAX_SAFE_INTEGER, i = !0;
|
|
@@ -6822,7 +6827,7 @@ class Wn {
|
|
|
6822
6827
|
l = void 0;
|
|
6823
6828
|
})(_), p || Te);
|
|
6824
6829
|
}, f = { next(_) {
|
|
6825
|
-
if (_ !== void 0 && (_ < 0 || _ > o)) throw new
|
|
6830
|
+
if (_ !== void 0 && (_ < 0 || _ > o)) throw new je();
|
|
6826
6831
|
return m(_);
|
|
6827
6832
|
}, return: (_) => null, throw: (_) => null };
|
|
6828
6833
|
return d(i ? r : o), f;
|
|
@@ -6839,7 +6844,7 @@ class Wn {
|
|
|
6839
6844
|
u !== Number.MIN_SAFE_INTEGER && u !== Number.MAX_SAFE_INTEGER && (Dt.min = u, d = Dt), l = o ? this._runs.entries(d, this._reuseRunsIterator) : this._runs.entriesReversed(d, this._reuseRunsIterator);
|
|
6840
6845
|
}, h = { next(u) {
|
|
6841
6846
|
if (u !== void 0) {
|
|
6842
|
-
if (u < n || u > r) throw new
|
|
6847
|
+
if (u < n || u > r) throw new je();
|
|
6843
6848
|
c(u);
|
|
6844
6849
|
}
|
|
6845
6850
|
if (!l) return Te;
|
|
@@ -7039,13 +7044,13 @@ class a0 {
|
|
|
7039
7044
|
}
|
|
7040
7045
|
search(e, t) {
|
|
7041
7046
|
let n = this.data;
|
|
7042
|
-
if (n.children.length === 0 || !
|
|
7047
|
+
if (n.children.length === 0 || !Ss(e, n)) return F.EmptyArray;
|
|
7043
7048
|
const r = t ?? [], o = this.toBBox, i = [];
|
|
7044
7049
|
for (; n; ) {
|
|
7045
7050
|
const a = n.children, l = a.length, c = n.leaf;
|
|
7046
7051
|
for (let h = 0; h < l; h++) {
|
|
7047
7052
|
const u = a[h], d = c ? o(u) : u;
|
|
7048
|
-
|
|
7053
|
+
Ss(e, d) && (c ? r.push(u) : La(e, d) ? this._all(u, r) : i.push(u));
|
|
7049
7054
|
}
|
|
7050
7055
|
n = i.pop();
|
|
7051
7056
|
}
|
|
@@ -7053,12 +7058,12 @@ class a0 {
|
|
|
7053
7058
|
}
|
|
7054
7059
|
collides(e) {
|
|
7055
7060
|
let t = this.data;
|
|
7056
|
-
if (!
|
|
7061
|
+
if (!Ss(e, t)) return !1;
|
|
7057
7062
|
const n = [];
|
|
7058
7063
|
for (; t; ) {
|
|
7059
7064
|
for (let r = 0; r < t.children.length; r++) {
|
|
7060
7065
|
const o = t.children[r], i = t.leaf ? this.toBBox(o) : o;
|
|
7061
|
-
if (
|
|
7066
|
+
if (Ss(e, i)) {
|
|
7062
7067
|
if (t.leaf || La(e, i)) return !0;
|
|
7063
7068
|
n.push(o);
|
|
7064
7069
|
}
|
|
@@ -7183,14 +7188,14 @@ class a0 {
|
|
|
7183
7188
|
_allDistMargin(e, t, n, r) {
|
|
7184
7189
|
e.children.sort(r);
|
|
7185
7190
|
const o = this.toBBox, i = Ao(e, 0, t, o), a = Ao(e, n - t, n, o);
|
|
7186
|
-
let l =
|
|
7191
|
+
let l = _s(i) + _s(a);
|
|
7187
7192
|
for (let c = t; c < n - t; c++) {
|
|
7188
7193
|
const h = e.children[c];
|
|
7189
|
-
Ro(i, e.leaf ? o(h) : h), l +=
|
|
7194
|
+
Ro(i, e.leaf ? o(h) : h), l += _s(i);
|
|
7190
7195
|
}
|
|
7191
7196
|
for (let c = n - t - 1; c >= t; c--) {
|
|
7192
7197
|
const h = e.children[c];
|
|
7193
|
-
Ro(a, e.leaf ? o(h) : h), l +=
|
|
7198
|
+
Ro(a, e.leaf ? o(h) : h), l += _s(a);
|
|
7194
7199
|
}
|
|
7195
7200
|
return l;
|
|
7196
7201
|
}
|
|
@@ -7229,7 +7234,7 @@ function h0(s, e) {
|
|
|
7229
7234
|
function Da(s) {
|
|
7230
7235
|
return (s.maxX - s.minX) * (s.maxY - s.minY);
|
|
7231
7236
|
}
|
|
7232
|
-
function
|
|
7237
|
+
function _s(s) {
|
|
7233
7238
|
return s.maxX - s.minX + (s.maxY - s.minY);
|
|
7234
7239
|
}
|
|
7235
7240
|
function u0(s, e) {
|
|
@@ -7242,7 +7247,7 @@ function d0(s, e) {
|
|
|
7242
7247
|
function La(s, e) {
|
|
7243
7248
|
return s.minX <= e.minX && s.minY <= e.minY && e.maxX <= s.maxX && e.maxY <= s.maxY;
|
|
7244
7249
|
}
|
|
7245
|
-
function
|
|
7250
|
+
function Ss(s, e) {
|
|
7246
7251
|
return e.minX <= s.maxX && e.minY <= s.maxY && e.maxX >= s.minX && e.maxY >= s.minY;
|
|
7247
7252
|
}
|
|
7248
7253
|
function Mr(s) {
|
|
@@ -7798,9 +7803,9 @@ const _0 = (s, e, t, n, r, o, i) => {
|
|
|
7798
7803
|
}
|
|
7799
7804
|
}, Ve.Right), { inserts: _, removes: p };
|
|
7800
7805
|
}, Lt = [null, null], S0 = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Nt = (s = Number.MIN_SAFE_INTEGER, e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER, r, o, i) => {
|
|
7801
|
-
if (o && (s !== Number.MIN_SAFE_INTEGER && s < o.colStart || e !== Number.MIN_SAFE_INTEGER && e < o.rowStart || t !== Number.MAX_SAFE_INTEGER && t > o.colEnd || n !== Number.MAX_SAFE_INTEGER && n > o.rowEnd)) throw new
|
|
7806
|
+
if (o && (s !== Number.MIN_SAFE_INTEGER && s < o.colStart || e !== Number.MIN_SAFE_INTEGER && e < o.rowStart || t !== Number.MAX_SAFE_INTEGER && t > o.colEnd || n !== Number.MAX_SAFE_INTEGER && n > o.rowEnd)) throw new je();
|
|
7802
7807
|
return i && (s = Math.max(i.colStart, s), e = Math.max(i.rowStart, e), t = Math.min(i.colEnd, t), n = Math.min(i.rowEnd, n), t < s || n < e) ? null : (so.majorStart = r ? s : e, so.majorEnd = r ? t : n, so.minorStart = r ? e : s, so.minorEnd = r ? n : t, so);
|
|
7803
|
-
},
|
|
7808
|
+
}, Uo = (s, e, t) => {
|
|
7804
7809
|
const n = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 };
|
|
7805
7810
|
return n.colStart = e ? s.majorStart : s.minorStart, n.rowStart = e ? s.minorStart : s.majorStart, n.colEnd = e ? s.majorEnd : s.minorEnd, n.rowEnd = e ? s.minorEnd : s.majorEnd, n;
|
|
7806
7811
|
}, so = { majorStart: 0, majorEnd: 0, minorStart: 0, minorEnd: 0 }, fu = (s, e) => s[0] - e[0];
|
|
@@ -8021,13 +8026,13 @@ const _u = "Must be an array of arrays.", Qs = (s, e, t) => {
|
|
|
8021
8026
|
i = a, a = h;
|
|
8022
8027
|
}
|
|
8023
8028
|
if (!Array.isArray(s)) throw new Error(_u);
|
|
8024
|
-
if (s.length > i) throw new
|
|
8029
|
+
if (s.length > i) throw new je();
|
|
8025
8030
|
const l = e ? new De.TransposedBuilder() : new De.Builder();
|
|
8026
8031
|
for (let c = 0; c < s.length; c++) {
|
|
8027
8032
|
let h = s[c];
|
|
8028
8033
|
if (h != null && h.length !== 0) {
|
|
8029
8034
|
if (!Array.isArray(h)) throw new Error(_u);
|
|
8030
|
-
if (h.length > a) throw new
|
|
8035
|
+
if (h.length > a) throw new je();
|
|
8031
8036
|
if (n) {
|
|
8032
8037
|
let u = -1;
|
|
8033
8038
|
for (let d = 0; d < h.length; d++)
|
|
@@ -8210,7 +8215,7 @@ class sn {
|
|
|
8210
8215
|
const i = this._isColumn, a = this._maxCoords;
|
|
8211
8216
|
if (a) {
|
|
8212
8217
|
const b = i ? a.colStart : a.rowStart, w = i ? a.colEnd : a.rowEnd;
|
|
8213
|
-
if (t < b || n > w) throw new
|
|
8218
|
+
if (t < b || n > w) throw new je();
|
|
8214
8219
|
r = i ? a.rowStart : a.colStart, o = i ? a.rowEnd : a.colEnd;
|
|
8215
8220
|
}
|
|
8216
8221
|
if (!e || e.length === 0) return this;
|
|
@@ -8223,7 +8228,7 @@ class sn {
|
|
|
8223
8228
|
for (let C = 0; C < x; C++) {
|
|
8224
8229
|
const A = w[C], R = A[0], M = A[1], N = R + M.length - 1;
|
|
8225
8230
|
if (I >= R) throw new De.OutOfOrderError(`Overlapping minor Indices: {${v}, ${R}}.`);
|
|
8226
|
-
if (R < r || N > o) throw new
|
|
8231
|
+
if (R < r || N > o) throw new je();
|
|
8227
8232
|
if (M && M.length > 0) {
|
|
8228
8233
|
const O = b.getCount();
|
|
8229
8234
|
b.setRunAt(R, m(M));
|
|
@@ -8365,7 +8370,7 @@ class sn {
|
|
|
8365
8370
|
if (J === 0) R.add(L), x = Math.min(x, U), C = Math.max(C, $);
|
|
8366
8371
|
else {
|
|
8367
8372
|
const le = V.getCoords();
|
|
8368
|
-
if (x = Math.min(x, le.min), C = Math.max(C, le.max), C > A) throw new
|
|
8373
|
+
if (x = Math.min(x, le.min), C = Math.max(C, le.max), C > A) throw new je();
|
|
8369
8374
|
}
|
|
8370
8375
|
y += J - q, w.push([L, V]);
|
|
8371
8376
|
}
|
|
@@ -8490,7 +8495,7 @@ class xi {
|
|
|
8490
8495
|
switch (this._vi32 ? r = this._vi32[e] : (o = !0, r = Number(this._vi64[e])), n) {
|
|
8491
8496
|
case ei:
|
|
8492
8497
|
return o ? Number(r) : r;
|
|
8493
|
-
case
|
|
8498
|
+
case zo:
|
|
8494
8499
|
return o ? this._vf64[e] : this._vf32[e];
|
|
8495
8500
|
case ti:
|
|
8496
8501
|
return !!r;
|
|
@@ -8563,7 +8568,7 @@ class xi {
|
|
|
8563
8568
|
case ti:
|
|
8564
8569
|
d[w] = BigInt(v ? 1 : 0);
|
|
8565
8570
|
break;
|
|
8566
|
-
case
|
|
8571
|
+
case zo:
|
|
8567
8572
|
g[w] = v;
|
|
8568
8573
|
break;
|
|
8569
8574
|
case To:
|
|
@@ -8591,7 +8596,7 @@ class xi {
|
|
|
8591
8596
|
case ti:
|
|
8592
8597
|
d[v] = I ? 1 : 0;
|
|
8593
8598
|
break;
|
|
8594
|
-
case
|
|
8599
|
+
case zo:
|
|
8595
8600
|
g[v] = I;
|
|
8596
8601
|
break;
|
|
8597
8602
|
case To:
|
|
@@ -8612,11 +8617,11 @@ class xi {
|
|
|
8612
8617
|
return new xi({ length: i, types: h ? a : null, type: u, values32: p, values64: m, getCoercedValue: n });
|
|
8613
8618
|
}
|
|
8614
8619
|
}
|
|
8615
|
-
const v0 = 0.1, ei = 1,
|
|
8620
|
+
const v0 = 0.1, ei = 1, zo = 2, ti = 3, To = 4, No = 5, ni = 6, ri = 7, Im = 8, Am = 9, Rm = 10, Mm = 11, Tm = 12, Nm = 13, lc = 14, oi = 127, wu = { Undefined: lc }, yu = (s, e) => {
|
|
8616
8621
|
switch (typeof s) {
|
|
8617
8622
|
case "number":
|
|
8618
8623
|
const t = s;
|
|
8619
|
-
return Number.isNaN(t) ? Rm : t === 1 / 0 ? Im : t === -1 / 0 ? Am : Object.is(t, -0) ?
|
|
8624
|
+
return Number.isNaN(t) ? Rm : t === 1 / 0 ? Im : t === -1 / 0 ? Am : Object.is(t, -0) ? zo : t === Number.MAX_SAFE_INTEGER ? Mm : t === Number.MIN_SAFE_INTEGER ? Tm : Number.isInteger(t) && t <= 2147483647 && t >= -2147483648 ? ei : Math.fround(t) === t ? zo : No;
|
|
8620
8625
|
case "string":
|
|
8621
8626
|
return ni;
|
|
8622
8627
|
case "boolean":
|
|
@@ -8737,7 +8742,7 @@ class ut {
|
|
|
8737
8742
|
const o = e.build();
|
|
8738
8743
|
if (!o) return this;
|
|
8739
8744
|
let i = this._values;
|
|
8740
|
-
const a = i.getOrientation(), l = (t?.orientation ?? a) === k.Orientation.Column, c =
|
|
8745
|
+
const a = i.getOrientation(), l = (t?.orientation ?? a) === k.Orientation.Column, c = Uo(o.bounds, l), h = this._coords ?? D.EmptyRange, u = Math.max(c.colEnd - c.colStart + 1, n ?? h.colEnd - h.colStart + 1), d = Math.max(c.rowEnd - c.rowStart + 1, r ?? h.rowEnd - h.rowStart + 1), g = h.colStart, m = h.rowStart, f = g + u - 1, _ = m + d - 1;
|
|
8741
8746
|
return i = i.clone(), i.setValues(o.tuples), new ut(i, { colStart: g, rowStart: m, colEnd: f, rowEnd: _ }, this._type, this._isLiteral);
|
|
8742
8747
|
}
|
|
8743
8748
|
forEach(e, t) {
|
|
@@ -9122,7 +9127,7 @@ class ut {
|
|
|
9122
9127
|
return !0;
|
|
9123
9128
|
}
|
|
9124
9129
|
}
|
|
9125
|
-
const lt = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER }, C0 = Object.freeze([Object.freeze([null])]),
|
|
9130
|
+
const lt = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER }, C0 = Object.freeze([Object.freeze([null])]), ts = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), x0 = Object.freeze({ colIndex: 0, rowIndex: 0 }), Pl = () => ts, mt = (s, e = !1) => typeof s == "number" ? isNaN(s) || s === 1 / 0 || s === -1 / 0 ? X.Error : X.Number : typeof s == "string" ? X.String : typeof s == "boolean" ? X.Boolean : s?.isFormulaError ? X.Error : s === null ? X.Null : F.isObject(s) && s.hasOwnProperty("type") && typeof s.type == "string" ? X.RichData : e && Xr(s) ? "Date" : s === void 0 ? (console.warn("undefined"), X.Null) : null, Cu = /* @__PURE__ */ new Map([[X.Null, "any"], [X.Number, "number"], [X.String, "string"], [X.Boolean, "boolean"], [X.Error, "FormulaError"], [X.RichData, "richData"], ["*", "Scalar"]]), I0 = /* @__PURE__ */ new Map([["p", "IReferenceRange"], ["r", "IRange"]]), A0 = { orientation: k.Orientation.Row }, qt = (s, e, t = X.Number, n = !1, r = !1) => {
|
|
9126
9131
|
if (e === t || !t) return e === X.Number && (s = Gi(s, null, "number")), s;
|
|
9127
9132
|
if (t === X.Number) {
|
|
9128
9133
|
switch (e) {
|
|
@@ -9139,7 +9144,7 @@ const lt = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
|
|
|
9139
9144
|
case X.Boolean:
|
|
9140
9145
|
return n ? s ? 1 : 0 : Y.BuiltIn.Value;
|
|
9141
9146
|
case "Date":
|
|
9142
|
-
return
|
|
9147
|
+
return Zo(s, r) ?? Y.BuiltIn.Value;
|
|
9143
9148
|
case X.Error:
|
|
9144
9149
|
return s;
|
|
9145
9150
|
}
|
|
@@ -9283,7 +9288,7 @@ const lt = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
|
|
|
9283
9288
|
}, R0 = (s, e, t, n) => {
|
|
9284
9289
|
let r;
|
|
9285
9290
|
r = Array.isArray(s) ? Array.isArray(s[0]) ? s : [s] : [[s]], e || (e = new sn({ orientation: k.Orientation.Column }));
|
|
9286
|
-
const o = e.getOrientation() === k.Orientation.Column, i = Ci(r, o, Nt(t?.colStart ?? 0, t?.rowStart ?? 0, void 0, void 0, o), !0), a =
|
|
9291
|
+
const o = e.getOrientation() === k.Orientation.Column, i = Ci(r, o, Nt(t?.colStart ?? 0, t?.rowStart ?? 0, void 0, void 0, o), !0), a = Uo(i.bounds, o);
|
|
9287
9292
|
return e.setValues(i.tuples), new ut(e, a, n, !t);
|
|
9288
9293
|
}, M0 = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), T0 = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), N0 = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), F0 = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), k0 = /\s+/g, O0 = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, za = /[\uE000-\uF8FF]/g, it = "#REF!", km = Math.pow(2, 14), D0 = Math.pow(2, 20);
|
|
9289
9294
|
let Iu, Au;
|
|
@@ -9295,7 +9300,7 @@ const Yt = (s) => {
|
|
|
9295
9300
|
let e = "";
|
|
9296
9301
|
for (++s; s; s = Math.floor((s - 1) / 26)) e = String.fromCharCode((s - 1) % 26 + 65) + e;
|
|
9297
9302
|
return Pa = e, Pa;
|
|
9298
|
-
}, L0 = /[^a-zA-Z0-9]/,
|
|
9303
|
+
}, L0 = /[^a-zA-Z0-9]/, ns = (s) => s ? Yt(s.colIndex) + an(s.rowIndex) : null, Jn = (s) => {
|
|
9299
9304
|
if (!s) return it;
|
|
9300
9305
|
const e = Yt(s.colIndex), t = an(s.rowIndex);
|
|
9301
9306
|
return (s.$colIndex ? "$" + e : e) + (s.$rowIndex ? "$" + t : t);
|
|
@@ -9303,7 +9308,7 @@ const Yt = (s) => {
|
|
|
9303
9308
|
let t = s ?? e;
|
|
9304
9309
|
var n;
|
|
9305
9310
|
return t && (t = rc(t), t = t.replace(/'/g, "''"), n = t, L0.test(n) && (t = rm(t))), t;
|
|
9306
|
-
}, Om = (s, e) => s ? s + (s.endsWith("!") ? "" : "!") + e : it, In = (s, e, t =
|
|
9311
|
+
}, Om = (s, e) => s ? s + (s.endsWith("!") ? "" : "!") + e : it, In = (s, e, t = ns) => {
|
|
9307
9312
|
if (!s) return null;
|
|
9308
9313
|
const n = s.colStart, r = s.rowStart, o = s.colEnd, i = s.rowEnd;
|
|
9309
9314
|
if (n === o && r === i) return t({ colIndex: n, rowIndex: r });
|
|
@@ -9357,7 +9362,7 @@ const Yt = (s) => {
|
|
|
9357
9362
|
}
|
|
9358
9363
|
const a = {};
|
|
9359
9364
|
return e || n !== 0 && t !== 0 ? (t > 0 && (a.colIndex = t - 1, r && (a.$colIndex = r)), n > 0 && (a.rowIndex = n - 1, (o || e && r) && (a.$rowIndex = o || e && r)), a) : null;
|
|
9360
|
-
}, jt = (s, e =
|
|
9365
|
+
}, jt = (s, e = ts, t = !1) => {
|
|
9361
9366
|
if (!s) return null;
|
|
9362
9367
|
let n = s.toUpperCase();
|
|
9363
9368
|
const r = zm(n, t);
|
|
@@ -9370,7 +9375,7 @@ const Yt = (s) => {
|
|
|
9370
9375
|
return null;
|
|
9371
9376
|
const a = {};
|
|
9372
9377
|
return o && (o.colIndex !== void 0 && (a.colStart = o.colIndex), o.rowIndex !== void 0 && (a.rowStart = o.rowIndex), o.$colIndex !== void 0 && (a.$colStart = o.$colIndex), o.$rowIndex !== void 0 && (a.$rowStart = o.$rowIndex), a?.colStart !== void 0 && a?.colStart > e?.colEnd) ? null : (i && (i.colIndex !== void 0 && (a.colEnd = i.colIndex), i.rowIndex !== void 0 && (a.rowEnd = i.rowIndex), i.$colIndex !== void 0 && (a.$colEnd = i.$colIndex), i.$rowIndex !== void 0 && (a.$rowEnd = i.$rowIndex)), { ...e, ...a });
|
|
9373
|
-
},
|
|
9378
|
+
}, rs = (s, e, t = !1) => {
|
|
9374
9379
|
const n = ((o) => {
|
|
9375
9380
|
const i = o.lastIndexOf("!");
|
|
9376
9381
|
if (i === -1) return null;
|
|
@@ -9395,7 +9400,7 @@ const Yt = (s) => {
|
|
|
9395
9400
|
}, Lm = (s, e, t = Wi, n = Jn) => {
|
|
9396
9401
|
const r = uc(s, e, t, n);
|
|
9397
9402
|
return r ? r.join(",") : it;
|
|
9398
|
-
}, Bm = (s, e, t, n =
|
|
9403
|
+
}, Bm = (s, e, t, n = rs, r, o = !1) => {
|
|
9399
9404
|
if (e !== null) {
|
|
9400
9405
|
if (typeof e == "string") {
|
|
9401
9406
|
const i = n(e, t, o);
|
|
@@ -9422,7 +9427,7 @@ const Yt = (s) => {
|
|
|
9422
9427
|
}
|
|
9423
9428
|
} else s.push(null);
|
|
9424
9429
|
} else s.push(null);
|
|
9425
|
-
}, dc = (s, e, t =
|
|
9430
|
+
}, dc = (s, e, t = rs, n, r = !1) => {
|
|
9426
9431
|
if (!s) return [e];
|
|
9427
9432
|
let o;
|
|
9428
9433
|
o = typeof s == "string" ? om(s) : s.isICellRanges ? s.getCoords() : Array.isArray(s) ? s : [s];
|
|
@@ -9587,7 +9592,7 @@ const Yt = (s) => {
|
|
|
9587
9592
|
n.push(l.replace(za, (c, h) => Pr[r++]));
|
|
9588
9593
|
}
|
|
9589
9594
|
return a = a.toUpperCase().replace(k0, ""), a.replace(za, P0);
|
|
9590
|
-
}, jr = "Must specify an address.", jm = "Only a single range is allowed for this operation. Use 'getRanges' instead.", Hm = "Invalid range. The Range must be specified as '{ TOP_LEFT:BOTTOM_RIGHT }'.",
|
|
9595
|
+
}, jr = "Must specify an address.", jm = "Only a single range is allowed for this operation. Use 'getRanges' instead.", Hm = "Invalid range. The Range must be specified as '{ TOP_LEFT:BOTTOM_RIGHT }'.", Go = (s) => `Invalid address. Can not parse ${typeof s == "string" ? `'${s}' ` : ""}as an address or named item.`, we = () => {
|
|
9591
9596
|
throw new Error("Invalid range.");
|
|
9592
9597
|
};
|
|
9593
9598
|
class ar {
|
|
@@ -9745,7 +9750,7 @@ class pn {
|
|
|
9745
9750
|
const Nu = Object.freeze({ break: !0 });
|
|
9746
9751
|
var te;
|
|
9747
9752
|
(te || (te = {})).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" };
|
|
9748
|
-
const V0 = Object.freeze({ [te.Type.Style]: !1, [te.Type.Table]: !1, [te.Type.Merge]: !1, [te.Type.Hyperlink]: !1, [te.Type.Comments]: !1, [te.Type.Unlock]: !1, [te.Type.Formula]: !1, [te.Type.Spill]: !1, [te.Type.Pending]: !1, [te.Type.CalcError]: !1, [te.Type.Contentful]: !1, [te.Type.Conditional]: !1, [te.Type.Continuous]: !1 }), Vm = Object.freeze({ [te.Type.Style]: !1, [te.Type.Table]: !1, [te.Type.Merge]: !1, [te.Type.Hyperlink]: !1, [te.Type.Comments]: !1, [te.Type.Unlock]: !1, [te.Type.Formula]: !1, [te.Type.Spill]: !1, [te.Type.Pending]: !1, [te.Type.CalcError]: !1, [te.Type.Conditional]: !1, [te.Type.Continuous]: !1 }), $0 = Object.freeze({ [te.Type.Style]: !1, [te.Type.Table]: !0, [te.Type.Merge]: !1, [te.Type.Hyperlink]: !1, [te.Type.Comments]: !1, [te.Type.Unlock]: !1, [te.Type.Formula]: !1 }), U0 = Object.freeze({ [te.Type.Style]: !1, [te.Type.Table]: !1, [te.Type.Hyperlink]: !1, [te.Type.Comments]: !1, [te.Type.Unlock]: !1, [te.Type.Contentful]: !1, [te.Type.Formula]: !1 }),
|
|
9753
|
+
const V0 = Object.freeze({ [te.Type.Style]: !1, [te.Type.Table]: !1, [te.Type.Merge]: !1, [te.Type.Hyperlink]: !1, [te.Type.Comments]: !1, [te.Type.Unlock]: !1, [te.Type.Formula]: !1, [te.Type.Spill]: !1, [te.Type.Pending]: !1, [te.Type.CalcError]: !1, [te.Type.Contentful]: !1, [te.Type.Conditional]: !1, [te.Type.Continuous]: !1 }), Vm = Object.freeze({ [te.Type.Style]: !1, [te.Type.Table]: !1, [te.Type.Merge]: !1, [te.Type.Hyperlink]: !1, [te.Type.Comments]: !1, [te.Type.Unlock]: !1, [te.Type.Formula]: !1, [te.Type.Spill]: !1, [te.Type.Pending]: !1, [te.Type.CalcError]: !1, [te.Type.Conditional]: !1, [te.Type.Continuous]: !1 }), $0 = Object.freeze({ [te.Type.Style]: !1, [te.Type.Table]: !0, [te.Type.Merge]: !1, [te.Type.Hyperlink]: !1, [te.Type.Comments]: !1, [te.Type.Unlock]: !1, [te.Type.Formula]: !1 }), U0 = Object.freeze({ [te.Type.Style]: !1, [te.Type.Table]: !1, [te.Type.Hyperlink]: !1, [te.Type.Comments]: !1, [te.Type.Unlock]: !1, [te.Type.Contentful]: !1, [te.Type.Formula]: !1 }), ws = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", G0 = (s = "update") => `Unable to ${s}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, Ii = "The range is outside of the bounds of the sheet.", Fu = "Listener can not be null", ku = "We can't insert items. The sheet is protected.", Ou = (s) => `We can't create a ${s} that overlaps with another table or merge.`, Du = "Overlapping ranges can not be merged.", Va = "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.", Lu = "Unable to partially fill over merged cells.", Bu = "Unable to sort merged cells unless they are all the same size.", It = "Sheet has been closed. No further operations are allowed.", Hr = "IteratorContext can only be used during visit.", zu = "When using addresses directly from the sheet do not include the sheet name.", $m = (s) => `Unable to return more than ${s} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, Pu = "Multiple selection ranges can not be copied.", ju = "Unable to determine source.", Hu = "When pasting before or after the cut area both areas must align.", Cr = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, Vu = /* @__PURE__ */ new Set(), $l = typeof process == "object" && process ? process : {}, Um = (s, e, t, n) => {
|
|
9749
9754
|
typeof $l.emitWarning == "function" ? $l.emitWarning(s, e, t, n) : console.error(`[${t}] ${e}: ${s}`);
|
|
9750
9755
|
};
|
|
9751
9756
|
let Ai = globalThis.AbortController, $u = globalThis.AbortSignal;
|
|
@@ -10473,15 +10478,15 @@ const Qn = (s) => {
|
|
|
10473
10478
|
return t = t ? " " + t : "", `${e.size !== null ? `${e.size}pt ` : ""}${e.cssKey}${t}`;
|
|
10474
10479
|
};
|
|
10475
10480
|
let Mi = [];
|
|
10476
|
-
const Qu = /* @__PURE__ */ new Set(), Ul = /* @__PURE__ */ new Map(),
|
|
10481
|
+
const Qu = /* @__PURE__ */ new Set(), Ul = /* @__PURE__ */ new Map(), Po = (s, e) => {
|
|
10477
10482
|
let t = s.size !== null ? `${s.size.toString()} ${s.cssKey}` : s.cssKey;
|
|
10478
10483
|
Ul.set(t, e), Qu.has(s.cssKey) || (Mi.push(s.cssKey), Qu.add(s.cssKey));
|
|
10479
10484
|
};
|
|
10480
|
-
yt.forEach(
|
|
10485
|
+
yt.forEach(Po);
|
|
10481
10486
|
const $a = Object.keys(W.StrokeStyle);
|
|
10482
10487
|
for (let s = 0; s < $a.length; s++)
|
|
10483
|
-
|
|
10484
|
-
|
|
10488
|
+
Po({ size: null, cssKey: $a[s].toLowerCase() }, W.StrokeStyle[$a[s]]);
|
|
10489
|
+
Po({ size: null, cssKey: "double" }, W.StrokeStyle.Double), Po({ size: null, cssKey: "solid" }, W.StrokeStyle.Medium), Po({ size: null, cssKey: "hidden" }, W.StrokeStyle.None), Mi.sort((s, e) => e.length - s.length);
|
|
10485
10490
|
let ui = "";
|
|
10486
10491
|
for (let s = 0; s < Mi.length; s++) ui.length > 0 && (ui += "|"), ui += "\\b" + Mi[s] + "\\b";
|
|
10487
10492
|
const RS = new RegExp(`(\\s*(?:${ui}))`, "g"), MS = new RegExp("(\\s*[0-9]*[.]?[0-9]+(?:pt|px){0,1})", "g"), Km = (s) => {
|
|
@@ -10516,7 +10521,7 @@ const Ym = (s, e) => {
|
|
|
10516
10521
|
throw t;
|
|
10517
10522
|
}
|
|
10518
10523
|
return s;
|
|
10519
|
-
},
|
|
10524
|
+
}, Wo = { shorthand: (s, e) => {
|
|
10520
10525
|
if (!s || s === "none" || s === "transparent") return null;
|
|
10521
10526
|
try {
|
|
10522
10527
|
return e.parseColor(s).toString();
|
|
@@ -10528,7 +10533,7 @@ const Ym = (s, e) => {
|
|
|
10528
10533
|
if (typeof s == "string" && (s = Km(s)), !s) return null;
|
|
10529
10534
|
const t = {};
|
|
10530
10535
|
return s.style && (t.style = s.style), s.color && (t.color = s.color), s.isIStroke ? s.getProperties() : t;
|
|
10531
|
-
}, properties: { color:
|
|
10536
|
+
}, properties: { color: Wo } }, ed = { shorthand: (s, e) => s === "none" || s === "transparent" || typeof s == "object" && Object.keys(s).length === 0 ? { type: Z.Type.None } : (s.getType?.(), Z.Type.None, s) }, td = { shorthand: (s, e) => (typeof (s = Ym(s, e.parseColor.bind(e))) == "object" && s.color && (s.type = Z.Type.Solid), s), merge: (s, e, t) => s.color ? s : (e?.toJSON && (e = e.toJSON()), e?.type === Z.Type.Solid ? { ...e } : e?.type === Z.Type.Gradient ? { type: Z.Type.Solid, color: e?.stops?.[0]?.color ?? t.parseColor(T.Scheme.Bg1) } : e?.type === Z.Type.Pattern ? { type: Z.Type.Solid, color: e?.foreground ?? t.parseColor(T.Scheme.Bg1) } : s ? { ...s } : null), properties: { color: Wo } }, nd = { shorthand: (s, e) => (typeof s == "object" && s.stops && (s.type = Z.Type.Gradient), s), merge: (s, e, t) => s.stops ? s : (e?.toJSON && (e = e.toJSON()), e?.type === Z.Type.Gradient ? { ...e } : e?.type === Z.Type.Solid ? { type: Z.Type.Gradient, stops: [{ offset: 0, color: e?.color ?? T.Scheme.Accent1 }, { offset: 1, color: T.Scheme.Bg1 }] } : e?.type === Z.Type.Pattern ? { type: Z.Type.Gradient, stops: [{ offset: 0, color: e?.foreground ?? T.Scheme.Bg1 }, { offset: 1, color: e?.background ?? T.Scheme.Accent1 }] } : s ? { ...s } : null), properties: { stops: { shorthand: (s, e) => s, arrayType: { shorthand: (s, e) => s = Ym(s, e.parseColor.bind(e)), properties: { color: Wo } } } } }, rd = { shorthand: (s, e) => {
|
|
10532
10537
|
if (typeof s == "object") {
|
|
10533
10538
|
const t = s;
|
|
10534
10539
|
(t.foreground || t.background || t.patternType) && (t.type = Z.Type.Pattern, t.patternType = t.patternType ?? Z.BuiltInSheetPattern.Solid);
|
|
@@ -10539,7 +10544,7 @@ const Ym = (s, e) => {
|
|
|
10539
10544
|
e?.toJSON && (e = e.toJSON());
|
|
10540
10545
|
const n = Z.BuiltInSheetPattern.MediumGray;
|
|
10541
10546
|
return e?.type === Z.Type.Pattern ? { ...e, ...s } : e?.type === Z.Type.Solid ? { patternType: n, ...s, foreground: e?.color ?? T.Named.WindowText, background: T.Scheme.Bg1 } : e?.type === Z.Type.Gradient ? { patternType: n, ...s, foreground: e?.stops?.[0]?.color ?? T.Named.WindowText, background: e?.stops?.[1]?.color ?? T.Scheme.Bg1 } : s ? { type: Z.Type.Pattern, patternType: Z.BuiltInSheetPattern.Solid, foreground: T.Named.WindowText, background: T.Scheme.Bg1, ...s } : null;
|
|
10542
|
-
}, properties: { foreground:
|
|
10547
|
+
}, properties: { foreground: Wo, background: Wo } }, Je = { properties: { font: { shorthand: (s, e) => {
|
|
10543
10548
|
if (typeof s == "string") {
|
|
10544
10549
|
const t = ci(s);
|
|
10545
10550
|
if (t) {
|
|
@@ -10610,7 +10615,7 @@ const Ym = (s, e) => {
|
|
|
10610
10615
|
} });
|
|
10611
10616
|
} catch {
|
|
10612
10617
|
}
|
|
10613
|
-
const h =
|
|
10618
|
+
const h = Qo(n), u = ji(n), d = h || u ? Kr(s, o) : null;
|
|
10614
10619
|
(h || u) && parseFloat(s) < 0 && (a = "#", i = a.repeat(5));
|
|
10615
10620
|
let g = null;
|
|
10616
10621
|
const m = e.getAlignment(), f = m.getHorizontal(), _ = m.getVertical(), p = m.getOverflow(), S = !(t !== X.String || f === K.HorizontalAlignment.Fill || l !== null && l.length !== 0 || p !== K.Overflow.Wrap && f !== K.HorizontalAlignment.Justify && f !== K.HorizontalAlignment.Distributed && _ !== K.VerticalAlignment.Justify && _ !== K.VerticalAlignment.Distributed);
|
|
@@ -11256,8 +11261,8 @@ const lw = Object.freeze({ value: null, style: null, hyperlink: null, formula: n
|
|
|
11256
11261
|
}
|
|
11257
11262
|
} else if (c) {
|
|
11258
11263
|
const p = t?.date1904 ?? e.date1904;
|
|
11259
|
-
l =
|
|
11260
|
-
if (!
|
|
11264
|
+
l = Zo(o.value, p), d = (S) => {
|
|
11265
|
+
if (!Qo(S.getNumberFormat())) return { numberFormat: "Short Date" };
|
|
11261
11266
|
};
|
|
11262
11267
|
} else l = o.value;
|
|
11263
11268
|
let f = o.style;
|
|
@@ -11395,7 +11400,7 @@ const Ti = (s, e, t, n) => {
|
|
|
11395
11400
|
if (v !== null && (v += N), I !== null && (I += C), A = s === X.String, _) {
|
|
11396
11401
|
A && f === K.Overflow.Wrap && (A = !1);
|
|
11397
11402
|
const B = ((j, z) => {
|
|
11398
|
-
const { x: H, y: L, width: V, height: G } = j, $ = z * Math.PI / 180, U = Math.sin($), q = Math.cos($), J = V / 2, le = G / 2, re =
|
|
11403
|
+
const { x: H, y: L, width: V, height: G } = j, $ = z * Math.PI / 180, U = Math.sin($), q = Math.cos($), J = V / 2, le = G / 2, re = gs(-J, -le, U, q), he = gs(J, -le, U, q), se = gs(-J, le, U, q), Q = gs(J, le, U, q);
|
|
11399
11404
|
let pe = Math.min(re.x, he.x, se.x, Q.x) + J, _e = Math.max(re.x, he.x, se.x, Q.x) + J, oe = Math.min(re.y, he.y, se.y, Q.y) + le;
|
|
11400
11405
|
return { x: H + pe, y: L + oe, width: _e - pe, height: Math.max(re.y, he.y, se.y, Q.y) + le - oe };
|
|
11401
11406
|
})({ x: 0, y: 0, width: v, height: I }, _);
|
|
@@ -11433,7 +11438,7 @@ class qn {
|
|
|
11433
11438
|
return this._options.sheet;
|
|
11434
11439
|
}
|
|
11435
11440
|
select(e) {
|
|
11436
|
-
return this._options.opener("#" +
|
|
11441
|
+
return this._options.opener("#" + ns(this._coords), e);
|
|
11437
11442
|
}
|
|
11438
11443
|
getColumnFilter() {
|
|
11439
11444
|
if (!this._rs) return null;
|
|
@@ -11562,7 +11567,7 @@ class qn {
|
|
|
11562
11567
|
return this.isSpillOverflow() && (t = null), ((n, r, o, i) => {
|
|
11563
11568
|
if (r === X.Null || n == null) return "";
|
|
11564
11569
|
if (r === X.Number) {
|
|
11565
|
-
const a = n, l =
|
|
11570
|
+
const a = n, l = Qo(o), c = ji(o);
|
|
11566
11571
|
if (l || c) {
|
|
11567
11572
|
const h = parseFloat(n), u = h % 1 != 0, d = h >= 1;
|
|
11568
11573
|
if (h < 0) return F.castToString(n);
|
|
@@ -11616,7 +11621,7 @@ class qn {
|
|
|
11616
11621
|
getSpill() {
|
|
11617
11622
|
let e = this._rs?.spills;
|
|
11618
11623
|
if (!e || !this._coords) return null;
|
|
11619
|
-
Array.isArray(e) || (
|
|
11624
|
+
Array.isArray(e) || (ys[0] = e, e = ys);
|
|
11620
11625
|
let t = null;
|
|
11621
11626
|
for (let n = 0; !t && n < e.length; n++) {
|
|
11622
11627
|
const r = e[n];
|
|
@@ -11628,7 +11633,7 @@ class qn {
|
|
|
11628
11633
|
let e = this._rs?.spills;
|
|
11629
11634
|
if (!e) return !1;
|
|
11630
11635
|
if (!this._coords) return null;
|
|
11631
|
-
Array.isArray(e) || (
|
|
11636
|
+
Array.isArray(e) || (ys[0] = e, e = ys);
|
|
11632
11637
|
for (let t = 0; t < e.length; t++) {
|
|
11633
11638
|
const n = e[t].getCoords();
|
|
11634
11639
|
if (this._coords.colIndex === n.colStart && this._coords.rowIndex === n.rowStart) return !1;
|
|
@@ -11695,7 +11700,7 @@ class _w {
|
|
|
11695
11700
|
return this.toText();
|
|
11696
11701
|
}
|
|
11697
11702
|
}
|
|
11698
|
-
const
|
|
11703
|
+
const ys = [null];
|
|
11699
11704
|
let Ua;
|
|
11700
11705
|
const Ni = (s, e, t, n = !1) => {
|
|
11701
11706
|
const r = t === k.Orientation.Row, o = s.length, i = new Array(o);
|
|
@@ -11710,14 +11715,14 @@ const Ni = (s, e, t, n = !1) => {
|
|
|
11710
11715
|
}
|
|
11711
11716
|
}
|
|
11712
11717
|
return i;
|
|
11713
|
-
},
|
|
11718
|
+
}, qo = (s, e, t) => {
|
|
11714
11719
|
const n = e, r = s.length;
|
|
11715
11720
|
for (let o = 0; o < r; o++) {
|
|
11716
11721
|
const i = s[o];
|
|
11717
11722
|
if ((i.rowStart <= n.rowStart && i.rowEnd >= n.rowEnd) !== t) return !t;
|
|
11718
11723
|
}
|
|
11719
11724
|
return t;
|
|
11720
|
-
},
|
|
11725
|
+
}, Jo = (s, e, t) => {
|
|
11721
11726
|
const n = e, r = s.length;
|
|
11722
11727
|
for (let o = 0; o < r; o++) {
|
|
11723
11728
|
const i = s[o];
|
|
@@ -11738,7 +11743,7 @@ const Ni = (s, e, t, n = !1) => {
|
|
|
11738
11743
|
if (s.rowStart <= e.rowStart && s.rowEnd >= e.rowEnd) return k.Orientation.Column;
|
|
11739
11744
|
}
|
|
11740
11745
|
return s ? ((t) => t.rowEnd - t.rowStart > t.colEnd - t.colStart ? k.Orientation.Column : k.Orientation.Row)(s) : k.Orientation.Row;
|
|
11741
|
-
},
|
|
11746
|
+
}, Es = () => !1, Ga = () => !0, bs = () => null, ad = () => ot, mn = () => 0, ld = new class extends qn {
|
|
11742
11747
|
constructor() {
|
|
11743
11748
|
super(null, null);
|
|
11744
11749
|
}
|
|
@@ -11752,13 +11757,13 @@ const Ni = (s, e, t, n = !1) => {
|
|
|
11752
11757
|
return [it];
|
|
11753
11758
|
}
|
|
11754
11759
|
getStyle(s = !1) {
|
|
11755
|
-
return Ua || (Ua = new
|
|
11760
|
+
return Ua || (Ua = new os().getNormal(), Ua);
|
|
11756
11761
|
}
|
|
11757
11762
|
toString() {
|
|
11758
|
-
return `${this._coords ?
|
|
11763
|
+
return `${this._coords ? ns(this._coords) : it} => ${this._v ?? "{blank}"}`;
|
|
11759
11764
|
}
|
|
11760
11765
|
}(), Zt = () => Un, Un = { forEach: () => {
|
|
11761
|
-
}, [Symbol.iterator]: ad, entries: ad, select: we, find: we, calculate: we, getCell: () => ld, getValue:
|
|
11766
|
+
}, [Symbol.iterator]: ad, entries: ad, select: we, find: we, calculate: we, getCell: () => ld, getValue: bs, setValue: we, setValues: we, updateCells: we, updateStyle: we, getCells: () => [[ld]], getStyleUpdater: we, getValues: () => [[null]], getBounds: bs, getIntersect: Zt, getUnion: Zt, getDifferences: we, getResizeBy: Zt, getResizeTo: Zt, getOffsetBy: Zt, getOffsetTo: Zt, getFixed: Zt, getUsedRange: Zt, getEntireRows: Zt, getEntireColumns: Zt, getSurrounding: we, getExtended: we, isEntireRows: Es, isEntireColumns: Es, isEntireRange: Es, getWidth: mn, getHeight: mn, size: 0, sort: we, clear: we, setHyperlink: we, setComments: we, merge: we, unmerge: we, getMerges: we, insert: we, insertFrom: we, delete: we, getDefaultShiftOrientation: we, getDefaultSortCriteria: we, autoFill: we, autoFit: we, getSnapshot: we, copyFrom: we, doBatch: we, startIncrementalUpdates: we, getRowHeaders: we, getColumnHeaders: we, getCounts: we, getCount: mn, isContentful: Es, addListener: we, getColumnStart: mn, getRowStart: mn, getColumnEnd: mn, getRowEnd: mn, getRowCount: mn, getColumnCount: mn, getVisible: we, getCoords: bs, isEmpty: Ga, toString: () => it, getA1: () => it, isInvalid: Ga, getSource: bs, isReadOnly: Ga, isICellRange: !0 };
|
|
11762
11767
|
function En(s, e = null, t = null, n = it) {
|
|
11763
11768
|
return s || t ? Object.freeze({ ...Un, getSheet: () => s, bounds: () => t, getA1: () => n, toString: () => t ? In(t, e) : n }) : Un;
|
|
11764
11769
|
}
|
|
@@ -11846,7 +11851,7 @@ const ww = /^[\\+-]?[0-9]*\.?[0-9]*$/, rf = (s, e, t) => {
|
|
|
11846
11851
|
if (g || m) {
|
|
11847
11852
|
n.style = (p) => {
|
|
11848
11853
|
let S = p.getNumberFormat();
|
|
11849
|
-
const E =
|
|
11854
|
+
const E = Qo(S);
|
|
11850
11855
|
if (g && E) return;
|
|
11851
11856
|
const y = ji(S);
|
|
11852
11857
|
if (!m || !y) {
|
|
@@ -12306,7 +12311,7 @@ class sf extends Xi {
|
|
|
12306
12311
|
return n.length > 0 && (e.fields = n), t.sort, Object.keys(e).length === 0 ? null : e;
|
|
12307
12312
|
}
|
|
12308
12313
|
}
|
|
12309
|
-
const Wl = "A table must have a least one row for the data.", fd = "Table1",
|
|
12314
|
+
const Wl = "A table must have a least one row for the data.", fd = "Table1", vs = Object.freeze({ showRowStripes: !0, showColumnStripes: !1, showFirstColumn: !1, showLastColumn: !1 }), pd = (s, e, t) => {
|
|
12310
12315
|
if (s.length !== e.length) return console.warn("make columns the same length"), !1;
|
|
12311
12316
|
const n = /* @__PURE__ */ new Set();
|
|
12312
12317
|
for (let l = 0; l < e.length; l++) {
|
|
@@ -12406,7 +12411,7 @@ class Iw extends Xi {
|
|
|
12406
12411
|
if (super({ ...e, createDescription: "Insert Table" }), this._isUpdatingHeader = !1, this._colHeadersSizeUnlistener = null, this._rowHeadersSizeUnlistener = null, this._visibleRange = null, this._isHeaderVisible = !0, this._isTotalVisible = !0, this._isFirstColumnVisible = !0, this._isLastColumnVisible = !0, this._range = null, !e.json) throw new Error("json is required");
|
|
12407
12412
|
if (!e.json.ref) throw new Error("json.ref is required");
|
|
12408
12413
|
const t = this;
|
|
12409
|
-
this._styles = e.styles ?? e.sheet?.getStyles() ?? new
|
|
12414
|
+
this._styles = e.styles ?? e.sheet?.getStyles() ?? new os(), this._names = e.names, this._sheet = e.sheet, this._processTableUpdate = e.processTableUpdate, this._setNameOnContainer = e.setNameOnContainer, this._options = { ...e }, this._styleCache = null, this._stylePropsCache = null, this._stylesRemoveListener = this._styles.addListeners({ onTableStylesChange() {
|
|
12410
12415
|
t._styleCache = null, t._stylePropsCache = null, t._getEmitter().notify("onStyleChange"), t._getEmitter().notify("onAnyChange");
|
|
12411
12416
|
} });
|
|
12412
12417
|
const n = { ...e?.json };
|
|
@@ -12598,10 +12603,10 @@ class Iw extends Xi {
|
|
|
12598
12603
|
return n ? { ...n, rowStart: n.rowEnd - t + 1 } : null;
|
|
12599
12604
|
}
|
|
12600
12605
|
getStyleOptions() {
|
|
12601
|
-
return this.isClosed() ?
|
|
12606
|
+
return this.isClosed() ? vs : this._getState()?.styleOptions;
|
|
12602
12607
|
}
|
|
12603
12608
|
updateStyleOptions(e, t = "Update Style Info") {
|
|
12604
|
-
const n = this.getStyleOptions(), r = e ? { ...n, ...e } :
|
|
12609
|
+
const n = this.getStyleOptions(), r = e ? { ...n, ...e } : vs;
|
|
12605
12610
|
return this._modifyTable({ styleOptions: r }, t), this._styleCache = null, this._getEmitter().notify("onStyleChange"), this;
|
|
12606
12611
|
}
|
|
12607
12612
|
getStyleAt(e) {
|
|
@@ -12847,7 +12852,7 @@ class Iw extends Xi {
|
|
|
12847
12852
|
const e = {}, t = this._getState();
|
|
12848
12853
|
if (!t) return null;
|
|
12849
12854
|
if (t.name && (e.name = t.name), t.anchor && (e.ref = In(t.anchor, this._options.maxRangeCoords)), t.description && (e.description = t.description), t.headerRowCount !== 1 && (e.headerRowCount = t.headerRowCount), t.totalsRowCount !== 0 && (e.totalsRowCount = t.totalsRowCount), t.columns && (e.columns = [...t.columns]), t.styleOptions) {
|
|
12850
|
-
const n = F.diffValues(t.styleOptions, { ...
|
|
12855
|
+
const n = F.diffValues(t.styleOptions, { ...vs, name: null });
|
|
12851
12856
|
n && (e.styleOptions = n);
|
|
12852
12857
|
}
|
|
12853
12858
|
if (t.filter) {
|
|
@@ -12866,7 +12871,7 @@ class Iw extends Xi {
|
|
|
12866
12871
|
const a = this._names.findValidName(n.name ?? fd);
|
|
12867
12872
|
n.name !== a && (n.name = a);
|
|
12868
12873
|
}
|
|
12869
|
-
n.name || (n.name = fd), t.description && (n.description = t.description), t.headerRowCount !== void 0 && (n.headerRowCount = t.headerRowCount), t.totalsRowCount !== void 0 && (n.totalsRowCount = t.totalsRowCount), n.columns = t.columns ?? F.EmptyArray, n.styleOptions = { ...
|
|
12874
|
+
n.name || (n.name = fd), t.description && (n.description = t.description), t.headerRowCount !== void 0 && (n.headerRowCount = t.headerRowCount), t.totalsRowCount !== void 0 && (n.totalsRowCount = t.totalsRowCount), n.columns = t.columns ?? F.EmptyArray, n.styleOptions = { ...vs, ...t.styleOptions };
|
|
12870
12875
|
const o = "Insert Table";
|
|
12871
12876
|
this._updateState(n, { description: o });
|
|
12872
12877
|
const i = this._columnsFromSheet();
|
|
@@ -13138,7 +13143,7 @@ let Mw = class {
|
|
|
13138
13143
|
}), s.length === 1 && s.splice(0, 1), this._toJSONInternal(s);
|
|
13139
13144
|
}
|
|
13140
13145
|
};
|
|
13141
|
-
class
|
|
13146
|
+
class os {
|
|
13142
13147
|
constructor(e = null, t = null, n = 11) {
|
|
13143
13148
|
this._emitter = null, this._normalRanged = null, this._theme = e ?? new ym().getDefaultTheme(), this._defaultFontSize = n;
|
|
13144
13149
|
const r = this;
|
|
@@ -13657,20 +13662,20 @@ class Fw extends gr {
|
|
|
13657
13662
|
}
|
|
13658
13663
|
async _asDataUrl() {
|
|
13659
13664
|
if (this._dataUrl) return this._dataUrl;
|
|
13660
|
-
const e = await this.getDetails(), t = await
|
|
13665
|
+
const e = await this.getDetails(), t = await Ps.getImageDataUrl(e.asUrl());
|
|
13661
13666
|
return this._dataUrl = t.dataUrl, this._dataUrl;
|
|
13662
13667
|
}
|
|
13663
13668
|
toHtml() {
|
|
13664
13669
|
return null;
|
|
13665
13670
|
}
|
|
13666
13671
|
async toImage() {
|
|
13667
|
-
const e = (await this._asDataUrl()).substring(
|
|
13672
|
+
const e = (await this._asDataUrl()).substring(Ps.DATA_URL_PNG_PREFIX.length), t = Eo.base64ToArrayBuffer(e);
|
|
13668
13673
|
return new Blob([t], { type: Le.png });
|
|
13669
13674
|
}
|
|
13670
13675
|
async getDetails() {
|
|
13671
13676
|
return this._details || (this._details = new Promise(async (e, t) => {
|
|
13672
13677
|
try {
|
|
13673
|
-
const n = await this._resource.toBuffer(), r = await this._resource.getType(), o = await
|
|
13678
|
+
const n = await this._resource.toBuffer(), r = await this._resource.getType(), o = await Ps.loadImageDetails(n, r);
|
|
13674
13679
|
e({ getNaturalDimensions: () => o.naturalDimensions, asUrl: () => o.asUrl, asSVGText: () => o.asSVGText });
|
|
13675
13680
|
} catch (n) {
|
|
13676
13681
|
t(n);
|
|
@@ -13689,13 +13694,13 @@ class Fw extends gr {
|
|
|
13689
13694
|
}
|
|
13690
13695
|
}
|
|
13691
13696
|
(nt || (nt = {})).Status = { Ready: "ready", Error: "error", Starting: "starting", Stopping: "stopping", Off: "off" };
|
|
13692
|
-
class
|
|
13697
|
+
class Xo extends ut {
|
|
13693
13698
|
constructor(e, t = null, n, r, o) {
|
|
13694
13699
|
if (super(e, n, t), this._sheetName = r || null, this._getEntireCoords = o ?? Pl, this._coords = kw(n, this._getEntireCoords()), !n) throw new Error("ReferenceRange requires a coords");
|
|
13695
13700
|
this._validateCoords(n);
|
|
13696
13701
|
}
|
|
13697
13702
|
toType(e) {
|
|
13698
|
-
return new
|
|
13703
|
+
return new Xo(this._values, e, this._coords, this._sheetName, this._getEntireCoords);
|
|
13699
13704
|
}
|
|
13700
13705
|
getCoords() {
|
|
13701
13706
|
return this._coords;
|
|
@@ -13708,7 +13713,7 @@ class Jo extends ut {
|
|
|
13708
13713
|
}
|
|
13709
13714
|
_validateCoords(e) {
|
|
13710
13715
|
const t = this._getEntireCoords?.();
|
|
13711
|
-
if (t && (e.rowStart < t.rowStart && e.rowStart !== Number.MIN_SAFE_INTEGER || e.rowEnd > t.rowEnd && e.rowEnd !== Number.MAX_SAFE_INTEGER || e.colStart < t.colStart && e.colStart !== Number.MIN_SAFE_INTEGER || e.colEnd > t.colEnd && e.colEnd !== Number.MAX_SAFE_INTEGER)) throw new
|
|
13716
|
+
if (t && (e.rowStart < t.rowStart && e.rowStart !== Number.MIN_SAFE_INTEGER || e.rowEnd > t.rowEnd && e.rowEnd !== Number.MAX_SAFE_INTEGER || e.colStart < t.colStart && e.colStart !== Number.MIN_SAFE_INTEGER || e.colEnd > t.colEnd && e.colEnd !== Number.MAX_SAFE_INTEGER)) throw new je();
|
|
13712
13717
|
}
|
|
13713
13718
|
get [Symbol.toStringTag]() {
|
|
13714
13719
|
return "[ReferenceRange]";
|
|
@@ -13899,11 +13904,11 @@ class pc {
|
|
|
13899
13904
|
if (g > 0) {
|
|
13900
13905
|
const m = [];
|
|
13901
13906
|
for (let f = 0; f < g; f++) {
|
|
13902
|
-
const _ = o[f], p = _.colEnd - _.colStart, S = _.rowEnd - _.rowStart, E = _.value, y = E.formula, b = E.ref, w = b.rowStart, v = b.colStart, I = [], x = y.getDirectPrecedentsAt(w, v, !0,
|
|
13907
|
+
const _ = o[f], p = _.colEnd - _.colStart, S = _.rowEnd - _.rowStart, E = _.value, y = E.formula, b = E.ref, w = b.rowStart, v = b.colStart, I = [], x = y.getDirectPrecedentsAt(w, v, !0, Cs, xs), C = x.length;
|
|
13903
13908
|
for (let A = 0; A < C; A++) {
|
|
13904
13909
|
const R = x[A];
|
|
13905
13910
|
if (R instanceof Y.Known) continue;
|
|
13906
|
-
const M =
|
|
13911
|
+
const M = Cs[A], N = xs[A], O = { colStart: R.colStart, rowStart: R.rowStart, colEnd: R.colEnd + (N ? 0 : p), rowEnd: R.rowEnd + (M ? 0 : S), value: { blockEntry: _, width: p + 1, height: S + 1, index: A, $absWidth: N, $absHeight: M, once: null } };
|
|
13907
13912
|
I.push(R), m.push(O);
|
|
13908
13913
|
}
|
|
13909
13914
|
c || (c = [], l._notifyFormulaInsertEntries = c), c.push({ colStart: _.colStart, rowStart: _.rowStart, colEnd: _.colEnd, rowEnd: _.rowEnd, value: { tokens: y.getTokens(), references: y.getReferences(), precedents: I } });
|
|
@@ -13992,11 +13997,11 @@ class pc {
|
|
|
13992
13997
|
}
|
|
13993
13998
|
setFormulaAt(e, t) {
|
|
13994
13999
|
let n, r = null;
|
|
13995
|
-
return typeof e == "string" ? n = Mt(e,
|
|
14000
|
+
return typeof e == "string" ? n = Mt(e, Pe) : (Pe.colStart = e.colIndex, Pe.rowStart = e.rowIndex, Pe.colEnd = e.colIndex, Pe.rowEnd = e.rowIndex, n = Pe), t ? r = this._setInputs(null, [{ colStart: n.colStart, rowStart: n.rowStart, colEnd: n.colEnd, rowEnd: n.rowEnd, value: t }]) : this.delete(n), r;
|
|
13996
14001
|
}
|
|
13997
14002
|
getFormulaAt(e, t) {
|
|
13998
14003
|
let n;
|
|
13999
|
-
typeof e == "string" && (n = Mt(e,
|
|
14004
|
+
typeof e == "string" && (n = Mt(e, Pe));
|
|
14000
14005
|
const r = this._formulaSpatial.search(n);
|
|
14001
14006
|
if (r.length === 0) return null;
|
|
14002
14007
|
const o = r[0].value;
|
|
@@ -14005,7 +14010,7 @@ class pc {
|
|
|
14005
14010
|
_formulaAt(e, t) {
|
|
14006
14011
|
fo.colStart = t, fo.rowStart = e, fo.colEnd = t, fo.rowEnd = e;
|
|
14007
14012
|
const n = this._formulaSpatial.search(fo);
|
|
14008
|
-
if (n.length === 0) throw new Error(`No formula found at ${
|
|
14013
|
+
if (n.length === 0) throw new Error(`No formula found at ${ns({ rowIndex: e, colIndex: t })}`);
|
|
14009
14014
|
return n[0];
|
|
14010
14015
|
}
|
|
14011
14016
|
getDirectPrecedentsAt(e, t, n) {
|
|
@@ -14028,7 +14033,7 @@ class pc {
|
|
|
14028
14033
|
if (t !== null) {
|
|
14029
14034
|
const o = new De.Builder(), i = this._values.getOrientation() === k.Orientation.Column, a = i ? r.colIndex : r.rowIndex, l = i ? r.rowIndex : r.colIndex;
|
|
14030
14035
|
o.addValue(a, l, t), n = this.setInputs(o.build(), null);
|
|
14031
|
-
} else this.delete(D.cellToRange(r,
|
|
14036
|
+
} else this.delete(D.cellToRange(r, Pe));
|
|
14032
14037
|
return n;
|
|
14033
14038
|
}
|
|
14034
14039
|
setInputs(e, t) {
|
|
@@ -14176,7 +14181,7 @@ class pc {
|
|
|
14176
14181
|
const v = t._values, I = v.getOrientation() === k.Orientation.Column, x = E.length;
|
|
14177
14182
|
for (let A = 0; A < x; A++) {
|
|
14178
14183
|
const R = E[A];
|
|
14179
|
-
h = D.unionRanges(h, R,
|
|
14184
|
+
h = D.unionRanges(h, R, Pe);
|
|
14180
14185
|
const M = v.getRuns({ bounds: R });
|
|
14181
14186
|
let N = M.next();
|
|
14182
14187
|
const O = R.colStart, P = R.rowStart, B = R.colEnd, j = R.rowEnd, z = I ? P : O, H = I ? B : j, L = I ? j : B;
|
|
@@ -14202,7 +14207,7 @@ class pc {
|
|
|
14202
14207
|
const v = g[w];
|
|
14203
14208
|
E.insertNonOverlapping(v, { onIntersect: (I, x) => (y || (y = []), y.push({ ...x }), h = D.unionRanges(h, x), x.value === !1 && (x.value = null), x) });
|
|
14204
14209
|
}
|
|
14205
|
-
y && y.length > 0 && (c.pendingUpdates = y, h = D.unionRangesArrays(y, h,
|
|
14210
|
+
y && y.length > 0 && (c.pendingUpdates = y, h = D.unionRangesArrays(y, h, Pe));
|
|
14206
14211
|
}
|
|
14207
14212
|
const m = t._notifySpills, f = m.all();
|
|
14208
14213
|
if (f.length > 0) {
|
|
@@ -14226,21 +14231,21 @@ class pc {
|
|
|
14226
14231
|
}
|
|
14227
14232
|
}
|
|
14228
14233
|
}
|
|
14229
|
-
b && (c.spillInserts = b, h = D.unionRangesArrays(b, h,
|
|
14234
|
+
b && (c.spillInserts = b, h = D.unionRangesArrays(b, h, Pe)), y && (c.spillRemoves = y, h = D.unionRangesArrays(y, h, Pe));
|
|
14230
14235
|
}
|
|
14231
14236
|
const _ = t._notifyFormats.all();
|
|
14232
|
-
_.length > 0 && (c.formatInserts = _, h = D.unionRangesArrays(_, h,
|
|
14237
|
+
_.length > 0 && (c.formatInserts = _, h = D.unionRangesArrays(_, h, Pe), t._notifyFormats.clear());
|
|
14233
14238
|
const p = t._notifyFormulaInsertEntries;
|
|
14234
14239
|
if (p) {
|
|
14235
14240
|
const E = t._formulaSpatial;
|
|
14236
14241
|
for (let y = p.length - 1; y >= 0; y--) {
|
|
14237
14242
|
const b = p[y];
|
|
14238
|
-
E.search(b).length === 0 ? p.splice(y, 1) : h = D.unionRanges(h, b,
|
|
14243
|
+
E.search(b).length === 0 ? p.splice(y, 1) : h = D.unionRanges(h, b, Pe);
|
|
14239
14244
|
}
|
|
14240
14245
|
c.formulaInserts = p, t._notifyFormulaInsertEntries = void 0;
|
|
14241
14246
|
}
|
|
14242
14247
|
const S = t._notifyFormulaRemoveEntries;
|
|
14243
|
-
S && (c.formulaRemoves = S, h = D.unionRangesArrays(S, h,
|
|
14248
|
+
S && (c.formulaRemoves = S, h = D.unionRangesArrays(S, h, Pe), t._notifyFormulaRemoveEntries = void 0), h && (c.bounds = D.sanitizeRange(h)), Object.keys(c).length === 0 ? c.cycleId = i - 1 : (c.cycleId = i, t._cycleId++), l && (c.isFull = !0), t._fullCalcRequired = !1, t._options.onCalculated?.(c), o(c);
|
|
14244
14249
|
});
|
|
14245
14250
|
});
|
|
14246
14251
|
}
|
|
@@ -14255,7 +14260,7 @@ class pc {
|
|
|
14255
14260
|
if (h = e.tuples, g) {
|
|
14256
14261
|
let x = e.bounds;
|
|
14257
14262
|
if (d) if (x) {
|
|
14258
|
-
const R =
|
|
14263
|
+
const R = Uo(x, r);
|
|
14259
14264
|
l.push(R);
|
|
14260
14265
|
} else {
|
|
14261
14266
|
const R = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER };
|
|
@@ -14271,7 +14276,7 @@ class pc {
|
|
|
14271
14276
|
C.minorStart = j[0];
|
|
14272
14277
|
const z = j[1];
|
|
14273
14278
|
C.minorEnd = C.minorStart + z.length - 1;
|
|
14274
|
-
const H =
|
|
14279
|
+
const H = Uo(C, r);
|
|
14275
14280
|
g && c.search(H).length > 0 && g.push(H);
|
|
14276
14281
|
}
|
|
14277
14282
|
}
|
|
@@ -14326,23 +14331,23 @@ class pc {
|
|
|
14326
14331
|
}
|
|
14327
14332
|
_markAndPlan(e, t, n) {
|
|
14328
14333
|
let r;
|
|
14329
|
-
uo = 0, sl = 0,
|
|
14334
|
+
uo = 0, sl = 0, Rs = 0, go = 0;
|
|
14330
14335
|
const o = this._precedentSpatial, i = this._formulaSpatial;
|
|
14331
|
-
rl = 0,
|
|
14336
|
+
rl = 0, As = 0;
|
|
14332
14337
|
const a = this._cycleId, l = t.length;
|
|
14333
14338
|
for (let d = 0; d < l; d++) {
|
|
14334
14339
|
const g = t[d];
|
|
14335
|
-
g.markId !== n && (g.markId = n, g.cycleId = a, g.inDegree = 0, tl[uo++] = g, nl[
|
|
14340
|
+
g.markId !== n && (g.markId = n, g.cycleId = a, g.inDegree = 0, tl[uo++] = g, nl[As++] = g);
|
|
14336
14341
|
}
|
|
14337
14342
|
const c = (d, g, m) => {
|
|
14338
14343
|
(e || d.state === Vl) && (r || (r = []), r.push(g), e || m(d));
|
|
14339
14344
|
}, h = (d) => {
|
|
14340
|
-
d.markId !== n && (d.markId = n, d.cycleId = a, d.inDegree = 0, tl[uo++] = d, nl[
|
|
14345
|
+
d.markId !== n && (d.markId = n, d.cycleId = a, d.inDegree = 0, tl[uo++] = d, nl[As++] = d);
|
|
14341
14346
|
};
|
|
14342
|
-
for (; rl <
|
|
14347
|
+
for (; rl < As; ) {
|
|
14343
14348
|
const d = nl[rl++], g = d.colIndex, m = d.rowIndex;
|
|
14344
|
-
|
|
14345
|
-
const f = o.search(
|
|
14349
|
+
Pe.colStart = g, Pe.rowStart = m, Pe.colEnd = g, Pe.rowEnd = m;
|
|
14350
|
+
const f = o.search(Pe), _ = f.length;
|
|
14346
14351
|
if (_ === 0) d.dependents = F.EmptyArray;
|
|
14347
14352
|
else for (let p = 0; p < _; p++) {
|
|
14348
14353
|
const S = f[p], E = S.value.once;
|
|
@@ -14375,17 +14380,17 @@ class pc {
|
|
|
14375
14380
|
}
|
|
14376
14381
|
}
|
|
14377
14382
|
}
|
|
14378
|
-
g.inDegree = S, g.inDegree === 0 && (ol[
|
|
14383
|
+
g.inDegree = S, g.inDegree === 0 && (ol[Rs++] = g);
|
|
14379
14384
|
}
|
|
14380
14385
|
const u = (d) => {
|
|
14381
|
-
d.markId === n && (d.inDegree--, d.inDegree === 0 && (ol[
|
|
14386
|
+
d.markId === n && (d.inDegree--, d.inDegree === 0 && (ol[Rs++] = d));
|
|
14382
14387
|
};
|
|
14383
|
-
for (; sl <
|
|
14388
|
+
for (; sl < Rs; ) {
|
|
14384
14389
|
const d = ol[sl++];
|
|
14385
14390
|
vd[go++] = d;
|
|
14386
14391
|
const g = d.colIndex, m = d.rowIndex;
|
|
14387
|
-
|
|
14388
|
-
const f = o.search(
|
|
14392
|
+
Pe.colStart = g, Pe.rowStart = m, Pe.colEnd = g, Pe.rowEnd = m;
|
|
14393
|
+
const f = o.search(Pe), _ = f.length;
|
|
14389
14394
|
for (let p = 0; p < _; p++) {
|
|
14390
14395
|
const S = f[p], E = S.value.once;
|
|
14391
14396
|
E ? c(E, S, u) : bd(S, m, g, u);
|
|
@@ -14435,7 +14440,7 @@ class pc {
|
|
|
14435
14440
|
continue;
|
|
14436
14441
|
}
|
|
14437
14442
|
const me = oe.colStart, ie = oe.rowStart, ne = oe.colEnd;
|
|
14438
|
-
oe.rowEnd !== ie || me !== ne ? (o > 0 && (r.length = o, Ed(r, m, h, _), o = 0), pe[_e] = new
|
|
14443
|
+
oe.rowEnd !== ie || me !== ne ? (o > 0 && (r.length = o, Ed(r, m, h, _), o = 0), pe[_e] = new Xo(m, null, { ...oe }, null, S)) : pe[_e] = de === void 0 ? oe : de.cachedValue;
|
|
14439
14444
|
}
|
|
14440
14445
|
b.pendingPrecedents = A;
|
|
14441
14446
|
}
|
|
@@ -14448,8 +14453,8 @@ class pc {
|
|
|
14448
14453
|
if ((A || b.pendingPromise) && (z = !0, P = b.cachedValue ?? null, b.pendingPromise && (b.pendingResolved ? (b.pendingPromise = null, b.pendingResolved = !1, z = !1) : (b.pendingPromise.cancelled = !0, P = void 0))), P === void 0 && (n.formula = O, n.colIndex = v, n.rowIndex = I, P = O.evaluate(t, void 0, b.inputs), n.formula = null, B = P && P.then ? P : null, z = !!B), z !== j && (b.pending = z, p || (p = $n(_)), p.append(M, N, z)), B && (P = b.cachedValue ?? null, !B.__originator)) {
|
|
14449
14454
|
B.__originator = a;
|
|
14450
14455
|
const Q = b;
|
|
14451
|
-
|
|
14452
|
-
if (
|
|
14456
|
+
Is.add(Q), Q.pendingPromise = B, Q.pendingResolved = !1, B.then((pe) => {
|
|
14457
|
+
if (Is.delete(Q), B.cancelled) return;
|
|
14453
14458
|
Q.pendingPromise = B, Q.pendingResolved = !0;
|
|
14454
14459
|
let _e = Gi(pe, t);
|
|
14455
14460
|
_e === null && (_e = 0), Q.cachedValue = _e, this._scheduleRecalculation(Q);
|
|
@@ -14485,7 +14490,7 @@ class pc {
|
|
|
14485
14490
|
if (_e && (Q.colEnd = Math.min(Q.colEnd, pe.colEnd), Q.rowEnd = Math.min(Q.rowEnd, pe.rowEnd)), he = _e, !he) {
|
|
14486
14491
|
const me = c.search(Q);
|
|
14487
14492
|
if (he = me.length > 1, !he && me.length === 1) {
|
|
14488
|
-
const ie = me[0], ne = D.intersectRanges(Q, ie,
|
|
14493
|
+
const ie = me[0], ne = D.intersectRanges(Q, ie, Pe);
|
|
14489
14494
|
(ne && (ne.rowEnd !== ne.rowStart || ne.colStart !== ne.colEnd) || ne.colStart !== v || ne.rowStart !== I) && (he = !0);
|
|
14490
14495
|
}
|
|
14491
14496
|
}
|
|
@@ -14516,9 +14521,9 @@ class pc {
|
|
|
14516
14521
|
n || (typeof e == "boolean" ? n = e : e && (n = e.full ?? !1));
|
|
14517
14522
|
const r = this._invalidations;
|
|
14518
14523
|
if (this._formulaSpatial.isEmpty()) {
|
|
14519
|
-
if (r.clear(),
|
|
14524
|
+
if (r.clear(), Is.size > 0) {
|
|
14520
14525
|
const h = ++ho;
|
|
14521
|
-
|
|
14526
|
+
Is.forEach((u) => {
|
|
14522
14527
|
u.markId = h;
|
|
14523
14528
|
});
|
|
14524
14529
|
}
|
|
@@ -14624,7 +14629,7 @@ class pc {
|
|
|
14624
14629
|
const S = o[p], E = S[0], y = Mt(E), b = S[1], w = y.rowStart, v = y.colStart;
|
|
14625
14630
|
g.colIndex = v, g.rowIndex = w;
|
|
14626
14631
|
let I = m.parse(d, b);
|
|
14627
|
-
const x = I.getDirectPrecedentsAt(w, v, !0,
|
|
14632
|
+
const x = I.getDirectPrecedentsAt(w, v, !0, Cs, xs), C = x.length;
|
|
14628
14633
|
C === 1 && (I = I.wrapImplicit(w, v, a));
|
|
14629
14634
|
const A = { ...y }, R = new pn(A, I);
|
|
14630
14635
|
y.value = R, c[p] = y;
|
|
@@ -14632,7 +14637,7 @@ class pc {
|
|
|
14632
14637
|
for (let B = 0; B < C; B++) {
|
|
14633
14638
|
const j = x[B];
|
|
14634
14639
|
if (j instanceof Y.Known) continue;
|
|
14635
|
-
const z =
|
|
14640
|
+
const z = Cs[B], H = xs[B], L = { colStart: j.colStart, rowStart: j.rowStart, colEnd: j.colEnd + (H ? 0 : N), rowEnd: j.rowEnd + (z ? 0 : O), value: { blockEntry: y, width: N + 1, height: O + 1, index: B, $absWidth: H, $absHeight: z, once: null } };
|
|
14636
14641
|
P.push(j), u.push(L);
|
|
14637
14642
|
}
|
|
14638
14643
|
h.push({ colStart: A.colStart, rowStart: A.rowStart, colEnd: A.colEnd, rowEnd: A.rowEnd, value: { tokens: I.getTokens(), references: I.getReferences(), precedents: P } });
|
|
@@ -14773,16 +14778,16 @@ const Ed = (s, e, t, n) => {
|
|
|
14773
14778
|
}
|
|
14774
14779
|
else
|
|
14775
14780
|
n(c[g][d]);
|
|
14776
|
-
}, Bw = { rowIndex: 0, colIndex: 0 },
|
|
14781
|
+
}, Bw = { rowIndex: 0, colIndex: 0 }, Pe = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Cs = [], xs = [], Ir = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, co = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 };
|
|
14777
14782
|
new Y.Calc("Cyclical dependency");
|
|
14778
14783
|
const zw = (s) => new $t(s);
|
|
14779
14784
|
let ho = 0;
|
|
14780
|
-
const mr = 1e4, Pw = new Array(mr), jw = new Array(mr),
|
|
14785
|
+
const mr = 1e4, Pw = new Array(mr), jw = new Array(mr), Is = /* @__PURE__ */ new Set(), tl = new Array(mr);
|
|
14781
14786
|
let uo = 0;
|
|
14782
14787
|
const nl = new Array(mr);
|
|
14783
|
-
let rl = 0,
|
|
14788
|
+
let rl = 0, As = 0;
|
|
14784
14789
|
const ol = new Array(mr);
|
|
14785
|
-
let sl = 0,
|
|
14790
|
+
let sl = 0, Rs = 0;
|
|
14786
14791
|
const vd = new Array(mr);
|
|
14787
14792
|
let go = 0;
|
|
14788
14793
|
const Cd = new Array(mr), mo = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, fo = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, il = [null, null], Hw = Object.freeze({ inserts: F.EmptyArray, removes: F.EmptyArray });
|
|
@@ -14805,7 +14810,7 @@ class $w {
|
|
|
14805
14810
|
async _initialize() {
|
|
14806
14811
|
const e = await Ig._validate(!0), t = Gw();
|
|
14807
14812
|
this._calcScope = t, this._runtime = new Uw(this._options, e);
|
|
14808
|
-
const { initializeBuiltIns: n } = await import("./
|
|
14813
|
+
const { initializeBuiltIns: n } = await import("./BaGFns-M8bCUjgnc.mjs"), r = this;
|
|
14809
14814
|
return this._builtInFunctions = Object.freeze(n(() => r)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
|
|
14810
14815
|
}
|
|
14811
14816
|
getBuiltInFunctions() {
|
|
@@ -14849,11 +14854,11 @@ class $w {
|
|
|
14849
14854
|
return Kr(e, this._options.isDate1904?.() ?? !1);
|
|
14850
14855
|
}
|
|
14851
14856
|
toOADate(e) {
|
|
14852
|
-
return
|
|
14857
|
+
return Zo(e, this._options.isDate1904?.() ?? !1);
|
|
14853
14858
|
}
|
|
14854
14859
|
_fromTuples(e, t = null, n = !1) {
|
|
14855
14860
|
if (!e) return null;
|
|
14856
|
-
const r =
|
|
14861
|
+
const r = Uo(e.bounds, !0), o = this._calcScope, i = this._isColumn ? k.Orientation.Column : k.Orientation.Row, a = new sn({ orientation: i, maxCoords: o.getEntireCoords() });
|
|
14857
14862
|
return a.setValues(e.tuples), new ut(a, r, t, n);
|
|
14858
14863
|
}
|
|
14859
14864
|
getValueAt(e, t) {
|
|
@@ -14896,7 +14901,7 @@ class $w {
|
|
|
14896
14901
|
if (typeof e == "string") {
|
|
14897
14902
|
if (t) throw Y.BuiltIn.Ref;
|
|
14898
14903
|
try {
|
|
14899
|
-
const c = dc(e, r(),
|
|
14904
|
+
const c = dc(e, r(), rs, () => {
|
|
14900
14905
|
throw Y.BuiltIn.Ref;
|
|
14901
14906
|
}, t);
|
|
14902
14907
|
if (c.length > 1) throw Y.BuiltIn.Ref;
|
|
@@ -14916,8 +14921,8 @@ class $w {
|
|
|
14916
14921
|
}
|
|
14917
14922
|
if (l) {
|
|
14918
14923
|
const c = l.calc;
|
|
14919
|
-
i = c && c.isIReferenceRange ? c.cachedValue : new
|
|
14920
|
-
} else n.dynamicPrecedentsInserts = ql(n.dynamicPrecedentsInserts, a, e), i = new
|
|
14924
|
+
i = c && c.isIReferenceRange ? c.cachedValue : new Xo(o, void 0, e, null, r);
|
|
14925
|
+
} else n.dynamicPrecedentsInserts = ql(n.dynamicPrecedentsInserts, a, e), i = new Xo(o, void 0, e, null, r);
|
|
14921
14926
|
return i;
|
|
14922
14927
|
}
|
|
14923
14928
|
getAddress(e, t = !1) {
|
|
@@ -14973,7 +14978,7 @@ class Uw {
|
|
|
14973
14978
|
}
|
|
14974
14979
|
getVersion() {
|
|
14975
14980
|
try {
|
|
14976
|
-
const e = "0.4.
|
|
14981
|
+
const e = "0.4.10";
|
|
14977
14982
|
if (e.indexOf(".env.") === -1) return `${e}`;
|
|
14978
14983
|
} catch {
|
|
14979
14984
|
return "local";
|
|
@@ -14986,7 +14991,7 @@ class Uw {
|
|
|
14986
14991
|
return this._license?.licensee?.() ?? null;
|
|
14987
14992
|
}
|
|
14988
14993
|
}
|
|
14989
|
-
const Gw = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () =>
|
|
14994
|
+
const Gw = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () => ts }), Ww = { getSheetIndex: (s) => -1, getSheetCount: () => 1, getSheetName: () => null, getEntireCoords: () => ts, getNamed: (s, e) => null, getFunction: (s) => null, isDate1904: () => !1 }, qw = (s, e) => {
|
|
14990
14995
|
if (!s) return;
|
|
14991
14996
|
const t = s.length;
|
|
14992
14997
|
if (t === 0) return;
|
|
@@ -15010,7 +15015,7 @@ class Jw {
|
|
|
15010
15015
|
return this._getScope().getNumberFormat(e, t);
|
|
15011
15016
|
}
|
|
15012
15017
|
getEntireCoords() {
|
|
15013
|
-
return this._getScope().getEntireCoords() ??
|
|
15018
|
+
return this._getScope().getEntireCoords() ?? ts;
|
|
15014
15019
|
}
|
|
15015
15020
|
isValidDate(e) {
|
|
15016
15021
|
return this._getScope().isValidDate(e);
|
|
@@ -15498,7 +15503,7 @@ class uf extends gr {
|
|
|
15498
15503
|
this._context = r;
|
|
15499
15504
|
const o = await r._initialize(), i = o.builtInFunctions;
|
|
15500
15505
|
this._functions = new hf({ transactions: this._transactions, context: r, readonlyFunctions: i });
|
|
15501
|
-
const a = await import("./
|
|
15506
|
+
const a = await import("./WY6tkuqX7I-Tw85_.mjs");
|
|
15502
15507
|
this._formulaParser = new a.FormulaParser(), this._scope = o.calcScope, this._status = nt.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
|
|
15503
15508
|
} catch (e) {
|
|
15504
15509
|
throw this._status = nt.Status.Off, this._emitter.notify("onError", e), this._emitter.notify("onStatusChange"), e;
|
|
@@ -15539,11 +15544,11 @@ class uf extends gr {
|
|
|
15539
15544
|
}
|
|
15540
15545
|
}
|
|
15541
15546
|
}
|
|
15542
|
-
var Rd, Md, Td, Nd,
|
|
15543
|
-
Rd || (Rd = {}), Md || (Md = {}), Td || (Td = {}), (
|
|
15547
|
+
var Rd, Md, Td, Nd, Ms, Xl, Ts, nn;
|
|
15548
|
+
Rd || (Rd = {}), Md || (Md = {}), Td || (Td = {}), (Ms = Nd || (Nd = {})).NumberFilterOperatorType = { Equal: "equal", GreaterThan: "greaterThan", GreaterThanOrEqual: "greaterThanOrEqual", LessThan: "lessThan", LessThanOrEqual: "lessThanOrEqual", NotEqual: "notEqual" }, Ms.Type = { Color: "color", Custom: "custom", Dynamic: "dynamic", Items: "items", Icon: "icon", Top10: "top10" }, Ms.DynamicType = { AboveAverage: "aboveAverage", BelowAverage: "belowAverage", LastMonth: "lastMonth", LastQuarter: "lastQuarter", LastWeek: "lastWeek", LastYear: "lastYear", M1: "M1", M2: "M2", M3: "M3", M4: "M4", M5: "M5", M6: "M6", M7: "M7", M8: "M8", M9: "M9", M10: "M10", M11: "M11", M12: "M12", NextMonth: "nextMonth", NextQuarter: "nextQuarter", NextWeek: "nextWeek", Null: "null", Q1: "Q1", Q2: "Q2", Q3: "Q3", Q4: "Q4", ThisMonth: "thisMonth", ThisQuarter: "thisQuarter", ThisWeek: "thisWeek", Today: "today", Tomorrow: "tomorrow", YearToDate: "yearToDate", Yesterday: "yesterday" }, Ms.DateItemGroupingType = { Day: "day", Hour: "hour", Minute: "minute", Month: "month", Second: "Second", Year: "year" }, (Ts = Xl || (Xl = {})).Type = { AboveAverage: "aboveAverage", BeginsWith: "beginsWith", CellIs: "cellIs", ColorScale: "colorScale", ContainsBlanks: "containsBlanks", ContainsErrors: "containsErrors", ContainsText: "containsText", DataBar: "dataBar", DuplicateValues: "duplicateValues", EndsWith: "endsWith", Expression: "expression", IconSet: "iconSet", NotContainsBlanks: "notContainsBlanks", NotContainsErrors: "notContainsErrors", NotContainsText: "notContainsText", TimePeriod: "timePeriod", Top10: "top10", UniqueValues: "uniqueValues" }, Ts.OperatorType = { BeginsWith: "beginsWith", Between: "between", ContainsText: "containsText", EndsWith: "endsWith", Equal: "equal", GreaterThan: "greaterThan", GreaterThanOrEqual: "greaterThanOrEqual", LessThan: "lessThan", LessThanOrEqual: "lessThanOrEqual", NotBetween: "notBetween", NotContains: "notContains", NotEqual: "notEqual" }, Ts.TimePeriod = { Last7Days: "last7Days", LastMonth: "lastMonth", LastWeek: "lastWeek", NextMonth: "nextMonth", NextWeek: "nextWeek", ThisMonth: "thisMonth", ThisWeek: "thisWeek", Today: "today", Tomorrow: "tomorrow", Yesterday: "yesterday" }, Ts.ConditionalBoundsType = { Formula: "formula", Max: "max", Min: "min", Num: "num", Percent: "percent", Percentile: "percentile" }, (nn || (nn = {})).HeaderTextStyle = { A1: "a1", Zero: "zero", One: "one" };
|
|
15544
15549
|
class ty {
|
|
15545
15550
|
constructor(e, t, n, r) {
|
|
15546
|
-
this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = e, this._topLeft = r ?? { rowIndex: 0, colIndex: 0 }, this._sheet = new
|
|
15551
|
+
this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = e, this._topLeft = r ?? { rowIndex: 0, colIndex: 0 }, this._sheet = new Ko({ styles: this._styles, date1904: t, container: { getName: () => n, getIndex: () => 1 } }), this._cellUpdater = this._sheet.getEntireRange().startIncrementalUpdates();
|
|
15547
15552
|
}
|
|
15548
15553
|
applyCSSStyle(e, t) {
|
|
15549
15554
|
let n = !1;
|
|
@@ -15690,7 +15695,7 @@ const kd = (s) => {
|
|
|
15690
15695
|
r = n.index + 1;
|
|
15691
15696
|
}
|
|
15692
15697
|
return e;
|
|
15693
|
-
},
|
|
15698
|
+
}, Ns = (s, e) => {
|
|
15694
15699
|
const t = [];
|
|
15695
15700
|
if (!s) return t;
|
|
15696
15701
|
const n = s.children;
|
|
@@ -15756,13 +15761,13 @@ const kd = (s) => {
|
|
|
15756
15761
|
let p = g.querySelectorAll("span");
|
|
15757
15762
|
f = p[0], _ = p.length > 1;
|
|
15758
15763
|
}
|
|
15759
|
-
if (f || (f =
|
|
15764
|
+
if (f || (f = Ns(g, l)[0]), f || (f = Ns(s, l)[0]), f?.nodeName.toUpperCase() === "TABLE") {
|
|
15760
15765
|
t.onStart?.(r);
|
|
15761
15766
|
const p = f;
|
|
15762
15767
|
t.onTableStart?.(o, p);
|
|
15763
|
-
const S =
|
|
15768
|
+
const S = Ns(p, "COLGROUP");
|
|
15764
15769
|
for (let b = 0; S && b < S.length; b++) {
|
|
15765
|
-
const w =
|
|
15770
|
+
const w = Ns(S[b], "COL");
|
|
15766
15771
|
let v = 0;
|
|
15767
15772
|
for (let I = 0; I < w.length; I++) {
|
|
15768
15773
|
const x = w[I], C = parseFloat(x.getAttribute("span")), A = isNaN(C) ? 1 : C;
|
|
@@ -15916,7 +15921,7 @@ class Zy {
|
|
|
15916
15921
|
}
|
|
15917
15922
|
try {
|
|
15918
15923
|
const r = new ty(this._styles, this._isDate1904, n ? "HTML" : "Text"), o = await Promise.resolve(t ? ((a, l = " ") => new Promise((c, h) => {
|
|
15919
|
-
import("./
|
|
15924
|
+
import("./3kB3KaOgV-3ox4C3.mjs").then((u) => u.p).then((u) => {
|
|
15920
15925
|
try {
|
|
15921
15926
|
const d = u.parse(a, { delimiter: l }).data;
|
|
15922
15927
|
d.length > 1 && (d[d.length - 1].length === 0 || d[d.length - 1].length === 1 && d[d.length - 1][0].length === 0) && d.pop(), c(d);
|
|
@@ -16087,7 +16092,7 @@ class Di extends Xi {
|
|
|
16087
16092
|
setBounds(e, t) {
|
|
16088
16093
|
if (!e) return this;
|
|
16089
16094
|
let n = { ...this.getBounds(), ...e };
|
|
16090
|
-
if (this._optionsMovable.getMaxBounds && (n = { x: Math.max(n.x, this._optionsMovable.getMaxBounds().x), y: Math.max(n.y, this._optionsMovable.getMaxBounds().y), width: Math.min(n.width, this._optionsMovable.getMaxBounds().width), height: Math.min(n.height, this._optionsMovable.getMaxBounds().height) }), n.width < 0 || n.height < 0) throw new
|
|
16095
|
+
if (this._optionsMovable.getMaxBounds && (n = { x: Math.max(n.x, this._optionsMovable.getMaxBounds().x), y: Math.max(n.y, this._optionsMovable.getMaxBounds().y), width: Math.min(n.width, this._optionsMovable.getMaxBounds().width), height: Math.min(n.height, this._optionsMovable.getMaxBounds().height) }), n.width < 0 || n.height < 0) throw new je();
|
|
16091
16096
|
const r = this._updateMovableLocation({ bounds: n, anchorType: xt.Type.Absolute }), o = this._beginCommit(t?.description ?? "Set Movable Bounds");
|
|
16092
16097
|
return this._updateState({ offsets: r.offsets, anchor: r.anchor }, { description: "Update Movable Bounds" }), this._options.setContainerCoords(r.anchor), this._invalidateBounds(), o.commit(), this;
|
|
16093
16098
|
}
|
|
@@ -17078,7 +17083,7 @@ class Li {
|
|
|
17078
17083
|
class gy extends gr {
|
|
17079
17084
|
constructor(e) {
|
|
17080
17085
|
if (super({ ...e }), this._coordsCache = null, !e.json) throw new Error("json is required");
|
|
17081
|
-
this._sheet = e.sheet, this._styles = e.sheet?.getStyles() ?? new
|
|
17086
|
+
this._sheet = e.sheet, this._styles = e.sheet?.getStyles() ?? new os(), this._options = { ...e }, e.setOnContainerCoordsChange(this._processCoordsChange.bind(this)), e.setCreateSpatial(this._createSpatial.bind(this)), this._getContainerRanges = e.getContainerRanges, this._setContainerRanges = e.setContainerRanges;
|
|
17082
17087
|
const t = this;
|
|
17083
17088
|
this._options.transactions.addStateListener(this, { onRestoreOrRevert() {
|
|
17084
17089
|
t._coordsCache = null;
|
|
@@ -17535,7 +17540,7 @@ class Sc {
|
|
|
17535
17540
|
return !0;
|
|
17536
17541
|
}
|
|
17537
17542
|
}
|
|
17538
|
-
const
|
|
17543
|
+
const Fs = "The columns are protected. To make a change, unprotect the sheet. You might be requested to enter a password.", ks = "The rows are protected. To make a change, unprotect the sheet. You might be requested to enter a password.", er = "Rows", tr = "Columns";
|
|
17539
17544
|
class Ud {
|
|
17540
17545
|
constructor(e) {
|
|
17541
17546
|
if (this._emitter = null, this._closed = !1, this._scaleFactor = 1, this._defaultSize = -1, this._defaultCustomSize = -1, this._defaultPxSize = 1, this._isColumn = !0, this._indexedSizes = [], this._indexedHidden = [], this._headerRunCoords = null, this._hasCustomFormats = !1, this._hasStyles = !1, this._hasHidden = !1, this._lastHeaderRead = null, this._readCache = null, this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null, this._options = { isProtected: () => !1, getUpdateId: () => null, scaleFactor: () => 1, defaultSize: () => 100, minSize: () => 0, maxSize: () => 500, orientation: k.Orientation.Column, createCellHeader: (i, a, l) => new Sc(i, a, l), ...e }, !this._options.sheet) throw new Error("An ISheet must be provided");
|
|
@@ -17692,7 +17697,7 @@ class Ud {
|
|
|
17692
17697
|
return this._lastHeaderRead = { offset: e, header: r }, r;
|
|
17693
17698
|
}
|
|
17694
17699
|
updateHeaderPairs(e, t) {
|
|
17695
|
-
if (this.isProtected()) throw new Error(this._isColumn ?
|
|
17700
|
+
if (this.isProtected()) throw new Error(this._isColumn ? Fs : ks);
|
|
17696
17701
|
return this._updatePairsInternal(e, t);
|
|
17697
17702
|
}
|
|
17698
17703
|
_parseHeaderRangeAddress(e) {
|
|
@@ -17789,7 +17794,7 @@ class Ud {
|
|
|
17789
17794
|
const u = r ? W.Edge.Right : W.Edge.Bottom;
|
|
17790
17795
|
W.oppositeEdge(u);
|
|
17791
17796
|
const d = this, g = (y, b) => {
|
|
17792
|
-
if (this.isProtected()) throw new Error(this._isColumn ?
|
|
17797
|
+
if (this.isProtected()) throw new Error(this._isColumn ? Fs : ks);
|
|
17793
17798
|
c = c || b === null, !c && b && (c = !!b.isICellHeader || b?.size !== void 0 || b?.hidden !== void 0), l = l || b === null || b?.style !== void 0 || b?.isICellHeader;
|
|
17794
17799
|
const w = { onUpdate: (v, I) => n && v && v.csz ? v : mf(d, o, v, I), onSplit: (v) => [v.value, v.value], onMerge: (v, I, x, C) => {
|
|
17795
17800
|
if (!(v && !I || !v && I || !v && !I) && v.sz === I.sz && v.csz === I.csz && v.h === I.h && v.cs === I.cs) return v;
|
|
@@ -17798,7 +17803,7 @@ class Ud {
|
|
|
17798
17803
|
}, m = e.length, f = new Array(m);
|
|
17799
17804
|
for (let y = 0; y < m; y++) {
|
|
17800
17805
|
const b = e[y], w = this._parseHeaderRangeAddress(b.address);
|
|
17801
|
-
if (w.min < 0 || w.max > this._maxDataIndex) throw new
|
|
17806
|
+
if (w.min < 0 || w.max > this._maxDataIndex) throw new je(Ii);
|
|
17802
17807
|
g(w, b.update), f[y] = w;
|
|
17803
17808
|
}
|
|
17804
17809
|
let _ = !1, p = a.length;
|
|
@@ -17890,7 +17895,7 @@ class Ud {
|
|
|
17890
17895
|
}
|
|
17891
17896
|
getVisibleCount(e, t) {
|
|
17892
17897
|
if (e > t) throw new Error("Invalid arguments.");
|
|
17893
|
-
if (e < 0 || t > this._maxDataIndex) throw new
|
|
17898
|
+
if (e < 0 || t > this._maxDataIndex) throw new je();
|
|
17894
17899
|
return this._hasHidden ? ((n, r, o) => {
|
|
17895
17900
|
let i = o - r + 1;
|
|
17896
17901
|
if (n.length === 0) return i;
|
|
@@ -17946,7 +17951,7 @@ class Ud {
|
|
|
17946
17951
|
return !r || r.spanSize !== 0 || r.indexMin > e || r.indexMax < e ? 0 : t ? e - r.indexMin + 1 : r.indexMax - e + 1;
|
|
17947
17952
|
}
|
|
17948
17953
|
_insertHeaders(e, t) {
|
|
17949
|
-
if (this.isProtected()) throw new Error(this._isColumn ?
|
|
17954
|
+
if (this.isProtected()) throw new Error(this._isColumn ? Fs : ks);
|
|
17950
17955
|
if (t <= 0) return;
|
|
17951
17956
|
const n = this._beginCommit({ description: `Insert ${this._isColumn ? tr : er}` }), r = this._getState();
|
|
17952
17957
|
let o = [...r.headers];
|
|
@@ -17961,7 +17966,7 @@ class Ud {
|
|
|
17961
17966
|
this._updateState({ headers: o, runs: tn(hr([...r?.runs ?? [], ...i])) }), n.commit();
|
|
17962
17967
|
}
|
|
17963
17968
|
_deleteHeaders(e, t) {
|
|
17964
|
-
if (this.isProtected()) throw new Error(this._isColumn ?
|
|
17969
|
+
if (this.isProtected()) throw new Error(this._isColumn ? Fs : ks);
|
|
17965
17970
|
const n = this._beginCommit({ description: `Delete ${this._isColumn ? tr : er}` }), r = this._getState();
|
|
17966
17971
|
let o = [...r.headers];
|
|
17967
17972
|
o = tn(F_(o, e, t));
|
|
@@ -18320,7 +18325,7 @@ class dl {
|
|
|
18320
18325
|
const n = this._state.selection;
|
|
18321
18326
|
if (n) {
|
|
18322
18327
|
let r = {};
|
|
18323
|
-
!n.cell || n.cell.colIndex === 0 && n.cell.rowIndex === 0 || (r.cell =
|
|
18328
|
+
!n.cell || n.cell.colIndex === 0 && n.cell.rowIndex === 0 || (r.cell = ns(n.cell)), n.ranges && n.ranges.length > 0 && (r.ranges = uc(n.ranges), n.rangeIndex !== void 0 && n.rangeIndex !== -1 && n.rangeIndex !== 0 && (r.rangeIndex = n.rangeIndex)), Object.keys(r).length > 0 && (e.selection = r);
|
|
18324
18329
|
}
|
|
18325
18330
|
if (delete e.freezePanes, this._state.freezePanes && (this._state.freezePanes.coords.colIndex !== 0 || this._state.freezePanes.coords.rowIndex !== 0)) {
|
|
18326
18331
|
const r = {};
|
|
@@ -18374,7 +18379,7 @@ class dl {
|
|
|
18374
18379
|
}
|
|
18375
18380
|
}
|
|
18376
18381
|
async function Wd() {
|
|
18377
|
-
const { getCrypto: s } = await import("./
|
|
18382
|
+
const { getCrypto: s } = await import("./CsPZhcz5eLf-CbkJ.mjs");
|
|
18378
18383
|
return s();
|
|
18379
18384
|
}
|
|
18380
18385
|
const qd = async (s, e, ...t) => {
|
|
@@ -18585,17 +18590,17 @@ class Xd extends pf {
|
|
|
18585
18590
|
return super._toJSON(e);
|
|
18586
18591
|
}
|
|
18587
18592
|
}
|
|
18588
|
-
class
|
|
18593
|
+
class ss {
|
|
18589
18594
|
constructor(e, t, n) {
|
|
18590
18595
|
this._coords = Object.freeze(e), this._sheet = t, this._readOnly = n?.readOnly ?? null;
|
|
18591
18596
|
}
|
|
18592
18597
|
_createRanges(e, t) {
|
|
18593
18598
|
let n = this._options;
|
|
18594
|
-
return t && (n = { ...this._options, getOptions: xn(this._options?.getOptions, t) }), new
|
|
18599
|
+
return t && (n = { ...this._options, getOptions: xn(this._options?.getOptions, t) }), new ss(e, this._sheet, n);
|
|
18595
18600
|
}
|
|
18596
18601
|
_createRange(e, t) {
|
|
18597
18602
|
let n = this._options;
|
|
18598
|
-
return t && (n = { ...this._options, getOptions: xn(this._options?.getOptions, t) }), new
|
|
18603
|
+
return t && (n = { ...this._options, getOptions: xn(this._options?.getOptions, t) }), new is(e, this._sheet, n);
|
|
18599
18604
|
}
|
|
18600
18605
|
_validateWrite() {
|
|
18601
18606
|
const e = this._readOnly;
|
|
@@ -18739,23 +18744,23 @@ class os {
|
|
|
18739
18744
|
return id(this.getCoords(), k.Orientation.Column);
|
|
18740
18745
|
}
|
|
18741
18746
|
isEntireRowsAny() {
|
|
18742
|
-
return
|
|
18747
|
+
return qo(this.getCoords(), this._sheet._entireCoords, !1);
|
|
18743
18748
|
}
|
|
18744
18749
|
isEntireColumnsAny() {
|
|
18745
|
-
return
|
|
18750
|
+
return Jo(this.getCoords(), this._sheet._entireCoords, !1);
|
|
18746
18751
|
}
|
|
18747
18752
|
isEntireRows() {
|
|
18748
|
-
return
|
|
18753
|
+
return qo(this.getCoords(), this._sheet._entireCoords, !0);
|
|
18749
18754
|
}
|
|
18750
18755
|
isEntireColumns() {
|
|
18751
|
-
return
|
|
18756
|
+
return Jo(this.getCoords(), this._sheet._entireCoords, !0);
|
|
18752
18757
|
}
|
|
18753
18758
|
isOverlapping() {
|
|
18754
18759
|
return Fo(this.getCoords());
|
|
18755
18760
|
}
|
|
18756
18761
|
at(e) {
|
|
18757
18762
|
const t = this.getCoords();
|
|
18758
|
-
if (e < 0 || e > t.length - 1) throw new
|
|
18763
|
+
if (e < 0 || e > t.length - 1) throw new je();
|
|
18759
18764
|
return this._createRange(t[e]);
|
|
18760
18765
|
}
|
|
18761
18766
|
isReadOnly() {
|
|
@@ -18783,7 +18788,7 @@ class os {
|
|
|
18783
18788
|
return !0;
|
|
18784
18789
|
}
|
|
18785
18790
|
}
|
|
18786
|
-
class
|
|
18791
|
+
class is {
|
|
18787
18792
|
constructor(e, t, n) {
|
|
18788
18793
|
this._coords = Object.freeze(e), this._sheet = t, this._readOnly = n?.readOnly ?? null;
|
|
18789
18794
|
}
|
|
@@ -18795,11 +18800,11 @@ class ss {
|
|
|
18795
18800
|
if (!e) return En(n, n._entireCoords);
|
|
18796
18801
|
if (n._validateCoords(e), n._closed) return En(null, n._entireCoords, e);
|
|
18797
18802
|
let r = this._options;
|
|
18798
|
-
return t && (r = { ...this._options, getOptions: xn(this._options?.getOptions, t) }), new
|
|
18803
|
+
return t && (r = { ...this._options, getOptions: xn(this._options?.getOptions, t) }), new is(e, this._sheet, r);
|
|
18799
18804
|
}
|
|
18800
18805
|
_createRanges(e, t) {
|
|
18801
18806
|
let n = this._options;
|
|
18802
|
-
return t && (n = { ...this._options, getOptions: xn(this._options?.getOptions, t) }), new
|
|
18807
|
+
return t && (n = { ...this._options, getOptions: xn(this._options?.getOptions, t) }), new ss(e, this._sheet, n);
|
|
18803
18808
|
}
|
|
18804
18809
|
_deriveRanges(e, t) {
|
|
18805
18810
|
const n = this.getCoords();
|
|
@@ -18839,7 +18844,7 @@ class ss {
|
|
|
18839
18844
|
const r = this._sheet;
|
|
18840
18845
|
if (e?.address) {
|
|
18841
18846
|
const i = r._rangeToCoords(e?.address);
|
|
18842
|
-
if (!i) throw new Error(
|
|
18847
|
+
if (!i) throw new Error(Go(e?.address));
|
|
18843
18848
|
if (n = D.intersectRanges(i, t), !n) return ot;
|
|
18844
18849
|
}
|
|
18845
18850
|
n.colEnd < n.colStart && (n.colStart = t.colStart, n.colEnd = t.colEnd), n.rowEnd < n.rowStart && (n.rowStart = t.rowStart, n.rowEnd = t.rowEnd);
|
|
@@ -19036,15 +19041,15 @@ class ss {
|
|
|
19036
19041
|
}
|
|
19037
19042
|
isEntireRows() {
|
|
19038
19043
|
const e = this._sheet;
|
|
19039
|
-
return
|
|
19044
|
+
return qo([this.getCoords()], e._entireCoords, !0);
|
|
19040
19045
|
}
|
|
19041
19046
|
isEntireColumns() {
|
|
19042
19047
|
const e = this._sheet;
|
|
19043
|
-
return
|
|
19048
|
+
return Jo([this.getCoords()], e._entireCoords, !0);
|
|
19044
19049
|
}
|
|
19045
19050
|
isEntireRange() {
|
|
19046
19051
|
const e = this.getCoords(), t = this._sheet;
|
|
19047
|
-
return
|
|
19052
|
+
return Jo([e], t._entireCoords, !0) && qo([e], t._entireCoords, !0);
|
|
19048
19053
|
}
|
|
19049
19054
|
getWidth() {
|
|
19050
19055
|
const e = this._coords;
|
|
@@ -19166,7 +19171,7 @@ const Cy = Math.pow(2, 14), xy = Math.pow(2, 20), Kd = (s) => `${s}`, Yd = (s) =
|
|
|
19166
19171
|
let Iy = 0;
|
|
19167
19172
|
const Qd = () => [];
|
|
19168
19173
|
let Ay = 0;
|
|
19169
|
-
class
|
|
19174
|
+
class Ko {
|
|
19170
19175
|
constructor(e) {
|
|
19171
19176
|
this._lastTransactionUUID = null, this._emitter = null, this._initializing = !0, 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 = !0, this._isDate1904 = !1, 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 = !1;
|
|
19172
19177
|
const t = Object.freeze({ ...e });
|
|
@@ -19174,7 +19179,7 @@ class Xo {
|
|
|
19174
19179
|
const n = this._beginCommit({ description: "New Sheet" }), r = this;
|
|
19175
19180
|
try {
|
|
19176
19181
|
this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (t.maxColumns ?? Cy) - 1, rowEnd: (t.maxRows ?? xy) - 1 }), this._strings = t.strings ?? new fc(), this._ownStrings = !t.strings;
|
|
19177
|
-
const o = t.styles ?? new
|
|
19182
|
+
const o = t.styles ?? new os();
|
|
19178
19183
|
this._styles = o, this._ownStyles = !t.styles, this._names = t.names ?? new df({ addressToRanges: (a) => r.getRanges(a), getCurrentScope: () => r.getName(), isReadOnly: () => r._options.readonly ?? !1, transactions: r._transactions }), this._ownNames = !t.names, this._namesRemoveListener = this._names.addListeners({ onCollectionChange: (a) => {
|
|
19179
19184
|
r._calculateFull();
|
|
19180
19185
|
} }, { transactional: !1 }), this._calculation = t.calculation ?? new uf({ getNamed: (a, l) => {
|
|
@@ -19222,7 +19227,7 @@ class Xo {
|
|
|
19222
19227
|
if (this._validateCoords(e), this._closed) return En(null, this._entireCoords, e);
|
|
19223
19228
|
n === null && this._options.readonly && (n = "Readonly sheet");
|
|
19224
19229
|
let r = null;
|
|
19225
|
-
return (t || n) && (r = { getOptions: t, readOnly: n }), new
|
|
19230
|
+
return (t || n) && (r = { getOptions: t, readOnly: n }), new is(((o) => {
|
|
19226
19231
|
if (!o) return null;
|
|
19227
19232
|
const i = { colStart: o.colIndex ?? o.colStart ?? 0, rowStart: o.rowIndex ?? o.rowStart ?? 0, colEnd: o.colIndex ?? o.colEnd ?? 0, rowEnd: o.rowIndex ?? o.rowEnd ?? 0 };
|
|
19228
19233
|
return (o.$colStart || o.$colIndex) && (i.$colStart = !0), (o.$colEnd || o.$colIndex) && (i.$colEnd = !0), (o.$rowStart || o.$rowIndex) && (i.$rowStart = !0), (o.$rowEnd || o.$rowIndex) && (i.$rowEnd = !0), i;
|
|
@@ -19230,7 +19235,7 @@ class Xo {
|
|
|
19230
19235
|
}
|
|
19231
19236
|
_createRanges(e, t, n = null) {
|
|
19232
19237
|
let r = null;
|
|
19233
|
-
return n === null && this._options.readonly && (n = "Readonly sheet"), (t || n) && (r = { getOptions: t, readOnly: n }), new
|
|
19238
|
+
return n === null && this._options.readonly && (n = "Readonly sheet"), (t || n) && (r = { getOptions: t, readOnly: n }), new ss(e, this, r);
|
|
19234
19239
|
}
|
|
19235
19240
|
getRange(e, t) {
|
|
19236
19241
|
let n = !t && e && (e.rowStart !== void 0 || typeof e == "string");
|
|
@@ -19277,13 +19282,13 @@ class Xo {
|
|
|
19277
19282
|
return this._lastCellDecoded.address = e, this._lastCellDecoded.coords = n, n;
|
|
19278
19283
|
}
|
|
19279
19284
|
_validateCoords(e, t = Ii) {
|
|
19280
|
-
if (!D.isRangeWithinRange(e, this._entireCoords)) throw new
|
|
19285
|
+
if (!D.isRangeWithinRange(e, this._entireCoords)) throw new je(t);
|
|
19281
19286
|
const n = e.colStart, r = e.rowStart, o = e.colEnd, i = e.rowEnd;
|
|
19282
19287
|
if (i < r || o < n) throw new Error(Hm);
|
|
19283
19288
|
if (!(Number.isInteger(n) && Number.isFinite(n) && Number.isInteger(r) && Number.isFinite(r) && Number.isInteger(o) && Number.isFinite(o) && Number.isInteger(i) && Number.isFinite(i))) throw new Error("Invalid range. All points must be valid integers.");
|
|
19284
19289
|
}
|
|
19285
19290
|
_createRangeError(e) {
|
|
19286
|
-
return e ? new Error(jr) : new Error(
|
|
19291
|
+
return e ? new Error(jr) : new Error(Go(e));
|
|
19287
19292
|
}
|
|
19288
19293
|
_protectionCheck(e = null, t = null, n = null) {
|
|
19289
19294
|
if (e && this._closed) return;
|
|
@@ -19291,7 +19296,7 @@ class Xo {
|
|
|
19291
19296
|
t && !Array.isArray(t) && (t = [t]);
|
|
19292
19297
|
const r = e(t), o = this.getProtection();
|
|
19293
19298
|
if (o?.getProperties()) {
|
|
19294
|
-
if (r.length === 0) throw new Error(
|
|
19299
|
+
if (r.length === 0) throw new Error(ws);
|
|
19295
19300
|
if (r) {
|
|
19296
19301
|
const a = r.length;
|
|
19297
19302
|
for (let l = 0; l < a; l++)
|
|
@@ -19301,7 +19306,7 @@ class Xo {
|
|
|
19301
19306
|
}
|
|
19302
19307
|
_rangesToCoords(e, t = null, n = !0, r = !1) {
|
|
19303
19308
|
if (t && this._closed || e == null) return F.EmptyArray;
|
|
19304
|
-
const o = this, i = dc(e, this._entireCoords, r ? jt :
|
|
19309
|
+
const o = this, i = dc(e, this._entireCoords, r ? jt : rs, (l) => {
|
|
19305
19310
|
if (n && typeof l == "string") {
|
|
19306
19311
|
const c = o.getNames()?.getByName(l);
|
|
19307
19312
|
if (c) return c.getRanges().getCoords();
|
|
@@ -19327,7 +19332,7 @@ class Xo {
|
|
|
19327
19332
|
_rangeToCoords(e, t = null, n = !0) {
|
|
19328
19333
|
if (!e) throw new Error(jr);
|
|
19329
19334
|
const r = t ? (i) => t(i) : void 0, o = this._rangesToCoords(e, r, n);
|
|
19330
|
-
if (o.length === 0) throw new Error(
|
|
19335
|
+
if (o.length === 0) throw new Error(Go(e));
|
|
19331
19336
|
return o[0];
|
|
19332
19337
|
}
|
|
19333
19338
|
_collectRanges(e, t = [], n = !0, r = this._getState(), o = !1) {
|
|
@@ -19587,7 +19592,7 @@ class Xo {
|
|
|
19587
19592
|
if (t) {
|
|
19588
19593
|
const E = t.getCoords(), y = E.colStart, b = E.rowStart, w = E.colEnd, v = E.rowEnd;
|
|
19589
19594
|
m = (I, x) => {
|
|
19590
|
-
if (I < b || I > v || x < y || x > w) throw new
|
|
19595
|
+
if (I < b || I > v || x < y || x > w) throw new je();
|
|
19591
19596
|
};
|
|
19592
19597
|
}
|
|
19593
19598
|
i ? (u = (E, y, b) => (m?.(E, y), g.addValue(y, E, b), h), d = (E, y, b) => (m?.(E, y + (b?.length ?? 0)), g.addValues(y, E, b), h)) : (u = (E, y, b) => (m?.(E, y), g.addValue(E, y, b), h), d = (E, y, b) => (m?.(E + (b?.length ?? 0), y), g.addValues(E, y, b), h));
|
|
@@ -19645,13 +19650,13 @@ class Xo {
|
|
|
19645
19650
|
const se = [], Q = this._cellOptions, pe = /* @__PURE__ */ new Map(), _e = hd, oe = (ie, ne, ce) => {
|
|
19646
19651
|
const be = O?.(ne, ce);
|
|
19647
19652
|
if (be?.merge) {
|
|
19648
|
-
const
|
|
19653
|
+
const ze = be.merge.getCoords(), ke = u ? ze.colStart : ze.rowStart, at = u ? ze.rowStart : ze.colStart;
|
|
19649
19654
|
if (ke !== ne || at !== ce) return;
|
|
19650
19655
|
}
|
|
19651
19656
|
if (o && ie && ie.isICell) {
|
|
19652
|
-
const
|
|
19653
|
-
if (
|
|
19654
|
-
const ke =
|
|
19657
|
+
const ze = ie;
|
|
19658
|
+
if (ze.isTopLeft()) {
|
|
19659
|
+
const ke = ze.getSpans();
|
|
19655
19660
|
le.push({ colStart: u ? ne : ce, rowStart: u ? ce : ne, colEnd: (u ? ne : ce) + ke.width - 1, rowEnd: (u ? ce : ne) + ke.height - 1 });
|
|
19656
19661
|
}
|
|
19657
19662
|
}
|
|
@@ -19660,17 +19665,17 @@ class Xo {
|
|
|
19660
19665
|
const qe = ve.value;
|
|
19661
19666
|
if (ve.stringToParse) {
|
|
19662
19667
|
wo[0].colIndex = u ? ne : ce, wo[0].rowIndex = u ? ce : ne, wo[1] = qe, wo[2] = be, re.setState(wo);
|
|
19663
|
-
const
|
|
19668
|
+
const ze = he?.parse(ve.stringToParse, re.context), ke = Gl(ze, Q, he, pe, !0);
|
|
19664
19669
|
if (re.clear(), ke === null) return ke;
|
|
19665
19670
|
ke !== void 0 && (ve = { ...ke });
|
|
19666
19671
|
}
|
|
19667
19672
|
if (g) {
|
|
19668
|
-
if (g && (ie === null || ve.value !== void 0)) throw new Error(
|
|
19669
|
-
if (!m && ve.style !== void 0) throw new Error(
|
|
19673
|
+
if (g && (ie === null || ve.value !== void 0)) throw new Error(ws);
|
|
19674
|
+
if (!m && ve.style !== void 0) throw new Error(ws);
|
|
19670
19675
|
}
|
|
19671
19676
|
if (!i) {
|
|
19672
|
-
const
|
|
19673
|
-
|
|
19677
|
+
const ze = ve.style;
|
|
19678
|
+
ze === void 0 || ze === null && !o || U.append(ne, ce, ze);
|
|
19674
19679
|
const ke = ve.hyperlink;
|
|
19675
19680
|
ke === void 0 || ke === null && !o || q.append(ne, ce, ke);
|
|
19676
19681
|
}
|
|
@@ -19683,13 +19688,13 @@ class Xo {
|
|
|
19683
19688
|
for (let Xe = 0; Xe < ie; Xe++) {
|
|
19684
19689
|
const Ae = a[Xe], fe = Ae[0];
|
|
19685
19690
|
if (de >= fe) throw new De.OutOfOrderError(`Duplicate or out of order major indices: {${fe}}.`);
|
|
19686
|
-
if (de = fe, me = Number.MIN_SAFE_INTEGER, fe < _ || fe > p) throw new
|
|
19691
|
+
if (de = fe, me = Number.MIN_SAFE_INTEGER, fe < _ || fe > p) throw new je("Provided major bounds is invalid");
|
|
19687
19692
|
const Me = Ae[1], Ne = [], Fe = Me.length;
|
|
19688
19693
|
for (let Se = 0; Se < Fe; Se++) {
|
|
19689
19694
|
const Ce = Me[Se], Oe = Ce[1], pt = Oe.length;
|
|
19690
19695
|
let _t = Ce[0], Ke = _t;
|
|
19691
19696
|
if (me > Ke) throw new De.OutOfOrderError(`Duplicate or out of order minor indices: {${Ke}}.`);
|
|
19692
|
-
if (Ke < S || Ke + pt > E + 1) throw new
|
|
19697
|
+
if (Ke < S || Ke + pt > E + 1) throw new je("Provided minor bounds is invalid");
|
|
19693
19698
|
let Ot = [];
|
|
19694
19699
|
for (let Rn = 0; Rn < pt; Rn++) {
|
|
19695
19700
|
const Mn = Oe[Rn];
|
|
@@ -19724,8 +19729,8 @@ class Xo {
|
|
|
19724
19729
|
const Xe = j.setInputs(be, qe);
|
|
19725
19730
|
ve = this._updateFormulaSpatial(z, Xe.inserts, Xe.removes, P.directStyleSpatial);
|
|
19726
19731
|
}
|
|
19727
|
-
const Re = ud(se, u),
|
|
19728
|
-
for (let Xe = 0; Xe <
|
|
19732
|
+
const Re = ud(se, u), ze = Re.length;
|
|
19733
|
+
for (let Xe = 0; Xe < ze; Xe++) G.insertNonOverlapping(Re[Xe]);
|
|
19729
19734
|
const ke = U.done();
|
|
19730
19735
|
ke.length > 0 && this._updateStyles(ke), le.length > 0 && this._merge(le);
|
|
19731
19736
|
const at = q.done();
|
|
@@ -19768,7 +19773,7 @@ class Xo {
|
|
|
19768
19773
|
const _ = f.length;
|
|
19769
19774
|
for (let $ = 0; $ < _; $++) {
|
|
19770
19775
|
const U = f[$] = { ...d, ...f[$] };
|
|
19771
|
-
if (U.offset < 0 || U.offset > m) throw new
|
|
19776
|
+
if (U.offset < 0 || U.offset > m) throw new je("The sort offset is outside of the bounds of the sort.");
|
|
19772
19777
|
U.offset += g;
|
|
19773
19778
|
}
|
|
19774
19779
|
const p = [];
|
|
@@ -19928,7 +19933,7 @@ class Xo {
|
|
|
19928
19933
|
const de = oe, me = L(u, P[de].values), ie = P[de].oppositeIndex, ne = R ? v : v + N - 1, ce = this.isDate1904();
|
|
19929
19934
|
for (let be = 0; be < N; be++) {
|
|
19930
19935
|
let ve = me(ne + (R ? be : -be));
|
|
19931
|
-
Xr(ve) && (ve =
|
|
19936
|
+
Xr(ve) && (ve = Zo(ve, ce));
|
|
19932
19937
|
const qe = M + be;
|
|
19933
19938
|
i ? G.pushAt(qe, ie, ve) : G.pushAt(ie, qe, ve);
|
|
19934
19939
|
}
|
|
@@ -19943,8 +19948,8 @@ class Xo {
|
|
|
19943
19948
|
for (let ce = 0; ce < ne; ce++) {
|
|
19944
19949
|
const be = U[ce], ve = be.rowStart - e.rowStart, qe = be.rowEnd - be.rowStart + 1;
|
|
19945
19950
|
for (let Re = 0; Re < de; Re++) {
|
|
19946
|
-
const
|
|
19947
|
-
oe.push({ colStart: be.colStart, rowStart: ie +
|
|
19951
|
+
const ze = Re * me;
|
|
19952
|
+
oe.push({ colStart: be.colStart, rowStart: ie + ze + ve, colEnd: be.colEnd, rowEnd: ie + ze + ve + qe - 1 });
|
|
19948
19953
|
}
|
|
19949
19954
|
}
|
|
19950
19955
|
} else {
|
|
@@ -19952,8 +19957,8 @@ class Xo {
|
|
|
19952
19957
|
for (let ce = 0; ce < ne; ce++) {
|
|
19953
19958
|
const be = U[ce], ve = be.colStart - e.colStart, qe = be.colEnd - be.colStart + 1;
|
|
19954
19959
|
for (let Re = 0; Re < de; Re++) {
|
|
19955
|
-
const
|
|
19956
|
-
oe.push({ colStart: ie +
|
|
19960
|
+
const ze = Re * me;
|
|
19961
|
+
oe.push({ colStart: ie + ze + ve, rowStart: be.rowStart, colEnd: ie + ze + ve + qe - 1, rowEnd: be.rowEnd });
|
|
19957
19962
|
}
|
|
19958
19963
|
}
|
|
19959
19964
|
}
|
|
@@ -20320,7 +20325,7 @@ class Xo {
|
|
|
20320
20325
|
_clone() {
|
|
20321
20326
|
const e = { ...this._options, container: null };
|
|
20322
20327
|
this._ownStyles && (e.styles = this._styles), this._ownStrings && (e.strings = this._strings), this._ownResources && (e.resources = this._resources), this._ownNames && (e.names = this._names), this._ownsCalculation && (e.calculation = this._calculation), e.transactions = new Kt({ transient: !0 });
|
|
20323
|
-
const t = new
|
|
20328
|
+
const t = new Ko(e), n = this._transactions.getState(this);
|
|
20324
20329
|
t._updateState(n);
|
|
20325
20330
|
const r = new dl({ sheet: this, json: this.getView().toJSON() });
|
|
20326
20331
|
return r.selectMovables(this.getView().getMovableSelection()), t.setView(r), t;
|
|
@@ -20530,8 +20535,8 @@ class Xo {
|
|
|
20530
20535
|
const _e = se[0], oe = q.setState(se), de = q.context, me = de.getCell(), ie = me.isTopLeft();
|
|
20531
20536
|
let ne = M, ce = R;
|
|
20532
20537
|
if (C) {
|
|
20533
|
-
const Re = _e.colIndex - c.colStart,
|
|
20534
|
-
ne = Re + pe + l.rowStart, ce =
|
|
20538
|
+
const Re = _e.colIndex - c.colStart, ze = _e.rowIndex - c.rowStart;
|
|
20539
|
+
ne = Re + pe + l.rowStart, ce = ze + Q + l.colStart;
|
|
20535
20540
|
} else ne = M + _e.rowIndex + Q, ce = R + _e.colIndex + pe;
|
|
20536
20541
|
let be = !1;
|
|
20537
20542
|
const ve = { value: void 0, style: void 0, hyperlink: void 0 };
|
|
@@ -20710,7 +20715,7 @@ class Xo {
|
|
|
20710
20715
|
let B = g.formulaSpatial, j = g.spillSpatial, z = g.pendingSpatial;
|
|
20711
20716
|
C !== g.calcGraph && (B = B.clone(), j = j.clone(), z = z.clone()), this._updateState({ contentfulSpatial: _, unlockSpatial: p, mergeSpatial: S, directStyleSpatial: E, continuousFillSpatial: y, conditionalSpatial: b, hyperlinkSpatial: w, commentsSpatial: v, movableSpatial: I, tableSpatial: x, calcGraph: C, formulaSpatial: B, spillSpatial: j, pendingSpatial: z, rangesListenerSpatial2: A, rangeListenerSpatial: R, rangesListenerMap: M }), this._commitAndAutoSelect(d, u, n?.autoSelect, { viewAfter: { ranges: O, listeners: N } });
|
|
20712
20717
|
} catch (f) {
|
|
20713
|
-
throw console.warn(f), d.rollback(), f instanceof
|
|
20718
|
+
throw console.warn(f), d.rollback(), f instanceof je ? new Error(f.message ?? Va) : f;
|
|
20714
20719
|
}
|
|
20715
20720
|
}
|
|
20716
20721
|
_deleteCells(e, t, n) {
|
|
@@ -20732,7 +20737,7 @@ class Xo {
|
|
|
20732
20737
|
}
|
|
20733
20738
|
this._updateState({ contentfulSpatial: m, unlockSpatial: _, mergeSpatial: f, directStyleSpatial: p, continuousFillSpatial: S, conditionalSpatial: E, hyperlinkSpatial: y, commentsSpatial: b, movableSpatial: w, movableMapModel: v, tableSpatial: I, tableMapModel: x, calcGraph: C, rangesListenerSpatial2: A, rangeListenerSpatial: R, rangesListenerMap: M }), this._commitAndAutoSelect(u, h, n?.autoSelect, { viewAfter: { ranges: O, listeners: N } });
|
|
20734
20739
|
} catch (g) {
|
|
20735
|
-
throw u.rollback(), g instanceof
|
|
20740
|
+
throw u.rollback(), g instanceof je ? new Error(g.message ?? Va) : g;
|
|
20736
20741
|
}
|
|
20737
20742
|
}
|
|
20738
20743
|
_autoFit(e, t) {
|
|
@@ -20740,7 +20745,7 @@ class Xo {
|
|
|
20740
20745
|
t = { expandOnly: !1, skipCustomSize: !1, minContent: !1, ...t };
|
|
20741
20746
|
const n = "Autofit";
|
|
20742
20747
|
let r;
|
|
20743
|
-
const o =
|
|
20748
|
+
const o = Jo(e, this._entireCoords, !0), i = qo(e, this._entireCoords, !0);
|
|
20744
20749
|
!o && i ? (t.orientations = t.orientations ?? k.Orientations.Column, r = `${n} ${tr}`) : !i && o ? (t.orientations = t.orientations ?? k.Orientations.Row, r = `${n} ${er}`) : i && o ? (t.orientations = t.orientations ?? k.Orientations.Both, r = `${n} All`) : (t.orientations = t.orientations ?? k.Orientations.Both, r = `${n}`);
|
|
20745
20750
|
let a = t.orientations !== k.Orientations.Row;
|
|
20746
20751
|
this._colHeaders.isProtected() && (a = !1);
|
|
@@ -20811,7 +20816,7 @@ class Xo {
|
|
|
20811
20816
|
fe && this._rowHeaders.updateHeaderPairs(fe, N);
|
|
20812
20817
|
}
|
|
20813
20818
|
const ne = this._cellStateIterator({ ...pe, includeRangeTypes: { [te.Type.Merge]: !1, [te.Type.Table]: !1, [te.Type.Style]: !1 }, ignoreEmptyIntersections: !0 });
|
|
20814
|
-
let ce, be, ve, qe = ne.next(), Re = 1,
|
|
20819
|
+
let ce, be, ve, qe = ne.next(), Re = 1, ze = 1;
|
|
20815
20820
|
for (; !qe.done; ) {
|
|
20816
20821
|
const Ae = qe.value, fe = Ae[0], Me = Ae[2];
|
|
20817
20822
|
let Ne = I;
|
|
@@ -20819,13 +20824,13 @@ class Xo {
|
|
|
20819
20824
|
Fe === ce ? Ne = be : (Ne = Fe ? Ti(0, D.cellToRange(fe, My), Me, x) : I, be = Ne);
|
|
20820
20825
|
let Se = 1, Ce = 1;
|
|
20821
20826
|
const Oe = Me?.merge ?? null;
|
|
20822
|
-
if (Oe === ve) Se = Re, Ce =
|
|
20827
|
+
if (Oe === ve) Se = Re, Ce = ze;
|
|
20823
20828
|
else {
|
|
20824
20829
|
if (Oe) {
|
|
20825
20830
|
const ln = Oe.getCoords();
|
|
20826
20831
|
Se = ln.colEnd - ln.colStart + 1, Ce = ln.rowEnd - ln.rowStart + 1;
|
|
20827
20832
|
} else Se = 1, Ce = 1;
|
|
20828
|
-
Re = Se,
|
|
20833
|
+
Re = Se, ze = Ce;
|
|
20829
20834
|
}
|
|
20830
20835
|
const pt = fe.colIndex, _t = fe.rowIndex, Ke = Ae[1], Ot = mt(Ke), Rn = D.isCellWithinRange(fe, J);
|
|
20831
20836
|
let Mn = !1, Ut = !1;
|
|
@@ -21018,7 +21023,7 @@ class Xo {
|
|
|
21018
21023
|
_addRangesListeners(e, t, n) {
|
|
21019
21024
|
if (this._closed) throw new Error(It);
|
|
21020
21025
|
if (!t) throw new Error(Fu);
|
|
21021
|
-
n = n ? { ...
|
|
21026
|
+
n = n ? { ...Ds, ...n } : Ds;
|
|
21022
21027
|
const r = n?.transactional ?? !1, o = this, i = Iy++ % Number.MAX_SAFE_INTEGER, a = () => {
|
|
21023
21028
|
let f = null, _ = null;
|
|
21024
21029
|
if (r) {
|
|
@@ -21058,7 +21063,7 @@ class Xo {
|
|
|
21058
21063
|
_addRangesListeners2(e, t, n, r) {
|
|
21059
21064
|
if (this._closed) throw new Error(It);
|
|
21060
21065
|
if (!t) throw new Error(Fu);
|
|
21061
|
-
n = n ? { ...
|
|
21066
|
+
n = n ? { ...Ds, ...n } : Ds;
|
|
21062
21067
|
const o = n?.transactional ?? !1, i = this, a = F.uuidV4(), l = Ay++, c = () => {
|
|
21063
21068
|
let b = null, w = null;
|
|
21064
21069
|
const v = i._getState();
|
|
@@ -21687,7 +21692,7 @@ class Xo {
|
|
|
21687
21692
|
async _addImage(e, t = { type: "picture" }) {
|
|
21688
21693
|
if (!e) throw new Error("An image must be provided as a string or a resource option.");
|
|
21689
21694
|
if (!this.getProtection().isObjectsAllowed()) throw new Error(ku);
|
|
21690
|
-
const n = this._resources.add(e), r = await n.toBuffer(), o = await n.getType(), i = this._getBoundsAtCoords(Tr(this.getSelection().getCoords())[0]), { naturalDimensions: a, asUrl: l } = await
|
|
21695
|
+
const n = this._resources.add(e), r = await n.toBuffer(), o = await n.getType(), i = this._getBoundsAtCoords(Tr(this.getSelection().getCoords())[0]), { naturalDimensions: a, asUrl: l } = await Ps.loadImageDetails(r, o);
|
|
21691
21696
|
URL.revokeObjectURL(l);
|
|
21692
21697
|
const c = { ...i, ...a, ...t?.bounds };
|
|
21693
21698
|
if (F.isNullOrUndefined(t?.bounds?.x) || F.isNullOrUndefined(t?.bounds?.y)) {
|
|
@@ -21854,18 +21859,18 @@ class Xo {
|
|
|
21854
21859
|
this._rowHeaders.getRange(E).forEachVisibleSpan((y, b) => {
|
|
21855
21860
|
this._colHeaders.getRange(S).forEachVisibleSpan((w, v) => {
|
|
21856
21861
|
h(l.search({ colStart: w, rowStart: y, colEnd: v, rowEnd: b }, o));
|
|
21857
|
-
},
|
|
21858
|
-
},
|
|
21862
|
+
}, Os);
|
|
21863
|
+
}, Os);
|
|
21859
21864
|
} else if (r === k.Orientation.Column) {
|
|
21860
21865
|
const S = { min: p.colStart, max: p.colEnd };
|
|
21861
21866
|
this._colHeaders.getRange(S).forEachVisibleSpan((E, y) => {
|
|
21862
21867
|
h(l.search({ colStart: E, rowStart: p.rowStart, colEnd: y, rowEnd: p.rowEnd }, o));
|
|
21863
|
-
},
|
|
21868
|
+
}, Os);
|
|
21864
21869
|
} else if (r === k.Orientation.Row) {
|
|
21865
21870
|
const S = { min: p.rowStart, max: p.rowEnd };
|
|
21866
21871
|
this._rowHeaders.getRange(S).forEachVisibleSpan((E, y) => {
|
|
21867
21872
|
h(l.search({ colStart: p.colStart, rowStart: E, colEnd: p.colEnd, rowEnd: y }, o));
|
|
21868
|
-
},
|
|
21873
|
+
}, Os);
|
|
21869
21874
|
}
|
|
21870
21875
|
} else h(l.search(p, o));
|
|
21871
21876
|
}
|
|
@@ -21992,7 +21997,7 @@ class Xo {
|
|
|
21992
21997
|
const h = r.directStyleSpatial.search(Wt)[0];
|
|
21993
21998
|
if (h) {
|
|
21994
21999
|
const u = h.value.getPropertiesAt(e, t, i), d = u?.numberFormat;
|
|
21995
|
-
d && (a =
|
|
22000
|
+
d && (a = Qo(d) || ji(d)), l.range = h, l.isDateOrTime = a;
|
|
21996
22001
|
} else l.range = null;
|
|
21997
22002
|
a && (i = Kr(i, this._isDate1904));
|
|
21998
22003
|
}
|
|
@@ -22008,7 +22013,7 @@ class Xo {
|
|
|
22008
22013
|
};
|
|
22009
22014
|
this._transactionsRemoveListener = this._transactions.addStateListener(this, { onBeforeCommitStart(f, _, p) {
|
|
22010
22015
|
if (!e._initializing && !_?.skipProtectionCheck && e.getProtection().isLocked())
|
|
22011
|
-
throw new Error(
|
|
22016
|
+
throw new Error(ws);
|
|
22012
22017
|
}, async onBeforeCommitEnd(f, _, p) {
|
|
22013
22018
|
if (_?.ranges) {
|
|
22014
22019
|
const S = { isDataChange: !0, isTransactional: !0, timeStamp: p.getTimestamp(), trigger: "setCells" }, E = f.rangeListenerSpatial, y = f.rangesListenerMap;
|
|
@@ -22640,9 +22645,9 @@ class Xo {
|
|
|
22640
22645
|
return !0;
|
|
22641
22646
|
}
|
|
22642
22647
|
}
|
|
22643
|
-
const eg = { address: null, scope: null }, Ry = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, So = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, My = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 },
|
|
22648
|
+
const eg = { address: null, scope: null }, Ry = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, So = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, My = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Os = { includeHidden: !1 };
|
|
22644
22649
|
Object.freeze({ [xe.Content.Values]: Number.MAX_SAFE_INTEGER, [xe.Content.Formulas]: Number.MAX_SAFE_INTEGER }), Object.freeze({ [xe.Content.Values]: 1, [xe.Content.Formulas]: 1 });
|
|
22645
|
-
const
|
|
22650
|
+
const Ds = { ignoreDataChanges: !1 }, Wt = { colStart: -1, rowStart: -1, colEnd: -1, rowEnd: -1 }, wo = [{ colIndex: -1, rowIndex: -1 }, null, null, null, null], Ty = [xe.Content.Values], tg = { size: null, autoSize: !0 }, gl = { skipCustomSize: !0, expandOnly: !0, minContent: !0 }, Qt = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, ml = { showFormulaBar: !0, showTabs: !0, tabRatio: 600, showHorizontalScrollbar: !0, showVerticalScrollbar: !0, showStatusBar: !0, activeSheetId: null };
|
|
22646
22651
|
class ng {
|
|
22647
22652
|
constructor(e) {
|
|
22648
22653
|
this._emitter = null, this._emitter = new ft(this), this._state = { ...ml }, e?.json && this._fromJSON(e?.json);
|
|
@@ -22818,8 +22823,8 @@ class Ny {
|
|
|
22818
22823
|
}
|
|
22819
22824
|
}
|
|
22820
22825
|
let fl;
|
|
22821
|
-
const
|
|
22822
|
-
let
|
|
22826
|
+
const Ls = "SheetXL", Fy = fl || (fl = F.deepFreeze({ ISheet: { Visibility: ye.Visibility }, ICell: { Content: xe.Content, CalcStatus: xe.CalcStatus }, IColor: { Named: T.Named, Scheme: T.Scheme, Type: T.Type, AdjustmentType: T.AdjustmentType }, Direction: Ve }), fl);
|
|
22827
|
+
let Bs;
|
|
22823
22828
|
class ky extends Oi {
|
|
22824
22829
|
constructor(e, t, n, r = null, o = !1) {
|
|
22825
22830
|
super(e, t, n, r, o);
|
|
@@ -22866,7 +22871,7 @@ class ky extends Oi {
|
|
|
22866
22871
|
return new Proxy(h, { set: (u, d, g) => (console.log(`Adding property "${d}" with value:`, g), u[d] = g, !0), deleteProperty: (u, d) => (console.log(`Deleting property "${d}"`), delete u[d]) });
|
|
22867
22872
|
}({}));
|
|
22868
22873
|
try {
|
|
22869
|
-
_c({ getPosition: () => l.getCell().getCoords() }),
|
|
22874
|
+
_c({ getPosition: () => l.getCell().getCoords() }), Bs = globalThis[Ls], globalThis[Ls] = Fy, i = this._fn.call(c, ...r), Bs ? (globalThis[Ls] = Bs, Bs = void 0) : delete globalThis[Ls], ki();
|
|
22870
22875
|
} catch (h) {
|
|
22871
22876
|
throw h;
|
|
22872
22877
|
} finally {
|
|
@@ -22955,7 +22960,7 @@ class Ly {
|
|
|
22955
22960
|
return this._modules;
|
|
22956
22961
|
}
|
|
22957
22962
|
async createModule(e) {
|
|
22958
|
-
const t = await import("./
|
|
22963
|
+
const t = await import("./CMO8yX7mxIaFV5GC.mjs").then((r) => r.i), n = await t.ScriptingUtils.compileTypescript(e);
|
|
22959
22964
|
return n ? await rg(n, e?.declarationsOnly ?? !1) : null;
|
|
22960
22965
|
}
|
|
22961
22966
|
addModule(e, t, n) {
|
|
@@ -23081,7 +23086,7 @@ const Zl = new RegExp(/[\\/\\*?:[\]]+/), Hy = new RegExp(/\(((\d+)(?!.*\d))\)$/,
|
|
|
23081
23086
|
}
|
|
23082
23087
|
return s;
|
|
23083
23088
|
};
|
|
23084
|
-
class Yi extends
|
|
23089
|
+
class Yi extends ss {
|
|
23085
23090
|
constructor(e, t, n, r) {
|
|
23086
23091
|
super(e, t, r), this._workbook = n;
|
|
23087
23092
|
}
|
|
@@ -23129,7 +23134,7 @@ class Yi extends os {
|
|
|
23129
23134
|
return Lm(e, r, Wi, Jn);
|
|
23130
23135
|
}
|
|
23131
23136
|
}
|
|
23132
|
-
class Zi extends
|
|
23137
|
+
class Zi extends is {
|
|
23133
23138
|
constructor(e, t, n, r) {
|
|
23134
23139
|
super(e, t, r), this._workbook = n;
|
|
23135
23140
|
}
|
|
@@ -23170,7 +23175,7 @@ class Qy {
|
|
|
23170
23175
|
try {
|
|
23171
23176
|
this._strings = n.strings ?? new fc(), this._ownStrings = !n.strings, this._resources = n.resources ?? new af(), this._ownResources = !n.resources, this._createSheetName = n.createSheetNameCallback ?? Vy;
|
|
23172
23177
|
let i = n.createSheetCallback;
|
|
23173
|
-
i || (i = (l) => new
|
|
23178
|
+
i || (i = (l) => new Ko(l)), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (l, c, h, u, d) => {
|
|
23174
23179
|
let g = null;
|
|
23175
23180
|
const m = { date1904: t.isDate1904(), readonly: t._options.readonly ?? !1, transactions: t._transactions, styles: t._styles, strings: t._strings, resources: t._resources, names: t._names, calculation: t._calculation, resolveRange: (f) => t._options.resolveRange?.(f) ?? t.getRange(f), container: { beforeFromJSON: (f) => {
|
|
23176
23181
|
g = f, t._addSheetRef({ name: c, id: l, visibility: h ?? ye.Visibility.Visible, sheet: f }, u);
|
|
@@ -23237,7 +23242,7 @@ class Qy {
|
|
|
23237
23242
|
_initState() {
|
|
23238
23243
|
let e = this._getSheetRefs();
|
|
23239
23244
|
for (let r = e && e.length - 1; r >= 0; r--) ;
|
|
23240
|
-
this._isDate1904 = this._options.date1904 ?? !1, this._theme = this._options.theme ?? new ym().getDefaultTheme(), this._styles = this._options?.styles ?? new
|
|
23245
|
+
this._isDate1904 = this._options.date1904 ?? !1, this._theme = this._options.theme ?? new ym().getDefaultTheme(), this._styles = this._options?.styles ?? new os(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new ng()), this._listenerProtection?.(), this._protection = new og(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (r) => {
|
|
23241
23246
|
t._emitter.notify("onProtectionChange");
|
|
23242
23247
|
} });
|
|
23243
23248
|
const t = this;
|
|
@@ -23311,12 +23316,12 @@ class Qy {
|
|
|
23311
23316
|
}
|
|
23312
23317
|
getSheet(e, t = ye.Visibility.Visible) {
|
|
23313
23318
|
const n = this._getSheetRef(e, t);
|
|
23314
|
-
if (!n) throw new
|
|
23319
|
+
if (!n) throw new je(`Sheet '${e}' not found.`);
|
|
23315
23320
|
return n.sheet;
|
|
23316
23321
|
}
|
|
23317
23322
|
getSheetAt(e, t = ye.Visibility.Visible) {
|
|
23318
23323
|
const n = this._getSheetRef(e, t);
|
|
23319
|
-
if (!n) throw new
|
|
23324
|
+
if (!n) throw new je(((r) => `No sheet found at ${r}.`)(e));
|
|
23320
23325
|
return n.sheet;
|
|
23321
23326
|
}
|
|
23322
23327
|
getSheets() {
|
|
@@ -23335,7 +23340,7 @@ class Qy {
|
|
|
23335
23340
|
_getSheetRef(e, t = ye.Visibility.Visible) {
|
|
23336
23341
|
if (this._closed) return null;
|
|
23337
23342
|
let n = null;
|
|
23338
|
-
return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof
|
|
23343
|
+
return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof Ko ? n = this._getState().refsByInstance.get(e) : e?.id && e.sheet && (n = this._getState().refsById.get(e.id)), n);
|
|
23339
23344
|
}
|
|
23340
23345
|
_validateNewSheetName(e, t = !0) {
|
|
23341
23346
|
if (e == null) return e;
|
|
@@ -23601,12 +23606,12 @@ class Qy {
|
|
|
23601
23606
|
if (n.length !== 1) throw new Error(jm);
|
|
23602
23607
|
return this._createRange(n[0], t);
|
|
23603
23608
|
} catch (n) {
|
|
23604
|
-
throw n instanceof
|
|
23609
|
+
throw n instanceof je ? new je(n.message) : new Error(n.message ?? Go(e));
|
|
23605
23610
|
}
|
|
23606
23611
|
}
|
|
23607
23612
|
getRanges(e, t) {
|
|
23608
23613
|
const n = this._rangesAddressToCoords(e);
|
|
23609
|
-
if (n.length === 0) throw new Error(
|
|
23614
|
+
if (n.length === 0) throw new Error(Go(e));
|
|
23610
23615
|
return this._createRanges(n, t);
|
|
23611
23616
|
}
|
|
23612
23617
|
_activeRangeCoords() {
|
|
@@ -23633,7 +23638,7 @@ class Qy {
|
|
|
23633
23638
|
h === "r" ? d.rowStart = d.rowEnd = u.rowIndex : d.colStart = d.colEnd = u.colIndex, e = d;
|
|
23634
23639
|
}
|
|
23635
23640
|
}
|
|
23636
|
-
const l = this, c = dc(e, i,
|
|
23641
|
+
const l = this, c = dc(e, i, rs, (h) => {
|
|
23637
23642
|
if (!t) return null;
|
|
23638
23643
|
if (typeof h == "string") {
|
|
23639
23644
|
const u = l.getNames().getByName(h);
|
|
@@ -23647,7 +23652,7 @@ class Qy {
|
|
|
23647
23652
|
_validateCoords(e, t = ye.Visibility.Visible, n = Ii) {
|
|
23648
23653
|
if (e === null) return;
|
|
23649
23654
|
const r = this.getSheet(e.sheetName, t).getEntireRange().getCoords();
|
|
23650
|
-
if (!D.isRangeWithinRange(e, r)) throw new
|
|
23655
|
+
if (!D.isRangeWithinRange(e, r)) throw new je(n);
|
|
23651
23656
|
if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new Error(Hm);
|
|
23652
23657
|
}
|
|
23653
23658
|
_updateSheetRef(e, t) {
|
|
@@ -23925,7 +23930,7 @@ export {
|
|
|
23925
23930
|
De as N,
|
|
23926
23931
|
bi as O,
|
|
23927
23932
|
qh as P,
|
|
23928
|
-
|
|
23933
|
+
Ps as Q,
|
|
23929
23934
|
Xy as R,
|
|
23930
23935
|
ee as S,
|
|
23931
23936
|
Oi as T,
|
|
@@ -23945,9 +23950,9 @@ export {
|
|
|
23945
23950
|
K as a5,
|
|
23946
23951
|
Ft as a6,
|
|
23947
23952
|
ae as a7,
|
|
23948
|
-
|
|
23953
|
+
os as a8,
|
|
23949
23954
|
el as a9,
|
|
23950
|
-
|
|
23955
|
+
Ko as aA,
|
|
23951
23956
|
ng as aB,
|
|
23952
23957
|
Qy as aC,
|
|
23953
23958
|
af as aa,
|
|
@@ -23985,7 +23990,7 @@ export {
|
|
|
23985
23990
|
um as h,
|
|
23986
23991
|
Uy as i,
|
|
23987
23992
|
wf as j,
|
|
23988
|
-
|
|
23993
|
+
Yo as k,
|
|
23989
23994
|
Gy as l,
|
|
23990
23995
|
Gi as m,
|
|
23991
23996
|
Y as n,
|
|
@@ -23996,7 +24001,7 @@ export {
|
|
|
23996
24001
|
Xt as s,
|
|
23997
24002
|
mt as t,
|
|
23998
24003
|
jc as u,
|
|
23999
|
-
|
|
24004
|
+
je as v,
|
|
24000
24005
|
k as w,
|
|
24001
24006
|
Hf as x,
|
|
24002
24007
|
ue as y,
|