@sheetxl/io-xlsx 0.8.0-beta.20 → 0.8.0-beta.21

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.
Files changed (22) hide show
  1. package/browser/esm/{D2872f7aTugYxhht.mjs → BCQs67LTVZ1xG82R.mjs} +2 -2
  2. package/browser/esm/{CSOuRlSN9bhykqDr.mjs → B_Jfq-O7tght6ixL.mjs} +683 -679
  3. package/browser/esm/{C16bEh6IrUpJONhS.mjs → BoTT_U96McOdkuId.mjs} +2 -2
  4. package/browser/esm/{S4Uq85YdUb6O5Pz0.mjs → CGQXv_OxqwXL3F8q.mjs} +1 -1
  5. package/browser/esm/{D8CQKL3Y3CMFOPqD.mjs → CNAv3IL7hhyvzLaF.mjs} +300 -296
  6. package/browser/esm/{DpPFQ7-tBwVyjvWr.mjs → CROAqUhKnVtkbBSm.mjs} +1 -1
  7. package/browser/esm/{CPK1-z95jtLOfCXG.mjs → D74i1p_CJmHw8HKb.mjs} +2 -2
  8. package/browser/esm/{Bw35-W8cnzxxvqQy.mjs → DPz0IeW70Nh4n8Wz.mjs} +4 -4
  9. package/browser/esm/{D7ogsrtXfjU5NW7r.mjs → D_5T8KKyirVCR3RO.mjs} +2 -2
  10. package/browser/esm/{RFSuXvJ9sgsaA2LC.mjs → cG4z0eDMlE49HJvD.mjs} +4 -4
  11. package/browser/esm/{PgUWs0pPSCSFYJtU.mjs → f-Z5vnvNnzj-0ujR.mjs} +2 -2
  12. package/browser/esm/index.mjs +2 -2
  13. package/node/esm/{CPhiu1T7tl-leKh2.mjs → Bl5eH7YPk64NxkkI.mjs} +2 -2
  14. package/node/esm/{BOAucs-qLpjtUOcZ.mjs → C0q_ulF7hl9zoVQ8.mjs} +1 -1
  15. package/node/esm/{D2vDZOgLcv-YiWnB.mjs → CT1rO7_YWIvsG9hs.mjs} +272 -268
  16. package/node/esm/{C6eSWtTkyDQKbQdT.mjs → CUPNuRm5G47rulaW.mjs} +2 -2
  17. package/node/esm/{BSHqfcsR9hY-JB30.mjs → CoNllGglhnzJ6EJ4.mjs} +1 -1
  18. package/node/esm/{Qn2Bv4QG3mOLiJHh.mjs → CqhoZ8-FRZjS3p-D.mjs} +445 -441
  19. package/node/esm/{DGuQIj077oygCTGu.mjs → TN8KqnRPY-7Ln4Ez.mjs} +2 -2
  20. package/node/esm/{DFw0ibBUmPyd-wey.mjs → ZNTwnevSmMslvfiW.mjs} +4 -4
  21. package/node/esm/index.mjs +4 -4
  22. package/package.json +3 -3
@@ -1,22 +1,22 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.20
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.21
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { $n as t, $t as e, Ar as n, At as o, Bt as s, C as a, Cn as i, Cr as l, D as c, Dn as d, Dr as m, Dt as p, Er as f, Et as h, Fn as u, Ft as g, G as y, Gn as x, Gt as v, H as w, Hn as S, In as b, Ir as C, J as k, Jn as T, Jt as I, K as R, Kt as F, Mn as E, Mr as M, Mt as P, Nr as A, O as D, On as L, Or as _, Ot as N, Pr as $, Pt as B, Q as O, Qt as V, S as W, Sr as z, U as j, Un as X, Vt as H, W as U, X as q, Xt as J, Y as K, Yt as Y, Z, Zt as Q, _n as tt, _r as et, _t as nt, a as ot, an as rt, at as st, b as at, bn as it, c as lt, cn as ct, cr as dt, d as mt, dr as pt, dt as ft, en as ht, et as ut, fr as gt, ft as yt, g as xt, gn as vt, gr as wt, gt as St, h as bt, hn as Ct, hr as kt, ht as Tt, i as It, ir as Rt, jr as Ft, kn as Et, kr as Mt, kt as Pt, l as At, ln as Dt, lr as Lt, lt as _t, m as Nt, mr as $t, mt as Bt, nr as Ot, o as Vt, on as Wt, or as zt, pn as jt, pr as Xt, pt as Ht, q as Ut, qn as Gt, qt, r as Jt, rr as Kt, rt as Yt, s as Zt, sn as Qt, st as te, tt as ee, u as ne, un as oe, ur as re, ut as se, vn as ae, vr as ie, w as le, wn as ce, wr as de, x as me, xn as pe, xr as fe, y as he, yt as ue, zn as ge, zt as ye } from "./BOAucs-qLpjtUOcZ.mjs";
8
- import { EXCEL_FORMAT_KEYS as xe } from "./index.mjs";
9
- import { a as ve, c as we, i as Se, l as be, n as Ce, t as ke } from "./DGuQIj077oygCTGu.mjs";
7
+ import { $n as t, $t as e, Ar as n, At as o, Bt as s, C as a, Cn as i, Cr as l, D as c, Dn as d, Dr as m, Dt as p, Er as f, Et as h, Fn as u, Ft as g, G as x, Gn as y, Gt as v, H as w, Hn as S, In as b, Ir as C, J as k, Jn as T, Jt as I, K as R, Kt as F, Mn as E, Mr as M, Mt as P, Nr as A, O as D, On as L, Or as _, Ot as N, Pr as $, Pt as B, Q as O, Qt as V, S as W, Sr as z, U as j, Un as X, Vt as H, W as U, X as q, Xt as J, Y as K, Yt as Y, Z, Zt as Q, _n as tt, _r as et, _t as nt, a as ot, an as rt, at as st, b as at, bn as it, c as lt, cn as ct, cr as dt, d as mt, dr as pt, dt as ft, en as ht, et as ut, fr as gt, ft as xt, g as yt, gn as vt, gr as wt, gt as St, h as bt, hn as Ct, hr as kt, ht as Tt, i as It, ir as Rt, jr as Ft, kn as Et, kr as Mt, kt as Pt, l as At, ln as Dt, lr as Lt, lt as _t, m as Nt, mr as $t, mt as Bt, nr as Ot, o as Vt, on as Wt, or as zt, pn as jt, pr as Xt, pt as Ht, q as Ut, qn as Gt, qt, r as Jt, rr as Kt, rt as Yt, s as Zt, sn as Qt, st as te, tt as ee, u as ne, un as oe, ur as re, ut as se, vn as ae, vr as ie, w as le, wn as ce, wr as de, x as me, xn as pe, xr as fe, y as he, yt as ue, zn as ge, zt as xe } from "./C0q_ulF7hl9zoVQ8.mjs";
8
+ import { EXCEL_FORMAT_KEYS as ye } from "./index.mjs";
9
+ import { a as ve, c as we, i as Se, l as be, n as Ce, t as ke } from "./TN8KqnRPY-7Ln4Ez.mjs";
10
10
  import { BufferUtils as Te, OverlappingRange as Ie, RangeAxis as Re } from "@sheetxl/utils";
11
11
  import { AddressUtils as Fe, BufferUtils as Ee, Color as Me, CommonUtils as Pe, CoordUtils as Ae, FormulaError as De, FormulaText as Le, Hyperlink as _e, IBorders as Ne, ICellStyle as $e, IColor as Be, ICondition as Oe, IConditionalFormat as Ve, ICustomProperty as We, IEffect as ze, IFill as je, IFont as Xe, IFontCollection as He, IRange as Ue, IShape as Ge, ISheet as qe, IStroke as Je, ITextFrame as Ke, IWorkbookView as Ye, IWorksheetView as Ze, LicenseManager as Qe, NumberFormat as tn, Resource as en, RichArray as nn, RichRecord as on, RichText as rn, Scalar as sn, ScalarType as an, ShapeStyleUtils as ln, pivotCellFormatsOf as cn } from "@sheetxl/sdk";
12
12
  import { BlobWriter as dn, TextReader as mn, TextWriter as pn, Uint8ArrayReader as fn, Uint8ArrayWriter as hn, ZipReader as un, ZipWriter as gn } from "@zip.js/zip.js";
13
- var yn = [
13
+ var xn = [
14
14
  ["%EntityServiceId", "i"],
15
15
  ["_DisplayString", "s"],
16
16
  ["%EntityId", "s"],
17
17
  ["%EntityCulture", "s"],
18
18
  ["_Icon", "s"]
19
- ], xn = [["%cvi", "r"]], vn = [
19
+ ], yn = [["%cvi", "r"]], vn = [
20
20
  ["ShowInCardView", "0"],
21
21
  ["ShowInDotNotation", "0"],
22
22
  ["ShowInAutoComplete", "0"],
@@ -821,7 +821,7 @@ function lo(t, e, n, o, r) {
821
821
  }
822
822
  const l = Ro(o, e, i, t.rows, !1);
823
823
  if (t.cols === r && t.rows === l) return t;
824
- const c = [], d = yo(r, e, !0), m = yo(l, e, !1), p = o;
824
+ const c = [], d = xo(r, e, !0), m = xo(l, e, !1), p = o;
825
825
  for (const t of d) p.push(t), p.push({
826
826
  ...t,
827
827
  value: 0
@@ -832,21 +832,21 @@ function lo(t, e, n, o, r) {
832
832
  });
833
833
  const f = new Ie.IteratorInstance(p, { axis: Re.Column }), h = e.rowEnd, u = e.colEnd, g = (t, e) => {
834
834
  t.rowStart >= h || t.colStart >= u || c.push([t, e]);
835
- }, y = /* @__PURE__ */ new Map(), x = (t) => {
836
- let e = y.get(t);
835
+ }, x = /* @__PURE__ */ new Map(), y = (t) => {
836
+ let e = x.get(t);
837
837
  if (void 0 === e) {
838
838
  const o = n.getElementJSON(t);
839
- e = o?.borders ? o : null, y.set(t, e);
839
+ e = o?.borders ? o : null, x.set(t, e);
840
840
  }
841
841
  return e;
842
842
  }, v = (t, e, o) => {
843
- const r = x(e);
843
+ const r = y(e);
844
844
  if (!r || Ae.isEqualRanges(t, o)) return e;
845
845
  let s = mo(r.borders, t, o, !0);
846
846
  s && (s = mo(s, t, o, !1));
847
847
  const a = { ...r };
848
848
  return s ? a.borders = s : delete a.borders, n.getElementID(a, n.getElementComplement?.(e)) ?? e;
849
- }, w = (t, e, n, o, r) => e === o && (!x(o) || v(t, e, r) === v(n, o, r)), S = /* @__PURE__ */ new Map(), b = (t, e) => {
849
+ }, w = (t, e, n, o, r) => e === o && (!y(o) || v(t, e, r) === v(n, o, r)), S = /* @__PURE__ */ new Map(), b = (t, e) => {
850
850
  if (e.rowStart >= h || e.colStart >= u) return;
851
851
  const n = S.get(t);
852
852
  n ? n.push(e) : S.set(t, [e]);
@@ -875,7 +875,7 @@ function lo(t, e, n, o, r) {
875
875
  }) : b(s, n) : w(i, a, s, r, n) || b(s, n);
876
876
  }
877
877
  for (const [t, e] of S) {
878
- const n = xo(e);
878
+ const n = yo(e);
879
879
  for (let e = 0; e < n.length; e++) {
880
880
  const o = {
881
881
  rowStart: n[e].rowStart,
@@ -1024,7 +1024,7 @@ function go(t) {
1024
1024
  }
1025
1025
  return e;
1026
1026
  }
1027
- function yo(t, e, n) {
1027
+ function xo(t, e, n) {
1028
1028
  const o = n ? e.rowStart : e.colStart, r = n ? e.rowEnd : e.colEnd;
1029
1029
  return t.map((t) => {
1030
1030
  const e = {
@@ -1036,7 +1036,7 @@ function yo(t, e, n) {
1036
1036
  return void 0 !== t.value && (e.value = t.value), e;
1037
1037
  });
1038
1038
  }
1039
- function xo(t) {
1039
+ function yo(t) {
1040
1040
  let e = [...t];
1041
1041
  if (t.length <= 1) return e;
1042
1042
  let n = !0, o = 0;
@@ -1338,7 +1338,7 @@ var Fo = class {
1338
1338
  const r = o.getKind(), i = wn(r), l = r.getMeta(), c = l?.card, d = o.getOwnMeta() ?? {}, m = o.getValues(), p = [], f = [];
1339
1339
  for (const o of r.getProperties()) {
1340
1340
  const { name: h } = o;
1341
- if (x.has(h)) {
1341
+ if (y.has(h)) {
1342
1342
  switch (p.push([h, "_Icon" === h ? "s" : "spb"]), h) {
1343
1343
  case "_Icon":
1344
1344
  f.push(l?.icon ?? "");
@@ -1408,14 +1408,14 @@ var Fo = class {
1408
1408
  return t.addValue(t.structureFor(i, p), f);
1409
1409
  }, l = (e) => {
1410
1410
  const n = wn(e.getKind());
1411
- if ("_linkedentitycore" === n) return t.addKeyFlags("_linkedentity", "%cvi", vn), t.addValue(t.structureFor("_linkedentity", xn), ["" + i(e)]);
1411
+ if ("_linkedentitycore" === n) return t.addKeyFlags("_linkedentity", "%cvi", vn), t.addValue(t.structureFor("_linkedentity", yn), ["" + i(e)]);
1412
1412
  if ("_linkedentity2core" === n) {
1413
1413
  i(e);
1414
1414
  const n = (t) => {
1415
1415
  const n = e.getProperty(t);
1416
1416
  return null == n ? "" : "" + n;
1417
1417
  };
1418
- return t.addValue(t.structureFor("_linkedentity2", yn), [
1418
+ return t.addValue(t.structureFor("_linkedentity2", xn), [
1419
1419
  n("%EntityServiceId"),
1420
1420
  n("_DisplayString"),
1421
1421
  n("%EntityId"),
@@ -1789,7 +1789,7 @@ function qo(t, e, n, o, r = !1, s = !1) {
1789
1789
  }), n.type !== je.Type.Image || r) if (n.type !== je.Type.Group || r) if (n.type === je.Type.None || n.type === je.Type.Image || n.type === je.Type.Group) r ? e.empty("patternFill", { patternType: "none" }) : e.empty("noFill");
1790
1790
  else if (n.type === je.Type.Solid) {
1791
1791
  const t = n;
1792
- r ? e.start("patternFill", { patternType: "solid" }) : e.start("solidFill"), t.color && (r ? No(e, a, t.color, "fgColor") : Lo(e, a, t.color)), r ? e.end("patternFill") : e.end("solidFill");
1792
+ r ? e.start("patternFill", { patternType: "solid" }) : e.start("solidFill"), t.color && (r ? No(e, a, t.color, s ? "bgColor" : "fgColor") : Lo(e, a, t.color)), r ? e.end("patternFill") : e.end("solidFill");
1793
1793
  } else if (n.type === je.Type.Pattern) {
1794
1794
  const t = n, o = t.patternType || "solid";
1795
1795
  e.start("patternFill", { patternType: o });
@@ -2007,9 +2007,9 @@ var Jo = (t, e, n, o) => {
2007
2007
  getCount() {
2008
2008
  return this._dxfs.length;
2009
2009
  }
2010
- }, yr = "dxfs", xr = (t) => {
2011
- let e = t.get(yr);
2012
- return e || (e = new gr(), t.set(yr, e)), e;
2010
+ }, xr = "dxfs", yr = (t) => {
2011
+ let e = t.get(xr);
2012
+ return e || (e = new gr(), t.set(xr, e)), e;
2013
2013
  }, vr = "stylesLayout", wr = (t, e) => {
2014
2014
  const n = function(t, e) {
2015
2015
  let n = e?.direct;
@@ -2177,8 +2177,8 @@ function Ar(t, e, n, o, r, s, a = !1, i = !1, l = null) {
2177
2177
  const c = {};
2178
2178
  let d = null, m = o.named;
2179
2179
  m && (d = n.getNamedStyles().getByName(m).toJSON().style);
2180
- const p = o.font ?? d?.font, f = p ? r.fontMap.get(Ee.JSONStableStringify(p)) ?? 0 : 0, h = o.fill ?? d?.fill, u = h ? r.fillMap.get(Ee.JSONStableStringify(h)) ?? 0 : 0, g = o.borders ?? d?.borders, y = g ? r.borderMap.get(Ee.JSONStableStringify(g)) ?? 0 : 0, x = o.numberFormat ?? d?.numberFormat;
2181
- if (c.numFmtId = (void 0 !== x ? r.numFmtMap.get(x) : void 0) ?? "0", c.fontId = String(f), c.fillId = String(u), c.borderId = String(y), s) {
2180
+ const p = o.font ?? d?.font, f = p ? r.fontMap.get(Ee.JSONStableStringify(p)) ?? 0 : 0, h = o.fill ?? d?.fill, u = h ? r.fillMap.get(Ee.JSONStableStringify(h)) ?? 0 : 0, g = o.borders ?? d?.borders, x = g ? r.borderMap.get(Ee.JSONStableStringify(g)) ?? 0 : 0, y = o.numberFormat ?? d?.numberFormat;
2181
+ if (c.numFmtId = (void 0 !== y ? r.numFmtMap.get(y) : void 0) ?? "0", c.fontId = String(f), c.fillId = String(u), c.borderId = String(x), s) {
2182
2182
  const t = o.named ?? $e.BuiltInName.Normal;
2183
2183
  c.xfId = r.namedStyleMap.get(t.toLowerCase());
2184
2184
  }
@@ -2288,16 +2288,16 @@ var $r = Object.freeze([
2288
2288
  };
2289
2289
  const g = [];
2290
2290
  for (let t = 0; t < o.length; t++) o[t].noRecords || g.push(t);
2291
- const y = [Wr, `<pivotCacheRecords xmlns="${Or}" xmlns:r="${Vr}" count="${i}">`];
2291
+ const x = [Wr, `<pivotCacheRecords xmlns="${Or}" xmlns:r="${Vr}" count="${i}">`];
2292
2292
  for (let t = 0; t < i; t++) {
2293
- y.push("<r>");
2293
+ x.push("<r>");
2294
2294
  for (const n of g) {
2295
2295
  const r = a[n][t];
2296
- y.push(o[n].inline ? Yr(s[n][r], !!o[n].dates || !!o[n].dateItems?.includes(r), !1, e) : `<x v="${r}"/>`);
2296
+ x.push(o[n].inline ? Yr(s[n][r], !!o[n].dates || !!o[n].dateItems?.includes(r), !1, e) : `<x v="${r}"/>`);
2297
2297
  }
2298
- y.push("</r>");
2298
+ x.push("</r>");
2299
2299
  }
2300
- return y.push("</pivotCacheRecords>"), {
2300
+ return x.push("</pivotCacheRecords>"), {
2301
2301
  id: "",
2302
2302
  type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",
2303
2303
  name: "pivotCacheDefinition1.xml",
@@ -2307,7 +2307,7 @@ var $r = Object.freeze([
2307
2307
  type: ve,
2308
2308
  contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml",
2309
2309
  name: "pivotCacheRecords1.xml",
2310
- xml: y.join("")
2310
+ xml: x.join("")
2311
2311
  }]
2312
2312
  };
2313
2313
  }, Ur = (t, e) => {
@@ -2463,7 +2463,7 @@ var $r = Object.freeze([
2463
2463
  }, rs = (t) => {
2464
2464
  const e = t.getSharedStates(), n = e.get(vr);
2465
2465
  if (!n) throw new Error("The styles are laid out before the pivot parts are written.");
2466
- const o = xr(e);
2466
+ const o = yr(e);
2467
2467
  return {
2468
2468
  numFmtId: (t) => ((t, e) => (Cr(t.styles, e, t.denormalized), parseInt(t.denormalized.numFmtMap.get(e) ?? "0", 10)))(n, t),
2469
2469
  dxfId: (t) => o.add(t)
@@ -2493,7 +2493,7 @@ var $r = Object.freeze([
2493
2493
  });
2494
2494
  c.ref = Fe.rangeToString(h);
2495
2495
  const u = pe(r.sortOn);
2496
- u && (c.sortBy = u), void 0 !== r.style && (c.dxfId = xr(t.getSharedStates()).add(r.style)), void 0 !== r.iconSet && (c.iconSet = r.iconSet), void 0 !== r.customList && (c.customList = r.customList), e.empty("sortCondition", c);
2496
+ u && (c.sortBy = u), void 0 !== r.style && (c.dxfId = yr(t.getSharedStates()).add(r.style)), void 0 !== r.iconSet && (c.iconSet = r.iconSet), void 0 !== r.customList && (c.customList = r.customList), e.empty("sortCondition", c);
2497
2497
  }
2498
2498
  e.end("sortState");
2499
2499
  }, ms = (t, e, n, o, r = !1) => {
@@ -2549,7 +2549,7 @@ var $r = Object.freeze([
2549
2549
  if (r === Oe.BuiltInOperatorNames.Unique) return void t.warn("Unique conditions not supported in Table AutoFilters", n);
2550
2550
  if (r === Oe.BuiltInOperatorNames.Color) {
2551
2551
  const o = n.param, r = {};
2552
- void 0 !== o.cellColor && (r.cellColor = o.cellColor ? "1" : "0"), void 0 !== o.style && (r.dxfId = xr(t.getSharedStates()).add(o.style)), e.empty("colorFilter", r);
2552
+ void 0 !== o.cellColor && (r.cellColor = o.cellColor ? "1" : "0"), void 0 !== o.style && (r.dxfId = yr(t.getSharedStates()).add(o.style)), e.empty("colorFilter", r);
2553
2553
  }
2554
2554
  const a = it(n);
2555
2555
  if (null !== a) return void gs(e, "" === a ? [] : [a], [], "" === a || !0 === n.includeBlanks);
@@ -2625,12 +2625,12 @@ var $r = Object.freeze([
2625
2625
  }
2626
2626
  t.end("filters");
2627
2627
  } else t.empty("filters", i);
2628
- }, ys = "tableIds", xs = (t) => {
2628
+ }, xs = "tableIds", ys = (t) => {
2629
2629
  const e = t.getSharedStates();
2630
- let n = e.get(ys);
2631
- return n || (n = /* @__PURE__ */ new Map(), e.set(ys, n)), n;
2630
+ let n = e.get(xs);
2631
+ return n || (n = /* @__PURE__ */ new Map(), e.set(xs, n)), n;
2632
2632
  }, vs = (t, e) => {
2633
- const n = xs(t);
2633
+ const n = ys(t);
2634
2634
  let o = n.get(e);
2635
2635
  return void 0 === o && (o = ++ls, n.set(e, o)), o;
2636
2636
  }, ws = (t, e, n, o) => {
@@ -2779,12 +2779,12 @@ function js(e, o, r, s, a, i) {
2779
2779
  return n;
2780
2780
  }(n)) || null;
2781
2781
  }(o, h) : null));
2782
- let u = l[r], g = Ft(c.type) === r ? c.type : u.relType, y = c.contentType ?? u.contentType;
2783
- return "macro" !== r || i || (d = f(d), u = de, g = de.relType, y = de.contentType), e.addPart("embeddedPart", {
2782
+ let u = l[r], g = Ft(c.type) === r ? c.type : u.relType, x = c.contentType ?? u.contentType;
2783
+ return "macro" !== r || i || (d = f(d), u = de, g = de.relType, x = de.contentType), e.addPart("embeddedPart", {
2784
2784
  ...c,
2785
2785
  xml: d,
2786
2786
  type: g,
2787
- contentType: y
2787
+ contentType: x
2788
2788
  }, `/xl/${u.folder}/sheet{n}.xml`).relId ?? null;
2789
2789
  }
2790
2790
  var Xs = "externalLinkParts";
@@ -2890,23 +2890,23 @@ var Us = [
2890
2890
  u && u.length > 0 && (l = ta(l, "dataFields", `<dataFields count="${u.length}">${u.map((t) => ea(t, e)).join("")}</dataFields>`));
2891
2891
  const g = t.formats;
2892
2892
  g && g.length > 0 && (l = ta(l, "formats", Qt(g, e)));
2893
- const y = t.conditionalFormats;
2894
- if (y && y.length > 0) {
2895
- const t = y.map((t) => `<conditionalFormat${Et([
2893
+ const x = t.conditionalFormats;
2894
+ if (x && x.length > 0) {
2895
+ const t = x.map((t) => `<conditionalFormat${Et([
2896
2896
  ["scope", t.scope],
2897
2897
  ["type", t.type],
2898
2898
  ["priority", t.priority]
2899
2899
  ])}><pivotAreas count="${t.areas.length}">${t.areas.map(ct).join("")}</pivotAreas></conditionalFormat>`).join("");
2900
- l = ta(l, "conditionalFormats", `<conditionalFormats count="${y.length}">${t}</conditionalFormats>`);
2901
- }
2902
- const x = t.style;
2903
- x && (l = ta(l, "pivotTableStyleInfo", `<pivotTableStyleInfo${Et([
2904
- ["name", x.name],
2905
- ["showRowHeaders", Zs(x.showRowHeaders)],
2906
- ["showColHeaders", Zs(x.showColumnHeaders)],
2907
- ["showRowStripes", Zs(x.showRowStripes)],
2908
- ["showColStripes", Zs(x.showColumnStripes)],
2909
- ["showLastColumn", Zs(x.showLastColumn)]
2900
+ l = ta(l, "conditionalFormats", `<conditionalFormats count="${x.length}">${t}</conditionalFormats>`);
2901
+ }
2902
+ const y = t.style;
2903
+ y && (l = ta(l, "pivotTableStyleInfo", `<pivotTableStyleInfo${Et([
2904
+ ["name", y.name],
2905
+ ["showRowHeaders", Zs(y.showRowHeaders)],
2906
+ ["showColHeaders", Zs(y.showColumnHeaders)],
2907
+ ["showRowStripes", Zs(y.showRowStripes)],
2908
+ ["showColStripes", Zs(y.showColumnStripes)],
2909
+ ["showLastColumn", Zs(y.showLastColumn)]
2910
2910
  ])}/>`));
2911
2911
  const v = (t.filters ?? []).map((t, e) => Dt(t, e, n, o)).filter((t) => null !== t);
2912
2912
  return v.length > 0 && (l = ta(l, "filters", `<filters count="${v.length}">${v.join("")}</filters>`)), l;
@@ -3054,7 +3054,7 @@ var ua = (t) => {
3054
3054
  const n = e.value;
3055
3055
  return !n?.h || void 0 !== n.s || n.l || n.cl || n.csz || void 0 !== n.sz && -1 !== n.sz ? null : se - e.min + 1 > e.min ? e.min : null;
3056
3056
  };
3057
- var ga = 1048576, ya = (t, e, n) => {
3057
+ var ga = 1048576, xa = 8192, ya = (t, e, n) => {
3058
3058
  if (!n) return [];
3059
3059
  let o = 0;
3060
3060
  for (let r = 0; r < n.length; r++) {
@@ -3063,8 +3063,8 @@ var ga = 1048576, ya = (t, e, n) => {
3063
3063
  }
3064
3064
  return n;
3065
3065
  };
3066
- var xa = /^\s*=?\s*TABLE\s*\(/i;
3067
- function va(t, e, n, o) {
3066
+ var va = /^\s*=?\s*TABLE\s*\(/i;
3067
+ function wa(t, e, n, o) {
3068
3068
  let r = null;
3069
3069
  const s = [];
3070
3070
  for (let o = e.rowStart; o <= e.rowEnd; o++) for (let a = e.colStart; a <= e.colEnd; a++) {
@@ -3089,7 +3089,7 @@ function va(t, e, n, o) {
3089
3089
  for (let t = 0; t < s.length; t++) o.push(s[t]);
3090
3090
  return !0;
3091
3091
  }
3092
- function wa(t, e) {
3092
+ function Sa(t, e) {
3093
3093
  let n = e.type;
3094
3094
  n === Ve.ColorStopType.AutoMin ? n = Ve.ColorStopType.Min : n === Ve.ColorStopType.AutoMax && (n = Ve.ColorStopType.Max), t.empty("cfvo", {
3095
3095
  type: n,
@@ -3097,14 +3097,14 @@ function wa(t, e) {
3097
3097
  gte: e.exclusive ? "0" : void 0
3098
3098
  });
3099
3099
  }
3100
- function Sa(t, e) {
3100
+ function ba(t, e) {
3101
3101
  const n = {
3102
3102
  type: e.type,
3103
3103
  gte: e.exclusive ? "0" : void 0
3104
3104
  };
3105
3105
  void 0 !== e.value ? (t.start("x14:cfvo", n), t.start("xm:f"), t.text(e.value), t.end("xm:f"), t.end("x14:cfvo")) : t.empty("x14:cfvo", n);
3106
3106
  }
3107
- var ba = /* @__PURE__ */ new Set([
3107
+ var Ca = /* @__PURE__ */ new Set([
3108
3108
  $e.IconSet.Arrows3,
3109
3109
  $e.IconSet.ArrowsGray3,
3110
3110
  $e.IconSet.Flags3,
@@ -3123,22 +3123,22 @@ var ba = /* @__PURE__ */ new Set([
3123
3123
  $e.IconSet.Quarters5,
3124
3124
  $e.IconSet.Rating5
3125
3125
  ]);
3126
- function Ca(t) {
3127
- return (t.icon?.length ?? 0) > 0 || void 0 !== t.iconSet && !ba.has(t.iconSet);
3126
+ function ka(t) {
3127
+ return (t.icon?.length ?? 0) > 0 || void 0 !== t.iconSet && !Ca.has(t.iconSet);
3128
3128
  }
3129
- function ka(t, e, n, o, r, s, a, i, l) {
3129
+ function Ta(t, e, n, o, r, s, a, i, l) {
3130
3130
  const c = o.scale;
3131
3131
  o.ext && t.warn("Conditional format extension payload is not written to xlsx; it will be lost.");
3132
3132
  const d = {
3133
3133
  type: r.type,
3134
3134
  dxfId: o.style && Object.keys(o.style).length > 0 ? i.add(o.style) : void 0,
3135
3135
  priority: a,
3136
- stopIfTrue: Ra(o.stopIfTrue),
3137
- aboveAverage: Ra(r.aboveAverage),
3138
- equalAverage: Ra(r.equalAverage),
3136
+ stopIfTrue: Fa(o.stopIfTrue),
3137
+ aboveAverage: Fa(r.aboveAverage),
3138
+ equalAverage: Fa(r.equalAverage),
3139
3139
  stdDev: r.stdDev,
3140
- bottom: Ra(r.bottom),
3141
- percent: Ra(r.percent),
3140
+ bottom: Fa(r.bottom),
3141
+ percent: Fa(r.percent),
3142
3142
  rank: r.rank,
3143
3143
  operator: r.operator,
3144
3144
  text: r.text,
@@ -3146,7 +3146,7 @@ function ka(t, e, n, o, r, s, a, i, l) {
3146
3146
  };
3147
3147
  let m;
3148
3148
  c?.type === Ve.ScaleType.DataBar && function(t) {
3149
- if (t.gradient || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) return !0;
3149
+ if (!t.gradient || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) return !0;
3150
3150
  const e = t.stops, n = e ? e.length : 0;
3151
3151
  for (let t = 0; t < n; t++) {
3152
3152
  const n = e[t].type;
@@ -3166,26 +3166,26 @@ function ka(t, e, n, o, r, s, a, i, l) {
3166
3166
  if (c?.type === Ve.ScaleType.ColorScale) {
3167
3167
  const t = c.stops ?? [];
3168
3168
  e.start("colorScale");
3169
- for (let n = 0; n < t.length; n++) wa(e, t[n]);
3169
+ for (let n = 0; n < t.length; n++) Sa(e, t[n]);
3170
3170
  for (let o = 0; o < t.length; o++) No(e, n, t[o].color, "color");
3171
3171
  e.end("colorScale");
3172
3172
  } else if (c?.type === Ve.ScaleType.DataBar) {
3173
3173
  const t = c.stops ?? [];
3174
3174
  e.start("dataBar", {
3175
- minLength: c.minLength,
3176
- maxLength: c.maxLength,
3177
- showValue: Ra(c.showValue)
3175
+ minLength: c.minLength ?? 0,
3176
+ maxLength: c.maxLength ?? 100,
3177
+ showValue: Fa(c.showValue)
3178
3178
  });
3179
- for (let n = 0; n < t.length; n++) wa(e, t[n]);
3179
+ for (let n = 0; n < t.length; n++) Sa(e, t[n]);
3180
3180
  c.color && No(e, n, c.color, "color"), e.end("dataBar");
3181
3181
  } else if (c?.type === Ve.ScaleType.IconSet) {
3182
3182
  const t = c.stops ?? [];
3183
3183
  e.start("iconSet", {
3184
3184
  iconSet: c.iconSet,
3185
- reverse: Ra(c.reverse),
3186
- showValue: Ra(c.showValue)
3185
+ reverse: Fa(c.reverse),
3186
+ showValue: Fa(c.showValue)
3187
3187
  });
3188
- for (let n = 0; n < t.length; n++) wa(e, t[n]);
3188
+ for (let n = 0; n < t.length; n++) Sa(e, t[n]);
3189
3189
  e.end("iconSet");
3190
3190
  }
3191
3191
  m && (e.start("extLst"), e.start("ext", {
@@ -3194,7 +3194,7 @@ function ka(t, e, n, o, r, s, a, i, l) {
3194
3194
  }), e.start("x14:id"), e.text(m), e.end("x14:id"), e.end("ext"), e.end("extLst")), e.end("cfRule");
3195
3195
  } else e.empty("cfRule", d);
3196
3196
  }
3197
- function Ta(t) {
3197
+ function Ia(t) {
3198
3198
  let e = Number.MAX_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER;
3199
3199
  const o = t.split(" ");
3200
3200
  for (let t = 0; t < o.length; t++) {
@@ -3207,7 +3207,7 @@ function Ta(t) {
3207
3207
  colIndex: n
3208
3208
  });
3209
3209
  }
3210
- function Ia(t) {
3210
+ function Ra(t) {
3211
3211
  if ("string" == typeof t) return t.split(",").join(" ");
3212
3212
  if (Array.isArray(t)) {
3213
3213
  const e = [];
@@ -3219,10 +3219,10 @@ function Ia(t) {
3219
3219
  }
3220
3220
  return Fe.rangeToString(t);
3221
3221
  }
3222
- function Ra(t) {
3222
+ function Fa(t) {
3223
3223
  if (void 0 !== t) return t ? "1" : "0";
3224
3224
  }
3225
- function Fa(t) {
3225
+ function Ea(t) {
3226
3226
  if ("string" != typeof t) return !1;
3227
3227
  let e = !1;
3228
3228
  for (let n = 0; n < t.length; n++) {
@@ -3232,12 +3232,12 @@ function Fa(t) {
3232
3232
  }
3233
3233
  return !1;
3234
3234
  }
3235
- function Ea(t) {
3235
+ function Ma(t) {
3236
3236
  const e = t.formulas, n = e ? e.length : 0;
3237
- for (let t = 0; t < n; t++) if (Fa(e[t])) return !0;
3237
+ for (let t = 0; t < n; t++) if (Ea(e[t])) return !0;
3238
3238
  return !1;
3239
3239
  }
3240
- function Ma(t) {
3240
+ function Pa(t) {
3241
3241
  let e = Number.MAX_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER;
3242
3242
  const o = t.split(" ");
3243
3243
  for (let t = 0; t < o.length; t++) {
@@ -3250,7 +3250,7 @@ function Ma(t) {
3250
3250
  colIndex: n
3251
3251
  };
3252
3252
  }
3253
- function Pa(t, e, n) {
3253
+ function Aa(t, e, n) {
3254
3254
  if ("string" != typeof t || !t || !e || !n) return t;
3255
3255
  try {
3256
3256
  const o = n.parse(t, e);
@@ -3259,14 +3259,14 @@ function Pa(t, e, n) {
3259
3259
  return t;
3260
3260
  }
3261
3261
  }
3262
- function Aa(t, e, n) {
3262
+ function Da(t, e, n) {
3263
3263
  const o = t?.stops;
3264
3264
  if (!o || !n) return t;
3265
3265
  let r;
3266
3266
  for (let t = 0; t < o.length; t++) {
3267
3267
  const s = o[t]?.value;
3268
3268
  if ("string" != typeof s) continue;
3269
- const a = Pa(s, e, n);
3269
+ const a = Aa(s, e, n);
3270
3270
  a !== s && (r || (r = [...o]), r[t] = {
3271
3271
  ...o[t],
3272
3272
  value: a
@@ -3277,12 +3277,12 @@ function Aa(t, e, n) {
3277
3277
  stops: r
3278
3278
  } : t;
3279
3279
  }
3280
- function Da(t) {
3280
+ function La(t) {
3281
3281
  const e = t.getDataValidations().getSettings(), n = {};
3282
3282
  return e.disablePrompts && (n.disablePrompts = "1"), void 0 !== e.windowX && (n.xWindow = e.windowX), void 0 !== e.windowY && (n.yWindow = e.windowY), n;
3283
3283
  }
3284
- var La = "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings";
3285
- function _a(t, e, n) {
3284
+ var _a = "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings";
3285
+ function Na(t, e, n) {
3286
3286
  if (!n || 0 === n.length) return;
3287
3287
  const o = n.filter((t) => !t.automatic).length;
3288
3288
  t.start(e, {
@@ -3295,12 +3295,12 @@ function _a(t, e, n) {
3295
3295
  }
3296
3296
  t.end(e);
3297
3297
  }
3298
- function Na(t, e, n, o) {
3298
+ function $a(t, e, n, o) {
3299
3299
  if (!o?.xml) return;
3300
3300
  const r = t.addPart("legacyDrawing", o);
3301
3301
  e.empty(n, { "r:id": r.relId });
3302
3302
  }
3303
- var $a = (t, e, n, o) => {
3303
+ var Ba = (t, e, n, o) => {
3304
3304
  const r = (e, n) => {
3305
3305
  const o = t.getRangeAtBounds({
3306
3306
  x: e,
@@ -3347,13 +3347,13 @@ var $a = (t, e, n, o) => {
3347
3347
  bounds: s,
3348
3348
  anchor: [...r(s.x, s.y), ...r(s.x + s.width, s.y + s.height)]
3349
3349
  };
3350
- }, Ba = (t, e) => {
3350
+ }, Oa = (t, e) => {
3351
3351
  if (!e) return t;
3352
3352
  const n = t?.xml ?? null;
3353
3353
  let o = le(n ?? "");
3354
3354
  const r = [], s = e.comments;
3355
3355
  for (let t = 0; t < s.length; t++) {
3356
- const { comment: n, row: a, col: i } = s[t], l = n.isNote() ? n.toJSON() : null, { bounds: d, anchor: m } = $a(e.sheet, n, a, i), p = l?.box, f = p?.fill || p?.stroke ? D(p.xml ?? W, {
3356
+ const { comment: n, row: a, col: i } = s[t], l = n.isNote() ? n.toJSON() : null, { bounds: d, anchor: m } = Ba(e.sheet, n, a, i), p = l?.box, f = p?.fill || p?.stroke ? D(p.xml ?? W, {
3357
3357
  fill: p.fill,
3358
3358
  stroke: p.stroke
3359
3359
  }, (t) => e.sheet.getStyles().parseColor(t)) : p?.xml;
@@ -3373,8 +3373,8 @@ var $a = (t, e, n, o) => {
3373
3373
  ...t,
3374
3374
  xml: i
3375
3375
  } : { xml: i } : t;
3376
- }, Oa = _t + 1;
3377
- var Va = (t, e) => {
3376
+ }, Va = _t + 1;
3377
+ var Wa = (t, e) => {
3378
3378
  if (0 === e.length) return;
3379
3379
  let n = le(t.legacyDrawing?.xml ?? "");
3380
3380
  const o = e.length;
@@ -3387,7 +3387,7 @@ var Va = (t, e) => {
3387
3387
  const o = e[t].jsonMovable.content, s = o.json ?? (o.json = {});
3388
3388
  ("number" != typeof s.shapeId || r.has(s.shapeId)) && (s.shapeId = ++n), r.add(s.shapeId);
3389
3389
  }
3390
- }, Wa = (t, e, n) => {
3390
+ }, za = (t, e, n) => {
3391
3391
  if (0 === n.length) return e;
3392
3392
  const o = (e, n) => t.getRange({
3393
3393
  rowStart: n,
@@ -3427,16 +3427,16 @@ var Va = (t, e) => {
3427
3427
  ...e,
3428
3428
  xml: l
3429
3429
  } : { xml: l } : e;
3430
- }, za = (t, e, n) => {
3430
+ }, ja = (t, e, n) => {
3431
3431
  t.start(e), t.start("xdr:col"), t.text(n.c ?? 0), t.end("xdr:col"), t.start("xdr:colOff"), t.text(fr(n.x)), t.end("xdr:colOff"), t.start("xdr:row"), t.text(n.r ?? 0), t.end("xdr:row"), t.start("xdr:rowOff"), t.text(fr(n.y)), t.end("xdr:rowOff"), t.end(e);
3432
3432
  };
3433
- var ja = {
3433
+ var Xa = {
3434
3434
  r: void 0,
3435
3435
  s: void 0,
3436
3436
  t: void 0,
3437
3437
  cm: void 0,
3438
3438
  vm: void 0
3439
- }, Xa = {
3439
+ }, Ha = {
3440
3440
  r: void 0,
3441
3441
  s: void 0,
3442
3442
  customFormat: void 0,
@@ -3448,30 +3448,30 @@ var ja = {
3448
3448
  collapsed: void 0,
3449
3449
  thickTop: void 0,
3450
3450
  thickBot: void 0
3451
- }, Ha = {
3451
+ }, Ua = {
3452
3452
  t: void 0,
3453
3453
  aca: void 0,
3454
3454
  ref: void 0,
3455
3455
  ca: void 0,
3456
3456
  si: void 0
3457
- }, Ua = {
3457
+ }, Ga = {
3458
3458
  t: "shared",
3459
3459
  aca: void 0,
3460
3460
  ref: void 0,
3461
3461
  ca: void 0,
3462
3462
  si: void 0
3463
- }, Ga = {
3463
+ }, qa = {
3464
3464
  t: "array",
3465
3465
  aca: void 0,
3466
3466
  ref: void 0,
3467
3467
  ca: void 0,
3468
3468
  si: void 0
3469
3469
  };
3470
- function qa(t, e) {
3470
+ function Ja(t, e) {
3471
3471
  const n = $.test(e) ? A : void 0;
3472
3472
  t.start("t", n), t.text(C(e)), t.end("t");
3473
3473
  }
3474
- var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 : t ? "1" : "0", Ya = /* @__PURE__ */ new Set([
3474
+ var Ka = (t) => String(Math.round(1e3 * t)), Ya = (t) => void 0 === t ? void 0 : t ? "1" : "0", Za = /* @__PURE__ */ new Set([
3475
3475
  "text",
3476
3476
  "runs",
3477
3477
  "paragraphs",
@@ -3505,48 +3505,48 @@ var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 :
3505
3505
  "effects",
3506
3506
  "fill",
3507
3507
  "stroke"
3508
- ]), Za = {
3508
+ ]), Qa = {
3509
3509
  latin: "lt",
3510
3510
  ea: "ea",
3511
3511
  cs: "cs",
3512
3512
  sym: "lt",
3513
3513
  buFont: "lt"
3514
- }, Qa = (t, e, n) => {
3514
+ }, ti = (t, e, n) => {
3515
3515
  if (!n) return;
3516
- const o = void 0 !== n.scheme && n.scheme !== Xe.Scheme.None ? `+${n.scheme === Xe.Scheme.Major ? "mj" : "mn"}-${Za[e]}` : n.family;
3516
+ const o = void 0 !== n.scheme && n.scheme !== Xe.Scheme.None ? `+${n.scheme === Xe.Scheme.Major ? "mj" : "mn"}-${Qa[e]}` : n.family;
3517
3517
  void 0 !== o && t.empty(e, {
3518
3518
  typeface: o,
3519
3519
  panose: n.panose,
3520
3520
  pitchFamily: n.pitch,
3521
3521
  charset: K(n.charset)
3522
3522
  });
3523
- }, ti = (t, e, n, o, r = Pe.EmptyObject) => {
3523
+ }, ei = (t, e, n, o, r = Pe.EmptyObject) => {
3524
3524
  const s = t.getXMLWriter(), a = ((t, e, n = Pe.EmptyArray) => {
3525
3525
  if (!e) return { ...n };
3526
3526
  const o = { ...n };
3527
- for (const t of Object.keys(e)) Ya.has(t) || void 0 === e[t] || (o[t] = e[t]);
3527
+ for (const t of Object.keys(e)) Za.has(t) || void 0 === e[t] || (o[t] = e[t]);
3528
3528
  const { size: r, kern: s, weight: a, style: i, b: l, i: c, spc: d, baseline: m } = e, p = e;
3529
- return void 0 !== p.language && (o.lang = p.language), void 0 !== p.alternateLanguage && (o.altLang = p.alternateLanguage), void 0 !== r && (o.sz = "" + ur(r)), void 0 !== l && (o.b = l ? "1" : "0"), void 0 !== a && (o.b = a > 500 ? "1" : "0"), void 0 !== c && (o.i = c ? "1" : "0"), void 0 !== i && (o.i = "italic" === i ? "1" : "0"), void 0 !== e.italic && (o.i = e.italic ? "1" : "0"), void 0 !== p.underline && (o.u = k.write(p.underline)), void 0 !== p.strike && (o.strike = R.write(p.strike)), void 0 !== s && (o.kern = "" + ur(s)), void 0 !== p.kerning && (o.kern = "" + ur(p.kerning)), void 0 !== d && (o.spc = "" + ur(d)), void 0 !== p.letterSpacing && (o.spc = "" + ur(p.letterSpacing)), void 0 !== m && (o.baseline = Ja(m)), void 0 !== p.capitals && (o.cap = p.capitals), void 0 !== p.normalizeHeight && (o.normalizeH = Ka(p.normalizeHeight)), o;
3529
+ return void 0 !== p.language && (o.lang = p.language), void 0 !== p.alternateLanguage && (o.altLang = p.alternateLanguage), void 0 !== r && (o.sz = "" + ur(r)), void 0 !== l && (o.b = l ? "1" : "0"), void 0 !== a && (o.b = a > 500 ? "1" : "0"), void 0 !== c && (o.i = c ? "1" : "0"), void 0 !== i && (o.i = "italic" === i ? "1" : "0"), void 0 !== e.italic && (o.i = e.italic ? "1" : "0"), void 0 !== p.underline && (o.u = k.write(p.underline)), void 0 !== p.strike && (o.strike = R.write(p.strike)), void 0 !== s && (o.kern = "" + ur(s)), void 0 !== p.kerning && (o.kern = "" + ur(p.kerning)), void 0 !== d && (o.spc = "" + ur(d)), void 0 !== p.letterSpacing && (o.spc = "" + ur(p.letterSpacing)), void 0 !== m && (o.baseline = Ka(m)), void 0 !== p.capitals && (o.cap = p.capitals), void 0 !== p.normalizeHeight && (o.normalizeH = Ya(p.normalizeHeight)), o;
3530
3530
  })(0, o ?? {}, r);
3531
- o?.outline || o?.color || o?.effects?.length || o?.highlight || o?.font || o?.eastAsianFont || o?.complexScriptFont || o?.symbolFont || o?.hyperlink ? (s.start(n, a), o.outline && Jo(t, s, o.outline, e), o.color && qo(t, s, o.color, e), o.effects?.length && Zo(t, s, e.getTheme(), o.effects), o.highlight && (s.start("highlight"), Lo(s, e.getTheme(), o.highlight), s.end("highlight")), Qa(s, "latin", o.font), Qa(s, "ea", o.eastAsianFont), Qa(s, "cs", o.complexScriptFont), Qa(s, "sym", o.symbolFont), Go(t, s, "hlinkClick", o.hyperlink), s.end(n)) : s.empty(n, a);
3532
- }, ei = (t, e, n) => {
3533
- n && (t.start(e), "percent" in n ? t.empty("spcPct", { val: Ja(n.percent) }) : t.empty("spcPts", { val: String(Math.round(100 * n.points)) }), t.end(e));
3534
- }, ni = (t, e, n, o) => {
3531
+ o?.outline || o?.color || o?.effects?.length || o?.highlight || o?.font || o?.eastAsianFont || o?.complexScriptFont || o?.symbolFont || o?.hyperlink ? (s.start(n, a), o.outline && Jo(t, s, o.outline, e), o.color && qo(t, s, o.color, e), o.effects?.length && Zo(t, s, e.getTheme(), o.effects), o.highlight && (s.start("highlight"), Lo(s, e.getTheme(), o.highlight), s.end("highlight")), ti(s, "latin", o.font), ti(s, "ea", o.eastAsianFont), ti(s, "cs", o.complexScriptFont), ti(s, "sym", o.symbolFont), Go(t, s, "hlinkClick", o.hyperlink), s.end(n)) : s.empty(n, a);
3532
+ }, ni = (t, e, n) => {
3533
+ n && (t.start(e), "percent" in n ? t.empty("spcPct", { val: Ka(n.percent) }) : t.empty("spcPts", { val: String(Math.round(100 * n.points)) }), t.end(e));
3534
+ }, oi = (t, e, n, o) => {
3535
3535
  const r = t.getXMLWriter(), s = {
3536
3536
  marL: void 0 === o.marginLeft ? void 0 : String(fr(o.marginLeft)),
3537
3537
  marR: void 0 === o.marginRight ? void 0 : String(fr(o.marginRight)),
3538
3538
  lvl: void 0 === o.level ? void 0 : String(o.level),
3539
3539
  indent: void 0 === o.indent ? void 0 : String(fr(o.indent)),
3540
- algn: y.write(o.align),
3540
+ algn: x.write(o.align),
3541
3541
  defTabSz: void 0 === o.defaultTabSize ? void 0 : String(fr(o.defaultTabSize)),
3542
- rtl: Ka(o.rightToLeft),
3543
- eaLnBrk: Ka(o.eastAsianLineBreak),
3542
+ rtl: Ya(o.rightToLeft),
3543
+ eaLnBrk: Ya(o.eastAsianLineBreak),
3544
3544
  fontAlgn: j.write(o.fontAlign),
3545
- latinLnBrk: Ka(o.latinLineBreak),
3546
- hangingPunct: Ka(o.hangingPunctuation)
3545
+ latinLnBrk: Ya(o.latinLineBreak),
3546
+ hangingPunct: Ya(o.hangingPunctuation)
3547
3547
  }, a = o.bullet;
3548
3548
  if (o.lineSpacing || o.spaceBefore || o.spaceAfter || a || o.tabs || o.defaultRun) {
3549
- if (r.start(n, s), ei(r, "lnSpc", o.lineSpacing), ei(r, "spcBef", o.spaceBefore), ei(r, "spcAft", o.spaceAfter), a) switch (a.colorFollowsText ? r.empty("buClrTx") : a.color && (r.start("buClr"), Lo(r, e.getTheme(), a.color), r.end("buClr")), a.sizeFollowsText ? r.empty("buSzTx") : a.size && ("percent" in a.size ? r.empty("buSzPct", { val: Ja(a.size.percent) }) : r.empty("buSzPts", { val: String(Math.round(100 * a.size.points)) })), a.fontFollowsText ? r.empty("buFontTx") : Qa(r, "buFont", a.font), a.type) {
3549
+ if (r.start(n, s), ni(r, "lnSpc", o.lineSpacing), ni(r, "spcBef", o.spaceBefore), ni(r, "spcAft", o.spaceAfter), a) switch (a.colorFollowsText ? r.empty("buClrTx") : a.color && (r.start("buClr"), Lo(r, e.getTheme(), a.color), r.end("buClr")), a.sizeFollowsText ? r.empty("buSzTx") : a.size && ("percent" in a.size ? r.empty("buSzPct", { val: Ka(a.size.percent) }) : r.empty("buSzPts", { val: String(Math.round(100 * a.size.points)) })), a.fontFollowsText ? r.empty("buFontTx") : ti(r, "buFont", a.font), a.type) {
3550
3550
  case "none":
3551
3551
  r.empty("buNone");
3552
3552
  break;
@@ -3566,14 +3566,14 @@ var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 :
3566
3566
  });
3567
3567
  r.end("tabLst");
3568
3568
  }
3569
- o.defaultRun && ti(t, e, "defRPr", o.defaultRun), r.end(n);
3569
+ o.defaultRun && ei(t, e, "defRPr", o.defaultRun), r.end(n);
3570
3570
  } else r.empty(n, s);
3571
- }, oi = (t) => t === Ke.Overflow.Visible ? void 0 : U.write(t), ri = (t, e) => {
3571
+ }, ri = (t) => t === Ke.Overflow.Visible ? void 0 : U.write(t), si = (t, e) => {
3572
3572
  const n = e.body ?? {}, o = n.insets, r = {
3573
3573
  rot: void 0 === e.rotation ? void 0 : String(Math.round(6e4 * e.rotation)),
3574
- spcFirstLastPara: Ka(n.spaceFirstLastParagraph),
3575
- vertOverflow: oi(n.verticalOverflow ?? ln.TEXT_DEFAULTS.verticalOverflow),
3576
- horzOverflow: oi(n.horizontalOverflow ?? ln.TEXT_DEFAULTS.horizontalOverflow),
3574
+ spcFirstLastPara: Ya(n.spaceFirstLastParagraph),
3575
+ vertOverflow: ri(n.verticalOverflow ?? ln.TEXT_DEFAULTS.verticalOverflow),
3576
+ horzOverflow: ri(n.horizontalOverflow ?? ln.TEXT_DEFAULTS.horizontalOverflow),
3577
3577
  vert: q.write(n.vertical),
3578
3578
  wrap: n.wrap,
3579
3579
  lIns: void 0 === o?.left ? void 0 : String(fr(o.left)),
@@ -3582,13 +3582,13 @@ var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 :
3582
3582
  bIns: void 0 === o?.bottom ? void 0 : String(fr(o.bottom)),
3583
3583
  numCol: void 0 === n.columns ? void 0 : String(n.columns),
3584
3584
  spcCol: void 0 === n.columnSpacing ? void 0 : String(fr(n.columnSpacing)),
3585
- rtlCol: Ka(n.rightToLeftColumns),
3586
- fromWordArt: Ka(n.fromWordArt),
3585
+ rtlCol: Ya(n.rightToLeftColumns),
3586
+ fromWordArt: Ya(n.fromWordArt),
3587
3587
  anchor: w.write(n.anchor),
3588
- anchorCtr: Ka(n.anchorCenter),
3589
- forceAA: Ka(n.forceAntiAlias),
3590
- upright: Ka(n.upright),
3591
- compatLnSpc: Ka(n.compatibleLineSpacing)
3588
+ anchorCtr: Ya(n.anchorCenter),
3589
+ forceAA: Ya(n.forceAntiAlias),
3590
+ upright: Ya(n.upright),
3591
+ compatLnSpc: Ya(n.compatibleLineSpacing)
3592
3592
  };
3593
3593
  if (n.warp || n.autoFit || n.extLst) {
3594
3594
  if (t.start("bodyPr", r), n.warp) {
@@ -3612,25 +3612,25 @@ var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 :
3612
3612
  t.empty("spAutoFit");
3613
3613
  break;
3614
3614
  case Ke.Autofit.Normal: t.empty("normAutofit", {
3615
- fontScale: void 0 === n.fontScale ? void 0 : Ja(n.fontScale),
3616
- lnSpcReduction: void 0 === n.lineSpacingReduction ? void 0 : Ja(n.lineSpacingReduction)
3615
+ fontScale: void 0 === n.fontScale ? void 0 : Ka(n.fontScale),
3616
+ lnSpcReduction: void 0 === n.lineSpacingReduction ? void 0 : Ka(n.lineSpacingReduction)
3617
3617
  });
3618
3618
  }
3619
3619
  n.extLst && t.raw(n.extLst), t.end("bodyPr");
3620
3620
  } else t.empty("bodyPr", r);
3621
- }, si = (t, e, n) => {
3621
+ }, ai = (t, e, n) => {
3622
3622
  const o = t.getXMLWriter();
3623
- n && (n.default || n.levels?.some((t) => t)) ? (o.start("lstStyle"), n.default && ni(t, e, "defPPr", n.default), n.levels?.forEach((n, o) => {
3624
- n && ni(t, e, `lvl${o + 1}pPr`, n);
3623
+ n && (n.default || n.levels?.some((t) => t)) ? (o.start("lstStyle"), n.default && oi(t, e, "defPPr", n.default), n.levels?.forEach((n, o) => {
3624
+ n && oi(t, e, `lvl${o + 1}pPr`, n);
3625
3625
  }), o.end("lstStyle")) : o.empty("lstStyle");
3626
- }, ai = (t, e, n, o) => {
3626
+ }, ii = (t, e, n, o) => {
3627
3627
  const r = t.getXMLWriter();
3628
3628
  r.pushDefaultNamespace("a"), r.start("p");
3629
3629
  const { runs: s, endRun: a, ...i } = o, l = void 0 !== ln.inheritedTextSize(n, o) ? (t) => t : (t) => void 0 === t.size ? {
3630
3630
  ...t,
3631
3631
  size: ln.TEXT_DEFAULTS.size
3632
3632
  } : t;
3633
- ((t) => !!t && Object.keys(t).some((e) => "runs" !== e && "endRun" !== e && void 0 !== t[e]))(i) && ni(t, e, "pPr", i);
3633
+ ((t) => !!t && Object.keys(t).some((e) => "runs" !== e && "endRun" !== e && void 0 !== t[e]))(i) && oi(t, e, "pPr", i);
3634
3634
  for (const n of s ?? []) {
3635
3635
  if ("\n" === n?.text) {
3636
3636
  r.empty("br");
@@ -3640,22 +3640,22 @@ var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 :
3640
3640
  r.start(i, s ? {
3641
3641
  id: s.id,
3642
3642
  type: s.type
3643
- } : {}), ti(t, e, "rPr", l(a)), r.start("t"), r.text(o ?? ""), r.end("t"), r.end(i);
3643
+ } : {}), ei(t, e, "rPr", l(a)), r.start("t"), r.text(o ?? ""), r.end("t"), r.end(i);
3644
3644
  }
3645
- !a && s?.length || ti(t, e, "endParaRPr", l(a ?? {})), r.end("p"), r.popDefaultNamespace();
3646
- }, ii = (t, e, n) => {
3645
+ !a && s?.length || ei(t, e, "endParaRPr", l(a ?? {})), r.end("p"), r.popDefaultNamespace();
3646
+ }, li = (t, e, n) => {
3647
3647
  if (!n) return;
3648
3648
  const o = t.getXMLWriter(), r = ((t) => "string" == typeof t ? { paragraphs: [{ runs: [{ text: t }] }] } : Array.isArray(t?.paragraphs) ? t : { paragraphs: [t] })(n);
3649
- o.start("txBody"), o.pushDefaultNamespace("a"), ri(o, r), si(t, e, r.listStyle);
3649
+ o.start("txBody"), o.pushDefaultNamespace("a"), si(o, r), ai(t, e, r.listStyle);
3650
3650
  const s = 0 === r.paragraphs.length ? [{ runs: [] }] : r.paragraphs;
3651
- for (const n of s) ai(t, e, r, n);
3651
+ for (const n of s) ii(t, e, r, n);
3652
3652
  o.popDefaultNamespace(), o.end("txBody");
3653
- }, li = (t, e, n) => {
3653
+ }, ci = (t, e, n) => {
3654
3654
  const o = t.getXMLWriter();
3655
3655
  if (!n) return o.empty("bodyPr"), void o.empty("lstStyle");
3656
- ri(o, n), si(t, e, n.listStyle);
3656
+ si(o, n), ai(t, e, n.listStyle);
3657
3657
  };
3658
- function ci(t, e, n, o) {
3658
+ function di(t, e, n, o) {
3659
3659
  t.start(o);
3660
3660
  const r = { typeface: e.latin || n };
3661
3661
  e.panose && (r.panose = e.panose), t.empty("latin", r), t.empty("ea", { typeface: e.eastAsian ?? "" }), t.empty("cs", { typeface: e.complexScript ?? "" });
@@ -3666,12 +3666,12 @@ function ci(t, e, n, o) {
3666
3666
  });
3667
3667
  t.end(o);
3668
3668
  }
3669
- var di = [
3669
+ var mi = [
3670
3670
  ["shape", "spDef"],
3671
3671
  ["line", "lnDef"],
3672
3672
  ["text", "txDef"]
3673
3673
  ];
3674
- var mi = { checkbox: "Checkbox" }, pi = [
3674
+ var pi = { checkbox: "Checkbox" }, fi = [
3675
3675
  ["dc:title", "title"],
3676
3676
  ["dc:subject", "subject"],
3677
3677
  ["dc:creator", "author"],
@@ -3692,9 +3692,9 @@ var mi = { checkbox: "Checkbox" }, pi = [
3692
3692
  ["cp:category", "category"],
3693
3693
  ["cp:contentStatus", "contentStatus"],
3694
3694
  ["cp:revision", "revisionNumber"]
3695
- ], fi = (t) => t.toISOString().split(".")[0] + "Z", hi = (t, e, n, o) => {
3695
+ ], hi = (t) => t.toISOString().split(".")[0] + "Z", ui = (t, e, n, o) => {
3696
3696
  e.start(n), e.text(o), e.end(n);
3697
- }, ui = (t, e, n) => {
3697
+ }, gi = (t, e, n) => {
3698
3698
  const o = [
3699
3699
  {
3700
3700
  heading: "Worksheets",
@@ -3741,13 +3741,13 @@ var mi = { checkbox: "Checkbox" }, pi = [
3741
3741
  });
3742
3742
  for (const t of a) for (const n of t.names) e.start("vt:lpstr"), e.text(n), e.end("vt:lpstr");
3743
3743
  e.end("vt:vector"), e.end("TitlesOfParts");
3744
- }, gi = {
3744
+ }, xi = {
3745
3745
  [We.Type.String]: "vt:lpwstr",
3746
3746
  [We.Type.Number]: "vt:i4",
3747
3747
  [We.Type.Float]: "vt:r8",
3748
3748
  [We.Type.Boolean]: "vt:bool",
3749
3749
  [We.Type.Date]: "vt:filetime"
3750
- }, yi = (t) => t.split(".")[0] + "Z", xi = {
3750
+ }, yi = (t) => t.split(".")[0] + "Z", vi = {
3751
3751
  minSupportedVersion: "120000",
3752
3752
  copy: "1",
3753
3753
  pasteAll: "1",
@@ -3759,42 +3759,42 @@ var mi = { checkbox: "Checkbox" }, pi = [
3759
3759
  clearComments: "1",
3760
3760
  assign: "1",
3761
3761
  coerce: "1"
3762
- }, vi = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", wi = (t, e) => {
3762
+ }, wi = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", Si = (t, e) => {
3763
3763
  for (const [n, o] of e) t.start("v", n ? { t: n } : void 0), t.text(o), t.end("v");
3764
- }, Si = (t) => void 0 === t || "_" === t ? void 0 : t, bi = (t, e) => {
3764
+ }, bi = (t) => void 0 === t || "_" === t ? void 0 : t, Ci = (t, e) => {
3765
3765
  const n = e.indexOf(" ");
3766
3766
  n < 0 || t.empty("gd", {
3767
3767
  name: e.slice(0, n),
3768
3768
  fmla: e.slice(n + 1).trim()
3769
3769
  });
3770
- }, Ci = (t, e, n) => {
3770
+ }, ki = (t, e, n) => {
3771
3771
  t.empty("pos", {
3772
3772
  x: e,
3773
3773
  y: n
3774
3774
  });
3775
- }, ki = (t, e) => {
3775
+ }, Ti = (t, e) => {
3776
3776
  const n = e.split(" ");
3777
3777
  "xy" === n[0] ? (t.start("ahXY", {
3778
- gdRefX: Si(n[1]),
3779
- minX: Si(n[5]),
3780
- maxX: Si(n[6]),
3781
- gdRefY: Si(n[2]),
3782
- minY: Si(n[7]),
3783
- maxY: Si(n[8])
3784
- }), Ci(t, n[3], n[4]), t.end("ahXY")) : "polar" === n[0] && (t.start("ahPolar", {
3785
- gdRefR: Si(n[1]),
3786
- minR: Si(n[5]),
3787
- maxR: Si(n[6]),
3788
- gdRefAng: Si(n[2]),
3789
- minAng: Si(n[7]),
3790
- maxAng: Si(n[8])
3791
- }), Ci(t, n[3], n[4]), t.end("ahPolar"));
3792
- }, Ti = {
3778
+ gdRefX: bi(n[1]),
3779
+ minX: bi(n[5]),
3780
+ maxX: bi(n[6]),
3781
+ gdRefY: bi(n[2]),
3782
+ minY: bi(n[7]),
3783
+ maxY: bi(n[8])
3784
+ }), ki(t, n[3], n[4]), t.end("ahXY")) : "polar" === n[0] && (t.start("ahPolar", {
3785
+ gdRefR: bi(n[1]),
3786
+ minR: bi(n[5]),
3787
+ maxR: bi(n[6]),
3788
+ gdRefAng: bi(n[2]),
3789
+ minAng: bi(n[7]),
3790
+ maxAng: bi(n[8])
3791
+ }), ki(t, n[3], n[4]), t.end("ahPolar"));
3792
+ }, Ii = {
3793
3793
  M: ["moveTo", 1],
3794
3794
  L: ["lnTo", 1],
3795
3795
  Q: ["quadBezTo", 2],
3796
3796
  C: ["cubicBezTo", 3]
3797
- }, Ii = (t, e) => {
3797
+ }, Ri = (t, e) => {
3798
3798
  t.start("path", {
3799
3799
  w: e.w,
3800
3800
  h: e.h,
@@ -3813,7 +3813,7 @@ var mi = { checkbox: "Checkbox" }, pi = [
3813
3813
  swAng: n[o + 3]
3814
3814
  }), o += 4;
3815
3815
  else {
3816
- const r = Ti[e];
3816
+ const r = Ii[e];
3817
3817
  if (!r) break;
3818
3818
  t.start(r[0]);
3819
3819
  for (let e = 0; e < r[1]; e++, o += 2) t.empty("pt", {
@@ -3824,32 +3824,32 @@ var mi = { checkbox: "Checkbox" }, pi = [
3824
3824
  }
3825
3825
  }
3826
3826
  t.end("path");
3827
- }, Ri = {
3827
+ }, Fi = {
3828
3828
  type: "http://schemas.microsoft.com/office/2011/relationships/chartStyle",
3829
3829
  contentType: "application/vnd.ms-office.chartstyle+xml",
3830
3830
  name: "style1.xml",
3831
3831
  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>"
3832
- }, Fi = {
3832
+ }, Ei = {
3833
3833
  type: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",
3834
3834
  contentType: "application/vnd.ms-office.chartcolorstyle+xml",
3835
3835
  name: "colors1.xml",
3836
3836
  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>"
3837
- }, Ei = (t, e) => {
3837
+ }, Mi = (t, e) => {
3838
3838
  const n = {};
3839
3839
  e.unlocked && (n.fLocksWithSheet = "0"), e.noPrint && (n.fPrintsWithSheet = "0"), t.empty("clientData", n);
3840
- }, Mi = (t) => (t.content?.json)?.members ?? [], Pi = (t) => ({
3840
+ }, Pi = (t) => (t.content?.json)?.members ?? [], Ai = (t) => ({
3841
3841
  x: t.anchor?.tl?.x ?? 0,
3842
3842
  y: t.anchor?.tl?.y ?? 0,
3843
3843
  width: t.anchor?.br?.x ?? 0,
3844
3844
  height: t.anchor?.br?.y ?? 0
3845
- }), Ai = async (t, e) => {
3845
+ }), Di = async (t, e) => {
3846
3846
  const n = e.content;
3847
3847
  if ("shape" !== n?.type && "picture" !== n?.type || await ar(t, n.json), "group" === n?.type) {
3848
3848
  await ar(t, n.json);
3849
- for (const n of Mi(e)) await Ai(t, n);
3849
+ for (const n of Pi(e)) await Di(t, n);
3850
3850
  }
3851
- }, Di = async (t, e, n, o, r, s) => {
3852
- const a = await rr(t, s), i = o.content?.json, l = i?.image ?? {}, c = l.extLst ?? (a.external ? void 0 : Li), d = {
3851
+ }, Li = async (t, e, n, o, r, s) => {
3852
+ const a = await rr(t, s), i = o.content?.json, l = i?.image ?? {}, c = l.extLst ?? (a.external ? void 0 : _i), d = {
3853
3853
  ...l,
3854
3854
  type: je.Type.Image,
3855
3855
  extLst: c,
@@ -3859,8 +3859,8 @@ var mi = { checkbox: "Checkbox" }, pi = [
3859
3859
  const p = {};
3860
3860
  void 0 !== l.dpi && (p.dpi = String(l.dpi)), void 0 !== l.isRotatedWithShape && (p.rotWithShape = l.isRotatedWithShape ? "1" : "0");
3861
3861
  const f = t.getXMLWriter();
3862
- f.start("pic", m), f.start("nvPicPr"), Ki(t, f, n, o, e), f.start("cNvPicPr", i?.noRelativeResize ? { preferRelativeResize: "0" } : {}), f.empty("a:picLocks", tl(o)), f.end("cNvPicPr"), f.end("nvPicPr"), f.start("blipFill", p), f.pushDefaultNamespace("a"), dr(f, d, a), f.popDefaultNamespace(), f.end("blipFill"), qi(t, e, n, o, r), f.end("pic");
3863
- }, Li = "<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>", _i = async (t, e, n, o, r) => {
3862
+ f.start("pic", m), f.start("nvPicPr"), Yi(t, f, n, o, e), f.start("cNvPicPr", i?.noRelativeResize ? { preferRelativeResize: "0" } : {}), f.empty("a:picLocks", el(o)), f.end("cNvPicPr"), f.end("nvPicPr"), f.start("blipFill", p), f.pushDefaultNamespace("a"), dr(f, d, a), f.popDefaultNamespace(), f.end("blipFill"), Ji(t, e, n, o, r), f.end("pic");
3863
+ }, _i = "<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>", Ni = async (t, e, n, o, r) => {
3864
3864
  const s = o.content?.json, a = s?.model, i = s?.part, l = () => r ?? n?.getBounds() ?? {
3865
3865
  x: 0,
3866
3866
  y: 0,
@@ -3875,16 +3875,16 @@ var mi = { checkbox: "Checkbox" }, pi = [
3875
3875
  });
3876
3876
  if (n.leftOut.length > 0) {
3877
3877
  const r = o.content?.name ?? "";
3878
- if (n.leftOut.length === d.length) return t.warn(`The chart '${r}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"), Gi(t, e, o, l());
3878
+ if (n.leftOut.length === d.length) return t.warn(`The chart '${r}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"), qi(t, e, o, l());
3879
3879
  t.warn(`The chart '${r}' combines types one xlsx chart cannot hold together; it is saved without its ${n.leftOut.join(", ")} series.`, void 0, "xlsx.chart.leftOut");
3880
3880
  }
3881
3881
  m = n.family, p = n.xml;
3882
3882
  } else {
3883
- if (!i?.xml || !c) return Gi(t, e, o, l());
3883
+ if (!i?.xml || !c) return qi(t, e, o, l());
3884
3884
  m = c, p = i.xml;
3885
3885
  }
3886
3886
  const f = ke[m], h = [...i?.parts ?? []];
3887
- if ("chartEx" === m) for (const t of [Ri, Fi]) h.some((e) => e.type === t.type) || h.push({
3887
+ if ("chartEx" === m) for (const t of [Fi, Ei]) h.some((e) => e.type === t.type) || h.push({
3888
3888
  id: "",
3889
3889
  ...t
3890
3890
  });
@@ -3896,10 +3896,10 @@ var mi = { checkbox: "Checkbox" }, pi = [
3896
3896
  xml: p,
3897
3897
  parts: h
3898
3898
  }, t, f.path);
3899
- if (!u?.relId) return Gi(t, e, o, l());
3899
+ if (!u?.relId) return qi(t, e, o, l());
3900
3900
  const g = t.getXMLWriter();
3901
- if ("chart" === m) return void Ni(t, e, n, o, m, u.relId, r);
3902
- const y = ((t) => {
3901
+ if ("chart" === m) return void $i(t, e, n, o, m, u.relId, r);
3902
+ const x = ((t) => {
3903
3903
  const e = new Set(t.map((t) => t.type));
3904
3904
  return e.has("regionMap") ? {
3905
3905
  prefix: "cx4",
@@ -3912,18 +3912,18 @@ var mi = { checkbox: "Checkbox" }, pi = [
3912
3912
  uri: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"
3913
3913
  };
3914
3914
  })(d);
3915
- g.start("mc:AlternateContent", { "xmlns:mc": Wi }), g.start("mc:Choice", {
3916
- [`xmlns:${y.prefix}`]: y.uri,
3917
- Requires: y.prefix
3918
- }), Ni(t, e, n, o, m, u.relId, r), g.end("mc:Choice"), g.start("mc:Fallback"), Hi(g, l(), "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");
3919
- }, Ni = (t, e, n, o, r, s, a) => {
3915
+ g.start("mc:AlternateContent", { "xmlns:mc": zi }), g.start("mc:Choice", {
3916
+ [`xmlns:${x.prefix}`]: x.uri,
3917
+ Requires: x.prefix
3918
+ }), $i(t, e, n, o, m, u.relId, r), g.end("mc:Choice"), g.start("mc:Fallback"), Ui(g, l(), "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");
3919
+ }, $i = (t, e, n, o, r, s, a) => {
3920
3920
  const i = t.getXMLWriter(), l = a ?? {
3921
3921
  x: 0,
3922
3922
  y: 0,
3923
3923
  width: 0,
3924
3924
  height: 0
3925
3925
  }, c = "chartEx" === r ? "cx" : "c", d = ke[r].graphicUri;
3926
- i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"), Ki(t, i, n, o, e), o.lockAspect ? (i.start("cNvGraphicFramePr"), i.empty("a:graphicFrameLocks", { noChangeAspect: "1" }), i.end("cNvGraphicFramePr")) : i.empty("cNvGraphicFramePr"), i.end("nvGraphicFramePr"), i.start("xfrm"), i.empty("a:off", {
3926
+ i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"), Yi(t, i, n, o, e), o.lockAspect ? (i.start("cNvGraphicFramePr"), i.empty("a:graphicFrameLocks", { noChangeAspect: "1" }), i.end("cNvGraphicFramePr")) : i.empty("cNvGraphicFramePr"), i.end("nvGraphicFramePr"), i.start("xfrm"), i.empty("a:off", {
3927
3927
  x: fr(l.x),
3928
3928
  y: fr(l.y)
3929
3929
  }), i.empty("a:ext", {
@@ -3934,30 +3934,30 @@ var mi = { checkbox: "Checkbox" }, pi = [
3934
3934
  "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
3935
3935
  "r:id": s
3936
3936
  }), i.end("a:graphicData"), i.end("a:graphic"), i.end("graphicFrame");
3937
- }, $i = async (t, e, n, o, r) => {
3937
+ }, Bi = async (t, e, n, o, r) => {
3938
3938
  const s = t.getXMLWriter(), a = o.content?.json, i = e.getStyles();
3939
- s.start("grpSp"), s.start("nvGrpSpPr"), Ki(t, s, n, o, e);
3940
- const l = Zi(o);
3941
- l ? (s.start("cNvGrpSpPr"), s.empty("a:grpSpLocks", l), s.end("cNvGrpSpPr")) : s.empty("cNvGrpSpPr"), s.end("nvGrpSpPr"), s.start("grpSpPr"), s.pushDefaultNamespace("a"), el(s, r, o, a?.childBounds ?? r), Yo(t, i, a), a?.scene3d && s.raw(a.scene3d), a?.extLst?.properties && s.raw(a.extLst.properties), s.popDefaultNamespace(), s.end("grpSpPr");
3942
- for (const n of Mi(o)) await Bi(t, e, n, Pi(n));
3939
+ s.start("grpSp"), s.start("nvGrpSpPr"), Yi(t, s, n, o, e);
3940
+ const l = Qi(o);
3941
+ l ? (s.start("cNvGrpSpPr"), s.empty("a:grpSpLocks", l), s.end("cNvGrpSpPr")) : s.empty("cNvGrpSpPr"), s.end("nvGrpSpPr"), s.start("grpSpPr"), s.pushDefaultNamespace("a"), nl(s, r, o, a?.childBounds ?? r), Yo(t, i, a), a?.scene3d && s.raw(a.scene3d), a?.extLst?.properties && s.raw(a.extLst.properties), s.popDefaultNamespace(), s.end("grpSpPr");
3942
+ for (const n of Pi(o)) await Oi(t, e, n, Ai(n));
3943
3943
  s.end("grpSp");
3944
- }, Bi = async (t, e, n, o) => {
3944
+ }, Oi = async (t, e, n, o) => {
3945
3945
  switch (n.content?.type) {
3946
3946
  case "picture": {
3947
3947
  const r = sr(t, n.content.json?.resId);
3948
- return r ? Di(t, e, null, n, o, r) : void t.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");
3948
+ return r ? Li(t, e, null, n, o, r) : void t.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");
3949
3949
  }
3950
- case "chart": return _i(t, e, null, n, o);
3951
- case "shape": return Oi(t, e, null, n, o);
3952
- case "group": return $i(t, e, null, n, o);
3953
- default: return xt(n.content?.type) ? void ol(t.getXMLWriter(), n, o) : Gi(t, e, n, o);
3950
+ case "chart": return Ni(t, e, null, n, o);
3951
+ case "shape": return Vi(t, e, null, n, o);
3952
+ case "group": return Bi(t, e, null, n, o);
3953
+ default: return yt(n.content?.type) ? void rl(t.getXMLWriter(), n, o) : qi(t, e, n, o);
3954
3954
  }
3955
- }, Oi = async (t, e, n, o, r) => {
3955
+ }, Vi = async (t, e, n, o, r) => {
3956
3956
  const s = t.getXMLWriter(), a = {}, i = o.content?.json, l = i?.type ?? Ge.Type.Shape, c = e.getStyles();
3957
- l === Ge.Type.Connector ? (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), s.start("cxnSp", a), s.start("nvCxnSpPr"), Ki(t, s, n, o, e), Qi(t, s, n, o, e), s.end("nvCxnSpPr"), qi(t, e, n, o, r), Ji(t, e, n, o), ii(t, c, i?.text), s.end("cxnSp")) : (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.textLink && (a.textlink = i.textLink), void 0 !== i?.locksText && (a.fLocksText = i.locksText ? "1" : "0"), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), s.start("sp", a), s.start("nvSpPr"), Ki(t, s, n, o, e), Qi(t, s, n, o, e), s.end("nvSpPr"), qi(t, e, n, o, r), Ji(t, e, n, o), ii(t, c, i?.text), s.end("sp"));
3958
- }, Vi = async (t, e, n, o) => Gi(t, e, o, n.getBounds()), Wi = "http://schemas.openxmlformats.org/markup-compatibility/2006", zi = "http://schemas.microsoft.com/office/drawing/2010/slicer", ji = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Xi = async (t, e, n, o) => {
3957
+ l === Ge.Type.Connector ? (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), s.start("cxnSp", a), s.start("nvCxnSpPr"), Yi(t, s, n, o, e), tl(t, s, n, o, e), s.end("nvCxnSpPr"), Ji(t, e, n, o, r), Ki(t, e, n, o), li(t, c, i?.text), s.end("cxnSp")) : (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.textLink && (a.textlink = i.textLink), void 0 !== i?.locksText && (a.fLocksText = i.locksText ? "1" : "0"), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), s.start("sp", a), s.start("nvSpPr"), Yi(t, s, n, o, e), tl(t, s, n, o, e), s.end("nvSpPr"), Ji(t, e, n, o, r), Ki(t, e, n, o), li(t, c, i?.text), s.end("sp"));
3958
+ }, Wi = async (t, e, n, o) => qi(t, e, o, n.getBounds()), zi = "http://schemas.openxmlformats.org/markup-compatibility/2006", ji = "http://schemas.microsoft.com/office/drawing/2010/slicer", Xi = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Hi = async (t, e, n, o) => {
3959
3959
  const r = t.getXMLWriter(), s = o.content?.name ?? "", a = Ps(n.getContent()), i = void 0 !== a?.timeline, l = i ? {
3960
- "xmlns:tsle": ji,
3960
+ "xmlns:tsle": Xi,
3961
3961
  Requires: "tsle"
3962
3962
  } : a ? {
3963
3963
  "xmlns:a14": "http://schemas.microsoft.com/office/drawing/2010/main",
@@ -3966,20 +3966,20 @@ var mi = { checkbox: "Checkbox" }, pi = [
3966
3966
  "xmlns:sle15": "http://schemas.microsoft.com/office/drawing/2012/slicer",
3967
3967
  Requires: "sle15"
3968
3968
  }, c = i ? "Timeline: Works in Excel 2013 or higher. Do not move or resize." : a ? "This shape represents a slicer. Slicers are supported in Excel 2010 or later.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2003 or earlier, the slicer cannot be used." : "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.";
3969
- r.start("mc:AlternateContent", { "xmlns:mc": Wi }), r.start("mc:Choice", l), r.start("graphicFrame", { macro: "" }), r.start("nvGraphicFramePr"), Ki(t, r, n, o, e), r.empty("cNvGraphicFramePr"), r.end("nvGraphicFramePr"), r.start("xfrm"), r.empty("a:off", {
3969
+ r.start("mc:AlternateContent", { "xmlns:mc": zi }), r.start("mc:Choice", l), r.start("graphicFrame", { macro: "" }), r.start("nvGraphicFramePr"), Yi(t, r, n, o, e), r.empty("cNvGraphicFramePr"), r.end("nvGraphicFramePr"), r.start("xfrm"), r.empty("a:off", {
3970
3970
  x: "0",
3971
3971
  y: "0"
3972
3972
  }), r.empty("a:ext", {
3973
3973
  cx: "0",
3974
3974
  cy: "0"
3975
- }), r.end("xfrm"), r.start("a:graphic"), i ? (r.start("a:graphicData", { uri: ji }), r.empty("tsle:timeslicer", {
3976
- "xmlns:tsle": ji,
3975
+ }), r.end("xfrm"), r.start("a:graphic"), i ? (r.start("a:graphicData", { uri: Xi }), r.empty("tsle:timeslicer", {
3976
+ "xmlns:tsle": Xi,
3977
3977
  name: s
3978
- }), r.end("a:graphicData")) : (r.start("a:graphicData", { uri: zi }), r.empty("sle:slicer", {
3979
- "xmlns:sle": zi,
3978
+ }), r.end("a:graphicData")) : (r.start("a:graphicData", { uri: ji }), r.empty("sle:slicer", {
3979
+ "xmlns:sle": ji,
3980
3980
  name: s
3981
- }), r.end("a:graphicData")), r.end("a:graphic"), r.end("graphicFrame"), r.end("mc:Choice"), r.start("mc:Fallback"), Hi(r, n.getBounds(), c), r.end("mc:Fallback"), r.end("mc:AlternateContent");
3982
- }, Hi = (t, e, n) => {
3981
+ }), r.end("a:graphicData")), r.end("a:graphic"), r.end("graphicFrame"), r.end("mc:Choice"), r.start("mc:Fallback"), Ui(r, n.getBounds(), c), r.end("mc:Fallback"), r.end("mc:AlternateContent");
3982
+ }, Ui = (t, e, n) => {
3983
3983
  t.start("sp", {
3984
3984
  macro: "",
3985
3985
  textlink: ""
@@ -3999,8 +3999,8 @@ var mi = { checkbox: "Checkbox" }, pi = [
3999
3999
  lang: "en-US",
4000
4000
  sz: "1100"
4001
4001
  }), t.start("a:t"), t.text(n), t.end("a:t"), t.end("a:r"), t.end("a:p"), t.end("txBody"), t.end("sp");
4002
- }, Ui = async (t, e, n, o) => Gi(t, e, o, n.getBounds()), Gi = async (t, e, n, o) => {
4003
- Oi(t, e, null, {
4002
+ }, Gi = async (t, e, n, o) => qi(t, e, o, n.getBounds()), qi = async (t, e, n, o) => {
4003
+ Vi(t, e, null, {
4004
4004
  ...n,
4005
4005
  content: {
4006
4006
  type: "shape",
@@ -4019,19 +4019,19 @@ var mi = { checkbox: "Checkbox" }, pi = [
4019
4019
  }
4020
4020
  }
4021
4021
  }, o);
4022
- }, qi = (t, e, n, o, r) => {
4022
+ }, Ji = (t, e, n, o, r) => {
4023
4023
  const s = t.getXMLWriter(), a = o.content?.json, i = a?.geometry, l = e.getStyles();
4024
- if (s.start("spPr"), s.pushDefaultNamespace("a"), el(s, r, o), "object" == typeof i && i) ((t, e) => {
4024
+ if (s.start("spPr"), s.pushDefaultNamespace("a"), nl(s, r, o), "object" == typeof i && i) ((t, e) => {
4025
4025
  t.start("custGeom"), t.start("avLst");
4026
- for (const n of e.av ?? []) bi(t, n);
4026
+ for (const n of e.av ?? []) Ci(t, n);
4027
4027
  t.end("avLst"), t.start("gdLst");
4028
- for (const n of e.gd ?? []) bi(t, n);
4028
+ for (const n of e.gd ?? []) Ci(t, n);
4029
4029
  t.end("gdLst"), t.start("ahLst");
4030
- for (const n of e.ah ?? []) ki(t, n);
4030
+ for (const n of e.ah ?? []) Ti(t, n);
4031
4031
  t.end("ahLst"), t.start("cxnLst");
4032
4032
  for (const n of Array.isArray(e.cxn) ? e.cxn : []) {
4033
4033
  const e = n.split(" ");
4034
- t.start("cxn", { ang: e[0] }), Ci(t, e[1], e[2]), t.end("cxn");
4034
+ t.start("cxn", { ang: e[0] }), ki(t, e[1], e[2]), t.end("cxn");
4035
4035
  }
4036
4036
  if (t.end("cxnLst"), e.rect) {
4037
4037
  const n = e.rect.split(" ");
@@ -4043,7 +4043,7 @@ var mi = { checkbox: "Checkbox" }, pi = [
4043
4043
  });
4044
4044
  }
4045
4045
  t.start("pathLst");
4046
- for (const n of e.paths) Ii(t, n);
4046
+ for (const n of e.paths) Ri(t, n);
4047
4047
  t.end("pathLst"), t.end("custGeom");
4048
4048
  })(s, i);
4049
4049
  else {
@@ -4061,15 +4061,15 @@ var mi = { checkbox: "Checkbox" }, pi = [
4061
4061
  s.end("prstGeom");
4062
4062
  }
4063
4063
  Yo(t, l, a), a?.scene3d && s.raw(a.scene3d), a?.shape3d && s.raw(a.shape3d), a?.extLst?.properties && s.raw(a.extLst.properties), s.popDefaultNamespace(), s.end("spPr");
4064
- }, Ji = (t, e, n, o) => {
4064
+ }, Ki = (t, e, n, o) => {
4065
4065
  const r = t.getXMLWriter(), s = o.content?.json?.style;
4066
4066
  if (null === s) return;
4067
4067
  const a = e.getStyles().getTheme(), i = ln.defaultStyleRefs(o.content?.json), l = (t, e) => {
4068
4068
  e && (r.start(t, { idx: String(e.index) }), e.color && Lo(r, a, e.color), r.end(t));
4069
4069
  };
4070
4070
  r.start("style"), r.pushDefaultNamespace("a"), l("lnRef", s?.stroke ?? i.stroke), l("fillRef", s?.fill ?? i.fill), l("effectRef", s?.effect ?? i.effect), l("fontRef", s?.font ?? i.font), r.popDefaultNamespace(), r.end("style");
4071
- }, Ki = (t, e, n, o, r) => {
4072
- let s = Yi(t, r).assigned.get(o);
4071
+ }, Yi = (t, e, n, o, r) => {
4072
+ let s = Zi(t, r).assigned.get(o);
4073
4073
  if (void 0 === s) {
4074
4074
  const e = t.getSharedStates();
4075
4075
  let n = e.get("uniqueIdCounter");
@@ -4080,7 +4080,7 @@ var mi = { checkbox: "Checkbox" }, pi = [
4080
4080
  name: o.content?.name
4081
4081
  };
4082
4082
  o.content?.description && (i.descr = o.content.description), o.hidden && (i.hidden = "1"), a?.title && (i.title = a.title), e.start("cNvPr", i), Go(t, e, "a:hlinkClick", a?.hyperlink), Go(t, e, "a:hlinkHover", a?.hoverHyperlink), a?.extLst?.nonVisual && e.raw(a.extLst.nonVisual), e.end("cNvPr");
4083
- }, Yi = (t, e) => {
4083
+ }, Zi = (t, e) => {
4084
4084
  const n = t.getSharedStates();
4085
4085
  let o = n.get("drawingIds");
4086
4086
  o || (o = /* @__PURE__ */ new Map(), n.set("drawingIds", o));
@@ -4089,18 +4089,18 @@ var mi = { checkbox: "Checkbox" }, pi = [
4089
4089
  assigned: /* @__PURE__ */ new Map(),
4090
4090
  bySource: /* @__PURE__ */ new Map()
4091
4091
  }, o.set(e, r)), r;
4092
- }, Zi = (t) => {
4092
+ }, Qi = (t) => {
4093
4093
  const e = { ...(t.content?.json)?.locks };
4094
4094
  void 0 !== t.lockAspect && void 0 === e.noChangeAspect && (e.noChangeAspect = t.lockAspect);
4095
4095
  const n = {};
4096
4096
  for (const t of Object.keys(e)) e[t] && (n[t] = "1");
4097
4097
  return Object.keys(n).length > 0 ? n : null;
4098
- }, Qi = (t, e, n, o, r) => {
4099
- const s = o.content?.json, a = Zi(o);
4098
+ }, tl = (t, e, n, o, r) => {
4099
+ const s = o.content?.json, a = Qi(o);
4100
4100
  if (s?.type === Ge.Type.Connector) {
4101
4101
  const n = s.connectorEnds;
4102
4102
  if (!a && !n) return void e.empty("cNvCxnSpPr");
4103
- const o = Yi(t, r);
4103
+ const o = Zi(t, r);
4104
4104
  e.start("cNvCxnSpPr"), a && e.empty("a:cxnSpLocks", a), n?.start && e.empty("a:stCxn", {
4105
4105
  id: String(o.bySource.get(n.start.id) ?? n.start.id),
4106
4106
  idx: String(n.start.index)
@@ -4112,13 +4112,13 @@ var mi = { checkbox: "Checkbox" }, pi = [
4112
4112
  }
4113
4113
  const i = { txBox: s?.textBox ? "1" : void 0 };
4114
4114
  a ? (e.start("cNvSpPr", i), e.empty("a:spLocks", a), e.end("cNvSpPr")) : e.empty("cNvSpPr", i);
4115
- }, tl = (t) => {
4115
+ }, el = (t) => {
4116
4116
  const e = { ...(t.content?.json)?.locks };
4117
4117
  void 0 !== t.lockAspect ? e.noChangeAspect = t.lockAspect : e.noChangeAspect ??= !0;
4118
4118
  const n = {};
4119
4119
  for (const t of Object.keys(e)) e[t] && (n[t] = "1");
4120
4120
  return n;
4121
- }, el = (t, e, n, o) => {
4121
+ }, nl = (t, e, n, o) => {
4122
4122
  const r = {}, s = n.rotation;
4123
4123
  void 0 !== s && 0 !== s && (r.rot = "" + hr(s)), n.flipH && (r.flipH = "1"), n.flipV && (r.flipV = "1"), t.start("xfrm", r), t.empty("off", {
4124
4124
  x: fr(e.x),
@@ -4133,13 +4133,13 @@ var mi = { checkbox: "Checkbox" }, pi = [
4133
4133
  cx: fr(o.width),
4134
4134
  cy: fr(o.height)
4135
4135
  })), t.end("xfrm");
4136
- }, nl = (t, e, n) => {
4137
- t.start(e), t.start("col"), t.text(n.c ?? 0), t.end("col"), t.start("colOff"), t.text(fr(n.x)), t.end("colOff"), t.start("row"), t.text(n.r ?? 0), t.end("row"), t.start("rowOff"), t.text(fr(n.y)), t.end("rowOff"), t.end(e);
4138
4136
  }, ol = (t, e, n) => {
4137
+ t.start(e), t.start("col"), t.text(n.c ?? 0), t.end("col"), t.start("colOff"), t.text(fr(n.x)), t.end("colOff"), t.start("row"), t.text(n.r ?? 0), t.end("row"), t.start("rowOff"), t.text(fr(n.y)), t.end("rowOff"), t.end(e);
4138
+ }, rl = (t, e, n) => {
4139
4139
  const o = e.content.json;
4140
4140
  if (t.start("mc:AlternateContent", ne), t.start("mc:Choice", mt), n) return t.raw(bt(e.content.type, o, e.content?.name, n)), t.end("mc:Choice"), t.empty("mc:Fallback"), void t.end("mc:AlternateContent");
4141
- t.start("twoCellAnchor", { editAs: e.anchorType || "twoCell" }), nl(t, "from", e.anchor.tl), nl(t, "to", e.anchor.br), t.raw(bt(e.content.type, o, e.content?.name)), t.empty("clientData", { fPrintsWithSheet: "0" }), t.end("twoCellAnchor"), t.end("mc:Choice"), t.empty("mc:Fallback"), t.end("mc:AlternateContent");
4142
- }, rl = async (t, e, n) => {
4141
+ t.start("twoCellAnchor", { editAs: e.anchorType || "twoCell" }), ol(t, "from", e.anchor.tl), ol(t, "to", e.anchor.br), t.raw(bt(e.content.type, o, e.content?.name)), t.empty("clientData", { fPrintsWithSheet: "0" }), t.end("twoCellAnchor"), t.end("mc:Choice"), t.empty("mc:Fallback"), t.end("mc:AlternateContent");
4142
+ }, sl = async (t, e, n) => {
4143
4143
  const o = await n.getExternalURI();
4144
4144
  if (o) return void t.addExternal(er, o);
4145
4145
  const r = t.getSharedStates();
@@ -4157,16 +4157,16 @@ var mi = { checkbox: "Checkbox" }, pi = [
4157
4157
  const i = t.addBinary(a.bytes, a.type.mime, er, `../media/image${a.index}.${a.type.ext}`, !0, e);
4158
4158
  i.relId !== e && t.log(`Legacy drawing image '${e}' was written as '${i.relId}'; the markup will not find it.`);
4159
4159
  };
4160
- function sl(t) {
4160
+ function al(t) {
4161
4161
  return t.toISOString().substring(0, 22);
4162
4162
  }
4163
- function al(t, e, n, o, r, s, a, i, l) {
4163
+ function il(t, e, n, o, r, s, a, i, l) {
4164
4164
  const c = {
4165
4165
  ref: e,
4166
- dT: sl(r ?? /* @__PURE__ */ new Date()),
4167
- personId: o ? il(o) : void 0,
4168
- id: il(n),
4169
- parentId: a ? il(a) : void 0,
4166
+ dT: al(r ?? /* @__PURE__ */ new Date()),
4167
+ personId: o ? ll(o) : void 0,
4168
+ id: ll(n),
4169
+ parentId: a ? ll(a) : void 0,
4170
4170
  done: i ? "1" : void 0
4171
4171
  };
4172
4172
  if (t.start("threadedComment", c), t.start("text", $.test(s) || /[\n\r]/.test(s) ? A : void 0), t.text(s), t.end("text"), l && l.length > 0) {
@@ -4174,8 +4174,8 @@ function al(t, e, n, o, r, s, a, i, l) {
4174
4174
  for (let e = 0; e < l.length; e++) {
4175
4175
  const n = l[e];
4176
4176
  t.empty("mention", {
4177
- mentionpersonId: il(n.personId),
4178
- mentionId: il(n.id),
4177
+ mentionpersonId: ll(n.personId),
4178
+ mentionId: ll(n.id),
4179
4179
  startIndex: n.startIndex ?? 0,
4180
4180
  length: n.length ?? 0
4181
4181
  });
@@ -4184,17 +4184,17 @@ function al(t, e, n, o, r, s, a, i, l) {
4184
4184
  }
4185
4185
  t.end("threadedComment");
4186
4186
  }
4187
- function il(t) {
4187
+ function ll(t) {
4188
4188
  return `{${t.replace(/^\{|\}$/g, "").toUpperCase()}}`;
4189
4189
  }
4190
- var ll = {
4190
+ var cl = {
4191
4191
  rowIndex: 0,
4192
4192
  colIndex: 0
4193
4193
  };
4194
- function cl(t, e, n, o) {
4194
+ function dl(t, e, n, o) {
4195
4195
  if (null == o) return;
4196
- ll.rowIndex = e, ll.colIndex = n;
4197
- const r = Fe.cellToString(ll);
4196
+ cl.rowIndex = e, cl.colIndex = n;
4197
+ const r = Fe.cellToString(cl);
4198
4198
  let s, a;
4199
4199
  switch (typeof o) {
4200
4200
  case "number":
@@ -4217,7 +4217,7 @@ function cl(t, e, n, o) {
4217
4217
  t: s
4218
4218
  } : { r }), t.start("v"), t.text(a), t.end("v"), t.end("cell");
4219
4219
  }
4220
- var dl = [
4220
+ var ml = [
4221
4221
  new class extends Tn {
4222
4222
  constructor() {
4223
4223
  super({
@@ -4442,10 +4442,10 @@ var dl = [
4442
4442
  }, "/" + u[t]);
4443
4443
  g[t] = l.relId ?? null;
4444
4444
  }
4445
- const y = !0 === l.get(zs);
4445
+ const x = !0 === l.get(zs);
4446
4446
  for (let n = 0; n < p; n++) {
4447
4447
  const r = m(i[n]);
4448
- r && (g[n] = js(e, t, i[n].kind, r, d === o[n], y));
4448
+ r && (g[n] = js(e, t, i[n].kind, r, d === o[n], x));
4449
4449
  }
4450
4450
  for (let t = 0; t < p; t++) {
4451
4451
  const r = o[t];
@@ -4465,7 +4465,7 @@ var dl = [
4465
4465
  pivot: [],
4466
4466
  timeline: [],
4467
4467
  cacheNames: []
4468
- }, o = xs(t), r = e.getWorksheets().getItems({ visibility: qe.Visibility.VeryHidden });
4468
+ }, o = ys(t), r = e.getWorksheets().getItems({ visibility: qe.Visibility.VeryHidden });
4469
4469
  for (let e = 0; e < r.length; e++) {
4470
4470
  const s = Ds(r[e]);
4471
4471
  for (let e = 0; e < s.length; e++) {
@@ -4485,9 +4485,9 @@ var dl = [
4485
4485
  }
4486
4486
  return n;
4487
4487
  })(e, t), await e.waitEmit();
4488
- const x = t.getTheme();
4488
+ const y = t.getTheme();
4489
4489
  e.addPart("theme", {
4490
- model: x,
4490
+ model: y,
4491
4491
  json: r.theme
4492
4492
  }), await e.waitEmit(), e.addPart("styles", {
4493
4493
  styles: t.getStyles(),
@@ -4640,7 +4640,7 @@ var dl = [
4640
4640
  }
4641
4641
  async emit(t, e) {
4642
4642
  const n = e.getXMLWriter(), o = t.model, r = t.json, a = he(o, r);
4643
- Va(r, a), n.decl(), n.start("worksheet", {
4643
+ Wa(r, a), n.decl(), n.start("worksheet", {
4644
4644
  xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
4645
4645
  "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
4646
4646
  "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
@@ -4753,8 +4753,8 @@ var dl = [
4753
4753
  d.colorId = "" + i;
4754
4754
  }
4755
4755
  d.workbookViewId = "0";
4756
- const g = n.getSelection().getCoords(), y = Fe.cellToString(g.cell);
4757
- let x = {};
4756
+ const g = n.getSelection().getCoords(), x = Fe.cellToString(g.cell);
4757
+ let y = {};
4758
4758
  const v = s.getFreezePanes(), w = v.coords ?? {}, S = w.colIndex ?? 0, b = w.rowIndex ?? 0;
4759
4759
  if (S > 0 || b > 0) {
4760
4760
  const t = v.topLeft ?? {}, o = t.top ?? 0, r = t.left ?? 0, s = n.getRowHeaders().getMetrics().getIndex(o), i = n.getColumnHeaders().getMetrics().getIndex(r), l = S - i, c = b - s, m = Math.max(S, n.getColumnHeaders().getMetrics().getIndex(a.left + n.getColumnHeaders().getMetrics().getOffset(S) - r)), p = Math.max(b, n.getRowHeaders().getMetrics().getIndex(a.top + n.getRowHeaders().getMetrics().getOffset(b) - o)), f = Fe.cellToString({
@@ -4780,18 +4780,18 @@ var dl = [
4780
4780
  0 === S ? (h.activePane = "bottomLeft", e.empty("pane", h), g("topLeft", Fe.cellToString({
4781
4781
  colIndex: m,
4782
4782
  rowIndex: s
4783
- }), !1), x.pane = "bottomLeft") : 0 === b ? (h.activePane = "topRight", e.empty("pane", h), g("topLeft", Fe.cellToString({
4783
+ }), !1), y.pane = "bottomLeft") : 0 === b ? (h.activePane = "topRight", e.empty("pane", h), g("topLeft", Fe.cellToString({
4784
4784
  colIndex: i,
4785
4785
  rowIndex: p
4786
- }), !1), x.pane = "topRight") : (h.activePane = "bottomRight", e.empty("pane", h), g("topLeft", f, !1), g("topRight", Fe.cellToString({
4786
+ }), !1), y.pane = "topRight") : (h.activePane = "bottomRight", e.empty("pane", h), g("topLeft", f, !1), g("topRight", Fe.cellToString({
4787
4787
  colIndex: m,
4788
4788
  rowIndex: s
4789
4789
  }), !0), g("bottomLeft", Fe.cellToString({
4790
4790
  colIndex: i,
4791
4791
  rowIndex: p
4792
- }), !0), x.pane = "bottomRight");
4792
+ }), !0), y.pane = "bottomRight");
4793
4793
  } else e.start("sheetView", d);
4794
- x.activeCell = y;
4794
+ y.activeCell = x;
4795
4795
  const C = g.ranges, k = C ? C.length : 0;
4796
4796
  if (k > 0) {
4797
4797
  let t = "";
@@ -4799,9 +4799,9 @@ var dl = [
4799
4799
  const n = C[e];
4800
4800
  e > 0 && (t += " "), t += Fe.rangeToString(n);
4801
4801
  }
4802
- x.sqref = t, (g.rangeIndex ?? 0) > 0 && (x.activeCellId = "" + g.rangeIndex);
4803
- } else "A1" === y ? x = null : x.sqref = y;
4804
- x && e.empty("selection", x);
4802
+ y.sqref = t, (g.rangeIndex ?? 0) > 0 && (y.activeCellId = "" + g.rangeIndex);
4803
+ } else "A1" === x ? y = null : y.sqref = x;
4804
+ y && e.empty("selection", y);
4805
4805
  e.end("sheetView"), e.end("sheetViews");
4806
4806
  }(0, n, o, 0, t.isSelected);
4807
4807
  const i = ((t, e, n) => {
@@ -4876,7 +4876,7 @@ var dl = [
4876
4876
  const t = n.buttons?.length ? Vt(n) : null;
4877
4877
  if (t) for (const o of n.buttons) {
4878
4878
  const n = Fe.fastStringToRange(o);
4879
- for (let o = n.rowStart; o <= n.rowEnd; o++) for (let r = n.colStart; r <= n.colEnd; r++) (e ??= /* @__PURE__ */ new Set()).add((t.rowStart + o) * Oa + t.colStart + r);
4879
+ for (let o = n.rowStart; o <= n.rowEnd; o++) for (let r = n.colStart; r <= n.colEnd; r++) (e ??= /* @__PURE__ */ new Set()).add((t.rowStart + o) * Va + t.colStart + r);
4880
4880
  }
4881
4881
  }
4882
4882
  return e;
@@ -4893,8 +4893,8 @@ var dl = [
4893
4893
  return e;
4894
4894
  }(n);
4895
4895
  let u = 0, g = 0;
4896
- const y = n.getUsedRange();
4897
- let x = 0;
4896
+ const x = n.getUsedRange();
4897
+ let y = 0;
4898
4898
  const v = i?.run, w = o.rows ? Fe.refsToRuns(o.rows, !1) : null, S = o.defaultRowSize ?? .75 * n.getStyles().getNormal().getBestFit().height, k = w && v ? ((t, e, n, o) => {
4899
4899
  const r = [];
4900
4900
  let s = 0;
@@ -4911,13 +4911,13 @@ var dl = [
4911
4911
  }
4912
4912
  return a(s, o - 1), r;
4913
4913
  })(w, v, S, n.getEntireRange().getRowEnd() + 1) : w, T = k ? k.length : 0, I = ua(k), R = null !== I ? I - 1 : k?.[T - 1]?.max ?? -1, F = o.cols ? Fe.refsToRuns(o.cols, !0) : null, E = F ? F.length : 0, M = F?.[E - 1]?.max ?? -1;
4914
- if (y || T > 0) {
4915
- const l = .75, y = o.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * l, v = n.getStyles().getNormal().getBestFit().height * l, w = ha(n.getOutline(), Ue.Axis.Row), S = (t, e) => {
4916
- const n = Xa;
4914
+ if (x || T > 0) {
4915
+ const l = .75, x = o.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * l, v = n.getStyles().getNormal().getBestFit().height * l, w = ha(n.getOutline(), Ue.Axis.Row), S = (t, e) => {
4916
+ const n = Ha;
4917
4917
  if (n.r = "" + (t + 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, !e) return n;
4918
4918
  const o = e.value;
4919
4919
  void 0 !== o.s && (n.s = "" + (a ? a.getXf(o.s, !0, !1) : o.s), n.customFormat = "1"), o.h && (n.hidden = "1");
4920
- const r = o.csz ?? !1, s = o.sz ?? y;
4920
+ const r = o.csz ?? !1, s = o.sz ?? x;
4921
4921
  return (s !== (i?.height ?? v) || r) && (n.ht = "" + s), r && (n.customHeight = "1"), o.l && (n.outlineLevel = "" + o.l), w.has(t) && (n.collapsed = "1"), o.tt && (n.thickTop = "1"), o.tb && (n.thickBot = "1"), n;
4922
4922
  };
4923
4923
  let T = 0, E = k?.[T] ?? null, P = E?.min ?? Number.MAX_SAFE_INTEGER, D = E?.max ?? Number.MAX_SAFE_INTEGER, L = E?.value?.s, _ = -1, N = 0, B = F?.[N] ?? null, O = B?.min ?? Number.MAX_SAFE_INTEGER, V = B?.max ?? Number.MAX_SAFE_INTEGER, W = B?.value?.s;
@@ -4968,27 +4968,31 @@ var dl = [
4968
4968
  for (let o = 0; o < U; o++) {
4969
4969
  const a = X[o];
4970
4970
  try {
4971
- const t = a[0], d = n.getRange(t), h = d.getCoords();
4972
- let u = a[1];
4973
- if (xa.test(u) && va(n, h, u, G)) continue;
4974
- let g = null;
4975
- const y = {
4976
- rowIndex: h.rowStart,
4977
- colIndex: h.colStart
4978
- }, v = l.parse(u, y), w = v ? l.annotate(v) : void 0, S = v ? l.spell(v, p.has(`${h.rowStart},${h.colStart}`), m(h.rowStart, h.colStart)) : null;
4979
- let b = S ? Le.imager(S, { entireCoords: c }) : null;
4980
- if (b) u = b(y);
4981
- else if (!Ae.isSingleCell(h)) {
4971
+ const d = a[0], h = n.getRange(d), u = h.getCoords();
4972
+ let g = a[1];
4973
+ if (va.test(g) && wa(n, u, g, G)) continue;
4974
+ let x = null;
4975
+ const v = {
4976
+ rowIndex: u.rowStart,
4977
+ colIndex: u.colStart
4978
+ }, w = l.parse(g, v), S = w ? l.annotate(w) : void 0, b = w ? l.spell(w, p.has(`${u.rowStart},${u.colStart}`), m(u.rowStart, u.colStart)) : null;
4979
+ let C = b ? Le.imager(b, { entireCoords: c }) : null;
4980
+ if (C) g = C(v);
4981
+ else if (!Ae.isSingleCell(u)) {
4982
4982
  const t = [];
4983
- Fe.normalizeA1ToR1C1(u, y.rowIndex, y.colIndex, t), b = (e) => {
4984
- const n = e ?? y;
4983
+ Fe.normalizeA1ToR1C1(g, v.rowIndex, v.colIndex, t), C = (e) => {
4984
+ const n = e ?? v;
4985
4985
  return Fe.resolveRelativeToA1(t, n.rowIndex, n.colIndex);
4986
4986
  };
4987
4987
  }
4988
- let C = !0 === w?.cm;
4989
- const k = !0 === w?.ca;
4988
+ if (g.length > xa) {
4989
+ t.warn(`The formula at '${n.getName()}'!${Fe.rangeToString(u)} is ${g.length.toLocaleString()} characters as xlsx stores it; Excel allows at most ${xa.toLocaleString()}. Its cells are saved as values.`, void 0, "xlsx.formula.lengthLimit");
4990
+ continue;
4991
+ }
4992
+ let k = !0 === S?.cm;
4993
+ const T = !0 === S?.ca;
4990
4994
  if (r.affects(o)) {
4991
- g = null, C = !1;
4995
+ x = null, k = !1;
4992
4996
  const t = (t, e, n) => {
4993
4997
  const o = {
4994
4998
  rowStart: t,
@@ -5004,10 +5008,10 @@ var dl = [
5004
5008
  isDynamicRange: !1,
5005
5009
  isWrapped: !0
5006
5010
  }]);
5007
- }, o = e.get(`${h.rowStart},${h.colStart}`), r = void 0 !== o && (o.rowEnd > o.rowStart || o.colEnd > o.colStart);
5011
+ }, o = e.get(`${u.rowStart},${u.colStart}`), r = void 0 !== o && (o.rowEnd > o.rowStart || o.colEnd > o.colStart);
5008
5012
  let a = !1;
5009
5013
  if (r) {
5010
- const e = s(u, d.getCell().getValue());
5014
+ const e = s(g, h.getCell().getValue());
5011
5015
  if (null !== e) for (let r = o.rowStart; r <= o.rowEnd; r++) for (let s = o.colStart; s <= o.colEnd; s++) {
5012
5016
  if (r === o.rowStart && s === o.colStart) {
5013
5017
  t(r, s, e), a = !0;
@@ -5021,24 +5025,24 @@ var dl = [
5021
5025
  })), l = H(i.getCell().getValue());
5022
5026
  null !== l && t(r, s, l);
5023
5027
  }
5024
- } else d.forEach((e, n) => {
5025
- const o = n.getCoords(), r = b?.(o) ?? u, i = s(r, n.getCell().getValue());
5028
+ } else h.forEach((e, n) => {
5029
+ const o = n.getCoords(), r = C?.(o) ?? g, i = s(r, n.getCell().getValue());
5026
5030
  null !== i && (t(o.rowIndex, o.colIndex, i), a = !0);
5027
5031
  }, { includeEmpty: !0 });
5028
5032
  if (a) continue;
5029
5033
  }
5030
- const T = -1 !== u.indexOf("!") || -1 !== u.indexOf("[");
5031
- C || d.isSingleCell() || T || i(h) || (g = "" + x++);
5032
- const I = null !== g || d.isSingleCell() ? null : b, R = [h, {
5033
- coords: h,
5034
- formula: u,
5035
- sharedId: g,
5036
- ref: t,
5037
- isDynamicRange: C,
5038
- isExcelVolatile: k,
5039
- memberImage: I
5034
+ const I = -1 !== g.indexOf("!") || -1 !== g.indexOf("[");
5035
+ k || h.isSingleCell() || I || i(u) || (x = "" + y++);
5036
+ const R = null !== x || h.isSingleCell() ? null : C, F = [u, {
5037
+ coords: u,
5038
+ formula: g,
5039
+ sharedId: x,
5040
+ ref: d,
5041
+ isDynamicRange: k,
5042
+ isExcelVolatile: T,
5043
+ memberImage: R
5040
5044
  }];
5041
- f.push(R);
5045
+ f.push(F);
5042
5046
  } catch (e) {
5043
5047
  t.log(`Could not write the formula '${a[1]}' over '${a[0]}'; those cells are written as values only. ${e}`);
5044
5048
  continue;
@@ -5090,16 +5094,16 @@ var dl = [
5090
5094
  for (; i <= M && i > V;) N++, B = F?.[N] ?? null, O = B?.min ?? Number.MAX_SAFE_INTEGER, V = B?.max ?? Number.MAX_SAFE_INTEGER, W = B?.value?.s;
5091
5095
  void 0 !== W && i >= O && i <= V && (l = W);
5092
5096
  }
5093
- const y = o.getType();
5094
- let x = null;
5095
- U > 0 && (x = o.getInjectedReference(1) ?? null);
5097
+ const x = o.getType();
5098
+ let y = null;
5099
+ U > 0 && (y = o.getInjectedReference(1) ?? null);
5096
5100
  let v = !1;
5097
5101
  J > 0 && (v = o.getInjectedReference(2) ?? !1);
5098
5102
  let w = null;
5099
5103
  Y > 0 && (w = o.getInjectedReference(3) ?? null);
5100
- const S = "error" === w?.kind, b = "fixed" === w?.kind, k = ja;
5104
+ const S = "error" === w?.kind, b = "fixed" === w?.kind, k = Xa;
5101
5105
  k.r = o.getAddress(), k.s = void 0, k.t = void 0, k.cm = void 0, k.vm = void 0;
5102
- const T = null !== f && f.has(s * Oa + i), I = null !== h ? function(t, e, n) {
5106
+ const T = null !== f && f.has(s * Va + i), I = null !== h ? function(t, e, n) {
5103
5107
  for (const { table: o, coords: r, formats: s } of t) {
5104
5108
  if (e < r.rowStart || e > r.rowEnd || n < r.colStart || n > r.colEnd) continue;
5105
5109
  const t = o.getStyleAt(e, n), a = t.getAlignment(), i = "left" === a.getHorizontal() ? a.getIndent() : null, l = t.getNumberFormat(), c = l && "General" !== l ? l : null, d = s?.formatAt(e - r.rowStart, n - r.colStart).user ?? null;
@@ -5114,7 +5118,7 @@ var dl = [
5114
5118
  (a || T || null !== I) && (l = p.getXf(l ?? 0, null !== a, T, I?.labelIndent ?? null, I?.numberFormat ?? null, I?.user ?? null)), void 0 !== l && 0 !== l && (k.s = "" + l);
5115
5119
  const R = G.length > 0 ? o.getInjectedReference(4) ?? null : null;
5116
5120
  let E = null, j = null;
5117
- switch (y) {
5121
+ switch (x) {
5118
5122
  case an.Boolean:
5119
5123
  E = n ? "1" : "0", j = "b";
5120
5124
  break;
@@ -5123,18 +5127,18 @@ var dl = [
5123
5127
  if (j = "e", t > 7) E = De.BuiltIn.Value.getLabel(), k.vm = "" + m.add(n);
5124
5128
  else if (t < 1) {
5125
5129
  let t;
5126
- j = "s", x ? (t = "=" + x.formula, x = null) : t = "" + n.getLabel(), E = "" + c.add(t), u++;
5130
+ j = "s", y ? (t = "=" + y.formula, y = null) : t = "" + n.getLabel(), E = "" + c.add(t), u++;
5127
5131
  } else E = "" + n.getLabel();
5128
5132
  break;
5129
5133
  case an.Number:
5130
5134
  E = tt(n), j = null;
5131
5135
  break;
5132
5136
  case an.String:
5133
- E = n, x || R ? (j = "str", E = n) : (j = "s", E = "" + c.add(E), u++);
5137
+ E = n, y || R ? (j = "str", E = n) : (j = "s", E = "" + c.add(E), u++);
5134
5138
  break;
5135
5139
  case an.RichData:
5136
5140
  if (n instanceof rn) {
5137
- x || R ? (j = "str", E = n.getText()) : (j = "s", E = "" + c.add(function(t, e, n) {
5141
+ y || R ? (j = "str", E = n.getText()) : (j = "s", E = "" + c.add(function(t, e, n) {
5138
5142
  const o = t.getRuns(), r = e.getCell().getRichText();
5139
5143
  if (!r) return t.getText();
5140
5144
  const s = new Array(o.length);
@@ -5158,29 +5162,29 @@ var dl = [
5158
5162
  }
5159
5163
  if (n instanceof _e) {
5160
5164
  const t = n.toPrimitive();
5161
- "number" == typeof t ? E = tt(t) : "boolean" == typeof t ? (j = "b", E = t ? "1" : "0") : x || R ? (j = "str", E = t) : (j = "s", E = "" + c.add(t), u++);
5165
+ "number" == typeof t ? E = tt(t) : "boolean" == typeof t ? (j = "b", E = t ? "1" : "0") : y || R ? (j = "str", E = t) : (j = "s", E = "" + c.add(t), u++);
5162
5166
  break;
5163
5167
  }
5164
- j = "e", E = De.BuiltIn.Value.getLabel(), k.vm = "" + m.add(n, x?.formula ?? (R ? "" : null));
5168
+ j = "e", E = De.BuiltIn.Value.getLabel(), k.vm = "" + m.add(n, y?.formula ?? (R ? "" : null));
5165
5169
  }
5166
5170
  j && (k.t = j);
5167
- const X = !x?.isWrapped && (null !== w || (x?.isDynamicRange ?? !1));
5168
- if (null !== x || null !== E || null !== R) {
5169
- if (X && null !== x && !b && (k.cm = "" + d.registerArrayCell(S)), e.start("c", k), x) {
5170
- const t = s === x.coords.rowStart && i === x.coords.colStart;
5171
- let n = x.formula;
5172
- x.memberImage && !t && (n = x.memberImage({
5171
+ const X = !y?.isWrapped && (null !== w || (y?.isDynamicRange ?? !1));
5172
+ if (null !== y || null !== E || null !== R) {
5173
+ if (X && null !== y && !b && (k.cm = "" + d.registerArrayCell(S)), e.start("c", k), y) {
5174
+ const t = s === y.coords.rowStart && i === y.coords.colStart;
5175
+ let n = y.formula;
5176
+ y.memberImage && !t && (n = y.memberImage({
5173
5177
  rowIndex: s,
5174
5178
  colIndex: i
5175
5179
  }));
5176
5180
  let o, r = null;
5177
- const a = x.sharedId;
5181
+ const a = y.sharedId;
5178
5182
  if (a) {
5179
- o = Ua;
5180
- const t = x.coords;
5181
- t.colStart === i && t.rowStart === s ? (o.ref = x.ref, o.si = a, r = x.formula) : (o.ref = void 0, o.si = a);
5182
- } else X ? (o = Ga, o.aca = S ? "1" : void 0, o.ref = S ? k.r : w?.ref ?? k.r, r = n) : (o = Ha, r = n);
5183
- o.ca = v || S || x.isExcelVolatile ? "1" : void 0, r ? (e.start("f", o), e.text(r), e.end("f")) : e.empty("f", o);
5183
+ o = Ga;
5184
+ const t = y.coords;
5185
+ t.colStart === i && t.rowStart === s ? (o.ref = y.ref, o.si = a, r = y.formula) : (o.ref = void 0, o.si = a);
5186
+ } else X ? (o = qa, o.aca = S ? "1" : void 0, o.ref = S ? k.r : w?.ref ?? k.r, r = n) : (o = Ua, r = n);
5187
+ o.ca = v || S || y.isExcelVolatile ? "1" : void 0, r ? (e.start("f", o), e.text(r), e.end("f")) : e.empty("f", o);
5184
5188
  } else R && e.empty("f", v ? {
5185
5189
  ...R,
5186
5190
  ca: "1"
@@ -5217,7 +5221,7 @@ var dl = [
5217
5221
  }
5218
5222
  const s = t.getWorkbook();
5219
5223
  if (!s) return ma;
5220
- const a = await ye(s, o);
5224
+ const a = await xe(s, o);
5221
5225
  return 0 === a.size ? ma : {
5222
5226
  names: a,
5223
5227
  perFormula: r,
@@ -5246,7 +5250,7 @@ var dl = [
5246
5250
  const n = r[e];
5247
5251
  let o, s;
5248
5252
  Array.isArray(n) ? (o = n[0], s = n[1]) : (o = n.r, s = n.v);
5249
- const i = Ia(o);
5253
+ const i = Ra(o);
5250
5254
  if (!i || !s) {
5251
5255
  t.log("Skipping protectedRange with no range.");
5252
5256
  continue;
@@ -5283,7 +5287,7 @@ var dl = [
5283
5287
  const m = /* @__PURE__ */ new Map(), p = function(t, e, n, o, r) {
5284
5288
  const s = [], a = o.conditionals, i = a ? a.length : 0;
5285
5289
  if (0 === i) return s;
5286
- const l = t.getSharedStates(), c = xr(l), d = n.getStyles().getTheme(), m = l.get(u);
5290
+ const l = t.getSharedStates(), c = yr(l), d = n.getStyles().getTheme(), m = l.get(u);
5287
5291
  let p = null, f = 0;
5288
5292
  const h = (t) => {
5289
5293
  "number" != typeof t.pivotKey || r.has(t.pivotKey) || r.set(t.pivotKey, f);
@@ -5292,30 +5296,30 @@ var dl = [
5292
5296
  const o = a[n];
5293
5297
  let r, i;
5294
5298
  Array.isArray(o) ? (r = o[0], i = o[1]) : (r = o.r, i = o.v);
5295
- const l = Ia(r);
5299
+ const l = Ra(r);
5296
5300
  if (!l || !i) {
5297
5301
  t.log("Skipping conditionalFormatting with no range.");
5298
5302
  continue;
5299
5303
  }
5300
- const u = Ma(l), g = Aa(i.scale, u, m);
5304
+ const u = Pa(l), g = Da(i.scale, u, m);
5301
5305
  g !== i.scale && (i = {
5302
5306
  ...i,
5303
5307
  scale: g
5304
5308
  });
5305
- const y = g ? { type: g.type } : te(i.condition, Ta(l), (e, n) => t.warn(e, void 0, n));
5306
- y ? (y.formulas && (y.formulas = y.formulas.map((t) => Pa(t, u, m))), g?.type === Ve.ScaleType.IconSet && Ca(g) ? (f++, h(i), s.push({
5309
+ const x = g ? { type: g.type } : te(i.condition, Ia(l), (e, n) => t.warn(e, void 0, n));
5310
+ x ? (x.formulas && (x.formulas = x.formulas.map((t) => Aa(t, u, m))), g?.type === Ve.ScaleType.IconSet && ka(g) ? (f++, h(i), s.push({
5307
5311
  guid: fe(Pe.uuidV4),
5308
5312
  sqref: l,
5309
5313
  priority: f,
5310
5314
  scale: g
5311
- })) : g || !Ea(y) ? (l !== p && (null !== p && e.end("conditionalFormatting"), e.start("conditionalFormatting", {
5315
+ })) : g || !Ma(x) ? (l !== p && (null !== p && e.end("conditionalFormatting"), e.start("conditionalFormatting", {
5312
5316
  sqref: l,
5313
5317
  pivot: "number" == typeof i.pivotKey ? "1" : void 0
5314
- }), p = l), f++, h(i), ka(t, e, d, i, y, l, f, c, s)) : (f++, h(i), s.push({
5318
+ }), p = l), f++, h(i), Ta(t, e, d, i, x, l, f, c, s)) : (f++, h(i), s.push({
5315
5319
  guid: fe(Pe.uuidV4),
5316
5320
  sqref: l,
5317
5321
  priority: f,
5318
- rule: y,
5322
+ rule: x,
5319
5323
  style: i.style,
5320
5324
  stopIfTrue: i.stopIfTrue
5321
5325
  }))) : i.condition || t.log("Skipping conditional format with neither a condition nor a scale.");
@@ -5330,19 +5334,19 @@ var dl = [
5330
5334
  const n = a[e];
5331
5335
  let o, i;
5332
5336
  Array.isArray(n) ? (o = n[0], i = n[1]) : (o = n.r, i = n.v);
5333
- const c = Ia(o);
5337
+ const c = Ra(o);
5334
5338
  if (!c || !i) {
5335
5339
  t.log("Skipping dataValidation with no range.");
5336
5340
  continue;
5337
5341
  }
5338
5342
  i.ext && t.warn("DataValidation extension payload is not written to xlsx; it will be lost.");
5339
- const d = (e, n) => t.warn(e, void 0, n), m = st(i.condition, d), { type: p, operator: f } = m ?? {}, h = Ma(c), u = Pa(m?.formula1, h, s), g = Pa(m?.formula2, h, s), y = {
5343
+ const d = (e, n) => t.warn(e, void 0, n), m = st(i.condition, d), { type: p, operator: f } = m ?? {}, h = Pa(c), u = Aa(m?.formula1, h, s), g = Aa(m?.formula2, h, s), x = {
5340
5344
  type: p,
5341
5345
  operator: f,
5342
- allowBlank: Ra(i.condition?.includeBlanks ?? !1),
5346
+ allowBlank: Fa(i.condition?.includeBlanks ?? !1),
5343
5347
  showDropDown: i.hideDropdown ? "1" : void 0,
5344
- showInputMessage: Ra(i.showPromptMessage),
5345
- showErrorMessage: Ra(i.showAlertMessage),
5348
+ showInputMessage: Fa(i.showPromptMessage),
5349
+ showErrorMessage: Fa(i.showAlertMessage),
5346
5350
  errorStyle: i.alertStyle ?? "stop",
5347
5351
  errorTitle: Yt(i.alertTitle, "errorTitle", d),
5348
5352
  error: Yt(i.alert, "error", d),
@@ -5350,20 +5354,20 @@ var dl = [
5350
5354
  prompt: Yt(i.prompt, "prompt", d),
5351
5355
  imeMode: i.imeMode
5352
5356
  };
5353
- Fa(u) || Fa(g) ? r.push({
5354
- attrs: y,
5357
+ Ea(u) || Ea(g) ? r.push({
5358
+ attrs: x,
5355
5359
  formula1: u,
5356
5360
  formula2: g,
5357
5361
  sqref: c
5358
- }) : (y.sqref = c, l.push({
5359
- attrs: y,
5362
+ }) : (x.sqref = c, l.push({
5363
+ attrs: x,
5360
5364
  formula1: u,
5361
5365
  formula2: g
5362
5366
  }));
5363
5367
  }
5364
5368
  if (0 === l.length) return r;
5365
5369
  e.start("dataValidations", {
5366
- ...Da(n),
5370
+ ...La(n),
5367
5371
  count: l.length
5368
5372
  });
5369
5373
  for (let t = 0; t < l.length; t++) {
@@ -5410,7 +5414,7 @@ var dl = [
5410
5414
  n.ignorePrinterDefaults && (s.usePrinterDefaults = "0");
5411
5415
  n.blackAndWhite && (s.blackAndWhite = "1");
5412
5416
  n.draftMode && (s.draft = "1");
5413
- const i = yt.find(([, t]) => t === n.printComments)?.[0];
5417
+ const i = xt.find(([, t]) => t === n.printComments)?.[0];
5414
5418
  i && (s.cellComments = i);
5415
5419
  n.useFirstPageNumber && (s.useFirstPageNumber = "1");
5416
5420
  const l = Bt.find(([, t]) => t === n.printErrors)?.[0];
@@ -5420,7 +5424,7 @@ var dl = [
5420
5424
  if (c) {
5421
5425
  const e = await Ao({
5422
5426
  ...c,
5423
- contentType: c.contentType || La
5427
+ contentType: c.contentType || _a
5424
5428
  }, t, "../printerSettings/printerSettings{n}.bin");
5425
5429
  e?.relId && (s["r:id"] = e.relId);
5426
5430
  }
@@ -5440,14 +5444,14 @@ var dl = [
5440
5444
  e.end("headerFooter");
5441
5445
  }
5442
5446
  }
5443
- _a(e, "rowBreaks", n.rowBreaks), _a(e, "colBreaks", n.columnBreaks);
5447
+ Na(e, "rowBreaks", n.rowBreaks), Na(e, "colBreaks", n.columnBreaks);
5444
5448
  }(e, n, r.pageLayout), function(t, e) {
5445
5449
  if (!e?.length) return;
5446
5450
  const n = /* @__PURE__ */ new Map();
5447
5451
  for (const t of e) {
5448
5452
  const e = Array.isArray(t) ? t[0] : t.r, o = Array.isArray(t) ? t[1] : t.v, r = v.filter((t) => o?.includes(t));
5449
5453
  if (0 === r.length) continue;
5450
- const s = "string" == typeof e ? e : Ia(e);
5454
+ const s = "string" == typeof e ? e : Ra(e);
5451
5455
  if (!s) continue;
5452
5456
  const a = r.join(",");
5453
5457
  let i = n.get(a);
@@ -5469,7 +5473,7 @@ var dl = [
5469
5473
  if (0 === (r ? r.length : 0)) return;
5470
5474
  const s = (t) => {
5471
5475
  const e = t.content?.type;
5472
- return "picture" === e || "chart" === e || "shape" === e || "group" === e || "slicer" === e || xt(e);
5476
+ return "picture" === e || "chart" === e || "shape" === e || "group" === e || "slicer" === e || yt(e);
5473
5477
  };
5474
5478
  if (!r.some(s)) return;
5475
5479
  const a = n.getMovables().getItems().filter((t) => "note" !== t.getContent().getType()), i = (t) => {
@@ -5505,7 +5509,7 @@ var dl = [
5505
5509
  comments: n
5506
5510
  });
5507
5511
  }(o);
5508
- Na(e, n, "legacyDrawing", Ba(Wa(o, r.legacyDrawing ?? null, a), h)), Na(e, n, "legacyDrawingHF", r.legacyDrawingHF ?? null), await async function(t, e, n) {
5512
+ $a(e, n, "legacyDrawing", Oa(za(o, r.legacyDrawing ?? null, a), h)), $a(e, n, "legacyDrawingHF", r.legacyDrawingHF ?? null), await async function(t, e, n) {
5509
5513
  const o = n.getPicture();
5510
5514
  if (!o) return;
5511
5515
  const r = o.getResource(), s = await r.getExternalURI();
@@ -5568,7 +5572,7 @@ var dl = [
5568
5572
  e.start("controlPr", Nt(r)), e.start("anchor", {
5569
5573
  moveWithCells: "absolute" === i ? void 0 : "1",
5570
5574
  sizeWithCells: "twoCell" === i ? "1" : void 0
5571
- }), za(e, "from", n.anchor.tl), za(e, "to", n.anchor.br), e.end("anchor"), r.xml && e.raw(r.xml), e.end("controlPr"), e.end("control"), e.end("mc:Choice"), e.end("mc:AlternateContent");
5575
+ }), ja(e, "from", n.anchor.tl), ja(e, "to", n.anchor.br), e.end("anchor"), r.xml && e.raw(r.xml), e.end("controlPr"), e.end("control"), e.end("mc:Choice"), e.end("mc:AlternateContent");
5572
5576
  }
5573
5577
  e.end("controls"), e.end("mc:Choice"), e.end("mc:AlternateContent");
5574
5578
  }(e, n, a), function(t, e, n, o) {
@@ -5604,8 +5608,8 @@ var dl = [
5604
5608
  type: "dataBar",
5605
5609
  id: r
5606
5610
  }), e.start("x14:dataBar", {
5607
- minLength: i.minLength,
5608
- maxLength: i.maxLength,
5611
+ minLength: i.minLength ?? 0,
5612
+ maxLength: i.maxLength ?? 100,
5609
5613
  gradient: i.gradient ? void 0 : "0",
5610
5614
  border: i.borderColor ? "1" : void 0,
5611
5615
  direction: i.direction,
@@ -5614,8 +5618,8 @@ var dl = [
5614
5618
  axisPosition: i.axisPosition
5615
5619
  });
5616
5620
  const t = i.stops ?? [];
5617
- if (0 === t.length) Sa(e, { type: Ve.ColorStopType.AutoMin }), Sa(e, { type: Ve.ColorStopType.AutoMax });
5618
- else for (let n = 0; n < t.length; n++) Sa(e, t[n]);
5621
+ if (0 === t.length) ba(e, { type: Ve.ColorStopType.AutoMin }), ba(e, { type: Ve.ColorStopType.AutoMax });
5622
+ else for (let n = 0; n < t.length; n++) ba(e, t[n]);
5619
5623
  i.borderColor && No(e, c, i.borderColor, "x14:borderColor"), i.negativeFillColor && No(e, c, i.negativeFillColor, "x14:negativeFillColor"), i.negativeBorderColor && No(e, c, i.negativeBorderColor, "x14:negativeBorderColor"), i.axisColor && No(e, c, i.axisColor, "x14:axisColor"), e.end("x14:dataBar"), e.end("x14:cfRule");
5620
5624
  } else {
5621
5625
  e.start("x14:cfRule", {
@@ -5624,12 +5628,12 @@ var dl = [
5624
5628
  id: r
5625
5629
  }), e.start("x14:iconSet", {
5626
5630
  iconSet: i.iconSet,
5627
- reverse: Ra(i.reverse),
5628
- showValue: Ra(i.showValue),
5631
+ reverse: Fa(i.reverse),
5632
+ showValue: Fa(i.showValue),
5629
5633
  custom: (i.icon?.length ?? 0) > 0 ? "1" : void 0
5630
5634
  });
5631
5635
  const t = i.stops ?? [];
5632
- for (let n = 0; n < t.length; n++) Sa(e, t[n]);
5636
+ for (let n = 0; n < t.length; n++) ba(e, t[n]);
5633
5637
  const n = i.icon ?? [];
5634
5638
  for (let t = 0; t < n.length; t++) e.empty("x14:cfIcon", {
5635
5639
  iconSet: n[t].set,
@@ -5641,12 +5645,12 @@ var dl = [
5641
5645
  e.start("x14:cfRule", {
5642
5646
  type: d.type,
5643
5647
  priority: a,
5644
- stopIfTrue: Ra(p),
5645
- aboveAverage: Ra(d.aboveAverage),
5646
- equalAverage: Ra(d.equalAverage),
5648
+ stopIfTrue: Fa(p),
5649
+ aboveAverage: Fa(d.aboveAverage),
5650
+ equalAverage: Fa(d.equalAverage),
5647
5651
  stdDev: d.stdDev,
5648
- bottom: Ra(d.bottom),
5649
- percent: Ra(d.percent),
5652
+ bottom: Fa(d.bottom),
5653
+ percent: Fa(d.percent),
5650
5654
  rank: d.rank,
5651
5655
  operator: d.operator,
5652
5656
  text: d.text,
@@ -5667,7 +5671,7 @@ var dl = [
5667
5671
  "xmlns:x14": wt
5668
5672
  }), e.start("x14:dataValidations", {
5669
5673
  "xmlns:xm": ie,
5670
- ...Da(n),
5674
+ ...La(n),
5671
5675
  count: r.length
5672
5676
  });
5673
5677
  for (let t = 0; t < r.length; t++) {
@@ -5806,9 +5810,9 @@ var dl = [
5806
5810
  const t = e.getRuns();
5807
5811
  for (let e = 0; e < t.length; e++) {
5808
5812
  const o = t[e];
5809
- n.start("r"), o.font && a && ia(n, o.font, a), qa(n, o.text), n.end("r");
5813
+ n.start("r"), o.font && a && ia(n, o.font, a), Ja(n, o.text), n.end("r");
5810
5814
  }
5811
- } else qa(n, e);
5815
+ } else Ja(n, e);
5812
5816
  n.end("si");
5813
5817
  }
5814
5818
  n.end("sst"), n.close();
@@ -5839,7 +5843,7 @@ var dl = [
5839
5843
  e.end(o);
5840
5844
  }(0, n, o, "clrScheme"), function(t, e, n, o) {
5841
5845
  if (!n) return;
5842
- e.start(o, { name: n.getName() || "Office" }), ci(e, n.getMajor() ?? {}, "Calibri Light", "majorFont"), ci(e, n.getMinor() ?? {}, "Calibri", "minorFont"), e.end(o);
5846
+ e.start(o, { name: n.getName() || "Office" }), di(e, n.getMajor() ?? {}, "Calibri Light", "majorFont"), di(e, n.getMinor() ?? {}, "Calibri", "minorFont"), e.end(o);
5843
5847
  }(0, n, o.getFontScheme(), "fontScheme"), function(t, e, n, o, r) {
5844
5848
  if (r?.formatSchemeXml) return void e.raw(r.formatSchemeXml);
5845
5849
  (function(t, e, n, o, r) {
@@ -5856,13 +5860,13 @@ var dl = [
5856
5860
  })(t, e, n, o, o.getFormatScheme());
5857
5861
  }(e, n, "fmtScheme", o, r), n.end("themeElements"), function(t, e, n) {
5858
5862
  const o = n.getObjectDefaults();
5859
- if (!di.some(([t]) => o[t])) return void e.empty("objectDefaults");
5863
+ if (!mi.some(([t]) => o[t])) return void e.empty("objectDefaults");
5860
5864
  const r = { getTheme: () => n };
5861
5865
  e.start("objectDefaults");
5862
- for (const [s, a] of di) {
5866
+ for (const [s, a] of mi) {
5863
5867
  const i = o[s];
5864
5868
  if (!i) continue;
5865
- e.start(a), e.start("spPr"), Yo(t, r, i), e.end("spPr"), li(t, r, i.text);
5869
+ e.start(a), e.start("spPr"), Yo(t, r, i), e.end("spPr"), ci(t, r, i.text);
5866
5870
  const l = i.style;
5867
5871
  if (l) {
5868
5872
  const t = (t, o) => {
@@ -5912,7 +5916,7 @@ var dl = [
5912
5916
  "xmlns:x16r2": "http://schemas.microsoft.com/office/spreadsheetml/2015/02/main",
5913
5917
  "xmlns:xr": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision"
5914
5918
  });
5915
- const { directXfs: s, denormalized: a } = e.getSharedStates().get("stylesLayout") ?? wr(r, o), i = e.getSharedStates().get(yr), l = function(t) {
5919
+ const { directXfs: s, denormalized: a } = e.getSharedStates().get("stylesLayout") ?? wr(r, o), i = e.getSharedStates().get(xr), l = function(t) {
5916
5920
  const e = t?.slicers?.styles;
5917
5921
  if (!e) return t;
5918
5922
  const n = { ...t.tables?.styles };
@@ -6169,7 +6173,7 @@ var dl = [
6169
6173
  let s = 0;
6170
6174
  for (let t = 0; t < o.length; t++) {
6171
6175
  const e = s++;
6172
- n.empty("bag", { type: mi[o[t].type] ?? o[t].type });
6176
+ n.empty("bag", { type: pi[o[t].type] ?? o[t].type });
6173
6177
  const a = s++;
6174
6178
  n.start("bag", { type: "XFControls" }), n.start("bagId", { k: "CellControl" }), n.text(String(e)), n.end("bagId"), n.end("bag"), r.push(s++), n.start("bag", { type: "XFComplement" }), n.start("bagId", { k: "XFControls" }), n.text(String(a)), n.end("bagId"), n.end("bag");
6175
6179
  }
@@ -6199,14 +6203,14 @@ var dl = [
6199
6203
  "xmlns:dcmitype": "http://purl.org/dc/dcmitype/",
6200
6204
  "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"
6201
6205
  });
6202
- const o = fi(/* @__PURE__ */ new Date()), r = {
6206
+ const o = hi(/* @__PURE__ */ new Date()), r = {
6203
6207
  author: "SheetXL",
6204
6208
  lastAuthor: "SheetXL",
6205
6209
  creationDate: o,
6206
6210
  ...t.model.getProperties().toJSON(),
6207
6211
  lastModifiedDate: o
6208
6212
  };
6209
- for (const [t, e, o] of pi) {
6213
+ for (const [t, e, o] of fi) {
6210
6214
  const s = r[e];
6211
6215
  null != s && "" !== s && (n.start(t, o ? { "xsi:type": "dcterms:W3CDTF" } : void 0), n.text(String(s)), n.end(t));
6212
6216
  }
@@ -6227,11 +6231,11 @@ var dl = [
6227
6231
  n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
6228
6232
  xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
6229
6233
  "xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
6230
- }), hi(e, n, "Application", "SheetXL"), hi(e, n, "DocSecurity", "0"), hi(e, n, "ScaleCrop", "false"), ui(e, n, o);
6234
+ }), ui(e, n, "Application", "SheetXL"), ui(e, n, "DocSecurity", "0"), ui(e, n, "ScaleCrop", "false"), gi(e, n, o);
6231
6235
  const i = a.getManager();
6232
- i && hi(e, n, "Manager", i);
6236
+ i && ui(e, n, "Manager", i);
6233
6237
  const l = a.getCompany();
6234
- l && hi(e, n, "Company", l), hi(e, n, "LinksUpToDate", "false"), hi(e, n, "SharedDoc", "false"), hi(e, n, "HyperlinksChanged", "false"), hi(e, n, "AppVersion", s), n.end("Properties"), n.close();
6238
+ l && ui(e, n, "Company", l), ui(e, n, "LinksUpToDate", "false"), ui(e, n, "SharedDoc", "false"), ui(e, n, "HyperlinksChanged", "false"), ui(e, n, "AppVersion", s), n.end("Properties"), n.close();
6235
6239
  }
6236
6240
  }(),
6237
6241
  new class extends Tn {
@@ -6257,7 +6261,7 @@ var dl = [
6257
6261
  name: e
6258
6262
  };
6259
6263
  a && (i.linkTarget = a), n.start("property", i);
6260
- const l = gi[r];
6264
+ const l = xi[r];
6261
6265
  n.start(l), n.text(r === We.Type.Date ? yi(s) : String(s)), n.end(l), n.end("property");
6262
6266
  }
6263
6267
  n.end("Properties"), n.close();
@@ -6279,11 +6283,11 @@ var dl = [
6279
6283
  const m = { xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" };
6280
6284
  if (o && (m["xmlns:xda"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"), r && (m["xmlns:xlrd"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata"), n.decl(), n.start("metadata", m), n.start("metadataTypes", { count: d }), o && n.empty("metadataType", {
6281
6285
  name: "XLDAPR",
6282
- ...xi,
6286
+ ...vi,
6283
6287
  cellMeta: "1"
6284
6288
  }), r && n.empty("metadataType", {
6285
6289
  name: "XLRICHVALUE",
6286
- ...xi
6290
+ ...vi
6287
6291
  }), n.end("metadataTypes"), o) {
6288
6292
  n.start("futureMetadata", {
6289
6293
  name: "XLDAPR",
@@ -6499,13 +6503,13 @@ var dl = [
6499
6503
  async emit(t, e) {
6500
6504
  const n = e.getXMLWriter(), o = t.getArrays();
6501
6505
  n.decl(), n.start("arrayData", {
6502
- xmlns: vi,
6506
+ xmlns: wi,
6503
6507
  count: o.length
6504
6508
  });
6505
6509
  for (const t of o) n.start("a", {
6506
6510
  r: t.rows,
6507
6511
  c: t.columns > 1 ? t.columns : void 0
6508
- }), wi(n, t.items), n.end("a");
6512
+ }), Si(n, t.items), n.end("a");
6509
6513
  n.end("arrayData"), n.close();
6510
6514
  }
6511
6515
  }(),
@@ -6521,7 +6525,7 @@ var dl = [
6521
6525
  async emit(t, e) {
6522
6526
  const n = e.getXMLWriter(), { structures: o } = t.getBags();
6523
6527
  n.decl(), n.start("spbStructures", {
6524
- xmlns: vi,
6528
+ xmlns: wi,
6525
6529
  count: o.length
6526
6530
  });
6527
6531
  for (const t of o) {
@@ -6546,9 +6550,9 @@ var dl = [
6546
6550
  }
6547
6551
  async emit(t, e) {
6548
6552
  const n = e.getXMLWriter(), { bags: o, arrays: r } = t.getBags();
6549
- if (n.decl(), n.start("supportingPropertyBags", { xmlns: vi }), r.length > 0) {
6553
+ if (n.decl(), n.start("supportingPropertyBags", { xmlns: wi }), r.length > 0) {
6550
6554
  n.start("spbArrays", { count: r.length });
6551
- for (const t of r) n.start("a", { count: t.length }), wi(n, t), n.end("a");
6555
+ for (const t of r) n.start("a", { count: t.length }), Si(n, t), n.end("a");
6552
6556
  n.end("spbArrays");
6553
6557
  }
6554
6558
  n.start("spbData", { count: o.length });
@@ -6572,7 +6576,7 @@ var dl = [
6572
6576
  async emit(t, e) {
6573
6577
  const n = e.getXMLWriter(), o = t.getRichStyles();
6574
6578
  n.decl(), n.start("richStyleSheet", {
6575
- xmlns: vi,
6579
+ xmlns: wi,
6576
6580
  "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
6577
6581
  "mc:Ignorable": "x",
6578
6582
  "xmlns:x": "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
@@ -6622,8 +6626,8 @@ var dl = [
6622
6626
  const o = t.sheet, r = t.movables, s = t.jsonMovables, a = s ? s.length : 0;
6623
6627
  let i = 0;
6624
6628
  const l = (t) => {
6625
- const e = t.content, n = xt(e?.type) ? e.json?.shapeId : e?.json?.sourceId;
6626
- if ("number" == typeof n && n > i && (i = n), "group" === e?.type) for (const e of Mi(t)) l(e);
6629
+ const e = t.content, n = yt(e?.type) ? e.json?.shapeId : e?.json?.sourceId;
6630
+ if ("number" == typeof n && n > i && (i = n), "group" === e?.type) for (const e of Pi(t)) l(e);
6627
6631
  };
6628
6632
  for (let t = 0; t < a; t++) l(s[t]);
6629
6633
  const c = /* @__PURE__ */ new Map(), d = e.getSharedStates();
@@ -6639,11 +6643,11 @@ var dl = [
6639
6643
  } else t.add(n);
6640
6644
  }
6641
6645
  }
6642
- const p = Yi(e, o), f = () => {
6646
+ const p = Zi(e, o), f = () => {
6643
6647
  const t = (m.get(o) ?? 1) + 1;
6644
6648
  return m.set(o, t), t;
6645
6649
  }, h = (t) => {
6646
- for (const e of Mi(t)) {
6650
+ for (const e of Pi(t)) {
6647
6651
  const t = e.content?.json?.sourceId, n = "number" == typeof t && !p.bySource.has(t), o = n ? t : f();
6648
6652
  p.assigned.set(e, o), n && p.bySource.set(t, o), "group" === e.content?.type && h(e);
6649
6653
  }
@@ -6653,40 +6657,40 @@ var dl = [
6653
6657
  let o = c.get(e) ?? ("number" == typeof n ? n : void 0);
6654
6658
  void 0 === o && (o = f()), p.assigned.set(e, o), "number" != typeof n || p.bySource.has(n) || p.bySource.set(n, o), "group" === e.content?.type && h(e);
6655
6659
  }
6656
- for (let t = 0; t < a; t++) await Ai(e, s[t]);
6660
+ for (let t = 0; t < a; t++) await Di(e, s[t]);
6657
6661
  for (let t = 0; t < a; t++) {
6658
6662
  const a = s[t], i = r[t], l = a.content?.type;
6659
- if (xt(l)) ol(n, a);
6663
+ if (yt(l)) rl(n, a);
6660
6664
  else {
6661
6665
  if ("slicer" === l) {
6662
6666
  const t = i.getContent();
6663
6667
  if (!t.getTable?.() && !Ps(t)) continue;
6664
6668
  }
6665
- switch (n.start("twoCellAnchor", { editAs: a.anchorType || "twoCell" }), nl(n, "from", a.anchor.tl), nl(n, "to", a.anchor.br), l) {
6669
+ switch (n.start("twoCellAnchor", { editAs: a.anchorType || "twoCell" }), ol(n, "from", a.anchor.tl), ol(n, "to", a.anchor.br), l) {
6666
6670
  case "picture":
6667
- await Di(e, o, i, a, i.getBounds(), i.getContent().getResource());
6671
+ await Li(e, o, i, a, i.getBounds(), i.getContent().getResource());
6668
6672
  break;
6669
6673
  case "chart":
6670
- await _i(e, o, i, a);
6674
+ await Ni(e, o, i, a);
6671
6675
  break;
6672
6676
  case "shape":
6673
- await Oi(e, o, i, a, i.getBounds());
6677
+ await Vi(e, o, i, a, i.getBounds());
6674
6678
  break;
6675
6679
  case "group":
6676
- await $i(e, o, i, a, i.getBounds());
6680
+ await Bi(e, o, i, a, i.getBounds());
6677
6681
  break;
6678
6682
  case "smartArt":
6679
- await Vi(e, o, i, a);
6683
+ await Wi(e, o, i, a);
6680
6684
  break;
6681
6685
  case "slicer":
6682
- await Xi(e, o, i, a);
6686
+ await Hi(e, o, i, a);
6683
6687
  break;
6684
6688
  case "graphicFrame":
6685
- await Ui(e, o, i, a);
6689
+ await Gi(e, o, i, a);
6686
6690
  break;
6687
- default: await Gi(e, o, a, i.getBounds());
6691
+ default: await qi(e, o, a, i.getBounds());
6688
6692
  }
6689
- Ei(n, a), n.end("twoCellAnchor");
6693
+ Mi(n, a), n.end("twoCellAnchor");
6690
6694
  }
6691
6695
  }
6692
6696
  n.end("wsDr"), n.close();
@@ -6708,7 +6712,7 @@ var dl = [
6708
6712
  for (let r = 0; r < o; r++) {
6709
6713
  const o = n[r], s = t?.get(o.resId);
6710
6714
  if (s) try {
6711
- await rl(e, o.id, s);
6715
+ await sl(e, o.id, s);
6712
6716
  } catch (t) {
6713
6717
  e.log(`Unable to write legacy drawing image '${o.id}'`, t);
6714
6718
  }
@@ -6831,11 +6835,11 @@ var dl = [
6831
6835
  for (let t = 0; t < o.length; t++) {
6832
6836
  const { comment: e, ref: r } = o[t];
6833
6837
  if (e.isNote()) continue;
6834
- al(n, r, e.getId(), e.getAuthor()?.getId(), e.getCreationDate(), e.getContent(), null, e.isResolved(), e.toJSON()?.mentions);
6838
+ il(n, r, e.getId(), e.getAuthor()?.getId(), e.getCreationDate(), e.getContent(), null, e.isResolved(), e.toJSON()?.mentions);
6835
6839
  const s = e.getReplies();
6836
6840
  for (let t = 0; t < s.length; t++) {
6837
6841
  const o = s[t];
6838
- al(n, r, o.getId(), o.getAuthor()?.getId(), o.getCreationDate(), o.getContent(), e.getId(), !1, o.toJSON().mentions);
6842
+ il(n, r, o.getId(), o.getAuthor()?.getId(), o.getCreationDate(), o.getContent(), e.getId(), !1, o.toJSON().mentions);
6839
6843
  }
6840
6844
  }
6841
6845
  n.end("ThreadedComments"), n.close();
@@ -6861,7 +6865,7 @@ var dl = [
6861
6865
  const e = o[t];
6862
6866
  n.empty("person", {
6863
6867
  displayName: e.getDisplayName(),
6864
- id: il(e.getId()),
6868
+ id: ll(e.getId()),
6865
6869
  userId: e.getUserId() ?? e.getDisplayName(),
6866
6870
  providerId: e.getProviderId() ?? "None"
6867
6871
  });
@@ -6935,7 +6939,7 @@ var dl = [
6935
6939
  async emit(t, e) {
6936
6940
  const n = Ps(t);
6937
6941
  if (n) return void this.emitPivot(t, n, e);
6938
- const o = t.getTable(), r = t.getColumn(), s = o ? xs(e).get(o) : void 0;
6942
+ const o = t.getTable(), r = t.getColumn(), s = o ? ys(e).get(o) : void 0;
6939
6943
  if (!o || !r || void 0 === s) throw new Error(`The slicer '${t.getName?.() ?? ""}' names a table that was not written.`);
6940
6944
  const a = t.toJSON(), i = t.getSortOrder(), l = t.getCrossFilter(), c = e.getXMLWriter();
6941
6945
  c.decl(), c.start("slicerCacheDefinition", {
@@ -7090,7 +7094,7 @@ var dl = [
7090
7094
  const r = o.length;
7091
7095
  for (let e = 0; e < r; e++) {
7092
7096
  const [r, s] = o[e], a = s.length;
7093
- for (let e = 0; e < a; e++) cl(t, n, r + e, s.at(e));
7097
+ for (let e = 0; e < a; e++) dl(t, n, r + e, s.at(e));
7094
7098
  }
7095
7099
  t.end("row");
7096
7100
  }
@@ -7101,35 +7105,35 @@ var dl = [
7101
7105
  }(n, t), n.end("externalBook"), n.end("externalLink"), n.close();
7102
7106
  }
7103
7107
  }()
7104
- ], ml = "SheetXL Evaluation", pl = "xl/worksheets/sheetSheetXLEvaluation.xml", fl = "rIdSheetXLEvaluation", hl = [
7108
+ ], pl = "SheetXL Evaluation", fl = "xl/worksheets/sheetSheetXLEvaluation.xml", hl = "rIdSheetXLEvaluation", ul = [
7105
7109
  "This workbook was exported from an unlicensed evaluation of SheetXL.",
7106
7110
  "Your own sheets follow this one, unchanged.",
7107
7111
  "To license SheetXL, visit https://www.sheetxl.com"
7108
- ], ul = (t) => {
7112
+ ], gl = (t) => {
7109
7113
  const e = [...t.matchAll(/<sheet\b[^>]*\bsheetId="(\d+)"/g)].map((t) => parseInt(t[1], 10)), n = new Set([...t.matchAll(/<sheet\b[^>]*\bname="([^"]*)"/g)].map((t) => t[1].toLowerCase()));
7110
- let o = ml;
7111
- for (let t = 2; n.has(o.toLowerCase()); t++) o = `${ml} (${t})`;
7112
- const r = `<sheet name="${o}" sheetId="${Math.max(0, ...e) + 1}" r:id="${fl}"/>`;
7114
+ let o = pl;
7115
+ for (let t = 2; n.has(o.toLowerCase()); t++) o = `${pl} (${t})`;
7116
+ const r = `<sheet name="${o}" sheetId="${Math.max(0, ...e) + 1}" r:id="${hl}"/>`;
7113
7117
  return t.replace(/<sheets>/, `<sheets>${r}`).replace(/\blocalSheetId="(\d+)"/g, (t, e) => `localSheetId="${parseInt(e, 10) + 1}"`).replace(/<workbookView\b([^>]*?)(\/?)>/, (t, e, n) => {
7114
7118
  const o = /\bactiveTab="(\d+)"/.exec(e);
7115
7119
  return `<workbookView${(o ? e.replace(/\bactiveTab="\d+"/, `activeTab="${parseInt(o[1], 10) + 1}"`) : `${e} activeTab="1"`).replace(/\s*\bfirstTab="\d+"/, "")}${n}>`;
7116
7120
  });
7117
- }, gl = async (t) => {
7121
+ }, xl = async (t) => {
7118
7122
  const e = new un(new fn(t)), n = new hn(), o = new gn(n, { lastModDate: new Date(1899, 11, 29, 19, 0, 0) });
7119
7123
  try {
7120
7124
  for (const t of await e.getEntries()) {
7121
7125
  if (t.directory || !("getData" in t)) continue;
7122
7126
  const e = t.filename;
7123
- if ("xl/workbook.xml" === e) await o.add(e, new fn(new TextEncoder().encode(ul(await t.getData(new pn())))));
7127
+ if ("xl/workbook.xml" === e) await o.add(e, new fn(new TextEncoder().encode(gl(await t.getData(new pn())))));
7124
7128
  else if ("xl/_rels/workbook.xml.rels" === e) {
7125
- const n = await t.getData(new pn()), r = `<Relationship Id="${fl}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="${pl.slice(3)}"/>`;
7129
+ const n = await t.getData(new pn()), r = `<Relationship Id="${hl}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="${fl.slice(3)}"/>`;
7126
7130
  await o.add(e, new fn(new TextEncoder().encode(n.replace("</Relationships>", `${r}</Relationships>`))));
7127
7131
  } else if ("[Content_Types].xml" === e) {
7128
- const n = await t.getData(new pn()), r = `<Override PartName="/${pl}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`;
7132
+ const n = await t.getData(new pn()), r = `<Override PartName="/${fl}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`;
7129
7133
  await o.add(e, new fn(new TextEncoder().encode(n.replace("</Types>", `${r}</Types>`))));
7130
7134
  } else await o.add(e, new fn(await t.getData(new hn())));
7131
7135
  }
7132
- return await o.add(pl, new fn(new TextEncoder().encode(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><sheetViews><sheetView workbookViewId="0"/></sheetViews><cols><col min="1" max="1" width="80" customWidth="1"/></cols><sheetData>${hl.map((t, e) => `<row r="${e + 1}"><c r="A${e + 1}" t="inlineStr"><is><t>${t}</t></is></c></row>`).join("")}</sheetData></worksheet>`))), await o.close(), await n.getData();
7136
+ return await o.add(fl, new fn(new TextEncoder().encode(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><sheetViews><sheetView workbookViewId="0"/></sheetViews><cols><col min="1" max="1" width="80" customWidth="1"/></cols><sheetData>${ul.map((t, e) => `<row r="${e + 1}"><c r="A${e + 1}" t="inlineStr"><is><t>${t}</t></is></c></row>`).join("")}</sheetData></worksheet>`))), await o.close(), await n.getData();
7133
7137
  } finally {
7134
7138
  await e.close();
7135
7139
  }
@@ -7147,27 +7151,27 @@ var dl = [
7147
7151
  });
7148
7152
  }
7149
7153
  return n;
7150
- }, xl = (t) => {
7154
+ }, vl = (t) => {
7151
7155
  const e = t.getPart("xl/workbook.xml");
7152
7156
  return e ? new TextDecoder("utf-8").decode(e.data) : null;
7153
- }, vl = (t) => {
7157
+ }, wl = (t) => {
7154
7158
  const e = [], n = /<(\/?)ext(?=[\s/>])[^>]*?(\/?)>/g;
7155
7159
  let o = 0, r = 0;
7156
7160
  for (let s = n.exec(t); s; s = n.exec(t)) s[1] ? (o--, 0 === o && e.push(t.slice(r, s.index + s[0].length))) : s[2] ? 0 === o && e.push(s[0]) : (0 === o && (r = s.index), o++);
7157
7161
  return e;
7158
- }, wl = (t) => {
7159
- const e = Sl.get(t);
7162
+ }, Sl = (t) => {
7163
+ const e = bl.get(t);
7160
7164
  if (void 0 !== e) return e;
7161
7165
  const n = t.getPart("xl/workbook.xml"), o = n ? new TextDecoder("utf-8").decode(n.data) : null;
7162
- return Sl.set(t, o), o;
7163
- }, Sl = /* @__PURE__ */ new WeakMap(), bl = async (t, e) => {
7166
+ return bl.set(t, o), o;
7167
+ }, bl = /* @__PURE__ */ new WeakMap(), Cl = async (t, e) => {
7164
7168
  await Le.load();
7165
7169
  const n = new to();
7166
- for (const t of dl) n.register(t);
7167
- const o = Cl, r = In.createUint8Array({
7170
+ for (const t of ml) n.register(t);
7171
+ const o = kl, r = In.createUint8Array({
7168
7172
  lastModDate: new Date(1899, 11, 29, 19, 0, 0),
7169
7173
  level: o
7170
- }), s = xe.includes(e?.format) ? E(t) : null, a = /* @__PURE__ */ new Map(), i = s ? ((t) => {
7174
+ }), s = ye.includes(e?.format) ? E(t) : null, a = /* @__PURE__ */ new Map(), i = s ? ((t) => {
7171
7175
  const e = t.getPart("xl/workbook.xml");
7172
7176
  if (!e) return null;
7173
7177
  const n = new TextDecoder("utf-8").decode(e.data.subarray(0, 4096)).match(/<fileVersion\b([^>]*)\/?>/);
@@ -7178,19 +7182,19 @@ var dl = [
7178
7182
  })(s) : null;
7179
7183
  i && (e?.macroEnabled || delete i.codeName, a.set(Os, i));
7180
7184
  const l = s ? ((t) => {
7181
- const e = wl(t)?.match(/<calcPr\b[^>]*?\bcalcId="([^"]*)"/);
7185
+ const e = Sl(t)?.match(/<calcPr\b[^>]*?\bcalcId="([^"]*)"/);
7182
7186
  return e ? e[1] : null;
7183
7187
  })(s) : null;
7184
7188
  null !== l && a.set("calcId", l);
7185
7189
  const c = s ? ((t) => {
7186
- const e = wl(t);
7190
+ const e = Sl(t);
7187
7191
  if (!e) return null;
7188
7192
  const n = e.lastIndexOf("<extLst>");
7189
7193
  if (-1 === n) return null;
7190
7194
  const o = e.indexOf("</extLst>", n);
7191
7195
  if (-1 === o || !/^<\/extLst>\s*<\/workbook>/.test(e.slice(o))) return null;
7192
7196
  const r = e.slice(n + 8, o), s = yl(t), a = [];
7193
- for (const t of vl(r)) {
7197
+ for (const t of wl(r)) {
7194
7198
  const e = /^<ext\b[^>]*?\buri="([^"]*)"/.exec(t)?.[1] ?? "", n = [];
7195
7199
  for (const e of t.matchAll(/\sr:id="([^"]*)"/g)) {
7196
7200
  if (n.some((t) => t.id === e[1])) continue;
@@ -7212,7 +7216,7 @@ var dl = [
7212
7216
  })(s) : null;
7213
7217
  null !== c && a.set("workbookExts", c);
7214
7218
  const d = s ? ((t) => {
7215
- const e = xl(t);
7219
+ const e = vl(t);
7216
7220
  if (!e) return null;
7217
7221
  const n = /<externalReferences\b[^>]*>([\s\S]*?)<\/externalReferences>/.exec(e);
7218
7222
  if (!n) return null;
@@ -7226,7 +7230,7 @@ var dl = [
7226
7230
  })(s) : null;
7227
7231
  d && a.set(Xs, d);
7228
7232
  const m = s ? ((t) => {
7229
- const e = xl(t), n = e ? yl(t) : null;
7233
+ const e = vl(t), n = e ? yl(t) : null;
7230
7234
  if (!e || !n) return null;
7231
7235
  const o = /* @__PURE__ */ new Map();
7232
7236
  for (const t of e.matchAll(/<sheet\b([^>]*)\/?>/g)) {
@@ -7255,7 +7259,7 @@ var dl = [
7255
7259
  });
7256
7260
  f.addPart("workbook", t, "/xl/workbook.xml"), await f.waitEmit(), f.addPart("propsCore", { model: t }), f.addPart("propsApp", { model: t }), t.getProperties().getCustom().length > 0 && f.addPart("propsCustom", { model: t });
7257
7261
  let h = await f.build();
7258
- await Qe.isWatermarked() && (h = await gl(h));
7262
+ await Qe.isWatermarked() && (h = await xl(h));
7259
7263
  const u = e?.progress?.onWarning;
7260
7264
  if (p.length && u) {
7261
7265
  const t = /* @__PURE__ */ new Set();
@@ -7265,5 +7269,5 @@ var dl = [
7265
7269
  }
7266
7270
  }
7267
7271
  return 0 === h.byteOffset && h.byteLength === h.buffer.byteLength ? h.buffer : h.slice().buffer;
7268
- }, Cl = 1;
7269
- export { bl as writeXLSX };
7272
+ }, kl = 1;
7273
+ export { Cl as writeXLSX };