@next/swc-wasm-web 14.2.0-canary.9 → 14.2.0
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/package.json +1 -1
- package/wasm.d.ts +2 -2
- package/wasm.js +98 -98
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -64,10 +64,10 @@ export interface InitOutput {
|
|
|
64
64
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
65
65
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
66
66
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
67
|
-
readonly
|
|
67
|
+
readonly _dyn_core_6b630c532df341d7___ops__function__FnMut_______Output______as_wasm_bindgen_2928d838ea01524e___closure__WasmClosure___describe__invoke___wasm_bindgen_2928d838ea01524e___JsValue_____: (a: number, b: number, c: number) => void;
|
|
68
68
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
69
69
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
70
|
-
readonly
|
|
70
|
+
readonly wasm_bindgen_2928d838ea01524e___convert__closures__invoke2_mut___wasm_bindgen_2928d838ea01524e___JsValue__wasm_bindgen_2928d838ea01524e___JsValue_____: (a: number, b: number, c: number, d: number) => void;
|
|
71
71
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
72
72
|
}
|
|
73
73
|
|
package/wasm.js
CHANGED
|
@@ -4,10 +4,19 @@ const heap = new Array(128).fill(undefined);
|
|
|
4
4
|
|
|
5
5
|
heap.push(undefined, null, true, false);
|
|
6
6
|
|
|
7
|
-
function getObject(idx) { return heap[idx]; }
|
|
8
|
-
|
|
9
7
|
let heap_next = heap.length;
|
|
10
8
|
|
|
9
|
+
function addHeapObject(obj) {
|
|
10
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
11
|
+
const idx = heap_next;
|
|
12
|
+
heap_next = heap[idx];
|
|
13
|
+
|
|
14
|
+
heap[idx] = obj;
|
|
15
|
+
return idx;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function getObject(idx) { return heap[idx]; }
|
|
19
|
+
|
|
11
20
|
function dropObject(idx) {
|
|
12
21
|
if (idx < 132) return;
|
|
13
22
|
heap[idx] = heap_next;
|
|
@@ -20,15 +29,6 @@ function takeObject(idx) {
|
|
|
20
29
|
return ret;
|
|
21
30
|
}
|
|
22
31
|
|
|
23
|
-
function addHeapObject(obj) {
|
|
24
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
25
|
-
const idx = heap_next;
|
|
26
|
-
heap_next = heap[idx];
|
|
27
|
-
|
|
28
|
-
heap[idx] = obj;
|
|
29
|
-
return idx;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
32
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
33
33
|
|
|
34
34
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -47,28 +47,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
47
47
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
function isLikeNone(x) {
|
|
51
|
-
return x === undefined || x === null;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
let cachedFloat64Memory0 = null;
|
|
55
|
-
|
|
56
|
-
function getFloat64Memory0() {
|
|
57
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
58
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
59
|
-
}
|
|
60
|
-
return cachedFloat64Memory0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
let cachedInt32Memory0 = null;
|
|
64
|
-
|
|
65
|
-
function getInt32Memory0() {
|
|
66
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
67
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
68
|
-
}
|
|
69
|
-
return cachedInt32Memory0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
50
|
let WASM_VECTOR_LEN = 0;
|
|
73
51
|
|
|
74
52
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -125,6 +103,28 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
125
103
|
return ptr;
|
|
126
104
|
}
|
|
127
105
|
|
|
106
|
+
function isLikeNone(x) {
|
|
107
|
+
return x === undefined || x === null;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
let cachedInt32Memory0 = null;
|
|
111
|
+
|
|
112
|
+
function getInt32Memory0() {
|
|
113
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
114
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
115
|
+
}
|
|
116
|
+
return cachedInt32Memory0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
let cachedFloat64Memory0 = null;
|
|
120
|
+
|
|
121
|
+
function getFloat64Memory0() {
|
|
122
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
123
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
124
|
+
}
|
|
125
|
+
return cachedFloat64Memory0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
128
|
let cachedBigInt64Memory0 = null;
|
|
129
129
|
|
|
130
130
|
function getBigInt64Memory0() {
|
|
@@ -230,7 +230,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
230
230
|
return real;
|
|
231
231
|
}
|
|
232
232
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
233
|
-
wasm.
|
|
233
|
+
wasm._dyn_core_6b630c532df341d7___ops__function__FnMut_______Output______as_wasm_bindgen_2928d838ea01524e___closure__WasmClosure___describe__invoke___wasm_bindgen_2928d838ea01524e___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
function getCachedStringFromWasm0(ptr, len) {
|
|
@@ -249,7 +249,7 @@ function handleError(f, args) {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
252
|
-
wasm.
|
|
252
|
+
wasm.wasm_bindgen_2928d838ea01524e___convert__closures__invoke2_mut___wasm_bindgen_2928d838ea01524e___JsValue__wasm_bindgen_2928d838ea01524e___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
/**
|
|
@@ -414,9 +414,6 @@ function __wbg_get_imports() {
|
|
|
414
414
|
const ret = new Date();
|
|
415
415
|
return addHeapObject(ret);
|
|
416
416
|
};
|
|
417
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
418
|
-
takeObject(arg0);
|
|
419
|
-
};
|
|
420
417
|
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
421
418
|
const ret = arg0;
|
|
422
419
|
return addHeapObject(ret);
|
|
@@ -425,6 +422,9 @@ function __wbg_get_imports() {
|
|
|
425
422
|
const ret = new Date(getObject(arg0));
|
|
426
423
|
return addHeapObject(ret);
|
|
427
424
|
};
|
|
425
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
426
|
+
takeObject(arg0);
|
|
427
|
+
};
|
|
428
428
|
imports.wbg.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) {
|
|
429
429
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
430
430
|
return ret;
|
|
@@ -503,14 +503,6 @@ imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
|
503
503
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
504
504
|
return ret;
|
|
505
505
|
};
|
|
506
|
-
imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
|
|
507
|
-
const ret = getObject(arg0).msCrypto;
|
|
508
|
-
return addHeapObject(ret);
|
|
509
|
-
};
|
|
510
|
-
imports.wbg.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
|
|
511
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
512
|
-
return addHeapObject(ret);
|
|
513
|
-
};
|
|
514
506
|
imports.wbg.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
|
|
515
507
|
const ret = module.require;
|
|
516
508
|
return addHeapObject(ret);
|
|
@@ -527,6 +519,14 @@ imports.wbg.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(functi
|
|
|
527
519
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
528
520
|
return addHeapObject(ret);
|
|
529
521
|
}, arguments) };
|
|
522
|
+
imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
|
|
523
|
+
const ret = getObject(arg0).msCrypto;
|
|
524
|
+
return addHeapObject(ret);
|
|
525
|
+
};
|
|
526
|
+
imports.wbg.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
|
|
527
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
528
|
+
return addHeapObject(ret);
|
|
529
|
+
};
|
|
530
530
|
imports.wbg.__wbg_iterator_40027cdd598da26b = function() {
|
|
531
531
|
const ret = Symbol.iterator;
|
|
532
532
|
return addHeapObject(ret);
|
|
@@ -576,14 +576,18 @@ imports.wbg.__wbg_length_21c4b0ae73cba59d = function(arg0) {
|
|
|
576
576
|
const ret = getObject(arg0).length;
|
|
577
577
|
return ret;
|
|
578
578
|
};
|
|
579
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
580
|
+
const obj = getObject(arg1);
|
|
581
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
582
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
583
|
+
var len1 = WASM_VECTOR_LEN;
|
|
584
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
585
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
586
|
+
};
|
|
579
587
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
580
588
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
581
589
|
return addHeapObject(ret);
|
|
582
590
|
};
|
|
583
|
-
imports.wbg.__wbg_entries_488960b196cfb6a5 = function(arg0) {
|
|
584
|
-
const ret = Object.entries(getObject(arg0));
|
|
585
|
-
return addHeapObject(ret);
|
|
586
|
-
};
|
|
587
591
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
588
592
|
const ret = getObject(arg0) == getObject(arg1);
|
|
589
593
|
return ret;
|
|
@@ -599,14 +603,6 @@ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
599
603
|
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
600
604
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
601
605
|
};
|
|
602
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
603
|
-
const obj = getObject(arg1);
|
|
604
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
605
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
606
|
-
var len1 = WASM_VECTOR_LEN;
|
|
607
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
608
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
609
|
-
};
|
|
610
606
|
imports.wbg.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
|
|
611
607
|
let result;
|
|
612
608
|
try {
|
|
@@ -627,24 +623,20 @@ imports.wbg.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
|
|
|
627
623
|
const ret = result;
|
|
628
624
|
return ret;
|
|
629
625
|
};
|
|
630
|
-
imports.wbg.
|
|
631
|
-
const ret = getObject(arg0)
|
|
632
|
-
return
|
|
626
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
627
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
628
|
+
return ret;
|
|
633
629
|
};
|
|
634
|
-
imports.wbg.
|
|
635
|
-
const ret = getObject(arg0)
|
|
636
|
-
return addHeapObject(ret);
|
|
637
|
-
}, arguments) };
|
|
638
|
-
imports.wbg.__wbg_done_90b14d6f6eacc42f = function(arg0) {
|
|
639
|
-
const ret = getObject(arg0).done;
|
|
630
|
+
imports.wbg.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
|
|
631
|
+
const ret = Array.isArray(getObject(arg0));
|
|
640
632
|
return ret;
|
|
641
633
|
};
|
|
642
|
-
imports.wbg.
|
|
643
|
-
const ret = getObject(arg0)
|
|
644
|
-
return
|
|
634
|
+
imports.wbg.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
|
|
635
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
636
|
+
return ret;
|
|
645
637
|
};
|
|
646
|
-
imports.wbg.
|
|
647
|
-
const ret =
|
|
638
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
639
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
648
640
|
return ret;
|
|
649
641
|
};
|
|
650
642
|
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
@@ -665,39 +657,33 @@ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
665
657
|
const ret = BigInt.asUintN(64, arg0);
|
|
666
658
|
return addHeapObject(ret);
|
|
667
659
|
};
|
|
668
|
-
imports.wbg.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
|
|
669
|
-
const ret = Number.isSafeInteger(getObject(arg0));
|
|
670
|
-
return ret;
|
|
671
|
-
};
|
|
672
|
-
imports.wbg.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
|
|
673
|
-
const ret = Array.isArray(getObject(arg0));
|
|
674
|
-
return ret;
|
|
675
|
-
};
|
|
676
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
677
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
678
|
-
return ret;
|
|
679
|
-
};
|
|
680
660
|
imports.wbg.__wbg_length_161c0d89c6535c1d = function(arg0) {
|
|
681
661
|
const ret = getObject(arg0).length;
|
|
682
662
|
return ret;
|
|
683
663
|
};
|
|
684
|
-
imports.wbg.
|
|
685
|
-
const ret = getObject(arg0)[
|
|
664
|
+
imports.wbg.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
|
|
665
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
686
666
|
return addHeapObject(ret);
|
|
687
667
|
};
|
|
688
|
-
imports.wbg.
|
|
689
|
-
const ret =
|
|
668
|
+
imports.wbg.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
|
|
669
|
+
const ret = getObject(arg0).next();
|
|
690
670
|
return addHeapObject(ret);
|
|
671
|
+
}, arguments) };
|
|
672
|
+
imports.wbg.__wbg_done_90b14d6f6eacc42f = function(arg0) {
|
|
673
|
+
const ret = getObject(arg0).done;
|
|
674
|
+
return ret;
|
|
691
675
|
};
|
|
692
|
-
imports.wbg.
|
|
693
|
-
|
|
676
|
+
imports.wbg.__wbg_value_3158be908c80a75e = function(arg0) {
|
|
677
|
+
const ret = getObject(arg0).value;
|
|
678
|
+
return addHeapObject(ret);
|
|
694
679
|
};
|
|
695
|
-
imports.wbg.
|
|
696
|
-
const ret =
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
680
|
+
imports.wbg.__wbg_entries_488960b196cfb6a5 = function(arg0) {
|
|
681
|
+
const ret = Object.entries(getObject(arg0));
|
|
682
|
+
return addHeapObject(ret);
|
|
683
|
+
};
|
|
684
|
+
imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
685
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
686
|
+
return addHeapObject(ret);
|
|
701
687
|
};
|
|
702
688
|
imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
703
689
|
try {
|
|
@@ -717,6 +703,20 @@ imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
|
717
703
|
state0.a = state0.b = 0;
|
|
718
704
|
}
|
|
719
705
|
};
|
|
706
|
+
imports.wbg.__wbg_new_632630b5cec17f21 = function() {
|
|
707
|
+
const ret = new Object();
|
|
708
|
+
return addHeapObject(ret);
|
|
709
|
+
};
|
|
710
|
+
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
711
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
712
|
+
};
|
|
713
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
714
|
+
const ret = debugString(getObject(arg1));
|
|
715
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
716
|
+
const len1 = WASM_VECTOR_LEN;
|
|
717
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
718
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
719
|
+
};
|
|
720
720
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
721
721
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
722
722
|
};
|
|
@@ -744,8 +744,8 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
|
744
744
|
const ret = false;
|
|
745
745
|
return ret;
|
|
746
746
|
};
|
|
747
|
-
imports.wbg.
|
|
748
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
747
|
+
imports.wbg.__wbindgen_closure_wrapper26903 = function(arg0, arg1, arg2) {
|
|
748
|
+
const ret = makeMutClosure(arg0, arg1, 453, __wbg_adapter_48);
|
|
749
749
|
return addHeapObject(ret);
|
|
750
750
|
};
|
|
751
751
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|