ooxml-ui 1.48.0 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/building-block-styles.d.ts +0 -1
  2. package/dist/chart/format-pane-axis.d.ts +1 -0
  3. package/dist/chart/format-pane-effects.d.ts +0 -1
  4. package/dist/chart/format-pane-model.d.ts +1 -0
  5. package/dist/chart/format-pane-types.d.ts +1 -0
  6. package/dist/chart/format-pane-view.d.ts +1 -0
  7. package/dist/chrome/find-replace-fields.d.ts +0 -1
  8. package/dist/form/color-input/live-color-input.d.ts +1 -0
  9. package/dist/form/range-control.d.ts +1 -0
  10. package/dist/pptx/{chunk-GYI2TFSW.cjs → chunk-2FKBWWSS.cjs} +8 -0
  11. package/dist/pptx/{chunk-JUEKQZSB.mjs → chunk-4OM7WS6M.mjs} +2 -2
  12. package/dist/pptx/{chunk-C4GZLKDW.mjs → chunk-JJP24O2L.mjs} +58 -3
  13. package/dist/pptx/{chunk-2C2C27ML.cjs → chunk-JOQIMYHE.cjs} +66 -5
  14. package/dist/pptx/{chunk-N5WPJIMK.cjs → chunk-Q6YXUH4R.cjs} +47 -47
  15. package/dist/pptx/{chunk-S6P7UWGZ.mjs → chunk-XLSW7WM3.mjs} +8 -0
  16. package/dist/pptx/dom/index.cjs +374 -371
  17. package/dist/pptx/dom/index.mjs +8 -5
  18. package/dist/pptx/dom/slide-stage.d.ts +8 -0
  19. package/dist/pptx/dom/slide-stage.d.ts.map +1 -1
  20. package/dist/pptx/export/css-preprocessing-flatten.d.ts.map +1 -1
  21. package/dist/pptx/export/html2canvas-clone.cjs +6 -6
  22. package/dist/pptx/export/html2canvas-clone.mjs +1 -1
  23. package/dist/pptx/index.cjs +3115 -3091
  24. package/dist/pptx/index.mjs +2 -2
  25. package/dist/pptx/render/canvas-element-node.d.ts +8 -7
  26. package/dist/pptx/render/canvas-element-node.d.ts.map +1 -1
  27. package/dist/pptx/render/editor-chrome/metrics.d.ts +12 -0
  28. package/dist/pptx/render/editor-chrome/metrics.d.ts.map +1 -1
  29. package/dist/pptx/render/index.d.ts +2 -0
  30. package/dist/pptx/render/index.d.ts.map +1 -1
  31. package/dist/pptx/render/slide-thumbnail-badge.d.ts +42 -0
  32. package/dist/pptx/render/slide-thumbnail-badge.d.ts.map +1 -0
  33. package/dist/pptx/render/stage-element-ids.d.ts +49 -0
  34. package/dist/pptx/render/stage-element-ids.d.ts.map +1 -0
  35. package/dist/pptx/{smartart-insert-preview-3BLHZGCE.cjs → smartart-insert-preview-I6S2OSWU.cjs} +4 -4
  36. package/dist/pptx/{smartart-insert-preview-WRSYENYB.mjs → smartart-insert-preview-KQJPGRDR.mjs} +3 -3
  37. package/dist/render-cache.d.ts +1 -0
  38. package/dist/theme-bridge.d.ts +1 -0
  39. package/dist/theme.d.ts +1 -0
  40. package/package.json +12 -12
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkN5WPJIMK_cjs = require('../chunk-N5WPJIMK.cjs');
4
- var chunk2C2C27ML_cjs = require('../chunk-2C2C27ML.cjs');
3
+ var chunkQ6YXUH4R_cjs = require('../chunk-Q6YXUH4R.cjs');
4
+ var chunkJOQIMYHE_cjs = require('../chunk-JOQIMYHE.cjs');
5
5
  var chunkLOUVYGWX_cjs = require('../chunk-LOUVYGWX.cjs');
6
6
  require('../chunk-XOAXPD2W.cjs');
7
7
  require('../chunk-W3X2UVYQ.cjs');
@@ -25,7 +25,7 @@ require('../chunk-USBRSEJK.cjs');
25
25
  var chunkHTFYAGHG_cjs = require('../chunk-HTFYAGHG.cjs');
26
26
  var chunkFOE75Z6N_cjs = require('../chunk-FOE75Z6N.cjs');
27
27
  var chunkNTXHQHCS_cjs = require('../chunk-NTXHQHCS.cjs');
28
- require('../chunk-GYI2TFSW.cjs');
28
+ require('../chunk-2FKBWWSS.cjs');
29
29
  require('../chunk-G4WRLFMJ.cjs');
30
30
  var chunkFI2ATACZ_cjs = require('../chunk-FI2ATACZ.cjs');
31
31
  require('../chunk-HJ3JZXOL.cjs');
@@ -44,14 +44,14 @@ var pptx = require('ooxml-core/pptx');
44
44
 
45
45
  // src/pptx/dom/activex-controls-overlay.ts
46
46
  function buildActiveXControlsOverlay(doc, controls, canvasSize) {
47
- const overlay = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-activex-overlay", {
47
+ const overlay = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-activex-overlay", {
48
48
  position: "absolute",
49
49
  inset: "0",
50
50
  pointerEvents: "none",
51
51
  zIndex: "40"
52
52
  });
53
53
  controls.forEach((control, index) => {
54
- const view = chunk2C2C27ML_cjs.getActiveXControlOverlayView(control, canvasSize, index);
54
+ const view = chunkJOQIMYHE_cjs.getActiveXControlOverlayView(control, canvasSize, index);
55
55
  const style = {
56
56
  position: "absolute",
57
57
  left: `${view.left}px`,
@@ -60,7 +60,7 @@ function buildActiveXControlsOverlay(doc, controls, canvasSize) {
60
60
  height: `${view.height}px`
61
61
  };
62
62
  if (view.className === "image" && view.imageUrl) {
63
- const img = chunkN5WPJIMK_cjs.createEl(doc, "img", "pptxv-activex-overlay-image", style);
63
+ const img = chunkQ6YXUH4R_cjs.createEl(doc, "img", "pptxv-activex-overlay-image", style);
64
64
  img.src = view.imageUrl;
65
65
  img.alt = view.label;
66
66
  img.setAttribute("draggable", "false");
@@ -68,7 +68,7 @@ function buildActiveXControlsOverlay(doc, controls, canvasSize) {
68
68
  overlay.appendChild(img);
69
69
  return;
70
70
  }
71
- const badge = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-activex-overlay-placeholder", style);
71
+ const badge = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-activex-overlay-placeholder", style);
72
72
  badge.title = `ActiveX control: ${view.label} (interactive controls are not supported in the viewer)`;
73
73
  badge.textContent = view.label;
74
74
  overlay.appendChild(badge);
@@ -81,25 +81,25 @@ function appendCommentMarkers(doc, stage, comments, canvasSize, t, onMarkerClick
81
81
  if (comments.length === 0) {
82
82
  return;
83
83
  }
84
- const overlay = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-comment-markers", {
84
+ const overlay = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-comment-markers", {
85
85
  position: "absolute",
86
86
  inset: "0",
87
87
  pointerEvents: "none",
88
88
  zIndex: "45"
89
89
  });
90
- const markers = chunk2C2C27ML_cjs.buildCommentMarkers(
90
+ const markers = chunkJOQIMYHE_cjs.buildCommentMarkers(
91
91
  comments,
92
92
  canvasSize.width,
93
93
  canvasSize.height,
94
94
  t("pptx.comments.unknownAuthor")
95
95
  );
96
96
  for (const marker of markers) {
97
- const dot = chunkN5WPJIMK_cjs.createEl(doc, "button", "pptxv-comment-marker", {
97
+ const dot = chunkQ6YXUH4R_cjs.createEl(doc, "button", "pptxv-comment-marker", {
98
98
  position: "absolute",
99
- left: `${marker.x - chunk2C2C27ML_cjs.COMMENT_MARKER_SIZE / 2}px`,
100
- top: `${marker.y - chunk2C2C27ML_cjs.COMMENT_MARKER_SIZE / 2}px`,
101
- width: `${chunk2C2C27ML_cjs.COMMENT_MARKER_SIZE}px`,
102
- height: `${chunk2C2C27ML_cjs.COMMENT_MARKER_SIZE}px`,
99
+ left: `${marker.x - chunkJOQIMYHE_cjs.COMMENT_MARKER_SIZE / 2}px`,
100
+ top: `${marker.y - chunkJOQIMYHE_cjs.COMMENT_MARKER_SIZE / 2}px`,
101
+ width: `${chunkJOQIMYHE_cjs.COMMENT_MARKER_SIZE}px`,
102
+ height: `${chunkJOQIMYHE_cjs.COMMENT_MARKER_SIZE}px`,
103
103
  display: "flex",
104
104
  alignItems: "center",
105
105
  justifyContent: "center",
@@ -166,7 +166,7 @@ function merge3dStyle(base, computed) {
166
166
  }
167
167
  }
168
168
  function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
169
- const frame = chunk2C2C27ML_cjs.getFrameEffectStyle(el);
169
+ const frame = chunkJOQIMYHE_cjs.getFrameEffectStyle(el);
170
170
  if (frame) {
171
171
  return { ...frame };
172
172
  }
@@ -218,11 +218,11 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
218
218
  if (fx.overflowVisible) {
219
219
  style["overflow"] = "visible";
220
220
  }
221
- merge3dStyle(style, chunk2C2C27ML_cjs.getComputed3dStyle(el));
222
- if (chunk2C2C27ML_cjs.passesClicksThroughBox(el)) {
221
+ merge3dStyle(style, chunkJOQIMYHE_cjs.getComputed3dStyle(el));
222
+ if (chunkJOQIMYHE_cjs.passesClicksThroughBox(el)) {
223
223
  style["pointerEvents"] = "none";
224
224
  }
225
- const geometry = chunk2C2C27ML_cjs.resolveShapeGeometry(el);
225
+ const geometry = chunkJOQIMYHE_cjs.resolveShapeGeometry(el);
226
226
  switch (geometry.kind) {
227
227
  case "bare":
228
228
  style["backgroundColor"] = "transparent";
@@ -256,17 +256,17 @@ function getTextBlockStyle(el) {
256
256
  if (!pptx.hasTextProperties(el)) {
257
257
  return {};
258
258
  }
259
- const base = chunk2C2C27ML_cjs.buildTextBlockStyle(el, {
259
+ const base = chunkJOQIMYHE_cjs.buildTextBlockStyle(el, {
260
260
  fallbackColor: chunkHTFYAGHG_cjs.DEFAULT_TEXT_COLOR,
261
261
  bodyLayout: true,
262
262
  pxLengths: true
263
263
  });
264
- const scene3d = chunk2C2C27ML_cjs.buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height });
264
+ const scene3d = chunkJOQIMYHE_cjs.buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height });
265
265
  if (!scene3d) {
266
266
  return base;
267
267
  }
268
268
  const merged = { ...base, ...scene3d };
269
- const transform = chunkN5WPJIMK_cjs.composeTransforms(base.transform, scene3d.transform);
269
+ const transform = chunkQ6YXUH4R_cjs.composeTransforms(base.transform, scene3d.transform);
270
270
  if (transform !== void 0) {
271
271
  merged.transform = transform;
272
272
  }
@@ -354,7 +354,7 @@ function renderSlideStage(options) {
354
354
  const { document: doc, slide, canvasSize, mediaDataUrls, registry, t } = options;
355
355
  const scale = options.scale ?? 1;
356
356
  const interactive = options.interactive ?? false;
357
- const stage = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-stage", {
357
+ const stage = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-stage", {
358
358
  width: `${canvasSize.width}px`,
359
359
  height: `${canvasSize.height}px`,
360
360
  transform: `scale(${scale})`,
@@ -371,7 +371,7 @@ function renderSlideStage(options) {
371
371
  "--pptxv-grid-size": `${options.gridSpacingPx ?? 10}px`,
372
372
  // One device pixel in slide px: thin strokes stay visible on screen.
373
373
  ...chunkFI2ATACZ_cjs.deviceStrokeStageStyle(scale),
374
- ...chunk2C2C27ML_cjs.getSlideBackgroundStyle(slide, { widthPx: canvasSize.width, heightPx: canvasSize.height })
374
+ ...chunkJOQIMYHE_cjs.getSlideBackgroundStyle(slide, { widthPx: canvasSize.width, heightPx: canvasSize.height })
375
375
  });
376
376
  if (interactive || options.reading) {
377
377
  stage.setAttribute("role", "region");
@@ -412,10 +412,10 @@ function renderSlideStage(options) {
412
412
  chartPartSelection: options.chartPartSelection,
413
413
  onChartPartSelect: options.onChartPartSelect,
414
414
  selectedElementIds: options.selectedElementIds,
415
- edgeBleeds: chunk2C2C27ML_cjs.resolveStageEdgeBleeds(void 0, slide, options.selectedElementIds),
415
+ edgeBleeds: chunkJOQIMYHE_cjs.resolveStageEdgeBleeds(void 0, slide, options.selectedElementIds),
416
416
  registry,
417
417
  renderElement(element, zIndex) {
418
- if (!chunk2C2C27ML_cjs.isElementRendered(element)) {
418
+ if (!chunkJOQIMYHE_cjs.isElementRendered(element)) {
419
419
  return null;
420
420
  }
421
421
  const node = registry.resolve(element.type)(element, zIndex, context);
@@ -427,10 +427,10 @@ function renderSlideStage(options) {
427
427
  }
428
428
  node.setAttribute("data-pptx-element", "true");
429
429
  }
430
- if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" && chunk2C2C27ML_cjs.shouldRenderHitTarget(interactive, options.presenting ?? false)) {
431
- const hitTargetStyle = chunk2C2C27ML_cjs.elementHitTargetStyle(element);
430
+ if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" && chunkJOQIMYHE_cjs.shouldRenderHitTarget(interactive, options.presenting ?? false)) {
431
+ const hitTargetStyle = chunkJOQIMYHE_cjs.elementHitTargetStyle(element);
432
432
  if (hitTargetStyle) {
433
- const hitTarget = chunkN5WPJIMK_cjs.createEl(doc, "div", void 0, hitTargetStyle);
433
+ const hitTarget = chunkQ6YXUH4R_cjs.createEl(doc, "div", void 0, hitTargetStyle);
434
434
  hitTarget.setAttribute("aria-hidden", "true");
435
435
  hitTarget.setAttribute("data-pptx-hit-target", "true");
436
436
  node.appendChild(hitTarget);
@@ -448,12 +448,12 @@ function renderSlideStage(options) {
448
448
  }
449
449
  });
450
450
  if (interactive || options.reading) {
451
- chunk2C2C27ML_cjs.applyRenderedElementAccessibility(stage, slide.elements, {
451
+ chunkJOQIMYHE_cjs.applyRenderedElementAccessibility(stage, slide.elements, {
452
452
  presenting: options.presenting ?? false
453
453
  });
454
454
  }
455
455
  if (interactive) {
456
- chunk2C2C27ML_cjs.applyElementActionAffordances(
456
+ chunkJOQIMYHE_cjs.applyElementActionAffordances(
457
457
  stage,
458
458
  slide.elements.filter(
459
459
  (element) => options.templateEditing || !chunk3CYWRMYZ_cjs.isTemplateElementId(element.id)
@@ -461,13 +461,16 @@ function renderSlideStage(options) {
461
461
  {
462
462
  canInteract: true,
463
463
  presenting: options.presenting ?? false,
464
- labels: chunk2C2C27ML_cjs.actionAffordanceLabels((key) => t(key))
464
+ labels: chunkJOQIMYHE_cjs.actionAffordanceLabels((key) => t(key))
465
465
  }
466
466
  );
467
467
  }
468
468
  if (slide.activeXControls && slide.activeXControls.length > 0) {
469
469
  stage.appendChild(buildActiveXControlsOverlay(doc, slide.activeXControls, canvasSize));
470
470
  }
471
+ if (options.exposeElementIds === false) {
472
+ chunkJOQIMYHE_cjs.stripElementIdMarkers(stage);
473
+ }
471
474
  return stage;
472
475
  } catch (error) {
473
476
  for (const node of renderedNodes ?? []) disposeChartPixelSubscriptions(node);
@@ -568,7 +571,7 @@ function attachChartEditing(container, element, context, repaint) {
568
571
  if (!rect) {
569
572
  return;
570
573
  }
571
- const step2 = chunk2C2C27ML_cjs.advanceChartMarkDrag(activeMark, event.clientX, event.clientY, rect);
574
+ const step2 = chunkJOQIMYHE_cjs.advanceChartMarkDrag(activeMark, event.clientX, event.clientY, rect);
572
575
  if (!step2) {
573
576
  return;
574
577
  }
@@ -627,7 +630,7 @@ function attachChartEditing(container, element, context, repaint) {
627
630
  bubbles: true,
628
631
  detail: {
629
632
  elementId: element.id,
630
- target: chunk2C2C27ML_cjs.chartFormatTargetFromEvent(event, container, chart),
633
+ target: chunkJOQIMYHE_cjs.chartFormatTargetFromEvent(event, container, chart),
631
634
  open
632
635
  }
633
636
  })
@@ -670,7 +673,7 @@ function attachChartEditing(container, element, context, repaint) {
670
673
  seriesIndex: part.seriesIndex,
671
674
  pointIndex: part.pointIndex
672
675
  });
673
- const startedMark = chunk2C2C27ML_cjs.beginChartMarkDrag({
676
+ const startedMark = chunkJOQIMYHE_cjs.beginChartMarkDrag({
674
677
  part,
675
678
  geometry: markGeometry,
676
679
  chartData: chart.chartData,
@@ -714,17 +717,17 @@ function attachChartEditing(container, element, context, repaint) {
714
717
  // src/pptx/dom/elements/chart.ts
715
718
  var renderChartElement = (element, zIndex, context) => {
716
719
  const wrapper = renderChartSvgElement(element, zIndex, context);
717
- const spec = wrapper ? chunk2C2C27ML_cjs.resolveChartThreeViewSpec(element, chunkN5WPJIMK_cjs.rendering3DFlagsOf(context)) : null;
720
+ const spec = wrapper ? chunkJOQIMYHE_cjs.resolveChartThreeViewSpec(element, chunkQ6YXUH4R_cjs.rendering3DFlagsOf(context)) : null;
718
721
  if (!wrapper || !spec) {
719
722
  return wrapper;
720
723
  }
721
- const view = chunkN5WPJIMK_cjs.mountThreeViewInto(context.document, wrapper, {
724
+ const view = chunkQ6YXUH4R_cjs.mountThreeViewInto(context.document, wrapper, {
722
725
  spec,
723
- interactive: chunkN5WPJIMK_cjs.isChart3DEditable(element, context),
724
- selectedPart: chunkN5WPJIMK_cjs.selectedChartPartOf(element, context),
726
+ interactive: chunkQ6YXUH4R_cjs.isChart3DEditable(element, context),
727
+ selectedPart: chunkQ6YXUH4R_cjs.selectedChartPartOf(element, context),
725
728
  textStyle: context.presentationStates?.get(element.id)?.textStyle
726
729
  });
727
- chunkN5WPJIMK_cjs.wireChartThreeViewEvents(view, element, context, wrapper);
730
+ chunkQ6YXUH4R_cjs.wireChartThreeViewEvents(view, element, context, wrapper);
728
731
  return wrapper;
729
732
  };
730
733
  var renderChartSvgElement = (element, zIndex, context) => {
@@ -732,16 +735,16 @@ var renderChartSvgElement = (element, zIndex, context) => {
732
735
  return null;
733
736
  }
734
737
  const doc = context.document;
735
- const container = chunkN5WPJIMK_cjs.createEl(
738
+ const container = chunkQ6YXUH4R_cjs.createEl(
736
739
  doc,
737
740
  "div",
738
741
  "pptxv-element pptxv-chart",
739
742
  // The chart area's outer shadow and glow sit on the frame, outside the chart.
740
- { ...chunk2C2C27ML_cjs.getContainerStyle(element, zIndex), ...chunk2C2C27ML_cjs.getFrameEffectStyle(element) }
743
+ { ...chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex), ...chunkJOQIMYHE_cjs.getFrameEffectStyle(element) }
741
744
  );
742
745
  container.dataset.elementId = element.id;
743
746
  const animationState = context.presentationStates?.get(element.id);
744
- const chartData = element.chartData ? chunk2C2C27ML_cjs.resolveRevealedChartData(element.chartData, animationState) : element.chartData;
747
+ const chartData = element.chartData ? chunkJOQIMYHE_cjs.resolveRevealedChartData(element.chartData, animationState) : element.chartData;
745
748
  if (!chartData || chartData.series.length === 0) {
746
749
  container.appendChild(renderChartPlaceholder(doc, chartData?.chartType ?? "bar", context.t));
747
750
  return container;
@@ -776,7 +779,7 @@ function resolveChartPalette2(chartData) {
776
779
  return chunkHTFYAGHG_cjs.resolveChartPalette(chartData);
777
780
  }
778
781
  function renderChartPlaceholder(doc, chartType, t) {
779
- const placeholder = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-placeholder pptxv-chart-placeholder", {
782
+ const placeholder = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-placeholder pptxv-chart-placeholder", {
780
783
  display: "flex",
781
784
  alignItems: "center",
782
785
  justifyContent: "center",
@@ -788,7 +791,7 @@ function renderChartPlaceholder(doc, chartType, t) {
788
791
  border: "1px dashed #cbd5e1",
789
792
  boxSizing: "border-box"
790
793
  });
791
- placeholder.textContent = chunk2C2C27ML_cjs.chartPlaceholderLabel(chartType, (key, params) => t(key, params));
794
+ placeholder.textContent = chunkJOQIMYHE_cjs.chartPlaceholderLabel(chartType, (key, params) => t(key, params));
792
795
  return placeholder;
793
796
  }
794
797
 
@@ -807,19 +810,19 @@ function appendRunContent(doc, host, run) {
807
810
  }
808
811
  function appendTabLines(doc, host, lines) {
809
812
  lines.forEach((line, li) => {
810
- const lineHost = chunkN5WPJIMK_cjs.createEl(doc, "span", void 0, {
813
+ const lineHost = chunkQ6YXUH4R_cjs.createEl(doc, "span", void 0, {
811
814
  display: "inline-block",
812
815
  whiteSpace: "nowrap"
813
816
  });
814
817
  for (const piece of line.pieces) {
815
818
  if (piece.leaderStyle) {
816
- const leader = chunkN5WPJIMK_cjs.createEl(doc, "span", void 0, piece.leaderStyle);
819
+ const leader = chunkQ6YXUH4R_cjs.createEl(doc, "span", void 0, piece.leaderStyle);
817
820
  leader.setAttribute("aria-hidden", "true");
818
821
  leader.textContent = piece.leaderText ?? "";
819
822
  lineHost.appendChild(leader);
820
823
  }
821
824
  for (const word of piece.words ?? [piece]) {
822
- const textSpan = chunkN5WPJIMK_cjs.createEl(doc, "span", void 0, word.style);
825
+ const textSpan = chunkQ6YXUH4R_cjs.createEl(doc, "span", void 0, word.style);
823
826
  textSpan.textContent = word.text;
824
827
  lineHost.appendChild(textSpan);
825
828
  }
@@ -833,7 +836,7 @@ function appendTabLines(doc, host, lines) {
833
836
  function appendStyledPieces(doc, host, pieces) {
834
837
  for (const piece of pieces) {
835
838
  if (piece.style) {
836
- const span = chunkN5WPJIMK_cjs.createEl(doc, "span", void 0, piece.style);
839
+ const span = chunkQ6YXUH4R_cjs.createEl(doc, "span", void 0, piece.style);
837
840
  span.textContent = piece.text;
838
841
  host.appendChild(span);
839
842
  } else {
@@ -846,16 +849,16 @@ function appendStyledPieces(doc, host, pieces) {
846
849
  var NEWLINE_RUN = "\n";
847
850
  function createRunBaseNode(doc, run) {
848
851
  if (run.equation) {
849
- const host = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-inline-equation", run.style);
850
- const math = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-equation-math", {
852
+ const host = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-inline-equation", run.style);
853
+ const math = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-equation-math", {
851
854
  display: "inline-block",
852
855
  verticalAlign: "middle",
853
856
  fontFamily: "'Cambria Math', 'STIX Two Math', serif"
854
857
  });
855
- math.innerHTML = chunk2C2C27ML_cjs.runEquationMathMl(run.equation);
858
+ math.innerHTML = chunkJOQIMYHE_cjs.runEquationMathMl(run.equation);
856
859
  host.appendChild(math);
857
860
  if (run.equation.number) {
858
- const number = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-equation-number", {
861
+ const number = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-equation-number", {
859
862
  whiteSpace: "nowrap",
860
863
  marginInlineStart: "0.5em"
861
864
  });
@@ -864,8 +867,8 @@ function createRunBaseNode(doc, run) {
864
867
  }
865
868
  return host;
866
869
  }
867
- if (run.hyperlink && chunk2C2C27ML_cjs.isRunHyperlinkClickable(run.hyperlink)) {
868
- const link = chunkN5WPJIMK_cjs.createEl(doc, "a", "pptxv-link", run.style);
870
+ if (run.hyperlink && chunkJOQIMYHE_cjs.isRunHyperlinkClickable(run.hyperlink)) {
871
+ const link = chunkQ6YXUH4R_cjs.createEl(doc, "a", "pptxv-link", run.style);
869
872
  link.setAttribute("data-pptx-hyperlink", run.hyperlink.url);
870
873
  link.setAttribute("role", "link");
871
874
  link.tabIndex = 0;
@@ -881,13 +884,13 @@ function createRunBaseNode(doc, run) {
881
884
  }
882
885
  if (run.ruby) {
883
886
  const ruby = doc.createElement("ruby");
884
- chunkN5WPJIMK_cjs.applyStyleMap(ruby, run.style);
887
+ chunkQ6YXUH4R_cjs.applyStyleMap(ruby, run.style);
885
888
  appendRunContent(doc, ruby, run);
886
889
  const openParen = doc.createElement("rp");
887
890
  openParen.textContent = "(";
888
891
  ruby.appendChild(openParen);
889
892
  const annotation = doc.createElement("rt");
890
- chunkN5WPJIMK_cjs.applyStyleMap(annotation, run.ruby.style);
893
+ chunkQ6YXUH4R_cjs.applyStyleMap(annotation, run.ruby.style);
891
894
  annotation.textContent = run.ruby.text;
892
895
  ruby.appendChild(annotation);
893
896
  const closeParen = doc.createElement("rp");
@@ -895,8 +898,8 @@ function createRunBaseNode(doc, run) {
895
898
  ruby.appendChild(closeParen);
896
899
  return ruby;
897
900
  }
898
- const span = chunkN5WPJIMK_cjs.createEl(doc, "span");
899
- chunkN5WPJIMK_cjs.applyStyleMap(span, run.style);
901
+ const span = chunkQ6YXUH4R_cjs.createEl(doc, "span");
902
+ chunkQ6YXUH4R_cjs.applyStyleMap(span, run.style);
900
903
  appendRunContent(doc, span, run);
901
904
  return span;
902
905
  }
@@ -905,22 +908,22 @@ function createRunNode(doc, run) {
905
908
  if (!run.reflection) {
906
909
  return base;
907
910
  }
908
- const wrapper = chunkN5WPJIMK_cjs.createEl(doc, "span", void 0, {
911
+ const wrapper = chunkQ6YXUH4R_cjs.createEl(doc, "span", void 0, {
909
912
  position: "relative",
910
913
  display: "inline-block"
911
914
  });
912
915
  wrapper.appendChild(base);
913
- const mirror = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-text-reflection", { ...run.reflection });
916
+ const mirror = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-text-reflection", { ...run.reflection });
914
917
  mirror.setAttribute("aria-hidden", "true");
915
- const mirrorInner = chunkN5WPJIMK_cjs.createEl(doc, "span");
916
- chunkN5WPJIMK_cjs.applyStyleMap(mirrorInner, run.style);
918
+ const mirrorInner = chunkQ6YXUH4R_cjs.createEl(doc, "span");
919
+ chunkQ6YXUH4R_cjs.applyStyleMap(mirrorInner, run.style);
917
920
  appendRunContent(doc, mirrorInner, run);
918
921
  mirror.appendChild(mirrorInner);
919
922
  wrapper.appendChild(mirror);
920
923
  return wrapper;
921
924
  }
922
925
  function renderTextBlock(doc, paragraphs, textStyle, build) {
923
- const block = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-text", textStyle);
926
+ const block = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-text", textStyle);
924
927
  for (const para of paragraphs) {
925
928
  const paraStyle = {
926
929
  // This paragraph's own `text-align` / BiDi `direction` / kinsoku rules,
@@ -942,13 +945,13 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
942
945
  if (para.strutFontSizePx !== void 0) {
943
946
  paraStyle.fontSize = `${para.strutFontSizePx}px`;
944
947
  }
945
- const p = chunkN5WPJIMK_cjs.createEl(doc, "p", "pptxv-para", paraStyle);
948
+ const p = chunkQ6YXUH4R_cjs.createEl(doc, "p", "pptxv-para", paraStyle);
946
949
  if (para.textIndentPx !== void 0) {
947
950
  p.style.textIndent = `${para.textIndentPx}px`;
948
951
  }
949
952
  const picture = para.bulletPicture;
950
953
  if (picture?.src) {
951
- const image = chunkN5WPJIMK_cjs.createEl(doc, "img", "pptxv-bullet-image", {
954
+ const image = chunkQ6YXUH4R_cjs.createEl(doc, "img", "pptxv-bullet-image", {
952
955
  width: `${picture.sizePx}px`,
953
956
  height: `${picture.sizePx}px`,
954
957
  display: "inline-block",
@@ -961,15 +964,15 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
961
964
  image.setAttribute("draggable", "false");
962
965
  p.appendChild(image);
963
966
  } else if (para.bulletMarker !== void 0) {
964
- const bullet = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-bullet");
965
- chunkN5WPJIMK_cjs.applyStyleMap(bullet, para.bulletStyle);
967
+ const bullet = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-bullet");
968
+ chunkQ6YXUH4R_cjs.applyStyleMap(bullet, para.bulletStyle);
966
969
  if (para.bulletPicture) {
967
970
  bullet.setAttribute("aria-label", para.bulletPicture.accessibleLabel);
968
971
  }
969
972
  bullet.textContent = para.bulletMarker;
970
973
  p.appendChild(bullet);
971
974
  }
972
- const spec = build ? chunk2C2C27ML_cjs.buildTextBuildSpec(
975
+ const spec = build ? chunkJOQIMYHE_cjs.buildTextBuildSpec(
973
976
  build.elementId,
974
977
  paragraphs.indexOf(para),
975
978
  para.runs.filter((run) => run.text !== NEWLINE_RUN).map((run) => ({ text: run.text, style: run.style })),
@@ -977,8 +980,8 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
977
980
  ) : void 0;
978
981
  if (spec && spec.granularity !== "paragraph") {
979
982
  for (const span of spec.spans ?? []) {
980
- const node = chunkN5WPJIMK_cjs.createEl(doc, "span");
981
- chunkN5WPJIMK_cjs.applyStyleMap(node, { ...span.style ?? {}, ...chunk2C2C27ML_cjs.textBuildSpanStyle(span) });
983
+ const node = chunkQ6YXUH4R_cjs.createEl(doc, "span");
984
+ chunkQ6YXUH4R_cjs.applyStyleMap(node, { ...span.style ?? {}, ...chunkJOQIMYHE_cjs.textBuildSpanStyle(span) });
982
985
  if (span.animId) {
983
986
  node.setAttribute("data-anim-id", span.animId);
984
987
  }
@@ -990,8 +993,8 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
990
993
  }
991
994
  let runHost = p;
992
995
  if (spec) {
993
- const wrapper = chunkN5WPJIMK_cjs.createEl(doc, "span");
994
- chunkN5WPJIMK_cjs.applyStyleMap(wrapper, chunk2C2C27ML_cjs.textBuildSpanStyle(spec));
996
+ const wrapper = chunkQ6YXUH4R_cjs.createEl(doc, "span");
997
+ chunkQ6YXUH4R_cjs.applyStyleMap(wrapper, chunkJOQIMYHE_cjs.textBuildSpanStyle(spec));
995
998
  if (spec.animId) {
996
999
  wrapper.setAttribute("data-anim-id", spec.animId);
997
1000
  }
@@ -1028,7 +1031,7 @@ var renderConnectorElement = (element, zIndex, context) => {
1028
1031
  );
1029
1032
  const w = Math.max(element.width, 1);
1030
1033
  const h = Math.max(element.height, 1);
1031
- const wrapper = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-element pptxv-connector", {
1034
+ const wrapper = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-element pptxv-connector", {
1032
1035
  position: "absolute",
1033
1036
  left: `${element.x}px`,
1034
1037
  top: `${element.y}px`,
@@ -1056,14 +1059,14 @@ var renderConnectorElement = (element, zIndex, context) => {
1056
1059
  if (lineGlow) {
1057
1060
  wrapper.style.filter = lineGlow;
1058
1061
  }
1059
- const svg = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", { width: w, height: h, viewBox: `0 0 ${w} ${h}` });
1062
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", { width: w, height: h, viewBox: `0 0 ${w} ${h}` });
1060
1063
  svg.setAttribute("style", "overflow:visible;display:block");
1061
1064
  const seed = element.id.replace(/[^a-zA-Z0-9_-]/gu, "_");
1062
- const defs = chunkN5WPJIMK_cjs.createSvgEl(doc, "defs");
1065
+ const defs = chunkQ6YXUH4R_cjs.createSvgEl(doc, "defs");
1063
1066
  const lineShadow = chunkHTFYAGHG_cjs.getLineShadowParams(ss);
1064
1067
  const shadowId = lineShadow ? `${seed}-line-shadow` : void 0;
1065
1068
  if (lineShadow && shadowId) {
1066
- const filter = chunkN5WPJIMK_cjs.createSvgEl(doc, "filter", {
1069
+ const filter = chunkQ6YXUH4R_cjs.createSvgEl(doc, "filter", {
1067
1070
  id: shadowId,
1068
1071
  x: "-50%",
1069
1072
  y: "-50%",
@@ -1071,7 +1074,7 @@ var renderConnectorElement = (element, zIndex, context) => {
1071
1074
  height: "200%"
1072
1075
  });
1073
1076
  filter.appendChild(
1074
- chunkN5WPJIMK_cjs.createSvgEl(doc, "feDropShadow", {
1077
+ chunkQ6YXUH4R_cjs.createSvgEl(doc, "feDropShadow", {
1075
1078
  dx: lineShadow.offsetX,
1076
1079
  dy: lineShadow.offsetY,
1077
1080
  stdDeviation: lineShadow.blur / 2,
@@ -1116,13 +1119,13 @@ var renderConnectorElement = (element, zIndex, context) => {
1116
1119
  const y1 = element.flipVertical ? rh : 0;
1117
1120
  const x2 = element.flipHorizontal ? 0 : rw;
1118
1121
  const y2 = element.flipVertical ? 0 : rh;
1119
- const snapTransform = chunk2C2C27ML_cjs.connectorSnapTransform(element, !usePath, offsets.length, strokeWidth);
1120
- const hit = chunkN5WPJIMK_cjs.createSvgEl(doc, "path", {
1122
+ const snapTransform = chunkJOQIMYHE_cjs.connectorSnapTransform(element, !usePath, offsets.length, strokeWidth);
1123
+ const hit = chunkQ6YXUH4R_cjs.createSvgEl(doc, "path", {
1121
1124
  class: "pptxv-connector-hit",
1122
1125
  d: pathData ?? `M${x1},${y1} L${x2},${y2}`,
1123
1126
  fill: "none",
1124
1127
  stroke: "transparent",
1125
- "stroke-width": chunk2C2C27ML_cjs.connectorHitStrokeWidth(strokeWidth),
1128
+ "stroke-width": chunkJOQIMYHE_cjs.connectorHitStrokeWidth(strokeWidth),
1126
1129
  "stroke-linecap": "round",
1127
1130
  "stroke-linejoin": "round"
1128
1131
  });
@@ -1150,7 +1153,7 @@ var renderConnectorElement = (element, zIndex, context) => {
1150
1153
  };
1151
1154
  let node;
1152
1155
  if (paintD !== void 0) {
1153
- node = chunkN5WPJIMK_cjs.createSvgEl(doc, "path", {
1156
+ node = chunkQ6YXUH4R_cjs.createSvgEl(doc, "path", {
1154
1157
  d: paintD,
1155
1158
  fill: "none",
1156
1159
  "stroke-linejoin": "round",
@@ -1160,7 +1163,7 @@ var renderConnectorElement = (element, zIndex, context) => {
1160
1163
  node.style.transform = `translate(0, ${offset}px)`;
1161
1164
  }
1162
1165
  } else {
1163
- node = chunkN5WPJIMK_cjs.createSvgEl(doc, "line", {
1166
+ node = chunkQ6YXUH4R_cjs.createSvgEl(doc, "line", {
1164
1167
  x1,
1165
1168
  y1: y1 + offset,
1166
1169
  x2,
@@ -1183,7 +1186,7 @@ function appendConnectorLabel(wrapper, element, context) {
1183
1186
  if (!pptx.hasTextProperties(element)) {
1184
1187
  return;
1185
1188
  }
1186
- const paragraphs = chunk2C2C27ML_cjs.buildParagraphs(element, context.fieldContext);
1189
+ const paragraphs = chunkJOQIMYHE_cjs.buildParagraphs(element, context.fieldContext);
1187
1190
  if (!paragraphs.some((paragraph) => paragraph.runs.length > 0)) {
1188
1191
  return;
1189
1192
  }
@@ -1204,7 +1207,7 @@ function appendConnectorLabel(wrapper, element, context) {
1204
1207
  function buildMarker(context, id, arrow, strokeColor, size) {
1205
1208
  const doc = context.document;
1206
1209
  const shape = chunkHTFYAGHG_cjs.markerPath(arrow, size.width, size.length);
1207
- const marker = chunkN5WPJIMK_cjs.createSvgEl(doc, "marker", {
1210
+ const marker = chunkQ6YXUH4R_cjs.createSvgEl(doc, "marker", {
1208
1211
  id,
1209
1212
  viewBox: "0 0 10 10",
1210
1213
  refX: shape.refX,
@@ -1216,11 +1219,11 @@ function buildMarker(context, id, arrow, strokeColor, size) {
1216
1219
  preserveAspectRatio: "none"
1217
1220
  });
1218
1221
  if (shape.shape === "circle") {
1219
- marker.appendChild(chunkN5WPJIMK_cjs.createSvgEl(doc, "circle", { cx: 5, cy: 5, r: 4, fill: strokeColor }));
1222
+ marker.appendChild(chunkQ6YXUH4R_cjs.createSvgEl(doc, "circle", { cx: 5, cy: 5, r: 4, fill: strokeColor }));
1220
1223
  } else if (shape.strokeOnly) {
1221
- marker.appendChild(chunkN5WPJIMK_cjs.createSvgEl(doc, "path", { d: shape.d, fill: "none", stroke: strokeColor }));
1224
+ marker.appendChild(chunkQ6YXUH4R_cjs.createSvgEl(doc, "path", { d: shape.d, fill: "none", stroke: strokeColor }));
1222
1225
  } else {
1223
- marker.appendChild(chunkN5WPJIMK_cjs.createSvgEl(doc, "path", { d: shape.d, fill: strokeColor }));
1226
+ marker.appendChild(chunkQ6YXUH4R_cjs.createSvgEl(doc, "path", { d: shape.d, fill: strokeColor }));
1224
1227
  }
1225
1228
  return marker;
1226
1229
  }
@@ -1259,13 +1262,13 @@ function stripAbuttingEdgeBleeds(root) {
1259
1262
  // src/pptx/dom/elements/ink-stroke-svg.ts
1260
1263
  function buildStrokeSvg(doc, view, replay) {
1261
1264
  if (view.nibMarks) {
1262
- const g = chunkN5WPJIMK_cjs.createSvgEl(doc, "g", {
1265
+ const g = chunkQ6YXUH4R_cjs.createSvgEl(doc, "g", {
1263
1266
  opacity: view.opacity,
1264
1267
  ...view.blendMode === "multiply" ? { style: "mix-blend-mode: multiply" } : {}
1265
1268
  });
1266
1269
  for (const m of view.nibMarks) {
1267
1270
  g.appendChild(
1268
- chunkN5WPJIMK_cjs.createSvgEl(doc, "ellipse", {
1271
+ chunkQ6YXUH4R_cjs.createSvgEl(doc, "ellipse", {
1269
1272
  cx: m.cx,
1270
1273
  cy: m.cy,
1271
1274
  rx: m.rPerp,
@@ -1278,16 +1281,16 @@ function buildStrokeSvg(doc, view, replay) {
1278
1281
  return g;
1279
1282
  }
1280
1283
  if (view.circles) {
1281
- const g = chunkN5WPJIMK_cjs.createSvgEl(doc, "g", {
1284
+ const g = chunkQ6YXUH4R_cjs.createSvgEl(doc, "g", {
1282
1285
  opacity: view.opacity,
1283
1286
  ...view.blendMode === "multiply" ? { style: "mix-blend-mode: multiply" } : {}
1284
1287
  });
1285
1288
  for (const c of view.circles) {
1286
- g.appendChild(chunkN5WPJIMK_cjs.createSvgEl(doc, "circle", { cx: c.cx, cy: c.cy, r: c.r, fill: view.color }));
1289
+ g.appendChild(chunkQ6YXUH4R_cjs.createSvgEl(doc, "circle", { cx: c.cx, cy: c.cy, r: c.r, fill: view.color }));
1287
1290
  }
1288
1291
  return g;
1289
1292
  }
1290
- const path = chunkN5WPJIMK_cjs.createSvgEl(doc, "path", {
1293
+ const path = chunkQ6YXUH4R_cjs.createSvgEl(doc, "path", {
1291
1294
  d: view.d,
1292
1295
  fill: "none",
1293
1296
  stroke: view.color,
@@ -1315,24 +1318,24 @@ var renderContentPartElement = (element, zIndex, context) => {
1315
1318
  return null;
1316
1319
  }
1317
1320
  const doc = context.document;
1318
- const el = chunkN5WPJIMK_cjs.createEl(
1321
+ const el = chunkQ6YXUH4R_cjs.createEl(
1319
1322
  doc,
1320
1323
  "div",
1321
1324
  "pptxv-element pptxv-contentpart",
1322
- chunk2C2C27ML_cjs.getContainerStyle(element, zIndex)
1325
+ chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex)
1323
1326
  );
1324
1327
  el.dataset.elementId = element.id;
1325
1328
  const strokes = element.inkStrokes;
1326
1329
  if (!strokes || strokes.length === 0) {
1327
1330
  el.classList.add("pptxv-placeholder");
1328
- const label = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-placeholder-label");
1331
+ const label = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-placeholder-label");
1329
1332
  label.textContent = context.t("pptx.ink.contentPartFallback");
1330
1333
  el.appendChild(label);
1331
1334
  return el;
1332
1335
  }
1333
1336
  const w = Math.max(element.width, 1);
1334
1337
  const h = Math.max(element.height, 1);
1335
- const svg = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", {
1338
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", {
1336
1339
  viewBox: `0 0 ${w} ${h}`,
1337
1340
  preserveAspectRatio: "none"
1338
1341
  });
@@ -1340,7 +1343,7 @@ var renderContentPartElement = (element, zIndex, context) => {
1340
1343
  svg.setAttribute("style", "width:100%;height:100%;pointer-events:none;display:block");
1341
1344
  const replayStyles = context.presenting ? chunkNTXHQHCS_cjs.getContentPartReplayStyles(strokes) : [];
1342
1345
  if (context.presenting) {
1343
- const keyframes = chunkN5WPJIMK_cjs.createSvgEl(doc, "style");
1346
+ const keyframes = chunkQ6YXUH4R_cjs.createSvgEl(doc, "style");
1344
1347
  keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
1345
1348
  svg.appendChild(keyframes);
1346
1349
  }
@@ -1352,33 +1355,33 @@ var renderContentPartElement = (element, zIndex, context) => {
1352
1355
  return el;
1353
1356
  };
1354
1357
  function renderEquations(element, context) {
1355
- if (!pptx.hasTextProperties(element) || !chunk2C2C27ML_cjs.isEquationOnlyText(element.textSegments)) {
1358
+ if (!pptx.hasTextProperties(element) || !chunkJOQIMYHE_cjs.isEquationOnlyText(element.textSegments)) {
1356
1359
  return null;
1357
1360
  }
1358
1361
  const equations = (element.textSegments ?? []).filter((segment) => segment.equationXml);
1359
1362
  if (equations.length === 0) {
1360
1363
  return null;
1361
1364
  }
1362
- const wrapper = chunkN5WPJIMK_cjs.createEl(context.document, "div", "pptxv-equations", chunk2C2C27ML_cjs.buildEquationBlockStyle(getTextBlockStyle(element)));
1365
+ const wrapper = chunkQ6YXUH4R_cjs.createEl(context.document, "div", "pptxv-equations", chunkJOQIMYHE_cjs.buildEquationBlockStyle(getTextBlockStyle(element)));
1363
1366
  for (const segment of equations) {
1364
- const mathml = chunk2C2C27ML_cjs.convertOmmlToMathMl(segment.equationXml);
1367
+ const mathml = chunkJOQIMYHE_cjs.convertOmmlToMathMl(segment.equationXml);
1365
1368
  if (!mathml) {
1366
1369
  continue;
1367
1370
  }
1368
- const row = chunkN5WPJIMK_cjs.createEl(context.document, "span", "pptxv-equation", {
1371
+ const row = chunkQ6YXUH4R_cjs.createEl(context.document, "span", "pptxv-equation", {
1369
1372
  display: "flex",
1370
1373
  alignItems: "center",
1371
1374
  justifyContent: "center",
1372
1375
  width: "100%"
1373
1376
  });
1374
- const math = chunkN5WPJIMK_cjs.createEl(context.document, "span", "pptxv-equation-math", {
1377
+ const math = chunkQ6YXUH4R_cjs.createEl(context.document, "span", "pptxv-equation-math", {
1375
1378
  flex: 1,
1376
1379
  textAlign: "center"
1377
1380
  });
1378
- math.innerHTML = chunk2C2C27ML_cjs.sanitizeMathMl(mathml);
1381
+ math.innerHTML = chunkJOQIMYHE_cjs.sanitizeMathMl(mathml);
1379
1382
  row.appendChild(math);
1380
1383
  if (segment.equationNumber) {
1381
- const number = chunkN5WPJIMK_cjs.createEl(context.document, "span", "pptxv-equation-number", {
1384
+ const number = chunkQ6YXUH4R_cjs.createEl(context.document, "span", "pptxv-equation-number", {
1382
1385
  whiteSpace: "nowrap"
1383
1386
  });
1384
1387
  number.textContent = `(${segment.equationNumber})`;
@@ -1393,7 +1396,7 @@ function renderExtrusionOverlay(doc, element) {
1393
1396
  return null;
1394
1397
  }
1395
1398
  const fill = chunkHTFYAGHG_cjs.getComputedFillStyle(element)?.backgroundColor;
1396
- const data = chunk2C2C27ML_cjs.build3DExtrusionData(
1399
+ const data = chunkJOQIMYHE_cjs.build3DExtrusionData(
1397
1400
  element.shapeStyle?.shape3d,
1398
1401
  element.shapeStyle?.scene3d,
1399
1402
  fill,
@@ -1403,11 +1406,11 @@ function renderExtrusionOverlay(doc, element) {
1403
1406
  if (!data.hasExtrusion || data.panels.length === 0) {
1404
1407
  return null;
1405
1408
  }
1406
- const wrapper = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-extrusion-3d", toCss(data.wrapperStyle));
1409
+ const wrapper = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-extrusion-3d", toCss(data.wrapperStyle));
1407
1410
  wrapper.setAttribute("aria-hidden", "true");
1408
1411
  for (const panel of data.panels) {
1409
1412
  wrapper.appendChild(
1410
- chunkN5WPJIMK_cjs.createEl(
1413
+ chunkQ6YXUH4R_cjs.createEl(
1411
1414
  doc,
1412
1415
  "div",
1413
1416
  `pptxv-extrusion-3d-panel pptxv-extrusion-3d-panel--${panel.side}`,
@@ -1417,7 +1420,7 @@ function renderExtrusionOverlay(doc, element) {
1417
1420
  }
1418
1421
  if (data.materialOverlay) {
1419
1422
  wrapper.appendChild(
1420
- chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-extrusion-3d-material", {
1423
+ chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-extrusion-3d-material", {
1421
1424
  position: "absolute",
1422
1425
  inset: 0,
1423
1426
  backgroundImage: data.materialOverlay,
@@ -1459,14 +1462,14 @@ function appendOwnReflection(doc, host, element, mediaDataUrls, suppressOwnRefle
1459
1462
  if (!wrapperStyle) {
1460
1463
  return;
1461
1464
  }
1462
- const layer = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-reflection", { ...wrapperStyle });
1465
+ const layer = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-reflection", { ...wrapperStyle });
1463
1466
  layer.setAttribute("aria-hidden", "true");
1464
1467
  layer.appendChild(buildReflectionMirrorContent(doc, element, mediaDataUrls, void 0, true));
1465
1468
  host.appendChild(layer);
1466
1469
  }
1467
1470
  function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFill, suppressOwnReflection = false) {
1468
1471
  if (element.type === "group") {
1469
- const wrap = chunkN5WPJIMK_cjs.createEl(doc, "div", void 0, {
1472
+ const wrap = chunkQ6YXUH4R_cjs.createEl(doc, "div", void 0, {
1470
1473
  position: "relative",
1471
1474
  width: "100%",
1472
1475
  height: "100%",
@@ -1479,9 +1482,9 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
1479
1482
  if (groupFilterDefs) {
1480
1483
  wrap.appendChild(groupFilterDefs);
1481
1484
  }
1482
- const childParentFill = chunk2C2C27ML_cjs.getGroupChildParentFill(element, parentGroupFill);
1485
+ const childParentFill = chunkJOQIMYHE_cjs.getGroupChildParentFill(element, parentGroupFill);
1483
1486
  for (const child of element.children ?? []) {
1484
- const childWrap = chunkN5WPJIMK_cjs.createEl(doc, "div", void 0, chunk2C2C27ML_cjs.getContainerStyle(child, 0));
1487
+ const childWrap = chunkQ6YXUH4R_cjs.createEl(doc, "div", void 0, chunkJOQIMYHE_cjs.getContainerStyle(child, 0));
1485
1488
  childWrap.appendChild(
1486
1489
  buildReflectionMirrorContent(doc, child, mediaDataUrls, childParentFill)
1487
1490
  );
@@ -1490,12 +1493,12 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
1490
1493
  appendOwnReflection(doc, wrap, element, mediaDataUrls, suppressOwnReflection);
1491
1494
  return wrap;
1492
1495
  }
1493
- const box = chunkN5WPJIMK_cjs.createEl(doc, "div", void 0, {
1496
+ const box = chunkQ6YXUH4R_cjs.createEl(doc, "div", void 0, {
1494
1497
  width: "100%",
1495
1498
  height: "100%",
1496
1499
  ...getShapeFillStrokeStyle(element)
1497
1500
  });
1498
- const inheritedFill = chunk2C2C27ML_cjs.resolveGroupChildFill(element, parentGroupFill);
1501
+ const inheritedFill = chunkJOQIMYHE_cjs.resolveGroupChildFill(element, parentGroupFill);
1499
1502
  if (inheritedFill) {
1500
1503
  applyInheritedFill(box, inheritedFill);
1501
1504
  }
@@ -1520,12 +1523,12 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
1520
1523
  box.appendChild(gradientOutline);
1521
1524
  }
1522
1525
  if (pptx.isImageLikeElement(element)) {
1523
- const src = chunk2C2C27ML_cjs.getImageSrc(element, new Map(mediaDataUrls));
1526
+ const src = chunkJOQIMYHE_cjs.getImageSrc(element, new Map(mediaDataUrls));
1524
1527
  if (src) {
1525
- const img = chunkN5WPJIMK_cjs.createEl(doc, "img", void 0, {
1528
+ const img = chunkQ6YXUH4R_cjs.createEl(doc, "img", void 0, {
1526
1529
  width: "100%",
1527
1530
  height: "100%",
1528
- ...chunk2C2C27ML_cjs.getImageFitStyle(element)
1531
+ ...chunkJOQIMYHE_cjs.getImageFitStyle(element)
1529
1532
  });
1530
1533
  img.setAttribute("src", src);
1531
1534
  img.setAttribute("alt", "");
@@ -1535,7 +1538,7 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
1535
1538
  appendOwnReflection(doc, box, element, mediaDataUrls, suppressOwnReflection);
1536
1539
  return box;
1537
1540
  }
1538
- const paragraphs = chunk2C2C27ML_cjs.buildParagraphs(element);
1541
+ const paragraphs = chunkJOQIMYHE_cjs.buildParagraphs(element);
1539
1542
  const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
1540
1543
  if (hasText) {
1541
1544
  box.appendChild(renderTextBlock(doc, paragraphs, getTextBlockStyle(element)));
@@ -1560,16 +1563,16 @@ function renderShapeFilterDefs(doc, element) {
1560
1563
  if (effectDefs) {
1561
1564
  markups.push(effectDefs.filterMarkup);
1562
1565
  }
1563
- const bevelLighting = chunk2C2C27ML_cjs.getBevelLightingSvgFilter(element);
1566
+ const bevelLighting = chunkJOQIMYHE_cjs.getBevelLightingSvgFilter(element);
1564
1567
  if (bevelLighting) {
1565
1568
  markups.push(bevelLighting.filterMarkup);
1566
1569
  }
1567
1570
  if (markups.length === 0) {
1568
1571
  return null;
1569
1572
  }
1570
- const svg = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
1573
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
1571
1574
  svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
1572
- const defs = chunkN5WPJIMK_cjs.createSvgEl(doc, "defs");
1575
+ const defs = chunkQ6YXUH4R_cjs.createSvgEl(doc, "defs");
1573
1576
  defs.innerHTML = markups.join("");
1574
1577
  svg.appendChild(defs);
1575
1578
  return svg;
@@ -1582,7 +1585,7 @@ function renderShapeFillOverlay(doc, element) {
1582
1585
  if (!overlay) {
1583
1586
  return null;
1584
1587
  }
1585
- const layer = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-fill-overlay", {
1588
+ const layer = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-fill-overlay", {
1586
1589
  position: "absolute",
1587
1590
  inset: 0,
1588
1591
  background: overlay.color,
@@ -1597,23 +1600,23 @@ function renderReflectionOverlay(doc, element, mediaDataUrls) {
1597
1600
  if (!wrapperStyle) {
1598
1601
  return null;
1599
1602
  }
1600
- const layer = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-reflection", { ...wrapperStyle });
1603
+ const layer = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-reflection", { ...wrapperStyle });
1601
1604
  layer.setAttribute("aria-hidden", "true");
1602
1605
  layer.appendChild(buildReflectionMirrorContent(doc, element, mediaDataUrls, void 0, true));
1603
1606
  return layer;
1604
1607
  }
1605
1608
  function renderHollowHitOutline(doc, element) {
1606
- const hit = chunk2C2C27ML_cjs.buildHollowHitOutline(element);
1609
+ const hit = chunkJOQIMYHE_cjs.buildHollowHitOutline(element);
1607
1610
  if (!hit) {
1608
1611
  return null;
1609
1612
  }
1610
- const svg = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", {
1613
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", {
1611
1614
  "aria-hidden": "true",
1612
1615
  viewBox: chunkHTFYAGHG_cjs.strokeOutlineViewBox(element),
1613
1616
  preserveAspectRatio: "none"
1614
1617
  });
1615
1618
  svg.setAttribute("style", OUTLINE_SVG_STYLE);
1616
- const path = chunkN5WPJIMK_cjs.createSvgEl(doc, "path", {
1619
+ const path = chunkQ6YXUH4R_cjs.createSvgEl(doc, "path", {
1617
1620
  d: hit.d,
1618
1621
  fill: hit.fill,
1619
1622
  stroke: hit.stroke,
@@ -1622,18 +1625,18 @@ function renderHollowHitOutline(doc, element) {
1622
1625
  path.setAttribute("style", `pointer-events:${hit.pointerEvents}`);
1623
1626
  svg.appendChild(path);
1624
1627
  if (hit.textCss) {
1625
- const style = chunkN5WPJIMK_cjs.createSvgEl(doc, "style", {});
1628
+ const style = chunkQ6YXUH4R_cjs.createSvgEl(doc, "style", {});
1626
1629
  style.textContent = hit.textCss;
1627
1630
  svg.appendChild(style);
1628
1631
  }
1629
1632
  return svg;
1630
1633
  }
1631
1634
  function renderShapeFillLayer(doc, element) {
1632
- const layer = chunk2C2C27ML_cjs.getSilhouetteFillLayer(element);
1635
+ const layer = chunkJOQIMYHE_cjs.getSilhouetteFillLayer(element);
1633
1636
  if (!layer) {
1634
1637
  return null;
1635
1638
  }
1636
- const div = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptx-vanilla-silhouette-fill", { ...layer.style });
1639
+ const div = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptx-vanilla-silhouette-fill", { ...layer.style });
1637
1640
  div.setAttribute("aria-hidden", "true");
1638
1641
  return div;
1639
1642
  }
@@ -1642,7 +1645,7 @@ function renderShapeSubpathFillOverlay(doc, element) {
1642
1645
  if (!overlay) {
1643
1646
  return null;
1644
1647
  }
1645
- const svg = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", {
1648
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", {
1646
1649
  class: "pptx-vanilla-subpath-fill",
1647
1650
  "aria-hidden": "true",
1648
1651
  viewBox: `0 0 ${overlay.viewBoxWidth} ${overlay.viewBoxHeight}`,
@@ -1653,7 +1656,7 @@ function renderShapeSubpathFillOverlay(doc, element) {
1653
1656
  svg.setAttribute("data-pptx-silhouette-fill", "");
1654
1657
  }
1655
1658
  for (const paint of overlay.paints) {
1656
- const path = chunkN5WPJIMK_cjs.createSvgEl(doc, "path", { d: paint.d, fill: paint.fill, stroke: "none" });
1659
+ const path = chunkQ6YXUH4R_cjs.createSvgEl(doc, "path", { d: paint.d, fill: paint.fill, stroke: "none" });
1657
1660
  svg.appendChild(path);
1658
1661
  }
1659
1662
  return svg;
@@ -1663,7 +1666,7 @@ function renderStrokeOutline(doc, element) {
1663
1666
  if (!outline) {
1664
1667
  return null;
1665
1668
  }
1666
- const svg = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", {
1669
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", {
1667
1670
  class: "pptx-vanilla-gradient-outline",
1668
1671
  "data-pptx-outline": "",
1669
1672
  "aria-hidden": "true",
@@ -1672,15 +1675,15 @@ function renderStrokeOutline(doc, element) {
1672
1675
  });
1673
1676
  svg.setAttribute("style", OUTLINE_SVG_STYLE);
1674
1677
  if (outline.paint) {
1675
- const defs = chunkN5WPJIMK_cjs.createSvgEl(doc, "defs");
1678
+ const defs = chunkQ6YXUH4R_cjs.createSvgEl(doc, "defs");
1676
1679
  if (chunkHTFYAGHG_cjs.isPatternPaint(outline.paint)) {
1677
- const pattern = chunkN5WPJIMK_cjs.createSvgEl(doc, "pattern", {
1680
+ const pattern = chunkQ6YXUH4R_cjs.createSvgEl(doc, "pattern", {
1678
1681
  id: outline.paint.id,
1679
1682
  width: outline.paint.width,
1680
1683
  height: outline.paint.height,
1681
1684
  patternUnits: "userSpaceOnUse"
1682
1685
  });
1683
- const image = chunkN5WPJIMK_cjs.createSvgEl(doc, "image", {
1686
+ const image = chunkQ6YXUH4R_cjs.createSvgEl(doc, "image", {
1684
1687
  href: outline.paint.href,
1685
1688
  width: outline.paint.width,
1686
1689
  height: outline.paint.height
@@ -1693,7 +1696,7 @@ function renderStrokeOutline(doc, element) {
1693
1696
  svg.appendChild(defs);
1694
1697
  }
1695
1698
  for (const strand of outline.strands) {
1696
- const path = chunkN5WPJIMK_cjs.createSvgEl(doc, "path", {
1699
+ const path = chunkQ6YXUH4R_cjs.createSvgEl(doc, "path", {
1697
1700
  d: strand.d ?? outline.d,
1698
1701
  fill: "none",
1699
1702
  stroke: outline.stroke,
@@ -1714,7 +1717,7 @@ function renderStrokeOutline(doc, element) {
1714
1717
  svg.appendChild(path);
1715
1718
  }
1716
1719
  if (outline.markers) {
1717
- const defs = chunkN5WPJIMK_cjs.createSvgEl(doc, "defs");
1720
+ const defs = chunkQ6YXUH4R_cjs.createSvgEl(doc, "defs");
1718
1721
  defs.innerHTML = outline.markers.markup;
1719
1722
  svg.prepend(defs);
1720
1723
  const path = svg.querySelector(":scope > path");
@@ -1750,14 +1753,14 @@ function indexRenderedNodes(root) {
1750
1753
  return byId;
1751
1754
  }
1752
1755
  function paintInheritedFill(node, element, parentGroupFill) {
1753
- const inherited = chunk2C2C27ML_cjs.resolveGroupChildFill(element, parentGroupFill);
1756
+ const inherited = chunkJOQIMYHE_cjs.resolveGroupChildFill(element, parentGroupFill);
1754
1757
  if (inherited) {
1755
1758
  applyGroupChildFill(node, inherited);
1756
1759
  }
1757
1760
  if (element.type !== "group") {
1758
1761
  return;
1759
1762
  }
1760
- const childFill = chunk2C2C27ML_cjs.getGroupChildParentFill(element, parentGroupFill);
1763
+ const childFill = chunkJOQIMYHE_cjs.getGroupChildParentFill(element, parentGroupFill);
1761
1764
  if (!childFill) {
1762
1765
  return;
1763
1766
  }
@@ -1770,8 +1773,8 @@ function paintInheritedFill(node, element, parentGroupFill) {
1770
1773
  }
1771
1774
  }
1772
1775
  var renderGroupElement = (element, zIndex, context) => {
1773
- const el = chunkN5WPJIMK_cjs.createEl(context.document, "div", "pptxv-element pptxv-group", {
1774
- ...chunk2C2C27ML_cjs.getContainerStyle(element, zIndex),
1776
+ const el = chunkQ6YXUH4R_cjs.createEl(context.document, "div", "pptxv-element pptxv-group", {
1777
+ ...chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex),
1775
1778
  // A group paints no fill/outline of its own, but `p:grpSpPr/a:effectLst`
1776
1779
  // DOES carry a shadow/glow/soft-edge for the group's own composite
1777
1780
  // raster (see shared `getComputedEffectStyle`), expressed as `filter` /
@@ -1788,7 +1791,7 @@ var renderGroupElement = (element, zIndex, context) => {
1788
1791
  el.appendChild(reflection);
1789
1792
  }
1790
1793
  if (element.type === "group" && element.children?.length) {
1791
- const parentGroupFill = chunk2C2C27ML_cjs.getGroupChildParentFill(element);
1794
+ const parentGroupFill = chunkJOQIMYHE_cjs.getGroupChildParentFill(element);
1792
1795
  element.children.forEach((child, index) => {
1793
1796
  const childEl = context.renderElement(child, index);
1794
1797
  if (childEl) {
@@ -1803,20 +1806,20 @@ var renderGroupElement = (element, zIndex, context) => {
1803
1806
  // src/pptx/dom/elements/image.ts
1804
1807
  var renderImageElement = (element, zIndex, context) => {
1805
1808
  const doc = context.document;
1806
- const geometry = element.type === "image" || element.type === "picture" ? chunk2C2C27ML_cjs.resolveShapeGeometry(element) : void 0;
1809
+ const geometry = element.type === "image" || element.type === "picture" ? chunkJOQIMYHE_cjs.resolveShapeGeometry(element) : void 0;
1807
1810
  const geometryClipPath = geometry?.kind === "clipPath" ? geometry.clipPath : void 0;
1808
- const cropShapeClipPath = element.type === "image" || element.type === "picture" ? chunk2C2C27ML_cjs.getCropShapeClipPath(element.cropShape, element.width, element.height) : void 0;
1809
- const layers = chunk2C2C27ML_cjs.getPictureFrameLayers(element, {
1810
- overflow: chunk2C2C27ML_cjs.getImageOverflow(element),
1811
+ const cropShapeClipPath = element.type === "image" || element.type === "picture" ? chunkJOQIMYHE_cjs.getCropShapeClipPath(element.cropShape, element.width, element.height) : void 0;
1812
+ const layers = chunkJOQIMYHE_cjs.getPictureFrameLayers(element, {
1813
+ overflow: chunkJOQIMYHE_cjs.getImageOverflow(element),
1811
1814
  borderRadius: geometry?.kind === "borderRadius" ? geometry.radius : void 0,
1812
1815
  clipPath: geometryClipPath ?? cropShapeClipPath
1813
1816
  });
1814
- const el = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-element pptxv-image", {
1815
- ...chunk2C2C27ML_cjs.getContainerStyle(element, zIndex),
1817
+ const el = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-element pptxv-image", {
1818
+ ...chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex),
1816
1819
  ...layers.box
1817
1820
  });
1818
1821
  el.dataset.elementId = element.id;
1819
- const surface = layers.surface ? chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-image-surface", layers.surface) : el;
1822
+ const surface = layers.surface ? chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-image-surface", layers.surface) : el;
1820
1823
  if (surface !== el) {
1821
1824
  el.appendChild(surface);
1822
1825
  const outline = renderStrokeOutline(doc, element);
@@ -1824,36 +1827,36 @@ var renderImageElement = (element, zIndex, context) => {
1824
1827
  el.appendChild(outline);
1825
1828
  }
1826
1829
  }
1827
- const src = chunk2C2C27ML_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
1830
+ const src = chunkJOQIMYHE_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
1828
1831
  if (!src) {
1829
1832
  return el;
1830
1833
  }
1831
- const fx = chunk2C2C27ML_cjs.getComputedImageStyle(element);
1834
+ const fx = chunkJOQIMYHE_cjs.getComputedImageStyle(element);
1832
1835
  for (const f of fx.svgFilters) {
1833
- const svg = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
1836
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
1834
1837
  svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
1835
- const defs = chunkN5WPJIMK_cjs.createSvgEl(doc, "defs");
1836
- const filter = chunkN5WPJIMK_cjs.createSvgEl(doc, "filter");
1837
- chunkN5WPJIMK_cjs.setSvgAttrs(filter, { id: f.id, "color-interpolation-filters": "sRGB" });
1838
+ const defs = chunkQ6YXUH4R_cjs.createSvgEl(doc, "defs");
1839
+ const filter = chunkQ6YXUH4R_cjs.createSvgEl(doc, "filter");
1840
+ chunkQ6YXUH4R_cjs.setSvgAttrs(filter, { id: f.id, "color-interpolation-filters": "sRGB" });
1838
1841
  filter.innerHTML = f.markup;
1839
1842
  defs.appendChild(filter);
1840
1843
  svg.appendChild(defs);
1841
1844
  surface.appendChild(svg);
1842
1845
  }
1843
1846
  const reflection = renderReflectionOverlay(doc, element, context.mediaDataUrls);
1844
- const tiling = chunk2C2C27ML_cjs.getImageTilingStyle(element, chunk2C2C27ML_cjs.getCachedNativeImageSize(src));
1847
+ const tiling = chunkJOQIMYHE_cjs.getImageTilingStyle(element, chunkJOQIMYHE_cjs.getCachedNativeImageSize(src));
1845
1848
  if (tiling) {
1846
- const tile = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-image-tile", tiling);
1849
+ const tile = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-image-tile", tiling);
1847
1850
  if (fx.filter) {
1848
1851
  tile.style.filter = fx.filter;
1849
1852
  }
1850
1853
  if (fx.opacity !== void 0) {
1851
1854
  tile.style.opacity = String(fx.opacity);
1852
1855
  }
1853
- if (!chunk2C2C27ML_cjs.getCachedNativeImageSize(src)) {
1854
- void chunk2C2C27ML_cjs.probeNativeImageSize(src).then((size) => {
1856
+ if (!chunkJOQIMYHE_cjs.getCachedNativeImageSize(src)) {
1857
+ void chunkJOQIMYHE_cjs.probeNativeImageSize(src).then((size) => {
1855
1858
  if (size) {
1856
- chunkN5WPJIMK_cjs.applyStyleMap(tile, chunk2C2C27ML_cjs.getImageTilingStyle(element, size) ?? {});
1859
+ chunkQ6YXUH4R_cjs.applyStyleMap(tile, chunkJOQIMYHE_cjs.getImageTilingStyle(element, size) ?? {});
1857
1860
  }
1858
1861
  return void 0;
1859
1862
  });
@@ -1864,9 +1867,9 @@ var renderImageElement = (element, zIndex, context) => {
1864
1867
  }
1865
1868
  return el;
1866
1869
  }
1867
- const fit = chunk2C2C27ML_cjs.getImageFitStyle(element);
1868
- const fillCounterTransform = chunk2C2C27ML_cjs.getImageFillCounterTransform(element, Boolean(fit.transform));
1869
- const img = chunkN5WPJIMK_cjs.createEl(doc, "img", void 0, {
1870
+ const fit = chunkJOQIMYHE_cjs.getImageFitStyle(element);
1871
+ const fillCounterTransform = chunkJOQIMYHE_cjs.getImageFillCounterTransform(element, Boolean(fit.transform));
1872
+ const img = chunkQ6YXUH4R_cjs.createEl(doc, "img", void 0, {
1870
1873
  ...fit,
1871
1874
  display: "block",
1872
1875
  ...fillCounterTransform ? { transform: fillCounterTransform, transformOrigin: "center" } : {}
@@ -1884,17 +1887,17 @@ var renderImageElement = (element, zIndex, context) => {
1884
1887
  if (element.type === "image" || element.type === "picture") {
1885
1888
  const clrChange = element.imageEffects?.clrChange;
1886
1889
  if (clrChange) {
1887
- void chunk2C2C27ML_cjs.resolveColorChangedImageSource(src, clrChange).then((resolved) => {
1890
+ void chunkJOQIMYHE_cjs.resolveColorChangedImageSource(src, clrChange).then((resolved) => {
1888
1891
  if (img.src === src || img.getAttribute("src") === src) {
1889
1892
  img.src = resolved;
1890
1893
  }
1891
1894
  return void 0;
1892
1895
  });
1893
1896
  }
1894
- const wash = chunk2C2C27ML_cjs.getImageColorWashStyle(element.imageEffects?.colorWash);
1897
+ const wash = chunkJOQIMYHE_cjs.getImageColorWashStyle(element.imageEffects?.colorWash);
1895
1898
  if (wash) {
1896
1899
  surface.appendChild(
1897
- chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-image-color-wash", {
1900
+ chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-image-color-wash", {
1898
1901
  position: "absolute",
1899
1902
  inset: "0",
1900
1903
  pointerEvents: "none",
@@ -1916,11 +1919,11 @@ var renderInkElement = (element, zIndex, context) => {
1916
1919
  return null;
1917
1920
  }
1918
1921
  const doc = context.document;
1919
- const wrapper = chunkN5WPJIMK_cjs.createEl(
1922
+ const wrapper = chunkQ6YXUH4R_cjs.createEl(
1920
1923
  doc,
1921
1924
  "div",
1922
1925
  "pptxv-element pptxv-ink",
1923
- chunk2C2C27ML_cjs.getContainerStyle(element, zIndex)
1926
+ chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex)
1924
1927
  );
1925
1928
  wrapper.dataset.elementId = element.id;
1926
1929
  const paths = element.inkPaths;
@@ -1929,7 +1932,7 @@ var renderInkElement = (element, zIndex, context) => {
1929
1932
  }
1930
1933
  const w = Math.max(element.width, 1);
1931
1934
  const h = Math.max(element.height, 1);
1932
- const svg = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", {
1935
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", {
1933
1936
  viewBox: `0 0 ${w} ${h}`,
1934
1937
  preserveAspectRatio: "none"
1935
1938
  });
@@ -1937,11 +1940,11 @@ var renderInkElement = (element, zIndex, context) => {
1937
1940
  svg.setAttribute("style", "width:100%;height:100%;pointer-events:none;display:block");
1938
1941
  const replayStyles = context.presenting ? chunkNTXHQHCS_cjs.getInkReplayStyles(element) : [];
1939
1942
  if (context.presenting) {
1940
- const keyframes = chunkN5WPJIMK_cjs.createSvgEl(doc, "style");
1943
+ const keyframes = chunkQ6YXUH4R_cjs.createSvgEl(doc, "style");
1941
1944
  keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
1942
1945
  svg.appendChild(keyframes);
1943
1946
  }
1944
- const views = chunk2C2C27ML_cjs.buildInkGroupStrokes(element, { color: chunkHTFYAGHG_cjs.DEFAULT_STROKE_COLOR, width: 1 });
1947
+ const views = chunkJOQIMYHE_cjs.buildInkGroupStrokes(element, { color: chunkHTFYAGHG_cjs.DEFAULT_STROKE_COLOR, width: 1 });
1945
1948
  for (const [i, view] of views.entries()) {
1946
1949
  svg.appendChild(buildStrokeSvg(doc, view, replayStyles[i]));
1947
1950
  }
@@ -1964,7 +1967,7 @@ function mediaFullscreenResetStyle(baseStyle) {
1964
1967
  };
1965
1968
  }
1966
1969
  function buildFullscreenStopButton(doc, label, onStop) {
1967
- const button = chunkN5WPJIMK_cjs.createEl(doc, "button", "pptxv-media-fullscreen-stop", {
1970
+ const button = chunkQ6YXUH4R_cjs.createEl(doc, "button", "pptxv-media-fullscreen-stop", {
1968
1971
  position: "absolute",
1969
1972
  bottom: "12px",
1970
1973
  right: "12px",
@@ -1980,14 +1983,14 @@ function buildFullscreenStopButton(doc, label, onStop) {
1980
1983
  button.type = "button";
1981
1984
  button.setAttribute("aria-label", label);
1982
1985
  button.addEventListener("click", onStop);
1983
- const icon = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", {
1986
+ const icon = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", {
1984
1987
  width: 18,
1985
1988
  height: 18,
1986
1989
  viewBox: "0 0 24 24",
1987
1990
  fill: "currentColor",
1988
1991
  stroke: "none"
1989
1992
  });
1990
- icon.appendChild(chunkN5WPJIMK_cjs.createSvgEl(doc, "rect", { x: 6, y: 6, width: 12, height: 12, rx: 1 }));
1993
+ icon.appendChild(chunkQ6YXUH4R_cjs.createSvgEl(doc, "rect", { x: 6, y: 6, width: 12, height: 12, rx: 1 }));
1991
1994
  button.appendChild(icon);
1992
1995
  return button;
1993
1996
  }
@@ -1995,12 +1998,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
1995
1998
  let stopButton = null;
1996
1999
  const update = (playing) => {
1997
2000
  const input = { fullScreen: element.fullScreen, presenting: context.presenting, playing };
1998
- const active = chunk2C2C27ML_cjs.isMediaFullscreenActive(input);
1999
- chunkN5WPJIMK_cjs.applyStyleMap(
2001
+ const active = chunkJOQIMYHE_cjs.isMediaFullscreenActive(input);
2002
+ chunkQ6YXUH4R_cjs.applyStyleMap(
2000
2003
  container,
2001
- active ? chunk2C2C27ML_cjs.MEDIA_FULLSCREEN_OVERLAY_STYLE : mediaFullscreenResetStyle(baseStyle)
2004
+ active ? chunkJOQIMYHE_cjs.MEDIA_FULLSCREEN_OVERLAY_STYLE : mediaFullscreenResetStyle(baseStyle)
2002
2005
  );
2003
- if (chunk2C2C27ML_cjs.shouldShowMediaFullscreenStopButton(input)) {
2006
+ if (chunkJOQIMYHE_cjs.shouldShowMediaFullscreenStopButton(input)) {
2004
2007
  if (!stopButton) {
2005
2008
  stopButton = buildFullscreenStopButton(
2006
2009
  doc,
@@ -2025,12 +2028,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
2025
2028
 
2026
2029
  // src/pptx/dom/elements/media.ts
2027
2030
  function applyMediaPresentingState(el, presenting, playback) {
2028
- chunk2C2C27ML_cjs.applyMediaPlaybackAttributes(el, playback);
2031
+ chunkJOQIMYHE_cjs.applyMediaPlaybackAttributes(el, playback);
2029
2032
  if (presenting) {
2030
- chunk2C2C27ML_cjs.startMediaAutoplay(el, { trimStartMs: playback.trimStartMs });
2031
- chunk2C2C27ML_cjs.scheduleMediaTrimAndFade(el, {
2033
+ chunkJOQIMYHE_cjs.startMediaAutoplay(el, { trimStartMs: playback.trimStartMs });
2034
+ chunkJOQIMYHE_cjs.scheduleMediaTrimAndFade(el, {
2032
2035
  ...playback,
2033
- volume: chunk2C2C27ML_cjs.mediaPlaybackAttributes(playback).volume
2036
+ volume: chunkJOQIMYHE_cjs.mediaPlaybackAttributes(playback).volume
2034
2037
  });
2035
2038
  } else if (!el.paused) {
2036
2039
  el.pause();
@@ -2040,31 +2043,31 @@ var renderMediaElement = (element, zIndex, context) => {
2040
2043
  if (element.type !== "media") {
2041
2044
  return null;
2042
2045
  }
2043
- const surface = chunk2C2C27ML_cjs.mediaSurfaceOf({
2046
+ const surface = chunkJOQIMYHE_cjs.mediaSurfaceOf({
2044
2047
  interactive: context.interactive === true || context.reading === true,
2045
2048
  presenting: context.presenting
2046
2049
  });
2047
- const showTransport = chunk2C2C27ML_cjs.mediaTransportVisible({
2050
+ const showTransport = chunkJOQIMYHE_cjs.mediaTransportVisible({
2048
2051
  ...surface,
2049
2052
  canvasTransport: context.reading === true
2050
2053
  });
2051
2054
  const attachAuthoringBar = (host, media) => {
2052
- if (chunk2C2C27ML_cjs.mediaControlBarEnabled({ ...surface, reading: context.reading === true })) {
2053
- chunk2C2C27ML_cjs.attachMediaControlBar(host, media, {
2055
+ if (chunkJOQIMYHE_cjs.mediaControlBarEnabled({ ...surface, reading: context.reading === true })) {
2056
+ chunkJOQIMYHE_cjs.attachMediaControlBar(host, media, {
2054
2057
  t: context.t,
2055
2058
  selected: context.selectedElementIds?.has(element.id) === true
2056
2059
  });
2057
2060
  }
2058
2061
  };
2059
2062
  const doc = context.document;
2060
- const baseStyle = chunk2C2C27ML_cjs.getContainerStyle(element, zIndex);
2061
- const el = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-element pptxv-media", baseStyle);
2063
+ const baseStyle = chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex);
2064
+ const el = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-element pptxv-media", baseStyle);
2062
2065
  el.dataset.elementId = element.id;
2063
2066
  const mediaSrc = element.mediaData ?? (element.mediaPath ? context.mediaDataUrls.get(element.mediaPath) : void 0);
2064
- const posterSrc = chunk2C2C27ML_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
2065
- const onlineVideoEmbedUrl = chunk2C2C27ML_cjs.getOnlineVideoEmbed(element)?.embedUrl;
2067
+ const posterSrc = chunkJOQIMYHE_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
2068
+ const onlineVideoEmbedUrl = chunkJOQIMYHE_cjs.getOnlineVideoEmbed(element)?.embedUrl;
2066
2069
  if (onlineVideoEmbedUrl && element.mediaType === "video") {
2067
- const iframe = chunkN5WPJIMK_cjs.createEl(doc, "iframe", "pptxv-media-video pptxv-media-iframe", {
2070
+ const iframe = chunkQ6YXUH4R_cjs.createEl(doc, "iframe", "pptxv-media-video pptxv-media-iframe", {
2068
2071
  width: "100%",
2069
2072
  height: "100%",
2070
2073
  border: "0",
@@ -2072,14 +2075,14 @@ var renderMediaElement = (element, zIndex, context) => {
2072
2075
  });
2073
2076
  iframe.src = onlineVideoEmbedUrl;
2074
2077
  iframe.title = context.t("pptx.media.onlineVideoTitle");
2075
- iframe.allow = chunk2C2C27ML_cjs.ONLINE_VIDEO_IFRAME_ALLOW;
2076
- iframe.sandbox.value = chunk2C2C27ML_cjs.ONLINE_VIDEO_IFRAME_SANDBOX;
2078
+ iframe.allow = chunkJOQIMYHE_cjs.ONLINE_VIDEO_IFRAME_ALLOW;
2079
+ iframe.sandbox.value = chunkJOQIMYHE_cjs.ONLINE_VIDEO_IFRAME_SANDBOX;
2077
2080
  iframe.allowFullscreen = true;
2078
2081
  el.appendChild(iframe);
2079
2082
  return el;
2080
2083
  }
2081
2084
  if (mediaSrc && element.mediaType === "video") {
2082
- const video = chunkN5WPJIMK_cjs.createEl(doc, "video", "pptxv-media-video", {
2085
+ const video = chunkQ6YXUH4R_cjs.createEl(doc, "video", "pptxv-media-video", {
2083
2086
  width: "100%",
2084
2087
  height: "100%",
2085
2088
  objectFit: "contain",
@@ -2099,13 +2102,13 @@ var renderMediaElement = (element, zIndex, context) => {
2099
2102
  return el;
2100
2103
  }
2101
2104
  if (mediaSrc && element.mediaType === "audio") {
2102
- const audio = chunkN5WPJIMK_cjs.createEl(doc, "audio", "pptxv-media-audio", { width: "100%" });
2105
+ const audio = chunkQ6YXUH4R_cjs.createEl(doc, "audio", "pptxv-media-audio", { width: "100%" });
2103
2106
  audio.src = mediaSrc;
2104
2107
  audio.controls = showTransport;
2105
2108
  el.appendChild(audio);
2106
- if (context.presenting && chunk2C2C27ML_cjs.registerCrossSlideAudio(element, mediaSrc)) {
2109
+ if (context.presenting && chunkJOQIMYHE_cjs.registerCrossSlideAudio(element, mediaSrc)) {
2107
2110
  audio.muted = true;
2108
- chunk2C2C27ML_cjs.applyMediaPlaybackAttributes(audio, element);
2111
+ chunkJOQIMYHE_cjs.applyMediaPlaybackAttributes(audio, element);
2109
2112
  return el;
2110
2113
  }
2111
2114
  applyMediaPresentingState(audio, context.presenting, element);
@@ -2113,14 +2116,14 @@ var renderMediaElement = (element, zIndex, context) => {
2113
2116
  wireMediaFullscreenOverlay(doc, el, audio, element, context, baseStyle);
2114
2117
  return el;
2115
2118
  }
2116
- const fallback = chunk2C2C27ML_cjs.mediaFallbackVisual(surface, {
2119
+ const fallback = chunkJOQIMYHE_cjs.mediaFallbackVisual(surface, {
2117
2120
  hasPoster: Boolean(posterSrc),
2118
2121
  missing: element.mediaMissing === true
2119
2122
  });
2120
- const icon = chunk2C2C27ML_cjs.mediaFallbackIcon(fallback, element.mediaType);
2121
- const labelKey = chunk2C2C27ML_cjs.mediaFallbackLabelKey(fallback, element.mediaType);
2123
+ const icon = chunkJOQIMYHE_cjs.mediaFallbackIcon(fallback, element.mediaType);
2124
+ const labelKey = chunkJOQIMYHE_cjs.mediaFallbackLabelKey(fallback, element.mediaType);
2122
2125
  if (fallback.poster && posterSrc) {
2123
- const img = chunkN5WPJIMK_cjs.createEl(doc, "img", "pptxv-media-poster", {
2126
+ const img = chunkQ6YXUH4R_cjs.createEl(doc, "img", "pptxv-media-poster", {
2124
2127
  width: "100%",
2125
2128
  height: "100%",
2126
2129
  objectFit: "contain",
@@ -2132,14 +2135,14 @@ var renderMediaElement = (element, zIndex, context) => {
2132
2135
  img.setAttribute("draggable", "false");
2133
2136
  el.appendChild(img);
2134
2137
  if (fallback.badge !== "none") {
2135
- const badge = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-media-badge");
2138
+ const badge = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-media-badge");
2136
2139
  if (fallback.badge === "missing") {
2137
2140
  badge.classList.add("pptxv-media-badge-missing");
2138
2141
  }
2139
- badge.setAttribute(chunk2C2C27ML_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.badge);
2142
+ badge.setAttribute(chunkJOQIMYHE_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.badge);
2140
2143
  badge.appendChild(buildIcon(doc, icon));
2141
2144
  if (labelKey !== void 0 && fallback.badge === "missing") {
2142
- const text = chunkN5WPJIMK_cjs.createEl(doc, "span");
2145
+ const text = chunkQ6YXUH4R_cjs.createEl(doc, "span");
2143
2146
  text.textContent = context.t(labelKey);
2144
2147
  badge.appendChild(text);
2145
2148
  }
@@ -2149,12 +2152,12 @@ var renderMediaElement = (element, zIndex, context) => {
2149
2152
  }
2150
2153
  if (fallback.placeholder !== "none") {
2151
2154
  el.classList.add("pptxv-placeholder", "pptxv-media-placeholder");
2152
- el.setAttribute(chunk2C2C27ML_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.placeholder);
2155
+ el.setAttribute(chunkJOQIMYHE_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.placeholder);
2153
2156
  if (icon.length > 0) {
2154
2157
  el.appendChild(buildIcon(doc, icon));
2155
2158
  }
2156
2159
  if (labelKey !== void 0) {
2157
- const label = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-placeholder-label");
2160
+ const label = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-placeholder-label");
2158
2161
  label.textContent = context.t(labelKey);
2159
2162
  el.appendChild(label);
2160
2163
  }
@@ -2181,11 +2184,11 @@ var renderModel3dElement = (element, zIndex, context) => {
2181
2184
  return null;
2182
2185
  }
2183
2186
  const doc = context.document;
2184
- const el = chunkN5WPJIMK_cjs.createEl(
2187
+ const el = chunkQ6YXUH4R_cjs.createEl(
2185
2188
  doc,
2186
2189
  "div",
2187
2190
  "pptxv-element pptxv-model3d",
2188
- chunk2C2C27ML_cjs.getContainerStyle(element, zIndex)
2191
+ chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex)
2189
2192
  );
2190
2193
  el.dataset.elementId = element.id;
2191
2194
  const label = context.t("pptx.model3d.label");
@@ -2198,7 +2201,7 @@ var renderModel3dElement = (element, zIndex, context) => {
2198
2201
  return el;
2199
2202
  };
2200
2203
  function buildPoster(doc, src, alt) {
2201
- const img = chunkN5WPJIMK_cjs.createEl(doc, "img", "pptxv-model3d-poster", {
2204
+ const img = chunkQ6YXUH4R_cjs.createEl(doc, "img", "pptxv-model3d-poster", {
2202
2205
  width: "100%",
2203
2206
  height: "100%",
2204
2207
  objectFit: "contain",
@@ -2212,7 +2215,7 @@ function buildPoster(doc, src, alt) {
2212
2215
  return img;
2213
2216
  }
2214
2217
  function buildPlaceholder(doc, label) {
2215
- const box = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-model3d-placeholder", {
2218
+ const box = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-model3d-placeholder", {
2216
2219
  width: "100%",
2217
2220
  height: "100%",
2218
2221
  display: "flex",
@@ -2226,7 +2229,7 @@ function buildPlaceholder(doc, label) {
2226
2229
  borderRadius: "4px",
2227
2230
  boxSizing: "border-box"
2228
2231
  });
2229
- const icon = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", {
2232
+ const icon = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", {
2230
2233
  width: 24,
2231
2234
  height: 24,
2232
2235
  viewBox: "0 0 24 24",
@@ -2239,20 +2242,20 @@ function buildPlaceholder(doc, label) {
2239
2242
  icon.setAttribute("class", "pptxv-model3d-icon");
2240
2243
  icon.setAttribute("style", "margin-bottom:4px;color:#d1d5db");
2241
2244
  icon.appendChild(
2242
- chunkN5WPJIMK_cjs.createSvgEl(doc, "path", {
2245
+ chunkQ6YXUH4R_cjs.createSvgEl(doc, "path", {
2243
2246
  d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"
2244
2247
  })
2245
2248
  );
2246
- icon.appendChild(chunkN5WPJIMK_cjs.createSvgEl(doc, "polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }));
2247
- icon.appendChild(chunkN5WPJIMK_cjs.createSvgEl(doc, "line", { x1: 12, y1: 22.08, x2: 12, y2: 12 }));
2249
+ icon.appendChild(chunkQ6YXUH4R_cjs.createSvgEl(doc, "polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }));
2250
+ icon.appendChild(chunkQ6YXUH4R_cjs.createSvgEl(doc, "line", { x1: 12, y1: 22.08, x2: 12, y2: 12 }));
2248
2251
  box.appendChild(icon);
2249
- const text = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-model3d-label");
2252
+ const text = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-model3d-label");
2250
2253
  text.textContent = label;
2251
2254
  box.appendChild(text);
2252
2255
  return box;
2253
2256
  }
2254
2257
  function buildViewButton(doc, root, poster, element, context) {
2255
- const button = chunkN5WPJIMK_cjs.createEl(doc, "button", "pptxv-model3d-view", {
2258
+ const button = chunkQ6YXUH4R_cjs.createEl(doc, "button", "pptxv-model3d-view", {
2256
2259
  position: "absolute",
2257
2260
  bottom: "4px",
2258
2261
  right: "4px",
@@ -2287,7 +2290,7 @@ function buildViewButton(doc, root, poster, element, context) {
2287
2290
  button.remove();
2288
2291
  return;
2289
2292
  }
2290
- const sceneHost = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-model3d-scene", {
2293
+ const sceneHost = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-model3d-scene", {
2291
2294
  position: "absolute",
2292
2295
  inset: 0,
2293
2296
  willChange: "transform"
@@ -2315,15 +2318,15 @@ function buildViewButton(doc, root, poster, element, context) {
2315
2318
 
2316
2319
  // src/pptx/dom/elements/ole-icons.ts
2317
2320
  function buildOleIcon(doc, type, color) {
2318
- const svg = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", {
2321
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", {
2319
2322
  width: 36,
2320
2323
  height: 36,
2321
2324
  viewBox: "0 0 24 24",
2322
2325
  fill: "none",
2323
2326
  "aria-hidden": "true"
2324
2327
  });
2325
- for (const shape of chunk2C2C27ML_cjs.getOleIconShapes(type)) {
2326
- const node = chunkN5WPJIMK_cjs.createSvgEl(doc, shape.tag, shape.attrs);
2328
+ for (const shape of chunkJOQIMYHE_cjs.getOleIconShapes(type)) {
2329
+ const node = chunkQ6YXUH4R_cjs.createSvgEl(doc, shape.tag, shape.attrs);
2327
2330
  if (shape.tag === "text") {
2328
2331
  node.setAttribute("fill", color);
2329
2332
  node.textContent = shape.text ?? "";
@@ -2341,21 +2344,21 @@ var renderOleElement = (element, zIndex, context) => {
2341
2344
  return null;
2342
2345
  }
2343
2346
  const doc = context.document;
2344
- const oleType = chunk2C2C27ML_cjs.resolveOleType(element);
2345
- const typeColor = chunk2C2C27ML_cjs.getOleTypeColor(oleType);
2346
- const typeLabel = chunk2C2C27ML_cjs.getOleTypeLabel(oleType);
2347
- const el = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-element pptxv-ole", chunk2C2C27ML_cjs.getContainerStyle(element, zIndex));
2347
+ const oleType = chunkJOQIMYHE_cjs.resolveOleType(element);
2348
+ const typeColor = chunkJOQIMYHE_cjs.getOleTypeColor(oleType);
2349
+ const typeLabel = chunkJOQIMYHE_cjs.getOleTypeLabel(oleType);
2350
+ const el = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-element pptxv-ole", chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex));
2348
2351
  el.dataset.elementId = element.id;
2349
2352
  el.setAttribute("role", "group");
2350
- el.setAttribute("aria-label", chunk2C2C27ML_cjs.getOleAriaLabel(element));
2353
+ el.setAttribute("aria-label", chunkJOQIMYHE_cjs.getOleAriaLabel(element));
2351
2354
  el.title = infoLines(element, typeLabel).join("\n");
2352
2355
  if (element.previewImageData) {
2353
- el.appendChild(buildPreview(doc, element, typeColor, chunk2C2C27ML_cjs.getOleBadgeLabel(oleType)));
2356
+ el.appendChild(buildPreview(doc, element, typeColor, chunkJOQIMYHE_cjs.getOleBadgeLabel(oleType)));
2354
2357
  } else {
2355
2358
  el.appendChild(buildPlaceholder2(doc, element, oleType, typeColor, typeLabel));
2356
2359
  }
2357
- const showActions = chunk2C2C27ML_cjs.oleActionsVisible(
2358
- chunk2C2C27ML_cjs.mediaSurfaceOf({
2360
+ const showActions = chunkJOQIMYHE_cjs.oleActionsVisible(
2361
+ chunkJOQIMYHE_cjs.mediaSurfaceOf({
2359
2362
  interactive: context.interactive === true,
2360
2363
  presenting: context.presenting
2361
2364
  })
@@ -2389,7 +2392,7 @@ function infoLines(el, typeLabel) {
2389
2392
  if (name) {
2390
2393
  lines.push(name);
2391
2394
  }
2392
- const size = chunk2C2C27ML_cjs.formatBytes(el.oleEmbeddedByteSize);
2395
+ const size = chunkJOQIMYHE_cjs.formatBytes(el.oleEmbeddedByteSize);
2393
2396
  if (size) {
2394
2397
  lines.push(size);
2395
2398
  }
@@ -2399,12 +2402,12 @@ function infoLines(el, typeLabel) {
2399
2402
  return lines;
2400
2403
  }
2401
2404
  function buildPreview(doc, el, typeColor, badgeLabel) {
2402
- const preview = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-ole-preview", {
2405
+ const preview = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-ole-preview", {
2403
2406
  position: "relative",
2404
2407
  width: "100%",
2405
2408
  height: "100%"
2406
2409
  });
2407
- const img = chunkN5WPJIMK_cjs.createEl(doc, "img", "pptxv-ole-img", {
2410
+ const img = chunkQ6YXUH4R_cjs.createEl(doc, "img", "pptxv-ole-img", {
2408
2411
  width: "100%",
2409
2412
  height: "100%",
2410
2413
  objectFit: "contain",
@@ -2413,19 +2416,19 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
2413
2416
  display: "block"
2414
2417
  });
2415
2418
  img.src = el.previewImageData ?? "";
2416
- img.alt = chunk2C2C27ML_cjs.getOleAriaLabel(el);
2419
+ img.alt = chunkJOQIMYHE_cjs.getOleAriaLabel(el);
2417
2420
  img.draggable = false;
2418
2421
  preview.appendChild(img);
2419
- const badge = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", { width: 24, height: 24, viewBox: "0 0 24 24" });
2422
+ const badge = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", { width: 24, height: 24, viewBox: "0 0 24 24" });
2420
2423
  badge.setAttribute("class", "pptxv-ole-badge");
2421
2424
  badge.setAttribute(
2422
2425
  "style",
2423
2426
  "position:absolute;bottom:4px;right:4px;z-index:10;pointer-events:none"
2424
2427
  );
2425
2428
  badge.appendChild(
2426
- chunkN5WPJIMK_cjs.createSvgEl(doc, "rect", { x: 2, y: 2, width: 20, height: 20, rx: 3, fill: typeColor })
2429
+ chunkQ6YXUH4R_cjs.createSvgEl(doc, "rect", { x: 2, y: 2, width: 20, height: 20, rx: 3, fill: typeColor })
2427
2430
  );
2428
- const badgeText = chunkN5WPJIMK_cjs.createSvgEl(doc, "text", {
2431
+ const badgeText = chunkQ6YXUH4R_cjs.createSvgEl(doc, "text", {
2429
2432
  x: 12,
2430
2433
  y: 16,
2431
2434
  "text-anchor": "middle",
@@ -2439,8 +2442,8 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
2439
2442
  return preview;
2440
2443
  }
2441
2444
  function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
2442
- const box = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-ole-placeholder", {
2443
- ...chunk2C2C27ML_cjs.getPlaceholderStyle(oleType),
2445
+ const box = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-ole-placeholder", {
2446
+ ...chunkJOQIMYHE_cjs.getPlaceholderStyle(oleType),
2444
2447
  width: "100%",
2445
2448
  height: "100%",
2446
2449
  display: "flex",
@@ -2451,7 +2454,7 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
2451
2454
  boxSizing: "border-box"
2452
2455
  });
2453
2456
  box.appendChild(buildOleIcon(doc, oleType, typeColor));
2454
- const name = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-ole-name", {
2457
+ const name = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-ole-name", {
2455
2458
  marginTop: "8px",
2456
2459
  fontSize: "12px",
2457
2460
  fontWeight: 500,
@@ -2461,10 +2464,10 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
2461
2464
  whiteSpace: "nowrap",
2462
2465
  color: typeColor
2463
2466
  });
2464
- name.textContent = chunk2C2C27ML_cjs.getOleDisplayName(el);
2467
+ name.textContent = chunkJOQIMYHE_cjs.getOleDisplayName(el);
2465
2468
  box.appendChild(name);
2466
2469
  if (el.fileName) {
2467
- const sublabel = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-ole-sublabel", {
2470
+ const sublabel = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-ole-sublabel", {
2468
2471
  marginTop: "2px",
2469
2472
  fontSize: "10px",
2470
2473
  color: "rgba(0,0,0,0.45)",
@@ -2494,7 +2497,7 @@ var ACTION_STYLE = {
2494
2497
  function buildActionBar(doc, el, typeLabel, context) {
2495
2498
  const data = el.oleEmbeddedData ?? "";
2496
2499
  const downloadName = el.oleEmbeddedFileName ?? el.fileName ?? typeLabel;
2497
- const bar = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-ole-actions", {
2500
+ const bar = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-ole-actions", {
2498
2501
  position: "absolute",
2499
2502
  left: 0,
2500
2503
  right: 0,
@@ -2513,9 +2516,9 @@ function buildActionBar(doc, el, typeLabel, context) {
2513
2516
  for (const type of ["pointerdown", "mousedown", "click"]) {
2514
2517
  bar.addEventListener(type, (event) => event.stopPropagation());
2515
2518
  }
2516
- const size = chunk2C2C27ML_cjs.formatBytes(el.oleEmbeddedByteSize);
2519
+ const size = chunkJOQIMYHE_cjs.formatBytes(el.oleEmbeddedByteSize);
2517
2520
  if (size) {
2518
- const meta = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-ole-meta", {
2521
+ const meta = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-ole-meta", {
2519
2522
  marginRight: "auto",
2520
2523
  color: "rgba(0,0,0,0.55)",
2521
2524
  overflow: "hidden",
@@ -2525,7 +2528,7 @@ function buildActionBar(doc, el, typeLabel, context) {
2525
2528
  meta.textContent = size;
2526
2529
  bar.appendChild(meta);
2527
2530
  }
2528
- const download = chunkN5WPJIMK_cjs.createEl(doc, "a", "pptxv-ole-action", ACTION_STYLE);
2531
+ const download = chunkQ6YXUH4R_cjs.createEl(doc, "a", "pptxv-ole-action", ACTION_STYLE);
2529
2532
  download.href = data;
2530
2533
  download.download = downloadName;
2531
2534
  const downloadTitle = context.t("pptx.ole.downloadName", { name: downloadName });
@@ -2533,14 +2536,14 @@ function buildActionBar(doc, el, typeLabel, context) {
2533
2536
  download.title = downloadTitle;
2534
2537
  download.textContent = context.t("pptx.ole.download");
2535
2538
  bar.appendChild(download);
2536
- if (chunk2C2C27ML_cjs.isBrowserOpenableMime(el.oleEmbeddedMimeType)) {
2537
- const open = chunkN5WPJIMK_cjs.createEl(doc, "button", "pptxv-ole-action", ACTION_STYLE);
2539
+ if (chunkJOQIMYHE_cjs.isBrowserOpenableMime(el.oleEmbeddedMimeType)) {
2540
+ const open = chunkQ6YXUH4R_cjs.createEl(doc, "button", "pptxv-ole-action", ACTION_STYLE);
2538
2541
  open.type = "button";
2539
2542
  const openTitle = context.t("pptx.ole.openName", { name: downloadName });
2540
2543
  open.setAttribute("aria-label", openTitle);
2541
2544
  open.title = openTitle;
2542
2545
  open.textContent = context.t("pptx.ole.open");
2543
- open.addEventListener("click", () => chunk2C2C27ML_cjs.openUrlInNewTab(data));
2546
+ open.addEventListener("click", () => chunkJOQIMYHE_cjs.openUrlInNewTab(data));
2544
2547
  bar.appendChild(open);
2545
2548
  }
2546
2549
  return bar;
@@ -2548,15 +2551,15 @@ function buildActionBar(doc, el, typeLabel, context) {
2548
2551
 
2549
2552
  // src/pptx/dom/elements/placeholder.ts
2550
2553
  var renderPlaceholderElement = (element, zIndex, context) => {
2551
- const el = chunkN5WPJIMK_cjs.createEl(
2554
+ const el = chunkQ6YXUH4R_cjs.createEl(
2552
2555
  context.document,
2553
2556
  "div",
2554
2557
  "pptxv-element pptxv-placeholder",
2555
- chunk2C2C27ML_cjs.getContainerStyle(element, zIndex)
2558
+ chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex)
2556
2559
  );
2557
2560
  el.dataset.elementId = element.id;
2558
2561
  el.dataset.elementType = element.type;
2559
- const label = chunkN5WPJIMK_cjs.createEl(context.document, "div", "pptxv-placeholder-label");
2562
+ const label = chunkQ6YXUH4R_cjs.createEl(context.document, "div", "pptxv-placeholder-label");
2560
2563
  label.textContent = chunkUFJBHFSD_cjs.keyToLabel(element.type);
2561
2564
  el.appendChild(label);
2562
2565
  return el;
@@ -2568,7 +2571,7 @@ var renderZoomElement = (element, zIndex, context) => {
2568
2571
  return null;
2569
2572
  }
2570
2573
  const doc = context.document;
2571
- const summaryView = chunk2C2C27ML_cjs.buildSummaryZoomView(
2574
+ const summaryView = chunkJOQIMYHE_cjs.buildSummaryZoomView(
2572
2575
  element,
2573
2576
  (index) => {
2574
2577
  const slide = context.slides?.[index];
@@ -2584,19 +2587,19 @@ var renderZoomElement = (element, zIndex, context) => {
2584
2587
  (key, params) => context.t(key, params)
2585
2588
  );
2586
2589
  if (summaryView) {
2587
- const root = chunkN5WPJIMK_cjs.createEl(
2590
+ const root = chunkQ6YXUH4R_cjs.createEl(
2588
2591
  doc,
2589
2592
  "div",
2590
2593
  "pptxv-element pptxv-zoom pptxv-summary-zoom",
2591
- chunk2C2C27ML_cjs.getContainerStyle(element, zIndex)
2594
+ chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex)
2592
2595
  );
2593
- const content = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-summary-zoom-content", summaryView.containerStyle);
2596
+ const content = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-summary-zoom-content", summaryView.containerStyle);
2594
2597
  root.dataset.elementId = element.id;
2595
2598
  root.dataset.zoomType = "summary";
2596
2599
  root.setAttribute("role", "group");
2597
2600
  root.setAttribute("aria-label", summaryView.ariaLabel);
2598
2601
  for (const tile2 of summaryView.tiles) {
2599
- const tileElement = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-summary-zoom-tile", {
2602
+ const tileElement = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-summary-zoom-tile", {
2600
2603
  ...tile2.style,
2601
2604
  backgroundColor: tile2.backgroundColor,
2602
2605
  overflow: "hidden",
@@ -2630,22 +2633,22 @@ var renderZoomElement = (element, zIndex, context) => {
2630
2633
  });
2631
2634
  }
2632
2635
  if (tile2.imageSrc) {
2633
- const image = chunkN5WPJIMK_cjs.createEl(doc, "img");
2636
+ const image = chunkQ6YXUH4R_cjs.createEl(doc, "img");
2634
2637
  image.src = tile2.imageSrc;
2635
2638
  image.alt = tile2.ariaLabel;
2636
2639
  image.setAttribute("draggable", "false");
2637
2640
  image.style.cssText = "width:100%;height:100%;object-fit:contain";
2638
2641
  tileElement.appendChild(image);
2639
2642
  } else {
2640
- const label = chunkN5WPJIMK_cjs.createEl(doc, "div");
2643
+ const label = chunkQ6YXUH4R_cjs.createEl(doc, "div");
2641
2644
  label.textContent = tile2.label;
2642
- const slideLabel = chunkN5WPJIMK_cjs.createEl(doc, "div");
2645
+ const slideLabel = chunkQ6YXUH4R_cjs.createEl(doc, "div");
2643
2646
  slideLabel.textContent = tile2.slideLabel;
2644
2647
  tileElement.append(label, slideLabel);
2645
2648
  }
2646
2649
  content.appendChild(tileElement);
2647
2650
  }
2648
- const badge2 = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-zoom-badge");
2651
+ const badge2 = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-zoom-badge");
2649
2652
  badge2.textContent = context.t("pptx.zoom.summaryZoom");
2650
2653
  content.appendChild(badge2);
2651
2654
  root.appendChild(content);
@@ -2655,7 +2658,7 @@ var renderZoomElement = (element, zIndex, context) => {
2655
2658
  const target = element.targetSlideIndex ?? 0;
2656
2659
  const targetSlide = context.slides?.[target];
2657
2660
  const interactive = context.presenting && context.onZoomClick !== void 0;
2658
- const el = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-element pptxv-zoom", chunk2C2C27ML_cjs.getContainerStyle(element, zIndex));
2661
+ const el = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-element pptxv-zoom", chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex));
2659
2662
  el.dataset.elementId = element.id;
2660
2663
  el.dataset.zoomType = zoomType;
2661
2664
  el.dataset.zoomTarget = String(target);
@@ -2665,7 +2668,7 @@ var renderZoomElement = (element, zIndex, context) => {
2665
2668
  el.tabIndex = 0;
2666
2669
  el.style.cursor = "pointer";
2667
2670
  const activate = () => {
2668
- const zoomTarget = chunk2C2C27ML_cjs.resolveZoomNavigationTarget(element);
2671
+ const zoomTarget = chunkJOQIMYHE_cjs.resolveZoomNavigationTarget(element);
2669
2672
  if (zoomTarget) {
2670
2673
  context.onZoomClick?.(zoomTarget, context.currentSlideIndex ?? 0);
2671
2674
  }
@@ -2690,7 +2693,7 @@ var renderZoomElement = (element, zIndex, context) => {
2690
2693
  section: element.targetSectionId
2691
2694
  }) : context.t("pptx.zoom.ariaLabel", { number: target + 1 })
2692
2695
  );
2693
- const tile = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-zoom-tile", {
2696
+ const tile = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-zoom-tile", {
2694
2697
  position: "relative",
2695
2698
  width: "100%",
2696
2699
  height: "100%",
@@ -2699,7 +2702,7 @@ var renderZoomElement = (element, zIndex, context) => {
2699
2702
  boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)"
2700
2703
  });
2701
2704
  if (element.imageData) {
2702
- const img = chunkN5WPJIMK_cjs.createEl(doc, "img", "pptxv-zoom-img", {
2705
+ const img = chunkQ6YXUH4R_cjs.createEl(doc, "img", "pptxv-zoom-img", {
2703
2706
  width: "100%",
2704
2707
  height: "100%",
2705
2708
  objectFit: "contain",
@@ -2722,7 +2725,7 @@ var renderZoomElement = (element, zIndex, context) => {
2722
2725
  )
2723
2726
  );
2724
2727
  }
2725
- const badge = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-zoom-badge", {
2728
+ const badge = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-zoom-badge", {
2726
2729
  position: "absolute",
2727
2730
  bottom: "4px",
2728
2731
  right: "4px",
@@ -2740,7 +2743,7 @@ var renderZoomElement = (element, zIndex, context) => {
2740
2743
  return el;
2741
2744
  };
2742
2745
  function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
2743
- const box = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-zoom-thumbnail", {
2746
+ const box = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-zoom-thumbnail", {
2744
2747
  width: "100%",
2745
2748
  height: "100%",
2746
2749
  display: "flex",
@@ -2751,7 +2754,7 @@ function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
2751
2754
  border: "1px solid rgba(0, 0, 0, 0.1)",
2752
2755
  boxSizing: "border-box"
2753
2756
  });
2754
- const slideLabel = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-zoom-slide-label", {
2757
+ const slideLabel = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-zoom-slide-label", {
2755
2758
  fontSize: "14px",
2756
2759
  fontWeight: 600,
2757
2760
  color: "rgba(0, 0, 0, 0.5)",
@@ -2760,7 +2763,7 @@ function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
2760
2763
  slideLabel.textContent = t("pptx.notes.slideN", { n: slideNumber });
2761
2764
  box.appendChild(slideLabel);
2762
2765
  if (sectionText) {
2763
- const sectionLabel = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-zoom-section-label", {
2766
+ const sectionLabel = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-zoom-section-label", {
2764
2767
  fontSize: "10px",
2765
2768
  color: "rgba(0, 0, 0, 0.4)"
2766
2769
  });
@@ -2779,7 +2782,7 @@ function registerExtraRenderers(registry) {
2779
2782
 
2780
2783
  // src/pptx/dom/elements/register-rich-media.ts
2781
2784
  function registerRichMediaRenderers(registry) {
2782
- registry.register("smartArt", chunkN5WPJIMK_cjs.renderSmartArtElement);
2785
+ registry.register("smartArt", chunkQ6YXUH4R_cjs.renderSmartArtElement);
2783
2786
  registry.register("media", renderMediaElement);
2784
2787
  registry.register("ink", renderInkElement);
2785
2788
  registry.register("ole", renderOleElement);
@@ -2815,10 +2818,10 @@ function enableTableResize(container, table, element, context) {
2815
2818
  for (const handle of [...colHandles, ...rowHandles]) {
2816
2819
  handle.remove();
2817
2820
  }
2818
- const crossings = chunk2C2C27ML_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
2821
+ const crossings = chunkJOQIMYHE_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
2819
2822
  const rowBounds = measureRowBoundaries(table);
2820
- colHandles = chunk2C2C27ML_cjs.computeColumnBoundaries(tableData.columnWidths).map((leftPct, i) => {
2821
- const handle = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-table-resize-col", {
2823
+ colHandles = chunkJOQIMYHE_cjs.computeColumnBoundaries(tableData.columnWidths).map((leftPct, i) => {
2824
+ const handle = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-table-resize-col", {
2822
2825
  position: "absolute",
2823
2826
  top: "0",
2824
2827
  bottom: "0",
@@ -2827,14 +2830,14 @@ function enableTableResize(container, table, element, context) {
2827
2830
  zIndex: "10",
2828
2831
  pointerEvents: "none"
2829
2832
  });
2830
- const segments = chunk2C2C27ML_cjs.columnHandleSegments(
2833
+ const segments = chunkJOQIMYHE_cjs.columnHandleSegments(
2831
2834
  crossings.columns[i] ?? [],
2832
2835
  rowBounds,
2833
2836
  table.offsetHeight
2834
2837
  );
2835
2838
  for (const { top, height } of segments) {
2836
2839
  handle.appendChild(
2837
- chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-table-resize-segment", {
2840
+ chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-table-resize-segment", {
2838
2841
  position: "absolute",
2839
2842
  left: "0",
2840
2843
  right: "0",
@@ -2848,7 +2851,7 @@ function enableTableResize(container, table, element, context) {
2848
2851
  return handle;
2849
2852
  });
2850
2853
  rowHandles = rowBounds.map((topPx, i) => {
2851
- const handle = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-table-resize-row", {
2854
+ const handle = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-table-resize-row", {
2852
2855
  position: "absolute",
2853
2856
  left: "0",
2854
2857
  right: "0",
@@ -2857,10 +2860,10 @@ function enableTableResize(container, table, element, context) {
2857
2860
  zIndex: "10",
2858
2861
  pointerEvents: "none"
2859
2862
  });
2860
- const segments = chunk2C2C27ML_cjs.rowHandleSegments(crossings.rows[i] ?? [], tableData.columnWidths);
2863
+ const segments = chunkJOQIMYHE_cjs.rowHandleSegments(crossings.rows[i] ?? [], tableData.columnWidths);
2861
2864
  for (const { leftPct, widthPct } of segments) {
2862
2865
  handle.appendChild(
2863
- chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-table-resize-segment", {
2866
+ chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-table-resize-segment", {
2864
2867
  position: "absolute",
2865
2868
  top: "0",
2866
2869
  bottom: "0",
@@ -2901,14 +2904,14 @@ function enableTableResize(container, table, element, context) {
2901
2904
  const deltaProp = (event.clientX - active.startPos) / (rect.width || 1);
2902
2905
  context.onTableResizeColumns?.(
2903
2906
  element,
2904
- chunk2C2C27ML_cjs.computeResizedColumnWidths(active.initialWidths, active.index, deltaProp)
2907
+ chunkJOQIMYHE_cjs.computeResizedColumnWidths(active.initialWidths, active.index, deltaProp)
2905
2908
  );
2906
2909
  } else if (event.clientY !== active.startPos && active.type === "row") {
2907
2910
  const deltaY = event.clientY - active.startPos;
2908
2911
  context.onTableResizeRow?.(
2909
2912
  element,
2910
2913
  active.index,
2911
- chunk2C2C27ML_cjs.computeResizedRowHeight(active.initialRowHeight ?? chunk2C2C27ML_cjs.DEFAULT_ROW_HEIGHT, deltaY)
2914
+ chunkJOQIMYHE_cjs.computeResizedRowHeight(active.initialRowHeight ?? chunkJOQIMYHE_cjs.DEFAULT_ROW_HEIGHT, deltaY)
2912
2915
  );
2913
2916
  }
2914
2917
  drawHandles();
@@ -2917,13 +2920,13 @@ function enableTableResize(container, table, element, context) {
2917
2920
  const rect = container.getBoundingClientRect();
2918
2921
  const localX = event.clientX - rect.left;
2919
2922
  const localY = event.clientY - rect.top;
2920
- const scaleY = chunk2C2C27ML_cjs.getTableResizeScale(rect.height, container.offsetHeight);
2921
- const crossings = chunk2C2C27ML_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
2923
+ const scaleY = chunkJOQIMYHE_cjs.getTableResizeScale(rect.height, container.offsetHeight);
2924
+ const crossings = chunkJOQIMYHE_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
2922
2925
  const rowBounds = measureRowBoundaries(table);
2923
- const colBoundaries = chunk2C2C27ML_cjs.computeColumnBoundaries(tableData.columnWidths);
2926
+ const colBoundaries = chunkJOQIMYHE_cjs.computeColumnBoundaries(tableData.columnWidths);
2924
2927
  for (let i = 0; i < colBoundaries.length; i++) {
2925
2928
  const boundaryX = colBoundaries[i] / 100 * rect.width;
2926
- if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !chunk2C2C27ML_cjs.isColumnBoundaryMergedAt(crossings, i, rowBounds, localY / scaleY)) {
2929
+ if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !chunkJOQIMYHE_cjs.isColumnBoundaryMergedAt(crossings, i, rowBounds, localY / scaleY)) {
2927
2930
  event.preventDefault();
2928
2931
  event.stopPropagation();
2929
2932
  doc.body.style.cursor = "col-resize";
@@ -2941,7 +2944,7 @@ function enableTableResize(container, table, element, context) {
2941
2944
  }
2942
2945
  }
2943
2946
  for (let i = 0; i < rowBounds.length; i++) {
2944
- if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !chunk2C2C27ML_cjs.isRowBoundaryMergedAt(crossings, i, tableData.columnWidths, localX / (rect.width || 1))) {
2947
+ if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !chunkJOQIMYHE_cjs.isRowBoundaryMergedAt(crossings, i, tableData.columnWidths, localX / (rect.width || 1))) {
2945
2948
  event.preventDefault();
2946
2949
  event.stopPropagation();
2947
2950
  const tr = table.querySelectorAll("tbody > tr")[i];
@@ -2952,7 +2955,7 @@ function enableTableResize(container, table, element, context) {
2952
2955
  index: i,
2953
2956
  startPos: event.clientY,
2954
2957
  handleEl: rowHandles[i] ?? container,
2955
- initialRowHeight: tr?.offsetHeight ?? chunk2C2C27ML_cjs.DEFAULT_ROW_HEIGHT
2958
+ initialRowHeight: tr?.offsetHeight ?? chunkJOQIMYHE_cjs.DEFAULT_ROW_HEIGHT
2956
2959
  };
2957
2960
  win.addEventListener("mousemove", onMouseMove);
2958
2961
  win.addEventListener("mouseup", onMouseUp);
@@ -2978,14 +2981,14 @@ var renderTableElement = (element, zIndex, context) => {
2978
2981
  fontScheme: context.fontScheme,
2979
2982
  formatScheme: context.formatScheme
2980
2983
  };
2981
- const container = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-element pptxv-table", {
2984
+ const container = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-element pptxv-table", {
2982
2985
  // The table style's drop shadow (Themed Style 1/2) sits on the clipping frame.
2983
- ...chunk2C2C27ML_cjs.tableFrameCss(tableData, styleContext),
2984
- ...chunk2C2C27ML_cjs.getContainerStyle(element, zIndex),
2986
+ ...chunkJOQIMYHE_cjs.tableFrameCss(tableData, styleContext),
2987
+ ...chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex),
2985
2988
  overflow: "hidden"
2986
2989
  });
2987
2990
  container.dataset.elementId = element.id;
2988
- const table = chunkN5WPJIMK_cjs.createEl(doc, "table", "pptxv-table-grid", {
2991
+ const table = chunkQ6YXUH4R_cjs.createEl(doc, "table", "pptxv-table-grid", {
2989
2992
  width: "100%",
2990
2993
  height: "100%",
2991
2994
  borderCollapse: "collapse",
@@ -2994,7 +2997,7 @@ var renderTableElement = (element, zIndex, context) => {
2994
2997
  // font stack; all five bindings declare the same shared default here.
2995
2998
  fontFamily: chunkHTFYAGHG_cjs.DEFAULT_FONT_FAMILY,
2996
2999
  // `a:tblPr@rtl`: mirrors the column order for right-to-left decks.
2997
- ...chunk2C2C27ML_cjs.tableContainerCss(tableData)
3000
+ ...chunkJOQIMYHE_cjs.tableContainerCss(tableData)
2998
3001
  });
2999
3002
  appendColgroup(doc, table, tableData.columnWidths);
3000
3003
  const tbody = doc.createElement("tbody");
@@ -3056,13 +3059,13 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
3056
3059
  if (cell.rowSpan && cell.rowSpan > 1) {
3057
3060
  td.rowSpan = cell.rowSpan;
3058
3061
  }
3059
- const style = chunk2C2C27ML_cjs.tableCellCss(
3062
+ const style = chunkJOQIMYHE_cjs.tableCellCss(
3060
3063
  tableData,
3061
3064
  cell,
3062
3065
  { rowIndex, cellIndex, rowCount, columnCount },
3063
3066
  styleContext
3064
3067
  );
3065
- const patternFill = cell.style ? chunk2C2C27ML_cjs.cellPatternFillCss(cell.style) : null;
3068
+ const patternFill = cell.style ? chunkJOQIMYHE_cjs.cellPatternFillCss(cell.style) : null;
3066
3069
  if (patternFill) {
3067
3070
  delete style["backgroundColor"];
3068
3071
  delete style["background"];
@@ -3073,9 +3076,9 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
3073
3076
  style["backgroundColor"] = patternFill.backgroundColor;
3074
3077
  }
3075
3078
  }
3076
- chunkN5WPJIMK_cjs.applyStyleMap(td, CELL_BASE_STYLE);
3077
- chunkN5WPJIMK_cjs.applyStyleMap(td, style);
3078
- const diagonals = chunk2C2C27ML_cjs.getCellDiagonalBorders(
3079
+ chunkQ6YXUH4R_cjs.applyStyleMap(td, CELL_BASE_STYLE);
3080
+ chunkQ6YXUH4R_cjs.applyStyleMap(td, style);
3081
+ const diagonals = chunkJOQIMYHE_cjs.getCellDiagonalBorders(
3079
3082
  cell.style,
3080
3083
  tableData,
3081
3084
  { rowIndex, cellIndex, rowCount, columnCount },
@@ -3088,17 +3091,17 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
3088
3091
  return td;
3089
3092
  }
3090
3093
  function diagonalLine(doc, x1, y1, x2, y2, stroke, width) {
3091
- const line = chunkN5WPJIMK_cjs.createSvgEl(doc, "line", { x1, y1, x2, y2, stroke, "stroke-width": width });
3094
+ const line = chunkQ6YXUH4R_cjs.createSvgEl(doc, "line", { x1, y1, x2, y2, stroke, "stroke-width": width });
3092
3095
  line.style.setProperty("stroke-width", chunkFI2ATACZ_cjs.screenStrokeWidth(width));
3093
3096
  return line;
3094
3097
  }
3095
3098
  function renderDiagonalOverlay(doc, diagonals) {
3096
- const svg = chunkN5WPJIMK_cjs.createSvgEl(doc, "svg", {
3099
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(doc, "svg", {
3097
3100
  class: "pptxv-table-diag",
3098
3101
  "aria-hidden": "true",
3099
3102
  preserveAspectRatio: "none"
3100
3103
  });
3101
- chunkN5WPJIMK_cjs.applyStyleMap(svg, {
3104
+ chunkQ6YXUH4R_cjs.applyStyleMap(svg, {
3102
3105
  position: "absolute",
3103
3106
  inset: 0,
3104
3107
  width: "100%",
@@ -3119,10 +3122,10 @@ function renderDiagonalOverlay(doc, diagonals) {
3119
3122
  return svg;
3120
3123
  }
3121
3124
  function appendCellText(doc, td, cell, cellCss, defaultFontPt) {
3122
- const blocks = chunk2C2C27ML_cjs.cellParagraphBlocks(cell, { cellCss, defaultFontPt });
3125
+ const blocks = chunkJOQIMYHE_cjs.cellParagraphBlocks(cell, { cellCss, defaultFontPt });
3123
3126
  if (blocks) {
3124
3127
  for (const block of blocks) {
3125
- const div = chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-table-para", { display: "block", ...block.css });
3128
+ const div = chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-table-para", { display: "block", ...block.css });
3126
3129
  appendRuns(doc, div, block.runs, cellCss);
3127
3130
  td.appendChild(div);
3128
3131
  }
@@ -3131,7 +3134,7 @@ function appendCellText(doc, td, cell, cellCss, defaultFontPt) {
3131
3134
  const richCell = cell;
3132
3135
  const textRuns = richCell.textRuns && richCell.textRuns.length > 0 ? richCell.textRuns : null;
3133
3136
  if (!textRuns) {
3134
- const span = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-table-text", { position: "relative" });
3137
+ const span = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-table-text", { position: "relative" });
3135
3138
  span.textContent = cell.text || " ";
3136
3139
  td.appendChild(span);
3137
3140
  return;
@@ -3139,7 +3142,7 @@ function appendCellText(doc, td, cell, cellCss, defaultFontPt) {
3139
3142
  for (const run of textRuns) {
3140
3143
  if (run.isParagraphBreak) {
3141
3144
  td.appendChild(
3142
- chunkN5WPJIMK_cjs.createEl(doc, "div", "pptxv-table-para-break", { display: "block", height: 0 })
3145
+ chunkQ6YXUH4R_cjs.createEl(doc, "div", "pptxv-table-para-break", { display: "block", height: 0 })
3143
3146
  );
3144
3147
  continue;
3145
3148
  }
@@ -3152,9 +3155,9 @@ function appendRuns(doc, parent, runs, cellCss) {
3152
3155
  parent.appendChild(doc.createElement("br"));
3153
3156
  continue;
3154
3157
  }
3155
- const span = chunkN5WPJIMK_cjs.createEl(doc, "span", "pptxv-table-run", {
3158
+ const span = chunkQ6YXUH4R_cjs.createEl(doc, "span", "pptxv-table-run", {
3156
3159
  position: "relative",
3157
- ...chunk2C2C27ML_cjs.cellRunStyle(run, cellCss)
3160
+ ...chunkJOQIMYHE_cjs.cellRunStyle(run, cellCss)
3158
3161
  });
3159
3162
  span.textContent = run.text;
3160
3163
  parent.appendChild(span);
@@ -3168,8 +3171,8 @@ function registerTableChartRenderers(registry) {
3168
3171
  }
3169
3172
 
3170
3173
  // src/pptx/dom/glyph-outline-cache.ts
3171
- var glyphOutlineFontCache = new chunk2C2C27ML_cjs.GlyphOutlineFontCache();
3172
- var getGlyphOutline = chunk2C2C27ML_cjs.createGlyphOutlineLookup(glyphOutlineFontCache);
3174
+ var glyphOutlineFontCache = new chunkJOQIMYHE_cjs.GlyphOutlineFontCache();
3175
+ var getGlyphOutline = chunkJOQIMYHE_cjs.createGlyphOutlineLookup(glyphOutlineFontCache);
3173
3176
 
3174
3177
  // src/pptx/dom/elements/text-warp.ts
3175
3178
  function renderWarpedText(element, context) {
@@ -3181,16 +3184,16 @@ function renderWarpedText(element, context) {
3181
3184
  if (!preset || preset === "textNoShape") {
3182
3185
  return null;
3183
3186
  }
3184
- const paragraphs = chunk2C2C27ML_cjs.groupIntoParagraphs(element);
3187
+ const paragraphs = chunkJOQIMYHE_cjs.groupIntoParagraphs(element);
3185
3188
  if (paragraphs.length === 0) {
3186
3189
  return null;
3187
3190
  }
3188
- if (!chunk2C2C27ML_cjs.shouldUseSvgWarp(preset)) {
3189
- const transform = chunk2C2C27ML_cjs.getWarpCssTransform(preset, style?.textWarpAdj, style?.textWarpAdj2);
3191
+ if (!chunkJOQIMYHE_cjs.shouldUseSvgWarp(preset)) {
3192
+ const transform = chunkJOQIMYHE_cjs.getWarpCssTransform(preset, style?.textWarpAdj, style?.textWarpAdj2);
3190
3193
  if (!transform) {
3191
3194
  return null;
3192
3195
  }
3193
- const text = chunkN5WPJIMK_cjs.createEl(context.document, "div", "pptxv-wordart", {
3196
+ const text = chunkQ6YXUH4R_cjs.createEl(context.document, "div", "pptxv-wordart", {
3194
3197
  width: "100%",
3195
3198
  height: "100%",
3196
3199
  display: "flex",
@@ -3208,14 +3211,14 @@ function renderWarpedText(element, context) {
3208
3211
  if (style?.fontSize) {
3209
3212
  text.style.fontSize = `${style.fontSize}px`;
3210
3213
  }
3211
- const fontWeight = chunk2C2C27ML_cjs.fontWeightAttribute(style?.fontFamily, style?.bold);
3214
+ const fontWeight = chunkJOQIMYHE_cjs.fontWeightAttribute(style?.fontFamily, style?.bold);
3212
3215
  if (fontWeight) {
3213
3216
  text.style.fontWeight = fontWeight;
3214
3217
  }
3215
3218
  text.textContent = paragraphs.map((p) => p.segments.map((s) => s.text).join("")).join("\n");
3216
3219
  return text;
3217
3220
  }
3218
- if (chunk2C2C27ML_cjs.hasGlyphEnvelope(preset)) {
3221
+ if (chunkJOQIMYHE_cjs.hasGlyphEnvelope(preset)) {
3219
3222
  return renderGlyphWarp(element, paragraphs, context);
3220
3223
  }
3221
3224
  return renderPathWarp(element, paragraphs, context);
@@ -3235,13 +3238,13 @@ function renderGlyphWarp(element, paragraphs, context) {
3235
3238
  const preset = style.textWarpPreset;
3236
3239
  const width = Math.max(element.width, 1);
3237
3240
  const height = Math.max(element.height, 1);
3238
- const svg = chunkN5WPJIMK_cjs.createSvgEl(context.document, "svg", {
3241
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "svg", {
3239
3242
  viewBox: `0 0 ${width} ${height}`,
3240
3243
  "aria-hidden": "true"
3241
3244
  });
3242
3245
  svg.setAttribute("class", "pptxv-wordart");
3243
3246
  svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
3244
- const perLine = chunk2C2C27ML_cjs.buildGlyphEnvelopeBlock(
3247
+ const perLine = chunkJOQIMYHE_cjs.buildGlyphEnvelopeBlock(
3245
3248
  preset,
3246
3249
  paragraphs.map(
3247
3250
  (paragraph) => paragraph.segments.map((seg, i) => ({
@@ -3262,7 +3265,7 @@ function renderGlyphWarp(element, paragraphs, context) {
3262
3265
  const segments = paragraph.segments;
3263
3266
  const glyphs = perLine[lineIndex] ?? [];
3264
3267
  glyphs.forEach((g, glyphIndex) => {
3265
- const paint = chunk2C2C27ML_cjs.resolveWarpRunPaint(segments[g.segmentIndex], style);
3268
+ const paint = chunkJOQIMYHE_cjs.resolveWarpRunPaint(segments[g.segmentIndex], style);
3266
3269
  const fill = paint.fill;
3267
3270
  const textAttrs = {
3268
3271
  fill,
@@ -3273,12 +3276,12 @@ function renderGlyphWarp(element, paragraphs, context) {
3273
3276
  "text-decoration": paint.textDecoration
3274
3277
  };
3275
3278
  if (g.outlinePath) {
3276
- const path = chunkN5WPJIMK_cjs.createSvgEl(context.document, "path", { d: g.outlinePath, fill });
3279
+ const path = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "path", { d: g.outlinePath, fill });
3277
3280
  svg.appendChild(path);
3278
3281
  return;
3279
3282
  }
3280
3283
  if (!g.slices || g.slices.length <= 1) {
3281
- const text = chunkN5WPJIMK_cjs.createSvgEl(context.document, "text", {
3284
+ const text = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "text", {
3282
3285
  x: g.x,
3283
3286
  y: g.y,
3284
3287
  transform: g.transform,
@@ -3288,17 +3291,17 @@ function renderGlyphWarp(element, paragraphs, context) {
3288
3291
  svg.appendChild(text);
3289
3292
  return;
3290
3293
  }
3291
- const group = chunkN5WPJIMK_cjs.createSvgEl(context.document, "g", {
3294
+ const group = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "g", {
3292
3295
  "data-glyph-slices": g.slices.length
3293
3296
  });
3294
3297
  g.slices.forEach((slice, sliceIndex) => {
3295
3298
  const clipId = `${element.id.replace(/[^a-zA-Z0-9_-]/gu, "_")}-warp-l${lineIndex}-g${glyphIndex}-s${sliceIndex}`;
3296
- const clipPath = chunkN5WPJIMK_cjs.createSvgEl(context.document, "clipPath", {
3299
+ const clipPath = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "clipPath", {
3297
3300
  id: clipId,
3298
3301
  clipPathUnits: "userSpaceOnUse"
3299
3302
  });
3300
3303
  clipPath.appendChild(
3301
- chunkN5WPJIMK_cjs.createSvgEl(context.document, "rect", {
3304
+ chunkQ6YXUH4R_cjs.createSvgEl(context.document, "rect", {
3302
3305
  x: slice.clipX0,
3303
3306
  y: -1e5,
3304
3307
  width: slice.clipX1 - slice.clipX0,
@@ -3306,7 +3309,7 @@ function renderGlyphWarp(element, paragraphs, context) {
3306
3309
  })
3307
3310
  );
3308
3311
  group.appendChild(clipPath);
3309
- const text = chunkN5WPJIMK_cjs.createSvgEl(context.document, "text", {
3312
+ const text = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "text", {
3310
3313
  x: g.x,
3311
3314
  y: g.y,
3312
3315
  transform: slice.transform,
@@ -3324,15 +3327,15 @@ function renderGlyphWarp(element, paragraphs, context) {
3324
3327
  function renderPathWarp(element, paragraphs, context) {
3325
3328
  const style = element.textStyle;
3326
3329
  const preset = style.textWarpPreset;
3327
- const svg = chunkN5WPJIMK_cjs.createSvgEl(context.document, "svg", {
3330
+ const svg = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "svg", {
3328
3331
  viewBox: `0 0 ${Math.max(element.width, 1)} ${Math.max(element.height, 1)}`,
3329
3332
  preserveAspectRatio: "none",
3330
3333
  "aria-hidden": "true"
3331
3334
  });
3332
3335
  svg.setAttribute("class", "pptxv-wordart");
3333
3336
  svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
3334
- const defs = chunkN5WPJIMK_cjs.createSvgEl(context.document, "defs");
3335
- const layouts = chunk2C2C27ML_cjs.warpParagraphLayouts(
3337
+ const defs = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "defs");
3338
+ const layouts = chunkJOQIMYHE_cjs.warpParagraphLayouts(
3336
3339
  preset,
3337
3340
  element.width,
3338
3341
  element.height,
@@ -3344,27 +3347,27 @@ function renderPathWarp(element, paragraphs, context) {
3344
3347
  paragraphs.forEach((paragraph, index) => {
3345
3348
  const id = `${element.id.replace(/[^a-zA-Z0-9_-]/gu, "_")}-warp-${index}`;
3346
3349
  defs.appendChild(
3347
- chunkN5WPJIMK_cjs.createSvgEl(context.document, "path", {
3350
+ chunkQ6YXUH4R_cjs.createSvgEl(context.document, "path", {
3348
3351
  id,
3349
3352
  d: layouts[index]?.d
3350
3353
  })
3351
3354
  );
3352
- const text = chunkN5WPJIMK_cjs.createSvgEl(context.document, "text", {
3355
+ const text = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "text", {
3353
3356
  fill: style.color ?? "#000000",
3354
3357
  "font-family": style.fontFamily ? pptx.getSubstituteFontFamily(style.fontFamily) : chunkHTFYAGHG_cjs.DEFAULT_FONT_FAMILY,
3355
3358
  "font-size": style.fontSize ?? 18,
3356
- "font-weight": chunk2C2C27ML_cjs.fontWeightAttribute(style.fontFamily, style.bold),
3357
- "font-style": chunk2C2C27ML_cjs.resolveFontItalic(style.fontFamily, style.italic) ? "italic" : void 0
3359
+ "font-weight": chunkJOQIMYHE_cjs.fontWeightAttribute(style.fontFamily, style.bold),
3360
+ "font-style": chunkJOQIMYHE_cjs.resolveFontItalic(style.fontFamily, style.italic) ? "italic" : void 0
3358
3361
  });
3359
- const textPath = chunkN5WPJIMK_cjs.createSvgEl(context.document, "textPath", {
3362
+ const textPath = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "textPath", {
3360
3363
  href: `#${id}`,
3361
3364
  startOffset: "50%",
3362
3365
  "text-anchor": "middle"
3363
3366
  });
3364
3367
  const fit = layouts[index]?.fitScale ?? 1;
3365
3368
  for (const segment of paragraph.segments) {
3366
- const paint = chunk2C2C27ML_cjs.resolveWarpRunPaint(segment, style);
3367
- const tspan = chunkN5WPJIMK_cjs.createSvgEl(context.document, "tspan", {
3369
+ const paint = chunkJOQIMYHE_cjs.resolveWarpRunPaint(segment, style);
3370
+ const tspan = chunkQ6YXUH4R_cjs.createSvgEl(context.document, "tspan", {
3368
3371
  fill: paint.fill,
3369
3372
  "font-family": paint.fontFamily,
3370
3373
  "font-size": paint.fontSizePx * fit,
@@ -3384,9 +3387,9 @@ function renderPathWarp(element, paragraphs, context) {
3384
3387
 
3385
3388
  // src/pptx/dom/elements/text-shape.ts
3386
3389
  var renderTextShapeElement = (element, zIndex, context) => {
3387
- const container = chunk2C2C27ML_cjs.getContainerStyle(element, zIndex);
3390
+ const container = chunkJOQIMYHE_cjs.getContainerStyle(element, zIndex);
3388
3391
  const animState = context.presentationStates?.get(element.id);
3389
- const background = chunk2C2C27ML_cjs.getBackgroundAnimationState(element, context.presentationStates);
3392
+ const background = chunkJOQIMYHE_cjs.getBackgroundAnimationState(element, context.presentationStates);
3390
3393
  const visualState = background ?? animState;
3391
3394
  const shape = getShapeFillStrokeStyle(
3392
3395
  element,
@@ -3394,27 +3397,27 @@ var renderTextShapeElement = (element, zIndex, context) => {
3394
3397
  visualState?.animatesStroke
3395
3398
  );
3396
3399
  const merged = { ...container, ...shape };
3397
- const bleedPatch = chunk2C2C27ML_cjs.abuttingEdgeBleedStyle(element, context.edgeBleeds?.get(element.id), merged);
3400
+ const bleedPatch = chunkJOQIMYHE_cjs.abuttingEdgeBleedStyle(element, context.edgeBleeds?.get(element.id), merged);
3398
3401
  const beforeBleed = { ...merged };
3399
3402
  Object.assign(merged, bleedPatch);
3400
- const transform = chunkN5WPJIMK_cjs.composeTransforms(container["transform"], shape["transform"]);
3403
+ const transform = chunkQ6YXUH4R_cjs.composeTransforms(container["transform"], shape["transform"]);
3401
3404
  if (transform !== void 0) {
3402
3405
  merged["transform"] = transform;
3403
3406
  }
3404
- const layers = chunk2C2C27ML_cjs.getBackgroundAnimationLayers(element, merged, background);
3405
- const el = chunkN5WPJIMK_cjs.createEl(context.document, "div", "pptxv-element pptxv-shape", layers.box);
3407
+ const layers = chunkJOQIMYHE_cjs.getBackgroundAnimationLayers(element, merged, background);
3408
+ const el = chunkQ6YXUH4R_cjs.createEl(context.document, "div", "pptxv-element pptxv-shape", layers.box);
3406
3409
  el.dataset.elementId = element.id;
3407
3410
  markAbuttingEdgeBleed(el, bleedPatch, beforeBleed);
3408
- const paint = layers.paint ? chunkN5WPJIMK_cjs.createEl(context.document, "div", void 0, layers.paint) : el;
3411
+ const paint = layers.paint ? chunkQ6YXUH4R_cjs.createEl(context.document, "div", void 0, layers.paint) : el;
3409
3412
  if (paint !== el) {
3410
3413
  paint.dataset.animId = layers.targetId;
3411
3414
  paint.dataset.pptxAnimationLayer = "background";
3412
3415
  el.appendChild(paint);
3413
3416
  }
3414
3417
  if (context.interactive && !context.presenting) {
3415
- const hitTargetStyle = chunk2C2C27ML_cjs.elementHitTargetStyle(element);
3418
+ const hitTargetStyle = chunkJOQIMYHE_cjs.elementHitTargetStyle(element);
3416
3419
  if (hitTargetStyle) {
3417
- const hitTarget = chunkN5WPJIMK_cjs.createEl(context.document, "div", void 0, hitTargetStyle);
3420
+ const hitTarget = chunkQ6YXUH4R_cjs.createEl(context.document, "div", void 0, hitTargetStyle);
3418
3421
  hitTarget.setAttribute("aria-hidden", "true");
3419
3422
  hitTarget.setAttribute("data-pptx-hit-target", "true");
3420
3423
  el.appendChild(hitTarget);
@@ -3459,8 +3462,8 @@ var renderTextShapeElement = (element, zIndex, context) => {
3459
3462
  } else if (warped) {
3460
3463
  el.appendChild(warped);
3461
3464
  } else {
3462
- const linkedSegments = chunk2C2C27ML_cjs.getOverflowSegments(element, context.slide?.elements);
3463
- const paragraphs = chunk2C2C27ML_cjs.buildParagraphs(element, context.fieldContext, linkedSegments);
3465
+ const linkedSegments = chunkJOQIMYHE_cjs.getOverflowSegments(element, context.slide?.elements);
3466
+ const paragraphs = chunkJOQIMYHE_cjs.buildParagraphs(element, context.fieldContext, linkedSegments);
3464
3467
  const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
3465
3468
  if (hasText) {
3466
3469
  el.appendChild(
@@ -3471,9 +3474,9 @@ var renderTextShapeElement = (element, zIndex, context) => {
3471
3474
  );
3472
3475
  } else {
3473
3476
  const mode = context.interactive && !context.presenting ? "edit" : "present";
3474
- const prompt = chunk2C2C27ML_cjs.placeholderPromptDescriptor(element, mode);
3477
+ const prompt = chunkJOQIMYHE_cjs.placeholderPromptDescriptor(element, mode);
3475
3478
  if (prompt) {
3476
- const hint = chunkN5WPJIMK_cjs.createEl(context.document, "div", "pptxv-placeholder-prompt", {
3479
+ const hint = chunkQ6YXUH4R_cjs.createEl(context.document, "div", "pptxv-placeholder-prompt", {
3477
3480
  ...getTextBlockStyle(element),
3478
3481
  ...prompt.style
3479
3482
  });
@@ -3487,7 +3490,7 @@ var renderTextShapeElement = (element, zIndex, context) => {
3487
3490
 
3488
3491
  // src/pptx/dom/elements/index.ts
3489
3492
  function createDefaultRegistry() {
3490
- const registry = chunkN5WPJIMK_cjs.createElementRendererRegistry();
3493
+ const registry = chunkQ6YXUH4R_cjs.createElementRendererRegistry();
3491
3494
  registry.register("text", renderTextShapeElement);
3492
3495
  registry.register("shape", renderTextShapeElement);
3493
3496
  registry.register("image", renderImageElement);
@@ -3640,111 +3643,111 @@ async function resolveImageUrls(handler, slides) {
3640
3643
 
3641
3644
  Object.defineProperty(exports, "SMARTART_SVG_STYLE", {
3642
3645
  enumerable: true,
3643
- get: function () { return chunkN5WPJIMK_cjs.SMARTART_SVG_STYLE; }
3646
+ get: function () { return chunkQ6YXUH4R_cjs.SMARTART_SVG_STYLE; }
3644
3647
  });
3645
3648
  Object.defineProperty(exports, "appendSvgTextLines", {
3646
3649
  enumerable: true,
3647
- get: function () { return chunkN5WPJIMK_cjs.appendSvgTextLines; }
3650
+ get: function () { return chunkQ6YXUH4R_cjs.appendSvgTextLines; }
3648
3651
  });
3649
3652
  Object.defineProperty(exports, "applyStyleMap", {
3650
3653
  enumerable: true,
3651
- get: function () { return chunkN5WPJIMK_cjs.applyStyleMap; }
3654
+ get: function () { return chunkQ6YXUH4R_cjs.applyStyleMap; }
3652
3655
  });
3653
3656
  Object.defineProperty(exports, "applyThreeViewTextStyle", {
3654
3657
  enumerable: true,
3655
- get: function () { return chunkN5WPJIMK_cjs.applyThreeViewTextStyle; }
3658
+ get: function () { return chunkQ6YXUH4R_cjs.applyThreeViewTextStyle; }
3656
3659
  });
3657
3660
  Object.defineProperty(exports, "buildSmartArtFallbackSvg", {
3658
3661
  enumerable: true,
3659
- get: function () { return chunkN5WPJIMK_cjs.buildSmartArtFallbackSvg; }
3662
+ get: function () { return chunkQ6YXUH4R_cjs.buildSmartArtFallbackSvg; }
3660
3663
  });
3661
3664
  Object.defineProperty(exports, "buildSmartArtInsertPreview", {
3662
3665
  enumerable: true,
3663
- get: function () { return chunkN5WPJIMK_cjs.buildSmartArtInsertPreview; }
3666
+ get: function () { return chunkQ6YXUH4R_cjs.buildSmartArtInsertPreview; }
3664
3667
  });
3665
3668
  Object.defineProperty(exports, "buildSvgGradientDefs", {
3666
3669
  enumerable: true,
3667
- get: function () { return chunkN5WPJIMK_cjs.buildSvgGradientDefs; }
3670
+ get: function () { return chunkQ6YXUH4R_cjs.buildSvgGradientDefs; }
3668
3671
  });
3669
3672
  Object.defineProperty(exports, "collectThreeViews", {
3670
3673
  enumerable: true,
3671
- get: function () { return chunkN5WPJIMK_cjs.collectThreeViews; }
3674
+ get: function () { return chunkQ6YXUH4R_cjs.collectThreeViews; }
3672
3675
  });
3673
3676
  Object.defineProperty(exports, "composeTransforms", {
3674
3677
  enumerable: true,
3675
- get: function () { return chunkN5WPJIMK_cjs.composeTransforms; }
3678
+ get: function () { return chunkQ6YXUH4R_cjs.composeTransforms; }
3676
3679
  });
3677
3680
  Object.defineProperty(exports, "createEl", {
3678
3681
  enumerable: true,
3679
- get: function () { return chunkN5WPJIMK_cjs.createEl; }
3682
+ get: function () { return chunkQ6YXUH4R_cjs.createEl; }
3680
3683
  });
3681
3684
  Object.defineProperty(exports, "createElementRendererRegistry", {
3682
3685
  enumerable: true,
3683
- get: function () { return chunkN5WPJIMK_cjs.createElementRendererRegistry; }
3686
+ get: function () { return chunkQ6YXUH4R_cjs.createElementRendererRegistry; }
3684
3687
  });
3685
3688
  Object.defineProperty(exports, "createSvgEl", {
3686
3689
  enumerable: true,
3687
- get: function () { return chunkN5WPJIMK_cjs.createSvgEl; }
3690
+ get: function () { return chunkQ6YXUH4R_cjs.createSvgEl; }
3688
3691
  });
3689
3692
  Object.defineProperty(exports, "enableSmartArtEditing", {
3690
3693
  enumerable: true,
3691
- get: function () { return chunkN5WPJIMK_cjs.enableSmartArtEditing; }
3694
+ get: function () { return chunkQ6YXUH4R_cjs.enableSmartArtEditing; }
3692
3695
  });
3693
3696
  Object.defineProperty(exports, "isChart3DEditable", {
3694
3697
  enumerable: true,
3695
- get: function () { return chunkN5WPJIMK_cjs.isChart3DEditable; }
3698
+ get: function () { return chunkQ6YXUH4R_cjs.isChart3DEditable; }
3696
3699
  });
3697
3700
  Object.defineProperty(exports, "mountThreeViewInto", {
3698
3701
  enumerable: true,
3699
- get: function () { return chunkN5WPJIMK_cjs.mountThreeViewInto; }
3702
+ get: function () { return chunkQ6YXUH4R_cjs.mountThreeViewInto; }
3700
3703
  });
3701
3704
  Object.defineProperty(exports, "renderSmartArt3DElement", {
3702
3705
  enumerable: true,
3703
- get: function () { return chunkN5WPJIMK_cjs.renderSmartArt3DElement; }
3706
+ get: function () { return chunkQ6YXUH4R_cjs.renderSmartArt3DElement; }
3704
3707
  });
3705
3708
  Object.defineProperty(exports, "renderSmartArtElement", {
3706
3709
  enumerable: true,
3707
- get: function () { return chunkN5WPJIMK_cjs.renderSmartArtElement; }
3710
+ get: function () { return chunkQ6YXUH4R_cjs.renderSmartArtElement; }
3708
3711
  });
3709
3712
  Object.defineProperty(exports, "renderSmartArtSvg", {
3710
3713
  enumerable: true,
3711
- get: function () { return chunkN5WPJIMK_cjs.renderSmartArtSvg; }
3714
+ get: function () { return chunkQ6YXUH4R_cjs.renderSmartArtSvg; }
3712
3715
  });
3713
3716
  Object.defineProperty(exports, "rendering3DFlagsOf", {
3714
3717
  enumerable: true,
3715
- get: function () { return chunkN5WPJIMK_cjs.rendering3DFlagsOf; }
3718
+ get: function () { return chunkQ6YXUH4R_cjs.rendering3DFlagsOf; }
3716
3719
  });
3717
3720
  Object.defineProperty(exports, "selectedChartPartOf", {
3718
3721
  enumerable: true,
3719
- get: function () { return chunkN5WPJIMK_cjs.selectedChartPartOf; }
3722
+ get: function () { return chunkQ6YXUH4R_cjs.selectedChartPartOf; }
3720
3723
  });
3721
3724
  Object.defineProperty(exports, "setSvgAttrs", {
3722
3725
  enumerable: true,
3723
- get: function () { return chunkN5WPJIMK_cjs.setSvgAttrs; }
3726
+ get: function () { return chunkQ6YXUH4R_cjs.setSvgAttrs; }
3724
3727
  });
3725
3728
  Object.defineProperty(exports, "takeReusableThreeView", {
3726
3729
  enumerable: true,
3727
- get: function () { return chunkN5WPJIMK_cjs.takeReusableThreeView; }
3730
+ get: function () { return chunkQ6YXUH4R_cjs.takeReusableThreeView; }
3728
3731
  });
3729
3732
  Object.defineProperty(exports, "wireChartThreeViewEvents", {
3730
3733
  enumerable: true,
3731
- get: function () { return chunkN5WPJIMK_cjs.wireChartThreeViewEvents; }
3734
+ get: function () { return chunkQ6YXUH4R_cjs.wireChartThreeViewEvents; }
3732
3735
  });
3733
3736
  Object.defineProperty(exports, "withReusableThreeViews", {
3734
3737
  enumerable: true,
3735
- get: function () { return chunkN5WPJIMK_cjs.withReusableThreeViews; }
3738
+ get: function () { return chunkQ6YXUH4R_cjs.withReusableThreeViews; }
3736
3739
  });
3737
3740
  Object.defineProperty(exports, "buildEmbeddedFontStyles", {
3738
3741
  enumerable: true,
3739
- get: function () { return chunk2C2C27ML_cjs.buildEmbeddedFontStyles; }
3742
+ get: function () { return chunkJOQIMYHE_cjs.buildEmbeddedFontStyles; }
3740
3743
  });
3741
3744
  Object.defineProperty(exports, "buildFieldSubstitutionContext", {
3742
3745
  enumerable: true,
3743
- get: function () { return chunk2C2C27ML_cjs.buildFieldSubstitutionContext; }
3746
+ get: function () { return chunkJOQIMYHE_cjs.buildFieldSubstitutionContext; }
3744
3747
  });
3745
3748
  Object.defineProperty(exports, "releasePptxRenderCaches", {
3746
3749
  enumerable: true,
3747
- get: function () { return chunk2C2C27ML_cjs.releasePptxRenderCaches; }
3750
+ get: function () { return chunkJOQIMYHE_cjs.releasePptxRenderCaches; }
3748
3751
  });
3749
3752
  Object.defineProperty(exports, "renderChartViewModelSvg", {
3750
3753
  enumerable: true,