text: 
  let wasm;
  
  const heap = new Array(32).fill(undefined);
  
  heap.push(undefined, null, true, false);
  
  function getObject(idx) { return heap[idx]; }
  
  let heap_next = heap.length;
  
  function dropObject(idx) {
      if (idx < 36) return;
      heap[idx] = heap_next;
      heap_next = idx;
  }
  
  function takeObject(idx) {
      const ret = getObject(idx);
      dropObject(idx);
      return ret;
  }
  
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
  
  cachedTextDecoder.decode();
  
  let cachegetUint8Memory0 = null;
  function getUint8Memory0() {
      if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
          cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
      }
      return cachegetUint8Memory0;
  }
  
  function getStringFromWasm0(ptr, len) {
      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;
  }
  
  function isLikeNone(x) {
      return x === undefined || x === null;
  }
  
  let cachegetFloat64Memory0 = null;
  function getFloat64Memory0() {
      if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
          cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
      }
      return cachegetFloat64Memory0;
  }
  
  let cachegetInt32Memory0 = null;
  function getInt32Memory0() {
      if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
          cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
      }
      return cachegetInt32Memory0;
  }
  
  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;
  }
  
  let WASM_VECTOR_LEN = 0;
  
  let cachedTextEncoder = new TextEncoder('utf-8');
  
  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);
          getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
          WASM_VECTOR_LEN = buf.length;
          return ptr;
      }
  
      let len = arg.length;
      let ptr = malloc(len);
  
      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);
          const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
          const ret = encodeString(arg, view);
  
          offset += ret.written;
      }
  
      WASM_VECTOR_LEN = offset;
      return ptr;
  }
  
  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);
  
              } else {
                  state.a = a;
              }
          }
      };
      real.original = state;
  
      return real;
  }
  function __wbg_adapter_22(arg0, arg1, arg2) {
      wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19c3820245868ae3(arg0, arg1, addHeapObject(arg2));
  }
  
  function __wbg_adapter_25(arg0, arg1, arg2) {
      wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19c3820245868ae3(arg0, arg1, addHeapObject(arg2));
  }
  
  function __wbg_adapter_28(arg0, arg1, arg2) {
      wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19c3820245868ae3(arg0, arg1, addHeapObject(arg2));
  }
  
  function __wbg_adapter_31(arg0, arg1, arg2) {
      wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19c3820245868ae3(arg0, arg1, addHeapObject(arg2));
  }
  
  function __wbg_adapter_34(arg0, arg1) {
      wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he88de19e95145933(arg0, arg1);
  }
  
  function __wbg_adapter_37(arg0, arg1, arg2) {
      wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19c3820245868ae3(arg0, arg1, addHeapObject(arg2));
  }
  
  function __wbg_adapter_40(arg0, arg1, arg2) {
      wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19c3820245868ae3(arg0, arg1, addHeapObject(arg2));
  }
  
  function __wbg_adapter_43(arg0, arg1, arg2) {
      wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19c3820245868ae3(arg0, arg1, addHeapObject(arg2));
  }
  
  function __wbg_adapter_46(arg0, arg1, arg2) {
      wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19c3820245868ae3(arg0, arg1, addHeapObject(arg2));
  }
  
  function __wbg_adapter_49(arg0, arg1, arg2) {
      wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hade0734da49324b4(arg0, arg1, addHeapObject(arg2));
  }
  
  /**
  * @returns {Promise<void>}
  */
  export function start() {
      wasm.start();
  }
  
  function handleError(f, args) {
      try {
          return f.apply(this, args);
      } catch (e) {
          wasm.__wbindgen_exn_store(addHeapObject(e));
      }
  }
  
  let cachegetUint32Memory0 = null;
  function getUint32Memory0() {
      if (cachegetUint32Memory0 === null || cachegetUint32Memory0.buffer !== wasm.memory.buffer) {
          cachegetUint32Memory0 = new Uint32Array(wasm.memory.buffer);
      }
      return cachegetUint32Memory0;
  }
  
  function getArrayU32FromWasm0(ptr, len) {
      return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
  }
  
  function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
  
  async function 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;
          }
      }
  }
  
  async function init(input) {
      if (typeof input === 'undefined') {
          input = new URL('ecs_rust_web_example_webgpu_boxes_bg.wasm', import.meta.url);
      }
      const imports = {};
      imports.wbg = {};
      imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
          takeObject(arg0);
      };
      imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
          var ret = getStringFromWasm0(arg0, arg1);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
          var ret = getObject(arg0);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
          const obj = getObject(arg1);
          var ret = typeof(obj) === 'number' ? obj : undefined;
          getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
          getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
      };
      imports.wbg.__wbindgen_cb_drop = function(arg0) {
          const obj = takeObject(arg0).original;
          if (obj.cnt-- == 1) {
              obj.a = 0;
              return true;
          }
          var ret = false;
          return ret;
      };
      imports.wbg.__wbg_new_693216e109162396 = function() {
          var ret = new Error();
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
          var ret = getObject(arg1).stack;
          var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
          var len0 = WASM_VECTOR_LEN;
          getInt32Memory0()[arg0 / 4 + 1] = len0;
          getInt32Memory0()[arg0 / 4 + 0] = ptr0;
      };
      imports.wbg.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
          try {
              console.error(getStringFromWasm0(arg0, arg1));
          } finally {
              wasm.__wbindgen_free(arg0, arg1);
          }
      };
      imports.wbg.__wbindgen_number_new = function(arg0) {
          var ret = arg0;
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_instanceof_Window_c4b70662a0d2c5ec = function(arg0) {
          var ret = getObject(arg0) instanceof Window;
          return ret;
      };
      imports.wbg.__wbg_document_1c64944725c0d81d = function(arg0) {
          var ret = getObject(arg0).document;
          return isLikeNone(ret) ? 0 : addHeapObject(ret);
      };
      imports.wbg.__wbg_navigator_480e592af6ad365b = function(arg0) {
          var ret = getObject(arg0).navigator;
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_innerWidth_ef25c730fca132cf = function() { return handleError(function (arg0) {
          var ret = getObject(arg0).innerWidth;
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_innerHeight_1b1217a63a77bf61 = function() { return handleError(function (arg0) {
          var ret = getObject(arg0).innerHeight;
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_devicePixelRatio_d8c3852bb37f76bf = function(arg0) {
          var ret = getObject(arg0).devicePixelRatio;
          return ret;
      };
      imports.wbg.__wbg_cancelAnimationFrame_5f2a1e987a6de100 = function() { return handleError(function (arg0, arg1) {
          getObject(arg0).cancelAnimationFrame(arg1);
      }, arguments) };
      imports.wbg.__wbg_matchMedia_b95c474c6db67a60 = function() { return handleError(function (arg0, arg1, arg2) {
          var ret = getObject(arg0).matchMedia(getStringFromWasm0(arg1, arg2));
          return isLikeNone(ret) ? 0 : addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_requestAnimationFrame_71638ca922068239 = function() { return handleError(function (arg0, arg1) {
          var ret = getObject(arg0).requestAnimationFrame(getObject(arg1));
          return ret;
      }, arguments) };
      imports.wbg.__wbg_get_001a5e5e0ebf9911 = function(arg0, arg1, arg2) {
          var ret = getObject(arg0)[getStringFromWasm0(arg1, arg2)];
          return isLikeNone(ret) ? 0 : addHeapObject(ret);
      };
      imports.wbg.__wbg_clearTimeout_2c1ba0016d8bca41 = function(arg0, arg1) {
          getObject(arg0).clearTimeout(arg1);
      };
      imports.wbg.__wbg_setTimeout_df66d951b1726b78 = function() { return handleError(function (arg0, arg1, arg2) {
          var ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
          return ret;
      }, arguments) };
      imports.wbg.__wbg_label_1faadee62e787d90 = function(arg0, arg1) {
          var ret = getObject(arg1).label;
          var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
          var len0 = WASM_VECTOR_LEN;
          getInt32Memory0()[arg0 / 4 + 1] = len0;
          getInt32Memory0()[arg0 / 4 + 0] = ptr0;
      };
      imports.wbg.__wbg_beginRenderPass_edc7408e114dba14 = function(arg0, arg1) {
          var ret = getObject(arg0).beginRenderPass(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_finish_d4f9c5bbc890722e = function(arg0) {
          var ret = getObject(arg0).finish();
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_finish_1ef6fa1d9fce45bf = function(arg0, arg1) {
          var ret = getObject(arg0).finish(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_width_555f63ab09ba7d3f = function(arg0) {
          var ret = getObject(arg0).width;
          return ret;
      };
      imports.wbg.__wbg_setwidth_c1a7061891b71f25 = function(arg0, arg1) {
          getObject(arg0).width = arg1 >>> 0;
      };
      imports.wbg.__wbg_height_7153faec70fbaf7b = function(arg0) {
          var ret = getObject(arg0).height;
          return ret;
      };
      imports.wbg.__wbg_setheight_88894b05710ff752 = function(arg0, arg1) {
          getObject(arg0).height = arg1 >>> 0;
      };
      imports.wbg.__wbg_getContext_f701d0231ae22393 = function() { return handleError(function (arg0, arg1, arg2) {
          var ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
          return isLikeNone(ret) ? 0 : addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_target_cc69dde6c2d9ec90 = function(arg0) {
          var ret = getObject(arg0).target;
          return isLikeNone(ret) ? 0 : addHeapObject(ret);
      };
      imports.wbg.__wbg_cancelBubble_f67c419013823f11 = function(arg0) {
          var ret = getObject(arg0).cancelBubble;
          return ret;
      };
      imports.wbg.__wbg_preventDefault_9866c9fd51eecfb6 = function(arg0) {
          getObject(arg0).preventDefault();
      };
      imports.wbg.__wbg_stopPropagation_ae76be6b0f664ee8 = function(arg0) {
          getObject(arg0).stopPropagation();
      };
      imports.wbg.__wbg_addEventListener_52721772cc0a7f30 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
          getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
      }, arguments) };
      imports.wbg.__wbg_addEventListener_09e11fbf8b4b719b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
          getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
      }, arguments) };
      imports.wbg.__wbg_removeEventListener_f2adc9b2b318de99 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
          getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
      }, arguments) };
      imports.wbg.__wbg_charCode_94907480ee48e8d5 = function(arg0) {
          var ret = getObject(arg0).charCode;
          return ret;
      };
      imports.wbg.__wbg_keyCode_490ed69472addfdc = function(arg0) {
          var ret = getObject(arg0).keyCode;
          return ret;
      };
      imports.wbg.__wbg_altKey_3dcb50d5afbc5036 = function(arg0) {
          var ret = getObject(arg0).altKey;
          return ret;
      };
      imports.wbg.__wbg_ctrlKey_fb62ba10b63b34a4 = function(arg0) {
          var ret = getObject(arg0).ctrlKey;
          return ret;
      };
      imports.wbg.__wbg_shiftKey_bd2875540e5db840 = function(arg0) {
          var ret = getObject(arg0).shiftKey;
          return ret;
      };
      imports.wbg.__wbg_metaKey_94ca09e07f21f240 = function(arg0) {
          var ret = getObject(arg0).metaKey;
          return ret;
      };
      imports.wbg.__wbg_key_10dcaa4bb6d5449f = function(arg0, arg1) {
          var ret = getObject(arg1).key;
          var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
          var len0 = WASM_VECTOR_LEN;
          getInt32Memory0()[arg0 / 4 + 1] = len0;
          getInt32Memory0()[arg0 / 4 + 0] = ptr0;
      };
      imports.wbg.__wbg_code_1c2fd251f38b398a = function(arg0, arg1) {
          var ret = getObject(arg1).code;
          var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
          var len0 = WASM_VECTOR_LEN;
          getInt32Memory0()[arg0 / 4 + 1] = len0;
          getInt32Memory0()[arg0 / 4 + 0] = ptr0;
      };
      imports.wbg.__wbg_getModifierState_a3918fd0a6fed13b = function(arg0, arg1, arg2) {
          var ret = getObject(arg0).getModifierState(getStringFromWasm0(arg1, arg2));
          return ret;
      };
      imports.wbg.__wbg_get_3bae69d3ceb47cc3 = function(arg0, arg1) {
          var ret = getObject(arg0)[arg1 >>> 0];
          return isLikeNone(ret) ? 0 : addHeapObject(ret);
      };
      imports.wbg.__wbg_appendChild_d318db34c4559916 = function() { return handleError(function (arg0, arg1) {
          var ret = getObject(arg0).appendChild(getObject(arg1));
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_x_fbafdccc547c9d4b = function(arg0) {
          var ret = getObject(arg0).x;
          return ret;
      };
      imports.wbg.__wbg_y_6f4ed3bbef2ef02d = function(arg0) {
          var ret = getObject(arg0).y;
          return ret;
      };
      imports.wbg.__wbg_matches_76fae292b8cd60a6 = function(arg0) {
          var ret = getObject(arg0).matches;
          return ret;
      };
      imports.wbg.__wbg_addListener_c86b1137b8521593 = function() { return handleError(function (arg0, arg1) {
          getObject(arg0).addListener(getObject(arg1));
      }, arguments) };
      imports.wbg.__wbg_removeListener_c880bdb0d8286afd = function() { return handleError(function (arg0, arg1) {
          getObject(arg0).removeListener(getObject(arg1));
      }, arguments) };
      imports.wbg.__wbg_gpu_c75610e8028c0f1d = function(arg0) {
          var ret = getObject(arg0).gpu;
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_endPass_d29bb4449fa885a0 = function(arg0) {
          getObject(arg0).endPass();
      };
      imports.wbg.__wbg_setBindGroup_f62eec4fa460ad93 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
          getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
      };
      imports.wbg.__wbg_draw_fc9c6874304c05f1 = function(arg0, arg1, arg2, arg3, arg4) {
          getObject(arg0).draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
      };
      imports.wbg.__wbg_drawIndexed_0e83b5853a27a162 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
          getObject(arg0).drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
      };
      imports.wbg.__wbg_setIndexBuffer_b07c46f16b90a321 = function(arg0, arg1, arg2, arg3, arg4) {
          getObject(arg0).setIndexBuffer(getObject(arg1), takeObject(arg2), arg3, arg4);
      };
      imports.wbg.__wbg_setPipeline_2a966888f05946b1 = function(arg0, arg1) {
          getObject(arg0).setPipeline(getObject(arg1));
      };
      imports.wbg.__wbg_setVertexBuffer_f1d371e2c02aca63 = function(arg0, arg1, arg2, arg3, arg4) {
          getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3, arg4);
      };
      imports.wbg.__wbg_setProperty_1460c660bc329763 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
          getObject(arg0).setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
      }, arguments) };
      imports.wbg.__wbg_requestAdapter_7e3eeec455b1dacf = function(arg0, arg1) {
          var ret = getObject(arg0).requestAdapter(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_instanceof_GpuAdapter_805119f46d27f85e = function(arg0) {
          var ret = getObject(arg0) instanceof GPUAdapter;
          return ret;
      };
      imports.wbg.__wbg_limits_a149bd1ae7e8d9ad = function(arg0) {
          var ret = getObject(arg0).limits;
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_requestDevice_4b8bbcb0e4c9f923 = function(arg0, arg1) {
          var ret = getObject(arg0).requestDevice(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_submit_63bc0d270b23a1a1 = function(arg0, arg1) {
          getObject(arg0).submit(getObject(arg1));
      };
      imports.wbg.__wbg_writeBuffer_e85d1fbacf845159 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
          getObject(arg0).writeBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
      };
      imports.wbg.__wbg_writeTexture_52fbda935520cee9 = function(arg0, arg1, arg2, arg3, arg4) {
          getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
      };
      imports.wbg.__wbg_clientX_97ff0f5c7b19e687 = function(arg0) {
          var ret = getObject(arg0).clientX;
          return ret;
      };
      imports.wbg.__wbg_clientY_cacd4a7e44b9719b = function(arg0) {
          var ret = getObject(arg0).clientY;
          return ret;
      };
      imports.wbg.__wbg_offsetX_5da3ebf8a8cda8a4 = function(arg0) {
          var ret = getObject(arg0).offsetX;
          return ret;
      };
      imports.wbg.__wbg_offsetY_b0edbc16723a55cb = function(arg0) {
          var ret = getObject(arg0).offsetY;
          return ret;
      };
      imports.wbg.__wbg_ctrlKey_9761d22fa42f09c0 = function(arg0) {
          var ret = getObject(arg0).ctrlKey;
          return ret;
      };
      imports.wbg.__wbg_shiftKey_78ee0fc1aa572c2e = function(arg0) {
          var ret = getObject(arg0).shiftKey;
          return ret;
      };
      imports.wbg.__wbg_altKey_8936038d973c56db = function(arg0) {
          var ret = getObject(arg0).altKey;
          return ret;
      };
      imports.wbg.__wbg_metaKey_e6b9e0aa35aa2974 = function(arg0) {
          var ret = getObject(arg0).metaKey;
          return ret;
      };
      imports.wbg.__wbg_button_a02c0467d38e8338 = function(arg0) {
          var ret = getObject(arg0).button;
          return ret;
      };
      imports.wbg.__wbg_buttons_9d7b6c334f0b37de = function(arg0) {
          var ret = getObject(arg0).buttons;
          return ret;
      };
      imports.wbg.__wbg_movementX_06830b9b9e6b695e = function(arg0) {
          var ret = getObject(arg0).movementX;
          return ret;
      };
      imports.wbg.__wbg_movementY_3e85d197fec41957 = function(arg0) {
          var ret = getObject(arg0).movementY;
          return ret;
      };
      imports.wbg.__wbg_body_78ae4fd43b446013 = function(arg0) {
          var ret = getObject(arg0).body;
          return isLikeNone(ret) ? 0 : addHeapObject(ret);
      };
      imports.wbg.__wbg_fullscreenElement_9c65b876dfef97a7 = function(arg0) {
          var ret = getObject(arg0).fullscreenElement;
          return isLikeNone(ret) ? 0 : addHeapObject(ret);
      };
      imports.wbg.__wbg_createElement_86c152812a141a62 = function() { return handleError(function (arg0, arg1, arg2) {
          var ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2));
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_querySelectorAll_7f26183d7dfc576e = function() { return handleError(function (arg0, arg1, arg2) {
          var ret = getObject(arg0).querySelectorAll(getStringFromWasm0(arg1, arg2));
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_getBoundingClientRect_2fba0402ea2a6ec4 = function(arg0) {
          var ret = getObject(arg0).getBoundingClientRect();
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_requestFullscreen_03c1aaf2b58db6cb = function() { return handleError(function (arg0) {
          getObject(arg0).requestFullscreen();
      }, arguments) };
      imports.wbg.__wbg_setAttribute_1b533bf07966de55 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
          getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
      }, arguments) };
      imports.wbg.__wbg_setPointerCapture_bd3244d9f008798f = function() { return handleError(function (arg0, arg1) {
          getObject(arg0).setPointerCapture(arg1);
      }, arguments) };
      imports.wbg.__wbg_configure_d0e7ecc3ca69d9ec = function(arg0, arg1) {
          getObject(arg0).configure(getObject(arg1));
      };
      imports.wbg.__wbg_getCurrentTexture_668469dcb84cf149 = function(arg0) {
          var ret = getObject(arg0).getCurrentTexture();
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_queue_ea40b4361b0e9500 = function(arg0) {
          var ret = getObject(arg0).queue;
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_createBindGroup_d2823f24d47c0120 = function(arg0, arg1) {
          var ret = getObject(arg0).createBindGroup(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_createBindGroupLayout_5d8252afb2226afa = function(arg0, arg1) {
          var ret = getObject(arg0).createBindGroupLayout(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_createBuffer_0d9204bf8cfae5c1 = function(arg0, arg1) {
          var ret = getObject(arg0).createBuffer(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_createCommandEncoder_fb495e19c2fed9ee = function(arg0, arg1) {
          var ret = getObject(arg0).createCommandEncoder(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_createPipelineLayout_171b5650b232fc90 = function(arg0, arg1) {
          var ret = getObject(arg0).createPipelineLayout(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_createRenderPipeline_1948cf8cc7fef748 = function(arg0, arg1) {
          var ret = getObject(arg0).createRenderPipeline(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_createSampler_87a3fa16b1bfe820 = function(arg0, arg1) {
          var ret = getObject(arg0).createSampler(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_createShaderModule_420cb2836fafff99 = function(arg0, arg1) {
          var ret = getObject(arg0).createShaderModule(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_createTexture_a066c5777bda5027 = function(arg0, arg1) {
          var ret = getObject(arg0).createTexture(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_createView_fd2c0718d7beecf8 = function(arg0, arg1) {
          var ret = getObject(arg0).createView(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_destroy_328bdb06cc72d7ed = function(arg0) {
          getObject(arg0).destroy();
      };
      imports.wbg.__wbg_deltaX_8cfc6cd15e97d97c = function(arg0) {
          var ret = getObject(arg0).deltaX;
          return ret;
      };
      imports.wbg.__wbg_deltaY_080604c20160c0e8 = function(arg0) {
          var ret = getObject(arg0).deltaY;
          return ret;
      };
      imports.wbg.__wbg_deltaMode_c5ec1ee518ea0a08 = function(arg0) {
          var ret = getObject(arg0).deltaMode;
          return ret;
      };
      imports.wbg.__wbg_debug_675b0ecb65722d2a = function(arg0) {
          console.debug(getObject(arg0));
      };
      imports.wbg.__wbg_error_cc38ce2b4b661e1d = function(arg0) {
          console.error(getObject(arg0));
      };
      imports.wbg.__wbg_error_a8f9d6c85b89d485 = function(arg0, arg1) {
          console.error(getObject(arg0), getObject(arg1));
      };
      imports.wbg.__wbg_info_e0c9813e6fd3bdc1 = function(arg0) {
          console.info(getObject(arg0));
      };
      imports.wbg.__wbg_log_3445347661d4505e = function(arg0) {
          console.log(getObject(arg0));
      };
      imports.wbg.__wbg_warn_5ec7c7c02d0b3841 = function(arg0) {
          console.warn(getObject(arg0));
      };
      imports.wbg.__wbg_style_c88e323890d3a091 = function(arg0) {
          var ret = getObject(arg0).style;
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_getMappedRange_b7e0584a925b70f2 = function(arg0, arg1, arg2) {
          var ret = getObject(arg0).getMappedRange(arg1, arg2);
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_unmap_c1d380622582211c = function(arg0) {
          getObject(arg0).unmap();
      };
      imports.wbg.__wbg_maxTextureDimension1D_50e265bb63416b08 = function(arg0) {
          var ret = getObject(arg0).maxTextureDimension1D;
          return ret;
      };
      imports.wbg.__wbg_maxTextureDimension2D_2351b706b28f85d1 = function(arg0) {
          var ret = getObject(arg0).maxTextureDimension2D;
          return ret;
      };
      imports.wbg.__wbg_maxTextureDimension3D_a19add45def74060 = function(arg0) {
          var ret = getObject(arg0).maxTextureDimension3D;
          return ret;
      };
      imports.wbg.__wbg_maxTextureArrayLayers_162e3b03a5b5b440 = function(arg0) {
          var ret = getObject(arg0).maxTextureArrayLayers;
          return ret;
      };
      imports.wbg.__wbg_maxBindGroups_edba923911cb5f55 = function(arg0) {
          var ret = getObject(arg0).maxBindGroups;
          return ret;
      };
      imports.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_3c7270307367aead = function(arg0) {
          var ret = getObject(arg0).maxDynamicUniformBuffersPerPipelineLayout;
          return ret;
      };
      imports.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_a43e8e83b7e22e88 = function(arg0) {
          var ret = getObject(arg0).maxDynamicStorageBuffersPerPipelineLayout;
          return ret;
      };
      imports.wbg.__wbg_maxSampledTexturesPerShaderStage_d6bd50cd1ddecddb = function(arg0) {
          var ret = getObject(arg0).maxSampledTexturesPerShaderStage;
          return ret;
      };
      imports.wbg.__wbg_maxSamplersPerShaderStage_736cf175f6dfd744 = function(arg0) {
          var ret = getObject(arg0).maxSamplersPerShaderStage;
          return ret;
      };
      imports.wbg.__wbg_maxStorageBuffersPerShaderStage_530c059ba20147e8 = function(arg0) {
          var ret = getObject(arg0).maxStorageBuffersPerShaderStage;
          return ret;
      };
      imports.wbg.__wbg_maxStorageTexturesPerShaderStage_b48db7cac3fd6600 = function(arg0) {
          var ret = getObject(arg0).maxStorageTexturesPerShaderStage;
          return ret;
      };
      imports.wbg.__wbg_maxUniformBuffersPerShaderStage_390e3a5f7e43c7eb = function(arg0) {
          var ret = getObject(arg0).maxUniformBuffersPerShaderStage;
          return ret;
      };
      imports.wbg.__wbg_maxUniformBufferBindingSize_c3de30288b24164f = function(arg0) {
          var ret = getObject(arg0).maxUniformBufferBindingSize;
          return ret;
      };
      imports.wbg.__wbg_maxStorageBufferBindingSize_9f5238770125ac4f = function(arg0) {
          var ret = getObject(arg0).maxStorageBufferBindingSize;
          return ret;
      };
      imports.wbg.__wbg_maxVertexBuffers_33d9f266f33f9a03 = function(arg0) {
          var ret = getObject(arg0).maxVertexBuffers;
          return ret;
      };
      imports.wbg.__wbg_maxVertexAttributes_690f9bdfa6081b2c = function(arg0) {
          var ret = getObject(arg0).maxVertexAttributes;
          return ret;
      };
      imports.wbg.__wbg_maxVertexBufferArrayStride_df0a3c3ddfac3419 = function(arg0) {
          var ret = getObject(arg0).maxVertexBufferArrayStride;
          return ret;
      };
      imports.wbg.__wbg_matches_563087e3acb03caf = function(arg0) {
          var ret = getObject(arg0).matches;
          return ret;
      };
      imports.wbg.__wbg_pointerId_9302f0e125f0b48e = function(arg0) {
          var ret = getObject(arg0).pointerId;
          return ret;
      };
      imports.wbg.__wbg_now_559193109055ebad = function(arg0) {
          var ret = getObject(arg0).now();
          return ret;
      };
      imports.wbg.__wbg_new_949bbc1147195c4e = function() {
          var ret = new Array();
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_newnoargs_be86524d73f67598 = function(arg0, arg1) {
          var ret = new Function(getStringFromWasm0(arg0, arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_get_4d0f21c2f823742e = function() { return handleError(function (arg0, arg1) {
          var ret = Reflect.get(getObject(arg0), getObject(arg1));
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_call_888d259a5fefc347 = function() { return handleError(function (arg0, arg1) {
          var ret = getObject(arg0).call(getObject(arg1));
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_new_0b83d3df67ecb33e = function() {
          var ret = new Object();
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_push_284486ca27c6aa8b = function(arg0, arg1) {
          var ret = getObject(arg0).push(getObject(arg1));
          return ret;
      };
      imports.wbg.__wbg_is_0f5efc7977a2c50b = function(arg0, arg1) {
          var ret = Object.is(getObject(arg0), getObject(arg1));
          return ret;
      };
      imports.wbg.__wbg_resolve_d23068002f584f22 = function(arg0) {
          var ret = Promise.resolve(getObject(arg0));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_then_2fcac196782070cc = function(arg0, arg1) {
          var ret = getObject(arg0).then(getObject(arg1));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_then_8c2d62e8ae5978f7 = function(arg0, arg1, arg2) {
          var ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_self_c6fbdfc2918d5e58 = function() { return handleError(function () {
          var ret = self.self;
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_window_baec038b5ab35c54 = function() { return handleError(function () {
          var ret = window.window;
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_globalThis_3f735a5746d41fbd = function() { return handleError(function () {
          var ret = globalThis.globalThis;
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbg_global_1bc0b39582740e95 = function() { return handleError(function () {
          var ret = global.global;
          return addHeapObject(ret);
      }, arguments) };
      imports.wbg.__wbindgen_is_undefined = function(arg0) {
          var ret = getObject(arg0) === undefined;
          return ret;
      };
      imports.wbg.__wbg_buffer_397eaa4d72ee94dd = function(arg0) {
          var ret = getObject(arg0).buffer;
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_newwithbyteoffsetandlength_4b9b8c4e3f5adbff = function(arg0, arg1, arg2) {
          var ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_new_a7ce447f15ff496f = function(arg0) {
          var ret = new Uint8Array(getObject(arg0));
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_set_969ad0a60e51d320 = function(arg0, arg1, arg2) {
          getObject(arg0).set(getObject(arg1), arg2 >>> 0);
      };
      imports.wbg.__wbg_length_1eb8fc608a0d4cdb = function(arg0) {
          var ret = getObject(arg0).length;
          return ret;
      };
      imports.wbg.__wbg_buffer_facf0398a281c85b = function(arg0) {
          var ret = getObject(arg0).buffer;
          return addHeapObject(ret);
      };
      imports.wbg.__wbg_set_82a4e8a85e31ac42 = function() { return handleError(function (arg0, arg1, arg2) {
          var ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
          return ret;
      }, arguments) };
      imports.wbg.__wbg_random_a582babfa4489c72 = typeof Math.random == 'function' ? Math.random : notDefined('Math.random');
      imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
          var ret = debugString(getObject(arg1));
          var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
          var len0 = WASM_VECTOR_LEN;
          getInt32Memory0()[arg0 / 4 + 1] = len0;
          getInt32Memory0()[arg0 / 4 + 0] = ptr0;
      };
      imports.wbg.__wbindgen_throw = function(arg0, arg1) {
          throw new Error(getStringFromWasm0(arg0, arg1));
      };
      imports.wbg.__wbindgen_memory = function() {
          var ret = wasm.memory;
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_closure_wrapper346 = function(arg0, arg1, arg2) {
          var ret = makeMutClosure(arg0, arg1, 92, __wbg_adapter_22);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_closure_wrapper348 = function(arg0, arg1, arg2) {
          var ret = makeMutClosure(arg0, arg1, 92, __wbg_adapter_25);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_closure_wrapper350 = function(arg0, arg1, arg2) {
          var ret = makeMutClosure(arg0, arg1, 92, __wbg_adapter_28);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_closure_wrapper352 = function(arg0, arg1, arg2) {
          var ret = makeMutClosure(arg0, arg1, 92, __wbg_adapter_31);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_closure_wrapper354 = function(arg0, arg1, arg2) {
          var ret = makeMutClosure(arg0, arg1, 92, __wbg_adapter_34);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_closure_wrapper356 = function(arg0, arg1, arg2) {
          var ret = makeMutClosure(arg0, arg1, 92, __wbg_adapter_37);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_closure_wrapper358 = function(arg0, arg1, arg2) {
          var ret = makeMutClosure(arg0, arg1, 92, __wbg_adapter_40);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_closure_wrapper360 = function(arg0, arg1, arg2) {
          var ret = makeMutClosure(arg0, arg1, 92, __wbg_adapter_43);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_closure_wrapper362 = function(arg0, arg1, arg2) {
          var ret = makeMutClosure(arg0, arg1, 92, __wbg_adapter_46);
          return addHeapObject(ret);
      };
      imports.wbg.__wbindgen_closure_wrapper841 = function(arg0, arg1, arg2) {
          var ret = makeMutClosure(arg0, arg1, 291, __wbg_adapter_49);
          return addHeapObject(ret);
      };
  
      if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
          input = fetch(input);
      }
  
  
  
      const { instance, module } = await load(await input, imports);
  
      wasm = instance.exports;
      init.__wbindgen_wasm_module = module;
      wasm.__wbindgen_start();
      return wasm;
  }
  
  export default init;
  
  