}functionu(l,n){returnMath.floor(l/n)}functione(l){varn=0;this.get=function(){returnn>=l.length?M:Number(l[n])},this.offset=function(u){if(n+=u,0>n)throwError("Seeking past start of the buffer");if(n>l.length)throwError("Seeking past EOF")},this.match=function(u){if(u.length>n+l.length)return!1;vare;for(e=0;u.length>e;e+=1)if(Number(l[n+e])!==u[e])return!1;return!0}}functiont(l){varn=0;this.emit=function(){varu,e=M;for(u=0;arguments.length>u;++u)e=Number(arguments[u]),l[n++]=e;returne}}functionr(l){functionu(l){for(varu=[],e=0,t=l.length;l.length>e;){varr=l.charCodeAt(e);if(n(r,55296,57343))if(n(r,56320,57343))u.push(65533);elseif(e===t-1)u.push(65533);else{vari=l.charCodeAt(e+1);if(n(i,56320,57343)){varo=1023&r,a=1023&i;e+=1,u.push(65536+(o<<10)+a)}elseu.push(65533)}elseu.push(r);e+=1}returnu}vare=0,t=u(l);this.offset=function(l){if(e+=l,0>e)throwError("Seeking past start of the buffer");if(e>t.length)throwError("Seeking past EOF")},this.get=function(){returne>=t.length?P:t[e]}}functioni(){varl="";this.string=function(){returnl},this.emit=function(n){65535>=n?l+=String.fromCharCode(n):(n-=65536,l+=String.fromCharCode(55296+(1023&n>>10)),l+=String.fromCharCode(56320+(1023&n)))}}functiono(l){this.name="EncodingError",this.message=l,this.code=0}functiona(l,n){if(l)thrownewo("Decoder error");returnn||65533}functions(l){thrownewo("The code point "+l+" could not be encoded.")}functionc(l){returnl=(l+"").trim().toLowerCase(),Object.prototype.hasOwnProperty.call(W,l)?W[l]:null}functionf(l,n){return(n||[])[l]||null}functionp(l,n){varu=n.indexOf(l);return-1===u?null:u}functiond(n){if(!("encoding-indexes"inl))throwError("Indexes missing. Did you forget to include encoding-indexes.js?");returnl["encoding-indexes"][n]}functionh(l){if(l>39419&&189e3>l||l>1237575)returnnull;varn,u=0,e=0,t=d("gb18030");for(n=0;t.length>n;++n){varr=t[n];if(!(l>=r[0]))break;u=r[0],e=r[1]}returne+l-u}functiong(l){varn,u=0,e=0,t=d("gb18030");for(n=0;t.length>n;++n){varr=t[n];if(!(l>=r[1]))break;u=r[1],e=r[0]}returne+l-u}functionv(l){varu=l.fatal,e=0,t=0,r=0,i=0;this.decode=function(l){varo=l.get();if(o===M)return0!==t?a(u):P;if(l.offset(1),0===t){if(n(o,0,127))returno;if(n(o,194,223))t=1,i=128,e=o-192;elseif(n(o,224,239))t=2,i=2048,e=o-224;else{if(!n(o,240,244))returna(u);t=3,i=65536,e=o-240}returne*=Math.pow(64,t),null}if(!n(o,128,191))returne=0,t=0,r=0,i=0,l.offset(-1),a(u);if(r+=1,e+=(o-128)*Math.pow(64,t-r),r!==t)returnnull;vars=e,c=i;returne=0,t=0,r=0,i=0,n(s,c,1114111)&&!n(s,55296,57343)?s:a(u)}}functionm(l){l.fatal,this.encode=function(l,e){vart=e.get();if(t===P)returnM;if(e.offset(1),n(t,55296,57343))returns(t);if(n(t,0,127))returnl.emit(t);varr,i;n(t,128,2047)?(r=1,i=192):n(t,2048,65535)?(r=2,i=224):n(t,65536,1114111)&&(r=3,i=240);for(varo=l.emit(u(t,Math.pow(64,r))+i);r>0;){vara=u(t,Math.pow(64,r-1));o=l.emit(128+a%64),r-=1}returno}}functiony(l,u){vare=u.fatal;this.decode=function(u){vart=u.get();if(t===M)returnP;if(u.offset(1),n(t,0,127))returnt;varr=l[t-128];returnnull===r?a(e):r}}functionb(l,u){u.fatal,this.encode=function(u,e){vart=e.get();if(t===P)returnM;if(e.offset(1),n(t,0,127))returnu.emit(t);varr=p(t,l);returnnull===r&&s(t),u.emit(r+128)}}functionw(l,u){vare=u.fatal,t=0,r=0,i=0;this.decode=function(u){varo=u.get();if(o===M&&0===t&&0===r&&0===i)returnP;o!==M||0===t&&0===r&&0===i||(t=0,r=0,i=0,a(e)),u.offset(1);vars;if(0!==i)returns=null,n(o,48,57)&&(s=h(10*(126*(10*(t-129)+(r-48))+(i-129))+o-48)),t=0,r=0,i=0,null===s?(u.offset(-3),a(e)):s;if(0!==r)returnn(o,129,254)?(i=o,null):(u.offset(-2),t=0,r=0,a(e));if(0!==t){if(n(o,48,57)&&l)returnr=o,null;varc=t,p=null;t=0;varg=127>o?64:65;return(n(o,64,126)||n(o,128,254))&&(p=190*(c-129)+(o-g)),s=null===p?null:f(p,d("gbk")),null===p&&u.offset(-1),null===s?a(e):s}returnn(o,0,127)?o:128===o?8364:n(o,129,254)?(t=o,null):a(e)}}function_(l,e){e.fatal,this.encode=function(e,t){varr=t.get();if(r===P)returnM;if(t.offset(1),n(r,0,127))returne.emit(r);vari=p(r,d("gbk"));if(null!==i){varo=u(i,190)+129,
}n=H(n);varf,p,d,h,g=Y(n),v=U(n);r(l,v,e)}functions(l,u,t,i){functiono(n,u){n?i(n):(v=u,l.get(v.data,a))}functiona(n,u){n?i(n):(m=u,W(m).has(_)?W(t).contains(_n)?i(newJ("O_CREATE and O_EXCLUSIVE are set, and the named file exists")):(y=m[_],y.type==cn&&W(t).contains(bn)?i(newG("the named file is a directory and O_WRITE is set")):l.get(y.id,s)):W(t).contains(wn)?p():i(newJ("O_CREATE is not set and the named file does not exist")))}functions(l,n){if(l)i(l);else{varu=n;u.mode==fn?(E++,E>hn?i(newtn("too many symbolic links were encountered")):c(u.data)):f(void0,u)}}functionc(n){n=H(n),x=U(n),_=Y(n),pn==_&&(W(t).contains(bn)?i(newG("the named file is a directory and O_WRITE is set")):r(l,u,f)),r(l,x,o)}functionf(l,n){l?i(l):(b=n,i(null,b))}functionp(){b=newe(void0,sn),b.nlinks+=1,l.put(b.id,b,d)}functiond(n){n?i(n):(w=newUint8Array(0),l.put(b.data,w,h))}functionh(u){u?i(u):(m[_]=newn(b.id,sn),l.put(v.data,m,g))}functiong(l){l?i(l):i(null,b)}u=H(u);varv,m,y,b,w,_=Y(u),x=U(u),E=0;pn==_?W(t).contains(bn)?i(newG("the named file is a directory and O_WRITE is set")):r(l,u,f):r(l,x,o)}functionc(l,n,u,e,t,r,i){functiono(l){l?i(l):i(null,t)}functiona(n){n?i(n):l.put(f.id,f,o)}functions(e,o){if(e)i(e);else{p=o;vars=void0!==r&&null!==r?r:n.position,c=Math.max(p.length,s+t),d=newUint8Array(c);p&&d.set(p),d.set(u,s),void0===r&&(n.position+=t),f.size=c,f.mtime=Date.now(),f.version+=1,l.put(f.data,d,a)}}functionc(n,u){n?i(n):(f=u,l.get(f.data,s))}varf,p;l.get(n.id,c)}functionf(l,n,u,e,t,r,i){functiono(l,o){if(l)i(l);else{c=o;vara=void0!==r&&null!==r?r:n.position;t=a+t>u.length?t-a:t;vars=c.subarray(a,a+t);u.set(s,e),void0===r&&(n.position+=t),i(null,t)}}functiona(n,u){n?i(n):(s=u,l.get(s.data,o))}vars,c;l.get(n.id,a)}functionp(l,n,u){functione(l,n){l?u(l):u(null,n)}n=H(n),Y(n),r(l,n,e)}functiond(l,n,u){functione(l,n){l?u(l):u(null,n)}l.get(n.id,e)}functionh(l,n,u){functione(n,e){n?u(n):(o=e,l.get(o.data,t))}functiont(n,e){n?u(n):(a=e,W(a).has(s)?l.get(a[s].id,i):u(newJ("a component of the path does not name an existing file")))}functioni(l,n){l?u(l):u(null,n)}n=H(n);varo,a,s=Y(n),c=U(n);pn==s?l.get(dn,i):r(l,c,e)}functiong(l,n,u,e){functiont(n,u){n?e(n):(m=u,m.nlinks+=1,l.put(m.id,m,e))}functioni(n){n?e(n):l.get(v[y].id,t)}functiono(n,u){n?e(n):(v=u,W(v).has(y)?e(newX("newpath resolves to an existing file")):(v[y]=h[f],l.put(g.data,v,i)))}functiona(n,u){n?e(n):(g=u,l.get(g.data,o))}functions(n,u){n?e(n):(h=u,W(h).has(f)?r(l,b,a):e(newJ("a component of either path prefix does not exist")))}functionc(n,u){n?e(n):(d=u,l.get(d.data,s))}n=H(n);varf=Y(n),p=U(n);u=H(u);vard,h,g,v,m,y=Y(u),b=U(u);r(l,p,c)}functionv(l,n,u){functione(n){n?u(n):(deletec[p],l.put(s.data,c,u))}functiont(n){n?u(n):l.delete(f.data,e)}functioni(n,r){n?u(n):(f=r,f.nlinks-=1,1>f.nlinks?l.delete(f.id,t):l.put(f.id,f,e))}functiono(n,e){n?u(n):(c=e,W(c).has(p)?l.get(c[p].id,i):u(newJ("a component of the path does not name an existing file")))}functiona(n,e){n?u(n):(s=e,l.get(s.data,o))}n=H(n);vars,c,f,p=Y(n),d=U(n);r(l,d,a)}functionm(l,n,u){functione(l,n){if(l)u(l);else{o=n;vare=Object.keys(o);u(null,e)}}functiont(n,t){n?u(n):(i=t,l.get(i.data,e))}n=H(n),Y(n);vari,o;r(l,n,t)}functiony(l,u,t,i){functiono(n,u){n?i(n):(f=u,l.get(f.data,a))}functiona(l,n){l?i(l):(p=n,W(p).has(h)?i(newX("the destination path already exists")):s())}functions(){d=newe(void0,fn),d.nlinks+=1,d.size=u.length,d.data=u,l.put(d.id,d,c)}functionc(u){u?i(u):(p[h]=newn(d.id,fn),l.put(f.data,p,i))}t=H(t);varf,p,d,h=Y(t),g=U(t);pn==h?i(newX("the destination path already exists")):r(l,g,o)}functionb(l,n,u){functione(n,e){n?u(n):(o=e,l.get(o.data,t))}functiont(n,e){n?u(n):(a=e,W(a).has(s)?l.get(a[s].id,i):u(newJ("a component of the path does not name an existing file")))}functioni(l,n){l?u(l):n.mode!=fn?u(newun("path not a symbolic link")):u(null,n.data)}n=H(n);varo,a,s=Y(n),c=U(n);r(l,c,e)}functionw(l){returnW(En).has(l)?En[l]:null}function_(l,n){if(-1!==(""+l).indexOf("\0")){varu=Error("Pathmustbeastringwitho