ooxml-core 1.19.0 → 1.19.1

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 (146) hide show
  1. package/dist/{PptxHandler-5GBBVJCR.mjs → PptxHandler-2V4PQL6O.mjs} +2 -2
  2. package/dist/{PptxHandler-ZHPGBSAF.cjs → PptxHandler-6TNIQ7S5.cjs} +2 -2
  3. package/dist/{PptxHandler-H43MAMTO.mjs → PptxHandler-HSPKEP5E.mjs} +1 -1
  4. package/dist/{PresentationBuilder-7ZSUKCX5.mjs → PresentationBuilder-G7MPEGXJ.mjs} +1 -1
  5. package/dist/{PresentationBuilder-IJW42L3R.mjs → PresentationBuilder-HQ6C7L4V.mjs} +2 -2
  6. package/dist/{PresentationBuilder-O4H4MMWB.cjs → PresentationBuilder-RM52LCVN.cjs} +4 -4
  7. package/dist/automation/node.cjs +2 -1
  8. package/dist/automation/node.d.ts.map +1 -1
  9. package/dist/automation/node.mjs +2 -1
  10. package/dist/{chunk-D4GBMBG6.mjs → chunk-365VXA3X.mjs} +1 -1
  11. package/dist/{chunk-3XFPCZKB.mjs → chunk-4FTUAD2B.mjs} +20 -5
  12. package/dist/{chunk-PLWRGPRH.mjs → chunk-4YDPRQRH.mjs} +145 -96
  13. package/dist/{chunk-QXDWDDLN.mjs → chunk-6UV3JVB3.mjs} +1 -1
  14. package/dist/{chunk-3ATTMOYZ.mjs → chunk-7FPQ7LGN.mjs} +1 -1
  15. package/dist/{chunk-7WCCQKV2.mjs → chunk-7I7CMDUZ.mjs} +1 -1
  16. package/dist/{chunk-KZ6UTEES.mjs → chunk-E6WNB3JX.mjs} +1 -1
  17. package/dist/{chunk-SPG7WICG.mjs → chunk-EDRS3OSM.mjs} +1 -1
  18. package/dist/{chunk-VXLBSKZ6.mjs → chunk-GKLDCQLY.mjs} +1 -1
  19. package/dist/{chunk-ITQNJLJW.mjs → chunk-ILG6NKXV.mjs} +1 -1
  20. package/dist/{chunk-OXZUJR7O.mjs → chunk-J3PD5JWS.mjs} +1 -1
  21. package/dist/{chunk-QBJRB6WW.mjs → chunk-JUABSM7C.mjs} +1 -1
  22. package/dist/{chunk-5GBNB7VU.mjs → chunk-LMDNFNZJ.mjs} +1 -1
  23. package/dist/{chunk-BIVNVDAH.mjs → chunk-M6GDBVQ7.mjs} +1 -1
  24. package/dist/{chunk-4SMQRUUE.mjs → chunk-MZP6H7QY.mjs} +1 -1
  25. package/dist/{chunk-KCALUCYU.mjs → chunk-NIGOXRUP.mjs} +1 -1
  26. package/dist/{chunk-VB7NKWZH.mjs → chunk-P37EWZBC.mjs} +1 -1
  27. package/dist/{chunk-VD3XNFJH.mjs → chunk-PIOG7ZFF.mjs} +1 -1
  28. package/dist/{chunk-MHMVD23Y.cjs → chunk-R5FIHHGB.cjs} +33 -13
  29. package/dist/{chunk-4EUHK4OA.mjs → chunk-RRQFRNPQ.mjs} +1 -1
  30. package/dist/{chunk-AXDQEOYK.mjs → chunk-S3E6XBOU.mjs} +1 -1
  31. package/dist/{chunk-RUZEMWDI.mjs → chunk-SLNQNVQM.mjs} +1 -1
  32. package/dist/{chunk-75GLSRZE.mjs → chunk-TJPUAUWL.mjs} +4 -4
  33. package/dist/{chunk-53GW7NSV.mjs → chunk-UFZZESXL.mjs} +1 -1
  34. package/dist/{chunk-4JGKTRLH.mjs → chunk-X45XTEMI.mjs} +1 -1
  35. package/dist/{chunk-DUSAQQTU.mjs → chunk-YIXIC3TR.mjs} +1 -1
  36. package/dist/{chunk-YSKKMXDL.mjs → chunk-ZDD2RZGB.mjs} +1 -1
  37. package/dist/{chunk-H6TNNXJK.mjs → chunk-ZJ2OKIJN.mjs} +33 -13
  38. package/dist/pptx/automation/index.cjs +35 -14
  39. package/dist/pptx/automation/index.d.ts +2 -2
  40. package/dist/pptx/automation/index.mjs +5 -5
  41. package/dist/pptx/automation/schemas/chart-formatting-schemas.cjs +145 -96
  42. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts +1 -1
  43. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts.map +1 -1
  44. package/dist/pptx/automation/schemas/chart-formatting-schemas.mjs +2 -2
  45. package/dist/pptx/automation/schemas/chart-schemas.cjs +145 -96
  46. package/dist/pptx/automation/schemas/chart-schemas.d.ts +1 -1
  47. package/dist/pptx/automation/schemas/chart-schemas.d.ts.map +1 -1
  48. package/dist/pptx/automation/schemas/chart-schemas.mjs +2 -2
  49. package/dist/pptx/automation/schemas/chart-user-shape-schemas.cjs +145 -96
  50. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts +1 -1
  51. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts.map +1 -1
  52. package/dist/pptx/automation/schemas/chart-user-shape-schemas.mjs +2 -2
  53. package/dist/pptx/automation/schemas/element-schemas.cjs +145 -96
  54. package/dist/pptx/automation/schemas/element-schemas.d.ts +1 -1
  55. package/dist/pptx/automation/schemas/element-schemas.d.ts.map +1 -1
  56. package/dist/pptx/automation/schemas/element-schemas.mjs +2 -2
  57. package/dist/pptx/automation/schemas/export-schemas.cjs +145 -96
  58. package/dist/pptx/automation/schemas/export-schemas.d.ts +1 -1
  59. package/dist/pptx/automation/schemas/export-schemas.d.ts.map +1 -1
  60. package/dist/pptx/automation/schemas/export-schemas.mjs +2 -2
  61. package/dist/pptx/automation/schemas/geometry-schemas.cjs +145 -96
  62. package/dist/pptx/automation/schemas/geometry-schemas.d.ts +1 -1
  63. package/dist/pptx/automation/schemas/geometry-schemas.d.ts.map +1 -1
  64. package/dist/pptx/automation/schemas/geometry-schemas.mjs +2 -2
  65. package/dist/pptx/automation/schemas/hyperlink-schemas.cjs +145 -96
  66. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts +1 -1
  67. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts.map +1 -1
  68. package/dist/pptx/automation/schemas/hyperlink-schemas.mjs +2 -2
  69. package/dist/pptx/automation/schemas/index.cjs +145 -96
  70. package/dist/pptx/automation/schemas/index.mjs +21 -21
  71. package/dist/pptx/automation/schemas/json-schemas.cjs +145 -96
  72. package/dist/pptx/automation/schemas/json-schemas.d.ts +1 -1
  73. package/dist/pptx/automation/schemas/json-schemas.d.ts.map +1 -1
  74. package/dist/pptx/automation/schemas/json-schemas.mjs +2 -2
  75. package/dist/pptx/automation/schemas/layout-schemas.cjs +145 -96
  76. package/dist/pptx/automation/schemas/layout-schemas.d.ts +1 -1
  77. package/dist/pptx/automation/schemas/layout-schemas.d.ts.map +1 -1
  78. package/dist/pptx/automation/schemas/layout-schemas.mjs +2 -2
  79. package/dist/pptx/automation/schemas/lock-schemas.cjs +145 -96
  80. package/dist/pptx/automation/schemas/lock-schemas.d.ts +1 -1
  81. package/dist/pptx/automation/schemas/lock-schemas.d.ts.map +1 -1
  82. package/dist/pptx/automation/schemas/lock-schemas.mjs +2 -2
  83. package/dist/pptx/automation/schemas/metadata-schemas.cjs +145 -96
  84. package/dist/pptx/automation/schemas/metadata-schemas.d.ts +1 -1
  85. package/dist/pptx/automation/schemas/metadata-schemas.d.ts.map +1 -1
  86. package/dist/pptx/automation/schemas/metadata-schemas.mjs +2 -2
  87. package/dist/pptx/automation/schemas/ole-schemas.cjs +145 -96
  88. package/dist/pptx/automation/schemas/ole-schemas.d.ts +1 -1
  89. package/dist/pptx/automation/schemas/ole-schemas.d.ts.map +1 -1
  90. package/dist/pptx/automation/schemas/ole-schemas.mjs +2 -2
  91. package/dist/pptx/automation/schemas/presentation-schemas.cjs +145 -96
  92. package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -1
  93. package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
  94. package/dist/pptx/automation/schemas/presentation-schemas.mjs +2 -2
  95. package/dist/pptx/automation/schemas/section-schemas.cjs +145 -96
  96. package/dist/pptx/automation/schemas/section-schemas.d.ts +1 -1
  97. package/dist/pptx/automation/schemas/section-schemas.d.ts.map +1 -1
  98. package/dist/pptx/automation/schemas/section-schemas.mjs +2 -2
  99. package/dist/pptx/automation/schemas/slide-schemas.cjs +145 -96
  100. package/dist/pptx/automation/schemas/slide-schemas.d.ts +1 -1
  101. package/dist/pptx/automation/schemas/slide-schemas.d.ts.map +1 -1
  102. package/dist/pptx/automation/schemas/slide-schemas.mjs +2 -2
  103. package/dist/pptx/automation/schemas/smartart-schemas.cjs +145 -96
  104. package/dist/pptx/automation/schemas/smartart-schemas.d.ts +1 -1
  105. package/dist/pptx/automation/schemas/smartart-schemas.d.ts.map +1 -1
  106. package/dist/pptx/automation/schemas/smartart-schemas.mjs +2 -2
  107. package/dist/pptx/automation/schemas/table-style-schemas.cjs +145 -96
  108. package/dist/pptx/automation/schemas/table-style-schemas.d.ts +1 -1
  109. package/dist/pptx/automation/schemas/table-style-schemas.d.ts.map +1 -1
  110. package/dist/pptx/automation/schemas/table-style-schemas.mjs +2 -2
  111. package/dist/pptx/automation/schemas/template-schemas.cjs +145 -96
  112. package/dist/pptx/automation/schemas/template-schemas.d.ts +1 -1
  113. package/dist/pptx/automation/schemas/template-schemas.d.ts.map +1 -1
  114. package/dist/pptx/automation/schemas/template-schemas.mjs +2 -2
  115. package/dist/pptx/automation/schemas/theme-schemas.cjs +145 -96
  116. package/dist/pptx/automation/schemas/theme-schemas.d.ts +1 -1
  117. package/dist/pptx/automation/schemas/theme-schemas.d.ts.map +1 -1
  118. package/dist/pptx/automation/schemas/theme-schemas.mjs +2 -2
  119. package/dist/pptx/automation/schemas/validation-schemas.cjs +145 -96
  120. package/dist/pptx/automation/schemas/validation-schemas.d.ts +1 -1
  121. package/dist/pptx/automation/schemas/validation-schemas.d.ts.map +1 -1
  122. package/dist/pptx/automation/schemas/validation-schemas.mjs +2 -2
  123. package/dist/pptx/chunks/{index-CiyTR6mm.d.ts → index-B9x557hr.d.ts} +3 -2
  124. package/dist/pptx/chunks/{index-CiyTR6mm.d.ts.map → index-B9x557hr.d.ts.map} +1 -1
  125. package/dist/pptx/chunks/{index-BWHNCVNC.d.ts → index-Bqm-jFG-.d.ts} +3 -4
  126. package/dist/pptx/chunks/{index-BWHNCVNC.d.ts.map → index-Bqm-jFG-.d.ts.map} +1 -1
  127. package/dist/pptx/chunks/schemas-CWr181Wx.d.ts +2186 -0
  128. package/dist/pptx/chunks/schemas-CWr181Wx.d.ts.map +1 -0
  129. package/dist/pptx/cli/index.cjs +35 -14
  130. package/dist/pptx/cli/index.mjs +4 -4
  131. package/dist/pptx/converter/index.d.ts +1 -1
  132. package/dist/pptx/converter/index.mjs +2 -2
  133. package/dist/pptx/editor/loader/table-style-image-paths.d.ts +1 -0
  134. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts +1 -0
  135. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts +1 -0
  136. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts.map +1 -1
  137. package/dist/pptx/editor/render/find-replace.d.ts +1 -1
  138. package/dist/pptx/editor/render/slide-operations.cjs +1 -1
  139. package/dist/pptx/editor/render/slide-operations.mjs +1 -1
  140. package/dist/pptx/index.cjs +30 -6
  141. package/dist/pptx/index.d.ts +2 -2
  142. package/dist/pptx/index.mjs +5 -5
  143. package/dist/pptx/ui/index.d.ts +1 -0
  144. package/package.json +9 -9
  145. package/dist/pptx/chunks/external-DQ3B4V-o.d.ts +0 -4275
  146. package/dist/pptx/chunks/external-DQ3B4V-o.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- export { PptxHandler } from './chunk-3XFPCZKB.mjs';
2
- import './chunk-RUZEMWDI.mjs';
1
+ export { PptxHandler } from './chunk-4FTUAD2B.mjs';
2
+ import './chunk-SLNQNVQM.mjs';
3
3
  import './chunk-M4XLF4R7.mjs';
4
4
  import './chunk-3GXV5MPC.mjs';
5
5
  import './chunk-54S5A5PZ.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkMHMVD23Y_cjs = require('./chunk-MHMVD23Y.cjs');
3
+ var chunkR5FIHHGB_cjs = require('./chunk-R5FIHHGB.cjs');
4
4
  require('./chunk-NYTR4UZ5.cjs');
5
5
  require('./chunk-XZPZHXV4.cjs');
6
6
  require('./chunk-5W2QL4SB.cjs');
@@ -9,5 +9,5 @@ require('./chunk-5W2QL4SB.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "PptxHandler", {
11
11
  enumerable: true,
12
- get: function () { return chunkMHMVD23Y_cjs.PptxHandler; }
12
+ get: function () { return chunkR5FIHHGB_cjs.PptxHandler; }
13
13
  });
@@ -1,4 +1,4 @@
1
- export { PptxHandler } from './chunk-H6TNNXJK.mjs';
1
+ export { PptxHandler } from './chunk-ZJ2OKIJN.mjs';
2
2
  import './chunk-XTSHZGSM.mjs';
3
3
  import './chunk-GXHKNSZX.mjs';
4
4
  import './chunk-CA7KCNL3.mjs';
@@ -1,4 +1,4 @@
1
- export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-H6TNNXJK.mjs';
1
+ export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-ZJ2OKIJN.mjs';
2
2
  import './chunk-XTSHZGSM.mjs';
3
3
  import './chunk-GXHKNSZX.mjs';
4
4
  import './chunk-CA7KCNL3.mjs';
@@ -1,5 +1,5 @@
1
- export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-3XFPCZKB.mjs';
2
- import './chunk-RUZEMWDI.mjs';
1
+ export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-4FTUAD2B.mjs';
2
+ import './chunk-SLNQNVQM.mjs';
3
3
  import './chunk-M4XLF4R7.mjs';
4
4
  import './chunk-3GXV5MPC.mjs';
5
5
  import './chunk-54S5A5PZ.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkMHMVD23Y_cjs = require('./chunk-MHMVD23Y.cjs');
3
+ var chunkR5FIHHGB_cjs = require('./chunk-R5FIHHGB.cjs');
4
4
  require('./chunk-NYTR4UZ5.cjs');
5
5
  require('./chunk-XZPZHXV4.cjs');
6
6
  require('./chunk-5W2QL4SB.cjs');
@@ -9,13 +9,13 @@ require('./chunk-5W2QL4SB.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "PresentationBuilder", {
11
11
  enumerable: true,
12
- get: function () { return chunkMHMVD23Y_cjs.PresentationBuilder; }
12
+ get: function () { return chunkR5FIHHGB_cjs.PresentationBuilder; }
13
13
  });
14
14
  Object.defineProperty(exports, "STANDARD_LAYOUTS", {
15
15
  enumerable: true,
16
- get: function () { return chunkMHMVD23Y_cjs.STANDARD_LAYOUTS; }
16
+ get: function () { return chunkR5FIHHGB_cjs.STANDARD_LAYOUTS; }
17
17
  });
18
18
  Object.defineProperty(exports, "buildBlankPresentationArchive", {
19
19
  enumerable: true,
20
- get: function () { return chunkMHMVD23Y_cjs.buildBlankPresentationArchive; }
20
+ get: function () { return chunkR5FIHHGB_cjs.buildBlankPresentationArchive; }
21
21
  });
@@ -22,7 +22,8 @@ function createFileOperations(rootDir = process.cwd()) {
22
22
  for (const host of hosts.filter(Boolean).sort((a, b) => b.length - a.length))
23
23
  message = message.split(host + path.sep).join("").split(host).join("<root>");
24
24
  const safe = new Error(message, { cause: void 0 });
25
- safe.code = error.code;
25
+ const code = error.code;
26
+ if (code !== void 0) safe.code = code;
26
27
  throw safe;
27
28
  }
28
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../automation/node.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,UAAU,CAAC;CAClB;AAED,2EAA2E;AAC3E,wBAAgB,oBAAoB,CAAC,OAAO,SAAgB;YAkH5C,CAAC,QACR,MAAM,cACA,SAAS,MAAM,EAAE,WACpB,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;iBAKxB,MAAM,cAAc,SAAS,MAAM,EAAE,UAAU,MAAM,OAAO,CAAC,UAAU,CAAC;;;;SAOhF,CAAC,SAAS,cAAc,QAC5B,MAAM,cACA,SAAS,MAAM,EAAE,QACvB,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,eAC1B,MAAM;;;;IAYpB,6EAA6E;mBACxD,MAAM,cAAc,SAAS,MAAM,EAAE;IAG1D,2FAA2F;oBACrE,MAAM,cAAc,SAAS,MAAM,EAAE,SAAS,UAAU;IAG9E,iEAAiE;cACjD,CAAC,QAAQ,MAAM,cAAc,SAAS,MAAM,EAAE,UAAU,MAAM,OAAO,CAAC,CAAC,CAAC;IAGxF,4EAA4E;qBAlE5C,MAAM;IAoEtC,8DAA8D;yBACnC,MAAM,cAAc,SAAS,MAAM,EAAE;EASjE"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../automation/node.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,UAAU,CAAC;CAClB;AAED,2EAA2E;AAC3E,wBAAgB,oBAAoB,CAAC,OAAO,SAAgB;YAmH5C,CAAC,QACR,MAAM,cACA,SAAS,MAAM,EAAE,WACpB,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;iBAKxB,MAAM,cAAc,SAAS,MAAM,EAAE,UAAU,MAAM,OAAO,CAAC,UAAU,CAAC;;;;SAOhF,CAAC,SAAS,cAAc,QAC5B,MAAM,cACA,SAAS,MAAM,EAAE,QACvB,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,eAC1B,MAAM;;;;IAYpB,6EAA6E;mBACxD,MAAM,cAAc,SAAS,MAAM,EAAE;IAG1D,2FAA2F;oBACrE,MAAM,cAAc,SAAS,MAAM,EAAE,SAAS,UAAU;IAG9E,iEAAiE;cACjD,CAAC,QAAQ,MAAM,cAAc,SAAS,MAAM,EAAE,UAAU,MAAM,OAAO,CAAC,CAAC,CAAC;IAGxF,4EAA4E;qBAlE5C,MAAM;IAoEtC,8DAA8D;yBACnC,MAAM,cAAc,SAAS,MAAM,EAAE;EASjE"}
@@ -20,7 +20,8 @@ function createFileOperations(rootDir = process.cwd()) {
20
20
  for (const host of hosts.filter(Boolean).sort((a, b) => b.length - a.length))
21
21
  message = message.split(host + sep).join("").split(host).join("<root>");
22
22
  const safe = new Error(message, { cause: void 0 });
23
- safe.code = error.code;
23
+ const code = error.code;
24
+ if (code !== void 0) safe.code = code;
24
25
  throw safe;
25
26
  }
26
27
  }
@@ -1,4 +1,4 @@
1
- import { external_exports } from './chunk-PLWRGPRH.mjs';
1
+ import { external_exports } from './chunk-4YDPRQRH.mjs';
2
2
 
3
3
  // pptx/automation/schemas/chart-user-shape-schemas.ts
4
4
  var PointSchema = external_exports.object({ x: external_exports.number(), y: external_exports.number() });
@@ -1,4 +1,4 @@
1
- import { NS, SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseXml, elements, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, applyChartManualLayout, chartTrendlineType, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, XML_PROLOG, DGM_XMLNS, xmlEscape, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, preservesSpreadsheetXmlWhitespace, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, first, children, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, normalizeStShapeType, applyCustomShows, applySections, reorderObjectKeysByLocalName, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, deserializePptxFromJson, applyImportedPptxData, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, escAttr, escText, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, OOXML_PERCENT_UNITS, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, emu, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, gradFill, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, extractGuidFromPartName, deobfuscateFont, detectFontFormat, parseKinsoku, parseLineStyle, parseChartUpDownBars, parseDataTable, parseChart3DSurfaces, parseChartAxes, parseBubbleChartOptions, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, parseSeriesDataPoints, parseMarker, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, relAttr, buildXml, EMU_PER_POINT, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtPresLayoutVars, readChartManualLayoutValues, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices, CHART_ERROR_VALUE_TYPES, CHART_ERROR_BAR_TYPES, CHART_ERROR_BAR_DIRECTIONS } from './chunk-RUZEMWDI.mjs';
1
+ import { NS, SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseXml, elements, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, applyChartManualLayout, chartTrendlineType, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, XML_PROLOG, DGM_XMLNS, xmlEscape, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, preservesSpreadsheetXmlWhitespace, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, first, children, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, normalizeStShapeType, applyCustomShows, applySections, reorderObjectKeysByLocalName, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, deserializePptxFromJson, applyImportedPptxData, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, escAttr, escText, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, OOXML_PERCENT_UNITS, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, emu, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, gradFill, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, extractGuidFromPartName, deobfuscateFont, detectFontFormat, parseKinsoku, parseLineStyle, parseChartUpDownBars, parseDataTable, parseChart3DSurfaces, parseChartAxes, parseBubbleChartOptions, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, parseSeriesDataPoints, parseMarker, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, relAttr, buildXml, EMU_PER_POINT, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtPresLayoutVars, readChartManualLayoutValues, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices, CHART_ERROR_VALUE_TYPES, CHART_ERROR_BAR_TYPES, CHART_ERROR_BAR_DIRECTIONS } from './chunk-SLNQNVQM.mjs';
2
2
  import { openPptxZip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, openNestedZip, DEFAULT_MAX_UNCOMPRESSED_BYTES, guardZip, ZipBombError, MAX_ZIP_ENTRY_COUNT } from './chunk-M4XLF4R7.mjs';
3
3
  import { resolveSmartArtLayoutCategory } from './chunk-3GXV5MPC.mjs';
4
4
  import { cloneXmlObject, applySmartArtLayoutDefinition, cloneSlide, parseSmartArtLayoutDefinition } from './chunk-54S5A5PZ.mjs';
@@ -72043,8 +72043,11 @@ var PptxHandlerRuntime54 = class _PptxHandlerRuntime extends PptxHandlerRuntime5
72043
72043
  );
72044
72044
  } else if (!keepSourceAuthors) {
72045
72045
  this.zip.remove("ppt/commentAuthors.xml");
72046
- await this.stripPresentationCommentAuthorsRelationship();
72047
72046
  }
72047
+ await this.updatePresentationCommentAuthorsRelationship(
72048
+ hasCommentAuthors,
72049
+ slideRelationshipType.replace(/\/slide$/, "/commentAuthors")
72050
+ );
72048
72051
  const contentTypesXmlAfterComments = await this.zip.file("[Content_Types].xml")?.async("string");
72049
72052
  if (contentTypesXmlAfterComments) {
72050
72053
  const contentTypesData = this.parser.parse(contentTypesXmlAfterComments);
@@ -72230,10 +72233,9 @@ var PptxHandlerRuntime54 = class _PptxHandlerRuntime extends PptxHandlerRuntime5
72230
72233
  }
72231
72234
  }
72232
72235
  /**
72233
- * Remove any Relationship in presentation.xml.rels whose Type matches either
72234
- * the Transitional or Strict commentAuthors relationship URI.
72236
+ * Keep the authors part linked, or remove its relationship with the part.
72235
72237
  */
72236
- async stripPresentationCommentAuthorsRelationship() {
72238
+ async updatePresentationCommentAuthorsRelationship(hasAuthors, relationshipType) {
72237
72239
  const relsPath2 = "ppt/_rels/presentation.xml.rels";
72238
72240
  const relsXml = await this.zip.file(relsPath2)?.async("string");
72239
72241
  if (!relsXml) {
@@ -72249,6 +72251,19 @@ var PptxHandlerRuntime54 = class _PptxHandlerRuntime extends PptxHandlerRuntime5
72249
72251
  const type = String(relationship?.["@_Type"] ?? "");
72250
72252
  return type !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors" && type !== "http://purl.oclc.org/ooxml/officeDocument/relationships/commentAuthors";
72251
72253
  });
72254
+ if (hasAuthors) {
72255
+ if (filtered.length === relationships2.length) {
72256
+ const usedIds = new Set(relationships2.map((rel) => String(rel["@_Id"] ?? "")));
72257
+ relationships2.push({
72258
+ "@_Id": nextRelationshipId(usedIds),
72259
+ "@_Type": relationshipType,
72260
+ "@_Target": "commentAuthors.xml"
72261
+ });
72262
+ root["Relationship"] = relationships2;
72263
+ this.zip.file(relsPath2, this.builder.build(relsData));
72264
+ }
72265
+ return;
72266
+ }
72252
72267
  if (filtered.length === relationships2.length) {
72253
72268
  return;
72254
72269
  }