@silurus/ooxml 0.78.1 → 0.79.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +39 -1
  2. package/THIRD_PARTY_NOTICES.md +13 -0
  3. package/dist/{canvas-viewer-mechanics-B4K_t5X_.js → canvas-viewer-mechanics-DJ9yfiLN.js} +1 -1
  4. package/dist/chart-number-format-tjYUR9eS.js +435 -0
  5. package/dist/dash-CMzZIDz_.js +824 -0
  6. package/dist/{document-pull-client-5AakVD6e.js → document-pull-client-DYoybVCn.js} +2119 -2113
  7. package/dist/{docx-bjhRwb2u.js → docx-CSk_-kj_.js} +65 -56
  8. package/dist/docx.mjs +4 -4
  9. package/dist/docx_parser_bg.wasm +0 -0
  10. package/dist/index.mjs +3 -3
  11. package/dist/{line-distribute-BVFW1-Hs.js → line-distribute-CU7vu7XS.js} +1 -1
  12. package/dist/{line-metrics-DS0NS2Iq.js → line-metrics-A77J_KRx.js} +4229 -3233
  13. package/dist/math.mjs +1 -1
  14. package/dist/node.mjs +322 -322
  15. package/dist/{pptx-D1rCrHGR.js → pptx-CO1Ut97p.js} +192 -183
  16. package/dist/pptx.mjs +5 -5
  17. package/dist/pptx_parser_bg.wasm +0 -0
  18. package/dist/region-map.mjs +12708 -0
  19. package/dist/{render-DhlT5jxZ.js → render-C5m7Ddwx.js} +1 -1
  20. package/dist/render-worker-host-BhMT5U73.js +27 -0
  21. package/dist/render-worker-host-DNMxGh5s.js +27 -0
  22. package/dist/render-worker-host-DWyg7wio.js +27 -0
  23. package/dist/{resource-measurement-BA-4Q-II.js → resource-measurement-COxqtfGk.js} +1 -1
  24. package/dist/{session-C_HGxbRD.js → session-CJwZaquG.js} +10 -10
  25. package/dist/{slide-pull-client-BiC4sVGi.js → slide-pull-client-CFHNk0ek.js} +584 -583
  26. package/dist/three-d.mjs +2426 -0
  27. package/dist/types/docx.d.ts +251 -16
  28. package/dist/types/index.d.ts +266 -20
  29. package/dist/types/math.d.ts +1 -1
  30. package/dist/types/node.d.ts +225 -1
  31. package/dist/types/pptx.d.ts +253 -16
  32. package/dist/types/region-map.d.ts +586 -0
  33. package/dist/types/three-d.d.ts +586 -0
  34. package/dist/types/xlsx.d.ts +256 -16
  35. package/dist/{worksheet-pull-client-BnvgeqfG.js → worksheet-pull-client-CziyJf24.js} +13 -13
  36. package/dist/{xlsx-BG_WYSc0.js → xlsx-DHQmjAfh.js} +1246 -1073
  37. package/dist/xlsx.mjs +5 -5
  38. package/dist/xlsx_parser_bg.wasm +0 -0
  39. package/package.json +13 -1
  40. package/dist/render-worker-host-CtJo7hc9.js +0 -27
  41. package/dist/render-worker-host-D8vv-Asx.js +0 -27
  42. package/dist/render-worker-host-DAjG9nmw.js +0 -27
  43. /package/dist/{highlight-rect-CAkCWJ37.js → highlight-rect-cCvVU-MW.js} +0 -0
  44. /package/dist/{mathjax-CMjda8Ip.js → mathjax-Dqo857oC.js} +0 -0
  45. /package/dist/{transfer-DCu4c2BL.js → transfer-3QEJrsJa.js} +0 -0
  46. /package/dist/{visible-index-CgyJLAS_.js → visible-index-CKvgpUrf.js} +0 -0
package/dist/node.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
- import { t } from "./slide-pull-client-BiC4sVGi.js";
3
- import { B as n, Et as r, F as i, H as a, I as o, It as s, Lt as c, P as l, R as u, U as d, W as ee, at as f, gn as p, kt as m, ot as h, q as te, rt as g, st as ne } from "./line-metrics-DS0NS2Iq.js";
4
- import { t as re } from "./bounded-raw-part-cache-C6ro6Ezf.js";
5
- import { a as ie, c as ae, i as oe, l as se, r as ce, u as le } from "./document-pull-client-5AakVD6e.js";
6
- import { t as ue } from "./transfer-DCu4c2BL.js";
7
- import { a as de, c as fe, d as pe, l as me, o as he, r as ge, s as _e, t as ve, u as ye } from "./worksheet-pull-client-BnvgeqfG.js";
8
- import { a as be, i as xe, n as Se, r as Ce } from "./session-C_HGxbRD.js";
9
- import { a as we, n as Te, r as Ee, t as De } from "./render-DhlT5jxZ.js";
10
- import { existsSync as Oe, readFileSync as ke } from "node:fs";
11
- import { fileURLToPath as Ae } from "node:url";
12
- import { basename as je, dirname as Me, resolve as Ne } from "node:path";
13
- import { createRequire as Pe } from "node:module";
2
+ import { t } from "./slide-pull-client-CFHNk0ek.js";
3
+ import { B as n, Et as r, F as i, H as a, I as o, It as s, Lt as c, P as l, R as u, U as d, W as f, at as p, kt as m, ot as h, q as g, rt as _, sn as v, st as ee } from "./line-metrics-A77J_KRx.js";
4
+ import { t as te } from "./bounded-raw-part-cache-C6ro6Ezf.js";
5
+ import { a as ne, c as re, i as ie, l as ae, r as oe, u as se } from "./document-pull-client-DYoybVCn.js";
6
+ import { t as ce } from "./transfer-3QEJrsJa.js";
7
+ import { a as le, c as ue, d as de, l as fe, o as pe, r as me, s as he, t as ge, u as _e } from "./worksheet-pull-client-CziyJf24.js";
8
+ import { a as ve, i as ye, n as be, r as xe } from "./session-CJwZaquG.js";
9
+ import { a as Se, n as Ce, r as we, t as Te } from "./render-C5m7Ddwx.js";
10
+ import { existsSync as Ee, readFileSync as De } from "node:fs";
11
+ import { fileURLToPath as Oe } from "node:url";
12
+ import { basename as ke, dirname as Ae, resolve as je } from "node:path";
13
+ import { createRequire as Me } from "node:module";
14
14
  //#region packages/core/src/internal/owned-session.ts
15
- async function _(e, t) {
15
+ async function y(e, t) {
16
16
  let n = await e(), r;
17
17
  try {
18
18
  return await t(n);
@@ -28,7 +28,7 @@ async function _(e, t) {
28
28
  }
29
29
  //#endregion
30
30
  //#region packages/core/src/internal/in-process-pull-transport.ts
31
- var v = class {
31
+ var b = class {
32
32
  nextRequestId = 1;
33
33
  terminated = !1;
34
34
  constructor(e, t) {
@@ -54,30 +54,30 @@ var v = class {
54
54
  };
55
55
  //#endregion
56
56
  //#region packages/node/src/wasm-loader.ts
57
- function Fe(e) {
58
- return new WebAssembly.Module(ke(e));
57
+ function Ne(e) {
58
+ return new WebAssembly.Module(De(e));
59
59
  }
60
- function y(e, t = Fe) {
60
+ function Pe(e, t = Ne) {
61
61
  let n = {};
62
62
  return () => n.value ??= t(e());
63
63
  }
64
- function Ie(e, t, n) {
65
- let r = Me(Ae(e)), i = Ne(r, t);
66
- if (Oe(i)) return i;
67
- let a = Ne(r, je(t));
68
- return Oe(a) || !n ? a : Pe(e).resolve(n);
64
+ function Fe(e, t, n) {
65
+ let r = Ae(Oe(e)), i = je(r, t);
66
+ if (Ee(i)) return i;
67
+ let a = je(r, ke(t));
68
+ return Ee(a) || !n ? a : Me(e).resolve(n);
69
69
  }
70
70
  //#endregion
71
71
  //#region packages/node/src/pptx.ts
72
- var Le = y(() => Ie(import.meta.url, "pptx_parser_bg.wasm", "@silurus/ooxml-pptx/wasm-binary"));
73
- async function Re(e, t = {}) {
74
- return ze(e, t);
72
+ var Ie = Pe(() => Fe(import.meta.url, "pptx_parser_bg.wasm", "@silurus/ooxml-pptx/wasm-binary"));
73
+ async function Le(e, t = {}) {
74
+ return Re(e, t);
75
75
  }
76
- async function ze(e, t = {}) {
77
- let n = await Se(He(e), Le(), t);
78
- return new Be(n.closeArchive, n.archive, n.bootstrap, n.metrics, t.signal);
76
+ async function Re(e, t = {}) {
77
+ let n = await be(Ve(e), Ie(), t);
78
+ return new ze(n.closeArchive, n.archive, n.bootstrap, n.metrics, t.signal);
79
79
  }
80
- var Be = class {
80
+ var ze = class {
81
81
  slideCount;
82
82
  slideWidth;
83
83
  slideHeight;
@@ -93,12 +93,12 @@ var Be = class {
93
93
  renderTail = Promise.resolve();
94
94
  fetchImage = (e, t) => this.getPartInternal(e, t, (t) => t.extract_image(e));
95
95
  fetchMedia = (e) => this.getPartInternal(e, "application/octet-stream", (t) => t.extract_media(e));
96
- rawParts = new re({
96
+ rawParts = new te({
97
97
  maxEntries: 64,
98
- maxBytes: te
98
+ maxBytes: g
99
99
  });
100
100
  constructor(e, n, r, i, a) {
101
- this.closeArchive = e, this.archive = n, this.bootstrap = r, this.metrics = i, this.signal = a, this.slideCount = r.slideCount, this.slideWidth = r.slideWidth, this.slideHeight = r.slideHeight, this.slidePull = new xe(() => this.archive), this.transport = new v((e, t) => this.slidePull.dispatchSafely(e, t), () => void 0), this.slideClient = new t({
101
+ this.closeArchive = e, this.archive = n, this.bootstrap = r, this.metrics = i, this.signal = a, this.slideCount = r.slideCount, this.slideWidth = r.slideWidth, this.slideHeight = r.slideHeight, this.slidePull = new ye(() => this.archive), this.transport = new b((e, t) => this.slidePull.dispatchSafely(e, t), () => void 0), this.slideClient = new t({
102
102
  slideCount: this.slideCount,
103
103
  transport: this.transport,
104
104
  open: async (e, t) => {
@@ -132,8 +132,8 @@ var Be = class {
132
132
  }
133
133
  async renderSlide(e, t, n) {
134
134
  return this.assertOpen(), this.enqueueRender(async () => {
135
- b(this.signal);
136
- let { renderSlideNode: r } = await import("./render-DhlT5jxZ.js").then((e) => e.i);
135
+ x(this.signal);
136
+ let { renderSlideNode: r } = await import("./render-C5m7Ddwx.js").then((e) => e.i);
137
137
  await r(e, {
138
138
  slideWidth: this.slideWidth,
139
139
  slideHeight: this.slideHeight,
@@ -147,7 +147,7 @@ var Be = class {
147
147
  ...n,
148
148
  fetchImage: this.fetchImage,
149
149
  fetchMedia: this.fetchMedia
150
- }), b(this.signal);
150
+ }), x(this.signal);
151
151
  }).catch((e) => this.failOperation(e));
152
152
  }
153
153
  [Symbol.asyncIterator]() {
@@ -160,13 +160,13 @@ var Be = class {
160
160
  let e;
161
161
  try {
162
162
  for (let e = 0; e < this.slideCount; e += 1) {
163
- b(this.signal);
163
+ x(this.signal);
164
164
  let t = await this.slideClient.load(e);
165
165
  if (!t) throw Error(`PPTX slide ${e} was not decoded`);
166
- this.usage ??= await this.slidePull.run(() => be((e) => e(this.archive))), this.metrics.observeUsage(this.usage), this.consumedSlides = e + 1, yield t;
166
+ this.usage ??= await this.slidePull.run(() => ve((e) => e(this.archive))), this.metrics.observeUsage(this.usage), this.consumedSlides = e + 1, yield t;
167
167
  }
168
168
  } catch (t) {
169
- throw e = f(t) ?? t, this.metrics.fail(e), e;
169
+ throw e = p(t) ?? t, this.metrics.fail(e), e;
170
170
  } finally {
171
171
  try {
172
172
  await this.close();
@@ -184,13 +184,13 @@ var Be = class {
184
184
  try {
185
185
  await this.slidePull.reset();
186
186
  } catch (t) {
187
- e = f(t) ?? t;
187
+ e = p(t) ?? t;
188
188
  }
189
189
  this.transport.terminate(), this.rawParts.clear();
190
190
  try {
191
191
  this.closeArchive();
192
192
  } catch (t) {
193
- e ??= f(t) ?? t;
193
+ e ??= p(t) ?? t;
194
194
  }
195
195
  if (e !== void 0) throw this.metrics.fail(e), e;
196
196
  this.metrics.checkpoint("presentation session closed"), this.metrics.succeed({ slides: this.consumedSlides });
@@ -201,14 +201,14 @@ var Be = class {
201
201
  }
202
202
  getPartInternal(e, t, n) {
203
203
  return this.rawParts.get(e, t, () => {
204
- b(this.signal);
204
+ x(this.signal);
205
205
  let e = n(this.archive);
206
206
  return this.refreshResourceUsage(), new Blob([e], { type: t });
207
207
  });
208
208
  }
209
209
  refreshResourceUsage() {
210
210
  try {
211
- this.usage = g(this.archive.resource_usage()), this.metrics.observeUsage(this.usage);
211
+ this.usage = _(this.archive.resource_usage()), this.metrics.observeUsage(this.usage);
212
212
  } catch {}
213
213
  return this.usage;
214
214
  }
@@ -217,28 +217,28 @@ var Be = class {
217
217
  if (this.resourceFailure) throw this.resourceFailure;
218
218
  }
219
219
  failOperation(e) {
220
- let t = f(e) ?? e;
221
- throw t instanceof p && (this.resourceFailure ??= t), this.metrics.fail(t), t;
220
+ let t = p(e) ?? e;
221
+ throw t instanceof v && (this.resourceFailure ??= t), this.metrics.fail(t), t;
222
222
  }
223
223
  };
224
- async function Ve(e, t = {}) {
225
- return _(() => ze(e, t), async (e) => {
224
+ async function Be(e, t = {}) {
225
+ return y(() => Re(e, t), async (e) => {
226
226
  let t = [];
227
227
  for await (let n of e.slides()) t.push(n);
228
228
  return e.materialize(t);
229
229
  });
230
230
  }
231
- function He(e) {
231
+ function Ve(e) {
232
232
  return e instanceof Uint8Array ? e : new Uint8Array(e);
233
233
  }
234
- function b(e) {
234
+ function x(e) {
235
235
  if (!e?.aborted) return;
236
236
  let t = /* @__PURE__ */ Error("PPTX presentation session was aborted");
237
237
  throw t.name = "AbortError", t;
238
238
  }
239
239
  //#endregion
240
240
  //#region packages/docx/src/document-pull-worker.ts
241
- var Ue = Math.max(d, ee), We = class {
241
+ var He = Math.max(d, f), Ue = class {
242
242
  coordinator = new o();
243
243
  host = null;
244
244
  identity = null;
@@ -253,7 +253,7 @@ var Ue = Math.max(d, ee), We = class {
253
253
  let t = 0;
254
254
  this.identity = e, this.host = new i({
255
255
  ...e,
256
- maxByteCredit: Ue,
256
+ maxByteCredit: He,
257
257
  coordinator: this.coordinator,
258
258
  driver: {
259
259
  pull: (n) => {
@@ -261,9 +261,9 @@ var Ue = Math.max(d, ee), We = class {
261
261
  try {
262
262
  r = this.executeArchive((r) => r.pull_document_chunk(t, e.operationId, e.generation, n));
263
263
  } catch (e) {
264
- throw ne(e, n, Ue) || e;
264
+ throw ee(e, n, He) || e;
265
265
  }
266
- let i = ue(r);
266
+ let i = ce(r);
267
267
  return {
268
268
  payload: i,
269
269
  byteLength: i.byteLength,
@@ -280,7 +280,7 @@ var Ue = Math.max(d, ee), We = class {
280
280
  close: () => this.executeArchive((e) => e.close_document_session()),
281
281
  resourceUsage: () => {
282
282
  let e = this.executeArchive((e) => e.document_cursor_resource_usage?.());
283
- return e ? g(e) : void 0;
283
+ return e ? _(e) : void 0;
284
284
  }
285
285
  }
286
286
  });
@@ -308,181 +308,181 @@ var Ue = Math.max(d, ee), We = class {
308
308
  if (!e) throw Error("No docx loaded");
309
309
  return e;
310
310
  }
311
- }, Ge = /* @__PURE__ */ e({
312
- DocxArchive: () => x,
313
- default: () => rt,
314
- docx_to_markdown: () => Ke,
315
- extract_image: () => qe,
316
- initSync: () => nt,
317
- parse_docx: () => Je,
318
- reinit: () => it
319
- }), x = class {
311
+ }, We = /* @__PURE__ */ e({
312
+ DocxArchive: () => S,
313
+ default: () => nt,
314
+ docx_to_markdown: () => Ge,
315
+ extract_image: () => Ke,
316
+ initSync: () => tt,
317
+ parse_docx: () => qe,
318
+ reinit: () => rt
319
+ }), S = class {
320
320
  __destroy_into_raw() {
321
321
  let e = this.__wbg_ptr;
322
- return this.__wbg_ptr = 0, Xe.unregister(this), e;
322
+ return this.__wbg_ptr = 0, Ye.unregister(this), e;
323
323
  }
324
324
  free() {
325
325
  let e = this.__destroy_into_raw();
326
- F.__wbg_docxarchive_free(e, 0);
326
+ I.__wbg_docxarchive_free(e, 0);
327
327
  }
328
328
  acknowledge_document_chunk(e, t, n) {
329
- let r = F.docxarchive_acknowledge_document_chunk(this.__wbg_ptr, e, t, n);
330
- if (r[1]) throw A(r[0]);
329
+ let r = I.docxarchive_acknowledge_document_chunk(this.__wbg_ptr, e, t, n);
330
+ if (r[1]) throw j(r[0]);
331
331
  }
332
332
  assert_healthy() {
333
- let e = F.docxarchive_assert_healthy(this.__wbg_ptr);
334
- if (e[1]) throw A(e[0]);
333
+ let e = I.docxarchive_assert_healthy(this.__wbg_ptr);
334
+ if (e[1]) throw j(e[0]);
335
335
  }
336
336
  cancel_document_cursor() {
337
- F.docxarchive_cancel_document_cursor(this.__wbg_ptr);
337
+ I.docxarchive_cancel_document_cursor(this.__wbg_ptr);
338
338
  }
339
339
  close_document_session() {
340
- F.docxarchive_close_document_session(this.__wbg_ptr);
340
+ I.docxarchive_close_document_session(this.__wbg_ptr);
341
341
  }
342
342
  document_chunk_done() {
343
- let e = F.docxarchive_document_chunk_done(this.__wbg_ptr);
344
- if (e[2]) throw A(e[1]);
343
+ let e = I.docxarchive_document_chunk_done(this.__wbg_ptr);
344
+ if (e[2]) throw j(e[1]);
345
345
  return e[0] !== 0;
346
346
  }
347
347
  document_cursor_resource_usage() {
348
- let e = F.docxarchive_document_cursor_resource_usage(this.__wbg_ptr);
349
- if (e[3]) throw A(e[2]);
350
- var t = S(e[0], e[1]).slice();
351
- return F.__wbindgen_free(e[0], e[1] * 1, 1), t;
348
+ let e = I.docxarchive_document_cursor_resource_usage(this.__wbg_ptr);
349
+ if (e[3]) throw j(e[2]);
350
+ var t = C(e[0], e[1]).slice();
351
+ return I.__wbindgen_free(e[0], e[1] * 1, 1), t;
352
352
  }
353
353
  extract_image(e) {
354
- let t = k(e, F.__wbindgen_malloc, F.__wbindgen_realloc), n = P, r = F.docxarchive_extract_image(this.__wbg_ptr, t, n);
355
- if (r[3]) throw A(r[2]);
356
- var i = S(r[0], r[1]).slice();
357
- return F.__wbindgen_free(r[0], r[1] * 1, 1), i;
354
+ let t = A(e, I.__wbindgen_malloc, I.__wbindgen_realloc), n = F, r = I.docxarchive_extract_image(this.__wbg_ptr, t, n);
355
+ if (r[3]) throw j(r[2]);
356
+ var i = C(r[0], r[1]).slice();
357
+ return I.__wbindgen_free(r[0], r[1] * 1, 1), i;
358
358
  }
359
359
  constructor(e, t, n, r) {
360
- let i = O(e, F.__wbindgen_malloc), a = P, o = F.docxarchive_new(i, a, !D(t), D(t) ? BigInt(0) : t, !D(n), D(n) ? BigInt(0) : n, !D(r), D(r) ? BigInt(0) : r);
361
- if (o[2]) throw A(o[1]);
362
- return this.__wbg_ptr = o[0] >>> 0, Xe.register(this, this.__wbg_ptr, this), this;
360
+ let i = k(e, I.__wbindgen_malloc), a = F, o = I.docxarchive_new(i, a, !O(t), O(t) ? BigInt(0) : t, !O(n), O(n) ? BigInt(0) : n, !O(r), O(r) ? BigInt(0) : r);
361
+ if (o[2]) throw j(o[1]);
362
+ return this.__wbg_ptr = o[0] >>> 0, Ye.register(this, this.__wbg_ptr, this), this;
363
363
  }
364
364
  open_document_cursor(e, t) {
365
- let n = F.docxarchive_open_document_cursor(this.__wbg_ptr, e, t);
366
- if (n[1]) throw A(n[0]);
365
+ let n = I.docxarchive_open_document_cursor(this.__wbg_ptr, e, t);
366
+ if (n[1]) throw j(n[0]);
367
367
  }
368
368
  parse() {
369
- let e = F.docxarchive_parse(this.__wbg_ptr);
370
- if (e[3]) throw A(e[2]);
371
- var t = S(e[0], e[1]).slice();
372
- return F.__wbindgen_free(e[0], e[1] * 1, 1), t;
369
+ let e = I.docxarchive_parse(this.__wbg_ptr);
370
+ if (e[3]) throw j(e[2]);
371
+ var t = C(e[0], e[1]).slice();
372
+ return I.__wbindgen_free(e[0], e[1] * 1, 1), t;
373
373
  }
374
374
  pull_document_chunk(e, t, n, r) {
375
- let i = F.docxarchive_pull_document_chunk(this.__wbg_ptr, e, t, n, r);
376
- if (i[3]) throw A(i[2]);
377
- var a = S(i[0], i[1]).slice();
378
- return F.__wbindgen_free(i[0], i[1] * 1, 1), a;
375
+ let i = I.docxarchive_pull_document_chunk(this.__wbg_ptr, e, t, n, r);
376
+ if (i[3]) throw j(i[2]);
377
+ var a = C(i[0], i[1]).slice();
378
+ return I.__wbindgen_free(i[0], i[1] * 1, 1), a;
379
379
  }
380
380
  resource_usage() {
381
- let e = F.docxarchive_resource_usage(this.__wbg_ptr);
382
- if (e[3]) throw A(e[2]);
383
- var t = S(e[0], e[1]).slice();
384
- return F.__wbindgen_free(e[0], e[1] * 1, 1), t;
381
+ let e = I.docxarchive_resource_usage(this.__wbg_ptr);
382
+ if (e[3]) throw j(e[2]);
383
+ var t = C(e[0], e[1]).slice();
384
+ return I.__wbindgen_free(e[0], e[1] * 1, 1), t;
385
385
  }
386
386
  to_markdown() {
387
387
  let e, t;
388
388
  try {
389
- let i = F.docxarchive_to_markdown(this.__wbg_ptr);
389
+ let i = I.docxarchive_to_markdown(this.__wbg_ptr);
390
390
  var n = i[0], r = i[1];
391
- if (i[3]) throw n = 0, r = 0, A(i[2]);
392
- return e = n, t = r, w(n, r);
391
+ if (i[3]) throw n = 0, r = 0, j(i[2]);
392
+ return e = n, t = r, T(n, r);
393
393
  } finally {
394
- F.__wbindgen_free(e, t, 1);
394
+ I.__wbindgen_free(e, t, 1);
395
395
  }
396
396
  }
397
397
  };
398
- Symbol.dispose && (x.prototype[Symbol.dispose] = x.prototype.free);
399
- function Ke(e, t, n) {
398
+ Symbol.dispose && (S.prototype[Symbol.dispose] = S.prototype.free);
399
+ function Ge(e, t, n) {
400
400
  let r, i;
401
401
  try {
402
- let s = O(e, F.__wbindgen_malloc), c = P, l = F.docx_to_markdown(s, c, !D(t), D(t) ? BigInt(0) : t, !D(n), D(n) ? BigInt(0) : n);
402
+ let s = k(e, I.__wbindgen_malloc), c = F, l = I.docx_to_markdown(s, c, !O(t), O(t) ? BigInt(0) : t, !O(n), O(n) ? BigInt(0) : n);
403
403
  var a = l[0], o = l[1];
404
- if (l[3]) throw a = 0, o = 0, A(l[2]);
405
- return r = a, i = o, w(a, o);
404
+ if (l[3]) throw a = 0, o = 0, j(l[2]);
405
+ return r = a, i = o, T(a, o);
406
406
  } finally {
407
- F.__wbindgen_free(r, i, 1);
407
+ I.__wbindgen_free(r, i, 1);
408
408
  }
409
409
  }
410
- function qe(e, t, n, r) {
411
- let i = O(e, F.__wbindgen_malloc), a = P, o = k(t, F.__wbindgen_malloc, F.__wbindgen_realloc), s = P, c = F.extract_image(i, a, o, s, !D(n), D(n) ? BigInt(0) : n, !D(r), D(r) ? BigInt(0) : r);
412
- if (c[3]) throw A(c[2]);
413
- var l = S(c[0], c[1]).slice();
414
- return F.__wbindgen_free(c[0], c[1] * 1, 1), l;
410
+ function Ke(e, t, n, r) {
411
+ let i = k(e, I.__wbindgen_malloc), a = F, o = A(t, I.__wbindgen_malloc, I.__wbindgen_realloc), s = F, c = I.extract_image(i, a, o, s, !O(n), O(n) ? BigInt(0) : n, !O(r), O(r) ? BigInt(0) : r);
412
+ if (c[3]) throw j(c[2]);
413
+ var l = C(c[0], c[1]).slice();
414
+ return I.__wbindgen_free(c[0], c[1] * 1, 1), l;
415
415
  }
416
- function Je(e, t, n) {
417
- let r = O(e, F.__wbindgen_malloc), i = P, a = F.parse_docx(r, i, !D(t), D(t) ? BigInt(0) : t, !D(n), D(n) ? BigInt(0) : n);
418
- if (a[3]) throw A(a[2]);
419
- var o = S(a[0], a[1]).slice();
420
- return F.__wbindgen_free(a[0], a[1] * 1, 1), o;
416
+ function qe(e, t, n) {
417
+ let r = k(e, I.__wbindgen_malloc), i = F, a = I.parse_docx(r, i, !O(t), O(t) ? BigInt(0) : t, !O(n), O(n) ? BigInt(0) : n);
418
+ if (a[3]) throw j(a[2]);
419
+ var o = C(a[0], a[1]).slice();
420
+ return I.__wbindgen_free(a[0], a[1] * 1, 1), o;
421
421
  }
422
- function Ye() {
422
+ function Je() {
423
423
  return {
424
424
  __proto__: null,
425
425
  "./docx_parser_bg.js": {
426
426
  __proto__: null,
427
427
  __wbg___wbindgen_throw_6b64449b9b9ed33c: function(e, t) {
428
- throw Error(w(e, t));
428
+ throw Error(T(e, t));
429
429
  },
430
430
  __wbg_error_a6fa202b58aa1cd3: function(e, t) {
431
431
  let n, r;
432
432
  try {
433
- n = e, r = t, console.error(w(e, t));
433
+ n = e, r = t, console.error(T(e, t));
434
434
  } finally {
435
- F.__wbindgen_free(n, r, 1);
435
+ I.__wbindgen_free(n, r, 1);
436
436
  }
437
437
  },
438
438
  __wbg_new_227d7c05414eb861: function() {
439
439
  return /* @__PURE__ */ Error();
440
440
  },
441
441
  __wbg_stack_3b0d974bbf31e44f: function(e, t) {
442
- let n = t.stack, r = k(n, F.__wbindgen_malloc, F.__wbindgen_realloc), i = P;
443
- Ze().setInt32(e + 4, i, !0), Ze().setInt32(e + 0, r, !0);
442
+ let n = t.stack, r = A(n, I.__wbindgen_malloc, I.__wbindgen_realloc), i = F;
443
+ Xe().setInt32(e + 4, i, !0), Xe().setInt32(e + 0, r, !0);
444
444
  },
445
445
  __wbindgen_cast_0000000000000001: function(e, t) {
446
- return w(e, t);
446
+ return T(e, t);
447
447
  },
448
448
  __wbindgen_init_externref_table: function() {
449
- let e = F.__wbindgen_externrefs, t = e.grow(4);
449
+ let e = I.__wbindgen_externrefs, t = e.grow(4);
450
450
  e.set(0, void 0), e.set(t + 0, void 0), e.set(t + 1, null), e.set(t + 2, !0), e.set(t + 3, !1);
451
451
  }
452
452
  }
453
453
  };
454
454
  }
455
- var Xe = typeof FinalizationRegistry > "u" ? {
455
+ var Ye = typeof FinalizationRegistry > "u" ? {
456
456
  register: () => {},
457
457
  unregister: () => {}
458
- } : new FinalizationRegistry((e) => F.__wbg_docxarchive_free(e >>> 0, 1));
459
- function S(e, t) {
460
- return e >>>= 0, E().subarray(e / 1, e / 1 + t);
458
+ } : new FinalizationRegistry((e) => I.__wbg_docxarchive_free(e >>> 0, 1));
459
+ function C(e, t) {
460
+ return e >>>= 0, D().subarray(e / 1, e / 1 + t);
461
461
  }
462
- var C = null;
463
- function Ze() {
464
- return (C === null || C.buffer.detached === !0 || C.buffer.detached === void 0 && C.buffer !== F.memory.buffer) && (C = new DataView(F.memory.buffer)), C;
462
+ var w = null;
463
+ function Xe() {
464
+ return (w === null || w.buffer.detached === !0 || w.buffer.detached === void 0 && w.buffer !== I.memory.buffer) && (w = new DataView(I.memory.buffer)), w;
465
465
  }
466
- function w(e, t) {
467
- return e >>>= 0, $e(e, t);
466
+ function T(e, t) {
467
+ return e >>>= 0, Qe(e, t);
468
468
  }
469
- var T = null;
470
- function E() {
471
- return (T === null || T.byteLength === 0) && (T = new Uint8Array(F.memory.buffer)), T;
469
+ var E = null;
470
+ function D() {
471
+ return (E === null || E.byteLength === 0) && (E = new Uint8Array(I.memory.buffer)), E;
472
472
  }
473
- function D(e) {
473
+ function O(e) {
474
474
  return e == null;
475
475
  }
476
- function O(e, t) {
476
+ function k(e, t) {
477
477
  let n = t(e.length * 1, 1) >>> 0;
478
- return E().set(e, n / 1), P = e.length, n;
478
+ return D().set(e, n / 1), F = e.length, n;
479
479
  }
480
- function k(e, t, n) {
480
+ function A(e, t, n) {
481
481
  if (n === void 0) {
482
- let n = N.encode(e), r = t(n.length, 1) >>> 0;
483
- return E().subarray(r, r + n.length).set(n), P = n.length, r;
482
+ let n = P.encode(e), r = t(n.length, 1) >>> 0;
483
+ return D().subarray(r, r + n.length).set(n), F = n.length, r;
484
484
  }
485
- let r = e.length, i = t(r, 1) >>> 0, a = E(), o = 0;
485
+ let r = e.length, i = t(r, 1) >>> 0, a = D(), o = 0;
486
486
  for (; o < r; o++) {
487
487
  let t = e.charCodeAt(o);
488
488
  if (t > 127) break;
@@ -490,40 +490,40 @@ function k(e, t, n) {
490
490
  }
491
491
  if (o !== r) {
492
492
  o !== 0 && (e = e.slice(o)), i = n(i, r, r = o + e.length * 3, 1) >>> 0;
493
- let t = E().subarray(i + o, i + r), a = N.encodeInto(e, t);
493
+ let t = D().subarray(i + o, i + r), a = P.encodeInto(e, t);
494
494
  o += a.written, i = n(i, r, o, 1) >>> 0;
495
495
  }
496
- return P = o, i;
496
+ return F = o, i;
497
497
  }
498
- function A(e) {
499
- let t = F.__wbindgen_externrefs.get(e);
500
- return F.__externref_table_dealloc(e), t;
498
+ function j(e) {
499
+ let t = I.__wbindgen_externrefs.get(e);
500
+ return I.__externref_table_dealloc(e), t;
501
501
  }
502
- var j = new TextDecoder("utf-8", {
502
+ var M = new TextDecoder("utf-8", {
503
503
  ignoreBOM: !0,
504
504
  fatal: !0
505
505
  });
506
- j.decode();
507
- var Qe = 2146435072, M = 0;
508
- function $e(e, t) {
509
- return M += t, M >= Qe && (j = new TextDecoder("utf-8", {
506
+ M.decode();
507
+ var Ze = 2146435072, N = 0;
508
+ function Qe(e, t) {
509
+ return N += t, N >= Ze && (M = new TextDecoder("utf-8", {
510
510
  ignoreBOM: !0,
511
511
  fatal: !0
512
- }), j.decode(), M = t), j.decode(E().subarray(e, e + t));
512
+ }), M.decode(), N = t), M.decode(D().subarray(e, e + t));
513
513
  }
514
- var N = new TextEncoder();
515
- "encodeInto" in N || (N.encodeInto = function(e, t) {
516
- let n = N.encode(e);
514
+ var P = new TextEncoder();
515
+ "encodeInto" in P || (P.encodeInto = function(e, t) {
516
+ let n = P.encode(e);
517
517
  return t.set(n), {
518
518
  read: e.length,
519
519
  written: n.length
520
520
  };
521
521
  });
522
- var P = 0, F;
523
- function et(e, t) {
524
- return F = e.exports, C = null, T = null, F.__wbindgen_start(), F;
522
+ var F = 0, I;
523
+ function $e(e, t) {
524
+ return I = e.exports, w = null, E = null, I.__wbindgen_start(), I;
525
525
  }
526
- async function tt(e, t) {
526
+ async function et(e, t) {
527
527
  if (typeof Response == "function" && e instanceof Response) {
528
528
  if (typeof WebAssembly.instantiateStreaming == "function") try {
529
529
  return await WebAssembly.instantiateStreaming(e, t);
@@ -549,32 +549,32 @@ async function tt(e, t) {
549
549
  return !1;
550
550
  }
551
551
  }
552
- function nt(e) {
553
- if (F !== void 0) return F;
552
+ function tt(e) {
553
+ if (I !== void 0) return I;
554
554
  e !== void 0 && (Object.getPrototypeOf(e) === Object.prototype ? {module: e} = e : console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));
555
- let t = Ye();
556
- return e instanceof WebAssembly.Module || (e = new WebAssembly.Module(e)), et(new WebAssembly.Instance(e, t), e);
555
+ let t = Je();
556
+ return e instanceof WebAssembly.Module || (e = new WebAssembly.Module(e)), $e(new WebAssembly.Instance(e, t), e);
557
557
  }
558
- async function rt(e) {
559
- if (F !== void 0) return F;
558
+ async function nt(e) {
559
+ if (I !== void 0) return I;
560
560
  e !== void 0 && (Object.getPrototypeOf(e) === Object.prototype ? {module_or_path: e} = e : console.warn("using deprecated parameters for the initialization function; pass a single object instead"));
561
- let t = Ye();
561
+ let t = Je();
562
562
  (typeof e == "string" || typeof Request == "function" && e instanceof Request || typeof URL == "function" && e instanceof URL) && (e = fetch(e));
563
- let { instance: n, module: r } = await tt(await e, t);
564
- return et(n, r);
563
+ let { instance: n, module: r } = await et(await e, t);
564
+ return $e(n, r);
565
565
  }
566
- async function it(e) {
567
- return F = void 0, C = null, T = null, rt(e);
566
+ async function rt(e) {
567
+ return I = void 0, w = null, E = null, nt(e);
568
568
  }
569
569
  //#endregion
570
570
  //#region packages/docx/src/internal/node-acquisition.ts
571
- var at, I;
572
- function ot(e) {
573
- if (!I) at = e, I = new Ce(Ge, e);
574
- else if (at !== e) throw Error("DOCX runtime was already initialized with another WebAssembly.Module");
575
- return I;
571
+ var it, L;
572
+ function at(e) {
573
+ if (!L) it = e, L = new xe(We, e);
574
+ else if (it !== e) throw Error("DOCX runtime was already initialized with another WebAssembly.Module");
575
+ return L;
576
576
  }
577
- async function st(e, t, r, i) {
577
+ async function ot(e, t, r, i) {
578
578
  let o = n(r), s = new u({
579
579
  enabled: o.debug || o.onResourceMetrics !== void 0,
580
580
  format: "docx",
@@ -587,31 +587,31 @@ async function st(e, t, r, i) {
587
587
  s.setSourceBytes(e.byteLength);
588
588
  let c, l, d;
589
589
  try {
590
- lt(r.signal);
591
- let [n, u, ee] = a(o.policy), f = x;
592
- c = await ot(t).open(() => new f(e, n, u, ee), {
590
+ ct(r.signal);
591
+ let [n, u, f] = a(o.policy), p = S;
592
+ c = await at(t).open(() => new p(e, n, u, f), {
593
593
  signal: r.signal,
594
- abortError: ut,
594
+ abortError: lt,
595
595
  disposeOnAbort: (e) => e.free()
596
- }), lt(r.signal);
597
- let p = c.proxy;
598
- s.checkpoint("container ready"), l = new We(() => p);
599
- let m = {
596
+ }), ct(r.signal);
597
+ let m = c.proxy;
598
+ s.checkpoint("container ready"), l = new Ue(() => m);
599
+ let h = {
600
600
  sessionId: 1,
601
601
  operationId: 1,
602
602
  generation: 1
603
603
  };
604
- l.open(m), d = new v((e, t) => l?.dispatch(e, t), () => void 0);
605
- let h, te = await i(d, m, {
604
+ l.open(h), d = new b((e, t) => l?.dispatch(e, t), () => void 0);
605
+ let g, _ = await i(d, h, {
606
606
  signal: r.signal,
607
607
  onUsage: (e) => {
608
- h = e, s.observeUsage(e);
608
+ g = e, s.observeUsage(e);
609
609
  }
610
610
  });
611
- return h ??= ct(p.document_cursor_resource_usage()), s.observeUsage(h), s.checkpoint("model streamed"), await l.reset(), d.terminate(), {
612
- archive: p,
613
- result: te,
614
- usage: h,
611
+ return g ??= st(m.document_cursor_resource_usage()), s.observeUsage(g), s.checkpoint("model streamed"), await l.reset(), d.terminate(), {
612
+ archive: m,
613
+ result: _,
614
+ usage: g,
615
615
  metrics: s,
616
616
  closeArchive: () => c?.close((e) => e.free())
617
617
  };
@@ -620,45 +620,45 @@ async function st(e, t, r, i) {
620
620
  try {
621
621
  c?.close((e) => e.free());
622
622
  } catch {}
623
- let t = f(e) ?? e;
623
+ let t = p(e) ?? e;
624
624
  throw s.fail(t), t;
625
625
  }
626
626
  }
627
- function ct(e) {
627
+ function st(e) {
628
628
  try {
629
- return g(e);
629
+ return _(e);
630
630
  } catch {
631
631
  return;
632
632
  }
633
633
  }
634
- function lt(e) {
635
- if (e?.aborted) throw ut();
634
+ function ct(e) {
635
+ if (e?.aborted) throw lt();
636
636
  }
637
- function ut() {
637
+ function lt() {
638
638
  let e = /* @__PURE__ */ Error("DOCX document session was aborted");
639
639
  return e.name = "AbortError", e;
640
640
  }
641
641
  //#endregion
642
642
  //#region packages/node/src/docx.ts
643
- var dt = y(() => Ie(import.meta.url, "docx_parser_bg.wasm", "@silurus/ooxml-docx/wasm-binary"));
644
- async function ft(e, t) {
643
+ var ut = Pe(() => Fe(import.meta.url, "docx_parser_bg.wasm", "@silurus/ooxml-docx/wasm-binary"));
644
+ async function dt(e, t) {
645
645
  if (!t?.factory) throw TypeError("openDocxDocument requires a canvas factory");
646
- let n = await st(gt(e), dt(), t, (e, t, n) => ce(e, t, n));
646
+ let n = await ot(ht(e), ut(), t, (e, t, n) => oe(e, t, n));
647
647
  try {
648
- L(t.signal);
649
- let e = t.factory.createCanvas(1, 1), r = se(n.result, { measureContext: e.getContext("2d") }), i = ht(t.currentDate), a = ie(n.result, r, i).layoutVariants.defaultLayout, o = new mt(n.closeArchive, n.archive, n.result, r, a, t.factory, i, n.usage, n.metrics, t.signal);
648
+ R(t.signal);
649
+ let e = t.factory.createCanvas(1, 1), r = ae(n.result, { measureContext: e.getContext("2d") }), i = mt(t.currentDate), a = ne(n.result, r, i).layoutVariants.defaultLayout, o = new pt(n.closeArchive, n.archive, n.result, r, a, t.factory, i, n.usage, n.metrics, t.signal);
650
650
  return n.metrics.observeUsage(o.resourceUsage), n.metrics.checkpoint("pagination ready"), o;
651
651
  } catch (e) {
652
652
  try {
653
653
  n.closeArchive();
654
654
  } catch {}
655
- let t = f(e) ?? e;
655
+ let t = p(e) ?? e;
656
656
  throw n.metrics.fail(t), t;
657
657
  }
658
658
  }
659
- async function pt(e, t = {}) {
660
- return _(async () => {
661
- let n = await st(gt(e), dt(), t, (e, t, n) => oe(e, t, n)), r = !1;
659
+ async function ft(e, t = {}) {
660
+ return y(async () => {
661
+ let n = await ot(ht(e), ut(), t, (e, t, n) => ie(e, t, n)), r = !1;
662
662
  return {
663
663
  acquired: n,
664
664
  markSucceeded: () => {
@@ -674,14 +674,14 @@ async function pt(e, t = {}) {
674
674
  };
675
675
  }, async ({ acquired: e, markSucceeded: t }) => {
676
676
  try {
677
- let n = le(e.result);
677
+ let n = se(e.result);
678
678
  return e.metrics.checkpoint("document materialized", e.usage), t(), n;
679
679
  } catch (t) {
680
680
  throw e.metrics.fail(t), t;
681
681
  }
682
682
  });
683
683
  }
684
- var mt = class {
684
+ var pt = class {
685
685
  pageCount;
686
686
  sizes;
687
687
  lastResourceUsage;
@@ -709,7 +709,7 @@ var mt = class {
709
709
  }
710
710
  refreshResourceUsage() {
711
711
  try {
712
- this.lastResourceUsage = g(this.archive.resource_usage()), this.metrics.observeUsage(this.lastResourceUsage);
712
+ this.lastResourceUsage = _(this.archive.resource_usage()), this.metrics.observeUsage(this.lastResourceUsage);
713
713
  } catch {}
714
714
  return this.lastResourceUsage;
715
715
  }
@@ -723,18 +723,18 @@ var mt = class {
723
723
  }
724
724
  renderPage(e, t = {}) {
725
725
  return this.closed ? Promise.reject(/* @__PURE__ */ Error("DOCX document session is closed")) : this.resourceFailure ? Promise.reject(this.resourceFailure) : (this.pageSize(e), this.enqueueRender(async () => {
726
- L(this.signal);
726
+ R(this.signal);
727
727
  let n = this.requireState(), r = this.factory.createCanvas(1, 1);
728
- return await we(this.factory, () => ae(n.source, r, e, {
728
+ return await Se(this.factory, () => re(n.source, r, e, {
729
729
  ...t,
730
730
  currentDate: this.defaultCurrentDateMs,
731
731
  defaultCurrentDateMs: this.defaultCurrentDateMs,
732
732
  layoutServices: n.services,
733
733
  fetchImage: this.fetchImage
734
- })), L(this.signal), r;
734
+ })), R(this.signal), r;
735
735
  }).catch((e) => {
736
- let t = f(e) ?? e;
737
- throw t instanceof p && (this.resourceFailure ??= t), this.metrics.fail(t), t;
736
+ let t = p(e) ?? e;
737
+ throw t instanceof v && (this.resourceFailure ??= t), this.metrics.fail(t), t;
738
738
  }));
739
739
  }
740
740
  async *pages(e = {}) {
@@ -752,7 +752,7 @@ var mt = class {
752
752
  };
753
753
  }
754
754
  } catch (e) {
755
- throw t = f(e) ?? e, t;
755
+ throw t = p(e) ?? e, t;
756
756
  } finally {
757
757
  try {
758
758
  await this.close();
@@ -773,7 +773,7 @@ var mt = class {
773
773
  try {
774
774
  this.closeArchive();
775
775
  } catch (e) {
776
- let t = f(e) ?? e;
776
+ let t = p(e) ?? e;
777
777
  throw this.metrics.fail(t), t;
778
778
  }
779
779
  this.metrics.checkpoint("document session closed", this.lastResourceUsage), this.metrics.succeed({ pages: this.pageCount });
@@ -783,33 +783,33 @@ var mt = class {
783
783
  return this.state;
784
784
  }
785
785
  };
786
- function ht(e) {
786
+ function mt(e) {
787
787
  let t = e instanceof Date ? e.getTime() : e ?? Date.now();
788
788
  if (!Number.isFinite(t)) throw RangeError("currentDate must resolve to finite epoch milliseconds");
789
789
  return t;
790
790
  }
791
- function gt(e) {
791
+ function ht(e) {
792
792
  return e instanceof Uint8Array ? e : new Uint8Array(e);
793
793
  }
794
- function L(e) {
794
+ function R(e) {
795
795
  if (!e?.aborted) return;
796
796
  let t = /* @__PURE__ */ Error("DOCX document session was aborted");
797
797
  throw t.name = "AbortError", t;
798
798
  }
799
799
  //#endregion
800
800
  //#region packages/xlsx/src/wasm/xlsx_parser.js
801
- var _t = /* @__PURE__ */ e({
802
- XlsxArchive: () => R,
801
+ var gt = /* @__PURE__ */ e({
802
+ XlsxArchive: () => z,
803
803
  default: () => kt,
804
- extract_image: () => vt,
804
+ extract_image: () => _t,
805
805
  initSync: () => Ot,
806
- parse_xlsx: () => yt,
806
+ parse_xlsx: () => vt,
807
807
  reinit: () => At,
808
- xlsx_to_markdown: () => bt
809
- }), R = class {
808
+ xlsx_to_markdown: () => yt
809
+ }), z = class {
810
810
  __destroy_into_raw() {
811
811
  let e = this.__wbg_ptr;
812
- return this.__wbg_ptr = 0, St.unregister(this), e;
812
+ return this.__wbg_ptr = 0, xt.unregister(this), e;
813
813
  }
814
814
  free() {
815
815
  let e = this.__destroy_into_raw();
@@ -817,11 +817,11 @@ var _t = /* @__PURE__ */ e({
817
817
  }
818
818
  acknowledge_sheet_cursor_terminal() {
819
819
  let e = Q.xlsxarchive_acknowledge_sheet_cursor_terminal(this.__wbg_ptr);
820
- if (e[1]) throw q(e[0]);
820
+ if (e[1]) throw J(e[0]);
821
821
  }
822
822
  assert_healthy() {
823
823
  let e = Q.xlsxarchive_assert_healthy(this.__wbg_ptr);
824
- if (e[1]) throw q(e[0]);
824
+ if (e[1]) throw J(e[0]);
825
825
  }
826
826
  cancel_sheet_cursor() {
827
827
  Q.xlsxarchive_cancel_sheet_cursor(this.__wbg_ptr);
@@ -830,36 +830,36 @@ var _t = /* @__PURE__ */ e({
830
830
  Q.xlsxarchive_close_sheet_cursor(this.__wbg_ptr);
831
831
  }
832
832
  extract_image(e) {
833
- let t = K(e, Q.__wbindgen_malloc, Q.__wbindgen_realloc), n = Z, r = Q.xlsxarchive_extract_image(this.__wbg_ptr, t, n);
834
- if (r[3]) throw q(r[2]);
835
- var i = z(r[0], r[1]).slice();
833
+ let t = q(e, Q.__wbindgen_malloc, Q.__wbindgen_realloc), n = Z, r = Q.xlsxarchive_extract_image(this.__wbg_ptr, t, n);
834
+ if (r[3]) throw J(r[2]);
835
+ var i = B(r[0], r[1]).slice();
836
836
  return Q.__wbindgen_free(r[0], r[1] * 1, 1), i;
837
837
  }
838
838
  constructor(e, t, n, r) {
839
- let i = G(e, Q.__wbindgen_malloc), a = Z, o = Q.xlsxarchive_new(i, a, !W(t), W(t) ? BigInt(0) : t, !W(n), W(n) ? BigInt(0) : n, !W(r), W(r) ? BigInt(0) : r);
840
- if (o[2]) throw q(o[1]);
841
- return this.__wbg_ptr = o[0] >>> 0, St.register(this, this.__wbg_ptr, this), this;
839
+ let i = K(e, Q.__wbindgen_malloc), a = Z, o = Q.xlsxarchive_new(i, a, !G(t), G(t) ? BigInt(0) : t, !G(n), G(n) ? BigInt(0) : n, !G(r), G(r) ? BigInt(0) : r);
840
+ if (o[2]) throw J(o[1]);
841
+ return this.__wbg_ptr = o[0] >>> 0, xt.register(this, this.__wbg_ptr, this), this;
842
842
  }
843
843
  open_sheet_cursor(e, t) {
844
- let n = K(t, Q.__wbindgen_malloc, Q.__wbindgen_realloc), r = Z, i = Q.xlsxarchive_open_sheet_cursor(this.__wbg_ptr, e, n, r);
845
- if (i[1]) throw q(i[0]);
844
+ let n = q(t, Q.__wbindgen_malloc, Q.__wbindgen_realloc), r = Z, i = Q.xlsxarchive_open_sheet_cursor(this.__wbg_ptr, e, n, r);
845
+ if (i[1]) throw J(i[0]);
846
846
  }
847
847
  parse() {
848
848
  let e = Q.xlsxarchive_parse(this.__wbg_ptr);
849
- if (e[3]) throw q(e[2]);
850
- var t = z(e[0], e[1]).slice();
849
+ if (e[3]) throw J(e[2]);
850
+ var t = B(e[0], e[1]).slice();
851
851
  return Q.__wbindgen_free(e[0], e[1] * 1, 1), t;
852
852
  }
853
853
  pull_sheet_cursor(e) {
854
854
  let t = Q.xlsxarchive_pull_sheet_cursor(this.__wbg_ptr, e);
855
- if (t[3]) throw q(t[2]);
856
- var n = z(t[0], t[1]).slice();
855
+ if (t[3]) throw J(t[2]);
856
+ var n = B(t[0], t[1]).slice();
857
857
  return Q.__wbindgen_free(t[0], t[1] * 1, 1), n;
858
858
  }
859
859
  resource_usage() {
860
860
  let e = Q.xlsxarchive_resource_usage(this.__wbg_ptr);
861
- if (e[3]) throw q(e[2]);
862
- var t = z(e[0], e[1]).slice();
861
+ if (e[3]) throw J(e[2]);
862
+ var t = B(e[0], e[1]).slice();
863
863
  return Q.__wbindgen_free(e[0], e[1] * 1, 1), t;
864
864
  }
865
865
  sheet_cursor_pull_finished() {
@@ -867,8 +867,8 @@ var _t = /* @__PURE__ */ e({
867
867
  }
868
868
  sheet_cursor_resource_usage() {
869
869
  let e = Q.xlsxarchive_sheet_cursor_resource_usage(this.__wbg_ptr);
870
- if (e[3]) throw q(e[2]);
871
- var t = z(e[0], e[1]).slice();
870
+ if (e[3]) throw J(e[2]);
871
+ var t = B(e[0], e[1]).slice();
872
872
  return Q.__wbindgen_free(e[0], e[1] * 1, 1), t;
873
873
  }
874
874
  to_markdown() {
@@ -876,49 +876,49 @@ var _t = /* @__PURE__ */ e({
876
876
  try {
877
877
  let i = Q.xlsxarchive_to_markdown(this.__wbg_ptr);
878
878
  var n = i[0], r = i[1];
879
- if (i[3]) throw n = 0, r = 0, q(i[2]);
880
- return e = n, t = r, V(n, r);
879
+ if (i[3]) throw n = 0, r = 0, J(i[2]);
880
+ return e = n, t = r, H(n, r);
881
881
  } finally {
882
882
  Q.__wbindgen_free(e, t, 1);
883
883
  }
884
884
  }
885
885
  };
886
- Symbol.dispose && (R.prototype[Symbol.dispose] = R.prototype.free);
887
- function vt(e, t, n, r) {
888
- let i = G(e, Q.__wbindgen_malloc), a = Z, o = K(t, Q.__wbindgen_malloc, Q.__wbindgen_realloc), s = Z, c = Q.extract_image(i, a, o, s, !W(n), W(n) ? BigInt(0) : n, !W(r), W(r) ? BigInt(0) : r);
889
- if (c[3]) throw q(c[2]);
890
- var l = z(c[0], c[1]).slice();
886
+ Symbol.dispose && (z.prototype[Symbol.dispose] = z.prototype.free);
887
+ function _t(e, t, n, r) {
888
+ let i = K(e, Q.__wbindgen_malloc), a = Z, o = q(t, Q.__wbindgen_malloc, Q.__wbindgen_realloc), s = Z, c = Q.extract_image(i, a, o, s, !G(n), G(n) ? BigInt(0) : n, !G(r), G(r) ? BigInt(0) : r);
889
+ if (c[3]) throw J(c[2]);
890
+ var l = B(c[0], c[1]).slice();
891
891
  return Q.__wbindgen_free(c[0], c[1] * 1, 1), l;
892
892
  }
893
- function yt(e, t, n) {
894
- let r = G(e, Q.__wbindgen_malloc), i = Z, a = Q.parse_xlsx(r, i, !W(t), W(t) ? BigInt(0) : t, !W(n), W(n) ? BigInt(0) : n);
895
- if (a[3]) throw q(a[2]);
896
- var o = z(a[0], a[1]).slice();
893
+ function vt(e, t, n) {
894
+ let r = K(e, Q.__wbindgen_malloc), i = Z, a = Q.parse_xlsx(r, i, !G(t), G(t) ? BigInt(0) : t, !G(n), G(n) ? BigInt(0) : n);
895
+ if (a[3]) throw J(a[2]);
896
+ var o = B(a[0], a[1]).slice();
897
897
  return Q.__wbindgen_free(a[0], a[1] * 1, 1), o;
898
898
  }
899
- function bt(e, t, n) {
899
+ function yt(e, t, n) {
900
900
  let r, i;
901
901
  try {
902
- let s = G(e, Q.__wbindgen_malloc), c = Z, l = Q.xlsx_to_markdown(s, c, !W(t), W(t) ? BigInt(0) : t, !W(n), W(n) ? BigInt(0) : n);
902
+ let s = K(e, Q.__wbindgen_malloc), c = Z, l = Q.xlsx_to_markdown(s, c, !G(t), G(t) ? BigInt(0) : t, !G(n), G(n) ? BigInt(0) : n);
903
903
  var a = l[0], o = l[1];
904
- if (l[3]) throw a = 0, o = 0, q(l[2]);
905
- return r = a, i = o, V(a, o);
904
+ if (l[3]) throw a = 0, o = 0, J(l[2]);
905
+ return r = a, i = o, H(a, o);
906
906
  } finally {
907
907
  Q.__wbindgen_free(r, i, 1);
908
908
  }
909
909
  }
910
- function xt() {
910
+ function bt() {
911
911
  return {
912
912
  __proto__: null,
913
913
  "./xlsx_parser_bg.js": {
914
914
  __proto__: null,
915
915
  __wbg___wbindgen_throw_6b64449b9b9ed33c: function(e, t) {
916
- throw Error(V(e, t));
916
+ throw Error(H(e, t));
917
917
  },
918
918
  __wbg_error_a6fa202b58aa1cd3: function(e, t) {
919
919
  let n, r;
920
920
  try {
921
- n = e, r = t, console.error(V(e, t));
921
+ n = e, r = t, console.error(H(e, t));
922
922
  } finally {
923
923
  Q.__wbindgen_free(n, r, 1);
924
924
  }
@@ -927,11 +927,11 @@ function xt() {
927
927
  return /* @__PURE__ */ Error();
928
928
  },
929
929
  __wbg_stack_3b0d974bbf31e44f: function(e, t) {
930
- let n = t.stack, r = K(n, Q.__wbindgen_malloc, Q.__wbindgen_realloc), i = Z;
931
- Ct().setInt32(e + 4, i, !0), Ct().setInt32(e + 0, r, !0);
930
+ let n = t.stack, r = q(n, Q.__wbindgen_malloc, Q.__wbindgen_realloc), i = Z;
931
+ St().setInt32(e + 4, i, !0), St().setInt32(e + 0, r, !0);
932
932
  },
933
933
  __wbindgen_cast_0000000000000001: function(e, t) {
934
- return V(e, t);
934
+ return H(e, t);
935
935
  },
936
936
  __wbindgen_init_externref_table: function() {
937
937
  let e = Q.__wbindgen_externrefs, t = e.grow(4);
@@ -940,37 +940,37 @@ function xt() {
940
940
  }
941
941
  };
942
942
  }
943
- var St = typeof FinalizationRegistry > "u" ? {
943
+ var xt = typeof FinalizationRegistry > "u" ? {
944
944
  register: () => {},
945
945
  unregister: () => {}
946
946
  } : new FinalizationRegistry((e) => Q.__wbg_xlsxarchive_free(e >>> 0, 1));
947
- function z(e, t) {
948
- return e >>>= 0, U().subarray(e / 1, e / 1 + t);
947
+ function B(e, t) {
948
+ return e >>>= 0, W().subarray(e / 1, e / 1 + t);
949
949
  }
950
- var B = null;
951
- function Ct() {
952
- return (B === null || B.buffer.detached === !0 || B.buffer.detached === void 0 && B.buffer !== Q.memory.buffer) && (B = new DataView(Q.memory.buffer)), B;
950
+ var V = null;
951
+ function St() {
952
+ return (V === null || V.buffer.detached === !0 || V.buffer.detached === void 0 && V.buffer !== Q.memory.buffer) && (V = new DataView(Q.memory.buffer)), V;
953
953
  }
954
- function V(e, t) {
954
+ function H(e, t) {
955
955
  return e >>>= 0, Tt(e, t);
956
956
  }
957
- var H = null;
958
- function U() {
959
- return (H === null || H.byteLength === 0) && (H = new Uint8Array(Q.memory.buffer)), H;
957
+ var U = null;
958
+ function W() {
959
+ return (U === null || U.byteLength === 0) && (U = new Uint8Array(Q.memory.buffer)), U;
960
960
  }
961
- function W(e) {
961
+ function G(e) {
962
962
  return e == null;
963
963
  }
964
- function G(e, t) {
964
+ function K(e, t) {
965
965
  let n = t(e.length * 1, 1) >>> 0;
966
- return U().set(e, n / 1), Z = e.length, n;
966
+ return W().set(e, n / 1), Z = e.length, n;
967
967
  }
968
- function K(e, t, n) {
968
+ function q(e, t, n) {
969
969
  if (n === void 0) {
970
970
  let n = X.encode(e), r = t(n.length, 1) >>> 0;
971
- return U().subarray(r, r + n.length).set(n), Z = n.length, r;
971
+ return W().subarray(r, r + n.length).set(n), Z = n.length, r;
972
972
  }
973
- let r = e.length, i = t(r, 1) >>> 0, a = U(), o = 0;
973
+ let r = e.length, i = t(r, 1) >>> 0, a = W(), o = 0;
974
974
  for (; o < r; o++) {
975
975
  let t = e.charCodeAt(o);
976
976
  if (t > 127) break;
@@ -978,26 +978,26 @@ function K(e, t, n) {
978
978
  }
979
979
  if (o !== r) {
980
980
  o !== 0 && (e = e.slice(o)), i = n(i, r, r = o + e.length * 3, 1) >>> 0;
981
- let t = U().subarray(i + o, i + r), a = X.encodeInto(e, t);
981
+ let t = W().subarray(i + o, i + r), a = X.encodeInto(e, t);
982
982
  o += a.written, i = n(i, r, o, 1) >>> 0;
983
983
  }
984
984
  return Z = o, i;
985
985
  }
986
- function q(e) {
986
+ function J(e) {
987
987
  let t = Q.__wbindgen_externrefs.get(e);
988
988
  return Q.__externref_table_dealloc(e), t;
989
989
  }
990
- var J = new TextDecoder("utf-8", {
990
+ var Y = new TextDecoder("utf-8", {
991
991
  ignoreBOM: !0,
992
992
  fatal: !0
993
993
  });
994
- J.decode();
995
- var wt = 2146435072, Y = 0;
994
+ Y.decode();
995
+ var Ct = 2146435072, wt = 0;
996
996
  function Tt(e, t) {
997
- return Y += t, Y >= wt && (J = new TextDecoder("utf-8", {
997
+ return wt += t, wt >= Ct && (Y = new TextDecoder("utf-8", {
998
998
  ignoreBOM: !0,
999
999
  fatal: !0
1000
- }), J.decode(), Y = t), J.decode(U().subarray(e, e + t));
1000
+ }), Y.decode(), wt = t), Y.decode(W().subarray(e, e + t));
1001
1001
  }
1002
1002
  var X = new TextEncoder();
1003
1003
  "encodeInto" in X || (X.encodeInto = function(e, t) {
@@ -1009,7 +1009,7 @@ var X = new TextEncoder();
1009
1009
  });
1010
1010
  var Z = 0, Q;
1011
1011
  function Et(e, t) {
1012
- return Q = e.exports, B = null, H = null, Q.__wbindgen_start(), Q;
1012
+ return Q = e.exports, V = null, U = null, Q.__wbindgen_start(), Q;
1013
1013
  }
1014
1014
  async function Dt(e, t) {
1015
1015
  if (typeof Response == "function" && e instanceof Response) {
@@ -1040,25 +1040,25 @@ async function Dt(e, t) {
1040
1040
  function Ot(e) {
1041
1041
  if (Q !== void 0) return Q;
1042
1042
  e !== void 0 && (Object.getPrototypeOf(e) === Object.prototype ? {module: e} = e : console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));
1043
- let t = xt();
1043
+ let t = bt();
1044
1044
  return e instanceof WebAssembly.Module || (e = new WebAssembly.Module(e)), Et(new WebAssembly.Instance(e, t), e);
1045
1045
  }
1046
1046
  async function kt(e) {
1047
1047
  if (Q !== void 0) return Q;
1048
1048
  e !== void 0 && (Object.getPrototypeOf(e) === Object.prototype ? {module_or_path: e} = e : console.warn("using deprecated parameters for the initialization function; pass a single object instead"));
1049
- let t = xt();
1049
+ let t = bt();
1050
1050
  (typeof e == "string" || typeof Request == "function" && e instanceof Request || typeof URL == "function" && e instanceof URL) && (e = fetch(e));
1051
1051
  let { instance: n, module: r } = await Dt(await e, t);
1052
1052
  return Et(n, r);
1053
1053
  }
1054
1054
  async function At(e) {
1055
- return Q = void 0, B = null, H = null, kt(e);
1055
+ return Q = void 0, V = null, U = null, kt(e);
1056
1056
  }
1057
1057
  //#endregion
1058
1058
  //#region packages/xlsx/src/internal/node-acquisition.ts
1059
1059
  var jt, Mt;
1060
1060
  function Nt(e) {
1061
- if (!Mt) jt = e, Mt = new Ce(_t, e);
1061
+ if (!Mt) jt = e, Mt = new xe(gt, e);
1062
1062
  else if (jt !== e) throw Error("XLSX runtime was already initialized with another WebAssembly.Module");
1063
1063
  return Mt;
1064
1064
  }
@@ -1076,17 +1076,17 @@ async function Pt(e, t, r = {}) {
1076
1076
  let s;
1077
1077
  try {
1078
1078
  It(r.signal);
1079
- let [n, c, l] = a(i.policy), u = R;
1079
+ let [n, c, l] = a(i.policy), u = z;
1080
1080
  s = await Nt(t).open(() => new u(e, n, c, l), {
1081
1081
  signal: r.signal,
1082
1082
  abortError: Lt,
1083
1083
  disposeOnAbort: (e) => e.free()
1084
1084
  }), It(r.signal);
1085
- let d = s.proxy, ee = JSON.parse(new TextDecoder().decode(d.parse())), f = Ft(d.resource_usage());
1086
- return o.observeUsage(f), o.checkpoint("workbook index ready"), {
1085
+ let d = s.proxy, f = JSON.parse(new TextDecoder().decode(d.parse())), p = Ft(d.resource_usage());
1086
+ return o.observeUsage(p), o.checkpoint("workbook index ready"), {
1087
1087
  archive: d,
1088
- workbookIndex: ee,
1089
- usage: f,
1088
+ workbookIndex: f,
1089
+ usage: p,
1090
1090
  metrics: o,
1091
1091
  closeArchive: () => s?.close((e) => e.free())
1092
1092
  };
@@ -1094,13 +1094,13 @@ async function Pt(e, t, r = {}) {
1094
1094
  try {
1095
1095
  s?.close((e) => e.free());
1096
1096
  } catch {}
1097
- let t = f(e) ?? e;
1097
+ let t = p(e) ?? e;
1098
1098
  throw o.fail(t), t;
1099
1099
  }
1100
1100
  }
1101
1101
  function Ft(e) {
1102
1102
  try {
1103
- return g(e);
1103
+ return _(e);
1104
1104
  } catch (e) {
1105
1105
  if (String(e).includes("worksheet cursor usage is unavailable")) return;
1106
1106
  throw e;
@@ -1115,7 +1115,7 @@ function Lt() {
1115
1115
  }
1116
1116
  //#endregion
1117
1117
  //#region packages/node/src/xlsx.ts
1118
- var Rt = y(() => Ie(import.meta.url, "xlsx_parser_bg.wasm", "@silurus/ooxml-xlsx/wasm-binary"));
1118
+ var Rt = Pe(() => Fe(import.meta.url, "xlsx_parser_bg.wasm", "@silurus/ooxml-xlsx/wasm-binary"));
1119
1119
  async function $(e, t = {}) {
1120
1120
  let n = await Pt(Kt(e), Rt(), t);
1121
1121
  return new zt(n.closeArchive, n.archive, n.workbookIndex, n.metrics, n.usage, t.signal);
@@ -1135,7 +1135,7 @@ var zt = class {
1135
1135
  rowBatches = 0;
1136
1136
  emittedRows = 0;
1137
1137
  constructor(e, t, n, r, i, a) {
1138
- this.closeArchive = e, this.archive = t, this.metrics = r, this.signal = a, this.workbookIndex = Wt(n), this.sheetNames = Object.freeze(this.workbookIndex.workbook.sheets.map((e) => e.name)), this.sheetCount = this.sheetNames.length, this.lastUsage = i, this.pull = new ge(() => this.archive), this.transport = new v((e, t) => this.pull.dispatchSafely(e, t), () => void 0), this.worksheetPullClient = new ve({
1138
+ this.closeArchive = e, this.archive = t, this.metrics = r, this.signal = a, this.workbookIndex = Wt(n), this.sheetNames = Object.freeze(this.workbookIndex.workbook.sheets.map((e) => e.name)), this.sheetCount = this.sheetNames.length, this.lastUsage = i, this.pull = new me(() => this.archive), this.transport = new b((e, t) => this.pull.dispatchSafely(e, t), () => void 0), this.worksheetPullClient = new ge({
1139
1139
  transport: this.transport,
1140
1140
  sharedStrings: n.sharedStrings,
1141
1141
  open: async (e, t, n) => {
@@ -1183,13 +1183,13 @@ var zt = class {
1183
1183
  }
1184
1184
  this.completedWorksheets += 1, this.metrics.checkpoint("worksheet stream complete", this.lastUsage);
1185
1185
  } catch (e) {
1186
- throw r = f(e) ?? e, this.metrics.fail(r), await this.close().catch(() => void 0), r;
1186
+ throw r = p(e) ?? e, this.metrics.fail(r), await this.close().catch(() => void 0), r;
1187
1187
  } finally {
1188
1188
  try {
1189
1189
  await this.cleanupOperation(n, r === void 0 ? "closed" : "request-error");
1190
1190
  } catch (e) {
1191
1191
  if (r === void 0) {
1192
- let t = f(e) ?? e;
1192
+ let t = p(e) ?? e;
1193
1193
  throw this.metrics.fail(t), await this.close().catch(() => void 0), t;
1194
1194
  }
1195
1195
  }
@@ -1204,12 +1204,12 @@ var zt = class {
1204
1204
  try {
1205
1205
  await this.worksheetPullClient.cancelAll(t);
1206
1206
  } catch (e) {
1207
- n = f(e) ?? e;
1207
+ n = p(e) ?? e;
1208
1208
  }
1209
1209
  try {
1210
1210
  await this.pull.reset();
1211
1211
  } catch (e) {
1212
- n ??= f(e) ?? e;
1212
+ n ??= p(e) ?? e;
1213
1213
  }
1214
1214
  if (this.active === e && (this.active = void 0), n !== void 0) throw n;
1215
1215
  })(), e.cleanupPromise;
@@ -1219,13 +1219,13 @@ var zt = class {
1219
1219
  if (this.active) try {
1220
1220
  await this.cleanupOperation(this.active, "closed");
1221
1221
  } catch (t) {
1222
- e = f(t) ?? t;
1222
+ e = p(t) ?? t;
1223
1223
  }
1224
1224
  this.transport.terminate();
1225
1225
  try {
1226
1226
  this.closeArchive();
1227
1227
  } catch (t) {
1228
- e ??= f(t) ?? t;
1228
+ e ??= p(t) ?? t;
1229
1229
  }
1230
1230
  if (e !== void 0) throw this.metrics.fail(e), e;
1231
1231
  this.metrics.checkpoint("workbook session closed", this.lastUsage), this.metrics.succeed({
@@ -1241,13 +1241,13 @@ var zt = class {
1241
1241
  }
1242
1242
  };
1243
1243
  async function Bt(e, t = {}) {
1244
- return _(() => $(e, t), async (e) => structuredClone(e.workbookIndex));
1244
+ return y(() => $(e, t), async (e) => structuredClone(e.workbookIndex));
1245
1245
  }
1246
1246
  async function Vt(e, t, n = {}) {
1247
- return _(() => $(e, n), async (e) => (await Ut(e, t)).worksheet);
1247
+ return y(() => $(e, n), async (e) => (await Ut(e, t)).worksheet);
1248
1248
  }
1249
1249
  async function Ht(e, t = {}) {
1250
- return _(() => $(e, t), async (e) => {
1250
+ return y(() => $(e, t), async (e) => {
1251
1251
  let t = [], n = {
1252
1252
  rows: 0,
1253
1253
  cells: 0,
@@ -1255,8 +1255,8 @@ async function Ht(e, t = {}) {
1255
1255
  jsonBytes: 0
1256
1256
  };
1257
1257
  for (let r = 0; r < e.sheetCount; r += 1) {
1258
- let i = await Ut(e, r), a = de(n, i.usage);
1259
- _e(a, "materialize-workbook", void 0, i.resourceUsage), n = a, t.push(i.worksheet);
1258
+ let i = await Ut(e, r), a = le(n, i.usage);
1259
+ he(a, "materialize-workbook", void 0, i.resourceUsage), n = a, t.push(i.worksheet);
1260
1260
  }
1261
1261
  return {
1262
1262
  workbookIndex: structuredClone(e.workbookIndex),
@@ -1271,16 +1271,16 @@ async function Ut(e, t) {
1271
1271
  ownedUtf8Bytes: 0
1272
1272
  }, i, a, o;
1273
1273
  for await (let s of e.worksheetRows(t)) if (o = s.usage ?? o, s.kind === "rows") {
1274
- let e = he(r, pe(s.rows));
1275
- me(e, "materialize-worksheet", void 0, o), n.push(...s.rows), r = e;
1274
+ let e = pe(r, de(s.rows));
1275
+ fe(e, "materialize-worksheet", void 0, o), n.push(...s.rows), r = e;
1276
1276
  } else {
1277
1277
  a = s.worksheet, a.rows = a.parseError ? [] : n;
1278
- let e = ye(a, a.parseError ? {
1278
+ let e = _e(a, a.parseError ? {
1279
1279
  rows: 0,
1280
1280
  cells: 0,
1281
1281
  ownedUtf8Bytes: 0
1282
1282
  } : r);
1283
- me(e, "materialize-worksheet", void 0, o), fe(e.jsonBytes, "materialize-worksheet", void 0, o), r = e, i = e;
1283
+ fe(e, "materialize-worksheet", void 0, o), ue(e.jsonBytes, "materialize-worksheet", void 0, o), r = e, i = e;
1284
1284
  }
1285
1285
  if (!a || !i) throw Error(`XLSX worksheet ${t} did not produce a terminal model`);
1286
1286
  return {
@@ -1299,7 +1299,7 @@ function Wt(e, t = /* @__PURE__ */ new WeakSet()) {
1299
1299
  }
1300
1300
  function Gt(e) {
1301
1301
  try {
1302
- return g(e);
1302
+ return _(e);
1303
1303
  } catch (e) {
1304
1304
  if (String(e).includes("worksheet cursor usage is unavailable")) return;
1305
1305
  throw e;
@@ -1309,4 +1309,4 @@ function Kt(e) {
1309
1309
  return e instanceof Uint8Array ? e : new Uint8Array(e);
1310
1310
  }
1311
1311
  //#endregion
1312
- export { s as OoxmlDecodedImageLimitError, p as OoxmlResourceLimitError, De as installImageBitmapShim, Te as installOffscreenCanvasShim, c as isOoxmlDecodedImageLimitError, pt as materializeDocxDocument, Ve as materializePptxPresentation, Ht as materializeXlsxWorkbook, Bt as materializeXlsxWorkbookIndex, Vt as materializeXlsxWorksheet, ft as openDocxDocument, Re as openPptxPresentation, $ as openXlsxWorkbook, Ee as renderSlideNode };
1312
+ export { s as OoxmlDecodedImageLimitError, v as OoxmlResourceLimitError, Te as installImageBitmapShim, Ce as installOffscreenCanvasShim, c as isOoxmlDecodedImageLimitError, ft as materializeDocxDocument, Be as materializePptxPresentation, Ht as materializeXlsxWorkbook, Bt as materializeXlsxWorkbookIndex, Vt as materializeXlsxWorksheet, dt as openDocxDocument, Le as openPptxPresentation, $ as openXlsxWorkbook, we as renderSlideNode };