pptx-vue-viewer 1.1.70 → 1.1.72

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 (58) hide show
  1. package/dist/{dist-6OajfxoW.cjs → dist-5-zHv1rG.cjs} +294 -258
  2. package/dist/dist-5-zHv1rG.cjs.br +0 -0
  3. package/dist/dist-5-zHv1rG.cjs.gz +0 -0
  4. package/dist/{dist-CU9pFdH4.js → dist-Pb0PU5-M.js} +294 -258
  5. package/dist/dist-Pb0PU5-M.js.br +0 -0
  6. package/dist/dist-Pb0PU5-M.js.gz +0 -0
  7. package/dist/gif-encoder-CrLCnuFi.js +2 -0
  8. package/dist/gif-encoder-CrLCnuFi.js.br +0 -0
  9. package/dist/gif-encoder-CrLCnuFi.js.gz +0 -0
  10. package/dist/gif-encoder-Cvq0eeFV.cjs +2 -0
  11. package/dist/gif-encoder-Cvq0eeFV.cjs.br +0 -0
  12. package/dist/gif-encoder-Cvq0eeFV.cjs.gz +0 -0
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.cjs.br +0 -0
  15. package/dist/index.cjs.gz +0 -0
  16. package/dist/index.js +1 -1
  17. package/dist/index.js.br +0 -0
  18. package/dist/index.js.gz +0 -0
  19. package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
  20. package/dist/viewer/components/MobileBottomBar.vue.d.ts +2 -2
  21. package/dist/viewer/components/inspector/ArrangePanel.vue.d.ts +2 -1
  22. package/dist/viewer/components/inspector/ArrangePanel.vue.d.ts.map +1 -1
  23. package/dist/viewer/components/inspector/InspectorPane.vue.d.ts +1 -0
  24. package/dist/viewer/components/inspector/InspectorPane.vue.d.ts.map +1 -1
  25. package/dist/viewer/components/ribbon/ArrangeSection.vue.d.ts +2 -0
  26. package/dist/viewer/components/ribbon/ArrangeSection.vue.d.ts.map +1 -1
  27. package/dist/viewer/components/ribbon/RibbonToolbar.vue.d.ts.map +1 -1
  28. package/dist/viewer/components/ribbon/ribbon-constants.d.ts +4 -0
  29. package/dist/viewer/components/ribbon/ribbon-constants.d.ts.map +1 -1
  30. package/dist/viewer/components/ribbon/ribbon-types.d.ts +2 -0
  31. package/dist/viewer/components/ribbon/ribbon-types.d.ts.map +1 -1
  32. package/dist/viewer/index.cjs +1 -1
  33. package/dist/viewer/index.cjs.br +0 -0
  34. package/dist/viewer/index.cjs.gz +0 -0
  35. package/dist/viewer/index.js +1 -1
  36. package/dist/viewer/index.js.br +0 -0
  37. package/dist/viewer/index.js.gz +0 -0
  38. package/dist/{viewer-JI1G6JJP.js → viewer-BLDnvWG1.js} +3789 -3703
  39. package/dist/viewer-BLDnvWG1.js.br +0 -0
  40. package/dist/viewer-BLDnvWG1.js.gz +0 -0
  41. package/dist/{viewer-CMxLdsyr.cjs → viewer-BRQrwJS4.cjs} +2104 -2018
  42. package/dist/viewer-BRQrwJS4.cjs.br +0 -0
  43. package/dist/viewer-BRQrwJS4.cjs.gz +0 -0
  44. package/package.json +1 -1
  45. package/dist/dist-6OajfxoW.cjs.br +0 -0
  46. package/dist/dist-6OajfxoW.cjs.gz +0 -0
  47. package/dist/dist-CU9pFdH4.js.br +0 -0
  48. package/dist/dist-CU9pFdH4.js.gz +0 -0
  49. package/dist/gif-encoder-DZktVC_Y.js +0 -2
  50. package/dist/gif-encoder-DZktVC_Y.js.br +0 -3
  51. package/dist/gif-encoder-DZktVC_Y.js.gz +0 -0
  52. package/dist/gif-encoder-DxPCMdnk.cjs +0 -2
  53. package/dist/gif-encoder-DxPCMdnk.cjs.br +0 -0
  54. package/dist/gif-encoder-DxPCMdnk.cjs.gz +0 -0
  55. package/dist/viewer-CMxLdsyr.cjs.br +0 -0
  56. package/dist/viewer-CMxLdsyr.cjs.gz +0 -0
  57. package/dist/viewer-JI1G6JJP.js.br +0 -0
  58. package/dist/viewer-JI1G6JJP.js.gz +0 -0
@@ -4029,8 +4029,8 @@ var zt = a({
4029
4029
  COLOR_MAP_ALIAS_KEYS: () => tl,
4030
4030
  CONNECTOR_ARROW_OPTIONS: () => Un,
4031
4031
  CONNECTOR_GEOMETRY_OPTIONS: () => $n,
4032
- ChartBuilder: () => sw,
4033
- ConnectorBuilder: () => lw,
4032
+ ChartBuilder: () => cw,
4033
+ ConnectorBuilder: () => dw,
4034
4034
  ConnectorXmlFactory: () => Ve,
4035
4035
  DEFAULT_CANVAS_HEIGHT: () => 720,
4036
4036
  DEFAULT_CANVAS_WIDTH: () => Dn,
@@ -4047,12 +4047,12 @@ var zt = a({
4047
4047
  DIGITAL_SIGNATURE_ORIGIN_REL_TYPE: () => Zo,
4048
4048
  DIGITAL_SIGNATURE_REL_TYPE: () => Jo,
4049
4049
  DataIntegrityError: () => Xc,
4050
- DocumentConverter: () => Nw,
4050
+ DocumentConverter: () => jw,
4051
4051
  EFFECT_LST_ORDER: () => hn,
4052
4052
  EMPHASIS_PRESETS: () => Wp,
4053
- EMU_PER_INCH: () => mw,
4054
- EMU_PER_PIXEL: () => uw,
4055
- EMU_PER_POINT: () => fw,
4053
+ EMU_PER_INCH: () => gw,
4054
+ EMU_PER_PIXEL: () => fw,
4055
+ EMU_PER_POINT: () => yw,
4056
4056
  EMU_PER_PX: () => Ln,
4057
4057
  ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV: () => sa,
4058
4058
  ENTERPRISE_REQUIRE_REVOCATION_ENV: () => aa,
@@ -4064,16 +4064,16 @@ var zt = a({
4064
4064
  EncryptedFileError: () => Bc,
4065
4065
  FONT_SUBSTITUTION_MAP: () => bh,
4066
4066
  FreeformPathBuilder: () => Vb,
4067
- GroupBuilder: () => dw,
4068
- ImageBuilder: () => ow,
4067
+ GroupBuilder: () => pw,
4068
+ ImageBuilder: () => sw,
4069
4069
  IncorrectPasswordError: () => Uc,
4070
4070
  MAX_TABLE_DIMENSION: () => 100,
4071
4071
  MAX_ZIP_ENTRY_COUNT: () => Sa,
4072
4072
  MIN_ELEMENT_SIZE: () => 12,
4073
4073
  MIN_TABLE_DIMENSION: () => 1,
4074
4074
  MOTION_PATH_PRESETS: () => Hp,
4075
- MediaBuilder: () => cw,
4076
- MediaContext: () => Iw,
4075
+ MediaBuilder: () => hw,
4076
+ MediaContext: () => Lw,
4077
4077
  MediaGraphicFrameXmlFactory: () => Ye,
4078
4078
  OOXML_TO_PRESET_EMPH: () => Zi,
4079
4079
  OOXML_TO_PRESET_ENTR: () => qi,
@@ -4111,7 +4111,7 @@ var zt = a({
4111
4111
  PptxHandlerRuntime: () => Zg,
4112
4112
  PptxHandlerRuntimeFactory: () => Jg,
4113
4113
  PptxLoadDataBuilder: () => Wr,
4114
- PptxMarkdownConverter: () => uT,
4114
+ PptxMarkdownConverter: () => fT,
4115
4115
  PptxMediaDataParser: () => Lr,
4116
4116
  PptxNativeAnimationService: () => Xi,
4117
4117
  PptxPresentationSaveBuilder: () => nn,
@@ -4148,19 +4148,19 @@ var zt = a({
4148
4148
  SUPPORTED_XML_CANON_TRANSFORMS: () => ra,
4149
4149
  SWITCHABLE_LAYOUT_TYPES: () => Nd,
4150
4150
  SYSTEM_COLOR_MAP: () => Fn,
4151
- ShapeBuilder: () => iw,
4151
+ ShapeBuilder: () => aw,
4152
4152
  SlideBuilder: () => Ee,
4153
- SlideProcessor: () => sT,
4154
- SlideSizes: () => Cw,
4155
- SvgExporter: () => kT,
4153
+ SlideProcessor: () => cT,
4154
+ SlideSizes: () => _w,
4155
+ SvgExporter: () => PT,
4156
4156
  TC_PR_BORDERS_ORDER: () => un,
4157
4157
  THEME_COLOR_SCHEME_KEYS: () => Qt,
4158
4158
  THEME_PRESETS: () => te,
4159
4159
  TRANSITION_VALID_DIRECTIONS: () => Gt,
4160
- TableBuilder: () => aw,
4161
- TextBuilder: () => rw,
4160
+ TableBuilder: () => lw,
4161
+ TextBuilder: () => ow,
4162
4162
  TextShapeXmlFactory: () => Ke,
4163
- ThemePresets: () => kw,
4163
+ ThemePresets: () => Pw,
4164
4164
  VML_SHAPE_TAGS: () => Is,
4165
4165
  XMLDSIG_NS: () => ta,
4166
4166
  XML_TRANSFORM_ENVELOPED_SIGNATURE: () => na,
@@ -4207,8 +4207,8 @@ var zt = a({
4207
4207
  cloneTemplateElementsBySlideId: () => hl,
4208
4208
  cloneTextStyle: () => sl,
4209
4209
  cloneXmlObject: () => pl,
4210
- cm: () => yw,
4211
- cmToEmu: () => Tw,
4210
+ cm: () => bw,
4211
+ cmToEmu: () => kw,
4212
4212
  colorWithOpacity: () => Sn,
4213
4213
  colorsEqual: () => kr,
4214
4214
  combineShapes: () => Rb,
@@ -4233,8 +4233,8 @@ var zt = a({
4233
4233
  createFreeformElement: () => Ne,
4234
4234
  createGroupElement: () => Re,
4235
4235
  createImageElement: () => Fe,
4236
- createLayout: () => zv,
4237
- createLayouts: () => Gv,
4236
+ createLayout: () => Gv,
4237
+ createLayouts: () => Wv,
4238
4238
  createMediaElement: () => Be,
4239
4239
  createModifyVerifier: () => gd,
4240
4240
  createPptxSaveConstants: () => ko,
@@ -4246,14 +4246,14 @@ var zt = a({
4246
4246
  createTemplateShapeRawXml: () => Ml,
4247
4247
  createTextElement: () => Me,
4248
4248
  createUniformTextSegments: () => xl,
4249
- dataUrlToMediaBytes: () => Mw,
4249
+ dataUrlToMediaBytes: () => Iw,
4250
4250
  decodeOle10Native: () => qo,
4251
4251
  decodeXmlEntities: () => So,
4252
4252
  decomposeSmartArt: () => fc,
4253
4253
  decryptPptx: () => ad,
4254
4254
  demoteSmartArtNode: () => kc,
4255
4255
  deobfuscateFont: () => La,
4256
- deriveOutputPath: () => Rw,
4256
+ deriveOutputPath: () => Ew,
4257
4257
  detectDigitalSignatures: () => pa,
4258
4258
  detectFileFormat: () => Dc,
4259
4259
  detectFontFormat: () => Ra,
@@ -4267,7 +4267,7 @@ var zt = a({
4267
4267
  duplicateSlide: () => rv,
4268
4268
  elementActionToPptxAction: () => Ll,
4269
4269
  elementHasAction: () => Dl,
4270
- emuToPixels: () => Sw,
4270
+ emuToPixels: () => ww,
4271
4271
  encryptPptx: () => sd,
4272
4272
  ensureArrayValue: () => vl,
4273
4273
  escapeXmlAttr: () => yd,
@@ -4284,15 +4284,15 @@ var zt = a({
4284
4284
  extractTagAttribute: () => Sd,
4285
4285
  fetchUrlToBytes: () => El,
4286
4286
  findCustomShow: () => Pp,
4287
- findLayoutByName: () => Wv,
4288
- findLayoutByType: () => Hv,
4287
+ findLayoutByName: () => Hv,
4288
+ findLayoutByType: () => Vv,
4289
4289
  findPlaceholders: () => WS,
4290
4290
  findText: () => KS,
4291
4291
  formatCommentTimestamp: () => wl,
4292
4292
  fragmentShapes: () => Bb,
4293
4293
  generateFontGuid: () => Ba,
4294
- generateLayoutXml: () => jv,
4295
- generateMediaFilename: () => Aw,
4294
+ generateLayoutXml: () => Ov,
4295
+ generateMediaFilename: () => Fw,
4296
4296
  getAdjustmentAwareClipPath: () => vy,
4297
4297
  getAdjustmentAwareShapeClipPath: () => tb,
4298
4298
  getAnimationPresetInfo: () => Yp,
@@ -4308,7 +4308,7 @@ var zt = a({
4308
4308
  getCssBorderDashStyle: () => _l,
4309
4309
  getCustomShowNames: () => Ap,
4310
4310
  getCustomShowPositionLabel: () => Fp,
4311
- getDirectory: () => Bw,
4311
+ getDirectory: () => Nw,
4312
4312
  getElementLabel: () => fl,
4313
4313
  getElementTextContent: () => yl,
4314
4314
  getElementTransform: () => sb,
@@ -4331,7 +4331,7 @@ var zt = a({
4331
4331
  getSupportedNamespaces: () => Us,
4332
4332
  getSvgStrokeDasharray: () => Pl,
4333
4333
  getTextCompensationTransform: () => lb,
4334
- getThemePreset: () => _w,
4334
+ getThemePreset: () => Mw,
4335
4335
  getZoomElements: () => uh,
4336
4336
  getZoomTargetSlideIndexes: () => gh,
4337
4337
  guidToKey: () => Fa,
@@ -4343,10 +4343,10 @@ var zt = a({
4343
4343
  hasTextProperties: () => Zt,
4344
4344
  hexToRgbChannels: () => bn,
4345
4345
  hslToRgb: () => Cn,
4346
- inches: () => gw,
4347
- inchesToEmu: () => ww,
4346
+ inches: () => xw,
4347
+ inchesToEmu: () => Cw,
4348
4348
  inferOleExtensionFromTarget: () => Nr,
4349
- interpolateShapeGeometry: () => Qv,
4349
+ interpolateShapeGeometry: () => tw,
4350
4350
  intersectPolygons: () => jb,
4351
4351
  intersectShapes: () => Lb,
4352
4352
  intersectSvgPaths: () => Ub,
@@ -4376,13 +4376,13 @@ var zt = a({
4376
4376
  mergeStyleParts: () => Dp,
4377
4377
  mergeThemeColorOverride: () => rl,
4378
4378
  mimeTypeForOleFile: () => jr,
4379
- mm: () => xw,
4379
+ mm: () => Sw,
4380
4380
  moveSlidesToSection: () => PS,
4381
4381
  navigateCustomShow: () => Ip,
4382
4382
  normalizeHexColor: () => xn,
4383
4383
  normalizeNamespaceUri: () => qd,
4384
4384
  normalizePartPath: () => Td,
4385
- normalizePath: () => Dw,
4385
+ normalizePath: () => Rw,
4386
4386
  normalizeStrictXml: () => Jd,
4387
4387
  normalizeStrokeDashType: () => kl,
4388
4388
  obfuscateFont: () => Da,
@@ -4424,14 +4424,14 @@ var zt = a({
4424
4424
  parseShapeProps: () => Va,
4425
4425
  parseSignatureXml: () => ga,
4426
4426
  parseSlideDrawingGuides: () => li,
4427
- parseSvgPath: () => ew,
4427
+ parseSvgPath: () => nw,
4428
4428
  parseVmlElement: () => Fs,
4429
4429
  parseVmlElements: () => Ls,
4430
- pixelsToEmu: () => vw,
4430
+ pixelsToEmu: () => Tw,
4431
4431
  polygonsToSvgPath: () => vb,
4432
4432
  pptxActionToElementAction: () => Fl,
4433
4433
  promoteSmartArtNode: () => Cc,
4434
- pt: () => bw,
4434
+ pt: () => vw,
4435
4435
  reResolveSlideColors: () => sp,
4436
4436
  readFileAsDataUrl: () => Cl,
4437
4437
  rebuildTableStructureInRawXml: () => Qm,
@@ -4447,10 +4447,10 @@ var zt = a({
4447
4447
  reorderSmartArtNode: () => Tc,
4448
4448
  reorderSmartArtNodeToIndex: () => Pc,
4449
4449
  repairPptx: () => Qh,
4450
- replaceShapeGeometry: () => Zv,
4450
+ replaceShapeGeometry: () => Jv,
4451
4451
  replaceText: () => JS,
4452
4452
  replaceTextInSlide: () => ZS,
4453
- replaceWithCustomGeometry: () => Jv,
4453
+ replaceWithCustomGeometry: () => Qv,
4454
4454
  resetCloneIdCounter: () => ev,
4455
4455
  resetDecomposeCounter: () => zl,
4456
4456
  resetIdCounter: () => Se,
@@ -4467,7 +4467,7 @@ var zt = a({
4467
4467
  serializeColorChoice: () => Pr,
4468
4468
  serializeCondition: () => Ri,
4469
4469
  serializeConditionList: () => Ni,
4470
- serializeSvgPath: () => nw,
4470
+ serializeSvgPath: () => rw,
4471
4471
  setChartAxis: () => Sv,
4472
4472
  setChartAxisGridlineStyle: () => Mv,
4473
4473
  setChartAxisLogScale: () => _v,
@@ -4476,7 +4476,8 @@ var zt = a({
4476
4476
  setChartDataLabels: () => yv,
4477
4477
  setChartDataPointExplosion: () => Dv,
4478
4478
  setChartDataPointFill: () => Lv,
4479
- setChartDataPointLabel: () => Bv,
4479
+ setChartDataPointLabel: () => Rv,
4480
+ setChartDataPointMarker: () => Bv,
4480
4481
  setChartGrouping: () => fv,
4481
4482
  setChartLegend: () => gv,
4482
4483
  setChartSeriesChartType: () => Iv,
@@ -4486,6 +4487,7 @@ var zt = a({
4486
4487
  setChartSeriesTrendline: () => xv,
4487
4488
  setChartTitle: () => mv,
4488
4489
  setChartType: () => cv,
4490
+ setElementLocked: () => iw,
4489
4491
  setSmartArtNodeStyle: () => Mc,
4490
4492
  shouldRenderFallbackLabel: () => gl,
4491
4493
  shouldReturnToZoomSlide: () => yh,
@@ -47504,7 +47506,7 @@ function Lv(t, e, n, r) {
47504
47506
  t.spPr && (t.spPr = {
47505
47507
  ...t.spPr,
47506
47508
  fillColor: void 0
47507
- }, void 0 === t.spPr.fillColor && void 0 === t.spPr.strokeColor && void 0 === t.spPr.strokeWidth && void 0 === t.spPr.strokeDashStyle && (t.spPr = void 0)), Rv(i, n);
47509
+ }, void 0 === t.spPr.fillColor && void 0 === t.spPr.strokeColor && void 0 === t.spPr.strokeWidth && void 0 === t.spPr.strokeDashStyle && (t.spPr = void 0)), Nv(i, n);
47508
47510
  return;
47509
47511
  }
47510
47512
  const o = Fv(i, n);
@@ -47518,12 +47520,30 @@ function Dv(t, e, n, r) {
47518
47520
  const i = t.chartData.series[e];
47519
47521
  if (null === r) {
47520
47522
  const t = i.dataPoints?.find((t) => t.idx === n);
47521
- t && (t.explosion = void 0, Rv(i, n));
47523
+ t && (t.explosion = void 0, Nv(i, n));
47522
47524
  return;
47523
47525
  }
47524
47526
  Fv(i, n).explosion = r;
47525
47527
  }
47526
47528
  function Bv(t, e, n, r) {
47529
+ lv(t, e);
47530
+ const i = t.chartData.series[e];
47531
+ if (null === r) {
47532
+ const t = i.dataPoints?.find((t) => t.idx === n);
47533
+ t && (t.marker = void 0, Nv(i, n));
47534
+ return;
47535
+ }
47536
+ const o = Fv(i, n), a = o.marker, s = {
47537
+ symbol: r.symbol ?? a?.symbol ?? "circle",
47538
+ size: r.size ?? a?.size,
47539
+ spPr: a?.spPr ? { ...a.spPr } : void 0
47540
+ };
47541
+ void 0 !== r.fillColor && (s.spPr = {
47542
+ ...s.spPr ?? {},
47543
+ fillColor: r.fillColor
47544
+ }), o.marker = s;
47545
+ }
47546
+ function Rv(t, e, n, r) {
47527
47547
  lv(t, e);
47528
47548
  const i = t.chartData.series[e];
47529
47549
  if (null === r) {
@@ -47537,35 +47557,35 @@ function Bv(t, e, n, r) {
47537
47557
  void 0 !== e.showValue && (t.showVal = e.showValue), void 0 !== e.showCategory && (t.showCatName = e.showCategory), void 0 !== e.showSeriesName && (t.showSerName = e.showSeriesName), void 0 !== e.showPercent && (t.showPercent = e.showPercent), void 0 !== e.showLegendKey && (t.showLegendKey = e.showLegendKey), void 0 !== e.position && (t.position = e.position), void 0 !== e.text && (t.text = "" === e.text ? void 0 : e.text);
47538
47558
  }(a, r);
47539
47559
  }
47540
- function Rv(t, e) {
47560
+ function Nv(t, e) {
47541
47561
  if (!t.dataPoints) return;
47542
47562
  const n = t.dataPoints.find((t) => t.idx === e);
47543
47563
  if (!n) return;
47544
47564
  void 0 === n.spPr && void 0 === n.explosion && void 0 === n.invertIfNegative && void 0 === n.marker && (t.dataPoints = t.dataPoints.filter((t) => t.idx !== e), 0 === t.dataPoints.length && (t.dataPoints = void 0));
47545
47565
  }
47546
- var Nv = 9525;
47547
- function Ev(t) {
47548
- return Math.round(t * Nv);
47549
- }
47566
+ var Ev = 9525;
47550
47567
  function jv(t) {
47568
+ return Math.round(t * Ev);
47569
+ }
47570
+ function Ov(t) {
47551
47571
  const e = t.type ?? "obj", n = (t.placeholders ?? []).map((t, e) => function(t, e) {
47552
- const n = t.name ?? `${t.type.charAt(0).toUpperCase() + t.type.slice(1)} Placeholder ${e - 1}`, r = Ev(t.x), i = Ev(t.y), o = Ev(t.width), a = Ev(t.height), s = void 0 !== t.idx ? ` idx="${t.idx}"` : "";
47572
+ const n = t.name ?? `${t.type.charAt(0).toUpperCase() + t.type.slice(1)} Placeholder ${e - 1}`, r = jv(t.x), i = jv(t.y), o = jv(t.width), a = jv(t.height), s = void 0 !== t.idx ? ` idx="${t.idx}"` : "";
47553
47573
  return ` <p:sp>\n <p:nvSpPr>\n <p:cNvPr id="${e}" name="${n}"/>\n <p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr>\n <p:nvPr><p:ph type="${t.type}"${s}/></p:nvPr>\n </p:nvSpPr>\n <p:spPr>\n <a:xfrm><a:off x="${r}" y="${i}"/><a:ext cx="${o}" cy="${a}"/></a:xfrm>\n </p:spPr>\n <p:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p><a:endParaRPr lang="en-US"/></a:p>\n </p:txBody>\n </p:sp>`;
47554
47574
  }(t, e + 2)).join("\n");
47555
47575
  let r = "";
47556
47576
  if (t.backgroundColor) r = ` <p:bg><p:bgPr><a:solidFill><a:srgbClr val="${t.backgroundColor.replace(/^#/, "").toUpperCase()}"/></a:solidFill><a:effectLst/></p:bgPr></p:bg>\n`;
47557
47577
  return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sldLayout xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"\n xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"\n xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"\n type="${e}" preserve="1">\n <p:cSld name="${t.name}">\n${r} <p:spTree>\n <p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>\n <p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>\n${n}\n </p:spTree>\n </p:cSld>\n <p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr>\n</p:sldLayout>`;
47558
47578
  }
47559
- function Ov(t = 1) {
47579
+ function $v(t = 1) {
47560
47580
  return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="../slideMasters/slideMaster${t}.xml"/>\n</Relationships>`;
47561
47581
  }
47562
- function $v(t) {
47582
+ function Uv(t) {
47563
47583
  let e = 0;
47564
47584
  return t.forEach((t) => {
47565
47585
  /^ppt\/slideLayouts\/slideLayout\d+\.xml$/.test(t) && e++;
47566
47586
  }), e;
47567
47587
  }
47568
- async function Uv(t, e, n = 1) {
47588
+ async function Xv(t, e, n = 1) {
47569
47589
  const r = `ppt/slideMasters/_rels/slideMaster${n}.xml.rels`, i = await t.file(r)?.async("string");
47570
47590
  if (!i) throw new Error(`Slide master rels not found at ${r}`);
47571
47591
  const o = `rId${[...i.matchAll(/rId(\d+)/g)].reduce((t, e) => Math.max(t, parseInt(e[1], 10)), 0) + 1}`, a = ` <Relationship Id="${o}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" Target="../slideLayouts/slideLayout${e}.xml"/>`, s = i.replace("</Relationships>", `${a}\n</Relationships>`);
@@ -47575,15 +47595,15 @@ async function Uv(t, e, n = 1) {
47575
47595
  const d = ` <p:sldLayoutId id="${[...c.matchAll(/sldLayoutId\s+id="(\d+)"/g)].reduce((t, e) => Math.max(t, parseInt(e[1], 10)), 2147483648) + 1}" r:id="${o}"/>`, h = c.replace("</p:sldLayoutIdLst>", `${d}\n </p:sldLayoutIdLst>`);
47576
47596
  t.file(l, h);
47577
47597
  }
47578
- async function Xv(t, e) {
47598
+ async function zv(t, e) {
47579
47599
  const n = "[Content_Types].xml", r = await t.file(n)?.async("string");
47580
47600
  if (!r) throw new Error("Content types file not found");
47581
47601
  const i = ` <Override PartName="/ppt/slideLayouts/slideLayout${e}.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>`, o = r.replace("</Types>", `${i}\n</Types>`);
47582
47602
  t.file(n, o);
47583
47603
  }
47584
- async function zv(t, e, n, r = 1) {
47585
- const i = await t.save(e.slides), o = await l.default.loadAsync(i), a = $v(o) + 1, s = `ppt/slideLayouts/slideLayout${a}.xml`;
47586
- o.file(s, jv(n)), o.file(`ppt/slideLayouts/_rels/slideLayout${a}.xml.rels`, Ov(r)), await Uv(o, a, r), await Xv(o, a);
47604
+ async function Gv(t, e, n, r = 1) {
47605
+ const i = await t.save(e.slides), o = await l.default.loadAsync(i), a = Uv(o) + 1, s = `ppt/slideLayouts/slideLayout${a}.xml`;
47606
+ o.file(s, Ov(n)), o.file(`ppt/slideLayouts/_rels/slideLayout${a}.xml.rels`, $v(r)), await Xv(o, a, r), await zv(o, a);
47587
47607
  const c = await o.generateAsync({ type: "arraybuffer" }), d = new ey(), h = await d.load(c);
47588
47608
  return {
47589
47609
  layoutPath: s,
@@ -47592,16 +47612,16 @@ async function zv(t, e, n, r = 1) {
47592
47612
  data: h
47593
47613
  };
47594
47614
  }
47595
- async function Gv(t, e, n, r = 1) {
47615
+ async function Wv(t, e, n, r = 1) {
47596
47616
  if (0 === n.length) return {
47597
47617
  layoutPaths: [],
47598
47618
  handler: t,
47599
47619
  data: e
47600
47620
  };
47601
- const i = await t.save(e.slides), o = await l.default.loadAsync(i), a = $v(o), s = [];
47621
+ const i = await t.save(e.slides), o = await l.default.loadAsync(i), a = Uv(o), s = [];
47602
47622
  for (let t = 0; t < n.length; t++) {
47603
47623
  const e = n[t], i = a + t + 1, l = `ppt/slideLayouts/slideLayout${i}.xml`;
47604
- o.file(l, jv(e)), o.file(`ppt/slideLayouts/_rels/slideLayout${i}.xml.rels`, Ov(r)), await Uv(o, i, r), await Xv(o, i), s.push(l);
47624
+ o.file(l, Ov(e)), o.file(`ppt/slideLayouts/_rels/slideLayout${i}.xml.rels`, $v(r)), await Xv(o, i, r), await zv(o, i), s.push(l);
47605
47625
  }
47606
47626
  const c = await o.generateAsync({ type: "arraybuffer" }), d = new ey();
47607
47627
  return {
@@ -47610,7 +47630,7 @@ async function Gv(t, e, n, r = 1) {
47610
47630
  data: await d.load(c)
47611
47631
  };
47612
47632
  }
47613
- function Wv(t, e) {
47633
+ function Hv(t, e) {
47614
47634
  const n = e.toLowerCase(), r = t.layoutOptions?.find((t) => t.name.toLowerCase() === n);
47615
47635
  if (r) return r;
47616
47636
  if (t.slideMasters) for (const r of t.slideMasters) {
@@ -47621,11 +47641,11 @@ function Wv(t, e) {
47621
47641
  };
47622
47642
  }
47623
47643
  }
47624
- function Hv(t, e) {
47644
+ function Vv(t, e) {
47625
47645
  const n = t.layoutOptions?.find((t) => t.type === e);
47626
47646
  if (n) return n;
47627
47647
  }
47628
- function Vv(t) {
47648
+ function Yv(t) {
47629
47649
  if (!t || "" === t.trim()) return [];
47630
47650
  const e = [], n = /([MmLlHhVvCcSsQqTtAaZz])([^MmLlHhVvCcSsQqTtAaZz]*)/g;
47631
47651
  let r;
@@ -47653,14 +47673,14 @@ function Vv(t) {
47653
47673
  }
47654
47674
  return e;
47655
47675
  }
47656
- function Yv(t) {
47676
+ function qv(t) {
47657
47677
  return t.map((t) => {
47658
47678
  if ("Z" === t.type) return "Z";
47659
47679
  const e = t.args.map((t) => Number.isInteger(t) ? t.toString() : t.toFixed(4)).join(" ");
47660
47680
  return `${t.type} ${e}`;
47661
47681
  }).join(" ");
47662
47682
  }
47663
- function qv(t) {
47683
+ function Kv(t) {
47664
47684
  switch (t) {
47665
47685
  case "M":
47666
47686
  case "L":
@@ -47674,10 +47694,10 @@ function qv(t) {
47674
47694
  default: return 0;
47675
47695
  }
47676
47696
  }
47677
- function Kv(t) {
47697
+ function Zv(t) {
47678
47698
  const e = [];
47679
47699
  for (const n of t) {
47680
- const t = qv(n.type);
47700
+ const t = Kv(n.type);
47681
47701
  if (0 === t || n.args.length <= t) {
47682
47702
  e.push({
47683
47703
  type: n.type,
@@ -47696,19 +47716,19 @@ function Kv(t) {
47696
47716
  }
47697
47717
  return e;
47698
47718
  }
47699
- function Zv(t, e, n) {
47719
+ function Jv(t, e, n) {
47700
47720
  if (!e || "" === e.trim()) throw new Error("newShapeType must be a non-empty string");
47701
47721
  t.shapeType = e, t.shapeAdjustments = void 0 !== n ? { ...n } : void 0, t.pathData = void 0, t.pathWidth = void 0, t.pathHeight = void 0, t.customGeometryPaths = void 0, t.adjustmentHandles = void 0;
47702
47722
  }
47703
- function Jv(t, e, n, r) {
47723
+ function Qv(t, e, n, r) {
47704
47724
  if (!e || "" === e.trim()) throw new Error("svgPath must be a non-empty string");
47705
47725
  t.shapeType = void 0, t.shapeAdjustments = void 0, t.adjustmentHandles = void 0, t.pathData = e, t.pathWidth = n, t.pathHeight = r, t.customGeometryPaths = void 0;
47706
47726
  }
47707
- function Qv(t, e, n) {
47727
+ function tw(t, e, n) {
47708
47728
  const r = Math.max(0, Math.min(1, n));
47709
47729
  if (0 === r) return t;
47710
47730
  if (1 === r) return e;
47711
- const i = Kv(Vv(t)), o = Kv(Vv(e));
47731
+ const i = Zv(Yv(t)), o = Zv(Yv(e));
47712
47732
  if (0 === i.length && 0 === o.length) return "";
47713
47733
  if (0 === i.length) return e;
47714
47734
  if (0 === o.length) return t;
@@ -47719,7 +47739,7 @@ function Qv(t, e, n) {
47719
47739
  const t = Array.from({ length: n.args.length }).fill(0);
47720
47740
  s.push({
47721
47741
  type: n.type,
47722
- args: n.args.map((e, n) => tw(t[n], e, r))
47742
+ args: n.args.map((e, n) => ew(t[n], e, r))
47723
47743
  });
47724
47744
  continue;
47725
47745
  }
@@ -47727,7 +47747,7 @@ function Qv(t, e, n) {
47727
47747
  const t = Array.from({ length: e.args.length }).fill(0);
47728
47748
  s.push({
47729
47749
  type: e.type,
47730
- args: e.args.map((e, n) => tw(e, t[n], r))
47750
+ args: e.args.map((e, n) => ew(e, t[n], r))
47731
47751
  });
47732
47752
  continue;
47733
47753
  }
@@ -47743,7 +47763,7 @@ function Qv(t, e, n) {
47743
47763
  const t = "Z" !== e.type ? e : n, i = "Z" === e.type, o = Array.from({ length: t.args.length }).fill(0);
47744
47764
  s.push({
47745
47765
  type: t.type,
47746
- args: t.args.map((t, e) => i ? tw(o[e], t, r) : tw(t, o[e], r))
47766
+ args: t.args.map((t, e) => i ? ew(o[e], t, r) : ew(t, o[e], r))
47747
47767
  });
47748
47768
  continue;
47749
47769
  }
@@ -47751,7 +47771,7 @@ function Qv(t, e, n) {
47751
47771
  const t = Math.max(e.args.length, n.args.length), i = [];
47752
47772
  for (let o = 0; o < t; o++) {
47753
47773
  const t = o < e.args.length ? e.args[o] : 0, a = o < n.args.length ? n.args[o] : 0;
47754
- i.push(tw(t, a, r));
47774
+ i.push(ew(t, a, r));
47755
47775
  }
47756
47776
  s.push({
47757
47777
  type: e.type,
@@ -47762,25 +47782,41 @@ function Qv(t, e, n) {
47762
47782
  const a = r < .5 ? e.type : n.type, l = Math.max(e.args.length, n.args.length), c = [];
47763
47783
  for (let t = 0; t < l; t++) {
47764
47784
  const i = t < e.args.length ? e.args[t] : 0, o = t < n.args.length ? n.args[t] : 0;
47765
- c.push(tw(i, o, r));
47785
+ c.push(ew(i, o, r));
47766
47786
  }
47767
47787
  s.push({
47768
47788
  type: a,
47769
47789
  args: c
47770
47790
  });
47771
47791
  }
47772
- return Yv(s);
47792
+ return qv(s);
47773
47793
  }
47774
- function tw(t, e, n) {
47794
+ function ew(t, e, n) {
47775
47795
  return t + (e - t) * n;
47776
47796
  }
47777
- function ew(t) {
47778
- return Kv(Vv(t));
47779
- }
47780
47797
  function nw(t) {
47781
- return Yv(t);
47798
+ return Zv(Yv(t));
47782
47799
  }
47783
- var rw = class t {
47800
+ function rw(t) {
47801
+ return qv(t);
47802
+ }
47803
+ function iw(t, e, n = {}) {
47804
+ if (!e) {
47805
+ const { locks: e, ...n } = t;
47806
+ return n;
47807
+ }
47808
+ const r = {
47809
+ noMove: !0,
47810
+ noResize: !0,
47811
+ noSelect: !0,
47812
+ ...n
47813
+ };
47814
+ return {
47815
+ ...t,
47816
+ locks: r
47817
+ };
47818
+ }
47819
+ var ow = class t {
47784
47820
  _text;
47785
47821
  _options = {};
47786
47822
  constructor(t) {
@@ -47846,7 +47882,7 @@ var rw = class t {
47846
47882
  build() {
47847
47883
  return Me(this._text, this._options);
47848
47884
  }
47849
- }, iw = class t {
47885
+ }, aw = class t {
47850
47886
  _shapeType;
47851
47887
  _options = {};
47852
47888
  constructor(t) {
@@ -47908,7 +47944,7 @@ var rw = class t {
47908
47944
  build() {
47909
47945
  return Ae(this._shapeType, this._options);
47910
47946
  }
47911
- }, ow = class t {
47947
+ }, sw = class t {
47912
47948
  _source;
47913
47949
  _options = {};
47914
47950
  constructor(t) {
@@ -47941,7 +47977,7 @@ var rw = class t {
47941
47977
  build() {
47942
47978
  return Fe(this._source, this._options);
47943
47979
  }
47944
- }, aw = class t {
47980
+ }, lw = class t {
47945
47981
  _input;
47946
47982
  _options = {};
47947
47983
  constructor() {
@@ -47989,7 +48025,7 @@ var rw = class t {
47989
48025
  build() {
47990
48026
  return Le(this._input, this._options);
47991
48027
  }
47992
- }, sw = class t {
48028
+ }, cw = class t {
47993
48029
  _chartType;
47994
48030
  _input;
47995
48031
  _options = {};
@@ -48033,7 +48069,7 @@ var rw = class t {
48033
48069
  build() {
48034
48070
  return De(this._chartType, this._input, this._options);
48035
48071
  }
48036
- }, lw = class t {
48072
+ }, dw = class t {
48037
48073
  _options = {};
48038
48074
  constructor() {}
48039
48075
  static create() {
@@ -48078,7 +48114,7 @@ var rw = class t {
48078
48114
  build() {
48079
48115
  return Ie(this._options);
48080
48116
  }
48081
- }, cw = class t {
48117
+ }, hw = class t {
48082
48118
  _mediaType;
48083
48119
  _source;
48084
48120
  _options = {};
@@ -48124,7 +48160,7 @@ var rw = class t {
48124
48160
  build() {
48125
48161
  return Be(this._mediaType, this._source, this._options);
48126
48162
  }
48127
- }, dw = class t {
48163
+ }, pw = class t {
48128
48164
  _children = [];
48129
48165
  _options = {};
48130
48166
  constructor() {}
@@ -48155,32 +48191,32 @@ var rw = class t {
48155
48191
  build() {
48156
48192
  return Re(this._children, this._options);
48157
48193
  }
48158
- }, hw = 96, pw = 72, uw = 9525, mw = 914400, fw = 12700;
48159
- function gw(t) {
48160
- return Math.round(t * hw);
48161
- }
48162
- function yw(t) {
48163
- return Math.round(t / 2.54 * hw);
48164
- }
48194
+ }, uw = 96, mw = 72, fw = 9525, gw = 914400, yw = 12700;
48165
48195
  function xw(t) {
48166
- return Math.round(t / 25.4 * hw);
48196
+ return Math.round(t * uw);
48167
48197
  }
48168
48198
  function bw(t) {
48169
- return Math.round(t / pw * hw);
48199
+ return Math.round(t / 2.54 * uw);
48170
48200
  }
48171
48201
  function Sw(t) {
48172
- return Math.round(t / uw);
48202
+ return Math.round(t / 25.4 * uw);
48173
48203
  }
48174
48204
  function vw(t) {
48175
- return Math.round(t * uw);
48205
+ return Math.round(t / mw * uw);
48176
48206
  }
48177
48207
  function ww(t) {
48178
- return Math.round(t * mw);
48208
+ return Math.round(t / fw);
48179
48209
  }
48180
48210
  function Tw(t) {
48181
- return Math.round(t / 2.54 * mw);
48211
+ return Math.round(t * fw);
48212
+ }
48213
+ function Cw(t) {
48214
+ return Math.round(t * gw);
48182
48215
  }
48183
- var Cw = {
48216
+ function kw(t) {
48217
+ return Math.round(t / 2.54 * gw);
48218
+ }
48219
+ var _w = {
48184
48220
  WIDESCREEN_16_9: {
48185
48221
  width: 12192e3,
48186
48222
  height: 6858e3
@@ -48209,7 +48245,7 @@ var Cw = {
48209
48245
  width: 7772400,
48210
48246
  height: 10058400
48211
48247
  }
48212
- }, kw = {
48248
+ }, Pw = {
48213
48249
  OFFICE: {
48214
48250
  name: "Office Theme",
48215
48251
  colors: {
@@ -48379,10 +48415,10 @@ var Cw = {
48379
48415
  }
48380
48416
  }
48381
48417
  };
48382
- function _w(t) {
48383
- return kw[t];
48418
+ function Mw(t) {
48419
+ return Pw[t];
48384
48420
  }
48385
- var Pw = {
48421
+ var Aw = {
48386
48422
  "image/png": "png",
48387
48423
  "image/jpeg": "jpg",
48388
48424
  "image/jpg": "jpg",
@@ -48392,10 +48428,10 @@ var Pw = {
48392
48428
  "image/bmp": "bmp",
48393
48429
  "image/tiff": "tiff"
48394
48430
  };
48395
- function Mw(t) {
48431
+ function Iw(t) {
48396
48432
  const e = t.match(/^data:([^;]+);base64,(.+)$/s);
48397
48433
  if (!e) throw new Error("Invalid data URL format");
48398
- const n = e[1].toLowerCase(), r = Pw[n] ?? function(t) {
48434
+ const n = e[1].toLowerCase(), r = Aw[n] ?? function(t) {
48399
48435
  const e = t.split("/");
48400
48436
  return 2 === e.length ? e[1].replace(/[^a-z0-9]/g, "") : "bin";
48401
48437
  }(n), i = e[2], o = atob(i), a = new Uint8Array(o.length);
@@ -48405,10 +48441,10 @@ function Mw(t) {
48405
48441
  ext: r
48406
48442
  };
48407
48443
  }
48408
- function Aw(t, e) {
48444
+ function Fw(t, e) {
48409
48445
  return `image-${String(t).padStart(3, "0")}.${e.startsWith(".") ? e.slice(1) : e}`;
48410
48446
  }
48411
- var Iw = class {
48447
+ var Lw = class {
48412
48448
  constructor(t, e, n) {
48413
48449
  this.folderName = e, this.fs = n, this.resolvedMediaDir = `${t}/${this.folderName}`;
48414
48450
  }
@@ -48422,12 +48458,12 @@ var Iw = class {
48422
48458
  return this.resolvedMediaDir;
48423
48459
  }
48424
48460
  async saveImage(t, e) {
48425
- const n = Mw(t);
48461
+ const n = Iw(t);
48426
48462
  return this.saveImageBytes(n.bytes, n.ext, e);
48427
48463
  }
48428
48464
  async saveImageBytes(t, e, n) {
48429
48465
  await this.ensureInitialized(), this.imageIndex += 1;
48430
- const r = Aw(this.imageIndex, e), i = n ? `${n}-${r}` : r;
48466
+ const r = Fw(this.imageIndex, e), i = n ? `${n}-${r}` : r;
48431
48467
  if (this.fs) {
48432
48468
  const e = `${this.resolvedMediaDir}/${i}`;
48433
48469
  await this.fs.writeBinaryFile(e, t);
@@ -48438,32 +48474,32 @@ var Iw = class {
48438
48474
  this.initialized || (this.fs && await this.fs.createFolder(this.resolvedMediaDir), this.initialized = !0);
48439
48475
  }
48440
48476
  };
48441
- function Fw(t) {
48477
+ function Dw(t) {
48442
48478
  return null == t ? "" : String(t).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
48443
48479
  }
48444
- var Lw = [
48480
+ var Bw = [
48445
48481
  "http://",
48446
48482
  "https://",
48447
48483
  "mailto:",
48448
48484
  "tel:",
48449
48485
  "#"
48450
48486
  ];
48451
- function Dw(t) {
48487
+ function Rw(t) {
48452
48488
  return t.trim().replace(/\\/g, "/");
48453
48489
  }
48454
- function Bw(t) {
48455
- const e = Dw(t), n = e.lastIndexOf("/");
48490
+ function Nw(t) {
48491
+ const e = Rw(t), n = e.lastIndexOf("/");
48456
48492
  return n < 0 ? "." : 0 === n ? "/" : e.slice(0, n);
48457
48493
  }
48458
- function Rw(t, e) {
48494
+ function Ew(t, e) {
48459
48495
  if (e) return e;
48460
48496
  if (!t) return;
48461
- const n = Dw(t), r = n.lastIndexOf(".");
48497
+ const n = Rw(t), r = n.lastIndexOf(".");
48462
48498
  return r < 0 ? `${n}.md` : `${n.slice(0, r)}.md`;
48463
48499
  }
48464
- var Nw = class {
48500
+ var jw = class {
48465
48501
  constructor(t, e, n) {
48466
- this.outputDir = t, this.options = e, this.fs = n, this.mediaContext = new Iw(t, e.mediaFolderName, n);
48502
+ this.outputDir = t, this.options = e, this.fs = n, this.mediaContext = new Lw(t, e.mediaFolderName, n);
48467
48503
  }
48468
48504
  mediaContext;
48469
48505
  buildFrontMatter(t) {
@@ -48478,7 +48514,7 @@ var Nw = class {
48478
48514
  if (!this.fs) throw new Error("FileSystemAdapter is required for writing output files. Provide one via the constructor or use convert() without outputPath.");
48479
48515
  await this.fs.writeFile(e, t);
48480
48516
  }
48481
- }, Ew = class {
48517
+ }, Ow = class {
48482
48518
  supportedTypes = ["chart"];
48483
48519
  async process(t, e) {
48484
48520
  if ("chart" !== t.type) return null;
@@ -48582,7 +48618,7 @@ var Nw = class {
48582
48618
  humanizeType(t) {
48583
48619
  return t.replace(/([a-z])([A-Z0-9])/g, "$1 $2").replace(/^./, (t) => t.toUpperCase());
48584
48620
  }
48585
- }, jw = class {
48621
+ }, $w = class {
48586
48622
  processors = /* @__PURE__ */ new Map();
48587
48623
  register(t) {
48588
48624
  for (const e of t.supportedTypes) this.processors.set(e, t);
@@ -48604,7 +48640,7 @@ var Nw = class {
48604
48640
  if (void 0 !== t.targetSlideIndex) return `\n\n*${`Jump to slide ${t.targetSlideIndex + 1}`}*`;
48605
48641
  return t.action ? `\n\n*${t.action}*` : "";
48606
48642
  }
48607
- }, Ow = class {
48643
+ }, Uw = class {
48608
48644
  supportedTypes = [
48609
48645
  "zoom",
48610
48646
  "contentPart",
@@ -48635,7 +48671,7 @@ var Nw = class {
48635
48671
  renderContentPart(t) {
48636
48672
  return t.inkStrokes && t.inkStrokes.length > 0 ? `*[Ink Content: ${t.inkStrokes.length} stroke${1 === t.inkStrokes.length ? "" : "s"}]*` : "*[Content Part]*";
48637
48673
  }
48638
- }, $w = class {
48674
+ }, Xw = class {
48639
48675
  supportedTypes = ["group"];
48640
48676
  async process(t, e) {
48641
48677
  if ("group" !== t.type) return null;
@@ -48644,7 +48680,7 @@ var Nw = class {
48644
48680
  const r = await e.processElements(n.children);
48645
48681
  return 0 === r.length ? null : r.join("\n\n");
48646
48682
  }
48647
- }, Uw = class {
48683
+ }, zw = class {
48648
48684
  supportedTypes = ["image", "picture"];
48649
48685
  async process(t, e) {
48650
48686
  if (!Yt(t)) return null;
@@ -48653,7 +48689,7 @@ var Nw = class {
48653
48689
  const t = Boolean(n.imageData), r = n.imageData ? n.imageData.substring(0, 80) : "undefined", i = `Image extraction failed on slide ${e.slideNumber}: id="${n.id}", imagePath="${n.imagePath ?? "unknown"}", hasImageData=${t}, imageDataPreview="${r}", hasSvgData=${Boolean(n.svgData)}`;
48654
48690
  return console.error(`[image-processor] ${i}`), `> **[Image extraction failed]** ${n.id} (slide ${e.slideNumber})`;
48655
48691
  }
48656
- const o = Fw(r), a = Fw(i);
48692
+ const o = Dw(r), a = Dw(i);
48657
48693
  if (e.semanticMode) return `![${o}](${i})`;
48658
48694
  if (e.layoutScale) return `<img src="${a}" alt="${o}" style="max-width:100%;height:auto">`;
48659
48695
  const s = this.computeDisplaySize(t.width, t.height);
@@ -48682,7 +48718,7 @@ var Nw = class {
48682
48718
  const e = t.replace(/&#x[0-9A-Fa-f]+;/g, " ").replace(/&#\d+;/g, " ").replace(/&[a-zA-Z]+;/g, " ").replace(/[\r\n]+/g, " ").replace(/\s+/g, " ").trim();
48683
48719
  return e.length <= 100 ? e : `${e.slice(0, 100).trimEnd()}…`;
48684
48720
  }
48685
- }, Xw = class {
48721
+ }, Gw = class {
48686
48722
  supportedTypes = ["ink"];
48687
48723
  async process(t, e) {
48688
48724
  if ("ink" !== t.type) return null;
@@ -48697,7 +48733,7 @@ var Nw = class {
48697
48733
  }
48698
48734
  return `*[Ink Drawing: ${r.join(" | ")}]*`;
48699
48735
  }
48700
- }, zw = class {
48736
+ }, Ww = class {
48701
48737
  supportedTypes = ["media"];
48702
48738
  async process(t, e) {
48703
48739
  if ("media" !== t.type) return null;
@@ -48724,7 +48760,7 @@ var Nw = class {
48724
48760
  const e = Math.floor(t / 60), n = Math.round(t % 60);
48725
48761
  return `${e}:${String(n).padStart(2, "0")}`;
48726
48762
  }
48727
- }, Gw = class {
48763
+ }, Hw = class {
48728
48764
  supportedTypes = ["ole"];
48729
48765
  async process(t, e) {
48730
48766
  if ("ole" !== t.type) return null;
@@ -48737,27 +48773,27 @@ var Nw = class {
48737
48773
  } catch {}
48738
48774
  return i.join("\n\n");
48739
48775
  }
48740
- }, Ww = new Set([
48776
+ }, Vw = new Set([
48741
48777
  "process",
48742
48778
  "cycle",
48743
48779
  "timeline"
48744
- ]), Hw = new Set([
48780
+ ]), Yw = new Set([
48745
48781
  "hierarchy",
48746
48782
  "pyramid",
48747
48783
  "funnel"
48748
- ]), Vw = new Set([
48784
+ ]), qw = new Set([
48749
48785
  "list",
48750
48786
  "matrix",
48751
48787
  "gear",
48752
48788
  "target"
48753
- ]), Yw = class {
48789
+ ]), Kw = class {
48754
48790
  supportedTypes = ["smartArt"];
48755
48791
  async process(t, e) {
48756
48792
  if ("smartArt" !== t.type) return null;
48757
48793
  const n = t.smartArtData;
48758
48794
  if (!n || 0 === n.nodes.length) return "*[SmartArt: no nodes]*";
48759
48795
  const r = this.resolveRoots(n.nodes), i = n.resolvedLayoutType ?? "unknown", o = [`*[SmartArt: ${i}]*`];
48760
- return Hw.has(i) ? o.push(this.renderNestedList(r, 0)) : Ww.has(i) ? o.push(this.renderOrderedSequence(r)) : Vw.has(i) ? o.push(this.renderBulletList(r)) : "relationship" === i ? o.push(this.renderRelationshipText(r)) : o.push(this.renderBulletList(r)), o.join("\n\n");
48796
+ return Yw.has(i) ? o.push(this.renderNestedList(r, 0)) : Vw.has(i) ? o.push(this.renderOrderedSequence(r)) : qw.has(i) ? o.push(this.renderBulletList(r)) : "relationship" === i ? o.push(this.renderRelationshipText(r)) : o.push(this.renderBulletList(r)), o.join("\n\n");
48761
48797
  }
48762
48798
  resolveRoots(t) {
48763
48799
  if (t.some((t) => Array.isArray(t.children) && t.children.length > 0)) return t;
@@ -48795,7 +48831,7 @@ var Nw = class {
48795
48831
  for (const n of t) e.push(n), n.children && n.children.length > 0 && e.push(...this.flattenNodes(n.children));
48796
48832
  return e;
48797
48833
  }
48798
- }, qw = new Set([
48834
+ }, Zw = new Set([
48799
48835
  "black",
48800
48836
  "silver",
48801
48837
  "gray",
@@ -48819,12 +48855,12 @@ var Nw = class {
48819
48855
  "initial",
48820
48856
  "unset"
48821
48857
  ]);
48822
- function Kw(t) {
48858
+ function Jw(t) {
48823
48859
  if ("string" != typeof t) return;
48824
48860
  const e = t.trim();
48825
- return 0 !== e.length && (/^#[0-9a-f]{3,8}$/i.test(e) || qw.has(e.toLowerCase())) ? e : void 0;
48861
+ return 0 !== e.length && (/^#[0-9a-f]{3,8}$/i.test(e) || Zw.has(e.toLowerCase())) ? e : void 0;
48826
48862
  }
48827
- var Zw = class {
48863
+ var Qw = class {
48828
48864
  supportedTypes = ["table"];
48829
48865
  async process(t, e) {
48830
48866
  if ("table" !== t.type) return null;
@@ -48855,12 +48891,12 @@ var Zw = class {
48855
48891
  const i = [];
48856
48892
  e > 1 && i.push(` colspan="${e}"`), n > 1 && i.push(` rowspan="${n}"`);
48857
48893
  const o = this.buildCellCss(t.style, r);
48858
- return o && i.push(` style="${Fw(o)}"`), i.join("");
48894
+ return o && i.push(` style="${Dw(o)}"`), i.join("");
48859
48895
  }
48860
48896
  buildCellCss(t, e) {
48861
- const n = [], r = Kw(t?.backgroundColor);
48897
+ const n = [], r = Jw(t?.backgroundColor);
48862
48898
  r && n.push(`background:${r}`), t?.align && /^[a-zA-Z]+$/.test(t.align) && n.push(`text-align:${t.align}`), t?.vAlign && /^[a-zA-Z]+$/.test(t.vAlign) && n.push(`vertical-align:${t.vAlign}`), t?.fontSize && n.push(`font-size:${Math.round(t.fontSize)}px`);
48863
- const i = Kw(t?.color);
48899
+ const i = Jw(t?.color);
48864
48900
  i && n.push(`color:${i}`), (t?.bold || e) && n.push("font-weight:bold"), t?.italic && n.push("font-style:italic");
48865
48901
  const o = this.buildBorderCss(t);
48866
48902
  o && n.push(o);
@@ -48869,15 +48905,15 @@ var Zw = class {
48869
48905
  }
48870
48906
  buildBorderCss(t) {
48871
48907
  if (!t) return "";
48872
- const e = [], n = Kw(t.borderTopColor);
48908
+ const e = [], n = Jw(t.borderTopColor);
48873
48909
  t.borderTopWidth && n && e.push(`border-top:${Math.round(t.borderTopWidth)}px solid ${n}`);
48874
- const r = Kw(t.borderBottomColor);
48910
+ const r = Jw(t.borderBottomColor);
48875
48911
  t.borderBottomWidth && r && e.push(`border-bottom:${Math.round(t.borderBottomWidth)}px solid ${r}`);
48876
- const i = Kw(t.borderLeftColor);
48912
+ const i = Jw(t.borderLeftColor);
48877
48913
  t.borderLeftWidth && i && e.push(`border-left:${Math.round(t.borderLeftWidth)}px solid ${i}`);
48878
- const o = Kw(t.borderRightColor);
48914
+ const o = Jw(t.borderRightColor);
48879
48915
  t.borderRightWidth && o && e.push(`border-right:${Math.round(t.borderRightWidth)}px solid ${o}`);
48880
- const a = Kw(t.borderColor);
48916
+ const a = Jw(t.borderColor);
48881
48917
  return 0 === e.length && a ? `border:1px solid ${a}` : e.join(";");
48882
48918
  }
48883
48919
  buildPaddingCss(t) {
@@ -48897,7 +48933,7 @@ var Zw = class {
48897
48933
  const e = this.escapeHtml(r.text);
48898
48934
  if (!e) continue;
48899
48935
  const i = this.buildRunCss(r, t.style);
48900
- i ? n.push(`<span style="${Fw(i)}">${e}</span>`) : n.push(e);
48936
+ i ? n.push(`<span style="${Dw(i)}">${e}</span>`) : n.push(e);
48901
48937
  }
48902
48938
  return n.join("");
48903
48939
  }
@@ -48912,7 +48948,7 @@ var Zw = class {
48912
48948
  t && r.push(`font-family:${t}`);
48913
48949
  }
48914
48950
  if (n.fontSize && n.fontSize !== e?.fontSize && r.push(`font-size:${Math.round(n.fontSize)}px`), n.color && n.color !== e?.color) {
48915
- const t = Kw(n.color);
48951
+ const t = Jw(n.color);
48916
48952
  t && r.push(`color:${t}`);
48917
48953
  }
48918
48954
  return n.bold && !e?.bold && r.push("font-weight:bold"), n.italic && !e?.italic && r.push("font-style:italic"), n.underline && r.push("text-decoration:underline"), n.strikethrough && r.push("text-decoration:line-through"), r.join(";");
@@ -48977,9 +49013,9 @@ var Zw = class {
48977
49013
  escapeMarkdownTableCell(t) {
48978
49014
  return t.replace(/\|/g, "\\|").replace(/\n+/g, " ").trim();
48979
49015
  }
48980
- }, Jw = .06;
48981
- function Qw(t, e, n, r, i, o = 1) {
48982
- const a = n?.bodyInsetLeft ? n.bodyInsetLeft * o : Math.round(r * Jw), s = n?.bodyInsetRight ? n.bodyInsetRight * o : Math.round(r * Jw), l = n?.bodyInsetTop ? n.bodyInsetTop * o : Math.round(i * Jw), c = n?.bodyInsetBottom ? n.bodyInsetBottom * o : Math.round(i * Jw), d = r - a - s;
49016
+ }, tT = .06;
49017
+ function eT(t, e, n, r, i, o = 1) {
49018
+ const a = n?.bodyInsetLeft ? n.bodyInsetLeft * o : Math.round(r * tT), s = n?.bodyInsetRight ? n.bodyInsetRight * o : Math.round(r * tT), l = n?.bodyInsetTop ? n.bodyInsetTop * o : Math.round(i * tT), c = n?.bodyInsetBottom ? n.bodyInsetBottom * o : Math.round(i * tT), d = r - a - s;
48983
49019
  if (d <= 0) return;
48984
49020
  const p = function(t, e, n, r) {
48985
49021
  const i = [];
@@ -48987,7 +49023,7 @@ function Qw(t, e, n, r, i, o = 1) {
48987
49023
  const e = o[0]?.style?.align;
48988
49024
  let a = [], s = 0, l = 0;
48989
49025
  for (const c of o) {
48990
- t.font = tT(c.style, r);
49026
+ t.font = nT(c.style, r);
48991
49027
  const o = 1.2 * ((c.style.fontSize ?? 18) * r), d = c.text.split(/(?<=\s)(?=\S)|(?<=\S)(?=\s)/);
48992
49028
  for (const r of d) {
48993
49029
  if (!r) continue;
@@ -49041,15 +49077,15 @@ function Qw(t, e, n, r, i, o = 1) {
49041
49077
  const r = e.align ?? n?.align ?? "left";
49042
49078
  let i;
49043
49079
  i = "center" === r ? a + (d - e.width) / 2 : "right" === r ? a + d - e.width : a;
49044
- for (const n of e.runs) t.font = tT(n.style, o), t.fillStyle = n.style.color ?? "#000000", t.fillText(n.text, i, g), i += n.measuredWidth;
49080
+ for (const n of e.runs) t.font = nT(n.style, o), t.fillStyle = n.style.color ?? "#000000", t.fillText(n.text, i, g), i += n.measuredWidth;
49045
49081
  g += .3 * e.height;
49046
49082
  }
49047
49083
  }
49048
- function tT(t, e) {
49084
+ function nT(t, e) {
49049
49085
  const n = (t.fontSize ?? 18) * e, r = t.bold ? "bold" : "normal";
49050
49086
  return `${t.italic ? "italic" : "normal"} ${r} ${n}px ${t.fontFamily ? Mh(t.fontFamily) : "sans-serif"}`;
49051
49087
  }
49052
- function eT(t) {
49088
+ function rT(t) {
49053
49089
  const e = t.shapeStyle;
49054
49090
  if (!e) return null;
49055
49091
  if (!function(t) {
@@ -49059,7 +49095,7 @@ function eT(t) {
49059
49095
  if ("image" === t.fillMode) return Boolean(t.fillImageUrl);
49060
49096
  if (t.fillColor && "transparent" !== t.fillColor) return !0;
49061
49097
  return !1;
49062
- }(e) && !iT(e)) return null;
49098
+ }(e) && !aT(e)) return null;
49063
49099
  let n = Math.round(t.width), r = Math.round(t.height);
49064
49100
  if (n < 4 || r < 4) return null;
49065
49101
  const i = (t.textSegments?.length ?? 0) > 0 ? 800 : 400;
@@ -49091,11 +49127,11 @@ function eT(t) {
49091
49127
  void 0 !== e.fillOpacity && e.fillOpacity < 1 && (t.globalAlpha = e.fillOpacity);
49092
49128
  }(s, e, n, r), t.pathData) {
49093
49129
  const i = n / ((t.pathWidth ?? n) || 1), o = r / ((t.pathHeight ?? r) || 1), a = new Path2D(t.pathData);
49094
- s.save(), s.scale(i, o), s.fill(a), iT(e) && (rT(s, e), s.stroke(a)), s.restore();
49095
- } else nT(s, t.shapeType, n, r), s.fill(), iT(e) && (rT(s, e), nT(s, t.shapeType, n, r), s.stroke());
49096
- return s.globalAlpha = 1, t.textSegments?.length && Qw(s, t.textSegments, t.textStyle, n, r, o), a.toDataURL("image/png");
49130
+ s.save(), s.scale(i, o), s.fill(a), aT(e) && (oT(s, e), s.stroke(a)), s.restore();
49131
+ } else iT(s, t.shapeType, n, r), s.fill(), aT(e) && (oT(s, e), iT(s, t.shapeType, n, r), s.stroke());
49132
+ return s.globalAlpha = 1, t.textSegments?.length && eT(s, t.textSegments, t.textStyle, n, r, o), a.toDataURL("image/png");
49097
49133
  }
49098
- function nT(t, e, n, r) {
49134
+ function iT(t, e, n, r) {
49099
49135
  t.beginPath();
49100
49136
  switch (e ?? "rect") {
49101
49137
  case "ellipse":
@@ -49109,13 +49145,13 @@ function nT(t, e, n, r) {
49109
49145
  default: t.rect(0, 0, n, r);
49110
49146
  }
49111
49147
  }
49112
- function rT(t, e) {
49148
+ function oT(t, e) {
49113
49149
  t.strokeStyle = e.strokeColor ?? "#000000", t.lineWidth = e.strokeWidth ?? 1, void 0 !== e.strokeOpacity && e.strokeOpacity < 1 && (t.globalAlpha = e.strokeOpacity);
49114
49150
  }
49115
- function iT(t) {
49151
+ function aT(t) {
49116
49152
  return Boolean(t.strokeColor) && "transparent" !== t.strokeColor && (t.strokeWidth ?? 0) > 0;
49117
49153
  }
49118
- var oT = class {
49154
+ var sT = class {
49119
49155
  constructor(t) {
49120
49156
  this.textRenderer = t;
49121
49157
  }
@@ -49152,7 +49188,7 @@ var oT = class {
49152
49188
  const t = n.text?.trim();
49153
49189
  if (t) {
49154
49190
  const e = n.textStyle?.align;
49155
- e && "left" !== e ? r.push(`<p align="${Fw(e)}">${Fw(t)}</p>`) : r.push(t);
49191
+ e && "left" !== e ? r.push(`<p align="${Dw(e)}">${Dw(t)}</p>`) : r.push(t);
49156
49192
  }
49157
49193
  }
49158
49194
  const a = n.textStyle?.textWarpPreset;
@@ -49170,7 +49206,7 @@ var oT = class {
49170
49206
  r.add(t);
49171
49207
  try {
49172
49208
  const r = await e.mediaContext.saveImage(t, `slide${e.slideNumber}-bullet`);
49173
- n.push(`<img src="${Fw(r)}" alt="Bullet image">`);
49209
+ n.push(`<img src="${Dw(r)}" alt="Bullet image">`);
49174
49210
  } catch {}
49175
49211
  }
49176
49212
  }
@@ -49183,7 +49219,7 @@ var oT = class {
49183
49219
  if (!n.fillImageUrl.startsWith("data:")) return null;
49184
49220
  try {
49185
49221
  const t = await e.mediaContext.saveImage(n.fillImageUrl, `slide${e.slideNumber}-shapefill`);
49186
- return e.semanticMode ? `![Shape fill](${t})` : `<img src="${Fw(t)}" alt="Shape fill">`;
49222
+ return e.semanticMode ? `![Shape fill](${t})` : `<img src="${Dw(t)}" alt="Shape fill">`;
49187
49223
  } catch {
49188
49224
  return null;
49189
49225
  }
@@ -49192,7 +49228,7 @@ var oT = class {
49192
49228
  const i = t;
49193
49229
  if (!i.shapeStyle || !i.width || !i.height) return null;
49194
49230
  try {
49195
- const t = eT({
49231
+ const t = rT({
49196
49232
  width: i.width,
49197
49233
  height: i.height,
49198
49234
  shapeType: i.shapeType,
@@ -49206,9 +49242,9 @@ var oT = class {
49206
49242
  if (!t) return null;
49207
49243
  const o = await e.mediaContext.saveImage(t, `slide${e.slideNumber}-shape`);
49208
49244
  if (e.semanticMode) return `![Shape](${o})`;
49209
- if (e.layoutScale) return `<img src="${Fw(o)}" alt="Shape" style="max-width:100%;height:auto">`;
49245
+ if (e.layoutScale) return `<img src="${Dw(o)}" alt="Shape" style="max-width:100%;height:auto">`;
49210
49246
  const a = this.computeDisplaySize(i.width, i.height);
49211
- return `<img src="${Fw(o)}" alt="Shape" width="${a.w}" height="${a.h}">`;
49247
+ return `<img src="${Dw(o)}" alt="Shape" width="${a.w}" height="${a.h}">`;
49212
49248
  } catch {
49213
49249
  return null;
49214
49250
  }
@@ -49232,7 +49268,7 @@ var oT = class {
49232
49268
  h: Math.round(e * r)
49233
49269
  };
49234
49270
  }
49235
- }, aT = class {
49271
+ }, lT = class {
49236
49272
  constructor(t) {
49237
49273
  this.textRenderer = t;
49238
49274
  }
@@ -49305,9 +49341,9 @@ var oT = class {
49305
49341
  "onClick" !== i && r.push(i.replace(/([A-Z])/g, " $1").trim().toLowerCase()), "number" == typeof t.repeatCount && t.repeatCount > 1 && r.push(`repeat: ${t.repeatCount}x`), t.autoReverse && r.push("auto-reverse"), t.buildType && r.push(`build: ${t.buildType}`);
49306
49342
  return `${e}: ${n}${r.length > 0 ? ` (${r.join(", ")})` : ""}`;
49307
49343
  }
49308
- }, sT = class {
49344
+ }, cT = class {
49309
49345
  constructor(t, e, n) {
49310
- this.registry = t, this.mediaContext = e, this.textRenderer = n, this.metadataRenderer = new aT(n);
49346
+ this.registry = t, this.mediaContext = e, this.textRenderer = n, this.metadataRenderer = new lT(n);
49311
49347
  }
49312
49348
  metadataRenderer;
49313
49349
  async processSlide(t, e) {
@@ -49352,7 +49388,7 @@ var oT = class {
49352
49388
  }
49353
49389
  async renderBackgroundHtml(t, e) {
49354
49390
  if (t.backgroundImage && t.backgroundImage.startsWith("data:")) try {
49355
- return `<img src="${Fw(await e.mediaContext.saveImage(t.backgroundImage, `slide${t.slideNumber}-bg`))}" alt="Slide background" style="width:100%;height:100%;object-fit:cover">`;
49391
+ return `<img src="${Dw(await e.mediaContext.saveImage(t.backgroundImage, `slide${t.slideNumber}-bg`))}" alt="Slide background" style="width:100%;height:100%;object-fit:cover">`;
49356
49392
  } catch {
49357
49393
  return;
49358
49394
  }
@@ -49412,7 +49448,7 @@ var oT = class {
49412
49448
  });
49413
49449
  }
49414
49450
  };
49415
- function lT(t, e, n) {
49451
+ function dT(t, e, n) {
49416
49452
  const r = function(t, e) {
49417
49453
  if (!t || "object" != typeof t) return;
49418
49454
  const n = t[e];
@@ -49423,7 +49459,7 @@ function lT(t, e, n) {
49423
49459
  const i = n?.[e], o = i?.marginLeft ?? 0, a = i?.indent ?? 0, s = Math.max(0, o + Math.max(a, 0));
49424
49460
  return s <= 0 ? 0 : Math.max(0, Math.round(s / 24));
49425
49461
  }
49426
- function cT(t, e) {
49462
+ function hT(t, e) {
49427
49463
  if (t.autoNumType) {
49428
49464
  const n = t.autoNumStartAt ?? 1, r = t.paragraphIndex ?? e;
49429
49465
  return function(t, e) {
@@ -49467,7 +49503,7 @@ function cT(t, e) {
49467
49503
  }
49468
49504
  return "-";
49469
49505
  }
49470
- var dT = [
49506
+ var pT = [
49471
49507
  "mono",
49472
49508
  "courier",
49473
49509
  "consolas",
@@ -49491,7 +49527,7 @@ var dT = [
49491
49527
  "lucida console",
49492
49528
  "fixedsys"
49493
49529
  ];
49494
- var hT = class {
49530
+ var uT = class {
49495
49531
  convert(t) {
49496
49532
  return this.renderNode(t).replace(/\s+/g, " ").trim() || this.collectText(t).replace(/\s+/g, " ").trim();
49497
49533
  }
@@ -49666,8 +49702,8 @@ var hT = class {
49666
49702
  const r = t[e];
49667
49703
  return "string" == typeof r ? r : null;
49668
49704
  }
49669
- }, pT = class {
49670
- ommlConverter = new hT();
49705
+ }, mT = class {
49706
+ ommlConverter = new uT();
49671
49707
  render(t, e = {}) {
49672
49708
  if (0 === t.length) return "";
49673
49709
  const n = this.groupParagraphs(t).map((t) => this.renderParagraph(t, e)).filter((t) => t.text.length > 0);
@@ -49719,7 +49755,7 @@ var hT = class {
49719
49755
  if (!e.disableLists && !e.inlineMode) {
49720
49756
  const r = t.segments.find((t) => Boolean(t.bulletInfo))?.bulletInfo;
49721
49757
  if (r && !r.none) {
49722
- const i = lT(r, t.index, e.paragraphIndents), o = cT(r, t.index), a = r.autoNumType && /^\d+[.)]\s/.test(n) ? "" : `${o} `;
49758
+ const i = dT(r, t.index, e.paragraphIndents), o = hT(r, t.index), a = r.autoNumType && /^\d+[.)]\s/.test(n) ? "" : `${o} `;
49723
49759
  if (e.htmlFormatting) return {
49724
49760
  text: `<div style="padding-left:${1.5 * i}em">${a}${n}</div>`,
49725
49761
  isListItem: !0
@@ -49752,13 +49788,13 @@ var hT = class {
49752
49788
  if ("all" === t.style.textCaps && (i = i.toUpperCase()), !r && function(t) {
49753
49789
  if (t.style.hyperlink) return !1;
49754
49790
  const e = t.style.fontFamily?.toLowerCase() ?? "";
49755
- return dT.some((t) => e.includes(t));
49756
- }(t) && (i = this.wrapCode(i)), t.style.strikethrough && (i = r ? `<s>${i}</s>` : `~~${i}~~`), t.style.bold && t.style.italic ? i = r ? `<strong><em>${i}</em></strong>` : `***${i}***` : (t.style.bold && (i = r ? `<strong>${i}</strong>` : `**${i}**`), t.style.italic && (i = r ? `<em>${i}</em>` : `*${i}*`)), t.style.underline && (i = `<u>${i}</u>`), t.style.baseline && t.style.baseline > 0 && (i = `<sup>${i}</sup>`), t.style.baseline && t.style.baseline < 0 && (i = `<sub>${i}</sub>`), "small" === t.style.textCaps && (i = `<span style="font-variant:small-caps">${i}</span>`), t.style.hyperlink) if (r) i = `<a href="${Fw(function(t) {
49791
+ return pT.some((t) => e.includes(t));
49792
+ }(t) && (i = this.wrapCode(i)), t.style.strikethrough && (i = r ? `<s>${i}</s>` : `~~${i}~~`), t.style.bold && t.style.italic ? i = r ? `<strong><em>${i}</em></strong>` : `***${i}***` : (t.style.bold && (i = r ? `<strong>${i}</strong>` : `**${i}**`), t.style.italic && (i = r ? `<em>${i}</em>` : `*${i}*`)), t.style.underline && (i = `<u>${i}</u>`), t.style.baseline && t.style.baseline > 0 && (i = `<sup>${i}</sup>`), t.style.baseline && t.style.baseline < 0 && (i = `<sub>${i}</sub>`), "small" === t.style.textCaps && (i = `<span style="font-variant:small-caps">${i}</span>`), t.style.hyperlink) if (r) i = `<a href="${Dw(function(t) {
49757
49793
  if ("string" != typeof t) return "#";
49758
49794
  const e = t.trim();
49759
49795
  if (0 === e.length) return "#";
49760
49796
  const n = e.toLowerCase();
49761
- for (const t of Lw) if (n.startsWith(t)) return e;
49797
+ for (const t of Bw) if (n.startsWith(t)) return e;
49762
49798
  return "#";
49763
49799
  }(t.style.hyperlink))}">${i}</a>`;
49764
49800
  else i = `[${i}](${this.renderLinkDestination(t.style.hyperlink)}${t.style.hyperlinkTooltip ? ` "${this.escapeLinkTitle(t.style.hyperlinkTooltip)}"` : ""})`;
@@ -49789,14 +49825,14 @@ var hT = class {
49789
49825
  escapeHtml(t) {
49790
49826
  return t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
49791
49827
  }
49792
- }, uT = class extends Nw {
49828
+ }, fT = class extends jw {
49793
49829
  textRenderer;
49794
49830
  registry;
49795
49831
  slideProcessor;
49796
49832
  convertedSlides = 0;
49797
49833
  totalSlides = 0;
49798
49834
  constructor(t, e, n) {
49799
- super(t, e, n), this.textRenderer = new pT(), this.registry = new jw(), this.registerProcessors(), this.slideProcessor = new sT(this.registry, this.mediaContext, this.textRenderer);
49835
+ super(t, e, n), this.textRenderer = new mT(), this.registry = new $w(), this.registerProcessors(), this.slideProcessor = new cT(this.registry, this.mediaContext, this.textRenderer);
49800
49836
  }
49801
49837
  get imagesExtracted() {
49802
49838
  return this.mediaContext.totalImages;
@@ -49831,7 +49867,7 @@ var hT = class {
49831
49867
  return s && (a = `${a}\n\n---\n\n${s}`), a = a.endsWith("\n") ? a : `${a}\n`, this.options.outputPath && await this.writeOutput(a, this.options.outputPath), a;
49832
49868
  }
49833
49869
  registerProcessors() {
49834
- this.registry.register(new oT(this.textRenderer)), this.registry.register(new Uw()), this.registry.register(new Zw()), this.registry.register(new Ew()), this.registry.register(new Yw()), this.registry.register(new $w()), this.registry.register(new zw()), this.registry.register(new Gw()), this.registry.register(new Xw()), this.registry.register(new Ow());
49870
+ this.registry.register(new sT(this.textRenderer)), this.registry.register(new zw()), this.registry.register(new Qw()), this.registry.register(new Ow()), this.registry.register(new Kw()), this.registry.register(new Xw()), this.registry.register(new Ww()), this.registry.register(new Hw()), this.registry.register(new Gw()), this.registry.register(new Uw());
49835
49871
  }
49836
49872
  buildPptxFrontMatter(t) {
49837
49873
  const e = {
@@ -49873,56 +49909,56 @@ var hT = class {
49873
49909
  return this.options;
49874
49910
  }
49875
49911
  };
49876
- function mT(t, e) {
49912
+ function gT(t, e) {
49877
49913
  if (!t) return null;
49878
49914
  const n = [];
49879
49915
  let r = "SourceGraphic";
49880
49916
  const i = (t, e) => {
49881
49917
  n.push(e.replace("__IN__", r).replace("__OUT__", t)), r = t;
49882
49918
  };
49883
- if (t.grayscale && i("p1", "<feColorMatrix in=\"__IN__\" type=\"saturate\" values=\"0\" result=\"__OUT__\"/>"), "number" == typeof t.saturation) i("p2", `<feColorMatrix in="__IN__" type="saturate" values="${gT(function(t) {
49884
- return fT(t, 0, 2);
49919
+ if (t.grayscale && i("p1", "<feColorMatrix in=\"__IN__\" type=\"saturate\" values=\"0\" result=\"__OUT__\"/>"), "number" == typeof t.saturation) i("p2", `<feColorMatrix in="__IN__" type="saturate" values="${xT(function(t) {
49920
+ return yT(t, 0, 2);
49885
49921
  }(1 + t.saturation / 100))}" result="__OUT__"/>`);
49886
- if ("number" == typeof t.hsl?.hue && i("p3", `<feColorMatrix in="__IN__" type="hueRotate" values="${gT(t.hsl.hue)}" result="__OUT__"/>`), "number" == typeof t.brightness || "number" == typeof t.contrast) {
49922
+ if ("number" == typeof t.hsl?.hue && i("p3", `<feColorMatrix in="__IN__" type="hueRotate" values="${xT(t.hsl.hue)}" result="__OUT__"/>`), "number" == typeof t.brightness || "number" == typeof t.contrast) {
49887
49923
  const e = (t.brightness ?? 0) / 100, n = 1 + (t.contrast ?? 0) / 100, r = n, o = e + (1 - n) / 2;
49888
- i("p4", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${gT(r)}" intercept="${gT(o)}"/><feFuncG type="linear" slope="${gT(r)}" intercept="${gT(o)}"/><feFuncB type="linear" slope="${gT(r)}" intercept="${gT(o)}"/></feComponentTransfer>`);
49924
+ i("p4", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${xT(r)}" intercept="${xT(o)}"/><feFuncG type="linear" slope="${xT(r)}" intercept="${xT(o)}"/><feFuncB type="linear" slope="${xT(r)}" intercept="${xT(o)}"/></feComponentTransfer>`);
49889
49925
  }
49890
49926
  if (t.lum && ("number" == typeof t.lum.bright || "number" == typeof t.lum.contrast)) {
49891
49927
  const e = (t.lum.bright ?? 0) / 100, n = 1 + (t.lum.contrast ?? 0) / 100, r = n, o = e + (1 - n) / 2;
49892
- i("p5", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${gT(r)}" intercept="${gT(o)}"/><feFuncG type="linear" slope="${gT(r)}" intercept="${gT(o)}"/><feFuncB type="linear" slope="${gT(r)}" intercept="${gT(o)}"/></feComponentTransfer>`);
49928
+ i("p5", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${xT(r)}" intercept="${xT(o)}"/><feFuncG type="linear" slope="${xT(r)}" intercept="${xT(o)}"/><feFuncB type="linear" slope="${xT(r)}" intercept="${xT(o)}"/></feComponentTransfer>`);
49893
49929
  }
49894
49930
  if ("number" == typeof t.biLevel) {
49895
49931
  i("p6a", "<feColorMatrix in=\"__IN__\" type=\"saturate\" values=\"0\" result=\"__OUT__\"/>");
49896
- const e = fT(t.biLevel / 100, 0, 1);
49897
- i("p6b", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="discrete" tableValues="${0 === e ? "1 1" : `0 ${yT(e)}`}"/><feFuncG type="discrete" tableValues="${0 === e ? "1 1" : `0 ${yT(e)}`}"/><feFuncB type="discrete" tableValues="${0 === e ? "1 1" : `0 ${yT(e)}`}"/></feComponentTransfer>`);
49932
+ const e = yT(t.biLevel / 100, 0, 1);
49933
+ i("p6b", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="discrete" tableValues="${0 === e ? "1 1" : `0 ${bT(e)}`}"/><feFuncG type="discrete" tableValues="${0 === e ? "1 1" : `0 ${bT(e)}`}"/><feFuncB type="discrete" tableValues="${0 === e ? "1 1" : `0 ${bT(e)}`}"/></feComponentTransfer>`);
49898
49934
  }
49899
49935
  if (t.duotone) {
49900
- const e = xT(t.duotone.color1), n = xT(t.duotone.color2);
49901
- i("p7a", "<feColorMatrix in=\"__IN__\" type=\"saturate\" values=\"0\" result=\"__OUT__\"/>"), i("p7b", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${gT(n.r - e.r)}" intercept="${gT(e.r)}"/><feFuncG type="linear" slope="${gT(n.g - e.g)}" intercept="${gT(e.g)}"/><feFuncB type="linear" slope="${gT(n.b - e.b)}" intercept="${gT(e.b)}"/></feComponentTransfer>`);
49936
+ const e = ST(t.duotone.color1), n = ST(t.duotone.color2);
49937
+ i("p7a", "<feColorMatrix in=\"__IN__\" type=\"saturate\" values=\"0\" result=\"__OUT__\"/>"), i("p7b", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${xT(n.r - e.r)}" intercept="${xT(e.r)}"/><feFuncG type="linear" slope="${xT(n.g - e.g)}" intercept="${xT(e.g)}"/><feFuncB type="linear" slope="${xT(n.b - e.b)}" intercept="${xT(e.b)}"/></feComponentTransfer>`);
49902
49938
  }
49903
49939
  if (t.tint && "number" == typeof t.tint.amt) {
49904
- const e = fT(t.tint.amt / 100, -1, 1);
49905
- e < 0 && i("p8", `<feColorMatrix in="__IN__" type="saturate" values="${gT(1 + e)}" result="__OUT__"/>`), "number" == typeof t.tint.hue && i("p8h", `<feColorMatrix in="__IN__" type="hueRotate" values="${gT(t.tint.hue)}" result="__OUT__"/>`);
49940
+ const e = yT(t.tint.amt / 100, -1, 1);
49941
+ e < 0 && i("p8", `<feColorMatrix in="__IN__" type="saturate" values="${xT(1 + e)}" result="__OUT__"/>`), "number" == typeof t.tint.hue && i("p8h", `<feColorMatrix in="__IN__" type="hueRotate" values="${xT(t.tint.hue)}" result="__OUT__"/>`);
49906
49942
  }
49907
49943
  if (t.clrRepl) {
49908
- const e = xT(t.clrRepl.color);
49909
- i("p9", `<feColorMatrix in="__IN__" type="matrix" result="__OUT__" values="0 0 0 0 ${gT(e.r)} 0 0 0 0 ${gT(e.g)} 0 0 0 0 ${gT(e.b)} 0 0 0 1 0"/>`);
49944
+ const e = ST(t.clrRepl.color);
49945
+ i("p9", `<feColorMatrix in="__IN__" type="matrix" result="__OUT__" values="0 0 0 0 ${xT(e.r)} 0 0 0 0 ${xT(e.g)} 0 0 0 0 ${xT(e.b)} 0 0 0 1 0"/>`);
49910
49946
  }
49911
49947
  if (t.colorWash) {
49912
- xT(t.colorWash.color);
49913
- const e = fT((t.colorWash.opacity ?? 50) / 100, 0, 1);
49914
- n.push(`<feFlood flood-color="${t.colorWash.color}" flood-opacity="${gT(e)}" result="wash"/><feComposite in="wash" in2="${r}" operator="in" result="washmasked"/><feBlend in="washmasked" in2="${r}" mode="normal" result="washed"/>`), r = "washed";
49948
+ ST(t.colorWash.color);
49949
+ const e = yT((t.colorWash.opacity ?? 50) / 100, 0, 1);
49950
+ n.push(`<feFlood flood-color="${t.colorWash.color}" flood-opacity="${xT(e)}" result="wash"/><feComposite in="wash" in2="${r}" operator="in" result="washmasked"/><feBlend in="washmasked" in2="${r}" mode="normal" result="washed"/>`), r = "washed";
49915
49951
  }
49916
- if (t.clrChange && t.clrChange.clrToTransparent && xT(t.clrChange.clrFrom), "number" == typeof t.alphaModFix) i("pa1", `<feColorMatrix in="__IN__" type="matrix" result="__OUT__" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${gT(fT(t.alphaModFix / 100, 0, 1))} 0"/>`);
49917
- if (t.alphaInv && i("pa2", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"linear\" slope=\"-1\" intercept=\"1\"/></feComponentTransfer>"), t.alphaCeiling && i("pa3", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"discrete\" tableValues=\"0 1 1 1 1 1 1 1 1 1\"/></feComponentTransfer>"), t.alphaFloor && i("pa4", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"discrete\" tableValues=\"0 0 0 0 0 0 0 0 0 1\"/></feComponentTransfer>"), "number" == typeof t.alphaRepl) i("pa5", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncA type="linear" slope="0" intercept="${gT(fT(t.alphaRepl / 100, 0, 1))}"/></feComponentTransfer>`);
49952
+ if (t.clrChange && t.clrChange.clrToTransparent && ST(t.clrChange.clrFrom), "number" == typeof t.alphaModFix) i("pa1", `<feColorMatrix in="__IN__" type="matrix" result="__OUT__" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${xT(yT(t.alphaModFix / 100, 0, 1))} 0"/>`);
49953
+ if (t.alphaInv && i("pa2", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"linear\" slope=\"-1\" intercept=\"1\"/></feComponentTransfer>"), t.alphaCeiling && i("pa3", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"discrete\" tableValues=\"0 1 1 1 1 1 1 1 1 1\"/></feComponentTransfer>"), t.alphaFloor && i("pa4", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"discrete\" tableValues=\"0 0 0 0 0 0 0 0 0 1\"/></feComponentTransfer>"), "number" == typeof t.alphaRepl) i("pa5", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncA type="linear" slope="0" intercept="${xT(yT(t.alphaRepl / 100, 0, 1))}"/></feComponentTransfer>`);
49918
49954
  if ("number" == typeof t.alphaBiLevel) i("pa6", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncA type="discrete" tableValues="${function(t) {
49919
49955
  const e = [];
49920
49956
  for (let n = 0; n < 10; n++) e.push(n / 10 >= t ? "1" : "0");
49921
49957
  return e.join(" ");
49922
- }(fT(t.alphaBiLevel / 100, 0, 1))}"/></feComponentTransfer>`);
49958
+ }(yT(t.alphaBiLevel / 100, 0, 1))}"/></feComponentTransfer>`);
49923
49959
  if ("string" == typeof t.artisticEffect && /blur/i.test(t.artisticEffect)) {
49924
49960
  const e = Math.max(0, (t.artisticRadius ?? 0) / 12700);
49925
- e > 0 && i("pb", `<feGaussianBlur in="__IN__" stdDeviation="${gT(e)}" result="__OUT__"/>`);
49961
+ e > 0 && i("pb", `<feGaussianBlur in="__IN__" stdDeviation="${xT(e)}" result="__OUT__"/>`);
49926
49962
  }
49927
49963
  if (0 === n.length) return null;
49928
49964
  const o = `imgfx-${e}`;
@@ -49931,16 +49967,16 @@ function mT(t, e) {
49931
49967
  filterId: o
49932
49968
  };
49933
49969
  }
49934
- function fT(t, e, n) {
49970
+ function yT(t, e, n) {
49935
49971
  return t < e ? e : t > n ? n : t;
49936
49972
  }
49937
- function gT(t) {
49973
+ function xT(t) {
49938
49974
  return Number.isFinite(t) ? Number(t.toFixed(4)).toString() : "0";
49939
49975
  }
49940
- function yT(t) {
49976
+ function bT(t) {
49941
49977
  return "1";
49942
49978
  }
49943
- function xT(t) {
49979
+ function ST(t) {
49944
49980
  const e = /^#?([0-9a-f]{6})/i.exec(t.trim());
49945
49981
  if (!e) return {
49946
49982
  r: 0,
@@ -49954,21 +49990,21 @@ function xT(t) {
49954
49990
  b: (255 & n) / 255
49955
49991
  };
49956
49992
  }
49957
- function bT(t) {
49993
+ function vT(t) {
49958
49994
  return t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
49959
49995
  }
49960
- function ST(t) {
49996
+ function wT(t) {
49961
49997
  let e = "";
49962
- for (const [n, r] of Object.entries(t)) void 0 !== r && "" !== r && (e += ` ${n}="${bT(String(r))}"`);
49998
+ for (const [n, r] of Object.entries(t)) void 0 !== r && "" !== r && (e += ` ${n}="${vT(String(r))}"`);
49963
49999
  return e;
49964
50000
  }
49965
- function vT(t, e) {
50001
+ function TT(t, e) {
49966
50002
  const n = e, r = t.markerCache.get(n);
49967
50003
  if (r) return r;
49968
- const i = "arrow_" + ++t.markerIdCounter, o = `<marker id="${i}" markerWidth="10" markerHeight="7" refX="10" refY="3.5" orient="auto" markerUnits="strokeWidth"><polygon points="0 0, 10 3.5, 0 7" fill="${bT(e)}" /></marker>`;
50004
+ const i = "arrow_" + ++t.markerIdCounter, o = `<marker id="${i}" markerWidth="10" markerHeight="7" refX="10" refY="3.5" orient="auto" markerUnits="strokeWidth"><polygon points="0 0, 10 3.5, 0 7" fill="${vT(e)}" /></marker>`;
49969
50005
  return t.defs.push(o), t.markerCache.set(n, i), i;
49970
50006
  }
49971
- function wT(t, e) {
50007
+ function CT(t, e) {
49972
50008
  if ("text" !== t.type && "shape" !== t.type && "connector" !== t.type) return "";
49973
50009
  const n = t.text;
49974
50010
  if (!n) return "";
@@ -49976,7 +50012,7 @@ function wT(t, e) {
49976
50012
  let c = "start", d = 4;
49977
50013
  if ("center" === l ? (c = "middle", d = t.width / 2) : "right" === l && (c = "end", d = t.width - 4), r && r.length > 0) {
49978
50014
  const t = [];
49979
- t.push(`<text${ST({
50015
+ t.push(`<text${wT({
49980
50016
  x: d,
49981
50017
  "text-anchor": c,
49982
50018
  "font-family": o,
@@ -49991,12 +50027,12 @@ function wT(t, e) {
49991
50027
  }
49992
50028
  if (!i.text) continue;
49993
50029
  const r = i.style, l = {};
49994
- n && (l.x = d, l.dy = e, n = !1), r.fontFamily && r.fontFamily !== o && (l["font-family"] = r.fontFamily), r.fontSize && r.fontSize !== a && (l["font-size"] = r.fontSize), r.color && r.color !== s && (l.fill = r.color), r.bold && (l["font-weight"] = "bold"), r.italic && (l["font-style"] = "italic"), r.underline && (l["text-decoration"] = "underline"), t.push(`<tspan${ST(l)}>${bT(i.text)}</tspan>`);
50030
+ n && (l.x = d, l.dy = e, n = !1), r.fontFamily && r.fontFamily !== o && (l["font-family"] = r.fontFamily), r.fontSize && r.fontSize !== a && (l["font-size"] = r.fontSize), r.color && r.color !== s && (l.fill = r.color), r.bold && (l["font-weight"] = "bold"), r.italic && (l["font-style"] = "italic"), r.underline && (l["text-decoration"] = "underline"), t.push(`<tspan${wT(l)}>${vT(i.text)}</tspan>`);
49995
50031
  }
49996
50032
  return t.push("</text>"), t.join("");
49997
50033
  }
49998
50034
  const h = i?.bold, p = i?.italic, u = n.split("\n"), m = [];
49999
- m.push(`<text${ST({
50035
+ m.push(`<text${wT({
50000
50036
  x: d,
50001
50037
  "text-anchor": c,
50002
50038
  "font-family": o,
@@ -50005,13 +50041,13 @@ function wT(t, e) {
50005
50041
  "font-weight": h ? "bold" : void 0,
50006
50042
  "font-style": p ? "italic" : void 0
50007
50043
  })}>`);
50008
- for (let t = 0; t < u.length; t++) m.push(`<tspan${ST({
50044
+ for (let t = 0; t < u.length; t++) m.push(`<tspan${wT({
50009
50045
  x: d,
50010
50046
  dy: 1.2 * a
50011
- })}>${bT(u[t])}</tspan>`);
50047
+ })}>${vT(u[t])}</tspan>`);
50012
50048
  return m.push("</text>"), m.join("");
50013
50049
  }
50014
- function TT(t) {
50050
+ function kT(t) {
50015
50051
  if ("shape" !== t.type && "text" !== t.type) return "";
50016
50052
  const e = "shapeStyle" in t ? t.shapeStyle : void 0, n = "shapeType" in t ? t.shapeType : void 0, r = e?.fillColor ?? "none", i = e?.strokeColor ?? "none", o = e?.strokeWidth ?? ("none" !== i ? 1 : 0), a = e?.fillMode;
50017
50053
  let s = r;
@@ -50023,13 +50059,13 @@ function TT(t) {
50023
50059
  "fill-opacity": void 0 !== l ? l : void 0,
50024
50060
  "stroke-opacity": void 0 !== c ? c : void 0
50025
50061
  }, h = "pathData" in t ? t.pathData : void 0;
50026
- if (h) return `<path${ST({
50062
+ if (h) return `<path${wT({
50027
50063
  ...d,
50028
50064
  d: h
50029
50065
  })} />`;
50030
50066
  switch (n) {
50031
50067
  case "ellipse":
50032
- case "oval": return `<ellipse${ST({
50068
+ case "oval": return `<ellipse${wT({
50033
50069
  ...d,
50034
50070
  cx: t.width / 2,
50035
50071
  cy: t.height / 2,
@@ -50037,15 +50073,15 @@ function TT(t) {
50037
50073
  ry: t.height / 2
50038
50074
  })} />`;
50039
50075
  case "triangle":
50040
- case "isoTriangle": return `<polygon${ST({
50076
+ case "isoTriangle": return `<polygon${wT({
50041
50077
  ...d,
50042
50078
  points: `${t.width / 2},0 ${t.width},${t.height} 0,${t.height}`
50043
50079
  })} />`;
50044
- case "diamond": return `<polygon${ST({
50080
+ case "diamond": return `<polygon${wT({
50045
50081
  ...d,
50046
50082
  points: `${t.width / 2},0 ${t.width},${t.height / 2} ${t.width / 2},${t.height} 0,${t.height / 2}`
50047
50083
  })} />`;
50048
- default: return `<rect${ST({
50084
+ default: return `<rect${wT({
50049
50085
  ...d,
50050
50086
  width: t.width,
50051
50087
  height: t.height,
@@ -50053,7 +50089,7 @@ function TT(t) {
50053
50089
  })} />`;
50054
50090
  }
50055
50091
  }
50056
- function CT(t, e, n) {
50092
+ function _T(t, e, n) {
50057
50093
  if (t.hidden) return "";
50058
50094
  const r = function(t) {
50059
50095
  const e = [];
@@ -50065,16 +50101,16 @@ function CT(t, e, n) {
50065
50101
  switch (t.type) {
50066
50102
  case "text":
50067
50103
  case "shape":
50068
- o = TT(t) + wT(t, e);
50104
+ o = kT(t) + CT(t, e);
50069
50105
  break;
50070
50106
  case "connector":
50071
50107
  o = function(t, e) {
50072
50108
  if ("connector" !== t.type) return "";
50073
50109
  const n = t.shapeStyle, r = n?.strokeColor ?? "#000000", i = n?.strokeWidth ?? 1;
50074
50110
  let o, a;
50075
- n?.connectorStartArrow && "none" !== n.connectorStartArrow && (o = `url(#${vT(e, r)})`);
50076
- n?.connectorEndArrow && "none" !== n.connectorEndArrow && (a = `url(#${vT(e, r)})`);
50077
- return `<line${ST({
50111
+ n?.connectorStartArrow && "none" !== n.connectorStartArrow && (o = `url(#${TT(e, r)})`);
50112
+ n?.connectorEndArrow && "none" !== n.connectorEndArrow && (a = `url(#${TT(e, r)})`);
50113
+ return `<line${wT({
50078
50114
  x1: 0,
50079
50115
  y1: 0,
50080
50116
  x2: t.width,
@@ -50091,35 +50127,35 @@ function CT(t, e, n) {
50091
50127
  o = function(t, e) {
50092
50128
  if ("image" !== t.type && "picture" !== t.type) return "";
50093
50129
  const n = t.imageData;
50094
- if (!n) return `<rect${ST({
50130
+ if (!n) return `<rect${wT({
50095
50131
  width: t.width,
50096
50132
  height: t.height,
50097
50133
  fill: "#E0E0E0",
50098
50134
  stroke: "#999",
50099
50135
  "stroke-width": 1
50100
- })} /><text${ST({
50136
+ })} /><text${wT({
50101
50137
  x: t.width / 2,
50102
50138
  y: t.height / 2,
50103
50139
  "text-anchor": "middle",
50104
50140
  "font-size": 12,
50105
50141
  fill: "#666"
50106
50142
  })}>image</text>`;
50107
- const r = t.imageEffects ? mT(t.imageEffects, function(t) {
50143
+ const r = t.imageEffects ? gT(t.imageEffects, function(t) {
50108
50144
  const e = t.filterCounter++;
50109
50145
  return `${t.slideIndex}-${e}`;
50110
50146
  }(e)) : null, i = r ? ` filter="url(#${r.filterId})"` : "";
50111
- return r && e.defs.push(r.defsXml), `<image${ST({
50147
+ return r && e.defs.push(r.defsXml), `<image${wT({
50112
50148
  width: t.width,
50113
50149
  height: t.height,
50114
50150
  preserveAspectRatio: "none"
50115
- })} href="${bT(n)}"${i} />`;
50151
+ })} href="${vT(n)}"${i} />`;
50116
50152
  }(t, n);
50117
50153
  break;
50118
50154
  case "table":
50119
50155
  o = function(t, e) {
50120
50156
  if ("table" !== t.type) return "";
50121
50157
  const n = t.tableData;
50122
- if (!n || !n.rows.length) return `<rect${ST({
50158
+ if (!n || !n.rows.length) return `<rect${wT({
50123
50159
  width: t.width,
50124
50160
  height: t.height,
50125
50161
  fill: "#F0F0F0",
@@ -50138,7 +50174,7 @@ function CT(t, e, n) {
50138
50174
  continue;
50139
50175
  }
50140
50176
  const d = (r[o] ?? 1 / i.cells.length) * t.width * (c.gridSpan ?? 1), h = c.style?.backgroundColor ?? "none", p = c.style?.borderColor ?? "#CCCCCC", u = c.style?.color ?? "#000000", m = c.style?.fontSize ?? e.defaultFontSize, f = c.style?.bold;
50141
- a.push(`<rect${ST({
50177
+ a.push(`<rect${wT({
50142
50178
  x: l,
50143
50179
  y: s,
50144
50180
  width: d,
@@ -50146,7 +50182,7 @@ function CT(t, e, n) {
50146
50182
  fill: h,
50147
50183
  stroke: p,
50148
50184
  "stroke-width": .5
50149
- })} />`), c.text && a.push(`<text${ST({
50185
+ })} />`), c.text && a.push(`<text${wT({
50150
50186
  x: l + 4,
50151
50187
  y: s + n / 2,
50152
50188
  "dominant-baseline": "central",
@@ -50154,7 +50190,7 @@ function CT(t, e, n) {
50154
50190
  "font-size": m,
50155
50191
  fill: u,
50156
50192
  "font-weight": f ? "bold" : void 0
50157
- })}>${bT(c.text)}</text>`), l += d;
50193
+ })}>${vT(c.text)}</text>`), l += d;
50158
50194
  }
50159
50195
  s += n;
50160
50196
  }
@@ -50165,7 +50201,7 @@ function CT(t, e, n) {
50165
50201
  o = function(t, e, n) {
50166
50202
  if ("group" !== t.type) return "";
50167
50203
  const r = [];
50168
- for (const i of t.children) r.push(CT(i, e, n));
50204
+ for (const i of t.children) r.push(_T(i, e, n));
50169
50205
  return r.join("");
50170
50206
  }(t, e, n);
50171
50207
  break;
@@ -50175,7 +50211,7 @@ function CT(t, e, n) {
50175
50211
  const e = [];
50176
50212
  for (let n = 0; n < t.inkPaths.length; n++) {
50177
50213
  const r = t.inkPaths[n], i = t.inkColors?.[n] ?? "#000000", o = t.inkWidths?.[n] ?? 1, a = t.inkOpacities?.[n];
50178
- e.push(`<path${ST({
50214
+ e.push(`<path${wT({
50179
50215
  d: r,
50180
50216
  fill: "none",
50181
50217
  stroke: i,
@@ -50195,14 +50231,14 @@ function CT(t, e, n) {
50195
50231
  case "zoom":
50196
50232
  case "model3d":
50197
50233
  case "unknown": o = function(t) {
50198
- return `<rect${ST({
50234
+ return `<rect${wT({
50199
50235
  width: t.width,
50200
50236
  height: t.height,
50201
50237
  fill: "#F5F5F5",
50202
50238
  stroke: "#CCCCCC",
50203
50239
  "stroke-width": 1,
50204
50240
  "stroke-dasharray": "4 2"
50205
- })} /><text${ST({
50241
+ })} /><text${wT({
50206
50242
  x: t.width / 2,
50207
50243
  y: t.height / 2,
50208
50244
  "text-anchor": "middle",
@@ -50210,15 +50246,15 @@ function CT(t, e, n) {
50210
50246
  "font-family": "Arial",
50211
50247
  "font-size": 11,
50212
50248
  fill: "#999999"
50213
- })}>${bT(t.type)}</text>`;
50249
+ })}>${vT(t.type)}</text>`;
50214
50250
  }(t);
50215
50251
  }
50216
- return o ? `<g${ST({
50252
+ return o ? `<g${wT({
50217
50253
  transform: r,
50218
50254
  opacity: void 0 !== i && i < 1 ? i : void 0
50219
50255
  })}>${o}</g>` : "";
50220
50256
  }
50221
- var kT = class t {
50257
+ var PT = class t {
50222
50258
  static exportSlide(t, e, n, r) {
50223
50259
  const i = (o = r, {
50224
50260
  defaultFontFamily: o?.defaultFontFamily ?? "Arial",
@@ -50235,23 +50271,23 @@ var kT = class t {
50235
50271
  };
50236
50272
  }(t.elements.length), s = [];
50237
50273
  s.push(function(t, e, n) {
50238
- return t.backgroundImage ? `<rect${ST({
50274
+ return t.backgroundImage ? `<rect${wT({
50239
50275
  width: e,
50240
50276
  height: n,
50241
50277
  fill: "#FFFFFF"
50242
- })} /><image${ST({
50278
+ })} /><image${wT({
50243
50279
  width: e,
50244
50280
  height: n,
50245
50281
  preserveAspectRatio: "xMidYMid slice"
50246
- })} href="${bT(t.backgroundImage)}" />` : `<rect${ST({
50282
+ })} href="${vT(t.backgroundImage)}" />` : `<rect${wT({
50247
50283
  width: e,
50248
50284
  height: n,
50249
50285
  fill: t.backgroundColor ?? "#FFFFFF"
50250
50286
  })} />`;
50251
50287
  }(t, e, n));
50252
- for (const e of t.elements) s.push(CT(e, i, a));
50288
+ for (const e of t.elements) s.push(_T(e, i, a));
50253
50289
  const l = a.defs.length ? `<defs>${a.defs.join("")}</defs>` : "";
50254
- return `<svg${ST({
50290
+ return `<svg${wT({
50255
50291
  xmlns: "http://www.w3.org/2000/svg",
50256
50292
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
50257
50293
  viewBox: `0 0 ${e} ${n}`,