TelegramPWA/dist/4923.e7dd921a659c8e085a0a.js
Alexander Zinchuk f8cb0f526a [Build]
2024-04-19 13:52:38 +04:00

2 lines
68 KiB
JavaScript

(()=>{var e,r,t={72996:(e,r,t)=>{var n,o=t(48764).lW,a=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(e={}){var r,a,i=void 0!==e?e:{};i.ready=new Promise((function(e,t){r=e,a=t}));var s,u,c,l=Object.assign({},i),f=[],d="./this.program",h=(e,r)=>{throw r},m="object"==typeof window,p="function"==typeof importScripts,v="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,g="";if(v){var w=t(96877),y=t(26470);g=p?y.dirname(g)+"/":"//",s=(e,r)=>(e=te(e)?new URL(e):y.normalize(e),w.readFileSync(e,r?void 0:"utf8")),c=e=>{var r=s(e,!0);return r.buffer||(r=new Uint8Array(r)),r},u=(e,r,t)=>{e=te(e)?new URL(e):y.normalize(e),w.readFile(e,(function(e,n){e?t(e):r(n.buffer)}))},process.argv.length>1&&(d=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof ae))throw e})),process.version.match(/^v(\d+)\./)[1]<15&&process.on("unhandledRejection",(function(e){throw e})),h=(e,r)=>{if(Y())throw process.exitCode=e,r;var t;(t=r)instanceof ae||b("exiting due to exception: "+t),process.exit(e)},i.inspect=function(){return"[Emscripten Module object]"}}else(m||p)&&(p?g=self.location.href:"undefined"!=typeof document&&document.currentScript&&(g=document.currentScript.src),n&&(g=n),g=0!==g.indexOf("blob:")?g.substr(0,g.replace(/[?#].*/,"").lastIndexOf("/")+1):"",s=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},p&&(c=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),u=(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 _,E=i.print||console.log.bind(console),b=i.printErr||console.warn.bind(console);Object.assign(i,l),l=null,i.arguments&&(f=i.arguments),i.thisProgram&&(d=i.thisProgram),i.quit&&(h=i.quit),i.wasmBinary&&(_=i.wasmBinary);var k=i.noExitRuntime||!0;"object"!=typeof WebAssembly&&$("no native wasm support detected");var S,A,F,D,P,C,M,T,j,x,O=!1,R="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function z(e,r,t){for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&R)return R.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 u=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var c=i-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a}function B(e,r){return e?z(F,e,r):""}function N(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 I(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}var U=[],L=[],W=[],H=[];function Y(){return k}var q=0,V=null,X=null;function G(e){q++,i.monitorRunDependencies&&i.monitorRunDependencies(q)}function K(e){if(q--,i.monitorRunDependencies&&i.monitorRunDependencies(q),0==q&&(null!==V&&(clearInterval(V),V=null),X)){var r=X;X=null,r()}}function $(e){i.onAbort&&i.onAbort(e),b(e="Aborted("+e+")"),O=!0,S=1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw a(r),r}var J,Z,Q,ee;function re(e){return e.startsWith("data:application/octet-stream;base64,")}function te(e){return e.startsWith("file://")}function ne(e){try{if(e==J&&_)return new Uint8Array(_);if(c)return c(e);throw"both async and sync fetching of the wasm failed"}catch(e){$(e)}}re(J="fasttext-wasm.wasm")||(Z=J,J=i.locateFile?i.locateFile(Z,g):g+Z);var oe={963844:()=>{me.mount(NODEFS,{root:"."},".")}};function ae(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function ie(e){for(;e.length>0;)e.shift()(i)}function se(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){M[this.ptr+4>>2]=e},this.get_type=function(){return M[this.ptr+4>>2]},this.set_destructor=function(e){M[this.ptr+8>>2]=e},this.get_destructor=function(){return M[this.ptr+8>>2]},this.set_refcount=function(e){C[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,A[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=A[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,A[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=A[this.ptr+13>>0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=C[this.ptr>>2];C[this.ptr>>2]=e+1},this.release_ref=function(){var e=C[this.ptr>>2];return C[this.ptr>>2]=e-1,1===e},this.set_adjusted_ptr=function(e){M[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return M[this.ptr+16>>2]},this.get_exception_ptr=function(){if(ur(this.get_type()))return M[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var ue={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=ue.isAbs(e),t="/"===e.substr(-1);return(e=ue.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=ue.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=ue.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments);return ue.normalize(e.join("/"))},join2:(e,r)=>ue.normalize(e+"/"+r)},ce={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:me.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=ue.isAbs(n)}return(r?"/":"")+(e=ue.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 u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}};function le(e,r,t){var n=t>0?t:I(e)+1,o=new Array(n),a=N(e,o,0,o.length);return r&&(o.length=a),o}var fe={ttys:[],init:function(){},shutdown:function(){},register:function(e,r){fe.ttys[e]={input:[],output:[],ops:r},me.registerDevice(e,fe.stream_ops)},stream_ops:{open:function(e){var r=fe.ttys[e.node.rdev];if(!r)throw new me.ErrnoError(43);e.tty=r,e.seekable=!1},close:function(e){e.tty.ops.fsync(e.tty)},fsync:function(e){e.tty.ops.fsync(e.tty)},read:function(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new me.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 me.ErrnoError(29)}if(void 0===s&&0===a)throw new me.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.timestamp=Date.now()),a},write:function(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new me.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(e){throw new me.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:function(e){if(!e.input.length){var r=null;if(v){var t=o.alloc(256),n=0;try{n=w.readSync(process.stdin.fd,t,0,256,-1)}catch(e){if(!e.toString().includes("EOF"))throw e;n=0}r=n>0?t.slice(0,n).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(r=window.prompt("Input: "))&&(r+="\n"):"function"==typeof readline&&null!==(r=readline())&&(r+="\n");if(!r)return null;e.input=le(r,!0)}return e.input.shift()},put_char:function(e,r){null===r||10===r?(E(z(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync:function(e){e.output&&e.output.length>0&&(E(z(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,r){null===r||10===r?(b(z(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync:function(e){e.output&&e.output.length>0&&(b(z(e.output,0)),e.output=[])}}};function de(e){$()}var he={ops_table:null,mount:function(e){return he.createNode(null,"/",16895,0)},createNode:function(e,r,t,n){if(me.isBlkdev(t)||me.isFIFO(t))throw new me.ErrnoError(63);he.ops_table||(he.ops_table={dir:{node:{getattr:he.node_ops.getattr,setattr:he.node_ops.setattr,lookup:he.node_ops.lookup,mknod:he.node_ops.mknod,rename:he.node_ops.rename,unlink:he.node_ops.unlink,rmdir:he.node_ops.rmdir,readdir:he.node_ops.readdir,symlink:he.node_ops.symlink},stream:{llseek:he.stream_ops.llseek}},file:{node:{getattr:he.node_ops.getattr,setattr:he.node_ops.setattr},stream:{llseek:he.stream_ops.llseek,read:he.stream_ops.read,write:he.stream_ops.write,allocate:he.stream_ops.allocate,mmap:he.stream_ops.mmap,msync:he.stream_ops.msync}},link:{node:{getattr:he.node_ops.getattr,setattr:he.node_ops.setattr,readlink:he.node_ops.readlink},stream:{}},chrdev:{node:{getattr:he.node_ops.getattr,setattr:he.node_ops.setattr},stream:me.chrdev_stream_ops}});var o=me.createNode(e,r,t,n);return me.isDir(o.mode)?(o.node_ops=he.ops_table.dir.node,o.stream_ops=he.ops_table.dir.stream,o.contents={}):me.isFile(o.mode)?(o.node_ops=he.ops_table.file.node,o.stream_ops=he.ops_table.file.stream,o.usedBytes=0,o.contents=null):me.isLink(o.mode)?(o.node_ops=he.ops_table.link.node,o.stream_ops=he.ops_table.link.stream):me.isChrdev(o.mode)&&(o.node_ops=he.ops_table.chrdev.node,o.stream_ops=he.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(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:function(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:function(e){var r={};return r.dev=me.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,me.isDir(e.mode)?r.size=4096:me.isFile(e.mode)?r.size=e.usedBytes:me.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:function(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&he.resizeFileStorage(e,r.size)},lookup:function(e,r){throw me.genericErrors[44]},mknod:function(e,r,t,n){return he.createNode(e,r,t,n)},rename:function(e,r,t){if(me.isDir(e.mode)){var n;try{n=me.lookupNode(r,t)}catch(e){}if(n)for(var o in n.contents)throw new me.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:function(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir:function(e,r){var t=me.lookupNode(e,r);for(var n in t.contents)throw new me.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir:function(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink:function(e,r,t){var n=he.createNode(e,r,41471,0);return n.link=t,n},readlink:function(e){if(!me.isLink(e.mode))throw new me.ErrnoError(28);return e.link}},stream_ops:{read:function(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:function(e,r,t,n,o,a){if(!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(he.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:function(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&me.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new me.ErrnoError(28);return n},allocate:function(e,r,t){he.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap:function(e,r,t,n,o){if(!me.isFile(e.node.mode))throw new me.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==A.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=de()))throw new me.ErrnoError(48);A.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:function(e,r,t,n,o){return he.stream_ops.write(e,r,0,n,t,!1),0}}};var me={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:(e,r={})=>{if(!(e=ce.resolve(e)))return{path:"",node:null};if((r=Object.assign({follow_mount:!0,recurse_count:0},r)).recurse_count>8)throw new me.ErrnoError(32);for(var t=e.split("/").filter((e=>!!e)),n=me.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&r.parent)break;if(n=me.lookupNode(n,t[a]),o=ue.join2(o,t[a]),me.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;me.isLink(n.mode);){var u=me.readlink(o);if(o=ce.resolve(ue.dirname(o),u),n=me.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new me.ErrnoError(32)}}return{path:o,node:n}},getPath:e=>{for(var r;;){if(me.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)%me.nameTable.length},hashAddNode:e=>{var r=me.hashName(e.parent.id,e.name);e.name_next=me.nameTable[r],me.nameTable[r]=e},hashRemoveNode:e=>{var r=me.hashName(e.parent.id,e.name);if(me.nameTable[r]===e)me.nameTable[r]=e.name_next;else for(var t=me.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode:(e,r)=>{var t=me.mayLookup(e);if(t)throw new me.ErrnoError(t,e);for(var n=me.hashName(e.id,r),o=me.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return me.lookup(e,r)},createNode:(e,r,t,n)=>{var o=new me.FSNode(e,r,t,n);return me.hashAddNode(o),o},destroyNode:e=>{me.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),flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:e=>{var r=me.flagModes[e];if(void 0===r)throw new Error("Unknown file open mode: "+e);return r},flagsToPermissionString:e=>{var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>me.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup:e=>me.nodePermissions(e,"x")||(e.node_ops.lookup?0:2),mayCreate:(e,r)=>{try{return me.lookupNode(e,r),20}catch(e){}return me.nodePermissions(e,"wx")},mayDelete:(e,r,t)=>{var n;try{n=me.lookupNode(e,r)}catch(e){return e.errno}var o=me.nodePermissions(e,"wx");if(o)return o;if(t){if(!me.isDir(n.mode))return 54;if(me.isRoot(n)||me.getPath(n)===me.cwd())return 10}else if(me.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?me.isLink(e.mode)?32:me.isDir(e.mode)&&("r"!==me.flagsToPermissionString(r)||512&r)?31:me.nodePermissions(e,me.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd:(e=0,r=me.MAX_OPEN_FDS)=>{for(var t=e;t<=r;t++)if(!me.streams[t])return t;throw new me.ErrnoError(33)},getStream:e=>me.streams[e],createStream:(e,r,t)=>{me.FSStream||(me.FSStream=function(){this.shared={}},me.FSStream.prototype={},Object.defineProperties(me.FSStream.prototype,{object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}},flags:{get:function(){return this.shared.flags},set:function(e){this.shared.flags=e}},position:{get:function(){return this.shared.position},set:function(e){this.shared.position=e}}})),e=Object.assign(new me.FSStream,e);var n=me.nextfd(r,t);return e.fd=n,me.streams[n]=e,e},closeStream:e=>{me.streams[e]=null},chrdev_stream_ops:{open:e=>{var r=me.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:()=>{throw new me.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice:(e,r)=>{me.devices[e]={stream_ops:r}},getDevice:e=>me.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),me.syncFSRequests++,me.syncFSRequests>1&&b("warning: "+me.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var t=me.getMounts(me.root.mount),n=0;function o(e){return me.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&&me.root)throw new me.ErrnoError(10);if(!o&&!a){var i=me.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,me.isMountpoint(n))throw new me.ErrnoError(10);if(!me.isDir(n.mode))throw new me.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,o?me.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:e=>{var r=me.lookupPath(e,{follow_mount:!1});if(!me.isMountpoint(r.node))throw new me.ErrnoError(28);var t=r.node,n=t.mounted,o=me.getMounts(n);Object.keys(me.nameTable).forEach((e=>{for(var r=me.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&me.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=me.lookupPath(e,{parent:!0}).node,o=ue.basename(e);if(!o||"."===o||".."===o)throw new me.ErrnoError(28);var a=me.mayCreate(n,o);if(a)throw new me.ErrnoError(a);if(!n.node_ops.mknod)throw new me.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,me.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,me.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{me.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,me.mknod(e,r,t)),symlink:(e,r)=>{if(!ce.resolve(e))throw new me.ErrnoError(44);var t=me.lookupPath(r,{parent:!0}).node;if(!t)throw new me.ErrnoError(44);var n=ue.basename(r),o=me.mayCreate(t,n);if(o)throw new me.ErrnoError(o);if(!t.node_ops.symlink)throw new me.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename:(e,r)=>{var t,n,o=ue.dirname(e),a=ue.dirname(r),i=ue.basename(e),s=ue.basename(r);if(t=me.lookupPath(e,{parent:!0}).node,n=me.lookupPath(r,{parent:!0}).node,!t||!n)throw new me.ErrnoError(44);if(t.mount!==n.mount)throw new me.ErrnoError(75);var u,c=me.lookupNode(t,i),l=ce.relative(e,a);if("."!==l.charAt(0))throw new me.ErrnoError(28);if("."!==(l=ce.relative(r,o)).charAt(0))throw new me.ErrnoError(55);try{u=me.lookupNode(n,s)}catch(e){}if(c!==u){var f=me.isDir(c.mode),d=me.mayDelete(t,i,f);if(d)throw new me.ErrnoError(d);if(d=u?me.mayDelete(n,s,f):me.mayCreate(n,s))throw new me.ErrnoError(d);if(!t.node_ops.rename)throw new me.ErrnoError(63);if(me.isMountpoint(c)||u&&me.isMountpoint(u))throw new me.ErrnoError(10);if(n!==t&&(d=me.nodePermissions(t,"w")))throw new me.ErrnoError(d);me.hashRemoveNode(c);try{t.node_ops.rename(c,n,s)}catch(e){throw e}finally{me.hashAddNode(c)}}},rmdir:e=>{var r=me.lookupPath(e,{parent:!0}).node,t=ue.basename(e),n=me.lookupNode(r,t),o=me.mayDelete(r,t,!0);if(o)throw new me.ErrnoError(o);if(!r.node_ops.rmdir)throw new me.ErrnoError(63);if(me.isMountpoint(n))throw new me.ErrnoError(10);r.node_ops.rmdir(r,t),me.destroyNode(n)},readdir:e=>{var r=me.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new me.ErrnoError(54);return r.node_ops.readdir(r)},unlink:e=>{var r=me.lookupPath(e,{parent:!0}).node;if(!r)throw new me.ErrnoError(44);var t=ue.basename(e),n=me.lookupNode(r,t),o=me.mayDelete(r,t,!1);if(o)throw new me.ErrnoError(o);if(!r.node_ops.unlink)throw new me.ErrnoError(63);if(me.isMountpoint(n))throw new me.ErrnoError(10);r.node_ops.unlink(r,t),me.destroyNode(n)},readlink:e=>{var r=me.lookupPath(e).node;if(!r)throw new me.ErrnoError(44);if(!r.node_ops.readlink)throw new me.ErrnoError(28);return ce.resolve(me.getPath(r.parent),r.node_ops.readlink(r))},stat:(e,r)=>{var t=me.lookupPath(e,{follow:!r}).node;if(!t)throw new me.ErrnoError(44);if(!t.node_ops.getattr)throw new me.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>me.stat(e,!0),chmod:(e,r,t)=>{var n;if(!(n="string"==typeof e?me.lookupPath(e,{follow:!t}).node:e).node_ops.setattr)throw new me.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod:(e,r)=>{me.chmod(e,r,!0)},fchmod:(e,r)=>{var t=me.getStream(e);if(!t)throw new me.ErrnoError(8);me.chmod(t.node,r)},chown:(e,r,t,n)=>{var o;if(!(o="string"==typeof e?me.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new me.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:(e,r,t)=>{me.chown(e,r,t,!0)},fchown:(e,r,t)=>{var n=me.getStream(e);if(!n)throw new me.ErrnoError(8);me.chown(n.node,r,t)},truncate:(e,r)=>{if(r<0)throw new me.ErrnoError(28);var t;if(!(t="string"==typeof e?me.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new me.ErrnoError(63);if(me.isDir(t.mode))throw new me.ErrnoError(31);if(!me.isFile(t.mode))throw new me.ErrnoError(28);var n=me.nodePermissions(t,"w");if(n)throw new me.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate:(e,r)=>{var t=me.getStream(e);if(!t)throw new me.ErrnoError(8);if(0==(2097155&t.flags))throw new me.ErrnoError(28);me.truncate(t.node,r)},utime:(e,r,t)=>{var n=me.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open:(e,r,t)=>{if(""===e)throw new me.ErrnoError(44);var n;if(t=void 0===t?438:t,t=64&(r="string"==typeof r?me.modeStringToFlags(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=ue.normalize(e);try{n=me.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}var o=!1;if(64&r)if(n){if(128&r)throw new me.ErrnoError(20)}else n=me.mknod(e,t,0),o=!0;if(!n)throw new me.ErrnoError(44);if(me.isChrdev(n.mode)&&(r&=-513),65536&r&&!me.isDir(n.mode))throw new me.ErrnoError(54);if(!o){var a=me.mayOpen(n,r);if(a)throw new me.ErrnoError(a)}512&r&&!o&&me.truncate(n,0),r&=-131713;var s=me.createStream({node:n,path:me.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),!i.logReadFiles||1&r||(me.readFiles||(me.readFiles={}),e in me.readFiles||(me.readFiles[e]=1)),s},close:e=>{if(me.isClosed(e))throw new me.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{me.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek:(e,r,t)=>{if(me.isClosed(e))throw new me.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new me.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new me.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 me.ErrnoError(28);if(me.isClosed(e))throw new me.ErrnoError(8);if(1==(2097155&e.flags))throw new me.ErrnoError(8);if(me.isDir(e.node.mode))throw new me.ErrnoError(31);if(!e.stream_ops.read)throw new me.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new me.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 me.ErrnoError(28);if(me.isClosed(e))throw new me.ErrnoError(8);if(0==(2097155&e.flags))throw new me.ErrnoError(8);if(me.isDir(e.node.mode))throw new me.ErrnoError(31);if(!e.stream_ops.write)throw new me.ErrnoError(28);e.seekable&&1024&e.flags&&me.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new me.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(me.isClosed(e))throw new me.ErrnoError(8);if(r<0||t<=0)throw new me.ErrnoError(28);if(0==(2097155&e.flags))throw new me.ErrnoError(8);if(!me.isFile(e.node.mode)&&!me.isDir(e.node.mode))throw new me.ErrnoError(43);if(!e.stream_ops.allocate)throw new me.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 me.ErrnoError(2);if(1==(2097155&e.flags))throw new me.ErrnoError(2);if(!e.stream_ops.mmap)throw new me.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 me.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile:(e,r={})=>{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=me.open(e,r.flags),o=me.stat(e).size,a=new Uint8Array(o);return me.read(n,a,0,o,0),"utf8"===r.encoding?t=z(a,0):"binary"===r.encoding&&(t=a),me.close(n),t},writeFile:(e,r,t={})=>{t.flags=t.flags||577;var n=me.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(I(r)+1),a=N(r,o,0,o.length);me.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");me.write(n,r,0,r.byteLength,void 0,t.canOwn)}me.close(n)},cwd:()=>me.currentPath,chdir:e=>{var r=me.lookupPath(e,{follow:!0});if(null===r.node)throw new me.ErrnoError(44);if(!me.isDir(r.node.mode))throw new me.ErrnoError(54);var t=me.nodePermissions(r.node,"x");if(t)throw new me.ErrnoError(t);me.currentPath=r.path},createDefaultDirectories:()=>{me.mkdir("/tmp"),me.mkdir("/home"),me.mkdir("/home/web_user")},createDefaultDevices:()=>{me.mkdir("/dev"),me.registerDevice(me.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n}),me.mkdev("/dev/null",me.makedev(1,3)),fe.register(me.makedev(5,0),fe.default_tty_ops),fe.register(me.makedev(6,0),fe.default_tty1_ops),me.mkdev("/dev/tty",me.makedev(5,0)),me.mkdev("/dev/tty1",me.makedev(6,0));var e=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return()=>(crypto.getRandomValues(e),e[0])}if(v)try{var r=t(41775);return()=>r.randomBytes(1)[0]}catch(e){}return()=>$("randomDevice")}();me.createDevice("/dev","random",e),me.createDevice("/dev","urandom",e),me.mkdir("/dev/shm"),me.mkdir("/dev/shm/tmp")},createSpecialDirectories:()=>{me.mkdir("/proc");var e=me.mkdir("/proc/self");me.mkdir("/proc/self/fd"),me.mount({mount:()=>{var r=me.createNode(e,"fd",16895,73);return r.node_ops={lookup:(e,r)=>{var t=+r,n=me.getStream(t);if(!n)throw new me.ErrnoError(8);var o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams:()=>{i.stdin?me.createDevice("/dev","stdin",i.stdin):me.symlink("/dev/tty","/dev/stdin"),i.stdout?me.createDevice("/dev","stdout",null,i.stdout):me.symlink("/dev/tty","/dev/stdout"),i.stderr?me.createDevice("/dev","stderr",null,i.stderr):me.symlink("/dev/tty1","/dev/stderr"),me.open("/dev/stdin",0),me.open("/dev/stdout",1),me.open("/dev/stderr",1)},ensureErrnoError:()=>{me.ErrnoError||(me.ErrnoError=function(e,r){this.node=r,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},me.ErrnoError.prototype=new Error,me.ErrnoError.prototype.constructor=me.ErrnoError,[44].forEach((e=>{me.genericErrors[e]=new me.ErrnoError(e),me.genericErrors[e].stack="<generic error, no stack>"})))},staticInit:()=>{me.ensureErrnoError(),me.nameTable=new Array(4096),me.mount(he,{},"/"),me.createDefaultDirectories(),me.createDefaultDevices(),me.createSpecialDirectories(),me.filesystems={MEMFS:he}},init:(e,r,t)=>{me.init.initialized=!0,me.ensureErrnoError(),i.stdin=e||i.stdin,i.stdout=r||i.stdout,i.stderr=t||i.stderr,me.createStandardStreams()},quit:()=>{me.init.initialized=!1;for(var e=0;e<me.streams.length;e++){var r=me.streams[e];r&&me.close(r)}},getMode:(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},findObject:(e,r)=>{var t=me.analyzePath(e,r);return t.exists?t.object:null},analyzePath:(e,r)=>{try{e=(n=me.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=me.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=ue.basename(e),n=me.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:me.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=ue.join2(e,a);try{me.mkdir(i)}catch(e){}e=i}}return i},createFile:(e,r,t,n,o)=>{var a=ue.join2("string"==typeof e?e:me.getPath(e),r),i=me.getMode(n,o);return me.create(a,i)},createDataFile:(e,r,t,n,o,a)=>{var i=r;e&&(e="string"==typeof e?e:me.getPath(e),i=r?ue.join2(e,r):e);var s=me.getMode(n,o),u=me.create(i,s);if(t){if("string"==typeof t){for(var c=new Array(t.length),l=0,f=t.length;l<f;++l)c[l]=t.charCodeAt(l);t=c}me.chmod(u,146|s);var d=me.open(u,577);me.write(d,t,0,t.length,0,a),me.close(d),me.chmod(u,s)}return u},createDevice:(e,r,t,n)=>{var o=ue.join2("string"==typeof e?e:me.getPath(e),r),a=me.getMode(!!t,!!n);me.createDevice.major||(me.createDevice.major=64);var i=me.makedev(me.createDevice.major++,0);return me.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 u;try{u=t()}catch(e){throw new me.ErrnoError(29)}if(void 0===u&&0===i)throw new me.ErrnoError(6);if(null==u)break;i++,r[n+s]=u}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 me.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),me.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(!s)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=le(s(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new me.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||[]):le(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,E("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(!p)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 u=me.createFile(e,r,s,n,o);s.contents?u.contents=s.contents:s.url&&(u.contents=null,u.url=s.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var c={};function l(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(u.stream_ops).forEach((e=>{var r=u.stream_ops[e];c[e]=function(){return me.forceLoadFile(u),r.apply(null,arguments)}})),c.read=(e,r,t,n,o)=>(me.forceLoadFile(u),l(e,r,t,n,o)),c.mmap=(e,r,t,n,o)=>{me.forceLoadFile(u);var a=de();if(!a)throw new me.ErrnoError(48);return l(e,A,a,r,t),{ptr:a,allocated:!0}},u.stream_ops=c,u},createPreloadedFile:(e,r,t,n,o,a,i,s,c,l)=>{var f=r?ce.resolve(ue.join2(e,r)):e;function d(t){function u(t){l&&l(),s||me.createDataFile(e,r,t,n,o,c),a&&a(),K()}Browser.handledByPreloadPlugin(t,f,u,(()=>{i&&i(),K()}))||u(t)}G(),"string"==typeof t?function(e,r,t,n){var o=n?"":"al "+e;u(e,(t=>{t||$('Loading data file "'+e+'" failed (no arrayBuffer).'),r(new Uint8Array(t)),o&&K()}),(r=>{if(!t)throw'Loading data file "'+e+'" failed.';t()})),o&&G()}(t,(e=>d(e)),i):d(t)},indexedDB:()=>window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,DB_NAME:()=>"EM_FS_"+window.location.pathname,DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(e,r=(()=>{}),t=(()=>{}))=>{var n=me.indexedDB();try{var o=n.open(me.DB_NAME(),me.DB_VERSION)}catch(e){return t(e)}o.onupgradeneeded=()=>{E("creating db"),o.result.createObjectStore(me.DB_STORE_NAME)},o.onsuccess=()=>{var n=o.result.transaction([me.DB_STORE_NAME],"readwrite"),a=n.objectStore(me.DB_STORE_NAME),i=0,s=0,u=e.length;function c(){0==s?r():t()}e.forEach((e=>{var r=a.put(me.analyzePath(e).object.contents,e);r.onsuccess=()=>{++i+s==u&&c()},r.onerror=()=>{s++,i+s==u&&c()}})),n.onerror=t},o.onerror=t},loadFilesFromDB:(e,r=(()=>{}),t=(()=>{}))=>{var n=me.indexedDB();try{var o=n.open(me.DB_NAME(),me.DB_VERSION)}catch(e){return t(e)}o.onupgradeneeded=t,o.onsuccess=()=>{var n=o.result;try{var a=n.transaction([me.DB_STORE_NAME],"readonly")}catch(e){return void t(e)}var i=a.objectStore(me.DB_STORE_NAME),s=0,u=0,c=e.length;function l(){0==u?r():t()}e.forEach((e=>{var r=i.get(e);r.onsuccess=()=>{me.analyzePath(e).exists&&me.unlink(e),me.createDataFile(ue.dirname(e),ue.basename(e),r.result,!0,!0,!0),++s+u==c&&l()},r.onerror=()=>{u++,s+u==c&&l()}})),a.onerror=t},o.onerror=t}},pe={DEFAULT_POLLMASK:5,calculateAt:function(e,r,t){if(ue.isAbs(r))return r;var n;if(n=-100===e?me.cwd():pe.getStreamFromFD(e).path,0==r.length){if(!t)throw new me.ErrnoError(44);return n}return ue.join2(n,r)},doStat:function(e,r,t){try{var n=e(r)}catch(e){if(e&&e.node&&ue.normalize(r)!==ue.normalize(me.getPath(e.node)))return-54;throw e}C[t>>2]=n.dev,C[t+8>>2]=n.ino,C[t+12>>2]=n.mode,M[t+16>>2]=n.nlink,C[t+20>>2]=n.uid,C[t+24>>2]=n.gid,C[t+28>>2]=n.rdev,ee=[n.size>>>0,(Q=n.size,+Math.abs(Q)>=1?Q>0?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],C[t+40>>2]=ee[0],C[t+44>>2]=ee[1],C[t+48>>2]=4096,C[t+52>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return ee=[Math.floor(o/1e3)>>>0,(Q=Math.floor(o/1e3),+Math.abs(Q)>=1?Q>0?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],C[t+56>>2]=ee[0],C[t+60>>2]=ee[1],M[t+64>>2]=o%1e3*1e3,ee=[Math.floor(a/1e3)>>>0,(Q=Math.floor(a/1e3),+Math.abs(Q)>=1?Q>0?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],C[t+72>>2]=ee[0],C[t+76>>2]=ee[1],M[t+80>>2]=a%1e3*1e3,ee=[Math.floor(i/1e3)>>>0,(Q=Math.floor(i/1e3),+Math.abs(Q)>=1?Q>0?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],C[t+88>>2]=ee[0],C[t+92>>2]=ee[1],M[t+96>>2]=i%1e3*1e3,ee=[n.ino>>>0,(Q=n.ino,+Math.abs(Q)>=1?Q>0?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],C[t+104>>2]=ee[0],C[t+108>>2]=ee[1],0},doMsync:function(e,r,t,n,o){if(!me.isFile(r.node.mode))throw new me.ErrnoError(43);if(2&n)return 0;var a=F.slice(e,e+t);me.msync(r,a,o,t,n)},varargs:void 0,get:function(){return pe.varargs+=4,C[pe.varargs-4>>2]},getStr:function(e){return B(e)},getStreamFromFD:function(e){var r=me.getStream(e);if(!r)throw new me.ErrnoError(8);return r}};function ve(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var ge=void 0;function we(e){for(var r="",t=e;F[t];)r+=ge[F[t++]];return r}var ye={},_e={},Ee={},be=48,ke=57;function Se(e,r){var t,n=(t=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/,""))},function(e){if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=be&&r<=ke?"_"+e:e}(r),function(){"use strict";return t.apply(this,arguments)});return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},n}var Ae=void 0;function Fe(e){throw new Ae(e)}var De=void 0;function Pe(e){throw new De(e)}function Ce(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=r.name;if(e||Fe('type "'+n+'" must have a positive integer typeid pointer'),_e.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;Fe("Cannot register type '"+n+"' twice")}if(_e[e]=r,delete Ee[e],ye.hasOwnProperty(e)){var o=ye[e];delete ye[e],o.forEach((e=>e()))}}var Me=[],Te=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function je(e){return this.fromWireType(C[e>>2])}function xe(e,r){switch(r){case 2:return function(e){return this.fromWireType(T[e>>2])};case 3:return function(e){return this.fromWireType(j[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}var Oe=[];function Re(e){var r=Oe[e];return r||(e>=Oe.length&&(Oe.length=e+1),Oe[e]=r=x.get(e)),r}function ze(e,r){var t,n,o,a=(e=we(e)).includes("j")?(t=e,n=r,o=[],function(){return o.length=0,Object.assign(o,arguments),function(e,r,t){return e.includes("j")?function(e,r,t){var n=i["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)}(e,r,t):Re(r).apply(null,t)}(t,n,o)}):Re(r);return"function"!=typeof a&&Fe("unknown function pointer with signature "+e+": "+r),a}var Be=void 0;function Ne(e){var r=or(e),t=we(r);return ir(r),t}function Ie(e,r,t){switch(r){case 0:return t?function(e){return A[e]}:function(e){return F[e]};case 1:return t?function(e){return D[e>>1]}:function(e){return P[e>>1]};case 2:return t?function(e){return C[e>>2]}:function(e){return M[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var Ue="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function Le(e,r){for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&P[n];)++n;if((t=n<<1)-e>32&&Ue)return Ue.decode(F.subarray(e,t));for(var a="",i=0;!(i>=r/2);++i){var s=D[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a}function We(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);D[r>>1]=i,r+=2}return D[r>>1]=0,r-n}function He(e){return 2*e.length}function Ye(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}function qe(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)),C[r>>2]=i,(r+=4)+4>o)break}return C[r>>2]=0,r-n}function Ve(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}var Xe=[];var Ge={};function Ke(){if(!Ke.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",_:d||"./this.program"};for(var r in Ge)void 0===Ge[r]?delete e[r]:e[r]=Ge[r];var t=[];for(var r in e)t.push(r+"="+e[r]);Ke.strings=t}return Ke.strings}function $e(e){return e%4==0&&(e%100!=0||e%400==0)}var Je=[31,29,31,30,31,30,31,31,30,31,30,31],Ze=[31,28,31,30,31,30,31,31,30,31,30,31];var Qe=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=me.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n};Object.defineProperties(Qe.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return me.isDir(this.mode)}},isDevice:{get:function(){return me.isChrdev(this.mode)}}}),me.FSNode=Qe,me.staticInit(),i.FS_createPath=me.createPath,i.FS_createDataFile=me.createDataFile,i.FS_createPreloadedFile=me.createPreloadedFile,i.FS_unlink=me.unlink,i.FS_createLazyFile=me.createLazyFile,i.FS_createDevice=me.createDevice,function(){for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);ge=e}(),Ae=i.BindingError=Se(Error,"BindingError"),De=i.InternalError=Se(Error,"InternalError"),i.count_emval_handles=function(){for(var e=0,r=5;r<Te.length;++r)void 0!==Te[r]&&++e;return e},i.get_first_emval=function(){for(var e=5;e<Te.length;++e)if(void 0!==Te[e])return Te[e];return null},Be=i.UnboundTypeError=Se(Error,"UnboundTypeError"),"function"==typeof atob&&atob;var er,rr={__assert_fail:function(e,r,t,n){$("Assertion failed: "+B(e)+", at: "+[r?B(r):"unknown filename",t,n?B(n):"unknown function"])},__cxa_throw:function(e,r,t){throw new se(e).init(r,t),e},__syscall_fcntl64:function(e,r,t){pe.varargs=t;try{var n=pe.getStreamFromFD(e);switch(r){case 0:return(o=pe.get())<0?-28:me.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=pe.get();return n.flags|=o,0;case 5:return o=pe.get(),D[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return 28,C[ar()>>2]=28,-1}}catch(e){if(void 0===me||!(e instanceof me.ErrnoError))throw e;return-e.errno}},__syscall_ioctl:function(e,r,t){pe.varargs=t;try{var n=pe.getStreamFromFD(e);switch(r){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var o=pe.get();return C[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return o=pe.get(),me.ioctl(n,r,o);default:return-28}}catch(e){if(void 0===me||!(e instanceof me.ErrnoError))throw e;return-e.errno}},__syscall_openat:function(e,r,t,n){pe.varargs=n;try{r=pe.getStr(r),r=pe.calculateAt(e,r);var o=n?pe.get():0;return me.open(r,t,o).fd}catch(e){if(void 0===me||!(e instanceof me.ErrnoError))throw e;return-e.errno}},_embind_register_bigint:function(e,r,t,n,o){},_embind_register_bool:function(e,r,t,n,o){var a=ve(t);Ce(e,{name:r=we(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?n:o},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===t)n=A;else if(2===t)n=D;else{if(4!==t)throw new TypeError("Unknown boolean type size: "+r);n=C}return this.fromWireType(n[e>>a])},destructorFunction:null})},_embind_register_emval:function(e,r){Ce(e,{name:r=we(r),fromWireType:function(e){var r=(e=>(e||Fe("Cannot use deleted val. handle = "+e),Te[e].value))(e);return function(e){e>4&&0==--Te[e].refcount&&(Te[e]=void 0,Me.push(e))}(e),r},toWireType:function(e,r){return(e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var r=Me.length?Me.pop():Te.length;return Te[r]={refcount:1,value:e},r}})(r)},argPackAdvance:8,readValueFromPointer:je,destructorFunction:null})},_embind_register_float:function(e,r,t){var n=ve(t);Ce(e,{name:r=we(r),fromWireType:function(e){return e},toWireType:function(e,r){return r},argPackAdvance:8,readValueFromPointer:xe(r,n),destructorFunction:null})},_embind_register_function:function(e,r,t,n,o,a){var s=function(e,r){for(var t=[],n=0;n<e;n++)t.push(M[r+4*n>>2]);return t}(r,t);e=we(e),o=ze(n,o),function(e,r,t){i.hasOwnProperty(e)?((void 0===t||void 0!==i[e].overloadTable&&void 0!==i[e].overloadTable[t])&&Fe("Cannot register public name '"+e+"' twice"),function(e,r,t){if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||Fe("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}}(i,e,e),i.hasOwnProperty(t)&&Fe("Cannot register multiple overloads of a function with the same number of arguments ("+t+")!"),i[e].overloadTable[t]=r):(i[e]=r,void 0!==t&&(i[e].numArguments=t))}(e,(function(){!function(e,r){var t=[],n={};throw r.forEach((function e(r){n[r]||_e[r]||(Ee[r]?Ee[r].forEach(e):(t.push(r),n[r]=!0))})),new Be(e+": "+t.map(Ne).join([", "]))}("Cannot call "+e+" due to unbound types",s)}),r-1),function(t,n,s){function u(n){var s=function(t){var n=[t[0],null].concat(t.slice(1));return function(e,r,t){i.hasOwnProperty(e)||Pe("Replacing nonexistant public symbol"),void 0!==i[e].overloadTable&&void 0!==t?i[e].overloadTable[t]=r:(i[e]=r,i[e].argCount=t)}(e,function(e,r,t,n,o){var a=r.length;a<2&&Fe("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var i=null!==r[1]&&null!==t,s=!1,u=1;u<r.length;++u)if(null!==r[u]&&void 0===r[u].destructorFunction){s=!0;break}var c="void"!==r[0].name,l=a-2,f=new Array(l),d=[],h=[];return function(){var t;arguments.length!==l&&Fe("function "+e+" called with "+arguments.length+" arguments, expected "+l+" args!"),h.length=0,d.length=i?2:1,d[0]=o,i&&(t=r[1].toWireType(h,this),d[1]=t);for(var a=0;a<l;++a)f[a]=r[a+2].toWireType(h,arguments[a]),d.push(f[a]);return function(e){if(s)!function(e){for(;e.length;){var r=e.pop();e.pop()(r)}}(h);else for(var n=i?1:2;n<r.length;n++){var o=1===n?t:f[n-2];null!==r[n].destructorFunction&&r[n].destructorFunction(o)}if(c)return r[0].fromWireType(e)}(n.apply(null,d))}}(e,n,null,o,a),r-1),[]}(n);s.length!==t.length&&Pe("Mismatched type converter count");for(var u=0;u<t.length;++u)Ce(t[u],s[u])}t.forEach((function(e){Ee[e]=n}));var c=new Array(n.length),l=[],f=0;n.forEach(((e,r)=>{_e.hasOwnProperty(e)?c[r]=_e[e]:(l.push(e),ye.hasOwnProperty(e)||(ye[e]=[]),ye[e].push((()=>{c[r]=_e[e],++f===l.length&&u(c)})))})),0===l.length&&u(c)}([],s)},_embind_register_integer:function(e,r,t,n,o){r=we(r),-1===o&&(o=4294967295);var a=ve(t),i=e=>e;if(0===n){var s=32-8*t;i=e=>e<<s>>>s}var u=r.includes("unsigned");Ce(e,{name:r,fromWireType:i,toWireType:u?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:8,readValueFromPointer:Ie(r,a,0!==n),destructorFunction:null})},_embind_register_memory_view:function(e,r,t){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=M,t=r[e>>=2],o=r[e+1];return new n(r.buffer,o,t)}Ce(e,{name:t=we(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:function(e,r){var t="std::string"===(r=we(r));Ce(e,{name:r,fromWireType:function(e){var r,n=M[e>>2],o=e+4;if(t)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==F[s]){var u=B(a,s-a);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),a=s+1}}else{var c=new Array(n);for(i=0;i<n;++i)c[i]=String.fromCharCode(F[o+i]);r=c.join("")}return ir(e),r},toWireType:function(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||Fe("Cannot pass non-string to std::string"),n=t&&o?I(r):r.length;var a=nr(4+n+1),i=a+4;if(M[a>>2]=n,t&&o)N(r,F,i,n+1);else if(o)for(var s=0;s<n;++s){var u=r.charCodeAt(s);u>255&&(ir(i),Fe("String has UTF-16 code units that do not fit in 8 bits")),F[i+s]=u}else for(s=0;s<n;++s)F[i+s]=r[s];return null!==e&&e.push(ir,a),a},argPackAdvance:8,readValueFromPointer:je,destructorFunction:function(e){ir(e)}})},_embind_register_std_wstring:function(e,r,t){var n,o,a,i,s;t=we(t),2===r?(n=Le,o=We,i=He,a=()=>P,s=1):4===r&&(n=Ye,o=qe,i=Ve,a=()=>M,s=2),Ce(e,{name:t,fromWireType:function(e){for(var t,o=M[e>>2],i=a(),u=e+4,c=0;c<=o;++c){var l=e+4+c*r;if(c==o||0==i[l>>s]){var f=n(u,l-u);void 0===t?t=f:(t+=String.fromCharCode(0),t+=f),u=l+r}}return ir(e),t},toWireType:function(e,n){"string"!=typeof n&&Fe("Cannot pass non-string to C++ string type "+t);var a=i(n),u=nr(4+a+r);return M[u>>2]=a>>s,o(n,u+4,a+r),null!==e&&e.push(ir,u),u},argPackAdvance:8,readValueFromPointer:je,destructorFunction:function(e){ir(e)}})},_embind_register_void:function(e,r){Ce(e,{isVoid:!0,name:r=we(r),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,r){}})},_emscripten_fs_load_embedded_files:function(e){do{var r=M[e>>2],t=M[(e+=4)>>2],n=M[(e+=4)>>2];e+=4;var o=B(r);me.createPath("/",ue.dirname(o),!0,!0),me.createDataFile(o,null,A.subarray(n,n+t),!0,!0,!0)}while(M[e>>2])},abort:function(){$("")},emscripten_asm_const_int:function(e,r,t){return function(e,r,t){var n=function(e,r){var t;for(Xe.length=0,r>>=2;t=F[e++];)r+=105!=t&r,Xe.push(105==t?C[r]:j[r++>>1]),++r;return Xe}(r,t);return oe[e].apply(null,n)}(e,r,t)},emscripten_memcpy_big:function(e,r,t){F.copyWithin(e,r,r+t)},emscripten_resize_heap:function(e){F.length,$("OOM")},environ_get:function(e,r){var t=0;return Ke().forEach((function(n,o){var a=r+t;M[e+4*o>>2]=a,function(e,r,t){for(var n=0;n<e.length;++n)A[r++>>0]=e.charCodeAt(n);A[r>>0]=0}(n,a),t+=n.length+1})),0},environ_sizes_get:function(e,r){var t=Ke();M[e>>2]=t.length;var n=0;return t.forEach((function(e){n+=e.length+1})),M[r>>2]=n,0},fd_close:function(e){try{var r=pe.getStreamFromFD(e);return me.close(r),0}catch(e){if(void 0===me||!(e instanceof me.ErrnoError))throw e;return e.errno}},fd_read:function(e,r,t,n){try{var o=function(e,r,t,n){for(var o=0,a=0;a<t;a++){var i=M[r>>2],s=M[r+4>>2];r+=8;var u=me.read(e,A,i,s,n);if(u<0)return-1;if(o+=u,u<s)break;void 0!==n&&(n+=u)}return o}(pe.getStreamFromFD(e),r,t);return M[n>>2]=o,0}catch(e){if(void 0===me||!(e instanceof me.ErrnoError))throw e;return e.errno}},fd_seek:function(e,r,t,n,o){try{var a=(u=t)+2097152>>>0<4194305-!!(s=r)?(s>>>0)+4294967296*u:NaN;if(isNaN(a))return 61;var i=pe.getStreamFromFD(e);return me.llseek(i,a,n),ee=[i.position>>>0,(Q=i.position,+Math.abs(Q)>=1?Q>0?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],C[o>>2]=ee[0],C[o+4>>2]=ee[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===me||!(e instanceof me.ErrnoError))throw e;return e.errno}var s,u},fd_write:function(e,r,t,n){try{var o=function(e,r,t,n){for(var o=0,a=0;a<t;a++){var i=M[r>>2],s=M[r+4>>2];r+=8;var u=me.write(e,A,i,s,n);if(u<0)return-1;o+=u,void 0!==n&&(n+=u)}return o}(pe.getStreamFromFD(e),r,t);return M[n>>2]=o,0}catch(e){if(void 0===me||!(e instanceof me.ErrnoError))throw e;return e.errno}},strftime_l:function(e,r,t,n,o){return function(e,r,t,n){var o=C[n+40>>2],a={tm_sec:C[n>>2],tm_min:C[n+4>>2],tm_hour:C[n+8>>2],tm_mday:C[n+12>>2],tm_mon:C[n+16>>2],tm_year:C[n+20>>2],tm_wday:C[n+24>>2],tm_yday:C[n+28>>2],tm_isdst:C[n+32>>2],tm_gmtoff:C[n+36>>2],tm_zone:o?B(o):""},i=B(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)i=i.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(e,r,t){for(var n="number"==typeof e?e.toString():e||"";n.length<r;)n=t[0]+n;return n}function d(e,r){return f(e,r,"0")}function h(e,r){function t(e){return e<0?-1:e>0?1:0}var n;return 0===(n=t(e.getFullYear()-r.getFullYear()))&&0===(n=t(e.getMonth()-r.getMonth()))&&(n=t(e.getDate()-r.getDate())),n}function m(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function p(e){var r=function(e,r){for(var t=new Date(e.getTime());r>0;){var n=$e(t.getFullYear()),o=t.getMonth(),a=(n?Je:Ze)[o];if(!(r>a-t.getDate()))return t.setDate(t.getDate()+r),t;r-=a-t.getDate()+1,t.setDate(1),o<11?t.setMonth(o+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t}(new Date(e.tm_year+1900,0,1),e.tm_yday),t=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),o=m(t),a=m(n);return h(o,r)<=0?h(a,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var v={"%a":function(e){return c[e.tm_wday].substring(0,3)},"%A":function(e){return c[e.tm_wday]},"%b":function(e){return l[e.tm_mon].substring(0,3)},"%B":function(e){return l[e.tm_mon]},"%C":function(e){return d((e.tm_year+1900)/100|0,2)},"%d":function(e){return d(e.tm_mday,2)},"%e":function(e){return f(e.tm_mday,2," ")},"%g":function(e){return p(e).toString().substring(2)},"%G":function(e){return p(e)},"%H":function(e){return d(e.tm_hour,2)},"%I":function(e){var r=e.tm_hour;return 0==r?r=12:r>12&&(r-=12),d(r,2)},"%j":function(e){return d(e.tm_mday+function(e,r){for(var t=0,n=0;n<=r;t+=e[n++]);return t}($e(e.tm_year+1900)?Je:Ze,e.tm_mon-1),3)},"%m":function(e){return d(e.tm_mon+1,2)},"%M":function(e){return d(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return d(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var r=e.tm_yday+7-e.tm_wday;return d(Math.floor(r/7),2)},"%V":function(e){var r=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&r++,r){if(53==r){var t=(e.tm_wday+371-e.tm_yday)%7;4==t||3==t&&$e(e.tm_year)||(r=1)}}else{r=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&$e(e.tm_year%400-1))&&r++}return d(r,2)},"%w":function(e){return e.tm_wday},"%W":function(e){var r=e.tm_yday+7-(e.tm_wday+6)%7;return d(Math.floor(r/7),2)},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var r=e.tm_gmtoff,t=r>=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(t?"+":"-")+String("0000"+r).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var u in i=i.replace(/%%/g,"\0\0"),v)i.includes(u)&&(i=i.replace(new RegExp(u,"g"),v[u](a)));var g,w,y=le(i=i.replace(/\0\0/g,"%"),!1);return y.length>r?0:(g=y,w=e,A.set(g,w),y.length-1)}(e,r,t,n)}},tr=(function(){var e={env:rr,wasi_snapshot_preview1:rr};function r(e,r){var t,n,o=e.exports;i.asm=o,t=i.asm.memory.buffer,i.HEAP8=A=new Int8Array(t),i.HEAP16=D=new Int16Array(t),i.HEAP32=C=new Int32Array(t),i.HEAPU8=F=new Uint8Array(t),i.HEAPU16=P=new Uint16Array(t),i.HEAPU32=M=new Uint32Array(t),i.HEAPF32=T=new Float32Array(t),i.HEAPF64=j=new Float64Array(t),x=i.asm.__indirect_function_table,n=i.asm.__wasm_call_ctors,L.unshift(n),K()}function t(e){r(e.instance)}function n(r){return function(){if(!_&&(m||p)){if("function"==typeof fetch&&!te(J))return fetch(J,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+J+"'";return e.arrayBuffer()})).catch((function(){return ne(J)}));if(u)return new Promise((function(e,r){u(J,(function(r){e(new Uint8Array(r))}),r)}))}return Promise.resolve().then((function(){return ne(J)}))}().then((function(r){return WebAssembly.instantiate(r,e)})).then((function(e){return e})).then(r,(function(e){b("failed to asynchronously prepare wasm: "+e),$(e)}))}if(G(),i.instantiateWasm)try{return i.instantiateWasm(e,r)}catch(e){b("Module.instantiateWasm callback failed with error: "+e),a(e)}(_||"function"!=typeof WebAssembly.instantiateStreaming||re(J)||te(J)||v||"function"!=typeof fetch?n(t):fetch(J,{credentials:"same-origin"}).then((function(r){return WebAssembly.instantiateStreaming(r,e).then(t,(function(e){return b("wasm streaming compile failed: "+e),b("falling back to ArrayBuffer instantiation"),n(t)}))}))).catch(a)}(),i._main=function(){return(tr=i._main=i.asm.__main_argc_argv).apply(null,arguments)}),nr=function(){return(nr=i.asm.malloc).apply(null,arguments)},or=i.___getTypeName=function(){return(or=i.___getTypeName=i.asm.__getTypeName).apply(null,arguments)},ar=(i.__embind_initialize_bindings=function(){return(i.__embind_initialize_bindings=i.asm._embind_initialize_bindings).apply(null,arguments)},function(){return(ar=i.asm.__errno_location).apply(null,arguments)}),ir=function(){return(ir=i.asm.free).apply(null,arguments)},sr=function(){return(sr=i.asm.stackAlloc).apply(null,arguments)},ur=function(){return(ur=i.asm.__cxa_is_pointer_type).apply(null,arguments)};function cr(e=[]){var r=tr;e.unshift(d);var t,n,o=e.length,a=sr(4*(o+1)),s=a>>2;e.forEach((e=>{C[s++]=function(e){var r=I(e)+1,t=sr(r);return N(e,A,t,r),t}(e)})),C[s]=0;try{var u=r(o,a);return S=t=u,S=n=t,Y()||(i.onExit&&i.onExit(n),O=!0),h(n,new ae(n)),u}catch(e){return function(e){if(e instanceof ae||"unwind"==e)return S;h(1,e)}(e)}}function lr(e=f){function t(){er||(er=!0,i.calledRun=!0,O||(i.noFSInit||me.init.initialized||me.init(),me.ignorePermissions=!1,fe.init(),ie(L),ie(W),r(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),fr&&cr(e),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)e=i.postRun.shift(),H.unshift(e);var e;ie(H)}()))}q>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)e=i.preRun.shift(),U.unshift(e);var e;ie(U)}(),q>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),t()}),1)):t()))}if(i.dynCall_fiij=function(){return(i.dynCall_fiij=i.asm.dynCall_fiij).apply(null,arguments)},i.dynCall_viijf=function(){return(i.dynCall_viijf=i.asm.dynCall_viijf).apply(null,arguments)},i.dynCall_jiji=function(){return(i.dynCall_jiji=i.asm.dynCall_jiji).apply(null,arguments)},i.dynCall_viijii=function(){return(i.dynCall_viijii=i.asm.dynCall_viijii).apply(null,arguments)},i.dynCall_iiiiij=function(){return(i.dynCall_iiiiij=i.asm.dynCall_iiiiij).apply(null,arguments)},i.dynCall_iiiiijj=function(){return(i.dynCall_iiiiijj=i.asm.dynCall_iiiiijj).apply(null,arguments)},i.dynCall_iiiiiijj=function(){return(i.dynCall_iiiiiijj=i.asm.dynCall_iiiiiijj).apply(null,arguments)},i.___emscripten_embedded_file_data=943176,i.addRunDependency=G,i.removeRunDependency=K,i.FS_createPath=me.createPath,i.FS_createDataFile=me.createDataFile,i.FS_createPreloadedFile=me.createPreloadedFile,i.FS_createLazyFile=me.createLazyFile,i.FS_createDevice=me.createDevice,i.FS_unlink=me.unlink,X=function e(){er||lr(),er||(X=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();var fr=!0;return i.noInitialRun&&(fr=!1),lr(),e.ready});e.exports=a},98207:(e,r,t)=>{"use strict";const n=("undefined"!=typeof window&&window.innerHeight,Math.round(450),new Set(["newMessage","newScheduledMessage","deleteMessages","deleteScheduledMessages","deleteHistory","updateThreadInfos"]),new Set(["image/png","image/jpeg","image/gif"])),o=new Set(["video/mp4","video/quicktime"]);new Set(["audio/mp3","audio/ogg","audio/wav","audio/mpeg","audio/flac","audio/aac","audio/m4a","audio/mp4","audio/x-m4a"]),new Set([...n,...o]),new Set(["t.me","web.t.me","a.t.me","k.t.me","z.t.me"]),new Set(["AU","BD","CA","CO","EG","HN","IE","IN","JO","MX","MY","NI","NZ","PH","PK","SA","SV","US"]);const a=new Map,i=function(){const e=new Set;function r(r){e.delete(r)}return{runCallbacks:function(...r){e.forEach((e=>{e(...r)}))},addCallback:function(t){return e.add(t),()=>{r(t)}},removeCallback:r,hasCallbacks:function(){return Boolean(e.size)}}}();onmessage=i.runCallbacks;var s=t(72996),u=t.n(s);const c=t.p+"fasttext-wasm.bd5b9292c04d265a9bfb.wasm";let l;const f=u()({locateFile:(e,r)=>e.endsWith(".wasm")?c:r+e}).then((e=>{l=e}));function d(e){return e.split("\n")[0].replace("__label__","").trim()}!function(e,r){function t(e,t){e.channel=r,t?postMessage(e,t):postMessage(e)}!function(e){self.onerror=r=>{console.error(r),e({type:"unhandledError",error:{message:r.error.message||"Uncaught exception in worker"}})},self.addEventListener("unhandledrejection",(r=>{console.error(r),e({type:"unhandledError",error:{message:r.reason.message||"Uncaught rejection in worker"}})}))}(t),i.addCallback((n=>{n.data?.channel===r&&async function(e,r,t,n){switch(n||(n=e=>{t({type:"update",update:e})}),r.type){case"init":{const{args:t}=r,o="function"==typeof e?e("init",n,...t):e.init?.(n,...t);await o;break}case"callMethod":{const{messageId:n,name:o,args:i,withCallback:s}=r;try{if("function"!=typeof e&&!e[o])return;if(n&&s){const e=(...e)=>{const r=e[e.length-1];var o;t({type:"methodCallback",messageId:n,callbackArgs:e},(o=r)instanceof ArrayBuffer||o instanceof ImageBitmap?[r]:void 0)};a.set(n,e),i.push(e)}const r="function"==typeof e?await e(o,...i):await e[o](...i),{arrayBuffer:u}="object"==typeof r&&"arrayBuffer"in r&&r||{};n&&t({type:"methodResponse",messageId:n,response:r},u?[u]:void 0)}catch(e){n&&t({type:"methodResponse",messageId:n,error:{message:e.message}})}n&&a.delete(n);break}case"cancelProgress":{const e=a.get(r.messageId);e&&(e.isCanceled=!0);break}}}(e,n.data,t)}))}({detectLanguage:async function(e,r){l||await f;const t=await l.makePrediction("predict",e,"1",r.toString());if(t.length)return d(t)},detectLanguageProbability:async function(e,r,t){l||await f;const n=await l.makePrediction("predict-prob",e,r.toString(),t.toString());if(n.length)return function(e){return e.trim().split("\n").map((e=>{const[r,t]=e.split(" ");return{label:d(r),prob:parseFloat(t)}}))}(n)}})},26470:e=>{"use strict";function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,r){for(var t,n="",o=0,a=-1,i=0,s=0;s<=e.length;++s){if(s<e.length)t=e.charCodeAt(s);else{if(47===t)break;t=47}if(47===t){if(a===s-1||1===i);else if(a!==s-1&&2===i){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),a=s,i=0;continue}}else if(2===n.length||1===n.length){n="",o=0,a=s,i=0;continue}r&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),o=s-a-1;a=s,i=0}else 46===t&&-1!==i?++i:i=-1}return n}var n={resolve:function(){for(var e,n="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var i;a>=0?i=arguments[a]:(void 0===e&&(e=process.cwd()),i=e),r(i),0!==i.length&&(n=i+"/"+n,o=47===i.charCodeAt(0))}return n=t(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(r(e),0===e.length)return".";var n=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=t(e,!n)).length||n||(e="."),e.length>0&&o&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var o=arguments[t];r(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":n.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=n.resolve(e))===(t=n.resolve(t)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var a=e.length,i=a-o,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var u=t.length-s,c=i<u?i:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===t.charCodeAt(s+f))return t.slice(s+f+1);if(0===f)return t.slice(s+f)}else i>c&&(47===e.charCodeAt(o+f)?l=f:0===f&&(l=0));break}var d=e.charCodeAt(o+f);if(d!==t.charCodeAt(s+f))break;47===d&&(l=f)}var h="";for(f=o+l+1;f<=a;++f)f!==a&&47!==e.charCodeAt(f)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(s+l):(s+=l,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,o=-1,a=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!a){o=i;break}}else a=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n,o=0,a=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!i){o=n+1;break}}else-1===u&&(i=!1,u=n+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(a=n):(s=-1,a=u))}return o===a?a=u:-1===a&&(a=e.length),e.slice(o,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!i){o=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":e.slice(o,a)},extname:function(e){r(e);for(var t=-1,n=0,o=-1,a=!0,i=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===o&&(a=!1,o=s+1),46===u?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!a){n=s+1;break}}return-1===t||-1===o||0===i||1===i&&t===o-1&&t===n+1?"":e.slice(t,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,r){var t=r.dir||r.root,n=r.base||(r.name||"")+(r.ext||"");return t?t===r.root?t+n:t+"/"+n:n}(0,e)},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,o=e.charCodeAt(0),a=47===o;a?(t.root="/",n=1):n=0;for(var i=-1,s=0,u=-1,c=!0,l=e.length-1,f=0;l>=n;--l)if(47!==(o=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===o?-1===i?i=l:1!==f&&(f=1):-1!==i&&(f=-1);else if(!c){s=l+1;break}return-1===i||-1===u||0===f||1===f&&i===u-1&&i===s+1?-1!==u&&(t.base=t.name=0===s&&a?e.slice(1,u):e.slice(s,u)):(0===s&&a?(t.name=e.slice(1,i),t.base=e.slice(1,u)):(t.name=e.slice(s,i),t.base=e.slice(s,u)),t.ext=e.slice(i,u)),s>0?t.dir=e.slice(0,s-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n},41775:()=>{},96877:()=>{}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,o.x=()=>{var e=o.O(void 0,[8764],(()=>o(98207)));return o.O(e)},e=[],o.O=(r,t,n,a)=>{if(!t){var i=1/0;for(l=0;l<e.length;l++){for(var[t,n,a]=e[l],s=!0,u=0;u<t.length;u++)(!1&a||i>=a)&&Object.keys(o.O).every((e=>o.O[e](t[u])))?t.splice(u--,1):(s=!1,a<i&&(i=a));if(s){e.splice(l--,1);var c=n();void 0!==c&&(r=c)}}return r}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[t,n,a]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>e+".58763b7a689318950e51.js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={4923:1};o.f.i=(r,t)=>{e[r]||importScripts(o.p+o.u(r))};var r=self.webpackChunktelegram_t=self.webpackChunktelegram_t||[],t=r.push.bind(r);r.push=r=>{var[n,a,i]=r;for(var s in a)o.o(a,s)&&(o.m[s]=a[s]);for(i&&i(o);n.length;)e[n.pop()]=1;t(r)}})(),r=o.x,o.x=()=>o.e(8764).then(r),o.x()})();
//# sourceMappingURL=4923.e7dd921a659c8e085a0a.js.map