@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,4 +1,4 @@
1
- import { ot as e } from "./bounded-raw-part-cache-Bi_VqXmg.js";
1
+ import { _t as e } from "./bounded-raw-part-cache-B8t03tSP.js";
2
2
  import { B as t } from "./renderer-xdugdcMd.js";
3
3
  import { t as n } from "./abort-JztSoyw2.js";
4
4
  function r(e, t, n = {}) {
@@ -1,5 +1,5 @@
1
- import { An as e, En as t, Y as n, dn as r, jn as i, kn as a } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
- import { C as o, S as s, _ as c, a as l, b as u, g as d, h as f, l as p, m, p as h, r as g, x as _, y as v } from "./canvas-viewer-mechanics-ycCX6v-z.js";
1
+ import { An as e, En as t, Y as n, dn as r, jn as i, kn as a } from "./bounded-raw-part-cache-B8t03tSP.js";
2
+ import { C as o, S as s, _ as c, a as l, b as u, g as d, h as f, l as p, m, p as h, r as g, x as _, y as v } from "./canvas-viewer-mechanics-DI38gHNV.js";
3
3
  function y(e, t = r) {
4
4
  return e.byteLength > 0 && e.byteLength <= t;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { Aa as e } from "./plot-area-frame-D3JtHvov.js";
2
- import { E as t } from "./comment-overlay-controller-CR5ySvki.js";
3
- import { r as n } from "./pptx-CLyebeF_.js";
2
+ import { E as t } from "./comment-overlay-controller-Crm5Syhx.js";
3
+ import { r as n } from "./pptx-CfCiVlNB.js";
4
4
  import { i as r, n as i, o as a, r as o, t as s } from "./read-only-comment-margin-Ee9Y6vPg.js";
5
5
  import { i as c, n as l, r as u, t as d } from "./read-only-comment-decoration-B06YO2zk.js";
6
6
  function f(e, t, n) {
@@ -1,6 +1,6 @@
1
- import { E as e } from "./comment-overlay-controller-CR5ySvki.js";
2
- import { L as t } from "./document-pull-client-CHpz0Q1p.js";
3
- import { f as n } from "./docx-GXxH0AwW.js";
1
+ import { E as e } from "./comment-overlay-controller-Crm5Syhx.js";
2
+ import { L as t } from "./document-pull-client-Ckq8THk6.js";
3
+ import { f as n } from "./docx-ChGrdRyp.js";
4
4
  import { i as r, n as i, o as a, r as o, s, t as c } from "./read-only-comment-margin-Ee9Y6vPg.js";
5
5
  import { i as l, n as u, r as d, t as f } from "./read-only-comment-decoration-B06YO2zk.js";
6
6
  function p(e, r) {
@@ -1,8 +1,8 @@
1
- import { Dn as e, N as t, On as n, Xt as r, j as i, qt as a } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
- import { P as o, b as s } from "./comment-overlay-controller-CR5ySvki.js";
3
- import { N as c, _ as l, a as u, d, f, j as p, l as m, o as h, p as g, s as _, v, y } from "./document-pull-client-CHpz0Q1p.js";
4
- import { _ as b, c as x, g as S, h as C, l as w, m as T, u as E } from "./docx-GXxH0AwW.js";
5
- import { T as D } from "./canvas-viewer-mechanics-ycCX6v-z.js";
1
+ import { Dn as e, N as t, On as n, Xt as r, j as i, qt as a } from "./bounded-raw-part-cache-B8t03tSP.js";
2
+ import { P as o, b as s } from "./comment-overlay-controller-Crm5Syhx.js";
3
+ import { N as c, _ as l, a as u, d, f, j as p, l as m, o as h, p as g, s as _, v, y } from "./document-pull-client-Ckq8THk6.js";
4
+ import { _ as b, c as x, g as S, h as C, l as w, m as T, u as E } from "./docx-ChGrdRyp.js";
5
+ import { T as D } from "./canvas-viewer-mechanics-DI38gHNV.js";
6
6
  import { n as O } from "./renderer-module-contract-BuTx2FWJ.js";
7
7
  import { n as k, o as A, r as j } from "./model-source-COXegBNA.js";
8
8
  import { t as M } from "./bundled-asset-url-BMJ8vNHP.js";
@@ -54,7 +54,7 @@ async function F(j, M = {}, N) {
54
54
  let a = k(i, "docx");
55
55
  try {
56
56
  H.setSourceBytes(t.byteLength), H.checkpoint("container ready");
57
- let i = V === "worker" ? (await import("./render-worker-host-BxsA-yJo.js")).createRenderWorker() : new (await (import("./worker-source-D3NwPe6l.js"))).default(), k, A, j = !1, U = () => {
57
+ let i = V === "worker" ? (await import("./render-worker-host-DYUY1TuP.js")).createRenderWorker() : new (await (import("./worker-source-D3NwPe6l.js"))).default(), k, A, j = !1, U = () => {
58
58
  j || !k || (j = !0, k.destroy());
59
59
  }, W = I(i, a, M, (e) => {
60
60
  k && P(k, e);
@@ -1,11 +1,11 @@
1
1
  import { Ao as e, Dr as t, Eo as n, Hr as r, Lr as i, Oo as a, Sr as o, To as s, Tr as c, Ur as l, Vr as u, Wr as d, Yn as f, Zr as p, _o as m, a as h, ao as g, bo as _, c as v, co as y, d as b, do as x, fo as S, go as C, h as w, lo as T, m as E, o as D, oo as O, or as k, po as A, r as j, rr as M, so as N, u as P, ur as F, vo as I, wr as L, xo as R, xr as ee, yo as te } from "./plot-area-frame-D3JtHvov.js";
2
- import { $ as z, $t as B, An as ne, C as re, E as ie, En as ae, J as oe, Jt as se, Kt as ce, Q as le, Qt as V, S as ue, T as de, Wt as fe, X as pe, Xt as me, Y as he, _ as ge, _t as _e, a as ve, at as ye, b as be, ct as xe, d as Se, dt as Ce, en as we, f as Te, ft as Ee, g as De, gt as Oe, h as ke, i as Ae, jn as je, kn as Me, ln as Ne, lt as Pe, m as Fe, nn as Ie, nt as Le, on as Re, ot as ze, p as Be, pt as Ve, r as He, rn as Ue, s as We, sn as Ge, tn as Ke, tt as qe, un as Je, vt as Ye, w as Xe, x as Ze, y as Qe, yt as $e, zt as et } from "./bounded-raw-part-cache-Bi_VqXmg.js";
3
- import { _ as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, n as lt, p as ut, r as dt, t as ft, v as pt, y as mt } from "./line-distribute-C_CJisnJ.js";
2
+ import { $ as z, $t as B, An as ne, C as re, E as ie, En as ae, J as oe, Jt as se, Kt as ce, Q as le, Qt as V, S as ue, T as de, Wt as fe, X as pe, Xt as me, Y as he, _ as ge, _t as _e, a as ve, at as ye, b as be, ct as xe, d as Se, dt as Ce, en as we, f as Te, ft as Ee, g as De, gt as Oe, h as ke, ht as Ae, i as je, jn as Me, kn as Ne, ln as Pe, m as Fe, nn as Ie, nt as Le, on as Re, p as ze, r as Be, rn as Ve, s as He, sn as Ue, st as We, tn as Ge, tt as Ke, un as qe, ut as Je, vt as Ye, w as Xe, x as Ze, y as Qe, yt as $e, zt as et } from "./bounded-raw-part-cache-B8t03tSP.js";
3
+ import { _ as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, n as lt, p as ut, r as dt, t as ft, v as pt, y as mt } from "./line-distribute-DR9Qwd3u.js";
4
4
  import { f as ht, s as gt, u as _t } from "./pixel-budget-DI82Hn3R.js";
5
5
  import { H as vt, L as yt, R as bt, V as xt, n as St, r as Ct, t as wt } from "./renderer-xdugdcMd.js";
6
6
  import { i as Tt } from "./tiff-contract-DEd8CGuz.js";
7
7
  import { r as Et } from "./raster-target-Ca3tyA0L.js";
8
- import { a as Dt, i as Ot, n as kt, o as At, r as jt, t as Mt } from "./drawingml-shape-BwELUfNW.js";
8
+ import { a as Dt, i as Ot, n as kt, o as At, r as jt, t as Mt } from "./drawingml-shape-BcXkRayC.js";
9
9
  import { a as Nt, i as Pt, n as Ft } from "./duotone-BI7CoghW.js";
10
10
  function It(e, t) {
11
11
  let n = e.trim();
@@ -809,11 +809,11 @@ async function er(e) {
809
809
  if (!e || typeof FontFace > "u") return null;
810
810
  let t = [];
811
811
  try {
812
- for (let n of Kn) t.push(je(`native-route-sentinel:${n.family}`, e, () => {
812
+ for (let n of Kn) t.push(Me(`native-route-sentinel:${n.family}`, e, () => {
813
813
  let t = new FontFace(n.family, Zn(n.advance, n.ascent, n.descent, n.inkUp, n.inkDown, n.family.replace(/_/g, "")));
814
814
  return e.add(t), t;
815
815
  }).face);
816
- if (await Me(Promise.all(t.map((e) => e.load())))) return t;
816
+ if (await Ne(Promise.all(t.map((e) => e.load())))) return t;
817
817
  } catch {}
818
818
  return ne(t), null;
819
819
  }
@@ -1098,7 +1098,7 @@ function Or(e, t) {
1098
1098
  return Math.abs(e.height - 2 * t.height) <= 3 && Math.abs(e.ascent - 2 * t.ascent) <= 1 && Math.abs(e.descent - 2 * t.descent) <= 1;
1099
1099
  }
1100
1100
  async function kr(e, t, n) {
1101
- let r = `${e.family}_coverage`, { face: i } = je(`local-coverage:${t}:${e.weight}:${e.style}`, n, () => {
1101
+ let r = `${e.family}_coverage`, { face: i } = Me(`local-coverage:${t}:${e.weight}:${e.style}`, n, () => {
1102
1102
  let i = new FontFace(r, t, {
1103
1103
  weight: e.weight,
1104
1104
  style: e.style,
@@ -1107,7 +1107,7 @@ async function kr(e, t, n) {
1107
1107
  return n.add(i), i;
1108
1108
  });
1109
1109
  try {
1110
- if (await Me(i.load()) && i.status === "loaded" && i.sizeAdjust === "0%" && jr(i, e)) return i;
1110
+ if (await Ne(i.load()) && i.status === "loaded" && i.sizeAdjust === "0%" && jr(i, e)) return i;
1111
1111
  } catch {}
1112
1112
  return ne([i]), null;
1113
1113
  }
@@ -1191,7 +1191,7 @@ function Br(e, t) {
1191
1191
  return n.width === 0 && n.actualBoundingBoxAscent === 0 && n.actualBoundingBoxDescent === 0;
1192
1192
  }
1193
1193
  async function Vr(e, t, n, r, i, a) {
1194
- let { face: o } = je(`local-normal:${e}:${n}:${r}`, a.fonts, () => {
1194
+ let { face: o } = Me(`local-normal:${e}:${n}:${r}`, a.fonts, () => {
1195
1195
  let i = new FontFace(`${t}_normal`, e, {
1196
1196
  weight: String(n),
1197
1197
  style: r
@@ -1199,7 +1199,7 @@ async function Vr(e, t, n, r, i, a) {
1199
1199
  return a.fonts.add(i), i;
1200
1200
  });
1201
1201
  try {
1202
- let e = await Me(o.load()), t = a.createElement("canvas").getContext("2d");
1202
+ let e = await Ne(o.load()), t = a.createElement("canvas").getContext("2d");
1203
1203
  return e && t ? wr(o, a.fonts, t, i, a) : null;
1204
1204
  } catch {
1205
1205
  return null;
@@ -3373,7 +3373,7 @@ function es(e, t, n, r, i) {
3373
3373
  }).advancePt, l = (e) => {
3374
3374
  let n = [
3375
3375
  0,
3376
- ...Ke(e),
3376
+ ...Ge(e),
3377
3377
  e.length
3378
3378
  ].filter((e, t, n) => t === 0 || e !== n[t - 1]), r = n.length - 1;
3379
3379
  for (; r > 0 && c(`${e.slice(0, n[r])}…`) > t;) --r;
@@ -3383,7 +3383,7 @@ function es(e, t, n, r, i) {
3383
3383
  }, d = (e) => {
3384
3384
  let n = [
3385
3385
  0,
3386
- ...Ke(e),
3386
+ ...Ge(e),
3387
3387
  e.length
3388
3388
  ].filter((e, t, n) => t === 0 || e !== n[t - 1]), r = 0;
3389
3389
  for (; r < n.length - 1;) {
@@ -4038,7 +4038,7 @@ function cc(e, t, n) {
4038
4038
  return e + t * (n - 1);
4039
4039
  }
4040
4040
  function lc(e) {
4041
- return We(e);
4041
+ return He(e);
4042
4042
  }
4043
4043
  function uc(e, t) {
4044
4044
  return t > 0 ? Math.max(1, Math.ceil(e / t)) : 1;
@@ -4113,7 +4113,7 @@ function xc(e, t) {
4113
4113
  };
4114
4114
  }
4115
4115
  function Sc(e) {
4116
- return /^[A-Za-z]\p{M}+$/u.test(e) && Ke(e).length === 0;
4116
+ return /^[A-Za-z]\p{M}+$/u.test(e) && Ge(e).length === 0;
4117
4117
  }
4118
4118
  var Cc = /^(?:[\p{Script=Latin}\u0020-\u0040\u005B-\u0060\u007B-\u007E\u00A0-\u00AC\u00AE-\u00BF\u00D7\u00F7\u0300-\u036F])+$/u;
4119
4119
  function wc(e) {
@@ -4513,7 +4513,7 @@ function Jc(e) {
4513
4513
  if (w) return w;
4514
4514
  let T = [], E = Object.freeze([...new Set([
4515
4515
  0,
4516
- ...Ke(t.text),
4516
+ ...Ge(t.text),
4517
4517
  t.text.length
4518
4518
  ])].sort((e, t) => e - t)), D = new Set(E), O = h(t.text);
4519
4519
  O.forEach((e) => {
@@ -6316,14 +6316,14 @@ function Ld(e, t, n = 0) {
6316
6316
  let r = Id(e);
6317
6317
  return [
6318
6318
  0,
6319
- ...Ke(e.text),
6319
+ ...Ge(e.text),
6320
6320
  e.text.length
6321
6321
  ].filter((e, t, n) => n.indexOf(e) === t).filter((e) => e >= n && e <= t && !r.has(e)).at(-1) ?? 0;
6322
6322
  }
6323
6323
  function Rd(e) {
6324
6324
  if (e.hardJoinPrev !== !0 || e.text.length === 0) return;
6325
6325
  let t = Id(e);
6326
- return [...Ke(e.text), e.text.length].find((e) => e > 0 && !t.has(e)) ?? e.text.length;
6326
+ return [...Ge(e.text), e.text.length].find((e) => e > 0 && !t.has(e)) ?? e.text.length;
6327
6327
  }
6328
6328
  function zd(e, t, n) {
6329
6329
  let r = e.semanticSlotSpans, i = (e.semanticSlotRange?.start ?? 0) + t, a = (e.semanticSlotRange?.start ?? 0) + n;
@@ -6388,7 +6388,7 @@ function Hd(e) {
6388
6388
  }
6389
6389
  let e = r, i = e.punctuationCompressions ?? [], a = new Map(i.map((e, t) => [e.end, t])), o = i.length > 0 ? Vd(e) : void 0, s = [
6390
6390
  0,
6391
- ...Ke(e.text),
6391
+ ...Ge(e.text),
6392
6392
  e.text.length
6393
6393
  ];
6394
6394
  for (let r = 0; r < s.length - 1; r += 1) {
@@ -6624,7 +6624,7 @@ function sf(e, t) {
6624
6624
  function cf(e) {
6625
6625
  for (let t = 0; t < e.length;) {
6626
6626
  let n = e.codePointAt(t);
6627
- if (Ge(n)) return !0;
6627
+ if (Ue(n)) return !0;
6628
6628
  t += n > 65535 ? 2 : 1;
6629
6629
  }
6630
6630
  return !1;
@@ -6674,7 +6674,7 @@ function mf(e, t) {
6674
6674
  function hf(e) {
6675
6675
  let t = [], n = null, r = "";
6676
6676
  for (let i of e) {
6677
- let e = Ge(i.codePointAt(0));
6677
+ let e = Ue(i.codePointAt(0));
6678
6678
  n === null || e === n ? (n = e, r += i) : (t.push({
6679
6679
  text: r,
6680
6680
  ea: n
@@ -7225,7 +7225,7 @@ function hp(e) {
7225
7225
  }
7226
7226
  function gp(e) {
7227
7227
  if (e.length === 0) return;
7228
- let t = Ke(e);
7228
+ let t = Ge(e);
7229
7229
  return String.fromCodePoint(e.codePointAt(t.at(-1) ?? 0));
7230
7230
  }
7231
7231
  function _p(e, t, n) {
@@ -7251,7 +7251,7 @@ function vp(e, t) {
7251
7251
  if (!("text" in n) || !mp(n)) a = void 0;
7252
7252
  else if (n.text.length > 0) {
7253
7253
  let e = n.seaBreaks !== void 0;
7254
- for (let t of [0, ...Ke(n.text)]) {
7254
+ for (let t of [0, ...Ge(n.text)]) {
7255
7255
  let i = String.fromCodePoint(n.text.codePointAt(t));
7256
7256
  up.test(i) || (!e && t > 0 && r(a, i) && o.push(t), a = i);
7257
7257
  }
@@ -7545,7 +7545,7 @@ function Hp(e, t, n) {
7545
7545
  for (; i < n.length && t(n[i]);) a.push(n[i++]);
7546
7546
  let o = a.map((e) => e.text).join("");
7547
7547
  if (o.includes("-")) {
7548
- let e = [...Ke(o), o.length], t = 0, n = /* @__PURE__ */ new Set(), r = 0;
7548
+ let e = [...Ge(o), o.length], t = 0, n = /* @__PURE__ */ new Set(), r = 0;
7549
7549
  for (let e of a) {
7550
7550
  for (let t of e.noBreakRanges ?? []) n.add(r + t.start), n.add(r + t.end);
7551
7551
  e.hardJoinPrev && n.add(r), r += e.text.length;
@@ -7590,7 +7590,7 @@ function Hp(e, t, n) {
7590
7590
  }
7591
7591
  let l = /* @__PURE__ */ new Set();
7592
7592
  for (let e of o.matchAll(/\S+/gu)) {
7593
- let t = e[0], n = e.index, r = new Set(Ke(t).map((e) => n + e)), i = new Set([...s].filter((e) => e > n && e <= n + t.length).map((e) => e - n)), a = new Set([...r].map((e) => e - n));
7593
+ let t = e[0], n = e.index, r = new Set(Ge(t).map((e) => n + e)), i = new Set([...s].filter((e) => e > n && e <= n + t.length).map((e) => e - n)), a = new Set([...r].map((e) => e - n));
7594
7594
  for (let e of ic(t, a, i)) l.add(n + e);
7595
7595
  }
7596
7596
  if (l.size === 0) {
@@ -7789,7 +7789,7 @@ function qp(e, t, n, r, i, a = !1, o = !1, s) {
7789
7789
  if (!a && d && m === void 0) {
7790
7790
  let i = [
7791
7791
  0,
7792
- ...Ke(t),
7792
+ ...Ge(t),
7793
7793
  t.length
7794
7794
  ];
7795
7795
  if (i.slice(0, -1).map((e, n) => t.slice(e, i[n + 1])).some((e) => df(e, l.characterSpacingControl))) {
@@ -7838,7 +7838,7 @@ function qp(e, t, n, r, i, a = !1, o = !1, s) {
7838
7838
  punctuationCompressions: a && d ? (() => {
7839
7839
  let e = [
7840
7840
  0,
7841
- ...Ke(t),
7841
+ ...Ge(t),
7842
7842
  t.length
7843
7843
  ], n = [];
7844
7844
  for (let r = 0; r < e.length - 1; r += 1) {
@@ -9026,7 +9026,7 @@ function Vm(e, t, n, r, i, a) {
9026
9026
  };
9027
9027
  }
9028
9028
  function Hm(e, t, n, r, i, a, o, s) {
9029
- let c = Ke(i.text)[0] ?? i.text.length;
9029
+ let c = Ge(i.text)[0] ?? i.text.length;
9030
9030
  if (c <= 0) return !1;
9031
9031
  let l = i.text.slice(0, c), u = t(i, l);
9032
9032
  return n({
@@ -9429,7 +9429,7 @@ function vh(e, t) {
9429
9429
  t.textLayoutService && t.textShapeRequest && !t.shapedClusters && i(t, !0);
9430
9430
  let c = t.shapedClusters?.length ? t.shapedClusters : null, l = c == null ? [...new Set([
9431
9431
  0,
9432
- ...Ke(t.text),
9432
+ ...Ge(t.text),
9433
9433
  t.text.length
9434
9434
  ])].sort((e, t) => e - t) : null, u = c?.map((e) => ({
9435
9435
  start: e.range.start,
@@ -9723,7 +9723,7 @@ function Mh(e, t, n, r = !0) {
9723
9723
  e.reservePrefixWork(t.text.length);
9724
9724
  let h = Id(t), g = [...new Set([
9725
9725
  0,
9726
- ...Ke(t.text),
9726
+ ...Ge(t.text),
9727
9727
  t.text.length
9728
9728
  ])], _ = 0;
9729
9729
  if (n > 0) if (Dd(t, d) >= 0 && qd(t, p) !== "latin") s(hm(t.bold, t.italic, o(t), t.fontFamily, f, t.fontRoute)), a.withSegmentKerning(t, () => {
@@ -10346,7 +10346,7 @@ function tg(e, t) {
10346
10346
  let t = b(S);
10347
10347
  if (t.kind === "blocked") {
10348
10348
  let t = Rh(n.currentLine);
10349
- e.forcedPlacement(Bh(n.currentLine, t) + d(S, S.text.slice(0, Ke(S.text).find((e) => e > 0) ?? S.text.length)), t), x(S, C, w, T);
10349
+ e.forcedPlacement(Bh(n.currentLine, t) + d(S, S.text.slice(0, Ge(S.text).find((e) => e > 0) ?? S.text.length)), t), x(S, C, w, T);
10350
10350
  return;
10351
10351
  }
10352
10352
  r(void 0, !1, t.kind === "retracted" ? t.tail.src : S.src), n.queue.unshift(S), t.kind === "retracted" && n.queue.unshift(t.tail);
@@ -10377,7 +10377,7 @@ function tg(e, t) {
10377
10377
  }
10378
10378
  }
10379
10379
  function ng(e, t) {
10380
- let { breakerState: n, flush: r, addToLine: i, scale: a, characterGrid: o, availW: s, strAdvance: c, emergencyTextSplit: l, strNaturalAdvance: u, retractCurrentLineForLeadingKinsoku: d, keepLeadingKinsokuWithCurrentLine: f } = e, { s: p, h: m, asc: h, desc: g } = t, _ = p, v = s() - n.currentWidth, y = (e) => c(_, e), b = Ue(_.text) && Dd(_, a) >= 0 && qd(_, o) !== "latin", x = B(_.text, _.seaBreaks, 0, v, y, b);
10380
+ let { breakerState: n, flush: r, addToLine: i, scale: a, characterGrid: o, availW: s, strAdvance: c, emergencyTextSplit: l, strNaturalAdvance: u, retractCurrentLineForLeadingKinsoku: d, keepLeadingKinsokuWithCurrentLine: f } = e, { s: p, h: m, asc: h, desc: g } = t, _ = p, v = s() - n.currentWidth, y = (e) => c(_, e), b = Ve(_.text) && Dd(_, a) >= 0 && qd(_, o) !== "latin", x = B(_.text, _.seaBreaks, 0, v, y, b);
10381
10381
  if (x > 0 && n.currentLine.length === 0 && zh(e, _, _.text.slice(0, x)) && e.forcedPlacement(e.minimalLegalTextWidth(_)), x > 0) {
10382
10382
  let e = _.text.slice(0, x), t = u(_, e);
10383
10383
  i({
@@ -10404,13 +10404,13 @@ function ng(e, t) {
10404
10404
  let t = d(_);
10405
10405
  if (t.kind === "blocked") {
10406
10406
  let t = Rh(n.currentLine);
10407
- e.forcedPlacement(Bh(n.currentLine, t) + c(_, _.text.slice(0, Ke(_.text).find((e) => e > 0) ?? _.text.length)), t), f(_, m, h, g);
10407
+ e.forcedPlacement(Bh(n.currentLine, t) + c(_, _.text.slice(0, Ge(_.text).find((e) => e > 0) ?? _.text.length)), t), f(_, m, h, g);
10408
10408
  return;
10409
10409
  }
10410
10410
  r(void 0, !1, t.kind === "retracted" ? t.tail.src : _.src), n.queue.unshift(_), t.kind === "retracted" && n.queue.unshift(t.tail);
10411
10411
  } else {
10412
10412
  e.forcedPlacement(e.minimalLegalTextWidth(_));
10413
- let t = _.seaBreaks[0] ?? _.text.length, r = _.text.slice(0, t), a = Ke(r), o = B(r, a, 0, v, y, b);
10413
+ let t = _.seaBreaks[0] ?? _.text.length, r = _.text.slice(0, t), a = Ge(r), o = B(r, a, 0, v, y, b);
10414
10414
  o <= 0 && (o = a.length > 0 ? a[0] : r.length), o = Ld(_, o) || l(_, v, !0);
10415
10415
  let s = _.text.slice(0, o), c = u(_, s);
10416
10416
  i({
@@ -10573,7 +10573,7 @@ var og = {
10573
10573
  digitsAsAN: (e) => e.digitsAsAN === !0,
10574
10574
  isRtlAmbiguous: ef,
10575
10575
  directionFromAnyOdd: !0
10576
- }, sg = (e) => Ae(e, og), cg = (e, t) => He(e, t, og);
10576
+ }, sg = (e) => je(e, og), cg = (e, t) => Be(e, t, og);
10577
10577
  function lg(e, t) {
10578
10578
  switch (e) {
10579
10579
  case "center": return "center";
@@ -11817,7 +11817,7 @@ function av(e, t, n, r, i, a, o) {
11817
11817
  clusterGeometry: !0
11818
11818
  }).clusters : void 0, t = e?.length ? null : [...new Set([
11819
11819
  0,
11820
- ...Ke(g),
11820
+ ...Ge(g),
11821
11821
  g.length
11822
11822
  ])].sort((e, t) => e - t), n = e?.map((e) => ({
11823
11823
  start: e.range.start,
@@ -11896,7 +11896,7 @@ function ov(e, t, n) {
11896
11896
  }
11897
11897
  let d = [
11898
11898
  0,
11899
- ...Ke(a),
11899
+ ...Ge(a),
11900
11900
  a.length
11901
11901
  ], _ = [];
11902
11902
  for (let e = 1; e < d.length; e += 1) _.push({
@@ -13804,7 +13804,7 @@ async function ax(e, t, n, r, i) {
13804
13804
  return a;
13805
13805
  }
13806
13806
  async function ox(e, t, n, r, i = 0, a = 0, o, s, c, l, u, d, f, p) {
13807
- if (f?.length) return qe(e, t, {
13807
+ if (f?.length) return Ke(e, t, {
13808
13808
  effects: n && !f.some((e) => e.type === "colorChange") ? [{
13809
13809
  type: "colorChange",
13810
13810
  from: n,
@@ -13821,23 +13821,23 @@ async function ox(e, t, n, r, i = 0, a = 0, o, s, c, l, u, d, f, p) {
13821
13821
  tiff: s,
13822
13822
  ...c,
13823
13823
  ...l ? { maxRetainedPixels: l } : {},
13824
- svgDecoder: u ?? (typeof Image < "u" ? ze : void 0),
13824
+ svgDecoder: u ?? (typeof Image < "u" ? _e : void 0),
13825
13825
  failClosedOnDuotoneFailure: !0
13826
13826
  });
13827
- let m = Math.floor(gt / (n || o || d ? 4 : 1)), h = Number.isSafeInteger(l) && (l ?? 0) > 0 ? Math.min(m, l) : m, g = n || o || d ? Pe(r, rx) : void 0, _ = {
13827
+ let m = Math.floor(gt / (n || o || d ? 4 : 1)), h = Number.isSafeInteger(l) && (l ?? 0) > 0 ? Math.min(m, l) : m, g = n || o || d ? xe(r, rx) : void 0, _ = {
13828
13828
  widthPt: i,
13829
13829
  heightPt: a,
13830
- svgDecoder: u ?? (t === "image/svg+xml" && typeof Image < "u" ? ze : void 0),
13830
+ svgDecoder: u ?? (t === "image/svg+xml" && typeof Image < "u" ? _e : void 0),
13831
13831
  tiff: s,
13832
13832
  maxRetainedPixels: h,
13833
13833
  ...c ?? {}
13834
- }, v = await Ce(e, t, r, { ..._ });
13834
+ }, v = await Je(e, t, r, { ..._ });
13835
13835
  if (!v) return null;
13836
13836
  if (!n && !o && !d) return v;
13837
13837
  let y = v.width * v.height;
13838
13838
  if (y > h) throw new _t("image-pixels", h, y);
13839
- let b = await Oe(e, t, r, _, g, v), x = Et(v.width, v.height, c?.targetWidthPx, c?.targetHeightPx), S = x ? `|resize:${x.resizeWidth}x${x.resizeHeight}` : "";
13840
- return Ee(rx, `${tx(b, n, o, d)}${S}`, r, async () => {
13839
+ let b = await Ae(e, t, r, _, g, v), x = Et(v.width, v.height, c?.targetWidthPx, c?.targetHeightPx), S = x ? `|resize:${x.resizeWidth}x${x.resizeHeight}` : "";
13840
+ return Ce(rx, `${tx(b, n, o, d)}${S}`, r, async () => {
13841
13841
  let e = await ax(v, n, o, c, d);
13842
13842
  return {
13843
13843
  bitmap: e,
@@ -13964,12 +13964,11 @@ function sx(e, n, r) {
13964
13964
  }
13965
13965
  async function cx(e, t, n, r, i, a, o, s) {
13966
13966
  if (!n) return /* @__PURE__ */ new Map();
13967
- let c = Ye(o), l = (e, t) => a ? xe(e, n, {
13967
+ let c = Ye(o), l = (e, t) => a ? We(e, n, {
13968
13968
  targetWidthPx: t.targetWidthPx,
13969
13969
  targetHeightPx: t.targetHeightPx,
13970
- maxRetainedPixels: t.targetWidthPx && t.targetHeightPx ? t.targetWidthPx * t.targetHeightPx : void 0,
13971
13970
  workerDecoder: a
13972
- }) : xe(e, n), u = sx(e, t, i), d = $e((await Promise.all(u.map(async (e) => {
13971
+ }) : We(e, n), u = sx(e, t, i), d = $e((await Promise.all(u.map(async (e) => {
13973
13972
  if (!e.targetWidthPx || !e.targetHeightPx || e.colorReplaceFrom || e.duotone || e.vmlStrokePattern || e.blipEffects?.length) return null;
13974
13973
  let t = e.mimeType === "image/svg+xml", i = {
13975
13974
  svgImagePath: e.svgImagePath,
@@ -13982,7 +13981,7 @@ async function cx(e, t, n, r, i, a, o, s) {
13982
13981
  targetHeightPx: e.targetHeightPx,
13983
13982
  retainedSurfaceCount: 1
13984
13983
  };
13985
- let a = await Ve(e.imagePath, e.mimeType, n).catch((e) => {
13984
+ let a = await Ee(e.imagePath, e.mimeType, n).catch((e) => {
13986
13985
  if (e instanceof te || ht(e)) throw e;
13987
13986
  return null;
13988
13987
  });
@@ -14848,7 +14847,7 @@ function Hx(e, t) {
14848
14847
  if (t.glyphOrientation === "upright") {
14849
14848
  n.save(), n.translate(i, a), n.rotate(-Math.PI / 2), (t.scaleX !== 1 || t.scaleY !== void 0) && (t.writingMode === "vertical-rl" ? n.scale(1, t.scaleX) : n.scale(t.scaleX, t.scaleY ?? 1)), n.textAlign = "center", n.textBaseline = "middle", n.letterSpacing = `${t.letterSpacingPt}px`;
14850
14849
  let e = () => n.fillText(r, o, s);
14851
- t.verticalFeature ? Be(n, e) : e(), n.restore();
14850
+ t.verticalFeature ? ze(n, e) : e(), n.restore();
14852
14851
  } else t.glyphOrientation === "rotate" ? (n.save(), n.translate(i, a), t.scaleX !== 1 && n.scale(t.scaleX, 1), n.textAlign = "center", n.textBaseline = "middle", n.letterSpacing = `${t.letterSpacingPt / t.scaleX}px`, n.fillText(r, o, s), n.restore()) : t.scaleX === 1 ? (n.letterSpacing = `${t.letterSpacingPt}px`, n.fillText(r, i + o, a + s)) : (n.save(), n.translate(i + o, a + s), n.scale(t.scaleX, 1), n.letterSpacing = `${t.letterSpacingPt / t.scaleX}px`, n.fillText(r, 0, 0), n.restore());
14853
14852
  }
14854
14853
  if (n.letterSpacing = r, n.fontKerning = i, e.ruby) {
@@ -15245,7 +15244,7 @@ async function bS(e, t, n, r) {
15245
15244
  if (!t) throw Error(`Missing retained paint resource descriptor: ${e}`);
15246
15245
  return t;
15247
15246
  }) : r.registry.descriptors, l = c.some((e) => e.kind === "image" || e.kind === "picture-bullet" || e.kind === "chart" && E(e.model).length > 0), u = () => a() ? Promise.resolve() : wS(e, t, n, r, c, a);
15248
- return r.fetchImage && l ? _e(r.fetchImage, r.imageResources, u) : u();
15247
+ return r.fetchImage && l ? Oe(r.fetchImage, r.imageResources, u) : u();
15249
15248
  }
15250
15249
  async function xS(e, t, n, r, i) {
15251
15250
  let a;
@@ -15378,10 +15377,10 @@ async function SS(e, t, n, r, i) {
15378
15377
  targetHeightPx: d
15379
15378
  } : void 0;
15380
15379
  try {
15381
- let n = (t) => e.svgDecoder ? xe(t, o, {
15380
+ let n = (t) => e.svgDecoder ? We(t, o, {
15382
15381
  ...b ?? {},
15383
15382
  workerDecoder: e.svgDecoder
15384
- }) : xe(t, o), r = (t, r) => r === "image/svg+xml" && !s.duotone && !s.blipEffects?.length ? n(t) : ox(t, r, void 0, o, _, y, s.duotone, e.tiff, s.blipEffects?.length ? void 0 : b, void 0, e.svgDecoder, void 0, s.blipEffects?.length ? s.blipEffects : void 0, g), i, c = {
15383
+ }) : We(t, o), r = (t, r) => r === "image/svg+xml" && !s.duotone && !s.blipEffects?.length ? n(t) : ox(t, r, void 0, o, _, y, s.duotone, e.tiff, s.blipEffects?.length ? void 0 : b, void 0, e.svgDecoder, void 0, s.blipEffects?.length ? s.blipEffects : void 0, g), i, c = {
15385
15384
  svgImagePath: s.svgImagePath,
15386
15385
  srcRect: f ? !0 : null
15387
15386
  };
@@ -25589,7 +25588,9 @@ function* rA(e, t, n, r, i, a, o) {
25589
25588
  let n = [];
25590
25589
  for (let r = o; r < t; r += 1) {
25591
25590
  let t = e[r];
25592
- t.kind !== "parity-blank" && n.push(Oy(t.accumulator, nA));
25591
+ if (t.kind === "parity-blank") continue;
25592
+ let i = r === 0 || e[r - 1].accumulator.sectionOccurrenceId !== t.accumulator.sectionOccurrenceId;
25593
+ n.push(Oy(t.accumulator, nA, i));
25593
25594
  }
25594
25595
  c(n), o = t;
25595
25596
  }
@@ -30755,7 +30756,7 @@ function sF(e, t) {
30755
30756
  function cF(e, t, n, r, i, a, o) {
30756
30757
  let s = e.textAlign, c = e.textBaseline, l = () => (e.textAlign = n === "sideways" ? "left" : "center", e.textBaseline = n === "sideways" ? "alphabetic" : "middle", e.measureText(t)), u;
30757
30758
  try {
30758
- u = o ? Be(e, l) : l();
30759
+ u = o ? ze(e, l) : l();
30759
30760
  } finally {
30760
30761
  e.textAlign = s, e.textBaseline = c;
30761
30762
  }
@@ -36146,7 +36147,7 @@ function jR(e, t, n) {
36146
36147
  defaultCurrentDateMs: n
36147
36148
  });
36148
36149
  }
36149
- var MR = 1024 * 1024, NR = Math.max(Ne, Je);
36150
+ var MR = 1024 * 1024, NR = Math.max(Pe, qe);
36150
36151
  async function PR(e, t, n = {}) {
36151
36152
  let r = [];
36152
36153
  return RR(e, t, n, {
@@ -1,6 +1,6 @@
1
1
  import { vo as e } from "./plot-area-frame-D3JtHvov.js";
2
- import { B as t, D as n, G as r, O as i, k as a, ln as o, q as s, un as c } from "./bounded-raw-part-cache-Bi_VqXmg.js";
3
- import { S as l } from "./worksheet-pull-client-D5zAevQv.js";
2
+ import { B as t, D as n, G as r, O as i, k as a, ln as o, q as s, un as c } from "./bounded-raw-part-cache-B8t03tSP.js";
3
+ import { S as l } from "./worksheet-pull-client-Du0MuIro.js";
4
4
  var u = "OOXML_DOCX_ILVL:";
5
5
  function d(t) {
6
6
  let n = t instanceof Error ? t.message : String(t);
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./chunk-D5OxutzX.js";
2
2
  import { _o as t, ja as n, vo as r, yo as i } from "./plot-area-frame-D3JtHvov.js";
3
3
  import { n as a, t as o } from "./cfb-guard-BIaHdonq.js";
4
- import { Dn as s, En as c, H as l, M as u, N as d, On as f, V as p, Xt as m, Y as h, Yt as g, hn as _, ht as v, j as y, qt as b, st as x, t as S, u as C, ut as ee } from "./bounded-raw-part-cache-Bi_VqXmg.js";
5
- import { A as te, C as w, D as ne, E as T, M as re, N as ie, P as E, S as ae, T as D, _ as oe, a as se, b as ce, c as le, d as ue, f as de, g as fe, h as pe, i as me, j as he, k as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, t as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "./comment-overlay-controller-CR5ySvki.js";
6
- import { A as ke, B as Ae, C as je, D as O, E as Me, F as Ne, I as Pe, L as k, M as Fe, N as A, O as Ie, P as Le, R as Re, S as ze, T as Be, V as j, _ as Ve, a as He, b as Ue, c as We, f as Ge, h as Ke, j as M, k as qe, l as Je, m as Ye, n as Xe, o as Ze, p as Qe, s as $e, t as et, u as tt, v as nt, w as rt, x as it, y as N, z as at } from "./document-pull-client-CHpz0Q1p.js";
4
+ import { Dn as s, En as c, H as l, M as u, N as d, On as f, V as p, Xt as m, Y as h, Yt as g, hn as _, j as v, lt as y, mt as b, ot as x, qt as S, t as ee, u as C } from "./bounded-raw-part-cache-B8t03tSP.js";
5
+ import { A as te, C as w, D as ne, E as T, M as re, N as ie, P as E, S as ae, T as D, _ as oe, a as se, b as ce, c as le, d as ue, f as de, g as fe, h as pe, i as me, j as he, k as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, t as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "./comment-overlay-controller-Crm5Syhx.js";
6
+ import { A as ke, B as Ae, C as je, D as O, E as Me, F as Ne, I as Pe, L as k, M as Fe, N as A, O as Ie, P as Le, R as Re, S as ze, T as Be, V as j, _ as Ve, a as He, b as Ue, c as We, f as Ge, h as Ke, j as M, k as qe, l as Je, m as Ye, n as Xe, o as Ze, p as Qe, s as $e, t as et, u as tt, v as nt, w as rt, x as it, y as N, z as at } from "./document-pull-client-Ckq8THk6.js";
7
7
  import { f as ot, u as st } from "./pixel-budget-DI82Hn3R.js";
8
8
  import { i as ct, t as lt } from "./tiff-contract-DEd8CGuz.js";
9
- import { D as ut, E as dt, T as ft, a as pt, b as mt, c as ht, d as gt, f as _t, i as vt, l as yt, n as bt, o as xt, p as St, r as Ct, s as wt, t as Tt, u as Et, v as Dt, w as Ot, x as kt, y as At } from "./canvas-viewer-mechanics-ycCX6v-z.js";
9
+ import { D as ut, E as dt, T as ft, a as pt, b as mt, c as ht, d as gt, f as _t, i as vt, l as yt, n as bt, o as xt, p as St, r as Ct, s as wt, t as Tt, u as Et, v as Dt, w as Ot, x as kt, y as At } from "./canvas-viewer-mechanics-DI38gHNV.js";
10
10
  import { n as jt } from "./renderer-module-contract-BuTx2FWJ.js";
11
11
  var P = (e) => (e.charCodeAt(0) << 24 >>> 0 | e.charCodeAt(1) << 16 | e.charCodeAt(2) << 8 | e.charCodeAt(3)) >>> 0, Mt = P("ttcf"), Nt = P("OTTO"), Pt = P("true"), Ft = P("typ1"), It = P("head"), Lt = P("hhea"), Rt = P("OS/2"), zt = P("cmap"), Bt = P("fvar"), F = [
12
12
  [4352, 4607],
@@ -1309,7 +1309,7 @@ var Q = class e {
1309
1309
  _tiff;
1310
1310
  _worker;
1311
1311
  _bridge;
1312
- _rawParts = new S({
1312
+ _rawParts = new ee({
1313
1313
  maxEntries: 64,
1314
1314
  maxBytes: _
1315
1315
  });
@@ -1344,11 +1344,11 @@ var Q = class e {
1344
1344
  if (i?.aborted) throw new N();
1345
1345
  };
1346
1346
  if (l(), n.legacyDoc !== void 0) {
1347
- let { loadDocxModelSource: e } = await import("./document-model-source-Csow9uxO.js"), a = await e(t, n, r);
1347
+ let { loadDocxModelSource: e } = await import("./document-model-source-qsnWuGuH.js"), a = await e(t, n, r);
1348
1348
  if (i?.aborted) throw a.destroy(), new N();
1349
1349
  return a;
1350
1350
  }
1351
- let u = b(n.cjkFallback), p = d(n), h = Date.now(), g = n.mode ?? "main", _ = new y({
1351
+ let u = S(n.cjkFallback), p = d(n), h = Date.now(), g = n.mode ?? "main", _ = new v({
1352
1352
  enabled: !0,
1353
1353
  format: "docx",
1354
1354
  mode: g,
@@ -1365,11 +1365,11 @@ var Q = class e {
1365
1365
  d = await e.arrayBuffer();
1366
1366
  } else d = t;
1367
1367
  l(), d = a(await o(d, n.password)), l(), _.setSourceBytes(d.byteLength), _.checkpoint("container ready");
1368
- let v = g === "worker" ? (await import("./render-worker-host-BxsA-yJo.js")).createRenderWorker() : new fn(), y = g === "worker" ? jt(n) : void 0, b = g === "worker" && !!n.progressiveLayout, x, S = !1, C = () => {
1368
+ let v = g === "worker" ? (await import("./render-worker-host-DYUY1TuP.js")).createRenderWorker() : new fn(), y = g === "worker" ? jt(n) : void 0, b = g === "worker" && !!n.progressiveLayout, x, S = !1, ee = () => {
1369
1369
  S || !x || (S = !0, x.destroy());
1370
1370
  };
1371
1371
  try {
1372
- x = new e(v, g, h, n.wasmUrl), i?.addEventListener("abort", C, { once: !0 }), l(), x._metrics = _, x._cjkFallback = u, x._allowFootnoteContinuation = n.allowFootnoteContinuation !== !1;
1372
+ x = new e(v, g, h, n.wasmUrl), i?.addEventListener("abort", ee, { once: !0 }), l(), x._metrics = _, x._cjkFallback = u, x._allowFootnoteContinuation = n.allowFootnoteContinuation !== !1;
1373
1373
  let t = A(x), a = M(n.currentDate, t.defaultCurrentDateMs, n.showTrackedChanges === !0);
1374
1374
  t.activeLayoutOptions = a, await x._parse(d, p.policy, g === "worker" ? !!n.useGoogleFonts : !1, n.workerTimeoutMs, (e) => _.observeUsage(e), y, b ? {
1375
1375
  onPartial: n.onLayoutPartial,
@@ -1381,10 +1381,10 @@ var Q = class e {
1381
1381
  published: !1,
1382
1382
  settled: !1
1383
1383
  } : void 0), l(), g === "worker" && x._mode === "main" && (_.setMode("main"), console.warn(mn(x._mainThreadFallbackReason))), n.math && x._mode === "worker" && !y?.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."), n.threeD && x._mode === "worker" && !y?.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."), x._threeD = x._mode === "worker" ? void 0 : n.threeD, n.regionMap && x._mode === "worker" && !y?.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."), x._regionMap = x._mode === "worker" ? void 0 : n.regionMap, n.chartEx && x._mode === "worker" && !y?.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."), x._chartEx = x._mode === "worker" ? void 0 : n.chartEx, n.tiff && x._mode === "worker" && !y?.tiff && console.warn("[ooxml] a custom TIFF codec cannot cross the worker boundary; recognized TIFF images will use an unavailable-image placeholder in mode: 'worker'. Use the codec from @silurus/ooxml/tiff to display them."), x._tiff = x._mode === "worker" ? void 0 : n.tiff;
1384
- let o, S, ee = x, te = x._mode === "main" && x._document && x._source ? Ke(tt(x._source, x._document, {
1384
+ let o, S, C = x, te = x._mode === "main" && x._document && x._source ? Ke(tt(x._source, x._document, {
1385
1385
  useGoogleFonts: !!n.useGoogleFonts,
1386
1386
  cjkFallback: u
1387
- }), !0).then((e) => ee._nativeRouteFacesReleased ? (m(e.faces), null) : (ee._nativeRouteFaces.push(...e.faces), e), () => null) : null;
1387
+ }), !0).then((e) => C._nativeRouteFacesReleased ? (m(e.faces), null) : (C._nativeRouteFaces.push(...e.faces), e), () => null) : null;
1388
1388
  if (x._mode === "main" && x._document?.embeddedFonts?.length) {
1389
1389
  let e = x, t = await xn(x._document, (t) => e.getFontBytes(t));
1390
1390
  if (i?.aborted) throw E(t.faces), new N();
@@ -1516,9 +1516,9 @@ var Q = class e {
1516
1516
  }
1517
1517
  return l(), await x._resourceUsage(n.workerTimeoutMs ?? 1e3).then((e) => _.observeUsage(e), () => void 0), _.checkpoint("model and layout ready"), l(), _.succeed({ pages: x.pageCount }), x;
1518
1518
  } catch (e) {
1519
- throw ft(v, x ? C : void 0), e;
1519
+ throw ft(v, x ? ee : void 0), e;
1520
1520
  } finally {
1521
- i?.removeEventListener("abort", C);
1521
+ i?.removeEventListener("abort", ee);
1522
1522
  }
1523
1523
  } catch (e) {
1524
1524
  throw _.fail(e), e;
@@ -1735,7 +1735,7 @@ var Q = class e {
1735
1735
  }), this._rearmParseWatchdog(), await o.firstPublication.promise;
1736
1736
  }
1737
1737
  destroy() {
1738
- this._layoutAbort?.abort(), this._layoutAbort = null, this._clearParseWatchdog(), this._parseRequestId = null, this._progressive = null, this._layoutViewGeneration++, this._bridge.terminate(), this._document = null, this._source = null, this._meta = null, this._review = Sr, A(this).services = null, this._bookmarkPages = null, this._commentAnchorRanges = null, this._revisionAnchorRanges = null, this._reviewProjectionIndex = null, this._rawParts.clear(), this._embeddedFontFaces.length > 0 && (E(this._embeddedFontFaces), this._embeddedFontFaces = []), this._officeFontFaces.length > 0 && (m(this._officeFontFaces), this._officeFontFaces = []), this._nativeRouteFacesReleased = !0, this._nativeRouteFaces?.length > 0 && (m(this._nativeRouteFaces), this._nativeRouteFaces = []), this._googleFontFaces.length > 0 && (f(this._googleFontFaces), this._googleFontFaces = []), ee(this._fetchImage), x(this._fetchImage);
1738
+ this._layoutAbort?.abort(), this._layoutAbort = null, this._clearParseWatchdog(), this._parseRequestId = null, this._progressive = null, this._layoutViewGeneration++, this._bridge.terminate(), this._document = null, this._source = null, this._meta = null, this._review = Sr, A(this).services = null, this._bookmarkPages = null, this._commentAnchorRanges = null, this._revisionAnchorRanges = null, this._reviewProjectionIndex = null, this._rawParts.clear(), this._embeddedFontFaces.length > 0 && (E(this._embeddedFontFaces), this._embeddedFontFaces = []), this._officeFontFaces.length > 0 && (m(this._officeFontFaces), this._officeFontFaces = []), this._nativeRouteFacesReleased = !0, this._nativeRouteFaces?.length > 0 && (m(this._nativeRouteFaces), this._nativeRouteFaces = []), this._googleFontFaces.length > 0 && (f(this._googleFontFaces), this._googleFontFaces = []), y(this._fetchImage), x(this._fetchImage);
1739
1739
  }
1740
1740
  async getImage(e, t) {
1741
1741
  return this._rawParts.get(e, t, () => this._bridge.request((t) => ({
@@ -1938,7 +1938,7 @@ var Q = class e {
1938
1938
  try {
1939
1939
  if (L(this, r.diagnostics), n) for (let e of r.runs) n(e);
1940
1940
  } catch (e) {
1941
- throw v(r.bitmap), e;
1941
+ throw b(r.bitmap), e;
1942
1942
  }
1943
1943
  return r.bitmap;
1944
1944
  }
@@ -2760,7 +2760,7 @@ var Mr = Symbol("DocxViewer.borrowedDocument"), Nr = class e {
2760
2760
  }
2761
2761
  }, Ir = 12, Lr = 13, Rr = Symbol("DocxScrollViewer.borrowedDocument"), zr;
2762
2762
  function Br() {
2763
- return zr ??= import("./comment-ui-runtime-BWhLz4gq.js");
2763
+ return zr ??= import("./comment-ui-runtime-u7zk49cg.js");
2764
2764
  }
2765
2765
  var Vr = class e {
2766
2766
  _pendingLoadAbort = null;
@@ -1,13 +1,13 @@
1
1
  import { t as e } from "./chunk-D5OxutzX.js";
2
2
  import { yo as t } from "./plot-area-frame-D3JtHvov.js";
3
- import { B as n, F as r, H as i, N as a, U as o, j as s, qt as c, st as l, ut as u } from "./bounded-raw-part-cache-Bi_VqXmg.js";
4
- import { a as d, c as f, g as p, i as m, l as h, r as g } from "./document-pull-client-CHpz0Q1p.js";
3
+ import { B as n, F as r, H as i, N as a, U as o, j as s, lt as c, ot as l, qt as u } from "./bounded-raw-part-cache-B8t03tSP.js";
4
+ import { a as d, c as f, g as p, i as m, l as h, r as g } from "./document-pull-client-Ckq8THk6.js";
5
5
  import { n as _, t as ee } from "./abort-JztSoyw2.js";
6
6
  import { n as v, r as te, t as y } from "./wasm-loader-KAOyLXzf.js";
7
- import { t as b } from "./wasm-runtime-generation-BsWKRY7U.js";
7
+ import { t as b } from "./wasm-runtime-generation-BLweKv8r.js";
8
8
  import { t as x } from "./in-process-pull-transport-BPJ7M0uC.js";
9
- import { n as S, r as ne, t as re } from "./document-pull-worker-1ZJv9f9W.js";
10
- import { a as ie } from "./render-Cs1bgbEm.js";
9
+ import { n as S, r as ne, t as re } from "./document-pull-worker-Bkewz-So.js";
10
+ import { a as ie } from "./render-CMUEAeHp.js";
11
11
  var C = /* @__PURE__ */ e({
12
12
  DocxArchive: () => w,
13
13
  default: () => q,
@@ -321,10 +321,10 @@ var X = "DOCX document session was aborted", Z = y(() => v(import.meta.url, "doc
321
321
  async function ue(e, t) {
322
322
  if (!t?.factory) throw TypeError("openDocxDocument requires a canvas factory");
323
323
  if (t.legacyDoc !== void 0) {
324
- let { openDocxSource: n } = await import("./docx-model-source-aKx2gZH9.js");
324
+ let { openDocxSource: n } = await import("./docx-model-source-D0dmXDOs.js");
325
325
  return n(e, t, Z);
326
326
  }
327
- let n = c(t.cjkFallback), r = await Y($(e), Z(), t, (e, t, n) => g(e, t, n));
327
+ let n = u(t.cjkFallback), r = await Y($(e), Z(), t, (e, t, n) => g(e, t, n));
328
328
  try {
329
329
  _(t.signal, X);
330
330
  let e = t.factory.createCanvas(1, 1), i = h(r.result, {
@@ -343,7 +343,7 @@ async function ue(e, t) {
343
343
  }
344
344
  async function de(e, t = {}) {
345
345
  if (t.legacyDoc !== void 0) {
346
- let { materializeDocxSource: n } = await import("./docx-model-source-aKx2gZH9.js");
346
+ let { materializeDocxSource: n } = await import("./docx-model-source-D0dmXDOs.js");
347
347
  return n(e, t, Z);
348
348
  }
349
349
  return te(async () => {
@@ -464,7 +464,7 @@ var Q = class {
464
464
  return this.renderTail = t.then(() => void 0, () => void 0), t;
465
465
  }
466
466
  async release() {
467
- await this.renderTail, u(this.fetchImage), l(this.fetchImage), this.state = null;
467
+ await this.renderTail, c(this.fetchImage), l(this.fetchImage), this.state = null;
468
468
  try {
469
469
  this.closeArchive();
470
470
  } catch (e) {