@next/swc-wasm-nodejs 14.0.5-canary.4 → 14.0.5-canary.40

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.
Files changed (4) hide show
  1. package/package.json +1 -1
  2. package/wasm.d.ts +12 -12
  3. package/wasm.js +303 -303
  4. package/wasm_bg.wasm +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-nodejs",
3
- "version": "14.0.5-canary.4",
3
+ "version": "14.0.5-canary.40",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -1,18 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {string} value
5
- * @param {any} opts
6
- * @returns {any}
7
- */
8
- export function mdxCompileSync(value: string, opts: any): any;
9
- /**
10
- * @param {string} value
11
- * @param {any} opts
12
- * @returns {Promise<any>}
13
- */
14
- export function mdxCompile(value: string, opts: any): Promise<any>;
15
- /**
16
4
  * @param {string} s
17
5
  * @param {any} opts
18
6
  * @returns {any}
@@ -48,3 +36,15 @@ export function parseSync(s: string, opts: any): any;
48
36
  * @returns {Promise<any>}
49
37
  */
50
38
  export function parse(s: string, opts: any): Promise<any>;
39
+ /**
40
+ * @param {string} value
41
+ * @param {any} opts
42
+ * @returns {any}
43
+ */
44
+ export function mdxCompileSync(value: string, opts: any): any;
45
+ /**
46
+ * @param {string} value
47
+ * @param {any} opts
48
+ * @returns {Promise<any>}
49
+ */
50
+ export function mdxCompile(value: string, opts: any): Promise<any>;
package/wasm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextDecoder, TextEncoder } = require(`util`);
4
+ const { TextEncoder, TextDecoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
@@ -23,18 +23,7 @@ function takeObject(idx) {
23
23
  return ret;
24
24
  }
25
25
 
26
- function addHeapObject(obj) {
27
- if (heap_next === heap.length) heap.push(heap.length + 1);
28
- const idx = heap_next;
29
- heap_next = heap[idx];
30
-
31
- heap[idx] = obj;
32
- return idx;
33
- }
34
-
35
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
36
-
37
- cachedTextDecoder.decode();
26
+ let WASM_VECTOR_LEN = 0;
38
27
 
39
28
  let cachedUint8Memory0 = null;
40
29
 
@@ -45,34 +34,6 @@ function getUint8Memory0() {
45
34
  return cachedUint8Memory0;
46
35
  }
47
36
 
48
- function getStringFromWasm0(ptr, len) {
49
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
- }
51
-
52
- function isLikeNone(x) {
53
- return x === undefined || x === null;
54
- }
55
-
56
- let cachedFloat64Memory0 = null;
57
-
58
- function getFloat64Memory0() {
59
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
60
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
61
- }
62
- return cachedFloat64Memory0;
63
- }
64
-
65
- let cachedInt32Memory0 = null;
66
-
67
- function getInt32Memory0() {
68
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
69
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
70
- }
71
- return cachedInt32Memory0;
72
- }
73
-
74
- let WASM_VECTOR_LEN = 0;
75
-
76
37
  let cachedTextEncoder = new TextEncoder('utf-8');
77
38
 
78
39
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -126,6 +87,45 @@ function passStringToWasm0(arg, malloc, realloc) {
126
87
  return ptr;
127
88
  }
128
89
 
90
+ function isLikeNone(x) {
91
+ return x === undefined || x === null;
92
+ }
93
+
94
+ let cachedInt32Memory0 = null;
95
+
96
+ function getInt32Memory0() {
97
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
98
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
99
+ }
100
+ return cachedInt32Memory0;
101
+ }
102
+
103
+ function addHeapObject(obj) {
104
+ if (heap_next === heap.length) heap.push(heap.length + 1);
105
+ const idx = heap_next;
106
+ heap_next = heap[idx];
107
+
108
+ heap[idx] = obj;
109
+ return idx;
110
+ }
111
+
112
+ let cachedFloat64Memory0 = null;
113
+
114
+ function getFloat64Memory0() {
115
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
116
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
117
+ }
118
+ return cachedFloat64Memory0;
119
+ }
120
+
121
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
122
+
123
+ cachedTextDecoder.decode();
124
+
125
+ function getStringFromWasm0(ptr, len) {
126
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
127
+ }
128
+
129
129
  let cachedBigInt64Memory0 = null;
130
130
 
131
131
  function getBigInt64Memory0() {
@@ -225,37 +225,18 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
  function __wbg_adapter_48(arg0, arg1, arg2) {
228
- wasm.wasm_bindgen_48203e07820231a3___convert__closures__invoke1_mut___wasm_bindgen_48203e07820231a3___JsValue_____(arg0, arg1, addHeapObject(arg2));
229
- }
230
-
231
- function getCachedStringFromWasm0(ptr, len) {
232
- if (ptr === 0) {
233
- return getObject(len);
234
- } else {
235
- return getStringFromWasm0(ptr, len);
236
- }
237
- }
238
-
239
- function handleError(f, args) {
240
- try {
241
- return f.apply(this, args);
242
- } catch (e) {
243
- wasm.__wbindgen_exn_store(addHeapObject(e));
244
- }
245
- }
246
- function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
247
- wasm.wasm_bindgen_48203e07820231a3___convert__closures__invoke2_mut___wasm_bindgen_48203e07820231a3___JsValue__wasm_bindgen_48203e07820231a3___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
228
+ wasm.wasm_bindgen_3fb300003f18f35c___convert__closures__invoke1_mut___wasm_bindgen_3fb300003f18f35c___JsValue_____(arg0, arg1, addHeapObject(arg2));
248
229
  }
249
230
 
250
231
  /**
251
- * @param {string} value
232
+ * @param {string} s
252
233
  * @param {any} opts
253
234
  * @returns {any}
254
235
  */
255
- module.exports.mdxCompileSync = function(value, opts) {
236
+ module.exports.minifySync = function(s, opts) {
256
237
  try {
257
238
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
258
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
239
+ wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
259
240
  var r0 = getInt32Memory0()[retptr / 4 + 0];
260
241
  var r1 = getInt32Memory0()[retptr / 4 + 1];
261
242
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -269,24 +250,24 @@ module.exports.mdxCompileSync = function(value, opts) {
269
250
  };
270
251
 
271
252
  /**
272
- * @param {string} value
253
+ * @param {string} s
273
254
  * @param {any} opts
274
255
  * @returns {Promise<any>}
275
256
  */
276
- module.exports.mdxCompile = function(value, opts) {
277
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
257
+ module.exports.minify = function(s, opts) {
258
+ const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
278
259
  return takeObject(ret);
279
260
  };
280
261
 
281
262
  /**
282
- * @param {string} s
263
+ * @param {any} s
283
264
  * @param {any} opts
284
265
  * @returns {any}
285
266
  */
286
- module.exports.minifySync = function(s, opts) {
267
+ module.exports.transformSync = function(s, opts) {
287
268
  try {
288
269
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
289
- wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
270
+ wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
290
271
  var r0 = getInt32Memory0()[retptr / 4 + 0];
291
272
  var r1 = getInt32Memory0()[retptr / 4 + 1];
292
273
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -300,24 +281,24 @@ module.exports.minifySync = function(s, opts) {
300
281
  };
301
282
 
302
283
  /**
303
- * @param {string} s
284
+ * @param {any} s
304
285
  * @param {any} opts
305
286
  * @returns {Promise<any>}
306
287
  */
307
- module.exports.minify = function(s, opts) {
308
- const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
288
+ module.exports.transform = function(s, opts) {
289
+ const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
309
290
  return takeObject(ret);
310
291
  };
311
292
 
312
293
  /**
313
- * @param {any} s
294
+ * @param {string} s
314
295
  * @param {any} opts
315
296
  * @returns {any}
316
297
  */
317
- module.exports.transformSync = function(s, opts) {
298
+ module.exports.parseSync = function(s, opts) {
318
299
  try {
319
300
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
320
- wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
301
+ wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
321
302
  var r0 = getInt32Memory0()[retptr / 4 + 0];
322
303
  var r1 = getInt32Memory0()[retptr / 4 + 1];
323
304
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -331,24 +312,24 @@ module.exports.transformSync = function(s, opts) {
331
312
  };
332
313
 
333
314
  /**
334
- * @param {any} s
315
+ * @param {string} s
335
316
  * @param {any} opts
336
317
  * @returns {Promise<any>}
337
318
  */
338
- module.exports.transform = function(s, opts) {
339
- const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
319
+ module.exports.parse = function(s, opts) {
320
+ const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
340
321
  return takeObject(ret);
341
322
  };
342
323
 
343
324
  /**
344
- * @param {string} s
325
+ * @param {string} value
345
326
  * @param {any} opts
346
327
  * @returns {any}
347
328
  */
348
- module.exports.parseSync = function(s, opts) {
329
+ module.exports.mdxCompileSync = function(value, opts) {
349
330
  try {
350
331
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
351
- wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
332
+ wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
352
333
  var r0 = getInt32Memory0()[retptr / 4 + 0];
353
334
  var r1 = getInt32Memory0()[retptr / 4 + 1];
354
335
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -362,44 +343,111 @@ module.exports.parseSync = function(s, opts) {
362
343
  };
363
344
 
364
345
  /**
365
- * @param {string} s
346
+ * @param {string} value
366
347
  * @param {any} opts
367
348
  * @returns {Promise<any>}
368
349
  */
369
- module.exports.parse = function(s, opts) {
370
- const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
350
+ module.exports.mdxCompile = function(value, opts) {
351
+ const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
371
352
  return takeObject(ret);
372
353
  };
373
354
 
374
- module.exports.__wbg_new0_25059e40b1c02766 = function() {
375
- const ret = new Date();
376
- return addHeapObject(ret);
355
+ function getCachedStringFromWasm0(ptr, len) {
356
+ if (ptr === 0) {
357
+ return getObject(len);
358
+ } else {
359
+ return getStringFromWasm0(ptr, len);
360
+ }
361
+ }
362
+
363
+ function handleError(f, args) {
364
+ try {
365
+ return f.apply(this, args);
366
+ } catch (e) {
367
+ wasm.__wbindgen_exn_store(addHeapObject(e));
368
+ }
369
+ }
370
+ function __wbg_adapter_121(arg0, arg1, arg2, arg3) {
371
+ wasm.wasm_bindgen_3fb300003f18f35c___convert__closures__invoke2_mut___wasm_bindgen_3fb300003f18f35c___JsValue__wasm_bindgen_3fb300003f18f35c___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
372
+ }
373
+
374
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
375
+ takeObject(arg0);
377
376
  };
378
377
 
379
- module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
380
- const ret = getObject(arg0).getTime();
378
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
379
+ const obj = getObject(arg1);
380
+ const ret = typeof(obj) === 'string' ? obj : undefined;
381
+ var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
382
+ var len0 = WASM_VECTOR_LEN;
383
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
384
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
385
+ };
386
+
387
+ module.exports.__wbindgen_boolean_get = function(arg0) {
388
+ const v = getObject(arg0);
389
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
381
390
  return ret;
382
391
  };
383
392
 
384
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
385
- takeObject(arg0);
393
+ module.exports.__wbindgen_is_bigint = function(arg0) {
394
+ const ret = typeof(getObject(arg0)) === 'bigint';
395
+ return ret;
386
396
  };
387
397
 
388
- module.exports.__wbindgen_number_new = function(arg0) {
398
+ module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
389
399
  const ret = arg0;
390
400
  return addHeapObject(ret);
391
401
  };
392
402
 
393
- module.exports.__wbg_new_f127e324c1313064 = function(arg0) {
394
- const ret = new Date(getObject(arg0));
403
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
404
+ const ret = getObject(arg0) === getObject(arg1);
405
+ return ret;
406
+ };
407
+
408
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
409
+ const ret = BigInt.asUintN(64, arg0);
395
410
  return addHeapObject(ret);
396
411
  };
397
412
 
398
- module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
399
- const ret = getObject(arg0).getTimezoneOffset();
413
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
414
+ const obj = getObject(arg1);
415
+ const ret = typeof(obj) === 'number' ? obj : undefined;
416
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
417
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
418
+ };
419
+
420
+ module.exports.__wbindgen_is_object = function(arg0) {
421
+ const val = getObject(arg0);
422
+ const ret = typeof(val) === 'object' && val !== null;
423
+ return ret;
424
+ };
425
+
426
+ module.exports.__wbindgen_in = function(arg0, arg1) {
427
+ const ret = getObject(arg0) in getObject(arg1);
428
+ return ret;
429
+ };
430
+
431
+ module.exports.__wbindgen_is_string = function(arg0) {
432
+ const ret = typeof(getObject(arg0)) === 'string';
433
+ return ret;
434
+ };
435
+
436
+ module.exports.__wbindgen_is_undefined = function(arg0) {
437
+ const ret = getObject(arg0) === undefined;
400
438
  return ret;
401
439
  };
402
440
 
441
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
442
+ const ret = getStringFromWasm0(arg0, arg1);
443
+ return addHeapObject(ret);
444
+ };
445
+
446
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
447
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
448
+ return addHeapObject(ret);
449
+ };
450
+
403
451
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
404
452
  const ret = new Error();
405
453
  return addHeapObject(ret);
@@ -419,82 +467,38 @@ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
419
467
  console.error(v0);
420
468
  };
421
469
 
422
- module.exports.__wbindgen_memory = function() {
423
- const ret = wasm.memory;
424
- return addHeapObject(ret);
470
+ module.exports.__wbindgen_cb_drop = function(arg0) {
471
+ const obj = takeObject(arg0).original;
472
+ if (obj.cnt-- == 1) {
473
+ obj.a = 0;
474
+ return true;
475
+ }
476
+ const ret = false;
477
+ return ret;
425
478
  };
426
479
 
427
- module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
428
- const ret = getObject(arg0).buffer;
480
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
481
+ const ret = getObject(arg0);
429
482
  return addHeapObject(ret);
430
483
  };
431
484
 
432
- module.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) {
433
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
434
- return addHeapObject(ret);
485
+ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
486
+ const ret = getObject(arg0) == getObject(arg1);
487
+ return ret;
435
488
  };
436
489
 
437
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
438
- getObject(arg0).randomFillSync(takeObject(arg1));
439
- }, arguments) };
440
-
441
- module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
442
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
443
- return addHeapObject(ret);
444
- };
445
-
446
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
447
- getObject(arg0).getRandomValues(getObject(arg1));
448
- }, arguments) };
449
-
450
- module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
451
- const ret = new Uint8Array(getObject(arg0));
452
- return addHeapObject(ret);
453
- };
454
-
455
- module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
456
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
457
- };
458
-
459
- module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
460
- const ret = self.self;
461
- return addHeapObject(ret);
462
- }, arguments) };
463
-
464
- module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
465
- const ret = window.window;
466
- return addHeapObject(ret);
467
- }, arguments) };
468
-
469
- module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
470
- const ret = globalThis.globalThis;
471
- return addHeapObject(ret);
472
- }, arguments) };
473
-
474
- module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
475
- const ret = global.global;
490
+ module.exports.__wbindgen_number_new = function(arg0) {
491
+ const ret = arg0;
476
492
  return addHeapObject(ret);
477
- }, arguments) };
478
-
479
- module.exports.__wbindgen_is_undefined = function(arg0) {
480
- const ret = getObject(arg0) === undefined;
481
- return ret;
482
493
  };
483
494
 
484
- module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
485
- var v0 = getCachedStringFromWasm0(arg0, arg1);
486
- const ret = new Function(v0);
495
+ module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
496
+ const ret = getObject(arg0)[getObject(arg1)];
487
497
  return addHeapObject(ret);
488
498
  };
489
499
 
490
- module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
491
- const ret = getObject(arg0).call(getObject(arg1));
492
- return addHeapObject(ret);
493
- }, arguments) };
494
-
495
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
496
- const ret = getObject(arg0);
497
- return addHeapObject(ret);
500
+ module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
501
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
498
502
  };
499
503
 
500
504
  module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
@@ -502,12 +506,6 @@ module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
502
506
  return addHeapObject(ret);
503
507
  };
504
508
 
505
- module.exports.__wbindgen_is_object = function(arg0) {
506
- const val = getObject(arg0);
507
- const ret = typeof(val) === 'object' && val !== null;
508
- return ret;
509
- };
510
-
511
509
  module.exports.__wbg_process_298734cf255a885d = function(arg0) {
512
510
  const ret = getObject(arg0).process;
513
511
  return addHeapObject(ret);
@@ -523,41 +521,65 @@ module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
523
521
  return addHeapObject(ret);
524
522
  };
525
523
 
526
- module.exports.__wbindgen_is_string = function(arg0) {
527
- const ret = typeof(getObject(arg0)) === 'string';
528
- return ret;
529
- };
530
-
531
524
  module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
532
525
  const ret = getObject(arg0).msCrypto;
533
526
  return addHeapObject(ret);
534
527
  };
535
528
 
536
- module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
537
- const ret = new Uint8Array(arg0 >>> 0);
538
- return addHeapObject(ret);
539
- };
540
-
541
529
  module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
542
530
  const ret = module.require;
543
531
  return addHeapObject(ret);
544
532
  }, arguments) };
545
533
 
534
+ module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
535
+ getObject(arg0).randomFillSync(takeObject(arg1));
536
+ }, arguments) };
537
+
538
+ module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
539
+ getObject(arg0).getRandomValues(getObject(arg1));
540
+ }, arguments) };
541
+
542
+ module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
543
+ const ret = getObject(arg0)[arg1 >>> 0];
544
+ return addHeapObject(ret);
545
+ };
546
+
547
+ module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
548
+ const ret = getObject(arg0).length;
549
+ return ret;
550
+ };
551
+
546
552
  module.exports.__wbindgen_is_function = function(arg0) {
547
553
  const ret = typeof(getObject(arg0)) === 'function';
548
554
  return ret;
549
555
  };
550
556
 
551
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
552
- const ret = getStringFromWasm0(arg0, arg1);
557
+ module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
558
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
559
+ const ret = new Function(v0);
553
560
  return addHeapObject(ret);
554
561
  };
555
562
 
556
- module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
557
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
563
+ module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
564
+ const ret = getObject(arg0).next;
565
+ return addHeapObject(ret);
566
+ };
567
+
568
+ module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
569
+ const ret = getObject(arg0).next();
558
570
  return addHeapObject(ret);
559
571
  }, arguments) };
560
572
 
573
+ module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
574
+ const ret = getObject(arg0).done;
575
+ return ret;
576
+ };
577
+
578
+ module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
579
+ const ret = getObject(arg0).value;
580
+ return addHeapObject(ret);
581
+ };
582
+
561
583
  module.exports.__wbg_iterator_55f114446221aa5a = function() {
562
584
  const ret = Symbol.iterator;
563
585
  return addHeapObject(ret);
@@ -568,61 +590,33 @@ module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(func
568
590
  return addHeapObject(ret);
569
591
  }, arguments) };
570
592
 
571
- module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
572
- const ret = getObject(arg0).next;
593
+ module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
594
+ const ret = getObject(arg0).call(getObject(arg1));
573
595
  return addHeapObject(ret);
574
- };
575
-
576
- module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
577
- const ret = getObject(arg0).length;
578
- return ret;
579
- };
596
+ }, arguments) };
580
597
 
581
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
582
- const ret = new Error(getStringFromWasm0(arg0, arg1));
598
+ module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
599
+ const ret = self.self;
583
600
  return addHeapObject(ret);
584
- };
601
+ }, arguments) };
585
602
 
586
- module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
587
- const ret = Object.entries(getObject(arg0));
603
+ module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
604
+ const ret = window.window;
588
605
  return addHeapObject(ret);
589
- };
590
-
591
- module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
592
- const ret = getObject(arg0) == getObject(arg1);
593
- return ret;
594
- };
595
-
596
- module.exports.__wbindgen_boolean_get = function(arg0) {
597
- const v = getObject(arg0);
598
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
599
- return ret;
600
- };
606
+ }, arguments) };
601
607
 
602
- module.exports.__wbindgen_number_get = function(arg0, arg1) {
603
- const obj = getObject(arg1);
604
- const ret = typeof(obj) === 'number' ? obj : undefined;
605
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
606
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
607
- };
608
+ module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
609
+ const ret = globalThis.globalThis;
610
+ return addHeapObject(ret);
611
+ }, arguments) };
608
612
 
609
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
610
- const obj = getObject(arg1);
611
- const ret = typeof(obj) === 'string' ? obj : undefined;
612
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
613
- var len0 = WASM_VECTOR_LEN;
614
- getInt32Memory0()[arg0 / 4 + 1] = len0;
615
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
616
- };
613
+ module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
614
+ const ret = global.global;
615
+ return addHeapObject(ret);
616
+ }, arguments) };
617
617
 
618
- module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
619
- let result;
620
- try {
621
- result = getObject(arg0) instanceof Uint8Array;
622
- } catch {
623
- result = false;
624
- }
625
- const ret = result;
618
+ module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
619
+ const ret = Array.isArray(getObject(arg0));
626
620
  return ret;
627
621
  };
628
622
 
@@ -637,75 +631,38 @@ module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
637
631
  return ret;
638
632
  };
639
633
 
640
- module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
641
- const ret = getObject(arg0)[arg1 >>> 0];
642
- return addHeapObject(ret);
643
- };
644
-
645
- module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
646
- const ret = getObject(arg0).next();
634
+ module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
635
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
647
636
  return addHeapObject(ret);
648
637
  }, arguments) };
649
638
 
650
- module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
651
- const ret = getObject(arg0).done;
639
+ module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
640
+ const ret = Number.isSafeInteger(getObject(arg0));
652
641
  return ret;
653
642
  };
654
643
 
655
- module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
656
- const ret = getObject(arg0).value;
657
- return addHeapObject(ret);
658
- };
659
-
660
- module.exports.__wbindgen_is_bigint = function(arg0) {
661
- const ret = typeof(getObject(arg0)) === 'bigint';
644
+ module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
645
+ const ret = getObject(arg0).getTime();
662
646
  return ret;
663
647
  };
664
648
 
665
- module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
666
- const v = getObject(arg1);
667
- const ret = typeof(v) === 'bigint' ? v : undefined;
668
- getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
669
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
670
- };
671
-
672
- module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
673
- const ret = arg0;
674
- return addHeapObject(ret);
675
- };
676
-
677
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
678
- const ret = getObject(arg0) === getObject(arg1);
649
+ module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
650
+ const ret = getObject(arg0).getTimezoneOffset();
679
651
  return ret;
680
652
  };
681
653
 
682
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
683
- const ret = BigInt.asUintN(64, arg0);
654
+ module.exports.__wbg_new_f127e324c1313064 = function(arg0) {
655
+ const ret = new Date(getObject(arg0));
684
656
  return addHeapObject(ret);
685
657
  };
686
658
 
687
- module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
688
- const ret = Number.isSafeInteger(getObject(arg0));
689
- return ret;
690
- };
691
-
692
- module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
693
- const ret = Array.isArray(getObject(arg0));
694
- return ret;
695
- };
696
-
697
- module.exports.__wbindgen_in = function(arg0, arg1) {
698
- const ret = getObject(arg0) in getObject(arg1);
699
- return ret;
700
- };
701
-
702
- module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
703
- const ret = getObject(arg0).length;
704
- return ret;
659
+ module.exports.__wbg_new0_25059e40b1c02766 = function() {
660
+ const ret = new Date();
661
+ return addHeapObject(ret);
705
662
  };
706
663
 
707
- module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
708
- const ret = getObject(arg0)[getObject(arg1)];
664
+ module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
665
+ const ret = Object.entries(getObject(arg0));
709
666
  return addHeapObject(ret);
710
667
  };
711
668
 
@@ -714,10 +671,6 @@ module.exports.__wbg_new_f9876326328f45ed = function() {
714
671
  return addHeapObject(ret);
715
672
  };
716
673
 
717
- module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
718
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
719
- };
720
-
721
674
  module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
722
675
  try {
723
676
  var state0 = {a: arg0, b: arg1};
@@ -725,7 +678,7 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
725
678
  const a = state0.a;
726
679
  state0.a = 0;
727
680
  try {
728
- return __wbg_adapter_109(a, state0.b, arg0, arg1);
681
+ return __wbg_adapter_121(a, state0.b, arg0, arg1);
729
682
  } finally {
730
683
  state0.a = a;
731
684
  }
@@ -737,6 +690,68 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
737
690
  }
738
691
  };
739
692
 
693
+ module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
694
+ const ret = Promise.resolve(getObject(arg0));
695
+ return addHeapObject(ret);
696
+ };
697
+
698
+ module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
699
+ const ret = getObject(arg0).then(getObject(arg1));
700
+ return addHeapObject(ret);
701
+ };
702
+
703
+ module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
704
+ const ret = getObject(arg0).buffer;
705
+ return addHeapObject(ret);
706
+ };
707
+
708
+ module.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) {
709
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
710
+ return addHeapObject(ret);
711
+ };
712
+
713
+ module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
714
+ const ret = new Uint8Array(getObject(arg0));
715
+ return addHeapObject(ret);
716
+ };
717
+
718
+ module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
719
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
720
+ };
721
+
722
+ module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
723
+ const ret = getObject(arg0).length;
724
+ return ret;
725
+ };
726
+
727
+ module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
728
+ let result;
729
+ try {
730
+ result = getObject(arg0) instanceof Uint8Array;
731
+ } catch {
732
+ result = false;
733
+ }
734
+ const ret = result;
735
+ return ret;
736
+ };
737
+
738
+ module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
739
+ const ret = new Uint8Array(arg0 >>> 0);
740
+ return addHeapObject(ret);
741
+ };
742
+
743
+ module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
744
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
745
+ return addHeapObject(ret);
746
+ };
747
+
748
+ module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
749
+ const v = getObject(arg1);
750
+ const ret = typeof(v) === 'bigint' ? v : undefined;
751
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
752
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
753
+ };
754
+
740
755
  module.exports.__wbindgen_debug_string = function(arg0, arg1) {
741
756
  const ret = debugString(getObject(arg1));
742
757
  const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -749,28 +764,13 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
749
764
  throw new Error(getStringFromWasm0(arg0, arg1));
750
765
  };
751
766
 
752
- module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
753
- const ret = getObject(arg0).then(getObject(arg1));
754
- return addHeapObject(ret);
755
- };
756
-
757
- module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
758
- const ret = Promise.resolve(getObject(arg0));
767
+ module.exports.__wbindgen_memory = function() {
768
+ const ret = wasm.memory;
759
769
  return addHeapObject(ret);
760
770
  };
761
771
 
762
- module.exports.__wbindgen_cb_drop = function(arg0) {
763
- const obj = takeObject(arg0).original;
764
- if (obj.cnt-- == 1) {
765
- obj.a = 0;
766
- return true;
767
- }
768
- const ret = false;
769
- return ret;
770
- };
771
-
772
- module.exports.__wbindgen_closure_wrapper23872 = function(arg0, arg1, arg2) {
773
- const ret = makeMutClosure(arg0, arg1, 361, __wbg_adapter_48);
772
+ module.exports.__wbindgen_closure_wrapper14564 = function(arg0, arg1, arg2) {
773
+ const ret = makeMutClosure(arg0, arg1, 3220, __wbg_adapter_48);
774
774
  return addHeapObject(ret);
775
775
  };
776
776
 
package/wasm_bg.wasm CHANGED
Binary file