@sheetxl/io-xlsx 1.0.3 → 1.0.5
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/esm/{B8BxPvkHiX4hcIlm.mjs → BIeUFn93H9tpjB2P.mjs} +1290 -1289
- package/browser/esm/{-fdNB43HUPxYWJ_R.mjs → Bmltm5oHDjA46imK.mjs} +898 -898
- package/browser/esm/{vodnBCtDjw8qycsS.mjs → BpMP4fA1G0jq4ucP.mjs} +2 -2
- package/browser/esm/{BOq9DL07jEaKHuIM.mjs → CBiOsyxrSrCc2rHf.mjs} +4 -4
- package/browser/esm/{yHnVx36dSghP3233.mjs → CduDdZifUgpa31H9.mjs} +193 -174
- package/browser/esm/{BjtXA8Q58TjpX90f.mjs → D-8PUtpwA7w1Vztk.mjs} +2 -2
- package/browser/esm/{7zN_b2s0BRH9UClF.mjs → DCxH223FyOmHfLZy.mjs} +1443 -1426
- package/browser/esm/{CbR2WXJw8AmmbFY-.mjs → DHhBj-FyuFwtF1jS.mjs} +1 -1
- package/browser/esm/{DxkJJ65lFs0Fg6YW.mjs → DXQmnPbbopMZKuDi.mjs} +2 -2
- package/browser/esm/{CKeoydawnx6JqzIh.mjs → clofhk5-eCPDQW9E.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{DWL__gLKpzWgIAgP.mjs → n-8RFAhxWK4eYNVl.mjs} +1 -1
- package/node/esm/{B74b9YqT29KIKqCT.mjs → 0E9feQjQRVK4OUcL.mjs} +1 -1
- package/node/esm/{CJzOPo9n5d81oTwp.mjs → 0EFUOGDC3FYJxfgS.mjs} +221 -201
- package/node/esm/{Bun4U-VOiQ4A-B9o.mjs → B6_vyfcdvDh9N346.mjs} +2 -2
- package/node/esm/{CufzeuvvI4_JrCZt.mjs → BAkDqp4pgMeVrOzO.mjs} +370 -370
- package/node/esm/{DLq4doP565FaG1oh.mjs → CA_cU7nQp5uyXXb2.mjs} +2 -2
- package/node/esm/{DsfZ2R68TKJ5FFKz.mjs → DYrM7UZMaWo149eR.mjs} +1444 -1442
- package/node/esm/{BRjPLGDja5nIYqeX.mjs → UqobiqiwMs9REY7T.mjs} +2 -2
- package/node/esm/{BzKl-VdTNvl6702Y.mjs → Z9V0xb8AYE8CyoEL.mjs} +1521 -1505
- package/node/esm/index.mjs +4 -4
- package/package.json +3 -3
- package/types/src/OOXMLExtensions.d.ts +7 -0
- package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +5 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v1.0.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v1.0.5
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { $ as t, $n as e, An as o, C as r, Ct as n, Dr as i, E as a,
|
|
7
|
+
import { $ as t, $n as e, An as o, C as r, Ct as n, Dr as i, E as a, Gt as l, In as c, It as u, Jn as h, Kn as d, Ln as p, Lr as f, Lt as g, Nn as m, Nt as b, Pn as x, Pr as y, Qn as v, Rn as w, Rt as T, Sr as S, St as C, T as k, Tt as A, Ut as E, Vn as I, Wt as P, Xn as O, Yn as D, Z as N, Zn as _, _ as $, _r as R, _t as M, br as V, cr as L, ct as j, dn as B, er as F, f as H, fn as W, fr as z, ft as X, ht as q, in as U, ir as G, it as K, jn as J, jt as Z, kr as Q, lr as Y, lt as tt, mn as et, mr as ot, mt as st, n as rt, nn as nt, nt as it, o as at, or as lt, ot as ct, p as ut, pr as ht, pt as dt, rn as pt, sr as ft, t as gt, tn as mt, tr as bt, ut as xt, vr as yt, vt, wr as wt, wt as Tt, xr as St, xt as Ct, yn as kt, zr as At } from "./Z9V0xb8AYE8CyoEL.mjs";
|
|
8
8
|
import { BufferUtils as Et, CommonUtils as It, ExpectedError as Pt, OverlappingRange as Ot, RangeAxis as Dt } from "@sheetxl/utils";
|
|
9
|
-
import { AddressUtils as Nt, BufferUtils as _t, CommonUtils as $t, CoordUtils as
|
|
9
|
+
import { AddressUtils as Nt, BufferUtils as _t, CommonUtils as $t, CoordUtils as Rt, FormulaError as Mt, FormulaText as Vt, FunctionDeclarations as Lt, ICellStyle as jt, ICondition as Bt, IConditionalFormat as Ft, ICustomProperty as Ht, IFont as Wt, IRange as zt, ITextFrame as Xt, NumberFormat as qt, OutOfBoundsError as Ut, PersonCollection as Gt, ResourceCollection as Kt, RichDataRegistry as Jt, Scalar as Zt, Sort as Qt, Theme as Yt, Tuple as te, Workbook as ee, pivotCellFormatsOf as oe } from "@sheetxl/sdk";
|
|
10
10
|
import { BlobReader as se, Uint8ArrayReader as re, Uint8ArrayWriter as ne, ZipReader as ie } from "@zip.js/zip.js";
|
|
11
11
|
var ae = {
|
|
12
12
|
ascending: "ascending",
|
|
@@ -16,7 +16,7 @@ var ae = {
|
|
|
16
16
|
function le(t, e) {
|
|
17
17
|
const o = t.sheets ?? [], s = /* @__PURE__ */ new Map();
|
|
18
18
|
for (let t = 0; t < o.length; t++) {
|
|
19
|
-
const e = o[t], r =
|
|
19
|
+
const e = o[t], r = y(e)?.tables ?? [];
|
|
20
20
|
for (let t = 0; t < r.length; t++) {
|
|
21
21
|
const e = r[t], o = Array.isArray(e) ? e[1] : e?.v;
|
|
22
22
|
if (!o?.id) continue;
|
|
@@ -41,12 +41,12 @@ function le(t, e) {
|
|
|
41
41
|
return e;
|
|
42
42
|
}(t), i = /* @__PURE__ */ new Map();
|
|
43
43
|
for (let t = 0; t < o.length; t++) {
|
|
44
|
-
const e =
|
|
44
|
+
const e = y(o[t])?.pivotTables ?? [];
|
|
45
45
|
for (let s = 0; s < e.length; s++) i.set(`${o[t].name}\0${e[s].name}`, e[s]);
|
|
46
46
|
}
|
|
47
47
|
const a = new Set((t.pivotCaches ?? []).flatMap((t) => t.fields ? [t.cacheId] : [])), l = /* @__PURE__ */ new Set();
|
|
48
48
|
for (let t = 0; t < o.length; t++) {
|
|
49
|
-
const c = o[t], u =
|
|
49
|
+
const c = o[t], u = y(c);
|
|
50
50
|
if (!u) continue;
|
|
51
51
|
const h = u.slicers, d = u.movables;
|
|
52
52
|
if (h && d) for (let t = d.length - 1; t >= 0; t--) {
|
|
@@ -252,8 +252,8 @@ var Oe = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏
|
|
|
252
252
|
function $e(t) {
|
|
253
253
|
return t >= 65 && t <= 90 || t >= 97 && t <= 122 || 58 === t || 95 === t || 8204 === t || 8205 === t || t >= 192 && t <= 214 || t >= 216 && t <= 246 || t >= 248 && t <= 767 || t >= 880 && t <= 893 || t >= 895 && t <= 8191 || t >= 8304 && t <= 8591 || t >= 11264 && t <= 12271 || t >= 12289 && t <= 55295 || t >= 63744 && t <= 64975 || t >= 65008 && t <= 65533 || t >= 65536 && t <= 983039;
|
|
254
254
|
}
|
|
255
|
-
var
|
|
256
|
-
new RegExp(`^[${
|
|
255
|
+
var Re = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Me = `-${Re}.0-9·̀-ͯ‿-⁀`;
|
|
256
|
+
new RegExp(`^[${Re}]$`, "u"), new RegExp(`^[${Me}]$`, "u"), new RegExp(`^[${Re}][${Me}]*$`, "u"), new RegExp(`^[${Me}]+$`, "u");
|
|
257
257
|
var Ve = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Le = `-${Ve}.0-9·̀-ͯ‿-⁀`, je = (new RegExp(`^[${Ve}]$`, "u"), new RegExp(`^[${Le}]$`, "u"), new RegExp(`^[${Ve}][${Le}]*$`, "u"));
|
|
258
258
|
function Be(t) {
|
|
259
259
|
return t >= 65 && t <= 90 || 95 === t || t >= 97 && t <= 122 || t >= 192 && t <= 214 || t >= 216 && t <= 246 || t >= 248 && t <= 767 || t >= 880 && t <= 893 || t >= 895 && t <= 8191 || t >= 8204 && t <= 8205 || t >= 8304 && t <= 8591 || t >= 11264 && t <= 12271 || t >= 12289 && t <= 55295 || t >= 63744 && t <= 64975 || t >= 65008 && t <= 65533 || t >= 65536 && t <= 983039;
|
|
@@ -1313,7 +1313,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1313
1313
|
}, _o = (t) => {
|
|
1314
1314
|
const e = parseFloat(t);
|
|
1315
1315
|
return isNaN(e) ? null : e;
|
|
1316
|
-
}, $o = null,
|
|
1316
|
+
}, $o = null, Ro = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Mo = (t) => Ro(t).replace(/"/g, """), Vo = class {
|
|
1317
1317
|
constructor() {
|
|
1318
1318
|
this._registeredVisitors = /* @__PURE__ */ new Map();
|
|
1319
1319
|
}
|
|
@@ -1385,7 +1385,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1385
1385
|
let o = `<${t.name}`;
|
|
1386
1386
|
for (const t in e) {
|
|
1387
1387
|
const s = e[t];
|
|
1388
|
-
o += ` ${t}="${
|
|
1388
|
+
o += ` ${t}="${Mo("string" == typeof s ? s : s?.value ?? "")}"`;
|
|
1389
1389
|
}
|
|
1390
1390
|
return o + ">";
|
|
1391
1391
|
})(t)), i = {
|
|
@@ -1435,12 +1435,12 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1435
1435
|
a = i?.local ?? null, l = i?.tag ?? null, c = i?.visitor ?? null, p = !i?.destination;
|
|
1436
1436
|
},
|
|
1437
1437
|
onText: (t) => {
|
|
1438
|
-
f ? f.push(
|
|
1438
|
+
f ? f.push(Ro(t)) : c?.text?.(t, x);
|
|
1439
1439
|
},
|
|
1440
1440
|
onEnd: e
|
|
1441
1441
|
};
|
|
1442
1442
|
}
|
|
1443
|
-
}, Lo = `IFERROR(${
|
|
1443
|
+
}, Lo = `IFERROR(${T}(`, jo = Lo.toUpperCase(), Bo = g.toUpperCase(), Fo = { kind: "none" }, Ho = { kind: "spilled" }, Wo = (t, e) => {
|
|
1444
1444
|
if (34 !== t.charCodeAt(e)) return null;
|
|
1445
1445
|
let o = "", s = e + 1;
|
|
1446
1446
|
for (; s < t.length;) if (34 === t.charCodeAt(s)) {
|
|
@@ -1578,7 +1578,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1578
1578
|
s.style = ns(o) ? Wt.Style.Italic : Wt.Style.Normal;
|
|
1579
1579
|
break;
|
|
1580
1580
|
case "strike":
|
|
1581
|
-
s.strike =
|
|
1581
|
+
s.strike = Tt(ns(o));
|
|
1582
1582
|
break;
|
|
1583
1583
|
case "outline":
|
|
1584
1584
|
s.outline = ns(o);
|
|
@@ -1593,7 +1593,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1593
1593
|
break;
|
|
1594
1594
|
}
|
|
1595
1595
|
case "u":
|
|
1596
|
-
s.underline =
|
|
1596
|
+
s.underline = A(o.val);
|
|
1597
1597
|
break;
|
|
1598
1598
|
case "vertAlign": {
|
|
1599
1599
|
const t = Ct(o.val);
|
|
@@ -1621,7 +1621,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1621
1621
|
break;
|
|
1622
1622
|
}
|
|
1623
1623
|
case "scheme":
|
|
1624
|
-
|
|
1624
|
+
C(s, o.val);
|
|
1625
1625
|
break;
|
|
1626
1626
|
case "color": {
|
|
1627
1627
|
const t = o.rgb;
|
|
@@ -1642,7 +1642,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1642
1642
|
onCloseTag(t) {
|
|
1643
1643
|
if ("rPr" === t) this._inRPr = !1, this._font ??= {};
|
|
1644
1644
|
else if ("r" === t && this._inRun) {
|
|
1645
|
-
const t =
|
|
1645
|
+
const t = f(this._text), e = this._font;
|
|
1646
1646
|
this._runs.push(e ? {
|
|
1647
1647
|
text: t,
|
|
1648
1648
|
font: e
|
|
@@ -1704,19 +1704,19 @@ var is = (t) => {
|
|
|
1704
1704
|
return {
|
|
1705
1705
|
c: o(e("col")),
|
|
1706
1706
|
r: o(e("row")),
|
|
1707
|
-
x:
|
|
1708
|
-
y:
|
|
1707
|
+
x: P(e("colOff") ?? "0") ?? 0,
|
|
1708
|
+
y: P(e("rowOff") ?? "0") ?? 0
|
|
1709
1709
|
};
|
|
1710
|
-
}, as = "formulaDialect", ls = "isKnownFunction", cs = "date1904", us = "richStrings", hs = "defaultFont", ds = (o, s, r, n, i, a,
|
|
1711
|
-
const
|
|
1710
|
+
}, as = "formulaDialect", ls = "isKnownFunction", cs = "date1904", us = "richStrings", hs = "defaultFont", ds = (o, s, r, n, i, a, c, u) => {
|
|
1711
|
+
const h = new Vo(), d = (t) => {
|
|
1712
1712
|
const e = t.getAttribute("dxfId", No);
|
|
1713
1713
|
if (null === e) return;
|
|
1714
1714
|
return n?.get(e) || (a?.(`A color filter or sort names a format that does not exist (dxfId '${e}').`), {});
|
|
1715
1715
|
};
|
|
1716
|
-
let
|
|
1717
|
-
const g =
|
|
1716
|
+
let p = !1;
|
|
1717
|
+
const g = u?.get("parseInlineDxf"), m = u?.get(as), x = (t) => m && t ? m.readDetached(t) : t, y = new te.TransposedBuilder();
|
|
1718
1718
|
let v = null, w = "topLeft";
|
|
1719
|
-
|
|
1719
|
+
h.registerVisitor({
|
|
1720
1720
|
from: "autoFilter",
|
|
1721
1721
|
to: "autoTable",
|
|
1722
1722
|
openTag: (t) => {
|
|
@@ -1730,7 +1730,7 @@ var is = (t) => {
|
|
|
1730
1730
|
0 === t ? o.hiddenButtons = !1 : t === n && (o.hiddenButtons = !0);
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
|
-
}),
|
|
1733
|
+
}), h.registerVisitor({
|
|
1734
1734
|
from: "conditionalFormatting",
|
|
1735
1735
|
to: {},
|
|
1736
1736
|
openTag: (t) => {
|
|
@@ -1744,7 +1744,7 @@ var is = (t) => {
|
|
|
1744
1744
|
}, r = t.getAttribute("pivot", Do);
|
|
1745
1745
|
null !== r && (s.pivot = r), t.setSource(s);
|
|
1746
1746
|
}
|
|
1747
|
-
}),
|
|
1747
|
+
}), h.registerVisitor({
|
|
1748
1748
|
from: "cfRule",
|
|
1749
1749
|
to: {},
|
|
1750
1750
|
openTag: (t) => {
|
|
@@ -1768,14 +1768,14 @@ var is = (t) => {
|
|
|
1768
1768
|
if (!e?.r) return;
|
|
1769
1769
|
const o = e.conditionals[e.conditionals.length - 1], s = o?.rule;
|
|
1770
1770
|
if (!s) return;
|
|
1771
|
-
const r = {}, n =
|
|
1771
|
+
const r = {}, n = j(s, a);
|
|
1772
1772
|
n && (r.condition = n), s.style && (r.style = s.style), s.scale && (r.scale = s.scale), s.stopIfTrue && (r.stopIfTrue = !0), s.pivot && "number" == typeof s.priority && (r.pivotKey = s.priority), o.v = r, o.priority = s.priority, s.x14Id && (o.x14Id = s.x14Id), delete o.rule;
|
|
1773
1773
|
}
|
|
1774
1774
|
});
|
|
1775
1775
|
const T = (t, e) => {
|
|
1776
1776
|
const o = e.minLength ?? 10, s = e.maxLength ?? 90;
|
|
1777
1777
|
0 === o ? delete t.minLength : t.minLength = o, 100 === s ? delete t.maxLength : t.maxLength = s;
|
|
1778
|
-
},
|
|
1778
|
+
}, C = (t, e) => {
|
|
1779
1779
|
const o = (t, e) => !t || t.type === e && void 0 === t.value && !t.exclusive, [s, r] = e;
|
|
1780
1780
|
o(s, Ft.ColorStopType.Min) ? delete t.minPoint : t.minPoint = s, o(r, Ft.ColorStopType.Max) ? delete t.maxPoint : t.maxPoint = r;
|
|
1781
1781
|
}, k = (t) => {
|
|
@@ -1786,7 +1786,7 @@ var is = (t) => {
|
|
|
1786
1786
|
}
|
|
1787
1787
|
return o;
|
|
1788
1788
|
};
|
|
1789
|
-
|
|
1789
|
+
h.registerVisitor({
|
|
1790
1790
|
from: "colorScale",
|
|
1791
1791
|
to: {},
|
|
1792
1792
|
openTag: (t) => {},
|
|
@@ -1798,7 +1798,7 @@ var is = (t) => {
|
|
|
1798
1798
|
stops: s
|
|
1799
1799
|
};
|
|
1800
1800
|
}
|
|
1801
|
-
}),
|
|
1801
|
+
}), h.registerVisitor({
|
|
1802
1802
|
from: "dataBar",
|
|
1803
1803
|
to: {},
|
|
1804
1804
|
openTag: (t) => {
|
|
@@ -1806,11 +1806,11 @@ var is = (t) => {
|
|
|
1806
1806
|
},
|
|
1807
1807
|
closeTag: (t) => {
|
|
1808
1808
|
const e = t.getSource(), o = { type: Ft.ScaleType.DataBar };
|
|
1809
|
-
|
|
1809
|
+
C(o, k(e));
|
|
1810
1810
|
const s = e.colors?.[0];
|
|
1811
1811
|
s && (o.color = s), T(o, e), void 0 !== e.showValue && (o.showValue = e.showValue), t.getParent().scale = o;
|
|
1812
1812
|
}
|
|
1813
|
-
}),
|
|
1813
|
+
}), h.registerVisitor({
|
|
1814
1814
|
from: "iconSet",
|
|
1815
1815
|
to: {},
|
|
1816
1816
|
openTag: (t) => {
|
|
@@ -1823,15 +1823,15 @@ var is = (t) => {
|
|
|
1823
1823
|
};
|
|
1824
1824
|
void 0 !== e.iconSet && (o.iconSet = e.iconSet), void 0 !== e.reverse && (o.reverse = e.reverse), void 0 !== e.showValue && (o.showValue = e.showValue), t.getParent().scale = o;
|
|
1825
1825
|
}
|
|
1826
|
-
}),
|
|
1826
|
+
}), h.registerVisitor({
|
|
1827
1827
|
from: "formula",
|
|
1828
1828
|
to: {},
|
|
1829
1829
|
text: (t, e) => {
|
|
1830
1830
|
const o = e.getParent();
|
|
1831
1831
|
let s = o.formulas;
|
|
1832
|
-
s || (s = [], o.formulas = s), s.push(
|
|
1832
|
+
s || (s = [], o.formulas = s), s.push(x(t));
|
|
1833
1833
|
}
|
|
1834
|
-
}),
|
|
1834
|
+
}), h.registerVisitor({
|
|
1835
1835
|
from: "cfvo",
|
|
1836
1836
|
to: {},
|
|
1837
1837
|
openTag: (t) => {
|
|
@@ -1840,11 +1840,11 @@ var is = (t) => {
|
|
|
1840
1840
|
const o = t.getSource();
|
|
1841
1841
|
if (e.conditions.push(o), t.copyTo("type", $o), o.type === Ft.ColorStopType.Formula) {
|
|
1842
1842
|
const e = t.getAttribute("val");
|
|
1843
|
-
null != e && (o.value =
|
|
1843
|
+
null != e && (o.value = x(String(e)));
|
|
1844
1844
|
} else t.copyTo("value", _o, "val");
|
|
1845
1845
|
!1 === t.getAttribute("gte", Do) && (o.exclusive = !0);
|
|
1846
1846
|
}
|
|
1847
|
-
}),
|
|
1847
|
+
}), h.registerVisitor({
|
|
1848
1848
|
from: "color",
|
|
1849
1849
|
to: {},
|
|
1850
1850
|
openTag: (t) => {
|
|
@@ -1853,7 +1853,7 @@ var is = (t) => {
|
|
|
1853
1853
|
const s = e((e) => t.getAttribute(e));
|
|
1854
1854
|
o.colors.push(s);
|
|
1855
1855
|
}
|
|
1856
|
-
}),
|
|
1856
|
+
}), h.registerVisitor({
|
|
1857
1857
|
from: "filterColumn",
|
|
1858
1858
|
to: {},
|
|
1859
1859
|
openTag: (t) => {
|
|
@@ -1872,30 +1872,30 @@ var is = (t) => {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
return s;
|
|
1874
1874
|
}
|
|
1875
|
-
}),
|
|
1875
|
+
}), h.registerVisitor({
|
|
1876
1876
|
from: "colorFilter",
|
|
1877
1877
|
openTag: (t) => {
|
|
1878
1878
|
const e = t.getParent(), o = {};
|
|
1879
1879
|
e.operator = Bt.BuiltInOperatorNames.Color, e.param = o, t.copyToObject(o, "cellColor", Do);
|
|
1880
|
-
const s =
|
|
1880
|
+
const s = d(t);
|
|
1881
1881
|
s && (o.style = s);
|
|
1882
1882
|
}
|
|
1883
|
-
}),
|
|
1883
|
+
}), h.registerVisitor({
|
|
1884
1884
|
from: "iconFilter",
|
|
1885
1885
|
openTag: (t) => {
|
|
1886
1886
|
const e = t.getParent(), o = {};
|
|
1887
1887
|
e.operator = Bt.BuiltInOperatorNames.Icon, e.param = o, t.copyToObject(o, "iconId", No), t.copyToObject(o, "iconSet", $o);
|
|
1888
1888
|
}
|
|
1889
|
-
}),
|
|
1889
|
+
}), h.registerVisitor({
|
|
1890
1890
|
from: "top10",
|
|
1891
1891
|
openTag: (t) => {
|
|
1892
1892
|
const e = t.getParent(), o = {};
|
|
1893
1893
|
e.operator = Bt.BuiltInOperatorNames.TopN, e.param = o, t.copyToObject(o, "filterVal", _o), t.copyToObject(o, "percent", Do), t.copyToObject(o, "top", Do), t.copyToObject(o, "limit", _o, "val");
|
|
1894
1894
|
}
|
|
1895
|
-
}),
|
|
1895
|
+
}), h.registerVisitor({
|
|
1896
1896
|
from: "dynamicFilter",
|
|
1897
1897
|
openTag: (t) => {
|
|
1898
|
-
const e = t.getParent(), o =
|
|
1898
|
+
const e = t.getParent(), o = B(t.getAttribute("type"), t.getAttribute("val"), t.getAttribute("maxVal"));
|
|
1899
1899
|
e.operator = o.operator, e.param = o.param;
|
|
1900
1900
|
}
|
|
1901
1901
|
});
|
|
@@ -1907,8 +1907,8 @@ var is = (t) => {
|
|
|
1907
1907
|
return e.selector = Bt.BuiltInSelectorNames.Display, e.operator = Bt.BuiltInOperatorNames.InSet, e.param = o, t.copyToObject(o, "blank", Do), t.copyToObject(o, "calendarType", $o), o;
|
|
1908
1908
|
}
|
|
1909
1909
|
};
|
|
1910
|
-
|
|
1911
|
-
const
|
|
1910
|
+
h.registerVisitor(A);
|
|
1911
|
+
const I = {
|
|
1912
1912
|
from: "filter",
|
|
1913
1913
|
openTag: (t) => {
|
|
1914
1914
|
const e = t.getParent();
|
|
@@ -1916,8 +1916,8 @@ var is = (t) => {
|
|
|
1916
1916
|
o || (o = [], e.items = o), o.push(t.getAttribute("val", $o));
|
|
1917
1917
|
}
|
|
1918
1918
|
};
|
|
1919
|
-
|
|
1920
|
-
const
|
|
1919
|
+
h.registerVisitor(I);
|
|
1920
|
+
const P = {
|
|
1921
1921
|
from: "dateGroupItem",
|
|
1922
1922
|
to: {},
|
|
1923
1923
|
openTag: (t) => {
|
|
@@ -1926,12 +1926,12 @@ var is = (t) => {
|
|
|
1926
1926
|
o || (o = [], e.dateGroups = o), o.push(t.getSource()), t.copyTo("group", $o, "dateTimeGrouping"), t.copyTo("day", No), t.copyTo("hour", No), t.copyTo("minute", No), t.copyTo("month", No), t.copyTo("second", No), t.copyTo("year", No);
|
|
1927
1927
|
}
|
|
1928
1928
|
};
|
|
1929
|
-
|
|
1929
|
+
h.registerVisitor(P);
|
|
1930
1930
|
const O = /* @__PURE__ */ new Map();
|
|
1931
1931
|
O.set("filterColumn", {
|
|
1932
1932
|
from: "filterColumn",
|
|
1933
1933
|
transparent: !0
|
|
1934
|
-
}), O.set("filters", A), O.set("filter",
|
|
1934
|
+
}), O.set("filters", A), O.set("filter", I), O.set("dateGroupItem", P), h.registerVisitor({
|
|
1935
1935
|
from: "customFilters",
|
|
1936
1936
|
openTag: (t) => {
|
|
1937
1937
|
const e = t.getParent(), o = t.getAttribute("and"), s = "and" === o || "1" === o, r = [];
|
|
@@ -1940,10 +1940,10 @@ var is = (t) => {
|
|
|
1940
1940
|
closeTag: (t) => {
|
|
1941
1941
|
const e = t.getSource(), o = e?.param;
|
|
1942
1942
|
if (!e || !o) return;
|
|
1943
|
-
const s = 1 === o.length ? o[0] :
|
|
1943
|
+
const s = 1 === o.length ? o[0] : W(e);
|
|
1944
1944
|
s !== e && (e.operator = s.operator, e.param = s.param);
|
|
1945
1945
|
}
|
|
1946
|
-
}),
|
|
1946
|
+
}), h.registerVisitor({
|
|
1947
1947
|
from: "customFilter",
|
|
1948
1948
|
openTag: (t) => {
|
|
1949
1949
|
const e = t.getParent();
|
|
@@ -1956,8 +1956,8 @@ var is = (t) => {
|
|
|
1956
1956
|
s && (o.operator = s.operator, o.param = s.param);
|
|
1957
1957
|
}
|
|
1958
1958
|
});
|
|
1959
|
-
let D = {},
|
|
1960
|
-
|
|
1959
|
+
let D = {}, _ = null;
|
|
1960
|
+
h.registerVisitor({
|
|
1961
1961
|
from: "sortState",
|
|
1962
1962
|
to: {},
|
|
1963
1963
|
openTag: (t) => {
|
|
@@ -1974,9 +1974,9 @@ var is = (t) => {
|
|
|
1974
1974
|
collation: "stroke" === n ? "stroke" : "pinyin"
|
|
1975
1975
|
}), t.getAttribute("columnSort", Do) && (s.axis = zt.Axis.Column);
|
|
1976
1976
|
const i = t.getAttribute("ref"), a = e.r;
|
|
1977
|
-
|
|
1977
|
+
_ = i && a ? Nt.fastStringToRange(i) : null, _ && (s.extent = { range: b(a, _) }), o.sort = s, t.setSource(e);
|
|
1978
1978
|
}
|
|
1979
|
-
}),
|
|
1979
|
+
}), h.registerVisitor({
|
|
1980
1980
|
from: "sortCondition",
|
|
1981
1981
|
to: {},
|
|
1982
1982
|
openTag: (t) => {
|
|
@@ -1990,12 +1990,12 @@ var is = (t) => {
|
|
|
1990
1990
|
let i = 0, a = null;
|
|
1991
1991
|
if (n) {
|
|
1992
1992
|
const t = Nt.fastStringToRange(n, ms), o = t.colStart, s = e.r, r = s.colStart;
|
|
1993
|
-
i = s ? o - r : o, s &&
|
|
1993
|
+
i = s ? o - r : o, s && _ && (a = Z(s, _, t));
|
|
1994
1994
|
}
|
|
1995
1995
|
s.extent && (s.extent.sorts ??= []).push(a);
|
|
1996
|
-
const l = { ...D }, c =
|
|
1996
|
+
const l = { ...D }, c = et(t.getAttribute("sortBy"));
|
|
1997
1997
|
c && (l.sortOn = c);
|
|
1998
|
-
const u =
|
|
1998
|
+
const u = d(t);
|
|
1999
1999
|
u && (l.style = u), t.copyToObject(l, "iconSet", $o), t.copyToObject(l, "customList", $o), l.reverse = t.getAttribute("descending", Do) ?? !1;
|
|
2000
2000
|
const h = {
|
|
2001
2001
|
index: i,
|
|
@@ -2004,42 +2004,42 @@ var is = (t) => {
|
|
|
2004
2004
|
r.push(h);
|
|
2005
2005
|
}
|
|
2006
2006
|
});
|
|
2007
|
-
const
|
|
2007
|
+
const V = (t) => {
|
|
2008
2008
|
v = t.getSource(), w = "topLeft", t.copyTo("topLeft", $o, "topLeftCell");
|
|
2009
|
-
const e =
|
|
2009
|
+
const e = E(t.getAttribute("defaultGridColor")), o = t.getAttribute("colorId");
|
|
2010
2010
|
null === o || e || (t.getSource().gridLineColor = "index" + parseFloat(o)), t.copyTo("showZeros", Do), t.copyTo("showFormulas", Do), t.copyTo("zoomScale", No), t.copyTo("viewMode", $o, "view");
|
|
2011
2011
|
const s = {};
|
|
2012
|
-
for (const [e, o] of
|
|
2012
|
+
for (const [e, o] of q) {
|
|
2013
2013
|
const r = t.getAttribute(o, No);
|
|
2014
2014
|
r && (s[e] = Math.min(400, Math.max(10, r)));
|
|
2015
2015
|
}
|
|
2016
2016
|
Object.keys(s).length > 0 && (t.getSource().zoomScales = s), t.copyTo("showRuler", Do), t.copyTo("showWhitespace", Do, "showWhiteSpace"), t.copyTo("windowProtection", Do), t.copyTo("showRowHeaders", Do, "showRowColHeaders"), t.copyTo("showColumnHeaders", Do, "showRowColHeaders"), t.copyTo("showRowGridlines", Do, "showGridLines"), t.copyTo("showColumnGridlines", Do, "showGridLines"), t.copyTo("rightToLeft", Do), t.copyTo("showOutlineSymbols", Do);
|
|
2017
2017
|
};
|
|
2018
|
-
|
|
2018
|
+
h.registerVisitor({
|
|
2019
2019
|
from: "sheetView",
|
|
2020
2020
|
to: "view",
|
|
2021
2021
|
openTag: (t) => {
|
|
2022
|
-
|
|
2022
|
+
V(t);
|
|
2023
2023
|
},
|
|
2024
2024
|
closeTag: () => {
|
|
2025
2025
|
v = null;
|
|
2026
2026
|
}
|
|
2027
|
-
}),
|
|
2027
|
+
}), h.registerVisitor({
|
|
2028
2028
|
from: "customSheetViews",
|
|
2029
2029
|
to: "customSheetViews",
|
|
2030
2030
|
openTag: (t) => {
|
|
2031
2031
|
t.setSource([]);
|
|
2032
2032
|
}
|
|
2033
|
-
}),
|
|
2033
|
+
}), h.registerVisitor({
|
|
2034
2034
|
from: "customSheetView",
|
|
2035
2035
|
to: [],
|
|
2036
2036
|
openTag: (t) => {
|
|
2037
|
-
|
|
2037
|
+
F = !0, V(t);
|
|
2038
2038
|
},
|
|
2039
2039
|
closeTag: () => {
|
|
2040
|
-
|
|
2040
|
+
F = !1, v = null;
|
|
2041
2041
|
}
|
|
2042
|
-
}),
|
|
2042
|
+
}), h.registerVisitor({
|
|
2043
2043
|
from: "selection",
|
|
2044
2044
|
to: null,
|
|
2045
2045
|
openTag: (t) => {
|
|
@@ -2058,7 +2058,7 @@ var is = (t) => {
|
|
|
2058
2058
|
const n = t.getAttribute("activeCellId", No);
|
|
2059
2059
|
null !== n && (r.rangeIndex = n), o && o !== e && (r.ranges = o.trim().split(/\s+/)), v.selection = r;
|
|
2060
2060
|
}
|
|
2061
|
-
}),
|
|
2061
|
+
}), h.registerVisitor({
|
|
2062
2062
|
from: "pane",
|
|
2063
2063
|
to: null,
|
|
2064
2064
|
openTag: (t) => {
|
|
@@ -2083,7 +2083,7 @@ var is = (t) => {
|
|
|
2083
2083
|
e.coords = Nt.cellToString(r);
|
|
2084
2084
|
}
|
|
2085
2085
|
}
|
|
2086
|
-
}),
|
|
2086
|
+
}), h.registerVisitor({
|
|
2087
2087
|
from: "sheetPr",
|
|
2088
2088
|
transparent: !0,
|
|
2089
2089
|
openTag: (t) => {
|
|
@@ -2094,7 +2094,7 @@ var is = (t) => {
|
|
|
2094
2094
|
const r = t.getAttribute("syncRef");
|
|
2095
2095
|
r && (s.anchor = r), Object.keys(s).length > 0 && (o.syncScroll = s);
|
|
2096
2096
|
}
|
|
2097
|
-
}),
|
|
2097
|
+
}), h.registerVisitor({
|
|
2098
2098
|
from: "tabColor",
|
|
2099
2099
|
to: null,
|
|
2100
2100
|
openTag: (t) => {
|
|
@@ -2102,15 +2102,15 @@ var is = (t) => {
|
|
|
2102
2102
|
s && (o.tabColor = s);
|
|
2103
2103
|
}
|
|
2104
2104
|
});
|
|
2105
|
-
let
|
|
2106
|
-
const
|
|
2107
|
-
|
|
2105
|
+
let F = !1;
|
|
2106
|
+
const H = () => o.pageLayout ??= {};
|
|
2107
|
+
h.registerVisitor({
|
|
2108
2108
|
from: "pageSetUpPr",
|
|
2109
2109
|
to: null,
|
|
2110
2110
|
openTag: (t) => {
|
|
2111
|
-
!0 === t.getAttribute("fitToPage", Do) && (
|
|
2111
|
+
!0 === t.getAttribute("fitToPage", Do) && (H().fitToPage = !0), !1 === t.getAttribute("autoPageBreaks", Do) && (H().hideAutoPageBreaks = !0);
|
|
2112
2112
|
}
|
|
2113
|
-
}),
|
|
2113
|
+
}), h.registerVisitor({
|
|
2114
2114
|
from: "outlinePr",
|
|
2115
2115
|
to: null,
|
|
2116
2116
|
openTag: (t) => {
|
|
@@ -2123,11 +2123,11 @@ var is = (t) => {
|
|
|
2123
2123
|
return "1" === o || "true" === o;
|
|
2124
2124
|
})("applyStyles") && (s.automaticStyles = !0), Object.keys(s).length > 0 && (o.outline = s);
|
|
2125
2125
|
}
|
|
2126
|
-
}),
|
|
2126
|
+
}), h.registerVisitor({
|
|
2127
2127
|
from: "pageMargins",
|
|
2128
2128
|
to: null,
|
|
2129
2129
|
openTag: (t) => {
|
|
2130
|
-
if (
|
|
2130
|
+
if (F) return;
|
|
2131
2131
|
const e = (e, o) => t.getAttribute(e, _o) ?? o, o = {
|
|
2132
2132
|
left: e("left", .7),
|
|
2133
2133
|
right: e("right", .7),
|
|
@@ -2136,14 +2136,14 @@ var is = (t) => {
|
|
|
2136
2136
|
header: e("header", .3),
|
|
2137
2137
|
footer: e("footer", .3)
|
|
2138
2138
|
};
|
|
2139
|
-
.7 === o.left && .7 === o.right && .75 === o.top && .75 === o.bottom && .3 === o.header && .3 === o.footer || (
|
|
2139
|
+
.7 === o.left && .7 === o.right && .75 === o.top && .75 === o.bottom && .3 === o.header && .3 === o.footer || (H().margins = o);
|
|
2140
2140
|
}
|
|
2141
|
-
}),
|
|
2141
|
+
}), h.registerVisitor({
|
|
2142
2142
|
from: "pageSetup",
|
|
2143
2143
|
to: null,
|
|
2144
2144
|
openTag: (t) => {
|
|
2145
|
-
if (
|
|
2146
|
-
const e =
|
|
2145
|
+
if (F) return;
|
|
2146
|
+
const e = H(), o = (e) => t.getAttribute(e, No) ?? void 0, r = (e) => t.getAttribute(e, Do), n = t.getAttribute("orientation");
|
|
2147
2147
|
"landscape" !== n && "portrait" !== n || (e.orientation = n);
|
|
2148
2148
|
for (const t of [
|
|
2149
2149
|
"paperSize",
|
|
@@ -2162,84 +2162,84 @@ var is = (t) => {
|
|
|
2162
2162
|
i && (e.paperHeight = i);
|
|
2163
2163
|
const a = t.getAttribute("paperWidth");
|
|
2164
2164
|
a && (e.paperWidth = a), "overThenDown" === t.getAttribute("pageOrder") && (e.printOrder = "overThenDown"), !0 === r("blackAndWhite") && (e.blackAndWhite = !0), !0 === r("draft") && (e.draftMode = !0), !0 === r("useFirstPageNumber") && (e.useFirstPageNumber = !0), !1 === r("usePrinterDefaults") && (e.ignorePrinterDefaults = !0);
|
|
2165
|
-
const l = t.getAttribute("cellComments"), c =
|
|
2165
|
+
const l = t.getAttribute("cellComments"), c = X.find(([t]) => t === l)?.[1];
|
|
2166
2166
|
c && (e.printComments = c);
|
|
2167
|
-
const u = t.getAttribute("errors"), h =
|
|
2167
|
+
const u = t.getAttribute("errors"), h = st.find(([t]) => t === u)?.[1];
|
|
2168
2168
|
h && (e.printErrors = h);
|
|
2169
2169
|
const d = t.getAttribute("r:id"), p = d ? s(d, "part") : null;
|
|
2170
2170
|
p && (e.printerSettings = p);
|
|
2171
2171
|
}
|
|
2172
|
-
}),
|
|
2172
|
+
}), h.registerVisitor({
|
|
2173
2173
|
from: "printOptions",
|
|
2174
2174
|
to: null,
|
|
2175
2175
|
openTag: (t) => {
|
|
2176
|
-
if (
|
|
2176
|
+
if (F) return;
|
|
2177
2177
|
const e = (e) => !0 === t.getAttribute(e, Do);
|
|
2178
|
-
e("horizontalCentered") && (
|
|
2178
|
+
e("horizontalCentered") && (H().centerHorizontally = !0), e("verticalCentered") && (H().centerVertically = !0), e("gridLines") && (H().printGridlines = !0), e("headings") && (H().printHeadings = !0);
|
|
2179
2179
|
}
|
|
2180
|
-
}),
|
|
2180
|
+
}), h.registerVisitor({
|
|
2181
2181
|
from: "headerFooter",
|
|
2182
2182
|
to: {},
|
|
2183
2183
|
openTag: (t) => {
|
|
2184
|
-
if (
|
|
2184
|
+
if (F) return;
|
|
2185
2185
|
const e = {}, o = (e) => t.getAttribute(e, Do);
|
|
2186
|
-
!0 === o("differentOddEven") && (e.differentOddEven = !0), !0 === o("differentFirst") && (e.differentFirst = !0), !1 === o("scaleWithDoc") && (e.ignoreSheetScale = !0), !1 === o("alignWithMargins") && (e.ignoreSheetMargins = !0), Object.keys(e).length > 0 && (
|
|
2186
|
+
!0 === o("differentOddEven") && (e.differentOddEven = !0), !0 === o("differentFirst") && (e.differentFirst = !0), !1 === o("scaleWithDoc") && (e.ignoreSheetScale = !0), !1 === o("alignWithMargins") && (e.ignoreSheetMargins = !0), Object.keys(e).length > 0 && (H().headerFooter = e);
|
|
2187
2187
|
}
|
|
2188
2188
|
});
|
|
2189
|
-
for (const t of dt)
|
|
2189
|
+
for (const t of dt) h.registerVisitor({
|
|
2190
2190
|
from: t,
|
|
2191
2191
|
to: {},
|
|
2192
2192
|
text: (e, o) => {
|
|
2193
|
-
if (
|
|
2194
|
-
const s =
|
|
2195
|
-
r[t] = (r[t] ?? "") +
|
|
2193
|
+
if (F) return;
|
|
2194
|
+
const s = H(), r = s.headerFooter ??= {};
|
|
2195
|
+
r[t] = (r[t] ?? "") + f(e);
|
|
2196
2196
|
}
|
|
2197
2197
|
});
|
|
2198
|
-
let
|
|
2199
|
-
for (const [t, e] of [["rowBreaks", "rowBreaks"], ["colBreaks", "columnBreaks"]])
|
|
2198
|
+
let U = "rowBreaks";
|
|
2199
|
+
for (const [t, e] of [["rowBreaks", "rowBreaks"], ["colBreaks", "columnBreaks"]]) h.registerVisitor({
|
|
2200
2200
|
from: t,
|
|
2201
2201
|
to: {},
|
|
2202
2202
|
openTag: () => {
|
|
2203
|
-
|
|
2203
|
+
U = e;
|
|
2204
2204
|
}
|
|
2205
2205
|
});
|
|
2206
|
-
|
|
2206
|
+
h.registerVisitor({
|
|
2207
2207
|
from: "brk",
|
|
2208
2208
|
to: null,
|
|
2209
2209
|
openTag: (t) => {
|
|
2210
|
-
if (
|
|
2210
|
+
if (F) return;
|
|
2211
2211
|
const e = t.getAttribute("id", No);
|
|
2212
2212
|
if (null == e) return;
|
|
2213
2213
|
const o = { index: e }, s = t.getAttribute("min", No);
|
|
2214
2214
|
null != s && (o.min = s);
|
|
2215
2215
|
const r = t.getAttribute("max", No);
|
|
2216
2216
|
null != r && (o.max = r), !0 !== t.getAttribute("man", Do) && (o.automatic = !0), !0 === t.getAttribute("pt", Do) && (o.pivot = !0);
|
|
2217
|
-
const n =
|
|
2218
|
-
(n[
|
|
2217
|
+
const n = H();
|
|
2218
|
+
(n[U] ??= []).push(o);
|
|
2219
2219
|
}
|
|
2220
|
-
}),
|
|
2220
|
+
}), h.registerVisitor({
|
|
2221
2221
|
from: "ignoredErrors",
|
|
2222
2222
|
transparent: !0
|
|
2223
|
-
}),
|
|
2223
|
+
}), h.registerVisitor({
|
|
2224
2224
|
from: "ignoredError",
|
|
2225
2225
|
to: null,
|
|
2226
2226
|
openTag: (t) => {
|
|
2227
2227
|
const e = t.getAttribute("sqref");
|
|
2228
2228
|
if (!e) return;
|
|
2229
2229
|
const s = [];
|
|
2230
|
-
for (const e of
|
|
2230
|
+
for (const e of l) !0 === t.getAttribute(e, Do) && s.push(e);
|
|
2231
2231
|
if (0 !== s.length) for (const t of e.trim().split(/\s+/)) (o.ignoredErrors ??= []).push({
|
|
2232
2232
|
r: t,
|
|
2233
2233
|
v: s
|
|
2234
2234
|
});
|
|
2235
2235
|
}
|
|
2236
|
-
}),
|
|
2236
|
+
}), h.registerVisitor({
|
|
2237
2237
|
from: "mergeCells",
|
|
2238
2238
|
to: "merges",
|
|
2239
2239
|
openTag: (t) => {
|
|
2240
2240
|
t.setSource([]);
|
|
2241
2241
|
}
|
|
2242
|
-
}),
|
|
2242
|
+
}), h.registerVisitor({
|
|
2243
2243
|
from: "dataValidations",
|
|
2244
2244
|
to: "validations",
|
|
2245
2245
|
openTag: (t) => {
|
|
@@ -2255,7 +2255,7 @@ var is = (t) => {
|
|
|
2255
2255
|
});
|
|
2256
2256
|
}
|
|
2257
2257
|
});
|
|
2258
|
-
const
|
|
2258
|
+
const J = {
|
|
2259
2259
|
from: "dataValidation",
|
|
2260
2260
|
to: [],
|
|
2261
2261
|
openTag: (t) => {
|
|
@@ -2274,25 +2274,25 @@ var is = (t) => {
|
|
|
2274
2274
|
closeTag: (t) => {
|
|
2275
2275
|
const e = t.getSource();
|
|
2276
2276
|
if (!e?.rule) return;
|
|
2277
|
-
const o =
|
|
2277
|
+
const o = ct(e.rule, a);
|
|
2278
2278
|
o && (t.getAttribute("allowBlank", Do) && (o.includeBlanks = !0), e.v.condition = o), delete e.rule;
|
|
2279
2279
|
}
|
|
2280
2280
|
};
|
|
2281
|
-
|
|
2281
|
+
h.registerVisitor(J), h.registerVisitor({
|
|
2282
2282
|
from: "formula1",
|
|
2283
2283
|
to: {},
|
|
2284
2284
|
text: (t, e) => {
|
|
2285
2285
|
const o = e.getParent().rule;
|
|
2286
|
-
o?.type && (o.formula1 =
|
|
2286
|
+
o?.type && (o.formula1 = K(x(t), o.type));
|
|
2287
2287
|
}
|
|
2288
|
-
}),
|
|
2288
|
+
}), h.registerVisitor({
|
|
2289
2289
|
from: "formula2",
|
|
2290
2290
|
to: {},
|
|
2291
2291
|
text: (t, e) => {
|
|
2292
2292
|
const o = e.getParent().rule;
|
|
2293
|
-
o?.type && (o.formula2 =
|
|
2293
|
+
o?.type && (o.formula2 = K(x(t), o.type));
|
|
2294
2294
|
}
|
|
2295
|
-
}),
|
|
2295
|
+
}), h.registerVisitor({
|
|
2296
2296
|
from: "picture",
|
|
2297
2297
|
to: "picture",
|
|
2298
2298
|
openTag: (t) => {
|
|
@@ -2302,7 +2302,7 @@ var is = (t) => {
|
|
|
2302
2302
|
t.getSource().resId = o;
|
|
2303
2303
|
}
|
|
2304
2304
|
});
|
|
2305
|
-
const
|
|
2305
|
+
const Q = {
|
|
2306
2306
|
from: "slicer",
|
|
2307
2307
|
to: {},
|
|
2308
2308
|
openTag: (t) => {
|
|
@@ -2314,7 +2314,7 @@ var is = (t) => {
|
|
|
2314
2314
|
for (const t of n) r.slicers[t] = o[t];
|
|
2315
2315
|
}
|
|
2316
2316
|
};
|
|
2317
|
-
|
|
2317
|
+
h.registerVisitor(Q);
|
|
2318
2318
|
const tt = {
|
|
2319
2319
|
from: "timelineRef",
|
|
2320
2320
|
to: {},
|
|
@@ -2325,7 +2325,7 @@ var is = (t) => {
|
|
|
2325
2325
|
r.slicers ??= {};
|
|
2326
2326
|
for (const t of Object.keys(o)) r.slicers[t] = o[t];
|
|
2327
2327
|
}
|
|
2328
|
-
},
|
|
2328
|
+
}, rt = (t, e) => ({
|
|
2329
2329
|
from: t,
|
|
2330
2330
|
to: {},
|
|
2331
2331
|
openTag: (t) => {
|
|
@@ -2349,14 +2349,14 @@ var is = (t) => {
|
|
|
2349
2349
|
0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
|
|
2350
2350
|
}
|
|
2351
2351
|
}), nt.set("dataValidation", {
|
|
2352
|
-
...
|
|
2352
|
+
...J,
|
|
2353
2353
|
closeTag: (t) => {
|
|
2354
|
-
|
|
2354
|
+
J.closeTag(t);
|
|
2355
2355
|
const e = t.getSource();
|
|
2356
2356
|
e && !e.r && (t.warn("x14 dataValidation with no xm:sqref was dropped."), t.setSource(void 0));
|
|
2357
2357
|
}
|
|
2358
2358
|
});
|
|
2359
|
-
const
|
|
2359
|
+
const at = (t) => ({
|
|
2360
2360
|
from: t,
|
|
2361
2361
|
to: {},
|
|
2362
2362
|
openTag: (e) => {
|
|
@@ -2366,18 +2366,18 @@ var is = (t) => {
|
|
|
2366
2366
|
});
|
|
2367
2367
|
}
|
|
2368
2368
|
});
|
|
2369
|
-
nt.set("formula1",
|
|
2369
|
+
nt.set("formula1", at("formula1")), nt.set("formula2", at("formula2")), nt.set("f", rt("f", (t, e) => {
|
|
2370
2370
|
const o = e.getParent(), s = o?.rule;
|
|
2371
|
-
s && (s[o.key] =
|
|
2372
|
-
})), nt.set("sqref",
|
|
2371
|
+
s && (s[o.key] = K(x(t), s.type));
|
|
2372
|
+
})), nt.set("sqref", rt("sqref", (t, e) => {
|
|
2373
2373
|
const o = e.getParent(), s = t.trim();
|
|
2374
2374
|
o && s && (o.r = s.split(/\s+/).join(","));
|
|
2375
2375
|
}));
|
|
2376
|
-
const
|
|
2377
|
-
|
|
2376
|
+
const ut = /* @__PURE__ */ new Map(), pt = [], gt = /* @__PURE__ */ new Map();
|
|
2377
|
+
gt.set("conditionalFormattings", {
|
|
2378
2378
|
from: "conditionalFormattings",
|
|
2379
2379
|
transparent: !0
|
|
2380
|
-
}),
|
|
2380
|
+
}), gt.set("conditionalFormatting", {
|
|
2381
2381
|
from: "conditionalFormatting",
|
|
2382
2382
|
to: {},
|
|
2383
2383
|
openTag: (t) => {
|
|
@@ -2387,10 +2387,10 @@ var is = (t) => {
|
|
|
2387
2387
|
const e = t.getSource(), o = e?.rules ?? [];
|
|
2388
2388
|
for (let t = 0; t < o.length; t++) {
|
|
2389
2389
|
const s = o[t];
|
|
2390
|
-
s.sqref = e.sqref, s.id ?
|
|
2390
|
+
s.sqref = e.sqref, s.id ? ut.set(s.id, s) : pt.push(s);
|
|
2391
2391
|
}
|
|
2392
2392
|
}
|
|
2393
|
-
}),
|
|
2393
|
+
}), gt.set("cfRule", {
|
|
2394
2394
|
from: "cfRule",
|
|
2395
2395
|
to: {},
|
|
2396
2396
|
openTag: (t) => {
|
|
@@ -2400,10 +2400,10 @@ var is = (t) => {
|
|
|
2400
2400
|
const e = t.getSource();
|
|
2401
2401
|
e && t.getParent()?.rules?.push(e);
|
|
2402
2402
|
}
|
|
2403
|
-
}),
|
|
2403
|
+
}), gt.set("sqref", rt("sqref", (t, e) => {
|
|
2404
2404
|
const o = e.getParent(), s = t.trim();
|
|
2405
2405
|
o && s && (o.sqref = s);
|
|
2406
|
-
})),
|
|
2406
|
+
})), gt.set("dataBar", {
|
|
2407
2407
|
from: "dataBar",
|
|
2408
2408
|
to: {},
|
|
2409
2409
|
openTag: (t) => {
|
|
@@ -2412,7 +2412,7 @@ var is = (t) => {
|
|
|
2412
2412
|
closeTag: (t) => {
|
|
2413
2413
|
t.getParent().dataBar = t.getSource();
|
|
2414
2414
|
}
|
|
2415
|
-
}),
|
|
2415
|
+
}), gt.set("iconSet", {
|
|
2416
2416
|
from: "iconSet",
|
|
2417
2417
|
to: {},
|
|
2418
2418
|
openTag: (t) => {
|
|
@@ -2423,12 +2423,12 @@ var is = (t) => {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
});
|
|
2425
2425
|
const mt = /* @__PURE__ */ new Map();
|
|
2426
|
-
mt.set("f",
|
|
2426
|
+
mt.set("f", rt("f", (t, e) => {
|
|
2427
2427
|
const o = e.getParent();
|
|
2428
2428
|
if (!o) return;
|
|
2429
2429
|
const s = t.trim(), r = Number(s);
|
|
2430
|
-
o.value = s.length > 0 && Number.isFinite(r) ? r :
|
|
2431
|
-
})),
|
|
2430
|
+
o.value = s.length > 0 && Number.isFinite(r) ? r : x(t);
|
|
2431
|
+
})), gt.set("cfvo", {
|
|
2432
2432
|
from: "cfvo",
|
|
2433
2433
|
to: {},
|
|
2434
2434
|
scope: () => mt,
|
|
@@ -2438,10 +2438,10 @@ var is = (t) => {
|
|
|
2438
2438
|
const o = t.getSource();
|
|
2439
2439
|
e.conditions.push(o), t.copyTo("type", $o), !1 === t.getAttribute("gte", Do) && (o.exclusive = !0);
|
|
2440
2440
|
}
|
|
2441
|
-
}),
|
|
2441
|
+
}), gt.set("f", rt("f", (t, e) => {
|
|
2442
2442
|
const o = e.getParent();
|
|
2443
|
-
o && (o.formulas ??= []).push(
|
|
2444
|
-
})),
|
|
2443
|
+
o && (o.formulas ??= []).push(x(t));
|
|
2444
|
+
})), gt.set("dxf", {
|
|
2445
2445
|
from: "dxf",
|
|
2446
2446
|
to: {},
|
|
2447
2447
|
raw: !0,
|
|
@@ -2461,7 +2461,7 @@ var is = (t) => {
|
|
|
2461
2461
|
s && (o.getParent()[t] = s);
|
|
2462
2462
|
}
|
|
2463
2463
|
});
|
|
2464
|
-
|
|
2464
|
+
gt.set("borderColor", bt("borderColor")), gt.set("negativeFillColor", bt("negativeFillColor")), gt.set("negativeBorderColor", bt("negativeBorderColor")), gt.set("axisColor", bt("axisColor")), gt.set("cfIcon", {
|
|
2465
2465
|
from: "cfIcon",
|
|
2466
2466
|
to: {},
|
|
2467
2467
|
openTag: (t) => {
|
|
@@ -2475,22 +2475,22 @@ var is = (t) => {
|
|
|
2475
2475
|
}
|
|
2476
2476
|
});
|
|
2477
2477
|
const xt = /* @__PURE__ */ new Map();
|
|
2478
|
-
xt.set("id",
|
|
2478
|
+
xt.set("id", rt("id", (t, e) => {
|
|
2479
2479
|
const o = e.getParent(), s = t.trim();
|
|
2480
2480
|
o && s && (o.x14Id = s);
|
|
2481
2481
|
}));
|
|
2482
|
-
const
|
|
2483
|
-
|
|
2482
|
+
const yt = /* @__PURE__ */ new Map();
|
|
2483
|
+
yt.set("slicerList", {
|
|
2484
2484
|
from: "slicerList",
|
|
2485
2485
|
transparent: !0
|
|
2486
|
-
}),
|
|
2487
|
-
const
|
|
2488
|
-
|
|
2486
|
+
}), yt.set("slicer", Q);
|
|
2487
|
+
const Tt = /* @__PURE__ */ new Map();
|
|
2488
|
+
Tt.set("timelineRefs", {
|
|
2489
2489
|
from: "timelineRefs",
|
|
2490
2490
|
transparent: !0
|
|
2491
|
-
}),
|
|
2492
|
-
const
|
|
2493
|
-
|
|
2491
|
+
}), Tt.set("timelineRef", tt);
|
|
2492
|
+
const Ct = /* @__PURE__ */ new Map();
|
|
2493
|
+
Ct.set("sparklineGroups", {
|
|
2494
2494
|
from: "sparklineGroups",
|
|
2495
2495
|
to: "sparklineGroups",
|
|
2496
2496
|
openTag: (t) => {
|
|
@@ -2500,7 +2500,7 @@ var is = (t) => {
|
|
|
2500
2500
|
closeTag: (t) => {
|
|
2501
2501
|
0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
|
|
2502
2502
|
}
|
|
2503
|
-
}),
|
|
2503
|
+
}), Ct.set("sparklineGroup", {
|
|
2504
2504
|
from: "sparklineGroup",
|
|
2505
2505
|
to: [],
|
|
2506
2506
|
openTag: (e) => {
|
|
@@ -2515,11 +2515,11 @@ var is = (t) => {
|
|
|
2515
2515
|
});
|
|
2516
2516
|
},
|
|
2517
2517
|
closeTag: (t) => {
|
|
2518
|
-
const e = t.getSource(), o =
|
|
2518
|
+
const e = t.getSource(), o = it(e.properties, e.entries);
|
|
2519
2519
|
o || t.warn("A sparkline group with no sparklines was dropped.", { onceKey: "xlsx.sheet.sparklineGroup.empty" }), t.setSource(o ?? void 0);
|
|
2520
2520
|
}
|
|
2521
2521
|
});
|
|
2522
|
-
for (const t of
|
|
2522
|
+
for (const t of N) Ct.set(t, {
|
|
2523
2523
|
from: t,
|
|
2524
2524
|
to: {},
|
|
2525
2525
|
openTag: (o) => {
|
|
@@ -2527,10 +2527,10 @@ var is = (t) => {
|
|
|
2527
2527
|
s && (o.getParent().properties[t] = s);
|
|
2528
2528
|
}
|
|
2529
2529
|
});
|
|
2530
|
-
|
|
2530
|
+
Ct.set("sparklines", {
|
|
2531
2531
|
from: "sparklines",
|
|
2532
2532
|
transparent: !0
|
|
2533
|
-
}),
|
|
2533
|
+
}), Ct.set("sparkline", {
|
|
2534
2534
|
from: "sparkline",
|
|
2535
2535
|
to: {},
|
|
2536
2536
|
openTag: (t) => {
|
|
@@ -2546,54 +2546,54 @@ var is = (t) => {
|
|
|
2546
2546
|
data: e.data ?? ""
|
|
2547
2547
|
}) : t.warn("A sparkline with no location was dropped.", { onceKey: "xlsx.sheet.sparkline.incomplete" });
|
|
2548
2548
|
}
|
|
2549
|
-
}),
|
|
2549
|
+
}), Ct.set("f", rt("f", (t, e) => {
|
|
2550
2550
|
const o = e.getParent(), s = t.trim();
|
|
2551
2551
|
o && s && (o.isSparkline ? o.data = s : o.properties.dateRange = s);
|
|
2552
|
-
})),
|
|
2552
|
+
})), Ct.set("sqref", rt("sqref", (t, e) => {
|
|
2553
2553
|
const o = e.getParent();
|
|
2554
2554
|
o?.isSparkline && (o.sqref = t);
|
|
2555
2555
|
}));
|
|
2556
|
-
const
|
|
2557
|
-
[
|
|
2558
|
-
[
|
|
2559
|
-
[
|
|
2560
|
-
[
|
|
2561
|
-
[
|
|
2562
|
-
[
|
|
2563
|
-
[
|
|
2564
|
-
[
|
|
2565
|
-
[
|
|
2556
|
+
const At = /* @__PURE__ */ new Map([
|
|
2557
|
+
[wt(ot), Ct],
|
|
2558
|
+
[wt(L), nt],
|
|
2559
|
+
[wt(lt), gt],
|
|
2560
|
+
[wt(ft), gt],
|
|
2561
|
+
[wt(G), xt],
|
|
2562
|
+
[wt(z), yt],
|
|
2563
|
+
[wt(ht), yt],
|
|
2564
|
+
[wt(R), Tt],
|
|
2565
|
+
[wt(Y), O]
|
|
2566
2566
|
]), Et = /* @__PURE__ */ new Set();
|
|
2567
|
-
|
|
2567
|
+
h.registerVisitor({
|
|
2568
2568
|
from: "extLst",
|
|
2569
2569
|
transparent: !0
|
|
2570
|
-
}),
|
|
2570
|
+
}), h.registerVisitor({
|
|
2571
2571
|
from: "ext",
|
|
2572
2572
|
transparent: !0,
|
|
2573
2573
|
scope: (t) => {
|
|
2574
|
-
const e = t.getAttribute("uri"), o =
|
|
2574
|
+
const e = t.getAttribute("uri"), o = wt(e), s = At.get(o);
|
|
2575
2575
|
if (s) return s;
|
|
2576
|
-
if (!
|
|
2576
|
+
if (!St.has(o) && !Et.has(o)) {
|
|
2577
2577
|
Et.add(o);
|
|
2578
|
-
const s =
|
|
2578
|
+
const s = S[o];
|
|
2579
2579
|
t.warn(s ? `Extension content '${s}' (${e}) is not read; it will be lost on resave.` : `Unknown extension content (uri ${e}) is not read; it will be lost on resave.`);
|
|
2580
2580
|
}
|
|
2581
2581
|
return null;
|
|
2582
2582
|
}
|
|
2583
|
-
}),
|
|
2583
|
+
}), h.registerVisitor({
|
|
2584
2584
|
from: "mergeCell",
|
|
2585
2585
|
to: [],
|
|
2586
2586
|
openTag: (t) => {
|
|
2587
2587
|
const e = t.getAttribute("ref");
|
|
2588
2588
|
t.setSource(e);
|
|
2589
2589
|
}
|
|
2590
|
-
}),
|
|
2590
|
+
}), h.registerVisitor({
|
|
2591
2591
|
from: "hyperlinks",
|
|
2592
2592
|
to: "hyperlinks",
|
|
2593
2593
|
openTag: (t) => {
|
|
2594
2594
|
t.setSource([]);
|
|
2595
2595
|
}
|
|
2596
|
-
}),
|
|
2596
|
+
}), h.registerVisitor({
|
|
2597
2597
|
from: "hyperlink",
|
|
2598
2598
|
to: [],
|
|
2599
2599
|
openTag: (t) => {
|
|
@@ -2612,7 +2612,7 @@ var is = (t) => {
|
|
|
2612
2612
|
v: i
|
|
2613
2613
|
});
|
|
2614
2614
|
}
|
|
2615
|
-
}),
|
|
2615
|
+
}), h.registerVisitor({
|
|
2616
2616
|
from: "drawing",
|
|
2617
2617
|
to: "movables",
|
|
2618
2618
|
openTag: (t) => {
|
|
@@ -2621,13 +2621,13 @@ var is = (t) => {
|
|
|
2621
2621
|
const o = s(e);
|
|
2622
2622
|
o ? t.setSource(o.movables) : t.warn("A drawing part is missing; its shapes were not imported.", { onceKey: "xlsx.sheet.drawing.missing" });
|
|
2623
2623
|
}
|
|
2624
|
-
}),
|
|
2624
|
+
}), h.registerVisitor({
|
|
2625
2625
|
from: "legacyDrawing",
|
|
2626
2626
|
to: "legacyDrawing",
|
|
2627
2627
|
openTag: (t) => {
|
|
2628
2628
|
t.setSource(s(t.getAttribute("r:id"), "legacyDrawing") ?? void 0);
|
|
2629
2629
|
}
|
|
2630
|
-
}),
|
|
2630
|
+
}), h.registerVisitor({
|
|
2631
2631
|
from: "legacyDrawingHF",
|
|
2632
2632
|
to: "legacyDrawingHF",
|
|
2633
2633
|
openTag: (t) => {
|
|
@@ -2689,7 +2689,7 @@ var is = (t) => {
|
|
|
2689
2689
|
const s = e[t];
|
|
2690
2690
|
o[t] = "string" == typeof s ? s : s?.value ?? "";
|
|
2691
2691
|
}
|
|
2692
|
-
|
|
2692
|
+
$(o, It.control);
|
|
2693
2693
|
},
|
|
2694
2694
|
closeTag: (t) => {
|
|
2695
2695
|
if (!It) return;
|
|
@@ -2714,23 +2714,23 @@ var is = (t) => {
|
|
|
2714
2714
|
transparent: !0,
|
|
2715
2715
|
scope: () => Ot
|
|
2716
2716
|
};
|
|
2717
|
-
|
|
2718
|
-
const
|
|
2717
|
+
h.registerVisitor($t);
|
|
2718
|
+
const Rt = /* @__PURE__ */ new Map([
|
|
2719
2719
|
["Choice", _t],
|
|
2720
2720
|
["Fallback", Dt],
|
|
2721
2721
|
["controls", $t]
|
|
2722
2722
|
]);
|
|
2723
|
-
|
|
2723
|
+
h.registerVisitor({
|
|
2724
2724
|
from: "AlternateContent",
|
|
2725
2725
|
transparent: !0,
|
|
2726
|
-
scope: () =>
|
|
2727
|
-
}),
|
|
2726
|
+
scope: () => Rt
|
|
2727
|
+
}), h.registerVisitor({
|
|
2728
2728
|
from: "tableParts",
|
|
2729
2729
|
to: "tables",
|
|
2730
2730
|
openTag: (t) => {
|
|
2731
2731
|
t.setSource([]);
|
|
2732
2732
|
}
|
|
2733
|
-
}),
|
|
2733
|
+
}), h.registerVisitor({
|
|
2734
2734
|
from: "tablePart",
|
|
2735
2735
|
to: [],
|
|
2736
2736
|
openTag: (t) => {
|
|
@@ -2740,8 +2740,8 @@ var is = (t) => {
|
|
|
2740
2740
|
o ? t.setSource(o) : t.warn("A table part is missing; the table was not imported.", { onceKey: "xlsx.sheet.table.missing" });
|
|
2741
2741
|
}
|
|
2742
2742
|
});
|
|
2743
|
-
const
|
|
2744
|
-
e.conditions?.length &&
|
|
2743
|
+
const Mt = (t, e) => {
|
|
2744
|
+
e.conditions?.length && C(t, k(e)), T(t, e), !1 === e.gradient ? t.solidFill = !0 : delete t.solidFill, e.border && e.borderColor && (t.borderColor = e.borderColor), !e.negativeBarColorSameAsPositive && e.negativeFillColor && (t.negativeFillColor = e.negativeFillColor), !(e.negativeBarBorderColorSameAsPositive ?? 1) && e.negativeBorderColor && (t.negativeBorderColor = e.negativeBorderColor), e.axisColor && (t.axisColor = e.axisColor), "middle" !== e.axisPosition && "none" !== e.axisPosition || (t.axisPosition = e.axisPosition), "leftToRight" !== e.direction && "rightToLeft" !== e.direction || (t.direction = e.direction);
|
|
2745
2745
|
}, Vt = (t, e) => {
|
|
2746
2746
|
e.conditions?.length && (t.stops = k(e)), e.iconSet && e.iconSet !== t.iconSet && (t.iconSet = e.iconSet), e.icons?.length && (t.icon = e.icons), void 0 !== e.reverse && (t.reverse = e.reverse), void 0 !== e.showValue && (t.showValue = e.showValue);
|
|
2747
2747
|
}, Lt = (t) => {
|
|
@@ -2759,7 +2759,7 @@ var is = (t) => {
|
|
|
2759
2759
|
priority: t.priority
|
|
2760
2760
|
};
|
|
2761
2761
|
}
|
|
2762
|
-
const o =
|
|
2762
|
+
const o = j(t, a);
|
|
2763
2763
|
if (!o) return null;
|
|
2764
2764
|
const s = { condition: o };
|
|
2765
2765
|
return t.style && (s.style = t.style), t.stopIfTrue && (s.stopIfTrue = !0), {
|
|
@@ -2768,7 +2768,7 @@ var is = (t) => {
|
|
|
2768
2768
|
priority: t.priority
|
|
2769
2769
|
};
|
|
2770
2770
|
};
|
|
2771
|
-
|
|
2771
|
+
h.registerVisitor({
|
|
2772
2772
|
from: "worksheet",
|
|
2773
2773
|
to: {},
|
|
2774
2774
|
openTag: (t) => {},
|
|
@@ -2779,13 +2779,13 @@ var is = (t) => {
|
|
|
2779
2779
|
const e = o[t], s = e.x14Id;
|
|
2780
2780
|
if (!s) continue;
|
|
2781
2781
|
delete e.x14Id;
|
|
2782
|
-
const r =
|
|
2782
|
+
const r = ut.get(s);
|
|
2783
2783
|
if (!r) continue;
|
|
2784
|
-
|
|
2784
|
+
ut.delete(s);
|
|
2785
2785
|
const n = e.v?.scale;
|
|
2786
|
-
r.dataBar && n?.type === Ft.ScaleType.DataBar ?
|
|
2786
|
+
r.dataBar && n?.type === Ft.ScaleType.DataBar ? Mt(n, r.dataBar) : r.iconSet && n?.type === Ft.ScaleType.IconSet && Vt(n, r.iconSet);
|
|
2787
2787
|
}
|
|
2788
|
-
const s = [...
|
|
2788
|
+
const s = [...ut.values(), ...pt], r = /* @__PURE__ */ new Set();
|
|
2789
2789
|
let n = 0;
|
|
2790
2790
|
for (let t = 0; t < s.length; t++) {
|
|
2791
2791
|
const i = Lt(s[t]);
|
|
@@ -2800,7 +2800,7 @@ var is = (t) => {
|
|
|
2800
2800
|
for (let t = 0; t < o.length; t++) delete o[t].priority;
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
|
-
}),
|
|
2803
|
+
}), h.registerVisitor({
|
|
2804
2804
|
from: "customProperties",
|
|
2805
2805
|
to: "customProperties",
|
|
2806
2806
|
openTag: (t) => {
|
|
@@ -2810,7 +2810,7 @@ var is = (t) => {
|
|
|
2810
2810
|
const e = t.getSource();
|
|
2811
2811
|
if (e.length > 0) t.getParent().customProperties = e;
|
|
2812
2812
|
}
|
|
2813
|
-
}),
|
|
2813
|
+
}), h.registerVisitor({
|
|
2814
2814
|
from: "customPr",
|
|
2815
2815
|
to: {},
|
|
2816
2816
|
openTag: (t) => {
|
|
@@ -2821,26 +2821,26 @@ var is = (t) => {
|
|
|
2821
2821
|
const r = s(o, "resource"), n = t.getSource();
|
|
2822
2822
|
n.resId = r, e.push(n);
|
|
2823
2823
|
}
|
|
2824
|
-
}),
|
|
2824
|
+
}), h.registerVisitor({
|
|
2825
2825
|
from: "sheetProtection",
|
|
2826
2826
|
to: "protection",
|
|
2827
2827
|
openTag: (t) => {
|
|
2828
2828
|
const e = t.getSource();
|
|
2829
|
-
for (const o of
|
|
2829
|
+
for (const o of M) {
|
|
2830
2830
|
const s = t.hasAttribute(o.attribute) ? t.getAttribute(o.attribute) : null;
|
|
2831
|
-
e[o.key] =
|
|
2831
|
+
e[o.key] = vt(o, s);
|
|
2832
2832
|
}
|
|
2833
2833
|
if (e.sheet) return;
|
|
2834
2834
|
const o = {};
|
|
2835
2835
|
if (t.copyToObject(o, "hash", $o, "hashValue"), t.copyToObject(o, "algorithm", $o, "algorithmName"), t.copyToObject(o, "salt", $o, "saltValue"), t.copyToObject(o, "spinCount", No), t.copyToObject(o, "legacyHash", $o, "password"), Object.keys(o).length > 0) t.getSource().password = o;
|
|
2836
2836
|
}
|
|
2837
|
-
}),
|
|
2837
|
+
}), h.registerVisitor({
|
|
2838
2838
|
from: "protectedRanges",
|
|
2839
2839
|
to: "protectedRanges",
|
|
2840
2840
|
openTag: (t) => {
|
|
2841
2841
|
t.setSource([]);
|
|
2842
2842
|
}
|
|
2843
|
-
}),
|
|
2843
|
+
}), h.registerVisitor({
|
|
2844
2844
|
from: "protectedRange",
|
|
2845
2845
|
to: [],
|
|
2846
2846
|
openTag: (t) => {
|
|
@@ -2858,7 +2858,7 @@ var is = (t) => {
|
|
|
2858
2858
|
const e = t.getSource();
|
|
2859
2859
|
e?.r && e.v.name || t.setSource(void 0);
|
|
2860
2860
|
}
|
|
2861
|
-
}),
|
|
2861
|
+
}), h.registerVisitor({
|
|
2862
2862
|
from: "sheetFormatPr",
|
|
2863
2863
|
to: "sheetFormatPr",
|
|
2864
2864
|
openTag: (t) => {
|
|
@@ -2866,15 +2866,15 @@ var is = (t) => {
|
|
|
2866
2866
|
const e = t.getAttribute("customHeight");
|
|
2867
2867
|
"1" !== e && "true" !== e || t.copyToObject(o, "defaultRowSize", _o, "defaultRowHeight");
|
|
2868
2868
|
const s = t.getAttribute("baseColWidth", No);
|
|
2869
|
-
s && 8 !== s && (o.baseColSize = s),
|
|
2869
|
+
s && 8 !== s && (o.baseColSize = s), p = !!t.getAttribute("zeroHeight", Do);
|
|
2870
2870
|
}
|
|
2871
|
-
}),
|
|
2871
|
+
}), h.registerVisitor({
|
|
2872
2872
|
from: "cols",
|
|
2873
2873
|
to: "cols",
|
|
2874
2874
|
openTag: (t) => {
|
|
2875
2875
|
t.setSource([]);
|
|
2876
2876
|
}
|
|
2877
|
-
}),
|
|
2877
|
+
}), h.registerVisitor({
|
|
2878
2878
|
from: "col",
|
|
2879
2879
|
to: [],
|
|
2880
2880
|
openTag: (t) => {
|
|
@@ -2883,7 +2883,7 @@ var is = (t) => {
|
|
|
2883
2883
|
const i = {};
|
|
2884
2884
|
e.v = i, t.copyToObject(i, "sz", _o, "width"), t.copyToObject(i, "csz", Do, "customWidth"), t.copyToObject(i, "h", Do, "hidden"), t.copyToObject(i, "l", No, "outlineLevel"), t.copyToObject(i, "cl", Do, "collapsed"), t.getAttribute("bestFit", Do) && (i.bf = !0), t.copyToObject(i, "s", No, "style");
|
|
2885
2885
|
}
|
|
2886
|
-
}),
|
|
2886
|
+
}), h.registerVisitor({
|
|
2887
2887
|
from: "oleObjects",
|
|
2888
2888
|
to: null,
|
|
2889
2889
|
openTag: (t) => {
|
|
@@ -2895,7 +2895,7 @@ var is = (t) => {
|
|
|
2895
2895
|
const e = t.indexOf(":");
|
|
2896
2896
|
return -1 === e ? t : t.slice(e + 1);
|
|
2897
2897
|
}, Gt = new os();
|
|
2898
|
-
return xs(
|
|
2898
|
+
return xs(y, o, h.createEventHandler(o, i, a), a, c, {
|
|
2899
2899
|
onOpenTag: (t) => {
|
|
2900
2900
|
jt = !0;
|
|
2901
2901
|
const e = Ut(t.name);
|
|
@@ -2912,17 +2912,17 @@ var is = (t) => {
|
|
|
2912
2912
|
if (!jt) return;
|
|
2913
2913
|
const t = Gt.take();
|
|
2914
2914
|
jt = !1, Ht = !1, Wt = 0;
|
|
2915
|
-
const e =
|
|
2915
|
+
const e = f(Xt);
|
|
2916
2916
|
return Xt = "", qt = e, t ? {
|
|
2917
2917
|
t: "r",
|
|
2918
2918
|
v: {
|
|
2919
2919
|
type: "richText",
|
|
2920
|
-
data: { runs: ss(t,
|
|
2920
|
+
data: { runs: ss(t, u?.get(hs)) }
|
|
2921
2921
|
}
|
|
2922
2922
|
} : r(e);
|
|
2923
2923
|
},
|
|
2924
2924
|
onError: (t) => {}
|
|
2925
|
-
},
|
|
2925
|
+
}, u, r, () => p, () => qt);
|
|
2926
2926
|
}, ps = class {
|
|
2927
2927
|
static {
|
|
2928
2928
|
this.Collapsed = 1;
|
|
@@ -2962,13 +2962,13 @@ var is = (t) => {
|
|
|
2962
2962
|
rowStart: 0,
|
|
2963
2963
|
rowEnd: 0
|
|
2964
2964
|
}, bs = (t) => "1" === t || "true" === t, xs = (t, e, o, s, r, n, i, a, l, c) => {
|
|
2965
|
-
let
|
|
2965
|
+
let h = !1;
|
|
2966
2966
|
const d = [], p = i?.get(us), f = i?.get(hs), g = /* @__PURE__ */ new Map();
|
|
2967
|
-
let m = !1, b = [], x = !1, y = null, v = null,
|
|
2967
|
+
let m = !1, b = [], x = !1, y = null, v = null, T = null, S = null, C = null, k = null;
|
|
2968
2968
|
const A = i?.get("richData") ?? $t.EmptyArray;
|
|
2969
2969
|
let E = null, I = !1;
|
|
2970
|
-
const P = Nt.normalizeA1ToR1C1, O =
|
|
2971
|
-
let $ = !1,
|
|
2970
|
+
const P = Nt.normalizeA1ToR1C1, O = Rt.createConflatingRanges(), D = /* @__PURE__ */ new Map(), N = [], _ = [];
|
|
2971
|
+
let $ = !1, R = !1, M = null;
|
|
2972
2972
|
const V = (t) => {
|
|
2973
2973
|
const e = (i?.get("metadata"))?.values;
|
|
2974
2974
|
if (!e) return;
|
|
@@ -2978,7 +2978,7 @@ var is = (t) => {
|
|
|
2978
2978
|
return void 0 !== s?.richValueIndex ? A[s.richValueIndex] : void 0;
|
|
2979
2979
|
};
|
|
2980
2980
|
let L = !1;
|
|
2981
|
-
const j =
|
|
2981
|
+
const j = Rt.createConflatingRanges();
|
|
2982
2982
|
let B, F = !1, H = -1, W = -1, z = null, X = null;
|
|
2983
2983
|
const q = (t) => ({
|
|
2984
2984
|
t: "r",
|
|
@@ -2992,11 +2992,11 @@ var is = (t) => {
|
|
|
2992
2992
|
});
|
|
2993
2993
|
let U = null;
|
|
2994
2994
|
const G = [];
|
|
2995
|
-
let K = null, J = -2, Z = 0, Q = "", Y = "", tt = "", et = "", ot = "", st = "", rt = "", nt = "", it = "", at = "", lt = "", ct = "", ut = "", ht = "", dt = !0, pt = null, ft = !1, gt = !1, mt = !1, bt = null,
|
|
2996
|
-
const
|
|
2995
|
+
let K = null, J = -2, Z = 0, Q = "", Y = "", tt = "", et = "", ot = "", st = "", rt = "", nt = "", it = "", at = "", lt = "", ct = "", ut = "", ht = "", dt = !0, pt = null, ft = !1, gt = !1, mt = !1, bt = null, yt = 0;
|
|
2996
|
+
const vt = (t) => {
|
|
2997
2997
|
let s = t.name;
|
|
2998
2998
|
const a = s.indexOf(":");
|
|
2999
|
-
if (-1 !== a && (s = s.slice(a + 1)),
|
|
2999
|
+
if (-1 !== a && (s = s.slice(a + 1)), yt++, yt % 196608 == 0 && r?.(yt), X) {
|
|
3000
3000
|
const e = t.attributes;
|
|
3001
3001
|
switch (s) {
|
|
3002
3002
|
case "v":
|
|
@@ -3011,7 +3011,7 @@ var is = (t) => {
|
|
|
3011
3011
|
v = e.ref, y = t;
|
|
3012
3012
|
break;
|
|
3013
3013
|
case "array":
|
|
3014
|
-
v = e.ref,
|
|
3014
|
+
v = e.ref, M = v;
|
|
3015
3015
|
break;
|
|
3016
3016
|
case "dataTable": {
|
|
3017
3017
|
const t = ((t, e, o) => {
|
|
@@ -3048,7 +3048,7 @@ var is = (t) => {
|
|
|
3048
3048
|
F && !x && n?.onOpenTag?.(t);
|
|
3049
3049
|
return;
|
|
3050
3050
|
}
|
|
3051
|
-
if (
|
|
3051
|
+
if (h) {
|
|
3052
3052
|
if ("c" === s) {
|
|
3053
3053
|
X = t, B = void 0;
|
|
3054
3054
|
const e = t.attributes, o = e.r;
|
|
@@ -3062,7 +3062,7 @@ var is = (t) => {
|
|
|
3062
3062
|
colEnd: W,
|
|
3063
3063
|
rowEnd: H,
|
|
3064
3064
|
value: r
|
|
3065
|
-
}, b.push(pt))),
|
|
3065
|
+
}, b.push(pt))), M = null, R = !1, I = !1;
|
|
3066
3066
|
const n = e.cm;
|
|
3067
3067
|
$ = void 0 !== n && ((t) => {
|
|
3068
3068
|
const e = (i?.get("metadata"))?.cells;
|
|
@@ -3073,18 +3073,18 @@ var is = (t) => {
|
|
|
3073
3073
|
const a = e.vm;
|
|
3074
3074
|
if (void 0 !== a) {
|
|
3075
3075
|
const t = V(a);
|
|
3076
|
-
if (
|
|
3076
|
+
if (Mt.isError(t)) {
|
|
3077
3077
|
const e = t.getCode();
|
|
3078
3078
|
z = {
|
|
3079
3079
|
t: "e",
|
|
3080
3080
|
v: e
|
|
3081
|
-
}, $ && e ===
|
|
3081
|
+
}, $ && e === Mt.Code.Spill && (R = !0);
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
3085
|
} else {
|
|
3086
3086
|
if (gt && "row" === s) {
|
|
3087
|
-
|
|
3087
|
+
h = !0;
|
|
3088
3088
|
const e = t.attributes.r;
|
|
3089
3089
|
if (H = void 0 !== e ? parseInt(e) - 1 : H + 1, W = -1, l?.()) {
|
|
3090
3090
|
const t = d[d.length - 1];
|
|
@@ -3131,7 +3131,7 @@ var is = (t) => {
|
|
|
3131
3131
|
if (0 !== e || t.slice(s).trim().length > 0) return;
|
|
3132
3132
|
const r = /^HYPERLINK\(\s*"((?:[^"]|"")*)"\s*[,)]/i.exec(t);
|
|
3133
3133
|
return r ? r[1].replace(/""/g, "\"") : null;
|
|
3134
|
-
})(S[2]), O.append(H, W, S), L && j.append(H, W)), null !==
|
|
3134
|
+
})(S[2]), O.append(H, W, S), L && j.append(H, W)), null !== M && N.push([M, $ ? R ? "error" : "dynamic" : "fixed"]), x = !1, S = null, y = null, v = null, m = !1, L = !1, M = null, $ = !1, R = !1), X) {
|
|
3135
3135
|
const o = s.indexOf(":");
|
|
3136
3136
|
if (-1 !== o && (s = s.slice(o + 1)), F) if ("is" === s || "v" === s) {
|
|
3137
3137
|
const e = n?.onEnd?.();
|
|
@@ -3140,7 +3140,7 @@ var is = (t) => {
|
|
|
3140
3140
|
m && (m = !1), "c" === s && (X = null, F = !1);
|
|
3141
3141
|
return;
|
|
3142
3142
|
}
|
|
3143
|
-
if (
|
|
3143
|
+
if (h) return h = !1, void (pt = null);
|
|
3144
3144
|
o?.onCloseTag?.(e);
|
|
3145
3145
|
}, Tt = (e) => {
|
|
3146
3146
|
const r = e.trim();
|
|
@@ -3202,7 +3202,7 @@ var is = (t) => {
|
|
|
3202
3202
|
const t = X.attributes.vm;
|
|
3203
3203
|
if (void 0 !== t) {
|
|
3204
3204
|
const e = V(t);
|
|
3205
|
-
if (
|
|
3205
|
+
if (Mt.isError(e)) {
|
|
3206
3206
|
z = {
|
|
3207
3207
|
t: "e",
|
|
3208
3208
|
v: e.getCode()
|
|
@@ -3218,7 +3218,7 @@ var is = (t) => {
|
|
|
3218
3218
|
}
|
|
3219
3219
|
}
|
|
3220
3220
|
}
|
|
3221
|
-
const t =
|
|
3221
|
+
const t = Mt.getBuiltInByLabel(r);
|
|
3222
3222
|
t ? z = {
|
|
3223
3223
|
t: "e",
|
|
3224
3224
|
v: t.getCode()
|
|
@@ -3238,8 +3238,8 @@ var is = (t) => {
|
|
|
3238
3238
|
else {
|
|
3239
3239
|
if (S = D.get(y) ?? null, !S) {
|
|
3240
3240
|
const t = [];
|
|
3241
|
-
|
|
3242
|
-
|
|
3241
|
+
T = P(r, H, W, t), S = [
|
|
3242
|
+
T,
|
|
3243
3243
|
t,
|
|
3244
3244
|
r
|
|
3245
3245
|
], D.set(y, S);
|
|
@@ -3266,19 +3266,19 @@ var is = (t) => {
|
|
|
3266
3266
|
formula: o
|
|
3267
3267
|
};
|
|
3268
3268
|
})(r);
|
|
3269
|
-
"none" !== o.kind && (E ??= new Xo(e), "spilled" === o.kind ? I = E.placeholder(H, W) : E.anchor(H, W, o.formula) && (t = o.formula, L ||= ((t) => zo(t).some((t) =>
|
|
3269
|
+
"none" !== o.kind && (E ??= new Xo(e), "spilled" === o.kind ? I = E.placeholder(H, W) : E.anchor(H, W, o.formula) && (t = o.formula, L ||= ((t) => zo(t).some((t) => w(t) || !0 === Lt.get(t)?.getDeclaration().getReturnType()?.isVolatile()))(t)));
|
|
3270
3270
|
}
|
|
3271
3271
|
if (I) L = !1;
|
|
3272
3272
|
else {
|
|
3273
3273
|
const e = [];
|
|
3274
|
-
|
|
3275
|
-
|
|
3274
|
+
T = P(t, H, W, e), S = [
|
|
3275
|
+
T,
|
|
3276
3276
|
e,
|
|
3277
3277
|
t
|
|
3278
3278
|
];
|
|
3279
3279
|
}
|
|
3280
3280
|
}
|
|
3281
|
-
F ? n?.onText?.(e) :
|
|
3281
|
+
F ? n?.onText?.(e) : h || o?.onText?.(r);
|
|
3282
3282
|
}, St = {
|
|
3283
3283
|
r: void 0,
|
|
3284
3284
|
t: void 0,
|
|
@@ -3382,7 +3382,7 @@ var is = (t) => {
|
|
|
3382
3382
|
}
|
|
3383
3383
|
});
|
|
3384
3384
|
for (const s of d) s.min > t && e.push(o(t, s.min - 1)), t = Math.max(t, s.max + 1);
|
|
3385
|
-
t <=
|
|
3385
|
+
t <= xt && e.push(o(t, xt)), e.length > 0 && (G.push(...e), G.sort((t, e) => t.min - e.min));
|
|
3386
3386
|
}
|
|
3387
3387
|
G.length > 0 && (e.rows = Nt.runsToRefs(G, !1));
|
|
3388
3388
|
let s = O.done(fs);
|
|
@@ -3430,7 +3430,7 @@ var is = (t) => {
|
|
|
3430
3430
|
t.push([Nt.cellToString({
|
|
3431
3431
|
rowIndex: s.rowStart,
|
|
3432
3432
|
colIndex: s.colStart
|
|
3433
|
-
}),
|
|
3433
|
+
}), u(o)]), N.push([Nt.rangeToString(s), "dynamic"]);
|
|
3434
3434
|
}
|
|
3435
3435
|
e.formulas = t;
|
|
3436
3436
|
}
|
|
@@ -3446,7 +3446,7 @@ var is = (t) => {
|
|
|
3446
3446
|
E && N.push(...E.getFormulaArray()), N.length > 0 && (e.formulaArray = [...N]);
|
|
3447
3447
|
const a = b.length;
|
|
3448
3448
|
if (a > 0) {
|
|
3449
|
-
b.sort(
|
|
3449
|
+
b.sort(Rt.createRangeComparator(zt.Axis.Column));
|
|
3450
3450
|
let t = b[0], o = t.colStart, s = t.colEnd, r = t.rowEnd, n = t.value;
|
|
3451
3451
|
const i = [];
|
|
3452
3452
|
i.push(t);
|
|
@@ -3462,19 +3462,19 @@ var is = (t) => {
|
|
|
3462
3462
|
const c = t.build();
|
|
3463
3463
|
c && (e.data = c.tuples), o?.onEnd?.();
|
|
3464
3464
|
},
|
|
3465
|
-
onOpenTag:
|
|
3465
|
+
onOpenTag: vt,
|
|
3466
3466
|
onCloseTag: wt,
|
|
3467
3467
|
onText: Tt,
|
|
3468
3468
|
elementScanners: [{
|
|
3469
3469
|
name: "c",
|
|
3470
3470
|
scan: (t, e, o) => {
|
|
3471
|
-
if (!
|
|
3471
|
+
if (!h || null !== X) return Dt;
|
|
3472
3472
|
St.r = St.t = St.s = St.cm = St.vm = void 0;
|
|
3473
3473
|
let s = jt(t, e + 2, o, 0);
|
|
3474
3474
|
if (s < 0) return s;
|
|
3475
3475
|
const r = St.t;
|
|
3476
3476
|
if (void 0 === St.r || "str" === r || "inlineStr" === r) return Dt;
|
|
3477
|
-
let n = !1, i = -1, a = -1, l = -1, c = -1,
|
|
3477
|
+
let n = !1, i = -1, a = -1, l = -1, c = -1, u = s;
|
|
3478
3478
|
if (!Vt) for (kt.t = kt.si = kt.ref = kt.ca = void 0;;) {
|
|
3479
3479
|
const e = t.indexOf("<", s);
|
|
3480
3480
|
if (-1 === e || e + 3 >= o) return Ot;
|
|
@@ -3482,13 +3482,13 @@ var is = (t) => {
|
|
|
3482
3482
|
const e = t.charCodeAt(o);
|
|
3483
3483
|
if (32 !== e && 9 !== e && 10 !== e && 13 !== e) return Dt;
|
|
3484
3484
|
}
|
|
3485
|
-
const r = t.charCodeAt(e + 1),
|
|
3485
|
+
const r = t.charCodeAt(e + 1), h = t.charCodeAt(e + 2);
|
|
3486
3486
|
if (47 === r) {
|
|
3487
3487
|
if (!Bt(t, e, 99)) return Dt;
|
|
3488
|
-
|
|
3488
|
+
u = e + 4;
|
|
3489
3489
|
break;
|
|
3490
3490
|
}
|
|
3491
|
-
if (102 === r && !n && -1 === l && (32 ===
|
|
3491
|
+
if (102 === r && !n && -1 === l && (32 === h || 62 === h || 47 === h)) {
|
|
3492
3492
|
if (n = !0, s = jt(t, e + 2, o, 1), s < 0) return s;
|
|
3493
3493
|
if ("dataTable" === kt.t) return Dt;
|
|
3494
3494
|
if (Vt) continue;
|
|
@@ -3498,7 +3498,7 @@ var is = (t) => {
|
|
|
3498
3498
|
i = s, a = r, s = r + 4;
|
|
3499
3499
|
continue;
|
|
3500
3500
|
}
|
|
3501
|
-
if (118 === r && 62 ===
|
|
3501
|
+
if (118 === r && 62 === h && -1 === l) {
|
|
3502
3502
|
const r = t.indexOf("<", e + 3);
|
|
3503
3503
|
if (-1 === r || r + 3 >= o) return Ot;
|
|
3504
3504
|
if (!Bt(t, r, 118)) return Dt;
|
|
@@ -3507,16 +3507,16 @@ var is = (t) => {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
return Dt;
|
|
3509
3509
|
}
|
|
3510
|
-
return
|
|
3510
|
+
return vt(Ct), n && (vt(At), a > i && Tt(_t(t.slice(i, a))), wt(At)), -1 !== l && (vt(Et), c > l && Tt(_t(t.slice(l, c))), wt(Et)), wt(Ct), u;
|
|
3511
3511
|
}
|
|
3512
3512
|
}, {
|
|
3513
3513
|
name: "row",
|
|
3514
3514
|
openTag: Pt,
|
|
3515
3515
|
scan: (t, e, o) => {
|
|
3516
|
-
if (!gt ||
|
|
3516
|
+
if (!gt || h || null !== X) return Dt;
|
|
3517
3517
|
It.r = It.s = It.ht = It.hidden = It.collapsed = It.customHeight = It.customFormat = It.outlineLevel = void 0;
|
|
3518
3518
|
const s = jt(t, e + 4, o, 2);
|
|
3519
|
-
return s < 0 ? s : Vt || void 0 === It.r ? Dt : (
|
|
3519
|
+
return s < 0 ? s : Vt || void 0 === It.r ? Dt : (vt(Pt), s);
|
|
3520
3520
|
}
|
|
3521
3521
|
}]
|
|
3522
3522
|
};
|
|
@@ -3665,7 +3665,7 @@ var ks = {
|
|
|
3665
3665
|
if (t.min > o || void 0 === t.value?.s) return !1;
|
|
3666
3666
|
o = Math.max(o, t.max + 1);
|
|
3667
3667
|
}
|
|
3668
|
-
return o >
|
|
3668
|
+
return o > tt;
|
|
3669
3669
|
}, Ns = (t, e) => {
|
|
3670
3670
|
t.protection = {
|
|
3671
3671
|
...t.protection,
|
|
@@ -3681,7 +3681,7 @@ var ks = {
|
|
|
3681
3681
|
const u = `${t}|${i ?? ""}|${a ?? ""}|${c}`;
|
|
3682
3682
|
let h = r.get(u);
|
|
3683
3683
|
if (void 0 !== h) return h;
|
|
3684
|
-
const d = o[t], p = d ?
|
|
3684
|
+
const d = o[t], p = d ? Ms(d, i, a, l) : null, f = e?.get(t);
|
|
3685
3685
|
return h = p === d ? t : p || void 0 !== f ? ((t, r) => {
|
|
3686
3686
|
if (!s) {
|
|
3687
3687
|
s = /* @__PURE__ */ new Map();
|
|
@@ -3698,11 +3698,11 @@ var ks = {
|
|
|
3698
3698
|
})(p ?? {}, f) : null, r.set(u, h), h;
|
|
3699
3699
|
}, a = new Map((t.pivotCaches ?? []).map((t) => [t.cacheId, t.fields]));
|
|
3700
3700
|
for (const e of t.sheets ?? []) {
|
|
3701
|
-
const t =
|
|
3701
|
+
const t = y(e), o = t?.pivotTables, s = t?.directStyles;
|
|
3702
3702
|
if (!t || !o || 0 === o.length || !s || 0 === s.length) continue;
|
|
3703
3703
|
let r = s, n = !1;
|
|
3704
3704
|
for (const t of o) {
|
|
3705
|
-
const e =
|
|
3705
|
+
const e = Rs(t, a.get(t.cacheId));
|
|
3706
3706
|
if (!e) continue;
|
|
3707
3707
|
const o = [];
|
|
3708
3708
|
for (const t of r) {
|
|
@@ -3735,7 +3735,7 @@ var ks = {
|
|
|
3735
3735
|
}
|
|
3736
3736
|
n && (t.directStyles = r);
|
|
3737
3737
|
}
|
|
3738
|
-
},
|
|
3738
|
+
}, Rs = (t, e) => {
|
|
3739
3739
|
const o = oe(t, e);
|
|
3740
3740
|
if (!o || !t.location) return null;
|
|
3741
3741
|
const s = Nt.fastStringToRange(t.location), r = {
|
|
@@ -3752,7 +3752,7 @@ var ks = {
|
|
|
3752
3752
|
origin: r,
|
|
3753
3753
|
formats: o
|
|
3754
3754
|
};
|
|
3755
|
-
},
|
|
3755
|
+
}, Ms = (t, e, o, s) => {
|
|
3756
3756
|
let r = t;
|
|
3757
3757
|
const n = s?.numberFormat ?? e ?? 0;
|
|
3758
3758
|
if (void 0 !== t.numberFormat && Vs(t.numberFormat, n)) {
|
|
@@ -3885,7 +3885,7 @@ var ks = {
|
|
|
3885
3885
|
"application/vnd.ms-excel.externalLink": "links",
|
|
3886
3886
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml": "links",
|
|
3887
3887
|
"application/vnd.openxmlformats-officedocument.theme+xml": "themes"
|
|
3888
|
-
}, Js =
|
|
3888
|
+
}, Js = At({ readXLSX: () => er }), Zs = (t) => t.startsWith("/") ? t.slice(1) : t, Qs = [
|
|
3889
3889
|
208,
|
|
3890
3890
|
207,
|
|
3891
3891
|
17,
|
|
@@ -3895,22 +3895,22 @@ var ks = {
|
|
|
3895
3895
|
26,
|
|
3896
3896
|
225
|
|
3897
3897
|
], Ys = /^xl\/worksheets\/[^/]+\.xml$/i, tr = (t) => "string" == typeof t ? t : (t?.runs ?? []).map((t) => t.text ?? "").join(""), er = async (t, e) => {
|
|
3898
|
-
const { password: s, onVBA: n, profile:
|
|
3898
|
+
const { password: s, onVBA: n, profile: l, calcOnLoad: u = "auto", createWorkbookOptions: g = {}, ...b } = e ?? {};
|
|
3899
3899
|
await Vt.load();
|
|
3900
|
-
const
|
|
3900
|
+
const w = !!g.origin && "string" != typeof g.origin, T = l ? new ke("function" == typeof l ? l : void 0) : null, S = [], C = (t, e, o) => {
|
|
3901
3901
|
S.push([
|
|
3902
3902
|
t,
|
|
3903
3903
|
e ?? "",
|
|
3904
3904
|
o
|
|
3905
3905
|
]);
|
|
3906
|
-
},
|
|
3906
|
+
}, A = { onWarning: C }, E = e?.progress, P = E?.onProgress ? E.onProgress.bind(E) : void 0, N = t.byteLength;
|
|
3907
3907
|
let $ = 0, R = 0;
|
|
3908
|
-
const
|
|
3908
|
+
const M = P ? (t) => {
|
|
3909
3909
|
if ($ <= 0) return;
|
|
3910
3910
|
R += t;
|
|
3911
|
-
const e = Math.min(
|
|
3912
|
-
P(e,
|
|
3913
|
-
} : void 0, L = import("./
|
|
3911
|
+
const e = Math.min(N, Math.round(R / $ * N));
|
|
3912
|
+
P(e, N);
|
|
3913
|
+
} : void 0, L = import("./0EFUOGDC3FYJxfgS.mjs");
|
|
3914
3914
|
let j = null;
|
|
3915
3915
|
try {
|
|
3916
3916
|
j = new DOMParser();
|
|
@@ -3919,15 +3919,15 @@ var ks = {
|
|
|
3919
3919
|
try {
|
|
3920
3920
|
B = new XMLSerializer();
|
|
3921
3921
|
} catch (t) {}
|
|
3922
|
-
let
|
|
3922
|
+
let W, z, X, q = null;
|
|
3923
3923
|
j || (q = import("@xmldom/xmldom"));
|
|
3924
3924
|
try {
|
|
3925
3925
|
const [t, e] = await Promise.all([q, L]);
|
|
3926
|
-
|
|
3926
|
+
W = new e.DOMTransformer(), z = j ?? new t.DOMParser(), X = B ?? new t.XMLSerializer();
|
|
3927
3927
|
} catch (t) {
|
|
3928
3928
|
throw new Error("Unable to load XLSX parser.", { cause: t });
|
|
3929
3929
|
}
|
|
3930
|
-
const
|
|
3930
|
+
const G = (t) => X.serializeToString(t);
|
|
3931
3931
|
if (((t) => {
|
|
3932
3932
|
if (t.byteLength < Qs.length) return !1;
|
|
3933
3933
|
const e = new Uint8Array(t, 0, Qs.length);
|
|
@@ -4001,15 +4001,15 @@ var ks = {
|
|
|
4001
4001
|
} catch (t) {
|
|
4002
4002
|
throw new Error("Error parsing content types: '[Content_Types].xml'", { cause: t });
|
|
4003
4003
|
}
|
|
4004
|
-
|
|
4004
|
+
w && await K.getBuffer("[Content_Types].xml");
|
|
4005
4005
|
}
|
|
4006
4006
|
T?.mark("content-types");
|
|
4007
|
-
const s = e.sst,
|
|
4008
|
-
for (const t of e.sheets)
|
|
4009
|
-
s &&
|
|
4010
|
-
for (const t of
|
|
4011
|
-
if (await K.prefetch((t) => !
|
|
4012
|
-
const o =
|
|
4007
|
+
const s = e.sst, b = /* @__PURE__ */ new Set();
|
|
4008
|
+
for (const t of e.sheets) b.add(Zs(t));
|
|
4009
|
+
s && b.add(Zs(s));
|
|
4010
|
+
for (const t of b) $ += K.uncompressedSize(t);
|
|
4011
|
+
if (await K.prefetch((t) => !b.has(t) && !Ys.test(t)), T?.mark("prefetch-side-parts"), 0 === e.workbooks.length) {
|
|
4012
|
+
const o = D("_rels/.rels", t, z, W, A), s = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
|
|
4013
4013
|
if (o) {
|
|
4014
4014
|
for (const t of o.values()) if (t.type === s && t.target) {
|
|
4015
4015
|
e.workbooks.push(t.target);
|
|
@@ -4021,20 +4021,20 @@ var ks = {
|
|
|
4021
4021
|
const R = g?.resources ?? new Kt(), L = R.beginPersist(), j = {}, B = /* @__PURE__ */ new Set(), X = /* @__PURE__ */ new Map();
|
|
4022
4022
|
X.set("parseInlineDxf", (t) => {
|
|
4023
4023
|
if (!t) return;
|
|
4024
|
-
const e =
|
|
4024
|
+
const e = z.parseFromString(`<dxf xmlns:x14="${yt}" xmlns:xm="${V}">${t}</dxf>`, "text/xml")?.documentElement;
|
|
4025
4025
|
if (!e) return;
|
|
4026
|
-
const o =
|
|
4026
|
+
const o = W.parseDxf(e, "", A);
|
|
4027
4027
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
4028
4028
|
});
|
|
4029
|
-
const q =
|
|
4030
|
-
q && X.set("metadata", q), X.set(as,
|
|
4031
|
-
const
|
|
4032
|
-
|
|
4033
|
-
}, st = (e, o =
|
|
4029
|
+
const q = v("metadata", e, t, z, W, A).entries().next()?.value?.[1]?.metadata;
|
|
4030
|
+
q && X.set("metadata", q), X.set(as, c());
|
|
4031
|
+
const Z = /* @__PURE__ */ new Map(), Y = [], et = /* @__PURE__ */ new Set(), ot = (t) => {
|
|
4032
|
+
et.add(Zs(t));
|
|
4033
|
+
}, st = (e, o = Z) => {
|
|
4034
4034
|
const s = e.lastIndexOf("/"), r = e.substring(0, s + 1) + "_rels/" + e.substring(s + 1, e.length) + ".rels";
|
|
4035
4035
|
let n = o.get(r);
|
|
4036
|
-
return n || (n =
|
|
4037
|
-
},
|
|
4036
|
+
return n || (n = D(r, t, z, W, At), o.set(r, n)), n;
|
|
4037
|
+
}, it = (e, o, s, r = Z) => {
|
|
4038
4038
|
let n = st(o, r).get(e), i = n?.target;
|
|
4039
4039
|
if (!i) return null;
|
|
4040
4040
|
if ("External" === n.targetMode) {
|
|
@@ -4043,8 +4043,8 @@ var ks = {
|
|
|
4043
4043
|
return t.addReference(j), B.add(t), L.toResourceId(t);
|
|
4044
4044
|
}
|
|
4045
4045
|
const a = o.lastIndexOf("/"), l = o.substring(0, a + 1);
|
|
4046
|
-
i.startsWith("/") || (i = l + i), i =
|
|
4047
|
-
const c =
|
|
4046
|
+
i.startsWith("/") || (i = l + i), i = bt(i);
|
|
4047
|
+
const c = W?.getVisitorParamsState().get("dxfs");
|
|
4048
4048
|
let u = r.get(i);
|
|
4049
4049
|
if (!u) {
|
|
4050
4050
|
const e = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet", o = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink";
|
|
@@ -4052,9 +4052,9 @@ var ks = {
|
|
|
4052
4052
|
const t = {};
|
|
4053
4053
|
u = t;
|
|
4054
4054
|
const e = async () => {
|
|
4055
|
-
const e = ds(t, (t, e) => "legacyDrawing" === e ?
|
|
4055
|
+
const e = ds(t, (t, e) => "legacyDrawing" === e ? ht(t, i) : "formControl" === e ? dt(t, i) : "part" === e ? ft(t, i) : it(t, i, "resource" === e) ?? null, Bt, c, () => {}, (t, e, o) => {
|
|
4056
4056
|
C(t, e ? `${e} (${i})` : i, o);
|
|
4057
|
-
}, void 0, X), o = await K.getTextStream(i,
|
|
4057
|
+
}, void 0, X), o = await K.getTextStream(i, M);
|
|
4058
4058
|
if (o) try {
|
|
4059
4059
|
await yo.parseStream(o, e, {
|
|
4060
4060
|
xmlns: !1,
|
|
@@ -4065,7 +4065,7 @@ var ks = {
|
|
|
4065
4065
|
}
|
|
4066
4066
|
const s = st(i, r);
|
|
4067
4067
|
if (s) {
|
|
4068
|
-
ct(t, i, s, r),
|
|
4068
|
+
ct(t, i, s, r), ut(t), H(t);
|
|
4069
4069
|
const e = [];
|
|
4070
4070
|
s.forEach((t, o) => {
|
|
4071
4071
|
if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable" !== t.type) return;
|
|
@@ -4073,11 +4073,11 @@ var ks = {
|
|
|
4073
4073
|
if (!s?.xml) return;
|
|
4074
4074
|
const r = /<pivotTableDefinition\b[^>]*>/.exec(s.xml)?.[0] ?? "", n = parseInt(/\scacheId="(\d+)"/.exec(r)?.[1] ?? "", 10);
|
|
4075
4075
|
if (isNaN(n)) return void S.push([`Pivot table '${s.name}' names no cache and was dropped.`, i]);
|
|
4076
|
-
const a = /\sname="([^"]*)"/.exec(r)?.[1], l =
|
|
4076
|
+
const a = /\sname="([^"]*)"/.exec(r)?.[1], l = mt(s.xml);
|
|
4077
4077
|
if (!l) return void S.push([`Pivot table '${s.name}' states no location and was dropped.`, i]);
|
|
4078
|
-
const c =
|
|
4078
|
+
const c = W?.getVisitorParamsState(), u = pt(c?.get("numFmts"), c?.get("dxfs")), h = nt(s.xml, u), d = h ? void 0 : U(s.xml, u);
|
|
4079
4079
|
e.push({
|
|
4080
|
-
...a ? { name:
|
|
4080
|
+
...a ? { name: I(a) } : {},
|
|
4081
4081
|
cacheId: n,
|
|
4082
4082
|
location: l,
|
|
4083
4083
|
part: s,
|
|
@@ -4087,9 +4087,9 @@ var ks = {
|
|
|
4087
4087
|
}), e.length > 0 && (t.pivotTables = e);
|
|
4088
4088
|
}
|
|
4089
4089
|
};
|
|
4090
|
-
|
|
4090
|
+
Y.push(e());
|
|
4091
4091
|
} else if (n.type === o) {
|
|
4092
|
-
const e =
|
|
4092
|
+
const e = _(i, t, z, W, At);
|
|
4093
4093
|
if (e && 0 !== Object.keys(e).length) {
|
|
4094
4094
|
const t = e, o = t.__bookRelId, s = t.__absoluteUrlRelId;
|
|
4095
4095
|
delete t.__bookRelId, delete t.__absoluteUrlRelId;
|
|
@@ -4102,25 +4102,25 @@ var ks = {
|
|
|
4102
4102
|
};
|
|
4103
4103
|
e === o ? r.role = "book" : e === s && (r.role = "absoluteUrl"), n.push(r);
|
|
4104
4104
|
}
|
|
4105
|
-
}), n.sort((t, e) => ("book" === t.role ? 0 : 1) - ("book" === e.role ? 0 : 1)), t.sources = n,
|
|
4105
|
+
}), n.sort((t, e) => ("book" === t.role ? 0 : 1) - ("book" === e.role ? 0 : 1)), t.sources = n, ot(i), u = t;
|
|
4106
4106
|
} else u = null;
|
|
4107
|
-
} else u = s ?
|
|
4107
|
+
} else u = s ? O(i, t, (t, e) => {
|
|
4108
4108
|
const o = R.add({ source: { buffer: t } });
|
|
4109
4109
|
return o.addReference(j), B.add(o), L.toResourceId(o);
|
|
4110
|
-
}, At) :
|
|
4110
|
+
}, At) : _(i, t, z, W, At);
|
|
4111
4111
|
}
|
|
4112
4112
|
return u;
|
|
4113
|
-
},
|
|
4113
|
+
}, lt = (t, e) => {
|
|
4114
4114
|
if (!t) return null;
|
|
4115
|
-
const o = st(e,
|
|
4115
|
+
const o = st(e, Z)?.get(t);
|
|
4116
4116
|
if (!o?.target || "External" === o.targetMode) return null;
|
|
4117
4117
|
let s = o.target;
|
|
4118
|
-
return s.startsWith("/") || (s = e.substring(0, e.lastIndexOf("/") + 1) + s),
|
|
4118
|
+
return s.startsWith("/") || (s = e.substring(0, e.lastIndexOf("/") + 1) + s), bt(s);
|
|
4119
4119
|
}, ct = (t, e, o, s) => {
|
|
4120
4120
|
const n = [], i = /* @__PURE__ */ new Map(), l = [];
|
|
4121
4121
|
o.forEach((t, o) => {
|
|
4122
4122
|
if ("http://schemas.microsoft.com/office/2017/10/relationships/threadedComment" !== t.type) return;
|
|
4123
|
-
const r =
|
|
4123
|
+
const r = it(o, e, !1, s)?.comments;
|
|
4124
4124
|
if (!r) return;
|
|
4125
4125
|
for (let t = 0; t < r.length; t++) {
|
|
4126
4126
|
const e = r[t];
|
|
@@ -4137,8 +4137,8 @@ var ks = {
|
|
|
4137
4137
|
v: u
|
|
4138
4138
|
}));
|
|
4139
4139
|
}
|
|
4140
|
-
const a =
|
|
4141
|
-
a &&
|
|
4140
|
+
const a = lt(o, e);
|
|
4141
|
+
a && ot(a);
|
|
4142
4142
|
});
|
|
4143
4143
|
for (let t = 0; t < l.length; t++) {
|
|
4144
4144
|
const { parentId: e, json: o } = l[t], s = i.get(e);
|
|
@@ -4147,7 +4147,7 @@ var ks = {
|
|
|
4147
4147
|
const c = [];
|
|
4148
4148
|
if (o.forEach((t, o) => {
|
|
4149
4149
|
if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" !== t.type) return;
|
|
4150
|
-
const r =
|
|
4150
|
+
const r = it(o, e, !1, s), n = r?.comments;
|
|
4151
4151
|
if (!n) return;
|
|
4152
4152
|
const a = r?.authors;
|
|
4153
4153
|
for (let t = 0; t < n.length; t++) {
|
|
@@ -4155,7 +4155,7 @@ var ks = {
|
|
|
4155
4155
|
if (!e?.r) continue;
|
|
4156
4156
|
let o = a && void 0 !== e.v.authorId ? a[e.v.authorId] : void 0;
|
|
4157
4157
|
if (o && o.startsWith("tc=")) {
|
|
4158
|
-
if (i.has(
|
|
4158
|
+
if (i.has(F(o.substring(3)))) continue;
|
|
4159
4159
|
o = void 0;
|
|
4160
4160
|
}
|
|
4161
4161
|
const s = {
|
|
@@ -4168,8 +4168,8 @@ var ks = {
|
|
|
4168
4168
|
v: s
|
|
4169
4169
|
});
|
|
4170
4170
|
}
|
|
4171
|
-
const l =
|
|
4172
|
-
l &&
|
|
4171
|
+
const l = lt(o, e);
|
|
4172
|
+
l && ot(l);
|
|
4173
4173
|
}), 0 === n.length && 0 === c.length) return;
|
|
4174
4174
|
const u = [...n, ...c], h = t.legacyDrawing;
|
|
4175
4175
|
if (h?.xml) {
|
|
@@ -4187,7 +4187,7 @@ var ks = {
|
|
|
4187
4187
|
const e = u[t], o = s.get(String(e.r).toUpperCase());
|
|
4188
4188
|
if (!o) continue;
|
|
4189
4189
|
if (s.delete(String(e.r).toUpperCase()), !e.v.asNote) continue;
|
|
4190
|
-
const r =
|
|
4190
|
+
const r = k(o.xml), n = {};
|
|
4191
4191
|
if (r.anchor) {
|
|
4192
4192
|
const [t, e, s, i, a, l, c, u] = r.anchor;
|
|
4193
4193
|
n.anchor = {
|
|
@@ -4216,29 +4216,29 @@ var ks = {
|
|
|
4216
4216
|
}
|
|
4217
4217
|
}
|
|
4218
4218
|
t.comments = u;
|
|
4219
|
-
},
|
|
4220
|
-
const s =
|
|
4219
|
+
}, ht = (e, o) => {
|
|
4220
|
+
const s = lt(e, o);
|
|
4221
4221
|
if (!s) return null;
|
|
4222
4222
|
const r = t(Zs(s));
|
|
4223
4223
|
if (!r) return null;
|
|
4224
4224
|
const n = { xml: Cs(new TextDecoder("utf-8").decode(r.content)) }, i = [];
|
|
4225
|
-
return st(s,
|
|
4225
|
+
return st(s, Z)?.forEach((t, e) => {
|
|
4226
4226
|
if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" !== t.type) return;
|
|
4227
|
-
const o =
|
|
4227
|
+
const o = it(e, s, !0);
|
|
4228
4228
|
"number" == typeof o && i.push({
|
|
4229
4229
|
id: e,
|
|
4230
4230
|
resId: o
|
|
4231
4231
|
});
|
|
4232
|
-
}), i.length > 0 && (n.images = i),
|
|
4232
|
+
}), i.length > 0 && (n.images = i), ot(s), n;
|
|
4233
4233
|
}, dt = (e, o) => {
|
|
4234
|
-
const s =
|
|
4234
|
+
const s = lt(e, o);
|
|
4235
4235
|
if (!s) return null;
|
|
4236
|
-
const r =
|
|
4237
|
-
return r &&
|
|
4236
|
+
const r = _(s, t, z, W, At)?.formControl ?? null;
|
|
4237
|
+
return r && ot(s), r;
|
|
4238
4238
|
}, ft = (o, s, r, n, i = /* @__PURE__ */ new Set()) => {
|
|
4239
|
-
const a =
|
|
4239
|
+
const a = lt(o, s);
|
|
4240
4240
|
if (!a || i.has(a)) return null;
|
|
4241
|
-
const l = r ?? st(s,
|
|
4241
|
+
const l = r ?? st(s, Z)?.get(o)?.type;
|
|
4242
4242
|
if (!l) return null;
|
|
4243
4243
|
const c = t(Zs(a));
|
|
4244
4244
|
if (!c) return null;
|
|
@@ -4250,16 +4250,16 @@ var ks = {
|
|
|
4250
4250
|
};
|
|
4251
4251
|
if (h && (d.contentType = h), ((t, e) => t ? t.endsWith("+xml") || "application/xml" === t : /\.(xml|rels|vml)$/i.test(e))(h, u)) d.xml = new TextDecoder("utf-8").decode(c.content);
|
|
4252
4252
|
else {
|
|
4253
|
-
const t =
|
|
4253
|
+
const t = it(o, s, !0);
|
|
4254
4254
|
if ("number" != typeof t) return null;
|
|
4255
4255
|
d.resId = t;
|
|
4256
4256
|
}
|
|
4257
4257
|
const p = [];
|
|
4258
|
-
return st(a,
|
|
4258
|
+
return st(a, Z)?.forEach((t, e) => {
|
|
4259
4259
|
if (!t?.type) return;
|
|
4260
4260
|
if (n && !n(t.type)) return;
|
|
4261
4261
|
if ("External" === t.targetMode) {
|
|
4262
|
-
const o =
|
|
4262
|
+
const o = it(e, a, !0);
|
|
4263
4263
|
"number" == typeof o && p.push({
|
|
4264
4264
|
id: e,
|
|
4265
4265
|
type: t.type,
|
|
@@ -4269,30 +4269,30 @@ var ks = {
|
|
|
4269
4269
|
}
|
|
4270
4270
|
const o = ft(e, a, t.type, n, i);
|
|
4271
4271
|
o && p.push(o);
|
|
4272
|
-
}), p.length > 0 && (d.parts = p),
|
|
4273
|
-
},
|
|
4272
|
+
}), p.length > 0 && (d.parts = p), ot(a), d;
|
|
4273
|
+
}, vt = v("coreprops", e, t, z, W, A), wt = v("extprops", e, t, z, W, A), Tt = v("custprops", e, t, z, W, A);
|
|
4274
4274
|
Tt.forEach((t, e) => {
|
|
4275
|
-
t?.custom &&
|
|
4275
|
+
t?.custom && ot(e);
|
|
4276
4276
|
});
|
|
4277
|
-
const St = new Gt(), Ct =
|
|
4277
|
+
const St = new Gt(), Ct = v("people", e, t, z, W, A);
|
|
4278
4278
|
if (Ct.size > 0) {
|
|
4279
4279
|
const [t, e] = Ct.entries().next().value;
|
|
4280
|
-
St.fromJSON(e?.persons),
|
|
4280
|
+
St.fromJSON(e?.persons), ot(t);
|
|
4281
4281
|
}
|
|
4282
4282
|
const kt = (t) => {
|
|
4283
4283
|
if (t) return St.add(t).toJSON();
|
|
4284
4284
|
}, At = {
|
|
4285
4285
|
paramMap: X,
|
|
4286
4286
|
getRefs: st,
|
|
4287
|
-
getRef:
|
|
4288
|
-
parsedRefs:
|
|
4287
|
+
getRef: it,
|
|
4288
|
+
parsedRefs: Z,
|
|
4289
4289
|
readEmbeddedPart: (t, e) => ft(t, e),
|
|
4290
4290
|
addPerson: kt,
|
|
4291
|
-
serializeElement:
|
|
4291
|
+
serializeElement: G,
|
|
4292
4292
|
onWarning: C
|
|
4293
4293
|
}, _t = [], $t = /* @__PURE__ */ new Map();
|
|
4294
4294
|
if (X.set(us, $t), s) {
|
|
4295
|
-
const t = await K.getTextStream(s,
|
|
4295
|
+
const t = await K.getTextStream(s, M);
|
|
4296
4296
|
if (t) {
|
|
4297
4297
|
const e = ((t, e) => {
|
|
4298
4298
|
let o = !1, s = !1, r = 0, n = "";
|
|
@@ -4307,7 +4307,7 @@ var ks = {
|
|
|
4307
4307
|
},
|
|
4308
4308
|
onCloseTag: (e) => {
|
|
4309
4309
|
const a = es(e.name);
|
|
4310
|
-
"t" === a ? s = !1 : "si" === a ? (t(
|
|
4310
|
+
"t" === a ? s = !1 : "si" === a ? (t(f(n), i.take() ?? void 0), o = !1, n = "") : "rPh" === a || "phoneticPr" === a ? r > 0 && r-- : i.onCloseTag(a);
|
|
4311
4311
|
},
|
|
4312
4312
|
onError: (t) => {
|
|
4313
4313
|
e?.(`Error parsing shared strings: ${t?.message ?? t}`);
|
|
@@ -4326,14 +4326,14 @@ var ks = {
|
|
|
4326
4326
|
}
|
|
4327
4327
|
}
|
|
4328
4328
|
T?.mark("shared-strings");
|
|
4329
|
-
let
|
|
4330
|
-
const
|
|
4331
|
-
let Vt =
|
|
4329
|
+
let Rt = _t.length;
|
|
4330
|
+
const Mt = /* @__PURE__ */ new Map();
|
|
4331
|
+
let Vt = Rt;
|
|
4332
4332
|
const Bt = (t) => {
|
|
4333
|
-
const e =
|
|
4333
|
+
const e = Mt.get(t);
|
|
4334
4334
|
if (void 0 !== e) return e;
|
|
4335
4335
|
const o = Vt;
|
|
4336
|
-
return
|
|
4336
|
+
return Mt.set(t, Vt++), _t.push(t), o;
|
|
4337
4337
|
}, Ft = [];
|
|
4338
4338
|
e.slicersCache = Ft;
|
|
4339
4339
|
const Ht = K.getNames(), Wt = Ht.length;
|
|
@@ -4341,7 +4341,7 @@ var ks = {
|
|
|
4341
4341
|
const e = Ht[t];
|
|
4342
4342
|
e && (e.startsWith("xl/slicerCache") || e.startsWith("xl/timelineCaches/") && e.endsWith(".xml")) && Ft.push(`/${e}`);
|
|
4343
4343
|
}
|
|
4344
|
-
const zt =
|
|
4344
|
+
const zt = v("slicersCache", e, t, z, W, At), Xt = /* @__PURE__ */ new Map();
|
|
4345
4345
|
zt.forEach((t, e) => {
|
|
4346
4346
|
t?.cacheName && (t.cachePath = e, Xt.set(t.cacheName, t));
|
|
4347
4347
|
}), X.set("slicerCaches", Xt);
|
|
@@ -4353,13 +4353,13 @@ var ks = {
|
|
|
4353
4353
|
}
|
|
4354
4354
|
const Ut = {
|
|
4355
4355
|
getFile: t,
|
|
4356
|
-
domParser:
|
|
4356
|
+
domParser: z,
|
|
4357
4357
|
getAddress: (t, e) => {
|
|
4358
|
-
const o =
|
|
4358
|
+
const o = it(e, t, !1);
|
|
4359
4359
|
return "string" == typeof o ? o : null;
|
|
4360
4360
|
},
|
|
4361
4361
|
getBytes: (e, o) => {
|
|
4362
|
-
const s =
|
|
4362
|
+
const s = lt(o, e), r = s ? t(s.substring(1))?.content : void 0;
|
|
4363
4363
|
return r ? r.slice().buffer : null;
|
|
4364
4364
|
},
|
|
4365
4365
|
addFetched: (t, e) => {
|
|
@@ -4369,9 +4369,9 @@ var ks = {
|
|
|
4369
4369
|
});
|
|
4370
4370
|
return o.addReference(j), B.add(o), L.toResourceId(o);
|
|
4371
4371
|
},
|
|
4372
|
-
markAbsorbed:
|
|
4372
|
+
markAbsorbed: ot
|
|
4373
4373
|
}, Jt = /* @__PURE__ */ new Map();
|
|
4374
|
-
for (const t of
|
|
4374
|
+
for (const t of h.getAll()) Jt.set(t.structure, t.beginRead(Ut));
|
|
4375
4375
|
const Zt = ((t, e) => {
|
|
4376
4376
|
const o = (o) => {
|
|
4377
4377
|
const s = t(o);
|
|
@@ -4422,25 +4422,25 @@ var ks = {
|
|
|
4422
4422
|
};
|
|
4423
4423
|
})
|
|
4424
4424
|
};
|
|
4425
|
-
})(t,
|
|
4425
|
+
})(t, z), Qt = d(Zt, Jt, (t) => {
|
|
4426
4426
|
C(t, "/xl/richData/rdrichvalue.xml");
|
|
4427
4427
|
});
|
|
4428
4428
|
X.set("richData", Zt.values.map((t, e) => Qt.cellValue(e)));
|
|
4429
4429
|
for (let t = 0; t < Wt; t++) {
|
|
4430
4430
|
const e = Ht[t];
|
|
4431
|
-
e.startsWith("xl/richData/") && !e.includes("/_rels/") &&
|
|
4431
|
+
e.startsWith("xl/richData/") && !e.includes("/_rels/") && ot(e);
|
|
4432
4432
|
}
|
|
4433
|
-
const te =
|
|
4433
|
+
const te = v("themes", e, t, z, W, At);
|
|
4434
4434
|
let oe = null;
|
|
4435
4435
|
if (te && te.entries) {
|
|
4436
4436
|
let t = te.entries().next();
|
|
4437
4437
|
t?.value?.[1] && (oe = t.value[1]);
|
|
4438
4438
|
}
|
|
4439
4439
|
const se = new Yt(oe);
|
|
4440
|
-
let re =
|
|
4440
|
+
let re = v("styles", e, t, z, W, At).entries().next()?.value?.[1];
|
|
4441
4441
|
re && (re = JSON.parse(Et.JSONStableStringify(re)));
|
|
4442
|
-
const ne =
|
|
4443
|
-
X.set(cs, !0 === ne.entries().next().value?.[1]?.date1904), "none" !== (g.calcOnLoad ??
|
|
4442
|
+
const ne = v("workbooks", e, t, z, W, At);
|
|
4443
|
+
X.set(cs, !0 === ne.entries().next().value?.[1]?.date1904), "none" !== (g.calcOnLoad ?? u) && X.set(ls, ((t, e) => {
|
|
4444
4444
|
const o = /* @__PURE__ */ new Set();
|
|
4445
4445
|
if (t) for (let e = 0; e < t.length; e++) o.add(String(t[e]?.name).toUpperCase());
|
|
4446
4446
|
if (e) for (let t = 0; t < e.length; t++) try {
|
|
@@ -4452,17 +4452,17 @@ var ks = {
|
|
|
4452
4452
|
for (const t of s.keys()) o.add(t.toUpperCase());
|
|
4453
4453
|
} catch {}
|
|
4454
4454
|
return (t) => o.has(t) || Lt.has(t);
|
|
4455
|
-
})(ne.entries().next().value?.[1]?.names, g.functions)), T?.mark("side-parts-json"), await Promise.all(
|
|
4455
|
+
})(ne.entries().next().value?.[1]?.names, g.functions)), T?.mark("side-parts-json"), await Promise.all(Y);
|
|
4456
4456
|
{
|
|
4457
|
-
const t = ne.entries().next().value?.[1], e =
|
|
4457
|
+
const t = ne.entries().next().value?.[1], e = c(t?.names), o = t?.sheets ?? [];
|
|
4458
4458
|
for (let t = 0; t < o.length; t++) {
|
|
4459
|
-
const s = o[t], r =
|
|
4459
|
+
const s = o[t], r = Q(s);
|
|
4460
4460
|
if ("macro" === s?.kind && r?.part.xml) {
|
|
4461
|
-
r.part.xml =
|
|
4461
|
+
r.part.xml = i(r.part.xml, _t);
|
|
4462
4462
|
continue;
|
|
4463
4463
|
}
|
|
4464
|
-
const n =
|
|
4465
|
-
n &&
|
|
4464
|
+
const n = y(s);
|
|
4465
|
+
n && p(n, e);
|
|
4466
4466
|
}
|
|
4467
4467
|
const s = t?.names;
|
|
4468
4468
|
if (s) for (let t = 0; t < s.length; t++) {
|
|
@@ -4470,7 +4470,7 @@ var ks = {
|
|
|
4470
4470
|
"string" == typeof o && (s[t].ref = e.readDetached(o));
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
|
-
P && $ > 0 && (P(
|
|
4473
|
+
P && $ > 0 && (P(N, N), await new Promise((t) => setTimeout(t, 0))), T?.mark("sheets");
|
|
4474
4474
|
const ie = {
|
|
4475
4475
|
...ne.entries().next().value?.[1],
|
|
4476
4476
|
styles: re,
|
|
@@ -4494,7 +4494,7 @@ var ks = {
|
|
|
4494
4494
|
t.length > 0 && (r.custom = t);
|
|
4495
4495
|
}
|
|
4496
4496
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
4497
|
-
})(
|
|
4497
|
+
})(vt.values().next().value?.properties, wt.values().next().value?.properties, Tt.values().next().value?.custom, (t, e) => {
|
|
4498
4498
|
C(t, "docProps/custom.xml", e);
|
|
4499
4499
|
});
|
|
4500
4500
|
ae && (ie.properties = ae), ((t, e) => {
|
|
@@ -4503,7 +4503,7 @@ var ks = {
|
|
|
4503
4503
|
if (!o) return;
|
|
4504
4504
|
const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
4505
4505
|
for (const o of t.sheets ?? []) {
|
|
4506
|
-
const t =
|
|
4506
|
+
const t = y(o);
|
|
4507
4507
|
if (!t) continue;
|
|
4508
4508
|
const n = /* @__PURE__ */ new Set();
|
|
4509
4509
|
Ds(t.cols) || n.add(0);
|
|
@@ -4543,9 +4543,9 @@ var ks = {
|
|
|
4543
4543
|
}
|
|
4544
4544
|
})(ie, X.get(Ps)), ((t, e) => {
|
|
4545
4545
|
if (e && 0 !== e.size) for (const o of t.sheets ?? []) {
|
|
4546
|
-
const t =
|
|
4546
|
+
const t = y(o), s = t?.pivotTables;
|
|
4547
4547
|
if (!t || !s || 0 === s.length) continue;
|
|
4548
|
-
const r = s.map(
|
|
4548
|
+
const r = s.map(at), n = s.map(() => []);
|
|
4549
4549
|
for (const [o, s] of t.directStyles ?? []) {
|
|
4550
4550
|
if (!e.has(s)) continue;
|
|
4551
4551
|
const t = Nt.fastStringToRange(o);
|
|
@@ -4571,11 +4571,11 @@ var ks = {
|
|
|
4571
4571
|
const e = {
|
|
4572
4572
|
colStart: 0,
|
|
4573
4573
|
rowStart: 0,
|
|
4574
|
-
colEnd:
|
|
4575
|
-
rowEnd:
|
|
4574
|
+
colEnd: tt,
|
|
4575
|
+
rowEnd: xt
|
|
4576
4576
|
};
|
|
4577
4577
|
for (const o of t.sheets ?? []) {
|
|
4578
|
-
const t =
|
|
4578
|
+
const t = y(o);
|
|
4579
4579
|
if (!t) continue;
|
|
4580
4580
|
const s = [];
|
|
4581
4581
|
if (Gs(t.cols, !0, e, s), Gs(t.rows, !1, e, s), 0 === s.length) continue;
|
|
@@ -4614,7 +4614,7 @@ var ks = {
|
|
|
4614
4614
|
return void 0 !== s ? o.controls[s] ?? null : null;
|
|
4615
4615
|
};
|
|
4616
4616
|
for (const e of t.sheets ?? []) {
|
|
4617
|
-
const t =
|
|
4617
|
+
const t = y(e);
|
|
4618
4618
|
if (!t) continue;
|
|
4619
4619
|
const o = /* @__PURE__ */ new Map();
|
|
4620
4620
|
for (const e of t.directStyles ?? []) {
|
|
@@ -4635,16 +4635,16 @@ var ks = {
|
|
|
4635
4635
|
});
|
|
4636
4636
|
t.cellControls = r;
|
|
4637
4637
|
}
|
|
4638
|
-
})(ie, ce,
|
|
4638
|
+
})(ie, ce, v("featurePropertyBag", e, t, z, W, At).values().next().value?.featurePropertyBag);
|
|
4639
4639
|
{
|
|
4640
4640
|
const o = /* @__PURE__ */ new Map();
|
|
4641
|
-
|
|
4641
|
+
v("slicers", e, t, z, W, At).forEach((t, e) => {
|
|
4642
4642
|
t?.slicers && o.set(e, t.slicers);
|
|
4643
4643
|
}), le(ie, {
|
|
4644
4644
|
warn: (t, e) => {
|
|
4645
4645
|
C(t, "xl/slicers", e);
|
|
4646
4646
|
},
|
|
4647
|
-
markAbsorbed:
|
|
4647
|
+
markAbsorbed: ot,
|
|
4648
4648
|
slicerParts: o
|
|
4649
4649
|
});
|
|
4650
4650
|
}
|
|
@@ -4656,11 +4656,11 @@ var ks = {
|
|
|
4656
4656
|
ue && ue.length > 0 && (ie.people = ue);
|
|
4657
4657
|
const he = K.getEntry("xl/vbaProject.bin");
|
|
4658
4658
|
if (he) try {
|
|
4659
|
-
const { VBAProject: t } = await import("./
|
|
4659
|
+
const { VBAProject: t } = await import("./CA_cU7nQp5uyXXb2.mjs"), e = t.extract(he);
|
|
4660
4660
|
if (e) {
|
|
4661
4661
|
const o = /* @__PURE__ */ new Map();
|
|
4662
4662
|
for (const t of ie.sheets ?? []) {
|
|
4663
|
-
const e =
|
|
4663
|
+
const e = y(t), s = e?.codeName;
|
|
4664
4664
|
s && o.set(s, e);
|
|
4665
4665
|
}
|
|
4666
4666
|
for (const s of e.modules) {
|
|
@@ -4676,22 +4676,22 @@ var ks = {
|
|
|
4676
4676
|
} catch (t) {
|
|
4677
4677
|
S.push([`Error extracting VBA: ${t?.message ?? t}`, "xl/vbaProject.bin"]);
|
|
4678
4678
|
}
|
|
4679
|
-
const Se = X.get("calcId"), Ce = void 0 === Se || !(Number(Se) >= 191029), ke = g.calcOnLoad ?? ("auto" ===
|
|
4679
|
+
const Se = X.get("calcId"), Ce = void 0 === Se || !(Number(Se) >= 191029), ke = g.calcOnLoad ?? ("auto" === u && Ce ? "full" : u), Ae = {
|
|
4680
4680
|
...g,
|
|
4681
4681
|
calcOnLoad: ke,
|
|
4682
4682
|
resources: R,
|
|
4683
4683
|
json: ie
|
|
4684
4684
|
};
|
|
4685
4685
|
if (void 0 === Ae.disableLoadAutoFit) {
|
|
4686
|
-
const t = X.get(
|
|
4687
|
-
Ae.disableLoadAutoFit = !!t?.declared && t.normalIsThemeFont && await
|
|
4686
|
+
const t = X.get(gt);
|
|
4687
|
+
Ae.disableLoadAutoFit = !!t?.declared && t.normalIsThemeFont && await rt(t.faces);
|
|
4688
4688
|
}
|
|
4689
4689
|
T?.mark("json-assembled");
|
|
4690
4690
|
const Ee = new ee(Ae);
|
|
4691
4691
|
if (T?.mark("workbook-constructed"), B.forEach((t) => {
|
|
4692
4692
|
t.deleteReference(j);
|
|
4693
|
-
}), L.endPersist(),
|
|
4694
|
-
|
|
4693
|
+
}), L.endPersist(), w) {
|
|
4694
|
+
m(Ee);
|
|
4695
4695
|
const t = /* @__PURE__ */ new Map();
|
|
4696
4696
|
let e = 0;
|
|
4697
4697
|
for (const o of K.getNames()) {
|
|
@@ -4713,8 +4713,8 @@ var ks = {
|
|
|
4713
4713
|
}
|
|
4714
4714
|
if (e > 67108864) S.push([`Source package too large to retain (${e} bytes, limit ${o}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
|
|
4715
4715
|
else if (t.size > 0) {
|
|
4716
|
-
const e = new
|
|
4717
|
-
|
|
4716
|
+
const e = new J(t, et);
|
|
4717
|
+
x(Ee, e);
|
|
4718
4718
|
let o = Ee.getWorksheets().getItems();
|
|
4719
4719
|
const s = Ee.getTransactions().addListener({ onCommitEnd: (t) => {
|
|
4720
4720
|
const o = t.getOperation()?.name;
|
|
@@ -4724,18 +4724,18 @@ var ks = {
|
|
|
4724
4724
|
(t.length !== o.length || t.some((t, e) => t !== o[e])) && e.markStructuralChange(), o = t;
|
|
4725
4725
|
} });
|
|
4726
4726
|
Ee.addListeners({ onClose: () => {
|
|
4727
|
-
s(), r(),
|
|
4727
|
+
s(), r(), m(Ee);
|
|
4728
4728
|
} });
|
|
4729
4729
|
}
|
|
4730
4730
|
}
|
|
4731
|
-
if (S.length &&
|
|
4731
|
+
if (S.length && E?.onWarning) {
|
|
4732
4732
|
const t = /* @__PURE__ */ new Set();
|
|
4733
4733
|
for (const e of S) {
|
|
4734
4734
|
const [o, s, r] = e, n = r ?? o;
|
|
4735
|
-
t.has(n) || (t.add(n),
|
|
4735
|
+
t.has(n) || (t.add(n), E.onWarning(o, s));
|
|
4736
4736
|
}
|
|
4737
4737
|
}
|
|
4738
|
-
return T && !0 ===
|
|
4738
|
+
return T && !0 === l && console.table(T.toTable()), await Ee.whenFontsReady(), Ee;
|
|
4739
4739
|
} catch (t) {
|
|
4740
4740
|
let e = "Unable to parse XLSX.";
|
|
4741
4741
|
throw t instanceof Ut && (e = "Unable to open XLSX. There are too many rows or columns."), new Error(e, { cause: t });
|