@devup-ui/wasm 1.0.40 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <h1><code>wasm-pack-template</code></h1>
4
4
 
5
- <strong>A template for kick starting a Rust and WebAssembly project using <a href="https://github.com/rustwasm/wasm-pack">wasm-pack</a>.</strong>
5
+ <strong>A template for kick starting a Rust and WebAssembly project using <a href="https://github.com/rustwasm/wasm-pack">wasm-pack</a>.</strong>
6
6
 
7
7
  <p>
8
8
  <a href="https://travis-ci.org/rustwasm/wasm-pack-template"><img src="https://img.shields.io/travis/rustwasm/wasm-pack-template.svg?style=flat-square" alt="Build Status" /></a>
@@ -14,7 +14,8 @@
14
14
  <a href="https://discordapp.com/channels/442252698964721669/443151097398296587">Chat</a>
15
15
  </h3>
16
16
 
17
- <sub>Built with 🦀🕸 by <a href="https://rustwasm.github.io/">The Rust and WebAssembly Working Group</a></sub>
17
+ <sub>Built with 🦀🕸 by <a href="https://rustwasm.github.io/">The Rust and WebAssembly Working Group</a></sub>
18
+
18
19
  </div>
19
20
 
20
21
  ## About
@@ -61,18 +62,18 @@ wasm-pack publish
61
62
 
62
63
  ## 🔋 Batteries Included
63
64
 
64
- * [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating
65
+ - [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating
65
66
  between WebAssembly and JavaScript.
66
- * [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook)
67
+ - [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook)
67
68
  for logging panic messages to the developer console.
68
- * `LICENSE-APACHE` and `LICENSE-MIT`: most Rust projects are licensed this way, so these are included for you
69
+ - `LICENSE-APACHE` and `LICENSE-MIT`: most Rust projects are licensed this way, so these are included for you
69
70
 
70
71
  ## License
71
72
 
72
73
  Licensed under either of
73
74
 
74
- * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
75
- * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
75
+ - Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
76
+ - MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
76
77
 
77
78
  at your option.
78
79
 
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "react",
18
18
  "wasm"
19
19
  ],
20
- "version": "1.0.40",
20
+ "version": "1.0.41",
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
package/pkg/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export function getThemeInterface(package_name: string, color_interface_name: st
16
16
  export class Output {
17
17
  private constructor();
18
18
  free(): void;
19
+ [Symbol.dispose](): void;
19
20
  /**
20
21
  * Get the code
21
22
  */
package/pkg/index.js CHANGED
@@ -1,8 +1,6 @@
1
1
 
2
2
  let imports = {};
3
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
- let wasm;
5
- const { TextDecoder, TextEncoder } = require(`util`);
6
4
 
7
5
  let cachedUint8ArrayMemory0 = null;
8
6
 
@@ -28,20 +26,18 @@ function getStringFromWasm0(ptr, len) {
28
26
 
29
27
  let WASM_VECTOR_LEN = 0;
30
28
 
31
- const cachedTextEncoder = new TextEncoder('utf-8');
29
+ const cachedTextEncoder = new TextEncoder();
32
30
 
33
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
34
- ? function (arg, view) {
35
- return cachedTextEncoder.encodeInto(arg, view);
31
+ if (!('encodeInto' in cachedTextEncoder)) {
32
+ cachedTextEncoder.encodeInto = function (arg, view) {
33
+ const buf = cachedTextEncoder.encode(arg);
34
+ view.set(buf);
35
+ return {
36
+ read: arg.length,
37
+ written: buf.length
38
+ };
39
+ }
36
40
  }
37
- : function (arg, view) {
38
- const buf = cachedTextEncoder.encode(arg);
39
- view.set(buf);
40
- return {
41
- read: arg.length,
42
- written: buf.length
43
- };
44
- });
45
41
 
46
42
  function passStringToWasm0(arg, malloc, realloc) {
47
43
 
@@ -72,7 +68,7 @@ function passStringToWasm0(arg, malloc, realloc) {
72
68
  }
73
69
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
74
70
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
75
- const ret = encodeString(arg, view);
71
+ const ret = cachedTextEncoder.encodeInto(arg, view);
76
72
 
77
73
  offset += ret.written;
78
74
  ptr = realloc(ptr, len, offset, 1) >>> 0;
@@ -106,6 +102,11 @@ function handleError(f, args) {
106
102
  }
107
103
  }
108
104
 
105
+ function getArrayU8FromWasm0(ptr, len) {
106
+ ptr = ptr >>> 0;
107
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
108
+ }
109
+
109
110
  function isLikeNone(x) {
110
111
  return x === undefined || x === null;
111
112
  }
@@ -177,14 +178,14 @@ function debugString(val) {
177
178
  /**
178
179
  * @param {boolean} debug
179
180
  */
180
- module.exports.setDebug = function(debug) {
181
+ exports.setDebug = function(debug) {
181
182
  wasm.setDebug(debug);
182
183
  };
183
184
 
184
185
  /**
185
186
  * @returns {boolean}
186
187
  */
187
- module.exports.isDebug = function() {
188
+ exports.isDebug = function() {
188
189
  const ret = wasm.isDebug();
189
190
  return ret !== 0;
190
191
  };
@@ -197,7 +198,7 @@ function takeFromExternrefTable0(idx) {
197
198
  /**
198
199
  * @param {any} sheet_object
199
200
  */
200
- module.exports.importSheet = function(sheet_object) {
201
+ exports.importSheet = function(sheet_object) {
201
202
  const ret = wasm.importSheet(sheet_object);
202
203
  if (ret[1]) {
203
204
  throw takeFromExternrefTable0(ret[0]);
@@ -207,7 +208,7 @@ module.exports.importSheet = function(sheet_object) {
207
208
  /**
208
209
  * @returns {string}
209
210
  */
210
- module.exports.exportSheet = function() {
211
+ exports.exportSheet = function() {
211
212
  let deferred2_0;
212
213
  let deferred2_1;
213
214
  try {
@@ -229,7 +230,7 @@ module.exports.exportSheet = function() {
229
230
  /**
230
231
  * @param {any} sheet_object
231
232
  */
232
- module.exports.importClassMap = function(sheet_object) {
233
+ exports.importClassMap = function(sheet_object) {
233
234
  const ret = wasm.importClassMap(sheet_object);
234
235
  if (ret[1]) {
235
236
  throw takeFromExternrefTable0(ret[0]);
@@ -239,7 +240,7 @@ module.exports.importClassMap = function(sheet_object) {
239
240
  /**
240
241
  * @returns {string}
241
242
  */
242
- module.exports.exportClassMap = function() {
243
+ exports.exportClassMap = function() {
243
244
  let deferred2_0;
244
245
  let deferred2_1;
245
246
  try {
@@ -261,7 +262,7 @@ module.exports.exportClassMap = function() {
261
262
  /**
262
263
  * @param {any} sheet_object
263
264
  */
264
- module.exports.importFileMap = function(sheet_object) {
265
+ exports.importFileMap = function(sheet_object) {
265
266
  const ret = wasm.importFileMap(sheet_object);
266
267
  if (ret[1]) {
267
268
  throw takeFromExternrefTable0(ret[0]);
@@ -271,7 +272,7 @@ module.exports.importFileMap = function(sheet_object) {
271
272
  /**
272
273
  * @returns {string}
273
274
  */
274
- module.exports.exportFileMap = function() {
275
+ exports.exportFileMap = function() {
275
276
  let deferred2_0;
276
277
  let deferred2_1;
277
278
  try {
@@ -300,7 +301,7 @@ module.exports.exportFileMap = function() {
300
301
  * @param {boolean} import_main_css_in_css
301
302
  * @returns {Output}
302
303
  */
303
- module.exports.codeExtract = function(filename, code, _package, css_dir, single_css, import_main_css_in_code, import_main_css_in_css) {
304
+ exports.codeExtract = function(filename, code, _package, css_dir, single_css, import_main_css_in_code, import_main_css_in_css) {
304
305
  const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
305
306
  const len0 = WASM_VECTOR_LEN;
306
307
  const ptr1 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -319,7 +320,7 @@ module.exports.codeExtract = function(filename, code, _package, css_dir, single_
319
320
  /**
320
321
  * @param {any} theme_object
321
322
  */
322
- module.exports.registerTheme = function(theme_object) {
323
+ exports.registerTheme = function(theme_object) {
323
324
  const ret = wasm.registerTheme(theme_object);
324
325
  if (ret[1]) {
325
326
  throw takeFromExternrefTable0(ret[0]);
@@ -329,7 +330,7 @@ module.exports.registerTheme = function(theme_object) {
329
330
  /**
330
331
  * @returns {string | undefined}
331
332
  */
332
- module.exports.getDefaultTheme = function() {
333
+ exports.getDefaultTheme = function() {
333
334
  const ret = wasm.getDefaultTheme();
334
335
  if (ret[3]) {
335
336
  throw takeFromExternrefTable0(ret[2]);
@@ -347,7 +348,7 @@ module.exports.getDefaultTheme = function() {
347
348
  * @param {boolean} import_main_css
348
349
  * @returns {string}
349
350
  */
350
- module.exports.getCss = function(file_num, import_main_css) {
351
+ exports.getCss = function(file_num, import_main_css) {
351
352
  let deferred2_0;
352
353
  let deferred2_1;
353
354
  try {
@@ -373,7 +374,7 @@ module.exports.getCss = function(file_num, import_main_css) {
373
374
  * @param {string} theme_interface_name
374
375
  * @returns {string}
375
376
  */
376
- module.exports.getThemeInterface = function(package_name, color_interface_name, typography_interface_name, theme_interface_name) {
377
+ exports.getThemeInterface = function(package_name, color_interface_name, typography_interface_name, theme_interface_name) {
377
378
  let deferred5_0;
378
379
  let deferred5_1;
379
380
  try {
@@ -480,14 +481,21 @@ class Output {
480
481
  return v1;
481
482
  }
482
483
  }
483
- module.exports.Output = Output;
484
+ if (Symbol.dispose) Output.prototype[Symbol.dispose] = Output.prototype.free;
485
+
486
+ exports.Output = Output;
484
487
 
485
- module.exports.__wbg_Error_0497d5bdba9362e5 = function(arg0, arg1) {
488
+ exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
486
489
  const ret = Error(getStringFromWasm0(arg0, arg1));
487
490
  return ret;
488
491
  };
489
492
 
490
- module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
493
+ exports.__wbg_Number_998bea33bd87c3e0 = function(arg0) {
494
+ const ret = Number(arg0);
495
+ return ret;
496
+ };
497
+
498
+ exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
491
499
  const ret = String(arg1);
492
500
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
493
501
  const len1 = WASM_VECTOR_LEN;
@@ -495,42 +503,37 @@ module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
495
503
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
496
504
  };
497
505
 
498
- module.exports.__wbg_buffer_a1a27a0dfa70165d = function(arg0) {
499
- const ret = arg0.buffer;
500
- return ret;
501
- };
502
-
503
- module.exports.__wbg_call_fbe8be8bf6436ce5 = function() { return handleError(function (arg0, arg1) {
506
+ exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
504
507
  const ret = arg0.call(arg1);
505
508
  return ret;
506
509
  }, arguments) };
507
510
 
508
- module.exports.__wbg_done_4d01f352bade43b7 = function(arg0) {
511
+ exports.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
509
512
  const ret = arg0.done;
510
513
  return ret;
511
514
  };
512
515
 
513
- module.exports.__wbg_entries_41651c850143b957 = function(arg0) {
516
+ exports.__wbg_entries_2be2f15bd5554996 = function(arg0) {
514
517
  const ret = Object.entries(arg0);
515
518
  return ret;
516
519
  };
517
520
 
518
- module.exports.__wbg_get_92470be87867c2e5 = function() { return handleError(function (arg0, arg1) {
519
- const ret = Reflect.get(arg0, arg1);
520
- return ret;
521
- }, arguments) };
522
-
523
- module.exports.__wbg_get_a131a44bd1eb6979 = function(arg0, arg1) {
521
+ exports.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
524
522
  const ret = arg0[arg1 >>> 0];
525
523
  return ret;
526
524
  };
527
525
 
528
- module.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
526
+ exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
527
+ const ret = Reflect.get(arg0, arg1);
528
+ return ret;
529
+ }, arguments) };
530
+
531
+ exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
529
532
  const ret = arg0[arg1];
530
533
  return ret;
531
534
  };
532
535
 
533
- module.exports.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
536
+ exports.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
534
537
  let result;
535
538
  try {
536
539
  result = arg0 instanceof ArrayBuffer;
@@ -541,7 +544,7 @@ module.exports.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
541
544
  return ret;
542
545
  };
543
546
 
544
- module.exports.__wbg_instanceof_Map_80cc65041c96417a = function(arg0) {
547
+ exports.__wbg_instanceof_Map_ebb01a5b6b5ffd0b = function(arg0) {
545
548
  let result;
546
549
  try {
547
550
  result = arg0 instanceof Map;
@@ -552,7 +555,7 @@ module.exports.__wbg_instanceof_Map_80cc65041c96417a = function(arg0) {
552
555
  return ret;
553
556
  };
554
557
 
555
- module.exports.__wbg_instanceof_Uint8Array_ca460677bc155827 = function(arg0) {
558
+ exports.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
556
559
  let result;
557
560
  try {
558
561
  result = arg0 instanceof Uint8Array;
@@ -563,84 +566,69 @@ module.exports.__wbg_instanceof_Uint8Array_ca460677bc155827 = function(arg0) {
563
566
  return ret;
564
567
  };
565
568
 
566
- module.exports.__wbg_isArray_5f090bed72bd4f89 = function(arg0) {
569
+ exports.__wbg_isArray_030cce220591fb41 = function(arg0) {
567
570
  const ret = Array.isArray(arg0);
568
571
  return ret;
569
572
  };
570
573
 
571
- module.exports.__wbg_isSafeInteger_90d7c4674047d684 = function(arg0) {
574
+ exports.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) {
572
575
  const ret = Number.isSafeInteger(arg0);
573
576
  return ret;
574
577
  };
575
578
 
576
- module.exports.__wbg_iterator_4068add5b2aef7a6 = function() {
579
+ exports.__wbg_iterator_f370b34483c71a1c = function() {
577
580
  const ret = Symbol.iterator;
578
581
  return ret;
579
582
  };
580
583
 
581
- module.exports.__wbg_length_ab6d22b5ead75c72 = function(arg0) {
584
+ exports.__wbg_length_186546c51cd61acd = function(arg0) {
582
585
  const ret = arg0.length;
583
586
  return ret;
584
587
  };
585
588
 
586
- module.exports.__wbg_length_f00ec12454a5d9fd = function(arg0) {
589
+ exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
587
590
  const ret = arg0.length;
588
591
  return ret;
589
592
  };
590
593
 
591
- module.exports.__wbg_new_e52b3efaaa774f96 = function(arg0) {
594
+ exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
592
595
  const ret = new Uint8Array(arg0);
593
596
  return ret;
594
597
  };
595
598
 
596
- module.exports.__wbg_next_8bb824d217961b5d = function(arg0) {
599
+ exports.__wbg_next_5b3530e612fde77d = function(arg0) {
597
600
  const ret = arg0.next;
598
601
  return ret;
599
602
  };
600
603
 
601
- module.exports.__wbg_next_e2da48d8fff7439a = function() { return handleError(function (arg0) {
604
+ exports.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
602
605
  const ret = arg0.next();
603
606
  return ret;
604
607
  }, arguments) };
605
608
 
606
- module.exports.__wbg_set_fe4e79d1ed3b0e9b = function(arg0, arg1, arg2) {
607
- arg0.set(arg1, arg2 >>> 0);
609
+ exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
610
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
608
611
  };
609
612
 
610
- module.exports.__wbg_value_17b896954e14f896 = function(arg0) {
613
+ exports.__wbg_value_dd9372230531eade = function(arg0) {
611
614
  const ret = arg0.value;
612
615
  return ret;
613
616
  };
614
617
 
615
- module.exports.__wbindgen_as_number = function(arg0) {
616
- const ret = +arg0;
617
- return ret;
618
- };
619
-
620
- module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
621
- const ret = arg0;
622
- return ret;
623
- };
624
-
625
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
626
- const ret = BigInt.asUintN(64, arg0);
627
- return ret;
628
- };
629
-
630
- module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
618
+ exports.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
631
619
  const v = arg1;
632
620
  const ret = typeof(v) === 'bigint' ? v : undefined;
633
621
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
634
622
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
635
623
  };
636
624
 
637
- module.exports.__wbindgen_boolean_get = function(arg0) {
625
+ exports.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
638
626
  const v = arg0;
639
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
640
- return ret;
627
+ const ret = typeof(v) === 'boolean' ? v : undefined;
628
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
641
629
  };
642
630
 
643
- module.exports.__wbindgen_debug_string = function(arg0, arg1) {
631
+ exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
644
632
  const ret = debugString(arg1);
645
633
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
646
634
  const len1 = WASM_VECTOR_LEN;
@@ -648,71 +636,55 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
648
636
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
649
637
  };
650
638
 
651
- module.exports.__wbindgen_in = function(arg0, arg1) {
639
+ exports.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
652
640
  const ret = arg0 in arg1;
653
641
  return ret;
654
642
  };
655
643
 
656
- module.exports.__wbindgen_init_externref_table = function() {
657
- const table = wasm.__wbindgen_export_4;
658
- const offset = table.grow(4);
659
- table.set(0, undefined);
660
- table.set(offset + 0, undefined);
661
- table.set(offset + 1, null);
662
- table.set(offset + 2, true);
663
- table.set(offset + 3, false);
664
- ;
665
- };
666
-
667
- module.exports.__wbindgen_is_bigint = function(arg0) {
644
+ exports.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) {
668
645
  const ret = typeof(arg0) === 'bigint';
669
646
  return ret;
670
647
  };
671
648
 
672
- module.exports.__wbindgen_is_function = function(arg0) {
649
+ exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
673
650
  const ret = typeof(arg0) === 'function';
674
651
  return ret;
675
652
  };
676
653
 
677
- module.exports.__wbindgen_is_object = function(arg0) {
654
+ exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
678
655
  const val = arg0;
679
656
  const ret = typeof(val) === 'object' && val !== null;
680
657
  return ret;
681
658
  };
682
659
 
683
- module.exports.__wbindgen_is_string = function(arg0) {
660
+ exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
684
661
  const ret = typeof(arg0) === 'string';
685
662
  return ret;
686
663
  };
687
664
 
688
- module.exports.__wbindgen_is_undefined = function(arg0) {
665
+ exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
689
666
  const ret = arg0 === undefined;
690
667
  return ret;
691
668
  };
692
669
 
693
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
670
+ exports.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) {
694
671
  const ret = arg0 === arg1;
695
672
  return ret;
696
673
  };
697
674
 
698
- module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
675
+ exports.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
699
676
  const ret = arg0 == arg1;
700
677
  return ret;
701
678
  };
702
679
 
703
- module.exports.__wbindgen_memory = function() {
704
- const ret = wasm.memory;
705
- return ret;
706
- };
707
-
708
- module.exports.__wbindgen_number_get = function(arg0, arg1) {
680
+ exports.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
709
681
  const obj = arg1;
710
682
  const ret = typeof(obj) === 'number' ? obj : undefined;
711
683
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
712
684
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
713
685
  };
714
686
 
715
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
687
+ exports.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
716
688
  const obj = arg1;
717
689
  const ret = typeof(obj) === 'string' ? obj : undefined;
718
690
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -721,22 +693,43 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
721
693
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
722
694
  };
723
695
 
724
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
696
+ exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
697
+ throw new Error(getStringFromWasm0(arg0, arg1));
698
+ };
699
+
700
+ exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
701
+ // Cast intrinsic for `Ref(String) -> Externref`.
725
702
  const ret = getStringFromWasm0(arg0, arg1);
726
703
  return ret;
727
704
  };
728
705
 
729
- module.exports.__wbindgen_throw = function(arg0, arg1) {
730
- throw new Error(getStringFromWasm0(arg0, arg1));
706
+ exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
707
+ // Cast intrinsic for `U64 -> Externref`.
708
+ const ret = BigInt.asUintN(64, arg0);
709
+ return ret;
710
+ };
711
+
712
+ exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
713
+ // Cast intrinsic for `I64 -> Externref`.
714
+ const ret = arg0;
715
+ return ret;
731
716
  };
732
717
 
733
- const path = require('path').join(__dirname, 'index_bg.wasm');
734
- const bytes = require('fs').readFileSync(path);
718
+ exports.__wbindgen_init_externref_table = function() {
719
+ const table = wasm.__wbindgen_export_4;
720
+ const offset = table.grow(4);
721
+ table.set(0, undefined);
722
+ table.set(offset + 0, undefined);
723
+ table.set(offset + 1, null);
724
+ table.set(offset + 2, true);
725
+ table.set(offset + 3, false);
726
+ ;
727
+ };
735
728
 
736
- const wasmModule = new WebAssembly.Module(bytes);
737
- const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
738
- wasm = wasmInstance.exports;
739
- module.exports.__wasm = wasm;
729
+ const wasmPath = `${__dirname}/index_bg.wasm`;
730
+ const wasmBytes = require('fs').readFileSync(wasmPath);
731
+ const wasmModule = new WebAssembly.Module(wasmBytes);
732
+ const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
740
733
 
741
734
  wasm.__wbindgen_start();
742
735
 
package/pkg/index_bg.wasm CHANGED
Binary file