1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4070],{94070:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});let n=async function(e={}){var r,t,n,o,a,i,s,l,u,d,c,f,m,h,p,v,w,g,y,E,k,b,_,T,F,P,A,D="./this.program",S=(e,r)=>{throw r},x="",C="";"undefined"!=typeof document&&document.currentScript&&(x=document.currentScript.src),0!==x.indexOf("blob:")&&(C=x.substr(0,x.replace(/[?#].*/,"").lastIndexOf("/")+1)),r=async e=>{var r=await fetch(e,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw Error(r.status+" : "+r.url)};var M=console.log.bind(console),N=console.error.bind(console),R=!1,z=!1;function B(){var r=F.buffer;e.HEAP8=c=new Int8Array(r),e.HEAP16=l=new Int16Array(r),e.HEAPU8=w=new Uint8Array(r),e.HEAPU16=h=new Uint16Array(r),e.HEAP32=u=new Int32Array(r),e.HEAPU32=p=new Uint32Array(r),e.HEAPF32=f=new Float32Array(r),e.HEAPF64=m=new Float64Array(r),d=new BigInt64Array(r),v=new BigUint64Array(r)}function W(r){e.onAbort?.(r),r=`Aborted(${r})`,N(r),R=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw i?.(t),t}async function I(e){if(!n)try{var o=await r(e);return new Uint8Array(o)}catch{}if(e==s&&n)return new Uint8Array(n);if(t)return t(e);throw"both async and sync fetching of the wasm failed"}async function j(e,r){try{var t=await I(e);return await WebAssembly.instantiate(t,r)}catch(e){N(`failed to asynchronously prepare wasm: ${e}`),W(e)}}async function $(e,r,t){if(!e)try{var n=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(e){N(`wasm streaming compile failed: ${e}`),N("falling back to ArrayBuffer instantiation")}return j(r,t)}async function O(){function r(r,t){var n;return g=(n=A=r.exports).E,y=n.G,E=e._malloc=n.H,k=e._free=n.I,b=n.J,_=n.K,T=n.L,F=n.C,P=n.F,B(),A}var t,o={a:e9};return e.instantiateWasm?new Promise((t,n)=>{e.instantiateWasm(o,(e,n)=>{t(r(e,n))})}):(s??=(t="boolean.wasm",e.locateFile?e.locateFile(t,C):C+t),r((await $(n,s,o)).instance))}class L{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var U=r=>{for(;r.length>0;)r.shift()(e)},H=[],V=e=>H.push(e),q=[],X=e=>q.push(e),G=!0,K=()=>T();class Y{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){p[this.ptr+4>>2]=e}get_type(){return p[this.ptr+4>>2]}set_destructor(e){p[this.ptr+8>>2]=e}get_destructor(){return p[this.ptr+8>>2]}set_caught(e){e=+!!e,c[this.ptr+12]=e}get_caught(){return 0!=c[this.ptr+12]}set_rethrown(e){e=+!!e,c[this.ptr+13]=e}get_rethrown(){return 0!=c[this.ptr+13]}init(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)}set_adjusted_ptr(e){p[this.ptr+16>>2]=e}get_adjusted_ptr(){return p[this.ptr+16>>2]}}var J=0,Q={},Z=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function ee(e){return this.fromWireType(p[e>>2])}var er={},et={},en={},eo=class extends Error{constructor(e){super(e),this.name="InternalError"}},ea=e=>{throw new eo(e)},ei=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&ea("Mismatched type converter count");for(var o=0;o<e.length;++o)ed(e[o],n[o])}e.forEach(e=>en[e]=r);var o=Array(r.length),a=[],i=0;for(let[e,t]of r.entries())et.hasOwnProperty(t)?o[e]=et[t]:(a.push(t),er.hasOwnProperty(t)||(er[t]=[]),er[t].push(()=>{o[e]=et[t],++i===a.length&&n(o)}));0===a.length&&n(o)},es=e=>{for(var r="";;){var t=w[e++];if(!t)return r;r+=String.fromCharCode(t)}},el=class extends Error{constructor(e){super(e),this.name="BindingError"}},eu=e=>{throw new el(e)};function ed(e,r,t={}){return function(e,r,t={}){var n=r.name;if(e||eu(`type "${n}" must have a positive integer typeid pointer`),et.hasOwnProperty(e))if(t.ignoreDuplicateRegistrations)return;else eu(`Cannot register type '${n}' twice`);if(et[e]=r,delete en[e],er.hasOwnProperty(e)){var o=er[e];delete er[e],o.forEach(e=>e())}}(e,r,t)}var ec=(e,r,t)=>{switch(r){case 1:return t?e=>c[e]:e=>w[e];case 2:return t?e=>l[e>>1]:e=>h[e>>1];case 4:return t?e=>u[e>>2]:e=>p[e>>2];case 8:return t?e=>d[e>>3]:e=>v[e>>3];default:throw TypeError(`invalid integer width (${r}): ${e}`)}},ef=[],em=[0,1,,1,null,1,!0,1,!1,1],eh={name:"emscripten::val",fromWireType:e=>{let r;var t=((r=e)||eu(`Cannot use deleted val. handle = ${r}`),em[r]);return e>9&&0==--em[e+1]&&(em[e],em[e]=void 0,ef.push(e)),t},toWireType:(e,r)=>(e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let r=ef.pop()||em.length;return em[r]=e,em[r+1]=1,r}}})(r),readValueFromPointer:ee,destructorFunction:null},ep=(r,t,n)=>{if(e.hasOwnProperty(r)){(void 0===n||void 0!==e[r].overloadTable&&void 0!==e[r].overloadTable[n])&&eu(`Cannot register public name '${r}' twice`);if(void 0===e[r].overloadTable){var o=e[r];e[r]=function(...t){return e[r].overloadTable.hasOwnProperty(t.length)||eu(`Function '${r}
1' called with an invalid number of arguments (${t.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[t.length].apply(this,t)},e[r].overloadTable=[],e[r].overloadTable[o.argCount]=o}e[r].overloadTable.hasOwnProperty(n)&&eu(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),e[r].overloadTable[n]=t}else e[r]=t,e[r].argCount=n},ev=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(c[e])}:function(e){return this.fromWireType(w[e])};case 2:return t?function(e){return this.fromWireType(l[e>>1])}:function(e){return this.fromWireType(h[e>>1])};case 4:return t?function(e){return this.fromWireType(u[e>>2])}:function(e){return this.fromWireType(p[e>>2])};default:throw TypeError(`invalid integer width (${r}): ${e}`)}},ew=(e,r)=>Object.defineProperty(r,"name",{value:e}),eg=e=>{var r=g(e),t=es(r);return k(r),t},ey=[],eE=(e,r,t=!1)=>{e=es(e);var n,o=((n=ey[r])||(ey[r]=n=P.get(r)),n);return"function"!=typeof o&&eu(`unknown function pointer with signature ${e}: ${r}`),o};class ek extends Error{}var eb=(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.codePointAt(i);if(s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s,i++}}return r[t]=0,t-o},e_=(e,r,t)=>eb(e,w,r,t),eT=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},eF=globalThis.TextDecoder&&new TextDecoder,eP=(e,r,t,n)=>{var o=r+t;if(n)return o;for(;e[r]&&!(r>=o);)++r;return r},eA=(e,r=0,t,n)=>{var o=eP(e,r,t,n);if(o-r>16&&e.buffer&&eF)return eF.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(!(128&i)){a+=String.fromCharCode(i);continue}var s=63&e[r++];if((224&i)==192){a+=String.fromCharCode((31&i)<<6|s);continue}var l=63&e[r++];if((i=(240&i)==224?(15&i)<<12|s<<6|l:(7&i)<<18|s<<12|l<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var u=i-65536;a+=String.fromCharCode(55296|u>>10,56320|1023&u)}}return a},eD=(e,r,t)=>e?eA(w,e,r,t):"",eS=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,ex=(e,r,t)=>{var n=e>>1,o=eP(h,n,r/2,t);if(o-n>16&&eS)return eS.decode(h.subarray(n,o));for(var a="",i=n;i<o;++i)a+=String.fromCharCode(h[i]);return a},eC=(e,r,t)=>{if((t??=0x7fffffff)<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);l[r>>1]=i,r+=2}return l[r>>1]=0,r-n},eM=e=>2*e.length,eN=(e,r,t)=>{for(var n="",o=e>>2,a=0;!(a>=r/4);a++){var i=p[o+a];if(!i&&!t)break;n+=String.fromCodePoint(i)}return n},eR=(e,r,t)=>{if((t??=0x7fffffff)<4)return 0;for(var n=r,o=n+t-4,a=0;a<e.length;++a){var i=e.codePointAt(a);if(i>65535&&a++,u[r>>2]=i,(r+=4)+4>o)break}return u[r>>2]=0,r-n},ez=e=>{for(var r=0,t=0;t<e.length;++t)e.codePointAt(t)>65535&&t++,r+=4;return r},eB=0,eW={},eI=e=>{if(e instanceof L||"unwind"==e)return o;S(1,e)},ej=r=>{o=r,G||eB>0||(e.onExit?.(r),R=!0),S(r,new L(r))},e$=(e,r)=>Math.ceil(e/r)*r,eO=e=>{var r=F.buffer.byteLength;try{return F.grow((e-r+65535)/65536|0),B(),1}catch(e){}},eL={},eU=()=>{if(!eU.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",_:D||"./this.program"};for(var r in eL)void 0===eL[r]?delete e[r]:e[r]=eL[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);eU.strings=t}return eU.strings},eH={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=eH.isAbs(e),t="/"===e.slice(-1);return(e=eH.normalizeArray(e.split("/").filter(e=>!!e),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=eH.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.slice(0,-1)),t+n):"."},basename:e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],join:(...e)=>eH.normalize(e.join("/")),join2:(e,r)=>eH.normalize(e+"/"+r)},eV=e=>(eV=e=>(crypto.getRandomValues(e),0))(e),eq={resolve:(...e)=>
vendor: 5,533 bytes, line 1
1{for(var r="",t=!1,n=e.length-1;n>=-1&&!t;n--){var o=n>=0?e[n]:e5.cwd();if("string"!=typeof o)throw TypeError("Arguments to path.resolve must be strings");if(!o)return"";r=o+"/"+r,t=eH.isAbs(o)}return r=eH.normalizeArray(r.split("/").filter(e=>!!e),!t).join("/"),(t?"/":"")+r||"."},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=eq.resolve(e).slice(1),r=eq.resolve(r).slice(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}for(var l=[],s=i;s<n.length;s++)l.push("..");return(l=l.concat(o.slice(i))).join("/")}},eX=[],eG=(e,r,t)=>{var n=Array(t>0?t:eT(e)+1),o=eb(e,n,0,n.length);return r&&(n.length=o),n},eK={ttys:[],init(){},shutdown(){},register(e,r){eK.ttys[e]={input:[],output:[],ops:r},e5.registerDevice(e,eK.stream_ops)},stream_ops:{open(e){var r=eK.ttys[e.node.rdev];if(!r)throw new e5.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new e5.ErrnoError(60);for(var a,i=0,s=0;s<n;s++){try{a=e.tty.ops.get_char(e.tty)}catch(e){throw new e5.ErrnoError(29)}if(void 0===a&&0===i)throw new e5.ErrnoError(6);if(null==a)break;i++,r[t+s]=a}return i&&(e.node.atime=Date.now()),i},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new e5.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(e){throw new e5.ErrnoError(29)}return n&&(e.node.mtime=e.node.ctime=Date.now()),a}},default_tty_ops:{get_char:e=>(()=>{if(!eX.length){var e=null;if(globalThis.window?.prompt&&null!==(e=window.prompt("Input: "))&&(e+="\n"),!e)return null;eX=eG(e,!0)}return eX.shift()})(),put_char(e,r){null===r||10===r?(M(eA(e.output)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output?.length>0&&(M(eA(e.output)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(N(eA(e.output)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output?.length>0&&(N(eA(e.output)),e.output=[])}}},eY=e=>{W()},eJ={ops_table:null,mount:e=>eJ.createNode(null,"/",16895,0),createNode(e,r,t,n){if(e5.isBlkdev(t)||e5.isFIFO(t))throw new e5.ErrnoError(63);eJ.ops_table||={dir:{node:{getattr:eJ.node_ops.getattr,setattr:eJ.node_ops.setattr,lookup:eJ.node_ops.lookup,mknod:eJ.node_ops.mknod,rename:eJ.node_ops.rename,unlink:eJ.node_ops.unlink,rmdir:eJ.node_ops.rmdir,readdir:eJ.node_ops.readdir,symlink:eJ.node_ops.symlink},stream:{llseek:eJ.stream_ops.llseek}},file:{node:{getattr:eJ.node_ops.getattr,setattr:eJ.node_ops.setattr},stream:{llseek:eJ.stream_ops.llseek,read:eJ.stream_ops.read,write:eJ.stream_ops.write,mmap:eJ.stream_ops.mmap,msync:eJ.stream_ops.msync}},link:{node:{getattr:eJ.node_ops.getattr,setattr:eJ.node_ops.setattr,readlink:eJ.node_ops.readlink},stream:{}},chrdev:{node:{getattr:eJ.node_ops.getattr,setattr:eJ.node_ops.setattr},stream:e5.chrdev_stream_ops}};var o=e5.createNode(e,r,t,n);return e5.isDir(o.mode)?(o.node_ops=eJ.ops_table.dir.node,o.stream_ops=eJ.ops_table.dir.stream,o.contents={}):e5.isFile(o.mode)?(o.node_ops=eJ.ops_table.file.node,o.stream_ops=eJ.ops_table.file.stream,o.usedBytes=0,o.contents=eJ.emptyFileContents??=new Uint8Array(0)):e5.isLink(o.mode)?(o.node_ops=eJ.ops_table.link.node,o.stream_ops=eJ.ops_table.link.stream):e5.isChrdev(o.mode)&&(o.node_ops=eJ.ops_table.chrdev.node,o.stream_ops=eJ.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),e&&(e.contents[r]=o,e.atime=e.mtime=e.ctime=o.atime),o},getFileDataAsTypedArray:e=>e.contents.subarray(0,e.usedBytes),expandFileStorage(e,r){var t=e.contents.length;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),t&&(r=Math.max(r,256));var n=eJ.getFileDataAsTypedArray(e);e.contents=new Uint8Array(r),e.contents.set(n)}},resizeFileStorage(e,r){if(e.usedBytes!=r){var t=e.contents;e.contents=new Uint8Array(r),e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=e5.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,e5.isDir(e.mode)?r.size=4096:e5.isFile(e.mode)?r.size=e.usedBytes:e5.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.atime),r.mtime=new Date(e.mtime),r.ctime=new Date(e.ctime),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){for(let t of["mode","atime","mtime","ctime"])null!=r[t]&&(e[t]=r[t]);void 0!==r.size&&eJ.resizeFileStorage(e,r.size)},lookup(e,r){throw eJ.doesNotExistError||(eJ.doesNotExistError=new e5.ErrnoError(44),eJ.doesNotExistError.stack="<generic error, no stack>"),eJ.doesNotExistError},mknod:(e,r,t,n)=>eJ.createNode(e,r,t,n),rename(e,r,t){var n;try{n=e5.lookupNode(r,t)}catch(e){}if(n){if(e5.isDir(e.mode))for(var o in n.contents)throw new e5.ErrnoError(55);e5.hashRemoveNode(n)}delete e.parent.contents[e.name],r.contents[t]=e,e.name=t,r.ctime=r.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,r){delete e.contents[r],e.ctime=e.mtime=Date.now()},rmdir(e,r){var t=e5.lookupNode(e,r);for(var n in t.contents)throw new e5.ErrnoError(55);delete e.contents[r],e.ctime=e.mtime=Date.now()},readdir:e=>[".","..",...Object.keys(e.contents)],symlink(e,r,t){var n=eJ.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!e5.isLink(e.mode))throw new e5.ErrnoError(28);return e.link}}
1,stream_ops:{read(e,r,t,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);return r.set(a.subarray(o,o+i),t),i},write(e,r,t,n,o,a){if(r.buffer===c.buffer&&(a=!1),!n)return 0;var i=e.node;return i.mtime=i.ctime=Date.now(),a?(i.contents=r.subarray(t,t+n),i.usedBytes=n):0===i.usedBytes&&0===o?(i.contents=r.slice(t,t+n),i.usedBytes=n):(eJ.expandFileStorage(i,o+n),i.contents.set(r.subarray(t,t+n),o),i.usedBytes=Math.max(i.usedBytes,o+n)),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&e5.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new e5.ErrnoError(28);return n},mmap(e,r,t,n,o){if(!e5.isFile(e.node.mode))throw new e5.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==c.buffer){if(i=!0,!(a=eY(r)))throw new e5.ErrnoError(48);s&&((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),c.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>(eJ.stream_ops.write(e,r,0,n,t,!1),0)}},eQ=e=>("string"==typeof e&&(e=eG(e,!0)),e.subarray||(e=new Uint8Array(e)),e),eZ=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},e0=async e=>new Uint8Array(await r(e)),e1=0,e2=null,e4=[],e6=async(e,r)=>{for(var t of("undefined"!=typeof Browser&&Browser.init(),e4))if(t.canHandle(r))return t.handle(e,r);return e},e3=async(r,t,n,o,a,i,s,l)=>{var u=t?eq.resolve(eH.join2(r,t)):r;e1++,e.monitorRunDependencies?.(e1);try{var d=n;"string"==typeof n&&(d=await e0(n)),d=await e6(d,u),l?.(),i||((...e)=>e5.createDataFile(...e))(r,t,d,o,a,s)}finally{if(e1--,e.monitorRunDependencies?.(e1),0==e1&&e2){var c=e2;e2=null,c()}}},e5={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,ErrnoError:class{name="ErrnoError";constructor(e){this.errno=e}},FSStream:class{shared={};get object(){return this.node}set object(e){this.node=e}get isRead(){return(2097155&this.flags)!=1}get isWrite(){return(2097155&this.flags)!=0}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.id=e5.nextInode++,this.name=r,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return e5.isDir(this.mode)}get isDevice(){return e5.isChrdev(this.mode)}},lookupPath(e,r={}){if(!e)throw new e5.ErrnoError(44);r.follow_mount??=!0,eH.isAbs(e)||(e=e5.cwd()+"/"+e);e:for(var t=0;t<40;t++){for(var n=e.split("/").filter(e=>!!e),o=e5.root,a="/",i=0;i<n.length;i++){var s=i===n.length-1;if(s&&r.parent)break;if("."!==n[i]){if(".."===n[i]){if(a=eH.dirname(a),e5.isRoot(o)){e=a+"/"+n.slice(i+1).join("/"),t--;continue e}o=o.parent;continue}a=eH.join2(a,n[i]);try{o=e5.lookupNode(o,n[i])}catch(e){if(e?.errno===44&&s&&r.noent_okay)return{path:a};throw e}if(e5.isMountpoint(o)&&(!s||r.follow_mount)&&(o=o.mounted.root),e5.isLink(o.mode)&&(!s||r.follow)){if(!o.node_ops.readlink)throw new e5.ErrnoError(52);var l=o.node_ops.readlink(o);eH.isAbs(l)||(l=eH.dirname(a)+"/"+l),e=l+"/"+n.slice(i+1).join("/");continue e}}}return{path:a,node:o}}throw new e5.ErrnoError(32)},getPath(e){for(var r;;){if(e5.isRoot(e)){var t=e.mount.mountpoint;if(!r)return t;return"/"!==t[t.length-1]?`${t}/${r}`:t+r}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)%e5.nameTable.length},hashAddNode(e){var r=e5.hashName(e.parent.id,e.name);e.name_next=e5.nameTable[r],e5.nameTable[r]=e},hashRemoveNode(e){var r=e5.hashName(e.parent.id,e.name);if(e5.nameTable[r]===e)e5.nameTable[r]=e.name_next;else for(var t=e5.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=e5.mayLookup(e);if(t)throw new e5.ErrnoError(t);for(var n=e5.hashName(e.id,r),o=e5.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return e5.lookup(e,r)},createNode(e,r,t,n){var o=new e5.FSNode(e,r,t,n);return e5.hashAddNode(o),o},destroyNode(e){e5.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>(61440&e)==32768,isDir:e=>(61440&e)==16384,isLink:e=>(61440&e)==40960,isChrdev:e=>(61440&e)==8192,isBlkdev:e=>(61440&e)==24576,isFIFO:e=>(61440&e)==4096,isSocket:e=>(49152&e)==49152,flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>e5.ignorePermissions?0:r.includes("r")&&!(292&e.mode)||r.includes("w")&&!(146&e.mode)||r.includes("x")&&!(73&e.mode)?2:0,mayLookup(e){if(!e5.isDir(e.mode))return 54;var r=e5.nodePermissions(e,"x");return r||2*!e.node_ops.lookup},mayCreate(e,r){if(!e5.isDir(e.mode))return 54;try{return e5.lookupNode(e,r),20}catch(e){}return e5.nodePermissions(e,"wx")},mayDelete(e,r,t){try{n=e5.lookupNode(e,r)}catch(e){return e.errno}var n,o=e5.nodePermissions(e,"wx");if(o)return o;if(t){if(!e5.isDir(n.mode))return 54;if(e5.isRoot(n)||e5.getPath(n)===e5.cwd())return 10}else if(e5.isDir(n.mode))return 31;return 0},mayOpen(e,r){if(!e)return 44;if(e5.isLink(e.mode))return 32;var t=e5.flagsToPermissionString(r);return e5.isDir(e.mode)&&("r"!==t||576&r)?31:e5.nodePermissions(e,t)},checkOpExists(e,r){if(!e)throw new e5.ErrnoError(r);return e},MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=e5.MAX_OPEN_FDS;e++)if(!e5.streams[e])return e;throw new e5.ErrnoError(33)},getStreamChecked(e){var r=e5.getStream(e);if(!r)throw new e5.ErrnoError(8);return r}
vendor: 4,483 bytes, line 1
1,getStream:e=>e5.streams[e],createStream:(e,r=-1)=>(e=Object.assign(new e5.FSStream,e),-1==r&&(r=e5.nextfd()),e.fd=r,e5.streams[r]=e,e),closeStream(e){e5.streams[e]=null},dupStream(e,r=-1){var t=e5.createStream(e,r);return t.stream_ops?.dup?.(t),t},doSetAttr(e,r,t){var n=e?.stream_ops.setattr,o=n?e:r;n??=r.node_ops.setattr,e5.checkOpExists(n,63),n(o,t)},chrdev_stream_ops:{open(e){var r=e5.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open?.(e)},llseek(){throw new e5.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){e5.devices[e]={stream_ops:r}},getDevice:e=>e5.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push(...n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),e5.syncFSRequests++,e5.syncFSRequests>1&&N(`warning: ${e5.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=e5.getMounts(e5.root.mount),n=0;function o(e){return e5.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}for(var i of t)i.type.syncfs?i.type.syncfs(i,e,a):a(null)},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&e5.root)throw new e5.ErrnoError(10);if(!o&&!a){var i=e5.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,e5.isMountpoint(n))throw new e5.ErrnoError(10);if(!e5.isDir(n.mode))throw new e5.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},l=e.mount(s);return l.mount=s,s.root=l,o?e5.root=l:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),l},unmount(e){var r=e5.lookupPath(e,{follow_mount:!1});if(!e5.isMountpoint(r.node))throw new e5.ErrnoError(28);var t=r.node,n=t.mounted,o=e5.getMounts(n);for(var[a,i]of Object.entries(e5.nameTable))for(;i;){var s=i.name_next;o.includes(i.mount)&&e5.destroyNode(i),i=s}t.mounted=null;var l=t.mount.mounts.indexOf(n);t.mount.mounts.splice(l,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=e5.lookupPath(e,{parent:!0}).node,o=eH.basename(e);if(!o)throw new e5.ErrnoError(28);if("."===o||".."===o)throw new e5.ErrnoError(20);var a=e5.mayCreate(n,o);if(a)throw new e5.ErrnoError(a);if(!n.node_ops.mknod)throw new e5.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},statfs:e=>e5.statfsNode(e5.lookupPath(e,{follow:!0}).node),statfsStream:e=>e5.statfsNode(e.node),statfsNode(e){var r={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:e5.nextInode,ffree:e5.nextInode-1,fsid:42,flags:2,namelen:255};return e.node_ops.statfs&&Object.assign(r,e.node_ops.statfs(e.mount.opts.root)),r},create:(e,r=438)=>(r&=4095,r|=32768,e5.mknod(e,r,0)),mkdir:(e,r=511)=>(r&=1023,r|=16384,e5.mknod(e,r,0)),mkdirTree(e,r){var t=e.split("/"),n="";for(var o of t)if(o){(n||eH.isAbs(e))&&(n+="/"),n+=o;try{e5.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,e5.mknod(e,r,t)),symlink(e,r){if(!eq.resolve(e))throw new e5.ErrnoError(44);var t=e5.lookupPath(r,{parent:!0}).node;if(!t)throw new e5.ErrnoError(44);var n=eH.basename(r),o=e5.mayCreate(t,n);if(o)throw new e5.ErrnoError(o);if(!t.node_ops.symlink)throw new e5.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o,a=eH.dirname(e),i=eH.dirname(r),s=eH.basename(e),l=eH.basename(r);if(t=e5.lookupPath(e,{parent:!0}).node,n=e5.lookupPath(r,{parent:!0}).node,!t||!n)throw new e5.ErrnoError(44);if(t.mount!==n.mount)throw new e5.ErrnoError(75);var u=e5.lookupNode(t,s),d=eq.relative(e,i);if("."!==d.charAt(0))throw new e5.ErrnoError(28);if("."!==(d=eq.relative(r,a)).charAt(0))throw new e5.ErrnoError(55);try{o=e5.lookupNode(n,l)}catch(e){}if(u!==o){var c=e5.isDir(u.mode),f=e5.mayDelete(t,s,c);if(f||(f=o?e5.mayDelete(n,l,c):e5.mayCreate(n,l)))throw new e5.ErrnoError(f);if(!t.node_ops.rename)throw new e5.ErrnoError(63);if(e5.isMountpoint(u)||o&&e5.isMountpoint(o))throw new e5.ErrnoError(10);if(n!==t&&(f=e5.nodePermissions(t,"w")))throw new e5.ErrnoError(f);e5.hashRemoveNode(u);try{t.node_ops.rename(u,n,l),u.parent=n}catch(e){throw e}finally{e5.hashAddNode(u)}}},rmdir(e){var r=e5.lookupPath(e,{parent:!0}).node,t=eH.basename(e),n=e5.lookupNode(r,t),o=e5.mayDelete(r,t,!0);if(o)throw new e5.ErrnoError(o);if(!r.node_ops.rmdir)throw new e5.ErrnoError(63);if(e5.isMountpoint(n))throw new e5.ErrnoError(10);r.node_ops.rmdir(r,t),e5.destroyNode(n)},readdir(e){var r=e5.lookupPath(e,{follow:!0}).node;return e5.checkOpExists(r.node_ops.readdir,54)(r)},unlink(e){var r=e5.lookupPath(e,{parent:!0}).node;if(!r)throw new e5.ErrnoError(44);
1var t=eH.basename(e),n=e5.lookupNode(r,t),o=e5.mayDelete(r,t,!1);if(o)throw new e5.ErrnoError(o);if(!r.node_ops.unlink)throw new e5.ErrnoError(63);if(e5.isMountpoint(n))throw new e5.ErrnoError(10);r.node_ops.unlink(r,t),e5.destroyNode(n)},readlink(e){var r=e5.lookupPath(e).node;if(!r)throw new e5.ErrnoError(44);if(!r.node_ops.readlink)throw new e5.ErrnoError(28);return r.node_ops.readlink(r)},stat(e,r){var t=e5.lookupPath(e,{follow:!r}).node;return e5.checkOpExists(t.node_ops.getattr,63)(t)},fstat(e){var r=e5.getStreamChecked(e),t=r.node,n=r.stream_ops.getattr,o=n?r:t;return n??=t.node_ops.getattr,e5.checkOpExists(n,63),n(o)},lstat:e=>e5.stat(e,!0),doChmod(e,r,t,n){e5.doSetAttr(e,r,{mode:4095&t|-4096&r.mode,ctime:Date.now(),dontFollow:n})},chmod(e,r,t){var n;n="string"==typeof e?e5.lookupPath(e,{follow:!t}).node:e,e5.doChmod(null,n,r,t)},lchmod(e,r){e5.chmod(e,r,!0)},fchmod(e,r){var t=e5.getStreamChecked(e);e5.doChmod(t,t.node,r,!1)},doChown(e,r,t){e5.doSetAttr(e,r,{timestamp:Date.now(),dontFollow:t})},chown(e,r,t,n){var o;o="string"==typeof e?e5.lookupPath(e,{follow:!n}).node:e,e5.doChown(null,o,n)},lchown(e,r,t){e5.chown(e,r,t,!0)},fchown(e,r,t){var n=e5.getStreamChecked(e);e5.doChown(n,n.node,!1)},doTruncate(e,r,t){if(e5.isDir(r.mode))throw new e5.ErrnoError(31);if(!e5.isFile(r.mode))throw new e5.ErrnoError(28);var n=e5.nodePermissions(r,"w");if(n)throw new e5.ErrnoError(n);e5.doSetAttr(e,r,{size:t,timestamp:Date.now()})},truncate(e,r){if(r<0)throw new e5.ErrnoError(28);if("string"==typeof e){var t;t=e5.lookupPath(e,{follow:!0}).node}else t=e;e5.doTruncate(null,t,r)},ftruncate(e,r){var t=e5.getStreamChecked(e);if(r<0||(2097155&t.flags)==0)throw new e5.ErrnoError(28);e5.doTruncate(t,t.node,r)},utime(e,r,t){var n=e5.lookupPath(e,{follow:!0}).node;e5.checkOpExists(n.node_ops.setattr,63)(n,{atime:r,mtime:t})},open(e,r,t=438){if(""===e)throw new e5.ErrnoError(44);if(t=64&(r=(e=>{if("string"!=typeof e)return e;var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw Error(`Unknown file open mode: ${e}`);return r})(r))?4095&t|32768:0,"object"==typeof e)n=e;else{var n,o=e.endsWith("/"),a=e5.lookupPath(e,{follow:!(131072&r),noent_okay:!0});n=a.node,e=a.path}var i=!1;if(64&r)if(n){if(128&r)throw new e5.ErrnoError(20)}else if(o)throw new e5.ErrnoError(31);else n=e5.mknod(e,511|t,0),i=!0;if(!n)throw new e5.ErrnoError(44);if(e5.isChrdev(n.mode)&&(r&=-513),65536&r&&!e5.isDir(n.mode))throw new e5.ErrnoError(54);if(!i){var s=e5.mayOpen(n,r);if(s)throw new e5.ErrnoError(s)}512&r&&!i&&e5.truncate(n,0),r&=-131713;var l=e5.createStream({node:n,path:e5.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return l.stream_ops.open&&l.stream_ops.open(l),i&&e5.chmod(n,511&t),l},close(e){if(e5.isClosed(e))throw new e5.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{e5.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(e5.isClosed(e))throw new e5.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new e5.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new e5.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 e5.ErrnoError(28);if(e5.isClosed(e)||(2097155&e.flags)==1)throw new e5.ErrnoError(8);if(e5.isDir(e.node.mode))throw new e5.ErrnoError(31);if(!e.stream_ops.read)throw new e5.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new e5.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 e5.ErrnoError(28);if(e5.isClosed(e)||(2097155&e.flags)==0)throw new e5.ErrnoError(8);if(e5.isDir(e.node.mode))throw new e5.ErrnoError(31);if(!e.stream_ops.write)throw new e5.ErrnoError(28);e.seekable&&1024&e.flags&&e5.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new e5.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},mmap(e,r,t,n,o){if((2&n)!=0&&(2&o)==0&&(2097155&e.flags)!=2||(2097155&e.flags)==1)throw new e5.ErrnoError(2);if(!e.stream_ops.mmap)throw new e5.ErrnoError(43);if(!r)throw new e5.ErrnoError(28);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,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new e5.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e,r={}){r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding&&W(`Invalid encoding type "${r.encoding}"`);var t=e5.open(e,r.flags),n=e5.stat(e).size,o=new Uint8Array(n);return e5.read(t,o,0,n,0),"utf8"===r.encoding&&(o=eA(o)),e5.close(t),o},writeFile(e,r,t={}){t.flags=t.flags||577;var n=e5.open(e,t.flags,t.mode);
vendor: 5,121 bytes, line 1
1r=eQ(r),e5.write(n,r,0,r.byteLength,void 0,t.canOwn),e5.close(n)},cwd:()=>e5.currentPath,chdir(e){var r=e5.lookupPath(e,{follow:!0});if(null===r.node)throw new e5.ErrnoError(44);if(!e5.isDir(r.node.mode))throw new e5.ErrnoError(54);var t=e5.nodePermissions(r.node,"x");if(t)throw new e5.ErrnoError(t);e5.currentPath=r.path},createDefaultDirectories(){e5.mkdir("/tmp"),e5.mkdir("/home"),e5.mkdir("/home/web_user")},createDefaultDevices(){e5.mkdir("/dev"),e5.registerDevice(e5.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n,llseek:()=>0}),e5.mkdev("/dev/null",e5.makedev(1,3)),eK.register(e5.makedev(5,0),eK.default_tty_ops),eK.register(e5.makedev(6,0),eK.default_tty1_ops),e5.mkdev("/dev/tty",e5.makedev(5,0)),e5.mkdev("/dev/tty1",e5.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(eV(e),r=e.byteLength),e[--r]);e5.createDevice("/dev","random",t),e5.createDevice("/dev","urandom",t),e5.mkdir("/dev/shm"),e5.mkdir("/dev/shm/tmp")},createSpecialDirectories(){e5.mkdir("/proc");var e=e5.mkdir("/proc/self");e5.mkdir("/proc/self/fd"),e5.mount({mount(){var r=e5.createNode(e,"fd",16895,73);return r.stream_ops={llseek:eJ.stream_ops.llseek},r.node_ops={lookup(e,r){var t=+r,n=e5.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(e5.streams.entries()).filter(([e,r])=>r).map(([e,r])=>e.toString())},r}},{},"/proc/self/fd")},createStandardStreams(e,r,t){e?e5.createDevice("/dev","stdin",e):e5.symlink("/dev/tty","/dev/stdin"),r?e5.createDevice("/dev","stdout",null,r):e5.symlink("/dev/tty","/dev/stdout"),t?e5.createDevice("/dev","stderr",null,t):e5.symlink("/dev/tty1","/dev/stderr"),e5.open("/dev/stdin",0),e5.open("/dev/stdout",1),e5.open("/dev/stderr",1)},staticInit(){e5.nameTable=Array(4096),e5.mount(eJ,{},"/"),e5.createDefaultDirectories(),e5.createDefaultDevices(),e5.createSpecialDirectories(),e5.filesystems={MEMFS:eJ}},init(r,t,n){e5.initialized=!0,r??=e.stdin,t??=e.stdout,n??=e.stderr,e5.createStandardStreams(r,t,n)},quit(){for(var e of(e5.initialized=!1,e5.streams))e&&e5.close(e)},findObject(e,r){var t=e5.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{var t=e5.lookupPath(e,{follow:!r});e=t.path}catch(e){}var n={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var t=e5.lookupPath(e,{parent:!0});n.parentExists=!0,n.parentPath=t.path,n.parentObject=t.node,n.name=eH.basename(e),t=e5.lookupPath(e,{follow:!r}),n.exists=!0,n.path=t.path,n.object=t.node,n.name=t.node.name,n.isRoot="/"===t.path}catch(e){n.error=e.errno}return n},createPath(e,r,t,n){e="string"==typeof e?e:e5.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=eH.join2(e,a);try{e5.mkdir(i)}catch(e){if(20!=e.errno)throw e}e=i}}return i},createFile(e,r,t,n,o){var a=eH.join2("string"==typeof e?e:e5.getPath(e),r),i=eZ(n,o);return e5.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:e5.getPath(e),i=r?eH.join2(e,r):e);var s=eZ(n,o),l=e5.create(i,s);if(t){t=eQ(t),e5.chmod(l,146|s);var u=e5.open(l,577);e5.write(u,t,0,t.length,0,a),e5.close(u),e5.chmod(l,s)}},createDevice(e,r,t,n){var o=eH.join2("string"==typeof e?e:e5.getPath(e),r),a=eZ(!!t,!!n);e5.createDevice.major??=64;var i=e5.makedev(e5.createDevice.major++,0);return e5.registerDevice(i,{open(e){e.seekable=!1},close(e){n?.buffer?.length&&n(10)},read(e,r,n,o,a){for(var i,s=0,l=0;l<o;l++){try{i=t()}catch(e){throw new e5.ErrnoError(29)}if(void 0===i&&0===s)throw new e5.ErrnoError(6);if(null==i)break;s++,r[n+l]=i}return s&&(e.node.atime=Date.now()),s},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(e){throw new e5.ErrnoError(29)}return o&&(e.node.mtime=e.node.ctime=Date.now()),i}}),e5.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if(globalThis.XMLHttpRequest)W("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.");else try{e.contents=t(e.url)}catch(e){throw new e5.ErrnoError(29)}},createLazyFile(e,r,t,n,o){class a{lengthKnown=!1;chunks=[];get(e){if(!(e>this.length-1)&&!(e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}}setDataGetter(e){this.getter=e}cacheLength(){var e,r=new XMLHttpRequest;r.open("HEAD",t,!1),r.send(null),r.status>=200&&r.status<300||304===r.status||W("Couldn't load "+t+". Status: "+r.status);var n=Number(r.getResponseHeader("Content-length")),o=(e=r.getResponseHeader("Accept-Ranges"))&&"bytes"===e,a=(e=r.getResponseHeader("Content-Encoding"))&&"gzip"===e,i=1048576;o||(i=n);var s=this;s.setDataGetter(e=>{var r,o,a=e*i,l=(e+1)*i-1;return l=Math.min(l,n-1),void 0===s.chunks[e]&&(s.chunks[e]=(a>(r=l)&&W("invalid range ("+a+", "+r+") or no bytes requested!"),r>n-1&&W("only "+n+" bytes available! programmer error!"),((o=new XMLHttpRequest).open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+a+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain;
1 charset=x-user-defined"),o.send(null),o.status>=200&&o.status<300||304===o.status||W("Couldn't load "+t+". Status: "+o.status),void 0!==o.response)?new Uint8Array(o.response||[]):eG(o.responseText||"",!0))),void 0===s.chunks[e]&&W("doXHR failed!"),s.chunks[e]}),(a||!n)&&(i=n=1,i=n=this.getter(0).length,M("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(globalThis.XMLHttpRequest){W("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc");var i={isDevice:!1,contents:new a}}else var i={isDevice:!1,url:t};var s=e5.createFile(e,r,i,n,o);i.contents?s.contents=i.contents:i.url&&(s.contents=null,s.url=i.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var l={};for(let[e,r]of Object.entries(s.stream_ops))l[e]=(...e)=>(e5.forceLoadFile(s),r(...e));function u(e,r,t,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)r[t+s]=a[o+s];else for(var s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return l.read=(e,r,t,n,o)=>(e5.forceLoadFile(s),u(e,r,t,n,o)),l.mmap=(e,r,t,n,o)=>{e5.forceLoadFile(s);var a=eY(r);if(!a)throw new e5.ErrnoError(48);return u(e,c,a,r,t),{ptr:a,allocated:!0}},s.stream_ops=l,s}},e8={calculateAt(e,r,t){if(eH.isAbs(r))return r;if(-100===e)n=e5.cwd();else{var n;n=e8.getStreamFromFD(e).path}if(0==r.length){if(!t)throw new e5.ErrnoError(44);return n}return n+"/"+r},writeStat(e,r){p[e>>2]=r.dev,p[e+4>>2]=r.mode,p[e+8>>2]=r.nlink,p[e+12>>2]=r.uid,p[e+16>>2]=r.gid,p[e+20>>2]=r.rdev,d[e+24>>3]=BigInt(r.size),u[e+32>>2]=4096,u[e+36>>2]=r.blocks;var t=r.atime.getTime(),n=r.mtime.getTime(),o=r.ctime.getTime();return d[e+40>>3]=BigInt(Math.floor(t/1e3)),p[e+48>>2]=t%1e3*1e6,d[e+56>>3]=BigInt(Math.floor(n/1e3)),p[e+64>>2]=n%1e3*1e6,d[e+72>>3]=BigInt(Math.floor(o/1e3)),p[e+80>>2]=o%1e3*1e6,d[e+88>>3]=BigInt(r.ino),0},writeStatFs(e,r){p[e+4>>2]=r.bsize,p[e+60>>2]=r.bsize,d[e+8>>3]=BigInt(r.blocks),d[e+16>>3]=BigInt(r.bfree),d[e+24>>3]=BigInt(r.bavail),d[e+32>>3]=BigInt(r.files),d[e+40>>3]=BigInt(r.ffree),p[e+48>>2]=r.fsid,p[e+64>>2]=r.flags,p[e+56>>2]=r.namelen},doMsync(e,r,t,n,o){if(!e5.isFile(r.node.mode))throw new e5.ErrnoError(43);if(2&n)return 0;var a=w.slice(e,e+t);e5.msync(r,a,o,t,n)},getStreamFromFD:e=>e5.getStreamChecked(e),varargs:void 0,getStr:e=>eD(e)},e7=e=>_(e);if(e5.createPreloadedFile=(e,r,t,n,o,a,i,s,l,u)=>{e3(e,r,t,n,o,s,l,u).then(a).catch(i)},e5.preloadFile=e3,e5.staticInit(),e.noExitRuntime&&(G=e.noExitRuntime),e.preloadPlugins&&(e4=e.preloadPlugins),e.print&&(M=e.print),e.printErr&&(N=e.printErr),e.wasmBinary&&(n=e.wasmBinary),e.arguments&&e.arguments,e.thisProgram&&(D=e.thisProgram),e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.shift()();e.ccall=(r,t,n,o,a)=>{var i={string:e=>{var r,t,n=0;return null!=e&&0!==e&&(t=e7(r=eT(e)+1),e_(e,t,r),n=t),n},array:e=>{var r=e7(e.length);return c.set(e,r),r}},s=e["_"+r],l=[],u=0;if(o)for(var d=0;d<o.length;d++){var f=i[n[d]];f?(0===u&&(u=K()),l[d]=f(o[d])):l[d]=o[d]}var m=s(...l);return function(e){return 0!==u&&b(u),"string"===t?eD(e):"boolean"===t?!!e:e}(m)};var e9={a:(e,r,t)=>{new Y(e).init(r,t),J++,W()},v:()=>W(""),m:e=>{var r=Q[e];delete Q[e];var t=r.elements,n=t.length,o=t.map(e=>e.getterReturnType).concat(t.map(e=>e.setterArgumentType)),a=r.rawConstructor,i=r.rawDestructor;ei([e],o,e=>{for(let[r,o]of t.entries()){let t=e[r],a=o.getter,i=o.getterContext,s=e[r+n],l=o.setter,u=o.setterContext;o.read=e=>t.fromWireType(a(i,e)),o.write=(e,r)=>{var t=[];l(u,e,s.toWireType(t,r)),Z(t)}}return[{name:r.name,fromWireType:e=>{for(var r=Array(n),o=0;o<n;++o)r[o]=t[o].read(e);return i(e),r},toWireType:(e,o)=>{if(n!==o.length)throw TypeError(`Incorrect number of tuple elements for ${r.name}: expected=${n}, actual=${o.length}`);for(var s=a(),l=0;l<n;++l)t[l].write(s,o[l]);return null!==e&&e.push(i,s),s},readValueFromPointer:ee,destructorFunction:i}]})},i:(e,r,t,n,o)=>{r=es(r);let a=0n===n,i=e=>e;if(a){let e=8*t;o=(i=r=>BigInt.asUintN(e,r))(o)}ed(e,{name:r,fromWireType:i,toWireType:(e,r)=>("number"==typeof r&&(r=BigInt(r)),r),readValueFromPointer:ec(r,t,!a),destructorFunction:null})},k:(e,r,t,n)=>{ed(e,{name:r=es(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},readValueFromPointer:function(e){return this.fromWireType(w[e])},destructorFunction:null})},A:e=>ed(e,eh),B:(r,t,n,o,a)=>{t=es(t);let i=0===a?"object":1===a?"number":"string";switch(i){case"object":function s(){}s.values={},ed(r,{name:t,constructor:s,valueType:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,readValueFromPointer:ev(t,n,o),destructorFunction:null}),ep(t,s);break;case"number":var l={};ed(r,{name:t,keysMap:l,valueType:i,fromWireType:e=>e,toWireType:(e,r)=>r,readValueFromPointer:ev(t,n,o),destructorFunction:null}),ep(t,l),delete e[t].argCount;break;case"string":var l={};ed(r,{name:t,valuesMap:{},reverseMap:{},keysMap:l,valueType:i,fromWireType:function(e){return this.reverseMap[e]},toWireType:function(e,r){return this.valuesMap[r]},readValueFromPointer:ev(t,n,o),destructorFunction:null}),ep(t,l),delete e[t].argCount}},f:(e,r,t)=>{var n,o=(void 0===(n=et[e])&&eu(`enum has unknown type ${eg(e)}`),n);switch(r=es(r),o.valueType){case"object":var a=o.constructor,i=Object.create(o.constructor.prototype,{value:{value:t},constructor:{value:ew(`${o.name}_${r}`,function(){})}});a.values[t]=i,a[r]=i;break;case"number":o.keysMap[r]=t;break;case"string":o.valuesMap[r]=t,o.reverseMap[t]=r,o.keysMap[r]=r}},h:(e,r,t)=>{ed(e,{name:r=es(r),fromWireType:e=>e,toWireType:(e,r)=>r,readValueFromPointer:((e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(f[e>>2])};case 8:return function(e){return this.fromWireType(m[e>>3])};default:throw TypeError(`invalid float width (${r}): ${e}`)}})(r,t),destructorFunction:null})},d:(r,t,n,o,a,i,s,l)=>{var u=((e,r)=>{for(var t=[],n=0;n<e;n++)t.push(p[r+4*n>>2]);return t})(t,n);r=(e=>{let r=(e=e.trim()).indexOf("(");return -1===r?e:e.slice(0,r)})(r=es(r)),a=eE(o,a,s),ep(r,function(){var e=`Cannot call ${r} due to unbound types`,t=[],n={};throw u.forEach(function e(r){if(!n[r]&&!et[r]){if(en[r])return void en[r].forEach(e);t.push(r),n[r]=!0}}),new ek(`${e}: `+t.map(eg).join([", "]))},t-1),ei([],u,n=>{var o,s,l,u,d,c,f,m,h,p,v,w,g,y=[n[0],null].concat(n.slice(1));return v=r,o=r,s=a,(l=y.length)<2&&eu("argTypes array size mismatch! Must at least get return value and 'this' types!"),u=null!==y[1]&&!1,d=function(e){for(var r=1;r<e.length;++r)if(null!==e[r]&&void 0===e[r].destructorFunction)return!0;return!1}(y),c=!y[0].isVoid,m=Array(f=l-2),h=[],p=[],w=ew(o,function(...e){p.length=0,h.length=u?2:1,h[0]=i,u&&(r=y[1].toWireType(p,this),h[1]=r);for(var r,t=0;t<f;++t)m[t]=y[t+2].toWireType(p,e[t]),h.push(m[t]);var n=s(...h);if(d)Z(p);else for(var o=u?1:2;o<y.length;o++){var a=1===o?r:m[o-2];null!==y[o].destructorFunction&&y[o].destructorFunction(a)}return c?y[0].fromWireType(n):void 0}),g=t-1,e.hasOwnProperty(v)||ea("Replacing nonexistent public symbol"),void 0!==e[v].overloadTable&&void 0!==g?e[v].overloadTable[g]=w:(e[v]=w,e[v].argCount=g),[]})},e:(e,r,t,n,o)=>{r=es(r);let a=e=>e;if(0===n){var i=32-8*t;o=(a=e=>e<<i>>>i)(o)}ed(e,{name:r,fromWireType:a,toWireType:(e,r)=>r,readValueFromPointer:ec(r,t,0!==n),destructorFunction:null})},b:(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array
1][r];function o(e){var r=p[e>>2],t=p[e+4>>2];return new n(c.buffer,t,r)}ed(e,{name:t=es(t),fromWireType:o,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},j:(e,r)=>{ed(e,{name:r=es(r),fromWireType(e){var r,t=p[e>>2];return r=eD(e+4,t,!0),k(e),r},toWireType(e,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t,n="string"==typeof r;n||ArrayBuffer.isView(r)&&1==r.BYTES_PER_ELEMENT||eu("Cannot pass non-string to std::string"),t=n?eT(r):r.length;var o=E(4+t+1),a=o+4;if(p[o>>2]=t,n)if(0)for(var i=0;i<t;++i){var s=r.charCodeAt(i);s>255&&(k(o),eu("String has UTF-16 code units that do not fit in 8 bits")),w[a+i]=s}else e_(r,a,t+1);else w.set(r,a);return null!==e&&e.push(k,o),o},readValueFromPointer:ee,destructorFunction(e){k(e)}})},g:(e,r,t)=>{var n,o,a;t=es(t),2===r?(n=ex,o=eC,a=eM):(n=eN,o=eR,a=ez),ed(e,{name:t,fromWireType:e=>{var t=p[e>>2],o=n(e+4,t*r,!0);return k(e),o},toWireType:(e,n)=>{"string"!=typeof n&&eu(`Cannot pass non-string to C++ string type ${t}`);var i=a(n),s=E(4+i+r);return p[s>>2]=i/r,o(n,s+4,i+r),null!==e&&e.push(k,s),s},readValueFromPointer:ee,destructorFunction(e){k(e)}})},n:(e,r,t,n,o,a)=>{Q[e]={name:es(r),rawConstructor:eE(t,n),rawDestructor:eE(o,a),elements:[]}},c:(e,r,t,n,o,a,i,s,l)=>{Q[e].elements.push({getterReturnType:r,getter:eE(t,n),getterContext:o,setterArgumentType:a,setter:eE(i,s),setterContext:l})},l:(e,r)=>{ed(e,{isVoid:!0,name:r=es(r),fromWireType:()=>void 0,toWireType:(e,r)=>void 0})},p:()=>{G=!1,eB=0},q:(e,r)=>{if(eW[e]&&(clearTimeout(eW[e].id),delete eW[e]),!r)return 0;var t=setTimeout(()=>{delete eW[e],(e=>{if(!R)try{return e()}catch(e){eI(e)}finally{if(!(G||eB>0))try{var r;o=r=o,ej(r)}catch(e){eI(e)}}})(()=>y(e,performance.now()))},r);return eW[e]={id:t,timeout_ms:r},0},r:(e,r,t,n)=>{var o=(new Date).getFullYear(),a=new Date(o,0,1),i=new Date(o,6,1),s=a.getTimezoneOffset(),l=i.getTimezoneOffset(),d=Math.max(s,l);p[e>>2]=60*d,u[r>>2]=Number(s!=l);var c=e=>{var r=Math.abs(e),t=String(Math.floor(r/60)).padStart(2,"0"),n=String(r%60).padStart(2,"0");return`UTC${e>=0?"-":"+"}${t}${n}`},f=c(s),m=c(l);l<s?(e_(f,t,17),e_(m,n,17)):(e_(f,n,17),e_(m,t,17))},w:e=>{var r=w.length;if((e>>>=0)>0x80000000)return!1;for(var t=1;t<=4;t*=2){var n=r*(1+.2/t);if(n=Math.min(n,e+0x6000000),eO(Math.min(0x80000000,e$(Math.max(e,n),65536))))return!0}return!1},s:(e,r)=>{var t=0,n=0;for(var o of eU()){var a=r+t;p[e+n>>2]=a,t+=e_(o,a,1/0)+1,n+=4}return 0},t:(e,r)=>{var t=eU();p[e>>2]=t.length;var n=0;for(var o of t)n+=eT(o)+1;return p[r>>2]=n,0},z:function(e){try{var r=e8.getStreamFromFD(e);return e5.close(r),0}catch(e){if(void 0===e5||"ErrnoError"!==e.name)throw e;return e.errno}},u:function(e,r,t,n){try{var o=e8.getStreamFromFD(e),a=((e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=p[r>>2],s=p[r+4>>2];r+=8;var l=e5.read(e,c,i,s,n);if(l<0)return -1;if(o+=l,l<s)break;void 0!==n&&(n+=l)}return o})(o,r,t);return p[n>>2]=a,0}catch(e){if(void 0===e5||"ErrnoError"!==e.name)throw e;return e.errno}},x:function(e,r,t,n){let o;r=(o=r)<-0x20000000000000||o>0x20000000000000?NaN:Number(o);try{if(isNaN(r))return 61;var a=e8.getStreamFromFD(e);return e5.llseek(a,r,t),d[n>>3]=BigInt(a.position),a.getdents&&0===r&&0===t&&(a.getdents=null),0}catch(e){if(void 0===e5||"ErrnoError"!==e.name)throw e;return e.errno}},y:function(e,r,t,n){try{var o=e8.getStreamFromFD(e),a=((e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=p[r>>2],s=p[r+4>>2];r+=8;var l=e5.write(e,c,i,s,n);if(l<0)return -1;if(o+=l,l<s)break;void 0!==n&&(n+=l)}return o})(o,r,t);return p[n>>2]=a,0}catch(e){if(void 0===e5||"ErrnoError"!==e.name)throw e;return e.errno}},o:ej};return A=await O(),!function r(){if(e1>0){e2=r;return}if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)X(e.preRun.shift());if(U(q),e1>0){e2=r;return}function t(){if(e.calledRun=!0,!R){if(z=!0,e.noFSInit||e5.initialized||e5.init(),eK.init(),A.D(),e5.ignorePermissions=!1,a?.(e),e.onRuntimeInitialized?.(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)V(e.postRun.shift());
1U(H)}}e.setStatus?(e.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>e.setStatus(""),1),t()},1)):t()}(),z?e:new Promise((e,r)=>{a=e,i=r})}}}]);
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.