ooxml-core 1.47.0 → 1.48.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.
- package/dist/PptxHandler-6UQWMUVU.cjs +14 -0
- package/dist/{PptxHandler-NXHZ6ITL.mjs → PptxHandler-PLSH2BAS.mjs} +2 -2
- package/dist/PptxHandler-QLKZVYCG.mjs +5 -0
- package/dist/{PresentationBuilder-URSPID7L.mjs → PresentationBuilder-3QXOJNRO.mjs} +2 -2
- package/dist/{PresentationBuilder-IK6NIK6T.cjs → PresentationBuilder-CRBFFHNW.cjs} +6 -6
- package/dist/{PresentationBuilder-LHQ333UL.mjs → PresentationBuilder-DQ3XFU4R.mjs} +3 -3
- package/dist/{chunk-QHR726W3.mjs → chunk-32K7JG2Z.mjs} +1 -1
- package/dist/{chunk-APCA7N6Q.cjs → chunk-7RCBSNXT.cjs} +3 -3
- package/dist/{chunk-6MU4WKHS.mjs → chunk-CXIDPUT6.mjs} +1 -1
- package/dist/{chunk-553WFEHD.mjs → chunk-EKEE6BTU.mjs} +638 -50
- package/dist/{chunk-XVEJS7HN.mjs → chunk-IKFTITJ7.mjs} +4 -4
- package/dist/{chunk-7L6ZAA5Y.mjs → chunk-K5G6MV37.mjs} +2 -2
- package/dist/{chunk-4GPLQEEC.cjs → chunk-RRA262A6.cjs} +1926 -1326
- package/dist/{chunk-5HNRZOBX.mjs → chunk-WAYEYX4G.mjs} +1 -1
- package/dist/{chunk-Z734BYYR.mjs → chunk-WLKOLTBH.mjs} +653 -53
- package/dist/pptx/automation/index.cjs +45094 -44442
- package/dist/pptx/automation/index.d.ts +5 -12
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/chart-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/chart-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/element-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/element-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/export-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/export-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/geometry-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/geometry-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/index.d.ts +8 -8
- package/dist/pptx/automation/schemas/index.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/json-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/json-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/layout-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/layout-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/lock-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/lock-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/metadata-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/metadata-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/ole-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/ole-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/section-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/section-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/slide-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/slide-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/smartart-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/smartart-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/table-style-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/table-style-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/template-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/template-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/theme-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/theme-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/validation-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/validation-schemas.d.ts.map +1 -1
- package/dist/pptx/chunks/color-primitives-DHyz14D9.d.ts +151 -0
- package/dist/pptx/chunks/color-primitives-DHyz14D9.d.ts.map +1 -0
- package/dist/pptx/chunks/{index--HBUyILF.d.ts → index-7tA9HqRL.d.ts} +10060 -1223
- package/dist/pptx/chunks/index-7tA9HqRL.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-Dr3iIPt9.d.ts → index-CAzt1jbx.d.ts} +4 -5
- package/dist/pptx/chunks/index-CAzt1jbx.d.ts.map +1 -0
- package/dist/pptx/chunks/{schemas-LHsDbVOw.d.ts → index-CyAgQ2zG.d.ts} +6 -2
- package/dist/pptx/chunks/index-CyAgQ2zG.d.ts.map +1 -0
- package/dist/pptx/chunks/index-cJSPBkU1.d.ts +185 -0
- package/dist/pptx/chunks/index-cJSPBkU1.d.ts.map +1 -0
- package/dist/pptx/chunks/index-cr_sgz1w.d.ts +94 -0
- package/dist/pptx/chunks/index-cr_sgz1w.d.ts.map +1 -0
- package/dist/pptx/chunks/presentation-Be108jrz.d.ts +12521 -0
- package/dist/pptx/chunks/presentation-Be108jrz.d.ts.map +1 -0
- package/dist/pptx/chunks/{inspection-status-TKac7eqb.d.ts → signature-inspection-status-TKac7eqb.d.ts} +1 -1
- package/dist/pptx/chunks/signature-inspection-status-TKac7eqb.d.ts.map +1 -0
- package/dist/pptx/chunks/text-operations-a1cqBYk9.d.ts +111 -0
- package/dist/pptx/chunks/text-operations-a1cqBYk9.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +746 -94
- package/dist/pptx/cli/index.d.ts +17 -1
- package/dist/pptx/cli/index.d.ts.map +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/ai/table-merge.d.ts +16 -0
- package/dist/pptx/editor/ai/table-merge.d.ts.map +1 -1
- package/dist/pptx/editor/loader/element-patch-walker.d.ts +15 -0
- package/dist/pptx/editor/loader/element-patch-walker.d.ts.map +1 -1
- package/dist/pptx/editor/loader/lazy-image-resolution.d.ts +15 -0
- package/dist/pptx/editor/loader/lazy-image-resolution.d.ts.map +1 -1
- package/dist/pptx/editor/loader/load-content-helpers.d.ts +7 -0
- package/dist/pptx/editor/loader/load-content-helpers.d.ts.map +1 -1
- package/dist/pptx/editor/loader/table-style-image-paths.d.ts +20 -0
- package/dist/pptx/editor/loader/table-style-image-paths.d.ts.map +1 -1
- package/dist/pptx/editor/loader/text-fill-image-paths.d.ts +19 -0
- package/dist/pptx/editor/loader/text-fill-image-paths.d.ts.map +1 -1
- package/dist/pptx/editor/render/bullet-autonum.d.ts +14 -0
- package/dist/pptx/editor/render/bullet-list.d.ts +8 -0
- package/dist/pptx/editor/render/bullet-list.d.ts.map +1 -1
- package/dist/pptx/editor/render/bullet-toggle.d.ts +4 -0
- package/dist/pptx/editor/render/bullet-toggle.d.ts.map +1 -1
- package/dist/pptx/editor/render/chart-user-shape-edit.d.ts +12 -0
- package/dist/pptx/editor/render/chart-user-shape-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/clone.d.ts +20 -0
- package/dist/pptx/editor/render/clone.d.ts.map +1 -1
- package/dist/pptx/editor/render/collaboration-assets.d.ts +17 -0
- package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts +9 -0
- package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts.map +1 -1
- package/dist/pptx/editor/render/collaboration-reconcile.d.ts +21 -0
- package/dist/pptx/editor/render/collaboration-reconcile.d.ts.map +1 -1
- package/dist/pptx/editor/render/collaboration-sync.d.ts +32 -4
- package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
- package/dist/pptx/editor/render/collaboration-text-codec.d.ts +33 -2
- package/dist/pptx/editor/render/collaboration-text-codec.d.ts.map +1 -0
- package/dist/pptx/editor/render/collaboration-text-merge.d.ts +36 -2
- package/dist/pptx/editor/render/collaboration-text-merge.d.ts.map +1 -0
- package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts +2 -2
- package/dist/pptx/editor/render/collaboration-text-positions.d.ts +34 -2
- package/dist/pptx/editor/render/collaboration-text-positions.d.ts.map +1 -0
- package/dist/pptx/editor/render/collaboration-text-projection.d.ts +1 -1
- package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts +3 -3
- package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts +36 -2
- package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts.map +1 -0
- package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts +1 -1
- package/dist/pptx/editor/render/collaboration-text-session.d.ts +40 -2
- package/dist/pptx/editor/render/collaboration-text-session.d.ts.map +1 -0
- package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.d.ts +14 -0
- package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -1
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/deck-save-encryption.d.ts +24 -0
- package/dist/pptx/editor/render/deck-save-encryption.d.ts.map +1 -1
- package/dist/pptx/editor/render/element-locks.d.ts +25 -0
- package/dist/pptx/editor/render/element-locks.d.ts.map +1 -1
- package/dist/pptx/editor/render/element-operations.d.ts +11 -0
- package/dist/pptx/editor/render/element-operations.d.ts.map +1 -1
- package/dist/pptx/editor/render/element.d.ts +12 -0
- package/dist/pptx/editor/render/element.d.ts.map +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.d.ts +8 -2
- package/dist/pptx/editor/render/find-replace.d.ts.map +1 -1
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/font-family-update.d.ts +32 -1
- package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -1
- package/dist/pptx/editor/render/group-drill.d.ts +26 -0
- package/dist/pptx/editor/render/group-drill.d.ts.map +1 -1
- package/dist/pptx/editor/render/group-ops.d.ts +24 -0
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +21 -1
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -1
- package/dist/pptx/editor/render/remap-text.d.ts +5 -0
- package/dist/pptx/editor/render/remap-text.d.ts.map +1 -1
- package/dist/pptx/editor/render/section-operations.d.ts +14 -0
- package/dist/pptx/editor/render/section-operations.d.ts.map +1 -1
- package/dist/pptx/editor/render/slide-background-patch.d.ts +15 -0
- package/dist/pptx/editor/render/slide-background-patch.d.ts.map +1 -1
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.d.ts +12 -0
- package/dist/pptx/editor/render/slide-operations.d.ts.map +1 -1
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/editor/render/slide-search.d.ts +6 -0
- package/dist/pptx/editor/render/slide-search.d.ts.map +1 -1
- package/dist/pptx/editor/render/slide-size-rescale.d.ts +18 -0
- package/dist/pptx/editor/render/slide-size-rescale.d.ts.map +1 -1
- package/dist/pptx/editor/render/slide-transition-edits.d.ts +15 -0
- package/dist/pptx/editor/render/slide-transition-edits.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-cell-edit.d.ts +8 -0
- package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-cell-merge.d.ts +15 -0
- package/dist/pptx/editor/render/table-cell-merge.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-data-grid-ops.d.ts +26 -0
- package/dist/pptx/editor/render/table-data-grid-ops.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.d.ts +3 -1
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-merge.d.ts +16 -0
- package/dist/pptx/editor/render/table-merge.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts +13 -0
- package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-style-editor-edit.d.ts +13 -0
- package/dist/pptx/editor/render/table-style-editor-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-style-editor-parts.d.ts +10 -0
- package/dist/pptx/editor/render/table-style-editor-parts.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-style-map-edits.d.ts +20 -0
- package/dist/pptx/editor/render/table-style-map-edits.d.ts.map +1 -1
- package/dist/pptx/editor/render/text-content-style.d.ts +2 -1
- package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
- package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts +23 -0
- package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts.map +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +20 -2
- package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -1
- package/dist/pptx/editor/render/text-theme.d.ts +11 -0
- package/dist/pptx/editor/render/text-theme.d.ts.map +1 -1
- package/dist/pptx/editor/render/theme-editor-presets.d.ts +9 -0
- package/dist/pptx/editor/render/theme-editor-presets.d.ts.map +1 -1
- package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -1
- package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -1
- package/dist/pptx/index.cjs +34610 -33974
- package/dist/pptx/index.d.ts +24 -10
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +17 -1
- package/dist/pptx/node/index.d.ts.map +1 -1
- package/dist/pptx/signature-node/index.d.ts +8 -1
- package/dist/pptx/signature-node/index.d.ts.map +1 -1
- package/dist/pptx/smartart-layouts/index.d.ts +8 -1
- package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
- package/dist/pptx/ui/index.d.ts +2 -0
- package/dist/pptx/ui/index.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/PptxHandler-JX62VKU4.cjs +0 -14
- package/dist/PptxHandler-SUGLNSZI.mjs +0 -5
- package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts +0 -34
- package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts.map +0 -1
- package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts +0 -19
- package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts.map +0 -1
- package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts +0 -34
- package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts.map +0 -1
- package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts +0 -41
- package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts.map +0 -1
- package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts +0 -37
- package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts.map +0 -1
- package/dist/pptx/chunks/elements-B4Z6N-Gz.d.ts +0 -3993
- package/dist/pptx/chunks/elements-B4Z6N-Gz.d.ts.map +0 -1
- package/dist/pptx/chunks/index--HBUyILF.d.ts.map +0 -1
- package/dist/pptx/chunks/index-BDVzSboe.d.ts +0 -9746
- package/dist/pptx/chunks/index-BDVzSboe.d.ts.map +0 -1
- package/dist/pptx/chunks/index-Dr3iIPt9.d.ts.map +0 -1
- package/dist/pptx/chunks/inspection-status-TKac7eqb.d.ts.map +0 -1
- package/dist/pptx/chunks/schemas-LHsDbVOw.d.ts.map +0 -1
- package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts +0 -1817
- package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts.map +0 -1
- package/dist/pptx/chunks/table-BfgZfw5R.d.ts +0 -1359
- package/dist/pptx/chunks/table-BfgZfw5R.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-CVHXOSit.d.ts +0 -3363
- package/dist/pptx/chunks/text-operations-CVHXOSit.d.ts.map +0 -1
- package/dist/pptx/chunks/text-t_wJ2OwM.d.ts +0 -1452
- package/dist/pptx/chunks/text-t_wJ2OwM.d.ts.map +0 -1
- /package/dist/{chunk-WFN6ZU7N.cjs → chunk-HBQBS7PO.cjs} +0 -0
- /package/dist/{chunk-DEDK2J57.mjs → chunk-I5REMIZR.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NS, RELATIONSHIP_TYPES, 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, readText3DValues, readScene3DValues, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER,
|
|
1
|
+
import { NS, RELATIONSHIP_TYPES, 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, readText3DValues, readScene3DValues, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, ensureXmlChild, hasShapeProperties, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, ooxmlGradientAngleToCssDegrees, serializeTabStop, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, drawingFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, drawingLineXml, parseDrawingTextBody, parseXml, parseDrawingFill, parseDrawingLine, first, buildXml, setDrawingFillXml, fillElementOf, patchDrawingLine, elements, applyChartManualLayout, chartTrendlineType, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, drawingColorXml, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseDiagramDataModel, DEFAULT_GENERATED_DIAGRAM_SCHEME, previewDiagramLayout, parseDiagramColors, resolveDrawingColor, children, parseDrawingRichTextBody, writeGeneratedDiagramDrawing, descendants, GENERATED_DIAGRAM_CACHE_NS, generatedDrawingDigest, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, resolveThemeFillStyle, resolveThemeLineStyle, resolveThemeEffectStyle, relAttr, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, relationshipsPartFor, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, formatCellAddress, childrenNamed, childNamed, parseCellAddress, attr, parseDrawingEffects, drawingEffectsXml, readChartManualLayoutValues, worksheetData, buildEffectDagTreeFromXml, appendInSchemaOrder, RUN_PROPERTIES_ORDER, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, readPictureEffect, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, normalizeStShapeType, applyCustomShows, applySections, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, xmlAttrBool, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, CHART_ERROR_VALUE_TYPES, CHART_ERROR_BAR_TYPES, CHART_ERROR_BAR_DIRECTIONS, patchDrawingColorIn, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, parsePptxJson, pptxDataFromJsonDocument, applyImportedPptxData, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, escAttr, buildRelationshipsXml, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, parseDrawingLineDash, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, base64Encode, patchPictureEffects, cssDegreesToOoxmlGradientAngle, escText, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, OOXML_PERCENT_UNITS, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, emu, formatSchemeKey, gradFill, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, parseKinsoku, deobfuscateFont, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, extractGuidFromPartName, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, decodeBase64, parseSmartArtPresLayoutVars, parseDrawingColorIn, parseSmartArtConnection, connectionLabel, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, captureDiagramPictures, parseDiagramDrawing, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, collectTransitionText, parseSmartArtQuickStyleLabels, parseDiagramQuickStyle, parseDiagramLayoutSummary, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-K5G6MV37.mjs';
|
|
2
2
|
import { openPptxZip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, openZip, MAX_ZIP_ENTRY_COUNT, DEFAULT_MAX_UNCOMPRESSED_BYTES, guardZip, ZipBombError } from './chunk-EYCM7RVL.mjs';
|
|
3
3
|
import { resolveSmartArtLayoutCategory } from './chunk-2N7RZQLC.mjs';
|
|
4
4
|
import { cloneXmlObject, applySmartArtLayoutDefinition, cloneSlide, parseSmartArtLayoutDefinition } from './chunk-VDUNZTJC.mjs';
|
|
@@ -6592,41 +6592,41 @@ function parseBorderSide(side) {
|
|
|
6592
6592
|
}
|
|
6593
6593
|
const ln = typeof side["a:ln"] === "object" ? side["a:ln"] : {};
|
|
6594
6594
|
const border = {};
|
|
6595
|
-
let
|
|
6595
|
+
let has3 = false;
|
|
6596
6596
|
if (ln["a:noFill"] !== void 0) {
|
|
6597
6597
|
border.noFill = true;
|
|
6598
|
-
|
|
6598
|
+
has3 = true;
|
|
6599
6599
|
}
|
|
6600
6600
|
const widthEmu = parseInt(String(ln["@_w"] || "0"), 10);
|
|
6601
6601
|
if (widthEmu > 0) {
|
|
6602
6602
|
border.width = Math.max(1, Math.round(widthEmu / EMU_PER_PIXEL2));
|
|
6603
|
-
|
|
6603
|
+
has3 = true;
|
|
6604
6604
|
}
|
|
6605
6605
|
const prstDash = ln["a:prstDash"];
|
|
6606
6606
|
const dashVal = prstDash ? String(prstDash["@_val"] || "").trim() : "";
|
|
6607
6607
|
if (dashVal) {
|
|
6608
6608
|
border.dash = dashVal;
|
|
6609
|
-
|
|
6609
|
+
has3 = true;
|
|
6610
6610
|
}
|
|
6611
6611
|
const cmpd = String(ln["@_cmpd"] || "").trim();
|
|
6612
6612
|
if (cmpd && cmpd !== "sng") {
|
|
6613
6613
|
border.compound = cmpd;
|
|
6614
|
-
|
|
6614
|
+
has3 = true;
|
|
6615
6615
|
}
|
|
6616
6616
|
const solidFill2 = ln["a:solidFill"];
|
|
6617
6617
|
const fill3 = parseSolidFillStyle(solidFill2);
|
|
6618
6618
|
if (fill3) {
|
|
6619
6619
|
border.fill = fill3;
|
|
6620
|
-
|
|
6620
|
+
has3 = true;
|
|
6621
6621
|
} else {
|
|
6622
6622
|
const srgb = solidFill2?.["a:srgbClr"];
|
|
6623
6623
|
const hex3 = srgb ? String(srgb["@_val"] || "").trim() : "";
|
|
6624
6624
|
if (hex3) {
|
|
6625
6625
|
border.color = hex3.startsWith("#") ? hex3 : `#${hex3}`;
|
|
6626
|
-
|
|
6626
|
+
has3 = true;
|
|
6627
6627
|
}
|
|
6628
6628
|
}
|
|
6629
|
-
return
|
|
6629
|
+
return has3 ? border : void 0;
|
|
6630
6630
|
}
|
|
6631
6631
|
function parseTableStyleBorders(tcStyle) {
|
|
6632
6632
|
const tcBdr = tcStyle?.["a:tcBdr"];
|
|
@@ -6634,16 +6634,16 @@ function parseTableStyleBorders(tcStyle) {
|
|
|
6634
6634
|
return void 0;
|
|
6635
6635
|
}
|
|
6636
6636
|
const result = {};
|
|
6637
|
-
let
|
|
6637
|
+
let has3 = false;
|
|
6638
6638
|
for (const name of BORDER_SIDES) {
|
|
6639
6639
|
const node = tcBdr[`a:${name}`] ?? (name === "tr2bl" ? tcBdr["a:bl2tr"] : void 0);
|
|
6640
6640
|
const border = parseBorderSide(node);
|
|
6641
6641
|
if (border) {
|
|
6642
6642
|
result[name] = border;
|
|
6643
|
-
|
|
6643
|
+
has3 = true;
|
|
6644
6644
|
}
|
|
6645
6645
|
}
|
|
6646
|
-
return
|
|
6646
|
+
return has3 ? result : void 0;
|
|
6647
6647
|
}
|
|
6648
6648
|
function parseTableStyleSectionCell3D(tcStyle) {
|
|
6649
6649
|
const cell3DNode = tcStyle?.["a:cell3D"];
|
|
@@ -9450,6 +9450,8 @@ var PptxSaveState = class {
|
|
|
9450
9450
|
emuPerPx;
|
|
9451
9451
|
usedSlideNumbers = /* @__PURE__ */ new Set();
|
|
9452
9452
|
usedMediaPaths = /* @__PURE__ */ new Set();
|
|
9453
|
+
/** New pictures' media parts in this save, by content (see `mediaPathForContent`). */
|
|
9454
|
+
newMediaByContent = /* @__PURE__ */ new Map();
|
|
9453
9455
|
usedInkPaths = /* @__PURE__ */ new Set();
|
|
9454
9456
|
maxInkPartIndex = 0;
|
|
9455
9457
|
existingCommentPaths = /* @__PURE__ */ new Set();
|
|
@@ -9490,6 +9492,23 @@ var PptxSaveState = class {
|
|
|
9490
9492
|
this.usedMediaPaths.add(filePath);
|
|
9491
9493
|
return filePath;
|
|
9492
9494
|
}
|
|
9495
|
+
/**
|
|
9496
|
+
* The media part for a NEW picture's bytes: the part an identical picture
|
|
9497
|
+
* already got in this save, or a fresh one. Pictures loaded from the deck
|
|
9498
|
+
* keep their own parts and never come through here.
|
|
9499
|
+
*/
|
|
9500
|
+
mediaPathForContent(bytes, extension) {
|
|
9501
|
+
const key2 = `${extension.toLowerCase()}:${bytes.length}:${fnv1a(bytes)}`;
|
|
9502
|
+
const candidates = this.newMediaByContent.get(key2) ?? [];
|
|
9503
|
+
const same6 = candidates.find((candidate) => sameBytes(candidate.bytes, bytes));
|
|
9504
|
+
if (same6) {
|
|
9505
|
+
return { path: same6.path, reused: true };
|
|
9506
|
+
}
|
|
9507
|
+
const path3 = this.nextMediaPath(extension);
|
|
9508
|
+
candidates.push({ bytes, path: path3 });
|
|
9509
|
+
this.newMediaByContent.set(key2, candidates);
|
|
9510
|
+
return { path: path3, reused: false };
|
|
9511
|
+
}
|
|
9493
9512
|
getUsedMediaPaths() {
|
|
9494
9513
|
return this.usedMediaPaths;
|
|
9495
9514
|
}
|
|
@@ -9686,6 +9705,25 @@ var PptxSaveStateBuilder = class {
|
|
|
9686
9705
|
});
|
|
9687
9706
|
}
|
|
9688
9707
|
};
|
|
9708
|
+
function fnv1a(bytes) {
|
|
9709
|
+
let hash2 = 2166136261;
|
|
9710
|
+
for (const byte of bytes) {
|
|
9711
|
+
hash2 ^= byte;
|
|
9712
|
+
hash2 = Math.imul(hash2, 16777619) >>> 0;
|
|
9713
|
+
}
|
|
9714
|
+
return hash2;
|
|
9715
|
+
}
|
|
9716
|
+
function sameBytes(a, b) {
|
|
9717
|
+
if (a.length !== b.length) {
|
|
9718
|
+
return false;
|
|
9719
|
+
}
|
|
9720
|
+
for (let i = 0; i < a.length; i++) {
|
|
9721
|
+
if (a[i] !== b[i]) {
|
|
9722
|
+
return false;
|
|
9723
|
+
}
|
|
9724
|
+
}
|
|
9725
|
+
return true;
|
|
9726
|
+
}
|
|
9689
9727
|
|
|
9690
9728
|
// pptx/core/core/builders/PptxShapeIdValidator.ts
|
|
9691
9729
|
function collectCnvPrNodes(node, results, ensureArray12) {
|
|
@@ -56454,6 +56492,27 @@ function buildChartSpaceXml(chartData) {
|
|
|
56454
56492
|
return result;
|
|
56455
56493
|
}
|
|
56456
56494
|
|
|
56495
|
+
// pptx/core/core/runtime/picture-svg-blip.ts
|
|
56496
|
+
var SVG_BLIP_EXT_URI = "{96DAC541-7B7A-43D3-8B79-37D633B846F1}";
|
|
56497
|
+
var SVG_NS = "http://schemas.microsoft.com/office/drawing/2016/SVG/main";
|
|
56498
|
+
var TRANSPARENT_PNG_DATA_URL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVR42mNgAAIAAAUAAen63NgAAAAASUVORK5CYII=";
|
|
56499
|
+
function addSvgBlipExtension(picture, relationshipId) {
|
|
56500
|
+
const blipFill = picture["p:blipFill"];
|
|
56501
|
+
const blip = blipFill?.["a:blip"];
|
|
56502
|
+
if (!blip || typeof blip !== "object") {
|
|
56503
|
+
return;
|
|
56504
|
+
}
|
|
56505
|
+
const ext = {
|
|
56506
|
+
"@_uri": SVG_BLIP_EXT_URI,
|
|
56507
|
+
"asvg:svgBlip": { "@_xmlns:asvg": SVG_NS, "@_r:embed": relationshipId }
|
|
56508
|
+
};
|
|
56509
|
+
const extLst = blip["a:extLst"] ?? {};
|
|
56510
|
+
const existing = extLst["a:ext"];
|
|
56511
|
+
const list2 = existing === void 0 ? [] : Array.isArray(existing) ? existing : [existing];
|
|
56512
|
+
extLst["a:ext"] = list2.length === 0 ? ext : [...list2, ext];
|
|
56513
|
+
blip["a:extLst"] = extLst;
|
|
56514
|
+
}
|
|
56515
|
+
|
|
56457
56516
|
// pptx/core/core/runtime/paragraph-scoped-segment-state.ts
|
|
56458
56517
|
function paragraphStateOf(segment) {
|
|
56459
56518
|
const state = {};
|
|
@@ -63795,17 +63854,37 @@ var PptxHandlerRuntime2 = class _PptxHandlerRuntime extends PptxHandlerRuntime {
|
|
|
63795
63854
|
|
|
63796
63855
|
// pptx/core/core/runtime/PptxHandlerRuntimeElementActions.ts
|
|
63797
63856
|
var PptxHandlerRuntime3 = class extends PptxHandlerRuntime2 {
|
|
63857
|
+
/**
|
|
63858
|
+
* Report a slide jump whose index names no slide of the deck being saved.
|
|
63859
|
+
* It is not written: PowerPoint does not open a file with a slide jump that
|
|
63860
|
+
* has no slide relationship.
|
|
63861
|
+
*/
|
|
63862
|
+
reportMissingSlideJumpTarget(elementId, index) {
|
|
63863
|
+
this.compatibilityService?.reportWarning({
|
|
63864
|
+
code: "SAVE_SLIDE_JUMP_TARGET_MISSING",
|
|
63865
|
+
message: `A slide jump to slide index ${index} has no such slide in the saved deck; the link was not written.`,
|
|
63866
|
+
severity: "warning",
|
|
63867
|
+
scope: "element",
|
|
63868
|
+
...elementId ? { elementId } : {}
|
|
63869
|
+
});
|
|
63870
|
+
}
|
|
63798
63871
|
/**
|
|
63799
63872
|
* Write or remove a single `a:hlinkClick` / `a:hlinkHover` node on
|
|
63800
63873
|
* a `p:cNvPr` parent.
|
|
63801
63874
|
*/
|
|
63802
|
-
serializeSingleAction(cNvPr, nodeName, action, links) {
|
|
63875
|
+
serializeSingleAction(cNvPr, nodeName, action, links, elementId) {
|
|
63803
63876
|
if (!action) {
|
|
63804
63877
|
delete cNvPr[nodeName];
|
|
63805
63878
|
return;
|
|
63806
63879
|
}
|
|
63807
63880
|
const node = {};
|
|
63808
|
-
const
|
|
63881
|
+
const slideJumpIndex = /^ppaction:\/\/hlinksldjump\b/iu.test(action.action ?? "") && typeof action.targetSlideIndex === "number" ? action.targetSlideIndex : void 0;
|
|
63882
|
+
const url = action.url?.trim() || (slideJumpIndex !== void 0 ? links.slideTargetAt?.(slideJumpIndex) : void 0);
|
|
63883
|
+
if (!url && slideJumpIndex !== void 0 && links.slideTargetAt) {
|
|
63884
|
+
this.reportMissingSlideJumpTarget(elementId, slideJumpIndex);
|
|
63885
|
+
delete cNvPr[nodeName];
|
|
63886
|
+
return;
|
|
63887
|
+
}
|
|
63809
63888
|
let rId = action.rId;
|
|
63810
63889
|
if (rId && url && links.getSlideRelationshipMap().get(rId) !== url) {
|
|
63811
63890
|
rId = void 0;
|
|
@@ -63896,8 +63975,8 @@ var PptxHandlerRuntime3 = class extends PptxHandlerRuntime2 {
|
|
|
63896
63975
|
}
|
|
63897
63976
|
const actionClick = "actionClick" in el ? el.actionClick : void 0;
|
|
63898
63977
|
const actionHover = "actionHover" in el ? el.actionHover : void 0;
|
|
63899
|
-
this.serializeSingleAction(cNvPr, "a:hlinkClick", actionClick, links);
|
|
63900
|
-
this.serializeSingleAction(cNvPr, "a:hlinkHover", actionHover, links);
|
|
63978
|
+
this.serializeSingleAction(cNvPr, "a:hlinkClick", actionClick, links, el.id);
|
|
63979
|
+
this.serializeSingleAction(cNvPr, "a:hlinkHover", actionHover, links, el.id);
|
|
63901
63980
|
const isDecorative = "isDecorative" in el ? el.isDecorative : void 0;
|
|
63902
63981
|
serializeDecorativeExtension(cNvPr, isDecorative);
|
|
63903
63982
|
}
|
|
@@ -74750,6 +74829,53 @@ var PptxHandlerRuntime30 = class extends PptxHandlerRuntime29 {
|
|
|
74750
74829
|
}
|
|
74751
74830
|
};
|
|
74752
74831
|
|
|
74832
|
+
// pptx/core/core/runtime/run-slide-jump-targets.ts
|
|
74833
|
+
var SLIDE_JUMP_ACTION = "ppaction://hlinksldjump";
|
|
74834
|
+
function withRunSlideJumpTarget(style, slideTargetAt, onMissing) {
|
|
74835
|
+
if (!style || !slideTargetAt) {
|
|
74836
|
+
return style;
|
|
74837
|
+
}
|
|
74838
|
+
const index = style.hyperlinkTargetSlideIndex;
|
|
74839
|
+
if (typeof index !== "number" || style.hyperlinkRId) {
|
|
74840
|
+
return style;
|
|
74841
|
+
}
|
|
74842
|
+
const hyperlink = style.hyperlink?.trim();
|
|
74843
|
+
if (hyperlink && !hyperlink.startsWith("ppaction://")) {
|
|
74844
|
+
return style;
|
|
74845
|
+
}
|
|
74846
|
+
if (style.hyperlinkAction && style.hyperlinkAction !== SLIDE_JUMP_ACTION) {
|
|
74847
|
+
return style;
|
|
74848
|
+
}
|
|
74849
|
+
const target = slideTargetAt(index);
|
|
74850
|
+
if (!target) {
|
|
74851
|
+
onMissing?.(index);
|
|
74852
|
+
const {
|
|
74853
|
+
hyperlink: _hyperlink,
|
|
74854
|
+
hyperlinkAction: _action,
|
|
74855
|
+
hyperlinkTargetSlideIndex: _index,
|
|
74856
|
+
hyperlinkTooltip: _tooltip,
|
|
74857
|
+
...rest
|
|
74858
|
+
} = style;
|
|
74859
|
+
return rest;
|
|
74860
|
+
}
|
|
74861
|
+
return { ...style, hyperlink: target, hyperlinkAction: SLIDE_JUMP_ACTION };
|
|
74862
|
+
}
|
|
74863
|
+
function withSegmentSlideJumpTargets(segments, slideTargetAt, onMissing) {
|
|
74864
|
+
if (!segments || !slideTargetAt) {
|
|
74865
|
+
return segments;
|
|
74866
|
+
}
|
|
74867
|
+
let changed = false;
|
|
74868
|
+
const next = segments.map((segment) => {
|
|
74869
|
+
const style = withRunSlideJumpTarget(segment.style, slideTargetAt, onMissing);
|
|
74870
|
+
if (style === segment.style) {
|
|
74871
|
+
return segment;
|
|
74872
|
+
}
|
|
74873
|
+
changed = true;
|
|
74874
|
+
return { ...segment, style };
|
|
74875
|
+
});
|
|
74876
|
+
return changed ? next : segments;
|
|
74877
|
+
}
|
|
74878
|
+
|
|
74753
74879
|
// pptx/core/core/runtime/PptxHandlerRuntimeSaveTextWriter.ts
|
|
74754
74880
|
var ADJ1_WARP_PRESETS = /* @__PURE__ */ new Set([
|
|
74755
74881
|
"textWave1",
|
|
@@ -74774,7 +74900,7 @@ var PptxHandlerRuntime31 = class _PptxHandlerRuntime extends PptxHandlerRuntime3
|
|
|
74774
74900
|
* text chains), and delegates paragraph creation to
|
|
74775
74901
|
* `createParagraphsFromTextContent`.
|
|
74776
74902
|
*/
|
|
74777
|
-
applyTextBodyContent(shape2, el, resolveHyperlinkRelationshipId, getSlideRelationshipMap) {
|
|
74903
|
+
applyTextBodyContent(shape2, el, resolveHyperlinkRelationshipId, getSlideRelationshipMap, slideTargetAt) {
|
|
74778
74904
|
const hasEditableTextContent = typeof el.text === "string" || (el.textSegments?.length ?? 0) > 0;
|
|
74779
74905
|
if (!hasEditableTextContent) {
|
|
74780
74906
|
return;
|
|
@@ -74897,10 +75023,15 @@ var PptxHandlerRuntime31 = class _PptxHandlerRuntime extends PptxHandlerRuntime3
|
|
|
74897
75023
|
);
|
|
74898
75024
|
}
|
|
74899
75025
|
txBody["a:bodyPr"] = bodyPr;
|
|
75026
|
+
const onMissing = (index) => this.reportMissingSlideJumpTarget(el.id, index);
|
|
74900
75027
|
txBody["a:p"] = this.createParagraphsFromTextContent(
|
|
74901
75028
|
textValueForSave,
|
|
74902
|
-
|
|
74903
|
-
|
|
75029
|
+
withRunSlideJumpTarget(
|
|
75030
|
+
this.routeElementParagraphGeometry(txBody, el.textStyle),
|
|
75031
|
+
slideTargetAt,
|
|
75032
|
+
onMissing
|
|
75033
|
+
),
|
|
75034
|
+
withSegmentSlideJumpTargets(textSegmentsForSave, slideTargetAt, onMissing),
|
|
74904
75035
|
resolveHyperlinkRelationshipId
|
|
74905
75036
|
);
|
|
74906
75037
|
}
|
|
@@ -75011,6 +75142,94 @@ function shouldWritePictureGeometry(el, spPr) {
|
|
|
75011
75142
|
return Boolean(spPr["a:prstGeom"] || spPr["a:custGeom"]);
|
|
75012
75143
|
}
|
|
75013
75144
|
|
|
75145
|
+
// pptx/core/core/runtime/save-picture-fill.ts
|
|
75146
|
+
var has2 = (value) => value !== void 0;
|
|
75147
|
+
function drawingPictureLayout(layout, emuPerPx) {
|
|
75148
|
+
const offset = (px) => px === void 0 ? void 0 : Math.round(px * emuPerPx);
|
|
75149
|
+
if ([
|
|
75150
|
+
layout.tileOffsetX,
|
|
75151
|
+
layout.tileOffsetY,
|
|
75152
|
+
layout.tileScaleX,
|
|
75153
|
+
layout.tileScaleY,
|
|
75154
|
+
layout.tileFlip,
|
|
75155
|
+
layout.tileAlignment
|
|
75156
|
+
].some(has2)) {
|
|
75157
|
+
const tile = {};
|
|
75158
|
+
const offsetX = offset(layout.tileOffsetX);
|
|
75159
|
+
const offsetY = offset(layout.tileOffsetY);
|
|
75160
|
+
if (offsetX !== void 0) tile.offsetXEmu = offsetX;
|
|
75161
|
+
if (offsetY !== void 0) tile.offsetYEmu = offsetY;
|
|
75162
|
+
if (layout.tileScaleX !== void 0) tile.scaleX = layout.tileScaleX;
|
|
75163
|
+
if (layout.tileScaleY !== void 0) tile.scaleY = layout.tileScaleY;
|
|
75164
|
+
if (layout.tileFlip !== void 0) tile.flip = layout.tileFlip;
|
|
75165
|
+
if (layout.tileAlignment !== void 0) tile.alignment = layout.tileAlignment;
|
|
75166
|
+
return { tile };
|
|
75167
|
+
}
|
|
75168
|
+
if ([layout.fillRectLeft, layout.fillRectTop, layout.fillRectRight, layout.fillRectBottom].some(has2)) {
|
|
75169
|
+
return {
|
|
75170
|
+
fillRect: {
|
|
75171
|
+
l: layout.fillRectLeft ?? 0,
|
|
75172
|
+
t: layout.fillRectTop ?? 0,
|
|
75173
|
+
r: layout.fillRectRight ?? 0,
|
|
75174
|
+
b: layout.fillRectBottom ?? 0
|
|
75175
|
+
}
|
|
75176
|
+
};
|
|
75177
|
+
}
|
|
75178
|
+
return void 0;
|
|
75179
|
+
}
|
|
75180
|
+
function blipFillXml(relId, layout, parse) {
|
|
75181
|
+
const xml = drawingFillXml({ kind: "picture", relId, layout }) ?? "";
|
|
75182
|
+
const node = parse(xml)["a:blipFill"];
|
|
75183
|
+
delete node["@_xmlns:a"];
|
|
75184
|
+
delete node["@_xmlns:r"];
|
|
75185
|
+
return node;
|
|
75186
|
+
}
|
|
75187
|
+
function checkedBlipFill(relId, layout, ctx) {
|
|
75188
|
+
try {
|
|
75189
|
+
return blipFillXml(relId, layout, ctx.parse);
|
|
75190
|
+
} catch (error) {
|
|
75191
|
+
if (!(error instanceof RangeError)) {
|
|
75192
|
+
throw error;
|
|
75193
|
+
}
|
|
75194
|
+
ctx.warn(
|
|
75195
|
+
"SAVE_PICTURE_LAYOUT_INVALID",
|
|
75196
|
+
`Picture tile or fill rectangle could not be written (${error.message}); the picture is stretched over its frame instead.`
|
|
75197
|
+
);
|
|
75198
|
+
const { rotWithShape } = layout;
|
|
75199
|
+
return blipFillXml(relId, rotWithShape === void 0 ? {} : { rotWithShape }, ctx.parse);
|
|
75200
|
+
}
|
|
75201
|
+
}
|
|
75202
|
+
function writeNewShapePictureFill(spPr, style, ctx) {
|
|
75203
|
+
const relId = style.fillImageUrl ? ctx.embed(style.fillImageUrl) : void 0;
|
|
75204
|
+
if (!relId) {
|
|
75205
|
+
ctx.warn(
|
|
75206
|
+
"SAVE_SHAPE_PICTURE_FILL_UNSUPPORTED",
|
|
75207
|
+
"Shape picture fill could not be embedded (it needs a data: URL); the shape was saved without a fill."
|
|
75208
|
+
);
|
|
75209
|
+
return;
|
|
75210
|
+
}
|
|
75211
|
+
const layout = {
|
|
75212
|
+
...drawingPictureLayout(style.fillImageLayout ?? {}, ctx.emuPerPx),
|
|
75213
|
+
rotWithShape: style.fillImageRotWithShape ?? true
|
|
75214
|
+
};
|
|
75215
|
+
setFillChoice(spPr, "a:blipFill", checkedBlipFill(relId, layout, ctx));
|
|
75216
|
+
}
|
|
75217
|
+
function applyNewPictureLayout(blipFill, layout, ctx) {
|
|
75218
|
+
const drawingLayout = drawingPictureLayout(layout, ctx.emuPerPx);
|
|
75219
|
+
const relId = blipFill["a:blip"]?.["@_r:embed"];
|
|
75220
|
+
if (!drawingLayout || typeof relId !== "string") {
|
|
75221
|
+
return;
|
|
75222
|
+
}
|
|
75223
|
+
const built = checkedBlipFill(relId, drawingLayout, ctx);
|
|
75224
|
+
delete blipFill["a:stretch"];
|
|
75225
|
+
delete blipFill["a:tile"];
|
|
75226
|
+
for (const key2 of ["a:tile", "a:stretch"]) {
|
|
75227
|
+
if (built[key2] !== void 0) {
|
|
75228
|
+
blipFill[key2] = built[key2];
|
|
75229
|
+
}
|
|
75230
|
+
}
|
|
75231
|
+
}
|
|
75232
|
+
|
|
75014
75233
|
// pptx/core/core/runtime/PptxHandlerRuntimeSaveElementEmbedding.ts
|
|
75015
75234
|
function getMediaReferenceContainer(shape2) {
|
|
75016
75235
|
if (!shape2) {
|
|
@@ -75022,7 +75241,7 @@ function getMediaReferenceContainer(shape2) {
|
|
|
75022
75241
|
}
|
|
75023
75242
|
return shape2["a:graphic"]?.["a:graphicData"];
|
|
75024
75243
|
}
|
|
75025
|
-
var PptxHandlerRuntime32 = class extends PptxHandlerRuntime31 {
|
|
75244
|
+
var PptxHandlerRuntime32 = class _PptxHandlerRuntime extends PptxHandlerRuntime31 {
|
|
75026
75245
|
/** Serialize table, chart, and SmartArt data when applicable. */
|
|
75027
75246
|
applyDataSerialization(shape2, el, slideId) {
|
|
75028
75247
|
if (el.type === "table" && "tableData" in el && el.tableData) {
|
|
@@ -75109,15 +75328,29 @@ var PptxHandlerRuntime32 = class extends PptxHandlerRuntime31 {
|
|
|
75109
75328
|
if (parsedImage) {
|
|
75110
75329
|
let targetImagePath = el.imagePath;
|
|
75111
75330
|
if (!targetImagePath) {
|
|
75112
|
-
|
|
75113
|
-
|
|
75331
|
+
const media = ctx.saveSession.mediaPathForContent(parsedImage.bytes, parsedImage.extension);
|
|
75332
|
+
targetImagePath = media.path;
|
|
75114
75333
|
const relativeMediaPath = targetImagePath.replace(/^ppt\//u, "../");
|
|
75115
|
-
ctx.slideRelationships.
|
|
75116
|
-
"@
|
|
75117
|
-
|
|
75118
|
-
|
|
75119
|
-
|
|
75334
|
+
const existingRelationshipId = media.reused ? ctx.slideRelationships.find(
|
|
75335
|
+
(rel) => rel["@_Type"] === ctx.slideImageRelationshipType && rel["@_Target"] === relativeMediaPath
|
|
75336
|
+
)?.["@_Id"] : void 0;
|
|
75337
|
+
const relationshipId = typeof existingRelationshipId === "string" ? existingRelationshipId : ctx.slideRelationshipRegistry.nextRelationshipId();
|
|
75338
|
+
if (relationshipId !== existingRelationshipId) {
|
|
75339
|
+
ctx.slideRelationships.push({
|
|
75340
|
+
"@_Id": relationshipId,
|
|
75341
|
+
"@_Type": ctx.slideImageRelationshipType,
|
|
75342
|
+
"@_Target": relativeMediaPath
|
|
75343
|
+
});
|
|
75344
|
+
}
|
|
75120
75345
|
shape2 = this.createPictureXml(el, relationshipId);
|
|
75346
|
+
this.embedNewSvgVariant(el, shape2, ctx);
|
|
75347
|
+
const blipFill = shape2["p:blipFill"];
|
|
75348
|
+
if (blipFill) {
|
|
75349
|
+
applyNewPictureLayout(blipFill, el, this.pictureFillSaveContext(el, ctx));
|
|
75350
|
+
}
|
|
75351
|
+
if (media.reused) {
|
|
75352
|
+
return shape2;
|
|
75353
|
+
}
|
|
75121
75354
|
}
|
|
75122
75355
|
if (targetImagePath) {
|
|
75123
75356
|
const targetExt = targetImagePath.toLowerCase().match(/\.(?<ext>[^./\\]+)$/u)?.groups?.["ext"];
|
|
@@ -75138,6 +75371,71 @@ var PptxHandlerRuntime32 = class extends PptxHandlerRuntime31 {
|
|
|
75138
75371
|
}
|
|
75139
75372
|
return shape2;
|
|
75140
75373
|
}
|
|
75374
|
+
/** Add an image relationship from the slide to `mediaPath`; its id. */
|
|
75375
|
+
addSlideImageRelationship(mediaPath, ctx) {
|
|
75376
|
+
const relationshipId = ctx.slideRelationshipRegistry.nextRelationshipId();
|
|
75377
|
+
ctx.slideRelationships.push({
|
|
75378
|
+
"@_Id": relationshipId,
|
|
75379
|
+
"@_Type": ctx.slideImageRelationshipType,
|
|
75380
|
+
"@_Target": mediaPath.replace(/^ppt\//u, "../")
|
|
75381
|
+
});
|
|
75382
|
+
return relationshipId;
|
|
75383
|
+
}
|
|
75384
|
+
/** What the picture-fill writers need, bound to `el` on the slide being saved. */
|
|
75385
|
+
pictureFillSaveContext(el, ctx) {
|
|
75386
|
+
return {
|
|
75387
|
+
emuPerPx: _PptxHandlerRuntime.EMU_PER_PX,
|
|
75388
|
+
parse: (xml) => this.parser.parse(xml),
|
|
75389
|
+
embed: (dataUrl) => {
|
|
75390
|
+
const parsed = this.parseDataUrlToBytes(dataUrl);
|
|
75391
|
+
if (!parsed) {
|
|
75392
|
+
return void 0;
|
|
75393
|
+
}
|
|
75394
|
+
const mediaPath = ctx.saveSession.nextMediaPath(parsed.extension);
|
|
75395
|
+
this.zip.file(mediaPath, parsed.bytes);
|
|
75396
|
+
return this.addSlideImageRelationship(mediaPath, ctx);
|
|
75397
|
+
},
|
|
75398
|
+
warn: (code, message) => this.compatibilityService.reportWarning({
|
|
75399
|
+
code,
|
|
75400
|
+
message,
|
|
75401
|
+
scope: "element",
|
|
75402
|
+
slideId: ctx.slide.id,
|
|
75403
|
+
elementId: el.id
|
|
75404
|
+
})
|
|
75405
|
+
};
|
|
75406
|
+
}
|
|
75407
|
+
/**
|
|
75408
|
+
* For a new SVG picture (`svgData` without a part yet), write the SVG part
|
|
75409
|
+
* and point the blip's `asvg:svgBlip` extension at it; the blip itself
|
|
75410
|
+
* embeds the raster (`imageData`).
|
|
75411
|
+
*/
|
|
75412
|
+
embedNewSvgVariant(el, picture, ctx) {
|
|
75413
|
+
const svgData = el.svgData;
|
|
75414
|
+
if (!svgData || el.svgPath) {
|
|
75415
|
+
return;
|
|
75416
|
+
}
|
|
75417
|
+
const parsed = this.parseDataUrlToBytes(svgData);
|
|
75418
|
+
if (!parsed || parsed.extension.toLowerCase() !== "svg") {
|
|
75419
|
+
return;
|
|
75420
|
+
}
|
|
75421
|
+
const media = ctx.saveSession.mediaPathForContent(parsed.bytes, "svg");
|
|
75422
|
+
const target = media.path.replace(/^ppt\//u, "../");
|
|
75423
|
+
const existing = media.reused ? ctx.slideRelationships.find(
|
|
75424
|
+
(rel) => rel["@_Type"] === ctx.slideImageRelationshipType && rel["@_Target"] === target
|
|
75425
|
+
)?.["@_Id"] : void 0;
|
|
75426
|
+
const relationshipId = typeof existing === "string" ? existing : ctx.slideRelationshipRegistry.nextRelationshipId();
|
|
75427
|
+
if (relationshipId !== existing) {
|
|
75428
|
+
ctx.slideRelationships.push({
|
|
75429
|
+
"@_Id": relationshipId,
|
|
75430
|
+
"@_Type": ctx.slideImageRelationshipType,
|
|
75431
|
+
"@_Target": target
|
|
75432
|
+
});
|
|
75433
|
+
}
|
|
75434
|
+
if (!media.reused) {
|
|
75435
|
+
this.zip.file(media.path, parsed.bytes);
|
|
75436
|
+
}
|
|
75437
|
+
addSvgBlipExtension(picture, relationshipId);
|
|
75438
|
+
}
|
|
75141
75439
|
/** Embed media data and manage relationships for media elements. */
|
|
75142
75440
|
processMediaEmbedding(mediaElement, shape2, ctx) {
|
|
75143
75441
|
const mediaType = mediaElement.mediaType === "audio" ? "audio" : "video";
|
|
@@ -76819,6 +77117,10 @@ var PptxHandlerRuntime41 = class _PptxHandlerRuntime extends PptxHandlerRuntime4
|
|
|
76819
77117
|
}
|
|
76820
77118
|
if (!shape2 && (el.type === "text" || el.type === "shape")) {
|
|
76821
77119
|
shape2 = this.createElementXml(el);
|
|
77120
|
+
const spPr = ensureXmlChild(shape2, "p:spPr");
|
|
77121
|
+
if (spPr && el.shapeStyle?.fillMode === "image") {
|
|
77122
|
+
writeNewShapePictureFill(spPr, el.shapeStyle, this.pictureFillSaveContext(el, ctx));
|
|
77123
|
+
}
|
|
76822
77124
|
}
|
|
76823
77125
|
if (!shape2 && el.type === "connector") {
|
|
76824
77126
|
shape2 = this.createConnectorXml(el);
|
|
@@ -76931,7 +77233,8 @@ var PptxHandlerRuntime41 = class _PptxHandlerRuntime extends PptxHandlerRuntime4
|
|
|
76931
77233
|
shape2,
|
|
76932
77234
|
el,
|
|
76933
77235
|
ctx.resolveHyperlinkRelationshipId,
|
|
76934
|
-
ctx.getSlideRelationshipMap
|
|
77236
|
+
ctx.getSlideRelationshipMap,
|
|
77237
|
+
ctx.slideTargetAt
|
|
76935
77238
|
);
|
|
76936
77239
|
}
|
|
76937
77240
|
this.applyDataSerialization(shape2, el, ctx.slide.id);
|
|
@@ -97615,6 +97918,173 @@ function applyChartInputLayout(element2, input) {
|
|
|
97615
97918
|
}
|
|
97616
97919
|
}
|
|
97617
97920
|
|
|
97921
|
+
// pptx/core/builders/sdk/picture-layout-input.ts
|
|
97922
|
+
var FLIPS = /* @__PURE__ */ new Set(["none", "x", "y", "xy"]);
|
|
97923
|
+
var ALIGNMENTS = /* @__PURE__ */ new Set([
|
|
97924
|
+
"tl",
|
|
97925
|
+
"t",
|
|
97926
|
+
"tr",
|
|
97927
|
+
"l",
|
|
97928
|
+
"ctr",
|
|
97929
|
+
"r",
|
|
97930
|
+
"bl",
|
|
97931
|
+
"b",
|
|
97932
|
+
"br"
|
|
97933
|
+
]);
|
|
97934
|
+
var MAX_INSET = 10;
|
|
97935
|
+
function finite4(where, name, value) {
|
|
97936
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
97937
|
+
throw new RangeError(`${where}.${name} must be a finite number, got ${String(value)}`);
|
|
97938
|
+
}
|
|
97939
|
+
return value;
|
|
97940
|
+
}
|
|
97941
|
+
function tileLayout(where, tile) {
|
|
97942
|
+
const scale = (name) => {
|
|
97943
|
+
const value = finite4(where, `tile.${name}`, tile[name] ?? 1);
|
|
97944
|
+
if (value <= 0) {
|
|
97945
|
+
throw new RangeError(`${where}.tile.${name} must be above 0, got ${value}`);
|
|
97946
|
+
}
|
|
97947
|
+
return value;
|
|
97948
|
+
};
|
|
97949
|
+
const flip = tile.flip ?? "none";
|
|
97950
|
+
if (!FLIPS.has(flip)) {
|
|
97951
|
+
throw new RangeError(`${where}.tile.flip must be none, x, y or xy, got ${String(flip)}`);
|
|
97952
|
+
}
|
|
97953
|
+
const alignment = tile.alignment ?? "tl";
|
|
97954
|
+
if (!ALIGNMENTS.has(alignment)) {
|
|
97955
|
+
throw new RangeError(
|
|
97956
|
+
`${where}.tile.alignment must be one of ${[...ALIGNMENTS].join(", ")}, got ${String(alignment)}`
|
|
97957
|
+
);
|
|
97958
|
+
}
|
|
97959
|
+
return {
|
|
97960
|
+
tileOffsetX: finite4(where, "tile.offsetX", tile.offsetX ?? 0),
|
|
97961
|
+
tileOffsetY: finite4(where, "tile.offsetY", tile.offsetY ?? 0),
|
|
97962
|
+
tileScaleX: scale("scaleX"),
|
|
97963
|
+
tileScaleY: scale("scaleY"),
|
|
97964
|
+
tileFlip: flip,
|
|
97965
|
+
tileAlignment: alignment
|
|
97966
|
+
};
|
|
97967
|
+
}
|
|
97968
|
+
function fillRectLayout(where, rect) {
|
|
97969
|
+
const inset = (name) => {
|
|
97970
|
+
const value = finite4(where, `fillRect.${name}`, rect[name]);
|
|
97971
|
+
if (Math.abs(value) > MAX_INSET) {
|
|
97972
|
+
throw new RangeError(
|
|
97973
|
+
`${where}.fillRect.${name} must be between -${MAX_INSET} and ${MAX_INSET}, got ${value}`
|
|
97974
|
+
);
|
|
97975
|
+
}
|
|
97976
|
+
return value;
|
|
97977
|
+
};
|
|
97978
|
+
const layout = {
|
|
97979
|
+
fillRectLeft: inset("l"),
|
|
97980
|
+
fillRectTop: inset("t"),
|
|
97981
|
+
fillRectRight: inset("r"),
|
|
97982
|
+
fillRectBottom: inset("b")
|
|
97983
|
+
};
|
|
97984
|
+
if (layout.fillRectLeft + layout.fillRectRight >= 1) {
|
|
97985
|
+
throw new RangeError(`${where}.fillRect.l + r must be below 1, which leaves no picture`);
|
|
97986
|
+
}
|
|
97987
|
+
if (layout.fillRectTop + layout.fillRectBottom >= 1) {
|
|
97988
|
+
throw new RangeError(`${where}.fillRect.t + b must be below 1, which leaves no picture`);
|
|
97989
|
+
}
|
|
97990
|
+
return layout;
|
|
97991
|
+
}
|
|
97992
|
+
function mapPictureLayoutInput(where, input) {
|
|
97993
|
+
const { mode, tile, fillRect } = input;
|
|
97994
|
+
if (mode !== void 0 && mode !== "stretch" && mode !== "tile") {
|
|
97995
|
+
throw new RangeError(`${where}.mode must be 'stretch' or 'tile', got ${String(mode)}`);
|
|
97996
|
+
}
|
|
97997
|
+
if (tile && fillRect) {
|
|
97998
|
+
throw new RangeError(`${where} takes a tile or a fillRect, not both`);
|
|
97999
|
+
}
|
|
98000
|
+
if (tile && mode === "stretch") {
|
|
98001
|
+
throw new RangeError(`${where}.tile needs mode 'tile', got 'stretch'`);
|
|
98002
|
+
}
|
|
98003
|
+
if (fillRect && mode === "tile") {
|
|
98004
|
+
throw new RangeError(`${where}.fillRect needs mode 'stretch', got 'tile'`);
|
|
98005
|
+
}
|
|
98006
|
+
if (tile || mode === "tile") {
|
|
98007
|
+
return tileLayout(where, tile ?? {});
|
|
98008
|
+
}
|
|
98009
|
+
return fillRect ? fillRectLayout(where, fillRect) : void 0;
|
|
98010
|
+
}
|
|
98011
|
+
|
|
98012
|
+
// pptx/core/builders/sdk/link-input.ts
|
|
98013
|
+
var SLIDE_JUMP_ACTION2 = "ppaction://hlinksldjump";
|
|
98014
|
+
function mapLinkToAction(link) {
|
|
98015
|
+
if (!link) {
|
|
98016
|
+
return void 0;
|
|
98017
|
+
}
|
|
98018
|
+
const tooltip = link.tooltip !== void 0 ? { tooltip: link.tooltip } : {};
|
|
98019
|
+
if ("url" in link) {
|
|
98020
|
+
return { url: assertUrl(link.url), ...tooltip };
|
|
98021
|
+
}
|
|
98022
|
+
assertSlideIndex(link.slideIndex);
|
|
98023
|
+
return { action: SLIDE_JUMP_ACTION2, targetSlideIndex: link.slideIndex, ...tooltip };
|
|
98024
|
+
}
|
|
98025
|
+
function mapLinkToRunStyle(link) {
|
|
98026
|
+
if (!link) {
|
|
98027
|
+
return {};
|
|
98028
|
+
}
|
|
98029
|
+
const tooltip = link.tooltip !== void 0 ? { hyperlinkTooltip: link.tooltip } : {};
|
|
98030
|
+
if ("url" in link) {
|
|
98031
|
+
return { hyperlink: assertUrl(link.url), ...tooltip };
|
|
98032
|
+
}
|
|
98033
|
+
assertSlideIndex(link.slideIndex);
|
|
98034
|
+
return {
|
|
98035
|
+
hyperlink: SLIDE_JUMP_ACTION2,
|
|
98036
|
+
hyperlinkAction: SLIDE_JUMP_ACTION2,
|
|
98037
|
+
hyperlinkTargetSlideIndex: link.slideIndex,
|
|
98038
|
+
...tooltip
|
|
98039
|
+
};
|
|
98040
|
+
}
|
|
98041
|
+
function assertUrl(url) {
|
|
98042
|
+
if (typeof url !== "string" || url.trim() === "") {
|
|
98043
|
+
throw new RangeError("LinkInput.url must be a non-empty address");
|
|
98044
|
+
}
|
|
98045
|
+
return url;
|
|
98046
|
+
}
|
|
98047
|
+
function assertSlideIndex(index) {
|
|
98048
|
+
if (!Number.isInteger(index) || index < 0) {
|
|
98049
|
+
throw new RangeError(`LinkInput.slideIndex must be a 0-based slide position, got ${index}`);
|
|
98050
|
+
}
|
|
98051
|
+
}
|
|
98052
|
+
|
|
98053
|
+
// pptx/core/builders/sdk/svg-picture-input.ts
|
|
98054
|
+
var SVG_DATA_URL = /^data:image\/svg\+xml(?<params>[^,]*),(?<payload>[\s\S]*)$/iu;
|
|
98055
|
+
function svgPictureSource(source, svgFallback) {
|
|
98056
|
+
if (svgFallback !== void 0 && SVG_DATA_URL.test(svgFallback)) {
|
|
98057
|
+
throw new RangeError("ImageOptions.svgFallback must be a raster image, not SVG");
|
|
98058
|
+
}
|
|
98059
|
+
const match = SVG_DATA_URL.exec(source);
|
|
98060
|
+
if (!match?.groups) {
|
|
98061
|
+
if (svgFallback !== void 0) {
|
|
98062
|
+
throw new RangeError("ImageOptions.svgFallback applies only to an SVG data URL source");
|
|
98063
|
+
}
|
|
98064
|
+
return void 0;
|
|
98065
|
+
}
|
|
98066
|
+
const params = match.groups["params"] ?? "";
|
|
98067
|
+
const payload = match.groups["payload"] ?? "";
|
|
98068
|
+
const base64 = /;base64$/iu.test(params);
|
|
98069
|
+
const text = base64 ? decodeBase64Text(payload) : decodeURIComponent(payload);
|
|
98070
|
+
if (!/<svg[\s>]/iu.test(text)) {
|
|
98071
|
+
throw new RangeError("An SVG picture source must hold an <svg> element");
|
|
98072
|
+
}
|
|
98073
|
+
return {
|
|
98074
|
+
svgData: base64 ? `data:image/svg+xml;base64,${payload.replace(/\s+/gu, "")}` : `data:image/svg+xml;base64,${base64Encode(new TextEncoder().encode(text))}`,
|
|
98075
|
+
raster: svgFallback ?? TRANSPARENT_PNG_DATA_URL
|
|
98076
|
+
};
|
|
98077
|
+
}
|
|
98078
|
+
function decodeBase64Text(payload) {
|
|
98079
|
+
try {
|
|
98080
|
+
const binary = atob(payload.replace(/\s+/gu, ""));
|
|
98081
|
+
const bytes = Uint8Array.from(binary, (ch) => ch.charCodeAt(0));
|
|
98082
|
+
return new TextDecoder().decode(bytes);
|
|
98083
|
+
} catch {
|
|
98084
|
+
throw new RangeError("An SVG picture source has base64 data that cannot be read");
|
|
98085
|
+
}
|
|
98086
|
+
}
|
|
98087
|
+
|
|
97618
98088
|
// pptx/core/builders/sdk/picture-effects-input.ts
|
|
97619
98089
|
function pictureEffectsFromInput(options2) {
|
|
97620
98090
|
const { opacity: opacity2, brightness, contrast } = options2 ?? {};
|
|
@@ -97695,12 +98165,18 @@ function mapFillToShapeStyle(fill3) {
|
|
|
97695
98165
|
...fill3.foreground !== void 0 ? { fillColor: fill3.foreground } : {},
|
|
97696
98166
|
fillPatternBackgroundColor: fill3.background
|
|
97697
98167
|
};
|
|
97698
|
-
case "image":
|
|
98168
|
+
case "image": {
|
|
98169
|
+
if (typeof fill3.url !== "string" || !fill3.url.startsWith("data:")) {
|
|
98170
|
+
throw new RangeError("FillInput.url of an image fill must be a data: URL");
|
|
98171
|
+
}
|
|
98172
|
+
const layout = mapPictureLayoutInput("FillInput", fill3);
|
|
97699
98173
|
return {
|
|
97700
98174
|
fillMode: "image",
|
|
97701
98175
|
fillImageUrl: fill3.url,
|
|
97702
|
-
fillImageMode:
|
|
98176
|
+
fillImageMode: layout?.tileScaleX !== void 0 ? "tile" : "stretch",
|
|
98177
|
+
...layout ? { fillImageLayout: layout } : {}
|
|
97703
98178
|
};
|
|
98179
|
+
}
|
|
97704
98180
|
case "none":
|
|
97705
98181
|
return { fillMode: "none" };
|
|
97706
98182
|
default:
|
|
@@ -98043,6 +98519,62 @@ function columnFractions(columnWidths, columnCount) {
|
|
|
98043
98519
|
return columnWidths.map((w) => w / sum);
|
|
98044
98520
|
}
|
|
98045
98521
|
|
|
98522
|
+
// pptx/core/builders/sdk/text-body-input.ts
|
|
98523
|
+
var EMU_PER_PX5 = 9525;
|
|
98524
|
+
var MAX_INSET_EMU = 51206400;
|
|
98525
|
+
var MAX_SPC = 4e5;
|
|
98526
|
+
var INSET_FIELDS = {
|
|
98527
|
+
left: "bodyInsetLeft",
|
|
98528
|
+
top: "bodyInsetTop",
|
|
98529
|
+
right: "bodyInsetRight",
|
|
98530
|
+
bottom: "bodyInsetBottom"
|
|
98531
|
+
};
|
|
98532
|
+
var AUTO_FIT = {
|
|
98533
|
+
// The model's `autoFitMode` names read the other way round: `'normal'` is
|
|
98534
|
+
// `a:normAutofit` (PowerPoint shrinks the text on overflow) and `'shrink'`
|
|
98535
|
+
// is `a:spAutoFit` (the shape grows to fit the text).
|
|
98536
|
+
shrinkText: { autoFit: true, autoFitMode: "normal" },
|
|
98537
|
+
resizeShape: { autoFit: true, autoFitMode: "shrink" },
|
|
98538
|
+
none: { autoFit: false, autoFitMode: "none" }
|
|
98539
|
+
};
|
|
98540
|
+
function mapTextBodyInput(input) {
|
|
98541
|
+
const style = {};
|
|
98542
|
+
if (!input) {
|
|
98543
|
+
return style;
|
|
98544
|
+
}
|
|
98545
|
+
const { insets, autoFit, wrap: wrap2 } = input;
|
|
98546
|
+
for (const side of Object.keys(INSET_FIELDS)) {
|
|
98547
|
+
const value = insets?.[side];
|
|
98548
|
+
if (value === void 0) {
|
|
98549
|
+
continue;
|
|
98550
|
+
}
|
|
98551
|
+
if (!Number.isFinite(value) || Math.abs(value * EMU_PER_PX5) > MAX_INSET_EMU) {
|
|
98552
|
+
throw new RangeError(`insets.${side} must be a finite px length, got ${value}`);
|
|
98553
|
+
}
|
|
98554
|
+
style[INSET_FIELDS[side]] = value;
|
|
98555
|
+
}
|
|
98556
|
+
if (autoFit !== void 0) {
|
|
98557
|
+
const mapped = AUTO_FIT[autoFit];
|
|
98558
|
+
if (!mapped) {
|
|
98559
|
+
throw new RangeError(
|
|
98560
|
+
`autoFit must be 'none', 'shrinkText' or 'resizeShape', got ${String(autoFit)}`
|
|
98561
|
+
);
|
|
98562
|
+
}
|
|
98563
|
+
Object.assign(style, mapped);
|
|
98564
|
+
}
|
|
98565
|
+
if (wrap2 !== void 0) {
|
|
98566
|
+
style.textWrap = wrap2 ? "square" : "none";
|
|
98567
|
+
}
|
|
98568
|
+
return style;
|
|
98569
|
+
}
|
|
98570
|
+
function characterSpacingToSpc(px) {
|
|
98571
|
+
const spc = Math.round(px * 75);
|
|
98572
|
+
if (!Number.isFinite(px) || Math.abs(spc) > MAX_SPC) {
|
|
98573
|
+
throw new RangeError(`characterSpacing must be a finite px length, got ${px}`);
|
|
98574
|
+
}
|
|
98575
|
+
return spc;
|
|
98576
|
+
}
|
|
98577
|
+
|
|
98046
98578
|
// pptx/core/builders/sdk/text-segment-style.ts
|
|
98047
98579
|
var RUN_KEYS = [
|
|
98048
98580
|
"fontFamily",
|
|
@@ -98154,6 +98686,12 @@ function mapTextStyleInput(opts) {
|
|
|
98154
98686
|
if (opts.spaceAfter !== void 0) {
|
|
98155
98687
|
ts.paragraphSpacingAfter = opts.spaceAfter;
|
|
98156
98688
|
}
|
|
98689
|
+
if (opts.characterSpacing !== void 0) {
|
|
98690
|
+
ts.characterSpacing = characterSpacingToSpc(opts.characterSpacing);
|
|
98691
|
+
}
|
|
98692
|
+
if (opts.link !== void 0) {
|
|
98693
|
+
Object.assign(ts, mapLinkToRunStyle(opts.link));
|
|
98694
|
+
}
|
|
98157
98695
|
return ts;
|
|
98158
98696
|
}
|
|
98159
98697
|
function buildTextSegments(input, baseStyle) {
|
|
@@ -98178,6 +98716,34 @@ function buildTextSegments(input, baseStyle) {
|
|
|
98178
98716
|
style: { ...base, ...mapTextStyleInput(seg.style) }
|
|
98179
98717
|
}));
|
|
98180
98718
|
}
|
|
98719
|
+
function flipsOf(options2) {
|
|
98720
|
+
return {
|
|
98721
|
+
...options2?.flipHorizontal ? { flipHorizontal: true } : {},
|
|
98722
|
+
...options2?.flipVertical ? { flipVertical: true } : {}
|
|
98723
|
+
};
|
|
98724
|
+
}
|
|
98725
|
+
function applyShapeText(el, options2) {
|
|
98726
|
+
const text = options2?.text;
|
|
98727
|
+
if (!text || text.length === 0) {
|
|
98728
|
+
const body = mapTextBodyInput(options2);
|
|
98729
|
+
if (Object.keys(body).length > 0) {
|
|
98730
|
+
el.text = "";
|
|
98731
|
+
el.textStyle = body;
|
|
98732
|
+
}
|
|
98733
|
+
return;
|
|
98734
|
+
}
|
|
98735
|
+
const textSegments = buildTextSegments(text, options2.textStyle);
|
|
98736
|
+
el.text = typeof text === "string" ? text : text.map((s) => s.text).join("");
|
|
98737
|
+
el.textStyle = {
|
|
98738
|
+
...elementStyleForSegments(mapTextStyleInput(options2.textStyle), textSegments),
|
|
98739
|
+
...mapTextBodyInput(options2)
|
|
98740
|
+
};
|
|
98741
|
+
el.textSegments = textSegments;
|
|
98742
|
+
}
|
|
98743
|
+
function withAction(link) {
|
|
98744
|
+
const actionClick = mapLinkToAction(link);
|
|
98745
|
+
return actionClick ? { actionClick } : {};
|
|
98746
|
+
}
|
|
98181
98747
|
var DEFAULTS = {
|
|
98182
98748
|
text: { x: 100, y: 100, width: 600, height: 50 },
|
|
98183
98749
|
shape: { x: 200, y: 200, width: 300, height: 200 },
|
|
@@ -98218,32 +98784,36 @@ function createTextElement(text, options2) {
|
|
|
98218
98784
|
id: generateId("txt"),
|
|
98219
98785
|
...p,
|
|
98220
98786
|
rotation: options2?.rotation,
|
|
98787
|
+
...flipsOf(options2),
|
|
98221
98788
|
opacity: options2?.opacity,
|
|
98222
98789
|
text: plainText,
|
|
98223
|
-
textStyle:
|
|
98790
|
+
textStyle: {
|
|
98791
|
+
...elementStyleForSegments(mapTextStyleInput(textStyleBase), textSegments),
|
|
98792
|
+
...mapTextBodyInput(options2)
|
|
98793
|
+
},
|
|
98224
98794
|
textSegments,
|
|
98225
|
-
shapeStyle: buildShapeStyle(effectInputs(options2, options2?.fill))
|
|
98795
|
+
shapeStyle: buildShapeStyle(effectInputs(options2, options2?.fill)),
|
|
98796
|
+
...withAction(options2?.link)
|
|
98226
98797
|
};
|
|
98227
98798
|
}
|
|
98228
|
-
|
|
98799
|
+
var DEFAULT_SHAPE_FILL = { type: "solid", color: "#4472C4" };
|
|
98800
|
+
function createShapeElement(shapeType, options2, defaults) {
|
|
98229
98801
|
const p = pos("shape", options2);
|
|
98230
98802
|
const el = {
|
|
98231
98803
|
type: "shape",
|
|
98232
98804
|
id: generateId("shp"),
|
|
98233
98805
|
...p,
|
|
98234
98806
|
rotation: options2?.rotation,
|
|
98807
|
+
...flipsOf(options2),
|
|
98235
98808
|
opacity: options2?.opacity,
|
|
98236
98809
|
shapeType,
|
|
98237
98810
|
shapeAdjustments: options2?.adjustments,
|
|
98238
98811
|
shapeStyle: buildShapeStyle(
|
|
98239
|
-
effectInputs(options2, options2?.fill ??
|
|
98240
|
-
)
|
|
98812
|
+
effectInputs(options2, options2?.fill ?? defaults?.fill ?? DEFAULT_SHAPE_FILL)
|
|
98813
|
+
),
|
|
98814
|
+
...withAction(options2?.link)
|
|
98241
98815
|
};
|
|
98242
|
-
|
|
98243
|
-
el.text = options2.text;
|
|
98244
|
-
el.textStyle = mapTextStyleInput(options2.textStyle);
|
|
98245
|
-
el.textSegments = buildTextSegments(options2.text, options2.textStyle);
|
|
98246
|
-
}
|
|
98816
|
+
applyShapeText(el, options2);
|
|
98247
98817
|
return el;
|
|
98248
98818
|
}
|
|
98249
98819
|
function createConnectorElement(options2) {
|
|
@@ -98279,12 +98849,20 @@ function createConnectorElement(options2) {
|
|
|
98279
98849
|
id: generateId("cxn"),
|
|
98280
98850
|
...p,
|
|
98281
98851
|
rotation: options2?.rotation,
|
|
98852
|
+
...flipsOf(options2),
|
|
98282
98853
|
shapeType: connType,
|
|
98283
98854
|
shapeStyle: style
|
|
98284
98855
|
};
|
|
98285
98856
|
}
|
|
98286
98857
|
function createImageElement(source, options2) {
|
|
98287
98858
|
const p = pos("image", options2);
|
|
98859
|
+
const svg = svgPictureSource(source, options2?.svgFallback);
|
|
98860
|
+
if (svg) {
|
|
98861
|
+
const { svgFallback: _raster, ...rest } = options2 ?? {};
|
|
98862
|
+
const svgPicture = createImageElement(svg.raster, rest);
|
|
98863
|
+
svgPicture.svgData = svg.svgData;
|
|
98864
|
+
return svgPicture;
|
|
98865
|
+
}
|
|
98288
98866
|
const isDataUrl = source.startsWith("data:");
|
|
98289
98867
|
const imageEffects = pictureEffectsFromInput(options2);
|
|
98290
98868
|
return {
|
|
@@ -98292,6 +98870,7 @@ function createImageElement(source, options2) {
|
|
|
98292
98870
|
id: generateId("img"),
|
|
98293
98871
|
...p,
|
|
98294
98872
|
rotation: options2?.rotation,
|
|
98873
|
+
...flipsOf(options2),
|
|
98295
98874
|
...imageEffects ? { imageEffects } : {},
|
|
98296
98875
|
imagePath: isDataUrl ? void 0 : source,
|
|
98297
98876
|
imageData: isDataUrl ? source : void 0,
|
|
@@ -98299,7 +98878,12 @@ function createImageElement(source, options2) {
|
|
|
98299
98878
|
cropLeft: options2?.cropLeft,
|
|
98300
98879
|
cropTop: options2?.cropTop,
|
|
98301
98880
|
cropRight: options2?.cropRight,
|
|
98302
|
-
cropBottom: options2?.cropBottom
|
|
98881
|
+
cropBottom: options2?.cropBottom,
|
|
98882
|
+
...mapPictureLayoutInput("ImageOptions", {
|
|
98883
|
+
tile: options2?.tile,
|
|
98884
|
+
fillRect: options2?.fillRect
|
|
98885
|
+
}),
|
|
98886
|
+
...withAction(options2?.link)
|
|
98303
98887
|
};
|
|
98304
98888
|
}
|
|
98305
98889
|
function createTableCell(cellInput) {
|
|
@@ -98404,6 +98988,7 @@ function createMediaElement(mediaType, source, options2) {
|
|
|
98404
98988
|
id: generateId("med"),
|
|
98405
98989
|
...p,
|
|
98406
98990
|
rotation: options2?.rotation,
|
|
98991
|
+
...flipsOf(options2),
|
|
98407
98992
|
mediaType,
|
|
98408
98993
|
mediaPath: isDataUrl ? void 0 : source,
|
|
98409
98994
|
mediaData: isDataUrl ? source : void 0,
|
|
@@ -98422,6 +99007,7 @@ function createGroupElement(children6, options2) {
|
|
|
98422
99007
|
id: generateId("grp"),
|
|
98423
99008
|
...p,
|
|
98424
99009
|
rotation: options2?.rotation,
|
|
99010
|
+
...flipsOf(options2),
|
|
98425
99011
|
children: children6
|
|
98426
99012
|
};
|
|
98427
99013
|
}
|
|
@@ -98435,6 +99021,7 @@ function createFreeformElement(pathData, options2) {
|
|
|
98435
99021
|
id: generateId("frm"),
|
|
98436
99022
|
...p,
|
|
98437
99023
|
rotation: options2?.rotation,
|
|
99024
|
+
...flipsOf(options2),
|
|
98438
99025
|
opacity: options2?.opacity,
|
|
98439
99026
|
shapeType: "custom",
|
|
98440
99027
|
pathData,
|
|
@@ -98444,13 +99031,10 @@ function createFreeformElement(pathData, options2) {
|
|
|
98444
99031
|
shapeStyle: buildShapeStyle({
|
|
98445
99032
|
...effectInputs(options2, options2?.fill ?? { type: "none" }),
|
|
98446
99033
|
stroke: options2?.stroke ?? { color: "#000000", width: 2 }
|
|
98447
|
-
})
|
|
99034
|
+
}),
|
|
99035
|
+
...withAction(options2?.link)
|
|
98448
99036
|
};
|
|
98449
|
-
|
|
98450
|
-
el.text = options2.text;
|
|
98451
|
-
el.textStyle = mapTextStyleInput(options2.textStyle);
|
|
98452
|
-
el.textSegments = buildTextSegments(options2.text, options2.textStyle);
|
|
98453
|
-
}
|
|
99037
|
+
applyShapeText(el, options2);
|
|
98454
99038
|
return el;
|
|
98455
99039
|
}
|
|
98456
99040
|
|
|
@@ -98461,9 +99045,12 @@ var SlideBuilder = class {
|
|
|
98461
99045
|
* @param layoutPath - Optional layout archive path.
|
|
98462
99046
|
* @param layoutName - Optional layout display name.
|
|
98463
99047
|
* @param handler - Loaded deck context for placeholder geometry and text styles.
|
|
99048
|
+
* @param shapeDefaults - What `addShape` uses for an omitted option
|
|
99049
|
+
* (`PresentationOptions.shapeDefaults`).
|
|
98464
99050
|
*/
|
|
98465
|
-
constructor(slideNumber, layoutPath, layoutName, handler) {
|
|
99051
|
+
constructor(slideNumber, layoutPath, layoutName, handler, shapeDefaults) {
|
|
98466
99052
|
this.handler = handler;
|
|
99053
|
+
this.shapeDefaults = shapeDefaults;
|
|
98467
99054
|
this.slide = {
|
|
98468
99055
|
id: `slide${slideNumber}`,
|
|
98469
99056
|
rId: `rId${slideNumber + 1}`,
|
|
@@ -98474,6 +99061,7 @@ var SlideBuilder = class {
|
|
|
98474
99061
|
};
|
|
98475
99062
|
}
|
|
98476
99063
|
handler;
|
|
99064
|
+
shapeDefaults;
|
|
98477
99065
|
slide;
|
|
98478
99066
|
/** Add a text box to the slide. */
|
|
98479
99067
|
addText(text, options2) {
|
|
@@ -98521,7 +99109,7 @@ var SlideBuilder = class {
|
|
|
98521
99109
|
}
|
|
98522
99110
|
/** Add a shape to the slide. */
|
|
98523
99111
|
addShape(shapeType, options2) {
|
|
98524
|
-
this.slide.elements.push(createShapeElement(shapeType, options2));
|
|
99112
|
+
this.slide.elements.push(createShapeElement(shapeType, options2, this.shapeDefaults));
|
|
98525
99113
|
return this;
|
|
98526
99114
|
}
|
|
98527
99115
|
/** Add a connector (line) to the slide. */
|
|
@@ -99418,7 +100006,7 @@ var PresentationBuilder = class {
|
|
|
99418
100006
|
const layoutIdx = STANDARD_LAYOUTS.findIndex((l) => l.name === layoutName) + 1 || 7;
|
|
99419
100007
|
const layoutPath = `ppt/slideLayouts/slideLayout${layoutIdx}.xml`;
|
|
99420
100008
|
const resolvedName = layoutName ?? STANDARD_LAYOUTS[layoutIdx - 1]?.name ?? "Blank";
|
|
99421
|
-
return new SlideBuilder(slideNum, layoutPath, resolvedName, handler);
|
|
100009
|
+
return new SlideBuilder(slideNum, layoutPath, resolvedName, handler, options2?.shapeDefaults);
|
|
99422
100010
|
};
|
|
99423
100011
|
return { handler, data, createSlide };
|
|
99424
100012
|
}
|