@next/swc-wasm-web 16.2.3 → 16.3.0-canary.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 +54 -43
- package/wasm.js +587 -591
- package/wasm_bg.wasm +0 -0
package/wasm.js
CHANGED
|
@@ -1,152 +1,478 @@
|
|
|
1
|
-
|
|
1
|
+
/* @ts-self-types="./wasm.d.ts" */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @param {Uint8Array} source
|
|
5
|
+
* @param {any} location
|
|
6
|
+
* @param {any} options
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
export function codeFrameColumns(source, location, options) {
|
|
10
|
+
const ptr0 = passArray8ToWasm0(source, wasm.__wbindgen_malloc_command_export);
|
|
11
|
+
const len0 = WASM_VECTOR_LEN;
|
|
12
|
+
const ret = wasm.codeFrameColumns(ptr0, len0, location, options);
|
|
13
|
+
if (ret[3]) {
|
|
14
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
10
15
|
}
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
15
|
-
|
|
16
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
17
|
-
? function (arg, view) {
|
|
18
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
16
|
+
var v2 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
17
|
+
if (ret[0] !== 0) { wasm.__wbindgen_free_command_export(ret[0], ret[1], 1); }
|
|
18
|
+
return v2;
|
|
19
19
|
}
|
|
20
|
-
: function (arg, view) {
|
|
21
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
22
|
-
view.set(buf);
|
|
23
|
-
return {
|
|
24
|
-
read: arg.length,
|
|
25
|
-
written: buf.length
|
|
26
|
-
};
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
30
20
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @param {Uint8Array} content
|
|
23
|
+
* @param {string} template_path
|
|
24
|
+
* @param {string} next_package_dir_path
|
|
25
|
+
* @param {any} replacements
|
|
26
|
+
* @param {any} injections
|
|
27
|
+
* @param {any} imports
|
|
28
|
+
* @returns {string}
|
|
29
|
+
*/
|
|
30
|
+
export function expandNextJsTemplate(content, template_path, next_package_dir_path, replacements, injections, imports) {
|
|
31
|
+
const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_malloc_command_export);
|
|
32
|
+
const len0 = WASM_VECTOR_LEN;
|
|
33
|
+
const ptr1 = passStringToWasm0(template_path, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
34
|
+
const len1 = WASM_VECTOR_LEN;
|
|
35
|
+
const ptr2 = passStringToWasm0(next_package_dir_path, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
36
|
+
const len2 = WASM_VECTOR_LEN;
|
|
37
|
+
const ret = wasm.expandNextJsTemplate(ptr0, len0, ptr1, len1, ptr2, len2, replacements, injections, imports);
|
|
38
|
+
if (ret[3]) {
|
|
39
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
37
40
|
}
|
|
41
|
+
var v4 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
42
|
+
if (ret[0] !== 0) { wasm.__wbindgen_free_command_export(ret[0], ret[1], 1); }
|
|
43
|
+
return v4;
|
|
44
|
+
}
|
|
38
45
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
/**
|
|
47
|
+
* @param {string} value
|
|
48
|
+
* @param {any} opts
|
|
49
|
+
* @returns {Promise<any>}
|
|
50
|
+
*/
|
|
51
|
+
export function mdxCompile(value, opts) {
|
|
52
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
53
|
+
return ret;
|
|
54
|
+
}
|
|
45
55
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
56
|
+
/**
|
|
57
|
+
* @param {string} value
|
|
58
|
+
* @param {any} opts
|
|
59
|
+
* @returns {any}
|
|
60
|
+
*/
|
|
61
|
+
export function mdxCompileSync(value, opts) {
|
|
62
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
63
|
+
if (ret[2]) {
|
|
64
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
50
65
|
}
|
|
66
|
+
return takeFromExternrefTable0(ret[0]);
|
|
67
|
+
}
|
|
51
68
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
69
|
+
/**
|
|
70
|
+
* @param {string} s
|
|
71
|
+
* @param {any} opts
|
|
72
|
+
* @returns {Promise<any>}
|
|
73
|
+
*/
|
|
74
|
+
export function minify(s, opts) {
|
|
75
|
+
const ret = wasm.minify(s, opts);
|
|
76
|
+
return ret;
|
|
77
|
+
}
|
|
59
78
|
|
|
60
|
-
|
|
61
|
-
|
|
79
|
+
/**
|
|
80
|
+
* @param {string} s
|
|
81
|
+
* @param {any} opts
|
|
82
|
+
* @returns {any}
|
|
83
|
+
*/
|
|
84
|
+
export function minifySync(s, opts) {
|
|
85
|
+
const ret = wasm.minifySync(s, opts);
|
|
86
|
+
if (ret[2]) {
|
|
87
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
62
88
|
}
|
|
63
|
-
|
|
64
|
-
WASM_VECTOR_LEN = offset;
|
|
65
|
-
return ptr;
|
|
89
|
+
return takeFromExternrefTable0(ret[0]);
|
|
66
90
|
}
|
|
67
91
|
|
|
68
|
-
|
|
92
|
+
/**
|
|
93
|
+
* @param {string} s
|
|
94
|
+
* @param {any} opts
|
|
95
|
+
* @returns {Promise<any>}
|
|
96
|
+
*/
|
|
97
|
+
export function parse(s, opts) {
|
|
98
|
+
const ret = wasm.parse(s, opts);
|
|
99
|
+
return ret;
|
|
100
|
+
}
|
|
69
101
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
102
|
+
/**
|
|
103
|
+
* @param {string} s
|
|
104
|
+
* @param {any} opts
|
|
105
|
+
* @returns {any}
|
|
106
|
+
*/
|
|
107
|
+
export function parseSync(s, opts) {
|
|
108
|
+
const ret = wasm.parseSync(s, opts);
|
|
109
|
+
if (ret[2]) {
|
|
110
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
73
111
|
}
|
|
74
|
-
return
|
|
112
|
+
return takeFromExternrefTable0(ret[0]);
|
|
75
113
|
}
|
|
76
114
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
115
|
+
/**
|
|
116
|
+
* @param {any} s
|
|
117
|
+
* @param {any} opts
|
|
118
|
+
* @returns {Promise<any>}
|
|
119
|
+
*/
|
|
120
|
+
export function transform(s, opts) {
|
|
121
|
+
const ret = wasm.transform(s, opts);
|
|
122
|
+
return ret;
|
|
81
123
|
}
|
|
82
124
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
125
|
+
/**
|
|
126
|
+
* @param {any} s
|
|
127
|
+
* @param {any} opts
|
|
128
|
+
* @returns {any}
|
|
129
|
+
*/
|
|
130
|
+
export function transformSync(s, opts) {
|
|
131
|
+
const ret = wasm.transformSync(s, opts);
|
|
132
|
+
if (ret[2]) {
|
|
133
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
89
134
|
}
|
|
135
|
+
return takeFromExternrefTable0(ret[0]);
|
|
90
136
|
}
|
|
91
137
|
|
|
92
|
-
function
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
138
|
+
function __wbg_get_imports() {
|
|
139
|
+
const import0 = {
|
|
140
|
+
__proto__: null,
|
|
141
|
+
__wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
|
|
142
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
143
|
+
const ret = Error(v0);
|
|
144
|
+
return ret;
|
|
145
|
+
},
|
|
146
|
+
__wbg_String_11905339415cf58e: function(arg0, arg1) {
|
|
147
|
+
const ret = String(arg1);
|
|
148
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
149
|
+
const len1 = WASM_VECTOR_LEN;
|
|
150
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
151
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
152
|
+
},
|
|
153
|
+
__wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
|
|
154
|
+
const v = arg1;
|
|
155
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
156
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
157
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
158
|
+
},
|
|
159
|
+
__wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
|
|
160
|
+
const v = arg0;
|
|
161
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
162
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
163
|
+
},
|
|
164
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
165
|
+
const ret = debugString(arg1);
|
|
166
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
167
|
+
const len1 = WASM_VECTOR_LEN;
|
|
168
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
169
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
170
|
+
},
|
|
171
|
+
__wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
|
|
172
|
+
const ret = arg0 in arg1;
|
|
173
|
+
return ret;
|
|
174
|
+
},
|
|
175
|
+
__wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
|
|
176
|
+
const ret = typeof(arg0) === 'bigint';
|
|
177
|
+
return ret;
|
|
178
|
+
},
|
|
179
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
180
|
+
const ret = typeof(arg0) === 'function';
|
|
181
|
+
return ret;
|
|
182
|
+
},
|
|
183
|
+
__wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
|
|
184
|
+
const val = arg0;
|
|
185
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
186
|
+
return ret;
|
|
187
|
+
},
|
|
188
|
+
__wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
|
|
189
|
+
const ret = typeof(arg0) === 'string';
|
|
190
|
+
return ret;
|
|
191
|
+
},
|
|
192
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
193
|
+
const ret = arg0 === undefined;
|
|
194
|
+
return ret;
|
|
195
|
+
},
|
|
196
|
+
__wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
|
|
197
|
+
const ret = arg0 === arg1;
|
|
198
|
+
return ret;
|
|
199
|
+
},
|
|
200
|
+
__wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
|
|
201
|
+
const ret = arg0 == arg1;
|
|
202
|
+
return ret;
|
|
203
|
+
},
|
|
204
|
+
__wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
|
|
205
|
+
const obj = arg1;
|
|
206
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
207
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
208
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
209
|
+
},
|
|
210
|
+
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
211
|
+
const obj = arg1;
|
|
212
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
213
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
214
|
+
var len1 = WASM_VECTOR_LEN;
|
|
215
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
216
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
217
|
+
},
|
|
218
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
219
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
220
|
+
throw new Error(v0);
|
|
221
|
+
},
|
|
222
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
223
|
+
arg0._wbg_cb_unref();
|
|
224
|
+
},
|
|
225
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
226
|
+
const ret = arg0.call(arg1, arg2);
|
|
227
|
+
return ret;
|
|
228
|
+
}, arguments); },
|
|
229
|
+
__wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
|
|
230
|
+
const ret = arg0.call(arg1);
|
|
231
|
+
return ret;
|
|
232
|
+
}, arguments); },
|
|
233
|
+
__wbg_done_08ce71ee07e3bd17: function(arg0) {
|
|
234
|
+
const ret = arg0.done;
|
|
235
|
+
return ret;
|
|
236
|
+
},
|
|
237
|
+
__wbg_entries_e8a20ff8c9757101: function(arg0) {
|
|
238
|
+
const ret = Object.entries(arg0);
|
|
239
|
+
return ret;
|
|
240
|
+
},
|
|
241
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
242
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
243
|
+
if (arg0 !== 0) { wasm.__wbindgen_free_command_export(arg0, arg1, 1); }
|
|
244
|
+
console.error(v0);
|
|
245
|
+
},
|
|
246
|
+
__wbg_getRandomValues_6f269dae5feacb57: function() { return handleError(function (arg0, arg1) {
|
|
247
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
248
|
+
}, arguments); },
|
|
249
|
+
__wbg_getTime_1dad7b5386ddd2d9: function(arg0) {
|
|
250
|
+
const ret = arg0.getTime();
|
|
251
|
+
return ret;
|
|
252
|
+
},
|
|
253
|
+
__wbg_getTimezoneOffset_639bcf2dde21158b: function(arg0) {
|
|
254
|
+
const ret = arg0.getTimezoneOffset();
|
|
255
|
+
return ret;
|
|
256
|
+
},
|
|
257
|
+
__wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
|
|
258
|
+
const ret = Reflect.get(arg0, arg1);
|
|
259
|
+
return ret;
|
|
260
|
+
}, arguments); },
|
|
261
|
+
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
262
|
+
const ret = arg0[arg1 >>> 0];
|
|
263
|
+
return ret;
|
|
264
|
+
},
|
|
265
|
+
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
266
|
+
const ret = arg0[arg1 >>> 0];
|
|
267
|
+
return ret;
|
|
268
|
+
},
|
|
269
|
+
__wbg_get_with_ref_key_f38bf27dc398d91b: function(arg0, arg1) {
|
|
270
|
+
const ret = arg0[arg1];
|
|
271
|
+
return ret;
|
|
272
|
+
},
|
|
273
|
+
__wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
|
|
274
|
+
let result;
|
|
275
|
+
try {
|
|
276
|
+
result = arg0 instanceof ArrayBuffer;
|
|
277
|
+
} catch (_) {
|
|
278
|
+
result = false;
|
|
279
|
+
}
|
|
280
|
+
const ret = result;
|
|
281
|
+
return ret;
|
|
282
|
+
},
|
|
283
|
+
__wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
|
|
284
|
+
let result;
|
|
285
|
+
try {
|
|
286
|
+
result = arg0 instanceof Uint8Array;
|
|
287
|
+
} catch (_) {
|
|
288
|
+
result = false;
|
|
289
|
+
}
|
|
290
|
+
const ret = result;
|
|
291
|
+
return ret;
|
|
292
|
+
},
|
|
293
|
+
__wbg_isArray_33b91feb269ff46e: function(arg0) {
|
|
294
|
+
const ret = Array.isArray(arg0);
|
|
295
|
+
return ret;
|
|
296
|
+
},
|
|
297
|
+
__wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
|
|
298
|
+
const ret = Number.isSafeInteger(arg0);
|
|
299
|
+
return ret;
|
|
300
|
+
},
|
|
301
|
+
__wbg_iterator_d8f549ec8fb061b1: function() {
|
|
302
|
+
const ret = Symbol.iterator;
|
|
303
|
+
return ret;
|
|
304
|
+
},
|
|
305
|
+
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
306
|
+
const ret = arg0.length;
|
|
307
|
+
return ret;
|
|
308
|
+
},
|
|
309
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
310
|
+
const ret = arg0.length;
|
|
311
|
+
return ret;
|
|
312
|
+
},
|
|
313
|
+
__wbg_new_0_1dcafdf5e786e876: function() {
|
|
314
|
+
const ret = new Date();
|
|
315
|
+
return ret;
|
|
316
|
+
},
|
|
317
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
318
|
+
const ret = new Error();
|
|
319
|
+
return ret;
|
|
320
|
+
},
|
|
321
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
322
|
+
const ret = new Uint8Array(arg0);
|
|
323
|
+
return ret;
|
|
324
|
+
},
|
|
325
|
+
__wbg_new_a70fbab9066b301f: function() {
|
|
326
|
+
const ret = new Array();
|
|
327
|
+
return ret;
|
|
328
|
+
},
|
|
329
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
330
|
+
const ret = new Object();
|
|
331
|
+
return ret;
|
|
332
|
+
},
|
|
333
|
+
__wbg_new_fd94ca5c9639abd2: function(arg0) {
|
|
334
|
+
const ret = new Date(arg0);
|
|
335
|
+
return ret;
|
|
336
|
+
},
|
|
337
|
+
__wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
|
|
338
|
+
try {
|
|
339
|
+
var state0 = {a: arg0, b: arg1};
|
|
340
|
+
var cb0 = (arg0, arg1) => {
|
|
341
|
+
const a = state0.a;
|
|
342
|
+
state0.a = 0;
|
|
343
|
+
try {
|
|
344
|
+
return wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
345
|
+
} finally {
|
|
346
|
+
state0.a = a;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
const ret = new Promise(cb0);
|
|
350
|
+
return ret;
|
|
351
|
+
} finally {
|
|
352
|
+
state0.a = state0.b = 0;
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
__wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
|
|
356
|
+
const ret = arg0.next();
|
|
357
|
+
return ret;
|
|
358
|
+
}, arguments); },
|
|
359
|
+
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
360
|
+
const ret = arg0.next;
|
|
361
|
+
return ret;
|
|
362
|
+
},
|
|
363
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
364
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
365
|
+
},
|
|
366
|
+
__wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
|
|
367
|
+
const ret = arg0.queueMicrotask;
|
|
368
|
+
return ret;
|
|
369
|
+
},
|
|
370
|
+
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
371
|
+
queueMicrotask(arg0);
|
|
372
|
+
},
|
|
373
|
+
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
374
|
+
const ret = Promise.resolve(arg0);
|
|
375
|
+
return ret;
|
|
376
|
+
},
|
|
377
|
+
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
378
|
+
arg0[arg1 >>> 0] = arg2;
|
|
379
|
+
},
|
|
380
|
+
__wbg_set_d1cb61e9f39c870f: function(arg0, arg1, arg2) {
|
|
381
|
+
arg0[arg1] = arg2;
|
|
382
|
+
},
|
|
383
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
384
|
+
const ret = arg1.stack;
|
|
385
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
386
|
+
const len1 = WASM_VECTOR_LEN;
|
|
387
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
388
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
389
|
+
},
|
|
390
|
+
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
391
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
392
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
393
|
+
},
|
|
394
|
+
__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
|
|
395
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
396
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
397
|
+
},
|
|
398
|
+
__wbg_static_accessor_SELF_f207c857566db248: function() {
|
|
399
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
400
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
401
|
+
},
|
|
402
|
+
__wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
|
|
403
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
404
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
405
|
+
},
|
|
406
|
+
__wbg_then_098abe61755d12f6: function(arg0, arg1) {
|
|
407
|
+
const ret = arg0.then(arg1);
|
|
408
|
+
return ret;
|
|
409
|
+
},
|
|
410
|
+
__wbg_value_21fc78aab0322612: function(arg0) {
|
|
411
|
+
const ret = arg0.value;
|
|
412
|
+
return ret;
|
|
413
|
+
},
|
|
414
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
415
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4328, function: Function { arguments: [Externref], shim_idx: 420, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
416
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_235020ff9ac9cf73___closure__destroy___dyn_core_4b0d4602549cae5f___ops__function__FnMut__wasm_bindgen_235020ff9ac9cf73___JsValue____Output___core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___, wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___wasm_bindgen_235020ff9ac9cf73___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___true_);
|
|
417
|
+
return ret;
|
|
418
|
+
},
|
|
419
|
+
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
420
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
421
|
+
const ret = arg0;
|
|
422
|
+
return ret;
|
|
423
|
+
},
|
|
424
|
+
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
425
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
426
|
+
const ret = arg0;
|
|
427
|
+
return ret;
|
|
428
|
+
},
|
|
429
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
430
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
431
|
+
// Cast intrinsic for `Ref(CachedString) -> Externref`.
|
|
432
|
+
const ret = v0;
|
|
433
|
+
return ret;
|
|
434
|
+
},
|
|
435
|
+
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
436
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
437
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
438
|
+
return ret;
|
|
439
|
+
},
|
|
440
|
+
__wbindgen_init_externref_table: function() {
|
|
441
|
+
const table = wasm.__wbindgen_externrefs;
|
|
442
|
+
const offset = table.grow(4);
|
|
443
|
+
table.set(0, undefined);
|
|
444
|
+
table.set(offset + 0, undefined);
|
|
445
|
+
table.set(offset + 1, null);
|
|
446
|
+
table.set(offset + 2, true);
|
|
447
|
+
table.set(offset + 3, false);
|
|
448
|
+
},
|
|
449
|
+
};
|
|
450
|
+
return {
|
|
451
|
+
__proto__: null,
|
|
452
|
+
"./wasm_bg.js": import0,
|
|
453
|
+
};
|
|
101
454
|
}
|
|
102
455
|
|
|
103
|
-
function
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return getStringFromWasm0(ptr, len);
|
|
456
|
+
function wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___wasm_bindgen_235020ff9ac9cf73___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___true_(arg0, arg1, arg2) {
|
|
457
|
+
const ret = wasm.wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___wasm_bindgen_235020ff9ac9cf73___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___true_(arg0, arg1, arg2);
|
|
458
|
+
if (ret[1]) {
|
|
459
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
108
460
|
}
|
|
109
461
|
}
|
|
110
462
|
|
|
111
|
-
function
|
|
112
|
-
|
|
113
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
463
|
+
function wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
464
|
+
wasm.wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
114
465
|
}
|
|
115
466
|
|
|
116
|
-
function
|
|
117
|
-
|
|
467
|
+
function addToExternrefTable0(obj) {
|
|
468
|
+
const idx = wasm.__externref_table_alloc_command_export();
|
|
469
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
470
|
+
return idx;
|
|
118
471
|
}
|
|
119
472
|
|
|
120
473
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
121
474
|
? { register: () => {}, unregister: () => {} }
|
|
122
|
-
: new FinalizationRegistry(state =>
|
|
123
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
127
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
128
|
-
const real = (...args) => {
|
|
129
|
-
// First up with a closure we increment the internal reference
|
|
130
|
-
// count. This ensures that the Rust closure environment won't
|
|
131
|
-
// be deallocated while we're invoking it.
|
|
132
|
-
state.cnt++;
|
|
133
|
-
const a = state.a;
|
|
134
|
-
state.a = 0;
|
|
135
|
-
try {
|
|
136
|
-
return f(a, state.b, ...args);
|
|
137
|
-
} finally {
|
|
138
|
-
if (--state.cnt === 0) {
|
|
139
|
-
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
140
|
-
CLOSURE_DTORS.unregister(state);
|
|
141
|
-
} else {
|
|
142
|
-
state.a = a;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
real.original = state;
|
|
147
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
148
|
-
return real;
|
|
149
|
-
}
|
|
475
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
150
476
|
|
|
151
477
|
function debugString(val) {
|
|
152
478
|
// primitive types
|
|
@@ -213,101 +539,81 @@ function debugString(val) {
|
|
|
213
539
|
return className;
|
|
214
540
|
}
|
|
215
541
|
|
|
216
|
-
function
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
return value;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* @param {string} value
|
|
223
|
-
* @param {any} opts
|
|
224
|
-
* @returns {any}
|
|
225
|
-
*/
|
|
226
|
-
export function mdxCompileSync(value, opts) {
|
|
227
|
-
const ret = wasm.mdxCompileSync(value, opts);
|
|
228
|
-
if (ret[2]) {
|
|
229
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
230
|
-
}
|
|
231
|
-
return takeFromExternrefTable0(ret[0]);
|
|
542
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
543
|
+
ptr = ptr >>> 0;
|
|
544
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
232
545
|
}
|
|
233
546
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
const ret = wasm.mdxCompile(value, opts);
|
|
241
|
-
return ret;
|
|
547
|
+
function getCachedStringFromWasm0(ptr, len) {
|
|
548
|
+
if (ptr === 0) {
|
|
549
|
+
return getFromExternrefTable0(len);
|
|
550
|
+
} else {
|
|
551
|
+
return getStringFromWasm0(ptr, len);
|
|
552
|
+
}
|
|
242
553
|
}
|
|
243
554
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
*/
|
|
249
|
-
export function minifySync(s, opts) {
|
|
250
|
-
const ret = wasm.minifySync(s, opts);
|
|
251
|
-
if (ret[2]) {
|
|
252
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
555
|
+
let cachedDataViewMemory0 = null;
|
|
556
|
+
function getDataViewMemory0() {
|
|
557
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
558
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
253
559
|
}
|
|
254
|
-
return
|
|
560
|
+
return cachedDataViewMemory0;
|
|
255
561
|
}
|
|
256
562
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
export function minify(s, opts) {
|
|
263
|
-
const ret = wasm.minify(s, opts);
|
|
264
|
-
return ret;
|
|
563
|
+
function getFromExternrefTable0(idx) { return wasm.__wbindgen_externrefs.get(idx); }
|
|
564
|
+
|
|
565
|
+
function getStringFromWasm0(ptr, len) {
|
|
566
|
+
ptr = ptr >>> 0;
|
|
567
|
+
return decodeText(ptr, len);
|
|
265
568
|
}
|
|
266
569
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
*/
|
|
272
|
-
export function transformSync(s, opts) {
|
|
273
|
-
const ret = wasm.transformSync(s, opts);
|
|
274
|
-
if (ret[2]) {
|
|
275
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
570
|
+
let cachedUint8ArrayMemory0 = null;
|
|
571
|
+
function getUint8ArrayMemory0() {
|
|
572
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
573
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
276
574
|
}
|
|
277
|
-
return
|
|
575
|
+
return cachedUint8ArrayMemory0;
|
|
278
576
|
}
|
|
279
577
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
return ret;
|
|
578
|
+
function handleError(f, args) {
|
|
579
|
+
try {
|
|
580
|
+
return f.apply(this, args);
|
|
581
|
+
} catch (e) {
|
|
582
|
+
const idx = addToExternrefTable0(e);
|
|
583
|
+
wasm.__wbindgen_exn_store_command_export(idx);
|
|
584
|
+
}
|
|
288
585
|
}
|
|
289
586
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
* @param {any} opts
|
|
293
|
-
* @returns {any}
|
|
294
|
-
*/
|
|
295
|
-
export function parseSync(s, opts) {
|
|
296
|
-
const ret = wasm.parseSync(s, opts);
|
|
297
|
-
if (ret[2]) {
|
|
298
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
299
|
-
}
|
|
300
|
-
return takeFromExternrefTable0(ret[0]);
|
|
587
|
+
function isLikeNone(x) {
|
|
588
|
+
return x === undefined || x === null;
|
|
301
589
|
}
|
|
302
590
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
591
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
592
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
593
|
+
const real = (...args) => {
|
|
594
|
+
|
|
595
|
+
// First up with a closure we increment the internal reference
|
|
596
|
+
// count. This ensures that the Rust closure environment won't
|
|
597
|
+
// be deallocated while we're invoking it.
|
|
598
|
+
state.cnt++;
|
|
599
|
+
const a = state.a;
|
|
600
|
+
state.a = 0;
|
|
601
|
+
try {
|
|
602
|
+
return f(a, state.b, ...args);
|
|
603
|
+
} finally {
|
|
604
|
+
state.a = a;
|
|
605
|
+
real._wbg_cb_unref();
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
real._wbg_cb_unref = () => {
|
|
609
|
+
if (--state.cnt === 0) {
|
|
610
|
+
state.dtor(state.a, state.b);
|
|
611
|
+
state.a = 0;
|
|
612
|
+
CLOSURE_DTORS.unregister(state);
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
616
|
+
return real;
|
|
311
617
|
}
|
|
312
618
|
|
|
313
619
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -316,55 +622,87 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
316
622
|
WASM_VECTOR_LEN = arg.length;
|
|
317
623
|
return ptr;
|
|
318
624
|
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
*/
|
|
328
|
-
export function expandNextJsTemplate(content, template_path, next_package_dir_path, replacements, injections, imports) {
|
|
329
|
-
const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
330
|
-
const len0 = WASM_VECTOR_LEN;
|
|
331
|
-
const ptr1 = passStringToWasm0(template_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
332
|
-
const len1 = WASM_VECTOR_LEN;
|
|
333
|
-
const ptr2 = passStringToWasm0(next_package_dir_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
334
|
-
const len2 = WASM_VECTOR_LEN;
|
|
335
|
-
const ret = wasm.expandNextJsTemplate(ptr0, len0, ptr1, len1, ptr2, len2, replacements, injections, imports);
|
|
336
|
-
if (ret[3]) {
|
|
337
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
625
|
+
|
|
626
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
627
|
+
if (realloc === undefined) {
|
|
628
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
629
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
630
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
631
|
+
WASM_VECTOR_LEN = buf.length;
|
|
632
|
+
return ptr;
|
|
338
633
|
}
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
634
|
+
|
|
635
|
+
let len = arg.length;
|
|
636
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
637
|
+
|
|
638
|
+
const mem = getUint8ArrayMemory0();
|
|
639
|
+
|
|
640
|
+
let offset = 0;
|
|
641
|
+
|
|
642
|
+
for (; offset < len; offset++) {
|
|
643
|
+
const code = arg.charCodeAt(offset);
|
|
644
|
+
if (code > 0x7F) break;
|
|
645
|
+
mem[ptr + offset] = code;
|
|
646
|
+
}
|
|
647
|
+
if (offset !== len) {
|
|
648
|
+
if (offset !== 0) {
|
|
649
|
+
arg = arg.slice(offset);
|
|
650
|
+
}
|
|
651
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
652
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
653
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
654
|
+
|
|
655
|
+
offset += ret.written;
|
|
656
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
WASM_VECTOR_LEN = offset;
|
|
660
|
+
return ptr;
|
|
342
661
|
}
|
|
343
662
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
663
|
+
function takeFromExternrefTable0(idx) {
|
|
664
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
665
|
+
wasm.__externref_table_dealloc_command_export(idx);
|
|
666
|
+
return value;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
670
|
+
cachedTextDecoder.decode();
|
|
671
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
672
|
+
let numBytesDecoded = 0;
|
|
673
|
+
function decodeText(ptr, len) {
|
|
674
|
+
numBytesDecoded += len;
|
|
675
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
676
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
677
|
+
cachedTextDecoder.decode();
|
|
678
|
+
numBytesDecoded = len;
|
|
356
679
|
}
|
|
357
|
-
|
|
358
|
-
if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
|
|
359
|
-
return v2;
|
|
680
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
360
681
|
}
|
|
361
682
|
|
|
362
|
-
|
|
363
|
-
|
|
683
|
+
const cachedTextEncoder = new TextEncoder();
|
|
684
|
+
|
|
685
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
686
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
687
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
688
|
+
view.set(buf);
|
|
689
|
+
return {
|
|
690
|
+
read: arg.length,
|
|
691
|
+
written: buf.length
|
|
692
|
+
};
|
|
693
|
+
};
|
|
364
694
|
}
|
|
365
695
|
|
|
366
|
-
|
|
367
|
-
|
|
696
|
+
let WASM_VECTOR_LEN = 0;
|
|
697
|
+
|
|
698
|
+
let wasmModule, wasm;
|
|
699
|
+
function __wbg_finalize_init(instance, module) {
|
|
700
|
+
wasm = instance.exports;
|
|
701
|
+
wasmModule = module;
|
|
702
|
+
cachedDataViewMemory0 = null;
|
|
703
|
+
cachedUint8ArrayMemory0 = null;
|
|
704
|
+
wasm.__wbindgen_start();
|
|
705
|
+
return wasm;
|
|
368
706
|
}
|
|
369
707
|
|
|
370
708
|
async function __wbg_load(module, imports) {
|
|
@@ -372,375 +710,41 @@ async function __wbg_load(module, imports) {
|
|
|
372
710
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
373
711
|
try {
|
|
374
712
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
375
|
-
|
|
376
713
|
} catch (e) {
|
|
377
|
-
|
|
714
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
715
|
+
|
|
716
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
378
717
|
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);
|
|
379
718
|
|
|
380
|
-
} else {
|
|
381
|
-
throw e;
|
|
382
|
-
}
|
|
719
|
+
} else { throw e; }
|
|
383
720
|
}
|
|
384
721
|
}
|
|
385
722
|
|
|
386
723
|
const bytes = await module.arrayBuffer();
|
|
387
724
|
return await WebAssembly.instantiate(bytes, imports);
|
|
388
|
-
|
|
389
725
|
} else {
|
|
390
726
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
391
727
|
|
|
392
728
|
if (instance instanceof WebAssembly.Instance) {
|
|
393
729
|
return { instance, module };
|
|
394
|
-
|
|
395
730
|
} else {
|
|
396
731
|
return instance;
|
|
397
732
|
}
|
|
398
733
|
}
|
|
399
|
-
}
|
|
400
734
|
|
|
401
|
-
function
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
imports.wbg.__wbg_String_fed4d24b68977888 = function(arg0, arg1) {
|
|
405
|
-
const ret = String(arg1);
|
|
406
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
407
|
-
const len1 = WASM_VECTOR_LEN;
|
|
408
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
409
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
410
|
-
};
|
|
411
|
-
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
412
|
-
const ret = arg0.buffer;
|
|
413
|
-
return ret;
|
|
414
|
-
};
|
|
415
|
-
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
416
|
-
const ret = arg0.call(arg1);
|
|
417
|
-
return ret;
|
|
418
|
-
}, arguments) };
|
|
419
|
-
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
420
|
-
const ret = arg0.call(arg1, arg2);
|
|
421
|
-
return ret;
|
|
422
|
-
}, arguments) };
|
|
423
|
-
imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
424
|
-
const ret = arg0.done;
|
|
425
|
-
return ret;
|
|
426
|
-
};
|
|
427
|
-
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
428
|
-
const ret = Object.entries(arg0);
|
|
429
|
-
return ret;
|
|
430
|
-
};
|
|
431
|
-
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
432
|
-
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
433
|
-
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
|
|
434
|
-
console.error(v0);
|
|
435
|
-
};
|
|
436
|
-
imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
|
|
437
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
438
|
-
}, arguments) };
|
|
439
|
-
imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
440
|
-
const ret = arg0.getTime();
|
|
441
|
-
return ret;
|
|
442
|
-
};
|
|
443
|
-
imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
|
|
444
|
-
const ret = arg0.getTimezoneOffset();
|
|
445
|
-
return ret;
|
|
446
|
-
};
|
|
447
|
-
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
448
|
-
const ret = Reflect.get(arg0, arg1);
|
|
449
|
-
return ret;
|
|
450
|
-
}, arguments) };
|
|
451
|
-
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
452
|
-
const ret = arg0[arg1 >>> 0];
|
|
453
|
-
return ret;
|
|
454
|
-
};
|
|
455
|
-
imports.wbg.__wbg_getwithrefkey_bb8f74a92cb2e784 = function(arg0, arg1) {
|
|
456
|
-
const ret = arg0[arg1];
|
|
457
|
-
return ret;
|
|
458
|
-
};
|
|
459
|
-
imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
460
|
-
let result;
|
|
461
|
-
try {
|
|
462
|
-
result = arg0 instanceof ArrayBuffer;
|
|
463
|
-
} catch (_) {
|
|
464
|
-
result = false;
|
|
465
|
-
}
|
|
466
|
-
const ret = result;
|
|
467
|
-
return ret;
|
|
468
|
-
};
|
|
469
|
-
imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
470
|
-
let result;
|
|
471
|
-
try {
|
|
472
|
-
result = arg0 instanceof Uint8Array;
|
|
473
|
-
} catch (_) {
|
|
474
|
-
result = false;
|
|
475
|
-
}
|
|
476
|
-
const ret = result;
|
|
477
|
-
return ret;
|
|
478
|
-
};
|
|
479
|
-
imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
480
|
-
const ret = Array.isArray(arg0);
|
|
481
|
-
return ret;
|
|
482
|
-
};
|
|
483
|
-
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
484
|
-
const ret = Number.isSafeInteger(arg0);
|
|
485
|
-
return ret;
|
|
486
|
-
};
|
|
487
|
-
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
488
|
-
const ret = Symbol.iterator;
|
|
489
|
-
return ret;
|
|
490
|
-
};
|
|
491
|
-
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
492
|
-
const ret = arg0.length;
|
|
493
|
-
return ret;
|
|
494
|
-
};
|
|
495
|
-
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
496
|
-
const ret = arg0.length;
|
|
497
|
-
return ret;
|
|
498
|
-
};
|
|
499
|
-
imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
|
|
500
|
-
const ret = new Date();
|
|
501
|
-
return ret;
|
|
502
|
-
};
|
|
503
|
-
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
504
|
-
try {
|
|
505
|
-
var state0 = {a: arg0, b: arg1};
|
|
506
|
-
var cb0 = (arg0, arg1) => {
|
|
507
|
-
const a = state0.a;
|
|
508
|
-
state0.a = 0;
|
|
509
|
-
try {
|
|
510
|
-
return __wbg_adapter_89(a, state0.b, arg0, arg1);
|
|
511
|
-
} finally {
|
|
512
|
-
state0.a = a;
|
|
513
|
-
}
|
|
514
|
-
};
|
|
515
|
-
const ret = new Promise(cb0);
|
|
516
|
-
return ret;
|
|
517
|
-
} finally {
|
|
518
|
-
state0.a = state0.b = 0;
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
|
-
imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) {
|
|
522
|
-
const ret = new Date(arg0);
|
|
523
|
-
return ret;
|
|
524
|
-
};
|
|
525
|
-
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
526
|
-
const ret = new Object();
|
|
527
|
-
return ret;
|
|
528
|
-
};
|
|
529
|
-
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
530
|
-
const ret = new Array();
|
|
531
|
-
return ret;
|
|
532
|
-
};
|
|
533
|
-
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
534
|
-
const ret = new Error();
|
|
535
|
-
return ret;
|
|
536
|
-
};
|
|
537
|
-
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
538
|
-
const ret = new Uint8Array(arg0);
|
|
539
|
-
return ret;
|
|
540
|
-
};
|
|
541
|
-
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
542
|
-
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
543
|
-
const ret = new Function(v0);
|
|
544
|
-
return ret;
|
|
545
|
-
};
|
|
546
|
-
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
547
|
-
const ret = arg0.next;
|
|
548
|
-
return ret;
|
|
549
|
-
};
|
|
550
|
-
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
551
|
-
const ret = arg0.next();
|
|
552
|
-
return ret;
|
|
553
|
-
}, arguments) };
|
|
554
|
-
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
555
|
-
queueMicrotask(arg0);
|
|
556
|
-
};
|
|
557
|
-
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
558
|
-
const ret = arg0.queueMicrotask;
|
|
559
|
-
return ret;
|
|
560
|
-
};
|
|
561
|
-
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
562
|
-
const ret = Promise.resolve(arg0);
|
|
563
|
-
return ret;
|
|
564
|
-
};
|
|
565
|
-
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
566
|
-
arg0[arg1 >>> 0] = arg2;
|
|
567
|
-
};
|
|
568
|
-
imports.wbg.__wbg_set_3fda3bac07393de4 = function(arg0, arg1, arg2) {
|
|
569
|
-
arg0[arg1] = arg2;
|
|
570
|
-
};
|
|
571
|
-
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
572
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
573
|
-
};
|
|
574
|
-
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
575
|
-
const ret = arg1.stack;
|
|
576
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
577
|
-
const len1 = WASM_VECTOR_LEN;
|
|
578
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
579
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
580
|
-
};
|
|
581
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
582
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
583
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
584
|
-
};
|
|
585
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
586
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
587
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
588
|
-
};
|
|
589
|
-
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
590
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
591
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
592
|
-
};
|
|
593
|
-
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
594
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
595
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
596
|
-
};
|
|
597
|
-
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
598
|
-
const ret = arg0.then(arg1);
|
|
599
|
-
return ret;
|
|
600
|
-
};
|
|
601
|
-
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
602
|
-
const ret = arg0.value;
|
|
603
|
-
return ret;
|
|
604
|
-
};
|
|
605
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
606
|
-
const ret = arg0;
|
|
607
|
-
return ret;
|
|
608
|
-
};
|
|
609
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
610
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
611
|
-
return ret;
|
|
612
|
-
};
|
|
613
|
-
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
614
|
-
const v = arg1;
|
|
615
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
616
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
617
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
618
|
-
};
|
|
619
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
620
|
-
const v = arg0;
|
|
621
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
622
|
-
return ret;
|
|
623
|
-
};
|
|
624
|
-
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
625
|
-
const obj = arg0.original;
|
|
626
|
-
if (obj.cnt-- == 1) {
|
|
627
|
-
obj.a = 0;
|
|
628
|
-
return true;
|
|
735
|
+
function expectedResponseType(type) {
|
|
736
|
+
switch (type) {
|
|
737
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
629
738
|
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
};
|
|
633
|
-
imports.wbg.__wbindgen_closure_wrapper37407 = function(arg0, arg1, arg2) {
|
|
634
|
-
const ret = makeMutClosure(arg0, arg1, 5234, __wbg_adapter_50);
|
|
635
|
-
return ret;
|
|
636
|
-
};
|
|
637
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
638
|
-
const ret = debugString(arg1);
|
|
639
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
640
|
-
const len1 = WASM_VECTOR_LEN;
|
|
641
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
642
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
643
|
-
};
|
|
644
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
645
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
646
|
-
return ret;
|
|
647
|
-
};
|
|
648
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
649
|
-
const ret = arg0 in arg1;
|
|
650
|
-
return ret;
|
|
651
|
-
};
|
|
652
|
-
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
653
|
-
const table = wasm.__wbindgen_export_4;
|
|
654
|
-
const offset = table.grow(4);
|
|
655
|
-
table.set(0, undefined);
|
|
656
|
-
table.set(offset + 0, undefined);
|
|
657
|
-
table.set(offset + 1, null);
|
|
658
|
-
table.set(offset + 2, true);
|
|
659
|
-
table.set(offset + 3, false);
|
|
660
|
-
;
|
|
661
|
-
};
|
|
662
|
-
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
663
|
-
const ret = typeof(arg0) === 'bigint';
|
|
664
|
-
return ret;
|
|
665
|
-
};
|
|
666
|
-
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
667
|
-
const ret = typeof(arg0) === 'function';
|
|
668
|
-
return ret;
|
|
669
|
-
};
|
|
670
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
671
|
-
const val = arg0;
|
|
672
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
673
|
-
return ret;
|
|
674
|
-
};
|
|
675
|
-
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
676
|
-
const ret = typeof(arg0) === 'string';
|
|
677
|
-
return ret;
|
|
678
|
-
};
|
|
679
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
680
|
-
const ret = arg0 === undefined;
|
|
681
|
-
return ret;
|
|
682
|
-
};
|
|
683
|
-
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
684
|
-
const ret = arg0 === arg1;
|
|
685
|
-
return ret;
|
|
686
|
-
};
|
|
687
|
-
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
688
|
-
const ret = arg0 == arg1;
|
|
689
|
-
return ret;
|
|
690
|
-
};
|
|
691
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
692
|
-
const ret = wasm.memory;
|
|
693
|
-
return ret;
|
|
694
|
-
};
|
|
695
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
696
|
-
const obj = arg1;
|
|
697
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
698
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
699
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
700
|
-
};
|
|
701
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
702
|
-
const ret = arg0;
|
|
703
|
-
return ret;
|
|
704
|
-
};
|
|
705
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
706
|
-
const obj = arg1;
|
|
707
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
708
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
709
|
-
var len1 = WASM_VECTOR_LEN;
|
|
710
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
711
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
712
|
-
};
|
|
713
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
714
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
715
|
-
return ret;
|
|
716
|
-
};
|
|
717
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
718
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
719
|
-
};
|
|
720
|
-
|
|
721
|
-
return imports;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
function __wbg_init_memory(imports, memory) {
|
|
725
|
-
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
function __wbg_finalize_init(instance, module) {
|
|
729
|
-
wasm = instance.exports;
|
|
730
|
-
__wbg_init.__wbindgen_wasm_module = module;
|
|
731
|
-
cachedDataViewMemory0 = null;
|
|
732
|
-
cachedUint8ArrayMemory0 = null;
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
wasm.__wbindgen_start();
|
|
736
|
-
return wasm;
|
|
739
|
+
return false;
|
|
740
|
+
}
|
|
737
741
|
}
|
|
738
742
|
|
|
739
743
|
function initSync(module) {
|
|
740
744
|
if (wasm !== undefined) return wasm;
|
|
741
745
|
|
|
742
746
|
|
|
743
|
-
if (
|
|
747
|
+
if (module !== undefined) {
|
|
744
748
|
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
745
749
|
({module} = module)
|
|
746
750
|
} else {
|
|
@@ -749,15 +753,10 @@ function initSync(module) {
|
|
|
749
753
|
}
|
|
750
754
|
|
|
751
755
|
const imports = __wbg_get_imports();
|
|
752
|
-
|
|
753
|
-
__wbg_init_memory(imports);
|
|
754
|
-
|
|
755
756
|
if (!(module instanceof WebAssembly.Module)) {
|
|
756
757
|
module = new WebAssembly.Module(module);
|
|
757
758
|
}
|
|
758
|
-
|
|
759
759
|
const instance = new WebAssembly.Instance(module, imports);
|
|
760
|
-
|
|
761
760
|
return __wbg_finalize_init(instance, module);
|
|
762
761
|
}
|
|
763
762
|
|
|
@@ -765,7 +764,7 @@ async function __wbg_init(module_or_path) {
|
|
|
765
764
|
if (wasm !== undefined) return wasm;
|
|
766
765
|
|
|
767
766
|
|
|
768
|
-
if (
|
|
767
|
+
if (module_or_path !== undefined) {
|
|
769
768
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
770
769
|
({module_or_path} = module_or_path)
|
|
771
770
|
} else {
|
|
@@ -773,7 +772,7 @@ async function __wbg_init(module_or_path) {
|
|
|
773
772
|
}
|
|
774
773
|
}
|
|
775
774
|
|
|
776
|
-
if (
|
|
775
|
+
if (module_or_path === undefined) {
|
|
777
776
|
module_or_path = new URL('wasm_bg.wasm', import.meta.url);
|
|
778
777
|
}
|
|
779
778
|
const imports = __wbg_get_imports();
|
|
@@ -782,12 +781,9 @@ async function __wbg_init(module_or_path) {
|
|
|
782
781
|
module_or_path = fetch(module_or_path);
|
|
783
782
|
}
|
|
784
783
|
|
|
785
|
-
__wbg_init_memory(imports);
|
|
786
|
-
|
|
787
784
|
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
788
785
|
|
|
789
786
|
return __wbg_finalize_init(instance, module);
|
|
790
787
|
}
|
|
791
788
|
|
|
792
|
-
export { initSync };
|
|
793
|
-
export default __wbg_init;
|
|
789
|
+
export { initSync, __wbg_init as default };
|