ooxml-core 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/{PptxHandler-DDEJ6CKU.mjs → PptxHandler-BL4B7CZO.mjs} +2 -2
  2. package/dist/automation/index.cjs +1 -1
  3. package/dist/automation/index.mjs +1 -1
  4. package/dist/chart/gradient-definition.d.ts +2 -0
  5. package/dist/chart/gradient-definition.d.ts.map +1 -1
  6. package/dist/chart/index.cjs +1 -1
  7. package/dist/chart/index.mjs +1 -1
  8. package/dist/{chunk-5L4DHJV3.mjs → chunk-GAGSCAR3.mjs} +46 -43
  9. package/dist/{chunk-QXZJOUW4.mjs → chunk-NIHPA63A.mjs} +1 -1
  10. package/dist/{chunk-UQQGC6O3.mjs → chunk-TTPZITQN.mjs} +841 -614
  11. package/dist/{chunk-Q52O7SXQ.mjs → chunk-Z7IQR4S4.mjs} +3 -3
  12. package/dist/{chunk-EPNLABIU.mjs → chunk-ZAP5WLEN.mjs} +1 -1
  13. package/dist/crypto/index.cjs +281 -109
  14. package/dist/crypto/index.mjs +281 -109
  15. package/dist/diagram/engine/text-measure.d.ts +1 -1
  16. package/dist/diagram/layout/smartart-font-table.d.ts +1 -1
  17. package/dist/diagram/layout/smartart-layout-interpreter-linear-content-size.d.ts +1 -1
  18. package/dist/diagram/layout/smartart-layout-item-font-size.d.ts +1 -1
  19. package/dist/diagram/layout/smartart-layout-item-font-tier-fit.d.ts +1 -1
  20. package/dist/diagram/layout/smartart-line-pitch.d.ts +1 -1
  21. package/dist/diagram/layout/smartart-text-wrap-fit.d.ts +1 -1
  22. package/dist/docx/index.cjs +1 -1
  23. package/dist/docx/index.mjs +1 -1
  24. package/dist/docx/layout/index.cjs +1 -1
  25. package/dist/docx/layout/index.mjs +1 -1
  26. package/dist/docx/load/index.cjs +481 -254
  27. package/dist/docx/load/index.mjs +481 -254
  28. package/dist/docx/ui/index.cjs +1 -1
  29. package/dist/docx/ui/index.mjs +1 -1
  30. package/dist/index.cjs +1 -1
  31. package/dist/index.mjs +1 -1
  32. package/dist/pptx/automation/index.cjs +1391 -1154
  33. package/dist/pptx/automation/index.d.ts +3 -3
  34. package/dist/pptx/automation/index.mjs +5 -5
  35. package/dist/pptx/chunks/{index-JNv7AJx5.d.ts → index-CKIUurnd.d.ts} +2 -2
  36. package/dist/pptx/chunks/{index-JNv7AJx5.d.ts.map → index-CKIUurnd.d.ts.map} +1 -1
  37. package/dist/pptx/chunks/{index-EZJZ7USt.d.ts → index-Cn-GzYGp.d.ts} +64 -15
  38. package/dist/pptx/chunks/{index-EZJZ7USt.d.ts.map → index-Cn-GzYGp.d.ts.map} +1 -1
  39. package/dist/pptx/chunks/{text-operations-DtCxXrMh.d.ts → text-operations-BHfAm5K9.d.ts} +8 -1
  40. package/dist/pptx/chunks/text-operations-BHfAm5K9.d.ts.map +1 -0
  41. package/dist/pptx/cli/index.cjs +1270 -1088
  42. package/dist/pptx/cli/index.d.ts +1 -1
  43. package/dist/pptx/cli/index.mjs +4 -4
  44. package/dist/pptx/converter/index.d.ts +1 -1
  45. package/dist/pptx/converter/index.mjs +2 -2
  46. package/dist/pptx/index.cjs +1411 -1174
  47. package/dist/pptx/index.d.ts +3 -3
  48. package/dist/pptx/index.mjs +5 -5
  49. package/dist/text/font-metrics/font-advance-widths-aptos-display.generated.d.ts +1 -1
  50. package/dist/text/font-metrics/font-advance-widths-aptos.generated.d.ts +1 -1
  51. package/dist/text/font-metrics/font-advance-widths-arial.generated.d.ts +1 -1
  52. package/dist/text/font-metrics/font-advance-widths-calibri-light.generated.d.ts +1 -1
  53. package/dist/text/font-metrics/font-advance-widths-calibri.generated.d.ts +1 -1
  54. package/dist/text/font-metrics/font-advance-widths-segoe-ui.generated.d.ts +1 -1
  55. package/dist/text/font-metrics/font-advance-widths-times-new-roman.generated.d.ts +1 -1
  56. package/dist/visio/index.cjs +482 -232
  57. package/dist/visio/index.mjs +482 -232
  58. package/dist/visio/ui/data-graphic-rules.d.ts +2 -2
  59. package/dist/xlsx/formula/test-helpers.d.ts +9 -9
  60. package/dist/xlsx/index.cjs +1 -1
  61. package/dist/xlsx/index.mjs +1 -1
  62. package/dist/xlsx/load/index.cjs +415 -188
  63. package/dist/xlsx/load/index.mjs +415 -188
  64. package/package.json +5 -5
  65. package/dist/pptx/chunks/text-operations-DtCxXrMh.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- export { PptxHandler } from './chunk-5L4DHJV3.mjs';
2
- import './chunk-UQQGC6O3.mjs';
1
+ export { PptxHandler } from './chunk-GAGSCAR3.mjs';
2
+ import './chunk-TTPZITQN.mjs';
3
3
  import './chunk-KBIJI6P5.mjs';
4
4
  import './chunk-3GXV5MPC.mjs';
5
5
  import './chunk-54S5A5PZ.mjs';
@@ -41804,7 +41804,7 @@ function legacyFillGradient(cells3, width, height, resolve2) {
41804
41804
  };
41805
41805
  }
41806
41806
 
41807
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/utils/png-encoder.js
41807
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/utils/png-encoder.js
41808
41808
  var CRC_TABLE = (() => {
41809
41809
  const table3 = new Uint32Array(256);
41810
41810
  for (let n = 0; n < 256; n++) {
@@ -41798,7 +41798,7 @@ function legacyFillGradient(cells3, width, height, resolve2) {
41798
41798
  };
41799
41799
  }
41800
41800
 
41801
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/utils/png-encoder.js
41801
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/utils/png-encoder.js
41802
41802
  var CRC_TABLE = (() => {
41803
41803
  const table3 = new Uint32Array(256);
41804
41804
  for (let n = 0; n < 256; n++) {
@@ -40,6 +40,8 @@ export type ChartSvgGradientDef = {
40
40
  } | {
41
41
  kind: 'linearGradient';
42
42
  id: string;
43
+ /** Absent means `objectBoundingBox`; strokes use user space (a flat line has no height). */
44
+ gradientUnits?: 'userSpaceOnUse';
43
45
  x1: number;
44
46
  y1: number;
45
47
  x2: number;
@@ -1 +1 @@
1
- {"version":3,"file":"gradient-definition.d.ts","sourceRoot":"","sources":["../../chart/gradient-definition.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIpE,OAAO,EAAqB,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC/F,OAAO,EAEN,KAAK,0BAA0B,EAC/B,MAAM,iCAAiC,CAAC;AAEzC,iGAAiG;AACjG,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,qBAAqB,GAC9B,iBAAiB,CAGnB;AACD,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,UAAU,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,0BAA0B,CAAC;CACxC;AACD,MAAM,WAAW,oBAAoB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,+EAA+E;AAC/E,MAAM,WAAW,mBAAmB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AACD,MAAM,MAAM,mBAAmB,GAC5B;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,oBAAoB,EAAE,CAAA;CAAE,GAC7E;IACA,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,oBAAoB,EAAE,CAAC;CAC7B,GACD;IACA,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,oBAAoB,EAAE,CAAC;CAC7B,CAAC;AAEL,qFAAqF;AACrF,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,EAChD,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAC1E,iBAAiB,CA2BnB;AAED,uEAAuE;AACvE,wBAAgB,qBAAqB,CACpC,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,iBAAiB,EACvB,MAAM,CAAC,EAAE,mBAAmB,GAC1B,mBAAmB,CAwErB"}
1
+ {"version":3,"file":"gradient-definition.d.ts","sourceRoot":"","sources":["../../chart/gradient-definition.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIpE,OAAO,EAAqB,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC/F,OAAO,EAEN,KAAK,0BAA0B,EAC/B,MAAM,iCAAiC,CAAC;AAEzC,iGAAiG;AACjG,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,qBAAqB,GAC9B,iBAAiB,CAGnB;AACD,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,UAAU,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,0BAA0B,CAAC;CACxC;AACD,MAAM,WAAW,oBAAoB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,+EAA+E;AAC/E,MAAM,WAAW,mBAAmB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AACD,MAAM,MAAM,mBAAmB,GAC5B;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,oBAAoB,EAAE,CAAA;CAAE,GAC7E;IACA,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,4FAA4F;IAC5F,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,oBAAoB,EAAE,CAAC;CAC7B,GACD;IACA,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,oBAAoB,EAAE,CAAC;CAC7B,CAAC;AAEL,qFAAqF;AACrF,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,EAChD,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAC1E,iBAAiB,CA2BnB;AAED,uEAAuE;AACvE,wBAAgB,qBAAqB,CACpC,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,iBAAiB,EACvB,MAAM,CAAC,EAAE,mBAAmB,GAC1B,mBAAmB,CAwErB"}
@@ -2345,7 +2345,7 @@ function escapeXmlAttr(value) {
2345
2345
  function chartGradientMarkup(def) {
2346
2346
  if (def.kind === "rectPath")
2347
2347
  return `<pattern id="${escapeXmlAttr(def.id)}" patternUnits="objectBoundingBox" patternContentUnits="objectBoundingBox" width="1" height="1"><image href="${escapeXmlAttr(def.href)}" width="1" height="1" preserveAspectRatio="none"/></pattern>`;
2348
- const geometry = def.kind === "linearGradient" ? `x1="${def.x1}" y1="${def.y1}" x2="${def.x2}" y2="${def.y2}"` : `cx="${def.cx}" cy="${def.cy}" r="${def.r}"`;
2348
+ const geometry = def.kind === "linearGradient" ? `${def.gradientUnits ? `gradientUnits="${def.gradientUnits}" ` : ""}x1="${def.x1}" y1="${def.y1}" x2="${def.x2}" y2="${def.y2}"` : `cx="${def.cx}" cy="${def.cy}" r="${def.r}"`;
2349
2349
  const stops = def.stops.map(
2350
2350
  (stop) => `<stop offset="${stop.offset}" stop-color="${escapeXmlAttr(stop.color)}" stop-opacity="${stop.opacity ?? 1}"/>`
2351
2351
  ).join("");
@@ -2343,7 +2343,7 @@ function escapeXmlAttr(value) {
2343
2343
  function chartGradientMarkup(def) {
2344
2344
  if (def.kind === "rectPath")
2345
2345
  return `<pattern id="${escapeXmlAttr(def.id)}" patternUnits="objectBoundingBox" patternContentUnits="objectBoundingBox" width="1" height="1"><image href="${escapeXmlAttr(def.href)}" width="1" height="1" preserveAspectRatio="none"/></pattern>`;
2346
- const geometry = def.kind === "linearGradient" ? `x1="${def.x1}" y1="${def.y1}" x2="${def.x2}" y2="${def.y2}"` : `cx="${def.cx}" cy="${def.cy}" r="${def.r}"`;
2346
+ const geometry = def.kind === "linearGradient" ? `${def.gradientUnits ? `gradientUnits="${def.gradientUnits}" ` : ""}x1="${def.x1}" y1="${def.y1}" x2="${def.x2}" y2="${def.y2}"` : `cx="${def.cx}" cy="${def.cy}" r="${def.r}"`;
2347
2347
  const stops = def.stops.map(
2348
2348
  (stop) => `<stop offset="${stop.offset}" stop-color="${escapeXmlAttr(stop.color)}" stop-opacity="${stop.opacity ?? 1}"/>`
2349
2349
  ).join("");
@@ -1,4 +1,4 @@
1
- import { SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, XML_PROLOG, DGM_XMLNS, xmlEscape, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, preservesSpreadsheetXmlWhitespace, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, normalizeStShapeType, applyCustomShows, applySections, reorderObjectKeysByLocalName, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, deserializePptxFromJson, applyImportedPptxData, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, escAttr, escText, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, OOXML_PERCENT_UNITS, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, emu, extractGuidFromPartName, deobfuscateFont, detectFontFormat, gradFill, parseKinsoku, parseLineStyle, parseChartUpDownBars, parseDataTable, parseChart3DSurfaces, parseChartAxes, parseBubbleChartOptions, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, parseSeriesTrendlines, parseSeriesErrBars, parseSeriesDataPoints, parseMarker, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtPresLayoutVars, readChartManualLayoutValues, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-UQQGC6O3.mjs';
1
+ import { SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, XML_PROLOG, DGM_XMLNS, xmlEscape, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, preservesSpreadsheetXmlWhitespace, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, normalizeStShapeType, applyCustomShows, applySections, reorderObjectKeysByLocalName, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, deserializePptxFromJson, applyImportedPptxData, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, escAttr, escText, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, OOXML_PERCENT_UNITS, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, emu, extractGuidFromPartName, deobfuscateFont, detectFontFormat, gradFill, parseKinsoku, parseLineStyle, parseChartUpDownBars, parseDataTable, parseChart3DSurfaces, parseChartAxes, parseBubbleChartOptions, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, parseSeriesTrendlines, parseSeriesErrBars, parseSeriesDataPoints, parseMarker, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtPresLayoutVars, readChartManualLayoutValues, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-TTPZITQN.mjs';
2
2
  import { DIGITAL_SIGNATURE_ORIGIN_REL_TYPE } from './chunk-KBIJI6P5.mjs';
3
3
  import { resolveSmartArtLayoutCategory } from './chunk-3GXV5MPC.mjs';
4
4
  import { cloneXmlObject, applySmartArtLayoutDefinition, cloneSlide, parseSmartArtLayoutDefinition } from './chunk-54S5A5PZ.mjs';
@@ -38897,9 +38897,11 @@ function readSeriesTreeFields(seriesNode, containerChartType, reader) {
38897
38897
  const lineWidth = Number.isFinite(lineWidthEmu) && lineWidthEmu > 0 ? lineWidthEmu / EMU_PER_POINT : void 0;
38898
38898
  const dash = xml.getChildByLocalName(line, "prstDash")?.["@_val"];
38899
38899
  const uniqueId = parseChartUniqueId(seriesNode, reader.localName);
38900
+ const lineGradientFill = codec && isLineDrawnChartType(containerChartType) ? parseChartGradientFill(line, xml, codec) : void 0;
38900
38901
  return {
38901
38902
  color,
38902
38903
  ...codec ? seriesGradientFill(spPr, xml, codec) : {},
38904
+ ...lineGradientFill ? { lineGradientFill } : {},
38903
38905
  ...trendlines.length > 0 ? { trendlines } : {},
38904
38906
  ...errBars.length > 0 ? { errBars } : {},
38905
38907
  ...dataPoints.length > 0 ? { dataPoints } : {},
@@ -38950,6 +38952,7 @@ function seriesFromNeutral(place, reader) {
38950
38952
  ...numberFormat2 ? { numberFormat: numberFormat2 } : {},
38951
38953
  color: tree.color,
38952
38954
  ...tree.gradientFill ? { gradientFill: tree.gradientFill } : {},
38955
+ ...tree.lineGradientFill ? { lineGradientFill: tree.lineGradientFill } : {},
38953
38956
  ...tree.trendlines ? { trendlines: tree.trendlines } : {},
38954
38957
  ...tree.errBars ? { errBars: tree.errBars } : {},
38955
38958
  ...dataPoints ? { dataPoints } : {},
@@ -44257,7 +44260,7 @@ async function buildMetroBlobs(pptxBytes, slides) {
44257
44260
  return out;
44258
44261
  }
44259
44262
 
44260
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/byte-writer.js
44263
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/byte-writer.js
44261
44264
  var ByteWriter = class {
44262
44265
  chunks = [];
44263
44266
  length = 0;
@@ -44350,7 +44353,7 @@ function record(recType, data, recInstance = 0, isContainer2 = false, recVer = 0
44350
44353
  return out;
44351
44354
  }
44352
44355
 
44353
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/legacy-ppt-record-types.js
44356
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-ppt-record-types.js
44354
44357
  var RT = {
44355
44358
  Document: 1e3,
44356
44359
  DocumentAtom: 1001,
@@ -44457,7 +44460,7 @@ function masterToEmu(mu) {
44457
44460
  return Math.round(mu * EMU_PER_MASTER);
44458
44461
  }
44459
44462
 
44460
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/current-user-writer.js
44463
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/current-user-writer.js
44461
44464
  var USER_NAME = "pptx-viewer";
44462
44465
  var CURRENT_USER_STREAM_SIZE = 4096;
44463
44466
  function buildCurrentUserStream(offsetToCurrentEdit, encrypted) {
@@ -44472,7 +44475,7 @@ function buildCurrentUserStream(offsetToCurrentEdit, encrypted) {
44472
44475
  return padded;
44473
44476
  }
44474
44477
 
44475
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/utils/digests/bit-ops.js
44478
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/utils/digests/bit-ops.js
44476
44479
  function rotl32(x, n) {
44477
44480
  return (x << n | x >>> 32 - n) >>> 0;
44478
44481
  }
@@ -44521,7 +44524,7 @@ function mdStyleDigest(message, initialState, transform2) {
44521
44524
  return out;
44522
44525
  }
44523
44526
 
44524
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/utils/digests/md4.js
44527
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/utils/digests/md4.js
44525
44528
  var INITIAL_STATE = [1732584193, 4023233417, 2562383102, 271733878];
44526
44529
  function f1(x, y, z) {
44527
44530
  return x & y | ~x & z;
@@ -44601,7 +44604,7 @@ function md4(message) {
44601
44604
  return mdStyleDigest(message, INITIAL_STATE, transform);
44602
44605
  }
44603
44606
 
44604
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/blip-writer.js
44607
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/blip-writer.js
44605
44608
  var MSOBLIP_PICT = 4;
44606
44609
  var BLIP_INFO = {
44607
44610
  emf: { recType: OA.BlipEmf, instance: 980, blipType: 2, macBlipType: MSOBLIP_PICT },
@@ -44631,7 +44634,7 @@ function buildFbse(picture, uid, foDelay, size) {
44631
44634
  return record(OA.FBSE, data, info.blipType, false, 2);
44632
44635
  }
44633
44636
 
44634
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/fopt-writer.js
44637
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/fopt-writer.js
44635
44638
  var OPT = {
44636
44639
  rotation: 4,
44637
44640
  /** Combined picture-protection boolean flags; see `shape-props-writer.ts`. */
@@ -44687,7 +44690,7 @@ function buildMetroBlobTertiaryFopt(metroBlob) {
44687
44690
  return record(OA.TertiaryFOPT, data, 1, false, 3);
44688
44691
  }
44689
44692
 
44690
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/bstore-writer.js
44693
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/bstore-writer.js
44691
44694
  function buildDggDefaultProperties() {
44692
44695
  return buildFopt([
44693
44696
  { id: 385, value: 134217732 },
@@ -44745,7 +44748,7 @@ function buildPictureStore(pictures, shapesPerDrawing) {
44745
44748
  };
44746
44749
  }
44747
44750
 
44748
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/font-collection-writer.js
44751
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/font-collection-writer.js
44749
44752
  var LF_FACE_NAME_BYTES = 64;
44750
44753
  function buildFontEntityAtom(name, index) {
44751
44754
  const nameBytes = new ByteWriter().utf16(name.slice(0, 31)).u16(0).toBytes();
@@ -44773,7 +44776,7 @@ function buildEnvironment(fonts, otherTextStyle) {
44773
44776
  return record(RT.Environment, data, 0, true);
44774
44777
  }
44775
44778
 
44776
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/document-writer.js
44779
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/document-writer.js
44777
44780
  function emuToMaster(emu2) {
44778
44781
  return Math.round(emu2 / EMU_PER_MASTER);
44779
44782
  }
@@ -44831,7 +44834,7 @@ function buildDocumentContainer(input) {
44831
44834
  return record(RT.Document, w.toBytes(), 0, true);
44832
44835
  }
44833
44836
 
44834
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/hyperlink-writer.js
44837
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/hyperlink-writer.js
44835
44838
  var II_ACTION = {
44836
44839
  noAction: 0,
44837
44840
  jumpAction: 3,
@@ -45023,7 +45026,7 @@ function buildTextInteractiveInfoAtom(beginChar, endChar) {
45023
45026
  return record(RT.TextInteractiveInfoAtom, data, 0, false, 0);
45024
45027
  }
45025
45028
 
45026
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/media-writer.js
45029
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/media-writer.js
45027
45030
  var MediaCollector = class {
45028
45031
  hyperlinks;
45029
45032
  entries = [];
@@ -45088,7 +45091,7 @@ function buildMediaExObjEntries(media) {
45088
45091
  });
45089
45092
  }
45090
45093
 
45091
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/ole-writer.js
45094
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/ole-writer.js
45092
45095
  var PACKAGE_ROOT_CLSID = new Uint8Array([
45093
45096
  12,
45094
45097
  0,
@@ -45202,7 +45205,7 @@ var OleCollector = class {
45202
45205
  }
45203
45206
  };
45204
45207
 
45205
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/ex-obj-list-writer.js
45208
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/ex-obj-list-writer.js
45206
45209
  function buildExObjList(hyperlinks, ole, media) {
45207
45210
  const oleEntries = ole?.all ?? [];
45208
45211
  const mediaEntries = media?.all ?? [];
@@ -45229,7 +45232,7 @@ function buildExObjList(hyperlinks, ole, media) {
45229
45232
  return record(RT.ExternalObjectList, w.toBytes(), 0, true);
45230
45233
  }
45231
45234
 
45232
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/anchor-writer.js
45235
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/anchor-writer.js
45233
45236
  function emuToMaster2(emu2) {
45234
45237
  return Math.round(emu2 / EMU_PER_MASTER);
45235
45238
  }
@@ -45275,7 +45278,7 @@ function buildChildAnchor(rect) {
45275
45278
  return record(OA.ChildAnchor, buildChildAnchorData(rect), 0, false, 0);
45276
45279
  }
45277
45280
 
45278
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/colors.js
45281
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/colors.js
45279
45282
  var DEFAULT_RGB = "000000";
45280
45283
  function parseHex(rgb) {
45281
45284
  const hex3 = (rgb ?? DEFAULT_RGB).replace(/^#/u, "");
@@ -45297,7 +45300,7 @@ function encodeColorIndex(rgb) {
45297
45300
  return [r, g, b, 254];
45298
45301
  }
45299
45302
 
45300
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/text-exception-writer.js
45303
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/text-exception-writer.js
45301
45304
  var ALIGN_CODE = {
45302
45305
  l: 0,
45303
45306
  ctr: 1,
@@ -45393,7 +45396,7 @@ function writeCfException(w, run, fontIndex) {
45393
45396
  }
45394
45397
  }
45395
45398
 
45396
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/text-atom-writer.js
45399
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/text-atom-writer.js
45397
45400
  function joinParagraphText(body) {
45398
45401
  return body.paragraphs.map((p) => p.runs.map((r) => r.text).join("")).join("\r");
45399
45402
  }
@@ -45454,7 +45457,7 @@ function buildTextAtoms(body, fonts, hyperlinks) {
45454
45457
  return new ByteWriter().bytes(buildTextHeaderAtom(body.textType)).bytes(buildTextCharsAtom(text)).bytes(buildStyleTextPropAtom(body, fontIndex)).bytes(buildRunHyperlinks(body, hyperlinks)).toBytes();
45455
45458
  }
45456
45459
 
45457
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-placeholders-writer.js
45460
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-placeholders-writer.js
45458
45461
  var FSP_FLAGS = 2560;
45459
45462
  var RECTANGLE_SPT = 1;
45460
45463
  var TEXT_TYPE_TITLE = 0;
@@ -45608,14 +45611,14 @@ function buildMasterPlaceholders(placeholders, allocator, fieldFontIndex) {
45608
45611
  });
45609
45612
  }
45610
45613
 
45611
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-style-fonts.js
45614
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-style-fonts.js
45612
45615
  function masterStyleFonts(styles) {
45613
45616
  if (!styles)
45614
45617
  return [];
45615
45618
  return [styles.title, styles.body, styles.other].flatMap((levels) => levels ?? []).map((level) => level.run.fontName).filter((name) => Boolean(name));
45616
45619
  }
45617
45620
 
45618
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-text-styles-writer.js
45621
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-text-styles-writer.js
45619
45622
  var EMPTY_LEVELS = [{ paragraph: {}, run: {} }];
45620
45623
  function buildMasterStyleAtom(recInstance, levels, fontIndex) {
45621
45624
  const w = new ByteWriter().u16(levels.length);
@@ -45654,7 +45657,7 @@ function buildMasterTextStyles(styles, fontIndex) {
45654
45657
  return w.toBytes();
45655
45658
  }
45656
45659
 
45657
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/shape-props-writer.js
45660
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/shape-props-writer.js
45658
45661
  var DASH_CODE = {
45659
45662
  solid: 0,
45660
45663
  dash: 1,
@@ -45717,7 +45720,7 @@ function buildShapeFoptProps(input) {
45717
45720
  return { simple, complex };
45718
45721
  }
45719
45722
 
45720
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/shape-writer.js
45723
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/shape-writer.js
45721
45724
  var FSP_FLAG_FLIPH = 64;
45722
45725
  var FSP_FLAG_FLIPV = 128;
45723
45726
  var FSP_FLAG_OLE_SHAPE = 16;
@@ -45828,7 +45831,7 @@ function buildMediaShapeContainer(media, allocator, hyperlinks, mediaEmbeds, inG
45828
45831
  return record(OA.SpContainer, w.toBytes(), 0, true);
45829
45832
  }
45830
45833
 
45831
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/group-writer.js
45834
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/group-writer.js
45832
45835
  var FSP_FLAG_GROUP = 1;
45833
45836
  var FSP_FLAG_PATRIARCH = 4;
45834
45837
  var FSP_FLAG_HAVE_ANCHOR = 512;
@@ -45872,7 +45875,7 @@ function buildGroupContainer(group, fonts, allocator, hyperlinks, oleEmbeds, med
45872
45875
  return record(OA.SpgrContainer, data.toBytes(), 0, true);
45873
45876
  }
45874
45877
 
45875
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/shape-id-allocator.js
45878
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/shape-id-allocator.js
45876
45879
  var ShapeIdAllocator2 = class {
45877
45880
  current;
45878
45881
  constructor(drawingId, clusterSize) {
@@ -45896,7 +45899,7 @@ var ShapeIdAllocator2 = class {
45896
45899
  }
45897
45900
  };
45898
45901
 
45899
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/drawing-writer.js
45902
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/drawing-writer.js
45900
45903
  var FSP_FLAG_BACKGROUND = 3072;
45901
45904
  var BACKGROUND_RECT_SPT = 1;
45902
45905
  function buildDg(drawingId, shapeCount, lastShapeId) {
@@ -45929,7 +45932,7 @@ function buildDrawing(canvasRect, shapes, backgroundRgb, fonts, drawingId, hyper
45929
45932
  return record(RT.Drawing, dgContainer, 0, true);
45930
45933
  }
45931
45934
 
45932
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/notes-writer.js
45935
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/notes-writer.js
45933
45936
  function buildNotesAtom(slidePersistIdRef) {
45934
45937
  const data = new ByteWriter().i32(slidePersistIdRef).u16(0).u16(0).toBytes();
45935
45938
  return record(RT.NotesAtom, data, 0, false, 1);
@@ -45947,7 +45950,7 @@ function buildNotesContainer(paragraphs, notesRect, slidePersistIdRef, fonts, dr
45947
45950
  return record(RT.Notes, data, 0, true);
45948
45951
  }
45949
45952
 
45950
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/legacy-ppt-record-stream.js
45953
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-ppt-record-stream.js
45951
45954
  var PptParseError = class extends Error {
45952
45955
  constructor(message) {
45953
45956
  super(message);
@@ -46033,7 +46036,7 @@ function recordBytes(data, rec) {
46033
46036
  return data.subarray(rec.dataOffset, rec.dataOffset + rec.recLen);
46034
46037
  }
46035
46038
 
46036
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/color-scheme.js
46039
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/color-scheme.js
46037
46040
  var SCHEME = {
46038
46041
  background: 0,
46039
46042
  textAndLines: 1,
@@ -46103,7 +46106,7 @@ function resolveEscherColor(colorRef, scheme) {
46103
46106
  return toHex3(colorRef & 255, colorRef >>> 8 & 255, colorRef >>> 16 & 255);
46104
46107
  }
46105
46108
 
46106
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/color-scheme-writer.js
46109
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/color-scheme-writer.js
46107
46110
  function buildColorSchemeAtom(recInstance = 1, colors) {
46108
46111
  const w = new ByteWriter();
46109
46112
  for (const rgb of colors?.length === 8 ? colors : DEFAULT_SCHEME) {
@@ -46112,7 +46115,7 @@ function buildColorSchemeAtom(recInstance = 1, colors) {
46112
46115
  return record(RT.ColorSchemeAtom, w.toBytes(), recInstance, false, 0);
46113
46116
  }
46114
46117
 
46115
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/slide-writer.js
46118
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/slide-writer.js
46116
46119
  var SLIDE_FLAG_MASTER_OBJECTS = 1;
46117
46120
  var SLIDE_FLAG_MASTER_SCHEME = 2;
46118
46121
  var SLIDE_FLAG_MASTER_BACKGROUND = 4;
@@ -46153,7 +46156,7 @@ function buildMainMasterContainer(slideRect, drawingId, hyperlinks, oleEmbeds, m
46153
46156
  return record(RT.MainMaster, data, 0, true);
46154
46157
  }
46155
46158
 
46156
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/document-stream-layout.js
46159
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/document-stream-layout.js
46157
46160
  function masterSlideId(index) {
46158
46161
  return MASTER_SLIDE_ID_SENTINEL + index;
46159
46162
  }
@@ -46278,10 +46281,10 @@ function ensureMinimumDocumentStreamSize(contentSizeWithoutPadding, maxPersistId
46278
46281
  return Math.max(0, TARGET_MINIMUM - projectedTotal);
46279
46282
  }
46280
46283
 
46281
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/crypto-constants.js
46284
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/crypto-constants.js
46282
46285
  var RC4_ALG_ID2 = 26625;
46283
46286
 
46284
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/utils/rc4-cipher.js
46287
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/utils/rc4-cipher.js
46285
46288
  function rc4Cipher(key2, data) {
46286
46289
  if (key2.length === 0) {
46287
46290
  throw new Error("RC4 key must not be empty.");
@@ -46312,7 +46315,7 @@ function rc4Cipher(key2, data) {
46312
46315
  return out;
46313
46316
  }
46314
46317
 
46315
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/rc4-cryptoapi-key.js
46318
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/rc4-cryptoapi-key.js
46316
46319
  var PADDED_40_BIT_KEY_BYTES = 16;
46317
46320
  async function rc4CryptoApiKeyBase(password, salt) {
46318
46321
  return hash("SHA-1", concatArrays(salt, encodePasswordUtf16LE(password)));
@@ -46353,7 +46356,7 @@ async function rc4CryptoApiEncryptVerifier(key0, verifier) {
46353
46356
  };
46354
46357
  }
46355
46358
 
46356
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/rc4-cryptoapi-streams.js
46359
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/rc4-cryptoapi-streams.js
46357
46360
  var UID_SIZE = 16;
46358
46361
  var METAFILE_HEADER_SIZE = 34;
46359
46362
  var BITMAP_TAG_SIZE = 1;
@@ -46426,7 +46429,7 @@ async function cipherPicturesStream(stream, keyFor, mode) {
46426
46429
  return out;
46427
46430
  }
46428
46431
 
46429
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/encrypt-writer.js
46432
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/encrypt-writer.js
46430
46433
  var CSP_NAME = "Microsoft Enhanced Cryptographic Provider v1.0";
46431
46434
  var KEY_SIZE_BITS = 128;
46432
46435
  var SALT_SIZE = 16;
@@ -46459,7 +46462,7 @@ async function encryptPicturesStream(stream, ctx) {
46459
46462
  return cipherPicturesStream(stream, ctx.keyFor, "encrypt");
46460
46463
  }
46461
46464
 
46462
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-relative-runs.js
46465
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-relative-runs.js
46463
46466
  var STYLE_KEYS = ["bold", "italic", "underline"];
46464
46467
  function levelsFor(styles, textType) {
46465
46468
  switch (textType) {
@@ -46525,7 +46528,7 @@ function withMasterRelativeRunStyles(deck) {
46525
46528
  };
46526
46529
  }
46527
46530
 
46528
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/persist-writer.js
46531
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/persist-writer.js
46529
46532
  var MAX_RUN = 4095;
46530
46533
  function buildPersistDirectoryAtom(entries) {
46531
46534
  const sorted = [...entries].sort((a, b) => a[0] - b[0]);
@@ -46555,7 +46558,7 @@ function buildEncryptedUserEditAtom(input) {
46555
46558
  return record(RT.UserEditAtom, data, 0, false, 0);
46556
46559
  }
46557
46560
 
46558
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/ppt-clsid.js
46561
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/ppt-clsid.js
46559
46562
  var PPT_STORAGE_CLSID = new Uint8Array([
46560
46563
  16,
46561
46564
  141,
@@ -46575,7 +46578,7 @@ var PPT_STORAGE_CLSID = new Uint8Array([
46575
46578
  232
46576
46579
  ]);
46577
46580
 
46578
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/writer/write-ppt.js
46581
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/write-ppt.js
46579
46582
  async function finishUnencrypted(layout, lastSlideId) {
46580
46583
  const w = new ByteWriter().append(layout.bytes);
46581
46584
  const dirAtom = buildPersistDirectoryAtom(layout.offsets);
@@ -83454,7 +83457,7 @@ async function inflateZlib(data) {
83454
83457
  }
83455
83458
  }
83456
83459
 
83457
- // ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/ppt/persist-directory.js
83460
+ // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/persist-directory.js
83458
83461
  var DEFAULT_MAX_EDITS = 1e4;
83459
83462
  var DEFAULT_MAX_ENTRIES = 1e6;
83460
83463
  function checkedLimit(value) {
@@ -1,4 +1,4 @@
1
- import { hasTextProperties, isImageLikeElement, blobUrlToDataUrl, getSubstituteFontFamily, stripXmlOrderSuffix } from './chunk-UQQGC6O3.mjs';
1
+ import { hasTextProperties, isImageLikeElement, blobUrlToDataUrl, getSubstituteFontFamily, stripXmlOrderSuffix } from './chunk-TTPZITQN.mjs';
2
2
 
3
3
  // pptx/converter/media-context.ts
4
4
  var MIME_TO_EXT = {