zeldhash-miner 0.1.0

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,1412 @@
1
+ let wasm;
2
+
3
+ function addToExternrefTable0(obj) {
4
+ const idx = wasm.__externref_table_alloc();
5
+ wasm.__wbindgen_externrefs.set(idx, obj);
6
+ return idx;
7
+ }
8
+
9
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
10
+ ? { register: () => {}, unregister: () => {} }
11
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
12
+
13
+ function debugString(val) {
14
+ // primitive types
15
+ const type = typeof val;
16
+ if (type == 'number' || type == 'boolean' || val == null) {
17
+ return `${val}`;
18
+ }
19
+ if (type == 'string') {
20
+ return `"${val}"`;
21
+ }
22
+ if (type == 'symbol') {
23
+ const description = val.description;
24
+ if (description == null) {
25
+ return 'Symbol';
26
+ } else {
27
+ return `Symbol(${description})`;
28
+ }
29
+ }
30
+ if (type == 'function') {
31
+ const name = val.name;
32
+ if (typeof name == 'string' && name.length > 0) {
33
+ return `Function(${name})`;
34
+ } else {
35
+ return 'Function';
36
+ }
37
+ }
38
+ // objects
39
+ if (Array.isArray(val)) {
40
+ const length = val.length;
41
+ let debug = '[';
42
+ if (length > 0) {
43
+ debug += debugString(val[0]);
44
+ }
45
+ for(let i = 1; i < length; i++) {
46
+ debug += ', ' + debugString(val[i]);
47
+ }
48
+ debug += ']';
49
+ return debug;
50
+ }
51
+ // Test for built-in
52
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
53
+ let className;
54
+ if (builtInMatches && builtInMatches.length > 1) {
55
+ className = builtInMatches[1];
56
+ } else {
57
+ // Failed to match the standard '[object ClassName]'
58
+ return toString.call(val);
59
+ }
60
+ if (className == 'Object') {
61
+ // we're a user defined class or Object
62
+ // JSON.stringify avoids problems with cycles, and is generally much
63
+ // easier than looping through ownProperties of `val`.
64
+ try {
65
+ return 'Object(' + JSON.stringify(val) + ')';
66
+ } catch (_) {
67
+ return 'Object';
68
+ }
69
+ }
70
+ // errors
71
+ if (val instanceof Error) {
72
+ return `${val.name}: ${val.message}\n${val.stack}`;
73
+ }
74
+ // TODO we could test for more things here, like `Set`s and `Map`s.
75
+ return className;
76
+ }
77
+
78
+ function getArrayU32FromWasm0(ptr, len) {
79
+ ptr = ptr >>> 0;
80
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
81
+ }
82
+
83
+ function getArrayU8FromWasm0(ptr, len) {
84
+ ptr = ptr >>> 0;
85
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
86
+ }
87
+
88
+ let cachedDataViewMemory0 = null;
89
+ function getDataViewMemory0() {
90
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
91
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
92
+ }
93
+ return cachedDataViewMemory0;
94
+ }
95
+
96
+ function getStringFromWasm0(ptr, len) {
97
+ ptr = ptr >>> 0;
98
+ return decodeText(ptr, len);
99
+ }
100
+
101
+ let cachedUint32ArrayMemory0 = null;
102
+ function getUint32ArrayMemory0() {
103
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
104
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
105
+ }
106
+ return cachedUint32ArrayMemory0;
107
+ }
108
+
109
+ let cachedUint8ArrayMemory0 = null;
110
+ function getUint8ArrayMemory0() {
111
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
112
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
113
+ }
114
+ return cachedUint8ArrayMemory0;
115
+ }
116
+
117
+ function handleError(f, args) {
118
+ try {
119
+ return f.apply(this, args);
120
+ } catch (e) {
121
+ const idx = addToExternrefTable0(e);
122
+ wasm.__wbindgen_exn_store(idx);
123
+ }
124
+ }
125
+
126
+ function isLikeNone(x) {
127
+ return x === undefined || x === null;
128
+ }
129
+
130
+ function makeMutClosure(arg0, arg1, dtor, f) {
131
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
132
+ const real = (...args) => {
133
+
134
+ // First up with a closure we increment the internal reference
135
+ // count. This ensures that the Rust closure environment won't
136
+ // be deallocated while we're invoking it.
137
+ state.cnt++;
138
+ const a = state.a;
139
+ state.a = 0;
140
+ try {
141
+ return f(a, state.b, ...args);
142
+ } finally {
143
+ state.a = a;
144
+ real._wbg_cb_unref();
145
+ }
146
+ };
147
+ real._wbg_cb_unref = () => {
148
+ if (--state.cnt === 0) {
149
+ state.dtor(state.a, state.b);
150
+ state.a = 0;
151
+ CLOSURE_DTORS.unregister(state);
152
+ }
153
+ };
154
+ CLOSURE_DTORS.register(real, state, state);
155
+ return real;
156
+ }
157
+
158
+ function passArray8ToWasm0(arg, malloc) {
159
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
160
+ getUint8ArrayMemory0().set(arg, ptr / 1);
161
+ WASM_VECTOR_LEN = arg.length;
162
+ return ptr;
163
+ }
164
+
165
+ function passStringToWasm0(arg, malloc, realloc) {
166
+ if (realloc === undefined) {
167
+ const buf = cachedTextEncoder.encode(arg);
168
+ const ptr = malloc(buf.length, 1) >>> 0;
169
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
170
+ WASM_VECTOR_LEN = buf.length;
171
+ return ptr;
172
+ }
173
+
174
+ let len = arg.length;
175
+ let ptr = malloc(len, 1) >>> 0;
176
+
177
+ const mem = getUint8ArrayMemory0();
178
+
179
+ let offset = 0;
180
+
181
+ for (; offset < len; offset++) {
182
+ const code = arg.charCodeAt(offset);
183
+ if (code > 0x7F) break;
184
+ mem[ptr + offset] = code;
185
+ }
186
+ if (offset !== len) {
187
+ if (offset !== 0) {
188
+ arg = arg.slice(offset);
189
+ }
190
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
191
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
192
+ const ret = cachedTextEncoder.encodeInto(arg, view);
193
+
194
+ offset += ret.written;
195
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
196
+ }
197
+
198
+ WASM_VECTOR_LEN = offset;
199
+ return ptr;
200
+ }
201
+
202
+ function takeFromExternrefTable0(idx) {
203
+ const value = wasm.__wbindgen_externrefs.get(idx);
204
+ wasm.__externref_table_dealloc(idx);
205
+ return value;
206
+ }
207
+
208
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
209
+ cachedTextDecoder.decode();
210
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
211
+ let numBytesDecoded = 0;
212
+ function decodeText(ptr, len) {
213
+ numBytesDecoded += len;
214
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
215
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
216
+ cachedTextDecoder.decode();
217
+ numBytesDecoded = len;
218
+ }
219
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
220
+ }
221
+
222
+ const cachedTextEncoder = new TextEncoder();
223
+
224
+ if (!('encodeInto' in cachedTextEncoder)) {
225
+ cachedTextEncoder.encodeInto = function (arg, view) {
226
+ const buf = cachedTextEncoder.encode(arg);
227
+ view.set(buf);
228
+ return {
229
+ read: arg.length,
230
+ written: buf.length
231
+ };
232
+ }
233
+ }
234
+
235
+ let WASM_VECTOR_LEN = 0;
236
+
237
+ function wasm_bindgen__convert__closures_____invoke__h4173f797cb68abd1(arg0, arg1, arg2) {
238
+ wasm.wasm_bindgen__convert__closures_____invoke__h4173f797cb68abd1(arg0, arg1, arg2);
239
+ }
240
+
241
+ function wasm_bindgen__convert__closures_____invoke__h1a38164a3a667135(arg0, arg1, arg2) {
242
+ wasm.wasm_bindgen__convert__closures_____invoke__h1a38164a3a667135(arg0, arg1, arg2);
243
+ }
244
+
245
+ function wasm_bindgen__convert__closures_____invoke__h2845bf56d21a7dac(arg0, arg1, arg2, arg3) {
246
+ wasm.wasm_bindgen__convert__closures_____invoke__h2845bf56d21a7dac(arg0, arg1, arg2, arg3);
247
+ }
248
+
249
+ const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
250
+
251
+ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
252
+
253
+ const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
254
+
255
+ /**
256
+ * @param {any} inputs
257
+ * @param {any} outputs
258
+ * @param {string} network
259
+ * @param {bigint} sats_per_vbyte
260
+ * @param {bigint} start_nonce
261
+ * @param {number} batch_size
262
+ * @param {any} distribution
263
+ * @returns {any}
264
+ */
265
+ export function build_mining_template(inputs, outputs, network, sats_per_vbyte, start_nonce, batch_size, distribution) {
266
+ const ptr0 = passStringToWasm0(network, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
267
+ const len0 = WASM_VECTOR_LEN;
268
+ const ret = wasm.build_mining_template(inputs, outputs, ptr0, len0, sats_per_vbyte, start_nonce, batch_size, distribution);
269
+ if (ret[2]) {
270
+ throw takeFromExternrefTable0(ret[1]);
271
+ }
272
+ return takeFromExternrefTable0(ret[0]);
273
+ }
274
+
275
+ /**
276
+ * @param {any} inputs
277
+ * @param {any} outputs
278
+ * @param {string} network
279
+ * @param {bigint} sats_per_vbyte
280
+ * @param {bigint} nonce
281
+ * @param {any} distribution
282
+ * @returns {string}
283
+ */
284
+ export function build_psbt(inputs, outputs, network, sats_per_vbyte, nonce, distribution) {
285
+ let deferred3_0;
286
+ let deferred3_1;
287
+ try {
288
+ const ptr0 = passStringToWasm0(network, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
289
+ const len0 = WASM_VECTOR_LEN;
290
+ const ret = wasm.build_psbt(inputs, outputs, ptr0, len0, sats_per_vbyte, nonce, distribution);
291
+ var ptr2 = ret[0];
292
+ var len2 = ret[1];
293
+ if (ret[3]) {
294
+ ptr2 = 0; len2 = 0;
295
+ throw takeFromExternrefTable0(ret[2]);
296
+ }
297
+ deferred3_0 = ptr2;
298
+ deferred3_1 = len2;
299
+ return getStringFromWasm0(ptr2, len2);
300
+ } finally {
301
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
302
+ }
303
+ }
304
+
305
+ /**
306
+ * @returns {Promise<number>}
307
+ */
308
+ export function calibrate_batch_size() {
309
+ const ret = wasm.calibrate_batch_size();
310
+ return ret;
311
+ }
312
+
313
+ /**
314
+ * @param {Uint8Array} tx_bytes
315
+ * @returns {string}
316
+ */
317
+ export function compute_txid(tx_bytes) {
318
+ let deferred2_0;
319
+ let deferred2_1;
320
+ try {
321
+ const ptr0 = passArray8ToWasm0(tx_bytes, wasm.__wbindgen_malloc);
322
+ const len0 = WASM_VECTOR_LEN;
323
+ const ret = wasm.compute_txid(ptr0, len0);
324
+ deferred2_0 = ret[0];
325
+ deferred2_1 = ret[1];
326
+ return getStringFromWasm0(ret[0], ret[1]);
327
+ } finally {
328
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
329
+ }
330
+ }
331
+
332
+ /**
333
+ * @returns {Promise<any>}
334
+ */
335
+ export function init_gpu() {
336
+ const ret = wasm.init_gpu();
337
+ return ret;
338
+ }
339
+
340
+ export function init_panic_hook() {
341
+ wasm.init_panic_hook();
342
+ }
343
+
344
+ /**
345
+ * Dispatch a GPU batch and return the match with the smallest nonce (OP_RETURN value).
346
+ * @param {Uint8Array} tx_prefix
347
+ * @param {Uint8Array} tx_suffix
348
+ * @param {bigint} start_nonce
349
+ * @param {number} batch_size
350
+ * @param {number} target_zeros
351
+ * @param {boolean} use_cbor_nonce
352
+ * @returns {Promise<any>}
353
+ */
354
+ export function mine_batch_gpu(tx_prefix, tx_suffix, start_nonce, batch_size, target_zeros, use_cbor_nonce) {
355
+ const ptr0 = passArray8ToWasm0(tx_prefix, wasm.__wbindgen_malloc);
356
+ const len0 = WASM_VECTOR_LEN;
357
+ const ptr1 = passArray8ToWasm0(tx_suffix, wasm.__wbindgen_malloc);
358
+ const len1 = WASM_VECTOR_LEN;
359
+ const ret = wasm.mine_batch_gpu(ptr0, len0, ptr1, len1, start_nonce, batch_size, target_zeros, use_cbor_nonce);
360
+ return ret;
361
+ }
362
+
363
+ /**
364
+ * @param {Uint8Array} tx_prefix
365
+ * @param {Uint8Array} tx_suffix
366
+ * @param {bigint} start_nonce
367
+ * @param {number} batch_size
368
+ * @param {number} target_zeros
369
+ * @param {boolean} use_cbor_nonce
370
+ * @returns {any}
371
+ */
372
+ export function mine_batch_wasm(tx_prefix, tx_suffix, start_nonce, batch_size, target_zeros, use_cbor_nonce) {
373
+ const ptr0 = passArray8ToWasm0(tx_prefix, wasm.__wbindgen_malloc);
374
+ const len0 = WASM_VECTOR_LEN;
375
+ const ptr1 = passArray8ToWasm0(tx_suffix, wasm.__wbindgen_malloc);
376
+ const len1 = WASM_VECTOR_LEN;
377
+ const ret = wasm.mine_batch_wasm(ptr0, len0, ptr1, len1, start_nonce, batch_size, target_zeros, use_cbor_nonce);
378
+ return ret;
379
+ }
380
+
381
+ /**
382
+ * @param {any} inputs
383
+ * @param {any} outputs
384
+ * @param {string} network
385
+ * @param {bigint} sats_per_vbyte
386
+ * @param {any} range
387
+ * @param {number} target_zeros
388
+ * @param {any} distribution
389
+ * @returns {Promise<any>}
390
+ */
391
+ export function mine_range_gpu(inputs, outputs, network, sats_per_vbyte, range, target_zeros, distribution) {
392
+ const ptr0 = passStringToWasm0(network, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
393
+ const len0 = WASM_VECTOR_LEN;
394
+ const ret = wasm.mine_range_gpu(inputs, outputs, ptr0, len0, sats_per_vbyte, range, target_zeros, distribution);
395
+ return ret;
396
+ }
397
+
398
+ /**
399
+ * Mine across a nonce range, automatically splitting at byte-length boundaries.
400
+ * @param {any} inputs
401
+ * @param {any} outputs
402
+ * @param {string} network
403
+ * @param {bigint} sats_per_vbyte
404
+ * @param {any} range
405
+ * @param {number} target_zeros
406
+ * @param {any} distribution
407
+ * @returns {any}
408
+ */
409
+ export function mine_range_wasm(inputs, outputs, network, sats_per_vbyte, range, target_zeros, distribution) {
410
+ const ptr0 = passStringToWasm0(network, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
411
+ const len0 = WASM_VECTOR_LEN;
412
+ const ret = wasm.mine_range_wasm(inputs, outputs, ptr0, len0, sats_per_vbyte, range, target_zeros, distribution);
413
+ return ret;
414
+ }
415
+
416
+ /**
417
+ * @param {string} addr
418
+ * @param {string} network
419
+ * @returns {any}
420
+ */
421
+ export function validate_address(addr, network) {
422
+ const ptr0 = passStringToWasm0(addr, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
423
+ const len0 = WASM_VECTOR_LEN;
424
+ const ptr1 = passStringToWasm0(network, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
425
+ const len1 = WASM_VECTOR_LEN;
426
+ const ret = wasm.validate_address(ptr0, len0, ptr1, len1);
427
+ return ret;
428
+ }
429
+
430
+ const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
431
+
432
+ async function __wbg_load(module, imports) {
433
+ if (typeof Response === 'function' && module instanceof Response) {
434
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
435
+ try {
436
+ return await WebAssembly.instantiateStreaming(module, imports);
437
+ } catch (e) {
438
+ const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
439
+
440
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
441
+ 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);
442
+
443
+ } else {
444
+ throw e;
445
+ }
446
+ }
447
+ }
448
+
449
+ const bytes = await module.arrayBuffer();
450
+ return await WebAssembly.instantiate(bytes, imports);
451
+ } else {
452
+ const instance = await WebAssembly.instantiate(module, imports);
453
+
454
+ if (instance instanceof WebAssembly.Instance) {
455
+ return { instance, module };
456
+ } else {
457
+ return instance;
458
+ }
459
+ }
460
+ }
461
+
462
+ function __wbg_get_imports() {
463
+ const imports = {};
464
+ imports.wbg = {};
465
+ imports.wbg.__wbg_BigInt_811579177bbea12d = function() { return handleError(function (arg0) {
466
+ const ret = BigInt(arg0);
467
+ return ret;
468
+ }, arguments) };
469
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
470
+ const ret = Error(getStringFromWasm0(arg0, arg1));
471
+ return ret;
472
+ };
473
+ imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
474
+ const ret = Number(arg0);
475
+ return ret;
476
+ };
477
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
478
+ const ret = String(arg1);
479
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
480
+ const len1 = WASM_VECTOR_LEN;
481
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
482
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
483
+ };
484
+ imports.wbg.__wbg_Window_09685c5b35e4318e = function(arg0) {
485
+ const ret = arg0.Window;
486
+ return ret;
487
+ };
488
+ imports.wbg.__wbg_WorkerGlobalScope_86dadc234326361b = function(arg0) {
489
+ const ret = arg0.WorkerGlobalScope;
490
+ return ret;
491
+ };
492
+ imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
493
+ const v = arg1;
494
+ const ret = typeof(v) === 'bigint' ? v : undefined;
495
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
496
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
497
+ };
498
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
499
+ const v = arg0;
500
+ const ret = typeof(v) === 'boolean' ? v : undefined;
501
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
502
+ };
503
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
504
+ const ret = debugString(arg1);
505
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
506
+ const len1 = WASM_VECTOR_LEN;
507
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
508
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
509
+ };
510
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
511
+ const ret = arg0 in arg1;
512
+ return ret;
513
+ };
514
+ imports.wbg.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
515
+ const ret = typeof(arg0) === 'bigint';
516
+ return ret;
517
+ };
518
+ imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
519
+ const ret = typeof(arg0) === 'function';
520
+ return ret;
521
+ };
522
+ imports.wbg.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
523
+ const ret = arg0 === null;
524
+ return ret;
525
+ };
526
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
527
+ const val = arg0;
528
+ const ret = typeof(val) === 'object' && val !== null;
529
+ return ret;
530
+ };
531
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
532
+ const ret = arg0 === undefined;
533
+ return ret;
534
+ };
535
+ imports.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
536
+ const ret = arg0 === arg1;
537
+ return ret;
538
+ };
539
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
540
+ const ret = arg0 == arg1;
541
+ return ret;
542
+ };
543
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
544
+ const obj = arg1;
545
+ const ret = typeof(obj) === 'number' ? obj : undefined;
546
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
547
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
548
+ };
549
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
550
+ const obj = arg1;
551
+ const ret = typeof(obj) === 'string' ? obj : undefined;
552
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
553
+ var len1 = WASM_VECTOR_LEN;
554
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
555
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
556
+ };
557
+ imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
558
+ throw new Error(getStringFromWasm0(arg0, arg1));
559
+ };
560
+ imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
561
+ arg0._wbg_cb_unref();
562
+ };
563
+ imports.wbg.__wbg_beginComputePass_1887a662b16709f1 = function(arg0, arg1) {
564
+ const ret = arg0.beginComputePass(arg1);
565
+ return ret;
566
+ };
567
+ imports.wbg.__wbg_beginRenderPass_9179e8717d25fdb0 = function(arg0, arg1) {
568
+ const ret = arg0.beginRenderPass(arg1);
569
+ return ret;
570
+ };
571
+ imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) {
572
+ const ret = arg0.buffer;
573
+ return ret;
574
+ };
575
+ imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
576
+ const ret = arg0.call(arg1, arg2);
577
+ return ret;
578
+ }, arguments) };
579
+ imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
580
+ const ret = arg0.call(arg1);
581
+ return ret;
582
+ }, arguments) };
583
+ imports.wbg.__wbg_clearBuffer_3cb299d33f9c17aa = function(arg0, arg1, arg2, arg3) {
584
+ arg0.clearBuffer(arg1, arg2, arg3);
585
+ };
586
+ imports.wbg.__wbg_clearBuffer_d1bbfb575de500c2 = function(arg0, arg1, arg2) {
587
+ arg0.clearBuffer(arg1, arg2);
588
+ };
589
+ imports.wbg.__wbg_configure_3545afac230e1d5e = function(arg0, arg1) {
590
+ arg0.configure(arg1);
591
+ };
592
+ imports.wbg.__wbg_copyBufferToBuffer_1339da3175db86a8 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
593
+ arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
594
+ };
595
+ imports.wbg.__wbg_copyBufferToTexture_7fa23729d3a09bc4 = function(arg0, arg1, arg2, arg3) {
596
+ arg0.copyBufferToTexture(arg1, arg2, arg3);
597
+ };
598
+ imports.wbg.__wbg_copyExternalImageToTexture_a7d15aeaa14817c3 = function(arg0, arg1, arg2, arg3) {
599
+ arg0.copyExternalImageToTexture(arg1, arg2, arg3);
600
+ };
601
+ imports.wbg.__wbg_copyTextureToBuffer_10eda2ea3e01a012 = function(arg0, arg1, arg2, arg3) {
602
+ arg0.copyTextureToBuffer(arg1, arg2, arg3);
603
+ };
604
+ imports.wbg.__wbg_copyTextureToTexture_0f32dca08a58f47f = function(arg0, arg1, arg2, arg3) {
605
+ arg0.copyTextureToTexture(arg1, arg2, arg3);
606
+ };
607
+ imports.wbg.__wbg_createBindGroupLayout_274e16d30c603078 = function(arg0, arg1) {
608
+ const ret = arg0.createBindGroupLayout(arg1);
609
+ return ret;
610
+ };
611
+ imports.wbg.__wbg_createBindGroup_a36c90bdc3f5eb88 = function(arg0, arg1) {
612
+ const ret = arg0.createBindGroup(arg1);
613
+ return ret;
614
+ };
615
+ imports.wbg.__wbg_createBuffer_d1ac34725e5cf041 = function(arg0, arg1) {
616
+ const ret = arg0.createBuffer(arg1);
617
+ return ret;
618
+ };
619
+ imports.wbg.__wbg_createCommandEncoder_513a786f096a5637 = function(arg0, arg1) {
620
+ const ret = arg0.createCommandEncoder(arg1);
621
+ return ret;
622
+ };
623
+ imports.wbg.__wbg_createComputePipeline_4bf93ff2c10c2333 = function(arg0, arg1) {
624
+ const ret = arg0.createComputePipeline(arg1);
625
+ return ret;
626
+ };
627
+ imports.wbg.__wbg_createPipelineLayout_669f14789cde7273 = function(arg0, arg1) {
628
+ const ret = arg0.createPipelineLayout(arg1);
629
+ return ret;
630
+ };
631
+ imports.wbg.__wbg_createQuerySet_7a0251b6c175935a = function(arg0, arg1) {
632
+ const ret = arg0.createQuerySet(arg1);
633
+ return ret;
634
+ };
635
+ imports.wbg.__wbg_createRenderBundleEncoder_2e2d7a61c14a077b = function(arg0, arg1) {
636
+ const ret = arg0.createRenderBundleEncoder(arg1);
637
+ return ret;
638
+ };
639
+ imports.wbg.__wbg_createRenderPipeline_d206a6a989f60069 = function(arg0, arg1) {
640
+ const ret = arg0.createRenderPipeline(arg1);
641
+ return ret;
642
+ };
643
+ imports.wbg.__wbg_createSampler_21641deec0b72234 = function(arg0, arg1) {
644
+ const ret = arg0.createSampler(arg1);
645
+ return ret;
646
+ };
647
+ imports.wbg.__wbg_createShaderModule_6a4726ff8937a4fc = function(arg0, arg1) {
648
+ const ret = arg0.createShaderModule(arg1);
649
+ return ret;
650
+ };
651
+ imports.wbg.__wbg_createTexture_b4736ca67c208a7d = function(arg0, arg1) {
652
+ const ret = arg0.createTexture(arg1);
653
+ return ret;
654
+ };
655
+ imports.wbg.__wbg_createView_28f72f1fbf41c53a = function(arg0, arg1) {
656
+ const ret = arg0.createView(arg1);
657
+ return ret;
658
+ };
659
+ imports.wbg.__wbg_destroy_24dc0325ca73bcdd = function(arg0) {
660
+ arg0.destroy();
661
+ };
662
+ imports.wbg.__wbg_destroy_35ef3fac72adebbd = function(arg0) {
663
+ arg0.destroy();
664
+ };
665
+ imports.wbg.__wbg_destroy_6ca164ec39708c30 = function(arg0) {
666
+ arg0.destroy();
667
+ };
668
+ imports.wbg.__wbg_dispatchWorkgroupsIndirect_5b70aa0ec2dd76d4 = function(arg0, arg1, arg2) {
669
+ arg0.dispatchWorkgroupsIndirect(arg1, arg2);
670
+ };
671
+ imports.wbg.__wbg_dispatchWorkgroups_eec2b1c97a77f008 = function(arg0, arg1, arg2, arg3) {
672
+ arg0.dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
673
+ };
674
+ imports.wbg.__wbg_document_5b745e82ba551ca5 = function(arg0) {
675
+ const ret = arg0.document;
676
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
677
+ };
678
+ imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
679
+ const ret = arg0.done;
680
+ return ret;
681
+ };
682
+ imports.wbg.__wbg_drawIndexedIndirect_7195bed12006fc7e = function(arg0, arg1, arg2) {
683
+ arg0.drawIndexedIndirect(arg1, arg2);
684
+ };
685
+ imports.wbg.__wbg_drawIndexedIndirect_cb0d6da766bd5105 = function(arg0, arg1, arg2) {
686
+ arg0.drawIndexedIndirect(arg1, arg2);
687
+ };
688
+ imports.wbg.__wbg_drawIndexed_6d903b1382862f81 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
689
+ arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
690
+ };
691
+ imports.wbg.__wbg_drawIndexed_c122c36f03fe07a5 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
692
+ arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
693
+ };
694
+ imports.wbg.__wbg_drawIndirect_9aab8bee6f6f1c22 = function(arg0, arg1, arg2) {
695
+ arg0.drawIndirect(arg1, arg2);
696
+ };
697
+ imports.wbg.__wbg_drawIndirect_d531975704a856b7 = function(arg0, arg1, arg2) {
698
+ arg0.drawIndirect(arg1, arg2);
699
+ };
700
+ imports.wbg.__wbg_draw_19d537d9832d985d = function(arg0, arg1, arg2, arg3, arg4) {
701
+ arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
702
+ };
703
+ imports.wbg.__wbg_draw_5beb2c11da5429ce = function(arg0, arg1, arg2, arg3, arg4) {
704
+ arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
705
+ };
706
+ imports.wbg.__wbg_end_2dc6d7fdcbfc2a0c = function(arg0) {
707
+ arg0.end();
708
+ };
709
+ imports.wbg.__wbg_end_9cc33f189e27f3fd = function(arg0) {
710
+ arg0.end();
711
+ };
712
+ imports.wbg.__wbg_error_15b28e2be7953dc9 = function(arg0) {
713
+ const ret = arg0.error;
714
+ return ret;
715
+ };
716
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
717
+ let deferred0_0;
718
+ let deferred0_1;
719
+ try {
720
+ deferred0_0 = arg0;
721
+ deferred0_1 = arg1;
722
+ console.error(getStringFromWasm0(arg0, arg1));
723
+ } finally {
724
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
725
+ }
726
+ };
727
+ imports.wbg.__wbg_executeBundles_db3c31afbf86979f = function(arg0, arg1) {
728
+ arg0.executeBundles(arg1);
729
+ };
730
+ imports.wbg.__wbg_features_89059e3112366930 = function(arg0) {
731
+ const ret = arg0.features;
732
+ return ret;
733
+ };
734
+ imports.wbg.__wbg_features_e8442c6e37f8191e = function(arg0) {
735
+ const ret = arg0.features;
736
+ return ret;
737
+ };
738
+ imports.wbg.__wbg_finish_53e6ed746110a5e5 = function(arg0) {
739
+ const ret = arg0.finish();
740
+ return ret;
741
+ };
742
+ imports.wbg.__wbg_finish_566e5beaeaeefc34 = function(arg0, arg1) {
743
+ const ret = arg0.finish(arg1);
744
+ return ret;
745
+ };
746
+ imports.wbg.__wbg_finish_a9c9f3133e6e4514 = function(arg0, arg1) {
747
+ const ret = arg0.finish(arg1);
748
+ return ret;
749
+ };
750
+ imports.wbg.__wbg_finish_e2465079e2b30a5a = function(arg0) {
751
+ const ret = arg0.finish();
752
+ return ret;
753
+ };
754
+ imports.wbg.__wbg_from_29a8414a7a7cd19d = function(arg0) {
755
+ const ret = Array.from(arg0);
756
+ return ret;
757
+ };
758
+ imports.wbg.__wbg_getBindGroupLayout_06526a0d3d5b4c6a = function(arg0, arg1) {
759
+ const ret = arg0.getBindGroupLayout(arg1 >>> 0);
760
+ return ret;
761
+ };
762
+ imports.wbg.__wbg_getBindGroupLayout_0f99651172cbcabf = function(arg0, arg1) {
763
+ const ret = arg0.getBindGroupLayout(arg1 >>> 0);
764
+ return ret;
765
+ };
766
+ imports.wbg.__wbg_getContext_01f42b234e833f0a = function() { return handleError(function (arg0, arg1, arg2) {
767
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
768
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
769
+ }, arguments) };
770
+ imports.wbg.__wbg_getContext_2f210d0a58d43d95 = function() { return handleError(function (arg0, arg1, arg2) {
771
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
772
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
773
+ }, arguments) };
774
+ imports.wbg.__wbg_getCurrentTexture_f578d59f0860dcc9 = function(arg0) {
775
+ const ret = arg0.getCurrentTexture();
776
+ return ret;
777
+ };
778
+ imports.wbg.__wbg_getMappedRange_1a67a729fca25c5c = function(arg0, arg1, arg2) {
779
+ const ret = arg0.getMappedRange(arg1, arg2);
780
+ return ret;
781
+ };
782
+ imports.wbg.__wbg_getPreferredCanvasFormat_b4306c1470f3a2be = function(arg0) {
783
+ const ret = arg0.getPreferredCanvasFormat();
784
+ return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 95) - 1;
785
+ };
786
+ imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
787
+ const ret = arg0[arg1 >>> 0];
788
+ return ret;
789
+ };
790
+ imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
791
+ const ret = Reflect.get(arg0, arg1);
792
+ return ret;
793
+ }, arguments) };
794
+ imports.wbg.__wbg_get_c53d381635aa3929 = function(arg0, arg1) {
795
+ const ret = arg0[arg1 >>> 0];
796
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
797
+ };
798
+ imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
799
+ const ret = arg0[arg1];
800
+ return ret;
801
+ };
802
+ imports.wbg.__wbg_gpu_cd94e3ed1a24e829 = function(arg0) {
803
+ const ret = arg0.gpu;
804
+ return ret;
805
+ };
806
+ imports.wbg.__wbg_has_8d7562409899ab08 = function(arg0, arg1, arg2) {
807
+ const ret = arg0.has(getStringFromWasm0(arg1, arg2));
808
+ return ret;
809
+ };
810
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
811
+ let result;
812
+ try {
813
+ result = arg0 instanceof ArrayBuffer;
814
+ } catch (_) {
815
+ result = false;
816
+ }
817
+ const ret = result;
818
+ return ret;
819
+ };
820
+ imports.wbg.__wbg_instanceof_GpuAdapter_812393144f747a28 = function(arg0) {
821
+ let result;
822
+ try {
823
+ result = arg0 instanceof GPUAdapter;
824
+ } catch (_) {
825
+ result = false;
826
+ }
827
+ const ret = result;
828
+ return ret;
829
+ };
830
+ imports.wbg.__wbg_instanceof_GpuCanvasContext_7d8c2aee896960ef = function(arg0) {
831
+ let result;
832
+ try {
833
+ result = arg0 instanceof GPUCanvasContext;
834
+ } catch (_) {
835
+ result = false;
836
+ }
837
+ const ret = result;
838
+ return ret;
839
+ };
840
+ imports.wbg.__wbg_instanceof_GpuOutOfMemoryError_5661073b28c982a3 = function(arg0) {
841
+ let result;
842
+ try {
843
+ result = arg0 instanceof GPUOutOfMemoryError;
844
+ } catch (_) {
845
+ result = false;
846
+ }
847
+ const ret = result;
848
+ return ret;
849
+ };
850
+ imports.wbg.__wbg_instanceof_GpuValidationError_b2b2abc70da536b4 = function(arg0) {
851
+ let result;
852
+ try {
853
+ result = arg0 instanceof GPUValidationError;
854
+ } catch (_) {
855
+ result = false;
856
+ }
857
+ const ret = result;
858
+ return ret;
859
+ };
860
+ imports.wbg.__wbg_instanceof_Object_577e21051f7bcb79 = function(arg0) {
861
+ let result;
862
+ try {
863
+ result = arg0 instanceof Object;
864
+ } catch (_) {
865
+ result = false;
866
+ }
867
+ const ret = result;
868
+ return ret;
869
+ };
870
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
871
+ let result;
872
+ try {
873
+ result = arg0 instanceof Uint8Array;
874
+ } catch (_) {
875
+ result = false;
876
+ }
877
+ const ret = result;
878
+ return ret;
879
+ };
880
+ imports.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function(arg0) {
881
+ let result;
882
+ try {
883
+ result = arg0 instanceof Window;
884
+ } catch (_) {
885
+ result = false;
886
+ }
887
+ const ret = result;
888
+ return ret;
889
+ };
890
+ imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
891
+ const ret = Array.isArray(arg0);
892
+ return ret;
893
+ };
894
+ imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
895
+ const ret = Number.isSafeInteger(arg0);
896
+ return ret;
897
+ };
898
+ imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
899
+ const ret = Symbol.iterator;
900
+ return ret;
901
+ };
902
+ imports.wbg.__wbg_label_ddec9d5dff390794 = function(arg0, arg1) {
903
+ const ret = arg1.label;
904
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
905
+ const len1 = WASM_VECTOR_LEN;
906
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
907
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
908
+ };
909
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
910
+ const ret = arg0.length;
911
+ return ret;
912
+ };
913
+ imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
914
+ const ret = arg0.length;
915
+ return ret;
916
+ };
917
+ imports.wbg.__wbg_limits_100c065725b263d3 = function(arg0) {
918
+ const ret = arg0.limits;
919
+ return ret;
920
+ };
921
+ imports.wbg.__wbg_limits_adf0926aa155a224 = function(arg0) {
922
+ const ret = arg0.limits;
923
+ return ret;
924
+ };
925
+ imports.wbg.__wbg_mapAsync_9cae92e6e45c9c69 = function(arg0, arg1, arg2, arg3) {
926
+ const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
927
+ return ret;
928
+ };
929
+ imports.wbg.__wbg_maxBindGroups_6f2433803f32568b = function(arg0) {
930
+ const ret = arg0.maxBindGroups;
931
+ return ret;
932
+ };
933
+ imports.wbg.__wbg_maxBindingsPerBindGroup_7663f800ee6c1c4d = function(arg0) {
934
+ const ret = arg0.maxBindingsPerBindGroup;
935
+ return ret;
936
+ };
937
+ imports.wbg.__wbg_maxBufferSize_7c2e7941b31faeb3 = function(arg0) {
938
+ const ret = arg0.maxBufferSize;
939
+ return ret;
940
+ };
941
+ imports.wbg.__wbg_maxComputeInvocationsPerWorkgroup_7706224e284389bb = function(arg0) {
942
+ const ret = arg0.maxComputeInvocationsPerWorkgroup;
943
+ return ret;
944
+ };
945
+ imports.wbg.__wbg_maxComputeWorkgroupSizeX_7c0caad69a9b0dd3 = function(arg0) {
946
+ const ret = arg0.maxComputeWorkgroupSizeX;
947
+ return ret;
948
+ };
949
+ imports.wbg.__wbg_maxComputeWorkgroupSizeY_add60ae79eceba95 = function(arg0) {
950
+ const ret = arg0.maxComputeWorkgroupSizeY;
951
+ return ret;
952
+ };
953
+ imports.wbg.__wbg_maxComputeWorkgroupSizeZ_b0d9e8bb90139e66 = function(arg0) {
954
+ const ret = arg0.maxComputeWorkgroupSizeZ;
955
+ return ret;
956
+ };
957
+ imports.wbg.__wbg_maxComputeWorkgroupStorageSize_bcc6c568b706b004 = function(arg0) {
958
+ const ret = arg0.maxComputeWorkgroupStorageSize;
959
+ return ret;
960
+ };
961
+ imports.wbg.__wbg_maxComputeWorkgroupsPerDimension_05c9e479d4805640 = function(arg0) {
962
+ const ret = arg0.maxComputeWorkgroupsPerDimension;
963
+ return ret;
964
+ };
965
+ imports.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_4017c7b096806162 = function(arg0) {
966
+ const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
967
+ return ret;
968
+ };
969
+ imports.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_1d359f3196df8904 = function(arg0) {
970
+ const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
971
+ return ret;
972
+ };
973
+ imports.wbg.__wbg_maxInterStageShaderComponents_d0d88326cf30e5cc = function(arg0) {
974
+ const ret = arg0.maxInterStageShaderComponents;
975
+ return ret;
976
+ };
977
+ imports.wbg.__wbg_maxSampledTexturesPerShaderStage_5ad571f210127408 = function(arg0) {
978
+ const ret = arg0.maxSampledTexturesPerShaderStage;
979
+ return ret;
980
+ };
981
+ imports.wbg.__wbg_maxSamplersPerShaderStage_c2ccff8d0f9ec6fd = function(arg0) {
982
+ const ret = arg0.maxSamplersPerShaderStage;
983
+ return ret;
984
+ };
985
+ imports.wbg.__wbg_maxStorageBufferBindingSize_7c16519c2edc067a = function(arg0) {
986
+ const ret = arg0.maxStorageBufferBindingSize;
987
+ return ret;
988
+ };
989
+ imports.wbg.__wbg_maxStorageBuffersPerShaderStage_e8eff366756ea9b4 = function(arg0) {
990
+ const ret = arg0.maxStorageBuffersPerShaderStage;
991
+ return ret;
992
+ };
993
+ imports.wbg.__wbg_maxStorageTexturesPerShaderStage_4e1d793c1e5c72a2 = function(arg0) {
994
+ const ret = arg0.maxStorageTexturesPerShaderStage;
995
+ return ret;
996
+ };
997
+ imports.wbg.__wbg_maxTextureArrayLayers_185872b43f6c8c34 = function(arg0) {
998
+ const ret = arg0.maxTextureArrayLayers;
999
+ return ret;
1000
+ };
1001
+ imports.wbg.__wbg_maxTextureDimension1D_bfa55b0304281516 = function(arg0) {
1002
+ const ret = arg0.maxTextureDimension1D;
1003
+ return ret;
1004
+ };
1005
+ imports.wbg.__wbg_maxTextureDimension2D_ffea95d029cf185b = function(arg0) {
1006
+ const ret = arg0.maxTextureDimension2D;
1007
+ return ret;
1008
+ };
1009
+ imports.wbg.__wbg_maxTextureDimension3D_bdfbc27d985f367d = function(arg0) {
1010
+ const ret = arg0.maxTextureDimension3D;
1011
+ return ret;
1012
+ };
1013
+ imports.wbg.__wbg_maxUniformBufferBindingSize_01703051a2b68aaa = function(arg0) {
1014
+ const ret = arg0.maxUniformBufferBindingSize;
1015
+ return ret;
1016
+ };
1017
+ imports.wbg.__wbg_maxUniformBuffersPerShaderStage_9f2d18a988fa37a0 = function(arg0) {
1018
+ const ret = arg0.maxUniformBuffersPerShaderStage;
1019
+ return ret;
1020
+ };
1021
+ imports.wbg.__wbg_maxVertexAttributes_268db19855a9a8bf = function(arg0) {
1022
+ const ret = arg0.maxVertexAttributes;
1023
+ return ret;
1024
+ };
1025
+ imports.wbg.__wbg_maxVertexBufferArrayStride_cace98777fdc5a4c = function(arg0) {
1026
+ const ret = arg0.maxVertexBufferArrayStride;
1027
+ return ret;
1028
+ };
1029
+ imports.wbg.__wbg_maxVertexBuffers_a8169305364fd125 = function(arg0) {
1030
+ const ret = arg0.maxVertexBuffers;
1031
+ return ret;
1032
+ };
1033
+ imports.wbg.__wbg_message_d8f5eb4a85362e32 = function(arg0, arg1) {
1034
+ const ret = arg1.message;
1035
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1036
+ const len1 = WASM_VECTOR_LEN;
1037
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1038
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1039
+ };
1040
+ imports.wbg.__wbg_minStorageBufferOffsetAlignment_b9763b1a342987b2 = function(arg0) {
1041
+ const ret = arg0.minStorageBufferOffsetAlignment;
1042
+ return ret;
1043
+ };
1044
+ imports.wbg.__wbg_minUniformBufferOffsetAlignment_dc9a10adad690d13 = function(arg0) {
1045
+ const ret = arg0.minUniformBufferOffsetAlignment;
1046
+ return ret;
1047
+ };
1048
+ imports.wbg.__wbg_navigator_11b7299bb7886507 = function(arg0) {
1049
+ const ret = arg0.navigator;
1050
+ return ret;
1051
+ };
1052
+ imports.wbg.__wbg_navigator_b49edef831236138 = function(arg0) {
1053
+ const ret = arg0.navigator;
1054
+ return ret;
1055
+ };
1056
+ imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
1057
+ const ret = new Object();
1058
+ return ret;
1059
+ };
1060
+ imports.wbg.__wbg_new_25f239778d6112b9 = function() {
1061
+ const ret = new Array();
1062
+ return ret;
1063
+ };
1064
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
1065
+ const ret = new Uint8Array(arg0);
1066
+ return ret;
1067
+ };
1068
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
1069
+ const ret = new Error();
1070
+ return ret;
1071
+ };
1072
+ imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
1073
+ try {
1074
+ var state0 = {a: arg0, b: arg1};
1075
+ var cb0 = (arg0, arg1) => {
1076
+ const a = state0.a;
1077
+ state0.a = 0;
1078
+ try {
1079
+ return wasm_bindgen__convert__closures_____invoke__h2845bf56d21a7dac(a, state0.b, arg0, arg1);
1080
+ } finally {
1081
+ state0.a = a;
1082
+ }
1083
+ };
1084
+ const ret = new Promise(cb0);
1085
+ return ret;
1086
+ } finally {
1087
+ state0.a = state0.b = 0;
1088
+ }
1089
+ };
1090
+ imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
1091
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1092
+ return ret;
1093
+ };
1094
+ imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
1095
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1096
+ return ret;
1097
+ };
1098
+ imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) {
1099
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1100
+ return ret;
1101
+ };
1102
+ imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
1103
+ const ret = arg0.next;
1104
+ return ret;
1105
+ };
1106
+ imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
1107
+ const ret = arg0.next();
1108
+ return ret;
1109
+ }, arguments) };
1110
+ imports.wbg.__wbg_popErrorScope_8a0d0d31c4ddc243 = function(arg0) {
1111
+ const ret = arg0.popErrorScope();
1112
+ return ret;
1113
+ };
1114
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
1115
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1116
+ };
1117
+ imports.wbg.__wbg_pushErrorScope_dc8386c8142593b6 = function(arg0, arg1) {
1118
+ arg0.pushErrorScope(__wbindgen_enum_GpuErrorFilter[arg1]);
1119
+ };
1120
+ imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
1121
+ const ret = arg0.push(arg1);
1122
+ return ret;
1123
+ };
1124
+ imports.wbg.__wbg_querySelectorAll_aa1048eae18f6f1a = function() { return handleError(function (arg0, arg1, arg2) {
1125
+ const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
1126
+ return ret;
1127
+ }, arguments) };
1128
+ imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
1129
+ const ret = arg0.queueMicrotask;
1130
+ return ret;
1131
+ };
1132
+ imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
1133
+ queueMicrotask(arg0);
1134
+ };
1135
+ imports.wbg.__wbg_queue_d083905208ed0dcd = function(arg0) {
1136
+ const ret = arg0.queue;
1137
+ return ret;
1138
+ };
1139
+ imports.wbg.__wbg_requestAdapter_629f003011778ce0 = function(arg0, arg1) {
1140
+ const ret = arg0.requestAdapter(arg1);
1141
+ return ret;
1142
+ };
1143
+ imports.wbg.__wbg_requestDevice_a420ce594b90ac7c = function(arg0, arg1) {
1144
+ const ret = arg0.requestDevice(arg1);
1145
+ return ret;
1146
+ };
1147
+ imports.wbg.__wbg_resolveQuerySet_2fea0e7835fc7df1 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1148
+ arg0.resolveQuerySet(arg1, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
1149
+ };
1150
+ imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
1151
+ const ret = Promise.resolve(arg0);
1152
+ return ret;
1153
+ };
1154
+ imports.wbg.__wbg_setBindGroup_10139726fa3dd1ea = function(arg0, arg1, arg2) {
1155
+ arg0.setBindGroup(arg1 >>> 0, arg2);
1156
+ };
1157
+ imports.wbg.__wbg_setBindGroup_241675b4c4b8f5ee = function(arg0, arg1, arg2) {
1158
+ arg0.setBindGroup(arg1 >>> 0, arg2);
1159
+ };
1160
+ imports.wbg.__wbg_setBindGroup_9ae27be0638391c7 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1161
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
1162
+ };
1163
+ imports.wbg.__wbg_setBindGroup_a539eeaa822b1981 = function(arg0, arg1, arg2) {
1164
+ arg0.setBindGroup(arg1 >>> 0, arg2);
1165
+ };
1166
+ imports.wbg.__wbg_setBindGroup_db89ccc18c604dc2 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1167
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
1168
+ };
1169
+ imports.wbg.__wbg_setBindGroup_eea1f72247b40846 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1170
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
1171
+ };
1172
+ imports.wbg.__wbg_setBlendConstant_898c0ee36fd7f3d6 = function(arg0, arg1) {
1173
+ arg0.setBlendConstant(arg1);
1174
+ };
1175
+ imports.wbg.__wbg_setIndexBuffer_02484628e4be6ccf = function(arg0, arg1, arg2, arg3) {
1176
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
1177
+ };
1178
+ imports.wbg.__wbg_setIndexBuffer_4179c9df498ed24f = function(arg0, arg1, arg2, arg3, arg4) {
1179
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
1180
+ };
1181
+ imports.wbg.__wbg_setIndexBuffer_6241c40136dfd59c = function(arg0, arg1, arg2, arg3) {
1182
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
1183
+ };
1184
+ imports.wbg.__wbg_setIndexBuffer_cac1cc97b362a161 = function(arg0, arg1, arg2, arg3, arg4) {
1185
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
1186
+ };
1187
+ imports.wbg.__wbg_setPipeline_065423750bbc2601 = function(arg0, arg1) {
1188
+ arg0.setPipeline(arg1);
1189
+ };
1190
+ imports.wbg.__wbg_setPipeline_73d2200820a1b6d7 = function(arg0, arg1) {
1191
+ arg0.setPipeline(arg1);
1192
+ };
1193
+ imports.wbg.__wbg_setPipeline_c41eba60986fbffb = function(arg0, arg1) {
1194
+ arg0.setPipeline(arg1);
1195
+ };
1196
+ imports.wbg.__wbg_setScissorRect_7ad09034bda2ad64 = function(arg0, arg1, arg2, arg3, arg4) {
1197
+ arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1198
+ };
1199
+ imports.wbg.__wbg_setStencilReference_2d44258a2b1549df = function(arg0, arg1) {
1200
+ arg0.setStencilReference(arg1 >>> 0);
1201
+ };
1202
+ imports.wbg.__wbg_setVertexBuffer_086ad8f1d3a3528b = function(arg0, arg1, arg2, arg3) {
1203
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
1204
+ };
1205
+ imports.wbg.__wbg_setVertexBuffer_130b7f747b752e5d = function(arg0, arg1, arg2, arg3, arg4) {
1206
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
1207
+ };
1208
+ imports.wbg.__wbg_setVertexBuffer_1a126bb7aa133940 = function(arg0, arg1, arg2, arg3, arg4) {
1209
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
1210
+ };
1211
+ imports.wbg.__wbg_setVertexBuffer_56163ae020ef8343 = function(arg0, arg1, arg2, arg3) {
1212
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
1213
+ };
1214
+ imports.wbg.__wbg_setViewport_0c26f0a54b53d7e3 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1215
+ arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
1216
+ };
1217
+ imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
1218
+ const ret = Reflect.set(arg0, arg1, arg2);
1219
+ return ret;
1220
+ }, arguments) };
1221
+ imports.wbg.__wbg_set_bc3a432bdcd60886 = function(arg0, arg1, arg2) {
1222
+ arg0.set(arg1, arg2 >>> 0);
1223
+ };
1224
+ imports.wbg.__wbg_set_height_6f8f8ef4cb40e496 = function(arg0, arg1) {
1225
+ arg0.height = arg1 >>> 0;
1226
+ };
1227
+ imports.wbg.__wbg_set_height_afe09c24165867f7 = function(arg0, arg1) {
1228
+ arg0.height = arg1 >>> 0;
1229
+ };
1230
+ imports.wbg.__wbg_set_onuncapturederror_daf12032b2ca712a = function(arg0, arg1) {
1231
+ arg0.onuncapturederror = arg1;
1232
+ };
1233
+ imports.wbg.__wbg_set_width_0a22c810f06a5152 = function(arg0, arg1) {
1234
+ arg0.width = arg1 >>> 0;
1235
+ };
1236
+ imports.wbg.__wbg_set_width_7ff7a22c6e9f423e = function(arg0, arg1) {
1237
+ arg0.width = arg1 >>> 0;
1238
+ };
1239
+ imports.wbg.__wbg_size_45c769c019ee354e = function(arg0) {
1240
+ const ret = arg0.size;
1241
+ return ret;
1242
+ };
1243
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
1244
+ const ret = arg1.stack;
1245
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1246
+ const len1 = WASM_VECTOR_LEN;
1247
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1248
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1249
+ };
1250
+ imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
1251
+ const ret = typeof global === 'undefined' ? null : global;
1252
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1253
+ };
1254
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
1255
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1256
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1257
+ };
1258
+ imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
1259
+ const ret = typeof self === 'undefined' ? null : self;
1260
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1261
+ };
1262
+ imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
1263
+ const ret = typeof window === 'undefined' ? null : window;
1264
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1265
+ };
1266
+ imports.wbg.__wbg_submit_75592557e0c2141c = function(arg0, arg1) {
1267
+ arg0.submit(arg1);
1268
+ };
1269
+ imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
1270
+ const ret = arg0.then(arg1, arg2);
1271
+ return ret;
1272
+ };
1273
+ imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
1274
+ const ret = arg0.then(arg1);
1275
+ return ret;
1276
+ };
1277
+ imports.wbg.__wbg_toString_49326ce0cb2d58c4 = function() { return handleError(function (arg0, arg1) {
1278
+ const ret = arg0.toString(arg1);
1279
+ return ret;
1280
+ }, arguments) };
1281
+ imports.wbg.__wbg_unmap_662f1210575affe8 = function(arg0) {
1282
+ arg0.unmap();
1283
+ };
1284
+ imports.wbg.__wbg_usage_000523533bad5f06 = function(arg0) {
1285
+ const ret = arg0.usage;
1286
+ return ret;
1287
+ };
1288
+ imports.wbg.__wbg_valueOf_663ea9f1ad0d6eda = function(arg0) {
1289
+ const ret = arg0.valueOf();
1290
+ return ret;
1291
+ };
1292
+ imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
1293
+ const ret = arg0.value;
1294
+ return ret;
1295
+ };
1296
+ imports.wbg.__wbg_writeBuffer_c78696d1629b48de = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1297
+ arg0.writeBuffer(arg1, arg2, arg3, arg4, arg5);
1298
+ };
1299
+ imports.wbg.__wbg_writeTexture_91ff88a4044f669a = function(arg0, arg1, arg2, arg3, arg4) {
1300
+ arg0.writeTexture(arg1, arg2, arg3, arg4);
1301
+ };
1302
+ imports.wbg.__wbg_writeTimestamp_a8766c734d6aa8d6 = function(arg0, arg1, arg2) {
1303
+ arg0.writeTimestamp(arg1, arg2 >>> 0);
1304
+ };
1305
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1306
+ // Cast intrinsic for `Ref(String) -> Externref`.
1307
+ const ret = getStringFromWasm0(arg0, arg1);
1308
+ return ret;
1309
+ };
1310
+ imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
1311
+ // Cast intrinsic for `U64 -> Externref`.
1312
+ const ret = BigInt.asUintN(64, arg0);
1313
+ return ret;
1314
+ };
1315
+ imports.wbg.__wbindgen_cast_6e2a6616e8c7e44a = function(arg0, arg1) {
1316
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 278, function: Function { arguments: [Externref], shim_idx: 279, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1317
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h16b8b0f00158f31c, wasm_bindgen__convert__closures_____invoke__h1a38164a3a667135);
1318
+ return ret;
1319
+ };
1320
+ imports.wbg.__wbindgen_cast_745afa3cbff3d67a = function(arg0, arg1) {
1321
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 273, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 274, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1322
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h08603745582b4e0f, wasm_bindgen__convert__closures_____invoke__h4173f797cb68abd1);
1323
+ return ret;
1324
+ };
1325
+ imports.wbg.__wbindgen_cast_ae775b3f26a35654 = function(arg0, arg1) {
1326
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 273, function: Function { arguments: [Externref], shim_idx: 274, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1327
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h08603745582b4e0f, wasm_bindgen__convert__closures_____invoke__h4173f797cb68abd1);
1328
+ return ret;
1329
+ };
1330
+ imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
1331
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1332
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1333
+ return ret;
1334
+ };
1335
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1336
+ // Cast intrinsic for `F64 -> Externref`.
1337
+ const ret = arg0;
1338
+ return ret;
1339
+ };
1340
+ imports.wbg.__wbindgen_init_externref_table = function() {
1341
+ const table = wasm.__wbindgen_externrefs;
1342
+ const offset = table.grow(4);
1343
+ table.set(0, undefined);
1344
+ table.set(offset + 0, undefined);
1345
+ table.set(offset + 1, null);
1346
+ table.set(offset + 2, true);
1347
+ table.set(offset + 3, false);
1348
+ };
1349
+
1350
+ return imports;
1351
+ }
1352
+
1353
+ function __wbg_finalize_init(instance, module) {
1354
+ wasm = instance.exports;
1355
+ __wbg_init.__wbindgen_wasm_module = module;
1356
+ cachedDataViewMemory0 = null;
1357
+ cachedUint32ArrayMemory0 = null;
1358
+ cachedUint8ArrayMemory0 = null;
1359
+
1360
+
1361
+ wasm.__wbindgen_start();
1362
+ return wasm;
1363
+ }
1364
+
1365
+ function initSync(module) {
1366
+ if (wasm !== undefined) return wasm;
1367
+
1368
+
1369
+ if (typeof module !== 'undefined') {
1370
+ if (Object.getPrototypeOf(module) === Object.prototype) {
1371
+ ({module} = module)
1372
+ } else {
1373
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1374
+ }
1375
+ }
1376
+
1377
+ const imports = __wbg_get_imports();
1378
+ if (!(module instanceof WebAssembly.Module)) {
1379
+ module = new WebAssembly.Module(module);
1380
+ }
1381
+ const instance = new WebAssembly.Instance(module, imports);
1382
+ return __wbg_finalize_init(instance, module);
1383
+ }
1384
+
1385
+ async function __wbg_init(module_or_path) {
1386
+ if (wasm !== undefined) return wasm;
1387
+
1388
+
1389
+ if (typeof module_or_path !== 'undefined') {
1390
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1391
+ ({module_or_path} = module_or_path)
1392
+ } else {
1393
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1394
+ }
1395
+ }
1396
+
1397
+ if (typeof module_or_path === 'undefined') {
1398
+ module_or_path = new URL('zeldhash_miner_wasm_bg.wasm', import.meta.url);
1399
+ }
1400
+ const imports = __wbg_get_imports();
1401
+
1402
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
1403
+ module_or_path = fetch(module_or_path);
1404
+ }
1405
+
1406
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
1407
+
1408
+ return __wbg_finalize_init(instance, module);
1409
+ }
1410
+
1411
+ export { initSync };
1412
+ export default __wbg_init;