@silurus/ooxml 0.89.0 → 0.89.2
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-Bye3wDV9.js +35 -0
- package/dist/assets/render-worker-CyUrUidp.js +16 -0
- package/dist/assets/render-worker-D_SMt5nl.js +15 -0
- package/dist/bounded-raw-part-cache-C3daknU-.js +33925 -0
- package/dist/{canvas-viewer-mechanics-DfQqRKkD.js → canvas-viewer-mechanics-SZWSnn6j.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-CHDxT0e7.js} +16 -16
- package/dist/{comment-ui-runtime-Jy-3goA9.js → comment-ui-runtime-BcwaRnMR.js} +3 -3
- package/dist/{comment-ui-runtime-D_sb2K6s.js → comment-ui-runtime-Dk2qrPy_.js} +3 -3
- package/dist/{document-model-source-BKNrXjAL.js → document-model-source-BD2VSd2L.js} +44 -44
- package/dist/{document-pull-client-CxONDGbk.js → document-pull-client-DhSGspvi.js} +6102 -7994
- package/dist/{document-pull-worker-AMyXYpPq.js → document-pull-worker-D-E0Iz3P.js} +18 -18
- package/dist/{docx-DhDnKEI6.js → docx-CCZBO1WQ.js} +556 -556
- package/dist/{docx-D91ER1_S.js → docx-CXfILbzI.js} +24 -24
- package/dist/{docx-model-source-CdrSt3hF.js → docx-model-source-Ci6xb487.js} +12 -12
- package/dist/docx.mjs +4 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{drawingml-shape-ChcGZNd8.js → drawingml-shape-Bp0yEZHC.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-CGOB-MoE.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-BAysJILu.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/internal-companion.mjs +2 -2
- package/dist/{line-distribute-CPOV6csk.js → line-distribute-DhQqysA2.js} +153 -70
- package/dist/{model-source-DJGzDtGb.js → model-source-BkmyX_r-.js} +4 -4
- package/dist/{model-source-session-Bu9CHFHc.js → model-source-session-CF4iXav8.js} +18 -18
- package/dist/{model-source-session-sKpNiIJI.js → model-source-session-CJmkItIK.js} +10 -10
- package/dist/{model-source-session-CDuijwv1.js → model-source-session-CnPCTRDD.js} +2 -2
- 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-BhmLP_Ed.js} +9 -9
- package/dist/{pptx-CDP9dZHe.js → pptx-Bo9hCGQU.js} +58 -58
- package/dist/{pptx-model-source-O7LhpOjz.js → pptx-model-source-J0SrVkO6.js} +5 -5
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{presentation-model-source-tmROzteR.js → presentation-model-source-CebYmrOD.js} +5 -5
- package/dist/region-map.mjs +53 -53
- package/dist/{render-CJVglUHl.js → render-hT2OVZUi.js} +2 -2
- package/dist/{render-worker-host-CyxPU4JU.js → render-worker-host-BmAQ-sWT.js} +1 -1
- package/dist/{render-worker-host-aF6aWkC0.js → render-worker-host-Cz224I38.js} +1 -1
- package/dist/{render-worker-host-BseIaVvm.js → render-worker-host-Desevuoc.js} +1 -1
- package/dist/renderer-BFWqhLEt.js +5833 -0
- package/dist/{renderer-CkGLj0CC.js → renderer-CvZ4JmoL.js} +696 -696
- package/dist/{resource-measurement-mXw-WjMF.js → resource-measurement-DBiUwblM.js} +162 -161
- package/dist/{session-Csv9maad.js → session-CWDKFWCh.js} +176 -176
- package/dist/{slide-pull-client-DRZYwBTu.js → slide-pull-client-BuBvXMyc.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-BWGfM44b.js} +4 -4
- package/dist/{workbook-model-source-BTC4ISTS.js → workbook-model-source-Che8Zbjw.js} +6 -6
- package/dist/worker-source-DrwhR9fw.js +22 -0
- package/dist/{worksheet-pull-client-CkHgbtyM.js → worksheet-pull-client-Cxzj6uuB.js} +74 -74
- package/dist/{xlsx-D5569TPf.js → xlsx-C5BSwMUd.js} +24 -24
- package/dist/{xlsx-CpSDPAEU.js → xlsx-CUVUep5I.js} +433 -421
- package/dist/{xlsx-model-source-DPSkjFic.js → xlsx-model-source-C3_PiPBo.js} +55 -55
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +2 -2
- 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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./chunk-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { B as t, F as n, H as r, N as i, U as a, j as o } from "./bounded-raw-part-cache-C3daknU-.js";
|
|
3
3
|
import { n as s, t as c } from "./abort-VrnK7mdP.js";
|
|
4
|
-
import { b as l, c as u, d, f, g as p, l as m, p as h, r as g, s as _, t as v, u as y, x as ee, y as b } from "./worksheet-pull-client-
|
|
4
|
+
import { b as l, c as u, d, f, g as p, l as m, p as h, r as g, s as _, t as v, u as y, x as ee, y as b } from "./worksheet-pull-client-Cxzj6uuB.js";
|
|
5
5
|
import { n as x, r as S, t as te } from "./wasm-loader-rlgHmcSv.js";
|
|
6
|
-
import { t as ne } from "./wasm-runtime-generation-
|
|
6
|
+
import { t as ne } from "./wasm-runtime-generation-BWGfM44b.js";
|
|
7
7
|
import { t as re } from "./in-process-pull-transport-DuXcPZng.js";
|
|
8
8
|
//#region packages/xlsx/src/internal/archive-bootstrap.ts
|
|
9
|
-
function ie(e,
|
|
9
|
+
function ie(e, n) {
|
|
10
10
|
return {
|
|
11
11
|
workbook: e(),
|
|
12
|
-
usage:
|
|
12
|
+
usage: t(n())
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
@@ -277,8 +277,8 @@ async function de(e) {
|
|
|
277
277
|
//#endregion
|
|
278
278
|
//#region packages/xlsx/src/internal/node-acquisition.ts
|
|
279
279
|
var G = "XLSX workbook session was aborted", fe = ne(C, "XLSX");
|
|
280
|
-
async function K(e,
|
|
281
|
-
let u = l(
|
|
280
|
+
async function K(e, t, r = {}) {
|
|
281
|
+
let u = l(r), d = i(r), f = new o({
|
|
282
282
|
enabled: d.debug || d.onResourceMetrics !== void 0,
|
|
283
283
|
format: "xlsx",
|
|
284
284
|
mode: "node",
|
|
@@ -291,13 +291,13 @@ async function K(e, r, o = {}) {
|
|
|
291
291
|
f.setSourceBytes(e.byteLength);
|
|
292
292
|
let p;
|
|
293
293
|
try {
|
|
294
|
-
s(
|
|
295
|
-
let [
|
|
296
|
-
p = await fe(
|
|
297
|
-
signal:
|
|
294
|
+
s(r.signal, G);
|
|
295
|
+
let [i, a, o] = n(d.policy), l = w;
|
|
296
|
+
p = await fe(t).open(() => new l(e, i, a, o), {
|
|
297
|
+
signal: r.signal,
|
|
298
298
|
abortError: () => c(G),
|
|
299
299
|
disposeOnAbort: (e) => e.free()
|
|
300
|
-
}), s(
|
|
300
|
+
}), s(r.signal, G);
|
|
301
301
|
let m = p.proxy, [h, g, _, v] = ee(u);
|
|
302
302
|
m.set_worksheet_limits(h, g, _, v);
|
|
303
303
|
let { workbook: y, usage: b } = ie(() => JSON.parse(new TextDecoder().decode(m.parse())), () => m.resource_usage());
|
|
@@ -313,7 +313,7 @@ async function K(e, r, o = {}) {
|
|
|
313
313
|
try {
|
|
314
314
|
p?.close((e) => e.free());
|
|
315
315
|
} catch {}
|
|
316
|
-
let t =
|
|
316
|
+
let t = a(e) ?? e;
|
|
317
317
|
throw f.fail(t), t;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -326,7 +326,7 @@ async function J(e, t = {}) {
|
|
|
326
326
|
...t,
|
|
327
327
|
xlsxWorksheetLimits: n.worksheet
|
|
328
328
|
}, t.legacyXls !== void 0) {
|
|
329
|
-
let { openXlsxSource: n } = await import("./xlsx-model-source-
|
|
329
|
+
let { openXlsxSource: n } = await import("./xlsx-model-source-C3_PiPBo.js");
|
|
330
330
|
return n(e, t, q);
|
|
331
331
|
}
|
|
332
332
|
let r = await K(_e(e), q(), t);
|
|
@@ -379,7 +379,7 @@ var Z = class {
|
|
|
379
379
|
if (!Number.isSafeInteger(e) || e < 0) throw RangeError("sheetIndex must be a non-negative safe integer");
|
|
380
380
|
let t = this.requireSheetName(e), n = {};
|
|
381
381
|
this.active = n;
|
|
382
|
-
let
|
|
382
|
+
let i;
|
|
383
383
|
try {
|
|
384
384
|
for await (let n of this.worksheetPullClient.stream(e, t, this.signal)) {
|
|
385
385
|
if (this.closed) throw Error("XLSX workbook session is closed");
|
|
@@ -405,13 +405,13 @@ var Z = class {
|
|
|
405
405
|
}
|
|
406
406
|
this.completedWorksheets += 1, this.metrics.checkpoint("worksheet stream complete", this.lastUsage);
|
|
407
407
|
} catch (e) {
|
|
408
|
-
throw
|
|
408
|
+
throw i = r(e) ?? e, this.metrics.fail(i), await this.close().catch(() => void 0), i;
|
|
409
409
|
} finally {
|
|
410
410
|
try {
|
|
411
|
-
await this.cleanupOperation(n,
|
|
411
|
+
await this.cleanupOperation(n, i === void 0 ? "closed" : "request-error");
|
|
412
412
|
} catch (e) {
|
|
413
|
-
if (
|
|
414
|
-
let t =
|
|
413
|
+
if (i === void 0) {
|
|
414
|
+
let t = r(e) ?? e;
|
|
415
415
|
throw this.metrics.fail(t), await this.close().catch(() => void 0), t;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
@@ -426,12 +426,12 @@ var Z = class {
|
|
|
426
426
|
try {
|
|
427
427
|
await this.worksheetPullClient.cancelAll(t);
|
|
428
428
|
} catch (e) {
|
|
429
|
-
n =
|
|
429
|
+
n = r(e) ?? e;
|
|
430
430
|
}
|
|
431
431
|
try {
|
|
432
432
|
await this.pull.reset();
|
|
433
433
|
} catch (e) {
|
|
434
|
-
n ??=
|
|
434
|
+
n ??= r(e) ?? e;
|
|
435
435
|
}
|
|
436
436
|
if (this.active === e && (this.active = void 0), n !== void 0) throw n;
|
|
437
437
|
})(), e.cleanupPromise;
|
|
@@ -441,13 +441,13 @@ var Z = class {
|
|
|
441
441
|
if (this.active) try {
|
|
442
442
|
await this.cleanupOperation(this.active, "closed");
|
|
443
443
|
} catch (t) {
|
|
444
|
-
e =
|
|
444
|
+
e = r(t) ?? t;
|
|
445
445
|
}
|
|
446
446
|
this.transport.terminate();
|
|
447
447
|
try {
|
|
448
448
|
this.closeArchive();
|
|
449
449
|
} catch (t) {
|
|
450
|
-
e ??=
|
|
450
|
+
e ??= r(t) ?? t;
|
|
451
451
|
}
|
|
452
452
|
if (e !== void 0) throw this.metrics.fail(e), e;
|
|
453
453
|
this.metrics.checkpoint("workbook session closed", this.lastUsage), this.metrics.succeed({
|
|
@@ -521,7 +521,7 @@ function $(e, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
521
521
|
}
|
|
522
522
|
function ge(e) {
|
|
523
523
|
try {
|
|
524
|
-
return
|
|
524
|
+
return t(e);
|
|
525
525
|
} catch (e) {
|
|
526
526
|
if (String(e).includes("worksheet cursor usage is unavailable")) return;
|
|
527
527
|
throw e;
|