"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[382],{30382:(t,r,e)=>{async function n(t={}){var r=t,e=!!globalThis.window,n=!!globalThis.WorkerGlobalScope;globalThis.process?.versions?.node&&globalThis.process;var i,a,s="";if(e||n){try{s=new URL(".","").href}catch{}n&&(a=t=>{var r=new XMLHttpRequest;return r.open("GET",t,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),i=async t=>{var r=await fetch(t,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw new Error(r.status+" : "+r.url)}}console.log.bind(console);var o,u,f,c,h,l,p,w=console.error.bind(console),m=!1,g=!1;function y(){var t=k.buffer;c=new Int8Array(t),h=new Uint8Array(t),l=new Uint32Array(t),new BigInt64Array(t),new BigUint64Array(t)}function d(t){r.onAbort?.(t),w(t="Aborted("+t+")"),m=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw f?.(e),e}async function b(t,r,e){if(!t)try{var n=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,e)}catch(t){w(`wasm streaming compile failed: ${t}`),w("falling back to ArrayBuffer instantiation")}return async function(t,r){try{var e=await async function(t){if(!o)try{var r=await i(t);return new Uint8Array(r)}catch{}return function(t){if(t==p&&o)return new Uint8Array(o);if(a)return a(t);throw"both async and sync fetching of the wasm failed"}(t)}(t);return await WebAssembly.instantiate(e,r)}catch(t){w(`failed to asynchronously prepare wasm: ${t}`),d(t)}}(r,e)}var _=t=>{for(;t.length>0;)t.shift()(r)},v=[],R=t=>v.push(t),A=[],C=t=>A.push(t),S=globalThis.TextDecoder&&new TextDecoder,T=(t,r,e)=>t?((t,r=0,e)=>{var n=((t,r,e)=>{for(var n=r+e;t[r]&&!(r>=n);)++r;return r})(t,r,e);if(n-r>16&&t.buffer&&S)return S.decode(t.subarray(r,n));for(var i="";r<n;){var a=t[r++];if(128&a){var s=63&t[r++];if(192!=(224&a)){var o=63&t[r++];if((a=224==(240&a)?(15&a)<<12|s<<6|o:(7&a)<<18|s<<12|o<<6|63&t[r++])<65536)i+=String.fromCharCode(a);else{var u=a-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i})(h,t,r):"";class I{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){l[this.ptr+4>>2]=t}get_type(){return l[this.ptr+4>>2]}set_destructor(t){l[this.ptr+8>>2]=t}get_destructor(){return l[this.ptr+8>>2]}set_caught(t){t=t?1:0,c[this.ptr+12]=t}get_caught(){return 0!=c[this.ptr+12]}set_rethrown(t){t=t?1:0,c[this.ptr+13]=t}get_rethrown(){return 0!=c[this.ptr+13]}init(t,r){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(r)}set_adjusted_ptr(t){l[this.ptr+16>>2]=t}get_adjusted_ptr(){return l[this.ptr+16>>2]}}var k,B=(t,r)=>Math.ceil(t/r)*r,E=t=>{var r=(t-k.buffer.byteLength+65535)/65536|0;try{return k.grow(r),y(),1}catch(t){}};if(r.noExitRuntime&&r.noExitRuntime,r.print&&r.print,r.printErr&&(w=r.printErr),r.wasmBinary&&(o=r.wasmBinary),r.arguments&&r.arguments,r.thisProgram&&r.thisProgram,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.shift()();function U(t){r._lerc_getBlobInfo=t.g,r._lerc_getDataRanges=t.h,r._lerc_decode_4D=t.i,r._free=t.j,r._malloc=t.k,r.memory=k=t.e,t.__indirect_function_table}var x,W={a:(t,r,e,n)=>d(`Assertion failed: ${T(t)}, at: `+[r?T(r):"unknown filename",e,n?T(n):"unknown function"]),b:(t,r,e)=>{throw new I(t).init(r,e),t},c:()=>d(""),d:t=>{var r=h.length,e=2147483648;if((t>>>=0)>e)return!1;for(var n=1;n<=4;n*=2){var i=r*(1+.2/n);i=Math.min(i,t+100663296);var a=Math.min(e,B(Math.max(t,i),65536));if(E(a))return!0}return!1}};return x=await async function(){function t(t,r){return U(x=t.exports),y(),x}var e={a:W};return r.instantiateWasm?new Promise((n,i)=>{r.instantiateWasm(e,(r,e)=>{n(t(r))})}):(p??=r.locateFile?function(t){return r.locateFile?r.locateFile(t,s):s+t}("lerc-wasm.wasm"):new URL("lerc-wasm.wasm","").href,function(r){return t(r.instance)}(await b(o,p,e)))}(),function(){function t(){r.calledRun=!0,m||(g=!0,x.f(),u?.(r),r.onRuntimeInitialized?.(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)R(r.postRun.shift());_(v)}())}(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)C(r.preRun.shift());_(A)})(),r.setStatus?(r.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>r.setStatus(""),1),t()},1)):t()}(),g?r:new Promise((t,r)=>{u=t,f=r})}e.d(r,{default:()=>n})}}]);