@silurus/ooxml 0.89.4 → 0.89.5

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 (48) hide show
  1. package/dist/assets/{render-worker-CyUrUidp.js → render-worker-B5HWxkbU.js} +7 -7
  2. package/dist/assets/render-worker-CeSlHUkL.js +15 -0
  3. package/dist/assets/{render-worker-Bye3wDV9.js → render-worker-ph4iY7VS.js} +28 -28
  4. package/dist/{bounded-raw-part-cache-Bi_VqXmg.js → bounded-raw-part-cache-B8t03tSP.js} +740 -731
  5. package/dist/{canvas-viewer-mechanics-ycCX6v-z.js → canvas-viewer-mechanics-DI38gHNV.js} +1 -1
  6. package/dist/{comment-overlay-controller-CR5ySvki.js → comment-overlay-controller-Crm5Syhx.js} +2 -2
  7. package/dist/{comment-ui-runtime-CwTOCwA8.js → comment-ui-runtime-BfEPgl5r.js} +2 -2
  8. package/dist/{comment-ui-runtime-BWhLz4gq.js → comment-ui-runtime-u7zk49cg.js} +3 -3
  9. package/dist/{document-model-source-Csow9uxO.js → document-model-source-qsnWuGuH.js} +6 -6
  10. package/dist/{document-pull-client-CHpz0Q1p.js → document-pull-client-Ckq8THk6.js} +54 -53
  11. package/dist/{document-pull-worker-1ZJv9f9W.js → document-pull-worker-Bkewz-So.js} +2 -2
  12. package/dist/{docx-GXxH0AwW.js → docx-ChGrdRyp.js} +16 -16
  13. package/dist/{docx-D9E0vCq-.js → docx-DRojqjH-.js} +9 -9
  14. package/dist/{docx-model-source-aKx2gZH9.js → docx-model-source-D0dmXDOs.js} +6 -6
  15. package/dist/docx.mjs +3 -3
  16. package/dist/{drawingml-shape-BwELUfNW.js → drawingml-shape-BcXkRayC.js} +1 -1
  17. package/dist/{font-preload-demand-BuMy4iJ1.js → font-preload-demand-B6HPFxDp.js} +1 -1
  18. package/dist/{host-layout-measure-GU0oJ4Me.js → host-layout-measure-DP918TOq.js} +1 -1
  19. package/dist/index.mjs +3 -3
  20. package/dist/internal-companion.mjs +2 -2
  21. package/dist/{line-distribute-C_CJisnJ.js → line-distribute-DR9Qwd3u.js} +1 -1
  22. package/dist/{model-source-DLXFe4_2.js → model-source-DcI3vC00.js} +1 -1
  23. package/dist/{model-source-session-B3WVQCM5.js → model-source-session-BCteVilS.js} +2 -2
  24. package/dist/{model-source-session-BVZBHZ04.js → model-source-session-BlQWNyj2.js} +2 -2
  25. package/dist/{model-source-session-DfUgVpr1.js → model-source-session-D0LF49Ve.js} +2 -2
  26. package/dist/node.mjs +4 -4
  27. package/dist/{pptx-CLyebeF_.js → pptx-CfCiVlNB.js} +15 -15
  28. package/dist/{pptx-BD0jwWs6.js → pptx-SmjDGyub.js} +8 -8
  29. package/dist/{pptx-model-source-D_2mnSxI.js → pptx-model-source-B2Irk68a.js} +5 -5
  30. package/dist/pptx.mjs +4 -4
  31. package/dist/{presentation-model-source-rWZ3Y-S_.js → presentation-model-source-DL6duh5l.js} +5 -5
  32. package/dist/{render-Cs1bgbEm.js → render-CMUEAeHp.js} +2 -2
  33. package/dist/{render-worker-host-BR7n4xKy.js → render-worker-host-CtlBbau5.js} +1 -1
  34. package/dist/{render-worker-host-BxsA-yJo.js → render-worker-host-DSrgUCkT.js} +1 -1
  35. package/dist/{render-worker-host-CZC0WOn8.js → render-worker-host-DYUY1TuP.js} +1 -1
  36. package/dist/{renderer-DFDF48zw.js → renderer-BYt3nsdR.js} +4 -4
  37. package/dist/{resource-measurement-CTGrNAsD.js → resource-measurement-D2bu0Qfx.js} +1 -1
  38. package/dist/{session-B5CgMc2N.js → session-KIWcCCP2.js} +4 -4
  39. package/dist/{slide-pull-client-43mS9T70.js → slide-pull-client-BUuJQQVE.js} +48 -48
  40. package/dist/{wasm-runtime-generation-BsWKRY7U.js → wasm-runtime-generation-BLweKv8r.js} +1 -1
  41. package/dist/{workbook-model-source-CZtKSWad.js → workbook-model-source-CbEnWvU-.js} +6 -6
  42. package/dist/{worksheet-pull-client-D5zAevQv.js → worksheet-pull-client-Du0MuIro.js} +2 -2
  43. package/dist/{xlsx-lvftmF1U.js → xlsx-CVVWeouT.js} +267 -267
  44. package/dist/{xlsx-S6orTmKI.js → xlsx-Deg8dBy8.js} +4 -4
  45. package/dist/{xlsx-model-source-Cm9ocDgT.js → xlsx-model-source-D2rRp5-N.js} +6 -6
  46. package/dist/xlsx.mjs +4 -4
  47. package/package.json +1 -1
  48. package/dist/assets/render-worker-BUa1gyCE.js +0 -15
@@ -1,12 +1,12 @@
1
1
  import { $r as e, Aa as t, Ao as n, Co as r, Dr as i, Eo as a, Fr as o, Gn as s, Hn as c, Ir as l, Jn as u, Kn as d, Oo as f, Pr as p, Qr as m, So as h, To as g, Tr as _, Un as v, Vn as y, Vr as b, Wn as x, Yn as S, Zr as C, _o as w, a as T, ao as E, ar as D, c as O, co as k, cr as A, d as j, do as M, ei as N, fo as P, fr as F, go as I, gr as L, h as R, ho as z, i as B, ka as V, lo as H, lr as U, m as W, mo as G, mr as ee, nr as te, o as K, oo as ne, or as q, po as J, pr as re, qn as ie, r as ae, so as oe, ti as se, u as ce, uo as le, ur as ue, vo as de, wo as fe, wr as pe, xr as me, yo as he } from "./plot-area-frame-D3JtHvov.js";
2
- import { $ as ge, At as _e, Ct as ve, Dt as ye, E as be, Et as xe, Ft as Se, Gt as Ce, J as we, Mt as Te, Nt as Ee, Pt as De, Q as Oe, Tt as ke, Ut as Ae, Wt as je, X as Me, Y as Ne, Z as Pe, Zt as Fe, _ as Ie, _t as Le, bt as Re, c as ze, ct as Be, dt as Ve, et as He, f as Ue, g as We, h as Ge, i as Ke, jt as qe, kt as Je, l as Ye, mn as Xe, mt as Ze, nt as Qe, o as $e, ot as et, p as tt, pn as nt, pt as rt, r as it, sn as at, tn as ot, tt as st, v as ct, vt as lt, wt as ut, xt as dt, y as ft, yt as pt } from "./bounded-raw-part-cache-Bi_VqXmg.js";
3
- import { a as mt, c as ht, d as gt, f as _t, h as vt, m as yt, o as bt, p as xt, r as St, s as Ct, t as wt, u as Tt, y as Et } from "./line-distribute-C_CJisnJ.js";
2
+ import { $ as ge, At as _e, Ct as ve, Dt as ye, E as be, Et as xe, Ft as Se, Gt as Ce, J as we, Mt as Te, Nt as Ee, Pt as De, Q as Oe, Tt as ke, Ut as Ae, Wt as je, X as Me, Y as Ne, Z as Pe, Zt as Fe, _ as Ie, _t as Le, bt as Re, c as ze, et as Be, f as Ve, ft as He, g as Ue, gt as We, h as Ge, i as Ke, jt as qe, kt as Je, l as Ye, mn as Xe, nt as Ze, o as Qe, p as $e, pn as et, pt as tt, r as nt, sn as rt, st as it, tn as at, tt as ot, ut as st, v as ct, vt as lt, wt as ut, xt as dt, y as ft, yt as pt } from "./bounded-raw-part-cache-B8t03tSP.js";
3
+ import { a as mt, c as ht, d as gt, f as _t, h as vt, m as yt, o as bt, p as xt, r as St, s as Ct, t as wt, u as Tt, y as Et } from "./line-distribute-DR9Qwd3u.js";
4
4
  import { a as Dt, f as Ot, i as kt, u as At } from "./pixel-budget-DI82Hn3R.js";
5
5
  import { H as jt, L as Mt, M as Nt, R as Pt, V as Ft, n as It, r as Lt, t as Rt } from "./renderer-xdugdcMd.js";
6
6
  import { i as zt } from "./tiff-contract-DEd8CGuz.js";
7
7
  import { _ as Bt, g as Vt, h as Ht } from "./three-d-ByHGsYrX.js";
8
8
  import { a as Ut, o as Wt } from "./duotone-BI7CoghW.js";
9
- import { _ as Gt, a as Kt, c as qt, d as Jt, f as Yt, h as Xt, i as Zt, l as Qt, m as $t, n as en, o as tn, p as nn, s as rn, t as an, u as on, v as sn, y as cn } from "./resource-measurement-CTGrNAsD.js";
9
+ import { _ as Gt, a as Kt, c as qt, d as Jt, f as Yt, h as Xt, i as Zt, l as Qt, m as $t, n as en, o as tn, p as nn, s as rn, t as an, u as on, v as sn, y as cn } from "./resource-measurement-D2bu0Qfx.js";
10
10
  function ln(e, t, n) {
11
11
  let r = typeof e.getTransform == "function" ? e.getTransform() : {
12
12
  a: 1,
@@ -1994,7 +1994,7 @@ function pr(e, t, n) {
1994
1994
  let r;
1995
1995
  for (let i of ur(e, t, n)) {
1996
1996
  if (i.farEastCodePage == null || !i.win) return;
1997
- let e = $e({
1997
+ let e = Qe({
1998
1998
  faceSource: i.source === "macos-supplemental" ? "system" : "office-bundle",
1999
1999
  unitsPerEm: i.unitsPerEm,
2000
2000
  hhea: i.hhea,
@@ -2295,7 +2295,7 @@ function Rr(e, t, n, r, i, a) {
2295
2295
  }
2296
2296
  e.restore();
2297
2297
  }
2298
- var zr = { isTab: (e) => "isTab" in e }, Br = (e) => Ke(e), Vr = (e, t) => it(e, t, zr), Hr = (e) => /\s/.test(String.fromCodePoint(e));
2298
+ var zr = { isTab: (e) => "isTab" in e }, Br = (e) => Ke(e), Vr = (e, t) => nt(e, t, zr), Hr = (e) => /\s/.test(String.fromCodePoint(e));
2299
2299
  function Ur(e, t, n, r, i) {
2300
2300
  if (r === "just" && i) return null;
2301
2301
  let a = t - n;
@@ -2303,7 +2303,7 @@ function Ur(e, t, n, r, i) {
2303
2303
  let o = wt(e, a, {
2304
2304
  firstContentSi: 0,
2305
2305
  lastDrawnSi: e.length,
2306
- isGapChar: at,
2306
+ isGapChar: rt,
2307
2307
  isWhitespace: Hr,
2308
2308
  seaClusterGaps: r === "thaiDist"
2309
2309
  });
@@ -2414,9 +2414,9 @@ function $r(e, t, n, r, i, a, o = "fill", s = Qr) {
2414
2414
  let t = o.codePointAt(0) ?? 0, l = Ie(t), p = e.measureText(o).width + a, m = l === "Tr" ? Ge(t) : null, h = l === "Tr" && m === null && ft(t), g = l === "U" || l === "Tu" || m !== null || h;
2415
2415
  if (ct(t) && s(t)) {
2416
2416
  let t = n + f + p / 2;
2417
- e.save(), e.translate(t, d), e.rotate(-Math.PI / 2), e.textAlign = "center", e.textBaseline = "middle", tt(e, () => u(o, 0, 0)), e.restore();
2417
+ e.save(), e.translate(t, d), e.rotate(-Math.PI / 2), e.textAlign = "center", e.textBaseline = "middle", $e(e, () => u(o, 0, 0)), e.restore();
2418
2418
  } else if (g) {
2419
- let r = m === null && l === "Tu" ? We(t) : null, a = m === null ? r : m, s = a === null ? o : String.fromCodePoint(a), c = n + f + p / 2, h = r === null ? St(e, s) / i : 0;
2419
+ let r = m === null && l === "Tu" ? Ue(t) : null, a = m === null ? r : m, s = a === null ? o : String.fromCodePoint(a), c = n + f + p / 2, h = r === null ? St(e, s) / i : 0;
2420
2420
  e.save(), e.translate(c, d), e.rotate(-Math.PI / 2), e.textAlign = "center", e.textBaseline = "middle", u(s, 0, h * i), e.restore();
2421
2421
  } else if (l === "Tr") {
2422
2422
  let t = n + f + p / 2;
@@ -2427,7 +2427,7 @@ function $r(e, t, n, r, i, a, o = "fill", s = Qr) {
2427
2427
  e.textAlign = c, e.textBaseline = l;
2428
2428
  }
2429
2429
  function ei(e, t, n, r, i, a, o = "fill") {
2430
- $r(e, t, n, r, i, a, o, (t) => Ue(e, t));
2430
+ $r(e, t, n, r, i, a, o, (t) => Ve(e, t));
2431
2431
  }
2432
2432
  var ti = /* @__PURE__ */ new WeakMap();
2433
2433
  function ni(e) {
@@ -2852,7 +2852,7 @@ function Li(e, t, n) {
2852
2852
  };
2853
2853
  }
2854
2854
  function Ri(e, t) {
2855
- return He(e, t);
2855
+ return Be(e, t);
2856
2856
  }
2857
2857
  function zi(e, t) {
2858
2858
  let n = e.targets.get(t);
@@ -2863,7 +2863,7 @@ function zi(e, t) {
2863
2863
  } : void 0;
2864
2864
  }
2865
2865
  function Bi(e) {
2866
- return !Q(e) && Qe(e) ? e.svgImagePath : e.imagePath;
2866
+ return !Q(e) && Ze(e) ? e.svgImagePath : e.imagePath;
2867
2867
  }
2868
2868
  function Vi(e, t, n, r) {
2869
2869
  let i = Nr(t.bullet);
@@ -2887,7 +2887,7 @@ async function Hi(e, t, n, r, i, a, o, s, c, l) {
2887
2887
  });
2888
2888
  return;
2889
2889
  }
2890
- f.push(rt(n, r, i, o).then((n) => n.dimensions && Pt(n.format, l !== void 0) ? {
2890
+ f.push(He(n, r, i, o).then((n) => n.dimensions && Pt(n.format, l !== void 0) ? {
2891
2891
  key: e,
2892
2892
  ...t,
2893
2893
  sourceWidthPx: n.dimensions.width,
@@ -2906,9 +2906,9 @@ async function Hi(e, t, n, r, i, a, o, s, c, l) {
2906
2906
  for (let t of e.elements) {
2907
2907
  for (let { fill: e, width: n, height: a } of Ui(t)) if (!e.tile && !Q(e)) {
2908
2908
  let t = e.fillRect ?? {}, s = Z(n, r) * (1 - (t.l ?? 0) - (t.r ?? 0)), c = Z(a, r) * (1 - (t.t ?? 0) - (t.b ?? 0));
2909
- e.mimeType === "image/svg+xml" || Qe(e) || p(Ri(e.imagePath, Q(e)), Pi(s, c, i, e.srcRect), e.imagePath, e.mimeType, o, 1);
2909
+ e.mimeType === "image/svg+xml" || Ze(e) || p(Ri(e.imagePath, Q(e)), Pi(s, c, i, e.srcRect), e.imagePath, e.mimeType, o, 1);
2910
2910
  }
2911
- if (t.type === "picture") !(Qe(t) || t.mimeType === "image/svg+xml") && !Q(t) && p(Ri(t.imagePath, Q(t)), Pi(Z(t.width, r), Z(t.height, r), i, t.srcRect), t.imagePath, t.mimeType, o, 1);
2911
+ if (t.type === "picture") !(Ze(t) || t.mimeType === "image/svg+xml") && !Q(t) && p(Ri(t.imagePath, Q(t)), Pi(Z(t.width, r), Z(t.height, r), i, t.srcRect), t.imagePath, t.mimeType, o, 1);
2912
2912
  else if (t.type === "media" && t.posterPath) {
2913
2913
  let e = s ? Mo(s) : void 0;
2914
2914
  p(Ri(t.posterPath), Pi(Z(t.width, r), Z(t.height, r), i), t.posterPath, t.posterMimeType || "application/octet-stream", e, 1, c ?? e);
@@ -2923,7 +2923,7 @@ async function Hi(e, t, n, r, i, a, o, s, c, l) {
2923
2923
  };
2924
2924
  for (let n of W(t.chart)) {
2925
2925
  let t = n.fill, r = j(n, e);
2926
- !(t.mimeType === "image/svg+xml" || Qe({
2926
+ !(t.mimeType === "image/svg+xml" || Ze({
2927
2927
  svgImagePath: t.svgImagePath,
2928
2928
  srcRect: n.hasSourceCrop ? !0 : null
2929
2929
  })) && !Q(t) && !n.preserveNaturalSize && r?.targetWidthPx && r.targetHeightPx && p(Ri(t.imagePath, Q(t)), {
@@ -2937,7 +2937,7 @@ async function Hi(e, t, n, r, i, a, o, s, c, l) {
2937
2937
  let n = Nr(e.bullet);
2938
2938
  if (n.type !== "blip") continue;
2939
2939
  let a = Vi(t.textBody, e, r, i);
2940
- !a || !o || f.push(rt(n.imagePath, n.mimeType, o).then((e) => e.dimensions && e.dimensions.width > 0 && e.dimensions.height > 0 && Pt(e.format, l !== void 0) ? {
2940
+ !a || !o || f.push(He(n.imagePath, n.mimeType, o).then((e) => e.dimensions && e.dimensions.width > 0 && e.dimensions.height > 0 && Pt(e.format, l !== void 0) ? {
2941
2941
  key: Ri(n.imagePath),
2942
2942
  targetWidthPx: a * e.dimensions.width / e.dimensions.height,
2943
2943
  targetHeightPx: a,
@@ -3283,7 +3283,7 @@ function Da(e, t, n) {
3283
3283
  function Oa(e, t, n, i, a, o, s, c, l, u = !1, d) {
3284
3284
  let f = [], p = e.runs.map((e) => e.type === "text" ? un(e, c) : null), m = [], h = "";
3285
3285
  for (let e of p) m.push(h.length), h += e ?? "\n";
3286
- let g = ot(h);
3286
+ let g = at(h);
3287
3287
  g.push(h.length);
3288
3288
  let _ = 0, v = (e) => {
3289
3289
  for (; _ < g.length && g[_] < e;) _++;
@@ -3359,7 +3359,7 @@ function Oa(e, t, n, i, a, o, s, c, l, u = !1, d) {
3359
3359
  });
3360
3360
  continue;
3361
3361
  }
3362
- let _ = h.fontSize == null ? t : h.fontSize * V * i * s, C = Sa(_, h.baseline ?? void 0), w = ia(h.fontFamily ?? e.defFontFamily ?? null, l), T = h.fontFamilySym ? ia(h.fontFamilySym, l) : null, E = h.bold ?? e.defBold ?? a, D = h.italic ?? e.defItalic ?? o, O = p[c] ?? "", k = h.fontFamilyEa ? [] : Oi(h.fontFamily ?? e.defFontFamily ?? l.themeMinorFont ?? null, [...O].filter((e) => at(e.codePointAt(0) ?? 0)).join("")), A = h.fontFamilyEa ? ia(h.fontFamilyEa, l) : k[0], j = h.fontFamilyCs ? ia(h.fontFamilyCs, l) : null, M = m[c], N = M + O.length;
3362
+ let _ = h.fontSize == null ? t : h.fontSize * V * i * s, C = Sa(_, h.baseline ?? void 0), w = ia(h.fontFamily ?? e.defFontFamily ?? null, l), T = h.fontFamilySym ? ia(h.fontFamilySym, l) : null, E = h.bold ?? e.defBold ?? a, D = h.italic ?? e.defItalic ?? o, O = p[c] ?? "", k = h.fontFamilyEa ? [] : Oi(h.fontFamily ?? e.defFontFamily ?? l.themeMinorFont ?? null, [...O].filter((e) => rt(e.codePointAt(0) ?? 0)).join("")), A = h.fontFamilyEa ? ia(h.fontFamilyEa, l) : k[0], j = h.fontFamilyCs ? ia(h.fontFamilyCs, l) : null, M = m[c], N = M + O.length;
3363
3363
  if (y && O) {
3364
3364
  let e = Math.min(v(M), N);
3365
3365
  e > M && (y.text += O.slice(0, e - M), O = O.slice(e - M), M = e);
@@ -3411,7 +3411,7 @@ function Oa(e, t, n, i, a, o, s, c, l, u = !1, d) {
3411
3411
  for (; K < O.length;) {
3412
3412
  let t = Math.min(v(M + K + 1), N) - M, n = O.slice(K, t);
3413
3413
  K = t, ne = !0;
3414
- let r = String.fromCodePoint(n.codePointAt(0) ?? 0), i = n, a = r.codePointAt(0) ?? 0, o = !at(a) && !!h.fontFamilyEa && Ni(a, h.lang), s = o || at(a), c = z(a) || xa.test(r), u = c ? j ?? vi(r) : w, d = o ? I(A, n, !0) : s ? P : c ? L(u, n) : I(w, n, aa(h.fontFamily ?? e.defFontFamily)), f = s ? A : u, p = ma(f, E, D, l);
3414
+ let r = String.fromCodePoint(n.codePointAt(0) ?? 0), i = n, a = r.codePointAt(0) ?? 0, o = !rt(a) && !!h.fontFamilyEa && Ni(a, h.lang), s = o || rt(a), c = z(a) || xa.test(r), u = c ? j ?? vi(r) : w, d = o ? I(A, n, !0) : s ? P : c ? L(u, n) : I(w, n, aa(h.fontFamily ?? e.defFontFamily)), f = s ? A : u, p = ma(f, E, D, l);
3415
3415
  if (/[\uf020-\uf0ff]/u.test(r) && (T != null || yt(w))) {
3416
3416
  let e = T ?? w, t = vt(r, e);
3417
3417
  i = t + n.slice(r.length), d = pa(E, D, C, t === r ? e : "sans-serif", l, i), p = void 0, f = t === r ? e : "sans-serif";
@@ -3550,7 +3550,7 @@ async function Ia(e, t, n, r, a, o, s, c) {
3550
3550
  } : { paint: l }, d, f;
3551
3551
  try {
3552
3552
  let l = c && !Q(e) ? zi(c, Ri(e.imagePath, Q(e))) : void 0;
3553
- f = e.tile ? await Fi(e, rt(e.imagePath, e.mimeType, a)) : void 0, d = await st(e.imagePath, e.mimeType, Q(e.tile ? {
3553
+ f = e.tile ? await Fi(e, He(e.imagePath, e.mimeType, a)) : void 0, d = await ot(e.imagePath, e.mimeType, Q(e.tile ? {
3554
3554
  ...e,
3555
3555
  dpi: void 0
3556
3556
  } : e), a, {
@@ -4583,7 +4583,7 @@ function wo(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
4583
4583
  if (!xo(a)) return;
4584
4584
  let o = S[n], s = i;
4585
4585
  e.save();
4586
- let c = o.bulletImage, l = c ? d.pictureBulletImages?.has(c.imagePath) ? d.pictureBulletImages.get(c.imagePath) : p ? Ze(c.imagePath, p) : null : null;
4586
+ let c = o.bulletImage, l = c ? d.pictureBulletImages?.has(c.imagePath) ? d.pictureBulletImages.get(c.imagePath) : p ? tt(c.imagePath, p) : null : null;
4587
4587
  if (c && l) {
4588
4588
  let t = c.sizePx, n = l.height > 0 ? t * l.width / l.height : t;
4589
4589
  e.drawImage(l, r - n / 2, s, n, t);
@@ -4828,7 +4828,7 @@ function To(e, t, n, r, i, a, o, s = null, c = 0, l = !1, u = !1, d = "#000000",
4828
4828
  t > R && (R = t, L = e);
4829
4829
  }
4830
4830
  }
4831
- let B = T && R > 0 ? z === "t" && I > 0 ? s.para.spaceLine?.type === "pct" ? Math.max(I, L + (s.baselineLineHeight - R) / 2) : I : Math.max(I, L + Math.max(0, d - R) / 2) : Math.max(d * .8, I), V = E === void 0 ? G + B : G + E, H = V + (l.segments.find((e) => !e.isTab && !e.math && !!e.text)?.fontAlgnOffsetPx ?? 0), U = O + j, W = S && g ? p.pictureBulletImages?.has(S.imagePath) ? p.pictureBulletImages.get(S.imagePath) : Ze(S.imagePath, g) : void 0, ee = 0;
4831
+ let B = T && R > 0 ? z === "t" && I > 0 ? s.para.spaceLine?.type === "pct" ? Math.max(I, L + (s.baselineLineHeight - R) / 2) : I : Math.max(I, L + Math.max(0, d - R) / 2) : Math.max(d * .8, I), V = E === void 0 ? G + B : G + E, H = V + (l.segments.find((e) => !e.isTab && !e.math && !!e.text)?.fontAlgnOffsetPx ?? 0), U = O + j, W = S && g ? p.pictureBulletImages?.has(S.imagePath) ? p.pictureBulletImages.get(S.imagePath) : tt(S.imagePath, g) : void 0, ee = 0;
4832
4832
  if (N && M) {
4833
4833
  if (v) e.font = y, ee = e.measureText(v).width;
4834
4834
  else if (S && W) {
@@ -5115,7 +5115,7 @@ function Mo(e) {
5115
5115
  }
5116
5116
  function No(e, t, n = Mo(t), r, i, a) {
5117
5117
  let o = Mo(t);
5118
- return Ve(e.posterPath, e.posterMimeType || "application/octet-stream", o, {
5118
+ return st(e.posterPath, e.posterMimeType || "application/octet-stream", o, {
5119
5119
  tiff: r,
5120
5120
  svgDecoder: a,
5121
5121
  ...i ?? {}
@@ -5144,7 +5144,7 @@ async function Fo(e, t, n, r, a = 1, o, s) {
5144
5144
  try {
5145
5145
  let c = e.mimeType === "image/svg+xml", l = pe(e.mimeType, e.srcRect, e.width / V, e.height / V);
5146
5146
  if (!l) return Fa;
5147
- let { widthPt: u, heightPt: d } = l, f = Pi(Z(e.width, t), Z(e.height, t), a, e.srcRect), p = Qe(e) || c, m = p ? f : s && !Q(e) ? zi(s, Ri(Bi(e), p ? void 0 : Q(e))) : void 0, h = m && "maxRetainedPixels" in m ? m.maxRetainedPixels : void 0, g = {
5147
+ let { widthPt: u, heightPt: d } = l, f = Pi(Z(e.width, t), Z(e.height, t), a, e.srcRect), p = Ze(e) || c, m = p ? f : s && !Q(e) ? zi(s, Ri(Bi(e), p ? void 0 : Q(e))) : void 0, h = m && "maxRetainedPixels" in m ? m.maxRetainedPixels : void 0, g = {
5148
5148
  ...m ? {
5149
5149
  targetWidthPx: m.targetWidthPx,
5150
5150
  targetHeightPx: m.targetHeightPx,
@@ -5152,21 +5152,21 @@ async function Fo(e, t, n, r, a = 1, o, s) {
5152
5152
  } : {},
5153
5153
  workerDecoder: o
5154
5154
  }, _;
5155
- if (!Q(e) && Qe(e)) try {
5156
- _ = await Be(e.svgImagePath, n, g);
5155
+ if (!Q(e) && Ze(e)) try {
5156
+ _ = await it(e.svgImagePath, n, g);
5157
5157
  } catch (t) {
5158
5158
  if (t instanceof he || Ii(t) || Ot(t)) throw t;
5159
- _ = c ? await Be(e.imagePath, n, g) : await st(e.imagePath, e.mimeType, Q(e), n, {
5159
+ _ = c ? await it(e.imagePath, n, g) : await ot(e.imagePath, e.mimeType, Q(e), n, {
5160
5160
  widthPt: u,
5161
5161
  heightPt: d,
5162
5162
  ...m ?? {},
5163
5163
  tiff: r
5164
5164
  });
5165
5165
  }
5166
- else if (c && !Q(e)) _ = await Be(e.imagePath, n, g);
5166
+ else if (c && !Q(e)) _ = await it(e.imagePath, n, g);
5167
5167
  else {
5168
5168
  let t = e.blipEffects?.length ? i(e.width / V, e.height / V, e.srcRect, null) : null;
5169
- _ = await st(e.imagePath, e.mimeType, Q(e), n, {
5169
+ _ = await ot(e.imagePath, e.mimeType, Q(e), n, {
5170
5170
  widthPt: t?.width ?? u,
5171
5171
  heightPt: t?.height ?? d,
5172
5172
  ...m ?? {},
@@ -5578,10 +5578,10 @@ async function Jo(e, t, n, r, i = {}, a) {
5578
5578
  let o = i.fetchImage ?? (i.fetchMedia ? Mo(i.fetchMedia) : void 0), s = (Wo.get(e) ?? 0) + 1;
5579
5579
  Wo.set(e, s);
5580
5580
  let c = () => Wo.get(e) !== s, l = () => c() ? Promise.resolve(e) : Yo(e, t, n, r, i, a, o, c);
5581
- return o && Gi(t) ? Le(o, i.imageResources, l) : l();
5581
+ return o && Gi(t) ? We(o, i.imageResources, l) : l();
5582
5582
  }
5583
5583
  async function Yo(e, t, n, r, a = {}, o, s, c = () => !1) {
5584
- let l = a.svgDecoder ?? (typeof Image < "u" ? et : void 0), u = a.width ?? ((Me(e) ? e.offsetWidth : 0) || 960), d = u / n, f = Math.round(u), p = Math.round(r * d), m = a.dpr ?? Ne(), h = S(f * m, p * m), g = h.clamped ? m * h.scale : m;
5584
+ let l = a.svgDecoder ?? (typeof Image < "u" ? Le : void 0), u = a.width ?? ((Me(e) ? e.offsetWidth : 0) || 960), d = u / n, f = Math.round(u), p = Math.round(r * d), m = a.dpr ?? Ne(), h = S(f * m, p * m), g = h.clamped ? m * h.scale : m;
5585
5585
  if (a.math && (await ta(t, a.math), c())) return e;
5586
5586
  let _, v = t;
5587
5587
  if (a.math) {
@@ -5716,17 +5716,17 @@ async function Yo(e, t, n, r, a = {}, o, s, c = () => !1) {
5716
5716
  preserveNaturalSize: e.preserveNaturalSize,
5717
5717
  hasSourceCrop: e.hasSourceCrop,
5718
5718
  ...t.blipEffects?.length ? { host: n } : {}
5719
- }, o = a.preserveNaturalSize || e.preserveNaturalSize, s = a.hasSourceCrop || e.hasSourceCrop, c = o || Q(t) ? void 0 : zi(y, Ri(t.imagePath, Q(t))), l = !Q(t) && (t.mimeType === "image/svg+xml" || Qe({
5719
+ }, o = a.preserveNaturalSize || e.preserveNaturalSize, s = a.hasSourceCrop || e.hasSourceCrop, c = !Q(t) && (t.mimeType === "image/svg+xml" || Ze({
5720
5720
  svgImagePath: t.svgImagePath,
5721
5721
  srcRect: s ? !0 : null
5722
- }));
5722
+ })), l = o || Q(t) || c ? void 0 : zi(y, Ri(t.imagePath, Q(t)));
5723
5723
  u.set(i, {
5724
5724
  ...a,
5725
5725
  widthPt: Math.max(a.widthPt, r.widthPt),
5726
5726
  heightPt: Math.max(a.heightPt, r.heightPt),
5727
- targetWidthPx: o ? void 0 : c?.targetWidthPx ?? (l && Math.max(a.targetWidthPx ?? 0, r.targetWidthPx ?? 0) || void 0),
5728
- targetHeightPx: o ? void 0 : c?.targetHeightPx ?? (l && Math.max(a.targetHeightPx ?? 0, r.targetHeightPx ?? 0) || void 0),
5729
- maxRetainedPixels: c?.maxRetainedPixels,
5727
+ targetWidthPx: o ? void 0 : l?.targetWidthPx ?? (c && Math.max(a.targetWidthPx ?? 0, r.targetWidthPx ?? 0) || void 0),
5728
+ targetHeightPx: o ? void 0 : l?.targetHeightPx ?? (c && Math.max(a.targetHeightPx ?? 0, r.targetHeightPx ?? 0) || void 0),
5729
+ maxRetainedPixels: l?.maxRetainedPixels,
5730
5730
  preserveNaturalSize: o,
5731
5731
  hasSourceCrop: s
5732
5732
  });
@@ -5778,10 +5778,10 @@ async function Yo(e, t, n, r, a = {}, o, s, c = () => !1) {
5778
5778
  let i = t === "image/svg+xml" ? r === void 0 ? {} : {
5779
5779
  targetWidthPx: 1,
5780
5780
  targetHeightPx: r
5781
- } : zi(y, Ri(e)) ?? {}, o = t === "image/svg+xml" ? await Be(e, n, {
5781
+ } : zi(y, Ri(e)) ?? {}, o = t === "image/svg+xml" ? await it(e, n, {
5782
5782
  ...i,
5783
5783
  workerDecoder: l
5784
- }) : await Ve(e, t, n, {
5784
+ }) : await st(e, t, n, {
5785
5785
  tiff: a.tiff,
5786
5786
  ...i
5787
5787
  });
@@ -5801,10 +5801,10 @@ async function Yo(e, t, n, r, a = {}, o, s, c = () => !1) {
5801
5801
  ...u === void 0 ? {} : { maxRetainedPixels: u }
5802
5802
  } : void 0;
5803
5803
  try {
5804
- let t = () => r.mimeType === "image/svg+xml" && !Q(r) ? Be(r.imagePath, n, {
5804
+ let t = () => r.mimeType === "image/svg+xml" && !Q(r) ? it(r.imagePath, n, {
5805
5805
  ...m ?? {},
5806
5806
  workerDecoder: l
5807
- }) : st(r.imagePath, r.mimeType, O(r, f, p) ?? void 0, n, {
5807
+ }) : ot(r.imagePath, r.mimeType, O(r, f, p) ?? void 0, n, {
5808
5808
  widthPt: p ? p.widthPt : r.blipEffects?.length ? 0 : i,
5809
5809
  heightPt: p ? p.heightPt : r.blipEffects?.length ? 0 : o,
5810
5810
  ...m ?? {},
@@ -5815,8 +5815,8 @@ async function Yo(e, t, n, r, a = {}, o, s, c = () => !1) {
5815
5815
  svgImagePath: r.svgImagePath,
5816
5816
  srcRect: d ? !0 : null
5817
5817
  };
5818
- if (!Q(r) && Qe(c)) try {
5819
- s = await Be(c.svgImagePath, n, {
5818
+ if (!Q(r) && Ze(c)) try {
5819
+ s = await it(c.svgImagePath, n, {
5820
5820
  ...m ?? {},
5821
5821
  workerDecoder: l
5822
5822
  });
@@ -5841,7 +5841,7 @@ async function Yo(e, t, n, r, a = {}, o, s, c = () => !1) {
5841
5841
  await Promise.all(e.map((e) => i([e, u.get(e)])));
5842
5842
  }
5843
5843
  })()], d = [...r].map(async ([e, { fill: t, host: r, widthPt: i, heightPt: o, targetWidthPx: s, targetHeightPx: c, preserveNaturalSize: u, hasSourceCrop: d }]) => {
5844
- let f = t.mimeType === "image/svg+xml" || !Q(t, r) && Qe({
5844
+ let f = t.mimeType === "image/svg+xml" || !Q(t, r) && Ze({
5845
5845
  svgImagePath: t.svgImagePath,
5846
5846
  srcRect: d ? !0 : null
5847
5847
  }), p = !u && !Q(t, r) ? zi(y, Ri(t.imagePath, Q(t, r))) : void 0, m = f ? !u && s && c ? {
@@ -5849,21 +5849,21 @@ async function Yo(e, t, n, r, a = {}, o, s, c = () => !1) {
5849
5849
  targetHeightPx: c
5850
5850
  } : void 0 : p;
5851
5851
  try {
5852
- let s = u ? (await Fi(t, rt(t.imagePath, t.mimeType, n))).dimensions ?? void 0 : void 0, c = () => t.mimeType === "image/svg+xml" && !Q(t, r) ? Be(t.imagePath, n, {
5852
+ let s = u ? (await Fi(t, He(t.imagePath, t.mimeType, n))).dimensions ?? void 0 : void 0, c = () => t.mimeType === "image/svg+xml" && !Q(t, r) ? it(t.imagePath, n, {
5853
5853
  ...m ?? {},
5854
5854
  workerDecoder: l
5855
- }) : st(t.imagePath, t.mimeType, Q(t, r), n, {
5855
+ }) : ot(t.imagePath, t.mimeType, Q(t, r), n, {
5856
5856
  ...Li(t, i, o),
5857
5857
  ...m ?? {},
5858
5858
  failClosedOnDuotoneFailure: !0,
5859
5859
  tiff: a.tiff,
5860
5860
  svgDecoder: l
5861
5861
  }), f;
5862
- if (!Q(t, r) && Qe({
5862
+ if (!Q(t, r) && Ze({
5863
5863
  svgImagePath: t.svgImagePath,
5864
5864
  srcRect: d ? !0 : null
5865
5865
  })) try {
5866
- f = await Be(t.svgImagePath, n, {
5866
+ f = await it(t.svgImagePath, n, {
5867
5867
  ...m ?? {},
5868
5868
  workerDecoder: l
5869
5869
  });
@@ -5957,7 +5957,7 @@ var Xo = Object.freeze({
5957
5957
  declaredInflatedBytes: 0,
5958
5958
  distinctInflatedBytes: 0,
5959
5959
  operationInflatedBytes: 0
5960
- }), Zo = nt;
5960
+ }), Zo = et;
5961
5961
  function Qo(e, t) {
5962
5962
  if (e !== null && typeof e != "string") throw Error(`invalid PPTX presentation bootstrap ${t}`);
5963
5963
  }
@@ -1,4 +1,4 @@
1
- import { I as e, K as t, L as n, R as r, z as i } from "./bounded-raw-part-cache-Bi_VqXmg.js";
1
+ import { I as e, K as t, L as n, R as r, z as i } from "./bounded-raw-part-cache-B8t03tSP.js";
2
2
  function a(t) {
3
3
  return r(t) ? new e(`WASM parser trapped and was recycled: ${t instanceof Error ? t.message : String(t)}`) : null;
4
4
  }
@@ -1,8 +1,8 @@
1
- import { N as e, j as t, qt as n } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
- import { T as r } from "./canvas-viewer-mechanics-ycCX6v-z.js";
3
- import { a as i, g as a } from "./renderer-DFDF48zw.js";
4
- import { b as o } from "./worksheet-pull-client-D5zAevQv.js";
5
- import { c as s, l as c } from "./xlsx-lvftmF1U.js";
1
+ import { N as e, j as t, qt as n } from "./bounded-raw-part-cache-B8t03tSP.js";
2
+ import { T as r } from "./canvas-viewer-mechanics-DI38gHNV.js";
3
+ import { a as i, g as a } from "./renderer-BYt3nsdR.js";
4
+ import { b as o } from "./worksheet-pull-client-Du0MuIro.js";
5
+ import { c as s, l as c } from "./xlsx-CVVWeouT.js";
6
6
  import { n as l, o as u, r as d } from "./model-source-COXegBNA.js";
7
7
  import { t as f } from "./bundled-asset-url-BMJ8vNHP.js";
8
8
  import { n as p } from "./host-layout-Cz_lCuTZ.js";
@@ -52,7 +52,7 @@ async function m(i, d, f) {
52
52
  let p = l(t, "xlsx");
53
53
  try {
54
54
  _.setSourceBytes(e.byteLength), _.checkpoint("container ready");
55
- let t = g === "worker" ? (await import("./render-worker-host-BR7n4xKy.js")).createRenderWorker() : new (await (import("./worker-source-C29EQNUj.js"))).default(), n, i = h(t, p, d, (e) => {
55
+ let t = g === "worker" ? (await import("./render-worker-host-DSrgUCkT.js")).createRenderWorker() : new (await (import("./worker-source-C29EQNUj.js"))).default(), n, i = h(t, p, d, (e) => {
56
56
  n && (n.sourceMdw = e);
57
57
  });
58
58
  try {
@@ -1,7 +1,7 @@
1
1
  import { yo as e } from "./plot-area-frame-D3JtHvov.js";
2
- import { B as t, Cn as n, D as r, E as i, G as a, O as o, Sn as s, W as c, _n as l, bn as u, gn as d, k as f, vn as p, wn as m, xn as h, yn as g } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
+ import { B as t, Cn as n, D as r, E as i, G as a, O as o, Sn as s, W as c, _n as l, bn as u, gn as d, k as f, vn as p, wn as m, xn as h, yn as g } from "./bounded-raw-part-cache-B8t03tSP.js";
3
3
  import { n as _ } from "./abort-JztSoyw2.js";
4
- import { n as v, r as y, t as b } from "./resource-measurement-CTGrNAsD.js";
4
+ import { n as v, r as y, t as b } from "./resource-measurement-D2bu0Qfx.js";
5
5
  function x(e) {
6
6
  return e.byteOffset === 0 && e.byteLength === e.buffer.byteLength && e.buffer instanceof ArrayBuffer ? e.buffer : e.slice().buffer;
7
7
  }