ooxml-core 1.50.2 → 1.51.0
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.
- package/README.md +11 -0
- package/dist/{PptxHandler-PVQW47CY.mjs → PptxHandler-6GRVJRHP.mjs} +2 -2
- package/dist/PptxHandler-E6QYPF7X.mjs +8 -0
- package/dist/PptxHandler-UNQVCIGM.cjs +17 -0
- package/dist/PresentationBuilder-DVDJSV5R.mjs +8 -0
- package/dist/PresentationBuilder-F5UWRF6H.cjs +25 -0
- package/dist/{PresentationBuilder-ZOOVSBPR.mjs → PresentationBuilder-T6YKWPF7.mjs} +2 -2
- package/dist/automation/index.cjs +5806 -4494
- package/dist/automation/index.mjs +5806 -4494
- package/dist/chunk-25IJEN7R.cjs +36 -0
- package/dist/chunk-25JN3ZQM.mjs +58 -0
- package/dist/{chunk-7XYVFUB3.cjs → chunk-2IO523MM.cjs} +1 -0
- package/dist/{chunk-53KMIHYN.mjs → chunk-4LUZHBTT.mjs} +83 -31
- package/dist/chunk-554UZLPS.mjs +237 -0
- package/dist/{chunk-VLKUMQGT.mjs → chunk-63RAF3TS.mjs} +1 -1
- package/dist/{chunk-7UM5IFPR.mjs → chunk-6IUYKP77.mjs} +1 -1
- package/dist/{chunk-VK2G4BGX.mjs → chunk-BIMV5FVL.mjs} +481 -193
- package/dist/{chunk-CODMW5KF.cjs → chunk-CVUMILG3.cjs} +1 -0
- package/dist/{chunk-NBMXEVHL.mjs → chunk-FX6WL42B.mjs} +1 -0
- package/dist/chunk-GI4Y6BBX.mjs +21 -0
- package/dist/{chunk-MX2GFMZS.mjs → chunk-GZL4ERW3.mjs} +1 -1
- package/dist/chunk-HWL2AGLD.cjs +98 -0
- package/dist/chunk-HZAB3YDO.cjs +234 -0
- package/dist/chunk-IDATIFCG.mjs +226 -0
- package/dist/chunk-LO55N7VL.cjs +247 -0
- package/dist/{chunk-FFLU4LUQ.cjs → chunk-LUBPW5NP.cjs} +1629 -1609
- package/dist/chunk-MUNEIE2J.cjs +62 -0
- package/dist/{chunk-ZCKEKP7N.mjs → chunk-RYUADJV6.mjs} +4 -4
- package/dist/chunk-TOBK5FC4.mjs +88 -0
- package/dist/chunk-UV4LMGVZ.mjs +31 -0
- package/dist/{chunk-O3YGBYGZ.mjs → chunk-VRVHM6TJ.mjs} +1 -0
- package/dist/chunk-W7LVJC32.cjs +25 -0
- package/dist/chunk-WAZ7T2BL.cjs +169 -0
- package/dist/{chunk-3OKY56UM.mjs → chunk-YX33WEKS.mjs} +411 -391
- package/dist/docx/auto-number-fields.d.ts +22 -0
- package/dist/docx/auto-number-fields.d.ts.map +1 -0
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/character-styles.d.ts.map +1 -1
- package/dist/docx/clipboard/css.d.ts +21 -0
- package/dist/docx/clipboard/css.d.ts.map +1 -0
- package/dist/docx/clipboard/html-tokens.d.ts +38 -0
- package/dist/docx/clipboard/html-tokens.d.ts.map +1 -0
- package/dist/docx/clipboard/index.d.ts +6 -0
- package/dist/docx/clipboard/index.d.ts.map +1 -0
- package/dist/docx/clipboard/word-fields.d.ts +13 -0
- package/dist/docx/clipboard/word-fields.d.ts.map +1 -0
- package/dist/docx/clipboard/word-fragment.d.ts +14 -0
- package/dist/docx/clipboard/word-fragment.d.ts.map +1 -0
- package/dist/docx/clipboard/word-html.d.ts +22 -0
- package/dist/docx/clipboard/word-html.d.ts.map +1 -0
- package/dist/docx/clipboard/word-list-scan.d.ts +25 -0
- package/dist/docx/clipboard/word-list-scan.d.ts.map +1 -0
- package/dist/docx/clipboard/word-lists.d.ts +13 -0
- package/dist/docx/clipboard/word-lists.d.ts.map +1 -0
- package/dist/docx/clipboard/word-runs.d.ts +18 -0
- package/dist/docx/clipboard/word-runs.d.ts.map +1 -0
- package/dist/docx/clipboard/word-styles.d.ts +35 -0
- package/dist/docx/clipboard/word-styles.d.ts.map +1 -0
- package/dist/docx/compare/build.d.ts +48 -0
- package/dist/docx/compare/build.d.ts.map +1 -0
- package/dist/docx/compare/compare.d.ts +18 -0
- package/dist/docx/compare/compare.d.ts.map +1 -0
- package/dist/docx/compare/context.d.ts +42 -0
- package/dist/docx/compare/context.d.ts.map +1 -0
- package/dist/docx/compare/diff.d.ts +20 -0
- package/dist/docx/compare/diff.d.ts.map +1 -0
- package/dist/docx/compare/index.d.ts +4 -0
- package/dist/docx/compare/index.d.ts.map +1 -0
- package/dist/docx/compare/slide.d.ts +9 -0
- package/dist/docx/compare/slide.d.ts.map +1 -0
- package/dist/docx/compare/spans.d.ts +13 -0
- package/dist/docx/compare/spans.d.ts.map +1 -0
- package/dist/docx/compare/story.d.ts +7 -0
- package/dist/docx/compare/story.d.ts.map +1 -0
- package/dist/docx/compare/table.d.ts +23 -0
- package/dist/docx/compare/table.d.ts.map +1 -0
- package/dist/docx/compare/tokens.d.ts +50 -0
- package/dist/docx/compare/tokens.d.ts.map +1 -0
- package/dist/docx/compare/types.d.ts +51 -0
- package/dist/docx/compare/types.d.ts.map +1 -0
- package/dist/docx/compatibility.d.ts +46 -0
- package/dist/docx/compatibility.d.ts.map +1 -0
- package/dist/docx/computed-fields.d.ts +39 -0
- package/dist/docx/computed-fields.d.ts.map +1 -0
- package/dist/docx/doc-property-field.d.ts +17 -0
- package/dist/docx/doc-property-field.d.ts.map +1 -0
- package/dist/docx/document-parts.d.ts +2 -0
- package/dist/docx/document-parts.d.ts.map +1 -1
- package/dist/docx/drawing-wrap.d.ts +21 -0
- package/dist/docx/drawing-wrap.d.ts.map +1 -0
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +3965 -2313
- package/dist/docx/embedded.mjs +3965 -2313
- package/dist/docx/field-format.d.ts +45 -0
- package/dist/docx/field-format.d.ts.map +1 -0
- package/dist/docx/field-result-spans.d.ts +62 -0
- package/dist/docx/field-result-spans.d.ts.map +1 -0
- package/dist/docx/field-runs.d.ts.map +1 -1
- package/dist/docx/field-stories.d.ts +9 -0
- package/dist/docx/field-stories.d.ts.map +1 -0
- package/dist/docx/find-stories.d.ts +27 -0
- package/dist/docx/find-stories.d.ts.map +1 -0
- package/dist/docx/highlight.d.ts +19 -0
- package/dist/docx/highlight.d.ts.map +1 -1
- package/dist/docx/hyperlink.d.ts +7 -0
- package/dist/docx/hyperlink.d.ts.map +1 -1
- package/dist/docx/index.cjs +7359 -3476
- package/dist/docx/index.d.ts +13 -1
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +7327 -3476
- package/dist/docx/inline-model.d.ts +21 -0
- package/dist/docx/inline-model.d.ts.map +1 -1
- package/dist/docx/inline-slots.d.ts.map +1 -1
- package/dist/docx/inspect-document.d.ts +21 -0
- package/dist/docx/inspect-document.d.ts.map +1 -0
- package/dist/docx/kinsoku-settings.d.ts +9 -0
- package/dist/docx/kinsoku-settings.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table-floating.d.ts +11 -0
- package/dist/docx/layout/adapt-table-floating.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table.d.ts.map +1 -1
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/computed-field-runs.d.ts +8 -0
- package/dist/docx/layout/computed-field-runs.d.ts.map +1 -0
- package/dist/docx/layout/floats.d.ts +3 -1
- package/dist/docx/layout/floats.d.ts.map +1 -1
- package/dist/docx/layout/flow-floating-table.d.ts +13 -0
- package/dist/docx/layout/flow-floating-table.d.ts.map +1 -0
- package/dist/docx/layout/flow-table.d.ts +1 -1
- package/dist/docx/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +2280 -941
- package/dist/docx/layout/index.mjs +2276 -942
- package/dist/docx/layout/input.d.ts +50 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/layout.d.ts.map +1 -1
- package/dist/docx/layout/page-cursor.d.ts.map +1 -1
- package/dist/docx/layout/page-flow.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-tokens.d.ts +6 -0
- package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +12 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/layout/section-flow.d.ts.map +1 -1
- package/dist/docx/layout/table-autofit-distribute.d.ts +18 -0
- package/dist/docx/layout/table-autofit-distribute.d.ts.map +1 -0
- package/dist/docx/layout/table-autofit-measure.d.ts +15 -0
- package/dist/docx/layout/table-autofit-measure.d.ts.map +1 -0
- package/dist/docx/layout/table-autofit.d.ts +10 -0
- package/dist/docx/layout/table-autofit.d.ts.map +1 -0
- package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
- package/dist/docx/layout/text-breaks.d.ts +38 -13
- package/dist/docx/layout/text-breaks.d.ts.map +1 -1
- package/dist/docx/layout/wrap.d.ts +1 -1
- package/dist/docx/layout/wrap.d.ts.map +1 -1
- package/dist/docx/list-number-fields.d.ts +25 -0
- package/dist/docx/list-number-fields.d.ts.map +1 -0
- package/dist/docx/load/index.cjs +4355 -2703
- package/dist/docx/load/index.mjs +4355 -2703
- package/dist/docx/model-paragraph.d.ts +12 -1
- package/dist/docx/model-paragraph.d.ts.map +1 -1
- package/dist/docx/model.d.ts +26 -1
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/note-convert.d.ts +45 -0
- package/dist/docx/note-convert.d.ts.map +1 -0
- package/dist/docx/numbering-counters.d.ts +17 -0
- package/dist/docx/numbering-counters.d.ts.map +1 -0
- package/dist/docx/numbering-format.d.ts +11 -2
- package/dist/docx/numbering-format.d.ts.map +1 -1
- package/dist/docx/outline-numbering.d.ts +6 -0
- package/dist/docx/outline-numbering.d.ts.map +1 -0
- package/dist/docx/package-information-save.d.ts +9 -0
- package/dist/docx/package-information-save.d.ts.map +1 -0
- package/dist/docx/package-information.d.ts +43 -0
- package/dist/docx/package-information.d.ts.map +1 -0
- package/dist/docx/package-properties.d.ts +5 -0
- package/dist/docx/package-properties.d.ts.map +1 -0
- package/dist/docx/paragraph-styles.d.ts +2 -0
- package/dist/docx/paragraph-styles.d.ts.map +1 -1
- package/dist/docx/parse-revisions.d.ts +2 -0
- package/dist/docx/parse-revisions.d.ts.map +1 -1
- package/dist/docx/parse-table-floating.d.ts +5 -0
- package/dist/docx/parse-table-floating.d.ts.map +1 -0
- package/dist/docx/parse-table.d.ts.map +1 -1
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/part-relationships.d.ts.map +1 -1
- package/dist/docx/personal-information.d.ts +18 -0
- package/dist/docx/personal-information.d.ts.map +1 -0
- package/dist/docx/picture-crop-edit.d.ts +18 -0
- package/dist/docx/picture-crop-edit.d.ts.map +1 -0
- package/dist/docx/picture-watermark.d.ts +29 -0
- package/dist/docx/picture-watermark.d.ts.map +1 -0
- package/dist/docx/relationship-allocator.d.ts.map +1 -1
- package/dist/docx/remove-document-information.d.ts +8 -0
- package/dist/docx/remove-document-information.d.ts.map +1 -0
- package/dist/docx/revision-commands.d.ts +6 -1
- package/dist/docx/revision-commands.d.ts.map +1 -1
- package/dist/docx/revision-ids.d.ts.map +1 -1
- package/dist/docx/run-language.d.ts +9 -0
- package/dist/docx/run-language.d.ts.map +1 -0
- package/dist/docx/run-properties-snapshot.d.ts +9 -0
- package/dist/docx/run-properties-snapshot.d.ts.map +1 -0
- package/dist/docx/run-style-model.d.ts +4 -0
- package/dist/docx/run-style-model.d.ts.map +1 -1
- package/dist/docx/save-modified.d.ts +2 -1
- package/dist/docx/save-modified.d.ts.map +1 -1
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/style-ref-fields.d.ts +1 -8
- package/dist/docx/style-ref-fields.d.ts.map +1 -1
- package/dist/docx/symbol-field.d.ts +21 -0
- package/dist/docx/symbol-field.d.ts.map +1 -0
- package/dist/docx/table-cell-write.d.ts.map +1 -1
- package/dist/docx/table-defaults.d.ts +2 -0
- package/dist/docx/table-defaults.d.ts.map +1 -1
- package/dist/docx/table-margins.d.ts +18 -0
- package/dist/docx/table-margins.d.ts.map +1 -0
- package/dist/docx/table-model.d.ts +23 -0
- package/dist/docx/table-model.d.ts.map +1 -1
- package/dist/docx/table-structure-check.d.ts.map +1 -1
- package/dist/docx/table-styles.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +787 -435
- package/dist/docx/ui/index.d.ts +1 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +784 -436
- package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
- package/dist/docx/ui/paragraph-attributes.d.ts +6 -0
- package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-legacy-labels.d.ts +1 -1
- package/dist/docx/ui/ribbon-legacy-labels.d.ts.map +1 -1
- package/dist/docx/ui/run-adapter.d.ts.map +1 -1
- package/dist/docx/ui/schema-marks.d.ts +2 -19
- package/dist/docx/ui/schema-marks.d.ts.map +1 -1
- package/dist/docx/ui/track-run-formatting.d.ts.map +1 -1
- package/dist/docx/ui/yjs-document-attributes.d.ts +5 -0
- package/dist/docx/ui/yjs-document-attributes.d.ts.map +1 -1
- package/dist/docx/write-drawing-wrap.d.ts +22 -0
- package/dist/docx/write-drawing-wrap.d.ts.map +1 -0
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-revisions.d.ts +3 -1
- package/dist/docx/write-revisions.d.ts.map +1 -1
- package/dist/docx/write-shape.d.ts.map +1 -1
- package/dist/docx/write-table-properties.d.ts.map +1 -1
- package/dist/docx/write.d.ts.map +1 -1
- package/dist/drawingml/html-text-paste.d.ts +28 -0
- package/dist/drawingml/html-text-paste.d.ts.map +1 -0
- package/dist/drawingml/html-text-style.d.ts +18 -0
- package/dist/drawingml/html-text-style.d.ts.map +1 -0
- package/dist/drawingml/index.cjs +762 -0
- package/dist/drawingml/index.d.ts +1 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +760 -1
- package/dist/index.cjs +1147 -251
- package/dist/index.mjs +1147 -251
- package/dist/pptx/automation/index.cjs +561 -180
- package/dist/pptx/automation/index.d.ts +4 -4
- package/dist/pptx/automation/index.mjs +6 -5
- package/dist/pptx/chunks/{index-BCy58n13.d.ts → index-8ZfPndYR.d.ts} +2 -2
- package/dist/pptx/chunks/{index-BCy58n13.d.ts.map → index-8ZfPndYR.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-OwiX5IVw.d.ts → index-DVhD9Kd5.d.ts} +4 -4
- package/dist/pptx/chunks/{index-OwiX5IVw.d.ts.map → index-DVhD9Kd5.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-oQHWAO7M.d.ts → index-DsUnUj-V.d.ts} +5 -5
- package/dist/pptx/chunks/{index-oQHWAO7M.d.ts.map → index-DsUnUj-V.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-AZN38e6S.d.ts → index-xB7MDLI7.d.ts} +4 -4
- package/dist/pptx/chunks/{index-AZN38e6S.d.ts.map → index-xB7MDLI7.d.ts.map} +1 -1
- package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts → presentation-BvnVkFPJ.d.ts} +26 -2
- package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts.map → presentation-BvnVkFPJ.d.ts.map} +1 -1
- package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts → text-operations-D7TCPhlv.d.ts} +2 -2
- package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts.map → text-operations-D7TCPhlv.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +504 -124
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +16 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +3 -2
- package/dist/pptx/editor/render/font-family-update.d.ts +2 -2
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +2 -2
- package/dist/pptx/editor/render/segments-text-edit.cjs +159 -0
- package/dist/pptx/editor/render/segments-text-edit.d.ts +26 -0
- package/dist/pptx/editor/render/segments-text-edit.d.ts.map +1 -0
- package/dist/pptx/editor/render/segments-text-edit.mjs +156 -0
- package/dist/pptx/editor/render/slide-operations.cjs +12 -9
- package/dist/pptx/editor/render/slide-operations.mjs +6 -3
- package/dist/pptx/editor/render/table-cell-edit.cjs +5 -5
- package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-cell-edit.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-merge.cjs +3 -3
- package/dist/pptx/editor/render/table-cell-merge.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-rich-text.cjs +41 -0
- package/dist/pptx/editor/render/table-cell-rich-text.d.ts +50 -0
- package/dist/pptx/editor/render/table-cell-rich-text.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cell-rich-text.mjs +8 -0
- package/dist/pptx/editor/render/table-cell-source.cjs +23 -0
- package/dist/pptx/editor/render/table-cell-source.d.ts +31 -0
- package/dist/pptx/editor/render/table-cell-source.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cell-source.mjs +6 -0
- package/dist/pptx/editor/render/table-cells-text-style.cjs +116 -0
- package/dist/pptx/editor/render/table-cells-text-style.d.ts +37 -0
- package/dist/pptx/editor/render/table-cells-text-style.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cells-text-style.mjs +113 -0
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +40 -94
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +3 -88
- package/dist/pptx/editor/render/table-grid-fill.cjs +30 -0
- package/dist/pptx/editor/render/table-grid-fill.d.ts +34 -0
- package/dist/pptx/editor/render/table-grid-fill.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-grid-fill.mjs +28 -0
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts +2 -2
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/table-merge.cjs +5 -5
- package/dist/pptx/editor/render/table-merge.mjs +1 -1
- package/dist/pptx/editor/render/text-content-style.d.ts +2 -2
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
- package/dist/pptx/editor/render/text-style-scope.d.ts +2 -2
- package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -2
- package/dist/pptx/index.cjs +519 -201
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/pptx/smartart-layouts/index.d.ts +2 -2
- package/dist/teams/index.cjs +35 -25
- package/dist/teams/index.mjs +35 -25
- package/dist/text/complex-breaks.d.ts +24 -0
- package/dist/text/complex-breaks.d.ts.map +1 -0
- package/dist/text/east-asian.d.ts +32 -0
- package/dist/text/east-asian.d.ts.map +1 -0
- package/dist/text/html-tokens.d.ts +45 -0
- package/dist/text/html-tokens.d.ts.map +1 -0
- package/dist/text/index.cjs +477 -62
- package/dist/text/index.d.ts +5 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +456 -63
- package/dist/text/kinsoku.d.ts +55 -0
- package/dist/text/kinsoku.d.ts.map +1 -0
- package/dist/text/truetype/embedding.d.ts +42 -0
- package/dist/text/truetype/embedding.d.ts.map +1 -0
- package/dist/text/windows-1252.d.ts +10 -0
- package/dist/text/windows-1252.d.ts.map +1 -0
- package/dist/xlsx/collab/index.cjs +10 -6
- package/dist/xlsx/collab/index.mjs +10 -6
- package/dist/xlsx/edit/clipboard-html-parse.d.ts +1 -0
- package/dist/xlsx/edit/clipboard-html-parse.d.ts.map +1 -1
- package/dist/xlsx/formula/functions/text-convert.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +96 -51
- package/dist/xlsx/index.mjs +96 -51
- package/dist/xlsx/load/index.cjs +10 -6
- package/dist/xlsx/load/index.mjs +10 -6
- package/dist/xlsx/ui/index.cjs +97 -52
- package/dist/xlsx/ui/index.mjs +97 -52
- package/package.json +1 -1
- package/dist/PptxHandler-72NTA5ZY.cjs +0 -14
- package/dist/PptxHandler-O4IJ3TKZ.mjs +0 -5
- package/dist/PresentationBuilder-ORM22QGC.mjs +0 -5
- package/dist/PresentationBuilder-T2ETYT3L.cjs +0 -22
- package/dist/chunk-X4RL5AZ7.cjs +0 -120
- package/dist/{chunk-PRGXRAAU.mjs → chunk-4Y76EAKK.mjs} +131 -131
- package/dist/{chunk-EN3KSEW5.cjs → chunk-MMULWQOM.cjs} +131 -131
|
@@ -3,137 +3,6 @@ import JSZip from 'jszip';
|
|
|
3
3
|
import { DOMParser, XMLSerializer } from '@xmldom/xmldom';
|
|
4
4
|
import { XMLBuilder, XMLParser } from 'fast-xml-parser';
|
|
5
5
|
|
|
6
|
-
// pptx/core/utils/clone-utils.ts
|
|
7
|
-
var SHARED_RAW_XML_KEYS = /* @__PURE__ */ new Set([
|
|
8
|
-
"rawXml",
|
|
9
|
-
"rawTiming",
|
|
10
|
-
"inkPartRawXml",
|
|
11
|
-
"rawMediaReferenceXml"
|
|
12
|
-
]);
|
|
13
|
-
function isPlainRecord(value) {
|
|
14
|
-
if (typeof value !== "object" || value === null) {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
const prototype = Object.getPrototypeOf(value);
|
|
18
|
-
return prototype === Object.prototype || prototype === null;
|
|
19
|
-
}
|
|
20
|
-
function cloneValue(value, seen) {
|
|
21
|
-
if (Array.isArray(value)) {
|
|
22
|
-
const cached2 = seen.get(value);
|
|
23
|
-
if (cached2 !== void 0) {
|
|
24
|
-
return cached2;
|
|
25
|
-
}
|
|
26
|
-
const copy2 = new Array(value.length);
|
|
27
|
-
seen.set(value, copy2);
|
|
28
|
-
for (let index = 0; index < value.length; index++) {
|
|
29
|
-
copy2[index] = cloneValue(value[index], seen);
|
|
30
|
-
}
|
|
31
|
-
return copy2;
|
|
32
|
-
}
|
|
33
|
-
if (!isPlainRecord(value)) {
|
|
34
|
-
return value;
|
|
35
|
-
}
|
|
36
|
-
const cached = seen.get(value);
|
|
37
|
-
if (cached !== void 0) {
|
|
38
|
-
return cached;
|
|
39
|
-
}
|
|
40
|
-
const copy = {};
|
|
41
|
-
seen.set(value, copy);
|
|
42
|
-
for (const key of Object.keys(value)) {
|
|
43
|
-
const child19 = value[key];
|
|
44
|
-
copy[key] = SHARED_RAW_XML_KEYS.has(key) ? child19 : cloneValue(child19, seen);
|
|
45
|
-
}
|
|
46
|
-
return copy;
|
|
47
|
-
}
|
|
48
|
-
function deepCloneData(value) {
|
|
49
|
-
return cloneValue(value, /* @__PURE__ */ new WeakMap());
|
|
50
|
-
}
|
|
51
|
-
function cloneElement(element2) {
|
|
52
|
-
return deepCloneData(element2);
|
|
53
|
-
}
|
|
54
|
-
function cloneSlide(slide) {
|
|
55
|
-
return deepCloneData(slide);
|
|
56
|
-
}
|
|
57
|
-
function cloneXmlObject(value) {
|
|
58
|
-
if (!value) {
|
|
59
|
-
return void 0;
|
|
60
|
-
}
|
|
61
|
-
try {
|
|
62
|
-
if (typeof structuredClone === "function") {
|
|
63
|
-
return structuredClone(value);
|
|
64
|
-
}
|
|
65
|
-
return JSON.parse(JSON.stringify(value));
|
|
66
|
-
} catch (error) {
|
|
67
|
-
console.warn("Failed to clone XML object, returning undefined.", value, error);
|
|
68
|
-
return void 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// pptx/core/utils/custom-show-link.ts
|
|
73
|
-
function customShowActionId(action) {
|
|
74
|
-
if (!action || !/^ppaction:\/\/customshow(?:\?|$)/i.test(action)) return void 0;
|
|
75
|
-
const match = action.match(/[?&]id=([^&]*)/i);
|
|
76
|
-
if (!match) return void 0;
|
|
77
|
-
try {
|
|
78
|
-
return decodeURIComponent(match[1]);
|
|
79
|
-
} catch {
|
|
80
|
-
return void 0;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function rewriteCustomShowAction(action, rewrite) {
|
|
84
|
-
const id = customShowActionId(action);
|
|
85
|
-
if (id === void 0) return { changed: false, action };
|
|
86
|
-
const next = rewrite(id);
|
|
87
|
-
if (next === id) return { changed: false, action };
|
|
88
|
-
return {
|
|
89
|
-
changed: true,
|
|
90
|
-
action: next === null ? void 0 : action.replace(/([?&]id=)[^&]*/i, "$1" + encodeURIComponent(next))
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// pptx/core/utils/custom-show-text-links.ts
|
|
95
|
-
var CLICK_KEYS = [
|
|
96
|
-
"hyperlink",
|
|
97
|
-
"hyperlinkRId",
|
|
98
|
-
"hyperlinkTooltip",
|
|
99
|
-
"hyperlinkAction",
|
|
100
|
-
"hyperlinkTargetSlideIndex",
|
|
101
|
-
"hyperlinkSoundXml",
|
|
102
|
-
"hyperlinkInvalidUrl",
|
|
103
|
-
"hyperlinkTargetFrame",
|
|
104
|
-
"hyperlinkHistory",
|
|
105
|
-
"hyperlinkHighlightClick",
|
|
106
|
-
"hyperlinkEndSound"
|
|
107
|
-
];
|
|
108
|
-
function mapCustomShowTextLinks(style, rewrite) {
|
|
109
|
-
const url = rewriteCustomShowAction(style.hyperlink, rewrite);
|
|
110
|
-
const action = rewriteCustomShowAction(style.hyperlinkAction, rewrite);
|
|
111
|
-
const hover = rewriteCustomShowAction(style.hyperlinkMouseOver, rewrite);
|
|
112
|
-
const clickChanged = url.changed || action.changed;
|
|
113
|
-
if (!clickChanged && !hover.changed) return { style, click: false, hover: false };
|
|
114
|
-
const next = { ...style };
|
|
115
|
-
if (clickChanged) {
|
|
116
|
-
if (url.changed && url.action === void 0 || action.changed && action.action === void 0) {
|
|
117
|
-
for (const key of CLICK_KEYS) delete next[key];
|
|
118
|
-
} else {
|
|
119
|
-
if (url.changed && url.action !== void 0) next.hyperlink = url.action;
|
|
120
|
-
if (action.changed && action.action !== void 0) {
|
|
121
|
-
next.hyperlinkAction = action.action;
|
|
122
|
-
if (!style.hyperlink) next.hyperlink = action.action;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
if (hover.changed) {
|
|
127
|
-
if (hover.action === void 0) {
|
|
128
|
-
delete next.hyperlinkMouseOver;
|
|
129
|
-
delete next.hyperlinkMouseOverSoundXml;
|
|
130
|
-
} else {
|
|
131
|
-
next.hyperlinkMouseOver = hover.action;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return { style: next, click: clickChanged, hover: hover.changed };
|
|
135
|
-
}
|
|
136
|
-
|
|
137
6
|
// pptx/core/utils/xml-access.ts
|
|
138
7
|
var ATTR_PREFIX = "@_";
|
|
139
8
|
var TEXT_KEY = "#text";
|
|
@@ -282,6 +151,137 @@ function isXmlNode(value) {
|
|
|
282
151
|
return isXmlObject(value);
|
|
283
152
|
}
|
|
284
153
|
|
|
154
|
+
// pptx/core/utils/clone-utils.ts
|
|
155
|
+
var SHARED_RAW_XML_KEYS = /* @__PURE__ */ new Set([
|
|
156
|
+
"rawXml",
|
|
157
|
+
"rawTiming",
|
|
158
|
+
"inkPartRawXml",
|
|
159
|
+
"rawMediaReferenceXml"
|
|
160
|
+
]);
|
|
161
|
+
function isPlainRecord(value) {
|
|
162
|
+
if (typeof value !== "object" || value === null) {
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
const prototype = Object.getPrototypeOf(value);
|
|
166
|
+
return prototype === Object.prototype || prototype === null;
|
|
167
|
+
}
|
|
168
|
+
function cloneValue(value, seen) {
|
|
169
|
+
if (Array.isArray(value)) {
|
|
170
|
+
const cached2 = seen.get(value);
|
|
171
|
+
if (cached2 !== void 0) {
|
|
172
|
+
return cached2;
|
|
173
|
+
}
|
|
174
|
+
const copy2 = new Array(value.length);
|
|
175
|
+
seen.set(value, copy2);
|
|
176
|
+
for (let index = 0; index < value.length; index++) {
|
|
177
|
+
copy2[index] = cloneValue(value[index], seen);
|
|
178
|
+
}
|
|
179
|
+
return copy2;
|
|
180
|
+
}
|
|
181
|
+
if (!isPlainRecord(value)) {
|
|
182
|
+
return value;
|
|
183
|
+
}
|
|
184
|
+
const cached = seen.get(value);
|
|
185
|
+
if (cached !== void 0) {
|
|
186
|
+
return cached;
|
|
187
|
+
}
|
|
188
|
+
const copy = {};
|
|
189
|
+
seen.set(value, copy);
|
|
190
|
+
for (const key of Object.keys(value)) {
|
|
191
|
+
const child19 = value[key];
|
|
192
|
+
copy[key] = SHARED_RAW_XML_KEYS.has(key) ? child19 : cloneValue(child19, seen);
|
|
193
|
+
}
|
|
194
|
+
return copy;
|
|
195
|
+
}
|
|
196
|
+
function deepCloneData(value) {
|
|
197
|
+
return cloneValue(value, /* @__PURE__ */ new WeakMap());
|
|
198
|
+
}
|
|
199
|
+
function cloneElement(element2) {
|
|
200
|
+
return deepCloneData(element2);
|
|
201
|
+
}
|
|
202
|
+
function cloneSlide(slide) {
|
|
203
|
+
return deepCloneData(slide);
|
|
204
|
+
}
|
|
205
|
+
function cloneXmlObject(value) {
|
|
206
|
+
if (!value) {
|
|
207
|
+
return void 0;
|
|
208
|
+
}
|
|
209
|
+
try {
|
|
210
|
+
if (typeof structuredClone === "function") {
|
|
211
|
+
return structuredClone(value);
|
|
212
|
+
}
|
|
213
|
+
return JSON.parse(JSON.stringify(value));
|
|
214
|
+
} catch (error) {
|
|
215
|
+
console.warn("Failed to clone XML object, returning undefined.", value, error);
|
|
216
|
+
return void 0;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// pptx/core/utils/custom-show-link.ts
|
|
221
|
+
function customShowActionId(action) {
|
|
222
|
+
if (!action || !/^ppaction:\/\/customshow(?:\?|$)/i.test(action)) return void 0;
|
|
223
|
+
const match = action.match(/[?&]id=([^&]*)/i);
|
|
224
|
+
if (!match) return void 0;
|
|
225
|
+
try {
|
|
226
|
+
return decodeURIComponent(match[1]);
|
|
227
|
+
} catch {
|
|
228
|
+
return void 0;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
function rewriteCustomShowAction(action, rewrite) {
|
|
232
|
+
const id = customShowActionId(action);
|
|
233
|
+
if (id === void 0) return { changed: false, action };
|
|
234
|
+
const next = rewrite(id);
|
|
235
|
+
if (next === id) return { changed: false, action };
|
|
236
|
+
return {
|
|
237
|
+
changed: true,
|
|
238
|
+
action: next === null ? void 0 : action.replace(/([?&]id=)[^&]*/i, "$1" + encodeURIComponent(next))
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// pptx/core/utils/custom-show-text-links.ts
|
|
243
|
+
var CLICK_KEYS = [
|
|
244
|
+
"hyperlink",
|
|
245
|
+
"hyperlinkRId",
|
|
246
|
+
"hyperlinkTooltip",
|
|
247
|
+
"hyperlinkAction",
|
|
248
|
+
"hyperlinkTargetSlideIndex",
|
|
249
|
+
"hyperlinkSoundXml",
|
|
250
|
+
"hyperlinkInvalidUrl",
|
|
251
|
+
"hyperlinkTargetFrame",
|
|
252
|
+
"hyperlinkHistory",
|
|
253
|
+
"hyperlinkHighlightClick",
|
|
254
|
+
"hyperlinkEndSound"
|
|
255
|
+
];
|
|
256
|
+
function mapCustomShowTextLinks(style, rewrite) {
|
|
257
|
+
const url = rewriteCustomShowAction(style.hyperlink, rewrite);
|
|
258
|
+
const action = rewriteCustomShowAction(style.hyperlinkAction, rewrite);
|
|
259
|
+
const hover = rewriteCustomShowAction(style.hyperlinkMouseOver, rewrite);
|
|
260
|
+
const clickChanged = url.changed || action.changed;
|
|
261
|
+
if (!clickChanged && !hover.changed) return { style, click: false, hover: false };
|
|
262
|
+
const next = { ...style };
|
|
263
|
+
if (clickChanged) {
|
|
264
|
+
if (url.changed && url.action === void 0 || action.changed && action.action === void 0) {
|
|
265
|
+
for (const key of CLICK_KEYS) delete next[key];
|
|
266
|
+
} else {
|
|
267
|
+
if (url.changed && url.action !== void 0) next.hyperlink = url.action;
|
|
268
|
+
if (action.changed && action.action !== void 0) {
|
|
269
|
+
next.hyperlinkAction = action.action;
|
|
270
|
+
if (!style.hyperlink) next.hyperlink = action.action;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
if (hover.changed) {
|
|
275
|
+
if (hover.action === void 0) {
|
|
276
|
+
delete next.hyperlinkMouseOver;
|
|
277
|
+
delete next.hyperlinkMouseOverSoundXml;
|
|
278
|
+
} else {
|
|
279
|
+
next.hyperlinkMouseOver = hover.action;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return { style: next, click: clickChanged, hover: hover.changed };
|
|
283
|
+
}
|
|
284
|
+
|
|
285
285
|
// pptx/core/utils/custom-show-table-links.ts
|
|
286
286
|
var LINKS = /* @__PURE__ */ new Set(["a:hlinkClick", "a:hlinkMouseOver", "a:hlinkHover"]);
|
|
287
287
|
function mapCustomShowTableLinks(rawXml, rewrite) {
|
|
@@ -9,137 +9,6 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
9
9
|
|
|
10
10
|
var JSZip__default = /*#__PURE__*/_interopDefault(JSZip);
|
|
11
11
|
|
|
12
|
-
// pptx/core/utils/clone-utils.ts
|
|
13
|
-
var SHARED_RAW_XML_KEYS = /* @__PURE__ */ new Set([
|
|
14
|
-
"rawXml",
|
|
15
|
-
"rawTiming",
|
|
16
|
-
"inkPartRawXml",
|
|
17
|
-
"rawMediaReferenceXml"
|
|
18
|
-
]);
|
|
19
|
-
function isPlainRecord(value) {
|
|
20
|
-
if (typeof value !== "object" || value === null) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
const prototype = Object.getPrototypeOf(value);
|
|
24
|
-
return prototype === Object.prototype || prototype === null;
|
|
25
|
-
}
|
|
26
|
-
function cloneValue(value, seen) {
|
|
27
|
-
if (Array.isArray(value)) {
|
|
28
|
-
const cached2 = seen.get(value);
|
|
29
|
-
if (cached2 !== void 0) {
|
|
30
|
-
return cached2;
|
|
31
|
-
}
|
|
32
|
-
const copy2 = new Array(value.length);
|
|
33
|
-
seen.set(value, copy2);
|
|
34
|
-
for (let index = 0; index < value.length; index++) {
|
|
35
|
-
copy2[index] = cloneValue(value[index], seen);
|
|
36
|
-
}
|
|
37
|
-
return copy2;
|
|
38
|
-
}
|
|
39
|
-
if (!isPlainRecord(value)) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
const cached = seen.get(value);
|
|
43
|
-
if (cached !== void 0) {
|
|
44
|
-
return cached;
|
|
45
|
-
}
|
|
46
|
-
const copy = {};
|
|
47
|
-
seen.set(value, copy);
|
|
48
|
-
for (const key of Object.keys(value)) {
|
|
49
|
-
const child19 = value[key];
|
|
50
|
-
copy[key] = SHARED_RAW_XML_KEYS.has(key) ? child19 : cloneValue(child19, seen);
|
|
51
|
-
}
|
|
52
|
-
return copy;
|
|
53
|
-
}
|
|
54
|
-
function deepCloneData(value) {
|
|
55
|
-
return cloneValue(value, /* @__PURE__ */ new WeakMap());
|
|
56
|
-
}
|
|
57
|
-
function cloneElement(element2) {
|
|
58
|
-
return deepCloneData(element2);
|
|
59
|
-
}
|
|
60
|
-
function cloneSlide(slide) {
|
|
61
|
-
return deepCloneData(slide);
|
|
62
|
-
}
|
|
63
|
-
function cloneXmlObject(value) {
|
|
64
|
-
if (!value) {
|
|
65
|
-
return void 0;
|
|
66
|
-
}
|
|
67
|
-
try {
|
|
68
|
-
if (typeof structuredClone === "function") {
|
|
69
|
-
return structuredClone(value);
|
|
70
|
-
}
|
|
71
|
-
return JSON.parse(JSON.stringify(value));
|
|
72
|
-
} catch (error) {
|
|
73
|
-
console.warn("Failed to clone XML object, returning undefined.", value, error);
|
|
74
|
-
return void 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// pptx/core/utils/custom-show-link.ts
|
|
79
|
-
function customShowActionId(action) {
|
|
80
|
-
if (!action || !/^ppaction:\/\/customshow(?:\?|$)/i.test(action)) return void 0;
|
|
81
|
-
const match = action.match(/[?&]id=([^&]*)/i);
|
|
82
|
-
if (!match) return void 0;
|
|
83
|
-
try {
|
|
84
|
-
return decodeURIComponent(match[1]);
|
|
85
|
-
} catch {
|
|
86
|
-
return void 0;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function rewriteCustomShowAction(action, rewrite) {
|
|
90
|
-
const id = customShowActionId(action);
|
|
91
|
-
if (id === void 0) return { changed: false, action };
|
|
92
|
-
const next = rewrite(id);
|
|
93
|
-
if (next === id) return { changed: false, action };
|
|
94
|
-
return {
|
|
95
|
-
changed: true,
|
|
96
|
-
action: next === null ? void 0 : action.replace(/([?&]id=)[^&]*/i, "$1" + encodeURIComponent(next))
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// pptx/core/utils/custom-show-text-links.ts
|
|
101
|
-
var CLICK_KEYS = [
|
|
102
|
-
"hyperlink",
|
|
103
|
-
"hyperlinkRId",
|
|
104
|
-
"hyperlinkTooltip",
|
|
105
|
-
"hyperlinkAction",
|
|
106
|
-
"hyperlinkTargetSlideIndex",
|
|
107
|
-
"hyperlinkSoundXml",
|
|
108
|
-
"hyperlinkInvalidUrl",
|
|
109
|
-
"hyperlinkTargetFrame",
|
|
110
|
-
"hyperlinkHistory",
|
|
111
|
-
"hyperlinkHighlightClick",
|
|
112
|
-
"hyperlinkEndSound"
|
|
113
|
-
];
|
|
114
|
-
function mapCustomShowTextLinks(style, rewrite) {
|
|
115
|
-
const url = rewriteCustomShowAction(style.hyperlink, rewrite);
|
|
116
|
-
const action = rewriteCustomShowAction(style.hyperlinkAction, rewrite);
|
|
117
|
-
const hover = rewriteCustomShowAction(style.hyperlinkMouseOver, rewrite);
|
|
118
|
-
const clickChanged = url.changed || action.changed;
|
|
119
|
-
if (!clickChanged && !hover.changed) return { style, click: false, hover: false };
|
|
120
|
-
const next = { ...style };
|
|
121
|
-
if (clickChanged) {
|
|
122
|
-
if (url.changed && url.action === void 0 || action.changed && action.action === void 0) {
|
|
123
|
-
for (const key of CLICK_KEYS) delete next[key];
|
|
124
|
-
} else {
|
|
125
|
-
if (url.changed && url.action !== void 0) next.hyperlink = url.action;
|
|
126
|
-
if (action.changed && action.action !== void 0) {
|
|
127
|
-
next.hyperlinkAction = action.action;
|
|
128
|
-
if (!style.hyperlink) next.hyperlink = action.action;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
if (hover.changed) {
|
|
133
|
-
if (hover.action === void 0) {
|
|
134
|
-
delete next.hyperlinkMouseOver;
|
|
135
|
-
delete next.hyperlinkMouseOverSoundXml;
|
|
136
|
-
} else {
|
|
137
|
-
next.hyperlinkMouseOver = hover.action;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return { style: next, click: clickChanged, hover: hover.changed };
|
|
141
|
-
}
|
|
142
|
-
|
|
143
12
|
// pptx/core/utils/xml-access.ts
|
|
144
13
|
var ATTR_PREFIX = "@_";
|
|
145
14
|
var TEXT_KEY = "#text";
|
|
@@ -288,6 +157,137 @@ function isXmlNode(value) {
|
|
|
288
157
|
return isXmlObject(value);
|
|
289
158
|
}
|
|
290
159
|
|
|
160
|
+
// pptx/core/utils/clone-utils.ts
|
|
161
|
+
var SHARED_RAW_XML_KEYS = /* @__PURE__ */ new Set([
|
|
162
|
+
"rawXml",
|
|
163
|
+
"rawTiming",
|
|
164
|
+
"inkPartRawXml",
|
|
165
|
+
"rawMediaReferenceXml"
|
|
166
|
+
]);
|
|
167
|
+
function isPlainRecord(value) {
|
|
168
|
+
if (typeof value !== "object" || value === null) {
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
const prototype = Object.getPrototypeOf(value);
|
|
172
|
+
return prototype === Object.prototype || prototype === null;
|
|
173
|
+
}
|
|
174
|
+
function cloneValue(value, seen) {
|
|
175
|
+
if (Array.isArray(value)) {
|
|
176
|
+
const cached2 = seen.get(value);
|
|
177
|
+
if (cached2 !== void 0) {
|
|
178
|
+
return cached2;
|
|
179
|
+
}
|
|
180
|
+
const copy2 = new Array(value.length);
|
|
181
|
+
seen.set(value, copy2);
|
|
182
|
+
for (let index = 0; index < value.length; index++) {
|
|
183
|
+
copy2[index] = cloneValue(value[index], seen);
|
|
184
|
+
}
|
|
185
|
+
return copy2;
|
|
186
|
+
}
|
|
187
|
+
if (!isPlainRecord(value)) {
|
|
188
|
+
return value;
|
|
189
|
+
}
|
|
190
|
+
const cached = seen.get(value);
|
|
191
|
+
if (cached !== void 0) {
|
|
192
|
+
return cached;
|
|
193
|
+
}
|
|
194
|
+
const copy = {};
|
|
195
|
+
seen.set(value, copy);
|
|
196
|
+
for (const key of Object.keys(value)) {
|
|
197
|
+
const child19 = value[key];
|
|
198
|
+
copy[key] = SHARED_RAW_XML_KEYS.has(key) ? child19 : cloneValue(child19, seen);
|
|
199
|
+
}
|
|
200
|
+
return copy;
|
|
201
|
+
}
|
|
202
|
+
function deepCloneData(value) {
|
|
203
|
+
return cloneValue(value, /* @__PURE__ */ new WeakMap());
|
|
204
|
+
}
|
|
205
|
+
function cloneElement(element2) {
|
|
206
|
+
return deepCloneData(element2);
|
|
207
|
+
}
|
|
208
|
+
function cloneSlide(slide) {
|
|
209
|
+
return deepCloneData(slide);
|
|
210
|
+
}
|
|
211
|
+
function cloneXmlObject(value) {
|
|
212
|
+
if (!value) {
|
|
213
|
+
return void 0;
|
|
214
|
+
}
|
|
215
|
+
try {
|
|
216
|
+
if (typeof structuredClone === "function") {
|
|
217
|
+
return structuredClone(value);
|
|
218
|
+
}
|
|
219
|
+
return JSON.parse(JSON.stringify(value));
|
|
220
|
+
} catch (error) {
|
|
221
|
+
console.warn("Failed to clone XML object, returning undefined.", value, error);
|
|
222
|
+
return void 0;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// pptx/core/utils/custom-show-link.ts
|
|
227
|
+
function customShowActionId(action) {
|
|
228
|
+
if (!action || !/^ppaction:\/\/customshow(?:\?|$)/i.test(action)) return void 0;
|
|
229
|
+
const match = action.match(/[?&]id=([^&]*)/i);
|
|
230
|
+
if (!match) return void 0;
|
|
231
|
+
try {
|
|
232
|
+
return decodeURIComponent(match[1]);
|
|
233
|
+
} catch {
|
|
234
|
+
return void 0;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
function rewriteCustomShowAction(action, rewrite) {
|
|
238
|
+
const id = customShowActionId(action);
|
|
239
|
+
if (id === void 0) return { changed: false, action };
|
|
240
|
+
const next = rewrite(id);
|
|
241
|
+
if (next === id) return { changed: false, action };
|
|
242
|
+
return {
|
|
243
|
+
changed: true,
|
|
244
|
+
action: next === null ? void 0 : action.replace(/([?&]id=)[^&]*/i, "$1" + encodeURIComponent(next))
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// pptx/core/utils/custom-show-text-links.ts
|
|
249
|
+
var CLICK_KEYS = [
|
|
250
|
+
"hyperlink",
|
|
251
|
+
"hyperlinkRId",
|
|
252
|
+
"hyperlinkTooltip",
|
|
253
|
+
"hyperlinkAction",
|
|
254
|
+
"hyperlinkTargetSlideIndex",
|
|
255
|
+
"hyperlinkSoundXml",
|
|
256
|
+
"hyperlinkInvalidUrl",
|
|
257
|
+
"hyperlinkTargetFrame",
|
|
258
|
+
"hyperlinkHistory",
|
|
259
|
+
"hyperlinkHighlightClick",
|
|
260
|
+
"hyperlinkEndSound"
|
|
261
|
+
];
|
|
262
|
+
function mapCustomShowTextLinks(style, rewrite) {
|
|
263
|
+
const url = rewriteCustomShowAction(style.hyperlink, rewrite);
|
|
264
|
+
const action = rewriteCustomShowAction(style.hyperlinkAction, rewrite);
|
|
265
|
+
const hover = rewriteCustomShowAction(style.hyperlinkMouseOver, rewrite);
|
|
266
|
+
const clickChanged = url.changed || action.changed;
|
|
267
|
+
if (!clickChanged && !hover.changed) return { style, click: false, hover: false };
|
|
268
|
+
const next = { ...style };
|
|
269
|
+
if (clickChanged) {
|
|
270
|
+
if (url.changed && url.action === void 0 || action.changed && action.action === void 0) {
|
|
271
|
+
for (const key of CLICK_KEYS) delete next[key];
|
|
272
|
+
} else {
|
|
273
|
+
if (url.changed && url.action !== void 0) next.hyperlink = url.action;
|
|
274
|
+
if (action.changed && action.action !== void 0) {
|
|
275
|
+
next.hyperlinkAction = action.action;
|
|
276
|
+
if (!style.hyperlink) next.hyperlink = action.action;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
if (hover.changed) {
|
|
281
|
+
if (hover.action === void 0) {
|
|
282
|
+
delete next.hyperlinkMouseOver;
|
|
283
|
+
delete next.hyperlinkMouseOverSoundXml;
|
|
284
|
+
} else {
|
|
285
|
+
next.hyperlinkMouseOver = hover.action;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return { style: next, click: clickChanged, hover: hover.changed };
|
|
289
|
+
}
|
|
290
|
+
|
|
291
291
|
// pptx/core/utils/custom-show-table-links.ts
|
|
292
292
|
var LINKS = /* @__PURE__ */ new Set(["a:hlinkClick", "a:hlinkMouseOver", "a:hlinkHover"]);
|
|
293
293
|
function mapCustomShowTableLinks(rawXml, rewrite) {
|