@next/swc-wasm-nodejs 13.5.7-canary.25 → 13.5.7-canary.27

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 +10 -10
  3. package/wasm.js +268 -267
  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": "13.5.7-canary.25",
3
+ "version": "13.5.7-canary.27",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -1,17 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {string} value
4
+ * @param {string} query
5
5
  * @param {any} opts
6
6
  * @returns {any}
7
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>;
8
+ export function browserslist(query: string, opts: any): any;
15
9
  /**
16
10
  * @param {string} s
17
11
  * @param {any} opts
@@ -49,8 +43,14 @@ export function parseSync(s: string, opts: any): any;
49
43
  */
50
44
  export function parse(s: string, opts: any): Promise<any>;
51
45
  /**
52
- * @param {string} query
46
+ * @param {string} value
53
47
  * @param {any} opts
54
48
  * @returns {any}
55
49
  */
56
- export function browserslist(query: string, opts: any): any;
50
+ export function mdxCompileSync(value: string, opts: any): any;
51
+ /**
52
+ * @param {string} value
53
+ * @param {any} opts
54
+ * @returns {Promise<any>}
55
+ */
56
+ export function mdxCompile(value: string, opts: any): Promise<any>;
package/wasm.js CHANGED
@@ -1,16 +1,42 @@
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
+
6
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
7
+
8
+ cachedTextDecoder.decode();
9
+
10
+ let cachedUint8Memory0 = null;
11
+
12
+ function getUint8Memory0() {
13
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
14
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
15
+ }
16
+ return cachedUint8Memory0;
17
+ }
18
+
19
+ function getStringFromWasm0(ptr, len) {
20
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
21
+ }
5
22
 
6
23
  const heap = new Array(128).fill(undefined);
7
24
 
8
25
  heap.push(undefined, null, true, false);
9
26
 
10
- function getObject(idx) { return heap[idx]; }
11
-
12
27
  let heap_next = heap.length;
13
28
 
29
+ function addHeapObject(obj) {
30
+ if (heap_next === heap.length) heap.push(heap.length + 1);
31
+ const idx = heap_next;
32
+ heap_next = heap[idx];
33
+
34
+ heap[idx] = obj;
35
+ return idx;
36
+ }
37
+
38
+ function getObject(idx) { return heap[idx]; }
39
+
14
40
  function dropObject(idx) {
15
41
  if (idx < 132) return;
16
42
  heap[idx] = heap_next;
@@ -25,15 +51,6 @@ function takeObject(idx) {
25
51
 
26
52
  let WASM_VECTOR_LEN = 0;
27
53
 
28
- let cachedUint8Memory0 = null;
29
-
30
- function getUint8Memory0() {
31
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
32
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
33
- }
34
- return cachedUint8Memory0;
35
- }
36
-
37
54
  let cachedTextEncoder = new TextEncoder('utf-8');
38
55
 
39
56
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -100,41 +117,6 @@ function getInt32Memory0() {
100
117
  return cachedInt32Memory0;
101
118
  }
102
119
 
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
- let cachedBigInt64Memory0 = null;
130
-
131
- function getBigInt64Memory0() {
132
- if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
133
- cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
134
- }
135
- return cachedBigInt64Memory0;
136
- }
137
-
138
120
  function debugString(val) {
139
121
  // primitive types
140
122
  const type = typeof val;
@@ -200,6 +182,24 @@ function debugString(val) {
200
182
  return className;
201
183
  }
202
184
 
185
+ let cachedFloat64Memory0 = null;
186
+
187
+ function getFloat64Memory0() {
188
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
189
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
190
+ }
191
+ return cachedFloat64Memory0;
192
+ }
193
+
194
+ let cachedBigInt64Memory0 = null;
195
+
196
+ function getBigInt64Memory0() {
197
+ if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
198
+ cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
199
+ }
200
+ return cachedBigInt64Memory0;
201
+ }
202
+
203
203
  function makeMutClosure(arg0, arg1, dtor, f) {
204
204
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
205
205
  const real = (...args) => {
@@ -225,18 +225,20 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
  function __wbg_adapter_48(arg0, arg1, arg2) {
228
- wasm._dyn_core_ee09cdb701fd1a68___ops__function__FnMut_______Output______as_wasm_bindgen_9ed0e3b0c0ec5f8___closure__WasmClosure___describe__invoke___wasm_bindgen_9ed0e3b0c0ec5f8___JsValue_____(arg0, arg1, addHeapObject(arg2));
228
+ wasm.wasm_bindgen_8b78049fbee5bf62___convert__closures__invoke1_mut___wasm_bindgen_8b78049fbee5bf62___JsValue_____(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
231
  /**
232
- * @param {string} value
232
+ * @param {string} query
233
233
  * @param {any} opts
234
234
  * @returns {any}
235
235
  */
236
- module.exports.mdxCompileSync = function(value, opts) {
236
+ module.exports.browserslist = function(query, opts) {
237
237
  try {
238
238
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
239
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
239
+ const ptr0 = passStringToWasm0(query, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
240
+ const len0 = WASM_VECTOR_LEN;
241
+ wasm.browserslist(retptr, ptr0, len0, addHeapObject(opts));
240
242
  var r0 = getInt32Memory0()[retptr / 4 + 0];
241
243
  var r1 = getInt32Memory0()[retptr / 4 + 1];
242
244
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -249,15 +251,24 @@ module.exports.mdxCompileSync = function(value, opts) {
249
251
  }
250
252
  };
251
253
 
252
- /**
253
- * @param {string} value
254
- * @param {any} opts
255
- * @returns {Promise<any>}
256
- */
257
- module.exports.mdxCompile = function(value, opts) {
258
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
259
- return takeObject(ret);
260
- };
254
+ function getCachedStringFromWasm0(ptr, len) {
255
+ if (ptr === 0) {
256
+ return getObject(len);
257
+ } else {
258
+ return getStringFromWasm0(ptr, len);
259
+ }
260
+ }
261
+
262
+ function handleError(f, args) {
263
+ try {
264
+ return f.apply(this, args);
265
+ } catch (e) {
266
+ wasm.__wbindgen_exn_store(addHeapObject(e));
267
+ }
268
+ }
269
+ function __wbg_adapter_114(arg0, arg1, arg2, arg3) {
270
+ wasm.wasm_bindgen_8b78049fbee5bf62___convert__closures__invoke2_mut___wasm_bindgen_8b78049fbee5bf62___JsValue__wasm_bindgen_8b78049fbee5bf62___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
271
+ }
261
272
 
262
273
  /**
263
274
  * @param {string} s
@@ -352,24 +363,15 @@ module.exports.parse = function(s, opts) {
352
363
  return takeObject(ret);
353
364
  };
354
365
 
355
- function getCachedStringFromWasm0(ptr, len) {
356
- if (ptr === 0) {
357
- return getObject(len);
358
- } else {
359
- return getStringFromWasm0(ptr, len);
360
- }
361
- }
362
366
  /**
363
- * @param {string} query
367
+ * @param {string} value
364
368
  * @param {any} opts
365
369
  * @returns {any}
366
370
  */
367
- module.exports.browserslist = function(query, opts) {
371
+ module.exports.mdxCompileSync = function(value, opts) {
368
372
  try {
369
373
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
370
- const ptr0 = passStringToWasm0(query, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
371
- const len0 = WASM_VECTOR_LEN;
372
- wasm.browserslist(retptr, ptr0, len0, addHeapObject(opts));
374
+ wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
373
375
  var r0 = getInt32Memory0()[retptr / 4 + 0];
374
376
  var r1 = getInt32Memory0()[retptr / 4 + 1];
375
377
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -382,16 +384,30 @@ module.exports.browserslist = function(query, opts) {
382
384
  }
383
385
  };
384
386
 
385
- function handleError(f, args) {
386
- try {
387
- return f.apply(this, args);
388
- } catch (e) {
389
- wasm.__wbindgen_exn_store(addHeapObject(e));
390
- }
391
- }
392
- function __wbg_adapter_126(arg0, arg1, arg2, arg3) {
393
- wasm.wasm_bindgen_9ed0e3b0c0ec5f8___convert__closures__invoke2_mut___wasm_bindgen_9ed0e3b0c0ec5f8___JsValue__wasm_bindgen_9ed0e3b0c0ec5f8___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
394
- }
387
+ /**
388
+ * @param {string} value
389
+ * @param {any} opts
390
+ * @returns {Promise<any>}
391
+ */
392
+ module.exports.mdxCompile = function(value, opts) {
393
+ const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
394
+ return takeObject(ret);
395
+ };
396
+
397
+ module.exports.__wbg_new0_25059e40b1c02766 = function() {
398
+ const ret = new Date();
399
+ return addHeapObject(ret);
400
+ };
401
+
402
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
403
+ const ret = getStringFromWasm0(arg0, arg1);
404
+ return addHeapObject(ret);
405
+ };
406
+
407
+ module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
408
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
409
+ return addHeapObject(ret);
410
+ }, arguments) };
395
411
 
396
412
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
397
413
  takeObject(arg0);
@@ -406,37 +422,24 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
406
422
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
407
423
  };
408
424
 
409
- module.exports.__wbindgen_boolean_get = function(arg0) {
410
- const v = getObject(arg0);
411
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
412
- return ret;
413
- };
414
-
415
- module.exports.__wbindgen_is_bigint = function(arg0) {
416
- const ret = typeof(getObject(arg0)) === 'bigint';
417
- return ret;
418
- };
419
-
420
- module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
425
+ module.exports.__wbindgen_number_new = function(arg0) {
421
426
  const ret = arg0;
422
427
  return addHeapObject(ret);
423
428
  };
424
429
 
425
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
426
- const ret = getObject(arg0) === getObject(arg1);
427
- return ret;
430
+ module.exports.__wbg_new_f127e324c1313064 = function(arg0) {
431
+ const ret = new Date(getObject(arg0));
432
+ return addHeapObject(ret);
428
433
  };
429
434
 
430
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
431
- const ret = BigInt.asUintN(64, arg0);
432
- return addHeapObject(ret);
435
+ module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
436
+ const ret = getObject(arg0).getTimezoneOffset();
437
+ return ret;
433
438
  };
434
439
 
435
- module.exports.__wbindgen_number_get = function(arg0, arg1) {
436
- const obj = getObject(arg1);
437
- const ret = typeof(obj) === 'number' ? obj : undefined;
438
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
439
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
440
+ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
441
+ const ret = getObject(arg0) == getObject(arg1);
442
+ return ret;
440
443
  };
441
444
 
442
445
  module.exports.__wbindgen_is_object = function(arg0) {
@@ -445,14 +448,24 @@ module.exports.__wbindgen_is_object = function(arg0) {
445
448
  return ret;
446
449
  };
447
450
 
448
- module.exports.__wbindgen_in = function(arg0, arg1) {
449
- const ret = getObject(arg0) in getObject(arg1);
451
+ module.exports.__wbindgen_boolean_get = function(arg0) {
452
+ const v = getObject(arg0);
453
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
450
454
  return ret;
451
455
  };
452
456
 
453
- module.exports.__wbindgen_is_string = function(arg0) {
454
- const ret = typeof(getObject(arg0)) === 'string';
455
- return ret;
457
+ module.exports.__wbg_new_b525de17f44a8943 = function() {
458
+ const ret = new Array();
459
+ return addHeapObject(ret);
460
+ };
461
+
462
+ module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
463
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
464
+ };
465
+
466
+ module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
467
+ const ret = getObject(arg0)[getObject(arg1)];
468
+ return addHeapObject(ret);
456
469
  };
457
470
 
458
471
  module.exports.__wbindgen_is_undefined = function(arg0) {
@@ -460,14 +473,14 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
460
473
  return ret;
461
474
  };
462
475
 
463
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
464
- const ret = getStringFromWasm0(arg0, arg1);
465
- return addHeapObject(ret);
476
+ module.exports.__wbindgen_in = function(arg0, arg1) {
477
+ const ret = getObject(arg0) in getObject(arg1);
478
+ return ret;
466
479
  };
467
480
 
468
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
469
- const ret = new Error(getStringFromWasm0(arg0, arg1));
470
- return addHeapObject(ret);
481
+ module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
482
+ const ret = getObject(arg0).getTime();
483
+ return ret;
471
484
  };
472
485
 
473
486
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
@@ -489,38 +502,41 @@ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
489
502
  console.error(v0);
490
503
  };
491
504
 
492
- module.exports.__wbindgen_cb_drop = function(arg0) {
493
- const obj = takeObject(arg0).original;
494
- if (obj.cnt-- == 1) {
495
- obj.a = 0;
496
- return true;
497
- }
498
- const ret = false;
499
- return ret;
505
+ module.exports.__wbindgen_memory = function() {
506
+ const ret = wasm.memory;
507
+ return addHeapObject(ret);
500
508
  };
501
509
 
502
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
503
- const ret = getObject(arg0);
510
+ module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
511
+ const ret = getObject(arg0).buffer;
504
512
  return addHeapObject(ret);
505
513
  };
506
514
 
507
- module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
508
- const ret = getObject(arg0) == getObject(arg1);
509
- return ret;
510
- };
515
+ module.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) {
516
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
517
+ return addHeapObject(ret);
518
+ };
511
519
 
512
- module.exports.__wbindgen_number_new = function(arg0) {
513
- const ret = arg0;
520
+ module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
521
+ getObject(arg0).randomFillSync(takeObject(arg1));
522
+ }, arguments) };
523
+
524
+ module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
525
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
514
526
  return addHeapObject(ret);
515
527
  };
516
528
 
517
- module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
518
- const ret = getObject(arg0)[getObject(arg1)];
529
+ module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
530
+ getObject(arg0).getRandomValues(getObject(arg1));
531
+ }, arguments) };
532
+
533
+ module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
534
+ const ret = new Uint8Array(getObject(arg0));
519
535
  return addHeapObject(ret);
520
536
  };
521
537
 
522
- module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
523
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
538
+ module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
539
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
524
540
  };
525
541
 
526
542
  module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
@@ -543,80 +559,51 @@ module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
543
559
  return addHeapObject(ret);
544
560
  };
545
561
 
562
+ module.exports.__wbindgen_is_string = function(arg0) {
563
+ const ret = typeof(getObject(arg0)) === 'string';
564
+ return ret;
565
+ };
566
+
546
567
  module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
547
568
  const ret = getObject(arg0).msCrypto;
548
569
  return addHeapObject(ret);
549
570
  };
550
571
 
572
+ module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
573
+ const ret = new Uint8Array(arg0 >>> 0);
574
+ return addHeapObject(ret);
575
+ };
576
+
551
577
  module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
552
578
  const ret = module.require;
553
579
  return addHeapObject(ret);
554
580
  }, arguments) };
555
581
 
556
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
557
- getObject(arg0).randomFillSync(takeObject(arg1));
558
- }, arguments) };
559
-
560
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
561
- getObject(arg0).getRandomValues(getObject(arg1));
562
- }, arguments) };
563
-
564
- module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
565
- const ret = getObject(arg0)[arg1 >>> 0];
566
- return addHeapObject(ret);
567
- };
568
-
569
- module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
570
- const ret = getObject(arg0).length;
571
- return ret;
572
- };
573
-
574
582
  module.exports.__wbindgen_is_function = function(arg0) {
575
583
  const ret = typeof(getObject(arg0)) === 'function';
576
584
  return ret;
577
585
  };
578
586
 
579
- module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
580
- var v0 = getCachedStringFromWasm0(arg0, arg1);
581
- const ret = new Function(v0);
582
- return addHeapObject(ret);
583
- };
584
-
585
- module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
586
- const ret = getObject(arg0).next;
587
- return addHeapObject(ret);
588
- };
589
-
590
- module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
591
- const ret = getObject(arg0).next();
587
+ module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
588
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
592
589
  return addHeapObject(ret);
593
590
  }, arguments) };
594
591
 
595
- module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
596
- const ret = getObject(arg0).done;
597
- return ret;
598
- };
599
-
600
- module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
601
- const ret = getObject(arg0).value;
602
- return addHeapObject(ret);
603
- };
604
-
605
592
  module.exports.__wbg_iterator_55f114446221aa5a = function() {
606
593
  const ret = Symbol.iterator;
607
594
  return addHeapObject(ret);
608
595
  };
609
596
 
610
- module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
611
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
612
- return addHeapObject(ret);
613
- }, arguments) };
614
-
615
597
  module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
616
598
  const ret = getObject(arg0).call(getObject(arg1));
617
599
  return addHeapObject(ret);
618
600
  }, arguments) };
619
601
 
602
+ module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
603
+ const ret = getObject(arg0).next;
604
+ return addHeapObject(ret);
605
+ };
606
+
620
607
  module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
621
608
  const ret = self.self;
622
609
  return addHeapObject(ret);
@@ -637,68 +624,86 @@ module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(f
637
624
  return addHeapObject(ret);
638
625
  }, arguments) };
639
626
 
640
- module.exports.__wbg_new_b525de17f44a8943 = function() {
641
- const ret = new Array();
627
+ module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
628
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
629
+ const ret = new Function(v0);
642
630
  return addHeapObject(ret);
643
631
  };
644
632
 
645
- module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
646
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
633
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
634
+ const ret = getObject(arg0);
635
+ return addHeapObject(ret);
647
636
  };
648
637
 
649
- module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
650
- const ret = Array.isArray(getObject(arg0));
638
+ module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
639
+ const ret = getObject(arg0).length;
651
640
  return ret;
652
641
  };
653
642
 
654
- module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
655
- let result;
656
- try {
657
- result = getObject(arg0) instanceof ArrayBuffer;
658
- } catch {
659
- result = false;
660
- }
661
- const ret = result;
662
- return ret;
643
+ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
644
+ const ret = debugString(getObject(arg1));
645
+ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
646
+ const len0 = WASM_VECTOR_LEN;
647
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
648
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
663
649
  };
664
650
 
665
- module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
666
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
651
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
652
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
667
653
  return addHeapObject(ret);
668
- }, arguments) };
654
+ };
669
655
 
670
- module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
671
- const ret = Number.isSafeInteger(getObject(arg0));
672
- return ret;
656
+ module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
657
+ const ret = Object.entries(getObject(arg0));
658
+ return addHeapObject(ret);
673
659
  };
674
660
 
675
- module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
676
- const ret = getObject(arg0).getTime();
677
- return ret;
661
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
662
+ const obj = getObject(arg1);
663
+ const ret = typeof(obj) === 'number' ? obj : undefined;
664
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
665
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
678
666
  };
679
667
 
680
- module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
681
- const ret = getObject(arg0).getTimezoneOffset();
668
+ module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
669
+ let result;
670
+ try {
671
+ result = getObject(arg0) instanceof Uint8Array;
672
+ } catch {
673
+ result = false;
674
+ }
675
+ const ret = result;
682
676
  return ret;
683
677
  };
684
678
 
685
- module.exports.__wbg_new_f127e324c1313064 = function(arg0) {
686
- const ret = new Date(getObject(arg0));
687
- return addHeapObject(ret);
679
+ module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
680
+ let result;
681
+ try {
682
+ result = getObject(arg0) instanceof ArrayBuffer;
683
+ } catch {
684
+ result = false;
685
+ }
686
+ const ret = result;
687
+ return ret;
688
688
  };
689
689
 
690
- module.exports.__wbg_new0_25059e40b1c02766 = function() {
691
- const ret = new Date();
690
+ module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
691
+ const ret = getObject(arg0)[arg1 >>> 0];
692
692
  return addHeapObject(ret);
693
693
  };
694
694
 
695
- module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
696
- const ret = Object.entries(getObject(arg0));
695
+ module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
696
+ const ret = getObject(arg0).next();
697
697
  return addHeapObject(ret);
698
+ }, arguments) };
699
+
700
+ module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
701
+ const ret = getObject(arg0).done;
702
+ return ret;
698
703
  };
699
704
 
700
- module.exports.__wbg_new_f9876326328f45ed = function() {
701
- const ret = new Object();
705
+ module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
706
+ const ret = getObject(arg0).value;
702
707
  return addHeapObject(ret);
703
708
  };
704
709
 
@@ -709,7 +714,7 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
709
714
  const a = state0.a;
710
715
  state0.a = 0;
711
716
  try {
712
- return __wbg_adapter_126(a, state0.b, arg0, arg1);
717
+ return __wbg_adapter_114(a, state0.b, arg0, arg1);
713
718
  } finally {
714
719
  state0.a = a;
715
720
  }
@@ -721,87 +726,83 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
721
726
  }
722
727
  };
723
728
 
724
- module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
725
- const ret = Promise.resolve(getObject(arg0));
726
- return addHeapObject(ret);
729
+ module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
730
+ const ret = getObject(arg0).length;
731
+ return ret;
727
732
  };
728
733
 
729
- module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
730
- const ret = getObject(arg0).then(getObject(arg1));
731
- return addHeapObject(ret);
734
+ module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
735
+ const ret = Array.isArray(getObject(arg0));
736
+ return ret;
732
737
  };
733
738
 
734
- module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
735
- const ret = getObject(arg0).buffer;
736
- return addHeapObject(ret);
739
+ module.exports.__wbindgen_is_bigint = function(arg0) {
740
+ const ret = typeof(getObject(arg0)) === 'bigint';
741
+ return ret;
737
742
  };
738
743
 
739
- module.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) {
740
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
741
- return addHeapObject(ret);
744
+ module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
745
+ const v = getObject(arg1);
746
+ const ret = typeof(v) === 'bigint' ? v : undefined;
747
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
748
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
742
749
  };
743
750
 
744
- module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
745
- const ret = new Uint8Array(getObject(arg0));
751
+ module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
752
+ const ret = arg0;
746
753
  return addHeapObject(ret);
747
754
  };
748
755
 
749
- module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
750
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
756
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
757
+ const ret = getObject(arg0) === getObject(arg1);
758
+ return ret;
751
759
  };
752
760
 
753
- module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
754
- const ret = getObject(arg0).length;
755
- return ret;
761
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
762
+ const ret = BigInt.asUintN(64, arg0);
763
+ return addHeapObject(ret);
756
764
  };
757
765
 
758
- module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
759
- let result;
760
- try {
761
- result = getObject(arg0) instanceof Uint8Array;
762
- } catch {
763
- result = false;
764
- }
765
- const ret = result;
766
+ module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
767
+ const ret = Number.isSafeInteger(getObject(arg0));
766
768
  return ret;
767
769
  };
768
770
 
769
- module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
770
- const ret = new Uint8Array(arg0 >>> 0);
771
+ module.exports.__wbg_new_f9876326328f45ed = function() {
772
+ const ret = new Object();
771
773
  return addHeapObject(ret);
772
774
  };
773
775
 
774
- module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
775
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
776
- return addHeapObject(ret);
776
+ module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
777
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
777
778
  };
778
779
 
779
- module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
780
- const v = getObject(arg1);
781
- const ret = typeof(v) === 'bigint' ? v : undefined;
782
- getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
783
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
780
+ module.exports.__wbindgen_throw = function(arg0, arg1) {
781
+ throw new Error(getStringFromWasm0(arg0, arg1));
784
782
  };
785
783
 
786
- module.exports.__wbindgen_debug_string = function(arg0, arg1) {
787
- const ret = debugString(getObject(arg1));
788
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
789
- const len0 = WASM_VECTOR_LEN;
790
- getInt32Memory0()[arg0 / 4 + 1] = len0;
791
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
784
+ module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
785
+ const ret = Promise.resolve(getObject(arg0));
786
+ return addHeapObject(ret);
792
787
  };
793
788
 
794
- module.exports.__wbindgen_throw = function(arg0, arg1) {
795
- throw new Error(getStringFromWasm0(arg0, arg1));
789
+ module.exports.__wbindgen_cb_drop = function(arg0) {
790
+ const obj = takeObject(arg0).original;
791
+ if (obj.cnt-- == 1) {
792
+ obj.a = 0;
793
+ return true;
794
+ }
795
+ const ret = false;
796
+ return ret;
796
797
  };
797
798
 
798
- module.exports.__wbindgen_memory = function() {
799
- const ret = wasm.memory;
799
+ module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
800
+ const ret = getObject(arg0).then(getObject(arg1));
800
801
  return addHeapObject(ret);
801
802
  };
802
803
 
803
- module.exports.__wbindgen_closure_wrapper13405 = function(arg0, arg1, arg2) {
804
- const ret = makeMutClosure(arg0, arg1, 2157, __wbg_adapter_48);
804
+ module.exports.__wbindgen_closure_wrapper23125 = function(arg0, arg1, arg2) {
805
+ const ret = makeMutClosure(arg0, arg1, 286, __wbg_adapter_48);
805
806
  return addHeapObject(ret);
806
807
  };
807
808
 
package/wasm_bg.wasm CHANGED
Binary file