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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/browser/esm/{DPz0IeW70Nh4n8Wz.mjs → 2Tu0hkxKQVlv9Cra.mjs} +4 -4
  2. package/browser/esm/{B_Jfq-O7tght6ixL.mjs → B-gFy6wqDX1nS1H6.mjs} +733 -732
  3. package/browser/esm/{cG4z0eDMlE49HJvD.mjs → BksP77A3tWZz2uFZ.mjs} +4 -4
  4. package/browser/esm/{BoTT_U96McOdkuId.mjs → CSeKlqJLKPdaHQnM.mjs} +2 -2
  5. package/browser/esm/{D_5T8KKyirVCR3RO.mjs → Cx9ap9QP6pCr4onD.mjs} +2 -2
  6. package/browser/esm/{CGQXv_OxqwXL3F8q.mjs → DEQzaCJ7RX2QoCut.mjs} +1 -1
  7. package/browser/esm/{f-Z5vnvNnzj-0ujR.mjs → DKFJjTTJkuTmxyrC.mjs} +2 -2
  8. package/browser/esm/{D74i1p_CJmHw8HKb.mjs → Dm3PlbhnXRlbfwcc.mjs} +2 -2
  9. package/browser/esm/{CROAqUhKnVtkbBSm.mjs → TlUpdMxCXP6T7d5o.mjs} +1 -1
  10. package/browser/esm/{BCQs67LTVZ1xG82R.mjs → fw-xerhhOIbrtjj8.mjs} +2 -2
  11. package/browser/esm/{CNAv3IL7hhyvzLaF.mjs → hYm31nxQHahoYW47.mjs} +281 -275
  12. package/browser/esm/index.mjs +2 -2
  13. package/node/esm/{CT1rO7_YWIvsG9hs.mjs → -4emwUa_cqmg0qom.mjs} +310 -309
  14. package/node/esm/{CoNllGglhnzJ6EJ4.mjs → B1_JjHLkB9GQt41F.mjs} +1 -1
  15. package/node/esm/{ZNTwnevSmMslvfiW.mjs → BaRyFsg1YMFUyXd4.mjs} +4 -4
  16. package/node/esm/{C0q_ulF7hl9zoVQ8.mjs → C1VsUbGfwY9-dlaU.mjs} +1 -1
  17. package/node/esm/{TN8KqnRPY-7Ln4Ez.mjs → C6HiyeKhrpNGFeb3.mjs} +2 -2
  18. package/node/esm/{CqhoZ8-FRZjS3p-D.mjs → CeRdSa9ObgI_mmCT.mjs} +324 -318
  19. package/node/esm/{CUPNuRm5G47rulaW.mjs → Dd0rxpiUIxg4BeeC.mjs} +2 -2
  20. package/node/esm/index.mjs +4 -4
  21. package/node/esm/{Bl5eH7YPk64NxkkI.mjs → yNj0KH21rJk2rfm7.mjs} +2 -2
  22. package/package.json +3 -3
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.21
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./DPz0IeW70Nh4n8Wz.mjs";
8
- import { $t as t, Ar as n, At as r, Br as i, Bt as a, C as o, Cn as s, Cr as c, D as l, Dn as u, Dr as d, Dt as f, Et as p, Fn as m, Fr as h, Ft as g, G as _, Gt as v, H as y, Hn as b, Hr as x, In as S, J as C, Jn as w, Jt as T, K as E, Kn as D, Kt as ee, Lr as te, Mn as O, Mr as ne, Mt as re, Nr as ie, O as ae, On as k, Or as oe, Ot as A, Pr as se, Pt as ce, Q as le, Qt as ue, Rr as de, S as j, Sr as M, Tr as fe, U as pe, Un as me, Ur as N, Vr as he, Vt as ge, W as _e, Wn as ve, Wr as ye, X as be, Xt as xe, Y as Se, Yn as Ce, Yt as we, Z as Te, Zt as Ee, _n as De, _r as P, _t as Oe, a as ke, an as Ae, ar as je, at as Me, b as Ne, bn as Pe, c as Fe, cn as Ie, d as Le, dr as Re, dt as ze, en as Be, er as Ve, et as He, fr as Ue, ft as We, g as Ge, gn as Ke, gr as qe, gt as Je, h as Ye, hn as Xe, hr as Ze, ht as Qe, i as $e, ir as et, jr as tt, kn as F, kr as nt, kt as rt, l as it, ln as at, lr as ot, lt as st, m as ct, mr as lt, mt as ut, o as dt, on as ft, pn as pt, pr as mt, pt as ht, q as gt, qt as _t, r as vt, rr as yt, rt as bt, s as xt, sn as St, sr as Ct, st as wt, tt as Tt, u as Et, un as Dt, ur as Ot, ut as kt, vn as At, vr as jt, w as Mt, wn as Nt, wr as Pt, x as Ft, xn as It, y as Lt, yr as Rt, yt as zt, zn as Bt, zt as Vt } from "./D_5T8KKyirVCR3RO.mjs";
9
- import { a as Ht, c as Ut, i as Wt, l as Gt, n as Kt, t as qt } from "./D74i1p_CJmHw8HKb.mjs";
7
+ import { t as e } from "./2Tu0hkxKQVlv9Cra.mjs";
8
+ import { $t as t, Ar as n, At as r, Br as i, Bt as a, C as o, Cn as s, Cr as c, D as l, Dn as u, Dr as d, Dt as f, Et as p, Fn as m, Fr as h, Ft as g, G as _, Gt as v, H as y, Hn as b, Hr as x, In as S, J as C, Jn as w, Jt as T, K as E, Kn as D, Kt as ee, Lr as te, Mn as O, Mr as ne, Mt as re, Nr as ie, O as ae, On as k, Or as oe, Ot as A, Pr as se, Pt as ce, Q as le, Qt as ue, Rr as de, S as j, Sr as M, Tr as fe, U as pe, Un as me, Ur as N, Vr as he, Vt as ge, W as _e, Wn as ve, Wr as ye, X as be, Xt as xe, Y as Se, Yn as Ce, Yt as we, Z as Te, Zt as Ee, _n as De, _r as P, _t as Oe, a as ke, an as Ae, ar as je, at as Me, b as Ne, bn as Pe, c as Fe, cn as Ie, d as Le, dr as Re, dt as ze, en as Be, er as Ve, et as He, fr as Ue, ft as We, g as Ge, gn as Ke, gr as qe, gt as Je, h as Ye, hn as Xe, hr as Ze, ht as Qe, i as $e, ir as et, jr as tt, kn as F, kr as nt, kt as rt, l as it, ln as at, lr as ot, lt as st, m as ct, mr as lt, mt as ut, o as dt, on as ft, pn as pt, pr as mt, pt as ht, q as gt, qt as _t, r as vt, rr as yt, rt as bt, s as xt, sn as St, sr as Ct, st as wt, tt as Tt, u as Et, un as Dt, ur as Ot, ut as kt, vn as At, vr as jt, w as Mt, wn as Nt, wr as Pt, x as Ft, xn as It, y as Lt, yr as Rt, yt as zt, zn as Bt, zt as Vt } from "./Cx9ap9QP6pCr4onD.mjs";
9
+ import { a as Ht, c as Ut, i as Wt, l as Gt, n as Kt, t as qt } from "./Dm3PlbhnXRlbfwcc.mjs";
10
10
  import { BufferUtils as Jt, OverlappingRange as Yt, RangeAxis as Xt } from "@sheetxl/utils";
11
11
  import { AddressUtils as I, BufferUtils as L, Color as Zt, CommonUtils as R, CoordUtils as Qt, FormulaError as z, FormulaText as $t, Hyperlink as en, IBorders as B, ICellStyle as V, IColor as H, ICondition as U, IConditionalFormat as W, ICustomProperty as tn, IEffect as nn, IFill as G, IFont as rn, IFontCollection as an, IRange as on, IShape as sn, ISheet as cn, IStroke as ln, ITextFrame as K, IWorkbookView as un, IWorksheetView as dn, LicenseManager as fn, NumberFormat as pn, Resource as mn, RichArray as hn, RichRecord as gn, RichText as _n, Scalar as vn, ScalarType as yn, ShapeStyleUtils as bn, pivotCellFormatsOf as xn } from "@sheetxl/sdk";
12
12
  var Sn = [
@@ -3032,7 +3032,11 @@ var wo = /* @__PURE__ */ new Set([
3032
3032
  function To(e) {
3033
3033
  return (e.icon?.length ?? 0) > 0 || e.iconSet !== void 0 && !wo.has(e.iconSet);
3034
3034
  }
3035
- function Eo(e, t, n, r, i, a, o, s, c) {
3035
+ function Eo(e) {
3036
+ return [e.minPoint ?? { type: W.ColorStopType.Min }, e.maxPoint ?? { type: W.ColorStopType.Max }];
3037
+ }
3038
+ var Do = "#638EC6";
3039
+ function Oo(e, t, n, r, i, a, o, s, c) {
3036
3040
  let l = r.scale;
3037
3041
  r.ext && e.warn("Conditional format extension payload is not written to xlsx; it will be lost.");
3038
3042
  let u = {
@@ -3051,13 +3055,7 @@ function Eo(e, t, n, r, i, a, o, s, c) {
3051
3055
  timePeriod: i.timePeriod
3052
3056
  }, d;
3053
3057
  l?.type === W.ScaleType.DataBar && function(e) {
3054
- if (!e.gradient || e.borderColor || e.negativeFillColor || e.negativeBorderColor || e.axisColor || e.axisPosition || e.direction) return !0;
3055
- let t = e.stops, n = t ? t.length : 0;
3056
- for (let e = 0; e < n; e++) {
3057
- let n = t[e].type;
3058
- if (n === W.ColorStopType.AutoMin || n === W.ColorStopType.AutoMax) return !0;
3059
- }
3060
- return !1;
3058
+ return !!(e.solidFill || e.borderColor || e.negativeFillColor || e.negativeBorderColor || e.axisColor || e.axisPosition || e.direction) || e.minPoint?.type === W.ColorStopType.AutoMin || e.maxPoint?.type === W.ColorStopType.AutoMax;
3061
3059
  }(l) && (d = M(R.uuidV4), c.push({
3062
3060
  guid: d,
3063
3061
  sqref: a,
@@ -3075,14 +3073,13 @@ function Eo(e, t, n, r, i, a, o, s, c) {
3075
3073
  for (let r = 0; r < e.length; r++) Y(t, n, e[r].color, "color");
3076
3074
  t.end("colorScale");
3077
3075
  } else if (l?.type === W.ScaleType.DataBar) {
3078
- let e = l.stops ?? [];
3079
3076
  t.start("dataBar", {
3080
3077
  minLength: l.minLength ?? 0,
3081
3078
  maxLength: l.maxLength ?? 100,
3082
3079
  showValue: Z(l.showValue)
3083
3080
  });
3084
- for (let n = 0; n < e.length; n++) So(t, e[n]);
3085
- l.color && Y(t, n, l.color, "color"), t.end("dataBar");
3081
+ let [e, r] = Eo(l);
3082
+ So(t, e), So(t, r), Y(t, n, l.color ?? Do, "color"), t.end("dataBar");
3086
3083
  } else if (l?.type === W.ScaleType.IconSet) {
3087
3084
  let e = l.stops ?? [];
3088
3085
  t.start("iconSet", {
@@ -3099,7 +3096,7 @@ function Eo(e, t, n, r, i, a, o, s, c) {
3099
3096
  }), t.start("x14:id"), t.text(d), t.end("x14:id"), t.end("ext"), t.end("extLst")), t.end("cfRule");
3100
3097
  } else t.empty("cfRule", u);
3101
3098
  }
3102
- function Do(e) {
3099
+ function ko(e) {
3103
3100
  let t = 2 ** 53 - 1, n = 2 ** 53 - 1, r = e.split(" ");
3104
3101
  for (let e = 0; e < r.length; e++) {
3105
3102
  if (!r[e]) continue;
@@ -3111,7 +3108,7 @@ function Do(e) {
3111
3108
  colIndex: n
3112
3109
  });
3113
3110
  }
3114
- function Oo(e) {
3111
+ function Ao(e) {
3115
3112
  if (typeof e == "string") return e.split(",").join(" ");
3116
3113
  if (Array.isArray(e)) {
3117
3114
  let t = [];
@@ -3126,7 +3123,7 @@ function Oo(e) {
3126
3123
  function Z(e) {
3127
3124
  if (e !== void 0) return e ? "1" : "0";
3128
3125
  }
3129
- function ko(e) {
3126
+ function jo(e) {
3130
3127
  if (typeof e != "string") return !1;
3131
3128
  let t = !1;
3132
3129
  for (let n = 0; n < e.length; n++) {
@@ -3136,12 +3133,12 @@ function ko(e) {
3136
3133
  }
3137
3134
  return !1;
3138
3135
  }
3139
- function Ao(e) {
3136
+ function Mo(e) {
3140
3137
  let t = e.formulas, n = t ? t.length : 0;
3141
- for (let e = 0; e < n; e++) if (ko(t[e])) return !0;
3138
+ for (let e = 0; e < n; e++) if (jo(t[e])) return !0;
3142
3139
  return !1;
3143
3140
  }
3144
- function jo(e) {
3141
+ function No(e) {
3145
3142
  let t = 2 ** 53 - 1, n = 2 ** 53 - 1, r = e.split(" ");
3146
3143
  for (let e = 0; e < r.length; e++) {
3147
3144
  if (!r[e]) continue;
@@ -3153,7 +3150,7 @@ function jo(e) {
3153
3150
  colIndex: n
3154
3151
  };
3155
3152
  }
3156
- function Mo(e, t, n) {
3153
+ function Po(e, t, n) {
3157
3154
  if (typeof e != "string" || !e || !t || !n) return e;
3158
3155
  try {
3159
3156
  let r = n.parse(e, t);
@@ -3162,30 +3159,41 @@ function Mo(e, t, n) {
3162
3159
  return e;
3163
3160
  }
3164
3161
  }
3165
- function No(e, t, n) {
3166
- let r = e?.stops;
3167
- if (!r || !n) return e;
3168
- let i;
3169
- for (let e = 0; e < r.length; e++) {
3170
- let a = r[e]?.value;
3171
- if (typeof a != "string") continue;
3172
- let o = Mo(a, t, n);
3173
- o !== a && (i ||= [...r], i[e] = {
3174
- ...r[e],
3175
- value: o
3176
- });
3162
+ function Fo(e, t, n) {
3163
+ if (!e || !n) return e;
3164
+ let r = (e) => {
3165
+ let r = e?.value;
3166
+ if (typeof r != "string") return e;
3167
+ let i = Po(r, t, n);
3168
+ return i === r ? e : {
3169
+ ...e,
3170
+ value: i
3171
+ };
3172
+ };
3173
+ if (e.type === W.ScaleType.DataBar) {
3174
+ let t = r(e.minPoint), n = r(e.maxPoint);
3175
+ if (t === e.minPoint && n === e.maxPoint) return e;
3176
+ let i = { ...e };
3177
+ return t && (i.minPoint = t), n && (i.maxPoint = n), i;
3178
+ }
3179
+ let i = e.stops;
3180
+ if (!i) return e;
3181
+ let a;
3182
+ for (let e = 0; e < i.length; e++) {
3183
+ let t = r(i[e]);
3184
+ t !== i[e] && (a ||= [...i], a[e] = t);
3177
3185
  }
3178
- return i ? {
3186
+ return a ? {
3179
3187
  ...e,
3180
- stops: i
3188
+ stops: a
3181
3189
  } : e;
3182
3190
  }
3183
- function Po(e) {
3191
+ function Io(e) {
3184
3192
  let t = e.getDataValidations().getSettings(), n = {};
3185
3193
  return t.disablePrompts && (n.disablePrompts = "1"), t.windowX !== void 0 && (n.xWindow = t.windowX), t.windowY !== void 0 && (n.yWindow = t.windowY), n;
3186
3194
  }
3187
- var Fo = "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings";
3188
- function Io(e, t, n) {
3195
+ var Lo = "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings";
3196
+ function Ro(e, t, n) {
3189
3197
  if (!n || n.length === 0) return;
3190
3198
  let r = n.filter((e) => !e.automatic).length;
3191
3199
  e.start(t, {
@@ -3198,12 +3206,12 @@ function Io(e, t, n) {
3198
3206
  }
3199
3207
  e.end(t);
3200
3208
  }
3201
- function Lo(e, t, n, r) {
3209
+ function zo(e, t, n, r) {
3202
3210
  if (!r?.xml) return;
3203
3211
  let i = e.addPart("legacyDrawing", r);
3204
3212
  t.empty(n, { "r:id": i.relId });
3205
3213
  }
3206
- var Ro = (e, t, n, r) => {
3214
+ var Bo = (e, t, n, r) => {
3207
3215
  let i = (t, n) => {
3208
3216
  let r = e.getRangeAtBounds({
3209
3217
  x: t,
@@ -3248,11 +3256,11 @@ var Ro = (e, t, n, r) => {
3248
3256
  bounds: a,
3249
3257
  anchor: [...i(a.x, a.y), ...i(a.x + a.width, a.y + a.height)]
3250
3258
  };
3251
- }, zo = (e, t) => {
3259
+ }, Vo = (e, t) => {
3252
3260
  if (!t) return e;
3253
3261
  let n = e?.xml ?? null, r = Mt(n ?? ""), i = [], a = t.comments;
3254
3262
  for (let e = 0; e < a.length; e++) {
3255
- let { comment: n, row: o, col: s } = a[e], c = n.isNote() ? n.toJSON() : null, { bounds: u, anchor: d } = Ro(t.sheet, n, o, s), f = c?.box, p = f?.fill || f?.stroke ? ae(f.xml ?? j, {
3263
+ let { comment: n, row: o, col: s } = a[e], c = n.isNote() ? n.toJSON() : null, { bounds: u, anchor: d } = Bo(t.sheet, n, o, s), f = c?.box, p = f?.fill || f?.stroke ? ae(f.xml ?? j, {
3256
3264
  fill: f.fill,
3257
3265
  stroke: f.stroke
3258
3266
  }, (e) => t.sheet.getStyles().parseColor(e)) : f?.xml;
@@ -3272,7 +3280,7 @@ var Ro = (e, t, n, r) => {
3272
3280
  ...e,
3273
3281
  xml: s
3274
3282
  } : { xml: s } : e;
3275
- }, Bo = st + 1, Vo = (e, t) => {
3283
+ }, Ho = st + 1, Uo = (e, t) => {
3276
3284
  if (t.length === 0) return;
3277
3285
  let n = Mt(e.legacyDrawing?.xml ?? ""), r = t.length;
3278
3286
  for (let e = 0; e < r; e++) {
@@ -3284,7 +3292,7 @@ var Ro = (e, t, n, r) => {
3284
3292
  let r = t[e].jsonMovable.content, a = r.json ??= {};
3285
3293
  (typeof a.shapeId != "number" || i.has(a.shapeId)) && (a.shapeId = ++n), i.add(a.shapeId);
3286
3294
  }
3287
- }, Ho = (e, t, n) => {
3295
+ }, Wo = (e, t, n) => {
3288
3296
  if (n.length === 0) return t;
3289
3297
  let r = (t, n) => e.getRange({
3290
3298
  rowStart: n,
@@ -3322,15 +3330,15 @@ var Ro = (e, t, n, r) => {
3322
3330
  ...t,
3323
3331
  xml: c
3324
3332
  } : { xml: c } : t;
3325
- }, Uo = (e, t, n) => {
3333
+ }, Go = (e, t, n) => {
3326
3334
  e.start(t), e.start("xdr:col"), e.text(n.c ?? 0), e.end("xdr:col"), e.start("xdr:colOff"), e.text(X(n.x)), e.end("xdr:colOff"), e.start("xdr:row"), e.text(n.r ?? 0), e.end("xdr:row"), e.start("xdr:rowOff"), e.text(X(n.y)), e.end("xdr:rowOff"), e.end(t);
3327
- }, Wo = {
3335
+ }, Ko = {
3328
3336
  r: void 0,
3329
3337
  s: void 0,
3330
3338
  t: void 0,
3331
3339
  cm: void 0,
3332
3340
  vm: void 0
3333
- }, Go = {
3341
+ }, qo = {
3334
3342
  r: void 0,
3335
3343
  s: void 0,
3336
3344
  customFormat: void 0,
@@ -3342,56 +3350,56 @@ var Ro = (e, t, n, r) => {
3342
3350
  collapsed: void 0,
3343
3351
  thickTop: void 0,
3344
3352
  thickBot: void 0
3345
- }, Ko = {
3353
+ }, Jo = {
3346
3354
  t: void 0,
3347
3355
  aca: void 0,
3348
3356
  ref: void 0,
3349
3357
  ca: void 0,
3350
3358
  si: void 0
3351
- }, qo = {
3359
+ }, Yo = {
3352
3360
  t: "shared",
3353
3361
  aca: void 0,
3354
3362
  ref: void 0,
3355
3363
  ca: void 0,
3356
3364
  si: void 0
3357
- }, Jo = {
3365
+ }, Xo = {
3358
3366
  t: "array",
3359
3367
  aca: void 0,
3360
3368
  ref: void 0,
3361
3369
  ca: void 0,
3362
3370
  si: void 0
3363
3371
  };
3364
- function Yo(e, t) {
3372
+ function Zo(e, t) {
3365
3373
  let n = h.test(t) ? se : void 0;
3366
3374
  e.start("t", n), e.text(te(t)), e.end("t");
3367
3375
  }
3368
- var Xo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 : e ? "1" : "0", Zo = /* @__PURE__ */ new Set(/* @__PURE__ */ "text.runs.paragraphs.field.color.size.kern.weight.style.b.i.spc.baseline.italic.underline.strike.font.eastAsianFont.complexScriptFont.symbolFont.language.alternateLanguage.kerning.spacing.letterSpacing.capitals.normalizeHeight.highlight.hyperlink.outline.effects.fill.stroke".split(".")), Qo = {
3376
+ var Qo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 : e ? "1" : "0", $o = /* @__PURE__ */ new Set(/* @__PURE__ */ "text.runs.paragraphs.field.color.size.kern.weight.style.b.i.spc.baseline.italic.underline.strike.font.eastAsianFont.complexScriptFont.symbolFont.language.alternateLanguage.kerning.spacing.letterSpacing.capitals.normalizeHeight.highlight.hyperlink.outline.effects.fill.stroke".split(".")), es = {
3369
3377
  latin: "lt",
3370
3378
  ea: "ea",
3371
3379
  cs: "cs",
3372
3380
  sym: "lt",
3373
3381
  buFont: "lt"
3374
- }, $o = (e, t, n) => {
3382
+ }, ts = (e, t, n) => {
3375
3383
  if (!n) return;
3376
- let r = n.scheme !== void 0 && n.scheme !== rn.Scheme.None ? `+${n.scheme === rn.Scheme.Major ? "mj" : "mn"}-${Qo[t]}` : n.family;
3384
+ let r = n.scheme !== void 0 && n.scheme !== rn.Scheme.None ? `+${n.scheme === rn.Scheme.Major ? "mj" : "mn"}-${es[t]}` : n.family;
3377
3385
  r !== void 0 && e.empty(t, {
3378
3386
  typeface: r,
3379
3387
  panose: n.panose,
3380
3388
  pitchFamily: n.pitch,
3381
3389
  charset: Se(n.charset)
3382
3390
  });
3383
- }, es = (e, t, n, r, i = R.EmptyObject) => {
3391
+ }, ns = (e, t, n, r, i = R.EmptyObject) => {
3384
3392
  let a = e.getXMLWriter(), o = ((e, t, n = R.EmptyArray) => {
3385
3393
  if (!t) return { ...n };
3386
3394
  let r = { ...n };
3387
- for (let e of Object.keys(t)) Zo.has(e) || t[e] === void 0 || (r[e] = t[e]);
3395
+ for (let e of Object.keys(t)) $o.has(e) || t[e] === void 0 || (r[e] = t[e]);
3388
3396
  let { size: i, kern: a, weight: o, style: s, b: c, i: l, spc: u, baseline: d } = t, f = t;
3389
- return f.language !== void 0 && (r.lang = f.language), f.alternateLanguage !== void 0 && (r.altLang = f.alternateLanguage), i !== void 0 && (r.sz = "" + hi(i)), c !== void 0 && (r.b = c ? "1" : "0"), o !== void 0 && (r.b = o > 500 ? "1" : "0"), l !== void 0 && (r.i = l ? "1" : "0"), s !== void 0 && (r.i = s === "italic" ? "1" : "0"), t.italic !== void 0 && (r.i = t.italic ? "1" : "0"), f.underline !== void 0 && (r.u = C.write(f.underline)), f.strike !== void 0 && (r.strike = E.write(f.strike)), a !== void 0 && (r.kern = "" + hi(a)), f.kerning !== void 0 && (r.kern = "" + hi(f.kerning)), u !== void 0 && (r.spc = "" + hi(u)), f.letterSpacing !== void 0 && (r.spc = "" + hi(f.letterSpacing)), d !== void 0 && (r.baseline = Xo(d)), f.capitals !== void 0 && (r.cap = f.capitals), f.normalizeHeight !== void 0 && (r.normalizeH = Q(f.normalizeHeight)), r;
3397
+ return f.language !== void 0 && (r.lang = f.language), f.alternateLanguage !== void 0 && (r.altLang = f.alternateLanguage), i !== void 0 && (r.sz = "" + hi(i)), c !== void 0 && (r.b = c ? "1" : "0"), o !== void 0 && (r.b = o > 500 ? "1" : "0"), l !== void 0 && (r.i = l ? "1" : "0"), s !== void 0 && (r.i = s === "italic" ? "1" : "0"), t.italic !== void 0 && (r.i = t.italic ? "1" : "0"), f.underline !== void 0 && (r.u = C.write(f.underline)), f.strike !== void 0 && (r.strike = E.write(f.strike)), a !== void 0 && (r.kern = "" + hi(a)), f.kerning !== void 0 && (r.kern = "" + hi(f.kerning)), u !== void 0 && (r.spc = "" + hi(u)), f.letterSpacing !== void 0 && (r.spc = "" + hi(f.letterSpacing)), d !== void 0 && (r.baseline = Qo(d)), f.capitals !== void 0 && (r.cap = f.capitals), f.normalizeHeight !== void 0 && (r.normalizeH = Q(f.normalizeHeight)), r;
3390
3398
  })(0, r ?? {}, i);
3391
- r?.outline || r?.color || r?.effects?.length || r?.highlight || r?.font || r?.eastAsianFont || r?.complexScriptFont || r?.symbolFont || r?.hyperlink ? (a.start(n, o), r.outline && Xr(e, a, r.outline, t), r.color && Yr(e, a, r.color, t), r.effects?.length && $r(e, a, t.getTheme(), r.effects), r.highlight && (a.start("highlight"), J(a, t.getTheme(), r.highlight), a.end("highlight")), $o(a, "latin", r.font), $o(a, "ea", r.eastAsianFont), $o(a, "cs", r.complexScriptFont), $o(a, "sym", r.symbolFont), Jr(e, a, "hlinkClick", r.hyperlink), a.end(n)) : a.empty(n, o);
3392
- }, ts = (e, t, n) => {
3393
- n && (e.start(t), "percent" in n ? e.empty("spcPct", { val: Xo(n.percent) }) : e.empty("spcPts", { val: String(Math.round(100 * n.points)) }), e.end(t));
3394
- }, ns = (e, t, n, r) => {
3399
+ r?.outline || r?.color || r?.effects?.length || r?.highlight || r?.font || r?.eastAsianFont || r?.complexScriptFont || r?.symbolFont || r?.hyperlink ? (a.start(n, o), r.outline && Xr(e, a, r.outline, t), r.color && Yr(e, a, r.color, t), r.effects?.length && $r(e, a, t.getTheme(), r.effects), r.highlight && (a.start("highlight"), J(a, t.getTheme(), r.highlight), a.end("highlight")), ts(a, "latin", r.font), ts(a, "ea", r.eastAsianFont), ts(a, "cs", r.complexScriptFont), ts(a, "sym", r.symbolFont), Jr(e, a, "hlinkClick", r.hyperlink), a.end(n)) : a.empty(n, o);
3400
+ }, rs = (e, t, n) => {
3401
+ n && (e.start(t), "percent" in n ? e.empty("spcPct", { val: Qo(n.percent) }) : e.empty("spcPts", { val: String(Math.round(100 * n.points)) }), e.end(t));
3402
+ }, is = (e, t, n, r) => {
3395
3403
  let i = e.getXMLWriter(), a = {
3396
3404
  marL: r.marginLeft === void 0 ? void 0 : String(X(r.marginLeft)),
3397
3405
  marR: r.marginRight === void 0 ? void 0 : String(X(r.marginRight)),
@@ -3406,7 +3414,7 @@ var Xo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 :
3406
3414
  hangingPunct: Q(r.hangingPunctuation)
3407
3415
  }, o = r.bullet;
3408
3416
  if (r.lineSpacing || r.spaceBefore || r.spaceAfter || o || r.tabs || r.defaultRun) {
3409
- if (i.start(n, a), ts(i, "lnSpc", r.lineSpacing), ts(i, "spcBef", r.spaceBefore), ts(i, "spcAft", r.spaceAfter), o) switch (o.colorFollowsText ? i.empty("buClrTx") : o.color && (i.start("buClr"), J(i, t.getTheme(), o.color), i.end("buClr")), o.sizeFollowsText ? i.empty("buSzTx") : o.size && ("percent" in o.size ? i.empty("buSzPct", { val: Xo(o.size.percent) }) : i.empty("buSzPts", { val: String(Math.round(100 * o.size.points)) })), o.fontFollowsText ? i.empty("buFontTx") : $o(i, "buFont", o.font), o.type) {
3417
+ if (i.start(n, a), rs(i, "lnSpc", r.lineSpacing), rs(i, "spcBef", r.spaceBefore), rs(i, "spcAft", r.spaceAfter), o) switch (o.colorFollowsText ? i.empty("buClrTx") : o.color && (i.start("buClr"), J(i, t.getTheme(), o.color), i.end("buClr")), o.sizeFollowsText ? i.empty("buSzTx") : o.size && ("percent" in o.size ? i.empty("buSzPct", { val: Qo(o.size.percent) }) : i.empty("buSzPts", { val: String(Math.round(100 * o.size.points)) })), o.fontFollowsText ? i.empty("buFontTx") : ts(i, "buFont", o.font), o.type) {
3410
3418
  case "none":
3411
3419
  i.empty("buNone");
3412
3420
  break;
@@ -3426,14 +3434,14 @@ var Xo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 :
3426
3434
  });
3427
3435
  i.end("tabLst");
3428
3436
  }
3429
- r.defaultRun && es(e, t, "defRPr", r.defaultRun), i.end(n);
3437
+ r.defaultRun && ns(e, t, "defRPr", r.defaultRun), i.end(n);
3430
3438
  } else i.empty(n, a);
3431
- }, rs = (e) => e === K.Overflow.Visible ? void 0 : _e.write(e), is = (e, t) => {
3439
+ }, as = (e) => e === K.Overflow.Visible ? void 0 : _e.write(e), os = (e, t) => {
3432
3440
  let n = t.body ?? {}, r = n.insets, i = {
3433
3441
  rot: t.rotation === void 0 ? void 0 : String(Math.round(6e4 * t.rotation)),
3434
3442
  spcFirstLastPara: Q(n.spaceFirstLastParagraph),
3435
- vertOverflow: rs(n.verticalOverflow ?? bn.TEXT_DEFAULTS.verticalOverflow),
3436
- horzOverflow: rs(n.horizontalOverflow ?? bn.TEXT_DEFAULTS.horizontalOverflow),
3443
+ vertOverflow: as(n.verticalOverflow ?? bn.TEXT_DEFAULTS.verticalOverflow),
3444
+ horzOverflow: as(n.horizontalOverflow ?? bn.TEXT_DEFAULTS.horizontalOverflow),
3437
3445
  vert: be.write(n.vertical),
3438
3446
  wrap: n.wrap,
3439
3447
  lIns: r?.left === void 0 ? void 0 : String(X(r.left)),
@@ -3472,25 +3480,25 @@ var Xo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 :
3472
3480
  e.empty("spAutoFit");
3473
3481
  break;
3474
3482
  case K.Autofit.Normal: e.empty("normAutofit", {
3475
- fontScale: n.fontScale === void 0 ? void 0 : Xo(n.fontScale),
3476
- lnSpcReduction: n.lineSpacingReduction === void 0 ? void 0 : Xo(n.lineSpacingReduction)
3483
+ fontScale: n.fontScale === void 0 ? void 0 : Qo(n.fontScale),
3484
+ lnSpcReduction: n.lineSpacingReduction === void 0 ? void 0 : Qo(n.lineSpacingReduction)
3477
3485
  });
3478
3486
  }
3479
3487
  n.extLst && e.raw(n.extLst), e.end("bodyPr");
3480
3488
  } else e.empty("bodyPr", i);
3481
- }, as = (e, t, n) => {
3489
+ }, ss = (e, t, n) => {
3482
3490
  let r = e.getXMLWriter();
3483
- n && (n.default || n.levels?.some((e) => e)) ? (r.start("lstStyle"), n.default && ns(e, t, "defPPr", n.default), n.levels?.forEach((n, r) => {
3484
- n && ns(e, t, `lvl${r + 1}pPr`, n);
3491
+ n && (n.default || n.levels?.some((e) => e)) ? (r.start("lstStyle"), n.default && is(e, t, "defPPr", n.default), n.levels?.forEach((n, r) => {
3492
+ n && is(e, t, `lvl${r + 1}pPr`, n);
3485
3493
  }), r.end("lstStyle")) : r.empty("lstStyle");
3486
- }, os = (e, t, n, r) => {
3494
+ }, cs = (e, t, n, r) => {
3487
3495
  let i = e.getXMLWriter();
3488
3496
  i.pushDefaultNamespace("a"), i.start("p");
3489
3497
  let { runs: a, endRun: o, ...s } = r, c = bn.inheritedTextSize(n, r) === void 0 ? (e) => e.size === void 0 ? {
3490
3498
  ...e,
3491
3499
  size: bn.TEXT_DEFAULTS.size
3492
3500
  } : e : (e) => e;
3493
- ((e) => !!e && Object.keys(e).some((t) => t !== "runs" && t !== "endRun" && e[t] !== void 0))(s) && ns(e, t, "pPr", s);
3501
+ ((e) => !!e && Object.keys(e).some((t) => t !== "runs" && t !== "endRun" && e[t] !== void 0))(s) && is(e, t, "pPr", s);
3494
3502
  for (let n of a ?? []) {
3495
3503
  if (n?.text === "\n") {
3496
3504
  i.empty("br");
@@ -3500,22 +3508,22 @@ var Xo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 :
3500
3508
  i.start(s, a ? {
3501
3509
  id: a.id,
3502
3510
  type: a.type
3503
- } : {}), es(e, t, "rPr", c(o)), i.start("t"), i.text(r ?? ""), i.end("t"), i.end(s);
3511
+ } : {}), ns(e, t, "rPr", c(o)), i.start("t"), i.text(r ?? ""), i.end("t"), i.end(s);
3504
3512
  }
3505
- !o && a?.length || es(e, t, "endParaRPr", c(o ?? {})), i.end("p"), i.popDefaultNamespace();
3506
- }, ss = (e, t, n) => {
3513
+ !o && a?.length || ns(e, t, "endParaRPr", c(o ?? {})), i.end("p"), i.popDefaultNamespace();
3514
+ }, ls = (e, t, n) => {
3507
3515
  if (!n) return;
3508
3516
  let r = e.getXMLWriter(), i = ((e) => typeof e == "string" ? { paragraphs: [{ runs: [{ text: e }] }] } : Array.isArray(e?.paragraphs) ? e : { paragraphs: [e] })(n);
3509
- r.start("txBody"), r.pushDefaultNamespace("a"), is(r, i), as(e, t, i.listStyle);
3517
+ r.start("txBody"), r.pushDefaultNamespace("a"), os(r, i), ss(e, t, i.listStyle);
3510
3518
  let a = i.paragraphs.length === 0 ? [{ runs: [] }] : i.paragraphs;
3511
- for (let n of a) os(e, t, i, n);
3519
+ for (let n of a) cs(e, t, i, n);
3512
3520
  r.popDefaultNamespace(), r.end("txBody");
3513
- }, cs = (e, t, n) => {
3521
+ }, us = (e, t, n) => {
3514
3522
  let r = e.getXMLWriter();
3515
3523
  if (!n) return r.empty("bodyPr"), void r.empty("lstStyle");
3516
- is(r, n), as(e, t, n.listStyle);
3524
+ os(r, n), ss(e, t, n.listStyle);
3517
3525
  };
3518
- function ls(e, t, n, r) {
3526
+ function ds(e, t, n, r) {
3519
3527
  e.start(r);
3520
3528
  let i = { typeface: t.latin || n };
3521
3529
  t.panose && (i.panose = t.panose), e.empty("latin", i), e.empty("ea", { typeface: t.eastAsian ?? "" }), e.empty("cs", { typeface: t.complexScript ?? "" });
@@ -3526,11 +3534,11 @@ function ls(e, t, n, r) {
3526
3534
  });
3527
3535
  e.end(r);
3528
3536
  }
3529
- var us = [
3537
+ var fs = [
3530
3538
  ["shape", "spDef"],
3531
3539
  ["line", "lnDef"],
3532
3540
  ["text", "txDef"]
3533
- ], ds = { checkbox: "Checkbox" }, fs = [
3541
+ ], ps = { checkbox: "Checkbox" }, ms = [
3534
3542
  ["dc:title", "title"],
3535
3543
  ["dc:subject", "subject"],
3536
3544
  ["dc:creator", "author"],
@@ -3551,9 +3559,9 @@ var us = [
3551
3559
  ["cp:category", "category"],
3552
3560
  ["cp:contentStatus", "contentStatus"],
3553
3561
  ["cp:revision", "revisionNumber"]
3554
- ], ps = (e) => e.toISOString().split(".")[0] + "Z", ms = (e, t, n, r) => {
3562
+ ], hs = (e) => e.toISOString().split(".")[0] + "Z", gs = (e, t, n, r) => {
3555
3563
  t.start(n), t.text(r), t.end(n);
3556
- }, hs = (e, t, n) => {
3564
+ }, _s = (e, t, n) => {
3557
3565
  let r = [
3558
3566
  {
3559
3567
  heading: "Worksheets",
@@ -3599,13 +3607,13 @@ var us = [
3599
3607
  });
3600
3608
  for (let e of o) for (let n of e.names) t.start("vt:lpstr"), t.text(n), t.end("vt:lpstr");
3601
3609
  t.end("vt:vector"), t.end("TitlesOfParts");
3602
- }, gs = {
3610
+ }, vs = {
3603
3611
  [tn.Type.String]: "vt:lpwstr",
3604
3612
  [tn.Type.Number]: "vt:i4",
3605
3613
  [tn.Type.Float]: "vt:r8",
3606
3614
  [tn.Type.Boolean]: "vt:bool",
3607
3615
  [tn.Type.Date]: "vt:filetime"
3608
- }, _s = (e) => e.split(".")[0] + "Z", vs = {
3616
+ }, ys = (e) => e.split(".")[0] + "Z", bs = {
3609
3617
  minSupportedVersion: "120000",
3610
3618
  copy: "1",
3611
3619
  pasteAll: "1",
@@ -3617,20 +3625,20 @@ var us = [
3617
3625
  clearComments: "1",
3618
3626
  assign: "1",
3619
3627
  coerce: "1"
3620
- }, ys = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", bs = (e, t) => {
3628
+ }, xs = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", Ss = (e, t) => {
3621
3629
  for (let [n, r] of t) e.start("v", n ? { t: n } : void 0), e.text(r), e.end("v");
3622
- }, $ = (e) => e === void 0 || e === "_" ? void 0 : e, xs = (e, t) => {
3630
+ }, $ = (e) => e === void 0 || e === "_" ? void 0 : e, Cs = (e, t) => {
3623
3631
  let n = t.indexOf(" ");
3624
3632
  n < 0 || e.empty("gd", {
3625
3633
  name: t.slice(0, n),
3626
3634
  fmla: t.slice(n + 1).trim()
3627
3635
  });
3628
- }, Ss = (e, t, n) => {
3636
+ }, ws = (e, t, n) => {
3629
3637
  e.empty("pos", {
3630
3638
  x: t,
3631
3639
  y: n
3632
3640
  });
3633
- }, Cs = (e, t) => {
3641
+ }, Ts = (e, t) => {
3634
3642
  let n = t.split(" ");
3635
3643
  n[0] === "xy" ? (e.start("ahXY", {
3636
3644
  gdRefX: $(n[1]),
@@ -3639,20 +3647,20 @@ var us = [
3639
3647
  gdRefY: $(n[2]),
3640
3648
  minY: $(n[7]),
3641
3649
  maxY: $(n[8])
3642
- }), Ss(e, n[3], n[4]), e.end("ahXY")) : n[0] === "polar" && (e.start("ahPolar", {
3650
+ }), ws(e, n[3], n[4]), e.end("ahXY")) : n[0] === "polar" && (e.start("ahPolar", {
3643
3651
  gdRefR: $(n[1]),
3644
3652
  minR: $(n[5]),
3645
3653
  maxR: $(n[6]),
3646
3654
  gdRefAng: $(n[2]),
3647
3655
  minAng: $(n[7]),
3648
3656
  maxAng: $(n[8])
3649
- }), Ss(e, n[3], n[4]), e.end("ahPolar"));
3650
- }, ws = {
3657
+ }), ws(e, n[3], n[4]), e.end("ahPolar"));
3658
+ }, Es = {
3651
3659
  M: ["moveTo", 1],
3652
3660
  L: ["lnTo", 1],
3653
3661
  Q: ["quadBezTo", 2],
3654
3662
  C: ["cubicBezTo", 3]
3655
- }, Ts = (e, t) => {
3663
+ }, Ds = (e, t) => {
3656
3664
  e.start("path", {
3657
3665
  w: t.w,
3658
3666
  h: t.h,
@@ -3670,7 +3678,7 @@ var us = [
3670
3678
  swAng: n[r + 3]
3671
3679
  }), r += 4;
3672
3680
  else {
3673
- let i = ws[t];
3681
+ let i = Es[t];
3674
3682
  if (!i) break;
3675
3683
  e.start(i[0]);
3676
3684
  for (let t = 0; t < i[1]; t++, r += 2) e.empty("pt", {
@@ -3681,32 +3689,32 @@ var us = [
3681
3689
  }
3682
3690
  }
3683
3691
  e.end("path");
3684
- }, Es = {
3692
+ }, Os = {
3685
3693
  type: "http://schemas.microsoft.com/office/2011/relationships/chartStyle",
3686
3694
  contentType: "application/vnd.ms-office.chartstyle+xml",
3687
3695
  name: "style1.xml",
3688
3696
  xml: "<cs:chartStyle xmlns:cs=\"http://schemas.microsoft.com/office/drawing/2012/chartStyle\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" id=\"395\"><cs:axisTitle><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:axisTitle><cs:categoryAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:categoryAxis><cs:chartArea mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"bg1\"/></a:solidFill><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"1000\"/></cs:chartArea><cs:dataLabel><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:dataLabel><cs:dataLabelCallout><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill><a:ln><a:solidFill><a:schemeClr val=\"dk1\"><a:lumMod val=\"25000\"/><a:lumOff val=\"75000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz=\"900\"/><cs:bodyPr rot=\"0\" spcFirstLastPara=\"1\" vertOverflow=\"clip\" horzOverflow=\"clip\" vert=\"horz\" wrap=\"square\" lIns=\"36576\" tIns=\"18288\" rIns=\"36576\" bIns=\"18288\" anchor=\"ctr\" anchorCtr=\"1\"><a:spAutoFit/></cs:bodyPr></cs:dataLabelCallout><cs:dataPoint><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill></cs:spPr></cs:dataPoint><cs:dataPoint3D><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill></cs:spPr></cs:dataPoint3D><cs:dataPointLine><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"28575\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointLine><cs:dataPointMarker><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></cs:spPr></cs:dataPointMarker><cs:dataPointMarkerLayout symbol=\"circle\" size=\"5\"/><cs:dataPointWireframe><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"28575\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointWireframe><cs:dataTable><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:dataTable><cs:downBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"dk1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:downBar><cs:dropLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"35000\"/><a:lumOff val=\"65000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:dropLine><cs:errorBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:errorBar><cs:floor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:floor><cs:gridlineMajor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMajor><cs:gridlineMinor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMinor><cs:hiLoLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"75000\"/><a:lumOff val=\"25000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:hiLoLine><cs:leaderLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"35000\"/><a:lumOff val=\"65000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:leaderLine><cs:legend><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:legend><cs:plotArea mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:plotArea><cs:plotArea3D mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:plotArea3D><cs:seriesAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:seriesAxis><cs:seriesLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\"><a:solidFill><a:srgbClr val=\"D9D9D9\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:seriesLine><cs:title><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"1400\"/></cs:title><cs:trendline><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"19050\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:prstDash val=\"sysDash\"/></a:ln></cs:spPr></cs:trendline><cs:trendlineLabel><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:trendlineLabel><cs:upBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:upBar><cs:valueAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:valueAxis><cs:wall><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:wall></cs:chartStyle>"
3689
- }, Ds = {
3697
+ }, ks = {
3690
3698
  type: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",
3691
3699
  contentType: "application/vnd.ms-office.chartcolorstyle+xml",
3692
3700
  name: "colors1.xml",
3693
3701
  xml: "<cs:colorStyle xmlns:cs=\"http://schemas.microsoft.com/office/drawing/2012/chartStyle\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" meth=\"cycle\" id=\"10\"><a:schemeClr val=\"accent1\"/><a:schemeClr val=\"accent2\"/><a:schemeClr val=\"accent3\"/><a:schemeClr val=\"accent4\"/><a:schemeClr val=\"accent5\"/><a:schemeClr val=\"accent6\"/><cs:variation/><cs:variation><a:lumMod val=\"60000\"/></cs:variation><cs:variation><a:lumMod val=\"80000\"/><a:lumOff val=\"20000\"/></cs:variation><cs:variation><a:lumMod val=\"80000\"/></cs:variation><cs:variation><a:lumMod val=\"60000\"/><a:lumOff val=\"40000\"/></cs:variation><cs:variation><a:lumMod val=\"50000\"/></cs:variation><cs:variation><a:lumMod val=\"70000\"/><a:lumOff val=\"30000\"/></cs:variation><cs:variation><a:lumMod val=\"70000\"/></cs:variation><cs:variation><a:lumMod val=\"50000\"/><a:lumOff val=\"50000\"/></cs:variation></cs:colorStyle>"
3694
- }, Os = (e, t) => {
3702
+ }, As = (e, t) => {
3695
3703
  let n = {};
3696
3704
  t.unlocked && (n.fLocksWithSheet = "0"), t.noPrint && (n.fPrintsWithSheet = "0"), e.empty("clientData", n);
3697
- }, ks = (e) => e.content?.json?.members ?? [], As = (e) => ({
3705
+ }, js = (e) => e.content?.json?.members ?? [], Ms = (e) => ({
3698
3706
  x: e.anchor?.tl?.x ?? 0,
3699
3707
  y: e.anchor?.tl?.y ?? 0,
3700
3708
  width: e.anchor?.br?.x ?? 0,
3701
3709
  height: e.anchor?.br?.y ?? 0
3702
- }), js = async (e, t) => {
3710
+ }), Ns = async (e, t) => {
3703
3711
  let n = t.content;
3704
3712
  if (n?.type !== "shape" && n?.type !== "picture" || await si(e, n.json), n?.type === "group") {
3705
3713
  await si(e, n.json);
3706
- for (let n of ks(t)) await js(e, n);
3714
+ for (let n of js(t)) await Ns(e, n);
3707
3715
  }
3708
- }, Ms = async (e, t, n, r, i, a) => {
3709
- let o = await ai(e, a), s = r.content?.json, c = s?.image ?? {}, l = c.extLst ?? (o.external ? void 0 : Ns), u = {
3716
+ }, Ps = async (e, t, n, r, i, a) => {
3717
+ let o = await ai(e, a), s = r.content?.json, c = s?.image ?? {}, l = c.extLst ?? (o.external ? void 0 : Fs), u = {
3710
3718
  ...c,
3711
3719
  type: G.Type.Image,
3712
3720
  extLst: l,
@@ -3716,8 +3724,8 @@ var us = [
3716
3724
  let f = {};
3717
3725
  c.dpi !== void 0 && (f.dpi = String(c.dpi)), c.isRotatedWithShape !== void 0 && (f.rotWithShape = c.isRotatedWithShape ? "1" : "0");
3718
3726
  let p = e.getXMLWriter();
3719
- p.start("pic", d), p.start("nvPicPr"), Ys(e, p, n, r, t), p.start("cNvPicPr", s?.noRelativeResize ? { preferRelativeResize: "0" } : {}), p.empty("a:picLocks", $s(r)), p.end("cNvPicPr"), p.end("nvPicPr"), p.start("blipFill", f), p.pushDefaultNamespace("a"), di(p, u, o), p.popDefaultNamespace(), p.end("blipFill"), qs(e, t, n, r, i), p.end("pic");
3720
- }, Ns = "<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>", Ps = async (e, t, n, r, i) => {
3727
+ p.start("pic", d), p.start("nvPicPr"), Zs(e, p, n, r, t), p.start("cNvPicPr", s?.noRelativeResize ? { preferRelativeResize: "0" } : {}), p.empty("a:picLocks", tc(r)), p.end("cNvPicPr"), p.end("nvPicPr"), p.start("blipFill", f), p.pushDefaultNamespace("a"), di(p, u, o), p.popDefaultNamespace(), p.end("blipFill"), Ys(e, t, n, r, i), p.end("pic");
3728
+ }, Fs = "<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>", Is = async (e, t, n, r, i) => {
3721
3729
  let a = r.content?.json, o = a?.model, s = a?.part, c = () => i ?? n?.getBounds() ?? {
3722
3730
  x: 0,
3723
3731
  y: 0,
@@ -3731,16 +3739,16 @@ var us = [
3731
3739
  });
3732
3740
  if (n.leftOut.length > 0) {
3733
3741
  let i = r.content?.name ?? "";
3734
- if (n.leftOut.length === u.length) return e.warn(`The chart '${i}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"), Ks(e, t, r, c());
3742
+ if (n.leftOut.length === u.length) return e.warn(`The chart '${i}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"), Js(e, t, r, c());
3735
3743
  e.warn(`The chart '${i}' combines types one xlsx chart cannot hold together; it is saved without its ${n.leftOut.join(", ")} series.`, void 0, "xlsx.chart.leftOut");
3736
3744
  }
3737
3745
  d = n.family, f = n.xml;
3738
3746
  } else {
3739
- if (!s?.xml || !l) return Ks(e, t, r, c());
3747
+ if (!s?.xml || !l) return Js(e, t, r, c());
3740
3748
  d = l, f = s.xml;
3741
3749
  }
3742
3750
  let p = qt[d], m = [...s?.parts ?? []];
3743
- if (d === "chartEx") for (let e of [Es, Ds]) m.some((t) => t.type === e.type) || m.push({
3751
+ if (d === "chartEx") for (let e of [Os, ks]) m.some((t) => t.type === e.type) || m.push({
3744
3752
  id: "",
3745
3753
  ...e
3746
3754
  });
@@ -3752,9 +3760,9 @@ var us = [
3752
3760
  xml: f,
3753
3761
  parts: m
3754
3762
  }, e, p.path);
3755
- if (!h?.relId) return Ks(e, t, r, c());
3763
+ if (!h?.relId) return Js(e, t, r, c());
3756
3764
  let g = e.getXMLWriter();
3757
- if (d === "chart") return void Fs(e, t, n, r, d, h.relId, i);
3765
+ if (d === "chart") return void Ls(e, t, n, r, d, h.relId, i);
3758
3766
  let _ = ((e) => {
3759
3767
  let t = new Set(e.map((e) => e.type));
3760
3768
  return t.has("regionMap") ? {
@@ -3768,18 +3776,18 @@ var us = [
3768
3776
  uri: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"
3769
3777
  };
3770
3778
  })(u);
3771
- g.start("mc:AlternateContent", { "xmlns:mc": Bs }), g.start("mc:Choice", {
3779
+ g.start("mc:AlternateContent", { "xmlns:mc": Hs }), g.start("mc:Choice", {
3772
3780
  [`xmlns:${_.prefix}`]: _.uri,
3773
3781
  Requires: _.prefix
3774
- }), Fs(e, t, n, r, d, h.relId, i), g.end("mc:Choice"), g.start("mc:Fallback"), Ws(g, c(), "This chart isn't available in your version of Excel.\n\nEditing this shape or saving this workbook into a different file format will permanently break the chart."), g.end("mc:Fallback"), g.end("mc:AlternateContent");
3775
- }, Fs = (e, t, n, r, i, a, o) => {
3782
+ }), Ls(e, t, n, r, d, h.relId, i), g.end("mc:Choice"), g.start("mc:Fallback"), Ks(g, c(), "This chart isn't available in your version of Excel.\n\nEditing this shape or saving this workbook into a different file format will permanently break the chart."), g.end("mc:Fallback"), g.end("mc:AlternateContent");
3783
+ }, Ls = (e, t, n, r, i, a, o) => {
3776
3784
  let s = e.getXMLWriter(), c = o ?? {
3777
3785
  x: 0,
3778
3786
  y: 0,
3779
3787
  width: 0,
3780
3788
  height: 0
3781
3789
  }, l = i === "chartEx" ? "cx" : "c", u = qt[i].graphicUri;
3782
- s.start("graphicFrame", { macro: "" }), s.start("nvGraphicFramePr"), Ys(e, s, n, r, t), r.lockAspect ? (s.start("cNvGraphicFramePr"), s.empty("a:graphicFrameLocks", { noChangeAspect: "1" }), s.end("cNvGraphicFramePr")) : s.empty("cNvGraphicFramePr"), s.end("nvGraphicFramePr"), s.start("xfrm"), s.empty("a:off", {
3790
+ s.start("graphicFrame", { macro: "" }), s.start("nvGraphicFramePr"), Zs(e, s, n, r, t), r.lockAspect ? (s.start("cNvGraphicFramePr"), s.empty("a:graphicFrameLocks", { noChangeAspect: "1" }), s.end("cNvGraphicFramePr")) : s.empty("cNvGraphicFramePr"), s.end("nvGraphicFramePr"), s.start("xfrm"), s.empty("a:off", {
3783
3791
  x: X(c.x),
3784
3792
  y: X(c.y)
3785
3793
  }), s.empty("a:ext", {
@@ -3790,30 +3798,30 @@ var us = [
3790
3798
  "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
3791
3799
  "r:id": a
3792
3800
  }), s.end("a:graphicData"), s.end("a:graphic"), s.end("graphicFrame");
3793
- }, Is = async (e, t, n, r, i) => {
3801
+ }, Rs = async (e, t, n, r, i) => {
3794
3802
  let a = e.getXMLWriter(), o = r.content?.json, s = t.getStyles();
3795
- a.start("grpSp"), a.start("nvGrpSpPr"), Ys(e, a, n, r, t);
3796
- let c = Zs(r);
3797
- c ? (a.start("cNvGrpSpPr"), a.empty("a:grpSpLocks", c), a.end("cNvGrpSpPr")) : a.empty("cNvGrpSpPr"), a.end("nvGrpSpPr"), a.start("grpSpPr"), a.pushDefaultNamespace("a"), ec(a, i, r, o?.childBounds ?? i), Qr(e, s, o), o?.scene3d && a.raw(o.scene3d), o?.extLst?.properties && a.raw(o.extLst.properties), a.popDefaultNamespace(), a.end("grpSpPr");
3798
- for (let n of ks(r)) await Ls(e, t, n, As(n));
3803
+ a.start("grpSp"), a.start("nvGrpSpPr"), Zs(e, a, n, r, t);
3804
+ let c = $s(r);
3805
+ c ? (a.start("cNvGrpSpPr"), a.empty("a:grpSpLocks", c), a.end("cNvGrpSpPr")) : a.empty("cNvGrpSpPr"), a.end("nvGrpSpPr"), a.start("grpSpPr"), a.pushDefaultNamespace("a"), nc(a, i, r, o?.childBounds ?? i), Qr(e, s, o), o?.scene3d && a.raw(o.scene3d), o?.extLst?.properties && a.raw(o.extLst.properties), a.popDefaultNamespace(), a.end("grpSpPr");
3806
+ for (let n of js(r)) await zs(e, t, n, Ms(n));
3799
3807
  a.end("grpSp");
3800
- }, Ls = async (e, t, n, r) => {
3808
+ }, zs = async (e, t, n, r) => {
3801
3809
  switch (n.content?.type) {
3802
3810
  case "picture": {
3803
3811
  let i = oi(e, n.content.json?.resId);
3804
- return i ? Ms(e, t, null, n, r, i) : void e.warn(`The picture '${n.content.name ?? ""}' in a group names no image in the workbook; the group is saved without it.`, void 0, "xlsx.drawing.group.picture");
3812
+ return i ? Ps(e, t, null, n, r, i) : void e.warn(`The picture '${n.content.name ?? ""}' in a group names no image in the workbook; the group is saved without it.`, void 0, "xlsx.drawing.group.picture");
3805
3813
  }
3806
- case "chart": return Ps(e, t, null, n, r);
3807
- case "shape": return Rs(e, t, null, n, r);
3808
- case "group": return Is(e, t, null, n, r);
3809
- default: return Ge(n.content?.type) ? void nc(e.getXMLWriter(), n, r) : Ks(e, t, n, r);
3814
+ case "chart": return Is(e, t, null, n, r);
3815
+ case "shape": return Bs(e, t, null, n, r);
3816
+ case "group": return Rs(e, t, null, n, r);
3817
+ default: return Ge(n.content?.type) ? void ic(e.getXMLWriter(), n, r) : Js(e, t, n, r);
3810
3818
  }
3811
- }, Rs = async (e, t, n, r, i) => {
3819
+ }, Bs = async (e, t, n, r, i) => {
3812
3820
  let a = e.getXMLWriter(), o = {}, s = r.content?.json, c = s?.type ?? sn.Type.Shape, l = t.getStyles();
3813
- c === sn.Type.Connector ? (s?.macro !== void 0 && (o.macro = s.macro), s?.published !== void 0 && (o.fPublished = s.published ? "1" : "0"), a.start("cxnSp", o), a.start("nvCxnSpPr"), Ys(e, a, n, r, t), Qs(e, a, n, r, t), a.end("nvCxnSpPr"), qs(e, t, n, r, i), Js(e, t, n, r), ss(e, l, s?.text), a.end("cxnSp")) : (s?.macro !== void 0 && (o.macro = s.macro), s?.textLink !== void 0 && (o.textlink = s.textLink), s?.locksText !== void 0 && (o.fLocksText = s.locksText ? "1" : "0"), s?.published !== void 0 && (o.fPublished = s.published ? "1" : "0"), a.start("sp", o), a.start("nvSpPr"), Ys(e, a, n, r, t), Qs(e, a, n, r, t), a.end("nvSpPr"), qs(e, t, n, r, i), Js(e, t, n, r), ss(e, l, s?.text), a.end("sp"));
3814
- }, zs = async (e, t, n, r) => Ks(e, t, r, n.getBounds()), Bs = "http://schemas.openxmlformats.org/markup-compatibility/2006", Vs = "http://schemas.microsoft.com/office/drawing/2010/slicer", Hs = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Us = async (e, t, n, r) => {
3821
+ c === sn.Type.Connector ? (s?.macro !== void 0 && (o.macro = s.macro), s?.published !== void 0 && (o.fPublished = s.published ? "1" : "0"), a.start("cxnSp", o), a.start("nvCxnSpPr"), Zs(e, a, n, r, t), ec(e, a, n, r, t), a.end("nvCxnSpPr"), Ys(e, t, n, r, i), Xs(e, t, n, r), ls(e, l, s?.text), a.end("cxnSp")) : (s?.macro !== void 0 && (o.macro = s.macro), s?.textLink !== void 0 && (o.textlink = s.textLink), s?.locksText !== void 0 && (o.fLocksText = s.locksText ? "1" : "0"), s?.published !== void 0 && (o.fPublished = s.published ? "1" : "0"), a.start("sp", o), a.start("nvSpPr"), Zs(e, a, n, r, t), ec(e, a, n, r, t), a.end("nvSpPr"), Ys(e, t, n, r, i), Xs(e, t, n, r), ls(e, l, s?.text), a.end("sp"));
3822
+ }, Vs = async (e, t, n, r) => Js(e, t, r, n.getBounds()), Hs = "http://schemas.openxmlformats.org/markup-compatibility/2006", Us = "http://schemas.microsoft.com/office/drawing/2010/slicer", Ws = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Gs = async (e, t, n, r) => {
3815
3823
  let i = e.getXMLWriter(), a = r.content?.name ?? "", o = ja(n.getContent()), s = o?.timeline !== void 0, c = s ? {
3816
- "xmlns:tsle": Hs,
3824
+ "xmlns:tsle": Ws,
3817
3825
  Requires: "tsle"
3818
3826
  } : o ? {
3819
3827
  "xmlns:a14": "http://schemas.microsoft.com/office/drawing/2010/main",
@@ -3822,20 +3830,20 @@ var us = [
3822
3830
  "xmlns:sle15": "http://schemas.microsoft.com/office/drawing/2012/slicer",
3823
3831
  Requires: "sle15"
3824
3832
  }, l = s ? "Timeline: Works in Excel 2013 or higher. Do not move or resize." : o ? "This shape represents a slicer. Slicers are supported in Excel 2010 or later.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2003 or earlier, the slicer cannot be used." : "This shape represents a table slicer. Table slicers are not supported in this version of Excel.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2007 or earlier, the slicer can't be used.";
3825
- i.start("mc:AlternateContent", { "xmlns:mc": Bs }), i.start("mc:Choice", c), i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"), Ys(e, i, n, r, t), i.empty("cNvGraphicFramePr"), i.end("nvGraphicFramePr"), i.start("xfrm"), i.empty("a:off", {
3833
+ i.start("mc:AlternateContent", { "xmlns:mc": Hs }), i.start("mc:Choice", c), i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"), Zs(e, i, n, r, t), i.empty("cNvGraphicFramePr"), i.end("nvGraphicFramePr"), i.start("xfrm"), i.empty("a:off", {
3826
3834
  x: "0",
3827
3835
  y: "0"
3828
3836
  }), i.empty("a:ext", {
3829
3837
  cx: "0",
3830
3838
  cy: "0"
3831
- }), i.end("xfrm"), i.start("a:graphic"), s ? (i.start("a:graphicData", { uri: Hs }), i.empty("tsle:timeslicer", {
3832
- "xmlns:tsle": Hs,
3839
+ }), i.end("xfrm"), i.start("a:graphic"), s ? (i.start("a:graphicData", { uri: Ws }), i.empty("tsle:timeslicer", {
3840
+ "xmlns:tsle": Ws,
3833
3841
  name: a
3834
- }), i.end("a:graphicData")) : (i.start("a:graphicData", { uri: Vs }), i.empty("sle:slicer", {
3835
- "xmlns:sle": Vs,
3842
+ }), i.end("a:graphicData")) : (i.start("a:graphicData", { uri: Us }), i.empty("sle:slicer", {
3843
+ "xmlns:sle": Us,
3836
3844
  name: a
3837
- }), i.end("a:graphicData")), i.end("a:graphic"), i.end("graphicFrame"), i.end("mc:Choice"), i.start("mc:Fallback"), Ws(i, n.getBounds(), l), i.end("mc:Fallback"), i.end("mc:AlternateContent");
3838
- }, Ws = (e, t, n) => {
3845
+ }), i.end("a:graphicData")), i.end("a:graphic"), i.end("graphicFrame"), i.end("mc:Choice"), i.start("mc:Fallback"), Ks(i, n.getBounds(), l), i.end("mc:Fallback"), i.end("mc:AlternateContent");
3846
+ }, Ks = (e, t, n) => {
3839
3847
  e.start("sp", {
3840
3848
  macro: "",
3841
3849
  textlink: ""
@@ -3855,8 +3863,8 @@ var us = [
3855
3863
  lang: "en-US",
3856
3864
  sz: "1100"
3857
3865
  }), e.start("a:t"), e.text(n), e.end("a:t"), e.end("a:r"), e.end("a:p"), e.end("txBody"), e.end("sp");
3858
- }, Gs = async (e, t, n, r) => Ks(e, t, r, n.getBounds()), Ks = async (e, t, n, r) => {
3859
- Rs(e, t, null, {
3866
+ }, qs = async (e, t, n, r) => Js(e, t, r, n.getBounds()), Js = async (e, t, n, r) => {
3867
+ Bs(e, t, null, {
3860
3868
  ...n,
3861
3869
  content: {
3862
3870
  type: "shape",
@@ -3875,19 +3883,19 @@ var us = [
3875
3883
  }
3876
3884
  }
3877
3885
  }, r);
3878
- }, qs = (e, t, n, r, i) => {
3886
+ }, Ys = (e, t, n, r, i) => {
3879
3887
  let a = e.getXMLWriter(), o = r.content?.json, s = o?.geometry, c = t.getStyles();
3880
- if (a.start("spPr"), a.pushDefaultNamespace("a"), ec(a, i, r), typeof s == "object" && s) ((e, t) => {
3888
+ if (a.start("spPr"), a.pushDefaultNamespace("a"), nc(a, i, r), typeof s == "object" && s) ((e, t) => {
3881
3889
  e.start("custGeom"), e.start("avLst");
3882
- for (let n of t.av ?? []) xs(e, n);
3890
+ for (let n of t.av ?? []) Cs(e, n);
3883
3891
  e.end("avLst"), e.start("gdLst");
3884
- for (let n of t.gd ?? []) xs(e, n);
3892
+ for (let n of t.gd ?? []) Cs(e, n);
3885
3893
  e.end("gdLst"), e.start("ahLst");
3886
- for (let n of t.ah ?? []) Cs(e, n);
3894
+ for (let n of t.ah ?? []) Ts(e, n);
3887
3895
  e.end("ahLst"), e.start("cxnLst");
3888
3896
  for (let n of Array.isArray(t.cxn) ? t.cxn : []) {
3889
3897
  let t = n.split(" ");
3890
- e.start("cxn", { ang: t[0] }), Ss(e, t[1], t[2]), e.end("cxn");
3898
+ e.start("cxn", { ang: t[0] }), ws(e, t[1], t[2]), e.end("cxn");
3891
3899
  }
3892
3900
  if (e.end("cxnLst"), t.rect) {
3893
3901
  let n = t.rect.split(" ");
@@ -3899,7 +3907,7 @@ var us = [
3899
3907
  });
3900
3908
  }
3901
3909
  e.start("pathLst");
3902
- for (let n of t.paths) Ts(e, n);
3910
+ for (let n of t.paths) Ds(e, n);
3903
3911
  e.end("pathLst"), e.end("custGeom");
3904
3912
  })(a, s);
3905
3913
  else {
@@ -3917,15 +3925,15 @@ var us = [
3917
3925
  a.end("prstGeom");
3918
3926
  }
3919
3927
  Qr(e, c, o), o?.scene3d && a.raw(o.scene3d), o?.shape3d && a.raw(o.shape3d), o?.extLst?.properties && a.raw(o.extLst.properties), a.popDefaultNamespace(), a.end("spPr");
3920
- }, Js = (e, t, n, r) => {
3928
+ }, Xs = (e, t, n, r) => {
3921
3929
  let i = e.getXMLWriter(), a = r.content?.json?.style;
3922
3930
  if (a === null) return;
3923
3931
  let o = t.getStyles().getTheme(), s = bn.defaultStyleRefs(r.content?.json), c = (e, t) => {
3924
3932
  t && (i.start(e, { idx: String(t.index) }), t.color && J(i, o, t.color), i.end(e));
3925
3933
  };
3926
3934
  i.start("style"), i.pushDefaultNamespace("a"), c("lnRef", a?.stroke ?? s.stroke), c("fillRef", a?.fill ?? s.fill), c("effectRef", a?.effect ?? s.effect), c("fontRef", a?.font ?? s.font), i.popDefaultNamespace(), i.end("style");
3927
- }, Ys = (e, t, n, r, i) => {
3928
- let a = Xs(e, i).assigned.get(r);
3935
+ }, Zs = (e, t, n, r, i) => {
3936
+ let a = Qs(e, i).assigned.get(r);
3929
3937
  if (a === void 0) {
3930
3938
  let t = e.getSharedStates(), n = t.get("uniqueIdCounter");
3931
3939
  n || (n = /* @__PURE__ */ new Map(), t.set("uniqueIdCounter", n)), a = (n.get(i) ?? 1) + 1, n.set(i, a);
@@ -3935,7 +3943,7 @@ var us = [
3935
3943
  name: r.content?.name
3936
3944
  };
3937
3945
  r.content?.description && (s.descr = r.content.description), r.hidden && (s.hidden = "1"), o?.title && (s.title = o.title), t.start("cNvPr", s), Jr(e, t, "a:hlinkClick", o?.hyperlink), Jr(e, t, "a:hlinkHover", o?.hoverHyperlink), o?.extLst?.nonVisual && t.raw(o.extLst.nonVisual), t.end("cNvPr");
3938
- }, Xs = (e, t) => {
3946
+ }, Qs = (e, t) => {
3939
3947
  let n = e.getSharedStates(), r = n.get("drawingIds");
3940
3948
  r || (r = /* @__PURE__ */ new Map(), n.set("drawingIds", r));
3941
3949
  let i = r.get(t);
@@ -3943,18 +3951,18 @@ var us = [
3943
3951
  assigned: /* @__PURE__ */ new Map(),
3944
3952
  bySource: /* @__PURE__ */ new Map()
3945
3953
  }, r.set(t, i)), i;
3946
- }, Zs = (e) => {
3954
+ }, $s = (e) => {
3947
3955
  let t = { ...e.content?.json?.locks };
3948
3956
  e.lockAspect !== void 0 && t.noChangeAspect === void 0 && (t.noChangeAspect = e.lockAspect);
3949
3957
  let n = {};
3950
3958
  for (let e of Object.keys(t)) t[e] && (n[e] = "1");
3951
3959
  return Object.keys(n).length > 0 ? n : null;
3952
- }, Qs = (e, t, n, r, i) => {
3953
- let a = r.content?.json, o = Zs(r);
3960
+ }, ec = (e, t, n, r, i) => {
3961
+ let a = r.content?.json, o = $s(r);
3954
3962
  if (a?.type === sn.Type.Connector) {
3955
3963
  let n = a.connectorEnds;
3956
3964
  if (!o && !n) return void t.empty("cNvCxnSpPr");
3957
- let r = Xs(e, i);
3965
+ let r = Qs(e, i);
3958
3966
  t.start("cNvCxnSpPr"), o && t.empty("a:cxnSpLocks", o), n?.start && t.empty("a:stCxn", {
3959
3967
  id: String(r.bySource.get(n.start.id) ?? n.start.id),
3960
3968
  idx: String(n.start.index)
@@ -3966,13 +3974,13 @@ var us = [
3966
3974
  }
3967
3975
  let s = { txBox: a?.textBox ? "1" : void 0 };
3968
3976
  o ? (t.start("cNvSpPr", s), t.empty("a:spLocks", o), t.end("cNvSpPr")) : t.empty("cNvSpPr", s);
3969
- }, $s = (e) => {
3977
+ }, tc = (e) => {
3970
3978
  let t = { ...e.content?.json?.locks };
3971
3979
  e.lockAspect === void 0 ? t.noChangeAspect ??= !0 : t.noChangeAspect = e.lockAspect;
3972
3980
  let n = {};
3973
3981
  for (let e of Object.keys(t)) t[e] && (n[e] = "1");
3974
3982
  return n;
3975
- }, ec = (e, t, n, r) => {
3983
+ }, nc = (e, t, n, r) => {
3976
3984
  let i = {}, a = n.rotation;
3977
3985
  a !== void 0 && a !== 0 && (i.rot = "" + mi(a)), n.flipH && (i.flipH = "1"), n.flipV && (i.flipV = "1"), e.start("xfrm", i), e.empty("off", {
3978
3986
  x: X(t.x),
@@ -3987,13 +3995,13 @@ var us = [
3987
3995
  cx: X(r.width),
3988
3996
  cy: X(r.height)
3989
3997
  })), e.end("xfrm");
3990
- }, tc = (e, t, n) => {
3998
+ }, rc = (e, t, n) => {
3991
3999
  e.start(t), e.start("col"), e.text(n.c ?? 0), e.end("col"), e.start("colOff"), e.text(X(n.x)), e.end("colOff"), e.start("row"), e.text(n.r ?? 0), e.end("row"), e.start("rowOff"), e.text(X(n.y)), e.end("rowOff"), e.end(t);
3992
- }, nc = (e, t, n) => {
4000
+ }, ic = (e, t, n) => {
3993
4001
  let r = t.content.json;
3994
4002
  if (e.start("mc:AlternateContent", Et), e.start("mc:Choice", Le), n) return e.raw(Ye(t.content.type, r, t.content?.name, n)), e.end("mc:Choice"), e.empty("mc:Fallback"), void e.end("mc:AlternateContent");
3995
- e.start("twoCellAnchor", { editAs: t.anchorType || "twoCell" }), tc(e, "from", t.anchor.tl), tc(e, "to", t.anchor.br), e.raw(Ye(t.content.type, r, t.content?.name)), e.empty("clientData", { fPrintsWithSheet: "0" }), e.end("twoCellAnchor"), e.end("mc:Choice"), e.empty("mc:Fallback"), e.end("mc:AlternateContent");
3996
- }, rc = async (e, t, n) => {
4003
+ e.start("twoCellAnchor", { editAs: t.anchorType || "twoCell" }), rc(e, "from", t.anchor.tl), rc(e, "to", t.anchor.br), e.raw(Ye(t.content.type, r, t.content?.name)), e.empty("clientData", { fPrintsWithSheet: "0" }), e.end("twoCellAnchor"), e.end("mc:Choice"), e.empty("mc:Fallback"), e.end("mc:AlternateContent");
4004
+ }, ac = async (e, t, n) => {
3997
4005
  let r = await n.getExternalURI();
3998
4006
  if (r) return void e.addExternal(ni, r);
3999
4007
  let i = e.getSharedStates(), a = i.get(ri);
@@ -4010,16 +4018,16 @@ var us = [
4010
4018
  let s = e.addBinary(o.bytes, o.type.mime, ni, `../media/image${o.index}.${o.type.ext}`, !0, t);
4011
4019
  s.relId !== t && e.log(`Legacy drawing image '${t}' was written as '${s.relId}'; the markup will not find it.`);
4012
4020
  };
4013
- function ic(e) {
4021
+ function oc(e) {
4014
4022
  return e.toISOString().substring(0, 22);
4015
4023
  }
4016
- function ac(e, t, n, r, i, a, o, s, c) {
4024
+ function sc(e, t, n, r, i, a, o, s, c) {
4017
4025
  let l = {
4018
4026
  ref: t,
4019
- dT: ic(i ?? /* @__PURE__ */ new Date()),
4020
- personId: r ? oc(r) : void 0,
4021
- id: oc(n),
4022
- parentId: o ? oc(o) : void 0,
4027
+ dT: oc(i ?? /* @__PURE__ */ new Date()),
4028
+ personId: r ? cc(r) : void 0,
4029
+ id: cc(n),
4030
+ parentId: o ? cc(o) : void 0,
4023
4031
  done: s ? "1" : void 0
4024
4032
  };
4025
4033
  if (e.start("threadedComment", l), e.start("text", h.test(a) || /[\n\r]/.test(a) ? se : void 0), e.text(a), e.end("text"), c && c.length > 0) {
@@ -4027,8 +4035,8 @@ function ac(e, t, n, r, i, a, o, s, c) {
4027
4035
  for (let t = 0; t < c.length; t++) {
4028
4036
  let n = c[t];
4029
4037
  e.empty("mention", {
4030
- mentionpersonId: oc(n.personId),
4031
- mentionId: oc(n.id),
4038
+ mentionpersonId: cc(n.personId),
4039
+ mentionId: cc(n.id),
4032
4040
  startIndex: n.startIndex ?? 0,
4033
4041
  length: n.length ?? 0
4034
4042
  });
@@ -4037,17 +4045,17 @@ function ac(e, t, n, r, i, a, o, s, c) {
4037
4045
  }
4038
4046
  e.end("threadedComment");
4039
4047
  }
4040
- function oc(e) {
4048
+ function cc(e) {
4041
4049
  return `{${e.replace(/^\{|\}$/g, "").toUpperCase()}}`;
4042
4050
  }
4043
- var sc = {
4051
+ var lc = {
4044
4052
  rowIndex: 0,
4045
4053
  colIndex: 0
4046
4054
  };
4047
- function cc(e, t, n, r) {
4055
+ function uc(e, t, n, r) {
4048
4056
  if (r == null) return;
4049
- sc.rowIndex = t, sc.colIndex = n;
4050
- let i = I.cellToString(sc), a, o;
4057
+ lc.rowIndex = t, lc.colIndex = n;
4058
+ let i = I.cellToString(lc), a, o;
4051
4059
  switch (typeof r) {
4052
4060
  case "number":
4053
4061
  o = "" + r;
@@ -4069,7 +4077,7 @@ function cc(e, t, n, r) {
4069
4077
  t: a
4070
4078
  } : { r: i }), e.start("v"), e.text(o), e.end("v"), e.end("cell");
4071
4079
  }
4072
- var lc = [
4080
+ var dc = [
4073
4081
  new class extends q {
4074
4082
  constructor() {
4075
4083
  super({
@@ -4471,7 +4479,7 @@ var lc = [
4471
4479
  }
4472
4480
  async emit(e, t) {
4473
4481
  let n = t.getXMLWriter(), r = e.model, i = e.json, o = Lt(r, i);
4474
- Vo(i, o), n.decl(), n.start("worksheet", {
4482
+ Uo(i, o), n.decl(), n.start("worksheet", {
4475
4483
  xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
4476
4484
  "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
4477
4485
  "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
@@ -4669,7 +4677,7 @@ var lc = [
4669
4677
  let e = n.buttons?.length ? dt(n) : null;
4670
4678
  if (e) for (let r of n.buttons) {
4671
4679
  let n = I.fastStringToRange(r);
4672
- for (let r = n.rowStart; r <= n.rowEnd; r++) for (let i = n.colStart; i <= n.colEnd; i++) (t ??= /* @__PURE__ */ new Set()).add((e.rowStart + r) * Bo + e.colStart + i);
4680
+ for (let r = n.rowStart; r <= n.rowEnd; r++) for (let i = n.colStart; i <= n.colEnd; i++) (t ??= /* @__PURE__ */ new Set()).add((e.rowStart + r) * Ho + e.colStart + i);
4673
4681
  }
4674
4682
  }
4675
4683
  return t;
@@ -4700,7 +4708,7 @@ var lc = [
4700
4708
  })(x, b, C, n.getEntireRange().getRowEnd() + 1) : x, T = w ? w.length : 0, E = go(w), D = E === null ? w?.[T - 1]?.max ?? -1 : E - 1, ee = r.cols ? I.refsToRuns(r.cols, !0) : null, O = ee ? ee.length : 0, ne = ee?.[O - 1]?.max ?? -1;
4701
4709
  if (v || T > 0) {
4702
4710
  let c = .75, v = r.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * c, b = n.getStyles().getNormal().getBestFit().height * c, x = ho(n.getOutline(), on.Axis.Row), C = (e, t) => {
4703
- let n = Go;
4711
+ let n = qo;
4704
4712
  if (n.r = "" + (e + 1), n.s = void 0, n.customFormat = void 0, n.hidden = void 0, n.ht = void 0, n.customHeight = void 0, n.outlineLevel = void 0, n.collapsed = void 0, n.thickTop = void 0, n.thickBot = void 0, !t) return n;
4705
4713
  let r = t.value;
4706
4714
  r.s !== void 0 && (n.s = "" + (o ? o.getXf(r.s, !0, !1) : r.s), n.customFormat = "1"), r.h && (n.hidden = "1");
@@ -4880,9 +4888,9 @@ var lc = [
4880
4888
  N > 0 && (b = r.getInjectedReference(2) ?? !1);
4881
4889
  let x = null;
4882
4890
  _e > 0 && (x = r.getInjectedReference(3) ?? null);
4883
- let S = x?.kind === "error", C = x?.kind === "fixed", w = Wo;
4891
+ let S = x?.kind === "error", C = x?.kind === "fixed", w = Ko;
4884
4892
  w.r = r.getAddress(), w.s = void 0, w.t = void 0, w.cm = void 0, w.vm = void 0;
4885
- let T = p !== null && p.has(a * Bo + s), E = m === null ? null : function(e, t, n) {
4893
+ let T = p !== null && p.has(a * Ho + s), E = m === null ? null : function(e, t, n) {
4886
4894
  for (let { table: r, coords: i, formats: a } of e) {
4887
4895
  if (t < i.rowStart || t > i.rowEnd || n < i.colStart || n > i.colEnd) continue;
4888
4896
  let e = r.getStyleAt(t, n), o = e.getAlignment(), s = o.getHorizontal() === "left" ? o.getIndent() : null, c = e.getNumberFormat(), l = c && c !== "General" ? c : null, u = a?.formatAt(t - i.rowStart, n - i.colStart).user ?? null;
@@ -4954,10 +4962,10 @@ var lc = [
4954
4962
  }));
4955
4963
  let r, i = null, o = y.sharedId;
4956
4964
  if (o) {
4957
- r = qo;
4965
+ r = Yo;
4958
4966
  let e = y.coords;
4959
4967
  e.colStart === s && e.rowStart === a ? (r.ref = y.ref, r.si = o, i = y.formula) : (r.ref = void 0, r.si = o);
4960
- } else M ? (r = Jo, r.aca = S ? "1" : void 0, r.ref = S ? w.r : x?.ref ?? w.r, i = n) : (r = Ko, i = n);
4968
+ } else M ? (r = Xo, r.aca = S ? "1" : void 0, r.ref = S ? w.r : x?.ref ?? w.r, i = n) : (r = Jo, i = n);
4961
4969
  r.ca = b || S || y.isExcelVolatile ? "1" : void 0, i ? (t.start("f", r), t.text(i), t.end("f")) : t.empty("f", r);
4962
4970
  } else D && t.empty("f", b ? {
4963
4971
  ...D,
@@ -5022,7 +5030,7 @@ var lc = [
5022
5030
  for (let t = 0; t < a; t++) {
5023
5031
  let n = i[t], r, a;
5024
5032
  Array.isArray(n) ? (r = n[0], a = n[1]) : (r = n.r, a = n.v);
5025
- let s = Oo(r);
5033
+ let s = Ao(r);
5026
5034
  if (!s || !a) {
5027
5035
  e.log("Skipping protectedRange with no range.");
5028
5036
  continue;
@@ -5065,26 +5073,26 @@ var lc = [
5065
5073
  for (let n = 0; n < s; n++) {
5066
5074
  let r = o[n], i, s;
5067
5075
  Array.isArray(r) ? (i = r[0], s = r[1]) : (i = r.r, s = r.v);
5068
- let c = Oo(i);
5076
+ let c = Ao(i);
5069
5077
  if (!c || !s) {
5070
5078
  e.log("Skipping conditionalFormatting with no range.");
5071
5079
  continue;
5072
5080
  }
5073
- let m = jo(c), g = No(s.scale, m, d);
5081
+ let m = No(c), g = Fo(s.scale, m, d);
5074
5082
  g !== s.scale && (s = {
5075
5083
  ...s,
5076
5084
  scale: g
5077
5085
  });
5078
- let _ = g ? { type: g.type } : wt(s.condition, Do(c), (t, n) => e.warn(t, void 0, n));
5079
- _ ? (_.formulas &&= _.formulas.map((e) => Mo(e, m, d)), g?.type === W.ScaleType.IconSet && To(g) ? (p++, h(s), a.push({
5086
+ let _ = g ? { type: g.type } : wt(s.condition, ko(c), (t, n) => e.warn(t, void 0, n));
5087
+ _ ? (_.formulas &&= _.formulas.map((e) => Po(e, m, d)), g?.type === W.ScaleType.IconSet && To(g) ? (p++, h(s), a.push({
5080
5088
  guid: M(R.uuidV4),
5081
5089
  sqref: c,
5082
5090
  priority: p,
5083
5091
  scale: g
5084
- })) : g || !Ao(_) ? (c !== f && (f !== null && t.end("conditionalFormatting"), t.start("conditionalFormatting", {
5092
+ })) : g || !Mo(_) ? (c !== f && (f !== null && t.end("conditionalFormatting"), t.start("conditionalFormatting", {
5085
5093
  sqref: c,
5086
5094
  pivot: typeof s.pivotKey == "number" ? "1" : void 0
5087
- }), f = c), p++, h(s), Eo(e, t, u, s, _, c, p, l, a)) : (p++, h(s), a.push({
5095
+ }), f = c), p++, h(s), Oo(e, t, u, s, _, c, p, l, a)) : (p++, h(s), a.push({
5088
5096
  guid: M(R.uuidV4),
5089
5097
  sqref: c,
5090
5098
  priority: p,
@@ -5101,13 +5109,13 @@ var lc = [
5101
5109
  for (let t = 0; t < s; t++) {
5102
5110
  let n = o[t], r, s;
5103
5111
  Array.isArray(n) ? (r = n[0], s = n[1]) : (r = n.r, s = n.v);
5104
- let l = Oo(r);
5112
+ let l = Ao(r);
5105
5113
  if (!l || !s) {
5106
5114
  e.log("Skipping dataValidation with no range.");
5107
5115
  continue;
5108
5116
  }
5109
5117
  s.ext && e.warn("DataValidation extension payload is not written to xlsx; it will be lost.");
5110
- let u = (t, n) => e.warn(t, void 0, n), d = Me(s.condition, u), { type: f, operator: p } = d ?? {}, m = jo(l), h = Mo(d?.formula1, m, a), g = Mo(d?.formula2, m, a), _ = {
5118
+ let u = (t, n) => e.warn(t, void 0, n), d = Me(s.condition, u), { type: f, operator: p } = d ?? {}, m = No(l), h = Po(d?.formula1, m, a), g = Po(d?.formula2, m, a), _ = {
5111
5119
  type: f,
5112
5120
  operator: p,
5113
5121
  allowBlank: Z(s.condition?.includeBlanks ?? !1),
@@ -5121,7 +5129,7 @@ var lc = [
5121
5129
  prompt: bt(s.prompt, "prompt", u),
5122
5130
  imeMode: s.imeMode
5123
5131
  };
5124
- ko(h) || ko(g) ? i.push({
5132
+ jo(h) || jo(g) ? i.push({
5125
5133
  attrs: _,
5126
5134
  formula1: h,
5127
5135
  formula2: g,
@@ -5134,7 +5142,7 @@ var lc = [
5134
5142
  }
5135
5143
  if (c.length === 0) return i;
5136
5144
  t.start("dataValidations", {
5137
- ...Po(n),
5145
+ ...Io(n),
5138
5146
  count: c.length
5139
5147
  });
5140
5148
  for (let e = 0; e < c.length; e++) {
@@ -5179,7 +5187,7 @@ var lc = [
5179
5187
  if (l) {
5180
5188
  let t = await Fr({
5181
5189
  ...l,
5182
- contentType: l.contentType || Fo
5190
+ contentType: l.contentType || Lo
5183
5191
  }, e, "../printerSettings/printerSettings{n}.bin");
5184
5192
  t?.relId && (a["r:id"] = t.relId);
5185
5193
  }
@@ -5199,14 +5207,14 @@ var lc = [
5199
5207
  t.end("headerFooter");
5200
5208
  }
5201
5209
  }
5202
- Io(t, "rowBreaks", n.rowBreaks), Io(t, "colBreaks", n.columnBreaks);
5210
+ Ro(t, "rowBreaks", n.rowBreaks), Ro(t, "colBreaks", n.columnBreaks);
5203
5211
  }(t, n, i.pageLayout), function(e, t) {
5204
5212
  if (!t?.length) return;
5205
5213
  let n = /* @__PURE__ */ new Map();
5206
5214
  for (let e of t) {
5207
5215
  let t = Array.isArray(e) ? e[0] : e.r, r = Array.isArray(e) ? e[1] : e.v, i = v.filter((e) => r?.includes(e));
5208
5216
  if (i.length === 0) continue;
5209
- let a = typeof t == "string" ? t : Oo(t);
5217
+ let a = typeof t == "string" ? t : Ao(t);
5210
5218
  if (!a) continue;
5211
5219
  let o = i.join(","), s = n.get(o);
5212
5220
  s || (s = {
@@ -5261,7 +5269,7 @@ var lc = [
5261
5269
  comments: n
5262
5270
  });
5263
5271
  }(r);
5264
- Lo(t, n, "legacyDrawing", zo(Ho(r, i.legacyDrawing ?? null, o), g)), Lo(t, n, "legacyDrawingHF", i.legacyDrawingHF ?? null), await async function(e, t, n) {
5272
+ zo(t, n, "legacyDrawing", Vo(Wo(r, i.legacyDrawing ?? null, o), g)), zo(t, n, "legacyDrawingHF", i.legacyDrawingHF ?? null), await async function(e, t, n) {
5265
5273
  let r = n.getPicture();
5266
5274
  if (!r) return;
5267
5275
  let i = r.getResource(), a = await i.getExternalURI(), o;
@@ -5321,7 +5329,7 @@ var lc = [
5321
5329
  t.start("controlPr", ct(i)), t.start("anchor", {
5322
5330
  moveWithCells: s === "absolute" ? void 0 : "1",
5323
5331
  sizeWithCells: s === "twoCell" ? "1" : void 0
5324
- }), Uo(t, "from", n.anchor.tl), Uo(t, "to", n.anchor.br), t.end("anchor"), i.xml && t.raw(i.xml), t.end("controlPr"), t.end("control"), t.end("mc:Choice"), t.end("mc:AlternateContent");
5332
+ }), Go(t, "from", n.anchor.tl), Go(t, "to", n.anchor.br), t.end("anchor"), i.xml && t.raw(i.xml), t.end("controlPr"), t.end("control"), t.end("mc:Choice"), t.end("mc:AlternateContent");
5325
5333
  }
5326
5334
  t.end("controls"), t.end("mc:Choice"), t.end("mc:AlternateContent");
5327
5335
  }(t, n, o), function(e, t, n, r) {
@@ -5359,17 +5367,15 @@ var lc = [
5359
5367
  }), t.start("x14:dataBar", {
5360
5368
  minLength: s.minLength ?? 0,
5361
5369
  maxLength: s.maxLength ?? 100,
5362
- gradient: s.gradient ? void 0 : "0",
5370
+ gradient: s.solidFill ? "0" : void 0,
5363
5371
  border: s.borderColor ? "1" : void 0,
5364
5372
  direction: s.direction,
5365
5373
  negativeBarColorSameAsPositive: s.negativeFillColor ? "0" : "1",
5366
5374
  negativeBarBorderColorSameAsPositive: s.negativeBorderColor ? "0" : void 0,
5367
5375
  axisPosition: s.axisPosition
5368
5376
  });
5369
- let e = s.stops ?? [];
5370
- if (e.length === 0) Co(t, { type: W.ColorStopType.AutoMin }), Co(t, { type: W.ColorStopType.AutoMax });
5371
- else for (let n = 0; n < e.length; n++) Co(t, e[n]);
5372
- s.borderColor && Y(t, l, s.borderColor, "x14:borderColor"), s.negativeFillColor && Y(t, l, s.negativeFillColor, "x14:negativeFillColor"), s.negativeBorderColor && Y(t, l, s.negativeBorderColor, "x14:negativeBorderColor"), s.axisColor && Y(t, l, s.axisColor, "x14:axisColor"), t.end("x14:dataBar"), t.end("x14:cfRule");
5377
+ let [e, n] = Eo(s);
5378
+ Co(t, e), Co(t, n), s.borderColor && Y(t, l, s.borderColor, "x14:borderColor"), s.negativeFillColor && Y(t, l, s.negativeFillColor, "x14:negativeFillColor"), s.negativeBorderColor && Y(t, l, s.negativeBorderColor, "x14:negativeBorderColor"), s.axisColor && Y(t, l, s.axisColor, "x14:axisColor"), t.end("x14:dataBar"), t.end("x14:cfRule");
5373
5379
  } else {
5374
5380
  t.start("x14:cfRule", {
5375
5381
  type: "iconSet",
@@ -5420,7 +5426,7 @@ var lc = [
5420
5426
  "xmlns:x14": P
5421
5427
  }), t.start("x14:dataValidations", {
5422
5428
  "xmlns:xm": Rt,
5423
- ...Po(n),
5429
+ ...Io(n),
5424
5430
  count: i.length
5425
5431
  });
5426
5432
  for (let e = 0; e < i.length; e++) {
@@ -5557,9 +5563,9 @@ var lc = [
5557
5563
  let e = t.getRuns();
5558
5564
  for (let t = 0; t < e.length; t++) {
5559
5565
  let r = e[t];
5560
- n.start("r"), r.font && o && so(n, r.font, o), Yo(n, r.text), n.end("r");
5566
+ n.start("r"), r.font && o && so(n, r.font, o), Zo(n, r.text), n.end("r");
5561
5567
  }
5562
- } else Yo(n, t);
5568
+ } else Zo(n, t);
5563
5569
  n.end("si");
5564
5570
  }
5565
5571
  n.end("sst"), n.close();
@@ -5587,7 +5593,7 @@ var lc = [
5587
5593
  t.end(r);
5588
5594
  }
5589
5595
  }(0, n, r, "clrScheme"), function(e, t, n, r) {
5590
- n && (t.start(r, { name: n.getName() || "Office" }), ls(t, n.getMajor() ?? {}, "Calibri Light", "majorFont"), ls(t, n.getMinor() ?? {}, "Calibri", "minorFont"), t.end(r));
5596
+ n && (t.start(r, { name: n.getName() || "Office" }), ds(t, n.getMajor() ?? {}, "Calibri Light", "majorFont"), ds(t, n.getMinor() ?? {}, "Calibri", "minorFont"), t.end(r));
5591
5597
  }(0, n, r.getFontScheme(), "fontScheme"), function(e, t, n, r, i) {
5592
5598
  if (i?.formatSchemeXml) return void t.raw(i.formatSchemeXml);
5593
5599
  (function(e, t, n, r, i) {
@@ -5604,13 +5610,13 @@ var lc = [
5604
5610
  })(e, t, n, r, r.getFormatScheme());
5605
5611
  }(t, n, "fmtScheme", r, i), n.end("themeElements"), function(e, t, n) {
5606
5612
  let r = n.getObjectDefaults();
5607
- if (!us.some(([e]) => r[e])) return void t.empty("objectDefaults");
5613
+ if (!fs.some(([e]) => r[e])) return void t.empty("objectDefaults");
5608
5614
  let i = { getTheme: () => n };
5609
5615
  t.start("objectDefaults");
5610
- for (let [a, o] of us) {
5616
+ for (let [a, o] of fs) {
5611
5617
  let s = r[a];
5612
5618
  if (!s) continue;
5613
- t.start(o), t.start("spPr"), Qr(e, i, s), t.end("spPr"), cs(e, i, s.text);
5619
+ t.start(o), t.start("spPr"), Qr(e, i, s), t.end("spPr"), us(e, i, s.text);
5614
5620
  let c = s.style;
5615
5621
  if (c) {
5616
5622
  let e = (e, r) => {
@@ -5915,7 +5921,7 @@ var lc = [
5915
5921
  let i = [], a = 0;
5916
5922
  for (let e = 0; e < r.length; e++) {
5917
5923
  let t = a++;
5918
- n.empty("bag", { type: ds[r[e].type] ?? r[e].type });
5924
+ n.empty("bag", { type: ps[r[e].type] ?? r[e].type });
5919
5925
  let o = a++;
5920
5926
  n.start("bag", { type: "XFControls" }), n.start("bagId", { k: "CellControl" }), n.text(String(t)), n.end("bagId"), n.end("bag"), i.push(a++), n.start("bag", { type: "XFComplement" }), n.start("bagId", { k: "XFControls" }), n.text(String(o)), n.end("bagId"), n.end("bag");
5921
5927
  }
@@ -5945,14 +5951,14 @@ var lc = [
5945
5951
  "xmlns:dcmitype": "http://purl.org/dc/dcmitype/",
5946
5952
  "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"
5947
5953
  });
5948
- let r = ps(/* @__PURE__ */ new Date()), i = {
5954
+ let r = hs(/* @__PURE__ */ new Date()), i = {
5949
5955
  author: "SheetXL",
5950
5956
  lastAuthor: "SheetXL",
5951
5957
  creationDate: r,
5952
5958
  ...e.model.getProperties().toJSON(),
5953
5959
  lastModifiedDate: r
5954
5960
  };
5955
- for (let [e, t, r] of fs) {
5961
+ for (let [e, t, r] of ms) {
5956
5962
  let a = i[t];
5957
5963
  a != null && a !== "" && (n.start(e, r ? { "xsi:type": "dcterms:W3CDTF" } : void 0), n.text(String(a)), n.end(e));
5958
5964
  }
@@ -5973,11 +5979,11 @@ var lc = [
5973
5979
  n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
5974
5980
  xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
5975
5981
  "xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
5976
- }), ms(t, n, "Application", "SheetXL"), ms(t, n, "DocSecurity", "0"), ms(t, n, "ScaleCrop", "false"), hs(t, n, r);
5982
+ }), gs(t, n, "Application", "SheetXL"), gs(t, n, "DocSecurity", "0"), gs(t, n, "ScaleCrop", "false"), _s(t, n, r);
5977
5983
  let s = o.getManager();
5978
- s && ms(t, n, "Manager", s);
5984
+ s && gs(t, n, "Manager", s);
5979
5985
  let c = o.getCompany();
5980
- c && ms(t, n, "Company", c), ms(t, n, "LinksUpToDate", "false"), ms(t, n, "SharedDoc", "false"), ms(t, n, "HyperlinksChanged", "false"), ms(t, n, "AppVersion", a), n.end("Properties"), n.close();
5986
+ c && gs(t, n, "Company", c), gs(t, n, "LinksUpToDate", "false"), gs(t, n, "SharedDoc", "false"), gs(t, n, "HyperlinksChanged", "false"), gs(t, n, "AppVersion", a), n.end("Properties"), n.close();
5981
5987
  }
5982
5988
  }(),
5983
5989
  new class extends q {
@@ -6003,8 +6009,8 @@ var lc = [
6003
6009
  name: t
6004
6010
  };
6005
6011
  o && (s.linkTarget = o), n.start("property", s);
6006
- let c = gs[i];
6007
- n.start(c), n.text(i === tn.Type.Date ? _s(a) : String(a)), n.end(c), n.end("property");
6012
+ let c = vs[i];
6013
+ n.start(c), n.text(i === tn.Type.Date ? ys(a) : String(a)), n.end(c), n.end("property");
6008
6014
  }
6009
6015
  n.end("Properties"), n.close();
6010
6016
  }
@@ -6024,11 +6030,11 @@ var lc = [
6024
6030
  let d = { xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" };
6025
6031
  if (r && (d["xmlns:xda"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"), i && (d["xmlns:xlrd"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata"), n.decl(), n.start("metadata", d), n.start("metadataTypes", { count: u }), r && n.empty("metadataType", {
6026
6032
  name: "XLDAPR",
6027
- ...vs,
6033
+ ...bs,
6028
6034
  cellMeta: "1"
6029
6035
  }), i && n.empty("metadataType", {
6030
6036
  name: "XLRICHVALUE",
6031
- ...vs
6037
+ ...bs
6032
6038
  }), n.end("metadataTypes"), r) {
6033
6039
  n.start("futureMetadata", {
6034
6040
  name: "XLDAPR",
@@ -6243,13 +6249,13 @@ var lc = [
6243
6249
  async emit(e, t) {
6244
6250
  let n = t.getXMLWriter(), r = e.getArrays();
6245
6251
  n.decl(), n.start("arrayData", {
6246
- xmlns: ys,
6252
+ xmlns: xs,
6247
6253
  count: r.length
6248
6254
  });
6249
6255
  for (let e of r) n.start("a", {
6250
6256
  r: e.rows,
6251
6257
  c: e.columns > 1 ? e.columns : void 0
6252
- }), bs(n, e.items), n.end("a");
6258
+ }), Ss(n, e.items), n.end("a");
6253
6259
  n.end("arrayData"), n.close();
6254
6260
  }
6255
6261
  }(),
@@ -6265,7 +6271,7 @@ var lc = [
6265
6271
  async emit(e, t) {
6266
6272
  let n = t.getXMLWriter(), { structures: r } = e.getBags();
6267
6273
  n.decl(), n.start("spbStructures", {
6268
- xmlns: ys,
6274
+ xmlns: xs,
6269
6275
  count: r.length
6270
6276
  });
6271
6277
  for (let e of r) {
@@ -6290,9 +6296,9 @@ var lc = [
6290
6296
  }
6291
6297
  async emit(e, t) {
6292
6298
  let n = t.getXMLWriter(), { bags: r, arrays: i } = e.getBags();
6293
- if (n.decl(), n.start("supportingPropertyBags", { xmlns: ys }), i.length > 0) {
6299
+ if (n.decl(), n.start("supportingPropertyBags", { xmlns: xs }), i.length > 0) {
6294
6300
  n.start("spbArrays", { count: i.length });
6295
- for (let e of i) n.start("a", { count: e.length }), bs(n, e), n.end("a");
6301
+ for (let e of i) n.start("a", { count: e.length }), Ss(n, e), n.end("a");
6296
6302
  n.end("spbArrays");
6297
6303
  }
6298
6304
  n.start("spbData", { count: r.length });
@@ -6316,7 +6322,7 @@ var lc = [
6316
6322
  async emit(e, t) {
6317
6323
  let n = t.getXMLWriter(), r = e.getRichStyles();
6318
6324
  n.decl(), n.start("richStyleSheet", {
6319
- xmlns: ys,
6325
+ xmlns: xs,
6320
6326
  "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
6321
6327
  "mc:Ignorable": "x",
6322
6328
  "xmlns:x": "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
@@ -6365,7 +6371,7 @@ var lc = [
6365
6371
  });
6366
6372
  let r = e.sheet, i = e.movables, a = e.jsonMovables, o = a ? a.length : 0, s = 0, c = (e) => {
6367
6373
  let t = e.content, n = Ge(t?.type) ? t.json?.shapeId : t?.json?.sourceId;
6368
- if (typeof n == "number" && n > s && (s = n), t?.type === "group") for (let t of ks(e)) c(t);
6374
+ if (typeof n == "number" && n > s && (s = n), t?.type === "group") for (let t of js(e)) c(t);
6369
6375
  };
6370
6376
  for (let e = 0; e < o; e++) c(a[e]);
6371
6377
  let l = /* @__PURE__ */ new Map(), u = t.getSharedStates(), d = u.get("uniqueIdCounter");
@@ -6382,11 +6388,11 @@ var lc = [
6382
6388
  }
6383
6389
  }
6384
6390
  }
6385
- let f = Xs(t, r), p = () => {
6391
+ let f = Qs(t, r), p = () => {
6386
6392
  let e = (d.get(r) ?? 1) + 1;
6387
6393
  return d.set(r, e), e;
6388
6394
  }, m = (e) => {
6389
- for (let t of ks(e)) {
6395
+ for (let t of js(e)) {
6390
6396
  let e = t.content?.json?.sourceId, n = typeof e == "number" && !f.bySource.has(e), r = n ? e : p();
6391
6397
  f.assigned.set(t, r), n && f.bySource.set(e, r), t.content?.type === "group" && m(t);
6392
6398
  }
@@ -6395,40 +6401,40 @@ var lc = [
6395
6401
  let t = a[e], n = t.content?.json?.sourceId, r = l.get(t) ?? (typeof n == "number" ? n : void 0);
6396
6402
  r === void 0 && (r = p()), f.assigned.set(t, r), typeof n != "number" || f.bySource.has(n) || f.bySource.set(n, r), t.content?.type === "group" && m(t);
6397
6403
  }
6398
- for (let e = 0; e < o; e++) await js(t, a[e]);
6404
+ for (let e = 0; e < o; e++) await Ns(t, a[e]);
6399
6405
  for (let e = 0; e < o; e++) {
6400
6406
  let o = a[e], s = i[e], c = o.content?.type;
6401
- if (Ge(c)) nc(n, o);
6407
+ if (Ge(c)) ic(n, o);
6402
6408
  else {
6403
6409
  if (c === "slicer") {
6404
6410
  let e = s.getContent();
6405
6411
  if (!e.getTable?.() && !ja(e)) continue;
6406
6412
  }
6407
- switch (n.start("twoCellAnchor", { editAs: o.anchorType || "twoCell" }), tc(n, "from", o.anchor.tl), tc(n, "to", o.anchor.br), c) {
6413
+ switch (n.start("twoCellAnchor", { editAs: o.anchorType || "twoCell" }), rc(n, "from", o.anchor.tl), rc(n, "to", o.anchor.br), c) {
6408
6414
  case "picture":
6409
- await Ms(t, r, s, o, s.getBounds(), s.getContent().getResource());
6415
+ await Ps(t, r, s, o, s.getBounds(), s.getContent().getResource());
6410
6416
  break;
6411
6417
  case "chart":
6412
- await Ps(t, r, s, o);
6418
+ await Is(t, r, s, o);
6413
6419
  break;
6414
6420
  case "shape":
6415
- await Rs(t, r, s, o, s.getBounds());
6421
+ await Bs(t, r, s, o, s.getBounds());
6416
6422
  break;
6417
6423
  case "group":
6418
- await Is(t, r, s, o, s.getBounds());
6424
+ await Rs(t, r, s, o, s.getBounds());
6419
6425
  break;
6420
6426
  case "smartArt":
6421
- await zs(t, r, s, o);
6427
+ await Vs(t, r, s, o);
6422
6428
  break;
6423
6429
  case "slicer":
6424
- await Us(t, r, s, o);
6430
+ await Gs(t, r, s, o);
6425
6431
  break;
6426
6432
  case "graphicFrame":
6427
- await Gs(t, r, s, o);
6433
+ await qs(t, r, s, o);
6428
6434
  break;
6429
- default: await Ks(t, r, o, s.getBounds());
6435
+ default: await Js(t, r, o, s.getBounds());
6430
6436
  }
6431
- Os(n, o), n.end("twoCellAnchor");
6437
+ As(n, o), n.end("twoCellAnchor");
6432
6438
  }
6433
6439
  }
6434
6440
  n.end("wsDr"), n.close();
@@ -6450,7 +6456,7 @@ var lc = [
6450
6456
  for (let i = 0; i < r; i++) {
6451
6457
  let r = n[i], a = e?.get(r.resId);
6452
6458
  if (a) try {
6453
- await rc(t, r.id, a);
6459
+ await ac(t, r.id, a);
6454
6460
  } catch (e) {
6455
6461
  t.log(`Unable to write legacy drawing image '${r.id}'`, e);
6456
6462
  }
@@ -6573,11 +6579,11 @@ var lc = [
6573
6579
  for (let e = 0; e < r.length; e++) {
6574
6580
  let { comment: t, ref: i } = r[e];
6575
6581
  if (t.isNote()) continue;
6576
- ac(n, i, t.getId(), t.getAuthor()?.getId(), t.getCreationDate(), t.getContent(), null, t.isResolved(), t.toJSON()?.mentions);
6582
+ sc(n, i, t.getId(), t.getAuthor()?.getId(), t.getCreationDate(), t.getContent(), null, t.isResolved(), t.toJSON()?.mentions);
6577
6583
  let a = t.getReplies();
6578
6584
  for (let e = 0; e < a.length; e++) {
6579
6585
  let r = a[e];
6580
- ac(n, i, r.getId(), r.getAuthor()?.getId(), r.getCreationDate(), r.getContent(), t.getId(), !1, r.toJSON().mentions);
6586
+ sc(n, i, r.getId(), r.getAuthor()?.getId(), r.getCreationDate(), r.getContent(), t.getId(), !1, r.toJSON().mentions);
6581
6587
  }
6582
6588
  }
6583
6589
  n.end("ThreadedComments"), n.close();
@@ -6603,7 +6609,7 @@ var lc = [
6603
6609
  let t = r[e];
6604
6610
  n.empty("person", {
6605
6611
  displayName: t.getDisplayName(),
6606
- id: oc(t.getId()),
6612
+ id: cc(t.getId()),
6607
6613
  userId: t.getUserId() ?? t.getDisplayName(),
6608
6614
  providerId: t.getProviderId() ?? "None"
6609
6615
  });
@@ -6833,7 +6839,7 @@ var lc = [
6833
6839
  let i = r.length;
6834
6840
  for (let t = 0; t < i; t++) {
6835
6841
  let [i, a] = r[t], o = a.length;
6836
- for (let t = 0; t < o; t++) cc(e, n, i + t, a.at(t));
6842
+ for (let t = 0; t < o; t++) uc(e, n, i + t, a.at(t));
6837
6843
  }
6838
6844
  e.end("row");
6839
6845
  }
@@ -6845,38 +6851,38 @@ var lc = [
6845
6851
  }(n, e), n.end("externalBook"), n.end("externalLink"), n.close();
6846
6852
  }
6847
6853
  }()
6848
- ], uc = "SheetXL Evaluation", dc = "xl/worksheets/sheetSheetXLEvaluation.xml", fc = "rIdSheetXLEvaluation", pc = [
6854
+ ], fc = "SheetXL Evaluation", pc = "xl/worksheets/sheetSheetXLEvaluation.xml", mc = "rIdSheetXLEvaluation", hc = [
6849
6855
  "This workbook was exported from an unlicensed evaluation of SheetXL.",
6850
6856
  "Your own sheets follow this one, unchanged.",
6851
6857
  "To license SheetXL, visit https://www.sheetxl.com"
6852
- ], mc = (e) => {
6853
- let t = [...e.matchAll(/<sheet\b[^>]*\bsheetId="(\d+)"/g)].map((e) => parseInt(e[1], 10)), n = new Set([...e.matchAll(/<sheet\b[^>]*\bname="([^"]*)"/g)].map((e) => e[1].toLowerCase())), r = uc;
6854
- for (let e = 2; n.has(r.toLowerCase()); e++) r = `${uc} (${e})`;
6855
- let i = `<sheet name="${r}" sheetId="${Math.max(0, ...t) + 1}" r:id="${fc}"/>`;
6858
+ ], gc = (e) => {
6859
+ let t = [...e.matchAll(/<sheet\b[^>]*\bsheetId="(\d+)"/g)].map((e) => parseInt(e[1], 10)), n = new Set([...e.matchAll(/<sheet\b[^>]*\bname="([^"]*)"/g)].map((e) => e[1].toLowerCase())), r = fc;
6860
+ for (let e = 2; n.has(r.toLowerCase()); e++) r = `${fc} (${e})`;
6861
+ let i = `<sheet name="${r}" sheetId="${Math.max(0, ...t) + 1}" r:id="${mc}"/>`;
6856
6862
  return e.replace(/<sheets>/, `<sheets>${i}`).replace(/\blocalSheetId="(\d+)"/g, (e, t) => `localSheetId="${parseInt(t, 10) + 1}"`).replace(/<workbookView\b([^>]*?)(\/?)>/, (e, t, n) => {
6857
6863
  let r = /\bactiveTab="(\d+)"/.exec(t);
6858
6864
  return `<workbookView${(r ? t.replace(/\bactiveTab="\d+"/, `activeTab="${parseInt(r[1], 10) + 1}"`) : `${t} activeTab="1"`).replace(/\s*\bfirstTab="\d+"/, "")}${n}>`;
6859
6865
  });
6860
- }, hc = async (e) => {
6866
+ }, _c = async (e) => {
6861
6867
  let t = new de(new N(e)), n = new ye(), r = new ve(n, { lastModDate: new Date(1899, 11, 29, 19, 0, 0) });
6862
6868
  try {
6863
6869
  for (let e of await t.getEntries()) {
6864
6870
  if (e.directory || !("getData" in e)) continue;
6865
6871
  let t = e.filename;
6866
- if (t === "xl/workbook.xml") await r.add(t, new N(new TextEncoder().encode(mc(await e.getData(new x())))));
6872
+ if (t === "xl/workbook.xml") await r.add(t, new N(new TextEncoder().encode(gc(await e.getData(new x())))));
6867
6873
  else if (t === "xl/_rels/workbook.xml.rels") {
6868
- let n = await e.getData(new x()), i = `<Relationship Id="${fc}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="${dc.slice(3)}"/>`;
6874
+ let n = await e.getData(new x()), i = `<Relationship Id="${mc}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="${pc.slice(3)}"/>`;
6869
6875
  await r.add(t, new N(new TextEncoder().encode(n.replace("</Relationships>", `${i}</Relationships>`))));
6870
6876
  } else if (t === "[Content_Types].xml") {
6871
- let n = await e.getData(new x()), i = `<Override PartName="/${dc}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`;
6877
+ let n = await e.getData(new x()), i = `<Override PartName="/${pc}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`;
6872
6878
  await r.add(t, new N(new TextEncoder().encode(n.replace("</Types>", `${i}</Types>`))));
6873
6879
  } else await r.add(t, new N(await e.getData(new ye())));
6874
6880
  }
6875
- return await r.add(dc, new N(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>${pc.map((e, t) => `<row r="${t + 1}"><c r="A${t + 1}" t="inlineStr"><is><t>${e}</t></is></c></row>`).join("")}</sheetData></worksheet>`))), await r.close(), await n.getData();
6881
+ return await r.add(pc, new N(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>${hc.map((e, t) => `<row r="${t + 1}"><c r="A${t + 1}" t="inlineStr"><is><t>${e}</t></is></c></row>`).join("")}</sheetData></worksheet>`))), await r.close(), await n.getData();
6876
6882
  } finally {
6877
6883
  await t.close();
6878
6884
  }
6879
- }, gc = (e) => {
6885
+ }, vc = (e) => {
6880
6886
  let t = e.getPart("xl/_rels/workbook.xml.rels");
6881
6887
  if (!t) return null;
6882
6888
  let n = /* @__PURE__ */ new Map();
@@ -6890,23 +6896,23 @@ var lc = [
6890
6896
  });
6891
6897
  }
6892
6898
  return n;
6893
- }, _c = (e) => {
6899
+ }, yc = (e) => {
6894
6900
  let t = e.getPart("xl/workbook.xml");
6895
6901
  return t ? new TextDecoder("utf-8").decode(t.data) : null;
6896
- }, vc = (e) => {
6902
+ }, bc = (e) => {
6897
6903
  let t = [], n = /<(\/?)ext(?=[\s/>])[^>]*?(\/?)>/g, r = 0, i = 0;
6898
6904
  for (let a = n.exec(e); a; a = n.exec(e)) a[1] ? (r--, r === 0 && t.push(e.slice(i, a.index + a[0].length))) : a[2] ? r === 0 && t.push(a[0]) : (r === 0 && (i = a.index), r++);
6899
6905
  return t;
6900
- }, yc = (e) => {
6901
- let t = bc.get(e);
6906
+ }, xc = (e) => {
6907
+ let t = Sc.get(e);
6902
6908
  if (t !== void 0) return t;
6903
6909
  let n = e.getPart("xl/workbook.xml"), r = n ? new TextDecoder("utf-8").decode(n.data) : null;
6904
- return bc.set(e, r), r;
6905
- }, bc = /* @__PURE__ */ new WeakMap(), xc = async (t, n) => {
6910
+ return Sc.set(e, r), r;
6911
+ }, Sc = /* @__PURE__ */ new WeakMap(), Cc = async (t, n) => {
6906
6912
  await $t.load();
6907
6913
  let r = new ir();
6908
- for (let e of lc) r.register(e);
6909
- let i = Sc, a = An.createUint8Array({
6914
+ for (let e of dc) r.register(e);
6915
+ let i = wc, a = An.createUint8Array({
6910
6916
  lastModDate: new Date(1899, 11, 29, 19, 0, 0),
6911
6917
  level: i
6912
6918
  }), o = e.includes(n?.format) ? O(t) : null, s = /* @__PURE__ */ new Map(), c = o ? ((e) => {
@@ -6920,19 +6926,19 @@ var lc = [
6920
6926
  })(o) : null;
6921
6927
  c && (n?.macroEnabled || delete c.codeName, s.set(za, c));
6922
6928
  let l = o ? ((e) => {
6923
- let t = yc(e)?.match(/<calcPr\b[^>]*?\bcalcId="([^"]*)"/);
6929
+ let t = xc(e)?.match(/<calcPr\b[^>]*?\bcalcId="([^"]*)"/);
6924
6930
  return t ? t[1] : null;
6925
6931
  })(o) : null;
6926
6932
  l !== null && s.set("calcId", l);
6927
6933
  let u = o ? ((e) => {
6928
- let t = yc(e);
6934
+ let t = xc(e);
6929
6935
  if (!t) return null;
6930
6936
  let n = t.lastIndexOf("<extLst>");
6931
6937
  if (n === -1) return null;
6932
6938
  let r = t.indexOf("</extLst>", n);
6933
6939
  if (r === -1 || !/^<\/extLst>\s*<\/workbook>/.test(t.slice(r))) return null;
6934
- let i = t.slice(n + 8, r), a = gc(e), o = [];
6935
- for (let e of vc(i)) {
6940
+ let i = t.slice(n + 8, r), a = vc(e), o = [];
6941
+ for (let e of bc(i)) {
6936
6942
  let t = /^<ext\b[^>]*?\buri="([^"]*)"/.exec(e)?.[1] ?? "", n = [];
6937
6943
  for (let t of e.matchAll(/\sr:id="([^"]*)"/g)) {
6938
6944
  if (n.some((e) => e.id === t[1])) continue;
@@ -6954,13 +6960,13 @@ var lc = [
6954
6960
  })(o) : null;
6955
6961
  u !== null && s.set("workbookExts", u);
6956
6962
  let d = o ? ((e) => {
6957
- let t = _c(e);
6963
+ let t = yc(e);
6958
6964
  if (!t) return null;
6959
6965
  let n = /<externalReferences\b[^>]*>([\s\S]*?)<\/externalReferences>/.exec(t);
6960
6966
  if (!n) return null;
6961
6967
  let r = [...n[1].matchAll(/<externalReference\b[^>]*\sr:id="([^"]*)"/g)].map((e) => e[1]);
6962
6968
  if (r.length === 0) return null;
6963
- let i = gc(e);
6969
+ let i = vc(e);
6964
6970
  return i ? r.map((e) => {
6965
6971
  let t = i.get(e);
6966
6972
  return t && !t.external ? t.target : null;
@@ -6968,7 +6974,7 @@ var lc = [
6968
6974
  })(o) : null;
6969
6975
  d && s.set(Wa, d);
6970
6976
  let f = o ? ((e) => {
6971
- let t = _c(e), n = t ? gc(e) : null;
6977
+ let t = yc(e), n = t ? vc(e) : null;
6972
6978
  if (!t || !n) return null;
6973
6979
  let r = /* @__PURE__ */ new Map();
6974
6980
  for (let e of t.matchAll(/<sheet\b([^>]*)\/?>/g)) {
@@ -6997,7 +7003,7 @@ var lc = [
6997
7003
  });
6998
7004
  m.addPart("workbook", t, "/xl/workbook.xml"), await m.waitEmit(), m.addPart("propsCore", { model: t }), m.addPart("propsApp", { model: t }), t.getProperties().getCustom().length > 0 && m.addPart("propsCustom", { model: t });
6999
7005
  let h = await m.build();
7000
- await fn.isWatermarked() && (h = await hc(h));
7006
+ await fn.isWatermarked() && (h = await _c(h));
7001
7007
  let g = n?.progress?.onWarning;
7002
7008
  if (p.length && g) {
7003
7009
  let e = /* @__PURE__ */ new Set();
@@ -7007,5 +7013,5 @@ var lc = [
7007
7013
  }
7008
7014
  }
7009
7015
  return h.byteOffset === 0 && h.byteLength === h.buffer.byteLength ? h.buffer : h.slice().buffer;
7010
- }, Sc = 1;
7011
- export { xc as writeXLSX };
7016
+ }, wc = 1;
7017
+ export { Cc as writeXLSX };