mirror of
https://github.com/Monibuca/plugin-preview.git
synced 2026-04-23 00:27:11 +08:00
2 lines
213 KiB
JavaScript
2 lines
213 KiB
JavaScript
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,r=(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-mt.js",document.baseURI).href,async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(){return F.buffer!=O.buffer&&G(),O}function n(){return F.buffer!=O.buffer&&G(),W}function o(){return F.buffer!=O.buffer&&G(),U}function a(){return F.buffer!=O.buffer&&G(),x}function i(){return F.buffer!=O.buffer&&G(),j}function s(){return F.buffer!=O.buffer&&G(),L}function l(){return F.buffer!=O.buffer&&G(),z}function d(){return F.buffer!=O.buffer&&G(),N}var u,c,f;(f=r).ready=new Promise(((e,r)=>{u=e,c=r})),(f=void 0!==f?f:{}).locateFile=function(e,r){return"decoder-pro-mt-worker.wasm"==e?"undefined"!=typeof JESSIBUCA_PRO_MT_WORKER_WASM_URL&&""!=JESSIBUCA_PRO_MT_WORKER_WASM_URL?JESSIBUCA_PRO_MT_WORKER_WASM_URL:r+e:"decoder-pro-mt-worker.worker.js"==e&&"undefined"!=typeof JESSIBUCA_PRO_MT_WORKER_JS_URL&&""!=JESSIBUCA_PRO_MT_WORKER_JS_URL?JESSIBUCA_PRO_MT_WORKER_JS_URL:r+e};var h,p,m,g=Object.assign({},f),v="./this.program",y=(e,r)=>{throw r},w="object"==typeof window,b="function"==typeof importScripts,_="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,E=f.ENVIRONMENT_IS_PTHREAD||!1,k="";function S(e){return f.locateFile?f.locateFile(e,k):k+e}if(_){const{createRequire:e}=await import("module");var A=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-mt.js",document.baseURI).href),C=A("fs"),T=A("path");let r;k=b?T.dirname(k)+"/":A("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-mt.js",document.baseURI).href)),h=(e,r)=>(e=he(e)?new URL(e):T.normalize(e),C.readFileSync(e,r?void 0:"utf8")),m=e=>{var r=h(e,!0);return r.buffer||(r=new Uint8Array(r)),r},p=function(e,r,t){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=he(e)?new URL(e):T.normalize(e),C.readFile(e,n?void 0:"utf8",((e,o)=>{e?t(e):r(n?o.buffer:o)}))},!f.thisProgram&&process.argv.length>1&&(v=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),y=(e,r)=>{throw process.exitCode=e,r},f.inspect=()=>"[Emscripten Module object]";try{r=A("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=r.Worker}else(w||b)&&(b?k=self.location.href:"undefined"!=typeof document&&document.currentScript&&(k=document.currentScript.src),e&&(k=e),k=0!==k.indexOf("blob:")?k.substr(0,k.replace(/[?#].*/,"").lastIndexOf("/")+1):"",_||(h=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},b&&(m=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),p=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)}));_&&"undefined"==typeof performance&&(global.performance=A("perf_hooks").performance);var P=console.log.bind(console),D=console.error.bind(console);_&&(P=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return C.writeSync(1,r.join(" ")+"\n")},D=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return C.writeSync(2,r.join(" ")+"\n")});var I,F,$,M=f.print||P,R=f.printErr||D;Object.assign(f,g),g=null,f.arguments&&f.arguments,f.thisProgram&&(v=f.thisProgram),f.quit&&(y=f.quit),f.wasmBinary&&(I=f.wasmBinary),"object"!=typeof WebAssembly&&se("no native wasm support detected");var B,O,W,U,x,j,L,z,N,V=!1;function H(e,r){e||se(r)}function G(){var e=F.buffer;f.HEAP8=O=new Int8Array(e),f.HEAP16=U=new Int16Array(e),f.HEAPU8=W=new Uint8Array(e),f.HEAPU16=x=new Uint16Array(e),f.HEAP32=j=new Int32Array(e),f.HEAPU32=L=new Uint32Array(e),f.HEAPF32=z=new Float32Array(e),f.HEAPF64=N=new Float64Array(e)}var q=f.INITIAL_MEMORY||268435456;if(E)F=f.wasmMemory;else if(f.wasmMemory)F=f.wasmMemory;else if(!((F=new WebAssembly.Memory({initial:q/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"),_&&R("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");G(),q=F.buffer.byteLength;var K=[],X=[],J=[];function Z(){if(f.preRun)for("function"==typeof f.preRun&&(f.preRun=[f.preRun]);f.preRun.length;)ee(f.preRun.shift());ar(K)}function Y(){E||(f.noFSInit||Ke.init.initialized||Ke.init(),Ke.ignorePermissions=!1,ar(X))}function Q(){if(!E){if(f.postRun)for("function"==typeof f.postRun&&(f.postRun=[f.postRun]);f.postRun.length;)te(f.postRun.shift());ar(J)}}function ee(e){K.unshift(e)}function re(e){X.unshift(e)}function te(e){J.unshift(e)}var ne=0,oe=null;function ae(e){ne++,f.monitorRunDependencies&&f.monitorRunDependencies(ne)}function ie(e){if(ne--,f.monitorRunDependencies&&f.monitorRunDependencies(ne),0==ne&&oe){var r=oe;oe=null,r()}}function se(e){f.onAbort&&f.onAbort(e),R(e="Aborted("+e+")"),V=!0,B=1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw c(r),r}var le,de,ue,ce="data:application/octet-stream;base64,",fe=e=>e.startsWith(ce),he=e=>e.startsWith("file://");function pe(e){if(e==le&&I)return new Uint8Array(I);if(m)return m(e);throw"both async and sync fetching of the wasm failed"}function me(e){if(!I&&(w||b)){if("function"==typeof fetch&&!he(e))return fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()})).catch((()=>pe(e)));if(p)return new Promise(((r,t)=>{p(e,(e=>r(new Uint8Array(e))),t)}))}return Promise.resolve().then((()=>pe(e)))}function ge(e,r,t){return me(e).then((e=>WebAssembly.instantiate(e,r))).then((e=>e)).then(t,(e=>{R(`failed to asynchronously prepare wasm: ${e}`),se(e)}))}function ve(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||fe(r)||he(r)||_||"function"!=typeof fetch?ge(r,t,n):fetch(r,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,t).then(n,(function(e){return R(`wasm streaming compile failed: ${e}`),R("falling back to ArrayBuffer instantiation"),ge(r,t,n)}))))}function ye(){var e={a:fo};function r(e,r){return ho=e.exports,hr(ho.Y),lr=ho.$,re(ho.T),$=r,ie(),ho}if(ae(),f.instantiateWasm)try{return f.instantiateWasm(e,r)}catch(e){R(`Module.instantiateWasm callback failed with error: ${e}`),c(e)}return ve(I,le,e,(function(e){r(e.instance,e.module)})).catch(c),{}}function we(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}f.locateFile?fe(le="decoder-pro-mt-worker.wasm")||(le=S(le)):le=new URL("decoder-pro-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-mt.js",document.baseURI).href).href;var be=e=>{e.terminate(),e.onmessage=e=>{}},_e=e=>{var r=or.pthreads[e];delete or.pthreads[e],be(r),Eo(e),or.runningWorkers.splice(or.runningWorkers.indexOf(r),1),r.pthread_ptr=0},Ee=e=>{or.pthreads[e].postMessage({cmd:"cancel"})},ke=e=>{var r=or.pthreads[e];or.returnWorkerToPool(r)},Se=e=>{var r=or.getNewWorker();if(!r)return 6;or.runningWorkers.push(r),or.pthreads[e.pthread_ptr]=r,r.pthread_ptr=e.pthread_ptr;var t={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return _&&r.unref(),r.postMessage(t,e.transferList),0},Ae=0,Ce=()=>fr||Ae>0,Te={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=Te.isAbs(e),t="/"===e.substr(-1);return(e=Te.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=Te.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=Te.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments);return Te.normalize(e.join("/"))},join2:(e,r)=>Te.normalize(e+"/"+r)},Pe=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);if(_)try{var e=A("crypto");if(e.randomFillSync)return r=>e.randomFillSync(r);var r=e.randomBytes;return e=>(e.set(r(e.byteLength)),e)}catch(e){}se("initRandomDevice")},De=e=>(De=Pe())(e),Ie={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:Ke.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=Te.isAbs(n)}return(r?"/":"")+(e=Te.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=Ie.resolve(e).substr(1),r=Ie.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var l=[];for(s=i;s<n.length;s++)l.push("..");return(l=l.concat(o.slice(i))).join("/")}},Fe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,$e=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&Fe)return Fe.decode(e.buffer instanceof SharedArrayBuffer?e.slice(r,o):e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var l=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|l:(7&i)<<18|s<<12|l<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var d=i-65536;a+=String.fromCharCode(55296|d>>10,56320|1023&d)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Me=[],Re=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Be=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+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(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o};function Oe(e,r,t){var n=t>0?t:Re(e)+1,o=new Array(n),a=Be(e,o,0,o.length);return r&&(o.length=a),o}var We=()=>{if(!Me.length){var e=null;if(_){var r=Buffer.alloc(256),t=0,n=process.stdin.fd;try{t=C.readSync(n,r)}catch(e){if(!e.toString().includes("EOF"))throw e;t=0}e=t>0?r.slice(0,t).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;Me=Oe(e,!0)}return Me.shift()},Ue={ttys:[],init(){},shutdown(){},register(e,r){Ue.ttys[e]={input:[],output:[],ops:r},Ke.registerDevice(e,Ue.stream_ops)},stream_ops:{open(e){var r=Ue.ttys[e.node.rdev];if(!r)throw new Ke.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new Ke.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 Ke.ErrnoError(29)}if(void 0===s&&0===a)throw new Ke.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new Ke.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(e){throw new Ke.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>We(),put_char(e,r){null===r||10===r?(M($e(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(M($e(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,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(R($e(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(R($e(e.output,0)),e.output=[])}}},xe=e=>{se()},je={ops_table:null,mount:e=>je.createNode(null,"/",16895,0),createNode(e,r,t,n){if(Ke.isBlkdev(t)||Ke.isFIFO(t))throw new Ke.ErrnoError(63);je.ops_table||(je.ops_table={dir:{node:{getattr:je.node_ops.getattr,setattr:je.node_ops.setattr,lookup:je.node_ops.lookup,mknod:je.node_ops.mknod,rename:je.node_ops.rename,unlink:je.node_ops.unlink,rmdir:je.node_ops.rmdir,readdir:je.node_ops.readdir,symlink:je.node_ops.symlink},stream:{llseek:je.stream_ops.llseek}},file:{node:{getattr:je.node_ops.getattr,setattr:je.node_ops.setattr},stream:{llseek:je.stream_ops.llseek,read:je.stream_ops.read,write:je.stream_ops.write,allocate:je.stream_ops.allocate,mmap:je.stream_ops.mmap,msync:je.stream_ops.msync}},link:{node:{getattr:je.node_ops.getattr,setattr:je.node_ops.setattr,readlink:je.node_ops.readlink},stream:{}},chrdev:{node:{getattr:je.node_ops.getattr,setattr:je.node_ops.setattr},stream:Ke.chrdev_stream_ops}});var o=Ke.createNode(e,r,t,n);return Ke.isDir(o.mode)?(o.node_ops=je.ops_table.dir.node,o.stream_ops=je.ops_table.dir.stream,o.contents={}):Ke.isFile(o.mode)?(o.node_ops=je.ops_table.file.node,o.stream_ops=je.ops_table.file.stream,o.usedBytes=0,o.contents=null):Ke.isLink(o.mode)?(o.node_ops=je.ops_table.link.node,o.stream_ops=je.ops_table.link.stream):Ke.isChrdev(o.mode)&&(o.node_ops=je.ops_table.chrdev.node,o.stream_ops=je.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=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,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=Ke.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,Ke.isDir(e.mode)?r.size=4096:Ke.isFile(e.mode)?r.size=e.usedBytes:Ke.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&je.resizeFileStorage(e,r.size)},lookup(e,r){throw Ke.genericErrors[44]},mknod:(e,r,t,n)=>je.createNode(e,r,t,n),rename(e,r,t){if(Ke.isDir(e.mode)){var n;try{n=Ke.lookupNode(r,t)}catch(e){}if(n)for(var o in n.contents)throw new Ke.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir(e,r){var t=Ke.lookupNode(e,r);for(var n in t.contents)throw new Ke.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink(e,r,t){var n=je.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!Ke.isLink(e.mode))throw new Ke.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,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)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,n,o,a,i){if(r.buffer===t().buffer&&(i=!1),!o)return 0;var s=e.node;if(s.timestamp=Date.now(),r.subarray&&(!s.contents||s.contents.subarray)){if(i)return s.contents=r.subarray(n,n+o),s.usedBytes=o,o;if(0===s.usedBytes&&0===a)return s.contents=r.slice(n,n+o),s.usedBytes=o,o;if(a+o<=s.usedBytes)return s.contents.set(r.subarray(n,n+o),a),o}if(je.expandFileStorage(s,a+o),s.contents.subarray&&r.subarray)s.contents.set(r.subarray(n,n+o),a);else for(var l=0;l<o;l++)s.contents[a+l]=r[n+l];return s.usedBytes=Math.max(s.usedBytes,a+o),o},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&Ke.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new Ke.ErrnoError(28);return n},allocate(e,r,t){je.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap(e,r,n,o,a){if(!Ke.isFile(e.node.mode))throw new Ke.ErrnoError(43);var i,s,l=e.node.contents;if(2&a||l.buffer!==t().buffer){if((n>0||n+r<l.length)&&(l=l.subarray?l.subarray(n,n+r):Array.prototype.slice.call(l,n,n+r)),s=!0,!(i=xe()))throw new Ke.ErrnoError(48);t().set(l,i)}else s=!1,i=l.byteOffset;return{ptr:i,allocated:s}},msync:(e,r,t,n,o)=>(je.stream_ops.write(e,r,0,n,t,!1),0)}},Le=(e,r,t,n)=>{var o=n?"":`al ${e}`;p(e,(t=>{H(t,`Loading data file "${e}" failed (no arrayBuffer).`),r(new Uint8Array(t)),o&&ie()}),(r=>{if(!t)throw`Loading data file "${e}" failed.`;t()})),o&&ae()},ze=(e,r,t,n,o,a)=>{Ke.createDataFile(e,r,t,n,o,a)},Ne=f.preloadPlugins||[],Ve=(e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return Ne.forEach((a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)})),o},He=(e,r,t,n,o,a,i,s,l,d)=>{var u=r?Ie.resolve(Te.join2(e,r)):e;function c(t){function c(t){d&&d(),s||ze(e,r,t,n,o,l),a&&a(),ie()}Ve(t,u,c,(()=>{i&&i(),ie()}))||c(t)}ae(),"string"==typeof t?Le(t,(e=>c(e)),i):c(t)},Ge=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw new Error(`Unknown file open mode: ${e}`);return r},qe=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},Ke={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(e=Ie.resolve(e)))return{path:"",node:null};if(r=Object.assign({follow_mount:!0,recurse_count:0},r),r.recurse_count>8)throw new Ke.ErrnoError(32);for(var t=e.split("/").filter((e=>!!e)),n=Ke.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&r.parent)break;if(n=Ke.lookupNode(n,t[a]),o=Te.join2(o,t[a]),Ke.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;Ke.isLink(n.mode);){var l=Ke.readlink(o);if(o=Ie.resolve(Te.dirname(o),l),n=Ke.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new Ke.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var r;;){if(Ke.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%Ke.nameTable.length},hashAddNode(e){var r=Ke.hashName(e.parent.id,e.name);e.name_next=Ke.nameTable[r],Ke.nameTable[r]=e},hashRemoveNode(e){var r=Ke.hashName(e.parent.id,e.name);if(Ke.nameTable[r]===e)Ke.nameTable[r]=e.name_next;else for(var t=Ke.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=Ke.mayLookup(e);if(t)throw new Ke.ErrnoError(t,e);for(var n=Ke.hashName(e.id,r),o=Ke.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return Ke.lookup(e,r)},createNode(e,r,t,n){var o=new Ke.FSNode(e,r,t,n);return Ke.hashAddNode(o),o},destroyNode(e){Ke.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 r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>Ke.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup(e){var r=Ke.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){try{return Ke.lookupNode(e,r),20}catch(e){}return Ke.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=Ke.lookupNode(e,r)}catch(e){return e.errno}var o=Ke.nodePermissions(e,"wx");if(o)return o;if(t){if(!Ke.isDir(n.mode))return 54;if(Ke.isRoot(n)||Ke.getPath(n)===Ke.cwd())return 10}else if(Ke.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?Ke.isLink(e.mode)?32:Ke.isDir(e.mode)&&("r"!==Ke.flagsToPermissionString(r)||512&r)?31:Ke.nodePermissions(e,Ke.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=Ke.MAX_OPEN_FDS;e++)if(!Ke.streams[e])return e;throw new Ke.ErrnoError(33)},getStreamChecked(e){var r=Ke.getStream(e);if(!r)throw new Ke.ErrnoError(8);return r},getStream:e=>Ke.streams[e],createStream(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return Ke.FSStream||(Ke.FSStream=function(){this.shared={}},Ke.FSStream.prototype={},Object.defineProperties(Ke.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 Ke.FSStream,e),-1==r&&(r=Ke.nextfd()),e.fd=r,Ke.streams[r]=e,e},closeStream(e){Ke.streams[e]=null},chrdev_stream_ops:{open(e){var r=Ke.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new Ke.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){Ke.devices[e]={stream_ops:r}},getDevice:e=>Ke.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),Ke.syncFSRequests++,Ke.syncFSRequests>1&&R(`warning: ${Ke.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=Ke.getMounts(Ke.root.mount),n=0;function o(e){return Ke.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach((r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)}))},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&Ke.root)throw new Ke.ErrnoError(10);if(!o&&!a){var i=Ke.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,Ke.isMountpoint(n))throw new Ke.ErrnoError(10);if(!Ke.isDir(n.mode))throw new Ke.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},l=e.mount(s);return l.mount=s,s.root=l,o?Ke.root=l:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),l},unmount(e){var r=Ke.lookupPath(e,{follow_mount:!1});if(!Ke.isMountpoint(r.node))throw new Ke.ErrnoError(28);var t=r.node,n=t.mounted,o=Ke.getMounts(n);Object.keys(Ke.nameTable).forEach((e=>{for(var r=Ke.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&Ke.destroyNode(r),r=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=Ke.lookupPath(e,{parent:!0}).node,o=Te.basename(e);if(!o||"."===o||".."===o)throw new Ke.ErrnoError(28);var a=Ke.mayCreate(n,o);if(a)throw new Ke.ErrnoError(a);if(!n.node_ops.mknod)throw new Ke.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,Ke.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,Ke.mknod(e,r,0)),mkdirTree(e,r){for(var t=e.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{Ke.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,Ke.mknod(e,r,t)),symlink(e,r){if(!Ie.resolve(e))throw new Ke.ErrnoError(44);var t=Ke.lookupPath(r,{parent:!0}).node;if(!t)throw new Ke.ErrnoError(44);var n=Te.basename(r),o=Ke.mayCreate(t,n);if(o)throw new Ke.ErrnoError(o);if(!t.node_ops.symlink)throw new Ke.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=Te.dirname(e),a=Te.dirname(r),i=Te.basename(e),s=Te.basename(r);if(t=Ke.lookupPath(e,{parent:!0}).node,n=Ke.lookupPath(r,{parent:!0}).node,!t||!n)throw new Ke.ErrnoError(44);if(t.mount!==n.mount)throw new Ke.ErrnoError(75);var l,d=Ke.lookupNode(t,i),u=Ie.relative(e,a);if("."!==u.charAt(0))throw new Ke.ErrnoError(28);if("."!==(u=Ie.relative(r,o)).charAt(0))throw new Ke.ErrnoError(55);try{l=Ke.lookupNode(n,s)}catch(e){}if(d!==l){var c=Ke.isDir(d.mode),f=Ke.mayDelete(t,i,c);if(f)throw new Ke.ErrnoError(f);if(f=l?Ke.mayDelete(n,s,c):Ke.mayCreate(n,s))throw new Ke.ErrnoError(f);if(!t.node_ops.rename)throw new Ke.ErrnoError(63);if(Ke.isMountpoint(d)||l&&Ke.isMountpoint(l))throw new Ke.ErrnoError(10);if(n!==t&&(f=Ke.nodePermissions(t,"w")))throw new Ke.ErrnoError(f);Ke.hashRemoveNode(d);try{t.node_ops.rename(d,n,s)}catch(e){throw e}finally{Ke.hashAddNode(d)}}},rmdir(e){var r=Ke.lookupPath(e,{parent:!0}).node,t=Te.basename(e),n=Ke.lookupNode(r,t),o=Ke.mayDelete(r,t,!0);if(o)throw new Ke.ErrnoError(o);if(!r.node_ops.rmdir)throw new Ke.ErrnoError(63);if(Ke.isMountpoint(n))throw new Ke.ErrnoError(10);r.node_ops.rmdir(r,t),Ke.destroyNode(n)},readdir(e){var r=Ke.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new Ke.ErrnoError(54);return r.node_ops.readdir(r)},unlink(e){var r=Ke.lookupPath(e,{parent:!0}).node;if(!r)throw new Ke.ErrnoError(44);var t=Te.basename(e),n=Ke.lookupNode(r,t),o=Ke.mayDelete(r,t,!1);if(o)throw new Ke.ErrnoError(o);if(!r.node_ops.unlink)throw new Ke.ErrnoError(63);if(Ke.isMountpoint(n))throw new Ke.ErrnoError(10);r.node_ops.unlink(r,t),Ke.destroyNode(n)},readlink(e){var r=Ke.lookupPath(e).node;if(!r)throw new Ke.ErrnoError(44);if(!r.node_ops.readlink)throw new Ke.ErrnoError(28);return Ie.resolve(Ke.getPath(r.parent),r.node_ops.readlink(r))},stat(e,r){var t=Ke.lookupPath(e,{follow:!r}).node;if(!t)throw new Ke.ErrnoError(44);if(!t.node_ops.getattr)throw new Ke.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>Ke.stat(e,!0),chmod(e,r,t){var n;if(!(n="string"==typeof e?Ke.lookupPath(e,{follow:!t}).node:e).node_ops.setattr)throw new Ke.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod(e,r){Ke.chmod(e,r,!0)},fchmod(e,r){var t=Ke.getStreamChecked(e);Ke.chmod(t.node,r)},chown(e,r,t,n){var o;if(!(o="string"==typeof e?Ke.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new Ke.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,r,t){Ke.chown(e,r,t,!0)},fchown(e,r,t){var n=Ke.getStreamChecked(e);Ke.chown(n.node,r,t)},truncate(e,r){if(r<0)throw new Ke.ErrnoError(28);var t;if(!(t="string"==typeof e?Ke.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new Ke.ErrnoError(63);if(Ke.isDir(t.mode))throw new Ke.ErrnoError(31);if(!Ke.isFile(t.mode))throw new Ke.ErrnoError(28);var n=Ke.nodePermissions(t,"w");if(n)throw new Ke.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate(e,r){var t=Ke.getStreamChecked(e);if(0==(2097155&t.flags))throw new Ke.ErrnoError(28);Ke.truncate(t.node,r)},utime(e,r,t){var n=Ke.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new Ke.ErrnoError(44);var n;if(t=void 0===t?438:t,t=64&(r="string"==typeof r?Ge(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=Te.normalize(e);try{n=Ke.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}var o=!1;if(64&r)if(n){if(128&r)throw new Ke.ErrnoError(20)}else n=Ke.mknod(e,t,0),o=!0;if(!n)throw new Ke.ErrnoError(44);if(Ke.isChrdev(n.mode)&&(r&=-513),65536&r&&!Ke.isDir(n.mode))throw new Ke.ErrnoError(54);if(!o){var a=Ke.mayOpen(n,r);if(a)throw new Ke.ErrnoError(a)}512&r&&!o&&Ke.truncate(n,0),r&=-131713;var i=Ke.createStream({node:n,path:Ke.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return i.stream_ops.open&&i.stream_ops.open(i),!f.logReadFiles||1&r||(Ke.readFiles||(Ke.readFiles={}),e in Ke.readFiles||(Ke.readFiles[e]=1)),i},close(e){if(Ke.isClosed(e))throw new Ke.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{Ke.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(Ke.isClosed(e))throw new Ke.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new Ke.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new Ke.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new Ke.ErrnoError(28);if(Ke.isClosed(e))throw new Ke.ErrnoError(8);if(1==(2097155&e.flags))throw new Ke.ErrnoError(8);if(Ke.isDir(e.node.mode))throw new Ke.ErrnoError(31);if(!e.stream_ops.read)throw new Ke.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new Ke.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new Ke.ErrnoError(28);if(Ke.isClosed(e))throw new Ke.ErrnoError(8);if(0==(2097155&e.flags))throw new Ke.ErrnoError(8);if(Ke.isDir(e.node.mode))throw new Ke.ErrnoError(31);if(!e.stream_ops.write)throw new Ke.ErrnoError(28);e.seekable&&1024&e.flags&&Ke.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new Ke.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},allocate(e,r,t){if(Ke.isClosed(e))throw new Ke.ErrnoError(8);if(r<0||t<=0)throw new Ke.ErrnoError(28);if(0==(2097155&e.flags))throw new Ke.ErrnoError(8);if(!Ke.isFile(e.node.mode)&&!Ke.isDir(e.node.mode))throw new Ke.ErrnoError(43);if(!e.stream_ops.allocate)throw new Ke.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap(e,r,t,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&e.flags))throw new Ke.ErrnoError(2);if(1==(2097155&e.flags))throw new Ke.ErrnoError(2);if(!e.stream_ops.mmap)throw new Ke.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,munmap:e=>0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new Ke.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(`Invalid encoding type "${r.encoding}"`);var t,n=Ke.open(e,r.flags),o=Ke.stat(e).size,a=new Uint8Array(o);return Ke.read(n,a,0,o,0),"utf8"===r.encoding?t=$e(a,0):"binary"===r.encoding&&(t=a),Ke.close(n),t},writeFile(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.flags=t.flags||577;var n=Ke.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(Re(r)+1),a=Be(r,o,0,o.length);Ke.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");Ke.write(n,r,0,r.byteLength,void 0,t.canOwn)}Ke.close(n)},cwd:()=>Ke.currentPath,chdir(e){var r=Ke.lookupPath(e,{follow:!0});if(null===r.node)throw new Ke.ErrnoError(44);if(!Ke.isDir(r.node.mode))throw new Ke.ErrnoError(54);var t=Ke.nodePermissions(r.node,"x");if(t)throw new Ke.ErrnoError(t);Ke.currentPath=r.path},createDefaultDirectories(){Ke.mkdir("/tmp"),Ke.mkdir("/home"),Ke.mkdir("/home/web_user")},createDefaultDevices(){Ke.mkdir("/dev"),Ke.registerDevice(Ke.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n}),Ke.mkdev("/dev/null",Ke.makedev(1,3)),Ue.register(Ke.makedev(5,0),Ue.default_tty_ops),Ue.register(Ke.makedev(6,0),Ue.default_tty1_ops),Ke.mkdev("/dev/tty",Ke.makedev(5,0)),Ke.mkdev("/dev/tty1",Ke.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=De(e).byteLength),e[--r]);Ke.createDevice("/dev","random",t),Ke.createDevice("/dev","urandom",t),Ke.mkdir("/dev/shm"),Ke.mkdir("/dev/shm/tmp")},createSpecialDirectories(){Ke.mkdir("/proc");var e=Ke.mkdir("/proc/self");Ke.mkdir("/proc/self/fd"),Ke.mount({mount(){var r=Ke.createNode(e,"fd",16895,73);return r.node_ops={lookup(e,r){var t=+r,n=Ke.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams(){f.stdin?Ke.createDevice("/dev","stdin",f.stdin):Ke.symlink("/dev/tty","/dev/stdin"),f.stdout?Ke.createDevice("/dev","stdout",null,f.stdout):Ke.symlink("/dev/tty","/dev/stdout"),f.stderr?Ke.createDevice("/dev","stderr",null,f.stderr):Ke.symlink("/dev/tty1","/dev/stderr"),Ke.open("/dev/stdin",0),Ke.open("/dev/stdout",1),Ke.open("/dev/stderr",1)},ensureErrnoError(){Ke.ErrnoError||(Ke.ErrnoError=function(e,r){this.name="ErrnoError",this.node=r,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},Ke.ErrnoError.prototype=new Error,Ke.ErrnoError.prototype.constructor=Ke.ErrnoError,[44].forEach((e=>{Ke.genericErrors[e]=new Ke.ErrnoError(e),Ke.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){Ke.ensureErrnoError(),Ke.nameTable=new Array(4096),Ke.mount(je,{},"/"),Ke.createDefaultDirectories(),Ke.createDefaultDevices(),Ke.createSpecialDirectories(),Ke.filesystems={MEMFS:je}},init(e,r,t){Ke.init.initialized=!0,Ke.ensureErrnoError(),f.stdin=e||f.stdin,f.stdout=r||f.stdout,f.stderr=t||f.stderr,Ke.createStandardStreams()},quit(){Ke.init.initialized=!1;for(var e=0;e<Ke.streams.length;e++){var r=Ke.streams[e];r&&Ke.close(r)}},findObject(e,r){var t=Ke.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=Ke.lookupPath(e,{follow:!r})).path}catch(e){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Ke.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=Te.basename(e),n=Ke.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(e){t.error=e.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:Ke.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=Te.join2(e,a);try{Ke.mkdir(i)}catch(e){}e=i}}return i},createFile(e,r,t,n,o){var a=Te.join2("string"==typeof e?e:Ke.getPath(e),r),i=qe(n,o);return Ke.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:Ke.getPath(e),i=r?Te.join2(e,r):e);var s=qe(n,o),l=Ke.create(i,s);if(t){if("string"==typeof t){for(var d=new Array(t.length),u=0,c=t.length;u<c;++u)d[u]=t.charCodeAt(u);t=d}Ke.chmod(l,146|s);var f=Ke.open(l,577);Ke.write(f,t,0,t.length,0,a),Ke.close(f),Ke.chmod(l,s)}},createDevice(e,r,t,n){var o=Te.join2("string"==typeof e?e:Ke.getPath(e),r),a=qe(!!t,!!n);Ke.createDevice.major||(Ke.createDevice.major=64);var i=Ke.makedev(Ke.createDevice.major++,0);return Ke.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var l;try{l=t()}catch(e){throw new Ke.ErrnoError(29)}if(void 0===l&&0===i)throw new Ke.ErrnoError(6);if(null==l)break;i++,r[n+s]=l}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(e){throw new Ke.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),Ke.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(!h)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Oe(h(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new Ke.ErrnoError(29)}},createLazyFile(e,r,n,o,a){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(e){if(!(e>this.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}},i.prototype.setDataGetter=function(e){this.getter=e},i.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",n,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+n+". Status: "+e.status);var r,t=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=t);var s=this;s.setDataGetter((e=>{var r=e*i,o=(e+1)*i-1;if(o=Math.min(o,t-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,r)=>{if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>t-1)throw new Error("only "+t+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",n,!1),t!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),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 "+n+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Oe(o.responseText||"",!0)})(r,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&t||(i=t=1,t=this.getter(0).length,i=t,M("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=t,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!b)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s=new i;Object.defineProperties(s,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var l={isDevice:!1,contents:s}}else l={isDevice:!1,url:n};var d=Ke.createFile(e,r,l,o,a);l.contents?d.contents=l.contents:l.url&&(d.contents=null,d.url=l.url),Object.defineProperties(d,{usedBytes:{get:function(){return this.contents.length}}});var u={};function c(e,r,t,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++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(d.stream_ops).forEach((e=>{var r=d.stream_ops[e];u[e]=function(){return Ke.forceLoadFile(d),r.apply(null,arguments)}})),u.read=(e,r,t,n,o)=>(Ke.forceLoadFile(d),c(e,r,t,n,o)),u.mmap=(e,r,n,o,a)=>{Ke.forceLoadFile(d);var i=xe();if(!i)throw new Ke.ErrnoError(48);return c(e,t(),i,r,n),{ptr:i,allocated:!0}},d.stream_ops=u,d}},Xe=(e,r)=>e?$e(n(),e,r):"",Je={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(Te.isAbs(r))return r;var n;if(n=-100===e?Ke.cwd():Je.getStreamFromFD(e).path,0==r.length){if(!t)throw new Ke.ErrnoError(44);return n}return Te.join2(n,r)},doStat(e,r,t){try{var n=e(r)}catch(e){if(e&&e.node&&Te.normalize(r)!==Te.normalize(Ke.getPath(e.node)))return-54;throw e}i()[t>>2]=n.dev,i()[t+4>>2]=n.mode,s()[t+8>>2]=n.nlink,i()[t+12>>2]=n.uid,i()[t+16>>2]=n.gid,i()[t+20>>2]=n.rdev,ue=[n.size>>>0,(de=n.size,+Math.abs(de)>=1?de>0?+Math.floor(de/4294967296)>>>0:~~+Math.ceil((de-+(~~de>>>0))/4294967296)>>>0:0)],i()[t+24>>2]=ue[0],i()[t+28>>2]=ue[1],i()[t+32>>2]=4096,i()[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),l=n.ctime.getTime();return ue=[Math.floor(o/1e3)>>>0,(de=Math.floor(o/1e3),+Math.abs(de)>=1?de>0?+Math.floor(de/4294967296)>>>0:~~+Math.ceil((de-+(~~de>>>0))/4294967296)>>>0:0)],i()[t+40>>2]=ue[0],i()[t+44>>2]=ue[1],s()[t+48>>2]=o%1e3*1e3,ue=[Math.floor(a/1e3)>>>0,(de=Math.floor(a/1e3),+Math.abs(de)>=1?de>0?+Math.floor(de/4294967296)>>>0:~~+Math.ceil((de-+(~~de>>>0))/4294967296)>>>0:0)],i()[t+56>>2]=ue[0],i()[t+60>>2]=ue[1],s()[t+64>>2]=a%1e3*1e3,ue=[Math.floor(l/1e3)>>>0,(de=Math.floor(l/1e3),+Math.abs(de)>=1?de>0?+Math.floor(de/4294967296)>>>0:~~+Math.ceil((de-+(~~de>>>0))/4294967296)>>>0:0)],i()[t+72>>2]=ue[0],i()[t+76>>2]=ue[1],s()[t+80>>2]=l%1e3*1e3,ue=[n.ino>>>0,(de=n.ino,+Math.abs(de)>=1?de>0?+Math.floor(de/4294967296)>>>0:~~+Math.ceil((de-+(~~de>>>0))/4294967296)>>>0:0)],i()[t+88>>2]=ue[0],i()[t+92>>2]=ue[1],0},doMsync(e,r,t,o,a){if(!Ke.isFile(r.node.mode))throw new Ke.ErrnoError(43);if(2&o)return 0;var i=n().slice(e,e+t);Ke.msync(r,i,a,t,o)},varargs:void 0,get(){var e=i()[+Je.varargs>>2];return Je.varargs+=4,e},getp:()=>Je.get(),getStr:e=>Xe(e),getStreamFromFD:e=>Ke.getStreamChecked(e)},Ze=e=>{var r=Co(),t=e();return To(r),t},Ye=(e,r)=>r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN,Qe=function(e,r){var t=arguments.length-2,n=arguments;return Ze((()=>{for(var o=t,a=Po(8*o),i=a>>3,s=0;s<t;s++){var l=n[2+s];d()[i+s]=l}return _o(e,o,a,r)}))};function er(e){if(E)return Qe(0,1,e);B=e,Ce()||(or.terminateAllThreads(),f.onExit&&f.onExit(e),V=!0),y(e,new we(e))}var rr=(e,r)=>{if(B=e,E)throw sr(e),"unwind";er(e)},tr=rr,nr=e=>{if(e instanceof we||"unwind"==e)return B;y(1,e)},or={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){E?or.initWorker():or.initMainThread()},initMainThread(){for(var e=4;e--;)or.allocateUnusedWorker();ee((()=>{ae(),or.loadWasmModuleToAllWorkers((()=>ie()))}))},initWorker(){fr=!1},setExitStatus:e=>{B=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of or.runningWorkers)be(e);for(var e of or.unusedWorkers)be(e);or.unusedWorkers=[],or.runningWorkers=[],or.pthreads=[]},returnWorkerToPool:e=>{var r=e.pthread_ptr;delete or.pthreads[r],or.unusedWorkers.push(e),or.runningWorkers.splice(or.runningWorkers.indexOf(e),1),e.pthread_ptr=0,Eo(r)},receiveObjectTransfer(e){},threadInitTLS(){or.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:e=>new Promise((r=>{e.onmessage=t=>{var n=t.data,o=n.cmd;if(n.targetThread&&n.targetThread!=go()){var a=or.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?gn():"spawnThread"===o?Se(n):"cleanupThread"===o?ke(n.thread):"killThread"===o?_e(n.thread):"cancelThread"===o?Ee(n.thread):"loaded"===o?(e.loaded=!0,_&&!e.pthread_ptr&&e.unref(),r(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},_&&(e.on("message",(r=>e.onmessage({data:r}))),e.on("error",(r=>e.onerror(r))));var t=[];for(var n of["onExit","onAbort","print","printErr"])f.hasOwnProperty(n)&&t.push(n);e.postMessage({cmd:"load",handlers:t,urlOrBlob:f.mainScriptUrlOrBlob,wasmMemory:F,wasmModule:$})})),loadWasmModuleToAllWorkers(e){if(E)return e();Promise.all(or.unusedWorkers.map(or.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e;if(f.locateFile){var r=S("decoder-pro-mt-worker.worker.js");e=new Worker(r,{type:"module"})}else e=new Worker(new URL("decoder-pro-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-mt.js",document.baseURI).href),{type:"module"});or.unusedWorkers.push(e)},getNewWorker:()=>(0==or.unusedWorkers.length&&(or.allocateUnusedWorker(),or.loadWasmModuleToWorker(or.unusedWorkers[0])),or.unusedWorkers.pop())};f.PThread=or;var ar=e=>{for(;e.length>0;)e.shift()(f)},ir=()=>{var e=go(),r=s()[e+52>>2],t=s()[e+56>>2];Ao(r,r-t),To(r)};function sr(e){if(E)return Qe(1,0,e);tr(e)}f.establishStackSpace=ir;var lr,dr=[],ur=e=>{var r=dr[e];return r||(e>=dr.length&&(dr.length=e+1),dr[e]=r=lr.get(e)),r},cr=(e,r)=>{!function(e){Ce()?or.setExitStatus(e):ko(e)}(ur(e)(r))};f.invokeEntryPoint=cr;var fr=f.noExitRuntime||!0,hr=e=>{or.tlsInitFunctions.push(e)},pr=(e,r,t,n)=>{se(`Assertion failed: ${Xe(e)}, at: `+[r?Xe(r):"unknown filename",t,n?Xe(n):"unknown function"])};function mr(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,t()[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=t()[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,t()[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=t()[this.ptr+13>>0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},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(Do(this.get_type()))return s()[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var gr=(e,r,t)=>{throw new mr(e).init(r,t),e},vr=e=>{wo(e,!b,1,!w,2097152,!1),or.threadInitTLS()},yr=e=>{E?postMessage({cmd:"cleanupThread",thread:e}):ke(e)};function wr(e,r,t,n){return E?Qe(2,1,e,r,t,n):br(e,r,t,n)}var br=(e,r,t,n)=>{if("undefined"==typeof SharedArrayBuffer)return R("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var o=[];if(E&&0===o.length)return wr(e,r,t,n);var a={startRoutine:t,pthread_ptr:e,arg:n,transferList:o};return E?(a.cmd="spawnThread",postMessage(a,o),0):Se(a)},_r=e=>(i()[vo()>>2]=e,e);function Er(e,r,t){if(E)return Qe(3,1,e,r,t);Je.varargs=t;try{var n=Je.getStreamFromFD(e);switch(r){case 0:if((a=Je.get())<0)return-28;for(;Ke.streams[a];)a++;return Ke.createStream(n,a).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var a=Je.get();return n.flags|=a,0;case 5:return a=Je.getp(),o()[a+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return _r(28),-1}}catch(e){if(void 0===Ke||"ErrnoError"!==e.name)throw e;return-e.errno}}function kr(e,r,t,n){if(E)return Qe(4,1,e,r,t,n);Je.varargs=n;try{r=Je.getStr(r),r=Je.calculateAt(e,r);var o=n?Je.get():0;return Ke.open(r,t,o).fd}catch(e){if(void 0===Ke||"ErrnoError"!==e.name)throw e;return-e.errno}}var Sr,Ar,Cr,Tr=(e,r,t,n,o)=>{},Pr=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);Sr=e},Dr=e=>{for(var r="",t=e;n()[t];)r+=Sr[n()[t++]];return r},Ir={},Fr={},$r={},Mr=e=>{throw new Ar(e)},Rr=e=>{throw new Cr(e)},Br=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&Rr("Mismatched type converter count");for(var o=0;o<e.length;++o)Wr(e[o],n[o])}e.forEach((function(e){$r[e]=r}));var o=new Array(r.length),a=[],i=0;r.forEach(((e,r)=>{Fr.hasOwnProperty(e)?o[r]=Fr[e]:(a.push(e),Ir.hasOwnProperty(e)||(Ir[e]=[]),Ir[e].push((()=>{o[r]=Fr[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function Or(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=r.name;if(e||Mr(`type "${n}" must have a positive integer typeid pointer`),Fr.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;Mr(`Cannot register type '${n}' twice`)}if(Fr[e]=r,delete $r[e],Ir.hasOwnProperty(e)){var o=Ir[e];delete Ir[e],o.forEach((e=>e()))}}function Wr(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Or(e,r,t)}var Ur,xr=8,jr=(e,r,t,o)=>{Wr(e,{name:r=Dr(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:o},argPackAdvance:xr,readValueFromPointer:function(e){return this.fromWireType(n()[e])},destructorFunction:null})},Lr=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),zr=e=>{Mr(e.$$.ptrType.registeredClass.name+" instance already deleted")},Nr=!1,Vr=e=>{},Hr=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},Gr=e=>{e.count.value-=1,0===e.count.value&&Hr(e)},qr=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=qr(e,r,t.baseClass);return null===n?null:t.downcast(n)},Kr={},Xr=()=>Object.keys(rt).length,Jr=()=>{var e=[];for(var r in rt)rt.hasOwnProperty(r)&&e.push(rt[r]);return e},Zr=[],Yr=()=>{for(;Zr.length;){var e=Zr.pop();e.$$.deleteScheduled=!1,e.delete()}},Qr=e=>{Ur=e,Zr.length&&Ur&&Ur(Yr)},et=()=>{f.getInheritedInstanceCount=Xr,f.getLiveInheritedInstances=Jr,f.flushPendingDeletes=Yr,f.setDelayFunction=Qr},rt={},tt=(e,r)=>{for(void 0===r&&Mr("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},nt=(e,r)=>(r=tt(e,r),rt[r]),ot=(e,r)=>(r.ptrType&&r.ptr||Rr("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&Rr("Both smartPtrType and smartPtr must be specified"),r.count={value:1},it(Object.create(e,{$$:{value:r}})));function at(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=nt(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?ot(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):ot(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(r),s=Kr[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var l=qr(r,this.registeredClass,a.registeredClass);return null===l?o.call(this):this.isSmartPointer?ot(a.registeredClass.instancePrototype,{ptrType:a,ptr:l,smartPtrType:this,smartPtr:e}):ot(a.registeredClass.instancePrototype,{ptrType:a,ptr:l})}var it=e=>"undefined"==typeof FinalizationRegistry?(it=e=>e,e):(Nr=new FinalizationRegistry((e=>{Gr(e.$$)})),it=e=>{var r=e.$$;if(r.smartPtr){var t={$$:r};Nr.register(e,t,e)}return e},Vr=e=>Nr.unregister(e),it(e)),st=()=>{Object.assign(lt.prototype,{isAliasOf(e){if(!(this instanceof lt))return!1;if(!(e instanceof lt))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,o=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&t===o},clone(){if(this.$$.ptr||zr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=it(Object.create(Object.getPrototypeOf(this),{$$:{value:Lr(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||zr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Mr("Object already scheduled for deletion"),Vr(this),Gr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||zr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Mr("Object already scheduled for deletion"),Zr.push(this),1===Zr.length&&Ur&&Ur(Yr),this.$$.deleteScheduled=!0,this}})};function lt(){}var dt=(e,r)=>Object.defineProperty(r,"name",{value:e}),ut=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||Mr(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},ct=(e,r,t)=>{f.hasOwnProperty(e)?((void 0===t||void 0!==f[e].overloadTable&&void 0!==f[e].overloadTable[t])&&Mr(`Cannot register public name '${e}' twice`),ut(f,e,e),f.hasOwnProperty(t)&&Mr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),f[e].overloadTable[t]=r):(f[e]=r,void 0!==t&&(f[e].numArguments=t))},ft=48,ht=57,pt=e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=ft&&r<=ht?`_${e}`:e};function mt(e,r,t,n,o,a,i,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var gt=(e,r,t)=>{for(;r!==t;)r.upcast||Mr(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function vt(e,r){if(null===r)return this.isReference&&Mr(`null is not a valid ${this.name}`),0;r.$$||Mr(`Cannot pass "${Xt(r)}" as a ${this.name}`),r.$$.ptr||Mr(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass;return gt(r.$$.ptr,t,this.registeredClass)}function yt(e,r){var t;if(null===r)return this.isReference&&Mr(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;r.$$||Mr(`Cannot pass "${Xt(r)}" as a ${this.name}`),r.$$.ptr||Mr(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&Mr(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=gt(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&Mr("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:Mr(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var o=r.clone();t=this.rawShare(t,Gt.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,t)}break;default:Mr("Unsupporting sharing policy")}return t}function wt(e,r){if(null===r)return this.isReference&&Mr(`null is not a valid ${this.name}`),0;r.$$||Mr(`Cannot pass "${Xt(r)}" as a ${this.name}`),r.$$.ptr||Mr(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&Mr(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass;return gt(r.$$.ptr,t,this.registeredClass)}function bt(e){return this.fromWireType(s()[e>>2])}var _t=()=>{Object.assign(Et.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:xr,readValueFromPointer:bt,deleteObject(e){null!==e&&e.delete()},fromWireType:at})};function Et(e,r,t,n,o,a,i,s,l,d,u){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=d,this.rawDestructor=u,o||void 0!==r.baseClass?this.toWireType=yt:n?(this.toWireType=vt,this.destructorFunction=null):(this.toWireType=wt,this.destructorFunction=null)}var kt,St=(e,r,t)=>{f.hasOwnProperty(e)||Rr("Replacing nonexistant public symbol"),void 0!==f[e].overloadTable&&void 0!==t?f[e].overloadTable[t]=r:(f[e]=r,f[e].argCount=t)},At=(e,r,t)=>{var n=f["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)},Ct=(e,r,t)=>e.includes("j")?At(e,r,t):ur(r).apply(null,t),Tt=(e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),Ct(e,r,t)}},Pt=(e,r)=>{var t=(e=Dr(e)).includes("j")?Tt(e,r):ur(r);return"function"!=typeof t&&Mr(`unknown function pointer with signature ${e}: ${r}`),t},Dt=(e,r)=>{var t=dt(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t},It=e=>{var r=yo(e),t=Dr(r);return po(r),t},Ft=(e,r)=>{var t=[],n={};throw r.forEach((function e(r){n[r]||Fr[r]||($r[r]?$r[r].forEach(e):(t.push(r),n[r]=!0))})),new kt(`${e}: `+t.map(It).join([", "]))},$t=(e,r,t,n,o,a,i,s,l,d,u,c,f)=>{u=Dr(u),a=Pt(o,a),s&&(s=Pt(i,s)),d&&(d=Pt(l,d)),f=Pt(c,f);var h=pt(u);ct(h,(function(){Ft(`Cannot construct ${u} due to unbound types`,[n])})),Br([e,r,t],n?[n]:[],(function(r){var t,o;r=r[0],o=n?(t=r.registeredClass).instancePrototype:lt.prototype;var i=dt(u,(function(){if(Object.getPrototypeOf(this)!==l)throw new Ar("Use 'new' to construct "+u);if(void 0===c.constructor_body)throw new Ar(u+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new Ar(`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)})),l=Object.create(o,{constructor:{value:i}});i.prototype=l;var c=new mt(u,i,l,f,t,a,s,d);c.baseClass&&(void 0===c.baseClass.__derivedClasses&&(c.baseClass.__derivedClasses=[]),c.baseClass.__derivedClasses.push(c));var p=new Et(u,c,!0,!1,!1),m=new Et(u+"*",c,!1,!1,!1),g=new Et(u+" const*",c,!1,!0,!1);return Kr[e]={pointerType:m,constPointerType:g},St(h,i),[p,m,g]}))},Mt=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(s()[r+4*n>>2]);return t},Rt=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function Bt(e,r){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var t=dt(e.name||"unknownFunctionName",(function(){}));t.prototype=e.prototype;var n=new t,o=e.apply(n,r);return o instanceof Object?o:n}function Ot(e,r,t,n,o,a){var i=r.length;i<2&&Mr("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,l=!1,d=1;d<r.length;++d)if(null!==r[d]&&void 0===r[d].destructorFunction){l=!0;break}var u="void"!==r[0].name,c="",f="";for(d=0;d<i-2;++d)c+=(0!==d?", ":"")+"arg"+d,f+=(0!==d?", ":"")+"arg"+d+"Wired";var h=`\n return function (${c}) {\n if (arguments.length !== ${i-2}) {\n throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${i-2}');\n }`;l&&(h+="var destructors = [];\n");var p=l?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[Mr,n,o,Rt,r[0],r[1]];for(s&&(h+="var thisWired = classParam.toWireType("+p+", this);\n"),d=0;d<i-2;++d)h+="var arg"+d+"Wired = argType"+d+".toWireType("+p+", arg"+d+"); // "+r[d+2].name+"\n",m.push("argType"+d),g.push(r[d+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),h+=(u||a?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",l)h+="runDestructors(destructors);\n";else for(d=s?1:2;d<r.length;++d){var v=1===d?"thisWired":"arg"+(d-2)+"Wired";null!==r[d].destructorFunction&&(h+=v+"_dtor("+v+"); // "+r[d].name+"\n",m.push(v+"_dtor"),g.push(r[d].destructorFunction))}u&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",m.push(h);var y=Bt(Function,m).apply(null,g);return dt(e,y)}var Wt=(e,r,t,n,o,a)=>{var i=Mt(r,t);o=Pt(n,o),Br([],[e],(function(e){var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new Ar(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[r-1]=()=>{Ft(`Cannot construct ${e.name} due to unbound types`,i)},Br([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[r-1]=Ot(t,n,null,o,a),[]))),[]}))},Ut=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},xt=(e,r,t,n,o,a,i,s,l)=>{var d=Mt(t,n);r=Dr(r),r=Ut(r),a=Pt(o,a),Br([],[e],(function(e){var n=`${(e=e[0]).name}.${r}`;function o(){Ft(`Cannot call ${n} due to unbound types`,d)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(r);var u=e.registeredClass.instancePrototype,c=u[r];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===t-2?(o.argCount=t-2,o.className=e.name,u[r]=o):(ut(u,r,n),u[r].overloadTable[t-2]=o),Br([],d,(function(o){var s=Ot(n,o,e,a,i,l);return void 0===u[r].overloadTable?(s.argCount=t-2,u[r]=s):u[r].overloadTable[t-2]=s,[]})),[]}))};function jt(){Object.assign(Lt.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function Lt(){this.allocated=[void 0],this.freelist=[]}var zt=new Lt,Nt=e=>{e>=zt.reserved&&0==--zt.get(e).refcount&&zt.free(e)},Vt=()=>{for(var e=0,r=zt.reserved;r<zt.allocated.length;++r)void 0!==zt.allocated[r]&&++e;return e},Ht=()=>{zt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),zt.reserved=zt.allocated.length,f.count_emval_handles=Vt},Gt={toValue:e=>(e||Mr("Cannot use deleted val. handle = "+e),zt.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 zt.allocate({refcount:1,value:e})}}};function qt(e){return this.fromWireType(i()[e>>2])}var Kt=(e,r)=>{Wr(e,{name:r=Dr(r),fromWireType:e=>{var r=Gt.toValue(e);return Nt(e),r},toWireType:(e,r)=>Gt.toHandle(r),argPackAdvance:xr,readValueFromPointer:qt,destructorFunction:null})},Xt=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},Jt=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(l()[e>>2])};case 8:return function(e){return this.fromWireType(d()[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Zt=(e,r,t)=>{Wr(e,{name:r=Dr(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:xr,readValueFromPointer:Jt(r,t),destructorFunction:null})},Yt=(e,r,l)=>{switch(r){case 1:return l?e=>t()[e>>0]:e=>n()[e>>0];case 2:return l?e=>o()[e>>1]:e=>a()[e>>1];case 4:return l?e=>i()[e>>2]:e=>s()[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Qt=(e,r,t,n,o)=>{r=Dr(r);var a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i}var s=r.includes("unsigned");Wr(e,{name:r,fromWireType:a,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:xr,readValueFromPointer:Yt(r,t,0!==n),destructorFunction:null})},en=(e,r,n)=>{var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function a(e){var r=s()[e>>2],n=s()[e+4>>2];return new o(t().buffer,n,r)}Wr(e,{name:n=Dr(n),fromWireType:a,argPackAdvance:xr,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},rn=(e,r,t)=>Be(e,n(),r,t),tn=(e,r)=>{var t="std::string"===(r=Dr(r));Wr(e,{name:r,fromWireType(e){var r,o=s()[e>>2],a=e+4;if(t)for(var i=a,l=0;l<=o;++l){var d=a+l;if(l==o||0==n()[d]){var u=Xe(i,d-i);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),i=d+1}}else{var c=new Array(o);for(l=0;l<o;++l)c[l]=String.fromCharCode(n()[a+l]);r=c.join("")}return po(e),r},toWireType(e,r){var o;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var a="string"==typeof r;a||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||Mr("Cannot pass non-string to std::string"),o=t&&a?Re(r):r.length;var i=mo(4+o+1),l=i+4;if(s()[i>>2]=o,t&&a)rn(r,l,o+1);else if(a)for(var d=0;d<o;++d){var u=r.charCodeAt(d);u>255&&(po(l),Mr("String has UTF-16 code units that do not fit in 8 bits")),n()[l+d]=u}else for(d=0;d<o;++d)n()[l+d]=r[d];return null!==e&&e.push(po,i),i},argPackAdvance:xr,readValueFromPointer:bt,destructorFunction(e){po(e)}})},nn="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,on=(e,r)=>{for(var t=e,i=t>>1,s=i+r/2;!(i>=s)&&a()[i];)++i;if((t=i<<1)-e>32&&nn)return nn.decode(n().slice(e,t));for(var l="",d=0;!(d>=r/2);++d){var u=o()[e+2*d>>1];if(0==u)break;l+=String.fromCharCode(u)}return l},an=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,a=(t-=2)<2*e.length?t/2:e.length,i=0;i<a;++i){var s=e.charCodeAt(i);o()[r>>1]=s,r+=2}return o()[r>>1]=0,r-n},sn=e=>2*e.length,ln=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var o=i()[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},dn=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,o=n+t-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()[r>>2]=s,(r+=4)+4>o)break}return i()[r>>2]=0,r-n},un=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},cn=(e,r,t)=>{var n,o,i,l,d;t=Dr(t),2===r?(n=on,o=an,l=sn,i=()=>a(),d=1):4===r&&(n=ln,o=dn,l=un,i=()=>s(),d=2),Wr(e,{name:t,fromWireType:e=>{for(var t,o=s()[e>>2],a=i(),l=e+4,u=0;u<=o;++u){var c=e+4+u*r;if(u==o||0==a[c>>d]){var f=n(l,c-l);void 0===t?t=f:(t+=String.fromCharCode(0),t+=f),l=c+r}}return po(e),t},toWireType:(e,n)=>{"string"!=typeof n&&Mr(`Cannot pass non-string to C++ string type ${t}`);var a=l(n),i=mo(4+a+r);return s()[i>>2]=a>>d,o(n,i+4,a+r),null!==e&&e.push(po,i),i},argPackAdvance:xr,readValueFromPointer:qt,destructorFunction(e){po(e)}})},fn=(e,r)=>{Wr(e,{isVoid:!0,name:r=Dr(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},hn=()=>{if(!Ce())try{E?ko(B):tr(B)}catch(e){nr(e)}},pn=e=>{if(!V)try{e(),hn()}catch(e){nr(e)}},mn=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(i(),e>>2,e).value.then(gn);var r=e+128;Atomics.store(i(),r>>2,1)}};f.__emscripten_thread_mailbox_await=mn;var gn=()=>{var e=go();e&&(mn(e),pn(So))};f.checkMailbox=gn;var vn=(e,r,t)=>{if(e==r)setTimeout((()=>gn()));else if(E)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=or.pthreads[e];if(!n)return;n.postMessage({cmd:"checkMailbox"})}},yn=[],wn=(e,r,t,n)=>{yn.length=t;for(var o=n>>3,a=0;a<t;a++)yn[a]=d()[o+a];var i=co[e];or.currentProxiedOperationCallerThread=r;var s=i.apply(null,yn);return or.currentProxiedOperationCallerThread=0,s},bn=e=>{_&&or.pthreads[e].ref()},_n={},En=e=>{var r=_n[e];return void 0===r?Dr(e):r},kn=[],Sn=(e,r,t,n,o)=>(e=kn[e])(r=Gt.toValue(r),r[t=En(t)],n,o),An=e=>{var r=kn.length;return kn.push(e),r},Cn=(e,r)=>{var t=Fr[e];return void 0===t&&Mr(r+" has unknown type "+It(e)),t},Tn=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=Cn(s()[r+4*n>>2],"parameter "+n);return t},Pn=(e,r,t)=>{var n=[],o=e.toWireType(n,t);return n.length&&(s()[r>>2]=Gt.toHandle(n)),o},Dn=(e,r,t)=>{var n=Tn(e,r),o=n.shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===t&&s.push("obj");for(var l=["retType"],d=[o],u=0;u<e;++u)s.push("arg"+u),l.push("argType"+u),d.push(n[u]),a+=` var arg${u} = argType${u}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[u].argPackAdvance;for(a+=` var rv = ${1===t?"new func":"func.call"}(${s.join(", ")});\n`,u=0;u<e;++u)n[u].deleteObject&&(a+=` argType${u}.deleteObject(arg${u});\n`);o.isVoid||(l.push("emval_returnValue"),d.push(Pn),a+=" return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",l.push(a);var c=Bt(Function,l).apply(null,d),f=`methodCaller<(${n.map((e=>e.name)).join(", ")}) => ${o.name}>`;return An(dt(f,c))},In=e=>{var r=Gt.toValue(e);Rt(r),Nt(e)},Fn=e=>e%4==0&&(e%100!=0||e%400==0),$n=[0,31,60,91,121,152,182,213,244,274,305,335],Mn=[0,31,59,90,120,151,181,212,243,273,304,334],Rn=e=>(Fn(e.getFullYear())?$n:Mn)[e.getMonth()]+e.getDate()-1;function Bn(e,r,t){var n=Ye(e,r),o=new Date(1e3*n);i()[t>>2]=o.getSeconds(),i()[t+4>>2]=o.getMinutes(),i()[t+8>>2]=o.getHours(),i()[t+12>>2]=o.getDate(),i()[t+16>>2]=o.getMonth(),i()[t+20>>2]=o.getFullYear()-1900,i()[t+24>>2]=o.getDay();var a=0|Rn(o);i()[t+28>>2]=a,i()[t+36>>2]=-60*o.getTimezoneOffset();var s=new Date(o.getFullYear(),0,1),l=new Date(o.getFullYear(),6,1).getTimezoneOffset(),d=s.getTimezoneOffset(),u=0|(l!=d&&o.getTimezoneOffset()==Math.min(d,l));i()[t+32>>2]=u}var On,Wn=e=>{var r=Re(e)+1,t=mo(r);return t&&rn(e,t,r),t},Un=(e,r,t)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),l=o.getTimezoneOffset(),d=a.getTimezoneOffset(),u=Math.max(l,d);function c(e){var r=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return r?r[1]:"GMT"}s()[e>>2]=60*u,i()[r>>2]=Number(l!=d);var f=c(o),h=c(a),p=Wn(f),m=Wn(h);d<l?(s()[t>>2]=p,s()[t+4>>2]=m):(s()[t>>2]=m,s()[t+4>>2]=p)},xn=()=>{se("")},jn=()=>{},Ln=()=>Date.now(),zn=()=>{Ae+=1},Nn=()=>{throw zn(),"unwind"};On=()=>performance.timeOrigin+performance.now();var Vn=()=>_?A("os").cpus().length:navigator.hardwareConcurrency,Hn=()=>536870912,Gn=e=>{var r=(e-F.buffer.byteLength+65535)/65536;try{return F.grow(r),G(),1}catch(e){}},qn=e=>{var r=n().length;if((e>>>=0)<=r)return!1;var t=Hn();if(e>t)return!1;for(var o,a,i=1;i<=4;i*=2){var s=r*(1+.2/i);s=Math.min(s,e+100663296);var l=Math.min(t,(o=Math.max(e,s))+((a=65536)-o%a)%a);if(Gn(l))return!0}return!1},Kn={},Xn=()=>v||"./this.program",Jn=()=>{if(!Jn.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",_:Xn()};for(var r in Kn)void 0===Kn[r]?delete e[r]:e[r]=Kn[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Jn.strings=t}return Jn.strings},Zn=(e,r)=>{for(var n=0;n<e.length;++n)t()[r++>>0]=e.charCodeAt(n);t()[r>>0]=0},Yn=function(e,r){if(E)return Qe(5,1,e,r);var t=0;return Jn().forEach(((n,o)=>{var a=r+t;s()[e+4*o>>2]=a,Zn(n,a),t+=n.length+1})),0},Qn=function(e,r){if(E)return Qe(6,1,e,r);var t=Jn();s()[e>>2]=t.length;var n=0;return t.forEach((e=>n+=e.length+1)),s()[r>>2]=n,0};function eo(e){if(E)return Qe(7,1,e);try{var r=Je.getStreamFromFD(e);return Ke.close(r),0}catch(e){if(void 0===Ke||"ErrnoError"!==e.name)throw e;return e.errno}}function ro(e,r){if(E)return Qe(8,1,e,r);try{var n=Je.getStreamFromFD(e),a=n.tty?2:Ke.isDir(n.mode)?3:Ke.isLink(n.mode)?7:4;return t()[r>>0]=a,o()[r+2>>1]=0,ue=[0,(de=0,+Math.abs(de)>=1?de>0?+Math.floor(de/4294967296)>>>0:~~+Math.ceil((de-+(~~de>>>0))/4294967296)>>>0:0)],i()[r+8>>2]=ue[0],i()[r+12>>2]=ue[1],ue=[0,(de=0,+Math.abs(de)>=1?de>0?+Math.floor(de/4294967296)>>>0:~~+Math.ceil((de-+(~~de>>>0))/4294967296)>>>0:0)],i()[r+16>>2]=ue[0],i()[r+20>>2]=ue[1],0}catch(e){if(void 0===Ke||"ErrnoError"!==e.name)throw e;return e.errno}}var to=(e,r,n,o)=>{for(var a=0,i=0;i<n;i++){var l=s()[r>>2],d=s()[r+4>>2];r+=8;var u=Ke.read(e,t(),l,d,o);if(u<0)return-1;if(a+=u,u<d)break;void 0!==o&&(o+=u)}return a};function no(e,r,t,n){if(E)return Qe(9,1,e,r,t,n);try{var o=Je.getStreamFromFD(e),a=to(o,r,t);return s()[n>>2]=a,0}catch(e){if(void 0===Ke||"ErrnoError"!==e.name)throw e;return e.errno}}function oo(e,r,t,n,o){if(E)return Qe(10,1,e,r,t,n,o);var a=Ye(r,t);try{if(isNaN(a))return 61;var s=Je.getStreamFromFD(e);return Ke.llseek(s,a,n),ue=[s.position>>>0,(de=s.position,+Math.abs(de)>=1?de>0?+Math.floor(de/4294967296)>>>0:~~+Math.ceil((de-+(~~de>>>0))/4294967296)>>>0:0)],i()[o>>2]=ue[0],i()[o+4>>2]=ue[1],s.getdents&&0===a&&0===n&&(s.getdents=null),0}catch(e){if(void 0===Ke||"ErrnoError"!==e.name)throw e;return e.errno}}var ao=(e,r,n,o)=>{for(var a=0,i=0;i<n;i++){var l=s()[r>>2],d=s()[r+4>>2];r+=8;var u=Ke.write(e,t(),l,d,o);if(u<0)return-1;a+=u,void 0!==o&&(o+=u)}return a};function io(e,r,t,n){if(E)return Qe(11,1,e,r,t,n);try{var o=Je.getStreamFromFD(e),a=ao(o,r,t);return s()[n>>2]=a,0}catch(e){if(void 0===Ke||"ErrnoError"!==e.name)throw e;return e.errno}}or.init();var so=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=Ke.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},lo=365,uo=146;Object.defineProperties(so.prototype,{read:{get:function(){return(this.mode&lo)===lo},set:function(e){e?this.mode|=lo:this.mode&=~lo}},write:{get:function(){return(this.mode&uo)===uo},set:function(e){e?this.mode|=uo:this.mode&=~uo}},isFolder:{get:function(){return Ke.isDir(this.mode)}},isDevice:{get:function(){return Ke.isChrdev(this.mode)}}}),Ke.FSNode=so,Ke.createPreloadedFile=He,Ke.staticInit(),Pr(),Ar=f.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Cr=f.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},st(),et(),_t(),kt=f.UnboundTypeError=Dt(Error,"UnboundTypeError"),jt(),Ht();var co=[er,sr,wr,Er,kr,Yn,Qn,eo,ro,no,oo,io],fo={g:pr,s:gr,G:vr,m:yr,B:br,P:Er,D:kr,v:Tr,R:jr,O:$t,F:Wt,k:xt,Q:Kt,p:Zt,d:Qt,c:en,q:tn,l:cn,S:fn,y:vn,C:wn,E:mn,L:bn,j:Sn,r:Nt,i:Dn,h:In,t:Bn,x:Un,b:xn,n:jn,f:Ln,K:Nn,e:On,z:Vn,w:qn,I:Yn,J:Qn,A:tr,o:eo,H:ro,N:no,u:oo,M:io,a:F||f.wasmMemory},ho=ye(),po=e=>(po=ho.U)(e),mo=e=>(mo=ho.V)(e),go=f._pthread_self=()=>(go=f._pthread_self=ho.W)(),vo=()=>(vo=ho.X)();f.__emscripten_tls_init=()=>(f.__emscripten_tls_init=ho.Y)();var yo=e=>(yo=ho.Z)(e);f.__embind_initialize_bindings=()=>(f.__embind_initialize_bindings=ho._)();var wo=f.__emscripten_thread_init=(e,r,t,n,o,a)=>(wo=f.__emscripten_thread_init=ho.aa)(e,r,t,n,o,a);f.__emscripten_thread_crashed=()=>(f.__emscripten_thread_crashed=ho.ba)();var bo,_o=(e,r,t,n)=>(_o=ho.ca)(e,r,t,n),Eo=e=>(Eo=ho.da)(e),ko=f.__emscripten_thread_exit=e=>(ko=f.__emscripten_thread_exit=ho.ea)(e),So=()=>(So=ho.fa)(),Ao=(e,r)=>(Ao=ho.ga)(e,r),Co=()=>(Co=ho.ha)(),To=e=>(To=ho.ia)(e),Po=e=>(Po=ho.ja)(e),Do=e=>(Do=ho.ka)(e);function Io(){if(!(ne>0)){if(E)return u(f),Y(),void startWorker(f);Z(),ne>0||(f.setStatus?(f.setStatus("Running..."),setTimeout((function(){setTimeout((function(){f.setStatus("")}),1),e()}),1)):e())}function e(){bo||(bo=!0,f.calledRun=!0,V||(Y(),u(f),f.onRuntimeInitialized&&f.onRuntimeInitialized(),Q()))}}if(f.dynCall_jiji=(e,r,t,n,o)=>(f.dynCall_jiji=ho.la)(e,r,t,n,o),f._ff_h264_cabac_tables=98981,f.wasmMemory=F,f.keepRuntimeAlive=Ce,f.ExitStatus=we,f.PThread=or,oe=function e(){bo||Io(),bo||(oe=e)},f.preInit)for("function"==typeof f.preInit&&(f.preInit=[f.preInit]);f.preInit.length>0;)f.preInit.pop()();return Io(),r.ready}),t=(()=>{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-mt.js",document.baseURI).href;return async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,n,o;(o=r).ready=new Promise(((e,r)=>{t=e,n=r})),(o=void 0!==o?o:{}).locateFile=function(e,r){return"decoder-pro-audio.wasm"==e&&"undefined"!=typeof JESSIBUCA_PRO_AUDIO_WASM_URL&&""!=JESSIBUCA_PRO_AUDIO_WASM_URL?JESSIBUCA_PRO_AUDIO_WASM_URL:r+e};var a,i,s,l=Object.assign({},o),d="./this.program",u="object"==typeof window,c="function"==typeof importScripts,f="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,h="";function p(e){return o.locateFile?o.locateFile(e,h):h+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-mt.js",document.baseURI).href),g=m("fs"),v=m("path");h=c?v.dirname(h)+"/":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-mt.js",document.baseURI).href)),a=(e,r)=>(e=Y(e)?new URL(e):v.normalize(e),g.readFileSync(e,r?void 0:"utf8")),s=e=>{var r=a(e,!0);return r.buffer||(r=new Uint8Array(r)),r},i=function(e,r,t){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?t(e):r(n?o.buffer:o)}))},!o.thisProgram&&process.argv.length>1&&(d=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),o.inspect=()=>"[Emscripten Module object]"}else(u||c)&&(c?h=self.location.href:"undefined"!=typeof document&&document.currentScript&&(h=document.currentScript.src),e&&(h=e),h=0!==h.indexOf("blob:")?h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},c&&(s=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),i=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)});var y,w,b=o.print||console.log.bind(console),_=o.printErr||console.error.bind(console);Object.assign(o,l),l=null,o.arguments&&o.arguments,o.thisProgram&&(d=o.thisProgram),o.quit&&o.quit,o.wasmBinary&&(y=o.wasmBinary),"object"!=typeof WebAssembly&&G("no native wasm support detected");var E,k,S,A,C,T,P,D,I=!1;function F(e,r){e||G(r)}function $(){var e=w.buffer;o.HEAP8=E=new Int8Array(e),o.HEAP16=S=new Int16Array(e),o.HEAPU8=k=new Uint8Array(e),o.HEAPU16=A=new Uint16Array(e),o.HEAP32=C=new Int32Array(e),o.HEAPU32=T=new Uint32Array(e),o.HEAPF32=P=new Float32Array(e),o.HEAPF64=D=new Float64Array(e)}var M=[],R=[],B=[];function O(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)x(o.preRun.shift());oe(M)}function W(){o.noFSInit||De.init.initialized||De.init(),De.ignorePermissions=!1,oe(R)}function U(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)L(o.postRun.shift());oe(B)}function x(e){M.unshift(e)}function j(e){R.unshift(e)}function L(e){B.unshift(e)}var z=0,N=null;function V(e){z++,o.monitorRunDependencies&&o.monitorRunDependencies(z)}function H(e){if(z--,o.monitorRunDependencies&&o.monitorRunDependencies(z),0==z&&N){var r=N;N=null,r()}}function G(e){o.onAbort&&o.onAbort(e),_(e="Aborted("+e+")"),I=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var q,K,X,J="data:application/octet-stream;base64,",Z=e=>e.startsWith(J),Y=e=>e.startsWith("file://");function Q(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((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()})).catch((()=>Q(e)));if(i)return new Promise(((r,t)=>{i(e,(e=>r(new Uint8Array(e))),t)}))}return Promise.resolve().then((()=>Q(e)))}function re(e,r,t){return ee(e).then((e=>WebAssembly.instantiate(e,r))).then((e=>e)).then(t,(e=>{_(`failed to asynchronously prepare wasm: ${e}`),G(e)}))}function te(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||Z(r)||Y(r)||f||"function"!=typeof fetch?re(r,t,n):fetch(r,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,t).then(n,(function(e){return _(`wasm streaming compile failed: ${e}`),_("falling back to ArrayBuffer instantiation"),re(r,t,n)}))))}function ne(){var e={a:hn};function r(e,r){return pn=e.exports,w=pn.G,$(),Mr=pn.J,j(pn.H),H(),pn}if(V(),o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(e){_(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return te(y,q,e,(function(e){r(e.instance)})).catch(n),{}}o.locateFile?Z(q="decoder-pro-audio.wasm")||(q=p(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-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,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},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,r,t)=>{throw new ae(e).init(r,t),e},se=e=>(C[gn()>>2]=e,e),le={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=le.isAbs(e),t="/"===e.substr(-1);return(e=le.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=le.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=le.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments);return le.normalize(e.join("/"))},join2:(e,r)=>le.normalize(e+"/"+r)},de=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(f)try{var e=m("crypto");if(e.randomFillSync)return r=>e.randomFillSync(r);var r=e.randomBytes;return e=>(e.set(r(e.byteLength)),e)}catch(e){}G("initRandomDevice")},ue=e=>(ue=de())(e),ce={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:De.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=le.isAbs(n)}return(r?"/":"")+(e=le.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=ce.resolve(e).substr(1),r=ce.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var l=[];for(s=i;s<n.length;s++)l.push("..");return(l=l.concat(o.slice(i))).join("/")}},fe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,he=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&fe)return fe.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var l=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|l:(7&i)<<18|s<<12|l<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var d=i-65536;a+=String.fromCharCode(55296|d>>10,56320|1023&d)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},pe=[],me=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},ge=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+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(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o};function ve(e,r,t){var n=t>0?t:me(e)+1,o=new Array(n),a=ge(e,o,0,o.length);return r&&(o.length=a),o}var ye=()=>{if(!pe.length){var e=null;if(f){var r=Buffer.alloc(256),t=0,n=process.stdin.fd;try{t=g.readSync(n,r)}catch(e){if(!e.toString().includes("EOF"))throw e;t=0}e=t>0?r.slice(0,t).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;pe=ve(e,!0)}return pe.shift()},we={ttys:[],init(){},shutdown(){},register(e,r){we.ttys[e]={input:[],output:[],ops:r},De.registerDevice(e,we.stream_ops)},stream_ops:{open(e){var r=we.ttys[e.node.rdev];if(!r)throw new De.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new De.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 De.ErrnoError(29)}if(void 0===s&&0===a)throw new De.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new De.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(e){throw new De.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>ye(),put_char(e,r){null===r||10===r?(b(he(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(b(he(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,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(_(he(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(_(he(e.output,0)),e.output=[])}}},be=e=>{G()},_e={ops_table:null,mount:e=>_e.createNode(null,"/",16895,0),createNode(e,r,t,n){if(De.isBlkdev(t)||De.isFIFO(t))throw new De.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:De.chrdev_stream_ops}});var o=De.createNode(e,r,t,n);return De.isDir(o.mode)?(o.node_ops=_e.ops_table.dir.node,o.stream_ops=_e.ops_table.dir.stream,o.contents={}):De.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):De.isLink(o.mode)?(o.node_ops=_e.ops_table.link.node,o.stream_ops=_e.ops_table.link.stream):De.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[r]=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,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=De.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,De.isDir(e.mode)?r.size=4096:De.isFile(e.mode)?r.size=e.usedBytes:De.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&_e.resizeFileStorage(e,r.size)},lookup(e,r){throw De.genericErrors[44]},mknod:(e,r,t,n)=>_e.createNode(e,r,t,n),rename(e,r,t){if(De.isDir(e.mode)){var n;try{n=De.lookupNode(r,t)}catch(e){}if(n)for(var o in n.contents)throw new De.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir(e,r){var t=De.lookupNode(e,r);for(var n in t.contents)throw new De.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink(e,r,t){var n=_e.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!De.isLink(e.mode))throw new De.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,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)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,t,n,o,a){if(r.buffer===E.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(t,t+n),o),n}if(_e.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&De.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new De.ErrnoError(28);return n},allocate(e,r,t){_e.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap(e,r,t,n,o){if(!De.isFile(e.node.mode))throw new De.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==E.buffer){if((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),i=!0,!(a=be()))throw new De.ErrnoError(48);E.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>(_e.stream_ops.write(e,r,0,n,t,!1),0)}},Ee=(e,r,t,n)=>{var o=n?"":`al ${e}`;i(e,(t=>{F(t,`Loading data file "${e}" failed (no arrayBuffer).`),r(new Uint8Array(t)),o&&H()}),(r=>{if(!t)throw`Loading data file "${e}" failed.`;t()})),o&&V()},ke=(e,r,t,n,o,a)=>{De.createDataFile(e,r,t,n,o,a)},Se=o.preloadPlugins||[],Ae=(e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return Se.forEach((a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)})),o},Ce=(e,r,t,n,o,a,i,s,l,d)=>{var u=r?ce.resolve(le.join2(e,r)):e;function c(t){function c(t){d&&d(),s||ke(e,r,t,n,o,l),a&&a(),H()}Ae(t,u,c,(()=>{i&&i(),H()}))||c(t)}V(),"string"==typeof t?Ee(t,(e=>c(e)),i):c(t)},Te=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw new Error(`Unknown file open mode: ${e}`);return r},Pe=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},De={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(e=ce.resolve(e)))return{path:"",node:null};if(r=Object.assign({follow_mount:!0,recurse_count:0},r),r.recurse_count>8)throw new De.ErrnoError(32);for(var t=e.split("/").filter((e=>!!e)),n=De.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&r.parent)break;if(n=De.lookupNode(n,t[a]),o=le.join2(o,t[a]),De.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;De.isLink(n.mode);){var l=De.readlink(o);if(o=ce.resolve(le.dirname(o),l),n=De.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new De.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var r;;){if(De.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%De.nameTable.length},hashAddNode(e){var r=De.hashName(e.parent.id,e.name);e.name_next=De.nameTable[r],De.nameTable[r]=e},hashRemoveNode(e){var r=De.hashName(e.parent.id,e.name);if(De.nameTable[r]===e)De.nameTable[r]=e.name_next;else for(var t=De.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=De.mayLookup(e);if(t)throw new De.ErrnoError(t,e);for(var n=De.hashName(e.id,r),o=De.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return De.lookup(e,r)},createNode(e,r,t,n){var o=new De.FSNode(e,r,t,n);return De.hashAddNode(o),o},destroyNode(e){De.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 r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>De.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup(e){var r=De.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){try{De.lookupNode(e,r);return 20}catch(e){}return De.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=De.lookupNode(e,r)}catch(e){return e.errno}var o=De.nodePermissions(e,"wx");if(o)return o;if(t){if(!De.isDir(n.mode))return 54;if(De.isRoot(n)||De.getPath(n)===De.cwd())return 10}else if(De.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?De.isLink(e.mode)?32:De.isDir(e.mode)&&("r"!==De.flagsToPermissionString(r)||512&r)?31:De.nodePermissions(e,De.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=De.MAX_OPEN_FDS;e++)if(!De.streams[e])return e;throw new De.ErrnoError(33)},getStreamChecked(e){var r=De.getStream(e);if(!r)throw new De.ErrnoError(8);return r},getStream:e=>De.streams[e],createStream(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return De.FSStream||(De.FSStream=function(){this.shared={}},De.FSStream.prototype={},Object.defineProperties(De.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 De.FSStream,e),-1==r&&(r=De.nextfd()),e.fd=r,De.streams[r]=e,e},closeStream(e){De.streams[e]=null},chrdev_stream_ops:{open(e){var r=De.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new De.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){De.devices[e]={stream_ops:r}},getDevice:e=>De.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),De.syncFSRequests++,De.syncFSRequests>1&&_(`warning: ${De.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=De.getMounts(De.root.mount),n=0;function o(e){return De.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach((r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)}))},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&De.root)throw new De.ErrnoError(10);if(!o&&!a){var i=De.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,De.isMountpoint(n))throw new De.ErrnoError(10);if(!De.isDir(n.mode))throw new De.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},l=e.mount(s);return l.mount=s,s.root=l,o?De.root=l:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),l},unmount(e){var r=De.lookupPath(e,{follow_mount:!1});if(!De.isMountpoint(r.node))throw new De.ErrnoError(28);var t=r.node,n=t.mounted,o=De.getMounts(n);Object.keys(De.nameTable).forEach((e=>{for(var r=De.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&De.destroyNode(r),r=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=De.lookupPath(e,{parent:!0}).node,o=le.basename(e);if(!o||"."===o||".."===o)throw new De.ErrnoError(28);var a=De.mayCreate(n,o);if(a)throw new De.ErrnoError(a);if(!n.node_ops.mknod)throw new De.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,De.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,De.mknod(e,r,0)),mkdirTree(e,r){for(var t=e.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{De.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,De.mknod(e,r,t)),symlink(e,r){if(!ce.resolve(e))throw new De.ErrnoError(44);var t=De.lookupPath(r,{parent:!0}).node;if(!t)throw new De.ErrnoError(44);var n=le.basename(r),o=De.mayCreate(t,n);if(o)throw new De.ErrnoError(o);if(!t.node_ops.symlink)throw new De.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=le.dirname(e),a=le.dirname(r),i=le.basename(e),s=le.basename(r);if(t=De.lookupPath(e,{parent:!0}).node,n=De.lookupPath(r,{parent:!0}).node,!t||!n)throw new De.ErrnoError(44);if(t.mount!==n.mount)throw new De.ErrnoError(75);var l,d=De.lookupNode(t,i),u=ce.relative(e,a);if("."!==u.charAt(0))throw new De.ErrnoError(28);if("."!==(u=ce.relative(r,o)).charAt(0))throw new De.ErrnoError(55);try{l=De.lookupNode(n,s)}catch(e){}if(d!==l){var c=De.isDir(d.mode),f=De.mayDelete(t,i,c);if(f)throw new De.ErrnoError(f);if(f=l?De.mayDelete(n,s,c):De.mayCreate(n,s))throw new De.ErrnoError(f);if(!t.node_ops.rename)throw new De.ErrnoError(63);if(De.isMountpoint(d)||l&&De.isMountpoint(l))throw new De.ErrnoError(10);if(n!==t&&(f=De.nodePermissions(t,"w")))throw new De.ErrnoError(f);De.hashRemoveNode(d);try{t.node_ops.rename(d,n,s)}catch(e){throw e}finally{De.hashAddNode(d)}}},rmdir(e){var r=De.lookupPath(e,{parent:!0}).node,t=le.basename(e),n=De.lookupNode(r,t),o=De.mayDelete(r,t,!0);if(o)throw new De.ErrnoError(o);if(!r.node_ops.rmdir)throw new De.ErrnoError(63);if(De.isMountpoint(n))throw new De.ErrnoError(10);r.node_ops.rmdir(r,t),De.destroyNode(n)},readdir(e){var r=De.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new De.ErrnoError(54);return r.node_ops.readdir(r)},unlink(e){var r=De.lookupPath(e,{parent:!0}).node;if(!r)throw new De.ErrnoError(44);var t=le.basename(e),n=De.lookupNode(r,t),o=De.mayDelete(r,t,!1);if(o)throw new De.ErrnoError(o);if(!r.node_ops.unlink)throw new De.ErrnoError(63);if(De.isMountpoint(n))throw new De.ErrnoError(10);r.node_ops.unlink(r,t),De.destroyNode(n)},readlink(e){var r=De.lookupPath(e).node;if(!r)throw new De.ErrnoError(44);if(!r.node_ops.readlink)throw new De.ErrnoError(28);return ce.resolve(De.getPath(r.parent),r.node_ops.readlink(r))},stat(e,r){var t=De.lookupPath(e,{follow:!r}).node;if(!t)throw new De.ErrnoError(44);if(!t.node_ops.getattr)throw new De.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>De.stat(e,!0),chmod(e,r,t){var n;"string"==typeof e?n=De.lookupPath(e,{follow:!t}).node:n=e;if(!n.node_ops.setattr)throw new De.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod(e,r){De.chmod(e,r,!0)},fchmod(e,r){var t=De.getStreamChecked(e);De.chmod(t.node,r)},chown(e,r,t,n){var o;"string"==typeof e?o=De.lookupPath(e,{follow:!n}).node:o=e;if(!o.node_ops.setattr)throw new De.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,r,t){De.chown(e,r,t,!0)},fchown(e,r,t){var n=De.getStreamChecked(e);De.chown(n.node,r,t)},truncate(e,r){if(r<0)throw new De.ErrnoError(28);var t;"string"==typeof e?t=De.lookupPath(e,{follow:!0}).node:t=e;if(!t.node_ops.setattr)throw new De.ErrnoError(63);if(De.isDir(t.mode))throw new De.ErrnoError(31);if(!De.isFile(t.mode))throw new De.ErrnoError(28);var n=De.nodePermissions(t,"w");if(n)throw new De.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate(e,r){var t=De.getStreamChecked(e);if(0==(2097155&t.flags))throw new De.ErrnoError(28);De.truncate(t.node,r)},utime(e,r,t){var n=De.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new De.ErrnoError(44);var n;if(t=void 0===t?438:t,t=64&(r="string"==typeof r?Te(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=le.normalize(e);try{n=De.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}var a=!1;if(64&r)if(n){if(128&r)throw new De.ErrnoError(20)}else n=De.mknod(e,t,0),a=!0;if(!n)throw new De.ErrnoError(44);if(De.isChrdev(n.mode)&&(r&=-513),65536&r&&!De.isDir(n.mode))throw new De.ErrnoError(54);if(!a){var i=De.mayOpen(n,r);if(i)throw new De.ErrnoError(i)}512&r&&!a&&De.truncate(n,0),r&=-131713;var s=De.createStream({node:n,path:De.getPath(n),flags:r,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&r||(De.readFiles||(De.readFiles={}),e in De.readFiles||(De.readFiles[e]=1)),s},close(e){if(De.isClosed(e))throw new De.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{De.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(De.isClosed(e))throw new De.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new De.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new De.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new De.ErrnoError(28);if(De.isClosed(e))throw new De.ErrnoError(8);if(1==(2097155&e.flags))throw new De.ErrnoError(8);if(De.isDir(e.node.mode))throw new De.ErrnoError(31);if(!e.stream_ops.read)throw new De.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new De.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new De.ErrnoError(28);if(De.isClosed(e))throw new De.ErrnoError(8);if(0==(2097155&e.flags))throw new De.ErrnoError(8);if(De.isDir(e.node.mode))throw new De.ErrnoError(31);if(!e.stream_ops.write)throw new De.ErrnoError(28);e.seekable&&1024&e.flags&&De.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new De.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},allocate(e,r,t){if(De.isClosed(e))throw new De.ErrnoError(8);if(r<0||t<=0)throw new De.ErrnoError(28);if(0==(2097155&e.flags))throw new De.ErrnoError(8);if(!De.isFile(e.node.mode)&&!De.isDir(e.node.mode))throw new De.ErrnoError(43);if(!e.stream_ops.allocate)throw new De.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap(e,r,t,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&e.flags))throw new De.ErrnoError(2);if(1==(2097155&e.flags))throw new De.ErrnoError(2);if(!e.stream_ops.mmap)throw new De.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,munmap:e=>0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new De.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(`Invalid encoding type "${r.encoding}"`);var t,n=De.open(e,r.flags),o=De.stat(e).size,a=new Uint8Array(o);return De.read(n,a,0,o,0),"utf8"===r.encoding?t=he(a,0):"binary"===r.encoding&&(t=a),De.close(n),t},writeFile(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.flags=t.flags||577;var n=De.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(me(r)+1),a=ge(r,o,0,o.length);De.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");De.write(n,r,0,r.byteLength,void 0,t.canOwn)}De.close(n)},cwd:()=>De.currentPath,chdir(e){var r=De.lookupPath(e,{follow:!0});if(null===r.node)throw new De.ErrnoError(44);if(!De.isDir(r.node.mode))throw new De.ErrnoError(54);var t=De.nodePermissions(r.node,"x");if(t)throw new De.ErrnoError(t);De.currentPath=r.path},createDefaultDirectories(){De.mkdir("/tmp"),De.mkdir("/home"),De.mkdir("/home/web_user")},createDefaultDevices(){De.mkdir("/dev"),De.registerDevice(De.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n}),De.mkdev("/dev/null",De.makedev(1,3)),we.register(De.makedev(5,0),we.default_tty_ops),we.register(De.makedev(6,0),we.default_tty1_ops),De.mkdev("/dev/tty",De.makedev(5,0)),De.mkdev("/dev/tty1",De.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=ue(e).byteLength),e[--r]);De.createDevice("/dev","random",t),De.createDevice("/dev","urandom",t),De.mkdir("/dev/shm"),De.mkdir("/dev/shm/tmp")},createSpecialDirectories(){De.mkdir("/proc");var e=De.mkdir("/proc/self");De.mkdir("/proc/self/fd"),De.mount({mount(){var r=De.createNode(e,"fd",16895,73);return r.node_ops={lookup(e,r){var t=+r,n=De.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams(){o.stdin?De.createDevice("/dev","stdin",o.stdin):De.symlink("/dev/tty","/dev/stdin"),o.stdout?De.createDevice("/dev","stdout",null,o.stdout):De.symlink("/dev/tty","/dev/stdout"),o.stderr?De.createDevice("/dev","stderr",null,o.stderr):De.symlink("/dev/tty1","/dev/stderr"),De.open("/dev/stdin",0),De.open("/dev/stdout",1),De.open("/dev/stderr",1)},ensureErrnoError(){De.ErrnoError||(De.ErrnoError=function(e,r){this.name="ErrnoError",this.node=r,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},De.ErrnoError.prototype=new Error,De.ErrnoError.prototype.constructor=De.ErrnoError,[44].forEach((e=>{De.genericErrors[e]=new De.ErrnoError(e),De.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){De.ensureErrnoError(),De.nameTable=new Array(4096),De.mount(_e,{},"/"),De.createDefaultDirectories(),De.createDefaultDevices(),De.createSpecialDirectories(),De.filesystems={MEMFS:_e}},init(e,r,t){De.init.initialized=!0,De.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=r||o.stdout,o.stderr=t||o.stderr,De.createStandardStreams()},quit(){De.init.initialized=!1;for(var e=0;e<De.streams.length;e++){var r=De.streams[e];r&&De.close(r)}},findObject(e,r){var t=De.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=De.lookupPath(e,{follow:!r})).path}catch(e){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=De.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=le.basename(e),n=De.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(e){t.error=e.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:De.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=le.join2(e,a);try{De.mkdir(i)}catch(e){}e=i}}return i},createFile(e,r,t,n,o){var a=le.join2("string"==typeof e?e:De.getPath(e),r),i=Pe(n,o);return De.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:De.getPath(e),i=r?le.join2(e,r):e);var s=Pe(n,o),l=De.create(i,s);if(t){if("string"==typeof t){for(var d=new Array(t.length),u=0,c=t.length;u<c;++u)d[u]=t.charCodeAt(u);t=d}De.chmod(l,146|s);var f=De.open(l,577);De.write(f,t,0,t.length,0,a),De.close(f),De.chmod(l,s)}},createDevice(e,r,t,n){var o=le.join2("string"==typeof e?e:De.getPath(e),r),a=Pe(!!t,!!n);De.createDevice.major||(De.createDevice.major=64);var i=De.makedev(De.createDevice.major++,0);return De.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var l;try{l=t()}catch(e){throw new De.ErrnoError(29)}if(void 0===l&&0===i)throw new De.ErrnoError(6);if(null==l)break;i++,r[n+s]=l}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(e){throw new De.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),De.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 De.ErrnoError(29)}},createLazyFile(e,r,t,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=this;s.setDataGetter((e=>{var r=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,r)=>{if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),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 "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):ve(o.responseText||"",!0)})(r,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:t};var l=De.createFile(e,r,s,n,o);s.contents?l.contents=s.contents:s.url&&(l.contents=null,l.url=s.url),Object.defineProperties(l,{usedBytes:{get:function(){return this.contents.length}}});var d={};function u(e,r,t,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++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(l.stream_ops).forEach((e=>{var r=l.stream_ops[e];d[e]=function(){return De.forceLoadFile(l),r.apply(null,arguments)}})),d.read=(e,r,t,n,o)=>(De.forceLoadFile(l),u(e,r,t,n,o)),d.mmap=(e,r,t,n,o)=>{De.forceLoadFile(l);var a=be();if(!a)throw new De.ErrnoError(48);return u(e,E,a,r,t),{ptr:a,allocated:!0}},l.stream_ops=d,l}},Ie=(e,r)=>e?he(k,e,r):"",Fe={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(le.isAbs(r))return r;var n;-100===e?n=De.cwd():n=Fe.getStreamFromFD(e).path;if(0==r.length){if(!t)throw new De.ErrnoError(44);return n}return le.join2(n,r)},doStat(e,r,t){try{var n=e(r)}catch(e){if(e&&e.node&&le.normalize(r)!==le.normalize(De.getPath(e.node)))return-54;throw e}C[t>>2]=n.dev,C[t+4>>2]=n.mode,T[t+8>>2]=n.nlink,C[t+12>>2]=n.uid,C[t+16>>2]=n.gid,C[t+20>>2]=n.rdev,X=[n.size>>>0,(K=n.size,+Math.abs(K)>=1?K>0?+Math.floor(K/4294967296)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)],C[t+24>>2]=X[0],C[t+28>>2]=X[1],C[t+32>>2]=4096,C[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return X=[Math.floor(o/1e3)>>>0,(K=Math.floor(o/1e3),+Math.abs(K)>=1?K>0?+Math.floor(K/4294967296)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)],C[t+40>>2]=X[0],C[t+44>>2]=X[1],T[t+48>>2]=o%1e3*1e3,X=[Math.floor(a/1e3)>>>0,(K=Math.floor(a/1e3),+Math.abs(K)>=1?K>0?+Math.floor(K/4294967296)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)],C[t+56>>2]=X[0],C[t+60>>2]=X[1],T[t+64>>2]=a%1e3*1e3,X=[Math.floor(i/1e3)>>>0,(K=Math.floor(i/1e3),+Math.abs(K)>=1?K>0?+Math.floor(K/4294967296)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)],C[t+72>>2]=X[0],C[t+76>>2]=X[1],T[t+80>>2]=i%1e3*1e3,X=[n.ino>>>0,(K=n.ino,+Math.abs(K)>=1?K>0?+Math.floor(K/4294967296)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)],C[t+88>>2]=X[0],C[t+92>>2]=X[1],0},doMsync(e,r,t,n,o){if(!De.isFile(r.node.mode))throw new De.ErrnoError(43);if(2&n)return 0;var a=k.slice(e,e+t);De.msync(r,a,o,t,n)},varargs:void 0,get(){var e=C[+Fe.varargs>>2];return Fe.varargs+=4,e},getp:()=>Fe.get(),getStr:e=>Ie(e),getStreamFromFD:e=>De.getStreamChecked(e)};function $e(e,r,t){Fe.varargs=t;try{var n=Fe.getStreamFromFD(e);switch(r){case 0:if((o=Fe.get())<0)return-28;for(;De.streams[o];)o++;return De.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=Fe.get();return n.flags|=o,0;case 5:o=Fe.getp();return S[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return se(28),-1}}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return-e.errno}}function Me(e,r,t,n){Fe.varargs=n;try{r=Fe.getStr(r),r=Fe.calculateAt(e,r);var o=n?Fe.get():0;return De.open(r,t,o).fd}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return-e.errno}}var Re,Be,Oe,We=(e,r,t,n,o)=>{},Ue=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);Re=e},xe=e=>{for(var r="",t=e;k[t];)r+=Re[k[t++]];return r},je={},Le={},ze={},Ne=e=>{throw new Be(e)},Ve=e=>{throw new Oe(e)},He=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&Ve("Mismatched type converter count");for(var o=0;o<e.length;++o)qe(e[o],n[o])}e.forEach((function(e){ze[e]=r}));var o=new Array(r.length),a=[],i=0;r.forEach(((e,r)=>{Le.hasOwnProperty(e)?o[r]=Le[e]:(a.push(e),je.hasOwnProperty(e)||(je[e]=[]),je[e].push((()=>{o[r]=Le[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function Ge(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=r.name;if(e||Ne(`type "${n}" must have a positive integer typeid pointer`),Le.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;Ne(`Cannot register type '${n}' twice`)}if(Le[e]=r,delete ze[e],je.hasOwnProperty(e)){var o=je[e];delete je[e],o.forEach((e=>e()))}}function qe(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ge(e,r,t)}var Ke,Xe=8,Je=(e,r,t,n)=>{qe(e,{name:r=xe(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:Xe,readValueFromPointer:function(e){return this.fromWireType(k[e])},destructorFunction:null})},Ze=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Ye=e=>{Ne(e.$$.ptrType.registeredClass.name+" instance already deleted")},Qe=!1,er=e=>{},rr=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},tr=e=>{e.count.value-=1,0===e.count.value&&rr(e)},nr=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=nr(e,r,t.baseClass);return null===n?null:t.downcast(n)},or={},ar=()=>Object.keys(cr).length,ir=()=>{var e=[];for(var r in cr)cr.hasOwnProperty(r)&&e.push(cr[r]);return e},sr=[],lr=()=>{for(;sr.length;){var e=sr.pop();e.$$.deleteScheduled=!1,e.delete()}},dr=e=>{Ke=e,sr.length&&Ke&&Ke(lr)},ur=()=>{o.getInheritedInstanceCount=ar,o.getLiveInheritedInstances=ir,o.flushPendingDeletes=lr,o.setDelayFunction=dr},cr={},fr=(e,r)=>{for(void 0===r&&Ne("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},hr=(e,r)=>(r=fr(e,r),cr[r]),pr=(e,r)=>(r.ptrType&&r.ptr||Ve("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!==!!r.smartPtr&&Ve("Both smartPtrType and smartPtr must be specified"),r.count={value:1},gr(Object.create(e,{$$:{value:r}})));function mr(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=hr(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?pr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):pr(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(r),s=or[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var l=nr(r,this.registeredClass,a.registeredClass);return null===l?o.call(this):this.isSmartPointer?pr(a.registeredClass.instancePrototype,{ptrType:a,ptr:l,smartPtrType:this,smartPtr:e}):pr(a.registeredClass.instancePrototype,{ptrType:a,ptr:l})}var gr=e=>"undefined"==typeof FinalizationRegistry?(gr=e=>e,e):(Qe=new FinalizationRegistry((e=>{tr(e.$$)})),gr=e=>{var r=e.$$;if(!!r.smartPtr){var t={$$:r};Qe.register(e,t,e)}return e},er=e=>Qe.unregister(e),gr(e)),vr=()=>{Object.assign(yr.prototype,{isAliasOf(e){if(!(this instanceof yr))return!1;if(!(e instanceof yr))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,o=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&t===o},clone(){if(this.$$.ptr||Ye(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=gr(Object.create(Object.getPrototypeOf(this),{$$:{value:Ze(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Ye(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ne("Object already scheduled for deletion"),er(this),tr(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&&Ne("Object already scheduled for deletion"),sr.push(this),1===sr.length&&Ke&&Ke(lr),this.$$.deleteScheduled=!0,this}})};function yr(){}var wr=(e,r)=>Object.defineProperty(r,"name",{value:e}),br=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||Ne(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},_r=(e,r,t)=>{o.hasOwnProperty(e)?((void 0===t||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[t])&&Ne(`Cannot register public name '${e}' twice`),br(o,e,e),o.hasOwnProperty(t)&&Ne(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[e].overloadTable[t]=r):(o[e]=r,void 0!==t&&(o[e].numArguments=t))},Er=48,kr=57,Sr=e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=Er&&r<=kr?`_${e}`:e};function Ar(e,r,t,n,o,a,i,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Cr=(e,r,t)=>{for(;r!==t;)r.upcast||Ne(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Tr(e,r){if(null===r)return this.isReference&&Ne(`null is not a valid ${this.name}`),0;r.$$||Ne(`Cannot pass "${lt(r)}" as a ${this.name}`),r.$$.ptr||Ne(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass;return Cr(r.$$.ptr,t,this.registeredClass)}function Pr(e,r){var t;if(null===r)return this.isReference&&Ne(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;r.$$||Ne(`Cannot pass "${lt(r)}" as a ${this.name}`),r.$$.ptr||Ne(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&Ne(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=Cr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&Ne("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:Ne(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var o=r.clone();t=this.rawShare(t,at.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,t)}break;default:Ne("Unsupporting sharing policy")}return t}function Dr(e,r){if(null===r)return this.isReference&&Ne(`null is not a valid ${this.name}`),0;r.$$||Ne(`Cannot pass "${lt(r)}" as a ${this.name}`),r.$$.ptr||Ne(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&Ne(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass;return Cr(r.$$.ptr,t,this.registeredClass)}function Ir(e){return this.fromWireType(T[e>>2])}var Fr=()=>{Object.assign($r.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:Xe,readValueFromPointer:Ir,deleteObject(e){null!==e&&e.delete()},fromWireType:mr})};function $r(e,r,t,n,o,a,i,s,l,d,u){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=d,this.rawDestructor=u,o||void 0!==r.baseClass?this.toWireType=Pr:n?(this.toWireType=Tr,this.destructorFunction=null):(this.toWireType=Dr,this.destructorFunction=null)}var Mr,Rr,Br=(e,r,t)=>{o.hasOwnProperty(e)||Ve("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==t?o[e].overloadTable[t]=r:(o[e]=r,o[e].argCount=t)},Or=(e,r,t)=>{var n=o["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)},Wr=[],Ur=e=>{var r=Wr[e];return r||(e>=Wr.length&&(Wr.length=e+1),Wr[e]=r=Mr.get(e)),r},xr=(e,r,t)=>e.includes("j")?Or(e,r,t):Ur(r).apply(null,t),jr=(e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),xr(e,r,t)}},Lr=(e,r)=>{var t=(e=xe(e)).includes("j")?jr(e,r):Ur(r);return"function"!=typeof t&&Ne(`unknown function pointer with signature ${e}: ${r}`),t},zr=(e,r)=>{var t=wr(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t},Nr=e=>{var r=vn(e),t=xe(r);return mn(r),t},Vr=(e,r)=>{var t=[],n={};throw r.forEach((function e(r){n[r]||Le[r]||(ze[r]?ze[r].forEach(e):(t.push(r),n[r]=!0))})),new Rr(`${e}: `+t.map(Nr).join([", "]))},Hr=(e,r,t,n,o,a,i,s,l,d,u,c,f)=>{u=xe(u),a=Lr(o,a),s&&(s=Lr(i,s)),d&&(d=Lr(l,d)),f=Lr(c,f);var h=Sr(u);_r(h,(function(){Vr(`Cannot construct ${u} due to unbound types`,[n])})),He([e,r,t],n?[n]:[],(function(r){var t,o;r=r[0],o=n?(t=r.registeredClass).instancePrototype:yr.prototype;var i=wr(u,(function(){if(Object.getPrototypeOf(this)!==l)throw new Be("Use 'new' to construct "+u);if(void 0===c.constructor_body)throw new Be(u+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new Be(`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)})),l=Object.create(o,{constructor:{value:i}});i.prototype=l;var c=new Ar(u,i,l,f,t,a,s,d);c.baseClass&&(void 0===c.baseClass.__derivedClasses&&(c.baseClass.__derivedClasses=[]),c.baseClass.__derivedClasses.push(c));var p=new $r(u,c,!0,!1,!1),m=new $r(u+"*",c,!1,!1,!1),g=new $r(u+" const*",c,!1,!0,!1);return or[e]={pointerType:m,constPointerType:g},Br(h,i),[p,m,g]}))},Gr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(T[r+4*n>>2]);return t},qr=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function Kr(e,r){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var t=wr(e.name||"unknownFunctionName",(function(){}));t.prototype=e.prototype;var n=new t,o=e.apply(n,r);return o instanceof Object?o:n}function Xr(e,r,t,n,o,a){var i=r.length;i<2&&Ne("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,l=!1,d=1;d<r.length;++d)if(null!==r[d]&&void 0===r[d].destructorFunction){l=!0;break}var u="void"!==r[0].name,c="",f="";for(d=0;d<i-2;++d)c+=(0!==d?", ":"")+"arg"+d,f+=(0!==d?", ":"")+"arg"+d+"Wired";var h=`\n return function (${c}) {\n if (arguments.length !== ${i-2}) {\n throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${i-2}');\n }`;l&&(h+="var destructors = [];\n");var p=l?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[Ne,n,o,qr,r[0],r[1]];s&&(h+="var thisWired = classParam.toWireType("+p+", this);\n");for(d=0;d<i-2;++d)h+="var arg"+d+"Wired = argType"+d+".toWireType("+p+", arg"+d+"); // "+r[d+2].name+"\n",m.push("argType"+d),g.push(r[d+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),h+=(u||a?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",l)h+="runDestructors(destructors);\n";else for(d=s?1:2;d<r.length;++d){var v=1===d?"thisWired":"arg"+(d-2)+"Wired";null!==r[d].destructorFunction&&(h+=v+"_dtor("+v+"); // "+r[d].name+"\n",m.push(v+"_dtor"),g.push(r[d].destructorFunction))}u&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",m.push(h);var y=Kr(Function,m).apply(null,g);return wr(e,y)}var Jr=(e,r,t,n,o,a)=>{var i=Gr(r,t);o=Lr(n,o),He([],[e],(function(e){var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new Be(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[r-1]=()=>{Vr(`Cannot construct ${e.name} due to unbound types`,i)},He([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[r-1]=Xr(t,n,null,o,a),[]))),[]}))},Zr=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},Yr=(e,r,t,n,o,a,i,s,l)=>{var d=Gr(t,n);r=xe(r),r=Zr(r),a=Lr(o,a),He([],[e],(function(e){var n=`${(e=e[0]).name}.${r}`;function o(){Vr(`Cannot call ${n} due to unbound types`,d)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(r);var u=e.registeredClass.instancePrototype,c=u[r];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===t-2?(o.argCount=t-2,o.className=e.name,u[r]=o):(br(u,r,n),u[r].overloadTable[t-2]=o),He([],d,(function(o){var s=Xr(n,o,e,a,i,l);return void 0===u[r].overloadTable?(s.argCount=t-2,u[r]=s):u[r].overloadTable[t-2]=s,[]})),[]}))};function Qr(){Object.assign(et.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function et(){this.allocated=[void 0],this.freelist=[]}var rt=new et,tt=e=>{e>=rt.reserved&&0==--rt.get(e).refcount&&rt.free(e)},nt=()=>{for(var e=0,r=rt.reserved;r<rt.allocated.length;++r)void 0!==rt.allocated[r]&&++e;return e},ot=()=>{rt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),rt.reserved=rt.allocated.length,o.count_emval_handles=nt},at={toValue:e=>(e||Ne("Cannot use deleted val. handle = "+e),rt.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 rt.allocate({refcount:1,value:e})}}};function it(e){return this.fromWireType(C[e>>2])}var st=(e,r)=>{qe(e,{name:r=xe(r),fromWireType:e=>{var r=at.toValue(e);return tt(e),r},toWireType:(e,r)=>at.toHandle(r),argPackAdvance:Xe,readValueFromPointer:it,destructorFunction:null})},lt=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},dt=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(P[e>>2])};case 8:return function(e){return this.fromWireType(D[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},ut=(e,r,t)=>{qe(e,{name:r=xe(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:Xe,readValueFromPointer:dt(r,t),destructorFunction:null})},ct=(e,r,t)=>{switch(r){case 1:return t?e=>E[e>>0]:e=>k[e>>0];case 2:return t?e=>S[e>>1]:e=>A[e>>1];case 4:return t?e=>C[e>>2]:e=>T[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},ft=(e,r,t,n,o)=>{r=xe(r);var a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i}var s=r.includes("unsigned");qe(e,{name:r,fromWireType:a,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:Xe,readValueFromPointer:ct(r,t,0!==n),destructorFunction:null})},ht=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=T[e>>2],t=T[e+4>>2];return new n(E.buffer,t,r)}qe(e,{name:t=xe(t),fromWireType:o,argPackAdvance:Xe,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},pt=(e,r,t)=>ge(e,k,r,t),mt=(e,r)=>{var t="std::string"===(r=xe(r));qe(e,{name:r,fromWireType(e){var r,n=T[e>>2],o=e+4;if(t)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==k[s]){var l=Ie(a,s-a);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),a=s+1}}else{var d=new Array(n);for(i=0;i<n;++i)d[i]=String.fromCharCode(k[o+i]);r=d.join("")}return mn(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||Ne("Cannot pass non-string to std::string"),n=t&&o?me(r):r.length;var a=yn(4+n+1),i=a+4;if(T[a>>2]=n,t&&o)pt(r,i,n+1);else if(o)for(var s=0;s<n;++s){var l=r.charCodeAt(s);l>255&&(mn(i),Ne("String has UTF-16 code units that do not fit in 8 bits")),k[i+s]=l}else for(s=0;s<n;++s)k[i+s]=r[s];return null!==e&&e.push(mn,a),a},argPackAdvance:Xe,readValueFromPointer:Ir,destructorFunction(e){mn(e)}})},gt="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,vt=(e,r)=>{for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&A[n];)++n;if((t=n<<1)-e>32&>)return gt.decode(k.subarray(e,t));for(var a="",i=0;!(i>=r/2);++i){var s=S[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},yt=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);S[r>>1]=i,r+=2}return S[r>>1]=0,r-n},wt=e=>2*e.length,bt=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var o=C[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},_t=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,o=n+t-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(C[r>>2]=i,(r+=4)+4>o)break}return C[r>>2]=0,r-n},Et=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},kt=(e,r,t)=>{var n,o,a,i,s;t=xe(t),2===r?(n=vt,o=yt,i=wt,a=()=>A,s=1):4===r&&(n=bt,o=_t,i=Et,a=()=>T,s=2),qe(e,{name:t,fromWireType:e=>{for(var t,o=T[e>>2],i=a(),l=e+4,d=0;d<=o;++d){var u=e+4+d*r;if(d==o||0==i[u>>s]){var c=n(l,u-l);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),l=u+r}}return mn(e),t},toWireType:(e,n)=>{"string"!=typeof n&&Ne(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),l=yn(4+a+r);return T[l>>2]=a>>s,o(n,l+4,a+r),null!==e&&e.push(mn,l),l},argPackAdvance:Xe,readValueFromPointer:it,destructorFunction(e){mn(e)}})},St=(e,r)=>{qe(e,{isVoid:!0,name:r=xe(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},At={},Ct=e=>{var r=At[e];return void 0===r?xe(e):r},Tt=[],Pt=(e,r,t,n,o)=>(e=Tt[e])(r=at.toValue(r),r[t=Ct(t)],n,o),Dt=e=>{var r=Tt.length;return Tt.push(e),r},It=(e,r)=>{var t=Le[e];return void 0===t&&Ne(r+" has unknown type "+Nr(e)),t},Ft=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=It(T[r+4*n>>2],"parameter "+n);return t},$t=(e,r,t)=>{var n=[],o=e.toWireType(n,t);return n.length&&(T[r>>2]=at.toHandle(n)),o},Mt=(e,r,t)=>{var n=Ft(e,r),o=n.shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===t&&s.push("obj");for(var l=["retType"],d=[o],u=0;u<e;++u)s.push("arg"+u),l.push("argType"+u),d.push(n[u]),a+=` var arg${u} = argType${u}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[u].argPackAdvance;a+=` var rv = ${1===t?"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||(l.push("emval_returnValue"),d.push($t),a+=" return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",l.push(a);var c=Kr(Function,l).apply(null,d),f=`methodCaller<(${n.map((e=>e.name)).join(", ")}) => ${o.name}>`;return Dt(wr(f,c))},Rt=e=>{var r=at.toValue(e);qr(r),tt(e)},Bt=(e,r)=>r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN,Ot=e=>e%4==0&&(e%100!=0||e%400==0),Wt=[0,31,60,91,121,152,182,213,244,274,305,335],Ut=[0,31,59,90,120,151,181,212,243,273,304,334],xt=e=>(Ot(e.getFullYear())?Wt:Ut)[e.getMonth()]+e.getDate()-1;function jt(e,r,t){var n=Bt(e,r),o=new Date(1e3*n);C[t>>2]=o.getSeconds(),C[t+4>>2]=o.getMinutes(),C[t+8>>2]=o.getHours(),C[t+12>>2]=o.getDate(),C[t+16>>2]=o.getMonth(),C[t+20>>2]=o.getFullYear()-1900,C[t+24>>2]=o.getDay();var a=0|xt(o);C[t+28>>2]=a,C[t+36>>2]=-60*o.getTimezoneOffset();var i=new Date(o.getFullYear(),0,1),s=new Date(o.getFullYear(),6,1).getTimezoneOffset(),l=i.getTimezoneOffset(),d=0|(s!=l&&o.getTimezoneOffset()==Math.min(l,s));C[t+32>>2]=d}var Lt=e=>{var r=me(e)+1,t=yn(r);return t&&pt(e,t,r),t},zt=(e,r,t)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),i=o.getTimezoneOffset(),s=a.getTimezoneOffset(),l=Math.max(i,s);function d(e){var r=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return r?r[1]:"GMT"}T[e>>2]=60*l,C[r>>2]=Number(i!=s);var u=d(o),c=d(a),f=Lt(u),h=Lt(c);s<i?(T[t>>2]=f,T[t+4>>2]=h):(T[t>>2]=h,T[t+4>>2]=f)},Nt=()=>{G("")},Vt=()=>Date.now(),Ht=(e,r,t)=>k.copyWithin(e,r,r+t),Gt=()=>134217728,qt=e=>{var r=(e-w.buffer.byteLength+65535)/65536;try{return w.grow(r),$(),1}catch(e){}},Kt=e=>{var r=k.length;e>>>=0;var t=Gt();if(e>t)return!1;for(var n,o,a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var s=Math.min(t,(n=Math.max(e,i))+((o=65536)-n%o)%o);if(qt(s))return!0}return!1},Xt={},Jt=()=>d||"./this.program",Zt=()=>{if(!Zt.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",_:Jt()};for(var r in Xt)void 0===Xt[r]?delete e[r]:e[r]=Xt[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Zt.strings=t}return Zt.strings},Yt=(e,r)=>{for(var t=0;t<e.length;++t)E[r++>>0]=e.charCodeAt(t);E[r>>0]=0},Qt=(e,r)=>{var t=0;return Zt().forEach(((n,o)=>{var a=r+t;T[e+4*o>>2]=a,Yt(n,a),t+=n.length+1})),0},en=(e,r)=>{var t=Zt();T[e>>2]=t.length;var n=0;return t.forEach((e=>n+=e.length+1)),T[r>>2]=n,0};function rn(e){try{var r=Fe.getStreamFromFD(e);return De.close(r),0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}function tn(e,r){try{var t=Fe.getStreamFromFD(e),n=t.tty?2:De.isDir(t.mode)?3:De.isLink(t.mode)?7:4;return E[r>>0]=n,S[r+2>>1]=0,X=[0,(K=0,+Math.abs(K)>=1?K>0?+Math.floor(K/4294967296)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)],C[r+8>>2]=X[0],C[r+12>>2]=X[1],X=[0,(K=0,+Math.abs(K)>=1?K>0?+Math.floor(K/4294967296)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)],C[r+16>>2]=X[0],C[r+20>>2]=X[1],0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}var nn=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=T[r>>2],s=T[r+4>>2];r+=8;var l=De.read(e,E,i,s,n);if(l<0)return-1;if(o+=l,l<s)break;void 0!==n&&(n+=l)}return o};function on(e,r,t,n){try{var o=Fe.getStreamFromFD(e),a=nn(o,r,t);return T[n>>2]=a,0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}function an(e,r,t,n,o){var a=Bt(r,t);try{if(isNaN(a))return 61;var i=Fe.getStreamFromFD(e);return De.llseek(i,a,n),X=[i.position>>>0,(K=i.position,+Math.abs(K)>=1?K>0?+Math.floor(K/4294967296)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)],C[o>>2]=X[0],C[o+4>>2]=X[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}var sn=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=T[r>>2],s=T[r+4>>2];r+=8;var l=De.write(e,E,i,s,n);if(l<0)return-1;o+=l,void 0!==n&&(n+=l)}return o};function ln(e,r,t,n){try{var o=Fe.getStreamFromFD(e),a=sn(o,r,t);return T[n>>2]=a,0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}var dn=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=De.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},un=365,cn=146;Object.defineProperties(dn.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 De.isDir(this.mode)}},isDevice:{get:function(){return De.isChrdev(this.mode)}}}),De.FSNode=dn,De.createPreloadedFile=Ce,De.staticInit(),Ue(),Be=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Oe=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},vr(),ur(),Fr(),Rr=o.UnboundTypeError=zr(Error,"UnboundTypeError"),Qr(),ot();var fn,hn={o:ie,C:$e,u:Me,r:We,E:Je,F:Hr,A:Jr,i:Yr,D:st,l:ut,c:ft,b:ht,m:mt,j:kt,n:St,f:Pt,h:tt,e:Mt,d:Rt,p:jt,t:zt,a:Nt,g:Vt,y:Ht,s:Kt,w:Qt,x:en,k:rn,v:tn,B:on,q:an,z:ln},pn=ne(),mn=e=>(mn=pn.I)(e),gn=()=>(gn=pn.K)(),vn=e=>(vn=pn.L)(e),yn=e=>(yn=pn.M)(e),wn=e=>(wn=pn.O)(e);function bn(){function e(){fn||(fn=!0,o.calledRun=!0,I||(W(),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),U()))}z>0||(O(),z>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),e()}),1)):e()))}if(o.dynCall_viiijj=(e,r,t,n,a,i,s,l)=>(o.dynCall_viiijj=pn.P)(e,r,t,n,a,i,s,l),o.dynCall_jij=(e,r,t,n)=>(o.dynCall_jij=pn.Q)(e,r,t,n),o.dynCall_jii=(e,r,t)=>(o.dynCall_jii=pn.R)(e,r,t),o.dynCall_jiji=(e,r,t,n,a)=>(o.dynCall_jiji=pn.S)(e,r,t,n,a),N=function e(){fn||bn(),fn||(N=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return bn(),r.ready}})();const n=g;!function(e,r){const t=g,n=e();for(;;)try{if(706592===-parseInt(t(270))/1*(parseInt(t(347))/2)+parseInt(t(300))/3+-parseInt(t(356))/4+-parseInt(t(644))/5*(-parseInt(t(627))/6)+-parseInt(t(346))/7+-parseInt(t(395))/8*(parseInt(t(237))/9)+parseInt(t(354))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(S);const o={websocket:1,fetch:2,hls:3,webrtc:4,webTransport:5,aliyunRtc:6,ts:7};n(595),n(234),n(485),n(269),n(568),n(234),n(485),n(595),n(269),n(568),n(630),n(510),n(402);const a={player:"player",playerAudio:n(283),playbackTF:n(431),talk:n(560),playVod:n(545)},i={mp4:"mp4",webm:n(515),flv:n(367),mov:n(313)},s={flv:n(367),m7s:n(663),hls:"hls",webrtc:n(269),webTransport:"webTransport",nakedFlow:n(256),fmp4:n(694),mpeg4:n(370),aliyunRtc:n(510),ts:"ts",g711:"g711",pcm:n(483)};n(392),n(567),n(692),n(498);const l={mse:"mse",wcs:n(693),offscreen:"offscreen",wasm:n(426),simd:"simd",mt:"mt",webrtc:n(269),hls:n(485),aliyunRtc:n(510)},d={canvas:n(646),video:n(587)},u={debug:n(336),warn:n(342)},c={click:n(410),mouseDownAndUp:n(672)},f="normal",h=(n(499),n(374)),p=n(292),m=4080;function g(e,r){const t=S();return(g=function(e,r){return t[e-=230]})(e,r)}n(355),n(700);const v={playIsNotPauseOrUrlIsNull:n(669),webglAlignmentError:n(308),webglContextLostError:n(695),mediaSourceH265NotSupport:n(611),mseSourceBufferFull:"缓冲区已满",mediaSourceAppendBufferError:n(241),mseSourceBufferError:"解码失败",mseAddSourceBufferError:n(241),mseWorkerAddSourceBufferError:n(241),mediaSourceDecoderConfigurationError:n(241),mediaSourceTsIsMaxDiff:"流异常",mseWidthOrHeightChange:n(550),mediaSourceAudioG711NotSupport:n(598),mediaSourceAudioInitTimeout:"初始化音频解码器失败",mediaSourceAudioNoDataTimeout:"等待音频数据超时",mediaSourceUseCanvasRenderPlayFailed:n(580),mediaSourceBufferedIsZeroError:n(550),webcodecsH265NotSupport:n(611),webcodecsUnsupportedConfigurationError:"初始化解码器失败",webcodecsDecodeConfigureError:n(241),webcodecsDecodeError:n(422),webcodecsAudioInitTimeout:n(497),webcodecsAudioNoDataTimeout:n(272),wcsWidthOrHeightChange:n(422),wasmDecodeError:n(422),simdDecodeError:n(422),wasmWidthOrHeightChange:n(550),wasmUseVideoRenderError:"video自动渲染失败",videoElementPlayingFailed:n(519),simdH264DecodeVideoWidthIsTooLarge:"不支持该分辨率的视频",networkDelayTimeout:n(609),fetchError:n(688),streamEnd:"请求结束",websocket1006Error:n(429),websocketError:"请求失败",webrtcError:n(688),hlsError:n(688),decoderWorkerInitError:n(622),decoderWorkerWasmError:n(577),videoElementPlayingFailedForWebrtc:n(519),videoInfoError:"解析视频分辨率失败",webrtcStreamH265:"webrtc不支持H265",delayTimeout:"播放超时重播失败",loadingTimeout:n(329),loadingTimeoutRetryEnd:"加载超时重播失败",delayTimeoutRetryEnd:n(264),flvDemuxBufferSizeTooLarge:n(250),audioChannelError:n(654),aliyunRtcError:n(688),mseWaitVideoCanplayTimeout:n(550),initDecoderWorkerTimeout:n(538)};n(323),n(342),n(263),n(257),n(246),n(537),n(632),n(332),n(258),n(638),n(234),n(367),n(402),n(575),n(410),n(587),n(382),n(382),n(255);n(505),n(419),n(335),n(707),n(543),n(699),n(704),n(298),n(541),n(657),n(455),n(542),n(306),n(302),n(446),n(286),n(552),n(310);const y={init:n(556),initVideo:n(624),render:"render",playAudio:n(482),initAudio:n(486),kBps:n(295),decode:n(404),audioCode:n(304),audioNalu:"audioNalu",audioAACSequenceHeader:n(364),videoCode:n(604),videoCodec:"videoCodec",videoNalu:"videoNalu",videoPayload:"videoPayload",audioPayload:n(584),wasmError:n(619),workerFetch:"workerFetch",iframeIntervalTs:n(324),isDropping:n(706),workerEnd:"workerEnd",networkDelay:n(589),playbackStreamVideoFps:n(409),wasmWidthOrHeightChange:n(398),simdDecodeError:n(351),simdH264DecodeVideoWidthIsTooLarge:"simdH264DecodeVideoWidthIsTooLarge",websocketOpen:"websocketOpen",websocketStringMsg:n(406),closeEnd:n(701),tempStream:"tempStream",videoSEI:"videoSEI",flvScriptData:n(322),aacSequenceHeader:n(248),videoSequenceHeader:n(666),flvBufferData:n(403),checkFirstIFrame:n(601),mseHandle:"mseHandle",mseFirstRenderTime:n(436),mseError:"mseError",notSupportNewWasm:n(625),failedToAsynchronouslyPrepareWasm:"failedToAsynchronouslyPrepareWasm"};n(662),n(556),n(404),n(590),n(414),n(450),n(602),n(591),n(554),n(320),n(558),n(600),n(661),n(686),n(377),n(435),n(633),n(384),n(651),n(556),n(586),n(435),n(236),n(690),n(406),n(556);const w={fullscreen:n(447),fullScreenByStart:n(238),webFullscreen:n(592),decoderWorkerInit:n(277),play:n(315),playing:"playing",pause:n(293),mute:n(231),load:n(684),loading:n(273),zooming:n(496),drawingRect:"drawingRect",drawingRectInfo:n(439),videoInfo:n(647),timeUpdate:n(697),audioInfo:n(535),log:n(648),error:"error",kBps:n(295),timeout:n(310),delayTimeout:n(582),delayTimeoutRetryEnd:"delayTimeoutRetryEnd",loadingTimeout:n(574),loadingTimeoutRetryEnd:n(547),stats:n(396),performance:n(585),videoSmooth:"videoSmooth",faceDetectActive:n(279),objectDetectActive:n(597),occlusionDetectActive:n(399),imageDetectActive:n(613),record:"record",recording:"recording",recordingTimestamp:"recordingTimestamp",recordStart:n(480),recordEnd:n(509),recordCreateError:n(517),recordBlob:"recordBlob",recordCancel:n(361),buffer:n(435),videoFrame:n(427),videoSEI:n(454),videoSEISyncPts:"videoSEISyncPts",start:n(682),metadata:n(641),resize:n(372),volumechange:"volumechange",volume:n(365),destroy:n(586),beforeDestroy:n(407),streamEnd:n(309),streamRate:n(420),streamAbps:n(511),streamVbps:n(698),streamDts:n(434),streamSuccess:n(459),streamMessage:n(518),streamError:n(579),streamStats:n(559),streamEndInner:n(243),mseSourceOpen:n(233),mseSourceClose:n(291),mseSourceended:"mseSourceended",mseSourceStartStreaming:n(301),mseSourceEndStreaming:"mseSourceEndStreaming",mseSourceBufferError:n(677),mseAddSourceBufferError:n(469),mseWorkerAddSourceBufferError:n(664),mseSourceBufferBusy:n(474),mseSourceBufferFull:"mseSourceBufferFull",videoWaiting:n(297),videoTimeUpdate:"videoTimeUpdate",videoSyncAudio:n(555),playToRenderTimes:"playToRenderTimes",playbackTime:n(451),playbackTimestamp:n(636),playbackTimeScroll:"playbackTimeScroll",playbackPrecision:n(353),playbackShowPrecisionChange:"playbackShowPrecisionChange",playbackJustTime:n(685),playbackStats:n(472),playbackSeek:"playbackSeek",playbackPause:n(326),playbackPauseOrResume:"playbackPauseOrResume",playbackRateChange:n(674),playbackPreRateChange:n(296),playbackEndInner:"playbackEndInner",playbackEnd:n(463),playVodStats:"playVodStats",playVodPause:n(274),playVodPauseOrResume:n(441),playVodRateChange:n(425),playVodTime:n(539),playVodTimeCache:n(268),playVodSeek:n(239),playVodSeekEnd:n(516),playVodVideoSeekingByMse:"playVodVideoSeekingByMse",playVodVideoSeekedByMse:n(612),playVodCanplay:n(371),playVodWaiting:n(479),playVodEndedAndReplay:"playVodEndedAndReplay",playVodEnded:"playVodEnded",ptz:n(360),streamQualityChange:n(259),visibilityChange:n(645),netBuf:n(536),close:n(591),networkDelayTimeout:n(262),togglePerformancePanel:n(571),viewResizeChange:"viewResizeChange",flvDemuxBufferSizeTooLarge:n(311),talkGetUserMediaSuccess:n(249),talkGetUserMediaFail:n(314),talkGetUserMediaTimeout:n(478),talkStreamStart:n(504),talkStreamOpen:"talkStreamOpen",talkStreamClose:n(680),talkStreamError:"talkStreamError",talkStreamInactive:n(553),talkStreamMsg:"talkStreamMsg",webrtcDisconnect:n(271),webrtcFailed:n(401),webrtcClosed:n(379),webrtcChecking:"webrtcChecking",webrtcConnected:"webrtcConnected",webrtcCompleted:n(491),webrtcOnConnectionStateChange:n(390),webrtcOnIceConnectionStateChange:n(240),crashLog:"crashLog",focus:n(340),blur:n(465),inView:n(678),visibilityHiddenTimeout:n(260),websocketOpen:n(437),websocketClose:n(690),websocketError:n(236),websocketStringMsg:n(406),aiObjectDetectorInfo:n(334),aiFaceDetectorInfo:n(546),aiOcclusionDetectResult:n(394),aiImageDetectResult:n(470),playFailedAndPaused:n(653),audioResumeState:n(389),webrtcStreamH265:"webrtcStreamH265",flvMetaData:n(288),talkFailedAndStop:n(319),removeLoadingBgImage:n(386),memoryLog:n(352),downloadMemoryLog:n(594),pressureObserverCpu:n(566),currentPts:"currentPts",online:n(460),offline:n(650),networkState:n(617),clickInitPlayer:n(513)};n(684),n(697),n(647),n(295),n(310),n(574),n(547),n(582),n(527),n(592),n(315),n(293),n(231),n(585),n(391),n(480),n(517),n(509),n(473),n(361),n(635),n(411),n(472),n(636),n(501),n(296),n(674),n(442),n(463),n(441),n(425),n(539),n(239),n(516),n(360),n(496),n(629),n(340),n(465),n(645),n(437),n(690),n(262),n(334),n(546),n(394),n(653),n(309),n(389),n(454),n(288),n(390),n(240),n(359),n(362),n(365),n(680),n(599),n(553),n(478),n(319),n(684),n(697),n(244),n(295),n(682),n(582),n(527),n(315),n(293),n(231),n(396),n(635),n(629),n(437),n(389);n(599),n(680);n(481),n(303),n(633),n(623),n(330),n(385),n(333),n(413),n(643),n(299),n(373),n(350),n(387),n(456),n(616),n(677),n(469),n(664),n(458),n(331),n(525),n(284),n(603),n(351),n(282),n(492),n(252),n(398),n(576),n(311),n(565),n(687),n(357),n(381),n(490),n(309),n(582),n(574),n(262),n(691),n(380),n(507),n(625),n(488),n(528),n(640),n(244),n(493),n(526),n(493),n(572),n(683),n(692);const b={h264:7,h265:12,mpeg4:99};n(683),n(464);const _={AAC:10,ALAW:7,MULAW:8,MP3:2,OPUS:13,G711A:7,G711U:8};n(639),n(325),n(639),n(418);const E={sps:7,pps:8,iFrame:5,kUnspecified:0,kSliceNonIDR:1,kSliceDPA:2,kSliceDPB:3,kSliceDPC:4,kSliceIDR:5,kSliceSEI:6,kSliceSPS:7,kSlicePPS:8,kSliceAUD:9,kEndOfSequence:10,kEndOfStream:11,kFiller:12,kSPSExt:13,kReserved0:14};n(448),n(673),n(506),n(593),n(659),n(485),n(531),n(294),n(655),n(477),n(610),n(676),n(316),n(247),n(640),n(500),Math[n(626)](40),n(341),n(668),n(702),n(514),n(658),n(265),n(637),n(561),n(668),n(462),n(321),n(588),n(708),n(393),n(462),n(321),n(588),n(467),n(583),n(267),n(484),n(606),n(533),n(476),n(667),n(675),n(318),n(363),n(400);n(494),n(417),n(483),n(424);n(563),n(408),n(312),n(245),n(307),n(348),n(305),n(605),n(421),n(578);const k={h264:n(378),h265:n(376),av1:n(502)};function S(){const e=["videoInfoError","webrtcCompleted","webrtcIceCandidateError","download","g711a","buffering","zooming","初始化音频解码器失败","Webrtc","simple","closed","playbackPauseOrResume","av1","webrtc-disconnected","talkStreamStart","playbackForwardMaxRateDecodeIFrame","webgl2","mseWaitVideoCanplayTimeout","multiMouseover","recordEnd","aliyunRtc","streamAbps","object","clickInitPlayer","five-min","webm","playVodSeekEnd","recordCreateError","streamMessage","video自动渲染失败","loadeddata","#343434","wcsDecodeError","created","Wasm","mediaSourceBufferedIsZeroError","base64","delayTimeoutRetryEnd","mp4Error","active","webrtc-closed","key","sourcebuffer-created","apertureNear","操作盘","audioInfo","netBuf","decoder-pro-hard.js","初始化解码worker超时","playVodTime","flv-script-data","isWebrtc","isWebrtcForOthers","controlSize","NotAllowedError","playVod","aiFaceDetectorInfo","loadingTimeoutRetryEnd","multiFullscreen","人脸识别激活","流异常","canplaythrough","videoRenderSupportScale","talkStreamInactive","updateConfig","videoSyncAudio","init","seeked","clearBuffer","streamStats","talk","tenMin","multiSelected","image/jpeg","操作盘激活","audioChannelError","pressureObserverCpu","HLS","webTransport","Unsupported configuration","Unsupported audio format","togglePerformancePanel","blob","MEDIA_ERR_SRC_NOT_SUPPORTED","loadingTimeout","vertical","wcsWidthOrHeightChange","wasm解码失败","loadedmetadata","streamError","MediaSource解码使用canvas渲染失败","ttfb","delayTimeout","rightDown","audioPayload","performance","destroy","video","left","networkDelay","audioDecode","close","webFullscreen","webgpu","downloadMemoryLog","websocket","loadstart","objectDetectActive","硬解码不支持G711a/u音频格式","talkStreamError","resetVideoDecode","checkFirstIFrame","initVideoCodec","simdH264DecodeVideoWidthIsTooLarge","videoCode","timeupdate","apertureFar","A key frame is required after configure() or flush()","rtp","网络超时重播失败",'video/mp4;codecs="hev1.1.6.L120.90"',"不支持硬解码H265","playVodVideoSeekedByMse","imageDetectActive","connecting","subtitle-playlist","mseSourceBufferFull","networkState","mp3","wasmError","遮挡物检查","readystatechange","初始化worker失败","websocketOpenTimeout","initVideo","notSupportNewWasm","ceil","22026WhirNZ","sei","crashLog","worker","script","decoder-pro-hard-not-wasm.js","fetchErrorWorker","物品识别激活","playToRenderTimes","playbackTimestamp","oneHour","default","AAC","open","metadata","Cannot call 'decode' on a closed codec","webcodecsAudioNoDataTimeout","525iWvncM","visibilityChange","canvas","videoInfo","log","buffereos","offline","fetchSuccess","local-candidate","playFailedAndPaused","音频通道错误",'video/mp4; codecs="avc1.64002A"',"HEVC decoding is not supported","isWebrtcForZLM","30min","offscreen","receiver","fetchStream","Invalid NAL unit size","m7s","mseWorkerAddSourceBufferError","multiMousemove","videoSequenceHeader","focusNear","fiveMin","播放地址不能为空","3-4","subtitle-segments","mouseDownAndUp","webgl","playbackRateChange","cruiseStart",'video/mp4;codecs="hev1.2.4.L120.90"',"mseSourceBufferError","inView","stalled","talkStreamClose","self","start","H264(AVC)","load","playbackJustTime","mseUpdateVideoTimestamp","videoElementPlayingFailed","请求失败","multiDragenter","websocketClose","fullscreenError","MPEG4","wcs","fmp4","webgl 上下文丢失","性能面板","timeUpdate","streamVbps","multiIndex","jbprovm","closeEnd","half-hour","progress","isMpeg4","multiDragstart","isDropping","pauseAndNextPlayUseLastFrameShow","right-up","remote-inbound-rtp","mute","电子放大","mseSourceOpen","fetch","FSimd","websocketError","362763Trvidb","fullScreenByStart","playVodSeek","webrtcOnIceConnectionStateChange","初始化解码器失败","memory access out of bounds","streamEndInner","error","sourceended","decoder-pro-audio.js","ended","aacSequenceHeader","talkGetUserMediaSuccess","FLV待解封装buffer过大","stream","webglAlignmentError","video decoder initialization failed","remove-buffer","red","nakedFlow","decoder-pro-old.js","none","streamQualityChange","visibilityHiddenTimeout","Decoder error","networkDelayTimeout","normal","播放超时重播失败","10min","load-retry","stop","playVodTimeCache","webrtc","8DjEWLn","webrtcDisconnect","等待音频数据超时","loading","playVodPause","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","tcp","decoderWorkerInit","multiDblSelected","faceDetectActive","遮挡物检查激活","paused","webrtcError","playerAudio","wasmDecodeError","ulaw","defaultStreamQuality","complete","flvMetaData","sei-in-time","Simd","mseSourceClose","20251201","pause","delta","kBps","playbackPreRateChange","videoWaiting","isHls","mediaSourceH265NotSupport","1091871rWDBgT","mseSourceStartStreaming","dynamicWatermarkConfig","fetchError","audioCode","waiting","isAliyunRtc","startstreaming","Webgl 渲染失败","streamEnd","timeout","flvDemuxBufferSizeTooLarge","sourceopen","mov","talkGetUserMediaFail","play",'video/mp4;codecs="hev1.3.E.L120.90"',"codec","cruiseStop","talkFailedAndStop","resetDecode","down","flvScriptData","player","iframeIntervalTs","MULAW(g711u)","playbackPause","alaw","1-1","加载超时重播失败","webcodecsH265NotSupport","mediaSourceTsIsMaxDiff","jessibuca-pro-mp4-recorder-decoder.js","webcodecsUnsupportedConfigurationError","aiObjectDetectorInfo","isM7sCrypto","debug","3-1","data-channel","switch-url-failed","focus","halfHour","warn","#FFCC00","hls-level-loaded","csrc","336469PQjTan","134836SGVsuU","canplay","性能面板激活","mediaSourceAudioInitTimeout","simdDecodeError","memoryLog","playbackPrecision","9170730lErgiz","jbprov","683788IxhjaN","videoElementPlayingFailedForWebrtc","保存日志","currentPts","ptz","recordCancel","videoSmooth","fogOpen","audioAACSequenceHeader","volume","metadata-parsed","flv","The user aborted a request","message","mpeg4","playVodCanplay","resize","mediaSourceAudioG711NotSupport","JessibucaPro","停止录制","hevc","destroyEnd","avc","webrtcClosed","aliyunRtcError","decoderWorkerWasmError","white","MEDIA_ERR_DECODE","fetchClose","webcodecsDecodeError","removeLoadingBgImage","mediaSourceAudioNoDataTimeout","playing","audioResumeState","webrtcOnConnectionStateChange","recordingTimestamp","M7S","left-down","aiOcclusionDetectResult","40gDAYRT","stats","suspend","wasmWidthOrHeightChange","occlusionDetectActive","fogClose","webrtcFailed","mp4","flvBufferData","decode","#000","websocketStringMsg","beforeDestroy","image/webp","playbackStreamVideoFps","click","playbackSeek","AbortError","webcodecsAudioInitTimeout","videoDecode","stream-parsed","media-source","g711u","ALAW","isMulti","streamRate","ratechange","解码失败","global","opus","playVodRateChange","wasm","videoFrame","durationchange","流异常结束","playback","playbackTF","MEDIA_ERR_NETWORK","inbound-rtp","streamDts","buffer","mseFirstRenderTime","websocketOpen","seeking","drawingRectInfo","udp","playVodPauseOrResume","playbackShowPrecisionChange","play() failed because the user didn't interact with the document first","multiMouseup","ws1006","watermarkConfig","fullscreen$2","webcodecs","empty","initAudioCodec","playbackTime","switch-url-success","no-audio-track","videoSEI","isWebrtcForSRS","mediaSourceDecoderConfigurationError","container","mediaSourceAppendBufferError","streamSuccess","online","mseDecodeError","right","playbackEnd","H265(HEVC)","blur","decoder-pro-audio-player.js","rightUp","load-start","mseAddSourceBufferError","aiImageDetectResult","multiDragleave","playbackStats","recordBlob","mseSourceBufferBusy","track","focusFar",'video/mp4; codecs="hev1.1.6.L123.b0"',"talkGetUserMediaTimeout","playVodWaiting","recordStart","playIsNotPauseOrUrlIsNull","playAudio","pcm","zoomNarrow","hls","initAudio","emptied","playVodMp4Error","audio packet"];return(S=function(){return e})()}n(607),n(642),n(569),n(261),n(656),n(368),n(412),n(273),n(388),n(281),n(586);const A={sequenceHeader:0,nalu:1},C={keyFrame:1,interFrame:2};n(449),n(608),n(276),n(440);n(251),n(430),n(640),n(591),n(244),n(369);n(631);n(608),n(276),n(342),n(631),n(529),n(521),n(343),n(405),n(548),n(278),n(562),n(508),n(444),n(665),n(705),n(689),n(471),n(337),n(328),n(670),n(457),n(587),n(283),n(342),n(234),n(466),n(671),n(344),n(540),n(366),n(581),n(266),n(468),n(628),n(289),n(453),n(254),n(649),n(532),n(339),n(452),n(615),n(415),n(244),n(614),n(495),n(244),n(287),n(432),n(383),n(573),n(253),n(489),n(570),n(443),n(544),n(242),n(317),n(345),n(338),n(433),n(652),n(660),n(230),n(475),n(416),n(445),n(461),n(522),n(579),n(285),n(327),n(618),n(424),n(503),n(530),n(523),n(273),n(388),"object"==typeof window&&window.window===window?window:typeof self===n(512)&&self[n(681)]===self?self:"object"==typeof global&&global[n(423)]===global&&global,n(551),n(287),n(428),n(487),n(247),n(520),n(578),n(596),n(293),n(315),n(703),n(421),n(557),n(438),n(679),n(397),n(605),n(305),n(621),n(244),n(375),n(534),n(564),n(232),n(696),n(349),n(549),n(634),n(620),n(280),n(358);const T={wasm:n(524),simd:n(290),fSimd:n(235)};n(275);var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var D=Object.freeze({__proto__:null,commonjsGlobal:P,commonjsRequire:function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")},unwrapExports:function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},createCommonjsModule:function(e,r){return e(r={exports:{}},r.exports),r.exports},getCjsExportFromNamespace:function(e){return e&&e.default||e}}),I=$;function F(){var e=["423270QkabOJ","mozFullScreenEnabled","change","object","MSFullscreenChange","catch","document","33PKsNbe","msExitFullscreen","createCommonjsModule","2bbZLwW","request","mozRequestFullScreen","webkitfullscreenchange","screenfull","exports","mozCancelFullScreen","996468tcyDLE","fullscreenEnabled","isEnabled","135mBLMaG","isFullscreen","length","webkitCurrentFullScreenElement","mozFullScreenElement","requestFullscreen","webkitRequestFullScreen","fullscreenElement","1217136OzDTEj","2345688vEFQck","webkitExitFullscreen","removeEventListener","webkitFullscreenElement","21456negGsF","error","fullscreenerror","undefined","off","webkitFullscreenEnabled","6CkeHoE","msFullscreenElement","bind","exitFullscreen","798651gqLFCS","addEventListener","exit","fullscreenchange","webkitRequestFullscreen","267239aDolao","webkitfullscreenerror","webkitCancelFullScreen","then","msFullscreenEnabled"];return(F=function(){return e})()}function $(e,r){var t=F();return($=function(e,r){return t[e-=261]})(e,r)}function M(){const e=["readUEG","destroy","set","_current_word_bits_left","_total_bytes","_fillCurrentWord","1008100OzDIJw","ExpGolomb: _fillCurrentWord() but no bytes available","ExpGolomb: readBits() bits exceeded max 32bits!","720035DKmhfb","min","848erPTgY","_buffer","byteLength","error","2JqGXME","98323WPjCdn","buffer","subarray","1520358GYKjXX","_current_word","readBool","readByte","_buffer_index","readBits","43695NuHTHc","readSEG","2044539HEUNvG","31620ZxDcyg","_skipLeadingZero","_total_bits"];return(M=function(){return e})()}!function(e,r){for(var t=$,n=e();;)try{if(175513===-parseInt(t(292))/1*(-parseInt(t(307))/2)+-parseInt(t(261))/3+parseInt(t(277))/4*(parseInt(t(264))/5)+-parseInt(t(283))/6*(-parseInt(t(287))/7)+-parseInt(t(272))/8+parseInt(t(273))/9+parseInt(t(297))/10*(-parseInt(t(304))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(F),D[I(306)]((function(e){var r,t,n,o,a,i;r=$,t="undefined"!=typeof window&&typeof window[r(303)]!==r(280)?window[r(303)]:{},n="undefined"!==r(300)&&e[r(312)],o=function(){for(var e,n=r,o=[["requestFullscreen",n(286),"fullscreenElement",n(262),n(290),n(279)],[n(291),n(274),n(276),n(282),"webkitfullscreenchange",n(293)],[n(270),n(294),n(267),"webkitCancelFullScreen",n(310),n(293)],[n(309),n(313),n(268),n(298),"mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen",n(305),n(284),n(296),n(301),"MSFullscreenError"]],a=0,i=o[n(266)],s={};a<i;a++)if((e=o[a])&&e[1]in t){for(a=0;a<e[n(266)];a++)s[o[0][a]]=e[a];return s}return!1}(),a={change:o[r(290)],error:o[r(279)]},i={request:function(e,r){return new Promise(function(n,a){var i=$,s=function(){var e=$;this[e(281)](e(299),s),n()}.bind(this);this.on(i(299),s);var l=(e=e||t.documentElement)[o[i(269)]](r);l instanceof Promise&&l[i(295)](s)[i(302)](a)}.bind(this))},exit:function(){return new Promise(function(e,r){var n=$;if(this[n(265)]){var a=function(){var r=n;this[r(281)](r(299),a),e()}.bind(this);this.on(n(299),a);var i=t[o[n(286)]]();i instanceof Promise&&i[n(295)](a)[n(302)](r)}else e()}[r(285)](this))},toggle:function(e,t){var n=r;return this[n(265)]?this[n(289)]():this[n(308)](e,t)},onchange:function(e){var t=r;this.on(t(299),e)},onerror:function(e){var t=r;this.on(t(278),e)},on:function(e,n){var o=a[e];o&&t[r(288)](o,n,!1)},off:function(e,n){var o=a[e];o&&t[r(275)](o,n,!1)},raw:o},o?(Object.defineProperties(i,{isFullscreen:{get:function(){return Boolean(t[o[r(271)]])}},element:{enumerable:!0,get:function(){return t[o[r(271)]]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[o[r(262)]])}}}),n?e[r(312)]=i:window.screenfull=i):n?e.exports={isEnabled:!1}:window[r(311)]={isEnabled:!1}}))[I(263)];const R=B;function B(e,r){const t=M();return(B=function(e,r){return t[e-=253]})(e,r)}!function(e,r){const t=B,n=e();for(;;)try{if(226641===parseInt(t(265))/1*(parseInt(t(264))/2)+-parseInt(t(277))/3+parseInt(t(255))/4+-parseInt(t(258))/5+parseInt(t(268))/6+parseInt(t(276))/7+parseInt(t(260))/8*(-parseInt(t(274))/9))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(M);class O{constructor(e){const r=B;this[r(261)]=e,this._buffer_index=0,this[r(253)]=e[r(262)],this[r(279)]=8*e[r(262)],this[r(269)]=0,this[r(283)]=0}[R(281)](){this[R(261)]=null}[R(254)](){const e=R;let r=this[e(253)]-this[e(272)];if(r<=0)return void console[e(263)](e(256),this[e(253)],this[e(272)]);let t=Math[e(259)](4,r),n=new Uint8Array(4);n[e(282)](this[e(261)][e(267)](this[e(272)],this._buffer_index+t)),this[e(269)]=new DataView(n[e(266)]).getUint32(0,!1),this[e(272)]+=t,this._current_word_bits_left=8*t}[R(273)](e){const r=R;if(e>32&&console[r(263)](r(257)),e<=this[r(283)]){let t=this[r(269)]>>>32-e;return this[r(269)]<<=e,this[r(283)]-=e,t}let t=this[r(283)]?this._current_word:0;t>>>=32-this[r(283)];let n=e-this[r(283)];this._fillCurrentWord();let o=Math.min(n,this._current_word_bits_left),a=this._current_word>>>32-o;return this[r(269)]<<=o,this._current_word_bits_left-=o,t=t<<o|a,t}[R(270)](){return 1===this[R(273)](1)}[R(271)](){return this[R(273)](8)}[R(278)](){const e=R;let r;for(r=0;r<this[e(283)];r++)if(0!=(this[e(269)]&2147483648>>>r))return this[e(269)]<<=r,this._current_word_bits_left-=r,r;return this[e(254)](),r+this._skipLeadingZero()}[R(280)](){const e=R;let r=this._skipLeadingZero();return this[e(273)](r+1)-1}[R(275)](){let e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)}}const W=U;function U(e,r){const t=L();return(U=function(e,r){return t[e-=239]})(e,r)}!function(e,r){const t=U,n=e();for(;;)try{if(336988===-parseInt(t(257))/1+-parseInt(t(291))/2*(parseInt(t(253))/3)+-parseInt(t(285))/4+parseInt(t(249))/5*(-parseInt(t(286))/6)+parseInt(t(292))/7*(parseInt(t(304))/8)+-parseInt(t(265))/9*(parseInt(t(243))/10)+parseInt(t(244))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(L);const x=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350,-1,-1,-1];function j(e){const r=U;return e[0]>>4===_.AAC&&e[1]===A[r(276)]}function L(){const e=["104HjZTzn","log","bufoff","readByte","length","other_data_present","indexOf","Flv: AAC invalid sampling frequency index!","sampling_frequency","ext_object_type","channel: ","set","bufpos","getIncompleteData","firefox","toLowerCase","457860IoxrjJ","19491659fKvlMD","data_","Invalid sampling index: ","push","slice","10PhhtNy","chan_config","error","sbr","3AQFzDK","aacEncoderConfigurationRecord","subarray","findNextSyncwordOffset","367061UZdmJb","has_last_incomplete_data","aac","more than 2 numSubFrames Not Supported","getLATMValue","sampling_freq_index","readNextAACFrame","warn","108TzgnMw","buflen","unshift","Could not found ADTS syncword until payload end","audio_object_type","sample_rate","look","object_type",". Only frameLengthType = 0 Supported","channels","eof_flag_","sequenceHeader","byteLength","data","navigator","mp4a.40.","frameLengthType = ","userAgent","sampleRate: ","read_golomb","2518644qFSRSA","485022kLxgWI","channel_config","sampling_index","mp4a.40.2","destroy","454760xBTEWg","269353fKaBWu","iserro","allStreamsSameTimeFraming zero is Not Supported","audioMuxVersionA is Not Supported","read","more than 2 numProgram Not Supported","readBool","hasIncompleteData","Flv: AAC invalid channel configuration","more than 2 numLayer Not Supported","current_syncword_offset_","readBits"];return(L=function(){return e})()}W(296),W(271),W(284);W(256),W(263),W(299),W(240);W(256),W(261),W(299),W(240);function z(e,r){const t=N();return(z=function(e,r){return t[e-=198]})(e,r)}function N(){const e=["452DOdCEO","set","3176688mHqgoF","push","50JGHqeA","31615xXkNXA","566675ApBKRD","1386209JjYomZ","892143pjckMR","3uttLgM","subarray","shift","toString","354wQXnZo","setUint32","length","66290CQRysK","148838FUERaz"];return(N=function(){return e})()}!function(e,r){const t=z,n=e();for(;;)try{if(498253===-parseInt(t(205))/1+parseInt(t(198))/2*(-parseInt(t(208))/3)+-parseInt(t(199))/4*(-parseInt(t(204))/5)+parseInt(t(212))/6*(parseInt(t(215))/7)+parseInt(t(201))/8+parseInt(t(207))/9+parseInt(t(203))/10*(-parseInt(t(206))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(N);const V=K;function H(){const e=K;return(new Date)[e(364)]()}!function(e,r){const t=K,n=e();for(;;)try{if(448391===parseInt(t(445))/1*(parseInt(t(226))/2)+-parseInt(t(475))/3*(-parseInt(t(493))/4)+-parseInt(t(268))/5*(parseInt(t(414))/6)+-parseInt(t(494))/7+-parseInt(t(447))/8+parseInt(t(441))/9*(parseInt(t(533))/10)+-parseInt(t(479))/11*(-parseInt(t(543))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Y),(()=>{const e=K;try{if("object"==typeof WebAssembly&&typeof WebAssembly[e(448)]===e(370)){const r=new(WebAssembly[e(310)])(Uint8Array.of(0,97,115,109,1,0,0,0));if(r instanceof WebAssembly[e(310)])return new(WebAssembly[e(484)])(r)instanceof WebAssembly[e(484)]}}catch(e){}})();const G=V(243);V(337),V(223),V(243);const q=G===V(238);V(393);function K(e,r){const t=Y();return(K=function(e,r){return t[e-=209]})(e,r)}function X(e){return e&&typeof e===V(370)}function J(e){const r=V;return e[0]>>4===C[r(421)]&&e[1]===A.sequenceHeader}function Z(e){return!0!==e&&e!==V(355)}function Y(){const e=["log","[object Error]","left","playbackRate","pow","origin","sampleRate","right","backgroundColor","-webkit-text-size-adjust","webkit-3d","transferControlToOffscreen","Worker","port","restore","fullscreenElement","onload","toDataURL","9NHFUPI","subarray","appendChild","numberOfFrames","746evNosK","putImageData","438208ZnnUKM","instantiate","WebGL2RenderingContext","noteOn","webgl","removeChild","-moz-user-select","html","kSliceBLA_W_LP","container","prototype","useWCS","setInt16","craNut","supported","fontSize","destination","pageY","moz-webgl","green","wcsDecodeAudio","gpu","showModalDialog","toString","numberOfChannels","msGetUserMedia","data","hev4","30uZkMJG","min","getFullYear","file","6580354KRswiO","getMonth","substr","opacity","360EE","Instance","element","version","f32-planar","getPropertyValue","charCodeAt","Safari","color","fillStyle","164180DYcxxR","1628165DlwDWM","borderStyle","position","hev3","assign","crossOrigin","ended","type","PressureObserver","illegal icc","drawImage","application/hwepass2001.installepass2001","iFrame","paused","If you want to help, upload a sample of this file to","content","lineWidth","{y}-{m}-{d} {h}:{i}:{s}","scrollLeft","NaN","touchmove","application/vnd.chromium.remoting-viewer","map","setInt8","webm","userAgent","test","substring","call","YB/s","trim","createBufferSource","document","data-","href","safari","toLowerCase","status","rect","3910570hliYdE","setHours","px Arial","VideoEncoder.isConfigSupported is not a function","touches","atob","xxxx","wow64","touchstart","-webkit-tap-highlight-color","12HbHPTZ","setInt32","WAVE","MediaStream","kSliceBLA_N_LP","-webkit-touch-callout","readyState","strokeStyle","pathname","toFixed","imageSmoothingQuality","Firefox","h264","target","canvas","borderWidth","length","setAttribute","localhost","createBuffer","createElement","ALAW","not compiled with thread support, using thread emulation","readAsArrayBuffer","set","event","canConstructInDedicatedWorker","setUint8","clearRect","top","h265",'"development"',"forEach","360","526JritGk","sps","undefined","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","visibility","overflow","MouseEvents","textAlign","string","none","msFullscreenElement","filter",'"delaytime"',"width","createTextNode","copyToChannel","mediaDevices",'"production"',"indexOf","scrollTop","Opera","win64","div","documentElement","text/javascript","mouseup","TB/s","srcElement","kSliceBLA_W_RADL","hev5","random","src","360SE","location","EB/s","validate","push","performance","removeAttribute","getSeconds","getContext","text","4300785TeduTN","solid","webkitGetUserMedia","insertBefore","#000","hev1.1.6.L120.90","line","setUint32","getImageData","[object Exception]","AudioDecoder","stringify","hostname","result","9999999","attachShadow","-ms-user-select","slice","then","createObjectURL","mousemove","application/vnd.apple.mpegurl","floor","angle","[object Number]","application/asx","keys","imageSmoothingEnabled","vps","img","requestVideoFrameCallback","isEnabled","start","setUint16","clientX","0 KB/s","PB/s","quality","download","byteLength","getMinutes","apply","Module","not compiled with thread support","opera","bottom","ManagedMediaSource","now","height","isConfigSupported","error","chrome","click","format","audioWorklet","VideoEncoder is not supported","close","image","round","second","RIFF","URL","max","hash","user-select","0 Bytes","getAttribute","hev","clientY",'"2.1.3"',"isTypeSupported","Chrome","px 宋体","hidden","ZB/s","KB/s","host","VideoFrame","useOffscreen","rgba(0,0,0,0)","high","createImageBitmap","getUserMedia","MB/s","pointer-events: none !important; display: block !important","onerror","demuxUseWorker","true","-webkit-user-select","addModule","touchend","Edge","getElementById","mousedown","application/360softmgrplugin","navigator","getTime","avc1.","AAC","100%","parse","webgl2","function","font","style","message","split","save","[object DOMException]","fillText","contain","endsWith","VideoDecoder","QQBrowser","fromCharCode","zIndex","QHBrowser","wow32","getUint8","revokeObjectURL","object",'video/mp4; codecs="',"protocol","ActiveXObject","fmt ","1738339200000","hasAudio","MediaStreamTrackGenerator","body","MULAW","mimeTypes",";base64","copyright","absolute","Anonymous","dataset","search","useMSE","pageX","video","shadowRoot","MediaSource","objectFit","firefox","experimental-webgl","charAt","6IAJmpu","createEvent","dispatchEvent","-o-user-select","open","replace","memory","keyFrame","match"];return(Y=function(){return e})()}const Q=ee;function ee(e,r){const t=re();return(ee=function(e,r){return t[e-=251]})(e,r)}function re(){const e=["63375ZCpHWD","3111760TnRlbV","slice","off","9555TEKgSf","length","once","forEach","9rjzBgT","219423opHZzF","push","180192eTiZhn","942MvnkBq","861996RcIPww","3DekvOv","1278272YjMAMf","apply","ctx"];return(re=function(){return e})()}!function(e,r){const t=ee,n=e();for(;;)try{if(144258===parseInt(t(253))/1+parseInt(t(255))/2+-parseInt(t(258))/3*(parseInt(t(257))/4)+-parseInt(t(262))/5+parseInt(t(256))/6*(parseInt(t(266))/7)+parseInt(t(259))/8*(parseInt(t(252))/9)+-parseInt(t(263))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(re);class te{on(e,r,t){const n=ee,o=this.e||(this.e={});return(o[e]||(o[e]=[]))[n(254)]({fn:r,ctx:t}),this}[Q(268)](e,r,t){const n=this;function o(){const a=ee;n[a(265)](e,o);for(var i=arguments[a(267)],s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];r[a(260)](t,s)}return o._=r,this.on(e,o,t)}emit(e){const r=Q,t=((this.e||(this.e={}))[e]||[])[r(264)]();for(var n=arguments[r(267)],o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];for(let e=0;e<t.length;e+=1)t[e].fn[r(260)](t[e][r(261)],o);return this}off(e,r){const t=Q,n=this.e||(this.e={});if(!e)return Object.keys(n)[t(251)]((e=>{delete n[e]})),void delete this.e;const o=n[e],a=[];if(o&&r)for(let e=0,n=o[t(267)];e<n;e+=1)o[e].fn!==r&&o[e].fn._!==r&&a[t(254)](o[e]);return a[t(267)]?n[e]=a:delete n[e],this}}const ne=oe;function oe(e,r){const t=ae();return(oe=function(e,r){return t[e-=288]})(e,r)}function ae(){const e=["parsedOffset","findSecondStartCode","tempBuffer","data","1091310uCIzLI","70JSMWSC","secondStartCodeOffset","fisrtStartCodeOffset","length","findFirstStartCode","player","40972KMpWkN","5txblHs","1811952AdJUMf","1548297dyZuml","165595OfFMMs","off","state","versionLayer","dispatch","126516mTrsBV","4BpRASo","isDestroyed","271119OlNaWU","init","slice","set","stats"];return(ae=function(){return e})()}!function(e,r){const t=oe,n=e();for(;;)try{if(143672===-parseInt(t(313))/1+parseInt(t(291))/2*(-parseInt(t(293))/3)+-parseInt(t(309))/4*(parseInt(t(310))/5)+parseInt(t(290))/6*(parseInt(t(303))/7)+parseInt(t(311))/8+parseInt(t(312))/9+-parseInt(t(302))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ae);const ie={init:0,findFirstStartCode:1,findSecondStartCode:2};class se extends te{constructor(e){const r=oe;super(),this[r(308)]=e,this.isDestroyed=!1,this.reset()}destroy(){const e=oe;this[e(292)]=!1,this[e(314)](),this.reset()}reset(){const e=oe;this[e(297)]=ie[e(294)],this[e(300)]=new Uint8Array(0),this[e(298)]=0,this.versionLayer=0}[ne(289)](e,r){const t=ne;let n=new Uint8Array(this.tempBuffer.length+e[t(306)]);for(n.set(this.tempBuffer,0),n[t(296)](e,this[t(300)][t(306)]),this[t(300)]=n;!this[t(292)];){if(this[t(315)]==ie.Init){let e=!1;for(;this[t(300)][t(306)]-this[t(298)]>=2&&!this[t(292)];)if(255==this[t(300)][this.parsedOffset]){if(!(!1&this[t(300)][this[t(298)]+1])){this[t(288)]=this[t(300)][this[t(298)]+1],this[t(315)]=ie[t(307)],this[t(305)]=this.parsedOffset,this[t(298)]+=2,e=!0;break}this[t(298)]++}else this.parsedOffset++;if(e)continue;break}if(this[t(315)]==ie[t(307)]){let e=!1;for(;this[t(300)][t(306)]-this.parsedOffset>=2&&!this[t(292)];)if(255==this[t(300)][this[t(298)]]){if(this[t(300)][this[t(298)]+1]==this[t(288)]){this[t(315)]=ie[t(299)],this[t(304)]=this.parsedOffset,this[t(298)]+=2,e=!0;break}this[t(298)]++}else this.parsedOffset++;if(e)continue;break}if(this[t(315)]==ie[t(299)]){let e=this[t(300)].slice(this.fisrtStartCodeOffset,this[t(304)]);this.emit(t(301),e,r),this[t(300)]=this[t(300)][t(295)](this[t(304)]),this.fisrtStartCodeOffset=0,this[t(298)]=2,this[t(315)]=ie[t(307)]}}}}const le=ce;function de(){const e=["Baseline","toString","10115ekfXjk","High422","Extended","destroy","960785aQhnkV","parseSPS$2","545354KUgXsq","readUEG","byteLength","_ebsp2rbsp","ceil","getProfileString","readByte","avc1.","1679823nAoNCT","readBool","4:2:2","Unknown","726FjgvbE","4:4:4","getChromaFormatString","_skipScalingList","High10","toFixed","3534183pqrWVL","getLevelString","4VRmJxQ","8MqKDkL","length","15312360sCrPMI","483934zqPbRn","High444","readBits","parseSPS","readSEG","subarray"];return(de=function(){return e})()}!function(e,r){const t=ce,n=e();for(;;)try{if(499957===parseInt(t(139))/1+-parseInt(t(125))/2+parseInt(t(147))/3*(-parseInt(t(121))/4)+-parseInt(t(133))/5*(parseInt(t(151))/6)+parseInt(t(137))/7*(-parseInt(t(122))/8)+-parseInt(t(157))/9+parseInt(t(124))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(de);class ue{static[le(142)](e){let r=e,t=r[le(141)],n=new Uint8Array(t),o=0;for(let e=0;e<t;e++)e>=2&&3===r[e]&&0===r[e-1]&&0===r[e-2]||(n[o]=r[e],o++);return new Uint8Array(n.buffer,0,o)}static[le(128)](e){const r=le;let t=ue._ebsp2rbsp(e),n=new O(t);n[r(145)]();let o=n[r(145)]();n[r(145)]();let a=n[r(145)]();n[r(140)]();let i=ue[r(144)](o),s=ue[r(158)](a),l=1,d=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)&&(l=n[r(140)](),3===l&&n[r(127)](1),l<=3&&(d=u[l]),c=n[r(140)]()+8,n[r(140)](),n.readBits(1),n[r(148)]())){let e=3!==l?8:12;for(let t=0;t<e;t++)n[r(148)]()&&(t<6?ue[r(154)](n,16):ue[r(154)](n,64))}n[r(140)]();let f=n[r(140)]();if(0===f)n[r(140)]();else if(1===f){n[r(127)](1),n[r(129)](),n[r(129)]();let e=n[r(140)]();for(let r=0;r<e;r++)n.readSEG()}let h=n[r(140)]();n[r(127)](1);let p=n[r(140)](),m=n[r(140)](),g=n[r(127)](1);0===g&&n[r(127)](1),n[r(127)](1);let v=0,y=0,w=0,b=0;n[r(148)]()&&(v=n[r(140)](),y=n[r(140)](),w=n[r(140)](),b=n[r(140)]());let _=1,E=1,k=0,S=!0,A=0,C=0;if(n[r(148)]()){if(n.readBool()){let e=n.readByte(),t=[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?(_=t[e-1],E=o[e-1]):255===e&&(_=n.readByte()<<8|n[r(145)](),E=n[r(145)]()<<8|n[r(145)]())}if(n.readBool()&&n[r(148)](),n.readBool()&&(n[r(127)](4),n[r(148)]()&&n.readBits(24)),n.readBool()&&(n[r(140)](),n[r(140)]()),n[r(148)]()){let e=n[r(127)](32),t=n[r(127)](32);S=n.readBool(),A=t,C=2*e,k=A/C}}let T=1;(1!==_||1!==E)&&(T=_/E);let P=0,D=0;if(0===l)P=1,D=2-g;else{P=3===l?1:2,D=(1===l?2:1)*(2-g)}let I=16*(p+1),F=16*(m+1)*(2-g);I-=(v+y)*P,F-=(w+b)*D;let $=Math[r(143)](I*T);return n[r(136)](),n=null,{profile_string:i,level_string:s,bit_depth:c,ref_frames:h,chroma_format:d,chroma_format_string:ue[r(153)](d),frame_rate:{fixed:S,fps:k,fps_den:C,fps_num:A},sar_ratio:{width:_,height:E},codec_size:{width:I,height:F},present_size:{width:$,height:F}}}static[le(138)](e){const r=le;let t=e[r(130)](1,4),n=r(146);for(let e=0;e<3;e++){let o=t[e][r(132)](16);o[r(123)]<2&&(o="0"+o),n+=o}let o=ue[r(142)](e),a=new O(o);a[r(145)]();let i=a.readByte();a[r(145)]();let s=a.readByte();a[r(140)]();let l=ue[r(144)](i),d=ue[r(158)](s),u=1,c=420,f=[0,420,422,444],h=8,p=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[r(140)](),3===u&&a[r(127)](1),u<=3&&(c=f[u]),h=a.readUEG()+8,p=a.readUEG()+8,a[r(127)](1),a[r(148)]())){let e=3!==u?8:12;for(let t=0;t<e;t++)a[r(148)]()&&(t<6?ue[r(154)](a,16):ue[r(154)](a,64))}a[r(140)]();let m=a[r(140)]();if(0===m)a[r(140)]();else if(1===m){a[r(127)](1),a[r(129)](),a[r(129)]();let e=a[r(140)]();for(let t=0;t<e;t++)a[r(129)]()}let g=a[r(140)]();a[r(127)](1);let v=a[r(140)](),y=a[r(140)](),w=a[r(127)](1);0===w&&a[r(127)](1),a[r(127)](1);let b=0,_=0,E=0,k=0;a[r(148)]()&&(b=a[r(140)](),_=a[r(140)](),E=a[r(140)](),k=a[r(140)]());let S=1,A=1,C=0,T=!0,P=0,D=0;if(a[r(148)]()){if(a[r(148)]()){let e=a.readByte(),t=[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?(S=t[e-1],A=n[e-1]):255===e&&(S=a[r(145)]()<<8|a[r(145)](),A=a[r(145)]()<<8|a[r(145)]())}if(a.readBool()&&a[r(148)](),a.readBool()&&(a.readBits(4),a.readBool()&&a[r(127)](24)),a.readBool()&&(a[r(140)](),a[r(140)]()),a.readBool()){let e=a.readBits(32),t=a.readBits(32);T=a[r(148)](),P=t,D=2*e,C=P/D}}let I=1;(1!==S||1!==A)&&(I=S/A);let F=0,$=0;if(0===u)F=1,$=2-w;else{F=3===u?1:2,$=(1===u?2:1)*(2-w)}let M=16*(v+1),R=16*(y+1)*(2-w);M-=(b+_)*F,R-=(E+k)*$;let B=Math[r(143)](M*I);return a.destroy(),a=null,{codec_mimetype:n,profile_idc:i,level_idc:s,profile_string:l,level_string:d,chroma_format_idc:u,bit_depth:h,bit_depth_luma:h,bit_depth_chroma:p,ref_frames:g,chroma_format:c,chroma_format_string:ue.getChromaFormatString(c),frame_rate:{fixed:T,fps:C,fps_den:D,fps_num:P},sar_ratio:{width:S,height:A},codec_size:{width:M,height:R},present_size:{width:B,height:R}}}static[le(154)](e,r){let t=8,n=8,o=0;for(let a=0;a<r;a++)0!==n&&(o=e.readSEG(),n=(t+o+256)%256),t=0===n?t:n}static[le(144)](e){const r=le;switch(e){case 66:return r(131);case 77:return"Main";case 88:return r(135);case 100:return"High";case 110:return r(155);case 122:return r(134);case 244:return r(126);default:return r(150)}}static[le(158)](e){return(e/10)[le(156)](1)}static[le(153)](e){const r=le;switch(e){case 420:return"4:2:0";case 422:return r(149);case 444:return r(152);default:return"Unknown"}}}function ce(e,r){const t=de();return(ce=function(e,r){return t[e-=121]})(e,r)}const fe=pe;function he(){const e=["2402465wHLxbi","iserro","bufoff","484752Zoogho","23630JYnnQF","buflen","12OPTcRU","bufpos","1008veOCne","read_golomb","read","1787312ZNVBbu","454329inUasz","3eGkxRo","980328lEhVcB","look","length","buffer","454279DDGPHm"];return(he=function(){return e})()}function pe(e,r){const t=he();return(pe=function(e,r){return t[e-=197]})(e,r)}!function(e,r){const t=pe,n=e();for(;;)try{if(771246===parseInt(t(201))/1+parseInt(t(200))/2+parseInt(t(202))/3*(parseInt(t(203))/4)+-parseInt(t(208))/5*(parseInt(t(214))/6)+-parseInt(t(207))/7+-parseInt(t(211))/8+-parseInt(t(197))/9*(-parseInt(t(212))/10))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(he);class me{constructor(e){const r=pe;this.buffer=e,this[r(213)]=e[r(205)],this[r(215)]=0,this[r(210)]=0,this[r(209)]=!1}[fe(199)](e){const r=fe;let t=0,n=0;for(;e;){if(e<0||this[r(215)]>=this[r(213)])return this[r(209)]=!0,0;this[r(209)]=!1,n=this[r(210)]+e>8?8-this[r(210)]:e,t<<=n,t+=this[r(206)][this[r(215)]]>>8-this[r(210)]-n&255>>8-n,this[r(210)]+=n,e-=n,8==this[r(210)]&&(this[r(215)]++,this[r(210)]=0)}return t}[fe(204)](e){const r=fe;let t=this.bufpos,n=this.bufoff,o=this[r(199)](e);return this.bufpos=t,this[r(210)]=n,o}[fe(198)](){const e=fe;let r;for(r=0;0===this[e(199)](1)&&!this[e(209)];r++);return(1<<r)+this[e(199)](r)-1}}const ge=ye;function ve(){const e=["skipLZ","2022980AcYkAe","min","_bytesAvailable","readBits","2iiuFwk","getUint32","3731586pQijhK","subarray","Cannot read more than 32 bits","7aZeIPM","_word","_loadWord","14567720HIsxCx","readEG","ExpGolomb data params is required","skipBits","_data","readBool","skipScalingList","No bytes available","5967128tmuVUY","1697064cdQhGB","612643lkEIAr","buffer","5oHMbcR","_bitsAvailable","readUEG","3840957uesgPh","byteLength"];return(ve=function(){return e})()}function ye(e,r){const t=ve();return(ye=function(e,r){return t[e-=302]})(e,r)}!function(e,r){const t=ye,n=e();for(;;)try{if(481373===parseInt(t(316))/1*(-parseInt(t(328))/2)+-parseInt(t(315))/3+-parseInt(t(324))/4*(-parseInt(t(318))/5)+parseInt(t(330))/6*(-parseInt(t(303))/7)+parseInt(t(314))/8+-parseInt(t(321))/9+parseInt(t(306))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ve);ge(305),ge(309),ge(323),ge(320),ge(311),ge(312);const we=Ee;function be(){const e=["setUint32","frameRate","height","bit_depth","997460LGvONN","skipUEG","setInt16","presentWidth","level_string","error","12930753jPaWMR","fps_num","currentStartcodeOffset","11332AeYKZc","read","24BOIbWm","toString","data","skipBits","getUint16","avc_ref_frames","1506201DNruaR","chroma_format","skipScalingList","timescale","read_golomb","shift","bit_depth_luma","avcc","codec_size","codec","chromaFormat","Invalid AVCDecoderConfigurationRecord: No PPS'","readUByte","kSliceSEI","readBool","sps","width","Could not find H264 startcode until payload end!","presentHeight","type","codecWidth","kReserved0","buffer","level","readBits","nb_sps","sar_ratio","1243290xvewZr","getUint8","16605TqbcBo","Invalid AVCDecoderConfigurationRecord: No SPS","byteLength","set","14RDQhhp","length","h264","fixed","present_size","subarray","ceil","Strange AVCDecoderConfigurationRecord: PPS Count = ","iFrame","profile","videoType","refSampleDuration","sarRatio","findNextStartCodeOffset","fps_den","parseSPS$2","frame_rate","335XUBzrJ","avc1.","1Gydqmg","readNextNaluPayload","push","bitDepth","203858YgSqSJ","pps","parseSPS","profile_string","readUEG","nalu","codecHeight","bit_depth_chroma","eofFlag"];return(be=function(){return e})()}function _e(e){const r=Ee,t={};let n=function(){const e=Ee;let r=new ArrayBuffer(2);return new DataView(r)[e(335)](0,256,!0),256===new Int16Array(r)[0]}();const o=new DataView(e.buffer);let a=o[r(378)](0),i=o[r(378)](1);if(o[r(378)](2),o[r(378)](3),1!==a||0===i)return{};const s=1+(3&o[r(378)](4));if(3!==s&&4!==s)return{};let l=31&o.getUint8(5);if(0===l)return{};let d=6;for(let a=0;a<l;a++){let i=o.getUint16(d,!n);if(d+=2,0===i)continue;let s=new Uint8Array(e[r(372)],d,i);d+=i;let l=ue[r(322)](s);if(0!==a)continue;t[r(365)]=s,t.timescale=1e3,t[r(370)]=l.codec_size[r(366)],t[r(326)]=l[r(358)].height,t.presentWidth=l[r(387)][r(366)],t[r(368)]=l[r(387)].height,t[r(306)]=l[r(323)],t[r(373)]=l[r(337)],t[r(319)]=l.bit_depth,t.chromaFormat=l[r(351)],t[r(309)]=l[r(376)],t[r(330)]=l[r(313)],(!1===l[r(313)][r(386)]||0===l[r(313)][r(340)]||0===l.frame_rate[r(311)])&&(t.frameRate={fixed:!0,fps:25,fps_num:25e3,fps_den:1e3});let u=t[r(330)][r(311)],c=t[r(330)][r(340)];t[r(308)]=t[r(353)]*(u/c);let f=s[r(388)](1,4),h=r(315);for(let e=0;e<3;e++){let t=f[e][r(345)](16);t[r(384)]<2&&(t="0"+t),h+=t}t[r(359)]=h}let u=o[r(378)](d);if(0===u)return{};d++;for(let a=0;a<u;a++){let a=o[r(348)](d,!n);if(d+=2,0===a)continue;let i=new Uint8Array(e.buffer,d,a);d+=a,t[r(321)]=i}if(t.videoType=k[r(385)],t.sps){const e=t[r(365)][r(381)],n=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),o=new Uint8Array(e+4);o[r(382)](n,0),o[r(382)](t[r(365)],4),t.sps=o}if(t[r(321)]){const e=t[r(321)][r(381)],n=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),o=new Uint8Array(e+4);o[r(382)](n,0),o.set(t[r(321)],4),t[r(321)]=o}return t}function Ee(e,r){const t=be();return(Ee=function(e,r){return t[e-=304]})(e,r)}!function(e,r){const t=Ee,n=e();for(;;)try{if(252697===-parseInt(t(316))/1*(parseInt(t(320))/2)+-parseInt(t(350))/3+parseInt(t(342))/4*(parseInt(t(314))/5)+parseInt(t(377))/6*(-parseInt(t(383))/7)+parseInt(t(344))/8*(parseInt(t(379))/9)+-parseInt(t(333))/10+parseInt(t(339))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(be);we(317);function ke(e,r){const t=Ae();return(ke=function(e,r){return t[e-=401]})(e,r)}const Se=ke;function Ae(){const e=["1732088hkHSYY","101243oFGCsF","14XKjuCs","GetUE","m_len","2590992WlGGUR","m_zeros","m_bits","m_idx","m_byte","415452GOSsMJ","10ZeSCoM","GetSE","12NRtzlC","length","2877543DQGaqs","GetWord","578665XbKjBS","12fbyoxi","9126403MtblWV","GetBYTE","10JLQpZJ","GetBit","m_data"];return(Ae=function(){return e})()}!function(e,r){const t=ke,n=e();for(;;)try{if(489651===parseInt(t(401))/1*(parseInt(t(411))/2)+parseInt(t(405))/3+-parseInt(t(418))/4*(-parseInt(t(417))/5)+parseInt(t(410))/6*(parseInt(t(402))/7)+-parseInt(t(424))/8+parseInt(t(415))/9*(-parseInt(t(421))/10)+-parseInt(t(419))/11*(parseInt(t(413))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ae);class Ce{constructor(e){const r=ke;this[r(408)]=null,this[r(423)]=e,this[r(404)]=e[r(414)],this[r(408)]=0,this.m_bits=0,this[r(409)]=0,this[r(406)]=0}[Se(420)](){const e=Se;if(this.m_idx>=this[e(404)])return 0;let r=this[e(423)][this.m_idx++];return 0==r?(this[e(406)]++,this.m_idx<this[e(404)]&&2==this[e(406)]&&3==this[e(423)][this.m_idx]&&(this[e(408)]++,this.m_zeros=0)):this[e(406)]=0,r}GetBit(){const e=Se;return 0==this[e(407)]&&(this[e(409)]=this[e(420)](),this[e(407)]=8),this[e(407)]--,this.m_byte>>this[e(407)]&1}[Se(416)](e){const r=Se;let t=0;for(;e>0;)t<<=1,t|=this[r(422)](),e--;return t}GetUE(){const e=Se;let r=0;for(;this.m_idx<this.m_len&&0==this.GetBit();)r++;return this[e(416)](r)+((1<<r)-1)}[Se(412)](){let e=this[Se(403)](),r=e+1>>1;return!(1&e)&&(r=-r),r}}const Te=Pe;function Pe(e,r){const t=Ie();return(Pe=function(e,r){return t[e-=399]})(e,r)}!function(e,r){const t=Pe,n=e();for(;;)try{if(955241===-parseInt(t(406))/1+parseInt(t(414))/2*(-parseInt(t(413))/3)+parseInt(t(401))/4+parseInt(t(402))/5*(-parseInt(t(416))/6)+parseInt(t(415))/7+-parseInt(t(407))/8+parseInt(t(405))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ie);class De{static[Te(408)](e){const r=Te;let t=e,n=t[r(417)],o=new Uint8Array(n),a=0;for(let e=0;e<n;e++)e>=2&&3===t[e]&&0===t[e-1]&&0===t[e-2]||(o[a]=t[e],a++);return new Uint8Array(o[r(411)],0,a)}static[Te(400)](e){const r=Te;let t=De[r(408)](e);const n=new Ce(t);let o="",a="",i="",s="";n.GetWord(4);let l=n[r(399)](3);if(l>6)return console[r(409)](r(412)),!1;n[r(399)](1),n.GetWord(2),n[r(399)](1),o=n[r(399)](5),n[r(399)](32),n[r(399)](1),n.GetWord(1),n[r(399)](1),n[r(399)](1),n.GetWord(44),a=n[r(399)](8);let d=[],u=[];for(let e=0;e<l;e++)d[e]=n[r(399)](1),u[e]=n.GetWord(1);if(l>0)for(let e=l;e<8;e++)n[r(399)](2);for(let e=0;e<l;e++)d[e]&&(n[r(399)](2),n[r(399)](1),n[r(399)](5),n[r(399)](32),n[r(399)](1),n[r(399)](1),n[r(399)](1),n[r(399)](1),n.GetWord(44)),u[e]&&n[r(399)](8);let c=n.GetUE();if(c>15)return console[r(409)]("SPSParser sps_seq_parameter_set_id > 15",c),!1;let f=n.GetUE();return f>3?(console[r(409)](r(403),f),!1):(3==f&&n[r(399)](1),i=n[r(404)](),s=n[r(404)](),n[r(399)](1)&&(n.GetUE(),n[r(404)](),n.GetUE(),n.GetUE()),n.GetUE()!=n[r(404)]()?(console.warn(r(410)),!1):{profile_string:o,level_string:a,bit_depth:"",ref_frames:"",chroma_format:"",chroma_format_string:"",frame_rate:{fixed:"",fps:"",fps_den:"",fps_num:""},sar_ratio:{width:"",height:""},codec_size:{width:i,height:s},present_size:{width:"",height:s}})}}function Ie(){const e=["9629080lWIMNc","_ebsp2rbsp","warn","SPSParser bit_depth_luma_minus8 != bit_depth_chroma_minus8","buffer","SPSParser sps_max_sub_layers_minus1 > 6","14487HADUXo","46aIsWRZ","5180385GhYxJh","29928VwWRgl","byteLength","GetWord","parseSPS","2528480OYUyew","520EvSWDc","SPSParser chroma_format_idc > 3","GetUE","28957635kHkoiA","1800995dLngQF"];return(Ie=function(){return e})()}function Fe(e,r){const t=$e();return(Fe=function(e,r){return t[e-=136]})(e,r)}function $e(){const e=["Unknown","readBits","6010716aAotaj","64338WwdEEx","readSEG","toFixed","byteLength","6025068cTKaNm","4:2:0","readUEG","readBool","push","465774TyTghh","179229AwJNjp","4OnRJiQ","buffer","readByte","343tPKJvB","6719455SbDnLB","10HdGUvT",".B0","3813864LZcxuI","33oOacRO","hvc1.","4:0:0","min","4:2:2","2inqkUl"];return($e=function(){return e})()}!function(e,r){const t=Fe,n=e();for(;;)try{if(868001===parseInt(t(161))/1+parseInt(t(148))/2*(-parseInt(t(162))/3)+parseInt(t(163))/4*(parseInt(t(139))/5)+parseInt(t(152))/6*(-parseInt(t(138))/7)+parseInt(t(142))/8+-parseInt(t(156))/9*(-parseInt(t(140))/10)+-parseInt(t(143))/11*(parseInt(t(151))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}($e);const Me=Be;function Re(){const e=["4:0:0","getChromaFormatString","hvc1.","Rext","4:2:0","SCC","4:4:4","1345910IoRbqQ","3185109FjASlm","readByte","destroy","11LiigAi","86vtuKlC","14052xezxCK","12GmVSqq","readSEG","readBool","parseSPS","buffer","_ebsp2rbsp","1412065gItcqL","readBits","getLevelString",".B0","MainSP","4:2:2","readUEG","Main","803739UvqLXA",".1.L","156XHCfnL","160428oeBYwg","toFixed","8CSYzOg","getProfileString","401596XZZznK","35aAmaWL","Unknown","byteLength"];return(Re=function(){return e})()}function Be(e,r){const t=Re();return(Be=function(e,r){return t[e-=421]})(e,r)}!function(e,r){const t=Be,n=e();for(;;)try{if(778866===parseInt(t(457))/1+-parseInt(t(441))/2*(parseInt(t(442))/3)+-parseInt(t(443))/4*(parseInt(t(449))/5)+-parseInt(t(421))/6*(-parseInt(t(426))/7)+-parseInt(t(423))/8*(-parseInt(t(437))/9)+-parseInt(t(436))/10*(-parseInt(t(440))/11)+parseInt(t(459))/12*(parseInt(t(425))/13))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Re);class Oe{static _ebsp2rbsp(e){const r=Be;let t=e,n=t[r(428)],o=new Uint8Array(n),a=0;for(let e=0;e<n;e++)e>=2&&3===t[e]&&0===t[e-1]&&0===t[e-2]||(o[a]=t[e],a++);return new Uint8Array(o[r(447)],0,a)}static parseVPS(e){const r=Be;let t=Oe._ebsp2rbsp(e),n=new O(t);return n[r(438)](),n[r(438)](),n.readBits(4),n[r(450)](2),n[r(450)](6),{num_temporal_layers:n.readBits(3)+1,temporal_id_nested:n[r(445)]()}}static[Me(446)](e){const r=Me;let t=Oe[r(448)](e),n=new O(t);n[r(438)](),n[r(438)]();let o=0,a=0,i=0,s=0;n[r(450)](4);let l=n[r(450)](3);n.readBool();let d=n[r(450)](2),u=n[r(445)](),c=n[r(450)](5),f=n.readByte(),h=n[r(438)](),p=n.readByte(),m=n[r(438)](),g=n.readByte(),v=n[r(438)](),y=n[r(438)](),w=n[r(438)](),b=n[r(438)](),_=n.readByte(),E=n[r(438)](),k=[],S=[];for(let e=0;e<l;e++)k.push(n[r(445)]()),S.push(n[r(445)]());if(l>0)for(let e=l;e<8;e++)n[r(450)](2);for(let e=0;e<l;e++)k[e]&&(n[r(438)](),n[r(438)](),n.readByte(),n[r(438)](),n[r(438)](),n[r(438)](),n.readByte(),n.readByte(),n.readByte(),n[r(438)](),n[r(438)]()),S[e]&&n.readByte();n.readUEG();let A=n[r(455)]();3==A&&n[r(450)](1);let C=n.readUEG(),T=n.readUEG();n[r(445)]()&&(o+=n.readUEG(),a+=n[r(455)](),i+=n.readUEG(),s+=n.readUEG());let P=n.readUEG(),D=n.readUEG(),I=n[r(455)]();for(let e=n[r(445)]()?0:l;e<=l;e++)n[r(455)](),n.readUEG(),n[r(455)]();if(n[r(455)](),n[r(455)](),n[r(455)](),n.readUEG(),n[r(455)](),n[r(455)](),n[r(445)]()){if(n[r(445)]())for(let e=0;e<4;e++)for(let t=0;t<(3===e?2:6);t++){if(n[r(445)]()){let t=Math.min(64,1<<4+(e<<1));e>1&&n[r(444)]();for(let e=0;e<t;e++)n.readSEG()}else n[r(455)]()}}n[r(445)](),n[r(445)](),n[r(445)]()&&(n.readByte(),n[r(455)](),n[r(455)](),n[r(445)]());let F=n[r(455)](),$=0;for(let e=0;e<F;e++){let t=!1;if(0!==e&&(t=n[r(445)]()),t){e===F&&n[r(455)](),n.readBool(),n.readUEG();let t=0;for(let e=0;e<=$;e++){let e=n[r(445)](),o=!1;!e&&(o=n[r(445)]()),(e||o)&&t++}$=t}else{let e=n[r(455)](),t=n[r(455)]();$=e+t;for(let t=0;t<e;t++)n.readUEG(),n[r(445)]();for(let e=0;e<t;e++)n[r(455)](),n.readBool()}}if(n[r(445)]()){let e=n[r(455)]();for(let t=0;t<e;t++){for(let e=0;e<I+4;e++)n[r(450)](1);n.readBits(1)}}let M=!1,R=0,B=1,W=1,U=!1,x=1,j=1;if(n[r(445)](),n[r(445)](),n.readBool()){if(n.readBool()){let e=n[r(438)](),t=[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?(B=t[e-1],W=o[e-1]):255===e&&(B=n.readBits(16),W=n[r(450)](16))}if(n[r(445)]()&&n[r(445)](),n.readBool()){n[r(450)](3),n[r(445)](),n[r(445)]()&&(n.readByte(),n[r(438)](),n[r(438)]())}if(n[r(445)]()&&(n[r(455)](),n[r(455)]()),n[r(445)](),n[r(445)](),n[r(445)](),M=n[r(445)](),M&&(n[r(455)](),n[r(455)](),n[r(455)](),n[r(455)]()),n[r(445)]()){if(x=n[r(450)](32),j=n.readBits(32),n.readBool()&&n[r(455)](),n.readBool()){let e=!1,t=!1,o=!1;e=n[r(445)](),t=n[r(445)](),(e||t)&&(o=n[r(445)](),o&&(n[r(438)](),n[r(450)](5),n[r(445)](),n[r(450)](5)),n[r(450)](4),n[r(450)](4),o&&n[r(450)](4),n[r(450)](5),n[r(450)](5),n[r(450)](5));for(let a=0;a<=l;a++){let a=n[r(445)]();U=a;let i=!0,s=1;!a&&(i=n[r(445)]());let l=!1;if(i?n[r(455)]():l=n.readBool(),!l&&(s=n[r(455)]()+1),e){for(let e=0;e<s;e++)n[r(455)](),n[r(455)](),o&&(n[r(455)](),n[r(455)]());n[r(445)]()}if(t){for(let e=0;e<s;e++)n.readUEG(),n[r(455)](),o&&(n[r(455)](),n[r(455)]());n[r(445)]()}}}}n[r(445)]()&&(n[r(445)](),n[r(445)](),n.readBool(),R=n[r(455)](),n[r(455)](),n[r(455)](),n[r(455)](),n[r(455)]())}n[r(445)]();let L=r(431)+c+r(458)+E+r(452),z=C-(o+a)*(1===A||2===A?2:1),N=T-(i+s)*(1===A?2:1),V=1;return 1!==B&&1!==W&&(V=B/W),n[r(439)](),n=null,{codec_mimetype:L,profile_string:Oe.getProfileString(c),level_string:Oe[r(451)](E),profile_idc:c,bit_depth:P+8,ref_frames:1,chroma_format:A,chroma_format_string:Oe[r(430)](A),general_level_idc:E,general_profile_space:d,general_tier_flag:u,general_profile_idc:c,general_profile_compatibility_flags_1:f,general_profile_compatibility_flags_2:h,general_profile_compatibility_flags_3:p,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:R,constant_frame_rate:0,chroma_format_idc:A,bit_depth_luma_minus8:P,bit_depth_chroma_minus8:D,frame_rate:{fixed:U,fps:j/x,fps_den:x,fps_num:j},sar_ratio:{width:B,height:W},codec_size:{width:z,height:N},present_size:{width:z*V,height:N}}}static parsePPS(e){const r=Me;let t=Oe[r(448)](e),n=new O(t);n[r(438)](),n[r(438)](),n[r(455)](),n[r(455)](),n[r(445)](),n.readBool(),n.readBits(3),n[r(445)](),n[r(445)](),n.readUEG(),n[r(455)](),n[r(444)](),n[r(445)](),n.readBool(),n[r(445)]()&&n[r(455)](),n[r(444)](),n[r(444)](),n[r(445)](),n[r(445)](),n[r(445)](),n[r(445)]();let o=n[r(445)](),a=n.readBool(),i=1;return a&&o?i=0:a?i=3:o&&(i=2),{parallelismType:i}}static[Me(430)](e){const r=Me;switch(e){case 0:return r(429);case 1:return r(433);case 2:return r(454);case 3:return r(435);default:return r(427)}}static[Me(424)](e){const r=Me;switch(e){case 1:return r(456);case 2:return"Main10";case 3:return r(453);case 4:return r(432);case 9:return r(434);default:return r(427)}}static[Me(451)](e){return(e/30)[Me(422)](1)}}const We=Ue;function Ue(e,r){const t=xe();return(Ue=function(e,r){return t[e-=381]})(e,r)}function xe(){const e=["general_profile_compatibility_flags_2","length","profile","set","conf_win_right_offset","profile_string","sub_layer_profile_compatibility_flag","readNextNaluPayload","Invalid HEVCDecoderConfigurationRecord, Strange NaluLengthSizeMinusOne: ","general_constraint_indicator_flags","conf_win_bottom_offset","temporal_id_nested","387GUUWQj","sub_layer_non_packed_constraint_flag","sub_layer_level_present_flag","numTemporalLayers","byteLength","constantFrameRate","fixed","temporalIdNested","pic_height_in_luma_samples","findNextStartCodeOffset","Invalid HEVCDecoderConfigurationRecord, lack of data! ","error","setInt16","pic_width_in_luma_samples","14189pHOqly","max","sub_layer_profile_idc","separate_colour_plane_flag","conf_win_top_offset","constant_frame_rate","parseHEVCDecoderConfigurationRecord$3","2520236iGAZCN","bitDepthChromaMinus8","Invalid HEVCDecoderConfigurationRecord,version is ","parseSPS","eofFlag","sub_layer_tier_flag","general_non_packed_constraint_flag","generalConstraintIndicatorFlags"," < 22","getUint8","readUEG","sps_temporal_id_nesting_flag","presentHeight","2251832pSpiJD","5eYzuAF","conformance_window_flag","general_constraint_indicator_flags_2","generalProfileSpace","sps_video_parameter_set_id","fps_num","read_golomb","subarray","vps","general_tier_flag","hvcc","pps","fps_den","general_constraint_indicator_flags_4","data","push","type","16286bKnzqz","generalTierFlag","frameRate","sub_layer_profile_present_flag","1408055hzSVvg","height","general_constraint_indicator_flags_3","psps","profile_tier_level","buffer","bit_depth","general_profile_compatibility_flags_1","Could not find H265 startcode until payload end!","hev1.1.6.L93.B0","general_profile_compatibility_flags","general_profile_idc","refSampleDuration","assign","frame_rate","h265","warn","general_profile_compatibility_flags_3","codec_size","conf_win_left_offset","bitDepth","look","176136nPSAfU","chroma_format_idc","generalProfileCompatibilityFlags","general_profile_compatibility_flags_4","chroma_format","num_temporal_layers","configurationVersion","sub_layer_level_idc","lengthSizeMinusOne","level_string","sub_layer_progressive_source_flag","general_interlaced_source_flag","generalLevelIdc","level","sar_ratio","tier_flag","chromaFormat","sps_max_sub_layers_minus1","1098vRVmuE","present_size","bitDepthLumaMinus8","min_spatial_segmentation_idc","general_constraint_indicator_flags_5","sarRatio","codecWidth","read","sps","setUint32","readBits","currentStartcodeOffset","generalProfileIdc","chromaFormatIdc","general_profile_space","profile_compatibility_flags","codec_mimetype","getUint16",", hevcProfile is ","codecHeight","general_level_idc","width","sub_layer_profile_space","54oXtIaz","readUByte","176660yNcGRM","avgFrameRate","slice","profile_idc","general_frame_only_constraint_flag","sei","parallelismType","presentWidth","sub_layer_interlaced_source_flag"];return(xe=function(){return e})()}function je(e,r){const t=Ue;let n={},o=e[t(469)],a=[],i=new me(e);i[t(441)](1),i[t(441)](6),i[t(441)](6),i[t(441)](3);for(let e=2;e<o;e++)e+2<o&&3==i[t(415)](24)?(a[t(388)](i[t(441)](8)),a[t(388)](i[t(441)](8)),e+=2,i[t(441)](8)):a[t(388)](i[t(441)](8));let s=new Uint8Array(a),l=new me(s);if(n[t(519)]=l[t(441)](4),n[t(433)]=l[t(441)](3),n[t(512)]=l.read(1),n[t(398)]=function(e,r,t){const n=Ue;let o={};o.profile_space=e[n(441)](2),o[n(431)]=e.read(1),o[n(462)]=e[n(441)](5),o[n(449)]=e[n(441)](32),o.general_progressive_source_flag=e[n(441)](1),o[n(427)]=e.read(1),o[n(507)]=e.read(1),o[n(463)]=e[n(441)](1),e.read(32),e[n(441)](12),o.level_idc=e[n(441)](8),o[n(393)]=[],o[n(482)]=[];for(let r=0;r<t;r++)o[n(393)][r]=e[n(441)](1),o[n(482)][r]=e[n(441)](1);if(t>0)for(let r=t;r<8;r++)e[n(441)](2);o[n(456)]=[],o[n(506)]=[],o[n(496)]=[],o[n(474)]=[],o[n(426)]=[],o[n(467)]=[],o[n(481)]=[],o.sub_layer_frame_only_constraint_flag=[],o.sub_layer_level_idc=[];for(let r=0;r<t;r++)o[n(393)][r]&&(o[n(456)][r]=e[n(441)](2),o[n(506)][r]=e[n(441)](1),o[n(496)][r]=e[n(441)](5),o[n(474)][r]=e.read(32),o[n(426)][r]=e[n(441)](1),o[n(467)][r]=e[n(441)](1),o[n(481)][r]=e[n(441)](1),o.sub_layer_frame_only_constraint_flag[r]=e[n(441)](1),e[n(441)](32),e.read(12)),o[n(482)][r]?o[n(423)][r]=e[n(441)](8):o[n(423)][r]=1;return o}(l,0,n.sps_max_sub_layers_minus1),n.sps_seq_parameter_set_id=l[t(521)](),n[t(417)]=l.read_golomb(),3==n[t(417)]?n[t(497)]=l[t(441)](1):n[t(497)]=0,n[t(493)]=l[t(521)](),n[t(488)]=l.read_golomb(),n.conformance_window_flag=l[t(441)](1),n[t(516)]){let e=1+(n.chroma_format_idc<2),r=1+(n[t(417)]<3);n[t(413)]=l[t(521)]()*r,n.conf_win_right_offset=l.read_golomb()*r,n[t(498)]=l[t(521)]()*e,n.conf_win_bottom_offset=l[t(521)]()*e}else n[t(413)]=0,n.conf_win_right_offset=0,n[t(498)]=0,n[t(478)]=0;return n}!function(e,r){const t=Ue,n=e();for(;;)try{if(413746===parseInt(t(416))/1+parseInt(t(390))/2*(parseInt(t(457))/3)+parseInt(t(501))/4*(-parseInt(t(515))/5)+parseInt(t(434))/6*(parseInt(t(494))/7)+-parseInt(t(514))/8+-parseInt(t(480))/9*(-parseInt(t(459))/10)+-parseInt(t(394))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(xe);We(489),We(475);const Le=Ne;function ze(){const e=["render"," and isIFrame is ","wasmWidthOrHeightChange","videoDecoder","errorInfo","decodeVideo: video width or height is changed, and return","playAudio","debugLog","timeEnd","init","MtWasmDecoder","hasInitVideoCodec","audioBufferSize","destroy","setCodecAudio, audioDecoder is not exist or setCodec is not a function","decodeVideo first frame is not iFrame","setCodecAudio: hasInitAudioCodec is false, codecId is ","setCodecVideo","2136LIXxAa","Jb pro 体验结束,请刷新页面再次体验(wasm内部会暂停解码),如需要购买商业授权,可以联系微信:bosswancheng","decodeAudio, decoder is destroyed and return","yuvData ts ","initAudio","_handleModuleAudioError","validatedFailed","data","audioCode","setCodecAudio","_handleModuleVideoError","audioDepth",", new height is ","newDecodedVideoFrameTimestamp","isWidthOrHeightChanged",",\n new width is ","videoInfo","AAC","ALAW","MULAW","setCodecVideo: SIMD H264 decode video width is too large, width is ","setCodecVideo: init video codec , codecId is ","_opt","sampleRate","slice","audioRemain","3031wTZHzb","hasInitAudioCodec","audioOutputArray","byteLength","getBuildTime","decodeAudio","audioAACSequenceHeader","yuvData","lastDecodeVideoFrameTimestamp","517630URqjmU","h264"," and diff is ","debugError","_reset","mp3Demuxer","6072786vwabQA","wasmDecodeErrorStartTime","subarray","isVideoFirstIFrame","isSimdDecodeError"," > ","541932qBPBQK","decodeVideo, decoder is destroyed and return","dispatch","\n and replay","10fEOHnH","player"," create uint8Array error :","iframeIntervalTimestamp"," and packetType is ","codecWidth","worker","TAG_NAME","decodeVideo and payload is video sequence header so drop this frame","simdDecodeError","ModuleVideo","clear","setCodec","HEAPU32","videoWidth","video wasm error:","ModuleAudio","MP3","h265","videoCode","audioDecoder","yuvData, isVideoFirstIFrame is false and return","audioInfo","tempAudioBuffer","pcmData","codecHeight","pcmData ts ","decodeVideo and payload is too small , payload length is ","5ZHCpYe","videoHeight","HEAPF32",", old height is ","3028120lEsKce","setCodecAudio: init audio codec, codeId is ","length"," _opt.sampleRate is ","width: ","audioChannels","delete",", height: ","839898cQrMOx","toString","emit","debugWarn",", height is "," and maxDiff is ","videoCodec","decode","off","simdH264DecodeVideoWidthIsTooLarge","1093252Sjdqwa","isDestroyed","yuvData, decoder is destroyed and return","pcmData, decoder is destroyed and return"];return(ze=function(){return e})()}function Ne(e,r){const t=ze();return(Ne=function(e,r){return t[e-=453]})(e,r)}!function(e,r){const t=Ne,n=e();for(;;)try{if(302354===-parseInt(t(500))/1+parseInt(t(566))/2+parseInt(t(556))/3+-parseInt(t(512))/4*(-parseInt(t(544))/5)+parseInt(t(465))/6*(parseInt(t(491))/7)+parseInt(t(548))/8+parseInt(t(506))/9*(-parseInt(t(516))/10))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ze);class Ve extends te{constructor(e){const r=Ne;let t=arguments[r(550)]>1&&void 0!==arguments[1]?arguments[1]:{};super(),this[r(517)]=e,this[r(487)]=t,this.TAG_NAME=r(457),this[r(504)](),this[r(459)]=t[r(459)]||1024,this[r(488)]=t[r(488)]||44100,this[r(532)]=null,this.ModuleVideo=null,this.videoDecoder=null,this.audioDecoder=null,this[r(509)]=!!Z(e[r(487)].checkFirstIFrame),this.init()}[Le(460)](){const e=Le;if(this[e(564)](),this[e(536)]){try{X(this[e(536)][e(527)])&&this.audioDecoder[e(527)](),X(this[e(536)][e(554)])&&this[e(536)][e(554)]()}catch(e){}this[e(536)]=null}if(this[e(573)]){try{X(this.videoDecoder.clear)&&this[e(573)][e(527)](),X(this[e(573)][e(554)])&&this.videoDecoder[e(554)]()}catch(e){}this[e(573)]=null}this[e(505)]&&(this[e(505)].destroy(),this.mp3Demuxer=null),this[e(504)](),this[e(517)][e(454)](this[e(523)],e(460))}[Le(456)](){}[Le(470)](e){const r=Le;(function(e){const r=V;return!(!e||-1===e[r(244)](r(311))&&-1===e.indexOf(r(503))&&-1===e[r(244)](r(508))&&-1===e[r(244)]("Reserved SBR extensions is not implemented"))})(e)||this[r(517)][r(503)](this[r(523)],"audio wasm error:",e)}[Le(475)](e){const r=Le;(function(e){const r=V;return!(!e||-1===e.indexOf(r(214)))})(e)||(this[r(517)].debugError(this[r(523)],r(531),e),Z(function(e){let r=!0;return e&&-1!==e[V(244)]("failed to asynchronously prepare wasm")&&(r=!1),r}(e))&&this[r(558)](y.notSupportNewWasm,e))}[Le(504)](){const e=Le;this[e(536)]=null,this[e(573)]=null,this[e(459)]=null,this[e(530)]=0,this[e(545)]=0,this[e(553)]=0,this[e(476)]=0,this[e(492)]=!1,this[e(458)]=!1,this[e(505)]=null,this[e(509)]=!1,this[e(479)]=!1,this.isSimdDecodeError=!1,this.lastDecodeVideoFrameTimestamp=0,this[e(507)]=null,this[e(478)]=0,this[e(490)]=0,this[e(519)]=0,this[e(493)]=[],this.tempAudioBuffer=[]}[Le(464)](e,r){const t=Le,n=15&e[0],o=this.player;if(Z(this.videoDecoder&&X(this[t(573)][t(528)])))o.debugError(this[t(523)],"setCodecVideo, videoDecoder is not exist or setCodec is not a function");else if(J(e))if(n===b[t(501)]||n===b[t(534)]){o.debugLog(this[t(523)],t(486)+n);const r=e[t(489)](5);if(n===b[t(501)]&&o[t(487)].useSIMD){const e=_e(r);if(e.codecWidth>m||e[t(541)]>m)return this.emit(y[t(565)],t(552)+e.codecWidth+t(511)+m+", height: "+e[t(541)]+" > "+m),void o.debugWarn(this[t(523)],t(485)+e[t(521)]+t(560)+e[t(541)])}const a=new Uint8Array(e);this.hasInitVideoCodec=!0,this[t(573)][t(528)](n,r,this.getBuildTime()),this[t(558)](y[t(535)],{code:n}),this[t(558)](y[t(562)],{buffer:a,codecId:n})}else o.debugWarn(this[t(523)],"setCodecVideo: hasInitVideoCodec is false, codecId is "+n+" is not H264 or H265");else o[t(559)](this.TAG_NAME,"decodeVideo: hasInitVideoCodec is false, codecId is "+n+t(571)+r+t(520)+e[1])}[Le(474)](e,r){const t=Le,n=e[0]>>4,o=e[0]>>1&1;if(n===_.AAC?this[t(476)]=o?16:8:this.audioDepth=0===o?8:16,Z(this[t(536)]&&X(this[t(536)].setCodec)))return void this.player[t(503)](this.TAG_NAME,t(461));const a=this[t(517)];if(j(e)||n===_[t(483)]||n===_[t(484)]||n===_[t(533)]){this[t(517)][t(454)](this.TAG_NAME,t(549)+n+t(551)+this.sampleRate);const o=n===_.AAC?e[t(489)](2):new Uint8Array(0);if(this.audioDecoder[t(528)](n,this[t(488)],o,this[t(495)]()),n===_[t(482)]&&this[t(558)](y[t(497)],{buffer:o}),this[t(492)]=!0,n!==_[t(482)]&&(n===_.MP3?(!this[t(505)]&&(this[t(505)]=new se(this),this[t(505)].on(t(472),((e,r)=>{this[t(536)].decode(e,r)}))),this[t(505)][t(514)](e[t(489)](1),r)):this[t(536)][t(563)](e[t(489)](1),r)),Z(q)){const e=Number("1")||1;setTimeout((()=>{const e=t;this[e(517)][e(503)](this[e(523)],e(466)),this[e(460)](),this[e(558)](y.workerEnd)}),60*e*60*1e3)}}else a[t(559)](this[t(523)],t(463),n)}[Le(496)](e,r){const t=Le;if(this[t(517)].isDestroyed())return void this[t(517)][t(454)](this[t(523)],t(467));const n=e[0]>>4;if(this[t(492)]){if(j(e))return void this[t(517)][t(454)](this.TAG_NAME,"decodeAudio and has already initialized and payload is aac codec packet so drop this frame");n===_[t(533)]?this.mp3Demuxer[t(514)](e[t(489)](1),r):this[t(536)].decode(n===_[t(482)]?e[t(489)](2):e.slice(1),r)}else this[t(474)](e,r)}decodeVideo(e,r,t){const n=Le;if(n(550),this[n(517)][n(567)]())this[n(517)].debugLog(this[n(523)],n(513));else if(this[n(458)])if(!this[n(509)]&&t&&(this.isVideoFirstIFrame=!0),this.isVideoFirstIFrame){if(t&&J(e)){const r=15&e[0];let t={};if(r===b[n(501)]){t=_e(e[n(489)](5))}else r===b.h265&&(t=function(e){const r=Ue;let t={codecWidth:0,codecHeight:0,videoType:k.h265};t[r(455)]=0,t[r(395)]=0,t[r(470)]=0,t[r(429)]=0,e=e.slice(5);do{let n={};if(e[r(469)]<23){console.warn("parseHEVCDecoderConfigurationRecord$2","arrayBuffer.length "+e[r(469)]+" < 23");break}if(n[r(422)]=e[0],1!=n[r(422)])break;n[r(448)]=e[1]>>6&3,n[r(382)]=e[1]>>5&1,n.general_profile_idc=31&e[1],n[r(404)]=e[2]<<24|e[3]<<16|e[4]<<8|e[5],n[r(477)]=e[6]<<24|e[7]<<16|e[8]<<8|e[9],n[r(477)]=n[r(477)]<<16|e[10]<<8|e[11],n[r(454)]=e[12],n[r(437)]=(15&e[13])<<8|e[14],n[r(465)]=3&e[15],n[r(432)]=3&e[16],n[r(436)]=7&e[17],n[r(502)]=7&e[18],n[r(460)]=e[19]<<8|e[20],n[r(485)]=e[21]>>6&3,n.numTemporalLayers=e[21]>>3&7,n[r(487)]=e[21]>>2&1,n[r(424)]=3&e[21];let o=e[22],a=e[r(461)](23);for(let e=0;e<o&&!(a[r(469)]<3);e++){let e=63&a[0],o=a[1]<<8|a[2];a=a[r(461)](3);for(let i=0;i<o&&!(a[r(469)]<2);i++){let o=a[0]<<8|a[1];if(a[r(469)]<2+o)break;if(a=a[r(461)](2),33==e){let e=new Uint8Array(o);e[r(471)](a[r(461)](0,o),0),n[r(397)]=je(e),t[r(470)]=n[r(405)],t[r(429)]=n.general_level_idc/30,t[r(455)]=n[r(397)][r(493)]-(n[r(397)][r(413)]+n.psps[r(472)]),t[r(395)]=n[r(397)][r(488)]-(n.psps.conf_win_top_offset+n[r(397)][r(478)])}a=a[r(461)](o)}}}while(0);return t[r(440)]=t[r(455)]||1920,t[r(453)]=t[r(395)]||1080,t[r(513)]=t[r(453)],t.presentWidth=t[r(440)],t.timescale=1e3,t[r(406)]=1e3/23976*1e3,t}(e));t[n(521)]&&t[n(541)]&&this[n(530)]&&this[n(545)]&&(t[n(521)]!==this[n(530)]||t[n(541)]!==this[n(545)])&&(this[n(517)].debugWarn(this[n(523)],"\n decodeVideo: video width or height is changed,\n old width is "+this.videoWidth+n(547)+this[n(545)]+n(480)+t[n(521)]+n(477)+t[n(541)]+",\n and emit change event"),this[n(479)]=!0,this[n(558)](y[n(572)],"width: "+this[n(530)]+"->"+t[n(521)]+n(555)+this[n(545)]+"->"+t[n(541)]))}if(this[n(479)])return void this.player[n(559)](this[n(523)],n(575));if(this[n(510)])return void this[n(517)][n(559)](this[n(523)],"decodeVideo: simd decode error, and return");if(J(e))return void this[n(517)].debugLog(this.TAG_NAME,n(524));if(e[n(494)]<12)return void this[n(517)][n(559)](this[n(523)],n(543)+e[n(494)]);this[n(499)]=r;const o=e[n(489)](5);this[n(573)].decode(o,t?1:0,r)}else this[n(517)].debugLog(this.TAG_NAME,n(462));else this[n(464)](e,t)}[Le(481)](e,r,t){const n=Le;this[n(558)](y[n(535)],{code:e}),this.emit(y.initVideo,{w:r,h:t}),this.videoWidth=r,this[n(545)]=t}[Le(538)](e,r,t){const n=Le;this[n(558)](y[n(473)],{code:e}),this.emit(y[n(469)],{sampleRate:r,channels:t,depth:this[n(476)]}),this[n(553)]=t}[Le(498)](e,r){const t=Le;if(this[t(517)][t(567)]())return void this.player[t(454)](this.TAG_NAME,t(568));if(Z(this.isVideoFirstIFrame))return void this[t(517)][t(454)](this[t(523)],t(537));const n=this.videoWidth*this[t(545)]*3/2;try{let o=this[t(526)].HEAPU8[t(508)](e,e+n),a=new Uint8Array(o);this[t(507)]=null,this[t(478)]=r,this[t(558)](y[t(570)],{output:a,ts:r})}catch(e){this.player[t(559)](this[t(523)],t(468)+r+t(518),e,e[t(557)]())}}[Le(540)](e,r,t){const n=Le;if(this[n(517)][n(567)]())return void this[n(517)][n(454)](this[n(523)],n(569));let o=r,a=[],i=0;try{let s=this[n(459)];for(let r=0;r<2;r++){let t=this[n(532)][n(529)][(e>>2)+r]>>2;a[r]=this.ModuleAudio[n(546)][n(508)](t,t+o)}if(this[n(490)]){if(!(o>=(r=s-this[n(490)])))return this[n(490)]+=o,this[n(539)][0]=Float32Array.of(...this[n(539)][0],...a[0]),void(2==this[n(553)]&&(this.tempAudioBuffer[1]=Float32Array.of(...this[n(539)][1],...a[1])));this[n(493)][0]=Float32Array.of(...this[n(539)][0],...a[0][n(508)](0,r)),2==this[n(553)]&&(this.audioOutputArray[1]=Float32Array.of(...this[n(539)][1],...a[1][n(508)](0,r))),this.emit(y[n(453)],{buffer:this[n(493)],ts:t}),i=r,o-=r}for(this[n(490)]=o;this.audioRemain>=s;this.audioRemain-=s)this[n(493)][0]=a[0][n(489)](i,i+=s),2==this.audioChannels&&(this.audioOutputArray[1]=a[1][n(489)](i-s,i)),this[n(558)](y.playAudio,{buffer:this[n(493)],ts:t});this[n(490)]&&(this[n(539)][0]=a[0].slice(i),2==this[n(553)]&&(this[n(539)][1]=a[1][n(489)](i))),a=[]}catch(e){this[n(517)][n(559)](n(522),n(542)+t+n(518),e,e[n(557)]())}}[Le(574)](e){const r=Le;null===this.wasmDecodeErrorStartTime&&(this[r(507)]=H());const t=H(),n=function(e,r,t){const n=K;return Math[n(330)](Math[n(476)](e,Math[n(330)](r,t)),Math[n(476)](r,t))}(this[r(519)]>0?2*this[r(519)]:5e3,1e3,5e3),o=t-this[r(507)];o>n&&(this[r(517)][r(559)](this[r(523)],"errorInfo() emit simdDecodeError and\n iframeIntervalTimestamp is "+this[r(519)]+r(502)+o+r(561)+n+r(515)),this[r(510)]=!0,this.emit(y[r(525)]))}getBuildTime(){return h+"-"+p}[Le(455)](){const e=Le;this[e(517)][e(503)](this[e(523)],e(466)),this[e(460)](),this.emit(y.workerEnd)}[Le(471)](){const e=Le;this[e(517)][e(503)](this[e(523)],"validatedFailed, please contact the author to get the correct license")}}const He=Ge;function Ge(e,r){const t=qe();return(Ge=function(e,r){return t[e-=303]})(e,r)}function qe(){const e=["2268960ekrncx","9QeBHMf","8885745dKguGp","TAG_NAME","1736015coujkq","catch","134703DyylQj","init","player","1510863elKcSE","151081gGdWxS","debugError","_handleModuleVideoError","8LNeCRi","debugLog","1994830jitsrg","4LLicma","push","videoDecoder","all","ModuleAudio","mtType","init wasm error","audioDecoder","136qpSpmf","JessibucaProMtWasmDecoder","VideoDecoder","AudioDecoder","bind","_handleModuleAudioError"];return(qe=function(){return e})()}!function(e,r){const t=Ge,n=e();for(;;)try{if(307549===parseInt(t(315))/1*(parseInt(t(322))/2)+-parseInt(t(318))/3+-parseInt(t(325))/4*(parseInt(t(313))/5)+parseInt(t(309))/6+parseInt(t(319))/7*(-parseInt(t(303))/8)+parseInt(t(310))/9*(-parseInt(t(324))/10)+parseInt(t(311))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(qe);class Ke extends Ve{constructor(e){const r=Ge;super(e),this.TAG_NAME="MtWasmDecoder",this[r(330)]=T.wasm}[He(316)](){const e=He,n=[];n[e(326)](t({printErr:this[e(308)][e(307)](this)}),r({printErr:this[e(321)][e(307)](this)})),Promise[e(328)](n).then((r=>{const t=e;let[n,o]=r;this[t(329)]=n,this.ModuleVideo=o,o[t(305)]&&(this[t(327)]=new(o[t(305)])(this)),n[t(306)]&&(this[t(332)]=new(n[t(306)])(this)),this.emit(y[t(316)]),this[t(317)][t(323)](this[t(312)],t(316))}))[e(314)]((r=>{const t=e;this[t(317)][t(320)](this[t(312)],t(331),r,r.toString())}))}}window[He(304)]=Ke}));
|