diff --git a/assets/image/atlas.aseprite b/assets/image/atlas.aseprite index 4fd61ca..0c8ea96 100644 Binary files a/assets/image/atlas.aseprite and b/assets/image/atlas.aseprite differ diff --git a/assets/image/level.aseprite b/assets/image/level.aseprite index 1c11967..58713b3 100644 Binary files a/assets/image/level.aseprite and b/assets/image/level.aseprite differ diff --git a/docs/assets/image/atlas.aseprite b/docs/assets/image/atlas.aseprite index 4fd61ca..0c8ea96 100644 Binary files a/docs/assets/image/atlas.aseprite and b/docs/assets/image/atlas.aseprite differ diff --git a/docs/assets/image/level.aseprite b/docs/assets/image/level.aseprite index 1c11967..58713b3 100644 Binary files a/docs/assets/image/level.aseprite and b/docs/assets/image/level.aseprite differ diff --git a/docs/index.html b/docs/index.html index 6cf5048..7ba0ce8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,8 +1,8 @@ -magiacircle 0.1 \ No newline at end of file +dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));magiacircle 0.1 \ No newline at end of file diff --git a/docs/magiacircle-59bad22095567cda.js b/docs/magiacircle-59bad22095567cda.js deleted file mode 100644 index 1f2900e..0000000 --- a/docs/magiacircle-59bad22095567cda.js +++ /dev/null @@ -1 +0,0 @@ -let aO=`1d`,aD=`string`,ap=`undefined`,au=0,aC=`boolean`,aL=`nearest`,aB=`number`,aN=`uint32`,aI=`zero`,aE=`Object`,aA=3,aQ=`3d`,aM=`linear`,aH=4,aT=4407,at=null,aJ=`none`,aw=`utf-8`,az=1,ay=`function`,aP=`2d`,aK=`depth32float-stencil8`,aU=3224,ar=Array,aS=Array.of,ax=Error,aG=FinalizationRegistry,aF=JSON.stringify,aR=Object,aV=Object.getPrototypeOf,av=Uint8Array,aq=undefined;var n=(a=>a===aq||a===at);var j=(()=>{if(i===at||i.byteLength===au){i=new av(b.memory.buffer)};return i});var H=(()=>{if(G===at||G.byteLength===au){G=new Uint32Array(b.memory.buffer)};return G});var ak=(()=>{const c={};c.wbg={};c.wbg.__wbg_getItem_cc312d333f535f07=function(){return B(((a,c,e,f)=>{const g=d(c).getItem(s(e,f));var i=n(g)?au:m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);var j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbindgen_object_drop_ref=(a=>{g(a)});c.wbg.__wbg_Window_f4441e69cbceafcc=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbindgen_is_undefined=(a=>{const b=d(a)===aq;return b});c.wbg.__wbg_fetch_bfd3aa46955593c3=((a,b,c)=>{const e=d(a).fetch(s(b,c));return q(e)});c.wbg.__wbg_WorkerGlobalScope_2500166acca3df02=(a=>{const b=d(a).WorkerGlobalScope;return q(b)});c.wbg.__wbg_fetch_896e530c3d511c11=((a,b,c)=>{const e=d(a).fetch(s(b,c));return q(e)});c.wbg.__wbg_instanceof_Response_3c0e210a57ff751d=(a=>{let b;try{b=d(a) instanceof Response}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_status_5f4e900d22140a18=(a=>{const b=d(a).status;return b});c.wbg.__wbg_arrayBuffer_144729e09879650e=function(){return B((a=>{const b=d(a).arrayBuffer();return q(b)}),arguments)};c.wbg.__wbg_new_fec2611eb9180f95=(a=>{const b=new av(d(a));return q(b)});c.wbg.__wbg_stringify_eead5648c09faaf8=function(){return B((a=>{const b=aF(d(a));return q(b)}),arguments)};c.wbg.__wbindgen_string_get=((a,c)=>{const e=d(c);const f=typeof e===aD?e:aq;var g=n(f)?au:m(f,b.__wbindgen_export_0,b.__wbindgen_export_1);var i=h;p().setInt32(a+ aH*az,i,!0);p().setInt32(a+ aH*au,g,!0)});c.wbg.__wbg_now_70af4fe37a792251=(()=>{const a=Date.now();return a});c.wbg.__wbg_isSecureContext_8a5cdec3d92171bf=(a=>{const b=d(a).isSecureContext;return b});c.wbg.__wbg_document_d7fa2c739c2b191a=(a=>{const b=d(a).document;return n(b)?au:q(b)});c.wbg.__wbg_querySelector_e4353fe90bee0601=function(){return B(((a,b,c)=>{const e=d(a).querySelector(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_instanceof_HtmlCanvasElement_022ad88c76df9031=(a=>{let b;try{b=d(a) instanceof HTMLCanvasElement}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_devicePixelRatio_5d0556383aa83231=(a=>{const b=d(a).devicePixelRatio;return b});c.wbg.__wbindgen_object_clone_ref=(a=>{const b=d(a);return q(b)});c.wbg.__wbg_style_04eb1488bc2ceffc=(a=>{const b=d(a).style;return q(b)});c.wbg.__wbg_eval_1bab7c4fbae3b3d6=function(){return B(((a,b)=>{const c=eval(s(a,b));return q(c)}),arguments)};c.wbg.__wbindgen_boolean_get=(a=>{const b=d(a);const c=typeof b===aC?(b?az:au):2;return c});c.wbg.__wbg_new_e69b5f66fda8f13c=(()=>{const a=new aR();return q(a)});c.wbg.__wbg_setsamplerate_8b48d6e377fe52c9=((a,b)=>{d(a).sampleRate=b});c.wbg.__wbg_newwithcontextoptions_f939c627726d873f=function(){return B((b=>{const c=new a(d(b));return q(c)}),arguments)};c.wbg.__wbg_destination_f7f82a0a30ca8bba=(a=>{const b=d(a).destination;return q(b)});c.wbg.__wbg_maxChannelCount_af37d88907a11748=(a=>{const b=d(a).maxChannelCount;return b});c.wbg.__wbg_setchannelCount_84446ba10ba82eb1=((a,b)=>{d(a).channelCount=b>>>au});c.wbg.__wbg_createBuffer_8acdf99f8dc5d697=function(){return B(((a,b,c,e)=>{const f=d(a).createBuffer(b>>>au,c>>>au,e);return q(f)}),arguments)};c.wbg.__wbg_resume_9c4295ca96d8c40a=function(){return B((a=>{const b=d(a).resume();return q(b)}),arguments)};c.wbg.__wbg_mark_40e050a77cc39fea=((a,b)=>{performance.mark(s(a,b))});c.wbg.__wbg_log_c9486ca5d8e2cbe8=((a,c)=>{let d;let e;try{d=a;e=c;console.log(s(a,c))}finally{b.__wbindgen_export_7(d,e,az)}});c.wbg.__wbg_log_aba5996d9bde071f=((a,c,d,e,f,g,h,i)=>{let j;let k;try{j=a;k=c;console.log(s(a,c),s(d,e),s(f,g),s(h,i))}finally{b.__wbindgen_export_7(j,k,az)}});c.wbg.__wbg_localStorage_6026615061e890bf=function(){return B((a=>{const b=d(a).localStorage;return n(b)?au:q(b)}),arguments)};c.wbg.__wbg_instanceof_MessageEvent_a025220a70647214=(a=>{let b;try{b=d(a) instanceof MessageEvent}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_data_134d3a704b9fca32=(a=>{const b=d(a).data;return q(b)});c.wbg.__wbindgen_is_string=(a=>{const b=typeof d(a)===aD;return b});c.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7=(a=>{let b;try{b=d(a) instanceof ArrayBuffer}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_readyState_bc0231e8c43b0907=(a=>{const b=d(a).readyState;return b});c.wbg.__wbg_send_f308b110e144e90d=function(){return B(((a,b,c)=>{d(a).send(s(b,c))}),arguments)};c.wbg.__wbg_send_fe006eb24f5e2694=function(){return B(((a,b,c)=>{d(a).send(F(b,c))}),arguments)};c.wbg.__wbg_new_d550f7a7120dd942=function(){return B(((a,b)=>{const c=new WebSocket(s(a,b));return q(c)}),arguments)};c.wbg.__wbg_setbinaryType_2befea8ba88b61e2=((a,b)=>{d(a).binaryType=K[b]});c.wbg.__wbg_setonerror_e16deca7fd15a59c=((a,b)=>{d(a).onerror=d(b)});c.wbg.__wbg_setonopen_c0e1464e3ea28727=((a,b)=>{d(a).onopen=d(b)});c.wbg.__wbg_setonmessage_84cd941c1df08da7=((a,b)=>{d(a).onmessage=d(b)});c.wbg.__wbg_setonclose_9a28780f7d46ed03=((a,b)=>{d(a).onclose=d(b)});c.wbg.__wbg_exitPointerLock_42de2c91cfcc3203=(a=>{d(a).exitPointerLock()});c.wbg.__wbg_requestPointerLock_322607e3bc628f7a=(a=>{d(a).requestPointerLock()});c.wbg.__wbg_new_abda76e883ba8a5f=(()=>{const a=new ax();return q(a)});c.wbg.__wbg_stack_658279fe44541cf6=((a,c)=>{const e=d(c).stack;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_error_f851667af71bcfc6=((a,c)=>{let d;let e;try{d=a;e=c;console.error(s(a,c))}finally{b.__wbindgen_export_7(d,e,az)}});c.wbg.__wbg_crypto_1d1f22824a6a080c=(a=>{const b=d(a).crypto;return q(b)});c.wbg.__wbindgen_is_object=(a=>{const b=d(a);const c=typeof b===`object`&&b!==at;return c});c.wbg.__wbg_process_4a72847cc503995b=(a=>{const b=d(a).process;return q(b)});c.wbg.__wbg_versions_f686565e586dd935=(a=>{const b=d(a).versions;return q(b)});c.wbg.__wbg_node_104a2ff8d6ea03a2=(a=>{const b=d(a).node;return q(b)});c.wbg.__wbg_require_cca90b1a94a0255b=function(){return B((()=>{const a=module.require;return q(a)}),arguments)};c.wbg.__wbindgen_is_function=(a=>{const b=typeof d(a)===ay;return b});c.wbg.__wbindgen_string_new=((a,b)=>{const c=s(a,b);return q(c)});c.wbg.__wbg_msCrypto_eb05e62b530a1508=(a=>{const b=d(a).msCrypto;return q(b)});c.wbg.__wbg_newwithlength_76462a666eca145f=(a=>{const b=new av(a>>>au);return q(b)});c.wbg.__wbg_subarray_975a06f9dbd16995=((a,b,c)=>{const e=d(a).subarray(b>>>au,c>>>au);return q(e)});c.wbg.__wbg_getRandomValues_3aa56aa6edec874c=function(){return B(((a,b)=>{d(a).getRandomValues(d(b))}),arguments)};c.wbg.__wbindgen_memory=(()=>{const a=b.memory;return q(a)});c.wbg.__wbg_buffer_ccaed51a635d8a2d=(a=>{const b=d(a).buffer;return q(b)});c.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730=((a,b,c)=>{const e=new av(d(a),b>>>au,c>>>au);return q(e)});c.wbg.__wbg_randomFillSync_5c9c955aa56b6049=function(){return B(((a,b)=>{d(a).randomFillSync(g(b))}),arguments)};c.wbg.__wbg_navigator_3d3836196a5d8e62=(a=>{const b=d(a).navigator;return q(b)});c.wbg.__wbg_getGamepads_e54b0e9135685af3=function(){return B((a=>{const b=d(a).getGamepads();return q(b)}),arguments)};c.wbg.__wbg_length_f217bbbf7e8e4df4=(a=>{const b=d(a).length;return b});c.wbg.__wbg_index_8cbd5ff3bd795787=(a=>{const b=d(a).index;return b});c.wbg.__wbg_buttons_eb461fd639ddcc20=(a=>{const b=d(a).buttons;return q(b)});c.wbg.__wbg_get_5419cf6b954aa11d=((a,b)=>{const c=d(a)[b>>>au];return q(c)});c.wbg.__wbg_pressed_90d9818eedea0eef=(a=>{const b=d(a).pressed;return b});c.wbg.__wbg_value_9792b33c816e47af=(a=>{const b=d(a).value;return b});c.wbg.__wbg_axes_2a36e14aa82eefc9=(a=>{const b=d(a).axes;return q(b)});c.wbg.__wbindgen_number_get=((a,b)=>{const c=d(b);const e=typeof c===aB?c:aq;p().setFloat64(a+ 8*az,n(e)?au:e,!0);p().setInt32(a+ aH*au,!n(e),!0)});c.wbg.__wbindgen_is_null=(a=>{const b=d(a)===at;return b});c.wbg.__wbg_instanceof_DomException_9c87cb6f93f43379=(a=>{let b;try{b=d(a) instanceof DOMException}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_message_c7a4c5995cc33e84=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_id_8c477b5e4084ecfb=((a,c)=>{const e=d(c).id;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_new_800498ec872f75d4=((a,b,c,d)=>{const e=new RegExp(s(a,b),s(c,d));return q(e)});c.wbg.__wbg_exec_c872ad5c15e456ad=((a,b,c)=>{const e=d(a).exec(s(b,c));return n(e)?au:q(e)});c.wbg.__wbg_mapping_bbf7356861bbea3a=(a=>{const b=d(a).mapping;return (L.indexOf(b)+ az||aA)- az});c.wbg.__wbg_connected_db62337c768c2467=(a=>{const b=d(a).connected;return b});c.wbg.__wbg_self_bf91bf94d9e04084=function(){return B((()=>{const a=self.self;return q(a)}),arguments)};c.wbg.__wbg_window_52dd9f07d03fd5f8=function(){return B((()=>{const a=window.window;return q(a)}),arguments)};c.wbg.__wbg_globalThis_05c129bf37fcf1be=function(){return B((()=>{const a=globalThis.globalThis;return q(a)}),arguments)};c.wbg.__wbg_global_3eca19bb09e9c484=function(){return B((()=>{const a=global.global;return q(a)}),arguments)};c.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43=((a,b)=>{const c=new Function(s(a,b));return q(c)});c.wbg.__wbg_call_a9ef466721e824f2=function(){return B(((a,b)=>{const c=d(a).call(d(b));return q(c)}),arguments)};c.wbg.__wbg_call_3bfa248576352471=function(){return B(((a,b,c)=>{const e=d(a).call(d(b),d(c));return q(e)}),arguments)};c.wbg.__wbg_set_e864d25d9b399c9f=function(){return B(((a,b,c)=>{const e=Reflect.set(d(a),d(b),d(c));return e}),arguments)};c.wbg.__wbg_set_ec2fcf81bc573fd9=((a,b,c)=>{d(a).set(d(b),c>>>au)});c.wbg.__wbg_length_9254c4bd3b9f23c4=(a=>{const b=d(a).length;return b});c.wbg.__wbindgen_cb_drop=(a=>{const b=g(a).original;if(b.cnt--==az){b.a=au;return !0};const c=!1;return c});c.wbg.__wbg_currentTime_a3102f1ef74fca96=(a=>{const b=d(a).currentTime;return b});c.wbg.__wbg_createBufferSource_ed2df6b1d0df0f14=function(){return B((a=>{const b=d(a).createBufferSource();return q(b)}),arguments)};c.wbg.__wbg_setbuffer_f4457f8f6a733e5a=((a,b)=>{d(a).buffer=d(b)});c.wbg.__wbg_connect_9a09c3bcaa0c9d22=function(){return B(((a,b)=>{const c=d(a).connect(d(b));return q(c)}),arguments)};c.wbg.__wbg_setonended_95d7e5856cbda569=((a,b)=>{d(a).onended=d(b)});c.wbg.__wbg_start_c5bab011493fb2be=function(){return B(((a,b)=>{d(a).start(b)}),arguments)};c.wbg.__wbg_copyToChannel_4f1f6f3395215459=function(){return B(((a,b,c,e)=>{d(a).copyToChannel(E(b,c),e)}),arguments)};c.wbg.__wbg_close_a65253886601b1ee=function(){return B((a=>{const b=d(a).close();return q(b)}),arguments)};c.wbg.__wbg_measure_aa7a73f17813f708=function(){return B(((a,c,d,e)=>{let f;let g;let h;let i;try{f=a;g=c;h=d;i=e;performance.measure(s(a,c),s(d,e))}finally{b.__wbindgen_export_7(f,g,az);b.__wbindgen_export_7(h,i,az)}}),arguments)};c.wbg.__wbindgen_throw=((a,b)=>{throw new ax(s(a,b))});c.wbg.__wbindgen_debug_string=((a,c)=>{const e=t(d(c));const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_queueMicrotask_848aa4969108a57e=(a=>{const b=d(a).queueMicrotask;return q(b)});c.wbg.__wbg_resolve_0aad7c1484731c99=(a=>{const b=Promise.resolve(d(a));return q(b)});c.wbg.__wbg_then_748f75edfb032440=((a,b)=>{const c=d(a).then(d(b));return q(c)});c.wbg.__wbg_queueMicrotask_c5419c06eab41e73=(a=>{queueMicrotask(d(a))});c.wbg.__wbg_then_4866a7d9f55d8f3e=((a,b,c)=>{const e=d(a).then(d(b),d(c));return q(e)});c.wbg.__wbg_instanceof_Window_6575cd7f1322f82f=(a=>{let b;try{b=d(a) instanceof Window}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_new_75169ae5a9683c55=function(){return B((()=>{const a=new AbortController();return q(a)}),arguments)};c.wbg.__wbg_setProperty_b9a2384cbfb499fb=function(){return B(((a,b,c,e,f)=>{d(a).setProperty(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_visibilityState_5e9ade0fb5df3c9c=(a=>{const b=d(a).visibilityState;return (ai.indexOf(b)+ az||aA)- az});c.wbg.__wbg_setAttribute_2a8f647a8d92c712=function(){return B(((a,b,c,e,f)=>{d(a).setAttribute(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_addEventListener_4357f9b7b3826784=function(){return B(((a,b,c,e)=>{d(a).addEventListener(s(b,c),d(e))}),arguments)};c.wbg.__wbg_removeEventListener_4c13d11156153514=function(){return B(((a,b,c,e)=>{d(a).removeEventListener(s(b,c),d(e))}),arguments)};c.wbg.__wbg_focus_6b6181f7644f6dbc=function(){return B((a=>{d(a).focus()}),arguments)};c.wbg.__wbg_addListener_503d439bc3f84ff3=function(){return B(((a,b)=>{d(a).addListener(d(b))}),arguments)};c.wbg.__wbg_new_e207405ddca58ee2=function(){return B((()=>{const a=new MessageChannel();return q(a)}),arguments)};c.wbg.__wbg_postMessage_5109299871335137=function(){return B(((a,b)=>{d(a).postMessage(d(b))}),arguments)};c.wbg.__wbg_setItem_5afc04d5b6287c76=function(){return B(((a,b,c,e,f)=>{d(a).setItem(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_revokeObjectURL_8e72bad4541bdca0=function(){return B(((a,b)=>{URL.revokeObjectURL(s(a,b))}),arguments)};c.wbg.__wbg_close_9e3b743c528a8d31=function(){return B((a=>{d(a).close()}),arguments)};c.wbg.__wbg_matchMedia_2c5a513148e49e4a=function(){return B(((a,b,c)=>{const e=d(a).matchMedia(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_cancelAnimationFrame_f802bc3f3a9b2e5c=function(){return B(((a,b)=>{d(a).cancelAnimationFrame(b)}),arguments)};c.wbg.__wbg_setTimeout_e5d5b865335ce177=function(){return B(((a,b,c)=>{const e=d(a).setTimeout(d(b),c);return e}),arguments)};c.wbg.__wbg_performance_a1b8bde2ee512264=(a=>{const b=d(a).performance;return q(b)});c.wbg.__wbg_now_abd80e969af37148=(a=>{const b=d(a).now();return b});c.wbg.__wbg_instanceof_GpuDeviceLostInfo_22f963b61044b3b1=(a=>{let b;try{b=d(a) instanceof GPUDeviceLostInfo}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_reason_3af8e4afbe0efdd8=(a=>{const b=d(a).reason;return (W.indexOf(b)+ az||aA)- az});c.wbg.__wbg_message_3bef8c43f84eab9c=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbindgen_number_new=(a=>{const b=a;return q(b)});c.wbg.__wbg_Window_94d759f1f207a15b=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbg_gpu_1f3675e2d4aa88f4=(a=>{const b=d(a).gpu;return q(b)});c.wbg.__wbg_WorkerGlobalScope_b13c8cef62388de9=(a=>{const b=d(a).WorkerGlobalScope;return q(b)});c.wbg.__wbg_navigator_4093e51a109a906e=(a=>{const b=d(a).navigator;return q(b)});c.wbg.__wbg_instanceof_GpuCanvasContext_b3bff0de75efe6fd=(a=>{let b;try{b=d(a) instanceof GPUCanvasContext}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_instanceof_GpuAdapter_32bc80c8c30adaa0=(a=>{let b;try{b=d(a) instanceof GPUAdapter}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_queue_2bddd1700cb0bec2=(a=>{const b=d(a).queue;return q(b)});c.wbg.__wbg_has_1509b2ce6759dc2a=((a,b,c)=>{const e=d(a).has(s(b,c));return e});c.wbg.__wbg_maxTextureDimension1D_ea59b0f0cc2e29cd=(a=>{const b=d(a).maxTextureDimension1D;return b});c.wbg.__wbg_maxTextureDimension2D_00984ba245729ced=(a=>{const b=d(a).maxTextureDimension2D;return b});c.wbg.__wbg_maxTextureDimension3D_95c3d3adb6d66ec5=(a=>{const b=d(a).maxTextureDimension3D;return b});c.wbg.__wbg_maxTextureArrayLayers_68f4a1218a54fa93=(a=>{const b=d(a).maxTextureArrayLayers;return b});c.wbg.__wbg_maxBindGroups_e76fb8650a4459d7=(a=>{const b=d(a).maxBindGroups;return b});c.wbg.__wbg_maxBindingsPerBindGroup_2af20f39aef3fd86=(a=>{const b=d(a).maxBindingsPerBindGroup;return b});c.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_074c891075b375b7=(a=>{const b=d(a).maxDynamicUniformBuffersPerPipelineLayout;return b});c.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_b91e3e6efb7b7a8c=(a=>{const b=d(a).maxDynamicStorageBuffersPerPipelineLayout;return b});c.wbg.__wbg_maxSampledTexturesPerShaderStage_76354979d03a2b27=(a=>{const b=d(a).maxSampledTexturesPerShaderStage;return b});c.wbg.__wbg_maxSamplersPerShaderStage_fe8d223de90e5459=(a=>{const b=d(a).maxSamplersPerShaderStage;return b});c.wbg.__wbg_maxStorageBuffersPerShaderStage_bced69629145d26d=(a=>{const b=d(a).maxStorageBuffersPerShaderStage;return b});c.wbg.__wbg_maxStorageTexturesPerShaderStage_fcf51f22620c0092=(a=>{const b=d(a).maxStorageTexturesPerShaderStage;return b});c.wbg.__wbg_maxUniformBuffersPerShaderStage_b3b013238400f0c0=(a=>{const b=d(a).maxUniformBuffersPerShaderStage;return b});c.wbg.__wbg_maxUniformBufferBindingSize_194fd7147cf2e95a=(a=>{const b=d(a).maxUniformBufferBindingSize;return b});c.wbg.__wbg_maxStorageBufferBindingSize_78504383af63ac53=(a=>{const b=d(a).maxStorageBufferBindingSize;return b});c.wbg.__wbg_maxVertexBuffers_78c71ff19beac74b=(a=>{const b=d(a).maxVertexBuffers;return b});c.wbg.__wbg_maxBufferSize_0c7ed57407582d40=(a=>{const b=d(a).maxBufferSize;return b});c.wbg.__wbg_maxVertexAttributes_c11cb018a9c5a224=(a=>{const b=d(a).maxVertexAttributes;return b});c.wbg.__wbg_maxVertexBufferArrayStride_c53560cc036cb477=(a=>{const b=d(a).maxVertexBufferArrayStride;return b});c.wbg.__wbg_minUniformBufferOffsetAlignment_4880e6786cb7ec5d=(a=>{const b=d(a).minUniformBufferOffsetAlignment;return b});c.wbg.__wbg_minStorageBufferOffsetAlignment_9913f200aee2c749=(a=>{const b=d(a).minStorageBufferOffsetAlignment;return b});c.wbg.__wbg_maxInterStageShaderComponents_f9243ac86242eb18=(a=>{const b=d(a).maxInterStageShaderComponents;return b});c.wbg.__wbg_maxColorAttachments_d33b1d22c06a6fc5=(a=>{const b=d(a).maxColorAttachments;return b});c.wbg.__wbg_maxColorAttachmentBytesPerSample_637fd3ac394c14ee=(a=>{const b=d(a).maxColorAttachmentBytesPerSample;return b});c.wbg.__wbg_maxComputeWorkgroupStorageSize_7e5bc378e5a62367=(a=>{const b=d(a).maxComputeWorkgroupStorageSize;return b});c.wbg.__wbg_maxComputeInvocationsPerWorkgroup_1ed5b24d52720f8a=(a=>{const b=d(a).maxComputeInvocationsPerWorkgroup;return b});c.wbg.__wbg_maxComputeWorkgroupSizeX_56b713fb17f8c261=(a=>{const b=d(a).maxComputeWorkgroupSizeX;return b});c.wbg.__wbg_maxComputeWorkgroupSizeY_13040bdf12fd4e65=(a=>{const b=d(a).maxComputeWorkgroupSizeY;return b});c.wbg.__wbg_maxComputeWorkgroupSizeZ_8c8594730967472d=(a=>{const b=d(a).maxComputeWorkgroupSizeZ;return b});c.wbg.__wbg_maxComputeWorkgroupsPerDimension_4094c8501eea36ce=(a=>{const b=d(a).maxComputeWorkgroupsPerDimension;return b});c.wbg.__wbg_new_034f913e7636e987=(()=>{const a=new ar();return q(a)});c.wbg.__wbg_push_36cf4d81d7da33d1=((a,b)=>{const c=d(a).push(d(b));return c});c.wbg.__wbg_createRenderPipeline_2bfc852ce09914fc=((a,b)=>{const c=d(a).createRenderPipeline(d(b));return q(c)});c.wbg.__wbg_error_c4453561fa6c2209=(a=>{const b=d(a).error;return q(b)});c.wbg.__wbg_valueOf_caadbb280a0b350a=(a=>{const b=d(a).valueOf();return q(b)});c.wbg.__wbg_instanceof_GpuValidationError_776dc042f9752ecb=(a=>{let b;try{b=d(a) instanceof GPUValidationError}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_message_e73620d927b54373=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_instanceof_GpuOutOfMemoryError_3621d9e8ec05691e=(a=>{let b;try{b=d(a) instanceof GPUOutOfMemoryError}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_instanceof_Object_4bbac482eda9b711=(a=>{let b;try{b=d(a) instanceof aR}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_buffer_95102df5554646dc=(a=>{const b=d(a).buffer;return q(b)});c.wbg.__wbg_writeBuffer_4245ce84e6d772c9=((a,b,c,e,f,g)=>{d(a).writeBuffer(d(b),c,d(e),f,g)});c.wbg.__wbg_querySelectorAll_28e417f74795a70f=function(){return B(((a,b,c)=>{const e=d(a).querySelectorAll(s(b,c));return q(e)}),arguments)};c.wbg.__wbg_get_602f2a39a831c929=((a,b)=>{const c=d(a)[b>>>au];return n(c)?au:q(c)});c.wbg.__wbg_getContext_211e7f0e615215a4=function(){return B(((a,b,c)=>{const e=d(a).getContext(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_getContext_bf8985355a4d22ca=function(){return B(((a,b,c)=>{const e=d(a).getContext(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_requestAdapter_e6f12701c7a38391=((a,b)=>{const c=d(a).requestAdapter(d(b));return q(c)});c.wbg.__wbg_requestDevice_727ad8687b0d6553=((a,b)=>{const c=d(a).requestDevice(d(b));return q(c)});c.wbg.__wbg_features_b56ebab8f515839e=(a=>{const b=d(a).features;return q(b)});c.wbg.__wbg_limits_be2f592b5e154a3d=(a=>{const b=d(a).limits;return q(b)});c.wbg.__wbg_getPreferredCanvasFormat_012ef9f3b0238ffa=(a=>{const b=d(a).getPreferredCanvasFormat();return (ab.indexOf(b)+ az||96)- az});c.wbg.__wbg_setwidth_23bf2deedd907275=((a,b)=>{d(a).width=b>>>au});c.wbg.__wbg_setheight_239dc283bbe50da4=((a,b)=>{d(a).height=b>>>au});c.wbg.__wbg_setwidth_e02ce7ae3e45c1b6=((a,b)=>{d(a).width=b>>>au});c.wbg.__wbg_setheight_45e518143d1ca78f=((a,b)=>{d(a).height=b>>>au});c.wbg.__wbg_configure_6cde48f0c99a3497=((a,b)=>{d(a).configure(d(b))});c.wbg.__wbg_getCurrentTexture_95b5b88416fdb0c2=(a=>{const b=d(a).getCurrentTexture();return q(b)});c.wbg.__wbg_features_4991b2a28904a253=(a=>{const b=d(a).features;return q(b)});c.wbg.__wbg_limits_1aa8a49e0a8442cc=(a=>{const b=d(a).limits;return q(b)});c.wbg.__wbg_createShaderModule_036b780a18124d9e=((a,b)=>{const c=d(a).createShaderModule(d(b));return q(c)});c.wbg.__wbg_createBindGroupLayout_313b4151e718ff1f=((a,b)=>{const c=d(a).createBindGroupLayout(d(b));return q(c)});c.wbg.__wbg_createBindGroup_2d6778f92445c8bf=((a,b)=>{const c=d(a).createBindGroup(d(b));return q(c)});c.wbg.__wbg_createPipelineLayout_9134c6c32c505ec8=((a,b)=>{const c=d(a).createPipelineLayout(d(b));return q(c)});c.wbg.__wbg_createComputePipeline_02674342979c6288=((a,b)=>{const c=d(a).createComputePipeline(d(b));return q(c)});c.wbg.__wbg_createBuffer_65c2fc555c46aa07=((a,b)=>{const c=d(a).createBuffer(d(b));return q(c)});c.wbg.__wbg_createTexture_5adbcf0db3fd41b4=((a,b)=>{const c=d(a).createTexture(d(b));return q(c)});c.wbg.__wbg_createSampler_942022241ecf4277=((a,b)=>{const c=d(a).createSampler(d(b));return q(c)});c.wbg.__wbg_createQuerySet_424dbf8130140914=((a,b)=>{const c=d(a).createQuerySet(d(b));return q(c)});c.wbg.__wbg_createCommandEncoder_1db1770ea9eab9af=((a,b)=>{const c=d(a).createCommandEncoder(d(b));return q(c)});c.wbg.__wbg_createRenderBundleEncoder_32896e68340fabc6=((a,b)=>{const c=d(a).createRenderBundleEncoder(d(b));return q(c)});c.wbg.__wbg_lost_42410660a8cd8819=(a=>{const b=d(a).lost;return q(b)});c.wbg.__wbg_destroy_4f7ed2bbb4742899=(a=>{d(a).destroy()});c.wbg.__wbg_setonuncapturederror_4e4946a65c61f3ef=((a,b)=>{d(a).onuncapturederror=d(b)});c.wbg.__wbg_pushErrorScope_a09c8b037ab27e15=((a,b)=>{d(a).pushErrorScope(X[b])});c.wbg.__wbg_popErrorScope_f8f0d4b6d5c635f9=(a=>{const b=d(a).popErrorScope();return q(b)});c.wbg.__wbg_mapAsync_3b0a03a892fb22b3=((a,b,c,e)=>{const f=d(a).mapAsync(b>>>au,c,e);return q(f)});c.wbg.__wbg_getMappedRange_1216b00d6d7803de=((a,b,c)=>{const e=d(a).getMappedRange(b,c);return q(e)});c.wbg.__wbg_unmap_7a0dddee82ac6ed3=(a=>{d(a).unmap()});c.wbg.__wbg_createView_0ab0576f1665c9ad=((a,b)=>{const c=d(a).createView(d(b));return q(c)});c.wbg.__wbg_destroy_199808599201ee27=(a=>{d(a).destroy()});c.wbg.__wbg_destroy_57694ff5aabbf32d=(a=>{d(a).destroy()});c.wbg.__wbg_getBindGroupLayout_a0d36a72bd39bb04=((a,b)=>{const c=d(a).getBindGroupLayout(b>>>au);return q(c)});c.wbg.__wbg_getBindGroupLayout_abc654a192f85d5e=((a,b)=>{const c=d(a).getBindGroupLayout(b>>>au);return q(c)});c.wbg.__wbg_copyBufferToBuffer_667953bc6dccb6b4=((a,b,c,e,f,g)=>{d(a).copyBufferToBuffer(d(b),c,d(e),f,g)});c.wbg.__wbg_copyBufferToTexture_ca5b298687bed60a=((a,b,c,e)=>{d(a).copyBufferToTexture(d(b),d(c),d(e))});c.wbg.__wbg_copyTextureToBuffer_cdf8118386295eb4=((a,b,c,e)=>{d(a).copyTextureToBuffer(d(b),d(c),d(e))});c.wbg.__wbg_copyTextureToTexture_67678f03fd20bd23=((a,b,c,e)=>{d(a).copyTextureToTexture(d(b),d(c),d(e))});c.wbg.__wbg_beginComputePass_a148b983810f6795=((a,b)=>{const c=d(a).beginComputePass(d(b));return q(c)});c.wbg.__wbg_end_28d311f5d435aa6d=(a=>{d(a).end()});c.wbg.__wbg_beginRenderPass_0b83360fd99b5810=((a,b)=>{const c=d(a).beginRenderPass(d(b));return q(c)});c.wbg.__wbg_end_e3cea1776c95d64f=(a=>{d(a).end()});c.wbg.__wbg_label_175c4f59b3eca611=((a,c)=>{const e=d(c).label;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_finish_d1d9eb9915c96a79=((a,b)=>{const c=d(a).finish(d(b));return q(c)});c.wbg.__wbg_finish_ce7d5c15fce975aa=(a=>{const b=d(a).finish();return q(b)});c.wbg.__wbg_clearBuffer_2cc723ab6b818737=((a,b,c)=>{d(a).clearBuffer(d(b),c)});c.wbg.__wbg_clearBuffer_78a94a2eda97eb5a=((a,b,c,e)=>{d(a).clearBuffer(d(b),c,e)});c.wbg.__wbg_resolveQuerySet_22e31015a36a09d5=((a,b,c,e,f,g)=>{d(a).resolveQuerySet(d(b),c>>>au,e>>>au,d(f),g>>>au)});c.wbg.__wbg_finish_2115db9e679c5aae=(a=>{const b=d(a).finish();return q(b)});c.wbg.__wbg_finish_4a754149a60eddc0=((a,b)=>{const c=d(a).finish(d(b));return q(c)});c.wbg.__wbg_usage_5e9a3548afbc3ebb=(a=>{const b=d(a).usage;return b});c.wbg.__wbg_size_fc880d60ff425a47=(a=>{const b=d(a).size;return b});c.wbg.__wbg_writeTexture_686a8160c3c5ddbb=((a,b,c,e,f)=>{d(a).writeTexture(d(b),d(c),d(e),d(f))});c.wbg.__wbg_copyExternalImageToTexture_87bdcc3260c6efba=((a,b,c,e)=>{d(a).copyExternalImageToTexture(d(b),d(c),d(e))});c.wbg.__wbg_submit_afbd82b0d5056194=((a,b)=>{d(a).submit(d(b))});c.wbg.__wbg_setPipeline_8630b264a9c4ec4b=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_5a450a0e97199c15=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_17e73587d3c1be08=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_dispatchWorkgroups_4bc133944e89d5e0=((a,b,c,e)=>{d(a).dispatchWorkgroups(b>>>au,c>>>au,e>>>au)});c.wbg.__wbg_dispatchWorkgroupsIndirect_8050acb60dd74a34=((a,b,c)=>{d(a).dispatchWorkgroupsIndirect(d(b),c)});c.wbg.__wbg_setPipeline_a95b89d99620ba34=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_f70bb0d0a5ace56d=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_58e27d4cd266f187=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_setIndexBuffer_747e1ba3f58d7227=((a,b,c,e)=>{d(a).setIndexBuffer(d(b),$[c],e)});c.wbg.__wbg_setIndexBuffer_3f1635c89f72d661=((a,b,c,e,f)=>{d(a).setIndexBuffer(d(b),$[c],e,f)});c.wbg.__wbg_setVertexBuffer_94a88edbfb4b07f8=((a,b,c,e)=>{d(a).setVertexBuffer(b>>>au,d(c),e)});c.wbg.__wbg_setVertexBuffer_407067a9522118df=((a,b,c,e,f)=>{d(a).setVertexBuffer(b>>>au,d(c),e,f)});c.wbg.__wbg_draw_60508d893ce4e012=((a,b,c,e,f)=>{d(a).draw(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_drawIndexed_d5c5dff02437a4f0=((a,b,c,e,f,g)=>{d(a).drawIndexed(b>>>au,c>>>au,e>>>au,f,g>>>au)});c.wbg.__wbg_drawIndirect_54f93ae4ccc85358=((a,b,c)=>{d(a).drawIndirect(d(b),c)});c.wbg.__wbg_drawIndexedIndirect_bf668464170261b3=((a,b,c)=>{d(a).drawIndexedIndirect(d(b),c)});c.wbg.__wbg_setPipeline_d7c9c55035f118a6=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_0bf976b9657f99bd=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_c6ab2e9583489b58=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_setIndexBuffer_ea39707d8842fe03=((a,b,c,e)=>{d(a).setIndexBuffer(d(b),$[c],e)});c.wbg.__wbg_setIndexBuffer_04ba4ea48c8f80be=((a,b,c,e,f)=>{d(a).setIndexBuffer(d(b),$[c],e,f)});c.wbg.__wbg_setVertexBuffer_907c60acf6dca161=((a,b,c,e)=>{d(a).setVertexBuffer(b>>>au,d(c),e)});c.wbg.__wbg_setVertexBuffer_9a336bb112a33317=((a,b,c,e,f)=>{d(a).setVertexBuffer(b>>>au,d(c),e,f)});c.wbg.__wbg_draw_540a514f996a5d0d=((a,b,c,e,f)=>{d(a).draw(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_drawIndexed_f717a07602ee2d18=((a,b,c,e,f,g)=>{d(a).drawIndexed(b>>>au,c>>>au,e>>>au,f,g>>>au)});c.wbg.__wbg_drawIndirect_c588ff54fb149aee=((a,b,c)=>{d(a).drawIndirect(d(b),c)});c.wbg.__wbg_drawIndexedIndirect_bb5585ec7f45d269=((a,b,c)=>{d(a).drawIndexedIndirect(d(b),c)});c.wbg.__wbg_setBlendConstant_496a0b5cc772c236=((a,b)=>{d(a).setBlendConstant(d(b))});c.wbg.__wbg_setScissorRect_9b7e673d03036c37=((a,b,c,e,f)=>{d(a).setScissorRect(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_setViewport_85d18ceefd5180eb=((a,b,c,e,f,g,h)=>{d(a).setViewport(b,c,e,f,g,h)});c.wbg.__wbg_setStencilReference_b4b1f7e586967a4d=((a,b)=>{d(a).setStencilReference(b>>>au)});c.wbg.__wbg_executeBundles_16985086317c358a=((a,b)=>{d(a).executeBundles(d(b))});c.wbg.__wbg_movementX_468fdc7a7281744b=(a=>{const b=d(a).movementX;return b});c.wbg.__wbg_movementY_8bbbf8c3bffd1fce=(a=>{const b=d(a).movementY;return b});c.wbg.__wbg_offsetX_294898d040917c6b=(a=>{const b=d(a).offsetX;return b});c.wbg.__wbg_offsetY_f484804b7b03dd86=(a=>{const b=d(a).offsetY;return b});c.wbg.__wbg_error_e297661c1014a1cc=((a,b)=>{console.error(d(a),d(b))});c.wbg.__wbg_removeListener_0e5684bf9a4fe773=function(){return B(((a,b)=>{d(a).removeListener(d(b))}),arguments)};c.wbg.__wbg_disconnect_91f6e3e629264c78=(a=>{d(a).disconnect()});c.wbg.__wbg_disconnect_8d41ebc92b193580=(a=>{d(a).disconnect()});c.wbg.__wbg_cancel_cba86749f45f30ae=(a=>{d(a).cancel()});c.wbg.__wbg_Window_bd9ec3fee5f673ee=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbg_clearTimeout_8567b0ecb6ec5d60=((a,b)=>{d(a).clearTimeout(b)});c.wbg.__wbg_close_8356c7a6c6893135=(a=>{d(a).close()});c.wbg.__wbg_setonmessage_81b2f44fc2b4b0a4=((a,b)=>{d(a).onmessage=d(b)});c.wbg.__wbg_cancelIdleCallback_7e85ac94feec1b33=((a,b)=>{d(a).cancelIdleCallback(b>>>au)});c.wbg.__wbg_abort_c57daab47a6c1215=(a=>{d(a).abort()});c.wbg.__wbg_scheduler_7ccf2d3b362018c4=(a=>{const b=d(a).scheduler;return q(b)});c.wbg.__wbg_signal_9acfcec9e7dffc22=(a=>{const b=d(a).signal;return q(b)});c.wbg.__wbg_postTask_99464245f349be5a=((a,b,c)=>{const e=d(a).postTask(d(b),d(c));return q(e)});c.wbg.__wbg_catch_8097da4375a5dd1b=((a,b)=>{const c=d(a).catch(d(b));return q(c)});c.wbg.__wbg_port1_a6e649ef4f3886f3=(a=>{const b=d(a).port1;return q(b)});c.wbg.__wbg_start_818baa7ac87fe59f=(a=>{d(a).start()});c.wbg.__wbg_port2_6fdacea6fa8e446e=(a=>{const b=d(a).port2;return q(b)});c.wbg.__wbg_setTimeout_c9db6bce0a6bb71c=function(){return B(((a,b)=>{const c=d(a).setTimeout(d(b));return c}),arguments)};c.wbg.__wbg_of_7e03bb557d6a64cc=((a,b)=>{const c=aS(d(a),d(b));return q(c)});c.wbg.__wbg_of_064d1507296514c2=(a=>{const b=aS(d(a));return q(b)});c.wbg.__wbg_postMessage_857ce8a4ab57c841=function(){return B(((a,b,c)=>{d(a).postMessage(d(b),d(c))}),arguments)};c.wbg.__wbg_requestIdleCallback_effe682e9df1695f=function(){return B(((a,b)=>{const c=d(a).requestIdleCallback(d(b));return c}),arguments)};c.wbg.__wbg_new_00d033f8a8736a28=function(){return B(((a,b)=>{const c=new Worker(s(a,b));return q(c)}),arguments)};c.wbg.__wbg_settype_623d2ee701e6310a=((a,b,c)=>{d(a).type=s(b,c)});c.wbg.__wbg_newwithstrsequenceandoptions_3d581ce16ca52c44=function(){return B(((a,b)=>{const c=new Blob(d(a),d(b));return q(c)}),arguments)};c.wbg.__wbg_createObjectURL_11804d71ac214694=function(){return B(((a,c)=>{const e=URL.createObjectURL(d(c));const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)}),arguments)};c.wbg.__wbg_requestIdleCallback_86b728660e0547ef=(a=>{const b=d(a).requestIdleCallback;return q(b)});c.wbg.__wbg_scheduler_f38a681d98b5a776=(a=>{const b=d(a).scheduler;return q(b)});c.wbg.__wbg_contains_a28a8f7c01e4c130=((a,b)=>{const c=d(a).contains(d(b));return c});c.wbg.__wbg_unobserve_79fd6473e7891735=((a,b)=>{d(a).unobserve(d(b))});c.wbg.__wbg_observe_51c387de0413edcf=((a,b)=>{d(a).observe(d(b))});c.wbg.__wbg_getPropertyValue_b199c95cfeadebdf=function(){return B(((a,c,e,f)=>{const g=d(c).getPropertyValue(s(e,f));const i=m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);const j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbg_prototype_d33365945f23f380=(()=>{const a=ResizeObserverEntry.prototype;return q(a)});c.wbg.__wbg_getOwnPropertyDescriptor_419345cdc0d1ec14=((a,b)=>{const c=aR.getOwnPropertyDescriptor(d(a),d(b));return q(c)});c.wbg.__wbg_pointerId_93f7e5e10bb641ad=(a=>{const b=d(a).pointerId;return b});c.wbg.__wbg_buttons_2cb9e49b40e20105=(a=>{const b=d(a).buttons;return b});c.wbg.__wbg_button_d8226b772c8cf494=(a=>{const b=d(a).button;return b});c.wbg.__wbg_getCoalescedEvents_8f8920b382098ac5=(a=>{const b=d(a).getCoalescedEvents();return q(b)});c.wbg.__wbg_getCoalescedEvents_85701851c470c4e6=(a=>{const b=d(a).getCoalescedEvents;return q(b)});c.wbg.__wbg_userAgentData_85a8393570ab7dee=(a=>{const b=d(a).userAgentData;return n(b)?au:q(b)});c.wbg.__wbg_brands_982de08b35281a98=(a=>{const b=d(a).brands;return q(b)});c.wbg.__wbg_brand_cdcf0249d44027a8=((a,c)=>{const e=d(c).brand;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_userAgent_b433f0f22dfedec5=function(){return B(((a,c)=>{const e=d(c).userAgent;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)}),arguments)};c.wbg.__wbg_persisted_af13b0ad7952721a=(a=>{const b=d(a).persisted;return b});c.wbg.__wbg_matches_7df350fbe7beb09f=(a=>{const b=d(a).matches;return b});c.wbg.__wbg_pointerType_6d91ef0da43639d3=((a,c)=>{const e=d(c).pointerType;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_pressure_ad8dacbd14c9076f=(a=>{const b=d(a).pressure;return b});c.wbg.__wbg_preventDefault_eecc4a63e64c4526=(a=>{d(a).preventDefault()});c.wbg.__wbg_deltaX_10154f810008c0a0=(a=>{const b=d(a).deltaX;return b});c.wbg.__wbg_deltaY_afd77a1b9e0d9ccd=(a=>{const b=d(a).deltaY;return b});c.wbg.__wbg_deltaMode_f31810d86a9defec=(a=>{const b=d(a).deltaMode;return b});c.wbg.__wbg_shiftKey_6d843f3032fd0366=(a=>{const b=d(a).shiftKey;return b});c.wbg.__wbg_ctrlKey_4015247a39aa9410=(a=>{const b=d(a).ctrlKey;return b});c.wbg.__wbg_altKey_c9401b041949ea90=(a=>{const b=d(a).altKey;return b});c.wbg.__wbg_metaKey_5d680933661ea1ea=(a=>{const b=d(a).metaKey;return b});c.wbg.__wbg_media_80aa0a213cbd9b0b=((a,c)=>{const e=d(c).media;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_repeat_1f81f308f5d8d519=(a=>{const b=d(a).repeat;return b});c.wbg.__wbg_key_001eb20ba3b3d2fd=((a,c)=>{const e=d(c).key;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_shiftKey_cb120edc9c25950d=(a=>{const b=d(a).shiftKey;return b});c.wbg.__wbg_ctrlKey_f592192d87040d94=(a=>{const b=d(a).ctrlKey;return b});c.wbg.__wbg_altKey_ebf03e2308f51c08=(a=>{const b=d(a).altKey;return b});c.wbg.__wbg_metaKey_0735ca81e2ec6c72=(a=>{const b=d(a).metaKey;return b});c.wbg.__wbg_code_bec0d5222298000e=((a,c)=>{const e=d(c).code;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_location_a7e2614c5720fcd7=(a=>{const b=d(a).location;return b});c.wbg.__wbg_isIntersecting_57d03835f2fb0c18=(a=>{const b=d(a).isIntersecting;return b});c.wbg.__wbg_setPointerCapture_739b13a4c8b0c2b0=function(){return B(((a,b)=>{d(a).setPointerCapture(b)}),arguments)};c.wbg.__wbg_contentRect_0ff902e25b5b4c7a=(a=>{const b=d(a).contentRect;return q(b)});c.wbg.__wbg_width_45de62653cf1c40c=(a=>{const b=d(a).width;return b});c.wbg.__wbg_height_333816c9b207333d=(a=>{const b=d(a).height;return b});c.wbg.__wbg_devicePixelContentBoxSize_67d2874a12290f0b=(a=>{const b=d(a).devicePixelContentBoxSize;return q(b)});c.wbg.__wbg_inlineSize_bdd9c1683673d79e=(a=>{const b=d(a).inlineSize;return b});c.wbg.__wbg_blockSize_5d28da4852a3728e=(a=>{const b=d(a).blockSize;return b});c.wbg.__wbg_requestFullscreen_8a94df4e7f757077=(a=>{const b=d(a).requestFullscreen;return q(b)});c.wbg.__wbg_requestAnimationFrame_8c3436f4ac89bc48=function(){return B(((a,b)=>{const c=d(a).requestAnimationFrame(d(b));return c}),arguments)};c.wbg.__wbg_queueMicrotask_693514e3dcae83e6=(a=>{queueMicrotask(g(a))});c.wbg.__wbg_play_5896e5851ba90aa2=(a=>{d(a).play()});c.wbg.__wbg_removeProperty_5acbca68235d0706=function(){return B(((a,c,e,f)=>{const g=d(c).removeProperty(s(e,f));const i=m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);const j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbg_webkitFullscreenElement_a02341d57a641b43=(a=>{const b=d(a).webkitFullscreenElement;return n(b)?au:q(b)});c.wbg.__wbg_fullscreenElement_d39685ee9d78d455=(a=>{const b=d(a).fullscreenElement;return n(b)?au:q(b)});c.wbg.__wbg_is_4b64bc96710d6a0f=((a,b)=>{const c=aR.is(d(a),d(b));return c});c.wbg.__wbg_animate_b321da85ed3f2b4a=((a,b,c)=>{const e=d(a).animate(d(b),d(c));return q(e)});c.wbg.__wbg_webkitRequestFullscreen_42ba1c34171febc6=(a=>{d(a).webkitRequestFullscreen()});c.wbg.__wbg_requestFullscreen_24891df6120b675d=(a=>{const b=d(a).requestFullscreen();return q(b)});c.wbg.__wbg_webkitExitFullscreen_77a6c8d07ec6ee46=(a=>{d(a).webkitExitFullscreen()});c.wbg.__wbg_exitFullscreen_9eef33d4b314e087=(a=>{d(a).exitFullscreen()});c.wbg.__wbg_createElement_e4523490bd0ae51d=function(){return B(((a,b,c)=>{const e=d(a).createElement(s(b,c));return q(e)}),arguments)};c.wbg.__wbg_body_8e909b791b1745d3=(a=>{const b=d(a).body;return n(b)?au:q(b)});c.wbg.__wbg_appendChild_bc4a0deae90a5164=function(){return B(((a,b)=>{const c=d(a).appendChild(d(b));return q(c)}),arguments)};c.wbg.__wbg_getComputedStyle_ec7e113b79b74e98=function(){return B(((a,b)=>{const c=d(a).getComputedStyle(d(b));return n(c)?au:q(c)}),arguments)};c.wbg.__wbg_activeElement_4ab2bc6dcf8da330=(a=>{const b=d(a).activeElement;return n(b)?au:q(b)});c.wbg.__wbg_new_bc395d17a25f9f2f=function(){return B((a=>{const b=new ResizeObserver(d(a));return q(b)}),arguments)};c.wbg.__wbg_setbox_0540f4f0ed4733b6=((a,b)=>{d(a).box=ah[b]});c.wbg.__wbg_observe_e05a589c42476328=((a,b,c)=>{d(a).observe(d(b),d(c))});c.wbg.__wbg_new_4422dda84db10905=function(){return B((a=>{const b=new IntersectionObserver(d(a));return q(b)}),arguments)};c.wbg.__wbg_observe_6f2910a25347a592=((a,b)=>{d(a).observe(d(b))});c.wbg.__wbg_getBoundingClientRect_5ad16be1e2955e83=(a=>{const b=d(a).getBoundingClientRect();return q(b)});c.wbg.__wbg_x_a9a34a1bc15c8dea=(a=>{const b=d(a).x;return b});c.wbg.__wbg_y_4926ebe58a2a92c8=(a=>{const b=d(a).y;return b});c.wbg.__wbindgen_closure_wrapper18160=((a,b,c)=>{const d=v(a,b,aT,w);return q(d)});c.wbg.__wbindgen_closure_wrapper30551=((a,b,c)=>{const d=x(a,b,aU,y);return q(d)});c.wbg.__wbindgen_closure_wrapper30582=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper44360=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45456=((a,b,c)=>{const d=v(a,b,aU,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45976=((a,b,c)=>{const d=v(a,b,aT,w);return q(d)});c.wbg.__wbindgen_closure_wrapper46061=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46073=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46086=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46103=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46120=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46149=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46165=((a,b,c)=>{const d=v(a,b,aT,A);return q(d)});return c});var F=((a,b)=>{a=a>>>au;return j().subarray(a/az,a/az+ b)});var aj=(async(a,b)=>{if(typeof Response===ay&&a instanceof Response){if(typeof WebAssembly.instantiateStreaming===ay){try{return await WebAssembly.instantiateStreaming(a,b)}catch(b){if(a.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`,b)}else{throw b}}};const c=await a.arrayBuffer();return await WebAssembly.instantiate(c,b)}else{const c=await WebAssembly.instantiate(a,b);if(c instanceof WebAssembly.Instance){return {instance:c,module:a}}else{return c}}});var I=((a,b)=>{a=a>>>au;return H().subarray(a/aH,a/aH+ b)});function B(a,c){try{return a.apply(this,c)}catch(a){b.__wbindgen_export_8(q(a))}}var z=((a,c,d)=>{b.__wbindgen_export_5(a,c,q(d))});var q=(a=>{if(e===c.length)c.push(c.length+ az);const b=e;e=c[b];c[b]=a;return b});var E=((a,b)=>{a=a>>>au;return D().subarray(a/aH,a/aH+ b)});var t=(a=>{const b=typeof a;if(b==aB||b==aC||a==at){return `${a}`};if(b==aD){return `"${a}"`};if(b==`symbol`){const b=a.description;if(b==at){return `Symbol`}else{return `Symbol(${b})`}};if(b==ay){const b=a.name;if(typeof b==aD&&b.length>au){return `Function(${b})`}else{return `Function`}};if(ar.isArray(a)){const b=a.length;let c=`[`;if(b>au){c+=t(a[au])};for(let d=az;daz){d=c[az]}else{return toString.call(a)};if(d==aE){try{return `Object(`+ aF(a)+ `)`}catch(a){return aE}};if(a instanceof ax){return `${a.name}: ${a.message}\n${a.stack}`};return d});var A=((a,c,d,e)=>{b.__wbindgen_export_6(a,c,q(d),q(e))});var ao=(async(a)=>{if(b!==aq)return b;if(typeof a!==ap){if(aV(a)===aR.prototype){({module_or_path:a}=a)}else{console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)}};if(typeof a===ap){a=new URL(`magiacircle_bg.wasm`,import.meta.url)};const c=ak();if(typeof a===aD||typeof Request===ay&&a instanceof Request||typeof URL===ay&&a instanceof URL){a=fetch(a)};al(c);const {instance:d,module:e}=await aj(await a,c);return am(d,e)});var an=(a=>{if(b!==aq)return b;if(typeof a!==ap){if(aV(a)===aR.prototype){({module:a}=a)}else{console.warn(`using deprecated parameters for \`initSync()\`; pass a single object instead`)}};const c=ak();al(c);if(!(a instanceof WebAssembly.Module)){a=new WebAssembly.Module(a)};const d=new WebAssembly.Instance(a,c);return am(d,a)});var D=(()=>{if(C===at||C.byteLength===au){C=new Float32Array(b.memory.buffer)};return C});var am=((a,c)=>{b=a.exports;ao.__wbindgen_wasm_module=c;o=at;C=at;G=at;i=at;b.__wbindgen_start();return b});var y=((a,c)=>{b.__wbindgen_export_4(a,c)});var g=(a=>{const b=d(a);f(a);return b});var p=(()=>{if(o===at||o.buffer.detached===!0||o.buffer.detached===aq&&o.buffer!==b.memory.buffer){o=new DataView(b.memory.buffer)};return o});var s=((a,b)=>{a=a>>>au;return r.decode(j().subarray(a,a+ b))});var v=((a,c,d,e)=>{const f={a:a,b:c,cnt:az,dtor:d};const g=(...a)=>{f.cnt++;const c=f.a;f.a=au;try{return e(c,f.b,...a)}finally{if(--f.cnt===au){b.__wbindgen_export_2.get(f.dtor)(c,f.b);u.unregister(f)}else{f.a=c}}};g.original=f;u.register(g,f,f);return g});var m=((a,b,c)=>{if(c===aq){const c=k.encode(a);const d=b(c.length,az)>>>au;j().subarray(d,d+ c.length).set(c);h=c.length;return d};let d=a.length;let e=b(d,az)>>>au;const f=j();let g=au;for(;g127)break;f[e+ g]=b};if(g!==d){if(g!==au){a=a.slice(g)};e=c(e,d,d=g+ a.length*aA,az)>>>au;const b=j().subarray(e+ g,e+ d);const f=l(a,b);g+=f.written;e=c(e,d,g,az)>>>au};h=g;return e});var w=((a,c)=>{b.__wbindgen_export_3(a,c)});var al=((a,b)=>{});var f=(a=>{if(a<132)return;c[a]=e;e=a});var d=(a=>c[a]);var x=((a,c,d,e)=>{const f={a:a,b:c,cnt:az,dtor:d};const g=(...a)=>{f.cnt++;try{return e(f.a,f.b,...a)}finally{if(--f.cnt===au){b.__wbindgen_export_2.get(f.dtor)(f.a,f.b);f.a=au;u.unregister(f)}}};g.original=f;u.register(g,f,f);return g});const a=typeof AudioContext!==ap?AudioContext:(typeof webkitAudioContext!==ap?webkitAudioContext:aq);let b;const c=new ar(128).fill(aq);c.push(aq,at,!0,!1);let e=c.length;let h=au;let i=at;const k=typeof TextEncoder!==ap?new TextEncoder(aw):{encode:()=>{throw ax(`TextEncoder not available`)}};const l=typeof k.encodeInto===ay?((a,b)=>k.encodeInto(a,b)):((a,b)=>{const c=k.encode(a);b.set(c);return {read:a.length,written:c.length}});let o=at;const r=typeof TextDecoder!==ap?new TextDecoder(aw,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw ax(`TextDecoder not available`)}};if(typeof TextDecoder!==ap){r.decode()};const u=typeof aG===ap?{register:()=>{},unregister:()=>{}}:new aG(a=>{b.__wbindgen_export_2.get(a.dtor)(a.a,a.b)});let C=at;let G=at;const J=[`suspended`,`running`,`closed`];const K=[`blob`,`arraybuffer`];const L=[``,`standard`];const M=[`clamp-to-edge`,`repeat`,`mirror-repeat`];const N=[`auto`];const O=[aI,`one`,`src`,`one-minus-src`,`src-alpha`,`one-minus-src-alpha`,`dst`,`one-minus-dst`,`dst-alpha`,`one-minus-dst-alpha`,`src-alpha-saturated`,`constant`,`one-minus-constant`];const P=[`add`,`subtract`,`reverse-subtract`,`min`,`max`];const Q=[`uniform`,`storage`,`read-only-storage`];const R=[`unmapped`,`pending`,`mapped`];const S=[`opaque`,`premultiplied`];const T=[`never`,`less`,`equal`,`less-equal`,`greater`,`not-equal`,`greater-equal`,`always`];const U=[`error`,`warning`,`info`];const V=[aJ,`front`,`back`];const W=[`unknown`,`destroyed`];const X=[`validation`,`out-of-memory`,`internal`];const Y=[`depth-clip-control`,aK,`texture-compression-bc`,`texture-compression-etc2`,`texture-compression-astc`,`timestamp-query`,`indirect-first-instance`,`shader-f16`,`rg11b10ufloat-renderable`,`bgra8unorm-storage`,`float32-filterable`];const Z=[aL,aM];const _=[`ccw`,`cw`];const $=[`uint16`,aN];const a0=[`load`,`clear`];const a1=[aL,aM];const a2=[`low-power`,`high-performance`];const a3=[`point-list`,`line-list`,`line-strip`,`triangle-list`,`triangle-strip`];const a4=[`occlusion`,`timestamp`];const a5=[`filtering`,`non-filtering`,`comparison`];const a6=[`keep`,aI,`replace`,`invert`,`increment-clamp`,`decrement-clamp`,`increment-wrap`,`decrement-wrap`];const a7=[`write-only`,`read-only`,`read-write`];const a8=[`store`,`discard`];const a9=[`all`,`stencil-only`,`depth-only`];const aa=[aO,aP,aQ];const ab=[`r8unorm`,`r8snorm`,`r8uint`,`r8sint`,`r16uint`,`r16sint`,`r16float`,`rg8unorm`,`rg8snorm`,`rg8uint`,`rg8sint`,`r32uint`,`r32sint`,`r32float`,`rg16uint`,`rg16sint`,`rg16float`,`rgba8unorm`,`rgba8unorm-srgb`,`rgba8snorm`,`rgba8uint`,`rgba8sint`,`bgra8unorm`,`bgra8unorm-srgb`,`rgb9e5ufloat`,`rgb10a2uint`,`rgb10a2unorm`,`rg11b10ufloat`,`rg32uint`,`rg32sint`,`rg32float`,`rgba16uint`,`rgba16sint`,`rgba16float`,`rgba32uint`,`rgba32sint`,`rgba32float`,`stencil8`,`depth16unorm`,`depth24plus`,`depth24plus-stencil8`,`depth32float`,aK,`bc1-rgba-unorm`,`bc1-rgba-unorm-srgb`,`bc2-rgba-unorm`,`bc2-rgba-unorm-srgb`,`bc3-rgba-unorm`,`bc3-rgba-unorm-srgb`,`bc4-r-unorm`,`bc4-r-snorm`,`bc5-rg-unorm`,`bc5-rg-snorm`,`bc6h-rgb-ufloat`,`bc6h-rgb-float`,`bc7-rgba-unorm`,`bc7-rgba-unorm-srgb`,`etc2-rgb8unorm`,`etc2-rgb8unorm-srgb`,`etc2-rgb8a1unorm`,`etc2-rgb8a1unorm-srgb`,`etc2-rgba8unorm`,`etc2-rgba8unorm-srgb`,`eac-r11unorm`,`eac-r11snorm`,`eac-rg11unorm`,`eac-rg11snorm`,`astc-4x4-unorm`,`astc-4x4-unorm-srgb`,`astc-5x4-unorm`,`astc-5x4-unorm-srgb`,`astc-5x5-unorm`,`astc-5x5-unorm-srgb`,`astc-6x5-unorm`,`astc-6x5-unorm-srgb`,`astc-6x6-unorm`,`astc-6x6-unorm-srgb`,`astc-8x5-unorm`,`astc-8x5-unorm-srgb`,`astc-8x6-unorm`,`astc-8x6-unorm-srgb`,`astc-8x8-unorm`,`astc-8x8-unorm-srgb`,`astc-10x5-unorm`,`astc-10x5-unorm-srgb`,`astc-10x6-unorm`,`astc-10x6-unorm-srgb`,`astc-10x8-unorm`,`astc-10x8-unorm-srgb`,`astc-10x10-unorm`,`astc-10x10-unorm-srgb`,`astc-12x10-unorm`,`astc-12x10-unorm-srgb`,`astc-12x12-unorm`,`astc-12x12-unorm-srgb`];const ac=[`float`,`unfilterable-float`,`depth`,`sint`,`uint`];const ad=[aO,aP,`2d-array`,`cube`,`cube-array`,aQ];const ae=[`uint8x2`,`uint8x4`,`sint8x2`,`sint8x4`,`unorm8x2`,`unorm8x4`,`snorm8x2`,`snorm8x4`,`uint16x2`,`uint16x4`,`sint16x2`,`sint16x4`,`unorm16x2`,`unorm16x4`,`snorm16x2`,`snorm16x4`,`float16x2`,`float16x4`,`float32`,`float32x2`,`float32x3`,`float32x4`,aN,`uint32x2`,`uint32x3`,`uint32x4`,`sint32`,`sint32x2`,`sint32x3`,`sint32x4`,`unorm10-10-10-2`];const af=[`vertex`,`instance`];const ag=[aJ,`premultiply`,`default`];const ah=[`border-box`,`content-box`,`device-pixel-content-box`];const ai=[`hidden`,`visible`];export default ao;export{an as initSync} \ No newline at end of file diff --git a/docs/magiacircle-b4af609aae1fb5f7.js b/docs/magiacircle-b4af609aae1fb5f7.js new file mode 100644 index 0000000..d5fa65d --- /dev/null +++ b/docs/magiacircle-b4af609aae1fb5f7.js @@ -0,0 +1 @@ +let az=1,aw=`utf-8`,aM=`linear`,aU=3223,at=null,aQ=`3d`,aC=`boolean`,ap=`undefined`,aL=`nearest`,aJ=`none`,aB=`number`,aN=`uint32`,ay=`function`,aO=`1d`,aP=`2d`,au=0,aT=4406,aH=4,aD=`string`,aA=3,aK=`depth32float-stencil8`,aE=`Object`,aI=`zero`,ar=Array,aS=Array.of,ax=Error,aG=FinalizationRegistry,aF=JSON.stringify,aR=Object,aV=Object.getPrototypeOf,av=Uint8Array,aq=undefined;var aj=(async(a,b)=>{if(typeof Response===ay&&a instanceof Response){if(typeof WebAssembly.instantiateStreaming===ay){try{return await WebAssembly.instantiateStreaming(a,b)}catch(b){if(a.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`,b)}else{throw b}}};const c=await a.arrayBuffer();return await WebAssembly.instantiate(c,b)}else{const c=await WebAssembly.instantiate(a,b);if(c instanceof WebAssembly.Instance){return {instance:c,module:a}}else{return c}}});var I=((a,b)=>{a=a>>>au;return H().subarray(a/aH,a/aH+ b)});var q=(a=>{if(e===c.length)c.push(c.length+ az);const b=e;e=c[b];c[b]=a;return b});var z=((a,c,d)=>{b.__wbindgen_export_5(a,c,q(d))});var g=(a=>{const b=d(a);f(a);return b});var w=((a,c)=>{b.__wbindgen_export_3(a,c)});var y=((a,c)=>{b.__wbindgen_export_4(a,c)});var E=((a,b)=>{a=a>>>au;return D().subarray(a/aH,a/aH+ b)});var n=(a=>a===aq||a===at);var f=(a=>{if(a<132)return;c[a]=e;e=a});function B(a,c){try{return a.apply(this,c)}catch(a){b.__wbindgen_export_8(q(a))}}var A=((a,c,d,e)=>{b.__wbindgen_export_6(a,c,q(d),q(e))});var an=(a=>{if(b!==aq)return b;if(typeof a!==ap){if(aV(a)===aR.prototype){({module:a}=a)}else{console.warn(`using deprecated parameters for \`initSync()\`; pass a single object instead`)}};const c=ak();al(c);if(!(a instanceof WebAssembly.Module)){a=new WebAssembly.Module(a)};const d=new WebAssembly.Instance(a,c);return am(d,a)});var p=(()=>{if(o===at||o.buffer.detached===!0||o.buffer.detached===aq&&o.buffer!==b.memory.buffer){o=new DataView(b.memory.buffer)};return o});var al=((a,b)=>{});var F=((a,b)=>{a=a>>>au;return j().subarray(a/az,a/az+ b)});var v=((a,c,d,e)=>{const f={a:a,b:c,cnt:az,dtor:d};const g=(...a)=>{f.cnt++;const c=f.a;f.a=au;try{return e(c,f.b,...a)}finally{if(--f.cnt===au){b.__wbindgen_export_2.get(f.dtor)(c,f.b);u.unregister(f)}else{f.a=c}}};g.original=f;u.register(g,f,f);return g});var d=(a=>c[a]);var m=((a,b,c)=>{if(c===aq){const c=k.encode(a);const d=b(c.length,az)>>>au;j().subarray(d,d+ c.length).set(c);h=c.length;return d};let d=a.length;let e=b(d,az)>>>au;const f=j();let g=au;for(;g127)break;f[e+ g]=b};if(g!==d){if(g!==au){a=a.slice(g)};e=c(e,d,d=g+ a.length*aA,az)>>>au;const b=j().subarray(e+ g,e+ d);const f=l(a,b);g+=f.written;e=c(e,d,g,az)>>>au};h=g;return e});var H=(()=>{if(G===at||G.byteLength===au){G=new Uint32Array(b.memory.buffer)};return G});var t=(a=>{const b=typeof a;if(b==aB||b==aC||a==at){return `${a}`};if(b==aD){return `"${a}"`};if(b==`symbol`){const b=a.description;if(b==at){return `Symbol`}else{return `Symbol(${b})`}};if(b==ay){const b=a.name;if(typeof b==aD&&b.length>au){return `Function(${b})`}else{return `Function`}};if(ar.isArray(a)){const b=a.length;let c=`[`;if(b>au){c+=t(a[au])};for(let d=az;daz){d=c[az]}else{return toString.call(a)};if(d==aE){try{return `Object(`+ aF(a)+ `)`}catch(a){return aE}};if(a instanceof ax){return `${a.name}: ${a.message}\n${a.stack}`};return d});var x=((a,c,d,e)=>{const f={a:a,b:c,cnt:az,dtor:d};const g=(...a)=>{f.cnt++;try{return e(f.a,f.b,...a)}finally{if(--f.cnt===au){b.__wbindgen_export_2.get(f.dtor)(f.a,f.b);f.a=au;u.unregister(f)}}};g.original=f;u.register(g,f,f);return g});var am=((a,c)=>{b=a.exports;ao.__wbindgen_wasm_module=c;o=at;C=at;G=at;i=at;b.__wbindgen_start();return b});var ao=(async(a)=>{if(b!==aq)return b;if(typeof a!==ap){if(aV(a)===aR.prototype){({module_or_path:a}=a)}else{console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)}};if(typeof a===ap){a=new URL(`magiacircle_bg.wasm`,import.meta.url)};const c=ak();if(typeof a===aD||typeof Request===ay&&a instanceof Request||typeof URL===ay&&a instanceof URL){a=fetch(a)};al(c);const {instance:d,module:e}=await aj(await a,c);return am(d,e)});var j=(()=>{if(i===at||i.byteLength===au){i=new av(b.memory.buffer)};return i});var ak=(()=>{const c={};c.wbg={};c.wbg.__wbg_getItem_cc312d333f535f07=function(){return B(((a,c,e,f)=>{const g=d(c).getItem(s(e,f));var i=n(g)?au:m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);var j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbindgen_object_drop_ref=(a=>{g(a)});c.wbg.__wbg_Window_f4441e69cbceafcc=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbindgen_is_undefined=(a=>{const b=d(a)===aq;return b});c.wbg.__wbg_fetch_bfd3aa46955593c3=((a,b,c)=>{const e=d(a).fetch(s(b,c));return q(e)});c.wbg.__wbg_WorkerGlobalScope_2500166acca3df02=(a=>{const b=d(a).WorkerGlobalScope;return q(b)});c.wbg.__wbg_fetch_896e530c3d511c11=((a,b,c)=>{const e=d(a).fetch(s(b,c));return q(e)});c.wbg.__wbg_instanceof_Response_3c0e210a57ff751d=(a=>{let b;try{b=d(a) instanceof Response}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_status_5f4e900d22140a18=(a=>{const b=d(a).status;return b});c.wbg.__wbg_arrayBuffer_144729e09879650e=function(){return B((a=>{const b=d(a).arrayBuffer();return q(b)}),arguments)};c.wbg.__wbg_new_fec2611eb9180f95=(a=>{const b=new av(d(a));return q(b)});c.wbg.__wbg_stringify_eead5648c09faaf8=function(){return B((a=>{const b=aF(d(a));return q(b)}),arguments)};c.wbg.__wbindgen_string_get=((a,c)=>{const e=d(c);const f=typeof e===aD?e:aq;var g=n(f)?au:m(f,b.__wbindgen_export_0,b.__wbindgen_export_1);var i=h;p().setInt32(a+ aH*az,i,!0);p().setInt32(a+ aH*au,g,!0)});c.wbg.__wbg_now_70af4fe37a792251=(()=>{const a=Date.now();return a});c.wbg.__wbg_isSecureContext_8a5cdec3d92171bf=(a=>{const b=d(a).isSecureContext;return b});c.wbg.__wbg_document_d7fa2c739c2b191a=(a=>{const b=d(a).document;return n(b)?au:q(b)});c.wbg.__wbg_querySelector_e4353fe90bee0601=function(){return B(((a,b,c)=>{const e=d(a).querySelector(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_instanceof_HtmlCanvasElement_022ad88c76df9031=(a=>{let b;try{b=d(a) instanceof HTMLCanvasElement}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_devicePixelRatio_5d0556383aa83231=(a=>{const b=d(a).devicePixelRatio;return b});c.wbg.__wbindgen_object_clone_ref=(a=>{const b=d(a);return q(b)});c.wbg.__wbg_style_04eb1488bc2ceffc=(a=>{const b=d(a).style;return q(b)});c.wbg.__wbg_eval_1bab7c4fbae3b3d6=function(){return B(((a,b)=>{const c=eval(s(a,b));return q(c)}),arguments)};c.wbg.__wbindgen_boolean_get=(a=>{const b=d(a);const c=typeof b===aC?(b?az:au):2;return c});c.wbg.__wbg_new_e69b5f66fda8f13c=(()=>{const a=new aR();return q(a)});c.wbg.__wbg_setsamplerate_8b48d6e377fe52c9=((a,b)=>{d(a).sampleRate=b});c.wbg.__wbg_newwithcontextoptions_f939c627726d873f=function(){return B((b=>{const c=new a(d(b));return q(c)}),arguments)};c.wbg.__wbg_destination_f7f82a0a30ca8bba=(a=>{const b=d(a).destination;return q(b)});c.wbg.__wbg_maxChannelCount_af37d88907a11748=(a=>{const b=d(a).maxChannelCount;return b});c.wbg.__wbg_setchannelCount_84446ba10ba82eb1=((a,b)=>{d(a).channelCount=b>>>au});c.wbg.__wbg_createBuffer_8acdf99f8dc5d697=function(){return B(((a,b,c,e)=>{const f=d(a).createBuffer(b>>>au,c>>>au,e);return q(f)}),arguments)};c.wbg.__wbg_resume_9c4295ca96d8c40a=function(){return B((a=>{const b=d(a).resume();return q(b)}),arguments)};c.wbg.__wbg_mark_40e050a77cc39fea=((a,b)=>{performance.mark(s(a,b))});c.wbg.__wbg_log_c9486ca5d8e2cbe8=((a,c)=>{let d;let e;try{d=a;e=c;console.log(s(a,c))}finally{b.__wbindgen_export_7(d,e,az)}});c.wbg.__wbg_log_aba5996d9bde071f=((a,c,d,e,f,g,h,i)=>{let j;let k;try{j=a;k=c;console.log(s(a,c),s(d,e),s(f,g),s(h,i))}finally{b.__wbindgen_export_7(j,k,az)}});c.wbg.__wbg_localStorage_6026615061e890bf=function(){return B((a=>{const b=d(a).localStorage;return n(b)?au:q(b)}),arguments)};c.wbg.__wbg_instanceof_MessageEvent_a025220a70647214=(a=>{let b;try{b=d(a) instanceof MessageEvent}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_data_134d3a704b9fca32=(a=>{const b=d(a).data;return q(b)});c.wbg.__wbindgen_is_string=(a=>{const b=typeof d(a)===aD;return b});c.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7=(a=>{let b;try{b=d(a) instanceof ArrayBuffer}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_readyState_bc0231e8c43b0907=(a=>{const b=d(a).readyState;return b});c.wbg.__wbg_send_f308b110e144e90d=function(){return B(((a,b,c)=>{d(a).send(s(b,c))}),arguments)};c.wbg.__wbg_send_fe006eb24f5e2694=function(){return B(((a,b,c)=>{d(a).send(F(b,c))}),arguments)};c.wbg.__wbg_new_d550f7a7120dd942=function(){return B(((a,b)=>{const c=new WebSocket(s(a,b));return q(c)}),arguments)};c.wbg.__wbg_setbinaryType_2befea8ba88b61e2=((a,b)=>{d(a).binaryType=K[b]});c.wbg.__wbg_setonerror_e16deca7fd15a59c=((a,b)=>{d(a).onerror=d(b)});c.wbg.__wbg_setonopen_c0e1464e3ea28727=((a,b)=>{d(a).onopen=d(b)});c.wbg.__wbg_setonmessage_84cd941c1df08da7=((a,b)=>{d(a).onmessage=d(b)});c.wbg.__wbg_setonclose_9a28780f7d46ed03=((a,b)=>{d(a).onclose=d(b)});c.wbg.__wbg_exitPointerLock_42de2c91cfcc3203=(a=>{d(a).exitPointerLock()});c.wbg.__wbg_requestPointerLock_322607e3bc628f7a=(a=>{d(a).requestPointerLock()});c.wbg.__wbg_new_abda76e883ba8a5f=(()=>{const a=new ax();return q(a)});c.wbg.__wbg_stack_658279fe44541cf6=((a,c)=>{const e=d(c).stack;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_error_f851667af71bcfc6=((a,c)=>{let d;let e;try{d=a;e=c;console.error(s(a,c))}finally{b.__wbindgen_export_7(d,e,az)}});c.wbg.__wbg_crypto_1d1f22824a6a080c=(a=>{const b=d(a).crypto;return q(b)});c.wbg.__wbindgen_is_object=(a=>{const b=d(a);const c=typeof b===`object`&&b!==at;return c});c.wbg.__wbg_process_4a72847cc503995b=(a=>{const b=d(a).process;return q(b)});c.wbg.__wbg_versions_f686565e586dd935=(a=>{const b=d(a).versions;return q(b)});c.wbg.__wbg_node_104a2ff8d6ea03a2=(a=>{const b=d(a).node;return q(b)});c.wbg.__wbg_require_cca90b1a94a0255b=function(){return B((()=>{const a=module.require;return q(a)}),arguments)};c.wbg.__wbindgen_is_function=(a=>{const b=typeof d(a)===ay;return b});c.wbg.__wbindgen_string_new=((a,b)=>{const c=s(a,b);return q(c)});c.wbg.__wbg_msCrypto_eb05e62b530a1508=(a=>{const b=d(a).msCrypto;return q(b)});c.wbg.__wbg_newwithlength_76462a666eca145f=(a=>{const b=new av(a>>>au);return q(b)});c.wbg.__wbg_subarray_975a06f9dbd16995=((a,b,c)=>{const e=d(a).subarray(b>>>au,c>>>au);return q(e)});c.wbg.__wbg_getRandomValues_3aa56aa6edec874c=function(){return B(((a,b)=>{d(a).getRandomValues(d(b))}),arguments)};c.wbg.__wbindgen_memory=(()=>{const a=b.memory;return q(a)});c.wbg.__wbg_buffer_ccaed51a635d8a2d=(a=>{const b=d(a).buffer;return q(b)});c.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730=((a,b,c)=>{const e=new av(d(a),b>>>au,c>>>au);return q(e)});c.wbg.__wbg_randomFillSync_5c9c955aa56b6049=function(){return B(((a,b)=>{d(a).randomFillSync(g(b))}),arguments)};c.wbg.__wbg_navigator_3d3836196a5d8e62=(a=>{const b=d(a).navigator;return q(b)});c.wbg.__wbg_getGamepads_e54b0e9135685af3=function(){return B((a=>{const b=d(a).getGamepads();return q(b)}),arguments)};c.wbg.__wbg_length_f217bbbf7e8e4df4=(a=>{const b=d(a).length;return b});c.wbg.__wbg_index_8cbd5ff3bd795787=(a=>{const b=d(a).index;return b});c.wbg.__wbg_buttons_eb461fd639ddcc20=(a=>{const b=d(a).buttons;return q(b)});c.wbg.__wbg_get_5419cf6b954aa11d=((a,b)=>{const c=d(a)[b>>>au];return q(c)});c.wbg.__wbg_pressed_90d9818eedea0eef=(a=>{const b=d(a).pressed;return b});c.wbg.__wbg_value_9792b33c816e47af=(a=>{const b=d(a).value;return b});c.wbg.__wbg_axes_2a36e14aa82eefc9=(a=>{const b=d(a).axes;return q(b)});c.wbg.__wbindgen_number_get=((a,b)=>{const c=d(b);const e=typeof c===aB?c:aq;p().setFloat64(a+ 8*az,n(e)?au:e,!0);p().setInt32(a+ aH*au,!n(e),!0)});c.wbg.__wbindgen_is_null=(a=>{const b=d(a)===at;return b});c.wbg.__wbg_instanceof_DomException_9c87cb6f93f43379=(a=>{let b;try{b=d(a) instanceof DOMException}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_message_c7a4c5995cc33e84=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_id_8c477b5e4084ecfb=((a,c)=>{const e=d(c).id;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_new_800498ec872f75d4=((a,b,c,d)=>{const e=new RegExp(s(a,b),s(c,d));return q(e)});c.wbg.__wbg_exec_c872ad5c15e456ad=((a,b,c)=>{const e=d(a).exec(s(b,c));return n(e)?au:q(e)});c.wbg.__wbg_mapping_bbf7356861bbea3a=(a=>{const b=d(a).mapping;return (L.indexOf(b)+ az||aA)- az});c.wbg.__wbg_connected_db62337c768c2467=(a=>{const b=d(a).connected;return b});c.wbg.__wbg_self_bf91bf94d9e04084=function(){return B((()=>{const a=self.self;return q(a)}),arguments)};c.wbg.__wbg_window_52dd9f07d03fd5f8=function(){return B((()=>{const a=window.window;return q(a)}),arguments)};c.wbg.__wbg_globalThis_05c129bf37fcf1be=function(){return B((()=>{const a=globalThis.globalThis;return q(a)}),arguments)};c.wbg.__wbg_global_3eca19bb09e9c484=function(){return B((()=>{const a=global.global;return q(a)}),arguments)};c.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43=((a,b)=>{const c=new Function(s(a,b));return q(c)});c.wbg.__wbg_call_a9ef466721e824f2=function(){return B(((a,b)=>{const c=d(a).call(d(b));return q(c)}),arguments)};c.wbg.__wbg_call_3bfa248576352471=function(){return B(((a,b,c)=>{const e=d(a).call(d(b),d(c));return q(e)}),arguments)};c.wbg.__wbg_set_e864d25d9b399c9f=function(){return B(((a,b,c)=>{const e=Reflect.set(d(a),d(b),d(c));return e}),arguments)};c.wbg.__wbg_set_ec2fcf81bc573fd9=((a,b,c)=>{d(a).set(d(b),c>>>au)});c.wbg.__wbg_length_9254c4bd3b9f23c4=(a=>{const b=d(a).length;return b});c.wbg.__wbindgen_cb_drop=(a=>{const b=g(a).original;if(b.cnt--==az){b.a=au;return !0};const c=!1;return c});c.wbg.__wbg_currentTime_a3102f1ef74fca96=(a=>{const b=d(a).currentTime;return b});c.wbg.__wbg_createBufferSource_ed2df6b1d0df0f14=function(){return B((a=>{const b=d(a).createBufferSource();return q(b)}),arguments)};c.wbg.__wbg_setbuffer_f4457f8f6a733e5a=((a,b)=>{d(a).buffer=d(b)});c.wbg.__wbg_connect_9a09c3bcaa0c9d22=function(){return B(((a,b)=>{const c=d(a).connect(d(b));return q(c)}),arguments)};c.wbg.__wbg_setonended_95d7e5856cbda569=((a,b)=>{d(a).onended=d(b)});c.wbg.__wbg_start_c5bab011493fb2be=function(){return B(((a,b)=>{d(a).start(b)}),arguments)};c.wbg.__wbg_copyToChannel_4f1f6f3395215459=function(){return B(((a,b,c,e)=>{d(a).copyToChannel(E(b,c),e)}),arguments)};c.wbg.__wbg_close_a65253886601b1ee=function(){return B((a=>{const b=d(a).close();return q(b)}),arguments)};c.wbg.__wbg_measure_aa7a73f17813f708=function(){return B(((a,c,d,e)=>{let f;let g;let h;let i;try{f=a;g=c;h=d;i=e;performance.measure(s(a,c),s(d,e))}finally{b.__wbindgen_export_7(f,g,az);b.__wbindgen_export_7(h,i,az)}}),arguments)};c.wbg.__wbindgen_throw=((a,b)=>{throw new ax(s(a,b))});c.wbg.__wbindgen_debug_string=((a,c)=>{const e=t(d(c));const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_queueMicrotask_848aa4969108a57e=(a=>{const b=d(a).queueMicrotask;return q(b)});c.wbg.__wbg_resolve_0aad7c1484731c99=(a=>{const b=Promise.resolve(d(a));return q(b)});c.wbg.__wbg_then_748f75edfb032440=((a,b)=>{const c=d(a).then(d(b));return q(c)});c.wbg.__wbg_queueMicrotask_c5419c06eab41e73=(a=>{queueMicrotask(d(a))});c.wbg.__wbg_then_4866a7d9f55d8f3e=((a,b,c)=>{const e=d(a).then(d(b),d(c));return q(e)});c.wbg.__wbg_instanceof_Window_6575cd7f1322f82f=(a=>{let b;try{b=d(a) instanceof Window}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_new_75169ae5a9683c55=function(){return B((()=>{const a=new AbortController();return q(a)}),arguments)};c.wbg.__wbg_setProperty_b9a2384cbfb499fb=function(){return B(((a,b,c,e,f)=>{d(a).setProperty(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_visibilityState_5e9ade0fb5df3c9c=(a=>{const b=d(a).visibilityState;return (ai.indexOf(b)+ az||aA)- az});c.wbg.__wbg_setAttribute_2a8f647a8d92c712=function(){return B(((a,b,c,e,f)=>{d(a).setAttribute(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_addEventListener_4357f9b7b3826784=function(){return B(((a,b,c,e)=>{d(a).addEventListener(s(b,c),d(e))}),arguments)};c.wbg.__wbg_removeEventListener_4c13d11156153514=function(){return B(((a,b,c,e)=>{d(a).removeEventListener(s(b,c),d(e))}),arguments)};c.wbg.__wbg_focus_6b6181f7644f6dbc=function(){return B((a=>{d(a).focus()}),arguments)};c.wbg.__wbg_addListener_503d439bc3f84ff3=function(){return B(((a,b)=>{d(a).addListener(d(b))}),arguments)};c.wbg.__wbg_new_e207405ddca58ee2=function(){return B((()=>{const a=new MessageChannel();return q(a)}),arguments)};c.wbg.__wbg_postMessage_5109299871335137=function(){return B(((a,b)=>{d(a).postMessage(d(b))}),arguments)};c.wbg.__wbg_setItem_5afc04d5b6287c76=function(){return B(((a,b,c,e,f)=>{d(a).setItem(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_revokeObjectURL_8e72bad4541bdca0=function(){return B(((a,b)=>{URL.revokeObjectURL(s(a,b))}),arguments)};c.wbg.__wbg_close_9e3b743c528a8d31=function(){return B((a=>{d(a).close()}),arguments)};c.wbg.__wbg_matchMedia_2c5a513148e49e4a=function(){return B(((a,b,c)=>{const e=d(a).matchMedia(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_cancelAnimationFrame_f802bc3f3a9b2e5c=function(){return B(((a,b)=>{d(a).cancelAnimationFrame(b)}),arguments)};c.wbg.__wbg_setTimeout_e5d5b865335ce177=function(){return B(((a,b,c)=>{const e=d(a).setTimeout(d(b),c);return e}),arguments)};c.wbg.__wbg_performance_a1b8bde2ee512264=(a=>{const b=d(a).performance;return q(b)});c.wbg.__wbg_now_abd80e969af37148=(a=>{const b=d(a).now();return b});c.wbg.__wbg_instanceof_GpuDeviceLostInfo_22f963b61044b3b1=(a=>{let b;try{b=d(a) instanceof GPUDeviceLostInfo}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_reason_3af8e4afbe0efdd8=(a=>{const b=d(a).reason;return (W.indexOf(b)+ az||aA)- az});c.wbg.__wbg_message_3bef8c43f84eab9c=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbindgen_number_new=(a=>{const b=a;return q(b)});c.wbg.__wbg_Window_94d759f1f207a15b=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbg_gpu_1f3675e2d4aa88f4=(a=>{const b=d(a).gpu;return q(b)});c.wbg.__wbg_WorkerGlobalScope_b13c8cef62388de9=(a=>{const b=d(a).WorkerGlobalScope;return q(b)});c.wbg.__wbg_navigator_4093e51a109a906e=(a=>{const b=d(a).navigator;return q(b)});c.wbg.__wbg_instanceof_GpuCanvasContext_b3bff0de75efe6fd=(a=>{let b;try{b=d(a) instanceof GPUCanvasContext}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_instanceof_GpuAdapter_32bc80c8c30adaa0=(a=>{let b;try{b=d(a) instanceof GPUAdapter}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_queue_2bddd1700cb0bec2=(a=>{const b=d(a).queue;return q(b)});c.wbg.__wbg_has_1509b2ce6759dc2a=((a,b,c)=>{const e=d(a).has(s(b,c));return e});c.wbg.__wbg_maxTextureDimension1D_ea59b0f0cc2e29cd=(a=>{const b=d(a).maxTextureDimension1D;return b});c.wbg.__wbg_maxTextureDimension2D_00984ba245729ced=(a=>{const b=d(a).maxTextureDimension2D;return b});c.wbg.__wbg_maxTextureDimension3D_95c3d3adb6d66ec5=(a=>{const b=d(a).maxTextureDimension3D;return b});c.wbg.__wbg_maxTextureArrayLayers_68f4a1218a54fa93=(a=>{const b=d(a).maxTextureArrayLayers;return b});c.wbg.__wbg_maxBindGroups_e76fb8650a4459d7=(a=>{const b=d(a).maxBindGroups;return b});c.wbg.__wbg_maxBindingsPerBindGroup_2af20f39aef3fd86=(a=>{const b=d(a).maxBindingsPerBindGroup;return b});c.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_074c891075b375b7=(a=>{const b=d(a).maxDynamicUniformBuffersPerPipelineLayout;return b});c.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_b91e3e6efb7b7a8c=(a=>{const b=d(a).maxDynamicStorageBuffersPerPipelineLayout;return b});c.wbg.__wbg_maxSampledTexturesPerShaderStage_76354979d03a2b27=(a=>{const b=d(a).maxSampledTexturesPerShaderStage;return b});c.wbg.__wbg_maxSamplersPerShaderStage_fe8d223de90e5459=(a=>{const b=d(a).maxSamplersPerShaderStage;return b});c.wbg.__wbg_maxStorageBuffersPerShaderStage_bced69629145d26d=(a=>{const b=d(a).maxStorageBuffersPerShaderStage;return b});c.wbg.__wbg_maxStorageTexturesPerShaderStage_fcf51f22620c0092=(a=>{const b=d(a).maxStorageTexturesPerShaderStage;return b});c.wbg.__wbg_maxUniformBuffersPerShaderStage_b3b013238400f0c0=(a=>{const b=d(a).maxUniformBuffersPerShaderStage;return b});c.wbg.__wbg_maxUniformBufferBindingSize_194fd7147cf2e95a=(a=>{const b=d(a).maxUniformBufferBindingSize;return b});c.wbg.__wbg_maxStorageBufferBindingSize_78504383af63ac53=(a=>{const b=d(a).maxStorageBufferBindingSize;return b});c.wbg.__wbg_maxVertexBuffers_78c71ff19beac74b=(a=>{const b=d(a).maxVertexBuffers;return b});c.wbg.__wbg_maxBufferSize_0c7ed57407582d40=(a=>{const b=d(a).maxBufferSize;return b});c.wbg.__wbg_maxVertexAttributes_c11cb018a9c5a224=(a=>{const b=d(a).maxVertexAttributes;return b});c.wbg.__wbg_maxVertexBufferArrayStride_c53560cc036cb477=(a=>{const b=d(a).maxVertexBufferArrayStride;return b});c.wbg.__wbg_minUniformBufferOffsetAlignment_4880e6786cb7ec5d=(a=>{const b=d(a).minUniformBufferOffsetAlignment;return b});c.wbg.__wbg_minStorageBufferOffsetAlignment_9913f200aee2c749=(a=>{const b=d(a).minStorageBufferOffsetAlignment;return b});c.wbg.__wbg_maxInterStageShaderComponents_f9243ac86242eb18=(a=>{const b=d(a).maxInterStageShaderComponents;return b});c.wbg.__wbg_maxColorAttachments_d33b1d22c06a6fc5=(a=>{const b=d(a).maxColorAttachments;return b});c.wbg.__wbg_maxColorAttachmentBytesPerSample_637fd3ac394c14ee=(a=>{const b=d(a).maxColorAttachmentBytesPerSample;return b});c.wbg.__wbg_maxComputeWorkgroupStorageSize_7e5bc378e5a62367=(a=>{const b=d(a).maxComputeWorkgroupStorageSize;return b});c.wbg.__wbg_maxComputeInvocationsPerWorkgroup_1ed5b24d52720f8a=(a=>{const b=d(a).maxComputeInvocationsPerWorkgroup;return b});c.wbg.__wbg_maxComputeWorkgroupSizeX_56b713fb17f8c261=(a=>{const b=d(a).maxComputeWorkgroupSizeX;return b});c.wbg.__wbg_maxComputeWorkgroupSizeY_13040bdf12fd4e65=(a=>{const b=d(a).maxComputeWorkgroupSizeY;return b});c.wbg.__wbg_maxComputeWorkgroupSizeZ_8c8594730967472d=(a=>{const b=d(a).maxComputeWorkgroupSizeZ;return b});c.wbg.__wbg_maxComputeWorkgroupsPerDimension_4094c8501eea36ce=(a=>{const b=d(a).maxComputeWorkgroupsPerDimension;return b});c.wbg.__wbg_new_034f913e7636e987=(()=>{const a=new ar();return q(a)});c.wbg.__wbg_push_36cf4d81d7da33d1=((a,b)=>{const c=d(a).push(d(b));return c});c.wbg.__wbg_createRenderPipeline_2bfc852ce09914fc=((a,b)=>{const c=d(a).createRenderPipeline(d(b));return q(c)});c.wbg.__wbg_error_c4453561fa6c2209=(a=>{const b=d(a).error;return q(b)});c.wbg.__wbg_valueOf_caadbb280a0b350a=(a=>{const b=d(a).valueOf();return q(b)});c.wbg.__wbg_instanceof_GpuValidationError_776dc042f9752ecb=(a=>{let b;try{b=d(a) instanceof GPUValidationError}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_message_e73620d927b54373=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_instanceof_GpuOutOfMemoryError_3621d9e8ec05691e=(a=>{let b;try{b=d(a) instanceof GPUOutOfMemoryError}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_instanceof_Object_4bbac482eda9b711=(a=>{let b;try{b=d(a) instanceof aR}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_buffer_95102df5554646dc=(a=>{const b=d(a).buffer;return q(b)});c.wbg.__wbg_writeBuffer_4245ce84e6d772c9=((a,b,c,e,f,g)=>{d(a).writeBuffer(d(b),c,d(e),f,g)});c.wbg.__wbg_querySelectorAll_28e417f74795a70f=function(){return B(((a,b,c)=>{const e=d(a).querySelectorAll(s(b,c));return q(e)}),arguments)};c.wbg.__wbg_get_602f2a39a831c929=((a,b)=>{const c=d(a)[b>>>au];return n(c)?au:q(c)});c.wbg.__wbg_getContext_211e7f0e615215a4=function(){return B(((a,b,c)=>{const e=d(a).getContext(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_getContext_bf8985355a4d22ca=function(){return B(((a,b,c)=>{const e=d(a).getContext(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_requestAdapter_e6f12701c7a38391=((a,b)=>{const c=d(a).requestAdapter(d(b));return q(c)});c.wbg.__wbg_requestDevice_727ad8687b0d6553=((a,b)=>{const c=d(a).requestDevice(d(b));return q(c)});c.wbg.__wbg_features_b56ebab8f515839e=(a=>{const b=d(a).features;return q(b)});c.wbg.__wbg_limits_be2f592b5e154a3d=(a=>{const b=d(a).limits;return q(b)});c.wbg.__wbg_getPreferredCanvasFormat_012ef9f3b0238ffa=(a=>{const b=d(a).getPreferredCanvasFormat();return (ab.indexOf(b)+ az||96)- az});c.wbg.__wbg_setwidth_23bf2deedd907275=((a,b)=>{d(a).width=b>>>au});c.wbg.__wbg_setheight_239dc283bbe50da4=((a,b)=>{d(a).height=b>>>au});c.wbg.__wbg_setwidth_e02ce7ae3e45c1b6=((a,b)=>{d(a).width=b>>>au});c.wbg.__wbg_setheight_45e518143d1ca78f=((a,b)=>{d(a).height=b>>>au});c.wbg.__wbg_configure_6cde48f0c99a3497=((a,b)=>{d(a).configure(d(b))});c.wbg.__wbg_getCurrentTexture_95b5b88416fdb0c2=(a=>{const b=d(a).getCurrentTexture();return q(b)});c.wbg.__wbg_features_4991b2a28904a253=(a=>{const b=d(a).features;return q(b)});c.wbg.__wbg_limits_1aa8a49e0a8442cc=(a=>{const b=d(a).limits;return q(b)});c.wbg.__wbg_createShaderModule_036b780a18124d9e=((a,b)=>{const c=d(a).createShaderModule(d(b));return q(c)});c.wbg.__wbg_createBindGroupLayout_313b4151e718ff1f=((a,b)=>{const c=d(a).createBindGroupLayout(d(b));return q(c)});c.wbg.__wbg_createBindGroup_2d6778f92445c8bf=((a,b)=>{const c=d(a).createBindGroup(d(b));return q(c)});c.wbg.__wbg_createPipelineLayout_9134c6c32c505ec8=((a,b)=>{const c=d(a).createPipelineLayout(d(b));return q(c)});c.wbg.__wbg_createComputePipeline_02674342979c6288=((a,b)=>{const c=d(a).createComputePipeline(d(b));return q(c)});c.wbg.__wbg_createBuffer_65c2fc555c46aa07=((a,b)=>{const c=d(a).createBuffer(d(b));return q(c)});c.wbg.__wbg_createTexture_5adbcf0db3fd41b4=((a,b)=>{const c=d(a).createTexture(d(b));return q(c)});c.wbg.__wbg_createSampler_942022241ecf4277=((a,b)=>{const c=d(a).createSampler(d(b));return q(c)});c.wbg.__wbg_createQuerySet_424dbf8130140914=((a,b)=>{const c=d(a).createQuerySet(d(b));return q(c)});c.wbg.__wbg_createCommandEncoder_1db1770ea9eab9af=((a,b)=>{const c=d(a).createCommandEncoder(d(b));return q(c)});c.wbg.__wbg_createRenderBundleEncoder_32896e68340fabc6=((a,b)=>{const c=d(a).createRenderBundleEncoder(d(b));return q(c)});c.wbg.__wbg_lost_42410660a8cd8819=(a=>{const b=d(a).lost;return q(b)});c.wbg.__wbg_destroy_4f7ed2bbb4742899=(a=>{d(a).destroy()});c.wbg.__wbg_setonuncapturederror_4e4946a65c61f3ef=((a,b)=>{d(a).onuncapturederror=d(b)});c.wbg.__wbg_pushErrorScope_a09c8b037ab27e15=((a,b)=>{d(a).pushErrorScope(X[b])});c.wbg.__wbg_popErrorScope_f8f0d4b6d5c635f9=(a=>{const b=d(a).popErrorScope();return q(b)});c.wbg.__wbg_mapAsync_3b0a03a892fb22b3=((a,b,c,e)=>{const f=d(a).mapAsync(b>>>au,c,e);return q(f)});c.wbg.__wbg_getMappedRange_1216b00d6d7803de=((a,b,c)=>{const e=d(a).getMappedRange(b,c);return q(e)});c.wbg.__wbg_unmap_7a0dddee82ac6ed3=(a=>{d(a).unmap()});c.wbg.__wbg_createView_0ab0576f1665c9ad=((a,b)=>{const c=d(a).createView(d(b));return q(c)});c.wbg.__wbg_destroy_199808599201ee27=(a=>{d(a).destroy()});c.wbg.__wbg_destroy_57694ff5aabbf32d=(a=>{d(a).destroy()});c.wbg.__wbg_getBindGroupLayout_a0d36a72bd39bb04=((a,b)=>{const c=d(a).getBindGroupLayout(b>>>au);return q(c)});c.wbg.__wbg_getBindGroupLayout_abc654a192f85d5e=((a,b)=>{const c=d(a).getBindGroupLayout(b>>>au);return q(c)});c.wbg.__wbg_copyBufferToBuffer_667953bc6dccb6b4=((a,b,c,e,f,g)=>{d(a).copyBufferToBuffer(d(b),c,d(e),f,g)});c.wbg.__wbg_copyBufferToTexture_ca5b298687bed60a=((a,b,c,e)=>{d(a).copyBufferToTexture(d(b),d(c),d(e))});c.wbg.__wbg_copyTextureToBuffer_cdf8118386295eb4=((a,b,c,e)=>{d(a).copyTextureToBuffer(d(b),d(c),d(e))});c.wbg.__wbg_copyTextureToTexture_67678f03fd20bd23=((a,b,c,e)=>{d(a).copyTextureToTexture(d(b),d(c),d(e))});c.wbg.__wbg_beginComputePass_a148b983810f6795=((a,b)=>{const c=d(a).beginComputePass(d(b));return q(c)});c.wbg.__wbg_end_28d311f5d435aa6d=(a=>{d(a).end()});c.wbg.__wbg_beginRenderPass_0b83360fd99b5810=((a,b)=>{const c=d(a).beginRenderPass(d(b));return q(c)});c.wbg.__wbg_end_e3cea1776c95d64f=(a=>{d(a).end()});c.wbg.__wbg_label_175c4f59b3eca611=((a,c)=>{const e=d(c).label;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_finish_d1d9eb9915c96a79=((a,b)=>{const c=d(a).finish(d(b));return q(c)});c.wbg.__wbg_finish_ce7d5c15fce975aa=(a=>{const b=d(a).finish();return q(b)});c.wbg.__wbg_clearBuffer_2cc723ab6b818737=((a,b,c)=>{d(a).clearBuffer(d(b),c)});c.wbg.__wbg_clearBuffer_78a94a2eda97eb5a=((a,b,c,e)=>{d(a).clearBuffer(d(b),c,e)});c.wbg.__wbg_resolveQuerySet_22e31015a36a09d5=((a,b,c,e,f,g)=>{d(a).resolveQuerySet(d(b),c>>>au,e>>>au,d(f),g>>>au)});c.wbg.__wbg_finish_2115db9e679c5aae=(a=>{const b=d(a).finish();return q(b)});c.wbg.__wbg_finish_4a754149a60eddc0=((a,b)=>{const c=d(a).finish(d(b));return q(c)});c.wbg.__wbg_usage_5e9a3548afbc3ebb=(a=>{const b=d(a).usage;return b});c.wbg.__wbg_size_fc880d60ff425a47=(a=>{const b=d(a).size;return b});c.wbg.__wbg_writeTexture_686a8160c3c5ddbb=((a,b,c,e,f)=>{d(a).writeTexture(d(b),d(c),d(e),d(f))});c.wbg.__wbg_copyExternalImageToTexture_87bdcc3260c6efba=((a,b,c,e)=>{d(a).copyExternalImageToTexture(d(b),d(c),d(e))});c.wbg.__wbg_submit_afbd82b0d5056194=((a,b)=>{d(a).submit(d(b))});c.wbg.__wbg_setPipeline_8630b264a9c4ec4b=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_5a450a0e97199c15=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_17e73587d3c1be08=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_dispatchWorkgroups_4bc133944e89d5e0=((a,b,c,e)=>{d(a).dispatchWorkgroups(b>>>au,c>>>au,e>>>au)});c.wbg.__wbg_dispatchWorkgroupsIndirect_8050acb60dd74a34=((a,b,c)=>{d(a).dispatchWorkgroupsIndirect(d(b),c)});c.wbg.__wbg_setPipeline_a95b89d99620ba34=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_f70bb0d0a5ace56d=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_58e27d4cd266f187=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_setIndexBuffer_747e1ba3f58d7227=((a,b,c,e)=>{d(a).setIndexBuffer(d(b),$[c],e)});c.wbg.__wbg_setIndexBuffer_3f1635c89f72d661=((a,b,c,e,f)=>{d(a).setIndexBuffer(d(b),$[c],e,f)});c.wbg.__wbg_setVertexBuffer_94a88edbfb4b07f8=((a,b,c,e)=>{d(a).setVertexBuffer(b>>>au,d(c),e)});c.wbg.__wbg_setVertexBuffer_407067a9522118df=((a,b,c,e,f)=>{d(a).setVertexBuffer(b>>>au,d(c),e,f)});c.wbg.__wbg_draw_60508d893ce4e012=((a,b,c,e,f)=>{d(a).draw(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_drawIndexed_d5c5dff02437a4f0=((a,b,c,e,f,g)=>{d(a).drawIndexed(b>>>au,c>>>au,e>>>au,f,g>>>au)});c.wbg.__wbg_drawIndirect_54f93ae4ccc85358=((a,b,c)=>{d(a).drawIndirect(d(b),c)});c.wbg.__wbg_drawIndexedIndirect_bf668464170261b3=((a,b,c)=>{d(a).drawIndexedIndirect(d(b),c)});c.wbg.__wbg_setPipeline_d7c9c55035f118a6=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_0bf976b9657f99bd=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_c6ab2e9583489b58=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_setIndexBuffer_ea39707d8842fe03=((a,b,c,e)=>{d(a).setIndexBuffer(d(b),$[c],e)});c.wbg.__wbg_setIndexBuffer_04ba4ea48c8f80be=((a,b,c,e,f)=>{d(a).setIndexBuffer(d(b),$[c],e,f)});c.wbg.__wbg_setVertexBuffer_907c60acf6dca161=((a,b,c,e)=>{d(a).setVertexBuffer(b>>>au,d(c),e)});c.wbg.__wbg_setVertexBuffer_9a336bb112a33317=((a,b,c,e,f)=>{d(a).setVertexBuffer(b>>>au,d(c),e,f)});c.wbg.__wbg_draw_540a514f996a5d0d=((a,b,c,e,f)=>{d(a).draw(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_drawIndexed_f717a07602ee2d18=((a,b,c,e,f,g)=>{d(a).drawIndexed(b>>>au,c>>>au,e>>>au,f,g>>>au)});c.wbg.__wbg_drawIndirect_c588ff54fb149aee=((a,b,c)=>{d(a).drawIndirect(d(b),c)});c.wbg.__wbg_drawIndexedIndirect_bb5585ec7f45d269=((a,b,c)=>{d(a).drawIndexedIndirect(d(b),c)});c.wbg.__wbg_setBlendConstant_496a0b5cc772c236=((a,b)=>{d(a).setBlendConstant(d(b))});c.wbg.__wbg_setScissorRect_9b7e673d03036c37=((a,b,c,e,f)=>{d(a).setScissorRect(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_setViewport_85d18ceefd5180eb=((a,b,c,e,f,g,h)=>{d(a).setViewport(b,c,e,f,g,h)});c.wbg.__wbg_setStencilReference_b4b1f7e586967a4d=((a,b)=>{d(a).setStencilReference(b>>>au)});c.wbg.__wbg_executeBundles_16985086317c358a=((a,b)=>{d(a).executeBundles(d(b))});c.wbg.__wbg_movementX_468fdc7a7281744b=(a=>{const b=d(a).movementX;return b});c.wbg.__wbg_movementY_8bbbf8c3bffd1fce=(a=>{const b=d(a).movementY;return b});c.wbg.__wbg_offsetX_294898d040917c6b=(a=>{const b=d(a).offsetX;return b});c.wbg.__wbg_offsetY_f484804b7b03dd86=(a=>{const b=d(a).offsetY;return b});c.wbg.__wbg_error_e297661c1014a1cc=((a,b)=>{console.error(d(a),d(b))});c.wbg.__wbg_removeListener_0e5684bf9a4fe773=function(){return B(((a,b)=>{d(a).removeListener(d(b))}),arguments)};c.wbg.__wbg_disconnect_91f6e3e629264c78=(a=>{d(a).disconnect()});c.wbg.__wbg_disconnect_8d41ebc92b193580=(a=>{d(a).disconnect()});c.wbg.__wbg_cancel_cba86749f45f30ae=(a=>{d(a).cancel()});c.wbg.__wbg_Window_bd9ec3fee5f673ee=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbg_clearTimeout_8567b0ecb6ec5d60=((a,b)=>{d(a).clearTimeout(b)});c.wbg.__wbg_close_8356c7a6c6893135=(a=>{d(a).close()});c.wbg.__wbg_setonmessage_81b2f44fc2b4b0a4=((a,b)=>{d(a).onmessage=d(b)});c.wbg.__wbg_cancelIdleCallback_7e85ac94feec1b33=((a,b)=>{d(a).cancelIdleCallback(b>>>au)});c.wbg.__wbg_abort_c57daab47a6c1215=(a=>{d(a).abort()});c.wbg.__wbg_scheduler_7ccf2d3b362018c4=(a=>{const b=d(a).scheduler;return q(b)});c.wbg.__wbg_signal_9acfcec9e7dffc22=(a=>{const b=d(a).signal;return q(b)});c.wbg.__wbg_postTask_99464245f349be5a=((a,b,c)=>{const e=d(a).postTask(d(b),d(c));return q(e)});c.wbg.__wbg_catch_8097da4375a5dd1b=((a,b)=>{const c=d(a).catch(d(b));return q(c)});c.wbg.__wbg_port1_a6e649ef4f3886f3=(a=>{const b=d(a).port1;return q(b)});c.wbg.__wbg_start_818baa7ac87fe59f=(a=>{d(a).start()});c.wbg.__wbg_port2_6fdacea6fa8e446e=(a=>{const b=d(a).port2;return q(b)});c.wbg.__wbg_setTimeout_c9db6bce0a6bb71c=function(){return B(((a,b)=>{const c=d(a).setTimeout(d(b));return c}),arguments)};c.wbg.__wbg_of_7e03bb557d6a64cc=((a,b)=>{const c=aS(d(a),d(b));return q(c)});c.wbg.__wbg_of_064d1507296514c2=(a=>{const b=aS(d(a));return q(b)});c.wbg.__wbg_postMessage_857ce8a4ab57c841=function(){return B(((a,b,c)=>{d(a).postMessage(d(b),d(c))}),arguments)};c.wbg.__wbg_requestIdleCallback_effe682e9df1695f=function(){return B(((a,b)=>{const c=d(a).requestIdleCallback(d(b));return c}),arguments)};c.wbg.__wbg_new_00d033f8a8736a28=function(){return B(((a,b)=>{const c=new Worker(s(a,b));return q(c)}),arguments)};c.wbg.__wbg_settype_623d2ee701e6310a=((a,b,c)=>{d(a).type=s(b,c)});c.wbg.__wbg_newwithstrsequenceandoptions_3d581ce16ca52c44=function(){return B(((a,b)=>{const c=new Blob(d(a),d(b));return q(c)}),arguments)};c.wbg.__wbg_createObjectURL_11804d71ac214694=function(){return B(((a,c)=>{const e=URL.createObjectURL(d(c));const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)}),arguments)};c.wbg.__wbg_requestIdleCallback_86b728660e0547ef=(a=>{const b=d(a).requestIdleCallback;return q(b)});c.wbg.__wbg_scheduler_f38a681d98b5a776=(a=>{const b=d(a).scheduler;return q(b)});c.wbg.__wbg_contains_a28a8f7c01e4c130=((a,b)=>{const c=d(a).contains(d(b));return c});c.wbg.__wbg_unobserve_79fd6473e7891735=((a,b)=>{d(a).unobserve(d(b))});c.wbg.__wbg_observe_51c387de0413edcf=((a,b)=>{d(a).observe(d(b))});c.wbg.__wbg_getPropertyValue_b199c95cfeadebdf=function(){return B(((a,c,e,f)=>{const g=d(c).getPropertyValue(s(e,f));const i=m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);const j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbg_prototype_d33365945f23f380=(()=>{const a=ResizeObserverEntry.prototype;return q(a)});c.wbg.__wbg_getOwnPropertyDescriptor_419345cdc0d1ec14=((a,b)=>{const c=aR.getOwnPropertyDescriptor(d(a),d(b));return q(c)});c.wbg.__wbg_pointerId_93f7e5e10bb641ad=(a=>{const b=d(a).pointerId;return b});c.wbg.__wbg_buttons_2cb9e49b40e20105=(a=>{const b=d(a).buttons;return b});c.wbg.__wbg_button_d8226b772c8cf494=(a=>{const b=d(a).button;return b});c.wbg.__wbg_getCoalescedEvents_8f8920b382098ac5=(a=>{const b=d(a).getCoalescedEvents();return q(b)});c.wbg.__wbg_getCoalescedEvents_85701851c470c4e6=(a=>{const b=d(a).getCoalescedEvents;return q(b)});c.wbg.__wbg_userAgentData_85a8393570ab7dee=(a=>{const b=d(a).userAgentData;return n(b)?au:q(b)});c.wbg.__wbg_brands_982de08b35281a98=(a=>{const b=d(a).brands;return q(b)});c.wbg.__wbg_brand_cdcf0249d44027a8=((a,c)=>{const e=d(c).brand;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_userAgent_b433f0f22dfedec5=function(){return B(((a,c)=>{const e=d(c).userAgent;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)}),arguments)};c.wbg.__wbg_persisted_af13b0ad7952721a=(a=>{const b=d(a).persisted;return b});c.wbg.__wbg_matches_7df350fbe7beb09f=(a=>{const b=d(a).matches;return b});c.wbg.__wbg_pointerType_6d91ef0da43639d3=((a,c)=>{const e=d(c).pointerType;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_pressure_ad8dacbd14c9076f=(a=>{const b=d(a).pressure;return b});c.wbg.__wbg_preventDefault_eecc4a63e64c4526=(a=>{d(a).preventDefault()});c.wbg.__wbg_deltaX_10154f810008c0a0=(a=>{const b=d(a).deltaX;return b});c.wbg.__wbg_deltaY_afd77a1b9e0d9ccd=(a=>{const b=d(a).deltaY;return b});c.wbg.__wbg_deltaMode_f31810d86a9defec=(a=>{const b=d(a).deltaMode;return b});c.wbg.__wbg_shiftKey_6d843f3032fd0366=(a=>{const b=d(a).shiftKey;return b});c.wbg.__wbg_ctrlKey_4015247a39aa9410=(a=>{const b=d(a).ctrlKey;return b});c.wbg.__wbg_altKey_c9401b041949ea90=(a=>{const b=d(a).altKey;return b});c.wbg.__wbg_metaKey_5d680933661ea1ea=(a=>{const b=d(a).metaKey;return b});c.wbg.__wbg_media_80aa0a213cbd9b0b=((a,c)=>{const e=d(c).media;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_repeat_1f81f308f5d8d519=(a=>{const b=d(a).repeat;return b});c.wbg.__wbg_key_001eb20ba3b3d2fd=((a,c)=>{const e=d(c).key;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_shiftKey_cb120edc9c25950d=(a=>{const b=d(a).shiftKey;return b});c.wbg.__wbg_ctrlKey_f592192d87040d94=(a=>{const b=d(a).ctrlKey;return b});c.wbg.__wbg_altKey_ebf03e2308f51c08=(a=>{const b=d(a).altKey;return b});c.wbg.__wbg_metaKey_0735ca81e2ec6c72=(a=>{const b=d(a).metaKey;return b});c.wbg.__wbg_code_bec0d5222298000e=((a,c)=>{const e=d(c).code;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_location_a7e2614c5720fcd7=(a=>{const b=d(a).location;return b});c.wbg.__wbg_isIntersecting_57d03835f2fb0c18=(a=>{const b=d(a).isIntersecting;return b});c.wbg.__wbg_setPointerCapture_739b13a4c8b0c2b0=function(){return B(((a,b)=>{d(a).setPointerCapture(b)}),arguments)};c.wbg.__wbg_contentRect_0ff902e25b5b4c7a=(a=>{const b=d(a).contentRect;return q(b)});c.wbg.__wbg_width_45de62653cf1c40c=(a=>{const b=d(a).width;return b});c.wbg.__wbg_height_333816c9b207333d=(a=>{const b=d(a).height;return b});c.wbg.__wbg_devicePixelContentBoxSize_67d2874a12290f0b=(a=>{const b=d(a).devicePixelContentBoxSize;return q(b)});c.wbg.__wbg_inlineSize_bdd9c1683673d79e=(a=>{const b=d(a).inlineSize;return b});c.wbg.__wbg_blockSize_5d28da4852a3728e=(a=>{const b=d(a).blockSize;return b});c.wbg.__wbg_requestFullscreen_8a94df4e7f757077=(a=>{const b=d(a).requestFullscreen;return q(b)});c.wbg.__wbg_requestAnimationFrame_8c3436f4ac89bc48=function(){return B(((a,b)=>{const c=d(a).requestAnimationFrame(d(b));return c}),arguments)};c.wbg.__wbg_queueMicrotask_693514e3dcae83e6=(a=>{queueMicrotask(g(a))});c.wbg.__wbg_play_5896e5851ba90aa2=(a=>{d(a).play()});c.wbg.__wbg_removeProperty_5acbca68235d0706=function(){return B(((a,c,e,f)=>{const g=d(c).removeProperty(s(e,f));const i=m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);const j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbg_webkitFullscreenElement_a02341d57a641b43=(a=>{const b=d(a).webkitFullscreenElement;return n(b)?au:q(b)});c.wbg.__wbg_fullscreenElement_d39685ee9d78d455=(a=>{const b=d(a).fullscreenElement;return n(b)?au:q(b)});c.wbg.__wbg_is_4b64bc96710d6a0f=((a,b)=>{const c=aR.is(d(a),d(b));return c});c.wbg.__wbg_animate_b321da85ed3f2b4a=((a,b,c)=>{const e=d(a).animate(d(b),d(c));return q(e)});c.wbg.__wbg_webkitRequestFullscreen_42ba1c34171febc6=(a=>{d(a).webkitRequestFullscreen()});c.wbg.__wbg_requestFullscreen_24891df6120b675d=(a=>{const b=d(a).requestFullscreen();return q(b)});c.wbg.__wbg_webkitExitFullscreen_77a6c8d07ec6ee46=(a=>{d(a).webkitExitFullscreen()});c.wbg.__wbg_exitFullscreen_9eef33d4b314e087=(a=>{d(a).exitFullscreen()});c.wbg.__wbg_createElement_e4523490bd0ae51d=function(){return B(((a,b,c)=>{const e=d(a).createElement(s(b,c));return q(e)}),arguments)};c.wbg.__wbg_body_8e909b791b1745d3=(a=>{const b=d(a).body;return n(b)?au:q(b)});c.wbg.__wbg_appendChild_bc4a0deae90a5164=function(){return B(((a,b)=>{const c=d(a).appendChild(d(b));return q(c)}),arguments)};c.wbg.__wbg_getComputedStyle_ec7e113b79b74e98=function(){return B(((a,b)=>{const c=d(a).getComputedStyle(d(b));return n(c)?au:q(c)}),arguments)};c.wbg.__wbg_activeElement_4ab2bc6dcf8da330=(a=>{const b=d(a).activeElement;return n(b)?au:q(b)});c.wbg.__wbg_new_bc395d17a25f9f2f=function(){return B((a=>{const b=new ResizeObserver(d(a));return q(b)}),arguments)};c.wbg.__wbg_setbox_0540f4f0ed4733b6=((a,b)=>{d(a).box=ah[b]});c.wbg.__wbg_observe_e05a589c42476328=((a,b,c)=>{d(a).observe(d(b),d(c))});c.wbg.__wbg_new_4422dda84db10905=function(){return B((a=>{const b=new IntersectionObserver(d(a));return q(b)}),arguments)};c.wbg.__wbg_observe_6f2910a25347a592=((a,b)=>{d(a).observe(d(b))});c.wbg.__wbg_getBoundingClientRect_5ad16be1e2955e83=(a=>{const b=d(a).getBoundingClientRect();return q(b)});c.wbg.__wbg_x_a9a34a1bc15c8dea=(a=>{const b=d(a).x;return b});c.wbg.__wbg_y_4926ebe58a2a92c8=(a=>{const b=d(a).y;return b});c.wbg.__wbindgen_closure_wrapper18129=((a,b,c)=>{const d=v(a,b,aT,w);return q(d)});c.wbg.__wbindgen_closure_wrapper30526=((a,b,c)=>{const d=x(a,b,aU,y);return q(d)});c.wbg.__wbindgen_closure_wrapper30557=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper44337=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45433=((a,b,c)=>{const d=v(a,b,aU,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45953=((a,b,c)=>{const d=v(a,b,aT,w);return q(d)});c.wbg.__wbindgen_closure_wrapper46038=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46050=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46063=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46080=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46097=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46126=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper46142=((a,b,c)=>{const d=v(a,b,aT,A);return q(d)});return c});var D=(()=>{if(C===at||C.byteLength===au){C=new Float32Array(b.memory.buffer)};return C});var s=((a,b)=>{a=a>>>au;return r.decode(j().subarray(a,a+ b))});const a=typeof AudioContext!==ap?AudioContext:(typeof webkitAudioContext!==ap?webkitAudioContext:aq);let b;const c=new ar(128).fill(aq);c.push(aq,at,!0,!1);let e=c.length;let h=au;let i=at;const k=typeof TextEncoder!==ap?new TextEncoder(aw):{encode:()=>{throw ax(`TextEncoder not available`)}};const l=typeof k.encodeInto===ay?((a,b)=>k.encodeInto(a,b)):((a,b)=>{const c=k.encode(a);b.set(c);return {read:a.length,written:c.length}});let o=at;const r=typeof TextDecoder!==ap?new TextDecoder(aw,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw ax(`TextDecoder not available`)}};if(typeof TextDecoder!==ap){r.decode()};const u=typeof aG===ap?{register:()=>{},unregister:()=>{}}:new aG(a=>{b.__wbindgen_export_2.get(a.dtor)(a.a,a.b)});let C=at;let G=at;const J=[`suspended`,`running`,`closed`];const K=[`blob`,`arraybuffer`];const L=[``,`standard`];const M=[`clamp-to-edge`,`repeat`,`mirror-repeat`];const N=[`auto`];const O=[aI,`one`,`src`,`one-minus-src`,`src-alpha`,`one-minus-src-alpha`,`dst`,`one-minus-dst`,`dst-alpha`,`one-minus-dst-alpha`,`src-alpha-saturated`,`constant`,`one-minus-constant`];const P=[`add`,`subtract`,`reverse-subtract`,`min`,`max`];const Q=[`uniform`,`storage`,`read-only-storage`];const R=[`unmapped`,`pending`,`mapped`];const S=[`opaque`,`premultiplied`];const T=[`never`,`less`,`equal`,`less-equal`,`greater`,`not-equal`,`greater-equal`,`always`];const U=[`error`,`warning`,`info`];const V=[aJ,`front`,`back`];const W=[`unknown`,`destroyed`];const X=[`validation`,`out-of-memory`,`internal`];const Y=[`depth-clip-control`,aK,`texture-compression-bc`,`texture-compression-etc2`,`texture-compression-astc`,`timestamp-query`,`indirect-first-instance`,`shader-f16`,`rg11b10ufloat-renderable`,`bgra8unorm-storage`,`float32-filterable`];const Z=[aL,aM];const _=[`ccw`,`cw`];const $=[`uint16`,aN];const a0=[`load`,`clear`];const a1=[aL,aM];const a2=[`low-power`,`high-performance`];const a3=[`point-list`,`line-list`,`line-strip`,`triangle-list`,`triangle-strip`];const a4=[`occlusion`,`timestamp`];const a5=[`filtering`,`non-filtering`,`comparison`];const a6=[`keep`,aI,`replace`,`invert`,`increment-clamp`,`decrement-clamp`,`increment-wrap`,`decrement-wrap`];const a7=[`write-only`,`read-only`,`read-write`];const a8=[`store`,`discard`];const a9=[`all`,`stencil-only`,`depth-only`];const aa=[aO,aP,aQ];const ab=[`r8unorm`,`r8snorm`,`r8uint`,`r8sint`,`r16uint`,`r16sint`,`r16float`,`rg8unorm`,`rg8snorm`,`rg8uint`,`rg8sint`,`r32uint`,`r32sint`,`r32float`,`rg16uint`,`rg16sint`,`rg16float`,`rgba8unorm`,`rgba8unorm-srgb`,`rgba8snorm`,`rgba8uint`,`rgba8sint`,`bgra8unorm`,`bgra8unorm-srgb`,`rgb9e5ufloat`,`rgb10a2uint`,`rgb10a2unorm`,`rg11b10ufloat`,`rg32uint`,`rg32sint`,`rg32float`,`rgba16uint`,`rgba16sint`,`rgba16float`,`rgba32uint`,`rgba32sint`,`rgba32float`,`stencil8`,`depth16unorm`,`depth24plus`,`depth24plus-stencil8`,`depth32float`,aK,`bc1-rgba-unorm`,`bc1-rgba-unorm-srgb`,`bc2-rgba-unorm`,`bc2-rgba-unorm-srgb`,`bc3-rgba-unorm`,`bc3-rgba-unorm-srgb`,`bc4-r-unorm`,`bc4-r-snorm`,`bc5-rg-unorm`,`bc5-rg-snorm`,`bc6h-rgb-ufloat`,`bc6h-rgb-float`,`bc7-rgba-unorm`,`bc7-rgba-unorm-srgb`,`etc2-rgb8unorm`,`etc2-rgb8unorm-srgb`,`etc2-rgb8a1unorm`,`etc2-rgb8a1unorm-srgb`,`etc2-rgba8unorm`,`etc2-rgba8unorm-srgb`,`eac-r11unorm`,`eac-r11snorm`,`eac-rg11unorm`,`eac-rg11snorm`,`astc-4x4-unorm`,`astc-4x4-unorm-srgb`,`astc-5x4-unorm`,`astc-5x4-unorm-srgb`,`astc-5x5-unorm`,`astc-5x5-unorm-srgb`,`astc-6x5-unorm`,`astc-6x5-unorm-srgb`,`astc-6x6-unorm`,`astc-6x6-unorm-srgb`,`astc-8x5-unorm`,`astc-8x5-unorm-srgb`,`astc-8x6-unorm`,`astc-8x6-unorm-srgb`,`astc-8x8-unorm`,`astc-8x8-unorm-srgb`,`astc-10x5-unorm`,`astc-10x5-unorm-srgb`,`astc-10x6-unorm`,`astc-10x6-unorm-srgb`,`astc-10x8-unorm`,`astc-10x8-unorm-srgb`,`astc-10x10-unorm`,`astc-10x10-unorm-srgb`,`astc-12x10-unorm`,`astc-12x10-unorm-srgb`,`astc-12x12-unorm`,`astc-12x12-unorm-srgb`];const ac=[`float`,`unfilterable-float`,`depth`,`sint`,`uint`];const ad=[aO,aP,`2d-array`,`cube`,`cube-array`,aQ];const ae=[`uint8x2`,`uint8x4`,`sint8x2`,`sint8x4`,`unorm8x2`,`unorm8x4`,`snorm8x2`,`snorm8x4`,`uint16x2`,`uint16x4`,`sint16x2`,`sint16x4`,`unorm16x2`,`unorm16x4`,`snorm16x2`,`snorm16x4`,`float16x2`,`float16x4`,`float32`,`float32x2`,`float32x3`,`float32x4`,aN,`uint32x2`,`uint32x3`,`uint32x4`,`sint32`,`sint32x2`,`sint32x3`,`sint32x4`,`unorm10-10-10-2`];const af=[`vertex`,`instance`];const ag=[aJ,`premultiply`,`default`];const ah=[`border-box`,`content-box`,`device-pixel-content-box`];const ai=[`hidden`,`visible`];export default ao;export{an as initSync} \ No newline at end of file diff --git a/docs/magiacircle-59bad22095567cda_bg.wasm b/docs/magiacircle-b4af609aae1fb5f7_bg.wasm similarity index 69% rename from docs/magiacircle-59bad22095567cda_bg.wasm rename to docs/magiacircle-b4af609aae1fb5f7_bg.wasm index a1553dd..f77f29d 100644 Binary files a/docs/magiacircle-59bad22095567cda_bg.wasm and b/docs/magiacircle-b4af609aae1fb5f7_bg.wasm differ diff --git a/src/constant.rs b/src/constant.rs index c3179a4..f1a5ddc 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -76,14 +76,15 @@ pub const MAGIC_CIRCLE_GROUP: Group = Group::GROUP_8; pub const PIXELS_PER_METER: f32 = 16.0; // UI階層 + pub const OVERLAY_Z_INDEX: i32 = 10000; +pub const POINTER_Z_INDEX: i32 = 5000; + pub const GAME_MENU_Z_INDEX: i32 = 2000; pub const WAND_EDITOR_FLOATING_Z_INDEX: i32 = 1600; pub const WAND_EDITOR_Z_INDEX: i32 = 1500; -pub const POINTER_Z_INDEX: i32 = 1100; - pub const HUD_Z_INDEX: i32 = 1000; diff --git a/src/game.rs b/src/game.rs index b8d1eda..317603a 100644 --- a/src/game.rs +++ b/src/game.rs @@ -104,7 +104,7 @@ pub fn run_game() { primary_window: Some(Window { position: WindowPosition::Centered(MonitorSelection::Current), cursor: Cursor { - // visible: false, + visible: false, ..default() }, title: "magiacircle 0.1".to_string(), diff --git a/src/hud/pointer.rs b/src/hud/pointer.rs index e6b9f8e..2e09b73 100644 --- a/src/hud/pointer.rs +++ b/src/hud/pointer.rs @@ -1,5 +1,4 @@ use crate::constant::POINTER_Z_INDEX; -use crate::states::GameMenuState; use crate::{asset::GameAssets, constant::TILE_SIZE, input::MyGamepad, states::GameState}; use crate::{controller::player::Player, entity::actor::Actor}; use bevy::{prelude::*, window::PrimaryWindow}; @@ -11,17 +10,7 @@ struct Pointer; fn setup_pointer(mut commands: Commands, assets: Res) { commands.spawn(( Pointer, - StateScoped(GameState::InGame), ImageBundle { - style: Style { - position_type: PositionType::Absolute, - top: Val::Px(0.0), - left: Val::Px(0.0), - width: Val::Px(13.0 * 2.0), - height: Val::Px(13.0 * 2.0), - - ..default() - }, z_index: ZIndex::Global(POINTER_Z_INDEX), ..default() }, @@ -34,33 +23,30 @@ fn setup_pointer(mut commands: Commands, assets: Res) { } fn update_pointer_image_by_angle( - player_query: Query<(&Actor, &GlobalTransform), With>, mut pointer_query: Query<&mut Style, With>, - camera_query: Query<(&Camera, &GlobalTransform), (With, Without)>, + q_window: Query<&Window, With>, ) { - if let Ok((player, player_transform)) = player_query.get_single() { - if let Ok(mut pointer_style) = pointer_query.get_single_mut() { - if let Ok((camera, camera_global_transform)) = camera_query.get_single() { - let pointer_in_world = player_transform.translation().truncate() + player.pointer; - - if let Some(pointer_in_screen) = - camera.world_to_viewport(camera_global_transform, pointer_in_world.extend(0.0)) - { - // AsepriteSliceUiBundle に Aseprite のアンカーは効かないことに注意 - // スライスのサイズは 13ピクセルで、それを2倍に拡大してその半分だけずらして中央ぞろえするので -13 - pointer_style.left = Val::Px(pointer_in_screen.x - 13.0); - pointer_style.top = Val::Px(pointer_in_screen.y - 13.0); - } + if let Ok(mut pointer_style) = pointer_query.get_single_mut() { + if let Ok(window) = q_window.get_single() { + if let Some(cursor_in_screen) = window.cursor_position() { + // AsepriteSliceUiBundle に Aseprite のアンカーは効かないことに注意 + // スライスのサイズは 13ピクセルで、それを2倍に拡大してその半分だけずらして中央ぞろえするので -13 + pointer_style.left = Val::Px((cursor_in_screen.x - 13.0).floor()); + pointer_style.top = Val::Px((cursor_in_screen.y - 13.0).floor()); + pointer_style.display = Display::default(); + } else { + pointer_style.display = Display::None; } } } } +/// マウスポインタの位置を参照してプレイヤーアクターのポインターを設定します +/// この関数はプレイヤーのモジュールに移動する? fn update_pointer_by_mouse( mut player_query: Query<(&mut Actor, &GlobalTransform), With>, q_window: Query<&Window, With>, camera_query: Query<(&Camera, &GlobalTransform), (With, Without)>, - state: Res>, ) { if let Ok((mut player, player_transform)) = player_query.get_single_mut() { if let Ok(window) = q_window.get_single() { @@ -69,10 +55,8 @@ fn update_pointer_by_mouse( if let Some(mouse_in_world) = camera.viewport_to_world(camera_global_transform, cursor_in_screen) { - if *state.get() == GameMenuState::Closed { - player.pointer = mouse_in_world.origin.truncate() - - player_transform.translation().truncate(); - } + player.pointer = mouse_in_world.origin.truncate() + - player_transform.translation().truncate(); } } } @@ -112,7 +96,7 @@ pub struct PointerPlugin; impl Plugin for PointerPlugin { fn build(&self, app: &mut App) { - app.add_systems(OnEnter(GameState::InGame), setup_pointer) + app.add_systems(OnExit(GameState::Setup), setup_pointer) .add_systems( Update, ( @@ -120,7 +104,9 @@ impl Plugin for PointerPlugin { update_pointer_by_mouse, update_pointer_by_gamepad, ) - .run_if(in_state(GameState::InGame)), + .run_if(in_state(GameState::InGame).or_else( + in_state(GameState::MainMenu).or_else(in_state(GameState::NameInput)), + )), ); } } diff --git a/src/spell_props.rs b/src/spell_props.rs index a0303fd..73c3218 100644 --- a/src/spell_props.rs +++ b/src/spell_props.rs @@ -45,7 +45,7 @@ pub struct SpellProps { const MAGIC_BOLT: SpellProps = SpellProps { name: "マジックボルト", - description: "魔力の塊を発射する、最も基本的な魔法です。", + description: "魔力の塊を発射する、最も基本的な攻撃魔法です。", mana_drain: 50, cast_delay: 10, icon: "bullet_magic_bolt", @@ -64,9 +64,9 @@ const MAGIC_BOLT: SpellProps = SpellProps { }; const PURPLE_BOLT: SpellProps = SpellProps { - name: "スライム弾", + name: "魔力の塊", description: - "紫色のエネルギー弾を発射します。動きは遅く威力も低いですが、少ない魔力でも発射できます。", + "紫色のエネルギー弾を発射します。動きは遅く威力も低いですが、少ない魔力で発射できます。", mana_drain: 10, cast_delay: 120, icon: "bullet_purple", @@ -85,8 +85,8 @@ const PURPLE_BOLT: SpellProps = SpellProps { }; const SLIME_CHARGE: SpellProps = SpellProps { - name: "スライムチャージ", - description: "ぷにぷにとした塊で殴りつけます。やわらかいのであまり痛くありませんが、相手を大きく吹き飛ばします。", + name: "スライムの塊", + description: "ぷにぷにとした塊で殴りつけます。痛くはありませんが、相手を大きく吹き飛ばします。", mana_drain: 200, cast_delay: 30, icon: "bullet_slime_charge", @@ -95,7 +95,7 @@ const SLIME_CHARGE: SpellProps = SpellProps { collier_radius: 5.0, speed: 2.0, lifetime: 5, - damage: 10, + damage: 1, impulse: 40000.0, scattering: 0.0, light_intensity: 0.0,