@sheetxl/io-xlsx 0.8.0-beta.11 → 0.8.0-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/browser/esm/{Bs0EzhdU8WgGfPzf.mjs → 20e8E-6B9lZDdDO3.mjs} +2 -2
  2. package/browser/esm/{DICL6ecj9BdJv8aX.mjs → B4_m1DDdERBw_oc_.mjs} +4 -4
  3. package/browser/esm/{CuAXx5i4uqTz-mMY.mjs → B8HGBRlYw3gtV6cS.mjs} +1 -1
  4. package/browser/esm/{CzFYJPxmLyKgEKF0.mjs → BUnVDknxJ3z7Byym.mjs} +2 -2
  5. package/browser/esm/{yveeVJ6hKDI5KDEz.mjs → BZULU4MreyJ0WsDY.mjs} +1243 -1083
  6. package/browser/esm/{Cv3R6fGatARKedSn.mjs → BduVw3dFdh9sSGv_.mjs} +2560 -2120
  7. package/browser/esm/CM4k1dv3DNPThvDz.mjs +24 -0
  8. package/browser/esm/{CZ9I80og75SDRjv0.mjs → CkEGcTzeyh7cqVVb.mjs} +2 -2
  9. package/browser/esm/{BiDqExNXiY7ykk8E.mjs → DmW0VCJFl3eX7pBV.mjs} +199 -198
  10. package/browser/esm/{DatIA9fZbEPjW4bh.mjs → eFR-PmxEV53J-933.mjs} +1782 -1266
  11. package/browser/esm/index.mjs +2 -2
  12. package/browser/esm/{CLWsOc6DO8l1G_LF.mjs → khCH6SyDFBiHzmSl.mjs} +816 -764
  13. package/node/esm/BqB-dnUZaszNS--K.mjs +6367 -0
  14. package/node/esm/{Bpqm_PpGLpdjL47-.mjs → ByC9KtkF09muIv1I.mjs} +257 -256
  15. package/node/esm/{CAJxmJdobUbzpUz5.mjs → CHElwgFJ32Hh_gHU.mjs} +2 -2
  16. package/node/esm/{fopiRR7OiVoEiF7B.mjs → CIpg0EBGoVM58ajd.mjs} +2 -2
  17. package/node/esm/{DScqM1V4wPntNP6-.mjs → CJt_Kh2EU8DlMcus.mjs} +2046 -1588
  18. package/node/esm/{B9Zn6H1RV07Ob377.mjs → COzTSkHGuyKdKaxO.mjs} +512 -460
  19. package/node/esm/{ipiyzn5Pfohw2afB.mjs → Cc4XXs0Y2lL-2Et9.mjs} +1350 -1184
  20. package/node/esm/{CxlSbH7mmnEEsqmX.mjs → DmvVllQAwUtHEJbX.mjs} +1 -1
  21. package/node/esm/index.mjs +4 -4
  22. package/package.json +3 -3
  23. package/types/src/AutoFilterRules.d.ts +0 -42
  24. package/types/src/DataTableFormula.d.ts +26 -0
  25. package/types/src/DataValidationRules.d.ts +0 -5
  26. package/types/src/ExcelCalcStamp.d.ts +0 -36
  27. package/types/src/ExcelCompat.d.ts +0 -140
  28. package/types/src/ExcelFunctionFacts.d.ts +0 -272
  29. package/types/src/ExcelReservedNames.d.ts +0 -64
  30. package/types/src/KnownFonts.d.ts +0 -13
  31. package/types/src/LegacyFormula.d.ts +0 -58
  32. package/types/src/Plugin.d.ts +3 -3
  33. package/types/src/SheetKinds.d.ts +0 -15
  34. package/types/src/SourcePackage.d.ts +0 -44
  35. package/types/src/Types.d.ts +2 -3
  36. package/types/src/chart/ChartSpaceXml.d.ts +2 -1
  37. package/types/src/chart/_chartCodecs.d.ts +2 -0
  38. package/types/src/chart/_chartExStyle.d.ts +0 -9
  39. package/types/src/reader/CellControls.d.ts +18 -0
  40. package/types/src/reader/DummyFunctionUnwrap.d.ts +43 -23
  41. package/types/src/reader/LibreOfficeDataTable.d.ts +3 -2
  42. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +0 -8
  43. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +1 -11
  44. package/types/src/reader/domVisitors/FeaturePropertyBagVisitor.d.ts +18 -0
  45. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +0 -11
  46. package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +6 -0
  47. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +0 -9
  48. package/types/src/reader/domVisitors/index.d.ts +2 -4
  49. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +1 -0
  50. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +0 -15
  51. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +16 -3
  52. package/types/src/richValue/ErrorRichValueHandler.d.ts +22 -0
  53. package/types/src/richValue/IRichValueHandler.d.ts +109 -0
  54. package/types/src/richValue/LocalImageRichValueHandler.d.ts +18 -0
  55. package/types/src/richValue/RichDataParts.d.ts +69 -0
  56. package/types/src/richValue/RichRecordWriter.d.ts +61 -0
  57. package/types/src/richValue/RichValueHandlers.d.ts +25 -0
  58. package/types/src/richValue/RichValueResolver.d.ts +54 -0
  59. package/types/src/richValue/WebImageRichValueHandler.d.ts +37 -0
  60. package/types/src/richValue/index.d.ts +7 -0
  61. package/types/src/utils/VmlNoteStyle.d.ts +0 -19
  62. package/types/src/vba/VBAProject.d.ts +0 -19
  63. package/types/src/writer/builder/OpcXmlUtils.d.ts +0 -8
  64. package/types/src/writer/builder/PackageBuilder.d.ts +0 -41
  65. package/types/src/writer/builder/Types.d.ts +0 -30
  66. package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +0 -11
  67. package/types/src/writer/emitters/FeaturePropertyBagEmitter.d.ts +8 -0
  68. package/types/src/writer/emitters/RichValuePartsEmitters.d.ts +36 -0
  69. package/types/src/writer/emitters/RichValueRelEmitter.d.ts +12 -0
  70. package/types/src/writer/emitters/RichValueStructureEmitter.d.ts +4 -3
  71. package/types/src/writer/emitters/RichValueTypesEmitter.d.ts +3 -2
  72. package/types/src/writer/emitters/RichValueWebImageEmitter.d.ts +24 -0
  73. package/types/src/writer/emitters/SlicerEmitter.d.ts +5 -2
  74. package/types/src/writer/emitters/StylesEmitter.d.ts +2 -0
  75. package/types/src/writer/utils/CellControlComplements.d.ts +29 -0
  76. package/types/src/writer/utils/DefaultRows.d.ts +0 -16
  77. package/types/src/writer/utils/DummyFunction.d.ts +0 -23
  78. package/types/src/writer/utils/RichValueCollector.d.ts +81 -129
  79. package/types/src/writer/utils/SheetStyleLayout.d.ts +18 -5
  80. package/node/esm/DD-yXSBzvDYy0TX5.mjs +0 -5842
  81. package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts +0 -7
  82. package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts +0 -6
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.11
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.13
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -78,10 +78,10 @@ var r = [
78
78
  r: "r",
79
79
  c15: "c15",
80
80
  cx: "cx"
81
- }, w = (t) => t === p || t === f, k = (t) => t === m || t === h, S = (t) => t === y, P = Object.freeze({ xml: v }), L = /([^\s=]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g, C = (t) => {
81
+ }, w = (t) => t === p || t === f, k = (t) => t === m || t === h, S = (t) => t === y, L = Object.freeze({ xml: v }), P = /([^\s=]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g, C = (t) => {
82
82
  const e = [];
83
- L.lastIndex = 0;
84
- for (let n = L.exec(t.attrs); n; n = L.exec(t.attrs)) e.push([n[1], a(n[2] ?? n[3] ?? "")]);
83
+ P.lastIndex = 0;
84
+ for (let n = P.exec(t.attrs); n; n = P.exec(t.attrs)) e.push([n[1], a(n[2] ?? n[3] ?? "")]);
85
85
  return e;
86
86
  }, T = (t, e) => {
87
87
  let n = null;
@@ -226,7 +226,7 @@ var r = [
226
226
  h?.many && (b.at = u[h.key]), (a ??= []).push(b);
227
227
  }
228
228
  return (o || a) && (i.unknown = {}, a && (i.unknown.elements = a), o && (i.unknown.attributes = o)), e.afterRead?.(i, t, s, r), i;
229
- }, z = (t, e, n, r) => {
229
+ }, B = (t, e, n, r) => {
230
230
  const s = [];
231
231
  for (const t of r.attributes ?? []) {
232
232
  const e = n[t.key];
@@ -250,7 +250,7 @@ var r = [
250
250
  l(() => !0);
251
251
  const d = o.toString();
252
252
  "" === d ? t.open(e, s, !0) : t.open(e, s).raw(d).close(e);
253
- }, B = (t, e) => `${x[t]}:${e}`, E = (t, e, n = t, r = "c") => ({
253
+ }, E = (t, e) => `${x[t]}:${e}`, z = (t, e, n = t, r = "c") => ({
254
254
  tags: [t],
255
255
  key: n,
256
256
  ns: r,
@@ -272,7 +272,7 @@ var r = [
272
272
  return Number.isFinite(r) && ("int" !== e || Number.isInteger(r)) && F(String(r)) === F(n) ? r : void 0;
273
273
  },
274
274
  write: (n, s) => {
275
- n.val(B(r, t), "bool" === e ? O(s) : String(s));
275
+ n.val(E(r, t), "bool" === e ? O(s) : String(s));
276
276
  }
277
277
  }), H = (t, e = t, n = "c") => ({
278
278
  tags: [t],
@@ -282,7 +282,7 @@ var r = [
282
282
  if (!(c(t).length > 0 || C(t).some(([t]) => !t.startsWith("xmlns")))) return u(t);
283
283
  },
284
284
  write: (e, r) => {
285
- const s = B(n, t);
285
+ const s = E(n, t);
286
286
  "" === r ? e.open(s, null, !0) : e.open(s).text(r).close(s);
287
287
  }
288
288
  }), V = (t, e, n = t, r) => {
@@ -293,7 +293,7 @@ var r = [
293
293
  ns: s,
294
294
  many: r?.many,
295
295
  read: (t, e, n) => W(t, i(), e, n),
296
- write: (e, n) => z(e, B(s, t), n, i())
296
+ write: (e, n) => B(e, E(s, t), n, i())
297
297
  };
298
298
  }, q = (t, e, n = t, r = 1) => ({
299
299
  name: t,
@@ -848,7 +848,7 @@ var r = [
848
848
  }] }, kt = {
849
849
  attributes: [q("id", "str", "id"), q("type", "str", "type")],
850
850
  fields: wt.fields
851
- }, St = { fields: [V("rPr", vt, "rPr", { ns: "a" })] }, Pt = { fields: [
851
+ }, St = { fields: [V("rPr", vt, "rPr", { ns: "a" })] }, Lt = { fields: [
852
852
  V("pPr", xt, "pPr", { ns: "a" }),
853
853
  {
854
854
  tags: [
@@ -878,15 +878,15 @@ var r = [
878
878
  write: (t, e) => {
879
879
  if (e.break) {
880
880
  const { text: n, break: r, ...s } = e;
881
- z(t, _("br"), s, St);
881
+ B(t, _("br"), s, St);
882
882
  } else if (e.field) {
883
883
  const { field: n, ...r } = e;
884
- z(t, _("fld"), {
884
+ B(t, _("fld"), {
885
885
  ...r,
886
886
  id: n.id,
887
887
  type: n.type
888
888
  }, kt);
889
- } else z(t, _("r"), e, wt);
889
+ } else B(t, _("r"), e, wt);
890
890
  }
891
891
  },
892
892
  V("endParaRPr", vt, "endRun", { ns: "a" })
@@ -909,7 +909,7 @@ var r = [
909
909
  fields: []
910
910
  }, "bodyPr", { ns: "a" }),
911
911
  V("lstStyle", { fields: [] }, "lstStyle", { ns: "a" }),
912
- V("p", Pt, "paragraphs", {
912
+ V("p", Lt, "paragraphs", {
913
913
  ns: "a",
914
914
  many: !0
915
915
  })
@@ -918,19 +918,19 @@ var r = [
918
918
  fields: [H("v")]
919
919
  }, Nt = { fields: [
920
920
  H("formatCode"),
921
- E("ptCount", "int"),
921
+ z("ptCount", "int"),
922
922
  V("pt", Dt, "points", { many: !0 })
923
- ] }, $t = { fields: [E("ptCount", "int"), V("pt", Dt, "points", { many: !0 })] }, Ot = { fields: [E("ptCount", "int"), V("lvl", { fields: [V("pt", Dt, "points", { many: !0 })] }, "levels", { many: !0 })] }, jt = { fields: [H("f"), V("numCache", Nt, "cache")] }, Ft = { fields: [H("f"), V("strCache", $t, "cache")] }, Mt = { fields: [H("f"), V("multiLvlStrCache", Ot, "cache")] }, Rt = V("datalabelsRange", { fields: [H("f", "f", "c15"), V("dlblRangeCache", $t, "cache", { ns: "c15" })] }, "datalabelsRange", { ns: "c15" }), At = {
923
+ ] }, $t = { fields: [z("ptCount", "int"), V("pt", Dt, "points", { many: !0 })] }, Ot = { fields: [z("ptCount", "int"), V("lvl", { fields: [V("pt", Dt, "points", { many: !0 })] }, "levels", { many: !0 })] }, jt = { fields: [H("f"), V("numCache", Nt, "cache")] }, Ft = { fields: [H("f"), V("strCache", $t, "cache")] }, Mt = { fields: [H("f"), V("multiLvlStrCache", Ot, "cache")] }, Rt = V("datalabelsRange", { fields: [H("f", "f", "c15"), V("dlblRangeCache", $t, "cache", { ns: "c15" })] }, "datalabelsRange", { ns: "c15" }), At = {
924
924
  ...Rt,
925
925
  read: (t, e, n) => e[x.c15] === g ? Rt.read(t, e, n) : void 0
926
- }, Ut = E("showDataLabelsRange", "bool", "showDataLabelsRange", "c15"), Wt = {
926
+ }, Ut = z("showDataLabelsRange", "bool", "showDataLabelsRange", "c15"), Wt = {
927
927
  ...Ut,
928
928
  read: (t, e, n) => e[x.c15] === g ? Ut.read(t, e, n) : void 0
929
- }, Bt = { fields: [V("ext", {
929
+ }, Et = { fields: [V("ext", {
930
930
  attributes: [q("uri", "str")],
931
931
  fields: [At, Wt],
932
932
  declares: (t) => void 0 !== t.datalabelsRange || void 0 !== t.showDataLabelsRange ? [[`xmlns:${x.c15}`, g]] : []
933
- }, "extensions", { many: !0 })] }, Et = { fields: [
933
+ }, "extensions", { many: !0 })] }, zt = { fields: [
934
934
  V("multiLvlStrRef", Mt),
935
935
  V("numRef", jt),
936
936
  V("numLit", Nt),
@@ -940,58 +940,58 @@ var r = [
940
940
  attributes: [q("formatCode", "str"), q("sourceLinked", "bool")],
941
941
  fields: []
942
942
  }, Jt = { fields: [V("manualLayout", { fields: [
943
- E("layoutTarget", "str"),
944
- E("xMode", "str"),
945
- E("yMode", "str"),
946
- E("wMode", "str"),
947
- E("hMode", "str"),
948
- E("x", "num"),
949
- E("y", "num"),
950
- E("w", "num"),
951
- E("h", "num")
943
+ z("layoutTarget", "str"),
944
+ z("xMode", "str"),
945
+ z("yMode", "str"),
946
+ z("wMode", "str"),
947
+ z("hMode", "str"),
948
+ z("x", "num"),
949
+ z("y", "num"),
950
+ z("w", "num"),
951
+ z("h", "num")
952
952
  ] })] }, _t = { fields: [
953
953
  V("tx", Vt),
954
954
  V("layout", Jt),
955
- E("overlay", "bool"),
955
+ z("overlay", "bool"),
956
956
  Tt(),
957
957
  It()
958
958
  ] }, Kt = { fields: [Tt()] }, Xt = { fields: [
959
- E("symbol", "str"),
960
- E("size", "int"),
959
+ z("symbol", "str"),
960
+ z("size", "int"),
961
961
  Tt()
962
962
  ] }, Yt = { fields: [
963
- E("idx", "int"),
964
- E("invertIfNegative", "bool"),
963
+ z("idx", "int"),
964
+ z("invertIfNegative", "bool"),
965
965
  V("marker", Xt),
966
- E("bubble3D", "bool"),
967
- E("explosion", "int"),
966
+ z("bubble3D", "bool"),
967
+ z("explosion", "int"),
968
968
  Tt()
969
969
  ] }, Qt = () => [
970
970
  V("numFmt", qt),
971
971
  Tt(),
972
972
  It(),
973
- E("dLblPos", "str"),
974
- E("showLegendKey", "bool"),
975
- E("showVal", "bool"),
976
- E("showCatName", "bool"),
977
- E("showSerName", "bool"),
978
- E("showPercent", "bool"),
979
- E("showBubbleSize", "bool"),
973
+ z("dLblPos", "str"),
974
+ z("showLegendKey", "bool"),
975
+ z("showVal", "bool"),
976
+ z("showCatName", "bool"),
977
+ z("showSerName", "bool"),
978
+ z("showPercent", "bool"),
979
+ z("showBubbleSize", "bool"),
980
980
  H("separator")
981
981
  ], te = { fields: [
982
982
  V("dLbl", { fields: [
983
- E("idx", "int"),
984
- E("delete", "bool"),
983
+ z("idx", "int"),
984
+ z("delete", "bool"),
985
985
  V("layout", Jt),
986
986
  V("tx", Vt),
987
987
  ...Qt(),
988
- V("extLst", Bt)
988
+ V("extLst", Et)
989
989
  ] }, "labels", { many: !0 }),
990
- E("delete", "bool"),
990
+ z("delete", "bool"),
991
991
  ...Qt(),
992
- E("showLeaderLines", "bool"),
992
+ z("showLeaderLines", "bool"),
993
993
  V("leaderLines", Kt),
994
- V("extLst", Bt)
994
+ V("extLst", Et)
995
995
  ] }, ee = { fields: [
996
996
  V("layout", Jt),
997
997
  V("tx", Vt),
@@ -1001,45 +1001,45 @@ var r = [
1001
1001
  ] }, ne = { fields: [
1002
1002
  H("name"),
1003
1003
  Tt(),
1004
- E("trendlineType", "str"),
1005
- E("order", "int"),
1006
- E("period", "int"),
1007
- E("forward", "num"),
1008
- E("backward", "num"),
1009
- E("intercept", "num"),
1010
- E("dispRSqr", "bool"),
1011
- E("dispEq", "bool"),
1004
+ z("trendlineType", "str"),
1005
+ z("order", "int"),
1006
+ z("period", "int"),
1007
+ z("forward", "num"),
1008
+ z("backward", "num"),
1009
+ z("intercept", "num"),
1010
+ z("dispRSqr", "bool"),
1011
+ z("dispEq", "bool"),
1012
1012
  V("trendlineLbl", ee)
1013
1013
  ] }, re = { fields: [
1014
- E("errDir", "str"),
1015
- E("errBarType", "str"),
1016
- E("errValType", "str"),
1017
- E("noEndCap", "bool"),
1018
- V("plus", Et),
1019
- V("minus", Et),
1020
- E("val", "num"),
1014
+ z("errDir", "str"),
1015
+ z("errBarType", "str"),
1016
+ z("errValType", "str"),
1017
+ z("noEndCap", "bool"),
1018
+ V("plus", zt),
1019
+ V("minus", zt),
1020
+ z("val", "num"),
1021
1021
  Tt(),
1022
- V("extLst", Bt)
1022
+ V("extLst", Et)
1023
1023
  ] }, se = { fields: [
1024
- E("gapWidth", "int"),
1024
+ z("gapWidth", "int"),
1025
1025
  V("upBars", Kt),
1026
1026
  V("downBars", Kt)
1027
1027
  ] }, ie = () => [
1028
- E("idx", "int"),
1029
- E("order", "int"),
1028
+ z("idx", "int"),
1029
+ z("order", "int"),
1030
1030
  V("tx", Ht),
1031
1031
  Tt()
1032
- ], oe = () => V("dPt", Yt, "points", { many: !0 }), ae = () => V("dLbls", te), le = () => V("trendline", ne, "trendlines", { many: !0 }), de = () => V("errBars", re, "errBars", { many: !0 }), ce = (t) => V(t, Et), ue = () => V("extLst", Bt), pe = {
1032
+ ], oe = () => V("dPt", Yt, "points", { many: !0 }), ae = () => V("dLbls", te), le = () => V("trendline", ne, "trendlines", { many: !0 }), de = () => V("errBars", re, "errBars", { many: !0 }), ce = (t) => V(t, zt), ue = () => V("extLst", Et), pe = {
1033
1033
  bar: { fields: [
1034
1034
  ...ie(),
1035
- E("invertIfNegative", "bool"),
1035
+ z("invertIfNegative", "bool"),
1036
1036
  oe(),
1037
1037
  ae(),
1038
1038
  le(),
1039
1039
  de(),
1040
1040
  ce("cat"),
1041
1041
  ce("val"),
1042
- E("shape", "str"),
1042
+ z("shape", "str"),
1043
1043
  ue()
1044
1044
  ] },
1045
1045
  line: { fields: [
@@ -1051,7 +1051,7 @@ var r = [
1051
1051
  de(),
1052
1052
  ce("cat"),
1053
1053
  ce("val"),
1054
- E("smooth", "bool"),
1054
+ z("smooth", "bool"),
1055
1055
  ue()
1056
1056
  ] },
1057
1057
  area: { fields: [
@@ -1066,7 +1066,7 @@ var r = [
1066
1066
  ] },
1067
1067
  pie: { fields: [
1068
1068
  ...ie(),
1069
- E("explosion", "int"),
1069
+ z("explosion", "int"),
1070
1070
  oe(),
1071
1071
  ae(),
1072
1072
  ce("cat"),
@@ -1082,12 +1082,12 @@ var r = [
1082
1082
  de(),
1083
1083
  ce("xVal"),
1084
1084
  ce("yVal"),
1085
- E("smooth", "bool"),
1085
+ z("smooth", "bool"),
1086
1086
  ue()
1087
1087
  ] },
1088
1088
  bubble: { fields: [
1089
1089
  ...ie(),
1090
- E("invertIfNegative", "bool"),
1090
+ z("invertIfNegative", "bool"),
1091
1091
  oe(),
1092
1092
  ae(),
1093
1093
  le(),
@@ -1095,7 +1095,7 @@ var r = [
1095
1095
  ce("xVal"),
1096
1096
  ce("yVal"),
1097
1097
  ce("bubbleSize"),
1098
- E("bubble3D", "bool"),
1098
+ z("bubble3D", "bool"),
1099
1099
  ue()
1100
1100
  ] },
1101
1101
  radar: { fields: [
@@ -1114,7 +1114,7 @@ var r = [
1114
1114
  ue()
1115
1115
  ] }
1116
1116
  }, fe = (t) => V("ser", pe[t], "series", { many: !0 }), me = () => ({
1117
- ...E("axId", "int", "axIds"),
1117
+ ...z("axId", "int", "axIds"),
1118
1118
  many: !0
1119
1119
  }), he = (t, e) => V(t, Kt, t, { many: e }), be = {
1120
1120
  tags: ["custSplit"],
@@ -1122,18 +1122,18 @@ var r = [
1122
1122
  ns: "c",
1123
1123
  read: (t, e, n) => {
1124
1124
  const r = W(t, { fields: [{
1125
- ...E("secondPiePt", "int", "points"),
1125
+ ...z("secondPiePt", "int", "points"),
1126
1126
  many: !0
1127
1127
  }] }, e, n);
1128
1128
  return r.unknown ? void 0 : r.points ?? [];
1129
1129
  },
1130
1130
  write: (t, e) => {
1131
- z(t, "c:custSplit", { points: e }, { fields: [{
1132
- ...E("secondPiePt", "int", "points"),
1131
+ B(t, "c:custSplit", { points: e }, { fields: [{
1132
+ ...z("secondPiePt", "int", "points"),
1133
1133
  many: !0
1134
1134
  }] });
1135
1135
  }
1136
- }, ge = { fields: [E("idx", "int"), Tt()] }, ye = {
1136
+ }, ge = { fields: [z("idx", "int"), Tt()] }, ye = {
1137
1137
  tags: ["bandFmts"],
1138
1138
  key: "bandFmts",
1139
1139
  ns: "c",
@@ -1142,14 +1142,14 @@ var r = [
1142
1142
  return r.unknown ? void 0 : r.formats ?? [];
1143
1143
  },
1144
1144
  write: (t, e) => {
1145
- z(t, "c:bandFmts", { formats: e }, { fields: [V("bandFmt", ge, "formats", { many: !0 })] });
1145
+ B(t, "c:bandFmts", { formats: e }, { fields: [V("bandFmt", ge, "formats", { many: !0 })] });
1146
1146
  }
1147
1147
  }, ve = {
1148
1148
  areaChart: {
1149
1149
  type: "area",
1150
1150
  codec: { fields: [
1151
- E("grouping", "str"),
1152
- E("varyColors", "bool"),
1151
+ z("grouping", "str"),
1152
+ z("varyColors", "bool"),
1153
1153
  fe("area"),
1154
1154
  ae(),
1155
1155
  he("dropLines"),
@@ -1160,27 +1160,27 @@ var r = [
1160
1160
  type: "area",
1161
1161
  is3D: !0,
1162
1162
  codec: { fields: [
1163
- E("grouping", "str"),
1164
- E("varyColors", "bool"),
1163
+ z("grouping", "str"),
1164
+ z("varyColors", "bool"),
1165
1165
  fe("area"),
1166
1166
  ae(),
1167
1167
  he("dropLines"),
1168
- E("gapDepth", "int"),
1168
+ z("gapDepth", "int"),
1169
1169
  me()
1170
1170
  ] }
1171
1171
  },
1172
1172
  lineChart: {
1173
1173
  type: "line",
1174
1174
  codec: { fields: [
1175
- E("grouping", "str"),
1176
- E("varyColors", "bool"),
1175
+ z("grouping", "str"),
1176
+ z("varyColors", "bool"),
1177
1177
  fe("line"),
1178
1178
  ae(),
1179
1179
  he("dropLines"),
1180
1180
  he("hiLowLines"),
1181
1181
  V("upDownBars", se),
1182
- E("marker", "bool"),
1183
- E("smooth", "bool"),
1182
+ z("marker", "bool"),
1183
+ z("smooth", "bool"),
1184
1184
  me()
1185
1185
  ] }
1186
1186
  },
@@ -1188,12 +1188,12 @@ var r = [
1188
1188
  type: "line",
1189
1189
  is3D: !0,
1190
1190
  codec: { fields: [
1191
- E("grouping", "str"),
1192
- E("varyColors", "bool"),
1191
+ z("grouping", "str"),
1192
+ z("varyColors", "bool"),
1193
1193
  fe("line"),
1194
1194
  ae(),
1195
1195
  he("dropLines"),
1196
- E("gapDepth", "int"),
1196
+ z("gapDepth", "int"),
1197
1197
  me()
1198
1198
  ] }
1199
1199
  },
@@ -1211,8 +1211,8 @@ var r = [
1211
1211
  radarChart: {
1212
1212
  type: "radar",
1213
1213
  codec: { fields: [
1214
- E("radarStyle", "str"),
1215
- E("varyColors", "bool"),
1214
+ z("radarStyle", "str"),
1215
+ z("varyColors", "bool"),
1216
1216
  fe("radar"),
1217
1217
  ae(),
1218
1218
  me()
@@ -1221,8 +1221,8 @@ var r = [
1221
1221
  scatterChart: {
1222
1222
  type: "scatter",
1223
1223
  codec: { fields: [
1224
- E("scatterStyle", "str"),
1225
- E("varyColors", "bool"),
1224
+ z("scatterStyle", "str"),
1225
+ z("varyColors", "bool"),
1226
1226
  fe("scatter"),
1227
1227
  ae(),
1228
1228
  me()
@@ -1231,17 +1231,17 @@ var r = [
1231
1231
  pieChart: {
1232
1232
  type: "pie",
1233
1233
  codec: { fields: [
1234
- E("varyColors", "bool"),
1234
+ z("varyColors", "bool"),
1235
1235
  fe("pie"),
1236
1236
  ae(),
1237
- E("firstSliceAng", "int")
1237
+ z("firstSliceAng", "int")
1238
1238
  ] }
1239
1239
  },
1240
1240
  pie3DChart: {
1241
1241
  type: "pie",
1242
1242
  is3D: !0,
1243
1243
  codec: { fields: [
1244
- E("varyColors", "bool"),
1244
+ z("varyColors", "bool"),
1245
1245
  fe("pie"),
1246
1246
  ae()
1247
1247
  ] }
@@ -1249,23 +1249,23 @@ var r = [
1249
1249
  doughnutChart: {
1250
1250
  type: "doughnut",
1251
1251
  codec: { fields: [
1252
- E("varyColors", "bool"),
1252
+ z("varyColors", "bool"),
1253
1253
  fe("pie"),
1254
1254
  ae(),
1255
- E("firstSliceAng", "int"),
1256
- E("holeSize", "int")
1255
+ z("firstSliceAng", "int"),
1256
+ z("holeSize", "int")
1257
1257
  ] }
1258
1258
  },
1259
1259
  barChart: {
1260
1260
  type: "bar",
1261
1261
  codec: { fields: [
1262
- E("barDir", "str"),
1263
- E("grouping", "str"),
1264
- E("varyColors", "bool"),
1262
+ z("barDir", "str"),
1263
+ z("grouping", "str"),
1264
+ z("varyColors", "bool"),
1265
1265
  fe("bar"),
1266
1266
  ae(),
1267
- E("gapWidth", "int"),
1268
- E("overlap", "int"),
1267
+ z("gapWidth", "int"),
1268
+ z("overlap", "int"),
1269
1269
  he("serLines", !0),
1270
1270
  me()
1271
1271
  ] }
@@ -1274,36 +1274,36 @@ var r = [
1274
1274
  type: "bar",
1275
1275
  is3D: !0,
1276
1276
  codec: { fields: [
1277
- E("barDir", "str"),
1278
- E("grouping", "str"),
1279
- E("varyColors", "bool"),
1277
+ z("barDir", "str"),
1278
+ z("grouping", "str"),
1279
+ z("varyColors", "bool"),
1280
1280
  fe("bar"),
1281
1281
  ae(),
1282
- E("gapWidth", "int"),
1283
- E("gapDepth", "int"),
1284
- E("shape", "str"),
1282
+ z("gapWidth", "int"),
1283
+ z("gapDepth", "int"),
1284
+ z("shape", "str"),
1285
1285
  me()
1286
1286
  ] }
1287
1287
  },
1288
1288
  ofPieChart: {
1289
1289
  type: "ofPie",
1290
1290
  codec: { fields: [
1291
- E("ofPieType", "str"),
1292
- E("varyColors", "bool"),
1291
+ z("ofPieType", "str"),
1292
+ z("varyColors", "bool"),
1293
1293
  fe("pie"),
1294
1294
  ae(),
1295
- E("gapWidth", "int"),
1296
- E("splitType", "str"),
1297
- E("splitPos", "num"),
1295
+ z("gapWidth", "int"),
1296
+ z("splitType", "str"),
1297
+ z("splitPos", "num"),
1298
1298
  be,
1299
- E("secondPieSize", "int"),
1299
+ z("secondPieSize", "int"),
1300
1300
  he("serLines", !0)
1301
1301
  ] }
1302
1302
  },
1303
1303
  surfaceChart: {
1304
1304
  type: "surface",
1305
1305
  codec: { fields: [
1306
- E("wireframe", "bool"),
1306
+ z("wireframe", "bool"),
1307
1307
  fe("surface"),
1308
1308
  ye,
1309
1309
  me()
@@ -1313,7 +1313,7 @@ var r = [
1313
1313
  type: "surface",
1314
1314
  is3D: !0,
1315
1315
  codec: { fields: [
1316
- E("wireframe", "bool"),
1316
+ z("wireframe", "bool"),
1317
1317
  fe("surface"),
1318
1318
  ye,
1319
1319
  me()
@@ -1322,13 +1322,13 @@ var r = [
1322
1322
  bubbleChart: {
1323
1323
  type: "bubble",
1324
1324
  codec: { fields: [
1325
- E("varyColors", "bool"),
1325
+ z("varyColors", "bool"),
1326
1326
  fe("bubble"),
1327
1327
  ae(),
1328
- E("bubble3D", "bool"),
1329
- E("bubbleScale", "int"),
1330
- E("showNegBubbles", "bool"),
1331
- E("sizeRepresents", "str"),
1328
+ z("bubble3D", "bool"),
1329
+ z("bubbleScale", "int"),
1330
+ z("showNegBubbles", "bool"),
1331
+ z("sizeRepresents", "str"),
1332
1332
  me()
1333
1333
  ] }
1334
1334
  }
@@ -1349,173 +1349,221 @@ var r = [
1349
1349
  };
1350
1350
  },
1351
1351
  write: (t, e) => {
1352
- const n = ((t) => `${t.type}${t.is3D ? "3D" : ""}Chart`)(e), { type: r, is3D: s, ...i } = e;
1353
- z(t, `c:${n}`, i, ve[n].codec);
1352
+ const n = ((t) => `${t.type}${t.is3D ? "3D" : ""}Chart`)(e), { type: r, is3D: s, ...i } = Le(e);
1353
+ B(t, `c:${n}`, i, ve[n].codec);
1354
1354
  }
1355
- }, we = { fields: [
1356
- E("logBase", "num"),
1357
- E("orientation", "str"),
1358
- E("max", "num"),
1359
- E("min", "num")
1360
- ] }, ke = { fields: [
1355
+ }, we = [
1356
+ "ctr",
1357
+ "l",
1358
+ "r",
1359
+ "t",
1360
+ "b"
1361
+ ], ke = (t) => {
1362
+ switch (t.type) {
1363
+ case "bar": return t.is3D ? [] : "stacked" === t.grouping || "percentStacked" === t.grouping ? [
1364
+ "ctr",
1365
+ "inEnd",
1366
+ "inBase"
1367
+ ] : [
1368
+ "ctr",
1369
+ "inEnd",
1370
+ "inBase",
1371
+ "outEnd"
1372
+ ];
1373
+ case "line": return t.is3D ? [] : we;
1374
+ case "stock":
1375
+ case "scatter":
1376
+ case "bubble": return we;
1377
+ case "pie":
1378
+ case "ofPie": return [
1379
+ "ctr",
1380
+ "inEnd",
1381
+ "outEnd",
1382
+ "bestFit"
1383
+ ];
1384
+ default: return [];
1385
+ }
1386
+ }, Se = (t, e) => void 0 !== e?.dLblPos && !t.includes(e.dLblPos), Le = (t) => {
1387
+ const e = ke(t), n = (t) => {
1388
+ if (!Se(e, t)) return t;
1389
+ const { dLblPos: n, ...r } = t;
1390
+ return r;
1391
+ }, r = (t) => t.labels ? {
1392
+ ...n(t),
1393
+ labels: t.labels.map(n)
1394
+ } : n(t);
1395
+ return {
1396
+ ...t,
1397
+ ...t.dLbls ? { dLbls: r(t.dLbls) } : {},
1398
+ series: t.series.map((t) => t.dLbls ? {
1399
+ ...t,
1400
+ dLbls: r(t.dLbls)
1401
+ } : t)
1402
+ };
1403
+ }, Pe = { fields: [
1404
+ z("logBase", "num"),
1405
+ z("orientation", "str"),
1406
+ z("max", "num"),
1407
+ z("min", "num")
1408
+ ] }, Ce = { fields: [
1361
1409
  V("layout", Jt),
1362
1410
  V("tx", Vt),
1363
1411
  Tt(),
1364
1412
  It()
1365
- ] }, Se = { fields: [
1366
- E("custUnit", "num"),
1367
- E("builtInUnit", "str"),
1368
- V("dispUnitsLbl", ke)
1369
- ] }, Pe = () => [
1370
- E("axId", "int"),
1371
- V("scaling", we),
1372
- E("delete", "bool"),
1373
- E("axPos", "str"),
1413
+ ] }, Te = { fields: [
1414
+ z("custUnit", "num"),
1415
+ z("builtInUnit", "str"),
1416
+ V("dispUnitsLbl", Ce)
1417
+ ] }, Ie = () => [
1418
+ z("axId", "int"),
1419
+ V("scaling", Pe),
1420
+ z("delete", "bool"),
1421
+ z("axPos", "str"),
1374
1422
  he("majorGridlines"),
1375
1423
  he("minorGridlines"),
1376
1424
  V("title", _t),
1377
1425
  V("numFmt", qt),
1378
- E("majorTickMark", "str"),
1379
- E("minorTickMark", "str"),
1380
- E("tickLblPos", "str"),
1426
+ z("majorTickMark", "str"),
1427
+ z("minorTickMark", "str"),
1428
+ z("tickLblPos", "str"),
1381
1429
  Tt(),
1382
1430
  It(),
1383
- E("crossAx", "int"),
1384
- E("crosses", "str"),
1385
- E("crossesAt", "num")
1386
- ], Le = {
1431
+ z("crossAx", "int"),
1432
+ z("crosses", "str"),
1433
+ z("crossesAt", "num")
1434
+ ], De = {
1387
1435
  valAx: {
1388
1436
  type: "val",
1389
1437
  codec: { fields: [
1390
- ...Pe(),
1391
- E("crossBetween", "str"),
1392
- E("majorUnit", "num"),
1393
- E("minorUnit", "num"),
1394
- V("dispUnits", Se)
1438
+ ...Ie(),
1439
+ z("crossBetween", "str"),
1440
+ z("majorUnit", "num"),
1441
+ z("minorUnit", "num"),
1442
+ V("dispUnits", Te)
1395
1443
  ] }
1396
1444
  },
1397
1445
  catAx: {
1398
1446
  type: "cat",
1399
1447
  codec: { fields: [
1400
- ...Pe(),
1401
- E("auto", "bool"),
1402
- E("lblAlgn", "str"),
1403
- E("lblOffset", "int"),
1404
- E("tickLblSkip", "int"),
1405
- E("tickMarkSkip", "int"),
1406
- E("noMultiLvlLbl", "bool")
1448
+ ...Ie(),
1449
+ z("auto", "bool"),
1450
+ z("lblAlgn", "str"),
1451
+ z("lblOffset", "int"),
1452
+ z("tickLblSkip", "int"),
1453
+ z("tickMarkSkip", "int"),
1454
+ z("noMultiLvlLbl", "bool")
1407
1455
  ] }
1408
1456
  },
1409
1457
  dateAx: {
1410
1458
  type: "date",
1411
1459
  codec: { fields: [
1412
- ...Pe(),
1413
- E("auto", "bool"),
1414
- E("lblOffset", "int"),
1415
- E("baseTimeUnit", "str"),
1416
- E("majorUnit", "num"),
1417
- E("majorTimeUnit", "str"),
1418
- E("minorUnit", "num"),
1419
- E("minorTimeUnit", "str")
1460
+ ...Ie(),
1461
+ z("auto", "bool"),
1462
+ z("lblOffset", "int"),
1463
+ z("baseTimeUnit", "str"),
1464
+ z("majorUnit", "num"),
1465
+ z("majorTimeUnit", "str"),
1466
+ z("minorUnit", "num"),
1467
+ z("minorTimeUnit", "str")
1420
1468
  ] }
1421
1469
  },
1422
1470
  serAx: {
1423
1471
  type: "ser",
1424
1472
  codec: { fields: [
1425
- ...Pe(),
1426
- E("tickLblSkip", "int"),
1427
- E("tickMarkSkip", "int")
1473
+ ...Ie(),
1474
+ z("tickLblSkip", "int"),
1475
+ z("tickMarkSkip", "int")
1428
1476
  ] }
1429
1477
  }
1430
- }, Ce = {
1431
- tags: Object.keys(Le),
1478
+ }, Ne = {
1479
+ tags: Object.keys(De),
1432
1480
  key: "axes",
1433
1481
  ns: "c",
1434
1482
  many: !0,
1435
1483
  read: (t, e, n) => ({
1436
- type: Le[t.name].type,
1437
- ...W(t, Le[t.name].codec, e, n)
1484
+ type: De[t.name].type,
1485
+ ...W(t, De[t.name].codec, e, n)
1438
1486
  }),
1439
1487
  write: (t, e) => {
1440
1488
  const { type: n, ...r } = e, s = `${n}Ax`;
1441
- z(t, `c:${s}`, r, Le[s].codec);
1489
+ B(t, `c:${s}`, r, De[s].codec);
1442
1490
  }
1443
- }, Te = { fields: [
1444
- E("showHorzBorder", "bool"),
1445
- E("showVertBorder", "bool"),
1446
- E("showOutline", "bool"),
1447
- E("showKeys", "bool"),
1491
+ }, $e = { fields: [
1492
+ z("showHorzBorder", "bool"),
1493
+ z("showVertBorder", "bool"),
1494
+ z("showOutline", "bool"),
1495
+ z("showKeys", "bool"),
1448
1496
  Tt(),
1449
1497
  It()
1450
- ] }, Ie = {
1498
+ ] }, Oe = {
1451
1499
  fields: [
1452
1500
  V("layout", Jt),
1453
1501
  xe,
1454
- Ce,
1455
- V("dTable", Te),
1502
+ Ne,
1503
+ V("dTable", $e),
1456
1504
  Tt()
1457
1505
  ],
1458
1506
  afterRead: (t) => {
1459
1507
  t.groups ??= [], t.axes ??= [];
1460
1508
  }
1461
- }, De = { fields: [
1462
- E("rotX", "int"),
1463
- E("hPercent", "int"),
1464
- E("rotY", "int"),
1465
- E("depthPercent", "int"),
1466
- E("rAngAx", "bool"),
1467
- E("perspective", "int")
1468
- ] }, Ne = { fields: [E("thickness", "int"), Tt()] }, $e = { fields: [
1469
- E("idx", "int"),
1470
- E("delete", "bool"),
1509
+ }, je = { fields: [
1510
+ z("rotX", "int"),
1511
+ z("hPercent", "int"),
1512
+ z("rotY", "int"),
1513
+ z("depthPercent", "int"),
1514
+ z("rAngAx", "bool"),
1515
+ z("perspective", "int")
1516
+ ] }, Fe = { fields: [z("thickness", "int"), Tt()] }, Me = { fields: [
1517
+ z("idx", "int"),
1518
+ z("delete", "bool"),
1471
1519
  It()
1472
- ] }, Oe = { fields: [
1473
- E("legendPos", "str"),
1474
- V("legendEntry", $e, "entries", { many: !0 }),
1520
+ ] }, Re = { fields: [
1521
+ z("legendPos", "str"),
1522
+ V("legendEntry", Me, "entries", { many: !0 }),
1475
1523
  V("layout", Jt),
1476
- E("overlay", "bool"),
1524
+ z("overlay", "bool"),
1477
1525
  Tt(),
1478
1526
  It()
1479
- ] }, je = { fields: [
1527
+ ] }, Ae = { fields: [
1480
1528
  V("title", _t),
1481
- E("autoTitleDeleted", "bool"),
1482
- V("view3D", De),
1483
- V("floor", Ne),
1484
- V("sideWall", Ne),
1485
- V("backWall", Ne),
1486
- V("plotArea", Ie),
1487
- V("legend", Oe),
1488
- E("plotVisOnly", "bool"),
1489
- E("dispBlanksAs", "str"),
1490
- E("showDLblsOverMax", "bool")
1491
- ] }, Fe = { fields: [H("name"), E("fmtId", "int")] }, Me = { fields: [
1492
- E("date1904", "bool"),
1493
- E("lang", "str"),
1494
- E("roundedCorners", "bool"),
1495
- E("style", "int"),
1496
- V("pivotSource", Fe),
1497
- V("chart", je),
1529
+ z("autoTitleDeleted", "bool"),
1530
+ V("view3D", je),
1531
+ V("floor", Fe),
1532
+ V("sideWall", Fe),
1533
+ V("backWall", Fe),
1534
+ V("plotArea", Oe),
1535
+ V("legend", Re),
1536
+ z("plotVisOnly", "bool"),
1537
+ z("dispBlanksAs", "str"),
1538
+ z("showDLblsOverMax", "bool")
1539
+ ] }, Ue = { fields: [H("name"), z("fmtId", "int")] }, We = { fields: [
1540
+ z("date1904", "bool"),
1541
+ z("lang", "str"),
1542
+ z("roundedCorners", "bool"),
1543
+ z("style", "int"),
1544
+ V("pivotSource", Ue),
1545
+ V("chart", Ae),
1498
1546
  Tt(),
1499
1547
  It()
1500
- ] }, Re = (t) => {
1548
+ ] }, Be = (t) => {
1501
1549
  const e = d(t);
1502
1550
  if (!e || "chartSpace" !== e.name) return null;
1503
- const n = T(e, P);
1551
+ const n = T(e, L);
1504
1552
  if (!w(I(e, n))) return null;
1505
1553
  const r = new A(t, n);
1506
1554
  return {
1507
- model: W(e, Me, P, r),
1555
+ model: W(e, We, L, r),
1508
1556
  kept: r.kept,
1509
1557
  reordered: r.reordered
1510
1558
  };
1511
- }, Ae = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n", Ue = (t) => {
1559
+ }, Ee = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n", ze = (t) => {
1512
1560
  const e = { ...t.unknown?.attributes }, n = (t, n) => {
1513
1561
  e[`xmlns:${t}`] ??= n;
1514
1562
  };
1515
1563
  n(x.c, p), n(x.a, m), n(x.r, b);
1516
- const r = new D().raw(Ae);
1564
+ const r = new D().raw(Ee);
1517
1565
  return ((t, e) => {
1518
- z(t, "c:chartSpace", e, Me);
1566
+ B(t, "c:chartSpace", e, We);
1519
1567
  })(r, {
1520
1568
  ...t,
1521
1569
  unknown: {
@@ -1523,16 +1571,20 @@ var r = [
1523
1571
  attributes: e
1524
1572
  }
1525
1573
  }), r.toString();
1526
- }, We = (t, e) => {
1527
- if (e) {
1528
- const n = Re(e);
1574
+ }, He = (t, e) => {
1575
+ if (e && (n = t, !(n.chart?.plotArea?.groups ?? []).some((t) => {
1576
+ const e = ke(t), n = (t) => Se(e, t) || !!t?.labels?.some((t) => Se(e, t));
1577
+ return n(t.dLbls) || t.series.some((t) => n(t.dLbls));
1578
+ }))) {
1579
+ const n = Be(e);
1529
1580
  if (n && JSON.stringify(n.model) === JSON.stringify(t)) return e;
1530
1581
  }
1531
- return Ue(t);
1532
- }, ze = (t, e, n = t, r) => V(t, e, n, {
1582
+ var n;
1583
+ return ze(t);
1584
+ }, Ve = (t, e, n = t, r) => V(t, e, n, {
1533
1585
  ns: "cx",
1534
1586
  many: r
1535
- }), Be = () => ze("spPr", bt), Ee = () => ze("txPr", Ct), He = () => ze("numFmt", qt), Ve = (t) => ({
1587
+ }), qe = () => Ve("spPr", bt), Ge = () => Ve("txPr", Ct), Je = () => Ve("numFmt", qt), _e = (t) => ({
1536
1588
  name: t,
1537
1589
  key: t,
1538
1590
  read: (t) => {
@@ -1541,24 +1593,24 @@ var r = [
1541
1593
  return "" !== t.trim() && Number.isFinite(e) ? e : void 0;
1542
1594
  },
1543
1595
  write: (t) => String(t)
1544
- }), qe = (t) => C(t).filter(([t]) => "xmlns" !== t && !t.startsWith("xmlns:")), Ge = (t) => ({
1596
+ }), Ke = (t) => C(t).filter(([t]) => "xmlns" !== t && !t.startsWith("xmlns:")), Xe = (t) => ({
1545
1597
  tags: [t],
1546
1598
  key: t,
1547
1599
  ns: "cx",
1548
1600
  read: (t) => {
1549
1601
  if (c(t).length > 0) return;
1550
1602
  const e = { f: u(t) };
1551
- for (const [n, r] of qe(t)) {
1603
+ for (const [n, r] of Ke(t)) {
1552
1604
  if ("dir" !== n || "col" !== r && "row" !== r) return;
1553
1605
  e.dir = r;
1554
1606
  }
1555
1607
  return "" === e.f ? void 0 : e;
1556
1608
  },
1557
1609
  write: (e, n) => {
1558
- const r = B("cx", t);
1610
+ const r = E("cx", t);
1559
1611
  e.open(r, n.dir ? [["dir", n.dir]] : null).text(n.f).close(r);
1560
1612
  }
1561
- }), Je = {
1613
+ }), Ye = {
1562
1614
  attributes: [
1563
1615
  q("ptCount", "int"),
1564
1616
  q("formatCode", "str"),
@@ -1571,7 +1623,7 @@ var r = [
1571
1623
  many: !0,
1572
1624
  read: (t) => {
1573
1625
  if (c(t).length > 0) return;
1574
- const e = qe(t);
1626
+ const e = Ke(t);
1575
1627
  if (1 !== e.length || "idx" !== e[0][0]) return;
1576
1628
  const n = Number(e[0][1]);
1577
1629
  return Number.isInteger(n) && F(String(n)) === F(e[0][1]) ? {
@@ -1580,29 +1632,29 @@ var r = [
1580
1632
  } : void 0;
1581
1633
  },
1582
1634
  write: (t, e) => {
1583
- const n = B("cx", "pt");
1635
+ const n = E("cx", "pt");
1584
1636
  "" === e.v ? t.open(n, [["idx", String(e.idx)]], !0) : t.open(n, [["idx", String(e.idx)]]).text(e.v).close(n);
1585
1637
  }
1586
1638
  }]
1587
- }, _e = {
1639
+ }, Qe = {
1588
1640
  attributes: [q("type", "str")],
1589
1641
  fields: [
1590
- Ge("f"),
1591
- Ge("nf"),
1592
- ze("lvl", Je, "levels", !0)
1642
+ Xe("f"),
1643
+ Xe("nf"),
1644
+ Ve("lvl", Ye, "levels", !0)
1593
1645
  ]
1594
- }, Ke = /* @__PURE__ */ new Set([
1646
+ }, Ze = /* @__PURE__ */ new Set([
1595
1647
  "val",
1596
1648
  "x",
1597
1649
  "y",
1598
1650
  "size",
1599
1651
  "colorVal"
1600
- ]), Xe = /* @__PURE__ */ new Set([
1652
+ ]), tn = /* @__PURE__ */ new Set([
1601
1653
  "cat",
1602
1654
  "colorStr",
1603
1655
  "entityId"
1604
- ]), Ye = {
1605
- fields: [ze("data", {
1656
+ ]), en = {
1657
+ fields: [Ve("data", {
1606
1658
  attributes: [q("id", "int")],
1607
1659
  fields: [{
1608
1660
  tags: ["numDim", "strDim"],
@@ -1610,11 +1662,11 @@ var r = [
1610
1662
  ns: "cx",
1611
1663
  many: !0,
1612
1664
  read: (t, e, n) => {
1613
- const r = W(t, _e, e, n);
1614
- return ("numDim" === t.name ? Ke : Xe).has(r.type) ? r : void 0;
1665
+ const r = W(t, Qe, e, n);
1666
+ return ("numDim" === t.name ? Ze : tn).has(r.type) ? r : void 0;
1615
1667
  },
1616
1668
  write: (t, e) => {
1617
- z(t, B("cx", Ke.has(e.type) ? "numDim" : "strDim"), e, _e);
1669
+ B(t, E("cx", Ze.has(e.type) ? "numDim" : "strDim"), e, Qe);
1618
1670
  }
1619
1671
  }],
1620
1672
  afterRead: (t) => {
@@ -1624,50 +1676,50 @@ var r = [
1624
1676
  afterRead: (t) => {
1625
1677
  t.data ??= [];
1626
1678
  }
1627
- }, Qe = { fields: [ze("txData", { fields: [Ge("f"), H("v", "v", "cx")] }), ze("rich", Ct)] }, Ze = () => [
1679
+ }, nn = { fields: [Ve("txData", { fields: [Xe("f"), H("v", "v", "cx")] }), Ve("rich", Ct)] }, rn = () => [
1628
1680
  q("pos", "str"),
1629
1681
  q("align", "str"),
1630
1682
  q("overlay", "bool")
1631
- ], tn = {
1632
- attributes: Ze(),
1683
+ ], sn = {
1684
+ attributes: rn(),
1633
1685
  fields: [
1634
- ze("tx", Qe),
1635
- Be(),
1636
- Ee()
1686
+ Ve("tx", nn),
1687
+ qe(),
1688
+ Ge()
1637
1689
  ]
1638
- }, en = {
1639
- attributes: Ze(),
1640
- fields: [Be(), Ee()]
1641
- }, nn = {
1690
+ }, on = {
1691
+ attributes: rn(),
1692
+ fields: [qe(), Ge()]
1693
+ }, an = {
1642
1694
  attributes: [
1643
1695
  q("seriesName", "bool"),
1644
1696
  q("categoryName", "bool"),
1645
1697
  q("value", "bool")
1646
1698
  ],
1647
1699
  fields: []
1648
- }, rn = () => [
1649
- He(),
1650
- Be(),
1651
- Ee(),
1652
- ze("visibility", nn),
1700
+ }, ln = () => [
1701
+ Je(),
1702
+ qe(),
1703
+ Ge(),
1704
+ Ve("visibility", an),
1653
1705
  H("separator", "separator", "cx")
1654
- ], sn = {
1706
+ ], dn = {
1655
1707
  attributes: [q("idx", "int"), q("pos", "str")],
1656
- fields: rn()
1657
- }, on = {
1708
+ fields: ln()
1709
+ }, cn = {
1658
1710
  attributes: [q("idx", "int")],
1659
1711
  fields: []
1660
- }, an = {
1712
+ }, un = {
1661
1713
  attributes: [q("pos", "str")],
1662
1714
  fields: [
1663
- ...rn(),
1664
- ze("dataLabel", sn, "labels", !0),
1665
- ze("dataLabelHidden", on, "hiddenLabels", !0)
1715
+ ...ln(),
1716
+ Ve("dataLabel", dn, "labels", !0),
1717
+ Ve("dataLabelHidden", cn, "hiddenLabels", !0)
1666
1718
  ]
1667
- }, ln = {
1719
+ }, pn = {
1668
1720
  attributes: [q("idx", "int")],
1669
- fields: [Be()]
1670
- }, dn = {
1721
+ fields: [qe()]
1722
+ }, fn = {
1671
1723
  attributes: [
1672
1724
  "connectorLines",
1673
1725
  "meanLine",
@@ -1676,23 +1728,23 @@ var r = [
1676
1728
  "outliers"
1677
1729
  ].map((t) => q(t, "bool")),
1678
1730
  fields: []
1679
- }, cn = {
1731
+ }, mn = {
1680
1732
  attributes: [
1681
1733
  q("intervalClosed", "str"),
1682
- Ve("underflow"),
1683
- Ve("overflow")
1734
+ _e("underflow"),
1735
+ _e("overflow")
1684
1736
  ],
1685
- fields: [E("binSize", "num", "binSize", "cx"), E("binCount", "int", "binCount", "cx")]
1686
- }, un = { fields: [{
1687
- ...E("idx", "int", "indexes", "cx"),
1737
+ fields: [z("binSize", "num", "binSize", "cx"), z("binCount", "int", "binCount", "cx")]
1738
+ }, hn = { fields: [{
1739
+ ...z("idx", "int", "indexes", "cx"),
1688
1740
  many: !0
1689
- }] }, pn = { fields: [
1690
- E("parentLabelLayout", "str", "parentLabelLayout", "cx"),
1691
- E("regionLabelLayout", "str", "regionLabelLayout", "cx"),
1692
- ze("visibility", dn),
1693
- ze("aggregation", { fields: [] }),
1694
- ze("binning", cn),
1695
- ze("statistics", {
1741
+ }] }, bn = { fields: [
1742
+ z("parentLabelLayout", "str", "parentLabelLayout", "cx"),
1743
+ z("regionLabelLayout", "str", "regionLabelLayout", "cx"),
1744
+ Ve("visibility", fn),
1745
+ Ve("aggregation", { fields: [] }),
1746
+ Ve("binning", mn),
1747
+ Ve("statistics", {
1696
1748
  attributes: [q("quartileMethod", "str")],
1697
1749
  fields: []
1698
1750
  }),
@@ -1701,14 +1753,14 @@ var r = [
1701
1753
  key: "subtotals",
1702
1754
  ns: "cx",
1703
1755
  read: (t, e, n) => {
1704
- const r = W(t, un, e, n);
1756
+ const r = W(t, hn, e, n);
1705
1757
  return r.unknown ? void 0 : r.indexes ?? [];
1706
1758
  },
1707
1759
  write: (t, e) => {
1708
- z(t, B("cx", "subtotals"), { indexes: e }, un);
1760
+ B(t, E("cx", "subtotals"), { indexes: e }, hn);
1709
1761
  }
1710
1762
  }
1711
- ] }, fn = {
1763
+ ] }, gn = {
1712
1764
  attributes: [
1713
1765
  q("layoutId", "str"),
1714
1766
  q("hidden", "bool"),
@@ -1717,37 +1769,37 @@ var r = [
1717
1769
  q("formatIdx", "int")
1718
1770
  ],
1719
1771
  fields: [
1720
- ze("tx", Qe),
1721
- Be(),
1722
- ze("dataPt", ln, "points", !0),
1723
- ze("dataLabels", an),
1724
- E("dataId", "int", "dataId", "cx"),
1725
- ze("layoutPr", pn),
1772
+ Ve("tx", nn),
1773
+ qe(),
1774
+ Ve("dataPt", pn, "points", !0),
1775
+ Ve("dataLabels", un),
1776
+ z("dataId", "int", "dataId", "cx"),
1777
+ Ve("layoutPr", bn),
1726
1778
  {
1727
- ...E("axisId", "int", "axisIds", "cx"),
1779
+ ...z("axisId", "int", "axisIds", "cx"),
1728
1780
  many: !0
1729
1781
  }
1730
1782
  ]
1731
- }, mn = {
1732
- fields: [ze("plotSurface", { fields: [Be()] }), ze("series", fn, "series", !0)],
1783
+ }, yn = {
1784
+ fields: [Ve("plotSurface", { fields: [qe()] }), Ve("series", gn, "series", !0)],
1733
1785
  afterRead: (t) => {
1734
1786
  t.series ??= [];
1735
1787
  }
1736
- }, hn = { fields: [
1737
- ze("tx", Qe),
1738
- Be(),
1739
- Ee()
1740
- ] }, bn = { fields: [Be()] }, gn = {
1788
+ }, vn = { fields: [
1789
+ Ve("tx", nn),
1790
+ qe(),
1791
+ Ge()
1792
+ ] }, xn = { fields: [qe()] }, wn = {
1741
1793
  attributes: [q("type", "str")],
1742
1794
  fields: []
1743
- }, yn = {
1795
+ }, kn = {
1744
1796
  attributes: [q("id", "int"), q("hidden", "bool")],
1745
1797
  fields: [
1746
- ze("catScaling", {
1798
+ Ve("catScaling", {
1747
1799
  attributes: [q("gapWidth", "num")],
1748
1800
  fields: []
1749
1801
  }),
1750
- ze("valScaling", {
1802
+ Ve("valScaling", {
1751
1803
  attributes: [
1752
1804
  "max",
1753
1805
  "min",
@@ -1756,39 +1808,39 @@ var r = [
1756
1808
  ].map((t) => q(t, "num")),
1757
1809
  fields: []
1758
1810
  }),
1759
- ze("title", hn),
1760
- ze("units", {
1811
+ Ve("title", vn),
1812
+ Ve("units", {
1761
1813
  attributes: [q("unit", "str")],
1762
- fields: [ze("unitsLabel", hn)]
1814
+ fields: [Ve("unitsLabel", vn)]
1763
1815
  }),
1764
- ze("majorGridlines", bn),
1765
- ze("minorGridlines", bn),
1766
- ze("majorTickMarks", gn),
1767
- ze("minorTickMarks", gn),
1768
- ze("tickLabels", { fields: [] }),
1769
- He(),
1770
- Be(),
1771
- Ee()
1816
+ Ve("majorGridlines", xn),
1817
+ Ve("minorGridlines", xn),
1818
+ Ve("majorTickMarks", wn),
1819
+ Ve("minorTickMarks", wn),
1820
+ Ve("tickLabels", { fields: [] }),
1821
+ Je(),
1822
+ qe(),
1823
+ Ge()
1772
1824
  ]
1773
- }, vn = {
1825
+ }, Sn = {
1774
1826
  fields: [
1775
- ze("plotAreaRegion", mn),
1776
- ze("axis", yn, "axes", !0),
1777
- Be()
1827
+ Ve("plotAreaRegion", yn),
1828
+ Ve("axis", kn, "axes", !0),
1829
+ qe()
1778
1830
  ],
1779
1831
  afterRead: (t) => {
1780
1832
  t.axes ??= [];
1781
1833
  }
1782
- }, xn = { fields: [
1783
- ze("title", tn),
1784
- ze("plotArea", vn),
1785
- ze("legend", en)
1786
- ] }, wn = { fields: [
1787
- ze("chartData", Ye),
1788
- ze("chart", xn),
1789
- Be(),
1790
- Ee()
1791
- ] }, kn = {
1834
+ }, Ln = { fields: [
1835
+ Ve("title", sn),
1836
+ Ve("plotArea", Sn),
1837
+ Ve("legend", on)
1838
+ ] }, Pn = { fields: [
1839
+ Ve("chartData", en),
1840
+ Ve("chart", Ln),
1841
+ qe(),
1842
+ Ge()
1843
+ ] }, Cn = {
1792
1844
  waterfall: "waterfall",
1793
1845
  clusteredColumn: "histogram",
1794
1846
  boxWhisker: "boxWhisker",
@@ -1796,7 +1848,7 @@ var r = [
1796
1848
  sunburst: "sunburst",
1797
1849
  funnel: "funnel",
1798
1850
  regionMap: "regionMap"
1799
- }, Sn = Object.fromEntries(Object.entries(kn).map(([t, e]) => [e, t])), Pn = new Set(Object.values(kn)), Ln = "paretoLine", Cn = {
1851
+ }, Tn = Object.fromEntries(Object.entries(Cn).map(([t, e]) => [e, t])), In = new Set(Object.values(Cn)), Dn = "paretoLine", Nn = {
1800
1852
  cat: "cat",
1801
1853
  val: "val",
1802
1854
  x: "xVal",
@@ -1805,13 +1857,13 @@ var r = [
1805
1857
  colorVal: "color",
1806
1858
  colorStr: "color",
1807
1859
  entityId: "entityId"
1808
- }, Tn = /* @__PURE__ */ new Set([
1860
+ }, $n = /* @__PURE__ */ new Set([
1809
1861
  "val",
1810
1862
  "x",
1811
1863
  "y",
1812
1864
  "size",
1813
1865
  "colorVal"
1814
- ]), In = [
1866
+ ]), On = [
1815
1867
  "cat",
1816
1868
  "colorStr",
1817
1869
  "entityId",
@@ -1820,26 +1872,26 @@ var r = [
1820
1872
  "val",
1821
1873
  "size",
1822
1874
  "colorVal"
1823
- ], Dn = (t) => {
1875
+ ], jn = (t) => {
1824
1876
  for (const e of Object.keys(t)) void 0 === t[e] && delete t[e];
1825
1877
  return t;
1826
- }, Nn = (t) => Dn({
1878
+ }, Fn = (t) => jn({
1827
1879
  f: t.f,
1828
1880
  dir: t.dir
1829
- }), $n = (t) => t && Dn({
1830
- strRef: t.txData?.f ? Nn(t.txData.f) : void 0,
1881
+ }), Mn = (t) => t && jn({
1882
+ strRef: t.txData?.f ? Fn(t.txData.f) : void 0,
1831
1883
  v: t.txData?.v,
1832
1884
  rich: t.rich,
1833
1885
  unknown: t.unknown
1834
- }), On = (t) => t && Dn({
1835
- tx: $n(t.tx),
1886
+ }), Rn = (t) => t && jn({
1887
+ tx: Mn(t.tx),
1836
1888
  overlay: t.overlay,
1837
1889
  spPr: t.spPr,
1838
1890
  txPr: t.txPr,
1839
1891
  pos: t.pos,
1840
1892
  align: t.align,
1841
1893
  unknown: t.unknown
1842
- }), jn = (t) => Dn({
1894
+ }), An = (t) => jn({
1843
1895
  numFmt: t.numFmt,
1844
1896
  spPr: t.spPr,
1845
1897
  txPr: t.txPr,
@@ -1849,17 +1901,17 @@ var r = [
1849
1901
  showVal: t.visibility?.value,
1850
1902
  separator: t.separator,
1851
1903
  unknown: t.unknown
1852
- }), Fn = (t) => {
1904
+ }), Un = (t) => {
1853
1905
  if (!t) return;
1854
- const e = jn(t), n = [...(t.labels ?? []).map((t) => ({
1906
+ const e = An(t), n = [...(t.labels ?? []).map((t) => ({
1855
1907
  idx: t.idx,
1856
- ...jn(t)
1908
+ ...An(t)
1857
1909
  })), ...(t.hiddenLabels ?? []).map((t) => ({
1858
1910
  idx: t.idx,
1859
1911
  delete: !0
1860
1912
  }))];
1861
1913
  return n.length > 0 && (e.labels = n), e;
1862
- }, Mn = (t, e) => {
1914
+ }, Wn = (t, e) => {
1863
1915
  const n = (t ?? []).map((t) => ({ ...t }));
1864
1916
  for (const t of [...e ?? []].sort((t, e) => t - e)) {
1865
1917
  const e = n.find((e) => e.idx === t);
@@ -1869,11 +1921,11 @@ var r = [
1869
1921
  });
1870
1922
  }
1871
1923
  return n.length > 0 ? n : void 0;
1872
- }, Rn = (t) => {
1924
+ }, Bn = (t) => {
1873
1925
  if (!t) return;
1874
1926
  const { subtotals: e, ...n } = t;
1875
1927
  return Object.keys(n).length > 0 ? n : void 0;
1876
- }, An = (t) => Dn({
1928
+ }, En = (t) => jn({
1877
1929
  ptCount: t.ptCount,
1878
1930
  formatCode: t.formatCode,
1879
1931
  name: t.name,
@@ -1882,65 +1934,65 @@ var r = [
1882
1934
  v: t.v
1883
1935
  })),
1884
1936
  unknown: t.unknown
1885
- }), Un = (t) => {
1886
- const e = Tn.has(t.type), n = t.levels?.map(An), r = {};
1887
- return t.f ? r[e ? "numRef" : "strRef"] = Dn({
1888
- ...Nn(t.f),
1937
+ }), zn = (t) => {
1938
+ const e = $n.has(t.type), n = t.levels?.map(En), r = {};
1939
+ return t.f ? r[e ? "numRef" : "strRef"] = jn({
1940
+ ...Fn(t.f),
1889
1941
  cache: n ? { levels: n } : void 0
1890
- }) : r[e ? "numLit" : "strLit"] = Dn({ levels: n }), t.nf && (r.nf = Nn(t.nf)), t.unknown && (r.unknown = t.unknown), r;
1891
- }, Wn = (t, e) => {
1892
- const n = Dn({
1942
+ }) : r[e ? "numLit" : "strLit"] = jn({ levels: n }), t.nf && (r.nf = Fn(t.nf)), t.unknown && (r.unknown = t.unknown), r;
1943
+ }, Hn = (t, e) => {
1944
+ const n = jn({
1893
1945
  idx: t.formatIdx,
1894
1946
  hidden: t.hidden,
1895
1947
  uniqueId: t.uniqueId,
1896
- tx: $n(t.tx),
1948
+ tx: Mn(t.tx),
1897
1949
  spPr: t.spPr,
1898
- points: Mn(t.points, t.layoutPr?.subtotals),
1899
- dLbls: Fn(t.dataLabels),
1900
- layoutPr: Rn(t.layoutPr),
1950
+ points: Wn(t.points, t.layoutPr?.subtotals),
1951
+ dLbls: Un(t.dataLabels),
1952
+ layoutPr: Bn(t.layoutPr),
1901
1953
  unknown: t.unknown
1902
1954
  });
1903
1955
  for (const t of e?.dimensions ?? []) {
1904
- const e = Cn[t.type];
1905
- e && !n[e] && (n[e] = Un(t));
1956
+ const e = Nn[t.type];
1957
+ e && !n[e] && (n[e] = zn(t));
1906
1958
  }
1907
1959
  return n;
1908
- }, zn = (t) => Dn({
1960
+ }, Vn = (t) => jn({
1909
1961
  idx: t.formatIdx,
1910
1962
  hidden: t.hidden,
1911
1963
  uniqueId: t.uniqueId,
1912
- tx: $n(t.tx),
1964
+ tx: Mn(t.tx),
1913
1965
  spPr: t.spPr,
1914
- points: Mn(t.points, t.layoutPr?.subtotals),
1915
- dLbls: Fn(t.dataLabels),
1916
- layoutPr: Rn(t.layoutPr),
1966
+ points: Wn(t.points, t.layoutPr?.subtotals),
1967
+ dLbls: Un(t.dataLabels),
1968
+ layoutPr: Bn(t.layoutPr),
1917
1969
  axIds: t.axisIds,
1918
1970
  unknown: t.unknown
1919
- }), Bn = (t, e) => {
1971
+ }), qn = (t, e) => {
1920
1972
  const n = new Map(e.map((t) => [t.id, t])), r = [], s = [];
1921
1973
  let i = null;
1922
1974
  for (const e of t?.series ?? []) {
1923
- if (e.layoutId === Ln) {
1975
+ if (e.layoutId === Dn) {
1924
1976
  const t = void 0 === e.ownerIdx ? null : s[e.ownerIdx];
1925
- t && !t.cumulativeLine && (t.cumulativeLine = zn(e)), s.push(null);
1977
+ t && !t.cumulativeLine && (t.cumulativeLine = Vn(e)), s.push(null);
1926
1978
  continue;
1927
1979
  }
1928
- const t = kn[e.layoutId] ?? e.layoutId, o = e.axisIds ?? [];
1980
+ const t = Cn[e.layoutId] ?? e.layoutId, o = e.axisIds ?? [];
1929
1981
  i && i.type === t && JSON.stringify(i.axIds) === JSON.stringify(o) || (i = {
1930
1982
  type: t,
1931
1983
  series: [],
1932
1984
  axIds: o
1933
1985
  }, r.push(i));
1934
- const a = Wn(e, void 0 === e.dataId ? void 0 : n.get(e.dataId));
1986
+ const a = Hn(e, void 0 === e.dataId ? void 0 : n.get(e.dataId));
1935
1987
  i.series.push(a), s.push(a);
1936
1988
  }
1937
1989
  return r;
1938
- }, En = (t) => {
1990
+ }, Gn = (t) => {
1939
1991
  const e = t.catScaling ?? t.valScaling;
1940
- return Dn({
1992
+ return jn({
1941
1993
  type: t.catScaling || !t.valScaling ? "cat" : "val",
1942
1994
  axId: t.id,
1943
- scaling: Dn({
1995
+ scaling: jn({
1944
1996
  max: t.valScaling?.max,
1945
1997
  min: t.valScaling?.min,
1946
1998
  gapWidth: t.catScaling?.gapWidth,
@@ -1949,7 +2001,7 @@ var r = [
1949
2001
  delete: t.hidden,
1950
2002
  majorGridlines: t.majorGridlines,
1951
2003
  minorGridlines: t.minorGridlines,
1952
- title: On(t.title),
2004
+ title: Rn(t.title),
1953
2005
  numFmt: t.numFmt,
1954
2006
  majorTickMark: t.majorTickMarks?.type,
1955
2007
  minorTickMark: t.minorTickMarks?.type,
@@ -1958,33 +2010,33 @@ var r = [
1958
2010
  txPr: t.txPr,
1959
2011
  majorUnit: t.valScaling?.majorUnit,
1960
2012
  minorUnit: t.valScaling?.minorUnit,
1961
- dispUnits: t.units && Dn({
2013
+ dispUnits: t.units && jn({
1962
2014
  builtInUnit: t.units.unit,
1963
- dispUnitsLbl: On(t.units.unitsLabel),
2015
+ dispUnitsLbl: Rn(t.units.unitsLabel),
1964
2016
  unknown: t.units.unknown
1965
2017
  }),
1966
2018
  unknown: t.unknown
1967
2019
  });
1968
- }, Hn = (t) => t && Dn({
1969
- txData: t.strRef || void 0 !== t.v ? Dn({
1970
- f: t.strRef ? Nn(t.strRef) : void 0,
2020
+ }, Jn = (t) => t && jn({
2021
+ txData: t.strRef || void 0 !== t.v ? jn({
2022
+ f: t.strRef ? Fn(t.strRef) : void 0,
1971
2023
  v: t.v
1972
2024
  }) : void 0,
1973
2025
  rich: t.rich,
1974
2026
  unknown: t.unknown
1975
- }), Vn = (t) => t && Dn({
1976
- tx: Hn(t.tx),
2027
+ }), _n = (t) => t && jn({
2028
+ tx: Jn(t.tx),
1977
2029
  spPr: t.spPr,
1978
2030
  txPr: t.txPr,
1979
2031
  unknown: t.unknown
1980
- }), qn = (t) => {
2032
+ }), Kn = (t) => {
1981
2033
  const e = void 0 !== t.showSerName || void 0 !== t.showCatName || void 0 !== t.showVal;
1982
- return Dn({
2034
+ return jn({
1983
2035
  pos: t.dLblPos,
1984
2036
  numFmt: t.numFmt,
1985
2037
  spPr: t.spPr,
1986
2038
  txPr: t.txPr,
1987
- visibility: e ? Dn({
2039
+ visibility: e ? jn({
1988
2040
  seriesName: t.showSerName,
1989
2041
  categoryName: t.showCatName,
1990
2042
  value: t.showVal
@@ -1992,23 +2044,23 @@ var r = [
1992
2044
  separator: t.separator,
1993
2045
  unknown: t.unknown
1994
2046
  });
1995
- }, Gn = (t) => !0 === t.delete && Object.keys(t).every((t) => "idx" === t || "delete" === t), Jn = (t) => {
2047
+ }, Xn = (t) => !0 === t.delete && Object.keys(t).every((t) => "idx" === t || "delete" === t), Yn = (t) => {
1996
2048
  if (!t) return;
1997
- const e = qn(t), n = (t.labels ?? []).filter((t) => !Gn(t)).map((t) => ({
2049
+ const e = Kn(t), n = (t.labels ?? []).filter((t) => !Xn(t)).map((t) => ({
1998
2050
  idx: t.idx,
1999
- ...qn(t)
2000
- })), r = (t.labels ?? []).filter(Gn).map((t) => ({ idx: t.idx }));
2051
+ ...Kn(t)
2052
+ })), r = (t.labels ?? []).filter(Xn).map((t) => ({ idx: t.idx }));
2001
2053
  return n.length > 0 && (e.labels = n), r.length > 0 && (e.hiddenLabels = r), e;
2002
- }, _n = (t) => {
2054
+ }, Qn = (t) => {
2003
2055
  const e = (t ?? []).filter((t) => Object.keys(t).some((t) => "idx" !== t && "subtotal" !== t)).map(({ subtotal: t, ...e }) => e);
2004
2056
  return e.length > 0 ? e : void 0;
2005
- }, Kn = (t, e, n) => {
2057
+ }, Zn = (t, e, n) => {
2006
2058
  const r = (e ?? []).filter((t) => t.subtotal).map((t) => t.idx).sort((t, e) => t - e);
2007
2059
  return 0 !== r.length || n ? {
2008
2060
  ...t,
2009
2061
  subtotals: r
2010
2062
  } : t;
2011
- }, Xn = (t) => Dn({
2063
+ }, tr = (t) => jn({
2012
2064
  ptCount: t.ptCount,
2013
2065
  formatCode: t.formatCode,
2014
2066
  name: t.name,
@@ -2017,7 +2069,7 @@ var r = [
2017
2069
  v: t.v
2018
2070
  })) : void 0,
2019
2071
  unknown: t.unknown
2020
- }), Yn = (t, e) => "color" === t ? e.strRef || e.strLit ? "colorStr" : "colorVal" : Object.keys(Cn).find((e) => Cn[e] === t), Qn = (t) => {
2072
+ }), er = (t, e) => "color" === t ? e.strRef || e.strLit ? "colorStr" : "colorVal" : Object.keys(Nn).find((e) => Nn[e] === t), nr = (t) => {
2021
2073
  const e = [];
2022
2074
  for (const n of [
2023
2075
  "cat",
@@ -2031,35 +2083,35 @@ var r = [
2031
2083
  const r = t[n];
2032
2084
  if (!r) continue;
2033
2085
  const s = r.numRef ?? r.strRef, i = (s ? s.cache : r.numLit ?? r.strLit)?.levels;
2034
- e.push(Dn({
2035
- type: Yn(n, r),
2036
- f: s ? Nn(s) : void 0,
2037
- nf: r.nf ? Nn(r.nf) : void 0,
2038
- levels: i && i.length > 0 ? i.map(Xn) : void 0,
2086
+ e.push(jn({
2087
+ type: er(n, r),
2088
+ f: s ? Fn(s) : void 0,
2089
+ nf: r.nf ? Fn(r.nf) : void 0,
2090
+ levels: i && i.length > 0 ? i.map(tr) : void 0,
2039
2091
  unknown: r.unknown
2040
2092
  }));
2041
2093
  }
2042
- return e.sort((t, e) => In.indexOf(t.type) - In.indexOf(e.type));
2043
- }, Zn = (t) => {
2094
+ return e.sort((t, e) => On.indexOf(t.type) - On.indexOf(e.type));
2095
+ }, rr = (t) => {
2044
2096
  const e = t.scaling ?? {}, n = "cat" === t.type || "date" === t.type;
2045
- return Dn({
2097
+ return jn({
2046
2098
  id: t.axId,
2047
2099
  hidden: t.delete,
2048
- catScaling: n ? Dn({
2100
+ catScaling: n ? jn({
2049
2101
  gapWidth: e.gapWidth,
2050
2102
  unknown: e.unknown
2051
2103
  }) : void 0,
2052
- valScaling: n ? void 0 : Dn({
2104
+ valScaling: n ? void 0 : jn({
2053
2105
  max: e.max,
2054
2106
  min: e.min,
2055
2107
  majorUnit: t.majorUnit,
2056
2108
  minorUnit: t.minorUnit,
2057
2109
  unknown: e.unknown
2058
2110
  }),
2059
- title: Vn(t.title),
2060
- units: t.dispUnits && Dn({
2111
+ title: _n(t.title),
2112
+ units: t.dispUnits && jn({
2061
2113
  unit: t.dispUnits.builtInUnit,
2062
- unitsLabel: Vn(t.dispUnits.dispUnitsLbl),
2114
+ unitsLabel: _n(t.dispUnits.dispUnitsLbl),
2063
2115
  unknown: t.dispUnits.unknown
2064
2116
  }),
2065
2117
  majorGridlines: t.majorGridlines,
@@ -2072,12 +2124,12 @@ var r = [
2072
2124
  txPr: t.txPr,
2073
2125
  unknown: t.unknown
2074
2126
  });
2075
- }, tr = (t) => {
2127
+ }, sr = (t) => {
2076
2128
  const e = t.chart, n = e?.plotArea, r = [], s = [], i = [];
2077
2129
  for (const t of n?.groups ?? []) {
2078
- const e = Sn[t.type];
2130
+ const e = Tn[t.type];
2079
2131
  if (e) for (const n of t.series) {
2080
- const o = Qn(n);
2132
+ const o = nr(n);
2081
2133
  let a;
2082
2134
  if (o.length > 0) {
2083
2135
  const t = JSON.stringify(o);
@@ -2087,60 +2139,60 @@ var r = [
2087
2139
  }), i.push(t));
2088
2140
  }
2089
2141
  const l = r.length;
2090
- r.push(Dn({
2142
+ r.push(jn({
2091
2143
  layoutId: e,
2092
2144
  hidden: n.hidden,
2093
2145
  uniqueId: n.uniqueId,
2094
2146
  formatIdx: n.idx,
2095
- tx: Hn(n.tx),
2147
+ tx: Jn(n.tx),
2096
2148
  spPr: n.spPr,
2097
- points: _n(n.points),
2098
- dataLabels: Jn(n.dLbls),
2149
+ points: Qn(n.points),
2150
+ dataLabels: Yn(n.dLbls),
2099
2151
  dataId: a,
2100
- layoutPr: Kn(n.layoutPr, n.points, "waterfall" === t.type),
2152
+ layoutPr: Zn(n.layoutPr, n.points, "waterfall" === t.type),
2101
2153
  axisIds: t.axIds.length > 0 ? t.axIds : void 0,
2102
2154
  unknown: n.unknown
2103
2155
  }));
2104
2156
  const d = n.cumulativeLine;
2105
- d && r.push(Dn({
2106
- layoutId: Ln,
2157
+ d && r.push(jn({
2158
+ layoutId: Dn,
2107
2159
  hidden: d.hidden,
2108
2160
  ownerIdx: l,
2109
2161
  uniqueId: d.uniqueId,
2110
2162
  formatIdx: d.idx,
2111
- tx: Hn(d.tx),
2163
+ tx: Jn(d.tx),
2112
2164
  spPr: d.spPr,
2113
- points: _n(d.points),
2114
- dataLabels: Jn(d.dLbls),
2115
- layoutPr: Kn(d.layoutPr, d.points, !1),
2165
+ points: Qn(d.points),
2166
+ dataLabels: Yn(d.dLbls),
2167
+ layoutPr: Zn(d.layoutPr, d.points, !1),
2116
2168
  axisIds: d.axIds,
2117
2169
  unknown: d.unknown
2118
2170
  }));
2119
2171
  }
2120
2172
  }
2121
2173
  const o = e?.legend;
2122
- return Dn({
2174
+ return jn({
2123
2175
  chartData: { data: s },
2124
- chart: Dn({
2125
- title: (a = e?.title, a && Dn({
2176
+ chart: jn({
2177
+ title: (a = e?.title, a && jn({
2126
2178
  pos: a.pos,
2127
2179
  align: a.align,
2128
2180
  overlay: a.overlay,
2129
- tx: Hn(a.tx),
2181
+ tx: Jn(a.tx),
2130
2182
  spPr: a.spPr,
2131
2183
  txPr: a.txPr,
2132
2184
  unknown: a.unknown
2133
2185
  })),
2134
- plotArea: Dn({
2135
- plotAreaRegion: Dn({
2186
+ plotArea: jn({
2187
+ plotAreaRegion: jn({
2136
2188
  plotSurface: n?.plotSurface,
2137
2189
  series: r
2138
2190
  }),
2139
- axes: (n?.axes ?? []).map(Zn),
2191
+ axes: (n?.axes ?? []).map(rr),
2140
2192
  spPr: n?.spPr,
2141
2193
  unknown: n?.unknown
2142
2194
  }),
2143
- legend: o && Dn({
2195
+ legend: o && jn({
2144
2196
  pos: "tr" === o.legendPos ? "r" : o.legendPos,
2145
2197
  align: o.align,
2146
2198
  overlay: o.overlay,
@@ -2155,30 +2207,30 @@ var r = [
2155
2207
  unknown: t.unknown
2156
2208
  });
2157
2209
  var a;
2158
- }, er = (t, e) => {
2210
+ }, ir = (t, e) => {
2159
2211
  if (t === e) return !0;
2160
2212
  if ("object" != typeof t || "object" != typeof e || null === t || null === e) return !1;
2161
2213
  if (Array.isArray(t) !== Array.isArray(e)) return !1;
2162
2214
  const n = (t) => Object.keys(t).filter((e) => void 0 !== t[e]), r = n(t), s = n(e);
2163
- return r.length === s.length && r.every((n) => er(t[n], e[n]));
2164
- }, nr = (t, e) => er(t, tr(e)), rr = (t) => {
2215
+ return r.length === s.length && r.every((n) => ir(t[n], e[n]));
2216
+ }, or = (t, e) => ir(t, sr(e)), ar = (t) => {
2165
2217
  const e = d(t);
2166
2218
  if (!e || "chartSpace" !== e.name) return null;
2167
- const n = T(e, P);
2219
+ const n = T(e, L);
2168
2220
  if (!S(I(e, n))) return null;
2169
- const r = new A(t, n), s = W(e, wn, P, r), i = ((t) => {
2221
+ const r = new A(t, n), s = W(e, Pn, L, r), i = ((t) => {
2170
2222
  const e = t.chart, n = e?.plotArea, r = e?.legend;
2171
- return Dn({
2172
- chart: Dn({
2173
- title: On(e?.title),
2174
- plotArea: Dn({
2175
- groups: Bn(n?.plotAreaRegion, t.chartData?.data ?? []),
2176
- axes: (n?.axes ?? []).map(En),
2223
+ return jn({
2224
+ chart: jn({
2225
+ title: Rn(e?.title),
2226
+ plotArea: jn({
2227
+ groups: qn(n?.plotAreaRegion, t.chartData?.data ?? []),
2228
+ axes: (n?.axes ?? []).map(Gn),
2177
2229
  spPr: n?.spPr,
2178
2230
  plotSurface: n?.plotAreaRegion?.plotSurface,
2179
2231
  unknown: n?.unknown
2180
2232
  }),
2181
- legend: r && Dn({
2233
+ legend: r && jn({
2182
2234
  legendPos: r.pos,
2183
2235
  align: r.align,
2184
2236
  overlay: r.overlay,
@@ -2197,16 +2249,16 @@ var r = [
2197
2249
  model: i,
2198
2250
  kept: r.kept,
2199
2251
  reordered: r.reordered,
2200
- lossy: !nr(s, i)
2252
+ lossy: !or(s, i)
2201
2253
  };
2202
- }, sr = (t) => {
2254
+ }, lr = (t) => {
2203
2255
  const e = { ...t.unknown?.attributes }, n = (t, n) => {
2204
2256
  e[`xmlns:${t}`] ??= n;
2205
2257
  };
2206
2258
  n(x.a, m), n(x.r, b), n(x.cx, y);
2207
- const r = tr(t), s = new D().raw(Ae);
2259
+ const r = sr(t), s = new D().raw(Ee);
2208
2260
  return ((t, e) => {
2209
- z(t, B("cx", "chartSpace"), e, wn);
2261
+ B(t, E("cx", "chartSpace"), e, Pn);
2210
2262
  })(s, {
2211
2263
  ...r,
2212
2264
  unknown: {
@@ -2214,13 +2266,13 @@ var r = [
2214
2266
  attributes: e
2215
2267
  }
2216
2268
  }), s.toString();
2217
- }, ir = (t, e) => {
2269
+ }, dr = (t, e) => {
2218
2270
  if (e) {
2219
- const n = rr(e);
2271
+ const n = ar(e);
2220
2272
  if (n && JSON.stringify(n.model) === JSON.stringify(t)) return e;
2221
2273
  }
2222
- return sr(t);
2223
- }, or = {
2274
+ return lr(t);
2275
+ }, cr = {
2224
2276
  chart: {
2225
2277
  relType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",
2226
2278
  contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml",
@@ -2233,7 +2285,7 @@ var r = [
2233
2285
  path: "../charts/chartEx{n}.xml",
2234
2286
  graphicUri: y
2235
2287
  }
2236
- }, ar = /* @__PURE__ */ new Set([
2288
+ }, ur = /* @__PURE__ */ new Set([
2237
2289
  "area",
2238
2290
  "bar",
2239
2291
  "line",
@@ -2245,34 +2297,34 @@ var r = [
2245
2297
  "radar",
2246
2298
  "stock",
2247
2299
  "surface"
2248
- ]), lr = (t) => t === or.chartEx.relType ? "chartEx" : t === or.chart.relType ? "chart" : null, dr = (t) => ar.has(t) ? "chart" : Pn.has(t) ? "chartEx" : null, cr = (t) => {
2249
- const e = Re(t);
2300
+ ]), pr = (t) => t === cr.chartEx.relType ? "chartEx" : t === cr.chart.relType ? "chart" : null, fr = (t) => ur.has(t) ? "chart" : In.has(t) ? "chartEx" : null, mr = (t) => {
2301
+ const e = Be(t);
2250
2302
  if (e) return {
2251
2303
  model: e.model,
2252
2304
  family: "chart",
2253
2305
  kept: e.kept,
2254
2306
  lossy: !1
2255
2307
  };
2256
- const n = rr(t);
2308
+ const n = ar(t);
2257
2309
  return n ? {
2258
2310
  model: n.model,
2259
2311
  family: "chartEx",
2260
2312
  kept: n.kept,
2261
2313
  lossy: n.lossy
2262
2314
  } : null;
2263
- }, ur = (t) => {
2264
- if (Array.isArray(t)) return t.map(ur);
2315
+ }, hr = (t) => {
2316
+ if (Array.isArray(t)) return t.map(hr);
2265
2317
  if ("object" != typeof t || null === t) return t;
2266
2318
  const e = {};
2267
- for (const [n, r] of Object.entries(t)) "unknown" !== n && (e[n] = ur(r));
2319
+ for (const [n, r] of Object.entries(t)) "unknown" !== n && (e[n] = hr(r));
2268
2320
  return e;
2269
- }, pr = (t, e) => {
2270
- const n = t.chart?.plotArea?.groups ?? [], r = n.map((t) => dr(t.type)).find((t) => null !== t) ?? e?.family ?? "chart", s = n.filter((t) => dr(t.type) !== r).map((t) => t.type);
2321
+ }, br = (t, e) => {
2322
+ const n = t.chart?.plotArea?.groups ?? [], r = n.map((t) => fr(t.type)).find((t) => null !== t) ?? e?.family ?? "chart", s = n.filter((t) => fr(t.type) !== r).map((t) => t.type);
2271
2323
  let i = t;
2272
2324
  if (s.length > 0) {
2273
2325
  const e = {
2274
2326
  ...t.chart.plotArea,
2275
- groups: n.filter((t) => dr(t.type) === r)
2327
+ groups: n.filter((t) => fr(t.type) === r)
2276
2328
  };
2277
2329
  i = {
2278
2330
  ...t,
@@ -2283,12 +2335,12 @@ var r = [
2283
2335
  };
2284
2336
  }
2285
2337
  const o = (e?.family ?? r) === r;
2286
- o || (i = ur(i));
2338
+ o || (i = hr(i));
2287
2339
  const a = o ? e?.xml : void 0;
2288
2340
  return {
2289
2341
  family: r,
2290
2342
  leftOut: s,
2291
- xml: "chartEx" === r ? ir(i, a) : We(i, a)
2343
+ xml: "chartEx" === r ? dr(i, a) : He(i, a)
2292
2344
  };
2293
2345
  };
2294
- export { s as a, pr as i, lr as n, r as o, cr as r, or as t };
2346
+ export { s as a, br as i, pr as n, r as o, mr as r, cr as t };