Spaces:
Running
Running
webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[147],{3160:function(e,n,t){e.exports=t.p+"static/media/ratchet-web_bg.eb5751e3.wasm"},1190:function(e,n,t){let r;function o(e,n,t){if(!n.has(e))throw TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}function i(e,n){var t=o(e,n,"get");return t.get?t.get.call(e):t.value}function _(e,n,t){!function(e,n){if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,n),n.set(e,t)}function a(e,n,t){var r=o(e,n,"set");return!function(e,n,t){if(n.set)n.set.call(e,t);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=t}}(e,r,t),t}t.d(n,{C:function(){return y}}),(b=d||(d={})).LOAD="LOAD",b.EXEC="EXEC",b.WRITE_FILE="WRITE_FILE",b.READ_FILE="READ_FILE",b.DELETE_FILE="DELETE_FILE",b.RENAME="RENAME",b.CREATE_DIR="CREATE_DIR",b.LIST_DIR="LIST_DIR",b.DELETE_DIR="DELETE_DIR",b.ERROR="ERROR",b.DOWNLOAD="DOWNLOAD",b.PROGRESS="PROGRESS",b.LOG="LOG";let u=(r=0,()=>r++);Error("unknown message type");let c=Error("ffmpeg is not loaded, call `await ffmpeg.load()` first"),f=Error("called FFmpeg.terminate()");Error("failed to import ffmpeg-core.js");var b,d,g=new WeakMap,l=new WeakMap,s=new WeakMap,w=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap;class y{on(e,n){"log"===e?i(this,w).push(n):"progress"===e&&i(this,p).push(n)}off(e,n){"log"===e?a(this,w,i(this,w).filter(e=>e!==n)):"progress"===e&&a(this,p,i(this,p).filter(e=>e!==n))}constructor(){var e=this;_(this,g,{writable:!0,value:void 0}),_(this,l,{writable:!0,value:void 0}),_(this,s,{writable:!0,value:void 0}),_(this,w,{writable:!0,value:void 0}),_(this,p,{writable:!0,value:void 0}),_(this,m,{writable:!0,value:void 0}),_(this,h,{writable:!0,value:void 0}),a(this,g,null),a(this,l,{}),a(this,s,{}),a(this,w,[]),a(this,p,[]),this.loaded=!1,a(this,m,()=>{i(this,g)&&(i(this,g).onmessage=e=>{let{data:{id:n,type:t,data:r}}=e;switch(t){case d.LOAD:this.loaded=!0,i(this,l)[n](r);break;case d.EXEC:case d.WRITE_FILE:case d.READ_FILE:case d.DELETE_FILE:case d.RENAME:case d.CREATE_DIR:case d.LIST_DIR:case d.DELETE_DIR:i(this,l)[n](r);break;case d.LOG:i(this,w).forEach(e=>e(r));break;case d.PROGRESS:i(this,p).forEach(e=>e(r));break;case d.ERROR:i(this,s)[n](r)}delete i(this,l)[n],delete i(this,s)[n]})}),a(this,h,function(n){let{type:t,data:r}=n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i(e,g)?new Promise((n,_)=>{let a=u();i(e,g)&&i(e,g).postMessage({id:a,type:t,data:r},o),i(e,l)[a]=n,i(e,s)[a]=_}):Promise.reject(c)}),this.load=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(e,g)||(a(e,g,new Worker(t.tu(new URL(t.p+t.u(629),t.b)),{type:void 0})),i(e,m).call(e)),i(e,h).call(e,{type:d.LOAD,data:n})},this.exec=function(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return i(e,h).call(e,{type:d.EXEC,data:{args:n,timeout:t}})},this.terminate=()=>{for(let e of Object.keys(i(this,s)))i(this,s)[e](f),delete i(this,s)[e],delete i(this,l)[e];i(this,g)&&(i(this,g).terminate(),a(this,g,null),this.loaded=!1)},this.writeFile=(e,n)=>{let t=[];return n instanceof Uint8Array&&t.push(n.buffer),i(this,h).call(this,{type:d.WRITE_FILE,data:{path:e,data:n}},t)},this.readFile=function(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"binary";return i(e,h).call(e,{type:d.READ_FILE,data:{path:n,encoding:t}})},this.deleteFile=e=>i(this,h).call(this,{type:d.DELETE_FILE,data:{path:e}}),this.rename=(e,n)=>i(this,h).call(this,{type:d.RENAME,data:{oldPath:e,newPath:n}}),this.createDir=e=>i(this,h).call(this,{type:d.CREATE_DIR,data:{path:e}}),this.listDir=e=>i(this,h).call(this,{type:d.LIST_DIR,data:{path:e}}),this.deleteDir=e=>i(this,h).call(this,{type:d.DELETE_DIR,data:{path:e}})}}},1715:function(e,n,t){t.d(n,{Wn:function(){return _}});let r=Error("failed to get response body reader"),o=Error("failed to complete download"),i=async(e,n)=>{let t;let i=await fetch(e);try{var _;let a=parseInt(i.headers.get("Content-Length")||"-1"),u=null===(_=i.body)||void 0===_?void 0:_.getReader();if(!u)throw r;let c=[],f=0;for(;;){let{done:t,value:r}=await u.read(),i=r?r.length:0;if(t){if(-1!=a&&a!==f)throw o;n&&n({url:e,total:a,received:f,delta:i,done:t});break}c.push(r),f+=i,n&&n({url:e,total:a,received:f,delta:i,done:t})}let b=new Uint8Array(f),d=0;for(let e of c)b.set(e,d),d+=e.length;t=b.buffer}catch(r){console.log("failed to send download progress event: ",r),t=await i.arrayBuffer(),n&&n({url:e,total:t.byteLength,received:t.byteLength,delta:0,done:!0})}return t},_=async function(e,n){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,o=t?await i(e,r):await (await fetch(e)).arrayBuffer(),_=new Blob([o],{type:n});return URL.createObjectURL(_)}},7439:function(e,n,t){let r;t.d(n,{Hn:function(){return G},dX:function(){return W},iQ:function(){return D},ko:function(){return P},qX:function(){return O}}),e=t.hmd(e);let o="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&o.decode();let i=null;function _(){return(null===i||0===i.byteLength)&&(i=new Uint8Array(r.memory.buffer)),i}function a(e,n){return e>>>=0,o.decode(_().subarray(e,e+n))}let u=Array(128).fill(void 0);u.push(void 0,null,!0,!1);let c=u.length;function f(e){c===u.length&&u.push(u.length+1);let n=c;return c=u[n],u[n]=e,n}function b(e){let n=u[e];return e<132||(u[e]=c,c=e),n}let d=0,g="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},l="function"==typeof g.encodeInto?function(e,n){return g.encodeInto(e,n)}:function(e,n){let t=g.encode(e);return n.set(t),{read:e.length,written:t.length}};function s(e,n,t){if(void 0===t){let t=g.encode(e),r=n(t.length,1)>>>0;return _().subarray(r,r+t.length).set(t),d=t.length,r}let r=e.length,o=n(r,1)>>>0,i=_(),a=0;for(;a<r;a++){let n=e.charCodeAt(a);if(n>127)break;i[o+a]=n}if(a!==r){0!==a&&(e=e.slice(a)),o=t(o,r,r=a+3*e.length,1)>>>0;let n=l(e,_().subarray(o+a,o+r));a+=n.written,o=t(o,r,a,1)>>>0}return d=a,o}function w(e){return null==e}let p=null;function m(){return(null===p||0===p.byteLength)&&(p=new Int32Array(r.memory.buffer)),p}let h=null,y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{r.__wbindgen_export_2.get(e.dtor)(e.a,e.b)});function v(e,n,t,o){let i={a:e,b:n,cnt:1,dtor:t},_=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];i.cnt++;let _=i.a;i.a=0;try{return o(_,i.b,...n)}finally{0==--i.cnt?(r.__wbindgen_export_2.get(i.dtor)(_,i.b),y.unregister(i)):i.a=_}};return _.original=i,y.register(_,i,i),_}function E(e,n,t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.wasm_bindgen__convert__closures__invoke1_mut__hea528b1e514636ce(i,e,n,f(t));var o=m()[i/4+0];if(m()[i/4+1])throw b(o)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function S(e,n,t){r.wasm_bindgen__convert__closures__invoke1_mut__h832fcc0b11b266f7(e,n,f(t))}function x(e,n,t){r.wasm_bindgen__convert__closures__invoke1_mut__h61dd9a25b5f841db(e,n,f(t))}function R(e,n,t,o){let i={a:e,b:n,cnt:1,dtor:t},_=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];i.cnt++;try{return o(i.a,i.b,...n)}finally{0==--i.cnt&&(r.__wbindgen_export_2.get(i.dtor)(i.a,i.b),i.a=0,y.unregister(i))}};return _.original=i,y.register(_,i,i),_}function T(e,n,t){r.wasm_bindgen__convert__closures__invoke1__h03334f4251e43268(e,n,f(t))}function B(e,n){r._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6fafb2b57fe7fa02(e,n)}let I=null;function A(){return(null===I||0===I.byteLength)&&(I=new Uint32Array(r.memory.buffer)),I}function L(e,n){try{return e.apply(this,n)}catch(e){r.__wbindgen_exn_store(f(e))}}function k(e,n){return e>>>=0,A().subarray(e/4,e/4+n)}Object.freeze({Model:0,0:"Model",Dataset:1,1:"Dataset",Space:2,2:"Space"});let P=Object.freeze({WHISPER_TINY:0,0:"WHISPER_TINY",WHISPER_BASE:1,1:"WHISPER_BASE",WHISPER_SMALL:2,2:"WHISPER_SMALL",WHISPER_MEDIUM:3,3:"WHISPER_MEDIUM",WHISPER_LARGE_V2:4,4:"WHISPER_LARGE_V2",WHISPER_LARGE_V3:5,5:"WHISPER_LARGE_V3"}),D=Object.freeze({Transcribe:0,0:"Transcribe",Translate:1,1:"Translate"}),O=Object.freeze({Q8:0,0:"Q8",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));let C="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_decodingoptionsbuilder_free(e>>>0));class W{static __wrap(e){e>>>=0;let n=Object.create(W.prototype);return n.__wbg_ptr=e,C.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,C.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_decodingoptionsbuilder_free(e)}setTask(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setTask(n,e);return W.__wrap(t)}setLanguage(e){let n=this.__destroy_into_raw(),t=s(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d,i=r.decodingoptionsbuilder_setLanguage(n,t,o);return W.__wrap(i)}setTemperature(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setTemperature(n,e);return W.__wrap(t)}setSampleLen(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setSampleLen(n,e);return W.__wrap(t)}setBestOf(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setBestOf(n,e);return W.__wrap(t)}setBeamSize(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setBeamSize(n,e);return W.__wrap(t)}setPatience(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setPatience(n,e);return W.__wrap(t)}setLengthPenalty(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setLengthPenalty(n,e);return W.__wrap(t)}setPrompt(e){let n=this.__destroy_into_raw(),t=s(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d,i=r.decodingoptionsbuilder_setPrompt(n,t,o);return W.__wrap(i)}setPrefix(e){let n=this.__destroy_into_raw(),t=s(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d,i=r.decodingoptionsbuilder_setPrefix(n,t,o);return W.__wrap(i)}setSuppressTokens(e){let n=this.__destroy_into_raw(),t=function(e,n){let t=n(4*e.length,4)>>>0;return A().set(e,t/4),d=e.length,t}(e,r.__wbindgen_malloc),o=d,i=r.decodingoptionsbuilder_setSuppressTokens(n,t,o);return W.__wrap(i)}setSuppressBlank(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setSuppressBlank(n,e);return W.__wrap(t)}setWithoutTimestamps(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setWithoutTimestamps(n,e);return W.__wrap(t)}setMaxInitialTimestamp(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setMaxInitialTimestamp(n,e);return W.__wrap(t)}setTimeOffset(e){let n=this.__destroy_into_raw(),t=r.decodingoptionsbuilder_setTimeOffset(n,e);return W.__wrap(t)}build(){return b(r.decodingoptionsbuilder_build(this.__wbg_ptr))}constructor(){let e=r.decodingoptionsbuilder_new();return this.__wbg_ptr=e>>>0,this}}let F="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_model_free(e>>>0));class G{static __wrap(e){e>>>=0;let n=Object.create(G.prototype);return n.__wbg_ptr=e,F.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_model_free(e)}static load(e,n,t){return b(r.model_load(e,n,f(t)))}run(e){return b(r.model_run(this.__wbg_ptr,f(e)))}}async function z(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 M(n){if(void 0!==r)return r;void 0===n&&(n=new t.U(t(3160)));let o=function(){let n={};return n.wbg={},n.wbg.__wbindgen_string_new=function(e,n){return f(a(e,n))},n.wbg.__wbindgen_object_drop_ref=function(e){b(e)},n.wbg.__wbindgen_is_undefined=function(e){return void 0===u[e]},n.wbg.__wbindgen_boolean_get=function(e){let n=u[e];return"boolean"==typeof n?n?1:0:2},n.wbg.__wbindgen_number_new=function(e){return f(e)},n.wbg.__wbindgen_cb_drop=function(e){let n=b(e).original;return 1==n.cnt--&&(n.a=0,!0)},n.wbg.__wbindgen_as_number=function(e){return+u[e]},n.wbg.__wbindgen_object_clone_ref=function(e){return f(u[e])},n.wbg.__wbg_model_new=function(e){return f(G.__wrap(e))},n.wbg.__wbindgen_error_new=function(e,n){return f(Error(a(e,n)))},n.wbg.__wbindgen_is_object=function(e){let n=u[e];return"object"==typeof n&&null!==n},n.wbg.__wbindgen_in=function(e,n){return u[e]in u[n]},n.wbg.__wbindgen_string_get=function(e,n){let t=u[n],o="string"==typeof t?t:void 0;var i=w(o)?0:s(o,r.__wbindgen_malloc,r.__wbindgen_realloc),_=d;m()[e/4+1]=_,m()[e/4+0]=i},n.wbg.__wbindgen_number_get=function(e,n){let t=u[n],o="number"==typeof t?t:void 0;((null===h||0===h.byteLength)&&(h=new Float64Array(r.memory.buffer)),h)[e/8+1]=w(o)?0:o,m()[e/4+0]=!w(o)},n.wbg.__wbindgen_is_function=function(e){return"function"==typeof u[e]},n.wbg.__wbindgen_is_string=function(e){return"string"==typeof u[e]},n.wbg.__wbindgen_is_null=function(e){return null===u[e]},n.wbg.__wbindgen_jsval_loose_eq=function(e,n){return u[e]==u[n]},n.wbg.__wbg_String_b9412f8799faab3e=function(e,n){let t=s(String(u[n]),r.__wbindgen_malloc,r.__wbindgen_realloc),o=d;m()[e/4+1]=o,m()[e/4+0]=t},n.wbg.__wbindgen_bigint_from_u64=function(e){return f(BigInt.asUintN(64,e))},n.wbg.__wbg_getwithrefkey_edc2c8960f0f1191=function(e,n){return f(u[e][u[n]])},n.wbg.__wbg_set_f975102236d3c502=function(e,n,t){u[e][b(n)]=b(t)},n.wbg.__wbg_set_20cbc34131e76824=function(e,n,t){u[e][b(n)]=b(t)},n.wbg.__wbg_performance_3f3012faa4463882=function(e){return f(u[e].performance)},n.wbg.__wbg_now_2fd65358804c9485=function(e){return u[e].now()},n.wbg.__wbg_Window_7bd5d737b6110ed5=function(e){return f(u[e].Window)},n.wbg.__wbg_WorkerGlobalScope_10e1fa12a09a520b=function(e){return f(u[e].WorkerGlobalScope)},n.wbg.__wbg_getRandomValues_7e42b4fb8779dc6d=function(){return L(function(e,n){u[e].getRandomValues(u[n])},arguments)},n.wbg.__wbg_randomFillSync_b70ccbdf4926a99d=function(){return L(function(e,n){u[e].randomFillSync(b(n))},arguments)},n.wbg.__wbg_crypto_d05b68a3572bb8ca=function(e){return f(u[e].crypto)},n.wbg.__wbg_process_b02b3570280d0366=function(e){return f(u[e].process)},n.wbg.__wbg_versions_c1cb42213cedf0f5=function(e){return f(u[e].versions)},n.wbg.__wbg_node_43b1089f407e4ec2=function(e){return f(u[e].node)},n.wbg.__wbg_msCrypto_10fc94afee92bd76=function(e){return f(u[e].msCrypto)},n.wbg.__wbg_require_9a7e0f667ead4995=function(){return L(function(){return f(e.require)},arguments)},n.wbg.__wbg_new_abda76e883ba8a5f=function(){return f(Error())},n.wbg.__wbg_stack_658279fe44541cf6=function(e,n){let t=s(u[n].stack,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d;m()[e/4+1]=o,m()[e/4+0]=t},n.wbg.__wbg_error_f851667af71bcfc6=function(e,n){let t,o;try{t=e,o=n,console.error(a(e,n))}finally{r.__wbindgen_free(t,o,1)}},n.wbg.__wbg_queueMicrotask_f61ee94ee663068b=function(e){queueMicrotask(u[e])},n.wbg.__wbg_queueMicrotask_f82fc5d1e8f816ae=function(e){return f(u[e].queueMicrotask)},n.wbg.__wbg_Window_4c97c099b03994c2=function(e){return f(u[e].Window)},n.wbg.__wbg_WorkerGlobalScope_b87d69ab991859f6=function(e){return f(u[e].WorkerGlobalScope)},n.wbg.__wbg_global_c22c39d5b60f622c=function(e){return f(u[e].global)},n.wbg.__wbg_indexedDB_f50e4ba5302a87c6=function(){return L(function(e){let n=u[e].indexedDB;return w(n)?0:f(n)},arguments)},n.wbg.__wbg_instanceof_Window_9029196b662bc42a=function(e){let n;try{n=u[e]instanceof Window}catch(e){n=!1}return n},n.wbg.__wbg_querySelectorAll_c03e8664a5a0f0c5=function(){return L(function(e,n,t){return f(u[e].querySelectorAll(a(n,t)))},arguments)},n.wbg.__wbg_name_e1f42ed4f319b110=function(e,n){let t=s(u[n].name,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d;m()[e/4+1]=o,m()[e/4+0]=t},n.wbg.__wbg_message_ad3cc15a4d40c34b=function(e,n){let t=s(u[n].message,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d;m()[e/4+1]=o,m()[e/4+0]=t},n.wbg.__wbg_code_e5bc0ed8fd7bc4b8=function(e){return u[e].code},n.wbg.__wbg_item_d675c1262c12fad2=function(e,n,t){let o=u[n].item(t>>>0);var i=w(o)?0:s(o,r.__wbindgen_malloc,r.__wbindgen_realloc),_=d;m()[e/4+1]=_,m()[e/4+0]=i},n.wbg.__wbg_target_f171e89c61e2bccf=function(e){let n=u[e].target;return w(n)?0:f(n)},n.wbg.__wbg_getPreferredCanvasFormat_1f6c9ef810196b92=function(e){return f(u[e].getPreferredCanvasFormat())},n.wbg.__wbg_requestAdapter_d8298d7a27a391f0=function(e,n){return f(u[e].requestAdapter(u[n]))},n.wbg.__wbg_instanceof_GpuAdapter_c0a5a310603ba618=function(e){let n;try{n=u[e]instanceof GPUAdapter}catch(e){n=!1}return n},n.wbg.__wbg_features_88901f43932fb28e=function(e){return f(u[e].features)},n.wbg.__wbg_limits_a7f3fbf58768b61f=function(e){return f(u[e].limits)},n.wbg.__wbg_requestDevice_068e794820eb88eb=function(e,n){return f(u[e].requestDevice(u[n]))},n.wbg.__wbg_size_6540ddb49e0d7120=function(e){return u[e].size},n.wbg.__wbg_usage_f5b34f3e0170424b=function(e){return u[e].usage},n.wbg.__wbg_destroy_9b5398e5b148e210=function(e){u[e].destroy()},n.wbg.__wbg_getMappedRange_becef7e3d9dc5489=function(e,n,t){return f(u[e].getMappedRange(n,t))},n.wbg.__wbg_mapAsync_91acdcf41b7ae21d=function(e,n,t,r){return f(u[e].mapAsync(n>>>0,t,r))},n.wbg.__wbg_unmap_1677c09514e08e64=function(e){u[e].unmap()},n.wbg.__wbg_instanceof_GpuCanvasContext_7a77e275c38d41d8=function(e){let n;try{n=u[e]instanceof GPUCanvasContext}catch(e){n=!1}return n},n.wbg.__wbg_configure_93a57a4e5e0f8bcf=function(e,n){u[e].configure(u[n])},n.wbg.__wbg_getCurrentTexture_ecedc4f6f71990d2=function(e){return f(u[e].getCurrentTexture())},n.wbg.__wbg_label_c7970304720cf8b0=function(e,n){let t=s(u[n].label,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d;m()[e/4+1]=o,m()[e/4+0]=t},n.wbg.__wbg_beginComputePass_579a2563c561da68=function(e,n){return f(u[e].beginComputePass(u[n]))},n.wbg.__wbg_beginRenderPass_d04327f7231bd5af=function(e,n){return f(u[e].beginRenderPass(u[n]))},n.wbg.__wbg_clearBuffer_c370e7adb8398388=function(e,n,t){u[e].clearBuffer(u[n],t)},n.wbg.__wbg_clearBuffer_b8e6751290709d43=function(e,n,t,r){u[e].clearBuffer(u[n],t,r)},n.wbg.__wbg_copyBufferToBuffer_79ac12f409453cf0=function(e,n,t,r,o,i){u[e].copyBufferToBuffer(u[n],t,u[r],o,i)},n.wbg.__wbg_copyBufferToTexture_ac956e6d47c24e73=function(e,n,t,r){u[e].copyBufferToTexture(u[n],u[t],u[r])},n.wbg.__wbg_copyTextureToBuffer_787ec8d8c4c216f1=function(e,n,t,r){u[e].copyTextureToBuffer(u[n],u[t],u[r])},n.wbg.__wbg_copyTextureToTexture_a86e849469b0ef38=function(e,n,t,r){u[e].copyTextureToTexture(u[n],u[t],u[r])},n.wbg.__wbg_finish_5153789564a5eee5=function(e){return f(u[e].finish())},n.wbg.__wbg_finish_d1049a13335e8326=function(e,n){return f(u[e].finish(u[n]))},n.wbg.__wbg_resolveQuerySet_8ac49c71e15cdf6a=function(e,n,t,r,o,i){u[e].resolveQuerySet(u[n],t>>>0,r>>>0,u[o],i>>>0)},n.wbg.__wbg_writeTimestamp_107647519ce52436=function(e,n,t){u[e].writeTimestamp(u[n],t>>>0)},n.wbg.__wbg_dispatchWorkgroups_c484cd3530a3801d=function(e,n,t,r){u[e].dispatchWorkgroups(n>>>0,t>>>0,r>>>0)},n.wbg.__wbg_dispatchWorkgroupsIndirect_2b89ee1731fab5f8=function(e,n,t){u[e].dispatchWorkgroupsIndirect(u[n],t)},n.wbg.__wbg_end_dab719019df5969c=function(e){u[e].end()},n.wbg.__wbg_setPipeline_598117fdeb73cf8f=function(e,n){u[e].setPipeline(u[n])},n.wbg.__wbg_setBindGroup_c619f49c16ef095b=function(e,n,t){u[e].setBindGroup(n>>>0,u[t])},n.wbg.__wbg_setBindGroup_dffce83253968cdd=function(e,n,t,r,o,i,_){u[e].setBindGroup(n>>>0,u[t],k(r,o),i,_>>>0)},n.wbg.__wbg_getBindGroupLayout_20dc45d52b96fa42=function(e,n){return f(u[e].getBindGroupLayout(n>>>0))},n.wbg.__wbg_features_dfb2178c91fa1dd7=function(e){return f(u[e].features)},n.wbg.__wbg_limits_45ceb777867eb768=function(e){return f(u[e].limits)},n.wbg.__wbg_queue_f2aeb5c277e56f93=function(e){return f(u[e].queue)},n.wbg.__wbg_setonuncapturederror_b3c814f611d5e585=function(e,n){u[e].onuncapturederror=u[n]},n.wbg.__wbg_createBindGroup_fa5515d52f9c6a69=function(e,n){return f(u[e].createBindGroup(u[n]))},n.wbg.__wbg_createBindGroupLayout_af3b9d9ee0a1f5f9=function(e,n){return f(u[e].createBindGroupLayout(u[n]))},n.wbg.__wbg_createBuffer_36e159f52cc644a7=function(e,n){return f(u[e].createBuffer(u[n]))},n.wbg.__wbg_createCommandEncoder_a50a1dab2b499b95=function(e,n){return f(u[e].createCommandEncoder(u[n]))},n.wbg.__wbg_createComputePipeline_89131452dfd12672=function(e,n){return f(u[e].createComputePipeline(u[n]))},n.wbg.__wbg_createPipelineLayout_1e10c8281fb85c01=function(e,n){return f(u[e].createPipelineLayout(u[n]))},n.wbg.__wbg_createQuerySet_ccb746122176f8e5=function(e,n){return f(u[e].createQuerySet(u[n]))},n.wbg.__wbg_createRenderBundleEncoder_ad2d0237f581427b=function(e,n){return f(u[e].createRenderBundleEncoder(u[n]))},n.wbg.__wbg_createRenderPipeline_745f00bcb1ca6edf=function(e,n){return f(u[e].createRenderPipeline(u[n]))},n.wbg.__wbg_createSampler_09cd36835c9befb3=function(e,n){return f(u[e].createSampler(u[n]))},n.wbg.__wbg_createShaderModule_59bbf537b8b5cf7c=function(e,n){return f(u[e].createShaderModule(u[n]))},n.wbg.__wbg_createTexture_dbd00b550944125c=function(e,n){return f(u[e].createTexture(u[n]))},n.wbg.__wbg_destroy_abb6deaa6cb27aa3=function(e){u[e].destroy()},n.wbg.__wbg_popErrorScope_19075fb98a08b740=function(e){return f(u[e].popErrorScope())},n.wbg.__wbg_pushErrorScope_0728aae3f2d3ed48=function(e,n){u[e].pushErrorScope(b(n))},n.wbg.__wbg_message_c934153af8567cdb=function(e,n){let t=s(u[n].message,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d;m()[e/4+1]=o,m()[e/4+0]=t},n.wbg.__wbg_instanceof_GpuOutOfMemoryError_45166ef4e2774fbe=function(e){let n;try{n=u[e]instanceof GPUOutOfMemoryError}catch(e){n=!1}return n},n.wbg.__wbg_copyExternalImageToTexture_819ec294d299f624=function(e,n,t,r){u[e].copyExternalImageToTexture(u[n],u[t],u[r])},n.wbg.__wbg_submit_3104e9b014f75846=function(e,n){u[e].submit(u[n])},n.wbg.__wbg_writeBuffer_becf0c8f0323ffd7=function(e,n,t,r,o,i){u[e].writeBuffer(u[n],t,u[r],o,i)},n.wbg.__wbg_writeTexture_465ecc6146e5052c=function(e,n,t,r,o){u[e].writeTexture(u[n],u[t],u[r],u[o])},n.wbg.__wbg_finish_863657abae52896e=function(e){return f(u[e].finish())},n.wbg.__wbg_finish_e580ef236d53f04b=function(e,n){return f(u[e].finish(u[n]))},n.wbg.__wbg_setBindGroup_e6d2dd2ab3573b6d=function(e,n,t){u[e].setBindGroup(n>>>0,u[t])},n.wbg.__wbg_setBindGroup_6bc8944422dbb3cd=function(e,n,t,r,o,i,_){u[e].setBindGroup(n>>>0,u[t],k(r,o),i,_>>>0)},n.wbg.__wbg_draw_3958097471a10642=function(e,n,t,r,o){u[e].draw(n>>>0,t>>>0,r>>>0,o>>>0)},n.wbg.__wbg_drawIndexed_8856cc4ccffa3498=function(e,n,t,r,o,i){u[e].drawIndexed(n>>>0,t>>>0,r>>>0,o,i>>>0)},n.wbg.__wbg_drawIndexedIndirect_0404fa6cb9a6db25=function(e,n,t){u[e].drawIndexedIndirect(u[n],t)},n.wbg.__wbg_drawIndirect_95c6eb1494a44d06=function(e,n,t){u[e].drawIndirect(u[n],t)},n.wbg.__wbg_setIndexBuffer_4dc5432dc348458d=function(e,n,t,r){u[e].setIndexBuffer(u[n],b(t),r)},n.wbg.__wbg_setIndexBuffer_f3bae4da9e407eaf=function(e,n,t,r,o){u[e].setIndexBuffer(u[n],b(t),r,o)},n.wbg.__wbg_setPipeline_66f1e900256fc946=function(e,n){u[e].setPipeline(u[n])},n.wbg.__wbg_setVertexBuffer_c782d133fd439184=function(e,n,t,r){u[e].setVertexBuffer(n>>>0,u[t],r)},n.wbg.__wbg_setVertexBuffer_4da0a96267ce82db=function(e,n,t,r,o){u[e].setVertexBuffer(n>>>0,u[t],r,o)},n.wbg.__wbg_end_bdfb66792e0c59a2=function(e){u[e].end()},n.wbg.__wbg_executeBundles_0a1fdfd83c1a3e57=function(e,n){u[e].executeBundles(u[n])},n.wbg.__wbg_setBlendConstant_e89574db5137b2f6=function(e,n){u[e].setBlendConstant(u[n])},n.wbg.__wbg_setScissorRect_0af8c89e90a6e89c=function(e,n,t,r,o){u[e].setScissorRect(n>>>0,t>>>0,r>>>0,o>>>0)},n.wbg.__wbg_setStencilReference_71be0db67db2f7ab=function(e,n){u[e].setStencilReference(n>>>0)},n.wbg.__wbg_setViewport_9c5fb686baf1cf4f=function(e,n,t,r,o,i,_){u[e].setViewport(n,t,r,o,i,_)},n.wbg.__wbg_setBindGroup_ed098a3302f084a7=function(e,n,t){u[e].setBindGroup(n>>>0,u[t])},n.wbg.__wbg_setBindGroup_ce4432036922cd83=function(e,n,t,r,o,i,_){u[e].setBindGroup(n>>>0,u[t],k(r,o),i,_>>>0)},n.wbg.__wbg_draw_6357a5fbc8a6b097=function(e,n,t,r,o){u[e].draw(n>>>0,t>>>0,r>>>0,o>>>0)},n.wbg.__wbg_drawIndexed_5d1dd89d7375148c=function(e,n,t,r,o,i){u[e].drawIndexed(n>>>0,t>>>0,r>>>0,o,i>>>0)},n.wbg.__wbg_drawIndexedIndirect_526599171cfbbee5=function(e,n,t){u[e].drawIndexedIndirect(u[n],t)},n.wbg.__wbg_drawIndirect_8dd595dc622e21ac=function(e,n,t){u[e].drawIndirect(u[n],t)},n.wbg.__wbg_setIndexBuffer_1f4a86d1cc8c16d9=function(e,n,t,r){u[e].setIndexBuffer(u[n],b(t),r)},n.wbg.__wbg_setIndexBuffer_9f8493460611f96b=function(e,n,t,r,o){u[e].setIndexBuffer(u[n],b(t),r,o)},n.wbg.__wbg_setPipeline_18ce556bdea62cc5=function(e,n){u[e].setPipeline(u[n])},n.wbg.__wbg_setVertexBuffer_2a2c84d65c1063f9=function(e,n,t,r){u[e].setVertexBuffer(n>>>0,u[t],r)},n.wbg.__wbg_setVertexBuffer_176c2dff823c42c1=function(e,n,t,r,o){u[e].setVertexBuffer(n>>>0,u[t],r,o)},n.wbg.__wbg_getBindGroupLayout_dfc1b97f78c04beb=function(e,n){return f(u[e].getBindGroupLayout(n>>>0))},n.wbg.__wbg_has_8720889cf3ad610c=function(e,n,t){return u[e].has(a(n,t))},n.wbg.__wbg_maxTextureDimension1D_4d1ddb46ed9dc470=function(e){return u[e].maxTextureDimension1D},n.wbg.__wbg_maxTextureDimension2D_37a46e61490c8297=function(e){return u[e].maxTextureDimension2D},n.wbg.__wbg_maxTextureDimension3D_7e3a97204d211743=function(e){return u[e].maxTextureDimension3D},n.wbg.__wbg_maxTextureArrayLayers_fee4db585706a5eb=function(e){return u[e].maxTextureArrayLayers},n.wbg.__wbg_maxBindGroups_dc8a5f97ba653c91=function(e){return u[e].maxBindGroups},n.wbg.__wbg_maxBindingsPerBindGroup_3d5ab311420be5df=function(e){return u[e].maxBindingsPerBindGroup},n.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_6b839b7dc97f34f0=function(e){return u[e].maxDynamicUniformBuffersPerPipelineLayout},n.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_5328cd2b9d884831=function(e){return u[e].maxDynamicStorageBuffersPerPipelineLayout},n.wbg.__wbg_maxSampledTexturesPerShaderStage_ac006b00cf776b4a=function(e){return u[e].maxSampledTexturesPerShaderStage},n.wbg.__wbg_maxSamplersPerShaderStage_dc092d6a272be20a=function(e){return u[e].maxSamplersPerShaderStage},n.wbg.__wbg_maxStorageBuffersPerShaderStage_dc5b58734b9ab932=function(e){return u[e].maxStorageBuffersPerShaderStage},n.wbg.__wbg_maxStorageTexturesPerShaderStage_2fec939cb0d5bbfd=function(e){return u[e].maxStorageTexturesPerShaderStage},n.wbg.__wbg_maxUniformBuffersPerShaderStage_b30d53cbf89caeae=function(e){return u[e].maxUniformBuffersPerShaderStage},n.wbg.__wbg_maxUniformBufferBindingSize_eec576e1342504b5=function(e){return u[e].maxUniformBufferBindingSize},n.wbg.__wbg_maxStorageBufferBindingSize_1ef0cc5e43dad09b=function(e){return u[e].maxStorageBufferBindingSize},n.wbg.__wbg_minUniformBufferOffsetAlignment_3af8c32faa30c5d8=function(e){return u[e].minUniformBufferOffsetAlignment},n.wbg.__wbg_minStorageBufferOffsetAlignment_766ef8ea8f9fe6e1=function(e){return u[e].minStorageBufferOffsetAlignment},n.wbg.__wbg_maxVertexBuffers_b4d31be9e3f93990=function(e){return u[e].maxVertexBuffers},n.wbg.__wbg_maxBufferSize_2d8398a691b9a8ce=function(e){return u[e].maxBufferSize},n.wbg.__wbg_maxVertexAttributes_904c5eb19a6f6c65=function(e){return u[e].maxVertexAttributes},n.wbg.__wbg_maxVertexBufferArrayStride_6800975c373d83bc=function(e){return u[e].maxVertexBufferArrayStride},n.wbg.__wbg_maxInterStageShaderComponents_b9f179b1cde06d08=function(e){return u[e].maxInterStageShaderComponents},n.wbg.__wbg_maxComputeWorkgroupStorageSize_9318e498283b79fb=function(e){return u[e].maxComputeWorkgroupStorageSize},n.wbg.__wbg_maxComputeInvocationsPerWorkgroup_2bfea723194ac5a0=function(e){return u[e].maxComputeInvocationsPerWorkgroup},n.wbg.__wbg_maxComputeWorkgroupSizeX_91fc9ba04de4148f=function(e){return u[e].maxComputeWorkgroupSizeX},n.wbg.__wbg_maxComputeWorkgroupSizeY_9052627dce4a7d1f=function(e){return u[e].maxComputeWorkgroupSizeY},n.wbg.__wbg_maxComputeWorkgroupSizeZ_45a1a82f8446a750=function(e){return u[e].maxComputeWorkgroupSizeZ},n.wbg.__wbg_maxComputeWorkgroupsPerDimension_100ee7392cc04c20=function(e){return u[e].maxComputeWorkgroupsPerDimension},n.wbg.__wbg_createView_3e46af1f54fdcd1f=function(e,n){return f(u[e].createView(u[n]))},n.wbg.__wbg_destroy_728f676d96e34538=function(e){u[e].destroy()},n.wbg.__wbg_error_f85e77a2651e41dc=function(e){return f(u[e].error)},n.wbg.__wbg_instanceof_GpuValidationError_af2aa2e306669317=function(e){let n;try{n=u[e]instanceof GPUValidationError}catch(e){n=!1}return n},n.wbg.__wbg_new_1eead62f64ca15ce=function(){return L(function(){return f(new Headers)},arguments)},n.wbg.__wbg_get_2e9aab260014946d=function(){return L(function(e,n,t,o){let i=u[n].get(a(t,o));var _=w(i)?0:s(i,r.__wbindgen_malloc,r.__wbindgen_realloc),c=d;m()[e/4+1]=c,m()[e/4+0]=_},arguments)},n.wbg.__wbg_setwidth_a667a942dba6656e=function(e,n){u[e].width=n>>>0},n.wbg.__wbg_setheight_a747d440760fe5aa=function(e,n){u[e].height=n>>>0},n.wbg.__wbg_getContext_7c5944ea807bf5d3=function(){return L(function(e,n,t){let r=u[e].getContext(a(n,t));return w(r)?0:f(r)},arguments)},n.wbg.__wbg_objectStoreNames_774e47f8818de433=function(e){return f(u[e].objectStoreNames)},n.wbg.__wbg_setonversionchange_ee7f4abfb91cc81b=function(e,n){u[e].onversionchange=u[n]},n.wbg.__wbg_createObjectStore_40ad9287f7935c33=function(){return L(function(e,n,t){return f(u[e].createObjectStore(a(n,t)))},arguments)},n.wbg.__wbg_transaction_d6f1ef0b34b58a31=function(){return L(function(e,n,t,r){return f(u[e].transaction(a(n,t),b(r)))},arguments)},n.wbg.__wbg_open_6a08b03c958d4ad0=function(){return L(function(e,n,t,r){return f(u[e].open(a(n,t),r>>>0))},arguments)},n.wbg.__wbg_get_fc26906e5ae1ea85=function(){return L(function(e,n){return f(u[e].get(u[n]))},arguments)},n.wbg.__wbg_put_fb32824d87feec5c=function(){return L(function(e,n,t){return f(u[e].put(u[n],u[t]))},arguments)},n.wbg.__wbg_setonblocked_4311b52f166b3434=function(e,n){u[e].onblocked=u[n]},n.wbg.__wbg_setonupgradeneeded_5a39a65558c323b2=function(e,n){u[e].onupgradeneeded=u[n]},n.wbg.__wbg_result_edff16ff107d6acb=function(){return L(function(e){return f(u[e].result)},arguments)},n.wbg.__wbg_error_8a79f35fe9368563=function(){return L(function(e){let n=u[e].error;return w(n)?0:f(n)},arguments)},n.wbg.__wbg_readyState_a9f7376e6e642409=function(e){return f(u[e].readyState)},n.wbg.__wbg_setonsuccess_f518a37d8228a576=function(e,n){u[e].onsuccess=u[n]},n.wbg.__wbg_setonerror_7bf21979c5219792=function(e,n){u[e].onerror=u[n]},n.wbg.__wbg_setonabort_2b13e673d32df8bc=function(e,n){u[e].onabort=u[n]},n.wbg.__wbg_setoncomplete_97a83c9bfeb56eaf=function(e,n){u[e].oncomplete=u[n]},n.wbg.__wbg_setonerror_b7a755ab0647ce3e=function(e,n){u[e].onerror=u[n]},n.wbg.__wbg_objectStore_5a858a654147f96f=function(){return L(function(e,n,t){return f(u[e].objectStore(a(n,t)))},arguments)},n.wbg.__wbg_gpu_24536c9523d924b1=function(e){return f(u[e].gpu)},n.wbg.__wbg_get_c77649dd3862b63a=function(e,n){let t=u[e][n>>>0];return w(t)?0:f(t)},n.wbg.__wbg_setwidth_15266a5e81f43cf0=function(e,n){u[e].width=n>>>0},n.wbg.__wbg_setheight_2e9bab573f1775a6=function(e,n){u[e].height=n>>>0},n.wbg.__wbg_getReader_c9e7b98084cba41c=function(e){return f(u[e].getReader())},n.wbg.__wbg_instanceof_ReadableStreamDefaultReader_df870416942317b0=function(e){let n;try{n=u[e]instanceof ReadableStreamDefaultReader}catch(e){n=!1}return n},n.wbg.__wbg_read_b40399852b2f7b2b=function(e){return f(u[e].read())},n.wbg.__wbg_url_fda63503ced387ff=function(e,n){let t=s(u[n].url,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d;m()[e/4+1]=o,m()[e/4+0]=t},n.wbg.__wbg_newwithstr_3d9bc779603a93c7=function(){return L(function(e,n){return f(new Request(a(e,n)))},arguments)},n.wbg.__wbg_newwithstrandinit_cad5cd6038c7ff5d=function(){return L(function(e,n,t){return f(new Request(a(e,n),u[t]))},arguments)},n.wbg.__wbg_instanceof_Response_fc4327dbfcdf5ced=function(e){let n;try{n=u[e]instanceof Response}catch(e){n=!1}return n},n.wbg.__wbg_status_ac85a3142a84caa2=function(e){return u[e].status},n.wbg.__wbg_ok_e3d8d84e630fd064=function(e){return u[e].ok},n.wbg.__wbg_headers_b70de86b8e989bc0=function(e){return f(u[e].headers)},n.wbg.__wbg_body_b86f372950de5b7d=function(e){let n=u[e].body;return w(n)?0:f(n)},n.wbg.__wbg_search_2ff3bb9114e0ca34=function(e,n){let t=s(u[n].search,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d;m()[e/4+1]=o,m()[e/4+0]=t},n.wbg.__wbg_setsearch_16b87f04ea0e6b80=function(e,n,t){u[e].search=a(n,t)},n.wbg.__wbg_new_a76f6bcb38f791ea=function(){return L(function(e,n){return f(new URL(a(e,n)))},arguments)},n.wbg.__wbg_new_2a98b9c4a51bdc04=function(){return L(function(){return f(new URLSearchParams)},arguments)},n.wbg.__wbg_document_f7ace2b956f30a4f=function(e){let n=u[e].document;return w(n)?0:f(n)},n.wbg.__wbg_navigator_7c9103698acde322=function(e){return f(u[e].navigator)},n.wbg.__wbg_indexedDB_839701fb576f779c=function(){return L(function(e){let n=u[e].indexedDB;return w(n)?0:f(n)},arguments)},n.wbg.__wbg_fetch_336b6f0cb426b46e=function(e,n){return f(u[e].fetch(u[n]))},n.wbg.__wbg_instanceof_WorkerGlobalScope_d9d741da0fb130ce=function(e){let n;try{n=u[e]instanceof WorkerGlobalScope}catch(e){n=!1}return n},n.wbg.__wbg_navigator_41bd88b80ed4685e=function(e){return f(u[e].navigator)},n.wbg.__wbg_indexedDB_406f87676b363c82=function(){return L(function(e){let n=u[e].indexedDB;return w(n)?0:f(n)},arguments)},n.wbg.__wbg_fetch_8eaf01857a5bb21f=function(e,n){return f(u[e].fetch(u[n]))},n.wbg.__wbg_gpu_1678673f109c8aeb=function(e){return f(u[e].gpu)},n.wbg.__wbg_debug_9b8701f894da9929=function(e,n,t,r){console.debug(u[e],u[n],u[t],u[r])},n.wbg.__wbg_error_d9bce418caafb712=function(e,n,t,r){console.error(u[e],u[n],u[t],u[r])},n.wbg.__wbg_info_bb52f40b06f679de=function(e,n,t,r){console.info(u[e],u[n],u[t],u[r])},n.wbg.__wbg_log_ea7093e35e3efd07=function(e,n,t,r){console.log(u[e],u[n],u[t],u[r])},n.wbg.__wbg_warn_dfc0e0cf544a13bd=function(e,n,t,r){console.warn(u[e],u[n],u[t],u[r])},n.wbg.__wbg_get_0ee8ea3c7c984c45=function(e,n){return f(u[e][n>>>0])},n.wbg.__wbg_length_161c0d89c6535c1d=function(e){return u[e].length},n.wbg.__wbg_new_75208e29bddfd88c=function(){return f([])},n.wbg.__wbg_newnoargs_cfecb3965268594c=function(e,n){return f(Function(a(e,n)))},n.wbg.__wbg_next_586204376d2ed373=function(e){return f(u[e].next)},n.wbg.__wbg_next_b2d3366343a208b3=function(){return L(function(e){return f(u[e].next())},arguments)},n.wbg.__wbg_done_90b14d6f6eacc42f=function(e){return u[e].done},n.wbg.__wbg_value_3158be908c80a75e=function(e){return f(u[e].value)},n.wbg.__wbg_iterator_40027cdd598da26b=function(){return f(Symbol.iterator)},n.wbg.__wbg_get_3fddfed2c83f434c=function(){return L(function(e,n){return f(Reflect.get(u[e],u[n]))},arguments)},n.wbg.__wbg_call_3f093dd26d5569f8=function(){return L(function(e,n){return f(u[e].call(u[n]))},arguments)},n.wbg.__wbg_new_632630b5cec17f21=function(){return f({})},n.wbg.__wbg_set_79c308ecd9a1d091=function(e,n,t){u[e][n>>>0]=b(t)},n.wbg.__wbg_isArray_e783c41d0dd19b44=function(e){return Array.isArray(u[e])},n.wbg.__wbg_push_0239ee92f127e807=function(e,n){return u[e].push(u[n])},n.wbg.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5=function(e){let n;try{n=u[e]instanceof ArrayBuffer}catch(e){n=!1}return n},n.wbg.__wbg_instanceof_Error_5869c4f17aac9eb2=function(e){let n;try{n=u[e]instanceof Error}catch(e){n=!1}return n},n.wbg.__wbg_message_2a19bb5b62cf8e22=function(e){return f(u[e].message)},n.wbg.__wbg_name_405bb0aa047a1bf5=function(e){return f(u[e].name)},n.wbg.__wbg_toString_07f01913ec9af122=function(e){return f(u[e].toString())},n.wbg.__wbg_call_67f2111acd2dfdb6=function(){return L(function(e,n,t){return f(u[e].call(u[n],u[t]))},arguments)},n.wbg.__wbg_isSafeInteger_a23a66ee7c41b273=function(e){return Number.isSafeInteger(u[e])},n.wbg.__wbg_getTime_0e03c3f524be31ef=function(e){return u[e].getTime()},n.wbg.__wbg_getTimezoneOffset_840b552f34917133=function(e){return u[e].getTimezoneOffset()},n.wbg.__wbg_new_a9d80688888b4894=function(e){return f(new Date(u[e]))},n.wbg.__wbg_new0_7a6141101f2206da=function(){return f(new Date)},n.wbg.__wbg_instanceof_Object_4abbcd5d20d5f7df=function(e){let n;try{n=u[e]instanceof Object}catch(e){n=!1}return n},n.wbg.__wbg_entries_488960b196cfb6a5=function(e){return f(Object.entries(u[e]))},n.wbg.__wbg_toString_6eb7c1f755c00453=function(e){return f(u[e].toString())},n.wbg.__wbg_valueOf_524ec9f8b05882e8=function(e){return f(u[e].valueOf())},n.wbg.__wbg_set_961700853a212a39=function(){return L(function(e,n,t){return Reflect.set(u[e],u[n],u[t])},arguments)},n.wbg.__wbg_buffer_b914fb8b50ebbc3e=function(e){return f(u[e].buffer)},n.wbg.__wbg_stringify_865daa6fb8c83d5a=function(){return L(function(e){return f(JSON.stringify(u[e]))},arguments)},n.wbg.__wbg_new_70828a4353259d4b=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 i;return i=t.b,void r.wasm_bindgen__convert__closures__invoke2_mut__h38774fc515925f5b(o,i,f(e),f(n))}finally{t.a=o}});return f(o)}finally{t.a=t.b=0}},n.wbg.__wbg_resolve_5da6faf2c96fd1d5=function(e){return f(Promise.resolve(u[e]))},n.wbg.__wbg_then_f9e58f5a50f43eae=function(e,n){return f(u[e].then(u[n]))},n.wbg.__wbg_then_20a5920e447d1cb1=function(e,n,t){return f(u[e].then(u[n],u[t]))},n.wbg.__wbg_self_05040bd9523805b9=function(){return L(function(){return f(self.self)},arguments)},n.wbg.__wbg_window_adc720039f2cb14f=function(){return L(function(){return f(window.window)},arguments)},n.wbg.__wbg_globalThis_622105db80c1457d=function(){return L(function(){return f(globalThis.globalThis)},arguments)},n.wbg.__wbg_global_f56b013ed9bcf359=function(){return L(function(){return f(t.g.global)},arguments)},n.wbg.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e=function(e,n,t){return f(new Uint8Array(u[e],n>>>0,t>>>0))},n.wbg.__wbg_new_b1f2d6842d615181=function(e){return f(new Uint8Array(u[e]))},n.wbg.__wbg_set_7d988c98e6ced92d=function(e,n,t){u[e].set(u[n],t>>>0)},n.wbg.__wbg_length_21c4b0ae73cba59d=function(e){return u[e].length},n.wbg.__wbg_instanceof_Uint8Array_c299a4ee232e76ba=function(e){let n;try{n=u[e]instanceof Uint8Array}catch(e){n=!1}return n},n.wbg.__wbg_newwithlength_0d03cef43b68a530=function(e){return f(new Uint8Array(e>>>0))},n.wbg.__wbg_buffer_67e624f5a0ab2319=function(e){return f(u[e].buffer)},n.wbg.__wbg_subarray_adc418253d76e2f1=function(e,n,t){return f(u[e].subarray(n>>>0,t>>>0))},n.wbg.__wbindgen_debug_string=function(e,n){let t=s(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;o<t;o++)r+=", "+e(n[o]);return r+"]"}let o=/\[object ([^\]]+)\]/.exec(toString.call(n));if(!(o.length>1))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}(u[n]),r.__wbindgen_malloc,r.__wbindgen_realloc),o=d;m()[e/4+1]=o,m()[e/4+0]=t},n.wbg.__wbindgen_throw=function(e,n){throw Error(a(e,n))},n.wbg.__wbindgen_memory=function(){return f(r.memory)},n.wbg.__wbindgen_closure_wrapper462=function(e,n,t){return f(v(e,n,13,E))},n.wbg.__wbindgen_closure_wrapper3780=function(e,n,t){return f(v(e,n,1713,S))},n.wbg.__wbindgen_closure_wrapper3782=function(e,n,t){return f(v(e,n,1713,S))},n.wbg.__wbindgen_closure_wrapper4320=function(e,n,t){return f(v(e,n,2032,x))},n.wbg.__wbindgen_closure_wrapper4389=function(e,n,t){return f(R(e,n,2062,T))},n.wbg.__wbindgen_closure_wrapper4391=function(e,n,t){return f(R(e,n,2062,B))},n}();("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n));let{instance:_,module:c}=await z(await n,o);return r=_.exports,M.__wbindgen_wasm_module=c,h=null,p=null,I=null,i=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=M},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 i(){throw Error("setTimeout has not been defined")}function _(){throw Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!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:i}catch(e){n=i}try{t="function"==typeof clearTimeout?clearTimeout:_}catch(e){t=_}}();var u=[],c=!1,f=-1;function b(){c&&r&&(c=!1,r.length?u=r.concat(u):f=-1,u.length&&d())}function d(){if(!c){var e=a(b);c=!0;for(var n=u.length;n;){for(r=u,u=[];++f<n;)r&&r[f].run();f=-1,n=u.length}r=null,c=!1,function(e){if(t===clearTimeout)return clearTimeout(e);if((t===_||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(e);try{t(e)}catch(n){try{return t.call(null,e)}catch(n){return t.call(this,e)}}}(e)}}function g(e,n){this.fun=e,this.array=n}function l(){}o.nextTick=function(e){var n=Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];u.push(new g(e,n)),1!==u.length||c||a(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=l,o.addListener=l,o.once=l,o.off=l,o.removeListener=l,o.removeAllListeners=l,o.emit=l,o.prependListener=l,o.prependOnceListener=l,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},t={};function r(e){var o=t[e];if(void 0!==o)return o.exports;var i=t[e]={exports:{}},_=!0;try{n[e](i,i.exports,r),_=!1}finally{_&&delete t[e]}return i.exports}r.ab="//";var o=r(229);e.exports=o}()},8077:function(e,n,t){t.d(n,{Z:function(){return k}});var r=t(4209),o=t(303),i=t(2948),_=t.n(i),a=!1,u={get passive(){a=!0;return}};window.addEventListener("testPassive",null,u),window.removeEventListener("testPassive",null,u);var c=window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),f=[],b=!1,d=-1,g=void 0,l=void 0,s=function(e){return f.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(e))})},w=function(e){var n=e||window.event;return!!s(n.target)||n.touches.length>1||(n.preventDefault&&n.preventDefault(),!1)},p=function(e){if(void 0===l){var n=!!e&&!0===e.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;n&&t>0&&(l=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===g&&(g=document.body.style.overflow,document.body.style.overflow="hidden")},m=function(){void 0!==l&&(document.body.style.paddingRight=l,l=void 0),void 0!==g&&(document.body.style.overflow=g,g=void 0)},h=function(e,n){var t=e.targetTouches[0].clientY-d;return!s(e.target)&&(n&&0===n.scrollTop&&t>0?w(e):n&&n.scrollHeight-n.scrollTop<=n.clientHeight&&t<0?w(e):(e.stopPropagation(),!0))},y=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<e.length;n++)t[n]=e[n];return t}(f),[{targetElement:e,options:n||{}}]),c?(e.ontouchstart=function(e){1===e.targetTouches.length&&(d=e.targetTouches[0].clientY)},e.ontouchmove=function(n){1===n.targetTouches.length&&h(n,e)},b||(document.addEventListener("touchmove",w,a?{passive:!1}:void 0),b=!0)):p(n))},v=function(e){if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}f=f.filter(function(n){return n.targetElement!==e}),c?(e.ontouchstart=null,e.ontouchmove=null,b&&0===f.length&&(document.removeEventListener("touchmove",w,a?{passive:!1}:void 0),b=!1)):f.length||m()};function E(){return(E=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}t(7337);var S=function(e){var n=e.classes,t=e.classNames,o=e.styles,i=e.id,a=e.closeIcon,u=e.onClick;return r.createElement("button",{id:i,className:_()(n.closeButton,null==t?void 0:t.closeButton),style:null==o?void 0:o.closeButton,onClick:u,"data-testid":"close-button"},a||r.createElement("svg",{className:null==t?void 0:t.closeIcon,style:null==o?void 0:o.closeIcon,width:28,height:28,viewBox:"0 0 36 36","data-testid":"close-icon"},r.createElement("path",{d:"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z"})))},x=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function R(e){for(var n=document.activeElement,t=e.querySelectorAll(x.join(",")),r=[],o=0;o<t.length;o++){var i=t[o];(n===i||!i.disabled&&function(e){var n=parseInt(e.getAttribute("tabindex"),10);return isNaN(n)?e.getAttribute("contentEditable")?0:e.tabIndex:n}(i)>-1&&!(null===i.offsetParent||"hidden"===getComputedStyle(i).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;t<e.length;t++)if(e[t].checked&&e[t].form===n)return e[t]}(n,e.form);return t===e||void 0===t&&n[0]===e}(i))&&r.push(i)}return r}var T=function(e){var n=e.container,t=e.initialFocusRef,o=(0,r.useRef)();return(0,r.useEffect)(function(){var e=function(e){(null==n?void 0:n.current)&&function(e,n){if(e&&"Tab"===e.key&&n&&n.contains&&n.contains(e.target)){var t=R(n),r=t[0],o=t[t.length-1];e.shiftKey&&e.target===r?(o.focus(),e.preventDefault()):e.shiftKey||e.target!==o||(r.focus(),e.preventDefault())}}(e,n.current)};if(document.addEventListener("keydown",e),null==n?void 0:n.current){var r=function(){-1!==x.findIndex(function(e){var n;return null==(n=document.activeElement)?void 0:n.matches(e)})&&(o.current=document.activeElement)};if(t)r(),requestAnimationFrame(function(){var e;null==(e=t.current)||e.focus()});else{var i=R(n.current);i[0]&&(r(),i[0].focus())}}return function(){var n;document.removeEventListener("keydown",e),null==(n=o.current)||n.focus()}},[n,t]),null},B=[],I={add:function(e){B.push(e)},remove:function(e){B=B.filter(function(n){return n!==e})},isTopModal:function(e){return!!B.length&&B[B.length-1]===e}},A=function(e,n,t,o,i){var _=(0,r.useRef)(null);(0,r.useEffect)(function(){return n&&e.current&&o&&(_.current=e.current,y(e.current,{reserveScrollBarGap:i})),function(){_.current&&(v(_.current),_.current=null)}},[n,t,e,o,i])},L={root:"react-responsive-modal-root",overlay:"react-responsive-modal-overlay",overlayAnimationIn:"react-responsive-modal-overlay-in",overlayAnimationOut:"react-responsive-modal-overlay-out",modalContainer:"react-responsive-modal-container",modalContainerCenter:"react-responsive-modal-containerCenter",modal:"react-responsive-modal-modal",modalAnimationIn:"react-responsive-modal-modal-in",modalAnimationOut:"react-responsive-modal-modal-out",closeButton:"react-responsive-modal-closeButton"},k=r.forwardRef(function(e,n){var t,i,a,u,c=e.open,f=e.center,b=e.blockScroll,d=e.closeOnEsc,g=void 0===d||d,l=e.closeOnOverlayClick,s=void 0===l||l,w=e.container,p=e.showCloseIcon,m=e.closeIconId,h=e.closeIcon,y=e.focusTrapped,v=e.initialFocusRef,x=e.animationDuration,R=void 0===x?300:x,B=e.classNames,k=e.styles,P=e.role,D=e.ariaDescribedby,O=e.ariaLabelledby,C=e.containerId,W=e.modalId,F=e.onClose,G=e.onEscKeyDown,z=e.onOverlayClick,M=e.onAnimationEnd,j=e.children,U=e.reserveScrollBarGap,N=function(e){let n=arguments.length>1&&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),i=n.isStateful?t:o;return r.useEffect(()=>{e&&("function"==typeof e?e(i.current):e.current=i.current)}),i}(n),V=(0,r.useRef)(null),q=(0,r.useRef)(null),H=(0,r.useRef)(null);null===H.current&&(H.current=document.createElement("div"));var X=(0,r.useState)(!1),Q=X[0],Y=X[1];(0,r.useEffect)(function(){return c&&I.add(V),function(){I.remove(V)}},[c,V]),A(V,c,Q,void 0===b||b,U);var Z=function(){!H.current||w||document.body.contains(H.current)||document.body.appendChild(H.current),document.addEventListener("keydown",J)},K=function(){H.current&&!w&&document.body.contains(H.current)&&document.body.removeChild(H.current),document.removeEventListener("keydown",J)},J=function(e){27===e.keyCode&&I.isTopModal(V)&&(null==G||G(e),g&&F())};(0,r.useEffect)(function(){return function(){Q&&K()}},[Q]),(0,r.useEffect)(function(){c&&!Q&&(Y(!0),Z())},[c]);var $=function(){q.current=!1},ee=w||H.current,en=c?null!=(t=null==B?void 0:B.overlayAnimationIn)?t:L.overlayAnimationIn:null!=(i=null==B?void 0:B.overlayAnimationOut)?i:L.overlayAnimationOut,et=c?null!=(a=null==B?void 0:B.modalAnimationIn)?a:L.modalAnimationIn:null!=(u=null==B?void 0:B.modalAnimationOut)?u:L.modalAnimationOut;return Q&&ee?o.createPortal(r.createElement("div",{className:_()(L.root,null==B?void 0:B.root),style:null==k?void 0:k.root,"data-testid":"root"},r.createElement("div",{className:_()(L.overlay,null==B?void 0:B.overlay),"data-testid":"overlay","aria-hidden":!0,style:E({animation:en+" "+R+"ms"},null==k?void 0:k.overlay)}),r.createElement("div",{ref:V,id:C,className:_()(L.modalContainer,f&&L.modalContainerCenter,null==B?void 0:B.modalContainer),style:null==k?void 0:k.modalContainer,"data-testid":"modal-container",onClick:function(e){if(null===q.current&&(q.current=!0),!q.current){q.current=null;return}null==z||z(e),s&&F(),q.current=null}},r.createElement("div",{ref:N,className:_()(L.modal,null==B?void 0:B.modal),style:E({animation:et+" "+R+"ms"},null==k?void 0:k.modal),onMouseDown:$,onMouseUp:$,onClick:$,onAnimationEnd:function(){c||Y(!1),null==M||M()},id:W,role:void 0===P?"dialog":P,"aria-modal":"true","aria-labelledby":O,"aria-describedby":D,"data-testid":"modal",tabIndex:-1},(void 0===y||y)&&r.createElement(T,{container:N,initialFocusRef:void 0===v?void 0:v}),j,(void 0===p||p)&&r.createElement(S,{classes:L,classNames:B,styles:k,closeIcon:h,onClick:F,id:m})))),ee):null})},2948:function(e,n){var t;!/*! | ;(self.|
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<arguments.length;n++){var t=arguments[n];t&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var t in e)r.call(e,t)&&e[t]&&(n=i(n,t));return n}(t)))}return e}function i(e,n){return n?e?e+" "+n:e+n:e}e.exports?(o.default=o,e.exports=o):void 0!==(t=(function(){return o}).apply(n,[]))&&(e.exports=t)}()}}]); |