pptx-vue-viewer 4.43.0 → 4.45.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 (66) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/{AiChatPanel-BQngAoiz.js → AiChatPanel-BVnemARt.js} +2 -2
  3. package/dist/AiChatPanel-BVnemARt.js.br +0 -0
  4. package/dist/AiChatPanel-BVnemARt.js.gz +0 -0
  5. package/dist/{AiChatPanel-x_V9Af1e.cjs → AiChatPanel-Xiq2AsYX.cjs} +1 -1
  6. package/dist/AiChatPanel-Xiq2AsYX.cjs.br +0 -0
  7. package/dist/AiChatPanel-Xiq2AsYX.cjs.gz +0 -0
  8. package/dist/index.cjs +1 -1
  9. package/dist/index.cjs.br +0 -0
  10. package/dist/index.cjs.gz +0 -0
  11. package/dist/index.d.ts +16 -2
  12. package/dist/index.js +2 -2
  13. package/dist/index.js.br +0 -0
  14. package/dist/index.js.gz +0 -0
  15. package/dist/internals.cjs +1 -1
  16. package/dist/internals.cjs.br +0 -0
  17. package/dist/internals.cjs.gz +0 -0
  18. package/dist/internals.d.ts +6 -2
  19. package/dist/internals.js +1 -1
  20. package/dist/internals.js.br +0 -0
  21. package/dist/internals.js.gz +0 -0
  22. package/dist/pptx-vue-viewer.css +15 -15
  23. package/dist/pptx-vue-viewer.css.br +0 -0
  24. package/dist/pptx-vue-viewer.css.gz +0 -0
  25. package/dist/{useViewerSettingsDialog-B785wW8S.cjs → useViewerSettingsDialog-D6InSTG6.cjs} +458 -432
  26. package/dist/useViewerSettingsDialog-D6InSTG6.cjs.br +0 -0
  27. package/dist/useViewerSettingsDialog-D6InSTG6.cjs.gz +0 -0
  28. package/dist/{useViewerSettingsDialog-CJcp6Muj.js → useViewerSettingsDialog-DPG5VDMB.js} +2590 -2564
  29. package/dist/useViewerSettingsDialog-DPG5VDMB.js.br +0 -0
  30. package/dist/useViewerSettingsDialog-DPG5VDMB.js.gz +0 -0
  31. package/dist/viewer/index.cjs +1 -1
  32. package/dist/viewer/index.cjs.br +0 -0
  33. package/dist/viewer/index.cjs.gz +0 -0
  34. package/dist/viewer/index.d.ts +16 -2
  35. package/dist/viewer/index.js +2 -2
  36. package/dist/viewer/index.js.br +0 -0
  37. package/dist/viewer/index.js.gz +0 -0
  38. package/dist/{viewer-CFfHWjKk.js → viewer-CWgTBLKM.js} +6754 -6714
  39. package/dist/viewer-CWgTBLKM.js.br +0 -0
  40. package/dist/viewer-CWgTBLKM.js.gz +0 -0
  41. package/dist/{viewer-qHZWMUj7.cjs → viewer-v6sw9LNJ.cjs} +2842 -2802
  42. package/dist/viewer-v6sw9LNJ.cjs.br +0 -0
  43. package/dist/viewer-v6sw9LNJ.cjs.gz +0 -0
  44. package/dist/{y-webrtc-IBYiLa3c.cjs → y-webrtc-Cb8v01f2.cjs} +1 -1
  45. package/dist/y-webrtc-Cb8v01f2.cjs.br +0 -0
  46. package/dist/y-webrtc-Cb8v01f2.cjs.gz +0 -0
  47. package/dist/{y-webrtc-DXjQY8Jq.js → y-webrtc-DDtmS1y0.js} +1 -1
  48. package/dist/y-webrtc-DDtmS1y0.js.br +0 -0
  49. package/dist/y-webrtc-DDtmS1y0.js.gz +0 -0
  50. package/package.json +3 -3
  51. package/dist/AiChatPanel-BQngAoiz.js.br +0 -0
  52. package/dist/AiChatPanel-BQngAoiz.js.gz +0 -0
  53. package/dist/AiChatPanel-x_V9Af1e.cjs.br +0 -0
  54. package/dist/AiChatPanel-x_V9Af1e.cjs.gz +0 -0
  55. package/dist/useViewerSettingsDialog-B785wW8S.cjs.br +0 -0
  56. package/dist/useViewerSettingsDialog-B785wW8S.cjs.gz +0 -0
  57. package/dist/useViewerSettingsDialog-CJcp6Muj.js.br +0 -0
  58. package/dist/useViewerSettingsDialog-CJcp6Muj.js.gz +0 -0
  59. package/dist/viewer-CFfHWjKk.js.br +0 -0
  60. package/dist/viewer-CFfHWjKk.js.gz +0 -0
  61. package/dist/viewer-qHZWMUj7.cjs.br +0 -0
  62. package/dist/viewer-qHZWMUj7.cjs.gz +0 -0
  63. package/dist/y-webrtc-DXjQY8Jq.js.br +0 -0
  64. package/dist/y-webrtc-DXjQY8Jq.js.gz +0 -0
  65. package/dist/y-webrtc-IBYiLa3c.cjs.br +0 -0
  66. package/dist/y-webrtc-IBYiLa3c.cjs.gz +0 -0
@@ -17,8 +17,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
17
17
  }), n));
18
18
  let u = require("ooxml-ui/pptx"), d = require("vue"), p = require("ooxml-ui/pptx/i18n"), m = require("fast-xml-parser"), v = require("jszip");
19
19
  v = c(v, 1);
20
- var f, h, g, y = i({});
21
- f = y, h = require("ooxml-core/pptx"), s(f, h, "default"), g && s(g, h, "default");
20
+ var f, g, h, y = i({});
21
+ f = y, g = require("ooxml-core/pptx"), s(f, g, "default"), h && s(h, g, "default");
22
22
  var k, x, b = "undefined" != typeof window;
23
23
  if ("production" !== process.env.NODE_ENV) {
24
24
  const e = b && window.performance;
@@ -138,15 +138,15 @@ function fe(e, t) {
138
138
  });
139
139
  }
140
140
  }
141
- function he(e, t, n) {
141
+ function ge(e, t, n) {
142
142
  const o = {
143
143
  start: e,
144
144
  end: t
145
145
  };
146
146
  return null != n && (o.source = n), o;
147
147
  }
148
- var ge = 1, ye = 2, ke = 3, xe = 4, be = 5, Se = 6, we = 7, Ee = 8, Be = 9, Ce = 10, Ie = 11, Pe = 12, Te = 13, _e = 14, Oe = 15, De = 16, Ne = {
149
- [ge]: "Expected token: '{0}'",
148
+ var he = 1, ye = 2, ke = 3, xe = 4, be = 5, Se = 6, we = 7, Ee = 8, Be = 9, Ce = 10, Ie = 11, Pe = 12, Te = 13, _e = 14, Oe = 15, De = 16, Ne = {
149
+ [he]: "Expected token: '{0}'",
150
150
  [ye]: "Invalid token in placeholder: '{0}'",
151
151
  [ke]: "Unterminated single quote in placeholder",
152
152
  [xe]: "Unknown escape sequence: \\{0}",
@@ -228,7 +228,7 @@ function We(e, t = {}) {
228
228
  function d(e, t, o, ...l) {
229
229
  const a = c();
230
230
  if (t.column += o, t.offset += o, u) {
231
- const o = Le(e, n ? he(a.startLoc, t) : null, {
231
+ const o = Le(e, n ? ge(a.startLoc, t) : null, {
232
232
  domain: "tokenizer",
233
233
  args: l
234
234
  });
@@ -238,22 +238,22 @@ function We(e, t = {}) {
238
238
  function p(e, t, o) {
239
239
  e.endLoc = a(), e.currentType = t;
240
240
  const l = { type: t };
241
- return n && (l.loc = he(e.startLoc, e.endLoc)), null != o && (l.value = o), l;
241
+ return n && (l.loc = ge(e.startLoc, e.endLoc)), null != o && (l.value = o), l;
242
242
  }
243
243
  const m = (e) => p(e, 13);
244
244
  function v(e, t) {
245
- return e.currentChar() === t ? (e.next(), t) : (d(ge, a(), 0, t), "");
245
+ return e.currentChar() === t ? (e.next(), t) : (d(he, a(), 0, t), "");
246
246
  }
247
247
  function f(e) {
248
248
  let t = "";
249
249
  for (; e.currentPeek() === Me || e.currentPeek() === ze;) t += e.currentPeek(), e.peek();
250
250
  return t;
251
251
  }
252
- function h(e) {
252
+ function g(e) {
253
253
  const t = f(e);
254
254
  return e.skipToPeek(), t;
255
255
  }
256
- function g(e) {
256
+ function h(e) {
257
257
  if (e === $e) return !1;
258
258
  const t = e.charCodeAt(0);
259
259
  return t >= 97 && t <= 122 || t >= 65 && t <= 90 || 95 === t;
@@ -348,21 +348,21 @@ function We(e, t = {}) {
348
348
  return "{" !== e && "}" !== e && e !== Me && e !== ze;
349
349
  }
350
350
  function A(e) {
351
- h(e);
351
+ g(e);
352
352
  let t = "", n = "";
353
353
  for (; t = b(e, L);) n += t;
354
354
  return n;
355
355
  }
356
356
  function F(e) {
357
- h(e);
357
+ g(e);
358
358
  const t = v(e, "|");
359
- return h(e), t;
359
+ return g(e), t;
360
360
  }
361
361
  function M(e, t) {
362
362
  let n = null;
363
363
  switch (e.currentChar()) {
364
- case "{": return t.braceNest >= 1 && d(Be, a(), 0), e.next(), n = p(t, 2, "{"), h(e), t.braceNest++, n;
365
- case "}": return t.braceNest > 0 && 2 === t.currentType && d(Ee, a(), 0), e.next(), n = p(t, 3, "}"), t.braceNest--, t.braceNest > 0 && h(e), t.inLinked && 0 === t.braceNest && (t.inLinked = !1), n;
364
+ case "{": return t.braceNest >= 1 && d(Be, a(), 0), e.next(), n = p(t, 2, "{"), g(e), t.braceNest++, n;
365
+ case "}": return t.braceNest > 0 && 2 === t.currentType && d(Ee, a(), 0), e.next(), n = p(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && 0 === t.braceNest && (t.inLinked = !1), n;
366
366
  case "@": return t.braceNest > 0 && d(we, a(), 0), n = z(e, t) || m(t), t.braceNest = 0, n;
367
367
  default: {
368
368
  let o = !0, l = !0, r = !0;
@@ -372,10 +372,10 @@ function We(e, t = {}) {
372
372
  const { currentType: n } = t;
373
373
  if (2 !== n) return !1;
374
374
  f(e);
375
- const o = g(e.currentPeek());
375
+ const o = h(e.currentPeek());
376
376
  return e.resetPeek(), o;
377
377
  }(e, t)) return n = p(t, 4, function(e) {
378
- h(e);
378
+ g(e);
379
379
  let t = "", n = "";
380
380
  for (; t = B(e);) n += t;
381
381
  const o = e.currentChar();
@@ -384,12 +384,12 @@ function We(e, t = {}) {
384
384
  return d(ye, a(), 0, n + t), n + t;
385
385
  }
386
386
  return e.currentChar() === $e && d(we, a(), 0), n;
387
- }(e)), h(e), n;
387
+ }(e)), g(e), n;
388
388
  if (l = y(e, t)) return n = p(t, 5, function(e) {
389
- h(e);
389
+ g(e);
390
390
  let t = "";
391
391
  return "-" === e.currentChar() ? (e.next(), t += `-${_(e)}`) : t += _(e), e.currentChar() === $e && d(we, a(), 0), t;
392
- }(e)), h(e), n;
392
+ }(e)), g(e), n;
393
393
  if (r = function(e, t) {
394
394
  const { currentType: n } = t;
395
395
  if (2 !== n) return !1;
@@ -397,13 +397,13 @@ function We(e, t = {}) {
397
397
  const o = "'" === e.currentPeek();
398
398
  return e.resetPeek(), o;
399
399
  }(e, t)) return n = p(t, 6, function(e) {
400
- h(e), v(e, "'");
400
+ g(e), v(e, "'");
401
401
  let t = "", n = "";
402
402
  for (; t = b(e, O);) n += "\\" === t ? D(e) : t;
403
403
  const o = e.currentChar();
404
404
  return o === ze || o === $e ? (d(ke, a(), 0), o === ze && (e.next(), v(e, "'")), n) : (v(e, "'"), n);
405
- }(e)), h(e), n;
406
- if (!o && !l && !r) return n = p(t, 12, A(e)), d(ye, a(), 0, n.value), h(e), n;
405
+ }(e)), g(e), n;
406
+ if (!o && !l && !r) return n = p(t, 12, A(e)), d(ye, a(), 0, n.value), g(e), n;
407
407
  break;
408
408
  }
409
409
  }
@@ -415,8 +415,8 @@ function We(e, t = {}) {
415
415
  const l = e.currentChar();
416
416
  switch (7 !== n && 8 !== n && 11 !== n && 9 !== n || l !== ze && l !== Me || d(Ce, a(), 0), l) {
417
417
  case "@": return e.next(), o = p(t, 7, "@"), t.inLinked = !0, o;
418
- case ".": return h(e), e.next(), p(t, 8, ".");
419
- case ":": return h(e), e.next(), p(t, 9, ":");
418
+ case ".": return g(e), e.next(), p(t, 8, ".");
419
+ case ":": return g(e), e.next(), p(t, 9, ":");
420
420
  default: return k(e) ? (o = p(t, 1, F(e)), t.braceNest = 0, t.inLinked = !1, o) : function(e, t) {
421
421
  const { currentType: n } = t;
422
422
  if (7 !== n) return !1;
@@ -429,13 +429,13 @@ function We(e, t = {}) {
429
429
  f(e);
430
430
  const o = ":" === e.currentPeek();
431
431
  return e.resetPeek(), o;
432
- }(e, t) ? (h(e), z(e, t)) : function(e, t) {
432
+ }(e, t) ? (g(e), z(e, t)) : function(e, t) {
433
433
  const { currentType: n } = t;
434
434
  if (8 !== n) return !1;
435
435
  f(e);
436
- const o = g(e.currentPeek());
436
+ const o = h(e.currentPeek());
437
437
  return e.resetPeek(), o;
438
- }(e, t) ? (h(e), p(t, 11, function(e) {
438
+ }(e, t) ? (g(e), p(t, 11, function(e) {
439
439
  let t = "", n = "";
440
440
  for (; t = w(e);) n += t;
441
441
  return n;
@@ -444,10 +444,10 @@ function We(e, t = {}) {
444
444
  if (9 !== n) return !1;
445
445
  const o = () => {
446
446
  const t = e.currentPeek();
447
- return "{" === t ? g(e.peek()) : !("@" === t || "|" === t || ":" === t || "." === t || t === Me || !t) && (t === ze ? (e.peek(), o()) : x(e, !1));
447
+ return "{" === t ? h(e.peek()) : !("@" === t || "|" === t || ":" === t || "." === t || t === Me || !t) && (t === ze ? (e.peek(), o()) : x(e, !1));
448
448
  }, l = o();
449
449
  return e.resetPeek(), l;
450
- }(e, t) ? (h(e), "{" === l ? M(e, t) || o : p(t, 10, function(e) {
450
+ }(e, t) ? (g(e), "{" === l ? M(e, t) || o : p(t, 10, function(e) {
451
451
  const t = (n) => {
452
452
  const o = e.currentChar();
453
453
  return "{" !== o && "@" !== o && "|" !== o && "(" !== o && ")" !== o && o ? o === Me ? n : (n += o, e.next(), t(n)) : n;
@@ -517,7 +517,7 @@ function Ye(e = {}) {
517
517
  function o(e, o, l, a, ...r) {
518
518
  const i = e.currentPosition();
519
519
  if (i.offset += a, i.column += a, n) {
520
- const e = Le(o, t ? he(l, i) : null, {
520
+ const e = Le(o, t ? ge(l, i) : null, {
521
521
  domain: "parser",
522
522
  args: r
523
523
  });
@@ -875,7 +875,7 @@ var ut = ["v", "value"];
875
875
  function dt(e, t) {
876
876
  const n = vt(e, ut);
877
877
  if (null != n) return n;
878
- throw ht(t);
878
+ throw gt(t);
879
879
  }
880
880
  var pt = ["m", "modifier"];
881
881
  var mt = ["k", "key"];
@@ -896,14 +896,14 @@ var ft = [
896
896
  ...ut,
897
897
  ...st
898
898
  ];
899
- function ht(e) {
899
+ function gt(e) {
900
900
  return /* @__PURE__ */ new Error(`unhandled node type: ${e}`);
901
901
  }
902
- function gt(e) {
902
+ function ht(e) {
903
903
  return (t) => function(e, t) {
904
904
  const n = (o = t, vt(o, lt));
905
905
  var o;
906
- if (null == n) throw ht(0);
906
+ if (null == n) throw gt(0);
907
907
  if (1 === ct(n)) {
908
908
  const t = function(e) {
909
909
  return vt(e, at, []);
@@ -936,13 +936,13 @@ function kt(e, t) {
936
936
  const o = t;
937
937
  if (M(o, "k") && o.k) return e.interpolate(e.named(o.k));
938
938
  if (M(o, "key") && o.key) return e.interpolate(e.named(o.key));
939
- throw ht(n);
939
+ throw gt(n);
940
940
  }
941
941
  case 5: {
942
942
  const o = t;
943
943
  if (M(o, "i") && C(o.i)) return e.interpolate(e.list(o.i));
944
944
  if (M(o, "index") && C(o.index)) return e.interpolate(e.list(o.index));
945
- throw ht(n);
945
+ throw gt(n);
946
946
  }
947
947
  case 6: {
948
948
  const n = t, o = function(e) {
@@ -950,7 +950,7 @@ function kt(e, t) {
950
950
  }(n), l = function(e) {
951
951
  const t = vt(e, mt);
952
952
  if (t) return t;
953
- throw ht(6);
953
+ throw gt(6);
954
954
  }(n);
955
955
  return e.linked(kt(e, l), o ? kt(e, o) : void 0, e.type);
956
956
  }
@@ -1116,12 +1116,12 @@ var dn = null, pn = (e) => {
1116
1116
  }, mn = null, vn = (e) => {
1117
1117
  mn = e;
1118
1118
  }, fn = 0;
1119
- function hn(e = {}) {
1120
- const t = j(e.onWarn) ? e.onWarn : q, n = $(e.version) ? e.version : "11.4.16", o = $(e.locale) || j(e.locale) ? e.locale : cn, l = j(o) ? cn : o, a = V(e.fallbackLocale) || K(e.fallbackLocale) || $(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : l, r = K(e.messages) ? e.messages : gn(l), i = K(e.datetimeFormats) ? e.datetimeFormats : gn(l), s = K(e.numberFormats) ? e.numberFormats : gn(l), c = D(L(), e.modifiers, {
1119
+ function gn(e = {}) {
1120
+ const t = j(e.onWarn) ? e.onWarn : q, n = $(e.version) ? e.version : "11.4.16", o = $(e.locale) || j(e.locale) ? e.locale : cn, l = j(o) ? cn : o, a = V(e.fallbackLocale) || K(e.fallbackLocale) || $(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : l, r = K(e.messages) ? e.messages : hn(l), i = K(e.datetimeFormats) ? e.datetimeFormats : hn(l), s = K(e.numberFormats) ? e.numberFormats : hn(l), c = D(L(), e.modifiers, {
1121
1121
  upper: (e, t) => "text" === t && $(e) ? e.toUpperCase() : "vnode" === t && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1122
1122
  lower: (e, t) => "text" === t && $(e) ? e.toLowerCase() : "vnode" === t && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1123
1123
  capitalize: (e, t) => "text" === t && $(e) ? un(e) : "vnode" === t && U(e) && "__v_isVNode" in e ? un(e.children) : e
1124
- }), u = e.pluralRules || L(), d = j(e.missing) ? e.missing : null, p = !W(e.missingWarn) && !_(e.missingWarn) || e.missingWarn, m = !W(e.fallbackWarn) && !_(e.fallbackWarn) || e.fallbackWarn, v = !!e.fallbackFormat, f = !!e.unresolving, h = j(e.postTranslation) ? e.postTranslation : null, g = K(e.processor) ? e.processor : null, y = !W(e.warnHtmlMessage) || e.warnHtmlMessage, k = !!e.escapeParameter, x = j(e.messageCompiler) ? e.messageCompiler : an;
1124
+ }), u = e.pluralRules || L(), d = j(e.missing) ? e.missing : null, p = !W(e.missingWarn) && !_(e.missingWarn) || e.missingWarn, m = !W(e.fallbackWarn) && !_(e.fallbackWarn) || e.fallbackWarn, v = !!e.fallbackFormat, f = !!e.unresolving, g = j(e.postTranslation) ? e.postTranslation : null, h = K(e.processor) ? e.processor : null, y = !W(e.warnHtmlMessage) || e.warnHtmlMessage, k = !!e.escapeParameter, x = j(e.messageCompiler) ? e.messageCompiler : an;
1125
1125
  "production" !== process.env.NODE_ENV && j(e.messageCompiler) && Z(ln(en));
1126
1126
  const b = j(e.messageResolver) ? e.messageResolver : rn || Kt, S = j(e.localeFallbacker) ? e.localeFallbacker : sn || zt, w = U(e.fallbackContext) ? e.fallbackContext : void 0, E = e, B = U(E.__datetimeFormatters) ? E.__datetimeFormatters : /* @__PURE__ */ new Map(), C = U(E.__numberFormatters) ? E.__numberFormatters : /* @__PURE__ */ new Map(), I = U(E.__meta) ? E.__meta : {}, P = {
1127
1127
  version: n,
@@ -1136,8 +1136,8 @@ function hn(e = {}) {
1136
1136
  fallbackWarn: m,
1137
1137
  fallbackFormat: v,
1138
1138
  unresolving: f,
1139
- postTranslation: h,
1140
- processor: g,
1139
+ postTranslation: g,
1140
+ processor: h,
1141
1141
  warnHtmlMessage: y,
1142
1142
  escapeParameter: k,
1143
1143
  messageCompiler: x,
@@ -1156,7 +1156,7 @@ function hn(e = {}) {
1156
1156
  });
1157
1157
  }(P, n, I), P;
1158
1158
  }
1159
- var gn = (e) => ({ [e]: L() });
1159
+ var hn = (e) => ({ [e]: L() });
1160
1160
  function yn(e, t) {
1161
1161
  return e instanceof RegExp ? e.test(t) : e;
1162
1162
  }
@@ -1252,9 +1252,9 @@ function Dn(e, ...t) {
1252
1252
  }
1253
1253
  const v = Bn(e, r, m, n, u, d, "datetime format");
1254
1254
  if (!$(v)) return o ? -1 : r;
1255
- const f = n[v][r], h = Cn(v, r, c);
1256
- let g = a.get(h);
1257
- return g || (g = new Intl.DateTimeFormat(v, D({}, f, c)), a.set(h, g)), p ? g.formatToParts(i) : g.format(i);
1255
+ const f = n[v][r], g = Cn(v, r, c);
1256
+ let h = a.get(g);
1257
+ return h || (h = new Intl.DateTimeFormat(v, D({}, f, c)), a.set(g, h)), p ? h.formatToParts(i) : h.format(i);
1258
1258
  }
1259
1259
  var Nn = [
1260
1260
  "localeMatcher",
@@ -1320,9 +1320,9 @@ function Fn(e, ...t) {
1320
1320
  }
1321
1321
  const v = Bn(e, r, m, n, u, d, "number format");
1322
1322
  if (!$(v)) return o ? -1 : r;
1323
- const f = n[v][r], h = Cn(v, r, c);
1324
- let g = a.get(h);
1325
- return g || (g = new Intl.NumberFormat(v, D({}, f, c)), a.set(h, g)), p ? g.formatToParts(i) : g.format(i);
1323
+ const f = n[v][r], g = Cn(v, r, c);
1324
+ let h = a.get(g);
1325
+ return h || (h = new Intl.NumberFormat(v, D({}, f, c)), a.set(g, h)), p ? h.formatToParts(i) : h.format(i);
1326
1326
  }
1327
1327
  var Mn = [
1328
1328
  "localeMatcher",
@@ -1402,7 +1402,7 @@ function Hn(e = {}) {
1402
1402
  }
1403
1403
  var Gn = () => "", Kn = (e) => j(e), Yn = (e) => $(e) || ot(e) || Kn(e);
1404
1404
  function qn(e, ...t) {
1405
- const { fallbackFormat: n, postTranslation: o, unresolving: l, messageCompiler: a, fallbackLocale: r, messages: i } = e, [s, c] = Jn(...t), u = W(c.missingWarn) ? c.missingWarn : e.missingWarn, d = W(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = W(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, m = !!c.resolvedMessage, v = $(c.default) || W(c.default) ? W(c.default) ? a ? s : () => s : c.default : n ? a ? s : () => s : null, f = n || null != v && ($(v) || j(v)), h = Ft(e, c);
1405
+ const { fallbackFormat: n, postTranslation: o, unresolving: l, messageCompiler: a, fallbackLocale: r, messages: i } = e, [s, c] = Jn(...t), u = W(c.missingWarn) ? c.missingWarn : e.missingWarn, d = W(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = W(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, m = !!c.resolvedMessage, v = $(c.default) || W(c.default) ? W(c.default) ? a ? s : () => s : c.default : n ? a ? s : () => s : null, f = n || null != v && ($(v) || j(v)), g = Ft(e, c);
1406
1406
  p && function(e) {
1407
1407
  V(e.list) && (e.list = e.list.map((e) => $(e) ? J(e) : e));
1408
1408
  if (U(e.named)) {
@@ -1414,11 +1414,11 @@ function qn(e, ...t) {
1414
1414
  e.named = n;
1415
1415
  }
1416
1416
  }(c);
1417
- let [g, y, S] = m ? [
1417
+ let [h, y, S] = m ? [
1418
1418
  s,
1419
- h,
1420
- z(i, h) || L()
1421
- ] : Xn(e, s, h, r, d, u), w = g, E = s;
1419
+ g,
1420
+ z(i, g) || L()
1421
+ ] : Xn(e, s, g, r, d, u), w = h, E = s;
1422
1422
  if (m || Yn(w) || f && (w = v, E = w), !(m || Yn(w) && $(y))) return l ? -1 : s;
1423
1423
  "production" !== process.env.NODE_ENV && $(w) && null == e.messageCompiler && q("The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function returns the message as is.");
1424
1424
  let B = !1;
@@ -1485,7 +1485,7 @@ function qn(e, ...t) {
1485
1485
  function Xn(e, t, n, o, l, a) {
1486
1486
  const { messages: r, onWarn: i, messageResolver: s, localeFallbacker: c } = e, u = c(e, o, n);
1487
1487
  let d, p = L(), m = null, v = n, f = null;
1488
- const h = "translate";
1488
+ const g = "translate";
1489
1489
  for (let o = 0; o < u.length; o++) {
1490
1490
  d = f = u[o], "production" !== process.env.NODE_ENV && n !== d && !wn(n, d) && yn(l, t) && i(ln(qt, {
1491
1491
  key: t,
@@ -1493,26 +1493,26 @@ function Xn(e, t, n, o, l, a) {
1493
1493
  }));
1494
1494
  const c = "production" !== process.env.NODE_ENV ? e.__v_emitter : void 0;
1495
1495
  "production" !== process.env.NODE_ENV && n !== d && c && c.emit("fallback", {
1496
- type: h,
1496
+ type: g,
1497
1497
  key: t,
1498
1498
  from: v,
1499
1499
  to: f,
1500
- groupId: I(h, t)
1500
+ groupId: I(g, t)
1501
1501
  }), p = z(r, d) || L();
1502
- let g, y, S = null;
1503
- if ("production" !== process.env.NODE_ENV && b && c && (S = window.performance.now(), g = "intlify-message-resolve-start", y = "intlify-message-resolve-end", k && k(g)), null === (m = s(p, t)) && (m = z(p, t)), "production" !== process.env.NODE_ENV && b && c) {
1502
+ let h, y, S = null;
1503
+ if ("production" !== process.env.NODE_ENV && b && c && (S = window.performance.now(), h = "intlify-message-resolve-start", y = "intlify-message-resolve-end", k && k(h)), null === (m = s(p, t)) && (m = z(p, t)), "production" !== process.env.NODE_ENV && b && c) {
1504
1504
  const e = window.performance.now();
1505
1505
  c && S && m && c.emit("message-resolve", {
1506
1506
  type: "message-resolve",
1507
1507
  key: t,
1508
1508
  message: m,
1509
1509
  time: e - S,
1510
- groupId: I(h, t)
1511
- }), g && y && k && x && (k(y), x("intlify message resolve", g, y));
1510
+ groupId: I(g, t)
1511
+ }), h && y && k && x && (k(y), x("intlify message resolve", h, y));
1512
1512
  }
1513
1513
  if (Yn(m)) break;
1514
1514
  if (!En(d, u)) {
1515
- const n = xn(e, t, d, a, h);
1515
+ const n = xn(e, t, d, a, g);
1516
1516
  n !== t && (m = n);
1517
1517
  }
1518
1518
  v = f;
@@ -1627,7 +1627,7 @@ var po = {
1627
1627
  [ro]: "Need to install with `provide` function",
1628
1628
  [so]: "Not compatible legacy VueI18n.",
1629
1629
  [co]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
1630
- }, mo = E("__translateVNode"), vo = E("__datetimeParts"), fo = E("__numberParts"), ho = E("__enableEmitter"), go = E("__disableEmitter"), yo = E("__setPluralRules");
1630
+ }, mo = E("__translateVNode"), vo = E("__datetimeParts"), fo = E("__numberParts"), go = E("__enableEmitter"), ho = E("__disableEmitter"), yo = E("__setPluralRules");
1631
1631
  E("__intlifyMeta");
1632
1632
  var ko = E("__injectWithOption"), xo = E("__dispose"), bo = 10, So = 11, wo = 12, Eo = 13, Bo = 14, Co = 15, Io = 16, Po = {
1633
1633
  [bo]: "Fall back to {type} '{key}' with root locale.",
@@ -1727,7 +1727,7 @@ function Wo(e = {}) {
1727
1727
  const { __root: t, __injectWithOption: n } = e, o = void 0 === t, l = e.flatJson, a = b ? d.ref : d.shallowRef;
1728
1728
  let r = !W(e.inheritLocale) || e.inheritLocale;
1729
1729
  const i = a(t && r ? t.locale.value : $(e.locale) ? e.locale : cn), s = a(t && r ? t.fallbackLocale.value : $(e.fallbackLocale) || V(e.fallbackLocale) || K(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : i.value), c = a(No(i.value, e)), u = a(K(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), p = a(K(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
1730
- let m = t ? t.missingWarn : !W(e.missingWarn) && !_(e.missingWarn) || e.missingWarn, v = t ? t.fallbackWarn : !W(e.fallbackWarn) && !_(e.fallbackWarn) || e.fallbackWarn, f = t ? t.fallbackRoot : !W(e.fallbackRoot) || e.fallbackRoot, h = !!e.fallbackFormat, g = j(e.missing) ? e.missing : null, y = j(e.missing) ? $o(e.missing) : null, k = j(e.postTranslation) ? e.postTranslation : null, x = t ? t.warnHtmlMessage : !W(e.warnHtmlMessage) || e.warnHtmlMessage, S = !!e.escapeParameter;
1730
+ let m = t ? t.missingWarn : !W(e.missingWarn) && !_(e.missingWarn) || e.missingWarn, v = t ? t.fallbackWarn : !W(e.fallbackWarn) && !_(e.fallbackWarn) || e.fallbackWarn, f = t ? t.fallbackRoot : !W(e.fallbackRoot) || e.fallbackRoot, g = !!e.fallbackFormat, h = j(e.missing) ? e.missing : null, y = j(e.missing) ? $o(e.missing) : null, k = j(e.postTranslation) ? e.postTranslation : null, x = t ? t.warnHtmlMessage : !W(e.warnHtmlMessage) || e.warnHtmlMessage, S = !!e.escapeParameter;
1731
1731
  const w = t ? t.modifiers : K(e.modifiers) ? e.modifiers : {};
1732
1732
  let E, B = e.pluralRules || t && t.pluralRules;
1733
1733
  E = (() => {
@@ -1742,7 +1742,7 @@ function Wo(e = {}) {
1742
1742
  missing: null === y ? void 0 : y,
1743
1743
  missingWarn: m,
1744
1744
  fallbackWarn: v,
1745
- fallbackFormat: h,
1745
+ fallbackFormat: g,
1746
1746
  unresolving: !0,
1747
1747
  postTranslation: null === k ? void 0 : k,
1748
1748
  warnHtmlMessage: x,
@@ -1752,7 +1752,7 @@ function Wo(e = {}) {
1752
1752
  __meta: { framework: "vue" }
1753
1753
  };
1754
1754
  t.datetimeFormats = u.value, t.numberFormats = p.value;
1755
- const n = hn(t);
1755
+ const n = gn(t);
1756
1756
  return o && vn(n), n;
1757
1757
  })(), Sn(E, i.value, s.value);
1758
1758
  const P = (0, d.computed)({
@@ -1792,7 +1792,7 @@ function Wo(e = {}) {
1792
1792
  }
1793
1793
  if ("translate exists" !== o && C(d) && -1 === d || "translate exists" === o && !d) {
1794
1794
  const [e, r] = n();
1795
- if ("production" !== process.env.NODE_ENV && t && $(e) && (h = r, "translate" !== o || !h.resolvedMessage) && (f && (yn(v, e) || kn(m, e)) && q(To(bo, {
1795
+ if ("production" !== process.env.NODE_ENV && t && $(e) && (g = r, "translate" !== o || !g.resolvedMessage) && (f && (yn(v, e) || kn(m, e)) && q(To(bo, {
1796
1796
  key: e,
1797
1797
  type: o
1798
1798
  })), "production" !== process.env.NODE_ENV)) {
@@ -1808,7 +1808,7 @@ function Wo(e = {}) {
1808
1808
  }
1809
1809
  if (r(d)) return d;
1810
1810
  throw uo(Qn);
1811
- var h;
1811
+ var g;
1812
1812
  };
1813
1813
  function R(...e) {
1814
1814
  return M((t) => Reflect.apply(qn, null, [t, ...e]), () => Jn(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => $(e));
@@ -1877,10 +1877,10 @@ function Wo(e = {}) {
1877
1877
  f = e;
1878
1878
  },
1879
1879
  get fallbackFormat() {
1880
- return h;
1880
+ return g;
1881
1881
  },
1882
1882
  set fallbackFormat(e) {
1883
- h = e, E.fallbackFormat = h;
1883
+ g = e, E.fallbackFormat = g;
1884
1884
  },
1885
1885
  get warnHtmlMessage() {
1886
1886
  return x;
@@ -1909,10 +1909,10 @@ function Wo(e = {}) {
1909
1909
  k = e, E.postTranslation = e;
1910
1910
  },
1911
1911
  getMissingHandler: function() {
1912
- return g;
1912
+ return h;
1913
1913
  },
1914
1914
  setMissingHandler: function(e) {
1915
- null !== e && (y = $o(e)), g = e, E.missing = y;
1915
+ null !== e && (y = $o(e)), h = e, E.missing = y;
1916
1916
  },
1917
1917
  [yo]: function(e) {
1918
1918
  B = e, E.pluralRules = B;
@@ -1974,9 +1974,9 @@ function Wo(e = {}) {
1974
1974
  return M((t) => Reflect.apply(Dn, null, [t, ...e]), () => Ln(...e), "datetime format", (t) => t[vo](...e), Ro, (e) => $(e) || V(e));
1975
1975
  }, X[fo] = function(...e) {
1976
1976
  return M((t) => Reflect.apply(Fn, null, [t, ...e]), () => zn(...e), "number format", (t) => t[fo](...e), Ro, (e) => $(e) || V(e));
1977
- }, "production" !== process.env.NODE_ENV && (X[ho] = (e) => {
1977
+ }, "production" !== process.env.NODE_ENV && (X[go] = (e) => {
1978
1978
  E.__v_emitter = e;
1979
- }, X[go] = () => {
1979
+ }, X[ho] = () => {
1980
1980
  E.__v_emitter = void 0;
1981
1981
  }), X;
1982
1982
  }
@@ -2053,13 +2053,13 @@ function Xo(e = {}) {
2053
2053
  if ("production" !== process.env.NODE_ENV) {
2054
2054
  s = me();
2055
2055
  const e = i;
2056
- e[ho] && e[ho](s), s.on("*", Ho);
2056
+ e[go] && e[go](s), s.on("*", Ho);
2057
2057
  }
2058
2058
  return (0, d.getCurrentScope)() && (0, d.onScopeDispose)(() => {
2059
2059
  if ("production" !== process.env.NODE_ENV) {
2060
2060
  s && s.off("*", Ho);
2061
2061
  const e = i;
2062
- e[go] && e[go]();
2062
+ e[ho] && e[ho]();
2063
2063
  }
2064
2064
  const e = i[xo];
2065
2065
  e && (e(), delete i[xo]);
@@ -2075,11 +2075,11 @@ function Xo(e = {}) {
2075
2075
  if ("production" !== process.env.NODE_ENV) {
2076
2076
  t.__VUE_I18N__ = n, o = me();
2077
2077
  const e = n;
2078
- e[ho] && e[ho](o), o.on("*", Ho);
2078
+ e[go] && e[go](o), o.on("*", Ho);
2079
2079
  }
2080
2080
  }, t), (0, d.onUnmounted)(() => {
2081
2081
  const l = n;
2082
- "production" !== process.env.NODE_ENV && (o && o.off("*", Ho), l[go] && l[go](), delete t.__VUE_I18N__), e.__deleteInstance(t);
2082
+ "production" !== process.env.NODE_ENV && (o && o.off("*", Ho), l[ho] && l[ho](), delete t.__VUE_I18N__), e.__deleteInstance(t);
2083
2083
  const a = l[xo];
2084
2084
  a && (a(), delete l[xo]);
2085
2085
  }, t);
@@ -2134,14 +2134,14 @@ if ("boolean" != typeof __VUE_I18N_FULL_INSTALL__ && (A().__VUE_I18N_FULL_INSTAL
2134
2134
  ...t,
2135
2135
  location: "production" !== process.env.NODE_ENV,
2136
2136
  jit: !0
2137
- }), i = gt(a);
2137
+ }), i = ht(a);
2138
2138
  return r ? i : St[o] = i;
2139
2139
  }
2140
2140
  {
2141
2141
  if (!ot(e)) return "production" !== process.env.NODE_ENV && q(`Cannot compile the message of '${t.key}' key, because the message compiler is not included in this build. Pre-compile the message. So translate function returns the message as is.`), () => e;
2142
2142
  const n = e.cacheKey;
2143
- if (n) return St[n] || (St[n] = gt(e));
2144
- return gt(e);
2143
+ if (n) return St[n] || (St[n] = ht(e));
2144
+ return ht(e);
2145
2145
  }
2146
2146
  }, rn = function(e, t) {
2147
2147
  if (!U(e)) return null;
@@ -2343,9 +2343,9 @@ var fl = {
2343
2343
  lineChart3D: !1,
2344
2344
  areaChart3D: !1,
2345
2345
  pieChart3D: !1
2346
- }, hl = Symbol("pptx-rendering-3d-flags");
2347
- function gl() {
2348
- return (0, d.inject)(hl, (0, d.computed)(() => fl));
2346
+ }, gl = Symbol("pptx-rendering-3d-flags");
2347
+ function hl() {
2348
+ return (0, d.inject)(gl, (0, d.computed)(() => fl));
2349
2349
  }
2350
2350
  var yl = {
2351
2351
  key: 0,
@@ -2679,14 +2679,14 @@ var Al = {
2679
2679
  "dominant-baseline",
2680
2680
  "opacity",
2681
2681
  "transform"
2682
- ], fa = ["transform"], ha = [
2682
+ ], fa = ["transform"], ga = [
2683
2683
  "x",
2684
2684
  "y",
2685
2685
  "width",
2686
2686
  "height",
2687
2687
  "fill",
2688
2688
  "rx"
2689
- ], ga = [
2689
+ ], ha = [
2690
2690
  "cx",
2691
2691
  "cy",
2692
2692
  "r",
@@ -2986,13 +2986,13 @@ var Al = {
2986
2986
  height: t.h,
2987
2987
  fill: t.fill,
2988
2988
  rx: t.rx ?? 0
2989
- }, null, 8, ha)) : l(t) ? ((0, d.openBlock)(), (0, d.createElementBlock)("circle", {
2989
+ }, null, 8, ga)) : l(t) ? ((0, d.openBlock)(), (0, d.createElementBlock)("circle", {
2990
2990
  key: 1,
2991
2991
  cx: t.cx,
2992
2992
  cy: t.cy,
2993
2993
  r: t.r,
2994
2994
  fill: t.fill
2995
- }, null, 8, ga)) : a(t) ? ((0, d.openBlock)(), (0, d.createElementBlock)("line", {
2995
+ }, null, 8, ha)) : a(t) ? ((0, d.openBlock)(), (0, d.createElementBlock)("line", {
2996
2996
  key: 2,
2997
2997
  x1: t.x1,
2998
2998
  y1: t.y1,
@@ -3097,31 +3097,31 @@ var Ea = (0, d.defineComponent)({
3097
3097
  const t = e, { t: n } = Xo(), o = (0, d.computed)(() => ({
3098
3098
  ...sl(t.element, t.zIndex),
3099
3099
  ...(0, u.getFrameEffectStyle)(t.element)
3100
- })), l = pl(() => t.element, () => t.interactive, () => t.presenting), a = (0, d.ref)(null), { interactiveClass: r, renderedElement: i, dragLabel: s, titleDraft: c, onPointerdown: p, onPointermove: m, onPointerup: v, onDblclick: f, setTitleDraft: h, commitTitle: g, cancelTitle: y } = function(e) {
3100
+ })), l = pl(() => t.element, () => t.interactive, () => t.presenting), a = (0, d.ref)(null), { interactiveClass: r, renderedElement: i, dragLabel: s, titleDraft: c, onPointerdown: p, onPointermove: m, onPointerup: v, onDblclick: f, setTitleDraft: g, commitTitle: h, cancelTitle: y } = function(e) {
3101
3101
  const t = Dl(), n = _l(), o = (t) => (0, u.chartFormatTargetFromEvent)(t, e.rootEl.value, e.element()), l = (0, d.shallowRef)(null), a = (0, d.ref)(null), r = (0, d.ref)(null);
3102
3102
  let i = null, s = null;
3103
3103
  const c = (0, d.computed)(() => e.interactive() && Boolean(t?.canEditChart(e.element().id)) && (0, u.canDrillDown)(e.element())), p = (0, d.computed)(() => e.interactive() && Boolean(t?.canSelectCharts())), m = (0, d.computed)(() => [...p.value ? ["pptx-vue-chart-selectable"] : [], ...c.value ? ["pptx-chart-interactive"] : []]), v = (0, d.computed)(() => l.value ? {
3104
3104
  ...e.element(),
3105
3105
  chartData: l.value
3106
- } : e.element()), f = (0, d.computed)(() => null === a.value ? null : (0, u.formatAxisValue)(a.value)), h = (0, d.computed)(() => {
3106
+ } : e.element()), f = (0, d.computed)(() => null === a.value ? null : (0, u.formatAxisValue)(a.value)), g = (0, d.computed)(() => {
3107
3107
  const n = t?.selection.value;
3108
3108
  return n && n.elementId === e.element().id ? n.part : null;
3109
3109
  });
3110
- function g(e) {
3110
+ function h(e) {
3111
3111
  "Escape" === e.key && y(!1);
3112
3112
  }
3113
3113
  function y(n) {
3114
3114
  const o = i, r = s;
3115
- i = null, s = null, window.removeEventListener("keydown", g), l.value = null, a.value = null, n && t && (o?.moved && o.lastData ? t.updateElement(e.element().id, { chartData: o.lastData }) : r?.moved && r.lastData && t.updateElement(e.element().id, { chartData: r.lastData }));
3115
+ i = null, s = null, window.removeEventListener("keydown", h), l.value = null, a.value = null, n && t && (o?.moved && o.lastData ? t.updateElement(e.element().id, { chartData: o.lastData }) : r?.moved && r.lastData && t.updateElement(e.element().id, { chartData: r.lastData }));
3116
3116
  }
3117
3117
  function k() {
3118
- Sl(e.rootEl.value, c.value ? h.value : null);
3118
+ Sl(e.rootEl.value, c.value ? g.value : null);
3119
3119
  }
3120
3120
  return (0, d.onUnmounted)(() => {
3121
- i = null, s = null, window.removeEventListener("keydown", g);
3121
+ i = null, s = null, window.removeEventListener("keydown", h);
3122
3122
  }), (0, d.onMounted)(() => {
3123
3123
  bl(), k();
3124
- }), (0, d.onUpdated)(k), (0, d.watch)([h, c], k, { flush: "post" }), {
3124
+ }), (0, d.onUpdated)(k), (0, d.watch)([g, c], k, { flush: "post" }), {
3125
3125
  canEdit: c,
3126
3126
  interactiveClass: m,
3127
3127
  renderedElement: v,
@@ -3174,7 +3174,7 @@ var Ea = (0, d.defineComponent)({
3174
3174
  try {
3175
3175
  l.currentTarget?.setPointerCapture?.(l.pointerId);
3176
3176
  } catch {}
3177
- window.addEventListener("keydown", g);
3177
+ window.addEventListener("keydown", h);
3178
3178
  }
3179
3179
  },
3180
3180
  onPointermove: function(t) {
@@ -3230,7 +3230,7 @@ var Ea = (0, d.defineComponent)({
3230
3230
  const t = e.chartData;
3231
3231
  return t && 0 !== t.series.length ? t : void 0;
3232
3232
  }), b = (0, d.computed)(() => x.value?.chartType ?? "bar"), S = (0, d.computed)(() => x.value ? (0, u.resolveChartKind)(b.value) : "unsupported"), w = (0, d.computed)(() => "unsupported" === S.value), E = function(e, t) {
3233
- const n = gl(), o = Dl(), l = (0, d.ref)(null), a = (0, d.computed)(() => (0, u.resolveChartThreeViewSpec)(e(), n.value)), r = (0, d.computed)(() => {
3233
+ const n = hl(), o = Dl(), l = (0, d.ref)(null), a = (0, d.computed)(() => (0, u.resolveChartThreeViewSpec)(e(), n.value)), r = (0, d.computed)(() => {
3234
3234
  const t = o?.selection.value;
3235
3235
  return t && t.elementId === e().id ? t.part : null;
3236
3236
  }), i = (0, d.computed)(() => t() && Boolean(o?.canEditChart(e().id)));
@@ -3326,8 +3326,8 @@ var Ea = (0, d.defineComponent)({
3326
3326
  (0, d.createVNode)(Ml, {
3327
3327
  "drag-label": (0, d.unref)(s) ?? (0, d.unref)(E).dragLabel.value,
3328
3328
  "title-draft": (0, d.unref)(c),
3329
- onTitleInput: (0, d.unref)(h),
3330
- onTitleCommit: (0, d.unref)(g),
3329
+ onTitleInput: (0, d.unref)(g),
3330
+ onTitleCommit: (0, d.unref)(h),
3331
3331
  onTitleCancel: (0, d.unref)(y)
3332
3332
  }, null, 8, [
3333
3333
  "drag-label",
@@ -3452,7 +3452,7 @@ var Ea = (0, d.defineComponent)({
3452
3452
  if (!v.value) return null;
3453
3453
  const e = t.element;
3454
3454
  return (0, y.hasShapeProperties)(e) ? (0, y.getConnectorPathGeometry)(e) : null;
3455
- }), h = (0, d.computed)(() => t.element.flipHorizontal ? i.value : 0), g = (0, d.computed)(() => t.element.flipVertical ? s.value : 0), k = (0, d.computed)(() => t.element.flipHorizontal ? 0 : i.value), x = (0, d.computed)(() => t.element.flipVertical ? 0 : s.value), b = (0, d.computed)(() => Math.max(3 * o.value, 14)), S = (0, d.computed)(() => v.value && f.value ? f.value.pathData : `M ${h.value} ${g.value} L ${k.value} ${x.value}`), w = (0, d.computed)(() => B(n.value?.connectorStartArrow)), E = (0, d.computed)(() => B(n.value?.connectorEndArrow));
3455
+ }), g = (0, d.computed)(() => t.element.flipHorizontal ? i.value : 0), h = (0, d.computed)(() => t.element.flipVertical ? s.value : 0), k = (0, d.computed)(() => t.element.flipHorizontal ? 0 : i.value), x = (0, d.computed)(() => t.element.flipVertical ? 0 : s.value), b = (0, d.computed)(() => Math.max(3 * o.value, 14)), S = (0, d.computed)(() => v.value && f.value ? f.value.pathData : `M ${g.value} ${h.value} L ${k.value} ${x.value}`), w = (0, d.computed)(() => B(n.value?.connectorStartArrow)), E = (0, d.computed)(() => B(n.value?.connectorEndArrow));
3456
3456
  function B(e) {
3457
3457
  return e && "none" !== e ? e : void 0;
3458
3458
  }
@@ -3587,8 +3587,8 @@ var Ea = (0, d.defineComponent)({
3587
3587
  "marker-end": t === p.value.length - 1 && O.value ? `url(#${P.value})` : void 0
3588
3588
  }, null, 12, ja))), 128)) : ((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, { key: 1 }, (0, d.renderList)(p.value, (e, t) => ((0, d.openBlock)(), (0, d.createElementBlock)("line", {
3589
3589
  key: t,
3590
- x1: h.value,
3591
- y1: g.value + e,
3590
+ x1: g.value,
3591
+ y1: h.value + e,
3592
3592
  x2: k.value,
3593
3593
  y2: x.value + e,
3594
3594
  stroke: l.value,
@@ -3810,13 +3810,13 @@ var ur = { style: {
3810
3810
  }, fr = {
3811
3811
  key: 2,
3812
3812
  class: "pptx-vue-equation-number"
3813
- }, hr = [
3813
+ }, gr = [
3814
3814
  "data-pptx-hyperlink",
3815
3815
  "href",
3816
3816
  "target",
3817
3817
  "rel",
3818
3818
  "title"
3819
- ], gr = tl((0, d.defineComponent)({
3819
+ ], hr = tl((0, d.defineComponent)({
3820
3820
  __name: "SlideTextRunBase",
3821
3821
  props: { run: {} },
3822
3822
  setup(e) {
@@ -3847,7 +3847,7 @@ var ur = { style: {
3847
3847
  title: e.run.hyperlink.tooltip,
3848
3848
  style: (0, d.normalizeStyle)(e.run.style),
3849
3849
  onClick: a
3850
- }, [(0, d.createVNode)(pr, { run: e.run }, null, 8, ["run"])], 12, hr)) : e.run.ruby ? ((0, d.openBlock)(), (0, d.createElementBlock)("ruby", {
3850
+ }, [(0, d.createVNode)(pr, { run: e.run }, null, 8, ["run"])], 12, gr)) : e.run.ruby ? ((0, d.openBlock)(), (0, d.createElementBlock)("ruby", {
3851
3851
  key: 2,
3852
3852
  style: (0, d.normalizeStyle)(e.run.style)
3853
3853
  }, [
@@ -3869,11 +3869,11 @@ var ur = { style: {
3869
3869
  }, kr = (0, d.defineComponent)({
3870
3870
  __name: "SlideTextRun",
3871
3871
  props: { run: {} },
3872
- setup: (e) => (t, n) => e.run.reflection ? ((0, d.openBlock)(), (0, d.createElementBlock)("span", yr, [(0, d.createVNode)(gr, { run: e.run }, null, 8, ["run"]), (0, d.createElementVNode)("span", {
3872
+ setup: (e) => (t, n) => e.run.reflection ? ((0, d.openBlock)(), (0, d.createElementBlock)("span", yr, [(0, d.createVNode)(hr, { run: e.run }, null, 8, ["run"]), (0, d.createElementVNode)("span", {
3873
3873
  class: "pptx-vue-text-reflection",
3874
3874
  "aria-hidden": "true",
3875
3875
  style: (0, d.normalizeStyle)(e.run.reflection)
3876
- }, [(0, d.createElementVNode)("span", { style: (0, d.normalizeStyle)(e.run.style) }, [(0, d.createVNode)(pr, { run: e.run }, null, 8, ["run"])], 4)], 4)])) : ((0, d.openBlock)(), (0, d.createBlock)(gr, {
3876
+ }, [(0, d.createElementVNode)("span", { style: (0, d.normalizeStyle)(e.run.style) }, [(0, d.createVNode)(pr, { run: e.run }, null, 8, ["run"])], 4)], 4)])) : ((0, d.openBlock)(), (0, d.createBlock)(hr, {
3877
3877
  key: 1,
3878
3878
  run: e.run
3879
3879
  }, null, 8, ["run"]))
@@ -4279,7 +4279,7 @@ var ur = { style: {
4279
4279
  }(c), m = (0, d.computed)(() => (0, u.getImageTilingStyle)(t.element, p.value)), v = (0, d.computed)(() => (0, u.getComputedImageStyle)(t.element)), f = (0, d.computed)(() => {
4280
4280
  const e = t.element.imageEffects;
4281
4281
  return (0, u.getImageColorWashStyle)(e?.colorWash);
4282
- }), { displaySrc: g } = ar({
4282
+ }), { displaySrc: h } = ar({
4283
4283
  src: c,
4284
4284
  clrChange: (0, d.computed)(() => {
4285
4285
  const n = t.element.imageEffects?.clrChange;
@@ -4328,7 +4328,7 @@ var ur = { style: {
4328
4328
  })
4329
4329
  }, null, 4)) : c.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("img", {
4330
4330
  key: 1,
4331
- src: (0, d.unref)(g) ?? c.value,
4331
+ src: (0, d.unref)(h) ?? c.value,
4332
4332
  alt: "",
4333
4333
  draggable: "false",
4334
4334
  style: (0, d.normalizeStyle)({
@@ -4389,7 +4389,7 @@ var ti = ["data-element-id", "data-pptx-element"], ni = [
4389
4389
  fill: "none",
4390
4390
  stroke: "currentColor",
4391
4391
  "stroke-width": "1.5"
4392
- }, pi = ["d"], mi = { key: 1 }, vi = ["aria-label"], hi = tl((0, d.defineComponent)({
4392
+ }, pi = ["d"], mi = { key: 1 }, vi = ["aria-label"], gi = tl((0, d.defineComponent)({
4393
4393
  __name: "ElementMediaBox",
4394
4394
  props: {
4395
4395
  element: {},
@@ -4455,14 +4455,14 @@ var ti = ["data-element-id", "data-pptx-element"], ni = [
4455
4455
  })), p = (0, d.computed)(() => dl(t.element, t.mediaDataUrls)), m = (0, d.computed)(() => {
4456
4456
  const e = t.element;
4457
4457
  if ("media" === e.type) return e.mediaData ?? (e.mediaPath ? t.mediaDataUrls.get(e.mediaPath) : void 0);
4458
- }), v = (0, d.computed)(() => "media" === t.element.type ? t.element.mediaType : void 0), f = (0, d.computed)(() => (0, u.getOnlineVideoEmbed)(t.element)?.embedUrl), h = (0, d.computed)(() => "media" === t.element.type ? t.element.posterFrameData ?? p.value : p.value), g = (0, d.computed)(() => (0, u.mediaPlaybackAttributes)(a.value).loop), y = (0, d.computed)(() => "media" === t.element.type && !0 === t.element.autoPlay), k = (0, d.computed)(() => (0, u.mediaSurfaceOf)({
4458
+ }), v = (0, d.computed)(() => "media" === t.element.type ? t.element.mediaType : void 0), f = (0, d.computed)(() => (0, u.getOnlineVideoEmbed)(t.element)?.embedUrl), g = (0, d.computed)(() => "media" === t.element.type ? t.element.posterFrameData ?? p.value : p.value), h = (0, d.computed)(() => (0, u.mediaPlaybackAttributes)(a.value).loop), y = (0, d.computed)(() => "media" === t.element.type && !0 === t.element.autoPlay), k = (0, d.computed)(() => (0, u.mediaSurfaceOf)({
4459
4459
  interactive: !0 === t.interactive,
4460
4460
  presenting: !0 === t.presenting
4461
4461
  })), x = (0, d.computed)(() => (0, u.mediaTransportVisible)({
4462
4462
  ...k.value,
4463
4463
  canvasTransport: !0
4464
4464
  })), b = (0, d.computed)(() => (0, u.mediaFallbackVisual)(k.value, {
4465
- hasPoster: Boolean(h.value),
4465
+ hasPoster: Boolean(g.value),
4466
4466
  missing: "media" === t.element.type && !0 === t.element.mediaMissing
4467
4467
  })), S = (0, d.computed)(() => (0, u.mediaFallbackIcon)(b.value, v.value)), w = (0, d.computed)(() => (0, u.mediaFallbackLabelKey)(b.value, v.value)), E = (0, d.computed)(() => s.active.value ? { pointerEvents: "auto" } : t.interactive ? null : { pointerEvents: "none" }), B = pl(() => t.element, () => t.interactive, () => t.presenting);
4468
4468
  return (t, l) => ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
@@ -4497,8 +4497,8 @@ var ti = ["data-element-id", "data-pptx-element"], ni = [
4497
4497
  ref: o,
4498
4498
  src: m.value,
4499
4499
  controls: x.value,
4500
- poster: h.value,
4501
- loop: g.value,
4500
+ poster: g.value,
4501
+ loop: h.value,
4502
4502
  autoplay: y.value,
4503
4503
  muted: y.value && !e.presenting,
4504
4504
  preload: "metadata",
@@ -4516,14 +4516,14 @@ var ti = ["data-element-id", "data-pptx-element"], ni = [
4516
4516
  ref: o,
4517
4517
  src: m.value,
4518
4518
  controls: x.value,
4519
- loop: g.value,
4519
+ loop: h.value,
4520
4520
  autoplay: y.value,
4521
4521
  style: (0, d.normalizeStyle)({
4522
4522
  width: "100%",
4523
4523
  pointerEvents: e.interactive ? "none" : "auto"
4524
4524
  })
4525
- }, null, 12, li)) : b.value.poster && h.value ? ((0, d.openBlock)(), (0, d.createElementBlock)(d.Fragment, { key: 4 }, [(0, d.createElementVNode)("img", {
4526
- src: h.value,
4525
+ }, null, 12, li)) : b.value.poster && g.value ? ((0, d.openBlock)(), (0, d.createElementBlock)(d.Fragment, { key: 4 }, [(0, d.createElementVNode)("img", {
4526
+ src: g.value,
4527
4527
  alt: "",
4528
4528
  draggable: "false",
4529
4529
  style: (0, d.normalizeStyle)({
@@ -4570,7 +4570,7 @@ var ti = ["data-element-id", "data-pptx-element"], ni = [
4570
4570
  })], -1)])], 8, vi)) : (0, d.createCommentVNode)("", !0)
4571
4571
  ], 12, ti));
4572
4572
  }
4573
- }), [["__scopeId", "data-v-7bf18c01"]]), gi = ["data-element-id"], yi = {
4573
+ }), [["__scopeId", "data-v-7bf18c01"]]), hi = ["data-element-id"], yi = {
4574
4574
  key: 0,
4575
4575
  class: "pptx-vue-equation-numbered"
4576
4576
  }, ki = {
@@ -4620,7 +4620,7 @@ var ti = ["data-element-id", "data-pptx-element"], ni = [
4620
4620
  key: 1,
4621
4621
  class: "pptx-vue-equation",
4622
4622
  innerHTML: e.mathml
4623
- }, null, 8, Si))], 64))), 128)) : (0, d.createCommentVNode)("", !0)], 12, gi));
4623
+ }, null, 8, Si))], 64))), 128)) : (0, d.createCommentVNode)("", !0)], 12, hi));
4624
4624
  }
4625
4625
  }), [["__scopeId", "data-v-10c9521d"]]), Bi = (0, d.defineComponent)({
4626
4626
  __name: "Extrusion3DOverlay",
@@ -4910,7 +4910,7 @@ var Fi = ["data-element-id"], Mi = ["src", "alt"], zi = {
4910
4910
  }))), r = (0, d.computed)(() => "ole" === t.element.type ? t.element : void 0), i = (0, d.computed)(() => {
4911
4911
  const e = r.value;
4912
4912
  return e ? (0, u.resolveOleType)(e) : "unknown";
4913
- }), s = (0, d.computed)(() => (0, u.getOleTypeColor)(i.value)), c = (0, d.computed)(() => (0, u.getOleTypeLabel)(i.value)), p = (0, d.computed)(() => (0, u.getOleIconShapes)(i.value)), m = (0, d.computed)(() => r.value?.previewImageData), v = (0, d.computed)(() => r.value?.fileName), f = (0, d.computed)(() => r.value?.oleEmbeddedData), h = (0, d.computed)(() => r.value?.oleEmbeddedFileName ?? v.value ?? `${c.value}`), g = (0, d.computed)(() => r.value ? (0, u.getOleDisplayName)(r.value) : c.value), y = (0, d.computed)(() => (0, u.formatBytes)(r.value?.oleEmbeddedByteSize)), k = (0, d.computed)(() => r.value?.oleEmbeddedMimeType), x = (0, d.computed)(() => Boolean(f.value) && (0, u.isBrowserOpenableMime)(k.value)), b = (0, d.computed)(() => r.value?.oleProgId), S = (0, d.computed)(() => {
4913
+ }), s = (0, d.computed)(() => (0, u.getOleTypeColor)(i.value)), c = (0, d.computed)(() => (0, u.getOleTypeLabel)(i.value)), p = (0, d.computed)(() => (0, u.getOleIconShapes)(i.value)), m = (0, d.computed)(() => r.value?.previewImageData), v = (0, d.computed)(() => r.value?.fileName), f = (0, d.computed)(() => r.value?.oleEmbeddedData), g = (0, d.computed)(() => r.value?.oleEmbeddedFileName ?? v.value ?? `${c.value}`), h = (0, d.computed)(() => r.value ? (0, u.getOleDisplayName)(r.value) : c.value), y = (0, d.computed)(() => (0, u.formatBytes)(r.value?.oleEmbeddedByteSize)), k = (0, d.computed)(() => r.value?.oleEmbeddedMimeType), x = (0, d.computed)(() => Boolean(f.value) && (0, u.isBrowserOpenableMime)(k.value)), b = (0, d.computed)(() => r.value?.oleProgId), S = (0, d.computed)(() => {
4914
4914
  const e = [c.value], t = r.value?.oleEmbeddedFileName ?? v.value;
4915
4915
  return t && e.push(t), y.value && e.push(y.value), b.value && e.push(b.value), e;
4916
4916
  }), w = (0, d.computed)(() => S.value.join("\n")), E = (0, d.computed)(() => r.value ? (0, u.getOleAriaLabel)(r.value) : c.value);
@@ -4977,7 +4977,7 @@ var Fi = ["data-element-id"], Mi = ["src", "alt"], zi = {
4977
4977
  (0, d.createElementVNode)("span", {
4978
4978
  class: "pptx-vue-ole-name",
4979
4979
  style: (0, d.normalizeStyle)({ color: s.value })
4980
- }, (0, d.toDisplayString)(g.value), 5),
4980
+ }, (0, d.toDisplayString)(h.value), 5),
4981
4981
  v.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("span", Zi, (0, d.toDisplayString)(c.value), 1)) : (0, d.createCommentVNode)("", !0)
4982
4982
  ], 4)),
4983
4983
  f.value && a.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
@@ -4991,16 +4991,16 @@ var Fi = ["data-element-id"], Mi = ["src", "alt"], zi = {
4991
4991
  (0, d.createElementVNode)("a", {
4992
4992
  class: "pptx-vue-ole-action",
4993
4993
  href: f.value,
4994
- download: h.value,
4995
- "aria-label": (0, d.unref)(n)("pptx.ole.downloadName", { name: h.value }),
4996
- title: (0, d.unref)(n)("pptx.ole.downloadName", { name: h.value })
4994
+ download: g.value,
4995
+ "aria-label": (0, d.unref)(n)("pptx.ole.downloadName", { name: g.value }),
4996
+ title: (0, d.unref)(n)("pptx.ole.downloadName", { name: g.value })
4997
4997
  }, (0, d.toDisplayString)((0, d.unref)(n)("pptx.ole.download")), 9, Qi),
4998
4998
  x.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("button", {
4999
4999
  key: 1,
5000
5000
  type: "button",
5001
5001
  class: "pptx-vue-ole-action",
5002
- "aria-label": (0, d.unref)(n)("pptx.ole.openName", { name: h.value }),
5003
- title: (0, d.unref)(n)("pptx.ole.openName", { name: h.value }),
5002
+ "aria-label": (0, d.unref)(n)("pptx.ole.openName", { name: g.value }),
5003
+ title: (0, d.unref)(n)("pptx.ole.openName", { name: g.value }),
5004
5004
  onClick: B
5005
5005
  }, (0, d.toDisplayString)((0, d.unref)(n)("pptx.ole.open")), 9, es)) : (0, d.createCommentVNode)("", !0)
5006
5006
  ], 32)) : (0, d.createCommentVNode)("", !0)
@@ -5092,7 +5092,7 @@ var ds = ["aria-label", "onClick"], ps = (0, d.defineComponent)({
5092
5092
  }), ms = ["data-element-id", "data-pptx-element"], vs = ["role", "aria-label"], fs = {
5093
5093
  key: 0,
5094
5094
  class: "pptx-vue-smartart-placeholder"
5095
- }, hs = ["data-testid", "viewBox"], gs = [
5095
+ }, gs = ["data-testid", "viewBox"], hs = [
5096
5096
  "data-node-id",
5097
5097
  "data-smartart-node-id",
5098
5098
  "tabindex",
@@ -5232,8 +5232,8 @@ var ds = ["aria-label", "onClick"], ps = (0, d.defineComponent)({
5232
5232
  function i(e) {
5233
5233
  return e ? r.value.get(e) : void 0;
5234
5234
  }
5235
- const s = (0, d.computed)(() => (0, u.resolvePalette)(o.value)), c = (0, d.computed)(() => o.value?.style ?? "flat"), p = (0, d.computed)(() => o.value?.chrome), m = (0, d.computed)(() => sl(t.element, t.zIndex)), v = (0, d.computed)(() => t.interactive ? null : { pointerEvents: "none" }), f = pl(() => t.element, () => t.interactive, () => t.presenting), h = (0, d.computed)(() => (0, u.buildChromeStyle)(p.value)), g = (0, d.computed)(() => o.value?.drawingShapes ?? []), k = (0, d.computed)(() => g.value.length > 0), x = (0, d.computed)(() => (0, u.resolveRevealedSmartArtNodes)(l.value, t.animationState, o.value?.presLayoutVars)), b = (0, d.computed)(() => x.value.nodes), S = (0, d.computed)(() => 0 === g.value.length ? g.value : (0, u.resolveRevealedDrawingShapes)(g.value, l.value, t.animationState)), w = (0, d.computed)(() => (0, u.computeDrawingViewBox)(g.value)), E = (0, d.computed)(() => {
5236
- const e = S.value, n = (0, u.resolveRevealedDrawingShapeNodeIds)(g.value, e, l.value);
5235
+ const s = (0, d.computed)(() => (0, u.resolvePalette)(o.value)), c = (0, d.computed)(() => o.value?.style ?? "flat"), p = (0, d.computed)(() => o.value?.chrome), m = (0, d.computed)(() => sl(t.element, t.zIndex)), v = (0, d.computed)(() => t.interactive ? null : { pointerEvents: "none" }), f = pl(() => t.element, () => t.interactive, () => t.presenting), g = (0, d.computed)(() => (0, u.buildChromeStyle)(p.value)), h = (0, d.computed)(() => o.value?.drawingShapes ?? []), k = (0, d.computed)(() => h.value.length > 0), x = (0, d.computed)(() => (0, u.resolveRevealedSmartArtNodes)(l.value, t.animationState, o.value?.presLayoutVars)), b = (0, d.computed)(() => x.value.nodes), S = (0, d.computed)(() => 0 === h.value.length ? h.value : (0, u.resolveRevealedDrawingShapes)(h.value, l.value, t.animationState)), w = (0, d.computed)(() => (0, u.computeDrawingViewBox)(h.value)), E = (0, d.computed)(() => {
5236
+ const e = S.value, n = (0, u.resolveRevealedDrawingShapeNodeIds)(h.value, e, l.value);
5237
5237
  return (0, u.projectDrawingShapes)(t.element.id, e, w.value, s.value, c.value).map((e, t) => ({
5238
5238
  ...e,
5239
5239
  nodeId: n[t]
@@ -5301,7 +5301,7 @@ var ds = ["aria-label", "onClick"], ps = (0, d.defineComponent)({
5301
5301
  ref_key: "rootEl",
5302
5302
  ref: A,
5303
5303
  class: "pptx-vue-smartart-chrome",
5304
- style: (0, d.normalizeStyle)(h.value),
5304
+ style: (0, d.normalizeStyle)(g.value),
5305
5305
  role: a.value ? "img" : void 0,
5306
5306
  "aria-label": a.value?.label,
5307
5307
  onMousemove: $,
@@ -5406,7 +5406,7 @@ var ds = ["aria-label", "onClick"], ps = (0, d.defineComponent)({
5406
5406
  x: e.textX,
5407
5407
  y: t.y
5408
5408
  }, (0, d.toDisplayString)(t.text), 9, Ts))), 128))], 8, Ps)) : (0, d.createCommentVNode)("", !0)
5409
- ], 46, gs))), 128))], 8, hs)) : I.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("svg", {
5409
+ ], 46, hs))), 128))], 8, gs)) : I.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("svg", {
5410
5410
  key: 2,
5411
5411
  class: "pptx-vue-smartart-svg",
5412
5412
  viewBox: I.value.viewBox,
@@ -5539,7 +5539,7 @@ var ds = ["aria-label", "onClick"], ps = (0, d.defineComponent)({
5539
5539
  textStyleOverrideCss: {}
5540
5540
  },
5541
5541
  setup(e) {
5542
- const t = e, { t: n } = Xo(), o = (0, d.computed)(() => "smartArt" === t.element.type ? t.element.smartArtData : void 0), l = gl(), a = (0, d.computed)(() => (0, u.resolveSmartArtThreeViewSpec)(t.element, l.value.smartArt3D)), r = (0, d.computed)(() => (0, u.elementInLocalFrame)(t.element)), i = (0, d.ref)(null), s = (0, d.ref)(null), c = (0, d.computed)(() => sl(t.element, t.zIndex)), p = pl(() => t.element, () => t.interactive, () => t.presenting), m = ss(), v = (0, d.computed)(() => Boolean(m?.canEdit())), f = rs(), h = (0, d.computed)(() => (0, u.resolvePalette)(o.value)), g = (0, d.ref)(null), { hoveredNodeId: y, hoveredNodeRect: k, onMouseMove: x, onMouseLeave: b } = us(i), S = (0, d.computed)(() => {
5542
+ const t = e, { t: n } = Xo(), o = (0, d.computed)(() => "smartArt" === t.element.type ? t.element.smartArtData : void 0), l = hl(), a = (0, d.computed)(() => (0, u.resolveSmartArtThreeViewSpec)(t.element, l.value.smartArt3D)), r = (0, d.computed)(() => (0, u.elementInLocalFrame)(t.element)), i = (0, d.ref)(null), s = (0, d.ref)(null), c = (0, d.computed)(() => sl(t.element, t.zIndex)), p = pl(() => t.element, () => t.interactive, () => t.presenting), m = ss(), v = (0, d.computed)(() => Boolean(m?.canEdit())), f = rs(), g = (0, d.computed)(() => (0, u.resolvePalette)(o.value)), h = (0, d.ref)(null), { hoveredNodeId: y, hoveredNodeRect: k, onMouseMove: x, onMouseLeave: b } = us(i), S = (0, d.computed)(() => {
5543
5543
  const e = k.value, t = i.value;
5544
5544
  if (!e || !t) return;
5545
5545
  const n = Math.max(0, t.clientWidth - 168), o = Math.max(0, t.clientHeight - 40);
@@ -5611,7 +5611,7 @@ var ds = ["aria-label", "onClick"], ps = (0, d.defineComponent)({
5611
5611
  (0, d.createElementVNode)("div", {
5612
5612
  class: "pptx-vue-smartart-3d-hittest",
5613
5613
  onDblclick: (0, d.withModifiers)(E, ["stop"]),
5614
- onMousemove: l[0] || (l[0] = (e) => (0, d.unref)(x)(e, g.value)),
5614
+ onMousemove: l[0] || (l[0] = (e) => (0, d.unref)(x)(e, h.value)),
5615
5615
  onMouseleave: w
5616
5616
  }, [(0, d.createVNode)($s, {
5617
5617
  element: r.value,
@@ -5620,12 +5620,12 @@ var ds = ["aria-label", "onClick"], ps = (0, d.defineComponent)({
5620
5620
  (0, d.unref)(y) && !(0, d.unref)(f).isEditing.value && (0, d.unref)(k) ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
5621
5621
  key: 0,
5622
5622
  ref_key: "styleBarEl",
5623
- ref: g,
5623
+ ref: h,
5624
5624
  style: (0, d.normalizeStyle)(S.value),
5625
- onMousemove: l[2] || (l[2] = (e) => (0, d.unref)(x)(e, g.value)),
5625
+ onMousemove: l[2] || (l[2] = (e) => (0, d.unref)(x)(e, h.value)),
5626
5626
  onMouseleave: w
5627
5627
  }, [(0, d.createVNode)(ps, {
5628
- palette: h.value,
5628
+ palette: g.value,
5629
5629
  onPickFill: l[1] || (l[1] = (e) => function(e, n) {
5630
5630
  const o = (0, u.commitSmartArtNodeFill)(t.element, e, n);
5631
5631
  o && m?.commitStyle?.(t.element.id, { smartArtData: o });
@@ -5891,11 +5891,11 @@ var nc = tl((0, d.defineComponent)({
5891
5891
  if (!e) return [];
5892
5892
  const n = t.element.id, o = s.value, l = c.value, i = (p = a) ? (0, d.toValue)(p) : void 0;
5893
5893
  var p;
5894
- const m = t.colorScheme ?? i?.colorScheme, v = t.tableStyleMap ?? i?.tableStyleMap, f = i?.fontScheme, h = i?.formatScheme, g = m || v || f || h ? {
5894
+ const m = t.colorScheme ?? i?.colorScheme, v = t.tableStyleMap ?? i?.tableStyleMap, f = i?.fontScheme, g = i?.formatScheme, h = m || v || f || g ? {
5895
5895
  colorScheme: m,
5896
5896
  tableStyleMap: v,
5897
5897
  fontScheme: f,
5898
- formatScheme: h
5898
+ formatScheme: g
5899
5899
  } : void 0;
5900
5900
  return e.rows.map((t, a) => {
5901
5901
  const r = [];
@@ -5906,7 +5906,7 @@ var nc = tl((0, d.defineComponent)({
5906
5906
  cellIndex: i,
5907
5907
  rowCount: o,
5908
5908
  columnCount: l
5909
- }, g), p = t.style ? function(e) {
5909
+ }, h), p = t.style ? function(e) {
5910
5910
  return (0, u.cellPatternFillCss)(e);
5911
5911
  }(t.style) : null, m = t, v = m.textRuns && m.textRuns.length > 0 ? m.textRuns : null;
5912
5912
  r.push({
@@ -5925,7 +5925,7 @@ var nc = tl((0, d.defineComponent)({
5925
5925
  cellIndex: i,
5926
5926
  rowCount: o,
5927
5927
  columnCount: l
5928
- }, g)
5928
+ }, h)
5929
5929
  });
5930
5930
  }), {
5931
5931
  key: `${n}-row-${a}`,
@@ -5939,21 +5939,21 @@ var nc = tl((0, d.defineComponent)({
5939
5939
  const t = { ...e.style };
5940
5940
  return delete t.backgroundColor, delete t.background, e.patternFill.backgroundImage && (t.backgroundImage = e.patternFill.backgroundImage), e.patternFill.backgroundColor && (t.backgroundColor = e.patternFill.backgroundColor), t;
5941
5941
  }
5942
- function f(e) {
5943
- return (0, u.cellRunStyle)(e);
5942
+ function f(e, t) {
5943
+ return (0, u.cellRunStyle)(e, t);
5944
5944
  }
5945
- const h = (0, d.inject)(Ks, void 0), g = Xs(), y = Js(() => t.element.id, () => r.value);
5945
+ const g = (0, d.inject)(Ks, void 0), h = Xs(), y = Js(() => t.element.id, () => r.value);
5946
5946
  function k(e) {
5947
- g?.resizeColumns(t.element.id, e);
5947
+ h?.resizeColumns(t.element.id, e);
5948
5948
  }
5949
5949
  function x(e, n) {
5950
- g?.resizeRow(t.element.id, e, n);
5950
+ h?.resizeRow(t.element.id, e, n);
5951
5951
  }
5952
5952
  const b = (0, d.ref)(null), S = (0, d.ref)(""), w = (0, d.ref)(null);
5953
5953
  function E(e) {
5954
5954
  w.value = e instanceof HTMLInputElement ? e : null;
5955
5955
  }
5956
- const B = (0, d.computed)(() => t.interactive && (h?.canEdit() ?? !1) && (0, u.canDrillDown)(t.element));
5956
+ const B = (0, d.computed)(() => t.interactive && (g?.canEdit() ?? !1) && (0, u.canDrillDown)(t.element));
5957
5957
  function C(e) {
5958
5958
  const t = b.value;
5959
5959
  return null !== t && t.rowIndex === e.rowIndex && t.colIndex === e.colIndex;
@@ -5968,7 +5968,7 @@ var nc = tl((0, d.defineComponent)({
5968
5968
  }
5969
5969
  function P() {
5970
5970
  const e = b.value;
5971
- e && (b.value = null, h?.commit(t.element.id, e.rowIndex, e.colIndex, S.value));
5971
+ e && (b.value = null, g?.commit(t.element.id, e.rowIndex, e.colIndex, S.value));
5972
5972
  }
5973
5973
  function T(e) {
5974
5974
  e.stopPropagation(), "Enter" === e.key || "Tab" === e.key ? (e.preventDefault(), P()) : "Escape" === e.key && (e.preventDefault(), b.value = null);
@@ -6083,11 +6083,11 @@ var nc = tl((0, d.defineComponent)({
6083
6083
  }, [((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, null, (0, d.renderList)(t.runs, (t, o) => ((0, d.openBlock)(), (0, d.createElementBlock)(d.Fragment, { key: `${e.key}-para-${n}-run-${o}` }, [t.isLineBreak ? ((0, d.openBlock)(), (0, d.createElementBlock)("br", cc)) : ((0, d.openBlock)(), (0, d.createElementBlock)("span", {
6084
6084
  key: 1,
6085
6085
  class: "pptx-vue-table__run",
6086
- style: (0, d.normalizeStyle)(f(t))
6086
+ style: (0, d.normalizeStyle)(f(t, e.style))
6087
6087
  }, (0, d.toDisplayString)(t.text), 5))], 64))), 128))], 4))), 128)) : e.textRuns ? ((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, { key: 3 }, (0, d.renderList)(e.textRuns, (t, n) => ((0, d.openBlock)(), (0, d.createElementBlock)(d.Fragment, { key: `${e.key}-run-${n}` }, [t.isParagraphBreak ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", uc)) : t.isLineBreak ? ((0, d.openBlock)(), (0, d.createElementBlock)("br", dc)) : ((0, d.openBlock)(), (0, d.createElementBlock)("span", {
6088
6088
  key: 2,
6089
6089
  class: "pptx-vue-table__run",
6090
- style: (0, d.normalizeStyle)(f(t))
6090
+ style: (0, d.normalizeStyle)(f(t, e.style))
6091
6091
  }, (0, d.toDisplayString)(t.text), 5))], 64))), 128)) : ((0, d.openBlock)(), (0, d.createElementBlock)("span", pc, (0, d.toDisplayString)(e.text), 1))], 46, ac))), 128))], 4))), 128))])], 4)]),
6092
6092
  _: 1
6093
6093
  }, 8, [
@@ -6097,7 +6097,7 @@ var nc = tl((0, d.defineComponent)({
6097
6097
  ])
6098
6098
  ], 12, oc)) : (0, d.createCommentVNode)("", !0);
6099
6099
  }
6100
- }), [["__scopeId", "data-v-813c8811"]]), fc = new u.GlyphOutlineFontCache(), hc = (0, d.ref)(0), gc = (0, u.createGlyphOutlineLookup)(fc);
6100
+ }), [["__scopeId", "data-v-8731a16e"]]), fc = new u.GlyphOutlineFontCache(), gc = (0, d.ref)(0), hc = (0, u.createGlyphOutlineLookup)(fc);
6101
6101
  var yc = ["d", "fill"], kc = [
6102
6102
  "x",
6103
6103
  "y",
@@ -6233,7 +6233,7 @@ var yc = ["d", "fill"], kc = [
6233
6233
  textAnchor: "start"
6234
6234
  };
6235
6235
  }
6236
- }), f = (0, d.computed)(() => n.value?.textStyle?.fontSize ?? 24), h = (0, d.computed)(() => n.value?.textStyle?.fontFamily ? (0, y.getSubstituteFontFamily)(n.value.textStyle.fontFamily) : u.DEFAULT_FONT_FAMILY), g = (0, d.computed)(() => (0, u.normalizeHexColor)(n.value?.textStyle?.color, Oc)), k = (0, d.computed)(() => n.value?.textStyle?.bold ? 700 : 400), x = (0, d.computed)(() => n.value?.textStyle?.italic ? "italic" : "normal");
6236
+ }), f = (0, d.computed)(() => n.value?.textStyle?.fontSize ?? 24), g = (0, d.computed)(() => n.value?.textStyle?.fontFamily ? (0, y.getSubstituteFontFamily)(n.value.textStyle.fontFamily) : u.DEFAULT_FONT_FAMILY), h = (0, d.computed)(() => (0, u.normalizeHexColor)(n.value?.textStyle?.color, Oc)), k = (0, d.computed)(() => (0, u.resolveFontWeight)(n.value?.textStyle?.fontFamily, n.value?.textStyle?.bold)), x = (0, d.computed)(() => (0, u.resolveFontItalic)(n.value?.textStyle?.fontFamily, n.value?.textStyle?.italic) ? "italic" : "normal");
6237
6237
  function b(e) {
6238
6238
  const t = e.style ?? {}, o = [];
6239
6239
  (t.underline || t.hyperlink) && o.push("underline"), t.strikethrough && o.push("line-through");
@@ -6241,8 +6241,8 @@ var yc = ["d", "fill"], kc = [
6241
6241
  return {
6242
6242
  fill: a,
6243
6243
  fontSize: t.fontSize ?? l?.fontSize ?? 24,
6244
- fontWeight: t.bold ? 700 : 400,
6245
- fontStyle: t.italic ? "italic" : "normal",
6244
+ fontWeight: (0, u.resolveFontWeight)(r, t.bold),
6245
+ fontStyle: (0, u.resolveFontItalic)(r, t.italic) ? "italic" : "normal",
6246
6246
  fontFamily: r ? (0, y.getSubstituteFontFamily)(r) : u.DEFAULT_FONT_FAMILY,
6247
6247
  textDecoration: o.length > 0 ? o.join(" ") : void 0
6248
6248
  };
@@ -6265,12 +6265,12 @@ var yc = ["d", "fill"], kc = [
6265
6265
  useGlyphEnvelope: p,
6266
6266
  glyphLines: (0, d.computed)(() => {
6267
6267
  if (!p.value) return [];
6268
- hc.value;
6268
+ gc.value;
6269
6269
  const e = (0, u.buildGlyphEnvelopeBlock)(n.value, o.value.map((e) => e.segments.map((e, t) => ({
6270
6270
  text: e.text,
6271
6271
  font: m(e),
6272
6272
  segmentIndex: t
6273
- }))), l.value, a.value, t.value?.textStyle?.align, r.value, i.value, gc);
6273
+ }))), l.value, a.value, t.value?.textStyle?.align, r.value, i.value, hc);
6274
6274
  return o.value.map((t, n) => ({
6275
6275
  lineIndex: n,
6276
6276
  glyphs: e[n] ?? [],
@@ -6327,8 +6327,8 @@ var yc = ["d", "fill"], kc = [
6327
6327
  }, null, 8, Ic))), 128))]), ((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, null, (0, d.renderList)(s.value, (e, t) => ((0, d.openBlock)(), (0, d.createElementBlock)("text", {
6328
6328
  key: `txt-${t}`,
6329
6329
  "font-size": f.value,
6330
- "font-family": h.value,
6331
- fill: g.value,
6330
+ "font-family": g.value,
6331
+ fill: h.value,
6332
6332
  "font-weight": k.value,
6333
6333
  "font-style": x.value
6334
6334
  }, [(0, d.createElementVNode)("textPath", {
@@ -6345,7 +6345,7 @@ var yc = ["d", "fill"], kc = [
6345
6345
  "text-decoration": b(e).textDecoration
6346
6346
  }, (0, d.toDisplayString)(e.text), 9, _c))), 128))], 8, Tc)], 8, Pc))), 128))], 12, Cc)) : (0, d.createCommentVNode)("", !0);
6347
6347
  }
6348
- }), [["__scopeId", "data-v-51c1eadc"]]), Nc = Symbol("pptx-vue-zoom-navigation");
6348
+ }), [["__scopeId", "data-v-78ebd404"]]), Nc = Symbol("pptx-vue-zoom-navigation");
6349
6349
  function Lc(e) {
6350
6350
  (0, d.provide)(Nc, e);
6351
6351
  }
@@ -6391,7 +6391,7 @@ var zc = [
6391
6391
  presenting: { type: Boolean }
6392
6392
  },
6393
6393
  setup(e) {
6394
- const t = e, { t: n } = Xo(), o = (0, d.computed)(() => sl(t.element, t.zIndex)), l = pl(() => t.element, () => t.interactive, () => t.presenting), a = (0, d.computed)(() => (0, y.isZoomElement)(t.element) ? t.element : void 0), r = (0, d.computed)(() => a.value?.imageData), i = (0, d.computed)(() => a.value?.targetSlideIndex ?? 0), s = (0, d.computed)(() => a.value?.zoomType ?? "slide"), c = (0, d.computed)(() => a.value?.targetSectionId), p = (0, d.computed)(() => "section" === s.value ? n("pptx.zoom.sectionZoom") : n("pptx.zoom.slideZoom")), m = (0, d.inject)(Ac, void 0), v = (0, d.computed)(() => m?.(i.value)), f = (0, d.computed)(() => a.value ? (0, u.buildSummaryZoomView)(a.value, m, (e, t) => n(e, t ?? {})) : void 0), h = (0, d.computed)(() => ({ backgroundColor: v.value?.backgroundColor ?? "#f0f0f0" })), g = (0, d.computed)(() => void 0 !== v.value?.slideNumber ? n("pptx.notes.slideN", { n: v.value.slideNumber }) : n("pptx.notes.slideN", { n: i.value + 1 })), k = (0, d.computed)(() => v.value?.sectionName ?? c.value), x = (0, d.computed)(() => "section" === s.value && c.value ? n("pptx.zoom.ariaLabelSection", {
6394
+ const t = e, { t: n } = Xo(), o = (0, d.computed)(() => sl(t.element, t.zIndex)), l = pl(() => t.element, () => t.interactive, () => t.presenting), a = (0, d.computed)(() => (0, y.isZoomElement)(t.element) ? t.element : void 0), r = (0, d.computed)(() => a.value?.imageData), i = (0, d.computed)(() => a.value?.targetSlideIndex ?? 0), s = (0, d.computed)(() => a.value?.zoomType ?? "slide"), c = (0, d.computed)(() => a.value?.targetSectionId), p = (0, d.computed)(() => "section" === s.value ? n("pptx.zoom.sectionZoom") : n("pptx.zoom.slideZoom")), m = (0, d.inject)(Ac, void 0), v = (0, d.computed)(() => m?.(i.value)), f = (0, d.computed)(() => a.value ? (0, u.buildSummaryZoomView)(a.value, m, (e, t) => n(e, t ?? {})) : void 0), g = (0, d.computed)(() => ({ backgroundColor: v.value?.backgroundColor ?? "#f0f0f0" })), h = (0, d.computed)(() => void 0 !== v.value?.slideNumber ? n("pptx.notes.slideN", { n: v.value.slideNumber }) : n("pptx.notes.slideN", { n: i.value + 1 })), k = (0, d.computed)(() => v.value?.sectionName ?? c.value), x = (0, d.computed)(() => "section" === s.value && c.value ? n("pptx.zoom.ariaLabelSection", {
6395
6395
  number: i.value + 1,
6396
6396
  section: c.value
6397
6397
  }) : n("pptx.zoom.ariaLabel", { number: i.value + 1 })), b = (0, d.inject)(Nc, void 0), S = (0, d.computed)(() => Boolean(b && a.value));
@@ -6462,8 +6462,8 @@ var zc = [
6462
6462
  }, null, 8, $c)) : ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
6463
6463
  key: 1,
6464
6464
  class: "pptx-vue-zoom-thumbnail",
6465
- style: (0, d.normalizeStyle)(h.value)
6466
- }, [(0, d.createElementVNode)("div", Wc, (0, d.toDisplayString)(g.value), 1), k.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", Uc, (0, d.toDisplayString)(k.value), 1)) : (0, d.createCommentVNode)("", !0)], 4)), (0, d.createElementVNode)("div", Hc, (0, d.toDisplayString)(p.value), 1)]))], 46, zc));
6465
+ style: (0, d.normalizeStyle)(g.value)
6466
+ }, [(0, d.createElementVNode)("div", Wc, (0, d.toDisplayString)(h.value), 1), k.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", Uc, (0, d.toDisplayString)(k.value), 1)) : (0, d.createCommentVNode)("", !0)], 4)), (0, d.createElementVNode)("div", Hc, (0, d.toDisplayString)(p.value), 1)]))], 46, zc));
6467
6467
  }
6468
6468
  }), [["__scopeId", "data-v-12ce2987"]]), Yc = ["data-element-id", "data-pptx-element"], qc = ["data-element-id", "data-pptx-element"], Xc = ["data-anim-id", "data-pptx-animation-layer"], Zc = ["data-element-id", "data-pptx-element"], Jc = { class: "pptx-vue-placeholder" }, Qc = (0, d.defineComponent)({
6469
6469
  __name: "ElementRenderer",
@@ -6479,13 +6479,13 @@ var zc = [
6479
6479
  inlineEditingElementId: {}
6480
6480
  },
6481
6481
  setup(e) {
6482
- const t = e, n = gl(), o = (0, d.computed)(() => n.value.smartArt3D), l = ol(), a = (0, d.inject)(al, void 0), r = (0, d.inject)(ml, () => (0, d.shallowRef)(/* @__PURE__ */ new Map()), !0), i = (0, d.computed)(() => r.value.get(t.element.id)), s = (0, d.computed)(() => (0, u.getBackgroundAnimationState)(t.element, r.value)), c = (0, d.computed)(() => (0, u.buildTextStyleOverrideCss)(t.element.id, i.value?.textStyle)), p = (0, d.computed)(() => sl(t.element, t.zIndex)), m = (0, d.computed)(() => cl(t.element, t.parentGroupFill, (s.value ?? i.value)?.animatesFill, (s.value ?? i.value)?.animatesStroke)), v = (0, d.computed)(() => (0, u.getGroupChildParentFill)(t.element, t.parentGroupFill)), f = (0, d.computed)(() => {
6482
+ const t = e, n = hl(), o = (0, d.computed)(() => n.value.smartArt3D), l = ol(), a = (0, d.inject)(al, void 0), r = (0, d.inject)(ml, () => (0, d.shallowRef)(/* @__PURE__ */ new Map()), !0), i = (0, d.computed)(() => r.value.get(t.element.id)), s = (0, d.computed)(() => (0, u.getBackgroundAnimationState)(t.element, r.value)), c = (0, d.computed)(() => (0, u.buildTextStyleOverrideCss)(t.element.id, i.value?.textStyle)), p = (0, d.computed)(() => sl(t.element, t.zIndex)), m = (0, d.computed)(() => cl(t.element, t.parentGroupFill, (s.value ?? i.value)?.animatesFill, (s.value ?? i.value)?.animatesStroke)), v = (0, d.computed)(() => (0, u.getGroupChildParentFill)(t.element, t.parentGroupFill)), f = (0, d.computed)(() => {
6483
6483
  const e = p.value, t = m.value, n = {
6484
6484
  ...e,
6485
6485
  ...t
6486
6486
  };
6487
6487
  return e.transform && t.transform && (n.transform = `${e.transform} ${t.transform}`), n;
6488
- }), h = (0, d.computed)(() => (0, u.getBackgroundAnimationLayers)(t.element, f.value, s.value)), g = (0, d.computed)(() => {
6488
+ }), g = (0, d.computed)(() => (0, u.getBackgroundAnimationLayers)(t.element, f.value, s.value)), h = (0, d.computed)(() => {
6489
6489
  const e = ul(t.element), n = (0, y.hasTextProperties)(t.element) ? t.element.textStyle : void 0, o = (0, u.buildTextBody3DSceneStyle)(n, {
6490
6490
  width: t.element.width,
6491
6491
  height: t.element.height
@@ -6565,7 +6565,7 @@ var zc = [
6565
6565
  "marked",
6566
6566
  "presenting",
6567
6567
  "class"
6568
- ])) : "media" === e.element.type ? ((0, d.openBlock)(), (0, d.createBlock)(hi, {
6568
+ ])) : "media" === e.element.type ? ((0, d.openBlock)(), (0, d.createBlock)(gi, {
6569
6569
  key: 3,
6570
6570
  element: e.element,
6571
6571
  "media-data-urls": e.mediaDataUrls,
@@ -6764,7 +6764,7 @@ var zc = [
6764
6764
  ])) : x.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
6765
6765
  key: 15,
6766
6766
  class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-shape", P.value]),
6767
- style: (0, d.normalizeStyle)([h.value.box, _.value]),
6767
+ style: (0, d.normalizeStyle)([g.value.box, _.value]),
6768
6768
  "data-element-id": e.element.id,
6769
6769
  "data-pptx-element": T.value
6770
6770
  }, [
@@ -6780,8 +6780,8 @@ var zc = [
6780
6780
  _: 1
6781
6781
  })) : (0, d.createCommentVNode)("", !0),
6782
6782
  (0, d.createElementVNode)("div", {
6783
- style: (0, d.normalizeStyle)(h.value.paint || { display: "contents" }),
6784
- "data-anim-id": h.value.targetId,
6783
+ style: (0, d.normalizeStyle)(g.value.paint || { display: "contents" }),
6784
+ "data-anim-id": g.value.targetId,
6785
6785
  "data-pptx-animation-layer": s.value ? "background" : void 0
6786
6786
  }, [
6787
6787
  (0, d.createVNode)(Xr, {
@@ -6801,7 +6801,7 @@ var zc = [
6801
6801
  }, null, 8, ["element"])) : C.value ? ((0, d.openBlock)(), (0, d.createBlock)(Ir, {
6802
6802
  key: 1,
6803
6803
  paragraphs: B.value,
6804
- "text-style": g.value,
6804
+ "text-style": h.value,
6805
6805
  "element-id": e.element.id,
6806
6806
  "sub-element-anim-states": (0, d.unref)(r)
6807
6807
  }, null, 8, [
@@ -6812,7 +6812,7 @@ var zc = [
6812
6812
  ])) : I.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
6813
6813
  key: 2,
6814
6814
  class: "pptx-vue-text pptx-vue-placeholder-prompt",
6815
- style: (0, d.normalizeStyle)([g.value, I.value.style])
6815
+ style: (0, d.normalizeStyle)([h.value, I.value.style])
6816
6816
  }, (0, d.toDisplayString)(I.value.text), 5)) : (0, d.createCommentVNode)("", !0)], 64))
6817
6817
  ], 14, qc)) : ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
6818
6818
  key: 16,
@@ -6989,7 +6989,7 @@ function su(e = 768, t) {
6989
6989
  s.value = e;
6990
6990
  const r = (0, u.isMobileViewport)(e, t, a.value);
6991
6991
  n.value = r, o.value = !r && e >= u.MOBILE_BREAKPOINT && e < u.TABLET_BREAKPOINT, l.value = !r && e >= u.TABLET_BREAKPOINT;
6992
- }, h = () => {
6992
+ }, g = () => {
6993
6993
  const e = () => {
6994
6994
  r.value = (0, u.detectOrientation)();
6995
6995
  };
@@ -7004,8 +7004,8 @@ function su(e = 768, t) {
7004
7004
  o ? o.addEventListener("resize", l) : window.addEventListener("resize", l), (0, d.onScopeDispose)(() => {
7005
7005
  window.removeEventListener("resize", e), t?.removeEventListener("change", e), o ? o.removeEventListener("resize", l) : window.removeEventListener("resize", l);
7006
7006
  });
7007
- }, g = "undefined" != typeof window;
7008
- if (g && "undefined" != typeof ResizeObserver && t) {
7007
+ }, h = "undefined" != typeof window;
7008
+ if (h && "undefined" != typeof ResizeObserver && t) {
7009
7009
  let e = null, n = null;
7010
7010
  const o = () => {
7011
7011
  f(window.innerWidth, window.innerHeight);
@@ -7021,11 +7021,11 @@ function su(e = 768, t) {
7021
7021
  const t = e[0];
7022
7022
  t && f(t.contentRect.width, t.contentRect.height);
7023
7023
  }), e.observe(a), f(a.clientWidth, a.clientHeight)) : a || e || n || o();
7024
- }), h(), (0, d.onScopeDispose)(() => {
7024
+ }), g(), (0, d.onScopeDispose)(() => {
7025
7025
  e?.disconnect(), l();
7026
7026
  }), v;
7027
7027
  }
7028
- if (!(g && "function" == typeof window.matchMedia)) return v;
7028
+ if (!(h && "function" == typeof window.matchMedia)) return v;
7029
7029
  const y = () => {
7030
7030
  f(window.innerWidth, window.innerHeight);
7031
7031
  }, k = window.matchMedia(`(max-width: ${e}px), (max-height: ${u.MOBILE_LANDSCAPE_MAX_HEIGHT - 1}px) and (pointer: coarse) and (max-width: ${u.TABLET_BREAKPOINT - 1}px)`), x = (e) => {
@@ -7037,7 +7037,7 @@ function su(e = 768, t) {
7037
7037
  const b = (e) => {
7038
7038
  x(e);
7039
7039
  };
7040
- return k.addEventListener("change", b), window.addEventListener("resize", y), h(), (0, d.onScopeDispose)(() => {
7040
+ return k.addEventListener("change", b), window.addEventListener("resize", y), g(), (0, d.onScopeDispose)(() => {
7041
7041
  k.removeEventListener("change", b), window.removeEventListener("resize", y);
7042
7042
  }), v;
7043
7043
  }
@@ -7205,13 +7205,13 @@ function fu(e) {
7205
7205
  const n = t.metaKey || t.ctrlKey;
7206
7206
  return mu(t.key, n, t.shiftKey, function(t) {
7207
7207
  return {
7208
- canEdit: hu(e.canEdit, !0),
7209
- canPaste: hu(e.canPaste, !0),
7210
- isPresenting: hu(e.isPresenting, !1),
7211
- hasSelection: hu(e.hasSelection, !1),
7212
- inlineEditingElementId: hu(e.inlineEditingElementId, null),
7213
- tableEditorIsEditing: hu(e.tableEditorIsEditing, !1),
7214
- activeTool: hu(e.activeTool, "select"),
7208
+ canEdit: gu(e.canEdit, !0),
7209
+ canPaste: gu(e.canPaste, !0),
7210
+ isPresenting: gu(e.isPresenting, !1),
7211
+ hasSelection: gu(e.hasSelection, !1),
7212
+ inlineEditingElementId: gu(e.inlineEditingElementId, null),
7213
+ tableEditorIsEditing: gu(e.tableEditorIsEditing, !1),
7214
+ activeTool: gu(e.activeTool, "select"),
7215
7215
  isTextInput: vu(t),
7216
7216
  isControl: (0, u.isEditorControlTarget)(t.target)
7217
7217
  };
@@ -7243,10 +7243,10 @@ function fu(e) {
7243
7243
  attach: l
7244
7244
  };
7245
7245
  }
7246
- function hu(e, t) {
7246
+ function gu(e, t) {
7247
7247
  return void 0 === e ? t : (0, d.toValue)(e);
7248
7248
  }
7249
- function gu(e, t, n, o = () => !0) {
7249
+ function hu(e, t, n, o = () => !0) {
7250
7250
  const l = (e) => n(e), a = (e) => {
7251
7251
  const n = t.value;
7252
7252
  n && l((0, u.patchChartData)(n, e));
@@ -7413,13 +7413,13 @@ function wu(e) {
7413
7413
  removeDisabled: o.value.length <= 1 || !r && !n
7414
7414
  };
7415
7415
  });
7416
- }), { pendingFocusId: v, setInputEl: f, focusNode: h } = ku();
7417
- function g(t, o) {
7416
+ }), { pendingFocusId: v, setInputEl: f, focusNode: g } = ku();
7417
+ function h(t, o) {
7418
7418
  const l = e.box?.value, a = l ? (0, u.rebuildDrawingShapesIfCleared)(t, t.layout, (0, u.resolvePalette)(t), t.style ?? "flat", e.elementId ?? "smartart", l) : t;
7419
- n({ smartArtData: a }), h(o);
7419
+ n({ smartArtData: a }), g(o);
7420
7420
  }
7421
7421
  function k(e) {
7422
- g({
7422
+ h({
7423
7423
  ...t.value,
7424
7424
  ...e
7425
7425
  });
@@ -7430,15 +7430,15 @@ function wu(e) {
7430
7430
  }
7431
7431
  function b(e) {
7432
7432
  const n = (0, y.promoteSmartArtNode)(t.value, e);
7433
- n !== t.value && g(n, e);
7433
+ n !== t.value && h(n, e);
7434
7434
  }
7435
7435
  function S(e) {
7436
7436
  const n = (0, u.demote)(t.value, e);
7437
- n && g(n, e);
7437
+ n && h(n, e);
7438
7438
  }
7439
7439
  function w(e, n) {
7440
7440
  const o = (0, u.reorder)(t.value, e, n);
7441
- o && g(o, e);
7441
+ o && h(o, e);
7442
7442
  }
7443
7443
  return {
7444
7444
  nodes: o,
@@ -7453,20 +7453,20 @@ function wu(e) {
7453
7453
  pendingFocusId: v,
7454
7454
  setInputEl: f,
7455
7455
  updateNodeText: function(e, n) {
7456
- g((0, y.updateSmartArtNodeText)(t.value, e, n));
7456
+ h((0, y.updateSmartArtNodeText)(t.value, e, n));
7457
7457
  },
7458
7458
  setNodeStyle: function(e, n) {
7459
7459
  const o = (0, y.setSmartArtNodeStyle)(t.value, e, n);
7460
- o !== t.value && g(o);
7460
+ o !== t.value && h(o);
7461
7461
  },
7462
7462
  addItem: function() {
7463
- s.value && g((0, y.addSmartArtNode)(t.value, `Item ${o.value.length + 1}`));
7463
+ s.value && h((0, y.addSmartArtNode)(t.value, `Item ${o.value.length + 1}`));
7464
7464
  },
7465
7465
  addSubItem: function(e) {
7466
- g((0, y.addSmartArtNodeAsChild)(t.value, e, "Sub-item"));
7466
+ h((0, y.addSmartArtNodeAsChild)(t.value, e, "Sub-item"));
7467
7467
  },
7468
7468
  removeNode: function(e) {
7469
- x(e) && g((0, y.removeSmartArtNode)(t.value, e));
7469
+ x(e) && h((0, y.removeSmartArtNode)(t.value, e));
7470
7470
  },
7471
7471
  promote: b,
7472
7472
  demote: S,
@@ -7477,13 +7477,13 @@ function wu(e) {
7477
7477
  if ("Enter" === e.key) {
7478
7478
  e.preventDefault();
7479
7479
  const o = (0, u.addSiblingAfter)(t.value, n);
7480
- o && g(o.data, o.focusNodeId);
7480
+ o && h(o.data, o.focusNodeId);
7481
7481
  } else if ("Backspace" !== e.key && "Delete" !== e.key || !a) "Tab" !== e.key || e.shiftKey ? "Tab" === e.key && e.shiftKey && (e.preventDefault(), b(n)) : (e.preventDefault(), S(n));
7482
7482
  else {
7483
7483
  if (!x(n)) return;
7484
7484
  e.preventDefault();
7485
7485
  const o = (0, u.removeEmptyNode)(t.value, n);
7486
- o && g(o.data, o.focusNodeId);
7486
+ o && h(o.data, o.focusNodeId);
7487
7487
  }
7488
7488
  },
7489
7489
  setColorScheme: function(e) {
@@ -7535,18 +7535,18 @@ function Tu(e) {
7535
7535
  a.value = !r || !r.hasMoreSteps();
7536
7536
  }
7537
7537
  const f = (0, d.ref)(!1);
7538
- let h = !1;
7539
- function g(s) {
7538
+ let g = !1;
7539
+ function h(s) {
7540
7540
  m(), f.value = !1;
7541
- const h = (0, d.toValue)(e.slide);
7542
- if (!h || !p()) return r = null, c.mediaTimeNodeElementIds = /* @__PURE__ */ new Map(), c.mediaBookmarkTimesMs = /* @__PURE__ */ new Map(), t.value = /* @__PURE__ */ new Map(), n.value = "", o.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), void (a.value = !0);
7543
- const g = (0, d.toValue)(e.canvasSize);
7544
- if (r = u.PresentationAnimationController.fromSlide(h, {
7545
- slideHeightPx: g?.height,
7546
- slideWidthPx: g?.width,
7541
+ const g = (0, d.toValue)(e.slide);
7542
+ if (!g || !p()) return r = null, c.mediaTimeNodeElementIds = /* @__PURE__ */ new Map(), c.mediaBookmarkTimesMs = /* @__PURE__ */ new Map(), t.value = /* @__PURE__ */ new Map(), n.value = "", o.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), void (a.value = !0);
7543
+ const h = (0, d.toValue)(e.canvasSize);
7544
+ if (r = u.PresentationAnimationController.fromSlide(g, {
7545
+ slideHeightPx: h?.height,
7546
+ slideWidthPx: h?.width,
7547
7547
  themeColorMap: (0, d.toValue)(e.themeColorMap),
7548
7548
  pixelateMosaic: (0, d.toValue)(e.pixelateMosaicAnimation)
7549
- }), c.mediaTimeNodeElementIds = (0, u.resolveMediaTimeNodeElementIds)(h.nativeAnimations ?? []), c.mediaBookmarkTimesMs = (0, u.resolveMediaBookmarkTimesMs)(h.elements), n.value = r.keyframesCss, o.value = r.interactiveTriggerShapeIds, l.value = r.hoverTriggerShapeIds, t.value = r.computeStates(), v(), s?.completed) return f.value = r.hasMoreSteps(), r.completeAll(), t.value = r.computeStates(), void v();
7549
+ }), c.mediaTimeNodeElementIds = (0, u.resolveMediaTimeNodeElementIds)(g.nativeAnimations ?? []), c.mediaBookmarkTimesMs = (0, u.resolveMediaBookmarkTimesMs)(g.elements), n.value = r.keyframesCss, o.value = r.interactiveTriggerShapeIds, l.value = r.hoverTriggerShapeIds, t.value = r.computeStates(), v(), s?.completed) return f.value = r.hasMoreSteps(), r.completeAll(), t.value = r.computeStates(), void v();
7550
7550
  if (r.hasMoreSteps()) {
7551
7551
  const e = r.peekNext();
7552
7552
  if (e?.autoAdvance) {
@@ -7559,8 +7559,8 @@ function Tu(e) {
7559
7559
  }
7560
7560
  }
7561
7561
  return (0, d.watch)(() => [(0, d.toValue)(e.slide), (0, d.toValue)(e.showWithAnimation)], () => {
7562
- const e = h;
7563
- h = !1, g({ completed: e });
7562
+ const e = g;
7563
+ g = !1, h({ completed: e });
7564
7564
  }, { immediate: !0 }), (0, d.onScopeDispose)(m), {
7565
7565
  presentationElementStates: t,
7566
7566
  presentationKeyframesCss: n,
@@ -7569,14 +7569,14 @@ function Tu(e) {
7569
7569
  isComplete: a,
7570
7570
  seededCompleted: f,
7571
7571
  markNextEntryCompleted: () => {
7572
- h = !0;
7572
+ g = !0;
7573
7573
  },
7574
7574
  advance: function() {
7575
7575
  if (!p()) return !1;
7576
7576
  const e = (0, u.advanceMainSequence)(r, c, s);
7577
7577
  return v(), e;
7578
7578
  },
7579
- reset: g,
7579
+ reset: h,
7580
7580
  handleInteractiveShapeClick: function(e) {
7581
7581
  if (!r || !r.hasInteractiveSequence(e)) return !1;
7582
7582
  const t = r.advanceInteractive(e);
@@ -7934,10 +7934,10 @@ var Mu = ["data-pptx-transition-fragment"], zu = tl((0, d.defineComponent)({
7934
7934
  outgoingSlide: () => n.outgoingSlide,
7935
7935
  incomingSlide: () => n.incomingSlide,
7936
7936
  durationMs: () => a.value
7937
- }), v = (0, d.computed)(() => l.value.outgoingOnTop ? 2 : 1), f = (0, d.computed)(() => l.value.outgoingOnTop ? 1 : 2), h = (0, d.computed)(() => ({
7937
+ }), v = (0, d.computed)(() => l.value.outgoingOnTop ? 2 : 1), f = (0, d.computed)(() => l.value.outgoingOnTop ? 1 : 2), g = (0, d.computed)(() => ({
7938
7938
  zIndex: i.value ? 2 : v.value,
7939
7939
  animation: i.value ? void 0 : "none" !== l.value.outgoing ? l.value.outgoing : void 0
7940
- })), g = (0, d.computed)(() => ({ zIndex: 3 })), y = (0, d.computed)(() => ({
7940
+ })), h = (0, d.computed)(() => ({ zIndex: 3 })), y = (0, d.computed)(() => ({
7941
7941
  zIndex: i.value ? 1 : f.value,
7942
7942
  animation: i.value ? void 0 : "none" !== l.value.incoming ? l.value.incoming : void 0
7943
7943
  }));
@@ -7969,7 +7969,7 @@ var Mu = ["data-pptx-transition-fragment"], zu = tl((0, d.defineComponent)({
7969
7969
  "data-pptx-transition-layer": "outgoing",
7970
7970
  "data-pptx-morph-outgoing": (0, d.unref)(i) ? "true" : void 0,
7971
7971
  "data-pptx-transition-fragments": !(0, d.unref)(i) && r.value?.outgoing ? r.value.outgoing.keyframesName : void 0,
7972
- style: (0, d.normalizeStyle)(h.value)
7972
+ style: (0, d.normalizeStyle)(g.value)
7973
7973
  }, [!(0, d.unref)(i) && r.value?.outgoing ? ((0, d.openBlock)(), (0, d.createBlock)(zu, {
7974
7974
  key: 0,
7975
7975
  layer: r.value.outgoing,
@@ -8036,7 +8036,7 @@ var Mu = ["data-pptx-transition-fragment"], zu = tl((0, d.defineComponent)({
8036
8036
  ]))], 12, Wu),
8037
8037
  (0, d.createVNode)(Vu, {
8038
8038
  "lifted-slide": (0, d.unref)(c),
8039
- "lifted-layer-style": g.value,
8039
+ "lifted-layer-style": h.value,
8040
8040
  "crossfade-groups": (0, d.unref)(p),
8041
8041
  "canvas-size": e.canvasSize,
8042
8042
  "media-data-urls": e.mediaDataUrls,
@@ -8074,14 +8074,14 @@ function Ku(e = {}) {
8074
8074
  p.value += 1;
8075
8075
  }, n));
8076
8076
  }
8077
- const h = (0, d.computed)(() => (p.value, o.value ? Gu(s.value, t(), c, u) : 0)), g = (0, d.computed)(() => (p.value, o.value ? Gu(i.value, t()) : 0)), y = (0, d.computed)(() => Object.values(r.value).reduce((e, t) => e + t, 0));
8077
+ const g = (0, d.computed)(() => (p.value, o.value ? Gu(s.value, t(), c, u) : 0)), h = (0, d.computed)(() => (p.value, o.value ? Gu(i.value, t()) : 0)), y = (0, d.computed)(() => Object.values(r.value).reduce((e, t) => e + t, 0));
8078
8078
  return (0, d.onScopeDispose)(v), {
8079
8079
  rehearsing: o,
8080
8080
  paused: l,
8081
8081
  showSummary: a,
8082
8082
  recordedTimings: r,
8083
- slideElapsedMs: h,
8084
- totalElapsedMs: g,
8083
+ slideElapsedMs: g,
8084
+ totalElapsedMs: h,
8085
8085
  totalRecordedMs: y,
8086
8086
  start: function() {
8087
8087
  const e = t();
@@ -8216,10 +8216,10 @@ var Qu = {
8216
8216
  function ed(e) {
8217
8217
  const { slides: t, templateElements: n, enabled: o = !0, intervalMs: l, onSave: a, paused: r } = e, i = e.timers ?? Qu, s = (0, d.ref)("idle"), c = (0, d.ref)(null), p = (0, d.ref)(!1);
8218
8218
  let m = null, v = null, f = null;
8219
- const h = () => !1 !== (0, d.toValue)(o), g = () => {
8219
+ const g = () => !1 !== (0, d.toValue)(o), h = () => {
8220
8220
  null !== m && (i.clearTimer(m), m = null);
8221
8221
  }, y = async () => {
8222
- v && await v.catch(() => {}), g(), s.value = "saving";
8222
+ v && await v.catch(() => {}), h(), s.value = "saving";
8223
8223
  const e = (async () => {
8224
8224
  try {
8225
8225
  await a(), c.value = Date.now(), p.value = !1, f = null, s.value = "saved";
@@ -8234,22 +8234,22 @@ function ed(e) {
8234
8234
  v = null;
8235
8235
  }
8236
8236
  }, k = () => {
8237
- g();
8237
+ h();
8238
8238
  const e = (0, u.nextAutosaveDelayMs)({
8239
8239
  intervalMs: (0, d.toValue)(l),
8240
8240
  firstDirtyAt: f,
8241
8241
  now: Date.now()
8242
8242
  });
8243
8243
  m = i.setTimer(() => {
8244
- m = null, h() && p.value && y().catch(() => {});
8244
+ m = null, g() && p.value && y().catch(() => {});
8245
8245
  }, e);
8246
8246
  };
8247
8247
  return (0, d.watch)(n ? [t, n] : [t], () => {
8248
- r?.value || (p.value && null !== f || (f = Date.now()), p.value = !0, h() && k());
8248
+ r?.value || (p.value && null !== f || (f = Date.now()), p.value = !0, g() && k());
8249
8249
  }, { flush: "sync" }), (0, d.watch)(() => (0, d.toValue)(l), () => {
8250
8250
  null !== m && k();
8251
8251
  }), (0, d.onScopeDispose)(() => {
8252
- g();
8252
+ h();
8253
8253
  }), {
8254
8254
  status: s,
8255
8255
  lastSavedAt: c,
@@ -8258,91 +8258,99 @@ function ed(e) {
8258
8258
  };
8259
8259
  }
8260
8260
  function td(e, t) {
8261
- const n = (0, d.ref)(!1), o = (0, u.createCollaborationLivePatcher)();
8262
- let l = null, a = null, r = null, i = !1, s = "", c = null, p = null;
8263
- const m = (0, u.createWriteBackScheduler)({
8264
- getYDoc: () => l,
8261
+ const n = (0, d.ref)(!1), o = (0, d.ref)(!1), l = (0, u.createCollaborationLivePatcher)();
8262
+ let a = null, r = null, i = null, s = !1, c = "", p = null, m = null;
8263
+ const v = (0, u.createWriteBackScheduler)({
8264
+ getYDoc: () => a,
8265
8265
  serialize: e.serialize,
8266
8266
  getSourceBytes: e.getSourceBytes,
8267
8267
  getTemplateElements: e.getTemplateElements,
8268
8268
  mergeTemplateElements: u.buildSaveSlides,
8269
8269
  getSaveOptions: e.getSaveOptions
8270
- }), v = (0, u.createSyncGate)(f);
8271
- function f() {
8272
- if (!l || !a || !r || i || !v.isOpen()) return;
8270
+ }), f = (0, u.createSyncGate)(() => {
8271
+ o.value = !0, h();
8272
+ }), g = {
8273
+ ...f,
8274
+ reset: () => {
8275
+ f.reset(), o.value = !1;
8276
+ }
8277
+ };
8278
+ function h() {
8279
+ if (!a || !r || !i || s || !g.isOpen()) return;
8273
8280
  if (e.slidesPaused?.()) return;
8274
- if ("viewer" === r.role || r.externalSession && !r.externalSession.getSnapshot().synced) return;
8281
+ if ("viewer" === i.role || i.externalSession && !i.externalSession.getSnapshot().synced) return;
8275
8282
  const t = JSON.stringify(e.slides.value);
8276
- t !== s && (s = t, (0, u.reconcileSlidesInYDoc)(e.slides.value, l, a), m.schedule(r));
8283
+ t !== c && (c = t, (0, u.reconcileSlidesInYDoc)(e.slides.value, a, r), v.schedule(i));
8277
8284
  }
8278
- function h(t) {
8279
- s = JSON.stringify(t), i = !0;
8285
+ function y(t) {
8286
+ c = JSON.stringify(t), s = !0;
8280
8287
  try {
8281
8288
  e.onRemoteSlides(t);
8282
8289
  } finally {
8283
- i = !1;
8290
+ s = !1;
8284
8291
  }
8285
8292
  }
8286
- const g = (0, d.watch)(e.slides, f, { deep: !1 }), y = e.loadVersion ? (k = {
8293
+ const k = (0, d.watch)(e.slides, h, { deep: !1 }), x = e.loadVersion ? (b = {
8287
8294
  loadVersion: e.loadVersion,
8288
- getYDoc: () => l,
8289
- isConnected: () => !r?.externalSession && "connected" === t.value,
8295
+ getYDoc: () => a,
8296
+ isConnected: () => !i?.externalSession && "connected" === t.value,
8290
8297
  getLoadOrigin: e.getLoadOrigin,
8291
- adoptDocSlides: h
8292
- }, (0, d.watch)(k.loadVersion, () => {
8293
- const e = k.getYDoc();
8294
- if (!e || !k.isConnected()) return;
8298
+ adoptDocSlides: y
8299
+ }, (0, d.watch)(b.loadVersion, () => {
8300
+ const e = b.getYDoc();
8301
+ if (!e || !b.isConnected()) return;
8295
8302
  const t = (0, u.readSlidesFromYDoc)(e);
8296
- (0, u.shouldRoomSlidesReplaceLoad)(k.getLoadOrigin?.(), t.length) && k.adoptDocSlides(t);
8303
+ (0, u.shouldRoomSlidesReplaceLoad)(b.getLoadOrigin?.(), t.length) && b.adoptDocSlides(t);
8297
8304
  }, { flush: "sync" })) : null;
8298
- var k;
8299
- const x = e.loadVersion ? (0, d.watch)(e.loadVersion, () => {
8300
- c?.handleLoad(e.getLoadOrigin?.() ?? "user");
8305
+ var b;
8306
+ const S = e.loadVersion ? (0, d.watch)(e.loadVersion, () => {
8307
+ p?.handleLoad(e.getLoadOrigin?.() ?? "user");
8301
8308
  }, { flush: "sync" }) : null;
8302
- function b() {
8303
- c?.(), c = null, p?.(), p = null, v.reset(), m.cancel(), o.configure(null, null), l = null, a = null, r = null, i = !1, s = "", n.value = !1;
8309
+ function w() {
8310
+ p?.(), p = null, m?.(), m = null, g.reset(), v.cancel(), l.configure(null, null), a = null, r = null, i = null, s = !1, c = "", n.value = !1;
8304
8311
  }
8305
8312
  return {
8306
8313
  readOnly: n,
8307
- livePatcher: o,
8308
- gate: v,
8314
+ synced: o,
8315
+ livePatcher: l,
8316
+ gate: g,
8309
8317
  begin: function(e) {
8310
- r = e, n.value = "viewer" === e.role || Boolean(e.externalSession);
8311
- },
8312
- attach: function(e, d) {
8313
- if (l = e, a = d, !r) return;
8314
- const g = r;
8315
- if (g.externalSession) return void (c = (0, u.observeExternalCollaborationReadiness)(g.externalSession, {
8316
- gate: v,
8317
- livePatcher: o,
8318
- factories: a,
8319
- role: g.role,
8320
- sessionIntent: g.sessionIntent,
8318
+ i = e, n.value = "viewer" === e.role || Boolean(e.externalSession);
8319
+ },
8320
+ attach: function(e, o) {
8321
+ if (a = e, r = o, !i) return;
8322
+ const d = i;
8323
+ if (d.externalSession) return void (p = (0, u.observeExternalCollaborationReadiness)(d.externalSession, {
8324
+ gate: g,
8325
+ livePatcher: l,
8326
+ factories: r,
8327
+ role: d.role,
8328
+ sessionIntent: d.sessionIntent,
8321
8329
  onStatus: (e) => {
8322
8330
  t.value = e;
8323
8331
  },
8324
8332
  adoptSlides: (e) => {
8325
- h(e), m.schedule(g);
8333
+ y(e), v.schedule(d);
8326
8334
  },
8327
8335
  onReady: ({ seedEmptyRoom: e }) => {
8328
- e && (s = ""), f();
8336
+ e && (c = ""), h();
8329
8337
  },
8330
- onSuspend: () => m.cancel(),
8338
+ onSuspend: () => v.cancel(),
8331
8339
  onReadOnlyChange: (e) => {
8332
8340
  n.value = e;
8333
8341
  }
8334
8342
  }));
8335
- o.configure("viewer" === g.role ? null : l, a), p = (0, u.observeYDocSlides)(l, (e, t) => {
8336
- if (t?.origin === u.LOCAL_SYNC_ORIGIN || i || !l) return;
8337
- const n = (0, u.readSlidesFromYDoc)(l);
8338
- n.length && (h(n), m.schedule(g));
8343
+ l.configure("viewer" === d.role ? null : a, r), m = (0, u.observeYDocSlides)(a, (e, t) => {
8344
+ if (t?.origin === u.LOCAL_SYNC_ORIGIN || s || !a) return;
8345
+ const n = (0, u.readSlidesFromYDoc)(a);
8346
+ n.length && (y(n), v.schedule(d));
8339
8347
  });
8340
- const y = (0, u.readSlidesFromYDoc)(l);
8341
- y.length && h(y);
8348
+ const f = (0, u.readSlidesFromYDoc)(a);
8349
+ f.length && y(f);
8342
8350
  },
8343
- stop: b,
8351
+ stop: w,
8344
8352
  dispose: () => {
8345
- b(), g(), y?.(), x?.();
8353
+ w(), k(), x?.(), S?.();
8346
8354
  }
8347
8355
  };
8348
8356
  }
@@ -8353,7 +8361,7 @@ function od(e) {
8353
8361
  return t > 0 ? t : nd;
8354
8362
  }
8355
8363
  function ld(e) {
8356
- const t = (0, d.ref)([]), n = (0, d.ref)([]), o = (0, d.ref)([]), l = (0, d.ref)(null), a = (0, d.computed)(() => t.value.find((e) => e.clientId === l.value)?.activeSlide ?? null), r = (0, d.computed)(() => t.value.find((e) => "owner" === e.role)?.activeSlide ?? null), i = function() {
8364
+ const t = (0, d.ref)([]), n = (0, d.ref)([]), o = (0, d.ref)([]), l = (0, d.ref)(null), a = (0, d.ref)(null), r = (0, d.computed)(() => t.value.find((e) => e.clientId === l.value)?.activeSlide ?? null), i = (0, d.computed)(() => t.value.find((e) => "owner" === e.role)?.activeSlide ?? null), s = function() {
8357
8365
  const e = (0, u.createPresenceProjector)();
8358
8366
  let t = [];
8359
8367
  return {
@@ -8387,37 +8395,38 @@ function ld(e) {
8387
8395
  }
8388
8396
  };
8389
8397
  }();
8390
- let s = null, c = null, p = 0, m = null;
8391
- function v() {
8392
- if (!s) return;
8393
- const a = i.project(s.getStates(), s.clientID ?? -1, od(e.canvasWidth), od(e.canvasHeight), p);
8398
+ let c = null, p = null, m = 0, v = null;
8399
+ function f() {
8400
+ if (!c) return;
8401
+ const a = s.project(c.getStates(), c.clientID ?? -1, od(e.canvasWidth), od(e.canvasHeight), m);
8394
8402
  a.changed && (t.value = a.presences, n.value = a.remoteUsers, o.value = a.cursors, null === l.value || a.presences.some((e) => e.clientId === l.value) || (l.value = null));
8395
8403
  }
8396
8404
  return {
8405
+ localClientId: a,
8397
8406
  remoteUsers: n,
8398
8407
  remotePresences: t,
8399
8408
  cursors: o,
8400
8409
  followedClientId: l,
8401
- followedSlideIndex: a,
8402
- broadcasterSlideIndex: r,
8410
+ followedSlideIndex: r,
8411
+ broadcasterSlideIndex: i,
8403
8412
  start: function(t, n) {
8404
- s = t, c = (0, u.createPresencePublisher)(t, {
8413
+ c = t, a.value = t.clientID ?? null, p = (0, u.createPresencePublisher)(t, {
8405
8414
  userName: n.userName,
8406
8415
  userColor: e.userColor ?? n.userColor ?? (0, u.assignUserColor)(n.userName),
8407
8416
  userAvatar: n.userAvatar,
8408
8417
  role: n.role
8409
- }), t.on("change", v), t.on("update", v), m = setInterval(() => c?.flush(), u.PRESENCE_HEARTBEAT_MS), v();
8418
+ }), t.on("change", f), t.on("update", f), v = setInterval(() => p?.flush(), u.PRESENCE_HEARTBEAT_MS), f();
8410
8419
  },
8411
8420
  stop: function() {
8412
- null !== m && clearInterval(m), m = null, s?.off?.("change", v), s?.off?.("update", v), c?.dispose(), c = null, s = null, p = 0, i.reset(), t.value = [], n.value = [], o.value = [], l.value = null;
8421
+ null !== v && clearInterval(v), v = null, c?.off?.("change", f), c?.off?.("update", f), p?.dispose(), p = null, c = null, m = 0, s.reset(), t.value = [], n.value = [], o.value = [], l.value = null, a.value = null;
8413
8422
  },
8414
- setCursor: (e, t) => c?.update({
8423
+ setCursor: (e, t) => p?.update({
8415
8424
  cursorX: e,
8416
8425
  cursorY: t
8417
8426
  }),
8418
- setSelection: (e) => c?.update({ selectedElementId: e[0] }),
8427
+ setSelection: (e) => p?.update({ selectedElementId: e[0] }),
8419
8428
  setActiveSlide: (e) => {
8420
- p = Math.max(0, Math.floor(e)), c?.update({ activeSlideIndex: p }), v();
8429
+ m = Math.max(0, Math.floor(e)), p?.update({ activeSlideIndex: m }), f();
8421
8430
  },
8422
8431
  followUser: (e) => {
8423
8432
  l.value = e;
@@ -8425,48 +8434,64 @@ function ld(e) {
8425
8434
  };
8426
8435
  }
8427
8436
  function ad(e) {
8428
- const t = (0, d.ref)("disconnected"), n = (0, d.computed)(() => "connected" === t.value), o = (0, d.ref)(!1), l = (0, d.shallowRef)(null), a = (0, d.ref)(void 0), r = ld(e), i = td(e, t), s = (0, d.computed)(() => (0, u.resolveCollaborationShellState)({
8437
+ const t = () => (0, u.resolveCollaborationConfig)((0, d.toValue)(e.collaboration)), n = (0, d.ref)("disconnected"), o = (0, d.computed)(() => "connected" === n.value), l = (0, d.ref)(!1), a = (0, d.shallowRef)(null), r = (0, d.ref)(void 0), i = ld(e), s = td(e, n), c = (0, d.computed)(() => (0, u.resolveCollaborationShellState)({
8429
8438
  authorizedCanEdit: (0, d.toValue)(e.canEdit) ?? !0,
8430
- configured: Boolean((0, d.toValue)(e.collaboration) || l.value),
8431
- readOnly: i.readOnly.value,
8439
+ configured: Boolean(t() || a.value),
8440
+ readOnly: s.readOnly.value,
8432
8441
  sourcePending: (0, d.toValue)(e.sourcePending) ?? !1,
8433
8442
  sourceError: (0, d.toValue)(e.sourceError) ?? !1,
8434
- status: t.value,
8435
- remoteUsers: r.remoteUsers.value
8436
- })), c = (0, d.computed)(() => r.remotePresences.value.length + (o.value ? 1 : 0));
8437
- let p = null, m = null, v = null, f = null, h = null, g = 0;
8438
- async function y(e) {
8439
- k();
8440
- const n = ++g;
8441
- h = e, l.value = e, a.value = e.role, i.begin(e);
8442
- const s = e.externalSession;
8443
+ status: n.value,
8444
+ remoteUsers: i.remoteUsers.value
8445
+ })), p = (0, d.computed)(() => (0, u.buildCollaborationState)({
8446
+ active: l.value,
8447
+ roomId: a.value?.roomId,
8448
+ status: n.value,
8449
+ synced: s.synced.value,
8450
+ clientId: i.localClientId.value,
8451
+ userName: a.value?.userName,
8452
+ userColor: e.userColor ?? a.value?.userColor,
8453
+ remoteUsers: i.remoteUsers.value
8454
+ })), m = (0, d.computed)(() => i.remotePresences.value.length + (l.value ? 1 : 0));
8455
+ let v = null, f = null, g = null, h = null, y = null, k = null, x = 0;
8456
+ async function b(e) {
8457
+ S();
8458
+ const t = ++x;
8459
+ y = e, a.value = e, r.value = e.role, s.begin(e);
8460
+ let o = e;
8443
8461
  try {
8444
- (0, u.validateRoomId)(e.roomId);
8445
- const l = e.transport ?? (0, u.resolveTransportForServerUrl)(e.serverUrl);
8446
- if (!s && "websocket" === l && (0, u.isMixedContentBlocked)(e.serverUrl)) throw new Error("Mixed-content connection blocked");
8447
- t.value = "connecting";
8448
- const a = await import("yjs");
8449
- if (n !== g) return;
8450
- const c = s ? null : new a.Doc(), d = s?.doc ?? c;
8451
- p = c;
8452
- const h = {
8453
- createMap: () => new a.Map(),
8454
- createArray: () => new a.Array(),
8455
- createText: () => new a.Text(),
8462
+ if ((0, u.validateRoomId)(e.roomId), (0, u.needsOwnedSession)(e)) {
8463
+ n.value = "connecting";
8464
+ const l = (0, u.openOwnedCollaboration)(e);
8465
+ k = l.release;
8466
+ const a = await l.ready;
8467
+ if (t !== x || !a) return;
8468
+ o = a, s.begin(o);
8469
+ }
8470
+ const a = o.externalSession, r = o.transport ?? (0, u.resolveTransportForServerUrl)(o.serverUrl);
8471
+ if (!a && "websocket" === r && (0, u.isMixedContentBlocked)(o.serverUrl)) throw new Error("Mixed-content connection blocked");
8472
+ n.value = "connecting";
8473
+ const c = await import("yjs");
8474
+ if (t !== x) return;
8475
+ const d = a ? null : new c.Doc(), p = a?.doc ?? d;
8476
+ v = d;
8477
+ const m = {
8478
+ createMap: () => new c.Map(),
8479
+ createArray: () => new c.Array(),
8480
+ createText: () => new c.Text(),
8456
8481
  createTextPositions: (e) => (0, u.createSnapshotTextPositions)(e, {
8457
- read: () => a.snapshot(d),
8458
- equal: a.equalSnapshots,
8459
- subscribeBeforeObservers: (e) => (d.on("beforeObserverCalls", e), () => d.off("beforeObserverCalls", e))
8482
+ read: () => c.snapshot(p),
8483
+ equal: c.equalSnapshots,
8484
+ subscribeBeforeObservers: (e) => (p.on("beforeObserverCalls", e), () => p.off("beforeObserverCalls", e))
8460
8485
  })
8461
8486
  };
8462
- if (s) {
8463
- const t = (0, u.borrowExternalCollaborationAwareness)(s.awareness);
8464
- v = t.dispose, r.start(t.awareness, e), o.value = !0, i.attach(d, h);
8487
+ if (a) {
8488
+ const e = (0, u.borrowExternalCollaborationAwareness)(a.awareness);
8489
+ g = e.dispose, i.start(e.awareness, o), l.value = !0, s.attach(p, m);
8465
8490
  return;
8466
8491
  }
8467
8492
  const y = await async function(e, t, n) {
8468
8493
  if ("webrtc" === e) {
8469
- const { WebrtcProvider: e } = await Promise.resolve().then(() => require("./y-webrtc-IBYiLa3c.cjs")), o = new e(t.roomId, n, {
8494
+ const { WebrtcProvider: e } = await Promise.resolve().then(() => require("./y-webrtc-Cb8v01f2.cjs")), o = new e(t.roomId, n, {
8470
8495
  signaling: t.signaling?.length ? t.signaling : void 0,
8471
8496
  password: t.authToken || void 0
8472
8497
  }), l = (0, u.createDepartureChannel)(t.roomId, o.awareness);
@@ -8498,62 +8523,63 @@ function ad(e) {
8498
8523
  a.announce(), a.dispose(), (0, u.clearLocalAwareness)(l.awareness), l.disconnect(), l.destroy();
8499
8524
  }
8500
8525
  };
8501
- }(l, e, c);
8502
- if (n !== g) return y.destroy(), void c.destroy();
8503
- m = y, r.start(y.awareness, e), i.attach(d, h), y.onSynced(() => i.gate.open()), y.syncedNow ? i.gate.open() : i.gate.arm(), y.onStatus((e) => {
8504
- e ? (null !== f && clearTimeout(f), f = null, t.value = "connected") : o.value && (t.value = "disconnected", i.gate.reset(), i.gate.arm());
8505
- }), "webrtc" === l || y.connectedNow ? t.value = "connected" : f = setTimeout(() => {
8506
- f = null, "connected" !== t.value && (k(), t.value = "error");
8507
- }, u.CONNECTION_TIMEOUT_MS), o.value = !0;
8526
+ }(r, o, d);
8527
+ if (t !== x) return y.destroy(), void d.destroy();
8528
+ f = y, i.start(y.awareness, o), s.attach(p, m), y.onSynced(() => s.gate.open()), y.syncedNow ? s.gate.open() : s.gate.arm(), y.onStatus((e) => {
8529
+ e ? (null !== h && clearTimeout(h), h = null, n.value = "connected") : l.value && (n.value = "disconnected", s.gate.reset(), s.gate.arm());
8530
+ }), "webrtc" === r || y.connectedNow ? n.value = "connected" : h = setTimeout(() => {
8531
+ h = null, "connected" !== n.value && (S(), n.value = "error");
8532
+ }, u.CONNECTION_TIMEOUT_MS), l.value = !0;
8508
8533
  } catch {
8509
- if (n !== g) return;
8510
- k(), t.value = "error";
8534
+ if (t !== x) return;
8535
+ S(), n.value = "error";
8511
8536
  }
8512
8537
  }
8513
- function k() {
8514
- g++, i.stop(), null !== f && clearTimeout(f), f = null, r.stop(), v?.(), v = null, m?.destroy(), p?.destroy(), m = null, p = null, t.value = "disconnected", o.value = !1, l.value = null, a.value = void 0;
8538
+ function S() {
8539
+ x++, s.stop(), null !== h && clearTimeout(h), h = null, i.stop(), g?.(), g = null, k?.(), k = null, f?.destroy(), v?.destroy(), f = null, v = null, n.value = "disconnected", l.value = !1, a.value = null, r.value = void 0;
8515
8540
  }
8516
- async function x() {
8517
- h && await y(h);
8541
+ async function w() {
8542
+ y && await b(y);
8518
8543
  }
8519
- (0, d.watch)(() => (0, d.toValue)(e.collaboration), (e) => {
8520
- e && e !== l.value ? y(e) : !e && l.value && k();
8544
+ (0, d.watch)(t, (e) => {
8545
+ e && e !== a.value ? b(e) : !e && a.value && S();
8521
8546
  }, { immediate: !0 });
8522
- const b = (0, u.registerCollaborationTeardown)({
8523
- leave: k,
8547
+ const E = (0, u.registerCollaborationTeardown)({
8548
+ leave: S,
8524
8549
  rejoin: () => {
8525
- x();
8550
+ w();
8526
8551
  },
8527
- leaveOnBeforeUnload: () => !h?.externalSession
8552
+ leaveOnBeforeUnload: () => !y?.externalSession
8528
8553
  });
8529
8554
  return (0, d.onScopeDispose)(() => {
8530
- b(), k(), i.dispose();
8555
+ E(), S(), s.dispose();
8531
8556
  }), {
8532
- shellState: s,
8533
- activeCollaboration: l,
8534
- status: t,
8535
- connected: n,
8536
- active: o,
8537
- activeRole: a,
8538
- connectedCount: c,
8539
- readOnly: i.readOnly,
8540
- cursors: r.cursors,
8541
- remotePresences: r.remotePresences,
8542
- followedClientId: r.followedClientId,
8543
- followedSlideIndex: r.followedSlideIndex,
8544
- broadcasterSlideIndex: r.broadcasterSlideIndex,
8545
- setCursor: r.setCursor,
8546
- setSelection: r.setSelection,
8547
- setActiveSlide: r.setActiveSlide,
8548
- followUser: r.followUser,
8549
- start: y,
8550
- stop: k,
8551
- retry: x,
8552
- livePatcher: i.livePatcher
8557
+ state: p,
8558
+ shellState: c,
8559
+ activeCollaboration: a,
8560
+ status: n,
8561
+ connected: o,
8562
+ active: l,
8563
+ activeRole: r,
8564
+ connectedCount: m,
8565
+ readOnly: s.readOnly,
8566
+ cursors: i.cursors,
8567
+ remotePresences: i.remotePresences,
8568
+ followedClientId: i.followedClientId,
8569
+ followedSlideIndex: i.followedSlideIndex,
8570
+ broadcasterSlideIndex: i.broadcasterSlideIndex,
8571
+ setCursor: i.setCursor,
8572
+ setSelection: i.setSelection,
8573
+ setActiveSlide: i.setActiveSlide,
8574
+ followUser: i.followUser,
8575
+ start: b,
8576
+ stop: S,
8577
+ retry: w,
8578
+ livePatcher: s.livePatcher
8553
8579
  };
8554
8580
  }
8555
8581
  function rd(e) {
8556
- const { slides: t, loadVersion: n, getLoadOrigin: o, getTemplateElements: l, getSourceBytes: a, getSaveOptions: r, initialUserColor: i, canvasWidth: s, canvasHeight: c, collaborationProp: p, selectedElementIds: m, activeSlideIndex: v, goTo: f, effectiveZoom: h, authorName: g, onStartCollaboration: y, onStopCollaboration: k } = e, x = ad({
8582
+ const { slides: t, loadVersion: n, getLoadOrigin: o, getTemplateElements: l, getSourceBytes: a, getSaveOptions: r, initialUserColor: i, canvasWidth: s, canvasHeight: c, collaborationProp: p, selectedElementIds: m, activeSlideIndex: v, goTo: f, effectiveZoom: g, authorName: h, onStartCollaboration: y, onStopCollaboration: k } = e, x = ad({
8557
8583
  collaboration: p,
8558
8584
  slides: t,
8559
8585
  loadVersion: n,
@@ -8602,7 +8628,7 @@ function rd(e) {
8602
8628
  const t = e.currentTarget?.querySelector(".pptx-vue-stage");
8603
8629
  if (!t) return;
8604
8630
  const n = t.getBoundingClientRect();
8605
- x.setCursor((e.clientX - n.left) / h.value, (e.clientY - n.top) / h.value);
8631
+ x.setCursor((e.clientX - n.left) / g.value, (e.clientY - n.top) / g.value);
8606
8632
  },
8607
8633
  broadcastOpen: E,
8608
8634
  broadcastViewerUrl: (0, d.computed)(() => {
@@ -8614,7 +8640,7 @@ function rd(e) {
8614
8640
  B.value = e;
8615
8641
  const t = {
8616
8642
  ...e,
8617
- userName: g() ?? "Presenter",
8643
+ userName: h() ?? "Presenter",
8618
8644
  role: "owner"
8619
8645
  };
8620
8646
  w.value = t, x.start(t), y(t), E.value = !1;
@@ -8776,7 +8802,7 @@ function ud(e, t, n) {
8776
8802
  }
8777
8803
  }
8778
8804
  function dd(e) {
8779
- const { t } = Xo(), { canEdit: n, findActiveElement: o, tableSelection: l, hasClipboard: a, canGroup: r, selectionGroupable: i, editTemplateMode: s, selectedElementIds: c, inlineEditingElementId: p, inspectorOpen: m, enterInlineEdit: v, ops: f, cutElement: h, copyElement: g, pasteElement: y, onGroup: k, onUngroup: x, openHyperlinkDialog: b, onAddComment: S, aiEnabled: w, onAskAi: E, onFixAi: B, onEmptyCanvasContextMenu: C, customization: I, onEditPoints: P, mergeCrop: T, chartFormat: _ } = e, O = (0, d.ref)({
8805
+ const { t } = Xo(), { canEdit: n, findActiveElement: o, tableSelection: l, hasClipboard: a, canGroup: r, selectionGroupable: i, editTemplateMode: s, selectedElementIds: c, inlineEditingElementId: p, inspectorOpen: m, enterInlineEdit: v, ops: f, cutElement: g, copyElement: h, pasteElement: y, onGroup: k, onUngroup: x, openHyperlinkDialog: b, onAddComment: S, aiEnabled: w, onAskAi: E, onFixAi: B, onEmptyCanvasContextMenu: C, customization: I, onEditPoints: P, mergeCrop: T, chartFormat: _ } = e, O = (0, d.ref)({
8780
8806
  open: !1,
8781
8807
  x: 0,
8782
8808
  y: 0,
@@ -8859,10 +8885,10 @@ function dd(e) {
8859
8885
  const n = O.value.elementId;
8860
8886
  if (n) switch (e) {
8861
8887
  case "cut":
8862
- h(n);
8888
+ g(n);
8863
8889
  break;
8864
8890
  case "copy":
8865
- g(n);
8891
+ h(n);
8866
8892
  break;
8867
8893
  case "paste":
8868
8894
  y();
@@ -9117,17 +9143,17 @@ function fd(e, t, n) {
9117
9143
  }
9118
9144
  };
9119
9145
  }
9120
- function hd(e, t) {
9146
+ function gd(e, t) {
9121
9147
  return 0 === t.size ? e : (0, u.applyReroutedConnectors)(e, (0, u.rerouteConnectorsForMovedElements)(e, t));
9122
9148
  }
9123
- function gd(e) {
9149
+ function hd(e) {
9124
9150
  const { slides: t, activeSlideIndex: n, templateElementsBySlideId: o } = e;
9125
9151
  return function(e) {
9126
9152
  if (0 === e.size) return;
9127
9153
  const l = n.value, a = function(e, t, n) {
9128
9154
  const o = e[t];
9129
9155
  if (!o) return e;
9130
- const l = hd(o.elements, n);
9156
+ const l = gd(o.elements, n);
9131
9157
  if (l === o.elements) return e;
9132
9158
  const a = e.slice();
9133
9159
  return a[t] = {
@@ -9138,12 +9164,12 @@ function gd(e) {
9138
9164
  a !== t.value && (t.value = a);
9139
9165
  const r = t.value[l], i = r ? o.value[r.id] : void 0;
9140
9166
  if (!r || !i) return;
9141
- const s = hd(i, e);
9167
+ const s = gd(i, e);
9142
9168
  s !== i && (o.value = (0, u.setTemplateElements)(o.value, r.id, s));
9143
9169
  };
9144
9170
  }
9145
9171
  function yd(e) {
9146
- const { canEdit: t, hasSelection: n, presenting: o, findOpen: l, selectedElementIds: a, activeSlide: r, activeSlideIndex: i, slides: s, templateElementsBySlideId: c, pushHistory: p, undo: m, redo: v, copyElement: f, cutElement: h, pasteElement: g, onPasteSpecial: k, duplicateSelected: x, deleteSelected: b, goPrev: S, goNext: w, onEscape: E, onGroup: B, onUngroup: C, presentFromBeginning: I, startPresenting: P, inlineEditingElementId: T, tableEditorIsEditing: _, activeTool: O, selectedElements: D, selectElement: N, ribbonUpdateTextStyle: L, addSlide: A, openHyperlinkForSelection: F, toggleFormatPainter: M, applyFormatToTarget: z, cancelFormatPainter: R } = e, V = (0, d.ref)(!1);
9172
+ const { canEdit: t, hasSelection: n, presenting: o, findOpen: l, selectedElementIds: a, activeSlide: r, activeSlideIndex: i, slides: s, templateElementsBySlideId: c, pushHistory: p, undo: m, redo: v, copyElement: f, cutElement: g, pasteElement: h, onPasteSpecial: k, duplicateSelected: x, deleteSelected: b, goPrev: S, goNext: w, onEscape: E, onGroup: B, onUngroup: C, presentFromBeginning: I, startPresenting: P, inlineEditingElementId: T, tableEditorIsEditing: _, activeTool: O, selectedElements: D, selectElement: N, ribbonUpdateTextStyle: L, addSlide: A, openHyperlinkForSelection: F, toggleFormatPainter: M, applyFormatToTarget: z, cancelFormatPainter: R } = e, V = (0, d.ref)(!1);
9147
9173
  function j() {
9148
9174
  a.value = (r.value?.elements ?? []).map((e) => e.id);
9149
9175
  }
@@ -9153,10 +9179,10 @@ function yd(e) {
9153
9179
  }
9154
9180
  function W() {
9155
9181
  const e = a.value[0];
9156
- e && h(e);
9182
+ e && g(e);
9157
9183
  }
9158
9184
  const U = function(e) {
9159
- const { selectedElementIds: t, activeSlideIndex: n, slides: o, templateElementsBySlideId: l, pushHistory: a } = e, r = gd({
9185
+ const { selectedElementIds: t, activeSlideIndex: n, slides: o, templateElementsBySlideId: l, pushHistory: a } = e, r = hd({
9160
9186
  slides: o,
9161
9187
  activeSlideIndex: n,
9162
9188
  templateElementsBySlideId: l
@@ -9213,7 +9239,7 @@ function yd(e) {
9213
9239
  redo: v,
9214
9240
  copy: $,
9215
9241
  cut: W,
9216
- paste: g,
9242
+ paste: h,
9217
9243
  duplicate: x,
9218
9244
  delete: b,
9219
9245
  selectAll: j,
@@ -9400,7 +9426,7 @@ function xd(e) {
9400
9426
  l.value = (0, u.removeGuide)(l.value, e);
9401
9427
  }
9402
9428
  };
9403
- }(c), { snapToShape: f, snapToGrid: h, snapLines: g, guides: k } = v, x = {
9429
+ }(c), { snapToShape: f, snapToGrid: g, snapLines: h, guides: k } = v, x = {
9404
9430
  slides: i,
9405
9431
  activeSlideIndex: r,
9406
9432
  templateElementsBySlideId: s
@@ -9423,7 +9449,7 @@ function xd(e) {
9423
9449
  elements: c
9424
9450
  }, t.value = d;
9425
9451
  };
9426
- }(x), S = gd(x);
9452
+ }(x), S = hd(x);
9427
9453
  let w = null, E = !0, B = !1;
9428
9454
  const C = (0, u.createGestureController)({
9429
9455
  getScale: () => o.value,
@@ -9452,17 +9478,17 @@ function xd(e) {
9452
9478
  E && n();
9453
9479
  },
9454
9480
  onPreview: (e, t) => {
9455
- g.value = t.map((e) => ({
9481
+ h.value = t.map((e) => ({
9456
9482
  axis: "v" === e.axis ? "x" : "y",
9457
9483
  position: e.position
9458
9484
  })), E && I(e);
9459
9485
  },
9460
9486
  onEnd: (e, t, n) => {
9461
- g.value.length > 0 && (g.value = []), !t && B && p(n), t && E && S(/* @__PURE__ */ new Set([n]));
9487
+ h.value.length > 0 && (h.value = []), !t && B && p(n), t && E && S(/* @__PURE__ */ new Set([n]));
9462
9488
  }
9463
9489
  });
9464
9490
  function I(e) {
9465
- const { x: n, y: o, width: l, height: a } = h.value && !e.rotation ? (0, u.snapBox)(e, m?.value ?? 8) : {
9491
+ const { x: n, y: o, width: l, height: a } = g.value && !e.rotation ? (0, u.snapBox)(e, m?.value ?? 8) : {
9466
9492
  x: e.x,
9467
9493
  y: e.y,
9468
9494
  width: e.width,
@@ -9699,7 +9725,7 @@ var Cd = {
9699
9725
  function Id(e) {
9700
9726
  const t = "string" == typeof e.name ? e.name.trim() : "";
9701
9727
  if (0 === t.length || Sd.test(t)) return null;
9702
- const n = e.bold ? "700" : "400", o = e.italic ? "italic" : "normal";
9728
+ const n = String((0, u.resolveFontWeight)(t, e.bold)), o = (0, u.resolveFontItalic)(t, e.italic) ? "italic" : "normal";
9703
9729
  if ("string" == typeof (l = e.dataUrl) && 0 !== l.length && (l.startsWith("blob:") || Ed.test(l))) {
9704
9730
  const l = e.format && wd.has(e.format) ? e.format : "truetype";
9705
9731
  return {
@@ -9716,14 +9742,14 @@ function Id(e) {
9716
9742
  if (e.rawFontData && e.rawFontData.length > 0 ? a = e.rawFontData : e.originalPartBytes && e.originalPartBytes.length > 0 && e.fontGuid && (a = (0, y.deobfuscateFont)(e.originalPartBytes, e.fontGuid)), !a || a.length < 4) return null;
9717
9743
  const r = (0, y.detectFontFormat)(a), i = wd.has(r) ? r : "truetype", s = Cd[i] ?? "font/ttf", c = new Uint8Array(a.length);
9718
9744
  c.set(a);
9719
- const u = new Blob([c], { type: s }), d = URL.createObjectURL(u);
9745
+ const d = new Blob([c], { type: s }), p = URL.createObjectURL(d);
9720
9746
  return {
9721
9747
  name: t,
9722
- url: d,
9748
+ url: p,
9723
9749
  format: i,
9724
9750
  weight: n,
9725
9751
  style: o,
9726
- objectUrl: d
9752
+ objectUrl: p
9727
9753
  };
9728
9754
  }
9729
9755
  function Pd(e) {
@@ -9742,13 +9768,13 @@ function Td(e) {
9742
9768
  const o = (e) => {
9743
9769
  if (Bd()) for (const t of e) URL.revokeObjectURL(t);
9744
9770
  }, l = (0, d.computed)(() => {
9745
- const n = (0, d.toValue)(e) ?? [], l = t, a = [], r = [];
9771
+ const n = (0, d.toValue)(e) ?? [], l = t, a = [], r = [], i = new Set((0, u.selectTrustedEmbeddedFonts)(n));
9746
9772
  for (const e of n) {
9747
9773
  const t = Id(e);
9748
- t && (r.push(t), t.objectUrl && a.push(t.objectUrl));
9774
+ t && (t.registered = i.has(e), r.push(t), t.objectUrl && a.push(t.objectUrl));
9749
9775
  }
9750
9776
  return t = a, o(l), r;
9751
- }), a = (0, d.computed)(() => l.value.map(Pd).join("\n\n")), r = (0, d.computed)(() => {
9777
+ }), a = (0, d.computed)(() => l.value.filter((e) => e.registered).map(Pd).join("\n\n")), r = (0, d.computed)(() => {
9752
9778
  const e = /* @__PURE__ */ new Set(), t = [];
9753
9779
  for (const n of l.value) e.has(n.name) || (e.add(n.name), t.push((0, y.getSubstituteFontFamily)(n.name)));
9754
9780
  return t;
@@ -9933,10 +9959,10 @@ function jd(e) {
9933
9959
  n && (t.push(n), r.value = Math.round((e + 1) / s * 90));
9934
9960
  }
9935
9961
  if (0 === t.length) throw new Error("[useMediaExport] No slides were captured for GIF export");
9936
- const n = await l(), a = d?.[0], u = void 0 !== a && d?.every((e) => e === a) ? a : c, f = n(t, Math.max(1, Math.round(u / 10))), h = new ArrayBuffer(f.length);
9937
- new Uint8Array(h).set(f);
9938
- const g = new Blob([h], { type: "image/gif" });
9939
- return m?.(s, s), r.value = 95, i(g, `${Ld(e.fileName)}.gif`), r.value = 100, g;
9962
+ const n = await l(), a = d?.[0], u = void 0 !== a && d?.every((e) => e === a) ? a : c, f = n(t, Math.max(1, Math.round(u / 10))), g = new ArrayBuffer(f.length);
9963
+ new Uint8Array(g).set(f);
9964
+ const h = new Blob([g], { type: "image/gif" });
9965
+ return m?.(s, s), r.value = 95, i(h, `${Ld(e.fileName)}.gif`), r.value = 100, h;
9940
9966
  } finally {
9941
9967
  a.value = !1;
9942
9968
  }
@@ -9953,11 +9979,11 @@ function jd(e) {
9953
9979
  exportWebm: async function(o = {}) {
9954
9980
  const c = t.value;
9955
9981
  if (i.value || 0 === c) return;
9956
- const { slideDurationMs: d = Fd, slideTimingsMs: p, fps: m = Md, videoBitsPerSecond: v = zd, onProgress: f, onRecordProgress: h, signal: g } = o;
9982
+ const { slideDurationMs: d = Fd, slideTimingsMs: p, fps: m = Md, videoBitsPerSecond: v = zd, onProgress: f, onRecordProgress: g, signal: h } = o;
9957
9983
  i.value = !0, s.value = 0;
9958
9984
  try {
9959
9985
  const t = [];
9960
- for (let e = 0; e < c; e++) Vd(g), f?.(e, c), t.push(await n(e)), s.value = Math.round((e + 1) / c * 45);
9986
+ for (let e = 0; e < c; e++) Vd(h), f?.(e, c), t.push(await n(e)), s.value = Math.round((e + 1) / c * 45);
9961
9987
  if (0 === t.length) throw new Error("[useMediaExport] No slides were captured for video export");
9962
9988
  const o = t[0], i = a();
9963
9989
  i.width = o.width, i.height = o.height;
@@ -9981,12 +10007,12 @@ function jd(e) {
9981
10007
  try {
9982
10008
  const n = 1e3 / m;
9983
10009
  for (let e = 0; e < t.length; e++) {
9984
- if (g?.aborted) throw k.stop(), new DOMException("Export cancelled", "AbortError");
9985
- h?.(e, t.length);
10010
+ if (h?.aborted) throw k.stop(), new DOMException("Export cancelled", "AbortError");
10011
+ g?.(e, t.length);
9986
10012
  const o = p?.[e] ?? d, l = Math.max(1, Math.ceil(o / n));
9987
10013
  y.clearRect(0, 0, i.width, i.height), y.drawImage(t[e], 0, 0);
9988
10014
  for (let o = 0; o < l; o++) {
9989
- if (g?.aborted) throw k.stop(), new DOMException("Export cancelled", "AbortError");
10015
+ if (h?.aborted) throw k.stop(), new DOMException("Export cancelled", "AbortError");
9990
10016
  y.drawImage(t[e], 0, 0), await new Promise((e) => {
9991
10017
  setTimeout(e, n);
9992
10018
  });
@@ -10061,18 +10087,18 @@ function $d(e) {
10061
10087
  exportIndex: c,
10062
10088
  canvasSize: l,
10063
10089
  imageExportScale: i
10064
- }), h = Od({
10090
+ }), g = Od({
10065
10091
  slides: n,
10066
10092
  canvasSize: l,
10067
10093
  rasterizeSlide: m,
10068
10094
  rasterizeSlideToRaster: v,
10069
10095
  rasterizeSlideToTiles: f
10070
- }), g = jd({
10096
+ }), h = jd({
10071
10097
  slideCount: o,
10072
10098
  rasterizeSlide: m
10073
10099
  }), y = Dd({
10074
- exporter: h,
10075
- mediaExport: g
10100
+ exporter: g,
10101
+ mediaExport: h
10076
10102
  });
10077
10103
  return {
10078
10104
  exportStageRef: s,
@@ -10080,12 +10106,12 @@ function $d(e) {
10080
10106
  rasterizeSlide: m,
10081
10107
  rasterizeSlideToRaster: v,
10082
10108
  rasterizeSlideToTiles: f,
10083
- exporter: h,
10084
- mediaExport: g,
10109
+ exporter: g,
10110
+ mediaExport: h,
10085
10111
  exportProgressCtl: y,
10086
- isExporting: (0, d.computed)(() => h.exporting.value || g.exporting.value),
10112
+ isExporting: (0, d.computed)(() => g.exporting.value || h.exporting.value),
10087
10113
  onExportPng: function() {
10088
- h.exportSlidePng(a.value);
10114
+ g.exportSlidePng(a.value);
10089
10115
  },
10090
10116
  onExportPdf: function() {
10091
10117
  y.runPdf();
@@ -10405,12 +10431,12 @@ function Qd(e, t) {
10405
10431
  const n = (0, d.shallowRef)([]), o = (0, d.shallowRef)({}), l = (0, d.ref)({
10406
10432
  width: 1280,
10407
10433
  height: 720
10408
- }), a = (0, d.ref)(void 0), r = (0, d.shallowRef)(void 0), i = (0, d.shallowRef)(void 0), s = (0, d.shallowRef)([]), c = (0, d.shallowRef)([]), p = (0, d.shallowRef)(/* @__PURE__ */ new Map()), m = (0, d.ref)(!1), v = (0, d.ref)(null), f = (0, d.ref)(!1), h = (0, d.shallowRef)(null), g = (0, d.shallowRef)(void 0), k = (0, d.shallowRef)([]), x = (0, d.shallowRef)(void 0), b = (0, d.shallowRef)([]), S = (0, d.shallowRef)(void 0), w = (0, d.shallowRef)([]), E = (0, d.shallowRef)([]), B = (0, d.shallowRef)([]), C = (0, d.shallowRef)(void 0), I = (0, d.shallowRef)(void 0), P = (0, d.shallowRef)([]), T = (0, d.shallowRef)([]), _ = (0, d.shallowRef)([]), O = (0, d.shallowRef)([]), D = (0, d.shallowRef)([]), N = (0, d.shallowRef)({}), L = (0, d.shallowRef)(void 0), A = (0, d.shallowRef)(void 0), F = (0, d.shallowRef)(void 0), M = (0, d.shallowRef)(void 0), z = (0, d.shallowRef)(void 0), R = (0, d.shallowRef)([]), V = (0, d.ref)(void 0);
10434
+ }), a = (0, d.ref)(void 0), r = (0, d.shallowRef)(void 0), i = (0, d.shallowRef)(void 0), s = (0, d.shallowRef)([]), c = (0, d.shallowRef)([]), p = (0, d.shallowRef)(/* @__PURE__ */ new Map()), m = (0, d.ref)(!1), v = (0, d.ref)(null), f = (0, d.ref)(!1), g = (0, d.shallowRef)(null), h = (0, d.shallowRef)(void 0), k = (0, d.shallowRef)([]), x = (0, d.shallowRef)(void 0), b = (0, d.shallowRef)([]), S = (0, d.shallowRef)(void 0), w = (0, d.shallowRef)([]), E = (0, d.shallowRef)([]), B = (0, d.shallowRef)([]), C = (0, d.shallowRef)(void 0), I = (0, d.shallowRef)(void 0), P = (0, d.shallowRef)([]), T = (0, d.shallowRef)([]), _ = (0, d.shallowRef)([]), O = (0, d.shallowRef)([]), D = (0, d.shallowRef)([]), N = (0, d.shallowRef)({}), L = (0, d.shallowRef)(void 0), A = (0, d.shallowRef)(void 0), F = (0, d.shallowRef)(void 0), M = (0, d.shallowRef)(void 0), z = (0, d.shallowRef)(void 0), R = (0, d.shallowRef)([]), V = (0, d.ref)(void 0);
10409
10435
  let j = 0, $ = [];
10410
10436
  const W = (e) => {
10411
10437
  for (const t of e) t.startsWith("blob:") && URL.revokeObjectURL(t);
10412
10438
  }, U = async (e, r) => {
10413
- if (!h.value) throw new Error("No presentation is loaded.");
10439
+ if (!g.value) throw new Error("No presentation is loaded.");
10414
10440
  const i = t?.getPendingInlineEdit?.(), c = {
10415
10441
  slideMasters: s.value,
10416
10442
  notesMaster: M.value,
@@ -10419,8 +10445,8 @@ function Qd(e, t) {
10419
10445
  ...e,
10420
10446
  elements: [...(0, u.overlayInlineTextSnapshot)(e.elements, i.snapshot, i.text)]
10421
10447
  } : e);
10422
- return (0, u.saveDeckWithPassword)(h.value, p, (0, u.buildDeckSaveOptions)({
10423
- coreProperties: g.value,
10448
+ return (0, u.saveDeckWithPassword)(g.value, p, (0, u.buildDeckSaveOptions)({
10449
+ coreProperties: h.value,
10424
10450
  customProperties: k.value,
10425
10451
  appProperties: S.value,
10426
10452
  sections: T.value,
@@ -10453,7 +10479,7 @@ function Qd(e, t) {
10453
10479
  m.value = !0, v.value = null, f.value = !1;
10454
10480
  const y = e instanceof Uint8Array ? e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength) : e, K = y.slice(0), Y = y instanceof ArrayBuffer ? y.byteLength / 1048576 : 0;
10455
10481
  Y > 50 && console.warn(`[pptx] Large file detected (${Y.toFixed(1)} MB). Loading may use significant memory.`);
10456
- const q = h.value, X = await U.load(y, { allowExternalImages: t?.getAllowExternalImages?.() });
10482
+ const q = g.value, X = await U.load(y, { allowExternalImages: t?.getAllowExternalImages?.() });
10457
10483
  if (d !== j) return;
10458
10484
  const Z = [];
10459
10485
  for (const e of X.slides) (0, u.collectMediaElements)(e.elements, Z);
@@ -10495,14 +10521,14 @@ function Qd(e, t) {
10495
10521
  const le = X.hasDigitalSignatures && K instanceof ArrayBuffer ? await Jd(K) : [];
10496
10522
  if (d !== j) return;
10497
10523
  const ae = (0, u.partitionTemplateElements)(ne);
10498
- q?.dispose(), W(Array.from(p.value.values())), W($), $ = G, H.commit(), h.value = U, n.value = ae.slides, o.value = ae.templateElementsBySlideId, p.value = J, l.value = {
10524
+ q?.dispose(), W(Array.from(p.value.values())), W($), $ = G, H.commit(), g.value = U, n.value = ae.slides, o.value = ae.templateElementsBySlideId, p.value = J, l.value = {
10499
10525
  width: X.width ?? 1280,
10500
10526
  height: X.height ?? 720
10501
10527
  }, a.value = "number" == typeof X.widthEmu && "number" == typeof X.heightEmu && X.widthEmu > 0 && X.heightEmu > 0 ? {
10502
10528
  widthEmu: X.widthEmu,
10503
10529
  heightEmu: X.heightEmu,
10504
10530
  type: X.slideSizeType ?? ""
10505
- } : void 0, r.value = X.theme, i.value = X.themeColorMap, s.value = X.slideMasters ?? [], c.value = X.layoutOptions ?? [], g.value = X.coreProperties, k.value = X.customProperties ?? [], x.value = X.modifyVerifier, b.value = U.getCompatibilityWarnings(), S.value = X.appProperties, w.value = X.tags ?? [], E.value = X.embeddedFonts ?? [], C.value = oe, I.value = X.tableStylesDefaultId, P.value = [], T.value = X.sections ?? [], _.value = X.customShows ?? [], O.value = X.modernCommentAuthors ?? [], D.value = X.commentAuthors ?? [], N.value = X.presentationProperties ?? {}, L.value = X.viewProperties, A.value = X.headerFooter, F.value = X.firstSlideNumber, M.value = X.notesMaster, z.value = X.handoutMaster, R.value = X.themeOptions ?? [], V.value = "number" == typeof X.notesWidthEmu && "number" == typeof X.notesHeightEmu && X.notesWidthEmu > 0 && X.notesHeightEmu > 0 ? {
10531
+ } : void 0, r.value = X.theme, i.value = X.themeColorMap, s.value = X.slideMasters ?? [], c.value = X.layoutOptions ?? [], h.value = X.coreProperties, k.value = X.customProperties ?? [], x.value = X.modifyVerifier, b.value = U.getCompatibilityWarnings(), S.value = X.appProperties, w.value = X.tags ?? [], E.value = X.embeddedFonts ?? [], C.value = oe, I.value = X.tableStylesDefaultId, P.value = [], T.value = X.sections ?? [], _.value = X.customShows ?? [], O.value = X.modernCommentAuthors ?? [], D.value = X.commentAuthors ?? [], N.value = X.presentationProperties ?? {}, L.value = X.viewProperties, A.value = X.headerFooter, F.value = X.firstSlideNumber, M.value = X.notesMaster, z.value = X.handoutMaster, R.value = X.themeOptions ?? [], V.value = "number" == typeof X.notesWidthEmu && "number" == typeof X.notesHeightEmu && X.notesWidthEmu > 0 && X.notesHeightEmu > 0 ? {
10506
10532
  width: Math.round(X.notesWidthEmu / 9525),
10507
10533
  height: Math.round(X.notesHeightEmu / 9525)
10508
10534
  } : void 0, B.value = le, t?.onContentApplied?.();
@@ -10513,7 +10539,7 @@ function Qd(e, t) {
10513
10539
  }
10514
10540
  })(e);
10515
10541
  }, { immediate: !0 }), (0, d.onScopeDispose)(() => {
10516
- j++, W($), W(Array.from(p.value.values())), h.value && (h.value.dispose(), h.value = null);
10542
+ j++, W($), W(Array.from(p.value.values())), g.value && (g.value.dispose(), g.value = null);
10517
10543
  }), {
10518
10544
  slides: n,
10519
10545
  templateElementsBySlideId: o,
@@ -10527,8 +10553,8 @@ function Qd(e, t) {
10527
10553
  loading: m,
10528
10554
  error: v,
10529
10555
  isEncrypted: f,
10530
- handler: h,
10531
- coreProperties: g,
10556
+ handler: g,
10557
+ coreProperties: h,
10532
10558
  customProperties: k,
10533
10559
  modifyVerifier: x,
10534
10560
  compatibilityWarnings: b,
@@ -10733,7 +10759,7 @@ function pp(e) {
10733
10759
  }
10734
10760
  const f = l ? void 0 : (0, u.openPendingPrintWindow)(r("pptx.print.preparingToPrint"));
10735
10761
  if (!l && !f) return void console.warn("[PowerPointViewer] Print window was blocked by the browser. Allow popups for this site to print.");
10736
- const h = (e) => {
10762
+ const g = (e) => {
10737
10763
  f ? (0, u.finishPrintWindow)(f, e) : l?.(e);
10738
10764
  };
10739
10765
  try {
@@ -10742,10 +10768,10 @@ function pp(e) {
10742
10768
  const l = await o(e, t);
10743
10769
  n.push(l.toDataURL("image/png"));
10744
10770
  }
10745
- if ("slides" === c.printWhat) return void h(dp("Slides", (0, u.buildSlidesHtml)(n, v), c.orientation, p, c.frameSlides, c.scaleToFit));
10746
- if ("notes" === c.printWhat) return void h(dp("Notes Pages", (0, u.buildNotesHtml)(n, v, d), "portrait", p, c.frameSlides, c.scaleToFit));
10771
+ if ("slides" === c.printWhat) return void g(dp("Slides", (0, u.buildSlidesHtml)(n, v), c.orientation, p, c.frameSlides, c.scaleToFit));
10772
+ if ("notes" === c.printWhat) return void g(dp("Notes Pages", (0, u.buildNotesHtml)(n, v, d), "portrait", p, c.frameSlides, c.scaleToFit));
10747
10773
  const l = c.slidesPerPage;
10748
- h(dp(`Handout ${l} per page`, (0, u.buildHandoutsHtml)(n, v, l, e.handoutMaster?.value), "portrait", p, c.frameSlides, c.scaleToFit));
10774
+ g(dp(`Handout ${l} per page`, (0, u.buildHandoutsHtml)(n, v, l, e.handoutMaster?.value), "portrait", p, c.frameSlides, c.scaleToFit));
10749
10775
  } catch (e) {
10750
10776
  console.error("[PowerPointViewer] Print layout failed:", e), f?.close();
10751
10777
  }
@@ -10796,7 +10822,7 @@ function fp(e) {
10796
10822
  if (!(0, y.hasTextProperties)(a)) return;
10797
10823
  const d = void 0 !== s && "undefined" != typeof document ? document.querySelector("[data-inline-editor]") : null, p = e.readInlineSnapshot?.(), v = p?.elementId === a.id ? p : void 0;
10798
10824
  if (v && e.formatInlineSnapshot && !v.textSegments) return;
10799
- const f = v?.text ?? (d ? (0, u.readEditableText)(d) : void 0), h = void 0 === f ? a : {
10825
+ const f = v?.text ?? (d ? (0, u.readEditableText)(d) : void 0), g = void 0 === f ? a : {
10800
10826
  ...a,
10801
10827
  text: f,
10802
10828
  textSegments: v?.textSegments ?? (a.textSegments ? (0, u.remapTextToSegments)(f, a.textSegments, a.textStyle) : void 0)
@@ -10804,8 +10830,8 @@ function fp(e) {
10804
10830
  if (v?.textSegments && e.formatInlineSnapshot) {
10805
10831
  const t = (0, u.getInlineEditorSelectionResult)(v.textSegments, { preserveCaret: void 0 !== n.listType });
10806
10832
  if ("unsupported" === t.kind) return;
10807
- const l = (0, u.buildInlineListStylePatch)(h, n, t.selection), a = {
10808
- ...h,
10833
+ const l = (0, u.buildInlineListStylePatch)(g, n, t.selection), a = {
10834
+ ...g,
10809
10835
  ...l
10810
10836
  };
10811
10837
  if (!(l && (0, y.hasTextProperties)(a) && a.textSegments && e.formatInlineSnapshot({
@@ -10818,13 +10844,13 @@ function fp(e) {
10818
10844
  });
10819
10845
  return;
10820
10846
  }
10821
- const g = void 0 === s ? h : {
10822
- ...h,
10823
- ...(0, u.setElementBullets)(h, s)
10847
+ const h = void 0 === s ? g : {
10848
+ ...g,
10849
+ ...(0, u.setElementBullets)(g, s)
10824
10850
  };
10825
- (0, y.hasTextProperties)(g) && m.updateElement(o, {
10851
+ (0, y.hasTextProperties)(h) && m.updateElement(o, {
10826
10852
  ...void 0 !== f ? { text: f } : {},
10827
- ...(0, u.applyTextStyleUpdate)(g, c, null).patch
10853
+ ...(0, u.applyTextStyleUpdate)(h, c, null).patch
10828
10854
  });
10829
10855
  },
10830
10856
  ribbonUpdateTextCase: function(t) {
@@ -10873,7 +10899,7 @@ function fp(e) {
10873
10899
  }
10874
10900
  };
10875
10901
  }
10876
- function hp(e) {
10902
+ function gp(e) {
10877
10903
  return {
10878
10904
  toolbarSection: (0, d.ref)("home"),
10879
10905
  newShapeType: (0, d.ref)("rect"),
@@ -10894,7 +10920,7 @@ function hp(e) {
10894
10920
  eyedropperActive: (0, d.ref)(!1)
10895
10921
  };
10896
10922
  }
10897
- function gp(e) {
10923
+ function hp(e) {
10898
10924
  const { sections: t, slides: n, activeSlideIndex: o, pushHistory: l } = e;
10899
10925
  return {
10900
10926
  addSection: (e, o) => {
@@ -11772,7 +11798,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
11772
11798
  }), Object.defineProperty(exports, "Rendering3DFlagsKey", {
11773
11799
  enumerable: !0,
11774
11800
  get: function() {
11775
- return hl;
11801
+ return gl;
11776
11802
  }
11777
11803
  }), Object.defineProperty(exports, "SHORTCUT_CATALOG", {
11778
11804
  enumerable: !0,
@@ -11962,7 +11988,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
11962
11988
  }), Object.defineProperty(exports, "glyphOutlineFontsTick", {
11963
11989
  enumerable: !0,
11964
11990
  get: function() {
11965
- return hc;
11991
+ return gc;
11966
11992
  }
11967
11993
  }), Object.defineProperty(exports, "groupShortcutCatalog", {
11968
11994
  enumerable: !0,
@@ -12092,7 +12118,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
12092
12118
  }), Object.defineProperty(exports, "useChartEditing", {
12093
12119
  enumerable: !0,
12094
12120
  get: function() {
12095
- return gu;
12121
+ return hu;
12096
12122
  }
12097
12123
  }), Object.defineProperty(exports, "useChartFormatPane", {
12098
12124
  enumerable: !0,
@@ -12322,7 +12348,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
12322
12348
  }), Object.defineProperty(exports, "useRendering3DFlags", {
12323
12349
  enumerable: !0,
12324
12350
  get: function() {
12325
- return gl;
12351
+ return hl;
12326
12352
  }
12327
12353
  }), Object.defineProperty(exports, "useRibbonActions", {
12328
12354
  enumerable: !0,
@@ -12337,12 +12363,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
12337
12363
  }), Object.defineProperty(exports, "useRibbonUiState", {
12338
12364
  enumerable: !0,
12339
12365
  get: function() {
12340
- return hp;
12366
+ return gp;
12341
12367
  }
12342
12368
  }), Object.defineProperty(exports, "useSectionOperations", {
12343
12369
  enumerable: !0,
12344
12370
  get: function() {
12345
- return gp;
12371
+ return hp;
12346
12372
  }
12347
12373
  }), Object.defineProperty(exports, "useSelectionAffordances", {
12348
12374
  enumerable: !0,