@openheart/tavio-renderer 1.0.12-with-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.
Files changed (47) hide show
  1. package/README.md +25 -0
  2. package/build/esm/assets/tavio-B99BKbbN.js +971 -0
  3. package/build/esm/assets/workerHelpers-DWTUmD6Q.js +39 -0
  4. package/build/esm/index.js +45732 -0
  5. package/build/esm/types/animation/animationController.d.ts +133 -0
  6. package/build/esm/types/camera/cameraCollider.d.ts +54 -0
  7. package/build/esm/types/camera/cameraPath.d.ts +120 -0
  8. package/build/esm/types/camera/cameraPathControls.d.ts +73 -0
  9. package/build/esm/types/camera/cameraPathManager.d.ts +67 -0
  10. package/build/esm/types/camera/flightControls.d.ts +76 -0
  11. package/build/esm/types/camera/orbitControls.d.ts +216 -0
  12. package/build/esm/types/camera/transferControls.d.ts +122 -0
  13. package/build/esm/types/editor/selector/boxSelector.d.ts +60 -0
  14. package/build/esm/types/editor/selector/selector.d.ts +145 -0
  15. package/build/esm/types/editor/selector/sphereSelector.d.ts +45 -0
  16. package/build/esm/types/extension/InstancedMeshEX.d.ts +101 -0
  17. package/build/esm/types/global.iife.d.ts +9 -0
  18. package/build/esm/types/loader/streamLoader.d.ts +21 -0
  19. package/build/esm/types/math/easing.d.ts +18 -0
  20. package/build/esm/types/math/interpolation.d.ts +70 -0
  21. package/build/esm/types/module.d.ts +5 -0
  22. package/build/esm/types/types/global.d.ts +32 -0
  23. package/build/esm/types/types/wasm.d.ts +12 -0
  24. package/build/esm/types/utility/console.d.ts +7 -0
  25. package/build/esm/types/utility/plyDecoder.d.ts +103 -0
  26. package/build/esm/types/utility/utility.d.ts +58 -0
  27. package/build/esm/types/viewer/canvas.d.ts +1293 -0
  28. package/build/esm/types/viewer/materialGenerator.d.ts +121 -0
  29. package/build/esm/types/viewer/renderView.d.ts +67 -0
  30. package/build/esm/types/viewer/tavioMesh.d.ts +526 -0
  31. package/build/esm/types/wasm-bindings/wasm-handlers.d.ts +42 -0
  32. package/build/esm/types/wasm-bindings/wasm-worker-client.d.ts +123 -0
  33. package/build/esm/types/wasm-bindings/wasm-worker.d.ts +48 -0
  34. package/build/esm/types/wasm-bindings/wasm.d.ts +2 -0
  35. package/build/esm/types/worker/tavioWorker.d.ts +63 -0
  36. package/build/esm/wasm/pkg/no-thread/package.json +18 -0
  37. package/build/esm/wasm/pkg/no-thread/tavio.d.ts +127 -0
  38. package/build/esm/wasm/pkg/no-thread/tavio.js +1243 -0
  39. package/build/esm/wasm/pkg/no-thread/tavio_bg.wasm +0 -0
  40. package/build/esm/wasm/pkg/no-thread/tavio_bg.wasm.d.ts +39 -0
  41. package/build/esm/wasm/pkg/thread/package.json +18 -0
  42. package/build/esm/wasm/pkg/thread/snippets/wasm-bindgen-rayon-38edf6e439f6d70d/src/workerHelpers.js +107 -0
  43. package/build/esm/wasm/pkg/thread/tavio.d.ts +150 -0
  44. package/build/esm/wasm/pkg/thread/tavio.js +1419 -0
  45. package/build/esm/wasm/pkg/thread/tavio_bg.wasm +0 -0
  46. package/build/esm/wasm/pkg/thread/tavio_bg.wasm.d.ts +47 -0
  47. package/package.json +52 -0
@@ -0,0 +1,1419 @@
1
+ /* @ts-self-types="./tavio.d.ts" */
2
+ import { startWorkers } from './snippets/wasm-bindgen-rayon-38edf6e439f6d70d/src/workerHelpers.js';
3
+
4
+
5
+ export class IntoUnderlyingByteSource {
6
+ __destroy_into_raw() {
7
+ const ptr = this.__wbg_ptr;
8
+ this.__wbg_ptr = 0;
9
+ IntoUnderlyingByteSourceFinalization.unregister(this);
10
+ return ptr;
11
+ }
12
+ free() {
13
+ const ptr = this.__destroy_into_raw();
14
+ wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
15
+ }
16
+ /**
17
+ * @returns {number}
18
+ */
19
+ get autoAllocateChunkSize() {
20
+ const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
21
+ return ret >>> 0;
22
+ }
23
+ cancel() {
24
+ const ptr = this.__destroy_into_raw();
25
+ wasm.intounderlyingbytesource_cancel(ptr);
26
+ }
27
+ /**
28
+ * @param {ReadableByteStreamController} controller
29
+ * @returns {Promise<any>}
30
+ */
31
+ pull(controller) {
32
+ const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, addHeapObject(controller));
33
+ return takeObject(ret);
34
+ }
35
+ /**
36
+ * @param {ReadableByteStreamController} controller
37
+ */
38
+ start(controller) {
39
+ wasm.intounderlyingbytesource_start(this.__wbg_ptr, addHeapObject(controller));
40
+ }
41
+ /**
42
+ * @returns {ReadableStreamType}
43
+ */
44
+ get type() {
45
+ const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
46
+ return __wbindgen_enum_ReadableStreamType[ret];
47
+ }
48
+ }
49
+ if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
50
+
51
+ export class IntoUnderlyingSink {
52
+ __destroy_into_raw() {
53
+ const ptr = this.__wbg_ptr;
54
+ this.__wbg_ptr = 0;
55
+ IntoUnderlyingSinkFinalization.unregister(this);
56
+ return ptr;
57
+ }
58
+ free() {
59
+ const ptr = this.__destroy_into_raw();
60
+ wasm.__wbg_intounderlyingsink_free(ptr, 0);
61
+ }
62
+ /**
63
+ * @param {any} reason
64
+ * @returns {Promise<any>}
65
+ */
66
+ abort(reason) {
67
+ const ptr = this.__destroy_into_raw();
68
+ const ret = wasm.intounderlyingsink_abort(ptr, addHeapObject(reason));
69
+ return takeObject(ret);
70
+ }
71
+ /**
72
+ * @returns {Promise<any>}
73
+ */
74
+ close() {
75
+ const ptr = this.__destroy_into_raw();
76
+ const ret = wasm.intounderlyingsink_close(ptr);
77
+ return takeObject(ret);
78
+ }
79
+ /**
80
+ * @param {any} chunk
81
+ * @returns {Promise<any>}
82
+ */
83
+ write(chunk) {
84
+ const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, addHeapObject(chunk));
85
+ return takeObject(ret);
86
+ }
87
+ }
88
+ if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
89
+
90
+ export class IntoUnderlyingSource {
91
+ __destroy_into_raw() {
92
+ const ptr = this.__wbg_ptr;
93
+ this.__wbg_ptr = 0;
94
+ IntoUnderlyingSourceFinalization.unregister(this);
95
+ return ptr;
96
+ }
97
+ free() {
98
+ const ptr = this.__destroy_into_raw();
99
+ wasm.__wbg_intounderlyingsource_free(ptr, 0);
100
+ }
101
+ cancel() {
102
+ const ptr = this.__destroy_into_raw();
103
+ wasm.intounderlyingsource_cancel(ptr);
104
+ }
105
+ /**
106
+ * @param {ReadableStreamDefaultController} controller
107
+ * @returns {Promise<any>}
108
+ */
109
+ pull(controller) {
110
+ const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, addHeapObject(controller));
111
+ return takeObject(ret);
112
+ }
113
+ }
114
+ if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
115
+
116
+ /**
117
+ * @param {string} url
118
+ * @param {any} decode_options
119
+ * @returns {Promise<void>}
120
+ */
121
+ export function decodePly(url, decode_options) {
122
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
123
+ const len0 = WASM_VECTOR_LEN;
124
+ const ret = wasm.decodePly(ptr0, len0, addHeapObject(decode_options));
125
+ return takeObject(ret);
126
+ }
127
+
128
+ /**
129
+ * @param {string} url
130
+ * @param {any} decode_options
131
+ * @returns {Promise<void>}
132
+ */
133
+ export function decodeSog(url, decode_options) {
134
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
135
+ const len0 = WASM_VECTOR_LEN;
136
+ const ret = wasm.decodeSog(ptr0, len0, addHeapObject(decode_options));
137
+ return takeObject(ret);
138
+ }
139
+
140
+ /**
141
+ * @param {string} url
142
+ * @param {any} decode_options
143
+ * @returns {Promise<void>}
144
+ */
145
+ export function decodeSplat(url, decode_options) {
146
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
147
+ const len0 = WASM_VECTOR_LEN;
148
+ const ret = wasm.decodeSplat(ptr0, len0, addHeapObject(decode_options));
149
+ return takeObject(ret);
150
+ }
151
+
152
+ /**
153
+ * @param {string} url
154
+ * @param {any} decode_options
155
+ * @returns {Promise<void>}
156
+ */
157
+ export function decodeSpz(url, decode_options) {
158
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
159
+ const len0 = WASM_VECTOR_LEN;
160
+ const ret = wasm.decodeSpz(ptr0, len0, addHeapObject(decode_options));
161
+ return takeObject(ret);
162
+ }
163
+
164
+ /**
165
+ * @param {string} url
166
+ * @param {any} decode_options
167
+ * @returns {Promise<void>}
168
+ */
169
+ export function decodeTavio(url, decode_options) {
170
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
171
+ const len0 = WASM_VECTOR_LEN;
172
+ const ret = wasm.decodeTavio(ptr0, len0, addHeapObject(decode_options));
173
+ return takeObject(ret);
174
+ }
175
+
176
+ /**
177
+ * @param {number} point_count
178
+ * @param {Uint8Array} gaussian_buffer
179
+ * @param {Float32Array | null | undefined} sh_buffer
180
+ * @param {Float32Array} scale_min_values
181
+ * @param {Float32Array} scale_max_values
182
+ * @param {number} alpha_min_value
183
+ * @param {number} alpha_max_value
184
+ * @param {any} celestial_sphere
185
+ * @returns {Uint8Array}
186
+ */
187
+ export function encodePly(point_count, gaussian_buffer, sh_buffer, scale_min_values, scale_max_values, alpha_min_value, alpha_max_value, celestial_sphere) {
188
+ try {
189
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
190
+ const ptr0 = passArrayF32ToWasm0(scale_min_values, wasm.__wbindgen_export);
191
+ const len0 = WASM_VECTOR_LEN;
192
+ const ptr1 = passArrayF32ToWasm0(scale_max_values, wasm.__wbindgen_export);
193
+ const len1 = WASM_VECTOR_LEN;
194
+ wasm.encodePly(retptr, point_count, addHeapObject(gaussian_buffer), isLikeNone(sh_buffer) ? 0 : addHeapObject(sh_buffer), ptr0, len0, ptr1, len1, alpha_min_value, alpha_max_value, addHeapObject(celestial_sphere));
195
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
196
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
197
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
198
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
199
+ if (r3) {
200
+ throw takeObject(r2);
201
+ }
202
+ var v3 = getArrayU8FromWasm0(r0, r1).slice();
203
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
204
+ return v3;
205
+ } finally {
206
+ wasm.__wbindgen_add_to_stack_pointer(16);
207
+ }
208
+ }
209
+
210
+ /**
211
+ * @param {number} point_count
212
+ * @param {Uint8Array} gaussian_buffer
213
+ * @param {Float32Array} scale_min_values
214
+ * @param {Float32Array} scale_max_values
215
+ * @param {number} alpha_min_value
216
+ * @param {number} alpha_max_value
217
+ * @param {any} celestial_sphere
218
+ * @returns {Uint8Array}
219
+ */
220
+ export function encodeSplat(point_count, gaussian_buffer, scale_min_values, scale_max_values, alpha_min_value, alpha_max_value, celestial_sphere) {
221
+ try {
222
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
223
+ const ptr0 = passArrayF32ToWasm0(scale_min_values, wasm.__wbindgen_export);
224
+ const len0 = WASM_VECTOR_LEN;
225
+ const ptr1 = passArrayF32ToWasm0(scale_max_values, wasm.__wbindgen_export);
226
+ const len1 = WASM_VECTOR_LEN;
227
+ wasm.encodeSplat(retptr, point_count, addHeapObject(gaussian_buffer), ptr0, len0, ptr1, len1, alpha_min_value, alpha_max_value, addHeapObject(celestial_sphere));
228
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
229
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
230
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
231
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
232
+ if (r3) {
233
+ throw takeObject(r2);
234
+ }
235
+ var v3 = getArrayU8FromWasm0(r0, r1).slice();
236
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
237
+ return v3;
238
+ } finally {
239
+ wasm.__wbindgen_add_to_stack_pointer(16);
240
+ }
241
+ }
242
+
243
+ /**
244
+ * @param {number} point_count
245
+ * @param {Uint8Array} gaussian_buffer
246
+ * @param {Float32Array | null | undefined} sh_buffer
247
+ * @param {Float32Array} scale_min_values
248
+ * @param {Float32Array} scale_max_values
249
+ * @param {number} alpha_min_value
250
+ * @param {number} alpha_max_value
251
+ * @param {any} celestial_sphere
252
+ * @returns {Uint8Array}
253
+ */
254
+ export function encodeSpz(point_count, gaussian_buffer, sh_buffer, scale_min_values, scale_max_values, alpha_min_value, alpha_max_value, celestial_sphere) {
255
+ try {
256
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
257
+ const ptr0 = passArrayF32ToWasm0(scale_min_values, wasm.__wbindgen_export);
258
+ const len0 = WASM_VECTOR_LEN;
259
+ const ptr1 = passArrayF32ToWasm0(scale_max_values, wasm.__wbindgen_export);
260
+ const len1 = WASM_VECTOR_LEN;
261
+ wasm.encodeSpz(retptr, point_count, addHeapObject(gaussian_buffer), isLikeNone(sh_buffer) ? 0 : addHeapObject(sh_buffer), ptr0, len0, ptr1, len1, alpha_min_value, alpha_max_value, addHeapObject(celestial_sphere));
262
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
263
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
264
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
265
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
266
+ if (r3) {
267
+ throw takeObject(r2);
268
+ }
269
+ var v3 = getArrayU8FromWasm0(r0, r1).slice();
270
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
271
+ return v3;
272
+ } finally {
273
+ wasm.__wbindgen_add_to_stack_pointer(16);
274
+ }
275
+ }
276
+
277
+ /**
278
+ * @param {number} total_point_count
279
+ * @param {Uint8Array} gaussian_buffer
280
+ * @param {Float32Array | null | undefined} sh_buffer
281
+ * @param {Float32Array} scale_min_values
282
+ * @param {Float32Array} scale_max_values
283
+ * @param {number} alpha_min_value
284
+ * @param {number} alpha_max_value
285
+ * @param {any} celestial_sphere
286
+ * @param {any} encode_options
287
+ * @returns {Uint8Array}
288
+ */
289
+ export function encodeTavio(total_point_count, gaussian_buffer, sh_buffer, scale_min_values, scale_max_values, alpha_min_value, alpha_max_value, celestial_sphere, encode_options) {
290
+ try {
291
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
292
+ const ptr0 = passArrayF32ToWasm0(scale_min_values, wasm.__wbindgen_export);
293
+ const len0 = WASM_VECTOR_LEN;
294
+ const ptr1 = passArrayF32ToWasm0(scale_max_values, wasm.__wbindgen_export);
295
+ const len1 = WASM_VECTOR_LEN;
296
+ wasm.encodeTavio(retptr, total_point_count, addHeapObject(gaussian_buffer), isLikeNone(sh_buffer) ? 0 : addHeapObject(sh_buffer), ptr0, len0, ptr1, len1, alpha_min_value, alpha_max_value, addHeapObject(celestial_sphere), addHeapObject(encode_options));
297
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
298
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
299
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
300
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
301
+ if (r3) {
302
+ throw takeObject(r2);
303
+ }
304
+ var v3 = getArrayU8FromWasm0(r0, r1).slice();
305
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
306
+ return v3;
307
+ } finally {
308
+ wasm.__wbindgen_add_to_stack_pointer(16);
309
+ }
310
+ }
311
+
312
+ /**
313
+ * @param {number} num_threads
314
+ * @returns {Promise<any>}
315
+ */
316
+ export function initThreadPool(num_threads) {
317
+ const ret = wasm.initThreadPool(num_threads);
318
+ return takeObject(ret);
319
+ }
320
+
321
+ export function main() {
322
+ wasm.main();
323
+ }
324
+
325
+ /**
326
+ * @param {Function} event_handler
327
+ * @returns {Promise<void>}
328
+ */
329
+ export function registerEventHandler(event_handler) {
330
+ const ret = wasm.registerEventHandler(addHeapObject(event_handler));
331
+ return takeObject(ret);
332
+ }
333
+
334
+ /**
335
+ * @param {number} point_count
336
+ * @param {Uint8Array} gaussian_buffer
337
+ * @param {Float32Array | null | undefined} sh_buffer
338
+ * @param {Uint8Array} general_data
339
+ * @param {Uint32Array} transform_data
340
+ * @param {Float32Array} scale_min_values
341
+ * @param {Float32Array} scale_max_values
342
+ * @returns {any}
343
+ */
344
+ export function resolveGaussianEdits(point_count, gaussian_buffer, sh_buffer, general_data, transform_data, scale_min_values, scale_max_values) {
345
+ try {
346
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
347
+ const ptr0 = passArrayF32ToWasm0(scale_min_values, wasm.__wbindgen_export);
348
+ const len0 = WASM_VECTOR_LEN;
349
+ const ptr1 = passArrayF32ToWasm0(scale_max_values, wasm.__wbindgen_export);
350
+ const len1 = WASM_VECTOR_LEN;
351
+ wasm.resolveGaussianEdits(retptr, point_count, addHeapObject(gaussian_buffer), isLikeNone(sh_buffer) ? 0 : addHeapObject(sh_buffer), addHeapObject(general_data), addHeapObject(transform_data), ptr0, len0, ptr1, len1);
352
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
353
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
354
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
355
+ if (r2) {
356
+ throw takeObject(r1);
357
+ }
358
+ return takeObject(r0);
359
+ } finally {
360
+ wasm.__wbindgen_add_to_stack_pointer(16);
361
+ }
362
+ }
363
+
364
+ /**
365
+ * @param {Uint16Array} depths
366
+ * @param {Uint32Array} ordering
367
+ * @param {number} splat_count
368
+ * @returns {number}
369
+ */
370
+ export function sort(depths, ordering, splat_count) {
371
+ const ret = wasm.sort(addHeapObject(depths), addHeapObject(ordering), splat_count);
372
+ return ret >>> 0;
373
+ }
374
+
375
+ export class wbg_rayon_PoolBuilder {
376
+ static __wrap(ptr) {
377
+ const obj = Object.create(wbg_rayon_PoolBuilder.prototype);
378
+ obj.__wbg_ptr = ptr;
379
+ wbg_rayon_PoolBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
380
+ return obj;
381
+ }
382
+ __destroy_into_raw() {
383
+ const ptr = this.__wbg_ptr;
384
+ this.__wbg_ptr = 0;
385
+ wbg_rayon_PoolBuilderFinalization.unregister(this);
386
+ return ptr;
387
+ }
388
+ free() {
389
+ const ptr = this.__destroy_into_raw();
390
+ wasm.__wbg_wbg_rayon_poolbuilder_free(ptr, 0);
391
+ }
392
+ build() {
393
+ wasm.wbg_rayon_poolbuilder_build(this.__wbg_ptr);
394
+ }
395
+ /**
396
+ * @returns {number}
397
+ */
398
+ numThreads() {
399
+ const ret = wasm.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr);
400
+ return ret >>> 0;
401
+ }
402
+ /**
403
+ * @returns {number}
404
+ */
405
+ receiver() {
406
+ const ret = wasm.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr);
407
+ return ret >>> 0;
408
+ }
409
+ }
410
+ if (Symbol.dispose) wbg_rayon_PoolBuilder.prototype[Symbol.dispose] = wbg_rayon_PoolBuilder.prototype.free;
411
+
412
+ /**
413
+ * @param {number} receiver
414
+ */
415
+ export function wbg_rayon_start_worker(receiver) {
416
+ wasm.wbg_rayon_start_worker(receiver);
417
+ }
418
+ function __wbg_get_imports(memory) {
419
+ const import0 = {
420
+ __proto__: null,
421
+ __wbg___wbindgen_boolean_get_2304fb8c853028c8: function(arg0) {
422
+ const v = getObject(arg0);
423
+ const ret = typeof(v) === 'boolean' ? v : undefined;
424
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
425
+ },
426
+ __wbg___wbindgen_debug_string_edece8177ad01481: function(arg0, arg1) {
427
+ const ret = debugString(getObject(arg1));
428
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
429
+ const len1 = WASM_VECTOR_LEN;
430
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
431
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
432
+ },
433
+ __wbg___wbindgen_is_function_5cd60d5cf78b4eef: function(arg0) {
434
+ const ret = typeof(getObject(arg0)) === 'function';
435
+ return ret;
436
+ },
437
+ __wbg___wbindgen_is_null_2042690d351e14f0: function(arg0) {
438
+ const ret = getObject(arg0) === null;
439
+ return ret;
440
+ },
441
+ __wbg___wbindgen_is_object_b4593df85baada48: function(arg0) {
442
+ const val = getObject(arg0);
443
+ const ret = typeof(val) === 'object' && val !== null;
444
+ return ret;
445
+ },
446
+ __wbg___wbindgen_is_undefined_35bb9f4c7fd651d5: function(arg0) {
447
+ const ret = getObject(arg0) === undefined;
448
+ return ret;
449
+ },
450
+ __wbg___wbindgen_memory_9544558992fc5400: function() {
451
+ const ret = wasm.memory;
452
+ return addHeapObject(ret);
453
+ },
454
+ __wbg___wbindgen_module_598c7f098f85bbd9: function() {
455
+ const ret = wasmModule;
456
+ return addHeapObject(ret);
457
+ },
458
+ __wbg___wbindgen_number_get_f73a1244370fcc2c: function(arg0, arg1) {
459
+ const obj = getObject(arg1);
460
+ const ret = typeof(obj) === 'number' ? obj : undefined;
461
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
462
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
463
+ },
464
+ __wbg___wbindgen_rethrow_2b7cc655458909c2: function(arg0) {
465
+ throw takeObject(arg0);
466
+ },
467
+ __wbg___wbindgen_string_get_d109740c0d18f4d7: function(arg0, arg1) {
468
+ const obj = getObject(arg1);
469
+ const ret = typeof(obj) === 'string' ? obj : undefined;
470
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
471
+ var len1 = WASM_VECTOR_LEN;
472
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
473
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
474
+ },
475
+ __wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
476
+ throw new Error(getStringFromWasm0(arg0, arg1));
477
+ },
478
+ __wbg__wbg_cb_unref_3fa391f3fcdb55f8: function(arg0) {
479
+ getObject(arg0)._wbg_cb_unref();
480
+ },
481
+ __wbg_allocateSharedArrayBuffer_6fe46699bf03ba1c: function(arg0, arg1) {
482
+ const ret = allocateSharedArrayBuffer(takeObject(arg0), arg1 >>> 0);
483
+ return addHeapObject(ret);
484
+ },
485
+ __wbg_arrayBuffer_cb5d4748b5f3cad5: function() { return handleError(function (arg0) {
486
+ const ret = getObject(arg0).arrayBuffer();
487
+ return addHeapObject(ret);
488
+ }, arguments); },
489
+ __wbg_async_c2781a14e36ac9e4: function(arg0) {
490
+ const ret = getObject(arg0).async;
491
+ return ret;
492
+ },
493
+ __wbg_body_acbb5ec9cd18657f: function(arg0) {
494
+ const ret = getObject(arg0).body;
495
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
496
+ },
497
+ __wbg_buffer_09bfa2e33737b5fc: function(arg0) {
498
+ const ret = getObject(arg0).buffer;
499
+ return addHeapObject(ret);
500
+ },
501
+ __wbg_buffer_8d6798e32d1afd34: function(arg0) {
502
+ const ret = getObject(arg0).buffer;
503
+ return addHeapObject(ret);
504
+ },
505
+ __wbg_byobRequest_9d8c3b7b2f692560: function(arg0) {
506
+ const ret = getObject(arg0).byobRequest;
507
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
508
+ },
509
+ __wbg_byteLength_c0cecdd68fab1693: function(arg0) {
510
+ const ret = getObject(arg0).byteLength;
511
+ return ret;
512
+ },
513
+ __wbg_byteOffset_3791b0030cc3b490: function(arg0) {
514
+ const ret = getObject(arg0).byteOffset;
515
+ return ret;
516
+ },
517
+ __wbg_call_dfde26266607c996: function() { return handleError(function (arg0, arg1, arg2) {
518
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
519
+ return addHeapObject(ret);
520
+ }, arguments); },
521
+ __wbg_cancel_bee68d5707c614fb: function(arg0) {
522
+ const ret = getObject(arg0).cancel();
523
+ return addHeapObject(ret);
524
+ },
525
+ __wbg_catch_ec5061a695c26496: function(arg0, arg1) {
526
+ const ret = getObject(arg0).catch(getObject(arg1));
527
+ return addHeapObject(ret);
528
+ },
529
+ __wbg_close_53179a3d37ed525d: function() { return handleError(function (arg0) {
530
+ getObject(arg0).close();
531
+ }, arguments); },
532
+ __wbg_close_807d553ef8405788: function() { return handleError(function (arg0) {
533
+ getObject(arg0).close();
534
+ }, arguments); },
535
+ __wbg_data_726486ab4e13b1e8: function(arg0) {
536
+ const ret = getObject(arg0).data;
537
+ return addHeapObject(ret);
538
+ },
539
+ __wbg_enqueue_c3ce0a986a355a8c: function() { return handleError(function (arg0, arg1) {
540
+ getObject(arg0).enqueue(getObject(arg1));
541
+ }, arguments); },
542
+ __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
543
+ let deferred0_0;
544
+ let deferred0_1;
545
+ try {
546
+ deferred0_0 = arg0;
547
+ deferred0_1 = arg1;
548
+ console.error(getStringFromWasm0(arg0, arg1));
549
+ } finally {
550
+ wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
551
+ }
552
+ },
553
+ __wbg_error_ea6decbec50643d2: function(arg0, arg1) {
554
+ console.error(getStringFromWasm0(arg0, arg1));
555
+ },
556
+ __wbg_getContext_47ea64e14d931e3e: function() { return handleError(function (arg0, arg1, arg2) {
557
+ const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
558
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
559
+ }, arguments); },
560
+ __wbg_getReader_b4b1868fbca77dbe: function() { return handleError(function (arg0) {
561
+ const ret = getObject(arg0).getReader();
562
+ return addHeapObject(ret);
563
+ }, arguments); },
564
+ __wbg_get_0b3f3bb74d16b7ad: function() { return handleError(function (arg0, arg1, arg2, arg3) {
565
+ const ret = getObject(arg1).get(getStringFromWasm0(arg2, arg3));
566
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
567
+ var len1 = WASM_VECTOR_LEN;
568
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
569
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
570
+ }, arguments); },
571
+ __wbg_get_dcf82ab8aad1a593: function() { return handleError(function (arg0, arg1) {
572
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
573
+ return addHeapObject(ret);
574
+ }, arguments); },
575
+ __wbg_get_done_06210bfbda89c407: function(arg0) {
576
+ const ret = getObject(arg0).done;
577
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
578
+ },
579
+ __wbg_get_value_31eb9abef97d98cb: function(arg0) {
580
+ const ret = getObject(arg0).value;
581
+ return addHeapObject(ret);
582
+ },
583
+ __wbg_headers_18f39f24d3837dc1: function(arg0) {
584
+ const ret = getObject(arg0).headers;
585
+ return addHeapObject(ret);
586
+ },
587
+ __wbg_instanceof_OffscreenCanvasRenderingContext2d_0510c089e1f92f14: function(arg0) {
588
+ let result;
589
+ try {
590
+ result = getObject(arg0) instanceof OffscreenCanvasRenderingContext2D;
591
+ } catch (_) {
592
+ result = false;
593
+ }
594
+ const ret = result;
595
+ return ret;
596
+ },
597
+ __wbg_instanceof_Promise_09012cfa9708520a: function(arg0) {
598
+ let result;
599
+ try {
600
+ result = getObject(arg0) instanceof Promise;
601
+ } catch (_) {
602
+ result = false;
603
+ }
604
+ const ret = result;
605
+ return ret;
606
+ },
607
+ __wbg_instanceof_Response_ecfc823e8fb354e2: function(arg0) {
608
+ let result;
609
+ try {
610
+ result = getObject(arg0) instanceof Response;
611
+ } catch (_) {
612
+ result = false;
613
+ }
614
+ const ret = result;
615
+ return ret;
616
+ },
617
+ __wbg_instanceof_SharedArrayBuffer_c17fd66269e612d6: function(arg0) {
618
+ let result;
619
+ try {
620
+ result = getObject(arg0) instanceof SharedArrayBuffer;
621
+ } catch (_) {
622
+ result = false;
623
+ }
624
+ const ret = result;
625
+ return ret;
626
+ },
627
+ __wbg_instanceof_Uint8Array_abd07d4bd221d50b: function(arg0) {
628
+ let result;
629
+ try {
630
+ result = getObject(arg0) instanceof Uint8Array;
631
+ } catch (_) {
632
+ result = false;
633
+ }
634
+ const ret = result;
635
+ return ret;
636
+ },
637
+ __wbg_instanceof_Window_faa5cf994f49cca7: function(arg0) {
638
+ let result;
639
+ try {
640
+ result = getObject(arg0) instanceof Window;
641
+ } catch (_) {
642
+ result = false;
643
+ }
644
+ const ret = result;
645
+ return ret;
646
+ },
647
+ __wbg_length_0adf2f3c5da33087: function(arg0) {
648
+ const ret = getObject(arg0).length;
649
+ return ret;
650
+ },
651
+ __wbg_length_13e61aa81636ec86: function(arg0) {
652
+ const ret = getObject(arg0).length;
653
+ return ret;
654
+ },
655
+ __wbg_length_3a1b902b6cde9e2c: function(arg0) {
656
+ const ret = getObject(arg0).length;
657
+ return ret;
658
+ },
659
+ __wbg_length_56fcd3e2b7e0299d: function(arg0) {
660
+ const ret = getObject(arg0).length;
661
+ return ret;
662
+ },
663
+ __wbg_length_949f85b73ce6595d: function(arg0) {
664
+ const ret = getObject(arg0).length;
665
+ return ret;
666
+ },
667
+ __wbg_log_5ab909734581952b: function(arg0, arg1) {
668
+ console.log(getStringFromWasm0(arg0, arg1));
669
+ },
670
+ __wbg_new_02d162bc6cf02f60: function() {
671
+ const ret = new Object();
672
+ return addHeapObject(ret);
673
+ },
674
+ __wbg_new_1f236d63ba0c4784: function(arg0, arg1) {
675
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
676
+ return addHeapObject(ret);
677
+ },
678
+ __wbg_new_227d7c05414eb861: function() {
679
+ const ret = new Error();
680
+ return addHeapObject(ret);
681
+ },
682
+ __wbg_new_310879b66b6e95e1: function() {
683
+ const ret = new Array();
684
+ return addHeapObject(ret);
685
+ },
686
+ __wbg_new_439823ec67f1ec48: function() { return handleError(function (arg0, arg1) {
687
+ const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
688
+ return addHeapObject(ret);
689
+ }, arguments); },
690
+ __wbg_new_7a51510df9f459ff: function(arg0) {
691
+ const ret = new Int32Array(getObject(arg0));
692
+ return addHeapObject(ret);
693
+ },
694
+ __wbg_new_7ddec6de44ff8f5d: function(arg0) {
695
+ const ret = new Uint8Array(getObject(arg0));
696
+ return addHeapObject(ret);
697
+ },
698
+ __wbg_new_d8dfd33fa007511d: function(arg0, arg1) {
699
+ try {
700
+ var state0 = {a: arg0, b: arg1};
701
+ var cb0 = (arg0, arg1) => {
702
+ const a = state0.a;
703
+ state0.a = 0;
704
+ try {
705
+ return __wasm_bindgen_func_elem_3142(a, state0.b, arg0, arg1);
706
+ } finally {
707
+ state0.a = a;
708
+ }
709
+ };
710
+ const ret = new Promise(cb0);
711
+ return addHeapObject(ret);
712
+ } finally {
713
+ state0.a = 0;
714
+ }
715
+ },
716
+ __wbg_new_from_slice_269e35316ed2d061: function(arg0, arg1) {
717
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
718
+ return addHeapObject(ret);
719
+ },
720
+ __wbg_new_from_slice_7a419f18ea6472bf: function(arg0, arg1) {
721
+ const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
722
+ return addHeapObject(ret);
723
+ },
724
+ __wbg_new_typed_c072c4ce9a2a0cdf: function(arg0, arg1) {
725
+ try {
726
+ var state0 = {a: arg0, b: arg1};
727
+ var cb0 = (arg0, arg1) => {
728
+ const a = state0.a;
729
+ state0.a = 0;
730
+ try {
731
+ return __wasm_bindgen_func_elem_3142(a, state0.b, arg0, arg1);
732
+ } finally {
733
+ state0.a = a;
734
+ }
735
+ };
736
+ const ret = new Promise(cb0);
737
+ return addHeapObject(ret);
738
+ } finally {
739
+ state0.a = 0;
740
+ }
741
+ },
742
+ __wbg_new_with_byte_offset_and_length_a87e79143162d67f: function(arg0, arg1, arg2) {
743
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
744
+ return addHeapObject(ret);
745
+ },
746
+ __wbg_new_with_js_u8_clamped_array_and_sh_8de1e5a1d410d395: function() { return handleError(function (arg0, arg1, arg2) {
747
+ const ret = new ImageData(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
748
+ return addHeapObject(ret);
749
+ }, arguments); },
750
+ __wbg_new_with_length_f193d8561d89261d: function(arg0) {
751
+ const ret = new Uint8ClampedArray(arg0 >>> 0);
752
+ return addHeapObject(ret);
753
+ },
754
+ __wbg_new_worker_3f3757894eaf84eb: function(arg0, arg1) {
755
+ const ret = new Worker(getStringFromWasm0(arg0, arg1));
756
+ return addHeapObject(ret);
757
+ },
758
+ __wbg_of_d77919dcf5640358: function(arg0, arg1, arg2) {
759
+ const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
760
+ return addHeapObject(ret);
761
+ },
762
+ __wbg_postMessage_5e48f2cd6e9c2baa: function() { return handleError(function (arg0, arg1) {
763
+ getObject(arg0).postMessage(getObject(arg1));
764
+ }, arguments); },
765
+ __wbg_prototypesetcall_303283bf37c9f014: function(arg0, arg1, arg2) {
766
+ Uint32Array.prototype.set.call(getArrayU32FromWasm0(arg0, arg1), getObject(arg2));
767
+ },
768
+ __wbg_prototypesetcall_5f9bdc8d75e07276: function(arg0, arg1, arg2) {
769
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
770
+ },
771
+ __wbg_prototypesetcall_ca5e190e7872edac: function(arg0, arg1, arg2) {
772
+ Uint16Array.prototype.set.call(getArrayU16FromWasm0(arg0, arg1), getObject(arg2));
773
+ },
774
+ __wbg_prototypesetcall_fe9d129a614489fa: function(arg0, arg1, arg2) {
775
+ Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), getObject(arg2));
776
+ },
777
+ __wbg_push_b77c476b01548d0a: function(arg0, arg1) {
778
+ const ret = getObject(arg0).push(getObject(arg1));
779
+ return ret;
780
+ },
781
+ __wbg_putImageData_93b5f775895f6d09: function() { return handleError(function (arg0, arg1, arg2, arg3) {
782
+ getObject(arg0).putImageData(getObject(arg1), arg2, arg3);
783
+ }, arguments); },
784
+ __wbg_queueMicrotask_78d584b53af520f5: function(arg0) {
785
+ const ret = getObject(arg0).queueMicrotask;
786
+ return addHeapObject(ret);
787
+ },
788
+ __wbg_queueMicrotask_b39ea83c7f01971a: function(arg0) {
789
+ queueMicrotask(getObject(arg0));
790
+ },
791
+ __wbg_read_254bf22401498310: function(arg0) {
792
+ const ret = getObject(arg0).read();
793
+ return addHeapObject(ret);
794
+ },
795
+ __wbg_releaseLock_65f356509fef84ac: function(arg0) {
796
+ getObject(arg0).releaseLock();
797
+ },
798
+ __wbg_resolve_d17db9352f5a220e: function(arg0) {
799
+ const ret = Promise.resolve(getObject(arg0));
800
+ return addHeapObject(ret);
801
+ },
802
+ __wbg_respond_0196e052b003e1db: function() { return handleError(function (arg0, arg1) {
803
+ getObject(arg0).respond(arg1 >>> 0);
804
+ }, arguments); },
805
+ __wbg_set_24d0fa9e104112f9: function(arg0, arg1, arg2) {
806
+ getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
807
+ },
808
+ __wbg_set_37221b90dcdc9a98: function(arg0, arg1, arg2) {
809
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
810
+ },
811
+ __wbg_set_90474108ec025ba3: function(arg0, arg1, arg2) {
812
+ getObject(arg0).set(getArrayU32FromWasm0(arg1, arg2));
813
+ },
814
+ __wbg_set_a0e911be3da02782: function() { return handleError(function (arg0, arg1, arg2) {
815
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
816
+ return ret;
817
+ }, arguments); },
818
+ __wbg_set_bf22f3de29cb1fce: function(arg0, arg1, arg2) {
819
+ getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
820
+ },
821
+ __wbg_set_onmessage_4ffd530f8e195138: function(arg0, arg1) {
822
+ getObject(arg0).onmessage = getObject(arg1);
823
+ },
824
+ __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
825
+ const ret = getObject(arg1).stack;
826
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
827
+ const len1 = WASM_VECTOR_LEN;
828
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
829
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
830
+ },
831
+ __wbg_startWorkers_8b582d57e92bd2d4: function(arg0, arg1, arg2) {
832
+ const ret = startWorkers(takeObject(arg0), takeObject(arg1), wbg_rayon_PoolBuilder.__wrap(arg2));
833
+ return addHeapObject(ret);
834
+ },
835
+ __wbg_static_accessor_GLOBAL_THIS_02344c9b09eb08a9: function() {
836
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
837
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
838
+ },
839
+ __wbg_static_accessor_GLOBAL_ac6d4ac874d5cd54: function() {
840
+ const ret = typeof global === 'undefined' ? null : global;
841
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
842
+ },
843
+ __wbg_static_accessor_SELF_9b2406c23aeb2023: function() {
844
+ const ret = typeof self === 'undefined' ? null : self;
845
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
846
+ },
847
+ __wbg_static_accessor_WINDOW_b34d2126934e16ba: function() {
848
+ const ret = typeof window === 'undefined' ? null : window;
849
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
850
+ },
851
+ __wbg_subarray_0be03218f5c2f558: function(arg0, arg1, arg2) {
852
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
853
+ return addHeapObject(ret);
854
+ },
855
+ __wbg_subarray_7c6a0da8f3b4a1ba: function(arg0, arg1, arg2) {
856
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
857
+ return addHeapObject(ret);
858
+ },
859
+ __wbg_subarray_c7f714190a01e8d2: function(arg0, arg1, arg2) {
860
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
861
+ return addHeapObject(ret);
862
+ },
863
+ __wbg_subarray_e36b0fd259e9e34a: function(arg0, arg1, arg2) {
864
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
865
+ return addHeapObject(ret);
866
+ },
867
+ __wbg_then_7b57a40e3ee05615: function(arg0, arg1) {
868
+ const ret = getObject(arg0).then(getObject(arg1));
869
+ return addHeapObject(ret);
870
+ },
871
+ __wbg_then_837494e384b37459: function(arg0, arg1) {
872
+ const ret = getObject(arg0).then(getObject(arg1));
873
+ return addHeapObject(ret);
874
+ },
875
+ __wbg_then_bd927500e8905df2: function(arg0, arg1, arg2) {
876
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
877
+ return addHeapObject(ret);
878
+ },
879
+ __wbg_transferToImageBitmap_ef78ff480500ad5d: function() { return handleError(function (arg0) {
880
+ const ret = getObject(arg0).transferToImageBitmap();
881
+ return addHeapObject(ret);
882
+ }, arguments); },
883
+ __wbg_value_9e2825f14753cda1: function(arg0) {
884
+ const ret = getObject(arg0).value;
885
+ return addHeapObject(ret);
886
+ },
887
+ __wbg_view_1b637c097280508c: function(arg0) {
888
+ const ret = getObject(arg0).view;
889
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
890
+ },
891
+ __wbg_waitAsync_94344b8da427fee1: function(arg0, arg1, arg2) {
892
+ const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
893
+ return addHeapObject(ret);
894
+ },
895
+ __wbg_waitAsync_c887dc4b662e4cf3: function() {
896
+ const ret = Atomics.waitAsync;
897
+ return addHeapObject(ret);
898
+ },
899
+ __wbg_warn_11efefe1d20326cb: function(arg0, arg1) {
900
+ console.warn(getStringFromWasm0(arg0, arg1));
901
+ },
902
+ __wbindgen_cast_0000000000000001: function(arg0, arg1) {
903
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 314, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
904
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1234);
905
+ return addHeapObject(ret);
906
+ },
907
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
908
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 632, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
909
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3139);
910
+ return addHeapObject(ret);
911
+ },
912
+ __wbindgen_cast_0000000000000003: function(arg0, arg1) {
913
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 653, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
914
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3141);
915
+ return addHeapObject(ret);
916
+ },
917
+ __wbindgen_cast_0000000000000004: function(arg0) {
918
+ // Cast intrinsic for `F64 -> Externref`.
919
+ const ret = arg0;
920
+ return addHeapObject(ret);
921
+ },
922
+ __wbindgen_cast_0000000000000005: function(arg0, arg1) {
923
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
924
+ const ret = getArrayU8FromWasm0(arg0, arg1);
925
+ return addHeapObject(ret);
926
+ },
927
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
928
+ // Cast intrinsic for `Ref(String) -> Externref`.
929
+ const ret = getStringFromWasm0(arg0, arg1);
930
+ return addHeapObject(ret);
931
+ },
932
+ __wbindgen_cast_0000000000000007: function(arg0) {
933
+ // Cast intrinsic for `U64 -> Externref`.
934
+ const ret = BigInt.asUintN(64, arg0);
935
+ return addHeapObject(ret);
936
+ },
937
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
938
+ var v0 = getArrayF32FromWasm0(arg0, arg1).slice();
939
+ wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
940
+ // Cast intrinsic for `Vector(F32) -> Externref`.
941
+ const ret = v0;
942
+ return addHeapObject(ret);
943
+ },
944
+ __wbindgen_cast_0000000000000009: function(arg0, arg1) {
945
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
946
+ wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
947
+ // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
948
+ const ret = v0;
949
+ return addHeapObject(ret);
950
+ },
951
+ __wbindgen_cast_000000000000000a: function(arg0, arg1) {
952
+ var v0 = getArrayU32FromWasm0(arg0, arg1).slice();
953
+ wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
954
+ // Cast intrinsic for `Vector(U32) -> Externref`.
955
+ const ret = v0;
956
+ return addHeapObject(ret);
957
+ },
958
+ __wbindgen_cast_000000000000000b: function(arg0, arg1) {
959
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
960
+ wasm.__wbindgen_export4(arg0, arg1 * 1, 1);
961
+ // Cast intrinsic for `Vector(U8) -> Externref`.
962
+ const ret = v0;
963
+ return addHeapObject(ret);
964
+ },
965
+ __wbindgen_link_56971320a4814863: function(arg0) {
966
+ const val = `onmessage = function (ev) {
967
+ let [ia, index, value] = ev.data;
968
+ ia = new Int32Array(ia.buffer);
969
+ let result = Atomics.wait(ia, index, value);
970
+ postMessage(result);
971
+ };
972
+ `;
973
+ const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
974
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
975
+ const len1 = WASM_VECTOR_LEN;
976
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
977
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
978
+ },
979
+ __wbindgen_object_clone_ref: function(arg0) {
980
+ const ret = getObject(arg0);
981
+ return addHeapObject(ret);
982
+ },
983
+ __wbindgen_object_drop_ref: function(arg0) {
984
+ takeObject(arg0);
985
+ },
986
+ memory: memory || new WebAssembly.Memory({initial:20,maximum:32768,shared:true}),
987
+ };
988
+ return {
989
+ __proto__: null,
990
+ "./tavio_bg.js": import0,
991
+ };
992
+ }
993
+
994
+ function __wasm_bindgen_func_elem_1234(arg0, arg1, arg2) {
995
+ wasm.__wasm_bindgen_func_elem_1234(arg0, arg1, addHeapObject(arg2));
996
+ }
997
+
998
+ function __wasm_bindgen_func_elem_3141(arg0, arg1, arg2) {
999
+ wasm.__wasm_bindgen_func_elem_3141(arg0, arg1, addHeapObject(arg2));
1000
+ }
1001
+
1002
+ function __wasm_bindgen_func_elem_3139(arg0, arg1, arg2) {
1003
+ try {
1004
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1005
+ wasm.__wasm_bindgen_func_elem_3139(retptr, arg0, arg1, addHeapObject(arg2));
1006
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1007
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1008
+ if (r1) {
1009
+ throw takeObject(r0);
1010
+ }
1011
+ } finally {
1012
+ wasm.__wbindgen_add_to_stack_pointer(16);
1013
+ }
1014
+ }
1015
+
1016
+ function __wasm_bindgen_func_elem_3142(arg0, arg1, arg2, arg3) {
1017
+ wasm.__wasm_bindgen_func_elem_3142(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1018
+ }
1019
+
1020
+
1021
+ const __wbindgen_enum_ReadableStreamType = ["bytes"];
1022
+ const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
1023
+ ? { register: () => {}, unregister: () => {} }
1024
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
1025
+ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
1026
+ ? { register: () => {}, unregister: () => {} }
1027
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
1028
+ const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
1029
+ ? { register: () => {}, unregister: () => {} }
1030
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
1031
+ const wbg_rayon_PoolBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
1032
+ ? { register: () => {}, unregister: () => {} }
1033
+ : new FinalizationRegistry(ptr => wasm.__wbg_wbg_rayon_poolbuilder_free(ptr, 1));
1034
+
1035
+ function addHeapObject(obj) {
1036
+ if (heap_next === heap.length) heap.push(heap.length + 1);
1037
+ const idx = heap_next;
1038
+ heap_next = heap[idx];
1039
+
1040
+ heap[idx] = obj;
1041
+ return idx;
1042
+ }
1043
+
1044
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
1045
+ ? { register: () => {}, unregister: () => {} }
1046
+ : new FinalizationRegistry(state => wasm.__wbindgen_export5(state.a, state.b));
1047
+
1048
+ function debugString(val) {
1049
+ // primitive types
1050
+ const type = typeof val;
1051
+ if (type == 'number' || type == 'boolean' || val == null) {
1052
+ return `${val}`;
1053
+ }
1054
+ if (type == 'string') {
1055
+ return `"${val}"`;
1056
+ }
1057
+ if (type == 'symbol') {
1058
+ const description = val.description;
1059
+ if (description == null) {
1060
+ return 'Symbol';
1061
+ } else {
1062
+ return `Symbol(${description})`;
1063
+ }
1064
+ }
1065
+ if (type == 'function') {
1066
+ const name = val.name;
1067
+ if (typeof name == 'string' && name.length > 0) {
1068
+ return `Function(${name})`;
1069
+ } else {
1070
+ return 'Function';
1071
+ }
1072
+ }
1073
+ // objects
1074
+ if (Array.isArray(val)) {
1075
+ const length = val.length;
1076
+ let debug = '[';
1077
+ if (length > 0) {
1078
+ debug += debugString(val[0]);
1079
+ }
1080
+ for(let i = 1; i < length; i++) {
1081
+ debug += ', ' + debugString(val[i]);
1082
+ }
1083
+ debug += ']';
1084
+ return debug;
1085
+ }
1086
+ // Test for built-in
1087
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
1088
+ let className;
1089
+ if (builtInMatches && builtInMatches.length > 1) {
1090
+ className = builtInMatches[1];
1091
+ } else {
1092
+ // Failed to match the standard '[object ClassName]'
1093
+ return toString.call(val);
1094
+ }
1095
+ if (className == 'Object') {
1096
+ // we're a user defined class or Object
1097
+ // JSON.stringify avoids problems with cycles, and is generally much
1098
+ // easier than looping through ownProperties of `val`.
1099
+ try {
1100
+ return 'Object(' + JSON.stringify(val) + ')';
1101
+ } catch (_) {
1102
+ return 'Object';
1103
+ }
1104
+ }
1105
+ // errors
1106
+ if (val instanceof Error) {
1107
+ return `${val.name}: ${val.message}\n${val.stack}`;
1108
+ }
1109
+ // TODO we could test for more things here, like `Set`s and `Map`s.
1110
+ return className;
1111
+ }
1112
+
1113
+ function dropObject(idx) {
1114
+ if (idx < 1028) return;
1115
+ heap[idx] = heap_next;
1116
+ heap_next = idx;
1117
+ }
1118
+
1119
+ function getArrayF32FromWasm0(ptr, len) {
1120
+ ptr = ptr >>> 0;
1121
+ return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1122
+ }
1123
+
1124
+ function getArrayJsValueFromWasm0(ptr, len) {
1125
+ ptr = ptr >>> 0;
1126
+ const mem = getDataViewMemory0();
1127
+ const result = [];
1128
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
1129
+ result.push(takeObject(mem.getUint32(i, true)));
1130
+ }
1131
+ return result;
1132
+ }
1133
+
1134
+ function getArrayU16FromWasm0(ptr, len) {
1135
+ ptr = ptr >>> 0;
1136
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
1137
+ }
1138
+
1139
+ function getArrayU32FromWasm0(ptr, len) {
1140
+ ptr = ptr >>> 0;
1141
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1142
+ }
1143
+
1144
+ function getArrayU8FromWasm0(ptr, len) {
1145
+ ptr = ptr >>> 0;
1146
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1147
+ }
1148
+
1149
+ let cachedDataViewMemory0 = null;
1150
+ function getDataViewMemory0() {
1151
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
1152
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
1153
+ }
1154
+ return cachedDataViewMemory0;
1155
+ }
1156
+
1157
+ let cachedFloat32ArrayMemory0 = null;
1158
+ function getFloat32ArrayMemory0() {
1159
+ if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.buffer !== wasm.memory.buffer) {
1160
+ cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
1161
+ }
1162
+ return cachedFloat32ArrayMemory0;
1163
+ }
1164
+
1165
+ function getStringFromWasm0(ptr, len) {
1166
+ return decodeText(ptr >>> 0, len);
1167
+ }
1168
+
1169
+ let cachedUint16ArrayMemory0 = null;
1170
+ function getUint16ArrayMemory0() {
1171
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.buffer !== wasm.memory.buffer) {
1172
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
1173
+ }
1174
+ return cachedUint16ArrayMemory0;
1175
+ }
1176
+
1177
+ let cachedUint32ArrayMemory0 = null;
1178
+ function getUint32ArrayMemory0() {
1179
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.buffer !== wasm.memory.buffer) {
1180
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
1181
+ }
1182
+ return cachedUint32ArrayMemory0;
1183
+ }
1184
+
1185
+ let cachedUint8ArrayMemory0 = null;
1186
+ function getUint8ArrayMemory0() {
1187
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
1188
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1189
+ }
1190
+ return cachedUint8ArrayMemory0;
1191
+ }
1192
+
1193
+ function getObject(idx) { return heap[idx]; }
1194
+
1195
+ function handleError(f, args) {
1196
+ try {
1197
+ return f.apply(this, args);
1198
+ } catch (e) {
1199
+ wasm.__wbindgen_export3(addHeapObject(e));
1200
+ }
1201
+ }
1202
+
1203
+ let heap = new Array(1024).fill(undefined);
1204
+ heap.push(undefined, null, true, false);
1205
+
1206
+ let heap_next = heap.length;
1207
+
1208
+ function isLikeNone(x) {
1209
+ return x === undefined || x === null;
1210
+ }
1211
+
1212
+ function makeMutClosure(arg0, arg1, f) {
1213
+ const state = { a: arg0, b: arg1, cnt: 1 };
1214
+ const real = (...args) => {
1215
+
1216
+ // First up with a closure we increment the internal reference
1217
+ // count. This ensures that the Rust closure environment won't
1218
+ // be deallocated while we're invoking it.
1219
+ state.cnt++;
1220
+ const a = state.a;
1221
+ state.a = 0;
1222
+ try {
1223
+ return f(a, state.b, ...args);
1224
+ } finally {
1225
+ state.a = a;
1226
+ real._wbg_cb_unref();
1227
+ }
1228
+ };
1229
+ real._wbg_cb_unref = () => {
1230
+ if (--state.cnt === 0) {
1231
+ wasm.__wbindgen_export5(state.a, state.b);
1232
+ state.a = 0;
1233
+ CLOSURE_DTORS.unregister(state);
1234
+ }
1235
+ };
1236
+ CLOSURE_DTORS.register(real, state, state);
1237
+ return real;
1238
+ }
1239
+
1240
+ function passArrayF32ToWasm0(arg, malloc) {
1241
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
1242
+ getFloat32ArrayMemory0().set(arg, ptr / 4);
1243
+ WASM_VECTOR_LEN = arg.length;
1244
+ return ptr;
1245
+ }
1246
+
1247
+ function passStringToWasm0(arg, malloc, realloc) {
1248
+ if (realloc === undefined) {
1249
+ const buf = cachedTextEncoder.encode(arg);
1250
+ const ptr = malloc(buf.length, 1) >>> 0;
1251
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
1252
+ WASM_VECTOR_LEN = buf.length;
1253
+ return ptr;
1254
+ }
1255
+
1256
+ let len = arg.length;
1257
+ let ptr = malloc(len, 1) >>> 0;
1258
+
1259
+ const mem = getUint8ArrayMemory0();
1260
+
1261
+ let offset = 0;
1262
+
1263
+ for (; offset < len; offset++) {
1264
+ const code = arg.charCodeAt(offset);
1265
+ if (code > 0x7F) break;
1266
+ mem[ptr + offset] = code;
1267
+ }
1268
+ if (offset !== len) {
1269
+ if (offset !== 0) {
1270
+ arg = arg.slice(offset);
1271
+ }
1272
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
1273
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
1274
+ const ret = cachedTextEncoder.encodeInto(arg, view);
1275
+
1276
+ offset += ret.written;
1277
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
1278
+ }
1279
+
1280
+ WASM_VECTOR_LEN = offset;
1281
+ return ptr;
1282
+ }
1283
+
1284
+ function takeObject(idx) {
1285
+ const ret = getObject(idx);
1286
+ dropObject(idx);
1287
+ return ret;
1288
+ }
1289
+
1290
+ let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : undefined);
1291
+ if (cachedTextDecoder) cachedTextDecoder.decode();
1292
+
1293
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
1294
+ let numBytesDecoded = 0;
1295
+ function decodeText(ptr, len) {
1296
+ numBytesDecoded += len;
1297
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
1298
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1299
+ cachedTextDecoder.decode();
1300
+ numBytesDecoded = len;
1301
+ }
1302
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
1303
+ }
1304
+
1305
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder() : undefined);
1306
+
1307
+ if (cachedTextEncoder) {
1308
+ cachedTextEncoder.encodeInto = function (arg, view) {
1309
+ const buf = cachedTextEncoder.encode(arg);
1310
+ view.set(buf);
1311
+ return {
1312
+ read: arg.length,
1313
+ written: buf.length
1314
+ };
1315
+ };
1316
+ }
1317
+
1318
+ let WASM_VECTOR_LEN = 0;
1319
+
1320
+ let wasmModule, wasmInstance, wasm;
1321
+ function __wbg_finalize_init(instance, module, thread_stack_size) {
1322
+ wasmInstance = instance;
1323
+ wasm = instance.exports;
1324
+ wasmModule = module;
1325
+ cachedDataViewMemory0 = null;
1326
+ cachedFloat32ArrayMemory0 = null;
1327
+ cachedUint16ArrayMemory0 = null;
1328
+ cachedUint32ArrayMemory0 = null;
1329
+ cachedUint8ArrayMemory0 = null;
1330
+ if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
1331
+ throw new Error('invalid stack size');
1332
+ }
1333
+
1334
+ wasm.__wbindgen_start(thread_stack_size);
1335
+ return wasm;
1336
+ }
1337
+
1338
+ async function __wbg_load(module, imports) {
1339
+ if (typeof Response === 'function' && module instanceof Response) {
1340
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
1341
+ try {
1342
+ return await WebAssembly.instantiateStreaming(module, imports);
1343
+ } catch (e) {
1344
+ const validResponse = module.ok && expectedResponseType(module.type);
1345
+
1346
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
1347
+ 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);
1348
+
1349
+ } else { throw e; }
1350
+ }
1351
+ }
1352
+
1353
+ const bytes = await module.arrayBuffer();
1354
+ return await WebAssembly.instantiate(bytes, imports);
1355
+ } else {
1356
+ const instance = await WebAssembly.instantiate(module, imports);
1357
+
1358
+ if (instance instanceof WebAssembly.Instance) {
1359
+ return { instance, module };
1360
+ } else {
1361
+ return instance;
1362
+ }
1363
+ }
1364
+
1365
+ function expectedResponseType(type) {
1366
+ switch (type) {
1367
+ case 'basic': case 'cors': case 'default': return true;
1368
+ }
1369
+ return false;
1370
+ }
1371
+ }
1372
+
1373
+ function initSync(module, memory) {
1374
+ if (wasm !== undefined) return wasm;
1375
+
1376
+ let thread_stack_size
1377
+ if (module !== undefined) {
1378
+ if (Object.getPrototypeOf(module) === Object.prototype) {
1379
+ ({module, memory, thread_stack_size} = module)
1380
+ } else {
1381
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1382
+ }
1383
+ }
1384
+
1385
+ const imports = __wbg_get_imports(memory);
1386
+ if (!(module instanceof WebAssembly.Module)) {
1387
+ module = new WebAssembly.Module(module);
1388
+ }
1389
+ const instance = new WebAssembly.Instance(module, imports);
1390
+ return __wbg_finalize_init(instance, module, thread_stack_size);
1391
+ }
1392
+
1393
+ async function __wbg_init(module_or_path, memory) {
1394
+ if (wasm !== undefined) return wasm;
1395
+
1396
+ let thread_stack_size
1397
+ if (module_or_path !== undefined) {
1398
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1399
+ ({module_or_path, memory, thread_stack_size} = module_or_path)
1400
+ } else {
1401
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1402
+ }
1403
+ }
1404
+
1405
+ if (module_or_path === undefined) {
1406
+ module_or_path = new URL('tavio_bg.wasm', import.meta.url);
1407
+ }
1408
+ const imports = __wbg_get_imports(memory);
1409
+
1410
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
1411
+ module_or_path = fetch(module_or_path);
1412
+ }
1413
+
1414
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
1415
+
1416
+ return __wbg_finalize_init(instance, module, thread_stack_size);
1417
+ }
1418
+
1419
+ export { initSync, __wbg_init as default };