@silurus/ooxml 0.83.2 → 0.84.1

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/README.md +23 -6
  2. package/dist/assets/render-worker-BWPpayBu.js +10 -0
  3. package/dist/assets/render-worker-CiEWCh_T.js +11 -0
  4. package/dist/assets/render-worker-Cpmy3GDF.js +24 -0
  5. package/dist/{canvas-viewer-mechanics-DVGK-fLT.js → canvas-viewer-mechanics-CIfhCgYA.js} +1 -1
  6. package/dist/chart-ex.mjs +4 -4
  7. package/dist/{comment-ui-runtime-DD5a3x3k.js → comment-ui-runtime-C5qimVMD.js} +5 -5
  8. package/dist/{comment-ui-runtime-BelHJt73.js → comment-ui-runtime-CdMMApEN.js} +5 -5
  9. package/dist/comment-ui-runtime-aPzHfV_A.js +2 -0
  10. package/dist/{comments-AAaNnQTi.js → comments-BAlAyIhb.js} +1 -1
  11. package/dist/{document-pull-client-DSx36ZsB.js → document-pull-client-BXw6AAhY.js} +2409 -2390
  12. package/dist/{docx-DojUJSZd.js → docx-BA1vB0V-.js} +16 -14
  13. package/dist/docx.mjs +5 -5
  14. package/dist/docx_parser_bg.wasm +0 -0
  15. package/dist/{dom-interaction-boundary-CepOlXt6.js → dom-interaction-boundary-DS6BVyHA.js} +1 -1
  16. package/dist/index.mjs +3 -3
  17. package/dist/{line-distribute-D7A_wnJg.js → line-distribute-MqInuujx.js} +2 -2
  18. package/dist/{line-metrics-Bpn7OeZD.js → line-metrics-CXyjyYd5.js} +34 -32
  19. package/dist/math.mjs +2 -2
  20. package/dist/node.mjs +9 -9
  21. package/dist/{plot-area-frame-DHV02PJU.js → plot-area-frame-DuXZzovH.js} +623 -663
  22. package/dist/{pptx-Wh22eziy.js → pptx-C17oBD8Z.js} +17 -15
  23. package/dist/pptx.mjs +5 -5
  24. package/dist/pptx_parser_bg.wasm +0 -0
  25. package/dist/region-map.mjs +2 -2
  26. package/dist/{render-DtbFbO5c.js → render-CVeGktZG.js} +1 -1
  27. package/dist/{render-worker-host-CmPBviYJ.js → render-worker-host-BWdhjVH_.js} +1 -1
  28. package/dist/{render-worker-host-DCLyw6UR.js → render-worker-host-BbhwA24Y.js} +1 -1
  29. package/dist/{render-worker-host-D1jcACJV.js → render-worker-host-CbaQivE7.js} +1 -1
  30. package/dist/{renderer-CYr9YTXM.js → renderer-Bmky2yBc.js} +3 -3
  31. package/dist/{renderer-module-contract-DLbb7zY0.js → renderer-module-contract-C6sYZvTV.js} +4 -3
  32. package/dist/{resource-measurement-DuiFWzam.js → resource-measurement-esyGbzAF.js} +2 -2
  33. package/dist/{session-CxT-t0BX.js → session-Cl0RVnMs.js} +3 -3
  34. package/dist/{slide-pull-client-B9rcJdO4.js → slide-pull-client-BS0EeZo2.js} +113 -107
  35. package/dist/{three-d-7MaVzQuZ.js → three-d-B7LsKeOS.js} +128 -127
  36. package/dist/three-d.mjs +4 -4
  37. package/dist/tiff-contract-Xjn3qXqK.js +69 -0
  38. package/dist/tiff.mjs +124 -0
  39. package/dist/types/chart-ex.d.ts +2 -2
  40. package/dist/types/docx.d.ts +17 -10
  41. package/dist/types/index.d.ts +26 -16
  42. package/dist/types/math.d.ts +1 -1
  43. package/dist/types/node.d.ts +5 -5
  44. package/dist/types/pptx.d.ts +18 -10
  45. package/dist/types/region-map.d.ts +2 -2
  46. package/dist/types/three-d.d.ts +2 -2
  47. package/dist/types/tiff.d.ts +9 -0
  48. package/dist/types/xlsx.d.ts +17 -10
  49. package/dist/{worksheet-pull-client-DyFsDF4A.js → worksheet-pull-client-B0zfEVau.js} +3 -3
  50. package/dist/{xlsx-C3beLfwZ.js → xlsx-FyKAiNo-.js} +54 -49
  51. package/dist/xlsx.mjs +5 -5
  52. package/dist/xlsx_parser_bg.wasm +0 -0
  53. package/package.json +7 -1
  54. package/dist/assets/render-worker-4GSYWsM3.js +0 -11
  55. package/dist/assets/render-worker-DwFpY197.js +0 -10
  56. package/dist/assets/render-worker-Dw_wQRIh.js +0 -24
  57. package/dist/comment-ui-runtime-DTGN3Vyy.js +0 -2
  58. /package/dist/{comment-occurrence-X54si2ob.js → comment-occurrence-C34fWs_F.js} +0 -0
  59. /package/dist/{highlight-rect-Hes0z_Mj.js → highlight-rect-MaCt0om0.js} +0 -0
  60. /package/dist/{mathjax-DwIrafQ6.js → mathjax-DPEX346v.js} +0 -0
  61. /package/dist/{read-only-comment-decoration-DcFevX_Q.js → read-only-comment-decoration-BYCXoSdC.js} +0 -0
  62. /package/dist/{read-only-comment-margin-DrUX-YrP.js → read-only-comment-margin-C7b3l0ro.js} +0 -0
  63. /package/dist/{source-key-BklvnEyQ.js → source-key-DORuuFb-.js} +0 -0
  64. /package/dist/{transfer-R6NjgBKD.js → transfer-vNOFQuvv.js} +0 -0
  65. /package/dist/{units-BzZ0gAxs.js → units-EJdC96r6.js} +0 -0
  66. /package/dist/{visible-index-BFE3PWiY.js → visible-index-DwJzuGmJ.js} +0 -0
@@ -1,16 +1,16 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
- import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./slide-pull-client-B9rcJdO4.js";
3
- import { B as p, G as m, Qt as h, R as g, Rt as _, Vt as v, W as y, Zt as b, a as x, et as S, ft as C, lt as w, tt as ee, z as te } from "./line-metrics-Bpn7OeZD.js";
4
- import { C as ne, E as re, S as ie, T as ae, _ as oe, a as T, b as se, c as E, d as ce, f as le, g as ue, h as de, i as D, l as O, m as fe, n as pe, o as me, p as he, r as ge, s as _e, t as ve, v as ye, w as be, x as xe, y as Se } from "./canvas-viewer-mechanics-DVGK-fLT.js";
2
+ import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./slide-pull-client-BS0EeZo2.js";
3
+ import { B as p, G as m, Qt as h, R as g, Rt as _, Vt as v, W as y, Zt as b, a as x, et as S, ft as C, lt as w, tt as ee, z as te } from "./line-metrics-CXyjyYd5.js";
4
+ import { C as ne, E as re, S as ie, T as ae, _ as oe, a as T, b as se, c as E, d as ce, f as le, g as ue, h as de, i as D, l as O, m as fe, n as pe, o as me, p as he, r as ge, s as _e, t as ve, v as ye, w as be, x as xe, y as Se } from "./canvas-viewer-mechanics-CIfhCgYA.js";
5
5
  import { a as Ce, i as k, n as we, t as Te } from "./bounded-raw-part-cache-C6ro6Ezf.js";
6
- import { a as A, c as Ee, i as De, l as j, n as Oe, r as ke, t as Ae } from "./dom-interaction-boundary-CepOlXt6.js";
7
- import { cn as je, ln as Me } from "./plot-area-frame-DHV02PJU.js";
8
- import { i as M } from "./units-BzZ0gAxs.js";
9
- import { n as Ne } from "./resource-measurement-DuiFWzam.js";
10
- import { n as Pe } from "./renderer-module-contract-DLbb7zY0.js";
11
- import { t as Fe } from "./visible-index-BFE3PWiY.js";
12
- import { n as Ie, t as N } from "./highlight-rect-Hes0z_Mj.js";
13
- import { t as P } from "./comment-occurrence-X54si2ob.js";
6
+ import { a as A, c as Ee, i as De, l as j, n as Oe, r as ke, t as Ae } from "./dom-interaction-boundary-DS6BVyHA.js";
7
+ import { o as je, s as Me } from "./tiff-contract-Xjn3qXqK.js";
8
+ import { i as M } from "./units-EJdC96r6.js";
9
+ import { n as Ne } from "./resource-measurement-esyGbzAF.js";
10
+ import { n as Pe } from "./renderer-module-contract-C6sYZvTV.js";
11
+ import { t as Fe } from "./visible-index-DwJzuGmJ.js";
12
+ import { n as Ie, t as N } from "./highlight-rect-MaCt0om0.js";
13
+ import { t as P } from "./comment-occurrence-C34fWs_F.js";
14
14
  //#region packages/core/src/nav/internal-target.ts
15
15
  function Le(e, t) {
16
16
  let n = t.startsWith("/") ? [] : e.split("/").filter((e) => e !== "");
@@ -892,6 +892,7 @@ var J = class e {
892
892
  _threeD;
893
893
  _regionMap;
894
894
  _chartEx;
895
+ _tiff;
895
896
  constructor(e, t, n) {
896
897
  this._worker = e, this._mode = t, this._bridge = new ne(this._worker, {
897
898
  correlate: (e) => "protocol" in e && e.protocol === "ooxml-pull-v1" ? e.requestId : "id" in e ? e.id : void 0,
@@ -929,9 +930,9 @@ var J = class e {
929
930
  s = await e.arrayBuffer();
930
931
  } else s = t;
931
932
  s = re(await ae(s, r.password)), o.setSourceBytes(s.byteLength), o.checkpoint("container ready");
932
- let c = a === "worker" ? (await import("./render-worker-host-D1jcACJV.js")).createRenderWorker() : new bt(), l = a === "worker" ? Pe(r) : void 0, u;
933
+ let c = a === "worker" ? (await import("./render-worker-host-CbaQivE7.js")).createRenderWorker() : new bt(), l = a === "worker" ? Pe(r) : void 0, u;
933
934
  try {
934
- u = new e(c, a, r.wasmUrl), u._metrics = o, r.math && a === "worker" && !l?.math && console.warn("[ooxml] a custom math renderer cannot cross the worker boundary; equations will be skipped in mode: 'worker'. Use the math renderer from @silurus/ooxml/math."), r.threeD && a === "worker" && !l?.threeD && console.warn("[ooxml] a custom 3-D chart renderer cannot cross the worker boundary; charts use their 2-D family fallback in mode: 'worker'. Use the renderer from @silurus/ooxml/three-d."), u._math = a === "worker" ? void 0 : r.math, u._threeD = a === "worker" ? void 0 : r.threeD, r.regionMap && a === "worker" && !l?.regionMap && console.warn("[ooxml] a custom Region Map renderer cannot cross the worker boundary; geospatial charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/region-map."), u._regionMap = a === "worker" ? void 0 : r.regionMap, r.chartEx && a === "worker" && !l?.chartEx && console.warn("[ooxml] a custom ChartEx renderer cannot cross the worker boundary; ChartEx charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/chart-ex."), u._chartEx = a === "worker" ? void 0 : r.chartEx;
935
+ u = new e(c, a, r.wasmUrl), u._metrics = o, r.math && a === "worker" && !l?.math && console.warn("[ooxml] a custom math renderer cannot cross the worker boundary; equations will be skipped in mode: 'worker'. Use the math renderer from @silurus/ooxml/math."), r.threeD && a === "worker" && !l?.threeD && console.warn("[ooxml] a custom 3-D chart renderer cannot cross the worker boundary; charts use their 2-D family fallback in mode: 'worker'. Use the renderer from @silurus/ooxml/three-d."), u._math = a === "worker" ? void 0 : r.math, u._threeD = a === "worker" ? void 0 : r.threeD, r.regionMap && a === "worker" && !l?.regionMap && console.warn("[ooxml] a custom Region Map renderer cannot cross the worker boundary; geospatial charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/region-map."), u._regionMap = a === "worker" ? void 0 : r.regionMap, r.chartEx && a === "worker" && !l?.chartEx && console.warn("[ooxml] a custom ChartEx renderer cannot cross the worker boundary; ChartEx charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/chart-ex."), u._chartEx = a === "worker" ? void 0 : r.chartEx, r.tiff && a === "worker" && !l?.tiff && console.warn("[ooxml] a custom TIFF codec cannot cross the worker boundary; TIFF images will be skipped in mode: 'worker'. Use the codec from @silurus/ooxml/tiff."), u._tiff = a === "worker" ? void 0 : r.tiff;
935
936
  let t = r.progressiveLayout ? {
936
937
  onProgress: r.onLayoutProgress,
937
938
  onPartial: r.onLayoutPartial,
@@ -1240,7 +1241,8 @@ var J = class e {
1240
1241
  math: this._math,
1241
1242
  threeD: this._threeD,
1242
1243
  regionMap: this._regionMap,
1243
- chartEx: this._chartEx
1244
+ chartEx: this._chartEx,
1245
+ tiff: this._tiff
1244
1246
  }, n.onTextRun)));
1245
1247
  } catch (e) {
1246
1248
  this._rethrowWithResourceFailure(e);
@@ -2007,7 +2009,7 @@ var zt = Symbol("PptxViewer.borrowedPresentation"), Bt = {
2007
2009
  }
2008
2010
  }, Vt = 150, Ht = "0 1px 3px rgba(0,0,0,0.2)", Ut = 12, Wt;
2009
2011
  function Gt() {
2010
- return Wt ??= import("./comment-ui-runtime-BelHJt73.js");
2012
+ return Wt ??= import("./comment-ui-runtime-CdMMApEN.js");
2011
2013
  }
2012
2014
  var $ = 440, Kt = 20, qt = Symbol("PptxScrollViewer.borrowedPresentation"), Jt = class e {
2013
2015
  _presentationOwner;
package/dist/pptx.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { u as e } from "./slide-pull-client-B9rcJdO4.js";
2
- import { Qt as t, Zt as n, a as r } from "./line-metrics-Bpn7OeZD.js";
3
- import { w as i } from "./canvas-viewer-mechanics-DVGK-fLT.js";
4
- import { cn as a, ln as o } from "./plot-area-frame-DHV02PJU.js";
5
- import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-Wh22eziy.js";
1
+ import { u as e } from "./slide-pull-client-BS0EeZo2.js";
2
+ import { Qt as t, Zt as n, a as r } from "./line-metrics-CXyjyYd5.js";
3
+ import { w as i } from "./canvas-viewer-mechanics-CIfhCgYA.js";
4
+ import { o as a, s as o } from "./tiff-contract-Xjn3qXqK.js";
5
+ import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-C17oBD8Z.js";
6
6
  export { a as OoxmlDecodedImageLimitError, n as OoxmlError, t as OoxmlResourceLimitError, s as PptxPresentation, l as PptxScrollViewer, d as PptxViewer, i as autoResize, u as buildPptxHighlightLayer, f as buildPptxTextLayer, o as isOoxmlDecodedImageLimitError, r as openExternalHyperlink, c as readPptxTextSelectionContext, e as renderSlide };
Binary file
@@ -1,5 +1,5 @@
1
- import { Vt as e, Wt as t, a as n, n as r, t as i } from "./plot-area-frame-DHV02PJU.js";
2
- import { t as a } from "./renderer-module-contract-DLbb7zY0.js";
1
+ import { Vt as e, Wt as t, a as n, n as r, t as i } from "./plot-area-frame-DuXZzovH.js";
2
+ import { t as a } from "./renderer-module-contract-C6sYZvTV.js";
3
3
  //#region packages/core/src/chart/region-map-natural-earth.generated.ts
4
4
  var o = [
5
5
  {
@@ -43,7 +43,7 @@ function a(e, t) {
43
43
  return n = o.then(() => void 0, () => void 0), o;
44
44
  }
45
45
  async function o(e, t, n, r = {}) {
46
- let { renderSlide: i } = await import("./session-CxT-t0BX.js").then((e) => e.t), o = t.slides[n];
46
+ let { renderSlide: i } = await import("./session-Cl0RVnMs.js").then((e) => e.t), o = t.slides[n];
47
47
  if (!o) throw Error(`Slide index ${n} out of range`);
48
48
  let s = r.width ?? 960, c = r.dpr ?? 2, l = r.fetchImage ?? (async () => new Blob([])), u = async () => {
49
49
  await i(e, o, t.slideWidth, t.slideHeight, {
@@ -1,5 +1,5 @@
1
1
  //#region packages/xlsx/src/render-worker.ts?worker&url
2
- var e = "" + new URL("assets/render-worker-Dw_wQRIh.js", import.meta.url).href;
2
+ var e = "" + new URL("assets/render-worker-Cpmy3GDF.js", import.meta.url).href;
3
3
  //#endregion
4
4
  //#region packages/xlsx/src/render-worker-host.ts
5
5
  function t() {
@@ -1,5 +1,5 @@
1
1
  //#region packages/docx/src/render-worker.ts?worker&url
2
- var e = "" + new URL("assets/render-worker-DwFpY197.js", import.meta.url).href;
2
+ var e = "" + new URL("assets/render-worker-BWPpayBu.js", import.meta.url).href;
3
3
  //#endregion
4
4
  //#region packages/docx/src/render-worker-host.ts
5
5
  function t() {
@@ -1,5 +1,5 @@
1
1
  //#region packages/pptx/src/render-worker.ts?worker&url
2
- var e = "" + new URL("assets/render-worker-4GSYWsM3.js", import.meta.url).href;
2
+ var e = "" + new URL("assets/render-worker-CiEWCh_T.js", import.meta.url).href;
3
3
  //#endregion
4
4
  //#region packages/pptx/src/render-worker-host.ts
5
5
  function t() {
@@ -1,6 +1,6 @@
1
- import { $ as e, A as t, At as n, B as r, Bt as i, Ct as a, Dt as o, E as s, Ft as c, G as l, Gt as u, H as d, Ht as f, It as p, J as m, Jt as h, K as g, L as _, Lt as v, Nt as y, Ot as b, Pt as x, Q as S, R as C, Rt as w, St as T, T as E, Tt as D, U as O, Ut as k, V as A, W as j, Wt as M, X as N, Xt as P, Y as F, Yt as ee, Z as I, Zt as L, _ as te, _t as ne, a as R, at as re, b as ie, bt as z, c as ae, ct as oe, d as se, dt as ce, en as le, et as B, f as ue, ft as de, gt as fe, ht as V, i as pe, it as me, j as he, jt as ge, kt as _e, l as ve, lt as ye, m as be, mt as xe, n as Se, nt as Ce, o as we, ot as Te, p as Ee, pt as De, qt as Oe, r as ke, rt as Ae, st as je, t as Me, tt as Ne, u as H, ut as Pe, v as Fe, vt as Ie, wt as U, x as Le, xt as Re, yt as ze, z as Be, zt as Ve } from "./plot-area-frame-DHV02PJU.js";
2
- import { a as W, r as He } from "./units-BzZ0gAxs.js";
3
- import { C as Ue, D as We, E as G, O as Ge, S as K, _ as q, a as Ke, b as qe, d as Je, f as Ye, g as J, h as Xe, i as Ze, k as Qe, l as $e, m as et, n as tt, o as nt, p as rt, u as it, v as at, x as ot, y as st } from "./three-d-7MaVzQuZ.js";
1
+ import { $ as e, A as t, At as n, B as r, Bt as i, Ct as a, Dt as o, E as s, Ft as c, G as l, Gt as u, H as d, Ht as f, It as p, J as m, Jt as h, K as g, L as _, Lt as v, Nt as y, Ot as b, Pt as x, Q as S, R as C, Rt as w, St as T, T as E, Tt as D, U as O, Ut as k, V as A, W as j, Wt as M, X as N, Xt as P, Y as F, Yt as ee, Z as I, Zt as L, _ as te, _t as ne, a as R, at as re, b as ie, bt as z, c as ae, ct as oe, d as se, dt as ce, en as le, et as B, f as ue, ft as de, gt as fe, ht as V, i as pe, it as me, j as he, jt as ge, kt as _e, l as ve, lt as ye, m as be, mt as xe, n as Se, nt as Ce, o as we, ot as Te, p as Ee, pt as De, qt as Oe, r as ke, rt as Ae, st as je, t as Me, tt as Ne, u as H, ut as Pe, v as Fe, vt as Ie, wt as U, x as Le, xt as Re, yt as ze, z as Be, zt as Ve } from "./plot-area-frame-DuXZzovH.js";
2
+ import { a as W, r as He } from "./units-EJdC96r6.js";
3
+ import { C as Ue, D as We, E as G, O as Ge, S as K, _ as q, a as Ke, b as qe, d as Je, f as Ye, g as J, h as Xe, i as Ze, k as Qe, l as $e, m as et, n as tt, o as nt, p as rt, u as it, v as at, x as ot, y as st } from "./three-d-B7LsKeOS.js";
4
4
  //#region packages/core/src/chart/of-pie.ts
5
5
  function ct(e, t) {
6
6
  let n = e?.splitType ?? "auto", r = e?.splitPos, i = /* @__PURE__ */ new Set();
@@ -19,13 +19,14 @@ function r(e, r, i) {
19
19
  return t.set(e, a), e;
20
20
  }
21
21
  function i(e) {
22
- let n = e.math ? t.get(e.math) : void 0, r = e.threeD ? t.get(e.threeD) : void 0, i = e.regionMap ? t.get(e.regionMap) : void 0, a = e.chartEx ? t.get(e.chartEx) : void 0, o = {
22
+ let n = e.math ? t.get(e.math) : void 0, r = e.threeD ? t.get(e.threeD) : void 0, i = e.regionMap ? t.get(e.regionMap) : void 0, a = e.chartEx ? t.get(e.chartEx) : void 0, o = e.tiff ? t.get(e.tiff) : void 0, s = {
23
23
  ...n ? { math: n } : {},
24
24
  ...r ? { threeD: r } : {},
25
25
  ...i ? { regionMap: i } : {},
26
- ...a ? { chartEx: a } : {}
26
+ ...a ? { chartEx: a } : {},
27
+ ...o ? { tiff: o } : {}
27
28
  };
28
- return Object.keys(o).length > 0 ? Object.freeze(o) : void 0;
29
+ return Object.keys(s).length > 0 ? Object.freeze(s) : void 0;
29
30
  }
30
31
  //#endregion
31
32
  export { i as n, r as t };
@@ -1,5 +1,5 @@
1
- import { ht as e, ot as t, pt as n } from "./line-metrics-Bpn7OeZD.js";
2
- import { rn as r } from "./plot-area-frame-DHV02PJU.js";
1
+ import { ht as e, ot as t, pt as n } from "./line-metrics-CXyjyYd5.js";
2
+ import { rn as r } from "./plot-area-frame-DuXZzovH.js";
3
3
  //#region packages/core/src/image/duotone-bitmap-by-path.ts
4
4
  function i(e, t) {
5
5
  return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
- import { a as t, u as n } from "./slide-pull-client-B9rcJdO4.js";
3
- import { B as r, Bt as i, F as a, G as o, H as s, I as c, K as l, P as u, Q as d, Qt as f, R as p, U as ee, W as m, X as h, Y as g, Z as _, q as v } from "./line-metrics-Bpn7OeZD.js";
4
- import { t as y } from "./transfer-R6NjgBKD.js";
2
+ import { a as t, u as n } from "./slide-pull-client-BS0EeZo2.js";
3
+ import { B as r, Bt as i, F as a, G as o, H as s, I as c, K as l, P as u, Q as d, Qt as f, R as p, U as ee, W as m, X as h, Y as g, Z as _, q as v } from "./line-metrics-CXyjyYd5.js";
4
+ import { t as y } from "./transfer-vNOFQuvv.js";
5
5
  //#region packages/pptx/src/slide-cursor-operation.ts
6
6
  function b(e) {
7
7
  try {
@@ -1,10 +1,11 @@
1
- import { $ as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dt as s, Et as c, J as l, M as u, Mt as d, N as f, O as p, Ot as m, Pt as h, Qt as g, S as _, St as v, Tt as y, _ as b, at as x, bt as S, c as C, ct as w, d as T, dt as E, et as D, f as O, g as k, gt as A, h as j, i as M, it as N, j as P, jt as F, kt as I, m as L, mt as R, n as z, nt as B, p as V, pt as H, r as U, rt as ee, s as W, st as te, tt as G, u as K, ut as q, vt as ne, w as re, wt as ie, xt as ae, y as oe, zt as se } from "./line-metrics-Bpn7OeZD.js";
2
- import { a as ce, c as le, d as ue, i as de, l as fe, n as pe, o as me, r as he, s as ge, t as _e, u as ve } from "./line-distribute-D7A_wnJg.js";
3
- import { S as ye, _ as be, an as xe, h as Se, in as Ce, k as we, ln as Te, nn as Ee, un as De, v as Oe, w as ke } from "./plot-area-frame-DHV02PJU.js";
4
- import { r as J } from "./units-BzZ0gAxs.js";
5
- import { A as Ae, F as je, I as Me, L as Ne, M as Pe, N as Fe, P as Ie, j as Le } from "./three-d-7MaVzQuZ.js";
6
- import { k as Re } from "./renderer-CYr9YTXM.js";
7
- import { i as ze, n as Be, t as Ve } from "./resource-measurement-DuiFWzam.js";
1
+ import { $ as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dt as s, Et as c, J as l, M as u, Mt as d, N as f, O as p, Ot as m, Pt as h, Qt as g, S as _, St as v, Tt as y, _ as b, at as x, bt as S, c as C, ct as w, d as T, dt as E, et as D, f as O, g as k, gt as A, h as j, i as M, it as N, j as P, jt as F, kt as I, m as L, mt as R, n as z, nt as B, p as V, pt as H, r as U, rt as ee, s as W, st as te, tt as G, u as K, ut as q, vt as ne, w as re, wt as ie, xt as ae, y as oe, zt as se } from "./line-metrics-CXyjyYd5.js";
2
+ import { a as ce, c as le, d as ue, i as de, l as fe, n as pe, o as me, r as he, s as ge, t as _e, u as ve } from "./line-distribute-MqInuujx.js";
3
+ import { c as ye, s as be } from "./tiff-contract-Xjn3qXqK.js";
4
+ import { S as xe, _ as Se, an as Ce, h as we, in as Te, k as Ee, nn as De, v as Oe, w as ke } from "./plot-area-frame-DuXZzovH.js";
5
+ import { r as J } from "./units-EJdC96r6.js";
6
+ import { A as Ae, F as je, I as Me, L as Ne, M as Pe, N as Fe, P as Ie, j as Le } from "./three-d-B7LsKeOS.js";
7
+ import { k as Re } from "./renderer-Bmky2yBc.js";
8
+ import { i as ze, n as Be, t as Ve } from "./resource-measurement-esyGbzAF.js";
8
9
  //#region packages/pptx/src/types.ts
9
10
  function He(e) {
10
11
  return e;
@@ -3102,7 +3103,7 @@ function Vt(t, n, r, i, a, o, s, c = 1) {
3102
3103
  t.beginPath(), t.moveTo(n, a + e(a, u, c)), t.lineTo(n + i, a + e(a, u, c)), t.moveTo(n, o + e(o, u, c)), t.lineTo(n + i, o + e(o, u, c)), t.stroke();
3103
3104
  return;
3104
3105
  }
3105
- t.setLineDash(ye(s ?? "sng", u)), t.beginPath(), t.moveTo(n, d + f), t.lineTo(n + i, d + f), t.stroke(), t.setLineDash([]);
3106
+ t.setLineDash(xe(s ?? "sng", u)), t.beginPath(), t.moveTo(n, d + f), t.lineTo(n + i, d + f), t.stroke(), t.setLineDash([]);
3106
3107
  }
3107
3108
  //#endregion
3108
3109
  //#region packages/core/src/text/highlight-box.ts
@@ -3402,7 +3403,7 @@ function hn(e, t, n, r, i, a, o = "fill") {
3402
3403
  function Y(e, t) {
3403
3404
  return e * t;
3404
3405
  }
3405
- var X = be;
3406
+ var X = Se;
3406
3407
  function gn(e, t, n, r, i, a, o) {
3407
3408
  let { top: s, height: c } = Ht(n, i);
3408
3409
  e.fillStyle = a, e.fillRect(t, s, r, c), e.fillStyle = o;
@@ -3498,12 +3499,12 @@ function jn(e) {
3498
3499
  return /\b(thin|hairline)\b/.test(t) ? 100 : /\b(extra[- ]?light|ultra[- ]?light)\b/.test(t) ? 200 : /\blight\b/.test(t) ? 300 : /\b(black|heavy)\b/.test(t) ? 900 : /\b(extra[- ]?bold|ultra[- ]?bold)\b/.test(t) ? 800 : /\b(semi[- ]?bold|demi[- ]?bold)\b/.test(t) ? 600 : /\bbold\b/.test(t) ? 700 : /\bmedium\b/.test(t) ? 600 : null;
3499
3500
  }
3500
3501
  function Mn(e, t, n, r, i, a, o, s) {
3501
- let c = Math.max(0, r.blur * i), l = Math.ceil(c * 3) + 2, u = Math.max(0, Math.floor(n.x - l)), d = Math.max(0, Math.floor(n.y - l)), f = Math.min(o, Math.ceil(n.x + n.w + l)), p = Math.min(s, Math.ceil(n.y + n.h + l)), m = Math.max(1, f - u), h = Math.max(1, p - d), g = De(m, h), _ = g?.getContext("2d");
3502
+ let c = Math.max(0, r.blur * i), l = Math.ceil(c * 3) + 2, u = Math.max(0, Math.floor(n.x - l)), d = Math.max(0, Math.floor(n.y - l)), f = Math.min(o, Math.ceil(n.x + n.w + l)), p = Math.min(s, Math.ceil(n.y + n.h + l)), m = Math.max(1, f - u), h = Math.max(1, p - d), g = ye(m, h), _ = g?.getContext("2d");
3502
3503
  if (!g || !_) return;
3503
3504
  _.save(), _.setTransform(a.a, a.b, a.c, a.d, a.e - u, a.f - d), t(_), _.restore();
3504
3505
  let v = n.y - d, y = v + n.h, b = g, x = _;
3505
3506
  if (c > 0) {
3506
- let e = De(m, h), t = e?.getContext("2d");
3507
+ let e = ye(m, h), t = e?.getContext("2d");
3507
3508
  e && t && (b = e, x = t);
3508
3509
  }
3509
3510
  b !== g && Kt(x, g, {
@@ -3880,23 +3881,24 @@ function Vn(e, t, n, r, a, o, s, c = !1, l = !1, u = 1, d, f = {
3880
3881
  }
3881
3882
  return h.push(x), h;
3882
3883
  }
3883
- async function Hn(e, t, n, r, i, a, o) {
3884
+ async function Hn(e, t, n, r, i, a, o, s) {
3884
3885
  if (t && t.fillType === "image") {
3885
3886
  if (e.fillStyle = "#FFFFFF", e.fillRect(0, 0, n, r), !t.imagePath || !t.mimeType || !o) return;
3886
3887
  try {
3887
- let s = await ze(t.imagePath, t.mimeType, t.duotone, o, {
3888
+ let c = await ze(t.imagePath, t.mimeType, t.duotone, o, {
3888
3889
  widthPt: n / i / J,
3889
- heightPt: r / i / J
3890
+ heightPt: r / i / J,
3891
+ tiff: s
3890
3892
  });
3891
- if (a() || !s) return;
3892
- if (e.save(), e.beginPath(), e.rect(0, 0, n, r), e.clip(), t.alpha != null && (e.globalAlpha = t.alpha), t.tile) Gn(e, s, t.tile, n, r, i);
3893
+ if (a() || !c) return;
3894
+ if (e.save(), e.beginPath(), e.rect(0, 0, n, r), e.clip(), t.alpha != null && (e.globalAlpha = t.alpha), t.tile) Gn(e, c, t.tile, n, r, i);
3893
3895
  else {
3894
- let i = t.fillRect ?? {}, a = i.l ?? 0, o = i.t ?? 0, c = i.r ?? 0, l = i.b ?? 0, u = a * n, d = o * r, f = n * (1 - a - c), p = r * (1 - o - l);
3895
- e.drawImage(s, u, d, f, p);
3896
+ let i = t.fillRect ?? {}, a = i.l ?? 0, o = i.t ?? 0, s = i.r ?? 0, l = i.b ?? 0, u = a * n, d = o * r, f = n * (1 - a - s), p = r * (1 - o - l);
3897
+ e.drawImage(c, u, d, f, p);
3896
3898
  }
3897
3899
  e.restore();
3898
3900
  } catch (e) {
3899
- if (Te(e)) throw e;
3901
+ if (be(e)) throw e;
3900
3902
  }
3901
3903
  return;
3902
3904
  }
@@ -3915,7 +3917,7 @@ function Wn(e, t, n, r, i) {
3915
3917
  function Gn(e, t, n, r, i, a) {
3916
3918
  let o = t.width * Un * (n.sx ?? 1) * a, s = t.height * Un * (n.sy ?? 1) * a;
3917
3919
  if (!(o > 0) || !(s > 0)) return;
3918
- let c = n.flip === "x" || n.flip === "xy", l = n.flip === "y" || n.flip === "xy", u = De(o * (c ? 2 : 1), s * (l ? 2 : 1));
3920
+ let c = n.flip === "x" || n.flip === "xy", l = n.flip === "y" || n.flip === "xy", u = ye(o * (c ? 2 : 1), s * (l ? 2 : 1));
3919
3921
  if (!u) return;
3920
3922
  let d = u.getContext("2d");
3921
3923
  if (!d) return;
@@ -3984,7 +3986,7 @@ function $n(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m) {
3984
3986
  }
3985
3987
  }
3986
3988
  if (!(I > P && L > F)) return;
3987
- let R = Math.floor(P - 2), z = Math.floor(F - 2), B = De(Math.ceil(I + 2) - R, Math.ceil(L + 2) - z), V = B ? B.getContext("2d") : null;
3989
+ let R = Math.floor(P - 2), z = Math.floor(F - 2), B = ye(Math.ceil(I + 2) - R, Math.ceil(L + 2) - z), V = B ? B.getContext("2d") : null;
3988
3990
  if (!B || !V) {
3989
3991
  A(e, m);
3990
3992
  return;
@@ -4186,7 +4188,7 @@ function mr(e, t, n, r) {
4186
4188
  if (r && (i + o <= 0 || a + s <= 0 || i >= r.w || a >= r.h) || Ne(o, s).clamped) return e;
4187
4189
  let c = null;
4188
4190
  try {
4189
- c = De(o, s);
4191
+ c = ye(o, s);
4190
4192
  } catch {
4191
4193
  return e;
4192
4194
  }
@@ -4874,7 +4876,7 @@ function Tr(e, t, n, r, i, a, o, s = {}) {
4874
4876
  let e = d / u, t = Le(f.corners, e / i, e / a);
4875
4877
  t ? p = t : d = 0;
4876
4878
  }
4877
- let m = d / u, h = Math.max(1, Math.ceil(i * u) + 2 * d), g = Math.max(1, Math.ceil(a * u) + 2 * d), _ = De(h, g);
4879
+ let m = d / u, h = Math.max(1, Math.ceil(i * u) + 2 * d), g = Math.max(1, Math.ceil(a * u) + 2 * d), _ = ye(h, g);
4878
4880
  if (!_) return !1;
4879
4881
  let v = _.getContext("2d");
4880
4882
  if (!v) return !1;
@@ -4897,7 +4899,7 @@ function Tr(e, t, n, r, i, a, o, s = {}) {
4897
4899
  }
4898
4900
  function Er(e, t, n, r, i, a, o, s, c = 0) {
4899
4901
  if (r <= 0 || i <= 0 || a.length === 0) return !1;
4900
- let l = e.getTransform(), u = Math.abs(l.a * l.d - l.b * l.c), d = u > 0 ? Math.sqrt(u) : 1, f = Math.max(0, Math.ceil(c * d)), p = f / d, m = Math.max(1, Math.ceil(r * d) + 2 * f), h = Math.max(1, Math.ceil(i * d) + 2 * f), g = De(m, h);
4902
+ let l = e.getTransform(), u = Math.abs(l.a * l.d - l.b * l.c), d = u > 0 ? Math.sqrt(u) : 1, f = Math.max(0, Math.ceil(c * d)), p = f / d, m = Math.max(1, Math.ceil(r * d) + 2 * f), h = Math.max(1, Math.ceil(i * d) + 2 * f), g = ye(m, h);
4901
4903
  if (!g) return !1;
4902
4904
  let _ = g.getContext("2d");
4903
4905
  if (!_) return !1;
@@ -4922,11 +4924,11 @@ function Or(e) {
4922
4924
  return r.type === n ? r : new Blob([r], { type: n });
4923
4925
  }, Dr.set(e, t)), t;
4924
4926
  }
4925
- function kr(e, t, n = Or(t)) {
4927
+ function kr(e, t, n = Or(t), r) {
4926
4928
  return R("base", e.posterPath, n, async () => {
4927
- let n = await t(e.posterPath), r = e.posterMimeType || n.type || "application/octet-stream";
4929
+ let n = await t(e.posterPath), i = e.posterMimeType || n.type || "application/octet-stream";
4928
4930
  return {
4929
- bitmap: await xe(n.type === r ? n : new Blob([n], { type: r })),
4931
+ bitmap: await Ce(n.type === i ? n : new Blob([n], { type: i }), { tiff: r }),
4930
4932
  owned: !0
4931
4933
  };
4932
4934
  }).then((e) => {
@@ -4934,96 +4936,98 @@ function kr(e, t, n = Or(t)) {
4934
4936
  return e;
4935
4937
  });
4936
4938
  }
4937
- async function Ar(e, t, n, r, i) {
4939
+ async function Ar(e, t, n, r, i, a) {
4938
4940
  if (i) try {
4939
- let a = t.mimeType === "image/svg+xml", o = Ce(t.mimeType, t.srcRect, t.width / J, t.height / J);
4940
- if (!o) return;
4941
- let { widthPt: s, heightPt: c } = o, l;
4941
+ let o = t.mimeType === "image/svg+xml", s = Te(t.mimeType, t.srcRect, t.width / J, t.height / J);
4942
+ if (!s) return;
4943
+ let { widthPt: c, heightPt: l } = s, u;
4942
4944
  if (x(t)) try {
4943
- l = await q(t.svgImagePath, i);
4945
+ u = await q(t.svgImagePath, i);
4944
4946
  } catch {
4945
- l = a ? await q(t.imagePath, i) : await ze(t.imagePath, t.mimeType, t.duotone, i, {
4946
- widthPt: s,
4947
- heightPt: c
4947
+ u = o ? await q(t.imagePath, i) : await ze(t.imagePath, t.mimeType, t.duotone, i, {
4948
+ widthPt: c,
4949
+ heightPt: l,
4950
+ tiff: a
4948
4951
  });
4949
4952
  }
4950
- else l = a ? await q(t.imagePath, i) : await ze(t.imagePath, t.mimeType, t.duotone, i, {
4951
- widthPt: s,
4952
- heightPt: c
4953
+ else u = o ? await q(t.imagePath, i) : await ze(t.imagePath, t.mimeType, t.duotone, i, {
4954
+ widthPt: c,
4955
+ heightPt: l,
4956
+ tiff: a
4953
4957
  });
4954
- if (!l || r()) return;
4958
+ if (!u || r()) return;
4955
4959
  e.save(), t.alpha != null && (e.globalAlpha *= t.alpha);
4956
- let u = Y(t.x, n), d = Y(t.y, n), f = Y(t.width, n), p = Y(t.height, n);
4957
- (t.rotation !== 0 || t.flipH || t.flipV) && (e.translate(u + f / 2, d + p / 2), e.rotate(t.rotation * Math.PI / 180), t.flipH && e.scale(-1, 1), t.flipV && e.scale(1, -1), e.translate(-(u + f / 2), -(d + p / 2)));
4958
- let m = (e, n, r, i, a) => {
4960
+ let d = Y(t.x, n), f = Y(t.y, n), p = Y(t.width, n), m = Y(t.height, n);
4961
+ (t.rotation !== 0 || t.flipH || t.flipV) && (e.translate(d + p / 2, f + m / 2), e.rotate(t.rotation * Math.PI / 180), t.flipH && e.scale(-1, 1), t.flipV && e.scale(1, -1), e.translate(-(d + p / 2), -(f + m / 2)));
4962
+ let h = (e, n, r, i, a) => {
4959
4963
  t.custGeom && t.custGeom.length > 0 ? _r(e, t.custGeom, n, r, i, a) : t.prstGeom && ne(e, t.prstGeom, n, r, i, a, t.prstAdjust ?? []) || e.rect(n, r, i, a);
4960
- }, h = (e, t, n, r, i) => {
4961
- e.beginPath(), m(e, t, n, r, i);
4962
- }, g = (e, n, r, i, a) => {
4963
- (t.prstGeom || t.custGeom && t.custGeom.length > 0) && (h(e, n, r, i, a), e.clip());
4964
- }, _ = (e, r, i, a, o) => {
4964
+ }, g = (e, t, n, r, i) => {
4965
+ e.beginPath(), h(e, t, n, r, i);
4966
+ }, _ = (e, n, r, i, a) => {
4967
+ (t.prstGeom || t.custGeom && t.custGeom.length > 0) && (g(e, n, r, i, a), e.clip());
4968
+ }, y = (e, r, i, a, o) => {
4965
4969
  t.stroke && (e.save(), Nr(e, t.stroke, n, {
4966
4970
  x: r,
4967
4971
  y: i,
4968
4972
  w: a,
4969
4973
  h: o
4970
- }, t.rotation), h(e, r, i, a, o), e.stroke(), e.restore());
4971
- }, y = (e, r, i, a, o) => {
4974
+ }, t.rotation), g(e, r, i, a, o), e.stroke(), e.restore());
4975
+ }, b = (e, r, i, a, o) => {
4972
4976
  let s = t.sp3d;
4973
4977
  if (s && (s.contourW ?? 0) > 0 && s.contourClr) {
4974
4978
  let t = Math.max(.5, s.contourW * n);
4975
4979
  e.save(), e.beginPath();
4976
4980
  let c = t * 2 + Math.max(a, o);
4977
- e.rect(r - c, i - c, a + 2 * c, o + 2 * c), m(e, r, i, a, o), e.clip("evenodd"), e.beginPath(), h(e, r, i, a, o), e.strokeStyle = X(s.contourClr), e.lineWidth = t * 2, e.setLineDash([]), e.stroke(), e.restore();
4981
+ e.rect(r - c, i - c, a + 2 * c, o + 2 * c), h(e, r, i, a, o), e.clip("evenodd"), e.beginPath(), g(e, r, i, a, o), e.strokeStyle = X(s.contourClr), e.lineWidth = t * 2, e.setLineDash([]), e.stroke(), e.restore();
4978
4982
  }
4979
- }, b = t.scene3d && pt(t.scene3d.camera) ? t.scene3d : null, S = (e, n, r, i, a) => {
4980
- e.save(), g(e, n, r, i, a), Ee(e, l, t.srcRect, n, r, i, a), e.restore();
4981
- }, C = (e, t, n, r, i) => {
4982
- S(e, t, n, r, i), _(e, t, n, r, i), y(e, t, n, r, i);
4983
+ }, S = t.scene3d && pt(t.scene3d.camera) ? t.scene3d : null, C = (e, n, r, i, a) => {
4984
+ e.save(), _(e, n, r, i, a), De(e, u, t.srcRect, n, r, i, a), e.restore();
4983
4985
  }, w = (e, t, n, r, i) => {
4984
- S(e, t, n, r, i), _(e, t, n, r, i);
4985
- }, T = e.getTransform(), E = Math.abs(T.a * T.d - T.b * T.c), D = E > 0 ? Math.sqrt(E) : 1, O = Cr(t.sp3d, t.scene3d?.lightRig, t.sp3d ? t.sp3d.prstMaterial : void 0, n, D), k = b ? wr(t.sp3d, b.camera, f, p, n, D) : null, A = t.stroke ? t.stroke.width * n / 2 : 0, j = t.sp3d?.contourW ? t.sp3d.contourW * n : 0, M = k ? Math.hypot(k.offsetX, k.offsetY) / D : 0, N = A + j + M + 2, P = (e) => {
4986
- if (b) {
4987
- if (Tr(e, b.camera, u, d, f, p, w, {
4988
- bevels: O,
4989
- extrusion: k ?? void 0,
4990
- paintEdges: y,
4991
- edgePadCss: N
4986
+ C(e, t, n, r, i), y(e, t, n, r, i), b(e, t, n, r, i);
4987
+ }, T = (e, t, n, r, i) => {
4988
+ C(e, t, n, r, i), y(e, t, n, r, i);
4989
+ }, E = e.getTransform(), D = Math.abs(E.a * E.d - E.b * E.c), O = D > 0 ? Math.sqrt(D) : 1, k = Cr(t.sp3d, t.scene3d?.lightRig, t.sp3d ? t.sp3d.prstMaterial : void 0, n, O), A = S ? wr(t.sp3d, S.camera, p, m, n, O) : null, j = t.stroke ? t.stroke.width * n / 2 : 0, M = t.sp3d?.contourW ? t.sp3d.contourW * n : 0, N = A ? Math.hypot(A.offsetX, A.offsetY) / O : 0, P = j + M + N + 2, F = (e) => {
4990
+ if (S) {
4991
+ if (Tr(e, S.camera, d, f, p, m, T, {
4992
+ bevels: k,
4993
+ extrusion: A ?? void 0,
4994
+ paintEdges: b,
4995
+ edgePadCss: P
4992
4996
  })) return;
4993
- } else if (O.length > 0 && Er(e, u, d, f, p, O, w, y, N)) return;
4994
- C(e, u, d, f, p);
4995
- }, F = (e, t, n, r, i, a) => {
4996
- e.save(), g(e, n, r, i, a), e.fillStyle = t, e.fillRect(n, r, i, a), e.restore();
4997
- }, I = (e, t) => {
4998
- b && Tr(e, b.camera, u, d, f, p, (e, n, r, i, a) => F(e, t, n, r, i, a)) || F(e, t, u, d, f, p);
4999
- }, L = e.getTransform(), R = Math.abs(L.a * L.d - L.b * L.c), z = R > 0 ? Math.sqrt(R) : 1, B = A + j, V = (t.custGeom && t.custGeom.length > 0 ? fe(t.custGeom, u, d, f, p) : t.prstGeom && v(t.prstGeom.toLowerCase()) ? ae(t.prstGeom.toLowerCase(), u, d, f, p, t.prstAdjust ?? []) : null) ?? {
5000
- x: u,
5001
- y: d,
5002
- w: f,
5003
- h: p
5004
- }, H = b ? pr(b.camera, L, u, d, f, p, N, t.shadow?.algn) : {
5005
- bbox: lr(L, V.x - B, V.y - B, V.w + B * 2, V.h + B * 2),
5006
- anchor: fr(L, u, d, f, p, t.shadow?.algn)
5007
- }, U = n * z, ee = !!(t.shadow || t.innerShadow || t.glow || t.softEdge || t.reflection), W = (e) => I(e, "#000");
5008
- hr(e, t, b && ee ? mr(P, L, H.bbox, {
4997
+ } else if (k.length > 0 && Er(e, d, f, p, m, k, T, b, P)) return;
4998
+ w(e, d, f, p, m);
4999
+ }, I = (e, t, n, r, i, a) => {
5000
+ e.save(), _(e, n, r, i, a), e.fillStyle = t, e.fillRect(n, r, i, a), e.restore();
5001
+ }, L = (e, t) => {
5002
+ S && Tr(e, S.camera, d, f, p, m, (e, n, r, i, a) => I(e, t, n, r, i, a)) || I(e, t, d, f, p, m);
5003
+ }, R = e.getTransform(), z = Math.abs(R.a * R.d - R.b * R.c), B = z > 0 ? Math.sqrt(z) : 1, V = j + M, H = (t.custGeom && t.custGeom.length > 0 ? fe(t.custGeom, d, f, p, m) : t.prstGeom && v(t.prstGeom.toLowerCase()) ? ae(t.prstGeom.toLowerCase(), d, f, p, m, t.prstAdjust ?? []) : null) ?? {
5004
+ x: d,
5005
+ y: f,
5006
+ w: p,
5007
+ h: m
5008
+ }, U = S ? pr(S.camera, R, d, f, p, m, P, t.shadow?.algn) : {
5009
+ bbox: lr(R, H.x - V, H.y - V, H.w + V * 2, H.h + V * 2),
5010
+ anchor: fr(R, d, f, p, m, t.shadow?.algn)
5011
+ }, ee = n * B, W = !!(t.shadow || t.innerShadow || t.glow || t.softEdge || t.reflection), te = (e) => L(e, "#000");
5012
+ hr(e, t, S && W ? mr(F, R, U.bbox, {
5009
5013
  w: e.canvas.width || 0,
5010
5014
  h: e.canvas.height || 0
5011
- }) : P, b && ee ? mr(W, L, H.bbox, {
5015
+ }) : F, S && W ? mr(te, R, U.bbox, {
5012
5016
  w: e.canvas.width || 0,
5013
5017
  h: e.canvas.height || 0
5014
- }) : W, H.bbox, H.anchor, n, U, L), e.restore();
5018
+ }) : te, U.bbox, U.anchor, n, ee, R), e.restore();
5015
5019
  } catch (e) {
5016
- if (Te(e)) throw e;
5020
+ if (be(e)) throw e;
5017
5021
  }
5018
5022
  }
5019
- async function jr(e, t, n, r, i, a, o) {
5020
- let s = Y(t.x, n), c = Y(t.y, n), l = Y(t.width, n), u = Y(t.height, n), d;
5023
+ async function jr(e, t, n, r, i, a, o, s) {
5024
+ let c = Y(t.x, n), l = Y(t.y, n), u = Y(t.width, n), d = Y(t.height, n), f;
5021
5025
  if (t.posterPath && i) try {
5022
- d = await kr(t, i, o);
5026
+ f = await kr(t, i, o, s);
5023
5027
  } catch (e) {
5024
- if (Te(e)) throw e;
5028
+ if (be(e)) throw e;
5025
5029
  }
5026
- r() || (e.save(), Pr(e, t, n), d ? e.drawImage(d, s, c, l, u) : (e.fillStyle = t.mediaKind === "video" ? "#111" : "#f0f0f0", e.fillRect(s, c, l, u)), a || Jt(e, s + l / 2, c + u / 2, l, u, "paused"), e.restore());
5030
+ r() || (e.save(), Pr(e, t, n), f ? e.drawImage(f, c, l, u, d) : (e.fillStyle = t.mediaKind === "video" ? "#111" : "#f0f0f0", e.fillRect(c, l, u, d)), a || Jt(e, c + u / 2, l + d / 2, u, d, "paused"), e.restore());
5027
5031
  }
5028
5032
  function Mr(e, t, n, r, i, a, o) {
5029
5033
  let s = Math.max(.5, Y(r.width, a)), c = n.x - t.x, l = n.y - t.y, u = Math.hypot(c, l);
@@ -5083,7 +5087,7 @@ function Mr(e, t, n, r, i, a, o) {
5083
5087
  e.restore();
5084
5088
  }
5085
5089
  function Nr(e, t, n, r, i = 0) {
5086
- if (Se(e, t, n), t?.fill && r) {
5090
+ if (we(e, t, n), t?.fill && r) {
5087
5091
  let n = _n(t.fill, e, r.x, r.y, r.w, r.h, i);
5088
5092
  n && (e.strokeStyle = n);
5089
5093
  }
@@ -5312,28 +5316,29 @@ async function Hr(e, t, n, r, i = {}, a, o) {
5312
5316
  dpr: h,
5313
5317
  smartArtFallbackTextColor: ln(t.background, _)
5314
5318
  };
5315
- if (await Hn(g, t.background, d, f, u, c, i.fetchImage), c() || (i.math && await xn(t, i.math), c())) return e;
5319
+ if (await Hn(g, t.background, d, f, u, c, i.fetchImage, i.tiff), c() || (i.math && await xn(t, i.math), c())) return e;
5316
5320
  let y = t.slideNumber;
5317
5321
  for (let e of t.elements) if (e.type === "picture" && i.fetchImage) {
5318
5322
  let t = e, n = t.mimeType === "image/svg+xml";
5319
5323
  if (x(t)) q(t.svgImagePath, i.fetchImage).catch(() => void 0);
5320
5324
  else if (n) q(t.imagePath, i.fetchImage).catch(() => void 0);
5321
5325
  else {
5322
- let e = Ce(t.mimeType, t.srcRect, t.width / J, t.height / J);
5326
+ let e = Te(t.mimeType, t.srcRect, t.width / J, t.height / J);
5323
5327
  if (!e) continue;
5324
5328
  ze(t.imagePath, t.mimeType, t.duotone, i.fetchImage, {
5325
5329
  widthPt: e.widthPt,
5326
- heightPt: e.heightPt
5330
+ heightPt: e.heightPt,
5331
+ tiff: i.tiff
5327
5332
  }).catch(() => void 0);
5328
5333
  }
5329
5334
  } else if (e.type === "media") {
5330
5335
  let t = e;
5331
- t.posterPath && i.fetchMedia && kr(t, i.fetchMedia, o).catch(() => void 0);
5336
+ t.posterPath && i.fetchMedia && kr(t, i.fetchMedia, o, i.tiff).catch(() => void 0);
5332
5337
  }
5333
5338
  let b = /* @__PURE__ */ new Map();
5334
5339
  if (i.fetchImage) {
5335
5340
  let n = i.fetchImage, r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
5336
- for (let e of we(t.elements.filter((e) => e.type === "chart").map((e) => e.chart))) {
5341
+ for (let e of Ee(t.elements.filter((e) => e.type === "chart").map((e) => e.chart))) {
5337
5342
  let t = ke(e);
5338
5343
  a.has(t) || a.set(t, e);
5339
5344
  }
@@ -5344,34 +5349,35 @@ async function Hr(e, t, n, r, i = {}, a, o) {
5344
5349
  if (r.size > 0 || a.size > 0) {
5345
5350
  let t = [...r].map((e) => {
5346
5351
  let [t, r] = e.split(" ");
5347
- return H(t, r, n).catch((e) => {
5348
- if (Te(e)) throw e;
5352
+ return H(t, r, n, { tiff: i.tiff }).catch((e) => {
5353
+ if (be(e)) throw e;
5349
5354
  });
5350
- }), i = [...a].map(async ([e, t]) => {
5355
+ }), o = [...a].map(async ([e, t]) => {
5351
5356
  try {
5352
- let r = Ce(t.mimeType, t.srcRect, 72, 72);
5357
+ let r = Te(t.mimeType, t.srcRect, 72, 72);
5353
5358
  if (!r) {
5354
5359
  b.set(e, null);
5355
5360
  return;
5356
5361
  }
5357
- let i = () => t.mimeType === "image/svg+xml" ? t.duotone ? Promise.resolve(null) : q(t.imagePath, n) : ze(t.imagePath, t.mimeType, t.duotone, n, {
5362
+ let a = () => t.mimeType === "image/svg+xml" ? t.duotone ? Promise.resolve(null) : q(t.imagePath, n) : ze(t.imagePath, t.mimeType, t.duotone, n, {
5358
5363
  widthPt: r.widthPt,
5359
5364
  heightPt: r.heightPt,
5360
- failClosedOnDuotoneFailure: !0
5361
- }), a;
5365
+ failClosedOnDuotoneFailure: !0,
5366
+ tiff: i.tiff
5367
+ }), o;
5362
5368
  if (!t.duotone && x(t)) try {
5363
- a = await q(t.svgImagePath, n);
5369
+ o = await q(t.svgImagePath, n);
5364
5370
  } catch {
5365
- a = await i();
5371
+ o = await a();
5366
5372
  }
5367
- else a = await i();
5368
- b.set(e, a);
5373
+ else o = await a();
5374
+ b.set(e, o);
5369
5375
  } catch (t) {
5370
- if (Te(t)) throw t;
5376
+ if (be(t)) throw t;
5371
5377
  b.set(e, null);
5372
5378
  }
5373
5379
  });
5374
- if (await Promise.all([...t, ...i]), c()) return e;
5380
+ if (await Promise.all([...t, ...o]), c()) return e;
5375
5381
  }
5376
5382
  }
5377
5383
  for (let [n, r] of t.elements.entries()) {
@@ -5381,13 +5387,13 @@ async function Hr(e, t, n, r, i = {}, a, o) {
5381
5387
  elementIndex: n,
5382
5388
  origin: t.elementSources?.[n]?.origin ?? "slide"
5383
5389
  }) : void 0, i.fetchImage);
5384
- else if (r.type === "picture") await Ar(g, r, u, c, i.fetchImage);
5390
+ else if (r.type === "picture") await Ar(g, r, u, c, i.fetchImage, i.tiff);
5385
5391
  else if (r.type === "table") Fr(g, r, u, y, v, a ? (e) => a({
5386
5392
  ...e,
5387
5393
  elementIndex: n,
5388
5394
  origin: t.elementSources?.[n]?.origin ?? "slide"
5389
5395
  }) : void 0);
5390
- else if (r.type === "media") await jr(g, r, u, c, i.fetchMedia, i.skipMediaControls, i.fetchImage);
5396
+ else if (r.type === "media") await jr(g, r, u, c, i.fetchMedia, i.skipMediaControls, i.fetchImage, i.tiff);
5391
5397
  else if (r.type === "chart") {
5392
5398
  let e = J * u;
5393
5399
  g.save(), Pr(g, r, u), Re(g, r.chart, {