docling.rs-wasm 0.56.0 → 1.0.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/bundler/docling_wasm_bg.js +51 -51
- package/bundler/docling_wasm_bg.wasm +0 -0
- package/bundler/docling_wasm_bg.wasm.d.ts +2 -2
- package/package.json +1 -1
- package/web/docling_wasm.d.ts +2 -2
- package/web/docling_wasm.js +56 -52
- package/web/docling_wasm_bg.wasm +0 -0
- package/web/docling_wasm_bg.wasm.d.ts +2 -2
|
@@ -378,50 +378,50 @@ export function version() {
|
|
|
378
378
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
export function
|
|
381
|
+
export function __wbg_Error_408e67f47ca7b58b(arg0, arg1) {
|
|
382
382
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
383
383
|
return ret;
|
|
384
384
|
}
|
|
385
|
-
export function
|
|
385
|
+
export function __wbg___wbindgen_debug_string_a57024b9c6e4a48b(arg0, arg1) {
|
|
386
386
|
const ret = debugString(arg1);
|
|
387
387
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
388
388
|
const len1 = WASM_VECTOR_LEN;
|
|
389
389
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
390
390
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
391
391
|
}
|
|
392
|
-
export function
|
|
392
|
+
export function __wbg___wbindgen_is_function_5e4570eb24ffa122(arg0) {
|
|
393
393
|
const ret = typeof(arg0) === 'function';
|
|
394
394
|
return ret;
|
|
395
395
|
}
|
|
396
|
-
export function
|
|
396
|
+
export function __wbg___wbindgen_is_undefined_6cff064c44e0d823(arg0) {
|
|
397
397
|
const ret = arg0 === undefined;
|
|
398
398
|
return ret;
|
|
399
399
|
}
|
|
400
|
-
export function
|
|
400
|
+
export function __wbg___wbindgen_number_get_136b9679cab35cfb(arg0, arg1) {
|
|
401
401
|
const obj = arg1;
|
|
402
402
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
403
403
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
404
404
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
405
405
|
}
|
|
406
|
-
export function
|
|
406
|
+
export function __wbg___wbindgen_throw_bb96b2010945f0bc(arg0, arg1) {
|
|
407
407
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
408
408
|
}
|
|
409
|
-
export function
|
|
409
|
+
export function __wbg__wbg_cb_unref_be22cc64ae6946a0(arg0) {
|
|
410
410
|
arg0._wbg_cb_unref();
|
|
411
411
|
}
|
|
412
|
-
export function
|
|
412
|
+
export function __wbg_bbox_48db7dcc481e3857() { return handleError(function (arg0, arg1, arg2) {
|
|
413
413
|
const ret = arg0.bbox(arg1, arg2 >>> 0);
|
|
414
414
|
return ret;
|
|
415
415
|
}, arguments); }
|
|
416
|
-
export function
|
|
416
|
+
export function __wbg_call_35dba3c747ad7521() { return handleError(function (arg0, arg1, arg2) {
|
|
417
417
|
const ret = arg0.call(arg1, arg2);
|
|
418
418
|
return ret;
|
|
419
419
|
}, arguments); }
|
|
420
|
-
export function
|
|
420
|
+
export function __wbg_encode_e8c6c48fb20afc1e() { return handleError(function (arg0, arg1) {
|
|
421
421
|
const ret = arg0.encode(arg1);
|
|
422
422
|
return ret;
|
|
423
423
|
}, arguments); }
|
|
424
|
-
export function
|
|
424
|
+
export function __wbg_error_757e9472f8410341(arg0, arg1) {
|
|
425
425
|
let deferred0_0;
|
|
426
426
|
let deferred0_1;
|
|
427
427
|
try {
|
|
@@ -432,18 +432,18 @@ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
|
432
432
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
export function
|
|
435
|
+
export function __wbg_getRandomValues_436a51d0629d84e1() { return handleError(function (arg0, arg1) {
|
|
436
436
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
437
437
|
}, arguments); }
|
|
438
|
-
export function
|
|
439
|
-
const ret = arg0[arg1 >>> 0];
|
|
440
|
-
return ret;
|
|
441
|
-
}
|
|
442
|
-
export function __wbg_get_78f252d074a84d0b() { return handleError(function (arg0, arg1) {
|
|
438
|
+
export function __wbg_get_971a0c45d172643f() { return handleError(function (arg0, arg1) {
|
|
443
439
|
const ret = Reflect.get(arg0, arg1);
|
|
444
440
|
return ret;
|
|
445
441
|
}, arguments); }
|
|
446
|
-
export function
|
|
442
|
+
export function __wbg_get_c0c8f8d7da0c03dd(arg0, arg1) {
|
|
443
|
+
const ret = arg0[arg1 >>> 0];
|
|
444
|
+
return ret;
|
|
445
|
+
}
|
|
446
|
+
export function __wbg_instanceof_Float32Array_d1723b46884013f0(arg0) {
|
|
447
447
|
let result;
|
|
448
448
|
try {
|
|
449
449
|
result = arg0 instanceof Float32Array;
|
|
@@ -453,15 +453,15 @@ export function __wbg_instanceof_Float32Array_0734a24e43081e98(arg0) {
|
|
|
453
453
|
const ret = result;
|
|
454
454
|
return ret;
|
|
455
455
|
}
|
|
456
|
-
export function
|
|
456
|
+
export function __wbg_isArray_6339f732981044bf(arg0) {
|
|
457
457
|
const ret = Array.isArray(arg0);
|
|
458
458
|
return ret;
|
|
459
459
|
}
|
|
460
|
-
export function
|
|
460
|
+
export function __wbg_length_1009454859bb3e03(arg0) {
|
|
461
461
|
const ret = arg0.length;
|
|
462
462
|
return ret;
|
|
463
463
|
}
|
|
464
|
-
export function
|
|
464
|
+
export function __wbg_length_ecfa2c63d3d0d82c(arg0) {
|
|
465
465
|
const ret = arg0.length;
|
|
466
466
|
return ret;
|
|
467
467
|
}
|
|
@@ -469,18 +469,18 @@ export function __wbg_new_227d7c05414eb861() {
|
|
|
469
469
|
const ret = new Error();
|
|
470
470
|
return ret;
|
|
471
471
|
}
|
|
472
|
-
export function
|
|
472
|
+
export function __wbg_new_from_slice_709ab7061ebcc5da(arg0, arg1) {
|
|
473
473
|
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
474
474
|
return ret;
|
|
475
475
|
}
|
|
476
|
-
export function
|
|
476
|
+
export function __wbg_new_typed_cceaf62d8d95e9f2(arg0, arg1) {
|
|
477
477
|
try {
|
|
478
478
|
var state0 = {a: arg0, b: arg1};
|
|
479
479
|
var cb0 = (arg0, arg1) => {
|
|
480
480
|
const a = state0.a;
|
|
481
481
|
state0.a = 0;
|
|
482
482
|
try {
|
|
483
|
-
return
|
|
483
|
+
return wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
484
484
|
} finally {
|
|
485
485
|
state0.a = a;
|
|
486
486
|
}
|
|
@@ -491,26 +491,26 @@ export function __wbg_new_typed_1824d93f294193e5(arg0, arg1) {
|
|
|
491
491
|
state0.a = 0;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
export function
|
|
494
|
+
export function __wbg_prototypesetcall_10722f4fde830f07(arg0, arg1, arg2) {
|
|
495
495
|
Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
|
|
496
496
|
}
|
|
497
|
-
export function
|
|
497
|
+
export function __wbg_queueMicrotask_ac694eae12e92dfb(arg0) {
|
|
498
|
+
queueMicrotask(arg0);
|
|
499
|
+
}
|
|
500
|
+
export function __wbg_queueMicrotask_be5fe34a8f4cad4d(arg0) {
|
|
498
501
|
const ret = arg0.queueMicrotask;
|
|
499
502
|
return ret;
|
|
500
503
|
}
|
|
501
|
-
export function
|
|
502
|
-
queueMicrotask(arg0);
|
|
503
|
-
}
|
|
504
|
-
export function __wbg_resolve_2191a4dfe481c25b(arg0) {
|
|
504
|
+
export function __wbg_resolve_020f95d838c6ef25(arg0) {
|
|
505
505
|
const ret = Promise.resolve(arg0);
|
|
506
506
|
return ret;
|
|
507
507
|
}
|
|
508
|
-
export function
|
|
509
|
-
const ret = arg0.run(arg1);
|
|
508
|
+
export function __wbg_run_866a13d9ddc5dc4f() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
509
|
+
const ret = arg0.run(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
|
|
510
510
|
return ret;
|
|
511
511
|
}, arguments); }
|
|
512
|
-
export function
|
|
513
|
-
const ret = arg0.run(arg1
|
|
512
|
+
export function __wbg_run_b66535fc44b91f4c() { return handleError(function (arg0, arg1) {
|
|
513
|
+
const ret = arg0.run(arg1);
|
|
514
514
|
return ret;
|
|
515
515
|
}, arguments); }
|
|
516
516
|
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
@@ -520,37 +520,37 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
|
520
520
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
521
521
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
522
522
|
}
|
|
523
|
-
export function
|
|
524
|
-
const ret = typeof
|
|
523
|
+
export function __wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76() {
|
|
524
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
525
525
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
526
526
|
}
|
|
527
|
-
export function
|
|
528
|
-
const ret = typeof
|
|
527
|
+
export function __wbg_static_accessor_GLOBAL_c7aea38d4de089bc() {
|
|
528
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
529
529
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
530
530
|
}
|
|
531
|
-
export function
|
|
531
|
+
export function __wbg_static_accessor_SELF_42d4fae05e59267a() {
|
|
532
532
|
const ret = typeof self === 'undefined' ? null : self;
|
|
533
533
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
534
534
|
}
|
|
535
|
-
export function
|
|
535
|
+
export function __wbg_static_accessor_WINDOW_e0db14a0eba6a812() {
|
|
536
536
|
const ret = typeof window === 'undefined' ? null : window;
|
|
537
537
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
538
538
|
}
|
|
539
|
-
export function
|
|
539
|
+
export function __wbg_step_2ef0b6fc0fe82b8a() { return handleError(function (arg0, arg1) {
|
|
540
540
|
const ret = arg0.step(arg1);
|
|
541
541
|
return ret;
|
|
542
542
|
}, arguments); }
|
|
543
|
-
export function
|
|
544
|
-
const ret = arg0.then(arg1
|
|
543
|
+
export function __wbg_then_7026b513a94278a8(arg0, arg1) {
|
|
544
|
+
const ret = arg0.then(arg1);
|
|
545
545
|
return ret;
|
|
546
546
|
}
|
|
547
|
-
export function
|
|
548
|
-
const ret = arg0.then(arg1);
|
|
547
|
+
export function __wbg_then_72819b8d4e081fb5(arg0, arg1, arg2) {
|
|
548
|
+
const ret = arg0.then(arg1, arg2);
|
|
549
549
|
return ret;
|
|
550
550
|
}
|
|
551
551
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
552
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
553
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
552
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 78, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
553
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___wasm_bindgen_99990be5c2a92d37___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_99990be5c2a92d37___JsError___true_);
|
|
554
554
|
return ret;
|
|
555
555
|
}
|
|
556
556
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
@@ -567,15 +567,15 @@ export function __wbindgen_init_externref_table() {
|
|
|
567
567
|
table.set(offset + 2, true);
|
|
568
568
|
table.set(offset + 3, false);
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
const ret = wasm.
|
|
570
|
+
function wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___wasm_bindgen_99990be5c2a92d37___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_99990be5c2a92d37___JsError___true_(arg0, arg1, arg2) {
|
|
571
|
+
const ret = wasm.wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___wasm_bindgen_99990be5c2a92d37___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_99990be5c2a92d37___JsError___true_(arg0, arg1, arg2);
|
|
572
572
|
if (ret[1]) {
|
|
573
573
|
throw takeFromExternrefTable0(ret[0]);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
-
function
|
|
578
|
-
wasm.
|
|
577
|
+
function wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
578
|
+
wasm.wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
const DigitalConverterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
Binary file
|
|
@@ -20,8 +20,8 @@ export const scannedconverter_add_page: (a: number, b: number, c: number, d: num
|
|
|
20
20
|
export const scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
21
21
|
export const scannedconverter_new: (a: number, b: number) => number;
|
|
22
22
|
export const scannedconverter_page_count: (a: number) => number;
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
23
|
+
export const wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___wasm_bindgen_99990be5c2a92d37___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_99990be5c2a92d37___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
24
|
+
export const wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
25
25
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
26
26
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
27
27
|
export const __wbindgen_exn_store: (a: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docling.rs-wasm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "In-browser document conversion: DOCX, HTML, XLSX, PPTX, EPUB, Markdown, … and the text layer of PDFs → Markdown / docling JSON / DocLang, fully client-side (docling.rs compiled to WebAssembly)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/web/docling_wasm.d.ts
CHANGED
|
@@ -154,8 +154,8 @@ export interface InitOutput {
|
|
|
154
154
|
readonly scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
155
155
|
readonly scannedconverter_new: (a: number, b: number) => number;
|
|
156
156
|
readonly scannedconverter_page_count: (a: number) => number;
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
157
|
+
readonly wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___wasm_bindgen_99990be5c2a92d37___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_99990be5c2a92d37___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
158
|
+
readonly wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
159
159
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
160
160
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
161
161
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/web/docling_wasm.js
CHANGED
|
@@ -383,50 +383,50 @@ export function version() {
|
|
|
383
383
|
function __wbg_get_imports() {
|
|
384
384
|
const import0 = {
|
|
385
385
|
__proto__: null,
|
|
386
|
-
|
|
386
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
387
387
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
388
388
|
return ret;
|
|
389
389
|
},
|
|
390
|
-
|
|
390
|
+
__wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
|
|
391
391
|
const ret = debugString(arg1);
|
|
392
392
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
393
393
|
const len1 = WASM_VECTOR_LEN;
|
|
394
394
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
395
395
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
396
396
|
},
|
|
397
|
-
|
|
397
|
+
__wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
|
|
398
398
|
const ret = typeof(arg0) === 'function';
|
|
399
399
|
return ret;
|
|
400
400
|
},
|
|
401
|
-
|
|
401
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
402
402
|
const ret = arg0 === undefined;
|
|
403
403
|
return ret;
|
|
404
404
|
},
|
|
405
|
-
|
|
405
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
406
406
|
const obj = arg1;
|
|
407
407
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
408
408
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
409
409
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
410
410
|
},
|
|
411
|
-
|
|
411
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
412
412
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
413
413
|
},
|
|
414
|
-
|
|
414
|
+
__wbg__wbg_cb_unref_be22cc64ae6946a0: function(arg0) {
|
|
415
415
|
arg0._wbg_cb_unref();
|
|
416
416
|
},
|
|
417
|
-
|
|
417
|
+
__wbg_bbox_48db7dcc481e3857: function() { return handleError(function (arg0, arg1, arg2) {
|
|
418
418
|
const ret = arg0.bbox(arg1, arg2 >>> 0);
|
|
419
419
|
return ret;
|
|
420
420
|
}, arguments); },
|
|
421
|
-
|
|
421
|
+
__wbg_call_35dba3c747ad7521: function() { return handleError(function (arg0, arg1, arg2) {
|
|
422
422
|
const ret = arg0.call(arg1, arg2);
|
|
423
423
|
return ret;
|
|
424
424
|
}, arguments); },
|
|
425
|
-
|
|
425
|
+
__wbg_encode_e8c6c48fb20afc1e: function() { return handleError(function (arg0, arg1) {
|
|
426
426
|
const ret = arg0.encode(arg1);
|
|
427
427
|
return ret;
|
|
428
428
|
}, arguments); },
|
|
429
|
-
|
|
429
|
+
__wbg_error_757e9472f8410341: function(arg0, arg1) {
|
|
430
430
|
let deferred0_0;
|
|
431
431
|
let deferred0_1;
|
|
432
432
|
try {
|
|
@@ -437,18 +437,18 @@ function __wbg_get_imports() {
|
|
|
437
437
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
438
438
|
}
|
|
439
439
|
},
|
|
440
|
-
|
|
440
|
+
__wbg_getRandomValues_436a51d0629d84e1: function() { return handleError(function (arg0, arg1) {
|
|
441
441
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
442
442
|
}, arguments); },
|
|
443
|
-
|
|
444
|
-
const ret = arg0[arg1 >>> 0];
|
|
445
|
-
return ret;
|
|
446
|
-
},
|
|
447
|
-
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
443
|
+
__wbg_get_971a0c45d172643f: function() { return handleError(function (arg0, arg1) {
|
|
448
444
|
const ret = Reflect.get(arg0, arg1);
|
|
449
445
|
return ret;
|
|
450
446
|
}, arguments); },
|
|
451
|
-
|
|
447
|
+
__wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
|
|
448
|
+
const ret = arg0[arg1 >>> 0];
|
|
449
|
+
return ret;
|
|
450
|
+
},
|
|
451
|
+
__wbg_instanceof_Float32Array_d1723b46884013f0: function(arg0) {
|
|
452
452
|
let result;
|
|
453
453
|
try {
|
|
454
454
|
result = arg0 instanceof Float32Array;
|
|
@@ -458,15 +458,15 @@ function __wbg_get_imports() {
|
|
|
458
458
|
const ret = result;
|
|
459
459
|
return ret;
|
|
460
460
|
},
|
|
461
|
-
|
|
461
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
462
462
|
const ret = Array.isArray(arg0);
|
|
463
463
|
return ret;
|
|
464
464
|
},
|
|
465
|
-
|
|
465
|
+
__wbg_length_1009454859bb3e03: function(arg0) {
|
|
466
466
|
const ret = arg0.length;
|
|
467
467
|
return ret;
|
|
468
468
|
},
|
|
469
|
-
|
|
469
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
470
470
|
const ret = arg0.length;
|
|
471
471
|
return ret;
|
|
472
472
|
},
|
|
@@ -474,18 +474,18 @@ function __wbg_get_imports() {
|
|
|
474
474
|
const ret = new Error();
|
|
475
475
|
return ret;
|
|
476
476
|
},
|
|
477
|
-
|
|
477
|
+
__wbg_new_from_slice_709ab7061ebcc5da: function(arg0, arg1) {
|
|
478
478
|
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
479
479
|
return ret;
|
|
480
480
|
},
|
|
481
|
-
|
|
481
|
+
__wbg_new_typed_cceaf62d8d95e9f2: function(arg0, arg1) {
|
|
482
482
|
try {
|
|
483
483
|
var state0 = {a: arg0, b: arg1};
|
|
484
484
|
var cb0 = (arg0, arg1) => {
|
|
485
485
|
const a = state0.a;
|
|
486
486
|
state0.a = 0;
|
|
487
487
|
try {
|
|
488
|
-
return
|
|
488
|
+
return wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
489
489
|
} finally {
|
|
490
490
|
state0.a = a;
|
|
491
491
|
}
|
|
@@ -496,26 +496,26 @@ function __wbg_get_imports() {
|
|
|
496
496
|
state0.a = 0;
|
|
497
497
|
}
|
|
498
498
|
},
|
|
499
|
-
|
|
499
|
+
__wbg_prototypesetcall_10722f4fde830f07: function(arg0, arg1, arg2) {
|
|
500
500
|
Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
|
|
501
501
|
},
|
|
502
|
-
|
|
502
|
+
__wbg_queueMicrotask_ac694eae12e92dfb: function(arg0) {
|
|
503
|
+
queueMicrotask(arg0);
|
|
504
|
+
},
|
|
505
|
+
__wbg_queueMicrotask_be5fe34a8f4cad4d: function(arg0) {
|
|
503
506
|
const ret = arg0.queueMicrotask;
|
|
504
507
|
return ret;
|
|
505
508
|
},
|
|
506
|
-
|
|
507
|
-
queueMicrotask(arg0);
|
|
508
|
-
},
|
|
509
|
-
__wbg_resolve_2191a4dfe481c25b: function(arg0) {
|
|
509
|
+
__wbg_resolve_020f95d838c6ef25: function(arg0) {
|
|
510
510
|
const ret = Promise.resolve(arg0);
|
|
511
511
|
return ret;
|
|
512
512
|
},
|
|
513
|
-
|
|
514
|
-
const ret = arg0.run(arg1);
|
|
513
|
+
__wbg_run_866a13d9ddc5dc4f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
514
|
+
const ret = arg0.run(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
|
|
515
515
|
return ret;
|
|
516
516
|
}, arguments); },
|
|
517
|
-
|
|
518
|
-
const ret = arg0.run(arg1
|
|
517
|
+
__wbg_run_b66535fc44b91f4c: function() { return handleError(function (arg0, arg1) {
|
|
518
|
+
const ret = arg0.run(arg1);
|
|
519
519
|
return ret;
|
|
520
520
|
}, arguments); },
|
|
521
521
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
@@ -525,37 +525,37 @@ function __wbg_get_imports() {
|
|
|
525
525
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
526
526
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
527
527
|
},
|
|
528
|
-
|
|
529
|
-
const ret = typeof
|
|
528
|
+
__wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76: function() {
|
|
529
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
530
530
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
531
531
|
},
|
|
532
|
-
|
|
533
|
-
const ret = typeof
|
|
532
|
+
__wbg_static_accessor_GLOBAL_c7aea38d4de089bc: function() {
|
|
533
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
534
534
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
535
535
|
},
|
|
536
|
-
|
|
536
|
+
__wbg_static_accessor_SELF_42d4fae05e59267a: function() {
|
|
537
537
|
const ret = typeof self === 'undefined' ? null : self;
|
|
538
538
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
539
539
|
},
|
|
540
|
-
|
|
540
|
+
__wbg_static_accessor_WINDOW_e0db14a0eba6a812: function() {
|
|
541
541
|
const ret = typeof window === 'undefined' ? null : window;
|
|
542
542
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
543
543
|
},
|
|
544
|
-
|
|
544
|
+
__wbg_step_2ef0b6fc0fe82b8a: function() { return handleError(function (arg0, arg1) {
|
|
545
545
|
const ret = arg0.step(arg1);
|
|
546
546
|
return ret;
|
|
547
547
|
}, arguments); },
|
|
548
|
-
|
|
549
|
-
const ret = arg0.then(arg1
|
|
548
|
+
__wbg_then_7026b513a94278a8: function(arg0, arg1) {
|
|
549
|
+
const ret = arg0.then(arg1);
|
|
550
550
|
return ret;
|
|
551
551
|
},
|
|
552
|
-
|
|
553
|
-
const ret = arg0.then(arg1);
|
|
552
|
+
__wbg_then_72819b8d4e081fb5: function(arg0, arg1, arg2) {
|
|
553
|
+
const ret = arg0.then(arg1, arg2);
|
|
554
554
|
return ret;
|
|
555
555
|
},
|
|
556
556
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
557
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
558
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
557
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 78, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
558
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___wasm_bindgen_99990be5c2a92d37___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_99990be5c2a92d37___JsError___true_);
|
|
559
559
|
return ret;
|
|
560
560
|
},
|
|
561
561
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
@@ -579,15 +579,15 @@ function __wbg_get_imports() {
|
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
-
function
|
|
583
|
-
const ret = wasm.
|
|
582
|
+
function wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___wasm_bindgen_99990be5c2a92d37___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_99990be5c2a92d37___JsError___true_(arg0, arg1, arg2) {
|
|
583
|
+
const ret = wasm.wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___wasm_bindgen_99990be5c2a92d37___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_99990be5c2a92d37___JsError___true_(arg0, arg1, arg2);
|
|
584
584
|
if (ret[1]) {
|
|
585
585
|
throw takeFromExternrefTable0(ret[0]);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
-
function
|
|
590
|
-
wasm.
|
|
589
|
+
function wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
590
|
+
wasm.wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
const DigitalConverterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -844,11 +844,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
844
844
|
|
|
845
845
|
async function __wbg_load(module, imports) {
|
|
846
846
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
847
|
+
if (!module.ok) {
|
|
848
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
849
|
+
}
|
|
850
|
+
|
|
847
851
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
848
852
|
try {
|
|
849
853
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
850
854
|
} catch (e) {
|
|
851
|
-
const validResponse =
|
|
855
|
+
const validResponse = expectedResponseType(module.type);
|
|
852
856
|
|
|
853
857
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
854
858
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
package/web/docling_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -20,8 +20,8 @@ export const scannedconverter_add_page: (a: number, b: number, c: number, d: num
|
|
|
20
20
|
export const scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
21
21
|
export const scannedconverter_new: (a: number, b: number) => number;
|
|
22
22
|
export const scannedconverter_page_count: (a: number) => number;
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
23
|
+
export const wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___wasm_bindgen_99990be5c2a92d37___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_99990be5c2a92d37___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
24
|
+
export const wasm_bindgen_99990be5c2a92d37___convert__closures_____invoke___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined___js_sys_96c46c9156b56c9c___Function_fn_wasm_bindgen_99990be5c2a92d37___JsValue_____wasm_bindgen_99990be5c2a92d37___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
25
25
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
26
26
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
27
27
|
export const __wbindgen_exn_store: (a: number) => void;
|