From 874ad8a9570a76a6b968bf53718cc4ab11c15e5c Mon Sep 17 00:00:00 2001 From: PodeCaradox Date: Fri, 14 Jun 2024 20:19:03 +0200 Subject: [PATCH] update versions --- src/assets/wasm/castle_sim.js | 1694 +++++++++++++++++++++++++++++++++ 1 file changed, 1694 insertions(+) create mode 100644 src/assets/wasm/castle_sim.js diff --git a/src/assets/wasm/castle_sim.js b/src/assets/wasm/castle_sim.js new file mode 100644 index 0000000..98bdcd7 --- /dev/null +++ b/src/assets/wasm/castle_sim.js @@ -0,0 +1,1694 @@ +let wasm; + +const heap = new Array(128).fill(undefined); + +heap.push(undefined, null, true, false); + +function getObject(idx) { return heap[idx]; } + +let heap_next = heap.length; + +function dropObject(idx) { + if (idx < 132) return; + heap[idx] = heap_next; + heap_next = idx; +} + +function takeObject(idx) { + const ret = getObject(idx); + dropObject(idx); + return ret; +} + +const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); + +if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; + +let cachedUint8Memory0 = null; + +function getUint8Memory0() { + if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { + cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); + } + return cachedUint8Memory0; +} + +function getStringFromWasm0(ptr, len) { + ptr = ptr >>> 0; + return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); +} + +function addHeapObject(obj) { + if (heap_next === heap.length) heap.push(heap.length + 1); + const idx = heap_next; + heap_next = heap[idx]; + + heap[idx] = obj; + return idx; +} + +let WASM_VECTOR_LEN = 0; + +const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); + +const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' + ? function (arg, view) { + return cachedTextEncoder.encodeInto(arg, view); +} + : function (arg, view) { + const buf = cachedTextEncoder.encode(arg); + view.set(buf); + return { + read: arg.length, + written: buf.length + }; +}); + +function passStringToWasm0(arg, malloc, realloc) { + + if (realloc === undefined) { + const buf = cachedTextEncoder.encode(arg); + const ptr = malloc(buf.length, 1) >>> 0; + getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); + WASM_VECTOR_LEN = buf.length; + return ptr; + } + + let len = arg.length; + let ptr = malloc(len, 1) >>> 0; + + const mem = getUint8Memory0(); + + let offset = 0; + + for (; offset < len; offset++) { + const code = arg.charCodeAt(offset); + if (code > 0x7F) break; + mem[ptr + offset] = code; + } + + if (offset !== len) { + if (offset !== 0) { + arg = arg.slice(offset); + } + ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; + const view = getUint8Memory0().subarray(ptr + offset, ptr + len); + const ret = encodeString(arg, view); + + offset += ret.written; + ptr = realloc(ptr, len, offset, 1) >>> 0; + } + + WASM_VECTOR_LEN = offset; + return ptr; +} + +function isLikeNone(x) { + return x === undefined || x === null; +} + +let cachedInt32Memory0 = null; + +function getInt32Memory0() { + if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) { + cachedInt32Memory0 = new Int32Array(wasm.memory.buffer); + } + return cachedInt32Memory0; +} + +function debugString(val) { + // primitive types + const type = typeof val; + if (type == 'number' || type == 'boolean' || val == null) { + return `${val}`; + } + if (type == 'string') { + return `"${val}"`; + } + if (type == 'symbol') { + const description = val.description; + if (description == null) { + return 'Symbol'; + } else { + return `Symbol(${description})`; + } + } + if (type == 'function') { + const name = val.name; + if (typeof name == 'string' && name.length > 0) { + return `Function(${name})`; + } else { + return 'Function'; + } + } + // objects + if (Array.isArray(val)) { + const length = val.length; + let debug = '['; + if (length > 0) { + debug += debugString(val[0]); + } + for(let i = 1; i < length; i++) { + debug += ', ' + debugString(val[i]); + } + debug += ']'; + return debug; + } + // Test for built-in + const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); + let className; + if (builtInMatches.length > 1) { + className = builtInMatches[1]; + } else { + // Failed to match the standard '[object ClassName]' + return toString.call(val); + } + if (className == 'Object') { + // we're a user defined class or Object + // JSON.stringify avoids problems with cycles, and is generally much + // easier than looping through ownProperties of `val`. + try { + return 'Object(' + JSON.stringify(val) + ')'; + } catch (_) { + return 'Object'; + } + } + // errors + if (val instanceof Error) { + return `${val.name}: ${val.message}\n${val.stack}`; + } + // TODO we could test for more things here, like `Set`s and `Map`s. + return className; +} + +const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') + ? { register: () => {}, unregister: () => {} } + : new FinalizationRegistry(state => { + wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b) +}); + +function makeMutClosure(arg0, arg1, dtor, f) { + const state = { a: arg0, b: arg1, cnt: 1, dtor }; + const real = (...args) => { + // First up with a closure we increment the internal reference + // count. This ensures that the Rust closure environment won't + // be deallocated while we're invoking it. + state.cnt++; + const a = state.a; + state.a = 0; + try { + return f(a, state.b, ...args); + } finally { + if (--state.cnt === 0) { + wasm.__wbindgen_export_2.get(state.dtor)(a, state.b); + CLOSURE_DTORS.unregister(state); + } else { + state.a = a; + } + } + }; + real.original = state; + CLOSURE_DTORS.register(real, state, state); + return real; +} +function __wbg_adapter_28(arg0, arg1, arg2) { + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h21c90dfaf499c2bb(arg0, arg1, addHeapObject(arg2)); +} + +function __wbg_adapter_37(arg0, arg1) { + wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h00533571caa4b005(arg0, arg1); +} + +function __wbg_adapter_48(arg0, arg1, arg2, arg3) { + wasm._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he795318ddd0c6e8e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); +} + +function __wbg_adapter_51(arg0, arg1, arg2) { + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4db3d75ecbbfc46f(arg0, arg1, addHeapObject(arg2)); +} + +function __wbg_adapter_56(arg0, arg1, arg2) { + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h118643cd3550310b(arg0, arg1, addHeapObject(arg2)); +} + +/** +* @param {number} width +* @param {number} height +* @returns {Promise} +*/ +export function run(width, height) { + const ret = wasm.run(width, height); + return takeObject(ret); +} + +let cachedUint32Memory0 = null; + +function getUint32Memory0() { + if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) { + cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer); + } + return cachedUint32Memory0; +} + +function getArrayU32FromWasm0(ptr, len) { + ptr = ptr >>> 0; + return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len); +} + +function handleError(f, args) { + try { + return f.apply(this, args); + } catch (e) { + wasm.__wbindgen_exn_store(addHeapObject(e)); + } +} +function __wbg_adapter_626(arg0, arg1, arg2, arg3) { + wasm.wasm_bindgen__convert__closures__invoke2_mut__h5b9d2304a7705170(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); +} + +async function __wbg_load(module, imports) { + if (typeof Response === 'function' && module instanceof Response) { + if (typeof WebAssembly.instantiateStreaming === 'function') { + try { + return await WebAssembly.instantiateStreaming(module, imports); + + } catch (e) { + if (module.headers.get('Content-Type') != 'application/wasm') { + 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); + + } else { + throw e; + } + } + } + + const bytes = await module.arrayBuffer(); + return await WebAssembly.instantiate(bytes, imports); + + } else { + const instance = await WebAssembly.instantiate(module, imports); + + if (instance instanceof WebAssembly.Instance) { + return { instance, module }; + + } else { + return instance; + } + } +} + +function __wbg_get_imports() { + const imports = {}; + imports.wbg = {}; + imports.wbg.__wbindgen_object_drop_ref = function(arg0) { + takeObject(arg0); + }; + imports.wbg.__wbindgen_string_new = function(arg0, arg1) { + const ret = getStringFromWasm0(arg0, arg1); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_cb_drop = function(arg0) { + const obj = takeObject(arg0).original; + if (obj.cnt-- == 1) { + obj.a = 0; + return true; + } + const ret = false; + return ret; + }; + imports.wbg.__wbg_new_abda76e883ba8a5f = function() { + const ret = new Error(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) { + const ret = getObject(arg1).stack; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) { + let deferred0_0; + let deferred0_1; + try { + deferred0_0 = arg0; + deferred0_1 = arg1; + console.error(getStringFromWasm0(arg0, arg1)); + } finally { + wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); + } + }; + imports.wbg.__wbg_offsetX_fac5a0f729fe8f52 = function(arg0) { + const ret = getObject(arg0).offsetX; + return ret; + }; + imports.wbg.__wbg_offsetY_d8fc50350027a498 = function(arg0) { + const ret = getObject(arg0).offsetY; + return ret; + }; + imports.wbg.__wbindgen_object_clone_ref = function(arg0) { + const ret = getObject(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_prototype_6389b257cc7e77b0 = function() { + const ret = ResizeObserverEntry.prototype; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_is_undefined = function(arg0) { + const ret = getObject(arg0) === undefined; + return ret; + }; + imports.wbg.__wbg_Window_14bcb1f552ff4438 = function(arg0) { + const ret = getObject(arg0).Window; + return addHeapObject(ret); + }; + imports.wbg.__wbg_scheduler_4ab1dcdb077d2a67 = function(arg0) { + const ret = getObject(arg0).scheduler; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_number_new = function(arg0) { + const ret = arg0; + return addHeapObject(ret); + }; + imports.wbg.__wbg_scheduler_17ddefe903880ee9 = function(arg0) { + const ret = getObject(arg0).scheduler; + return addHeapObject(ret); + }; + imports.wbg.__wbg_requestIdleCallback_9bfd571e975a139e = function(arg0) { + const ret = getObject(arg0).requestIdleCallback; + return addHeapObject(ret); + }; + imports.wbg.__wbg_postTask_3b1fc224045f93c3 = function(arg0, arg1, arg2) { + const ret = getObject(arg0).postTask(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_requestFullscreen_464e00f278f391d0 = function(arg0) { + const ret = getObject(arg0).requestFullscreen(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_requestFullscreen_18c871e7a7bfd42b = function(arg0) { + const ret = getObject(arg0).requestFullscreen; + return addHeapObject(ret); + }; + imports.wbg.__wbg_getCoalescedEvents_1c9cba9d0e01873e = function(arg0) { + const ret = getObject(arg0).getCoalescedEvents; + return addHeapObject(ret); + }; + imports.wbg.__wbg_onpointerrawupdate_c0be2feffdb2ac94 = function(arg0) { + const ret = getObject(arg0).onpointerrawupdate; + return addHeapObject(ret); + }; + imports.wbg.__wbg_cancel_fa35ed95c189ea56 = function(arg0) { + getObject(arg0).cancel(); + }; + imports.wbg.__wbg_webkitFullscreenElement_cabe19c376cf4403 = function(arg0) { + const ret = getObject(arg0).webkitFullscreenElement; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_webkitRequestFullscreen_bb18a0973fdf8b9c = function(arg0) { + getObject(arg0).webkitRequestFullscreen(); + }; + imports.wbg.__wbg_animate_f7fffac941aeddb4 = function(arg0, arg1, arg2) { + const ret = getObject(arg0).animate(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_play_bc50c5dac5900c24 = function(arg0) { + getObject(arg0).play(); + }; + imports.wbg.__wbg_instanceof_GpuValidationError_776dc042f9752ecb = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof GPUValidationError; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_message_e73620d927b54373 = function(arg0, arg1) { + const ret = getObject(arg1).message; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_instanceof_GpuOutOfMemoryError_3621d9e8ec05691e = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof GPUOutOfMemoryError; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_error_c4453561fa6c2209 = function(arg0) { + const ret = getObject(arg0).error; + return addHeapObject(ret); + }; + imports.wbg.__wbg_instanceof_GpuDeviceLostInfo_22f963b61044b3b1 = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof GPUDeviceLostInfo; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_reason_3af8e4afbe0efdd8 = function(arg0) { + const ret = getObject(arg0).reason; + return addHeapObject(ret); + }; + imports.wbg.__wbg_message_3bef8c43f84eab9c = function(arg0, arg1) { + const ret = getObject(arg1).message; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbindgen_string_get = function(arg0, arg1) { + const obj = getObject(arg1); + const ret = typeof(obj) === 'string' ? obj : undefined; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_has_1509b2ce6759dc2a = function(arg0, arg1, arg2) { + const ret = getObject(arg0).has(getStringFromWasm0(arg1, arg2)); + return ret; + }; + imports.wbg.__wbg_maxTextureDimension1D_ea59b0f0cc2e29cd = function(arg0) { + const ret = getObject(arg0).maxTextureDimension1D; + return ret; + }; + imports.wbg.__wbg_maxTextureDimension2D_00984ba245729ced = function(arg0) { + const ret = getObject(arg0).maxTextureDimension2D; + return ret; + }; + imports.wbg.__wbg_maxTextureDimension3D_95c3d3adb6d66ec5 = function(arg0) { + const ret = getObject(arg0).maxTextureDimension3D; + return ret; + }; + imports.wbg.__wbg_maxTextureArrayLayers_68f4a1218a54fa93 = function(arg0) { + const ret = getObject(arg0).maxTextureArrayLayers; + return ret; + }; + imports.wbg.__wbg_maxBindGroups_e76fb8650a4459d7 = function(arg0) { + const ret = getObject(arg0).maxBindGroups; + return ret; + }; + imports.wbg.__wbg_maxBindingsPerBindGroup_2af20f39aef3fd86 = function(arg0) { + const ret = getObject(arg0).maxBindingsPerBindGroup; + return ret; + }; + imports.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_074c891075b375b7 = function(arg0) { + const ret = getObject(arg0).maxDynamicUniformBuffersPerPipelineLayout; + return ret; + }; + imports.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_b91e3e6efb7b7a8c = function(arg0) { + const ret = getObject(arg0).maxDynamicStorageBuffersPerPipelineLayout; + return ret; + }; + imports.wbg.__wbg_maxSampledTexturesPerShaderStage_76354979d03a2b27 = function(arg0) { + const ret = getObject(arg0).maxSampledTexturesPerShaderStage; + return ret; + }; + imports.wbg.__wbg_maxSamplersPerShaderStage_fe8d223de90e5459 = function(arg0) { + const ret = getObject(arg0).maxSamplersPerShaderStage; + return ret; + }; + imports.wbg.__wbg_maxStorageBuffersPerShaderStage_bced69629145d26d = function(arg0) { + const ret = getObject(arg0).maxStorageBuffersPerShaderStage; + return ret; + }; + imports.wbg.__wbg_maxStorageTexturesPerShaderStage_fcf51f22620c0092 = function(arg0) { + const ret = getObject(arg0).maxStorageTexturesPerShaderStage; + return ret; + }; + imports.wbg.__wbg_maxUniformBuffersPerShaderStage_b3b013238400f0c0 = function(arg0) { + const ret = getObject(arg0).maxUniformBuffersPerShaderStage; + return ret; + }; + imports.wbg.__wbg_maxUniformBufferBindingSize_194fd7147cf2e95a = function(arg0) { + const ret = getObject(arg0).maxUniformBufferBindingSize; + return ret; + }; + imports.wbg.__wbg_maxStorageBufferBindingSize_78504383af63ac53 = function(arg0) { + const ret = getObject(arg0).maxStorageBufferBindingSize; + return ret; + }; + imports.wbg.__wbg_maxVertexBuffers_78c71ff19beac74b = function(arg0) { + const ret = getObject(arg0).maxVertexBuffers; + return ret; + }; + imports.wbg.__wbg_maxBufferSize_0c7ed57407582d40 = function(arg0) { + const ret = getObject(arg0).maxBufferSize; + return ret; + }; + imports.wbg.__wbg_maxVertexAttributes_c11cb018a9c5a224 = function(arg0) { + const ret = getObject(arg0).maxVertexAttributes; + return ret; + }; + imports.wbg.__wbg_maxVertexBufferArrayStride_c53560cc036cb477 = function(arg0) { + const ret = getObject(arg0).maxVertexBufferArrayStride; + return ret; + }; + imports.wbg.__wbg_minUniformBufferOffsetAlignment_4880e6786cb7ec5d = function(arg0) { + const ret = getObject(arg0).minUniformBufferOffsetAlignment; + return ret; + }; + imports.wbg.__wbg_minStorageBufferOffsetAlignment_9913f200aee2c749 = function(arg0) { + const ret = getObject(arg0).minStorageBufferOffsetAlignment; + return ret; + }; + imports.wbg.__wbg_maxInterStageShaderComponents_f9243ac86242eb18 = function(arg0) { + const ret = getObject(arg0).maxInterStageShaderComponents; + return ret; + }; + imports.wbg.__wbg_maxColorAttachments_d33b1d22c06a6fc5 = function(arg0) { + const ret = getObject(arg0).maxColorAttachments; + return ret; + }; + imports.wbg.__wbg_maxColorAttachmentBytesPerSample_637fd3ac394c14ee = function(arg0) { + const ret = getObject(arg0).maxColorAttachmentBytesPerSample; + return ret; + }; + imports.wbg.__wbg_maxComputeWorkgroupStorageSize_7e5bc378e5a62367 = function(arg0) { + const ret = getObject(arg0).maxComputeWorkgroupStorageSize; + return ret; + }; + imports.wbg.__wbg_maxComputeInvocationsPerWorkgroup_1ed5b24d52720f8a = function(arg0) { + const ret = getObject(arg0).maxComputeInvocationsPerWorkgroup; + return ret; + }; + imports.wbg.__wbg_maxComputeWorkgroupSizeX_56b713fb17f8c261 = function(arg0) { + const ret = getObject(arg0).maxComputeWorkgroupSizeX; + return ret; + }; + imports.wbg.__wbg_maxComputeWorkgroupSizeY_13040bdf12fd4e65 = function(arg0) { + const ret = getObject(arg0).maxComputeWorkgroupSizeY; + return ret; + }; + imports.wbg.__wbg_maxComputeWorkgroupSizeZ_8c8594730967472d = function(arg0) { + const ret = getObject(arg0).maxComputeWorkgroupSizeZ; + return ret; + }; + imports.wbg.__wbg_maxComputeWorkgroupsPerDimension_4094c8501eea36ce = function(arg0) { + const ret = getObject(arg0).maxComputeWorkgroupsPerDimension; + return ret; + }; + imports.wbg.__wbg_instanceof_GpuAdapter_32bc80c8c30adaa0 = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof GPUAdapter; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_queue_2bddd1700cb0bec2 = function(arg0) { + const ret = getObject(arg0).queue; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_is_object = function(arg0) { + const val = getObject(arg0); + const ret = typeof(val) === 'object' && val !== null; + return ret; + }; + imports.wbg.__wbg_instanceof_GpuCanvasContext_b3bff0de75efe6fd = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof GPUCanvasContext; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_getMappedRange_1216b00d6d7803de = function(arg0, arg1, arg2) { + const ret = getObject(arg0).getMappedRange(arg1, arg2); + return addHeapObject(ret); + }; + imports.wbg.__wbg_Window_94d759f1f207a15b = function(arg0) { + const ret = getObject(arg0).Window; + return addHeapObject(ret); + }; + imports.wbg.__wbg_WorkerGlobalScope_b13c8cef62388de9 = function(arg0) { + const ret = getObject(arg0).WorkerGlobalScope; + return addHeapObject(ret); + }; + imports.wbg.__wbg_gpu_1f3675e2d4aa88f4 = function(arg0) { + const ret = getObject(arg0).gpu; + return addHeapObject(ret); + }; + imports.wbg.__wbg_requestAdapter_e6f12701c7a38391 = function(arg0, arg1) { + const ret = getObject(arg0).requestAdapter(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_requestDevice_727ad8687b0d6553 = function(arg0, arg1) { + const ret = getObject(arg0).requestDevice(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_features_b56ebab8f515839e = function(arg0) { + const ret = getObject(arg0).features; + return addHeapObject(ret); + }; + imports.wbg.__wbg_limits_be2f592b5e154a3d = function(arg0) { + const ret = getObject(arg0).limits; + return addHeapObject(ret); + }; + imports.wbg.__wbg_getPreferredCanvasFormat_012ef9f3b0238ffa = function(arg0) { + const ret = getObject(arg0).getPreferredCanvasFormat(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_configure_6cde48f0c99a3497 = function(arg0, arg1) { + getObject(arg0).configure(getObject(arg1)); + }; + imports.wbg.__wbg_getCurrentTexture_95b5b88416fdb0c2 = function(arg0) { + const ret = getObject(arg0).getCurrentTexture(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_features_4991b2a28904a253 = function(arg0) { + const ret = getObject(arg0).features; + return addHeapObject(ret); + }; + imports.wbg.__wbg_limits_1aa8a49e0a8442cc = function(arg0) { + const ret = getObject(arg0).limits; + return addHeapObject(ret); + }; + imports.wbg.__wbg_createShaderModule_036b780a18124d9e = function(arg0, arg1) { + const ret = getObject(arg0).createShaderModule(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createBindGroupLayout_313b4151e718ff1f = function(arg0, arg1) { + const ret = getObject(arg0).createBindGroupLayout(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createBindGroup_2d6778f92445c8bf = function(arg0, arg1) { + const ret = getObject(arg0).createBindGroup(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createPipelineLayout_9134c6c32c505ec8 = function(arg0, arg1) { + const ret = getObject(arg0).createPipelineLayout(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createRenderPipeline_2bfc852ce09914fc = function(arg0, arg1) { + const ret = getObject(arg0).createRenderPipeline(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createComputePipeline_02674342979c6288 = function(arg0, arg1) { + const ret = getObject(arg0).createComputePipeline(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createBuffer_65c2fc555c46aa07 = function(arg0, arg1) { + const ret = getObject(arg0).createBuffer(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createTexture_5adbcf0db3fd41b4 = function(arg0, arg1) { + const ret = getObject(arg0).createTexture(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createSampler_942022241ecf4277 = function(arg0, arg1) { + const ret = getObject(arg0).createSampler(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createQuerySet_424dbf8130140914 = function(arg0, arg1) { + const ret = getObject(arg0).createQuerySet(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createCommandEncoder_1db1770ea9eab9af = function(arg0, arg1) { + const ret = getObject(arg0).createCommandEncoder(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_createRenderBundleEncoder_32896e68340fabc6 = function(arg0, arg1) { + const ret = getObject(arg0).createRenderBundleEncoder(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_destroy_4f7ed2bbb4742899 = function(arg0) { + getObject(arg0).destroy(); + }; + imports.wbg.__wbg_lost_42410660a8cd8819 = function(arg0) { + const ret = getObject(arg0).lost; + return addHeapObject(ret); + }; + imports.wbg.__wbg_setonuncapturederror_4e4946a65c61f3ef = function(arg0, arg1) { + getObject(arg0).onuncapturederror = getObject(arg1); + }; + imports.wbg.__wbg_pushErrorScope_a09c8b037ab27e15 = function(arg0, arg1) { + getObject(arg0).pushErrorScope(takeObject(arg1)); + }; + imports.wbg.__wbg_popErrorScope_f8f0d4b6d5c635f9 = function(arg0) { + const ret = getObject(arg0).popErrorScope(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_mapAsync_3b0a03a892fb22b3 = function(arg0, arg1, arg2, arg3) { + const ret = getObject(arg0).mapAsync(arg1 >>> 0, arg2, arg3); + return addHeapObject(ret); + }; + imports.wbg.__wbg_unmap_7a0dddee82ac6ed3 = function(arg0) { + getObject(arg0).unmap(); + }; + imports.wbg.__wbg_createView_0ab0576f1665c9ad = function(arg0, arg1) { + const ret = getObject(arg0).createView(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_destroy_199808599201ee27 = function(arg0) { + getObject(arg0).destroy(); + }; + imports.wbg.__wbg_destroy_57694ff5aabbf32d = function(arg0) { + getObject(arg0).destroy(); + }; + imports.wbg.__wbg_getBindGroupLayout_a0d36a72bd39bb04 = function(arg0, arg1) { + const ret = getObject(arg0).getBindGroupLayout(arg1 >>> 0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getBindGroupLayout_abc654a192f85d5e = function(arg0, arg1) { + const ret = getObject(arg0).getBindGroupLayout(arg1 >>> 0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_copyBufferToBuffer_667953bc6dccb6b4 = function(arg0, arg1, arg2, arg3, arg4, arg5) { + getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5); + }; + imports.wbg.__wbg_copyBufferToTexture_ca5b298687bed60a = function(arg0, arg1, arg2, arg3) { + getObject(arg0).copyBufferToTexture(getObject(arg1), getObject(arg2), getObject(arg3)); + }; + imports.wbg.__wbg_copyTextureToBuffer_cdf8118386295eb4 = function(arg0, arg1, arg2, arg3) { + getObject(arg0).copyTextureToBuffer(getObject(arg1), getObject(arg2), getObject(arg3)); + }; + imports.wbg.__wbg_copyTextureToTexture_67678f03fd20bd23 = function(arg0, arg1, arg2, arg3) { + getObject(arg0).copyTextureToTexture(getObject(arg1), getObject(arg2), getObject(arg3)); + }; + imports.wbg.__wbg_beginComputePass_a148b983810f6795 = function(arg0, arg1) { + const ret = getObject(arg0).beginComputePass(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_end_28d311f5d435aa6d = function(arg0) { + getObject(arg0).end(); + }; + imports.wbg.__wbg_beginRenderPass_0b83360fd99b5810 = function(arg0, arg1) { + const ret = getObject(arg0).beginRenderPass(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_end_e3cea1776c95d64f = function(arg0) { + getObject(arg0).end(); + }; + imports.wbg.__wbg_label_175c4f59b3eca611 = function(arg0, arg1) { + const ret = getObject(arg1).label; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_finish_d1d9eb9915c96a79 = function(arg0, arg1) { + const ret = getObject(arg0).finish(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_finish_ce7d5c15fce975aa = function(arg0) { + const ret = getObject(arg0).finish(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_clearBuffer_2cc723ab6b818737 = function(arg0, arg1, arg2) { + getObject(arg0).clearBuffer(getObject(arg1), arg2); + }; + imports.wbg.__wbg_clearBuffer_78a94a2eda97eb5a = function(arg0, arg1, arg2, arg3) { + getObject(arg0).clearBuffer(getObject(arg1), arg2, arg3); + }; + imports.wbg.__wbg_resolveQuerySet_22e31015a36a09d5 = function(arg0, arg1, arg2, arg3, arg4, arg5) { + getObject(arg0).resolveQuerySet(getObject(arg1), arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5 >>> 0); + }; + imports.wbg.__wbg_finish_2115db9e679c5aae = function(arg0) { + const ret = getObject(arg0).finish(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_finish_4a754149a60eddc0 = function(arg0, arg1) { + const ret = getObject(arg0).finish(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_writeBuffer_4245ce84e6d772c9 = function(arg0, arg1, arg2, arg3, arg4, arg5) { + getObject(arg0).writeBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5); + }; + imports.wbg.__wbg_usage_5e9a3548afbc3ebb = function(arg0) { + const ret = getObject(arg0).usage; + return ret; + }; + imports.wbg.__wbg_size_fc880d60ff425a47 = function(arg0) { + const ret = getObject(arg0).size; + return ret; + }; + imports.wbg.__wbg_writeTexture_686a8160c3c5ddbb = function(arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4)); + }; + imports.wbg.__wbg_copyExternalImageToTexture_87bdcc3260c6efba = function(arg0, arg1, arg2, arg3) { + getObject(arg0).copyExternalImageToTexture(getObject(arg1), getObject(arg2), getObject(arg3)); + }; + imports.wbg.__wbg_setPipeline_8630b264a9c4ec4b = function(arg0, arg1) { + getObject(arg0).setPipeline(getObject(arg1)); + }; + imports.wbg.__wbg_setBindGroup_17e73587d3c1be08 = function(arg0, arg1, arg2) { + getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2)); + }; + imports.wbg.__wbg_setBindGroup_5a450a0e97199c15 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { + getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0); + }; + imports.wbg.__wbg_dispatchWorkgroups_4bc133944e89d5e0 = function(arg0, arg1, arg2, arg3) { + getObject(arg0).dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0); + }; + imports.wbg.__wbg_dispatchWorkgroupsIndirect_8050acb60dd74a34 = function(arg0, arg1, arg2) { + getObject(arg0).dispatchWorkgroupsIndirect(getObject(arg1), arg2); + }; + imports.wbg.__wbg_setPipeline_a95b89d99620ba34 = function(arg0, arg1) { + getObject(arg0).setPipeline(getObject(arg1)); + }; + imports.wbg.__wbg_setBindGroup_58e27d4cd266f187 = function(arg0, arg1, arg2) { + getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2)); + }; + imports.wbg.__wbg_setBindGroup_f70bb0d0a5ace56d = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { + getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0); + }; + imports.wbg.__wbg_setIndexBuffer_747e1ba3f58d7227 = function(arg0, arg1, arg2, arg3) { + getObject(arg0).setIndexBuffer(getObject(arg1), takeObject(arg2), arg3); + }; + imports.wbg.__wbg_setIndexBuffer_3f1635c89f72d661 = function(arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).setIndexBuffer(getObject(arg1), takeObject(arg2), arg3, arg4); + }; + imports.wbg.__wbg_setVertexBuffer_94a88edbfb4b07f8 = function(arg0, arg1, arg2, arg3) { + getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3); + }; + imports.wbg.__wbg_setVertexBuffer_407067a9522118df = function(arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3, arg4); + }; + imports.wbg.__wbg_draw_60508d893ce4e012 = function(arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); + }; + imports.wbg.__wbg_drawIndexed_d5c5dff02437a4f0 = function(arg0, arg1, arg2, arg3, arg4, arg5) { + getObject(arg0).drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0); + }; + imports.wbg.__wbg_drawIndirect_54f93ae4ccc85358 = function(arg0, arg1, arg2) { + getObject(arg0).drawIndirect(getObject(arg1), arg2); + }; + imports.wbg.__wbg_drawIndexedIndirect_bf668464170261b3 = function(arg0, arg1, arg2) { + getObject(arg0).drawIndexedIndirect(getObject(arg1), arg2); + }; + imports.wbg.__wbg_setPipeline_d7c9c55035f118a6 = function(arg0, arg1) { + getObject(arg0).setPipeline(getObject(arg1)); + }; + imports.wbg.__wbg_setBindGroup_c6ab2e9583489b58 = function(arg0, arg1, arg2) { + getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2)); + }; + imports.wbg.__wbg_setBindGroup_0bf976b9657f99bd = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { + getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0); + }; + imports.wbg.__wbg_setIndexBuffer_ea39707d8842fe03 = function(arg0, arg1, arg2, arg3) { + getObject(arg0).setIndexBuffer(getObject(arg1), takeObject(arg2), arg3); + }; + imports.wbg.__wbg_setIndexBuffer_04ba4ea48c8f80be = function(arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).setIndexBuffer(getObject(arg1), takeObject(arg2), arg3, arg4); + }; + imports.wbg.__wbg_setVertexBuffer_907c60acf6dca161 = function(arg0, arg1, arg2, arg3) { + getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3); + }; + imports.wbg.__wbg_setVertexBuffer_9a336bb112a33317 = function(arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3, arg4); + }; + imports.wbg.__wbg_draw_540a514f996a5d0d = function(arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); + }; + imports.wbg.__wbg_drawIndexed_f717a07602ee2d18 = function(arg0, arg1, arg2, arg3, arg4, arg5) { + getObject(arg0).drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0); + }; + imports.wbg.__wbg_drawIndirect_c588ff54fb149aee = function(arg0, arg1, arg2) { + getObject(arg0).drawIndirect(getObject(arg1), arg2); + }; + imports.wbg.__wbg_drawIndexedIndirect_bb5585ec7f45d269 = function(arg0, arg1, arg2) { + getObject(arg0).drawIndexedIndirect(getObject(arg1), arg2); + }; + imports.wbg.__wbg_setBlendConstant_496a0b5cc772c236 = function(arg0, arg1) { + getObject(arg0).setBlendConstant(getObject(arg1)); + }; + imports.wbg.__wbg_setScissorRect_9b7e673d03036c37 = function(arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); + }; + imports.wbg.__wbg_setViewport_85d18ceefd5180eb = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { + getObject(arg0).setViewport(arg1, arg2, arg3, arg4, arg5, arg6); + }; + imports.wbg.__wbg_setStencilReference_b4b1f7e586967a4d = function(arg0, arg1) { + getObject(arg0).setStencilReference(arg1 >>> 0); + }; + imports.wbg.__wbg_executeBundles_16985086317c358a = function(arg0, arg1) { + getObject(arg0).executeBundles(getObject(arg1)); + }; + imports.wbg.__wbg_submit_afbd82b0d5056194 = function(arg0, arg1) { + getObject(arg0).submit(getObject(arg1)); + }; + imports.wbg.__wbg_instanceof_Window_f401953a2cf86220 = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof Window; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_document_5100775d18896c16 = function(arg0) { + const ret = getObject(arg0).document; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_navigator_6c8fa55c5cc8796e = function(arg0) { + const ret = getObject(arg0).navigator; + return addHeapObject(ret); + }; + imports.wbg.__wbg_devicePixelRatio_efc553b59506f64c = function(arg0) { + const ret = getObject(arg0).devicePixelRatio; + return ret; + }; + imports.wbg.__wbg_cancelIdleCallback_3a36cf77475b492b = function(arg0, arg1) { + getObject(arg0).cancelIdleCallback(arg1 >>> 0); + }; + imports.wbg.__wbg_getComputedStyle_078292ffe423aded = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg0).getComputedStyle(getObject(arg1)); + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_matchMedia_66bb21e3ef19270c = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).matchMedia(getStringFromWasm0(arg1, arg2)); + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_requestIdleCallback_cee8e1d6bdcfae9e = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg0).requestIdleCallback(getObject(arg1)); + return ret; + }, arguments) }; + imports.wbg.__wbg_cancelAnimationFrame_111532f326e480af = function() { return handleError(function (arg0, arg1) { + getObject(arg0).cancelAnimationFrame(arg1); + }, arguments) }; + imports.wbg.__wbg_requestAnimationFrame_549258cfa66011f0 = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg0).requestAnimationFrame(getObject(arg1)); + return ret; + }, arguments) }; + imports.wbg.__wbg_clearTimeout_ba63ae54a36e111e = function(arg0, arg1) { + getObject(arg0).clearTimeout(arg1); + }; + imports.wbg.__wbg_fetch_5aed618e85a9cc28 = function(arg0, arg1, arg2) { + const ret = getObject(arg0).fetch(getStringFromWasm0(arg1, arg2)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_setTimeout_d2b9a986d10a6182 = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg0).setTimeout(getObject(arg1)); + return ret; + }, arguments) }; + imports.wbg.__wbg_setTimeout_c172d5704ef82276 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).setTimeout(getObject(arg1), arg2); + return ret; + }, arguments) }; + imports.wbg.__wbg_body_edb1908d3ceff3a1 = function(arg0) { + const ret = getObject(arg0).body; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_visibilityState_990071edf70b1c55 = function(arg0) { + const ret = getObject(arg0).visibilityState; + return addHeapObject(ret); + }; + imports.wbg.__wbg_activeElement_fa7feca08f5028c0 = function(arg0) { + const ret = getObject(arg0).activeElement; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_fullscreenElement_1bef71098bd8dfde = function(arg0) { + const ret = getObject(arg0).fullscreenElement; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_createElement_8bae7856a4bb7411 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_getElementById_c369ff43f0db99cf = function(arg0, arg1, arg2) { + const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2)); + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_querySelectorAll_4e0fcdb64cda2cd5 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).querySelectorAll(getStringFromWasm0(arg1, arg2)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_setid_37bacc3f09f555aa = function(arg0, arg1, arg2) { + getObject(arg0).id = getStringFromWasm0(arg1, arg2); + }; + imports.wbg.__wbg_setAttribute_3c9f6c303b696daa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); + }, arguments) }; + imports.wbg.__wbg_setPointerCapture_0fdaad7a916c8486 = function() { return handleError(function (arg0, arg1) { + getObject(arg0).setPointerCapture(arg1); + }, arguments) }; + imports.wbg.__wbg_navigator_56803b85352a0575 = function(arg0) { + const ret = getObject(arg0).navigator; + return addHeapObject(ret); + }; + imports.wbg.__wbg_instanceof_HtmlElement_3bcc4ff70cfdcba5 = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof HTMLElement; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_style_c3fc3dd146182a2d = function(arg0) { + const ret = getObject(arg0).style; + return addHeapObject(ret); + }; + imports.wbg.__wbg_click_897b305b2e10b9cf = function(arg0) { + getObject(arg0).click(); + }; + imports.wbg.__wbg_focus_39d4b8ba8ff9df14 = function() { return handleError(function (arg0) { + getObject(arg0).focus(); + }, arguments) }; + imports.wbg.__wbg_debug_5fb96680aecf5dc8 = function(arg0) { + console.debug(getObject(arg0)); + }; + imports.wbg.__wbg_error_8e3928cfb8a43e2b = function(arg0) { + console.error(getObject(arg0)); + }; + imports.wbg.__wbg_error_6e987ee48d9fdf45 = function(arg0, arg1) { + console.error(getObject(arg0), getObject(arg1)); + }; + imports.wbg.__wbg_info_530a29cb2e4e3304 = function(arg0) { + console.info(getObject(arg0)); + }; + imports.wbg.__wbg_log_5bb5f88f245d7762 = function(arg0) { + console.log(getObject(arg0)); + }; + imports.wbg.__wbg_warn_63bbae1730aead09 = function(arg0) { + console.warn(getObject(arg0)); + }; + imports.wbg.__wbg_getPropertyValue_fa32ee1811f224cb = function() { return handleError(function (arg0, arg1, arg2, arg3) { + const ret = getObject(arg1).getPropertyValue(getStringFromWasm0(arg2, arg3)); + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }, arguments) }; + imports.wbg.__wbg_removeProperty_fa6d48e2923dcfac = function() { return handleError(function (arg0, arg1, arg2, arg3) { + const ret = getObject(arg1).removeProperty(getStringFromWasm0(arg2, arg3)); + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }, arguments) }; + imports.wbg.__wbg_setProperty_ea7d15a2b591aa97 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); + }, arguments) }; + imports.wbg.__wbg_media_bcef0e2ec4383569 = function(arg0, arg1) { + const ret = getObject(arg1).media; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_matches_e14ed9ff8291cf24 = function(arg0) { + const ret = getObject(arg0).matches; + return ret; + }; + imports.wbg.__wbg_addListener_143ad0a501fabc3a = function() { return handleError(function (arg0, arg1) { + getObject(arg0).addListener(getObject(arg1)); + }, arguments) }; + imports.wbg.__wbg_removeListener_46f3ee00c5b95320 = function() { return handleError(function (arg0, arg1) { + getObject(arg0).removeListener(getObject(arg1)); + }, arguments) }; + imports.wbg.__wbg_now_4e659b3d15f470d9 = function(arg0) { + const ret = getObject(arg0).now(); + return ret; + }; + imports.wbg.__wbg_width_1e8430024cb82aba = function(arg0) { + const ret = getObject(arg0).width; + return ret; + }; + imports.wbg.__wbg_height_0c1394f089d7bb71 = function(arg0) { + const ret = getObject(arg0).height; + return ret; + }; + imports.wbg.__wbg_port1_d51a1bd2c33125d0 = function(arg0) { + const ret = getObject(arg0).port1; + return addHeapObject(ret); + }; + imports.wbg.__wbg_port2_f522a81e92362e7e = function(arg0) { + const ret = getObject(arg0).port2; + return addHeapObject(ret); + }; + imports.wbg.__wbg_new_34615e164dc78975 = function() { return handleError(function () { + const ret = new MessageChannel(); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_inlineSize_ff0e40258cefeba2 = function(arg0) { + const ret = getObject(arg0).inlineSize; + return ret; + }; + imports.wbg.__wbg_blockSize_73f4e5608c08713d = function(arg0) { + const ret = getObject(arg0).blockSize; + return ret; + }; + imports.wbg.__wbg_revokeObjectURL_16a2051ee9d99da9 = function() { return handleError(function (arg0, arg1) { + URL.revokeObjectURL(getStringFromWasm0(arg0, arg1)); + }, arguments) }; + imports.wbg.__wbg_persisted_cbb7e3c657029516 = function(arg0) { + const ret = getObject(arg0).persisted; + return ret; + }; + imports.wbg.__wbg_contentRect_bce644376332c7a5 = function(arg0) { + const ret = getObject(arg0).contentRect; + return addHeapObject(ret); + }; + imports.wbg.__wbg_devicePixelContentBoxSize_d5bcdcd5e96671f3 = function(arg0) { + const ret = getObject(arg0).devicePixelContentBoxSize; + return addHeapObject(ret); + }; + imports.wbg.__wbg_instanceof_Response_849eb93e75734b6e = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof Response; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_arrayBuffer_29931d52c7206b02 = function() { return handleError(function (arg0) { + const ret = getObject(arg0).arrayBuffer(); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_setwidth_080107476e633963 = function(arg0, arg1) { + getObject(arg0).width = arg1 >>> 0; + }; + imports.wbg.__wbg_setheight_dc240617639f1f51 = function(arg0, arg1) { + getObject(arg0).height = arg1 >>> 0; + }; + imports.wbg.__wbg_getContext_df50fa48a8876636 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2)); + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_setwidth_83d936c4b04dcbec = function(arg0, arg1) { + getObject(arg0).width = arg1 >>> 0; + }; + imports.wbg.__wbg_setheight_6025ba0d58e6cc8c = function(arg0, arg1) { + getObject(arg0).height = arg1 >>> 0; + }; + imports.wbg.__wbg_getContext_c102f659d540d068 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2)); + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_new_61d4f20a1c08a45c = function() { return handleError(function (arg0) { + const ret = new ResizeObserver(getObject(arg0)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_disconnect_6675f32e2ae8deb7 = function(arg0) { + getObject(arg0).disconnect(); + }; + imports.wbg.__wbg_observe_a79646ce7bb08cb8 = function(arg0, arg1) { + getObject(arg0).observe(getObject(arg1)); + }; + imports.wbg.__wbg_observe_dc0ebcd59ee7cd17 = function(arg0, arg1, arg2) { + getObject(arg0).observe(getObject(arg1), getObject(arg2)); + }; + imports.wbg.__wbg_unobserve_55c93518cad6ac06 = function(arg0, arg1) { + getObject(arg0).unobserve(getObject(arg1)); + }; + imports.wbg.__wbg_addEventListener_53b787075bd5e003 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); + }, arguments) }; + imports.wbg.__wbg_removeEventListener_92cb9b3943463338 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); + }, arguments) }; + imports.wbg.__wbg_pointerId_e030fa156647fedd = function(arg0) { + const ret = getObject(arg0).pointerId; + return ret; + }; + imports.wbg.__wbg_pressure_99cd07399f942a7c = function(arg0) { + const ret = getObject(arg0).pressure; + return ret; + }; + imports.wbg.__wbg_pointerType_0f2f0383406aa7fa = function(arg0, arg1) { + const ret = getObject(arg1).pointerType; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_getCoalescedEvents_14b443b6f75837a2 = function(arg0) { + const ret = getObject(arg0).getCoalescedEvents(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_signal_a61f78a3478fd9bc = function(arg0) { + const ret = getObject(arg0).signal; + return addHeapObject(ret); + }; + imports.wbg.__wbg_new_0d76b0581eca6298 = function() { return handleError(function () { + const ret = new AbortController(); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_abort_2aa7521d5690750e = function(arg0) { + getObject(arg0).abort(); + }; + imports.wbg.__wbg_new_4e95a9abecc83cd4 = function() { return handleError(function (arg0) { + const ret = new IntersectionObserver(getObject(arg0)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_disconnect_e694940ce6d0ef91 = function(arg0) { + getObject(arg0).disconnect(); + }; + imports.wbg.__wbg_observe_538a6d1df0deb993 = function(arg0, arg1) { + getObject(arg0).observe(getObject(arg1)); + }; + imports.wbg.__wbg_settextContent_d271bab459cbb1ba = function(arg0, arg1, arg2) { + getObject(arg0).textContent = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2); + }; + imports.wbg.__wbg_appendChild_580ccb11a660db68 = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg0).appendChild(getObject(arg1)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_contains_fdfd1dc667f36695 = function(arg0, arg1) { + const ret = getObject(arg0).contains(getObject(arg1)); + return ret; + }; + imports.wbg.__wbg_get_8cd5eba00ab6304f = function(arg0, arg1) { + const ret = getObject(arg0)[arg1 >>> 0]; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_altKey_2e6c34c37088d8b1 = function(arg0) { + const ret = getObject(arg0).altKey; + return ret; + }; + imports.wbg.__wbg_ctrlKey_bb5b6fef87339703 = function(arg0) { + const ret = getObject(arg0).ctrlKey; + return ret; + }; + imports.wbg.__wbg_shiftKey_5911baf439ab232b = function(arg0) { + const ret = getObject(arg0).shiftKey; + return ret; + }; + imports.wbg.__wbg_metaKey_6bf4ae4e83a11278 = function(arg0) { + const ret = getObject(arg0).metaKey; + return ret; + }; + imports.wbg.__wbg_location_f7b033ddfc516739 = function(arg0) { + const ret = getObject(arg0).location; + return ret; + }; + imports.wbg.__wbg_repeat_f64b916c6eed0685 = function(arg0) { + const ret = getObject(arg0).repeat; + return ret; + }; + imports.wbg.__wbg_key_dccf9e8aa1315a8e = function(arg0, arg1) { + const ret = getObject(arg1).key; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_code_3b0c3912a2351163 = function(arg0, arg1) { + const ret = getObject(arg1).code; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_setonmessage_93bdba94dcd46c04 = function(arg0, arg1) { + getObject(arg0).onmessage = getObject(arg1); + }; + imports.wbg.__wbg_close_a5883ed21dc3d115 = function(arg0) { + getObject(arg0).close(); + }; + imports.wbg.__wbg_postMessage_fbddfe9314af804e = function() { return handleError(function (arg0, arg1) { + getObject(arg0).postMessage(getObject(arg1)); + }, arguments) }; + imports.wbg.__wbg_start_5a293222bc398f51 = function(arg0) { + getObject(arg0).start(); + }; + imports.wbg.__wbg_preventDefault_b1a4aafc79409429 = function(arg0) { + getObject(arg0).preventDefault(); + }; + imports.wbg.__wbg_isIntersecting_082397a1d66e2e35 = function(arg0) { + const ret = getObject(arg0).isIntersecting; + return ret; + }; + imports.wbg.__wbg_ctrlKey_008695ce60a588f5 = function(arg0) { + const ret = getObject(arg0).ctrlKey; + return ret; + }; + imports.wbg.__wbg_shiftKey_1e76dbfcdd36a4b4 = function(arg0) { + const ret = getObject(arg0).shiftKey; + return ret; + }; + imports.wbg.__wbg_altKey_07da841b54bd3ed6 = function(arg0) { + const ret = getObject(arg0).altKey; + return ret; + }; + imports.wbg.__wbg_metaKey_86bfd3b0d3a8083f = function(arg0) { + const ret = getObject(arg0).metaKey; + return ret; + }; + imports.wbg.__wbg_button_367cdc7303e3cf9b = function(arg0) { + const ret = getObject(arg0).button; + return ret; + }; + imports.wbg.__wbg_buttons_d004fa75ac704227 = function(arg0) { + const ret = getObject(arg0).buttons; + return ret; + }; + imports.wbg.__wbg_movementX_b800a0cacd14d9bf = function(arg0) { + const ret = getObject(arg0).movementX; + return ret; + }; + imports.wbg.__wbg_movementY_7907e03eb8c0ea1e = function(arg0) { + const ret = getObject(arg0).movementY; + return ret; + }; + imports.wbg.__wbg_deltaX_206576827ededbe5 = function(arg0) { + const ret = getObject(arg0).deltaX; + return ret; + }; + imports.wbg.__wbg_deltaY_032e327e216f2b2b = function(arg0) { + const ret = getObject(arg0).deltaY; + return ret; + }; + imports.wbg.__wbg_deltaMode_294b2eaf54047265 = function(arg0) { + const ret = getObject(arg0).deltaMode; + return ret; + }; + imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) { + queueMicrotask(getObject(arg0)); + }; + imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) { + const ret = getObject(arg0).queueMicrotask; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_is_function = function(arg0) { + const ret = typeof(getObject(arg0)) === 'function'; + return ret; + }; + imports.wbg.__wbg_performance_a1b8bde2ee512264 = function(arg0) { + const ret = getObject(arg0).performance; + return addHeapObject(ret); + }; + imports.wbg.__wbg_now_abd80e969af37148 = function(arg0) { + const ret = getObject(arg0).now(); + return ret; + }; + imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) { + const ret = getObject(arg0).crypto; + return addHeapObject(ret); + }; + imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) { + const ret = getObject(arg0).process; + return addHeapObject(ret); + }; + imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) { + const ret = getObject(arg0).versions; + return addHeapObject(ret); + }; + imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) { + const ret = getObject(arg0).node; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_is_string = function(arg0) { + const ret = typeof(getObject(arg0)) === 'string'; + return ret; + }; + imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () { + const ret = module.require; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) { + const ret = getObject(arg0).msCrypto; + return addHeapObject(ret); + }; + imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) { + getObject(arg0).randomFillSync(takeObject(arg1)); + }, arguments) }; + imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) { + getObject(arg0).getRandomValues(getObject(arg1)); + }, arguments) }; + imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) { + const ret = getObject(arg0)[arg1 >>> 0]; + return addHeapObject(ret); + }; + imports.wbg.__wbg_length_cd7af8117672b8b8 = function(arg0) { + const ret = getObject(arg0).length; + return ret; + }; + imports.wbg.__wbg_new_16b304a2cfa7ff4a = function() { + const ret = new Array(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) { + const ret = new Function(getStringFromWasm0(arg0, arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) { + const ret = Reflect.get(getObject(arg0), getObject(arg1)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg0).call(getObject(arg1)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() { + const ret = new Object(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () { + const ret = self.self; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () { + const ret = window.window; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () { + const ret = globalThis.globalThis; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_global_207b558942527489 = function() { return handleError(function () { + const ret = global.global; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_push_a5b05aedc7234f9f = function(arg0, arg1) { + const ret = getObject(arg0).push(getObject(arg1)); + return ret; + }; + imports.wbg.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_instanceof_Object_71ca3c0a59266746 = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof Object; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_getOwnPropertyDescriptor_fcb32c9a1f90b136 = function(arg0, arg1) { + const ret = Object.getOwnPropertyDescriptor(getObject(arg0), getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_is_010fdc0f4ab96916 = function(arg0, arg1) { + const ret = Object.is(getObject(arg0), getObject(arg1)); + return ret; + }; + imports.wbg.__wbg_valueOf_a0b7c836f68a054b = function(arg0) { + const ret = getObject(arg0).valueOf(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_new_81740750da40724f = function(arg0, arg1) { + try { + var state0 = {a: arg0, b: arg1}; + var cb0 = (arg0, arg1) => { + const a = state0.a; + state0.a = 0; + try { + return __wbg_adapter_626(a, state0.b, arg0, arg1); + } finally { + state0.a = a; + } + }; + const ret = new Promise(cb0); + return addHeapObject(ret); + } finally { + state0.a = state0.b = 0; + } + }; + imports.wbg.__wbg_resolve_b0083a7967828ec8 = function(arg0) { + const ret = Promise.resolve(getObject(arg0)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_catch_0260e338d10f79ae = function(arg0, arg1) { + const ret = getObject(arg0).catch(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_then_0c86a60e8fcfe9f6 = function(arg0, arg1) { + const ret = getObject(arg0).then(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_then_a73caa9a87991566 = function(arg0, arg1, arg2) { + const ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) { + const ret = getObject(arg0).buffer; + return addHeapObject(ret); + }; + imports.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(arg0, arg1, arg2) { + const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) { + const ret = new Uint8Array(getObject(arg0)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) { + getObject(arg0).set(getObject(arg1), arg2 >>> 0); + }; + imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) { + const ret = getObject(arg0).length; + return ret; + }; + imports.wbg.__wbg_newwithlength_e9b4878cebadb3d3 = function(arg0) { + const ret = new Uint8Array(arg0 >>> 0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_buffer_dd7f74bc60f1faab = function(arg0) { + const ret = getObject(arg0).buffer; + return addHeapObject(ret); + }; + imports.wbg.__wbg_subarray_a1f73cd4b5b42fe1 = function(arg0, arg1, arg2) { + const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_set_1f9b04f170055d33 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2)); + return ret; + }, arguments) }; + imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { + const ret = debugString(getObject(arg1)); + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbindgen_throw = function(arg0, arg1) { + throw new Error(getStringFromWasm0(arg0, arg1)); + }; + imports.wbg.__wbindgen_memory = function() { + const ret = wasm.memory; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4135 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_28); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4136 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_28); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4137 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_28); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4138 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_28); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4139 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_37); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4140 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_28); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4141 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_28); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4142 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_28); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4143 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_28); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4144 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_48); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4969 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2874, __wbg_adapter_51); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper4971 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 2874, __wbg_adapter_51); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper6502 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 3086, __wbg_adapter_56); + return addHeapObject(ret); + }; + + return imports; +} + +function __wbg_init_memory(imports, maybe_memory) { + +} + +function __wbg_finalize_init(instance, module) { + wasm = instance.exports; + __wbg_init.__wbindgen_wasm_module = module; + cachedInt32Memory0 = null; + cachedUint32Memory0 = null; + cachedUint8Memory0 = null; + + + return wasm; +} + +function initSync(module) { + if (wasm !== undefined) return wasm; + + const imports = __wbg_get_imports(); + + __wbg_init_memory(imports); + + if (!(module instanceof WebAssembly.Module)) { + module = new WebAssembly.Module(module); + } + + const instance = new WebAssembly.Instance(module, imports); + + return __wbg_finalize_init(instance, module); +} + +async function __wbg_init(input) { + if (wasm !== undefined) return wasm; + + if (typeof input === 'undefined') { + input = new URL('castle_sim_bg.wasm', import.meta.url); + } + const imports = __wbg_get_imports(); + + if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) { + input = fetch(input); + } + + __wbg_init_memory(imports); + + const { instance, module } = await __wbg_load(await input, imports); + + return __wbg_finalize_init(instance, module); +} + +export { initSync } +export default __wbg_init;