@office-kit/pptx 0.29.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @office-kit/pptx
2
2
 
3
+ ## 0.30.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0f80c9e: Read shapes wrapped in `mc:AlternateContent` in a shape tree. The desktop app saves a shape holding an equation this way, and such shapes were left out of `getSlideShapes`, so the preview drew nothing for them. The reader now takes the branch an application without newer features would take: the a14 choice (the equation) or, for any other choice, the fallback. Removing, reordering, grouping, ungrouping and copying such a shape move the whole wrapper.
8
+
9
+ `getSlideShapes` can now return more shapes for decks that use this markup, which shifts the index of later shapes.
10
+
3
11
  ## 0.29.0
4
12
 
5
13
  ### Minor Changes
package/README.md CHANGED
@@ -755,6 +755,13 @@ The equation is written as a native, editable `<a14:m>` inside
755
755
  the fallback that apps without equation support show. `getShapeParagraphElements`
756
756
  reads it back as a `math` element, and `@office-kit/pptx-preview` draws it.
757
757
 
758
+ The desktop app saves a shape holding an equation differently: the whole shape
759
+ sits in `mc:AlternateContent`, with a picture of it as the fallback.
760
+ `getSlideShapes` returns the shape from the equation branch, so its text and
761
+ equations read and edit as usual, and removing, reordering, grouping or copying
762
+ it moves the wrapper too. Text and format edits change only that branch, so an
763
+ app that shows the fallback keeps showing the old picture.
764
+
758
765
  To create several destination slides, use `addSlideAt(pres, index, [{ layout },
759
766
  { layout }])`. It returns the new slides in insertion order, with existing slide
760
767
  handles preserved. Every layout must belong to the presentation.
@@ -153,6 +153,76 @@ const NS = {
153
153
  };
154
154
  NS.contentTypes, NS.relationships, NS.officeDocRels, NS.pml, NS.dml, NS.diagram, NS.chart, NS.chartDrawing, NS.sml, NS.wml, NS.math, NS.mc, NS.a14, NS.a15, NS.a16, NS.p14, NS.p15, NS.p16, NS.p159, NS.xml;
155
155
  //#endregion
156
+ //#region src/internal/xml/query.ts
157
+ const isElement = (n) => n.kind === "element";
158
+ const childElements = (e) => e.children.filter(isElement);
159
+ const firstChildElement = (e, name) => {
160
+ for (const c of e.children) if (isElement(c) && qnameEquals(c.name, name)) return c;
161
+ return null;
162
+ };
163
+ const allChildElements = (e, name) => {
164
+ const out = [];
165
+ for (const c of e.children) if (isElement(c) && qnameEquals(c.name, name)) out.push(c);
166
+ return out;
167
+ };
168
+ const getAttr = (e, name) => {
169
+ for (const a of e.attrs) if (qnameEquals(a.name, name)) return a;
170
+ return null;
171
+ };
172
+ const getAttrValue = (e, name) => getAttr(e, name)?.value ?? null;
173
+ /**
174
+ * Returns the concatenated text content of an element, walking into nested
175
+ * elements. OOXML uses this pattern for `<a:t>Hello</a:t>` (single text
176
+ * child) and for run sequences where multiple text nodes need merging.
177
+ */
178
+ const textContent = (e) => {
179
+ let out = "";
180
+ for (const c of e.children) if (c.kind === "text") out += c.data;
181
+ else if (c.kind === "cdata") out += c.data;
182
+ else if (c.kind === "element") out += textContent(c);
183
+ return out;
184
+ };
185
+ /**
186
+ * Walks the element tree depth-first, yielding every element including the
187
+ * root. The visitor returns `false` to skip descending into the current
188
+ * element's children. Returning nothing (or `true`) descends as usual.
189
+ */
190
+ const walkElements = (root, visit) => {
191
+ const stack = [root];
192
+ while (stack.length > 0) {
193
+ const node = stack.pop();
194
+ if (!node) continue;
195
+ if (visit(node) === false) continue;
196
+ for (let i = node.children.length - 1; i >= 0; i--) {
197
+ const c = node.children[i];
198
+ if (c && isElement(c)) stack.push(c);
199
+ }
200
+ }
201
+ };
202
+ //#endregion
203
+ //#region src/internal/xml/markup-compatibility.ts
204
+ const ATTR_REQUIRES$2 = qname("", "Requires", "");
205
+ const isAlternateContent = (el) => el.name.namespaceURI === NS.mc && el.name.localName === "AlternateContent";
206
+ /** The prefix bindings in effect inside `el`, given those in effect around it. */
207
+ const withPrefixDecls = (scope, el) => el.prefixDecls.size === 0 ? scope : new Map([...scope, ...el.prefixDecls]);
208
+ /**
209
+ * The branch of `alternateContent` a reader that understands `understood`
210
+ * (namespace URIs) takes, or `null` when no choice qualifies and there is no
211
+ * fallback. `scope` holds the prefix bindings in effect around the element;
212
+ * `Requires` names prefixes, so they resolve against it.
213
+ */
214
+ const selectAlternateContentBranch = (alternateContent, understood, scope) => {
215
+ const outer = withPrefixDecls(scope, alternateContent);
216
+ for (const branch of alternateContent.children) {
217
+ if (branch.kind !== "element" || branch.name.namespaceURI !== NS.mc) continue;
218
+ if (branch.name.localName === "Fallback") return branch;
219
+ if (branch.name.localName !== "Choice") continue;
220
+ const inner = withPrefixDecls(outer, branch);
221
+ if ((getAttrValue(branch, ATTR_REQUIRES$2) ?? "").split(/\s+/).filter(Boolean).every((prefix) => understood.has(inner.get(prefix) ?? ""))) return branch;
222
+ }
223
+ return null;
224
+ };
225
+ //#endregion
156
226
  //#region src/internal/xml/parse.ts
157
227
  var XmlParseError = class extends Error {
158
228
  offset;
@@ -470,53 +540,6 @@ const parseXml = (src) => {
470
540
  };
471
541
  const parseFragment = (src) => parseXml(src).root;
472
542
  //#endregion
473
- //#region src/internal/xml/query.ts
474
- const isElement = (n) => n.kind === "element";
475
- const childElements = (e) => e.children.filter(isElement);
476
- const firstChildElement = (e, name) => {
477
- for (const c of e.children) if (isElement(c) && qnameEquals(c.name, name)) return c;
478
- return null;
479
- };
480
- const allChildElements = (e, name) => {
481
- const out = [];
482
- for (const c of e.children) if (isElement(c) && qnameEquals(c.name, name)) out.push(c);
483
- return out;
484
- };
485
- const getAttr = (e, name) => {
486
- for (const a of e.attrs) if (qnameEquals(a.name, name)) return a;
487
- return null;
488
- };
489
- const getAttrValue = (e, name) => getAttr(e, name)?.value ?? null;
490
- /**
491
- * Returns the concatenated text content of an element, walking into nested
492
- * elements. OOXML uses this pattern for `<a:t>Hello</a:t>` (single text
493
- * child) and for run sequences where multiple text nodes need merging.
494
- */
495
- const textContent = (e) => {
496
- let out = "";
497
- for (const c of e.children) if (c.kind === "text") out += c.data;
498
- else if (c.kind === "cdata") out += c.data;
499
- else if (c.kind === "element") out += textContent(c);
500
- return out;
501
- };
502
- /**
503
- * Walks the element tree depth-first, yielding every element including the
504
- * root. The visitor returns `false` to skip descending into the current
505
- * element's children. Returning nothing (or `true`) descends as usual.
506
- */
507
- const walkElements = (root, visit) => {
508
- const stack = [root];
509
- while (stack.length > 0) {
510
- const node = stack.pop();
511
- if (!node) continue;
512
- if (visit(node) === false) continue;
513
- for (let i = node.children.length - 1; i >= 0; i--) {
514
- const c = node.children[i];
515
- if (c && isElement(c)) stack.push(c);
516
- }
517
- }
518
- };
519
- //#endregion
520
543
  //#region src/internal/xml/serialize.ts
521
544
  const rejectForbiddenChar = (c) => {
522
545
  const control = c < 32 && c !== 9 && c !== 10 && c !== 13;
@@ -26007,7 +26030,8 @@ const NV_BY_KIND = {
26007
26030
  graphicFrame: NAME_NV_GRAPHIC_FRAME_PR$2,
26008
26031
  connector: NAME_NV_CXN_SP_PR$1
26009
26032
  };
26010
- const classify = (element) => {
26033
+ /** The shape kind of a shape-tree child, or `null` for anything that is not a shape. */
26034
+ const classifyShapeElement = (element) => {
26011
26035
  if (element.name.namespaceURI !== NS.pml) return null;
26012
26036
  switch (element.name.localName) {
26013
26037
  case "sp": return "shape";
@@ -26057,16 +26081,28 @@ const extractShape = (element, kind) => {
26057
26081
  element
26058
26082
  };
26059
26083
  };
26060
- const collectShapes = (spTree, out, recurseIntoGroups) => {
26061
- for (const child of spTree.children) {
26084
+ const UNDERSTOOD_CHOICES = new Set([NS.a14]);
26085
+ const collectShapes = (container, out, recurseIntoGroups, scope) => {
26086
+ for (const child of container.children) {
26062
26087
  if (child.kind !== "element") continue;
26063
- const kind = classify(child);
26088
+ if (isAlternateContent(child)) {
26089
+ const branch = selectAlternateContentBranch(child, UNDERSTOOD_CHOICES, scope);
26090
+ if (branch !== null) collectShapes(branch, out, recurseIntoGroups, withPrefixDecls(withPrefixDecls(scope, child), branch));
26091
+ continue;
26092
+ }
26093
+ const kind = classifyShapeElement(child);
26064
26094
  if (kind === null) continue;
26065
26095
  out.push(extractShape(child, kind));
26066
- if (kind === "group" && recurseIntoGroups) collectShapes(child, out, recurseIntoGroups);
26096
+ if (kind === "group" && recurseIntoGroups) collectShapes(child, out, recurseIntoGroups, withPrefixDecls(scope, child));
26067
26097
  }
26068
26098
  };
26069
26099
  /**
26100
+ * The shape elements an `mc:AlternateContent` in a shape tree holds, across
26101
+ * all its branches. Edits that move or reposition the wrapped shape apply to
26102
+ * each, so every reader sees the same result.
26103
+ */
26104
+ const alternateContentShapes = (alternateContent) => alternateContent.children.flatMap((branch) => branch.kind === "element" && branch.name.namespaceURI === NS.mc ? branch.children.filter((child) => child.kind === "element" && classifyShapeElement(child) !== null) : []);
26105
+ /**
26070
26106
  * Reads the immediate child shapes of a `<p:grpSp>` (group shape)
26071
26107
  * without recursing further. Used by `getGroupChildren` on the public
26072
26108
  * surface to expose group contents to renderers.
@@ -26076,7 +26112,7 @@ const collectShapes = (spTree, out, recurseIntoGroups) => {
26076
26112
  const readGroupChildren = (element) => {
26077
26113
  if (element.name.namespaceURI !== NS.pml || element.name.localName !== "grpSp") throw new Error(`readGroupChildren: expected <p:grpSp>, got <${element.name.prefix}:${element.name.localName}>`);
26078
26114
  const out = [];
26079
- collectShapes(element, out, false);
26115
+ collectShapes(element, out, false, element.prefixDecls);
26080
26116
  return out;
26081
26117
  };
26082
26118
  /**
@@ -26091,7 +26127,8 @@ const readShapeTreeFromCsldRoot = (root, expectedLocalName, options = {}) => {
26091
26127
  const spTree = firstChildElement(cSld, NAME_SP_TREE$3);
26092
26128
  if (spTree === null) throw new Error("<p:cSld>: missing <p:spTree>");
26093
26129
  const shapes = [];
26094
- collectShapes(spTree, shapes, options.recurseIntoGroups ?? true);
26130
+ const scope = withPrefixDecls(withPrefixDecls(root.prefixDecls, cSld), spTree);
26131
+ collectShapes(spTree, shapes, options.recurseIntoGroups ?? true, scope);
26095
26132
  return {
26096
26133
  shapes,
26097
26134
  cSld
@@ -32186,14 +32223,43 @@ const setOpcDefault = (pkg, extension, contentType) => {
32186
32223
  });
32187
32224
  };
32188
32225
  /** Locate the owning slide/group container without descending into shape content. */
32189
- const findShapeParent = (shape) => {
32226
+ /**
32227
+ * Whether `node` is a shape in a shape tree's child list: a shape element, or
32228
+ * an `mc:AlternateContent` holding one in its branches (the shape the reader
32229
+ * enumerates is in one of them).
32230
+ */
32231
+ const isShapeSlot = (node) => node.kind === "element" && (classifyShapeElement(node) !== null || isAlternateContent(node) && alternateContentShapes(node).length > 0);
32232
+ /** The shape elements a slot holds: the slot itself, or every branch's shape. */
32233
+ const shapesInSlot = (slot) => isAlternateContent(slot) ? alternateContentShapes(slot) : [slot];
32234
+ /** Maps each shape element held by `container`'s slots to that slot. */
32235
+ const shapeSlotsIn = (container) => {
32236
+ const slots = /* @__PURE__ */ new Map();
32237
+ for (const child of container.children) {
32238
+ if (!isShapeSlot(child)) continue;
32239
+ for (const shape of shapesInSlot(child)) slots.set(shape, child);
32240
+ }
32241
+ return slots;
32242
+ };
32243
+ const isGroupElement = (node) => node.kind === "element" && node.name.namespaceURI === NS.pml && node.name.localName === "grpSp";
32244
+ /**
32245
+ * The container (`p:spTree` or `p:grpSp`) holding the shape and the slot it
32246
+ * occupies there: the shape element, or the `mc:AlternateContent` wrapping it.
32247
+ * Structural edits (remove, reorder, group, copy) move the slot, so the
32248
+ * wrapper and its other branches go along with the shape.
32249
+ */
32250
+ const findShapeSlot = (shape) => {
32190
32251
  const stack = [requireSpTree(shape[SHAPE_SLIDE])];
32191
32252
  const target = shape[SHAPE_ELEMENT];
32192
32253
  while (stack.length) {
32193
32254
  const parent = stack.pop();
32194
32255
  for (const child of parent.children) {
32195
- if (child === target) return parent;
32196
- if (child.kind === "element" && child.name.namespaceURI === NS.pml && child.name.localName === "grpSp") stack.push(child);
32256
+ if (!isShapeSlot(child)) continue;
32257
+ const held = shapesInSlot(child);
32258
+ if (held.includes(target)) return {
32259
+ parent,
32260
+ slot: child
32261
+ };
32262
+ stack.push(...held.filter(isGroupElement));
32197
32263
  }
32198
32264
  }
32199
32265
  return null;
@@ -52791,7 +52857,7 @@ const animatedSpids = (timing) => {
52791
52857
  */
52792
52858
  const copyShape = (targetSlide, sourceShape, opts = {}) => {
52793
52859
  const sourceSlide = sourceShape[SHAPE_SLIDE];
52794
- const sourceEl = sourceShape[SHAPE_ELEMENT];
52860
+ const sourceEl = findShapeSlot(sourceShape)?.slot ?? sourceShape[SHAPE_ELEMENT];
52795
52861
  let cloned = cloneXmlElement(sourceEl);
52796
52862
  if (opts.preserveGroupTransform) {
52797
52863
  const root = requireSpTree(sourceSlide);
@@ -52800,9 +52866,9 @@ const copyShape = (targetSlide, sourceShape, opts = {}) => {
52800
52866
  while (stack.length) {
52801
52867
  const parent = stack.pop();
52802
52868
  for (const child of parent.children) {
52803
- if (child.kind !== "element" || !isShapeChild(child)) continue;
52869
+ if (!isShapeSlot(child)) continue;
52804
52870
  parents.set(child, parent);
52805
- if (child.name.localName === "grpSp") stack.push(child);
52871
+ if (child.name.namespaceURI === NS.pml && child.name.localName === "grpSp") stack.push(child);
52806
52872
  }
52807
52873
  }
52808
52874
  let branch = sourceEl;
@@ -52810,9 +52876,9 @@ const copyShape = (targetSlide, sourceShape, opts = {}) => {
52810
52876
  while (parent && parent !== root) {
52811
52877
  const wrapper = cloneXmlElement({
52812
52878
  ...parent,
52813
- children: parent.children.filter((child) => !isShapeChild(child))
52879
+ children: parent.children.filter((child) => !isShapeSlot(child))
52814
52880
  });
52815
- const insertion = parent.children.slice(0, parent.children.indexOf(branch)).filter((child) => !isShapeChild(child)).length;
52881
+ const insertion = parent.children.slice(0, parent.children.indexOf(branch)).filter((child) => !isShapeSlot(child)).length;
52816
52882
  wrapper.children.splice(insertion, 0, cloned);
52817
52883
  cloned = wrapper;
52818
52884
  branch = parent;
@@ -52859,7 +52925,7 @@ const rewriteShapeIds = (root, firstId) => {
52859
52925
  ...a,
52860
52926
  value: ids.get(a.value) ?? a.value
52861
52927
  };
52862
- const value = String(nextId++);
52928
+ const value = ids.get(a.value) ?? String(nextId++);
52863
52929
  ids.set(a.value, value);
52864
52930
  return {
52865
52931
  ...a,
@@ -52872,14 +52938,6 @@ const rewriteShapeIds = (root, firstId) => {
52872
52938
  walk(root, true);
52873
52939
  return ids;
52874
52940
  };
52875
- const SHAPE_CHILD_LOCALS = new Set([
52876
- "sp",
52877
- "pic",
52878
- "cxnSp",
52879
- "graphicFrame",
52880
- "grpSp"
52881
- ]);
52882
- const isShapeChild = (node) => node.kind === "element" && node.name?.namespaceURI === NS.pml && SHAPE_CHILD_LOCALS.has(node.name.localName);
52883
52941
  /** Move one shape or a selection in front of all siblings, preserving their stacking order. */
52884
52942
  const bringShapeToFront = (shape) => {
52885
52943
  reorderShapes(shape, "front");
@@ -52896,13 +52954,13 @@ function reorderShapes(input, direction) {
52896
52954
  const shapes = SHAPE_ELEMENT in input ? [input] : input;
52897
52955
  const first = shapes[0];
52898
52956
  if (!first) return;
52899
- const parent = findShapeParent(first);
52957
+ const parent = findShapeSlot(first)?.parent;
52900
52958
  if (!parent) return;
52901
52959
  const slide = first[SHAPE_SLIDE];
52902
- const selected = new Set(shapes.map((shape) => shape[SHAPE_ELEMENT]));
52903
- const siblings = parent.children.filter((child) => isShapeChild(child));
52904
- const siblingSet = new Set(siblings);
52905
- if (shapes.some((shape) => shape[SHAPE_SLIDE] !== slide || !siblingSet.has(shape[SHAPE_ELEMENT]))) throw new Error("Shapes must belong to the same parent container.");
52960
+ const slots = shapeSlotsIn(parent);
52961
+ const siblings = parent.children.filter(isShapeSlot);
52962
+ if (shapes.some((shape) => shape[SHAPE_SLIDE] !== slide || !slots.has(shape[SHAPE_ELEMENT]))) throw new Error("Shapes must belong to the same parent container.");
52963
+ const selected = new Set(shapes.map((shape) => slots.get(shape[SHAPE_ELEMENT])));
52906
52964
  let ordered = [...siblings];
52907
52965
  if (direction === "front" || direction === "back") {
52908
52966
  const chosen = siblings.filter((child) => selected.has(child));
@@ -52913,7 +52971,7 @@ function reorderShapes(input, direction) {
52913
52971
  } else for (let i = 1; i < ordered.length; i++) if (selected.has(ordered[i]) && !selected.has(ordered[i - 1])) [ordered[i - 1], ordered[i]] = [ordered[i], ordered[i - 1]];
52914
52972
  if (ordered.every((child, i) => child === siblings[i])) return;
52915
52973
  let index = 0;
52916
- parent.children = parent.children.map((child) => isShapeChild(child) ? ordered[index++] : child);
52974
+ parent.children = parent.children.map((child) => isShapeSlot(child) ? ordered[index++] : child);
52917
52975
  commitSlideData(slide);
52918
52976
  rebuildShapesFromDocument(slide);
52919
52977
  }
@@ -52924,15 +52982,9 @@ function reorderShapes(input, direction) {
52924
52982
  * Higher numbers render in front.
52925
52983
  */
52926
52984
  const getShapeZIndex = (shape) => {
52927
- const spTree = findShapeParent(shape);
52928
- if (!spTree) return -1;
52929
- let i = 0;
52930
- for (const c of spTree.children) {
52931
- if (!isShapeChild(c)) continue;
52932
- if (c === shape[SHAPE_ELEMENT]) return i;
52933
- i++;
52934
- }
52935
- return -1;
52985
+ const found = findShapeSlot(shape);
52986
+ if (!found) return -1;
52987
+ return found.parent.children.filter(isShapeSlot).indexOf(found.slot);
52936
52988
  };
52937
52989
  /**
52938
52990
  * Moves a shape or an ordered batch of siblings to a specific z-index.
@@ -52943,15 +52995,15 @@ const setShapeZIndex = (shape, toIndex) => {
52943
52995
  const shapes = SHAPE_ELEMENT in shape ? [shape] : shape;
52944
52996
  const first = shapes[0];
52945
52997
  if (!first) return;
52946
- const parent = findShapeParent(first);
52998
+ const parent = findShapeSlot(first)?.parent;
52947
52999
  if (!parent) return;
52948
53000
  const slide = first[SHAPE_SLIDE];
52949
- const siblings = parent.children.filter((child) => isShapeChild(child));
52950
- const siblingSet = new Set(siblings);
52951
- const chosen = shapes.map((member) => member[SHAPE_ELEMENT]);
53001
+ const slots = shapeSlotsIn(parent);
53002
+ const siblings = parent.children.filter(isShapeSlot);
53003
+ if (shapes.some((member) => member[SHAPE_SLIDE] !== slide || !slots.has(member[SHAPE_ELEMENT]))) throw new Error("Shapes must belong to the same parent container.");
53004
+ const chosen = shapes.map((member) => slots.get(member[SHAPE_ELEMENT]));
52952
53005
  const selected = new Set(chosen);
52953
53006
  if (selected.size !== chosen.length) throw new Error("Duplicate shapes are not allowed.");
52954
- if (shapes.some((member) => member[SHAPE_SLIDE] !== slide || !siblingSet.has(member[SHAPE_ELEMENT]))) throw new Error("Shapes must belong to the same parent container.");
52955
53007
  const remaining = siblings.filter((child) => !selected.has(child));
52956
53008
  const clamped = Math.max(0, Math.min(toIndex, remaining.length));
52957
53009
  const ordered = [
@@ -52961,7 +53013,7 @@ const setShapeZIndex = (shape, toIndex) => {
52961
53013
  ];
52962
53014
  if (ordered.every((child, index) => child === siblings[index])) return;
52963
53015
  let index = 0;
52964
- parent.children = parent.children.map((child) => isShapeChild(child) ? ordered[index++] : child);
53016
+ parent.children = parent.children.map((child) => isShapeSlot(child) ? ordered[index++] : child);
52965
53017
  commitSlideData(slide);
52966
53018
  rebuildShapesFromDocument(slide);
52967
53019
  };
@@ -52980,9 +53032,9 @@ const sendShapeBackward = (shape) => {
52980
53032
  const clearSlideShapes = (slide) => {
52981
53033
  const spTree = requireSpTree(slide);
52982
53034
  const removedIds = /* @__PURE__ */ new Set();
52983
- for (const child of spTree.children) if (child.kind === "element" && isShapeChild(child)) collectShapeIds(child, removedIds);
53035
+ for (const child of spTree.children) if (isShapeSlot(child)) collectShapeIds(child, removedIds);
52984
53036
  const dropAnimations = planShapeAnimationRemoval(slide, removedIds);
52985
- spTree.children = spTree.children.filter((c) => !isShapeChild(c));
53037
+ spTree.children = spTree.children.filter((c) => !isShapeSlot(c));
52986
53038
  dropAnimations();
52987
53039
  removeMediaTimingNodes(slide, removedIds);
52988
53040
  commitSlideData(slide);
@@ -52997,12 +53049,12 @@ const clearSlideShapes = (slide) => {
52997
53049
  */
52998
53050
  const removeShape = (shape) => {
52999
53051
  const slide = shape[SHAPE_SLIDE];
53000
- const spTree = findShapeParent(shape);
53001
- if (!spTree) return;
53002
- const idx = spTree.children.indexOf(shape[SHAPE_ELEMENT]);
53003
- if (idx < 0) return;
53052
+ const found = findShapeSlot(shape);
53053
+ if (!found) return;
53054
+ const spTree = found.parent;
53055
+ const idx = spTree.children.indexOf(found.slot);
53004
53056
  const removedIds = /* @__PURE__ */ new Set();
53005
- collectShapeIds(shape[SHAPE_ELEMENT], removedIds);
53057
+ collectShapeIds(found.slot, removedIds);
53006
53058
  const dropAnimations = planShapeAnimationRemoval(slide, removedIds);
53007
53059
  spTree.children.splice(idx, 1);
53008
53060
  dropAnimations();
@@ -55818,9 +55870,9 @@ const setShapeStyle = (shape, options) => {
55818
55870
  const groupShapes = (shapes, opts = {}) => {
55819
55871
  if (shapes.length < 2) throw new Error("groupShapes: at least 2 shapes are required");
55820
55872
  const slide = shapes[0][SHAPE_SLIDE];
55821
- const spTree = findShapeParent(shapes[0]);
55873
+ const spTree = findShapeSlot(shapes[0])?.parent;
55822
55874
  if (!spTree) throw new Error("groupShapes: shape is not attached to the slide");
55823
- const siblings = new Set(spTree.children);
55875
+ const slots = shapeSlotsIn(spTree);
55824
55876
  const seen = /* @__PURE__ */ new Set();
55825
55877
  let minX = Number.POSITIVE_INFINITY;
55826
55878
  let minY = Number.POSITIVE_INFINITY;
@@ -55829,9 +55881,10 @@ const groupShapes = (shapes, opts = {}) => {
55829
55881
  for (const shape of shapes) {
55830
55882
  if (shape[SHAPE_SLIDE] !== slide) throw new Error("groupShapes: all shapes must belong to the same slide");
55831
55883
  const el = shape[SHAPE_ELEMENT];
55832
- if (seen.has(el)) throw new Error(`groupShapes: shape "${shape[SHAPE_SNAPSHOT].name}" was passed twice`);
55833
- seen.add(el);
55834
- if (!siblings.has(el)) throw new Error(`groupShapes: shape "${shape[SHAPE_SNAPSHOT].name}" is not a direct child of the same parent as the other shapes`);
55884
+ const slot = slots.get(el);
55885
+ if (slot === void 0) throw new Error(`groupShapes: shape "${shape[SHAPE_SNAPSHOT].name}" is not a direct child of the same parent as the other shapes`);
55886
+ if (seen.has(slot)) throw new Error(`groupShapes: shape "${shape[SHAPE_SNAPSHOT].name}" was passed twice`);
55887
+ seen.add(slot);
55835
55888
  const kind = shape[SHAPE_SNAPSHOT].kind;
55836
55889
  const pos = readPosition$1(el, kind);
55837
55890
  const size = readSize(el, kind);
@@ -55889,12 +55942,17 @@ const ungroupShapes = (group) => {
55889
55942
  const centerX = outer.x + outer.w / 2;
55890
55943
  const centerY = outer.y + outer.h / 2;
55891
55944
  const slide = group[SHAPE_SLIDE];
55892
- const spTree = findShapeParent(group);
55893
- if (!spTree) throw new Error("ungroupShapes: group is not attached to the slide");
55894
- const groupEl = group[SHAPE_ELEMENT];
55895
- const idx = spTree.children.indexOf(groupEl);
55896
- if (idx < 0) throw new Error("ungroupShapes: group is not attached to the slide");
55897
- const childElements = readGroupChildren(groupEl).map((child) => {
55945
+ const found = findShapeSlot(group);
55946
+ if (!found) throw new Error("ungroupShapes: group is not attached to the slide");
55947
+ const spTree = found.parent;
55948
+ const idx = spTree.children.indexOf(found.slot);
55949
+ const slots = group[SHAPE_ELEMENT].children.filter(isShapeSlot);
55950
+ const moved = slots.flatMap(shapesInSlot);
55951
+ for (const element of moved) {
55952
+ const child = {
55953
+ element,
55954
+ kind: classifyShapeElement(element)
55955
+ };
55898
55956
  const pos = readPosition$1(child.element, child.kind);
55899
55957
  const size = readSize(child.element, child.kind);
55900
55958
  if (pos !== null && size !== null) {
@@ -55914,17 +55972,12 @@ const ungroupShapes = (group) => {
55914
55972
  });
55915
55973
  }
55916
55974
  }
55917
- return child.element;
55918
- });
55919
- spTree.children.splice(idx, 1, ...childElements);
55975
+ }
55976
+ spTree.children.splice(idx, 1, ...slots);
55920
55977
  commitSlideData(slide);
55921
55978
  rebuildShapesFromDocument(slide);
55922
- const byElement = new Map(slide[SLIDE_SHAPES].map((s) => [s[SHAPE_ELEMENT], s]));
55923
- return childElements.map((el) => {
55924
- const found = byElement.get(el);
55925
- if (!found) throw new Error("ungroupShapes: post-condition failed");
55926
- return found;
55927
- });
55979
+ const movedSet = new Set(moved);
55980
+ return slide[SLIDE_SHAPES].filter((s) => movedSet.has(s[SHAPE_ELEMENT]));
55928
55981
  };
55929
55982
  //#endregion
55930
55983
  //#region src/api/fn/shape-picture-style.ts
@@ -56734,8 +56787,8 @@ const getShapeImageIntrinsicSize = (shape) => {
56734
56787
  };
56735
56788
  //#endregion
56736
56789
  //#region src/api/index.ts
56737
- const VERSION = "0.29.0";
56790
+ const VERSION = "0.30.0";
56738
56791
  //#endregion
56739
56792
  export { swapSlides as $, findSlidesByLayoutName as $a, getPresentationChartKindCounts as $c, getShapeStroke as $i, getSlideLayoutUsageCounts as $l, clearShapeEffects as $n, getSlideNotesParagraphEndFormat as $o, getShapeName as $r, getTableCellText as $s, isSlideLayoutBackgroundGraphicsHidden as $t, isShapeAspectRatioLocked as A, setParagraphAlignment as Aa, splitTableCell as Ac, setShapeFlip as Ai, getSlideMasterBackgroundImageBytes as Al, getShapeTextAutoFit as An, appendSlideNotes as Ao, getSlideShapes as Ar, getPackageSize as As, findSlidesByNotes as At, getPresentationCommenters as Au, addContentSlide as B, getSlideBody as Ba, setExtendedProperties as Bc, setShapeSlideBackgroundFill as Bi, getShapeGradientFillEffective as Bl, setShapeParagraphs as Bn, getAllImages as Bo, getMaxShapeId as Br, getSlideTables as Bs, getSlideCount as Bt, createPresentation as Bu, groupShapes as C, getShapeParagraphElements as Ca, setTableCellText as Cc, clearShapeStroke as Ci, getSlideLayoutBackgroundGradientFill as Cl, moveSlideAnimation as Cn, setShapeImageRecolor as Co, findSlidePlaceholderByIdx as Cr, getShapeMedia as Cs, setSlideMasterPlaceholderIncluded as Ct, getCommentPosition as Cu, getShapeTextLanguage as D, getShapeRunHyperlinkTooltip as Da, setTableRowHeight as Dc, getShapeStrokeSketch as Di, getSlideLayoutShapes as Dl, getShapeBodyPrEffective as Dn, getPresentationFirstSlideNumber as Do, getShapeXmlString as Dr, compactPackage as Ds, findSlideByPartName as Dt, getCommentsSortedByDate as Du, getParagraphElementLanguages as E, getShapeRunHyperlink as Ea, setTableColumnWidth as Ec, getShapeStrokeDash as Ei, getSlideLayoutBackgroundShapes as El, appendShapeText as En, SLIDE_SIZE_4_3 as Eo, getShapeSlide as Er, _internalPackageOf as Es, setSlideSections as Et, getCommentText as Eu, addSlidePlaceholder as F, setParagraphSpacing as Fa, getExtendedProperties as Fc, setShapePatternFill as Fi, setSlideBackgroundImage as Fl, getShapeTextFlat as Fn, findSlidesWithChartKind as Fo, centerShapeOnSlide as Fr, setMediaPartBytes as Fs, getPresentationText as Ft, setCommentText as Fu, duplicateSlide as G, clearSlideAnimations as Ga, setShapeHyperlink as Gc, setShapeStrokeDash as Gi, findLayoutsWithPlaceholderType as Gl, setShapeTextBodyRotationDeg as Gn, getHiddenSlides as Go, getShapeBounds as Gr, getTableCellAppearanceEffective as Gs, getSlidePartName as Gt, BUILTIN_PICTURE_STYLES as Gu, addSlide as H, setSlideBody as Ha, getParagraphPropertiesEffective as Hc, setShapeStrokeArrow as Hi, setSlideLayoutBackground as Hl, setShapeText3D as Hn, getAllTables as Ho, getPresetGeometry as Hr, getTableCell as Hs, getSlideInfo as Ht, savePresentation as Hu, resetSlideLayout as I, setParagraphTabs as Ia, getPresentationCreated as Ic, setShapePosition as Ii, setSlideBackgroundImageFillLayout as Il, getShapeTextMargins as In, findSlidesWithChartTrendlines as Io, findShapesAtPoint as Ir, slidesUsingMediaPart as Is, getPresentationTextLength as It, getPresentationFonts as Iu, mergePresentations as J, getSlideAnimations as Ja, findChartByKind as Jc, getShapeFill as Ji, findSlideLayoutByType as Jl, setShapeTextField as Jn, getPresentationNotesLengthsBySlide as Jo, getShapeCustomGeometry as Jr, getTableCellMargins as Js, getSlideXmlString as Jt, cm as Ju, duplicateSlideAt as K, findShapesWithAnimation as Ka, setShapeRunFormat as Kc, setShapeStrokeJoin as Ki, findSlideLayout as Kl, setShapeTextColumns as Kn, getPresentationHyperlinkCountsBySlide as Ko, getShapeBoundsResolved as Kr, getTableCellBorders as Ks, getSlideText as Kt, toWritableTextFormat as Ku, resetSlidePlaceholderGeometry as L, setParagraphTypography as La, getPresentationModified as Lc, setShapePreset as Li, setSlideBackgroundImageOpacity as Ll, getShapeTextWrap as Ln, getAllCharts as Lo, findShapesInRect as Lr, validatePresentation as Ls, getPresentationTextLengthsBySlide as Lt, getPresentationTheme as Lu, setShapeAspectRatioLocked as M, setParagraphIndent as Ma, removeThumbnail as Mc, setShapeImageFill as Mi, getSlideMasterShapes as Ml, getShapeTextBodyRotationDeg as Mn, clearAllSlideNotes as Mo, replaceTokensInSlide as Mr, getSlideMediaPartNames as Ms, getAllShapes as Mt, getSlideComments as Mu, setShapeLocked as N, setParagraphLevel as Na, setThumbnail as Nc, setShapeNoFill as Ni, setSlideBackground as Nl, getShapeTextColumns as Nn, clearSlideHyperlinks as No, setSlideLayout as Nr, listPackageParts as Ns, getOutlineText as Nt, removeSlideComment as Nu, setShapeTextLanguage as O, getShapeRunText as Oa, setTableStyleFlags as Oc, setShapeAdjustValues as Oi, getSlideMasterBackground as Ol, getShapeText3D as On, getSlideSize as Oo, getShapesBounds as Or, getMediaParts as Os, findSlideByText as Ot, getPresentationCommentCountsByAuthor as Ou, addMissingSlidePlaceholders as P, setParagraphLineSpacing as Pa, getCoreProperties as Pc, setShapeNoStroke as Pi, setSlideBackgroundGradientFill as Pl, getShapeTextDirection as Pn, findSlidesByHyperlink as Po, translateShapes as Pr, readPackagePart as Ps, getPresentationShapeCountsBySlide as Pt, setCommentStatus as Pu, sortSlides as Q, findShapesOutsideCanvas as Qa, getPresentationChartCountsBySlide as Qc, getShapeFillOpacity as Qi, getSlideLayoutType as Ql, setShapeTextWrap as Qn, getSlideNotesLineBreaks as Qo, getShapeKind as Qr, getTableCellSpan as Qs, isSlideHidden as Qt, pt as Qu, resetSlidePlaceholderTextFormatting as R, setShapeRunHyperlink as Ra, incrementRevision as Rc, setShapeRotation as Ri, setSlideBackgroundPatternFill as Rl, setShapeAlignment as Rn, getAllComments as Ro, getGroupChildren as Rr, clearTableCellFill as Rs, getShapeAt as Rt, setPresentationFonts as Ru, setShapePictureStyle as S, getShapeParagraphCount as Sa, setTableCellParagraphs as Sc, clearShapeFill as Si, getSlideLayoutBackground as Sl, setShapeZIndex as Sn, setShapeImageOpacity as So, findSlidePlaceholder as Sr, findShapesWithMedia as Ss, setSlideMasterName as St, getCommentParent as Su, setShapeStyle as T, getShapeRunCount as Ta, setTableCellTextFormat as Tc, getShapeStrokeArrow as Ti, getSlideLayoutBackgroundPatternFill as Tl, updateSlideAnimation as Tn, SLIDE_SIZE_16_9 as To, getShapeIndex as Tr, setShapeMediaPlayback as Ts, getSlideSections as Tt, getCommentStatus as Tu, addSlideAt as U, setSlidePlaceholders as Ua, getShapeHyperlink as Uc, setShapeStrokeCap as Ui, setSlideLayoutName as Ul, setShapeTextAnchor as Un, getDistinctHyperlinkUrls as Uo, getShapeAdjustValues as Ur, getTableCellAlignment as Us, getSlideLayoutCount as Ut, COMMENT_STATUSES as Uu, addSectionHeaderSlide as V, getSlideTitle as Va, touchModified as Vc, setShapeStroke as Vi, clearSlideLayoutBackground as Vl, setShapeText as Vn, getAllNotes as Vo, getMaxShapeIdInPresentation as Vr, getTableBackgroundEffective as Vs, getSlideIndex as Vt, loadPresentation as Vu, addTitleSlide as W, setSlideTitle as Wa, getShapeRunFormatEffective as Wc, setShapeStrokeCompound as Wi, setSlideLayoutPlaceholderBounds as Wl, setShapeTextAutoFit as Wn, getEmptySlides as Wo, getShapeAltTitle as Wr, getTableCellAnchor as Ws, getSlideOutline as Wt, BUILTIN_TABLE_STYLES as Wu, removeSlide as X, findFlippedShapes as Xa, findChartsWithDataLabels as Xc, getShapeFillColorResolved as Xi, getSlideLayoutPartName$1 as Xl, setShapeTextFormat as Xn, getSlideNotes as Xo, getShapeFlip as Xr, getTableCellPosition as Xs, getSlidesByLayout as Xt, inches as Xu, moveSlide as Y, setShapeAnimation as Ya, findChartsBySeriesName as Yc, getShapeFillColor as Yi, getSlideLayoutName as Yl, setShapeTextFlat as Yn, getPresentationNotesText as Yo, getShapeDescription as Yr, getTableCellParagraphs as Ys, getSlides as Yt, emu as Yu, reverseSlides as Z, findOverlappingShapePairs as Za, findChartsWithTrendlines as Zc, getShapeFillEffective as Zi, getSlideLayoutPlaceholders as Zl, setShapeTextMargins as Zn, getSlideNotesLength as Zo, getShapeId as Zr, getTableCellRunFormatEffective as Zs, isSlideBackgroundGraphicsHidden as Zt, mm as Zu, setSlideMasterBackgroundStyle as _, getParagraphIndent as _a, setTableCellAnchor as _c, setShapeAltTitle as _i, getSlideBackgroundImageFillLayout as _l, copyShape as _n, isShapeImageGrayscale as _o, findShapesByKind as _r, getSlideTransition as _s, removeSlideLayout as _t, findSlidesWithCommentsByAuthor as _u, getPresentationTextReview as a, getShapeStrokeGradient as aa, getTableRowHeights as ac, getShapeSize as ai, getSlideCharts as al, searchSlides as an, getShapeImageBrightness as ao, setShape3D as ar, getSlidesWithNotes as as, setHandoutSlidesPerPage as at, setShapeClickAction as au, getShapePictureStyle as b, getParagraphSpacing as ba, setTableCellFill as bc, setShapeHidden as bi, getSlideBackgroundPatternFill as bl, sendShapeBackward as bn, setShapeImageContrast as bo, findShapesByText as br, setSlideTransitionSound as bs, setSlideLayoutFootersIncluded as bt, getCommentDate as bu, getDrawingGuidesVisible as c, getShapeStrokeWidth as ca, getTableStyleId as cc, getSlideMasterPartName as ci, getEffectiveColorMap as cl, slideHasAnimations as cn, getShapeImageCrop as co, setShapeReflection as cr, getVisibleSlides as cs, getSlideShowProperties as ct, setShapeImage as cu, setDrawingGuides as d, resolveDrawingColorOpacity as da, isChartShape as dc, getUnusedSlideMasters as di, clearSlideBackground as dl, addSlideShape as dn, getShapeImageFormat as do, findEmptyPlaceholders as dr, replaceHyperlink as ds, addSlideLayoutPlaceholder as dt, clearSlideComments as du, getShapeStrokeCap as ea, getTableCellText3D as ec, getShapePlaceholderIdx as ei, getShapeChartCategories as el, replaceTextInNotes as en, findSlidesByLayoutPartName as eo, findShapesByEffect as er, getSlideNotesTextFormats as es, getHandoutMasterPlaceholders as et, getSlideLayoutUsageCountsByType as eu, setDrawingGuidesVisible as f, getParagraphAlignment as fa, isTableShape as fc, isShapeHidden as fi, copySlideBackground as fl, addSlideTable as fn, getShapeImageLinkUrl as fo, findShapeById as fr, resolveSlideNotesTextColor as fs, addSlideMaster as ft, findCommentAuthorByName as fu, getSlideMasterBackgroundStyles as g, getParagraphEndFormat as ga, setTableCellAlignment as gc, renameShape as gi, getSlideBackgroundImageCrop as gl, clearSlideShapes as gn, hasShapeText as go, findShapesByHyperlink as gr, clearSlideTransition as gs, isSlideMasterPreserved as gt, findCommentsByText as gu, setSnapToGrid as h, getParagraphBulletStyle as ha, removeTableRow as hc, pointInShape as hi, getSlideBackgroundImageBytes as hl, bringShapeToFront as hn, hasShapeImage as ho, findShapeInPresentation as hr, transformSlideNotesCase as hs, getSlideMasterPlaceholders as ht, findCommentsByAuthor as hu, setShapeImageFillLayout as i, getShapeStrokeEffective as ia, getTableDimensions as ic, getShapeRotation as ii, getShapeChartSpec as il, replaceTokensInPresentation as in, getShapeImageBiLevelThreshold as io, getShapeEffectsEffective as ir, getSlidesWithImages as is, setHandoutMasterPlaceholderIncluded as it, getShapeClickAction as iu, isShapeLocked as j, setParagraphBullet as ja, getThumbnail as jc, setShapeGradientFill as ji, getSlideMasterBackgroundPatternFill as jl, getShapeTextAutoFitParams as jn, clearAllHyperlinks as jo, getSlidesWithEmptyPlaceholders as jr, getPresentationSummary as js, findSlidesByText as jt, getSlideCommentAuthors as ju, setShapeCustomGeometry as k, isParagraphBulletPicture as ka, setTableStyleId as kc, setShapeFill as ki, getSlideMasterBackgroundGradientFill as kl, getShapeTextAnchor as kn, setSlideSize as ko, getSlideLayout as kr, getOrphanMediaPartNames as ks, findSlideByTitle as kt, getPresentationCommentCountsBySlide as ku, getGridSpacing as l, getShapeRunFormat as la, insertTableColumn as lc, getSlideMasterPartNames as li, resolveDeckBodyTextColor as ll, addSlideImage as ln, getShapeImageDuotone as lo, setShapeShadow as lr, hasSlideNotes as ls, setSlideShowProperties as lt, addSlideComment as lu, setSlideOutlineCollapsed as m, getParagraphBulletImageBytes as ma, removeTableColumn as mc, isShapeTextBox as mi, getSlideBackgroundGradientFill as ml, bringShapeForward as mn, getShapeImagePartName as mo, findShapeByText as mr, setSlideNotesFormat as ms, getSlideMasterName as mt, findCommentsBefore as mu, getShapeImageFillLayout as n, getShapeStrokeColorResolved as na, getTableCells as nc, getShapePosition as ni, getShapeChartSeriesNames as nl, replaceTextInSlide as nn, getPresentationImageCountsBySlide as no, getShapeEffect as nr, getSlidesWithComments as ns, getNotesMasterPlaceholders as nt, getUnusedSlideLayouts as nu, getCollapsedOutlineSlides as o, getShapeStrokeJoin as oa, getTableSize as oc, getShapeText as oi, setChartData as ol, setSlideBackgroundGraphicsHidden as on, getShapeImageBytes as oo, setShapeGlow as or, getSlidesWithOverlap as os, setNotesMasterPlaceholderIncluded as ot, getCustomShows as ou, setGridSpacing as p, getParagraphBullet as pa, mergeTableCells as pc, isShapePlaceholder as pi, getSlideBackground as pl, addSlideTextBox as pn, getShapeImageOpacity as po, findShapeByName as pr, setSlideNotes as ps, getSlideMasterLayouts as pt, findCommentsAfter as pu, importSlide as q, getShapeAnimation as qa, addSlideChart as qc, setShapeStrokeSketch as qi, findSlideLayoutByPartName as ql, setShapeTextDirection as qn, getPresentationNotesLength as qo, getShapeCenter as qr, getTableCellFill as qs, getSlideTextLength as qt, asColor as qu, getShapeImageIntrinsicSize as r, getShapeStrokeCompound as ra, getTableColumnWidths as rc, getShapePreset as ri, getShapeChartSeriesValues as rl, replaceTextInSlideNotes as rn, getShapeImageArtisticEffect as ro, getShapeEffects as rr, getSlidesWithHyperlinks as rs, getNotesPageSize as rt, isChartSpec as ru, getDrawingGuides as s, getShapeStrokeOpacity as sa, getTableStyleFlags as sc, getSlideMasterCount as si, setChartSpec as sl, setSlideHidden as sn, getShapeImageContrast as so, setShapeInnerShadow as sr, getSlidesWithTables as ss, setNotesPageOrientation as st, setCustomShows as su, VERSION as t, getShapeStrokeColor as ta, getTableCellTextDirection as tc, getShapePlaceholderType as ti, getShapeChartKind as tl, replaceTextInPresentation as tn, findSlidesByLayoutType as to, getShape3D as tr, getSlidesWithCharts as ts, getHandoutSlidesPerPage as tt, getSlideLayouts as tu, getSnapToGrid as u, resolveDrawingColor as ua, insertTableRow as uc, getSlideMasterUsageCounts as ui, applySlideBackgroundToAll as ul, addSlideLine as un, getShapeImageFillBytes as uo, setShapeSoftEdge as ur, removeSlideNotes as us, addSlideLayout as ut, clearAllSlideComments as uu, resetShapeVideoFormatting as v, getParagraphLevel as va, setTableCellBorders as vc, setShapeBounds as vi, getSlideBackgroundImageIntrinsicSize as vl, getShapeZIndex as vn, resetShapeImageColorEffects as vo, findShapesByName as vr, getSlideTransitionSound as vs, removeSlideMaster as vt, getCommentAuthor as vu, ungroupShapes as w, getShapeRunClickAction as wa, setTableCellTextDirection as wc, getShapePatternFill as wi, getSlideLayoutBackgroundImageBytes as wl, removeSlideAnimation as wn, SLIDE_SIZE_16_10 as wo, findSlidePlaceholders as wr, getShapeMediaPlayback as ws, setSlideMasterPreserved as wt, getCommentSlide as wu, setShapeImageCompressionState as x, getShapeHyperlinkTooltip as xa, setTableCellMargins as xc, shapesOverlap as xi, getSlideColorMapOverride as xl, sendShapeToBack as xn, setShapeImageCrop as xo, findShapesWithHyperlinks as xr, addSlideMedia as xs, setSlideLayoutTitleIncluded as xt, getCommentFormat as xu, getShapeImageCompressionState as y, getParagraphLineSpacing as ya, setTableCellClickAction as yc, setShapeDescription as yi, getSlideBackgroundImageOpacity as yl, removeShape as yn, setShapeImageBrightness as yo, findShapesByPreset as yr, setSlideTransition as ys, setSlideLayoutBackgroundGraphicsHidden as yt, getCommentAuthors as yu, addBlankSlide as z, setShapeRunText as za, setCoreProperties as zc, setShapeSize as zi, getShapeGradientFill as zl, setShapeBulletStyle as zn, getAllHyperlinks as zo, getGroupTransform as zr, getPresentationTableCountsBySlide as zs, getSlideAt as zt, setPresentationTheme as zu };
56740
56793
 
56741
- //# sourceMappingURL=api-5A_ykU4f.js.map
56794
+ //# sourceMappingURL=api-B5-Bdn3_.js.map