@sheetxl/io-xlsx 0.8.0-beta.21 → 0.8.0-beta.22
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/{DPz0IeW70Nh4n8Wz.mjs → 2Tu0hkxKQVlv9Cra.mjs} +4 -4
- package/browser/esm/{B_Jfq-O7tght6ixL.mjs → B-gFy6wqDX1nS1H6.mjs} +733 -732
- package/browser/esm/{cG4z0eDMlE49HJvD.mjs → BksP77A3tWZz2uFZ.mjs} +4 -4
- package/browser/esm/{BoTT_U96McOdkuId.mjs → CSeKlqJLKPdaHQnM.mjs} +2 -2
- package/browser/esm/{D_5T8KKyirVCR3RO.mjs → Cx9ap9QP6pCr4onD.mjs} +2 -2
- package/browser/esm/{CGQXv_OxqwXL3F8q.mjs → DEQzaCJ7RX2QoCut.mjs} +1 -1
- package/browser/esm/{f-Z5vnvNnzj-0ujR.mjs → DKFJjTTJkuTmxyrC.mjs} +2 -2
- package/browser/esm/{D74i1p_CJmHw8HKb.mjs → Dm3PlbhnXRlbfwcc.mjs} +2 -2
- package/browser/esm/{CROAqUhKnVtkbBSm.mjs → TlUpdMxCXP6T7d5o.mjs} +1 -1
- package/browser/esm/{BCQs67LTVZ1xG82R.mjs → fw-xerhhOIbrtjj8.mjs} +2 -2
- package/browser/esm/{CNAv3IL7hhyvzLaF.mjs → hYm31nxQHahoYW47.mjs} +281 -275
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{CT1rO7_YWIvsG9hs.mjs → -4emwUa_cqmg0qom.mjs} +310 -309
- package/node/esm/{CoNllGglhnzJ6EJ4.mjs → B1_JjHLkB9GQt41F.mjs} +1 -1
- package/node/esm/{ZNTwnevSmMslvfiW.mjs → BaRyFsg1YMFUyXd4.mjs} +4 -4
- package/node/esm/{C0q_ulF7hl9zoVQ8.mjs → C1VsUbGfwY9-dlaU.mjs} +1 -1
- package/node/esm/{TN8KqnRPY-7Ln4Ez.mjs → C6HiyeKhrpNGFeb3.mjs} +2 -2
- package/node/esm/{CqhoZ8-FRZjS3p-D.mjs → CeRdSa9ObgI_mmCT.mjs} +324 -318
- package/node/esm/{CUPNuRm5G47rulaW.mjs → Dd0rxpiUIxg4BeeC.mjs} +2 -2
- package/node/esm/index.mjs +4 -4
- package/node/esm/{Bl5eH7YPk64NxkkI.mjs → yNj0KH21rJk2rfm7.mjs} +2 -2
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.22
|
|
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, Fr as l, Gt as c, In as u, It as h, Jn as d, Kn as p, Ln as f, Lr as g, Lt as m, Mr as b, Nn as
|
|
7
|
+
import { $ as t, $n as e, An as o, C as r, Ct as n, Dr as i, E as a, Fr as l, Gt as c, In as u, It as h, Jn as d, Kn as p, Ln as f, Lr as g, Lt as m, Mr as b, Nn as x, Nt as y, Pn as v, Qn as w, Rn as T, Rt as S, Sr as C, St as k, T as A, Tr as E, Tt as I, Ut as P, Vn as O, Wt as D, Xn as N, Yn as _, Z as $, Zn as M, _ as R, _t as V, ar as L, br as j, ct as B, dn as F, dr as H, er as W, f as z, fn as X, fr as q, ft as U, gr as G, hr as K, ht as J, in as Z, ir as Q, it as Y, jn as tt, jt as et, lt as ot, mn as st, mt as rt, n as nt, nn as it, nt as at, o as lt, or as ct, ot as ut, p as ht, pt as dt, rn as pt, rr as ft, sr as gt, t as mt, tn as bt, tr as xt, ur as yt, ut as vt, vr as wt, vt as Tt, wt as St, xt as Ct, yn as kt, yr as At } from "./C1VsUbGfwY9-dlaU.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 Mt, FormulaError as Rt, 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",
|
|
@@ -109,25 +109,25 @@ function he(t, e, o) {
|
|
|
109
109
|
const r = t.sortOrder ? ae[t.sortOrder] : void 0;
|
|
110
110
|
return r && "ascending" !== r && (s.sortOrder = r), t.crossFilter && "showItemsWithDataAtTop" !== t.crossFilter && (s.crossFilter = t.crossFilter), t.lockedPosition && (s.lockedPosition = !0), !1 === t.customListSort && (s.disabledCustomListSort = !0), t.cacheName && (s.cacheName = t.cacheName), t.startItem && (s.startItem = t.startItem), void 0 !== t.level && (s.level = t.level), t.uid && (s.uid = t.uid), s;
|
|
111
111
|
}
|
|
112
|
-
var de = "xl/richData/rdrichvaluestructure.xml", pe = "xl/richData/rdrichvalue.xml", fe = "xl/richData/rdarray.xml", ge = "xl/richData/rdsupportingpropertybagstructure.xml", me = "xl/richData/rdsupportingpropertybag.xml", be = "xl/richData/rdRichValueTypes.xml",
|
|
112
|
+
var de = "xl/richData/rdrichvaluestructure.xml", pe = "xl/richData/rdrichvalue.xml", fe = "xl/richData/rdarray.xml", ge = "xl/richData/rdsupportingpropertybagstructure.xml", me = "xl/richData/rdsupportingpropertybag.xml", be = "xl/richData/rdRichValueTypes.xml", xe = "xl/richData/richStyles.xml", ye = (t, e) => {
|
|
113
113
|
const o = [], s = t?.childNodes, r = s?.length ?? 0;
|
|
114
114
|
for (let t = 0; t < r; t++) {
|
|
115
115
|
const r = s.item(t);
|
|
116
116
|
1 !== r.nodeType || e && r.localName !== e || o.push(r);
|
|
117
117
|
}
|
|
118
118
|
return o;
|
|
119
|
-
}, ve = (t) =>
|
|
119
|
+
}, ve = (t) => ye(t, "k").map((t) => [t.getAttribute("n") ?? "", t.getAttribute("t") || null]), we = (t) => ye(t, "v").map((t) => ({
|
|
120
120
|
t: t.getAttribute("t") || null,
|
|
121
121
|
text: t.textContent ?? ""
|
|
122
122
|
})), Te = (t) => {
|
|
123
123
|
const e = /* @__PURE__ */ new Map();
|
|
124
|
-
for (const o of
|
|
124
|
+
for (const o of ye(t, "key")) {
|
|
125
125
|
const t = /* @__PURE__ */ new Map();
|
|
126
|
-
for (const e of
|
|
126
|
+
for (const e of ye(o, "flag")) t.set(e.getAttribute("name") ?? "", e.getAttribute("value") ?? "");
|
|
127
127
|
e.set(o.getAttribute("name") ?? "", t);
|
|
128
128
|
}
|
|
129
129
|
return e;
|
|
130
|
-
}, Se = /* @__PURE__ */ new Uint8Array(0),
|
|
130
|
+
}, Se = /* @__PURE__ */ new Uint8Array(0), Ce = class t {
|
|
131
131
|
constructor(t, e, o) {
|
|
132
132
|
this.buffers = /* @__PURE__ */ new Map(), this.zip = t, this.entries = e, this.rawBuffer = o;
|
|
133
133
|
}
|
|
@@ -201,7 +201,7 @@ var de = "xl/richData/rdrichvaluestructure.xml", pe = "xl/richData/rdrichvalue.x
|
|
|
201
201
|
async close() {
|
|
202
202
|
await this.zip.close();
|
|
203
203
|
}
|
|
204
|
-
},
|
|
204
|
+
}, ke = class {
|
|
205
205
|
constructor(t) {
|
|
206
206
|
this._sink = t, this._samples = [], this._t0 = Ae(), this._tPrev = this._t0, this._heapPrev = Ee();
|
|
207
207
|
}
|
|
@@ -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 Me = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Re = `-${Me}.0-9·̀-ͯ‿-⁀`;
|
|
256
|
+
new RegExp(`^[${Me}]$`, "u"), new RegExp(`^[${Re}]$`, "u"), new RegExp(`^[${Me}][${Re}]*$`, "u"), new RegExp(`^[${Re}]+$`, "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;
|
|
@@ -297,7 +297,7 @@ var Fe = function(t) {
|
|
|
297
297
|
38,
|
|
298
298
|
io
|
|
299
299
|
];
|
|
300
|
-
function
|
|
300
|
+
function xo(t, e, o) {
|
|
301
301
|
switch (e) {
|
|
302
302
|
case "xml":
|
|
303
303
|
o !== Ze && t.fail(`xml prefix must be bound to ${Ze}.`);
|
|
@@ -317,7 +317,7 @@ function yo(t, e, o) {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
var
|
|
320
|
+
var yo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
321
321
|
xmldecl: "xmlDeclHandler",
|
|
322
322
|
text: "textHandler",
|
|
323
323
|
processinginstruction: "piHandler",
|
|
@@ -345,7 +345,7 @@ var xo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
|
345
345
|
};
|
|
346
346
|
const t = this.opt.additionalNamespaces;
|
|
347
347
|
null != t && (function(t, e) {
|
|
348
|
-
for (const o of Object.keys(e))
|
|
348
|
+
for (const o of Object.keys(e)) xo(t, o, e[o]);
|
|
349
349
|
}(this, t), Object.assign(this.ns, t));
|
|
350
350
|
} else this.nameStartCheck = We, this.nameCheck = ze, this.isName = wo, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
|
|
351
351
|
this.stateTable = [
|
|
@@ -940,10 +940,10 @@ var xo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
|
940
940
|
};
|
|
941
941
|
if (this.attribList.push(r), this.attributeHandler?.(r), "xmlns" === o) {
|
|
942
942
|
const t = e.trim();
|
|
943
|
-
"1.0" === this.currentXMLVersion && "" === t && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[s] = t,
|
|
943
|
+
"1.0" === this.currentXMLVersion && "" === t && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[s] = t, xo(this, s, t);
|
|
944
944
|
} else if ("xmlns" === t) {
|
|
945
945
|
const t = e.trim();
|
|
946
|
-
this.topNS[""] = t,
|
|
946
|
+
this.topNS[""] = t, xo(this, "", t);
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
pushAttribPlain(t, e) {
|
|
@@ -1035,20 +1035,20 @@ var xo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
|
1035
1035
|
let e = NaN;
|
|
1036
1036
|
return "x" === t[1] && /^#x[0-9a-f]+$/i.test(t) ? e = parseInt(t.slice(2), 16) : /^#[0-9]+$/.test(t) && (e = parseInt(t.slice(1), 10)), this.isChar(e) ? String.fromCodePoint(e) : (this.fail("malformed character entity."), `&${t};`);
|
|
1037
1037
|
}
|
|
1038
|
-
},
|
|
1038
|
+
}, Co = /&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g, ko = {
|
|
1039
1039
|
amp: "&",
|
|
1040
1040
|
lt: "<",
|
|
1041
1041
|
gt: ">",
|
|
1042
1042
|
quot: "\"",
|
|
1043
1043
|
apos: "'"
|
|
1044
1044
|
}, Ao = (t, e) => {
|
|
1045
|
-
const o =
|
|
1045
|
+
const o = ko[e];
|
|
1046
1046
|
if (void 0 !== o) return o;
|
|
1047
1047
|
const s = 120 === e.charCodeAt(1) ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
1048
1048
|
return s > 0 && s <= 1114111 ? String.fromCodePoint(s) : t;
|
|
1049
1049
|
}, Eo = (t) => {
|
|
1050
1050
|
let e = t;
|
|
1051
|
-
return -1 !== e.indexOf("\r") && (e = e.replace(/\r\n?/g, "\n")), -1 !== e.indexOf("&") && (e = e.replace(
|
|
1051
|
+
return -1 !== e.indexOf("\r") && (e = e.replace(/\r\n?/g, "\n")), -1 !== e.indexOf("&") && (e = e.replace(Co, Ao)), e;
|
|
1052
1052
|
}, Io = (t) => {
|
|
1053
1053
|
let e = t;
|
|
1054
1054
|
const o = e.length;
|
|
@@ -1059,7 +1059,7 @@ var xo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
|
1059
1059
|
break;
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
|
-
return -1 !== e.indexOf("&") && (e = e.replace(
|
|
1062
|
+
return -1 !== e.indexOf("&") && (e = e.replace(Co, Ao)), e;
|
|
1063
1063
|
}, Po = (t) => 32 === t || 9 === t || 10 === t || 13 === t, Oo = class t {
|
|
1064
1064
|
constructor() {
|
|
1065
1065
|
this._openTagHandler = void 0, this._closeTagHandler = void 0, this._textHandler = void 0, this._cdataHandler = void 0, this._errorHandler = void 0, this._endHandler = void 0, this._scanners = null, this._carry = "", this._text = "", this._tags = [], this._sawRoot = !1, this._closed = !1;
|
|
@@ -1291,13 +1291,13 @@ var xo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
|
1291
1291
|
...o
|
|
1292
1292
|
});
|
|
1293
1293
|
let r;
|
|
1294
|
-
e.onOpenTagStart && s.on(
|
|
1294
|
+
e.onOpenTagStart && s.on(yo.Events.OpenTagStart, e.onOpenTagStart), e.onOpenTag && s.on(yo.Events.OpenTag, e.onOpenTag), e.onCloseTag && s.on(yo.Events.CloseTag, e.onCloseTag), e.onAttribute && s.on(yo.Events.Attribute, e.onAttribute), e.onText && s.on(yo.Events.Text, e.onText), e.onError && s.on(yo.Events.Error, e.onError);
|
|
1295
1295
|
const n = e.onEnd;
|
|
1296
1296
|
if (n) {
|
|
1297
1297
|
const t = () => {
|
|
1298
1298
|
r = n();
|
|
1299
1299
|
};
|
|
1300
|
-
s.on(
|
|
1300
|
+
s.on(yo.Events.End, t);
|
|
1301
1301
|
}
|
|
1302
1302
|
for (;;) {
|
|
1303
1303
|
const { value: e, done: o } = await t.read();
|
|
@@ -1306,14 +1306,14 @@ var xo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
return s.close(), r;
|
|
1308
1308
|
};
|
|
1309
|
-
})(
|
|
1309
|
+
})(yo || (yo = {}));
|
|
1310
1310
|
var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t && "0" !== t && "off" !== t && "false" !== t && null, No = (t) => {
|
|
1311
1311
|
const e = parseInt(t);
|
|
1312
1312
|
return isNaN(e) ? null : e;
|
|
1313
1313
|
}, _o = (t) => {
|
|
1314
1314
|
const e = parseFloat(t);
|
|
1315
1315
|
return isNaN(e) ? null : e;
|
|
1316
|
-
}, $o = null,
|
|
1316
|
+
}, $o = null, Mo = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Ro = (t) => Mo(t).replace(/"/g, """), Vo = class {
|
|
1317
1317
|
constructor() {
|
|
1318
1318
|
this._registeredVisitors = /* @__PURE__ */ new Map();
|
|
1319
1319
|
}
|
|
@@ -1342,7 +1342,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1342
1342
|
if (o = e(o), null == o) return;
|
|
1343
1343
|
}
|
|
1344
1344
|
return o;
|
|
1345
|
-
},
|
|
1345
|
+
}, x = {
|
|
1346
1346
|
getSource: () => d?.source ?? null,
|
|
1347
1347
|
setSource: (t) => {
|
|
1348
1348
|
d.source = t;
|
|
@@ -1352,7 +1352,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1352
1352
|
},
|
|
1353
1353
|
getFrom: () => l,
|
|
1354
1354
|
getAttribute: (t, e) => b(t, e) ?? null,
|
|
1355
|
-
hasAttribute: (t) => null !==
|
|
1355
|
+
hasAttribute: (t) => null !== x.getAttribute(t),
|
|
1356
1356
|
getParent: () => {
|
|
1357
1357
|
const t = u[u.length - 2];
|
|
1358
1358
|
return t.parent ?? t.source;
|
|
@@ -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}="${Ro("string" == typeof s ? s : s?.value ?? "")}"`;
|
|
1389
1389
|
}
|
|
1390
1390
|
return o + ">";
|
|
1391
1391
|
})(t)), i = {
|
|
@@ -1403,7 +1403,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1403
1403
|
c = i?.visitor ?? null, a = e, l = t;
|
|
1404
1404
|
let b = !!m && null === m.to;
|
|
1405
1405
|
if (m && !b && m.scope) {
|
|
1406
|
-
const t = m.scope(
|
|
1406
|
+
const t = m.scope(x);
|
|
1407
1407
|
null === t ? b = !0 : t && (r.push(t), i.pushedScope = !0);
|
|
1408
1408
|
}
|
|
1409
1409
|
m && (0 === n.length ? (d = h, i.destination = d, i.pushedDestination = !0, u.push(d)) : b ? (d = null, i.destination = null) : m.transparent ? i.destination = d : (d = {
|
|
@@ -1411,8 +1411,8 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1411
1411
|
source: {},
|
|
1412
1412
|
parent: null
|
|
1413
1413
|
}, i.destination = d, i.pushedDestination = !0, u.push(d))), n.push(i), p = b;
|
|
1414
|
-
const
|
|
1415
|
-
void 0 !==
|
|
1414
|
+
const y = c?.openTag?.(x);
|
|
1415
|
+
void 0 !== y && (d.parent = y), m?.raw && !b && (f = [], g = i);
|
|
1416
1416
|
},
|
|
1417
1417
|
onCloseTag: (t) => {
|
|
1418
1418
|
let e = t.name;
|
|
@@ -1423,19 +1423,19 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1423
1423
|
if (n[n.length - 1] !== g) return f.push(`</${t.name}>`), n.pop(), i = n[n.length - 1] ?? null, a = i?.local ?? null, void (l = i?.tag ?? null);
|
|
1424
1424
|
m = f.join(""), f = null, g = null, b = !0;
|
|
1425
1425
|
}
|
|
1426
|
-
p || c?.closeTag?.(
|
|
1427
|
-
const
|
|
1428
|
-
i = n[n.length - 1] ?? null,
|
|
1429
|
-
const v =
|
|
1430
|
-
if (v &&
|
|
1426
|
+
p || c?.closeTag?.(x), b && (m = null);
|
|
1427
|
+
const y = n.pop() ?? null;
|
|
1428
|
+
i = n[n.length - 1] ?? null, y?.pushedScope && r.pop();
|
|
1429
|
+
const v = y?.destination;
|
|
1430
|
+
if (v && y.pushedDestination) {
|
|
1431
1431
|
u.pop(), d = u[u.length - 1] ?? h;
|
|
1432
|
-
const t =
|
|
1433
|
-
t && t.to && void 0 !== v.source && (Array.isArray(t.to) ? d.source.push ? d.source.push(v.source) : o?.(`Unable to parse array for ${t.from} at ${
|
|
1432
|
+
const t = y.visitor;
|
|
1433
|
+
t && t.to && void 0 !== v.source && (Array.isArray(t.to) ? d.source.push ? d.source.push(v.source) : o?.(`Unable to parse array for ${t.from} at ${x.getPath()}`) : v.key ? d.source[v.key] = v.source : "string" == typeof t.to && (d.source[t.to] = v.source));
|
|
1434
1434
|
} else v || (d = u[u.length - 1] ?? h);
|
|
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(Mo(t)) : c?.text?.(t, x);
|
|
1439
1439
|
},
|
|
1440
1440
|
onEnd: e
|
|
1441
1441
|
};
|
|
@@ -1596,7 +1596,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1596
1596
|
s.underline = I(o.val);
|
|
1597
1597
|
break;
|
|
1598
1598
|
case "vertAlign": {
|
|
1599
|
-
const t =
|
|
1599
|
+
const t = Ct(o.val);
|
|
1600
1600
|
void 0 !== t && (s.baseline = t);
|
|
1601
1601
|
break;
|
|
1602
1602
|
}
|
|
@@ -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
|
+
k(s, o.val);
|
|
1625
1625
|
break;
|
|
1626
1626
|
case "color": {
|
|
1627
1627
|
const t = o.rgb;
|
|
@@ -1714,7 +1714,7 @@ var is = (t) => {
|
|
|
1714
1714
|
return n?.get(e) || (a?.(`A color filter or sort names a format that does not exist (dxfId '${e}').`), {});
|
|
1715
1715
|
};
|
|
1716
1716
|
let f = !1;
|
|
1717
|
-
const g = h?.get("parseInlineDxf"), m = h?.get(as), b = (t) => m && t ? m.readDetached(t) : t,
|
|
1717
|
+
const g = h?.get("parseInlineDxf"), m = h?.get(as), b = (t) => m && t ? m.readDetached(t) : t, x = new te.TransposedBuilder();
|
|
1718
1718
|
let v = null, w = "topLeft";
|
|
1719
1719
|
d.registerVisitor({
|
|
1720
1720
|
from: "autoFilter",
|
|
@@ -1775,7 +1775,10 @@ var is = (t) => {
|
|
|
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
|
-
}, S = (t) => {
|
|
1778
|
+
}, S = (t, e) => {
|
|
1779
|
+
const o = (t, e) => !t || t.type === e && void 0 === t.value && !t.exclusive, [s, r] = e;
|
|
1780
|
+
o(s, Ft.ColorStopType.Min) ? delete t.minPoint : t.minPoint = s, o(r, Ft.ColorStopType.Max) ? delete t.maxPoint : t.maxPoint = r;
|
|
1781
|
+
}, k = (t) => {
|
|
1779
1782
|
const e = t.conditions ?? [], o = [];
|
|
1780
1783
|
for (let t = 0; t < e.length; t++) {
|
|
1781
1784
|
const s = e[t], r = {};
|
|
@@ -1788,7 +1791,7 @@ var is = (t) => {
|
|
|
1788
1791
|
to: {},
|
|
1789
1792
|
openTag: (t) => {},
|
|
1790
1793
|
closeTag: (t) => {
|
|
1791
|
-
const e = t.getSource(), o = e.colors ?? [], s =
|
|
1794
|
+
const e = t.getSource(), o = e.colors ?? [], s = k(e);
|
|
1792
1795
|
for (let t = 0; t < s.length; t++) s[t].color = o[t];
|
|
1793
1796
|
t.getParent().scale = {
|
|
1794
1797
|
type: Ft.ScaleType.ColorScale,
|
|
@@ -1802,11 +1805,9 @@ var is = (t) => {
|
|
|
1802
1805
|
t.copyTo("maxLength", No), t.copyTo("minLength", No), t.copyTo("showValue", Do);
|
|
1803
1806
|
},
|
|
1804
1807
|
closeTag: (t) => {
|
|
1805
|
-
const e = t.getSource(), o = {
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
gradient: !0
|
|
1809
|
-
}, s = e.colors?.[0];
|
|
1808
|
+
const e = t.getSource(), o = { type: Ft.ScaleType.DataBar };
|
|
1809
|
+
S(o, k(e));
|
|
1810
|
+
const s = e.colors?.[0];
|
|
1810
1811
|
s && (o.color = s), T(o, e), void 0 !== e.showValue && (o.showValue = e.showValue), t.getParent().scale = o;
|
|
1811
1812
|
}
|
|
1812
1813
|
}), d.registerVisitor({
|
|
@@ -1818,7 +1819,7 @@ var is = (t) => {
|
|
|
1818
1819
|
closeTag: (t) => {
|
|
1819
1820
|
const e = t.getSource(), o = {
|
|
1820
1821
|
type: Ft.ScaleType.IconSet,
|
|
1821
|
-
stops:
|
|
1822
|
+
stops: k(e)
|
|
1822
1823
|
};
|
|
1823
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;
|
|
1824
1825
|
}
|
|
@@ -1898,7 +1899,7 @@ var is = (t) => {
|
|
|
1898
1899
|
e.operator = o.operator, e.param = o.param;
|
|
1899
1900
|
}
|
|
1900
1901
|
});
|
|
1901
|
-
const
|
|
1902
|
+
const A = {
|
|
1902
1903
|
from: "filters",
|
|
1903
1904
|
to: {},
|
|
1904
1905
|
openTag: (t) => {
|
|
@@ -1906,8 +1907,8 @@ var is = (t) => {
|
|
|
1906
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;
|
|
1907
1908
|
}
|
|
1908
1909
|
};
|
|
1909
|
-
d.registerVisitor(
|
|
1910
|
-
const
|
|
1910
|
+
d.registerVisitor(A);
|
|
1911
|
+
const E = {
|
|
1911
1912
|
from: "filter",
|
|
1912
1913
|
openTag: (t) => {
|
|
1913
1914
|
const e = t.getParent();
|
|
@@ -1915,8 +1916,8 @@ var is = (t) => {
|
|
|
1915
1916
|
o || (o = [], e.items = o), o.push(t.getAttribute("val", $o));
|
|
1916
1917
|
}
|
|
1917
1918
|
};
|
|
1918
|
-
d.registerVisitor(
|
|
1919
|
-
const
|
|
1919
|
+
d.registerVisitor(E);
|
|
1920
|
+
const I = {
|
|
1920
1921
|
from: "dateGroupItem",
|
|
1921
1922
|
to: {},
|
|
1922
1923
|
openTag: (t) => {
|
|
@@ -1925,12 +1926,12 @@ var is = (t) => {
|
|
|
1925
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);
|
|
1926
1927
|
}
|
|
1927
1928
|
};
|
|
1928
|
-
d.registerVisitor(
|
|
1929
|
-
const
|
|
1930
|
-
|
|
1929
|
+
d.registerVisitor(I);
|
|
1930
|
+
const O = /* @__PURE__ */ new Map();
|
|
1931
|
+
O.set("filterColumn", {
|
|
1931
1932
|
from: "filterColumn",
|
|
1932
1933
|
transparent: !0
|
|
1933
|
-
}),
|
|
1934
|
+
}), O.set("filters", A), O.set("filter", E), O.set("dateGroupItem", I), d.registerVisitor({
|
|
1934
1935
|
from: "customFilters",
|
|
1935
1936
|
openTag: (t) => {
|
|
1936
1937
|
const e = t.getParent(), o = t.getAttribute("and"), s = "and" === o || "1" === o, r = [];
|
|
@@ -1948,14 +1949,14 @@ var is = (t) => {
|
|
|
1948
1949
|
const e = t.getParent();
|
|
1949
1950
|
let o;
|
|
1950
1951
|
Array.isArray(e) ? (o = {}, e.push(o)) : o = e;
|
|
1951
|
-
const s =
|
|
1952
|
+
const s = kt({
|
|
1952
1953
|
operator: t.getAttribute("operator"),
|
|
1953
1954
|
val: t.getAttribute("val")
|
|
1954
1955
|
}, (e) => t.warn(e));
|
|
1955
1956
|
s && (o.operator = s.operator, o.param = s.param);
|
|
1956
1957
|
}
|
|
1957
1958
|
});
|
|
1958
|
-
let
|
|
1959
|
+
let D = {}, N = null;
|
|
1959
1960
|
d.registerVisitor({
|
|
1960
1961
|
from: "sortState",
|
|
1961
1962
|
to: {},
|
|
@@ -1964,16 +1965,16 @@ var is = (t) => {
|
|
|
1964
1965
|
let o = e.v;
|
|
1965
1966
|
if (!o) return;
|
|
1966
1967
|
const s = {};
|
|
1967
|
-
|
|
1968
|
+
D = {};
|
|
1968
1969
|
const r = t.getAttribute("caseSensitive", Do);
|
|
1969
|
-
null != r && (
|
|
1970
|
+
null != r && (D.collatorOptions = r ? Qt.CaseSensitiveOptions : Qt.CaseInsensitiveOptions);
|
|
1970
1971
|
const n = t.getAttribute("sortMethod");
|
|
1971
|
-
"stroke" !== n && "pinYin" !== n || (
|
|
1972
|
-
...
|
|
1972
|
+
"stroke" !== n && "pinYin" !== n || (D.collatorOptions = {
|
|
1973
|
+
...D.collatorOptions,
|
|
1973
1974
|
collation: "stroke" === n ? "stroke" : "pinyin"
|
|
1974
1975
|
}), t.getAttribute("columnSort", Do) && (s.axis = zt.Axis.Column);
|
|
1975
1976
|
const i = t.getAttribute("ref"), a = e.r;
|
|
1976
|
-
|
|
1977
|
+
N = i && a ? Nt.fastStringToRange(i) : null, N && (s.extent = { range: y(a, N) }), o.sort = s, t.setSource(e);
|
|
1977
1978
|
}
|
|
1978
1979
|
}), d.registerVisitor({
|
|
1979
1980
|
from: "sortCondition",
|
|
@@ -1989,10 +1990,10 @@ var is = (t) => {
|
|
|
1989
1990
|
let i = 0, a = null;
|
|
1990
1991
|
if (n) {
|
|
1991
1992
|
const t = Nt.fastStringToRange(n, ms), o = t.colStart, s = e.r, r = s.colStart;
|
|
1992
|
-
i = s ? o - r : o, s &&
|
|
1993
|
+
i = s ? o - r : o, s && N && (a = et(s, N, t));
|
|
1993
1994
|
}
|
|
1994
1995
|
s.extent && (s.extent.sorts ??= []).push(a);
|
|
1995
|
-
const l = { ...
|
|
1996
|
+
const l = { ...D }, c = st(t.getAttribute("sortBy"));
|
|
1996
1997
|
c && (l.sortOn = c);
|
|
1997
1998
|
const u = p(t);
|
|
1998
1999
|
u && (l.style = u), t.copyToObject(l, "iconSet", $o), t.copyToObject(l, "customList", $o), l.reverse = t.getAttribute("descending", Do) ?? !1;
|
|
@@ -2003,7 +2004,7 @@ var is = (t) => {
|
|
|
2003
2004
|
r.push(h);
|
|
2004
2005
|
}
|
|
2005
2006
|
});
|
|
2006
|
-
const
|
|
2007
|
+
const _ = (t) => {
|
|
2007
2008
|
v = t.getSource(), w = "topLeft", t.copyTo("topLeft", $o, "topLeftCell");
|
|
2008
2009
|
const e = P(t.getAttribute("defaultGridColor")), o = t.getAttribute("colorId");
|
|
2009
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");
|
|
@@ -2018,7 +2019,7 @@ var is = (t) => {
|
|
|
2018
2019
|
from: "sheetView",
|
|
2019
2020
|
to: "view",
|
|
2020
2021
|
openTag: (t) => {
|
|
2021
|
-
|
|
2022
|
+
_(t);
|
|
2022
2023
|
},
|
|
2023
2024
|
closeTag: () => {
|
|
2024
2025
|
v = null;
|
|
@@ -2033,10 +2034,10 @@ var is = (t) => {
|
|
|
2033
2034
|
from: "customSheetView",
|
|
2034
2035
|
to: [],
|
|
2035
2036
|
openTag: (t) => {
|
|
2036
|
-
|
|
2037
|
+
M = !0, _(t);
|
|
2037
2038
|
},
|
|
2038
2039
|
closeTag: () => {
|
|
2039
|
-
|
|
2040
|
+
M = !1, v = null;
|
|
2040
2041
|
}
|
|
2041
2042
|
}), d.registerVisitor({
|
|
2042
2043
|
from: "selection",
|
|
@@ -2101,13 +2102,13 @@ var is = (t) => {
|
|
|
2101
2102
|
s && (o.tabColor = s);
|
|
2102
2103
|
}
|
|
2103
2104
|
});
|
|
2104
|
-
let
|
|
2105
|
-
const
|
|
2105
|
+
let M = !1;
|
|
2106
|
+
const W = () => o.pageLayout ??= {};
|
|
2106
2107
|
d.registerVisitor({
|
|
2107
2108
|
from: "pageSetUpPr",
|
|
2108
2109
|
to: null,
|
|
2109
2110
|
openTag: (t) => {
|
|
2110
|
-
!0 === t.getAttribute("fitToPage", Do) && (
|
|
2111
|
+
!0 === t.getAttribute("fitToPage", Do) && (W().fitToPage = !0), !1 === t.getAttribute("autoPageBreaks", Do) && (W().hideAutoPageBreaks = !0);
|
|
2111
2112
|
}
|
|
2112
2113
|
}), d.registerVisitor({
|
|
2113
2114
|
from: "outlinePr",
|
|
@@ -2126,7 +2127,7 @@ var is = (t) => {
|
|
|
2126
2127
|
from: "pageMargins",
|
|
2127
2128
|
to: null,
|
|
2128
2129
|
openTag: (t) => {
|
|
2129
|
-
if (
|
|
2130
|
+
if (M) return;
|
|
2130
2131
|
const e = (e, o) => t.getAttribute(e, _o) ?? o, o = {
|
|
2131
2132
|
left: e("left", .7),
|
|
2132
2133
|
right: e("right", .7),
|
|
@@ -2135,14 +2136,14 @@ var is = (t) => {
|
|
|
2135
2136
|
header: e("header", .3),
|
|
2136
2137
|
footer: e("footer", .3)
|
|
2137
2138
|
};
|
|
2138
|
-
.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 || (W().margins = o);
|
|
2139
2140
|
}
|
|
2140
2141
|
}), d.registerVisitor({
|
|
2141
2142
|
from: "pageSetup",
|
|
2142
2143
|
to: null,
|
|
2143
2144
|
openTag: (t) => {
|
|
2144
|
-
if (
|
|
2145
|
-
const e =
|
|
2145
|
+
if (M) return;
|
|
2146
|
+
const e = W(), o = (e) => t.getAttribute(e, No) ?? void 0, r = (e) => t.getAttribute(e, Do), n = t.getAttribute("orientation");
|
|
2146
2147
|
"landscape" !== n && "portrait" !== n || (e.orientation = n);
|
|
2147
2148
|
for (const t of [
|
|
2148
2149
|
"paperSize",
|
|
@@ -2172,49 +2173,49 @@ var is = (t) => {
|
|
|
2172
2173
|
from: "printOptions",
|
|
2173
2174
|
to: null,
|
|
2174
2175
|
openTag: (t) => {
|
|
2175
|
-
if (
|
|
2176
|
+
if (M) return;
|
|
2176
2177
|
const e = (e) => !0 === t.getAttribute(e, Do);
|
|
2177
|
-
e("horizontalCentered") && (
|
|
2178
|
+
e("horizontalCentered") && (W().centerHorizontally = !0), e("verticalCentered") && (W().centerVertically = !0), e("gridLines") && (W().printGridlines = !0), e("headings") && (W().printHeadings = !0);
|
|
2178
2179
|
}
|
|
2179
2180
|
}), d.registerVisitor({
|
|
2180
2181
|
from: "headerFooter",
|
|
2181
2182
|
to: {},
|
|
2182
2183
|
openTag: (t) => {
|
|
2183
|
-
if (
|
|
2184
|
+
if (M) return;
|
|
2184
2185
|
const e = {}, o = (e) => t.getAttribute(e, Do);
|
|
2185
|
-
!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 && (W().headerFooter = e);
|
|
2186
2187
|
}
|
|
2187
2188
|
});
|
|
2188
2189
|
for (const t of dt) d.registerVisitor({
|
|
2189
2190
|
from: t,
|
|
2190
2191
|
to: {},
|
|
2191
2192
|
text: (e, o) => {
|
|
2192
|
-
if (
|
|
2193
|
-
const s =
|
|
2193
|
+
if (M) return;
|
|
2194
|
+
const s = W(), r = s.headerFooter ??= {};
|
|
2194
2195
|
r[t] = (r[t] ?? "") + l(e);
|
|
2195
2196
|
}
|
|
2196
2197
|
});
|
|
2197
|
-
let
|
|
2198
|
+
let z = "rowBreaks";
|
|
2198
2199
|
for (const [t, e] of [["rowBreaks", "rowBreaks"], ["colBreaks", "columnBreaks"]]) d.registerVisitor({
|
|
2199
2200
|
from: t,
|
|
2200
2201
|
to: {},
|
|
2201
2202
|
openTag: () => {
|
|
2202
|
-
|
|
2203
|
+
z = e;
|
|
2203
2204
|
}
|
|
2204
2205
|
});
|
|
2205
2206
|
d.registerVisitor({
|
|
2206
2207
|
from: "brk",
|
|
2207
2208
|
to: null,
|
|
2208
2209
|
openTag: (t) => {
|
|
2209
|
-
if (
|
|
2210
|
+
if (M) return;
|
|
2210
2211
|
const e = t.getAttribute("id", No);
|
|
2211
2212
|
if (null == e) return;
|
|
2212
2213
|
const o = { index: e }, s = t.getAttribute("min", No);
|
|
2213
2214
|
null != s && (o.min = s);
|
|
2214
2215
|
const r = t.getAttribute("max", No);
|
|
2215
2216
|
null != r && (o.max = r), !0 !== t.getAttribute("man", Do) && (o.automatic = !0), !0 === t.getAttribute("pt", Do) && (o.pivot = !0);
|
|
2216
|
-
const n =
|
|
2217
|
-
(n[
|
|
2217
|
+
const n = W();
|
|
2218
|
+
(n[z] ??= []).push(o);
|
|
2218
2219
|
}
|
|
2219
2220
|
}), d.registerVisitor({
|
|
2220
2221
|
from: "ignoredErrors",
|
|
@@ -2254,7 +2255,7 @@ var is = (t) => {
|
|
|
2254
2255
|
});
|
|
2255
2256
|
}
|
|
2256
2257
|
});
|
|
2257
|
-
const
|
|
2258
|
+
const G = {
|
|
2258
2259
|
from: "dataValidation",
|
|
2259
2260
|
to: [],
|
|
2260
2261
|
openTag: (t) => {
|
|
@@ -2277,7 +2278,7 @@ var is = (t) => {
|
|
|
2277
2278
|
o && (t.getAttribute("allowBlank", Do) && (o.includeBlanks = !0), e.v.condition = o), delete e.rule;
|
|
2278
2279
|
}
|
|
2279
2280
|
};
|
|
2280
|
-
d.registerVisitor(
|
|
2281
|
+
d.registerVisitor(G), d.registerVisitor({
|
|
2281
2282
|
from: "formula1",
|
|
2282
2283
|
to: {},
|
|
2283
2284
|
text: (t, e) => {
|
|
@@ -2301,7 +2302,7 @@ var is = (t) => {
|
|
|
2301
2302
|
t.getSource().resId = o;
|
|
2302
2303
|
}
|
|
2303
2304
|
});
|
|
2304
|
-
const
|
|
2305
|
+
const Z = {
|
|
2305
2306
|
from: "slicer",
|
|
2306
2307
|
to: {},
|
|
2307
2308
|
openTag: (t) => {
|
|
@@ -2313,8 +2314,8 @@ var is = (t) => {
|
|
|
2313
2314
|
for (const t of n) r.slicers[t] = o[t];
|
|
2314
2315
|
}
|
|
2315
2316
|
};
|
|
2316
|
-
d.registerVisitor(
|
|
2317
|
-
const
|
|
2317
|
+
d.registerVisitor(Z);
|
|
2318
|
+
const tt = {
|
|
2318
2319
|
from: "timelineRef",
|
|
2319
2320
|
to: {},
|
|
2320
2321
|
openTag: (t) => {
|
|
@@ -2324,7 +2325,7 @@ var is = (t) => {
|
|
|
2324
2325
|
r.slicers ??= {};
|
|
2325
2326
|
for (const t of Object.keys(o)) r.slicers[t] = o[t];
|
|
2326
2327
|
}
|
|
2327
|
-
},
|
|
2328
|
+
}, ot = (t, e) => ({
|
|
2328
2329
|
from: t,
|
|
2329
2330
|
to: {},
|
|
2330
2331
|
openTag: (t) => {
|
|
@@ -2336,8 +2337,8 @@ var is = (t) => {
|
|
|
2336
2337
|
closeTag: (t) => {
|
|
2337
2338
|
e(String(t.getSource() ?? ""), t);
|
|
2338
2339
|
}
|
|
2339
|
-
}),
|
|
2340
|
-
|
|
2340
|
+
}), nt = /* @__PURE__ */ new Map();
|
|
2341
|
+
nt.set("dataValidations", {
|
|
2341
2342
|
from: "dataValidations",
|
|
2342
2343
|
to: "validations",
|
|
2343
2344
|
openTag: (t) => {
|
|
@@ -2347,15 +2348,15 @@ var is = (t) => {
|
|
|
2347
2348
|
closeTag: (t) => {
|
|
2348
2349
|
0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
|
|
2349
2350
|
}
|
|
2350
|
-
}),
|
|
2351
|
-
...
|
|
2351
|
+
}), nt.set("dataValidation", {
|
|
2352
|
+
...G,
|
|
2352
2353
|
closeTag: (t) => {
|
|
2353
|
-
|
|
2354
|
+
G.closeTag(t);
|
|
2354
2355
|
const e = t.getSource();
|
|
2355
2356
|
e && !e.r && (t.warn("x14 dataValidation with no xm:sqref was dropped."), t.setSource(void 0));
|
|
2356
2357
|
}
|
|
2357
2358
|
});
|
|
2358
|
-
const
|
|
2359
|
+
const it = (t) => ({
|
|
2359
2360
|
from: t,
|
|
2360
2361
|
to: {},
|
|
2361
2362
|
openTag: (e) => {
|
|
@@ -2365,18 +2366,18 @@ var is = (t) => {
|
|
|
2365
2366
|
});
|
|
2366
2367
|
}
|
|
2367
2368
|
});
|
|
2368
|
-
|
|
2369
|
+
nt.set("formula1", it("formula1")), nt.set("formula2", it("formula2")), nt.set("f", ot("f", (t, e) => {
|
|
2369
2370
|
const o = e.getParent(), s = o?.rule;
|
|
2370
2371
|
s && (s[o.key] = Y(b(t), s.type));
|
|
2371
|
-
})),
|
|
2372
|
+
})), nt.set("sqref", ot("sqref", (t, e) => {
|
|
2372
2373
|
const o = e.getParent(), s = t.trim();
|
|
2373
2374
|
o && s && (o.r = s.split(/\s+/).join(","));
|
|
2374
2375
|
}));
|
|
2375
|
-
const
|
|
2376
|
-
|
|
2376
|
+
const lt = /* @__PURE__ */ new Map(), ht = [], pt = /* @__PURE__ */ new Map();
|
|
2377
|
+
pt.set("conditionalFormattings", {
|
|
2377
2378
|
from: "conditionalFormattings",
|
|
2378
2379
|
transparent: !0
|
|
2379
|
-
}),
|
|
2380
|
+
}), pt.set("conditionalFormatting", {
|
|
2380
2381
|
from: "conditionalFormatting",
|
|
2381
2382
|
to: {},
|
|
2382
2383
|
openTag: (t) => {
|
|
@@ -2386,10 +2387,10 @@ var is = (t) => {
|
|
|
2386
2387
|
const e = t.getSource(), o = e?.rules ?? [];
|
|
2387
2388
|
for (let t = 0; t < o.length; t++) {
|
|
2388
2389
|
const s = o[t];
|
|
2389
|
-
s.sqref = e.sqref, s.id ?
|
|
2390
|
+
s.sqref = e.sqref, s.id ? lt.set(s.id, s) : ht.push(s);
|
|
2390
2391
|
}
|
|
2391
2392
|
}
|
|
2392
|
-
}),
|
|
2393
|
+
}), pt.set("cfRule", {
|
|
2393
2394
|
from: "cfRule",
|
|
2394
2395
|
to: {},
|
|
2395
2396
|
openTag: (t) => {
|
|
@@ -2399,10 +2400,10 @@ var is = (t) => {
|
|
|
2399
2400
|
const e = t.getSource();
|
|
2400
2401
|
e && t.getParent()?.rules?.push(e);
|
|
2401
2402
|
}
|
|
2402
|
-
}),
|
|
2403
|
+
}), pt.set("sqref", ot("sqref", (t, e) => {
|
|
2403
2404
|
const o = e.getParent(), s = t.trim();
|
|
2404
2405
|
o && s && (o.sqref = s);
|
|
2405
|
-
})),
|
|
2406
|
+
})), pt.set("dataBar", {
|
|
2406
2407
|
from: "dataBar",
|
|
2407
2408
|
to: {},
|
|
2408
2409
|
openTag: (t) => {
|
|
@@ -2411,7 +2412,7 @@ var is = (t) => {
|
|
|
2411
2412
|
closeTag: (t) => {
|
|
2412
2413
|
t.getParent().dataBar = t.getSource();
|
|
2413
2414
|
}
|
|
2414
|
-
}),
|
|
2415
|
+
}), pt.set("iconSet", {
|
|
2415
2416
|
from: "iconSet",
|
|
2416
2417
|
to: {},
|
|
2417
2418
|
openTag: (t) => {
|
|
@@ -2421,26 +2422,26 @@ var is = (t) => {
|
|
|
2421
2422
|
t.getParent().iconSet = t.getSource();
|
|
2422
2423
|
}
|
|
2423
2424
|
});
|
|
2424
|
-
const
|
|
2425
|
-
|
|
2425
|
+
const mt = /* @__PURE__ */ new Map();
|
|
2426
|
+
mt.set("f", ot("f", (t, e) => {
|
|
2426
2427
|
const o = e.getParent();
|
|
2427
2428
|
if (!o) return;
|
|
2428
2429
|
const s = t.trim(), r = Number(s);
|
|
2429
2430
|
o.value = s.length > 0 && Number.isFinite(r) ? r : b(t);
|
|
2430
|
-
})),
|
|
2431
|
+
})), pt.set("cfvo", {
|
|
2431
2432
|
from: "cfvo",
|
|
2432
2433
|
to: {},
|
|
2433
|
-
scope: () =>
|
|
2434
|
+
scope: () => mt,
|
|
2434
2435
|
openTag: (t) => {
|
|
2435
2436
|
const e = t.getParent();
|
|
2436
2437
|
e.conditions || (e.conditions = []);
|
|
2437
2438
|
const o = t.getSource();
|
|
2438
2439
|
e.conditions.push(o), t.copyTo("type", $o), !1 === t.getAttribute("gte", Do) && (o.exclusive = !0);
|
|
2439
2440
|
}
|
|
2440
|
-
}),
|
|
2441
|
+
}), pt.set("f", ot("f", (t, e) => {
|
|
2441
2442
|
const o = e.getParent();
|
|
2442
2443
|
o && (o.formulas ??= []).push(b(t));
|
|
2443
|
-
})),
|
|
2444
|
+
})), pt.set("dxf", {
|
|
2444
2445
|
from: "dxf",
|
|
2445
2446
|
to: {},
|
|
2446
2447
|
raw: !0,
|
|
@@ -2452,7 +2453,7 @@ var is = (t) => {
|
|
|
2452
2453
|
o && (e.style = o);
|
|
2453
2454
|
}
|
|
2454
2455
|
});
|
|
2455
|
-
const
|
|
2456
|
+
const bt = (t) => ({
|
|
2456
2457
|
from: t,
|
|
2457
2458
|
to: {},
|
|
2458
2459
|
openTag: (o) => {
|
|
@@ -2460,7 +2461,7 @@ var is = (t) => {
|
|
|
2460
2461
|
s && (o.getParent()[t] = s);
|
|
2461
2462
|
}
|
|
2462
2463
|
});
|
|
2463
|
-
|
|
2464
|
+
pt.set("borderColor", bt("borderColor")), pt.set("negativeFillColor", bt("negativeFillColor")), pt.set("negativeBorderColor", bt("negativeBorderColor")), pt.set("axisColor", bt("axisColor")), pt.set("cfIcon", {
|
|
2464
2465
|
from: "cfIcon",
|
|
2465
2466
|
to: {},
|
|
2466
2467
|
openTag: (t) => {
|
|
@@ -2473,23 +2474,23 @@ var is = (t) => {
|
|
|
2473
2474
|
});
|
|
2474
2475
|
}
|
|
2475
2476
|
});
|
|
2476
|
-
const
|
|
2477
|
-
|
|
2477
|
+
const xt = /* @__PURE__ */ new Map();
|
|
2478
|
+
xt.set("id", ot("id", (t, e) => {
|
|
2478
2479
|
const o = e.getParent(), s = t.trim();
|
|
2479
2480
|
o && s && (o.x14Id = s);
|
|
2480
2481
|
}));
|
|
2481
|
-
const
|
|
2482
|
-
|
|
2482
|
+
const vt = /* @__PURE__ */ new Map();
|
|
2483
|
+
vt.set("slicerList", {
|
|
2483
2484
|
from: "slicerList",
|
|
2484
2485
|
transparent: !0
|
|
2485
|
-
}),
|
|
2486
|
-
const
|
|
2487
|
-
|
|
2486
|
+
}), vt.set("slicer", Z);
|
|
2487
|
+
const wt = /* @__PURE__ */ new Map();
|
|
2488
|
+
wt.set("timelineRefs", {
|
|
2488
2489
|
from: "timelineRefs",
|
|
2489
2490
|
transparent: !0
|
|
2490
|
-
}),
|
|
2491
|
-
const
|
|
2492
|
-
|
|
2491
|
+
}), wt.set("timelineRef", tt);
|
|
2492
|
+
const St = /* @__PURE__ */ new Map();
|
|
2493
|
+
St.set("sparklineGroups", {
|
|
2493
2494
|
from: "sparklineGroups",
|
|
2494
2495
|
to: "sparklineGroups",
|
|
2495
2496
|
openTag: (t) => {
|
|
@@ -2499,7 +2500,7 @@ var is = (t) => {
|
|
|
2499
2500
|
closeTag: (t) => {
|
|
2500
2501
|
0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
|
|
2501
2502
|
}
|
|
2502
|
-
}),
|
|
2503
|
+
}), St.set("sparklineGroup", {
|
|
2503
2504
|
from: "sparklineGroup",
|
|
2504
2505
|
to: [],
|
|
2505
2506
|
openTag: (e) => {
|
|
@@ -2518,7 +2519,7 @@ var is = (t) => {
|
|
|
2518
2519
|
o || t.warn("A sparkline group with no sparklines was dropped.", { onceKey: "xlsx.sheet.sparklineGroup.empty" }), t.setSource(o ?? void 0);
|
|
2519
2520
|
}
|
|
2520
2521
|
});
|
|
2521
|
-
for (const t of $)
|
|
2522
|
+
for (const t of $) St.set(t, {
|
|
2522
2523
|
from: t,
|
|
2523
2524
|
to: {},
|
|
2524
2525
|
openTag: (o) => {
|
|
@@ -2526,10 +2527,10 @@ var is = (t) => {
|
|
|
2526
2527
|
s && (o.getParent().properties[t] = s);
|
|
2527
2528
|
}
|
|
2528
2529
|
});
|
|
2529
|
-
|
|
2530
|
+
St.set("sparklines", {
|
|
2530
2531
|
from: "sparklines",
|
|
2531
2532
|
transparent: !0
|
|
2532
|
-
}),
|
|
2533
|
+
}), St.set("sparkline", {
|
|
2533
2534
|
from: "sparkline",
|
|
2534
2535
|
to: {},
|
|
2535
2536
|
openTag: (t) => {
|
|
@@ -2545,24 +2546,24 @@ var is = (t) => {
|
|
|
2545
2546
|
data: e.data ?? ""
|
|
2546
2547
|
}) : t.warn("A sparkline with no location was dropped.", { onceKey: "xlsx.sheet.sparkline.incomplete" });
|
|
2547
2548
|
}
|
|
2548
|
-
}),
|
|
2549
|
+
}), St.set("f", ot("f", (t, e) => {
|
|
2549
2550
|
const o = e.getParent(), s = t.trim();
|
|
2550
2551
|
o && s && (o.isSparkline ? o.data = s : o.properties.dateRange = s);
|
|
2551
|
-
})),
|
|
2552
|
+
})), St.set("sqref", ot("sqref", (t, e) => {
|
|
2552
2553
|
const o = e.getParent();
|
|
2553
2554
|
o?.isSparkline && (o.sqref = t);
|
|
2554
2555
|
}));
|
|
2555
|
-
const
|
|
2556
|
-
[
|
|
2557
|
-
[
|
|
2558
|
-
[
|
|
2559
|
-
[
|
|
2560
|
-
[
|
|
2561
|
-
[
|
|
2562
|
-
[
|
|
2563
|
-
[
|
|
2564
|
-
[
|
|
2565
|
-
]),
|
|
2556
|
+
const Ct = /* @__PURE__ */ new Map([
|
|
2557
|
+
[C(q), St],
|
|
2558
|
+
[C(ct), nt],
|
|
2559
|
+
[C(Q), pt],
|
|
2560
|
+
[C(L), pt],
|
|
2561
|
+
[C(ft), xt],
|
|
2562
|
+
[C(yt), vt],
|
|
2563
|
+
[C(H), vt],
|
|
2564
|
+
[C(K), wt],
|
|
2565
|
+
[C(gt), O]
|
|
2566
|
+
]), Et = /* @__PURE__ */ new Set();
|
|
2566
2567
|
d.registerVisitor({
|
|
2567
2568
|
from: "extLst",
|
|
2568
2569
|
transparent: !0
|
|
@@ -2570,10 +2571,10 @@ var is = (t) => {
|
|
|
2570
2571
|
from: "ext",
|
|
2571
2572
|
transparent: !0,
|
|
2572
2573
|
scope: (t) => {
|
|
2573
|
-
const e = t.getAttribute("uri"), o =
|
|
2574
|
+
const e = t.getAttribute("uri"), o = C(e), s = Ct.get(o);
|
|
2574
2575
|
if (s) return s;
|
|
2575
|
-
if (!At.has(o) && !
|
|
2576
|
-
|
|
2576
|
+
if (!At.has(o) && !Et.has(o)) {
|
|
2577
|
+
Et.add(o);
|
|
2577
2578
|
const s = j[o];
|
|
2578
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.`);
|
|
2579
2580
|
}
|
|
@@ -2633,20 +2634,20 @@ var is = (t) => {
|
|
|
2633
2634
|
t.setSource(s(t.getAttribute("r:id"), "legacyDrawing") ?? void 0);
|
|
2634
2635
|
}
|
|
2635
2636
|
});
|
|
2636
|
-
let
|
|
2637
|
-
const
|
|
2637
|
+
let It = null, Pt = !1;
|
|
2638
|
+
const Ot = /* @__PURE__ */ new Map(), Dt = {
|
|
2638
2639
|
from: "Fallback",
|
|
2639
2640
|
to: null
|
|
2640
|
-
},
|
|
2641
|
+
}, _t = {
|
|
2641
2642
|
from: "Choice",
|
|
2642
2643
|
transparent: !0
|
|
2643
2644
|
};
|
|
2644
|
-
|
|
2645
|
+
Ot.set("Fallback", Dt), Ot.set("Choice", _t), Ot.set("control", {
|
|
2645
2646
|
from: "control",
|
|
2646
2647
|
transparent: !0,
|
|
2647
2648
|
openTag: (t) => {
|
|
2648
2649
|
const e = t.getAttribute("name"), o = t.getAttribute("r:id"), r = o ? s(o, "formControl") : null;
|
|
2649
|
-
if (!r) return t.warn(`The form control '${e ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (
|
|
2650
|
+
if (!r) return t.warn(`The form control '${e ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (It = null);
|
|
2650
2651
|
const n = r.json, i = parseInt(t.getAttribute("shapeId") ?? "", 10);
|
|
2651
2652
|
isNaN(i) || (n.shapeId = i);
|
|
2652
2653
|
const a = {
|
|
@@ -2669,29 +2670,29 @@ var is = (t) => {
|
|
|
2669
2670
|
json: n
|
|
2670
2671
|
}
|
|
2671
2672
|
};
|
|
2672
|
-
e && (a.content.name = e),
|
|
2673
|
+
e && (a.content.name = e), It = {
|
|
2673
2674
|
movable: a,
|
|
2674
2675
|
control: n
|
|
2675
2676
|
};
|
|
2676
2677
|
},
|
|
2677
2678
|
closeTag: () => {
|
|
2678
|
-
|
|
2679
|
+
It && (o.movables || (o.movables = []), o.movables.push(It.movable), It = null);
|
|
2679
2680
|
}
|
|
2680
|
-
}),
|
|
2681
|
+
}), Ot.set("controlPr", {
|
|
2681
2682
|
from: "controlPr",
|
|
2682
2683
|
transparent: !0,
|
|
2683
2684
|
raw: !0,
|
|
2684
2685
|
openTag: (t) => {
|
|
2685
|
-
if (!
|
|
2686
|
+
if (!It) return;
|
|
2686
2687
|
const e = t.getFrom().attributes ?? {}, o = {};
|
|
2687
2688
|
for (const t in e) {
|
|
2688
2689
|
const s = e[t];
|
|
2689
2690
|
o[t] = "string" == typeof s ? s : s?.value ?? "";
|
|
2690
2691
|
}
|
|
2691
|
-
|
|
2692
|
+
R(o, It.control);
|
|
2692
2693
|
},
|
|
2693
2694
|
closeTag: (t) => {
|
|
2694
|
-
if (!
|
|
2695
|
+
if (!It) return;
|
|
2695
2696
|
const e = ((t) => {
|
|
2696
2697
|
const e = /<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(t);
|
|
2697
2698
|
if (!e) return null;
|
|
@@ -2705,24 +2706,24 @@ var is = (t) => {
|
|
|
2705
2706
|
rest: (t.slice(0, e.index) + t.slice(e.index + e[0].length)).trim()
|
|
2706
2707
|
};
|
|
2707
2708
|
})(t.getRawXml() ?? "");
|
|
2708
|
-
e ? (
|
|
2709
|
+
e ? (It.movable.anchor = e.anchor, "twoCell" !== e.anchorType && (It.movable.anchorType = e.anchorType), e.rest && (It.control.xml = e.rest)) : Pt || (Pt = !0, t.warn("A form control has no anchor; it is placed at the top left of the sheet."));
|
|
2709
2710
|
}
|
|
2710
2711
|
});
|
|
2711
|
-
const
|
|
2712
|
+
const $t = {
|
|
2712
2713
|
from: "controls",
|
|
2713
2714
|
transparent: !0,
|
|
2714
|
-
scope: () =>
|
|
2715
|
+
scope: () => Ot
|
|
2715
2716
|
};
|
|
2716
|
-
d.registerVisitor(
|
|
2717
|
-
const
|
|
2718
|
-
["Choice",
|
|
2719
|
-
["Fallback",
|
|
2720
|
-
["controls",
|
|
2717
|
+
d.registerVisitor($t);
|
|
2718
|
+
const Mt = /* @__PURE__ */ new Map([
|
|
2719
|
+
["Choice", _t],
|
|
2720
|
+
["Fallback", Dt],
|
|
2721
|
+
["controls", $t]
|
|
2721
2722
|
]);
|
|
2722
2723
|
d.registerVisitor({
|
|
2723
2724
|
from: "AlternateContent",
|
|
2724
2725
|
transparent: !0,
|
|
2725
|
-
scope: () =>
|
|
2726
|
+
scope: () => Mt
|
|
2726
2727
|
}), d.registerVisitor({
|
|
2727
2728
|
from: "tableParts",
|
|
2728
2729
|
to: "tables",
|
|
@@ -2740,10 +2741,10 @@ var is = (t) => {
|
|
|
2740
2741
|
}
|
|
2741
2742
|
});
|
|
2742
2743
|
const Rt = (t, e) => {
|
|
2743
|
-
e.conditions?.length && (t
|
|
2744
|
-
},
|
|
2745
|
-
e.conditions?.length && (t.stops =
|
|
2746
|
-
},
|
|
2744
|
+
e.conditions?.length && S(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
|
+
}, Vt = (t, e) => {
|
|
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
|
+
}, Lt = (t) => {
|
|
2747
2748
|
if (!t.sqref) return null;
|
|
2748
2749
|
const e = t.sqref.split(/\s+/).join(",");
|
|
2749
2750
|
if ("iconSet" === t.type) {
|
|
@@ -2752,7 +2753,7 @@ var is = (t) => {
|
|
|
2752
2753
|
type: Ft.ScaleType.IconSet,
|
|
2753
2754
|
stops: []
|
|
2754
2755
|
};
|
|
2755
|
-
return
|
|
2756
|
+
return Vt(o, t.iconSet), {
|
|
2756
2757
|
r: e,
|
|
2757
2758
|
v: { scale: o },
|
|
2758
2759
|
priority: t.priority
|
|
@@ -2778,16 +2779,16 @@ var is = (t) => {
|
|
|
2778
2779
|
const e = o[t], s = e.x14Id;
|
|
2779
2780
|
if (!s) continue;
|
|
2780
2781
|
delete e.x14Id;
|
|
2781
|
-
const r =
|
|
2782
|
+
const r = lt.get(s);
|
|
2782
2783
|
if (!r) continue;
|
|
2783
|
-
|
|
2784
|
+
lt.delete(s);
|
|
2784
2785
|
const n = e.v?.scale;
|
|
2785
|
-
r.dataBar && n?.type === Ft.ScaleType.DataBar ? Rt(n, r.dataBar) : r.iconSet && n?.type === Ft.ScaleType.IconSet &&
|
|
2786
|
+
r.dataBar && n?.type === Ft.ScaleType.DataBar ? Rt(n, r.dataBar) : r.iconSet && n?.type === Ft.ScaleType.IconSet && Vt(n, r.iconSet);
|
|
2786
2787
|
}
|
|
2787
|
-
const s = [...
|
|
2788
|
+
const s = [...lt.values(), ...ht], r = /* @__PURE__ */ new Set();
|
|
2788
2789
|
let n = 0;
|
|
2789
2790
|
for (let t = 0; t < s.length; t++) {
|
|
2790
|
-
const i =
|
|
2791
|
+
const i = Lt(s[t]);
|
|
2791
2792
|
i ? (o || (o = [], e.conditionals = o), o.push(i)) : (r.add(s[t].type ?? "unknown"), n++);
|
|
2792
2793
|
}
|
|
2793
2794
|
if (n > 0) {
|
|
@@ -2889,30 +2890,30 @@ var is = (t) => {
|
|
|
2889
2890
|
t.warn("'OLE Objects' are not supported.");
|
|
2890
2891
|
}
|
|
2891
2892
|
});
|
|
2892
|
-
let
|
|
2893
|
-
const
|
|
2893
|
+
let jt = !1, Ht = !1, Wt = 0, Xt = "", qt = "";
|
|
2894
|
+
const Ut = (t) => {
|
|
2894
2895
|
const e = t.indexOf(":");
|
|
2895
2896
|
return -1 === e ? t : t.slice(e + 1);
|
|
2896
|
-
},
|
|
2897
|
-
return
|
|
2897
|
+
}, Gt = new os();
|
|
2898
|
+
return xs(x, o, d.createEventHandler(o, i, a), a, u, {
|
|
2898
2899
|
onOpenTag: (t) => {
|
|
2899
|
-
|
|
2900
|
-
const e =
|
|
2901
|
-
"t" === e || "v" === e ? 0 ===
|
|
2900
|
+
jt = !0;
|
|
2901
|
+
const e = Ut(t.name);
|
|
2902
|
+
"t" === e || "v" === e ? 0 === Wt && (Ht = !0) : "rPh" === e || "phoneticPr" === e ? Wt++ : 0 === Wt && Gt.onOpenTag(e, t.attributes);
|
|
2902
2903
|
},
|
|
2903
2904
|
onText: (t) => {
|
|
2904
|
-
|
|
2905
|
+
Ht && (Xt += t, Gt.onText(t));
|
|
2905
2906
|
},
|
|
2906
2907
|
onCloseTag: (t) => {
|
|
2907
|
-
const e =
|
|
2908
|
-
"t" === e || "v" === e ?
|
|
2908
|
+
const e = Ut(t.name);
|
|
2909
|
+
"t" === e || "v" === e ? Ht = !1 : "rPh" === e || "phoneticPr" === e ? Wt > 0 && Wt-- : Gt.onCloseTag(e);
|
|
2909
2910
|
},
|
|
2910
2911
|
onEnd: () => {
|
|
2911
|
-
if (!
|
|
2912
|
-
const t =
|
|
2913
|
-
|
|
2914
|
-
const e = l(
|
|
2915
|
-
return
|
|
2912
|
+
if (!jt) return;
|
|
2913
|
+
const t = Gt.take();
|
|
2914
|
+
jt = !1, Ht = !1, Wt = 0;
|
|
2915
|
+
const e = l(Xt);
|
|
2916
|
+
return Xt = "", qt = e, t ? {
|
|
2916
2917
|
t: "r",
|
|
2917
2918
|
v: {
|
|
2918
2919
|
type: "richText",
|
|
@@ -2921,7 +2922,7 @@ var is = (t) => {
|
|
|
2921
2922
|
} : r(e);
|
|
2922
2923
|
},
|
|
2923
2924
|
onError: (t) => {}
|
|
2924
|
-
}, h, r, () => f, () =>
|
|
2925
|
+
}, h, r, () => f, () => qt);
|
|
2925
2926
|
}, ps = class {
|
|
2926
2927
|
static {
|
|
2927
2928
|
this.Collapsed = 1;
|
|
@@ -2960,14 +2961,14 @@ var is = (t) => {
|
|
|
2960
2961
|
colEnd: 0,
|
|
2961
2962
|
rowStart: 0,
|
|
2962
2963
|
rowEnd: 0
|
|
2963
|
-
}, bs = (t) => "1" === t || "true" === t,
|
|
2964
|
+
}, bs = (t) => "1" === t || "true" === t, xs = (t, e, o, s, r, n, i, a, l, c) => {
|
|
2964
2965
|
let u = !1;
|
|
2965
2966
|
const d = [], p = i?.get(us), f = i?.get(hs), g = /* @__PURE__ */ new Map();
|
|
2966
|
-
let m = !1, b = [],
|
|
2967
|
+
let m = !1, b = [], x = !1, y = null, v = null, w = null, S = null, C = null, k = null;
|
|
2967
2968
|
const A = i?.get("richData") ?? $t.EmptyArray;
|
|
2968
2969
|
let E = null, I = !1;
|
|
2969
|
-
const P = Nt.normalizeA1ToR1C1, O =
|
|
2970
|
-
let $ = !1,
|
|
2970
|
+
const P = Nt.normalizeA1ToR1C1, O = Mt.createConflatingRanges(), D = /* @__PURE__ */ new Map(), N = [], _ = [];
|
|
2971
|
+
let $ = !1, M = !1, R = null;
|
|
2971
2972
|
const V = (t) => {
|
|
2972
2973
|
const e = (i?.get("metadata"))?.values;
|
|
2973
2974
|
if (!e) return;
|
|
@@ -2977,7 +2978,7 @@ var is = (t) => {
|
|
|
2977
2978
|
return void 0 !== s?.richValueIndex ? A[s.richValueIndex] : void 0;
|
|
2978
2979
|
};
|
|
2979
2980
|
let L = !1;
|
|
2980
|
-
const j =
|
|
2981
|
+
const j = Mt.createConflatingRanges();
|
|
2981
2982
|
let B, F = !1, H = -1, W = -1, z = null, X = null;
|
|
2982
2983
|
const q = (t) => ({
|
|
2983
2984
|
t: "r",
|
|
@@ -2991,26 +2992,26 @@ var is = (t) => {
|
|
|
2991
2992
|
});
|
|
2992
2993
|
let U = null;
|
|
2993
2994
|
const G = [];
|
|
2994
|
-
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,
|
|
2995
|
-
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, xt = 0;
|
|
2996
|
+
const yt = (t) => {
|
|
2996
2997
|
let s = t.name;
|
|
2997
2998
|
const a = s.indexOf(":");
|
|
2998
|
-
if (-1 !== a && (s = s.slice(a + 1)),
|
|
2999
|
+
if (-1 !== a && (s = s.slice(a + 1)), xt++, xt % 196608 == 0 && r?.(xt), X) {
|
|
2999
3000
|
const e = t.attributes;
|
|
3000
3001
|
switch (s) {
|
|
3001
3002
|
case "v":
|
|
3002
3003
|
m = !0;
|
|
3003
3004
|
break;
|
|
3004
3005
|
case "f":
|
|
3005
|
-
switch (
|
|
3006
|
+
switch (x = !0, e.t ?? null) {
|
|
3006
3007
|
case null:
|
|
3007
3008
|
case "normal": break;
|
|
3008
3009
|
case "shared":
|
|
3009
3010
|
const t = e.si;
|
|
3010
|
-
v = e.ref,
|
|
3011
|
+
v = e.ref, y = t;
|
|
3011
3012
|
break;
|
|
3012
3013
|
case "array":
|
|
3013
|
-
v = e.ref,
|
|
3014
|
+
v = e.ref, R = v;
|
|
3014
3015
|
break;
|
|
3015
3016
|
case "dataTable": {
|
|
3016
3017
|
const t = ((t, e, o) => {
|
|
@@ -3044,7 +3045,7 @@ var is = (t) => {
|
|
|
3044
3045
|
F = !0;
|
|
3045
3046
|
return;
|
|
3046
3047
|
}
|
|
3047
|
-
F && !
|
|
3048
|
+
F && !x && n?.onOpenTag?.(t);
|
|
3048
3049
|
return;
|
|
3049
3050
|
}
|
|
3050
3051
|
if (u) {
|
|
@@ -3061,7 +3062,7 @@ var is = (t) => {
|
|
|
3061
3062
|
colEnd: W,
|
|
3062
3063
|
rowEnd: H,
|
|
3063
3064
|
value: r
|
|
3064
|
-
}, b.push(pt))),
|
|
3065
|
+
}, b.push(pt))), R = null, M = !1, I = !1;
|
|
3065
3066
|
const n = e.cm;
|
|
3066
3067
|
$ = void 0 !== n && ((t) => {
|
|
3067
3068
|
const e = (i?.get("metadata"))?.cells;
|
|
@@ -3072,12 +3073,12 @@ var is = (t) => {
|
|
|
3072
3073
|
const a = e.vm;
|
|
3073
3074
|
if (void 0 !== a) {
|
|
3074
3075
|
const t = V(a);
|
|
3075
|
-
if (
|
|
3076
|
+
if (Rt.isError(t)) {
|
|
3076
3077
|
const e = t.getCode();
|
|
3077
3078
|
z = {
|
|
3078
3079
|
t: "e",
|
|
3079
3080
|
v: e
|
|
3080
|
-
}, $ && e ===
|
|
3081
|
+
}, $ && e === Rt.Code.Spill && (M = !0);
|
|
3081
3082
|
}
|
|
3082
3083
|
}
|
|
3083
3084
|
}
|
|
@@ -3119,7 +3120,7 @@ var is = (t) => {
|
|
|
3119
3120
|
}
|
|
3120
3121
|
}, wt = (e) => {
|
|
3121
3122
|
let s = e.name;
|
|
3122
|
-
if ("sheetData" === s && (gt = !1), !
|
|
3123
|
+
if ("sheetData" === s && (gt = !1), !x || "c" !== s && "f" !== s || (y && (S = D.get(y) ?? null), S && (B = ((t) => {
|
|
3123
3124
|
if (t.length < 11 || 104 != (32 | t.charCodeAt(0))) return;
|
|
3124
3125
|
if (!/^HYPERLINK\(/i.test(t)) return;
|
|
3125
3126
|
let e = 1, o = !1, s = 10;
|
|
@@ -3130,7 +3131,7 @@ var is = (t) => {
|
|
|
3130
3131
|
if (0 !== e || t.slice(s).trim().length > 0) return;
|
|
3131
3132
|
const r = /^HYPERLINK\(\s*"((?:[^"]|"")*)"\s*[,)]/i.exec(t);
|
|
3132
3133
|
return r ? r[1].replace(/""/g, "\"") : null;
|
|
3133
|
-
})(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 !== R && N.push([R, $ ? M ? "error" : "dynamic" : "fixed"]), x = !1, S = null, y = null, v = null, m = !1, L = !1, R = null, $ = !1, M = !1), X) {
|
|
3134
3135
|
const o = s.indexOf(":");
|
|
3135
3136
|
if (-1 !== o && (s = s.slice(o + 1)), F) if ("is" === s || "v" === s) {
|
|
3136
3137
|
const e = n?.onEnd?.();
|
|
@@ -3201,7 +3202,7 @@ var is = (t) => {
|
|
|
3201
3202
|
const t = X.attributes.vm;
|
|
3202
3203
|
if (void 0 !== t) {
|
|
3203
3204
|
const e = V(t);
|
|
3204
|
-
if (
|
|
3205
|
+
if (Rt.isError(e)) {
|
|
3205
3206
|
z = {
|
|
3206
3207
|
t: "e",
|
|
3207
3208
|
v: e.getCode()
|
|
@@ -3217,7 +3218,7 @@ var is = (t) => {
|
|
|
3217
3218
|
}
|
|
3218
3219
|
}
|
|
3219
3220
|
}
|
|
3220
|
-
const t =
|
|
3221
|
+
const t = Rt.getBuiltInByLabel(r);
|
|
3221
3222
|
t ? z = {
|
|
3222
3223
|
t: "e",
|
|
3223
3224
|
v: t.getCode()
|
|
@@ -3231,23 +3232,23 @@ var is = (t) => {
|
|
|
3231
3232
|
}
|
|
3232
3233
|
null !== z && t.pushAt(H, W, void 0 === B || "number" != typeof z && "boolean" != typeof z ? z : q(z));
|
|
3233
3234
|
}
|
|
3234
|
-
const l = null !==
|
|
3235
|
-
if (
|
|
3236
|
-
if (
|
|
3235
|
+
const l = null !== y;
|
|
3236
|
+
if (y) {
|
|
3237
|
+
if (C === y) S = k;
|
|
3237
3238
|
else {
|
|
3238
|
-
if (S = D.get(
|
|
3239
|
+
if (S = D.get(y) ?? null, !S) {
|
|
3239
3240
|
const t = [];
|
|
3240
3241
|
w = P(r, H, W, t), S = [
|
|
3241
3242
|
w,
|
|
3242
3243
|
t,
|
|
3243
3244
|
r
|
|
3244
|
-
], D.set(
|
|
3245
|
+
], D.set(y, S);
|
|
3245
3246
|
}
|
|
3246
|
-
|
|
3247
|
+
C = y, k = S;
|
|
3247
3248
|
}
|
|
3248
|
-
|
|
3249
|
+
y = null;
|
|
3249
3250
|
}
|
|
3250
|
-
if (
|
|
3251
|
+
if (x) {
|
|
3251
3252
|
let t = r;
|
|
3252
3253
|
const e = l ? void 0 : i?.get(ls);
|
|
3253
3254
|
if (e) {
|
|
@@ -3284,18 +3285,18 @@ var is = (t) => {
|
|
|
3284
3285
|
s: void 0,
|
|
3285
3286
|
cm: void 0,
|
|
3286
3287
|
vm: void 0
|
|
3287
|
-
},
|
|
3288
|
+
}, Ct = {
|
|
3288
3289
|
name: "c",
|
|
3289
3290
|
attributes: St,
|
|
3290
3291
|
isSelfClosing: !1
|
|
3291
|
-
},
|
|
3292
|
+
}, kt = {
|
|
3292
3293
|
t: void 0,
|
|
3293
3294
|
si: void 0,
|
|
3294
3295
|
ref: void 0,
|
|
3295
3296
|
ca: void 0
|
|
3296
3297
|
}, At = {
|
|
3297
3298
|
name: "f",
|
|
3298
|
-
attributes:
|
|
3299
|
+
attributes: kt,
|
|
3299
3300
|
isSelfClosing: !1
|
|
3300
3301
|
}, Et = {
|
|
3301
3302
|
name: "v",
|
|
@@ -3356,11 +3357,11 @@ var is = (t) => {
|
|
|
3356
3357
|
case 12: t.startsWith("customHeight", n) ? It.customHeight = t.slice(l, c) : t.startsWith("customFormat", n) ? It.customFormat = t.slice(l, c) : t.startsWith("outlineLevel", n) && (It.outlineLevel = t.slice(l, c));
|
|
3357
3358
|
}
|
|
3358
3359
|
else if (0 === s) 1 === i ? 114 === u ? St.r = t.slice(l, c) : 116 === u ? St.t = t.slice(l, c) : 115 === u && (St.s = t.slice(l, c)) : 2 === i && 109 === t.charCodeAt(n + 1) && (99 === u ? St.cm = t.slice(l, c) : 118 === u && (St.vm = t.slice(l, c)));
|
|
3359
|
-
else if (1 === i) 116 === u && (
|
|
3360
|
+
else if (1 === i) 116 === u && (kt.t = t.slice(l, c));
|
|
3360
3361
|
else if (2 === i) {
|
|
3361
3362
|
const e = t.charCodeAt(n + 1);
|
|
3362
|
-
115 === u && 105 === e ?
|
|
3363
|
-
} else 3 === i && t.startsWith("ref", n) && (
|
|
3363
|
+
115 === u && 105 === e ? kt.si = t.slice(l, c) : 99 === u && 97 === e && (kt.ca = t.slice(l, c));
|
|
3364
|
+
} else 3 === i && t.startsWith("ref", n) && (kt.ref = t.slice(l, c));
|
|
3364
3365
|
}
|
|
3365
3366
|
}, Bt = (t, e, o) => 47 === t.charCodeAt(e + 1) && t.charCodeAt(e + 2) === o && 62 === t.charCodeAt(e + 3);
|
|
3366
3367
|
return {
|
|
@@ -3445,7 +3446,7 @@ var is = (t) => {
|
|
|
3445
3446
|
E && N.push(...E.getFormulaArray()), N.length > 0 && (e.formulaArray = [...N]);
|
|
3446
3447
|
const a = b.length;
|
|
3447
3448
|
if (a > 0) {
|
|
3448
|
-
b.sort(
|
|
3449
|
+
b.sort(Mt.createRangeComparator(zt.Axis.Column));
|
|
3449
3450
|
let t = b[0], o = t.colStart, s = t.colEnd, r = t.rowEnd, n = t.value;
|
|
3450
3451
|
const i = [];
|
|
3451
3452
|
i.push(t);
|
|
@@ -3461,7 +3462,7 @@ var is = (t) => {
|
|
|
3461
3462
|
const c = t.build();
|
|
3462
3463
|
c && (e.data = c.tuples), o?.onEnd?.();
|
|
3463
3464
|
},
|
|
3464
|
-
onOpenTag:
|
|
3465
|
+
onOpenTag: yt,
|
|
3465
3466
|
onCloseTag: wt,
|
|
3466
3467
|
onText: Tt,
|
|
3467
3468
|
elementScanners: [{
|
|
@@ -3474,7 +3475,7 @@ var is = (t) => {
|
|
|
3474
3475
|
const r = St.t;
|
|
3475
3476
|
if (void 0 === St.r || "str" === r || "inlineStr" === r) return Dt;
|
|
3476
3477
|
let n = !1, i = -1, a = -1, l = -1, c = -1, h = s;
|
|
3477
|
-
if (!Vt) for (
|
|
3478
|
+
if (!Vt) for (kt.t = kt.si = kt.ref = kt.ca = void 0;;) {
|
|
3478
3479
|
const e = t.indexOf("<", s);
|
|
3479
3480
|
if (-1 === e || e + 3 >= o) return Ot;
|
|
3480
3481
|
for (let o = s; o < e; o++) {
|
|
@@ -3489,7 +3490,7 @@ var is = (t) => {
|
|
|
3489
3490
|
}
|
|
3490
3491
|
if (102 === r && !n && -1 === l && (32 === u || 62 === u || 47 === u)) {
|
|
3491
3492
|
if (n = !0, s = jt(t, e + 2, o, 1), s < 0) return s;
|
|
3492
|
-
if ("dataTable" ===
|
|
3493
|
+
if ("dataTable" === kt.t) return Dt;
|
|
3493
3494
|
if (Vt) continue;
|
|
3494
3495
|
const r = t.indexOf("<", s);
|
|
3495
3496
|
if (-1 === r || r + 3 >= o) return Ot;
|
|
@@ -3506,7 +3507,7 @@ var is = (t) => {
|
|
|
3506
3507
|
}
|
|
3507
3508
|
return Dt;
|
|
3508
3509
|
}
|
|
3509
|
-
return
|
|
3510
|
+
return yt(Ct), n && (yt(At), a > i && Tt(_t(t.slice(i, a))), wt(At)), -1 !== l && (yt(Et), c > l && Tt(_t(t.slice(l, c))), wt(Et)), wt(Ct), h;
|
|
3510
3511
|
}
|
|
3511
3512
|
}, {
|
|
3512
3513
|
name: "row",
|
|
@@ -3515,20 +3516,20 @@ var is = (t) => {
|
|
|
3515
3516
|
if (!gt || u || null !== X) return Dt;
|
|
3516
3517
|
It.r = It.s = It.ht = It.hidden = It.collapsed = It.customHeight = It.customFormat = It.outlineLevel = void 0;
|
|
3517
3518
|
const s = jt(t, e + 4, o, 2);
|
|
3518
|
-
return s < 0 ? s : Vt || void 0 === It.r ? Dt : (
|
|
3519
|
+
return s < 0 ? s : Vt || void 0 === It.r ? Dt : (yt(Pt), s);
|
|
3519
3520
|
}
|
|
3520
3521
|
}]
|
|
3521
3522
|
};
|
|
3522
|
-
},
|
|
3523
|
+
}, ys = /* @__PURE__ */ new Map([
|
|
3523
3524
|
["urn:schemas-microsoft-com:vml", "v"],
|
|
3524
3525
|
["urn:schemas-microsoft-com:office:office", "o"],
|
|
3525
3526
|
["urn:schemas-microsoft-com:office:excel", "x"]
|
|
3526
|
-
]), vs = [...
|
|
3527
|
-
function
|
|
3527
|
+
]), vs = [...ys].map(([t, e]) => ` xmlns:${e}="${t}"`).join(""), ws = /<(\/?)([A-Za-z_][\w.-]*(?::[\w.-]+)?)((?:[^>"']|"[^"]*"|'[^']*')*?)(\/?)>/g, Ts = /(\s+)([A-Za-z_][\w.-]*(?::[\w.-]+)?)(\s*=\s*)("[^"]*"|'[^']*')/g, Ss = /\sxmlns(?::([\w.-]+))?\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
|
|
3528
|
+
function Cs(t) {
|
|
3528
3529
|
if (!t || !((t) => {
|
|
3529
3530
|
let e;
|
|
3530
3531
|
for (Ss.lastIndex = 0; null !== (e = Ss.exec(t));) {
|
|
3531
|
-
const t =
|
|
3532
|
+
const t = ys.get(e[2] ?? e[3] ?? "");
|
|
3532
3533
|
if (t && t !== (e[1] ?? "")) return !0;
|
|
3533
3534
|
}
|
|
3534
3535
|
return !1;
|
|
@@ -3545,7 +3546,7 @@ function ks(t) {
|
|
|
3545
3546
|
const s = e[o].bindings.get(t);
|
|
3546
3547
|
if (void 0 !== s) return s;
|
|
3547
3548
|
}
|
|
3548
|
-
})(n, o), a = void 0 !== i ?
|
|
3549
|
+
})(n, o), a = void 0 !== i ? ys.get(i) : void 0;
|
|
3549
3550
|
return a ? `${a}:${-1 === r ? t : t.substring(r + 1)}` : null;
|
|
3550
3551
|
};
|
|
3551
3552
|
let s = !1, r = !1;
|
|
@@ -3560,14 +3561,14 @@ function ks(t) {
|
|
|
3560
3561
|
return o;
|
|
3561
3562
|
})(a);
|
|
3562
3563
|
c?.forEach((t, e) => {
|
|
3563
|
-
const o = [...
|
|
3564
|
+
const o = [...ys].find(([, t]) => t === e)?.[0];
|
|
3564
3565
|
o && o !== t && (s = !0);
|
|
3565
3566
|
});
|
|
3566
3567
|
const u = o(i, c, !1);
|
|
3567
3568
|
let h = a.replace(Ts, (t, e, s, r, n) => {
|
|
3568
3569
|
if ("xmlns" === s || s.startsWith("xmlns:")) {
|
|
3569
3570
|
const e = n.slice(1, -1);
|
|
3570
|
-
return
|
|
3571
|
+
return ys.has(e) ? "" : t;
|
|
3571
3572
|
}
|
|
3572
3573
|
const i = o(s, c, !0);
|
|
3573
3574
|
return i ? `${e}${i}${r}${n}` : t;
|
|
@@ -3584,7 +3585,7 @@ function ks(t) {
|
|
|
3584
3585
|
});
|
|
3585
3586
|
return s ? t : n;
|
|
3586
3587
|
}
|
|
3587
|
-
var
|
|
3588
|
+
var ks = {
|
|
3588
3589
|
creator: "author",
|
|
3589
3590
|
category: "category",
|
|
3590
3591
|
description: "comments",
|
|
@@ -3680,7 +3681,7 @@ var Cs = {
|
|
|
3680
3681
|
const u = `${t}|${i ?? ""}|${a ?? ""}|${c}`;
|
|
3681
3682
|
let h = r.get(u);
|
|
3682
3683
|
if (void 0 !== h) return h;
|
|
3683
|
-
const d = o[t], p = d ?
|
|
3684
|
+
const d = o[t], p = d ? Rs(d, i, a, l) : null, f = e?.get(t);
|
|
3684
3685
|
return h = p === d ? t : p || void 0 !== f ? ((t, r) => {
|
|
3685
3686
|
if (!s) {
|
|
3686
3687
|
s = /* @__PURE__ */ new Map();
|
|
@@ -3701,7 +3702,7 @@ var Cs = {
|
|
|
3701
3702
|
if (!t || !o || 0 === o.length || !s || 0 === s.length) continue;
|
|
3702
3703
|
let r = s, n = !1;
|
|
3703
3704
|
for (const t of o) {
|
|
3704
|
-
const e =
|
|
3705
|
+
const e = Ms(t, a.get(t.cacheId));
|
|
3705
3706
|
if (!e) continue;
|
|
3706
3707
|
const o = [];
|
|
3707
3708
|
for (const t of r) {
|
|
@@ -3734,7 +3735,7 @@ var Cs = {
|
|
|
3734
3735
|
}
|
|
3735
3736
|
n && (t.directStyles = r);
|
|
3736
3737
|
}
|
|
3737
|
-
},
|
|
3738
|
+
}, Ms = (t, e) => {
|
|
3738
3739
|
const o = oe(t, e);
|
|
3739
3740
|
if (!o || !t.location) return null;
|
|
3740
3741
|
const s = Nt.fastStringToRange(t.location), r = {
|
|
@@ -3751,7 +3752,7 @@ var Cs = {
|
|
|
3751
3752
|
origin: r,
|
|
3752
3753
|
formats: o
|
|
3753
3754
|
};
|
|
3754
|
-
},
|
|
3755
|
+
}, Rs = (t, e, o, s) => {
|
|
3755
3756
|
let r = t;
|
|
3756
3757
|
const n = s?.numberFormat ?? e ?? 0;
|
|
3757
3758
|
if (void 0 !== t.numberFormat && Vs(t.numberFormat, n)) {
|
|
@@ -3896,20 +3897,20 @@ var Cs = {
|
|
|
3896
3897
|
], Ys = /^xl\/worksheets\/[^/]+\.xml$/i, tr = (t) => "string" == typeof t ? t : (t?.runs ?? []).map((t) => t.text ?? "").join(""), er = async (t, e) => {
|
|
3897
3898
|
const { password: s, onVBA: n, profile: c, calcOnLoad: h = "auto", createWorkbookOptions: g = {}, ...m } = e ?? {};
|
|
3898
3899
|
await Vt.load();
|
|
3899
|
-
const
|
|
3900
|
+
const y = !!g.origin && "string" != typeof g.origin, T = c ? new ke("function" == typeof c ? c : void 0) : null, S = [], C = (t, e, o) => {
|
|
3900
3901
|
S.push([
|
|
3901
3902
|
t,
|
|
3902
3903
|
e ?? "",
|
|
3903
3904
|
o
|
|
3904
3905
|
]);
|
|
3905
|
-
},
|
|
3906
|
-
let $ = 0,
|
|
3906
|
+
}, k = { onWarning: C }, I = e?.progress, P = I?.onProgress ? I.onProgress.bind(I) : void 0, D = t.byteLength;
|
|
3907
|
+
let $ = 0, R = 0;
|
|
3907
3908
|
const V = P ? (t) => {
|
|
3908
3909
|
if ($ <= 0) return;
|
|
3909
|
-
|
|
3910
|
-
const e = Math.min(D, Math.round(
|
|
3910
|
+
R += t;
|
|
3911
|
+
const e = Math.min(D, Math.round(R / $ * D));
|
|
3911
3912
|
P(e, D);
|
|
3912
|
-
} : void 0, L = import("./
|
|
3913
|
+
} : void 0, L = import("./BaRyFsg1YMFUyXd4.mjs");
|
|
3913
3914
|
let j = null;
|
|
3914
3915
|
try {
|
|
3915
3916
|
j = new DOMParser();
|
|
@@ -3934,7 +3935,7 @@ var Cs = {
|
|
|
3934
3935
|
})(t)) throw new Pt("This is an Excel 97-2003 workbook (.xls), which cannot be read. Save it as '.xlsx' and try again.");
|
|
3935
3936
|
let K;
|
|
3936
3937
|
try {
|
|
3937
|
-
K = await
|
|
3938
|
+
K = await Ce.create(t);
|
|
3938
3939
|
} catch (t) {
|
|
3939
3940
|
throw new Pt("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.", { cause: t });
|
|
3940
3941
|
}
|
|
@@ -3996,11 +3997,11 @@ var Cs = {
|
|
|
3996
3997
|
}), o = await K.getTextStream("[Content_Types].xml");
|
|
3997
3998
|
if (!o) throw new Error("Error parsing content types: '[Content_Types].xml'");
|
|
3998
3999
|
try {
|
|
3999
|
-
await
|
|
4000
|
+
await yo.parseStream(o, t, { xmlns: !1 });
|
|
4000
4001
|
} catch (t) {
|
|
4001
4002
|
throw new Error("Error parsing content types: '[Content_Types].xml'", { cause: t });
|
|
4002
4003
|
}
|
|
4003
|
-
|
|
4004
|
+
y && await K.getBuffer("[Content_Types].xml");
|
|
4004
4005
|
}
|
|
4005
4006
|
T?.mark("content-types");
|
|
4006
4007
|
const s = e.sst, m = /* @__PURE__ */ new Set();
|
|
@@ -4008,7 +4009,7 @@ var Cs = {
|
|
|
4008
4009
|
s && m.add(Zs(s));
|
|
4009
4010
|
for (const t of m) $ += K.uncompressedSize(t);
|
|
4010
4011
|
if (await K.prefetch((t) => !m.has(t) && !Ys.test(t)), T?.mark("prefetch-side-parts"), 0 === e.workbooks.length) {
|
|
4011
|
-
const o = _("_rels/.rels", t, H, F,
|
|
4012
|
+
const o = _("_rels/.rels", t, H, F, k), s = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
|
|
4012
4013
|
if (o) {
|
|
4013
4014
|
for (const t of o.values()) if (t.type === s && t.target) {
|
|
4014
4015
|
e.workbooks.push(t.target);
|
|
@@ -4017,15 +4018,15 @@ var Cs = {
|
|
|
4017
4018
|
}
|
|
4018
4019
|
}
|
|
4019
4020
|
if (0 === e.workbooks.length) throw new Pt("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
|
|
4020
|
-
const
|
|
4021
|
+
const R = g?.resources ?? new Kt(), L = R.beginPersist(), j = {}, B = /* @__PURE__ */ new Set(), X = /* @__PURE__ */ new Map();
|
|
4021
4022
|
X.set("parseInlineDxf", (t) => {
|
|
4022
4023
|
if (!t) return;
|
|
4023
4024
|
const e = H.parseFromString(`<dxf xmlns:x14="${G}" xmlns:xm="${wt}">${t}</dxf>`, "text/xml")?.documentElement;
|
|
4024
4025
|
if (!e) return;
|
|
4025
|
-
const o = F.parseDxf(e, "",
|
|
4026
|
+
const o = F.parseDxf(e, "", k);
|
|
4026
4027
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
4027
4028
|
});
|
|
4028
|
-
const q = w("metadata", e, t, H, F,
|
|
4029
|
+
const q = w("metadata", e, t, H, F, k).entries().next()?.value?.[1]?.metadata;
|
|
4029
4030
|
q && X.set("metadata", q), X.set(as, u());
|
|
4030
4031
|
const J = /* @__PURE__ */ new Map(), Q = [], Y = /* @__PURE__ */ new Set(), et = (t) => {
|
|
4031
4032
|
Y.add(Zs(t));
|
|
@@ -4038,11 +4039,11 @@ var Cs = {
|
|
|
4038
4039
|
if (!i) return null;
|
|
4039
4040
|
if ("External" === n.targetMode) {
|
|
4040
4041
|
if (!s) return n.target;
|
|
4041
|
-
const t =
|
|
4042
|
+
const t = R.add({ source: { external: n.target } });
|
|
4042
4043
|
return t.addReference(j), B.add(t), L.toResourceId(t);
|
|
4043
4044
|
}
|
|
4044
4045
|
const a = o.lastIndexOf("/"), l = o.substring(0, a + 1);
|
|
4045
|
-
i.startsWith("/") || (i = l + i), i =
|
|
4046
|
+
i.startsWith("/") || (i = l + i), i = xt(i);
|
|
4046
4047
|
const c = F?.getVisitorParamsState().get("dxfs");
|
|
4047
4048
|
let u = r.get(i);
|
|
4048
4049
|
if (!u) {
|
|
@@ -4052,10 +4053,10 @@ var Cs = {
|
|
|
4052
4053
|
u = t;
|
|
4053
4054
|
const e = async () => {
|
|
4054
4055
|
const e = ds(t, (t, e) => "legacyDrawing" === e ? ut(t, i) : "formControl" === e ? dt(t, i) : "part" === e ? ft(t, i) : rt(t, i, "resource" === e) ?? null, Bt, c, () => {}, (t, e, o) => {
|
|
4055
|
-
|
|
4056
|
+
C(t, e ? `${e} (${i})` : i, o);
|
|
4056
4057
|
}, void 0, X), o = await K.getTextStream(i, V);
|
|
4057
4058
|
if (o) try {
|
|
4058
|
-
await
|
|
4059
|
+
await yo.parseStream(o, e, {
|
|
4059
4060
|
xmlns: !1,
|
|
4060
4061
|
lean: !0
|
|
4061
4062
|
});
|
|
@@ -4088,7 +4089,7 @@ var Cs = {
|
|
|
4088
4089
|
};
|
|
4089
4090
|
Q.push(e());
|
|
4090
4091
|
} else if (n.type === o) {
|
|
4091
|
-
const e =
|
|
4092
|
+
const e = M(i, t, H, F, At);
|
|
4092
4093
|
if (e && 0 !== Object.keys(e).length) {
|
|
4093
4094
|
const t = e, o = t.__bookRelId, s = t.__absoluteUrlRelId;
|
|
4094
4095
|
delete t.__bookRelId, delete t.__absoluteUrlRelId;
|
|
@@ -4104,9 +4105,9 @@ var Cs = {
|
|
|
4104
4105
|
}), n.sort((t, e) => ("book" === t.role ? 0 : 1) - ("book" === e.role ? 0 : 1)), t.sources = n, et(i), u = t;
|
|
4105
4106
|
} else u = null;
|
|
4106
4107
|
} else u = s ? N(i, t, (t, e) => {
|
|
4107
|
-
const o =
|
|
4108
|
+
const o = R.add({ source: { buffer: t } });
|
|
4108
4109
|
return o.addReference(j), B.add(o), L.toResourceId(o);
|
|
4109
|
-
}, At) :
|
|
4110
|
+
}, At) : M(i, t, H, F, At);
|
|
4110
4111
|
}
|
|
4111
4112
|
return u;
|
|
4112
4113
|
}, at = (t, e) => {
|
|
@@ -4114,7 +4115,7 @@ var Cs = {
|
|
|
4114
4115
|
const o = st(e, J)?.get(t);
|
|
4115
4116
|
if (!o?.target || "External" === o.targetMode) return null;
|
|
4116
4117
|
let s = o.target;
|
|
4117
|
-
return s.startsWith("/") || (s = e.substring(0, e.lastIndexOf("/") + 1) + s),
|
|
4118
|
+
return s.startsWith("/") || (s = e.substring(0, e.lastIndexOf("/") + 1) + s), xt(s);
|
|
4118
4119
|
}, ct = (t, e, o, s) => {
|
|
4119
4120
|
const n = [], i = /* @__PURE__ */ new Map(), l = [];
|
|
4120
4121
|
o.forEach((t, o) => {
|
|
@@ -4161,7 +4162,7 @@ var Cs = {
|
|
|
4161
4162
|
id: It.uuidV4().toUpperCase(),
|
|
4162
4163
|
asNote: !0,
|
|
4163
4164
|
content: e.v.content ?? ""
|
|
4164
|
-
}, r = o ?
|
|
4165
|
+
}, r = o ? kt({ displayName: o }) : void 0;
|
|
4165
4166
|
r && (s.personId = r.id), c.push({
|
|
4166
4167
|
r: e.r,
|
|
4167
4168
|
v: s
|
|
@@ -4220,7 +4221,7 @@ var Cs = {
|
|
|
4220
4221
|
if (!s) return null;
|
|
4221
4222
|
const r = t(Zs(s));
|
|
4222
4223
|
if (!r) return null;
|
|
4223
|
-
const n = { xml:
|
|
4224
|
+
const n = { xml: Cs(new TextDecoder("utf-8").decode(r.content)) }, i = [];
|
|
4224
4225
|
return st(s, J)?.forEach((t, e) => {
|
|
4225
4226
|
if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" !== t.type) return;
|
|
4226
4227
|
const o = rt(e, s, !0);
|
|
@@ -4232,7 +4233,7 @@ var Cs = {
|
|
|
4232
4233
|
}, dt = (e, o) => {
|
|
4233
4234
|
const s = at(e, o);
|
|
4234
4235
|
if (!s) return null;
|
|
4235
|
-
const r =
|
|
4236
|
+
const r = M(s, t, H, F, At)?.formControl ?? null;
|
|
4236
4237
|
return r && et(s), r;
|
|
4237
4238
|
}, ft = (o, s, r, n, i = /* @__PURE__ */ new Set()) => {
|
|
4238
4239
|
const a = at(o, s);
|
|
@@ -4269,16 +4270,16 @@ var Cs = {
|
|
|
4269
4270
|
const o = ft(e, a, t.type, n, i);
|
|
4270
4271
|
o && p.push(o);
|
|
4271
4272
|
}), p.length > 0 && (d.parts = p), et(a), d;
|
|
4272
|
-
}, gt = w("coreprops", e, t, H, F,
|
|
4273
|
+
}, gt = w("coreprops", e, t, H, F, k), yt = w("extprops", e, t, H, F, k), Tt = w("custprops", e, t, H, F, k);
|
|
4273
4274
|
Tt.forEach((t, e) => {
|
|
4274
4275
|
t?.custom && et(e);
|
|
4275
4276
|
});
|
|
4276
|
-
const St = new Gt(),
|
|
4277
|
-
if (
|
|
4278
|
-
const [t, e] =
|
|
4277
|
+
const St = new Gt(), Ct = w("people", e, t, H, F, k);
|
|
4278
|
+
if (Ct.size > 0) {
|
|
4279
|
+
const [t, e] = Ct.entries().next().value;
|
|
4279
4280
|
St.fromJSON(e?.persons), et(t);
|
|
4280
4281
|
}
|
|
4281
|
-
const
|
|
4282
|
+
const kt = (t) => {
|
|
4282
4283
|
if (t) return St.add(t).toJSON();
|
|
4283
4284
|
}, At = {
|
|
4284
4285
|
paramMap: X,
|
|
@@ -4286,9 +4287,9 @@ var Cs = {
|
|
|
4286
4287
|
getRef: rt,
|
|
4287
4288
|
parsedRefs: J,
|
|
4288
4289
|
readEmbeddedPart: (t, e) => ft(t, e),
|
|
4289
|
-
addPerson:
|
|
4290
|
+
addPerson: kt,
|
|
4290
4291
|
serializeElement: U,
|
|
4291
|
-
onWarning:
|
|
4292
|
+
onWarning: C
|
|
4292
4293
|
}, _t = [], $t = /* @__PURE__ */ new Map();
|
|
4293
4294
|
if (X.set(us, $t), s) {
|
|
4294
4295
|
const t = await K.getTextStream(s, V);
|
|
@@ -4315,24 +4316,24 @@ var Cs = {
|
|
|
4315
4316
|
})((t, e) => {
|
|
4316
4317
|
e && $t.set(_t.length, e), _t.push(t);
|
|
4317
4318
|
}, (t) => {
|
|
4318
|
-
|
|
4319
|
+
C(t, s);
|
|
4319
4320
|
});
|
|
4320
4321
|
try {
|
|
4321
|
-
await
|
|
4322
|
+
await yo.parseStream(t, e, { xmlns: !1 });
|
|
4322
4323
|
} catch (t) {
|
|
4323
4324
|
throw new Error(`Error parsing shared strings: '${s}'`, { cause: t });
|
|
4324
4325
|
}
|
|
4325
4326
|
}
|
|
4326
4327
|
}
|
|
4327
4328
|
T?.mark("shared-strings");
|
|
4328
|
-
let
|
|
4329
|
-
const
|
|
4330
|
-
let Vt =
|
|
4329
|
+
let Mt = _t.length;
|
|
4330
|
+
const Rt = /* @__PURE__ */ new Map();
|
|
4331
|
+
let Vt = Mt;
|
|
4331
4332
|
const Bt = (t) => {
|
|
4332
|
-
const e =
|
|
4333
|
+
const e = Rt.get(t);
|
|
4333
4334
|
if (void 0 !== e) return e;
|
|
4334
4335
|
const o = Vt;
|
|
4335
|
-
return
|
|
4336
|
+
return Rt.set(t, Vt++), _t.push(t), o;
|
|
4336
4337
|
}, Ft = [];
|
|
4337
4338
|
e.slicersCache = Ft;
|
|
4338
4339
|
const Ht = K.getNames(), Wt = Ht.length;
|
|
@@ -4362,7 +4363,7 @@ var Cs = {
|
|
|
4362
4363
|
return r ? r.slice().buffer : null;
|
|
4363
4364
|
},
|
|
4364
4365
|
addFetched: (t, e) => {
|
|
4365
|
-
const o =
|
|
4366
|
+
const o = R.add({
|
|
4366
4367
|
source: { buffer: t },
|
|
4367
4368
|
fetchedFrom: e
|
|
4368
4369
|
});
|
|
@@ -4375,29 +4376,29 @@ var Cs = {
|
|
|
4375
4376
|
const o = (o) => {
|
|
4376
4377
|
const s = t(o);
|
|
4377
4378
|
return s ? e.parseFromString(new TextDecoder().decode(s.content), "text/xml").documentElement ?? null : null;
|
|
4378
|
-
}, s =
|
|
4379
|
+
}, s = ye(o(de), "s").map((t) => ({
|
|
4379
4380
|
t: t.getAttribute("t") ?? "",
|
|
4380
4381
|
keys: ve(t)
|
|
4381
|
-
})), r =
|
|
4382
|
-
const e =
|
|
4382
|
+
})), r = ye(o(pe), "rv").map((t) => {
|
|
4383
|
+
const e = ye(t, "fb")[0];
|
|
4383
4384
|
return {
|
|
4384
4385
|
s: parseInt(t.getAttribute("s") ?? "-1", 10),
|
|
4385
|
-
values:
|
|
4386
|
+
values: ye(t, "v").map((t) => t.textContent ?? ""),
|
|
4386
4387
|
fb: e ? e.textContent ?? "" : null
|
|
4387
4388
|
};
|
|
4388
|
-
}), n =
|
|
4389
|
+
}), n = ye(o(fe), "a").map((t) => {
|
|
4389
4390
|
const e = we(t), o = parseInt(t.getAttribute("r") ?? "", 10), s = parseInt(t.getAttribute("c") ?? "", 10), r = o > 0 ? o : e.length;
|
|
4390
4391
|
return {
|
|
4391
4392
|
rows: r,
|
|
4392
4393
|
columns: s > 0 ? s : Math.max(1, Math.ceil(e.length / Math.max(1, r))),
|
|
4393
4394
|
items: e
|
|
4394
4395
|
};
|
|
4395
|
-
}), i =
|
|
4396
|
+
}), i = ye(o(ge), "s").map(ve), a = o(me), l = ye(ye(a, "spbArrays")[0], "a").map(we), c = ye(ye(a, "spbData")[0], "spb").map((t) => ({
|
|
4396
4397
|
s: parseInt(t.getAttribute("s") ?? "-1", 10),
|
|
4397
|
-
values:
|
|
4398
|
-
})), u = o(be), h = Te(
|
|
4399
|
-
for (const t of
|
|
4400
|
-
const p = o(
|
|
4398
|
+
values: ye(t, "v").map((t) => t.textContent ?? "")
|
|
4399
|
+
})), u = o(be), h = Te(ye(ye(u, "global")[0], "keyFlags")[0]), d = /* @__PURE__ */ new Map();
|
|
4400
|
+
for (const t of ye(ye(u, "types")[0], "type")) d.set(t.getAttribute("name") ?? "", Te(ye(t, "keyFlags")[0]));
|
|
4401
|
+
const p = o(xe), f = ye(ye(p, "dxfs")[0], "dxf").map((t) => ye(t, "numFmt")[0]?.getAttribute("formatCode") ?? null), g = ye(ye(p, "richProperties")[0], "rPr").map((t) => t.getAttribute("n") ?? "");
|
|
4401
4402
|
return {
|
|
4402
4403
|
structures: s,
|
|
4403
4404
|
values: r,
|
|
@@ -4407,9 +4408,9 @@ var Cs = {
|
|
|
4407
4408
|
bags: c,
|
|
4408
4409
|
globalKeyFlags: h,
|
|
4409
4410
|
typeKeyFlags: d,
|
|
4410
|
-
richStyles:
|
|
4411
|
+
richStyles: ye(ye(p, "richStyles")[0], "rSty").map((t) => {
|
|
4411
4412
|
const e = /* @__PURE__ */ new Map();
|
|
4412
|
-
for (const o of
|
|
4413
|
+
for (const o of ye(t, "rpv")) {
|
|
4413
4414
|
const t = g[parseInt(o.getAttribute("i") ?? "-1", 10)];
|
|
4414
4415
|
t && e.set(t, o.textContent ?? "");
|
|
4415
4416
|
}
|
|
@@ -4422,7 +4423,7 @@ var Cs = {
|
|
|
4422
4423
|
})
|
|
4423
4424
|
};
|
|
4424
4425
|
})(t, H), Qt = p(Zt, Jt, (t) => {
|
|
4425
|
-
|
|
4426
|
+
C(t, "/xl/richData/rdrichvalue.xml");
|
|
4426
4427
|
});
|
|
4427
4428
|
X.set("richData", Zt.values.map((t, e) => Qt.cellValue(e)));
|
|
4428
4429
|
for (let t = 0; t < Wt; t++) {
|
|
@@ -4484,7 +4485,7 @@ var Cs = {
|
|
|
4484
4485
|
} else r[t] = s;
|
|
4485
4486
|
}
|
|
4486
4487
|
};
|
|
4487
|
-
if (n(t,
|
|
4488
|
+
if (n(t, ks), n(e, As), o) {
|
|
4488
4489
|
const t = [];
|
|
4489
4490
|
for (const e of o) {
|
|
4490
4491
|
const o = Is(e);
|
|
@@ -4493,8 +4494,8 @@ var Cs = {
|
|
|
4493
4494
|
t.length > 0 && (r.custom = t);
|
|
4494
4495
|
}
|
|
4495
4496
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
4496
|
-
})(gt.values().next().value?.properties,
|
|
4497
|
-
|
|
4497
|
+
})(gt.values().next().value?.properties, yt.values().next().value?.properties, Tt.values().next().value?.custom, (t, e) => {
|
|
4498
|
+
C(t, "docProps/custom.xml", e);
|
|
4498
4499
|
});
|
|
4499
4500
|
ae && (ie.properties = ae), ((t, e) => {
|
|
4500
4501
|
if (!e || 0 === e.size) return;
|
|
@@ -4641,7 +4642,7 @@ var Cs = {
|
|
|
4641
4642
|
t?.slicers && o.set(e, t.slicers);
|
|
4642
4643
|
}), le(ie, {
|
|
4643
4644
|
warn: (t, e) => {
|
|
4644
|
-
|
|
4645
|
+
C(t, "xl/slicers", e);
|
|
4645
4646
|
},
|
|
4646
4647
|
markAbsorbed: et,
|
|
4647
4648
|
slicerParts: o
|
|
@@ -4655,7 +4656,7 @@ var Cs = {
|
|
|
4655
4656
|
ue && ue.length > 0 && (ie.people = ue);
|
|
4656
4657
|
const he = K.getEntry("xl/vbaProject.bin");
|
|
4657
4658
|
if (he) try {
|
|
4658
|
-
const { VBAProject: t } = await import("./
|
|
4659
|
+
const { VBAProject: t } = await import("./Dd0rxpiUIxg4BeeC.mjs"), e = t.extract(he);
|
|
4659
4660
|
if (e) {
|
|
4660
4661
|
const o = /* @__PURE__ */ new Map();
|
|
4661
4662
|
for (const t of ie.sheets ?? []) {
|
|
@@ -4675,10 +4676,10 @@ var Cs = {
|
|
|
4675
4676
|
} catch (t) {
|
|
4676
4677
|
S.push([`Error extracting VBA: ${t?.message ?? t}`, "xl/vbaProject.bin"]);
|
|
4677
4678
|
}
|
|
4678
|
-
const Se = X.get("calcId"),
|
|
4679
|
+
const Se = X.get("calcId"), Ce = void 0 === Se || !(Number(Se) >= 191029), ke = g.calcOnLoad ?? ("auto" === h && Ce ? "full" : h), Ae = {
|
|
4679
4680
|
...g,
|
|
4680
|
-
calcOnLoad:
|
|
4681
|
-
resources:
|
|
4681
|
+
calcOnLoad: ke,
|
|
4682
|
+
resources: R,
|
|
4682
4683
|
json: ie
|
|
4683
4684
|
};
|
|
4684
4685
|
if (void 0 === Ae.disableLoadAutoFit) {
|
|
@@ -4689,8 +4690,8 @@ var Cs = {
|
|
|
4689
4690
|
const Ee = new ee(Ae);
|
|
4690
4691
|
if (T?.mark("workbook-constructed"), B.forEach((t) => {
|
|
4691
4692
|
t.deleteReference(j);
|
|
4692
|
-
}), L.endPersist(),
|
|
4693
|
-
|
|
4693
|
+
}), L.endPersist(), y) {
|
|
4694
|
+
x(Ee);
|
|
4694
4695
|
const t = /* @__PURE__ */ new Map();
|
|
4695
4696
|
let e = 0;
|
|
4696
4697
|
for (const o of K.getNames()) {
|
|
@@ -4723,7 +4724,7 @@ var Cs = {
|
|
|
4723
4724
|
(t.length !== o.length || t.some((t, e) => t !== o[e])) && e.markStructuralChange(), o = t;
|
|
4724
4725
|
} });
|
|
4725
4726
|
Ee.addListeners({ onClose: () => {
|
|
4726
|
-
s(), r(),
|
|
4727
|
+
s(), r(), x(Ee);
|
|
4727
4728
|
} });
|
|
4728
4729
|
}
|
|
4729
4730
|
}
|