Newer
Older
safe_production_front / public / js-bak / decoder-pro-simd-mt.js
dutingting on 8 Apr 177 KB 暂存
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t=(e="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-simd-mt.js",document.baseURI).href,async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function r(){return D.buffer!=M.buffer&&N(),M}function n(){return D.buffer!=M.buffer&&N(),W}function o(){return D.buffer!=M.buffer&&N(),U}function a(){return D.buffer!=M.buffer&&N(),O}function i(){return D.buffer!=M.buffer&&N(),x}function s(){return D.buffer!=M.buffer&&N(),V}function d(){return D.buffer!=M.buffer&&N(),L}function l(){return D.buffer!=M.buffer&&N(),j}var u,c,f;(f=t).ready=new Promise(((e,t)=>{u=e,c=t})),(f=void 0!==f?f:{}).locateFile=function(e,t){return"decoder-pro-simd-mt-worker.wasm"==e?"undefined"!=typeof JESSIBUCA_PRO_SIMD_MT_WORKER_WASM_URL&&""!=JESSIBUCA_PRO_SIMD_MT_WORKER_WASM_URL?JESSIBUCA_PRO_SIMD_MT_WORKER_WASM_URL:t+e:"decoder-pro-simd-mt-worker.worker.js"==e&&"undefined"!=typeof JESSIBUCA_PRO_SIMD_MT_WORKER_JS_URL&&""!=JESSIBUCA_PRO_SIMD_MT_WORKER_JS_URL?JESSIBUCA_PRO_SIMD_MT_WORKER_JS_URL:t+e};var p,h,m,g=Object.assign({},f),v=(e,t)=>{throw t},y="object"==typeof window,w="function"==typeof importScripts,b="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,_=f.ENVIRONMENT_IS_PTHREAD||!1,E="";function S(e){return f.locateFile?f.locateFile(e,E):E+e}if(b){const{createRequire:e}=await import("module");var k=e("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-simd-mt.js",document.baseURI).href),C=k("fs"),A=k("path");let t;E=w?A.dirname(E)+"/":k("url").fileURLToPath(new URL("./","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-simd-mt.js",document.baseURI).href)),p=(e,t)=>(e=le(e)?new URL(e):A.normalize(e),C.readFileSync(e,t?void 0:"utf8")),m=e=>{var t=p(e,!0);return t.buffer||(t=new Uint8Array(t)),t},h=function(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=le(e)?new URL(e):A.normalize(e),C.readFile(e,n?void 0:"utf8",((e,o)=>{e?r(e):t(n?o.buffer:o)}))},!f.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),v=(e,t)=>{throw process.exitCode=e,t},f.inspect=()=>"[Emscripten Module object]";try{t=k("worker_threads")}catch(e){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),e}global.Worker=t.Worker}else(y||w)&&(w?E=self.location.href:"undefined"!=typeof document&&document.currentScript&&(E=document.currentScript.src),e&&(E=e),E=0!==E.indexOf("blob:")?E.substr(0,E.replace(/[?#].*/,"").lastIndexOf("/")+1):"",b||(p=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},w&&(m=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),h=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}));b&&"undefined"==typeof performance&&(global.performance=k("perf_hooks").performance);var T=console.log.bind(console),I=console.error.bind(console);b&&(T=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return C.writeSync(1,t.join(" ")+"\n")},I=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return C.writeSync(2,t.join(" ")+"\n")});var P,D,$,F=f.print||T,R=f.printErr||I;Object.assign(f,g),g=null,f.arguments&&f.arguments,f.thisProgram&&f.thisProgram,f.quit&&(v=f.quit),f.wasmBinary&&(P=f.wasmBinary),"object"!=typeof WebAssembly&&ae("no native wasm support detected");var B,M,W,U,O,x,V,L,j,H=!1;function N(){var e=D.buffer;f.HEAP8=M=new Int8Array(e),f.HEAP16=U=new Int16Array(e),f.HEAPU8=W=new Uint8Array(e),f.HEAPU16=O=new Uint16Array(e),f.HEAP32=x=new Int32Array(e),f.HEAPU32=V=new Uint32Array(e),f.HEAPF32=L=new Float32Array(e),f.HEAPF64=j=new Float64Array(e)}var z=f.INITIAL_MEMORY||268435456;if(_)D=f.wasmMemory;else if(f.wasmMemory)D=f.wasmMemory;else if(!((D=new WebAssembly.Memory({initial:z/65536,maximum:8192,shared:!0})).buffer instanceof SharedArrayBuffer))throw R("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),b&&R("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");N(),z=D.buffer.byteLength;var G=[],q=[],J=[];function X(){if(f.preRun)for("function"==typeof f.preRun&&(f.preRun=[f.preRun]);f.preRun.length;)Y(f.preRun.shift());Be(G)}function Q(){_||Be(q)}function K(){if(!_){if(f.postRun)for("function"==typeof f.postRun&&(f.postRun=[f.postRun]);f.postRun.length;)ee(f.postRun.shift());Be(J)}}function Y(e){G.unshift(e)}function Z(e){q.unshift(e)}function ee(e){J.unshift(e)}var te=0,re=null;function ne(e){te++,f.monitorRunDependencies&&f.monitorRunDependencies(te)}function oe(e){if(te--,f.monitorRunDependencies&&f.monitorRunDependencies(te),0==te&&re){var t=re;re=null,t()}}function ae(e){f.onAbort&&f.onAbort(e),R(e="Aborted("+e+")"),H=!0,B=1,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw c(t),t}var ie,se="data:application/octet-stream;base64,",de=e=>e.startsWith(se),le=e=>e.startsWith("file://");function ue(e){if(e==ie&&P)return new Uint8Array(P);if(m)return m(e);throw"both async and sync fetching of the wasm failed"}function ce(e){if(!P&&(y||w)){if("function"==typeof fetch&&!le(e))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>ue(e)));if(h)return new Promise(((t,r)=>{h(e,(e=>t(new Uint8Array(e))),r)}))}return Promise.resolve().then((()=>ue(e)))}function fe(e,t,r){return ce(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{R(`failed to asynchronously prepare wasm: ${e}`),ae(e)}))}function pe(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||de(t)||le(t)||b||"function"!=typeof fetch?fe(t,r,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(n,(function(e){return R(`wasm streaming compile failed: ${e}`),R("falling back to ArrayBuffer instantiation"),fe(t,r,n)}))))}function he(){var e={a:$n};function t(e,t){return Fn=e.exports,je(Fn.U),Ue=Fn.Y,Z(Fn.Q),$=t,oe(),Fn}if(ne(),f.instantiateWasm)try{return f.instantiateWasm(e,t)}catch(e){R(`Module.instantiateWasm callback failed with error: ${e}`),c(e)}return pe(P,ie,e,(function(e){t(e.instance,e.module)})).catch(c),{}}function me(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}f.locateFile?de(ie="decoder-pro-simd-mt-worker.wasm")||(ie=S(ie)):ie=new URL("decoder-pro-simd-mt-worker.wasm","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-simd-mt.js",document.baseURI).href).href;var ge=e=>{e.terminate(),e.onmessage=e=>{}},ve=e=>{var t=Re.pthreads[e];delete Re.pthreads[e],ge(t),Vn(e),Re.runningWorkers.splice(Re.runningWorkers.indexOf(t),1),t.pthread_ptr=0},ye=e=>{Re.pthreads[e].postMessage({cmd:"cancel"})},we=e=>{var t=Re.pthreads[e];Re.returnWorkerToPool(t)},be=e=>{var t=Re.getNewWorker();if(!t)return 6;Re.runningWorkers.push(t),Re.pthreads[e.pthread_ptr]=t,t.pthread_ptr=e.pthread_ptr;var r={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return b&&t.unref(),t.postMessage(r,e.transferList),0},_e=0,Ee=()=>Le||_e>0,Se="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ke=(e,t,r)=>{for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.buffer&&Se)return Se.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,o):e.subarray(t,o));for(var a="";t<o;){var i=e[t++];if(128&i){var s=63&e[t++];if(192!=(224&i)){var d=63&e[t++];if((i=224==(240&i)?(15&i)<<12|s<<6|d:(7&i)<<18|s<<12|d<<6|63&e[t++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Ce=(e,t)=>e?ke(n(),e,t):"",Ae=e=>{var t=Nn(),r=e();return zn(t),r},Te=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,Ie=function(e,t){var r=arguments.length-2,n=arguments;return Ae((()=>{for(var o=r,a=Gn(8*o),i=a>>3,s=0;s<r;s++){var d=n[2+s];l()[i+s]=d}return xn(e,o,a,t)}))};function Pe(e){if(_)return Ie(0,1,e);B=e,Ee()||(Re.terminateAllThreads(),f.onExit&&f.onExit(e),H=!0),v(e,new me(e))}var De=(e,t)=>{if(B=e,_)throw We(e),"unwind";Pe(e)},$e=De,Fe=e=>{if(e instanceof me||"unwind"==e)return B;v(1,e)},Re={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){_?Re.initWorker():Re.initMainThread()},initMainThread(){for(var e=4;e--;)Re.allocateUnusedWorker();Y((()=>{ne(),Re.loadWasmModuleToAllWorkers((()=>oe()))}))},initWorker(){Le=!1},setExitStatus:e=>{B=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of Re.runningWorkers)ge(e);for(var e of Re.unusedWorkers)ge(e);Re.unusedWorkers=[],Re.runningWorkers=[],Re.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete Re.pthreads[t],Re.unusedWorkers.push(e),Re.runningWorkers.splice(Re.runningWorkers.indexOf(e),1),e.pthread_ptr=0,Vn(t)},receiveObjectTransfer(e){},threadInitTLS(){Re.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:e=>new Promise((t=>{e.onmessage=r=>{var n=r.data,o=n.cmd;if(n.targetThread&&n.targetThread!=Mn()){var a=Re.pthreads[n.targetThread];a?a.postMessage(n,n.transferList):R(`Internal error! Worker sent a message "${o}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else"checkMailbox"===o?Hr():"spawnThread"===o?be(n):"cleanupThread"===o?we(n.thread):"killThread"===o?ve(n.thread):"cancelThread"===o?ye(n.thread):"loaded"===o?(e.loaded=!0,b&&!e.pthread_ptr&&e.unref(),t(e)):"alert"===o?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?e.postMessage(n):"callHandler"===o?f[n.handler](...n.args):o&&R(`worker sent an unknown command ${o}`)},e.onerror=e=>{throw R(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e},b&&(e.on("message",(t=>e.onmessage({data:t}))),e.on("error",(t=>e.onerror(t))));var r=[];for(var n of["onExit","onAbort","print","printErr"])f.hasOwnProperty(n)&&r.push(n);e.postMessage({cmd:"load",handlers:r,urlOrBlob:f.mainScriptUrlOrBlob,wasmMemory:D,wasmModule:$})})),loadWasmModuleToAllWorkers(e){if(_)return e();Promise.all(Re.unusedWorkers.map(Re.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e;if(f.locateFile){var t=S("decoder-pro-simd-mt-worker.worker.js");e=new Worker(t,{type:"module"})}else e=new Worker(new URL("decoder-pro-simd-mt-worker.worker.js","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-simd-mt.js",document.baseURI).href),{type:"module"});Re.unusedWorkers.push(e)},getNewWorker:()=>(0==Re.unusedWorkers.length&&(Re.allocateUnusedWorker(),Re.loadWasmModuleToWorker(Re.unusedWorkers[0])),Re.unusedWorkers.pop())};f.PThread=Re;var Be=e=>{for(;e.length>0;)e.shift()(f)},Me=()=>{var e=Mn(),t=s()[e+52>>2],r=s()[e+56>>2];Hn(t,t-r),zn(t)};function We(e){if(_)return Ie(1,0,e);$e(e)}f.establishStackSpace=Me;var Ue,Oe=[],xe=e=>{var t=Oe[e];return t||(e>=Oe.length&&(Oe.length=e+1),Oe[e]=t=Ue.get(e)),t},Ve=(e,t)=>{!function(e){Ee()?Re.setExitStatus(e):Ln(e)}(xe(e)(t))};f.invokeEntryPoint=Ve;var Le=f.noExitRuntime||!0,je=e=>{Re.tlsInitFunctions.push(e)},He=(e,t,r,n)=>{ae(`Assertion failed: ${Ce(e)}, at: `+[t?Ce(t):"unknown filename",r,n?Ce(n):"unknown function"])};function Ne(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){s()[this.ptr+4>>2]=e},this.get_type=function(){return s()[this.ptr+4>>2]},this.set_destructor=function(e){s()[this.ptr+8>>2]=e},this.get_destructor=function(){return s()[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,r()[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=r()[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,r()[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=r()[this.ptr+13>>0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){s()[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return s()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(qn(this.get_type()))return s()[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var ze=(e,t,r)=>{throw new Ne(e).init(t,r),e},Ge=e=>{Un(e,!w,1,!y,2097152,!1),Re.threadInitTLS()},qe=e=>{_?postMessage({cmd:"cleanupThread",thread:e}):we(e)};function Je(e,t,r,n){return _?Ie(2,1,e,t,r,n):Ye(e,t,r,n)}var Xe,Qe,Ke,Ye=(e,t,r,n)=>{if("undefined"==typeof SharedArrayBuffer)return R("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var o=[];if(_&&0===o.length)return Je(e,t,r,n);var a={startRoutine:r,pthread_ptr:e,arg:n,transferList:o};return _?(a.cmd="spawnThread",postMessage(a,o),0):be(a)},Ze=(e,t,r,n,o)=>{},et=()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);Xe=e},tt=e=>{for(var t="",r=e;n()[r];)t+=Xe[n()[r++]];return t},rt={},nt={},ot={},at=e=>{throw new Qe(e)},it=e=>{throw new Ke(e)},st=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&it("Mismatched type converter count");for(var o=0;o<e.length;++o)lt(e[o],n[o])}e.forEach((function(e){ot[e]=t}));var o=new Array(t.length),a=[],i=0;t.forEach(((e,t)=>{nt.hasOwnProperty(e)?o[t]=nt[e]:(a.push(e),rt.hasOwnProperty(e)||(rt[e]=[]),rt[e].push((()=>{o[t]=nt[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function dt(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=t.name;if(e||at(`type "${n}" must have a positive integer typeid pointer`),nt.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;at(`Cannot register type '${n}' twice`)}if(nt[e]=t,delete ot[e],rt.hasOwnProperty(e)){var o=rt[e];delete rt[e],o.forEach((e=>e()))}}function lt(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return dt(e,t,r)}var ut,ct=8,ft=(e,t,r,o)=>{lt(e,{name:t=tt(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:o},argPackAdvance:ct,readValueFromPointer:function(e){return this.fromWireType(n()[e])},destructorFunction:null})},pt=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),ht=e=>{at(e.$$.ptrType.registeredClass.name+" instance already deleted")},mt=!1,gt=e=>{},vt=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},yt=e=>{e.count.value-=1,0===e.count.value&&vt(e)},wt=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=wt(e,t,r.baseClass);return null===n?null:r.downcast(n)},bt={},_t=()=>Object.keys(Tt).length,Et=()=>{var e=[];for(var t in Tt)Tt.hasOwnProperty(t)&&e.push(Tt[t]);return e},St=[],kt=()=>{for(;St.length;){var e=St.pop();e.$$.deleteScheduled=!1,e.delete()}},Ct=e=>{ut=e,St.length&&ut&&ut(kt)},At=()=>{f.getInheritedInstanceCount=_t,f.getLiveInheritedInstances=Et,f.flushPendingDeletes=kt,f.setDelayFunction=Ct},Tt={},It=(e,t)=>{for(void 0===t&&at("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t},Pt=(e,t)=>(t=It(e,t),Tt[t]),Dt=(e,t)=>(t.ptrType&&t.ptr||it("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&it("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Ft(Object.create(e,{$$:{value:t}})));function $t(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=Pt(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?Dt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Dt(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(t),s=bt[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var d=wt(t,this.registeredClass,a.registeredClass);return null===d?o.call(this):this.isSmartPointer?Dt(a.registeredClass.instancePrototype,{ptrType:a,ptr:d,smartPtrType:this,smartPtr:e}):Dt(a.registeredClass.instancePrototype,{ptrType:a,ptr:d})}var Ft=e=>"undefined"==typeof FinalizationRegistry?(Ft=e=>e,e):(mt=new FinalizationRegistry((e=>{yt(e.$$)})),Ft=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};mt.register(e,r,e)}return e},gt=e=>mt.unregister(e),Ft(e)),Rt=()=>{Object.assign(Bt.prototype,{isAliasOf(e){if(!(this instanceof Bt))return!1;if(!(e instanceof Bt))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,o=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return t===n&&r===o},clone(){if(this.$$.ptr||ht(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Ft(Object.create(Object.getPrototypeOf(this),{$$:{value:pt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||ht(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&at("Object already scheduled for deletion"),gt(this),yt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||ht(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&at("Object already scheduled for deletion"),St.push(this),1===St.length&&ut&&ut(kt),this.$$.deleteScheduled=!0,this}})};function Bt(){}var Mt=(e,t)=>Object.defineProperty(t,"name",{value:e}),Wt=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||at(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}},Ut=(e,t,r)=>{f.hasOwnProperty(e)?((void 0===r||void 0!==f[e].overloadTable&&void 0!==f[e].overloadTable[r])&&at(`Cannot register public name '${e}' twice`),Wt(f,e,e),f.hasOwnProperty(r)&&at(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),f[e].overloadTable[r]=t):(f[e]=t,void 0!==r&&(f[e].numArguments=r))},Ot=48,xt=57,Vt=e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=Ot&&t<=xt?`_${e}`:e};function Lt(e,t,r,n,o,a,i,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var jt=(e,t,r)=>{for(;t!==r;)t.upcast||at(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function Ht(e,t){if(null===t)return this.isReference&&at(`null is not a valid ${this.name}`),0;t.$$||at(`Cannot pass "${_r(t)}" as a ${this.name}`),t.$$.ptr||at(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return jt(t.$$.ptr,r,this.registeredClass)}function Nt(e,t){var r;if(null===t)return this.isReference&&at(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||at(`Cannot pass "${_r(t)}" as a ${this.name}`),t.$$.ptr||at(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&at(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;if(r=jt(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&at("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:at(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var o=t.clone();r=this.rawShare(r,yr.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:at("Unsupporting sharing policy")}return r}function zt(e,t){if(null===t)return this.isReference&&at(`null is not a valid ${this.name}`),0;t.$$||at(`Cannot pass "${_r(t)}" as a ${this.name}`),t.$$.ptr||at(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&at(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return jt(t.$$.ptr,r,this.registeredClass)}function Gt(e){return this.fromWireType(s()[e>>2])}var qt=()=>{Object.assign(Jt.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:ct,readValueFromPointer:Gt,deleteObject(e){null!==e&&e.delete()},fromWireType:$t})};function Jt(e,t,r,n,o,a,i,s,d,l,u){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=d,this.rawShare=l,this.rawDestructor=u,o||void 0!==t.baseClass?this.toWireType=Nt:n?(this.toWireType=Ht,this.destructorFunction=null):(this.toWireType=zt,this.destructorFunction=null)}var Xt,Qt=(e,t,r)=>{f.hasOwnProperty(e)||it("Replacing nonexistant public symbol"),void 0!==f[e].overloadTable&&void 0!==r?f[e].overloadTable[r]=t:(f[e]=t,f[e].argCount=r)},Kt=(e,t,r)=>{var n=f["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)},Yt=(e,t,r)=>e.includes("j")?Kt(e,t,r):xe(t).apply(null,r),Zt=(e,t)=>{var r=[];return function(){return r.length=0,Object.assign(r,arguments),Yt(e,t,r)}},er=(e,t)=>{var r=(e=tt(e)).includes("j")?Zt(e,t):xe(t);return"function"!=typeof r&&at(`unknown function pointer with signature ${e}: ${t}`),r},tr=(e,t)=>{var r=Mt(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},r},rr=e=>{var t=Wn(e),r=tt(t);return Rn(t),r},nr=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){n[t]||nt[t]||(ot[t]?ot[t].forEach(e):(r.push(t),n[t]=!0))})),new Xt(`${e}: `+r.map(rr).join([", "]))},or=(e,t,r,n,o,a,i,s,d,l,u,c,f)=>{u=tt(u),a=er(o,a),s&&(s=er(i,s)),l&&(l=er(d,l)),f=er(c,f);var p=Vt(u);Ut(p,(function(){nr(`Cannot construct ${u} due to unbound types`,[n])})),st([e,t,r],n?[n]:[],(function(t){var r,o;t=t[0],o=n?(r=t.registeredClass).instancePrototype:Bt.prototype;var i=Mt(u,(function(){if(Object.getPrototypeOf(this)!==d)throw new Qe("Use 'new' to construct "+u);if(void 0===c.constructor_body)throw new Qe(u+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new Qe(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(c.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),d=Object.create(o,{constructor:{value:i}});i.prototype=d;var c=new Lt(u,i,d,f,r,a,s,l);c.baseClass&&(void 0===c.baseClass.__derivedClasses&&(c.baseClass.__derivedClasses=[]),c.baseClass.__derivedClasses.push(c));var h=new Jt(u,c,!0,!1,!1),m=new Jt(u+"*",c,!1,!1,!1),g=new Jt(u+" const*",c,!1,!0,!1);return bt[e]={pointerType:m,constPointerType:g},Qt(p,i),[h,m,g]}))},ar=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(s()[t+4*n>>2]);return r},ir=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function sr(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=Mt(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,o=e.apply(n,t);return o instanceof Object?o:n}function dr(e,t,r,n,o,a){var i=t.length;i<2&&at("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,d=!1,l=1;l<t.length;++l)if(null!==t[l]&&void 0===t[l].destructorFunction){d=!0;break}var u="void"!==t[0].name,c="",f="";for(l=0;l<i-2;++l)c+=(0!==l?", ":"")+"arg"+l,f+=(0!==l?", ":"")+"arg"+l+"Wired";var p=`\n        return function (${c}) {\n        if (arguments.length !== ${i-2}) {\n          throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${i-2}');\n        }`;d&&(p+="var destructors = [];\n");var h=d?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[at,n,o,ir,t[0],t[1]];for(s&&(p+="var thisWired = classParam.toWireType("+h+", this);\n"),l=0;l<i-2;++l)p+="var arg"+l+"Wired = argType"+l+".toWireType("+h+", arg"+l+"); // "+t[l+2].name+"\n",m.push("argType"+l),g.push(t[l+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),p+=(u||a?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",d)p+="runDestructors(destructors);\n";else for(l=s?1:2;l<t.length;++l){var v=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==t[l].destructorFunction&&(p+=v+"_dtor("+v+"); // "+t[l].name+"\n",m.push(v+"_dtor"),g.push(t[l].destructorFunction))}u&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",m.push(p);var y=sr(Function,m).apply(null,g);return Mt(e,y)}var lr=(e,t,r,n,o,a)=>{var i=ar(t,r);o=er(n,o),st([],[e],(function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Qe(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{nr(`Cannot construct ${e.name} due to unbound types`,i)},st([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=dr(r,n,null,o,a),[]))),[]}))},ur=e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},cr=(e,t,r,n,o,a,i,s,d)=>{var l=ar(r,n);t=tt(t),t=ur(t),a=er(o,a),st([],[e],(function(e){var n=`${(e=e[0]).name}.${t}`;function o(){nr(`Cannot call ${n} due to unbound types`,l)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var u=e.registeredClass.instancePrototype,c=u[t];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===r-2?(o.argCount=r-2,o.className=e.name,u[t]=o):(Wt(u,t,n),u[t].overloadTable[r-2]=o),st([],l,(function(o){var s=dr(n,o,e,a,i,d);return void 0===u[t].overloadTable?(s.argCount=r-2,u[t]=s):u[t].overloadTable[r-2]=s,[]})),[]}))};function fr(){Object.assign(pr.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function pr(){this.allocated=[void 0],this.freelist=[]}var hr=new pr,mr=e=>{e>=hr.reserved&&0==--hr.get(e).refcount&&hr.free(e)},gr=()=>{for(var e=0,t=hr.reserved;t<hr.allocated.length;++t)void 0!==hr.allocated[t]&&++e;return e},vr=()=>{hr.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),hr.reserved=hr.allocated.length,f.count_emval_handles=gr},yr={toValue:e=>(e||at("Cannot use deleted val. handle = "+e),hr.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return hr.allocate({refcount:1,value:e})}}};function wr(e){return this.fromWireType(i()[e>>2])}var br=(e,t)=>{lt(e,{name:t=tt(t),fromWireType:e=>{var t=yr.toValue(e);return mr(e),t},toWireType:(e,t)=>yr.toHandle(t),argPackAdvance:ct,readValueFromPointer:wr,destructorFunction:null})},_r=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Er=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(d()[e>>2])};case 8:return function(e){return this.fromWireType(l()[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Sr=(e,t,r)=>{lt(e,{name:t=tt(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:ct,readValueFromPointer:Er(t,r),destructorFunction:null})},kr=(e,t,d)=>{switch(t){case 1:return d?e=>r()[e>>0]:e=>n()[e>>0];case 2:return d?e=>o()[e>>1]:e=>a()[e>>1];case 4:return d?e=>i()[e>>2]:e=>s()[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Cr=(e,t,r,n,o)=>{t=tt(t);var a=e=>e;if(0===n){var i=32-8*r;a=e=>e<<i>>>i}var s=t.includes("unsigned");lt(e,{name:t,fromWireType:a,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:ct,readValueFromPointer:kr(t,r,0!==n),destructorFunction:null})},Ar=(e,t,n)=>{var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function a(e){var t=s()[e>>2],n=s()[e+4>>2];return new o(r().buffer,n,t)}lt(e,{name:n=tt(n),fromWireType:a,argPackAdvance:ct,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},Tr=(e,t,r,n)=>{if(!(n>0))return 0;for(var o=r,a=r+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(r>=a)break;t[r++]=s}else if(s<=2047){if(r+1>=a)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=a)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=a)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-o},Ir=(e,t,r)=>Tr(e,n(),t,r),Pr=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},Dr=(e,t)=>{var r="std::string"===(t=tt(t));lt(e,{name:t,fromWireType(e){var t,o=s()[e>>2],a=e+4;if(r)for(var i=a,d=0;d<=o;++d){var l=a+d;if(d==o||0==n()[l]){var u=Ce(i,l-i);void 0===t?t=u:(t+=String.fromCharCode(0),t+=u),i=l+1}}else{var c=new Array(o);for(d=0;d<o;++d)c[d]=String.fromCharCode(n()[a+d]);t=c.join("")}return Rn(e),t},toWireType(e,t){var o;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var a="string"==typeof t;a||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||at("Cannot pass non-string to std::string"),o=r&&a?Pr(t):t.length;var i=Bn(4+o+1),d=i+4;if(s()[i>>2]=o,r&&a)Ir(t,d,o+1);else if(a)for(var l=0;l<o;++l){var u=t.charCodeAt(l);u>255&&(Rn(d),at("String has UTF-16 code units that do not fit in 8 bits")),n()[d+l]=u}else for(l=0;l<o;++l)n()[d+l]=t[l];return null!==e&&e.push(Rn,i),i},argPackAdvance:ct,readValueFromPointer:Gt,destructorFunction(e){Rn(e)}})},$r="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Fr=(e,t)=>{for(var r=e,i=r>>1,s=i+t/2;!(i>=s)&&a()[i];)++i;if((r=i<<1)-e>32&&$r)return $r.decode(n().slice(e,r));for(var d="",l=0;!(l>=t/2);++l){var u=o()[e+2*l>>1];if(0==u)break;d+=String.fromCharCode(u)}return d},Rr=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,a=(r-=2)<2*e.length?r/2:e.length,i=0;i<a;++i){var s=e.charCodeAt(i);o()[t>>1]=s,t+=2}return o()[t>>1]=0,t-n},Br=e=>2*e.length,Mr=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var o=i()[e+4*r>>2];if(0==o)break;if(++r,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},Wr=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,o=n+r-4,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),i()[t>>2]=s,(t+=4)+4>o)break}return i()[t>>2]=0,t-n},Ur=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t},Or=(e,t,r)=>{var n,o,i,d,l;r=tt(r),2===t?(n=Fr,o=Rr,d=Br,i=()=>a(),l=1):4===t&&(n=Mr,o=Wr,d=Ur,i=()=>s(),l=2),lt(e,{name:r,fromWireType:e=>{for(var r,o=s()[e>>2],a=i(),d=e+4,u=0;u<=o;++u){var c=e+4+u*t;if(u==o||0==a[c>>l]){var f=n(d,c-d);void 0===r?r=f:(r+=String.fromCharCode(0),r+=f),d=c+t}}return Rn(e),r},toWireType:(e,n)=>{"string"!=typeof n&&at(`Cannot pass non-string to C++ string type ${r}`);var a=d(n),i=Bn(4+a+t);return s()[i>>2]=a>>l,o(n,i+4,a+t),null!==e&&e.push(Rn,i),i},argPackAdvance:ct,readValueFromPointer:wr,destructorFunction(e){Rn(e)}})},xr=(e,t)=>{lt(e,{isVoid:!0,name:t=tt(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},Vr=()=>{if(!Ee())try{_?Ln(B):$e(B)}catch(e){Fe(e)}},Lr=e=>{if(!H)try{e(),Vr()}catch(e){Fe(e)}},jr=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(i(),e>>2,e).value.then(Hr);var t=e+128;Atomics.store(i(),t>>2,1)}};f.__emscripten_thread_mailbox_await=jr;var Hr=()=>{var e=Mn();e&&(jr(e),Lr(jn))};f.checkMailbox=Hr;var Nr=(e,t,r)=>{if(e==t)setTimeout((()=>Hr()));else if(_)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=Re.pthreads[e];if(!n)return;n.postMessage({cmd:"checkMailbox"})}},zr=[],Gr=(e,t,r,n)=>{zr.length=r;for(var o=n>>3,a=0;a<r;a++)zr[a]=l()[o+a];var i=Dn[e];Re.currentProxiedOperationCallerThread=t;var s=i.apply(null,zr);return Re.currentProxiedOperationCallerThread=0,s},qr=e=>{b&&Re.pthreads[e].ref()},Jr={},Xr=e=>{var t=Jr[e];return void 0===t?tt(e):t},Qr=[],Kr=(e,t,r,n,o)=>(e=Qr[e])(t=yr.toValue(t),t[r=Xr(r)],n,o),Yr=e=>{var t=Qr.length;return Qr.push(e),t},Zr=(e,t)=>{var r=nt[e];return void 0===r&&at(t+" has unknown type "+rr(e)),r},en=(e,t)=>{for(var r=new Array(e),n=0;n<e;++n)r[n]=Zr(s()[t+4*n>>2],"parameter "+n);return r},tn=(e,t,r)=>{var n=[],o=e.toWireType(n,r);return n.length&&(s()[t>>2]=yr.toHandle(n)),o},rn=(e,t,r)=>{var n=en(e,t),o=n.shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===r&&s.push("obj");for(var d=["retType"],l=[o],u=0;u<e;++u)s.push("arg"+u),d.push("argType"+u),l.push(n[u]),a+=`  var arg${u} = argType${u}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[u].argPackAdvance;for(a+=`  var rv = ${1===r?"new func":"func.call"}(${s.join(", ")});\n`,u=0;u<e;++u)n[u].deleteObject&&(a+=`  argType${u}.deleteObject(arg${u});\n`);o.isVoid||(d.push("emval_returnValue"),l.push(tn),a+="  return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",d.push(a);var c=sr(Function,d).apply(null,l),f=`methodCaller<(${n.map((e=>e.name)).join(", ")}) => ${o.name}>`;return Yr(Mt(f,c))},nn=e=>{e>4&&(hr.get(e).refcount+=1)},on=e=>yr.toHandle(Xr(e)),an=()=>yr.toHandle({}),sn=e=>yr.toHandle(Ce(e)),dn=e=>{var t=yr.toValue(e);ir(t),mr(e)},ln=(e,t,r)=>{e=yr.toValue(e),t=yr.toValue(t),r=yr.toValue(r),e[t]=r},un=(e,t)=>{var r=(e=Zr(e,"_emval_take_value")).readValueFromPointer(t);return yr.toHandle(r)},cn=e=>e%4==0&&(e%100!=0||e%400==0),fn=[0,31,60,91,121,152,182,213,244,274,305,335],pn=[0,31,59,90,120,151,181,212,243,273,304,334],hn=e=>(cn(e.getFullYear())?fn:pn)[e.getMonth()]+e.getDate()-1;function mn(e,t,r){var n=Te(e,t),o=new Date(1e3*n);i()[r>>2]=o.getSeconds(),i()[r+4>>2]=o.getMinutes(),i()[r+8>>2]=o.getHours(),i()[r+12>>2]=o.getDate(),i()[r+16>>2]=o.getMonth(),i()[r+20>>2]=o.getFullYear()-1900,i()[r+24>>2]=o.getDay();var a=0|hn(o);i()[r+28>>2]=a,i()[r+36>>2]=-60*o.getTimezoneOffset();var s=new Date(o.getFullYear(),0,1),d=new Date(o.getFullYear(),6,1).getTimezoneOffset(),l=s.getTimezoneOffset(),u=0|(d!=l&&o.getTimezoneOffset()==Math.min(l,d));i()[r+32>>2]=u}var gn,vn=e=>{var t=Pr(e)+1,r=Bn(t);return r&&Ir(e,r,t),r},yn=(e,t,r)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),d=o.getTimezoneOffset(),l=a.getTimezoneOffset(),u=Math.max(d,l);function c(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}s()[e>>2]=60*u,i()[t>>2]=Number(d!=l);var f=c(o),p=c(a),h=vn(f),m=vn(p);l<d?(s()[r>>2]=h,s()[r+4>>2]=m):(s()[r>>2]=m,s()[r+4>>2]=h)},wn=()=>{ae("")},bn=()=>{},_n=()=>Date.now(),En=()=>{_e+=1},Sn=()=>{throw En(),"unwind"};gn=()=>performance.timeOrigin+performance.now();var kn=()=>536870912,Cn=e=>{var t=(e-D.buffer.byteLength+65535)/65536;try{return D.grow(t),N(),1}catch(e){}},An=e=>{var t=n().length;if((e>>>=0)<=t)return!1;var r=kn();if(e>r)return!1;for(var o,a,i=1;i<=4;i*=2){var s=t*(1+.2/i);s=Math.min(s,e+100663296);var d=Math.min(r,(o=Math.max(e,s))+((a=65536)-o%a)%a);if(Cn(d))return!0}return!1},Tn=[null,[],[]],In=(e,t)=>{var r=Tn[e];0===t||10===t?((1===e?F:R)(ke(r,0)),r.length=0):r.push(t)};function Pn(e,t,r,o){if(_)return Ie(3,1,e,t,r,o);for(var a=0,i=0;i<r;i++){var d=s()[t>>2],l=s()[t+4>>2];t+=8;for(var u=0;u<l;u++)In(e,n()[d+u]);a+=l}return s()[o>>2]=a,0}Re.init(),et(),Qe=f.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Ke=f.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Rt(),At(),qt(),Xt=f.UnboundTypeError=tr(Error,"UnboundTypeError"),fr(),vr();var Dn=[Pe,We,Je,Pn],$n={e:He,s:ze,F:Ge,m:qe,C:Ye,w:Ze,M:ft,v:or,t:lr,j:cr,L:br,o:Sr,c:Cr,b:Ar,p:Dr,k:Or,N:xr,z:Nr,G:Gr,E:jr,I:qr,h:Kr,d:mr,g:rn,O:nn,q:on,K:an,D:sn,i:dn,r:ln,P:un,u:mn,y:yn,l:wn,n:bn,J:_n,H:Sn,f:gn,x:An,B:$e,A:Pn,a:D||f.wasmMemory},Fn=he(),Rn=e=>(Rn=Fn.R)(e),Bn=e=>(Bn=Fn.S)(e),Mn=f._pthread_self=()=>(Mn=f._pthread_self=Fn.T)();f.__emscripten_tls_init=()=>(f.__emscripten_tls_init=Fn.U)();var Wn=e=>(Wn=Fn.V)(e);f.__embind_initialize_bindings=()=>(f.__embind_initialize_bindings=Fn.W)();var Un=f.__emscripten_thread_init=(e,t,r,n,o,a)=>(Un=f.__emscripten_thread_init=Fn.X)(e,t,r,n,o,a);f.__emscripten_thread_crashed=()=>(f.__emscripten_thread_crashed=Fn.Z)();var On,xn=(e,t,r,n)=>(xn=Fn._)(e,t,r,n),Vn=e=>(Vn=Fn.$)(e),Ln=f.__emscripten_thread_exit=e=>(Ln=f.__emscripten_thread_exit=Fn.aa)(e),jn=()=>(jn=Fn.ba)(),Hn=(e,t)=>(Hn=Fn.ca)(e,t),Nn=()=>(Nn=Fn.da)(),zn=e=>(zn=Fn.ea)(e),Gn=e=>(Gn=Fn.fa)(e),qn=e=>(qn=Fn.ga)(e);function Jn(){if(!(te>0)){if(_)return u(f),Q(),void startWorker(f);X(),te>0||(f.setStatus?(f.setStatus("Running..."),setTimeout((function(){setTimeout((function(){f.setStatus("")}),1),e()}),1)):e())}function e(){On||(On=!0,f.calledRun=!0,H||(Q(),u(f),f.onRuntimeInitialized&&f.onRuntimeInitialized(),K()))}}if(f.dynCall_jiji=(e,t,r,n,o)=>(f.dynCall_jiji=Fn.ha)(e,t,r,n,o),f.___start_em_js=143628,f.___stop_em_js=143685,f.wasmMemory=D,f.keepRuntimeAlive=Ee,f.ExitStatus=me,f.PThread=Re,re=function e(){On||Jn(),On||(re=e)},f.preInit)for("function"==typeof f.preInit&&(f.preInit=[f.preInit]);f.preInit.length>0;)f.preInit.pop()();return Jn(),t.ready}),r=(()=>{var e="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-simd-mt.js",document.baseURI).href;return async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r,n,o;(o=t).ready=new Promise(((e,t)=>{r=e,n=t})),(o=void 0!==o?o:{}).locateFile=function(e,t){return"decoder-pro-audio.wasm"==e&&"undefined"!=typeof JESSIBUCA_PRO_AUDIO_WASM_URL&&""!=JESSIBUCA_PRO_AUDIO_WASM_URL?JESSIBUCA_PRO_AUDIO_WASM_URL:t+e};var a,i,s,d=Object.assign({},o),l="./this.program",u="object"==typeof window,c="function"==typeof importScripts,f="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,p="";function h(e){return o.locateFile?o.locateFile(e,p):p+e}if(f){const{createRequire:e}=await import("module");var m=e("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-simd-mt.js",document.baseURI).href),g=m("fs"),v=m("path");p=c?v.dirname(p)+"/":m("url").fileURLToPath(new URL("./","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-simd-mt.js",document.baseURI).href)),a=(e,t)=>(e=Y(e)?new URL(e):v.normalize(e),g.readFileSync(e,t?void 0:"utf8")),s=e=>{var t=a(e,!0);return t.buffer||(t=new Uint8Array(t)),t},i=function(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=Y(e)?new URL(e):v.normalize(e),g.readFile(e,n?void 0:"utf8",((e,o)=>{e?r(e):t(n?o.buffer:o)}))},!o.thisProgram&&process.argv.length>1&&(l=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),o.inspect=()=>"[Emscripten Module object]"}else(u||c)&&(c?p=self.location.href:"undefined"!=typeof document&&document.currentScript&&(p=document.currentScript.src),e&&(p=e),p=0!==p.indexOf("blob:")?p.substr(0,p.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},c&&(s=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),i=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var y,w,b=o.print||console.log.bind(console),_=o.printErr||console.error.bind(console);Object.assign(o,d),d=null,o.arguments&&o.arguments,o.thisProgram&&(l=o.thisProgram),o.quit&&o.quit,o.wasmBinary&&(y=o.wasmBinary),"object"!=typeof WebAssembly&&G("no native wasm support detected");var E,S,k,C,A,T,I,P,D=!1;function $(e,t){e||G(t)}function F(){var e=w.buffer;o.HEAP8=E=new Int8Array(e),o.HEAP16=k=new Int16Array(e),o.HEAPU8=S=new Uint8Array(e),o.HEAPU16=C=new Uint16Array(e),o.HEAP32=A=new Int32Array(e),o.HEAPU32=T=new Uint32Array(e),o.HEAPF32=I=new Float32Array(e),o.HEAPF64=P=new Float64Array(e)}var R=[],B=[],M=[];function W(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)x(o.preRun.shift());oe(R)}function U(){o.noFSInit||Pe.init.initialized||Pe.init(),Pe.ignorePermissions=!1,oe(B)}function O(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)L(o.postRun.shift());oe(M)}function x(e){R.unshift(e)}function V(e){B.unshift(e)}function L(e){M.unshift(e)}var j=0,H=null;function N(e){j++,o.monitorRunDependencies&&o.monitorRunDependencies(j)}function z(e){if(j--,o.monitorRunDependencies&&o.monitorRunDependencies(j),0==j&&H){var t=H;H=null,t()}}function G(e){o.onAbort&&o.onAbort(e),_(e="Aborted("+e+")"),D=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var q,J,X,Q="data:application/octet-stream;base64,",K=e=>e.startsWith(Q),Y=e=>e.startsWith("file://");function Z(e){if(e==q&&y)return new Uint8Array(y);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function ee(e){if(!y&&(u||c)){if("function"==typeof fetch&&!Y(e))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>Z(e)));if(i)return new Promise(((t,r)=>{i(e,(e=>t(new Uint8Array(e))),r)}))}return Promise.resolve().then((()=>Z(e)))}function te(e,t,r){return ee(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{_(`failed to asynchronously prepare wasm: ${e}`),G(e)}))}function re(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||K(t)||Y(t)||f||"function"!=typeof fetch?te(t,r,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(n,(function(e){return _(`wasm streaming compile failed: ${e}`),_("falling back to ArrayBuffer instantiation"),te(t,r,n)}))))}function ne(){var e={a:pn};function t(e,t){return hn=e.exports,w=hn.G,F(),Rt=hn.L,V(hn.H),z(),hn}if(N(),o.instantiateWasm)try{return o.instantiateWasm(e,t)}catch(e){_(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return re(y,q,e,(function(e){t(e.instance)})).catch(n),{}}o.locateFile?K(q="decoder-pro-audio.wasm")||(q=h(q)):q=new URL("decoder-pro-audio.wasm","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-simd-mt.js",document.baseURI).href).href;var oe=e=>{for(;e.length>0;)e.shift()(o)};function ae(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){T[this.ptr+4>>2]=e},this.get_type=function(){return T[this.ptr+4>>2]},this.set_destructor=function(e){T[this.ptr+8>>2]=e},this.get_destructor=function(){return T[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,E[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=E[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,E[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=E[this.ptr+13>>0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){T[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return T[this.ptr+16>>2]},this.get_exception_ptr=function(){if(wn(this.get_type()))return T[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}o.noExitRuntime;var ie=(e,t,r)=>{throw new ae(e).init(t,r),e},se=e=>(A[gn()>>2]=e,e),de={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=de.isAbs(e),r="/"===e.substr(-1);return(e=de.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=de.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=de.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return de.normalize(e.join("/"))},join2:(e,t)=>de.normalize(e+"/"+t)},le=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(f)try{var e=m("crypto");if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}G("initRandomDevice")},ue=e=>(ue=le())(e),ce={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:Pe.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=de.isAbs(n)}return(t?"/":"")+(e=de.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=ce.resolve(e).substr(1),t=ce.resolve(t).substr(1);for(var n=r(e.split("/")),o=r(t.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var d=[];for(s=i;s<n.length;s++)d.push("..");return(d=d.concat(o.slice(i))).join("/")}},fe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,pe=(e,t,r)=>{for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.buffer&&fe)return fe.decode(e.subarray(t,o));for(var a="";t<o;){var i=e[t++];if(128&i){var s=63&e[t++];if(192!=(224&i)){var d=63&e[t++];if((i=224==(240&i)?(15&i)<<12|s<<6|d:(7&i)<<18|s<<12|d<<6|63&e[t++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},he=[],me=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},ge=(e,t,r,n)=>{if(!(n>0))return 0;for(var o=r,a=r+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i);if(s<=127){if(r>=a)break;t[r++]=s}else if(s<=2047){if(r+1>=a)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=a)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=a)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-o};function ve(e,t,r){var n=r>0?r:me(e)+1,o=new Array(n),a=ge(e,o,0,o.length);return t&&(o.length=a),o}var ye=()=>{if(!he.length){var e=null;if(f){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=g.readSync(n,t)}catch(e){if(!e.toString().includes("EOF"))throw e;r=0}e=r>0?t.slice(0,r).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n");if(!e)return null;he=ve(e,!0)}return he.shift()},we={ttys:[],init(){},shutdown(){},register(e,t){we.ttys[e]={input:[],output:[],ops:t},Pe.registerDevice(e,we.stream_ops)},stream_ops:{open(e){var t=we.ttys[e.node.rdev];if(!t)throw new Pe.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,n,o){if(!e.tty||!e.tty.ops.get_char)throw new Pe.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new Pe.ErrnoError(29)}if(void 0===s&&0===a)throw new Pe.ErrnoError(6);if(null==s)break;a++,t[r+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,t,r,n,o){if(!e.tty||!e.tty.ops.put_char)throw new Pe.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,t[r+a])}catch(e){throw new Pe.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>ye(),put_char(e,t){null===t||10===t?(b(pe(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(b(pe(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?(_(pe(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(_(pe(e.output,0)),e.output=[])}}},be=e=>{G()},_e={ops_table:null,mount:e=>_e.createNode(null,"/",16895,0),createNode(e,t,r,n){if(Pe.isBlkdev(r)||Pe.isFIFO(r))throw new Pe.ErrnoError(63);_e.ops_table||(_e.ops_table={dir:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr,lookup:_e.node_ops.lookup,mknod:_e.node_ops.mknod,rename:_e.node_ops.rename,unlink:_e.node_ops.unlink,rmdir:_e.node_ops.rmdir,readdir:_e.node_ops.readdir,symlink:_e.node_ops.symlink},stream:{llseek:_e.stream_ops.llseek}},file:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr},stream:{llseek:_e.stream_ops.llseek,read:_e.stream_ops.read,write:_e.stream_ops.write,allocate:_e.stream_ops.allocate,mmap:_e.stream_ops.mmap,msync:_e.stream_ops.msync}},link:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr,readlink:_e.node_ops.readlink},stream:{}},chrdev:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr},stream:Pe.chrdev_stream_ops}});var o=Pe.createNode(e,t,r,n);return Pe.isDir(o.mode)?(o.node_ops=_e.ops_table.dir.node,o.stream_ops=_e.ops_table.dir.stream,o.contents={}):Pe.isFile(o.mode)?(o.node_ops=_e.ops_table.file.node,o.stream_ops=_e.ops_table.file.stream,o.usedBytes=0,o.contents=null):Pe.isLink(o.mode)?(o.node_ops=_e.ops_table.link.node,o.stream_ops=_e.ops_table.link.stream):Pe.isChrdev(o.mode)&&(o.node_ops=_e.ops_table.chrdev.node,o.stream_ops=_e.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=Pe.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,Pe.isDir(e.mode)?t.size=4096:Pe.isFile(e.mode)?t.size=e.usedBytes:Pe.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&_e.resizeFileStorage(e,t.size)},lookup(e,t){throw Pe.genericErrors[44]},mknod:(e,t,r,n)=>_e.createNode(e,t,r,n),rename(e,t,r){if(Pe.isDir(e.mode)){var n;try{n=Pe.lookupNode(t,r)}catch(e){}if(n)for(var o in n.contents)throw new Pe.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=Pe.lookupNode(e,t);for(var n in r.contents)throw new Pe.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink(e,t,r){var n=_e.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!Pe.isLink(e.mode))throw new Pe.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)t.set(a.subarray(o,o+i),r);else for(var s=0;s<i;s++)t[r+s]=a[o+s];return i},write(e,t,r,n,o,a){if(t.buffer===E.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),t.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=t.subarray(r,r+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=t.slice(r,r+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(t.subarray(r,r+n),o),n}if(_e.expandFileStorage(i,o+n),i.contents.subarray&&t.subarray)i.contents.set(t.subarray(r,r+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=t[r+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&Pe.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new Pe.ErrnoError(28);return n},allocate(e,t,r){_e.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,t,r,n,o){if(!Pe.isFile(e.node.mode))throw new Pe.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==E.buffer){if((r>0||r+t<s.length)&&(s=s.subarray?s.subarray(r,r+t):Array.prototype.slice.call(s,r,r+t)),i=!0,!(a=be()))throw new Pe.ErrnoError(48);E.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,t,r,n,o)=>(_e.stream_ops.write(e,t,0,n,r,!1),0)}},Ee=(e,t,r,n)=>{var o=n?"":`al ${e}`;i(e,(r=>{$(r,`Loading data file "${e}" failed (no arrayBuffer).`),t(new Uint8Array(r)),o&&z()}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),o&&N()},Se=(e,t,r,n,o,a)=>{Pe.createDataFile(e,t,r,n,o,a)},ke=o.preloadPlugins||[],Ce=(e,t,r,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return ke.forEach((a=>{o||a.canHandle(t)&&(a.handle(e,t,r,n),o=!0)})),o},Ae=(e,t,r,n,o,a,i,s,d,l)=>{var u=t?ce.resolve(de.join2(e,t)):e;function c(r){function c(r){l&&l(),s||Se(e,t,r,n,o,d),a&&a(),z()}Ce(r,u,c,(()=>{i&&i(),z()}))||c(r)}N(),"string"==typeof r?Ee(r,(e=>c(e)),i):c(r)},Te=e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===t)throw new Error(`Unknown file open mode: ${e}`);return t},Ie=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},Pe={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(e=ce.resolve(e)))return{path:"",node:null};if(t=Object.assign({follow_mount:!0,recurse_count:0},t),t.recurse_count>8)throw new Pe.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),n=Pe.root,o="/",a=0;a<r.length;a++){var i=a===r.length-1;if(i&&t.parent)break;if(n=Pe.lookupNode(n,r[a]),o=de.join2(o,r[a]),Pe.isMountpoint(n)&&(!i||i&&t.follow_mount)&&(n=n.mounted.root),!i||t.follow)for(var s=0;Pe.isLink(n.mode);){var d=Pe.readlink(o);if(o=ce.resolve(de.dirname(o),d),n=Pe.lookupPath(o,{recurse_count:t.recurse_count+1}).node,s++>40)throw new Pe.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var t;;){if(Pe.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?`${r}/${t}`:r+t:r}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%Pe.nameTable.length},hashAddNode(e){var t=Pe.hashName(e.parent.id,e.name);e.name_next=Pe.nameTable[t],Pe.nameTable[t]=e},hashRemoveNode(e){var t=Pe.hashName(e.parent.id,e.name);if(Pe.nameTable[t]===e)Pe.nameTable[t]=e.name_next;else for(var r=Pe.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=Pe.mayLookup(e);if(r)throw new Pe.ErrnoError(r,e);for(var n=Pe.hashName(e.id,t),o=Pe.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===t)return o}return Pe.lookup(e,t)},createNode(e,t,r,n){var o=new Pe.FSNode(e,t,r,n);return Pe.hashAddNode(o),o},destroyNode(e){Pe.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>Pe.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup(e){var t=Pe.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){try{Pe.lookupNode(e,t);return 20}catch(e){}return Pe.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=Pe.lookupNode(e,t)}catch(e){return e.errno}var o=Pe.nodePermissions(e,"wx");if(o)return o;if(r){if(!Pe.isDir(n.mode))return 54;if(Pe.isRoot(n)||Pe.getPath(n)===Pe.cwd())return 10}else if(Pe.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?Pe.isLink(e.mode)?32:Pe.isDir(e.mode)&&("r"!==Pe.flagsToPermissionString(t)||512&t)?31:Pe.nodePermissions(e,Pe.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=Pe.MAX_OPEN_FDS;e++)if(!Pe.streams[e])return e;throw new Pe.ErrnoError(33)},getStreamChecked(e){var t=Pe.getStream(e);if(!t)throw new Pe.ErrnoError(8);return t},getStream:e=>Pe.streams[e],createStream(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return Pe.FSStream||(Pe.FSStream=function(){this.shared={}},Pe.FSStream.prototype={},Object.defineProperties(Pe.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new Pe.FSStream,e),-1==t&&(t=Pe.nextfd()),e.fd=t,Pe.streams[t]=e,e},closeStream(e){Pe.streams[e]=null},chrdev_stream_ops:{open(e){var t=Pe.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new Pe.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){Pe.devices[e]={stream_ops:t}},getDevice:e=>Pe.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),Pe.syncFSRequests++,Pe.syncFSRequests>1&&_(`warning: ${Pe.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=Pe.getMounts(Pe.root.mount),n=0;function o(e){return Pe.syncFSRequests--,t(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=r.length&&o(null)}r.forEach((t=>{if(!t.type.syncfs)return a(null);t.type.syncfs(t,e,a)}))},mount(e,t,r){var n,o="/"===r,a=!r;if(o&&Pe.root)throw new Pe.ErrnoError(10);if(!o&&!a){var i=Pe.lookupPath(r,{follow_mount:!1});if(r=i.path,n=i.node,Pe.isMountpoint(n))throw new Pe.ErrnoError(10);if(!Pe.isDir(n.mode))throw new Pe.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},d=e.mount(s);return d.mount=s,s.root=d,o?Pe.root=d:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),d},unmount(e){var t=Pe.lookupPath(e,{follow_mount:!1});if(!Pe.isMountpoint(t.node))throw new Pe.ErrnoError(28);var r=t.node,n=r.mounted,o=Pe.getMounts(n);Object.keys(Pe.nameTable).forEach((e=>{for(var t=Pe.nameTable[e];t;){var r=t.name_next;o.includes(t.mount)&&Pe.destroyNode(t),t=r}})),r.mounted=null;var a=r.mount.mounts.indexOf(n);r.mount.mounts.splice(a,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=Pe.lookupPath(e,{parent:!0}).node,o=de.basename(e);if(!o||"."===o||".."===o)throw new Pe.ErrnoError(28);var a=Pe.mayCreate(n,o);if(a)throw new Pe.ErrnoError(a);if(!n.node_ops.mknod)throw new Pe.ErrnoError(63);return n.node_ops.mknod(n,o,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,Pe.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,Pe.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",o=0;o<r.length;++o)if(r[o]){n+="/"+r[o];try{Pe.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,Pe.mknod(e,t,r)),symlink(e,t){if(!ce.resolve(e))throw new Pe.ErrnoError(44);var r=Pe.lookupPath(t,{parent:!0}).node;if(!r)throw new Pe.ErrnoError(44);var n=de.basename(t),o=Pe.mayCreate(r,n);if(o)throw new Pe.ErrnoError(o);if(!r.node_ops.symlink)throw new Pe.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,o=de.dirname(e),a=de.dirname(t),i=de.basename(e),s=de.basename(t);if(r=Pe.lookupPath(e,{parent:!0}).node,n=Pe.lookupPath(t,{parent:!0}).node,!r||!n)throw new Pe.ErrnoError(44);if(r.mount!==n.mount)throw new Pe.ErrnoError(75);var d,l=Pe.lookupNode(r,i),u=ce.relative(e,a);if("."!==u.charAt(0))throw new Pe.ErrnoError(28);if("."!==(u=ce.relative(t,o)).charAt(0))throw new Pe.ErrnoError(55);try{d=Pe.lookupNode(n,s)}catch(e){}if(l!==d){var c=Pe.isDir(l.mode),f=Pe.mayDelete(r,i,c);if(f)throw new Pe.ErrnoError(f);if(f=d?Pe.mayDelete(n,s,c):Pe.mayCreate(n,s))throw new Pe.ErrnoError(f);if(!r.node_ops.rename)throw new Pe.ErrnoError(63);if(Pe.isMountpoint(l)||d&&Pe.isMountpoint(d))throw new Pe.ErrnoError(10);if(n!==r&&(f=Pe.nodePermissions(r,"w")))throw new Pe.ErrnoError(f);Pe.hashRemoveNode(l);try{r.node_ops.rename(l,n,s)}catch(e){throw e}finally{Pe.hashAddNode(l)}}},rmdir(e){var t=Pe.lookupPath(e,{parent:!0}).node,r=de.basename(e),n=Pe.lookupNode(t,r),o=Pe.mayDelete(t,r,!0);if(o)throw new Pe.ErrnoError(o);if(!t.node_ops.rmdir)throw new Pe.ErrnoError(63);if(Pe.isMountpoint(n))throw new Pe.ErrnoError(10);t.node_ops.rmdir(t,r),Pe.destroyNode(n)},readdir(e){var t=Pe.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new Pe.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=Pe.lookupPath(e,{parent:!0}).node;if(!t)throw new Pe.ErrnoError(44);var r=de.basename(e),n=Pe.lookupNode(t,r),o=Pe.mayDelete(t,r,!1);if(o)throw new Pe.ErrnoError(o);if(!t.node_ops.unlink)throw new Pe.ErrnoError(63);if(Pe.isMountpoint(n))throw new Pe.ErrnoError(10);t.node_ops.unlink(t,r),Pe.destroyNode(n)},readlink(e){var t=Pe.lookupPath(e).node;if(!t)throw new Pe.ErrnoError(44);if(!t.node_ops.readlink)throw new Pe.ErrnoError(28);return ce.resolve(Pe.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=Pe.lookupPath(e,{follow:!t}).node;if(!r)throw new Pe.ErrnoError(44);if(!r.node_ops.getattr)throw new Pe.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>Pe.stat(e,!0),chmod(e,t,r){var n;"string"==typeof e?n=Pe.lookupPath(e,{follow:!r}).node:n=e;if(!n.node_ops.setattr)throw new Pe.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){Pe.chmod(e,t,!0)},fchmod(e,t){var r=Pe.getStreamChecked(e);Pe.chmod(r.node,t)},chown(e,t,r,n){var o;"string"==typeof e?o=Pe.lookupPath(e,{follow:!n}).node:o=e;if(!o.node_ops.setattr)throw new Pe.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,t,r){Pe.chown(e,t,r,!0)},fchown(e,t,r){var n=Pe.getStreamChecked(e);Pe.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new Pe.ErrnoError(28);var r;"string"==typeof e?r=Pe.lookupPath(e,{follow:!0}).node:r=e;if(!r.node_ops.setattr)throw new Pe.ErrnoError(63);if(Pe.isDir(r.mode))throw new Pe.ErrnoError(31);if(!Pe.isFile(r.mode))throw new Pe.ErrnoError(28);var n=Pe.nodePermissions(r,"w");if(n)throw new Pe.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=Pe.getStreamChecked(e);if(0==(2097155&r.flags))throw new Pe.ErrnoError(28);Pe.truncate(r.node,t)},utime(e,t,r){var n=Pe.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new Pe.ErrnoError(44);var n;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?Te(t):t)?4095&r|32768:0,"object"==typeof e)n=e;else{e=de.normalize(e);try{n=Pe.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var a=!1;if(64&t)if(n){if(128&t)throw new Pe.ErrnoError(20)}else n=Pe.mknod(e,r,0),a=!0;if(!n)throw new Pe.ErrnoError(44);if(Pe.isChrdev(n.mode)&&(t&=-513),65536&t&&!Pe.isDir(n.mode))throw new Pe.ErrnoError(54);if(!a){var i=Pe.mayOpen(n,t);if(i)throw new Pe.ErrnoError(i)}512&t&&!a&&Pe.truncate(n,0),t&=-131713;var s=Pe.createStream({node:n,path:Pe.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!o.logReadFiles||1&t||(Pe.readFiles||(Pe.readFiles={}),e in Pe.readFiles||(Pe.readFiles[e]=1)),s},close(e){if(Pe.isClosed(e))throw new Pe.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{Pe.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(Pe.isClosed(e))throw new Pe.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new Pe.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new Pe.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,o){if(n<0||o<0)throw new Pe.ErrnoError(28);if(Pe.isClosed(e))throw new Pe.ErrnoError(8);if(1==(2097155&e.flags))throw new Pe.ErrnoError(8);if(Pe.isDir(e.node.mode))throw new Pe.ErrnoError(31);if(!e.stream_ops.read)throw new Pe.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new Pe.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,t,r,n,o);return a||(e.position+=i),i},write(e,t,r,n,o,a){if(n<0||o<0)throw new Pe.ErrnoError(28);if(Pe.isClosed(e))throw new Pe.ErrnoError(8);if(0==(2097155&e.flags))throw new Pe.ErrnoError(8);if(Pe.isDir(e.node.mode))throw new Pe.ErrnoError(31);if(!e.stream_ops.write)throw new Pe.ErrnoError(28);e.seekable&&1024&e.flags&&Pe.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new Pe.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,t,r,n,o,a);return i||(e.position+=s),s},allocate(e,t,r){if(Pe.isClosed(e))throw new Pe.ErrnoError(8);if(t<0||r<=0)throw new Pe.ErrnoError(28);if(0==(2097155&e.flags))throw new Pe.ErrnoError(8);if(!Pe.isFile(e.node.mode)&&!Pe.isDir(e.node.mode))throw new Pe.ErrnoError(43);if(!e.stream_ops.allocate)throw new Pe.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&e.flags))throw new Pe.ErrnoError(2);if(1==(2097155&e.flags))throw new Pe.ErrnoError(2);if(!e.stream_ops.mmap)throw new Pe.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,o)},msync:(e,t,r,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,o):0,munmap:e=>0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new Pe.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error(`Invalid encoding type "${t.encoding}"`);var r,n=Pe.open(e,t.flags),o=Pe.stat(e).size,a=new Uint8Array(o);return Pe.read(n,a,0,o,0),"utf8"===t.encoding?r=pe(a,0):"binary"===t.encoding&&(r=a),Pe.close(n),r},writeFile(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.flags=r.flags||577;var n=Pe.open(e,r.flags,r.mode);if("string"==typeof t){var o=new Uint8Array(me(t)+1),a=ge(t,o,0,o.length);Pe.write(n,o,0,a,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");Pe.write(n,t,0,t.byteLength,void 0,r.canOwn)}Pe.close(n)},cwd:()=>Pe.currentPath,chdir(e){var t=Pe.lookupPath(e,{follow:!0});if(null===t.node)throw new Pe.ErrnoError(44);if(!Pe.isDir(t.node.mode))throw new Pe.ErrnoError(54);var r=Pe.nodePermissions(t.node,"x");if(r)throw new Pe.ErrnoError(r);Pe.currentPath=t.path},createDefaultDirectories(){Pe.mkdir("/tmp"),Pe.mkdir("/home"),Pe.mkdir("/home/web_user")},createDefaultDevices(){Pe.mkdir("/dev"),Pe.registerDevice(Pe.makedev(1,3),{read:()=>0,write:(e,t,r,n,o)=>n}),Pe.mkdev("/dev/null",Pe.makedev(1,3)),we.register(Pe.makedev(5,0),we.default_tty_ops),we.register(Pe.makedev(6,0),we.default_tty1_ops),Pe.mkdev("/dev/tty",Pe.makedev(5,0)),Pe.mkdev("/dev/tty1",Pe.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=ue(e).byteLength),e[--t]);Pe.createDevice("/dev","random",r),Pe.createDevice("/dev","urandom",r),Pe.mkdir("/dev/shm"),Pe.mkdir("/dev/shm/tmp")},createSpecialDirectories(){Pe.mkdir("/proc");var e=Pe.mkdir("/proc/self");Pe.mkdir("/proc/self/fd"),Pe.mount({mount(){var t=Pe.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=Pe.getStreamChecked(r),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},t}},{},"/proc/self/fd")},createStandardStreams(){o.stdin?Pe.createDevice("/dev","stdin",o.stdin):Pe.symlink("/dev/tty","/dev/stdin"),o.stdout?Pe.createDevice("/dev","stdout",null,o.stdout):Pe.symlink("/dev/tty","/dev/stdout"),o.stderr?Pe.createDevice("/dev","stderr",null,o.stderr):Pe.symlink("/dev/tty1","/dev/stderr"),Pe.open("/dev/stdin",0),Pe.open("/dev/stdout",1),Pe.open("/dev/stderr",1)},ensureErrnoError(){Pe.ErrnoError||(Pe.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},Pe.ErrnoError.prototype=new Error,Pe.ErrnoError.prototype.constructor=Pe.ErrnoError,[44].forEach((e=>{Pe.genericErrors[e]=new Pe.ErrnoError(e),Pe.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){Pe.ensureErrnoError(),Pe.nameTable=new Array(4096),Pe.mount(_e,{},"/"),Pe.createDefaultDirectories(),Pe.createDefaultDevices(),Pe.createSpecialDirectories(),Pe.filesystems={MEMFS:_e}},init(e,t,r){Pe.init.initialized=!0,Pe.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=t||o.stdout,o.stderr=r||o.stderr,Pe.createStandardStreams()},quit(){Pe.init.initialized=!1;for(var e=0;e<Pe.streams.length;e++){var t=Pe.streams[e];t&&Pe.close(t)}},findObject(e,t){var r=Pe.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(n=Pe.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Pe.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=de.basename(e),n=Pe.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath(e,t,r,n){e="string"==typeof e?e:Pe.getPath(e);for(var o=t.split("/").reverse();o.length;){var a=o.pop();if(a){var i=de.join2(e,a);try{Pe.mkdir(i)}catch(e){}e=i}}return i},createFile(e,t,r,n,o){var a=de.join2("string"==typeof e?e:Pe.getPath(e),t),i=Ie(n,o);return Pe.create(a,i)},createDataFile(e,t,r,n,o,a){var i=t;e&&(e="string"==typeof e?e:Pe.getPath(e),i=t?de.join2(e,t):e);var s=Ie(n,o),d=Pe.create(i,s);if(r){if("string"==typeof r){for(var l=new Array(r.length),u=0,c=r.length;u<c;++u)l[u]=r.charCodeAt(u);r=l}Pe.chmod(d,146|s);var f=Pe.open(d,577);Pe.write(f,r,0,r.length,0,a),Pe.close(f),Pe.chmod(d,s)}},createDevice(e,t,r,n){var o=de.join2("string"==typeof e?e:Pe.getPath(e),t),a=Ie(!!r,!!n);Pe.createDevice.major||(Pe.createDevice.major=64);var i=Pe.makedev(Pe.createDevice.major++,0);return Pe.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,t,n,o,a){for(var i=0,s=0;s<o;s++){var d;try{d=r()}catch(e){throw new Pe.ErrnoError(29)}if(void 0===d&&0===i)throw new Pe.ErrnoError(6);if(null==d)break;i++,t[n+s]=d}return i&&(e.node.timestamp=Date.now()),i},write(e,t,r,o,a){for(var i=0;i<o;i++)try{n(t[r+i])}catch(e){throw new Pe.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),Pe.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!a)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=ve(a(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new Pe.ErrnoError(29)}},createLazyFile(e,t,r,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,a=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,i=1048576;o||(i=n);var s=this;s.setDataGetter((e=>{var t=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",r,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+t),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+r+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):ve(o.responseText||"",!0)})(t,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,b("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!c)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:r};var d=Pe.createFile(e,t,s,n,o);s.contents?d.contents=s.contents:s.url&&(d.contents=null,d.url=s.url),Object.defineProperties(d,{usedBytes:{get:function(){return this.contents.length}}});var l={};function u(e,t,r,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)t[r+s]=a[o+s];else for(s=0;s<i;s++)t[r+s]=a.get(o+s);return i}return Object.keys(d.stream_ops).forEach((e=>{var t=d.stream_ops[e];l[e]=function(){return Pe.forceLoadFile(d),t.apply(null,arguments)}})),l.read=(e,t,r,n,o)=>(Pe.forceLoadFile(d),u(e,t,r,n,o)),l.mmap=(e,t,r,n,o)=>{Pe.forceLoadFile(d);var a=be();if(!a)throw new Pe.ErrnoError(48);return u(e,E,a,t,r),{ptr:a,allocated:!0}},d.stream_ops=l,d}},De=(e,t)=>e?pe(S,e,t):"",$e={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(de.isAbs(t))return t;var n;-100===e?n=Pe.cwd():n=$e.getStreamFromFD(e).path;if(0==t.length){if(!r)throw new Pe.ErrnoError(44);return n}return de.join2(n,t)},doStat(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&de.normalize(t)!==de.normalize(Pe.getPath(e.node)))return-54;throw e}A[r>>2]=n.dev,A[r+4>>2]=n.mode,T[r+8>>2]=n.nlink,A[r+12>>2]=n.uid,A[r+16>>2]=n.gid,A[r+20>>2]=n.rdev,X=[n.size>>>0,(J=n.size,+Math.abs(J)>=1?J>0?+Math.floor(J/4294967296)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],A[r+24>>2]=X[0],A[r+28>>2]=X[1],A[r+32>>2]=4096,A[r+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return X=[Math.floor(o/1e3)>>>0,(J=Math.floor(o/1e3),+Math.abs(J)>=1?J>0?+Math.floor(J/4294967296)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],A[r+40>>2]=X[0],A[r+44>>2]=X[1],T[r+48>>2]=o%1e3*1e3,X=[Math.floor(a/1e3)>>>0,(J=Math.floor(a/1e3),+Math.abs(J)>=1?J>0?+Math.floor(J/4294967296)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],A[r+56>>2]=X[0],A[r+60>>2]=X[1],T[r+64>>2]=a%1e3*1e3,X=[Math.floor(i/1e3)>>>0,(J=Math.floor(i/1e3),+Math.abs(J)>=1?J>0?+Math.floor(J/4294967296)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],A[r+72>>2]=X[0],A[r+76>>2]=X[1],T[r+80>>2]=i%1e3*1e3,X=[n.ino>>>0,(J=n.ino,+Math.abs(J)>=1?J>0?+Math.floor(J/4294967296)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],A[r+88>>2]=X[0],A[r+92>>2]=X[1],0},doMsync(e,t,r,n,o){if(!Pe.isFile(t.node.mode))throw new Pe.ErrnoError(43);if(2&n)return 0;var a=S.slice(e,e+r);Pe.msync(t,a,o,r,n)},varargs:void 0,get(){var e=A[+$e.varargs>>2];return $e.varargs+=4,e},getp:()=>$e.get(),getStr:e=>De(e),getStreamFromFD:e=>Pe.getStreamChecked(e)};function Fe(e,t,r){$e.varargs=r;try{var n=$e.getStreamFromFD(e);switch(t){case 0:if((o=$e.get())<0)return-28;for(;Pe.streams[o];)o++;return Pe.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=$e.get();return n.flags|=o,0;case 5:o=$e.getp();return k[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return se(28),-1}}catch(e){if(void 0===Pe||"ErrnoError"!==e.name)throw e;return-e.errno}}function Re(e,t,r,n){$e.varargs=n;try{t=$e.getStr(t),t=$e.calculateAt(e,t);var o=n?$e.get():0;return Pe.open(t,r,o).fd}catch(e){if(void 0===Pe||"ErrnoError"!==e.name)throw e;return-e.errno}}var Be,Me,We,Ue=(e,t,r,n,o)=>{},Oe=()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);Be=e},xe=e=>{for(var t="",r=e;S[r];)t+=Be[S[r++]];return t},Ve={},Le={},je={},He=e=>{throw new Me(e)},Ne=e=>{throw new We(e)},ze=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&Ne("Mismatched type converter count");for(var o=0;o<e.length;++o)qe(e[o],n[o])}e.forEach((function(e){je[e]=t}));var o=new Array(t.length),a=[],i=0;t.forEach(((e,t)=>{Le.hasOwnProperty(e)?o[t]=Le[e]:(a.push(e),Ve.hasOwnProperty(e)||(Ve[e]=[]),Ve[e].push((()=>{o[t]=Le[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function Ge(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=t.name;if(e||He(`type "${n}" must have a positive integer typeid pointer`),Le.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;He(`Cannot register type '${n}' twice`)}if(Le[e]=t,delete je[e],Ve.hasOwnProperty(e)){var o=Ve[e];delete Ve[e],o.forEach((e=>e()))}}function qe(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ge(e,t,r)}var Je,Xe=8,Qe=(e,t,r,n)=>{qe(e,{name:t=xe(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:n},argPackAdvance:Xe,readValueFromPointer:function(e){return this.fromWireType(S[e])},destructorFunction:null})},Ke=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Ye=e=>{He(e.$$.ptrType.registeredClass.name+" instance already deleted")},Ze=!1,et=e=>{},tt=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},rt=e=>{e.count.value-=1,0===e.count.value&&tt(e)},nt=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=nt(e,t,r.baseClass);return null===n?null:r.downcast(n)},ot={},at=()=>Object.keys(ct).length,it=()=>{var e=[];for(var t in ct)ct.hasOwnProperty(t)&&e.push(ct[t]);return e},st=[],dt=()=>{for(;st.length;){var e=st.pop();e.$$.deleteScheduled=!1,e.delete()}},lt=e=>{Je=e,st.length&&Je&&Je(dt)},ut=()=>{o.getInheritedInstanceCount=at,o.getLiveInheritedInstances=it,o.flushPendingDeletes=dt,o.setDelayFunction=lt},ct={},ft=(e,t)=>{for(void 0===t&&He("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t},pt=(e,t)=>(t=ft(e,t),ct[t]),ht=(e,t)=>(t.ptrType&&t.ptr||Ne("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!==!!t.smartPtr&&Ne("Both smartPtrType and smartPtr must be specified"),t.count={value:1},gt(Object.create(e,{$$:{value:t}})));function mt(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=pt(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?ht(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):ht(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(t),s=ot[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var d=nt(t,this.registeredClass,a.registeredClass);return null===d?o.call(this):this.isSmartPointer?ht(a.registeredClass.instancePrototype,{ptrType:a,ptr:d,smartPtrType:this,smartPtr:e}):ht(a.registeredClass.instancePrototype,{ptrType:a,ptr:d})}var gt=e=>"undefined"==typeof FinalizationRegistry?(gt=e=>e,e):(Ze=new FinalizationRegistry((e=>{rt(e.$$)})),gt=e=>{var t=e.$$;if(!!t.smartPtr){var r={$$:t};Ze.register(e,r,e)}return e},et=e=>Ze.unregister(e),gt(e)),vt=()=>{Object.assign(yt.prototype,{isAliasOf(e){if(!(this instanceof yt))return!1;if(!(e instanceof yt))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,o=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return t===n&&r===o},clone(){if(this.$$.ptr||Ye(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=gt(Object.create(Object.getPrototypeOf(this),{$$:{value:Ke(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Ye(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&He("Object already scheduled for deletion"),et(this),rt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ye(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&He("Object already scheduled for deletion"),st.push(this),1===st.length&&Je&&Je(dt),this.$$.deleteScheduled=!0,this}})};function yt(){}var wt=(e,t)=>Object.defineProperty(t,"name",{value:e}),bt=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||He(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}},_t=(e,t,r)=>{o.hasOwnProperty(e)?((void 0===r||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[r])&&He(`Cannot register public name '${e}' twice`),bt(o,e,e),o.hasOwnProperty(r)&&He(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),o[e].overloadTable[r]=t):(o[e]=t,void 0!==r&&(o[e].numArguments=r))},Et=48,St=57,kt=e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=Et&&t<=St?`_${e}`:e};function Ct(e,t,r,n,o,a,i,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var At=(e,t,r)=>{for(;t!==r;)t.upcast||He(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function Tt(e,t){if(null===t)return this.isReference&&He(`null is not a valid ${this.name}`),0;t.$$||He(`Cannot pass "${dr(t)}" as a ${this.name}`),t.$$.ptr||He(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return At(t.$$.ptr,r,this.registeredClass)}function It(e,t){var r;if(null===t)return this.isReference&&He(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||He(`Cannot pass "${dr(t)}" as a ${this.name}`),t.$$.ptr||He(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&He(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;if(r=At(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&He("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:He(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var o=t.clone();r=this.rawShare(r,ar.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:He("Unsupporting sharing policy")}return r}function Pt(e,t){if(null===t)return this.isReference&&He(`null is not a valid ${this.name}`),0;t.$$||He(`Cannot pass "${dr(t)}" as a ${this.name}`),t.$$.ptr||He(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&He(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return At(t.$$.ptr,r,this.registeredClass)}function Dt(e){return this.fromWireType(T[e>>2])}var $t=()=>{Object.assign(Ft.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:Xe,readValueFromPointer:Dt,deleteObject(e){null!==e&&e.delete()},fromWireType:mt})};function Ft(e,t,r,n,o,a,i,s,d,l,u){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=d,this.rawShare=l,this.rawDestructor=u,o||void 0!==t.baseClass?this.toWireType=It:n?(this.toWireType=Tt,this.destructorFunction=null):(this.toWireType=Pt,this.destructorFunction=null)}var Rt,Bt,Mt=(e,t,r)=>{o.hasOwnProperty(e)||Ne("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==r?o[e].overloadTable[r]=t:(o[e]=t,o[e].argCount=r)},Wt=(e,t,r)=>{var n=o["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)},Ut=[],Ot=e=>{var t=Ut[e];return t||(e>=Ut.length&&(Ut.length=e+1),Ut[e]=t=Rt.get(e)),t},xt=(e,t,r)=>e.includes("j")?Wt(e,t,r):Ot(t).apply(null,r),Vt=(e,t)=>{var r=[];return function(){return r.length=0,Object.assign(r,arguments),xt(e,t,r)}},Lt=(e,t)=>{var r=(e=xe(e)).includes("j")?Vt(e,t):Ot(t);return"function"!=typeof r&&He(`unknown function pointer with signature ${e}: ${t}`),r},jt=(e,t)=>{var r=wt(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},r},Ht=e=>{var t=vn(e),r=xe(t);return mn(t),r},Nt=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){n[t]||Le[t]||(je[t]?je[t].forEach(e):(r.push(t),n[t]=!0))})),new Bt(`${e}: `+r.map(Ht).join([", "]))},zt=(e,t,r,n,o,a,i,s,d,l,u,c,f)=>{u=xe(u),a=Lt(o,a),s&&(s=Lt(i,s)),l&&(l=Lt(d,l)),f=Lt(c,f);var p=kt(u);_t(p,(function(){Nt(`Cannot construct ${u} due to unbound types`,[n])})),ze([e,t,r],n?[n]:[],(function(t){var r,o;t=t[0],o=n?(r=t.registeredClass).instancePrototype:yt.prototype;var i=wt(u,(function(){if(Object.getPrototypeOf(this)!==d)throw new Me("Use 'new' to construct "+u);if(void 0===c.constructor_body)throw new Me(u+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new Me(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(c.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),d=Object.create(o,{constructor:{value:i}});i.prototype=d;var c=new Ct(u,i,d,f,r,a,s,l);c.baseClass&&(void 0===c.baseClass.__derivedClasses&&(c.baseClass.__derivedClasses=[]),c.baseClass.__derivedClasses.push(c));var h=new Ft(u,c,!0,!1,!1),m=new Ft(u+"*",c,!1,!1,!1),g=new Ft(u+" const*",c,!1,!0,!1);return ot[e]={pointerType:m,constPointerType:g},Mt(p,i),[h,m,g]}))},Gt=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(T[t+4*n>>2]);return r},qt=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function Jt(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=wt(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,o=e.apply(n,t);return o instanceof Object?o:n}function Xt(e,t,r,n,o,a){var i=t.length;i<2&&He("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,d=!1,l=1;l<t.length;++l)if(null!==t[l]&&void 0===t[l].destructorFunction){d=!0;break}var u="void"!==t[0].name,c="",f="";for(l=0;l<i-2;++l)c+=(0!==l?", ":"")+"arg"+l,f+=(0!==l?", ":"")+"arg"+l+"Wired";var p=`\n        return function (${c}) {\n        if (arguments.length !== ${i-2}) {\n          throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${i-2}');\n        }`;d&&(p+="var destructors = [];\n");var h=d?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[He,n,o,qt,t[0],t[1]];s&&(p+="var thisWired = classParam.toWireType("+h+", this);\n");for(l=0;l<i-2;++l)p+="var arg"+l+"Wired = argType"+l+".toWireType("+h+", arg"+l+"); // "+t[l+2].name+"\n",m.push("argType"+l),g.push(t[l+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),p+=(u||a?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",d)p+="runDestructors(destructors);\n";else for(l=s?1:2;l<t.length;++l){var v=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==t[l].destructorFunction&&(p+=v+"_dtor("+v+"); // "+t[l].name+"\n",m.push(v+"_dtor"),g.push(t[l].destructorFunction))}u&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",m.push(p);var y=Jt(Function,m).apply(null,g);return wt(e,y)}var Qt=(e,t,r,n,o,a)=>{var i=Gt(t,r);o=Lt(n,o),ze([],[e],(function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Me(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{Nt(`Cannot construct ${e.name} due to unbound types`,i)},ze([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=Xt(r,n,null,o,a),[]))),[]}))},Kt=e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},Yt=(e,t,r,n,o,a,i,s,d)=>{var l=Gt(r,n);t=xe(t),t=Kt(t),a=Lt(o,a),ze([],[e],(function(e){var n=`${(e=e[0]).name}.${t}`;function o(){Nt(`Cannot call ${n} due to unbound types`,l)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var u=e.registeredClass.instancePrototype,c=u[t];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===r-2?(o.argCount=r-2,o.className=e.name,u[t]=o):(bt(u,t,n),u[t].overloadTable[r-2]=o),ze([],l,(function(o){var s=Xt(n,o,e,a,i,d);return void 0===u[t].overloadTable?(s.argCount=r-2,u[t]=s):u[t].overloadTable[r-2]=s,[]})),[]}))};function Zt(){Object.assign(er.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function er(){this.allocated=[void 0],this.freelist=[]}var tr=new er,rr=e=>{e>=tr.reserved&&0==--tr.get(e).refcount&&tr.free(e)},nr=()=>{for(var e=0,t=tr.reserved;t<tr.allocated.length;++t)void 0!==tr.allocated[t]&&++e;return e},or=()=>{tr.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),tr.reserved=tr.allocated.length,o.count_emval_handles=nr},ar={toValue:e=>(e||He("Cannot use deleted val. handle = "+e),tr.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return tr.allocate({refcount:1,value:e})}}};function ir(e){return this.fromWireType(A[e>>2])}var sr=(e,t)=>{qe(e,{name:t=xe(t),fromWireType:e=>{var t=ar.toValue(e);return rr(e),t},toWireType:(e,t)=>ar.toHandle(t),argPackAdvance:Xe,readValueFromPointer:ir,destructorFunction:null})},dr=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},lr=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(I[e>>2])};case 8:return function(e){return this.fromWireType(P[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},ur=(e,t,r)=>{qe(e,{name:t=xe(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:Xe,readValueFromPointer:lr(t,r),destructorFunction:null})},cr=(e,t,r)=>{switch(t){case 1:return r?e=>E[e>>0]:e=>S[e>>0];case 2:return r?e=>k[e>>1]:e=>C[e>>1];case 4:return r?e=>A[e>>2]:e=>T[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},fr=(e,t,r,n,o)=>{t=xe(t);var a=e=>e;if(0===n){var i=32-8*r;a=e=>e<<i>>>i}var s=t.includes("unsigned");qe(e,{name:t,fromWireType:a,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:Xe,readValueFromPointer:cr(t,r,0!==n),destructorFunction:null})},pr=(e,t,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=T[e>>2],r=T[e+4>>2];return new n(E.buffer,r,t)}qe(e,{name:r=xe(r),fromWireType:o,argPackAdvance:Xe,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},hr=(e,t,r)=>ge(e,S,t,r),mr=(e,t)=>{var r="std::string"===(t=xe(t));qe(e,{name:t,fromWireType(e){var t,n=T[e>>2],o=e+4;if(r)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==S[s]){var d=De(a,s-a);void 0===t?t=d:(t+=String.fromCharCode(0),t+=d),a=s+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(S[o+i]);t=l.join("")}return mn(e),t},toWireType(e,t){var n;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var o="string"==typeof t;o||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||He("Cannot pass non-string to std::string"),n=r&&o?me(t):t.length;var a=yn(4+n+1),i=a+4;if(T[a>>2]=n,r&&o)hr(t,i,n+1);else if(o)for(var s=0;s<n;++s){var d=t.charCodeAt(s);d>255&&(mn(i),He("String has UTF-16 code units that do not fit in 8 bits")),S[i+s]=d}else for(s=0;s<n;++s)S[i+s]=t[s];return null!==e&&e.push(mn,a),a},argPackAdvance:Xe,readValueFromPointer:Dt,destructorFunction(e){mn(e)}})},gr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,vr=(e,t)=>{for(var r=e,n=r>>1,o=n+t/2;!(n>=o)&&C[n];)++n;if((r=n<<1)-e>32&&gr)return gr.decode(S.subarray(e,r));for(var a="",i=0;!(i>=t/2);++i){var s=k[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},yr=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,o=(r-=2)<2*e.length?r/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);k[t>>1]=i,t+=2}return k[t>>1]=0,t-n},wr=e=>2*e.length,br=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var o=A[e+4*r>>2];if(0==o)break;if(++r,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},_r=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,o=n+r-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343)i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a);if(A[t>>2]=i,(t+=4)+4>o)break}return A[t>>2]=0,t-n},Er=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t},Sr=(e,t,r)=>{var n,o,a,i,s;r=xe(r),2===t?(n=vr,o=yr,i=wr,a=()=>C,s=1):4===t&&(n=br,o=_r,i=Er,a=()=>T,s=2),qe(e,{name:r,fromWireType:e=>{for(var r,o=T[e>>2],i=a(),d=e+4,l=0;l<=o;++l){var u=e+4+l*t;if(l==o||0==i[u>>s]){var c=n(d,u-d);void 0===r?r=c:(r+=String.fromCharCode(0),r+=c),d=u+t}}return mn(e),r},toWireType:(e,n)=>{"string"!=typeof n&&He(`Cannot pass non-string to C++ string type ${r}`);var a=i(n),d=yn(4+a+t);return T[d>>2]=a>>s,o(n,d+4,a+t),null!==e&&e.push(mn,d),d},argPackAdvance:Xe,readValueFromPointer:ir,destructorFunction(e){mn(e)}})},kr=(e,t)=>{qe(e,{isVoid:!0,name:t=xe(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},Cr={},Ar=e=>{var t=Cr[e];return void 0===t?xe(e):t},Tr=[],Ir=(e,t,r,n,o)=>(e=Tr[e])(t=ar.toValue(t),t[r=Ar(r)],n,o),Pr=e=>{var t=Tr.length;return Tr.push(e),t},Dr=(e,t)=>{var r=Le[e];return void 0===r&&He(t+" has unknown type "+Ht(e)),r},$r=(e,t)=>{for(var r=new Array(e),n=0;n<e;++n)r[n]=Dr(T[t+4*n>>2],"parameter "+n);return r},Fr=(e,t,r)=>{var n=[],o=e.toWireType(n,r);return n.length&&(T[t>>2]=ar.toHandle(n)),o},Rr=(e,t,r)=>{var n=$r(e,t),o=n.shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===r&&s.push("obj");for(var d=["retType"],l=[o],u=0;u<e;++u)s.push("arg"+u),d.push("argType"+u),l.push(n[u]),a+=`  var arg${u} = argType${u}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[u].argPackAdvance;a+=`  var rv = ${1===r?"new func":"func.call"}(${s.join(", ")});\n`;for(u=0;u<e;++u)n[u].deleteObject&&(a+=`  argType${u}.deleteObject(arg${u});\n`);o.isVoid||(d.push("emval_returnValue"),l.push(Fr),a+="  return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",d.push(a);var c=Jt(Function,d).apply(null,l),f=`methodCaller<(${n.map((e=>e.name)).join(", ")}) => ${o.name}>`;return Pr(wt(f,c))},Br=e=>{var t=ar.toValue(e);qt(t),rr(e)},Mr=e=>e%4==0&&(e%100!=0||e%400==0),Wr=[0,31,60,91,121,152,182,213,244,274,305,335],Ur=[0,31,59,90,120,151,181,212,243,273,304,334],Or=e=>(Mr(e.getFullYear())?Wr:Ur)[e.getMonth()]+e.getDate()-1,xr=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function Vr(e,t,r){var n=xr(e,t),o=new Date(1e3*n);A[r>>2]=o.getSeconds(),A[r+4>>2]=o.getMinutes(),A[r+8>>2]=o.getHours(),A[r+12>>2]=o.getDate(),A[r+16>>2]=o.getMonth(),A[r+20>>2]=o.getFullYear()-1900,A[r+24>>2]=o.getDay();var a=0|Or(o);A[r+28>>2]=a,A[r+36>>2]=-60*o.getTimezoneOffset();var i=new Date(o.getFullYear(),0,1),s=new Date(o.getFullYear(),6,1).getTimezoneOffset(),d=i.getTimezoneOffset(),l=0|(s!=d&&o.getTimezoneOffset()==Math.min(d,s));A[r+32>>2]=l}var Lr=e=>{var t=me(e)+1,r=yn(t);return r&&hr(e,r,t),r},jr=(e,t,r)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),i=o.getTimezoneOffset(),s=a.getTimezoneOffset(),d=Math.max(i,s);function l(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}T[e>>2]=60*d,A[t>>2]=Number(i!=s);var u=l(o),c=l(a),f=Lr(u),p=Lr(c);s<i?(T[r>>2]=f,T[r+4>>2]=p):(T[r>>2]=p,T[r+4>>2]=f)},Hr=()=>{G("")},Nr=()=>Date.now(),zr=(e,t,r)=>S.copyWithin(e,t,t+r),Gr=()=>134217728,qr=e=>{var t=(e-w.buffer.byteLength+65535)/65536;try{return w.grow(t),F(),1}catch(e){}},Jr=e=>{var t=S.length;e>>>=0;var r=Gr();if(e>r)return!1;for(var n,o,a=1;a<=4;a*=2){var i=t*(1+.2/a);i=Math.min(i,e+100663296);var s=Math.min(r,(n=Math.max(e,i))+((o=65536)-n%o)%o);if(qr(s))return!0}return!1},Xr={},Qr=()=>l||"./this.program",Kr=()=>{if(!Kr.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qr()};for(var t in Xr)void 0===Xr[t]?delete e[t]:e[t]=Xr[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);Kr.strings=r}return Kr.strings},Yr=(e,t)=>{for(var r=0;r<e.length;++r)E[t++>>0]=e.charCodeAt(r);E[t>>0]=0},Zr=(e,t)=>{var r=0;return Kr().forEach(((n,o)=>{var a=t+r;T[e+4*o>>2]=a,Yr(n,a),r+=n.length+1})),0},en=(e,t)=>{var r=Kr();T[e>>2]=r.length;var n=0;return r.forEach((e=>n+=e.length+1)),T[t>>2]=n,0};function tn(e){try{var t=$e.getStreamFromFD(e);return Pe.close(t),0}catch(e){if(void 0===Pe||"ErrnoError"!==e.name)throw e;return e.errno}}function rn(e,t){try{var r=$e.getStreamFromFD(e),n=r.tty?2:Pe.isDir(r.mode)?3:Pe.isLink(r.mode)?7:4;return E[t>>0]=n,k[t+2>>1]=0,X=[0,(J=0,+Math.abs(J)>=1?J>0?+Math.floor(J/4294967296)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],A[t+8>>2]=X[0],A[t+12>>2]=X[1],X=[0,(J=0,+Math.abs(J)>=1?J>0?+Math.floor(J/4294967296)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],A[t+16>>2]=X[0],A[t+20>>2]=X[1],0}catch(e){if(void 0===Pe||"ErrnoError"!==e.name)throw e;return e.errno}}var nn=(e,t,r,n)=>{for(var o=0,a=0;a<r;a++){var i=T[t>>2],s=T[t+4>>2];t+=8;var d=Pe.read(e,E,i,s,n);if(d<0)return-1;if(o+=d,d<s)break;void 0!==n&&(n+=d)}return o};function on(e,t,r,n){try{var o=$e.getStreamFromFD(e),a=nn(o,t,r);return T[n>>2]=a,0}catch(e){if(void 0===Pe||"ErrnoError"!==e.name)throw e;return e.errno}}function an(e,t,r,n,o){var a=xr(t,r);try{if(isNaN(a))return 61;var i=$e.getStreamFromFD(e);return Pe.llseek(i,a,n),X=[i.position>>>0,(J=i.position,+Math.abs(J)>=1?J>0?+Math.floor(J/4294967296)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)],A[o>>2]=X[0],A[o+4>>2]=X[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===Pe||"ErrnoError"!==e.name)throw e;return e.errno}}var sn=(e,t,r,n)=>{for(var o=0,a=0;a<r;a++){var i=T[t>>2],s=T[t+4>>2];t+=8;var d=Pe.write(e,E,i,s,n);if(d<0)return-1;o+=d,void 0!==n&&(n+=d)}return o};function dn(e,t,r,n){try{var o=$e.getStreamFromFD(e),a=sn(o,t,r);return T[n>>2]=a,0}catch(e){if(void 0===Pe||"ErrnoError"!==e.name)throw e;return e.errno}}var ln=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=Pe.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},un=365,cn=146;Object.defineProperties(ln.prototype,{read:{get:function(){return(this.mode&un)===un},set:function(e){e?this.mode|=un:this.mode&=~un}},write:{get:function(){return(this.mode&cn)===cn},set:function(e){e?this.mode|=cn:this.mode&=~cn}},isFolder:{get:function(){return Pe.isDir(this.mode)}},isDevice:{get:function(){return Pe.isChrdev(this.mode)}}}),Pe.FSNode=ln,Pe.createPreloadedFile=Ae,Pe.staticInit(),Oe(),Me=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},We=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},vt(),ut(),$t(),Bt=o.UnboundTypeError=jt(Error,"UnboundTypeError"),Zt(),or();var fn,pn={o:ie,C:Fe,u:Re,r:Ue,E:Qe,F:zt,A:Qt,h:Yt,D:sr,l:ur,c:fr,b:pr,m:mr,i:Sr,n:kr,f:Ir,j:rr,e:Rr,d:Br,p:Vr,t:jr,a:Hr,g:Nr,y:zr,s:Jr,w:Zr,x:en,k:tn,v:rn,B:on,q:an,z:dn},hn=ne(),mn=e=>(mn=hn.I)(e),gn=()=>(gn=hn.J)(),vn=e=>(vn=hn.K)(e),yn=e=>(yn=hn.M)(e),wn=e=>(wn=hn.N)(e);function bn(){function e(){fn||(fn=!0,o.calledRun=!0,D||(U(),r(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),O()))}j>0||(W(),j>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),e()}),1)):e()))}if(o.dynCall_jij=(e,t,r,n)=>(o.dynCall_jij=hn.O)(e,t,r,n),o.dynCall_jii=(e,t,r)=>(o.dynCall_jii=hn.P)(e,t,r),o.dynCall_viiijj=(e,t,r,n,a,i,s,d)=>(o.dynCall_viiijj=hn.Q)(e,t,r,n,a,i,s,d),o.dynCall_jiji=(e,t,r,n,a)=>(o.dynCall_jiji=hn.R)(e,t,r,n,a),H=function e(){fn||bn(),fn||(H=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return bn(),t.ready}})();const n=m;!function(e,t){const r=m,n=e();for(;;)try{if(236672===parseInt(r(230))/1+parseInt(r(354))/2+parseInt(r(556))/3+-parseInt(r(316))/4*(parseInt(r(440))/5)+parseInt(r(330))/6+-parseInt(r(712))/7+-parseInt(r(369))/8)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(k);const o={websocket:1,fetch:2,hls:3,webrtc:4,webTransport:5,aliyunRtc:6,ts:7};n(609),n(247),n(291),n(553),n(308),n(553),n(283),n(672),n(308),n(268),n(364);const a={player:n(644),playerAudio:n(698),playbackTF:n(434),talk:"talk",playVod:n(597)},i={mp4:n(268),webm:n(588),flv:n(364),mov:n(347)},s={flv:n(364),m7s:n(341),hls:n(291),webrtc:n(553),webTransport:"webTransport",nakedFlow:n(633),fmp4:"fmp4",mpeg4:n(365),aliyunRtc:"aliyunRtc",ts:"ts",g711:n(650),pcm:n(465)};n(422),n(322),n(430),n(425),n(472),n(603),n(488);const d={mse:n(640),wcs:"wcs",offscreen:n(539),wasm:n(471),simd:"simd",simdFFmpeg:n(674),mt:"mt",webrtc:n(553),hls:"hls",aliyunRtc:n(308)},l={canvas:n(358),video:n(688)},u={debug:n(255),warn:n(655)},c={click:n(295),mouseDownAndUp:n(513)},f={normal:n(681),simple:"simple"},p={normal:"normal",small:n(592)},h=n(297);function m(e,t){const r=k();return(m=function(e,t){return r[e-=222]})(e,t)}const g=4080;n(541),n(663),n(253);const v={playIsNotPauseOrUrlIsNull:"播放地址不能为空",webglAlignmentError:"Webgl 渲染失败",webglContextLostError:"webgl 上下文丢失",mediaSourceH265NotSupport:n(497),mseSourceBufferFull:n(695),mediaSourceAppendBufferError:n(551),mseSourceBufferError:"解码失败",mseAddSourceBufferError:n(551),mseWorkerAddSourceBufferError:"初始化解码器失败",mediaSourceDecoderConfigurationError:n(551),mediaSourceTsIsMaxDiff:n(690),mseWidthOrHeightChange:n(690),mediaSourceAudioG711NotSupport:"硬解码不支持G711a/u音频格式",mediaSourceAudioInitTimeout:n(345),mediaSourceAudioNoDataTimeout:"等待音频数据超时",mediaSourceUseCanvasRenderPlayFailed:n(504),mediaSourceBufferedIsZeroError:n(690),webcodecsH265NotSupport:n(497),webcodecsUnsupportedConfigurationError:n(551),webcodecsDecodeConfigureError:n(551),webcodecsDecodeError:"解码失败",webcodecsAudioInitTimeout:n(345),webcodecsAudioNoDataTimeout:"等待音频数据超时",wcsWidthOrHeightChange:n(706),wasmDecodeError:n(706),simdDecodeError:n(706),simdDecodeDelayTimeout:n(573),wasmWidthOrHeightChange:n(690),wasmUseVideoRenderError:"video自动渲染失败",videoElementPlayingFailed:n(521),simdH264DecodeVideoWidthIsTooLarge:"不支持该分辨率的视频",networkDelayTimeout:"网络超时重播失败",fetchError:n(599),streamEnd:n(520),websocket1006Error:"流异常结束",websocketError:n(599),webrtcError:n(599),hlsError:"请求失败",decoderWorkerInitError:n(379),decoderWorkerWasmError:n(558),videoElementPlayingFailedForWebrtc:n(521),videoInfoError:n(452),webrtcStreamH265:n(525),delayTimeout:n(257),loadingTimeout:n(307),loadingTimeoutRetryEnd:n(307),delayTimeoutRetryEnd:"播放超时重播失败",flvDemuxBufferSizeTooLarge:n(419),audioChannelError:"音频通道错误",aliyunRtcError:n(599),mseWaitVideoCanplayTimeout:n(690),initDecoderWorkerTimeout:"初始化解码worker超时"};n(644),n(655),n(681),n(637),n(646),n(683),n(223),n(299),n(620),n(350),n(375),n(364),n(471),n(268),n(522),n(295),n(688),n(546),n(684);n(660),n(636),n(499),n(500),n(298),n(705),n(412),n(276),n(679),n(249),n(414),n(225),n(438),n(231),n(456),n(575),n(286),n(340),n(586),n(250),n(665);const y={init:n(487),initVideo:"initVideo",render:n(501),playAudio:n(264),initAudio:n(486),kBps:"kBps",decode:n(405),audioCode:n(324),audioNalu:n(415),audioAACSequenceHeader:n(404),videoCode:"videoCode",videoCodec:n(334),videoNalu:"videoNalu",videoPayload:n(423),audioPayload:n(494),wasmError:n(686),workerFetch:n(279),iframeIntervalTs:n(269),isDropping:n(416),workerEnd:"workerEnd",networkDelay:"networkDelay",playbackStreamVideoFps:"playbackStreamVideoFps",wasmWidthOrHeightChange:"wasmWidthOrHeightChange",simdDecodeError:n(587),simdH264DecodeVideoWidthIsTooLarge:"simdH264DecodeVideoWidthIsTooLarge",simdDecodeDelayTimeout:n(319),websocketOpen:"websocketOpen",websocketStringMsg:"websocketStringMsg",closeEnd:n(624),tempStream:n(460),videoSEI:n(376),flvScriptData:n(516),aacSequenceHeader:n(232),videoSequenceHeader:n(384),flvBufferData:n(455),checkFirstIFrame:n(527),mseHandle:n(483),mseFirstRenderTime:n(243),mseError:"mseError",notSupportNewWasm:n(526),failedToAsynchronouslyPrepareWasm:n(515),mtStreamStats:n(402)};n(666),n(445),n(447),n(704),n(565),n(628),n(519),n(550),n(671),n(680),n(247),n(398),n(310),n(481),n(509),n(487),n(247),n(572),n(398),n(424),n(310),n(413),n(508),n(590);const w={fullscreen:n(370),fullScreenByStart:n(252),webFullscreen:n(433),decoderWorkerInit:n(517),play:n(259),playing:"playing",pause:n(595),mute:"mute",load:n(315),loading:n(342),zooming:n(685),drawingRect:n(677),drawingRectInfo:"drawingRectInfo",videoInfo:n(503),timeUpdate:"timeUpdate",audioInfo:n(441),log:n(385),error:n(361),kBps:n(458),timeout:n(491),delayTimeout:"delayTimeout",delayTimeoutRetryEnd:"delayTimeoutRetryEnd",loadingTimeout:"loadingTimeout",loadingTimeoutRetryEnd:"loadingTimeoutRetryEnd",stats:n(432),performance:n(266),videoSmooth:n(336),faceDetectActive:n(696),objectDetectActive:n(346),occlusionDetectActive:n(652),imageDetectActive:n(360),record:n(274),recording:n(288),recordingTimestamp:n(386),recordStart:n(352),recordEnd:n(710),recordCreateError:n(616),recordBlob:"recordBlob",recordCancel:n(492),buffer:n(310),videoFrame:n(335),videoSEI:n(376),videoSEISyncPts:"videoSEISyncPts",start:n(226),metadata:"metadata",resize:"resize",volumechange:n(427),volume:"volume",destroy:n(398),beforeDestroy:"beforeDestroy",streamEnd:n(600),streamRate:"streamRate",streamAbps:n(669),streamVbps:n(610),streamDts:"streamDts",streamSuccess:"streamSuccess",streamMessage:"streamMessage",streamError:n(464),streamStats:n(280),streamEndInner:n(475),mseSourceOpen:n(391),mseSourceClose:n(261),mseSourceended:n(378),mseSourceStartStreaming:n(271),mseSourceEndStreaming:n(260),mseSourceBufferError:n(479),mseAddSourceBufferError:n(372),mseWorkerAddSourceBufferError:n(518),mseSourceBufferBusy:n(401),mseSourceBufferFull:n(707),videoWaiting:n(602),videoTimeUpdate:n(647),videoSyncAudio:n(510),playToRenderTimes:"playToRenderTimes",playbackTime:"playbackTime",playbackTimestamp:"playbackTimestamp",playbackTimeScroll:n(534),playbackPrecision:n(495),playbackShowPrecisionChange:n(656),playbackJustTime:n(306),playbackStats:"playbackStats",playbackSeek:n(474),playbackPause:n(533),playbackPauseOrResume:n(314),playbackRateChange:n(673),playbackPreRateChange:"playbackPreRateChange",playbackEndInner:n(693),playbackEnd:"playbackEnd",playVodStats:n(638),playVodPause:n(312),playVodPauseOrResume:"playVodPauseOrResume",playVodRateChange:"playVodRateChange",playVodTime:n(569),playVodBufferedTime:n(582),playVodTimeCache:n(448),playVodSeek:n(467),playVodSeeking:n(538),playVodSeekEnd:n(326),playVodVideoSeekingByMse:n(362),playVodVideoSeekedByMse:n(621),playVodCanplay:n(256),playVodWaiting:n(390),playVodEndedAndReplay:n(251),playVodEnded:n(289),ptz:n(593),streamQualityChange:n(512),visibilityChange:n(328),netBuf:n(462),close:"close",networkDelayTimeout:n(596),togglePerformancePanel:n(594),viewResizeChange:"viewResizeChange",flvDemuxBufferSizeTooLarge:"flvDemuxBufferSizeTooLarge",talkGetUserMediaSuccess:n(373),talkGetUserMediaFail:"talkGetUserMediaFail",talkGetUserMediaTimeout:n(234),talkStreamStart:"talkStreamStart",talkStreamOpen:n(608),talkStreamClose:"talkStreamClose",talkStreamError:n(667),talkStreamInactive:n(715),talkStreamMsg:n(355),webrtcDisconnect:n(287),webrtcFailed:n(293),webrtcClosed:"webrtcClosed",webrtcChecking:n(547),webrtcConnected:n(540),webrtcCompleted:"webrtcCompleted",webrtcOnConnectionStateChange:n(439),webrtcOnIceConnectionStateChange:n(643),crashLog:n(228),focus:n(535),blur:"blur",inView:n(480),visibilityHiddenTimeout:"visibilityHiddenTimeout",websocketOpen:n(459),websocketClose:n(508),websocketError:n(413),websocketStringMsg:n(590),aiObjectDetectorInfo:"aiObjectDetectorInfo",aiFaceDetectorInfo:n(567),aiOcclusionDetectResult:n(273),aiImageDetectResult:"aiImageDetectResult",playFailedAndPaused:"playFailedAndPaused",audioResumeState:n(236),webrtcStreamH265:n(272),flvMetaData:n(566),talkFailedAndStop:"talkFailedAndStop",removeLoadingBgImage:n(277),memoryLog:n(545),downloadMemoryLog:n(571),pressureObserverCpu:"pressureObserverCpu",currentPts:n(524),online:n(325),offline:n(387),networkState:n(408),clickInitPlayer:"clickInitPlayer",audioSplitBuffer:"audioSplitBuffer"};n(315),n(503),n(458),n(226),n(491),n(250),n(496),n(548),n(357),n(259),n(595),n(432),n(266),n(386),n(352),n(616),n(708),n(492),n(337),n(403),n(351),n(314),n(656),n(450),n(303),n(467),n(538),n(326),n(593),n(512),n(685),n(228),n(535),n(328),n(459),n(508),n(590),n(567),n(273),n(699),n(600),n(397),n(439),n(524),n(336),n(383),n(627),n(555),n(393),n(234),n(265),n(355),n(315),n(320),n(441),n(361),n(458),n(226),n(491),n(250),n(496),n(357),n(577),n(337),n(228),n(459),n(699),n(236);n(667),n(393);n(263),n(481),n(258),n(645),n(284),n(407),n(418),n(589),n(327),n(443),n(331),n(313),n(290),n(479),n(372),n(239),n(245),n(601),n(363),n(453),n(359),n(591),n(281),n(469),n(702),n(396),n(484),n(639),n(625),n(454),n(675),n(242),n(282),n(634),n(554),n(617),n(716),n(498),n(600),n(578),n(548),n(250),n(532),n(468),n(515),n(523),n(463),n(457),n(333),n(294),n(560),n(361),n(323),n(598),n(700),n(618),n(576),n(576),n(568),n(472);const b={h264:7,h265:12,mpeg4:99};n(568),n(476);const _={AAC:10,ALAW:7,MULAW:8,MP3:2,OPUS:13,G711A:7,G711U:8};n(244),n(670),n(714),n(244),n(583),n(622);n(604),n(489),n(237),n(539),n(640),n(537),n(607),n(224),n(292),n(619),n(560),n(605),n(395),n(653),n(692),n(697),n(478),n(366),n(344),n(395),n(531),n(692),n(506),n(305),n(641),n(648),n(511),n(248),n(305),n(442),n(687),n(444),n(564),n(381),n(657),n(485),n(505),n(536),n(227),n(304),n(246),n(694),n(711),n(426);n(321),n(542),n(612);n(394),n(435),n(570),n(661),n(649),n(301),n(229),n(713),n(329),n(270),n(461),n(380),n(473);const E={h264:n(630),h265:n(581),av1:n(544)};n(311),n(493),n(428),n(449),n(377),n(585),n(382),n(332),n(332),n(342),n(691),n(658),n(398);const S={sequenceHeader:0,nalu:1};function k(){const e=["down","1-1","websocketClose","fetchClose","videoSyncAudio","left-down","streamQualityChange","mouseDownAndUp","outbound-rtp","failedToAsynchronouslyPrepareWasm","flvScriptData","decoderWorkerInit","mseWorkerAddSourceBufferError","resetAudioDecode","请求结束","video自动渲染失败","vertical","playVodMp4Error","currentPts","webrtc不支持H265","notSupportNewWasm","checkFirstIFrame","MEDIA_ERR_ABORTED","0000000000","seeking","tenMin","fullscreenError","playbackPause","playbackTimeScroll","focus","focusFar","key","playVodSeeking","offscreen","webrtcConnected","/crypto/","g711u","Simd","av1","memoryLog","white","webrtcChecking","delayTimeout","NotAllowedError","resetVideoDecode","初始化解码器失败","track","webrtc","videoElementPlayingFailedForWebrtc","clickInitPlayer","1152123plXAHu","sender","wasm解码失败","保存日志","open","play() failed because the user didn't interact with the document first","tcp","4-1","fiStop","updateConfig","flvMetaData","aiFaceDetectorInfo","H264(AVC)","playVodTime","sourceopen","downloadMemoryLog","sendMessage","首帧解码超时","demuxed-track","ghostWatermarkConfig","blob","mute","websocket1006Error","mp3","3-4","hevc","playVodBufferedTime","ALAW","webrtc-closed","HEVC decoding is not supported","videoRenderSupportScale","simdDecodeError","webm","webcodecsAudioInitTimeout","websocketStringMsg","webrtcError","small","ptz","togglePerformancePanel","pause","networkDelayTimeout","playVod","buffering","请求失败","streamEnd","mediaSourceUseCanvasRenderPlayFailed","videoWaiting","Webrtc","webcodecs","closed","jtt",'video/mp4; codecs="hev1.1.6.L123.b0"',"talkStreamOpen","websocket","streamVbps","人脸识别激活","opus","self","性能面板激活","audio packet","recordCreateError","decoderWorkerInitError","base64","ended","jessibuca-pro-mp4-recorder-decoder.js","playVodVideoSeekedByMse","MULAW","metadata-parsed","closeEnd","widthOrHeightChange","switch-url-failed","drawingRectInfo","clearBuffer","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C(wasm%E5%86%85%E9%83%A8%E4%BC%9A%E6%9A%82%E5%81%9C%E8%A7%A3%E7%A0%81)%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","avc","csrc","MEDIA_ERR_NETWORK","nakedFlow","videoElementPlayingFailed","MEDIA_ERR_DECODE","isM7sCrypto","decoder-pro.js","playVodStats","wcsWidthOrHeightChange","mse","left-up","Unsupported audio format","webrtcOnIceConnectionStateChange","player","websocketOpenTimeout","decoder-pro-old.js","videoTimeUpdate","right-up","endstreaming","g711","video decode error","occlusionDetectActive","halfHour","video decoder initialization failed","warn","playbackShowPrecisionChange","zoomNarrow","paused","wcsDecodeError","playbackForwardMaxRateDecodeIFrame","startstreaming","remote-outbound-rtp","jbprov","人脸识别","heartTimeout","audioDecode","talkStreamError","alaw","streamAbps","ALAW(g711a)","fetchStream","worker","playbackRateChange","simdFFmpeg","flvDemuxBufferSizeTooLarge","loadstart","drawingRect","ttfb","isMpeg4","sendWsMessage","normal","物品识别激活","decoder-pro-audio.js","red","zooming","wasmError","leftDown","video","mseDecodeError","流异常","playing","fiveMin","playbackEndInner","fogOpen","缓冲区已满","faceDetectActive","one-hour","playerAudio","playFailedAndPaused","download","buffereos","webglAlignmentError","remote-candidate","close","controlSize","解码失败","mseSourceBufferFull","recordBlob","global","recordEnd","wiperOpen","899010vaDyTD","waiting","MULAW(g711u)","talkStreamInactive","decoderWorkerWasmError","multiMousemove","decoder-pro-hard.js",'video/mp4;codecs="hev1.2.4.L120.90"',"isWebrtc","start","focusNear","crashLog","canplay","383746mrmixC","isWebrtcForOthers","aacSequenceHeader","multiMouseout","talkGetUserMediaTimeout","Wasm","audioResumeState","webgpu","hls-manifest-loaded","mediaSourceAppendBufferError","hls-level-loaded","multiDragenter","audioChannelError","mseFirstRenderTime","AAC","mediaSourceTsIsMaxDiff","cruiseStop","fetch","right-down","isNakedFlow","loadingTimeout","playVodEndedAndReplay","fullScreenByStart","jbprovm","stream","debug","playVodCanplay","播放超时重播失败","fetchErrorWorker","play","mseSourceEndStreaming","mseSourceClose","stream-parsed","playIsNotPauseOrUrlIsNull","playAudio","talkFailedAndStop","performance","subtitle-playlist","mp4","iframeIntervalTs","ratechange","mseSourceStartStreaming","webrtcStreamH265","aiOcclusionDetectResult","record","退出全屏","isFmp4","removeLoadingBgImage","window","workerFetch","streamStats","webrtcClosed","webglContextLostError","webTransport","webcodecsDecodeError","遮挡物检查激活","watermarkConfig","webrtcDisconnect","recording","playVodEnded","mediaSourceDecoderConfigurationError","hls",'video/mp4;codecs="hev1.3.E.L120.90"',"webrtcFailed","notConnect","click","subtitle-segments","20251201","widthOrHeightChangeReplayDelayTime","decoder-pro-hard-not-wasm.js","data-channel","qualitychange","关闭电子放大","playVodRateChange","cruiseStart","left","playbackJustTime","加载超时重播失败","aliyunRtc","sourcebuffer-created","buffer","A key frame is required after configure() or flush()","playVodPause","mediaSourceAudioNoDataTimeout","playbackPauseOrResume","load","44504QGuFrD","性能面板","Error Domain=NSOSStatusErrorDomain","simdDecodeDelayTimeout","timeUpdate","g711a","M7S","empty","audioCode","online","playVodSeekEnd","webcodecsAudioNoDataTimeout","visibilityChange","timeupdate","1084740QmZVta","mediaSourceAudioG711NotSupport","AbortError","mp4Error","videoCodec","videoFrame","videoSmooth","playToRenderTimes","FSimd","inbound-rtp","defaultStreamQuality","m7s","loading","certificate","5min","初始化音频解码器失败","objectDetectActive","mov","电子放大","idle","none","playbackTimestamp","recordStart","complete","629368VuzBXG","talkStreamMsg","message","delayTimeoutRetryEnd","canvas","hlsError","imageDetectActive","error","playVodVideoSeekingByMse","wasmUseVideoRenderError","flv","mpeg4","10min","rtp","container","5850152NMJIFd","fullscreen$2","connecting","mseAddSourceBufferError","talkGetUserMediaSuccess","seeked","default","videoSEI","Decoder error","mseSourceended","初始化worker失败","progress","zoomExpand","The user aborted a request","volume","videoSequenceHeader","log","recordingTimestamp","offline","load-start","multiMouseup","playVodWaiting","mseSourceOpen","remote-inbound-rtp","talkStreamClose","image/png","oneHour","wasmWidthOrHeightChange","videoSEISyncPts","destroy","codec","worklet","mseSourceBufferBusy","mtStreamStats","playbackStats","audioAACSequenceHeader","decode","遮挡物检查","webcodecsUnsupportedConfigurationError","networkState","object","sei","load-complete","multiIndex","websocketError","isHls","audioNalu","isDropping","loadeddata","webcodecsDecodeConfigureError","FLV待解封装buffer过大","webrtc-disconnected","load-response-headers","FLV","videoPayload","destroyEnd","FMP4","wiperClose","volumechange","Decoder failure","remove-buffer","HLS","webrtc-checking","stats","webFullscreen","playbackTF","sourceclose","sei-in-time","multiDblSelected","isWebrtcForSRS","webrtcOnConnectionStateChange","75SglrIA","audioInfo","leftUp","mediaSourceH265NotSupport","rightUp","videoDecode","webrtc-connected","initVideoCodec","playVodTimeCache","Decoding error","playVodPauseOrResume","load-retry","解析视频分辨率失败","simdH264DecodeVideoWidthIsTooLarge","tallWebsocketClosedByError","flvBufferData","isTs","playVodMseDecodeVideoError","kBps","websocketOpen","tempStream","stalled","netBuf","playVodFlvError","streamError","pcm","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","playVodSeek","mseWaitVideoCanplayTimeout","webrtcIceCandidateError","flv-script-data","wasm","MPEG4","loadedmetadata","playbackSeek","streamEndInner","H265(HEVC)","candidate-pair","30min","mseSourceBufferError","inView","fetchError","webrtc-failed","mseHandle","mseWidthOrHeightChange","apertureFar","initAudio","init","WebTransport","webgl","webrtc-completed","timeout","recordCancel","Unsupported configuration","audioPayload","playbackPrecision","loadingTimeoutRetryEnd","不支持硬解码H265","videoInfoError","pauseAndNextPlayUseLastFrameShow","replayUseLastFrameShow","render","停止录制","videoInfo","MediaSource解码使用canvas渲染失败","apertureNear"];return(k=function(){return e})()}const C={keyFrame:1,interFrame:2};n(323),n(367),n(606),n(562);n(254),n(704),n(356);n(400);n(321),n(562),n(529),n(655),n(400),n(400),n(437),n(233),n(389),n(222),n(241),n(563),n(507),n(580),n(368),n(688),n(698),n(655),n(247),n(296),n(238),n(240),n(574),n(470),n(623),n(678),n(451),n(388),n(411),n(421),n(410),n(436),n(429),n(701),n(309),n(626),n(267),n(262),n(349),n(371),n(598),n(353),n(528),n(632),n(635),n(654),n(615),n(642),n(561),n(651),n(318),n(549),n(477),n(343),n(399),n(631),n(300),n(339),n(514),n(703),n(392),n(662),n(557),n(552),n(689),n(659),n(668),n(579),n(612),n(431),n(446),n(490),n(420),n(482),n(584),n(342),typeof window===n(409)&&window[n(278)]===window?window:typeof self===n(409)&&self[n(613)]===self?self:"object"==typeof global&&global[n(709)]===global&&global,n(353),n(619),n(361),n(417),n(676),n(595),n(259),n(691),n(380),n(374),n(530),n(329),n(427),n(713),n(275),n(502),n(348),n(302),n(317),n(614),n(664),n(611),n(682),n(406),n(285),n(559);const A={wasm:n(235),simd:n(543),fSimd:n(338)};n(466),n(629);var T,I=P;function P(e,t){var r=D();return(P=function(e,t){return r[e-=421]})(e,t)}function D(){var e=["webkitCurrentFullScreenElement","webkitFullscreenElement","exitFullscreen","length","3703836lTrdHc","8USwvCK","1900752oepMEm","mozRequestFullScreen","undefined","5FsjBpx","fullscreenchange","then","msRequestFullscreen","documentElement","16KSejJV","off","msExitFullscreen","webkitExitFullscreen","webkitfullscreenchange","exports","error","fullscreenerror","mozCancelFullScreen","removeEventListener","webkitRequestFullscreen","screenfull","msFullscreenElement","4300010ZSQAwH","requestFullscreen","object","bind","3sRkLZY","msFullscreenEnabled","mozFullScreenElement","webkitFullscreenEnabled","755444uxhwiW","webkitCancelFullScreen","fullscreenElement","8355650OncoUF","9tOvFlc","change","catch","document","MSFullscreenError","defineProperties","fullscreenEnabled","isEnabled","52aNoLXE","6049967oqnMQW","29390aAOgAd","webkitfullscreenerror","isFullscreen","mozfullscreenerror"];return(D=function(){return e})()}!function(e,t){for(var r=P,n=e();;)try{if(493093===parseInt(r(441))/1*(-parseInt(r(423))/2)+parseInt(r(458))/3*(parseInt(r(462))/4)+-parseInt(r(436))/5*(parseInt(r(433))/6)+-parseInt(r(422))/7*(-parseInt(r(432))/8)+-parseInt(r(466))/9*(-parseInt(r(465))/10)+parseInt(r(454))/11+-parseInt(r(431))/12*(parseInt(r(421))/13))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(D),(function(e){var t,r,n,o,a,i;t=P,r=typeof window!==t(435)&&typeof window[t(469)]!==t(435)?window.document:{},n=t(456)!==t(435)&&e[t(446)],o=function(){for(var e,n=t,o=[[n(455),n(429),n(464),n(472),"fullscreenchange",n(448)],[n(451),n(444),n(428),n(461),n(445),n(424)],["webkitRequestFullScreen",n(463),n(427),n(463),n(445),n(424)],[n(434),n(449),n(460),"mozFullScreenEnabled","mozfullscreenchange",n(426)],[n(439),n(443),n(453),n(459),"MSFullscreenChange",n(470)]],a=0,i=o.length,s={};a<i;a++)if((e=o[a])&&e[1]in r){for(a=0;a<e[n(430)];a++)s[o[0][a]]=e[a];return s}return!1}(),a={change:o[t(437)],error:o[t(448)]},i={request:function(e,t){return new Promise(function(n,a){var i=P,s=function(){var e=P;this[e(442)](e(467),s),n()}[i(457)](this);this.on("change",s);var d=(e=e||r[i(440)])[o[i(455)]](t);d instanceof Promise&&d[i(438)](s).catch(a)}.bind(this))},exit:function(){return new Promise(function(e,t){var n=P;if(this[n(425)]){var a=function(){var t=n;this[t(442)](t(467),a),e()}[n(457)](this);this.on(n(467),a);var i=r[o[n(429)]]();i instanceof Promise&&i[n(438)](a)[n(468)](t)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){var r=t;this.on(r(447),e)},on:function(e,t){var n=a[e];n&&r.addEventListener(n,t,!1)},off:function(e,n){var o=a[e];o&&r[t(450)](o,n,!1)},raw:o},o?(Object[t(471)](i,{isFullscreen:{get:function(){return Boolean(r[o[t(464)]])}},element:{enumerable:!0,get:function(){return r[o[t(464)]]}},isEnabled:{enumerable:!0,get:function(){return Boolean(r[o[t(472)]])}}}),n?e.exports=i:window[t(452)]=i):n?e[t(446)]={isEnabled:!1}:window[t(452)]={isEnabled:!1}}(T={exports:{}},T.exports),T.exports)[I(473)];const $=F;function F(e,t){const r=R();return(F=function(e,t){return r[e-=180]})(e,t)}function R(){const e=["1226817LMFmDE","1162692AQrifW","subarray","9674872hXHPCs","467010TJQhmX","7luzgVo","_fillCurrentWord","_buffer","error","_buffer_index","_current_word","readByte","6YpoSBo","ExpGolomb: readBits() bits exceeded max 32bits!","_total_bytes","readBool","set","3858090DJLUli","_total_bits","min","buffer","150548hJyOjp","destroy","readUEG","ExpGolomb: _fillCurrentWord() but no bytes available","_skipLeadingZero","byteLength","getUint32","_current_word_bits_left","readBits","4744388uQCDyM"];return(R=function(){return e})()}!function(e,t){const r=F,n=e();for(;;)try{if(842641===parseInt(r(194))/1+-parseInt(r(184))/2+parseInt(r(195))/3+-parseInt(r(193))/4+parseInt(r(180))/5*(-parseInt(r(206))/6)+parseInt(r(199))/7*(parseInt(r(197))/8)+parseInt(r(198))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(R);class B{constructor(e){const t=F;this[t(201)]=e,this[t(203)]=0,this[t(208)]=e[t(189)],this[t(181)]=8*e.byteLength,this._current_word=0,this[t(191)]=0}[$(185)](){this[$(201)]=null}[$(200)](){const e=$;let t=this[e(208)]-this[e(203)];if(t<=0)return void console[e(202)](e(187),this[e(208)],this[e(203)]);let r=Math[e(182)](4,t),n=new Uint8Array(4);n[e(210)](this[e(201)][e(196)](this._buffer_index,this[e(203)]+r)),this[e(204)]=new DataView(n[e(183)])[e(190)](0,!1),this[e(203)]+=r,this[e(191)]=8*r}[$(192)](e){const t=$;if(e>32&&console[t(202)](t(207)),e<=this[t(191)]){let r=this._current_word>>>32-e;return this[t(204)]<<=e,this._current_word_bits_left-=e,r}let r=this[t(191)]?this._current_word:0;r>>>=32-this[t(191)];let n=e-this[t(191)];this[t(200)]();let o=Math.min(n,this[t(191)]),a=this[t(204)]>>>32-o;return this._current_word<<=o,this._current_word_bits_left-=o,r=r<<o|a,r}[$(209)](){return 1===this.readBits(1)}[$(205)](){return this[$(192)](8)}[$(188)](){const e=$;let t;for(t=0;t<this[e(191)];t++)if(0!=(this[e(204)]&2147483648>>>t))return this[e(204)]<<=t,this[e(191)]-=t,t;return this[e(200)](),t+this[e(188)]()}[$(186)](){let e=this[$(188)]();return this.readBits(e+1)-1}readSEG(){let e=this[$(186)]();return 1&e?e+1>>>1:-1*(e>>>1)}}const M=O;!function(e,t){const r=O,n=e();for(;;)try{if(711516===parseInt(r(460))/1*(parseInt(r(473))/2)+parseInt(r(470))/3+parseInt(r(458))/4*(-parseInt(r(448))/5)+parseInt(r(496))/6*(-parseInt(r(464))/7)+-parseInt(r(445))/8*(-parseInt(r(463))/9)+-parseInt(r(459))/10+-parseInt(r(486))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(x);const W=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350,-1,-1,-1];function U(e){const t=O;return function(e){const t=O;return e[0]>>4===_[t(506)]}(e)&&e[1]===S[t(452)]}function O(e,t){const r=x();return(O=function(e,t){return r[e-=442]})(e,t)}M(442),M(457),M(477);function x(){const e=["read",". Only frameLengthType = 0 Supported","Flv: AAC invalid channel configuration","1912oDxJrk","readNextAACFrame","other_data_present","1403715nRDaLs","mp4a.40.2","bufoff","getLATMValue","sequenceHeader","firefox","audio_object_type","chan_config","findNextSyncwordOffset","look","4CybRvQ","13922560bLctlQ","6WLFFAP","Invalid sampling index: ","profile: ","46323JiHmLw","7uHisSG","slice","sbr","more than 2 numLayer Not Supported","log","buffer","3001497qTUsRD","readByte","sampleRate: ","279906xQUutc","error","Could not found ADTS syncword until payload end","current_syncword_offset_","read_golomb","byteLength","ext_object_type","readBool","userAgent","sample_rate","set","StreamMuxConfig Missing","unshift","4624004YvKVqw","object_type","getIncompleteData","length","channel: ","eof_flag_","audioMuxVersionA is Not Supported","has_last_incomplete_data","frameLengthType = ","iserro","1592826eGiRrI","aacEncoderConfigurationRecord","sampling_freq_index","Flv: AAC invalid sampling frequency index!","push","toLowerCase","buflen","indexOf","channels","warn","AAC","bufpos","aac","readBits","data","sampling_index","destroy","sampling_frequency","channel_config","data_","subarray","hasIncompleteData","more than 2 numSubFrames Not Supported","mp4a.40."];return(x=function(){return e})()}M(456),M(446),M(517),M(488);M(451),M(446),M(517),M(488);function V(){const e=["8320740ZceEsQ","5780145oFZtkb","1446hWewTE","byteLength","3883qQPjMT","2024136khgqaf","buffer","7010vbwbwo","set","69wexVko","toString","4049688KwJvVg","9gEaiBr","18aIDBtk","subarray","length","40234cefbTL","push","28570jrwHvS"];return(V=function(){return e})()}function L(e,t){const r=V();return(L=function(e,t){return r[e-=289]})(e,t)}!function(e,t){const r=L,n=e();for(;;)try{if(774940===-parseInt(r(302))/1*(-parseInt(r(290))/2)+parseInt(r(305))/3*(parseInt(r(298))/4)+-parseInt(r(292))/5*(parseInt(r(295))/6)+-parseInt(r(294))/7+-parseInt(r(304))/8*(-parseInt(r(306))/9)+parseInt(r(300))/10*(-parseInt(r(297))/11)+-parseInt(r(293))/12)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(V);const j=X;function H(){const e=X;return(new Date)[e(586)]()}!function(e,t){const r=X,n=e();for(;;)try{if(454343===parseInt(r(707))/1*(parseInt(r(788))/2)+parseInt(r(699))/3+parseInt(r(565))/4*(-parseInt(r(609))/5)+-parseInt(r(807))/6+parseInt(r(667))/7+parseInt(r(718))/8*(-parseInt(r(654))/9)+-parseInt(r(588))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Q),(()=>{const e=X;try{if(typeof WebAssembly===e(703)&&"function"==typeof WebAssembly[e(780)]){const t=new(WebAssembly[e(721)])(Uint8Array.of(0,97,115,109,1,0,0,0));if(t instanceof WebAssembly.Module)return new(WebAssembly[e(787)])(t)instanceof WebAssembly.Instance}}catch(e){}})();const N=j(802);j(518),j(490);const z=N===j(740);j(729);function G(e){return e&&typeof e===j(515)}function q(e){const t=j;return e[0]>>4===C[t(773)]&&e[1]===S[t(692)]}function J(e){return!0!==e&&e!==j(823)}function X(e,t){const r=Q();return(X=function(e,t){return r[e-=480]})(e,t)}function Q(){const e=["setUint32","text","application/javascript","getUint8","validate","right","copyToChannel","firefox","canConstructInDedicatedWorker","font","craNut","nLp","user-select","kSliceRSV_IRAP_VCL22","now","join","iFrame","video","onerror","function","scrollLeft","dispatchEvent",'"2.1.4"',"VideoEncoder is not supported","hev1.1.6.L120.90","ended","application/vnd.chromium.remoting-viewer","none","0 KB/s","B/s","MULAW","charCodeAt","hev","indexOf","stringify","createBuffer","noteOn","not compiled with thread support, using thread emulation","getContext","requestVideoFrameCallback","clientX","keys","application/mozilla-npqihooquicklogin","lineWidth","fromCharCode","EB/s","min","string","Edg","resume","filter","apply","set","text/javascript","max","top","mseDecodeAudio","f32-planar","dataset","getAttribute","content","Chrome","document","isTypeSupported","trim","canvas","getParameter","Safari","QihooBrowser","1877292xOCVWF","sampleRate","supported","setUint16","wow32","MB/s","removeChild","pageY","[object Number]","getUserMedia","-webkit-touch-callout","h265","data-","clearRect","destination","Bytes","initEvent","innerHTML","createImageBitmap","file","restore","getTime","div","982350bMMeXY","endsWith","display","performance","getImageData","protocol","error","canPlayType","application/360softmgrplugin","GB/s","getFullYear","application/hwepass2001.installepass2001","overflow","isView","pow","test","pathname","version","MediaSource","high","then","5XqbrTs","pageX","setHours","[object Error]","transferControlToOffscreen","-ms-user-select","hev3","data:","opacity","RIFF","target","useOffscreen","hour","hasAudio","msGetUserMedia","Anonymous","URL","AudioDecoder","drawImage","scrollTop","height","memory","100","event","toString","charAt","random","toLowerCase","block","img","addModule","VideoDecoder","solid","webgl2","showModalDialog","createEvent","push","isEnabled","log","host","h264","split","MediaStream","Firefox","localhost","1836fhkWtF","Edge","getSeconds","360SE","substr","getHours","forEach","audioWorklet","atob","style","QHBrowser","If you want to help, upload a sample of this file to","setInt8","4404127wrUGCt","mediaDevices","container","attachShadow","mouseup","webkit-3d","revokeObjectURL","createBufferSource","sps","message","undefined","position","location","toDataURL","start","pps","image","crossOrigin","QQBrowser","useWCS","imageSmoothingEnabled","status","hidden","numberOfChannels","match","sequenceHeader","data","hev2","assign","second","ManagedMediaSource","visibility","1392282SSZtCv","createObjectURL","backgroundColor","-moz-user-select","object","xxxx","element","px 宋体","4513RXBQYv","href","NaN","navigator","fullscreenElement","application/vnd.apple.mpegurl","WebGL2RenderingContext","setInt32","touches","clientY","onload","32576FVXZSZ","hash","MouseEvents","Module","px Arial","click","result","Opera","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","KB/s","line",'"2025-4-1"',"rgba(0,0,0,0)","substring","webkitFullscreenElement","toFixed","green","rect","100%","length","origin","close",'"delaytime"',"vps","PressureObserver","isFullscreen","avc1.","win32","width","borderColor","touchmove","format","angle","Reserved SBR extensions is not implemented","mousemove","toUpperCase","port","experimental-webgl","userAgent","isConfigSupported","round","wow64","quality","360EE","useMSE","chrome","byteLength","readAsArrayBuffer","win64","color","src","webgl","hev5","left","AAC","keyFrame","absolute","prototype","getElementById","save","green yuv","-webkit-tap-highlight-color","instantiate","borderWidth","borderStyle","edge","kSliceRSV_IRAP_VCL23","html","imageSmoothingQuality","Instance","356BnWnTo","srcElement","appendChild","getDay","getPropertyValue","-webkit-user-select","#000","copyright","download","repeat","floor",'video/mp4; codecs="',"msFullscreenElement","webkitGetUserMedia",'"production"',"numberOfFrames","VideoFrame","setAttribute","replace","263880aoJIBE","fontSize","script","strokeStyle","fillText","children","objectFit","bottom","Worker","kSliceBLA_N_LP","ZB/s","YB/s","insertBefore","setUint8",";base64","slice","true","demuxUseWorker","connect","360","putImageData","subarray","shadowRoot","application/asx","AudioData","createElement","fillStyle","contain","kSliceBLA_W_RADL",'"2-26-2025"',"[object DOMException]","body","type","search","safari"];return(Q=function(){return e})()}const K=Z;function Y(){const e=["14847260LJmjPj","push","9SfhQNm","off","39698EXIzhA","slice","length","439788yWWmRr","414UfJrRm","4086548TsFcJT","forEach","10289493yUrMJW","24OKxygS","11xQtEpm","ctx","8035noOUsd","apply","keys","660415PMFWiK","emit"];return(Y=function(){return e})()}function Z(e,t){const r=Y();return(Z=function(e,t){return r[e-=299]})(e,t)}!function(e,t){const r=Z,n=e();for(;;)try{if(934879===-parseInt(r(303))/1+-parseInt(r(300))/2*(parseInt(r(318))/3)+-parseInt(r(305))/4+-parseInt(r(311))/5*(-parseInt(r(304))/6)+-parseInt(r(314))/7*(parseInt(r(308))/8)+parseInt(r(307))/9+-parseInt(r(316))/10*(-parseInt(r(309))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Y);class ee{on(e,t,r){const n=Z,o=this.e||(this.e={});return(o[e]||(o[e]=[]))[n(317)]({fn:t,ctx:r}),this}once(e,t,r){const n=this;function o(){const a=Z;n[a(299)](e,o);for(var i=arguments[a(302)],s=new Array(i),d=0;d<i;d++)s[d]=arguments[d];t[a(312)](r,s)}return o._=t,this.on(e,o,r)}[K(315)](e){const t=K,r=((this.e||(this.e={}))[e]||[])[t(301)]();for(var n=arguments[t(302)],o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];for(let e=0;e<r[t(302)];e+=1)r[e].fn.apply(r[e][t(310)],o);return this}[K(299)](e,t){const r=K,n=this.e||(this.e={});if(!e)return Object[r(313)](n)[r(306)]((e=>{delete n[e]})),void delete this.e;const o=n[e],a=[];if(o&&t)for(let e=0,n=o[r(302)];e<n;e+=1)o[e].fn!==t&&o[e].fn._!==t&&a[r(317)](o[e]);return a.length?n[e]=a:delete n[e],this}}const te=oe;!function(e,t){const r=oe,n=e();for(;;)try{if(287836===parseInt(r(480))/1+-parseInt(r(487))/2*(parseInt(r(470))/3)+parseInt(r(472))/4+-parseInt(r(478))/5*(parseInt(r(471))/6)+parseInt(r(468))/7*(-parseInt(r(477))/8)+parseInt(r(464))/9+-parseInt(r(466))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ae);const re={init:0,findFirstStartCode:1,findSecondStartCode:2};class ne extends ee{constructor(e){const t=oe;super(),this[t(492)]=e,this[t(483)]=!1,this[t(479)]()}[te(481)](){const e=te;this.isDestroyed=!1,this.off(),this[e(479)]()}[te(479)](){const e=te;this.stats=re[e(490)],this[e(486)]=new Uint8Array(0),this[e(475)]=0,this[e(489)]=0}[te(465)](e,t){const r=te;let n=new Uint8Array(this.tempBuffer[r(467)]+e[r(467)]);for(n[r(476)](this[r(486)],0),n[r(476)](e,this[r(486)][r(467)]),this[r(486)]=n;!this[r(483)];){if(this.state==re[r(474)]){let e=!1;for(;this[r(486)].length-this[r(475)]>=2&&!this[r(483)];)if(255==this[r(486)][this[r(475)]]){if(!(!1&this.tempBuffer[this[r(475)]+1])){this[r(489)]=this[r(486)][this[r(475)]+1],this[r(488)]=re.findFirstStartCode,this[r(482)]=this[r(475)],this.parsedOffset+=2,e=!0;break}this[r(475)]++}else this[r(475)]++;if(e)continue;break}if(this[r(488)]==re[r(491)]){let e=!1;for(;this[r(486)][r(467)]-this[r(475)]>=2&&!this.isDestroyed;)if(255==this[r(486)][this[r(475)]]){if(this[r(486)][this[r(475)]+1]==this.versionLayer){this[r(488)]=re[r(469)],this.secondStartCodeOffset=this[r(475)],this[r(475)]+=2,e=!0;break}this[r(475)]++}else this[r(475)]++;if(e)continue;break}if(this[r(488)]==re.findSecondStartCode){let e=this[r(486)][r(485)](this[r(482)],this.secondStartCodeOffset);this[r(484)](r(473),e,t),this[r(486)]=this[r(486)][r(485)](this.secondStartCodeOffset),this.fisrtStartCodeOffset=0,this[r(475)]=2,this[r(488)]=re.findFirstStartCode}}}}function oe(e,t){const r=ae();return(oe=function(e,t){return r[e-=464]})(e,t)}function ae(){const e=["versionLayer","init","findFirstStartCode","player","4495905UYTKDp","dispatch","4599340xpuQYq","length","2471MsXuwi","findSecondStartCode","18kqDieR","6nXJmBL","5180XFOYfe","data","Init","parsedOffset","set","4136CHhIWa","605525kiCJls","reset","551910psCEYP","destroy","fisrtStartCodeOffset","isDestroyed","emit","slice","tempBuffer","458XzzNEg","state"];return(ae=function(){return e})()}const ie=le;function se(){const e=["24fUwbOr","getProfileString","3828680biHhOs","495455tPPNBc","7qnRjcp","High444","parseSPS$2","toFixed","158412WuWYBQ","readBits","4:4:4","avc1.","byteLength","543132UlNVWJ","17757oOeMvk","Main","readUEG","1636269wHgSmS","High422","44lvpQnJ","readBool","Baseline","getLevelString","_skipScalingList","High","getChromaFormatString","readSEG","destroy","1370yJewBP","4825512rwcAff","High10","4:2:0","buffer","readByte","subarray","_ebsp2rbsp","4sEWbgv","Unknown"];return(se=function(){return e})()}!function(e,t){const r=le,n=e();for(;;)try{if(828572===parseInt(r(307))/1+parseInt(r(297))/2*(parseInt(r(316))/3)+-parseInt(r(328))/4+parseInt(r(302))/5*(parseInt(r(299))/6)+parseInt(r(303))/7*(parseInt(r(301))/8)+parseInt(r(313))/9*(-parseInt(r(327))/10)+parseInt(r(318))/11*(parseInt(r(312))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(se);class de{static[ie(296)](e){const t=ie;let r=e,n=r[t(311)],o=new Uint8Array(n),a=0;for(let e=0;e<n;e++)e>=2&&3===r[e]&&0===r[e-1]&&0===r[e-2]||(o[a]=r[e],a++);return new Uint8Array(o[t(293)],0,a)}static parseSPS(e){const t=ie;let r=de[t(296)](e),n=new B(r);n[t(294)]();let o=n[t(294)]();n[t(294)]();let a=n[t(294)]();n[t(315)]();let i=de.getProfileString(o),s=de[t(321)](a),d=1,l=420,u=[0,420,422,444],c=8;if((100===o||110===o||122===o||244===o||44===o||83===o||86===o||118===o||128===o||138===o||144===o)&&(d=n[t(315)](),3===d&&n[t(308)](1),d<=3&&(l=u[d]),c=n[t(315)]()+8,n[t(315)](),n.readBits(1),n[t(319)]())){let e=3!==d?8:12;for(let r=0;r<e;r++)n[t(319)]()&&(r<6?de._skipScalingList(n,16):de[t(322)](n,64))}n.readUEG();let f=n[t(315)]();if(0===f)n[t(315)]();else if(1===f){n.readBits(1),n[t(325)](),n.readSEG();let e=n[t(315)]();for(let r=0;r<e;r++)n[t(325)]()}let p=n[t(315)]();n.readBits(1);let h=n[t(315)](),m=n.readUEG(),g=n.readBits(1);0===g&&n.readBits(1),n[t(308)](1);let v=0,y=0,w=0,b=0;n.readBool()&&(v=n[t(315)](),y=n[t(315)](),w=n[t(315)](),b=n[t(315)]());let _=1,E=1,S=0,k=!0,C=0,A=0;if(n[t(319)]()){if(n[t(319)]()){let e=n[t(294)](),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],o=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<16?(_=r[e-1],E=o[e-1]):255===e&&(_=n[t(294)]()<<8|n[t(294)](),E=n[t(294)]()<<8|n.readByte())}if(n[t(319)]()&&n[t(319)](),n[t(319)]()&&(n[t(308)](4),n[t(319)]()&&n.readBits(24)),n[t(319)]()&&(n[t(315)](),n.readUEG()),n.readBool()){let e=n.readBits(32),t=n.readBits(32);k=n.readBool(),C=t,A=2*e,S=C/A}}let T=1;(1!==_||1!==E)&&(T=_/E);let I=0,P=0;if(0===d)I=1,P=2-g;else{I=3===d?1:2,P=(1===d?2:1)*(2-g)}let D=16*(h+1),$=16*(m+1)*(2-g);D-=(v+y)*I,$-=(w+b)*P;let F=Math.ceil(D*T);return n.destroy(),n=null,{profile_string:i,level_string:s,bit_depth:c,ref_frames:p,chroma_format:l,chroma_format_string:de[t(324)](l),frame_rate:{fixed:k,fps:S,fps_den:A,fps_num:C},sar_ratio:{width:_,height:E},codec_size:{width:D,height:$},present_size:{width:F,height:$}}}static[ie(305)](e){const t=ie;let r=e[t(295)](1,4),n=t(310);for(let e=0;e<3;e++){let t=r[e].toString(16);t.length<2&&(t="0"+t),n+=t}let o=de[t(296)](e),a=new B(o);a.readByte();let i=a[t(294)]();a.readByte();let s=a[t(294)]();a[t(315)]();let d=de[t(300)](i),l=de[t(321)](s),u=1,c=420,f=[0,420,422,444],p=8,h=8;if((100===i||110===i||122===i||244===i||44===i||83===i||86===i||118===i||128===i||138===i||144===i)&&(u=a[t(315)](),3===u&&a.readBits(1),u<=3&&(c=f[u]),p=a[t(315)]()+8,h=a[t(315)]()+8,a.readBits(1),a[t(319)]())){let e=3!==u?8:12;for(let r=0;r<e;r++)a[t(319)]()&&(r<6?de[t(322)](a,16):de._skipScalingList(a,64))}a[t(315)]();let m=a.readUEG();if(0===m)a[t(315)]();else if(1===m){a[t(308)](1),a.readSEG(),a[t(325)]();let e=a[t(315)]();for(let r=0;r<e;r++)a[t(325)]()}let g=a[t(315)]();a[t(308)](1);let v=a[t(315)](),y=a.readUEG(),w=a.readBits(1);0===w&&a.readBits(1),a[t(308)](1);let b=0,_=0,E=0,S=0;a[t(319)]()&&(b=a[t(315)](),_=a[t(315)](),E=a[t(315)](),S=a.readUEG());let k=1,C=1,A=0,T=!0,I=0,P=0;if(a[t(319)]()){if(a[t(319)]()){let e=a[t(294)](),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],n=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<16?(k=r[e-1],C=n[e-1]):255===e&&(k=a[t(294)]()<<8|a.readByte(),C=a[t(294)]()<<8|a[t(294)]())}if(a[t(319)]()&&a[t(319)](),a[t(319)]()&&(a[t(308)](4),a[t(319)]()&&a[t(308)](24)),a.readBool()&&(a[t(315)](),a[t(315)]()),a[t(319)]()){let e=a[t(308)](32),r=a[t(308)](32);T=a[t(319)](),I=r,P=2*e,A=I/P}}let D=1;(1!==k||1!==C)&&(D=k/C);let $=0,F=0;if(0===u)$=1,F=2-w;else{$=3===u?1:2,F=(1===u?2:1)*(2-w)}let R=16*(v+1),M=16*(y+1)*(2-w);R-=(b+_)*$,M-=(E+S)*F;let W=Math.ceil(R*D);return a[t(326)](),a=null,{codec_mimetype:n,profile_idc:i,level_idc:s,profile_string:d,level_string:l,chroma_format_idc:u,bit_depth:p,bit_depth_luma:p,bit_depth_chroma:h,ref_frames:g,chroma_format:c,chroma_format_string:de[t(324)](c),frame_rate:{fixed:T,fps:A,fps_den:P,fps_num:I},sar_ratio:{width:k,height:C},codec_size:{width:R,height:M},present_size:{width:W,height:M}}}static[ie(322)](e,t){let r=8,n=8,o=0;for(let a=0;a<t;a++)0!==n&&(o=e.readSEG(),n=(r+o+256)%256),r=0===n?r:n}static[ie(300)](e){const t=ie;switch(e){case 66:return t(320);case 77:return t(314);case 88:return"Extended";case 100:return t(323);case 110:return t(291);case 122:return t(317);case 244:return t(304);default:return t(298)}}static[ie(321)](e){return(e/10)[ie(306)](1)}static[ie(324)](e){const t=ie;switch(e){case 420:return t(292);case 422:return"4:2:2";case 444:return t(309);default:return t(298)}}}function le(e,t){const r=se();return(le=function(e,t){return r[e-=291]})(e,t)}const ue=fe;function ce(){const e=["read_golomb","10IDNXdu","length","406KFJkYh","buffer","read","136902NKQWNb","575SjfWOR","9GlfbtP","iserro","11865480fSloJX","look","22640oMqYew","1331480UGFjxt","590595vtgEJW","44257334AdGGew","1526494lXdTwQ","buflen","bufoff","bufpos"];return(ce=function(){return e})()}function fe(e,t){const r=ce();return(fe=function(e,t){return r[e-=212]})(e,t)}!function(e,t){const r=fe,n=e();for(;;)try{if(891272===-parseInt(r(216))/1+parseInt(r(221))/2*(-parseInt(r(214))/3)+-parseInt(r(212))/4*(parseInt(r(227))/5)+parseInt(r(226))/6*(-parseInt(r(223))/7)+parseInt(r(213))/8*(parseInt(r(228))/9)+parseInt(r(230))/10+parseInt(r(215))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ce);ue(225),ue(231),ue(220);const pe=me;function he(){const e=["_word","byteLength","253NYuFfB","2185670SOeqNq","skipBits","6003536mGEseG","1238500AIJXYr","readBool","_bytesAvailable","set","1023BHdouE","floor","getUint32","buffer","skipLZ","264020gNVvpk","skipScalingList","266952QqMPtj","_loadWord","18akUAgx","subarray","Cannot read more than 32 bits","readUEG","min","skipUEG","_bitsAvailable","readBits","7AIrlMI","418cVqaKR","2045814rDRMuW","10vIcFgW","_data","readEG"];return(he=function(){return e})()}function me(e,t){const r=he();return(me=function(e,t){return r[e-=341]})(e,t)}!function(e,t){const r=me,n=e();for(;;)try{if(403726===-parseInt(r(354))/1+-parseInt(r(367))/2*(parseInt(r(349))/3)+-parseInt(r(345))/4*(parseInt(r(369))/5)+parseInt(r(368))/6*(-parseInt(r(366))/7)+parseInt(r(344))/8+parseInt(r(358))/9*(parseInt(r(342))/10)+-parseInt(r(341))/11*(-parseInt(r(356))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(he);pe(343),pe(365),pe(353),pe(363),pe(361),pe(371),pe(346),pe(355);const ge=we;function ve(){const e=["h264","1760QAgImr","setUint8","1035QOvpiA","height","present_size","profile_string","level_string","type","bit_depth_luma","log","iFrame","codecHeight","4146KFypUN","read_golomb","sps","byteLength","kSliceNonIDR","Could not find H264 startcode until payload end!","235680lPStVN","ceil","data","codec","eofFlag","1158802vGPyUk","length","correctionConfigurationVersion","getUint8","timescale","readUEG","setInt16","Invalid AVCDecoderConfigurationRecord version !== 1 || avcProfile === 0","findNextStartCodeOffset","codec_size","correctionConfigurationProfileIndication","skipUEG","codecWidth","fps_den","14vTefgg","frameRate","7231059MIMWqI","setUint32","skipBits","presentWidth","skipScalingList","level","toString","nb_sps"," Strange AVCDecoderConfigurationRecord: SPS Count = ","14410XyxTKt",", valid version is 1 and return","Invalid AVCDecoderConfigurationRecord: No SPS","frame_rate","316aNIBrK","videoType","bitDepth","kReserved0","error","getUint16","read","chroma_format","presentHeight","JbPro[xxx][✅✅✅][parseAVCDecoderConfigurationRecord] invalid version ","pps","1387434RzPHfj","shift","kSliceSEI","fps_num",", correct to 1","chromaFormat","48648NeRMWW","avc_ref_frames","push","chroma_format_idc","currentStartcodeOffset","width","bit_depth","subarray","Invalid AVCDecoderConfigurationRecord, lack of data!","set","fixed","readUByte","parseSPS$2","avcc","sarRatio","readBits","Invalid AVCDecoderConfigurationRecord, invalid version ","buffer","JbPro[xxx][✅✅✅][parseAVCDecoderConfigurationRecord] AVC profile (0) detected, correct to Baseline Profile (66)","readBool"];return(ve=function(){return e})()}function ye(e){const t=we;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let o=function(){let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}();const a=new DataView(e[t(452)]);let i=a[t(482)](0),s=a[t(482)](1);if(a[t(482)](2),a[t(482)](3),1!==i){if(!r[t(481)])return console[t(422)](t(451)+i+t(415)),{};{console[t(465)](t(427)+i+t(433));let e=252&a[t(482)](0)|1;a[t(457)](0,e)}}if(0===s){if(!r[t(399)])return console.error("Invalid parseAVCDecoderConfigurationRecord, AVC profile (0) detected, and return"),{};console[t(465)](t(453)),a.setUint8(1,66)}const d=1+(3&a[t(482)](4));if(3!==d&&4!==d)return{};let l=31&a[t(482)](5);if(0===l)return{};let u=6;for(let r=0;r<l;r++){let i=a[t(423)](u,!o);if(u+=2,0===i)continue;let s=new Uint8Array(e.buffer,u,i);u+=i;let d=de.parseSPS(s);if(0!==r)continue;n[t(470)]=s,n[t(483)]=1e3,n[t(401)]=d[t(398)][t(440)],n[t(467)]=d.codec_size[t(459)],n[t(408)]=d[t(460)][t(440)],n[t(426)]=d[t(460)][t(459)],n.profile=d[t(461)],n[t(410)]=d[t(462)],n[t(420)]=d[t(441)],n[t(434)]=d[t(425)],n.sarRatio=d.sar_ratio,n.frameRate=d[t(417)],(!1===d[t(417)][t(445)]||0===d.frame_rate.fps_num||0===d[t(417)][t(402)])&&(n[t(404)]={fixed:!0,fps:25,fps_num:25e3,fps_den:1e3});let l=n[t(404)].fps_den,c=n[t(404)][t(432)];n.refSampleDuration=n[t(483)]*(l/c);let f=s[t(442)](1,4),p="avc1.";for(let e=0;e<3;e++){let r=f[e][t(411)](16);r.length<2&&(r="0"+r),p+=r}n[t(477)]=p}let c=a[t(482)](u);if(0===c)return{};u++;for(let r=0;r<c;r++){let r=a[t(423)](u,!o);if(u+=2,0===r)continue;let i=new Uint8Array(e[t(452)],u,r);u+=r,n[t(428)]=i}if(n[t(419)]=E[t(455)],n[t(470)]){const e=n[t(470)].byteLength,r=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),o=new Uint8Array(e+4);o[t(444)](r,0),o[t(444)](n.sps,4),n[t(470)]=o}if(n.pps){const e=n[t(428)][t(471)],r=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),o=new Uint8Array(e+4);o[t(444)](r,0),o.set(n.pps,4),n[t(428)]=o}return n}function we(e,t){const r=ve();return(we=function(e,t){return r[e-=398]})(e,t)}!function(e,t){const r=we,n=e();for(;;)try{if(914095===parseInt(r(479))/1+-parseInt(r(429))/2+-parseInt(r(435))/3*(-parseInt(r(418))/4)+parseInt(r(458))/5*(parseInt(r(468))/6)+parseInt(r(403))/7*(parseInt(r(474))/8)+-parseInt(r(405))/9+-parseInt(r(456))/10*(parseInt(r(414))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ve);ge(487);const be=Ee;function _e(){const e=["GetUE","6sMGzoL","45RXmmDJ","164290WyfYEI","71916lxlIXS","2vDgqmg","1037827uVQMEv","2370160uDiIqD","GetSE","m_byte","GetBYTE","m_idx","GetBit","55pQqhdi","333990LnliBz","length","299067fyLbWa","m_bits","1004958CtCGZG","m_data","m_len","m_zeros"];return(_e=function(){return e})()}function Ee(e,t){const r=_e();return(Ee=function(e,t){return r[e-=308]})(e,t)}!function(e,t){const r=Ee,n=e();for(;;)try{if(222448===parseInt(r(316))/1+-parseInt(r(318))/2*(-parseInt(r(329))/3)+parseInt(r(317))/4*(parseInt(r(315))/5)+-parseInt(r(314))/6*(-parseInt(r(319))/7)+-parseInt(r(320))/8+parseInt(r(309))/9+parseInt(r(327))/10*(-parseInt(r(326))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(_e);be(323),be(325),be(313),be(321);function Se(e,t){const r=Ce();return(Se=function(e,t){return r[e-=283]})(e,t)}const ke=Se;function Ce(){const e=["458544GsRHDc","423203awrFAv","546680RUMayF","GetWord","SPSParser sps_max_sub_layers_minus1 > 6","3171555xLfVfH","15098TaJTGH","11833920qtmHRZ","69PIanhR","SPSParser sps_seq_parameter_set_id > 15","7fDYmHA","_ebsp2rbsp","52TEFBft","93430jCpMTg","buffer","warn","SPSParser chroma_format_idc > 3","GetUE","byteLength"];return(Ce=function(){return e})()}!function(e,t){const r=Se,n=e();for(;;)try{if(330414===-parseInt(r(292))/1+parseInt(r(297))/2*(parseInt(r(299))/3)+-parseInt(r(284))/4*(parseInt(r(285))/5)+-parseInt(r(291))/6*(parseInt(r(301))/7)+parseInt(r(293))/8+-parseInt(r(296))/9+parseInt(r(298))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ce);ke(283);function Ae(e,t){const r=Te();return(Ae=function(e,t){return r[e-=181]})(e,t)}function Te(){const e=["13560IJyBmi","buffer","636QhmHbG","5551511DiPBQL","destroy","9267248ktVSwX","4:2:0","1921740HKCNUW","readSEG","185061KxOMEo","push","readBool","292528GSexuX","min","293896PqOMAt","readBits","4:2:2","readUEG","readByte","Unknown",".1.L",".B0"];return(Te=function(){return e})()}!function(e,t){const r=Ae,n=e();for(;;)try{if(472351===-parseInt(r(195))/1+parseInt(r(193))/2+parseInt(r(190))/3+parseInt(r(188))/4+-parseInt(r(181))/5*(parseInt(r(183))/6)+-parseInt(r(184))/7+parseInt(r(186))/8)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Te);const Ie=Pe;function Pe(e,t){const r=De();return(Pe=function(e,t){return r[e-=150]})(e,t)}function De(){const e=["readBool","min","parsePPS","Unknown","4:2:2","9107532tmeiAj","2Bcmhrv","6838705mqXptf","1152804XBxEFH","278464dVukvI","SCC","parseSPS","12480950SXNUnq","push","1825077uQzqNF","4:2:0","getProfileString","readUEG","4jwGiHE",".B0","getLevelString","15588ntUFdB","6448wgZfSx","buffer","destroy","readByte","readBits","parseVPS","getChromaFormatString","byteLength","_ebsp2rbsp","Rext","4:4:4","hvc1.","Main10","readSEG"];return(De=function(){return e})()}!function(e,t){const r=Pe,n=e();for(;;)try{if(775921===-parseInt(r(181))/1*(-parseInt(r(178))/2)+parseInt(r(150))/3*(parseInt(r(154))/4)+-parseInt(r(179))/5+-parseInt(r(180))/6+parseInt(r(177))/7+-parseInt(r(158))/8*(-parseInt(r(157))/9)+-parseInt(r(184))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(De);class $e{static[Ie(166)](e){const t=Ie;let r=e,n=r[t(165)],o=new Uint8Array(n),a=0;for(let e=0;e<n;e++)e>=2&&3===r[e]&&0===r[e-1]&&0===r[e-2]||(o[a]=r[e],a++);return new Uint8Array(o[t(159)],0,a)}static[Ie(163)](e){const t=Ie;let r=$e[t(166)](e),n=new B(r);return n[t(161)](),n.readByte(),n.readBits(4),n[t(162)](2),n[t(162)](6),{num_temporal_layers:n[t(162)](3)+1,temporal_id_nested:n[t(172)]()}}static[Ie(183)](e){const t=Ie;let r=$e._ebsp2rbsp(e),n=new B(r);n[t(161)](),n[t(161)]();let o=0,a=0,i=0,s=0;n[t(162)](4);let d=n[t(162)](3);n[t(172)]();let l=n[t(162)](2),u=n.readBool(),c=n[t(162)](5),f=n[t(161)](),p=n[t(161)](),h=n[t(161)](),m=n.readByte(),g=n[t(161)](),v=n[t(161)](),y=n[t(161)](),w=n[t(161)](),b=n[t(161)](),_=n[t(161)](),E=n[t(161)](),S=[],k=[];for(let e=0;e<d;e++)S[t(185)](n[t(172)]()),k[t(185)](n.readBool());if(d>0)for(let e=d;e<8;e++)n.readBits(2);for(let e=0;e<d;e++)S[e]&&(n[t(161)](),n[t(161)](),n.readByte(),n.readByte(),n.readByte(),n[t(161)](),n[t(161)](),n[t(161)](),n[t(161)](),n[t(161)](),n[t(161)]()),k[e]&&n[t(161)]();n.readUEG();let C=n[t(153)]();3==C&&n.readBits(1);let A=n[t(153)](),T=n[t(153)]();n[t(172)]()&&(o+=n.readUEG(),a+=n[t(153)](),i+=n.readUEG(),s+=n[t(153)]());let I=n[t(153)](),P=n[t(153)](),D=n[t(153)]();for(let e=n[t(172)]()?0:d;e<=d;e++)n[t(153)](),n[t(153)](),n.readUEG();if(n[t(153)](),n[t(153)](),n[t(153)](),n[t(153)](),n.readUEG(),n.readUEG(),n[t(172)]()){if(n.readBool())for(let e=0;e<4;e++)for(let r=0;r<(3===e?2:6);r++){if(n[t(172)]()){let r=Math[t(173)](64,1<<4+(e<<1));e>1&&n[t(171)]();for(let e=0;e<r;e++)n[t(171)]()}else n[t(153)]()}}n[t(172)](),n[t(172)](),n[t(172)]()&&(n[t(161)](),n[t(153)](),n[t(153)](),n[t(172)]());let $=n.readUEG(),F=0;for(let e=0;e<$;e++){let r=!1;if(0!==e&&(r=n.readBool()),r){e===$&&n[t(153)](),n[t(172)](),n[t(153)]();let r=0;for(let e=0;e<=F;e++){let e=n[t(172)](),o=!1;!e&&(o=n[t(172)]()),(e||o)&&r++}F=r}else{let e=n.readUEG(),r=n[t(153)]();F=e+r;for(let r=0;r<e;r++)n[t(153)](),n[t(172)]();for(let e=0;e<r;e++)n[t(153)](),n.readBool()}}if(n[t(172)]()){let e=n[t(153)]();for(let r=0;r<e;r++){for(let e=0;e<D+4;e++)n[t(162)](1);n[t(162)](1)}}let R=!1,M=0,W=1,U=1,O=!1,x=1,V=1;if(n[t(172)](),n[t(172)](),n[t(172)]()){if(n[t(172)]()){let e=n[t(161)](),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],o=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<=16?(W=r[e-1],U=o[e-1]):255===e&&(W=n[t(162)](16),U=n[t(162)](16))}if(n[t(172)]()&&n.readBool(),n.readBool()){n[t(162)](3),n[t(172)](),n[t(172)]()&&(n[t(161)](),n[t(161)](),n[t(161)]())}if(n[t(172)]()&&(n[t(153)](),n[t(153)]()),n[t(172)](),n[t(172)](),n[t(172)](),R=n[t(172)](),R&&(n.readUEG(),n[t(153)](),n[t(153)](),n[t(153)]()),n[t(172)]()){if(x=n.readBits(32),V=n[t(162)](32),n.readBool()&&n[t(153)](),n.readBool()){let e=!1,r=!1,o=!1;e=n[t(172)](),r=n[t(172)](),(e||r)&&(o=n[t(172)](),o&&(n[t(161)](),n[t(162)](5),n[t(172)](),n[t(162)](5)),n[t(162)](4),n[t(162)](4),o&&n[t(162)](4),n.readBits(5),n[t(162)](5),n.readBits(5));for(let a=0;a<=d;a++){let a=n.readBool();O=a;let i=!0,s=1;!a&&(i=n[t(172)]());let d=!1;if(i?n[t(153)]():d=n[t(172)](),!d&&(s=n[t(153)]()+1),e){for(let e=0;e<s;e++)n[t(153)](),n.readUEG(),o&&(n[t(153)](),n.readUEG());n[t(172)]()}if(r){for(let e=0;e<s;e++)n[t(153)](),n[t(153)](),o&&(n[t(153)](),n[t(153)]());n[t(172)]()}}}}n.readBool()&&(n[t(172)](),n[t(172)](),n[t(172)](),M=n[t(153)](),n[t(153)](),n[t(153)](),n[t(153)](),n[t(153)]())}n[t(172)]();let L=t(169)+c+".1.L"+E+t(155),j=A-(o+a)*(1===C||2===C?2:1),H=T-(i+s)*(1===C?2:1),N=1;return 1!==W&&1!==U&&(N=W/U),n[t(160)](),n=null,{codec_mimetype:L,profile_string:$e[t(152)](c),level_string:$e[t(156)](E),profile_idc:c,bit_depth:I+8,ref_frames:1,chroma_format:C,chroma_format_string:$e.getChromaFormatString(C),general_level_idc:E,general_profile_space:l,general_tier_flag:u,general_profile_idc:c,general_profile_compatibility_flags_1:f,general_profile_compatibility_flags_2:p,general_profile_compatibility_flags_3:h,general_profile_compatibility_flags_4:m,general_constraint_indicator_flags_1:g,general_constraint_indicator_flags_2:v,general_constraint_indicator_flags_3:y,general_constraint_indicator_flags_4:w,general_constraint_indicator_flags_5:b,general_constraint_indicator_flags_6:_,min_spatial_segmentation_idc:M,constant_frame_rate:0,chroma_format_idc:C,bit_depth_luma_minus8:I,bit_depth_chroma_minus8:P,frame_rate:{fixed:O,fps:V/x,fps_den:x,fps_num:V},sar_ratio:{width:W,height:U},codec_size:{width:j,height:H},present_size:{width:j*N,height:H}}}static[Ie(174)](e){const t=Ie;let r=$e[t(166)](e),n=new B(r);n[t(161)](),n[t(161)](),n.readUEG(),n[t(153)](),n[t(172)](),n[t(172)](),n.readBits(3),n[t(172)](),n[t(172)](),n.readUEG(),n[t(153)](),n[t(171)](),n.readBool(),n[t(172)](),n.readBool()&&n[t(153)](),n[t(171)](),n[t(171)](),n.readBool(),n[t(172)](),n.readBool(),n[t(172)]();let o=n.readBool(),a=n[t(172)](),i=1;return a&&o?i=0:a?i=3:o&&(i=2),{parallelismType:i}}static[Ie(164)](e){const t=Ie;switch(e){case 0:return"4:0:0";case 1:return t(151);case 2:return t(176);case 3:return t(168);default:return t(175)}}static[Ie(152)](e){const t=Ie;switch(e){case 1:return"Main";case 2:return t(170);case 3:return"MainSP";case 4:return t(167);case 9:return t(182);default:return t(175)}}static[Ie(156)](e){return(e/30).toFixed(1)}}const Fe=Be;function Re(){const e=["from","generalProfileIdc","parallelismType","error","general_progressive_source_flag","general_profile_idc","temporal_id_nested","presentHeight","parseSPS","findNextStartCodeOffset","push","height","general_level_idc","JbPro[xxx][✅✅✅][parseHEVCDecoderConfigurationRecord] invalid HEVC profile ","vps","constant_frame_rate","subarray","Invalid HEVCDecoderConfigurationRecord, lack of data! ","Invalid HEVCDecoderConfigurationRecord,invalid version ","general_interlaced_source_flag","sub_layer_level_idc",", correct to Main Profile (1)","codec","chromaFormat","pic_width_in_luma_samples","max","chromaFormatIdc","fps_den","sub_layer_profile_compatibility_flag","bit_depth_luma_minus8","general_profile_compatibility_flags_1","sub_layer_non_packed_constraint_flag","sub_layer_profile_idc","pic_height_in_luma_samples","5039144fyARsx"," < 23","sub_layer_level_present_flag","sub_layer_profile_present_flag","generalLevelIdc","general_constraint_indicator_flags_2","conf_win_top_offset","buffer","read_golomb","sps","level","generalProfileSpace","warn"," < 22","parseHEVCDecoderConfigurationRecord$2","general_profile_compatibility_flags","look","sub_layer_progressive_source_flag","parseHEVCDecoderVPSAndSPSAndPPS and pps tag is ","correctionConfigurationVersion","psps","tier_flag","type","chroma_format_idc","general_constraint_indicator_flags_6","parseHEVCDecoderVPSAndSPSAndPPS and sps tag is ","Invalid HEVCDecoderConfigurationRecord: invalid HEVC profile ","byteLength","sar_ratio","currentStartcodeOffset","conf_win_left_offset","present_size","codecHeight","general_profile_compatibility_flags_4","1476999GKzRcT","671128NHRrQs","5122476APSDhG","60FJwLnE","chroma_format","general_constraint_indicator_flags","level_string","general_frame_only_constraint_flag","log","correctionConfigurationProfileIndication","sub_layer_profile_space","general_non_packed_constraint_flag","profile","codec_mimetype","70jOmBPs","bitDepth","codecWidth","bit_depth","getUint8","10wzbpwe","sub_layer_interlaced_source_flag","generalTierFlag","min_spatial_segmentation_idc","readBits","sarRatio","length",", correct to 1","general_constraint_indicator_flags_1","conformance_window_flag","temporalIdNested","fixed","lengthSizeMinusOne","51963ODhlQZ","separate_colour_plane_flag","readUByte","sps_seq_parameter_set_id","getUint16","setUint32","sps_max_sub_layers_minus1"," and naluLengthSize is ","bitDepthLumaMinus8","49IKxWnI","pps","3124RFiFeJ","eofFlag","level_idc","Invalid HEVCDecoderConfigurationRecord, Strange NaluLengthSizeMinusOne: ","hev1.1.6.L93.B0","bitDepthChromaMinus8","setInt16","general_tier_flag","generalProfileCompatibilityFlags","set","profile_string","profile_idc","sub_layer_frame_only_constraint_flag","general_constraint_indicator_flags_5","conf_win_bottom_offset","general_profile_compatibility_flags_3","hvcc","data","conf_win_right_offset","setUint8","frameRate","sps_temporal_id_nesting_flag","width","read","presentWidth","7690hpyqoE","general_profile_space","504652IpuAVL","readUEG","avgFrameRate","timescale","h265","arrayBuffer.length ","profile_tier_level","codec_size","profile_compatibility_flags","slice","constantFrameRate","frame_rate","sei","numTemporalLayers","general_constraint_indicator_flags_4"];return(Re=function(){return e})()}function Be(e,t){const r=Re();return(Be=function(e,t){return r[e-=333]})(e,t)}!function(e,t){const r=Be,n=e();for(;;)try{if(790291===-parseInt(r(383))/1+-parseInt(r(485))/2*(parseInt(r(345))/3)+parseInt(r(356))/4*(-parseInt(r(381))/5)+parseInt(r(468))/6+-parseInt(r(354))/7*(-parseInt(r(467))/8)+parseInt(r(466))/9*(-parseInt(r(480))/10)+parseInt(r(432))/11*(parseInt(r(469))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Re);Fe(407);const Me=Ue;function We(){const e=["isFFmpegSIMD","hasInitAudioCodec","decodeAudio, decoder is destroyed and return","HEAPU8","dispatch","MP3","debugLog","ModuleVideo"," > ",", new height is ","streamRateAndStatsInterval","audioRemain","initAudio","setCodecVideo: init video codec , codecId is ","setCodec","pcmData ts ","audioChannels","playAudio","66335GwuVPB","_handleModuleVideoError","414868SpPjEo","validatedFailed","startStreamRateAndStatsInterval","mtStreamStats","debugError","toString","simdDecodeDelayTimeout","10758gmfihx","slice","10882WILMts","isSimdDecodeDelayTimeout","MtWasmDecoder","timeEnd","debugWarn"," and maxDiff is ","initVideo","setCodecVideo: hasInitVideoCodec is false, codecId is ","ModuleAudio","3353412eOKkzg","TAG_NAME","decodeVideo and payload is video sequence header so drop this frame","setCodecAudio: hasInitAudioCodec is false, codecId is ","wasmDecodeErrorStartTime","decodeVideo and payload is too small , payload length is ","floor",",\n                            and emit change event"," and packetType is ",",\n                            new width is ","\n                            decodeVideo: video width or height is changed,\n                            old width is ","decodeVideo: hasInitVideoCodec is false, codecId is ","iframeIntervalTimestamp","h265","42dPCEUx","tempAudioBuffer","decode","audioOriginalSampleRate","audioDecoder","length","isSimdDecodeError","stopStreamRateAndStatsInterval","lastDecodeVideoFrameTimestamp","notSupportNewWasm","_opt","simdH264DecodeVideoWidthIsTooLarge","delete","wasmWidthOrHeightChange","198IMTNrM","videoWidth","AAC","audioDepth","audioAACSequenceHeader","6712FQbXyH","audio wasm error:"," and diff is ","isWidthOrHeightChanged","_reset","byteLength","subarray","isUseSIMDFfmpeg","_updateStreamRateAndStats","width: "," create uint8Array error :","getBuildTime","decodeAudio and has already initialized and payload is aac codec packet so drop this frame","setCodecVideo: SIMD H264 decode video width is too large, width is ","checkFirstIFrame","useSIMD","6ZtQGvd","worker","codecWidth","isDestroyed","sampleRate","decodeVideo: simd decode error, and return","newDecodedVideoFrameTimestamp","player","isVideoFirstIFrame","isUseSIMDAndroid","HEAPF32","\n                and replay"," and isIFrame is ","yuvData, decoder is destroyed and return","decodeVideo: simd decode delay timeout, and return","h264","videoInfo","video wasm error:","clear","validatedFailed, please contact the author to get the correct license","decodeVideo first frame is not iFrame",", height: ","prevAudioTs","audioInfo","wasmDecodeDelay is ","setCodecAudio: init audio codec, codeId is ","_initSuccess"," is not H264 or H265","emit","destroy","3533139maqmzt","setCodecAudio","pcmData","errorInfo","videoHeight","setCodecAudio, audioDecoder is not exist or setCodec is not a function","codecHeight","audioCode","mp3Demuxer","2051xFTsWJ","videoDecoder","decodeVideo, decoder is destroyed and return","hasInitVideoCodec","init","audioBufferSize","videoCodec","off","Jb pro 体验结束,请刷新页面再次体验(wasm内部会暂停解码),如需要购买商业授权,可以联系微信:bosswancheng","HEAPU32","decodeVideo"," ms and isSimdDecodeDelayTimeout is true, emit simdDecodeDelayTimeout","decodeAudio",", height is ","setCodecVideo","videoCode","610VmgVqb","errorInfo() emit simdDecodeError and\n                iframeIntervalTimestamp is ","workerEnd"];return(We=function(){return e})()}function Ue(e,t){const r=We();return(Ue=function(e,t){return r[e-=408]})(e,t)}!function(e,t){const r=Ue,n=e();for(;;)try{if(297434===-parseInt(r(527))/1*(-parseInt(r(550))/2)+parseInt(r(440))/3*(parseInt(r(518))/4)+parseInt(r(516))/5*(-parseInt(r(419))/6)+-parseInt(r(479))/7*(-parseInt(r(424))/8)+parseInt(r(470))/9+parseInt(r(495))/10*(-parseInt(r(525))/11)+-parseInt(r(536))/12)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(We);class Oe extends ee{constructor(e){const t=Ue;let r=arguments[t(410)]>1&&void 0!==arguments[1]?arguments[1]:{};super(),this[t(447)]=e,this[t(415)]=r,this[t(537)]=t(529),this._reset(),this[t(484)]=r[t(484)]||1024,this[t(444)]=r[t(444)]||48e3,this[t(535)]=null,this[t(505)]=null,this.videoDecoder=null,this[t(409)]=null,this[t(462)]=null,this[t(508)]=null,this.isVideoFirstIFrame=!!J(e[t(415)][t(438)]),this[t(483)]()}[Me(469)](){const e=Me;if(this[e(486)](),this[e(412)](),this[e(409)]){try{G(this[e(409)][e(458)])&&this.audioDecoder[e(458)](),G(this[e(409)][e(417)])&&this[e(409)][e(417)]()}catch(e){}this[e(409)]=null}if(this[e(480)]){try{G(this[e(480)].clear)&&this[e(480)][e(458)](),G(this[e(480)][e(417)])&&this[e(480)][e(417)]()}catch(e){}this.videoDecoder=null}this[e(505)]=null,this[e(535)]=null,this[e(462)]=null,this[e(478)]&&(this.mp3Demuxer.destroy(),this[e(478)]=null),this[e(428)](),this.player[e(504)](this[e(537)],e(469))}[Me(483)](){}[Me(466)](){}_updateStreamRateAndStats(){const e=Me,t=this[e(413)]-this[e(446)];this[e(468)](y[e(521)],{wasmDecodeDelay:t}),this[e(449)]()&&0===this[e(446)]&&t>5e3&&(this[e(447)][e(504)](this[e(537)],e(464)+t+e(490)),this[e(528)]=!0,this[e(468)](y[e(524)]))}startStreamRateAndStatsInterval(){const e=Me;this[e(412)](),this[e(508)]=setInterval(this[e(432)].bind(this),1e3),this[e(432)]()}[Me(412)](){const e=Me;this[e(508)]&&(clearInterval(this[e(508)]),this[e(508)]=null)}_handleModuleAudioError(e){const t=Me;(function(e){const t=j;return!(!e||-1===e.indexOf("not compiled with thread support")&&-1===e[t(529)]("illegal icc")&&-1===e[t(529)](t(665))&&-1===e[t(529)](t(751)))})(e)||this[t(447)].debugError(this.TAG_NAME,t(425),e)}[Me(517)](e){const t=Me;(function(e){const t=j;return!(!e||-1===e[t(529)](t(533)))})(e)||(this[t(447)][t(522)](this.TAG_NAME,t(457),e),J(function(e){let t=!0;return e&&-1!==e.indexOf("failed to asynchronously prepare wasm")&&(t=!1),t}(e))&&this[t(468)](y[t(414)],e))}[Me(428)](){const e=Me;this[e(409)]=null,this[e(480)]=null,this[e(484)]=null,this[e(420)]=0,this[e(474)]=0,this[e(514)]=0,this.audioOriginalSampleRate=0,this[e(422)]=0,this[e(499)]=!1,this[e(482)]=!1,this.mp3Demuxer=null,this[e(448)]=!1,this[e(427)]=!1,this.isSimdDecodeError=!1,this.lastDecodeVideoFrameTimestamp=0,this.wasmDecodeErrorStartTime=null,this.newDecodedVideoFrameTimestamp=0,this.isSimdDecodeDelayTimeout=!1,this.audioRemain=0,this[e(548)]=0,this[e(551)]=[]}[Me(493)](e,t){const r=Me,n=15&e[0],o=this[r(447)];if(J(this[r(480)]&&G(this[r(480)][r(512)])))o[r(522)](this[r(537)],"setCodecVideo, videoDecoder is not exist or setCodec is not a function");else if(q(e))if(n===b[r(455)]||n===b[r(549)]){o[r(504)](this[r(537)],r(511)+n);const t=e.slice(5);if(n===b.h264&&this[r(449)]()){const e=ye(t,this[r(447)].getCorrectionConfiguration());if(e.codecWidth>g||e[r(476)]>g)return this.emit(y[r(416)],"width: "+e[r(442)]+r(506)+g+r(461)+e[r(476)]+r(506)+g),void o.debugWarn(this.TAG_NAME,r(437)+e[r(442)]+r(492)+e[r(476)])}const a=new Uint8Array(e);this[r(482)]=!0,this.videoDecoder[r(512)](n,t,this.getBuildTime()),this.emit(y[r(494)],{code:n}),this[r(468)](y[r(485)],{buffer:a,codecId:n})}else o.debugWarn(this[r(537)],r(534)+n+r(467));else o[r(531)](this[r(537)],r(547)+n+r(452)+t+r(544)+e[1])}[Me(471)](e,t){const r=Me,n=e[0]>>4,o=e[0]>>1&1;if(n===_[r(421)]?this[r(422)]=o?16:8:this[r(422)]=0===o?8:16,J(this.audioDecoder&&G(this[r(409)][r(512)])))return void this[r(447)][r(522)](this[r(537)],r(475));const a=this.player;if(U(e)||n===_.ALAW||n===_.MULAW||n===_.MP3){this[r(447)][r(504)](this[r(537)],r(465)+n+" _opt.sampleRate is "+this.sampleRate);const o=n===_[r(421)]?e[r(526)](2):new Uint8Array(0);if(this[r(409)][r(512)](n,this[r(444)],o,this[r(435)]()),n===_[r(421)]&&this[r(468)](y[r(423)],{buffer:o}),this.hasInitAudioCodec=!0,n!==_[r(421)]&&(n===_[r(503)]?(!this[r(478)]&&(this[r(478)]=new ne(this),this[r(478)].on("data",((e,t)=>{const n=r;this.audioDecoder[n(552)](e,t)}))),this[r(478)][r(502)](e[r(526)](1),t)):this[r(409)][r(552)](e.slice(1),t)),J(z)){const e=Number("1")||1;setTimeout((()=>{const e=r;this[e(447)].debugError(this[e(537)],"Jb pro 体验结束,请刷新页面再次体验(wasm内部会暂停解码),如需要购买商业授权,可以联系微信:bosswancheng"),this[e(469)](),this.emit(y[e(497)])}),60*e*60*1e3)}}else a[r(531)](this.TAG_NAME,r(539),n)}[Me(491)](e,t){const r=Me;if(this[r(447)][r(443)]())return void this.player.debugLog(this[r(537)],r(500));const n=e[0]>>4;if(this[r(499)]){if(U(e))return void this[r(447)][r(504)](this[r(537)],r(436));n===_[r(503)]?this[r(478)][r(502)](e[r(526)](1),t):this[r(409)].decode(n===_[r(421)]?e[r(526)](2):e[r(526)](1),t)}else this[r(471)](e,t)}[Me(489)](e,t,r){const n=Me;if(this.player.isDestroyed())this[n(447)][n(504)](this[n(537)],n(481));else if(this[n(482)])if(!this[n(448)]&&r&&(this[n(448)]=!0),this[n(448)]){if(r&&q(e)){const t=15&e[0];let r={},o=e[n(526)](5);const a=this.player.getCorrectionConfiguration();t===b.h264?r=ye(o,a):t===b[n(549)]&&(r=function(e){const t=Be;let r=arguments[t(338)]>1&&void 0!==arguments[1]?arguments[1]:{};const n=e;if(n[t(338)]<22)return console[t(401)](t(415)+n[t(338)]+t(445)),{};let o={codecWidth:0,codecHeight:0,videoType:E[t(387)]},a=function(){const e=t;let r=new ArrayBuffer(2);return new DataView(r)[e(362)](0,256,!0),256===new Int16Array(r)[0]}(),i=new DataView(n[t(439)]),s=i[t(484)](0),d=31&i[t(484)](1);if(1!==s&&0!==s){if(!r[t(451)])return console[t(401)](t(416)+s+", valid version is 1 or 0"),{};{console[t(474)]("JbPro[xxx][✅✅✅][parseHEVCDecoderConfigurationRecord] invalid version "+s+t(339));let e=252&i[t(484)](0)|1;i[t(375)](0,e)}}if(0===d){if(!r[t(475)])return console.error(t(458)+d+", valid hevc profile is Main Profile (1), Main 10 Profile (2),Main Still Picture Profile (3)"),{};{console[t(474)](t(411)+d+t(419));let e=224&i[t(484)](1)|1;i.setUint8(1,e)}}let l=1+(3&i.getUint8(21));if(3!==l&&4!==l)return console[t(401)](t(359)+(l-1)+t(352)+l+" ,"),{};let u=i[t(484)](22);for(let e=0,r=23;e<u;e++){let e=63&i.getUint8(r+0),s=i.getUint16(r+1,!a);r+=3;for(let d=0;d<s;d++){let s=i[t(349)](r+0,!a);if(0===d)if(33===e){r+=2;let e=new Uint8Array(n[t(439)],r,s),a=$e[t(406)](e);o[t(482)]=a[t(390)][t(378)],o[t(464)]=a[t(390)][t(409)],o.presentWidth=a[t(463)][t(378)],o[t(405)]=a[t(463)][t(409)],o[t(478)]=a.profile_string,o[t(442)]=a[t(472)],o.bitDepth=a.bit_depth,o[t(421)]=a[t(470)],o[t(337)]=a[t(460)],o[t(376)]=a.frame_rate,(!1===a[t(394)][t(343)]||0===a[t(394)].fps_num||0===a.frame_rate[t(425)])&&(o[t(376)]={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3}),o[t(376)][t(425)],o[t(376)].fps_num,o[t(420)]=a[t(479)],r+=s}else r+=2+s;else r+=2+s}}return o[t(372)]=new Uint8Array(n),o}(o,a)),r.codecWidth&&r[n(476)]&&this[n(420)]&&this[n(474)]&&(r[n(442)]!==this[n(420)]||r[n(476)]!==this[n(474)])&&(this[n(447)][n(531)](this[n(537)],n(546)+this[n(420)]+", old height is "+this[n(474)]+n(545)+r.codecWidth+n(507)+r[n(476)]+n(543)),this[n(427)]=!0,this[n(468)](y[n(418)],n(433)+this[n(420)]+"->"+r[n(442)]+n(461)+this[n(474)]+"->"+r.codecHeight))}if(this.isWidthOrHeightChanged)return void this[n(447)][n(531)](this.TAG_NAME,"decodeVideo: video width or height is changed, and return");if(this.isSimdDecodeError)return void this.player[n(531)](this[n(537)],n(445));if(this.isSimdDecodeDelayTimeout)return void this[n(447)][n(531)](this.TAG_NAME,n(454));if(q(e))return void this.player.debugLog(this[n(537)],n(538));if(e.byteLength<12)return void this.player[n(531)](this[n(537)],n(541)+e[n(429)]);this.lastDecodeVideoFrameTimestamp=t;const o=e[n(526)](5);this.videoDecoder[n(552)](o,r?1:0,t)}else this[n(447)][n(504)](this.TAG_NAME,n(460));else this[n(493)](e,r)}[Me(456)](e,t,r){const n=Me;this.emit(y[n(494)],{code:e}),this.emit(y[n(533)],{w:t,h:r}),this.videoWidth=t,this.videoHeight=r,this[n(520)]()}[Me(463)](e,t,r){const n=Me;this.emit(y[n(477)],{code:e}),this[n(468)](y[n(510)],{sampleRate:t,channels:r,depth:this[n(422)]}),this[n(514)]=r,this[n(408)]=t}yuvData(e,t){const r=Me;if(this.player[r(443)]())return void this[r(447)][r(504)](this.TAG_NAME,r(453));if(J(this[r(448)]))return void this[r(447)][r(504)](this[r(537)],"yuvData, isVideoFirstIFrame is false and return");const n=this[r(420)]*this.videoHeight*3/2;try{let o=this[r(505)][r(501)][r(430)](e,e+n),a=new Uint8Array(o);this[r(540)]=null,this[r(446)]=t,this[r(468)](y.render,{output:a,ts:t})}catch(e){this[r(447)][r(531)](this[r(537)],"yuvData ts "+t+r(434),e,e[r(523)]())}}[Me(472)](e,t,r){const n=Me;if(this[n(447)].isDestroyed())return void this[n(447)][n(504)](this[n(537)],"pcmData, decoder is destroyed and return");let o=t,a=[],i=0;try{let s=this[n(444)],d=this.audioBufferSize;for(let t=0;t<this.audioChannels;t++){let r=this[n(535)][n(488)][(e>>2)+t]>>2;a[t]=this.ModuleAudio[n(450)][n(430)](r,r+o)}if(this[n(509)]){if(!(o>=(t=d-this[n(509)])))return this[n(509)]+=o,this[n(551)][0]=Float32Array.of(...this[n(551)][0],...a[0]),void(2==this[n(514)]&&(this[n(551)][1]=Float32Array.of(...this[n(551)][1],...a[1])));{let e=[];e[0]=Float32Array.of(...this[n(551)][0],...a[0][n(430)](0,t)),2==this[n(514)]&&(e[1]=Float32Array.of(...this[n(551)][1],...a[1][n(430)](0,t)));let l=r;if(null!==this[n(462)]&&r==this[n(462)]){const e=Math.floor(1e3*d/s);l=this[n(462)]+e}this[n(468)](y[n(515)],{buffer:e,ts:l}),i=t,o-=t,this[n(462)]=l}}for(this[n(509)]=o;this[n(509)]>=d;this[n(509)]-=d){let e=[];e[0]=a[0][n(526)](i,i+=d),2==this[n(514)]&&(e[1]=a[1].slice(i-d,i));let t=r;if(null!==this[n(462)]&&r==this[n(462)]){const e=Math[n(542)](1e3*d/s);t=this[n(462)]+e}this[n(468)](y.playAudio,{buffer:e,ts:t}),this[n(462)]=t}this[n(509)]&&(this[n(551)][0]=a[0][n(526)](i),2==this[n(514)]&&(this.tempAudioBuffer[1]=a[1].slice(i))),a=[]}catch(e){this[n(447)][n(531)](n(441),n(513)+r+" create uint8Array error :",e,e.toString())}}[Me(473)](e){const t=Me;null===this.wasmDecodeErrorStartTime&&(this[t(540)]=H());const r=H(),n=function(e,t,r){const n=X;return Math[n(550)](Math[n(542)](e,Math.max(t,r)),Math[n(542)](t,r))}(this.iframeIntervalTimestamp>0?2*this.iframeIntervalTimestamp:5e3,1e3,5e3),o=r-this[t(540)];o>n&&(this.player[t(531)](this[t(537)],t(496)+this[t(548)]+t(426)+o+t(532)+n+t(451)),this[t(411)]=!0,this[t(468)](y.simdDecodeError))}getBuildTime(){return"JessibucaPro-"+h}isUseSIMDAndroid(){const e=Me;return this[e(447)][e(415)][e(439)]&&!this[e(447)][e(415)][e(498)]}[Me(431)](){const e=Me;return this[e(447)][e(415)][e(439)]&&this[e(447)][e(415)][e(498)]}[Me(530)](){const e=Me;this[e(447)].debugError(this.TAG_NAME,e(487)),this[e(469)](),this[e(468)](y[e(497)])}[Me(519)](){const e=Me;this[e(447)][e(522)](this[e(537)],e(459))}}const xe=je;function Ve(){const e=["MtSimdDecoder","init","push","2aOjMnZ","videoDecoder","debugLog","389646TAcVES","1739976ROSgMi","822300ROVKwm","debugError","simd","audioDecoder","emit","bind","TAG_NAME","all","23380juwUBQ","VideoDecoder","1508736BibRiu","catch","379689aDzpJA","4ipPRKc","player","_handleModuleVideoError","AudioDecoder","_initSuccess","ModuleAudio","1072296lflkev"];return(Ve=function(){return e})()}!function(e,t){const r=je,n=e();for(;;)try{if(176551===-parseInt(r(437))/1*(parseInt(r(450))/2)+-parseInt(r(454))/3*(parseInt(r(455))/4)+parseInt(r(442))/5+parseInt(r(433))/6+-parseInt(r(441))/7+parseInt(r(452))/8+parseInt(r(440))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ve);class Le extends Oe{constructor(e){const t=je;super(e),this[t(448)]=t(434),this.mtType=A[t(444)]}[xe(435)](){const e=xe,n=[];n[e(436)](r({printErr:this._handleModuleAudioError[e(447)](this)}),t({printErr:this[e(457)][e(447)](this)})),Promise[e(449)](n).then((t=>{const r=e;let[n,o]=t;this[r(432)]=n,this.ModuleVideo=o,o[r(451)]&&(this[r(438)]=new(o[r(451)])(this)),n[r(458)]&&(this[r(445)]=new(n[r(458)])(this)),this[r(446)](y[r(435)]),this[r(459)](),this[r(456)][r(439)](this[r(448)],"init")}))[e(453)]((t=>{const r=e;this[r(456)][r(443)](this[r(448)],"init wasm error",t,t.toString())}))}}function je(e,t){const r=Ve();return(je=function(e,t){return r[e-=432]})(e,t)}window.JessibucaProMtSimdDecoder=Le}));