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