@silurus/ooxml 0.89.0 → 0.89.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.
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/assets/render-worker-C5G_Nr_A.js +35 -0
- package/dist/assets/render-worker-DQfWdNsm.js +16 -0
- package/dist/assets/render-worker-Ds7LjwU-.js +15 -0
- package/dist/bounded-raw-part-cache-CsnNptAy.js +33925 -0
- package/dist/{canvas-viewer-mechanics-DfQqRKkD.js → canvas-viewer-mechanics-BZ8QCrRi.js} +2 -2
- package/dist/{cfb-guard-9QTRTg7f.js → cfb-guard-dNeUiANF.js} +1 -1
- package/dist/chart-ex.mjs +477 -477
- package/dist/{comment-overlay-controller-B5_zGgG5.js → comment-overlay-controller-CBvQx-En.js} +16 -16
- package/dist/{comment-ui-runtime-D_sb2K6s.js → comment-ui-runtime-BKidRH36.js} +3 -3
- package/dist/{comment-ui-runtime-Jy-3goA9.js → comment-ui-runtime-C47QoDUy.js} +3 -3
- package/dist/{document-model-source-BKNrXjAL.js → document-model-source-MzFPrxt0.js} +44 -44
- package/dist/{document-pull-client-CxONDGbk.js → document-pull-client-BoJeuURD.js} +6102 -7994
- package/dist/{document-pull-worker-AMyXYpPq.js → document-pull-worker-CaP8XESP.js} +18 -18
- package/dist/{docx-D91ER1_S.js → docx-BN70UhvX.js} +24 -24
- package/dist/{docx-DhDnKEI6.js → docx-BRRtSvk3.js} +556 -556
- package/dist/{docx-model-source-CdrSt3hF.js → docx-model-source-CTO9iw_W.js} +12 -12
- package/dist/docx.mjs +4 -4
- package/dist/{drawingml-shape-ChcGZNd8.js → drawingml-shape-CHmq8kpM.js} +55 -55
- package/dist/{duotone-ekYik4ix.js → duotone-DN8P4aXe.js} +1 -1
- package/dist/{emf-UT6I8rVi.js → emf-CGFQIz6c.js} +60 -60
- package/dist/{font-preload-demand-CdJZUMCT.js → font-preload-demand-Dmy31xt-.js} +2 -2
- package/dist/{grid-geometry-uQOgViJU.js → grid-geometry-C3IG20ut.js} +1 -1
- package/dist/{host-layout-measure-CCEgaC_v.js → host-layout-measure-DsuQ2UJs.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/internal-companion.mjs +2 -2
- package/dist/{line-distribute-CPOV6csk.js → line-distribute-Bu8psjGd.js} +153 -70
- package/dist/{model-source-DJGzDtGb.js → model-source-s5hRpk4w.js} +4 -4
- package/dist/{model-source-session-Bu9CHFHc.js → model-source-session-6fuaqbGs.js} +18 -18
- package/dist/{model-source-session-CDuijwv1.js → model-source-session-DqrR4XHR.js} +2 -2
- package/dist/{model-source-session-sKpNiIJI.js → model-source-session-cPJSF_Ak.js} +10 -10
- package/dist/node.mjs +5 -5
- package/dist/{bounded-raw-part-cache-B7JoC1CD.js → plot-area-frame-Bs_j4uu7.js} +15189 -37964
- package/dist/{pptx-C_uxLVKB.js → pptx-CaJ6ILnw.js} +9 -9
- package/dist/{pptx-CDP9dZHe.js → pptx-_BOGcBym.js} +58 -58
- package/dist/{pptx-model-source-O7LhpOjz.js → pptx-model-source-B_9afw9R.js} +5 -5
- package/dist/pptx.mjs +5 -5
- package/dist/{presentation-model-source-tmROzteR.js → presentation-model-source-CGHLyX32.js} +5 -5
- package/dist/region-map.mjs +53 -53
- package/dist/{render-CJVglUHl.js → render-CzbDzRKa.js} +2 -2
- package/dist/{render-worker-host-BseIaVvm.js → render-worker-host-B1u6BOUd.js} +1 -1
- package/dist/{render-worker-host-CyxPU4JU.js → render-worker-host-C-EECo68.js} +1 -1
- package/dist/{render-worker-host-aF6aWkC0.js → render-worker-host-DDqZTCVf.js} +1 -1
- package/dist/renderer-CD2cvVAF.js +5823 -0
- package/dist/{renderer-CkGLj0CC.js → renderer-DRoeb14O.js} +696 -696
- package/dist/{resource-measurement-mXw-WjMF.js → resource-measurement-Dhhm7P_l.js} +162 -161
- package/dist/{session-Csv9maad.js → session-XPmC0CUd.js} +176 -176
- package/dist/{slide-pull-client-DRZYwBTu.js → slide-pull-client-tq7U_fYg.js} +1454 -1484
- package/dist/{three-d-BK5siJgJ.js → three-d-BKwNPAP4.js} +107 -107
- package/dist/three-d.mjs +625 -625
- package/dist/{wasm-runtime-generation-DX4y0Ecl.js → wasm-runtime-generation-D6TKZdNb.js} +4 -4
- package/dist/{workbook-model-source-BTC4ISTS.js → workbook-model-source-BIGrfZy6.js} +6 -6
- package/dist/worker-source-DrwhR9fw.js +22 -0
- package/dist/{worksheet-pull-client-CkHgbtyM.js → worksheet-pull-client-ClvPO_Jf.js} +74 -74
- package/dist/{xlsx-CpSDPAEU.js → xlsx-CsmREBaZ.js} +430 -420
- package/dist/{xlsx-D5569TPf.js → xlsx-DmHfeNNp.js} +24 -24
- package/dist/{xlsx-model-source-DPSkjFic.js → xlsx-model-source-D1flORqy.js} +55 -55
- package/dist/xlsx.mjs +5 -5
- package/package.json +1 -1
- package/dist/assets/render-worker-CUOU6mL2.js +0 -16
- package/dist/assets/render-worker-DOqrFhSU.js +0 -15
- package/dist/assets/render-worker-DvWUdZUN.js +0 -35
- package/dist/plot-area-frame-CaJFvZ7p.js +0 -8502
- package/dist/renderer-Czw1cCC7.js +0 -5823
- package/dist/worker-source-I1cIYBel.js +0 -22
package/dist/{comment-overlay-controller-B5_zGgG5.js → comment-overlay-controller-CBvQx-En.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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-CsnNptAy.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-BZ8QCrRi.js";
|
|
3
3
|
//#region packages/core/src/fonts/embedded.ts
|
|
4
|
-
function y(
|
|
5
|
-
return
|
|
4
|
+
function y(e, t = r) {
|
|
5
|
+
return e.byteLength > 0 && e.byteLength <= t;
|
|
6
6
|
}
|
|
7
7
|
function b(e, t) {
|
|
8
8
|
let n = x(t), r = e.slice(), i = Math.min(32, r.length);
|
|
@@ -21,11 +21,11 @@ function ee(e, t, n, r) {
|
|
|
21
21
|
for (let e = 0; e < r.length; e++) i ^= r[e], i = Math.imul(i, 16777619);
|
|
22
22
|
return `${e}|${t}|${n}|${r.length}|${(i >>> 0).toString(16)}`;
|
|
23
23
|
}
|
|
24
|
-
async function S(
|
|
25
|
-
let s =
|
|
24
|
+
async function S(n, o = r) {
|
|
25
|
+
let s = t();
|
|
26
26
|
if (!s || typeof FontFace > "u") return [];
|
|
27
27
|
let c = [], l = /* @__PURE__ */ new Set(), u = [];
|
|
28
|
-
for (let e of
|
|
28
|
+
for (let e of n) try {
|
|
29
29
|
if (!y(e.bytes, o)) {
|
|
30
30
|
u.push(e.family);
|
|
31
31
|
continue;
|
|
@@ -33,7 +33,7 @@ async function S(i, o = e) {
|
|
|
33
33
|
let t = e.odttf ? b(e.bytes, e.fontKey ?? "") : e.bytes, n = `embedded:${ee(e.family, e.weight, e.style, t)}`;
|
|
34
34
|
if (l.has(n)) continue;
|
|
35
35
|
l.add(n);
|
|
36
|
-
let { face: r } =
|
|
36
|
+
let { face: r } = i(n, s, () => {
|
|
37
37
|
let n = t.buffer.slice(t.byteOffset, t.byteOffset + t.byteLength), r = new FontFace(e.family, n, {
|
|
38
38
|
weight: e.weight,
|
|
39
39
|
style: e.style
|
|
@@ -46,16 +46,16 @@ async function S(i, o = e) {
|
|
|
46
46
|
}
|
|
47
47
|
let d = c;
|
|
48
48
|
if (c.length > 0) {
|
|
49
|
-
let
|
|
50
|
-
Array.isArray(
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
})) : (u.push(...c.map((e) => e.family)),
|
|
49
|
+
let t = await a(Promise.allSettled(c.map((e) => Promise.resolve().then(() => e.load()))));
|
|
50
|
+
Array.isArray(t) ? (d = [], t.forEach((t, n) => {
|
|
51
|
+
let r = c[n];
|
|
52
|
+
t.status === "fulfilled" ? d.push(r) : (u.push(r.family), e([r]));
|
|
53
|
+
})) : (u.push(...c.map((e) => e.family)), e(c), d = []);
|
|
54
54
|
}
|
|
55
55
|
return u.length > 0 && console.warn(`[ooxml] failed to register embedded font(s): ${[...new Set(u)].join(", ")}; falling back to substitute fonts (text may shift or differ).`), d;
|
|
56
56
|
}
|
|
57
|
-
function C(
|
|
58
|
-
|
|
57
|
+
function C(t) {
|
|
58
|
+
e(t);
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region packages/core/src/layout/virtual-scroll.ts
|
|
@@ -684,7 +684,7 @@ var Q = class {
|
|
|
684
684
|
return Math.max(0, t - n - r);
|
|
685
685
|
}
|
|
686
686
|
dpr() {
|
|
687
|
-
return this.hooks.options().dpr ??
|
|
687
|
+
return this.hooks.options().dpr ?? n();
|
|
688
688
|
}
|
|
689
689
|
}, re = class {
|
|
690
690
|
notify;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as e } from "./comment-overlay-controller-
|
|
2
|
-
import { L as t } from "./document-pull-client-
|
|
3
|
-
import { f as n } from "./docx-
|
|
1
|
+
import { E as e } from "./comment-overlay-controller-CBvQx-En.js";
|
|
2
|
+
import { L as t } from "./document-pull-client-BoJeuURD.js";
|
|
3
|
+
import { f as n } from "./docx-BRRtSvk3.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-B52rDVKo.js";
|
|
5
5
|
import { i as l, n as u, r as d, t as f } from "./read-only-comment-decoration-PidH0wnP.js";
|
|
6
6
|
//#region packages/docx/src/comment-margin.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as t } from "./comment-overlay-controller-
|
|
3
|
-
import { r as n } from "./pptx-
|
|
1
|
+
import { Aa as e } from "./plot-area-frame-Bs_j4uu7.js";
|
|
2
|
+
import { E as t } from "./comment-overlay-controller-CBvQx-En.js";
|
|
3
|
+
import { r as n } from "./pptx-_BOGcBym.js";
|
|
4
4
|
import { i as r, n as i, o as a, r as o, t as s } from "./read-only-comment-margin-B52rDVKo.js";
|
|
5
5
|
import { i as c, n as l, r as u, t as d } from "./read-only-comment-decoration-PidH0wnP.js";
|
|
6
6
|
//#region packages/pptx/src/comment-margin.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as o, b as s } from "./comment-overlay-controller-
|
|
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-
|
|
4
|
-
import { _ as b, c as x, g as S, h as C, l as w, m as T, u as E } from "./docx-
|
|
5
|
-
import { T as D } from "./canvas-viewer-mechanics-
|
|
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-CsnNptAy.js";
|
|
2
|
+
import { P as o, b as s } from "./comment-overlay-controller-CBvQx-En.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-BoJeuURD.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-BRRtSvk3.js";
|
|
5
|
+
import { T as D } from "./canvas-viewer-mechanics-BZ8QCrRi.js";
|
|
6
6
|
import { n as O } from "./renderer-module-contract-CWM7jv6d.js";
|
|
7
7
|
import { n as k, o as A, r as j } from "./model-source-kz_NkZqT.js";
|
|
8
8
|
import { t as M } from "./bundled-asset-url-E2nXURF9.js";
|
|
@@ -30,7 +30,7 @@ async function F(j, M = {}, N) {
|
|
|
30
30
|
if (F?.aborted) throw new y();
|
|
31
31
|
};
|
|
32
32
|
L();
|
|
33
|
-
let R =
|
|
33
|
+
let R = a(M.cjkFallback), z = t(M), B = Date.now(), V = M.mode ?? "main", H = new i({
|
|
34
34
|
enabled: !0,
|
|
35
35
|
format: "docx",
|
|
36
36
|
mode: V,
|
|
@@ -40,24 +40,24 @@ async function F(j, M = {}, N) {
|
|
|
40
40
|
});
|
|
41
41
|
try {
|
|
42
42
|
if (V === "worker" && (typeof Worker > "u" || typeof OffscreenCanvas > "u")) throw Error("mode: 'worker' requires Worker and OffscreenCanvas support");
|
|
43
|
-
let
|
|
43
|
+
let t;
|
|
44
44
|
if (typeof j == "string") {
|
|
45
|
-
let
|
|
46
|
-
if (!
|
|
47
|
-
|
|
48
|
-
} else
|
|
45
|
+
let e = await fetch(j, { signal: F });
|
|
46
|
+
if (!e.ok) throw Error(`Failed to fetch: ${e.status} ${e.statusText}`);
|
|
47
|
+
t = await e.arrayBuffer();
|
|
48
|
+
} else t = j;
|
|
49
49
|
L();
|
|
50
|
-
let
|
|
51
|
-
if (!
|
|
50
|
+
let i = A(M.legacyDoc === void 0 ? void 0 : [M.legacyDoc], "docx", new Uint8Array(t));
|
|
51
|
+
if (!i) return x.load(t, {
|
|
52
52
|
...M,
|
|
53
53
|
legacyDoc: void 0
|
|
54
54
|
});
|
|
55
|
-
let
|
|
55
|
+
let a = k(i, "docx");
|
|
56
56
|
try {
|
|
57
|
-
H.setSourceBytes(
|
|
58
|
-
let
|
|
57
|
+
H.setSourceBytes(t.byteLength), H.checkpoint("container ready");
|
|
58
|
+
let i = V === "worker" ? (await import("./render-worker-host-DDqZTCVf.js")).createRenderWorker() : new (await (import("./worker-source-SbudzjYL.js"))).default(), k, A, j = !1, U = () => {
|
|
59
59
|
j || !k || (j = !0, k.destroy());
|
|
60
|
-
}, W = I(
|
|
60
|
+
}, W = I(i, a, M, (e) => {
|
|
61
61
|
k && P(k, e);
|
|
62
62
|
}), G = V === "worker" ? O(M) : void 0, K = V === "worker" && !!M.progressiveLayout;
|
|
63
63
|
try {
|
|
@@ -67,8 +67,8 @@ async function F(j, M = {}, N) {
|
|
|
67
67
|
B,
|
|
68
68
|
M.wasmUrl
|
|
69
69
|
]), k = A, F?.addEventListener("abort", U, { once: !0 }), L(), k._metrics = H, k._cjkFallback = R, k._allowFootnoteContinuation = M.allowFootnoteContinuation !== !1;
|
|
70
|
-
let
|
|
71
|
-
|
|
70
|
+
let i = c(k), D = p(M.currentDate, i.defaultCurrentDateMs, M.showTrackedChanges === !0);
|
|
71
|
+
i.activeLayoutOptions = D, await k._parse(t, z.policy, V === "worker" ? !!M.useGoogleFonts : !1, M.workerTimeoutMs, (e) => H.observeUsage(e), G, K ? {
|
|
72
72
|
onPartial: M.onLayoutPartial,
|
|
73
73
|
onComplete: M.onLayoutComplete,
|
|
74
74
|
onProgress: M.onLayoutProgress,
|
|
@@ -91,15 +91,15 @@ async function F(j, M = {}, N) {
|
|
|
91
91
|
faces: [],
|
|
92
92
|
routes: {}
|
|
93
93
|
};
|
|
94
|
-
if (F?.aborted) throw
|
|
94
|
+
if (F?.aborted) throw r(P.faces), new y();
|
|
95
95
|
k._officeFontFaces = P.faces;
|
|
96
96
|
let I = [];
|
|
97
97
|
if (k._mode === "main" && M.useGoogleFonts && k._document) {
|
|
98
|
-
let
|
|
99
|
-
I =
|
|
100
|
-
let
|
|
101
|
-
if (F?.aborted) throw r
|
|
102
|
-
k._googleFontFaces =
|
|
98
|
+
let t = f(k._document, R, P);
|
|
99
|
+
I = t.installedSubstituteFamilies;
|
|
100
|
+
let r = await e(t.names, l);
|
|
101
|
+
if (F?.aborted) throw n(r), new y();
|
|
102
|
+
k._googleFontFaces = r;
|
|
103
103
|
}
|
|
104
104
|
let q;
|
|
105
105
|
if (k._mode === "main" && M.math && k._document && h(k._document) && (q = await _(k._document, M.math)), L(), k._mode === "main" && k._document && k._source) {
|
|
@@ -115,35 +115,35 @@ async function F(j, M = {}, N) {
|
|
|
115
115
|
installedFamilies: "installed" in P ? P.installed : void 0,
|
|
116
116
|
mathResources: q?.records,
|
|
117
117
|
mathDrawables: q?.drawables
|
|
118
|
-
},
|
|
118
|
+
}, i = await d(k._source, k._document, {
|
|
119
119
|
useGoogleFonts: !!M.useGoogleFonts,
|
|
120
120
|
cjkFallback: R
|
|
121
121
|
});
|
|
122
|
-
if (F?.aborted) throw
|
|
123
|
-
k._officeFontFaces = [...k._officeFontFaces, ...
|
|
122
|
+
if (F?.aborted) throw r(i.faces), new y();
|
|
123
|
+
k._officeFontFaces = [...k._officeFontFaces, ...i.faces], t.services = m(k._source, {
|
|
124
124
|
...n,
|
|
125
|
-
nativeRouteMetrics:
|
|
125
|
+
nativeRouteMetrics: i.nativeRouteMetrics
|
|
126
126
|
});
|
|
127
|
-
let
|
|
127
|
+
let a = t.services, o = u(k._source, a, t.defaultCurrentDateMs), l = k._source.fatalParse === null, f = t.activeLayoutOptions;
|
|
128
128
|
if (!f) throw Error("Active layout view was not recorded at load");
|
|
129
129
|
let h = { onProgress: M.onLayoutProgress ? (t) => e._layoutObservers.notify("onLayoutProgress", M.onLayoutProgress, { committedUnits: t }) : void 0 };
|
|
130
130
|
if (l && M.progressiveLayout) {
|
|
131
131
|
let e = o.layoutVariants, t = k, n = new AbortController();
|
|
132
132
|
t._layoutAbort = n;
|
|
133
|
-
let r = s(),
|
|
134
|
-
t._layoutCompletion = E(k._source.bodyLayoutInput,
|
|
133
|
+
let r = s(), i = null, c = !0;
|
|
134
|
+
t._layoutCompletion = E(k._source.bodyLayoutInput, a, f, {
|
|
135
135
|
scheduler: {
|
|
136
136
|
...h,
|
|
137
137
|
signal: n.signal
|
|
138
138
|
},
|
|
139
139
|
onPreview: (n) => {
|
|
140
140
|
if (!c) return;
|
|
141
|
-
let
|
|
141
|
+
let a = i === null, o = t._replaceMainLayoutPublication(e, f, i, n.layout);
|
|
142
142
|
if (o === null) {
|
|
143
143
|
c = !1;
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
|
-
if (
|
|
146
|
+
if (i = o, a) t._layoutLifecycle.begin(), w(t, {
|
|
147
147
|
pageCount: n.layout.pages.length,
|
|
148
148
|
exact: n.exact,
|
|
149
149
|
complete: !1
|
|
@@ -161,13 +161,13 @@ async function F(j, M = {}, N) {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
}).then((n) => {
|
|
164
|
-
c && t._replaceMainLayoutPublication(e, f,
|
|
164
|
+
c && t._replaceMainLayoutPublication(e, f, i, n) === null && (c = !1), t._layoutLifecycle.succeed(), w(t, {
|
|
165
165
|
pageCount: t.pageCount,
|
|
166
166
|
exact: !0,
|
|
167
167
|
complete: !0
|
|
168
168
|
}), t._layoutObservers.notify("onLayoutComplete", M.onLayoutComplete), r.resolve();
|
|
169
169
|
}).catch((e) => {
|
|
170
|
-
if (
|
|
170
|
+
if (i === null) {
|
|
171
171
|
r.reject(e);
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
@@ -187,21 +187,21 @@ async function F(j, M = {}, N) {
|
|
|
187
187
|
L();
|
|
188
188
|
let e = N?.requestedView(), n = e === void 0 ? f : p(M.currentDate, t.defaultCurrentDateMs, e);
|
|
189
189
|
t.activeLayoutOptions = n;
|
|
190
|
-
let r = new AbortController(),
|
|
190
|
+
let r = new AbortController(), i = !1, s = N?.subscribeViewChange(() => {
|
|
191
191
|
let e = N.requestedView();
|
|
192
|
-
|
|
192
|
+
i || e === void 0 || e === !0 == (n.showTrackedChanges === !0) || (i = !0, r.abort());
|
|
193
193
|
});
|
|
194
194
|
k._layoutAbort = r;
|
|
195
195
|
try {
|
|
196
|
-
let e = await v(k._source.bodyLayoutInput,
|
|
196
|
+
let e = await v(k._source.bodyLayoutInput, a, n, {
|
|
197
197
|
...h,
|
|
198
198
|
signal: r.signal
|
|
199
199
|
});
|
|
200
|
-
if (L(),
|
|
200
|
+
if (L(), i) continue;
|
|
201
201
|
o.layoutVariants.prime(n, e);
|
|
202
202
|
break;
|
|
203
203
|
} catch (e) {
|
|
204
|
-
if (e instanceof y &&
|
|
204
|
+
if (e instanceof y && i && !F?.aborted) continue;
|
|
205
205
|
throw e;
|
|
206
206
|
} finally {
|
|
207
207
|
s?.(), k._layoutAbort = null;
|
|
@@ -209,14 +209,14 @@ async function F(j, M = {}, N) {
|
|
|
209
209
|
}
|
|
210
210
|
else o.layoutVariants.layoutFor(f);
|
|
211
211
|
}
|
|
212
|
-
return L(), await k._resourceUsage(M.workerTimeoutMs ?? 1e3).then((e) => H.observeUsage(e), () => void 0), H.checkpoint("model and layout ready"), L(), H.succeed({ pages: k.pageCount }),
|
|
212
|
+
return L(), await k._resourceUsage(M.workerTimeoutMs ?? 1e3).then((e) => H.observeUsage(e), () => void 0), H.checkpoint("model and layout ready"), L(), H.succeed({ pages: k.pageCount }), a.release(), A;
|
|
213
213
|
} catch (e) {
|
|
214
|
-
throw D(
|
|
214
|
+
throw D(i, k ? U : void 0), e;
|
|
215
215
|
} finally {
|
|
216
216
|
F?.removeEventListener("abort", U);
|
|
217
217
|
}
|
|
218
218
|
} finally {
|
|
219
|
-
|
|
219
|
+
a.release();
|
|
220
220
|
}
|
|
221
221
|
} catch (e) {
|
|
222
222
|
throw H.fail(e), e;
|