@next/swc-wasm-nodejs 15.4.0-canary.13 → 15.4.0-canary.130
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 +0 -40
- package/wasm.js +372 -474
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,50 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* @param {string} value
|
|
5
|
-
* @param {any} opts
|
|
6
|
-
* @returns {any}
|
|
7
|
-
*/
|
|
8
3
|
export function mdxCompileSync(value: string, opts: any): any;
|
|
9
|
-
/**
|
|
10
|
-
* @param {string} value
|
|
11
|
-
* @param {any} opts
|
|
12
|
-
* @returns {Promise<any>}
|
|
13
|
-
*/
|
|
14
4
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
15
|
-
/**
|
|
16
|
-
* @param {string} s
|
|
17
|
-
* @param {any} opts
|
|
18
|
-
* @returns {any}
|
|
19
|
-
*/
|
|
20
5
|
export function minifySync(s: string, opts: any): any;
|
|
21
|
-
/**
|
|
22
|
-
* @param {string} s
|
|
23
|
-
* @param {any} opts
|
|
24
|
-
* @returns {Promise<any>}
|
|
25
|
-
*/
|
|
26
6
|
export function minify(s: string, opts: any): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* @param {any} s
|
|
29
|
-
* @param {any} opts
|
|
30
|
-
* @returns {any}
|
|
31
|
-
*/
|
|
32
7
|
export function transformSync(s: any, opts: any): any;
|
|
33
|
-
/**
|
|
34
|
-
* @param {any} s
|
|
35
|
-
* @param {any} opts
|
|
36
|
-
* @returns {Promise<any>}
|
|
37
|
-
*/
|
|
38
8
|
export function transform(s: any, opts: any): Promise<any>;
|
|
39
|
-
/**
|
|
40
|
-
* @param {string} s
|
|
41
|
-
* @param {any} opts
|
|
42
|
-
* @returns {any}
|
|
43
|
-
*/
|
|
44
9
|
export function parseSync(s: string, opts: any): any;
|
|
45
|
-
/**
|
|
46
|
-
* @param {string} s
|
|
47
|
-
* @param {any} opts
|
|
48
|
-
* @returns {Promise<any>}
|
|
49
|
-
*/
|
|
50
10
|
export function parse(s: string, opts: any): Promise<any>;
|
package/wasm.js
CHANGED
|
@@ -1,75 +1,55 @@
|
|
|
1
|
+
|
|
1
2
|
let imports = {};
|
|
2
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
4
|
let wasm;
|
|
4
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function getObject(idx) { return heap[idx]; }
|
|
11
|
-
|
|
12
|
-
let heap_next = heap.length;
|
|
13
|
-
|
|
14
|
-
function dropObject(idx) {
|
|
15
|
-
if (idx < 132) return;
|
|
16
|
-
heap[idx] = heap_next;
|
|
17
|
-
heap_next = idx;
|
|
7
|
+
function addToExternrefTable0(obj) {
|
|
8
|
+
const idx = wasm.__externref_table_alloc();
|
|
9
|
+
wasm.__wbindgen_export_2.set(idx, obj);
|
|
10
|
+
return idx;
|
|
18
11
|
}
|
|
19
12
|
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
function handleError(f, args) {
|
|
14
|
+
try {
|
|
15
|
+
return f.apply(this, args);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
const idx = addToExternrefTable0(e);
|
|
18
|
+
wasm.__wbindgen_exn_store(idx);
|
|
19
|
+
}
|
|
24
20
|
}
|
|
25
21
|
|
|
26
|
-
function
|
|
27
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
28
|
-
const idx = heap_next;
|
|
29
|
-
heap_next = heap[idx];
|
|
30
|
-
|
|
31
|
-
heap[idx] = obj;
|
|
32
|
-
return idx;
|
|
33
|
-
}
|
|
22
|
+
function getFromExternrefTable0(idx) { return wasm.__wbindgen_export_2.get(idx); }
|
|
34
23
|
|
|
35
24
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
36
25
|
|
|
37
26
|
cachedTextDecoder.decode();
|
|
38
27
|
|
|
39
|
-
let
|
|
28
|
+
let cachedUint8ArrayMemory0 = null;
|
|
40
29
|
|
|
41
|
-
function
|
|
42
|
-
if (
|
|
43
|
-
|
|
30
|
+
function getUint8ArrayMemory0() {
|
|
31
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
32
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
44
33
|
}
|
|
45
|
-
return
|
|
34
|
+
return cachedUint8ArrayMemory0;
|
|
46
35
|
}
|
|
47
36
|
|
|
48
37
|
function getStringFromWasm0(ptr, len) {
|
|
49
38
|
ptr = ptr >>> 0;
|
|
50
|
-
return cachedTextDecoder.decode(
|
|
39
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
51
40
|
}
|
|
52
41
|
|
|
53
|
-
function
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
function getFloat64Memory0() {
|
|
60
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
61
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
42
|
+
function getCachedStringFromWasm0(ptr, len) {
|
|
43
|
+
if (ptr === 0) {
|
|
44
|
+
return getFromExternrefTable0(len);
|
|
45
|
+
} else {
|
|
46
|
+
return getStringFromWasm0(ptr, len);
|
|
62
47
|
}
|
|
63
|
-
return cachedFloat64Memory0;
|
|
64
48
|
}
|
|
65
49
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
70
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
71
|
-
}
|
|
72
|
-
return cachedInt32Memory0;
|
|
50
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
51
|
+
ptr = ptr >>> 0;
|
|
52
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
73
53
|
}
|
|
74
54
|
|
|
75
55
|
let WASM_VECTOR_LEN = 0;
|
|
@@ -94,7 +74,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
94
74
|
if (realloc === undefined) {
|
|
95
75
|
const buf = cachedTextEncoder.encode(arg);
|
|
96
76
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
97
|
-
|
|
77
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
98
78
|
WASM_VECTOR_LEN = buf.length;
|
|
99
79
|
return ptr;
|
|
100
80
|
}
|
|
@@ -102,7 +82,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
102
82
|
let len = arg.length;
|
|
103
83
|
let ptr = malloc(len, 1) >>> 0;
|
|
104
84
|
|
|
105
|
-
const mem =
|
|
85
|
+
const mem = getUint8ArrayMemory0();
|
|
106
86
|
|
|
107
87
|
let offset = 0;
|
|
108
88
|
|
|
@@ -117,7 +97,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
117
97
|
arg = arg.slice(offset);
|
|
118
98
|
}
|
|
119
99
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
120
|
-
const view =
|
|
100
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
121
101
|
const ret = encodeString(arg, view);
|
|
122
102
|
|
|
123
103
|
offset += ret.written;
|
|
@@ -128,13 +108,48 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
128
108
|
return ptr;
|
|
129
109
|
}
|
|
130
110
|
|
|
131
|
-
let
|
|
111
|
+
let cachedDataViewMemory0 = null;
|
|
132
112
|
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
|
|
113
|
+
function getDataViewMemory0() {
|
|
114
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
115
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
136
116
|
}
|
|
137
|
-
return
|
|
117
|
+
return cachedDataViewMemory0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function isLikeNone(x) {
|
|
121
|
+
return x === undefined || x === null;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
125
|
+
? { register: () => {}, unregister: () => {} }
|
|
126
|
+
: new FinalizationRegistry(state => {
|
|
127
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
131
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
132
|
+
const real = (...args) => {
|
|
133
|
+
// First up with a closure we increment the internal reference
|
|
134
|
+
// count. This ensures that the Rust closure environment won't
|
|
135
|
+
// be deallocated while we're invoking it.
|
|
136
|
+
state.cnt++;
|
|
137
|
+
const a = state.a;
|
|
138
|
+
state.a = 0;
|
|
139
|
+
try {
|
|
140
|
+
return f(a, state.b, ...args);
|
|
141
|
+
} finally {
|
|
142
|
+
if (--state.cnt === 0) {
|
|
143
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
144
|
+
CLOSURE_DTORS.unregister(state);
|
|
145
|
+
} else {
|
|
146
|
+
state.a = a;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
real.original = state;
|
|
151
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
152
|
+
return real;
|
|
138
153
|
}
|
|
139
154
|
|
|
140
155
|
function debugString(val) {
|
|
@@ -178,7 +193,7 @@ function debugString(val) {
|
|
|
178
193
|
// Test for built-in
|
|
179
194
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
180
195
|
let className;
|
|
181
|
-
if (builtInMatches.length > 1) {
|
|
196
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
182
197
|
className = builtInMatches[1];
|
|
183
198
|
} else {
|
|
184
199
|
// Failed to match the standard '[object ClassName]'
|
|
@@ -202,602 +217,483 @@ function debugString(val) {
|
|
|
202
217
|
return className;
|
|
203
218
|
}
|
|
204
219
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
212
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
213
|
-
const real = (...args) => {
|
|
214
|
-
// First up with a closure we increment the internal reference
|
|
215
|
-
// count. This ensures that the Rust closure environment won't
|
|
216
|
-
// be deallocated while we're invoking it.
|
|
217
|
-
state.cnt++;
|
|
218
|
-
const a = state.a;
|
|
219
|
-
state.a = 0;
|
|
220
|
-
try {
|
|
221
|
-
return f(a, state.b, ...args);
|
|
222
|
-
} finally {
|
|
223
|
-
if (--state.cnt === 0) {
|
|
224
|
-
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
|
|
225
|
-
CLOSURE_DTORS.unregister(state);
|
|
226
|
-
} else {
|
|
227
|
-
state.a = a;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
real.original = state;
|
|
232
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
233
|
-
return real;
|
|
234
|
-
}
|
|
235
|
-
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
236
|
-
wasm._dyn_core_d740453d92c4907d___ops__function__FnMut_______Output______as_wasm_bindgen_b3e6b9209ca1af04___closure__WasmClosure___describe__invoke___wasm_bindgen_b3e6b9209ca1af04___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
function getCachedStringFromWasm0(ptr, len) {
|
|
240
|
-
if (ptr === 0) {
|
|
241
|
-
return getObject(len);
|
|
242
|
-
} else {
|
|
243
|
-
return getStringFromWasm0(ptr, len);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
function handleError(f, args) {
|
|
248
|
-
try {
|
|
249
|
-
return f.apply(this, args);
|
|
250
|
-
} catch (e) {
|
|
251
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
function __wbg_adapter_113(arg0, arg1, arg2, arg3) {
|
|
255
|
-
wasm.wasm_bindgen_b3e6b9209ca1af04___convert__closures__invoke2_mut___wasm_bindgen_b3e6b9209ca1af04___JsValue__wasm_bindgen_b3e6b9209ca1af04___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
220
|
+
function takeFromExternrefTable0(idx) {
|
|
221
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
222
|
+
wasm.__externref_table_dealloc(idx);
|
|
223
|
+
return value;
|
|
256
224
|
}
|
|
257
|
-
|
|
258
225
|
/**
|
|
259
|
-
* @param {string} value
|
|
260
|
-
* @param {any} opts
|
|
261
|
-
* @returns {any}
|
|
262
|
-
*/
|
|
226
|
+
* @param {string} value
|
|
227
|
+
* @param {any} opts
|
|
228
|
+
* @returns {any}
|
|
229
|
+
*/
|
|
263
230
|
module.exports.mdxCompileSync = function(value, opts) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
268
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
269
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
270
|
-
if (r2) {
|
|
271
|
-
throw takeObject(r1);
|
|
272
|
-
}
|
|
273
|
-
return takeObject(r0);
|
|
274
|
-
} finally {
|
|
275
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
231
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
232
|
+
if (ret[2]) {
|
|
233
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
276
234
|
}
|
|
235
|
+
return takeFromExternrefTable0(ret[0]);
|
|
277
236
|
};
|
|
278
237
|
|
|
279
238
|
/**
|
|
280
|
-
* @param {string} value
|
|
281
|
-
* @param {any} opts
|
|
282
|
-
* @returns {Promise<any>}
|
|
283
|
-
*/
|
|
239
|
+
* @param {string} value
|
|
240
|
+
* @param {any} opts
|
|
241
|
+
* @returns {Promise<any>}
|
|
242
|
+
*/
|
|
284
243
|
module.exports.mdxCompile = function(value, opts) {
|
|
285
|
-
const ret = wasm.mdxCompile(
|
|
286
|
-
return
|
|
244
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
245
|
+
return ret;
|
|
287
246
|
};
|
|
288
247
|
|
|
289
248
|
/**
|
|
290
|
-
* @param {string} s
|
|
291
|
-
* @param {any} opts
|
|
292
|
-
* @returns {any}
|
|
293
|
-
*/
|
|
249
|
+
* @param {string} s
|
|
250
|
+
* @param {any} opts
|
|
251
|
+
* @returns {any}
|
|
252
|
+
*/
|
|
294
253
|
module.exports.minifySync = function(s, opts) {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
299
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
300
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
301
|
-
if (r2) {
|
|
302
|
-
throw takeObject(r1);
|
|
303
|
-
}
|
|
304
|
-
return takeObject(r0);
|
|
305
|
-
} finally {
|
|
306
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
254
|
+
const ret = wasm.minifySync(s, opts);
|
|
255
|
+
if (ret[2]) {
|
|
256
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
307
257
|
}
|
|
258
|
+
return takeFromExternrefTable0(ret[0]);
|
|
308
259
|
};
|
|
309
260
|
|
|
310
261
|
/**
|
|
311
|
-
* @param {string} s
|
|
312
|
-
* @param {any} opts
|
|
313
|
-
* @returns {Promise<any>}
|
|
314
|
-
*/
|
|
262
|
+
* @param {string} s
|
|
263
|
+
* @param {any} opts
|
|
264
|
+
* @returns {Promise<any>}
|
|
265
|
+
*/
|
|
315
266
|
module.exports.minify = function(s, opts) {
|
|
316
|
-
const ret = wasm.minify(
|
|
317
|
-
return
|
|
267
|
+
const ret = wasm.minify(s, opts);
|
|
268
|
+
return ret;
|
|
318
269
|
};
|
|
319
270
|
|
|
320
271
|
/**
|
|
321
|
-
* @param {any} s
|
|
322
|
-
* @param {any} opts
|
|
323
|
-
* @returns {any}
|
|
324
|
-
*/
|
|
272
|
+
* @param {any} s
|
|
273
|
+
* @param {any} opts
|
|
274
|
+
* @returns {any}
|
|
275
|
+
*/
|
|
325
276
|
module.exports.transformSync = function(s, opts) {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
330
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
331
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
332
|
-
if (r2) {
|
|
333
|
-
throw takeObject(r1);
|
|
334
|
-
}
|
|
335
|
-
return takeObject(r0);
|
|
336
|
-
} finally {
|
|
337
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
277
|
+
const ret = wasm.transformSync(s, opts);
|
|
278
|
+
if (ret[2]) {
|
|
279
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
338
280
|
}
|
|
281
|
+
return takeFromExternrefTable0(ret[0]);
|
|
339
282
|
};
|
|
340
283
|
|
|
341
284
|
/**
|
|
342
|
-
* @param {any} s
|
|
343
|
-
* @param {any} opts
|
|
344
|
-
* @returns {Promise<any>}
|
|
345
|
-
*/
|
|
285
|
+
* @param {any} s
|
|
286
|
+
* @param {any} opts
|
|
287
|
+
* @returns {Promise<any>}
|
|
288
|
+
*/
|
|
346
289
|
module.exports.transform = function(s, opts) {
|
|
347
|
-
const ret = wasm.transform(
|
|
348
|
-
return
|
|
290
|
+
const ret = wasm.transform(s, opts);
|
|
291
|
+
return ret;
|
|
349
292
|
};
|
|
350
293
|
|
|
351
294
|
/**
|
|
352
|
-
* @param {string} s
|
|
353
|
-
* @param {any} opts
|
|
354
|
-
* @returns {any}
|
|
355
|
-
*/
|
|
295
|
+
* @param {string} s
|
|
296
|
+
* @param {any} opts
|
|
297
|
+
* @returns {any}
|
|
298
|
+
*/
|
|
356
299
|
module.exports.parseSync = function(s, opts) {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
361
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
362
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
363
|
-
if (r2) {
|
|
364
|
-
throw takeObject(r1);
|
|
365
|
-
}
|
|
366
|
-
return takeObject(r0);
|
|
367
|
-
} finally {
|
|
368
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
300
|
+
const ret = wasm.parseSync(s, opts);
|
|
301
|
+
if (ret[2]) {
|
|
302
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
369
303
|
}
|
|
304
|
+
return takeFromExternrefTable0(ret[0]);
|
|
370
305
|
};
|
|
371
306
|
|
|
372
307
|
/**
|
|
373
|
-
* @param {string} s
|
|
374
|
-
* @param {any} opts
|
|
375
|
-
* @returns {Promise<any>}
|
|
376
|
-
*/
|
|
308
|
+
* @param {string} s
|
|
309
|
+
* @param {any} opts
|
|
310
|
+
* @returns {Promise<any>}
|
|
311
|
+
*/
|
|
377
312
|
module.exports.parse = function(s, opts) {
|
|
378
|
-
const ret = wasm.parse(
|
|
379
|
-
return
|
|
313
|
+
const ret = wasm.parse(s, opts);
|
|
314
|
+
return ret;
|
|
380
315
|
};
|
|
381
316
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}
|
|
317
|
+
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
318
|
+
wasm.closure1071_externref_shim(arg0, arg1, arg2);
|
|
319
|
+
}
|
|
385
320
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
};
|
|
321
|
+
function __wbg_adapter_101(arg0, arg1, arg2, arg3) {
|
|
322
|
+
wasm.closure123_externref_shim(arg0, arg1, arg2, arg3);
|
|
323
|
+
}
|
|
390
324
|
|
|
391
|
-
module.exports.
|
|
392
|
-
const ret =
|
|
393
|
-
return
|
|
325
|
+
module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
326
|
+
const ret = arg0.buffer;
|
|
327
|
+
return ret;
|
|
394
328
|
};
|
|
395
329
|
|
|
396
|
-
module.exports.
|
|
397
|
-
const ret =
|
|
330
|
+
module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
331
|
+
const ret = arg0.call(arg1);
|
|
398
332
|
return ret;
|
|
399
|
-
};
|
|
333
|
+
}, arguments) };
|
|
400
334
|
|
|
401
|
-
module.exports.
|
|
402
|
-
const ret =
|
|
403
|
-
return
|
|
404
|
-
};
|
|
335
|
+
module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
336
|
+
const ret = arg0.call(arg1, arg2);
|
|
337
|
+
return ret;
|
|
338
|
+
}, arguments) };
|
|
405
339
|
|
|
406
|
-
module.exports.
|
|
407
|
-
const ret =
|
|
408
|
-
return
|
|
340
|
+
module.exports.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
341
|
+
const ret = arg0.done;
|
|
342
|
+
return ret;
|
|
409
343
|
};
|
|
410
344
|
|
|
411
|
-
module.exports.
|
|
412
|
-
const ret =
|
|
413
|
-
return
|
|
345
|
+
module.exports.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
346
|
+
const ret = Object.entries(arg0);
|
|
347
|
+
return ret;
|
|
414
348
|
};
|
|
415
349
|
|
|
416
|
-
module.exports.
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
|
|
421
|
-
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
422
|
-
return addHeapObject(ret);
|
|
350
|
+
module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
351
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
352
|
+
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
|
|
353
|
+
console.error(v0);
|
|
423
354
|
};
|
|
424
355
|
|
|
425
|
-
module.exports.
|
|
426
|
-
|
|
356
|
+
module.exports.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
|
|
357
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
427
358
|
}, arguments) };
|
|
428
359
|
|
|
429
|
-
module.exports.
|
|
430
|
-
const ret =
|
|
431
|
-
return
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
module.exports.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
|
|
435
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
360
|
+
module.exports.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
361
|
+
const ret = arg0.getTime();
|
|
362
|
+
return ret;
|
|
436
363
|
};
|
|
437
364
|
|
|
438
|
-
module.exports.
|
|
439
|
-
const ret =
|
|
440
|
-
return
|
|
365
|
+
module.exports.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
|
|
366
|
+
const ret = arg0.getTimezoneOffset();
|
|
367
|
+
return ret;
|
|
441
368
|
};
|
|
442
369
|
|
|
443
|
-
module.exports.
|
|
444
|
-
const ret =
|
|
370
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
371
|
+
const ret = Reflect.get(arg0, arg1);
|
|
445
372
|
return ret;
|
|
446
|
-
};
|
|
373
|
+
}, arguments) };
|
|
447
374
|
|
|
448
|
-
module.exports.
|
|
449
|
-
const ret =
|
|
450
|
-
return
|
|
375
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
376
|
+
const ret = arg0[arg1 >>> 0];
|
|
377
|
+
return ret;
|
|
451
378
|
};
|
|
452
379
|
|
|
453
|
-
module.exports.
|
|
454
|
-
const ret =
|
|
455
|
-
|
|
456
|
-
const len1 = WASM_VECTOR_LEN;
|
|
457
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
458
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
380
|
+
module.exports.__wbg_getwithrefkey_bb8f74a92cb2e784 = function(arg0, arg1) {
|
|
381
|
+
const ret = arg0[arg1];
|
|
382
|
+
return ret;
|
|
459
383
|
};
|
|
460
384
|
|
|
461
|
-
module.exports.
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
385
|
+
module.exports.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
386
|
+
let result;
|
|
387
|
+
try {
|
|
388
|
+
result = arg0 instanceof ArrayBuffer;
|
|
389
|
+
} catch (_) {
|
|
390
|
+
result = false;
|
|
391
|
+
}
|
|
392
|
+
const ret = result;
|
|
393
|
+
return ret;
|
|
465
394
|
};
|
|
466
395
|
|
|
467
|
-
module.exports.
|
|
468
|
-
|
|
469
|
-
|
|
396
|
+
module.exports.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
397
|
+
let result;
|
|
398
|
+
try {
|
|
399
|
+
result = arg0 instanceof Uint8Array;
|
|
400
|
+
} catch (_) {
|
|
401
|
+
result = false;
|
|
402
|
+
}
|
|
403
|
+
const ret = result;
|
|
404
|
+
return ret;
|
|
470
405
|
};
|
|
471
406
|
|
|
472
|
-
module.exports.
|
|
473
|
-
const ret =
|
|
474
|
-
return
|
|
407
|
+
module.exports.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
408
|
+
const ret = Array.isArray(arg0);
|
|
409
|
+
return ret;
|
|
475
410
|
};
|
|
476
411
|
|
|
477
|
-
module.exports.
|
|
478
|
-
const
|
|
479
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
412
|
+
module.exports.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
413
|
+
const ret = Number.isSafeInteger(arg0);
|
|
480
414
|
return ret;
|
|
481
415
|
};
|
|
482
416
|
|
|
483
|
-
module.exports.
|
|
484
|
-
const ret =
|
|
485
|
-
return
|
|
417
|
+
module.exports.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
418
|
+
const ret = Symbol.iterator;
|
|
419
|
+
return ret;
|
|
486
420
|
};
|
|
487
421
|
|
|
488
|
-
module.exports.
|
|
489
|
-
const ret =
|
|
490
|
-
return
|
|
422
|
+
module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
423
|
+
const ret = arg0.length;
|
|
424
|
+
return ret;
|
|
491
425
|
};
|
|
492
426
|
|
|
493
|
-
module.exports.
|
|
494
|
-
const ret =
|
|
495
|
-
return
|
|
427
|
+
module.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
428
|
+
const ret = arg0.length;
|
|
429
|
+
return ret;
|
|
496
430
|
};
|
|
497
431
|
|
|
498
|
-
module.exports.
|
|
499
|
-
const ret =
|
|
432
|
+
module.exports.__wbg_new0_f788a2397c7ca929 = function() {
|
|
433
|
+
const ret = new Date();
|
|
500
434
|
return ret;
|
|
501
435
|
};
|
|
502
436
|
|
|
503
|
-
module.exports.
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
437
|
+
module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
438
|
+
try {
|
|
439
|
+
var state0 = {a: arg0, b: arg1};
|
|
440
|
+
var cb0 = (arg0, arg1) => {
|
|
441
|
+
const a = state0.a;
|
|
442
|
+
state0.a = 0;
|
|
443
|
+
try {
|
|
444
|
+
return __wbg_adapter_101(a, state0.b, arg0, arg1);
|
|
445
|
+
} finally {
|
|
446
|
+
state0.a = a;
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
const ret = new Promise(cb0);
|
|
450
|
+
return ret;
|
|
451
|
+
} finally {
|
|
452
|
+
state0.a = state0.b = 0;
|
|
453
|
+
}
|
|
454
|
+
};
|
|
507
455
|
|
|
508
|
-
module.exports.
|
|
509
|
-
const ret =
|
|
456
|
+
module.exports.__wbg_new_31a97dac4f10fab7 = function(arg0) {
|
|
457
|
+
const ret = new Date(arg0);
|
|
510
458
|
return ret;
|
|
511
459
|
};
|
|
512
460
|
|
|
513
|
-
module.exports.
|
|
514
|
-
const ret =
|
|
515
|
-
return
|
|
461
|
+
module.exports.__wbg_new_405e22f390576ce2 = function() {
|
|
462
|
+
const ret = new Object();
|
|
463
|
+
return ret;
|
|
516
464
|
};
|
|
517
465
|
|
|
518
|
-
module.exports.
|
|
519
|
-
const ret =
|
|
520
|
-
return
|
|
521
|
-
}, arguments) };
|
|
522
|
-
|
|
523
|
-
module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
524
|
-
const ret = getObject(arg0).msCrypto;
|
|
525
|
-
return addHeapObject(ret);
|
|
466
|
+
module.exports.__wbg_new_78feb108b6472713 = function() {
|
|
467
|
+
const ret = new Array();
|
|
468
|
+
return ret;
|
|
526
469
|
};
|
|
527
470
|
|
|
528
|
-
module.exports.
|
|
529
|
-
const ret = new
|
|
530
|
-
return
|
|
471
|
+
module.exports.__wbg_new_8a6f238a6ece86ea = function() {
|
|
472
|
+
const ret = new Error();
|
|
473
|
+
return ret;
|
|
531
474
|
};
|
|
532
475
|
|
|
533
|
-
module.exports.
|
|
534
|
-
const ret =
|
|
535
|
-
return
|
|
476
|
+
module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
477
|
+
const ret = new Uint8Array(arg0);
|
|
478
|
+
return ret;
|
|
536
479
|
};
|
|
537
480
|
|
|
538
|
-
module.exports.
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
module.exports.__wbg_call_3f093dd26d5569f8 = function() { return handleError(function (arg0, arg1) {
|
|
544
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
545
|
-
return addHeapObject(ret);
|
|
546
|
-
}, arguments) };
|
|
547
|
-
|
|
548
|
-
module.exports.__wbg_next_586204376d2ed373 = function(arg0) {
|
|
549
|
-
const ret = getObject(arg0).next;
|
|
550
|
-
return addHeapObject(ret);
|
|
481
|
+
module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
482
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
483
|
+
const ret = new Function(v0);
|
|
484
|
+
return ret;
|
|
551
485
|
};
|
|
552
486
|
|
|
553
|
-
module.exports.
|
|
554
|
-
const ret =
|
|
487
|
+
module.exports.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
488
|
+
const ret = arg0.next;
|
|
555
489
|
return ret;
|
|
556
490
|
};
|
|
557
491
|
|
|
558
|
-
module.exports.
|
|
559
|
-
const ret =
|
|
560
|
-
return
|
|
561
|
-
}, arguments) };
|
|
562
|
-
|
|
563
|
-
module.exports.__wbg_window_adc720039f2cb14f = function() { return handleError(function () {
|
|
564
|
-
const ret = window.window;
|
|
565
|
-
return addHeapObject(ret);
|
|
492
|
+
module.exports.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
493
|
+
const ret = arg0.next();
|
|
494
|
+
return ret;
|
|
566
495
|
}, arguments) };
|
|
567
496
|
|
|
568
|
-
module.exports.
|
|
569
|
-
const ret =
|
|
570
|
-
return
|
|
571
|
-
}
|
|
497
|
+
module.exports.__wbg_queueMicrotask_6c22d88054515cb4 = function(arg0) {
|
|
498
|
+
const ret = arg0.queueMicrotask;
|
|
499
|
+
return ret;
|
|
500
|
+
};
|
|
572
501
|
|
|
573
|
-
module.exports.
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
}, arguments) };
|
|
502
|
+
module.exports.__wbg_queueMicrotask_b81e3a75ab81ca62 = function(arg0) {
|
|
503
|
+
queueMicrotask(arg0);
|
|
504
|
+
};
|
|
577
505
|
|
|
578
|
-
module.exports.
|
|
579
|
-
const ret =
|
|
506
|
+
module.exports.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
507
|
+
const ret = Promise.resolve(arg0);
|
|
580
508
|
return ret;
|
|
581
509
|
};
|
|
582
510
|
|
|
583
|
-
module.exports.
|
|
584
|
-
|
|
585
|
-
const ret = new Function(v0);
|
|
586
|
-
return addHeapObject(ret);
|
|
511
|
+
module.exports.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
512
|
+
arg0[arg1 >>> 0] = arg2;
|
|
587
513
|
};
|
|
588
514
|
|
|
589
|
-
module.exports.
|
|
590
|
-
|
|
591
|
-
return addHeapObject(ret);
|
|
515
|
+
module.exports.__wbg_set_3fda3bac07393de4 = function(arg0, arg1, arg2) {
|
|
516
|
+
arg0[arg1] = arg2;
|
|
592
517
|
};
|
|
593
518
|
|
|
594
|
-
module.exports.
|
|
595
|
-
|
|
596
|
-
return ret;
|
|
519
|
+
module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
520
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
597
521
|
};
|
|
598
522
|
|
|
599
|
-
module.exports.
|
|
600
|
-
const
|
|
601
|
-
const
|
|
602
|
-
|
|
523
|
+
module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
524
|
+
const ret = arg1.stack;
|
|
525
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
526
|
+
const len1 = WASM_VECTOR_LEN;
|
|
527
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
528
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
603
529
|
};
|
|
604
530
|
|
|
605
|
-
module.exports.
|
|
606
|
-
const
|
|
607
|
-
|
|
608
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
609
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
531
|
+
module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
532
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
533
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
610
534
|
};
|
|
611
535
|
|
|
612
|
-
module.exports.
|
|
613
|
-
const
|
|
614
|
-
|
|
615
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
616
|
-
var len1 = WASM_VECTOR_LEN;
|
|
617
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
618
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
536
|
+
module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
537
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
538
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
619
539
|
};
|
|
620
540
|
|
|
621
|
-
module.exports.
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
625
|
-
} catch (_) {
|
|
626
|
-
result = false;
|
|
627
|
-
}
|
|
628
|
-
const ret = result;
|
|
629
|
-
return ret;
|
|
541
|
+
module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
542
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
543
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
630
544
|
};
|
|
631
545
|
|
|
632
|
-
module.exports.
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
636
|
-
} catch (_) {
|
|
637
|
-
result = false;
|
|
638
|
-
}
|
|
639
|
-
const ret = result;
|
|
640
|
-
return ret;
|
|
546
|
+
module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
547
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
548
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
641
549
|
};
|
|
642
550
|
|
|
643
|
-
module.exports.
|
|
644
|
-
const ret =
|
|
551
|
+
module.exports.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
552
|
+
const ret = arg0.then(arg1);
|
|
645
553
|
return ret;
|
|
646
554
|
};
|
|
647
555
|
|
|
648
|
-
module.exports.
|
|
649
|
-
const ret =
|
|
556
|
+
module.exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
557
|
+
const ret = arg0.value;
|
|
650
558
|
return ret;
|
|
651
559
|
};
|
|
652
560
|
|
|
653
|
-
module.exports.
|
|
654
|
-
const ret =
|
|
561
|
+
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
562
|
+
const ret = arg0;
|
|
655
563
|
return ret;
|
|
656
564
|
};
|
|
657
565
|
|
|
658
|
-
module.exports.
|
|
659
|
-
const ret =
|
|
566
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
567
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
660
568
|
return ret;
|
|
661
569
|
};
|
|
662
570
|
|
|
663
571
|
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
664
|
-
const v =
|
|
572
|
+
const v = arg1;
|
|
665
573
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
666
|
-
|
|
667
|
-
|
|
574
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
575
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
668
576
|
};
|
|
669
577
|
|
|
670
|
-
module.exports.
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
};
|
|
674
|
-
|
|
675
|
-
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
676
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
578
|
+
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
579
|
+
const v = arg0;
|
|
580
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
677
581
|
return ret;
|
|
678
582
|
};
|
|
679
583
|
|
|
680
|
-
module.exports.
|
|
681
|
-
const
|
|
682
|
-
|
|
584
|
+
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
585
|
+
const obj = arg0.original;
|
|
586
|
+
if (obj.cnt-- == 1) {
|
|
587
|
+
obj.a = 0;
|
|
588
|
+
return true;
|
|
589
|
+
}
|
|
590
|
+
const ret = false;
|
|
591
|
+
return ret;
|
|
683
592
|
};
|
|
684
593
|
|
|
685
|
-
module.exports.
|
|
686
|
-
const ret =
|
|
594
|
+
module.exports.__wbindgen_closure_wrapper23993 = function(arg0, arg1, arg2) {
|
|
595
|
+
const ret = makeMutClosure(arg0, arg1, 1072, __wbg_adapter_50);
|
|
687
596
|
return ret;
|
|
688
597
|
};
|
|
689
598
|
|
|
690
|
-
module.exports.
|
|
691
|
-
const ret =
|
|
692
|
-
|
|
599
|
+
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
600
|
+
const ret = debugString(arg1);
|
|
601
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
602
|
+
const len1 = WASM_VECTOR_LEN;
|
|
603
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
604
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
693
605
|
};
|
|
694
606
|
|
|
695
|
-
module.exports.
|
|
696
|
-
const ret =
|
|
697
|
-
return addHeapObject(ret);
|
|
698
|
-
}, arguments) };
|
|
699
|
-
|
|
700
|
-
module.exports.__wbg_done_90b14d6f6eacc42f = function(arg0) {
|
|
701
|
-
const ret = getObject(arg0).done;
|
|
607
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
608
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
702
609
|
return ret;
|
|
703
610
|
};
|
|
704
611
|
|
|
705
|
-
module.exports.
|
|
706
|
-
const ret =
|
|
707
|
-
return
|
|
708
|
-
};
|
|
709
|
-
|
|
710
|
-
module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) {
|
|
711
|
-
const ret = Object.entries(getObject(arg0));
|
|
712
|
-
return addHeapObject(ret);
|
|
612
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
613
|
+
const ret = arg0 in arg1;
|
|
614
|
+
return ret;
|
|
713
615
|
};
|
|
714
616
|
|
|
715
|
-
module.exports.
|
|
716
|
-
const
|
|
717
|
-
|
|
617
|
+
module.exports.__wbindgen_init_externref_table = function() {
|
|
618
|
+
const table = wasm.__wbindgen_export_2;
|
|
619
|
+
const offset = table.grow(4);
|
|
620
|
+
table.set(0, undefined);
|
|
621
|
+
table.set(offset + 0, undefined);
|
|
622
|
+
table.set(offset + 1, null);
|
|
623
|
+
table.set(offset + 2, true);
|
|
624
|
+
table.set(offset + 3, false);
|
|
625
|
+
;
|
|
718
626
|
};
|
|
719
627
|
|
|
720
|
-
module.exports.
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
var cb0 = (arg0, arg1) => {
|
|
724
|
-
const a = state0.a;
|
|
725
|
-
state0.a = 0;
|
|
726
|
-
try {
|
|
727
|
-
return __wbg_adapter_113(a, state0.b, arg0, arg1);
|
|
728
|
-
} finally {
|
|
729
|
-
state0.a = a;
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
const ret = new Promise(cb0);
|
|
733
|
-
return addHeapObject(ret);
|
|
734
|
-
} finally {
|
|
735
|
-
state0.a = state0.b = 0;
|
|
736
|
-
}
|
|
628
|
+
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
629
|
+
const ret = typeof(arg0) === 'bigint';
|
|
630
|
+
return ret;
|
|
737
631
|
};
|
|
738
632
|
|
|
739
|
-
module.exports.
|
|
740
|
-
const ret =
|
|
741
|
-
return
|
|
633
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
634
|
+
const ret = typeof(arg0) === 'function';
|
|
635
|
+
return ret;
|
|
742
636
|
};
|
|
743
637
|
|
|
744
|
-
module.exports.
|
|
745
|
-
|
|
638
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
639
|
+
const val = arg0;
|
|
640
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
641
|
+
return ret;
|
|
746
642
|
};
|
|
747
643
|
|
|
748
|
-
module.exports.
|
|
749
|
-
const ret =
|
|
750
|
-
return
|
|
644
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
645
|
+
const ret = typeof(arg0) === 'string';
|
|
646
|
+
return ret;
|
|
751
647
|
};
|
|
752
648
|
|
|
753
|
-
module.exports.
|
|
754
|
-
|
|
649
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
650
|
+
const ret = arg0 === undefined;
|
|
651
|
+
return ret;
|
|
755
652
|
};
|
|
756
653
|
|
|
757
|
-
module.exports.
|
|
758
|
-
const ret =
|
|
759
|
-
|
|
760
|
-
const len1 = WASM_VECTOR_LEN;
|
|
761
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
762
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
654
|
+
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
655
|
+
const ret = arg0 === arg1;
|
|
656
|
+
return ret;
|
|
763
657
|
};
|
|
764
658
|
|
|
765
|
-
module.exports.
|
|
766
|
-
|
|
659
|
+
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
660
|
+
const ret = arg0 == arg1;
|
|
661
|
+
return ret;
|
|
767
662
|
};
|
|
768
663
|
|
|
769
|
-
module.exports.
|
|
770
|
-
const ret =
|
|
771
|
-
return
|
|
664
|
+
module.exports.__wbindgen_memory = function() {
|
|
665
|
+
const ret = wasm.memory;
|
|
666
|
+
return ret;
|
|
772
667
|
};
|
|
773
668
|
|
|
774
|
-
module.exports.
|
|
775
|
-
|
|
669
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
670
|
+
const obj = arg1;
|
|
671
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
672
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
673
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
776
674
|
};
|
|
777
675
|
|
|
778
|
-
module.exports.
|
|
779
|
-
const ret =
|
|
780
|
-
return
|
|
676
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
677
|
+
const ret = arg0;
|
|
678
|
+
return ret;
|
|
781
679
|
};
|
|
782
680
|
|
|
783
|
-
module.exports.
|
|
784
|
-
const
|
|
785
|
-
|
|
681
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
682
|
+
const obj = arg1;
|
|
683
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
684
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
685
|
+
var len1 = WASM_VECTOR_LEN;
|
|
686
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
687
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
786
688
|
};
|
|
787
689
|
|
|
788
|
-
module.exports.
|
|
789
|
-
const
|
|
790
|
-
if (obj.cnt-- == 1) {
|
|
791
|
-
obj.a = 0;
|
|
792
|
-
return true;
|
|
793
|
-
}
|
|
794
|
-
const ret = false;
|
|
690
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
691
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
795
692
|
return ret;
|
|
796
693
|
};
|
|
797
694
|
|
|
798
|
-
module.exports.
|
|
799
|
-
|
|
800
|
-
return addHeapObject(ret);
|
|
695
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
696
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
801
697
|
};
|
|
802
698
|
|
|
803
699
|
const path = require('path').join(__dirname, 'wasm_bg.wasm');
|
|
@@ -808,3 +704,5 @@ const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
|
808
704
|
wasm = wasmInstance.exports;
|
|
809
705
|
module.exports.__wasm = wasm;
|
|
810
706
|
|
|
707
|
+
wasm.__wbindgen_start();
|
|
708
|
+
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|