@sheetxl/io-xlsx 0.8.0-beta.22 → 0.8.0-beta.24

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 (24) hide show
  1. package/browser/esm/{DKFJjTTJkuTmxyrC.mjs → 5xtRpvSPfEohE5po.mjs} +2 -2
  2. package/browser/esm/{DEQzaCJ7RX2QoCut.mjs → 69bvAGAGJujH4S15.mjs} +1 -1
  3. package/browser/esm/{Cx9ap9QP6pCr4onD.mjs → B2Yos27tHqE7R09x.mjs} +1426 -1415
  4. package/browser/esm/{hYm31nxQHahoYW47.mjs → BH0T0mPheF090JM7.mjs} +52 -48
  5. package/browser/esm/{Dm3PlbhnXRlbfwcc.mjs → BOloKi_tL_nlBWK-.mjs} +2 -2
  6. package/browser/esm/{TlUpdMxCXP6T7d5o.mjs → Bi-2voVHGmybIUfY.mjs} +1 -1
  7. package/browser/esm/{B-gFy6wqDX1nS1H6.mjs → C44L0QMRNWi5qnS2.mjs} +6 -6
  8. package/browser/esm/{CSeKlqJLKPdaHQnM.mjs → DkaxYJJnBeqsuYB9.mjs} +2 -2
  9. package/browser/esm/{2Tu0hkxKQVlv9Cra.mjs → fmETPhfxVTNBek2p.mjs} +4 -4
  10. package/browser/esm/{BksP77A3tWZz2uFZ.mjs → g75CmSnWbLGgaUpc.mjs} +4 -4
  11. package/browser/esm/index.mjs +2 -2
  12. package/browser/esm/{fw-xerhhOIbrtjj8.mjs → qicX5Tee3NTO5J-D.mjs} +2 -2
  13. package/licenses/dependencies.txt +1 -1
  14. package/node/esm/{C1VsUbGfwY9-dlaU.mjs → BBR6pSV9Q9otQTAf.mjs} +1 -1
  15. package/node/esm/{B1_JjHLkB9GQt41F.mjs → BUeSXu2BeJDu5cxB.mjs} +1 -1
  16. package/node/esm/{yNj0KH21rJk2rfm7.mjs → BcVUIxYg_B5u-fXY.mjs} +2 -2
  17. package/node/esm/{CeRdSa9ObgI_mmCT.mjs → BkgF01W68W7CSUb5.mjs} +299 -294
  18. package/node/esm/{BaRyFsg1YMFUyXd4.mjs → Bmyv0kMApwGNItqE.mjs} +4 -4
  19. package/node/esm/{Dd0rxpiUIxg4BeeC.mjs → CgGD8fDyVsp4oPHq.mjs} +2 -2
  20. package/node/esm/{C6HiyeKhrpNGFeb3.mjs → DEYDK-lJUQQprdUD.mjs} +2 -2
  21. package/node/esm/{-4emwUa_cqmg0qom.mjs → gZUS8aGtTDW3LC8v.mjs} +4 -4
  22. package/node/esm/index.mjs +4 -4
  23. package/package.json +5 -5
  24. package/types/src/writer/utils/PrstGeomUtils.d.ts +11 -3
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.22
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.24
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 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 "./C1VsUbGfwY9-dlaU.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 h, Et as f, 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 ht, en as ft, 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 he, y as fe, yt as ue, zn as ge, zt as xe } from "./BBR6pSV9Q9otQTAf.mjs";
8
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 "./C6HiyeKhrpNGFeb3.mjs";
9
+ import { a as ve, c as we, i as Se, l as be, n as Ce, t as ke } from "./DEYDK-lJUQQprdUD.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
- 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";
12
+ import { BlobWriter as dn, TextReader as mn, TextWriter as pn, Uint8ArrayReader as hn, Uint8ArrayWriter as fn, ZipReader as un, ZipWriter as gn } from "@zip.js/zip.js";
13
13
  var xn = [
14
14
  ["%EntityServiceId", "i"],
15
15
  ["_DisplayString", "s"],
@@ -51,7 +51,7 @@ var xn = [
51
51
  this.zipWriter = t, this.outputKind = e, this.outWritable = n;
52
52
  }
53
53
  static createUint8Array(e) {
54
- const n = new hn(), o = new gn(n, e);
54
+ const n = new fn(), o = new gn(n, e);
55
55
  return new t(o, "uint8array");
56
56
  }
57
57
  static createBlob(e) {
@@ -83,7 +83,7 @@ var xn = [
83
83
  if ("string" == typeof e) return void await this.zipWriter.add(o, new mn(e), r);
84
84
  if (e instanceof Uint8Array || ArrayBuffer.isView(e) || e && "number" == typeof e.byteLength && "number" == typeof e.byteOffset) {
85
85
  try {
86
- await this.zipWriter.add(o, new fn(e), r);
86
+ await this.zipWriter.add(o, new hn(e), r);
87
87
  } catch (t) {
88
88
  throw console.log("Error adding Uint8Array source to zip:", o, r), t;
89
89
  }
@@ -523,17 +523,17 @@ var Zn = class {
523
523
  resolve: t
524
524
  }, this._scheduledByNodeKey.set(m, p), this._queue.push(p);
525
525
  }
526
- let f = this._nodesByPath.get(t);
527
- f || (f = /* @__PURE__ */ new Set(), this._nodesByPath.set(t, f)), f.add(m), !a || i || t || this._partWriter.rels("").add("http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", d);
528
- let h = null;
526
+ let h = this._nodesByPath.get(t);
527
+ h || (h = /* @__PURE__ */ new Set(), this._nodesByPath.set(t, h)), h.add(m), !a || i || t || this._partWriter.rels("").add("http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", d);
528
+ let f = null;
529
529
  if (i) {
530
530
  const e = Nn(t, p.path);
531
- h = this._partWriter.rels(t).add(i, e, { idHint: r });
531
+ f = this._partWriter.rels(t).add(i, e, { idHint: r });
532
532
  }
533
533
  return c.add(d), {
534
534
  path: d,
535
535
  contentTypeUri: a,
536
- relId: h
536
+ relId: f
537
537
  };
538
538
  }
539
539
  addBinary(t, e, n, o, r = !1, s) {
@@ -770,11 +770,11 @@ function lo(t, e, n, o, r) {
770
770
  const s = t[e][1]?.borders;
771
771
  if (!s) continue;
772
772
  const { rowStart: a, rowEnd: i } = t[e][0], l = uo(s.top);
773
- l >= ho && r(n, a, a), l >= fo && r(o, a - 1, a - 1);
773
+ l >= fo && r(n, a, a), l >= ho && r(o, a - 1, a - 1);
774
774
  const c = uo(s.bottom);
775
- if (c >= fo && r(o, i, i), c >= ho && r(n, i + 1, i + 1), i > a) {
775
+ if (c >= ho && r(o, i, i), c >= fo && r(n, i + 1, i + 1), i > a) {
776
776
  const t = uo(s.horizontal);
777
- t >= fo && r(o, a, i - 1), t >= ho && r(n, a + 1, i);
777
+ t >= ho && r(o, a, i - 1), t >= fo && r(n, a + 1, i);
778
778
  }
779
779
  }
780
780
  return {
@@ -830,8 +830,8 @@ function lo(t, e, n, o, r) {
830
830
  ...t,
831
831
  value: 0
832
832
  });
833
- const f = new Ie.IteratorInstance(p, { axis: Re.Column }), h = e.rowEnd, u = e.colEnd, g = (t, e) => {
834
- t.rowStart >= h || t.colStart >= u || c.push([t, e]);
833
+ const h = new Ie.IteratorInstance(p, { axis: Re.Column }), f = e.rowEnd, u = e.colEnd, g = (t, e) => {
834
+ t.rowStart >= f || t.colStart >= u || c.push([t, e]);
835
835
  }, x = /* @__PURE__ */ new Map(), y = (t) => {
836
836
  let e = x.get(t);
837
837
  if (void 0 === e) {
@@ -847,14 +847,14 @@ function lo(t, e, n, o, r) {
847
847
  const a = { ...r };
848
848
  return s ? a.borders = s : delete a.borders, n.getElementID(a, n.getElementComplement?.(e)) ?? e;
849
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
- if (e.rowStart >= h || e.colStart >= u) return;
850
+ if (e.rowStart >= f || e.colStart >= u) return;
851
851
  const n = S.get(t);
852
852
  n ? n.push(e) : S.set(t, [e]);
853
853
  }, C = [], k = [];
854
- let T = f.next();
854
+ let T = h.next();
855
855
  for (; !T.done;) {
856
856
  const t = T.value;
857
- T = f.next();
857
+ T = h.next();
858
858
  const e = t.overlaps, n = t.range, o = e.length;
859
859
  if (1 === o) {
860
860
  e[0].value && b(e[0], n);
@@ -863,7 +863,7 @@ function lo(t, e, n, o, r) {
863
863
  let r, s, a, i, l, c;
864
864
  for (let t = 0; t < o; t++) {
865
865
  const n = e[t], o = n.value;
866
- "number" != typeof o ? 0 === n.rowStart && n.rowEnd === h ? (l = o.s, c = n) : 0 === n.colStart && n.colEnd === u && (a = o.s, i = n) : 0 === o && void 0 !== r || (r = o, s = n);
866
+ "number" != typeof o ? 0 === n.rowStart && n.rowEnd === f ? (l = o.s, c = n) : 0 === n.colStart && n.colEnd === u && (a = o.s, i = n) : 0 === o && void 0 !== r || (r = o, s = n);
867
867
  }
868
868
  void 0 === a ? void 0 === l ? (0 !== r || 2 !== o && 4 !== o) && b(s, n) : w(c, l, s, r, n) ? k.push({
869
869
  ...n,
@@ -905,9 +905,9 @@ function lo(t, e, n, o, r) {
905
905
  cells: l,
906
906
  cols: s.cols ? Fe.refsToRuns(s.cols, !0) : [],
907
907
  rows: s.rows ? Fe.refsToRuns(s.rows, !1) : []
908
- }, i, o), f = { ...t };
909
- p.cols.length > 0 ? f.cols = Fe.runsToRefs(p.cols, !0) : delete f.cols;
910
- const h = function(t, e, n) {
908
+ }, i, o), h = { ...t };
909
+ p.cols.length > 0 ? h.cols = Fe.runsToRefs(p.cols, !0) : delete h.cols;
910
+ const f = function(t, e, n) {
911
911
  if (0 === e.length && 0 === n.length) return t;
912
912
  const o = [], r = (t) => {
913
913
  for (let e = 0; e < t.length; e++) o.push(t[e].min, t[e].max + 1);
@@ -921,25 +921,25 @@ function lo(t, e, n, o, r) {
921
921
  for (; l < t.length && t[l].max < m;) l++;
922
922
  for (; c < e.length && e[c].max < m;) c++;
923
923
  for (; d < n.length && n[d].max < m;) d++;
924
- const f = l < t.length && t[l].min <= m ? t[l] : null, h = (c < e.length && e[c].min <= m ? 1 : 0) | (d < n.length && n[d].min <= m ? 2 : 0);
925
- if (!f && 0 === h) continue;
924
+ const h = l < t.length && t[l].min <= m ? t[l] : null, f = (c < e.length && e[c].min <= m ? 1 : 0) | (d < n.length && n[d].min <= m ? 2 : 0);
925
+ if (!h && 0 === f) continue;
926
926
  const u = s[s.length - 1];
927
- if (u && u.max + 1 === m && f === a && h === i) {
927
+ if (u && u.max + 1 === m && h === a && f === i) {
928
928
  u.max = p;
929
929
  continue;
930
930
  }
931
- let g = f?.value ?? {};
932
- 0 !== h && (g = { ...g }, 1 & h && (g.tt = !0), 2 & h && (g.tb = !0)), s.push({
931
+ let g = h?.value ?? {};
932
+ 0 !== f && (g = { ...g }, 1 & f && (g.tt = !0), 2 & f && (g.tb = !0)), s.push({
933
933
  min: m,
934
934
  max: p,
935
935
  value: g
936
- }), a = f, i = h;
936
+ }), a = h, i = f;
937
937
  }
938
938
  return s;
939
939
  }(p.rows, m.top, m.bottom);
940
- h.length > 0 ? f.rows = Fe.runsToRefs(h, !1) : delete f.rows;
940
+ f.length > 0 ? h.rows = Fe.runsToRefs(f, !1) : delete h.rows;
941
941
  const u = p.cells;
942
- return u.length > 0 ? f.directStyles = u.map(([t, e]) => [Fe.rangeToString(t, i), e]) : delete f.directStyles, f;
942
+ return u.length > 0 ? h.directStyles = u.map(([t, e]) => [Fe.rangeToString(t, i), e]) : delete h.directStyles, h;
943
943
  }
944
944
  function co(t, e) {
945
945
  if (!t || !e) return t === e;
@@ -952,8 +952,8 @@ function co(t, e) {
952
952
  return e.color?.isIColor && (o = e.color.toString()), n === o;
953
953
  }
954
954
  function mo(t, e, n, o) {
955
- const r = o ? Ne.Edge.Left : Ne.Edge.Top, s = o ? Ne.Edge.Right : Ne.Edge.Bottom, a = o ? Ne.Edge.Vertical : Ne.Edge.Horizontal, i = o ? e.colStart : e.rowStart, l = o ? e.colEnd : e.rowEnd, c = o ? n.colStart : n.rowStart, d = o ? n.colEnd : n.rowEnd, m = i === c, p = l === d, f = { ...t };
956
- return m && p ? t : (delete f[r], delete f[s], delete f[a], m ? void 0 !== t[r] && (f[r] = t[r]) : void 0 !== t[a] && (f[r] = t[a]), p ? void 0 !== t[s] && (f[s] = t[s]) : void 0 !== t[a] && (f[s] = t[a]), d - c > 0 && void 0 !== t[a] && (f[a] = t[a]), 0 === Object.keys(f).length ? null : f);
955
+ const r = o ? Ne.Edge.Left : Ne.Edge.Top, s = o ? Ne.Edge.Right : Ne.Edge.Bottom, a = o ? Ne.Edge.Vertical : Ne.Edge.Horizontal, i = o ? e.colStart : e.rowStart, l = o ? e.colEnd : e.rowEnd, c = o ? n.colStart : n.rowStart, d = o ? n.colEnd : n.rowEnd, m = i === c, p = l === d, h = { ...t };
956
+ return m && p ? t : (delete h[r], delete h[s], delete h[a], m ? void 0 !== t[r] && (h[r] = t[r]) : void 0 !== t[a] && (h[r] = t[a]), p ? void 0 !== t[s] && (h[s] = t[s]) : void 0 !== t[a] && (h[s] = t[a]), d - c > 0 && void 0 !== t[a] && (h[a] = t[a]), 0 === Object.keys(h).length ? null : h);
957
957
  }
958
958
  function po(t, e, n) {
959
959
  const o = t.colEnd - t.colStart + 1, r = t.rowEnd - t.rowStart + 1;
@@ -1008,7 +1008,7 @@ function po(t, e, n) {
1008
1008
  rowEnd: t.rowEnd
1009
1009
  }, s, e, !0)), d;
1010
1010
  }
1011
- var fo = 2, ho = 3, uo = (t) => {
1011
+ var ho = 2, fo = 3, uo = (t) => {
1012
1012
  const e = t?.style;
1013
1013
  return e ? Ne.BuiltInDefinitions.get(e)?.width ?? 0 : 0;
1014
1014
  };
@@ -1163,8 +1163,8 @@ var So = [
1163
1163
  for (; c < r.length && r[c].max < e;) c++;
1164
1164
  const d = c < r.length && r[c].min <= e ? r[c] : null, m = String(e + 1).length, p = o[l].count * (7 + m) + o[l].letters;
1165
1165
  if (23 + (d ? d.count * (17 + m) + d.letters : 0) >= p) continue;
1166
- const f = i[i.length - 1];
1167
- f && f.max + 1 === e ? f.max = n : i.push({
1166
+ const h = i[i.length - 1];
1167
+ h && h.max + 1 === e ? h.max = n : i.push({
1168
1168
  min: e,
1169
1169
  max: n
1170
1170
  });
@@ -1335,17 +1335,17 @@ var Fo = class {
1335
1335
  const r = t.addHandled(e);
1336
1336
  return null !== r ? r : t.addHandled(De.BuiltIn.Value);
1337
1337
  }, i = (o) => {
1338
- const r = o.getKind(), i = wn(r), l = r.getMeta(), c = l?.card, d = o.getOwnMeta() ?? {}, m = o.getValues(), p = [], f = [];
1338
+ const r = o.getKind(), i = wn(r), l = r.getMeta(), c = l?.card, d = o.getOwnMeta() ?? {}, m = o.getValues(), p = [], h = [];
1339
1339
  for (const o of r.getProperties()) {
1340
- const { name: h } = o;
1341
- if (y.has(h)) {
1342
- switch (p.push([h, "_Icon" === h ? "s" : "spb"]), h) {
1340
+ const { name: f } = o;
1341
+ if (y.has(f)) {
1342
+ switch (p.push([f, "_Icon" === f ? "s" : "spb"]), f) {
1343
1343
  case "_Icon":
1344
- f.push(l?.icon ?? "");
1344
+ h.push(l?.icon ?? "");
1345
1345
  break;
1346
1346
  case "_Display": {
1347
1347
  const e = [], n = [];
1348
- c?.order && (e.push(["^Order", "spba"]), n.push("" + t.addBagArray(c.order.map((t) => ["s", t])))), c?.title && (e.push(["TitleProperty", "s"]), n.push(c.title)), c?.subTitle && (e.push(["SubTitleProperty", "s"]), n.push(c.subTitle)), f.push("" + t.addBag(e, n));
1348
+ c?.order && (e.push(["^Order", "spba"]), n.push("" + t.addBagArray(c.order.map((t) => ["s", t])))), c?.title && (e.push(["TitleProperty", "s"]), n.push(c.title)), c?.subTitle && (e.push(["SubTitleProperty", "s"]), n.push(c.subTitle)), h.push("" + t.addBag(e, n));
1349
1349
  break;
1350
1350
  }
1351
1351
  case "_Format": {
@@ -1358,12 +1358,12 @@ var Fo = class {
1358
1358
  ...s ? { isHero: s } : {}
1359
1359
  })]);
1360
1360
  }
1361
- f.push("" + n(e, "i"));
1361
+ h.push("" + n(e, "i"));
1362
1362
  break;
1363
1363
  }
1364
1364
  case "_SubLabel": {
1365
1365
  const t = r.getProperties().filter((t) => d[t.name]?.sublabel).map((t) => [t.name, d[t.name].sublabel]);
1366
- f.push("" + n(t, "s"));
1366
+ h.push("" + n(t, "s"));
1367
1367
  break;
1368
1368
  }
1369
1369
  case "_Flags": {
@@ -1372,40 +1372,40 @@ var Fo = class {
1372
1372
  const o = Cn(d[n.name]?.excludeFrom, !1);
1373
1373
  0 !== o.length && e.push([n.name, "" + t.addBag(o.map(([t]) => [t, "b"]), o.map(([, t]) => t))]);
1374
1374
  }
1375
- f.push("" + n(e, "spb"));
1375
+ h.push("" + n(e, "spb"));
1376
1376
  break;
1377
1377
  }
1378
1378
  }
1379
1379
  continue;
1380
1380
  }
1381
- if (!h.startsWith("_")) {
1381
+ if (!f.startsWith("_")) {
1382
1382
  const e = Cn(o.meta?.excludeFrom, !0);
1383
- e.length > 0 && t.addKeyFlags(i, h, e);
1383
+ e.length > 0 && t.addKeyFlags(i, f, e);
1384
1384
  }
1385
- const u = m[h];
1385
+ const u = m[f];
1386
1386
  switch (o.valueType) {
1387
1387
  case "rich":
1388
- Sn(u) ? (p.push([h, "spb"]), f.push("" + e(u))) : (p.push([h, "r"]), f.push(null == u ? "" : "" + a(u, d[h]?.numberFormat)));
1388
+ Sn(u) ? (p.push([f, "spb"]), h.push("" + e(u))) : (p.push([f, "r"]), h.push(null == u ? "" : "" + a(u, d[f]?.numberFormat)));
1389
1389
  break;
1390
1390
  case "array":
1391
- p.push([h, "a"]), f.push(u instanceof nn ? "" + s(u) : "");
1391
+ p.push([f, "a"]), h.push(u instanceof nn ? "" + s(u) : "");
1392
1392
  break;
1393
1393
  case "string":
1394
- p.push([h, "s"]), f.push(null == u ? "" : "" + u);
1394
+ p.push([f, "s"]), h.push(null == u ? "" : "" + u);
1395
1395
  break;
1396
1396
  case "integer":
1397
- p.push([h, "i"]), f.push(null == u ? "0" : "" + u);
1397
+ p.push([f, "i"]), h.push(null == u ? "0" : "" + u);
1398
1398
  break;
1399
1399
  case "boolean":
1400
- p.push([h, "b"]), f.push(u ? "1" : "0");
1400
+ p.push([f, "b"]), h.push(u ? "1" : "0");
1401
1401
  break;
1402
1402
  case "error":
1403
- p.push([h, "e"]), f.push(De.isError(u) ? u.getLabel() : De.BuiltIn.Value.getLabel());
1403
+ p.push([f, "e"]), h.push(De.isError(u) ? u.getLabel() : De.BuiltIn.Value.getLabel());
1404
1404
  break;
1405
- default: p.push([h]), f.push("number" == typeof u ? bn(u) : null == u ? "" : "" + u);
1405
+ default: p.push([f]), h.push("number" == typeof u ? bn(u) : null == u ? "" : "" + u);
1406
1406
  }
1407
1407
  }
1408
- return t.addValue(t.structureFor(i, p), f);
1408
+ return t.addValue(t.structureFor(i, p), h);
1409
1409
  }, l = (e) => {
1410
1410
  const n = wn(e.getKind());
1411
1411
  if ("_linkedentitycore" === n) return t.addKeyFlags("_linkedentity", "%cvi", vn), t.addValue(t.structureFor("_linkedentity", yn), ["" + i(e)]);
@@ -1909,17 +1909,17 @@ var Jo = (t, e, n, o) => {
1909
1909
  switch (n.type) {
1910
1910
  case ze.Type.OuterShadow: {
1911
1911
  const o = {};
1912
- void 0 !== n.blur && (o.blurRad = String(pr(n.blur))), void 0 !== n.distance && (o.dist = String(pr(n.distance))), void 0 !== n.angle && (o.dir = String(hr(n.angle))), void 0 !== n.alignment && (o.algn = n.alignment), void 0 !== n.isRotatedWithShape && (o.rotWithShape = n.isRotatedWithShape ? "1" : "0"), void 0 !== n.scaleX && (o.sx = String(Pe.roundAccurately(1e3 * n.scaleX, 0))), void 0 !== n.scaleY && (o.sy = String(Pe.roundAccurately(1e3 * n.scaleY, 0))), void 0 !== n.skewX && (o.kx = String(hr(n.skewX))), void 0 !== n.skewY && (o.ky = String(hr(n.skewY))), t.start("outerShdw", o), Lo(t, e, n.color), t.end("outerShdw");
1912
+ void 0 !== n.blur && (o.blurRad = String(pr(n.blur))), void 0 !== n.distance && (o.dist = String(pr(n.distance))), void 0 !== n.angle && (o.dir = String(fr(n.angle))), void 0 !== n.alignment && (o.algn = n.alignment), void 0 !== n.isRotatedWithShape && (o.rotWithShape = n.isRotatedWithShape ? "1" : "0"), void 0 !== n.scaleX && (o.sx = String(Pe.roundAccurately(1e3 * n.scaleX, 0))), void 0 !== n.scaleY && (o.sy = String(Pe.roundAccurately(1e3 * n.scaleY, 0))), void 0 !== n.skewX && (o.kx = String(fr(n.skewX))), void 0 !== n.skewY && (o.ky = String(fr(n.skewY))), t.start("outerShdw", o), Lo(t, e, n.color), t.end("outerShdw");
1913
1913
  break;
1914
1914
  }
1915
1915
  case ze.Type.InnerShadow: {
1916
1916
  const o = {};
1917
- void 0 !== n.blur && (o.blurRad = String(pr(n.blur))), void 0 !== n.distance && (o.dist = String(pr(n.distance))), void 0 !== n.angle && (o.dir = String(hr(n.angle))), t.start("innerShdw", o), Lo(t, e, n.color), t.end("innerShdw");
1917
+ void 0 !== n.blur && (o.blurRad = String(pr(n.blur))), void 0 !== n.distance && (o.dist = String(pr(n.distance))), void 0 !== n.angle && (o.dir = String(fr(n.angle))), t.start("innerShdw", o), Lo(t, e, n.color), t.end("innerShdw");
1918
1918
  break;
1919
1919
  }
1920
1920
  case ze.Type.PresetShadow: {
1921
1921
  const o = { prst: n.preset };
1922
- void 0 !== n.distance && (o.dist = String(pr(n.distance))), void 0 !== n.angle && (o.dir = String(hr(n.angle))), t.start("prstShdw", o), Lo(t, e, n.color), t.end("prstShdw");
1922
+ void 0 !== n.distance && (o.dist = String(pr(n.distance))), void 0 !== n.angle && (o.dir = String(fr(n.angle))), t.start("prstShdw", o), Lo(t, e, n.color), t.end("prstShdw");
1923
1923
  break;
1924
1924
  }
1925
1925
  case ze.Type.Glow: {
@@ -1934,7 +1934,7 @@ var Jo = (t, e, n, o) => {
1934
1934
  }
1935
1935
  case ze.Type.Reflection: {
1936
1936
  const e = {};
1937
- void 0 !== n.blur && (e.blurRad = String(pr(n.blur))), void 0 !== n.distance && (e.dist = String(pr(n.distance))), void 0 !== n.angle && (e.dir = String(hr(n.angle))), void 0 !== n.fadeAngle && (e.fadeDir = String(hr(n.fadeAngle))), void 0 !== n.startAlpha && (e.stA = String(Pe.roundAccurately(1e3 * n.startAlpha, 0))), void 0 !== n.startPosition && (e.stPos = String(Pe.roundAccurately(1e3 * n.startPosition, 0))), void 0 !== n.endAlpha && (e.endA = String(Pe.roundAccurately(1e3 * n.endAlpha, 0))), void 0 !== n.endPosition && (e.endPos = String(Pe.roundAccurately(1e3 * n.endPosition, 0))), void 0 !== n.scaleX && (e.sx = String(Pe.roundAccurately(1e3 * n.scaleX, 0))), void 0 !== n.scaleY && (e.sy = String(Pe.roundAccurately(1e3 * n.scaleY, 0))), void 0 !== n.skewX && (e.kx = String(hr(n.skewX))), void 0 !== n.skewY && (e.ky = String(hr(n.skewY))), void 0 !== n.alignment && (e.algn = n.alignment), void 0 !== n.isRotatedWithShape && (e.rotWithShape = n.isRotatedWithShape ? "1" : "0"), t.empty("reflection", e);
1937
+ void 0 !== n.blur && (e.blurRad = String(pr(n.blur))), void 0 !== n.distance && (e.dist = String(pr(n.distance))), void 0 !== n.angle && (e.dir = String(fr(n.angle))), void 0 !== n.fadeAngle && (e.fadeDir = String(fr(n.fadeAngle))), void 0 !== n.startAlpha && (e.stA = String(Pe.roundAccurately(1e3 * n.startAlpha, 0))), void 0 !== n.startPosition && (e.stPos = String(Pe.roundAccurately(1e3 * n.startPosition, 0))), void 0 !== n.endAlpha && (e.endA = String(Pe.roundAccurately(1e3 * n.endAlpha, 0))), void 0 !== n.endPosition && (e.endPos = String(Pe.roundAccurately(1e3 * n.endPosition, 0))), void 0 !== n.scaleX && (e.sx = String(Pe.roundAccurately(1e3 * n.scaleX, 0))), void 0 !== n.scaleY && (e.sy = String(Pe.roundAccurately(1e3 * n.scaleY, 0))), void 0 !== n.skewX && (e.kx = String(fr(n.skewX))), void 0 !== n.skewY && (e.ky = String(fr(n.skewY))), void 0 !== n.alignment && (e.algn = n.alignment), void 0 !== n.isRotatedWithShape && (e.rotWithShape = n.isRotatedWithShape ? "1" : "0"), t.empty("reflection", e);
1938
1938
  break;
1939
1939
  }
1940
1940
  }
@@ -1987,12 +1987,12 @@ var Jo = (t, e, n, o) => {
1987
1987
  const o = { "xmlns:r": Uo };
1988
1988
  if (o[n.external ? "r:link" : "r:embed"] = n.relId, void 0 !== e.compressionState && (o.cstate = e.compressionState), e.imageEffects || e.extLst ? (t.start("blip", o), e.imageEffects && t.raw(e.imageEffects), e.extLst && t.raw(e.extLst), t.end("blip")) : t.empty("blip", o), e.sourceRect && t.empty("srcRect", lr(e.sourceRect)), e.tile) {
1989
1989
  const n = e.tile, o = {};
1990
- void 0 !== n.offsetX && (o.tx = String(fr(n.offsetX))), void 0 !== n.offsetY && (o.ty = String(fr(n.offsetY))), void 0 !== n.scaleX && (o.sx = ir(n.scaleX)), void 0 !== n.scaleY && (o.sy = ir(n.scaleY)), void 0 !== n.flip && (o.flip = n.flip), void 0 !== n.alignment && (o.algn = n.alignment), t.empty("tile", o);
1990
+ void 0 !== n.offsetX && (o.tx = String(hr(n.offsetX))), void 0 !== n.offsetY && (o.ty = String(hr(n.offsetY))), void 0 !== n.scaleX && (o.sx = ir(n.scaleX)), void 0 !== n.scaleY && (o.sy = ir(n.scaleY)), void 0 !== n.flip && (o.flip = n.flip), void 0 !== n.alignment && (o.algn = n.alignment), t.empty("tile", o);
1991
1991
  } else e.stretch && (t.start("stretch"), t.empty("fillRect", lr(e.stretch)), t.end("stretch"));
1992
1992
  }, mr = {
1993
1993
  mime: "image/png",
1994
1994
  ext: "png"
1995
- }, pr = (t = 0) => Pe.roundAccurately(12700 * t, 0), fr = (t = 0) => Pe.roundAccurately(9525 * t, 0), hr = (t) => Pe.roundAccurately(6e4 * t, 0), ur = (t = 0) => Pe.roundAccurately(100 * t, 2), gr = class {
1995
+ }, pr = (t = 0) => Pe.roundAccurately(12700 * t, 0), hr = (t = 0) => Pe.roundAccurately(9525 * t, 0), fr = (t) => Pe.roundAccurately(6e4 * t, 0), ur = (t = 0) => Pe.roundAccurately(100 * t, 2), gr = class {
1996
1996
  constructor() {
1997
1997
  this._dxfs = [], this._byKey = /* @__PURE__ */ new Map();
1998
1998
  }
@@ -2137,14 +2137,14 @@ function Ir(t, e, n, r, s = !1) {
2137
2137
  l && e.empty("u", { val: l }), n.outline && e.empty("outline"), n.shadow && e.empty("shadow");
2138
2138
  const c = N(n.letterSpacing);
2139
2139
  c && e.empty(c);
2140
- const d = h(n.baseline, s);
2140
+ const d = f(n.baseline, s);
2141
2141
  d && e.empty("vertAlign", { val: d }), s ? void 0 !== n.size && e.empty("sz", { val: String(n.size) }) : e.empty("sz", { val: String(n.size ?? a) }), No(e, r.getTheme(), n.color ?? i, "color", !s);
2142
- const { name: m, scheme: f } = p(n.family, n.fallbacks, r.getTheme(), !s), u = void 0 !== m && (!s || m !== r.getTheme().getFontScheme().getMinorFont());
2142
+ const { name: m, scheme: h } = p(n.family, n.fallbacks, r.getTheme(), !s), u = void 0 !== m && (!s || m !== r.getTheme().getFontScheme().getMinorFont());
2143
2143
  if (u && (e.empty("name", { val: m }), n.fallbacks && n.fallbacks.length > 0)) {
2144
2144
  const t = n.fallbacks;
2145
2145
  t.includes("serif") ? e.empty("family", { val: 1 }) : t.includes("sans-serif") ? e.empty("family", { val: 2 }) : t.includes("monospace") ? e.empty("family", { val: 3 }) : t.includes("cursive") ? e.empty("family", { val: 4 }) : t.includes("fantasy") && e.empty("family", { val: 5 });
2146
2146
  }
2147
- void 0 !== n.charset && null !== n.charset && e.empty("charset", { val: String(n.charset) }), u && f && e.empty("scheme", { val: f }), e.end("font");
2147
+ void 0 !== n.charset && null !== n.charset && e.empty("charset", { val: String(n.charset) }), u && h && e.empty("scheme", { val: h }), e.end("font");
2148
2148
  }
2149
2149
  function Rr(t, e, n, o, r, s = !1) {
2150
2150
  if (!r || "none" === r.style || !r.style) return void (s && !r || e.empty(o));
@@ -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, 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) {
2180
+ const p = o.font ?? d?.font, h = p ? r.fontMap.get(Ee.JSONStableStringify(p)) ?? 0 : 0, f = o.fill ?? d?.fill, u = f ? r.fillMap.get(Ee.JSONStableStringify(f)) ?? 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(h), 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
  }
@@ -2271,13 +2271,13 @@ var $r = Object.freeze([
2271
2271
  ["refreshOnLoad", t.refreshOnLoad ? "1" : void 0],
2272
2272
  ["recordCount", i]
2273
2273
  ]));
2274
- const f = t.source ?? {}, h = /<worksheetSource((?:\s+[^\s=/>]+\s*=\s*(?:"[^"]*"|'[^']*'))*)/.exec(c);
2275
- if (!h) return null;
2276
- c = c.replace(h[0], () => "<worksheetSource" + Et([
2277
- ["ref", f.ref],
2278
- ["sheet", f.sheet],
2279
- ["name", f.name]
2280
- ]) + h[1]);
2274
+ const h = t.source ?? {}, f = /<worksheetSource((?:\s+[^\s=/>]+\s*=\s*(?:"[^"]*"|'[^']*'))*)/.exec(c);
2275
+ if (!f) return null;
2276
+ c = c.replace(f[0], () => "<worksheetSource" + Et([
2277
+ ["ref", h.ref],
2278
+ ["sheet", h.sheet],
2279
+ ["name", h.name]
2280
+ ]) + f[1]);
2281
2281
  const u = ce(c, "cacheSource");
2282
2282
  if (!u) return null;
2283
2283
  if (c = c.substring(0, u.end) + `<cacheFields count="${o.length}">${l.join("")}</cacheFields>` + Gr(o) + c.substring(u.end), !m) return {
@@ -2481,7 +2481,7 @@ var $r = Object.freeze([
2481
2481
  for (let n = 0; n < l; n++) {
2482
2482
  const o = i[n], r = o.criteria ?? {}, l = o.index + s.colStart, c = {};
2483
2483
  r.reverse && (c.descending = "1");
2484
- const f = d?.sorts?.[n], h = (f ? P(m, f) : null) ?? (d ? {
2484
+ const h = d?.sorts?.[n], f = (h ? P(m, h) : null) ?? (d ? {
2485
2485
  ...p,
2486
2486
  colStart: l,
2487
2487
  colEnd: l
@@ -2491,7 +2491,7 @@ var $r = Object.freeze([
2491
2491
  colStart: l,
2492
2492
  colEnd: l
2493
2493
  });
2494
- c.ref = Fe.rangeToString(h);
2494
+ c.ref = Fe.rangeToString(f);
2495
2495
  const u = pe(r.sortOn);
2496
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
  }
@@ -2501,21 +2501,21 @@ var $r = Object.freeze([
2501
2501
  n.isShowTotals() && (s = s.getResizeBy(-1, 0));
2502
2502
  const a = s.getCoords(), i = o.sort, l = o.filter, c = l ? l.conditions : void 0, d = c ? c.length : 0, m = o.hiddenButtons, p = {};
2503
2503
  p.ref = s.toString();
2504
- let f, h = [];
2504
+ let h, f = [];
2505
2505
  for (let t = 0; t < d; t++) {
2506
2506
  const e = c[t];
2507
- h[e.index] = { ...e };
2507
+ f[e.index] = { ...e };
2508
2508
  }
2509
2509
  if (Array.isArray(m) && m.length > 0) {
2510
2510
  const t = m.length;
2511
- f = new Array(m[t - 1]);
2512
- for (let e = 0; e < t; e++) f[m[e]] = !0;
2511
+ h = new Array(m[t - 1]);
2512
+ for (let e = 0; e < t; e++) h[m[e]] = !0;
2513
2513
  }
2514
- if (h || m || f || r) {
2514
+ if (f || m || h || r) {
2515
2515
  let l = 0;
2516
2516
  o.columns ? l = o.columns.length : r && (l = s.getColumnCount()), e.start("autoFilter", p);
2517
2517
  for (let o = 0; o < l; o++) {
2518
- const r = !0 === m || !0 === f?.[o], s = h[o];
2518
+ const r = !0 === m || !0 === h?.[o], s = f[o];
2519
2519
  (s || r) && us(t, e, o, s, r, n.getColumnAt(o)?.getFilter() ?? null);
2520
2520
  }
2521
2521
  i && r && ds(t, e, n, i, 0, a, r || n.isShowHeaders() ? 1 : 0), e.end("autoFilter");
@@ -2526,11 +2526,11 @@ var $r = Object.freeze([
2526
2526
  if (!o) return;
2527
2527
  const r = { operator: o.operator };
2528
2528
  void 0 !== o.val && (r.val = o.val), e.empty("customFilter", r);
2529
- }, fs = /* @__PURE__ */ new Set([
2529
+ }, hs = /* @__PURE__ */ new Set([
2530
2530
  Oe.BuiltInSelectorNames.Display,
2531
2531
  Oe.BuiltInSelectorNames.Date,
2532
2532
  Oe.BuiltInSelectorNames.Time
2533
- ]), hs = (t, e, n, o) => {
2533
+ ]), fs = (t, e, n, o) => {
2534
2534
  const r = [], s = [];
2535
2535
  for (let t = 0; t < n.length; t++) {
2536
2536
  const e = n[t];
@@ -2545,7 +2545,7 @@ var $r = Object.freeze([
2545
2545
  const a = {};
2546
2546
  a.colId = "" + n, r && (a.hiddenButton = "1"), o ? (e.start("filterColumn", a), ((t, e, n, o = null) => {
2547
2547
  const r = n.operator, s = "string" == typeof n.selector ? n.selector : n.selector?.getName?.();
2548
- if (s && !fs.has(s) && t.warn(`A '${s}' selector has no OOXML form in a Table AutoFilter; the rule is written without it`, n), !0 === n.includeBlanks && r !== Oe.BuiltInOperatorNames.InSet && r !== cs.Blank && t.warn("Ignore Blank has no OOXML form in a Table AutoFilter outside a values list; Excel will hide the blank rows", n), r === Oe.BuiltInOperatorNames.Expression) return void t.warn("Expression conditions not supported in Table AutoFilters", n);
2548
+ if (s && !hs.has(s) && t.warn(`A '${s}' selector has no OOXML form in a Table AutoFilter; the rule is written without it`, n), !0 === n.includeBlanks && r !== Oe.BuiltInOperatorNames.InSet && r !== cs.Blank && t.warn("Ignore Blank has no OOXML form in a Table AutoFilter outside a values list; Excel will hide the blank rows", n), r === Oe.BuiltInOperatorNames.Expression) return void t.warn("Expression conditions not supported in Table AutoFilters", n);
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 = {};
@@ -2565,7 +2565,7 @@ var $r = Object.freeze([
2565
2565
  if (r === Oe.BuiltInOperatorNames.InSet) {
2566
2566
  const r = n.param ?? {};
2567
2567
  let s = Array.isArray(r.items) ? r.items : [];
2568
- n.selector !== Oe.BuiltInSelectorNames.Display && s.some((t) => "string" != typeof t) && (s = hs(t, n, s, o)), void 0 !== r.source && null !== r.source && t.warn("A list read from a formula has no OOXML form in a Table AutoFilter; the filter is written without it", n);
2568
+ n.selector !== Oe.BuiltInSelectorNames.Display && s.some((t) => "string" != typeof t) && (s = fs(t, n, s, o)), void 0 !== r.source && null !== r.source && t.warn("A list read from a formula has no OOXML form in a Table AutoFilter; the filter is written without it", n);
2569
2569
  const a = r.additions ?? [];
2570
2570
  a.length > 0 && (t.warn("Typed list values in a Table AutoFilter are written as items matched by displayed text", n), s = [...s, ...a]), (r.subtractions?.length ?? 0) > 0 && t.warn("Exclusions from a list have no OOXML form in a Table AutoFilter; they are not written", n), gs(e, s, r.dateGroups ?? [], !0 === n.includeBlanks || !0 === r.blank, r.calendarType);
2571
2571
  return;
@@ -2765,8 +2765,8 @@ function js(e, o, r, s, a, i) {
2765
2765
  const c = s.part;
2766
2766
  if (!c?.xml) return null;
2767
2767
  let d = Mt(c.xml, a);
2768
- const m = n(d), p = m ? t((t) => m.get(t)) : void 0, h = s.tabColor;
2769
- (h ?? void 0) !== p && (d = _(d, h ? function(t, e) {
2768
+ const m = n(d), p = m ? t((t) => m.get(t)) : void 0, f = s.tabColor;
2769
+ (f ?? void 0) !== p && (d = _(d, f ? function(t, e) {
2770
2770
  const n = [], o = Rn({ write: (t) => {
2771
2771
  n.push(t);
2772
2772
  } });
@@ -2778,9 +2778,9 @@ function js(e, o, r, s, a, i) {
2778
2778
  for (const e of t) n.set(e, o), o += e.length;
2779
2779
  return n;
2780
2780
  }(n)) || null;
2781
- }(o, h) : null));
2781
+ }(o, f) : null));
2782
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", {
2783
+ return "macro" !== r || i || (d = h(d), u = de, g = de.relType, x = de.contentType), e.addPart("embeddedPart", {
2784
2784
  ...c,
2785
2785
  xml: d,
2786
2786
  type: g,
@@ -2873,18 +2873,18 @@ var Us = [
2873
2873
  l = ta(l, "pivotFields", `<pivotFields count="${r.length}">${r.map((t, n) => oa(t, m.has(n), e)).join("")}</pivotFields>`);
2874
2874
  const p = (t, e) => {
2875
2875
  e && 0 !== e.length && (l = ta(l, t, `<${t} count="${e.length}">${e.map((t) => `<field x="${t}"/>`).join("")}</${t}>`));
2876
- }, f = (t, e) => {
2876
+ }, h = (t, e) => {
2877
2877
  e && 0 !== e.length && (l = ta(l, t, `<${t} count="${e.length}">${e.map(Qs).join("")}</${t}>`));
2878
2878
  };
2879
- p("rowFields", t.rowFields), p("colFields", t.columnFields), f("rowItems", t.rowLines), f("colItems", t.columnLines);
2880
- const h = t.pageFields;
2881
- if (h && h.length > 0) {
2882
- const t = h.map((t) => `<pageField${Et([
2879
+ p("rowFields", t.rowFields), p("colFields", t.columnFields), h("rowItems", t.rowLines), h("colItems", t.columnLines);
2880
+ const f = t.pageFields;
2881
+ if (f && f.length > 0) {
2882
+ const t = f.map((t) => `<pageField${Et([
2883
2883
  ["fld", t.field],
2884
2884
  ["item", t.item],
2885
2885
  ["hier", -1]
2886
2886
  ])}/>`).join("");
2887
- l = ta(l, "pageFields", `<pageFields count="${h.length}">${t}</pageFields>`);
2887
+ l = ta(l, "pageFields", `<pageFields count="${f.length}">${t}</pageFields>`);
2888
2888
  }
2889
2889
  const u = t.dataFields;
2890
2890
  u && u.length > 0 && (l = ta(l, "dataFields", `<dataFields count="${u.length}">${u.map((t) => ea(t, e)).join("")}</dataFields>`));
@@ -2968,7 +2968,7 @@ var Us = [
2968
2968
  ["m", s(t.missing)],
2969
2969
  ["x", t.item]
2970
2970
  ])}/>`).join("")}</items>` : "";
2971
- return void 0 !== t.sort?.dataField && (l += ht(t.sort.dataField, t.sort.scope)), t.repeatLabels && (l += `<extLst><ext uri="${Q}" xmlns:x14="${Gs}"><x14:pivotField fillDownLabels="1"/></ext></extLst>`), l ? `<pivotField${a}>${l}</pivotField>` : `<pivotField${a}/>`;
2971
+ return void 0 !== t.sort?.dataField && (l += ft(t.sort.dataField, t.sort.scope)), t.repeatLabels && (l += `<extLst><ext uri="${Q}" xmlns:x14="${Gs}"><x14:pivotField fillDownLabels="1"/></ext></extLst>`), l ? `<pivotField${a}>${l}</pivotField>` : `<pivotField${a}/>`;
2972
2972
  };
2973
2973
  function ra(t) {
2974
2974
  let e = `[Threaded comment]\n\nYour version of Excel allows you to read this threaded comment; however, any edits to it will get removed if the file is opened in a newer version of Excel. Learn more: https://go.microsoft.com/fwlink/?linkid=870924\n\nComment:\n ${t.getContent()}`;
@@ -3001,7 +3001,7 @@ function ia(t, e, n) {
3001
3001
  s && r(s, !0), r("outline", e.outline), r("shadow", e.shadow);
3002
3002
  const a = o(e.underline);
3003
3003
  a && t.empty("u", a === Xe.UnderlineStyle.Single ? void 0 : { val: a });
3004
- const i = h(e.baseline, !0);
3004
+ const i = f(e.baseline, !0);
3005
3005
  i && t.empty("vertAlign", { val: i }), void 0 !== e.size && t.empty("sz", { val: e.size }), e.color && function(t, e, n) {
3006
3006
  const o = /^index(\d+)$/.exec(e);
3007
3007
  if (o) return void t.empty("color", { indexed: Number(o[1]) });
@@ -3039,8 +3039,8 @@ var da = (t) => !(!t || !(void 0 === t.sz || t.sz > 0) || t.csz || t.h || void 0
3039
3039
  names: /* @__PURE__ */ new Set(),
3040
3040
  perFormula: [],
3041
3041
  affects: () => !1
3042
- }, pa = (t) => "" + sn.flushSubnormal(t), fa = (t) => Number.isInteger(t) && Math.abs(t) < 0x38d7ea4c68000 ? "" + t : "" + Number(sn.flushSubnormal(t).toPrecision(15));
3043
- function ha(t, e) {
3042
+ }, pa = (t) => "" + sn.flushSubnormal(t), ha = (t) => Number.isInteger(t) && Math.abs(t) < 0x38d7ea4c68000 ? "" + t : "" + Number(sn.flushSubnormal(t).toPrecision(15));
3043
+ function fa(t, e) {
3044
3044
  const n = /* @__PURE__ */ new Set(), o = t.getGroups(e), r = t.getSummaryDirection(e), s = r === Ue.Direction.Down || r === Ue.Direction.Right;
3045
3045
  for (let t = 0; t < o.length; t++) {
3046
3046
  const e = o[t];
@@ -3151,16 +3151,16 @@ function Ra(t, e, n, o, r, s, a, i, l) {
3151
3151
  let m;
3152
3152
  c?.type === Ve.ScaleType.DataBar && function(t) {
3153
3153
  return !!(t.solidFill || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) || t.minPoint?.type === Ve.ColorStopType.AutoMin || t.maxPoint?.type === Ve.ColorStopType.AutoMax;
3154
- }(c) && (m = fe(Pe.uuidV4), l.push({
3154
+ }(c) && (m = he(Pe.uuidV4), l.push({
3155
3155
  guid: m,
3156
3156
  sqref: s,
3157
3157
  priority: a,
3158
3158
  scale: c
3159
3159
  }));
3160
- const p = r.formulas, f = p ? p.length : 0;
3161
- if (0 !== f || c) {
3160
+ const p = r.formulas, h = p ? p.length : 0;
3161
+ if (0 !== h || c) {
3162
3162
  e.start("cfRule", d);
3163
- for (let t = 0; t < f; t++) e.start("formula"), e.text(p[t]), e.end("formula");
3163
+ for (let t = 0; t < h; t++) e.start("formula"), e.text(p[t]), e.end("formula");
3164
3164
  if (c?.type === Ve.ScaleType.ColorScale) {
3165
3165
  const t = c.stops ?? [];
3166
3166
  e.start("colorScale");
@@ -3361,11 +3361,11 @@ var Va = (t, e, n, o) => {
3361
3361
  let o = le(n ?? "");
3362
3362
  const r = [], s = e.comments;
3363
3363
  for (let t = 0; t < s.length; t++) {
3364
- const { comment: n, row: a, col: i } = s[t], l = n.isNote() ? n.toJSON() : null, { bounds: d, anchor: m } = Va(e.sheet, n, a, i), p = l?.box, f = p?.fill || p?.stroke ? D(p.xml ?? W, {
3364
+ const { comment: n, row: a, col: i } = s[t], l = n.isNote() ? n.toJSON() : null, { bounds: d, anchor: m } = Va(e.sheet, n, a, i), p = l?.box, h = p?.fill || p?.stroke ? D(p.xml ?? W, {
3365
3365
  fill: p.fill,
3366
3366
  stroke: p.stroke
3367
3367
  }, (t) => e.sheet.getStyles().parseColor(t)) : p?.xml;
3368
- r.push(c(f, {
3368
+ r.push(c(h, {
3369
3369
  shapeId: ++o,
3370
3370
  zIndex: t + 1,
3371
3371
  row: a,
@@ -3415,15 +3415,15 @@ var ja = (t, e) => {
3415
3415
  Math.round(c.x ?? 0),
3416
3416
  c.r ?? 0,
3417
3417
  Math.round(c.y ?? 0)
3418
- ], m = o(d[0], d[2]), p = o(d[4], d[6]), f = m.x + d[1], h = m.y + d[3], u = at(e.content.type, a, {
3418
+ ], m = o(d[0], d[2]), p = o(d[4], d[6]), h = m.x + d[1], f = m.y + d[3], u = at(e.content.type, a, {
3419
3419
  shapeId: i,
3420
3420
  zIndex: r.length + 1,
3421
3421
  anchor: d,
3422
3422
  bounds: {
3423
- x: f,
3424
- y: h,
3425
- width: Math.max(0, p.x + d[5] - f),
3426
- height: Math.max(0, p.y + d[7] - h)
3423
+ x: h,
3424
+ y: f,
3425
+ width: Math.max(0, p.x + d[5] - h),
3426
+ height: Math.max(0, p.y + d[7] - f)
3427
3427
  },
3428
3428
  anchorType: n[t].anchorType
3429
3429
  });
@@ -3436,7 +3436,7 @@ var ja = (t, e) => {
3436
3436
  xml: l
3437
3437
  } : { xml: l } : e;
3438
3438
  }, Ha = (t, e, n) => {
3439
- 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);
3439
+ t.start(e), t.start("xdr:col"), t.text(n.c ?? 0), t.end("xdr:col"), t.start("xdr:colOff"), t.text(hr(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(hr(n.y)), t.end("xdr:rowOff"), t.end(e);
3440
3440
  };
3441
3441
  var Ua = {
3442
3442
  r: void 0,
@@ -3541,12 +3541,12 @@ var Za = (t) => String(Math.round(1e3 * t)), Qa = (t) => void 0 === t ? void 0 :
3541
3541
  n && (t.start(e), "percent" in n ? t.empty("spcPct", { val: Za(n.percent) }) : t.empty("spcPts", { val: String(Math.round(100 * n.points)) }), t.end(e));
3542
3542
  }, si = (t, e, n, o) => {
3543
3543
  const r = t.getXMLWriter(), s = {
3544
- marL: void 0 === o.marginLeft ? void 0 : String(fr(o.marginLeft)),
3545
- marR: void 0 === o.marginRight ? void 0 : String(fr(o.marginRight)),
3544
+ marL: void 0 === o.marginLeft ? void 0 : String(hr(o.marginLeft)),
3545
+ marR: void 0 === o.marginRight ? void 0 : String(hr(o.marginRight)),
3546
3546
  lvl: void 0 === o.level ? void 0 : String(o.level),
3547
- indent: void 0 === o.indent ? void 0 : String(fr(o.indent)),
3547
+ indent: void 0 === o.indent ? void 0 : String(hr(o.indent)),
3548
3548
  algn: x.write(o.align),
3549
- defTabSz: void 0 === o.defaultTabSize ? void 0 : String(fr(o.defaultTabSize)),
3549
+ defTabSz: void 0 === o.defaultTabSize ? void 0 : String(hr(o.defaultTabSize)),
3550
3550
  rtl: Qa(o.rightToLeft),
3551
3551
  eaLnBrk: Qa(o.eastAsianLineBreak),
3552
3552
  fontAlgn: j.write(o.fontAlign),
@@ -3569,7 +3569,7 @@ var Za = (t) => String(Math.round(1e3 * t)), Qa = (t) => void 0 === t ? void 0 :
3569
3569
  if (o.tabs) {
3570
3570
  r.start("tabLst");
3571
3571
  for (const t of o.tabs) r.empty("tab", {
3572
- pos: String(fr(t.position)),
3572
+ pos: String(hr(t.position)),
3573
3573
  algn: Ut.write(t.align)
3574
3574
  });
3575
3575
  r.end("tabLst");
@@ -3584,12 +3584,12 @@ var Za = (t) => String(Math.round(1e3 * t)), Qa = (t) => void 0 === t ? void 0 :
3584
3584
  horzOverflow: ai(n.horizontalOverflow ?? ln.TEXT_DEFAULTS.horizontalOverflow),
3585
3585
  vert: q.write(n.vertical),
3586
3586
  wrap: n.wrap,
3587
- lIns: void 0 === o?.left ? void 0 : String(fr(o.left)),
3588
- tIns: void 0 === o?.top ? void 0 : String(fr(o.top)),
3589
- rIns: void 0 === o?.right ? void 0 : String(fr(o.right)),
3590
- bIns: void 0 === o?.bottom ? void 0 : String(fr(o.bottom)),
3587
+ lIns: void 0 === o?.left ? void 0 : String(hr(o.left)),
3588
+ tIns: void 0 === o?.top ? void 0 : String(hr(o.top)),
3589
+ rIns: void 0 === o?.right ? void 0 : String(hr(o.right)),
3590
+ bIns: void 0 === o?.bottom ? void 0 : String(hr(o.bottom)),
3591
3591
  numCol: void 0 === n.columns ? void 0 : String(n.columns),
3592
- spcCol: void 0 === n.columnSpacing ? void 0 : String(fr(n.columnSpacing)),
3592
+ spcCol: void 0 === n.columnSpacing ? void 0 : String(hr(n.columnSpacing)),
3593
3593
  rtlCol: Qa(n.rightToLeftColumns),
3594
3594
  fromWordArt: Qa(n.fromWordArt),
3595
3595
  anchor: w.write(n.anchor),
@@ -3674,12 +3674,12 @@ function pi(t, e, n, o) {
3674
3674
  });
3675
3675
  t.end(o);
3676
3676
  }
3677
- var fi = [
3677
+ var hi = [
3678
3678
  ["shape", "spDef"],
3679
3679
  ["line", "lnDef"],
3680
3680
  ["text", "txDef"]
3681
3681
  ];
3682
- var hi = { checkbox: "Checkbox" }, ui = [
3682
+ var fi = { checkbox: "Checkbox" }, ui = [
3683
3683
  ["dc:title", "title"],
3684
3684
  ["dc:subject", "subject"],
3685
3685
  ["dc:creator", "author"],
@@ -3866,8 +3866,8 @@ var hi = { checkbox: "Checkbox" }, ui = [
3866
3866
  void 0 !== i?.macro && (m.macro = i.macro), void 0 !== i?.published && (m.fPublished = i.published ? "1" : "0");
3867
3867
  const p = {};
3868
3868
  void 0 !== l.dpi && (p.dpi = String(l.dpi)), void 0 !== l.isRotatedWithShape && (p.rotWithShape = l.isRotatedWithShape ? "1" : "0");
3869
- const f = t.getXMLWriter();
3870
- f.start("pic", m), f.start("nvPicPr"), Qi(t, f, n, o, e), f.start("cNvPicPr", i?.noRelativeResize ? { preferRelativeResize: "0" } : {}), f.empty("a:picLocks", ol(o)), f.end("cNvPicPr"), f.end("nvPicPr"), f.start("blipFill", p), f.pushDefaultNamespace("a"), dr(f, d, a), f.popDefaultNamespace(), f.end("blipFill"), Yi(t, e, n, o, r), f.end("pic");
3869
+ const h = t.getXMLWriter();
3870
+ h.start("pic", m), h.start("nvPicPr"), Qi(t, h, n, o, e), h.start("cNvPicPr", i?.noRelativeResize ? { preferRelativeResize: "0" } : {}), h.empty("a:picLocks", ol(o)), h.end("cNvPicPr"), h.end("nvPicPr"), h.start("blipFill", p), h.pushDefaultNamespace("a"), dr(h, d, a), h.popDefaultNamespace(), h.end("blipFill"), await Yi(t, e, n, o, r), h.end("pic");
3871
3871
  }, $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>", Bi = async (t, e, n, o, r) => {
3872
3872
  const s = o.content?.json, a = s?.model, i = s?.part, l = () => r ?? n?.getBounds() ?? {
3873
3873
  x: 0,
@@ -3891,19 +3891,19 @@ var hi = { checkbox: "Checkbox" }, ui = [
3891
3891
  if (!i?.xml || !c) return Ki(t, e, o, l());
3892
3892
  m = c, p = i.xml;
3893
3893
  }
3894
- const f = ke[m], h = [...i?.parts ?? []];
3895
- if ("chartEx" === m) for (const t of [Mi, Pi]) h.some((e) => e.type === t.type) || h.push({
3894
+ const h = ke[m], f = [...i?.parts ?? []];
3895
+ if ("chartEx" === m) for (const t of [Mi, Pi]) f.some((e) => e.type === t.type) || f.push({
3896
3896
  id: "",
3897
3897
  ...t
3898
3898
  });
3899
3899
  const u = await Ao({
3900
3900
  ...i,
3901
3901
  id: i?.id ?? "",
3902
- type: f.relType,
3903
- contentType: f.contentType,
3902
+ type: h.relType,
3903
+ contentType: h.contentType,
3904
3904
  xml: p,
3905
- parts: h
3906
- }, t, f.path);
3905
+ parts: f
3906
+ }, t, h.path);
3907
3907
  if (!u?.relId) return Ki(t, e, o, l());
3908
3908
  const g = t.getXMLWriter();
3909
3909
  if ("chart" === m) return void Oi(t, e, n, o, m, u.relId, r);
@@ -3932,11 +3932,11 @@ var hi = { checkbox: "Checkbox" }, ui = [
3932
3932
  height: 0
3933
3933
  }, c = "chartEx" === r ? "cx" : "c", d = ke[r].graphicUri;
3934
3934
  i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"), Qi(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", {
3935
- x: fr(l.x),
3936
- y: fr(l.y)
3935
+ x: hr(l.x),
3936
+ y: hr(l.y)
3937
3937
  }), i.empty("a:ext", {
3938
- cx: fr(l.width),
3939
- cy: fr(l.height)
3938
+ cx: hr(l.width),
3939
+ cy: hr(l.height)
3940
3940
  }), i.end("xfrm"), i.start("a:graphic"), i.start("a:graphicData", { uri: d }), i.empty(`${c}:chart`, {
3941
3941
  [`xmlns:${c}`]: d,
3942
3942
  "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
@@ -3947,22 +3947,23 @@ var hi = { checkbox: "Checkbox" }, ui = [
3947
3947
  s.start("grpSp"), s.start("nvGrpSpPr"), Qi(t, s, n, o, e);
3948
3948
  const l = el(o);
3949
3949
  l ? (s.start("cNvGrpSpPr"), s.empty("a:grpSpLocks", l), s.end("cNvGrpSpPr")) : s.empty("cNvGrpSpPr"), s.end("nvGrpSpPr"), s.start("grpSpPr"), s.pushDefaultNamespace("a"), rl(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");
3950
- for (const n of Di(o)) await Wi(t, e, n, Li(n));
3950
+ const c = Di(o), d = n?.getMovables()?.getItems() ?? [];
3951
+ for (let n = 0; n < c.length; n++) await Wi(t, e, d.length === c.length ? d[n] : null, c[n], Li(c[n]));
3951
3952
  s.end("grpSp");
3952
- }, Wi = async (t, e, n, o) => {
3953
- switch (n.content?.type) {
3953
+ }, Wi = async (t, e, n, o, r) => {
3954
+ switch (o.content?.type) {
3954
3955
  case "picture": {
3955
- const r = sr(t, n.content.json?.resId);
3956
- return r ? Ni(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");
3956
+ const s = sr(t, o.content.json?.resId);
3957
+ return s ? Ni(t, e, n, o, r, s) : void t.warn(`The picture '${o.content.name ?? ""}' in a group names no image in the workbook; the group is saved without it.`, void 0, "xlsx.drawing.group.picture");
3957
3958
  }
3958
- case "chart": return Bi(t, e, null, n, o);
3959
- case "shape": return zi(t, e, null, n, o);
3960
- case "group": return Vi(t, e, null, n, o);
3961
- default: return yt(n.content?.type) ? void al(t.getXMLWriter(), n, o) : Ki(t, e, n, o);
3959
+ case "chart": return Bi(t, e, n, o, r);
3960
+ case "shape": return zi(t, e, n, o, r);
3961
+ case "group": return Vi(t, e, n, o, r);
3962
+ default: return yt(o.content?.type) ? void al(t.getXMLWriter(), o, r) : Ki(t, e, o, r);
3962
3963
  }
3963
3964
  }, zi = async (t, e, n, o, r) => {
3964
3965
  const s = t.getXMLWriter(), a = {}, i = o.content?.json, l = i?.type ?? Ge.Type.Shape, c = e.getStyles();
3965
- 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"), Qi(t, s, n, o, e), nl(t, s, n, o, e), s.end("nvCxnSpPr"), Yi(t, e, n, o, r), Zi(t, e, n, o), di(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"), Qi(t, s, n, o, e), nl(t, s, n, o, e), s.end("nvSpPr"), Yi(t, e, n, o, r), Zi(t, e, n, o), di(t, c, i?.text), s.end("sp"));
3966
+ 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"), Qi(t, s, n, o, e), nl(t, s, n, o, e), s.end("nvCxnSpPr"), await Yi(t, e, n, o, r), Zi(t, e, n, o), di(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"), Qi(t, s, n, o, e), nl(t, s, n, o, e), s.end("nvSpPr"), await Yi(t, e, n, o, r), Zi(t, e, n, o), di(t, c, i?.text), s.end("sp"));
3966
3967
  }, ji = async (t, e, n, o) => Ki(t, e, o, n.getBounds()), Xi = "http://schemas.openxmlformats.org/markup-compatibility/2006", Hi = "http://schemas.microsoft.com/office/drawing/2010/slicer", Ui = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Gi = async (t, e, n, o) => {
3967
3968
  const r = t.getXMLWriter(), s = o.content?.name ?? "", a = Ps(n.getContent()), i = void 0 !== a?.timeline, l = i ? {
3968
3969
  "xmlns:tsle": Ui,
@@ -3995,11 +3996,11 @@ var hi = { checkbox: "Checkbox" }, ui = [
3995
3996
  id: "0",
3996
3997
  name: ""
3997
3998
  }), t.start("cNvSpPr"), t.empty("a:spLocks", { noTextEdit: "1" }), t.end("cNvSpPr"), t.end("nvSpPr"), t.start("spPr"), t.start("a:xfrm"), t.empty("a:off", {
3998
- x: fr(e.x),
3999
- y: fr(e.y)
3999
+ x: hr(e.x),
4000
+ y: hr(e.y)
4000
4001
  }), t.empty("a:ext", {
4001
- cx: fr(e.width),
4002
- cy: fr(e.height)
4002
+ cx: hr(e.width),
4003
+ cy: hr(e.height)
4003
4004
  }), t.end("a:xfrm"), t.start("a:prstGeom", { prst: "rect" }), t.empty("a:avLst"), t.end("a:prstGeom"), t.start("a:solidFill"), t.empty("a:prstClr", { val: "white" }), t.end("a:solidFill"), t.start("a:ln", { w: "1" }), t.start("a:solidFill"), t.empty("a:prstClr", { val: "green" }), t.end("a:solidFill"), t.end("a:ln"), t.end("spPr"), t.start("txBody"), t.empty("a:bodyPr", {
4004
4005
  vertOverflow: "clip",
4005
4006
  horzOverflow: "clip"
@@ -4007,29 +4008,35 @@ var hi = { checkbox: "Checkbox" }, ui = [
4007
4008
  lang: "en-US",
4008
4009
  sz: "1100"
4009
4010
  }), 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");
4010
- }, Ji = async (t, e, n, o) => Ki(t, e, o, n.getBounds()), Ki = async (t, e, n, o) => {
4011
- zi(t, e, null, {
4012
- ...n,
4013
- content: {
4014
- type: "shape",
4015
- name: n.content?.name,
4016
- description: n.content?.description,
4017
- json: {
4018
- fill: "bg1",
4019
- stroke: {
4020
- width: 2,
4021
- fill: "red"
4022
- },
4023
- text: { runs: [{
4024
- text: "Unsupported Type: " + (n.content?.type ?? "unknown"),
4025
- color: "tx1"
4026
- }] }
4027
- }
4011
+ }, Ji = async (t, e, n, o) => Ki(t, e, o, n.getBounds()), Ki = async (t, e, n, o) => zi(t, e, null, {
4012
+ ...n,
4013
+ content: {
4014
+ type: "shape",
4015
+ name: n.content?.name,
4016
+ description: n.content?.description,
4017
+ json: {
4018
+ fill: "bg1",
4019
+ stroke: {
4020
+ width: 2,
4021
+ fill: "red"
4022
+ },
4023
+ text: { runs: [{
4024
+ text: "Unsupported Type: " + (n.content?.type ?? "unknown"),
4025
+ color: "tx1"
4026
+ }] }
4028
4027
  }
4029
- }, o);
4030
- }, Yi = (t, e, n, o, r) => {
4031
- const s = t.getXMLWriter(), a = o.content?.json, i = a?.geometry, l = e.getStyles();
4032
- if (s.start("spPr"), s.pushDefaultNamespace("a"), rl(s, r, o), "object" == typeof i && i) ((t, e) => {
4028
+ }
4029
+ }, o), Yi = async (t, e, n, o, r) => {
4030
+ const s = o.content?.json, a = s?.geometry, i = e.getStyles(), l = "string" == typeof a ? a : "rect";
4031
+ let c = [];
4032
+ if ("object" != typeof a && s?.adjustments && Object.keys(s.adjustments).length > 0) c = ((t, e) => {
4033
+ const n = [];
4034
+ if (t) return t.isAdjusted() && t.forEachAdjustment((t, e) => n.push([t, `val ${Math.round(e)}`])), n;
4035
+ for (const t of Object.keys(e ?? {})) Number.isFinite(e[t]) && n.push([t, `val ${Math.round(e[t])}`]);
4036
+ return n;
4037
+ })(await (n?.getContent())?.getGeometry?.(Math.max(1, r.width), Math.max(1, r.height)) ?? null, s.adjustments);
4038
+ const d = t.getXMLWriter();
4039
+ if (d.start("spPr"), d.pushDefaultNamespace("a"), rl(d, r, o), "object" == typeof a && a) ((t, e) => {
4033
4040
  t.start("custGeom"), t.start("avLst");
4034
4041
  for (const n of e.av ?? []) Ti(t, n);
4035
4042
  t.end("avLst"), t.start("gdLst");
@@ -4053,22 +4060,20 @@ var hi = { checkbox: "Checkbox" }, ui = [
4053
4060
  t.start("pathLst");
4054
4061
  for (const n of e.paths) Ei(t, n);
4055
4062
  t.end("pathLst"), t.end("custGeom");
4056
- })(s, i);
4063
+ })(d, a);
4057
4064
  else {
4058
- s.start("prstGeom", { prst: "string" == typeof i ? i : "rect" });
4059
- const t = ((t) => t ? Object.keys(t).filter((e) => Number.isFinite(t[e])).map((e) => [e, `val ${Math.round(t[e])}`]) : [])(a?.adjustments);
4060
- if (0 === t.length) s.empty("avLst");
4065
+ if (d.start("prstGeom", { prst: l }), 0 === c.length) d.empty("avLst");
4061
4066
  else {
4062
- s.start("avLst");
4063
- for (const [e, n] of t) s.empty("gd", {
4064
- name: e,
4065
- fmla: n
4067
+ d.start("avLst");
4068
+ for (const [t, e] of c) d.empty("gd", {
4069
+ name: t,
4070
+ fmla: e
4066
4071
  });
4067
- s.end("avLst");
4072
+ d.end("avLst");
4068
4073
  }
4069
- s.end("prstGeom");
4074
+ d.end("prstGeom");
4070
4075
  }
4071
- 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");
4076
+ Yo(t, i, s), s?.scene3d && d.raw(s.scene3d), s?.shape3d && d.raw(s.shape3d), s?.extLst?.properties && d.raw(s.extLst.properties), d.popDefaultNamespace(), d.end("spPr");
4072
4077
  }, Zi = (t, e, n, o) => {
4073
4078
  const r = t.getXMLWriter(), s = o.content?.json?.style;
4074
4079
  if (null === s) return;
@@ -4128,21 +4133,21 @@ var hi = { checkbox: "Checkbox" }, ui = [
4128
4133
  return n;
4129
4134
  }, rl = (t, e, n, o) => {
4130
4135
  const r = {}, s = n.rotation;
4131
- 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", {
4132
- x: fr(e.x),
4133
- y: fr(e.y)
4136
+ void 0 !== s && 0 !== s && (r.rot = "" + fr(s)), n.flipH && (r.flipH = "1"), n.flipV && (r.flipV = "1"), t.start("xfrm", r), t.empty("off", {
4137
+ x: hr(e.x),
4138
+ y: hr(e.y)
4134
4139
  }), t.empty("ext", {
4135
- cx: fr(e.width),
4136
- cy: fr(e.height)
4140
+ cx: hr(e.width),
4141
+ cy: hr(e.height)
4137
4142
  }), o && (t.empty("chOff", {
4138
- x: fr(o.x),
4139
- y: fr(o.y)
4143
+ x: hr(o.x),
4144
+ y: hr(o.y)
4140
4145
  }), t.empty("chExt", {
4141
- cx: fr(o.width),
4142
- cy: fr(o.height)
4146
+ cx: hr(o.width),
4147
+ cy: hr(o.height)
4143
4148
  })), t.end("xfrm");
4144
4149
  }, sl = (t, e, n) => {
4145
- 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);
4150
+ t.start(e), t.start("col"), t.text(n.c ?? 0), t.end("col"), t.start("colOff"), t.text(hr(n.x)), t.end("colOff"), t.start("row"), t.text(n.r ?? 0), t.end("row"), t.start("rowOff"), t.text(hr(n.y)), t.end("rowOff"), t.end(e);
4146
4151
  }, al = (t, e, n) => {
4147
4152
  const o = e.content.json;
4148
4153
  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");
@@ -4225,7 +4230,7 @@ function pl(t, e, n, o) {
4225
4230
  t: s
4226
4231
  } : { r }), t.start("v"), t.text(a), t.end("v"), t.end("cell");
4227
4232
  }
4228
- var fl = [
4233
+ var hl = [
4229
4234
  new class extends Tn {
4230
4235
  constructor() {
4231
4236
  super({
@@ -4348,23 +4353,23 @@ var fl = [
4348
4353
  }, m = rs(t);
4349
4354
  for (let l = 0; l < s; l++) {
4350
4355
  const s = e[l], c = s.cacheId, p = s.part;
4351
- let f = p ? p.xml ? {
4356
+ let h = p ? p.xml ? {
4352
4357
  ...p,
4353
4358
  xml: Xr(rt(p.xml, s, m), s.source)
4354
4359
  } : p : Hr(s, n, m);
4355
- if (f?.xml && !a.has(c)) {
4360
+ if (h?.xml && !a.has(c)) {
4356
4361
  if (o.has(c)) {
4357
- const t = ns(f.xml, d);
4358
- f = {
4359
- ...f,
4362
+ const t = ns(h.xml, d);
4363
+ h = {
4364
+ ...h,
4360
4365
  xml: t.xml
4361
4366
  }, i.set(c, t.id);
4362
4367
  }
4363
4368
  try {
4364
4369
  const e = await Ao({
4365
- ...f,
4366
- type: f.type || "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",
4367
- contentType: f.contentType || "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml"
4370
+ ...h,
4371
+ type: h.type || "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",
4372
+ contentType: h.contentType || "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml"
4368
4373
  }, t, "/xl/pivotCache/pivotCacheDefinition{n}.xml");
4369
4374
  if (!e?.relId) continue;
4370
4375
  a.set(c, e.path), r.push({
@@ -4398,14 +4403,14 @@ var fl = [
4398
4403
  l.set("metaCollector", d);
4399
4404
  const p = new Eo(d, t, e.log.bind(e));
4400
4405
  l.set("persistRichTypes", p), l.set(no, new oo(r.styles, t.getStyles()));
4401
- let f = {
4406
+ let h = {
4402
4407
  table: [],
4403
4408
  pivot: [],
4404
4409
  timeline: [],
4405
4410
  cacheNames: []
4406
4411
  };
4407
4412
  try {
4408
- const o = t.getSheets({ visibility: qe.Visibility.VeryHidden }), i = r.sheets, d = t.getSelectedSheet(), p = o.length, h = ((t, e) => {
4413
+ const o = t.getSheets({ visibility: qe.Visibility.VeryHidden }), i = r.sheets, d = t.getSelectedSheet(), p = o.length, f = ((t, e) => {
4409
4414
  const n = new Array(e), o = /* @__PURE__ */ new Set();
4410
4415
  let r = 1;
4411
4416
  for (let s = 0; s < e; s++) {
@@ -4418,7 +4423,7 @@ var fl = [
4418
4423
  }
4419
4424
  return n;
4420
4425
  })(i, p);
4421
- l.set("sheetIdsBySheet", new Map(o.map((t, e) => [t, h[e]])));
4426
+ l.set("sheetIdsBySheet", new Map(o.map((t, e) => [t, f[e]])));
4422
4427
  const u = ((t, e, n) => {
4423
4428
  const o = e.length, r = new Array(o), s = new Set(n?.values() ?? []), a = /* @__PURE__ */ new Set();
4424
4429
  for (let s = 0; s < o; s++) {
@@ -4438,7 +4443,7 @@ var fl = [
4438
4443
  a.add(n), r[e] = n;
4439
4444
  }
4440
4445
  return r;
4441
- })(i, h, l.get(Ws)), g = new Array(p).fill(null);
4446
+ })(i, f, l.get(Ws)), g = new Array(p).fill(null);
4442
4447
  for (let t = 0; t < p; t++) {
4443
4448
  const n = i[t];
4444
4449
  if (m(n)) continue;
@@ -4463,11 +4468,11 @@ var fl = [
4463
4468
  }
4464
4469
  const s = {
4465
4470
  name: r.getName(),
4466
- sheetId: "" + h[t]
4471
+ sheetId: "" + f[t]
4467
4472
  }, a = r.getVisibility();
4468
4473
  "hidden" === a ? s.state = "hidden" : "veryHidden" === a && (s.state = "veryHidden"), s["r:id"] = g[t], n.empty("sheet", s);
4469
4474
  }
4470
- await e.waitEmit(), f = ((t, e) => {
4475
+ await e.waitEmit(), h = ((t, e) => {
4471
4476
  const n = {
4472
4477
  table: [],
4473
4478
  pivot: [],
@@ -4562,7 +4567,7 @@ var fl = [
4562
4567
  }
4563
4568
  for (const t of c) e.start("definedName", { name: t }), e.text("#N/A"), e.end("definedName");
4564
4569
  e.end("definedNames");
4565
- }(e, n, t, r, f.cacheNames), function(t, e, n) {
4570
+ }(e, n, t, r, h.cacheNames), function(t, e, n) {
4566
4571
  const o = n.getCalculation().toJSON(), r = { calcId: t.getSharedStates().get("calcId") ?? "191029" }, s = (t, e) => {
4567
4572
  const n = o[t];
4568
4573
  "boolean" == typeof n && (r[e] = n ? "1" : "0");
@@ -4634,7 +4639,7 @@ var fl = [
4634
4639
  }
4635
4640
  l || e.raw(ge);
4636
4641
  e.end("extLst");
4637
- }(e, n, f), n.end("workbook"), n.close();
4642
+ }(e, n, h), n.end("workbook"), n.close();
4638
4643
  }
4639
4644
  }(),
4640
4645
  new class extends Tn {
@@ -4647,7 +4652,7 @@ var fl = [
4647
4652
  });
4648
4653
  }
4649
4654
  async emit(t, e) {
4650
- const n = e.getXMLWriter(), o = t.model, r = t.json, a = he(o, r);
4655
+ const n = e.getXMLWriter(), o = t.model, r = t.json, a = fe(o, r);
4651
4656
  ja(r, a), n.decl(), n.start("worksheet", {
4652
4657
  xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
4653
4658
  "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
@@ -4671,15 +4676,15 @@ var fl = [
4671
4676
  c.getSummaryDirection(Ue.Axis.Column) === Ue.Direction.Left && (d.summaryRight = "0");
4672
4677
  n.getView().isShowOutlineSymbols() || (d.showOutlineSymbols = "0");
4673
4678
  c.isAutomaticStyles() && (d.applyStyles = "1");
4674
- const m = Object.keys(d).length > 0, p = o.pageLayout, f = {};
4675
- p?.hideAutoPageBreaks && (f.autoPageBreaks = "0");
4676
- p?.fitToPage && (f.fitToPage = "1");
4677
- const h = Object.keys(f).length > 0, u = !!r || m || h;
4679
+ const m = Object.keys(d).length > 0, p = o.pageLayout, h = {};
4680
+ p?.hideAutoPageBreaks && (h.autoPageBreaks = "0");
4681
+ p?.fitToPage && (h.fitToPage = "1");
4682
+ const f = Object.keys(h).length > 0, u = !!r || m || f;
4678
4683
  if (!u && 0 === Object.keys(a).length) return;
4679
4684
  if (!u) return void e.empty("sheetPr", a);
4680
4685
  e.start("sheetPr", a), r && No(e, n.getStyles().getTheme(), r, "tabColor", !1);
4681
4686
  m && e.empty("outlinePr", d);
4682
- h && e.empty("pageSetUpPr", f);
4687
+ f && e.empty("pageSetUpPr", h);
4683
4688
  e.end("sheetPr");
4684
4689
  }(0, n, o, r), function(t, e, n, o) {
4685
4690
  let r = n.getUsedRange({ features: [] }), s = r ? r.getCoords() : null;
@@ -4743,12 +4748,12 @@ var fl = [
4743
4748
  m !== Ze.ViewMode.Normal && (d.view = m);
4744
4749
  const p = s.getZoomScale();
4745
4750
  100 !== p && (d.zoomScale = p);
4746
- const f = s.toJSON(), h = f?.zoomScales ?? {};
4751
+ const h = s.toJSON(), f = h?.zoomScales ?? {};
4747
4752
  for (const [t, e] of Tt) {
4748
- const n = h[t];
4753
+ const n = f[t];
4749
4754
  n && (d[e] = n);
4750
4755
  }
4751
- f?.windowProtection && (d.windowProtection = "1");
4756
+ h?.windowProtection && (d.windowProtection = "1");
4752
4757
  const u = s.getGridLineColor();
4753
4758
  if (u) {
4754
4759
  d.defaultGridColor = "0";
@@ -4765,16 +4770,16 @@ var fl = [
4765
4770
  let y = {};
4766
4771
  const v = s.getFreezePanes(), w = v.coords ?? {}, S = w.colIndex ?? 0, b = w.rowIndex ?? 0;
4767
4772
  if (S > 0 || b > 0) {
4768
- 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({
4773
+ 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)), h = Fe.cellToString({
4769
4774
  colIndex: i,
4770
4775
  rowIndex: s
4771
4776
  });
4772
- "A1" !== f ? d.topLeftCell = f : delete d.topLeftCell, e.start("sheetView", d);
4773
- const h = {};
4774
- l > 0 && (h.xSplit = l), c > 0 && (h.ySplit = c), h.topLeftCell = Fe.cellToString({
4777
+ "A1" !== h ? d.topLeftCell = h : delete d.topLeftCell, e.start("sheetView", d);
4778
+ const f = {};
4779
+ l > 0 && (f.xSplit = l), c > 0 && (f.ySplit = c), f.topLeftCell = Fe.cellToString({
4775
4780
  colIndex: m,
4776
4781
  rowIndex: p
4777
- }), h.state = "frozen";
4782
+ }), f.state = "frozen";
4778
4783
  const u = v.paneSelections, g = (t, n, o) => {
4779
4784
  const r = u?.[t];
4780
4785
  if (!r && !o && "A1" === n) return;
@@ -4785,13 +4790,13 @@ var fl = [
4785
4790
  sqref: r?.sqref ?? s
4786
4791
  });
4787
4792
  };
4788
- 0 === S ? (h.activePane = "bottomLeft", e.empty("pane", h), g("topLeft", Fe.cellToString({
4793
+ 0 === S ? (f.activePane = "bottomLeft", e.empty("pane", f), g("topLeft", Fe.cellToString({
4789
4794
  colIndex: m,
4790
4795
  rowIndex: s
4791
- }), !1), y.pane = "bottomLeft") : 0 === b ? (h.activePane = "topRight", e.empty("pane", h), g("topLeft", Fe.cellToString({
4796
+ }), !1), y.pane = "bottomLeft") : 0 === b ? (f.activePane = "topRight", e.empty("pane", f), g("topLeft", Fe.cellToString({
4792
4797
  colIndex: i,
4793
4798
  rowIndex: p
4794
- }), !1), y.pane = "topRight") : (h.activePane = "bottomRight", e.empty("pane", h), g("topLeft", f, !1), g("topRight", Fe.cellToString({
4799
+ }), !1), y.pane = "topRight") : (f.activePane = "bottomRight", e.empty("pane", f), g("topLeft", h, !1), g("topRight", Fe.cellToString({
4795
4800
  colIndex: m,
4796
4801
  rowIndex: s
4797
4802
  }), !0), g("bottomLeft", Fe.cellToString({
@@ -4860,7 +4865,7 @@ var fl = [
4860
4865
  });
4861
4866
  };
4862
4867
  if (a > 0 || 0 !== l) {
4863
- const t = ha(n.getOutline(), Ue.Axis.Column);
4868
+ const t = fa(n.getOutline(), Ue.Axis.Column);
4864
4869
  e.start("cols");
4865
4870
  for (let n = 0; n < a; n++) {
4866
4871
  const o = s[n], a = o.min + 1, l = _t + 1;
@@ -4870,15 +4875,15 @@ var fl = [
4870
4875
  const p = {
4871
4876
  min: a,
4872
4877
  max: m
4873
- }, f = o.value, h = f.sz;
4874
- void 0 !== h ? 0 !== h && (p.width = Math.round(256 * h) / 256) : p.width = i;
4875
- const u = r ? r.getXf(f.s ?? 0, !0, !1) : f.s;
4876
- u && (p.style = u), void 0 !== f.h && (p.hidden = 1), f.bf && (p.bestFit = 1), f.csz && (p.customWidth = 1), f.l && (p.outlineLevel = f.l), (o.min === o.max ? t.has(o.min) : f.cl) && (p.collapsed = 1), e.empty("col", p);
4878
+ }, h = o.value, f = h.sz;
4879
+ void 0 !== f ? 0 !== f && (p.width = Math.round(256 * f) / 256) : p.width = i;
4880
+ const u = r ? r.getXf(h.s ?? 0, !0, !1) : h.s;
4881
+ u && (p.style = u), void 0 !== h.h && (p.hidden = 1), h.bf && (p.bestFit = 1), h.csz && (p.customWidth = 1), h.l && (p.outlineLevel = h.l), (o.min === o.max ? t.has(o.min) : h.cl) && (p.collapsed = 1), e.empty("col", p);
4877
4882
  }
4878
4883
  d(_t + 1), e.end("cols");
4879
4884
  }
4880
4885
  })(0, n, o, r, l), function(t, e, n, o, r, a, i) {
4881
- const l = t.getSharedStates(), c = l.get("persistStrings"), d = l.get("metaCollector"), m = l.get("persistRichTypes"), p = l.get(no), f = function(t) {
4886
+ const l = t.getSharedStates(), c = l.get("persistStrings"), d = l.get("metaCollector"), m = l.get("persistRichTypes"), p = l.get(no), h = function(t) {
4882
4887
  let e = null;
4883
4888
  for (const n of t.pivotTables ?? []) {
4884
4889
  const t = n.buttons?.length ? Vt(n) : null;
@@ -4888,7 +4893,7 @@ var fl = [
4888
4893
  }
4889
4894
  }
4890
4895
  return e;
4891
- }(o), h = function(t) {
4896
+ }(o), f = function(t) {
4892
4897
  let e = null;
4893
4898
  for (const n of t.getPivotTables().getItems()) {
4894
4899
  const t = n.toJSON(), o = t?.header ? Vt(t) : n.getRange()?.getCoords();
@@ -4920,7 +4925,7 @@ var fl = [
4920
4925
  return a(s, o - 1), r;
4921
4926
  })(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;
4922
4927
  if (x || T > 0) {
4923
- 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) => {
4928
+ const l = .75, x = o.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * l, v = n.getStyles().getNormal().getBestFit().height * l, w = fa(n.getOutline(), Ue.Axis.Row), S = (t, e) => {
4924
4929
  const n = Ga;
4925
4930
  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;
4926
4931
  const o = e.value;
@@ -4972,11 +4977,11 @@ var fl = [
4972
4977
  return null;
4973
4978
  }, p = /* @__PURE__ */ new Set();
4974
4979
  for (let t = 0; t < a.length; t++) p.add(`${a[t].rowStart},${a[t].colStart}`);
4975
- const f = [];
4980
+ const h = [];
4976
4981
  for (let o = 0; o < U; o++) {
4977
4982
  const a = X[o];
4978
4983
  try {
4979
- const d = a[0], h = n.getRange(d), u = h.getCoords();
4984
+ const d = a[0], f = n.getRange(d), u = f.getCoords();
4980
4985
  let g = a[1];
4981
4986
  if (va.test(g) && wa(n, u, g, G)) continue;
4982
4987
  let x = null;
@@ -5008,7 +5013,7 @@ var fl = [
5008
5013
  rowEnd: t,
5009
5014
  colEnd: e
5010
5015
  };
5011
- f.push([o, {
5016
+ h.push([o, {
5012
5017
  coords: o,
5013
5018
  formula: n,
5014
5019
  sharedId: null,
@@ -5019,7 +5024,7 @@ var fl = [
5019
5024
  }, o = e.get(`${u.rowStart},${u.colStart}`), r = void 0 !== o && (o.rowEnd > o.rowStart || o.colEnd > o.colStart);
5020
5025
  let a = !1;
5021
5026
  if (r) {
5022
- const e = s(g, h.getCell().getValue());
5027
+ const e = s(g, f.getCell().getValue());
5023
5028
  if (null !== e) for (let r = o.rowStart; r <= o.rowEnd; r++) for (let s = o.colStart; s <= o.colEnd; s++) {
5024
5029
  if (r === o.rowStart && s === o.colStart) {
5025
5030
  t(r, s, e), a = !0;
@@ -5033,15 +5038,15 @@ var fl = [
5033
5038
  })), l = H(i.getCell().getValue());
5034
5039
  null !== l && t(r, s, l);
5035
5040
  }
5036
- } else h.forEach((e, n) => {
5041
+ } else f.forEach((e, n) => {
5037
5042
  const o = n.getCoords(), r = C?.(o) ?? g, i = s(r, n.getCell().getValue());
5038
5043
  null !== i && (t(o.rowIndex, o.colIndex, i), a = !0);
5039
5044
  }, { includeEmpty: !0 });
5040
5045
  if (a) continue;
5041
5046
  }
5042
5047
  const I = -1 !== g.indexOf("!") || -1 !== g.indexOf("[");
5043
- k || h.isSingleCell() || I || i(u) || (x = "" + y++);
5044
- const R = null !== x || h.isSingleCell() ? null : C, F = [u, {
5048
+ k || f.isSingleCell() || I || i(u) || (x = "" + y++);
5049
+ const R = null !== x || f.isSingleCell() ? null : C, F = [u, {
5045
5050
  coords: u,
5046
5051
  formula: g,
5047
5052
  sharedId: x,
@@ -5050,13 +5055,13 @@ var fl = [
5050
5055
  isExcelVolatile: T,
5051
5056
  memberImage: R
5052
5057
  }];
5053
- f.push(F);
5058
+ h.push(F);
5054
5059
  } catch (e) {
5055
5060
  t.log(`Could not write the formula '${a[1]}' over '${a[0]}'; those cells are written as values only. ${e}`);
5056
5061
  continue;
5057
5062
  }
5058
5063
  }
5059
- j.push(f);
5064
+ j.push(h);
5060
5065
  } else j.push([]);
5061
5066
  const q = o.volatile, J = q ? q.length : 0;
5062
5067
  if (J > 0) {
@@ -5092,8 +5097,8 @@ var fl = [
5092
5097
  j.push(t);
5093
5098
  } else j.push([]);
5094
5099
  const Z = /* @__PURE__ */ new Map();
5095
- j.push(G), j.push(h?.flatMap(({ coords: t, formats: e }) => e?.empty ? [[t, !0]] : []) ?? []);
5096
- const Q = t.getSharedStates().get(Os)?.lastEdited, tt = "3" === Q || "4" === Q ? fa : pa;
5100
+ j.push(G), j.push(f?.flatMap(({ coords: t, formats: e }) => e?.empty ? [[t, !0]] : []) ?? []);
5101
+ const Q = t.getSharedStates().get(Os)?.lastEdited, tt = "3" === Q || "4" === Q ? ha : pa;
5097
5102
  n.getEntireRange().forEach((n, o) => {
5098
5103
  const r = o.getCoords(), s = r.rowIndex, i = r.colIndex;
5099
5104
  _ !== s && z(s);
@@ -5111,7 +5116,7 @@ var fl = [
5111
5116
  Y > 0 && (w = o.getInjectedReference(3) ?? null);
5112
5117
  const S = "error" === w?.kind, b = "fixed" === w?.kind, k = Ua;
5113
5118
  k.r = o.getAddress(), k.s = void 0, k.t = void 0, k.cm = void 0, k.vm = void 0;
5114
- const T = null !== f && f.has(s * za + i), I = null !== h ? function(t, e, n) {
5119
+ const T = null !== h && h.has(s * za + i), I = null !== f ? function(t, e, n) {
5115
5120
  for (const { table: o, coords: r, formats: s } of t) {
5116
5121
  if (e < r.rowStart || e > r.rowEnd || n < r.colStart || n > r.colEnd) continue;
5117
5122
  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;
@@ -5122,7 +5127,7 @@ var fl = [
5122
5127
  };
5123
5128
  }
5124
5129
  return null;
5125
- }(h, s, i) : null;
5130
+ }(f, s, i) : null;
5126
5131
  (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);
5127
5132
  const R = G.length > 0 ? o.getInjectedReference(4) ?? null : null;
5128
5133
  let E = null, j = null;
@@ -5296,9 +5301,9 @@ var fl = [
5296
5301
  const s = [], a = o.conditionals, i = a ? a.length : 0;
5297
5302
  if (0 === i) return s;
5298
5303
  const l = t.getSharedStates(), c = yr(l), d = n.getStyles().getTheme(), m = l.get(u);
5299
- let p = null, f = 0;
5300
- const h = (t) => {
5301
- "number" != typeof t.pivotKey || r.has(t.pivotKey) || r.set(t.pivotKey, f);
5304
+ let p = null, h = 0;
5305
+ const f = (t) => {
5306
+ "number" != typeof t.pivotKey || r.has(t.pivotKey) || r.set(t.pivotKey, h);
5302
5307
  };
5303
5308
  for (let n = 0; n < i; n++) {
5304
5309
  const o = a[n];
@@ -5315,18 +5320,18 @@ var fl = [
5315
5320
  scale: g
5316
5321
  });
5317
5322
  const x = g ? { type: g.type } : te(i.condition, Fa(l), (e, n) => t.warn(e, void 0, n));
5318
- x ? (x.formulas && (x.formulas = x.formulas.map((t) => La(t, u, m))), g?.type === Ve.ScaleType.IconSet && ka(g) ? (f++, h(i), s.push({
5319
- guid: fe(Pe.uuidV4),
5323
+ x ? (x.formulas && (x.formulas = x.formulas.map((t) => La(t, u, m))), g?.type === Ve.ScaleType.IconSet && ka(g) ? (h++, f(i), s.push({
5324
+ guid: he(Pe.uuidV4),
5320
5325
  sqref: l,
5321
- priority: f,
5326
+ priority: h,
5322
5327
  scale: g
5323
5328
  })) : g || !Aa(x) ? (l !== p && (null !== p && e.end("conditionalFormatting"), e.start("conditionalFormatting", {
5324
5329
  sqref: l,
5325
5330
  pivot: "number" == typeof i.pivotKey ? "1" : void 0
5326
- }), p = l), f++, h(i), Ra(t, e, d, i, x, l, f, c, s)) : (f++, h(i), s.push({
5327
- guid: fe(Pe.uuidV4),
5331
+ }), p = l), h++, f(i), Ra(t, e, d, i, x, l, h, c, s)) : (h++, f(i), s.push({
5332
+ guid: he(Pe.uuidV4),
5328
5333
  sqref: l,
5329
- priority: f,
5334
+ priority: h,
5330
5335
  rule: x,
5331
5336
  style: i.style,
5332
5337
  stopIfTrue: i.stopIfTrue
@@ -5334,7 +5339,7 @@ var fl = [
5334
5339
  }
5335
5340
  null !== p && e.end("conditionalFormatting");
5336
5341
  return s;
5337
- }(e, n, o, r, m), f = function(t, e, n, o) {
5342
+ }(e, n, o, r, m), h = function(t, e, n, o) {
5338
5343
  const r = [], s = t.getSharedStates().get(u), a = o.validations, i = a ? a.length : 0;
5339
5344
  if (0 === i) return r;
5340
5345
  const l = [];
@@ -5348,9 +5353,9 @@ var fl = [
5348
5353
  continue;
5349
5354
  }
5350
5355
  i.ext && t.warn("DataValidation extension payload is not written to xlsx; it will be lost.");
5351
- const d = (e, n) => t.warn(e, void 0, n), m = st(i.condition, d), { type: p, operator: f } = m ?? {}, h = Da(c), u = La(m?.formula1, h, s), g = La(m?.formula2, h, s), x = {
5356
+ const d = (e, n) => t.warn(e, void 0, n), m = st(i.condition, d), { type: p, operator: h } = m ?? {}, f = Da(c), u = La(m?.formula1, f, s), g = La(m?.formula2, f, s), x = {
5352
5357
  type: p,
5353
- operator: f,
5358
+ operator: h,
5354
5359
  allowBlank: Ma(i.condition?.includeBlanks ?? !1),
5355
5360
  showDropDown: i.hideDropdown ? "1" : void 0,
5356
5361
  showInputMessage: Ma(i.showPromptMessage),
@@ -5501,7 +5506,7 @@ var fl = [
5501
5506
  });
5502
5507
  e.empty("drawing", { "r:id": d.relId });
5503
5508
  }(e, n, o, r);
5504
- const h = function(t) {
5509
+ const f = function(t) {
5505
5510
  const e = t.getComments().toArray();
5506
5511
  if (0 === e.length) return null;
5507
5512
  const n = [];
@@ -5517,7 +5522,7 @@ var fl = [
5517
5522
  comments: n
5518
5523
  });
5519
5524
  }(o);
5520
- Oa(e, n, "legacyDrawing", Wa(Xa(o, r.legacyDrawing ?? null, a), h)), Oa(e, n, "legacyDrawingHF", r.legacyDrawingHF ?? null), await async function(t, e, n) {
5525
+ Oa(e, n, "legacyDrawing", Wa(Xa(o, r.legacyDrawing ?? null, a), f)), Oa(e, n, "legacyDrawingHF", r.legacyDrawingHF ?? null), await async function(t, e, n) {
5521
5526
  const o = n.getPicture();
5522
5527
  if (!o) return;
5523
5528
  const r = o.getResource(), s = await r.getExternalURI();
@@ -5753,7 +5758,7 @@ var fl = [
5753
5758
  sheet: n,
5754
5759
  slicers: s
5755
5760
  }), e.end("extLst");
5756
- }(e, n, o, p, f), function(t, e, n) {
5761
+ }(e, n, o, p, h), function(t, e, n) {
5757
5762
  const o = e.pivotTables, r = o ? o.length : 0;
5758
5763
  if (0 === r) return;
5759
5764
  const s = rs(t);
@@ -5790,7 +5795,7 @@ var fl = [
5790
5795
  }(e, r, m), function(t, e) {
5791
5796
  if (!e) return;
5792
5797
  t.addPart("comments", e), e.comments.some((t) => !t.comment.isNote()) && t.addPart("threadedComments", e);
5793
- }(e, h), n.end("worksheet"), n.close();
5798
+ }(e, f), n.end("worksheet"), n.close();
5794
5799
  }
5795
5800
  }(),
5796
5801
  new class extends Tn {
@@ -5866,10 +5871,10 @@ var fl = [
5866
5871
  })(t, e, n, o, o.getFormatScheme());
5867
5872
  }(e, n, "fmtScheme", o, r), n.end("themeElements"), function(t, e, n) {
5868
5873
  const o = n.getObjectDefaults();
5869
- if (!fi.some(([t]) => o[t])) return void e.empty("objectDefaults");
5874
+ if (!hi.some(([t]) => o[t])) return void e.empty("objectDefaults");
5870
5875
  const r = { getTheme: () => n };
5871
5876
  e.start("objectDefaults");
5872
- for (const [s, a] of fi) {
5877
+ for (const [s, a] of hi) {
5873
5878
  const i = o[s];
5874
5879
  if (!i) continue;
5875
5880
  e.start(a), e.start("spPr"), Yo(t, r, i), e.end("spPr"), mi(t, r, i.text);
@@ -6179,7 +6184,7 @@ var fl = [
6179
6184
  let s = 0;
6180
6185
  for (let t = 0; t < o.length; t++) {
6181
6186
  const e = s++;
6182
- n.empty("bag", { type: hi[o[t].type] ?? o[t].type });
6187
+ n.empty("bag", { type: fi[o[t].type] ?? o[t].type });
6183
6188
  const a = s++;
6184
6189
  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");
6185
6190
  }
@@ -6233,7 +6238,7 @@ var fl = [
6233
6238
  });
6234
6239
  }
6235
6240
  async emit(t, e) {
6236
- const n = e.getXMLWriter(), o = t.model, r = (await Qe.getDetails()).getBuildVersion(), s = ft(r), a = o.getProperties();
6241
+ const n = e.getXMLWriter(), o = t.model, r = (await Qe.getDetails()).getBuildVersion(), s = ht(r), a = o.getProperties();
6237
6242
  n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
6238
6243
  xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
6239
6244
  "xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
@@ -6649,19 +6654,19 @@ var fl = [
6649
6654
  } else t.add(n);
6650
6655
  }
6651
6656
  }
6652
- const p = tl(e, o), f = () => {
6657
+ const p = tl(e, o), h = () => {
6653
6658
  const t = (m.get(o) ?? 1) + 1;
6654
6659
  return m.set(o, t), t;
6655
- }, h = (t) => {
6660
+ }, f = (t) => {
6656
6661
  for (const e of Di(t)) {
6657
- const t = e.content?.json?.sourceId, n = "number" == typeof t && !p.bySource.has(t), o = n ? t : f();
6658
- p.assigned.set(e, o), n && p.bySource.set(t, o), "group" === e.content?.type && h(e);
6662
+ const t = e.content?.json?.sourceId, n = "number" == typeof t && !p.bySource.has(t), o = n ? t : h();
6663
+ p.assigned.set(e, o), n && p.bySource.set(t, o), "group" === e.content?.type && f(e);
6659
6664
  }
6660
6665
  };
6661
6666
  for (let t = 0; t < a; t++) {
6662
6667
  const e = s[t], n = e.content?.json?.sourceId;
6663
6668
  let o = c.get(e) ?? ("number" == typeof n ? n : void 0);
6664
- 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);
6669
+ void 0 === o && (o = h()), p.assigned.set(e, o), "number" != typeof n || p.bySource.has(n) || p.bySource.set(n, o), "group" === e.content?.type && f(e);
6665
6670
  }
6666
6671
  for (let t = 0; t < a; t++) await _i(e, s[t]);
6667
6672
  for (let t = 0; t < a; t++) {
@@ -6918,7 +6923,7 @@ var fl = [
6918
6923
  const e = o[t], r = e.toJSON(), s = e.getColumnCount(), a = e.getStyle();
6919
6924
  n.empty("slicer", {
6920
6925
  name: e.getName?.() ?? e.getCaption(),
6921
- "xr10:uid": r?.uid ?? fe(Pe.uuidV4),
6926
+ "xr10:uid": r?.uid ?? he(Pe.uuidV4),
6922
6927
  cache: e.getCacheName(),
6923
6928
  caption: e.getCaption(),
6924
6929
  startItem: r?.startItem || void 0,
@@ -6927,7 +6932,7 @@ var fl = [
6927
6932
  level: r?.level,
6928
6933
  style: "SlicerStyleLight1" !== a ? a : void 0,
6929
6934
  lockedPosition: e.isLockedPosition() ? "1" : void 0,
6930
- rowHeight: fr(e.getRowHeight())
6935
+ rowHeight: hr(e.getRowHeight())
6931
6936
  });
6932
6937
  }
6933
6938
  n.end("slicers"), n.close();
@@ -6951,7 +6956,7 @@ var fl = [
6951
6956
  c.decl(), c.start("slicerCacheDefinition", {
6952
6957
  ...Ms,
6953
6958
  name: t.getCacheName(),
6954
- "xr10:uid": fe(Pe.uuidV4),
6959
+ "xr10:uid": he(Pe.uuidV4),
6955
6960
  sourceName: r.getName()
6956
6961
  }), c.start("extLst"), c.start("x:ext", {
6957
6962
  uri: Xt,
@@ -6969,7 +6974,7 @@ var fl = [
6969
6974
  o.decl(), o.start("slicerCacheDefinition", {
6970
6975
  ...Ms,
6971
6976
  name: t.getCacheName(),
6972
- "xr10:uid": fe(Pe.uuidV4),
6977
+ "xr10:uid": he(Pe.uuidV4),
6973
6978
  sourceName: e.sourceName
6974
6979
  }), _s(n, o, t), e.tabular && Ls(n, o, t, e), o.raw(e.body), o.end("slicerCacheDefinition"), o.close();
6975
6980
  }
@@ -6994,7 +6999,7 @@ var fl = [
6994
6999
  for (let t = 0; t < o.length; t++) {
6995
7000
  const e = o[t], r = e.toJSON(), s = r?.pivot?.timeline, a = {
6996
7001
  name: e.getName?.() ?? e.getCaption(),
6997
- "xr10:uid": r?.uid ?? fe(Pe.uuidV4),
7002
+ "xr10:uid": r?.uid ?? he(Pe.uuidV4),
6998
7003
  cache: e.getCacheName(),
6999
7004
  caption: e.getCaption(),
7000
7005
  ...s?.attributes
@@ -7020,7 +7025,7 @@ var fl = [
7020
7025
  "xmlns:x15": et,
7021
7026
  "mc:Ignorable": "xr10",
7022
7027
  name: t.getCacheName(),
7023
- "xr10:uid": fe(Pe.uuidV4),
7028
+ "xr10:uid": he(Pe.uuidV4),
7024
7029
  sourceName: n.sourceName
7025
7030
  }), _s(e, o, t), n.tabular && ((t, e, n) => {
7026
7031
  const o = n._getTimelineState?.(), r = o ? ts(t, o.cacheId) : null;
@@ -7111,35 +7116,35 @@ var fl = [
7111
7116
  }(n, t), n.end("externalBook"), n.end("externalLink"), n.close();
7112
7117
  }
7113
7118
  }()
7114
- ], hl = "SheetXL Evaluation", ul = "xl/worksheets/sheetSheetXLEvaluation.xml", gl = "rIdSheetXLEvaluation", xl = [
7119
+ ], fl = "SheetXL Evaluation", ul = "xl/worksheets/sheetSheetXLEvaluation.xml", gl = "rIdSheetXLEvaluation", xl = [
7115
7120
  "This workbook was exported from an unlicensed evaluation of SheetXL.",
7116
7121
  "Your own sheets follow this one, unchanged.",
7117
7122
  "To license SheetXL, visit https://www.sheetxl.com"
7118
7123
  ], yl = (t) => {
7119
7124
  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()));
7120
- let o = hl;
7121
- for (let t = 2; n.has(o.toLowerCase()); t++) o = `${hl} (${t})`;
7125
+ let o = fl;
7126
+ for (let t = 2; n.has(o.toLowerCase()); t++) o = `${fl} (${t})`;
7122
7127
  const r = `<sheet name="${o}" sheetId="${Math.max(0, ...e) + 1}" r:id="${gl}"/>`;
7123
7128
  return t.replace(/<sheets>/, `<sheets>${r}`).replace(/\blocalSheetId="(\d+)"/g, (t, e) => `localSheetId="${parseInt(e, 10) + 1}"`).replace(/<workbookView\b([^>]*?)(\/?)>/, (t, e, n) => {
7124
7129
  const o = /\bactiveTab="(\d+)"/.exec(e);
7125
7130
  return `<workbookView${(o ? e.replace(/\bactiveTab="\d+"/, `activeTab="${parseInt(o[1], 10) + 1}"`) : `${e} activeTab="1"`).replace(/\s*\bfirstTab="\d+"/, "")}${n}>`;
7126
7131
  });
7127
7132
  }, vl = async (t) => {
7128
- const e = new un(new fn(t)), n = new hn(), o = new gn(n, { lastModDate: new Date(1899, 11, 29, 19, 0, 0) });
7133
+ const e = new un(new hn(t)), n = new fn(), o = new gn(n, { lastModDate: new Date(1899, 11, 29, 19, 0, 0) });
7129
7134
  try {
7130
7135
  for (const t of await e.getEntries()) {
7131
7136
  if (t.directory || !("getData" in t)) continue;
7132
7137
  const e = t.filename;
7133
- if ("xl/workbook.xml" === e) await o.add(e, new fn(new TextEncoder().encode(yl(await t.getData(new pn())))));
7138
+ if ("xl/workbook.xml" === e) await o.add(e, new hn(new TextEncoder().encode(yl(await t.getData(new pn())))));
7134
7139
  else if ("xl/_rels/workbook.xml.rels" === e) {
7135
7140
  const n = await t.getData(new pn()), r = `<Relationship Id="${gl}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="${ul.slice(3)}"/>`;
7136
- await o.add(e, new fn(new TextEncoder().encode(n.replace("</Relationships>", `${r}</Relationships>`))));
7141
+ await o.add(e, new hn(new TextEncoder().encode(n.replace("</Relationships>", `${r}</Relationships>`))));
7137
7142
  } else if ("[Content_Types].xml" === e) {
7138
7143
  const n = await t.getData(new pn()), r = `<Override PartName="/${ul}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`;
7139
- await o.add(e, new fn(new TextEncoder().encode(n.replace("</Types>", `${r}</Types>`))));
7140
- } else await o.add(e, new fn(await t.getData(new hn())));
7144
+ await o.add(e, new hn(new TextEncoder().encode(n.replace("</Types>", `${r}</Types>`))));
7145
+ } else await o.add(e, new hn(await t.getData(new fn())));
7141
7146
  }
7142
- return await o.add(ul, 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>${xl.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();
7147
+ return await o.add(ul, new hn(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>${xl.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();
7143
7148
  } finally {
7144
7149
  await e.close();
7145
7150
  }
@@ -7173,7 +7178,7 @@ var fl = [
7173
7178
  }, kl = /* @__PURE__ */ new WeakMap(), Tl = async (t, e) => {
7174
7179
  await Le.load();
7175
7180
  const n = new to();
7176
- for (const t of fl) n.register(t);
7181
+ for (const t of hl) n.register(t);
7177
7182
  const o = Il, r = In.createUint8Array({
7178
7183
  lastModDate: new Date(1899, 11, 29, 19, 0, 0),
7179
7184
  level: o
@@ -7248,7 +7253,7 @@ var fl = [
7248
7253
  return o.size > 0 ? o : null;
7249
7254
  })(s) : null;
7250
7255
  m && a.set(Ws, m), a.set(kn, /* @__PURE__ */ new Map()), a.set(zs, e?.macroEnabled ?? !1);
7251
- const p = [], f = new Zn(r, n, {
7256
+ const p = [], h = new Zn(r, n, {
7252
7257
  strictDuplicateChildren: !0,
7253
7258
  onPartEmitted: e?.onPartEmitted,
7254
7259
  onWarning: (t, e, n) => {
@@ -7263,9 +7268,9 @@ var fl = [
7263
7268
  macroEnabled: e?.macroEnabled ?? !1,
7264
7269
  template: e?.template ?? !1
7265
7270
  });
7266
- 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 });
7267
- let h = await f.build();
7268
- await Qe.isWatermarked() && (h = await vl(h));
7271
+ h.addPart("workbook", t, "/xl/workbook.xml"), await h.waitEmit(), h.addPart("propsCore", { model: t }), h.addPart("propsApp", { model: t }), t.getProperties().getCustom().length > 0 && h.addPart("propsCustom", { model: t });
7272
+ let f = await h.build();
7273
+ await Qe.isWatermarked() && (f = await vl(f));
7269
7274
  const u = e?.progress?.onWarning;
7270
7275
  if (p.length && u) {
7271
7276
  const t = /* @__PURE__ */ new Set();
@@ -7274,6 +7279,6 @@ var fl = [
7274
7279
  t.has(s) || (t.add(s), u.call(e.progress, n, o));
7275
7280
  }
7276
7281
  }
7277
- return 0 === h.byteOffset && h.byteLength === h.buffer.byteLength ? h.buffer : h.slice().buffer;
7282
+ return 0 === f.byteOffset && f.byteLength === f.buffer.byteLength ? f.buffer : f.slice().buffer;
7278
7283
  }, Il = 1;
7279
7284
  export { Tl as writeXLSX };