@openheart/tavio-renderer 2.2.9-without-wasm → 2.2.10-without-wasm

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,1081 @@
1
+ /* @ts-self-types="./tavio.d.ts" */
2
+ import { startWorkers } from './snippets/wasm-bindgen-rayon-38edf6e439f6d70d/src/workerHelpers.js';
3
+
4
+ export class IntoUnderlyingByteSource {
5
+ __destroy_into_raw() {
6
+ const ptr = this.__wbg_ptr;
7
+ this.__wbg_ptr = 0;
8
+ IntoUnderlyingByteSourceFinalization.unregister(this);
9
+ return ptr;
10
+ }
11
+ free() {
12
+ const ptr = this.__destroy_into_raw();
13
+ wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
14
+ }
15
+ /**
16
+ * @returns {number}
17
+ */
18
+ get autoAllocateChunkSize() {
19
+ const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
20
+ return ret >>> 0;
21
+ }
22
+ cancel() {
23
+ const ptr = this.__destroy_into_raw();
24
+ wasm.intounderlyingbytesource_cancel(ptr);
25
+ }
26
+ /**
27
+ * @param {ReadableByteStreamController} controller
28
+ * @returns {Promise<any>}
29
+ */
30
+ pull(controller) {
31
+ const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, addHeapObject(controller));
32
+ return takeObject(ret);
33
+ }
34
+ /**
35
+ * @param {ReadableByteStreamController} controller
36
+ */
37
+ start(controller) {
38
+ wasm.intounderlyingbytesource_start(this.__wbg_ptr, addHeapObject(controller));
39
+ }
40
+ /**
41
+ * @returns {ReadableStreamType}
42
+ */
43
+ get type() {
44
+ const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
45
+ return __wbindgen_enum_ReadableStreamType[ret];
46
+ }
47
+ }
48
+ if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
49
+
50
+ export class IntoUnderlyingSink {
51
+ __destroy_into_raw() {
52
+ const ptr = this.__wbg_ptr;
53
+ this.__wbg_ptr = 0;
54
+ IntoUnderlyingSinkFinalization.unregister(this);
55
+ return ptr;
56
+ }
57
+ free() {
58
+ const ptr = this.__destroy_into_raw();
59
+ wasm.__wbg_intounderlyingsink_free(ptr, 0);
60
+ }
61
+ /**
62
+ * @param {any} reason
63
+ * @returns {Promise<any>}
64
+ */
65
+ abort(reason) {
66
+ const ptr = this.__destroy_into_raw();
67
+ const ret = wasm.intounderlyingsink_abort(ptr, addHeapObject(reason));
68
+ return takeObject(ret);
69
+ }
70
+ /**
71
+ * @returns {Promise<any>}
72
+ */
73
+ close() {
74
+ const ptr = this.__destroy_into_raw();
75
+ const ret = wasm.intounderlyingsink_close(ptr);
76
+ return takeObject(ret);
77
+ }
78
+ /**
79
+ * @param {any} chunk
80
+ * @returns {Promise<any>}
81
+ */
82
+ write(chunk) {
83
+ const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, addHeapObject(chunk));
84
+ return takeObject(ret);
85
+ }
86
+ }
87
+ if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
88
+
89
+ export class IntoUnderlyingSource {
90
+ __destroy_into_raw() {
91
+ const ptr = this.__wbg_ptr;
92
+ this.__wbg_ptr = 0;
93
+ IntoUnderlyingSourceFinalization.unregister(this);
94
+ return ptr;
95
+ }
96
+ free() {
97
+ const ptr = this.__destroy_into_raw();
98
+ wasm.__wbg_intounderlyingsource_free(ptr, 0);
99
+ }
100
+ cancel() {
101
+ const ptr = this.__destroy_into_raw();
102
+ wasm.intounderlyingsource_cancel(ptr);
103
+ }
104
+ /**
105
+ * @param {ReadableStreamDefaultController} controller
106
+ * @returns {Promise<any>}
107
+ */
108
+ pull(controller) {
109
+ const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, addHeapObject(controller));
110
+ return takeObject(ret);
111
+ }
112
+ }
113
+ if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
114
+
115
+ /**
116
+ * @param {string} url
117
+ * @param {DecodeOptions} decode_options
118
+ * @returns {Promise<void>}
119
+ */
120
+ export function decodeTavio(url, decode_options) {
121
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
122
+ const len0 = WASM_VECTOR_LEN;
123
+ const ret = wasm.decodeTavio(ptr0, len0, addHeapObject(decode_options));
124
+ return takeObject(ret);
125
+ }
126
+
127
+ /**
128
+ * @param {number} num_threads
129
+ * @returns {Promise<any>}
130
+ */
131
+ export function initThreadPool(num_threads) {
132
+ const ret = wasm.initThreadPool(num_threads);
133
+ return takeObject(ret);
134
+ }
135
+
136
+ export function main() {
137
+ wasm.main();
138
+ }
139
+
140
+ /**
141
+ * @param {Function} event_handler
142
+ * @returns {Promise<void>}
143
+ */
144
+ export function registerEventHandler(event_handler) {
145
+ const ret = wasm.registerEventHandler(addHeapObject(event_handler));
146
+ return takeObject(ret);
147
+ }
148
+
149
+ /**
150
+ * @param {Uint16Array} depths
151
+ * @param {Uint32Array} ordering
152
+ * @param {number} splat_count
153
+ * @returns {number}
154
+ */
155
+ export function sort(depths, ordering, splat_count) {
156
+ const ret = wasm.sort(addHeapObject(depths), addHeapObject(ordering), splat_count);
157
+ return ret >>> 0;
158
+ }
159
+
160
+ export class wbg_rayon_PoolBuilder {
161
+ static __wrap(ptr) {
162
+ ptr = ptr >>> 0;
163
+ const obj = Object.create(wbg_rayon_PoolBuilder.prototype);
164
+ obj.__wbg_ptr = ptr;
165
+ wbg_rayon_PoolBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
166
+ return obj;
167
+ }
168
+ __destroy_into_raw() {
169
+ const ptr = this.__wbg_ptr;
170
+ this.__wbg_ptr = 0;
171
+ wbg_rayon_PoolBuilderFinalization.unregister(this);
172
+ return ptr;
173
+ }
174
+ free() {
175
+ const ptr = this.__destroy_into_raw();
176
+ wasm.__wbg_wbg_rayon_poolbuilder_free(ptr, 0);
177
+ }
178
+ build() {
179
+ wasm.wbg_rayon_poolbuilder_build(this.__wbg_ptr);
180
+ }
181
+ /**
182
+ * @returns {number}
183
+ */
184
+ numThreads() {
185
+ const ret = wasm.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr);
186
+ return ret >>> 0;
187
+ }
188
+ /**
189
+ * @returns {number}
190
+ */
191
+ receiver() {
192
+ const ret = wasm.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr);
193
+ return ret >>> 0;
194
+ }
195
+ }
196
+ if (Symbol.dispose) wbg_rayon_PoolBuilder.prototype[Symbol.dispose] = wbg_rayon_PoolBuilder.prototype.free;
197
+
198
+ /**
199
+ * @param {number} receiver
200
+ */
201
+ export function wbg_rayon_start_worker(receiver) {
202
+ wasm.wbg_rayon_start_worker(receiver);
203
+ }
204
+
205
+ function __wbg_get_imports(memory) {
206
+ const import0 = {
207
+ __proto__: null,
208
+ __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
209
+ const v = getObject(arg0);
210
+ const ret = typeof(v) === 'boolean' ? v : undefined;
211
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
212
+ },
213
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
214
+ const ret = debugString(getObject(arg1));
215
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
216
+ const len1 = WASM_VECTOR_LEN;
217
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
218
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
219
+ },
220
+ __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
221
+ const ret = typeof(getObject(arg0)) === 'function';
222
+ return ret;
223
+ },
224
+ __wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
225
+ const ret = getObject(arg0) === undefined;
226
+ return ret;
227
+ },
228
+ __wbg___wbindgen_memory_bd1fbcf21fbef3c8: function() {
229
+ const ret = wasm.memory;
230
+ return addHeapObject(ret);
231
+ },
232
+ __wbg___wbindgen_module_f6b8052d79c1cc16: function() {
233
+ const ret = wasmModule;
234
+ return addHeapObject(ret);
235
+ },
236
+ __wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
237
+ const obj = getObject(arg1);
238
+ const ret = typeof(obj) === 'number' ? obj : undefined;
239
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
240
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
241
+ },
242
+ __wbg___wbindgen_rethrow_05525c567f154472: function(arg0) {
243
+ throw takeObject(arg0);
244
+ },
245
+ __wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
246
+ const obj = getObject(arg1);
247
+ const ret = typeof(obj) === 'string' ? obj : undefined;
248
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
249
+ var len1 = WASM_VECTOR_LEN;
250
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
251
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
252
+ },
253
+ __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
254
+ throw new Error(getStringFromWasm0(arg0, arg1));
255
+ },
256
+ __wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
257
+ getObject(arg0)._wbg_cb_unref();
258
+ },
259
+ __wbg_async_79f2a61f9d0b31cf: function(arg0) {
260
+ const ret = getObject(arg0).async;
261
+ return ret;
262
+ },
263
+ __wbg_body_3a0b4437dadea6bf: function(arg0) {
264
+ const ret = getObject(arg0).body;
265
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
266
+ },
267
+ __wbg_buffer_26d0910f3a5bc899: function(arg0) {
268
+ const ret = getObject(arg0).buffer;
269
+ return addHeapObject(ret);
270
+ },
271
+ __wbg_buffer_7b5f53e46557d8f1: function(arg0) {
272
+ const ret = getObject(arg0).buffer;
273
+ return addHeapObject(ret);
274
+ },
275
+ __wbg_byobRequest_80e594e6da4e1af7: function(arg0) {
276
+ const ret = getObject(arg0).byobRequest;
277
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
278
+ },
279
+ __wbg_byteLength_3417f266f4bf562a: function(arg0) {
280
+ const ret = getObject(arg0).byteLength;
281
+ return ret;
282
+ },
283
+ __wbg_byteOffset_f88547ca47c86358: function(arg0) {
284
+ const ret = getObject(arg0).byteOffset;
285
+ return ret;
286
+ },
287
+ __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
288
+ const ret = getObject(arg0).call(getObject(arg1));
289
+ return addHeapObject(ret);
290
+ }, arguments); },
291
+ __wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
292
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
293
+ return addHeapObject(ret);
294
+ }, arguments); },
295
+ __wbg_cancel_2c0a0a251ff6b2b7: function(arg0) {
296
+ const ret = getObject(arg0).cancel();
297
+ return addHeapObject(ret);
298
+ },
299
+ __wbg_catch_c1f8c7623b458214: function(arg0, arg1) {
300
+ const ret = getObject(arg0).catch(getObject(arg1));
301
+ return addHeapObject(ret);
302
+ },
303
+ __wbg_close_06dfa0a815b9d71f: function() { return handleError(function (arg0) {
304
+ getObject(arg0).close();
305
+ }, arguments); },
306
+ __wbg_close_a79afee31de55b36: function() { return handleError(function (arg0) {
307
+ getObject(arg0).close();
308
+ }, arguments); },
309
+ __wbg_data_5330da50312d0bc1: function(arg0) {
310
+ const ret = getObject(arg0).data;
311
+ return addHeapObject(ret);
312
+ },
313
+ __wbg_drawImage_a7b7cbdeb632c59c: function() { return handleError(function (arg0, arg1, arg2, arg3) {
314
+ getObject(arg0).drawImage(getObject(arg1), arg2, arg3);
315
+ }, arguments); },
316
+ __wbg_enqueue_2c63f2044f257c3e: function() { return handleError(function (arg0, arg1) {
317
+ getObject(arg0).enqueue(getObject(arg1));
318
+ }, arguments); },
319
+ __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
320
+ let deferred0_0;
321
+ let deferred0_1;
322
+ try {
323
+ deferred0_0 = arg0;
324
+ deferred0_1 = arg1;
325
+ console.error(getStringFromWasm0(arg0, arg1));
326
+ } finally {
327
+ wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
328
+ }
329
+ },
330
+ __wbg_error_c87e7fcccc684c88: function(arg0, arg1) {
331
+ console.error(getStringFromWasm0(arg0, arg1));
332
+ },
333
+ __wbg_getContext_2966500392030d63: function() { return handleError(function (arg0, arg1, arg2) {
334
+ const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
335
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
336
+ }, arguments); },
337
+ __wbg_getReader_48e00749fe3f6089: function() { return handleError(function (arg0) {
338
+ const ret = getObject(arg0).getReader();
339
+ return addHeapObject(ret);
340
+ }, arguments); },
341
+ __wbg_get_941633a1d2f510cb: function() { return handleError(function (arg0, arg1, arg2, arg3) {
342
+ const ret = getObject(arg1).get(getStringFromWasm0(arg2, arg3));
343
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
344
+ var len1 = WASM_VECTOR_LEN;
345
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
346
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
347
+ }, arguments); },
348
+ __wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
349
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
350
+ return addHeapObject(ret);
351
+ }, arguments); },
352
+ __wbg_get_done_1ad1c16537f444c6: function(arg0) {
353
+ const ret = getObject(arg0).done;
354
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
355
+ },
356
+ __wbg_get_value_6b77a1b7b90c9200: function(arg0) {
357
+ const ret = getObject(arg0).value;
358
+ return addHeapObject(ret);
359
+ },
360
+ __wbg_headers_59a2938db9f80985: function(arg0) {
361
+ const ret = getObject(arg0).headers;
362
+ return addHeapObject(ret);
363
+ },
364
+ __wbg_height_aceb0c14551ea27d: function(arg0) {
365
+ const ret = getObject(arg0).height;
366
+ return ret;
367
+ },
368
+ __wbg_instanceof_ImageBitmap_ac19b1b37fd818f6: function(arg0) {
369
+ let result;
370
+ try {
371
+ result = getObject(arg0) instanceof ImageBitmap;
372
+ } catch (_) {
373
+ result = false;
374
+ }
375
+ const ret = result;
376
+ return ret;
377
+ },
378
+ __wbg_instanceof_OffscreenCanvasRenderingContext2d_27cac106c839cd78: function(arg0) {
379
+ let result;
380
+ try {
381
+ result = getObject(arg0) instanceof OffscreenCanvasRenderingContext2D;
382
+ } catch (_) {
383
+ result = false;
384
+ }
385
+ const ret = result;
386
+ return ret;
387
+ },
388
+ __wbg_instanceof_Promise_0094681e3519d6ec: function(arg0) {
389
+ let result;
390
+ try {
391
+ result = getObject(arg0) instanceof Promise;
392
+ } catch (_) {
393
+ result = false;
394
+ }
395
+ const ret = result;
396
+ return ret;
397
+ },
398
+ __wbg_instanceof_Response_ee1d54d79ae41977: function(arg0) {
399
+ let result;
400
+ try {
401
+ result = getObject(arg0) instanceof Response;
402
+ } catch (_) {
403
+ result = false;
404
+ }
405
+ const ret = result;
406
+ return ret;
407
+ },
408
+ __wbg_instanceof_Window_ed49b2db8df90359: function(arg0) {
409
+ let result;
410
+ try {
411
+ result = getObject(arg0) instanceof Window;
412
+ } catch (_) {
413
+ result = false;
414
+ }
415
+ const ret = result;
416
+ return ret;
417
+ },
418
+ __wbg_length_1e8b0a6e52c08b9a: function(arg0) {
419
+ const ret = getObject(arg0).length;
420
+ return ret;
421
+ },
422
+ __wbg_length_32ed9a279acd054c: function(arg0) {
423
+ const ret = getObject(arg0).length;
424
+ return ret;
425
+ },
426
+ __wbg_length_8ce069301528a78d: function(arg0) {
427
+ const ret = getObject(arg0).length;
428
+ return ret;
429
+ },
430
+ __wbg_new_1eea5ab661db13e0: function() { return handleError(function (arg0, arg1) {
431
+ const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
432
+ return addHeapObject(ret);
433
+ }, arguments); },
434
+ __wbg_new_361308b2356cecd0: function() {
435
+ const ret = new Object();
436
+ return addHeapObject(ret);
437
+ },
438
+ __wbg_new_3eb36ae241fe6f44: function() {
439
+ const ret = new Array();
440
+ return addHeapObject(ret);
441
+ },
442
+ __wbg_new_4f8f3c123e474358: function() { return handleError(function (arg0, arg1) {
443
+ const ret = new Worker(getStringFromWasm0(arg0, arg1));
444
+ return addHeapObject(ret);
445
+ }, arguments); },
446
+ __wbg_new_72b49615380db768: function(arg0, arg1) {
447
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
448
+ return addHeapObject(ret);
449
+ },
450
+ __wbg_new_72c627ba80de1c21: function(arg0) {
451
+ const ret = new Int32Array(getObject(arg0));
452
+ return addHeapObject(ret);
453
+ },
454
+ __wbg_new_8a6f238a6ece86ea: function() {
455
+ const ret = new Error();
456
+ return addHeapObject(ret);
457
+ },
458
+ __wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
459
+ try {
460
+ var state0 = {a: arg0, b: arg1};
461
+ var cb0 = (arg0, arg1) => {
462
+ const a = state0.a;
463
+ state0.a = 0;
464
+ try {
465
+ return __wasm_bindgen_func_elem_1539(a, state0.b, arg0, arg1);
466
+ } finally {
467
+ state0.a = a;
468
+ }
469
+ };
470
+ const ret = new Promise(cb0);
471
+ return addHeapObject(ret);
472
+ } finally {
473
+ state0.a = state0.b = 0;
474
+ }
475
+ },
476
+ __wbg_new_dd2b680c8bf6ae29: function(arg0) {
477
+ const ret = new Uint8Array(getObject(arg0));
478
+ return addHeapObject(ret);
479
+ },
480
+ __wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
481
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
482
+ return addHeapObject(ret);
483
+ },
484
+ __wbg_new_with_byte_offset_and_length_aa261d9c9da49eb1: function(arg0, arg1, arg2) {
485
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
486
+ return addHeapObject(ret);
487
+ },
488
+ __wbg_new_with_length_a2c39cbe88fd8ff1: function(arg0) {
489
+ const ret = new Uint8Array(arg0 >>> 0);
490
+ return addHeapObject(ret);
491
+ },
492
+ __wbg_new_with_u8_array_sequence_08b2096a9f3117c0: function() { return handleError(function (arg0) {
493
+ const ret = new Blob(getObject(arg0));
494
+ return addHeapObject(ret);
495
+ }, arguments); },
496
+ __wbg_of_ddc0942b0dce16a1: function(arg0, arg1, arg2) {
497
+ const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
498
+ return addHeapObject(ret);
499
+ },
500
+ __wbg_postMessage_771ef3293a28bbac: function() { return handleError(function (arg0, arg1) {
501
+ getObject(arg0).postMessage(getObject(arg1));
502
+ }, arguments); },
503
+ __wbg_prototypesetcall_2adb484744144f7f: function(arg0, arg1, arg2) {
504
+ Uint16Array.prototype.set.call(getArrayU16FromWasm0(arg0, arg1), getObject(arg2));
505
+ },
506
+ __wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
507
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
508
+ },
509
+ __wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
510
+ const ret = getObject(arg0).push(getObject(arg1));
511
+ return ret;
512
+ },
513
+ __wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
514
+ const ret = getObject(arg0).queueMicrotask;
515
+ return addHeapObject(ret);
516
+ },
517
+ __wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
518
+ queueMicrotask(getObject(arg0));
519
+ },
520
+ __wbg_read_68fd377df67e19b0: function(arg0) {
521
+ const ret = getObject(arg0).read();
522
+ return addHeapObject(ret);
523
+ },
524
+ __wbg_releaseLock_aa5846c2494b3032: function(arg0) {
525
+ getObject(arg0).releaseLock();
526
+ },
527
+ __wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
528
+ const ret = Promise.resolve(getObject(arg0));
529
+ return addHeapObject(ret);
530
+ },
531
+ __wbg_respond_bf6ab10399ca8722: function() { return handleError(function (arg0, arg1) {
532
+ getObject(arg0).respond(arg1 >>> 0);
533
+ }, arguments); },
534
+ __wbg_setTransform_9d508c83354fc805: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
535
+ getObject(arg0).setTransform(arg1, arg2, arg3, arg4, arg5, arg6);
536
+ }, arguments); },
537
+ __wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
538
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
539
+ return ret;
540
+ }, arguments); },
541
+ __wbg_set_b2171b8c53f17490: function(arg0, arg1, arg2) {
542
+ getObject(arg0).set(getArrayU32FromWasm0(arg1, arg2));
543
+ },
544
+ __wbg_set_cc56eefd2dd91957: function(arg0, arg1, arg2) {
545
+ getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
546
+ },
547
+ __wbg_set_onmessage_6ed41050e4a5cee2: function(arg0, arg1) {
548
+ getObject(arg0).onmessage = getObject(arg1);
549
+ },
550
+ __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
551
+ const ret = getObject(arg1).stack;
552
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
553
+ const len1 = WASM_VECTOR_LEN;
554
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
555
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
556
+ },
557
+ __wbg_startWorkers_2ca11761e08ff5d5: function(arg0, arg1, arg2) {
558
+ const ret = startWorkers(takeObject(arg0), takeObject(arg1), wbg_rayon_PoolBuilder.__wrap(arg2));
559
+ return addHeapObject(ret);
560
+ },
561
+ __wbg_static_accessor_GLOBAL_12837167ad935116: function() {
562
+ const ret = typeof global === 'undefined' ? null : global;
563
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
564
+ },
565
+ __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
566
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
567
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
568
+ },
569
+ __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
570
+ const ret = typeof self === 'undefined' ? null : self;
571
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
572
+ },
573
+ __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
574
+ const ret = typeof window === 'undefined' ? null : window;
575
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
576
+ },
577
+ __wbg_subarray_3b48eb0d2a04a3a3: function(arg0, arg1, arg2) {
578
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
579
+ return addHeapObject(ret);
580
+ },
581
+ __wbg_subarray_c851452347367ed1: function(arg0, arg1, arg2) {
582
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
583
+ return addHeapObject(ret);
584
+ },
585
+ __wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
586
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
587
+ return addHeapObject(ret);
588
+ },
589
+ __wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
590
+ const ret = getObject(arg0).then(getObject(arg1));
591
+ return addHeapObject(ret);
592
+ },
593
+ __wbg_transferToImageBitmap_4c30ef0b710eb6a8: function() { return handleError(function (arg0) {
594
+ const ret = getObject(arg0).transferToImageBitmap();
595
+ return addHeapObject(ret);
596
+ }, arguments); },
597
+ __wbg_value_fe6ee34af5dc3dce: function(arg0) {
598
+ const ret = getObject(arg0).value;
599
+ return addHeapObject(ret);
600
+ },
601
+ __wbg_view_6c32e7184b8606ad: function(arg0) {
602
+ const ret = getObject(arg0).view;
603
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
604
+ },
605
+ __wbg_waitAsync_a58b2134bff39c3e: function(arg0, arg1, arg2) {
606
+ const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
607
+ return addHeapObject(ret);
608
+ },
609
+ __wbg_waitAsync_c0a39a7d3318d91e: function() {
610
+ const ret = Atomics.waitAsync;
611
+ return addHeapObject(ret);
612
+ },
613
+ __wbg_width_75158459c067906d: function(arg0) {
614
+ const ret = getObject(arg0).width;
615
+ return ret;
616
+ },
617
+ __wbindgen_cast_0000000000000001: function(arg0, arg1) {
618
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 187, function: Function { arguments: [Externref], shim_idx: 188, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
619
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_639, __wasm_bindgen_func_elem_640);
620
+ return addHeapObject(ret);
621
+ },
622
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
623
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 187, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 188, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
624
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_639, __wasm_bindgen_func_elem_640);
625
+ return addHeapObject(ret);
626
+ },
627
+ __wbindgen_cast_0000000000000003: function(arg0) {
628
+ // Cast intrinsic for `F64 -> Externref`.
629
+ const ret = arg0;
630
+ return addHeapObject(ret);
631
+ },
632
+ __wbindgen_cast_0000000000000004: function(arg0, arg1) {
633
+ // Cast intrinsic for `Ref(String) -> Externref`.
634
+ const ret = getStringFromWasm0(arg0, arg1);
635
+ return addHeapObject(ret);
636
+ },
637
+ __wbindgen_cast_0000000000000005: function(arg0) {
638
+ // Cast intrinsic for `U64 -> Externref`.
639
+ const ret = BigInt.asUintN(64, arg0);
640
+ return addHeapObject(ret);
641
+ },
642
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
643
+ var v0 = getArrayF32FromWasm0(arg0, arg1).slice();
644
+ wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
645
+ // Cast intrinsic for `Vector(F32) -> Externref`.
646
+ const ret = v0;
647
+ return addHeapObject(ret);
648
+ },
649
+ __wbindgen_cast_0000000000000007: function(arg0, arg1) {
650
+ var v0 = getArrayU32FromWasm0(arg0, arg1).slice();
651
+ wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
652
+ // Cast intrinsic for `Vector(U32) -> Externref`.
653
+ const ret = v0;
654
+ return addHeapObject(ret);
655
+ },
656
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
657
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
658
+ wasm.__wbindgen_export4(arg0, arg1 * 1, 1);
659
+ // Cast intrinsic for `Vector(U8) -> Externref`.
660
+ const ret = v0;
661
+ return addHeapObject(ret);
662
+ },
663
+ __wbindgen_link_0b1f76d235fd2b86: function(arg0) {
664
+ const val = `onmessage = function (ev) {
665
+ let [ia, index, value] = ev.data;
666
+ ia = new Int32Array(ia.buffer);
667
+ let result = Atomics.wait(ia, index, value);
668
+ postMessage(result);
669
+ };
670
+ `;
671
+ const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
672
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
673
+ const len1 = WASM_VECTOR_LEN;
674
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
675
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
676
+ },
677
+ __wbindgen_object_clone_ref: function(arg0) {
678
+ const ret = getObject(arg0);
679
+ return addHeapObject(ret);
680
+ },
681
+ __wbindgen_object_drop_ref: function(arg0) {
682
+ takeObject(arg0);
683
+ },
684
+ memory: memory || new WebAssembly.Memory({initial:19,maximum:16384,shared:true}),
685
+ };
686
+ return {
687
+ __proto__: null,
688
+ "./tavio_bg.js": import0,
689
+ };
690
+ }
691
+
692
+ function __wasm_bindgen_func_elem_640(arg0, arg1, arg2) {
693
+ wasm.__wasm_bindgen_func_elem_640(arg0, arg1, addHeapObject(arg2));
694
+ }
695
+
696
+ function __wasm_bindgen_func_elem_1539(arg0, arg1, arg2, arg3) {
697
+ wasm.__wasm_bindgen_func_elem_1539(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
698
+ }
699
+
700
+
701
+ const __wbindgen_enum_ReadableStreamType = ["bytes"];
702
+ const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
703
+ ? { register: () => {}, unregister: () => {} }
704
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
705
+ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
706
+ ? { register: () => {}, unregister: () => {} }
707
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
708
+ const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
709
+ ? { register: () => {}, unregister: () => {} }
710
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
711
+ const wbg_rayon_PoolBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
712
+ ? { register: () => {}, unregister: () => {} }
713
+ : new FinalizationRegistry(ptr => wasm.__wbg_wbg_rayon_poolbuilder_free(ptr >>> 0, 1));
714
+
715
+ function addHeapObject(obj) {
716
+ if (heap_next === heap.length) heap.push(heap.length + 1);
717
+ const idx = heap_next;
718
+ heap_next = heap[idx];
719
+
720
+ heap[idx] = obj;
721
+ return idx;
722
+ }
723
+
724
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
725
+ ? { register: () => {}, unregister: () => {} }
726
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
727
+
728
+ function debugString(val) {
729
+ // primitive types
730
+ const type = typeof val;
731
+ if (type == 'number' || type == 'boolean' || val == null) {
732
+ return `${val}`;
733
+ }
734
+ if (type == 'string') {
735
+ return `"${val}"`;
736
+ }
737
+ if (type == 'symbol') {
738
+ const description = val.description;
739
+ if (description == null) {
740
+ return 'Symbol';
741
+ } else {
742
+ return `Symbol(${description})`;
743
+ }
744
+ }
745
+ if (type == 'function') {
746
+ const name = val.name;
747
+ if (typeof name == 'string' && name.length > 0) {
748
+ return `Function(${name})`;
749
+ } else {
750
+ return 'Function';
751
+ }
752
+ }
753
+ // objects
754
+ if (Array.isArray(val)) {
755
+ const length = val.length;
756
+ let debug = '[';
757
+ if (length > 0) {
758
+ debug += debugString(val[0]);
759
+ }
760
+ for(let i = 1; i < length; i++) {
761
+ debug += ', ' + debugString(val[i]);
762
+ }
763
+ debug += ']';
764
+ return debug;
765
+ }
766
+ // Test for built-in
767
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
768
+ let className;
769
+ if (builtInMatches && builtInMatches.length > 1) {
770
+ className = builtInMatches[1];
771
+ } else {
772
+ // Failed to match the standard '[object ClassName]'
773
+ return toString.call(val);
774
+ }
775
+ if (className == 'Object') {
776
+ // we're a user defined class or Object
777
+ // JSON.stringify avoids problems with cycles, and is generally much
778
+ // easier than looping through ownProperties of `val`.
779
+ try {
780
+ return 'Object(' + JSON.stringify(val) + ')';
781
+ } catch (_) {
782
+ return 'Object';
783
+ }
784
+ }
785
+ // errors
786
+ if (val instanceof Error) {
787
+ return `${val.name}: ${val.message}\n${val.stack}`;
788
+ }
789
+ // TODO we could test for more things here, like `Set`s and `Map`s.
790
+ return className;
791
+ }
792
+
793
+ function dropObject(idx) {
794
+ if (idx < 132) return;
795
+ heap[idx] = heap_next;
796
+ heap_next = idx;
797
+ }
798
+
799
+ function getArrayF32FromWasm0(ptr, len) {
800
+ ptr = ptr >>> 0;
801
+ return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
802
+ }
803
+
804
+ function getArrayU16FromWasm0(ptr, len) {
805
+ ptr = ptr >>> 0;
806
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
807
+ }
808
+
809
+ function getArrayU32FromWasm0(ptr, len) {
810
+ ptr = ptr >>> 0;
811
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
812
+ }
813
+
814
+ function getArrayU8FromWasm0(ptr, len) {
815
+ ptr = ptr >>> 0;
816
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
817
+ }
818
+
819
+ let cachedDataViewMemory0 = null;
820
+ function getDataViewMemory0() {
821
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
822
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
823
+ }
824
+ return cachedDataViewMemory0;
825
+ }
826
+
827
+ let cachedFloat32ArrayMemory0 = null;
828
+ function getFloat32ArrayMemory0() {
829
+ if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.buffer !== wasm.memory.buffer) {
830
+ cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
831
+ }
832
+ return cachedFloat32ArrayMemory0;
833
+ }
834
+
835
+ function getStringFromWasm0(ptr, len) {
836
+ ptr = ptr >>> 0;
837
+ return decodeText(ptr, len);
838
+ }
839
+
840
+ let cachedUint16ArrayMemory0 = null;
841
+ function getUint16ArrayMemory0() {
842
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.buffer !== wasm.memory.buffer) {
843
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
844
+ }
845
+ return cachedUint16ArrayMemory0;
846
+ }
847
+
848
+ let cachedUint32ArrayMemory0 = null;
849
+ function getUint32ArrayMemory0() {
850
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.buffer !== wasm.memory.buffer) {
851
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
852
+ }
853
+ return cachedUint32ArrayMemory0;
854
+ }
855
+
856
+ let cachedUint8ArrayMemory0 = null;
857
+ function getUint8ArrayMemory0() {
858
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
859
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
860
+ }
861
+ return cachedUint8ArrayMemory0;
862
+ }
863
+
864
+ function getObject(idx) { return heap[idx]; }
865
+
866
+ function handleError(f, args) {
867
+ try {
868
+ return f.apply(this, args);
869
+ } catch (e) {
870
+ wasm.__wbindgen_export3(addHeapObject(e));
871
+ }
872
+ }
873
+
874
+ let heap = new Array(128).fill(undefined);
875
+ heap.push(undefined, null, true, false);
876
+
877
+ let heap_next = heap.length;
878
+
879
+ function isLikeNone(x) {
880
+ return x === undefined || x === null;
881
+ }
882
+
883
+ function makeMutClosure(arg0, arg1, dtor, f) {
884
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
885
+ const real = (...args) => {
886
+
887
+ // First up with a closure we increment the internal reference
888
+ // count. This ensures that the Rust closure environment won't
889
+ // be deallocated while we're invoking it.
890
+ state.cnt++;
891
+ const a = state.a;
892
+ state.a = 0;
893
+ try {
894
+ return f(a, state.b, ...args);
895
+ } finally {
896
+ state.a = a;
897
+ real._wbg_cb_unref();
898
+ }
899
+ };
900
+ real._wbg_cb_unref = () => {
901
+ if (--state.cnt === 0) {
902
+ state.dtor(state.a, state.b);
903
+ state.a = 0;
904
+ CLOSURE_DTORS.unregister(state);
905
+ }
906
+ };
907
+ CLOSURE_DTORS.register(real, state, state);
908
+ return real;
909
+ }
910
+
911
+ function passStringToWasm0(arg, malloc, realloc) {
912
+ if (realloc === undefined) {
913
+ const buf = cachedTextEncoder.encode(arg);
914
+ const ptr = malloc(buf.length, 1) >>> 0;
915
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
916
+ WASM_VECTOR_LEN = buf.length;
917
+ return ptr;
918
+ }
919
+
920
+ let len = arg.length;
921
+ let ptr = malloc(len, 1) >>> 0;
922
+
923
+ const mem = getUint8ArrayMemory0();
924
+
925
+ let offset = 0;
926
+
927
+ for (; offset < len; offset++) {
928
+ const code = arg.charCodeAt(offset);
929
+ if (code > 0x7F) break;
930
+ mem[ptr + offset] = code;
931
+ }
932
+ if (offset !== len) {
933
+ if (offset !== 0) {
934
+ arg = arg.slice(offset);
935
+ }
936
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
937
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
938
+ const ret = cachedTextEncoder.encodeInto(arg, view);
939
+
940
+ offset += ret.written;
941
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
942
+ }
943
+
944
+ WASM_VECTOR_LEN = offset;
945
+ return ptr;
946
+ }
947
+
948
+ function takeObject(idx) {
949
+ const ret = getObject(idx);
950
+ dropObject(idx);
951
+ return ret;
952
+ }
953
+
954
+ let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : undefined);
955
+ if (cachedTextDecoder) cachedTextDecoder.decode();
956
+
957
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
958
+ let numBytesDecoded = 0;
959
+ function decodeText(ptr, len) {
960
+ numBytesDecoded += len;
961
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
962
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
963
+ cachedTextDecoder.decode();
964
+ numBytesDecoded = len;
965
+ }
966
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
967
+ }
968
+
969
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder() : undefined);
970
+
971
+ if (cachedTextEncoder) {
972
+ cachedTextEncoder.encodeInto = function (arg, view) {
973
+ const buf = cachedTextEncoder.encode(arg);
974
+ view.set(buf);
975
+ return {
976
+ read: arg.length,
977
+ written: buf.length
978
+ };
979
+ };
980
+ }
981
+
982
+ let WASM_VECTOR_LEN = 0;
983
+
984
+ let wasmModule, wasm;
985
+ function __wbg_finalize_init(instance, module, thread_stack_size) {
986
+ wasm = instance.exports;
987
+ wasmModule = module;
988
+ cachedDataViewMemory0 = null;
989
+ cachedFloat32ArrayMemory0 = null;
990
+ cachedUint16ArrayMemory0 = null;
991
+ cachedUint32ArrayMemory0 = null;
992
+ cachedUint8ArrayMemory0 = null;
993
+ if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
994
+ throw 'invalid stack size';
995
+ }
996
+ wasm.__wbindgen_start(thread_stack_size);
997
+ return wasm;
998
+ }
999
+
1000
+ async function __wbg_load(module, imports) {
1001
+ if (typeof Response === 'function' && module instanceof Response) {
1002
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
1003
+ try {
1004
+ return await WebAssembly.instantiateStreaming(module, imports);
1005
+ } catch (e) {
1006
+ const validResponse = module.ok && expectedResponseType(module.type);
1007
+
1008
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
1009
+ 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);
1010
+
1011
+ } else { throw e; }
1012
+ }
1013
+ }
1014
+
1015
+ const bytes = await module.arrayBuffer();
1016
+ return await WebAssembly.instantiate(bytes, imports);
1017
+ } else {
1018
+ const instance = await WebAssembly.instantiate(module, imports);
1019
+
1020
+ if (instance instanceof WebAssembly.Instance) {
1021
+ return { instance, module };
1022
+ } else {
1023
+ return instance;
1024
+ }
1025
+ }
1026
+
1027
+ function expectedResponseType(type) {
1028
+ switch (type) {
1029
+ case 'basic': case 'cors': case 'default': return true;
1030
+ }
1031
+ return false;
1032
+ }
1033
+ }
1034
+
1035
+ function initSync(module, memory) {
1036
+ if (wasm !== undefined) return wasm;
1037
+
1038
+ let thread_stack_size
1039
+ if (module !== undefined) {
1040
+ if (Object.getPrototypeOf(module) === Object.prototype) {
1041
+ ({module, memory, thread_stack_size} = module)
1042
+ } else {
1043
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1044
+ }
1045
+ }
1046
+
1047
+ const imports = __wbg_get_imports(memory);
1048
+ if (!(module instanceof WebAssembly.Module)) {
1049
+ module = new WebAssembly.Module(module);
1050
+ }
1051
+ const instance = new WebAssembly.Instance(module, imports);
1052
+ return __wbg_finalize_init(instance, module, thread_stack_size);
1053
+ }
1054
+
1055
+ async function __wbg_init(module_or_path, memory) {
1056
+ if (wasm !== undefined) return wasm;
1057
+
1058
+ let thread_stack_size
1059
+ if (module_or_path !== undefined) {
1060
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1061
+ ({module_or_path, memory, thread_stack_size} = module_or_path)
1062
+ } else {
1063
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1064
+ }
1065
+ }
1066
+
1067
+ if (module_or_path === undefined) {
1068
+ module_or_path = new URL('tavio_bg.wasm', import.meta.url);
1069
+ }
1070
+ const imports = __wbg_get_imports(memory);
1071
+
1072
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
1073
+ module_or_path = fetch(module_or_path);
1074
+ }
1075
+
1076
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
1077
+
1078
+ return __wbg_finalize_init(instance, module, thread_stack_size);
1079
+ }
1080
+
1081
+ export { initSync, __wbg_init as default };