PageSourceSearch

https://grokslabratory.vercel.app/_next/static/chunks/669.5be7f5e94e30afbd.js

js grokslabratory.vercel.app collected 2026-10-03 07:02:43 UTC 65,680 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[669],{6669:function(r,e,t){t.r(e);var n,o=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(r){var e,t,o,i,a,u,s,c,f,l,d,m,p,h,g,y,v,w,E,_,b,k,T,r=void 0!==(r=r||{})?r:{};r.ready=new Promise(function(r,e){t=r,o=e});var F={};for(i in r)r.hasOwnProperty(i)&&(F[i]=r[i]);var D=[],S="./this.program",A="";"undefined"!=typeof document&&document.currentScript&&(A=document.currentScript.src),n&&(A=n),A=0!==A.indexOf("blob:")?A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText},u=function(r,e,t){var n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="arraybuffer",n.onload=function(){if(200==n.status||0==n.status&&n.response){e(n.response);return}t()},n.onerror=t,n.send(null)};var P=r.print||console.log.bind(console),R=r.printErr||console.warn.bind(console);for(i in F)F.hasOwnProperty(i)&&(r[i]=F[i]);F=null,r.arguments&&(D=r.arguments),r.thisProgram&&(S=r.thisProgram),r.quit&&r.quit;var setTempRet0=function(r){};r.wasmBinary&&(c=r.wasmBinary),r.noExitRuntime,"object"!=typeof WebAssembly&&abort("no native wasm support detected");var M=!1;function assert(r,e){r||abort("Assertion failed: "+e)}var B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function UTF8ArrayToString(r,e,t){for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.subarray&&B)return B.decode(r.subarray(e,o));for(var i="";e<o;){var a=r[e++];if(!(128&a)){i+=String.fromCharCode(a);continue}var u=63&r[e++];if((224&a)==192){i+=String.fromCharCode((31&a)<<6|u);continue}var s=63&r[e++];if((a=(240&a)==224?(15&a)<<12|u<<6|s:(7&a)<<18|u<<12|s<<6|63&r[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}return i}function UTF8ToString(r,e){return r?UTF8ArrayToString(m,r,e):""}function stringToUTF8Array(r,e,t,n){if(!(n>0))return 0;for(var o=t,i=t+n-1,a=0;a<r.length;++a){var u=r.charCodeAt(a);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++a)),u<=127){if(t>=i)break;e[t++]=u}else if(u<=2047){if(t+1>=i)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=i)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=i)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}return e[t]=0,t-o}function lengthBytesUTF8(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&r.charCodeAt(++t)),n<=127?++e:n<=2047?e+=2:n<=65535?e+=3:e+=4}return e}var C="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function UTF16ToString(r,e){for(var t=r,n=t>>1,o=n+e/2;!(n>=o)&&h[n];)++n;if((t=n<<1)-r>32&&C)return C.decode(m.subarray(r,t));for(var i="",a=0;!(a>=e/2);++a){var u=p[r+2*a>>1];if(0==u)break;i+=String.fromCharCode(u)}return i}function stringToUTF16(r,e,t){if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,i=0;i<o;++i){var a=r.charCodeAt(i);p[e>>1]=a,e+=2}return p[e>>1]=0,e-n}function lengthBytesUTF16(r){return 2*r.length}function UTF32ToString(r,e){for(var t=0,n="";!(t>=e/4);){var o=g[r+4*t>>2];if(0==o)break;if(++t,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function stringToUTF32(r,e,t){if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=e,o=n+t-4,i=0;i<r.length;++i){var a=r.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&r.charCodeAt(++i)),g[e>>2]=a,(e+=4)+4>o)break}return g[e>>2]=0,e-n}function lengthBytesUTF32(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e}function updateGlobalBufferAndViews(e){l=e,r.HEAP8=d=new Int8Array(e),r.HEAP16=p=new Int16Array(e),r.HEAP32=g=new Int32Array(e),r.HEAPU8=m=new Uint8Array(e),r.HEAPU16=h=new Uint16Array(e),r.HEAPU32=y=new Uint32Array(e),r.HEAPF32=v=new Float32Array(e),r.HEAPF64=w=new Float64Array(e)}r.INITIAL_MEMORY;var N=[],U=[],x=[],W=0,z=null,O=null;function addRunDependency(e){W++,r.monitorRunDependencies&&r.monitorRunDependencies(W)}function removeRunDependency(e){if(W--,r.monitorRunDependencies&&r.monitorRunDependencies(W),0==W&&(null!==z&&(clearInterval(z),z=null),O)){var t=O;O=null,t()}}function abort(e){r.onAbort&&r.onAbort(e),R(e="Aborted("+e+")"),M=!0,e+=". Build with -s ASSERTIONS=1 for more info.";var t=new WebAssembly.RuntimeError(e);throw o(t),t}function isDataURI(r){return r.startsWith("data:application/octet-stream;base64,")}function getBinary(r){try{if(r==_&&c)return new Uint8Array(c);if(s)return s(r);throw"both async and sync fetching of the wasm failed"}catch(r){abort(r)}}function callRuntimeCallbacks(e){for(;e.length>0;){var t=e.shift();if("function"==typeof t){t(r);continue}var n=t.func;"number"==typeof n?void 0===t.arg?getWasmTableEntry(n)():getWasmTableEntry(n)(t.arg):n(void 0===t.arg?null:t.arg)}}r.preloadedImages={},r.preloadedAudios={},isDataURI(_="boolean.wasm")||(e=_,_=r.locateFile?r.locateFile(e,A):A+e);var j=[];function getWasmTableEntry(r){var e=j[r];return e||(r>=j.length&&(j.length=r+1),j[r]=e=E.get(r)),e}function ExceptionInfo(r){this.excPtr=r,this.ptr=r-16,this.set_type=function(r){g[this.ptr+4>>2]=r},this.get_type=function(){return g[this.ptr+4>>2]},this.set_destructor=function(r){g[this.ptr+8>>2]=r},this.get_destructor=function(){return g[this.ptr+8>>2]},this.set_refcount=function(r){g[this.ptr>>2]=r},this.set_caught=function(r){r=r?1:0,d[this.ptr+12>>0]=r},this.get_caught=function(){return 0!=d[this.ptr+12>>0]},this.set_rethrown=function(r){r=r?1:0,d[this.ptr+13>>0]=r},this.get_rethrown=function(){return 0!=d[this.ptr+13>>0]},this.init=function(r,e){this.set_type(r),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var r=g[this.ptr>>2];g[this.ptr>>2]=r+1},this.release_ref=function(){var r=g[this.ptr>>2];return g[this.ptr>>2]=r-1,1===r}}var I=0,L={};function runDestructors(r){for(;r.length;){var e=r.pop();r.pop()(e)}}function simpleReadValueFromPointer(r){return this.fromWireType(y[r>>2])}var H={},Y={},V={};function makeLegalFunctionName(r){if(void 0===r)return"_unknown";
1var e=(r=r.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+r:r}function createNamedFunction(r,e){return Function("body","return function "+(r=makeLegalFunctionName(r))+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n')(e)}function extendError(r,e){var t=createNamedFunction(e,function(r){this.name=e,this.message=r;var t=Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},t}var q=void 0;function throwInternalError(r){throw new q(r)}function whenDependentTypesAreResolved(r,e,t){function onComplete(e){var n=t(e);n.length!==r.length&&throwInternalError("Mismatched type converter count");for(var o=0;o<r.length;++o)registerType(r[o],n[o])}r.forEach(function(r){V[r]=e});var n=Array(e.length),o=[],i=0;e.forEach(function(r,e){Y.hasOwnProperty(r)?n[e]=Y[r]:(o.push(r),H.hasOwnProperty(r)||(H[r]=[]),H[r].push(function(){n[e]=Y[r],++i===o.length&&onComplete(n)}))}),0===o.length&&onComplete(n)}function getShiftFromSize(r){switch(r){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+r)}}var X=void 0;function readLatin1String(r){for(var e="",t=r;m[t];)e+=X[m[t++]];return e}var G=void 0;function throwBindingError(r){throw new G(r)}function registerType(r,e,t){if(t=t||{},!("argPackAdvance"in e))throw TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(r||throwBindingError('type "'+n+'" must have a positive integer typeid pointer'),Y.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;throwBindingError("Cannot register type '"+n+"' twice")}if(Y[r]=e,delete V[r],H.hasOwnProperty(r)){var o=H[r];delete H[r],o.forEach(function(r){r()})}}var J=[],K=[{},{value:void 0},{value:null},{value:!0},{value:!1}],$={toValue:function(r){return r||throwBindingError("Cannot use deleted val. handle = "+r),K[r].value},toHandle:function(r){switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=J.length?J.pop():K.length;return K[e]={refcount:1,value:r},e}}};function exposePublicSymbol(e,t,n){r.hasOwnProperty(e)?((void 0===n||void 0!==r[e].overloadTable&&void 0!==r[e].overloadTable[n])&&throwBindingError("Cannot register public name '"+e+"' twice"),function(r,e,t){if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||throwBindingError("Function '"+t+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+r[e].overloadTable+")!"),r[e].overloadTable[arguments.length].apply(this,arguments)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}}(r,e,e),r.hasOwnProperty(n)&&throwBindingError("Cannot register multiple overloads of a function with the same number of arguments ("+n+")!"),r[e].overloadTable[n]=t):(r[e]=t,void 0!==n&&(r[e].numArguments=n))}function getTypeName(r){var e=rc(r),t=readLatin1String(e);return rp(e),t}function _embind_repr(r){if(null===r)return"null";var e=typeof r;return"object"===e||"array"===e||"function"===e?r.toString():""+r}function embind__requireFunction(e,t){e=readLatin1String(e);var n=function(){if(e.includes("j")){var n,o;return n=e,o=[],function(){o.length=arguments.length;for(var e=0;e<arguments.length;e++)o[e]=arguments[e];return function(e,t,n){if(e.includes("j")){var o;return o=r["dynCall_"+e],n&&n.length?o.apply(null,[t].concat(n)):o.call(null,t)}return getWasmTableEntry(t).apply(null,n)}(n,t,o)}}return getWasmTableEntry(t)}();return"function"!=typeof n&&throwBindingError("unknown function pointer with signature "+e+": "+t),n}var Z=void 0,Q={};function getEnvStrings(){if(!getEnvStrings.strings){var r={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",_:S||"./this.program"};for(var e in Q)void 0===Q[e]?delete r[e]:r[e]=Q[e];var t=[];for(var e in r)t.push(e+"="+r[e]);getEnvStrings.strings=t}return getEnvStrings.strings}var rr={splitPath:function(r){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1)},normalizeArray:function(r,e){for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:function(r){var e="/"===r.charAt(0),t="/"===r.substr(-1);return(r=rr.normalizeArray(r.split("/").filter(function(r){return!!r}),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:function(r){var e=rr.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:function(r){if("/"===r)return"/";var e=(r=(r=rr.normalize(r)).replace(/\/$/,"")).lastIndexOf("/");return -1===e?r:r.substr(e+1)},extname:function(r){return rr.splitPath(r)[3]},join:function(){var r=Array.prototype.slice.call(arguments,0);return rr.normalize(r.join("/"))},join2:function(r,e){return rr.normalize(r+"/"+e)}},re={resolve:function(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:ro.cwd();if("string"!=typeof n)throw TypeError("Arguments to path.resolve must be strings");if(!n)return"";r=n+"/"+r,e="/"===n.charAt(0)}return r=rr.normalizeArray(r.split("/").filter(function(r){return!!r}),!e).join("/"),(e?"/":"")+r||"."},relative:function(r,e){function trim(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=re.resolve(r).substr(1),e=re.resolve(e).substr(1);for(var t=trim(r.split("/")),n=trim(e.split("/")),o=Math.min(t.length,n.length),i=o,a=0;a<o;a++)if(t[a]!==n[a]){i=a;break}for(var u=[],a=i;a<t.length;a++)u.push("..");return(u=u.concat(n.slice(i))).join("/")}},rt={ttys:[],init:function(){},shutdown:function(){},register:function(r,e){rt.ttys[r]={input:[],output:[],ops:e},ro.registerDevice(r,rt.stream_ops)}
vendor: 5,027 bytes, line 1
1,stream_ops:{open:function(r){var e=rt.ttys[r.node.rdev];if(!e)throw new ro.ErrnoError(43);r.tty=e,r.seekable=!1},close:function(r){r.tty.ops.flush(r.tty)},flush:function(r){r.tty.ops.flush(r.tty)},read:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new ro.ErrnoError(60);for(var i,a=0,u=0;u<n;u++){try{i=r.tty.ops.get_char(r.tty)}catch(r){throw new ro.ErrnoError(29)}if(void 0===i&&0===a)throw new ro.ErrnoError(6);if(null==i)break;a++,e[t+u]=i}return a&&(r.node.timestamp=Date.now()),a},write:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new ro.ErrnoError(60);try{for(var i=0;i<n;i++)r.tty.ops.put_char(r.tty,e[t+i])}catch(r){throw new ro.ErrnoError(29)}return n&&(r.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(r){if(!r.input.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;r.input=intArrayFromString(e,!0)}return r.input.shift()},put_char:function(r,e){null===e||10===e?(P(UTF8ArrayToString(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(P(UTF8ArrayToString(r.output,0)),r.output=[])}},default_tty1_ops:{put_char:function(r,e){null===e||10===e?(R(UTF8ArrayToString(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(R(UTF8ArrayToString(r.output,0)),r.output=[])}}},rn={ops_table:null,mount:function(r){return rn.createNode(null,"/",16895,0)},createNode:function(r,e,t,n){if(ro.isBlkdev(t)||ro.isFIFO(t))throw new ro.ErrnoError(63);rn.ops_table||(rn.ops_table={dir:{node:{getattr:rn.node_ops.getattr,setattr:rn.node_ops.setattr,lookup:rn.node_ops.lookup,mknod:rn.node_ops.mknod,rename:rn.node_ops.rename,unlink:rn.node_ops.unlink,rmdir:rn.node_ops.rmdir,readdir:rn.node_ops.readdir,symlink:rn.node_ops.symlink},stream:{llseek:rn.stream_ops.llseek}},file:{node:{getattr:rn.node_ops.getattr,setattr:rn.node_ops.setattr},stream:{llseek:rn.stream_ops.llseek,read:rn.stream_ops.read,write:rn.stream_ops.write,allocate:rn.stream_ops.allocate,mmap:rn.stream_ops.mmap,msync:rn.stream_ops.msync}},link:{node:{getattr:rn.node_ops.getattr,setattr:rn.node_ops.setattr,readlink:rn.node_ops.readlink},stream:{}},chrdev:{node:{getattr:rn.node_ops.getattr,setattr:rn.node_ops.setattr},stream:ro.chrdev_stream_ops}});var o=ro.createNode(r,e,t,n);return ro.isDir(o.mode)?(o.node_ops=rn.ops_table.dir.node,o.stream_ops=rn.ops_table.dir.stream,o.contents={}):ro.isFile(o.mode)?(o.node_ops=rn.ops_table.file.node,o.stream_ops=rn.ops_table.file.stream,o.usedBytes=0,o.contents=null):ro.isLink(o.mode)?(o.node_ops=rn.ops_table.link.node,o.stream_ops=rn.ops_table.link.stream):ro.isChrdev(o.mode)&&(o.node_ops=rn.ops_table.chrdev.node,o.stream_ops=rn.ops_table.chrdev.stream),o.timestamp=Date.now(),r&&(r.contents[e]=o,r.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(r){return r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0)},expandFileStorage:function(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage:function(r,e){if(r.usedBytes!=e){if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}}},node_ops:{getattr:function(r){var e={};return e.dev=ro.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,ro.isDir(r.mode)?e.size=4096:ro.isFile(r.mode)?e.size=r.usedBytes:ro.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.timestamp),e.mtime=new Date(r.timestamp),e.ctime=new Date(r.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(r,e){void 0!==e.mode&&(r.mode=e.mode),void 0!==e.timestamp&&(r.timestamp=e.timestamp),void 0!==e.size&&rn.resizeFileStorage(r,e.size)},lookup:function(r,e){throw ro.genericErrors[44]},mknod:function(r,e,t,n){return rn.createNode(r,e,t,n)},rename:function(r,e,t){if(ro.isDir(r.mode)){var n;try{n=ro.lookupNode(e,t)}catch(r){}if(n)for(var o in n.contents)throw new ro.ErrnoError(55)}delete r.parent.contents[r.name],r.parent.timestamp=Date.now(),r.name=t,e.contents[t]=r,e.timestamp=r.parent.timestamp,r.parent=e},unlink:function(r,e){delete r.contents[e],r.timestamp=Date.now()},rmdir:function(r,e){var t=ro.lookupNode(r,e);for(var n in t.contents)throw new ro.ErrnoError(55);delete r.contents[e],r.timestamp=Date.now()},readdir:function(r){var e=[".",".."];for(var t in r.contents)r.contents.hasOwnProperty(t)&&e.push(t);return e},symlink:function(r,e,t){var n=rn.createNode(r,e,41471,0);return n.link=t,n},readlink:function(r){if(!ro.isLink(r.mode))throw new ro.ErrnoError(28);return r.link}},stream_ops:{read:function(r,e,t,n,o){var i=r.node.contents;if(o>
1=r.node.usedBytes)return 0;var a=Math.min(r.node.usedBytes-o,n);if(a>8&&i.subarray)e.set(i.subarray(o,o+a),t);else for(var u=0;u<a;u++)e[t+u]=i[o+u];return a},write:function(r,e,t,n,o,i){if(e.buffer===d.buffer&&(i=!1),!n)return 0;var a=r.node;if(a.timestamp=Date.now(),e.subarray&&(!a.contents||a.contents.subarray)){if(i)return a.contents=e.subarray(t,t+n),a.usedBytes=n,n;if(0===a.usedBytes&&0===o)return a.contents=e.slice(t,t+n),a.usedBytes=n,n;if(o+n<=a.usedBytes)return a.contents.set(e.subarray(t,t+n),o),n}if(rn.expandFileStorage(a,o+n),a.contents.subarray&&e.subarray)a.contents.set(e.subarray(t,t+n),o);else for(var u=0;u<n;u++)a.contents[o+u]=e[t+u];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek:function(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&ro.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new ro.ErrnoError(28);return n},allocate:function(r,e,t){rn.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap:function(r,e,t,n,o,i){if(0!==e)throw new ro.ErrnoError(28);if(!ro.isFile(r.node.mode))throw new ro.ErrnoError(43);var a,u,s=r.node.contents;if(2&i||s.buffer!==l)throw(n>0||n+t<s.length)&&(s=s.subarray?s.subarray(n,n+t):Array.prototype.slice.call(s,n,n+t)),u=!0,a=void abort(),new ro.ErrnoError(48);return u=!1,{ptr:a=s.byteOffset,allocated:u}},msync:function(r,e,t,n,o){if(!ro.isFile(r.node.mode))throw new ro.ErrnoError(43);return 2&o||rn.stream_ops.write(r,e,0,n,t,!1),0}}},ro={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(r,e){if(r=re.resolve(ro.cwd(),r),e=e||{},!r)return{path:"",node:null};var t={follow_mount:!0,recurse_count:0};for(var n in t)void 0===e[n]&&(e[n]=t[n]);if(e.recurse_count>8)throw new ro.ErrnoError(32);for(var o=rr.normalizeArray(r.split("/").filter(function(r){return!!r}),!1),i=ro.root,a="/",u=0;u<o.length;u++){var s=u===o.length-1;if(s&&e.parent)break;if(i=ro.lookupNode(i,o[u]),a=rr.join2(a,o[u]),ro.isMountpoint(i)&&(!s||s&&e.follow_mount)&&(i=i.mounted.root),!s||e.follow)for(var c=0;ro.isLink(i.mode);){var f=ro.readlink(a);if(a=re.resolve(rr.dirname(a),f),i=ro.lookupPath(a,{recurse_count:e.recurse_count}).node,c++>40)throw new ro.ErrnoError(32)}}return{path:a,node:i}},getPath:function(r){for(var e;;){if(ro.isRoot(r)){var t=r.mount.mountpoint;if(!e)return t;return"/"!==t[t.length-1]?t+"/"+e:t+e}e=e?r.name+"/"+e:r.name,r=r.parent}},hashName:function(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%ro.nameTable.length},hashAddNode:function(r){var e=ro.hashName(r.parent.id,r.name);r.name_next=ro.nameTable[e],ro.nameTable[e]=r},hashRemoveNode:function(r){var e=ro.hashName(r.parent.id,r.name);if(ro.nameTable[e]===r)ro.nameTable[e]=r.name_next;else for(var t=ro.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode:function(r,e){var t=ro.mayLookup(r);if(t)throw new ro.ErrnoError(t,r);for(var n=ro.hashName(r.id,e),o=ro.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===r.id&&i===e)return o}return ro.lookup(r,e)},createNode:function(r,e,t,n){var o=new ro.FSNode(r,e,t,n);return ro.hashAddNode(o),o},destroyNode:function(r){ro.hashRemoveNode(r)},isRoot:function(r){return r===r.parent},isMountpoint:function(r){return!!r.mounted},isFile:function(r){return(61440&r)==32768},isDir:function(r){return(61440&r)==16384},isLink:function(r){return(61440&r)==40960},isChrdev:function(r){return(61440&r)==8192},isBlkdev:function(r){return(61440&r)==24576},isFIFO:function(r){return(61440&r)==4096},isSocket:function(r){return(49152&r)==49152},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(r){var e=ro.flagModes[r];if(void 0===e)throw Error("Unknown file open mode: "+r);return e},flagsToPermissionString:function(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:function(r,e){return ro.ignorePermissions?0:e.includes("r")&&!(292&r.mode)||e.includes("w")&&!(146&r.mode)||e.includes("x")&&!(73&r.mode)?2:0},mayLookup:function(r){return ro.nodePermissions(r,"x")||(r.node_ops.lookup?0:2)},mayCreate:function(r,e){try{return ro.lookupNode(r,e),20}catch(r){}return ro.nodePermissions(r,"wx")},mayDelete:function(r,e,t){try{n=ro.lookupNode(r,e)}catch(r){return r.errno}var n,o=ro.nodePermissions(r,"wx");if(o)return o;if(t){if(!ro.isDir(n.mode))return 54;if(ro.isRoot(n)||ro.getPath(n)===ro.cwd())return 10}else if(ro.isDir(n.mode))return 31;return 0},mayOpen:function(r,e){return r?ro.isLink(r.mode)?32:ro.isDir(r.mode)&&("r"!==ro.flagsToPermissionString(e)||512&e)?31:ro.nodePermissions(r,ro.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(r,e){r=r||0,e=e||ro.MAX_OPEN_FDS;for(var t=r;t<=e;t++)if(!ro.streams[t])return t;throw new ro.ErrnoError(33)}
1,getStream:function(r){return ro.streams[r]},createStream:function(r,e,t){ro.FSStream||(ro.FSStream=function(){},ro.FSStream.prototype={object:{get:function(){return this.node},set:function(r){this.node=r}},isRead:{get:function(){return(2097155&this.flags)!=1}},isWrite:{get:function(){return(2097155&this.flags)!=0}},isAppend:{get:function(){return 1024&this.flags}}});var n=new ro.FSStream;for(var o in r)n[o]=r[o];r=n;var i=ro.nextfd(e,t);return r.fd=i,ro.streams[i]=r,r},closeStream:function(r){ro.streams[r]=null},chrdev_stream_ops:{open:function(r){var e=ro.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open&&r.stream_ops.open(r)},llseek:function(){throw new ro.ErrnoError(70)}},major:function(r){return r>>8},minor:function(r){return 255&r},makedev:function(r,e){return r<<8|e},registerDevice:function(r,e){ro.devices[r]={stream_ops:e}},getDevice:function(r){return ro.devices[r]},getMounts:function(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push.apply(t,n.mounts)}return e},syncfs:function(r,e){"function"==typeof r&&(e=r,r=!1),ro.syncFSRequests++,ro.syncFSRequests>1&&R("warning: "+ro.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var t=ro.getMounts(ro.root.mount),n=0;function doCallback(r){return ro.syncFSRequests--,e(r)}function done(r){if(r)return done.errored?void 0:(done.errored=!0,doCallback(r));++n>=t.length&&doCallback(null)}t.forEach(function(e){if(!e.type.syncfs)return done(null);e.type.syncfs(e,r,done)})},mount:function(r,e,t){var n,o="/"===t,i=!t;if(o&&ro.root)throw new ro.ErrnoError(10);if(!o&&!i){var a=ro.lookupPath(t,{follow_mount:!1});if(t=a.path,n=a.node,ro.isMountpoint(n))throw new ro.ErrnoError(10);if(!ro.isDir(n.mode))throw new ro.ErrnoError(54)}var u={type:r,opts:e,mountpoint:t,mounts:[]},s=r.mount(u);return s.mount=u,u.root=s,o?ro.root=s:n&&(n.mounted=u,n.mount&&n.mount.mounts.push(u)),s},unmount:function(r){var e=ro.lookupPath(r,{follow_mount:!1});if(!ro.isMountpoint(e.node))throw new ro.ErrnoError(28);var t=e.node,n=t.mounted,o=ro.getMounts(n);Object.keys(ro.nameTable).forEach(function(r){for(var e=ro.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&ro.destroyNode(e),e=t}}),t.mounted=null;var i=t.mount.mounts.indexOf(n);t.mount.mounts.splice(i,1)},lookup:function(r,e){return r.node_ops.lookup(r,e)},mknod:function(r,e,t){var n=ro.lookupPath(r,{parent:!0}).node,o=rr.basename(r);if(!o||"."===o||".."===o)throw new ro.ErrnoError(28);var i=ro.mayCreate(n,o);if(i)throw new ro.ErrnoError(i);if(!n.node_ops.mknod)throw new ro.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},create:function(r,e){return e=(void 0!==e?e:438)&4095|32768,ro.mknod(r,e,0)},mkdir:function(r,e){return e=(void 0!==e?e:511)&1023|16384,ro.mknod(r,e,0)},mkdirTree:function(r,e){for(var t=r.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{ro.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:function(r,e,t){return void 0===t&&(t=e,e=438),e|=8192,ro.mknod(r,e,t)},symlink:function(r,e){if(!re.resolve(r))throw new ro.ErrnoError(44);var t=ro.lookupPath(e,{parent:!0}).node;if(!t)throw new ro.ErrnoError(44);var n=rr.basename(e),o=ro.mayCreate(t,n);if(o)throw new ro.ErrnoError(o);if(!t.node_ops.symlink)throw new ro.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename:function(r,e){var t,n,o,i=rr.dirname(r),a=rr.dirname(e),u=rr.basename(r),s=rr.basename(e);if(t=ro.lookupPath(r,{parent:!0}).node,n=ro.lookupPath(e,{parent:!0}).node,!t||!n)throw new ro.ErrnoError(44);if(t.mount!==n.mount)throw new ro.ErrnoError(75);var c=ro.lookupNode(t,u),f=re.relative(r,a);if("."!==f.charAt(0))throw new ro.ErrnoError(28);if("."!==(f=re.relative(e,i)).charAt(0))throw new ro.ErrnoError(55);try{o=ro.lookupNode(n,s)}catch(r){}if(c!==o){var l=ro.isDir(c.mode),d=ro.mayDelete(t,u,l);if(d||(d=o?ro.mayDelete(n,s,l):ro.mayCreate(n,s)))throw new ro.ErrnoError(d);if(!t.node_ops.rename)throw new ro.ErrnoError(63);if(ro.isMountpoint(c)||o&&ro.isMountpoint(o))throw new ro.ErrnoError(10);if(n!==t&&(d=ro.nodePermissions(t,"w")))throw new ro.ErrnoError(d);ro.hashRemoveNode(c);try{t.node_ops.rename(c,n,s)}catch(r){throw r}finally{ro.hashAddNode(c)}}},rmdir:function(r){var e=ro.lookupPath(r,{parent:!0}).node,t=rr.basename(r),n=ro.lookupNode(e,t),o=ro.mayDelete(e,t,!0);if(o)throw new ro.ErrnoError(o);if(!e.node_ops.rmdir)throw new ro.ErrnoError(63);if(ro.isMountpoint(n))throw new ro.ErrnoError(10);e.node_ops.rmdir(e,t),ro.destroyNode(n)},readdir:function(r){var e=ro.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new ro.ErrnoError(54);
1return e.node_ops.readdir(e)},unlink:function(r){var e=ro.lookupPath(r,{parent:!0}).node,t=rr.basename(r),n=ro.lookupNode(e,t),o=ro.mayDelete(e,t,!1);if(o)throw new ro.ErrnoError(o);if(!e.node_ops.unlink)throw new ro.ErrnoError(63);if(ro.isMountpoint(n))throw new ro.ErrnoError(10);e.node_ops.unlink(e,t),ro.destroyNode(n)},readlink:function(r){var e=ro.lookupPath(r).node;if(!e)throw new ro.ErrnoError(44);if(!e.node_ops.readlink)throw new ro.ErrnoError(28);return re.resolve(ro.getPath(e.parent),e.node_ops.readlink(e))},stat:function(r,e){var t=ro.lookupPath(r,{follow:!e}).node;if(!t)throw new ro.ErrnoError(44);if(!t.node_ops.getattr)throw new ro.ErrnoError(63);return t.node_ops.getattr(t)},lstat:function(r){return ro.stat(r,!0)},chmod:function(r,e,t){var n;if(!(n="string"==typeof r?ro.lookupPath(r,{follow:!t}).node:r).node_ops.setattr)throw new ro.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,timestamp:Date.now()})},lchmod:function(r,e){ro.chmod(r,e,!0)},fchmod:function(r,e){var t=ro.getStream(r);if(!t)throw new ro.ErrnoError(8);ro.chmod(t.node,e)},chown:function(r,e,t,n){var o;if(!(o="string"==typeof r?ro.lookupPath(r,{follow:!n}).node:r).node_ops.setattr)throw new ro.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(r,e,t){ro.chown(r,e,t,!0)},fchown:function(r,e,t){var n=ro.getStream(r);if(!n)throw new ro.ErrnoError(8);ro.chown(n.node,e,t)},truncate:function(r,e){if(e<0)throw new ro.ErrnoError(28);if("string"==typeof r){var t;t=ro.lookupPath(r,{follow:!0}).node}else t=r;if(!t.node_ops.setattr)throw new ro.ErrnoError(63);if(ro.isDir(t.mode))throw new ro.ErrnoError(31);if(!ro.isFile(t.mode))throw new ro.ErrnoError(28);var n=ro.nodePermissions(t,"w");if(n)throw new ro.ErrnoError(n);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate:function(r,e){var t=ro.getStream(r);if(!t)throw new ro.ErrnoError(8);if((2097155&t.flags)==0)throw new ro.ErrnoError(28);ro.truncate(t.node,e)},utime:function(r,e,t){var n=ro.lookupPath(r,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(e,t)})},open:function(e,t,n,o,i){if(""===e)throw new ro.ErrnoError(44);if(t="string"==typeof t?ro.modeStringToFlags(t):t,n=void 0===n?438:n,n=64&t?4095&n|32768:0,"object"==typeof e)a=e;else{e=rr.normalize(e);try{var a;a=ro.lookupPath(e,{follow:!(131072&t)}).node}catch(r){}}var u=!1;if(64&t){if(a){if(128&t)throw new ro.ErrnoError(20)}else a=ro.mknod(e,n,0),u=!0}if(!a)throw new ro.ErrnoError(44);if(ro.isChrdev(a.mode)&&(t&=-513),65536&t&&!ro.isDir(a.mode))throw new ro.ErrnoError(54);if(!u){var s=ro.mayOpen(a,t);if(s)throw new ro.ErrnoError(s)}512&t&&ro.truncate(a,0),t&=-131713;var c=ro.createStream({node:a,path:ro.getPath(a),id:a.id,flags:t,mode:a.mode,seekable:!0,position:0,stream_ops:a.stream_ops,node_ops:a.node_ops,ungotten:[],error:!1},o,i);return c.stream_ops.open&&c.stream_ops.open(c),!r.logReadFiles||1&t||(ro.readFiles||(ro.readFiles={}),e in ro.readFiles||(ro.readFiles[e]=1)),c},close:function(r){if(ro.isClosed(r))throw new ro.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{ro.closeStream(r.fd)}r.fd=null},isClosed:function(r){return null===r.fd},llseek:function(r,e,t){if(ro.isClosed(r))throw new ro.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new ro.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new ro.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read:function(r,e,t,n,o){if(n<0||o<0)throw new ro.ErrnoError(28);if(ro.isClosed(r)||(2097155&r.flags)==1)throw new ro.ErrnoError(8);if(ro.isDir(r.node.mode))throw new ro.ErrnoError(31);if(!r.stream_ops.read)throw new ro.ErrnoError(28);var i=void 0!==o;if(i){if(!r.seekable)throw new ro.ErrnoError(70)}else o=r.position;var a=r.stream_ops.read(r,e,t,n,o);return i||(r.position+=a),a},write:function(r,e,t,n,o,i){if(n<0||o<0)throw new ro.ErrnoError(28);if(ro.isClosed(r)||(2097155&r.flags)==0)throw new ro.ErrnoError(8);if(ro.isDir(r.node.mode))throw new ro.ErrnoError(31);if(!r.stream_ops.write)throw new ro.ErrnoError(28);r.seekable&&1024&r.flags&&ro.llseek(r,0,2);var a=void 0!==o;if(a){if(!r.seekable)throw new ro.ErrnoError(70)}else o=r.position;var u=r.stream_ops.write(r,e,t,n,o,i);return a||(r.position+=u),u},allocate:function(r,e,t){if(ro.isClosed(r))throw new ro.ErrnoError(8);if(e<0||t<=0)throw new ro.ErrnoError(28);if((2097155&r.flags)==0)throw new ro.ErrnoError(8);if(!ro.isFile(r.node.mode)&&!ro.isDir(r.node.mode))throw new ro.ErrnoError(43);if(!r.stream_ops.allocate)throw new ro.ErrnoError(138);r.stream_ops.allocate(r,e,t)},mmap:function(r,e,t,n,o,i){if((2&o)!=0&&(2&i)==0&&(2097155&r.flags)!=2||(2097155&r.flags)==1)throw new ro.ErrnoError(2);if(!r.stream_ops.mmap)throw new ro.ErrnoError(43);return r.stream_ops.mmap(r,e,t,n,o,i)},msync:function(r,e,t,n,o){return r&&r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0},munmap:function(r){return 0},ioctl:function(r,e,t){if(!r.stream_ops.ioctl)throw new ro.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile:function(r,e){if((e=e||{}).flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw Error('Invalid encoding type "'+e.encoding+'"');var t,n=ro.open(r,e.flags),o=ro.stat(r).size,i=new Uint8Array(o);return ro.read(n,i,0,o,0),"utf8"===e.encoding?t=UTF8ArrayToString(i,0):"binary"===e.encoding&&(t=i),ro.close(n),t},writeFile:function(r,e,t){(t=t||{}).flags=t.flags||577;var n=ro.open(r,t.flags,t.mode);if("string"==typeof e){var o=new Uint8Array(lengthBytesUTF8(e)+1),i=stringToUTF8Array(e,o,0,o.length);ro.write(n,o,0,i,void 0,t.canOwn)}else if(ArrayBuffer.isView(e))ro.write(n,e,0,e.byteLength,void 0,t.canOwn);else throw Error("Unsupported data type");ro.close(n)}
1,cwd:function(){return ro.currentPath},chdir:function(r){var e=ro.lookupPath(r,{follow:!0});if(null===e.node)throw new ro.ErrnoError(44);if(!ro.isDir(e.node.mode))throw new ro.ErrnoError(54);var t=ro.nodePermissions(e.node,"x");if(t)throw new ro.ErrnoError(t);ro.currentPath=e.path},createDefaultDirectories:function(){ro.mkdir("/tmp"),ro.mkdir("/home"),ro.mkdir("/home/web_user")},createDefaultDevices:function(){ro.mkdir("/dev"),ro.registerDevice(ro.makedev(1,3),{read:function(){return 0},write:function(r,e,t,n,o){return n}}),ro.mkdev("/dev/null",ro.makedev(1,3)),rt.register(ro.makedev(5,0),rt.default_tty_ops),rt.register(ro.makedev(6,0),rt.default_tty1_ops),ro.mkdev("/dev/tty",ro.makedev(5,0)),ro.mkdev("/dev/tty1",ro.makedev(6,0));var r=function(){if("object"!=typeof crypto||"function"!=typeof crypto.getRandomValues)return function(){abort("randomDevice")};var r=new Uint8Array(1);return function(){return crypto.getRandomValues(r),r[0]}}();ro.createDevice("/dev","random",r),ro.createDevice("/dev","urandom",r),ro.mkdir("/dev/shm"),ro.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){ro.mkdir("/proc");var r=ro.mkdir("/proc/self");ro.mkdir("/proc/self/fd"),ro.mount({mount:function(){var e=ro.createNode(r,"fd",16895,73);return e.node_ops={lookup:function(r,e){var t=ro.getStream(+e);if(!t)throw new ro.ErrnoError(8);var n={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return t.path}}};return n.parent=n,n}},e}},{},"/proc/self/fd")},createStandardStreams:function(){r.stdin?ro.createDevice("/dev","stdin",r.stdin):ro.symlink("/dev/tty","/dev/stdin"),r.stdout?ro.createDevice("/dev","stdout",null,r.stdout):ro.symlink("/dev/tty","/dev/stdout"),r.stderr?ro.createDevice("/dev","stderr",null,r.stderr):ro.symlink("/dev/tty1","/dev/stderr"),ro.open("/dev/stdin",0),ro.open("/dev/stdout",1),ro.open("/dev/stderr",1)},ensureErrnoError:function(){ro.ErrnoError||(ro.ErrnoError=function(r,e){this.node=e,this.setErrno=function(r){this.errno=r},this.setErrno(r),this.message="FS error"},ro.ErrnoError.prototype=Error(),ro.ErrnoError.prototype.constructor=ro.ErrnoError,[44].forEach(function(r){ro.genericErrors[r]=new ro.ErrnoError(r),ro.genericErrors[r].stack="<generic error, no stack>"}))},staticInit:function(){ro.ensureErrnoError(),ro.nameTable=Array(4096),ro.mount(rn,{},"/"),ro.createDefaultDirectories(),ro.createDefaultDevices(),ro.createSpecialDirectories(),ro.filesystems={MEMFS:rn}},init:function(e,t,n){ro.init.initialized=!0,ro.ensureErrnoError(),r.stdin=e||r.stdin,r.stdout=t||r.stdout,r.stderr=n||r.stderr,ro.createStandardStreams()},quit:function(){ro.init.initialized=!1;var e=r._fflush;e&&e(0);for(var t=0;t<ro.streams.length;t++){var n=ro.streams[t];n&&ro.close(n)}},getMode:function(r,e){var t=0;return r&&(t|=365),e&&(t|=146),t},findObject:function(r,e){var t=ro.analyzePath(r,e);return t.exists?t.object:null},analyzePath:function(r,e){try{var t=ro.lookupPath(r,{follow:!e});r=t.path}catch(r){}var n={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var t=ro.lookupPath(r,{parent:!0});n.parentExists=!0,n.parentPath=t.path,n.parentObject=t.node,n.name=rr.basename(r),t=ro.lookupPath(r,{follow:!e}),n.exists=!0,n.path=t.path,n.object=t.node,n.name=t.node.name,n.isRoot="/"===t.path}catch(r){n.error=r.errno}return n},createPath:function(r,e,t,n){r="string"==typeof r?r:ro.getPath(r);for(var o=e.split("/").reverse();o.length;){var i=o.pop();if(i){var a=rr.join2(r,i);try{ro.mkdir(a)}catch(r){}r=a}}return a},createFile:function(r,e,t,n,o){var i=rr.join2("string"==typeof r?r:ro.getPath(r),e),a=ro.getMode(n,o);return ro.create(i,a)},createDataFile:function(r,e,t,n,o,i){var a=e?rr.join2("string"==typeof r?r:ro.getPath(r),e):r,u=ro.getMode(n,o),s=ro.create(a,u);if(t){if("string"==typeof t){for(var c=Array(t.length),f=0,l=t.length;f<l;++f)c[f]=t.charCodeAt(f);t=c}ro.chmod(s,146|u);var d=ro.open(s,577);ro.write(d,t,0,t.length,0,i),ro.close(d),ro.chmod(s,u)}return s},createDevice:function(r,e,t,n){var o=rr.join2("string"==typeof r?r:ro.getPath(r),e),i=ro.getMode(!!t,!!n);ro.createDevice.major||(ro.createDevice.major=64);var a=ro.makedev(ro.createDevice.major++,0);return ro.registerDevice(a,{open:function(r){r.seekable=!1},close:function(r){n&&n.buffer&&n.buffer.length&&n(10)},read:function(r,e,n,o,i){for(var a,u=0,s=0;s<o;s++){try{a=t()}catch(r){throw new ro.ErrnoError(29)}if(void 0===a&&0===u)throw new ro.ErrnoError(6);if(null==a)break;u++,e[n+s]=a}return u&&(r.node.timestamp=Date.now()),u},write:function(r,e,t,o,i){for(var a=0;a<o;a++)try{n(e[t+a])}catch(r){throw new ro.ErrnoError(29)}return o&&(r.node.timestamp=Date.now()),a}}),ro.mkdev(o,i,a)},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;
1if("undefined"!=typeof XMLHttpRequest)throw 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)try{r.contents=intArrayFromString(a(r.url),!0),r.usedBytes=r.contents.length}catch(r){throw new ro.ErrnoError(29)}else throw Error("Cannot load without read() or XMLHttpRequest.")},createLazyFile:function(r,e,t,n,o){function LazyUint8Array(){this.lengthKnown=!1,this.chunks=[]}if(LazyUint8Array.prototype.get=function(r){if(!(r>this.length-1)&&!(r<0)){var e=r%this.chunkSize,t=r/this.chunkSize|0;return this.getter(t)[e]}},LazyUint8Array.prototype.setDataGetter=function(r){this.getter=r},LazyUint8Array.prototype.cacheLength=function(){var r,e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw Error("Couldn't load "+t+". Status: "+e.status);var n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,i=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,a=1048576;o||(a=n);var doXHR=function(r,e){if(r>e)throw Error("invalid range ("+r+", "+e+") or no bytes requested!");if(e>n-1)throw Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==a&&o.setRequestHeader("Range","bytes="+r+"-"+e),"undefined"!=typeof Uint8Array&&(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 Error("Couldn't load "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):intArrayFromString(o.responseText||"",!0)},u=this;u.setDataGetter(function(r){var e=r*a,t=(r+1)*a-1;if(t=Math.min(t,n-1),void 0===u.chunks[r]&&(u.chunks[r]=doXHR(e,t)),void 0===u.chunks[r])throw Error("doXHR failed!");return u.chunks[r]}),(i||!n)&&(a=n=1,a=n=this.getter(0).length,P("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){var i;throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc"}var i={isDevice:!1,url:t},a=ro.createFile(r,e,i,n,o);i.contents?a.contents=i.contents:i.url&&(a.contents=null,a.url=i.url),Object.defineProperties(a,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(a.stream_ops).forEach(function(r){var e=a.stream_ops[r];u[r]=function(){return ro.forceLoadFile(a),e.apply(null,arguments)}}),u.read=function(r,e,t,n,o){ro.forceLoadFile(a);var i=r.node.contents;if(o>=i.length)return 0;var u=Math.min(i.length-o,n);if(i.slice)for(var s=0;s<u;s++)e[t+s]=i[o+s];else for(var s=0;s<u;s++)e[t+s]=i.get(o+s);return u},a.stream_ops=u,a},createPreloadedFile:function(e,t,n,o,i,a,s,c,f,l){Browser.init();var d,m,p=t?re.resolve(rr.join2(e,t)):e,h="cp "+p;function processData(n){function finish(r){l&&l(),c||ro.createDataFile(e,t,r,o,i,f),a&&a(),removeRunDependency(h)}var u=!1;r.preloadPlugins.forEach(function(r){!u&&r.canHandle(p)&&(r.handle(n,p,finish,function(){s&&s(),removeRunDependency(h)}),u=!0)}),u||finish(n)}addRunDependency(h),"string"==typeof n?(d=function(r){processData(r)},m="al "+n,u(n,function(r){assert(r,'Loading data file "'+n+'" failed (no arrayBuffer).'),d(new Uint8Array(r)),m&&removeRunDependency(m)},function(r){if(s)s();else throw'Loading data file "'+n+'" failed.'}),m&&addRunDependency(m)):processData(n)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function(r,e,t){e=e||function(){},t=t||function(){};var n=ro.indexedDB();try{var o=n.open(ro.DB_NAME(),ro.DB_VERSION)}catch(r){return t(r)}o.onupgradeneeded=function(){P("creating db"),o.result.createObjectStore(ro.DB_STORE_NAME)},o.onsuccess=function(){var n=o.result.transaction([ro.DB_STORE_NAME],"readwrite"),i=n.objectStore(ro.DB_STORE_NAME),a=0,u=0,s=r.length;function finish(){0==u?e():t()}r.forEach(function(r){var e=i.put(ro.analyzePath(r).object.contents,r);e.onsuccess=function(){++a+u==s&&finish()},e.onerror=function(){u++,a+u==s&&finish()}}),n.onerror=t},o.onerror=t},loadFilesFromDB:function(r,e,t){e=e||function(){},t=t||function(){};var n=ro.indexedDB();try{var o=n.open(ro.DB_NAME(),ro.DB_VERSION)}catch(r){return t(r)}o.onupgradeneeded=t,o.onsuccess=function(){var n=o.result;try{var i=n.transaction([ro.DB_STORE_NAME],"readonly")}catch(r){t(r);return}var a=i.objectStore(ro.DB_STORE_NAME),u=0,s=0,c=r.length;function finish(){0==s?e():t()}r.forEach(function(r){var e=a.get(r);e.onsuccess=function(){ro.analyzePath(r).exists&&ro.unlink(r),ro.createDataFile(rr.dirname(r),rr.basename(r),e.result,!0,!0,!0),++u+s==c&&finish()},e.onerror=function(){s++,u+s==c&&finish()}}),i.onerror=t},o.onerror=t}},ri={mappings:{},DEFAULT_POLLMASK:5,calculateAt:function(r,e,t){if("/"===e[0])return e;if(-100===r)n=ro.cwd();else{var n,o=ro.getStream(r);if(!o)throw new ro.ErrnoError(8);n=o.path}if(0==e.length){if(!t)throw new ro.ErrnoError(44);return n}return rr.join2(n,e)},doStat:function(r,e,t){try{var n=r(e)}catch(r){if(r&&r.node&&rr.normalize(e)!==rr.normalize(ro.getPath(r.node)))return -54;throw r}return g[t>>2]=n.dev,g[t+4>>2]=0,g[t+8>>2]=n.ino,g[t+12>>2]=n.mode,g[t+16>>2]=n.nlink,g[t+20>>2]=n.uid,g[t+24>>2]=n.gid,g[t+28>>2]=n.rdev,g[t+32>>2]=0,k=[n.size>>>0,+Math.abs(b=n.size)>=1?b>0?(0|Math.min(+Math.floor(b/4294967296),4294967295))>>>0:~~+Math.ceil((b-+(~~b>>>0))/4294967296)>>>0:0],g[t+40>>2]=k[0],g[t+44>>2]=k[1],g[t+48>>2]=4096,g[t+52>>2]=n.blocks,g[t+56>>2]=n.atime.getTime()/1e3|0,g[t+60>>2]=0,g[t+64>>2]=n.mtime.getTime()/1e3|0,g[t+68>>2]=0,g[t+72>>2]=n.ctime.getTime()/1e3|0,g[t+76>>2]=0,k=[n.ino>>>0,+Math.abs(b=n.ino)>=1?b>0?(0|Math.min(+Math.floor(b/4294967296),4294967295))>>>0:~~+Math.ceil((b-+(~~b>>>0))/4294967296)>>>0:0],g[t+80>>2]=k[0],g[t+84>>2]=k[1],0},doMsync:function(r,e,t,n,o){var i=m.slice(r,r+t);ro.msync(e,i,o,t,n)}
1,doMkdir:function(r,e){return"/"===(r=rr.normalize(r))[r.length-1]&&(r=r.substr(0,r.length-1)),ro.mkdir(r,e,0),0},doMknod:function(r,e,t){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return -28}return ro.mknod(r,e,t),0},doReadlink:function(r,e,t){if(t<=0)return -28;var n=ro.readlink(r),o=Math.min(t,lengthBytesUTF8(n)),i=d[e+o];return stringToUTF8Array(n,m,e,t+1),d[e+o]=i,o},doAccess:function(r,e){if(-8&e)return -28;if(!(t=ro.lookupPath(r,{follow:!0}).node))return -44;var t,n="";return(4&e&&(n+="r"),2&e&&(n+="w"),1&e&&(n+="x"),n&&ro.nodePermissions(t,n))?-2:0},doDup:function(r,e,t){var n=ro.getStream(t);return n&&ro.close(n),ro.open(r,e,0,t,t).fd},doReadv:function(r,e,t,n){for(var o=0,i=0;i<t;i++){var a=g[e+8*i>>2],u=g[e+(8*i+4)>>2],s=ro.read(r,d,a,u,n);if(s<0)return -1;if(o+=s,s<u)break}return o},doWritev:function(r,e,t,n){for(var o=0,i=0;i<t;i++){var a=g[e+8*i>>2],u=g[e+(8*i+4)>>2],s=ro.write(r,d,a,u,n);if(s<0)return -1;o+=s}return o},varargs:void 0,get:function(){return ri.varargs+=4,g[ri.varargs-4>>2]},getStr:function(r){return UTF8ToString(r)},getStreamFromFD:function(r){var e=ro.getStream(r);if(!e)throw new ro.ErrnoError(8);return e},get64:function(r,e){return r}};function __isLeapYear(r){return r%4==0&&(r%100!=0||r%400==0)}function __arraySum(r,e){for(var t=0,n=0;n<=e;t+=r[n++]);return t}var ra=[31,29,31,30,31,30,31,31,30,31,30,31],ru=[31,28,31,30,31,30,31,31,30,31,30,31];function __addDays(r,e){for(var t=new Date(r.getTime());e>0;){var n=__isLeapYear(t.getFullYear()),o=t.getMonth(),i=(n?ra:ru)[o];if(e>i-t.getDate())e-=i-t.getDate()+1,t.setDate(1),o<11?t.setMonth(o+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else{t.setDate(t.getDate()+e);break}}return t}q=r.InternalError=extendError(Error,"InternalError"),function(){for(var r=Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);X=r}(),G=r.BindingError=extendError(Error,"BindingError"),r.count_emval_handles=function(){for(var r=0,e=5;e<K.length;++e)void 0!==K[e]&&++r;return r},r.get_first_emval=function(){for(var r=5;r<K.length;++r)if(void 0!==K[r])return K[r];return null},Z=r.UnboundTypeError=extendError(Error,"UnboundTypeError");var FSNode=function(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.mounted=null,this.id=ro.nextInode++,this.name=e,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n};function intArrayFromString(r,e,t){var n=Array(t>0?t:lengthBytesUTF8(r)+1),o=stringToUTF8Array(r,n,0,n.length);return e&&(n.length=o),n}Object.defineProperties(FSNode.prototype,{read:{get:function(){return(365&this.mode)==365},set:function(r){r?this.mode|=365:this.mode&=-366}},write:{get:function(){return(146&this.mode)==146},set:function(r){r?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return ro.isDir(this.mode)}},isDevice:{get:function(){return ro.isChrdev(this.mode)}}}),ro.FSNode=FSNode,ro.staticInit();var rs={a:function(r){return rf(r+16)+16},b:function(r,e,t){throw new ExceptionInfo(r).init(e,t),I++,r},o:function(r){var e=L[r];delete L[r];var t=e.elements,n=t.length,o=t.map(function(r){return r.getterReturnType}).concat(t.map(function(r){return r.setterArgumentType})),i=e.rawConstructor,a=e.rawDestructor;whenDependentTypesAreResolved([r],o,function(r){return t.forEach(function(e,t){var o=r[t],i=e.getter,a=e.getterContext,u=r[t+n],s=e.setter,c=e.setterContext;e.read=function(r){return o.fromWireType(i(a,r))},e.write=function(r,e){var t=[];s(c,r,u.toWireType(t,e)),runDestructors(t)}}),[{name:e.name,fromWireType:function(r){for(var e=Array(n),o=0;o<n;++o)e[o]=t[o].read(r);return a(r),e},toWireType:function(r,o){if(n!==o.length)throw TypeError("Incorrect number of tuple elements for "+e.name+": expected="+n+", actual="+o.length);for(var u=i(),s=0;s<n;++s)t[s].write(u,o[s]);return null!==r&&r.push(a,u),u},argPackAdvance:8,readValueFromPointer:simpleReadValueFromPointer,destructorFunction:a}]})},r:function(r,e,t,n,o){},m:function(r,e,t,n,o){var i=getShiftFromSize(t);registerType(r,{name:e=readLatin1String(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(r){var n;if(1===t)n=d;else if(2===t)n=p;else if(4===t)n=g;else throw TypeError("Unknown boolean type size: "+e);return this.fromWireType(n[r>>i])},destructorFunction:null})},B:function(r,e){registerType(r,{name:e=readLatin1String(e),fromWireType:function(r){var e=$.toValue(r);return r>4&&0==--K[r].refcount&&(K[r]=void 0,J.push(r)),e},toWireType:function(r,e){return $.toHandle(e)},argPackAdvance:8,readValueFromPointer:simpleReadValueFromPointer,destructorFunction:null})},w:function(r,e,t,n){var o=getShiftFromSize(t);function ctor(){}e=readLatin1String(e),ctor.values={},registerType(r,{name:e,constructor:ctor,fromWireType:function(r){return this.constructor.values[r]},toWireType:function(r,e){return e.value},argPackAdvance:8,readValueFromPointer:function(r,e,t){switch(e){case 0:return function(r){var e=t?d:m;return this.fromWireType(e[r])};case 1:return function(r){var e=t?p:h;return this.fromWireType(e[r>>1])};case 2:return function(r){var e=t?g:y;return this.fromWireType(e[r>>2])};default:throw TypeError("Unknown integer type: "+r)}}(e,o,n),destructorFunction:null}),exposePublicSymbol(e,ctor)},g:function(r,e,t){var n,o=(void 0===(n=Y[r])&&throwBindingError("enum has unknown type "+getTypeName(r)),n);e=readLatin1String(e);var i=o.constructor,a=Object.create(o.constructor.prototype,{value:{value:t},constructor:{value:createNamedFunction(o.name+"_"+e,function(){})}});i.values[t]=a,i[e]=a},k:function(r,e,t){var n=getShiftFromSize(t);registerType(r,{name:e=readLatin1String(e),fromWireType:function(r){return r},toWireType:function(r,e){if("number"!=typeof e&&"boolean"!=typeof e)throw TypeError('Cannot convert "'+_embind_repr(e)+'" to '+this.name);return e},argPackAdvance:8,readValueFromPointer:function(r,e){switch(e){case 2:return function(r){return this.fromWireType(v[r>>2])};case 3:return function(r){return this.fromWireType(w[r>>3])};default:throw TypeError("Unknown float type: "+r)}}(e,n),destructorFunction:null})},e:function(e,t,n,o,i,a){var u=function(r,e){for(var t=[],n=0;n<r;n++)t.push(g[(e>>2)+n]);return t}(t,n);e=readLatin1String(e),i=embind__requireFunction(o,i),exposePublicSymbol(e,function(){!function(r,e){var t=[],n={};throw e.forEach(function visit(r){if(!n[r]&&!Y[r]){if(V[r]){V[r].forEach(visit);return}t.push(r),n[r]=!0}}),new Z(r+": "+t.map(getTypeName).join([", "]))}("Cannot call "+e+" due to unbound types",u)},t-1),whenDependentTypesAreResolved([],u,function(n){var o,u,s,c=[n[0],null].concat(n.slice(1));return o=e,u=function(r,e,t,n,o){var i=e.length;i<2&&throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&!1,u=!1,s=1;s<e.length;++s)if(null!==e[s]&&void 0===e[s].destructorFunction){u=!0;break}for(var c="void"!==e[0].name,f="",l="",s=0;s<i-2;++s)f+=(0!==s?", ":"")+"arg"+s,l+=(0!==s?", ":"")+"arg"+s+"Wired";var d="return function "+makeLegalFunctionName(r)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+r+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";u&&(d+="var destructors = [];\n");var m=u?"destructors":"null",p=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],h=[throwBindingError,n,o,runDestructors,e[0],e[1]];a&&(d+="var thisWired = classParam.toWireType("+m+", this);\n");for(var s=0;s<i-2;++s)d+="var arg"+s+"Wired = argType"+s+".toWireType("+m+", arg"+s+"); // "+e[s+2].name+"\n",p.push("argType"+s),h.push(e[s+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),d+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",u)d+="runDestructors(destructors);\n";else for(var s=a?1:2;s<e.length;++s){var g=1===s?"thisWired":"arg"+(s-2)+"Wired";
1null!==e[s].destructorFunction&&(d+=g+"_dtor("+g+"); // "+e[s].name+"\n",p.push(g+"_dtor"),h.push(e[s].destructorFunction))}return c&&(d+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),d+="}\n",p.push(d),(function(r,e){if(!(r instanceof Function))throw TypeError("new_ called with constructor type "+typeof r+" which is not a function");var t=createNamedFunction(r.name||"unknownFunctionName",function(){});t.prototype=r.prototype;var n=new t,o=r.apply(n,e);return o instanceof Object?o:n})(Function,p).apply(null,h)}(e,c,0,i,a),s=t-1,r.hasOwnProperty(o)||throwInternalError("Replacing nonexistant public symbol"),void 0!==r[o].overloadTable&&void 0!==s?r[o].overloadTable[s]=u:(r[o]=u,r[o].argCount=s),[]})},f:function(r,e,t,n,o){e=readLatin1String(e),-1===o&&(o=4294967295);var i=getShiftFromSize(t),fromWireType=function(r){return r};if(0===n){var a=32-8*t;fromWireType=function(r){return r<<a>>>a}}var u=e.includes("unsigned");registerType(r,{name:e,fromWireType:fromWireType,toWireType:function(r,t){if("number"!=typeof t&&"boolean"!=typeof t)throw TypeError('Cannot convert "'+_embind_repr(t)+'" to '+this.name);if(t<n||t>o)throw TypeError('Passing a number "'+_embind_repr(t)+'" from JS side to C/C++ side to an argument of type "'+e+'", which is outside the valid range ['+n+", "+o+"]!");return u?t>>>0:0|t},argPackAdvance:8,readValueFromPointer:function(r,e,t){switch(e){case 0:return t?function(r){return d[r]}:function(r){return m[r]};case 1:return t?function(r){return p[r>>1]}:function(r){return h[r>>1]};case 2:return t?function(r){return g[r>>2]}:function(r){return y[r>>2]};default:throw TypeError("Unknown integer type: "+r)}}(e,i,0!==n),destructorFunction:null})},d:function(r,e,t){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function decodeMemoryView(r){r>>=2;var e=y,t=e[r],o=e[r+1];return new n(l,o,t)}registerType(r,{name:t=readLatin1String(t),fromWireType:decodeMemoryView,argPackAdvance:8,readValueFromPointer:decodeMemoryView},{ignoreDuplicateRegistrations:!0})},l:function(r,e){var t="std::string"===(e=readLatin1String(e));registerType(r,{name:e,fromWireType:function(r){var e,n=y[r>>2];if(t)for(var o=r+4,i=0;i<=n;++i){var a=r+4+i;if(i==n||0==m[a]){var u=a-o,s=UTF8ToString(o,u);void 0===e?e=s:e+="\x00"+s,o=a+1}}else{for(var c=Array(n),i=0;i<n;++i)c[i]=String.fromCharCode(m[r+4+i]);e=c.join("")}return rp(r),e},toWireType:function(r,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||throwBindingError("Cannot pass non-string to std::string");var o=(t&&n?function(){return lengthBytesUTF8(e)}:function(){return e.length})(),i=rf(4+o+1);if(y[i>>2]=o,t&&n)stringToUTF8Array(e,m,i+4,o+1);else if(n)for(var a=0;a<o;++a){var u=e.charCodeAt(a);u>255&&(rp(i),throwBindingError("String has UTF-16 code units that do not fit in 8 bits")),m[i+4+a]=u}else for(var a=0;a<o;++a)m[i+4+a]=e[a];return null!==r&&r.push(rp,i),i},argPackAdvance:8,readValueFromPointer:simpleReadValueFromPointer,destructorFunction:function(r){rp(r)}})},i:function(r,e,t){var n,o,i,a,u;t=readLatin1String(t),2===e?(n=UTF16ToString,o=stringToUTF16,a=lengthBytesUTF16,i=function(){return h},u=1):4===e&&(n=UTF32ToString,o=stringToUTF32,a=lengthBytesUTF32,i=function(){return y},u=2),registerType(r,{name:t,fromWireType:function(r){for(var t,o=y[r>>2],a=i(),s=r+4,c=0;c<=o;++c){var f=r+4+c*e;if(c==o||0==a[f>>u]){var l=f-s,d=n(s,l);void 0===t?t=d:t+="\x00"+d,s=f+e}}return rp(r),t},toWireType:function(r,n){"string"!=typeof n&&throwBindingError("Cannot pass non-string to C++ string type "+t);var i=a(n),s=rf(4+i+e);return y[s>>2]=i>>u,o(n,s+4,i+e),null!==r&&r.push(rp,s),s},argPackAdvance:8,readValueFromPointer:simpleReadValueFromPointer,destructorFunction:function(r){rp(r)}})},p:function(r,e,t,n,o,i){L[r]={name:readLatin1String(e),rawConstructor:embind__requireFunction(t,n),rawDestructor:embind__requireFunction(o,i),elements:[]}},c:function(r,e,t,n,o,i,a,u,s){L[r].elements.push({getterReturnType:e,getter:embind__requireFunction(t,n),getterContext:o,setterArgumentType:i,setter:embind__requireFunction(a,u),setterContext:s})},n:function(r,e){registerType(r,{isVoid:!0,name:e=readLatin1String(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(r,e){}})},j:function(){abort("")},t:function(r,e,t){m.copyWithin(r,e,e+t)},h:function(r){var e=m.length;if((r>>>=0)>2147483648)return!1;for(var t=1;t<=4;t*=2){var n,o=e*(1+.2/t);if(o=Math.min(o,r+100663296),function(r){try{return f.grow(r-l.byteLength+65535>>>16),updateGlobalBufferAndViews(f.buffer),1}catch(r){}}(Math.min(2147483648,((n=Math.max(r,o))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},x:function(r,e){var t=0;
1return getEnvStrings().forEach(function(n,o){var i=e+t;g[r+4*o>>2]=i,function(r,e,t){for(var n=0;n<r.length;++n)d[e++>>0]=r.charCodeAt(n);d[e>>0]=0}(n,i),t+=n.length+1}),0},y:function(r,e){var t=getEnvStrings();g[r>>2]=t.length;var n=0;return t.forEach(function(r){n+=r.length+1}),g[e>>2]=n,0},A:function(r){try{var e=ri.getStreamFromFD(r);return ro.close(e),0}catch(r){return void 0!==ro&&r instanceof ro.ErrnoError||abort(r),r.errno}},u:function(r,e,t,n){try{var o=ri.getStreamFromFD(r),i=ri.doReadv(o,e,t);return g[n>>2]=i,0}catch(r){return void 0!==ro&&r instanceof ro.ErrnoError||abort(r),r.errno}},q:function(r,e,t,n,o){try{var i=ri.getStreamFromFD(r),a=4294967296*t+(e>>>0);if(a<=-9007199254740992||a>=9007199254740992)return -61;return ro.llseek(i,a,n),k=[i.position>>>0,(b=i.position,+Math.abs(b)>=1?b>0?(0|Math.min(+Math.floor(b/4294967296),4294967295))>>>0:~~+Math.ceil((b-+(~~b>>>0))/4294967296)>>>0:0)],g[o>>2]=k[0],g[o+4>>2]=k[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(r){return void 0!==ro&&r instanceof ro.ErrnoError||abort(r),r.errno}},z:function(r,e,t,n){try{var o=ri.getStreamFromFD(r),i=ri.doWritev(o,e,t);return g[n>>2]=i,0}catch(r){return void 0!==ro&&r instanceof ro.ErrnoError||abort(r),r.errno}},s:function(r){setTempRet0(r)},v:function(r,e,t,n){return function(r,e,t,n){var o=g[n+40>>2],i={tm_sec:g[n>>2],tm_min:g[n+4>>2],tm_hour:g[n+8>>2],tm_mday:g[n+12>>2],tm_mon:g[n+16>>2],tm_year:g[n+20>>2],tm_wday:g[n+24>>2],tm_yday:g[n+28>>2],tm_isdst:g[n+32>>2],tm_gmtoff:g[n+36>>2],tm_zone:o?UTF8ToString(o):""},a=UTF8ToString(t),u={"%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 s in u)a=a.replace(RegExp(s,"g"),u[s]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"];function leadingSomething(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function leadingNulls(r,e){return leadingSomething(r,e,"0")}function compareByDay(r,e){var t;function sgn(r){return r<0?-1:r>0?1:0}return 0===(t=sgn(r.getFullYear()-e.getFullYear()))&&0===(t=sgn(r.getMonth()-e.getMonth()))&&(t=sgn(r.getDate()-e.getDate())),t}function getFirstWeekStartDate(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function getWeekBasedYear(r){var e=__addDays(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),o=getFirstWeekStartDate(t),i=getFirstWeekStartDate(n);return 0>=compareByDay(o,e)?0>=compareByDay(i,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var l={"%a":function(r){return c[r.tm_wday].substring(0,3)},"%A":function(r){return c[r.tm_wday]},"%b":function(r){return f[r.tm_mon].substring(0,3)},"%B":function(r){return f[r.tm_mon]},"%C":function(r){return leadingNulls((r.tm_year+1900)/100|0,2)},"%d":function(r){return leadingNulls(r.tm_mday,2)},"%e":function(r){return leadingSomething(r.tm_mday,2," ")},"%g":function(r){return getWeekBasedYear(r).toString().substring(2)},"%G":function(r){return getWeekBasedYear(r)},"%H":function(r){return leadingNulls(r.tm_hour,2)},"%I":function(r){var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),leadingNulls(e,2)},"%j":function(r){return leadingNulls(r.tm_mday+__arraySum(__isLeapYear(r.tm_year+1900)?ra:ru,r.tm_mon-1),3)},"%m":function(r){return leadingNulls(r.tm_mon+1,2)},"%M":function(r){return leadingNulls(r.tm_min,2)},"%n":function(){return"\n"},"%p":function(r){return r.tm_hour>=0&&r.tm_hour<12?"AM":"PM"},"%S":function(r){return leadingNulls(r.tm_sec,2)},"%t":function(){return"	"},"%u":function(r){return r.tm_wday||7},"%U":function(r){var e=new Date(r.tm_year+1900,0,1),t=0===e.getDay()?e:__addDays(e,7-e.getDay()),n=new Date(r.tm_year+1900,r.tm_mon,r.tm_mday);if(0>compareByDay(t,n)){var o=__arraySum(__isLeapYear(n.getFullYear())?ra:ru,n.getMonth()-1)-31;return leadingNulls(Math.ceil((31-t.getDate()+o+n.getDate())/7),2)}return 0===compareByDay(t,e)?"01":"00"},"%V":function(r){var e=new Date(r.tm_year+1900,0,4),t=new Date(r.tm_year+1901,0,4),n=getFirstWeekStartDate(e),o=getFirstWeekStartDate(t),i=__addDays(new Date(r.tm_year+1900,0,1),r.tm_yday);return 0>compareByDay(i,n)?"53":0>=compareByDay(o,i)?"01":leadingNulls(Math.ceil((n.getFullYear()<r.tm_year+1900?r.tm_yday+32-n.getDate():r.tm_yday+1-n.getDate())/7),2)},"%w":function(r){return r.tm_wday},"%W":function(r){var e=new Date(r.tm_year,0,1),t=1===e.getDay()?e:__addDays(e,0===e.getDay()?1:7-e.getDay()+1),n=new Date(r.tm_year+1900,r.tm_mon,r.tm_mday);if(0>compareByDay(t,n)){var o=__arraySum(__isLeapYear(n.getFullYear())?ra:ru,n.getMonth()-1)-31;return leadingNulls(Math.ceil((31-t.getDate()+o+n.getDate())/7),2)}return 0===compareByDay(t,e)?"01":"00"},"%y":function(r){return(r.tm_year+1900).toString().substring(2)},"%Y":function(r){return r.tm_year+1900},"%z":function(r){var e=r.tm_gmtoff;return(e>
1=0?"+":"-")+String("0000"+(e=(e=Math.abs(e)/60)/60*100+e%60)).slice(-4)},"%Z":function(r){return r.tm_zone},"%%":function(){return"%"}};for(var s in l)a.includes(s)&&(a=a.replace(RegExp(s,"g"),l[s](i)));var m=intArrayFromString(a,!1);return m.length>e?0:(d.set(m,r),m.length-1)}(r,e,t,n)}};(function(){var e={a:rs};function receiveInstance(e,t){var n,o=e.exports;r.asm=o,updateGlobalBufferAndViews((f=r.asm.C).buffer),E=r.asm.E,n=r.asm.D,U.unshift(n),removeRunDependency("wasm-instantiate")}function receiveInstantiationResult(r){receiveInstance(r.instance)}function instantiateArrayBuffer(r){return(c||"function"!=typeof fetch?Promise.resolve().then(function(){return getBinary(_)}):fetch(_,{credentials:"same-origin"}).then(function(r){if(!r.ok)throw"failed to load wasm binary file at '"+_+"'";return r.arrayBuffer()}).catch(function(){return getBinary(_)})).then(function(r){return WebAssembly.instantiate(r,e)}).then(function(r){return r}).then(r,function(r){R("failed to asynchronously prepare wasm: "+r),abort(r)})}if(addRunDependency("wasm-instantiate"),r.instantiateWasm)try{return r.instantiateWasm(e,receiveInstance)}catch(r){return R("Module.instantiateWasm callback failed with error: "+r),!1}(c||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(_)||"function"!=typeof fetch?instantiateArrayBuffer(receiveInstantiationResult):fetch(_,{credentials:"same-origin"}).then(function(r){return WebAssembly.instantiateStreaming(r,e).then(receiveInstantiationResult,function(r){return R("wasm streaming compile failed: "+r),R("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(receiveInstantiationResult)})})).catch(o)})(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.D).apply(null,arguments)};var rc=r.___getTypeName=function(){return(rc=r.___getTypeName=r.asm.F).apply(null,arguments)},rf=(r.___embind_register_native_and_builtin_types=function(){return(r.___embind_register_native_and_builtin_types=r.asm.G).apply(null,arguments)},r._malloc=function(){return(rf=r._malloc=r.asm.H).apply(null,arguments)}),rl=r.stackSave=function(){return(rl=r.stackSave=r.asm.I).apply(null,arguments)},rd=r.stackRestore=function(){return(rd=r.stackRestore=r.asm.J).apply(null,arguments)},rm=r.stackAlloc=function(){return(rm=r.stackAlloc=r.asm.K).apply(null,arguments)},rp=r._free=function(){return(rp=r._free=r.asm.L).apply(null,arguments)};function run(e){e=e||D,!(W>0)&&(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;){var e;e=r.preRun.shift(),N.unshift(e)}callRuntimeCallbacks(N)}(),W>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),doRun()},1)):doRun()));function doRun(){!T&&(T=!0,r.calledRun=!0,M||(r.noFSInit||ro.init.initialized||ro.init(),ro.ignorePermissions=!1,rt.init(),callRuntimeCallbacks(U),t(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;){var e;e=r.postRun.shift(),x.unshift(e)}callRuntimeCallbacks(x)}()))}}if(r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.M).apply(null,arguments)},r.dynCall_iiiiij=function(){return(r.dynCall_iiiiij=r.asm.N).apply(null,arguments)},r.dynCall_iiiiijj=function(){return(r.dynCall_iiiiijj=r.asm.O).apply(null,arguments)},r.dynCall_iiiiiijj=function(){return(r.dynCall_iiiiiijj=r.asm.P).apply(null,arguments)},r.dynCall_viijii=function(){return(r.dynCall_viijii=r.asm.Q).apply(null,arguments)},r.ccall=function(e,t,n,o,i){var a,u,s={string:function(r){var e=0;if(null!=r&&0!==r){var t,n=(r.length<<2)+1;t=e=rm(n),stringToUTF8Array(r,m,t,n)}return e},array:function(r){var e=rm(r.length);return d.set(r,e),e}},c=(assert(a=r["_"+e],"Cannot call unknown function "+e+", make sure it is exported"),a),f=[],l=0;if(o)for(var p=0;p<o.length;p++){var h=s[n[p]];h?(0===l&&(l=rl()),f[p]=h(o[p])):f[p]=o[p]}var g=c.apply(null,f);return u=g,0!==l&&rd(l),g="string"===t?UTF8ToString(u):"boolean"===t?!!u:u},O=function runCaller(){T||run(),T||(O=runCaller)},r.run=run,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return run(),r.ready});e.default=o}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.