@c9up/atom 0.1.12 → 0.1.14

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.
@@ -0,0 +1,583 @@
1
+ /* @ts-self-types="./atom_engine_wasm.d.ts" */
2
+
3
+ /**
4
+ * @param {string} a
5
+ * @param {string} b
6
+ * @returns {string}
7
+ */
8
+ export function add(a, b) {
9
+ let deferred4_0;
10
+ let deferred4_1;
11
+ try {
12
+ const ptr0 = passStringToWasm0(a, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
13
+ const len0 = WASM_VECTOR_LEN;
14
+ const ptr1 = passStringToWasm0(b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
15
+ const len1 = WASM_VECTOR_LEN;
16
+ const ret = wasm.add(ptr0, len0, ptr1, len1);
17
+ var ptr3 = ret[0];
18
+ var len3 = ret[1];
19
+ if (ret[3]) {
20
+ ptr3 = 0; len3 = 0;
21
+ throw takeFromExternrefTable0(ret[2]);
22
+ }
23
+ deferred4_0 = ptr3;
24
+ deferred4_1 = len3;
25
+ return getStringFromWasm0(ptr3, len3);
26
+ } finally {
27
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
28
+ }
29
+ }
30
+
31
+ /**
32
+ * @param {string} a
33
+ * @param {string} b
34
+ * @returns {number}
35
+ */
36
+ export function cmp(a, b) {
37
+ const ptr0 = passStringToWasm0(a, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
38
+ const len0 = WASM_VECTOR_LEN;
39
+ const ptr1 = passStringToWasm0(b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
40
+ const len1 = WASM_VECTOR_LEN;
41
+ const ret = wasm.cmp(ptr0, len0, ptr1, len1);
42
+ if (ret[2]) {
43
+ throw takeFromExternrefTable0(ret[1]);
44
+ }
45
+ return ret[0];
46
+ }
47
+
48
+ /**
49
+ * @param {string} a
50
+ * @param {string} b
51
+ * @param {number} precision
52
+ * @returns {string}
53
+ */
54
+ export function div(a, b, precision) {
55
+ let deferred4_0;
56
+ let deferred4_1;
57
+ try {
58
+ const ptr0 = passStringToWasm0(a, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
59
+ const len0 = WASM_VECTOR_LEN;
60
+ const ptr1 = passStringToWasm0(b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
61
+ const len1 = WASM_VECTOR_LEN;
62
+ const ret = wasm.div(ptr0, len0, ptr1, len1, precision);
63
+ var ptr3 = ret[0];
64
+ var len3 = ret[1];
65
+ if (ret[3]) {
66
+ ptr3 = 0; len3 = 0;
67
+ throw takeFromExternrefTable0(ret[2]);
68
+ }
69
+ deferred4_0 = ptr3;
70
+ deferred4_1 = len3;
71
+ return getStringFromWasm0(ptr3, len3);
72
+ } finally {
73
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
74
+ }
75
+ }
76
+
77
+ /**
78
+ * @param {string[]} a
79
+ * @param {string[]} b
80
+ * @returns {string}
81
+ */
82
+ export function dot(a, b) {
83
+ let deferred4_0;
84
+ let deferred4_1;
85
+ try {
86
+ const ptr0 = passArrayJsValueToWasm0(a, wasm.__wbindgen_malloc);
87
+ const len0 = WASM_VECTOR_LEN;
88
+ const ptr1 = passArrayJsValueToWasm0(b, wasm.__wbindgen_malloc);
89
+ const len1 = WASM_VECTOR_LEN;
90
+ const ret = wasm.dot(ptr0, len0, ptr1, len1);
91
+ var ptr3 = ret[0];
92
+ var len3 = ret[1];
93
+ if (ret[3]) {
94
+ ptr3 = 0; len3 = 0;
95
+ throw takeFromExternrefTable0(ret[2]);
96
+ }
97
+ deferred4_0 = ptr3;
98
+ deferred4_1 = len3;
99
+ return getStringFromWasm0(ptr3, len3);
100
+ } finally {
101
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
102
+ }
103
+ }
104
+
105
+ /**
106
+ * @param {string} a
107
+ * @param {string} b
108
+ * @returns {string}
109
+ */
110
+ export function mul(a, b) {
111
+ let deferred4_0;
112
+ let deferred4_1;
113
+ try {
114
+ const ptr0 = passStringToWasm0(a, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
115
+ const len0 = WASM_VECTOR_LEN;
116
+ const ptr1 = passStringToWasm0(b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
117
+ const len1 = WASM_VECTOR_LEN;
118
+ const ret = wasm.mul(ptr0, len0, ptr1, len1);
119
+ var ptr3 = ret[0];
120
+ var len3 = ret[1];
121
+ if (ret[3]) {
122
+ ptr3 = 0; len3 = 0;
123
+ throw takeFromExternrefTable0(ret[2]);
124
+ }
125
+ deferred4_0 = ptr3;
126
+ deferred4_1 = len3;
127
+ return getStringFromWasm0(ptr3, len3);
128
+ } finally {
129
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
130
+ }
131
+ }
132
+
133
+ /**
134
+ * @param {string} a
135
+ * @param {number} exp
136
+ * @param {number} precision
137
+ * @returns {string}
138
+ */
139
+ export function pow(a, exp, precision) {
140
+ let deferred3_0;
141
+ let deferred3_1;
142
+ try {
143
+ const ptr0 = passStringToWasm0(a, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
144
+ const len0 = WASM_VECTOR_LEN;
145
+ const ret = wasm.pow(ptr0, len0, exp, precision);
146
+ var ptr2 = ret[0];
147
+ var len2 = ret[1];
148
+ if (ret[3]) {
149
+ ptr2 = 0; len2 = 0;
150
+ throw takeFromExternrefTable0(ret[2]);
151
+ }
152
+ deferred3_0 = ptr2;
153
+ deferred3_1 = len2;
154
+ return getStringFromWasm0(ptr2, len2);
155
+ } finally {
156
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
157
+ }
158
+ }
159
+
160
+ /**
161
+ * @param {string} a
162
+ * @param {string} b
163
+ * @returns {string}
164
+ */
165
+ export function rem(a, b) {
166
+ let deferred4_0;
167
+ let deferred4_1;
168
+ try {
169
+ const ptr0 = passStringToWasm0(a, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
170
+ const len0 = WASM_VECTOR_LEN;
171
+ const ptr1 = passStringToWasm0(b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
172
+ const len1 = WASM_VECTOR_LEN;
173
+ const ret = wasm.rem(ptr0, len0, ptr1, len1);
174
+ var ptr3 = ret[0];
175
+ var len3 = ret[1];
176
+ if (ret[3]) {
177
+ ptr3 = 0; len3 = 0;
178
+ throw takeFromExternrefTable0(ret[2]);
179
+ }
180
+ deferred4_0 = ptr3;
181
+ deferred4_1 = len3;
182
+ return getStringFromWasm0(ptr3, len3);
183
+ } finally {
184
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
185
+ }
186
+ }
187
+
188
+ /**
189
+ * Run a bulk program over a resident column buffer.
190
+ *
191
+ * Held to the same shape as the N-API build so the two engines cannot quietly
192
+ * diverge — the browser has to export what Node does. `Vec<i64>` and `Vec<i32>`
193
+ * cross as `BigInt64Array` and `Int32Array`, which is what the compiler in
194
+ * TypeScript produces anyway.
195
+ * @param {BigInt64Array} values
196
+ * @param {number} rows
197
+ * @param {Int32Array} program
198
+ * @returns {string[]}
199
+ */
200
+ export function runBulk(values, rows, program) {
201
+ const ptr0 = passArray64ToWasm0(values, wasm.__wbindgen_malloc);
202
+ const len0 = WASM_VECTOR_LEN;
203
+ const ptr1 = passArray32ToWasm0(program, wasm.__wbindgen_malloc);
204
+ const len1 = WASM_VECTOR_LEN;
205
+ const ret = wasm.runBulk(ptr0, len0, rows, ptr1, len1);
206
+ if (ret[3]) {
207
+ throw takeFromExternrefTable0(ret[2]);
208
+ }
209
+ var v3 = getArrayJsValueFromWasm0(ret[0], ret[1]);
210
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
211
+ return v3;
212
+ }
213
+
214
+ /**
215
+ * @param {string} a
216
+ * @param {number} precision
217
+ * @returns {string}
218
+ */
219
+ export function sqrt(a, precision) {
220
+ let deferred3_0;
221
+ let deferred3_1;
222
+ try {
223
+ const ptr0 = passStringToWasm0(a, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
224
+ const len0 = WASM_VECTOR_LEN;
225
+ const ret = wasm.sqrt(ptr0, len0, precision);
226
+ var ptr2 = ret[0];
227
+ var len2 = ret[1];
228
+ if (ret[3]) {
229
+ ptr2 = 0; len2 = 0;
230
+ throw takeFromExternrefTable0(ret[2]);
231
+ }
232
+ deferred3_0 = ptr2;
233
+ deferred3_1 = len2;
234
+ return getStringFromWasm0(ptr2, len2);
235
+ } finally {
236
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
237
+ }
238
+ }
239
+
240
+ /**
241
+ * @param {string} a
242
+ * @param {string} b
243
+ * @returns {string}
244
+ */
245
+ export function sub(a, b) {
246
+ let deferred4_0;
247
+ let deferred4_1;
248
+ try {
249
+ const ptr0 = passStringToWasm0(a, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
250
+ const len0 = WASM_VECTOR_LEN;
251
+ const ptr1 = passStringToWasm0(b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
252
+ const len1 = WASM_VECTOR_LEN;
253
+ const ret = wasm.sub(ptr0, len0, ptr1, len1);
254
+ var ptr3 = ret[0];
255
+ var len3 = ret[1];
256
+ if (ret[3]) {
257
+ ptr3 = 0; len3 = 0;
258
+ throw takeFromExternrefTable0(ret[2]);
259
+ }
260
+ deferred4_0 = ptr3;
261
+ deferred4_1 = len3;
262
+ return getStringFromWasm0(ptr3, len3);
263
+ } finally {
264
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
265
+ }
266
+ }
267
+
268
+ /**
269
+ * The batch pair, held to the same shape as the NAPI build so the two
270
+ * engines cannot quietly diverge — the browser has to export what Node does.
271
+ *
272
+ * `Vec<String>` crosses the wasm boundary as a JS array of strings, which is
273
+ * exactly what the facade holds anyway.
274
+ * @param {string[]} values
275
+ * @returns {string}
276
+ */
277
+ export function sum(values) {
278
+ let deferred3_0;
279
+ let deferred3_1;
280
+ try {
281
+ const ptr0 = passArrayJsValueToWasm0(values, wasm.__wbindgen_malloc);
282
+ const len0 = WASM_VECTOR_LEN;
283
+ const ret = wasm.sum(ptr0, len0);
284
+ var ptr2 = ret[0];
285
+ var len2 = ret[1];
286
+ if (ret[3]) {
287
+ ptr2 = 0; len2 = 0;
288
+ throw takeFromExternrefTable0(ret[2]);
289
+ }
290
+ deferred3_0 = ptr2;
291
+ deferred3_1 = len2;
292
+ return getStringFromWasm0(ptr2, len2);
293
+ } finally {
294
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
295
+ }
296
+ }
297
+ function __wbg_get_imports() {
298
+ const import0 = {
299
+ __proto__: null,
300
+ __wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
301
+ const obj = arg1;
302
+ const ret = typeof(obj) === 'string' ? obj : undefined;
303
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
304
+ var len1 = WASM_VECTOR_LEN;
305
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
306
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
307
+ },
308
+ __wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
309
+ throw new Error(getStringFromWasm0(arg0, arg1));
310
+ },
311
+ __wbindgen_cast_0000000000000001: function(arg0, arg1) {
312
+ // Cast intrinsic for `Ref(String) -> Externref`.
313
+ const ret = getStringFromWasm0(arg0, arg1);
314
+ return ret;
315
+ },
316
+ __wbindgen_init_externref_table: function() {
317
+ const table = wasm.__wbindgen_externrefs;
318
+ const offset = table.grow(4);
319
+ table.set(0, undefined);
320
+ table.set(offset + 0, undefined);
321
+ table.set(offset + 1, null);
322
+ table.set(offset + 2, true);
323
+ table.set(offset + 3, false);
324
+ },
325
+ };
326
+ return {
327
+ __proto__: null,
328
+ "./atom_engine_wasm_bg.js": import0,
329
+ };
330
+ }
331
+
332
+ function addToExternrefTable0(obj) {
333
+ const idx = wasm.__externref_table_alloc();
334
+ wasm.__wbindgen_externrefs.set(idx, obj);
335
+ return idx;
336
+ }
337
+
338
+ function getArrayJsValueFromWasm0(ptr, len) {
339
+ ptr = ptr >>> 0;
340
+ const mem = getDataViewMemory0();
341
+ const result = [];
342
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
343
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
344
+ }
345
+ wasm.__externref_drop_slice(ptr, len);
346
+ return result;
347
+ }
348
+
349
+ let cachedBigUint64ArrayMemory0 = null;
350
+ function getBigUint64ArrayMemory0() {
351
+ if (cachedBigUint64ArrayMemory0 === null || cachedBigUint64ArrayMemory0.byteLength === 0) {
352
+ cachedBigUint64ArrayMemory0 = new BigUint64Array(wasm.memory.buffer);
353
+ }
354
+ return cachedBigUint64ArrayMemory0;
355
+ }
356
+
357
+ let cachedDataViewMemory0 = null;
358
+ function getDataViewMemory0() {
359
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
360
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
361
+ }
362
+ return cachedDataViewMemory0;
363
+ }
364
+
365
+ function getStringFromWasm0(ptr, len) {
366
+ return decodeText(ptr >>> 0, len);
367
+ }
368
+
369
+ let cachedUint32ArrayMemory0 = null;
370
+ function getUint32ArrayMemory0() {
371
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
372
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
373
+ }
374
+ return cachedUint32ArrayMemory0;
375
+ }
376
+
377
+ let cachedUint8ArrayMemory0 = null;
378
+ function getUint8ArrayMemory0() {
379
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
380
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
381
+ }
382
+ return cachedUint8ArrayMemory0;
383
+ }
384
+
385
+ function isLikeNone(x) {
386
+ return x === undefined || x === null;
387
+ }
388
+
389
+ function passArray32ToWasm0(arg, malloc) {
390
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
391
+ getUint32ArrayMemory0().set(arg, ptr / 4);
392
+ WASM_VECTOR_LEN = arg.length;
393
+ return ptr;
394
+ }
395
+
396
+ function passArray64ToWasm0(arg, malloc) {
397
+ const ptr = malloc(arg.length * 8, 8) >>> 0;
398
+ getBigUint64ArrayMemory0().set(arg, ptr / 8);
399
+ WASM_VECTOR_LEN = arg.length;
400
+ return ptr;
401
+ }
402
+
403
+ function passArrayJsValueToWasm0(array, malloc) {
404
+ const ptr = malloc(array.length * 4, 4) >>> 0;
405
+ for (let i = 0; i < array.length; i++) {
406
+ const add = addToExternrefTable0(array[i]);
407
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
408
+ }
409
+ WASM_VECTOR_LEN = array.length;
410
+ return ptr;
411
+ }
412
+
413
+ function passStringToWasm0(arg, malloc, realloc) {
414
+ if (realloc === undefined) {
415
+ const buf = cachedTextEncoder.encode(arg);
416
+ const ptr = malloc(buf.length, 1) >>> 0;
417
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
418
+ WASM_VECTOR_LEN = buf.length;
419
+ return ptr;
420
+ }
421
+
422
+ let len = arg.length;
423
+ let ptr = malloc(len, 1) >>> 0;
424
+
425
+ const mem = getUint8ArrayMemory0();
426
+
427
+ let offset = 0;
428
+
429
+ for (; offset < len; offset++) {
430
+ const code = arg.charCodeAt(offset);
431
+ if (code > 0x7F) break;
432
+ mem[ptr + offset] = code;
433
+ }
434
+ if (offset !== len) {
435
+ if (offset !== 0) {
436
+ arg = arg.slice(offset);
437
+ }
438
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
439
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
440
+ const ret = cachedTextEncoder.encodeInto(arg, view);
441
+
442
+ offset += ret.written;
443
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
444
+ }
445
+
446
+ WASM_VECTOR_LEN = offset;
447
+ return ptr;
448
+ }
449
+
450
+ function takeFromExternrefTable0(idx) {
451
+ const value = wasm.__wbindgen_externrefs.get(idx);
452
+ wasm.__externref_table_dealloc(idx);
453
+ return value;
454
+ }
455
+
456
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
457
+ cachedTextDecoder.decode();
458
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
459
+ let numBytesDecoded = 0;
460
+ function decodeText(ptr, len) {
461
+ numBytesDecoded += len;
462
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
463
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
464
+ cachedTextDecoder.decode();
465
+ numBytesDecoded = len;
466
+ }
467
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
468
+ }
469
+
470
+ const cachedTextEncoder = new TextEncoder();
471
+
472
+ if (!('encodeInto' in cachedTextEncoder)) {
473
+ cachedTextEncoder.encodeInto = function (arg, view) {
474
+ const buf = cachedTextEncoder.encode(arg);
475
+ view.set(buf);
476
+ return {
477
+ read: arg.length,
478
+ written: buf.length
479
+ };
480
+ };
481
+ }
482
+
483
+ let WASM_VECTOR_LEN = 0;
484
+
485
+ let wasmModule, wasmInstance, wasm;
486
+ function __wbg_finalize_init(instance, module) {
487
+ wasmInstance = instance;
488
+ wasm = instance.exports;
489
+ wasmModule = module;
490
+ cachedBigUint64ArrayMemory0 = null;
491
+ cachedDataViewMemory0 = null;
492
+ cachedUint32ArrayMemory0 = null;
493
+ cachedUint8ArrayMemory0 = null;
494
+ wasm.__wbindgen_start();
495
+ return wasm;
496
+ }
497
+
498
+ async function __wbg_load(module, imports) {
499
+ if (typeof Response === 'function' && module instanceof Response) {
500
+ if (!module.ok) {
501
+ throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
502
+ }
503
+
504
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
505
+ try {
506
+ return await WebAssembly.instantiateStreaming(module, imports);
507
+ } catch (e) {
508
+ const validResponse = expectedResponseType(module.type);
509
+
510
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
511
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
512
+
513
+ } else { throw e; }
514
+ }
515
+ }
516
+
517
+ const bytes = await module.arrayBuffer();
518
+ return await WebAssembly.instantiate(bytes, imports);
519
+ } else {
520
+ const instance = await WebAssembly.instantiate(module, imports);
521
+
522
+ if (instance instanceof WebAssembly.Instance) {
523
+ return { instance, module };
524
+ } else {
525
+ return instance;
526
+ }
527
+ }
528
+
529
+ function expectedResponseType(type) {
530
+ switch (type) {
531
+ case 'basic': case 'cors': case 'default': return true;
532
+ }
533
+ return false;
534
+ }
535
+ }
536
+
537
+ function initSync(module) {
538
+ if (wasm !== undefined) return wasm;
539
+
540
+
541
+ if (module !== undefined) {
542
+ if (Object.getPrototypeOf(module) === Object.prototype) {
543
+ ({module} = module)
544
+ } else {
545
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
546
+ }
547
+ }
548
+
549
+ const imports = __wbg_get_imports();
550
+ if (!(module instanceof WebAssembly.Module)) {
551
+ module = new WebAssembly.Module(module);
552
+ }
553
+ const instance = new WebAssembly.Instance(module, imports);
554
+ return __wbg_finalize_init(instance, module);
555
+ }
556
+
557
+ async function __wbg_init(module_or_path) {
558
+ if (wasm !== undefined) return wasm;
559
+
560
+
561
+ if (module_or_path !== undefined) {
562
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
563
+ ({module_or_path} = module_or_path)
564
+ } else {
565
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
566
+ }
567
+ }
568
+
569
+ if (module_or_path === undefined) {
570
+ module_or_path = new URL('atom_engine_wasm_bg.wasm', import.meta.url);
571
+ }
572
+ const imports = __wbg_get_imports();
573
+
574
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
575
+ module_or_path = fetch(module_or_path);
576
+ }
577
+
578
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
579
+
580
+ return __wbg_finalize_init(instance, module);
581
+ }
582
+
583
+ export { initSync, __wbg_init as default };
Binary file
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const add: (a: number, b: number, c: number, d: number) => [number, number, number, number];
5
+ export const cmp: (a: number, b: number, c: number, d: number) => [number, number, number];
6
+ export const div: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
7
+ export const dot: (a: number, b: number, c: number, d: number) => [number, number, number, number];
8
+ export const mul: (a: number, b: number, c: number, d: number) => [number, number, number, number];
9
+ export const pow: (a: number, b: number, c: number, d: number) => [number, number, number, number];
10
+ export const rem: (a: number, b: number, c: number, d: number) => [number, number, number, number];
11
+ export const runBulk: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
12
+ export const sqrt: (a: number, b: number, c: number) => [number, number, number, number];
13
+ export const sub: (a: number, b: number, c: number, d: number) => [number, number, number, number];
14
+ export const sum: (a: number, b: number) => [number, number, number, number];
15
+ export const __wbindgen_malloc: (a: number, b: number) => number;
16
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
17
+ export const __wbindgen_externrefs: WebAssembly.Table;
18
+ export const __externref_table_dealloc: (a: number) => void;
19
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
20
+ export const __externref_table_alloc: () => number;
21
+ export const __externref_drop_slice: (a: number, b: number) => void;
22
+ export const __wbindgen_start: () => void;