@next/swc-wasm-nodejs 15.0.0-canary.19 → 15.0.0-canary.190

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 +2 -2
  2. package/wasm.d.ts +12 -12
  3. package/wasm.js +269 -269
  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": "15.0.0-canary.19",
3
+ "version": "15.0.0-canary.190",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
@@ -11,6 +11,6 @@
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "https://github.com/vercel/next.js",
14
- "directory": "packages/next-swc/crates/wasm"
14
+ "directory": "crates/wasm"
15
15
  }
16
16
  }
package/wasm.d.ts CHANGED
@@ -1,6 +1,18 @@
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
+ /**
4
16
  * @param {string} s
5
17
  * @param {any} opts
6
18
  * @returns {any}
@@ -36,15 +48,3 @@ export function parseSync(s: string, opts: any): any;
36
48
  * @returns {Promise<any>}
37
49
  */
38
50
  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 { TextEncoder, TextDecoder } = require(`util`);
4
+ const { TextDecoder, TextEncoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
@@ -23,7 +23,18 @@ function takeObject(idx) {
23
23
  return ret;
24
24
  }
25
25
 
26
- let WASM_VECTOR_LEN = 0;
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();
27
38
 
28
39
  let cachedUint8Memory0 = null;
29
40
 
@@ -34,6 +45,13 @@ function getUint8Memory0() {
34
45
  return cachedUint8Memory0;
35
46
  }
36
47
 
48
+ function getStringFromWasm0(ptr, len) {
49
+ ptr = ptr >>> 0;
50
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
51
+ }
52
+
53
+ let WASM_VECTOR_LEN = 0;
54
+
37
55
  let cachedTextEncoder = new TextEncoder('utf-8');
38
56
 
39
57
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -101,15 +119,6 @@ function getInt32Memory0() {
101
119
  return cachedInt32Memory0;
102
120
  }
103
121
 
104
- function addHeapObject(obj) {
105
- if (heap_next === heap.length) heap.push(heap.length + 1);
106
- const idx = heap_next;
107
- heap_next = heap[idx];
108
-
109
- heap[idx] = obj;
110
- return idx;
111
- }
112
-
113
122
  let cachedFloat64Memory0 = null;
114
123
 
115
124
  function getFloat64Memory0() {
@@ -119,15 +128,6 @@ function getFloat64Memory0() {
119
128
  return cachedFloat64Memory0;
120
129
  }
121
130
 
122
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
123
-
124
- cachedTextDecoder.decode();
125
-
126
- function getStringFromWasm0(ptr, len) {
127
- ptr = ptr >>> 0;
128
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
129
- }
130
-
131
131
  let cachedBigInt64Memory0 = null;
132
132
 
133
133
  function getBigInt64Memory0() {
@@ -233,18 +233,37 @@ function makeMutClosure(arg0, arg1, dtor, f) {
233
233
  return real;
234
234
  }
235
235
  function __wbg_adapter_48(arg0, arg1, arg2) {
236
- wasm._dyn_core_aeabf9a32a3a1d83___ops__function__FnMut_______Output______as_wasm_bindgen_d80982d5510bb6b2___closure__WasmClosure___describe__invoke___wasm_bindgen_d80982d5510bb6b2___JsValue_____(arg0, arg1, addHeapObject(arg2));
236
+ wasm._dyn_core_575a3b57185f9003___ops__function__FnMut_______Output______as_wasm_bindgen_9ae5c17cf8bb59fd___closure__WasmClosure___describe__invoke___wasm_bindgen_9ae5c17cf8bb59fd___JsValue_____(arg0, arg1, addHeapObject(arg2));
237
+ }
238
+
239
+ function getCachedStringFromWasm0(ptr, len) {
240
+ if (ptr === 0) {
241
+ return getObject(len);
242
+ } else {
243
+ return getStringFromWasm0(ptr, len);
244
+ }
245
+ }
246
+
247
+ function handleError(f, args) {
248
+ try {
249
+ return f.apply(this, args);
250
+ } catch (e) {
251
+ wasm.__wbindgen_exn_store(addHeapObject(e));
252
+ }
253
+ }
254
+ function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
255
+ wasm.wasm_bindgen_9ae5c17cf8bb59fd___convert__closures__invoke2_mut___wasm_bindgen_9ae5c17cf8bb59fd___JsValue__wasm_bindgen_9ae5c17cf8bb59fd___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
237
256
  }
238
257
 
239
258
  /**
240
- * @param {string} s
259
+ * @param {string} value
241
260
  * @param {any} opts
242
261
  * @returns {any}
243
262
  */
244
- module.exports.minifySync = function(s, opts) {
263
+ module.exports.mdxCompileSync = function(value, opts) {
245
264
  try {
246
265
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
247
- wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
266
+ wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
248
267
  var r0 = getInt32Memory0()[retptr / 4 + 0];
249
268
  var r1 = getInt32Memory0()[retptr / 4 + 1];
250
269
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -258,24 +277,24 @@ module.exports.minifySync = function(s, opts) {
258
277
  };
259
278
 
260
279
  /**
261
- * @param {string} s
280
+ * @param {string} value
262
281
  * @param {any} opts
263
282
  * @returns {Promise<any>}
264
283
  */
265
- module.exports.minify = function(s, opts) {
266
- const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
284
+ module.exports.mdxCompile = function(value, opts) {
285
+ const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
267
286
  return takeObject(ret);
268
287
  };
269
288
 
270
289
  /**
271
- * @param {any} s
290
+ * @param {string} s
272
291
  * @param {any} opts
273
292
  * @returns {any}
274
293
  */
275
- module.exports.transformSync = function(s, opts) {
294
+ module.exports.minifySync = function(s, opts) {
276
295
  try {
277
296
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
278
- wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
297
+ wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
279
298
  var r0 = getInt32Memory0()[retptr / 4 + 0];
280
299
  var r1 = getInt32Memory0()[retptr / 4 + 1];
281
300
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -289,24 +308,24 @@ module.exports.transformSync = function(s, opts) {
289
308
  };
290
309
 
291
310
  /**
292
- * @param {any} s
311
+ * @param {string} s
293
312
  * @param {any} opts
294
313
  * @returns {Promise<any>}
295
314
  */
296
- module.exports.transform = function(s, opts) {
297
- const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
315
+ module.exports.minify = function(s, opts) {
316
+ const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
298
317
  return takeObject(ret);
299
318
  };
300
319
 
301
320
  /**
302
- * @param {string} s
321
+ * @param {any} s
303
322
  * @param {any} opts
304
323
  * @returns {any}
305
324
  */
306
- module.exports.parseSync = function(s, opts) {
325
+ module.exports.transformSync = function(s, opts) {
307
326
  try {
308
327
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
309
- wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
328
+ wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
310
329
  var r0 = getInt32Memory0()[retptr / 4 + 0];
311
330
  var r1 = getInt32Memory0()[retptr / 4 + 1];
312
331
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -320,24 +339,24 @@ module.exports.parseSync = function(s, opts) {
320
339
  };
321
340
 
322
341
  /**
323
- * @param {string} s
342
+ * @param {any} s
324
343
  * @param {any} opts
325
344
  * @returns {Promise<any>}
326
345
  */
327
- module.exports.parse = function(s, opts) {
328
- const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
346
+ module.exports.transform = function(s, opts) {
347
+ const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
329
348
  return takeObject(ret);
330
349
  };
331
350
 
332
351
  /**
333
- * @param {string} value
352
+ * @param {string} s
334
353
  * @param {any} opts
335
354
  * @returns {any}
336
355
  */
337
- module.exports.mdxCompileSync = function(value, opts) {
356
+ module.exports.parseSync = function(s, opts) {
338
357
  try {
339
358
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
340
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
359
+ wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
341
360
  var r0 = getInt32Memory0()[retptr / 4 + 0];
342
361
  var r1 = getInt32Memory0()[retptr / 4 + 1];
343
362
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -351,109 +370,42 @@ module.exports.mdxCompileSync = function(value, opts) {
351
370
  };
352
371
 
353
372
  /**
354
- * @param {string} value
373
+ * @param {string} s
355
374
  * @param {any} opts
356
375
  * @returns {Promise<any>}
357
376
  */
358
- module.exports.mdxCompile = function(value, opts) {
359
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
377
+ module.exports.parse = function(s, opts) {
378
+ const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
360
379
  return takeObject(ret);
361
380
  };
362
381
 
363
- function getCachedStringFromWasm0(ptr, len) {
364
- if (ptr === 0) {
365
- return getObject(len);
366
- } else {
367
- return getStringFromWasm0(ptr, len);
368
- }
369
- }
370
-
371
- function handleError(f, args) {
372
- try {
373
- return f.apply(this, args);
374
- } catch (e) {
375
- wasm.__wbindgen_exn_store(addHeapObject(e));
376
- }
377
- }
378
- function __wbg_adapter_125(arg0, arg1, arg2, arg3) {
379
- wasm.wasm_bindgen_d80982d5510bb6b2___convert__closures__invoke2_mut___wasm_bindgen_d80982d5510bb6b2___JsValue__wasm_bindgen_d80982d5510bb6b2___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
380
- }
381
-
382
382
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
383
383
  takeObject(arg0);
384
384
  };
385
385
 
386
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
387
- const obj = getObject(arg1);
388
- const ret = typeof(obj) === 'string' ? obj : undefined;
389
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
390
- var len1 = WASM_VECTOR_LEN;
391
- getInt32Memory0()[arg0 / 4 + 1] = len1;
392
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
393
- };
394
-
395
- module.exports.__wbindgen_boolean_get = function(arg0) {
396
- const v = getObject(arg0);
397
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
398
- return ret;
399
- };
400
-
401
- module.exports.__wbindgen_is_bigint = function(arg0) {
402
- const ret = typeof(getObject(arg0)) === 'bigint';
403
- return ret;
404
- };
405
-
406
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
407
- const ret = BigInt.asUintN(64, arg0);
386
+ module.exports.__wbg_new0_7a6141101f2206da = function() {
387
+ const ret = new Date();
408
388
  return addHeapObject(ret);
409
389
  };
410
390
 
411
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
412
- const ret = getObject(arg0) === getObject(arg1);
413
- return ret;
414
- };
415
-
416
- module.exports.__wbindgen_number_get = function(arg0, arg1) {
417
- const obj = getObject(arg1);
418
- const ret = typeof(obj) === 'number' ? obj : undefined;
419
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
420
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
421
- };
422
-
423
- module.exports.__wbindgen_is_object = function(arg0) {
424
- const val = getObject(arg0);
425
- const ret = typeof(val) === 'object' && val !== null;
426
- return ret;
427
- };
428
-
429
- module.exports.__wbindgen_in = function(arg0, arg1) {
430
- const ret = getObject(arg0) in getObject(arg1);
431
- return ret;
432
- };
433
-
434
- module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
391
+ module.exports.__wbindgen_number_new = function(arg0) {
435
392
  const ret = arg0;
436
393
  return addHeapObject(ret);
437
394
  };
438
395
 
439
- module.exports.__wbindgen_is_string = function(arg0) {
440
- const ret = typeof(getObject(arg0)) === 'string';
441
- return ret;
396
+ module.exports.__wbg_new_a9d80688888b4894 = function(arg0) {
397
+ const ret = new Date(getObject(arg0));
398
+ return addHeapObject(ret);
442
399
  };
443
400
 
444
- module.exports.__wbindgen_is_undefined = function(arg0) {
445
- const ret = getObject(arg0) === undefined;
401
+ module.exports.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) {
402
+ const ret = getObject(arg0).getTimezoneOffset();
446
403
  return ret;
447
404
  };
448
405
 
449
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
450
- const ret = getStringFromWasm0(arg0, arg1);
451
- return addHeapObject(ret);
452
- };
453
-
454
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
455
- const ret = new Error(getStringFromWasm0(arg0, arg1));
456
- return addHeapObject(ret);
406
+ module.exports.__wbg_getTime_0e03c3f524be31ef = function(arg0) {
407
+ const ret = getObject(arg0).getTime();
408
+ return ret;
457
409
  };
458
410
 
459
411
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
@@ -475,128 +427,109 @@ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
475
427
  console.error(v0);
476
428
  };
477
429
 
478
- module.exports.__wbindgen_cb_drop = function(arg0) {
479
- const obj = takeObject(arg0).original;
480
- if (obj.cnt-- == 1) {
481
- obj.a = 0;
482
- return true;
483
- }
484
- const ret = false;
485
- return ret;
486
- };
487
-
488
- module.exports.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
489
- queueMicrotask(getObject(arg0));
490
- };
491
-
492
- module.exports.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
493
- const ret = getObject(arg0).queueMicrotask;
430
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
431
+ const ret = getObject(arg0);
494
432
  return addHeapObject(ret);
495
433
  };
496
434
 
497
- module.exports.__wbindgen_is_function = function(arg0) {
498
- const ret = typeof(getObject(arg0)) === 'function';
499
- return ret;
500
- };
501
-
502
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
503
- const ret = getObject(arg0);
435
+ module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
436
+ const ret = getObject(arg0).crypto;
504
437
  return addHeapObject(ret);
505
438
  };
506
439
 
507
- module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
508
- const ret = getObject(arg0) == getObject(arg1);
440
+ module.exports.__wbindgen_is_object = function(arg0) {
441
+ const val = getObject(arg0);
442
+ const ret = typeof(val) === 'object' && val !== null;
509
443
  return ret;
510
444
  };
511
445
 
512
- module.exports.__wbindgen_number_new = function(arg0) {
513
- const ret = arg0;
446
+ module.exports.__wbg_process_4a72847cc503995b = function(arg0) {
447
+ const ret = getObject(arg0).process;
514
448
  return addHeapObject(ret);
515
449
  };
516
450
 
517
- module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
518
- const ret = getObject(arg0)[getObject(arg1)];
451
+ module.exports.__wbg_versions_f686565e586dd935 = function(arg0) {
452
+ const ret = getObject(arg0).versions;
519
453
  return addHeapObject(ret);
520
454
  };
521
455
 
522
- module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
523
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
524
- };
525
-
526
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
527
- getObject(arg0).randomFillSync(takeObject(arg1));
528
- }, arguments) };
529
-
530
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
531
- getObject(arg0).getRandomValues(getObject(arg1));
532
- }, arguments) };
533
-
534
- module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
535
- const ret = getObject(arg0).crypto;
456
+ module.exports.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
457
+ const ret = getObject(arg0).node;
536
458
  return addHeapObject(ret);
537
459
  };
538
460
 
539
- module.exports.__wbg_process_298734cf255a885d = function(arg0) {
540
- const ret = getObject(arg0).process;
541
- return addHeapObject(ret);
461
+ module.exports.__wbindgen_is_string = function(arg0) {
462
+ const ret = typeof(getObject(arg0)) === 'string';
463
+ return ret;
542
464
  };
543
465
 
544
- module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
545
- const ret = getObject(arg0).versions;
466
+ module.exports.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
467
+ const ret = module.require;
546
468
  return addHeapObject(ret);
469
+ }, arguments) };
470
+
471
+ module.exports.__wbindgen_is_function = function(arg0) {
472
+ const ret = typeof(getObject(arg0)) === 'function';
473
+ return ret;
547
474
  };
548
475
 
549
- module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
550
- const ret = getObject(arg0).node;
476
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
477
+ const ret = getStringFromWasm0(arg0, arg1);
551
478
  return addHeapObject(ret);
552
479
  };
553
480
 
554
- module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
555
- const ret = module.require;
481
+ module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
482
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
556
483
  return addHeapObject(ret);
557
484
  }, arguments) };
558
485
 
559
- module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
486
+ module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
560
487
  const ret = getObject(arg0).msCrypto;
561
488
  return addHeapObject(ret);
562
489
  };
563
490
 
564
- module.exports.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
565
- const ret = getObject(arg0)[arg1 >>> 0];
491
+ module.exports.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
492
+ const ret = new Uint8Array(arg0 >>> 0);
566
493
  return addHeapObject(ret);
567
494
  };
568
495
 
569
- module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) {
570
- const ret = getObject(arg0).length;
571
- return ret;
496
+ module.exports.__wbindgen_memory = function() {
497
+ const ret = wasm.memory;
498
+ return addHeapObject(ret);
572
499
  };
573
500
 
574
- module.exports.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
575
- var v0 = getCachedStringFromWasm0(arg0, arg1);
576
- const ret = new Function(v0);
501
+ module.exports.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
502
+ const ret = getObject(arg0).buffer;
577
503
  return addHeapObject(ret);
578
504
  };
579
505
 
580
- module.exports.__wbg_next_586204376d2ed373 = function(arg0) {
581
- const ret = getObject(arg0).next;
506
+ module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
507
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
582
508
  return addHeapObject(ret);
583
509
  };
584
510
 
585
- module.exports.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
586
- const ret = getObject(arg0).next();
587
- return addHeapObject(ret);
511
+ module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
512
+ getObject(arg0).randomFillSync(takeObject(arg1));
588
513
  }, arguments) };
589
514
 
590
- module.exports.__wbg_done_90b14d6f6eacc42f = function(arg0) {
591
- const ret = getObject(arg0).done;
592
- return ret;
515
+ module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
516
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
517
+ return addHeapObject(ret);
593
518
  };
594
519
 
595
- module.exports.__wbg_value_3158be908c80a75e = function(arg0) {
596
- const ret = getObject(arg0).value;
520
+ module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
521
+ getObject(arg0).getRandomValues(getObject(arg1));
522
+ }, arguments) };
523
+
524
+ module.exports.__wbg_new_b1f2d6842d615181 = function(arg0) {
525
+ const ret = new Uint8Array(getObject(arg0));
597
526
  return addHeapObject(ret);
598
527
  };
599
528
 
529
+ module.exports.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
530
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
531
+ };
532
+
600
533
  module.exports.__wbg_iterator_40027cdd598da26b = function() {
601
534
  const ret = Symbol.iterator;
602
535
  return addHeapObject(ret);
@@ -612,6 +545,25 @@ module.exports.__wbg_call_3f093dd26d5569f8 = function() { return handleError(fun
612
545
  return addHeapObject(ret);
613
546
  }, arguments) };
614
547
 
548
+ module.exports.__wbg_next_586204376d2ed373 = function(arg0) {
549
+ const ret = getObject(arg0).next;
550
+ return addHeapObject(ret);
551
+ };
552
+
553
+ module.exports.__wbg_length_21c4b0ae73cba59d = function(arg0) {
554
+ const ret = getObject(arg0).length;
555
+ return ret;
556
+ };
557
+
558
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
559
+ const obj = getObject(arg1);
560
+ const ret = typeof(obj) === 'string' ? obj : undefined;
561
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
562
+ var len1 = WASM_VECTOR_LEN;
563
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
564
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
565
+ };
566
+
615
567
  module.exports.__wbg_self_05040bd9523805b9 = function() { return handleError(function () {
616
568
  const ret = self.self;
617
569
  return addHeapObject(ret);
@@ -632,60 +584,60 @@ module.exports.__wbg_global_f56b013ed9bcf359 = function() { return handleError(f
632
584
  return addHeapObject(ret);
633
585
  }, arguments) };
634
586
 
635
- module.exports.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
636
- const ret = Array.isArray(getObject(arg0));
587
+ module.exports.__wbindgen_is_undefined = function(arg0) {
588
+ const ret = getObject(arg0) === undefined;
637
589
  return ret;
638
590
  };
639
591
 
640
- module.exports.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
641
- let result;
642
- try {
643
- result = getObject(arg0) instanceof ArrayBuffer;
644
- } catch (_) {
645
- result = false;
646
- }
647
- const ret = result;
648
- return ret;
592
+ module.exports.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
593
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
594
+ const ret = new Function(v0);
595
+ return addHeapObject(ret);
649
596
  };
650
597
 
651
- module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
652
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
598
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
599
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
653
600
  return addHeapObject(ret);
654
- }, arguments) };
655
-
656
- module.exports.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
657
- const ret = Number.isSafeInteger(getObject(arg0));
658
- return ret;
659
601
  };
660
602
 
661
- module.exports.__wbg_getTime_0e03c3f524be31ef = function(arg0) {
662
- const ret = getObject(arg0).getTime();
603
+ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
604
+ const ret = getObject(arg0) == getObject(arg1);
663
605
  return ret;
664
606
  };
665
607
 
666
- module.exports.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) {
667
- const ret = getObject(arg0).getTimezoneOffset();
608
+ module.exports.__wbindgen_boolean_get = function(arg0) {
609
+ const v = getObject(arg0);
610
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
668
611
  return ret;
669
612
  };
670
613
 
671
- module.exports.__wbg_new_a9d80688888b4894 = function(arg0) {
672
- const ret = new Date(getObject(arg0));
673
- return addHeapObject(ret);
674
- };
675
-
676
- module.exports.__wbg_new0_7a6141101f2206da = function() {
677
- const ret = new Date();
678
- return addHeapObject(ret);
614
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
615
+ const obj = getObject(arg1);
616
+ const ret = typeof(obj) === 'number' ? obj : undefined;
617
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
618
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
679
619
  };
680
620
 
681
- module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) {
682
- const ret = Object.entries(getObject(arg0));
683
- return addHeapObject(ret);
621
+ module.exports.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
622
+ let result;
623
+ try {
624
+ result = getObject(arg0) instanceof Uint8Array;
625
+ } catch (_) {
626
+ result = false;
627
+ }
628
+ const ret = result;
629
+ return ret;
684
630
  };
685
631
 
686
- module.exports.__wbg_new_632630b5cec17f21 = function() {
687
- const ret = new Object();
688
- return addHeapObject(ret);
632
+ module.exports.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
633
+ let result;
634
+ try {
635
+ result = getObject(arg0) instanceof ArrayBuffer;
636
+ } catch (_) {
637
+ result = false;
638
+ }
639
+ const ret = result;
640
+ return ret;
689
641
  };
690
642
 
691
643
  module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
@@ -695,7 +647,7 @@ module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
695
647
  const a = state0.a;
696
648
  state0.a = 0;
697
649
  try {
698
- return __wbg_adapter_125(a, state0.b, arg0, arg1);
650
+ return __wbg_adapter_109(a, state0.b, arg0, arg1);
699
651
  } finally {
700
652
  state0.a = a;
701
653
  }
@@ -707,66 +659,90 @@ module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
707
659
  }
708
660
  };
709
661
 
710
- module.exports.__wbg_resolve_5da6faf2c96fd1d5 = function(arg0) {
711
- const ret = Promise.resolve(getObject(arg0));
712
- return addHeapObject(ret);
662
+ module.exports.__wbindgen_is_bigint = function(arg0) {
663
+ const ret = typeof(getObject(arg0)) === 'bigint';
664
+ return ret;
713
665
  };
714
666
 
715
- module.exports.__wbg_then_f9e58f5a50f43eae = function(arg0, arg1) {
716
- const ret = getObject(arg0).then(getObject(arg1));
717
- return addHeapObject(ret);
667
+ module.exports.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
668
+ const ret = Array.isArray(getObject(arg0));
669
+ return ret;
718
670
  };
719
671
 
720
- module.exports.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
721
- const ret = getObject(arg0).buffer;
722
- return addHeapObject(ret);
672
+ module.exports.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
673
+ const ret = Number.isSafeInteger(getObject(arg0));
674
+ return ret;
723
675
  };
724
676
 
725
- module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
726
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
727
- return addHeapObject(ret);
677
+ module.exports.__wbindgen_in = function(arg0, arg1) {
678
+ const ret = getObject(arg0) in getObject(arg1);
679
+ return ret;
728
680
  };
729
681
 
730
- module.exports.__wbg_new_b1f2d6842d615181 = function(arg0) {
731
- const ret = new Uint8Array(getObject(arg0));
682
+ module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
683
+ const v = getObject(arg1);
684
+ const ret = typeof(v) === 'bigint' ? v : undefined;
685
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
686
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
687
+ };
688
+
689
+ module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
690
+ const ret = arg0;
732
691
  return addHeapObject(ret);
733
692
  };
734
693
 
735
- module.exports.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
736
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
694
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
695
+ const ret = getObject(arg0) === getObject(arg1);
696
+ return ret;
737
697
  };
738
698
 
739
- module.exports.__wbg_length_21c4b0ae73cba59d = function(arg0) {
699
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
700
+ const ret = BigInt.asUintN(64, arg0);
701
+ return addHeapObject(ret);
702
+ };
703
+
704
+ module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) {
740
705
  const ret = getObject(arg0).length;
741
706
  return ret;
742
707
  };
743
708
 
744
- module.exports.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
745
- let result;
746
- try {
747
- result = getObject(arg0) instanceof Uint8Array;
748
- } catch (_) {
749
- result = false;
750
- }
751
- const ret = result;
709
+ module.exports.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
710
+ const ret = getObject(arg0)[arg1 >>> 0];
711
+ return addHeapObject(ret);
712
+ };
713
+
714
+ module.exports.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
715
+ const ret = getObject(arg0).next();
716
+ return addHeapObject(ret);
717
+ }, arguments) };
718
+
719
+ module.exports.__wbg_done_90b14d6f6eacc42f = function(arg0) {
720
+ const ret = getObject(arg0).done;
752
721
  return ret;
753
722
  };
754
723
 
755
- module.exports.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
756
- const ret = new Uint8Array(arg0 >>> 0);
724
+ module.exports.__wbg_value_3158be908c80a75e = function(arg0) {
725
+ const ret = getObject(arg0).value;
757
726
  return addHeapObject(ret);
758
727
  };
759
728
 
760
- module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
761
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
729
+ module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) {
730
+ const ret = Object.entries(getObject(arg0));
762
731
  return addHeapObject(ret);
763
732
  };
764
733
 
765
- module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
766
- const v = getObject(arg1);
767
- const ret = typeof(v) === 'bigint' ? v : undefined;
768
- getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
769
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
734
+ module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
735
+ const ret = getObject(arg0)[getObject(arg1)];
736
+ return addHeapObject(ret);
737
+ };
738
+
739
+ module.exports.__wbg_new_632630b5cec17f21 = function() {
740
+ const ret = new Object();
741
+ return addHeapObject(ret);
742
+ };
743
+
744
+ module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
745
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
770
746
  };
771
747
 
772
748
  module.exports.__wbindgen_debug_string = function(arg0, arg1) {
@@ -781,13 +757,37 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
781
757
  throw new Error(getStringFromWasm0(arg0, arg1));
782
758
  };
783
759
 
784
- module.exports.__wbindgen_memory = function() {
785
- const ret = wasm.memory;
760
+ module.exports.__wbg_then_f9e58f5a50f43eae = function(arg0, arg1) {
761
+ const ret = getObject(arg0).then(getObject(arg1));
762
+ return addHeapObject(ret);
763
+ };
764
+
765
+ module.exports.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
766
+ queueMicrotask(getObject(arg0));
767
+ };
768
+
769
+ module.exports.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
770
+ const ret = getObject(arg0).queueMicrotask;
786
771
  return addHeapObject(ret);
787
772
  };
788
773
 
789
- module.exports.__wbindgen_closure_wrapper15549 = function(arg0, arg1, arg2) {
790
- const ret = makeMutClosure(arg0, arg1, 3369, __wbg_adapter_48);
774
+ module.exports.__wbg_resolve_5da6faf2c96fd1d5 = function(arg0) {
775
+ const ret = Promise.resolve(getObject(arg0));
776
+ return addHeapObject(ret);
777
+ };
778
+
779
+ module.exports.__wbindgen_cb_drop = function(arg0) {
780
+ const obj = takeObject(arg0).original;
781
+ if (obj.cnt-- == 1) {
782
+ obj.a = 0;
783
+ return true;
784
+ }
785
+ const ret = false;
786
+ return ret;
787
+ };
788
+
789
+ module.exports.__wbindgen_closure_wrapper24359 = function(arg0, arg1, arg2) {
790
+ const ret = makeMutClosure(arg0, arg1, 1813, __wbg_adapter_48);
791
791
  return addHeapObject(ret);
792
792
  };
793
793
 
package/wasm_bg.wasm CHANGED
Binary file