@sheetxl/io-xlsx 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/browser/esm/{Ck5-R8xrLh89G56Q.mjs → 8twPAx0iXVOHQF7M.mjs} +2 -2
  2. package/browser/esm/{BQw8xcZ6k06Tq6lY.mjs → AUzndO_dXq2uXAQy.mjs} +804 -788
  3. package/browser/esm/{lqWdqDnIKZxyet1d.mjs → AcInC71T9-1ULEU5.mjs} +2 -2
  4. package/browser/esm/{CzWmtWMV9HfkBne5.mjs → Bo6e8oAgFD2iY-YI.mjs} +4 -4
  5. package/browser/esm/{BDkqo2SKzINJJB0-.mjs → C-J26ZzIvck2JVIY.mjs} +8 -8
  6. package/browser/esm/{vlyPCdsYGtutUTnn.mjs → C3HFqaXGZmnvvgXu.mjs} +2 -2
  7. package/browser/esm/{CvaZql_oqszNei5v.mjs → CEaaCkM0LqK8VtxS.mjs} +1 -1
  8. package/browser/esm/{BP2eZDr6dZ7gP02Z.mjs → CRHs2mV0YZpM01kC.mjs} +4 -4
  9. package/browser/esm/{Di9ttuWnx0eCbSUA.mjs → CT6OmL58l1HESEBl.mjs} +2 -2
  10. package/browser/esm/{BUaKY12tmPZDwfZx.mjs → CeKec9Li8QnIzTOK.mjs} +1 -1
  11. package/browser/esm/{B7FIgKFyHincEoTQ.mjs → Dxmf_-Qe4ZEgmdJo.mjs} +7 -7
  12. package/browser/esm/index.mjs +2 -2
  13. package/node/esm/{CtKLRPHWl5-_lwfr.mjs → 2311buWetucn9hiZ.mjs} +1 -1
  14. package/node/esm/{BO3IZgkfKGIGMKYd.mjs → Bk9BEJSwXlHj8fbL.mjs} +6 -6
  15. package/node/esm/{CLdbYG5SCBndfk-q.mjs → BlRZtxAC9VsylR-4.mjs} +928 -912
  16. package/node/esm/{D4thYKlDAXXgB-tC.mjs → BnBif62UoI48SS79.mjs} +2 -2
  17. package/node/esm/{CzEwnjXK_YIWXQQh.mjs → DNhkyiLSEHh9Bgu_.mjs} +2 -2
  18. package/node/esm/{bUN-BbKU7oHGJmVh.mjs → DTEwOiyesylYXv6G.mjs} +1 -1
  19. package/node/esm/{B2uSae_kN-7PrVjI.mjs → DuA_b1khVjfcKaUx.mjs} +6 -6
  20. package/node/esm/index.mjs +4 -4
  21. package/node/esm/{DmYe7T4XtIyt-qdA.mjs → ybG-XNic24pCv4CN.mjs} +4 -4
  22. package/package.json +3 -3
  23. package/types/src/chart/_codec.d.ts +1 -1
  24. package/types/src/chart/_xml.d.ts +4 -2
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v1.0.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v1.0.6
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 { En as e, Sn as t, Tn as n, wn as r } from "./vlyPCdsYGtutUTnn.mjs";
7
+ import { En as e, Sn as t, Tn as n, wn as r } from "./C3HFqaXGZmnvvgXu.mjs";
8
8
  import { Color as i, FormulaError as a, IFill as o, IFontStyle as s } from "@sheetxl/sdk";
9
9
  var c = [
10
10
  "customMenu",
@@ -81,8 +81,8 @@ var c = [
81
81
  rest: x
82
82
  };
83
83
  u !== null && (C.records = ae);
84
- let ce = c.get("refreshOnLoad");
85
- return ce !== "1" && ce !== "true" || (C.refreshOnLoad = !0), C;
84
+ let w = c.get("refreshOnLoad");
85
+ return w !== "1" && w !== "true" || (C.refreshOnLoad = !0), C;
86
86
  }, ee = (e, t) => {
87
87
  let n = RegExp(`<${t}((?:\\s+[^\\s=/>]+\\s*=\\s*(?:"[^"]*"|'[^']*'))*)`).exec(e);
88
88
  return n ? {
@@ -281,20 +281,21 @@ var c = [
281
281
  let t = "";
282
282
  for (let n of e.children) typeof n == "string" && (t += n);
283
283
  return t;
284
- }, ce = "http://schemas.openxmlformats.org/drawingml/2006/chart", le = "http://purl.oclc.org/ooxml/drawingml/chart", ue = "http://schemas.openxmlformats.org/drawingml/2006/main", de = "http://purl.oclc.org/ooxml/drawingml/main", fe = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", pe = "http://schemas.microsoft.com/office/drawing/2012/chart", me = "http://schemas.microsoft.com/office/drawing/2014/chartex", he = "http://www.w3.org/XML/1998/namespace", w = {
284
+ }, w = "http://schemas.openxmlformats.org/drawingml/2006/chart", ce = "http://purl.oclc.org/ooxml/drawingml/chart", le = "http://schemas.openxmlformats.org/drawingml/2006/main", ue = "http://purl.oclc.org/ooxml/drawingml/main", de = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", fe = "http://schemas.microsoft.com/office/drawing/2012/chart", pe = "http://schemas.microsoft.com/office/drawing/2017/03/chart", me = "http://schemas.microsoft.com/office/drawing/2014/chartex", he = "http://www.w3.org/XML/1998/namespace", T = {
285
285
  c: "c",
286
286
  a: "a",
287
287
  r: "r",
288
288
  c15: "c15",
289
+ c16r3: "c16r3",
289
290
  cx: "cx"
290
- }, ge = (e) => e === ce || e === le, _e = (e) => e === ue || e === de, ve = (e) => e === me, ye = Object.freeze({ xml: he }), be = /([^\s=]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g, T = (e) => {
291
+ }, ge = (e) => e === w || e === ce, _e = (e) => e === le || e === ue, ve = (e) => e === me, ye = Object.freeze({ xml: he }), be = /([^\s=]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g, E = (e) => {
291
292
  let t = [];
292
293
  be.lastIndex = 0;
293
294
  for (let n = be.exec(e.attrs); n; n = be.exec(e.attrs)) t.push([n[1], oe(n[2] ?? n[3] ?? "")]);
294
295
  return t;
295
296
  }, xe = (e, t) => {
296
297
  let n = null;
297
- for (let [r, i] of T(e)) r === "xmlns" ? (n ??= { ...t })[""] = i : r.startsWith("xmlns:") && ((n ??= { ...t })[r.slice(6)] = i);
298
+ for (let [r, i] of E(e)) r === "xmlns" ? (n ??= { ...t })[""] = i : r.startsWith("xmlns:") && ((n ??= { ...t })[r.slice(6)] = i);
298
299
  return n ?? t;
299
300
  }, Se = (e, t) => t[((e) => {
300
301
  let t = e.indexOf(":");
@@ -323,15 +324,15 @@ var c = [
323
324
  toString() {
324
325
  return this._parts.join("");
325
326
  }
326
- }, we = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;"), E = (e) => e === "1" || e === "true" || e !== "0" && e !== "false" && null, D = (e) => e ? "1" : "0", Te = /^[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?$/, O = (e) => {
327
- let t = E(e);
328
- return t === null ? Te.test(e) ? String(Number(e)) : e : D(t);
327
+ }, we = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;"), D = (e) => e === "1" || e === "true" || e !== "0" && e !== "false" && null, O = (e) => e ? "1" : "0", Te = /^[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?$/, k = (e) => {
328
+ let t = D(e);
329
+ return t === null ? Te.test(e) ? String(Number(e)) : e : O(t);
329
330
  }, Ee = /* @__PURE__ */ new Set(/* @__PURE__ */ "date1904.roundedCorners.autoTitleDeleted.plotVisOnly.showDLblsOverMax.varyColors.marker.smooth.invertIfNegative.bubble3D.delete.showLegendKey.showVal.showCatName.showSerName.showPercent.showBubbleSize.showLeaderLines.overlay.rAngAx.showHorzBorder.showVertBorder.showOutline.showKeys.auto.noMultiLvlLbl.wireframe.showNegBubbles.autoUpdate.applyToFront.applyToSides.applyToEnd.chartObject.data.formatting.selection.userInterface".split(".")), De = (e, t, n = !1) => {
330
331
  let r = xe(e, t), i = Se(e, r) ?? "", a = [];
331
- for (let [t, n] of T(e)) {
332
+ for (let [t, n] of E(e)) {
332
333
  if (t === "xmlns" || t.startsWith("xmlns:")) continue;
333
334
  let e = t.indexOf(":"), i = e === -1 ? t : `{${r[t.slice(0, e)] ?? t.slice(0, e)}}${t.slice(e + 1)}`;
334
- a.push(`${i}=${JSON.stringify(O(n))}`);
335
+ a.push(`${i}=${JSON.stringify(k(n))}`);
335
336
  }
336
337
  let o = S(e), s = o.length === 0 ? e.children.join("") : "";
337
338
  a.length === 0 && o.length === 0 && s === "" && ge(i) && Ee.has(e.name) && a.push("val=\"1\""), a.sort();
@@ -345,17 +346,17 @@ var c = [
345
346
  }, Oe = class {
346
347
  constructor(e, t) {
347
348
  this.xml = e, this.rootScope = t, this.kept = 0, this.reordered = 0;
348
- let n = Object.values(t).find(ge) ?? ce, r = _e(t[w.a]) ? t[w.a] : ue;
349
+ let n = Object.values(t).find(ge) ?? w, r = _e(t[T.a]) ? t[T.a] : le;
349
350
  this.writeScope = {
350
351
  ...t,
351
- [w.c]: n,
352
- [w.cx]: me,
353
- [w.a]: r,
354
- [w.r]: t[w.r] ?? fe
352
+ [T.c]: n,
353
+ [T.cx]: me,
354
+ [T.a]: r,
355
+ [T.r]: t[T.r] ?? de
355
356
  };
356
357
  }
357
358
  markupOf(e, t) {
358
- let n = this.xml.slice(e.start, e.end), r = new Set(T(e).map(([e]) => e).filter((e) => e === "xmlns" || e.startsWith("xmlns:"))), i = "";
359
+ let n = this.xml.slice(e.start, e.end), r = new Set(E(e).map(([e]) => e).filter((e) => e === "xmlns" || e.startsWith("xmlns:"))), i = "";
359
360
  for (let e of Object.keys(t)) e !== "xml" && t[e] !== this.rootScope[e] && (r.has(e === "" ? "xmlns" : `xmlns:${e}`) || (i += e === "" ? ` xmlns="${t[e]}"` : ` xmlns:${e}="${t[e]}"`));
360
361
  if (i) {
361
362
  let t = 1 + e.qname.length;
@@ -366,15 +367,16 @@ var c = [
366
367
  }, ke = (e, t) => {
367
368
  switch (e) {
368
369
  case "c": return ge(t);
369
- case "c15": return t === pe;
370
+ case "c15": return t === fe;
371
+ case "c16r3": return t === pe;
370
372
  case "cx": return ve(t);
371
373
  default: return _e(t);
372
374
  }
373
- }, k = (e, t, n, r) => {
375
+ }, A = (e, t, n, r) => {
374
376
  let i = xe(e, n), a = {}, o, s;
375
- for (let [n, r] of T(e)) {
377
+ for (let [n, r] of E(e)) {
376
378
  let e = t.attributes?.find((e) => e.name === n), i = e ? e.read(r) : void 0;
377
- e && i !== void 0 && O(e.write(i)) === O(r) ? a[e.key] = i : (o ??= {})[n] = r;
379
+ e && i !== void 0 && k(e.write(i)) === k(r) ? a[e.key] = i : (o ??= {})[n] = r;
378
380
  }
379
381
  let c = -1, l = "", u = {};
380
382
  for (let n of S(e)) {
@@ -393,7 +395,7 @@ var c = [
393
395
  h?.many && (g.at = u[h.key]), (s ??= []).push(g);
394
396
  }
395
397
  return (o || s) && (a.unknown = {}, s && (a.unknown.elements = s), o && (a.unknown.attributes = o)), t.afterRead?.(a, e, i, r), a;
396
- }, A = (e, t, n, r) => {
398
+ }, j = (e, t, n, r) => {
397
399
  let i = [];
398
400
  for (let e of r.attributes ?? []) {
399
401
  let t = n[e.key];
@@ -417,7 +419,7 @@ var c = [
417
419
  c(() => !0);
418
420
  let l = o.toString();
419
421
  l === "" ? e.open(t, i, !0) : e.open(t, i).raw(l).close(t);
420
- }, j = (e, t) => `${w[e]}:${t}`, M = (e, t, n = e, r = "c") => ({
422
+ }, M = (e, t) => `${T[e]}:${t}`, N = (e, t, n = e, r = "c") => ({
421
423
  tags: [e],
422
424
  key: n,
423
425
  ns: r,
@@ -425,53 +427,53 @@ var c = [
425
427
  let n = ((e) => {
426
428
  if (S(e).length > 0) return;
427
429
  let t = null;
428
- for (let [n, r] of T(e)) {
430
+ for (let [n, r] of E(e)) {
429
431
  if (n !== "val") return;
430
432
  t = r;
431
433
  }
432
434
  return t;
433
435
  })(e);
434
436
  if (n === void 0) return;
435
- if (t === "bool") return n === null || (E(n) ?? void 0);
437
+ if (t === "bool") return n === null || (D(n) ?? void 0);
436
438
  if (n === null) return;
437
439
  if (t === "str") return n;
438
440
  let r = Number(n);
439
- return Number.isFinite(r) && (t !== "int" || Number.isInteger(r)) && O(String(r)) === O(n) ? r : void 0;
441
+ return Number.isFinite(r) && (t !== "int" || Number.isInteger(r)) && k(String(r)) === k(n) ? r : void 0;
440
442
  },
441
443
  write: (n, i) => {
442
- n.val(j(r, e), t === "bool" ? D(i) : String(i));
444
+ n.val(M(r, e), t === "bool" ? O(i) : String(i));
443
445
  }
444
- }), N = (e, t = e, n = "c") => ({
446
+ }), P = (e, t = e, n = "c") => ({
445
447
  tags: [e],
446
448
  key: t,
447
449
  ns: n,
448
450
  read: (e) => {
449
- if (!(S(e).length > 0 || T(e).some(([e]) => !e.startsWith("xmlns")))) return C(e);
451
+ if (!(S(e).length > 0 || E(e).some(([e]) => !e.startsWith("xmlns")))) return C(e);
450
452
  },
451
453
  write: (t, r) => {
452
- let i = j(n, e);
454
+ let i = M(n, e);
453
455
  r === "" ? t.open(i, null, !0) : t.open(i).text(r).close(i);
454
456
  }
455
- }), P = (e, t, n = e, r) => {
457
+ }), F = (e, t, n = e, r) => {
456
458
  let i = r?.ns ?? "c", a = typeof t == "function" ? t : () => t;
457
459
  return {
458
460
  tags: [e],
459
461
  key: n,
460
462
  ns: i,
461
463
  many: r?.many,
462
- read: (e, t, n) => k(e, a(), t, n),
463
- write: (t, n) => A(t, j(i, e), n, a())
464
+ read: (e, t, n) => A(e, a(), t, n),
465
+ write: (t, n) => j(t, M(i, e), n, a())
464
466
  };
465
- }, F = (e, t, n = e, r = 1) => ({
467
+ }, I = (e, t, n = e, r = 1) => ({
466
468
  name: e,
467
469
  key: n,
468
470
  read: (e) => {
469
471
  if (t === "str") return e;
470
- if (t === "bool") return E(e) ?? void 0;
472
+ if (t === "bool") return D(e) ?? void 0;
471
473
  let n = Number(e);
472
474
  return Number.isFinite(n) && (t !== "int" || Number.isInteger(n)) ? r === 1 ? n : n / r : void 0;
473
475
  },
474
- write: (e) => t === "bool" ? D(e) : t === "str" ? e : String(r === 1 ? e : Math.round(e * r))
476
+ write: (e) => t === "bool" ? O(e) : t === "str" ? e : String(r === 1 ? e : Math.round(e * r))
475
477
  }), Ae = (e, t, n, r) => ({
476
478
  name: e,
477
479
  key: t,
@@ -490,7 +492,7 @@ var c = [
490
492
  })(a.toString(), r.writeScope) === De(t, n);
491
493
  return o || r.kept++, o ? i : void 0;
492
494
  }
493
- }), I = (e) => `a:${e}`, Me = /* @__PURE__ */ new Set([
495
+ }), L = (e) => `a:${e}`, Me = /* @__PURE__ */ new Set([
494
496
  "bg1",
495
497
  "tx1",
496
498
  "bg2",
@@ -515,56 +517,56 @@ var c = [
515
517
  "sysClr",
516
518
  "schemeClr",
517
519
  "prstClr"
518
- ], Fe = (e) => e === "hue" || e === "hueOff" || e === "hueMod" ? 6e4 : e === "alpha" || e === "alphaOff" || e === "alphaMod" ? 1e5 : 1e3, L = (e, t) => {
520
+ ], Fe = (e) => e === "hue" || e === "hueOff" || e === "hueMod" ? 6e4 : e === "alpha" || e === "alphaOff" || e === "alphaMod" ? 1e5 : 1e3, R = (e, t) => {
519
521
  let n = {};
520
- for (let [r, i] of T(e)) {
522
+ for (let [r, i] of E(e)) {
521
523
  if (!t.includes(r)) return null;
522
524
  n[r] = i;
523
525
  }
524
526
  return n;
525
- }, R = /^-?\d+$/, Ie = (e) => {
527
+ }, z = /^-?\d+$/, Ie = (e) => {
526
528
  let t = S(e);
527
529
  return t.length === 0 ? null : t.length > 1 || !Pe.includes(t[0].name) ? void 0 : ((e) => {
528
530
  let t;
529
531
  switch (e.name) {
530
532
  case "scrgbClr": {
531
- let n = L(e, [
533
+ let n = R(e, [
532
534
  "r",
533
535
  "g",
534
536
  "b"
535
537
  ]);
536
- if (!(n && R.test(n.r ?? "") && R.test(n.g ?? "") && R.test(n.b ?? ""))) return;
538
+ if (!(n && z.test(n.r ?? "") && z.test(n.g ?? "") && z.test(n.b ?? ""))) return;
537
539
  t = `lrgb(${Number(n.r) / 1e3},${Number(n.g) / 1e3},${Number(n.b) / 1e3})`;
538
540
  break;
539
541
  }
540
542
  case "hslClr": {
541
- let n = L(e, [
543
+ let n = R(e, [
542
544
  "hue",
543
545
  "sat",
544
546
  "lum"
545
547
  ]);
546
- if (!(n && R.test(n.hue ?? "") && R.test(n.sat ?? "") && R.test(n.lum ?? ""))) return;
548
+ if (!(n && z.test(n.hue ?? "") && z.test(n.sat ?? "") && z.test(n.lum ?? ""))) return;
547
549
  t = `hsl(${Number(n.hue) / 6e4},${Number(n.sat) / 1e3},${Number(n.lum) / 1e3})`;
548
550
  break;
549
551
  }
550
552
  case "sysClr": {
551
- let n = L(e, ["val", "lastClr"]);
553
+ let n = R(e, ["val", "lastClr"]);
552
554
  if (!n?.val || !Ne.has(n.val)) return;
553
555
  t = n.lastClr === void 0 ? n.val : `${n.val} lastClr ${n.lastClr}`;
554
556
  break;
555
557
  }
556
558
  default: {
557
- let n = L(e, ["val"]);
559
+ let n = R(e, ["val"]);
558
560
  if (!n?.val || /\s/.test(n.val) || (Me.has(n.val) ? "schemeClr" : /^[0-9A-Fa-f]{6}$/.test(n.val) ? "srgbClr" : "prstClr") !== e.name) return;
559
561
  t = n.val;
560
562
  }
561
563
  }
562
564
  for (let n of S(e)) {
563
565
  if (S(n).length > 0) return;
564
- let e = L(n, ["val"]);
566
+ let e = R(n, ["val"]);
565
567
  if (!e) return;
566
568
  if (e.val !== void 0) {
567
- if (!R.test(e.val)) return;
569
+ if (!z.test(e.val)) return;
568
570
  t += ` ${n.name} ${Number(e.val) / Fe(n.name)}`;
569
571
  } else t += ` ${n.name}`;
570
572
  }
@@ -601,15 +603,15 @@ var c = [
601
603
  a = e ? "srgbClr" : Me.has(r) ? "schemeClr" : /^[0-9A-Fa-f]{6}$/.test(r) ? "srgbClr" : "prstClr", o = [["val", e ?? r]];
602
604
  }
603
605
  if (n.length !== 0) {
604
- e.open(I(a), o);
606
+ e.open(L(a), o);
605
607
  for (let t = 0; t < n.length; t++) {
606
608
  let r = n[t];
607
- t + 1 < n.length && Le.test(n[t + 1]) ? e.val(I(r), String(Math.round(Number(n[++t]) * Fe(r)))) : e.open(I(r), null, !0);
609
+ t + 1 < n.length && Le.test(n[t + 1]) ? e.val(L(r), String(Math.round(Number(n[++t]) * Fe(r)))) : e.open(L(r), null, !0);
608
610
  }
609
- e.close(I(a));
610
- } else e.open(I(a), o, !0);
611
+ e.close(L(a));
612
+ } else e.open(L(a), o, !0);
611
613
  }, ze = (e, t, n, r) => {
612
- n === void 0 ? e.open(I(t), r, !0) : (e.open(I(t), r), Re(e, n), e.close(I(t)));
614
+ n === void 0 ? e.open(L(t), r, !0) : (e.open(L(t), r), Re(e, n), e.close(L(t)));
613
615
  }, Be = [
614
616
  "noFill",
615
617
  "solidFill",
@@ -617,7 +619,7 @@ var c = [
617
619
  "pattFill",
618
620
  "grpFill"
619
621
  ], Ve = (e) => {
620
- let t = L(e, [
622
+ let t = R(e, [
621
623
  "l",
622
624
  "t",
623
625
  "r",
@@ -628,13 +630,13 @@ var c = [
628
630
  return t.l !== void 0 && (n.left = Number(t.l) / 1e3), t.t !== void 0 && (n.top = Number(t.t) / 1e3), t.r !== void 0 && (n.right = Number(t.r) / 1e3), t.b !== void 0 && (n.bottom = Number(t.b) / 1e3), n;
629
631
  }, He = (e, t, n) => {
630
632
  let r = [];
631
- n.left !== void 0 && r.push(["l", String(Math.round(1e3 * n.left))]), n.top !== void 0 && r.push(["t", String(Math.round(1e3 * n.top))]), n.right !== void 0 && r.push(["r", String(Math.round(1e3 * n.right))]), n.bottom !== void 0 && r.push(["b", String(Math.round(1e3 * n.bottom))]), e.open(I(t), r, !0);
633
+ n.left !== void 0 && r.push(["l", String(Math.round(1e3 * n.left))]), n.top !== void 0 && r.push(["t", String(Math.round(1e3 * n.top))]), n.right !== void 0 && r.push(["r", String(Math.round(1e3 * n.right))]), n.bottom !== void 0 && r.push(["b", String(Math.round(1e3 * n.bottom))]), e.open(L(t), r, !0);
632
634
  }, Ue = (e) => {
633
635
  switch (e.name) {
634
- case "noFill": return S(e).length === 0 && T(e).length === 0 ? { type: o.Type.None } : void 0;
635
- case "grpFill": return S(e).length === 0 && T(e).length === 0 ? { type: o.Type.Group } : void 0;
636
+ case "noFill": return S(e).length === 0 && E(e).length === 0 ? { type: o.Type.None } : void 0;
637
+ case "grpFill": return S(e).length === 0 && E(e).length === 0 ? { type: o.Type.Group } : void 0;
636
638
  case "solidFill": {
637
- if (T(e).length > 0) return;
639
+ if (E(e).length > 0) return;
638
640
  let t = Ie(e);
639
641
  return t === void 0 ? void 0 : t === null ? { type: o.Type.Solid } : {
640
642
  type: o.Type.Solid,
@@ -642,11 +644,11 @@ var c = [
642
644
  };
643
645
  }
644
646
  case "gradFill": return ((e) => {
645
- let t = L(e, ["rotWithShape", "flip"]);
647
+ let t = R(e, ["rotWithShape", "flip"]);
646
648
  if (!t) return;
647
649
  let n = { type: o.Type.Gradient };
648
650
  if (t.rotWithShape !== void 0) {
649
- let e = E(t.rotWithShape);
651
+ let e = D(t.rotWithShape);
650
652
  if (e === null) return;
651
653
  n.isRotatedWithShape = e;
652
654
  }
@@ -654,7 +656,7 @@ var c = [
654
656
  for (let t of S(e)) if (t.name === "gsLst") {
655
657
  let e = [];
656
658
  for (let n of S(t)) {
657
- let t = n.name === "gs" ? L(n, ["pos"]) : null, r = t && R.test(t.pos ?? "") ? Ie(n) : void 0;
659
+ let t = n.name === "gs" ? R(n, ["pos"]) : null, r = t && z.test(t.pos ?? "") ? Ie(n) : void 0;
658
660
  if (!r) return;
659
661
  e.push({
660
662
  offset: Number(t.pos) / 1e5,
@@ -663,19 +665,19 @@ var c = [
663
665
  }
664
666
  n.stops = e;
665
667
  } else if (t.name === "lin") {
666
- let e = L(t, ["ang", "scaled"]);
668
+ let e = R(t, ["ang", "scaled"]);
667
669
  if (!e || S(t).length > 0) return;
668
670
  if (n.gradientType = o.GradientType.Linear, e.ang !== void 0) {
669
- if (!R.test(e.ang)) return;
671
+ if (!z.test(e.ang)) return;
670
672
  n.angle = (Number(e.ang) / 6e4 + 90) % 360;
671
673
  }
672
674
  if (e.scaled !== void 0) {
673
- let t = E(e.scaled);
675
+ let t = D(e.scaled);
674
676
  if (t === null) return;
675
677
  n.scaled = t;
676
678
  }
677
679
  } else if (t.name === "path") {
678
- let e = L(t, ["path"]);
680
+ let e = R(t, ["path"]);
679
681
  if (!e) return;
680
682
  n.gradientType = e.path === "circle" ? o.GradientType.Path : e.path;
681
683
  let r = S(t);
@@ -701,7 +703,7 @@ var c = [
701
703
  return n;
702
704
  })(e);
703
705
  case "pattFill": {
704
- let t = L(e, ["prst"]);
706
+ let t = R(e, ["prst"]);
705
707
  if (!t) return;
706
708
  let n = { type: o.Type.Pattern };
707
709
  t.prst !== void 0 && (n.patternType = t.prst);
@@ -716,10 +718,10 @@ var c = [
716
718
  }, We = (e, t) => {
717
719
  switch (t.type) {
718
720
  case o.Type.None:
719
- e.open(I("noFill"), null, !0);
721
+ e.open(L("noFill"), null, !0);
720
722
  return;
721
723
  case o.Type.Group:
722
- e.open(I("grpFill"), null, !0);
724
+ e.open(L("grpFill"), null, !0);
723
725
  return;
724
726
  case o.Type.Solid:
725
727
  ze(e, "solidFill", t.color);
@@ -727,8 +729,8 @@ var c = [
727
729
  case o.Type.Gradient:
728
730
  ((e, t) => {
729
731
  let n = [];
730
- if (t.flip !== void 0 && n.push(["flip", t.flip]), t.isRotatedWithShape !== void 0 && n.push(["rotWithShape", D(t.isRotatedWithShape)]), e.open(I("gradFill"), n), t.stops) {
731
- e.open(I("gsLst"));
732
+ if (t.flip !== void 0 && n.push(["flip", t.flip]), t.isRotatedWithShape !== void 0 && n.push(["rotWithShape", O(t.isRotatedWithShape)]), e.open(L("gradFill"), n), t.stops) {
733
+ e.open(L("gsLst"));
732
734
  for (let n of t.stops) {
733
735
  let { offset: t, color: r } = typeof n == "string" ? {
734
736
  offset: 0,
@@ -736,26 +738,26 @@ var c = [
736
738
  } : n;
737
739
  ze(e, "gs", r, [["pos", String(Math.round(1e5 * (t ?? 0)))]]);
738
740
  }
739
- e.close(I("gsLst"));
741
+ e.close(L("gsLst"));
740
742
  }
741
743
  if (t.gradientType === o.GradientType.Linear) {
742
744
  let n = [];
743
- t.angle !== void 0 && n.push(["ang", String(Math.round((t.angle - 90 + 360) % 360 * 6e4))]), t.scaled !== void 0 && n.push(["scaled", D(t.scaled)]), e.open(I("lin"), n, !0);
745
+ t.angle !== void 0 && n.push(["ang", String(Math.round((t.angle - 90 + 360) % 360 * 6e4))]), t.scaled !== void 0 && n.push(["scaled", O(t.scaled)]), e.open(L("lin"), n, !0);
744
746
  } else if (t.gradientType !== void 0) {
745
747
  let n = t.gradientType === o.GradientType.Path ? "circle" : t.gradientType;
746
- t.focus ? (e.open(I("path"), [["path", n]]), He(e, "fillToRect", {
748
+ t.focus ? (e.open(L("path"), [["path", n]]), He(e, "fillToRect", {
747
749
  left: 100 * t.focus.left,
748
750
  top: 100 * t.focus.top,
749
751
  right: 100 * (1 - t.focus.right),
750
752
  bottom: 100 * (1 - t.focus.bottom)
751
- }), e.close(I("path"))) : e.open(I("path"), [["path", n]], !0);
753
+ }), e.close(L("path"))) : e.open(L("path"), [["path", n]], !0);
752
754
  }
753
- t.tileRect && He(e, "tileRect", t.tileRect), e.close(I("gradFill"));
755
+ t.tileRect && He(e, "tileRect", t.tileRect), e.close(L("gradFill"));
754
756
  })(e, t);
755
757
  return;
756
758
  case o.Type.Pattern: {
757
759
  let n = t, r = n.patternType === void 0 ? [] : [["prst", n.patternType]];
758
- n.foreground === void 0 && n.background === void 0 ? e.open(I("pattFill"), r, !0) : (e.open(I("pattFill"), r), n.foreground !== void 0 && ze(e, "fgClr", n.foreground), n.background !== void 0 && ze(e, "bgClr", n.background), e.close(I("pattFill")));
760
+ n.foreground === void 0 && n.background === void 0 ? e.open(L("pattFill"), r, !0) : (e.open(L("pattFill"), r), n.foreground !== void 0 && ze(e, "fgClr", n.foreground), n.background !== void 0 && ze(e, "bgClr", n.background), e.close(L("pattFill")));
759
761
  return;
760
762
  }
761
763
  }
@@ -770,10 +772,10 @@ var c = [
770
772
  tags: ["effectLst"],
771
773
  key: "effects",
772
774
  ns: "a",
773
- read: (e) => S(e).length === 0 && T(e).length === 0 ? [] : void 0,
775
+ read: (e) => S(e).length === 0 && E(e).length === 0 ? [] : void 0,
774
776
  write: (e, t) => {
775
777
  if (t.length > 0) throw Error("A chart cannot write effects yet.");
776
- e.open(I("effectLst"), null, !0);
778
+ e.open(L("effectLst"), null, !0);
777
779
  }
778
780
  }, qe = {
779
781
  rnd: "round",
@@ -784,7 +786,7 @@ var c = [
784
786
  key: `${t}Type`,
785
787
  ns: "a",
786
788
  read: (e) => {
787
- let t = L(e, [
789
+ let t = R(e, [
788
790
  "type",
789
791
  "w",
790
792
  "len"
@@ -798,7 +800,7 @@ var c = [
798
800
  "w",
799
801
  "len"
800
802
  ]) n[e] !== void 0 && r.push([e, n[e]]);
801
- t.open(I(e), r, !0);
803
+ t.open(L(e), r, !0);
802
804
  },
803
805
  get: (e) => {
804
806
  let n = {};
@@ -809,10 +811,10 @@ var c = [
809
811
  }
810
812
  }), Ye = {
811
813
  attributes: [
812
- F("w", "int", "width", 12700),
814
+ I("w", "int", "width", 12700),
813
815
  Ae("cap", "lineCap", (e) => qe[e], (e) => Object.keys(qe).find((t) => qe[t] === e)),
814
- F("cmpd", "str", "compound"),
815
- F("algn", "str", "align")
816
+ I("cmpd", "str", "compound"),
817
+ I("algn", "str", "align")
816
818
  ],
817
819
  fields: [
818
820
  Ge("fill"),
@@ -822,24 +824,24 @@ var c = [
822
824
  ns: "a",
823
825
  read: (e) => {
824
826
  if (e.name === "prstDash") {
825
- let t = L(e, ["val"]);
827
+ let t = R(e, ["val"]);
826
828
  return t?.val !== void 0 && S(e).length === 0 ? t.val : void 0;
827
829
  }
828
- if (T(e).length > 0) return;
830
+ if (E(e).length > 0) return;
829
831
  let t = [];
830
832
  for (let n of S(e)) {
831
- let e = n.name === "ds" ? L(n, ["d", "sp"]) : null;
832
- if (!e || !R.test(e.d ?? "") || !R.test(e.sp ?? "")) return;
833
+ let e = n.name === "ds" ? R(n, ["d", "sp"]) : null;
834
+ if (!e || !z.test(e.d ?? "") || !z.test(e.sp ?? "")) return;
833
835
  t.push(Number(e.d) / 1e3, Number(e.sp) / 1e3);
834
836
  }
835
837
  return t;
836
838
  },
837
839
  write: (e, t) => {
838
840
  if (typeof t != "string") {
839
- e.open(I("custDash"));
840
- for (let n = 0; n < t.length; n += 2) e.open(I("ds"), [["d", String(Math.round(1e3 * t[n]))], ["sp", String(Math.round(1e3 * t[n + 1]))]], !0);
841
- e.close(I("custDash"));
842
- } else e.val(I("prstDash"), t);
841
+ e.open(L("custDash"));
842
+ for (let n = 0; n < t.length; n += 2) e.open(L("ds"), [["d", String(Math.round(1e3 * t[n]))], ["sp", String(Math.round(1e3 * t[n + 1]))]], !0);
843
+ e.close(L("custDash"));
844
+ } else e.val(L("prstDash"), t);
843
845
  }
844
846
  },
845
847
  {
@@ -851,14 +853,14 @@ var c = [
851
853
  key: "lineJoin",
852
854
  ns: "a",
853
855
  read: (e) => {
854
- let t = L(e, e.name === "miter" ? ["lim"] : []);
855
- if (t && !(S(e).length > 0) && (t.lim === void 0 || R.test(t.lim))) return {
856
+ let t = R(e, e.name === "miter" ? ["lim"] : []);
857
+ if (t && !(S(e).length > 0) && (t.lim === void 0 || z.test(t.lim))) return {
856
858
  join: e.name,
857
859
  limit: t.lim === void 0 ? void 0 : Number(t.lim) / 1e5
858
860
  };
859
861
  },
860
862
  write: (e, t) => {
861
- e.open(I(t.join), t.limit === void 0 ? null : [["lim", String(Math.round(1e5 * t.limit))]], !0);
863
+ e.open(L(t.join), t.limit === void 0 ? null : [["lim", String(Math.round(1e5 * t.limit))]], !0);
862
864
  },
863
865
  get: (e) => e.lineJoin ? {
864
866
  join: e.lineJoin,
@@ -871,7 +873,7 @@ var c = [
871
873
  Je("headEnd", "head"),
872
874
  Je("tailEnd", "tail")
873
875
  ]
874
- }, Xe = (e) => je(P("ln", Ye, e, { ns: "a" })), Ze = { fields: [
876
+ }, Xe = (e) => je(F("ln", Ye, e, { ns: "a" })), Ze = { fields: [
875
877
  Ge("fill"),
876
878
  Xe("stroke"),
877
879
  Ke
@@ -880,29 +882,29 @@ var c = [
880
882
  key: t,
881
883
  ns: "a",
882
884
  read: (e) => {
883
- let t = L(e, ["typeface"]);
885
+ let t = R(e, ["typeface"]);
884
886
  if (!(t?.typeface === void 0 || S(e).length > 0)) return n && t.typeface === `+mn-${n}` ? s.ThemeFamily.Body : n && t.typeface === `+mj-${n}` ? s.ThemeFamily.Heading : t.typeface;
885
887
  },
886
888
  write: (t, r) => {
887
889
  let i = n ? r === s.ThemeFamily.Body ? `+mn-${n}` : r === s.ThemeFamily.Heading ? `+mj-${n}` : r : r;
888
- t.open(I(e), [["typeface", i]], !0);
890
+ t.open(L(e), [["typeface", i]], !0);
889
891
  }
890
892
  }), $e = (e, t, n) => {
891
893
  let r = Object.fromEntries(Object.entries(n).map(([e, t]) => [t, e]));
892
894
  return Ae(e, t, (e) => r[e], (e) => n[e] ?? e);
893
895
  }, et = {
894
896
  attributes: [
895
- F("lang", "str", "language"),
896
- F("altLang", "str", "alternateLanguage"),
897
- F("sz", "int", "size", 100),
897
+ I("lang", "str", "language"),
898
+ I("altLang", "str", "alternateLanguage"),
899
+ I("sz", "int", "size", 100),
898
900
  Ae("b", "weight", (e) => {
899
- let t = E(e);
901
+ let t = D(e);
900
902
  return t === null ? void 0 : t ? 700 : 400;
901
- }, (e) => D(e >= 600)),
903
+ }, (e) => O(e >= 600)),
902
904
  Ae("i", "style", (e) => {
903
- let t = E(e);
905
+ let t = D(e);
904
906
  return t === null ? void 0 : t ? "italic" : "normal";
905
- }, (e) => D(e === "italic")),
907
+ }, (e) => O(e === "italic")),
906
908
  $e("u", "underline", {
907
909
  none: "none",
908
910
  words: "words",
@@ -928,15 +930,15 @@ var c = [
928
930
  single: "sngStrike",
929
931
  double: "dblStrike"
930
932
  }),
931
- F("kern", "int", "kerning", 100),
933
+ I("kern", "int", "kerning", 100),
932
934
  $e("cap", "capitals", {
933
935
  none: "none",
934
936
  small: "small",
935
937
  all: "all"
936
938
  }),
937
- F("spc", "int", "letterSpacing", 100),
938
- F("normalizeH", "bool", "normalizeHeight"),
939
- F("baseline", "int", "baseline", 1e3)
939
+ I("spc", "int", "letterSpacing", 100),
940
+ I("normalizeH", "bool", "normalizeHeight"),
941
+ I("baseline", "int", "baseline", 1e3)
940
942
  ],
941
943
  fields: [
942
944
  Xe("outline"),
@@ -948,16 +950,16 @@ var c = [
948
950
  Qe("sym", "symbol")
949
951
  ]
950
952
  }, tt = {
951
- attributes: [F("algn", "str", "align"), F("rtl", "bool", "rtl")],
952
- fields: [P("defRPr", et, "defaultRun", { ns: "a" })]
953
- }, nt = { fields: [P("rPr", et, "rPr", { ns: "a" }), {
953
+ attributes: [I("algn", "str", "align"), I("rtl", "bool", "rtl")],
954
+ fields: [F("defRPr", et, "defaultRun", { ns: "a" })]
955
+ }, nt = { fields: [F("rPr", et, "rPr", { ns: "a" }), {
954
956
  tags: ["t"],
955
957
  key: "text",
956
958
  ns: "a",
957
959
  read: (e) => {
958
960
  if (S(e).length > 0) return;
959
961
  let t = !1;
960
- for (let [n, r] of T(e)) if (n !== "xmlns" && !n.startsWith("xmlns:")) {
962
+ for (let [n, r] of E(e)) if (n !== "xmlns" && !n.startsWith("xmlns:")) {
961
963
  if (n !== "xml:space" || r !== "preserve") return;
962
964
  t = !0;
963
965
  }
@@ -974,14 +976,14 @@ var c = [
974
976
  e.text = t.text, t.preserve && (e.preserveSpace = !0);
975
977
  },
976
978
  write: (e, t) => {
977
- let n = I("t"), r = t.preserve ? [["xml:space", "preserve"]] : null;
979
+ let n = L("t"), r = t.preserve ? [["xml:space", "preserve"]] : null;
978
980
  t.text === "" ? e.open(n, r, !0) : e.open(n, r).text(t.text).close(n);
979
981
  }
980
982
  }] }, rt = {
981
- attributes: [F("id", "str", "id"), F("type", "str", "type")],
983
+ attributes: [I("id", "str", "id"), I("type", "str", "type")],
982
984
  fields: nt.fields
983
- }, it = { fields: [P("rPr", et, "rPr", { ns: "a" })] }, at = { fields: [
984
- P("pPr", tt, "pPr", { ns: "a" }),
985
+ }, it = { fields: [F("rPr", et, "rPr", { ns: "a" })] }, at = { fields: [
986
+ F("pPr", tt, "pPr", { ns: "a" }),
985
987
  {
986
988
  tags: [
987
989
  "r",
@@ -993,15 +995,15 @@ var c = [
993
995
  many: !0,
994
996
  read: (e, t, n) => {
995
997
  if (e.name === "br") return {
996
- ...k(e, it, t, n),
998
+ ...A(e, it, t, n),
997
999
  text: "\n",
998
1000
  break: !0
999
1001
  };
1000
1002
  if (e.name === "r") {
1001
- let r = k(e, nt, t, n);
1003
+ let r = A(e, nt, t, n);
1002
1004
  return r.text === void 0 ? void 0 : r;
1003
1005
  }
1004
- let { id: r, type: i, ...a } = k(e, rt, t, n);
1006
+ let { id: r, type: i, ...a } = A(e, rt, t, n);
1005
1007
  return r === void 0 ? void 0 : (a.text ??= "", a.field = i === void 0 ? { id: r } : {
1006
1008
  id: r,
1007
1009
  type: i
@@ -1010,467 +1012,480 @@ var c = [
1010
1012
  write: (e, t) => {
1011
1013
  if (t.break) {
1012
1014
  let { text: n, break: r, ...i } = t;
1013
- A(e, I("br"), i, it);
1015
+ j(e, L("br"), i, it);
1014
1016
  } else if (t.field) {
1015
1017
  let { field: n, ...r } = t;
1016
- A(e, I("fld"), {
1018
+ j(e, L("fld"), {
1017
1019
  ...r,
1018
1020
  id: n.id,
1019
1021
  type: n.type
1020
1022
  }, rt);
1021
- } else A(e, I("r"), t, nt);
1023
+ } else j(e, L("r"), t, nt);
1022
1024
  }
1023
1025
  },
1024
- P("endParaRPr", et, "endRun", { ns: "a" })
1026
+ F("endParaRPr", et, "endRun", { ns: "a" })
1025
1027
  ] }, ot = { fields: [
1026
- P("bodyPr", {
1028
+ F("bodyPr", {
1027
1029
  attributes: [
1028
- F("rot", "int", "rotation", 6e4),
1029
- F("spcFirstLastPara", "bool", "spcFirstLastPara"),
1030
- F("vertOverflow", "str", "vertOverflow"),
1031
- F("horzOverflow", "str", "horzOverflow"),
1032
- F("vert", "str", "vert"),
1033
- F("wrap", "str", "wrap"),
1034
- F("lIns", "int", "lIns"),
1035
- F("tIns", "int", "tIns"),
1036
- F("rIns", "int", "rIns"),
1037
- F("bIns", "int", "bIns"),
1038
- F("anchor", "str", "anchor"),
1039
- F("anchorCtr", "bool", "anchorCtr")
1030
+ I("rot", "int", "rotation", 6e4),
1031
+ I("spcFirstLastPara", "bool", "spcFirstLastPara"),
1032
+ I("vertOverflow", "str", "vertOverflow"),
1033
+ I("horzOverflow", "str", "horzOverflow"),
1034
+ I("vert", "str", "vert"),
1035
+ I("wrap", "str", "wrap"),
1036
+ I("lIns", "int", "lIns"),
1037
+ I("tIns", "int", "tIns"),
1038
+ I("rIns", "int", "rIns"),
1039
+ I("bIns", "int", "bIns"),
1040
+ I("anchor", "str", "anchor"),
1041
+ I("anchorCtr", "bool", "anchorCtr")
1040
1042
  ],
1041
1043
  fields: []
1042
1044
  }, "bodyPr", { ns: "a" }),
1043
- P("lstStyle", { fields: [] }, "lstStyle", { ns: "a" }),
1044
- P("p", at, "paragraphs", {
1045
+ F("lstStyle", { fields: [] }, "lstStyle", { ns: "a" }),
1046
+ F("p", at, "paragraphs", {
1045
1047
  ns: "a",
1046
1048
  many: !0
1047
1049
  })
1048
- ] }, z = () => P("spPr", Ze), B = () => P("txPr", ot), st = {
1049
- attributes: [F("idx", "int"), F("formatCode", "str")],
1050
- fields: [N("v")]
1050
+ ] }, B = () => F("spPr", Ze), V = () => F("txPr", ot), st = {
1051
+ attributes: [I("idx", "int"), I("formatCode", "str")],
1052
+ fields: [P("v")]
1051
1053
  }, ct = { fields: [
1052
- N("formatCode"),
1053
- M("ptCount", "int"),
1054
- P("pt", st, "points", { many: !0 })
1055
- ] }, lt = { fields: [M("ptCount", "int"), P("pt", st, "points", { many: !0 })] }, ut = { fields: [M("ptCount", "int"), P("lvl", { fields: [P("pt", st, "points", { many: !0 })] }, "levels", { many: !0 })] }, dt = { fields: [N("f"), P("numCache", ct, "cache")] }, ft = { fields: [N("f"), P("strCache", lt, "cache")] }, pt = { fields: [N("f"), P("multiLvlStrCache", ut, "cache")] }, mt = P("datalabelsRange", { fields: [N("f", "f", "c15"), P("dlblRangeCache", lt, "cache", { ns: "c15" })] }, "datalabelsRange", { ns: "c15" }), ht = {
1054
+ P("formatCode"),
1055
+ N("ptCount", "int"),
1056
+ F("pt", st, "points", { many: !0 })
1057
+ ] }, lt = { fields: [N("ptCount", "int"), F("pt", st, "points", { many: !0 })] }, ut = { fields: [N("ptCount", "int"), F("lvl", { fields: [F("pt", st, "points", { many: !0 })] }, "levels", { many: !0 })] }, dt = { fields: [P("f"), F("numCache", ct, "cache")] }, ft = { fields: [P("f"), F("strCache", lt, "cache")] }, pt = { fields: [P("f"), F("multiLvlStrCache", ut, "cache")] }, mt = F("datalabelsRange", { fields: [P("f", "f", "c15"), F("dlblRangeCache", lt, "cache", { ns: "c15" })] }, "datalabelsRange", { ns: "c15" }), ht = {
1056
1058
  ...mt,
1057
- read: (e, t, n) => t[w.c15] === pe ? mt.read(e, t, n) : void 0
1058
- }, gt = M("showDataLabelsRange", "bool", "showDataLabelsRange", "c15"), _t = {
1059
+ read: (e, t, n) => t[T.c15] === fe ? mt.read(e, t, n) : void 0
1060
+ }, gt = N("showDataLabelsRange", "bool", "showDataLabelsRange", "c15"), _t = {
1059
1061
  ...gt,
1060
- read: (e, t, n) => t[w.c15] === pe ? gt.read(e, t, n) : void 0
1061
- }, vt = { fields: [P("ext", {
1062
- attributes: [F("uri", "str")],
1063
- fields: [ht, _t],
1064
- declares: (e) => e.datalabelsRange !== void 0 || e.showDataLabelsRange !== void 0 ? [[`xmlns:${w.c15}`, pe]] : []
1065
- }, "extensions", { many: !0 })] }, yt = { fields: [
1066
- P("multiLvlStrRef", pt),
1067
- P("numRef", dt),
1068
- P("numLit", ct),
1069
- P("strRef", ft),
1070
- P("strLit", lt)
1071
- ] }, bt = { fields: [P("strRef", ft), N("v")] }, xt = { fields: [P("strRef", ft), P("rich", ot)] }, St = {
1072
- attributes: [F("formatCode", "str"), F("sourceLinked", "bool")],
1062
+ read: (e, t, n) => t[T.c15] === fe ? gt.read(e, t, n) : void 0
1063
+ }, vt = F("dataDisplayOptions16", { fields: [N("dispNaAsBlank", "bool", "dispNaAsBlank", "c16r3")] }, "dataDisplayOptions16", { ns: "c16r3" }), yt = {
1064
+ ...vt,
1065
+ key: "dispNaAsBlank",
1066
+ read: (e, t, n) => {
1067
+ if (t[T.c16r3] !== pe) return;
1068
+ let r = vt.read(e, t, n);
1069
+ return r.unknown === void 0 ? r.dispNaAsBlank : void 0;
1070
+ },
1071
+ write: (e, t) => vt.write(e, { dispNaAsBlank: t })
1072
+ }, bt = { fields: [F("ext", {
1073
+ attributes: [I("uri", "str")],
1074
+ fields: [
1075
+ ht,
1076
+ _t,
1077
+ yt
1078
+ ],
1079
+ declares: (e) => e.datalabelsRange !== void 0 || e.showDataLabelsRange !== void 0 ? [[`xmlns:${T.c15}`, fe]] : e.dispNaAsBlank === void 0 ? [] : [[`xmlns:${T.c16r3}`, pe]]
1080
+ }, "extensions", { many: !0 })] }, xt = { fields: [
1081
+ F("multiLvlStrRef", pt),
1082
+ F("numRef", dt),
1083
+ F("numLit", ct),
1084
+ F("strRef", ft),
1085
+ F("strLit", lt)
1086
+ ] }, St = { fields: [F("strRef", ft), P("v")] }, Ct = { fields: [F("strRef", ft), F("rich", ot)] }, wt = {
1087
+ attributes: [I("formatCode", "str"), I("sourceLinked", "bool")],
1073
1088
  fields: []
1074
- }, V = { fields: [P("manualLayout", { fields: [
1075
- M("layoutTarget", "str"),
1076
- M("xMode", "str"),
1077
- M("yMode", "str"),
1078
- M("wMode", "str"),
1079
- M("hMode", "str"),
1080
- M("x", "num"),
1081
- M("y", "num"),
1082
- M("w", "num"),
1083
- M("h", "num")
1084
- ] })] }, Ct = { fields: [
1085
- P("tx", xt),
1086
- P("layout", V),
1087
- M("overlay", "bool"),
1088
- z(),
1089
+ }, H = { fields: [F("manualLayout", { fields: [
1090
+ N("layoutTarget", "str"),
1091
+ N("xMode", "str"),
1092
+ N("yMode", "str"),
1093
+ N("wMode", "str"),
1094
+ N("hMode", "str"),
1095
+ N("x", "num"),
1096
+ N("y", "num"),
1097
+ N("w", "num"),
1098
+ N("h", "num")
1099
+ ] })] }, Tt = { fields: [
1100
+ F("tx", Ct),
1101
+ F("layout", H),
1102
+ N("overlay", "bool"),
1103
+ B(),
1104
+ V()
1105
+ ] }, Et = { fields: [B()] }, Dt = { fields: [
1106
+ N("symbol", "str"),
1107
+ N("size", "int"),
1108
+ B()
1109
+ ] }, Ot = { fields: [
1110
+ N("idx", "int"),
1111
+ N("invertIfNegative", "bool"),
1112
+ F("marker", Dt),
1113
+ N("bubble3D", "bool"),
1114
+ N("explosion", "int"),
1089
1115
  B()
1090
- ] }, wt = { fields: [z()] }, Tt = { fields: [
1091
- M("symbol", "str"),
1092
- M("size", "int"),
1093
- z()
1094
- ] }, Et = { fields: [
1095
- M("idx", "int"),
1096
- M("invertIfNegative", "bool"),
1097
- P("marker", Tt),
1098
- M("bubble3D", "bool"),
1099
- M("explosion", "int"),
1100
- z()
1101
- ] }, Dt = () => [
1102
- P("numFmt", St),
1103
- z(),
1116
+ ] }, kt = () => [
1117
+ F("numFmt", wt),
1104
1118
  B(),
1105
- M("dLblPos", "str"),
1106
- M("showLegendKey", "bool"),
1107
- M("showVal", "bool"),
1108
- M("showCatName", "bool"),
1109
- M("showSerName", "bool"),
1110
- M("showPercent", "bool"),
1111
- M("showBubbleSize", "bool"),
1112
- N("separator")
1113
- ], Ot = { fields: [
1114
- P("dLbl", { fields: [
1115
- M("idx", "int"),
1116
- M("delete", "bool"),
1117
- P("layout", V),
1118
- P("tx", xt),
1119
- ...Dt(),
1120
- P("extLst", vt)
1119
+ V(),
1120
+ N("dLblPos", "str"),
1121
+ N("showLegendKey", "bool"),
1122
+ N("showVal", "bool"),
1123
+ N("showCatName", "bool"),
1124
+ N("showSerName", "bool"),
1125
+ N("showPercent", "bool"),
1126
+ N("showBubbleSize", "bool"),
1127
+ P("separator")
1128
+ ], At = { fields: [
1129
+ F("dLbl", { fields: [
1130
+ N("idx", "int"),
1131
+ N("delete", "bool"),
1132
+ F("layout", H),
1133
+ F("tx", Ct),
1134
+ ...kt(),
1135
+ F("extLst", bt)
1121
1136
  ] }, "labels", { many: !0 }),
1122
- M("delete", "bool"),
1123
- ...Dt(),
1124
- M("showLeaderLines", "bool"),
1125
- P("leaderLines", wt),
1126
- P("extLst", vt)
1127
- ] }, kt = { fields: [
1128
- P("layout", V),
1129
- P("tx", xt),
1130
- P("numFmt", St),
1131
- z(),
1132
- B()
1133
- ] }, At = { fields: [
1134
- N("name"),
1135
- z(),
1136
- M("trendlineType", "str"),
1137
- M("order", "int"),
1138
- M("period", "int"),
1139
- M("forward", "num"),
1140
- M("backward", "num"),
1141
- M("intercept", "num"),
1142
- M("dispRSqr", "bool"),
1143
- M("dispEq", "bool"),
1144
- P("trendlineLbl", kt)
1137
+ N("delete", "bool"),
1138
+ ...kt(),
1139
+ N("showLeaderLines", "bool"),
1140
+ F("leaderLines", Et),
1141
+ F("extLst", bt)
1145
1142
  ] }, jt = { fields: [
1146
- M("errDir", "str"),
1147
- M("errBarType", "str"),
1148
- M("errValType", "str"),
1149
- M("noEndCap", "bool"),
1150
- P("plus", yt),
1151
- P("minus", yt),
1152
- M("val", "num"),
1153
- z(),
1154
- P("extLst", vt)
1143
+ F("layout", H),
1144
+ F("tx", Ct),
1145
+ F("numFmt", wt),
1146
+ B(),
1147
+ V()
1155
1148
  ] }, Mt = { fields: [
1156
- M("gapWidth", "int"),
1157
- P("upBars", wt),
1158
- P("downBars", wt)
1159
- ] }, H = () => [
1160
- M("idx", "int"),
1161
- M("order", "int"),
1162
- P("tx", bt),
1163
- z()
1164
- ], U = () => P("dPt", Et, "points", { many: !0 }), W = () => P("dLbls", Ot), Nt = () => P("trendline", At, "trendlines", { many: !0 }), Pt = () => P("errBars", jt, "errBars", { many: !0 }), G = (e) => P(e, yt), K = () => P("extLst", vt), Ft = {
1149
+ P("name"),
1150
+ B(),
1151
+ N("trendlineType", "str"),
1152
+ N("order", "int"),
1153
+ N("period", "int"),
1154
+ N("forward", "num"),
1155
+ N("backward", "num"),
1156
+ N("intercept", "num"),
1157
+ N("dispRSqr", "bool"),
1158
+ N("dispEq", "bool"),
1159
+ F("trendlineLbl", jt)
1160
+ ] }, Nt = { fields: [
1161
+ N("errDir", "str"),
1162
+ N("errBarType", "str"),
1163
+ N("errValType", "str"),
1164
+ N("noEndCap", "bool"),
1165
+ F("plus", xt),
1166
+ F("minus", xt),
1167
+ N("val", "num"),
1168
+ B(),
1169
+ F("extLst", bt)
1170
+ ] }, Pt = { fields: [
1171
+ N("gapWidth", "int"),
1172
+ F("upBars", Et),
1173
+ F("downBars", Et)
1174
+ ] }, U = () => [
1175
+ N("idx", "int"),
1176
+ N("order", "int"),
1177
+ F("tx", St),
1178
+ B()
1179
+ ], W = () => F("dPt", Ot, "points", { many: !0 }), G = () => F("dLbls", At), Ft = () => F("trendline", Mt, "trendlines", { many: !0 }), It = () => F("errBars", Nt, "errBars", { many: !0 }), K = (e) => F(e, xt), q = () => F("extLst", bt), Lt = {
1165
1180
  bar: { fields: [
1166
- ...H(),
1167
- M("invertIfNegative", "bool"),
1168
- U(),
1181
+ ...U(),
1182
+ N("invertIfNegative", "bool"),
1169
1183
  W(),
1170
- Nt(),
1171
- Pt(),
1172
- G("cat"),
1173
- G("val"),
1174
- M("shape", "str"),
1175
- K()
1184
+ G(),
1185
+ Ft(),
1186
+ It(),
1187
+ K("cat"),
1188
+ K("val"),
1189
+ N("shape", "str"),
1190
+ q()
1176
1191
  ] },
1177
1192
  line: { fields: [
1178
- ...H(),
1179
- P("marker", Tt),
1180
- U(),
1193
+ ...U(),
1194
+ F("marker", Dt),
1181
1195
  W(),
1182
- Nt(),
1183
- Pt(),
1184
- G("cat"),
1185
- G("val"),
1186
- M("smooth", "bool"),
1187
- K()
1196
+ G(),
1197
+ Ft(),
1198
+ It(),
1199
+ K("cat"),
1200
+ K("val"),
1201
+ N("smooth", "bool"),
1202
+ q()
1188
1203
  ] },
1189
1204
  area: { fields: [
1190
- ...H(),
1191
- U(),
1205
+ ...U(),
1192
1206
  W(),
1193
- Nt(),
1194
- Pt(),
1195
- G("cat"),
1196
- G("val"),
1197
- K()
1207
+ G(),
1208
+ Ft(),
1209
+ It(),
1210
+ K("cat"),
1211
+ K("val"),
1212
+ q()
1198
1213
  ] },
1199
1214
  pie: { fields: [
1200
- ...H(),
1201
- M("explosion", "int"),
1202
- U(),
1215
+ ...U(),
1216
+ N("explosion", "int"),
1203
1217
  W(),
1204
- G("cat"),
1205
- G("val"),
1206
- K()
1218
+ G(),
1219
+ K("cat"),
1220
+ K("val"),
1221
+ q()
1207
1222
  ] },
1208
1223
  scatter: { fields: [
1209
- ...H(),
1210
- P("marker", Tt),
1211
- U(),
1224
+ ...U(),
1225
+ F("marker", Dt),
1212
1226
  W(),
1213
- Nt(),
1214
- Pt(),
1215
- G("xVal"),
1216
- G("yVal"),
1217
- M("smooth", "bool"),
1218
- K()
1227
+ G(),
1228
+ Ft(),
1229
+ It(),
1230
+ K("xVal"),
1231
+ K("yVal"),
1232
+ N("smooth", "bool"),
1233
+ q()
1219
1234
  ] },
1220
1235
  bubble: { fields: [
1221
- ...H(),
1222
- M("invertIfNegative", "bool"),
1223
- U(),
1236
+ ...U(),
1237
+ N("invertIfNegative", "bool"),
1224
1238
  W(),
1225
- Nt(),
1226
- Pt(),
1227
- G("xVal"),
1228
- G("yVal"),
1229
- G("bubbleSize"),
1230
- M("bubble3D", "bool"),
1231
- K()
1239
+ G(),
1240
+ Ft(),
1241
+ It(),
1242
+ K("xVal"),
1243
+ K("yVal"),
1244
+ K("bubbleSize"),
1245
+ N("bubble3D", "bool"),
1246
+ q()
1232
1247
  ] },
1233
1248
  radar: { fields: [
1234
- ...H(),
1235
- P("marker", Tt),
1236
- U(),
1249
+ ...U(),
1250
+ F("marker", Dt),
1237
1251
  W(),
1238
- G("cat"),
1239
- G("val"),
1240
- K()
1252
+ G(),
1253
+ K("cat"),
1254
+ K("val"),
1255
+ q()
1241
1256
  ] },
1242
1257
  surface: { fields: [
1243
- ...H(),
1244
- G("cat"),
1245
- G("val"),
1246
- K()
1258
+ ...U(),
1259
+ K("cat"),
1260
+ K("val"),
1261
+ q()
1247
1262
  ] }
1248
- }, q = (e) => P("ser", Ft[e], "series", { many: !0 }), J = () => ({
1249
- ...M("axId", "int", "axIds"),
1263
+ }, J = (e) => F("ser", Lt[e], "series", { many: !0 }), Y = () => ({
1264
+ ...N("axId", "int", "axIds"),
1250
1265
  many: !0
1251
- }), Y = (e, t) => P(e, wt, e, { many: t }), It = {
1266
+ }), X = (e, t) => F(e, Et, e, { many: t }), Rt = {
1252
1267
  tags: ["custSplit"],
1253
1268
  key: "custSplit",
1254
1269
  ns: "c",
1255
1270
  read: (e, t, n) => {
1256
- let r = k(e, { fields: [{
1257
- ...M("secondPiePt", "int", "points"),
1271
+ let r = A(e, { fields: [{
1272
+ ...N("secondPiePt", "int", "points"),
1258
1273
  many: !0
1259
1274
  }] }, t, n);
1260
1275
  return r.unknown ? void 0 : r.points ?? [];
1261
1276
  },
1262
1277
  write: (e, t) => {
1263
- A(e, "c:custSplit", { points: t }, { fields: [{
1264
- ...M("secondPiePt", "int", "points"),
1278
+ j(e, "c:custSplit", { points: t }, { fields: [{
1279
+ ...N("secondPiePt", "int", "points"),
1265
1280
  many: !0
1266
1281
  }] });
1267
1282
  }
1268
- }, Lt = { fields: [M("idx", "int"), z()] }, Rt = {
1283
+ }, zt = { fields: [N("idx", "int"), B()] }, Bt = {
1269
1284
  tags: ["bandFmts"],
1270
1285
  key: "bandFmts",
1271
1286
  ns: "c",
1272
1287
  read: (e, t, n) => {
1273
- let r = k(e, { fields: [P("bandFmt", Lt, "formats", { many: !0 })] }, t, n);
1288
+ let r = A(e, { fields: [F("bandFmt", zt, "formats", { many: !0 })] }, t, n);
1274
1289
  return r.unknown ? void 0 : r.formats ?? [];
1275
1290
  },
1276
1291
  write: (e, t) => {
1277
- A(e, "c:bandFmts", { formats: t }, { fields: [P("bandFmt", Lt, "formats", { many: !0 })] });
1292
+ j(e, "c:bandFmts", { formats: t }, { fields: [F("bandFmt", zt, "formats", { many: !0 })] });
1278
1293
  }
1279
- }, zt = {
1294
+ }, Vt = {
1280
1295
  areaChart: {
1281
1296
  type: "area",
1282
1297
  codec: { fields: [
1283
- M("grouping", "str"),
1284
- M("varyColors", "bool"),
1285
- q("area"),
1286
- W(),
1287
- Y("dropLines"),
1288
- J()
1298
+ N("grouping", "str"),
1299
+ N("varyColors", "bool"),
1300
+ J("area"),
1301
+ G(),
1302
+ X("dropLines"),
1303
+ Y()
1289
1304
  ] }
1290
1305
  },
1291
1306
  area3DChart: {
1292
1307
  type: "area",
1293
1308
  is3D: !0,
1294
1309
  codec: { fields: [
1295
- M("grouping", "str"),
1296
- M("varyColors", "bool"),
1297
- q("area"),
1298
- W(),
1299
- Y("dropLines"),
1300
- M("gapDepth", "int"),
1301
- J()
1310
+ N("grouping", "str"),
1311
+ N("varyColors", "bool"),
1312
+ J("area"),
1313
+ G(),
1314
+ X("dropLines"),
1315
+ N("gapDepth", "int"),
1316
+ Y()
1302
1317
  ] }
1303
1318
  },
1304
1319
  lineChart: {
1305
1320
  type: "line",
1306
1321
  codec: { fields: [
1307
- M("grouping", "str"),
1308
- M("varyColors", "bool"),
1309
- q("line"),
1310
- W(),
1311
- Y("dropLines"),
1312
- Y("hiLowLines"),
1313
- P("upDownBars", Mt),
1314
- M("marker", "bool"),
1315
- M("smooth", "bool"),
1316
- J()
1322
+ N("grouping", "str"),
1323
+ N("varyColors", "bool"),
1324
+ J("line"),
1325
+ G(),
1326
+ X("dropLines"),
1327
+ X("hiLowLines"),
1328
+ F("upDownBars", Pt),
1329
+ N("marker", "bool"),
1330
+ N("smooth", "bool"),
1331
+ Y()
1317
1332
  ] }
1318
1333
  },
1319
1334
  line3DChart: {
1320
1335
  type: "line",
1321
1336
  is3D: !0,
1322
1337
  codec: { fields: [
1323
- M("grouping", "str"),
1324
- M("varyColors", "bool"),
1325
- q("line"),
1326
- W(),
1327
- Y("dropLines"),
1328
- M("gapDepth", "int"),
1329
- J()
1338
+ N("grouping", "str"),
1339
+ N("varyColors", "bool"),
1340
+ J("line"),
1341
+ G(),
1342
+ X("dropLines"),
1343
+ N("gapDepth", "int"),
1344
+ Y()
1330
1345
  ] }
1331
1346
  },
1332
1347
  stockChart: {
1333
1348
  type: "stock",
1334
1349
  codec: { fields: [
1335
- q("line"),
1336
- W(),
1337
- Y("dropLines"),
1338
- Y("hiLowLines"),
1339
- P("upDownBars", Mt),
1340
- J()
1350
+ J("line"),
1351
+ G(),
1352
+ X("dropLines"),
1353
+ X("hiLowLines"),
1354
+ F("upDownBars", Pt),
1355
+ Y()
1341
1356
  ] }
1342
1357
  },
1343
1358
  radarChart: {
1344
1359
  type: "radar",
1345
1360
  codec: { fields: [
1346
- M("radarStyle", "str"),
1347
- M("varyColors", "bool"),
1348
- q("radar"),
1349
- W(),
1350
- J()
1361
+ N("radarStyle", "str"),
1362
+ N("varyColors", "bool"),
1363
+ J("radar"),
1364
+ G(),
1365
+ Y()
1351
1366
  ] }
1352
1367
  },
1353
1368
  scatterChart: {
1354
1369
  type: "scatter",
1355
1370
  codec: { fields: [
1356
- M("scatterStyle", "str"),
1357
- M("varyColors", "bool"),
1358
- q("scatter"),
1359
- W(),
1360
- J()
1371
+ N("scatterStyle", "str"),
1372
+ N("varyColors", "bool"),
1373
+ J("scatter"),
1374
+ G(),
1375
+ Y()
1361
1376
  ] }
1362
1377
  },
1363
1378
  pieChart: {
1364
1379
  type: "pie",
1365
1380
  codec: { fields: [
1366
- M("varyColors", "bool"),
1367
- q("pie"),
1368
- W(),
1369
- M("firstSliceAng", "int")
1381
+ N("varyColors", "bool"),
1382
+ J("pie"),
1383
+ G(),
1384
+ N("firstSliceAng", "int")
1370
1385
  ] }
1371
1386
  },
1372
1387
  pie3DChart: {
1373
1388
  type: "pie",
1374
1389
  is3D: !0,
1375
1390
  codec: { fields: [
1376
- M("varyColors", "bool"),
1377
- q("pie"),
1378
- W()
1391
+ N("varyColors", "bool"),
1392
+ J("pie"),
1393
+ G()
1379
1394
  ] }
1380
1395
  },
1381
1396
  doughnutChart: {
1382
1397
  type: "doughnut",
1383
1398
  codec: { fields: [
1384
- M("varyColors", "bool"),
1385
- q("pie"),
1386
- W(),
1387
- M("firstSliceAng", "int"),
1388
- M("holeSize", "int")
1399
+ N("varyColors", "bool"),
1400
+ J("pie"),
1401
+ G(),
1402
+ N("firstSliceAng", "int"),
1403
+ N("holeSize", "int")
1389
1404
  ] }
1390
1405
  },
1391
1406
  barChart: {
1392
1407
  type: "bar",
1393
1408
  codec: { fields: [
1394
- M("barDir", "str"),
1395
- M("grouping", "str"),
1396
- M("varyColors", "bool"),
1397
- q("bar"),
1398
- W(),
1399
- M("gapWidth", "int"),
1400
- M("overlap", "int"),
1401
- Y("serLines", !0),
1402
- J()
1409
+ N("barDir", "str"),
1410
+ N("grouping", "str"),
1411
+ N("varyColors", "bool"),
1412
+ J("bar"),
1413
+ G(),
1414
+ N("gapWidth", "int"),
1415
+ N("overlap", "int"),
1416
+ X("serLines", !0),
1417
+ Y()
1403
1418
  ] }
1404
1419
  },
1405
1420
  bar3DChart: {
1406
1421
  type: "bar",
1407
1422
  is3D: !0,
1408
1423
  codec: { fields: [
1409
- M("barDir", "str"),
1410
- M("grouping", "str"),
1411
- M("varyColors", "bool"),
1412
- q("bar"),
1413
- W(),
1414
- M("gapWidth", "int"),
1415
- M("gapDepth", "int"),
1416
- M("shape", "str"),
1417
- J()
1424
+ N("barDir", "str"),
1425
+ N("grouping", "str"),
1426
+ N("varyColors", "bool"),
1427
+ J("bar"),
1428
+ G(),
1429
+ N("gapWidth", "int"),
1430
+ N("gapDepth", "int"),
1431
+ N("shape", "str"),
1432
+ Y()
1418
1433
  ] }
1419
1434
  },
1420
1435
  ofPieChart: {
1421
1436
  type: "ofPie",
1422
1437
  codec: { fields: [
1423
- M("ofPieType", "str"),
1424
- M("varyColors", "bool"),
1425
- q("pie"),
1426
- W(),
1427
- M("gapWidth", "int"),
1428
- M("splitType", "str"),
1429
- M("splitPos", "num"),
1430
- It,
1431
- M("secondPieSize", "int"),
1432
- Y("serLines", !0)
1438
+ N("ofPieType", "str"),
1439
+ N("varyColors", "bool"),
1440
+ J("pie"),
1441
+ G(),
1442
+ N("gapWidth", "int"),
1443
+ N("splitType", "str"),
1444
+ N("splitPos", "num"),
1445
+ Rt,
1446
+ N("secondPieSize", "int"),
1447
+ X("serLines", !0)
1433
1448
  ] }
1434
1449
  },
1435
1450
  surfaceChart: {
1436
1451
  type: "surface",
1437
1452
  codec: { fields: [
1438
- M("wireframe", "bool"),
1439
- q("surface"),
1440
- Rt,
1441
- J()
1453
+ N("wireframe", "bool"),
1454
+ J("surface"),
1455
+ Bt,
1456
+ Y()
1442
1457
  ] }
1443
1458
  },
1444
1459
  surface3DChart: {
1445
1460
  type: "surface",
1446
1461
  is3D: !0,
1447
1462
  codec: { fields: [
1448
- M("wireframe", "bool"),
1449
- q("surface"),
1450
- Rt,
1451
- J()
1463
+ N("wireframe", "bool"),
1464
+ J("surface"),
1465
+ Bt,
1466
+ Y()
1452
1467
  ] }
1453
1468
  },
1454
1469
  bubbleChart: {
1455
1470
  type: "bubble",
1456
1471
  codec: { fields: [
1457
- M("varyColors", "bool"),
1458
- q("bubble"),
1459
- W(),
1460
- M("bubble3D", "bool"),
1461
- M("bubbleScale", "int"),
1462
- M("showNegBubbles", "bool"),
1463
- M("sizeRepresents", "str"),
1464
- J()
1472
+ N("varyColors", "bool"),
1473
+ J("bubble"),
1474
+ G(),
1475
+ N("bubble3D", "bool"),
1476
+ N("bubbleScale", "int"),
1477
+ N("showNegBubbles", "bool"),
1478
+ N("sizeRepresents", "str"),
1479
+ Y()
1465
1480
  ] }
1466
1481
  }
1467
- }, Bt = {
1468
- tags: Object.keys(zt),
1482
+ }, Ht = {
1483
+ tags: Object.keys(Vt),
1469
1484
  key: "groups",
1470
1485
  ns: "c",
1471
1486
  many: !0,
1472
1487
  read: (e, t, n) => {
1473
- let { type: r, is3D: i, codec: a } = zt[e.name], o = k(e, a, t, n);
1488
+ let { type: r, is3D: i, codec: a } = Vt[e.name], o = A(e, a, t, n);
1474
1489
  return o.series ??= [], o.axIds ??= [], i ? {
1475
1490
  type: r,
1476
1491
  is3D: i,
@@ -1481,16 +1496,16 @@ var c = [
1481
1496
  };
1482
1497
  },
1483
1498
  write: (e, t) => {
1484
- let n = ((e) => `${e.type}${e.is3D ? "3D" : ""}Chart`)(t), { type: r, is3D: i, ...a } = Wt(t);
1485
- A(e, `c:${n}`, a, zt[n].codec);
1499
+ let n = ((e) => `${e.type}${e.is3D ? "3D" : ""}Chart`)(t), { type: r, is3D: i, ...a } = Kt(t);
1500
+ j(e, `c:${n}`, a, Vt[n].codec);
1486
1501
  }
1487
- }, Vt = [
1502
+ }, Ut = [
1488
1503
  "ctr",
1489
1504
  "l",
1490
1505
  "r",
1491
1506
  "t",
1492
1507
  "b"
1493
- ], Ht = (e) => {
1508
+ ], Wt = (e) => {
1494
1509
  switch (e.type) {
1495
1510
  case "bar": return e.is3D ? [] : e.grouping === "stacked" || e.grouping === "percentStacked" ? [
1496
1511
  "ctr",
@@ -1502,10 +1517,10 @@ var c = [
1502
1517
  "inBase",
1503
1518
  "outEnd"
1504
1519
  ];
1505
- case "line": return e.is3D ? [] : Vt;
1520
+ case "line": return e.is3D ? [] : Ut;
1506
1521
  case "stock":
1507
1522
  case "scatter":
1508
- case "bubble": return Vt;
1523
+ case "bubble": return Ut;
1509
1524
  case "pie":
1510
1525
  case "ofPie": return [
1511
1526
  "ctr",
@@ -1515,9 +1530,9 @@ var c = [
1515
1530
  ];
1516
1531
  default: return [];
1517
1532
  }
1518
- }, Ut = (e, t) => t?.dLblPos !== void 0 && !e.includes(t.dLblPos), Wt = (e) => {
1519
- let t = Ht(e), n = (e) => {
1520
- if (!Ut(t, e)) return e;
1533
+ }, Gt = (e, t) => t?.dLblPos !== void 0 && !e.includes(t.dLblPos), Kt = (e) => {
1534
+ let t = Wt(e), n = (e) => {
1535
+ if (!Gt(t, e)) return e;
1521
1536
  let { dLblPos: n, ...r } = e;
1522
1537
  return r;
1523
1538
  }, r = (e) => e.labels ? {
@@ -1532,170 +1547,171 @@ var c = [
1532
1547
  dLbls: r(e.dLbls)
1533
1548
  } : e)
1534
1549
  };
1535
- }, Gt = { fields: [
1536
- M("logBase", "num"),
1537
- M("orientation", "str"),
1538
- M("max", "num"),
1539
- M("min", "num")
1540
- ] }, Kt = { fields: [
1541
- P("layout", V),
1542
- P("tx", xt),
1543
- z(),
1544
- B()
1545
- ] }, qt = { fields: [
1546
- M("custUnit", "num"),
1547
- M("builtInUnit", "str"),
1548
- P("dispUnitsLbl", Kt)
1549
- ] }, Jt = () => [
1550
- M("axId", "int"),
1551
- P("scaling", Gt),
1552
- M("delete", "bool"),
1553
- M("axPos", "str"),
1554
- Y("majorGridlines"),
1555
- Y("minorGridlines"),
1556
- P("title", Ct),
1557
- P("numFmt", St),
1558
- M("majorTickMark", "str"),
1559
- M("minorTickMark", "str"),
1560
- M("tickLblPos", "str"),
1561
- z(),
1550
+ }, qt = { fields: [
1551
+ N("logBase", "num"),
1552
+ N("orientation", "str"),
1553
+ N("max", "num"),
1554
+ N("min", "num")
1555
+ ] }, Jt = { fields: [
1556
+ F("layout", H),
1557
+ F("tx", Ct),
1558
+ B(),
1559
+ V()
1560
+ ] }, Yt = { fields: [
1561
+ N("custUnit", "num"),
1562
+ N("builtInUnit", "str"),
1563
+ F("dispUnitsLbl", Jt)
1564
+ ] }, Xt = () => [
1565
+ N("axId", "int"),
1566
+ F("scaling", qt),
1567
+ N("delete", "bool"),
1568
+ N("axPos", "str"),
1569
+ X("majorGridlines"),
1570
+ X("minorGridlines"),
1571
+ F("title", Tt),
1572
+ F("numFmt", wt),
1573
+ N("majorTickMark", "str"),
1574
+ N("minorTickMark", "str"),
1575
+ N("tickLblPos", "str"),
1562
1576
  B(),
1563
- M("crossAx", "int"),
1564
- M("crosses", "str"),
1565
- M("crossesAt", "num")
1566
- ], Yt = {
1577
+ V(),
1578
+ N("crossAx", "int"),
1579
+ N("crosses", "str"),
1580
+ N("crossesAt", "num")
1581
+ ], Zt = {
1567
1582
  valAx: {
1568
1583
  type: "val",
1569
1584
  codec: { fields: [
1570
- ...Jt(),
1571
- M("crossBetween", "str"),
1572
- M("majorUnit", "num"),
1573
- M("minorUnit", "num"),
1574
- P("dispUnits", qt)
1585
+ ...Xt(),
1586
+ N("crossBetween", "str"),
1587
+ N("majorUnit", "num"),
1588
+ N("minorUnit", "num"),
1589
+ F("dispUnits", Yt)
1575
1590
  ] }
1576
1591
  },
1577
1592
  catAx: {
1578
1593
  type: "cat",
1579
1594
  codec: { fields: [
1580
- ...Jt(),
1581
- M("auto", "bool"),
1582
- M("lblAlgn", "str"),
1583
- M("lblOffset", "int"),
1584
- M("tickLblSkip", "int"),
1585
- M("tickMarkSkip", "int"),
1586
- M("noMultiLvlLbl", "bool")
1595
+ ...Xt(),
1596
+ N("auto", "bool"),
1597
+ N("lblAlgn", "str"),
1598
+ N("lblOffset", "int"),
1599
+ N("tickLblSkip", "int"),
1600
+ N("tickMarkSkip", "int"),
1601
+ N("noMultiLvlLbl", "bool")
1587
1602
  ] }
1588
1603
  },
1589
1604
  dateAx: {
1590
1605
  type: "date",
1591
1606
  codec: { fields: [
1592
- ...Jt(),
1593
- M("auto", "bool"),
1594
- M("lblOffset", "int"),
1595
- M("baseTimeUnit", "str"),
1596
- M("majorUnit", "num"),
1597
- M("majorTimeUnit", "str"),
1598
- M("minorUnit", "num"),
1599
- M("minorTimeUnit", "str")
1607
+ ...Xt(),
1608
+ N("auto", "bool"),
1609
+ N("lblOffset", "int"),
1610
+ N("baseTimeUnit", "str"),
1611
+ N("majorUnit", "num"),
1612
+ N("majorTimeUnit", "str"),
1613
+ N("minorUnit", "num"),
1614
+ N("minorTimeUnit", "str")
1600
1615
  ] }
1601
1616
  },
1602
1617
  serAx: {
1603
1618
  type: "ser",
1604
1619
  codec: { fields: [
1605
- ...Jt(),
1606
- M("tickLblSkip", "int"),
1607
- M("tickMarkSkip", "int")
1620
+ ...Xt(),
1621
+ N("tickLblSkip", "int"),
1622
+ N("tickMarkSkip", "int")
1608
1623
  ] }
1609
1624
  }
1610
- }, Xt = {
1611
- tags: Object.keys(Yt),
1625
+ }, Qt = {
1626
+ tags: Object.keys(Zt),
1612
1627
  key: "axes",
1613
1628
  ns: "c",
1614
1629
  many: !0,
1615
1630
  read: (e, t, n) => ({
1616
- type: Yt[e.name].type,
1617
- ...k(e, Yt[e.name].codec, t, n)
1631
+ type: Zt[e.name].type,
1632
+ ...A(e, Zt[e.name].codec, t, n)
1618
1633
  }),
1619
1634
  write: (e, t) => {
1620
1635
  let { type: n, ...r } = t, i = `${n}Ax`;
1621
- A(e, `c:${i}`, r, Yt[i].codec);
1636
+ j(e, `c:${i}`, r, Zt[i].codec);
1622
1637
  }
1623
- }, Zt = { fields: [
1624
- M("showHorzBorder", "bool"),
1625
- M("showVertBorder", "bool"),
1626
- M("showOutline", "bool"),
1627
- M("showKeys", "bool"),
1628
- z(),
1629
- B()
1630
- ] }, Qt = {
1638
+ }, $t = { fields: [
1639
+ N("showHorzBorder", "bool"),
1640
+ N("showVertBorder", "bool"),
1641
+ N("showOutline", "bool"),
1642
+ N("showKeys", "bool"),
1643
+ B(),
1644
+ V()
1645
+ ] }, en = {
1631
1646
  fields: [
1632
- P("layout", V),
1633
- Bt,
1634
- Xt,
1635
- P("dTable", Zt),
1636
- z()
1647
+ F("layout", H),
1648
+ Ht,
1649
+ Qt,
1650
+ F("dTable", $t),
1651
+ B()
1637
1652
  ],
1638
1653
  afterRead: (e) => {
1639
1654
  e.groups ??= [], e.axes ??= [];
1640
1655
  }
1641
- }, $t = { fields: [
1642
- M("rotX", "int"),
1643
- M("hPercent", "int"),
1644
- M("rotY", "int"),
1645
- M("depthPercent", "int"),
1646
- M("rAngAx", "bool"),
1647
- M("perspective", "int")
1648
- ] }, en = { fields: [M("thickness", "int"), z()] }, tn = { fields: [
1649
- M("idx", "int"),
1650
- M("delete", "bool"),
1651
- B()
1652
- ] }, nn = { fields: [
1653
- M("legendPos", "str"),
1654
- P("legendEntry", tn, "entries", { many: !0 }),
1655
- P("layout", V),
1656
- M("overlay", "bool"),
1657
- z(),
1658
- B()
1659
- ] }, rn = { fields: [
1660
- P("title", Ct),
1661
- M("autoTitleDeleted", "bool"),
1662
- P("view3D", $t),
1663
- P("floor", en),
1664
- P("sideWall", en),
1665
- P("backWall", en),
1666
- P("plotArea", Qt),
1667
- P("legend", nn),
1668
- M("plotVisOnly", "bool"),
1669
- M("dispBlanksAs", "str"),
1670
- M("showDLblsOverMax", "bool")
1671
- ] }, an = { fields: [N("name"), M("fmtId", "int")] }, on = { fields: [
1672
- M("date1904", "bool"),
1673
- M("lang", "str"),
1674
- M("roundedCorners", "bool"),
1675
- M("style", "int"),
1676
- P("pivotSource", an),
1677
- P("chart", rn),
1678
- z(),
1679
- B()
1680
- ] }, sn = (e) => {
1656
+ }, tn = { fields: [
1657
+ N("rotX", "int"),
1658
+ N("hPercent", "int"),
1659
+ N("rotY", "int"),
1660
+ N("depthPercent", "int"),
1661
+ N("rAngAx", "bool"),
1662
+ N("perspective", "int")
1663
+ ] }, nn = { fields: [N("thickness", "int"), B()] }, rn = { fields: [
1664
+ N("idx", "int"),
1665
+ N("delete", "bool"),
1666
+ V()
1667
+ ] }, an = { fields: [
1668
+ N("legendPos", "str"),
1669
+ F("legendEntry", rn, "entries", { many: !0 }),
1670
+ F("layout", H),
1671
+ N("overlay", "bool"),
1672
+ B(),
1673
+ V()
1674
+ ] }, on = { fields: [
1675
+ F("title", Tt),
1676
+ N("autoTitleDeleted", "bool"),
1677
+ F("view3D", tn),
1678
+ F("floor", nn),
1679
+ F("sideWall", nn),
1680
+ F("backWall", nn),
1681
+ F("plotArea", en),
1682
+ F("legend", an),
1683
+ N("plotVisOnly", "bool"),
1684
+ N("dispBlanksAs", "str"),
1685
+ N("showDLblsOverMax", "bool"),
1686
+ F("extLst", bt)
1687
+ ] }, sn = { fields: [P("name"), N("fmtId", "int")] }, cn = { fields: [
1688
+ N("date1904", "bool"),
1689
+ N("lang", "str"),
1690
+ N("roundedCorners", "bool"),
1691
+ N("style", "int"),
1692
+ F("pivotSource", sn),
1693
+ F("chart", on),
1694
+ B(),
1695
+ V()
1696
+ ] }, ln = (e) => {
1681
1697
  let t = x(e);
1682
1698
  if (!t || t.name !== "chartSpace") return null;
1683
1699
  let n = xe(t, ye);
1684
1700
  if (!ge(Se(t, n))) return null;
1685
1701
  let r = new Oe(e, n);
1686
1702
  return {
1687
- model: k(t, on, ye, r),
1703
+ model: A(t, cn, ye, r),
1688
1704
  kept: r.kept,
1689
1705
  reordered: r.reordered
1690
1706
  };
1691
- }, cn = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n", ln = (e) => {
1707
+ }, un = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n", dn = (e) => {
1692
1708
  let t = { ...e.unknown?.attributes }, n = (e, n) => {
1693
1709
  t[`xmlns:${e}`] ??= n;
1694
1710
  };
1695
- n(w.c, ce), n(w.a, ue), n(w.r, fe);
1696
- let r = new Ce().raw(cn);
1711
+ n(T.c, w), n(T.a, le), n(T.r, de);
1712
+ let r = new Ce().raw(un);
1697
1713
  return ((e, t) => {
1698
- A(e, "c:chartSpace", t, on);
1714
+ j(e, "c:chartSpace", t, cn);
1699
1715
  })(r, {
1700
1716
  ...e,
1701
1717
  unknown: {
@@ -1703,20 +1719,20 @@ var c = [
1703
1719
  attributes: t
1704
1720
  }
1705
1721
  }), r.toString();
1706
- }, un = (e, t) => {
1722
+ }, fn = (e, t) => {
1707
1723
  if (t && (n = e, !(n.chart?.plotArea?.groups ?? []).some((e) => {
1708
- let t = Ht(e), n = (e) => Ut(t, e) || !!e?.labels?.some((e) => Ut(t, e));
1724
+ let t = Wt(e), n = (e) => Gt(t, e) || !!e?.labels?.some((e) => Gt(t, e));
1709
1725
  return n(e.dLbls) || e.series.some((e) => n(e.dLbls));
1710
1726
  }))) {
1711
- let n = sn(t);
1727
+ let n = ln(t);
1712
1728
  if (n && JSON.stringify(n.model) === JSON.stringify(e)) return t;
1713
1729
  }
1714
1730
  var n;
1715
- return ln(e);
1716
- }, X = (e, t, n = e, r) => P(e, t, n, {
1731
+ return dn(e);
1732
+ }, Z = (e, t, n = e, r) => F(e, t, n, {
1717
1733
  ns: "cx",
1718
1734
  many: r
1719
- }), Z = () => X("spPr", Ze), Q = () => X("txPr", ot), dn = () => X("numFmt", St), fn = (e) => ({
1735
+ }), Q = () => Z("spPr", Ze), pn = () => Z("txPr", ot), mn = () => Z("numFmt", wt), hn = (e) => ({
1720
1736
  name: e,
1721
1737
  key: e,
1722
1738
  read: (e) => {
@@ -1725,28 +1741,28 @@ var c = [
1725
1741
  return e.trim() !== "" && Number.isFinite(t) ? t : void 0;
1726
1742
  },
1727
1743
  write: (e) => String(e)
1728
- }), pn = (e) => T(e).filter(([e]) => e !== "xmlns" && !e.startsWith("xmlns:")), mn = (e) => ({
1744
+ }), gn = (e) => E(e).filter(([e]) => e !== "xmlns" && !e.startsWith("xmlns:")), _n = (e) => ({
1729
1745
  tags: [e],
1730
1746
  key: e,
1731
1747
  ns: "cx",
1732
1748
  read: (e) => {
1733
1749
  if (S(e).length > 0) return;
1734
1750
  let t = { f: C(e) };
1735
- for (let [n, r] of pn(e)) {
1751
+ for (let [n, r] of gn(e)) {
1736
1752
  if (n !== "dir" || r !== "col" && r !== "row") return;
1737
1753
  t.dir = r;
1738
1754
  }
1739
1755
  return t.f === "" ? void 0 : t;
1740
1756
  },
1741
1757
  write: (t, n) => {
1742
- let r = j("cx", e);
1758
+ let r = M("cx", e);
1743
1759
  t.open(r, n.dir ? [["dir", n.dir]] : null).text(n.f).close(r);
1744
1760
  }
1745
- }), hn = {
1761
+ }), vn = {
1746
1762
  attributes: [
1747
- F("ptCount", "int"),
1748
- F("formatCode", "str"),
1749
- F("name", "str")
1763
+ I("ptCount", "int"),
1764
+ I("formatCode", "str"),
1765
+ I("name", "str")
1750
1766
  ],
1751
1767
  fields: [{
1752
1768
  tags: ["pt"],
@@ -1755,50 +1771,50 @@ var c = [
1755
1771
  many: !0,
1756
1772
  read: (e) => {
1757
1773
  if (S(e).length > 0) return;
1758
- let t = pn(e);
1774
+ let t = gn(e);
1759
1775
  if (t.length !== 1 || t[0][0] !== "idx") return;
1760
1776
  let n = Number(t[0][1]);
1761
- return Number.isInteger(n) && O(String(n)) === O(t[0][1]) ? {
1777
+ return Number.isInteger(n) && k(String(n)) === k(t[0][1]) ? {
1762
1778
  idx: n,
1763
1779
  v: C(e)
1764
1780
  } : void 0;
1765
1781
  },
1766
1782
  write: (e, t) => {
1767
- let n = j("cx", "pt");
1783
+ let n = M("cx", "pt");
1768
1784
  t.v === "" ? e.open(n, [["idx", String(t.idx)]], !0) : e.open(n, [["idx", String(t.idx)]]).text(t.v).close(n);
1769
1785
  }
1770
1786
  }]
1771
- }, gn = {
1772
- attributes: [F("type", "str")],
1787
+ }, yn = {
1788
+ attributes: [I("type", "str")],
1773
1789
  fields: [
1774
- mn("f"),
1775
- mn("nf"),
1776
- X("lvl", hn, "levels", !0)
1790
+ _n("f"),
1791
+ _n("nf"),
1792
+ Z("lvl", vn, "levels", !0)
1777
1793
  ]
1778
- }, _n = /* @__PURE__ */ new Set([
1794
+ }, bn = /* @__PURE__ */ new Set([
1779
1795
  "val",
1780
1796
  "x",
1781
1797
  "y",
1782
1798
  "size",
1783
1799
  "colorVal"
1784
- ]), vn = /* @__PURE__ */ new Set([
1800
+ ]), xn = /* @__PURE__ */ new Set([
1785
1801
  "cat",
1786
1802
  "colorStr",
1787
1803
  "entityId"
1788
- ]), yn = {
1789
- fields: [X("data", {
1790
- attributes: [F("id", "int")],
1804
+ ]), Sn = {
1805
+ fields: [Z("data", {
1806
+ attributes: [I("id", "int")],
1791
1807
  fields: [{
1792
1808
  tags: ["numDim", "strDim"],
1793
1809
  key: "dimensions",
1794
1810
  ns: "cx",
1795
1811
  many: !0,
1796
1812
  read: (e, t, n) => {
1797
- let r = k(e, gn, t, n);
1798
- return (e.name === "numDim" ? _n : vn).has(r.type) ? r : void 0;
1813
+ let r = A(e, yn, t, n);
1814
+ return (e.name === "numDim" ? bn : xn).has(r.type) ? r : void 0;
1799
1815
  },
1800
1816
  write: (e, t) => {
1801
- A(e, j("cx", _n.has(t.type) ? "numDim" : "strDim"), t, gn);
1817
+ j(e, M("cx", bn.has(t.type) ? "numDim" : "strDim"), t, yn);
1802
1818
  }
1803
1819
  }],
1804
1820
  afterRead: (e) => {
@@ -1808,76 +1824,76 @@ var c = [
1808
1824
  afterRead: (e) => {
1809
1825
  e.data ??= [];
1810
1826
  }
1811
- }, bn = { fields: [X("txData", { fields: [mn("f"), N("v", "v", "cx")] }), X("rich", ot)] }, xn = () => [
1812
- F("pos", "str"),
1813
- F("align", "str"),
1814
- F("overlay", "bool")
1815
- ], Sn = {
1816
- attributes: xn(),
1827
+ }, Cn = { fields: [Z("txData", { fields: [_n("f"), P("v", "v", "cx")] }), Z("rich", ot)] }, wn = () => [
1828
+ I("pos", "str"),
1829
+ I("align", "str"),
1830
+ I("overlay", "bool")
1831
+ ], Tn = {
1832
+ attributes: wn(),
1817
1833
  fields: [
1818
- X("tx", bn),
1819
- Z(),
1820
- Q()
1834
+ Z("tx", Cn),
1835
+ Q(),
1836
+ pn()
1821
1837
  ]
1822
- }, Cn = {
1823
- attributes: xn(),
1824
- fields: [Z(), Q()]
1825
- }, wn = {
1838
+ }, En = {
1839
+ attributes: wn(),
1840
+ fields: [Q(), pn()]
1841
+ }, Dn = {
1826
1842
  attributes: [
1827
- F("seriesName", "bool"),
1828
- F("categoryName", "bool"),
1829
- F("value", "bool")
1843
+ I("seriesName", "bool"),
1844
+ I("categoryName", "bool"),
1845
+ I("value", "bool")
1830
1846
  ],
1831
1847
  fields: []
1832
- }, Tn = () => [
1833
- dn(),
1834
- Z(),
1848
+ }, On = () => [
1849
+ mn(),
1835
1850
  Q(),
1836
- X("visibility", wn),
1837
- N("separator", "separator", "cx")
1838
- ], En = {
1839
- attributes: [F("idx", "int"), F("pos", "str")],
1840
- fields: Tn()
1841
- }, Dn = {
1842
- attributes: [F("idx", "int")],
1851
+ pn(),
1852
+ Z("visibility", Dn),
1853
+ P("separator", "separator", "cx")
1854
+ ], kn = {
1855
+ attributes: [I("idx", "int"), I("pos", "str")],
1856
+ fields: On()
1857
+ }, An = {
1858
+ attributes: [I("idx", "int")],
1843
1859
  fields: []
1844
- }, On = {
1845
- attributes: [F("pos", "str")],
1860
+ }, jn = {
1861
+ attributes: [I("pos", "str")],
1846
1862
  fields: [
1847
- ...Tn(),
1848
- X("dataLabel", En, "labels", !0),
1849
- X("dataLabelHidden", Dn, "hiddenLabels", !0)
1863
+ ...On(),
1864
+ Z("dataLabel", kn, "labels", !0),
1865
+ Z("dataLabelHidden", An, "hiddenLabels", !0)
1850
1866
  ]
1851
- }, kn = {
1852
- attributes: [F("idx", "int")],
1853
- fields: [Z()]
1854
- }, An = {
1867
+ }, Mn = {
1868
+ attributes: [I("idx", "int")],
1869
+ fields: [Q()]
1870
+ }, Nn = {
1855
1871
  attributes: [
1856
1872
  "connectorLines",
1857
1873
  "meanLine",
1858
1874
  "meanMarker",
1859
1875
  "nonoutliers",
1860
1876
  "outliers"
1861
- ].map((e) => F(e, "bool")),
1877
+ ].map((e) => I(e, "bool")),
1862
1878
  fields: []
1863
- }, jn = {
1879
+ }, Pn = {
1864
1880
  attributes: [
1865
- F("intervalClosed", "str"),
1866
- fn("underflow"),
1867
- fn("overflow")
1881
+ I("intervalClosed", "str"),
1882
+ hn("underflow"),
1883
+ hn("overflow")
1868
1884
  ],
1869
- fields: [M("binSize", "num", "binSize", "cx"), M("binCount", "int", "binCount", "cx")]
1870
- }, Mn = { fields: [{
1871
- ...M("idx", "int", "indexes", "cx"),
1885
+ fields: [N("binSize", "num", "binSize", "cx"), N("binCount", "int", "binCount", "cx")]
1886
+ }, Fn = { fields: [{
1887
+ ...N("idx", "int", "indexes", "cx"),
1872
1888
  many: !0
1873
- }] }, Nn = { fields: [
1874
- M("parentLabelLayout", "str", "parentLabelLayout", "cx"),
1875
- M("regionLabelLayout", "str", "regionLabelLayout", "cx"),
1876
- X("visibility", An),
1877
- X("aggregation", { fields: [] }),
1878
- X("binning", jn),
1879
- X("statistics", {
1880
- attributes: [F("quartileMethod", "str")],
1889
+ }] }, In = { fields: [
1890
+ N("parentLabelLayout", "str", "parentLabelLayout", "cx"),
1891
+ N("regionLabelLayout", "str", "regionLabelLayout", "cx"),
1892
+ Z("visibility", Nn),
1893
+ Z("aggregation", { fields: [] }),
1894
+ Z("binning", Pn),
1895
+ Z("statistics", {
1896
+ attributes: [I("quartileMethod", "str")],
1881
1897
  fields: []
1882
1898
  }),
1883
1899
  {
@@ -1885,94 +1901,94 @@ var c = [
1885
1901
  key: "subtotals",
1886
1902
  ns: "cx",
1887
1903
  read: (e, t, n) => {
1888
- let r = k(e, Mn, t, n);
1904
+ let r = A(e, Fn, t, n);
1889
1905
  return r.unknown ? void 0 : r.indexes ?? [];
1890
1906
  },
1891
1907
  write: (e, t) => {
1892
- A(e, j("cx", "subtotals"), { indexes: t }, Mn);
1908
+ j(e, M("cx", "subtotals"), { indexes: t }, Fn);
1893
1909
  }
1894
1910
  }
1895
- ] }, Pn = {
1911
+ ] }, Ln = {
1896
1912
  attributes: [
1897
- F("layoutId", "str"),
1898
- F("hidden", "bool"),
1899
- F("ownerIdx", "int"),
1900
- F("uniqueId", "str"),
1901
- F("formatIdx", "int")
1913
+ I("layoutId", "str"),
1914
+ I("hidden", "bool"),
1915
+ I("ownerIdx", "int"),
1916
+ I("uniqueId", "str"),
1917
+ I("formatIdx", "int")
1902
1918
  ],
1903
1919
  fields: [
1904
- X("tx", bn),
1905
- Z(),
1906
- X("dataPt", kn, "points", !0),
1907
- X("dataLabels", On),
1908
- M("dataId", "int", "dataId", "cx"),
1909
- X("layoutPr", Nn),
1920
+ Z("tx", Cn),
1921
+ Q(),
1922
+ Z("dataPt", Mn, "points", !0),
1923
+ Z("dataLabels", jn),
1924
+ N("dataId", "int", "dataId", "cx"),
1925
+ Z("layoutPr", In),
1910
1926
  {
1911
- ...M("axisId", "int", "axisIds", "cx"),
1927
+ ...N("axisId", "int", "axisIds", "cx"),
1912
1928
  many: !0
1913
1929
  }
1914
1930
  ]
1915
- }, Fn = {
1916
- fields: [X("plotSurface", { fields: [Z()] }), X("series", Pn, "series", !0)],
1931
+ }, Rn = {
1932
+ fields: [Z("plotSurface", { fields: [Q()] }), Z("series", Ln, "series", !0)],
1917
1933
  afterRead: (e) => {
1918
1934
  e.series ??= [];
1919
1935
  }
1920
- }, In = { fields: [
1921
- X("tx", bn),
1922
- Z(),
1923
- Q()
1924
- ] }, Ln = { fields: [Z()] }, Rn = {
1925
- attributes: [F("type", "str")],
1936
+ }, zn = { fields: [
1937
+ Z("tx", Cn),
1938
+ Q(),
1939
+ pn()
1940
+ ] }, Bn = { fields: [Q()] }, Vn = {
1941
+ attributes: [I("type", "str")],
1926
1942
  fields: []
1927
- }, zn = {
1928
- attributes: [F("id", "int"), F("hidden", "bool")],
1943
+ }, Hn = {
1944
+ attributes: [I("id", "int"), I("hidden", "bool")],
1929
1945
  fields: [
1930
- X("catScaling", {
1931
- attributes: [F("gapWidth", "num")],
1946
+ Z("catScaling", {
1947
+ attributes: [I("gapWidth", "num")],
1932
1948
  fields: []
1933
1949
  }),
1934
- X("valScaling", {
1950
+ Z("valScaling", {
1935
1951
  attributes: [
1936
1952
  "max",
1937
1953
  "min",
1938
1954
  "majorUnit",
1939
1955
  "minorUnit"
1940
- ].map((e) => F(e, "num")),
1956
+ ].map((e) => I(e, "num")),
1941
1957
  fields: []
1942
1958
  }),
1943
- X("title", In),
1944
- X("units", {
1945
- attributes: [F("unit", "str")],
1946
- fields: [X("unitsLabel", In)]
1959
+ Z("title", zn),
1960
+ Z("units", {
1961
+ attributes: [I("unit", "str")],
1962
+ fields: [Z("unitsLabel", zn)]
1947
1963
  }),
1948
- X("majorGridlines", Ln),
1949
- X("minorGridlines", Ln),
1950
- X("majorTickMarks", Rn),
1951
- X("minorTickMarks", Rn),
1952
- X("tickLabels", { fields: [] }),
1953
- dn(),
1954
- Z(),
1955
- Q()
1964
+ Z("majorGridlines", Bn),
1965
+ Z("minorGridlines", Bn),
1966
+ Z("majorTickMarks", Vn),
1967
+ Z("minorTickMarks", Vn),
1968
+ Z("tickLabels", { fields: [] }),
1969
+ mn(),
1970
+ Q(),
1971
+ pn()
1956
1972
  ]
1957
- }, Bn = {
1973
+ }, Un = {
1958
1974
  fields: [
1959
- X("plotAreaRegion", Fn),
1960
- X("axis", zn, "axes", !0),
1961
- Z()
1975
+ Z("plotAreaRegion", Rn),
1976
+ Z("axis", Hn, "axes", !0),
1977
+ Q()
1962
1978
  ],
1963
1979
  afterRead: (e) => {
1964
1980
  e.axes ??= [];
1965
1981
  }
1966
- }, Vn = { fields: [
1967
- X("title", Sn),
1968
- X("plotArea", Bn),
1969
- X("legend", Cn)
1970
- ] }, Hn = { fields: [
1971
- X("chartData", yn),
1972
- X("chart", Vn),
1973
- Z(),
1974
- Q()
1975
- ] }, Un = {
1982
+ }, Wn = { fields: [
1983
+ Z("title", Tn),
1984
+ Z("plotArea", Un),
1985
+ Z("legend", En)
1986
+ ] }, Gn = { fields: [
1987
+ Z("chartData", Sn),
1988
+ Z("chart", Wn),
1989
+ Q(),
1990
+ pn()
1991
+ ] }, Kn = {
1976
1992
  waterfall: "waterfall",
1977
1993
  clusteredColumn: "histogram",
1978
1994
  boxWhisker: "boxWhisker",
@@ -1980,7 +1996,7 @@ var c = [
1980
1996
  sunburst: "sunburst",
1981
1997
  funnel: "funnel",
1982
1998
  regionMap: "regionMap"
1983
- }, Wn = Object.fromEntries(Object.entries(Un).map(([e, t]) => [t, e])), Gn = new Set(Object.values(Un)), Kn = "paretoLine", qn = {
1999
+ }, qn = Object.fromEntries(Object.entries(Kn).map(([e, t]) => [t, e])), Jn = new Set(Object.values(Kn)), Yn = "paretoLine", Xn = {
1984
2000
  cat: "cat",
1985
2001
  val: "val",
1986
2002
  x: "xVal",
@@ -1989,13 +2005,13 @@ var c = [
1989
2005
  colorVal: "color",
1990
2006
  colorStr: "color",
1991
2007
  entityId: "entityId"
1992
- }, Jn = /* @__PURE__ */ new Set([
2008
+ }, Zn = /* @__PURE__ */ new Set([
1993
2009
  "val",
1994
2010
  "x",
1995
2011
  "y",
1996
2012
  "size",
1997
2013
  "colorVal"
1998
- ]), Yn = [
2014
+ ]), Qn = [
1999
2015
  "cat",
2000
2016
  "colorStr",
2001
2017
  "entityId",
@@ -2007,23 +2023,23 @@ var c = [
2007
2023
  ], $ = (e) => {
2008
2024
  for (let t of Object.keys(e)) e[t] === void 0 && delete e[t];
2009
2025
  return e;
2010
- }, Xn = (e) => $({
2026
+ }, $n = (e) => $({
2011
2027
  f: e.f,
2012
2028
  dir: e.dir
2013
- }), Zn = (e) => e && $({
2014
- strRef: e.txData?.f ? Xn(e.txData.f) : void 0,
2029
+ }), er = (e) => e && $({
2030
+ strRef: e.txData?.f ? $n(e.txData.f) : void 0,
2015
2031
  v: e.txData?.v,
2016
2032
  rich: e.rich,
2017
2033
  unknown: e.unknown
2018
- }), Qn = (e) => e && $({
2019
- tx: Zn(e.tx),
2034
+ }), tr = (e) => e && $({
2035
+ tx: er(e.tx),
2020
2036
  overlay: e.overlay,
2021
2037
  spPr: e.spPr,
2022
2038
  txPr: e.txPr,
2023
2039
  pos: e.pos,
2024
2040
  align: e.align,
2025
2041
  unknown: e.unknown
2026
- }), $n = (e) => $({
2042
+ }), nr = (e) => $({
2027
2043
  numFmt: e.numFmt,
2028
2044
  spPr: e.spPr,
2029
2045
  txPr: e.txPr,
@@ -2033,17 +2049,17 @@ var c = [
2033
2049
  showVal: e.visibility?.value,
2034
2050
  separator: e.separator,
2035
2051
  unknown: e.unknown
2036
- }), er = (e) => {
2052
+ }), rr = (e) => {
2037
2053
  if (!e) return;
2038
- let t = $n(e), n = [...(e.labels ?? []).map((e) => ({
2054
+ let t = nr(e), n = [...(e.labels ?? []).map((e) => ({
2039
2055
  idx: e.idx,
2040
- ...$n(e)
2056
+ ...nr(e)
2041
2057
  })), ...(e.hiddenLabels ?? []).map((e) => ({
2042
2058
  idx: e.idx,
2043
2059
  delete: !0
2044
2060
  }))];
2045
2061
  return n.length > 0 && (t.labels = n), t;
2046
- }, tr = (e, t) => {
2062
+ }, ir = (e, t) => {
2047
2063
  let n = (e ?? []).map((e) => ({ ...e }));
2048
2064
  for (let e of [...t ?? []].sort((e, t) => e - t)) {
2049
2065
  let t = n.find((t) => t.idx === e);
@@ -2053,11 +2069,11 @@ var c = [
2053
2069
  });
2054
2070
  }
2055
2071
  return n.length > 0 ? n : void 0;
2056
- }, nr = (e) => {
2072
+ }, ar = (e) => {
2057
2073
  if (!e) return;
2058
2074
  let { subtotals: t, ...n } = e;
2059
2075
  return Object.keys(n).length > 0 ? n : void 0;
2060
- }, rr = (e) => $({
2076
+ }, or = (e) => $({
2061
2077
  ptCount: e.ptCount,
2062
2078
  formatCode: e.formatCode,
2063
2079
  name: e.name,
@@ -2066,59 +2082,59 @@ var c = [
2066
2082
  v: e.v
2067
2083
  })),
2068
2084
  unknown: e.unknown
2069
- }), ir = (e) => {
2070
- let t = Jn.has(e.type), n = e.levels?.map(rr), r = {};
2085
+ }), sr = (e) => {
2086
+ let t = Zn.has(e.type), n = e.levels?.map(or), r = {};
2071
2087
  return e.f ? r[t ? "numRef" : "strRef"] = $({
2072
- ...Xn(e.f),
2088
+ ...$n(e.f),
2073
2089
  cache: n ? { levels: n } : void 0
2074
- }) : r[t ? "numLit" : "strLit"] = $({ levels: n }), e.nf && (r.nf = Xn(e.nf)), e.unknown && (r.unknown = e.unknown), r;
2075
- }, ar = (e, t) => {
2090
+ }) : r[t ? "numLit" : "strLit"] = $({ levels: n }), e.nf && (r.nf = $n(e.nf)), e.unknown && (r.unknown = e.unknown), r;
2091
+ }, cr = (e, t) => {
2076
2092
  let n = $({
2077
2093
  idx: e.formatIdx,
2078
2094
  hidden: e.hidden,
2079
2095
  uniqueId: e.uniqueId,
2080
- tx: Zn(e.tx),
2096
+ tx: er(e.tx),
2081
2097
  spPr: e.spPr,
2082
- points: tr(e.points, e.layoutPr?.subtotals),
2083
- dLbls: er(e.dataLabels),
2084
- layoutPr: nr(e.layoutPr),
2098
+ points: ir(e.points, e.layoutPr?.subtotals),
2099
+ dLbls: rr(e.dataLabels),
2100
+ layoutPr: ar(e.layoutPr),
2085
2101
  unknown: e.unknown
2086
2102
  });
2087
2103
  for (let e of t?.dimensions ?? []) {
2088
- let t = qn[e.type];
2089
- t && !n[t] && (n[t] = ir(e));
2104
+ let t = Xn[e.type];
2105
+ t && !n[t] && (n[t] = sr(e));
2090
2106
  }
2091
2107
  return n;
2092
- }, or = (e) => $({
2108
+ }, lr = (e) => $({
2093
2109
  idx: e.formatIdx,
2094
2110
  hidden: e.hidden,
2095
2111
  uniqueId: e.uniqueId,
2096
- tx: Zn(e.tx),
2112
+ tx: er(e.tx),
2097
2113
  spPr: e.spPr,
2098
- points: tr(e.points, e.layoutPr?.subtotals),
2099
- dLbls: er(e.dataLabels),
2100
- layoutPr: nr(e.layoutPr),
2114
+ points: ir(e.points, e.layoutPr?.subtotals),
2115
+ dLbls: rr(e.dataLabels),
2116
+ layoutPr: ar(e.layoutPr),
2101
2117
  axIds: e.axisIds,
2102
2118
  unknown: e.unknown
2103
- }), sr = (e, t) => {
2119
+ }), ur = (e, t) => {
2104
2120
  let n = new Map(t.map((e) => [e.id, e])), r = [], i = [], a = null;
2105
2121
  for (let t of e?.series ?? []) {
2106
- if (t.layoutId === Kn) {
2122
+ if (t.layoutId === Yn) {
2107
2123
  let e = t.ownerIdx === void 0 ? null : i[t.ownerIdx];
2108
- e && !e.cumulativeLine && (e.cumulativeLine = or(t)), i.push(null);
2124
+ e && !e.cumulativeLine && (e.cumulativeLine = lr(t)), i.push(null);
2109
2125
  continue;
2110
2126
  }
2111
- let e = Un[t.layoutId] ?? t.layoutId, o = t.axisIds ?? [];
2127
+ let e = Kn[t.layoutId] ?? t.layoutId, o = t.axisIds ?? [];
2112
2128
  a && a.type === e && JSON.stringify(a.axIds) === JSON.stringify(o) || (a = {
2113
2129
  type: e,
2114
2130
  series: [],
2115
2131
  axIds: o
2116
2132
  }, r.push(a));
2117
- let s = ar(t, t.dataId === void 0 ? void 0 : n.get(t.dataId));
2133
+ let s = cr(t, t.dataId === void 0 ? void 0 : n.get(t.dataId));
2118
2134
  a.series.push(s), i.push(s);
2119
2135
  }
2120
2136
  return r;
2121
- }, cr = (e) => {
2137
+ }, dr = (e) => {
2122
2138
  let t = e.catScaling ?? e.valScaling;
2123
2139
  return $({
2124
2140
  type: e.catScaling || !e.valScaling ? "cat" : "val",
@@ -2132,7 +2148,7 @@ var c = [
2132
2148
  delete: e.hidden,
2133
2149
  majorGridlines: e.majorGridlines,
2134
2150
  minorGridlines: e.minorGridlines,
2135
- title: Qn(e.title),
2151
+ title: tr(e.title),
2136
2152
  numFmt: e.numFmt,
2137
2153
  majorTickMark: e.majorTickMarks?.type,
2138
2154
  minorTickMark: e.minorTickMarks?.type,
@@ -2143,24 +2159,24 @@ var c = [
2143
2159
  minorUnit: e.valScaling?.minorUnit,
2144
2160
  dispUnits: e.units && $({
2145
2161
  builtInUnit: e.units.unit,
2146
- dispUnitsLbl: Qn(e.units.unitsLabel),
2162
+ dispUnitsLbl: tr(e.units.unitsLabel),
2147
2163
  unknown: e.units.unknown
2148
2164
  }),
2149
2165
  unknown: e.unknown
2150
2166
  });
2151
- }, lr = (e) => e && $({
2167
+ }, fr = (e) => e && $({
2152
2168
  txData: e.strRef || e.v !== void 0 ? $({
2153
- f: e.strRef ? Xn(e.strRef) : void 0,
2169
+ f: e.strRef ? $n(e.strRef) : void 0,
2154
2170
  v: e.v
2155
2171
  }) : void 0,
2156
2172
  rich: e.rich,
2157
2173
  unknown: e.unknown
2158
- }), ur = (e) => e && $({
2159
- tx: lr(e.tx),
2174
+ }), pr = (e) => e && $({
2175
+ tx: fr(e.tx),
2160
2176
  spPr: e.spPr,
2161
2177
  txPr: e.txPr,
2162
2178
  unknown: e.unknown
2163
- }), dr = (e) => {
2179
+ }), mr = (e) => {
2164
2180
  let t = e.showSerName !== void 0 || e.showCatName !== void 0 || e.showVal !== void 0;
2165
2181
  return $({
2166
2182
  pos: e.dLblPos,
@@ -2175,23 +2191,23 @@ var c = [
2175
2191
  separator: e.separator,
2176
2192
  unknown: e.unknown
2177
2193
  });
2178
- }, fr = (e) => !0 === e.delete && Object.keys(e).every((e) => e === "idx" || e === "delete"), pr = (e) => {
2194
+ }, hr = (e) => !0 === e.delete && Object.keys(e).every((e) => e === "idx" || e === "delete"), gr = (e) => {
2179
2195
  if (!e) return;
2180
- let t = dr(e), n = (e.labels ?? []).filter((e) => !fr(e)).map((e) => ({
2196
+ let t = mr(e), n = (e.labels ?? []).filter((e) => !hr(e)).map((e) => ({
2181
2197
  idx: e.idx,
2182
- ...dr(e)
2183
- })), r = (e.labels ?? []).filter(fr).map((e) => ({ idx: e.idx }));
2198
+ ...mr(e)
2199
+ })), r = (e.labels ?? []).filter(hr).map((e) => ({ idx: e.idx }));
2184
2200
  return n.length > 0 && (t.labels = n), r.length > 0 && (t.hiddenLabels = r), t;
2185
- }, mr = (e) => {
2201
+ }, _r = (e) => {
2186
2202
  let t = (e ?? []).filter((e) => Object.keys(e).some((e) => e !== "idx" && e !== "subtotal")).map(({ subtotal: e, ...t }) => t);
2187
2203
  return t.length > 0 ? t : void 0;
2188
- }, hr = (e, t, n) => {
2204
+ }, vr = (e, t, n) => {
2189
2205
  let r = (t ?? []).filter((e) => e.subtotal).map((e) => e.idx).sort((e, t) => e - t);
2190
2206
  return r.length !== 0 || n ? {
2191
2207
  ...e,
2192
2208
  subtotals: r
2193
2209
  } : e;
2194
- }, gr = (e) => $({
2210
+ }, yr = (e) => $({
2195
2211
  ptCount: e.ptCount,
2196
2212
  formatCode: e.formatCode,
2197
2213
  name: e.name,
@@ -2200,7 +2216,7 @@ var c = [
2200
2216
  v: e.v
2201
2217
  })) : void 0,
2202
2218
  unknown: e.unknown
2203
- }), _r = (e, t) => e === "color" ? t.strRef || t.strLit ? "colorStr" : "colorVal" : Object.keys(qn).find((t) => qn[t] === e), vr = (e) => {
2219
+ }), br = (e, t) => e === "color" ? t.strRef || t.strLit ? "colorStr" : "colorVal" : Object.keys(Xn).find((t) => Xn[t] === e), xr = (e) => {
2204
2220
  let t = [];
2205
2221
  for (let n of [
2206
2222
  "cat",
@@ -2215,15 +2231,15 @@ var c = [
2215
2231
  if (!r) continue;
2216
2232
  let i = r.numRef ?? r.strRef, a = (i ? i.cache : r.numLit ?? r.strLit)?.levels;
2217
2233
  t.push($({
2218
- type: _r(n, r),
2219
- f: i ? Xn(i) : void 0,
2220
- nf: r.nf ? Xn(r.nf) : void 0,
2221
- levels: a && a.length > 0 ? a.map(gr) : void 0,
2234
+ type: br(n, r),
2235
+ f: i ? $n(i) : void 0,
2236
+ nf: r.nf ? $n(r.nf) : void 0,
2237
+ levels: a && a.length > 0 ? a.map(yr) : void 0,
2222
2238
  unknown: r.unknown
2223
2239
  }));
2224
2240
  }
2225
- return t.sort((e, t) => Yn.indexOf(e.type) - Yn.indexOf(t.type));
2226
- }, yr = (e) => {
2241
+ return t.sort((e, t) => Qn.indexOf(e.type) - Qn.indexOf(t.type));
2242
+ }, Sr = (e) => {
2227
2243
  let t = e.scaling ?? {}, n = e.type === "cat" || e.type === "date";
2228
2244
  return $({
2229
2245
  id: e.axId,
@@ -2239,10 +2255,10 @@ var c = [
2239
2255
  minorUnit: e.minorUnit,
2240
2256
  unknown: t.unknown
2241
2257
  }),
2242
- title: ur(e.title),
2258
+ title: pr(e.title),
2243
2259
  units: e.dispUnits && $({
2244
2260
  unit: e.dispUnits.builtInUnit,
2245
- unitsLabel: ur(e.dispUnits.dispUnitsLbl),
2261
+ unitsLabel: pr(e.dispUnits.dispUnitsLbl),
2246
2262
  unknown: e.dispUnits.unknown
2247
2263
  }),
2248
2264
  majorGridlines: e.majorGridlines,
@@ -2255,12 +2271,12 @@ var c = [
2255
2271
  txPr: e.txPr,
2256
2272
  unknown: e.unknown
2257
2273
  });
2258
- }, br = (e) => {
2274
+ }, Cr = (e) => {
2259
2275
  let t = e.chart, n = t?.plotArea, r = [], i = [], a = [];
2260
2276
  for (let e of n?.groups ?? []) {
2261
- let t = Wn[e.type];
2277
+ let t = qn[e.type];
2262
2278
  if (t) for (let n of e.series) {
2263
- let o = vr(n), s;
2279
+ let o = xr(n), s;
2264
2280
  if (o.length > 0) {
2265
2281
  let e = JSON.stringify(o);
2266
2282
  s = a.indexOf(e), s === -1 && (s = i.length, i.push({
@@ -2274,27 +2290,27 @@ var c = [
2274
2290
  hidden: n.hidden,
2275
2291
  uniqueId: n.uniqueId,
2276
2292
  formatIdx: n.idx,
2277
- tx: lr(n.tx),
2293
+ tx: fr(n.tx),
2278
2294
  spPr: n.spPr,
2279
- points: mr(n.points),
2280
- dataLabels: pr(n.dLbls),
2295
+ points: _r(n.points),
2296
+ dataLabels: gr(n.dLbls),
2281
2297
  dataId: s,
2282
- layoutPr: hr(n.layoutPr, n.points, e.type === "waterfall"),
2298
+ layoutPr: vr(n.layoutPr, n.points, e.type === "waterfall"),
2283
2299
  axisIds: e.axIds.length > 0 ? e.axIds : void 0,
2284
2300
  unknown: n.unknown
2285
2301
  }));
2286
2302
  let l = n.cumulativeLine;
2287
2303
  l && r.push($({
2288
- layoutId: Kn,
2304
+ layoutId: Yn,
2289
2305
  hidden: l.hidden,
2290
2306
  ownerIdx: c,
2291
2307
  uniqueId: l.uniqueId,
2292
2308
  formatIdx: l.idx,
2293
- tx: lr(l.tx),
2309
+ tx: fr(l.tx),
2294
2310
  spPr: l.spPr,
2295
- points: mr(l.points),
2296
- dataLabels: pr(l.dLbls),
2297
- layoutPr: hr(l.layoutPr, l.points, !1),
2311
+ points: _r(l.points),
2312
+ dataLabels: gr(l.dLbls),
2313
+ layoutPr: vr(l.layoutPr, l.points, !1),
2298
2314
  axisIds: l.axIds,
2299
2315
  unknown: l.unknown
2300
2316
  }));
@@ -2308,7 +2324,7 @@ var c = [
2308
2324
  pos: s.pos,
2309
2325
  align: s.align,
2310
2326
  overlay: s.overlay,
2311
- tx: lr(s.tx),
2327
+ tx: fr(s.tx),
2312
2328
  spPr: s.spPr,
2313
2329
  txPr: s.txPr,
2314
2330
  unknown: s.unknown
@@ -2318,7 +2334,7 @@ var c = [
2318
2334
  plotSurface: n?.plotSurface,
2319
2335
  series: r
2320
2336
  }),
2321
- axes: (n?.axes ?? []).map(yr),
2337
+ axes: (n?.axes ?? []).map(Sr),
2322
2338
  spPr: n?.spPr,
2323
2339
  unknown: n?.unknown
2324
2340
  }),
@@ -2337,24 +2353,24 @@ var c = [
2337
2353
  unknown: e.unknown
2338
2354
  });
2339
2355
  var s;
2340
- }, xr = (e, t) => {
2356
+ }, wr = (e, t) => {
2341
2357
  if (e === t) return !0;
2342
2358
  if (typeof e != "object" || typeof t != "object" || e === null || t === null || Array.isArray(e) !== Array.isArray(t)) return !1;
2343
2359
  let n = (e) => Object.keys(e).filter((t) => e[t] !== void 0), r = n(e), i = n(t);
2344
- return r.length === i.length && r.every((n) => xr(e[n], t[n]));
2345
- }, Sr = (e, t) => xr(e, br(t)), Cr = (e) => {
2360
+ return r.length === i.length && r.every((n) => wr(e[n], t[n]));
2361
+ }, Tr = (e, t) => wr(e, Cr(t)), Er = (e) => {
2346
2362
  let t = x(e);
2347
2363
  if (!t || t.name !== "chartSpace") return null;
2348
2364
  let n = xe(t, ye);
2349
2365
  if (!ve(Se(t, n))) return null;
2350
- let r = new Oe(e, n), i = k(t, Hn, ye, r), a = ((e) => {
2366
+ let r = new Oe(e, n), i = A(t, Gn, ye, r), a = ((e) => {
2351
2367
  let t = e.chart, n = t?.plotArea, r = t?.legend;
2352
2368
  return $({
2353
2369
  chart: $({
2354
- title: Qn(t?.title),
2370
+ title: tr(t?.title),
2355
2371
  plotArea: $({
2356
- groups: sr(n?.plotAreaRegion, e.chartData?.data ?? []),
2357
- axes: (n?.axes ?? []).map(cr),
2372
+ groups: ur(n?.plotAreaRegion, e.chartData?.data ?? []),
2373
+ axes: (n?.axes ?? []).map(dr),
2358
2374
  spPr: n?.spPr,
2359
2375
  plotSurface: n?.plotAreaRegion?.plotSurface,
2360
2376
  unknown: n?.unknown
@@ -2378,16 +2394,16 @@ var c = [
2378
2394
  model: a,
2379
2395
  kept: r.kept,
2380
2396
  reordered: r.reordered,
2381
- lossy: !Sr(i, a)
2397
+ lossy: !Tr(i, a)
2382
2398
  };
2383
- }, wr = (e) => {
2399
+ }, Dr = (e) => {
2384
2400
  let t = { ...e.unknown?.attributes }, n = (e, n) => {
2385
2401
  t[`xmlns:${e}`] ??= n;
2386
2402
  };
2387
- n(w.a, ue), n(w.r, fe), n(w.cx, me);
2388
- let r = br(e), i = new Ce().raw(cn);
2403
+ n(T.a, le), n(T.r, de), n(T.cx, me);
2404
+ let r = Cr(e), i = new Ce().raw(un);
2389
2405
  return ((e, t) => {
2390
- A(e, j("cx", "chartSpace"), t, Hn);
2406
+ j(e, M("cx", "chartSpace"), t, Gn);
2391
2407
  })(i, {
2392
2408
  ...r,
2393
2409
  unknown: {
@@ -2395,18 +2411,18 @@ var c = [
2395
2411
  attributes: t
2396
2412
  }
2397
2413
  }), i.toString();
2398
- }, Tr = (e, t) => {
2414
+ }, Or = (e, t) => {
2399
2415
  if (t) {
2400
- let n = Cr(t);
2416
+ let n = Er(t);
2401
2417
  if (n && JSON.stringify(n.model) === JSON.stringify(e)) return t;
2402
2418
  }
2403
- return wr(e);
2404
- }, Er = {
2419
+ return Dr(e);
2420
+ }, kr = {
2405
2421
  chart: {
2406
2422
  relType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",
2407
2423
  contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml",
2408
2424
  path: "../charts/chart{n}.xml",
2409
- graphicUri: ce
2425
+ graphicUri: w
2410
2426
  },
2411
2427
  chartEx: {
2412
2428
  relType: "http://schemas.microsoft.com/office/2014/relationships/chartEx",
@@ -2414,7 +2430,7 @@ var c = [
2414
2430
  path: "../charts/chartEx{n}.xml",
2415
2431
  graphicUri: me
2416
2432
  }
2417
- }, Dr = /* @__PURE__ */ new Set([
2433
+ }, Ar = /* @__PURE__ */ new Set([
2418
2434
  "area",
2419
2435
  "bar",
2420
2436
  "line",
@@ -2426,33 +2442,33 @@ var c = [
2426
2442
  "radar",
2427
2443
  "stock",
2428
2444
  "surface"
2429
- ]), Or = (e) => e === Er.chartEx.relType ? "chartEx" : e === Er.chart.relType ? "chart" : null, kr = (e) => Dr.has(e) ? "chart" : Gn.has(e) ? "chartEx" : null, Ar = (e) => {
2430
- let t = sn(e);
2445
+ ]), jr = (e) => e === kr.chartEx.relType ? "chartEx" : e === kr.chart.relType ? "chart" : null, Mr = (e) => Ar.has(e) ? "chart" : Jn.has(e) ? "chartEx" : null, Nr = (e) => {
2446
+ let t = ln(e);
2431
2447
  if (t) return {
2432
2448
  model: t.model,
2433
2449
  family: "chart",
2434
2450
  kept: t.kept,
2435
2451
  lossy: !1
2436
2452
  };
2437
- let n = Cr(e);
2453
+ let n = Er(e);
2438
2454
  return n ? {
2439
2455
  model: n.model,
2440
2456
  family: "chartEx",
2441
2457
  kept: n.kept,
2442
2458
  lossy: n.lossy
2443
2459
  } : null;
2444
- }, jr = (e) => {
2445
- if (Array.isArray(e)) return e.map(jr);
2460
+ }, Pr = (e) => {
2461
+ if (Array.isArray(e)) return e.map(Pr);
2446
2462
  if (typeof e != "object" || !e) return e;
2447
2463
  let t = {};
2448
- for (let [n, r] of Object.entries(e)) n !== "unknown" && (t[n] = jr(r));
2464
+ for (let [n, r] of Object.entries(e)) n !== "unknown" && (t[n] = Pr(r));
2449
2465
  return t;
2450
- }, Mr = (e, t) => {
2451
- let n = e.chart?.plotArea?.groups ?? [], r = n.map((e) => kr(e.type)).find((e) => e !== null) ?? t?.family ?? "chart", i = n.filter((e) => kr(e.type) !== r).map((e) => e.type), a = e;
2466
+ }, Fr = (e, t) => {
2467
+ let n = e.chart?.plotArea?.groups ?? [], r = n.map((e) => Mr(e.type)).find((e) => e !== null) ?? t?.family ?? "chart", i = n.filter((e) => Mr(e.type) !== r).map((e) => e.type), a = e;
2452
2468
  if (i.length > 0) {
2453
2469
  let t = {
2454
2470
  ...e.chart.plotArea,
2455
- groups: n.filter((e) => kr(e.type) === r)
2471
+ groups: n.filter((e) => Mr(e.type) === r)
2456
2472
  };
2457
2473
  a = {
2458
2474
  ...e,
@@ -2463,12 +2479,12 @@ var c = [
2463
2479
  };
2464
2480
  }
2465
2481
  let o = (t?.family ?? r) === r;
2466
- o || (a = jr(a));
2482
+ o || (a = Pr(a));
2467
2483
  let s = o ? t?.xml : void 0;
2468
2484
  return {
2469
2485
  family: r,
2470
2486
  leftOut: i,
2471
- xml: r === "chartEx" ? Tr(a, s) : un(a, s)
2487
+ xml: r === "chartEx" ? Or(a, s) : fn(a, s)
2472
2488
  };
2473
2489
  };
2474
- export { u as a, l as c, Mr as i, c as l, Or as n, h as o, Ar as r, g as s, Er as t };
2490
+ export { u as a, l as c, Fr as i, c as l, jr as n, h as o, Nr as r, g as s, kr as t };