@evotecit/officeimo 0.1.0 → 0.1.2

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 (49) hide show
  1. package/README.md +13 -10
  2. package/bundles/officeimo-canopyx.js +842 -377
  3. package/bundles/officeimo-canopyx.mjs +729 -265
  4. package/bundles/officeimo-csv.js +29 -19
  5. package/bundles/officeimo-csv.mjs +17 -7
  6. package/bundles/officeimo-datatables.js +835 -379
  7. package/bundles/officeimo-datatables.mjs +723 -268
  8. package/bundles/officeimo-execution.js +35 -25
  9. package/bundles/officeimo-execution.mjs +17 -7
  10. package/bundles/officeimo-pdf.js +737 -291
  11. package/bundles/officeimo-pdf.mjs +688 -243
  12. package/bundles/officeimo-xlsx.js +114 -94
  13. package/bundles/officeimo-xlsx.mjs +48 -28
  14. package/bundles/officeimo.js +819 -363
  15. package/bundles/officeimo.mjs +709 -254
  16. package/dist/core/index.d.ts +2 -0
  17. package/dist/core/iteration.js +2 -2
  18. package/dist/core/sinks.js +2 -1
  19. package/dist/integrations/canopyx/source.js +13 -7
  20. package/dist/integrations/datatables/snapshot.js +3 -3
  21. package/dist/internal/rows.js +13 -4
  22. package/dist/opc/index.js +14 -9
  23. package/dist/pdf/document-grouped.js +72 -22
  24. package/dist/pdf/font-resources.js +2 -1
  25. package/dist/pdf/inline-text.js +50 -9
  26. package/dist/pdf/objects.js +188 -11
  27. package/dist/pdf/pages.js +28 -28
  28. package/dist/pdf/paragraph-layout.d.ts +2 -0
  29. package/dist/pdf/paragraph-layout.js +9 -4
  30. package/dist/pdf/session.js +1 -1
  31. package/dist/pdf/settings.d.ts +2 -0
  32. package/dist/pdf/settings.js +27 -2
  33. package/dist/pdf/structure.js +80 -28
  34. package/dist/pdf/table-band-flow.js +26 -11
  35. package/dist/pdf/table-band-plan.js +1 -3
  36. package/dist/pdf/table-layout.d.ts +4 -0
  37. package/dist/pdf/table-layout.js +22 -10
  38. package/dist/pdf/table-structure.js +28 -12
  39. package/dist/pdf/text.js +5 -0
  40. package/dist/pdf/types.d.ts +4 -2
  41. package/dist/pdf/xref.d.ts +1 -0
  42. package/dist/pdf/xref.js +30 -0
  43. package/dist/xlsx/values.js +3 -2
  44. package/dist/xlsx/workbook.js +7 -4
  45. package/dist/xlsx/worksheet.js +2 -1
  46. package/dist/xml/index.js +3 -3
  47. package/dist/zip/entry.js +1 -1
  48. package/dist/zip/index.js +1 -1
  49. package/package.json +1 -1
@@ -5,10 +5,10 @@ const officeimo = root.OfficeIMO || (root.OfficeIMO = {});
5
5
  const cacheKey = Symbol.for("@evotecit/officeimo/modules");
6
6
  const _modules = officeimo[cacheKey] || new Map();
7
7
  if (!officeimo[cacheKey]) Object.defineProperty(officeimo, cacheKey, { value: _modules });
8
- const _m2 = _modules.get("1ae4f4554ececbf0fc1e5d32f40275e35f228dca922cfc0760ae681fd9690d7e") ?? (() => {
8
+ const _m2 = _modules.get("87c24efeaa0f1579c19afeeb4918caeb4f8f65a88d24a246e2cfd712b37dbac3") ?? (() => {
9
9
  function checkAbort(signal) {
10
10
  if (signal?.aborted)
11
- throw signal.reason ?? new DOMException("Export cancelled.", "AbortError");
11
+ throw signal.reason;
12
12
  }
13
13
  /** Race a pending producer or sink operation without leaving abort listeners behind. */
14
14
  function withAbort(promise, signal) {
@@ -16,7 +16,7 @@ function withAbort(promise, signal) {
16
16
  return Promise.resolve(promise);
17
17
  return new Promise((resolve, reject) => {
18
18
  const cleanup = () => signal.removeEventListener("abort", abort);
19
- const abort = () => { cleanup(); reject(signal.reason ?? new DOMException("Export cancelled.", "AbortError")); };
19
+ const abort = () => { cleanup(); reject(signal.reason); };
20
20
  signal.addEventListener("abort", abort, { once: true });
21
21
  Promise.resolve(promise).then(value => { cleanup(); resolve(value); }, error => { cleanup(); reject(error); });
22
22
  if (signal.aborted)
@@ -156,7 +156,7 @@ function pause() {
156
156
  });
157
157
  }
158
158
  const _exports = Object.freeze({ checkAbort: checkAbort, withAbort: withAbort, inputRows: inputRows, rowsFromBatches: rowsFromBatches, concatRows: concatRows, consumeRows: consumeRows, beginTask: beginTask, taskYieldDue: taskYieldDue, pause: pause });
159
- _modules.set("1ae4f4554ececbf0fc1e5d32f40275e35f228dca922cfc0760ae681fd9690d7e", _exports);
159
+ _modules.set("87c24efeaa0f1579c19afeeb4918caeb4f8f65a88d24a246e2cfd712b37dbac3", _exports);
160
160
  return _exports;
161
161
  })();
162
162
 
@@ -213,7 +213,7 @@ _modules.set("6cfd3e806439f6301003a2d1699a74fdfa574d935550ab62b97b528728eaee1f",
213
213
  return _exports;
214
214
  })();
215
215
 
216
- const _m5 = _modules.get("0c4bd256ca66b488390b27a6d197e5ba99ae051ae662621b67a5e80b0479eefc") ?? (() => {
216
+ const _m5 = _modules.get("5337d1e3bd5ae0c1d10a476fcd31540d20337ccf7aa93c7e9e26c2b1a7dab92b") ?? (() => {
217
217
  const { checkAbort, consumeRows, withAbort, pause, taskYieldDue } = _m2;
218
218
 
219
219
  const { OfficeIMOError } = _m3;
@@ -223,8 +223,9 @@ async function withDestination(destination, operation) {
223
223
  // Native streams can belong to another browser realm; constructor identity is not portable.
224
224
  if (destination && typeof destination.getWriter === "function") {
225
225
  const writer = destination.getWriter();
226
+ // Native streams may retain accepted chunks after write resolves.
226
227
  try {
227
- return await operation({ write: bytes => writer.write(bytes) });
228
+ return await operation({ write: bytes => writer.write(new Uint8Array(bytes)) });
228
229
  }
229
230
  finally {
230
231
  writer.releaseLock();
@@ -318,7 +319,7 @@ async function writeBytes(source, sink, signal) {
318
319
  });
319
320
  }
320
321
  const _exports = Object.freeze({ withDestination: withDestination, BlobByteSink: BlobByteSink, ChunkedTextSink: ChunkedTextSink, writeBytes: writeBytes });
321
- _modules.set("0c4bd256ca66b488390b27a6d197e5ba99ae051ae662621b67a5e80b0479eefc", _exports);
322
+ _modules.set("5337d1e3bd5ae0c1d10a476fcd31540d20337ccf7aa93c7e9e26c2b1a7dab92b", _exports);
322
323
  return _exports;
323
324
  })();
324
325
 
@@ -454,12 +455,14 @@ _modules.set("8ece66b561682170c879991995105163f4c484c8355d5e451fc6f52a9fbc3f82",
454
455
  return _exports;
455
456
  })();
456
457
 
457
- const _m11 = _modules.get("47668dc33afddf93a09736e08c39f34d52518f2bf719e5ef386363758f42e4b7") ?? (() => {
458
+ const _m11 = _modules.get("227236fd7adc9472e188831b8f16fdc69338c4d779f2b69a8abbd8dbfa95b585") ?? (() => {
458
459
  const { OfficeIMOError } = _m3;
459
460
 
460
461
  const { ChunkedTextSink } = _m5;
461
462
 
462
463
  const xmlDeclaration = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
464
+ const xmlEscapes = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&apos;",
465
+ "\r": "&#13;", "\n": "&#10;", "\t": "&#9;" };
463
466
  /** XML 1.0 characters; Unicode mode retains valid surrogate pairs. */
464
467
  function cleanXml(value, policy = "strip") {
465
468
  if (policy !== "strip" && policy !== "reject")
@@ -471,9 +474,7 @@ function cleanXml(value, policy = "strip") {
471
474
  }
472
475
  /** Escape data, including whitespace that XML parsers otherwise normalize. */
473
476
  function escapeXml(value, policy = "strip") {
474
- const escapes = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&apos;",
475
- "\r": "&#13;", "\n": "&#10;", "\t": "&#9;" };
476
- return cleanXml(value, policy).replace(/[&<>"'\r\n\t]/g, c => escapes[c]);
477
+ return cleanXml(value, policy).replace(/[&<>"'\r\n\t]/g, c => xmlEscapes[c]);
477
478
  }
478
479
  /** Encode an OOXML ST_Xstring attribute without interpreting literal escape tokens as characters. */
479
480
  function escapeOoxmlAttribute(value, policy = "strip") {
@@ -532,7 +533,7 @@ class XmlWriter {
532
533
  throw new OfficeIMOError("INVALID_STATE", "XML writer is closed."); }
533
534
  }
534
535
  const _exports = Object.freeze({ xmlDeclaration: xmlDeclaration, cleanXml: cleanXml, escapeXml: escapeXml, escapeOoxmlAttribute: escapeOoxmlAttribute, validateXmlName: validateXmlName, XmlWriter: XmlWriter });
535
- _modules.set("47668dc33afddf93a09736e08c39f34d52518f2bf719e5ef386363758f42e4b7", _exports);
536
+ _modules.set("227236fd7adc9472e188831b8f16fdc69338c4d779f2b69a8abbd8dbfa95b585", _exports);
536
537
  return _exports;
537
538
  })();
538
539
 
@@ -558,7 +559,7 @@ _modules.set("501f5fccaecb27d9e514b74cf64893649e50616692250593d120ca315b510c04",
558
559
  return _exports;
559
560
  })();
560
561
 
561
- const _m10 = _modules.get("75f1dfdbbf7685a7bfd416b8d7d4b82698a1852f973cf0264456086cf8c20723") ?? (() => {
562
+ const _m10 = _modules.get("56b2057461a668e8c90abd1fbf4f13ff93efd9854e590c82a195799f0f842c2a") ?? (() => {
562
563
  const { escapeXml, xmlDeclaration } = _m11;
563
564
 
564
565
  const { isDate } = _m12;
@@ -580,7 +581,7 @@ function appPropertiesXml(properties = {}, policy = "strip") {
580
581
  '<Application>' + escapeXml(properties.application ?? "OfficeIMO", policy) + '</Application><Company>' + escapeXml(properties.company ?? "", policy) + '</Company></Properties>';
581
582
  }
582
583
  const _exports = Object.freeze({ corePropertiesXml: corePropertiesXml, appPropertiesXml: appPropertiesXml });
583
- _modules.set("75f1dfdbbf7685a7bfd416b8d7d4b82698a1852f973cf0264456086cf8c20723", _exports);
584
+ _modules.set("56b2057461a668e8c90abd1fbf4f13ff93efd9854e590c82a195799f0f842c2a", _exports);
584
585
  return _exports;
585
586
  })();
586
587
 
@@ -607,7 +608,7 @@ _modules.set("790c15edc51b308be3e7d8222630d407f8c79c31ab21ba0b9f92c00f44ab4021",
607
608
  return _exports;
608
609
  })();
609
610
 
610
- const _m14 = _modules.get("34b448ff5052fe659ccb250d80fc2a0b13ab82890f50132ef5c9e51da369a582") ?? (() => {
611
+ const _m14 = _modules.get("597d152d20a2a28ee5cd6d4243a79a71ce8b83769a77441bfc944aadc0a6efbd") ?? (() => {
611
612
  const { checkAbort, withAbort } = _m2;
612
613
 
613
614
  const { OfficeIMOError } = _m3;
@@ -638,7 +639,7 @@ class EntryWriter {
638
639
  closed = false;
639
640
  cleaned = false;
640
641
  lifetime = new AbortController();
641
- abort = () => { this.fail(this.signal?.reason ?? new DOMException("Export cancelled.", "AbortError")); };
642
+ abort = () => { this.fail(this.signal?.reason); };
642
643
  constructor(compression, sink, signal) {
643
644
  this.sink = sink;
644
645
  this.signal = signal;
@@ -735,11 +736,11 @@ class EntryWriter {
735
736
  }
736
737
  }
737
738
  const _exports = Object.freeze({ Crc32: _m15.Crc32, zipLimit: zipLimit, zipSize: zipSize, EntryWriter: EntryWriter });
738
- _modules.set("34b448ff5052fe659ccb250d80fc2a0b13ab82890f50132ef5c9e51da369a582", _exports);
739
+ _modules.set("597d152d20a2a28ee5cd6d4243a79a71ce8b83769a77441bfc944aadc0a6efbd", _exports);
739
740
  return _exports;
740
741
  })();
741
742
 
742
- const _m13 = _modules.get("cc7c3953e35bb436d0f5fe5c35a60b7e97a00d2e729df52d219d9e246f326b32") ?? (() => {
743
+ const _m13 = _modules.get("699a019e0c3f317a62bf3a6e59b76b6cf1645908b0f1b1f157c18f4d4f368dfb") ?? (() => {
743
744
 
744
745
 
745
746
  const { EntryWriter, zipSize } = _m14;
@@ -803,7 +804,7 @@ class ZipWriter {
803
804
  /** Pending header/directory writes and source reads must also stop on explicit discard. */
804
805
  async acceptance(operation) {
805
806
  const signal = this.options.signal;
806
- const abort = () => this.lifetime.abort(signal?.reason ?? new DOMException("Export cancelled.", "AbortError"));
807
+ const abort = () => this.lifetime.abort(signal?.reason);
807
808
  signal?.addEventListener("abort", abort, { once: true });
808
809
  try {
809
810
  checkAbort(signal);
@@ -995,11 +996,11 @@ class ZipWriter {
995
996
  }
996
997
  }
997
998
  const _exports = Object.freeze({ Crc32: _m14.Crc32, validateEntryName: validateEntryName, ZipWriter: ZipWriter });
998
- _modules.set("cc7c3953e35bb436d0f5fe5c35a60b7e97a00d2e729df52d219d9e246f326b32", _exports);
999
+ _modules.set("699a019e0c3f317a62bf3a6e59b76b6cf1645908b0f1b1f157c18f4d4f368dfb", _exports);
999
1000
  return _exports;
1000
1001
  })();
1001
1002
 
1002
- const _m8 = _modules.get("c982e9efabd891df539c26c513a3e9cf5a644ae13516f48f9d19f7ed6b584c06") ?? (() => {
1003
+ const _m8 = _modules.get("4d4856357f94ecbeea67d111ff5e97f916ccc6be6aaefde219d461c6ad10a8c5") ?? (() => {
1003
1004
 
1004
1005
 
1005
1006
 
@@ -1098,8 +1099,11 @@ class OpcPackage {
1098
1099
  return uri;
1099
1100
  }
1100
1101
  addPart(part) {
1101
- const uri = this.reserve(part.uri, part.contentType);
1102
- this.parts.set(uri.toLowerCase(), { ...part, uri, data: part.data instanceof Uint8Array ? new Uint8Array(part.data) : part.data });
1102
+ const { uri: requestedUri, contentType, data } = part;
1103
+ // Structural accessors and byte ownership are captured before reserving metadata.
1104
+ const capturedData = data instanceof Uint8Array ? new Uint8Array(data) : data;
1105
+ const uri = this.reserve(requestedUri, contentType);
1106
+ this.parts.set(uri.toLowerCase(), { uri, contentType, data: capturedData });
1103
1107
  }
1104
1108
  /** @internal */
1105
1109
  addPrepared(uri, type, prepared) {
@@ -1124,17 +1128,19 @@ class OpcPackage {
1124
1128
  checkAbort(this.options.signal);
1125
1129
  this.open();
1126
1130
  source = source === "/" ? source : partUri(source);
1127
- if (!/^[A-Za-z_][A-Za-z0-9_.-]*$/.test(relationship.id))
1131
+ const { id, type, target: requestedTarget, external } = relationship;
1132
+ this.open();
1133
+ if (!/^[A-Za-z_][A-Za-z0-9_.-]*$/.test(id))
1128
1134
  throw new TypeError("Relationship id must be an XML ID.");
1129
- if (!/^[A-Za-z][A-Za-z0-9+.-]*:[^\s<>"']+$/.test(relationship.type))
1135
+ if (!/^[A-Za-z][A-Za-z0-9+.-]*:[^\s<>"']+$/.test(type))
1130
1136
  throw new TypeError("Relationship type must be an absolute URI.");
1131
- const target = relationship.external ? relationship.target : partUri(relationship.target);
1132
- if (relationship.external && (!target || /[\u0000-\u0020]/.test(target)))
1137
+ const target = external ? requestedTarget : partUri(requestedTarget);
1138
+ if (external && (!target || /[\u0000-\u0020]/.test(target)))
1133
1139
  throw new TypeError("Invalid external relationship target.");
1134
1140
  const key = source.toLowerCase(), list = this.relationships.get(key) ?? new Map();
1135
- if (list.has(relationship.id))
1136
- throw new TypeError("Duplicate relationship id: " + relationship.id);
1137
- list.set(relationship.id, { ...relationship, target });
1141
+ if (list.has(id))
1142
+ throw new TypeError("Duplicate relationship id: " + id);
1143
+ list.set(id, { id, type, target, ...(external === undefined ? {} : { external }) });
1138
1144
  this.relationships.set(key, list);
1139
1145
  }
1140
1146
  setProperties(core = {}, app = {}) {
@@ -1244,7 +1250,7 @@ class OpcPackage {
1244
1250
  }
1245
1251
  }
1246
1252
  const _exports = Object.freeze({ partUri: _m9.partUri, relationshipPartUri: _m9.relationshipPartUri, relativePartTarget: _m9.relativePartTarget, corePropertiesXml: _m10.corePropertiesXml, appPropertiesXml: _m10.appPropertiesXml, relationshipsNamespace: relationshipsNamespace, officeRelationshipsNamespace: officeRelationshipsNamespace, contentTypesNamespace: contentTypesNamespace, relationshipTypes: relationshipTypes, ContentTypes: ContentTypes, OpcPackage: OpcPackage });
1247
- _modules.set("c982e9efabd891df539c26c513a3e9cf5a644ae13516f48f9d19f7ed6b584c06", _exports);
1253
+ _modules.set("4d4856357f94ecbeea67d111ff5e97f916ccc6be6aaefde219d461c6ad10a8c5", _exports);
1248
1254
  return _exports;
1249
1255
  })();
1250
1256
 
@@ -1260,7 +1266,7 @@ _modules.set("204def412284dfb11df9aececd57c8c0455db2927ebdb483dd255e7b29f6f359",
1260
1266
  return _exports;
1261
1267
  })();
1262
1268
 
1263
- const _m18 = _modules.get("27f56318b4276c3e6f79cfb300855315ff9cd1897d4748fa2f306b2deef98c36") ?? (() => {
1269
+ const _m18 = _modules.get("6ae88f25e1c09d00fbb828917498569f883fae88ec25d37caebaf8a2b802b148") ?? (() => {
1264
1270
  const { OfficeIMOError } = _m3;
1265
1271
 
1266
1272
  const { cleanXml, escapeOoxmlAttribute } = _m11;
@@ -1367,11 +1373,11 @@ function differentialXml(style, policy, numberFormat) {
1367
1373
  return xml;
1368
1374
  }
1369
1375
  const _exports = Object.freeze({ fields: fields, optionalBoolean: optionalBoolean, DifferentialStyles: DifferentialStyles, differentialXml: differentialXml });
1370
- _modules.set("27f56318b4276c3e6f79cfb300855315ff9cd1897d4748fa2f306b2deef98c36", _exports);
1376
+ _modules.set("6ae88f25e1c09d00fbb828917498569f883fae88ec25d37caebaf8a2b802b148", _exports);
1371
1377
  return _exports;
1372
1378
  })();
1373
1379
 
1374
- const _m16 = _modules.get("bf7ec82677b616a41d07306ba385b32456bc03509817c13bbe65a1ba390a6253") ?? (() => {
1380
+ const _m16 = _modules.get("077c3c668f1457253dba044e6f6be7f7afd28a8976ed20c764bd5d5dc7c41889") ?? (() => {
1375
1381
  const { escapeOoxmlAttribute, cleanXml, xmlDeclaration } = _m11;
1376
1382
 
1377
1383
  const { OfficeIMOError } = _m3;
@@ -1581,7 +1587,7 @@ class StyleRegistry {
1581
1587
  }
1582
1588
  }
1583
1589
  const _exports = Object.freeze({ colorArgb: _m17.colorArgb, spreadsheetNamespace: spreadsheetNamespace, NumberFormats: NumberFormats, validateStylePatch: validateStylePatch, copyStylePatch: copyStylePatch, StyleRegistry: StyleRegistry });
1584
- _modules.set("bf7ec82677b616a41d07306ba385b32456bc03509817c13bbe65a1ba390a6253", _exports);
1590
+ _modules.set("077c3c668f1457253dba044e6f6be7f7afd28a8976ed20c764bd5d5dc7c41889", _exports);
1585
1591
  return _exports;
1586
1592
  })();
1587
1593
 
@@ -1672,7 +1678,7 @@ _modules.set("732224f6995c2478cf33a6ed01f3e3d3dcccb159a731d6db9280104bd5040fc5",
1672
1678
  return _exports;
1673
1679
  })();
1674
1680
 
1675
- const _m22 = _modules.get("6d0c9930eb0b5d96d92b93ba72759417a324dfd119a592c5a2ee4de0ff3495ec") ?? (() => {
1681
+ const _m22 = _modules.get("f1de2157d2aefa347a314940eb7f89c16545e11f69923920e605409433742f93") ?? (() => {
1676
1682
  const { NotSupportedError } = _m3;
1677
1683
 
1678
1684
  const { cleanXml, escapeXml } = _m11;
@@ -1780,7 +1786,7 @@ function formulaXml(cell) {
1780
1786
  return "<f>" + escapeXml(cell.formula, "reject") + "</f><v>" + (cell.cachedValue ?? "") + "</v>";
1781
1787
  }
1782
1788
  const _exports = Object.freeze({ FormulaCell: FormulaCell, isSubtotalFormula: isSubtotalFormula, formulaXml: formulaXml });
1783
- _modules.set("6d0c9930eb0b5d96d92b93ba72759417a324dfd119a592c5a2ee4de0ff3495ec", _exports);
1789
+ _modules.set("f1de2157d2aefa347a314940eb7f89c16545e11f69923920e605409433742f93", _exports);
1784
1790
  return _exports;
1785
1791
  })();
1786
1792
 
@@ -1806,7 +1812,7 @@ _modules.set("e95bb0e3f342d1379b67a3d541fa808e06361da8460169a6aec152ee7deb69b2",
1806
1812
  return _exports;
1807
1813
  })();
1808
1814
 
1809
- const _m19 = _modules.get("45bcbd0fd875662d537921217d5e747170e665dedc70927041f59d5782ed21b0") ?? (() => {
1815
+ const _m19 = _modules.get("4bce839e90e3ef590aa1b224ffd9c4bdf24d7639b93bdf879f9a0d79de4cd0e4") ?? (() => {
1810
1816
  const { cleanXml, escapeXml } = _m11;
1811
1817
 
1812
1818
  const { assertExportValue, assertScalar } = _m20;
@@ -1870,12 +1876,13 @@ function sheetName(requested, names, policy, register = true) {
1870
1876
  throw new TypeError("Sheet name must be a string.");
1871
1877
  // Validate and deduplicate the decoded literal value, before ST_Xstring attribute encoding.
1872
1878
  // A requested _xHHHH_ token is literal text; the serializer protects its leading underscore.
1873
- let base = cleanXml(requested, policy).replace(/[\[\]:*?/\\]/g, "_").trim().replace(/^'+|'+$/g, "").trim();
1879
+ let base = cleanXml(requested, policy).replace(/[\[\]:*?/\\]/g, "_").replace(/^[\s']+|[\s']+$/g, "");
1880
+ // Clipping can expose an internal apostrophe or the reserved History name.
1881
+ base = clipName(base, 31).replace(/[\s']+$/g, "");
1874
1882
  if (!base)
1875
1883
  base = "Sheet";
1876
1884
  if (base.toLowerCase() === "history")
1877
1885
  base += "_";
1878
- base = clipName(base, 31);
1879
1886
  let name = base, suffix = 2;
1880
1887
  while (names.has(name.toLowerCase())) {
1881
1888
  const tail = " (" + suffix++ + ")";
@@ -1898,11 +1905,11 @@ function excelDate(date, mode) {
1898
1905
  return (time - Date.UTC(1899, 11, 31)) / 86400000 + (time >= Date.UTC(1900, 2, 1) ? 1 : 0);
1899
1906
  }
1900
1907
  const _exports = Object.freeze({ Cell: Cell, assertXlsxValue: assertXlsxValue, copyValue: copyValue, cellText: cellText, inlineText: inlineText, columnName: columnName, sheetName: sheetName, excelDate: excelDate });
1901
- _modules.set("45bcbd0fd875662d537921217d5e747170e665dedc70927041f59d5782ed21b0", _exports);
1908
+ _modules.set("4bce839e90e3ef590aa1b224ffd9c4bdf24d7639b93bdf879f9a0d79de4cd0e4", _exports);
1902
1909
  return _exports;
1903
1910
  })();
1904
1911
 
1905
- const _m24 = _modules.get("c15eede1e0b2a0a81c7153114bbb20e411413650f1c70c29bbda627241c59dbd") ?? (() => {
1912
+ const _m24 = _modules.get("0391fe35ea7d02b25804ab4d0e7543136d6bb615f368f268c74aa135f23aa6bc") ?? (() => {
1906
1913
  const { assertExportValue } = _m20;
1907
1914
 
1908
1915
  const { checkAbort } = _m2;
@@ -1915,11 +1922,18 @@ function createRowProjector(columns, worksheet, signal, validate = assertExportV
1915
1922
  const getters = columns.some(column => column.value);
1916
1923
  return (row, rowIndex = 0) => {
1917
1924
  if (Array.isArray(row) && !getters) {
1918
- if (row.length > columns.length)
1925
+ const length = row.length;
1926
+ if (length > columns.length)
1919
1927
  throw new RangeError("Row has more values than declared columns.");
1920
- for (const value of row)
1928
+ // Resolve each positional value once, just like key/value projections. Returning the
1929
+ // source array would let an accessor change a value after the portable-value check.
1930
+ const values = new Array(length);
1931
+ for (let index = 0; index < length; index++) {
1932
+ const value = row[index];
1921
1933
  validate(value);
1922
- return row;
1934
+ values[index] = value;
1935
+ }
1936
+ return values;
1923
1937
  }
1924
1938
  if (!row || typeof row !== "object" || isDate(row))
1925
1939
  throw new TypeError("A row must be an array or object.");
@@ -1948,7 +1962,7 @@ function createRowProjector(columns, worksheet, signal, validate = assertExportV
1948
1962
  };
1949
1963
  }
1950
1964
  /** @internal Shared metadata fields for full columns and adapter-owned partial overrides. */
1951
- const columnOptionFields = ["header", "key", "value", "width", "type", "format", "wrapText", "alignment", "groups", "style", "valueFormatter"];
1965
+ const columnOptionFields = ["header", "key", "value", "width", "type", "format", "wrapText", "alignment", "rowHeader", "groups", "style", "valueFormatter"];
1952
1966
  function copyColumns(columns, workbookStyles = false) {
1953
1967
  if (!Array.isArray(columns))
1954
1968
  throw new TypeError("Declare the columns in export order.");
@@ -1964,6 +1978,8 @@ function copyColumns(columns, workbookStyles = false) {
1964
1978
  throw new TypeError("Each column needs a string header and an optional string key.");
1965
1979
  if (captured.value !== undefined && typeof captured.value !== "function")
1966
1980
  throw new TypeError("Column value getters must be functions.");
1981
+ if (captured.rowHeader !== undefined && typeof captured.rowHeader !== "boolean")
1982
+ throw new TypeError("Column rowHeader must be boolean.");
1967
1983
  if (captured.groups !== undefined) {
1968
1984
  if (!Array.isArray(captured.groups))
1969
1985
  throw new TypeError("Column groups must be an array of strings.");
@@ -1976,7 +1992,7 @@ function copyColumns(columns, workbookStyles = false) {
1976
1992
  });
1977
1993
  }
1978
1994
  const _exports = Object.freeze({ createRowProjector: createRowProjector, columnOptionFields: columnOptionFields, copyColumns: copyColumns });
1979
- _modules.set("c15eede1e0b2a0a81c7153114bbb20e411413650f1c70c29bbda627241c59dbd", _exports);
1995
+ _modules.set("0391fe35ea7d02b25804ab4d0e7543136d6bb615f368f268c74aa135f23aa6bc", _exports);
1980
1996
  return _exports;
1981
1997
  })();
1982
1998
 
@@ -2046,7 +2062,7 @@ _modules.set("d56b24243cff6f3552a2f7b45521af4491494375ec76117e9ac1ebb047ce02da",
2046
2062
  return _exports;
2047
2063
  })();
2048
2064
 
2049
- const _m28 = _modules.get("7e3adf1ed8ebd3d36cf5e10c55f94387f7044e585e7a1e14fbf597db4e2e4fea") ?? (() => {
2065
+ const _m28 = _modules.get("84c16159c55cf4c0af5d3c67510302694946ae99c6c685fc09314069ee3da5c5") ?? (() => {
2050
2066
  const { ChunkedTextSink } = _m5;
2051
2067
 
2052
2068
  const { escapeXml, xmlDeclaration } = _m11;
@@ -2155,11 +2171,11 @@ async function writeChartXml(chart, destination, policy, signal) {
2155
2171
  await text.close();
2156
2172
  }
2157
2173
  const _exports = Object.freeze({ chartNamespace: chartNamespace, chartContentType: chartContentType, chartAnchorXml: chartAnchorXml, writeChartXml: writeChartXml });
2158
- _modules.set("7e3adf1ed8ebd3d36cf5e10c55f94387f7044e585e7a1e14fbf597db4e2e4fea", _exports);
2174
+ _modules.set("84c16159c55cf4c0af5d3c67510302694946ae99c6c685fc09314069ee3da5c5", _exports);
2159
2175
  return _exports;
2160
2176
  })();
2161
2177
 
2162
- const _m27 = _modules.get("2a8fdd646d18edd986a29c54b3860ff16650da92d97b03a7cdd3cacd843c5246") ?? (() => {
2178
+ const _m27 = _modules.get("9d4496a1ff3d58ac0b9dcd7304e6861184df30700c344329157899639df7b5e4") ?? (() => {
2163
2179
  const { cleanXml, escapeXml, escapeOoxmlAttribute, xmlDeclaration } = _m11;
2164
2180
 
2165
2181
  const { copyExportLink } = _m21;
@@ -2233,11 +2249,11 @@ function drawingXml(images, policy, charts = []) {
2233
2249
  }
2234
2250
  const drawingContentType = "application/vnd.openxmlformats-officedocument.drawing+xml";
2235
2251
  const _exports = Object.freeze({ copyDrawingAnchor: copyDrawingAnchor, cellPosition: cellPosition, copyHyperlink: copyHyperlink, copyImage: copyImage, hyperlinksXml: hyperlinksXml, drawingXml: drawingXml, drawingContentType: drawingContentType });
2236
- _modules.set("2a8fdd646d18edd986a29c54b3860ff16650da92d97b03a7cdd3cacd843c5246", _exports);
2252
+ _modules.set("9d4496a1ff3d58ac0b9dcd7304e6861184df30700c344329157899639df7b5e4", _exports);
2237
2253
  return _exports;
2238
2254
  })();
2239
2255
 
2240
- const _m30 = _modules.get("dbb48ba4ffa2659e2972a395c603d203c11ea8addb71c38103c006d6d7937506") ?? (() => {
2256
+ const _m30 = _modules.get("4c91e257806f805b473340527db7ce3404c98ac27db0a775ff047dc3dded10cc") ?? (() => {
2241
2257
  const { OfficeIMOError } = _m3;
2242
2258
 
2243
2259
  const { cellPosition } = _m27;
@@ -2338,7 +2354,7 @@ class MergeRegions {
2338
2354
  throw new RangeError("Merged ranges must stay within exported rows."); }
2339
2355
  }
2340
2356
  const _exports = Object.freeze({ MergeRegions: MergeRegions });
2341
- _modules.set("dbb48ba4ffa2659e2972a395c603d203c11ea8addb71c38103c006d6d7937506", _exports);
2357
+ _modules.set("4c91e257806f805b473340527db7ce3404c98ac27db0a775ff047dc3dded10cc", _exports);
2342
2358
  return _exports;
2343
2359
  })();
2344
2360
 
@@ -2390,7 +2406,7 @@ _modules.set("c9fde2c438e186da56f740105fcd41c265fdfdd855a4f1b811d556a02387479b",
2390
2406
  return _exports;
2391
2407
  })();
2392
2408
 
2393
- const _m32 = _modules.get("b9d400aa8d995edccef22cef96a0e14cb28ce2071c42d8cf29de94d74fe82355") ?? (() => {
2409
+ const _m32 = _modules.get("47efdc8f108b0e995accdd63fd1addea0e4de507010cbf0975417e7151636360") ?? (() => {
2394
2410
  const { ExportCell } = _m20;
2395
2411
 
2396
2412
  const { tableSpans } = _m25;
@@ -2423,11 +2439,11 @@ class StructuredRows {
2423
2439
  }
2424
2440
  }
2425
2441
  const _exports = Object.freeze({ StructuredRows: StructuredRows });
2426
- _modules.set("b9d400aa8d995edccef22cef96a0e14cb28ce2071c42d8cf29de94d74fe82355", _exports);
2442
+ _modules.set("47efdc8f108b0e995accdd63fd1addea0e4de507010cbf0975417e7151636360", _exports);
2427
2443
  return _exports;
2428
2444
  })();
2429
2445
 
2430
- const _m29 = _modules.get("26966342ea634f631f6b1e684842fb8d3a01e38fe33cac9b74261ba9ff4c11cb") ?? (() => {
2446
+ const _m29 = _modules.get("23615ba776e7025e5e40cde325ad13799a7eeae6c88cb2ed74395222f91e6a81") ?? (() => {
2431
2447
  const { ExportCell } = _m20;
2432
2448
 
2433
2449
  const { isDate } = _m12;
@@ -2624,11 +2640,11 @@ function printXml(options, policy) {
2624
2640
  (options.footer === undefined ? "" : '<oddFooter>' + escapeOoxmlAttribute("&C" + options.footer.replace(/&/g, "&&"), policy) + '</oddFooter>') + '</headerFooter>' : "");
2625
2641
  }
2626
2642
  const _exports = Object.freeze({ ComputedTotal: ComputedTotal, ReportLayout: ReportLayout, totalFormula: totalFormula, printXml: printXml });
2627
- _modules.set("26966342ea634f631f6b1e684842fb8d3a01e38fe33cac9b74261ba9ff4c11cb", _exports);
2643
+ _modules.set("23615ba776e7025e5e40cde325ad13799a7eeae6c88cb2ed74395222f91e6a81", _exports);
2628
2644
  return _exports;
2629
2645
  })();
2630
2646
 
2631
- const _m34 = _modules.get("4d984092c5be653d0d5c8c910638fe0c0d560f8e74ea34c1a7b52b24be29fbf5") ?? (() => {
2647
+ const _m34 = _modules.get("7845d79cd22590bbefc767802abfe3f805e8f68807521cef8d07ecc42db0b491") ?? (() => {
2632
2648
  const { columnName } = _m19;
2633
2649
 
2634
2650
  /** @internal Data-column selectors use stable keys or one-based worksheet columns. */
@@ -2655,11 +2671,11 @@ function qualifiedCell(sheetName, column, row) {
2655
2671
  return qualifiedColumnRange(sheetName, column, row, 1).split(":")[0];
2656
2672
  }
2657
2673
  const _exports = Object.freeze({ resolveDataColumn: resolveDataColumn, qualifiedColumnRange: qualifiedColumnRange, qualifiedCell: qualifiedCell });
2658
- _modules.set("4d984092c5be653d0d5c8c910638fe0c0d560f8e74ea34c1a7b52b24be29fbf5", _exports);
2674
+ _modules.set("7845d79cd22590bbefc767802abfe3f805e8f68807521cef8d07ecc42db0b491", _exports);
2659
2675
  return _exports;
2660
2676
  })();
2661
2677
 
2662
- const _m35 = _modules.get("216c77d37374c34583daebcedae5d725280614b84266d0048b25fc94d816bbad") ?? (() => {
2678
+ const _m35 = _modules.get("4892a7dafefc4d82567cd2bd4cc8da5470cee4dbf546e6473f782f44bd4bbe35") ?? (() => {
2663
2679
  const { OfficeIMOError } = _m3;
2664
2680
 
2665
2681
  const { columnName } = _m19;
@@ -2702,11 +2718,11 @@ function dataRowReference(firstColumn, lastColumn, headerRows, dataRows, ranges)
2702
2718
  return reference || undefined;
2703
2719
  }
2704
2720
  const _exports = Object.freeze({ retainDataRowRanges: retainDataRowRanges, dataRowRanges: dataRowRanges, dataRowCount: dataRowCount, dataRowReference: dataRowReference });
2705
- _modules.set("216c77d37374c34583daebcedae5d725280614b84266d0048b25fc94d816bbad", _exports);
2721
+ _modules.set("4892a7dafefc4d82567cd2bd4cc8da5470cee4dbf546e6473f782f44bd4bbe35", _exports);
2706
2722
  return _exports;
2707
2723
  })();
2708
2724
 
2709
- const _m33 = _modules.get("a1fdc34474873603d9907928d65684efabe0bfce470a26305f49b46b5fb5b12a") ?? (() => {
2725
+ const _m33 = _modules.get("736b2b2fc3489642263dbaf677544e8a270eea6b8efb0cc26c67346e66cab118") ?? (() => {
2710
2726
  const { cleanXml, escapeXml, escapeOoxmlAttribute } = _m11;
2711
2727
 
2712
2728
  const { cellPosition } = _m27;
@@ -2872,11 +2888,11 @@ class ConditionalFormats {
2872
2888
  }
2873
2889
  }
2874
2890
  const _exports = Object.freeze({ prepareConditionalFormats: prepareConditionalFormats, ConditionalFormats: ConditionalFormats });
2875
- _modules.set("a1fdc34474873603d9907928d65684efabe0bfce470a26305f49b46b5fb5b12a", _exports);
2891
+ _modules.set("736b2b2fc3489642263dbaf677544e8a270eea6b8efb0cc26c67346e66cab118", _exports);
2876
2892
  return _exports;
2877
2893
  })();
2878
2894
 
2879
- const _m36 = _modules.get("082c5d69b3ae3fbd0b4477ae5cfd07155401158d890162c4a223eb67ffeb489b") ?? (() => {
2895
+ const _m36 = _modules.get("860c88d97ba76e8713c14d56967152e369d2f08f50ffada68827a9c220881c61") ?? (() => {
2880
2896
  const { OfficeIMOError } = _m3;
2881
2897
 
2882
2898
  const { checkAbort } = _m2;
@@ -2976,11 +2992,11 @@ function* dataValidationsXml(prepared, headerRows, dataRows, ranges) {
2976
2992
  yield '</dataValidations>';
2977
2993
  }
2978
2994
  const _exports = Object.freeze({ prepareDataValidations: prepareDataValidations, dataValidationsXml: dataValidationsXml });
2979
- _modules.set("082c5d69b3ae3fbd0b4477ae5cfd07155401158d890162c4a223eb67ffeb489b", _exports);
2995
+ _modules.set("860c88d97ba76e8713c14d56967152e369d2f08f50ffada68827a9c220881c61", _exports);
2980
2996
  return _exports;
2981
2997
  })();
2982
2998
 
2983
- const _m26 = _modules.get("5d200c22b866a7be40782b9b348f2ad3b781abd8434f420d780e89aa65ede587") ?? (() => {
2999
+ const _m26 = _modules.get("b99287e3e329b75007119103112a699c368d8237b37fa79e083b0014a21952e4") ?? (() => {
2984
3000
  const { checkAbort, consumeRows, inputRows, pause, taskYieldDue } = _m2;
2985
3001
 
2986
3002
  const { ChunkedTextSink, BlobByteSink } = _m5;
@@ -3260,7 +3276,8 @@ class Worksheet {
3260
3276
  });
3261
3277
  const originalCharacters = typeof value === "string" ? value.length : 0;
3262
3278
  let reservedCharacters = this.preserved || header || footer ? originalCharacters : undefined;
3263
- if (type === "string" && cleanXml(value, this.book.settings.invalidCharacterPolicy).length > 32767) {
3279
+ // Cleaning removes characters; ordinary strings cannot cross Excel's limit.
3280
+ if (type === "string" && originalCharacters > 32767 && cleanXml(value, this.book.settings.invalidCharacterPolicy).length > 32767) {
3264
3281
  const cell = col.letter + row;
3265
3282
  if (link || this.linkedCells.has(cell))
3266
3283
  throw new TypeError("A text-preservation cell cannot also have an external hyperlink.");
@@ -3702,11 +3719,11 @@ class Worksheet {
3702
3719
  async discard(error) { this.failed = true; this.error = error; this.pending = []; this.pendingCharacters = 0; this.prepared = undefined; this.buffer = undefined; this.nativeCharts.length = 0; this.chartSources.length = 0; this.output.discard(); await this.entry?.discard(error); }
3703
3720
  }
3704
3721
  const _exports = Object.freeze({ Worksheet: Worksheet });
3705
- _modules.set("5d200c22b866a7be40782b9b348f2ad3b781abd8434f420d780e89aa65ede587", _exports);
3722
+ _modules.set("b99287e3e329b75007119103112a699c368d8237b37fa79e083b0014a21952e4", _exports);
3706
3723
  return _exports;
3707
3724
  })();
3708
3725
 
3709
- const _m37 = _modules.get("87ebdbcd48a4e7d39257ef5bdfe726a889dbf5eaf3cd3f51a0205bf65090f6cf") ?? (() => {
3726
+ const _m37 = _modules.get("7f1b6bb321e8055ba5269c0fe0933cf02f9a4ce269d3b8e4a64cc63d8398954a") ?? (() => {
3710
3727
  const { escapeOoxmlAttribute, escapeXml, xmlDeclaration } = _m11;
3711
3728
 
3712
3729
  const { cellText, columnName } = _m19;
@@ -3749,11 +3766,11 @@ function tableXml(table, rowCount, policy, headerRow = 1, footer) {
3749
3766
  '" showColumnStripes="' + (options.bandedColumns ? 1 : 0) + '"/></table>';
3750
3767
  }
3751
3768
  const _exports = Object.freeze({ defineTable: defineTable, tableXml: tableXml });
3752
- _modules.set("87ebdbcd48a4e7d39257ef5bdfe726a889dbf5eaf3cd3f51a0205bf65090f6cf", _exports);
3769
+ _modules.set("7f1b6bb321e8055ba5269c0fe0933cf02f9a4ce269d3b8e4a64cc63d8398954a", _exports);
3753
3770
  return _exports;
3754
3771
  })();
3755
3772
 
3756
- const _m38 = _modules.get("9c165af1760666d37381c410b96136694d28d86e1e5fcf4847f2d1087bb952f4") ?? (() => {
3773
+ const _m38 = _modules.get("0c395783b9d7cc62dd39a21adeb698ad4a61e2c89f7b1fc8712e2eb2ccfe9d92") ?? (() => {
3757
3774
  const { OfficeIMOError } = _m3;
3758
3775
 
3759
3776
  const { cleanXml } = _m11;
@@ -3817,7 +3834,7 @@ function* splitText(text) {
3817
3834
  }
3818
3835
  }
3819
3836
  const _exports = Object.freeze({ TextOverflow: TextOverflow, clipText: clipText });
3820
- _modules.set("9c165af1760666d37381c410b96136694d28d86e1e5fcf4847f2d1087bb952f4", _exports);
3837
+ _modules.set("0c395783b9d7cc62dd39a21adeb698ad4a61e2c89f7b1fc8712e2eb2ccfe9d92", _exports);
3821
3838
  return _exports;
3822
3839
  })();
3823
3840
 
@@ -3844,7 +3861,7 @@ _modules.set("e00bc0213b723678d050e3e1f11b39ed3d6b0b0fd6a39b403beb1a6bef69e282",
3844
3861
  return _exports;
3845
3862
  })();
3846
3863
 
3847
- const _m41 = _modules.get("bd66b325c9055258132735218be91a78281910aaac042bcac4c5b0f594e35379") ?? (() => {
3864
+ const _m41 = _modules.get("35db01801a6b2e3e0c5acd7493e56f04b5b41b1d57afa8be28b8358378ad6494") ?? (() => {
3848
3865
  const { checkAbort } = _m2;
3849
3866
 
3850
3867
  const { NotSupportedError, OfficeIMOError } = _m3;
@@ -3972,11 +3989,11 @@ function prepareChartBinding(input, descriptor, budgets, signal, type = "columnC
3972
3989
  }, finish });
3973
3990
  }
3974
3991
  const _exports = Object.freeze({ captureChartRange: captureChartRange, prepareChartBinding: prepareChartBinding });
3975
- _modules.set("bd66b325c9055258132735218be91a78281910aaac042bcac4c5b0f594e35379", _exports);
3992
+ _modules.set("35db01801a6b2e3e0c5acd7493e56f04b5b41b1d57afa8be28b8358378ad6494", _exports);
3976
3993
  return _exports;
3977
3994
  })();
3978
3995
 
3979
- const _m40 = _modules.get("1a72338dda567009c435c547ffc3b6a8e798369b5455bb94c629f8fab0771eb7") ?? (() => {
3996
+ const _m40 = _modules.get("6ff482aba6cf0b524cf20f6a4f8af16b842a49f36448b14e73beaf838885d219") ?? (() => {
3980
3997
  const { checkAbort } = _m2;
3981
3998
 
3982
3999
  const { NotSupportedError, OfficeIMOError } = _m3;
@@ -4143,11 +4160,11 @@ function prepareChart(input, policy, availablePoints, availableText, signal, res
4143
4160
  points, textCharacters });
4144
4161
  }
4145
4162
  const _exports = Object.freeze({ prepareChart: prepareChart });
4146
- _modules.set("1a72338dda567009c435c547ffc3b6a8e798369b5455bb94c629f8fab0771eb7", _exports);
4163
+ _modules.set("6ff482aba6cf0b524cf20f6a4f8af16b842a49f36448b14e73beaf838885d219", _exports);
4147
4164
  return _exports;
4148
4165
  })();
4149
4166
 
4150
- const _m1 = _modules.get("ae55b8ef5a8ee860d084264e4184cae35d6b359c73b70c059503e435df68f397") ?? (() => {
4167
+ const _m1 = _modules.get("0f11efc0d52501e827898643b33f7fa42365115a892aa801634ecea3f3603681") ?? (() => {
4151
4168
  const { beginTask, checkAbort, pause, taskYieldDue } = _m2;
4152
4169
 
4153
4170
  const { OfficeIMOError } = _m3;
@@ -4486,12 +4503,15 @@ class Workbook {
4486
4503
  });
4487
4504
  }
4488
4505
  addPart(part) {
4506
+ this.assertOpen();
4507
+ const { uri, contentType, data, relationship } = part;
4508
+ const capturedRelationship = relationship && { id: relationship.id, type: relationship.type, source: relationship.source };
4489
4509
  this.assertOpen();
4490
4510
  // Reserve now so collisions and invalid names fail at the call site.
4491
- this.package.addPart(part);
4492
- if (part.relationship) {
4493
- const { source, ...rel } = part.relationship;
4494
- this.package.addRelationship(source ?? "/xl/workbook.xml", { ...rel, target: part.uri });
4511
+ this.package.addPart({ uri, contentType, data });
4512
+ if (capturedRelationship) {
4513
+ const { source, id, type } = capturedRelationship;
4514
+ this.package.addRelationship(source ?? "/xl/workbook.xml", { id, type, target: uri });
4495
4515
  }
4496
4516
  }
4497
4517
  /** Complete the archive and return counts. Does not close or dispose a caller-owned sink. */
@@ -4622,7 +4642,7 @@ class Workbook {
4622
4642
  }
4623
4643
  }
4624
4644
  const _exports = Object.freeze({ Workbook: Workbook });
4625
- _modules.set("ae55b8ef5a8ee860d084264e4184cae35d6b359c73b70c059503e435df68f397", _exports);
4645
+ _modules.set("0f11efc0d52501e827898643b33f7fa42365115a892aa801634ecea3f3603681", _exports);
4626
4646
  return _exports;
4627
4647
  })();
4628
4648
 
@@ -4679,7 +4699,7 @@ _modules.set("89111eab1f3857529c2d0cd849f16598097e62bd73841211b9c66ccc7b1b7ca2",
4679
4699
  return _exports;
4680
4700
  })();
4681
4701
 
4682
- const _m42 = _modules.get("d4f8b447d0a2834af0ecb5f89766e5402a65980c89f3a4973b4493cac65051b4") ?? (() => {
4702
+ const _m42 = _modules.get("8d425cd3abec2c5e0140f71239bbeacbae0e57524ed70a8e545f80286c4a1308") ?? (() => {
4683
4703
  const { withDestination } = _m5;
4684
4704
 
4685
4705
  const { copyColumns } = _m24;
@@ -4734,11 +4754,11 @@ async function writeXlsxTo(rows, destination, configuration) {
4734
4754
  });
4735
4755
  }
4736
4756
  const _exports = Object.freeze({ writeXlsx: writeXlsx, writeXlsxTo: writeXlsxTo });
4737
- _modules.set("d4f8b447d0a2834af0ecb5f89766e5402a65980c89f3a4973b4493cac65051b4", _exports);
4757
+ _modules.set("8d425cd3abec2c5e0140f71239bbeacbae0e57524ed70a8e545f80286c4a1308", _exports);
4738
4758
  return _exports;
4739
4759
  })();
4740
4760
 
4741
- const _m45 = _modules.get("18d120e0ba2b5d6d4a098d72a6f558dec1c936c1f1a0e4996c6d240a928c931e") ?? (() => {
4761
+ const _m45 = _modules.get("046b305cdccf817d847addb75a778131622de23f2840830bbe1c0c26053a68c0") ?? (() => {
4742
4762
  const { ExportCell, assertScalar } = _m20;
4743
4763
 
4744
4764
  const { isDate } = _m12;
@@ -5000,11 +5020,11 @@ function createGroupedReport(rows, options) {
5000
5020
  return source;
5001
5021
  }
5002
5022
  const _exports = Object.freeze({ assertGroupedReportSource: assertGroupedReportSource, groupedReportEvents: groupedReportEvents, groupedReportOperation: groupedReportOperation, createGroupedReport: createGroupedReport });
5003
- _modules.set("18d120e0ba2b5d6d4a098d72a6f558dec1c936c1f1a0e4996c6d240a928c931e", _exports);
5023
+ _modules.set("046b305cdccf817d847addb75a778131622de23f2840830bbe1c0c26053a68c0", _exports);
5004
5024
  return _exports;
5005
5025
  })();
5006
5026
 
5007
- const _m46 = _modules.get("1c910dc1be8cd6844c1384524ba7c64dc75d80ff09de2fbd5a4752b9cdfd943b") ?? (() => {
5027
+ const _m46 = _modules.get("02f1b8fe9368420b22d79efc01f2b37794fc40aaf8150161b3b7623fcdc0d71f") ?? (() => {
5008
5028
  const { assertGroupedReportSource } = _m45;
5009
5029
 
5010
5030
  const { captureFields } = _m7;
@@ -5093,11 +5113,11 @@ function prepareGroupedSheet(report, configuration, maxConditionalFormats = 1000
5093
5113
  ...(options.grandTotalStyle ? { grandTotalStyle: copyStylePatch(options.grandTotalStyle) } : {}) };
5094
5114
  }
5095
5115
  const _exports = Object.freeze({ groupedOptionFields: groupedOptionFields, prepareGroupedSheet: prepareGroupedSheet });
5096
- _modules.set("1c910dc1be8cd6844c1384524ba7c64dc75d80ff09de2fbd5a4752b9cdfd943b", _exports);
5116
+ _modules.set("02f1b8fe9368420b22d79efc01f2b37794fc40aaf8150161b3b7623fcdc0d71f", _exports);
5097
5117
  return _exports;
5098
5118
  })();
5099
5119
 
5100
- const _m44 = _modules.get("59f736fd5084497af8fb6fd211c910f5980174a39d31641216eda50f6d78bb63") ?? (() => {
5120
+ const _m44 = _modules.get("6b646c4d57b8f8f452eaa7e61d2935bab09681aceb6064b8600bf73ca10b8f4e") ?? (() => {
5101
5121
  const { groupedReportOperation } = _m45;
5102
5122
 
5103
5123
  const { checkAbort, withAbort } = _m2;
@@ -5270,11 +5290,11 @@ async function writeGroupedXlsxTo(report, destination, options) {
5270
5290
  return withDestination(destination, async (sink) => (await write(report, prepared, sink)).result);
5271
5291
  }
5272
5292
  const _exports = Object.freeze({ addGroupedXlsx: addGroupedXlsx, writeGroupedXlsx: writeGroupedXlsx, writeGroupedXlsxTo: writeGroupedXlsxTo });
5273
- _modules.set("59f736fd5084497af8fb6fd211c910f5980174a39d31641216eda50f6d78bb63", _exports);
5293
+ _modules.set("6b646c4d57b8f8f452eaa7e61d2935bab09681aceb6064b8600bf73ca10b8f4e", _exports);
5274
5294
  return _exports;
5275
5295
  })();
5276
5296
 
5277
- const _m47 = _modules.get("4af46fa949e848316dc59f9073630c7949316a763a7c9a753335d276c580b8e6") ?? (() => {
5297
+ const _m47 = _modules.get("81b3d47c02b7d8443b79e02b3cfb52032d6b73d9a3fb592b777ebe028ad0ef00") ?? (() => {
5278
5298
 
5279
5299
 
5280
5300
 
@@ -5319,14 +5339,14 @@ function saveBlob(blob, fileName) {
5319
5339
  }
5320
5340
  }
5321
5341
  const _exports = Object.freeze({ OfficeIMOError: _m3.OfficeIMOError, NotSupportedError: _m3.NotSupportedError, BlobByteSink: _m5.BlobByteSink, ChunkedTextSink: _m5.ChunkedTextSink, writeBytes: _m5.writeBytes, ExportCell: _m20.ExportCell, createGroupedReport: _m45.createGroupedReport, checkAbort: _m2.checkAbort, withAbort: _m2.withAbort, inputRows: _m2.inputRows, pause: _m2.pause, detectFeatures: detectFeatures, saveBlob: saveBlob });
5322
- _modules.set("4af46fa949e848316dc59f9073630c7949316a763a7c9a753335d276c580b8e6", _exports);
5342
+ _modules.set("81b3d47c02b7d8443b79e02b3cfb52032d6b73d9a3fb592b777ebe028ad0ef00", _exports);
5323
5343
  return _exports;
5324
5344
  })();
5325
5345
 
5326
- const _m0 = _modules.get("5f2337c50c0e9b88b7a8095f5b5df2f3fde33723e3115223465178731cfab42d") ?? (() => {
5346
+ const _m0 = _modules.get("9fbdb5c6f6af75d87ac6cb47771fe48fa6527be2cb7d16dbad56e4213e2f7195") ?? (() => {
5327
5347
 
5328
5348
  const _exports = Object.freeze({ Workbook: _m1.Workbook, writeXlsx: _m42.writeXlsx, writeXlsxTo: _m42.writeXlsxTo, writeGroupedXlsx: _m44.writeGroupedXlsx, writeGroupedXlsxTo: _m44.writeGroupedXlsxTo, addGroupedXlsx: _m44.addGroupedXlsx, createGroupedReport: _m45.createGroupedReport, Worksheet: _m26.Worksheet, Cell: _m19.Cell, FormulaCell: _m22.FormulaCell, StyleRegistry: _m16.StyleRegistry, NumberFormats: _m16.NumberFormats, saveBlob: _m47.saveBlob, ExportCell: _m20.ExportCell });
5329
- _modules.set("5f2337c50c0e9b88b7a8095f5b5df2f3fde33723e3115223465178731cfab42d", _exports);
5349
+ _modules.set("9fbdb5c6f6af75d87ac6cb47771fe48fa6527be2cb7d16dbad56e4213e2f7195", _exports);
5330
5350
  return _exports;
5331
5351
  })();
5332
5352
  Object.assign(officeimo, _m0, { core: _m47, zip: _m13, xml: _m11, opc: _m8, xlsx: _m0 });