"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[896],{9092:function(e,n,t){e.exports=t.p+"static/media/ratchet-web_bg.7197381c.wasm"},2144:function(e,n,t){let r;t.d(n,{Hn:function(){return D},qX:function(){return P}}),e=t.hmd(e);let o=Array(128).fill(void 0);o.push(void 0,null,!0,!1);let _=o.length;function i(e){let n=o[e];return e<132||(o[e]=_,_=e),n}let c="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&c.decode();let u=null;function a(){return(null===u||0===u.byteLength)&&(u=new Uint8Array(r.memory.buffer)),u}function f(e,n){return e>>>=0,c.decode(a().subarray(e,e+n))}function b(e){_===o.length&&o.push(o.length+1);let n=_;return _=o[n],o[n]=e,n}let g=0,d="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},w="function"==typeof d.encodeInto?function(e,n){return d.encodeInto(e,n)}:function(e,n){let t=d.encode(e);return n.set(t),{read:e.length,written:t.length}};function l(e,n,t){if(void 0===t){let t=d.encode(e),r=n(t.length,1)>>>0;return a().subarray(r,r+t.length).set(t),g=t.length,r}let r=e.length,o=n(r,1)>>>0,_=a(),i=0;for(;i127)break;_[o+i]=n}if(i!==r){0!==i&&(e=e.slice(i)),o=t(o,r,r=i+3*e.length,1)>>>0;let n=w(e,a().subarray(o+i,o+r));i+=n.written,o=t(o,r,i,1)>>>0}return g=i,o}function s(e){return null==e}let m=null;function p(){return(null===m||0===m.byteLength)&&(m=new Int32Array(r.memory.buffer)),m}let y=null,v=null,h="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{r.__wbindgen_export_2.get(e.dtor)(e.a,e.b)});function x(e,n,t,o){let _={a:e,b:n,cnt:1,dtor:t},i=function(){for(var e=arguments.length,n=Array(e),t=0;t>>=0,((null===R||0===R.byteLength)&&(R=new Uint32Array(r.memory.buffer)),R).subarray(e/4,e/4+n)}Object.freeze({Transcribe:0,0:"Transcribe",Translate:1,1:"Translate"}),Object.freeze({Model:0,0:"Model",Dataset:1,1:"Dataset",Space:2,2:"Space"});let P=Object.freeze({Q8_0:0,0:"Q8_0",F32:1,1:"F32"});"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>r.__wbg_api_free(e>>>0)),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>r.__wbg_apibuilder_free(e>>>0)),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>r.__wbg_decodingoptions_free(e>>>0)),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>r.__wbg_decodingoptionsbuilder_free(e>>>0));let O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_model_free(e>>>0));class D{static __wrap(e){e>>>=0;let n=Object.create(D.prototype);return n.__wbg_ptr=e,O.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_model_free(e)}static load(e,n,t){return i(r.model_load(b(e),n,b(t)))}run(e){return i(r.model_run(this.__wbg_ptr,b(e)))}}async function G(e,n){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,n)}catch(n){if("application/wasm"!=e.headers.get("Content-Type"))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",n);else throw n}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}async function z(n){if(void 0!==r)return r;void 0===n&&(n=new t.U(t(9092)));let _=function(){let n={};return n.wbg={},n.wbg.__wbindgen_object_drop_ref=function(e){i(e)},n.wbg.__wbindgen_string_new=function(e,n){return b(f(e,n))},n.wbg.__wbindgen_boolean_get=function(e){let n=o[e];return"boolean"==typeof n?n?1:0:2},n.wbg.__wbindgen_number_new=function(e){return b(e)},n.wbg.__wbindgen_is_string=function(e){return"string"==typeof o[e]},n.wbg.__wbindgen_error_new=function(e,n){return b(Error(f(e,n)))},n.wbg.__wbindgen_string_get=function(e,n){let t=o[n],_="string"==typeof t?t:void 0;var i=s(_)?0:l(_,r.__wbindgen_malloc,r.__wbindgen_realloc),c=g;p()[e/4+1]=c,p()[e/4+0]=i},n.wbg.__wbindgen_number_get=function(e,n){let t=o[n],_="number"==typeof t?t:void 0;((null===y||0===y.byteLength)&&(y=new Float64Array(r.memory.buffer)),y)[e/8+1]=s(_)?0:_,p()[e/4+0]=!s(_)},n.wbg.__wbindgen_is_bigint=function(e){return"bigint"==typeof o[e]},n.wbg.__wbindgen_bigint_from_i64=function(e){return b(e)},n.wbg.__wbindgen_jsval_eq=function(e,n){return o[e]===o[n]},n.wbg.__wbindgen_cb_drop=function(e){let n=i(e).original;return 1==n.cnt--&&(n.a=0,!0)},n.wbg.__wbindgen_is_object=function(e){let n=o[e];return"object"==typeof n&&null!==n},n.wbg.__wbindgen_is_undefined=function(e){return void 0===o[e]},n.wbg.__wbindgen_in=function(e,n){return o[e]in o[n]},n.wbg.__wbindgen_object_clone_ref=function(e){return b(o[e])},n.wbg.__wbg_model_new=function(e){return b(D.__wrap(e))},n.wbg.__wbindgen_bigint_from_u64=function(e){return b(BigInt.asUintN(64,e))},n.wbg.__wbindgen_is_function=function(e){return"function"==typeof o[e]},n.wbg.__wbindgen_is_null=function(e){return null===o[e]},n.wbg.__wbindgen_as_number=function(e){return+o[e]},n.wbg.__wbindgen_jsval_loose_eq=function(e,n){return o[e]==o[n]},n.wbg.__wbg_set_20cbc34131e76824=function(e,n,t){o[e][i(n)]=i(t)},n.wbg.__wbg_String_b9412f8799faab3e=function(e,n){let t=l(String(o[n]),r.__wbindgen_malloc,r.__wbindgen_realloc),_=g;p()[e/4+1]=_,p()[e/4+0]=t},n.wbg.__wbg_getwithrefkey_edc2c8960f0f1191=function(e,n){return b(o[e][o[n]])},n.wbg.__wbg_set_f975102236d3c502=function(e,n,t){o[e][i(n)]=i(t)},n.wbg.__wbg_new_abda76e883ba8a5f=function(){return b(Error())},n.wbg.__wbg_stack_658279fe44541cf6=function(e,n){let t=l(o[n].stack,r.__wbindgen_malloc,r.__wbindgen_realloc),_=g;p()[e/4+1]=_,p()[e/4+0]=t},n.wbg.__wbg_error_f851667af71bcfc6=function(e,n){let t,o;try{t=e,o=n,console.error(f(e,n))}finally{r.__wbindgen_free(t,o,1)}},n.wbg.__wbg_performance_a1b8bde2ee512264=function(e){return b(o[e].performance)},n.wbg.__wbg_now_abd80e969af37148=function(e){return o[e].now()},n.wbg.__wbg_Window_7bd5d737b6110ed5=function(e){return b(o[e].Window)},n.wbg.__wbg_WorkerGlobalScope_10e1fa12a09a520b=function(e){return b(o[e].WorkerGlobalScope)},n.wbg.__wbg_getRandomValues_260cc23a41afad9a=function(){return k(function(e,n){o[e].getRandomValues(o[n])},arguments)},n.wbg.__wbg_randomFillSync_290977693942bf03=function(){return k(function(e,n){o[e].randomFillSync(i(n))},arguments)},n.wbg.__wbg_crypto_566d7465cdbb6b7a=function(e){return b(o[e].crypto)},n.wbg.__wbg_process_dc09a8c7d59982f6=function(e){return b(o[e].process)},n.wbg.__wbg_versions_d98c6400c6ca2bd8=function(e){return b(o[e].versions)},n.wbg.__wbg_node_caaf83d002149bd5=function(e){return b(o[e].node)},n.wbg.__wbg_require_94a9da52636aacbf=function(){return k(function(){return b(e.require)},arguments)},n.wbg.__wbg_msCrypto_0b84745e9245cdf6=function(e){return b(o[e].msCrypto)},n.wbg.__wbg_queueMicrotask_481971b0d87f3dd4=function(e){queueMicrotask(o[e])},n.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6=function(e){return b(o[e].queueMicrotask)},n.wbg.__wbg_Window_4c97c099b03994c2=function(e){return b(o[e].Window)},n.wbg.__wbg_WorkerGlobalScope_b87d69ab991859f6=function(e){return b(o[e].WorkerGlobalScope)},n.wbg.__wbg_global_c22c39d5b60f622c=function(e){return b(o[e].global)},n.wbg.__wbg_indexedDB_f50e4ba5302a87c6=function(){return k(function(e){let n=o[e].indexedDB;return s(n)?0:b(n)},arguments)},n.wbg.__wbg_instanceof_Window_9029196b662bc42a=function(e){let n;try{n=o[e]instanceof Window}catch(e){n=!1}return n},n.wbg.__wbg_querySelectorAll_c03e8664a5a0f0c5=function(){return k(function(e,n,t){return b(o[e].querySelectorAll(f(n,t)))},arguments)},n.wbg.__wbg_name_e1f42ed4f319b110=function(e,n){let t=l(o[n].name,r.__wbindgen_malloc,r.__wbindgen_realloc),_=g;p()[e/4+1]=_,p()[e/4+0]=t},n.wbg.__wbg_message_ad3cc15a4d40c34b=function(e,n){let t=l(o[n].message,r.__wbindgen_malloc,r.__wbindgen_realloc),_=g;p()[e/4+1]=_,p()[e/4+0]=t},n.wbg.__wbg_code_e5bc0ed8fd7bc4b8=function(e){return o[e].code},n.wbg.__wbg_item_d675c1262c12fad2=function(e,n,t){let _=o[n].item(t>>>0);var i=s(_)?0:l(_,r.__wbindgen_malloc,r.__wbindgen_realloc),c=g;p()[e/4+1]=c,p()[e/4+0]=i},n.wbg.__wbg_target_f171e89c61e2bccf=function(e){let n=o[e].target;return s(n)?0:b(n)},n.wbg.__wbg_getPreferredCanvasFormat_1f6c9ef810196b92=function(e){return b(o[e].getPreferredCanvasFormat())},n.wbg.__wbg_requestAdapter_d8298d7a27a391f0=function(e,n){return b(o[e].requestAdapter(o[n]))},n.wbg.__wbg_instanceof_GpuAdapter_c0a5a310603ba618=function(e){let n;try{n=o[e]instanceof GPUAdapter}catch(e){n=!1}return n},n.wbg.__wbg_features_88901f43932fb28e=function(e){return b(o[e].features)},n.wbg.__wbg_limits_a7f3fbf58768b61f=function(e){return b(o[e].limits)},n.wbg.__wbg_requestDevice_068e794820eb88eb=function(e,n){return b(o[e].requestDevice(o[n]))},n.wbg.__wbg_size_6540ddb49e0d7120=function(e){return o[e].size},n.wbg.__wbg_usage_f5b34f3e0170424b=function(e){return o[e].usage},n.wbg.__wbg_destroy_9b5398e5b148e210=function(e){o[e].destroy()},n.wbg.__wbg_getMappedRange_becef7e3d9dc5489=function(e,n,t){return b(o[e].getMappedRange(n,t))},n.wbg.__wbg_mapAsync_91acdcf41b7ae21d=function(e,n,t,r){return b(o[e].mapAsync(n>>>0,t,r))},n.wbg.__wbg_unmap_1677c09514e08e64=function(e){o[e].unmap()},n.wbg.__wbg_instanceof_GpuCanvasContext_7a77e275c38d41d8=function(e){let n;try{n=o[e]instanceof GPUCanvasContext}catch(e){n=!1}return n},n.wbg.__wbg_configure_93a57a4e5e0f8bcf=function(e,n){o[e].configure(o[n])},n.wbg.__wbg_getCurrentTexture_ecedc4f6f71990d2=function(e){return b(o[e].getCurrentTexture())},n.wbg.__wbg_label_c7970304720cf8b0=function(e,n){let t=l(o[n].label,r.__wbindgen_malloc,r.__wbindgen_realloc),_=g;p()[e/4+1]=_,p()[e/4+0]=t},n.wbg.__wbg_beginComputePass_579a2563c561da68=function(e,n){return b(o[e].beginComputePass(o[n]))},n.wbg.__wbg_beginRenderPass_d04327f7231bd5af=function(e,n){return b(o[e].beginRenderPass(o[n]))},n.wbg.__wbg_clearBuffer_c370e7adb8398388=function(e,n,t){o[e].clearBuffer(o[n],t)},n.wbg.__wbg_clearBuffer_b8e6751290709d43=function(e,n,t,r){o[e].clearBuffer(o[n],t,r)},n.wbg.__wbg_copyBufferToBuffer_79ac12f409453cf0=function(e,n,t,r,_,i){o[e].copyBufferToBuffer(o[n],t,o[r],_,i)},n.wbg.__wbg_copyBufferToTexture_ac956e6d47c24e73=function(e,n,t,r){o[e].copyBufferToTexture(o[n],o[t],o[r])},n.wbg.__wbg_copyTextureToBuffer_787ec8d8c4c216f1=function(e,n,t,r){o[e].copyTextureToBuffer(o[n],o[t],o[r])},n.wbg.__wbg_copyTextureToTexture_a86e849469b0ef38=function(e,n,t,r){o[e].copyTextureToTexture(o[n],o[t],o[r])},n.wbg.__wbg_finish_5153789564a5eee5=function(e){return b(o[e].finish())},n.wbg.__wbg_finish_d1049a13335e8326=function(e,n){return b(o[e].finish(o[n]))},n.wbg.__wbg_resolveQuerySet_8ac49c71e15cdf6a=function(e,n,t,r,_,i){o[e].resolveQuerySet(o[n],t>>>0,r>>>0,o[_],i>>>0)},n.wbg.__wbg_writeTimestamp_107647519ce52436=function(e,n,t){o[e].writeTimestamp(o[n],t>>>0)},n.wbg.__wbg_dispatchWorkgroups_c484cd3530a3801d=function(e,n,t,r){o[e].dispatchWorkgroups(n>>>0,t>>>0,r>>>0)},n.wbg.__wbg_dispatchWorkgroupsIndirect_2b89ee1731fab5f8=function(e,n,t){o[e].dispatchWorkgroupsIndirect(o[n],t)},n.wbg.__wbg_end_dab719019df5969c=function(e){o[e].end()},n.wbg.__wbg_setPipeline_598117fdeb73cf8f=function(e,n){o[e].setPipeline(o[n])},n.wbg.__wbg_setBindGroup_c619f49c16ef095b=function(e,n,t){o[e].setBindGroup(n>>>0,o[t])},n.wbg.__wbg_setBindGroup_dffce83253968cdd=function(e,n,t,r,_,i,c){o[e].setBindGroup(n>>>0,o[t],C(r,_),i,c>>>0)},n.wbg.__wbg_getBindGroupLayout_20dc45d52b96fa42=function(e,n){return b(o[e].getBindGroupLayout(n>>>0))},n.wbg.__wbg_features_dfb2178c91fa1dd7=function(e){return b(o[e].features)},n.wbg.__wbg_limits_45ceb777867eb768=function(e){return b(o[e].limits)},n.wbg.__wbg_queue_f2aeb5c277e56f93=function(e){return b(o[e].queue)},n.wbg.__wbg_setonuncapturederror_b3c814f611d5e585=function(e,n){o[e].onuncapturederror=o[n]},n.wbg.__wbg_createBindGroup_fa5515d52f9c6a69=function(e,n){return b(o[e].createBindGroup(o[n]))},n.wbg.__wbg_createBindGroupLayout_af3b9d9ee0a1f5f9=function(e,n){return b(o[e].createBindGroupLayout(o[n]))},n.wbg.__wbg_createBuffer_36e159f52cc644a7=function(e,n){return b(o[e].createBuffer(o[n]))},n.wbg.__wbg_createCommandEncoder_a50a1dab2b499b95=function(e,n){return b(o[e].createCommandEncoder(o[n]))},n.wbg.__wbg_createComputePipeline_89131452dfd12672=function(e,n){return b(o[e].createComputePipeline(o[n]))},n.wbg.__wbg_createPipelineLayout_1e10c8281fb85c01=function(e,n){return b(o[e].createPipelineLayout(o[n]))},n.wbg.__wbg_createQuerySet_ccb746122176f8e5=function(e,n){return b(o[e].createQuerySet(o[n]))},n.wbg.__wbg_createRenderBundleEncoder_ad2d0237f581427b=function(e,n){return b(o[e].createRenderBundleEncoder(o[n]))},n.wbg.__wbg_createRenderPipeline_745f00bcb1ca6edf=function(e,n){return b(o[e].createRenderPipeline(o[n]))},n.wbg.__wbg_createSampler_09cd36835c9befb3=function(e,n){return b(o[e].createSampler(o[n]))},n.wbg.__wbg_createShaderModule_59bbf537b8b5cf7c=function(e,n){return b(o[e].createShaderModule(o[n]))},n.wbg.__wbg_createTexture_dbd00b550944125c=function(e,n){return b(o[e].createTexture(o[n]))},n.wbg.__wbg_destroy_abb6deaa6cb27aa3=function(e){o[e].destroy()},n.wbg.__wbg_popErrorScope_19075fb98a08b740=function(e){return b(o[e].popErrorScope())},n.wbg.__wbg_pushErrorScope_0728aae3f2d3ed48=function(e,n){o[e].pushErrorScope(i(n))},n.wbg.__wbg_message_c934153af8567cdb=function(e,n){let t=l(o[n].message,r.__wbindgen_malloc,r.__wbindgen_realloc),_=g;p()[e/4+1]=_,p()[e/4+0]=t},n.wbg.__wbg_instanceof_GpuOutOfMemoryError_45166ef4e2774fbe=function(e){let n;try{n=o[e]instanceof GPUOutOfMemoryError}catch(e){n=!1}return n},n.wbg.__wbg_copyExternalImageToTexture_819ec294d299f624=function(e,n,t,r){o[e].copyExternalImageToTexture(o[n],o[t],o[r])},n.wbg.__wbg_submit_3104e9b014f75846=function(e,n){o[e].submit(o[n])},n.wbg.__wbg_writeBuffer_becf0c8f0323ffd7=function(e,n,t,r,_,i){o[e].writeBuffer(o[n],t,o[r],_,i)},n.wbg.__wbg_writeTexture_465ecc6146e5052c=function(e,n,t,r,_){o[e].writeTexture(o[n],o[t],o[r],o[_])},n.wbg.__wbg_finish_863657abae52896e=function(e){return b(o[e].finish())},n.wbg.__wbg_finish_e580ef236d53f04b=function(e,n){return b(o[e].finish(o[n]))},n.wbg.__wbg_setBindGroup_e6d2dd2ab3573b6d=function(e,n,t){o[e].setBindGroup(n>>>0,o[t])},n.wbg.__wbg_setBindGroup_6bc8944422dbb3cd=function(e,n,t,r,_,i,c){o[e].setBindGroup(n>>>0,o[t],C(r,_),i,c>>>0)},n.wbg.__wbg_draw_3958097471a10642=function(e,n,t,r,_){o[e].draw(n>>>0,t>>>0,r>>>0,_>>>0)},n.wbg.__wbg_drawIndexed_8856cc4ccffa3498=function(e,n,t,r,_,i){o[e].drawIndexed(n>>>0,t>>>0,r>>>0,_,i>>>0)},n.wbg.__wbg_drawIndexedIndirect_0404fa6cb9a6db25=function(e,n,t){o[e].drawIndexedIndirect(o[n],t)},n.wbg.__wbg_drawIndirect_95c6eb1494a44d06=function(e,n,t){o[e].drawIndirect(o[n],t)},n.wbg.__wbg_setIndexBuffer_4dc5432dc348458d=function(e,n,t,r){o[e].setIndexBuffer(o[n],i(t),r)},n.wbg.__wbg_setIndexBuffer_f3bae4da9e407eaf=function(e,n,t,r,_){o[e].setIndexBuffer(o[n],i(t),r,_)},n.wbg.__wbg_setPipeline_66f1e900256fc946=function(e,n){o[e].setPipeline(o[n])},n.wbg.__wbg_setVertexBuffer_c782d133fd439184=function(e,n,t,r){o[e].setVertexBuffer(n>>>0,o[t],r)},n.wbg.__wbg_setVertexBuffer_4da0a96267ce82db=function(e,n,t,r,_){o[e].setVertexBuffer(n>>>0,o[t],r,_)},n.wbg.__wbg_end_bdfb66792e0c59a2=function(e){o[e].end()},n.wbg.__wbg_executeBundles_0a1fdfd83c1a3e57=function(e,n){o[e].executeBundles(o[n])},n.wbg.__wbg_setBlendConstant_e89574db5137b2f6=function(e,n){o[e].setBlendConstant(o[n])},n.wbg.__wbg_setScissorRect_0af8c89e90a6e89c=function(e,n,t,r,_){o[e].setScissorRect(n>>>0,t>>>0,r>>>0,_>>>0)},n.wbg.__wbg_setStencilReference_71be0db67db2f7ab=function(e,n){o[e].setStencilReference(n>>>0)},n.wbg.__wbg_setViewport_9c5fb686baf1cf4f=function(e,n,t,r,_,i,c){o[e].setViewport(n,t,r,_,i,c)},n.wbg.__wbg_setBindGroup_ed098a3302f084a7=function(e,n,t){o[e].setBindGroup(n>>>0,o[t])},n.wbg.__wbg_setBindGroup_ce4432036922cd83=function(e,n,t,r,_,i,c){o[e].setBindGroup(n>>>0,o[t],C(r,_),i,c>>>0)},n.wbg.__wbg_draw_6357a5fbc8a6b097=function(e,n,t,r,_){o[e].draw(n>>>0,t>>>0,r>>>0,_>>>0)},n.wbg.__wbg_drawIndexed_5d1dd89d7375148c=function(e,n,t,r,_,i){o[e].drawIndexed(n>>>0,t>>>0,r>>>0,_,i>>>0)},n.wbg.__wbg_drawIndexedIndirect_526599171cfbbee5=function(e,n,t){o[e].drawIndexedIndirect(o[n],t)},n.wbg.__wbg_drawIndirect_8dd595dc622e21ac=function(e,n,t){o[e].drawIndirect(o[n],t)},n.wbg.__wbg_setIndexBuffer_1f4a86d1cc8c16d9=function(e,n,t,r){o[e].setIndexBuffer(o[n],i(t),r)},n.wbg.__wbg_setIndexBuffer_9f8493460611f96b=function(e,n,t,r,_){o[e].setIndexBuffer(o[n],i(t),r,_)},n.wbg.__wbg_setPipeline_18ce556bdea62cc5=function(e,n){o[e].setPipeline(o[n])},n.wbg.__wbg_setVertexBuffer_2a2c84d65c1063f9=function(e,n,t,r){o[e].setVertexBuffer(n>>>0,o[t],r)},n.wbg.__wbg_setVertexBuffer_176c2dff823c42c1=function(e,n,t,r,_){o[e].setVertexBuffer(n>>>0,o[t],r,_)},n.wbg.__wbg_getBindGroupLayout_dfc1b97f78c04beb=function(e,n){return b(o[e].getBindGroupLayout(n>>>0))},n.wbg.__wbg_has_8720889cf3ad610c=function(e,n,t){return o[e].has(f(n,t))},n.wbg.__wbg_maxTextureDimension1D_4d1ddb46ed9dc470=function(e){return o[e].maxTextureDimension1D},n.wbg.__wbg_maxTextureDimension2D_37a46e61490c8297=function(e){return o[e].maxTextureDimension2D},n.wbg.__wbg_maxTextureDimension3D_7e3a97204d211743=function(e){return o[e].maxTextureDimension3D},n.wbg.__wbg_maxTextureArrayLayers_fee4db585706a5eb=function(e){return o[e].maxTextureArrayLayers},n.wbg.__wbg_maxBindGroups_dc8a5f97ba653c91=function(e){return o[e].maxBindGroups},n.wbg.__wbg_maxBindingsPerBindGroup_3d5ab311420be5df=function(e){return o[e].maxBindingsPerBindGroup},n.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_6b839b7dc97f34f0=function(e){return o[e].maxDynamicUniformBuffersPerPipelineLayout},n.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_5328cd2b9d884831=function(e){return o[e].maxDynamicStorageBuffersPerPipelineLayout},n.wbg.__wbg_maxSampledTexturesPerShaderStage_ac006b00cf776b4a=function(e){return o[e].maxSampledTexturesPerShaderStage},n.wbg.__wbg_maxSamplersPerShaderStage_dc092d6a272be20a=function(e){return o[e].maxSamplersPerShaderStage},n.wbg.__wbg_maxStorageBuffersPerShaderStage_dc5b58734b9ab932=function(e){return o[e].maxStorageBuffersPerShaderStage},n.wbg.__wbg_maxStorageTexturesPerShaderStage_2fec939cb0d5bbfd=function(e){return o[e].maxStorageTexturesPerShaderStage},n.wbg.__wbg_maxUniformBuffersPerShaderStage_b30d53cbf89caeae=function(e){return o[e].maxUniformBuffersPerShaderStage},n.wbg.__wbg_maxUniformBufferBindingSize_eec576e1342504b5=function(e){return o[e].maxUniformBufferBindingSize},n.wbg.__wbg_maxStorageBufferBindingSize_1ef0cc5e43dad09b=function(e){return o[e].maxStorageBufferBindingSize},n.wbg.__wbg_minUniformBufferOffsetAlignment_3af8c32faa30c5d8=function(e){return o[e].minUniformBufferOffsetAlignment},n.wbg.__wbg_minStorageBufferOffsetAlignment_766ef8ea8f9fe6e1=function(e){return o[e].minStorageBufferOffsetAlignment},n.wbg.__wbg_maxVertexBuffers_b4d31be9e3f93990=function(e){return o[e].maxVertexBuffers},n.wbg.__wbg_maxBufferSize_2d8398a691b9a8ce=function(e){return o[e].maxBufferSize},n.wbg.__wbg_maxVertexAttributes_904c5eb19a6f6c65=function(e){return o[e].maxVertexAttributes},n.wbg.__wbg_maxVertexBufferArrayStride_6800975c373d83bc=function(e){return o[e].maxVertexBufferArrayStride},n.wbg.__wbg_maxInterStageShaderComponents_b9f179b1cde06d08=function(e){return o[e].maxInterStageShaderComponents},n.wbg.__wbg_maxComputeWorkgroupStorageSize_9318e498283b79fb=function(e){return o[e].maxComputeWorkgroupStorageSize},n.wbg.__wbg_maxComputeInvocationsPerWorkgroup_2bfea723194ac5a0=function(e){return o[e].maxComputeInvocationsPerWorkgroup},n.wbg.__wbg_maxComputeWorkgroupSizeX_91fc9ba04de4148f=function(e){return o[e].maxComputeWorkgroupSizeX},n.wbg.__wbg_maxComputeWorkgroupSizeY_9052627dce4a7d1f=function(e){return o[e].maxComputeWorkgroupSizeY},n.wbg.__wbg_maxComputeWorkgroupSizeZ_45a1a82f8446a750=function(e){return o[e].maxComputeWorkgroupSizeZ},n.wbg.__wbg_maxComputeWorkgroupsPerDimension_100ee7392cc04c20=function(e){return o[e].maxComputeWorkgroupsPerDimension},n.wbg.__wbg_createView_3e46af1f54fdcd1f=function(e,n){return b(o[e].createView(o[n]))},n.wbg.__wbg_destroy_728f676d96e34538=function(e){o[e].destroy()},n.wbg.__wbg_error_f85e77a2651e41dc=function(e){return b(o[e].error)},n.wbg.__wbg_instanceof_GpuValidationError_af2aa2e306669317=function(e){let n;try{n=o[e]instanceof GPUValidationError}catch(e){n=!1}return n},n.wbg.__wbg_new_1eead62f64ca15ce=function(){return k(function(){return b(new Headers)},arguments)},n.wbg.__wbg_get_2e9aab260014946d=function(){return k(function(e,n,t,_){let i=o[n].get(f(t,_));var c=s(i)?0:l(i,r.__wbindgen_malloc,r.__wbindgen_realloc),u=g;p()[e/4+1]=u,p()[e/4+0]=c},arguments)},n.wbg.__wbg_set_b34caba58723c454=function(){return k(function(e,n,t,r,_){o[e].set(f(n,t),f(r,_))},arguments)},n.wbg.__wbg_setwidth_a667a942dba6656e=function(e,n){o[e].width=n>>>0},n.wbg.__wbg_setheight_a747d440760fe5aa=function(e,n){o[e].height=n>>>0},n.wbg.__wbg_getContext_7c5944ea807bf5d3=function(){return k(function(e,n,t){let r=o[e].getContext(f(n,t));return s(r)?0:b(r)},arguments)},n.wbg.__wbg_objectStoreNames_774e47f8818de433=function(e){return b(o[e].objectStoreNames)},n.wbg.__wbg_setonversionchange_ee7f4abfb91cc81b=function(e,n){o[e].onversionchange=o[n]},n.wbg.__wbg_createObjectStore_40ad9287f7935c33=function(){return k(function(e,n,t){return b(o[e].createObjectStore(f(n,t)))},arguments)},n.wbg.__wbg_transaction_d6f1ef0b34b58a31=function(){return k(function(e,n,t,r){return b(o[e].transaction(f(n,t),i(r)))},arguments)},n.wbg.__wbg_open_6a08b03c958d4ad0=function(){return k(function(e,n,t,r){return b(o[e].open(f(n,t),r>>>0))},arguments)},n.wbg.__wbg_getAll_d8c6272f55cd084f=function(){return k(function(e,n){return b(o[e].getAll(o[n]))},arguments)},n.wbg.__wbg_createIndex_b4bbc14c3a294e77=function(){return k(function(e,n,t,r){return b(o[e].createIndex(f(n,t),o[r]))},arguments)},n.wbg.__wbg_get_fc26906e5ae1ea85=function(){return k(function(e,n){return b(o[e].get(o[n]))},arguments)},n.wbg.__wbg_index_915f5cc0bddc21df=function(){return k(function(e,n,t){return b(o[e].index(f(n,t)))},arguments)},n.wbg.__wbg_put_fb32824d87feec5c=function(){return k(function(e,n,t){return b(o[e].put(o[n],o[t]))},arguments)},n.wbg.__wbg_setonblocked_4311b52f166b3434=function(e,n){o[e].onblocked=o[n]},n.wbg.__wbg_setonupgradeneeded_5a39a65558c323b2=function(e,n){o[e].onupgradeneeded=o[n]},n.wbg.__wbg_result_edff16ff107d6acb=function(){return k(function(e){return b(o[e].result)},arguments)},n.wbg.__wbg_error_8a79f35fe9368563=function(){return k(function(e){let n=o[e].error;return s(n)?0:b(n)},arguments)},n.wbg.__wbg_readyState_a9f7376e6e642409=function(e){return b(o[e].readyState)},n.wbg.__wbg_setonsuccess_f518a37d8228a576=function(e,n){o[e].onsuccess=o[n]},n.wbg.__wbg_setonerror_7bf21979c5219792=function(e,n){o[e].onerror=o[n]},n.wbg.__wbg_setonabort_2b13e673d32df8bc=function(e,n){o[e].onabort=o[n]},n.wbg.__wbg_setoncomplete_97a83c9bfeb56eaf=function(e,n){o[e].oncomplete=o[n]},n.wbg.__wbg_setonerror_b7a755ab0647ce3e=function(e,n){o[e].onerror=o[n]},n.wbg.__wbg_objectStore_5a858a654147f96f=function(){return k(function(e,n,t){return b(o[e].objectStore(f(n,t)))},arguments)},n.wbg.__wbg_gpu_24536c9523d924b1=function(e){return b(o[e].gpu)},n.wbg.__wbg_get_c77649dd3862b63a=function(e,n){let t=o[e][n>>>0];return s(t)?0:b(t)},n.wbg.__wbg_setwidth_15266a5e81f43cf0=function(e,n){o[e].width=n>>>0},n.wbg.__wbg_setheight_2e9bab573f1775a6=function(e,n){o[e].height=n>>>0},n.wbg.__wbg_getReader_c9e7b98084cba41c=function(e){return b(o[e].getReader())},n.wbg.__wbg_instanceof_ReadableStreamDefaultReader_df870416942317b0=function(e){let n;try{n=o[e]instanceof ReadableStreamDefaultReader}catch(e){n=!1}return n},n.wbg.__wbg_read_b40399852b2f7b2b=function(e){return b(o[e].read())},n.wbg.__wbg_url_fda63503ced387ff=function(e,n){let t=l(o[n].url,r.__wbindgen_malloc,r.__wbindgen_realloc),_=g;p()[e/4+1]=_,p()[e/4+0]=t},n.wbg.__wbg_newwithstr_3d9bc779603a93c7=function(){return k(function(e,n){return b(new Request(f(e,n)))},arguments)},n.wbg.__wbg_newwithstrandinit_cad5cd6038c7ff5d=function(){return k(function(e,n,t){return b(new Request(f(e,n),o[t]))},arguments)},n.wbg.__wbg_instanceof_Response_fc4327dbfcdf5ced=function(e){let n;try{n=o[e]instanceof Response}catch(e){n=!1}return n},n.wbg.__wbg_status_ac85a3142a84caa2=function(e){return o[e].status},n.wbg.__wbg_ok_e3d8d84e630fd064=function(e){return o[e].ok},n.wbg.__wbg_headers_b70de86b8e989bc0=function(e){return b(o[e].headers)},n.wbg.__wbg_body_b86f372950de5b7d=function(e){let n=o[e].body;return s(n)?0:b(n)},n.wbg.__wbg_search_2ff3bb9114e0ca34=function(e,n){let t=l(o[n].search,r.__wbindgen_malloc,r.__wbindgen_realloc),_=g;p()[e/4+1]=_,p()[e/4+0]=t},n.wbg.__wbg_setsearch_16b87f04ea0e6b80=function(e,n,t){o[e].search=f(n,t)},n.wbg.__wbg_new_a76f6bcb38f791ea=function(){return k(function(e,n){return b(new URL(f(e,n)))},arguments)},n.wbg.__wbg_new_2a98b9c4a51bdc04=function(){return k(function(){return b(new URLSearchParams)},arguments)},n.wbg.__wbg_document_f7ace2b956f30a4f=function(e){let n=o[e].document;return s(n)?0:b(n)},n.wbg.__wbg_navigator_7c9103698acde322=function(e){return b(o[e].navigator)},n.wbg.__wbg_indexedDB_839701fb576f779c=function(){return k(function(e){let n=o[e].indexedDB;return s(n)?0:b(n)},arguments)},n.wbg.__wbg_fetch_336b6f0cb426b46e=function(e,n){return b(o[e].fetch(o[n]))},n.wbg.__wbg_instanceof_WorkerGlobalScope_d9d741da0fb130ce=function(e){let n;try{n=o[e]instanceof WorkerGlobalScope}catch(e){n=!1}return n},n.wbg.__wbg_navigator_41bd88b80ed4685e=function(e){return b(o[e].navigator)},n.wbg.__wbg_indexedDB_406f87676b363c82=function(){return k(function(e){let n=o[e].indexedDB;return s(n)?0:b(n)},arguments)},n.wbg.__wbg_fetch_8eaf01857a5bb21f=function(e,n){return b(o[e].fetch(o[n]))},n.wbg.__wbg_gpu_1678673f109c8aeb=function(e){return b(o[e].gpu)},n.wbg.__wbg_debug_9b8701f894da9929=function(e,n,t,r){console.debug(o[e],o[n],o[t],o[r])},n.wbg.__wbg_error_d9bce418caafb712=function(e,n,t,r){console.error(o[e],o[n],o[t],o[r])},n.wbg.__wbg_info_bb52f40b06f679de=function(e,n,t,r){console.info(o[e],o[n],o[t],o[r])},n.wbg.__wbg_log_ea7093e35e3efd07=function(e,n,t,r){console.log(o[e],o[n],o[t],o[r])},n.wbg.__wbg_warn_dfc0e0cf544a13bd=function(e,n,t,r){console.warn(o[e],o[n],o[t],o[r])},n.wbg.__wbg_get_bd8e338fbd5f5cc8=function(e,n){return b(o[e][n>>>0])},n.wbg.__wbg_length_cd7af8117672b8b8=function(e){return o[e].length},n.wbg.__wbg_new_16b304a2cfa7ff4a=function(){return b([])},n.wbg.__wbg_newnoargs_e258087cd0daa0ea=function(e,n){return b(Function(f(e,n)))},n.wbg.__wbg_new_d9bc3a0147634640=function(){return b(new Map)},n.wbg.__wbg_next_40fc327bfc8770e6=function(e){return b(o[e].next)},n.wbg.__wbg_next_196c84450b364254=function(){return k(function(e){return b(o[e].next())},arguments)},n.wbg.__wbg_done_298b57d23c0fc80c=function(e){return o[e].done},n.wbg.__wbg_value_d93c65011f51a456=function(e){return b(o[e].value)},n.wbg.__wbg_iterator_2cee6dadfd956dfa=function(){return b(Symbol.iterator)},n.wbg.__wbg_get_e3c254076557e348=function(){return k(function(e,n){return b(Reflect.get(o[e],o[n]))},arguments)},n.wbg.__wbg_call_27c0f87801dedf93=function(){return k(function(e,n){return b(o[e].call(o[n]))},arguments)},n.wbg.__wbg_new_72fb9a18b5ae2624=function(){return b({})},n.wbg.__wbg_set_d4638f722068f043=function(e,n,t){o[e][n>>>0]=i(t)},n.wbg.__wbg_isArray_2ab64d95e09ea0ae=function(e){return Array.isArray(o[e])},n.wbg.__wbg_push_a5b05aedc7234f9f=function(e,n){return o[e].push(o[n])},n.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2=function(e){let n;try{n=o[e]instanceof ArrayBuffer}catch(e){n=!1}return n},n.wbg.__wbg_instanceof_Error_e20bb56fd5591a93=function(e){let n;try{n=o[e]instanceof Error}catch(e){n=!1}return n},n.wbg.__wbg_message_5bf28016c2b49cfb=function(e){return b(o[e].message)},n.wbg.__wbg_name_e7429f0dda6079e2=function(e){return b(o[e].name)},n.wbg.__wbg_toString_ffe4c9ea3b3532e9=function(e){return b(o[e].toString())},n.wbg.__wbg_call_b3ca7c6051f9bec1=function(){return k(function(e,n,t){return b(o[e].call(o[n],o[t]))},arguments)},n.wbg.__wbg_set_8417257aaedc936b=function(e,n,t){return b(o[e].set(o[n],o[t]))},n.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2=function(e){return Number.isSafeInteger(o[e])},n.wbg.__wbg_getTime_2bc4375165f02d15=function(e){return o[e].getTime()},n.wbg.__wbg_getTimezoneOffset_38257122e236c190=function(e){return o[e].getTimezoneOffset()},n.wbg.__wbg_new_cf3ec55744a78578=function(e){return b(new Date(o[e]))},n.wbg.__wbg_new0_7d84e5b2cd9fdc73=function(){return b(new Date)},n.wbg.__wbg_instanceof_Object_71ca3c0a59266746=function(e){let n;try{n=o[e]instanceof Object}catch(e){n=!1}return n},n.wbg.__wbg_entries_95cc2c823b285a09=function(e){return b(Object.entries(o[e]))},n.wbg.__wbg_toString_c816a20ab859d0c1=function(e){return b(o[e].toString())},n.wbg.__wbg_valueOf_a0b7c836f68a054b=function(e){return b(o[e].valueOf())},n.wbg.__wbg_set_1f9b04f170055d33=function(){return k(function(e,n,t){return Reflect.set(o[e],o[n],o[t])},arguments)},n.wbg.__wbg_buffer_12d079cc21e14bdb=function(e){return b(o[e].buffer)},n.wbg.__wbg_stringify_8887fe74e1c50d81=function(){return k(function(e){return b(JSON.stringify(o[e]))},arguments)},n.wbg.__wbg_new_81740750da40724f=function(e,n){try{var t={a:e,b:n};let o=new Promise((e,n)=>{let o=t.a;t.a=0;try{var _;return _=t.b,void r.wasm_bindgen__convert__closures__invoke2_mut__h93c4e0660e881a4b(o,_,b(e),b(n))}finally{t.a=o}});return b(o)}finally{t.a=t.b=0}},n.wbg.__wbg_resolve_b0083a7967828ec8=function(e){return b(Promise.resolve(o[e]))},n.wbg.__wbg_then_0c86a60e8fcfe9f6=function(e,n){return b(o[e].then(o[n]))},n.wbg.__wbg_then_a73caa9a87991566=function(e,n,t){return b(o[e].then(o[n],o[t]))},n.wbg.__wbg_self_ce0dbfc45cf2f5be=function(){return k(function(){return b(self.self)},arguments)},n.wbg.__wbg_window_c6fb939a7f436783=function(){return k(function(){return b(window.window)},arguments)},n.wbg.__wbg_globalThis_d1e6af4856ba331b=function(){return k(function(){return b(globalThis.globalThis)},arguments)},n.wbg.__wbg_global_207b558942527489=function(){return k(function(){return b(t.g.global)},arguments)},n.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb=function(e,n,t){return b(new Uint8Array(o[e],n>>>0,t>>>0))},n.wbg.__wbg_new_63b92bc8671ed464=function(e){return b(new Uint8Array(o[e]))},n.wbg.__wbg_set_a47bac70306a19a7=function(e,n,t){o[e].set(o[n],t>>>0)},n.wbg.__wbg_length_c20a40f15020d68a=function(e){return o[e].length},n.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6=function(e){let n;try{n=o[e]instanceof Uint8Array}catch(e){n=!1}return n},n.wbg.__wbg_newwithlength_e9b4878cebadb3d3=function(e){return b(new Uint8Array(e>>>0))},n.wbg.__wbg_buffer_dd7f74bc60f1faab=function(e){return b(o[e].buffer)},n.wbg.__wbg_subarray_a1f73cd4b5b42fe1=function(e,n,t){return b(o[e].subarray(n>>>0,t>>>0))},n.wbg.__wbindgen_bigint_get_as_i64=function(e,n){let t=o[n],_="bigint"==typeof t?t:void 0;((null===v||0===v.byteLength)&&(v=new BigInt64Array(r.memory.buffer)),v)[e/8+1]=s(_)?BigInt(0):_,p()[e/4+0]=!s(_)},n.wbg.__wbindgen_debug_string=function(e,n){let t=l(function e(n){let t;let r=typeof n;if("number"==r||"boolean"==r||null==n)return"".concat(n);if("string"==r)return'"'.concat(n,'"');if("symbol"==r){let e=n.description;return null==e?"Symbol":"Symbol(".concat(e,")")}if("function"==r){let e=n.name;return"string"==typeof e&&e.length>0?"Function(".concat(e,")"):"Function"}if(Array.isArray(n)){let t=n.length,r="[";t>0&&(r+=e(n[0]));for(let o=1;o1))return toString.call(n);if("Object"==(t=o[1]))try{return"Object("+JSON.stringify(n)+")"}catch(e){return"Object"}return n instanceof Error?"".concat(n.name,": ").concat(n.message,"\n").concat(n.stack):t}(o[n]),r.__wbindgen_malloc,r.__wbindgen_realloc),_=g;p()[e/4+1]=_,p()[e/4+0]=t},n.wbg.__wbindgen_throw=function(e,n){throw Error(f(e,n))},n.wbg.__wbindgen_memory=function(){return b(r.memory)},n.wbg.__wbindgen_closure_wrapper498=function(e,n,t){return b(x(e,n,16,S))},n.wbg.__wbindgen_closure_wrapper4534=function(e,n,t){return b(x(e,n,2039,B))},n.wbg.__wbindgen_closure_wrapper4536=function(e,n,t){return b(x(e,n,2039,B))},n.wbg.__wbindgen_closure_wrapper4821=function(e,n,t){return b(x(e,n,2237,T))},n.wbg.__wbindgen_closure_wrapper4951=function(e,n,t){return b(A(e,n,2286,E))},n.wbg.__wbindgen_closure_wrapper4953=function(e,n,t){return b(A(e,n,2286,I))},n}();("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n));let{instance:c,module:a}=await G(await n,_);return r=c.exports,z.__wbindgen_wasm_module=a,v=null,y=null,m=null,R=null,u=null,r.__wbindgen_start(),r}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>r.__wbg_modelkey_free(e>>>0)),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>r.__wbg_segment_free(e>>>0)),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>r.__wbg_streamedsegment_free(e>>>0)),n.ZP=z},7337:function(e,n,t){var r,o;e.exports=(null==(r=t.g.process)?void 0:r.env)&&"object"==typeof(null==(o=t.g.process)?void 0:o.env)?t.g.process:t(1071)},1071:function(e){!function(){var n={229:function(e){var n,t,r,o=e.exports={};function _(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===_||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:_}catch(e){n=_}try{t="function"==typeof clearTimeout?clearTimeout:i}catch(e){t=i}}();var u=[],a=!1,f=-1;function b(){a&&r&&(a=!1,r.length?u=r.concat(u):f=-1,u.length&&g())}function g(){if(!a){var e=c(b);a=!0;for(var n=u.length;n;){for(r=u,u=[];++f1)for(var t=1;t1),f=[],b=!1,g=-1,d=void 0,w=void 0,l=function(e){return f.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(e))})},s=function(e){var n=e||window.event;return!!l(n.target)||n.touches.length>1||(n.preventDefault&&n.preventDefault(),!1)},m=function(e){if(void 0===w){var n=!!e&&!0===e.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;n&&t>0&&(w=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===d&&(d=document.body.style.overflow,document.body.style.overflow="hidden")},p=function(){void 0!==w&&(document.body.style.paddingRight=w,w=void 0),void 0!==d&&(document.body.style.overflow=d,d=void 0)},y=function(e,n){var t=e.targetTouches[0].clientY-g;return!l(e.target)&&(n&&0===n.scrollTop&&t>0?s(e):n&&n.scrollHeight-n.scrollTop<=n.clientHeight&&t<0?s(e):(e.stopPropagation(),!0))},v=function(e,n){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}!f.some(function(n){return n.targetElement===e})&&(f=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var n=0,t=Array(e.length);n-1&&!(null===_.offsetParent||"hidden"===getComputedStyle(_).visibility)&&function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!0;var n=(e.form||e.ownerDocument).querySelectorAll('input[type="radio"][name="'+e.name+'"]'),t=function(e,n){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{isStateful:!0},t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,[n,t]=r.useState(e),{current:o}=r.useRef({current:n});return Object.defineProperty(o,"current",{get:()=>n,set:e=>{Object.is(n,e)||(n=e,t(e))}}),o}(null),o=(0,r.useRef)(null),_=n.isStateful?t:o;return r.useEffect(()=>{e&&("function"==typeof e?e(_.current):e.current=_.current)}),_}(n),V=(0,r.useRef)(null),N=(0,r.useRef)(null),Q=(0,r.useRef)(null);null===Q.current&&(Q.current=document.createElement("div"));var H=(0,r.useState)(!1),Y=H[0],Z=H[1];(0,r.useEffect)(function(){return a&&I.add(V),function(){I.remove(V)}},[a,V]),R(V,a,Y,void 0===b||b,q);var K=function(){!Q.current||s||document.body.contains(Q.current)||document.body.appendChild(Q.current),document.addEventListener("keydown",J)},X=function(){Q.current&&!s&&document.body.contains(Q.current)&&document.body.removeChild(Q.current),document.removeEventListener("keydown",J)},J=function(e){27===e.keyCode&&I.isTopModal(V)&&(null==W||W(e),d&&L())};(0,r.useEffect)(function(){return function(){Y&&X()}},[Y]),(0,r.useEffect)(function(){a&&!Y&&(Z(!0),K())},[a]);var $=function(){N.current=!1},ee=s||Q.current,en=a?null!=(t=null==E?void 0:E.overlayAnimationIn)?t:k.overlayAnimationIn:null!=(_=null==E?void 0:E.overlayAnimationOut)?_:k.overlayAnimationOut,et=a?null!=(c=null==E?void 0:E.modalAnimationIn)?c:k.modalAnimationIn:null!=(u=null==E?void 0:E.modalAnimationOut)?u:k.modalAnimationOut;return Y&&ee?o.createPortal(r.createElement("div",{className:i()(k.root,null==E?void 0:E.root),style:null==C?void 0:C.root,"data-testid":"root"},r.createElement("div",{className:i()(k.overlay,null==E?void 0:E.overlay),"data-testid":"overlay","aria-hidden":!0,style:x({animation:en+" "+T+"ms"},null==C?void 0:C.overlay)}),r.createElement("div",{ref:V,id:G,className:i()(k.modalContainer,f&&k.modalContainerCenter,null==E?void 0:E.modalContainer),style:null==C?void 0:C.modalContainer,"data-testid":"modal-container",onClick:function(e){if(null===N.current&&(N.current=!0),!N.current){N.current=null;return}null==F||F(e),l&&L(),N.current=null}},r.createElement("div",{ref:M,className:i()(k.modal,null==E?void 0:E.modal),style:x({animation:et+" "+T+"ms"},null==C?void 0:C.modal),onMouseDown:$,onMouseUp:$,onClick:$,onAnimationEnd:function(){a||Z(!1),null==j||j()},id:z,role:void 0===P?"dialog":P,"aria-modal":"true","aria-labelledby":D,"aria-describedby":O,"data-testid":"modal",tabIndex:-1},(void 0===v||v)&&r.createElement(A,{container:M,initialFocusRef:void 0===h?void 0:h}),U,(void 0===m||m)&&r.createElement(S,{classes:k,classNames:E,styles:C,closeIcon:y,onClick:L,id:p})))),ee):null})},2948:function(e,n){var t;!/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */function(){var r={}.hasOwnProperty;function o(){for(var e="",n=0;n