@sheetxl/io-xlsx 0.8.0-beta.12 → 0.8.0-beta.13
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/{DO75RoAQTgMuVzXv.mjs → 20e8E-6B9lZDdDO3.mjs} +2 -2
- package/browser/esm/{DKnOwucZq4z9_-r-.mjs → B4_m1DDdERBw_oc_.mjs} +4 -4
- package/browser/esm/{DsppUz-14Z7ti9i3.mjs → B8HGBRlYw3gtV6cS.mjs} +1 -1
- package/browser/esm/{aUBXbTh2r0u3x4Xo.mjs → BUnVDknxJ3z7Byym.mjs} +2 -2
- package/browser/esm/{D8k22TSWPd_RHEpj.mjs → BZULU4MreyJ0WsDY.mjs} +988 -1008
- package/browser/esm/{9dwUocbOsJuAcmKn.mjs → BduVw3dFdh9sSGv_.mjs} +2234 -2250
- package/browser/esm/CM4k1dv3DNPThvDz.mjs +24 -0
- package/browser/esm/{BIvDjK4Zl8bWRgl8.mjs → CkEGcTzeyh7cqVVb.mjs} +2 -2
- package/browser/esm/{DVLJTjJCGqrJUa8c.mjs → DmW0VCJFl3eX7pBV.mjs} +61 -61
- package/browser/esm/{CcH5ITJFTMVWUJO9.mjs → eFR-PmxEV53J-933.mjs} +1041 -1041
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{DeMZN_qj__PKo4Wh.mjs → khCH6SyDFBiHzmSl.mjs} +1 -1
- package/node/esm/{DXusvwW73FUDSyvD.mjs → BqB-dnUZaszNS--K.mjs} +1129 -1129
- package/node/esm/{CDKm5s3JE_d99TJw.mjs → ByC9KtkF09muIv1I.mjs} +81 -81
- package/node/esm/{DCaAOfuW-w_dx_qd.mjs → CHElwgFJ32Hh_gHU.mjs} +2 -2
- package/node/esm/{DSgxL0sBZtWMydVl.mjs → CIpg0EBGoVM58ajd.mjs} +2 -2
- package/node/esm/{C78E45n6j2E8rruH.mjs → CJt_Kh2EU8DlMcus.mjs} +818 -819
- package/node/esm/{DsyuWxk3bdGhJUQN.mjs → COzTSkHGuyKdKaxO.mjs} +1 -1
- package/node/esm/{BmIIQODk4dBVIXA4.mjs → Cc4XXs0Y2lL-2Et9.mjs} +976 -994
- package/node/esm/{C-e5AO_4TnGywT-m.mjs → DmvVllQAwUtHEJbX.mjs} +1 -1
- package/node/esm/index.mjs +4 -4
- package/package.json +3 -3
- package/types/src/AutoFilterRules.d.ts +0 -42
- package/types/src/DataTableFormula.d.ts +0 -10
- package/types/src/DataValidationRules.d.ts +0 -5
- package/types/src/ExcelCalcStamp.d.ts +0 -36
- package/types/src/ExcelCompat.d.ts +0 -140
- package/types/src/ExcelFunctionFacts.d.ts +0 -272
- package/types/src/ExcelReservedNames.d.ts +0 -64
- package/types/src/KnownFonts.d.ts +0 -13
- package/types/src/LegacyFormula.d.ts +0 -58
- package/types/src/Plugin.d.ts +3 -3
- package/types/src/SheetKinds.d.ts +0 -15
- package/types/src/SourcePackage.d.ts +0 -44
- package/types/src/Types.d.ts +2 -3
- package/types/src/chart/_chartExStyle.d.ts +0 -9
- package/types/src/reader/DummyFunctionUnwrap.d.ts +43 -23
- package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +0 -8
- package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +0 -10
- package/types/src/reader/domVisitors/FeaturePropertyBagVisitor.d.ts +0 -9
- package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +0 -11
- package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +0 -9
- package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +0 -15
- package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +3 -1
- package/types/src/richValue/WebImageRichValueHandler.d.ts +0 -5
- package/types/src/utils/VmlNoteStyle.d.ts +0 -19
- package/types/src/vba/VBAProject.d.ts +0 -19
- package/types/src/writer/builder/OpcXmlUtils.d.ts +0 -8
- package/types/src/writer/builder/PackageBuilder.d.ts +0 -41
- package/types/src/writer/builder/Types.d.ts +0 -30
- package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +0 -11
- package/types/src/writer/emitters/FeaturePropertyBagEmitter.d.ts +0 -10
- package/types/src/writer/utils/DefaultRows.d.ts +0 -16
- package/types/src/writer/utils/DummyFunction.d.ts +0 -23
|
@@ -1,32 +1,32 @@
|
|
|
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.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { t as dt } from "./
|
|
9
|
-
import { a as ft, i as pt, n as mt, o as ht, t as gt } from "./
|
|
7
|
+
import { t as e } from "./B4_m1DDdERBw_oc_.mjs";
|
|
8
|
+
import { $ as t, An as n, At as r, B as i, Bn as a, Cn as o, E as s, En as c, Ft as l, G as u, Gn as d, H as f, Hn as p, Ht as m, J as h, Jn as g, Jt as _, K as v, Kn as y, Ln as b, Lt as x, Mn as S, Mt as C, Nn as w, Nt as T, On as E, Pn as ee, Qn as te, Qt as D, Rt as ne, S as O, St as re, T as ie, U as ae, Un as oe, Ut as k, V as A, W as se, Wn as ce, Wt as le, Xn as ue, Y as de, Yn as fe, Yt as pe, Z as me, _ as he, _t as ge, a as _e, at as ve, b as ye, bn as be, bt as xe, c as Se, cn as Ce, ct as we, f as Te, fn as Ee, ft as De, gt as Oe, hn as ke, ht as Ae, i as je, ir as Me, it as Ne, jn as Pe, jt as Fe, kt as Ie, l as Le, ln as Re, lt as ze, m as Be, mn as Ve, mt as He, nn as Ue, nr as We, nt as Ge, o as Ke, ot as qe, p as Je, pt as Ye, q as Xe, qn as Ze, r as Qe, rr as $e, s as et, tn as tt, tr as nt, un as rt, ut as it, v as at, vt as ot, wn as st, x as ct, y as lt, yt as ut, zn as dt } from "./BduVw3dFdh9sSGv_.mjs";
|
|
9
|
+
import { a as ft, i as pt, n as mt, o as ht, t as gt } from "./khCH6SyDFBiHzmSl.mjs";
|
|
10
10
|
import { BufferUtils as _t, OverlappingRange as vt, RangeAxis as yt } from "@sheetxl/utils";
|
|
11
|
-
import { AddressUtils as j, BufferUtils as M, Color as bt, CommonUtils as N, CoordUtils as xt, FormulaError as P, FormulaText as St, Hyperlink as Ct, IBorders as F, ICellStyle as I, IColor as L, ICondition as R, IConditionalFormat as z, ICustomProperty as wt, IEffect as Tt, IFill as B, IFont as Et, IFontCollection as Dt, IRange as V, IShape as Ot, ISheet as kt, IStroke as At, ITextFrame as H, IWorkbookView as jt, IWorksheetView as Mt, LicenseManager as Nt, NumberFormat as Pt, Resource as Ft, RichArray as It, RichRecord as Lt, RichText as Rt,
|
|
12
|
-
var
|
|
11
|
+
import { AddressUtils as j, BufferUtils as M, Color as bt, CommonUtils as N, CoordUtils as xt, FormulaError as P, FormulaText as St, Hyperlink as Ct, IBorders as F, ICellStyle as I, IColor as L, ICondition as R, IConditionalFormat as z, ICustomProperty as wt, IEffect as Tt, IFill as B, IFont as Et, IFontCollection as Dt, IRange as V, IShape as Ot, ISheet as kt, IStroke as At, ITextFrame as H, IWorkbookView as jt, IWorksheetView as Mt, LicenseManager as Nt, NumberFormat as Pt, Resource as Ft, RichArray as It, RichRecord as Lt, RichText as Rt, Scalar as zt, ScalarType as Bt, ShapeStyleUtils as Vt } from "@sheetxl/sdk";
|
|
12
|
+
var Ht = [
|
|
13
13
|
["%EntityServiceId", "i"],
|
|
14
14
|
["_DisplayString", "s"],
|
|
15
15
|
["%EntityId", "s"],
|
|
16
16
|
["%EntityCulture", "s"],
|
|
17
17
|
["_Icon", "s"]
|
|
18
|
-
],
|
|
18
|
+
], Ut = [["%cvi", "r"]], Wt = [
|
|
19
19
|
["ShowInCardView", "0"],
|
|
20
20
|
["ShowInDotNotation", "0"],
|
|
21
21
|
["ShowInAutoComplete", "0"],
|
|
22
22
|
["ExcludeFromCalcComparison", "1"]
|
|
23
|
-
],
|
|
23
|
+
], Gt = (e) => {
|
|
24
24
|
let t = e.getName(), n = t.lastIndexOf(":");
|
|
25
25
|
return n > 0 ? t.substring(0, n) : t;
|
|
26
|
-
},
|
|
26
|
+
}, Kt = (e) => e instanceof Lt && Gt(e.getKind()) === "#spb", qt = (e) => "" + e, Jt = (e, t) => {
|
|
27
27
|
let n = [];
|
|
28
28
|
return e?.cardView && n.push(["ShowInCardView", "0"]), e?.dotNotation && n.push(["ShowInDotNotation", "0"]), e?.autoComplete && n.push(["ShowInAutoComplete", "0"]), t && e?.calcCompare && n.push(["ExcludeFromCalcComparison", "1"]), n;
|
|
29
|
-
},
|
|
29
|
+
}, Yt = "resourcesById", U = class {
|
|
30
30
|
constructor(e) {
|
|
31
31
|
this._kind = e.kind, this._contentType = e.contentType, this._relTypeUri = e.relTypeUri, this._path = e.path, this._regeneratesRelationships = e.regeneratesRelationships ?? !1;
|
|
32
32
|
}
|
|
@@ -45,20 +45,20 @@ var Vt = [
|
|
|
45
45
|
getPath(e) {
|
|
46
46
|
return typeof this._path == "function" ? this._path(e) : this._path;
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, Xt = class e {
|
|
49
49
|
constructor(e, t, n) {
|
|
50
50
|
this.zipWriter = e, this.outputKind = t, this.outWritable = n;
|
|
51
51
|
}
|
|
52
52
|
static createUint8Array(t) {
|
|
53
|
-
let n = new
|
|
53
|
+
let n = new Me(), r = new rt(n, t);
|
|
54
54
|
return new e(r, "uint8array");
|
|
55
55
|
}
|
|
56
56
|
static createBlob(t) {
|
|
57
|
-
let n = new
|
|
57
|
+
let n = new nt("application/zip"), r = new rt(n, t);
|
|
58
58
|
return new e(r, "blob");
|
|
59
59
|
}
|
|
60
60
|
static createWritableStream(t, n) {
|
|
61
|
-
let r = new
|
|
61
|
+
let r = new rt(t, n);
|
|
62
62
|
return new e(r, "writable", t);
|
|
63
63
|
}
|
|
64
64
|
async add(e, t, n) {
|
|
@@ -79,10 +79,10 @@ var Vt = [
|
|
|
79
79
|
compressionMethod: n?.compressionMethod,
|
|
80
80
|
crc32: n?.signature
|
|
81
81
|
};
|
|
82
|
-
if (typeof t == "string") return void await this.zipWriter.add(r, new
|
|
82
|
+
if (typeof t == "string") return void await this.zipWriter.add(r, new We(t), i);
|
|
83
83
|
if (t instanceof Uint8Array || ArrayBuffer.isView(t) || t && typeof t.byteLength == "number" && typeof t.byteOffset == "number") {
|
|
84
84
|
try {
|
|
85
|
-
await this.zipWriter.add(r, new
|
|
85
|
+
await this.zipWriter.add(r, new $e(t), i);
|
|
86
86
|
} catch (e) {
|
|
87
87
|
throw console.log("Error adding Uint8Array source to zip:", r, i), e;
|
|
88
88
|
}
|
|
@@ -110,7 +110,7 @@ var Vt = [
|
|
|
110
110
|
return this.outputKind === "writable" ? this.outWritable ?? n : n;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
function
|
|
113
|
+
function Zt(e) {
|
|
114
114
|
let t = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), n = (e) => t(e).replace(/"/g, """), r = (e) => {
|
|
115
115
|
if (!e) return "";
|
|
116
116
|
let t = "";
|
|
@@ -171,13 +171,13 @@ function Xt(e) {
|
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Qt(e) {
|
|
175
175
|
switch (e.kind) {
|
|
176
176
|
case "bytes": return e.bytes;
|
|
177
177
|
case "text": return e.text;
|
|
178
178
|
case "stream": return e.stream;
|
|
179
179
|
case "xmlStream": {
|
|
180
|
-
let t = [], n =
|
|
180
|
+
let t = [], n = Zt({ write: (e) => t.push(e) });
|
|
181
181
|
return e.writeXml(n), n.close(), function(e) {
|
|
182
182
|
let t = 0;
|
|
183
183
|
for (let n of e) t += n.byteLength;
|
|
@@ -189,36 +189,36 @@ function Zt(e) {
|
|
|
189
189
|
case "xmlStreamed": return e.write();
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
let t =
|
|
192
|
+
function $t(e) {
|
|
193
|
+
let t = en(e);
|
|
194
194
|
if (!t) return "_rels/.rels";
|
|
195
195
|
let n = t.lastIndexOf("/"), r = n >= 0 ? t.slice(0, n) : "";
|
|
196
196
|
return `${r ? `${r}/_rels` : "_rels"}/${n >= 0 ? t.slice(n + 1) : t}.rels`;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function en(e) {
|
|
199
199
|
let t = (e ?? "").replace(/\\/g, "/").trim();
|
|
200
200
|
for (; t.startsWith("/");) t = t.slice(1);
|
|
201
201
|
return t;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function tn(e) {
|
|
204
204
|
let t = (e ?? "").replace(/\\/g, "/").trim();
|
|
205
205
|
return t.startsWith("/") || (t = "/" + t), t;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function nn(e) {
|
|
208
208
|
let t = /^rId(\d+)$/.exec(e);
|
|
209
209
|
return t ? parseInt(t[1], 10) : 2 ** 53 - 1;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function rn(e) {
|
|
212
212
|
return String(e).replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """).replace(/>/g, ">");
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function an(e, t, n, r = !1) {
|
|
215
215
|
let i = t;
|
|
216
216
|
if (t.startsWith("/")) i = t.slice(1);
|
|
217
217
|
else {
|
|
218
218
|
if (!e) throw Error(`Relative path "${t}" cannot be used at root level. Use an absolute path starting with "/" (e.g., "/xl/workbook.xml").`);
|
|
219
219
|
i = (e.includes("/") ? e.slice(0, e.lastIndexOf("/") + 1) : "") + t;
|
|
220
220
|
}
|
|
221
|
-
if (i =
|
|
221
|
+
if (i = on(i), !i.includes("{n}")) {
|
|
222
222
|
if (!r && n.has(i)) throw Error(`Path already existing path: ${i}`);
|
|
223
223
|
return i;
|
|
224
224
|
}
|
|
@@ -228,7 +228,7 @@ function rn(e, t, n, r = !1) {
|
|
|
228
228
|
while (n.has(a));
|
|
229
229
|
return a;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function on(e) {
|
|
232
232
|
let t = e.split("/"), n = [];
|
|
233
233
|
for (let r of t) if (r !== "" && r !== ".") {
|
|
234
234
|
if (r === "..") {
|
|
@@ -238,17 +238,17 @@ function an(e) {
|
|
|
238
238
|
}
|
|
239
239
|
return n.join("/");
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function sn(e, t) {
|
|
242
242
|
if (!e) return t;
|
|
243
243
|
let n = e.includes("/") ? e.slice(0, e.lastIndexOf("/")) : "", r = n ? n.split("/") : [], i = t.split("/"), a = 0, o = Math.min(r.length, i.length - 1);
|
|
244
244
|
for (let e = 0; e < o && r[e] === i[e]; e++) a++;
|
|
245
245
|
let s = r.length - a;
|
|
246
246
|
return "../".repeat(s) + i.slice(a).join("/");
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function cn(e) {
|
|
249
249
|
return new TextEncoder().encode(e);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function ln(e, t) {
|
|
252
252
|
return function(e, t = " ") {
|
|
253
253
|
let n = "", r = 0, i = e.split(/(<[^>]+>)/g).filter(Boolean);
|
|
254
254
|
for (let e = 0; e < i.length; e++) {
|
|
@@ -267,9 +267,9 @@ function cn(e, t) {
|
|
|
267
267
|
return new TextDecoder("utf-8").decode(e);
|
|
268
268
|
}(e), t);
|
|
269
269
|
}
|
|
270
|
-
var
|
|
270
|
+
var un = class {
|
|
271
271
|
constructor(e) {
|
|
272
|
-
this.rels = [], this.usedIds = /* @__PURE__ */ new Set(), this.reservedIds = /* @__PURE__ */ new Set(), this.nextId = 1, this.sourcePart =
|
|
272
|
+
this.rels = [], this.usedIds = /* @__PURE__ */ new Set(), this.reservedIds = /* @__PURE__ */ new Set(), this.nextId = 1, this.sourcePart = en(e);
|
|
273
273
|
}
|
|
274
274
|
add(e, t, n) {
|
|
275
275
|
let r = n?.idHint && !this.usedIds.has(n.idHint) ? n.idHint : void 0;
|
|
@@ -296,19 +296,19 @@ var ln = class {
|
|
|
296
296
|
return this.rels;
|
|
297
297
|
}
|
|
298
298
|
toXmlBytes() {
|
|
299
|
-
let e = [...this.rels].sort((e, t) =>
|
|
300
|
-
t.push("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"), t.push(`<Relationships xmlns="${
|
|
299
|
+
let e = [...this.rels].sort((e, t) => nn(t.id) - nn(e.id) || e.id.localeCompare(t.id)), t = [];
|
|
300
|
+
t.push("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"), t.push(`<Relationships xmlns="${dn}">`);
|
|
301
301
|
for (let n of e) {
|
|
302
302
|
let e = [
|
|
303
|
-
`Id="${
|
|
304
|
-
`Type="${
|
|
305
|
-
`Target="${
|
|
303
|
+
`Id="${rn(n.id)}"`,
|
|
304
|
+
`Type="${rn(n.type)}"`,
|
|
305
|
+
`Target="${rn(n.target)}"`
|
|
306
306
|
];
|
|
307
307
|
n.targetMode === "External" && e.push("TargetMode=\"External\""), t.push(`<Relationship ${e.join(" ")}/>`);
|
|
308
308
|
}
|
|
309
|
-
return t.push("</Relationships>"),
|
|
309
|
+
return t.push("</Relationships>"), cn(t.join(""));
|
|
310
310
|
}
|
|
311
|
-
},
|
|
311
|
+
}, dn = "http://schemas.openxmlformats.org/package/2006/relationships", fn = class {
|
|
312
312
|
constructor() {
|
|
313
313
|
this._defaultsSet = /* @__PURE__ */ new Set(), this._overridesSet = /* @__PURE__ */ new Set(), this._defaults = [], this._overrides = [];
|
|
314
314
|
}
|
|
@@ -323,44 +323,44 @@ var ln = class {
|
|
|
323
323
|
}));
|
|
324
324
|
}
|
|
325
325
|
addOverride(e, t) {
|
|
326
|
-
let n =
|
|
326
|
+
let n = tn(e);
|
|
327
327
|
this._overridesSet.has(n) || (this._overridesSet.add(n), this._overrides.push({
|
|
328
328
|
key: n,
|
|
329
329
|
content: t
|
|
330
330
|
}));
|
|
331
331
|
}
|
|
332
332
|
replaceOverride(e, t) {
|
|
333
|
-
let n =
|
|
333
|
+
let n = tn(e);
|
|
334
334
|
if (!this._overridesSet.has(n)) return;
|
|
335
335
|
let r = this._overrides.find((e) => e.key === n);
|
|
336
336
|
r && (r.content = t);
|
|
337
337
|
}
|
|
338
338
|
toXmlBytes() {
|
|
339
339
|
let e = [];
|
|
340
|
-
e.push("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"), e.push(`<Types xmlns="${
|
|
340
|
+
e.push("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"), e.push(`<Types xmlns="${pn}">`);
|
|
341
341
|
let t = this._defaults.reverse();
|
|
342
342
|
this.addDefault("rels", "application/vnd.openxmlformats-package.relationships+xml"), this.addDefault("xml", "application/xml");
|
|
343
|
-
for (let { key: n, content: r } of t) e.push(`<Default Extension="${
|
|
343
|
+
for (let { key: n, content: r } of t) e.push(`<Default Extension="${rn(n)}" ContentType="${rn(r)}"/>`);
|
|
344
344
|
let n = this._overrides;
|
|
345
|
-
for (let { key: t, content: r } of n) e.push(`<Override PartName="${
|
|
346
|
-
return e.push("</Types>"),
|
|
345
|
+
for (let { key: t, content: r } of n) e.push(`<Override PartName="${rn(t)}" ContentType="${rn(r)}"/>`);
|
|
346
|
+
return e.push("</Types>"), cn(e.join(""));
|
|
347
347
|
}
|
|
348
|
-
},
|
|
348
|
+
}, pn = "http://schemas.openxmlformats.org/package/2006/content-types", mn = class {
|
|
349
349
|
constructor(e) {
|
|
350
|
-
this.parts = [], this.relsRoot = new
|
|
350
|
+
this.parts = [], this.relsRoot = new un(""), this.relsByPart = /* @__PURE__ */ new Map(), this.contentTypes = new fn(), this.zip = e;
|
|
351
351
|
}
|
|
352
352
|
addContentType(e, t) {
|
|
353
|
-
let n =
|
|
353
|
+
let n = en(e);
|
|
354
354
|
this.contentTypes.addOverride("/" + n, t);
|
|
355
355
|
}
|
|
356
356
|
addDefaultType(e, t) {
|
|
357
357
|
this.contentTypes.addDefault(e, t);
|
|
358
358
|
}
|
|
359
359
|
replaceContentType(e, t) {
|
|
360
|
-
this.contentTypes.replaceOverride("/" +
|
|
360
|
+
this.contentTypes.replaceOverride("/" + en(e), t);
|
|
361
361
|
}
|
|
362
362
|
addPart(e, t, n, r) {
|
|
363
|
-
let i =
|
|
363
|
+
let i = en(e);
|
|
364
364
|
this.parts.push({
|
|
365
365
|
path: i,
|
|
366
366
|
body: t,
|
|
@@ -368,22 +368,22 @@ var ln = class {
|
|
|
368
368
|
}), n && this.contentTypes.addOverride("/" + i, n);
|
|
369
369
|
}
|
|
370
370
|
rels(e) {
|
|
371
|
-
let t =
|
|
371
|
+
let t = en(e || "");
|
|
372
372
|
if (!t) return this.relsRoot;
|
|
373
373
|
let n = this.relsByPart.get(t);
|
|
374
|
-
return n || (n = new
|
|
374
|
+
return n || (n = new un(t), this.relsByPart.set(t, n)), n;
|
|
375
375
|
}
|
|
376
376
|
async emit() {
|
|
377
377
|
let e = [...this.parts].sort((e, t) => e.path.localeCompare(t.path));
|
|
378
378
|
for (let t of e) {
|
|
379
|
-
let e =
|
|
379
|
+
let e = Qt(t.body);
|
|
380
380
|
await this.zip.add(t.path, e, t.optionsZip);
|
|
381
381
|
}
|
|
382
382
|
let t = this.relsRoot.toXmlBytes();
|
|
383
383
|
await this.zip.add("_rels/.rels", t, {});
|
|
384
384
|
let n = [...this.relsByPart.values()].sort((e, t) => e.sourcePart.localeCompare(t.sourcePart));
|
|
385
385
|
for (let e of n) {
|
|
386
|
-
let t =
|
|
386
|
+
let t = $t(e.sourcePart), n = e.toXmlBytes();
|
|
387
387
|
await this.zip.add(t, n, {});
|
|
388
388
|
}
|
|
389
389
|
let r = this.contentTypes.toXmlBytes();
|
|
@@ -392,39 +392,39 @@ var ln = class {
|
|
|
392
392
|
async build(e) {
|
|
393
393
|
return await this.emit(), await this.zip.close(e);
|
|
394
394
|
}
|
|
395
|
-
},
|
|
396
|
-
function
|
|
397
|
-
return e === "[Content_Types].xml" ||
|
|
395
|
+
}, hn = /* @__PURE__ */ new Set(["xl/calcChain.xml"]), gn = "xl/workbook.xml", _n = [];
|
|
396
|
+
function vn(e) {
|
|
397
|
+
return e === "[Content_Types].xml" || yn.test(e);
|
|
398
398
|
}
|
|
399
|
-
var
|
|
400
|
-
function
|
|
399
|
+
var yn = /^(?:(.*)\/)?_rels\/(.*)\.rels$/;
|
|
400
|
+
function bn(e) {
|
|
401
401
|
if (e === "_rels/.rels") return "";
|
|
402
|
-
let t =
|
|
402
|
+
let t = yn.exec(e);
|
|
403
403
|
if (!t) return null;
|
|
404
404
|
let n = t[1] ?? "", r = t[2];
|
|
405
405
|
return n ? `${n}/${r}` : r;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function xn(e) {
|
|
408
408
|
return e.startsWith("#");
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
if (t.startsWith("/")) return
|
|
410
|
+
function Sn(e, t) {
|
|
411
|
+
if (t.startsWith("/")) return on(t);
|
|
412
412
|
let n = e.includes("/") ? e.slice(0, e.lastIndexOf("/")) : "";
|
|
413
|
-
return
|
|
413
|
+
return on((n ? n + "/" : "") + t);
|
|
414
414
|
}
|
|
415
|
-
var
|
|
415
|
+
var Cn = class {
|
|
416
416
|
constructor(e, t, n) {
|
|
417
|
-
this._queue = [], this._scheduledByNodeKey = /* @__PURE__ */ new Map(), this._nodesByPath = /* @__PURE__ */ new Map(), this._writtenPaths = /* @__PURE__ */ new Set(), this._regeneratedPaths = /* @__PURE__ */ new Set(), this._explicitRelTargets = /* @__PURE__ */ new Set(), this._partWriter = new
|
|
417
|
+
this._queue = [], this._scheduledByNodeKey = /* @__PURE__ */ new Map(), this._nodesByPath = /* @__PURE__ */ new Map(), this._writtenPaths = /* @__PURE__ */ new Set(), this._regeneratedPaths = /* @__PURE__ */ new Set(), this._explicitRelTargets = /* @__PURE__ */ new Set(), this._partWriter = new mn(e), this._registry = t, this._options = n ?? {}, this._mapState = this._options.mapState ?? /* @__PURE__ */ new Map(), this._sourcePackage = this._options.sourcePackage ?? null, this._macroEnabled = this._options.macroEnabled ?? !1, this._template = this._options.template ?? !1, this._reserveSourceRelIds("");
|
|
418
418
|
}
|
|
419
419
|
_isSourcePartCarried(e) {
|
|
420
420
|
let t = this._sourcePackage;
|
|
421
|
-
return !(!t || !t.has(e)) && !
|
|
422
|
-
return
|
|
421
|
+
return !(!t || !t.has(e)) && !hn.has(e) && !t.isAbsorbed(e) && !(!this._macroEnabled && e === "xl/vbaProject.bin") && !vn(e) && (!t.hasStructuralChange() || !function(e) {
|
|
422
|
+
return _n.some((t) => t.test(e));
|
|
423
423
|
}(e));
|
|
424
424
|
}
|
|
425
425
|
_reserveSourceRelIds(e) {
|
|
426
|
-
let t = this._sourcePackage?.getPart(
|
|
427
|
-
t && this._partWriter.rels(e).reserve(
|
|
426
|
+
let t = this._sourcePackage?.getPart($t(e));
|
|
427
|
+
t && this._partWriter.rels(e).reserve(Re(t.data).map((e) => e.id));
|
|
428
428
|
}
|
|
429
429
|
async waitEmit() {
|
|
430
430
|
let e = this._queue;
|
|
@@ -443,7 +443,7 @@ var Sn = class {
|
|
|
443
443
|
for (let r of e.getNames()) t.has(r) || this._isSourcePartCarried(r) && n.push(r);
|
|
444
444
|
let r = new Set(t);
|
|
445
445
|
for (let e of n) r.add(e);
|
|
446
|
-
let i = e.getPart("[Content_Types].xml"), a = i ?
|
|
446
|
+
let i = e.getPart("[Content_Types].xml"), a = i ? Ce(i.data) : null;
|
|
447
447
|
if (a) for (let { ext: e, contentType: t } of a.defaults) this._partWriter.addDefaultType(e, t);
|
|
448
448
|
for (let t of n) {
|
|
449
449
|
let n = e.getPart(t), r = a?.overrides.get("/" + t);
|
|
@@ -461,29 +461,29 @@ var Sn = class {
|
|
|
461
461
|
}, r), this._writtenPaths.add(t);
|
|
462
462
|
}
|
|
463
463
|
for (let n of e.getNames()) {
|
|
464
|
-
if (n === "[Content_Types].xml" || !
|
|
465
|
-
let i =
|
|
464
|
+
if (n === "[Content_Types].xml" || !vn(n)) continue;
|
|
465
|
+
let i = bn(n);
|
|
466
466
|
i !== null && (i === "" || r.has(i)) && (e.isAbsorbed(i) || this._regeneratedPaths.has(i) || this._mergeSourceRelsInto(i, e.getPart(n).data, t, r));
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
_applyWorkbookContentTypeVariant() {
|
|
470
470
|
if (this._template) {
|
|
471
471
|
let e = this._macroEnabled ? "application/vnd.ms-excel.template.macroEnabled.main+xml" : "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml";
|
|
472
|
-
this._partWriter.replaceContentType(
|
|
473
|
-
} else this._macroEnabled && this._partWriter.replaceContentType(
|
|
472
|
+
this._partWriter.replaceContentType(gn, e);
|
|
473
|
+
} else this._macroEnabled && this._partWriter.replaceContentType(gn, "application/vnd.ms-excel.sheet.macroEnabled.main+xml");
|
|
474
474
|
}
|
|
475
475
|
_mergeSourceRelsInto(e, t, n, r) {
|
|
476
476
|
let i = this._partWriter.rels(e), a = e === "" || n.has(e);
|
|
477
|
-
for (let o of
|
|
478
|
-
if (o.external ||
|
|
477
|
+
for (let o of Re(t)) {
|
|
478
|
+
if (o.external || xn(o.target)) {
|
|
479
479
|
i.add(o.type, o.target, {
|
|
480
480
|
external: o.external,
|
|
481
481
|
idHint: o.id
|
|
482
482
|
});
|
|
483
483
|
continue;
|
|
484
484
|
}
|
|
485
|
-
let t =
|
|
486
|
-
a && (n.has(t) || this._explicitRelTargets.has(`${e}::${t}`)) || (r.has(t) ? i.add(o.type, o.target, { idHint: o.id }) : this._registry.ownsRelType(o.type) ||
|
|
485
|
+
let t = Sn(e, o.target);
|
|
486
|
+
a && (n.has(t) || this._explicitRelTargets.has(`${e}::${t}`)) || (r.has(t) ? i.add(o.type, o.target, { idHint: o.id }) : this._registry.ownsRelType(o.type) || hn.has(t) || this._sourcePackage?.isAbsorbed(t) || console.warn(`Dropping preserved relationship to missing part '${t}'`, e || "(root)"));
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
addPart(e, t, n, r) {
|
|
@@ -494,7 +494,7 @@ var Sn = class {
|
|
|
494
494
|
if (!a) throw Error(`No emitter registered for kind '${t}'.`);
|
|
495
495
|
let o = a.getContentType(n), s = a.getRelTypeUri(n), c = r ?? a.getPath?.(n);
|
|
496
496
|
if (!c) throw Error("No path provided in either argument or emitter.");
|
|
497
|
-
let l = this._writtenPaths, u =
|
|
497
|
+
let l = this._writtenPaths, u = an(e, c, l), d = `${t}:${u}`, f = this._scheduledByNodeKey.get(d);
|
|
498
498
|
if (!f) {
|
|
499
499
|
let e;
|
|
500
500
|
a.regeneratesRelationships?.() ? this._regeneratedPaths.add(u) : this._reserveSourceRelIds(u), f = {
|
|
@@ -513,7 +513,7 @@ var Sn = class {
|
|
|
513
513
|
p || (p = /* @__PURE__ */ new Set(), this._nodesByPath.set(e, p)), p.add(d), !o || s || e || this._partWriter.rels("").add("http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", u);
|
|
514
514
|
let m = null;
|
|
515
515
|
if (s) {
|
|
516
|
-
let t =
|
|
516
|
+
let t = sn(e, f.path);
|
|
517
517
|
m = this._partWriter.rels(e).add(s, t, { idHint: i });
|
|
518
518
|
}
|
|
519
519
|
return l.add(u), {
|
|
@@ -528,9 +528,9 @@ var Sn = class {
|
|
|
528
528
|
_addBinaryInternal(e, t, n, r, i, a = !1, o) {
|
|
529
529
|
if (!i) throw Error("No path provided for binary.");
|
|
530
530
|
if (!n) throw Error("No content type provided for binary.");
|
|
531
|
-
let s = this._writtenPaths, c =
|
|
531
|
+
let s = this._writtenPaths, c = an(e, i, s, a), l = null;
|
|
532
532
|
if (r) {
|
|
533
|
-
let t =
|
|
533
|
+
let t = sn(e, c);
|
|
534
534
|
l = this._partWriter.rels(e).add(r, t, { idHint: o });
|
|
535
535
|
}
|
|
536
536
|
if (e || this._partWriter.rels("").add("http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", c), !s.has(c)) {
|
|
@@ -570,20 +570,20 @@ var Sn = class {
|
|
|
570
570
|
r.push(e);
|
|
571
571
|
} }, a;
|
|
572
572
|
await t.emit(e.payload, {
|
|
573
|
-
getXMLWriter: () => a || (a =
|
|
573
|
+
getXMLWriter: () => a || (a = Zt(i), a),
|
|
574
574
|
addPart: (e, t, r, i) => this._addPartInternal(n, e, t, r, i),
|
|
575
575
|
addBinary: (e, t, r, i, a = !1, o) => this._addBinaryInternal(n, e, t, r, i, a, o),
|
|
576
576
|
addExternal: (e, t, r) => ({
|
|
577
577
|
path: t,
|
|
578
578
|
contentTypeUri: null,
|
|
579
579
|
relId: this._partWriter.rels(n).add(e, t, {
|
|
580
|
-
external: !
|
|
580
|
+
external: !xn(t),
|
|
581
581
|
idHint: r
|
|
582
582
|
})
|
|
583
583
|
}),
|
|
584
584
|
addRelationship: (e, t, r) => {
|
|
585
585
|
if (!this._writtenPaths.has(t) && !this._isSourcePartCarried(t)) return null;
|
|
586
|
-
let i =
|
|
586
|
+
let i = sn(n, t), a = this._partWriter.rels(n).add(e, i, { idHint: r });
|
|
587
587
|
return this._explicitRelTargets.add(`${n}::${t}`), a;
|
|
588
588
|
},
|
|
589
589
|
waitEmit: () => this._waitForDescendants(e.path),
|
|
@@ -604,7 +604,7 @@ var Sn = class {
|
|
|
604
604
|
for (let t of e) n.set(t, r), r += t.byteLength;
|
|
605
605
|
return n;
|
|
606
606
|
}(r), s = this._options.onPartEmitted;
|
|
607
|
-
s && await s(e.kind, e.path, o),
|
|
607
|
+
s && await s(e.kind, e.path, o), wn && (console.log(`\n=== ${e.path} ===`), console.log(ln(o))), this._partWriter.addPart(e.path, {
|
|
608
608
|
kind: "bytes",
|
|
609
609
|
bytes: o
|
|
610
610
|
}, e.contentType);
|
|
@@ -614,7 +614,7 @@ var Sn = class {
|
|
|
614
614
|
this._scheduledByNodeKey.delete(e.key), e.resolve();
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
},
|
|
617
|
+
}, wn = !1, Tn = class {
|
|
618
618
|
constructor() {
|
|
619
619
|
this.map = /* @__PURE__ */ new Map();
|
|
620
620
|
}
|
|
@@ -636,10 +636,10 @@ var Sn = class {
|
|
|
636
636
|
return !1;
|
|
637
637
|
}
|
|
638
638
|
};
|
|
639
|
-
function
|
|
639
|
+
function En(e, t, n) {
|
|
640
640
|
e && (e.algorithm && (t[n ? `${n}AlgorithmName` : "algorithmName"] = e.algorithm), e.hash && (t[n ? `${n}HashValue` : "hashValue"] = e.hash), e.salt && (t[n ? `${n}SaltValue` : "saltValue"] = e.salt), e.spinCount !== void 0 && (t[n ? `${n}SpinCount` : "spinCount"] = e.spinCount), e.legacyHash && (t[n ? `${n}Password` : "password"] = e.legacyHash));
|
|
641
641
|
}
|
|
642
|
-
var
|
|
642
|
+
var Dn = "hiddenFormulaXfs", On = class {
|
|
643
643
|
constructor(e, t) {
|
|
644
644
|
this._variants = /* @__PURE__ */ new Map(), this._sources = [], this._json = e, this._styles = t, this._directCount = Math.max(1, e?.direct?.length ?? 0);
|
|
645
645
|
}
|
|
@@ -656,7 +656,7 @@ var En = "hiddenFormulaXfs", Dn = class {
|
|
|
656
656
|
let r = (e === 0 ? void 0 : t?.named) ?? I.BuiltInName.Normal;
|
|
657
657
|
return this._styles.getNamedStyles().getByName(r)?.toJSON().style?.protection?.showFormulas ?? !1;
|
|
658
658
|
}
|
|
659
|
-
},
|
|
659
|
+
}, kn = "cellControlComplements", An = class {
|
|
660
660
|
constructor() {
|
|
661
661
|
this._controls = [], this._xfComplements = [];
|
|
662
662
|
}
|
|
@@ -674,7 +674,7 @@ var En = "hiddenFormulaXfs", Dn = class {
|
|
|
674
674
|
getXfComplement(e) {
|
|
675
675
|
return this._xfComplements[e] ?? null;
|
|
676
676
|
}
|
|
677
|
-
},
|
|
677
|
+
}, jn = class {
|
|
678
678
|
constructor(e) {
|
|
679
679
|
this._byKey = /* @__PURE__ */ new Map(), this.list = [], this.complements = [], this.getElementID(e ?? {});
|
|
680
680
|
}
|
|
@@ -692,7 +692,7 @@ var En = "hiddenFormulaXfs", Dn = class {
|
|
|
692
692
|
return r !== void 0 || (r = this.list.length, this._byKey.set(n, r), this.list.push(e), this.complements.push(t)), r;
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
|
-
function
|
|
695
|
+
function Mn(e, t, n, r) {
|
|
696
696
|
let i = e.cellControls;
|
|
697
697
|
if (!i || i.length === 0) return [];
|
|
698
698
|
let a = [];
|
|
@@ -710,14 +710,14 @@ function jn(e, t, n, r) {
|
|
|
710
710
|
}
|
|
711
711
|
return a;
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Nn(e, t, n, r, i) {
|
|
714
714
|
let a = e, o = e.directStyles ?? [];
|
|
715
715
|
if (o.length === 0 && i.length === 0) return a;
|
|
716
716
|
let s = t.getEntireRange().getCoords(), c = [], l = [], u = o.length;
|
|
717
717
|
for (let e = 0; e < u; e++) {
|
|
718
718
|
let i = t.getRange(o[e][0]).getCoords(), a = n[o[e][1]];
|
|
719
719
|
if (l.push([i, a]), a?.borders && !xt.isSingleCell(i)) {
|
|
720
|
-
let e =
|
|
720
|
+
let e = In(i, a, s);
|
|
721
721
|
for (let t = 0; t < e.length; t++) c.push([e[t][0], r.getElementID(e[t][1])]);
|
|
722
722
|
} else c.push([i, r.getElementID(a)]);
|
|
723
723
|
}
|
|
@@ -732,17 +732,17 @@ function Mn(e, t, n, r, i) {
|
|
|
732
732
|
for (let t = 0; t < e.length; t++) {
|
|
733
733
|
let a = e[t][1]?.borders;
|
|
734
734
|
if (!a) continue;
|
|
735
|
-
let { rowStart: o, rowEnd: s } = e[t][0], c =
|
|
736
|
-
c >=
|
|
737
|
-
let l =
|
|
738
|
-
if (l >=
|
|
739
|
-
let e =
|
|
740
|
-
e >=
|
|
735
|
+
let { rowStart: o, rowEnd: s } = e[t][0], c = zn(a.top);
|
|
736
|
+
c >= Rn && i(n, o, o), c >= Ln && i(r, o - 1, o - 1);
|
|
737
|
+
let l = zn(a.bottom);
|
|
738
|
+
if (l >= Ln && i(r, s, s), l >= Rn && i(n, s + 1, s + 1), s > o) {
|
|
739
|
+
let e = zn(a.horizontal);
|
|
740
|
+
e >= Ln && i(r, o, s - 1), e >= Rn && i(n, o + 1, s);
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
return {
|
|
744
|
-
top:
|
|
745
|
-
bottom:
|
|
744
|
+
top: Bn(n),
|
|
745
|
+
bottom: Bn(r)
|
|
746
746
|
};
|
|
747
747
|
}(l, s);
|
|
748
748
|
c = function(e, t, n) {
|
|
@@ -775,14 +775,14 @@ function Mn(e, t, n, r, i) {
|
|
|
775
775
|
value: t
|
|
776
776
|
}));
|
|
777
777
|
r.sort((e, t) => e.value - t.value);
|
|
778
|
-
let i =
|
|
778
|
+
let i = Zn(r, t, null, e.cols, !0), a = Array(r[r.length - 1].value + 1).fill(0), o = Math.floor((t.colEnd - t.colStart + 1) / 2), s;
|
|
779
779
|
for (let e = 0; s === void 0 && e < i.length; e++) {
|
|
780
780
|
let t = i[e], n = t.value.s, r = a[n] + (t.max - t.min + 1);
|
|
781
781
|
r > o && (s = n), a[n] = r;
|
|
782
782
|
}
|
|
783
|
-
let c =
|
|
783
|
+
let c = Zn(r, t, s, e.rows, !1);
|
|
784
784
|
if (e.cols === i && e.rows === c) return e;
|
|
785
|
-
let l = [], u =
|
|
785
|
+
let l = [], u = Vn(i, t, !0), d = Vn(c, t, !1), f = r;
|
|
786
786
|
for (let e of u) f.push(e), f.push({
|
|
787
787
|
...e,
|
|
788
788
|
value: 0
|
|
@@ -803,18 +803,18 @@ function Mn(e, t, n, r, i) {
|
|
|
803
803
|
}, y = (e, t, r) => {
|
|
804
804
|
let i = v(t);
|
|
805
805
|
if (!i || xt.isEqualRanges(e, r)) return t;
|
|
806
|
-
let a =
|
|
807
|
-
a &&=
|
|
806
|
+
let a = Fn(i.borders, e, r, !0);
|
|
807
|
+
a &&= Fn(a, e, r, !1);
|
|
808
808
|
let o = { ...i };
|
|
809
809
|
return a ? o.borders = a : delete o.borders, n.getElementID(o, n.getElementComplement?.(t)) ?? t;
|
|
810
810
|
}, b = (e, t, n, r, i) => t === r && (!v(r) || y(e, t, i) === y(n, r, i)), x = /* @__PURE__ */ new Map(), S = (e, t) => {
|
|
811
811
|
if (t.rowStart >= m || t.colStart >= h) return;
|
|
812
812
|
let n = x.get(e);
|
|
813
813
|
n ? n.push(t) : x.set(e, [t]);
|
|
814
|
-
}, C = [], w = [],
|
|
815
|
-
for (; !
|
|
816
|
-
let e =
|
|
817
|
-
|
|
814
|
+
}, C = [], w = [], T = p.next();
|
|
815
|
+
for (; !T.done;) {
|
|
816
|
+
let e = T.value;
|
|
817
|
+
T = p.next();
|
|
818
818
|
let t = e.overlaps, n = e.range, r = t.length;
|
|
819
819
|
if (r === 1) {
|
|
820
820
|
t[0].value && S(t[0], n);
|
|
@@ -835,7 +835,7 @@ function Mn(e, t, n, r, i) {
|
|
|
835
835
|
}) : S(a, n) : b(s, o, a, i, n) || S(a, n);
|
|
836
836
|
}
|
|
837
837
|
for (let [e, t] of x) {
|
|
838
|
-
let n =
|
|
838
|
+
let n = Hn(t);
|
|
839
839
|
for (let t = 0; t < n.length; t++) {
|
|
840
840
|
let r = {
|
|
841
841
|
rowStart: n[t].rowStart,
|
|
@@ -846,19 +846,19 @@ function Mn(e, t, n, r, i) {
|
|
|
846
846
|
l.push([r, y(e, e.value, r)]);
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
let
|
|
849
|
+
let E = c;
|
|
850
850
|
if (C.length > 0) {
|
|
851
|
-
let e =
|
|
852
|
-
for (let t of e)
|
|
853
|
-
for (let t of C)
|
|
854
|
-
for (let t of w)
|
|
851
|
+
let e = Jn(C, w, t);
|
|
852
|
+
for (let t of e) E = Wn(E ?? [], t.min, t.max, 0);
|
|
853
|
+
for (let t of C) Yn(t, e, null, (e) => g(e, 0));
|
|
854
|
+
for (let t of w) Yn(t, e, (e) => g(e, y(t.header, t.value, e)), null);
|
|
855
855
|
}
|
|
856
856
|
return l.sort((e, t) => {
|
|
857
857
|
let n = e[0], r = t[0];
|
|
858
858
|
return n.rowStart === r.rowStart ? n.colStart - r.colStart : n.rowStart - r.rowStart;
|
|
859
859
|
}), {
|
|
860
860
|
cols: i,
|
|
861
|
-
rows:
|
|
861
|
+
rows: E,
|
|
862
862
|
cells: l
|
|
863
863
|
};
|
|
864
864
|
}({
|
|
@@ -900,7 +900,7 @@ function Mn(e, t, n, r, i) {
|
|
|
900
900
|
let h = f.cells;
|
|
901
901
|
return h.length > 0 ? p.directStyles = h.map(([e, t]) => [j.rangeToString(e, s), t]) : delete p.directStyles, p;
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function Pn(e, t) {
|
|
904
904
|
if (!e || !t) return e === t;
|
|
905
905
|
if (e === t) return !0;
|
|
906
906
|
if (e.style !== t.style) return !1;
|
|
@@ -910,11 +910,11 @@ function Nn(e, t) {
|
|
|
910
910
|
let r = t.color;
|
|
911
911
|
return t.color?.isIColor && (r = t.color.toString()), n === r;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Fn(e, t, n, r) {
|
|
914
914
|
let i = r ? F.Edge.Left : F.Edge.Top, a = r ? F.Edge.Right : F.Edge.Bottom, o = r ? F.Edge.Vertical : F.Edge.Horizontal, s = r ? t.colStart : t.rowStart, c = r ? t.colEnd : t.rowEnd, l = r ? n.colStart : n.rowStart, u = r ? n.colEnd : n.rowEnd, d = s === l, f = c === u, p = { ...e };
|
|
915
915
|
return d && f ? e : (delete p[i], delete p[a], delete p[o], d ? e[i] !== void 0 && (p[i] = e[i]) : e[o] !== void 0 && (p[i] = e[o]), f ? e[a] !== void 0 && (p[a] = e[a]) : e[o] !== void 0 && (p[a] = e[o]), u - l > 0 && e[o] !== void 0 && (p[o] = e[o]), Object.keys(p).length === 0 ? null : p);
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function In(e, t, n) {
|
|
918
918
|
let r = e.colEnd - e.colStart + 1, i = e.rowEnd - e.rowStart + 1, a = t.borders;
|
|
919
919
|
if (r === 1 && i === 1 || !a) return [[e, t]];
|
|
920
920
|
let o = n !== void 0 && e.colEnd >= n.colEnd, s = n !== void 0 && e.rowEnd >= n.rowEnd;
|
|
@@ -922,13 +922,13 @@ function Fn(e, t, n) {
|
|
|
922
922
|
let n = { ...t };
|
|
923
923
|
return delete n.borders, Object.keys(n).length > 0 ? [[e, n]] : [];
|
|
924
924
|
}
|
|
925
|
-
let c = r === 1 ||
|
|
925
|
+
let c = r === 1 || Pn(a[F.Edge.Left], a[F.Edge.Vertical]) && Pn(a[F.Edge.Right], a[F.Edge.Vertical]), l = i === 1 || Pn(a[F.Edge.Top], a[F.Edge.Horizontal]) && Pn(a[F.Edge.Bottom], a[F.Edge.Horizontal]);
|
|
926
926
|
if (c && l) return [[e, a === t.borders ? t : {
|
|
927
927
|
...t,
|
|
928
928
|
borders: a
|
|
929
929
|
}]];
|
|
930
930
|
let u = [], d = (e, t, n, r, a) => {
|
|
931
|
-
let o =
|
|
931
|
+
let o = Fn(n, e, t, a);
|
|
932
932
|
o && (a && i !== 1 ? (d(t, {
|
|
933
933
|
colStart: t.colStart,
|
|
934
934
|
rowStart: t.rowStart,
|
|
@@ -966,11 +966,11 @@ function Fn(e, t, n) {
|
|
|
966
966
|
rowEnd: e.rowEnd
|
|
967
967
|
}, a, t, !0)), u;
|
|
968
968
|
}
|
|
969
|
-
var
|
|
969
|
+
var Ln = 2, Rn = 3, zn = (e) => {
|
|
970
970
|
let t = e?.style;
|
|
971
971
|
return t ? F.BuiltInDefinitions.get(t)?.width ?? 0 : 0;
|
|
972
972
|
};
|
|
973
|
-
function
|
|
973
|
+
function Bn(e) {
|
|
974
974
|
e.sort((e, t) => e.min - t.min);
|
|
975
975
|
let t = [];
|
|
976
976
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -982,7 +982,7 @@ function zn(e) {
|
|
|
982
982
|
}
|
|
983
983
|
return t;
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function Vn(e, t, n) {
|
|
986
986
|
let r = n ? t.rowStart : t.colStart, i = n ? t.rowEnd : t.colEnd;
|
|
987
987
|
return e.map((e) => {
|
|
988
988
|
let t = {
|
|
@@ -994,7 +994,7 @@ function Bn(e, t, n) {
|
|
|
994
994
|
return e.value !== void 0 && (t.value = e.value), t;
|
|
995
995
|
});
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function Hn(e) {
|
|
998
998
|
let t = [...e];
|
|
999
999
|
if (e.length <= 1) return t;
|
|
1000
1000
|
let n = !0, r = 0;
|
|
@@ -1014,8 +1014,8 @@ function Vn(e) {
|
|
|
1014
1014
|
} while (r < 2 && t.length > 1);
|
|
1015
1015
|
return t;
|
|
1016
1016
|
}
|
|
1017
|
-
var
|
|
1018
|
-
function
|
|
1017
|
+
var Un = (e, t) => e.s === t.s && N.deepEqual(e, t);
|
|
1018
|
+
function Wn(e, t, n, r) {
|
|
1019
1019
|
let i = 0;
|
|
1020
1020
|
for (; i < e.length && e[i].max < t;) i++;
|
|
1021
1021
|
let a = e.slice(0, i), o = [], s = [], c = t, l = i;
|
|
@@ -1056,7 +1056,7 @@ function Un(e, t, n, r) {
|
|
|
1056
1056
|
let d = [];
|
|
1057
1057
|
for (let e = 0; e < u.length; e++) {
|
|
1058
1058
|
let t = u[e], n = d[d.length - 1];
|
|
1059
|
-
n && t.min <= n.max + 1 &&
|
|
1059
|
+
n && t.min <= n.max + 1 && Un(n.value, t.value) ? n.max = Math.max(n.max, t.max) : d.push({ ...t });
|
|
1060
1060
|
}
|
|
1061
1061
|
let f = d.filter((e) => e.value && Object.keys(e.value).length > 0);
|
|
1062
1062
|
return [
|
|
@@ -1065,20 +1065,20 @@ function Un(e, t, n, r) {
|
|
|
1065
1065
|
...s
|
|
1066
1066
|
];
|
|
1067
1067
|
}
|
|
1068
|
-
var
|
|
1068
|
+
var Gn = [
|
|
1069
1069
|
9,
|
|
1070
1070
|
99,
|
|
1071
1071
|
999,
|
|
1072
1072
|
9999,
|
|
1073
1073
|
99999,
|
|
1074
1074
|
999999
|
|
1075
|
-
],
|
|
1075
|
+
], Kn = (e, t) => {
|
|
1076
1076
|
let n = (n, r) => Math.max(0, Math.min(t, r) - Math.max(e, n) + 1);
|
|
1077
1077
|
return n(0, 25) + 2 * n(26, 701) + 3 * n(702, 16383);
|
|
1078
|
-
},
|
|
1078
|
+
}, qn = (e) => {
|
|
1079
1079
|
let t = [];
|
|
1080
1080
|
for (let n of e) {
|
|
1081
|
-
let e = n.colEnd - n.colStart + 1, r =
|
|
1081
|
+
let e = n.colEnd - n.colStart + 1, r = Kn(n.colStart, n.colEnd);
|
|
1082
1082
|
t.push([
|
|
1083
1083
|
n.rowStart,
|
|
1084
1084
|
e,
|
|
@@ -1102,10 +1102,10 @@ var Wn = [
|
|
|
1102
1102
|
});
|
|
1103
1103
|
}
|
|
1104
1104
|
return n;
|
|
1105
|
-
},
|
|
1106
|
-
let r =
|
|
1105
|
+
}, Jn = (e, t, n) => {
|
|
1106
|
+
let r = qn(e);
|
|
1107
1107
|
if (r.length === 0) return [];
|
|
1108
|
-
let i =
|
|
1108
|
+
let i = qn(t), a = [...Gn];
|
|
1109
1109
|
for (let e of r) a.push(e.min, e.max + 1);
|
|
1110
1110
|
for (let e of i) a.push(e.min, e.max + 1);
|
|
1111
1111
|
a.sort((e, t) => e - t);
|
|
@@ -1125,7 +1125,7 @@ var Wn = [
|
|
|
1125
1125
|
});
|
|
1126
1126
|
}
|
|
1127
1127
|
return s;
|
|
1128
|
-
},
|
|
1128
|
+
}, Yn = (e, t, n, r) => {
|
|
1129
1129
|
let i = e.rowStart;
|
|
1130
1130
|
for (let a = 0; a < t.length && i <= e.rowEnd; a++) {
|
|
1131
1131
|
let o = t[a];
|
|
@@ -1146,7 +1146,7 @@ var Wn = [
|
|
|
1146
1146
|
...e,
|
|
1147
1147
|
rowStart: i
|
|
1148
1148
|
});
|
|
1149
|
-
},
|
|
1149
|
+
}, Xn = (e, t, n, r) => {
|
|
1150
1150
|
let i = t, a = [], o = e[i], s = o.value;
|
|
1151
1151
|
for (; o;) r ? a.push({
|
|
1152
1152
|
min: o.colStart,
|
|
@@ -1201,18 +1201,18 @@ var Wn = [
|
|
|
1201
1201
|
} else n.push(l), l = { ...t };
|
|
1202
1202
|
}
|
|
1203
1203
|
return n.push(l), i;
|
|
1204
|
-
},
|
|
1204
|
+
}, Zn = (e, t, n, r, i) => {
|
|
1205
1205
|
let a = t.rowEnd, o = i ? a - t.rowStart + 1 : t.colEnd - t.colStart + 1, s = Math.floor(.5 * o), c = i ? a : t.colEnd, l = 0;
|
|
1206
1206
|
do {
|
|
1207
1207
|
let t = e[l].value, o = [];
|
|
1208
|
-
l =
|
|
1208
|
+
l = Xn(e, l, o, i);
|
|
1209
1209
|
for (let e = 0; e < o.length; e++) {
|
|
1210
1210
|
let l = o[e];
|
|
1211
|
-
l.value < s || l.touchMax < c || !i && l.min >= a || (i || n === null || n !== t) && (r =
|
|
1211
|
+
l.value < s || l.touchMax < c || !i && l.min >= a || (i || n === null || n !== t) && (r = Wn(r ?? [], l.min, l.max, t));
|
|
1212
1212
|
}
|
|
1213
1213
|
} while (l < e.length);
|
|
1214
1214
|
return r;
|
|
1215
|
-
},
|
|
1215
|
+
}, Qn = class {
|
|
1216
1216
|
constructor() {
|
|
1217
1217
|
this._daprFMBks = [], this._daprFMBkMap = /* @__PURE__ */ new Map(), this._rvFMBks = [], this._rvFMBkMap = /* @__PURE__ */ new Map(), this._valueMeta = [];
|
|
1218
1218
|
}
|
|
@@ -1247,7 +1247,7 @@ var Wn = [
|
|
|
1247
1247
|
getValueMeta() {
|
|
1248
1248
|
return this._valueMeta;
|
|
1249
1249
|
}
|
|
1250
|
-
},
|
|
1250
|
+
}, $n = class {
|
|
1251
1251
|
constructor(e, t, n = console.warn) {
|
|
1252
1252
|
this._entries = [], this._keyMap = /* @__PURE__ */ new Map(), this._writers = /* @__PURE__ */ new Map(), this._structureIndex = /* @__PURE__ */ new Map(), this._structures = /* @__PURE__ */ new Map(), this._arrays = [], this._arrayKeys = /* @__PURE__ */ new Map(), this._bagStructures = [], this._bagStructureKeys = /* @__PURE__ */ new Map(), this._bags = [], this._bagKeys = /* @__PURE__ */ new Map(), this._bagArrays = [], this._bagArrayKeys = /* @__PURE__ */ new Map(), this._richStyles = [], this._richStyleKeys = /* @__PURE__ */ new Map(), this._keyFlags = /* @__PURE__ */ new Map(), this._records = ((e) => {
|
|
1253
1253
|
let t = (n) => {
|
|
@@ -1256,7 +1256,7 @@ var Wn = [
|
|
|
1256
1256
|
let s = n.getValues()[o.name];
|
|
1257
1257
|
switch (o.valueType) {
|
|
1258
1258
|
case "rich":
|
|
1259
|
-
r.push([o.name, "spb"]), a.push(
|
|
1259
|
+
r.push([o.name, "spb"]), a.push(Kt(s) ? "" + t(s) : "");
|
|
1260
1260
|
break;
|
|
1261
1261
|
case "array":
|
|
1262
1262
|
r.push([o.name, "spba"]), a.push(s instanceof It ? "" + e.addBagArray(i(s)) : "");
|
|
@@ -1271,7 +1271,7 @@ var Wn = [
|
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
1273
|
return e.addBag(r, a);
|
|
1274
|
-
}, n = (t, n) => e.addBag(t.map(([e]) => [
|
|
1274
|
+
}, n = (t, n) => e.addBag(t.map(([e]) => [Ve(e), n]), t.map(([, e]) => e)), r = (e) => e == null ? ["s", ""] : P.isError(e) ? ["e", e.getLabel()] : !0 === e.isIRichData ? ["r", "" + o(e, void 0)] : typeof e == "boolean" ? ["b", e ? "1" : "0"] : typeof e == "number" ? [void 0, qt(e)] : ["s", "" + e], i = (e) => e.getElements().flat().map(r), a = (t) => {
|
|
1275
1275
|
let n = t.getElements(), r = Math.max(1, ...n.map((e) => e.length));
|
|
1276
1276
|
return e.addArray(n.length, r, i(t));
|
|
1277
1277
|
}, o = (t, r) => {
|
|
@@ -1280,15 +1280,15 @@ var Wn = [
|
|
|
1280
1280
|
if (t instanceof Ct) return e.addValue(e.structureFor("_hyperlink", [["Address", "s"], ["Text", "s"]]), [t.getAddress() ?? "", "" + (t.getFriendlyName() ?? t.getAddress() ?? "")]);
|
|
1281
1281
|
if (typeof t == "number") {
|
|
1282
1282
|
let i = r ? [["_Self", "" + e.addRichStyle({ numberFormat: r })]] : [];
|
|
1283
|
-
return e.addValue(e.structureFor("_formattednumber", [["_Format", "spb"]]), ["" + n(i, "i")],
|
|
1283
|
+
return e.addValue(e.structureFor("_formattednumber", [["_Format", "spb"]]), ["" + n(i, "i")], qt(t));
|
|
1284
1284
|
}
|
|
1285
1285
|
let i = e.addHandled(t);
|
|
1286
1286
|
return i === null ? e.addHandled(P.BuiltIn.Value) : i;
|
|
1287
1287
|
}, s = (r) => {
|
|
1288
|
-
let i = r.getKind(), s =
|
|
1288
|
+
let i = r.getKind(), s = Gt(i), c = i.getMeta(), l = c?.card, u = r.getOwnMeta() ?? {}, d = r.getValues(), f = [], p = [];
|
|
1289
1289
|
for (let r of i.getProperties()) {
|
|
1290
1290
|
let { name: m } = r;
|
|
1291
|
-
if (
|
|
1291
|
+
if (Ee.has(m)) {
|
|
1292
1292
|
switch (f.push([m, m === "_Icon" ? "s" : "spb"]), m) {
|
|
1293
1293
|
case "_Icon":
|
|
1294
1294
|
p.push(c?.icon ?? "");
|
|
@@ -1319,7 +1319,7 @@ var Wn = [
|
|
|
1319
1319
|
case "_Flags": {
|
|
1320
1320
|
let t = [];
|
|
1321
1321
|
for (let n of i.getProperties()) {
|
|
1322
|
-
let r =
|
|
1322
|
+
let r = Jt(u[n.name]?.excludeFrom, !1);
|
|
1323
1323
|
r.length !== 0 && t.push([n.name, "" + e.addBag(r.map(([e]) => [e, "b"]), r.map(([, e]) => e))]);
|
|
1324
1324
|
}
|
|
1325
1325
|
p.push("" + n(t, "spb"));
|
|
@@ -1329,13 +1329,13 @@ var Wn = [
|
|
|
1329
1329
|
continue;
|
|
1330
1330
|
}
|
|
1331
1331
|
if (!m.startsWith("_")) {
|
|
1332
|
-
let t =
|
|
1332
|
+
let t = Jt(r.meta?.excludeFrom, !0);
|
|
1333
1333
|
t.length > 0 && e.addKeyFlags(s, m, t);
|
|
1334
1334
|
}
|
|
1335
1335
|
let h = d[m];
|
|
1336
1336
|
switch (r.valueType) {
|
|
1337
1337
|
case "rich":
|
|
1338
|
-
|
|
1338
|
+
Kt(h) ? (f.push([m, "spb"]), p.push("" + t(h))) : (f.push([m, "r"]), p.push(h == null ? "" : "" + o(h, u[m]?.numberFormat)));
|
|
1339
1339
|
break;
|
|
1340
1340
|
case "array":
|
|
1341
1341
|
f.push([m, "a"]), p.push(h instanceof It ? "" + a(h) : "");
|
|
@@ -1352,20 +1352,20 @@ var Wn = [
|
|
|
1352
1352
|
case "error":
|
|
1353
1353
|
f.push([m, "e"]), p.push(P.isError(h) ? h.getLabel() : P.BuiltIn.Value.getLabel());
|
|
1354
1354
|
break;
|
|
1355
|
-
default: f.push([m]), p.push(typeof h == "number" ?
|
|
1355
|
+
default: f.push([m]), p.push(typeof h == "number" ? qt(h) : h == null ? "" : "" + h);
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
1358
|
return e.addValue(e.structureFor(s, f), p);
|
|
1359
1359
|
}, c = (t) => {
|
|
1360
|
-
let n =
|
|
1361
|
-
if (n === "_linkedentitycore") return e.addKeyFlags("_linkedentity", "%cvi",
|
|
1360
|
+
let n = Gt(t.getKind());
|
|
1361
|
+
if (n === "_linkedentitycore") return e.addKeyFlags("_linkedentity", "%cvi", Wt), e.addValue(e.structureFor("_linkedentity", Ut), ["" + s(t)]);
|
|
1362
1362
|
if (n === "_linkedentity2core") {
|
|
1363
1363
|
s(t);
|
|
1364
1364
|
let n = (e) => {
|
|
1365
1365
|
let n = t.getProperty(e);
|
|
1366
1366
|
return n == null ? "" : "" + n;
|
|
1367
1367
|
};
|
|
1368
|
-
return e.addValue(e.structureFor("_linkedentity2",
|
|
1368
|
+
return e.addValue(e.structureFor("_linkedentity2", Ht), [
|
|
1369
1369
|
n("%EntityServiceId"),
|
|
1370
1370
|
n("_DisplayString"),
|
|
1371
1371
|
n("%EntityId"),
|
|
@@ -1375,7 +1375,7 @@ var Wn = [
|
|
|
1375
1375
|
}
|
|
1376
1376
|
return s(t);
|
|
1377
1377
|
};
|
|
1378
|
-
return { writeCell: (e) => e instanceof Lt && !
|
|
1378
|
+
return { writeCell: (e) => e instanceof Lt && !Kt(e) ? c(e) : e instanceof It ? o(e, void 0) : null };
|
|
1379
1379
|
})(this), this._metaCollector = e, this._workbook = t, this._onWarn = n;
|
|
1380
1380
|
}
|
|
1381
1381
|
add(e, t = null) {
|
|
@@ -1388,7 +1388,7 @@ var Wn = [
|
|
|
1388
1388
|
return this._addHandled(e, null);
|
|
1389
1389
|
}
|
|
1390
1390
|
_addHandled(e, t) {
|
|
1391
|
-
let n = e == null ? null :
|
|
1391
|
+
let n = e == null ? null : ke.getForValue(e);
|
|
1392
1392
|
if (!n) return null;
|
|
1393
1393
|
let r = this._writerFor(n), i = r.write(e, t);
|
|
1394
1394
|
return i ? this.addValue(r, i) : null;
|
|
@@ -1494,18 +1494,18 @@ var Wn = [
|
|
|
1494
1494
|
for (let t of this._writers.values()) this._structureIndex.has(t) && t.addParts?.(e);
|
|
1495
1495
|
this._arrays.length > 0 && e.addPart("richValueArray", this), this._bags.length > 0 && (e.addPart("richValueBagStructure", this), e.addPart("richValueBag", this)), this._richStyles.length > 0 && e.addPart("richValueStyles", this);
|
|
1496
1496
|
}
|
|
1497
|
-
},
|
|
1497
|
+
}, er = "application/xml", tr = async (e, t) => {
|
|
1498
1498
|
let n = e.parts, r = n ? n.length : 0;
|
|
1499
1499
|
for (let i = 0; i < r; i++) {
|
|
1500
1500
|
let r = n[i];
|
|
1501
1501
|
try {
|
|
1502
|
-
await
|
|
1502
|
+
await nr(r, t);
|
|
1503
1503
|
} catch (n) {
|
|
1504
1504
|
t.log(`Unable to write the part '${r.name ?? r.id}' referenced by '${e.name ?? e.id}'`, n);
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
|
-
},
|
|
1508
|
-
let r = e.resId === void 0 ? void 0 : t.getSharedStates().get(
|
|
1507
|
+
}, nr = async (e, t, n) => {
|
|
1508
|
+
let r = e.resId === void 0 ? void 0 : t.getSharedStates().get(Yt)?.get(e.resId);
|
|
1509
1509
|
if (!r) return e.resId === void 0 ? t.addPart("embeddedPart", e, n, e.id) : (t.log(`The part '${e.name ?? e.id}' cites resource ${e.resId}, which is not in the workbook.`), null);
|
|
1510
1510
|
let i = await r.getExternalURI();
|
|
1511
1511
|
if (i) {
|
|
@@ -1513,11 +1513,11 @@ var Wn = [
|
|
|
1513
1513
|
return n.relId !== e.id && t.log(`The external reference '${e.id}' was written as '${n.relId}'; the markup will not find it.`), n;
|
|
1514
1514
|
}
|
|
1515
1515
|
let a = await r.toBuffer();
|
|
1516
|
-
return t.addBinary(new Uint8Array(a), e.contentType ||
|
|
1517
|
-
},
|
|
1516
|
+
return t.addBinary(new Uint8Array(a), e.contentType || er, e.type, n ?? `./${rr(e.name)}`, !1, e.id);
|
|
1517
|
+
}, rr = (e) => {
|
|
1518
1518
|
let t = e && /^[\w.\-~%]+$/.test(e) ? e : "part.xml", n = t.lastIndexOf("."), r = n > 0 ? t.slice(0, n) : t, i = n > 0 ? t.slice(n) : "";
|
|
1519
1519
|
return `${r.replace(/\d+$/, "")}{n}${i}`;
|
|
1520
|
-
},
|
|
1520
|
+
}, ir = "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml", ar = (e, t) => e.getSharedStates().get("pivotCachePaths")?.get(t) ?? null;
|
|
1521
1521
|
function W(e, t, n, r) {
|
|
1522
1522
|
if (!n) return;
|
|
1523
1523
|
let i = typeof n == "string" ? t.parseColor(n) : n;
|
|
@@ -1611,11 +1611,11 @@ function G(e, t) {
|
|
|
1611
1611
|
function K(e, t, n, r, i = !1, a = !1) {
|
|
1612
1612
|
if (!n) return;
|
|
1613
1613
|
let o = typeof n == "string" ? t.parseColor(n) : n, s = () => {
|
|
1614
|
-
e.empty(r, { rgb:
|
|
1614
|
+
e.empty(r, { rgb: pr(o.toHex().toString(!0)) });
|
|
1615
1615
|
}, c = o.getAdjustments(), l = c && c.length > 0, u = o.getType();
|
|
1616
1616
|
if (u !== L.Type.Auto) {
|
|
1617
1617
|
if (u === L.Type.Scheme) {
|
|
1618
|
-
let t = o.getVal(), n =
|
|
1618
|
+
let t = o.getVal(), n = or[t] ?? t, i = lr.get(n);
|
|
1619
1619
|
if (i === void 0 && n !== "phClr") return console.warn(`Color scheme not in theme. schemeVal=${t} themeKey=${n}`), s();
|
|
1620
1620
|
let a = {};
|
|
1621
1621
|
if (a.theme = i, l) {
|
|
@@ -1635,13 +1635,13 @@ function K(e, t, n, r, i = !1, a = !1) {
|
|
|
1635
1635
|
return !0;
|
|
1636
1636
|
}(c)) return s();
|
|
1637
1637
|
let e = c.length === 1 ? c[0][L.AdjustmentType.ETint] : void 0, t;
|
|
1638
|
-
if (e !== void 0) t =
|
|
1638
|
+
if (e !== void 0) t = dr(e);
|
|
1639
1639
|
else {
|
|
1640
1640
|
let e = o.getBaseColor().toHex().toString(!0), n = o.toHex().toString(!0);
|
|
1641
|
-
t =
|
|
1642
|
-
let n =
|
|
1643
|
-
return Math.abs(r - n) < 1e-9 ? 0 : r < n ? n <= 1e-9 ? -1 :
|
|
1644
|
-
}(
|
|
1641
|
+
t = dr(function(e, t) {
|
|
1642
|
+
let n = ur(e, 0, 255), r = ur(t, 0, 255);
|
|
1643
|
+
return Math.abs(r - n) < 1e-9 ? 0 : r < n ? n <= 1e-9 ? -1 : ur(r / n - 1, -1, 0) : 255 - n <= 1e-9 ? 0 : ur((r - n) / (255 - n), 0, 1);
|
|
1644
|
+
}(fr(e), fr(n)));
|
|
1645
1645
|
}
|
|
1646
1646
|
t !== 0 && (a.tint = t);
|
|
1647
1647
|
}
|
|
@@ -1657,7 +1657,7 @@ function K(e, t, n, r, i = !1, a = !1) {
|
|
|
1657
1657
|
}
|
|
1658
1658
|
e.empty(r, { auto: 1 });
|
|
1659
1659
|
}
|
|
1660
|
-
var
|
|
1660
|
+
var or = {
|
|
1661
1661
|
bg1: "lt1",
|
|
1662
1662
|
tx1: "dk1",
|
|
1663
1663
|
bg2: "lt2",
|
|
@@ -1670,7 +1670,7 @@ var ar = {
|
|
|
1670
1670
|
accent6: "accent6",
|
|
1671
1671
|
hlink: "hlink",
|
|
1672
1672
|
folHlink: "folHlink"
|
|
1673
|
-
},
|
|
1673
|
+
}, sr = Object.freeze([
|
|
1674
1674
|
"lt1",
|
|
1675
1675
|
"dk1",
|
|
1676
1676
|
"lt2",
|
|
@@ -1683,7 +1683,7 @@ var ar = {
|
|
|
1683
1683
|
"accent6",
|
|
1684
1684
|
"hlink",
|
|
1685
1685
|
"folHlink"
|
|
1686
|
-
]),
|
|
1686
|
+
]), cr = Object.freeze([
|
|
1687
1687
|
"dk1",
|
|
1688
1688
|
"lt1",
|
|
1689
1689
|
"dk2",
|
|
@@ -1696,15 +1696,15 @@ var ar = {
|
|
|
1696
1696
|
"accent6",
|
|
1697
1697
|
"hlink",
|
|
1698
1698
|
"folHlink"
|
|
1699
|
-
]),
|
|
1700
|
-
function
|
|
1699
|
+
]), lr = new Map(sr.map((e, t) => [e, t]));
|
|
1700
|
+
function ur(e, t, n) {
|
|
1701
1701
|
return Math.max(t, Math.min(n, e));
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1704
|
-
let t =
|
|
1703
|
+
function dr(e) {
|
|
1704
|
+
let t = ur(e, -1, 1);
|
|
1705
1705
|
return Math.abs(t) < 1e-12 ? 0 : t;
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1707
|
+
function fr(e) {
|
|
1708
1708
|
let t = function(e) {
|
|
1709
1709
|
let t = e.replace(/^#/, "").toUpperCase();
|
|
1710
1710
|
if (t.length === 8) return t.slice(2);
|
|
@@ -1713,22 +1713,22 @@ function dr(e) {
|
|
|
1713
1713
|
}(e), n = parseInt(t.slice(0, 2), 16) / 255, r = parseInt(t.slice(2, 4), 16) / 255, i = parseInt(t.slice(4, 6), 16) / 255;
|
|
1714
1714
|
return (Math.max(n, r, i) + Math.min(n, r, i)) / 2 * 255;
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function pr(e) {
|
|
1717
1717
|
let t = e.replace(/^#/, "").toUpperCase();
|
|
1718
1718
|
if (t.length === 8) return t;
|
|
1719
1719
|
if (t.length === 6) return "FF" + t;
|
|
1720
1720
|
throw Error(`Invalid hex: ${e}`);
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function mr(e, t = !1) {
|
|
1723
1723
|
let n = e;
|
|
1724
1724
|
return n.length === 8 && (n = n.substring(2, 8)), n.length === 6 && (n = (t ? "00" : "FF") + n), n.toUpperCase();
|
|
1725
1725
|
}
|
|
1726
|
-
var
|
|
1726
|
+
var hr = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", gr = (e, t, n, r) => {
|
|
1727
1727
|
if (!r) return;
|
|
1728
|
-
let i = typeof r == "string" ? { address: r } : r, a = { "xmlns:r":
|
|
1728
|
+
let i = typeof r == "string" ? { address: r } : r, a = { "xmlns:r": hr };
|
|
1729
1729
|
i.address && (a["r:id"] = e.addExternal("http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", i.address).relId ?? void 0), a.action = i.action, a.tgtFrame = i.target, a.tooltip = i.screenTip, i.history !== void 0 && (a.history = i.history ? "1" : "0"), t.empty(n, a);
|
|
1730
1730
|
};
|
|
1731
|
-
function
|
|
1731
|
+
function _r(e, t, n, r, i = !1, a = !1) {
|
|
1732
1732
|
let o = r.getTheme();
|
|
1733
1733
|
if (i && t.start("fill"), typeof n == "string" && (n = {
|
|
1734
1734
|
type: B.Type.Solid,
|
|
@@ -1803,16 +1803,16 @@ function gr(e, t, n, r, i = !1, a = !1) {
|
|
|
1803
1803
|
}
|
|
1804
1804
|
n.scaled = e.scaled ?? 1 ? "1" : "0", t.empty("lin", n);
|
|
1805
1805
|
}
|
|
1806
|
-
e.tileRect && t.empty("tileRect",
|
|
1806
|
+
e.tileRect && t.empty("tileRect", jr(e.tileRect)), t.end("gradFill");
|
|
1807
1807
|
} else i ? t.empty("patternFill", { patternType: "none" }) : t.empty("noFill");
|
|
1808
1808
|
} else t.empty("grpFill");
|
|
1809
|
-
} else
|
|
1809
|
+
} else Mr(e, t, n);
|
|
1810
1810
|
i && t.end("fill");
|
|
1811
1811
|
}
|
|
1812
|
-
var
|
|
1812
|
+
var vr = (e, t, n, r) => {
|
|
1813
1813
|
if (!n) return t.start("ln"), t.empty("noFill"), void t.end("ln");
|
|
1814
1814
|
let i = typeof n == "string" ? { fill: n } : n, a = {};
|
|
1815
|
-
if (i.width !== void 0 && (a.w = String(q(i.width))), i.lineCap !== void 0 && (a.cap =
|
|
1815
|
+
if (i.width !== void 0 && (a.w = String(q(i.width))), i.lineCap !== void 0 && (a.cap = yr(i.lineCap)), i.compound !== void 0 && (a.cmpd = i.compound), i.align !== void 0 && (a.algn = i.align), t.start("ln", a), i.fill !== void 0 && _r(e, t, i.fill ?? Cr, r), Array.isArray(i.dash)) {
|
|
1816
1816
|
t.start("custDash");
|
|
1817
1817
|
for (let e = 0; e < i.dash.length; e += 2) t.empty("ds", {
|
|
1818
1818
|
d: String(N.roundAccurately(1e3 * i.dash[e], 0)),
|
|
@@ -1842,15 +1842,15 @@ var _r = (e, t, n, r) => {
|
|
|
1842
1842
|
n !== void 0 && (i.type = n), r !== void 0 && (i.w = r), a !== void 0 && (i.len = a), t.empty(e, i);
|
|
1843
1843
|
}
|
|
1844
1844
|
typeof i.extLst == "string" && t.raw(i.extLst), t.end("ln");
|
|
1845
|
-
},
|
|
1845
|
+
}, yr = (e) => e === "round" ? "rnd" : e === "butt" ? "flat" : e === "square" ? "sq" : e, br = (e, t, n, r = void 0, i = !1) => {
|
|
1846
1846
|
if (!n || !(n.fill || n.stroke || n.effects || i)) return;
|
|
1847
1847
|
let a = e.getXMLWriter();
|
|
1848
|
-
r && a.start(r), a.pushDefaultNamespace("a"), n.fill &&
|
|
1849
|
-
},
|
|
1848
|
+
r && a.start(r), a.pushDefaultNamespace("a"), n.fill && _r(e, a, n.fill, t), n.stroke && vr(e, a, n.stroke, t), n.effects?.length ? xr(e, a, t.getTheme(), n.effects) : (i || n.effects) && a.empty("effectLst"), a.popDefaultNamespace(), r && a.end(r);
|
|
1849
|
+
}, xr = (e, t, n, r) => {
|
|
1850
1850
|
t.start("effectLst");
|
|
1851
|
-
for (let e of r)
|
|
1851
|
+
for (let e of r) Sr(t, n, e);
|
|
1852
1852
|
t.end("effectLst");
|
|
1853
|
-
},
|
|
1853
|
+
}, Sr = (e, t, n) => {
|
|
1854
1854
|
switch (n.type) {
|
|
1855
1855
|
case Tt.Type.OuterShadow: {
|
|
1856
1856
|
let r = {};
|
|
@@ -1883,59 +1883,59 @@ var _r = (e, t, n, r) => {
|
|
|
1883
1883
|
break;
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
|
-
},
|
|
1887
|
-
let n =
|
|
1888
|
-
n || (n = /* @__PURE__ */ new Map(),
|
|
1886
|
+
}, Cr = { type: "none" }, wr = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", Tr = "imagesWritten", Er = /* @__PURE__ */ new WeakMap(), Dr = async (e, t) => {
|
|
1887
|
+
let n = Er.get(e);
|
|
1888
|
+
n || (n = /* @__PURE__ */ new Map(), Er.set(e, n));
|
|
1889
1889
|
let r = n.get(t);
|
|
1890
1890
|
if (r) return r;
|
|
1891
1891
|
let i = await t.getExternalURI(), a;
|
|
1892
1892
|
if (i) a = {
|
|
1893
|
-
relId: e.addExternal(
|
|
1893
|
+
relId: e.addExternal(wr, i).relId,
|
|
1894
1894
|
external: !0
|
|
1895
1895
|
};
|
|
1896
1896
|
else {
|
|
1897
|
-
let n = e.getSharedStates(), r = n.get(
|
|
1898
|
-
r || (r = /* @__PURE__ */ new Map(), n.set(
|
|
1897
|
+
let n = e.getSharedStates(), r = n.get(Tr);
|
|
1898
|
+
r || (r = /* @__PURE__ */ new Map(), n.set(Tr, r));
|
|
1899
1899
|
let i = r.get(t);
|
|
1900
1900
|
if (!i) {
|
|
1901
1901
|
let e = await t.toBuffer();
|
|
1902
1902
|
i = {
|
|
1903
1903
|
bytes: new Uint8Array(e),
|
|
1904
|
-
type: await t.getType() ??
|
|
1904
|
+
type: await t.getType() ?? Pr,
|
|
1905
1905
|
index: r.size + 1
|
|
1906
1906
|
}, r.set(t, i);
|
|
1907
1907
|
}
|
|
1908
1908
|
a = {
|
|
1909
|
-
relId: e.addBinary(i.bytes, i.type.mime,
|
|
1909
|
+
relId: e.addBinary(i.bytes, i.type.mime, wr, `../media/image${i.index}.${i.type.ext}`, !0).relId,
|
|
1910
1910
|
external: !1
|
|
1911
1911
|
};
|
|
1912
1912
|
}
|
|
1913
1913
|
return n.set(t, a), a;
|
|
1914
|
-
},
|
|
1914
|
+
}, Or = (e, t) => t === void 0 ? void 0 : e.getSharedStates().get(Yt)?.get(t), kr = async (e, t) => {
|
|
1915
1915
|
if (!t) return;
|
|
1916
1916
|
let n = t.fill;
|
|
1917
1917
|
if (n?.type === B.Type.Image) {
|
|
1918
|
-
let t =
|
|
1919
|
-
t && await
|
|
1918
|
+
let t = Or(e, n.resId);
|
|
1919
|
+
t && await Dr(e, t);
|
|
1920
1920
|
}
|
|
1921
|
-
},
|
|
1921
|
+
}, Ar = (e) => String(Math.round(1e3 * e)), jr = (e) => {
|
|
1922
1922
|
let t = {};
|
|
1923
|
-
return e.left !== void 0 && (t.l =
|
|
1924
|
-
},
|
|
1925
|
-
let r =
|
|
1923
|
+
return e.left !== void 0 && (t.l = Ar(e.left)), e.top !== void 0 && (t.t = Ar(e.top)), e.right !== void 0 && (t.r = Ar(e.right)), e.bottom !== void 0 && (t.b = Ar(e.bottom)), t;
|
|
1924
|
+
}, Mr = (e, t, n) => {
|
|
1925
|
+
let r = Or(e, n.resId), i = r ? ((e, t) => Er.get(e)?.get(t))(e, r) : void 0;
|
|
1926
1926
|
if (!i) return e.warn("An image fill names no image in the workbook; the shape is written with no fill.", void 0, "xlsx.drawing.imageFill.noResource"), void t.empty("noFill");
|
|
1927
1927
|
let a = {};
|
|
1928
|
-
n.dpi !== void 0 && (a.dpi = String(n.dpi)), n.isRotatedWithShape !== void 0 && (a.rotWithShape = n.isRotatedWithShape ? "1" : "0"), t.start("blipFill", a),
|
|
1929
|
-
},
|
|
1930
|
-
let r = { "xmlns:r":
|
|
1931
|
-
if (r[n.external ? "r:link" : "r:embed"] = n.relId, t.compressionState !== void 0 && (r.cstate = t.compressionState), t.imageEffects || t.extLst ? (e.start("blip", r), t.imageEffects && e.raw(t.imageEffects), t.extLst && e.raw(t.extLst), e.end("blip")) : e.empty("blip", r), t.sourceRect && e.empty("srcRect",
|
|
1928
|
+
n.dpi !== void 0 && (a.dpi = String(n.dpi)), n.isRotatedWithShape !== void 0 && (a.rotWithShape = n.isRotatedWithShape ? "1" : "0"), t.start("blipFill", a), Nr(t, n, i), t.end("blipFill");
|
|
1929
|
+
}, Nr = (e, t, n) => {
|
|
1930
|
+
let r = { "xmlns:r": hr };
|
|
1931
|
+
if (r[n.external ? "r:link" : "r:embed"] = n.relId, t.compressionState !== void 0 && (r.cstate = t.compressionState), t.imageEffects || t.extLst ? (e.start("blip", r), t.imageEffects && e.raw(t.imageEffects), t.extLst && e.raw(t.extLst), e.end("blip")) : e.empty("blip", r), t.sourceRect && e.empty("srcRect", jr(t.sourceRect)), t.tile) {
|
|
1932
1932
|
let n = t.tile, r = {};
|
|
1933
|
-
n.offsetX !== void 0 && (r.tx = String(J(n.offsetX))), n.offsetY !== void 0 && (r.ty = String(J(n.offsetY))), n.scaleX !== void 0 && (r.sx =
|
|
1934
|
-
} else t.stretch && (e.start("stretch"), e.empty("fillRect",
|
|
1935
|
-
},
|
|
1933
|
+
n.offsetX !== void 0 && (r.tx = String(J(n.offsetX))), n.offsetY !== void 0 && (r.ty = String(J(n.offsetY))), n.scaleX !== void 0 && (r.sx = Ar(n.scaleX)), n.scaleY !== void 0 && (r.sy = Ar(n.scaleY)), n.flip !== void 0 && (r.flip = n.flip), n.alignment !== void 0 && (r.algn = n.alignment), e.empty("tile", r);
|
|
1934
|
+
} else t.stretch && (e.start("stretch"), e.empty("fillRect", jr(t.stretch)), e.end("stretch"));
|
|
1935
|
+
}, Pr = {
|
|
1936
1936
|
mime: "image/png",
|
|
1937
1937
|
ext: "png"
|
|
1938
|
-
}, q = (e = 0) => N.roundAccurately(12700 * e, 0), J = (e = 0) => N.roundAccurately(9525 * e, 0), Y = (e) => N.roundAccurately(6e4 * e, 0),
|
|
1938
|
+
}, q = (e = 0) => N.roundAccurately(12700 * e, 0), J = (e = 0) => N.roundAccurately(9525 * e, 0), Y = (e) => N.roundAccurately(6e4 * e, 0), Fr = (e = 0) => N.roundAccurately(100 * e, 2), Ir = 0, Lr = class {
|
|
1939
1939
|
constructor() {
|
|
1940
1940
|
this._dxfs = [], this._byKey = /* @__PURE__ */ new Map();
|
|
1941
1941
|
}
|
|
@@ -1949,38 +1949,38 @@ var _r = (e, t, n, r) => {
|
|
|
1949
1949
|
getCount() {
|
|
1950
1950
|
return this._dxfs.length;
|
|
1951
1951
|
}
|
|
1952
|
-
},
|
|
1953
|
-
let t = e.get(
|
|
1954
|
-
return t || (t = new
|
|
1955
|
-
},
|
|
1956
|
-
let
|
|
1957
|
-
if (
|
|
1952
|
+
}, Rr = "dxfs", zr = (e) => {
|
|
1953
|
+
let t = e.get(Rr);
|
|
1954
|
+
return t || (t = new Lr(), e.set(Rr, t)), t;
|
|
1955
|
+
}, Br = R.BuiltInOperatorNames, Vr = (e, t, n, r, i, a, o) => {
|
|
1956
|
+
let s = r.sorts, c = s ? s.length : 0;
|
|
1957
|
+
if (c === 0) return;
|
|
1958
1958
|
let u = {};
|
|
1959
|
-
if (
|
|
1960
|
-
let e =
|
|
1959
|
+
if (c > 0) {
|
|
1960
|
+
let e = s[0].criteria?.collatorOptions;
|
|
1961
1961
|
e && (u.caseSensitive = typeof e != "object" || Array.isArray(e) || e.sensitivity !== "case" && e.sensitivity !== "variant" ? "0" : "1");
|
|
1962
1962
|
}
|
|
1963
|
-
let d = r.extent, f = n.getRange().getCoords(), p = (d ?
|
|
1963
|
+
let d = r.extent, f = n.getRange().getCoords(), p = (d ? l(f, d.range) : null) ?? a;
|
|
1964
1964
|
u.ref = j.rangeToString(p), u["xmlns:xlrd2"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", t.start("sortState", u);
|
|
1965
|
-
for (let n = 0; n <
|
|
1966
|
-
let r =
|
|
1965
|
+
for (let n = 0; n < c; n++) {
|
|
1966
|
+
let r = s[n], i = r.criteria ?? {}, c = r.index + a.colStart, u = {};
|
|
1967
1967
|
i.reverse && (u.descending = "1");
|
|
1968
|
-
let m = d?.sorts?.[n], h = (m ?
|
|
1968
|
+
let m = d?.sorts?.[n], h = (m ? l(f, m) : null) ?? (d ? {
|
|
1969
1969
|
...p,
|
|
1970
|
-
colStart:
|
|
1971
|
-
colEnd:
|
|
1970
|
+
colStart: c,
|
|
1971
|
+
colEnd: c
|
|
1972
1972
|
} : {
|
|
1973
1973
|
rowStart: Math.min(a.rowStart + o, a.rowEnd),
|
|
1974
1974
|
rowEnd: a.rowEnd,
|
|
1975
|
-
colStart:
|
|
1976
|
-
colEnd:
|
|
1975
|
+
colStart: c,
|
|
1976
|
+
colEnd: c
|
|
1977
1977
|
});
|
|
1978
1978
|
u.ref = j.rangeToString(h);
|
|
1979
|
-
let g =
|
|
1980
|
-
g && (u.sortBy = g), i.style !== void 0 && (u.dxfId =
|
|
1979
|
+
let g = ze(i.sortOn);
|
|
1980
|
+
g && (u.sortBy = g), i.style !== void 0 && (u.dxfId = zr(e.getSharedStates()).add(i.style)), i.iconSet !== void 0 && (u.iconSet = i.iconSet), i.customList !== void 0 && (u.customList = i.customList), t.empty("sortCondition", u);
|
|
1981
1981
|
}
|
|
1982
1982
|
t.end("sortState");
|
|
1983
|
-
},
|
|
1983
|
+
}, Hr = (e, t, n, r, i = !1) => {
|
|
1984
1984
|
let a = n.getRange();
|
|
1985
1985
|
n.isShowTotals() && (a = a.getResizeBy(-1, 0));
|
|
1986
1986
|
let o = a.getCoords(), s = r.sort, c = r.filter, l = c ? c.conditions : void 0, u = l ? l.length : 0, d = r.hiddenButtons, f = {};
|
|
@@ -2000,21 +2000,21 @@ var _r = (e, t, n, r) => {
|
|
|
2000
2000
|
r.columns ? c = r.columns.length : i && (c = a.getColumnCount()), t.start("autoFilter", f);
|
|
2001
2001
|
for (let r = 0; r < c; r++) {
|
|
2002
2002
|
let i = !0 === d || !0 === p?.[r], a = m[r];
|
|
2003
|
-
(a || i) &&
|
|
2003
|
+
(a || i) && Kr(e, t, r, a, i, n.getColumnAt(r)?.getFilter() ?? null);
|
|
2004
2004
|
}
|
|
2005
|
-
s && i &&
|
|
2005
|
+
s && i && Vr(e, t, n, s, 0, o, i || n.isShowHeaders() ? 1 : 0), t.end("autoFilter");
|
|
2006
2006
|
} else t.empty("autoFilter", f);
|
|
2007
|
-
s && !i &&
|
|
2008
|
-
},
|
|
2009
|
-
let r =
|
|
2007
|
+
s && !i && Vr(e, t, n, s, 0, o, i || n.isShowHeaders() ? 1 : 0);
|
|
2008
|
+
}, Ur = (e, t, n) => {
|
|
2009
|
+
let r = Ge(n, (t) => e.warn(t, n));
|
|
2010
2010
|
if (!r) return;
|
|
2011
2011
|
let i = { operator: r.operator };
|
|
2012
2012
|
r.val !== void 0 && (i.val = r.val), t.empty("customFilter", i);
|
|
2013
|
-
},
|
|
2013
|
+
}, Wr = /* @__PURE__ */ new Set([
|
|
2014
2014
|
R.BuiltInSelectorNames.Display,
|
|
2015
2015
|
R.BuiltInSelectorNames.Date,
|
|
2016
2016
|
R.BuiltInSelectorNames.Time
|
|
2017
|
-
]),
|
|
2017
|
+
]), Gr = (e, t, n, r) => {
|
|
2018
2018
|
let i = [], a = [];
|
|
2019
2019
|
for (let e = 0; e < n.length; e++) {
|
|
2020
2020
|
let t = n[e];
|
|
@@ -2025,19 +2025,19 @@ var _r = (e, t, n, r) => {
|
|
|
2025
2025
|
o.length === 0 && i.length > 0 && e.warn("A values list by value names values no cell holds; they are not written", t);
|
|
2026
2026
|
for (let e = 0; e < o.length; e++) a.push(o[e]);
|
|
2027
2027
|
return a;
|
|
2028
|
-
},
|
|
2028
|
+
}, Kr = (e, n, r, i, a, o = null) => {
|
|
2029
2029
|
let s = {};
|
|
2030
|
-
s.colId = "" + r, a && (s.hiddenButton = "1"), i ? (n.start("filterColumn", s), ((
|
|
2030
|
+
s.colId = "" + r, a && (s.hiddenButton = "1"), i ? (n.start("filterColumn", s), ((e, n, r, i = null) => {
|
|
2031
2031
|
let a = r.operator, o = typeof r.selector == "string" ? r.selector : r.selector?.getName?.();
|
|
2032
|
-
if (o && !
|
|
2033
|
-
if (a === R.BuiltInOperatorNames.Unique) return void
|
|
2032
|
+
if (o && !Wr.has(o) && e.warn(`A '${o}' selector has no OOXML form in a Table AutoFilter; the rule is written without it`, r), !0 === r.includeBlanks && a !== R.BuiltInOperatorNames.InSet && a !== Br.Blank && e.warn("Ignore Blank has no OOXML form in a Table AutoFilter outside a values list; Excel will hide the blank rows", r), a === R.BuiltInOperatorNames.Expression) return void e.warn("Expression conditions not supported in Table AutoFilters", r);
|
|
2033
|
+
if (a === R.BuiltInOperatorNames.Unique) return void e.warn("Unique conditions not supported in Table AutoFilters", r);
|
|
2034
2034
|
if (a === R.BuiltInOperatorNames.Color) {
|
|
2035
|
-
let
|
|
2036
|
-
|
|
2035
|
+
let t = r.param, i = {};
|
|
2036
|
+
t.cellColor !== void 0 && (i.cellColor = t.cellColor ? "1" : "0"), t.style !== void 0 && (i.dxfId = zr(e.getSharedStates()).add(t.style)), n.empty("colorFilter", i);
|
|
2037
2037
|
}
|
|
2038
|
-
let s =
|
|
2039
|
-
if (s !== null) return void
|
|
2040
|
-
let c =
|
|
2038
|
+
let s = we(r);
|
|
2039
|
+
if (s !== null) return void qr(n, s === "" ? [] : [s], [], s === "" || !0 === r.includeBlanks);
|
|
2040
|
+
let c = qe(r);
|
|
2041
2041
|
if (c) {
|
|
2042
2042
|
n.start("customFilters", c.and ? { and: "1" } : {});
|
|
2043
2043
|
for (let e of c.filters) n.empty("customFilter", {
|
|
@@ -2045,33 +2045,33 @@ var _r = (e, t, n, r) => {
|
|
|
2045
2045
|
val: e.val
|
|
2046
2046
|
});
|
|
2047
2047
|
n.end("customFilters");
|
|
2048
|
-
} else if (a !==
|
|
2048
|
+
} else if (a !== Br.Blank) {
|
|
2049
2049
|
if (a === R.BuiltInOperatorNames.InSet) {
|
|
2050
|
-
let
|
|
2051
|
-
r.selector !== R.BuiltInSelectorNames.Display && a.some((e) => typeof e != "string") && (a =
|
|
2052
|
-
let o =
|
|
2053
|
-
o.length > 0 && (
|
|
2050
|
+
let t = r.param ?? {}, a = Array.isArray(t.items) ? t.items : [];
|
|
2051
|
+
r.selector !== R.BuiltInSelectorNames.Display && a.some((e) => typeof e != "string") && (a = Gr(e, r, a, i)), t.source !== void 0 && t.source !== null && e.warn("A list read from a formula has no OOXML form in a Table AutoFilter; the filter is written without it", r);
|
|
2052
|
+
let o = t.additions ?? [];
|
|
2053
|
+
o.length > 0 && (e.warn("Typed list values in a Table AutoFilter are written as items matched by displayed text", r), a = [...a, ...o]), (t.subtractions?.length ?? 0) > 0 && e.warn("Exclusions from a list have no OOXML form in a Table AutoFilter; they are not written", r), qr(n, a, t.dateGroups ?? [], !0 === r.includeBlanks || !0 === t.blank, t.calendarType);
|
|
2054
2054
|
return;
|
|
2055
2055
|
}
|
|
2056
|
-
if (a ===
|
|
2057
|
-
let
|
|
2056
|
+
if (a === Br.And || a === Br.Or) {
|
|
2057
|
+
let t = r.param ?? [], i = t.length;
|
|
2058
2058
|
if (i > 0) {
|
|
2059
2059
|
let r = {};
|
|
2060
|
-
a ===
|
|
2060
|
+
a === Br.And && i > 1 && (r.and = "1"), n.start("customFilters", r);
|
|
2061
2061
|
for (let r = 0; r < i; r++) {
|
|
2062
|
-
let i =
|
|
2063
|
-
|
|
2062
|
+
let i = t[r];
|
|
2063
|
+
Ne(i) ? Ur(e, n, i) : e.warn("Only comparison and text criteria are supported in combined Table AutoFilters", i);
|
|
2064
2064
|
}
|
|
2065
2065
|
n.end("customFilters");
|
|
2066
2066
|
}
|
|
2067
|
-
} else
|
|
2067
|
+
} else Ne(r) ? (n.start("customFilters"), Ur(e, n, r), n.end("customFilters")) : a === Br.Not && e.warn("Not rule with non-comparison criteria not supported in OOXML", r.param);
|
|
2068
2068
|
if (a === R.BuiltInOperatorNames.TimePeriod) {
|
|
2069
2069
|
let i = r.param?.type;
|
|
2070
|
-
i &&
|
|
2070
|
+
i && t.has(i) ? n.empty("dynamicFilter", { type: i }) : e.warn(`TimePeriod '${i}' has no OOXML dynamicFilter type; not written`, r.param);
|
|
2071
2071
|
}
|
|
2072
2072
|
if (a === R.BuiltInOperatorNames.Average) {
|
|
2073
|
-
let
|
|
2074
|
-
|
|
2073
|
+
let t = r.param, i = t?.type === R.AverageType.Below ? "belowAverage" : "aboveAverage";
|
|
2074
|
+
t?.stdDevs && e.warn(`Average with stdDevs has no OOXML spelling; written as ${i}`, r.param), n.empty("dynamicFilter", { type: i });
|
|
2075
2075
|
}
|
|
2076
2076
|
if (a === R.BuiltInOperatorNames.Icon) {
|
|
2077
2077
|
let e = r.param, t = {};
|
|
@@ -2081,16 +2081,16 @@ var _r = (e, t, n, r) => {
|
|
|
2081
2081
|
let e = r.param, t = {};
|
|
2082
2082
|
e.percent && (t.percent = "1"), e.top !== void 0 && (t.top = e.top ? "1" : "0"), e.limit !== void 0 && (t.val = "" + e.limit), e.filterVal !== void 0 && (t.filterVal = "" + e.filterVal), n.empty("top10", t);
|
|
2083
2083
|
}
|
|
2084
|
-
} else
|
|
2085
|
-
})(
|
|
2086
|
-
},
|
|
2084
|
+
} else qr(n, [], [], !0);
|
|
2085
|
+
})(e, n, i, o), n.end("filterColumn")) : n.empty("filterColumn", s);
|
|
2086
|
+
}, qr = (e, t, n, r, i) => {
|
|
2087
2087
|
let a = t.length, o = n.length;
|
|
2088
2088
|
if (a === 0 && o === 0 && !r) return;
|
|
2089
2089
|
let s = {};
|
|
2090
2090
|
if (r && (s.blank = "1"), i !== void 0 && (s.calendarType = i), a !== 0 || o !== 0) {
|
|
2091
2091
|
e.start("filters", s);
|
|
2092
2092
|
for (let n = 0; n < a; n++) {
|
|
2093
|
-
let r =
|
|
2093
|
+
let r = ve(t[n]);
|
|
2094
2094
|
r !== void 0 && e.empty("filter", { val: r });
|
|
2095
2095
|
}
|
|
2096
2096
|
for (let t = 0; t < o; t++) {
|
|
@@ -2099,13 +2099,13 @@ var _r = (e, t, n, r) => {
|
|
|
2099
2099
|
}
|
|
2100
2100
|
e.end("filters");
|
|
2101
2101
|
} else e.empty("filters", s);
|
|
2102
|
-
},
|
|
2103
|
-
let t = e.getSharedStates(), n = t.get(
|
|
2104
|
-
return n || (n = /* @__PURE__ */ new Map(), t.set(
|
|
2105
|
-
},
|
|
2106
|
-
let n =
|
|
2107
|
-
return r === void 0 && (r = ++
|
|
2108
|
-
},
|
|
2102
|
+
}, Jr = "tableIds", Yr = (e) => {
|
|
2103
|
+
let t = e.getSharedStates(), n = t.get(Jr);
|
|
2104
|
+
return n || (n = /* @__PURE__ */ new Map(), t.set(Jr, n)), n;
|
|
2105
|
+
}, Xr = (e, t) => {
|
|
2106
|
+
let n = Yr(e), r = n.get(t);
|
|
2107
|
+
return r === void 0 && (r = ++Ir, n.set(t, r)), r;
|
|
2108
|
+
}, Zr = (e, t, n, r) => {
|
|
2109
2109
|
let i = r.columns, a = i ? i.length : 0;
|
|
2110
2110
|
if (a !== 0) {
|
|
2111
2111
|
t.start("tableColumns", { count: a });
|
|
@@ -2116,16 +2116,16 @@ var _r = (e, t, n, r) => {
|
|
|
2116
2116
|
s.id = o + 1, s.name = a.name ?? `Column${o + 1}`;
|
|
2117
2117
|
let c = null, l = a.totalsRowFormula;
|
|
2118
2118
|
if (typeof l == "number") {
|
|
2119
|
-
let e =
|
|
2119
|
+
let e = ei.get(l);
|
|
2120
2120
|
e ? s.totalsRowFunction = e : c = `SUBTOTAL(${l},${r.name?.trim()}[${s.name}])`;
|
|
2121
|
-
} else l && (c =
|
|
2121
|
+
} else l && (c = Qr(e, n, o, l.startsWith("=") ? l.substring(1) : l));
|
|
2122
2122
|
c && (s.totalsRowFunction = "custom"), a.totalsRowLabel && (s.totalsRowLabel = a.totalsRowLabel);
|
|
2123
|
-
let u = a.calculatedColumnFormula ?
|
|
2123
|
+
let u = a.calculatedColumnFormula ? Qr(e, n, o, a.calculatedColumnFormula) : null;
|
|
2124
2124
|
(c || u) && (t.start("tableColumn", s), u && (t.start("calculatedColumnFormula"), t.text(u), t.end("calculatedColumnFormula"))), c && (t.start("totalsRowFormula"), t.text(c), t.end("totalsRowFormula")), c || u ? t.end("tableColumn") : t.empty("tableColumn", s);
|
|
2125
2125
|
}
|
|
2126
2126
|
t.end("tableColumns");
|
|
2127
2127
|
}
|
|
2128
|
-
},
|
|
2128
|
+
}, Qr = (e, t, n, r) => {
|
|
2129
2129
|
let i = e.getSharedStates().get(tt);
|
|
2130
2130
|
if (!i) return r;
|
|
2131
2131
|
try {
|
|
@@ -2137,7 +2137,7 @@ var _r = (e, t, n, r) => {
|
|
|
2137
2137
|
} catch {
|
|
2138
2138
|
return r;
|
|
2139
2139
|
}
|
|
2140
|
-
},
|
|
2140
|
+
}, $r = (e, t, n, r) => {
|
|
2141
2141
|
let i = {
|
|
2142
2142
|
name: n.getStyle().getName(),
|
|
2143
2143
|
showFirstColumn: n.isShowHighlightFirstColumn() ? "1" : "0",
|
|
@@ -2146,7 +2146,7 @@ var _r = (e, t, n, r) => {
|
|
|
2146
2146
|
showColumnStripes: n.isShowBandedColumns() ? "1" : "0"
|
|
2147
2147
|
};
|
|
2148
2148
|
t.empty("tableStyleInfo", i);
|
|
2149
|
-
},
|
|
2149
|
+
}, ei = /* @__PURE__ */ new Map([
|
|
2150
2150
|
[101, "average"],
|
|
2151
2151
|
[102, "countNums"],
|
|
2152
2152
|
[103, "count"],
|
|
@@ -2155,30 +2155,30 @@ var _r = (e, t, n, r) => {
|
|
|
2155
2155
|
[107, "stdDev"],
|
|
2156
2156
|
[109, "sum"],
|
|
2157
2157
|
[110, "var"]
|
|
2158
|
-
]),
|
|
2158
|
+
]), ti = {
|
|
2159
2159
|
ascending: "ascending",
|
|
2160
2160
|
descending: "descending",
|
|
2161
2161
|
dataSource: "natural"
|
|
2162
|
-
},
|
|
2163
|
-
xmlns:
|
|
2162
|
+
}, ni = {
|
|
2163
|
+
xmlns: S,
|
|
2164
2164
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
2165
2165
|
"mc:Ignorable": "x xr10",
|
|
2166
2166
|
"xmlns:x": "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
|
2167
2167
|
"xmlns:xr10": "http://schemas.microsoft.com/office/spreadsheetml/2016/revision10"
|
|
2168
|
-
},
|
|
2168
|
+
}, ri = (e) => {
|
|
2169
2169
|
let t = [], n = e.getMovables().getItems();
|
|
2170
2170
|
for (let e = 0; e < n.length; e++) {
|
|
2171
2171
|
let r = n[e].getContent();
|
|
2172
2172
|
r?.isISlicer && !r.isDeleted?.() && r.getTable?.() && t.push(r);
|
|
2173
2173
|
}
|
|
2174
2174
|
return t;
|
|
2175
|
-
},
|
|
2176
|
-
function
|
|
2177
|
-
let
|
|
2178
|
-
if (!
|
|
2179
|
-
let
|
|
2180
|
-
(
|
|
2181
|
-
let n = [], r =
|
|
2175
|
+
}, ii = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink", ai = "fileVersion", oi = "sheetParts", si = "macroEnabled";
|
|
2176
|
+
function ci(e, t, n, r, i, o) {
|
|
2177
|
+
let s = r.part;
|
|
2178
|
+
if (!s?.xml) return null;
|
|
2179
|
+
let c = d(s.xml, i), l = y(c), u = l ? be((e) => l.get(e)) : void 0, f = r.tabColor;
|
|
2180
|
+
(f ?? void 0) !== u && (c = ce(c, f ? function(e, t) {
|
|
2181
|
+
let n = [], r = Zt({ write: (e) => {
|
|
2182
2182
|
n.push(e);
|
|
2183
2183
|
} });
|
|
2184
2184
|
return r.setValidationDisabled(!0), K(r, e.getTheme(), t, "tabColor", !1), r.close(), new TextDecoder("utf-8").decode(function(e) {
|
|
@@ -2188,61 +2188,61 @@ function si(e, t, n, r, i, a) {
|
|
|
2188
2188
|
for (let t of e) n.set(t, r), r += t.length;
|
|
2189
2189
|
return n;
|
|
2190
2190
|
}(n)) || null;
|
|
2191
|
-
}(t,
|
|
2192
|
-
let
|
|
2193
|
-
return n !== "macro" ||
|
|
2194
|
-
...
|
|
2195
|
-
xml:
|
|
2196
|
-
type:
|
|
2197
|
-
contentType:
|
|
2198
|
-
}, `/xl/${
|
|
2191
|
+
}(t, f) : null));
|
|
2192
|
+
let m = dt[n], h = Ze(s.type) === n ? s.type : m.relType, g = s.contentType ?? m.contentType;
|
|
2193
|
+
return n !== "macro" || o || (c = p(c), m = a, h = a.relType, g = a.contentType), e.addPart("embeddedPart", {
|
|
2194
|
+
...s,
|
|
2195
|
+
xml: c,
|
|
2196
|
+
type: h,
|
|
2197
|
+
contentType: g
|
|
2198
|
+
}, `/xl/${m.folder}/sheet{n}.xml`).relId ?? null;
|
|
2199
2199
|
}
|
|
2200
|
-
var
|
|
2200
|
+
var li = "externalLinkParts", ui = {
|
|
2201
2201
|
auto: "auto",
|
|
2202
2202
|
automaticExceptTables: "autoNoTable",
|
|
2203
2203
|
manual: "manual"
|
|
2204
2204
|
};
|
|
2205
|
-
function
|
|
2205
|
+
function di(e) {
|
|
2206
2206
|
let t = `[Threaded comment]\n\nYour version of Excel allows you to read this threaded comment; however, any edits to it will get removed if the file is opened in a newer version of Excel. Learn more: https://go.microsoft.com/fwlink/?linkid=870924\n\nComment:\n ${e.getContent()}`, n = e.getReplies();
|
|
2207
2207
|
for (let e = 0; e < n.length; e++) t += `\nReply:\n ${n[e].getContent()}`;
|
|
2208
2208
|
return t;
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2211
|
-
if (typeof t == "string") return void
|
|
2210
|
+
function fi(e, t, n) {
|
|
2211
|
+
if (typeof t == "string") return void hi(e, t);
|
|
2212
2212
|
let r = t.runs;
|
|
2213
2213
|
for (let t = 0; t < r.length; t++) {
|
|
2214
2214
|
let i = r[t];
|
|
2215
|
-
e.start("r"), i.font &&
|
|
2215
|
+
e.start("r"), i.font && mi(e, i.font, n), hi(e, i.text ?? ""), e.end("r");
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
|
2218
|
-
var
|
|
2218
|
+
var pi = {
|
|
2219
2219
|
serif: 1,
|
|
2220
2220
|
"sans-serif": 2,
|
|
2221
2221
|
monospace: 3,
|
|
2222
2222
|
cursive: 4,
|
|
2223
2223
|
fantasy: 5
|
|
2224
2224
|
};
|
|
2225
|
-
function
|
|
2225
|
+
function mi(e, t, n) {
|
|
2226
2226
|
e.start("rPr");
|
|
2227
2227
|
let i = (t, n) => {
|
|
2228
2228
|
n !== void 0 && e.empty(t, n ? void 0 : { val: 0 });
|
|
2229
2229
|
};
|
|
2230
|
-
i("b", t.weight === void 0 ? void 0 : t.weight >= 700), i("i", t.style === void 0 ? void 0 : t.style !== Et.Style.Normal), i("strike",
|
|
2231
|
-
let a =
|
|
2230
|
+
i("b", t.weight === void 0 ? void 0 : t.weight >= 700), i("i", t.style === void 0 ? void 0 : t.style !== Et.Style.Normal), i("strike", C(t.strike));
|
|
2231
|
+
let a = Fe(t.letterSpacing);
|
|
2232
2232
|
a && i(a, !0), i("outline", t.outline), i("shadow", t.shadow);
|
|
2233
|
-
let o =
|
|
2233
|
+
let o = T(t.underline);
|
|
2234
2234
|
o && e.empty("u", o === Et.UnderlineStyle.Single ? void 0 : { val: o });
|
|
2235
|
-
let s =
|
|
2235
|
+
let s = Ie(t.baseline, !0);
|
|
2236
2236
|
s && e.empty("vertAlign", { val: s }), t.size !== void 0 && e.empty("sz", { val: t.size }), t.color && function(e, t, n) {
|
|
2237
2237
|
let r = /^index(\d+)$/.exec(t);
|
|
2238
2238
|
if (r) return void e.empty("color", { indexed: Number(r[1]) });
|
|
2239
2239
|
K(e, n, t, "color");
|
|
2240
|
-
}(e, t.color,
|
|
2241
|
-
let { name: c, scheme: l } =
|
|
2240
|
+
}(e, t.color, n);
|
|
2241
|
+
let { name: c, scheme: l } = r(t.family, t.fallbacks, n, !1);
|
|
2242
2242
|
c && e.empty("rFont", { val: c });
|
|
2243
2243
|
let u = t.fallbacks;
|
|
2244
2244
|
if (u) for (let t = 0; t < u.length; t++) {
|
|
2245
|
-
let n =
|
|
2245
|
+
let n = pi[u[t]];
|
|
2246
2246
|
if (n !== void 0) {
|
|
2247
2247
|
e.empty("family", { val: n });
|
|
2248
2248
|
break;
|
|
@@ -2250,10 +2250,10 @@ function pi(e, t, r) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
t.charset !== void 0 && e.empty("charset", { val: t.charset }), l && e.empty("scheme", { val: l }), e.end("rPr");
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2254
|
-
e.start("t", ue.test(t) || /[\n\r]/.test(t) ?
|
|
2253
|
+
function hi(e, t) {
|
|
2254
|
+
e.start("t", ue.test(t) || /[\n\r]/.test(t) ? fe : void 0), e.text(t), e.end("t");
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2256
|
+
function gi(e) {
|
|
2257
2257
|
let t = e.getRanges();
|
|
2258
2258
|
if (t.isInvalid()) return null;
|
|
2259
2259
|
let n = t.getCoords()[0];
|
|
@@ -2266,21 +2266,21 @@ function hi(e) {
|
|
|
2266
2266
|
col: n.colStart
|
|
2267
2267
|
} : null;
|
|
2268
2268
|
}
|
|
2269
|
-
var
|
|
2269
|
+
var _i = [
|
|
2270
2270
|
"font",
|
|
2271
2271
|
"fill",
|
|
2272
2272
|
"borders",
|
|
2273
2273
|
"numberFormat",
|
|
2274
2274
|
"alignment"
|
|
2275
2275
|
];
|
|
2276
|
-
function
|
|
2276
|
+
function vi(e, t, n) {
|
|
2277
2277
|
if (t) {
|
|
2278
2278
|
if (t.named) {
|
|
2279
2279
|
let r = t.named, i = r.toLowerCase(), a = n.namedStyleMap;
|
|
2280
2280
|
if (!a.has(i)) {
|
|
2281
2281
|
a.set(i, "" + a.size);
|
|
2282
2282
|
let t = e.getNamedStyles().getByName(r).toJSON();
|
|
2283
|
-
|
|
2283
|
+
vi(e, t.style ?? N.EmptyObject, n), n.namedStyles.push(t);
|
|
2284
2284
|
}
|
|
2285
2285
|
}
|
|
2286
2286
|
t.font && function(e, t, n) {
|
|
@@ -2309,44 +2309,44 @@ function _i(e, t, n) {
|
|
|
2309
2309
|
let r = Pt.toBuiltInID(t), i = n.numFmtMap;
|
|
2310
2310
|
if (!i.has(r)) {
|
|
2311
2311
|
let e = 0;
|
|
2312
|
-
typeof r == "number" ? e = r : (e = n.numFmtsCustom.length +
|
|
2312
|
+
typeof r == "number" ? e = r : (e = n.numFmtsCustom.length + Ai, n.numFmtsCustom.push(r)), i.set(t, "" + e);
|
|
2313
2313
|
}
|
|
2314
2314
|
}(0, t.numberFormat, n);
|
|
2315
2315
|
}
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2317
|
+
function yi(e, t, n) {
|
|
2318
2318
|
if (!t) return;
|
|
2319
2319
|
let r = t.name.toLowerCase();
|
|
2320
|
-
n.namedStyleMap.has(r) || (n.namedStyleMap.set(r, "" + n.namedStyleMap.size), n.namedStyles.push(t),
|
|
2320
|
+
n.namedStyleMap.has(r) || (n.namedStyleMap.set(r, "" + n.namedStyleMap.size), n.namedStyles.push(t), vi(e, t.style, n));
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function bi(e, t, n, i, a = !1) {
|
|
2323
2323
|
let o = i.getDefaultFontSize(), s = i.getNormal().getFont().getColor();
|
|
2324
|
-
t.start("font"),
|
|
2325
|
-
let c =
|
|
2326
|
-
c && t.empty("u", { val: c }),
|
|
2327
|
-
let l =
|
|
2324
|
+
t.start("font"), n.weight && n.weight >= 700 && t.empty("b"), n.style && n.style !== "normal" && t.empty("i"), C(n.strike) && t.empty("strike");
|
|
2325
|
+
let c = T(n.underline);
|
|
2326
|
+
c && t.empty("u", { val: c }), n.outline && t.empty("outline"), n.shadow && t.empty("shadow");
|
|
2327
|
+
let l = Fe(n.letterSpacing);
|
|
2328
2328
|
l && t.empty(l);
|
|
2329
|
-
let u =
|
|
2330
|
-
u && t.empty("vertAlign", { val: u }), a ?
|
|
2331
|
-
let { name: d, scheme: f } = n
|
|
2332
|
-
if (p && (t.empty("name", { val: d }),
|
|
2333
|
-
let e =
|
|
2329
|
+
let u = Ie(n.baseline, a);
|
|
2330
|
+
u && t.empty("vertAlign", { val: u }), a ? n.size !== void 0 && t.empty("sz", { val: String(n.size) }) : t.empty("sz", { val: String(n.size ?? o) }), K(t, i.getTheme(), n.color ?? s, "color", !a);
|
|
2331
|
+
let { name: d, scheme: f } = r(n.family, n.fallbacks, i.getTheme(), !a), p = d !== void 0 && (!a || d !== i.getTheme().getFontScheme().getMinorFont());
|
|
2332
|
+
if (p && (t.empty("name", { val: d }), n.fallbacks && n.fallbacks.length > 0)) {
|
|
2333
|
+
let e = n.fallbacks;
|
|
2334
2334
|
e.includes("serif") ? t.empty("family", { val: 1 }) : e.includes("sans-serif") ? t.empty("family", { val: 2 }) : e.includes("monospace") ? t.empty("family", { val: 3 }) : e.includes("cursive") ? t.empty("family", { val: 4 }) : e.includes("fantasy") && t.empty("family", { val: 5 });
|
|
2335
2335
|
}
|
|
2336
|
-
|
|
2336
|
+
n.charset !== void 0 && n.charset !== null && t.empty("charset", { val: String(n.charset) }), p && f && t.empty("scheme", { val: f }), t.end("font");
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function xi(e, t, n, r, i, a = !1) {
|
|
2339
2339
|
if (!i || i.style === "none" || !i.style) return void (a && !i || t.empty(r));
|
|
2340
2340
|
t.start(r, { style: i.style });
|
|
2341
2341
|
let o = i.color;
|
|
2342
2342
|
o && K(t, n, o, "color", !a, a), t.end(r);
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2344
|
+
function Si(e, t, n, r, i = !1) {
|
|
2345
2345
|
let a = {}, o = (e) => !!e?.style && e.style !== "none", s = o(n.diagonalUp) ? n.diagonalUp : void 0, c = o(n.diagonalDown) ? n.diagonalDown : void 0;
|
|
2346
|
-
i ? (a.diagonalUp = "0", a.diagonalDown = "0") : (s && (a.diagonalUp = "1"), c && (a.diagonalDown = "1")), t.start("border", a),
|
|
2346
|
+
i ? (a.diagonalUp = "0", a.diagonalDown = "0") : (s && (a.diagonalUp = "1"), c && (a.diagonalDown = "1")), t.start("border", a), xi(0, t, r, "left", n.left, i), xi(0, t, r, "right", n.right, i), xi(0, t, r, "top", n.top, i), xi(0, t, r, "bottom", n.bottom, i), i ? (xi(0, t, r, "vertical", n.vertical, i), xi(0, t, r, "horizontal", n.horizontal, i)) : (s && c && (s.style !== c.style || Ci(s.color) !== Ci(c.color)) && e.warn("A cell has diagonal borders in two different line styles or colors; an xlsx cell holds one diagonal line, so both are saved in the up diagonal's.", void 0, "xlsx.border.diagonalMismatch"), xi(0, t, r, "diagonal", s ?? c, i)), t.end("border");
|
|
2347
2347
|
}
|
|
2348
|
-
var
|
|
2349
|
-
function
|
|
2348
|
+
var Ci = (e) => e == null ? null : typeof e == "string" ? e : JSON.stringify(e);
|
|
2349
|
+
function wi(e, t, n, r = !1) {
|
|
2350
2350
|
let i = {};
|
|
2351
2351
|
n.horizontal && n.horizontal !== H.HorizontalAlignment.General && (i.horizontal = n.horizontal), n.vertical && n.vertical !== H.VerticalAlignment.Bottom && (i.vertical = n.vertical);
|
|
2352
2352
|
let a = n.rotation;
|
|
@@ -2361,8 +2361,8 @@ function Ci(e, t, n, r = !1) {
|
|
|
2361
2361
|
}
|
|
2362
2362
|
return Object.keys(i).length > 0 ? i : null;
|
|
2363
2363
|
}
|
|
2364
|
-
var
|
|
2365
|
-
function
|
|
2364
|
+
var Ti = 65490;
|
|
2365
|
+
function Ei(e, t, n, r, i, a, o = !1, s = null) {
|
|
2366
2366
|
let c = {}, l = null, u = r.named;
|
|
2367
2367
|
u && (l = n.getNamedStyles().getByName(u).toJSON().style);
|
|
2368
2368
|
let d = r.font ?? l?.font, f = d ? i.fontMap.get(M.JSONStableStringify(d)) ?? 0 : 0, p = r.fill ?? l?.fill, m = p ? i.fillMap.get(M.JSONStableStringify(p)) ?? 0 : 0, h = r.borders ?? l?.borders, g = h ? i.borderMap.get(M.JSONStableStringify(h)) ?? 0 : 0, _ = r.numberFormat ?? l?.numberFormat;
|
|
@@ -2371,29 +2371,29 @@ function Ti(e, t, n, r, i, a, o = !1, s = null) {
|
|
|
2371
2371
|
c.xfId = i.namedStyleMap.get(e.toLowerCase());
|
|
2372
2372
|
}
|
|
2373
2373
|
let v = null, y = r.alignment ?? l?.alignment;
|
|
2374
|
-
y && (v =
|
|
2374
|
+
y && (v = wi(0, 0, y)), r.font && (c.applyFont = "1"), r.fill && (c.applyFill = "1"), r.numberFormat && (c.applyNumberFormat = "1"), r.borders && (c.applyBorder = "1"), v && (c.applyAlignment = "1");
|
|
2375
2375
|
let b = null, x = r.protection?.alwaysUnlocked ?? l?.protection?.alwaysUnlocked ?? !1;
|
|
2376
2376
|
(x || o) && (b = {}, x && (b.locked = "0"), o && (b.hidden = "1"), c.applyProtection = "1"), r.quotePrefix && (c.quotePrefix = "1"), v || b || s !== null ? (t.start("xf", c), v && t.empty("alignment", v), b && t.empty("protection", b), s !== null && (t.start("extLst"), t.start("ext", {
|
|
2377
|
-
uri:
|
|
2378
|
-
"xmlns:xfpb":
|
|
2377
|
+
uri: Di,
|
|
2378
|
+
"xmlns:xfpb": Oi
|
|
2379
2379
|
}), t.empty("xfpb:xfComplement", { i: String(s) }), t.end("ext"), t.end("extLst")), t.end("xf")) : t.empty("xf", c);
|
|
2380
2380
|
}
|
|
2381
|
-
var
|
|
2382
|
-
function
|
|
2383
|
-
if (t.start(a), n.font &&
|
|
2381
|
+
var Di = "{C7286773-470A-42A8-94C5-96B5CB345126}", Oi = "http://schemas.microsoft.com/office/spreadsheetml/2022/featurepropertybag";
|
|
2382
|
+
function ki(e, t, n, r, i, a = "dxf", o = Ai) {
|
|
2383
|
+
if (t.start(a), n.font && bi(0, t, n.font, r, !0), n.numberFormat !== void 0 && n.numberFormat !== null) {
|
|
2384
2384
|
let e = Pt.toBuiltInID(n.numberFormat), r = typeof e == "number", i = r ? Pt.builtInFormat(e) : String(e);
|
|
2385
2385
|
i && t.empty("numFmt", {
|
|
2386
2386
|
numFmtId: String(r ? e : o++),
|
|
2387
2387
|
formatCode: i
|
|
2388
2388
|
});
|
|
2389
2389
|
}
|
|
2390
|
-
if (n.fill &&
|
|
2391
|
-
let e =
|
|
2390
|
+
if (n.fill && _r(e, t, n.fill, r, !0, !0), n.alignment) {
|
|
2391
|
+
let e = wi(0, 0, n.alignment, !0);
|
|
2392
2392
|
e && t.empty("alignment", e);
|
|
2393
2393
|
}
|
|
2394
|
-
return n.borders &&
|
|
2394
|
+
return n.borders && Si(e, t, n.borders, i, !0), t.end(a), o;
|
|
2395
2395
|
}
|
|
2396
|
-
var
|
|
2396
|
+
var Ai = 164, ji = Object.freeze([
|
|
2397
2397
|
"unselectedItemWithData",
|
|
2398
2398
|
"unselectedItemWithNoData",
|
|
2399
2399
|
"selectedItemWithData",
|
|
@@ -2402,7 +2402,7 @@ var ki = 164, Ai = Object.freeze([
|
|
|
2402
2402
|
"hoveredSelectedItemWithData",
|
|
2403
2403
|
"hoveredUnselectedItemWithNoData",
|
|
2404
2404
|
"hoveredSelectedItemWithNoData"
|
|
2405
|
-
]),
|
|
2405
|
+
]), Mi = Object.freeze([
|
|
2406
2406
|
"wholeTable",
|
|
2407
2407
|
"headerRow",
|
|
2408
2408
|
"totalRow",
|
|
@@ -2416,12 +2416,12 @@ var ki = 164, Ai = Object.freeze([
|
|
|
2416
2416
|
"lastHeaderCell",
|
|
2417
2417
|
"firstTotalCell",
|
|
2418
2418
|
"lastTotalCell"
|
|
2419
|
-
]),
|
|
2419
|
+
]), Ni = (e) => !(!e || !(e.sz === void 0 || e.sz > 0) || e.csz || e.h || e.s !== void 0 || e.l || e.cl), Pi = {
|
|
2420
2420
|
names: /* @__PURE__ */ new Set(),
|
|
2421
2421
|
perFormula: [],
|
|
2422
2422
|
affects: () => !1
|
|
2423
|
-
},
|
|
2424
|
-
function
|
|
2423
|
+
}, Fi = (e) => "" + zt.flushSubnormal(e), Ii = (e) => Number.isInteger(e) && Math.abs(e) < 0x38d7ea4c68000 ? "" + e : "" + Number(zt.flushSubnormal(e).toPrecision(15));
|
|
2424
|
+
function Li(e, t) {
|
|
2425
2425
|
let n = /* @__PURE__ */ new Set(), r = e.getGroups(t), i = e.getSummaryDirection(t), a = i === V.Direction.Down || i === V.Direction.Right;
|
|
2426
2426
|
for (let e = 0; e < r.length; e++) {
|
|
2427
2427
|
let t = r[e];
|
|
@@ -2429,26 +2429,26 @@ function Ii(e, t) {
|
|
|
2429
2429
|
}
|
|
2430
2430
|
return n;
|
|
2431
2431
|
}
|
|
2432
|
-
var
|
|
2432
|
+
var Ri = (e) => {
|
|
2433
2433
|
let t = e?.[e.length - 1];
|
|
2434
|
-
if (!t || t.max <
|
|
2434
|
+
if (!t || t.max < Ye) return null;
|
|
2435
2435
|
let n = t.value;
|
|
2436
|
-
return !n?.h || n.s !== void 0 || n.l || n.cl || n.csz || n.sz !== void 0 && n.sz !== -1 ? null :
|
|
2437
|
-
},
|
|
2436
|
+
return !n?.h || n.s !== void 0 || n.l || n.cl || n.csz || n.sz !== void 0 && n.sz !== -1 ? null : Ye - t.min + 1 > t.min ? t.min : null;
|
|
2437
|
+
}, zi = 1048576, Bi = (e, t, n) => {
|
|
2438
2438
|
if (!n) return [];
|
|
2439
2439
|
let r = 0;
|
|
2440
2440
|
for (let i = 0; i < n.length; i++) {
|
|
2441
2441
|
let a = n[i][0], o = t.getRange(a).getCoords();
|
|
2442
|
-
if (r += (o.rowEnd - o.rowStart + 1) * (o.colEnd - o.colStart + 1), r >
|
|
2442
|
+
if (r += (o.rowEnd - o.rowStart + 1) * (o.colEnd - o.colStart + 1), r > zi) return e.warn(`Direct styles cover more than ${zi} cells; not writing the styles from '${a}' on. A range that size belongs in a column or row style.`), n.slice(0, i);
|
|
2443
2443
|
}
|
|
2444
2444
|
return n;
|
|
2445
|
-
},
|
|
2446
|
-
function
|
|
2445
|
+
}, Vi = /^\s*=?\s*TABLE\s*\(/i;
|
|
2446
|
+
function Hi(e, t, n, r) {
|
|
2447
2447
|
let i = null, a = [];
|
|
2448
2448
|
for (let r = t.rowStart; r <= t.rowEnd; r++) for (let o = t.colStart; o <= t.colEnd; o++) {
|
|
2449
2449
|
let s = n;
|
|
2450
2450
|
r === t.rowStart && o === t.colStart || (i || (i = [], j.normalizeA1ToR1C1(n, t.rowStart, t.colStart, i)), s = j.resolveRelativeToA1(i, r, o));
|
|
2451
|
-
let c =
|
|
2451
|
+
let c = ne(s, {
|
|
2452
2452
|
rowIndex: r,
|
|
2453
2453
|
colIndex: o
|
|
2454
2454
|
});
|
|
@@ -2462,12 +2462,12 @@ function Vi(e, t, n, r) {
|
|
|
2462
2462
|
colStart: o,
|
|
2463
2463
|
rowEnd: r,
|
|
2464
2464
|
colEnd: o
|
|
2465
|
-
},
|
|
2465
|
+
}, x(c)]);
|
|
2466
2466
|
}
|
|
2467
2467
|
for (let e = 0; e < a.length; e++) r.push(a[e]);
|
|
2468
2468
|
return !0;
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function Ui(e, t) {
|
|
2471
2471
|
let n = t.type;
|
|
2472
2472
|
n === z.ColorStopType.AutoMin ? n = z.ColorStopType.Min : n === z.ColorStopType.AutoMax && (n = z.ColorStopType.Max), e.empty("cfvo", {
|
|
2473
2473
|
type: n,
|
|
@@ -2475,14 +2475,14 @@ function Hi(e, t) {
|
|
|
2475
2475
|
gte: t.exclusive ? "0" : void 0
|
|
2476
2476
|
});
|
|
2477
2477
|
}
|
|
2478
|
-
function
|
|
2478
|
+
function Wi(e, t) {
|
|
2479
2479
|
let n = {
|
|
2480
2480
|
type: t.type,
|
|
2481
2481
|
gte: t.exclusive ? "0" : void 0
|
|
2482
2482
|
};
|
|
2483
2483
|
t.value === void 0 ? e.empty("x14:cfvo", n) : (e.start("x14:cfvo", n), e.start("xm:f"), e.text(t.value), e.end("xm:f"), e.end("x14:cfvo"));
|
|
2484
2484
|
}
|
|
2485
|
-
var
|
|
2485
|
+
var Gi = /* @__PURE__ */ new Set([
|
|
2486
2486
|
I.IconSet.Arrows3,
|
|
2487
2487
|
I.IconSet.ArrowsGray3,
|
|
2488
2488
|
I.IconSet.Flags3,
|
|
@@ -2501,16 +2501,16 @@ var Wi = /* @__PURE__ */ new Set([
|
|
|
2501
2501
|
I.IconSet.Quarters5,
|
|
2502
2502
|
I.IconSet.Rating5
|
|
2503
2503
|
]);
|
|
2504
|
-
function
|
|
2505
|
-
return (e.icon?.length ?? 0) > 0 || e.iconSet !== void 0 && !
|
|
2504
|
+
function Ki(e) {
|
|
2505
|
+
return (e.icon?.length ?? 0) > 0 || e.iconSet !== void 0 && !Gi.has(e.iconSet);
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2508
|
-
let
|
|
2507
|
+
function qi(e, t, n, r, i, a, s, c, l) {
|
|
2508
|
+
let u = r.scale;
|
|
2509
2509
|
r.ext && e.warn("Conditional format extension payload is not written to xlsx; it will be lost.");
|
|
2510
|
-
let
|
|
2510
|
+
let d = {
|
|
2511
2511
|
type: i.type,
|
|
2512
|
-
dxfId: r.style && Object.keys(r.style).length > 0 ?
|
|
2513
|
-
priority:
|
|
2512
|
+
dxfId: r.style && Object.keys(r.style).length > 0 ? c.add(r.style) : void 0,
|
|
2513
|
+
priority: s,
|
|
2514
2514
|
stopIfTrue: X(r.stopIfTrue),
|
|
2515
2515
|
aboveAverage: X(i.aboveAverage),
|
|
2516
2516
|
equalAverage: X(i.equalAverage),
|
|
@@ -2521,8 +2521,8 @@ function Ki(e, t, n, r, i, a, o, s, c) {
|
|
|
2521
2521
|
operator: i.operator,
|
|
2522
2522
|
text: i.text,
|
|
2523
2523
|
timePeriod: i.timePeriod
|
|
2524
|
-
},
|
|
2525
|
-
|
|
2524
|
+
}, f;
|
|
2525
|
+
u?.type === z.ScaleType.DataBar && function(e) {
|
|
2526
2526
|
if (e.gradient || e.borderColor || e.negativeFillColor || e.negativeBorderColor || e.axisColor || e.axisPosition || e.direction) return !0;
|
|
2527
2527
|
let t = e.stops, n = t ? t.length : 0;
|
|
2528
2528
|
for (let e = 0; e < n; e++) {
|
|
@@ -2530,48 +2530,48 @@ function Ki(e, t, n, r, i, a, o, s, c) {
|
|
|
2530
2530
|
if (n === z.ColorStopType.AutoMin || n === z.ColorStopType.AutoMax) return !0;
|
|
2531
2531
|
}
|
|
2532
2532
|
return !1;
|
|
2533
|
-
}(
|
|
2534
|
-
guid:
|
|
2533
|
+
}(u) && (f = b(N.uuidV4), l.push({
|
|
2534
|
+
guid: f,
|
|
2535
2535
|
sqref: a,
|
|
2536
|
-
priority:
|
|
2537
|
-
scale:
|
|
2536
|
+
priority: s,
|
|
2537
|
+
scale: u
|
|
2538
2538
|
}));
|
|
2539
|
-
let
|
|
2540
|
-
if (m !== 0 ||
|
|
2541
|
-
t.start("cfRule",
|
|
2542
|
-
for (let e = 0; e < m; e++) t.start("formula"), t.text(
|
|
2543
|
-
if (
|
|
2544
|
-
let e =
|
|
2539
|
+
let p = i.formulas, m = p ? p.length : 0;
|
|
2540
|
+
if (m !== 0 || u) {
|
|
2541
|
+
t.start("cfRule", d);
|
|
2542
|
+
for (let e = 0; e < m; e++) t.start("formula"), t.text(p[e]), t.end("formula");
|
|
2543
|
+
if (u?.type === z.ScaleType.ColorScale) {
|
|
2544
|
+
let e = u.stops ?? [];
|
|
2545
2545
|
t.start("colorScale");
|
|
2546
|
-
for (let n = 0; n < e.length; n++)
|
|
2546
|
+
for (let n = 0; n < e.length; n++) Ui(t, e[n]);
|
|
2547
2547
|
for (let r = 0; r < e.length; r++) K(t, n, e[r].color, "color");
|
|
2548
2548
|
t.end("colorScale");
|
|
2549
|
-
} else if (
|
|
2550
|
-
let e =
|
|
2549
|
+
} else if (u?.type === z.ScaleType.DataBar) {
|
|
2550
|
+
let e = u.stops ?? [];
|
|
2551
2551
|
t.start("dataBar", {
|
|
2552
|
-
minLength:
|
|
2553
|
-
maxLength:
|
|
2554
|
-
showValue: X(
|
|
2552
|
+
minLength: u.minLength,
|
|
2553
|
+
maxLength: u.maxLength,
|
|
2554
|
+
showValue: X(u.showValue)
|
|
2555
2555
|
});
|
|
2556
|
-
for (let n = 0; n < e.length; n++)
|
|
2557
|
-
|
|
2558
|
-
} else if (
|
|
2559
|
-
let e =
|
|
2556
|
+
for (let n = 0; n < e.length; n++) Ui(t, e[n]);
|
|
2557
|
+
u.color && K(t, n, u.color, "color"), t.end("dataBar");
|
|
2558
|
+
} else if (u?.type === z.ScaleType.IconSet) {
|
|
2559
|
+
let e = u.stops ?? [];
|
|
2560
2560
|
t.start("iconSet", {
|
|
2561
|
-
iconSet:
|
|
2562
|
-
reverse: X(
|
|
2563
|
-
showValue: X(
|
|
2561
|
+
iconSet: u.iconSet,
|
|
2562
|
+
reverse: X(u.reverse),
|
|
2563
|
+
showValue: X(u.showValue)
|
|
2564
2564
|
});
|
|
2565
|
-
for (let n = 0; n < e.length; n++)
|
|
2565
|
+
for (let n = 0; n < e.length; n++) Ui(t, e[n]);
|
|
2566
2566
|
t.end("iconSet");
|
|
2567
2567
|
}
|
|
2568
|
-
|
|
2569
|
-
uri:
|
|
2570
|
-
"xmlns:x14":
|
|
2571
|
-
}), t.start("x14:id"), t.text(
|
|
2572
|
-
} else t.empty("cfRule",
|
|
2568
|
+
f && (t.start("extLst"), t.start("ext", {
|
|
2569
|
+
uri: o,
|
|
2570
|
+
"xmlns:x14": S
|
|
2571
|
+
}), t.start("x14:id"), t.text(f), t.end("x14:id"), t.end("ext"), t.end("extLst")), t.end("cfRule");
|
|
2572
|
+
} else t.empty("cfRule", d);
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2574
|
+
function Ji(e) {
|
|
2575
2575
|
let t = 2 ** 53 - 1, n = 2 ** 53 - 1, r = e.split(" ");
|
|
2576
2576
|
for (let e = 0; e < r.length; e++) {
|
|
2577
2577
|
if (!r[e]) continue;
|
|
@@ -2583,7 +2583,7 @@ function qi(e) {
|
|
|
2583
2583
|
colIndex: n
|
|
2584
2584
|
});
|
|
2585
2585
|
}
|
|
2586
|
-
function
|
|
2586
|
+
function Yi(e) {
|
|
2587
2587
|
if (typeof e == "string") return e.split(",").join(" ");
|
|
2588
2588
|
if (Array.isArray(e)) {
|
|
2589
2589
|
let t = [];
|
|
@@ -2598,7 +2598,7 @@ function Ji(e) {
|
|
|
2598
2598
|
function X(e) {
|
|
2599
2599
|
if (e !== void 0) return e ? "1" : "0";
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function Xi(e) {
|
|
2602
2602
|
if (typeof e != "string") return !1;
|
|
2603
2603
|
let t = !1;
|
|
2604
2604
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -2608,12 +2608,12 @@ function Yi(e) {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
return !1;
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2611
|
+
function Zi(e) {
|
|
2612
2612
|
let t = e.formulas, n = t ? t.length : 0;
|
|
2613
|
-
for (let e = 0; e < n; e++) if (
|
|
2613
|
+
for (let e = 0; e < n; e++) if (Xi(t[e])) return !0;
|
|
2614
2614
|
return !1;
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2616
|
+
function Qi(e) {
|
|
2617
2617
|
let t = 2 ** 53 - 1, n = 2 ** 53 - 1, r = e.split(" ");
|
|
2618
2618
|
for (let e = 0; e < r.length; e++) {
|
|
2619
2619
|
if (!r[e]) continue;
|
|
@@ -2625,7 +2625,7 @@ function Zi(e) {
|
|
|
2625
2625
|
colIndex: n
|
|
2626
2626
|
};
|
|
2627
2627
|
}
|
|
2628
|
-
function
|
|
2628
|
+
function $i(e, t, n) {
|
|
2629
2629
|
if (typeof e != "string" || !e || !t || !n) return e;
|
|
2630
2630
|
try {
|
|
2631
2631
|
let r = n.parse(e, t);
|
|
@@ -2634,14 +2634,14 @@ function Qi(e, t, n) {
|
|
|
2634
2634
|
return e;
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2637
|
+
function ea(e, t, n) {
|
|
2638
2638
|
let r = e?.stops;
|
|
2639
2639
|
if (!r || !n) return e;
|
|
2640
2640
|
let i;
|
|
2641
2641
|
for (let e = 0; e < r.length; e++) {
|
|
2642
2642
|
let a = r[e]?.value;
|
|
2643
2643
|
if (typeof a != "string") continue;
|
|
2644
|
-
let o =
|
|
2644
|
+
let o = $i(a, t, n);
|
|
2645
2645
|
o !== a && (i ||= [...r], i[e] = {
|
|
2646
2646
|
...r[e],
|
|
2647
2647
|
value: o
|
|
@@ -2652,12 +2652,12 @@ function $i(e, t, n) {
|
|
|
2652
2652
|
stops: i
|
|
2653
2653
|
} : e;
|
|
2654
2654
|
}
|
|
2655
|
-
function
|
|
2655
|
+
function ta(e) {
|
|
2656
2656
|
let t = e.getDataValidations().getSettings(), n = {};
|
|
2657
2657
|
return t.disablePrompts && (n.disablePrompts = "1"), t.windowX !== void 0 && (n.xWindow = t.windowX), t.windowY !== void 0 && (n.yWindow = t.windowY), n;
|
|
2658
2658
|
}
|
|
2659
|
-
var
|
|
2660
|
-
function
|
|
2659
|
+
var na = "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings";
|
|
2660
|
+
function ra(e, t, n) {
|
|
2661
2661
|
if (!n || n.length === 0) return;
|
|
2662
2662
|
let r = n.filter((e) => !e.automatic).length;
|
|
2663
2663
|
e.start(t, {
|
|
@@ -2670,12 +2670,12 @@ function na(e, t, n) {
|
|
|
2670
2670
|
}
|
|
2671
2671
|
e.end(t);
|
|
2672
2672
|
}
|
|
2673
|
-
function
|
|
2673
|
+
function ia(e, t, n, r) {
|
|
2674
2674
|
if (!r?.xml) return;
|
|
2675
2675
|
let i = e.addPart("legacyDrawing", r);
|
|
2676
2676
|
t.empty(n, { "r:id": i.relId });
|
|
2677
2677
|
}
|
|
2678
|
-
var
|
|
2678
|
+
var aa = (e, t, n, r) => {
|
|
2679
2679
|
let i = (t, n) => {
|
|
2680
2680
|
let r = e.getRangeAtBounds({
|
|
2681
2681
|
x: t,
|
|
@@ -2720,18 +2720,18 @@ var ia = (e, t, n, r) => {
|
|
|
2720
2720
|
bounds: a,
|
|
2721
2721
|
anchor: [...i(a.x, a.y), ...i(a.x + a.width, a.y + a.height)]
|
|
2722
2722
|
};
|
|
2723
|
-
},
|
|
2723
|
+
}, oa = (e, t) => {
|
|
2724
2724
|
if (!t) return e;
|
|
2725
|
-
let n = e?.xml ?? null, r =
|
|
2725
|
+
let n = e?.xml ?? null, r = O(n ?? ""), i = [], a = t.comments;
|
|
2726
2726
|
for (let e = 0; e < a.length; e++) {
|
|
2727
|
-
let { comment: n, row:
|
|
2727
|
+
let { comment: n, row: o, col: c } = a[e], l = n.isNote() ? n.toJSON() : null, { bounds: u, anchor: d } = aa(t.sheet, n, o, c), f = l?.box, p = f?.fill || f?.stroke ? s(f.xml ?? ye, {
|
|
2728
2728
|
fill: f.fill,
|
|
2729
2729
|
stroke: f.stroke
|
|
2730
2730
|
}, (e) => t.sheet.getStyles().parseColor(e)) : f?.xml;
|
|
2731
|
-
i.push(
|
|
2731
|
+
i.push(ie(p, {
|
|
2732
2732
|
shapeId: ++r,
|
|
2733
2733
|
zIndex: e + 1,
|
|
2734
|
-
row:
|
|
2734
|
+
row: o,
|
|
2735
2735
|
col: c,
|
|
2736
2736
|
anchor: d,
|
|
2737
2737
|
bounds: u,
|
|
@@ -2739,14 +2739,14 @@ var ia = (e, t, n, r) => {
|
|
|
2739
2739
|
alt: l?.description
|
|
2740
2740
|
}));
|
|
2741
2741
|
}
|
|
2742
|
-
let
|
|
2743
|
-
return
|
|
2742
|
+
let o = ct(n, i, r);
|
|
2743
|
+
return o ? o === n ? e : e ? {
|
|
2744
2744
|
...e,
|
|
2745
|
-
xml:
|
|
2746
|
-
} : { xml:
|
|
2747
|
-
},
|
|
2745
|
+
xml: o
|
|
2746
|
+
} : { xml: o } : e;
|
|
2747
|
+
}, sa = (e, t) => {
|
|
2748
2748
|
if (t.length === 0) return;
|
|
2749
|
-
let n =
|
|
2749
|
+
let n = O(e.legacyDrawing?.xml ?? ""), r = t.length;
|
|
2750
2750
|
for (let e = 0; e < r; e++) {
|
|
2751
2751
|
let r = t[e].jsonMovable.content?.json?.shapeId;
|
|
2752
2752
|
typeof r == "number" && r > n && (n = r);
|
|
@@ -2756,7 +2756,7 @@ var ia = (e, t, n, r) => {
|
|
|
2756
2756
|
let r = t[e].jsonMovable.content, a = r.json ??= {};
|
|
2757
2757
|
(typeof a.shapeId != "number" || i.has(a.shapeId)) && (a.shapeId = ++n), i.add(a.shapeId);
|
|
2758
2758
|
}
|
|
2759
|
-
},
|
|
2759
|
+
}, ca = (e, t, n) => {
|
|
2760
2760
|
if (n.length === 0) return t;
|
|
2761
2761
|
let r = (t, n) => e.getRange({
|
|
2762
2762
|
rowStart: n,
|
|
@@ -2774,7 +2774,7 @@ var ia = (e, t, n, r) => {
|
|
|
2774
2774
|
Math.round(l.x ?? 0),
|
|
2775
2775
|
l.r ?? 0,
|
|
2776
2776
|
Math.round(l.y ?? 0)
|
|
2777
|
-
], d = r(u[0], u[2]), f = r(u[4], u[6]), p = d.x + u[1], m = d.y + u[3], h =
|
|
2777
|
+
], d = r(u[0], u[2]), f = r(u[4], u[6]), p = d.x + u[1], m = d.y + u[3], h = at(t.content.type, o, {
|
|
2778
2778
|
shapeId: s,
|
|
2779
2779
|
zIndex: i.length + 1,
|
|
2780
2780
|
anchor: u,
|
|
@@ -2789,20 +2789,20 @@ var ia = (e, t, n, r) => {
|
|
|
2789
2789
|
h && (i.push(h), s > a && (a = s));
|
|
2790
2790
|
}
|
|
2791
2791
|
if (i.length === 0) return t;
|
|
2792
|
-
let s =
|
|
2792
|
+
let s = ct(t?.xml ?? null, i, a, Ke);
|
|
2793
2793
|
return s ? t ? {
|
|
2794
2794
|
...t,
|
|
2795
2795
|
xml: s
|
|
2796
2796
|
} : { xml: s } : t;
|
|
2797
|
-
},
|
|
2797
|
+
}, la = (e, t, n) => {
|
|
2798
2798
|
e.start(t), e.start("xdr:col"), e.text(n.c ?? 0), e.end("xdr:col"), e.start("xdr:colOff"), e.text(J(n.x)), e.end("xdr:colOff"), e.start("xdr:row"), e.text(n.r ?? 0), e.end("xdr:row"), e.start("xdr:rowOff"), e.text(J(n.y)), e.end("xdr:rowOff"), e.end(t);
|
|
2799
|
-
},
|
|
2799
|
+
}, ua = {
|
|
2800
2800
|
r: void 0,
|
|
2801
2801
|
s: void 0,
|
|
2802
2802
|
t: void 0,
|
|
2803
2803
|
cm: void 0,
|
|
2804
2804
|
vm: void 0
|
|
2805
|
-
},
|
|
2805
|
+
}, da = {
|
|
2806
2806
|
r: void 0,
|
|
2807
2807
|
s: void 0,
|
|
2808
2808
|
customFormat: void 0,
|
|
@@ -2814,71 +2814,71 @@ var ia = (e, t, n, r) => {
|
|
|
2814
2814
|
collapsed: void 0,
|
|
2815
2815
|
thickTop: void 0,
|
|
2816
2816
|
thickBot: void 0
|
|
2817
|
-
},
|
|
2817
|
+
}, fa = {
|
|
2818
2818
|
t: void 0,
|
|
2819
2819
|
aca: void 0,
|
|
2820
2820
|
ref: void 0,
|
|
2821
2821
|
ca: void 0,
|
|
2822
2822
|
si: void 0
|
|
2823
|
-
},
|
|
2823
|
+
}, pa = {
|
|
2824
2824
|
t: "shared",
|
|
2825
2825
|
aca: void 0,
|
|
2826
2826
|
ref: void 0,
|
|
2827
2827
|
ca: void 0,
|
|
2828
2828
|
si: void 0
|
|
2829
|
-
},
|
|
2829
|
+
}, ma = {
|
|
2830
2830
|
t: "array",
|
|
2831
2831
|
aca: void 0,
|
|
2832
2832
|
ref: void 0,
|
|
2833
2833
|
ca: void 0,
|
|
2834
2834
|
si: void 0
|
|
2835
2835
|
};
|
|
2836
|
-
function
|
|
2837
|
-
let n = ue.test(t) ?
|
|
2838
|
-
e.start("t", n), e.text(
|
|
2836
|
+
function ha(e, t) {
|
|
2837
|
+
let n = ue.test(t) ? fe : void 0;
|
|
2838
|
+
e.start("t", n), e.text(te(t)), e.end("t");
|
|
2839
2839
|
}
|
|
2840
|
-
var
|
|
2840
|
+
var ga = (e) => String(Math.round(1e3 * e)), Z = (e) => e === void 0 ? void 0 : e ? "1" : "0", _a = /* @__PURE__ */ new Set(/* @__PURE__ */ "text.runs.paragraphs.field.color.size.kern.weight.style.b.i.spc.baseline.italic.underline.strike.font.eastAsianFont.complexScriptFont.symbolFont.language.alternateLanguage.kerning.spacing.letterSpacing.capitals.normalizeHeight.highlight.hyperlink.outline.effects.fill.stroke".split(".")), va = {
|
|
2841
2841
|
latin: "lt",
|
|
2842
2842
|
ea: "ea",
|
|
2843
2843
|
cs: "cs",
|
|
2844
2844
|
sym: "lt",
|
|
2845
2845
|
buFont: "lt"
|
|
2846
|
-
},
|
|
2846
|
+
}, ya = (e, t, n) => {
|
|
2847
2847
|
if (!n) return;
|
|
2848
|
-
let r = n.scheme !== void 0 && n.scheme !== Et.Scheme.None ? `+${n.scheme === Et.Scheme.Major ? "mj" : "mn"}-${
|
|
2848
|
+
let r = n.scheme !== void 0 && n.scheme !== Et.Scheme.None ? `+${n.scheme === Et.Scheme.Major ? "mj" : "mn"}-${va[t]}` : n.family;
|
|
2849
2849
|
r !== void 0 && e.empty(t, {
|
|
2850
2850
|
typeface: r,
|
|
2851
2851
|
panose: n.panose,
|
|
2852
2852
|
pitchFamily: n.pitch,
|
|
2853
|
-
charset:
|
|
2853
|
+
charset: Xe(n.charset)
|
|
2854
2854
|
});
|
|
2855
|
-
},
|
|
2855
|
+
}, ba = (e, t, n, r, i = N.EmptyObject) => {
|
|
2856
2856
|
let a = e.getXMLWriter(), o = ((e, t, n = N.EmptyArray) => {
|
|
2857
2857
|
if (!t) return { ...n };
|
|
2858
2858
|
let r = { ...n };
|
|
2859
|
-
for (let e of Object.keys(t))
|
|
2859
|
+
for (let e of Object.keys(t)) _a.has(e) || t[e] === void 0 || (r[e] = t[e]);
|
|
2860
2860
|
let { size: i, kern: a, weight: o, style: s, b: c, i: l, spc: u, baseline: d } = t, f = t;
|
|
2861
|
-
return f.language !== void 0 && (r.lang = f.language), f.alternateLanguage !== void 0 && (r.altLang = f.alternateLanguage), i !== void 0 && (r.sz = "" +
|
|
2861
|
+
return f.language !== void 0 && (r.lang = f.language), f.alternateLanguage !== void 0 && (r.altLang = f.alternateLanguage), i !== void 0 && (r.sz = "" + Fr(i)), c !== void 0 && (r.b = c ? "1" : "0"), o !== void 0 && (r.b = o > 500 ? "1" : "0"), l !== void 0 && (r.i = l ? "1" : "0"), s !== void 0 && (r.i = s === "italic" ? "1" : "0"), t.italic !== void 0 && (r.i = t.italic ? "1" : "0"), f.underline !== void 0 && (r.u = v.write(f.underline)), f.strike !== void 0 && (r.strike = se.write(f.strike)), a !== void 0 && (r.kern = "" + Fr(a)), f.kerning !== void 0 && (r.kern = "" + Fr(f.kerning)), u !== void 0 && (r.spc = "" + Fr(u)), f.letterSpacing !== void 0 && (r.spc = "" + Fr(f.letterSpacing)), d !== void 0 && (r.baseline = ga(d)), f.capitals !== void 0 && (r.cap = f.capitals), f.normalizeHeight !== void 0 && (r.normalizeH = Z(f.normalizeHeight)), r;
|
|
2862
2862
|
})(0, r ?? {}, i);
|
|
2863
|
-
r?.outline || r?.color || r?.effects?.length || r?.highlight || r?.font || r?.eastAsianFont || r?.complexScriptFont || r?.symbolFont || r?.hyperlink ? (a.start(n, o), r.outline &&
|
|
2864
|
-
},
|
|
2865
|
-
n && (e.start(t), "percent" in n ? e.empty("spcPct", { val:
|
|
2866
|
-
},
|
|
2863
|
+
r?.outline || r?.color || r?.effects?.length || r?.highlight || r?.font || r?.eastAsianFont || r?.complexScriptFont || r?.symbolFont || r?.hyperlink ? (a.start(n, o), r.outline && vr(e, a, r.outline, t), r.color && _r(e, a, r.color, t), r.effects?.length && xr(e, a, t.getTheme(), r.effects), r.highlight && (a.start("highlight"), W(a, t.getTheme(), r.highlight), a.end("highlight")), ya(a, "latin", r.font), ya(a, "ea", r.eastAsianFont), ya(a, "cs", r.complexScriptFont), ya(a, "sym", r.symbolFont), gr(e, a, "hlinkClick", r.hyperlink), a.end(n)) : a.empty(n, o);
|
|
2864
|
+
}, xa = (e, t, n) => {
|
|
2865
|
+
n && (e.start(t), "percent" in n ? e.empty("spcPct", { val: ga(n.percent) }) : e.empty("spcPts", { val: String(Math.round(100 * n.points)) }), e.end(t));
|
|
2866
|
+
}, Sa = (e, t, n, r) => {
|
|
2867
2867
|
let i = e.getXMLWriter(), a = {
|
|
2868
2868
|
marL: r.marginLeft === void 0 ? void 0 : String(J(r.marginLeft)),
|
|
2869
2869
|
marR: r.marginRight === void 0 ? void 0 : String(J(r.marginRight)),
|
|
2870
2870
|
lvl: r.level === void 0 ? void 0 : String(r.level),
|
|
2871
2871
|
indent: r.indent === void 0 ? void 0 : String(J(r.indent)),
|
|
2872
|
-
algn:
|
|
2872
|
+
algn: ae.write(r.align),
|
|
2873
2873
|
defTabSz: r.defaultTabSize === void 0 ? void 0 : String(J(r.defaultTabSize)),
|
|
2874
2874
|
rtl: Z(r.rightToLeft),
|
|
2875
2875
|
eaLnBrk: Z(r.eastAsianLineBreak),
|
|
2876
|
-
fontAlgn:
|
|
2876
|
+
fontAlgn: A.write(r.fontAlign),
|
|
2877
2877
|
latinLnBrk: Z(r.latinLineBreak),
|
|
2878
2878
|
hangingPunct: Z(r.hangingPunctuation)
|
|
2879
2879
|
}, o = r.bullet;
|
|
2880
2880
|
if (r.lineSpacing || r.spaceBefore || r.spaceAfter || o || r.tabs || r.defaultRun) {
|
|
2881
|
-
if (i.start(n, a),
|
|
2881
|
+
if (i.start(n, a), xa(i, "lnSpc", r.lineSpacing), xa(i, "spcBef", r.spaceBefore), xa(i, "spcAft", r.spaceAfter), o) switch (o.colorFollowsText ? i.empty("buClrTx") : o.color && (i.start("buClr"), W(i, t.getTheme(), o.color), i.end("buClr")), o.sizeFollowsText ? i.empty("buSzTx") : o.size && ("percent" in o.size ? i.empty("buSzPct", { val: ga(o.size.percent) }) : i.empty("buSzPts", { val: String(Math.round(100 * o.size.points)) })), o.fontFollowsText ? i.empty("buFontTx") : ya(i, "buFont", o.font), o.type) {
|
|
2882
2882
|
case "none":
|
|
2883
2883
|
i.empty("buNone");
|
|
2884
2884
|
break;
|
|
@@ -2894,29 +2894,29 @@ var ha = (e) => String(Math.round(1e3 * e)), Z = (e) => e === void 0 ? void 0 :
|
|
|
2894
2894
|
i.start("tabLst");
|
|
2895
2895
|
for (let e of r.tabs) i.empty("tab", {
|
|
2896
2896
|
pos: String(J(e.position)),
|
|
2897
|
-
algn:
|
|
2897
|
+
algn: u.write(e.align)
|
|
2898
2898
|
});
|
|
2899
2899
|
i.end("tabLst");
|
|
2900
2900
|
}
|
|
2901
|
-
r.defaultRun &&
|
|
2901
|
+
r.defaultRun && ba(e, t, "defRPr", r.defaultRun), i.end(n);
|
|
2902
2902
|
} else i.empty(n, a);
|
|
2903
|
-
},
|
|
2904
|
-
let n = t.body ?? {},
|
|
2903
|
+
}, Ca = (e) => e === H.Overflow.Visible ? void 0 : f.write(e), wa = (e, t) => {
|
|
2904
|
+
let n = t.body ?? {}, r = n.insets, a = {
|
|
2905
2905
|
rot: t.rotation === void 0 ? void 0 : String(Math.round(6e4 * t.rotation)),
|
|
2906
2906
|
spcFirstLastPara: Z(n.spaceFirstLastParagraph),
|
|
2907
|
-
vertOverflow:
|
|
2908
|
-
horzOverflow:
|
|
2909
|
-
vert:
|
|
2907
|
+
vertOverflow: Ca(n.verticalOverflow ?? Vt.TEXT_DEFAULTS.verticalOverflow),
|
|
2908
|
+
horzOverflow: Ca(n.horizontalOverflow ?? Vt.TEXT_DEFAULTS.horizontalOverflow),
|
|
2909
|
+
vert: h.write(n.vertical),
|
|
2910
2910
|
wrap: n.wrap,
|
|
2911
|
-
lIns:
|
|
2912
|
-
tIns:
|
|
2913
|
-
rIns:
|
|
2914
|
-
bIns:
|
|
2911
|
+
lIns: r?.left === void 0 ? void 0 : String(J(r.left)),
|
|
2912
|
+
tIns: r?.top === void 0 ? void 0 : String(J(r.top)),
|
|
2913
|
+
rIns: r?.right === void 0 ? void 0 : String(J(r.right)),
|
|
2914
|
+
bIns: r?.bottom === void 0 ? void 0 : String(J(r.bottom)),
|
|
2915
2915
|
numCol: n.columns === void 0 ? void 0 : String(n.columns),
|
|
2916
2916
|
spcCol: n.columnSpacing === void 0 ? void 0 : String(J(n.columnSpacing)),
|
|
2917
2917
|
rtlCol: Z(n.rightToLeftColumns),
|
|
2918
2918
|
fromWordArt: Z(n.fromWordArt),
|
|
2919
|
-
anchor:
|
|
2919
|
+
anchor: i.write(n.anchor),
|
|
2920
2920
|
anchorCtr: Z(n.anchorCenter),
|
|
2921
2921
|
forceAA: Z(n.forceAntiAlias),
|
|
2922
2922
|
upright: Z(n.upright),
|
|
@@ -2944,25 +2944,25 @@ var ha = (e) => String(Math.round(1e3 * e)), Z = (e) => e === void 0 ? void 0 :
|
|
|
2944
2944
|
e.empty("spAutoFit");
|
|
2945
2945
|
break;
|
|
2946
2946
|
case H.Autofit.Normal: e.empty("normAutofit", {
|
|
2947
|
-
fontScale: n.fontScale === void 0 ? void 0 :
|
|
2948
|
-
lnSpcReduction: n.lineSpacingReduction === void 0 ? void 0 :
|
|
2947
|
+
fontScale: n.fontScale === void 0 ? void 0 : ga(n.fontScale),
|
|
2948
|
+
lnSpcReduction: n.lineSpacingReduction === void 0 ? void 0 : ga(n.lineSpacingReduction)
|
|
2949
2949
|
});
|
|
2950
2950
|
}
|
|
2951
2951
|
n.extLst && e.raw(n.extLst), e.end("bodyPr");
|
|
2952
2952
|
} else e.empty("bodyPr", a);
|
|
2953
|
-
},
|
|
2953
|
+
}, Ta = (e, t, n) => {
|
|
2954
2954
|
let r = e.getXMLWriter();
|
|
2955
|
-
n && (n.default || n.levels?.some((e) => e)) ? (r.start("lstStyle"), n.default &&
|
|
2956
|
-
n &&
|
|
2955
|
+
n && (n.default || n.levels?.some((e) => e)) ? (r.start("lstStyle"), n.default && Sa(e, t, "defPPr", n.default), n.levels?.forEach((n, r) => {
|
|
2956
|
+
n && Sa(e, t, `lvl${r + 1}pPr`, n);
|
|
2957
2957
|
}), r.end("lstStyle")) : r.empty("lstStyle");
|
|
2958
|
-
},
|
|
2958
|
+
}, Ea = (e, t, n, r) => {
|
|
2959
2959
|
let i = e.getXMLWriter();
|
|
2960
2960
|
i.pushDefaultNamespace("a"), i.start("p");
|
|
2961
|
-
let { runs: a, endRun: o, ...s } = r, c =
|
|
2961
|
+
let { runs: a, endRun: o, ...s } = r, c = Vt.inheritedTextSize(n, r) === void 0 ? (e) => e.size === void 0 ? {
|
|
2962
2962
|
...e,
|
|
2963
|
-
size:
|
|
2963
|
+
size: Vt.TEXT_DEFAULTS.size
|
|
2964
2964
|
} : e : (e) => e;
|
|
2965
|
-
((e) => !!e && Object.keys(e).some((t) => t !== "runs" && t !== "endRun" && e[t] !== void 0))(s) &&
|
|
2965
|
+
((e) => !!e && Object.keys(e).some((t) => t !== "runs" && t !== "endRun" && e[t] !== void 0))(s) && Sa(e, t, "pPr", s);
|
|
2966
2966
|
for (let n of a ?? []) {
|
|
2967
2967
|
if (n?.text === "\n") {
|
|
2968
2968
|
i.empty("br");
|
|
@@ -2972,22 +2972,22 @@ var ha = (e) => String(Math.round(1e3 * e)), Z = (e) => e === void 0 ? void 0 :
|
|
|
2972
2972
|
i.start(s, a ? {
|
|
2973
2973
|
id: a.id,
|
|
2974
2974
|
type: a.type
|
|
2975
|
-
} : {}),
|
|
2975
|
+
} : {}), ba(e, t, "rPr", c(o)), i.start("t"), i.text(r ?? ""), i.end("t"), i.end(s);
|
|
2976
2976
|
}
|
|
2977
|
-
!o && a?.length ||
|
|
2978
|
-
},
|
|
2977
|
+
!o && a?.length || ba(e, t, "endParaRPr", c(o ?? {})), i.end("p"), i.popDefaultNamespace();
|
|
2978
|
+
}, Da = (e, t, n) => {
|
|
2979
2979
|
if (!n) return;
|
|
2980
2980
|
let r = e.getXMLWriter(), i = ((e) => typeof e == "string" ? { paragraphs: [{ runs: [{ text: e }] }] } : Array.isArray(e?.paragraphs) ? e : { paragraphs: [e] })(n);
|
|
2981
|
-
r.start("txBody"), r.pushDefaultNamespace("a"),
|
|
2981
|
+
r.start("txBody"), r.pushDefaultNamespace("a"), wa(r, i), Ta(e, t, i.listStyle);
|
|
2982
2982
|
let a = i.paragraphs.length === 0 ? [{ runs: [] }] : i.paragraphs;
|
|
2983
|
-
for (let n of a)
|
|
2983
|
+
for (let n of a) Ea(e, t, i, n);
|
|
2984
2984
|
r.popDefaultNamespace(), r.end("txBody");
|
|
2985
|
-
},
|
|
2985
|
+
}, Oa = (e, t, n) => {
|
|
2986
2986
|
let r = e.getXMLWriter();
|
|
2987
2987
|
if (!n) return r.empty("bodyPr"), void r.empty("lstStyle");
|
|
2988
|
-
|
|
2988
|
+
wa(r, n), Ta(e, t, n.listStyle);
|
|
2989
2989
|
};
|
|
2990
|
-
function
|
|
2990
|
+
function ka(e, t, n, r) {
|
|
2991
2991
|
e.start(r);
|
|
2992
2992
|
let i = { typeface: t.latin || n };
|
|
2993
2993
|
t.panose && (i.panose = t.panose), e.empty("latin", i), e.empty("ea", { typeface: t.eastAsian ?? "" }), e.empty("cs", { typeface: t.complexScript ?? "" });
|
|
@@ -2998,11 +2998,11 @@ function Oa(e, t, n, r) {
|
|
|
2998
2998
|
});
|
|
2999
2999
|
e.end(r);
|
|
3000
3000
|
}
|
|
3001
|
-
var
|
|
3001
|
+
var Aa = [
|
|
3002
3002
|
["shape", "spDef"],
|
|
3003
3003
|
["line", "lnDef"],
|
|
3004
3004
|
["text", "txDef"]
|
|
3005
|
-
],
|
|
3005
|
+
], ja = { checkbox: "Checkbox" }, Ma = [
|
|
3006
3006
|
["dc:title", "title"],
|
|
3007
3007
|
["dc:subject", "subject"],
|
|
3008
3008
|
["dc:creator", "author"],
|
|
@@ -3023,9 +3023,9 @@ var ka = [
|
|
|
3023
3023
|
["cp:category", "category"],
|
|
3024
3024
|
["cp:contentStatus", "contentStatus"],
|
|
3025
3025
|
["cp:revision", "revisionNumber"]
|
|
3026
|
-
],
|
|
3026
|
+
], Na = (e) => e.toISOString().split(".")[0] + "Z", Q = (e, t, n, r) => {
|
|
3027
3027
|
t.start(n), t.text(r), t.end(n);
|
|
3028
|
-
},
|
|
3028
|
+
}, Pa = (e, t, n) => {
|
|
3029
3029
|
let r = [
|
|
3030
3030
|
{
|
|
3031
3031
|
heading: "Worksheets",
|
|
@@ -3045,7 +3045,7 @@ var ka = [
|
|
|
3045
3045
|
}
|
|
3046
3046
|
], i = {
|
|
3047
3047
|
worksheet: 0,
|
|
3048
|
-
macro: +(!0 === e.getSharedStates().get(
|
|
3048
|
+
macro: +(!0 === e.getSharedStates().get(si)),
|
|
3049
3049
|
chart: 2,
|
|
3050
3050
|
dialog: 3
|
|
3051
3051
|
};
|
|
@@ -3071,13 +3071,13 @@ var ka = [
|
|
|
3071
3071
|
});
|
|
3072
3072
|
for (let e of o) for (let n of e.names) t.start("vt:lpstr"), t.text(n), t.end("vt:lpstr");
|
|
3073
3073
|
t.end("vt:vector"), t.end("TitlesOfParts");
|
|
3074
|
-
},
|
|
3074
|
+
}, Fa = {
|
|
3075
3075
|
[wt.Type.String]: "vt:lpwstr",
|
|
3076
3076
|
[wt.Type.Number]: "vt:i4",
|
|
3077
3077
|
[wt.Type.Float]: "vt:r8",
|
|
3078
3078
|
[wt.Type.Boolean]: "vt:bool",
|
|
3079
3079
|
[wt.Type.Date]: "vt:filetime"
|
|
3080
|
-
},
|
|
3080
|
+
}, Ia = (e) => e.split(".")[0] + "Z", La = {
|
|
3081
3081
|
minSupportedVersion: "120000",
|
|
3082
3082
|
copy: "1",
|
|
3083
3083
|
pasteAll: "1",
|
|
@@ -3089,20 +3089,20 @@ var ka = [
|
|
|
3089
3089
|
clearComments: "1",
|
|
3090
3090
|
assign: "1",
|
|
3091
3091
|
coerce: "1"
|
|
3092
|
-
},
|
|
3092
|
+
}, Ra = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", za = (e, t) => {
|
|
3093
3093
|
for (let [n, r] of t) e.start("v", n ? { t: n } : void 0), e.text(r), e.end("v");
|
|
3094
|
-
}, $ = (e) => e === void 0 || e === "_" ? void 0 : e,
|
|
3094
|
+
}, $ = (e) => e === void 0 || e === "_" ? void 0 : e, Ba = (e, t) => {
|
|
3095
3095
|
let n = t.indexOf(" ");
|
|
3096
3096
|
n < 0 || e.empty("gd", {
|
|
3097
3097
|
name: t.slice(0, n),
|
|
3098
3098
|
fmla: t.slice(n + 1).trim()
|
|
3099
3099
|
});
|
|
3100
|
-
},
|
|
3100
|
+
}, Va = (e, t, n) => {
|
|
3101
3101
|
e.empty("pos", {
|
|
3102
3102
|
x: t,
|
|
3103
3103
|
y: n
|
|
3104
3104
|
});
|
|
3105
|
-
},
|
|
3105
|
+
}, Ha = (e, t) => {
|
|
3106
3106
|
let n = t.split(" ");
|
|
3107
3107
|
n[0] === "xy" ? (e.start("ahXY", {
|
|
3108
3108
|
gdRefX: $(n[1]),
|
|
@@ -3111,20 +3111,20 @@ var ka = [
|
|
|
3111
3111
|
gdRefY: $(n[2]),
|
|
3112
3112
|
minY: $(n[7]),
|
|
3113
3113
|
maxY: $(n[8])
|
|
3114
|
-
}),
|
|
3114
|
+
}), Va(e, n[3], n[4]), e.end("ahXY")) : n[0] === "polar" && (e.start("ahPolar", {
|
|
3115
3115
|
gdRefR: $(n[1]),
|
|
3116
3116
|
minR: $(n[5]),
|
|
3117
3117
|
maxR: $(n[6]),
|
|
3118
3118
|
gdRefAng: $(n[2]),
|
|
3119
3119
|
minAng: $(n[7]),
|
|
3120
3120
|
maxAng: $(n[8])
|
|
3121
|
-
}),
|
|
3122
|
-
},
|
|
3121
|
+
}), Va(e, n[3], n[4]), e.end("ahPolar"));
|
|
3122
|
+
}, Ua = {
|
|
3123
3123
|
M: ["moveTo", 1],
|
|
3124
3124
|
L: ["lnTo", 1],
|
|
3125
3125
|
Q: ["quadBezTo", 2],
|
|
3126
3126
|
C: ["cubicBezTo", 3]
|
|
3127
|
-
},
|
|
3127
|
+
}, Wa = (e, t) => {
|
|
3128
3128
|
e.start("path", {
|
|
3129
3129
|
w: t.w,
|
|
3130
3130
|
h: t.h,
|
|
@@ -3142,7 +3142,7 @@ var ka = [
|
|
|
3142
3142
|
swAng: n[r + 3]
|
|
3143
3143
|
}), r += 4;
|
|
3144
3144
|
else {
|
|
3145
|
-
let i =
|
|
3145
|
+
let i = Ua[t];
|
|
3146
3146
|
if (!i) break;
|
|
3147
3147
|
e.start(i[0]);
|
|
3148
3148
|
for (let t = 0; t < i[1]; t++, r += 2) e.empty("pt", {
|
|
@@ -3153,32 +3153,32 @@ var ka = [
|
|
|
3153
3153
|
}
|
|
3154
3154
|
}
|
|
3155
3155
|
e.end("path");
|
|
3156
|
-
},
|
|
3156
|
+
}, Ga = {
|
|
3157
3157
|
type: "http://schemas.microsoft.com/office/2011/relationships/chartStyle",
|
|
3158
3158
|
contentType: "application/vnd.ms-office.chartstyle+xml",
|
|
3159
3159
|
name: "style1.xml",
|
|
3160
3160
|
xml: "<cs:chartStyle xmlns:cs=\"http://schemas.microsoft.com/office/drawing/2012/chartStyle\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" id=\"395\"><cs:axisTitle><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:axisTitle><cs:categoryAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:categoryAxis><cs:chartArea mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"bg1\"/></a:solidFill><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"1000\"/></cs:chartArea><cs:dataLabel><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:dataLabel><cs:dataLabelCallout><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill><a:ln><a:solidFill><a:schemeClr val=\"dk1\"><a:lumMod val=\"25000\"/><a:lumOff val=\"75000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz=\"900\"/><cs:bodyPr rot=\"0\" spcFirstLastPara=\"1\" vertOverflow=\"clip\" horzOverflow=\"clip\" vert=\"horz\" wrap=\"square\" lIns=\"36576\" tIns=\"18288\" rIns=\"36576\" bIns=\"18288\" anchor=\"ctr\" anchorCtr=\"1\"><a:spAutoFit/></cs:bodyPr></cs:dataLabelCallout><cs:dataPoint><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill></cs:spPr></cs:dataPoint><cs:dataPoint3D><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill></cs:spPr></cs:dataPoint3D><cs:dataPointLine><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"28575\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointLine><cs:dataPointMarker><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></cs:spPr></cs:dataPointMarker><cs:dataPointMarkerLayout symbol=\"circle\" size=\"5\"/><cs:dataPointWireframe><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"28575\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointWireframe><cs:dataTable><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:dataTable><cs:downBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"dk1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:downBar><cs:dropLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"35000\"/><a:lumOff val=\"65000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:dropLine><cs:errorBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:errorBar><cs:floor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:floor><cs:gridlineMajor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMajor><cs:gridlineMinor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMinor><cs:hiLoLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"75000\"/><a:lumOff val=\"25000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:hiLoLine><cs:leaderLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"35000\"/><a:lumOff val=\"65000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:leaderLine><cs:legend><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:legend><cs:plotArea mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:plotArea><cs:plotArea3D mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:plotArea3D><cs:seriesAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:seriesAxis><cs:seriesLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\"><a:solidFill><a:srgbClr val=\"D9D9D9\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:seriesLine><cs:title><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"1400\"/></cs:title><cs:trendline><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"19050\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:prstDash val=\"sysDash\"/></a:ln></cs:spPr></cs:trendline><cs:trendlineLabel><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:trendlineLabel><cs:upBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:upBar><cs:valueAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:valueAxis><cs:wall><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:wall></cs:chartStyle>"
|
|
3161
|
-
},
|
|
3161
|
+
}, Ka = {
|
|
3162
3162
|
type: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",
|
|
3163
3163
|
contentType: "application/vnd.ms-office.chartcolorstyle+xml",
|
|
3164
3164
|
name: "colors1.xml",
|
|
3165
3165
|
xml: "<cs:colorStyle xmlns:cs=\"http://schemas.microsoft.com/office/drawing/2012/chartStyle\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" meth=\"cycle\" id=\"10\"><a:schemeClr val=\"accent1\"/><a:schemeClr val=\"accent2\"/><a:schemeClr val=\"accent3\"/><a:schemeClr val=\"accent4\"/><a:schemeClr val=\"accent5\"/><a:schemeClr val=\"accent6\"/><cs:variation/><cs:variation><a:lumMod val=\"60000\"/></cs:variation><cs:variation><a:lumMod val=\"80000\"/><a:lumOff val=\"20000\"/></cs:variation><cs:variation><a:lumMod val=\"80000\"/></cs:variation><cs:variation><a:lumMod val=\"60000\"/><a:lumOff val=\"40000\"/></cs:variation><cs:variation><a:lumMod val=\"50000\"/></cs:variation><cs:variation><a:lumMod val=\"70000\"/><a:lumOff val=\"30000\"/></cs:variation><cs:variation><a:lumMod val=\"70000\"/></cs:variation><cs:variation><a:lumMod val=\"50000\"/><a:lumOff val=\"50000\"/></cs:variation></cs:colorStyle>"
|
|
3166
|
-
},
|
|
3166
|
+
}, qa = (e, t) => {
|
|
3167
3167
|
let n = {};
|
|
3168
3168
|
t.unlocked && (n.fLocksWithSheet = "0"), t.noPrint && (n.fPrintsWithSheet = "0"), e.empty("clientData", n);
|
|
3169
|
-
},
|
|
3169
|
+
}, Ja = (e) => e.content?.json?.members ?? [], Ya = (e) => ({
|
|
3170
3170
|
x: e.anchor?.tl?.x ?? 0,
|
|
3171
3171
|
y: e.anchor?.tl?.y ?? 0,
|
|
3172
3172
|
width: e.anchor?.br?.x ?? 0,
|
|
3173
3173
|
height: e.anchor?.br?.y ?? 0
|
|
3174
|
-
}),
|
|
3174
|
+
}), Xa = async (e, t) => {
|
|
3175
3175
|
let n = t.content;
|
|
3176
|
-
if (n?.type !== "shape" && n?.type !== "picture" || await
|
|
3177
|
-
await
|
|
3178
|
-
for (let n of
|
|
3176
|
+
if (n?.type !== "shape" && n?.type !== "picture" || await kr(e, n.json), n?.type === "group") {
|
|
3177
|
+
await kr(e, n.json);
|
|
3178
|
+
for (let n of Ja(t)) await Xa(e, n);
|
|
3179
3179
|
}
|
|
3180
|
-
},
|
|
3181
|
-
let o = await
|
|
3180
|
+
}, Za = async (e, t, n, r, i, a) => {
|
|
3181
|
+
let o = await Dr(e, a), s = r.content?.json, c = s?.image ?? {}, l = c.extLst ?? (o.external ? void 0 : Qa), u = {
|
|
3182
3182
|
...c,
|
|
3183
3183
|
type: B.Type.Image,
|
|
3184
3184
|
extLst: l,
|
|
@@ -3188,8 +3188,8 @@ var ka = [
|
|
|
3188
3188
|
let f = {};
|
|
3189
3189
|
c.dpi !== void 0 && (f.dpi = String(c.dpi)), c.isRotatedWithShape !== void 0 && (f.rotWithShape = c.isRotatedWithShape ? "1" : "0");
|
|
3190
3190
|
let p = e.getXMLWriter();
|
|
3191
|
-
p.start("pic", d), p.start("nvPicPr"),
|
|
3192
|
-
},
|
|
3191
|
+
p.start("pic", d), p.start("nvPicPr"), mo(e, p, n, r, t), p.start("cNvPicPr", s?.noRelativeResize ? { preferRelativeResize: "0" } : {}), p.empty("a:picLocks", vo(r)), p.end("cNvPicPr"), p.end("nvPicPr"), p.start("blipFill", f), p.pushDefaultNamespace("a"), Nr(p, u, o), p.popDefaultNamespace(), p.end("blipFill"), fo(e, t, n, r, i), p.end("pic");
|
|
3192
|
+
}, Qa = "<a:extLst><a:ext uri=\"{28A0092B-C50C-407E-A947-70E740481C1C}\"><a14:useLocalDpi xmlns:a14=\"http://schemas.microsoft.com/office/drawing/2010/main\" val=\"0\"/></a:ext></a:extLst>", $a = async (e, t, n, r, i) => {
|
|
3193
3193
|
let a = r.content?.json, o = a?.model, s = a?.part, c = () => i ?? n?.getBounds() ?? {
|
|
3194
3194
|
x: 0,
|
|
3195
3195
|
y: 0,
|
|
@@ -3203,20 +3203,20 @@ var ka = [
|
|
|
3203
3203
|
});
|
|
3204
3204
|
if (n.leftOut.length > 0) {
|
|
3205
3205
|
let i = r.content?.name ?? "";
|
|
3206
|
-
if (n.leftOut.length === u.length) return e.warn(`The chart '${i}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"),
|
|
3206
|
+
if (n.leftOut.length === u.length) return e.warn(`The chart '${i}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"), uo(e, t, r, c());
|
|
3207
3207
|
e.warn(`The chart '${i}' combines types one xlsx chart cannot hold together; it is saved without its ${n.leftOut.join(", ")} series.`, void 0, "xlsx.chart.leftOut");
|
|
3208
3208
|
}
|
|
3209
3209
|
d = n.family, f = n.xml;
|
|
3210
3210
|
} else {
|
|
3211
|
-
if (!s?.xml || !l) return
|
|
3211
|
+
if (!s?.xml || !l) return uo(e, t, r, c());
|
|
3212
3212
|
d = l, f = s.xml;
|
|
3213
3213
|
}
|
|
3214
3214
|
let p = gt[d], m = [...s?.parts ?? []];
|
|
3215
|
-
if (d === "chartEx") for (let e of [
|
|
3215
|
+
if (d === "chartEx") for (let e of [Ga, Ka]) m.some((t) => t.type === e.type) || m.push({
|
|
3216
3216
|
id: "",
|
|
3217
3217
|
...e
|
|
3218
3218
|
});
|
|
3219
|
-
let h = await
|
|
3219
|
+
let h = await nr({
|
|
3220
3220
|
...s,
|
|
3221
3221
|
id: s?.id ?? "",
|
|
3222
3222
|
type: p.relType,
|
|
@@ -3224,9 +3224,9 @@ var ka = [
|
|
|
3224
3224
|
xml: f,
|
|
3225
3225
|
parts: m
|
|
3226
3226
|
}, e, p.path);
|
|
3227
|
-
if (!h?.relId) return
|
|
3227
|
+
if (!h?.relId) return uo(e, t, r, c());
|
|
3228
3228
|
let g = e.getXMLWriter();
|
|
3229
|
-
if (d === "chart") return void
|
|
3229
|
+
if (d === "chart") return void eo(e, t, n, r, d, h.relId, i);
|
|
3230
3230
|
let _ = ((e) => {
|
|
3231
3231
|
let t = new Set(e.map((e) => e.type));
|
|
3232
3232
|
return t.has("regionMap") ? {
|
|
@@ -3240,18 +3240,18 @@ var ka = [
|
|
|
3240
3240
|
uri: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"
|
|
3241
3241
|
};
|
|
3242
3242
|
})(u);
|
|
3243
|
-
g.start("mc:AlternateContent", { "xmlns:mc":
|
|
3243
|
+
g.start("mc:AlternateContent", { "xmlns:mc": ao }), g.start("mc:Choice", {
|
|
3244
3244
|
[`xmlns:${_.prefix}`]: _.uri,
|
|
3245
3245
|
Requires: _.prefix
|
|
3246
|
-
}),
|
|
3247
|
-
},
|
|
3246
|
+
}), eo(e, t, n, r, d, h.relId, i), g.end("mc:Choice"), g.start("mc:Fallback"), co(g, c(), "This chart isn't available in your version of Excel.\n\nEditing this shape or saving this workbook into a different file format will permanently break the chart."), g.end("mc:Fallback"), g.end("mc:AlternateContent");
|
|
3247
|
+
}, eo = (e, t, n, r, i, a, o) => {
|
|
3248
3248
|
let s = e.getXMLWriter(), c = o ?? {
|
|
3249
3249
|
x: 0,
|
|
3250
3250
|
y: 0,
|
|
3251
3251
|
width: 0,
|
|
3252
3252
|
height: 0
|
|
3253
3253
|
}, l = i === "chartEx" ? "cx" : "c", u = gt[i].graphicUri;
|
|
3254
|
-
s.start("graphicFrame", { macro: "" }), s.start("nvGraphicFramePr"),
|
|
3254
|
+
s.start("graphicFrame", { macro: "" }), s.start("nvGraphicFramePr"), mo(e, s, n, r, t), r.lockAspect ? (s.start("cNvGraphicFramePr"), s.empty("a:graphicFrameLocks", { noChangeAspect: "1" }), s.end("cNvGraphicFramePr")) : s.empty("cNvGraphicFramePr"), s.end("nvGraphicFramePr"), s.start("xfrm"), s.empty("a:off", {
|
|
3255
3255
|
x: J(c.x),
|
|
3256
3256
|
y: J(c.y)
|
|
3257
3257
|
}), s.empty("a:ext", {
|
|
@@ -3262,43 +3262,43 @@ var ka = [
|
|
|
3262
3262
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
3263
3263
|
"r:id": a
|
|
3264
3264
|
}), s.end("a:graphicData"), s.end("a:graphic"), s.end("graphicFrame");
|
|
3265
|
-
},
|
|
3265
|
+
}, to = async (e, t, n, r, i) => {
|
|
3266
3266
|
let a = e.getXMLWriter(), o = r.content?.json, s = t.getStyles();
|
|
3267
|
-
a.start("grpSp"), a.start("nvGrpSpPr"),
|
|
3268
|
-
let c =
|
|
3269
|
-
c ? (a.start("cNvGrpSpPr"), a.empty("a:grpSpLocks", c), a.end("cNvGrpSpPr")) : a.empty("cNvGrpSpPr"), a.end("nvGrpSpPr"), a.start("grpSpPr"), a.pushDefaultNamespace("a"),
|
|
3270
|
-
for (let n of
|
|
3267
|
+
a.start("grpSp"), a.start("nvGrpSpPr"), mo(e, a, n, r, t);
|
|
3268
|
+
let c = go(r);
|
|
3269
|
+
c ? (a.start("cNvGrpSpPr"), a.empty("a:grpSpLocks", c), a.end("cNvGrpSpPr")) : a.empty("cNvGrpSpPr"), a.end("nvGrpSpPr"), a.start("grpSpPr"), a.pushDefaultNamespace("a"), yo(a, i, r, o?.childBounds ?? i), br(e, s, o), o?.scene3d && a.raw(o.scene3d), o?.extLst?.properties && a.raw(o.extLst.properties), a.popDefaultNamespace(), a.end("grpSpPr");
|
|
3270
|
+
for (let n of Ja(r)) await no(e, t, n, Ya(n));
|
|
3271
3271
|
a.end("grpSp");
|
|
3272
|
-
},
|
|
3272
|
+
}, no = async (e, t, n, r) => {
|
|
3273
3273
|
switch (n.content?.type) {
|
|
3274
3274
|
case "picture": {
|
|
3275
|
-
let i =
|
|
3276
|
-
return i ?
|
|
3275
|
+
let i = Or(e, n.content.json?.resId);
|
|
3276
|
+
return i ? Za(e, t, null, n, r, i) : void e.warn(`The picture '${n.content.name ?? ""}' in a group names no image in the workbook; the group is saved without it.`, void 0, "xlsx.drawing.group.picture");
|
|
3277
3277
|
}
|
|
3278
|
-
case "chart": return
|
|
3279
|
-
case "shape": return
|
|
3280
|
-
case "group": return
|
|
3281
|
-
default: return
|
|
3278
|
+
case "chart": return $a(e, t, null, n, r);
|
|
3279
|
+
case "shape": return ro(e, t, null, n, r);
|
|
3280
|
+
case "group": return to(e, t, null, n, r);
|
|
3281
|
+
default: return Be(n.content?.type) ? void xo(e.getXMLWriter(), n, r) : uo(e, t, n, r);
|
|
3282
3282
|
}
|
|
3283
|
-
},
|
|
3283
|
+
}, ro = async (e, t, n, r, i) => {
|
|
3284
3284
|
let a = e.getXMLWriter(), o = {}, s = r.content?.json, c = s?.type ?? Ot.Type.Shape, l = t.getStyles();
|
|
3285
|
-
c === Ot.Type.Connector ? (s?.macro !== void 0 && (o.macro = s.macro), s?.published !== void 0 && (o.fPublished = s.published ? "1" : "0"), a.start("cxnSp", o), a.start("nvCxnSpPr"),
|
|
3286
|
-
},
|
|
3285
|
+
c === Ot.Type.Connector ? (s?.macro !== void 0 && (o.macro = s.macro), s?.published !== void 0 && (o.fPublished = s.published ? "1" : "0"), a.start("cxnSp", o), a.start("nvCxnSpPr"), mo(e, a, n, r, t), _o(e, a, n, r, t), a.end("nvCxnSpPr"), fo(e, t, n, r, i), po(e, t, n, r), Da(e, l, s?.text), a.end("cxnSp")) : (s?.macro !== void 0 && (o.macro = s.macro), s?.textLink !== void 0 && (o.textlink = s.textLink), s?.locksText !== void 0 && (o.fLocksText = s.locksText ? "1" : "0"), s?.published !== void 0 && (o.fPublished = s.published ? "1" : "0"), a.start("sp", o), a.start("nvSpPr"), mo(e, a, n, r, t), _o(e, a, n, r, t), a.end("nvSpPr"), fo(e, t, n, r, i), po(e, t, n, r), Da(e, l, s?.text), a.end("sp"));
|
|
3286
|
+
}, io = async (e, t, n, r) => uo(e, t, r, n.getBounds()), ao = "http://schemas.openxmlformats.org/markup-compatibility/2006", oo = "http://schemas.microsoft.com/office/drawing/2010/slicer", so = async (e, t, n, r) => {
|
|
3287
3287
|
let i = e.getXMLWriter(), a = r.content?.name ?? "";
|
|
3288
|
-
i.start("mc:AlternateContent", { "xmlns:mc":
|
|
3288
|
+
i.start("mc:AlternateContent", { "xmlns:mc": ao }), i.start("mc:Choice", {
|
|
3289
3289
|
"xmlns:sle15": "http://schemas.microsoft.com/office/drawing/2012/slicer",
|
|
3290
3290
|
Requires: "sle15"
|
|
3291
|
-
}), i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"),
|
|
3291
|
+
}), i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"), mo(e, i, n, r, t), i.empty("cNvGraphicFramePr"), i.end("nvGraphicFramePr"), i.start("xfrm"), i.empty("a:off", {
|
|
3292
3292
|
x: "0",
|
|
3293
3293
|
y: "0"
|
|
3294
3294
|
}), i.empty("a:ext", {
|
|
3295
3295
|
cx: "0",
|
|
3296
3296
|
cy: "0"
|
|
3297
|
-
}), i.end("xfrm"), i.start("a:graphic"), i.start("a:graphicData", { uri:
|
|
3298
|
-
"xmlns:sle":
|
|
3297
|
+
}), i.end("xfrm"), i.start("a:graphic"), i.start("a:graphicData", { uri: oo }), i.empty("sle:slicer", {
|
|
3298
|
+
"xmlns:sle": oo,
|
|
3299
3299
|
name: a
|
|
3300
|
-
}), i.end("a:graphicData"), i.end("a:graphic"), i.end("graphicFrame"), i.end("mc:Choice"), i.start("mc:Fallback"),
|
|
3301
|
-
},
|
|
3300
|
+
}), i.end("a:graphicData"), i.end("a:graphic"), i.end("graphicFrame"), i.end("mc:Choice"), i.start("mc:Fallback"), co(i, n.getBounds(), "This shape represents a table slicer. Table slicers are not supported in this version of Excel.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2007 or earlier, the slicer can't be used."), i.end("mc:Fallback"), i.end("mc:AlternateContent");
|
|
3301
|
+
}, co = (e, t, n) => {
|
|
3302
3302
|
e.start("sp", {
|
|
3303
3303
|
macro: "",
|
|
3304
3304
|
textlink: ""
|
|
@@ -3318,8 +3318,8 @@ var ka = [
|
|
|
3318
3318
|
lang: "en-US",
|
|
3319
3319
|
sz: "1100"
|
|
3320
3320
|
}), e.start("a:t"), e.text(n), e.end("a:t"), e.end("a:r"), e.end("a:p"), e.end("txBody"), e.end("sp");
|
|
3321
|
-
},
|
|
3322
|
-
|
|
3321
|
+
}, lo = async (e, t, n, r) => uo(e, t, r, n.getBounds()), uo = async (e, t, n, r) => {
|
|
3322
|
+
ro(e, t, null, {
|
|
3323
3323
|
...n,
|
|
3324
3324
|
content: {
|
|
3325
3325
|
type: "shape",
|
|
@@ -3338,19 +3338,19 @@ var ka = [
|
|
|
3338
3338
|
}
|
|
3339
3339
|
}
|
|
3340
3340
|
}, r);
|
|
3341
|
-
},
|
|
3341
|
+
}, fo = (e, t, n, r, i) => {
|
|
3342
3342
|
let a = e.getXMLWriter(), o = r.content?.json, s = o?.geometry, c = t.getStyles();
|
|
3343
|
-
if (a.start("spPr"), a.pushDefaultNamespace("a"),
|
|
3343
|
+
if (a.start("spPr"), a.pushDefaultNamespace("a"), yo(a, i, r), typeof s == "object" && s) ((e, t) => {
|
|
3344
3344
|
e.start("custGeom"), e.start("avLst");
|
|
3345
|
-
for (let n of t.av ?? [])
|
|
3345
|
+
for (let n of t.av ?? []) Ba(e, n);
|
|
3346
3346
|
e.end("avLst"), e.start("gdLst");
|
|
3347
|
-
for (let n of t.gd ?? [])
|
|
3347
|
+
for (let n of t.gd ?? []) Ba(e, n);
|
|
3348
3348
|
e.end("gdLst"), e.start("ahLst");
|
|
3349
|
-
for (let n of t.ah ?? [])
|
|
3349
|
+
for (let n of t.ah ?? []) Ha(e, n);
|
|
3350
3350
|
e.end("ahLst"), e.start("cxnLst");
|
|
3351
3351
|
for (let n of Array.isArray(t.cxn) ? t.cxn : []) {
|
|
3352
3352
|
let t = n.split(" ");
|
|
3353
|
-
e.start("cxn", { ang: t[0] }),
|
|
3353
|
+
e.start("cxn", { ang: t[0] }), Va(e, t[1], t[2]), e.end("cxn");
|
|
3354
3354
|
}
|
|
3355
3355
|
if (e.end("cxnLst"), t.rect) {
|
|
3356
3356
|
let n = t.rect.split(" ");
|
|
@@ -3362,7 +3362,7 @@ var ka = [
|
|
|
3362
3362
|
});
|
|
3363
3363
|
}
|
|
3364
3364
|
e.start("pathLst");
|
|
3365
|
-
for (let n of t.paths)
|
|
3365
|
+
for (let n of t.paths) Wa(e, n);
|
|
3366
3366
|
e.end("pathLst"), e.end("custGeom");
|
|
3367
3367
|
})(a, s);
|
|
3368
3368
|
else {
|
|
@@ -3379,16 +3379,16 @@ var ka = [
|
|
|
3379
3379
|
}
|
|
3380
3380
|
a.end("prstGeom");
|
|
3381
3381
|
}
|
|
3382
|
-
|
|
3383
|
-
},
|
|
3382
|
+
br(e, c, o), o?.scene3d && a.raw(o.scene3d), o?.shape3d && a.raw(o.shape3d), o?.extLst?.properties && a.raw(o.extLst.properties), a.popDefaultNamespace(), a.end("spPr");
|
|
3383
|
+
}, po = (e, t, n, r) => {
|
|
3384
3384
|
let i = e.getXMLWriter(), a = r.content?.json?.style;
|
|
3385
3385
|
if (a === null) return;
|
|
3386
|
-
let o = t.getStyles().getTheme(), s =
|
|
3386
|
+
let o = t.getStyles().getTheme(), s = Vt.defaultStyleRefs(r.content?.json), c = (e, t) => {
|
|
3387
3387
|
t && (i.start(e, { idx: String(t.index) }), t.color && W(i, o, t.color), i.end(e));
|
|
3388
3388
|
};
|
|
3389
3389
|
i.start("style"), i.pushDefaultNamespace("a"), c("lnRef", a?.stroke ?? s.stroke), c("fillRef", a?.fill ?? s.fill), c("effectRef", a?.effect ?? s.effect), c("fontRef", a?.font ?? s.font), i.popDefaultNamespace(), i.end("style");
|
|
3390
|
-
},
|
|
3391
|
-
let a =
|
|
3390
|
+
}, mo = (e, t, n, r, i) => {
|
|
3391
|
+
let a = ho(e, i).assigned.get(r);
|
|
3392
3392
|
if (a === void 0) {
|
|
3393
3393
|
let t = e.getSharedStates(), n = t.get("uniqueIdCounter");
|
|
3394
3394
|
n || (n = /* @__PURE__ */ new Map(), t.set("uniqueIdCounter", n)), a = (n.get(i) ?? 1) + 1, n.set(i, a);
|
|
@@ -3397,8 +3397,8 @@ var ka = [
|
|
|
3397
3397
|
id: "" + a,
|
|
3398
3398
|
name: r.content?.name
|
|
3399
3399
|
};
|
|
3400
|
-
r.content?.description && (s.descr = r.content.description), r.hidden && (s.hidden = "1"), o?.title && (s.title = o.title), t.start("cNvPr", s),
|
|
3401
|
-
},
|
|
3400
|
+
r.content?.description && (s.descr = r.content.description), r.hidden && (s.hidden = "1"), o?.title && (s.title = o.title), t.start("cNvPr", s), gr(e, t, "a:hlinkClick", o?.hyperlink), gr(e, t, "a:hlinkHover", o?.hoverHyperlink), o?.extLst?.nonVisual && t.raw(o.extLst.nonVisual), t.end("cNvPr");
|
|
3401
|
+
}, ho = (e, t) => {
|
|
3402
3402
|
let n = e.getSharedStates(), r = n.get("drawingIds");
|
|
3403
3403
|
r || (r = /* @__PURE__ */ new Map(), n.set("drawingIds", r));
|
|
3404
3404
|
let i = r.get(t);
|
|
@@ -3406,18 +3406,18 @@ var ka = [
|
|
|
3406
3406
|
assigned: /* @__PURE__ */ new Map(),
|
|
3407
3407
|
bySource: /* @__PURE__ */ new Map()
|
|
3408
3408
|
}, r.set(t, i)), i;
|
|
3409
|
-
},
|
|
3409
|
+
}, go = (e) => {
|
|
3410
3410
|
let t = { ...e.content?.json?.locks };
|
|
3411
3411
|
e.lockAspect !== void 0 && t.noChangeAspect === void 0 && (t.noChangeAspect = e.lockAspect);
|
|
3412
3412
|
let n = {};
|
|
3413
3413
|
for (let e of Object.keys(t)) t[e] && (n[e] = "1");
|
|
3414
3414
|
return Object.keys(n).length > 0 ? n : null;
|
|
3415
|
-
},
|
|
3416
|
-
let a = r.content?.json, o =
|
|
3415
|
+
}, _o = (e, t, n, r, i) => {
|
|
3416
|
+
let a = r.content?.json, o = go(r);
|
|
3417
3417
|
if (a?.type === Ot.Type.Connector) {
|
|
3418
3418
|
let n = a.connectorEnds;
|
|
3419
3419
|
if (!o && !n) return void t.empty("cNvCxnSpPr");
|
|
3420
|
-
let r =
|
|
3420
|
+
let r = ho(e, i);
|
|
3421
3421
|
t.start("cNvCxnSpPr"), o && t.empty("a:cxnSpLocks", o), n?.start && t.empty("a:stCxn", {
|
|
3422
3422
|
id: String(r.bySource.get(n.start.id) ?? n.start.id),
|
|
3423
3423
|
idx: String(n.start.index)
|
|
@@ -3429,13 +3429,13 @@ var ka = [
|
|
|
3429
3429
|
}
|
|
3430
3430
|
let s = { txBox: a?.textBox ? "1" : void 0 };
|
|
3431
3431
|
o ? (t.start("cNvSpPr", s), t.empty("a:spLocks", o), t.end("cNvSpPr")) : t.empty("cNvSpPr", s);
|
|
3432
|
-
},
|
|
3432
|
+
}, vo = (e) => {
|
|
3433
3433
|
let t = { ...e.content?.json?.locks };
|
|
3434
3434
|
e.lockAspect === void 0 ? t.noChangeAspect ??= !0 : t.noChangeAspect = e.lockAspect;
|
|
3435
3435
|
let n = {};
|
|
3436
3436
|
for (let e of Object.keys(t)) t[e] && (n[e] = "1");
|
|
3437
3437
|
return n;
|
|
3438
|
-
},
|
|
3438
|
+
}, yo = (e, t, n, r) => {
|
|
3439
3439
|
let i = {}, a = n.rotation;
|
|
3440
3440
|
a !== void 0 && a !== 0 && (i.rot = "" + Y(a)), n.flipH && (i.flipH = "1"), n.flipV && (i.flipV = "1"), e.start("xfrm", i), e.empty("off", {
|
|
3441
3441
|
x: J(t.x),
|
|
@@ -3450,48 +3450,48 @@ var ka = [
|
|
|
3450
3450
|
cx: J(r.width),
|
|
3451
3451
|
cy: J(r.height)
|
|
3452
3452
|
})), e.end("xfrm");
|
|
3453
|
-
}, yo = (e, t, n) => {
|
|
3454
|
-
e.start(t), e.start("col"), e.text(n.c ?? 0), e.end("col"), e.start("colOff"), e.text(J(n.x)), e.end("colOff"), e.start("row"), e.text(n.r ?? 0), e.end("row"), e.start("rowOff"), e.text(J(n.y)), e.end("rowOff"), e.end(t);
|
|
3455
3453
|
}, bo = (e, t, n) => {
|
|
3454
|
+
e.start(t), e.start("col"), e.text(n.c ?? 0), e.end("col"), e.start("colOff"), e.text(J(n.x)), e.end("colOff"), e.start("row"), e.text(n.r ?? 0), e.end("row"), e.start("rowOff"), e.text(J(n.y)), e.end("rowOff"), e.end(t);
|
|
3455
|
+
}, xo = (e, t, n) => {
|
|
3456
3456
|
let r = t.content.json;
|
|
3457
|
-
if (e.start("mc:AlternateContent",
|
|
3458
|
-
e.start("twoCellAnchor", { editAs: t.anchorType || "twoCell" }),
|
|
3459
|
-
},
|
|
3457
|
+
if (e.start("mc:AlternateContent", Se), e.start("mc:Choice", Le), n) return e.raw(Je(t.content.type, r, t.content?.name, n)), e.end("mc:Choice"), e.empty("mc:Fallback"), void e.end("mc:AlternateContent");
|
|
3458
|
+
e.start("twoCellAnchor", { editAs: t.anchorType || "twoCell" }), bo(e, "from", t.anchor.tl), bo(e, "to", t.anchor.br), e.raw(Je(t.content.type, r, t.content?.name)), e.empty("clientData", { fPrintsWithSheet: "0" }), e.end("twoCellAnchor"), e.end("mc:Choice"), e.empty("mc:Fallback"), e.end("mc:AlternateContent");
|
|
3459
|
+
}, So = async (e, t, n) => {
|
|
3460
3460
|
let r = await n.getExternalURI();
|
|
3461
|
-
if (r) return void e.addExternal(
|
|
3462
|
-
let i = e.getSharedStates(), a = i.get(
|
|
3463
|
-
a || (a = /* @__PURE__ */ new Map(), i.set(
|
|
3461
|
+
if (r) return void e.addExternal(wr, r);
|
|
3462
|
+
let i = e.getSharedStates(), a = i.get(Tr);
|
|
3463
|
+
a || (a = /* @__PURE__ */ new Map(), i.set(Tr, a));
|
|
3464
3464
|
let o = a.get(n);
|
|
3465
3465
|
if (!o) {
|
|
3466
3466
|
let e = await n.toBuffer();
|
|
3467
3467
|
o = {
|
|
3468
3468
|
bytes: new Uint8Array(e),
|
|
3469
|
-
type: await n.getType() ??
|
|
3469
|
+
type: await n.getType() ?? Pr,
|
|
3470
3470
|
index: a.size + 1
|
|
3471
3471
|
}, a.set(n, o);
|
|
3472
3472
|
}
|
|
3473
|
-
let s = e.addBinary(o.bytes, o.type.mime,
|
|
3473
|
+
let s = e.addBinary(o.bytes, o.type.mime, wr, `../media/image${o.index}.${o.type.ext}`, !0, t);
|
|
3474
3474
|
s.relId !== t && e.log(`Legacy drawing image '${t}' was written as '${s.relId}'; the markup will not find it.`);
|
|
3475
3475
|
};
|
|
3476
|
-
function
|
|
3476
|
+
function Co(e) {
|
|
3477
3477
|
return e.toISOString().substring(0, 22);
|
|
3478
3478
|
}
|
|
3479
|
-
function
|
|
3479
|
+
function wo(e, t, n, r, i, a, o, s, c) {
|
|
3480
3480
|
let l = {
|
|
3481
3481
|
ref: t,
|
|
3482
|
-
dT:
|
|
3483
|
-
personId: r ?
|
|
3484
|
-
id:
|
|
3485
|
-
parentId: o ?
|
|
3482
|
+
dT: Co(i ?? /* @__PURE__ */ new Date()),
|
|
3483
|
+
personId: r ? To(r) : void 0,
|
|
3484
|
+
id: To(n),
|
|
3485
|
+
parentId: o ? To(o) : void 0,
|
|
3486
3486
|
done: s ? "1" : void 0
|
|
3487
3487
|
};
|
|
3488
|
-
if (e.start("threadedComment", l), e.start("text", ue.test(a) || /[\n\r]/.test(a) ?
|
|
3488
|
+
if (e.start("threadedComment", l), e.start("text", ue.test(a) || /[\n\r]/.test(a) ? fe : void 0), e.text(a), e.end("text"), c && c.length > 0) {
|
|
3489
3489
|
e.start("mentions");
|
|
3490
3490
|
for (let t = 0; t < c.length; t++) {
|
|
3491
3491
|
let n = c[t];
|
|
3492
3492
|
e.empty("mention", {
|
|
3493
|
-
mentionpersonId:
|
|
3494
|
-
mentionId:
|
|
3493
|
+
mentionpersonId: To(n.personId),
|
|
3494
|
+
mentionId: To(n.id),
|
|
3495
3495
|
startIndex: n.startIndex ?? 0,
|
|
3496
3496
|
length: n.length ?? 0
|
|
3497
3497
|
});
|
|
@@ -3500,17 +3500,17 @@ function Co(e, t, n, r, i, a, o, s, c) {
|
|
|
3500
3500
|
}
|
|
3501
3501
|
e.end("threadedComment");
|
|
3502
3502
|
}
|
|
3503
|
-
function
|
|
3503
|
+
function To(e) {
|
|
3504
3504
|
return `{${e.replace(/^\{|\}$/g, "").toUpperCase()}}`;
|
|
3505
3505
|
}
|
|
3506
|
-
var
|
|
3506
|
+
var Eo = {
|
|
3507
3507
|
rowIndex: 0,
|
|
3508
3508
|
colIndex: 0
|
|
3509
3509
|
};
|
|
3510
|
-
function
|
|
3510
|
+
function Do(e, t, n, r) {
|
|
3511
3511
|
if (r == null) return;
|
|
3512
|
-
|
|
3513
|
-
let i = j.cellToString(
|
|
3512
|
+
Eo.rowIndex = t, Eo.colIndex = n;
|
|
3513
|
+
let i = j.cellToString(Eo), a, o;
|
|
3514
3514
|
switch (typeof r) {
|
|
3515
3515
|
case "number":
|
|
3516
3516
|
o = "" + r;
|
|
@@ -3532,7 +3532,7 @@ function Eo(e, t, n, r) {
|
|
|
3532
3532
|
t: a
|
|
3533
3533
|
} : { r: i }), e.start("v"), e.text(o), e.end("v"), e.end("cell");
|
|
3534
3534
|
}
|
|
3535
|
-
var
|
|
3535
|
+
var Oo = [
|
|
3536
3536
|
new class extends U {
|
|
3537
3537
|
constructor() {
|
|
3538
3538
|
super({
|
|
@@ -3555,30 +3555,30 @@ var Do = [
|
|
|
3555
3555
|
"xmlns:xr10": "http://schemas.microsoft.com/office/spreadsheetml/2016/revision10",
|
|
3556
3556
|
"xmlns:xr2": "http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"
|
|
3557
3557
|
});
|
|
3558
|
-
let r = t.getSharedStates().get(
|
|
3558
|
+
let r = t.getSharedStates().get(Yt), i = await e.toJSON({
|
|
3559
3559
|
ignoreData: !0,
|
|
3560
3560
|
resources: (e, t) => (r?.set(t, e), null)
|
|
3561
|
-
}),
|
|
3562
|
-
t.getSharedStates().set(
|
|
3563
|
-
let
|
|
3564
|
-
let i = /* @__PURE__ */ new Map(), a = e.styles?.direct, o = new
|
|
3561
|
+
}), a = new An();
|
|
3562
|
+
t.getSharedStates().set(kn, a);
|
|
3563
|
+
let o = function(e, t, n = new An(), r = () => {}) {
|
|
3564
|
+
let i = /* @__PURE__ */ new Map(), a = e.styles?.direct, o = new jn(a?.[0]), s = e.sheets ?? [], c = !1;
|
|
3565
3565
|
for (let e = 0; e < s.length; e++) {
|
|
3566
|
-
let l =
|
|
3566
|
+
let l = g(s[e]), u = t[e];
|
|
3567
3567
|
if (!l || !u) continue;
|
|
3568
|
-
let d =
|
|
3569
|
-
d.length > 0 && (c = !0), i.set(l,
|
|
3568
|
+
let d = Mn(l, u, n, r);
|
|
3569
|
+
d.length > 0 && (c = !0), i.set(l, Nn(l, u, a ?? [], o, d));
|
|
3570
3570
|
}
|
|
3571
3571
|
return (a || c) && (e.styles = {
|
|
3572
3572
|
...e.styles,
|
|
3573
3573
|
direct: o.list
|
|
3574
3574
|
}), n.setXfComplements(o.complements), i;
|
|
3575
|
-
}(i, e.getSheets({ visibility: kt.Visibility.VeryHidden }),
|
|
3575
|
+
}(i, e.getSheets({ visibility: kt.Visibility.VeryHidden }), a, (e, n) => {
|
|
3576
3576
|
t.warn(e, void 0, n);
|
|
3577
3577
|
});
|
|
3578
|
-
t.getSharedStates().set(tt,
|
|
3578
|
+
t.getSharedStates().set(tt, Ue(i.names, function(e) {
|
|
3579
3579
|
let t = [], n = e.sheets ?? [];
|
|
3580
3580
|
for (let e = 0; e < n.length; e++) {
|
|
3581
|
-
let r = n[e], i =
|
|
3581
|
+
let r = n[e], i = g(r)?.tables;
|
|
3582
3582
|
if (i) for (let e = 0; e < i.length; e++) {
|
|
3583
3583
|
let n = i[e], r = Array.isArray(n) ? n[1]?.name : n?.v?.name;
|
|
3584
3584
|
r && t.push(String(r));
|
|
@@ -3594,7 +3594,7 @@ var Do = [
|
|
|
3594
3594
|
}
|
|
3595
3595
|
};
|
|
3596
3596
|
}(t, i))), function(e, t) {
|
|
3597
|
-
let n = e.getSharedStates().get(
|
|
3597
|
+
let n = e.getSharedStates().get(ai);
|
|
3598
3598
|
n && t.empty("fileVersion", n);
|
|
3599
3599
|
}(t, n), function(e, t, n, r) {
|
|
3600
3600
|
let i = {}, a = n.getCodeName();
|
|
@@ -3603,9 +3603,9 @@ var Do = [
|
|
|
3603
3603
|
let i = r.protection;
|
|
3604
3604
|
if (!i || i.workbook) return;
|
|
3605
3605
|
let a = {};
|
|
3606
|
-
|
|
3607
|
-
for (let e of
|
|
3608
|
-
let t =
|
|
3606
|
+
En(i.password ?? {}, a, "workbook"), En(i.revisionsPassword ?? {}, a, "revisions");
|
|
3607
|
+
for (let e of ut) {
|
|
3608
|
+
let t = re(e, i[e.key]);
|
|
3609
3609
|
t !== null && (a[e.attribute] = t);
|
|
3610
3610
|
}
|
|
3611
3611
|
t.empty("workbookProtection", a);
|
|
@@ -3622,7 +3622,7 @@ var Do = [
|
|
|
3622
3622
|
let l = n.getSelectedSheet().getIndex();
|
|
3623
3623
|
l !== 0 && (i.activeTab = "" + l), r.isAutoFilterDateGrouping() || (i.autoFilterDateGrouping = "0"), t.empty("workbookView", i), t.end("bookViews");
|
|
3624
3624
|
}(0, n, e, i.view);
|
|
3625
|
-
let
|
|
3625
|
+
let s = await (async (e, t) => {
|
|
3626
3626
|
let n = [], r = t ? t.length : 0;
|
|
3627
3627
|
if (r === 0) return n;
|
|
3628
3628
|
let i = /* @__PURE__ */ new Map();
|
|
@@ -3630,7 +3630,7 @@ var Do = [
|
|
|
3630
3630
|
for (let a = 0; a < r; a++) {
|
|
3631
3631
|
let r = t[a], o = r.cacheId, s = r.part;
|
|
3632
3632
|
if (s?.xml && !i.has(o)) try {
|
|
3633
|
-
let t = await
|
|
3633
|
+
let t = await nr({
|
|
3634
3634
|
...s,
|
|
3635
3635
|
type: s.type || "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",
|
|
3636
3636
|
contentType: s.contentType || "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml"
|
|
@@ -3649,18 +3649,18 @@ var Do = [
|
|
|
3649
3649
|
(function(e, t) {
|
|
3650
3650
|
t.getComments().some((e) => !e.isNote()) && e.addPart("persons", t.getPeople());
|
|
3651
3651
|
})(t, e), n.start("sheets");
|
|
3652
|
-
let
|
|
3653
|
-
|
|
3654
|
-
let
|
|
3655
|
-
|
|
3656
|
-
let
|
|
3657
|
-
|
|
3658
|
-
let
|
|
3652
|
+
let c = t.getSharedStates(), l = e.getStrings().beginPersist();
|
|
3653
|
+
c.set("persistStrings", l);
|
|
3654
|
+
let u = new Qn();
|
|
3655
|
+
c.set("metaCollector", u);
|
|
3656
|
+
let d = new $n(u, e, t.log.bind(t));
|
|
3657
|
+
c.set("persistRichTypes", d), c.set(Dn, new On(i.styles, e.getStyles()));
|
|
3658
|
+
let f = {
|
|
3659
3659
|
relIds: [],
|
|
3660
3660
|
cacheNames: []
|
|
3661
3661
|
};
|
|
3662
3662
|
try {
|
|
3663
|
-
let r = e.getSheets({ visibility: kt.Visibility.VeryHidden }),
|
|
3663
|
+
let r = e.getSheets({ visibility: kt.Visibility.VeryHidden }), s = i.sheets, u = e.getSelectedSheet(), d = r.length, p = ((e, t) => {
|
|
3664
3664
|
let n = Array(t), r = /* @__PURE__ */ new Set(), i = 1;
|
|
3665
3665
|
for (let a = 0; a < t; a++) {
|
|
3666
3666
|
let t = e?.[a]?.sheetId;
|
|
@@ -3671,10 +3671,10 @@ var Do = [
|
|
|
3671
3671
|
r.add(i), n[e] = i++;
|
|
3672
3672
|
}
|
|
3673
3673
|
return n;
|
|
3674
|
-
})(
|
|
3674
|
+
})(s, d), m = ((e, t, n) => {
|
|
3675
3675
|
let r = t.length, i = Array(r), a = new Set(n?.values() ?? []), o = /* @__PURE__ */ new Set();
|
|
3676
3676
|
for (let a = 0; a < r; a++) {
|
|
3677
|
-
if (
|
|
3677
|
+
if (oe(e?.[a])) continue;
|
|
3678
3678
|
let r = e?.[a]?.sheetId;
|
|
3679
3679
|
if (r === void 0 || t[a] !== r) continue;
|
|
3680
3680
|
let s = n?.get(r);
|
|
@@ -3682,7 +3682,7 @@ var Do = [
|
|
|
3682
3682
|
}
|
|
3683
3683
|
let s = 1;
|
|
3684
3684
|
for (let t = 0; t < r; t++) {
|
|
3685
|
-
if (i[t] ||
|
|
3685
|
+
if (i[t] || oe(e?.[t])) continue;
|
|
3686
3686
|
let n;
|
|
3687
3687
|
do
|
|
3688
3688
|
n = `xl/worksheets/sheet${s++}.xml`;
|
|
@@ -3690,26 +3690,26 @@ var Do = [
|
|
|
3690
3690
|
o.add(n), i[t] = n;
|
|
3691
3691
|
}
|
|
3692
3692
|
return i;
|
|
3693
|
-
})(
|
|
3694
|
-
for (let e = 0; e <
|
|
3695
|
-
let n =
|
|
3696
|
-
if (
|
|
3697
|
-
let i = r[e],
|
|
3693
|
+
})(s, p, c.get(oi)), h = Array(d).fill(null);
|
|
3694
|
+
for (let e = 0; e < d; e++) {
|
|
3695
|
+
let n = s[e];
|
|
3696
|
+
if (oe(n)) continue;
|
|
3697
|
+
let i = r[e], a = g(n), c = t.addPart("worksheet", {
|
|
3698
3698
|
model: i,
|
|
3699
|
-
isSelected:
|
|
3700
|
-
json: (
|
|
3701
|
-
persistStrings:
|
|
3702
|
-
}, "/" +
|
|
3703
|
-
|
|
3699
|
+
isSelected: u === i,
|
|
3700
|
+
json: (a && o.get(a)) ?? a,
|
|
3701
|
+
persistStrings: l
|
|
3702
|
+
}, "/" + m[e]);
|
|
3703
|
+
h[e] = c.relId ?? null;
|
|
3704
3704
|
}
|
|
3705
|
-
let _ = !0 ===
|
|
3706
|
-
for (let n = 0; n <
|
|
3707
|
-
let i =
|
|
3708
|
-
i && (
|
|
3705
|
+
let _ = !0 === c.get(si);
|
|
3706
|
+
for (let n = 0; n < d; n++) {
|
|
3707
|
+
let i = oe(s[n]);
|
|
3708
|
+
i && (h[n] = ci(t, e, s[n].kind, i, u === r[n], _));
|
|
3709
3709
|
}
|
|
3710
|
-
for (let e = 0; e <
|
|
3710
|
+
for (let e = 0; e < d; e++) {
|
|
3711
3711
|
let i = r[e];
|
|
3712
|
-
if (!
|
|
3712
|
+
if (!h[e]) {
|
|
3713
3713
|
t.log(`The sheet '${i.getName()}' could not be written and is being dropped.`);
|
|
3714
3714
|
continue;
|
|
3715
3715
|
}
|
|
@@ -3717,12 +3717,12 @@ var Do = [
|
|
|
3717
3717
|
name: i.getName(),
|
|
3718
3718
|
sheetId: "" + p[e]
|
|
3719
3719
|
}, o = i.getVisibility();
|
|
3720
|
-
o === "hidden" ? a.state = "hidden" : o === "veryHidden" && (a.state = "veryHidden"), a["r:id"] =
|
|
3720
|
+
o === "hidden" ? a.state = "hidden" : o === "veryHidden" && (a.state = "veryHidden"), a["r:id"] = h[e], n.empty("sheet", a);
|
|
3721
3721
|
}
|
|
3722
|
-
await t.waitEmit(),
|
|
3723
|
-
let n = [], r = [], i =
|
|
3722
|
+
await t.waitEmit(), f = ((e, t) => {
|
|
3723
|
+
let n = [], r = [], i = Yr(e), a = t.getWorksheets().getItems({ visibility: kt.Visibility.VeryHidden });
|
|
3724
3724
|
for (let t = 0; t < a.length; t++) {
|
|
3725
|
-
let o =
|
|
3725
|
+
let o = ri(a[t]);
|
|
3726
3726
|
for (let t = 0; t < o.length; t++) {
|
|
3727
3727
|
let a = o[t];
|
|
3728
3728
|
if (!i.has(a.getTable())) {
|
|
@@ -3746,26 +3746,26 @@ var Do = [
|
|
|
3746
3746
|
styles: e.getStyles(),
|
|
3747
3747
|
theme: e.getTheme(),
|
|
3748
3748
|
json: i.styles
|
|
3749
|
-
}), await t.waitEmit(),
|
|
3750
|
-
let y = await
|
|
3749
|
+
}), await t.waitEmit(), a.getControls().length > 0 && (t.addPart("featurePropertyBag", a), await t.waitEmit());
|
|
3750
|
+
let y = await l.toJSONAsync();
|
|
3751
3751
|
y && y.length > 0 && (t.addPart("sharedStrings", {
|
|
3752
3752
|
model: y,
|
|
3753
3753
|
json: y,
|
|
3754
3754
|
theme: e.getTheme()
|
|
3755
3755
|
}), await t.waitEmit());
|
|
3756
|
-
let b =
|
|
3756
|
+
let b = c.get("persistRichTypes");
|
|
3757
3757
|
b?.hasAny() && (t.addPart("richValue", b), t.addPart("richValueStructure", b), t.addPart("richValueTypes", b), b.addParts(t), await t.waitEmit());
|
|
3758
|
-
let x =
|
|
3759
|
-
x?.hasAny() && (t.addPart("metadata", x), await t.waitEmit()),
|
|
3758
|
+
let x = c.get("metaCollector");
|
|
3759
|
+
x?.hasAny() && (t.addPart("metadata", x), await t.waitEmit()), c.delete("persistRichTypes"), c.delete("metaCollector"), c.delete("persistStrings");
|
|
3760
3760
|
} catch (e) {
|
|
3761
3761
|
throw e;
|
|
3762
3762
|
} finally {
|
|
3763
|
-
|
|
3763
|
+
l.endPersist();
|
|
3764
3764
|
}
|
|
3765
3765
|
n.end("sheets"), function(e, t, n) {
|
|
3766
3766
|
let r = n.externalBooks, i = r ? r.length : 0;
|
|
3767
3767
|
if (i === 0) return;
|
|
3768
|
-
let a = e.getSharedStates().get(
|
|
3768
|
+
let a = e.getSharedStates().get(li), o = /* @__PURE__ */ new Set();
|
|
3769
3769
|
if (a) for (let e = 0; e < i; e++) !r[e] && a[e] && o.add(a[e]);
|
|
3770
3770
|
let s = [], c = 1;
|
|
3771
3771
|
for (let t = 0; t < i; t++) {
|
|
@@ -3778,7 +3778,7 @@ var Do = [
|
|
|
3778
3778
|
s.push(e.addPart("externalLink", n, "/" + t).relId);
|
|
3779
3779
|
continue;
|
|
3780
3780
|
}
|
|
3781
|
-
let i = a?.[t], l = i ? e.addRelationship(
|
|
3781
|
+
let i = a?.[t], l = i ? e.addRelationship(ii, i) : null;
|
|
3782
3782
|
l ? s.push(l) : e.log(`External link [${t + 1}] cannot be written and is being dropped; later links will renumber.`);
|
|
3783
3783
|
}
|
|
3784
3784
|
if (s.length !== 0) {
|
|
@@ -3807,13 +3807,13 @@ var Do = [
|
|
|
3807
3807
|
}
|
|
3808
3808
|
for (let e of l) t.start("definedName", { name: e }), t.text("#N/A"), t.end("definedName");
|
|
3809
3809
|
t.end("definedNames");
|
|
3810
|
-
}(t, n, e, i,
|
|
3810
|
+
}(t, n, e, i, f.cacheNames), function(e, t, n) {
|
|
3811
3811
|
let r = n.getCalculation().toJSON(), i = { calcId: e.getSharedStates().get("calcId") ?? "191029" }, a = (e, t) => {
|
|
3812
3812
|
let n = r[e];
|
|
3813
3813
|
typeof n == "boolean" && (i[t] = n ? "1" : "0");
|
|
3814
3814
|
};
|
|
3815
3815
|
if (r.calcMode) {
|
|
3816
|
-
let e =
|
|
3816
|
+
let e = ui[r.calcMode];
|
|
3817
3817
|
e && e !== "auto" && (i.calcMode = e);
|
|
3818
3818
|
}
|
|
3819
3819
|
a("fullCalcOnLoad", "fullCalcOnLoad"), a("calcOnSave", "calcOnSave"), a("calcCompleted", "calcCompleted"), a("fullPrecision", "fullPrecision"), a("forceFullCalc", "forceFullCalc"), a("concurrentCalc", "concurrentCalc"), r.concurrentManualCount !== void 0 && (i.concurrentManualCount = String(r.concurrentManualCount)), r.refMode && (i.refMode = r.refMode), r.iterate && (i.iterate = "1"), r.maxIteration !== void 0 && (i.iterateCount = String(r.maxIteration)), r.maxIterateChange !== void 0 && (i.iterateDelta = String(r.maxIterateChange)), t.empty("calcPr", i);
|
|
@@ -3826,19 +3826,19 @@ var Do = [
|
|
|
3826
3826
|
});
|
|
3827
3827
|
e.end("pivotCaches");
|
|
3828
3828
|
}
|
|
3829
|
-
}(n,
|
|
3829
|
+
}(n, s), function(e, t, n) {
|
|
3830
3830
|
let r = e.getSharedStates().get("calcFeatures") ?? "<ext uri=\"{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}\" xmlns:xcalcf=\"http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures\"><xcalcf:calcFeatures><xcalcf:feature name=\"microsoft.com:RD\"/><xcalcf:feature name=\"microsoft.com:Single\"/><xcalcf:feature name=\"microsoft.com:FV\"/><xcalcf:feature name=\"microsoft.com:CNMTM\"/><xcalcf:feature name=\"microsoft.com:LET_WF\"/><xcalcf:feature name=\"microsoft.com:LAMBDA_WF\"/><xcalcf:feature name=\"microsoft.com:ARRAYTEXT_WF\"/></xcalcf:calcFeatures></ext>";
|
|
3831
3831
|
t.start("extLst"), ((e, t) => {
|
|
3832
3832
|
if (t.length !== 0) {
|
|
3833
3833
|
e.start("ext", {
|
|
3834
|
-
uri:
|
|
3835
|
-
"xmlns:x15":
|
|
3836
|
-
}), e.start("x15:slicerCaches", { "xmlns:x14":
|
|
3834
|
+
uri: E,
|
|
3835
|
+
"xmlns:x15": w
|
|
3836
|
+
}), e.start("x15:slicerCaches", { "xmlns:x14": S });
|
|
3837
3837
|
for (let n = 0; n < t.length; n++) e.empty("x14:slicerCache", { "r:id": t[n] });
|
|
3838
3838
|
e.end("x15:slicerCaches"), e.end("ext");
|
|
3839
3839
|
}
|
|
3840
3840
|
})(t, n), t.raw(r), t.end("extLst");
|
|
3841
|
-
}(t, n,
|
|
3841
|
+
}(t, n, f.relIds), n.end("workbook"), n.close();
|
|
3842
3842
|
}
|
|
3843
3843
|
}(),
|
|
3844
3844
|
new class extends U {
|
|
@@ -3851,8 +3851,8 @@ var Do = [
|
|
|
3851
3851
|
});
|
|
3852
3852
|
}
|
|
3853
3853
|
async emit(e, t) {
|
|
3854
|
-
let
|
|
3855
|
-
|
|
3854
|
+
let r = t.getXMLWriter(), i = e.model, a = e.json, o = he(i, a);
|
|
3855
|
+
sa(a, o), r.decl(), r.start("worksheet", {
|
|
3856
3856
|
xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
|
3857
3857
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
3858
3858
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
@@ -3872,8 +3872,8 @@ var Do = [
|
|
|
3872
3872
|
if (!h) return void t.empty("sheetPr", o);
|
|
3873
3873
|
t.start("sheetPr", o), i && K(t, n.getStyles().getTheme(), i, "tabColor", !1), d && t.empty("outlinePr", u), m && t.empty("pageSetUpPr", p), t.end("sheetPr");
|
|
3874
3874
|
}
|
|
3875
|
-
}(0,
|
|
3876
|
-
let i = n.getUsedRange({ features: [] }), a = i ? i.getCoords() : null, o =
|
|
3875
|
+
}(0, r, i, a), function(e, t, n, r) {
|
|
3876
|
+
let i = n.getUsedRange({ features: [] }), a = i ? i.getCoords() : null, o = Ye, s = De, c = r.directStyles, l = c ? c.length : 0;
|
|
3877
3877
|
for (let e = 0; e < l; e++) {
|
|
3878
3878
|
let t = n.getRange(c[e][0]).getCoords();
|
|
3879
3879
|
if (t.colEnd === s) {
|
|
@@ -3911,7 +3911,7 @@ var Do = [
|
|
|
3911
3911
|
colEnd: a.colEnd,
|
|
3912
3912
|
rowEnd: a.rowEnd
|
|
3913
3913
|
}).getAddress()}`), t.empty("dimension", { ref: f });
|
|
3914
|
-
}(0,
|
|
3914
|
+
}(0, r, i, a), function(e, t, n, r, i) {
|
|
3915
3915
|
let a = n.getView(), o = a.getTopLeft(), s = n.getRowHeaders().getMetrics().getIndex(o.top), c = n.getColumnHeaders().getMetrics().getIndex(o.left), l = j.cellToString({
|
|
3916
3916
|
colIndex: c,
|
|
3917
3917
|
rowIndex: s
|
|
@@ -3924,7 +3924,7 @@ var Do = [
|
|
|
3924
3924
|
let f = a.getZoomScale();
|
|
3925
3925
|
f !== 100 && (u.zoomScale = f);
|
|
3926
3926
|
let p = a.toJSON(), m = p?.zoomScales ?? {};
|
|
3927
|
-
for (let [e, t] of
|
|
3927
|
+
for (let [e, t] of ot) {
|
|
3928
3928
|
let n = m[e];
|
|
3929
3929
|
n && (u[t] = n);
|
|
3930
3930
|
}
|
|
@@ -3987,7 +3987,7 @@ var Do = [
|
|
|
3987
3987
|
v.sqref = e, (g.rangeIndex ?? 0) > 0 && (v.activeCellId = "" + g.rangeIndex);
|
|
3988
3988
|
} else _ === "A1" ? v = null : v.sqref = _;
|
|
3989
3989
|
v && t.empty("selection", v), t.end("sheetView"), t.end("sheetViews");
|
|
3990
|
-
}(0,
|
|
3990
|
+
}(0, r, i, 0, e.isSelected);
|
|
3991
3991
|
let s = ((e, t, n) => {
|
|
3992
3992
|
let r = (e, n) => {
|
|
3993
3993
|
let r = !!n?.value?.tt, i = !!n?.value?.tb, a = t + .75 * (+!!r + +!!i);
|
|
@@ -4001,19 +4001,19 @@ var Do = [
|
|
|
4001
4001
|
}, i = e.defaultRowSize ?? t, a = e.rows ? j.refsToRuns(e.rows, !1) : null, o = null, s = 0, c = a ? a.length : 0;
|
|
4002
4002
|
for (let e = 0; e < c; e++) {
|
|
4003
4003
|
let t = a[e];
|
|
4004
|
-
s += t.max - t.min + 1,
|
|
4004
|
+
s += t.max - t.min + 1, Ni(t.value) && (!o || t.max - t.min > o.max - o.min) && (o = t);
|
|
4005
4005
|
}
|
|
4006
4006
|
return o && o.max - o.min + 1 > n - s ? r(o.value.sz ?? i, o) : e.defaultRowSize === void 0 ? null : r(e.defaultRowSize, null);
|
|
4007
|
-
})(a, .75 *
|
|
4007
|
+
})(a, .75 * i.getStyles().getNormal().getBestFit().height, i.getEntireRange().getRowEnd() + 1);
|
|
4008
4008
|
(function(e, t, n, r, i) {
|
|
4009
4009
|
let a = r.defaultColSize, o = r.defaultRowSize, s = {};
|
|
4010
|
-
r.baseColSize !== void 0 && (s.baseColWidth = r.baseColSize), a !== void 0 && (s.defaultColWidth = a), i ? (s.defaultRowHeight = i.height, i.custom && (s.customHeight = "1")) : (s.defaultRowHeight = o ?? .75 * n.getRowHeaders().getMetrics().getDefaultSize(), o !== void 0 && (s.customHeight = "1")), r.rows &&
|
|
4010
|
+
r.baseColSize !== void 0 && (s.baseColWidth = r.baseColSize), a !== void 0 && (s.defaultColWidth = a), i ? (s.defaultRowHeight = i.height, i.custom && (s.customHeight = "1")) : (s.defaultRowHeight = o ?? .75 * n.getRowHeaders().getMetrics().getDefaultSize(), o !== void 0 && (s.customHeight = "1")), r.rows && Ri(j.refsToRuns(r.rows, !1)) !== null && (s.zeroHeight = "1"), i?.thickTop && (s.thickTop = "1"), i?.thickBottom && (s.thickBottom = "1");
|
|
4011
4011
|
let c = n.getOutline(), l = c.getLevelCount(V.Axis.Row);
|
|
4012
4012
|
l > 0 && (s.outlineLevelRow = l);
|
|
4013
4013
|
let u = c.getLevelCount(V.Axis.Column);
|
|
4014
4014
|
u > 0 && (s.outlineLevelCol = u), s["x14ac:dyDescent"] = "0.25", t.empty("sheetFormatPr", s);
|
|
4015
|
-
})(0,
|
|
4016
|
-
let
|
|
4015
|
+
})(0, r, i, a, s);
|
|
4016
|
+
let l = !1 === a.protection?.showFormulas ? t.getSharedStates().get("hiddenFormulaXfs") ?? null : null;
|
|
4017
4017
|
(function(e, t, n, r, i) {
|
|
4018
4018
|
let a = r.cols ? j.refsToRuns(r.cols, !0) : null, o = a ? a.length : 0;
|
|
4019
4019
|
n.getEntireRange().getColumnEnd();
|
|
@@ -4026,10 +4026,10 @@ var Do = [
|
|
|
4026
4026
|
});
|
|
4027
4027
|
};
|
|
4028
4028
|
if (o > 0 || c !== 0) {
|
|
4029
|
-
let e =
|
|
4029
|
+
let e = Li(n.getOutline(), V.Axis.Column);
|
|
4030
4030
|
t.start("cols");
|
|
4031
4031
|
for (let n = 0; n < o; n++) {
|
|
4032
|
-
let r = a[n], o = r.min + 1, c =
|
|
4032
|
+
let r = a[n], o = r.min + 1, c = De + 1;
|
|
4033
4033
|
if (o > c) continue;
|
|
4034
4034
|
let d = Math.min(r.max + 1, c);
|
|
4035
4035
|
u(o - 1), l = d + 1;
|
|
@@ -4041,10 +4041,10 @@ var Do = [
|
|
|
4041
4041
|
let h = i ? i.getHiddenXf(p.s ?? 0) : p.s;
|
|
4042
4042
|
h && (f.style = h), p.h !== void 0 && (f.hidden = 1), p.bf && (f.bestFit = 1), p.csz && (f.customWidth = 1), p.l && (f.outlineLevel = p.l), (r.min === r.max ? e.has(r.min) : p.cl) && (f.collapsed = 1), t.empty("col", f);
|
|
4043
4043
|
}
|
|
4044
|
-
u(
|
|
4044
|
+
u(De + 1), t.end("cols");
|
|
4045
4045
|
}
|
|
4046
|
-
})(0,
|
|
4047
|
-
let s = e.getSharedStates(), c = s.get("persistStrings"), l = s.get("metaCollector"), u = s.get("persistRichTypes"), d = 0, f = 0, p = n.getUsedRange(), m = 0,
|
|
4046
|
+
})(0, r, i, a, l), function(e, t, n, r, i, a, o) {
|
|
4047
|
+
let s = e.getSharedStates(), c = s.get("persistStrings"), l = s.get("metaCollector"), u = s.get("persistRichTypes"), d = 0, f = 0, p = n.getUsedRange(), m = 0, h = o?.run, g = r.rows ? j.refsToRuns(r.rows, !1) : null, _ = r.defaultRowSize ?? .75 * n.getStyles().getNormal().getBestFit().height, v = g && h ? ((e, t, n, r) => {
|
|
4048
4048
|
let i = [], a = 0, o = (e, t) => {
|
|
4049
4049
|
e <= t && i.push({
|
|
4050
4050
|
min: e,
|
|
@@ -4057,33 +4057,33 @@ var Do = [
|
|
|
4057
4057
|
o(a, r.min - 1), a = r.max + 1, r.min === t.min && r.max === t.max || i.push(r);
|
|
4058
4058
|
}
|
|
4059
4059
|
return o(a, r - 1), i;
|
|
4060
|
-
})(
|
|
4061
|
-
if (p ||
|
|
4062
|
-
let s = .75, p = r.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * s,
|
|
4063
|
-
let n =
|
|
4060
|
+
})(g, h, _, n.getEntireRange().getRowEnd() + 1) : g, y = v ? v.length : 0, b = Ri(v), x = b === null ? v?.[y - 1]?.max ?? -1 : b - 1, S = r.cols ? j.refsToRuns(r.cols, !0) : null, C = S ? S.length : 0, w = S?.[C - 1]?.max ?? -1;
|
|
4061
|
+
if (p || y > 0) {
|
|
4062
|
+
let s = .75, p = r.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * s, h = n.getStyles().getNormal().getBestFit().height * s, g = Li(n.getOutline(), V.Axis.Row), _ = (e, t) => {
|
|
4063
|
+
let n = da;
|
|
4064
4064
|
if (n.r = "" + (e + 1), n.s = void 0, n.customFormat = void 0, n.hidden = void 0, n.ht = void 0, n.customHeight = void 0, n.outlineLevel = void 0, n.collapsed = void 0, n.thickTop = void 0, n.thickBot = void 0, !t) return n;
|
|
4065
4065
|
let r = t.value;
|
|
4066
4066
|
r.s !== void 0 && (n.s = "" + (a ? a.getHiddenXf(r.s) : r.s), n.customFormat = "1"), r.h && (n.hidden = "1");
|
|
4067
4067
|
let i = r.csz ?? !1, s = r.sz ?? p;
|
|
4068
|
-
return (s !== (o?.height ??
|
|
4069
|
-
},
|
|
4070
|
-
if (
|
|
4071
|
-
for (
|
|
4072
|
-
|
|
4073
|
-
let r =
|
|
4068
|
+
return (s !== (o?.height ?? h) || i) && (n.ht = "" + s), i && (n.customHeight = "1"), r.l && (n.outlineLevel = "" + r.l), g.has(e) && (n.collapsed = "1"), r.tt && (n.thickTop = "1"), r.tb && (n.thickBot = "1"), n;
|
|
4069
|
+
}, y = 0, C = v?.[y] ?? null, T = C?.min ?? 2 ** 53 - 1, E = C?.max ?? 2 ** 53 - 1, ee = C?.value?.s, D = -1, ne = 0, O = S?.[ne] ?? null, re = O?.min ?? 2 ** 53 - 1, ie = O?.max ?? 2 ** 53 - 1, ae = O?.value?.s, oe = (e, n = !1) => {
|
|
4070
|
+
if (D !== e) {
|
|
4071
|
+
for (D !== -1 && (t.end("row"), ne !== 0 && (ne = 0, O = S?.[ne] ?? null, re = O?.min ?? 2 ** 53 - 1, ie = O?.max ?? 2 ** 53 - 1, ae = O?.value?.s)); D + 1 <= e;) {
|
|
4072
|
+
D++, C && D > E && (C = v[++y] ?? null, C ? (T = C.min, E = C.max, ee = C.value?.s) : (T = 2 ** 53 - 1, E = 2 ** 53 - 1, ee = void 0)), D < T && D < e && b === null && (D = C ? Math.min(T, e) : e), b !== null && D >= b && D < e && (D = e);
|
|
4073
|
+
let r = D < e || n && D === e, i = _(D, C && D >= T && D <= E ? C : null);
|
|
4074
4074
|
r ? t.empty("row", i) : t.start("row", i);
|
|
4075
4075
|
}
|
|
4076
|
-
if (e <
|
|
4077
|
-
let n =
|
|
4076
|
+
if (e < D) {
|
|
4077
|
+
let n = _(e, null);
|
|
4078
4078
|
t.start("row", n);
|
|
4079
4079
|
}
|
|
4080
4080
|
}
|
|
4081
4081
|
};
|
|
4082
4082
|
t.setValidationDisabled(!0), t.start("sheetData");
|
|
4083
4083
|
let A = [];
|
|
4084
|
-
A.push(
|
|
4085
|
-
let se = r.formulas,
|
|
4086
|
-
if (
|
|
4084
|
+
A.push(Bi(e, n, r.directStyles));
|
|
4085
|
+
let se = r.formulas, ce = se ? se.length : 0, de = [];
|
|
4086
|
+
if (ce > 0) {
|
|
4087
4087
|
let t = /* @__PURE__ */ new Map();
|
|
4088
4088
|
if (i.names.size > 0 && r.formulaArray) for (let e of r.formulaArray) try {
|
|
4089
4089
|
let r = n.getRange(e[0]).getCoords();
|
|
@@ -4099,7 +4099,7 @@ var Do = [
|
|
|
4099
4099
|
if (n.rowStart <= e.rowEnd && n.rowEnd >= e.rowStart && n.colStart <= e.colEnd && n.colEnd >= e.colStart) return !0;
|
|
4100
4100
|
}
|
|
4101
4101
|
return !1;
|
|
4102
|
-
}, s = e.getSharedStates().get("xlsxFormulaDialect") ??
|
|
4102
|
+
}, s = e.getSharedStates().get("xlsxFormulaDialect") ?? Ue(n.getCalculation().getNamedFormulas().toJSON(), n.getTables().getItems().map((e) => e.getName()), { count: n.getWorkbook()?.getExternalBooks().toJSON()?.length ?? 0 }), c = n.getEntireRange().getCoords(), l = [];
|
|
4103
4103
|
for (let e of n.getTables().getItems()) l.push([e.getRange().getCoords(), e.getName()]);
|
|
4104
4104
|
let u = (e, t) => {
|
|
4105
4105
|
for (let n = 0; n < l.length; n++) {
|
|
@@ -4110,11 +4110,11 @@ var Do = [
|
|
|
4110
4110
|
}, d = /* @__PURE__ */ new Set();
|
|
4111
4111
|
for (let e = 0; e < a.length; e++) d.add(`${a[e].rowStart},${a[e].colStart}`);
|
|
4112
4112
|
let f = [];
|
|
4113
|
-
for (let r = 0; r <
|
|
4113
|
+
for (let r = 0; r < ce; r++) {
|
|
4114
4114
|
let a = se[r];
|
|
4115
4115
|
try {
|
|
4116
4116
|
let e = a[0], l = n.getRange(e), p = l.getCoords(), h = a[1];
|
|
4117
|
-
if (
|
|
4117
|
+
if (Vi.test(h) && Hi(n, p, h, de)) continue;
|
|
4118
4118
|
let g = null, _ = {
|
|
4119
4119
|
rowIndex: p.rowStart,
|
|
4120
4120
|
colIndex: p.colStart
|
|
@@ -4158,7 +4158,7 @@ var Do = [
|
|
|
4158
4158
|
colStart: o,
|
|
4159
4159
|
rowEnd: i,
|
|
4160
4160
|
colEnd: o
|
|
4161
|
-
})), c =
|
|
4161
|
+
})), c = le(s.getCell().getValue());
|
|
4162
4162
|
c !== null && e(i, o, c);
|
|
4163
4163
|
}
|
|
4164
4164
|
} else l.forEach((t, n) => {
|
|
@@ -4169,16 +4169,16 @@ var Do = [
|
|
|
4169
4169
|
}
|
|
4170
4170
|
let w = h.indexOf("!") !== -1 || h.indexOf("[") !== -1;
|
|
4171
4171
|
S || l.isSingleCell() || w || o(p) || (g = "" + m++);
|
|
4172
|
-
let
|
|
4172
|
+
let T = g !== null || l.isSingleCell() ? null : x, E = [p, {
|
|
4173
4173
|
coords: p,
|
|
4174
4174
|
formula: h,
|
|
4175
4175
|
sharedId: g,
|
|
4176
4176
|
ref: e,
|
|
4177
4177
|
isDynamicRange: S,
|
|
4178
4178
|
isExcelVolatile: C,
|
|
4179
|
-
memberImage:
|
|
4179
|
+
memberImage: T
|
|
4180
4180
|
}];
|
|
4181
|
-
f.push(
|
|
4181
|
+
f.push(E);
|
|
4182
4182
|
} catch (t) {
|
|
4183
4183
|
e.log(`Could not write the formula '${a[1]}' over '${a[0]}'; those cells are written as values only. ${t}`);
|
|
4184
4184
|
continue;
|
|
@@ -4186,11 +4186,11 @@ var Do = [
|
|
|
4186
4186
|
}
|
|
4187
4187
|
A.push(f);
|
|
4188
4188
|
} else A.push([]);
|
|
4189
|
-
let
|
|
4189
|
+
let pe = r.volatile, me = pe ? pe.length : 0;
|
|
4190
4190
|
if (me > 0) {
|
|
4191
4191
|
let e = Array(me);
|
|
4192
4192
|
for (let t = 0; t < me; t++) {
|
|
4193
|
-
let r =
|
|
4193
|
+
let r = pe[t];
|
|
4194
4194
|
try {
|
|
4195
4195
|
let i = n.getRange(r).getCoords();
|
|
4196
4196
|
e[t] = [i, !0];
|
|
@@ -4221,45 +4221,45 @@ var Do = [
|
|
|
4221
4221
|
} else A.push([]);
|
|
4222
4222
|
let _e = /* @__PURE__ */ new Map();
|
|
4223
4223
|
A.push(de);
|
|
4224
|
-
let ve = e.getSharedStates().get(
|
|
4224
|
+
let ve = e.getSharedStates().get(ai)?.lastEdited, ye = ve === "3" || ve === "4" ? Ii : Fi;
|
|
4225
4225
|
n.getEntireRange().forEach((n, r) => {
|
|
4226
4226
|
let i = r.getCoords(), o = i.rowIndex, s = i.colIndex;
|
|
4227
|
-
|
|
4227
|
+
D !== o && oe(o);
|
|
4228
4228
|
let p = r.getInjectedReference(0);
|
|
4229
|
-
if (p === void 0 &&
|
|
4230
|
-
for (; s <=
|
|
4229
|
+
if (p === void 0 && ee !== void 0 && o >= T && o <= E && (p = ee), p === void 0) {
|
|
4230
|
+
for (; s <= w && s > ie;) ne++, O = S?.[ne] ?? null, re = O?.min ?? 2 ** 53 - 1, ie = O?.max ?? 2 ** 53 - 1, ae = O?.value?.s;
|
|
4231
4231
|
ae !== void 0 && s >= re && s <= ie && (p = ae);
|
|
4232
4232
|
}
|
|
4233
|
-
let m = r.getType(),
|
|
4234
|
-
|
|
4235
|
-
let
|
|
4236
|
-
me > 0 && (
|
|
4237
|
-
let
|
|
4238
|
-
ge > 0 && (
|
|
4239
|
-
let
|
|
4240
|
-
|
|
4241
|
-
let
|
|
4233
|
+
let m = r.getType(), h = null;
|
|
4234
|
+
ce > 0 && (h = r.getInjectedReference(1) ?? null);
|
|
4235
|
+
let g = !1;
|
|
4236
|
+
me > 0 && (g = r.getInjectedReference(2) ?? !1);
|
|
4237
|
+
let _ = null;
|
|
4238
|
+
ge > 0 && (_ = r.getInjectedReference(3) ?? null);
|
|
4239
|
+
let v = _?.kind === "error", y = _?.kind === "fixed", b = ua;
|
|
4240
|
+
b.r = r.getAddress(), b.s = void 0, b.t = void 0, b.cm = void 0, b.vm = void 0, a && (p = a.getHiddenXf(p ?? 0)), p !== void 0 && p !== 0 && (b.s = "" + p);
|
|
4241
|
+
let x = de.length > 0 ? r.getInjectedReference(4) ?? null : null, C = null, k = null;
|
|
4242
4242
|
switch (m) {
|
|
4243
|
-
case
|
|
4244
|
-
|
|
4243
|
+
case Bt.Boolean:
|
|
4244
|
+
C = n ? "1" : "0", k = "b";
|
|
4245
4245
|
break;
|
|
4246
|
-
case
|
|
4246
|
+
case Bt.Error:
|
|
4247
4247
|
let e = n.getCode();
|
|
4248
|
-
if (k = "e", e > 7)
|
|
4248
|
+
if (k = "e", e > 7) C = P.BuiltIn.Value.getLabel(), b.vm = "" + u.add(n);
|
|
4249
4249
|
else if (e < 1) {
|
|
4250
4250
|
let e;
|
|
4251
|
-
k = "s",
|
|
4252
|
-
} else
|
|
4251
|
+
k = "s", h ? (e = "=" + h.formula, h = null) : e = "" + n.getLabel(), C = "" + c.add(e), d++;
|
|
4252
|
+
} else C = "" + n.getLabel();
|
|
4253
4253
|
break;
|
|
4254
|
-
case
|
|
4255
|
-
|
|
4254
|
+
case Bt.Number:
|
|
4255
|
+
C = ye(n), k = null;
|
|
4256
4256
|
break;
|
|
4257
|
-
case
|
|
4258
|
-
|
|
4257
|
+
case Bt.String:
|
|
4258
|
+
C = n, h || x ? (k = "str", C = n) : (k = "s", C = "" + c.add(C), d++);
|
|
4259
4259
|
break;
|
|
4260
|
-
case
|
|
4260
|
+
case Bt.RichData:
|
|
4261
4261
|
if (n instanceof Rt) {
|
|
4262
|
-
|
|
4262
|
+
h || x ? (k = "str", C = n.getText()) : (k = "s", C = "" + c.add(function(e, t, n) {
|
|
4263
4263
|
let r = e.getRuns(), i = t.getCell().getRichText();
|
|
4264
4264
|
if (!i) return e.getText();
|
|
4265
4265
|
let a = Array(r.length);
|
|
@@ -4281,45 +4281,45 @@ var Do = [
|
|
|
4281
4281
|
}
|
|
4282
4282
|
if (n instanceof Ct) {
|
|
4283
4283
|
let e = n.toPrimitive();
|
|
4284
|
-
typeof e == "number" ?
|
|
4284
|
+
typeof e == "number" ? C = ye(e) : typeof e == "boolean" ? (k = "b", C = e ? "1" : "0") : h || x ? (k = "str", C = e) : (k = "s", C = "" + c.add(e), d++);
|
|
4285
4285
|
break;
|
|
4286
4286
|
}
|
|
4287
|
-
k = "e",
|
|
4287
|
+
k = "e", C = P.BuiltIn.Value.getLabel(), b.vm = "" + u.add(n, h?.formula ?? (x ? "" : null));
|
|
4288
4288
|
}
|
|
4289
|
-
k && (
|
|
4290
|
-
let A = !
|
|
4291
|
-
if (
|
|
4292
|
-
if (A &&
|
|
4293
|
-
let e = o ===
|
|
4294
|
-
|
|
4289
|
+
k && (b.t = k);
|
|
4290
|
+
let A = !h?.isWrapped && (_ !== null || (h?.isDynamicRange ?? !1));
|
|
4291
|
+
if (h !== null || C !== null || x !== null) {
|
|
4292
|
+
if (A && h !== null && !y && (b.cm = "" + l.registerArrayCell(v)), t.start("c", b), h) {
|
|
4293
|
+
let e = o === h.coords.rowStart && s === h.coords.colStart, n = h.formula;
|
|
4294
|
+
h.memberImage && !e && (n = h.memberImage({
|
|
4295
4295
|
rowIndex: o,
|
|
4296
4296
|
colIndex: s
|
|
4297
4297
|
}));
|
|
4298
|
-
let r, i = null, a =
|
|
4298
|
+
let r, i = null, a = h.sharedId;
|
|
4299
4299
|
if (a) {
|
|
4300
|
-
r =
|
|
4301
|
-
let e =
|
|
4302
|
-
e.colStart === s && e.rowStart === o ? (r.ref =
|
|
4303
|
-
} else A ? (r =
|
|
4304
|
-
r.ca =
|
|
4305
|
-
} else
|
|
4306
|
-
...
|
|
4300
|
+
r = pa;
|
|
4301
|
+
let e = h.coords;
|
|
4302
|
+
e.colStart === s && e.rowStart === o ? (r.ref = h.ref, r.si = a, i = h.formula) : (r.ref = void 0, r.si = a);
|
|
4303
|
+
} else A ? (r = ma, r.aca = v ? "1" : void 0, r.ref = v ? b.r : _?.ref ?? b.r, i = n) : (r = fa, i = n);
|
|
4304
|
+
r.ca = g || v || h.isExcelVolatile ? "1" : void 0, i ? (t.start("f", r), t.text(i), t.end("f")) : t.empty("f", r);
|
|
4305
|
+
} else x && t.empty("f", g ? {
|
|
4306
|
+
...x,
|
|
4307
4307
|
ca: "1"
|
|
4308
|
-
} :
|
|
4309
|
-
|
|
4310
|
-
} else f++ <
|
|
4308
|
+
} : x);
|
|
4309
|
+
C !== null && (k === "str" && C ? (t.start("v", ue.test(C) ? fe : void 0), t.text(te(C))) : (t.start("v"), C && t.text(C)), t.end("v")), t.end("c");
|
|
4310
|
+
} else f++ < zi ? t.empty("c", b) : f === 1048577 && e.warn(`Reached ${zi} style-only cells at '${b.r}'; not writing the rest.`);
|
|
4311
4311
|
}, {
|
|
4312
4312
|
injectReferences: A,
|
|
4313
4313
|
features: []
|
|
4314
|
-
}),
|
|
4314
|
+
}), D !== -1 && D >= x ? t.end("row") : oe(x, !0), t.end("sheetData"), t.setValidationDisabled(!1);
|
|
4315
4315
|
} else t.empty("sheetData");
|
|
4316
4316
|
if (d > 0) {
|
|
4317
4317
|
let e = s.get("stringsCount") ?? 0;
|
|
4318
4318
|
s.set("stringsCount", e + d);
|
|
4319
4319
|
}
|
|
4320
|
-
}(t,
|
|
4320
|
+
}(t, r, i, a, await (async (e, t) => {
|
|
4321
4321
|
let n = t ? t.length : 0;
|
|
4322
|
-
if (n === 0) return
|
|
4322
|
+
if (n === 0) return Pi;
|
|
4323
4323
|
let r = /* @__PURE__ */ new Set(), i = Array(n);
|
|
4324
4324
|
for (let e = 0; e < n; e++) {
|
|
4325
4325
|
i[e] = null;
|
|
@@ -4336,9 +4336,9 @@ var Do = [
|
|
|
4336
4336
|
} catch {}
|
|
4337
4337
|
}
|
|
4338
4338
|
let a = e.getWorkbook();
|
|
4339
|
-
if (!a) return
|
|
4340
|
-
let o = await
|
|
4341
|
-
return o.size === 0 ?
|
|
4339
|
+
if (!a) return Pi;
|
|
4340
|
+
let o = await m(a, r);
|
|
4341
|
+
return o.size === 0 ? Pi : {
|
|
4342
4342
|
names: o,
|
|
4343
4343
|
perFormula: i,
|
|
4344
4344
|
affects: (e) => {
|
|
@@ -4348,24 +4348,24 @@ var Do = [
|
|
|
4348
4348
|
return !1;
|
|
4349
4349
|
}
|
|
4350
4350
|
};
|
|
4351
|
-
})(
|
|
4351
|
+
})(i, a.formulas), l, s), function(e, t, n, r) {
|
|
4352
4352
|
let i = r.protection;
|
|
4353
4353
|
if (!i) return;
|
|
4354
4354
|
let a = {};
|
|
4355
|
-
i.sheet ||
|
|
4356
|
-
for (let e of
|
|
4357
|
-
let t =
|
|
4355
|
+
i.sheet || En(i.password ?? {}, a);
|
|
4356
|
+
for (let e of xe) {
|
|
4357
|
+
let t = re(e, i[e.key]);
|
|
4358
4358
|
t !== null && (a[e.attribute] = t);
|
|
4359
4359
|
}
|
|
4360
4360
|
t.empty("sheetProtection", a);
|
|
4361
|
-
}(0,
|
|
4361
|
+
}(0, r, 0, a), function(e, t, n, r) {
|
|
4362
4362
|
let i = r.protectedRanges, a = i ? i.length : 0;
|
|
4363
4363
|
if (a === 0) return;
|
|
4364
4364
|
let o = [];
|
|
4365
4365
|
for (let t = 0; t < a; t++) {
|
|
4366
4366
|
let n = i[t], r, a;
|
|
4367
4367
|
Array.isArray(n) ? (r = n[0], a = n[1]) : (r = n.r, a = n.v);
|
|
4368
|
-
let s =
|
|
4368
|
+
let s = Yi(r);
|
|
4369
4369
|
if (!s || !a) {
|
|
4370
4370
|
e.log("Skipping protectedRange with no range.");
|
|
4371
4371
|
continue;
|
|
@@ -4375,18 +4375,18 @@ var Do = [
|
|
|
4375
4375
|
continue;
|
|
4376
4376
|
}
|
|
4377
4377
|
let c = {};
|
|
4378
|
-
|
|
4378
|
+
En(a.password ?? {}, c), c.sqref = s, c.name = a.name, a.securityDescriptor && (c.securityDescriptor = a.securityDescriptor), o.push(c);
|
|
4379
4379
|
}
|
|
4380
4380
|
if (o.length !== 0) {
|
|
4381
4381
|
t.start("protectedRanges");
|
|
4382
4382
|
for (let e = 0; e < o.length; e++) t.empty("protectedRange", o[e]);
|
|
4383
4383
|
t.end("protectedRanges");
|
|
4384
4384
|
}
|
|
4385
|
-
}(t,
|
|
4386
|
-
let
|
|
4387
|
-
if (
|
|
4388
|
-
let e,
|
|
4389
|
-
e = Array.isArray(
|
|
4385
|
+
}(t, r, 0, a);
|
|
4386
|
+
let u = a.autoTable;
|
|
4387
|
+
if (u) {
|
|
4388
|
+
let e, n = u;
|
|
4389
|
+
e = Array.isArray(n) ? n[1] : n.v, Hr(t, r, i.getAutoTable(), e, !0);
|
|
4390
4390
|
}
|
|
4391
4391
|
(function(e, t, n, r) {
|
|
4392
4392
|
let i = r.merges ? r.merges.length : 0;
|
|
@@ -4398,57 +4398,57 @@ var Do = [
|
|
|
4398
4398
|
}
|
|
4399
4399
|
t.end("mergeCells");
|
|
4400
4400
|
}
|
|
4401
|
-
})(0,
|
|
4402
|
-
let
|
|
4401
|
+
})(0, r, 0, a);
|
|
4402
|
+
let d = function(e, t, n, r) {
|
|
4403
4403
|
let i = [], a = r.conditionals, o = a ? a.length : 0;
|
|
4404
4404
|
if (o === 0) return i;
|
|
4405
|
-
let s = e.getSharedStates(), c =
|
|
4405
|
+
let s = e.getSharedStates(), c = zr(s), l = n.getStyles().getTheme(), u = s.get(tt), d = null, f = 0;
|
|
4406
4406
|
for (let n = 0; n < o; n++) {
|
|
4407
4407
|
let r = a[n], o, s;
|
|
4408
4408
|
Array.isArray(r) ? (o = r[0], s = r[1]) : (o = r.r, s = r.v);
|
|
4409
|
-
let
|
|
4410
|
-
if (!
|
|
4409
|
+
let p = Yi(o);
|
|
4410
|
+
if (!p || !s) {
|
|
4411
4411
|
e.log("Skipping conditionalFormatting with no range.");
|
|
4412
4412
|
continue;
|
|
4413
4413
|
}
|
|
4414
|
-
let
|
|
4415
|
-
|
|
4414
|
+
let m = Qi(p), h = ea(s.scale, m, u);
|
|
4415
|
+
h !== s.scale && (s = {
|
|
4416
4416
|
...s,
|
|
4417
|
-
scale:
|
|
4417
|
+
scale: h
|
|
4418
4418
|
});
|
|
4419
|
-
let
|
|
4420
|
-
|
|
4421
|
-
guid:
|
|
4422
|
-
sqref:
|
|
4419
|
+
let g = h ? { type: h.type } : it(s.condition, Ji(p), (t, n) => e.warn(t, void 0, n));
|
|
4420
|
+
g ? (g.formulas &&= g.formulas.map((e) => $i(e, m, u)), h?.type === z.ScaleType.IconSet && Ki(h) ? (f++, i.push({
|
|
4421
|
+
guid: b(N.uuidV4),
|
|
4422
|
+
sqref: p,
|
|
4423
4423
|
priority: f,
|
|
4424
|
-
scale:
|
|
4425
|
-
})) :
|
|
4426
|
-
sqref:
|
|
4424
|
+
scale: h
|
|
4425
|
+
})) : h || !Zi(g) ? (p !== d && (d !== null && t.end("conditionalFormatting"), t.start("conditionalFormatting", {
|
|
4426
|
+
sqref: p,
|
|
4427
4427
|
pivot: s.pivot ? "1" : void 0
|
|
4428
|
-
}), d =
|
|
4429
|
-
guid:
|
|
4430
|
-
sqref:
|
|
4428
|
+
}), d = p), f++, qi(e, t, l, s, g, p, f, c, i)) : (f++, i.push({
|
|
4429
|
+
guid: b(N.uuidV4),
|
|
4430
|
+
sqref: p,
|
|
4431
4431
|
priority: f,
|
|
4432
|
-
rule:
|
|
4432
|
+
rule: g,
|
|
4433
4433
|
style: s.style,
|
|
4434
4434
|
stopIfTrue: s.stopIfTrue
|
|
4435
4435
|
}))) : s.condition || e.log("Skipping conditional format with neither a condition nor a scale.");
|
|
4436
4436
|
}
|
|
4437
4437
|
return d !== null && t.end("conditionalFormatting"), i;
|
|
4438
|
-
}(t,
|
|
4438
|
+
}(t, r, i, a), f = function(e, t, n, r) {
|
|
4439
4439
|
let i = [], a = e.getSharedStates().get(tt), o = r.validations, s = o ? o.length : 0;
|
|
4440
4440
|
if (s === 0) return i;
|
|
4441
4441
|
let c = [];
|
|
4442
4442
|
for (let t = 0; t < s; t++) {
|
|
4443
4443
|
let n = o[t], r, s;
|
|
4444
4444
|
Array.isArray(n) ? (r = n[0], s = n[1]) : (r = n.r, s = n.v);
|
|
4445
|
-
let l =
|
|
4445
|
+
let l = Yi(r);
|
|
4446
4446
|
if (!l || !s) {
|
|
4447
4447
|
e.log("Skipping dataValidation with no range.");
|
|
4448
4448
|
continue;
|
|
4449
4449
|
}
|
|
4450
4450
|
s.ext && e.warn("DataValidation extension payload is not written to xlsx; it will be lost.");
|
|
4451
|
-
let u = (t, n) => e.warn(t, void 0, n), d =
|
|
4451
|
+
let u = (t, n) => e.warn(t, void 0, n), d = me(s.condition, u), { type: f, operator: p } = d ?? {}, m = Qi(l), h = $i(d?.formula1, m, a), g = $i(d?.formula2, m, a), _ = {
|
|
4452
4452
|
type: f,
|
|
4453
4453
|
operator: p,
|
|
4454
4454
|
allowBlank: X(s.condition?.includeBlanks ?? !1),
|
|
@@ -4456,13 +4456,13 @@ var Do = [
|
|
|
4456
4456
|
showInputMessage: X(s.showPromptMessage),
|
|
4457
4457
|
showErrorMessage: X(s.showAlertMessage),
|
|
4458
4458
|
errorStyle: s.alertStyle ?? "stop",
|
|
4459
|
-
errorTitle:
|
|
4460
|
-
error:
|
|
4461
|
-
promptTitle:
|
|
4462
|
-
prompt:
|
|
4459
|
+
errorTitle: de(s.alertTitle, "errorTitle", u),
|
|
4460
|
+
error: de(s.alert, "error", u),
|
|
4461
|
+
promptTitle: de(s.promptTitle, "promptTitle", u),
|
|
4462
|
+
prompt: de(s.prompt, "prompt", u),
|
|
4463
4463
|
imeMode: s.imeMode
|
|
4464
4464
|
};
|
|
4465
|
-
|
|
4465
|
+
Xi(h) || Xi(g) ? i.push({
|
|
4466
4466
|
attrs: _,
|
|
4467
4467
|
formula1: h,
|
|
4468
4468
|
formula2: g,
|
|
@@ -4475,7 +4475,7 @@ var Do = [
|
|
|
4475
4475
|
}
|
|
4476
4476
|
if (c.length === 0) return i;
|
|
4477
4477
|
t.start("dataValidations", {
|
|
4478
|
-
...
|
|
4478
|
+
...ta(n),
|
|
4479
4479
|
count: c.length
|
|
4480
4480
|
});
|
|
4481
4481
|
for (let e = 0; e < c.length; e++) {
|
|
@@ -4483,7 +4483,7 @@ var Do = [
|
|
|
4483
4483
|
r !== void 0 || i !== void 0 ? (t.start("dataValidation", n), r !== void 0 && (t.start("formula1"), t.text(r), t.end("formula1")), i !== void 0 && (t.start("formula2"), t.text(i), t.end("formula2")), t.end("dataValidation")) : t.empty("dataValidation", n);
|
|
4484
4484
|
}
|
|
4485
4485
|
return t.end("dataValidations"), i;
|
|
4486
|
-
}(t,
|
|
4486
|
+
}(t, r, i, a);
|
|
4487
4487
|
(function(e, t, n, r) {
|
|
4488
4488
|
let i = r.hyperlinks, a = i ? i.length : 0;
|
|
4489
4489
|
if (a !== 0) {
|
|
@@ -4496,7 +4496,7 @@ var Do = [
|
|
|
4496
4496
|
}
|
|
4497
4497
|
t.end("hyperlinks");
|
|
4498
4498
|
}
|
|
4499
|
-
})(t,
|
|
4499
|
+
})(t, r, 0, a), await async function(e, t, n) {
|
|
4500
4500
|
let r = {};
|
|
4501
4501
|
n?.centerHorizontally && (r.horizontalCentered = "1"), n?.centerVertically && (r.verticalCentered = "1"), n?.printHeadings && (r.headings = "1"), n?.printGridlines && (r.gridLines = "1"), Object.keys(r).length > 0 && t.empty("printOptions", r);
|
|
4502
4502
|
let i = n?.margins;
|
|
@@ -4512,15 +4512,15 @@ var Do = [
|
|
|
4512
4512
|
t !== void 0 && (a[e] = String(t));
|
|
4513
4513
|
};
|
|
4514
4514
|
o("paperSize", n.paperSize), n.paperHeight && (a.paperHeight = n.paperHeight), n.paperWidth && (a.paperWidth = n.paperWidth), o("scale", n.scale), o("firstPageNumber", n.firstPageNumber), o("fitToWidth", n.fitToWidth), o("fitToHeight", n.fitToHeight), n.printOrder === "overThenDown" && (a.pageOrder = "overThenDown"), n.orientation && (a.orientation = n.orientation), n.ignorePrinterDefaults && (a.usePrinterDefaults = "0"), n.blackAndWhite && (a.blackAndWhite = "1"), n.draftMode && (a.draft = "1");
|
|
4515
|
-
let s =
|
|
4515
|
+
let s = Ae.find(([, e]) => e === n.printComments)?.[0];
|
|
4516
4516
|
s && (a.cellComments = s), n.useFirstPageNumber && (a.useFirstPageNumber = "1");
|
|
4517
|
-
let c =
|
|
4517
|
+
let c = ge.find(([, e]) => e === n.printErrors)?.[0];
|
|
4518
4518
|
c && (a.errors = c), o("horizontalDpi", n.horizontalDpi), o("verticalDpi", n.verticalDpi), o("copies", n.copies);
|
|
4519
4519
|
let l = n.printerSettings;
|
|
4520
4520
|
if (l) {
|
|
4521
|
-
let t = await
|
|
4521
|
+
let t = await nr({
|
|
4522
4522
|
...l,
|
|
4523
|
-
contentType: l.contentType ||
|
|
4523
|
+
contentType: l.contentType || na
|
|
4524
4524
|
}, e, "../printerSettings/printerSettings{n}.bin");
|
|
4525
4525
|
t?.relId && (a["r:id"] = t.relId);
|
|
4526
4526
|
}
|
|
@@ -4529,25 +4529,25 @@ var Do = [
|
|
|
4529
4529
|
if (u) {
|
|
4530
4530
|
let e = {};
|
|
4531
4531
|
u.differentOddEven && (e.differentOddEven = "1"), u.differentFirst && (e.differentFirst = "1"), u.ignoreSheetScale && (e.scaleWithDoc = "0"), u.ignoreSheetMargins && (e.alignWithMargins = "0");
|
|
4532
|
-
let n =
|
|
4532
|
+
let n = Oe.filter((e) => !!u[e]);
|
|
4533
4533
|
if (n.length === 0) Object.keys(e).length > 0 && t.empty("headerFooter", e);
|
|
4534
4534
|
else {
|
|
4535
4535
|
t.start("headerFooter", e);
|
|
4536
4536
|
for (let e of n) {
|
|
4537
|
-
let n =
|
|
4538
|
-
t.start(e, ue.test(n) ?
|
|
4537
|
+
let n = te(u[e]);
|
|
4538
|
+
t.start(e, ue.test(n) ? fe : void 0), t.text(n), t.end(e);
|
|
4539
4539
|
}
|
|
4540
4540
|
t.end("headerFooter");
|
|
4541
4541
|
}
|
|
4542
4542
|
}
|
|
4543
|
-
|
|
4544
|
-
}(t,
|
|
4543
|
+
ra(t, "rowBreaks", n.rowBreaks), ra(t, "colBreaks", n.columnBreaks);
|
|
4544
|
+
}(t, r, a.pageLayout), function(e, t) {
|
|
4545
4545
|
if (!t?.length) return;
|
|
4546
4546
|
let n = /* @__PURE__ */ new Map();
|
|
4547
4547
|
for (let e of t) {
|
|
4548
|
-
let t = Array.isArray(e) ? e[0] : e.r, r = Array.isArray(e) ? e[1] : e.v, i =
|
|
4548
|
+
let t = Array.isArray(e) ? e[0] : e.r, r = Array.isArray(e) ? e[1] : e.v, i = _.filter((e) => r?.includes(e));
|
|
4549
4549
|
if (i.length === 0) continue;
|
|
4550
|
-
let a = typeof t == "string" ? t :
|
|
4550
|
+
let a = typeof t == "string" ? t : Yi(t);
|
|
4551
4551
|
if (!a) continue;
|
|
4552
4552
|
let o = i.join(","), s = n.get(o);
|
|
4553
4553
|
s || (s = {
|
|
@@ -4564,11 +4564,11 @@ var Do = [
|
|
|
4564
4564
|
}
|
|
4565
4565
|
e.end("ignoredErrors");
|
|
4566
4566
|
}
|
|
4567
|
-
}(
|
|
4567
|
+
}(r, a.ignoredErrors), function(e, t, n, r) {
|
|
4568
4568
|
let i = r.movables;
|
|
4569
4569
|
if ((i ? i.length : 0) === 0 || !i.some((e) => {
|
|
4570
4570
|
let t = e.content?.type;
|
|
4571
|
-
return t === "picture" || t === "chart" || t === "shape" || t === "group" || t === "slicer" ||
|
|
4571
|
+
return t === "picture" || t === "chart" || t === "shape" || t === "group" || t === "slicer" || Be(t);
|
|
4572
4572
|
})) return;
|
|
4573
4573
|
let a = n.getMovables().getItems().filter((e) => e.getContent().getType() !== "note"), o = (e) => {
|
|
4574
4574
|
let t = e.getContent();
|
|
@@ -4585,13 +4585,13 @@ var Do = [
|
|
|
4585
4585
|
resources: n.getResources()
|
|
4586
4586
|
});
|
|
4587
4587
|
t.empty("drawing", { "r:id": l.relId });
|
|
4588
|
-
}(t,
|
|
4589
|
-
let
|
|
4588
|
+
}(t, r, i, a);
|
|
4589
|
+
let p = function(e) {
|
|
4590
4590
|
let t = e.getComments().toArray();
|
|
4591
4591
|
if (t.length === 0) return null;
|
|
4592
4592
|
let n = [];
|
|
4593
4593
|
for (let e = 0; e < t.length; e++) {
|
|
4594
|
-
let r = t[e], i =
|
|
4594
|
+
let r = t[e], i = gi(r);
|
|
4595
4595
|
i && n.push({
|
|
4596
4596
|
comment: r,
|
|
4597
4597
|
...i
|
|
@@ -4601,28 +4601,28 @@ var Do = [
|
|
|
4601
4601
|
sheet: e,
|
|
4602
4602
|
comments: n
|
|
4603
4603
|
});
|
|
4604
|
-
}(
|
|
4605
|
-
|
|
4604
|
+
}(i);
|
|
4605
|
+
ia(t, r, "legacyDrawing", oa(ca(i, a.legacyDrawing ?? null, o), p)), ia(t, r, "legacyDrawingHF", a.legacyDrawingHF ?? null), await async function(e, t, n) {
|
|
4606
4606
|
let r = n.getPicture();
|
|
4607
4607
|
if (!r) return;
|
|
4608
4608
|
let i = r.getResource(), a = await i.getExternalURI(), o;
|
|
4609
|
-
if (a) o = e.addExternal(
|
|
4609
|
+
if (a) o = e.addExternal(wr, a);
|
|
4610
4610
|
else {
|
|
4611
|
-
let t = e.getSharedStates(), n = t.get(
|
|
4612
|
-
n || (n = /* @__PURE__ */ new Map(), t.set(
|
|
4611
|
+
let t = e.getSharedStates(), n = t.get(Tr);
|
|
4612
|
+
n || (n = /* @__PURE__ */ new Map(), t.set(Tr, n));
|
|
4613
4613
|
let r = n.get(i);
|
|
4614
4614
|
if (!r) {
|
|
4615
4615
|
let e = await i.toBuffer();
|
|
4616
4616
|
r = {
|
|
4617
4617
|
bytes: new Uint8Array(e),
|
|
4618
|
-
type: await i.getType() ??
|
|
4618
|
+
type: await i.getType() ?? Pr,
|
|
4619
4619
|
index: n.size + 1
|
|
4620
4620
|
}, n.set(i, r);
|
|
4621
4621
|
}
|
|
4622
|
-
o = e.addBinary(r.bytes, r.type.mime,
|
|
4622
|
+
o = e.addBinary(r.bytes, r.type.mime, wr, `../media/image${r.index}.${r.type.ext}`, !0);
|
|
4623
4623
|
}
|
|
4624
4624
|
t.empty("picture", { "r:id": o.relId });
|
|
4625
|
-
}(t,
|
|
4625
|
+
}(t, r, i), await async function(e, t, n) {
|
|
4626
4626
|
if (n.length === 0) return;
|
|
4627
4627
|
let r = [], i = n.length;
|
|
4628
4628
|
for (let t = 0; t < i; t++) {
|
|
@@ -4630,10 +4630,10 @@ var Do = [
|
|
|
4630
4630
|
try {
|
|
4631
4631
|
let t = {
|
|
4632
4632
|
id: "",
|
|
4633
|
-
type:
|
|
4633
|
+
type: et,
|
|
4634
4634
|
name: "ctrlProp.xml",
|
|
4635
|
-
contentType:
|
|
4636
|
-
xml:
|
|
4635
|
+
contentType: _e,
|
|
4636
|
+
xml: lt(a.content.type, o)
|
|
4637
4637
|
};
|
|
4638
4638
|
s = e.addPart("embeddedPart", t, "../ctrlProps/ctrlProp{n}.xml").relId ?? void 0;
|
|
4639
4639
|
} catch (t) {
|
|
@@ -4647,7 +4647,7 @@ var Do = [
|
|
|
4647
4647
|
}
|
|
4648
4648
|
if (r.length === 0) return;
|
|
4649
4649
|
t.start("mc:AlternateContent", {
|
|
4650
|
-
"xmlns:x14":
|
|
4650
|
+
"xmlns:x14": S,
|
|
4651
4651
|
"xmlns:xdr": "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
|
|
4652
4652
|
}), t.start("mc:Choice", { Requires: "x14" }), t.start("controls");
|
|
4653
4653
|
let a = r.length;
|
|
@@ -4662,17 +4662,17 @@ var Do = [
|
|
|
4662
4662
|
t.start("controlPr", Te(i)), t.start("anchor", {
|
|
4663
4663
|
moveWithCells: s === "absolute" ? void 0 : "1",
|
|
4664
4664
|
sizeWithCells: s === "twoCell" ? "1" : void 0
|
|
4665
|
-
}),
|
|
4665
|
+
}), la(t, "from", n.anchor.tl), la(t, "to", n.anchor.br), t.end("anchor"), i.xml && t.raw(i.xml), t.end("controlPr"), t.end("control"), t.end("mc:Choice"), t.end("mc:AlternateContent");
|
|
4666
4666
|
}
|
|
4667
4667
|
t.end("controls"), t.end("mc:Choice"), t.end("mc:AlternateContent");
|
|
4668
|
-
}(t,
|
|
4668
|
+
}(t, r, o), function(e, t, n, r) {
|
|
4669
4669
|
let i = r.tables, a = i ? i.length : 0;
|
|
4670
4670
|
if (a === 0) return;
|
|
4671
4671
|
let o = n.getTables().getItems();
|
|
4672
4672
|
t.start("tableParts", { count: a });
|
|
4673
4673
|
for (let n = 0; n < a; n++) {
|
|
4674
4674
|
let r, a, s = i[n];
|
|
4675
|
-
Array.isArray(s) ? (a = s[0], r = s[1]) : (a = s.r, r = s.v),
|
|
4675
|
+
Array.isArray(s) ? (a = s[0], r = s[1]) : (a = s.r, r = s.v), Xr(e, o[n]);
|
|
4676
4676
|
let c = e.addPart("table", {
|
|
4677
4677
|
json: r,
|
|
4678
4678
|
model: o[n],
|
|
@@ -4681,50 +4681,50 @@ var Do = [
|
|
|
4681
4681
|
l["r:id"] = c.relId, t.empty("tablePart", l);
|
|
4682
4682
|
}
|
|
4683
4683
|
t.end("tableParts");
|
|
4684
|
-
}(t,
|
|
4685
|
-
let o =
|
|
4686
|
-
if (
|
|
4687
|
-
let s =
|
|
4688
|
-
if (t.start("extLst"),
|
|
4684
|
+
}(t, r, i, a), function(e, t, r, i, a) {
|
|
4685
|
+
let o = ri(r);
|
|
4686
|
+
if (i.length === 0 && a.length === 0 && o.length === 0) return;
|
|
4687
|
+
let s = r.getStyles(), l = s.getTheme();
|
|
4688
|
+
if (t.start("extLst"), i.length > 0) {
|
|
4689
4689
|
t.start("ext", {
|
|
4690
|
-
uri:
|
|
4691
|
-
"xmlns:x14":
|
|
4690
|
+
uri: st,
|
|
4691
|
+
"xmlns:x14": S
|
|
4692
4692
|
}), t.start("x14:conditionalFormattings");
|
|
4693
|
-
for (let n = 0; n <
|
|
4694
|
-
let { guid:
|
|
4695
|
-
if (t.start("x14:conditionalFormatting", { "xmlns:xm":
|
|
4696
|
-
if (
|
|
4693
|
+
for (let n = 0; n < i.length; n++) {
|
|
4694
|
+
let { guid: r, sqref: a, priority: o, scale: c, rule: u, style: d, stopIfTrue: f } = i[n];
|
|
4695
|
+
if (t.start("x14:conditionalFormatting", { "xmlns:xm": ee }), c) {
|
|
4696
|
+
if (c.type === z.ScaleType.DataBar) {
|
|
4697
4697
|
t.start("x14:cfRule", {
|
|
4698
4698
|
type: "dataBar",
|
|
4699
|
-
id:
|
|
4699
|
+
id: r
|
|
4700
4700
|
}), t.start("x14:dataBar", {
|
|
4701
|
-
minLength:
|
|
4702
|
-
maxLength:
|
|
4703
|
-
gradient:
|
|
4704
|
-
border:
|
|
4705
|
-
direction:
|
|
4706
|
-
negativeBarColorSameAsPositive:
|
|
4707
|
-
negativeBarBorderColorSameAsPositive:
|
|
4708
|
-
axisPosition:
|
|
4701
|
+
minLength: c.minLength,
|
|
4702
|
+
maxLength: c.maxLength,
|
|
4703
|
+
gradient: c.gradient ? void 0 : "0",
|
|
4704
|
+
border: c.borderColor ? "1" : void 0,
|
|
4705
|
+
direction: c.direction,
|
|
4706
|
+
negativeBarColorSameAsPositive: c.negativeFillColor ? "0" : "1",
|
|
4707
|
+
negativeBarBorderColorSameAsPositive: c.negativeBorderColor ? "0" : void 0,
|
|
4708
|
+
axisPosition: c.axisPosition
|
|
4709
4709
|
});
|
|
4710
|
-
let e =
|
|
4711
|
-
if (e.length === 0)
|
|
4712
|
-
else for (let n = 0; n < e.length; n++)
|
|
4713
|
-
|
|
4710
|
+
let e = c.stops ?? [];
|
|
4711
|
+
if (e.length === 0) Wi(t, { type: z.ColorStopType.AutoMin }), Wi(t, { type: z.ColorStopType.AutoMax });
|
|
4712
|
+
else for (let n = 0; n < e.length; n++) Wi(t, e[n]);
|
|
4713
|
+
c.borderColor && K(t, l, c.borderColor, "x14:borderColor"), c.negativeFillColor && K(t, l, c.negativeFillColor, "x14:negativeFillColor"), c.negativeBorderColor && K(t, l, c.negativeBorderColor, "x14:negativeBorderColor"), c.axisColor && K(t, l, c.axisColor, "x14:axisColor"), t.end("x14:dataBar"), t.end("x14:cfRule");
|
|
4714
4714
|
} else {
|
|
4715
4715
|
t.start("x14:cfRule", {
|
|
4716
4716
|
type: "iconSet",
|
|
4717
4717
|
priority: o,
|
|
4718
|
-
id:
|
|
4718
|
+
id: r
|
|
4719
4719
|
}), t.start("x14:iconSet", {
|
|
4720
|
-
iconSet:
|
|
4721
|
-
reverse: X(
|
|
4722
|
-
showValue: X(
|
|
4723
|
-
custom: (
|
|
4720
|
+
iconSet: c.iconSet,
|
|
4721
|
+
reverse: X(c.reverse),
|
|
4722
|
+
showValue: X(c.showValue),
|
|
4723
|
+
custom: (c.icon?.length ?? 0) > 0 ? "1" : void 0
|
|
4724
4724
|
});
|
|
4725
|
-
let e =
|
|
4726
|
-
for (let n = 0; n < e.length; n++)
|
|
4727
|
-
let n =
|
|
4725
|
+
let e = c.stops ?? [];
|
|
4726
|
+
for (let n = 0; n < e.length; n++) Wi(t, e[n]);
|
|
4727
|
+
let n = c.icon ?? [];
|
|
4728
4728
|
for (let e = 0; e < n.length; e++) t.empty("x14:cfIcon", {
|
|
4729
4729
|
iconSet: n[e].set,
|
|
4730
4730
|
iconId: n[e].id
|
|
@@ -4745,11 +4745,11 @@ var Do = [
|
|
|
4745
4745
|
operator: u.operator,
|
|
4746
4746
|
text: u.text,
|
|
4747
4747
|
timePeriod: u.timePeriod,
|
|
4748
|
-
id:
|
|
4748
|
+
id: r
|
|
4749
4749
|
});
|
|
4750
4750
|
let n = u.formulas ?? [];
|
|
4751
4751
|
for (let e = 0; e < n.length; e++) t.start("xm:f"), t.text(n[e]), t.end("xm:f");
|
|
4752
|
-
d && Object.keys(d).length > 0 &&
|
|
4752
|
+
d && Object.keys(d).length > 0 && ki(e, t, d, s, l, "x14:dxf"), t.end("x14:cfRule");
|
|
4753
4753
|
}
|
|
4754
4754
|
t.start("xm:sqref"), t.text(a), t.end("xm:sqref"), t.end("x14:conditionalFormatting");
|
|
4755
4755
|
}
|
|
@@ -4757,11 +4757,11 @@ var Do = [
|
|
|
4757
4757
|
}
|
|
4758
4758
|
if (a.length > 0) {
|
|
4759
4759
|
t.start("ext", {
|
|
4760
|
-
uri:
|
|
4761
|
-
"xmlns:x14":
|
|
4760
|
+
uri: c,
|
|
4761
|
+
"xmlns:x14": S
|
|
4762
4762
|
}), t.start("x14:dataValidations", {
|
|
4763
|
-
"xmlns:xm":
|
|
4764
|
-
...
|
|
4763
|
+
"xmlns:xm": ee,
|
|
4764
|
+
...ta(r),
|
|
4765
4765
|
count: a.length
|
|
4766
4766
|
});
|
|
4767
4767
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -4770,26 +4770,26 @@ var Do = [
|
|
|
4770
4770
|
}
|
|
4771
4771
|
t.end("x14:dataValidations"), t.end("ext");
|
|
4772
4772
|
}
|
|
4773
|
-
((e, t,
|
|
4774
|
-
if (
|
|
4775
|
-
let
|
|
4773
|
+
((e, t, r) => {
|
|
4774
|
+
if (r.slicers.length === 0) return;
|
|
4775
|
+
let i = e.addPart("slicers", r);
|
|
4776
4776
|
t.start("ext", {
|
|
4777
|
-
uri:
|
|
4778
|
-
"xmlns:x15":
|
|
4779
|
-
}), t.start("x14:slicerList", { "xmlns:x14":
|
|
4777
|
+
uri: n,
|
|
4778
|
+
"xmlns:x15": w
|
|
4779
|
+
}), t.start("x14:slicerList", { "xmlns:x14": S }), t.empty("x14:slicer", { "r:id": i.relId }), t.end("x14:slicerList"), t.end("ext");
|
|
4780
4780
|
})(e, t, {
|
|
4781
|
-
sheet:
|
|
4781
|
+
sheet: r,
|
|
4782
4782
|
slicers: o
|
|
4783
4783
|
}), t.end("extLst");
|
|
4784
|
-
}(t,
|
|
4784
|
+
}(t, r, i, d, f), function(e, t) {
|
|
4785
4785
|
let n = t.pivotTables, r = n ? n.length : 0;
|
|
4786
4786
|
for (let t = 0; t < r; t++) {
|
|
4787
4787
|
let r = n[t], i = r.part;
|
|
4788
|
-
i?.xml && (
|
|
4788
|
+
i?.xml && (ar(e, r.cacheId) ? e.addPart("pivotTable", r) : e.log(`The pivot table '${i.name ?? ""}' has no cache with id ${r.cacheId} and was dropped.`));
|
|
4789
4789
|
}
|
|
4790
4790
|
}(t, a), function(e, t) {
|
|
4791
4791
|
t && (e.addPart("comments", t), t.comments.some((e) => !e.comment.isNote()) && e.addPart("threadedComments", t));
|
|
4792
|
-
}(t,
|
|
4792
|
+
}(t, p), r.end("worksheet"), r.close();
|
|
4793
4793
|
}
|
|
4794
4794
|
}(),
|
|
4795
4795
|
new class extends U {
|
|
@@ -4815,9 +4815,9 @@ var Do = [
|
|
|
4815
4815
|
let e = t.getRuns();
|
|
4816
4816
|
for (let t = 0; t < e.length; t++) {
|
|
4817
4817
|
let r = e[t];
|
|
4818
|
-
n.start("r"), r.font && o &&
|
|
4818
|
+
n.start("r"), r.font && o && mi(n, r.font, o), ha(n, r.text), n.end("r");
|
|
4819
4819
|
}
|
|
4820
|
-
} else
|
|
4820
|
+
} else ha(n, t);
|
|
4821
4821
|
n.end("si");
|
|
4822
4822
|
}
|
|
4823
4823
|
n.end("sst"), n.close();
|
|
@@ -4841,34 +4841,34 @@ var Do = [
|
|
|
4841
4841
|
let i = n?.getColorScheme();
|
|
4842
4842
|
if (i) {
|
|
4843
4843
|
t.start(r, { name: i.getName() || "Office" });
|
|
4844
|
-
for (let e of
|
|
4844
|
+
for (let e of cr) t.start(e), W(t, n, i["get" + e.charAt(0).toUpperCase() + e.slice(1)]()), t.end(e);
|
|
4845
4845
|
t.end(r);
|
|
4846
4846
|
}
|
|
4847
4847
|
}(0, n, r, "clrScheme"), function(e, t, n, r) {
|
|
4848
|
-
n && (t.start(r, { name: n.getName() || "Office" }),
|
|
4848
|
+
n && (t.start(r, { name: n.getName() || "Office" }), ka(t, n.getMajor() ?? {}, "Calibri Light", "majorFont"), ka(t, n.getMinor() ?? {}, "Calibri", "minorFont"), t.end(r));
|
|
4849
4849
|
}(0, n, r.getFontScheme(), "fontScheme"), function(e, t, n, r, i) {
|
|
4850
4850
|
if (i?.formatSchemeXml) return void t.raw(i.formatSchemeXml);
|
|
4851
4851
|
(function(e, t, n, r, i) {
|
|
4852
4852
|
let a = { getTheme: () => r };
|
|
4853
4853
|
t.start(n, { name: "Office" }), t.start("fillStyleLst");
|
|
4854
|
-
for (let n of i.fillStyleLst)
|
|
4854
|
+
for (let n of i.fillStyleLst) _r(e, t, n, a);
|
|
4855
4855
|
t.end("fillStyleLst"), t.start("lnStyleLst");
|
|
4856
|
-
for (let n of i.lnStyleLst)
|
|
4856
|
+
for (let n of i.lnStyleLst) vr(e, t, n, a);
|
|
4857
4857
|
t.end("lnStyleLst"), t.start("effectStyleLst");
|
|
4858
|
-
for (let n of i.effectStyleLst) t.start("effectStyle"), n.length > 0 ?
|
|
4858
|
+
for (let n of i.effectStyleLst) t.start("effectStyle"), n.length > 0 ? xr(e, t, r, n) : t.empty("effectLst"), t.end("effectStyle");
|
|
4859
4859
|
t.end("effectStyleLst"), t.start("bgFillStyleLst");
|
|
4860
|
-
for (let n of i.bgFillStyleLst)
|
|
4860
|
+
for (let n of i.bgFillStyleLst) _r(e, t, n, a);
|
|
4861
4861
|
t.end("bgFillStyleLst"), t.end(n);
|
|
4862
4862
|
})(e, t, n, r, r.getFormatScheme());
|
|
4863
4863
|
}(t, n, "fmtScheme", r, i), n.end("themeElements"), function(e, t, n) {
|
|
4864
4864
|
let r = n.getObjectDefaults();
|
|
4865
|
-
if (!
|
|
4865
|
+
if (!Aa.some(([e]) => r[e])) return void t.empty("objectDefaults");
|
|
4866
4866
|
let i = { getTheme: () => n };
|
|
4867
4867
|
t.start("objectDefaults");
|
|
4868
|
-
for (let [a, o] of
|
|
4868
|
+
for (let [a, o] of Aa) {
|
|
4869
4869
|
let s = r[a];
|
|
4870
4870
|
if (!s) continue;
|
|
4871
|
-
t.start(o), t.start("spPr"),
|
|
4871
|
+
t.start(o), t.start("spPr"), br(e, i, s), t.end("spPr"), Oa(e, i, s.text);
|
|
4872
4872
|
let c = s.style;
|
|
4873
4873
|
if (c) {
|
|
4874
4874
|
let e = (e, r) => {
|
|
@@ -4888,7 +4888,7 @@ var Do = [
|
|
|
4888
4888
|
}
|
|
4889
4889
|
let o = i?.family;
|
|
4890
4890
|
if (o) {
|
|
4891
|
-
n.start("extLst"), n.start("ext", { uri:
|
|
4891
|
+
n.start("extLst"), n.start("ext", { uri: pe });
|
|
4892
4892
|
let e = {
|
|
4893
4893
|
"xmlns:thm15": "http://schemas.microsoft.com/office/thememl/2012/main",
|
|
4894
4894
|
name: o.name,
|
|
@@ -4909,8 +4909,8 @@ var Do = [
|
|
|
4909
4909
|
});
|
|
4910
4910
|
}
|
|
4911
4911
|
async emit(e, t) {
|
|
4912
|
-
let
|
|
4913
|
-
|
|
4912
|
+
let n = t.getXMLWriter(), i = e.json, a = (e.theme, e.styles);
|
|
4913
|
+
n.decl(), n.start("styleSheet", {
|
|
4914
4914
|
xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
|
4915
4915
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
4916
4916
|
"mc:Ignorable": "x14ac x16r2 xr",
|
|
@@ -4928,8 +4928,8 @@ var Do = [
|
|
|
4928
4928
|
named: I.BuiltInName.Normal
|
|
4929
4929
|
} : n[t], a = e.resolve(r), o = {};
|
|
4930
4930
|
r.named !== void 0 && (o.named = r.named), r.quotePrefix !== void 0 && (o.quotePrefix = r.quotePrefix), r.protection !== void 0 && (o.protection = r.protection);
|
|
4931
|
-
for (let e = 0; e <
|
|
4932
|
-
let t =
|
|
4931
|
+
for (let e = 0; e < _i.length; e++) {
|
|
4932
|
+
let t = _i[e];
|
|
4933
4933
|
if (r[t] === void 0 && t !== "alignment") continue;
|
|
4934
4934
|
let n = a?.[t] ?? r[t];
|
|
4935
4935
|
n !== void 0 && (o[t] = n);
|
|
@@ -4970,13 +4970,13 @@ var Do = [
|
|
|
4970
4970
|
};
|
|
4971
4971
|
e.borderMap.set(M.JSONStableStringify(t), "0"), e.borders.push(t);
|
|
4972
4972
|
}(r), function(e, t) {
|
|
4973
|
-
|
|
4973
|
+
yi(e, e.getNamedStyles().getByName(I.BuiltInName.Normal).toJSON(), t);
|
|
4974
4974
|
}(e, r);
|
|
4975
4975
|
let i = t?.named ?? N.EmptyArray;
|
|
4976
|
-
for (let t of i)
|
|
4977
|
-
for (let t of n)
|
|
4976
|
+
for (let t of i) yi(e, t, r);
|
|
4977
|
+
for (let t of n) vi(e, t, r);
|
|
4978
4978
|
return r;
|
|
4979
|
-
}(a, i, o), c = t.getSharedStates().get(
|
|
4979
|
+
}(a, i, o), c = t.getSharedStates().get(Rr), l = function(e) {
|
|
4980
4980
|
let t = e?.slicers?.styles;
|
|
4981
4981
|
if (!t) return e;
|
|
4982
4982
|
let n = { ...e.tables?.styles };
|
|
@@ -5000,7 +5000,7 @@ var Do = [
|
|
|
5000
5000
|
if (!n) return null;
|
|
5001
5001
|
let r = n.styles;
|
|
5002
5002
|
if (!r) return null;
|
|
5003
|
-
let i = [], a = /* @__PURE__ */ new Map(), o = Object.keys(r), s = [...
|
|
5003
|
+
let i = [], a = /* @__PURE__ */ new Map(), o = Object.keys(r), s = [...Mi].reverse();
|
|
5004
5004
|
for (let e of o) {
|
|
5005
5005
|
let n = r[e];
|
|
5006
5006
|
for (let r of s) {
|
|
@@ -5026,49 +5026,49 @@ var Do = [
|
|
|
5026
5026
|
for (let e = 0; e < i; e++) {
|
|
5027
5027
|
let n = r[e];
|
|
5028
5028
|
t.empty("numFmt", {
|
|
5029
|
-
numFmtId: String(e +
|
|
5029
|
+
numFmtId: String(e + Ai),
|
|
5030
5030
|
formatCode: n
|
|
5031
5031
|
});
|
|
5032
5032
|
}
|
|
5033
5033
|
t.end("numFmts");
|
|
5034
5034
|
}
|
|
5035
|
-
})(0,
|
|
5036
|
-
let a = i.fonts, o = a.length, s =
|
|
5035
|
+
})(0, n, s), function(e, t, n, i) {
|
|
5036
|
+
let a = i.fonts, o = a.length, s = n.getTheme(), c = Dt.getShared(), l = Qe(a.map((e) => ({
|
|
5037
5037
|
...e,
|
|
5038
|
-
family:
|
|
5039
|
-
}))).every((e) =>
|
|
5038
|
+
family: r(e.family, e.fallbacks, s, !0).name
|
|
5039
|
+
}))).every((e) => je(c, e));
|
|
5040
5040
|
t.start("fonts", {
|
|
5041
5041
|
count: String(o),
|
|
5042
5042
|
...l ? { "x14ac:knownFonts": "1" } : {}
|
|
5043
5043
|
});
|
|
5044
|
-
for (let
|
|
5044
|
+
for (let r of a) bi(e, t, r, n);
|
|
5045
5045
|
t.end("fonts");
|
|
5046
|
-
}(t,
|
|
5046
|
+
}(t, n, a, s), function(e, t, n, r) {
|
|
5047
5047
|
let i = r.fills, a = i.length;
|
|
5048
5048
|
t.start("fills", { count: String(a) });
|
|
5049
|
-
for (let r of i)
|
|
5049
|
+
for (let r of i) _r(e, t, r, n, !0);
|
|
5050
5050
|
t.end("fills");
|
|
5051
|
-
}(t,
|
|
5051
|
+
}(t, n, a, s), function(e, t, n, r) {
|
|
5052
5052
|
let i = r.borders, a = i.length;
|
|
5053
5053
|
t.start("borders", { count: String(a) });
|
|
5054
5054
|
let o = n.getTheme();
|
|
5055
|
-
for (let n of i)
|
|
5055
|
+
for (let n of i) Si(e, t, n, o, !1);
|
|
5056
5056
|
t.end("borders");
|
|
5057
|
-
}(t,
|
|
5057
|
+
}(t, n, a, s), function(e, t, n, r, i) {
|
|
5058
5058
|
let a = i.namedStyles, o = a.length;
|
|
5059
5059
|
t.start("cellStyleXfs", { count: String(o) });
|
|
5060
|
-
for (let r of a)
|
|
5060
|
+
for (let r of a) Ei(e, t, n, r.style ?? N.EmptyObject, i, !1);
|
|
5061
5061
|
t.end("cellStyleXfs");
|
|
5062
|
-
}(t,
|
|
5062
|
+
}(t, n, a, 0, s), function(e, t, n, r, i, a, o) {
|
|
5063
5063
|
let s = r.length, c = a?.getSources() ?? [], l = s + c.length;
|
|
5064
|
-
l >
|
|
5065
|
-
for (let a = 0; a < s; a++)
|
|
5064
|
+
l > Ti && e.warn(`The workbook has ${l.toLocaleString()} unique cell formats; Excel opens at most ${Ti.toLocaleString()}.`, void 0, "xlsx.styles.cellXfsLimit"), t.start("cellXfs", { count: String(l) });
|
|
5065
|
+
for (let a = 0; a < s; a++) Ei(e, t, n, r[a], i, !0, !1, o?.getXfComplement(a) ?? null);
|
|
5066
5066
|
for (let a = 0; a < c.length; a++) {
|
|
5067
5067
|
let s = c[a];
|
|
5068
|
-
|
|
5068
|
+
Ei(e, t, n, r[s], i, !0, !0, o?.getXfComplement(s) ?? null);
|
|
5069
5069
|
}
|
|
5070
5070
|
t.end("cellXfs");
|
|
5071
|
-
}(t,
|
|
5071
|
+
}(t, n, a, o, s, t.getSharedStates().get(Dn), t.getSharedStates().get(kn)), function(e, t, n, r, i) {
|
|
5072
5072
|
let a = i.namedStyles, o = a.length;
|
|
5073
5073
|
t.start("cellStyles", { count: String(o) });
|
|
5074
5074
|
let s = i.namedStyleMap;
|
|
@@ -5082,15 +5082,15 @@ var Do = [
|
|
|
5082
5082
|
l = o === I.BuiltInName.Normal.toLowerCase() ? 0 : n.getNamedStyles().getByName(i).getBuiltInID(), l !== null && (c.builtinId = String(l), r.customized && (c.customBuiltin = "1")), t.empty("cellStyle", c);
|
|
5083
5083
|
}
|
|
5084
5084
|
t.end("cellStyles");
|
|
5085
|
-
}(0,
|
|
5085
|
+
}(0, n, a, 0, s), function(e, t, n, r, i) {
|
|
5086
5086
|
let a = [...i?.getDxfs() ?? [], ...r?.dxfs ?? []];
|
|
5087
5087
|
if (a.length === 0) return void t.empty("dxfs", { count: "0" });
|
|
5088
5088
|
let o = n.getTheme();
|
|
5089
5089
|
t.start("dxfs", { count: String(a.length) });
|
|
5090
|
-
let s =
|
|
5091
|
-
for (let r of a) s =
|
|
5090
|
+
let s = Ai;
|
|
5091
|
+
for (let r of a) s = ki(e, t, r, n, o, "dxf", s);
|
|
5092
5092
|
t.end("dxfs");
|
|
5093
|
-
}(t,
|
|
5093
|
+
}(t, n, a, u, c), function(e, t, n, r, i, a) {
|
|
5094
5094
|
let o = r?.tables, s = o?.styles ?? null, c = s ? Object.keys(s) : null, l = c ? c.length : 0, u = {
|
|
5095
5095
|
count: String(l),
|
|
5096
5096
|
defaultTableStyle: o?.defaultTableStyle ?? "TableStyleMedium2",
|
|
@@ -5100,11 +5100,11 @@ var Do = [
|
|
|
5100
5100
|
t.start("tableStyles", u);
|
|
5101
5101
|
for (let e of c) {
|
|
5102
5102
|
let n = s[e], r = [];
|
|
5103
|
-
for (let e of
|
|
5103
|
+
for (let e of Mi) {
|
|
5104
5104
|
let t = n[e];
|
|
5105
5105
|
t && r.push([e, t]);
|
|
5106
5106
|
}
|
|
5107
|
-
let o = a?.styles?.[e], c = o ?
|
|
5107
|
+
let o = a?.styles?.[e], c = o ? ji.filter((e) => o[e]).length : 0, l = {
|
|
5108
5108
|
name: e,
|
|
5109
5109
|
pivot: n.pivot ? "1" : "0",
|
|
5110
5110
|
table: !1 === n.table ? "0" : void 0,
|
|
@@ -5118,13 +5118,13 @@ var Do = [
|
|
|
5118
5118
|
t.end("tableStyle");
|
|
5119
5119
|
}
|
|
5120
5120
|
t.end("tableStyles");
|
|
5121
|
-
}(0,
|
|
5121
|
+
}(0, n, 0, l, u, i?.slicers), function(e, t, n, r) {
|
|
5122
5122
|
let i = r?.indexedColors && r.indexedColors.length > 0, a = r?.mruColors && r.mruColors.length > 0;
|
|
5123
5123
|
if (i || a) {
|
|
5124
5124
|
if (t.start("colors"), i) {
|
|
5125
5125
|
t.start("indexedColors");
|
|
5126
5126
|
for (let e of r.indexedColors) {
|
|
5127
|
-
let n =
|
|
5127
|
+
let n = mr(e, !0);
|
|
5128
5128
|
t.empty("rgbColor", { rgb: n });
|
|
5129
5129
|
}
|
|
5130
5130
|
t.end("indexedColors");
|
|
@@ -5132,18 +5132,18 @@ var Do = [
|
|
|
5132
5132
|
if (a) {
|
|
5133
5133
|
t.start("mruColors");
|
|
5134
5134
|
for (let e of r.mruColors) {
|
|
5135
|
-
let n =
|
|
5135
|
+
let n = mr(e);
|
|
5136
5136
|
t.empty("color", { rgb: n });
|
|
5137
5137
|
}
|
|
5138
5138
|
t.end("mruColors");
|
|
5139
5139
|
}
|
|
5140
5140
|
t.end("colors");
|
|
5141
5141
|
}
|
|
5142
|
-
}(0,
|
|
5142
|
+
}(0, n, 0, i), function(e, t, n, r) {
|
|
5143
5143
|
let i = r?.slicers?.styles ?? {}, a = [], o = [];
|
|
5144
5144
|
for (let e of Object.keys(i)) {
|
|
5145
5145
|
let t = i[e], n = [];
|
|
5146
|
-
for (let e of
|
|
5146
|
+
for (let e of ji) {
|
|
5147
5147
|
let r = t[e];
|
|
5148
5148
|
r && (n.push({
|
|
5149
5149
|
type: e,
|
|
@@ -5160,8 +5160,8 @@ var Do = [
|
|
|
5160
5160
|
uri: "{46F421CA-312F-682f-3DD2-61675219B42D}",
|
|
5161
5161
|
"xmlns:x14": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"
|
|
5162
5162
|
}), t.start("x14:dxfs", { count: String(a.length) });
|
|
5163
|
-
let r = n.getTheme(), i =
|
|
5164
|
-
for (let o of a) i =
|
|
5163
|
+
let r = n.getTheme(), i = Ai;
|
|
5164
|
+
for (let o of a) i = ki(e, t, o, n, r, "dxf", i);
|
|
5165
5165
|
t.end("x14:dxfs"), t.end("ext");
|
|
5166
5166
|
}
|
|
5167
5167
|
t.start("ext", {
|
|
@@ -5186,7 +5186,7 @@ var Do = [
|
|
|
5186
5186
|
uri: "{9260A510-F301-46a8-8635-F512D64BE5F5}",
|
|
5187
5187
|
"xmlns:x15": "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"
|
|
5188
5188
|
}), t.empty("x15:timelineStyles", { defaultTimelineStyle: "TimeSlicerStyleLight1" }), t.end("ext"), t.end("extLst");
|
|
5189
|
-
}(t,
|
|
5189
|
+
}(t, n, a, i), n.end("styleSheet"), n.close();
|
|
5190
5190
|
}
|
|
5191
5191
|
}(),
|
|
5192
5192
|
new class extends U {
|
|
@@ -5200,11 +5200,11 @@ var Do = [
|
|
|
5200
5200
|
}
|
|
5201
5201
|
emit(e, t) {
|
|
5202
5202
|
let n = t.getXMLWriter(), r = e.getControls();
|
|
5203
|
-
n.decl(), n.start("FeaturePropertyBags", { xmlns:
|
|
5203
|
+
n.decl(), n.start("FeaturePropertyBags", { xmlns: Oi });
|
|
5204
5204
|
let i = [], a = 0;
|
|
5205
5205
|
for (let e = 0; e < r.length; e++) {
|
|
5206
5206
|
let t = a++;
|
|
5207
|
-
n.empty("bag", { type:
|
|
5207
|
+
n.empty("bag", { type: ja[r[e].type] ?? r[e].type });
|
|
5208
5208
|
let o = a++;
|
|
5209
5209
|
n.start("bag", { type: "XFControls" }), n.start("bagId", { k: "CellControl" }), n.text(String(t)), n.end("bagId"), n.end("bag"), i.push(a++), n.start("bag", { type: "XFComplement" }), n.start("bagId", { k: "XFControls" }), n.text(String(o)), n.end("bagId"), n.end("bag");
|
|
5210
5210
|
}
|
|
@@ -5234,14 +5234,14 @@ var Do = [
|
|
|
5234
5234
|
"xmlns:dcmitype": "http://purl.org/dc/dcmitype/",
|
|
5235
5235
|
"xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"
|
|
5236
5236
|
});
|
|
5237
|
-
let r =
|
|
5237
|
+
let r = Na(/* @__PURE__ */ new Date()), i = {
|
|
5238
5238
|
author: "SheetXL",
|
|
5239
5239
|
lastAuthor: "SheetXL",
|
|
5240
5240
|
creationDate: r,
|
|
5241
5241
|
...e.model.getProperties().toJSON(),
|
|
5242
5242
|
lastModifiedDate: r
|
|
5243
5243
|
};
|
|
5244
|
-
for (let [e, t, r] of
|
|
5244
|
+
for (let [e, t, r] of Ma) {
|
|
5245
5245
|
let a = i[t];
|
|
5246
5246
|
a != null && a !== "" && (n.start(e, r ? { "xsi:type": "dcterms:W3CDTF" } : void 0), n.text(String(a)), n.end(e));
|
|
5247
5247
|
}
|
|
@@ -5258,11 +5258,11 @@ var Do = [
|
|
|
5258
5258
|
});
|
|
5259
5259
|
}
|
|
5260
5260
|
async emit(e, t) {
|
|
5261
|
-
let n = t.getXMLWriter(), r = e.model, i = (await Nt.getDetails()).getBuildVersion(), a =
|
|
5261
|
+
let n = t.getXMLWriter(), r = e.model, i = (await Nt.getDetails()).getBuildVersion(), a = He(i), o = r.getProperties();
|
|
5262
5262
|
n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
|
|
5263
5263
|
xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
5264
5264
|
"xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
|
|
5265
|
-
}), Q(t, n, "Application", "SheetXL"), Q(t, n, "DocSecurity", "0"), Q(t, n, "ScaleCrop", "false"),
|
|
5265
|
+
}), Q(t, n, "Application", "SheetXL"), Q(t, n, "DocSecurity", "0"), Q(t, n, "ScaleCrop", "false"), Pa(t, n, r);
|
|
5266
5266
|
let s = o.getManager();
|
|
5267
5267
|
s && Q(t, n, "Manager", s);
|
|
5268
5268
|
let c = o.getCompany();
|
|
@@ -5292,8 +5292,8 @@ var Do = [
|
|
|
5292
5292
|
name: t
|
|
5293
5293
|
};
|
|
5294
5294
|
o && (s.linkTarget = o), n.start("property", s);
|
|
5295
|
-
let c =
|
|
5296
|
-
n.start(c), n.text(i === wt.Type.Date ?
|
|
5295
|
+
let c = Fa[i];
|
|
5296
|
+
n.start(c), n.text(i === wt.Type.Date ? Ia(a) : String(a)), n.end(c), n.end("property");
|
|
5297
5297
|
}
|
|
5298
5298
|
n.end("Properties"), n.close();
|
|
5299
5299
|
}
|
|
@@ -5313,11 +5313,11 @@ var Do = [
|
|
|
5313
5313
|
let d = { xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" };
|
|
5314
5314
|
if (r && (d["xmlns:xda"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"), i && (d["xmlns:xlrd"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata"), n.decl(), n.start("metadata", d), n.start("metadataTypes", { count: u }), r && n.empty("metadataType", {
|
|
5315
5315
|
name: "XLDAPR",
|
|
5316
|
-
...
|
|
5316
|
+
...La,
|
|
5317
5317
|
cellMeta: "1"
|
|
5318
5318
|
}), i && n.empty("metadataType", {
|
|
5319
5319
|
name: "XLRICHVALUE",
|
|
5320
|
-
...
|
|
5320
|
+
...La
|
|
5321
5321
|
}), n.end("metadataTypes"), r) {
|
|
5322
5322
|
n.start("futureMetadata", {
|
|
5323
5323
|
name: "XLDAPR",
|
|
@@ -5483,7 +5483,7 @@ var Do = [
|
|
|
5483
5483
|
let t = await e.workbook.fetch(r);
|
|
5484
5484
|
t.ok && t.headers.get("content-type")?.startsWith("image/") && (n = new Ft({ source: { buffer: await t.arrayBuffer() } }));
|
|
5485
5485
|
}
|
|
5486
|
-
n && (o = (await
|
|
5486
|
+
n && (o = (await Dr(t, n)).relId);
|
|
5487
5487
|
} catch {}
|
|
5488
5488
|
n.push({
|
|
5489
5489
|
address: a,
|
|
@@ -5510,7 +5510,7 @@ var Do = [
|
|
|
5510
5510
|
}
|
|
5511
5511
|
async emit(e, t) {
|
|
5512
5512
|
let n = [];
|
|
5513
|
-
for (let r of e) n.push((await
|
|
5513
|
+
for (let r of e) n.push((await Dr(t, r)).relId);
|
|
5514
5514
|
let r = t.getXMLWriter();
|
|
5515
5515
|
r.decl(), r.start("richValueRels", {
|
|
5516
5516
|
xmlns: "http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel",
|
|
@@ -5532,13 +5532,13 @@ var Do = [
|
|
|
5532
5532
|
async emit(e, t) {
|
|
5533
5533
|
let n = t.getXMLWriter(), r = e.getArrays();
|
|
5534
5534
|
n.decl(), n.start("arrayData", {
|
|
5535
|
-
xmlns:
|
|
5535
|
+
xmlns: Ra,
|
|
5536
5536
|
count: r.length
|
|
5537
5537
|
});
|
|
5538
5538
|
for (let e of r) n.start("a", {
|
|
5539
5539
|
r: e.rows,
|
|
5540
5540
|
c: e.columns > 1 ? e.columns : void 0
|
|
5541
|
-
}),
|
|
5541
|
+
}), za(n, e.items), n.end("a");
|
|
5542
5542
|
n.end("arrayData"), n.close();
|
|
5543
5543
|
}
|
|
5544
5544
|
}(),
|
|
@@ -5554,7 +5554,7 @@ var Do = [
|
|
|
5554
5554
|
async emit(e, t) {
|
|
5555
5555
|
let n = t.getXMLWriter(), { structures: r } = e.getBags();
|
|
5556
5556
|
n.decl(), n.start("spbStructures", {
|
|
5557
|
-
xmlns:
|
|
5557
|
+
xmlns: Ra,
|
|
5558
5558
|
count: r.length
|
|
5559
5559
|
});
|
|
5560
5560
|
for (let e of r) {
|
|
@@ -5579,9 +5579,9 @@ var Do = [
|
|
|
5579
5579
|
}
|
|
5580
5580
|
async emit(e, t) {
|
|
5581
5581
|
let n = t.getXMLWriter(), { bags: r, arrays: i } = e.getBags();
|
|
5582
|
-
if (n.decl(), n.start("supportingPropertyBags", { xmlns:
|
|
5582
|
+
if (n.decl(), n.start("supportingPropertyBags", { xmlns: Ra }), i.length > 0) {
|
|
5583
5583
|
n.start("spbArrays", { count: i.length });
|
|
5584
|
-
for (let e of i) n.start("a", { count: e.length }),
|
|
5584
|
+
for (let e of i) n.start("a", { count: e.length }), za(n, e), n.end("a");
|
|
5585
5585
|
n.end("spbArrays");
|
|
5586
5586
|
}
|
|
5587
5587
|
n.start("spbData", { count: r.length });
|
|
@@ -5605,7 +5605,7 @@ var Do = [
|
|
|
5605
5605
|
async emit(e, t) {
|
|
5606
5606
|
let n = t.getXMLWriter(), r = e.getRichStyles();
|
|
5607
5607
|
n.decl(), n.start("richStyleSheet", {
|
|
5608
|
-
xmlns:
|
|
5608
|
+
xmlns: Ra,
|
|
5609
5609
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
5610
5610
|
"mc:Ignorable": "x",
|
|
5611
5611
|
"xmlns:x": "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
|
|
@@ -5653,8 +5653,8 @@ var Do = [
|
|
|
5653
5653
|
"xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main"
|
|
5654
5654
|
});
|
|
5655
5655
|
let r = e.sheet, i = e.movables, a = e.jsonMovables, o = a ? a.length : 0, s = 0, c = (e) => {
|
|
5656
|
-
let t = e.content, n =
|
|
5657
|
-
if (typeof n == "number" && n > s && (s = n), t?.type === "group") for (let t of
|
|
5656
|
+
let t = e.content, n = Be(t?.type) ? t.json?.shapeId : t?.json?.sourceId;
|
|
5657
|
+
if (typeof n == "number" && n > s && (s = n), t?.type === "group") for (let t of Ja(e)) c(t);
|
|
5658
5658
|
};
|
|
5659
5659
|
for (let e = 0; e < o; e++) c(a[e]);
|
|
5660
5660
|
let l = /* @__PURE__ */ new Map(), u = t.getSharedStates(), d = u.get("uniqueIdCounter");
|
|
@@ -5671,11 +5671,11 @@ var Do = [
|
|
|
5671
5671
|
}
|
|
5672
5672
|
}
|
|
5673
5673
|
}
|
|
5674
|
-
let f =
|
|
5674
|
+
let f = ho(t, r), p = () => {
|
|
5675
5675
|
let e = (d.get(r) ?? 1) + 1;
|
|
5676
5676
|
return d.set(r, e), e;
|
|
5677
5677
|
}, m = (e) => {
|
|
5678
|
-
for (let t of
|
|
5678
|
+
for (let t of Ja(e)) {
|
|
5679
5679
|
let e = t.content?.json?.sourceId, n = typeof e == "number" && !f.bySource.has(e), r = n ? e : p();
|
|
5680
5680
|
f.assigned.set(t, r), n && f.bySource.set(e, r), t.content?.type === "group" && m(t);
|
|
5681
5681
|
}
|
|
@@ -5684,36 +5684,36 @@ var Do = [
|
|
|
5684
5684
|
let t = a[e], n = t.content?.json?.sourceId, r = l.get(t) ?? (typeof n == "number" ? n : void 0);
|
|
5685
5685
|
r === void 0 && (r = p()), f.assigned.set(t, r), typeof n != "number" || f.bySource.has(n) || f.bySource.set(n, r), t.content?.type === "group" && m(t);
|
|
5686
5686
|
}
|
|
5687
|
-
for (let e = 0; e < o; e++) await
|
|
5687
|
+
for (let e = 0; e < o; e++) await Xa(t, a[e]);
|
|
5688
5688
|
for (let e = 0; e < o; e++) {
|
|
5689
5689
|
let o = a[e], s = i[e], c = o.content?.type;
|
|
5690
|
-
if (
|
|
5690
|
+
if (Be(c)) xo(n, o);
|
|
5691
5691
|
else if (c !== "slicer" || s.getContent().getTable?.()) {
|
|
5692
|
-
switch (n.start("twoCellAnchor", { editAs: o.anchorType || "twoCell" }),
|
|
5692
|
+
switch (n.start("twoCellAnchor", { editAs: o.anchorType || "twoCell" }), bo(n, "from", o.anchor.tl), bo(n, "to", o.anchor.br), c) {
|
|
5693
5693
|
case "picture":
|
|
5694
|
-
await
|
|
5694
|
+
await Za(t, r, s, o, s.getBounds(), s.getContent().getResource());
|
|
5695
5695
|
break;
|
|
5696
5696
|
case "chart":
|
|
5697
|
-
await
|
|
5697
|
+
await $a(t, r, s, o);
|
|
5698
5698
|
break;
|
|
5699
5699
|
case "shape":
|
|
5700
|
-
await
|
|
5700
|
+
await ro(t, r, s, o, s.getBounds());
|
|
5701
5701
|
break;
|
|
5702
5702
|
case "group":
|
|
5703
|
-
await
|
|
5703
|
+
await to(t, r, s, o, s.getBounds());
|
|
5704
5704
|
break;
|
|
5705
5705
|
case "smartArt":
|
|
5706
|
-
await
|
|
5706
|
+
await io(t, r, s, o);
|
|
5707
5707
|
break;
|
|
5708
5708
|
case "slicer":
|
|
5709
|
-
await
|
|
5709
|
+
await so(t, r, s, o);
|
|
5710
5710
|
break;
|
|
5711
5711
|
case "graphicFrame":
|
|
5712
|
-
await
|
|
5712
|
+
await lo(t, r, s, o);
|
|
5713
5713
|
break;
|
|
5714
|
-
default: await
|
|
5714
|
+
default: await uo(t, r, o, s.getBounds());
|
|
5715
5715
|
}
|
|
5716
|
-
|
|
5716
|
+
qa(n, o), n.end("twoCellAnchor");
|
|
5717
5717
|
}
|
|
5718
5718
|
}
|
|
5719
5719
|
n.end("wsDr"), n.close();
|
|
@@ -5731,11 +5731,11 @@ var Do = [
|
|
|
5731
5731
|
async emit(e, t) {
|
|
5732
5732
|
let n = e.images, r = n ? n.length : 0;
|
|
5733
5733
|
if (r > 0) {
|
|
5734
|
-
let e = t.getSharedStates().get(
|
|
5734
|
+
let e = t.getSharedStates().get(Yt);
|
|
5735
5735
|
for (let i = 0; i < r; i++) {
|
|
5736
5736
|
let r = n[i], a = e?.get(r.resId);
|
|
5737
5737
|
if (a) try {
|
|
5738
|
-
await
|
|
5738
|
+
await So(t, r.id, a);
|
|
5739
5739
|
} catch (e) {
|
|
5740
5740
|
t.log(`Unable to write legacy drawing image '${r.id}'`, e);
|
|
5741
5741
|
}
|
|
@@ -5750,21 +5750,21 @@ var Do = [
|
|
|
5750
5750
|
constructor() {
|
|
5751
5751
|
super({
|
|
5752
5752
|
kind: "embeddedPart",
|
|
5753
|
-
contentType:
|
|
5753
|
+
contentType: er,
|
|
5754
5754
|
relTypeUri: ""
|
|
5755
5755
|
});
|
|
5756
5756
|
}
|
|
5757
5757
|
getContentType(e) {
|
|
5758
|
-
return e?.contentType ||
|
|
5758
|
+
return e?.contentType || er;
|
|
5759
5759
|
}
|
|
5760
5760
|
getRelTypeUri(e) {
|
|
5761
5761
|
return e?.type ?? "";
|
|
5762
5762
|
}
|
|
5763
5763
|
getPath(e) {
|
|
5764
|
-
return `./${
|
|
5764
|
+
return `./${rr(e.name)}`;
|
|
5765
5765
|
}
|
|
5766
5766
|
async emit(e, t) {
|
|
5767
|
-
await
|
|
5767
|
+
await tr(e, t);
|
|
5768
5768
|
let n = t.getXMLWriter();
|
|
5769
5769
|
n.setValidationDisabled(!0), n.raw(e.xml ?? ""), n.close();
|
|
5770
5770
|
}
|
|
@@ -5773,18 +5773,18 @@ var Do = [
|
|
|
5773
5773
|
constructor() {
|
|
5774
5774
|
super({
|
|
5775
5775
|
kind: "pivotTable",
|
|
5776
|
-
contentType:
|
|
5776
|
+
contentType: ir,
|
|
5777
5777
|
relTypeUri: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable",
|
|
5778
5778
|
path: "../pivotTables/pivotTable{n}.xml"
|
|
5779
5779
|
});
|
|
5780
5780
|
}
|
|
5781
5781
|
getContentType(e) {
|
|
5782
|
-
return e?.part?.contentType ||
|
|
5782
|
+
return e?.part?.contentType || ir;
|
|
5783
5783
|
}
|
|
5784
5784
|
async emit(e, t) {
|
|
5785
5785
|
let n = e.part;
|
|
5786
|
-
await
|
|
5787
|
-
let r =
|
|
5786
|
+
await tr(n, t);
|
|
5787
|
+
let r = ar(t, e.cacheId);
|
|
5788
5788
|
if (!r || !t.addRelationship("http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition", r)) throw Error(`Pivot table '${n.name ?? ""}' has no cache with id ${e.cacheId}.`);
|
|
5789
5789
|
let i = t.getXMLWriter();
|
|
5790
5790
|
i.setValidationDisabled(!0), i.raw(n.xml ?? ""), i.close();
|
|
@@ -5820,7 +5820,7 @@ var Do = [
|
|
|
5820
5820
|
}) : s.push({
|
|
5821
5821
|
ref: n,
|
|
5822
5822
|
authorId: a(`tc={${t.getId().toUpperCase()}}`),
|
|
5823
|
-
content:
|
|
5823
|
+
content: di(t)
|
|
5824
5824
|
});
|
|
5825
5825
|
}
|
|
5826
5826
|
n.start("authors");
|
|
@@ -5834,7 +5834,7 @@ var Do = [
|
|
|
5834
5834
|
ref: t.ref,
|
|
5835
5835
|
authorId: t.authorId,
|
|
5836
5836
|
shapeId: 0
|
|
5837
|
-
}), n.start("text"),
|
|
5837
|
+
}), n.start("text"), fi(n, t.content, c), n.end("text"), n.end("comment");
|
|
5838
5838
|
}
|
|
5839
5839
|
n.end("commentList"), n.end("comments"), n.close();
|
|
5840
5840
|
}
|
|
@@ -5858,11 +5858,11 @@ var Do = [
|
|
|
5858
5858
|
for (let e = 0; e < r.length; e++) {
|
|
5859
5859
|
let { comment: t, ref: i } = r[e];
|
|
5860
5860
|
if (t.isNote()) continue;
|
|
5861
|
-
|
|
5861
|
+
wo(n, i, t.getId(), t.getAuthor()?.getId(), t.getCreationDate(), t.getContent(), null, t.isResolved(), t.toJSON()?.mentions);
|
|
5862
5862
|
let a = t.getReplies();
|
|
5863
5863
|
for (let e = 0; e < a.length; e++) {
|
|
5864
5864
|
let r = a[e];
|
|
5865
|
-
|
|
5865
|
+
wo(n, i, r.getId(), r.getAuthor()?.getId(), r.getCreationDate(), r.getContent(), t.getId(), !1, r.toJSON().mentions);
|
|
5866
5866
|
}
|
|
5867
5867
|
}
|
|
5868
5868
|
n.end("ThreadedComments"), n.close();
|
|
@@ -5888,7 +5888,7 @@ var Do = [
|
|
|
5888
5888
|
let t = r[e];
|
|
5889
5889
|
n.empty("person", {
|
|
5890
5890
|
displayName: t.getDisplayName(),
|
|
5891
|
-
id:
|
|
5891
|
+
id: To(t.getId()),
|
|
5892
5892
|
userId: t.getUserId() ?? t.getDisplayName(),
|
|
5893
5893
|
providerId: t.getProviderId() ?? "None"
|
|
5894
5894
|
});
|
|
@@ -5915,7 +5915,7 @@ var Do = [
|
|
|
5915
5915
|
"xmlns:xr": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision",
|
|
5916
5916
|
"xmlns:xr3": "http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"
|
|
5917
5917
|
}, i = e.json, a = e.model;
|
|
5918
|
-
a.isShowHeaders(), r.id =
|
|
5918
|
+
a.isShowHeaders(), r.id = Xr(t, a), r.name = i.name?.trim(), r.displayName = i.name?.trim(), i.description && (r.comment = i.description), r.ref = e.ref, i.headerRowCount !== 1 && (r.headerRowCount = i.headerRowCount), i.totalsRowCount !== 0 && (r.totalsRowCount = i.totalsRowCount), i.totalsRowShown || a.isShowTotals() || (r.totalsRowShown = "0"), n.start("table", r), a.isShowHeaders() && Hr(t, n, a, i), Zr(t, n, a, i), $r(t, n, a, i), n.end("table"), n.close();
|
|
5919
5919
|
}
|
|
5920
5920
|
}(),
|
|
5921
5921
|
new class extends U {
|
|
@@ -5929,13 +5929,13 @@ var Do = [
|
|
|
5929
5929
|
}
|
|
5930
5930
|
async emit(e, t) {
|
|
5931
5931
|
let n = t.getXMLWriter();
|
|
5932
|
-
n.decl(), n.start("slicers",
|
|
5932
|
+
n.decl(), n.start("slicers", ni);
|
|
5933
5933
|
let r = e.slicers;
|
|
5934
5934
|
for (let e = 0; e < r.length; e++) {
|
|
5935
5935
|
let t = r[e], i = t.toJSON(), a = t.getColumnCount(), o = t.getStyle();
|
|
5936
5936
|
n.empty("slicer", {
|
|
5937
5937
|
name: t.getName?.() ?? t.getCaption(),
|
|
5938
|
-
"xr10:uid": i?.uid ??
|
|
5938
|
+
"xr10:uid": i?.uid ?? b(N.uuidV4),
|
|
5939
5939
|
cache: t.getCacheName(),
|
|
5940
5940
|
caption: t.getCaption(),
|
|
5941
5941
|
startItem: i?.startItem || void 0,
|
|
@@ -5959,25 +5959,25 @@ var Do = [
|
|
|
5959
5959
|
path: "/xl/slicerCaches/slicerCache{n}.xml"
|
|
5960
5960
|
});
|
|
5961
5961
|
}
|
|
5962
|
-
async emit(e,
|
|
5963
|
-
let
|
|
5964
|
-
if (!
|
|
5965
|
-
let
|
|
5966
|
-
|
|
5967
|
-
...
|
|
5962
|
+
async emit(e, t) {
|
|
5963
|
+
let n = e.getTable(), r = e.getColumn(), i = n ? Yr(t).get(n) : void 0;
|
|
5964
|
+
if (!n || !r || i === void 0) throw Error(`The slicer '${e.getName?.() ?? ""}' names a table that was not written.`);
|
|
5965
|
+
let a = e.toJSON(), o = e.getSortOrder(), s = e.getCrossFilter(), c = t.getXMLWriter();
|
|
5966
|
+
c.decl(), c.start("slicerCacheDefinition", {
|
|
5967
|
+
...ni,
|
|
5968
5968
|
name: e.getCacheName(),
|
|
5969
|
-
"xr10:uid":
|
|
5970
|
-
sourceName:
|
|
5971
|
-
}),
|
|
5972
|
-
uri:
|
|
5973
|
-
"xmlns:x15":
|
|
5974
|
-
}),
|
|
5975
|
-
tableId:
|
|
5976
|
-
column:
|
|
5977
|
-
sortOrder:
|
|
5978
|
-
customListSort:
|
|
5979
|
-
crossFilter:
|
|
5980
|
-
}),
|
|
5969
|
+
"xr10:uid": b(N.uuidV4),
|
|
5970
|
+
sourceName: r.getName()
|
|
5971
|
+
}), c.start("extLst"), c.start("x:ext", {
|
|
5972
|
+
uri: Pe,
|
|
5973
|
+
"xmlns:x15": w
|
|
5974
|
+
}), c.empty("x15:tableSlicerCache", {
|
|
5975
|
+
tableId: i,
|
|
5976
|
+
column: r.getIndex() + 1,
|
|
5977
|
+
sortOrder: o === "ascending" ? void 0 : ti[o],
|
|
5978
|
+
customListSort: a?.disabledCustomListSort ? "0" : void 0,
|
|
5979
|
+
crossFilter: s === "showItemsWithDataAtTop" ? void 0 : s
|
|
5980
|
+
}), c.end("x:ext"), c.end("extLst"), c.end("slicerCacheDefinition"), c.close();
|
|
5981
5981
|
}
|
|
5982
5982
|
}(),
|
|
5983
5983
|
new class extends U {
|
|
@@ -6037,7 +6037,7 @@ var Do = [
|
|
|
6037
6037
|
let i = r.length;
|
|
6038
6038
|
for (let t = 0; t < i; t++) {
|
|
6039
6039
|
let [i, a] = r[t], o = a.length;
|
|
6040
|
-
for (let t = 0; t < o; t++)
|
|
6040
|
+
for (let t = 0; t < o; t++) Do(e, n, i + t, a.at(t));
|
|
6041
6041
|
}
|
|
6042
6042
|
e.end("row");
|
|
6043
6043
|
}
|
|
@@ -6049,13 +6049,13 @@ var Do = [
|
|
|
6049
6049
|
}(n, e), n.end("externalBook"), n.end("externalLink"), n.close();
|
|
6050
6050
|
}
|
|
6051
6051
|
}()
|
|
6052
|
-
],
|
|
6052
|
+
], ko = (e) => {
|
|
6053
6053
|
let t = e.getPart("xl/_rels/workbook.xml.rels");
|
|
6054
6054
|
if (!t) return null;
|
|
6055
6055
|
let n = /* @__PURE__ */ new Map();
|
|
6056
|
-
for (let e of
|
|
6056
|
+
for (let e of Re(t.data)) {
|
|
6057
6057
|
if (!e.id) continue;
|
|
6058
|
-
let t = e.external ? e.target :
|
|
6058
|
+
let t = e.external ? e.target : on(e.target.startsWith("/") ? e.target : "xl/" + e.target);
|
|
6059
6059
|
n.set(e.id, {
|
|
6060
6060
|
type: e.type,
|
|
6061
6061
|
target: t,
|
|
@@ -6063,22 +6063,22 @@ var Do = [
|
|
|
6063
6063
|
});
|
|
6064
6064
|
}
|
|
6065
6065
|
return n;
|
|
6066
|
-
},
|
|
6066
|
+
}, Ao = (e) => {
|
|
6067
6067
|
let t = e.getPart("xl/workbook.xml");
|
|
6068
6068
|
return t ? new TextDecoder("utf-8").decode(t.data) : null;
|
|
6069
|
-
},
|
|
6070
|
-
let t =
|
|
6069
|
+
}, jo = (e) => {
|
|
6070
|
+
let t = Mo.get(e);
|
|
6071
6071
|
if (t !== void 0) return t;
|
|
6072
6072
|
let n = e.getPart("xl/workbook.xml"), r = n ? new TextDecoder("utf-8").decode(n.data) : null;
|
|
6073
|
-
return
|
|
6074
|
-
},
|
|
6073
|
+
return Mo.set(e, r), r;
|
|
6074
|
+
}, Mo = /* @__PURE__ */ new WeakMap(), No = async (t, n) => {
|
|
6075
6075
|
await St.load();
|
|
6076
|
-
let
|
|
6077
|
-
for (let e of
|
|
6078
|
-
let
|
|
6076
|
+
let r = new Tn();
|
|
6077
|
+
for (let e of Oo) r.register(e);
|
|
6078
|
+
let i = Po, a = Xt.createUint8Array({
|
|
6079
6079
|
lastModDate: new Date(1899, 11, 29, 19, 0, 0),
|
|
6080
|
-
level:
|
|
6081
|
-
}),
|
|
6080
|
+
level: i
|
|
6081
|
+
}), o = e.includes(n?.format) ? D(t) : null, s = /* @__PURE__ */ new Map(), c = o ? ((e) => {
|
|
6082
6082
|
let t = e.getPart("xl/workbook.xml");
|
|
6083
6083
|
if (!t) return null;
|
|
6084
6084
|
let n = new TextDecoder("utf-8").decode(t.data.subarray(0, 4096)).match(/<fileVersion\b([^>]*)\/?>/);
|
|
@@ -6086,34 +6086,34 @@ var Do = [
|
|
|
6086
6086
|
let r = {};
|
|
6087
6087
|
for (let e of n[1].matchAll(/([\w:]+)="([^"]*)"/g)) r[e[1]] = e[2];
|
|
6088
6088
|
return Object.keys(r).length > 0 ? r : null;
|
|
6089
|
-
})(
|
|
6090
|
-
|
|
6091
|
-
let
|
|
6092
|
-
let t =
|
|
6089
|
+
})(o) : null;
|
|
6090
|
+
c && (n?.macroEnabled || delete c.codeName, s.set(ai, c));
|
|
6091
|
+
let l = o ? ((e) => {
|
|
6092
|
+
let t = jo(e)?.match(/<calcPr\b[^>]*?\bcalcId="([^"]*)"/);
|
|
6093
6093
|
return t ? t[1] : null;
|
|
6094
|
-
})(
|
|
6095
|
-
|
|
6096
|
-
let
|
|
6097
|
-
let t =
|
|
6094
|
+
})(o) : null;
|
|
6095
|
+
l !== null && s.set("calcId", l);
|
|
6096
|
+
let u = o ? ((e) => {
|
|
6097
|
+
let t = jo(e)?.match(/<ext\b[^>]*>\s*<xcalcf:calcFeatures\b[\s\S]*?<\/xcalcf:calcFeatures>\s*<\/ext>/);
|
|
6098
6098
|
return t ? t[0] : null;
|
|
6099
|
-
})(
|
|
6100
|
-
|
|
6101
|
-
let
|
|
6102
|
-
let t =
|
|
6099
|
+
})(o) : null;
|
|
6100
|
+
u !== null && s.set("calcFeatures", u);
|
|
6101
|
+
let d = o ? ((e) => {
|
|
6102
|
+
let t = Ao(e);
|
|
6103
6103
|
if (!t) return null;
|
|
6104
6104
|
let n = /<externalReferences\b[^>]*>([\s\S]*?)<\/externalReferences>/.exec(t);
|
|
6105
6105
|
if (!n) return null;
|
|
6106
6106
|
let r = [...n[1].matchAll(/<externalReference\b[^>]*\sr:id="([^"]*)"/g)].map((e) => e[1]);
|
|
6107
6107
|
if (r.length === 0) return null;
|
|
6108
|
-
let i =
|
|
6108
|
+
let i = ko(e);
|
|
6109
6109
|
return i ? r.map((e) => {
|
|
6110
6110
|
let t = i.get(e);
|
|
6111
6111
|
return t && !t.external ? t.target : null;
|
|
6112
6112
|
}) : null;
|
|
6113
|
-
})(
|
|
6114
|
-
|
|
6115
|
-
let
|
|
6116
|
-
let t =
|
|
6113
|
+
})(o) : null;
|
|
6114
|
+
d && s.set(li, d);
|
|
6115
|
+
let f = o ? ((e) => {
|
|
6116
|
+
let t = Ao(e), n = t ? ko(e) : null;
|
|
6117
6117
|
if (!t || !n) return null;
|
|
6118
6118
|
let r = /* @__PURE__ */ new Map();
|
|
6119
6119
|
for (let e of t.matchAll(/<sheet\b([^>]*)\/?>/g)) {
|
|
@@ -6123,32 +6123,32 @@ var Do = [
|
|
|
6123
6123
|
a && !a.external && a.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" && r.set(parseInt(t, 10), a.target);
|
|
6124
6124
|
}
|
|
6125
6125
|
return r.size > 0 ? r : null;
|
|
6126
|
-
})(
|
|
6127
|
-
|
|
6128
|
-
let
|
|
6126
|
+
})(o) : null;
|
|
6127
|
+
f && s.set(oi, f), s.set(Yt, /* @__PURE__ */ new Map()), s.set(si, n?.macroEnabled ?? !1);
|
|
6128
|
+
let p = [], m = new Cn(a, r, {
|
|
6129
6129
|
strictDuplicateChildren: !0,
|
|
6130
|
-
onPartEmitted:
|
|
6130
|
+
onPartEmitted: n?.onPartEmitted,
|
|
6131
6131
|
onWarning: (e, t, n) => {
|
|
6132
|
-
|
|
6132
|
+
p.push([
|
|
6133
6133
|
e,
|
|
6134
6134
|
t,
|
|
6135
6135
|
n
|
|
6136
6136
|
]);
|
|
6137
6137
|
},
|
|
6138
|
-
mapState:
|
|
6139
|
-
sourcePackage:
|
|
6140
|
-
macroEnabled:
|
|
6141
|
-
template:
|
|
6138
|
+
mapState: s,
|
|
6139
|
+
sourcePackage: o,
|
|
6140
|
+
macroEnabled: n?.macroEnabled ?? !1,
|
|
6141
|
+
template: n?.template ?? !1
|
|
6142
6142
|
});
|
|
6143
|
-
|
|
6144
|
-
let
|
|
6145
|
-
if (
|
|
6143
|
+
m.addPart("workbook", t, "/xl/workbook.xml"), await m.waitEmit(), m.addPart("propsCore", { model: t }), m.addPart("propsApp", { model: t }), t.getProperties().getCustom().length > 0 && m.addPart("propsCustom", { model: t });
|
|
6144
|
+
let h = await m.build(), g = n?.progress?.onWarning;
|
|
6145
|
+
if (p.length && g) {
|
|
6146
6146
|
let e = /* @__PURE__ */ new Set();
|
|
6147
|
-
for (let [
|
|
6148
|
-
let a = i ??
|
|
6149
|
-
e.has(a) || (e.add(a),
|
|
6147
|
+
for (let [t, r, i] of p) {
|
|
6148
|
+
let a = i ?? t;
|
|
6149
|
+
e.has(a) || (e.add(a), g.call(n.progress, t, r));
|
|
6150
6150
|
}
|
|
6151
6151
|
}
|
|
6152
|
-
return
|
|
6153
|
-
},
|
|
6154
|
-
export {
|
|
6152
|
+
return h.byteOffset === 0 && h.byteLength === h.buffer.byteLength ? h.buffer : h.slice().buffer;
|
|
6153
|
+
}, Po = 1;
|
|
6154
|
+
export { No as writeXLSX };
|