shithub: h264bsd

Download patch

ref: 3ee541f774c4c7511326cdfee75a283118a73832
parent: 54fe7de8a9398cbd638bdabaf28bf580c2f8f78f
author: Sam Leitch <sam@luceva.net>
date: Tue Mar 11 03:37:08 EDT 2014

Rebuilt asm file and removed asserts. OMFG it's fast.

--- a/js/Rakefile
+++ b/js/Rakefile
@@ -1,7 +1,9 @@
-EMCC_FLAGS = ENV["EMCC_FLAGS"] || "-O3"
+EMCC_FLAGS = ENV["EMCC_FLAGS"] || "-O3 -D_ERROR_PRINT"
 
+EMCC_FLAGS = "-O0 -g4 -D_ASSERT_USED -D_ERROR_PRINT" if ENV["DEBUG"]
+
 rule '.o' => ['.c'] do |t|
-  sh "emcc #{t.source} -c #{EMCC_FLAGS} -D_ASSERT_USED -D_ERROR_PRINT -o #{t.name}"
+  sh "emcc #{t.source} -c #{EMCC_FLAGS} -o #{t.name}"
 end
 
 o_files = FileList["../src/*.c"].gsub(/c$/, 'o')
--- a/js/h264bsd.min.js
+++ b/js/h264bsd.min.js
@@ -1,10 +1,11 @@
-function e(a){throw a}function r(){return function(){}}function ga(a){eval.call(m,a)}function ha(){return w}function ia(a){w=a}function ja(a){switch(a){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:return"*"===a[a.length-1]?ka:"i"===a[0]?(a=parseInt(a.substr(1)),z(0===a%8),a/8):0}}function la(a,b,c){c&&c.length?(c.splice||(c=Array.prototype.slice.call(c)),c.splice(0,0,b),s["dynCall_"+a].apply(m,c)):s["dynCall_"+a].call(m,b)}function na(){var a=[],b=0;this.Ba=function(c){if(c&=255,0==a.length)return 0==(128&c)?String.fromCharCode(c):(a.push(c),b=192==(224&c)?1:224==(240&c)?2:3,"");if(b&&(a.push(c),b--,b>0))return"";var c=a[0],d=a[1],f=a[2],h=a[3];return 2==a.length?c=String.fromCharCode((31&c)<<6|63&d):3==a.length?c=String.fromCharCode((15&c)<<12|(63&d)<<6|63&f):(c=(7&c)<<18|(63&d)<<12|(63&f)<<6|63&h,c=String.fromCharCode(Math.floor((c-65536)/1024)+55296,(c-65536)%1024+56320)),a.length=0,c},this.Eb=function(a){for(var a=unescape(encodeURIComponent(a)),b=[],f=0;f<a.length;f++)b.push(a.charCodeAt(f));return b}}function oa(a){var b=w;return w=w+a|0,w=w+7&-8,b}function pa(a){var b=B;return B=B+a|0,B=B+7&-8,b}function qa(a){var b=E;return E=E+a|0,E=E+7&-8,E>=F&&H("Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+F+", or (2) set Module.TOTAL_MEMORY before the program runs."),b}function ra(a,b){return Math.ceil(a/(b?b:8))*(b?b:8)}function z(a,b){a||H("Assertion failed: "+b)}function xa(a){try{var b=s["_"+a];b||(b=eval("_"+a))}catch(c){}return z(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)"),b}function wa(a,b,c,d){function f(a,b){if("string"==b){if(a===m||a===i||0===a)return 0;a=J(a),b="array"}if("array"==b){h||(h=ha());var c=oa(a.length);return ya(a,c),c}return a}var h=0,g=0,d=d?d.map(function(a){return f(a,c[g++])}):[];return a=a.apply(m,d),"string"==b?b=za(a):(z("array"!=b),b=a),h&&ia(h),b}function Aa(a,b,c){switch(c=c||"i8","*"===c.charAt(c.length-1)&&(c="i32"),c){case"i1":K[a]=b;break;case"i8":K[a]=b;break;case"i16":L[a>>1]=b;break;case"i32":M[a>>2]=b;break;case"i64":va=[b>>>0,(ua=b,1<=+Ba(ua)?ua>0?(0|Ca(+Da(ua/4294967296),4294967295))>>>0:~~+Ea((ua-+(~~ua>>>0))/4294967296)>>>0:0)],M[a>>2]=va[0],M[a+4>>2]=va[1];break;case"float":Fa[a>>2]=b;break;case"double":Ga[a>>3]=b;break;default:H("invalid type for setValue: "+c)}}function N(a,b,c,d){var f,h;"number"==typeof a?(f=l,h=a):(f=q,h=a.length);var g="string"==typeof b?b:m,c=c==Ia?d:[Ja,oa,pa,qa][c===i?Ha:c](Math.max(h,g?1:b.length));if(f){for(d=c,z(0==(3&c)),a=c+(-4&h);a>d;d+=4)M[d>>2]=0;for(a=c+h;a>d;)K[0|d++]=0;return c}if("i8"===g)return a.subarray||a.slice?O.set(a,c):O.set(new Uint8Array(a),c),c;for(var j,n,d=0;h>d;){var x=a[d];"function"==typeof x&&(x=sa.Ud(x)),f=g||b[d],0===f?d++:("i64"==f&&(f="i32"),Aa(c+d,x,f),n!==f&&(j=ja(f),n=f),d+=j)}return c}function za(a,b){for(var d,c=q,f=0;;){if(d=O[a+f|0],d>=128)c=l;else if(0==d&&!b)break;if(f++,b&&f==b)break}b||(b=f);var h="";if(!c){for(;b>0;)d=String.fromCharCode.apply(String,O.subarray(a,a+Math.min(b,1024))),h=h?h+d:d,a+=1024,b-=1024;return h}for(c=new na,f=0;b>f;f++)d=O[a+f|0],h+=c.Ba(d);return h}function Ka(a){try{if("Object._main"==a||"_main"==a)return"main()";if("number"==typeof a&&(a=za(a)),"_"!==a[0]||"_"!==a[1]||"Z"!==a[2])return a;switch(a[3]){case"n":return"operator new()";case"d":return"operator delete()"}var b=3,c={v:"void",b:"bool",c:"char",s:"short",i:"int",l:"long",f:"float",d:"double",w:"wchar_t",a:"signed char",h:"unsigned char",t:"unsigned short",j:"unsigned int",m:"unsigned long",x:"long long",y:"unsigned long long",z:"..."},d=[],f=l,h=function(g,n,x){var p,n=n||1/0,D="",u=[];if("N"===a[b]){for(b++,"K"===a[b]&&b++,p=[];"E"!==a[b];)if("S"===a[b]){b++;var A=a.indexOf("_",b);p.push(d[a.substring(b,A)||0]||"?"),b=A+1}else if("C"===a[b])p.push(p[p.length-1]),b+=2;else{var A=parseInt(a.substr(b)),G=A.toString().length;if(!A||!G){b--;break}var I=a.substr(b+G,A);p.push(I),d.push(I),b+=G+A}if(b++,p=p.join("::"),n-
\ No newline at end of file
-var kb=ra(N(12,"i8",Ha),8);z(0==kb%8),s._memset=lb,s._memcpy=mb;var S={Y:1,ea:2,sd:3,pc:4,N:5,Ja:6,Mb:7,Mc:8,da:9,$b:10,X:11,Cd:11,mb:12,fb:13,kc:14,Yc:15,Yb:16,Ga:17,Dd:18,Ha:19,Zc:20,ra:21,u:22,Hc:23,lb:24,cd:25,zd:26,lc:27,Uc:28,ua:29,pd:30,Ac:31,hd:32,hc:33,md:34,Qc:42,nc:43,ac:44,rc:45,sc:46,tc:47,zc:48,Ad:49,Kc:50,qc:51,fc:35,Nc:37,Rb:52,Ub:53,Ed:54,Ic:55,Vb:56,Wb:57,gc:35,Xb:59,Wc:60,Lc:61,wd:62,Vc:63,Rc:64,Sc:65,od:66,Oc:67,Pb:68,td:69,bc:70,jd:71,Cc:72,ic:73,Tb:74,dd:76,Sb:77,nd:78,uc:79,vc:80,yc:81,xc:82,wc:83,Xc:38,Ia:39,Dc:36,sa:40,ta:95,gd:96,ec:104,Jc:105,Qb:97,ld:91,ad:88,Tc:92,qd:108,dc:111,Nb:98,cc:103,Gc:101,Ec:100,xd:110,mc:112,ib:113,jb:115,gb:114,hb:89,Bc:90,kd:93,rd:94,Ob:99,Fc:102,kb:106,fa:107,yd:109,Bd:87,jc:122,ud:116,bd:95,Pc:123,oc:84,ed:75,Zb:125,$c:131,fd:130,vd:86},nb={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can   access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"},ob=0,tb=[],wb={open:function(a){var b=
\ No newline at end of file
-}while(0);do if((g|0)==0)P=0,Q=0,R=0,S=0,T=M,U=0,V=0,W=O;else{if((c[b-216+196>>2]|0)==0){P=0,Q=0,R=0,S=0,T=M,U=0,V=0,W=O;break}F=t-1|0,G=q<<4,r=q<<5,z=q*48|0,s=(d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,aU=aP,aV=aO,aW=59)}while(0);(aW|0)==59&&(aW=0,c[T>>2]=aH>>aF+2,a0=aT,a1=aS,a2=aU,a3=aV,aW=60);do if((aW|0)==60){if(aW=0,aQ=(a0|0)!=0,aQ|ao|ap){if(aQ){aX=a0,aZ=a1,a_=a2,a$=a3,aW=63;break}a4=a1,a5=a3;break}c[ag>>2]=aw+ax+av+au-aE-aD-aC-aB>>4,a4=a1,a5=a3;break}while(0);for((aW|0)==63&&(aW=0,c[ag>>2]=a_>>aX+2,a4=aZ,a5=a$),c[ae>>2]=(a4|0)==1?a5>>3:(a4|0)==2?a5>>4:(a4|0)==3?(a5*21|0)>>9:a5>>5,aY(ae),aQ=0,aR=l+((aq<<6)+256)|0,P=ae;;){if(v=c[P+((aQ>>>1&3)<<2)>>2]|0,a6=(v|0)<0?0:(v|0)>255?-1:v&255,a[aR]=a6,v=aQ+1|0,!(v>>>0<64))break;aQ=v,aR=aR+1|0,P=(v&15|0)==0?P+16|0:P}if(P=aq+1|0,!(P>>>0<2))break;aq=P,ar=ar+u|0,x=ax,D=aw,C=av,B=au,A=aE,L=aD,K=aC,J=aB,I=aL,S=aK,R=aJ,Q=aI}bi(e,ab),i=k}function aY(a){a|=0;var b=0,
\ No newline at end of file
-b$=-2147483648}else{if(!aJ)break L478;aJ=(aU+1|0)>>>1,b$=(aU&1|0)!=0?aJ:-aJ|0}c[e+2388>>2]=b$}if(!a6)break;if(aJ=c[aH>>2]|0,aH=(c[aQ+32>>2]|0)+aJ+(c[e+2388>>2]|0)|0,(((aJ|0)<(aH|0)?aJ:aH)|0)!=0)break L478}while(0);do if((c[a5+68>>2]|0)!=0){if((by(at,Q)|0)!=0)break L478;if(aS=c[Q>>2]|0,c[e+2392>>2]=aS,aS>>>0<=127)break;av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=9584,a8|0))|0,i=a8;break L478}while(0);if(aS=c[aG>>2]|0,(aS|0)==0|(aS|0)==5){if(aI=bu(at)|0,(bv(at,1)|0)!=0)break;aE=aI>>>31,c[e+2396>>2]=aE;do{if((aE|0)==0){if(aI=c[a5+48>>2]|0,aI>>>0>16){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=8792,a8|0))|0,i=a8;break L478}c[e+2400>>2]=aI;break}if((by(at,Q)|0)!=0)break L478;if(aI=c[Q>>2]|0,aI>>>0>15){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=9128,a8|0))|0,i=a8;break L478}c[e+2400>>2]=aI+1;break}while(0);b0=c[aG>>2]|0}else b0=aS;do if((b0|0)==0|(b0|0)==5){if(aE=e+2424|0,aI=c[e+2400>>2]|0,aP=c[aX>>2]|0,(aE|0)==0)return am(6672,9360,481,12456),0;if((aI|0)==0)return am(6512,9360,482,12456),0;if((aP|0)==0)return am(6360,9360,483,12456),0;if(aH=bu(at)|0,(bv(at,1)|0)!=0)break L478;if(aJ=aH>>>31,c[aE>>2]=aJ,(aJ|0)==0)break;b1=0;L583:for(;;){if(b1>>>0>aI>>>0){aw=682;break}if((by(at,P)|0)!=0)break L478;if(aJ=c[P>>2]|0,aJ>>>0>3){aw=685;break}c[e+2428+(b1*12|0)>>2]=aJ;do if(aJ>>>0<2){if((by(at,O)|0)!=0)break L478;if(aE=c[O>>2]|0,aE>>>0>=aP>>>0){aw=689;break L583}c[e+2428+(b1*12|0)+4>>2]=aE+1}else{if((aJ|0)!=2)break;if((by(at,O)|0)!=0)break L478;c[e+2428+(b1*12|0)+8>>2]=c[O>>2]}while(0);if((c[P>>2]|0)==3){aw=695;break}b1=b1+1|0}if((aw|0)==682){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=6296,a8|0))|0,i=a8;break L478}if((aw|0)==685){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=6192,a8|0))|0,i=a8;break L478}if((aw|0)==689){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=6168,a8|0))|0,i=a8;break L478}if((aw|0)==695){if((b1|0)!=0)break;av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=6144,a8|0))|0,i=a8;break L478}}while(0);do if((a2|0)!=0){if(aX=c[aQ+44>>2]|0,!((ba|0)==6|(ba|0)==5|(ba|0)==1))return am(6864,9360,590,13216),0;if(aS=bu(at)|0,aG=(bv(at,1)|0)==0,aP=aG?aS>>>31:-1,aS=(aP|0)==-1,a6){if(aS)break L478;if(c[e+2632>>2]=aP,aG=bu(at)|0,(bv(at,1)|0)!=0)break L478;if(aI=aG>>>31,c[e+2636>>2]=aI,(aX|0)!=0|(aI|0)==0)break;av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=6832,a8|0))|0,i=a8;break L478}if(aS)break L478;if(c[e+2640>>2]=aP,(aP|0)==0)break;for(aP=(aX<<1)+2|0,aS=0,aI=0,aG=0,aT=0,aJ=0;;){if(aJ>>>0>aP>>>0){aw=709;break}if((by(at,N)|0)!=0)break L478;if(aE=c[N>>2]|0,aE>>>0>6){aw=712;break}if(c[e+2644+(aJ*20|0)>>2]=aE,(aE|0)==3|(aE|0)==1){if((by(at,M)|0)!=0)break L478;c[e+2644+(aJ*20|0)+4>>2]=(c[M>>2]|0)+1,b2=c[N>>2]|0}else b2=aE;if((b2|0)==2){if((by(at,M)|0)!=0)break L478;c[e+2644+(aJ*20|0)+8>>2]=c[M>>2],b3=c[N>>2]|0}else b3=b2;if((b3|0)==6|(b3|0)==3){if((by(at,M)|0)!=0)break L478;c[e+2644+(aJ*20|0)+12>>2]=c[M>>2],b4=c[N>>2]|0}else b4=b3;if((b4|0)==4){if((by(at,M)|0)!=0)break L478;if(aE=c[M>>2]|0,aE>>>0>aX>>>0){aw=725;break}c[e+2644+(aJ*20|0)+16>>2]=(aE|0)==0?65535:aE-1,b5=aT+1|0,b6=c[N>>2]|0}else b5=aT,b6=b4;if(b7=((b6|0)==5)+aG|0,b8=((b6|0)!=0&b6>>>0<4&1)+aS|0,b9=((b6|0)==6)+aI|0,(b6|0)==0){aw=731;break}aS=b8,aI=b9,aG=b7,aT=b5,aJ=aJ+1|0}if((aw|0)==709){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=6792,a8|0))|0,i=a8;break L478}if((aw|0)==712){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=6728,a8|0))|0,i=a8;break L478}if((aw|0)==725){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=6696,a8|0))|0,i=a8;break L478}if((aw|0)==731){if(b5>>>0>1|b7>>>0>1|b9>>>0>1)break L478;if((b8|0)==0|(b7|0)==0)break;break L478}}while(0);if(c[I>>2]=0,aJ=by(at,I)|0,aT=c[I>>2]|0,aG=(aJ|0)==0,(aT|0)==-1){if(aG)break;ca=-2147483648}else{if(!aG)break;aG=(aT+1|0)>>>1,ca=(aT&1|0)!=0?aG:-aG|0}if(c[e+2404>>2]=ca,((c[a5+52>>2]|0)+ca|0)>>>0>51){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=8592,a8|0))|0,i=a8;break}L657:do if((c[a5+60>>2]|0)!=0){if((by(at,Q)|0)!=0)break L478;if(aG=c[Q>>2]|0,c[e+2408>>2]=aG,aG>>>0>2){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=8392,a8|0))|0,i=a8;break L478}if((aG|0)==1)break;c[H>>2]=0,aG=by(at,H)|0,aT=c[H>>2]|0,aJ=(aG|0)==0;do{if((aT|0)!=-1){if(!aJ)break L478;if(aG=(aT+1|0)>>>1,aI=(aT&1|0)!=0?aG:-a
\ No newline at end of file
-break}if(aE=bu(at)|0,(bv(at,1)|0)!=0){aw=361;break}if(a6=ar+48|0,c[a6>>2]=aE>>>31,(by(at,ab)|0)!=0){aw=361;break}if(aE=ar+52|0,c[aE>>2]=(c[ab>>2]|0)+1,(by(at,ab)|0)!=0){aw=361;break}if(aF=ar+56|0,c[aF>>2]=(c[ab>>2]|0)+1,a5=bu(at)|0,(bv(at,1)|0)!=0){aw=361;break}if((a5|0)>-1){av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=10336,a8|0))|0,i=a8,aw=361;break}if(bu(at)|0,(bv(at,1)|0)!=0){aw=361;break}if(a5=bu(at)|0,(bv(at,1)|0)!=0){aw=361;break}aQ=ar+60|0,c[aQ>>2]=a5>>>31;do{if((a5|0)<0){if(ay=ar+64|0,(by(at,ay)|0)!=0){aw=361;break L1368}if(aJ=ar+68|0,(by(at,aJ)|0)!=0){aw=361;break L1368}if(dj=ar+72|0,(by(at,dj)|0)!=0){aw=361;break L1368}if(aM=ar+76|0,(by(at,aM)|0)!=0){aw=361;break L1368}if(aT=c[aE>>2]|0,(c[ay>>2]|0)<=((aT<<3)+~c[aJ>>2]|0)&&(aJ=c[aF>>2]|0,(c[dj>>2]|0)<=((aJ<<3)+~c[aM>>2]|0))){eu=aT,ev=aJ;break}av(c[m>>2]|0,5224,(a8=i,i=i+8|0,c[a8>>2]=1e4,a8|0))|0,i=a8,aw=361;break L1368}eu=c[aE>>2]|0,ev=c[aF>>2]|0}while(0);if(a5=_(eu,ev)|0,(a5|0)==0)return am(5120,9512,394,12752),0;switch(c[ax>>2]|0){case 11:ew=396,ex=345600,aw=287;break;case 12:ew=396,ex=912384,aw=287;break;case 13:ew=396,ex=912384,aw=287;break;case 20:ew=396,ex=912384,aw=287;break;case 21:ew=792,ex=1824768,aw=287;break;case 22:ew=1620,ex=3110400,aw=287;break;case 30:ew=1620,ex=3110400,aw=287;break;case 31:ew=3600,ex=6912e3,aw=287;break;case 32:ew=5120,ex=7864320,aw=287;break;case 40:ew=8192,ex=12582912,aw=287;break;case 41:ew=8192,ex=12582912,aw=287;break;case 42:ew=8704,ex=13369344,aw=287;break;case 50:ew=22080,ex=42393600,aw=287;break;case 51:ew=36864,ex=70778880,aw=287;break;case 10:ew=99,ex=152064,aw=287;break;default:aw=288}do if((aw|0)==287){if(ew>>>0<a5>>>0){aw=288;break}aJ=(ex>>>0)/((a5*384|0)>>>0)|0,aT=aJ>>>0<16?aJ:16,c[ab>>2]=aT,aJ=c[a4>>2]|0,aJ>>>0>aT>>>0?(ey=aJ,aw=290):ez=aT}while(0);if((aw|0)==288&&(c[ab>>2]=2147483647,ey=c[a4>>2]|0,aw=290),(aw|0)==290&&(c[ab>>2]=ey,ez=ey),a5=ar+88|0,c[a5>>2]=ez,aT=bu(at)|0,(bv(at,1)|0)!=0){aw=361;break}aJ=ar+80|0,c[aJ>>2]=aT>>>31;do if((aT|0)<0){if(aM=bA(952)|0,dj=ar+84|0,c[dj>>2]=aM,(aM|0)==0){aw=361;break L1368}if(bC(aM|0,0,952)|0,ay=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}c[aM>>2]=ay>>>31;do if((ay|0)<0){if(aS=bu(at)|0,(bv(at,8)|0)!=0){eA=dj;break L1368}if(aL=aS>>>24,c[aM+4>>2]=aL,(aL|0)!=255)break;if(aL=bu(at)|0,(bv(at,16)|0)!=0){eA=dj;break L1368}if(c[aM+8>>2]=aL>>>16,aL=bu(at)|0,(bv(at,16)|0)!=0){eA=dj;break L1368}c[aM+12>>2]=aL>>>16}while(0);if(ay=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}if(c[aM+16>>2]=ay>>>31,(ay|0)<0){if(ay=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}c[aM+20>>2]=ay>>>31}if(ay=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}c[aM+24>>2]=ay>>>31;do if((ay|0)<0){if(aL=bu(at)|0,(bv(at,3)|0)!=0){eA=dj;break L1368}if(c[aM+28>>2]=aL>>>29,aL=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}if(c[aM+32>>2]=aL>>>31,aL=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}if(c[aM+36>>2]=aL>>>31,(aL|0)>=0){c[aM+40>>2]=2,c[aM+44>>2]=2,c[aM+48>>2]=2;break}if(aL=bu(at)|0,(bv(at,8)|0)!=0){eA=dj;break L1368}if(c[aM+40>>2]=aL>>>24,aL=bu(at)|0,(bv(at,8)|0)!=0){eA=dj;break L1368}if(c[aM+44>>2]=aL>>>24,aL=bu(at)|0,(bv(at,8)|0)!=0){eA=dj;break L1368}c[aM+48>>2]=aL>>>24}else c[aM+28>>2]=5,c[aM+40>>2]=2,c[aM+44>>2]=2,c[aM+48>>2]=2;while(0);if(ay=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}if(c[aM+52>>2]=ay>>>31,(ay|0)<0){if(ay=aM+56|0,(by(at,ay)|0)!=0){eA=dj;break L1368}if((c[ay>>2]|0)>>>0>5){eA=dj;break L1368}if(ay=aM+60|0,(by(at,ay)|0)!=0){eA=dj;break L1368}if((c[ay>>2]|0)>>>0>5){eA=dj;break L1368}}if(ay=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}if(c[aM+64>>2]=ay>>>31,(ay|0)<0){if(ay=bu(at)|0,(bv(at,32)|0)==-1|(ay|0)==0){eA=dj;break L1368}if(c[aM+68>>2]=ay,ay=bu(at)|0,(bv(at,32)|0)==-1|(ay|0)==0){eA=dj;break L1368}if(c[aM+72>>2]=ay,ay=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}c[aM+76>>2]=ay>>>31}if(ay=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}if(aL=aM+80|0,c[aL>>2]=ay>>>31,aS=aM+84|0,(ay|0)<0){if((bz(at,aS)|0)!=0){eA=dj;break L1368}}else c[aS>>2]=1,c[aM+96>>2]=288000001,c[aM+224>>2]=288000001,c[aM+480>>2]=24,c[aM+484>>2]=24,c[aM+488>>2]=24,c[aM+492>>2]=24;if(aS=bu(at)|0,(bv(at,1)|0)!=0){eA=dj;break L1368}if(ay=aM+496|0,
\ No newline at end of file
-if(gS=gZ-gX|0,((gS|0)<0?-gS|0:gS)>>>0>=ha>>>0)break;gS=g2+c0|0,eV=d[gS]|0,gR=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730;break}if((he|0)!=(c[hX+24>>2]|0)){aw=1730;break}if((he|0)==0)break;e5=n+(hY*12|0)|0,a_(hV,he,e5,aE),a_(hU,c[g7>>2]|0,e5,aE)}else aw=1730;while(0);do if((aw|0)==1730){if(aw=0,(he|0)==0?hZ=hd:(e5=n+(hY*12|0)|0,a$(hV,he,e5,aE),a$(hU,c[g7>>2]|0,e5,aE),hZ=c[e7>>2]|0),(hZ|0)!=0&&(e5=n+(hY*12|0)|0,a$(hV+2|0,hZ,e5,aE),a$(hU+2|0,c[e7>>2]|0,e5,aE)),e5=hb|0,g9=c[e5>>2]|0,(g9|0)!=0&&(dF=n+(hY*12|0)|0,a$(hV+4|0,g9,dF,aE),a$(hU+4|0,c[e5>>2]|0,dF,aE)),dF=hX+24|0,e5=c[dF>>2]|0,(e5|0)==0)break;g9=n+(hY*12|0)|0,a$(hV+6|0,e5,g9,aE),a$(hU+6|0,c[dF>>2]|0,g9,aE)}while(0);if(hb=hW+1|0,!(hb>>>0<2))break;hU=hU+ch|0,hV=hV+ch|0,hW=hb,hX=hX+64|0,hY=2}eE=c[aQ>>2]|0}while(0);if(aT=dm+1|0,gn=(aT|0)==(aL|0),hb=(gn&1)+dq|0
\ No newline at end of file
-}while(0);ab=(m|0)==0;L119:do if(aj>>>0<7){if(ab)return am(10056,10184,718,11040),0;G=(l|0)==0,at=e+200|0,x=e+4|0,Z=e+204|0,Y=e+208|0,ac=e+212|0,ao=0;L191:for(;;){if(E=e+82+ao|0,(d[E]|0)>>>0>=9){aB=125;break}switch(av=15928+(ao<<3)|0,ar=c[av+4>>2]|0,c[av>>2]|0){case 0:aM=c[at>>2]|0,aB=132;break;case 1:aM=c[Z>>2]|0,aB=132;break;case 2:aM=c[Y>>2]|0,aB=132;break;case 3:aM=c[ac>>2]|0,aB=132;break;case 4:aM=e,aB=132;break;case 255:aN=0,aO=0;break;default:aB=127;break L191}do if((aB|0)==132){if(aB=0,(aM|0)==0){aN=0,aO=0;break}if(av=(c[x>>2]|0)==(c[aM+4>>2]|0),ap=av&1,G|av^1){aN=aM,aO=ap;break}if(av=c[aM>>2]|0,av>>>0>=32){aB=135;break L191}aN=aM,aO=av>>>0<6?0:ap}while(0);switch(K=15224+(ao<<3)|0,H=c[K+4>>2]|0,c[K>>2]|0){case 0:aP=c[at>>2]|0,aB=143;break;case 1:aP=c[Z>>2]|0,aB=143;break;case 2:aP=c[Y>>2]|0,aB=143;break;case 3:aP=c[ac>>2]|0,aB=143;break;case 4:aP=e,aB=143;break;case 255:aB=144;break;default:aB=138;break L191}do if((aB|0)==143){if(aB=0,(aP|0)==0){aB=144;break}if(K=(c[x>>2]|0)==(c[aP+4>>2]|0),ap=K&1,G|K^1)aQ=ap;else{if(K=c[aP>>2]|0,K>>>0>=32){aB=147;break L191}aQ=K>>>0<6?0:ap}if(ap=(aO|0)!=0,K=(aQ|0)==0,K|ap^1){aR=2,aS=ap,aT=K,aU=1;break}if(K=c[aN>>2]|0,K>>>0>=32){aB=151;break L191}if(aV=(K|0)==6?d[(ar&255)+(aN+82)|0]|0:2,K=c[aP>>2]|0,K>>>0>=32){aB=155;break L191}aW=(K|0)==6?d[(H&255)+(aP+82)|0]|0:2,aR=aV>>>0<aW>>>0?aV:aW,aS=ap,aT=0,aU=0}while(0);switch((aB|0)==144&&(aB=0,aR=2,aS=(aO|0)!=0,aT=1,aU=1),(c[f+12+(ao<<2)>>2]|0)==0?(H=c[f+76+(ao<<2)>>2]|0,aX=(H>>>0>=aR>>>0)+H|0):aX=aR,a[E]=aX,c[14520+(ao<<3)>>2]|0){case 0:aY=c[at>>2]|0,aB=167;break;case 1:aY=c[Z>>2]|0,aB=167;break;case 2:aY=c[Y>>2]|0,aB=167;break;case 3:aY=c[ac>>2]|0,aB=167;break;case 4:aY=e,aB=167;break;case 255:aZ=0;break;default:aB=162;break L191}do if((aB|0)==167){if(aB=0,(aY|0)==0){aZ=0;break}if(H=(c[x>>2]|0)==(c[aY+4>>2]|0),ar=H&1,G|H^1){aZ=ar;break}if(H=c[aY>>2]|0,H>>>0>=32){aB=170;break L191}aZ=H>>>0<6?0:ar}while(0);switch(c[13816+(ao<<3)>>2]|0){case 0:a_=c[at>>2]|0,aB=178;break;case 1:a_=c[Z>>2]|0,aB=178;break;case 2:a_=c[Y>>2]|0,aB=178;break;case 3:a_=c[ac>>2]|0,aB=178;break;case 4:a_=e,aB=178;break;case 255:a$=0;break;default:aB=173;break L191}do if((aB|0)==178){if(aB=0,(a_|0)==0){a$=0;break}if(E=(c[x>>2]|0)==(c[a_+4>>2]|0),ar=E&1,G|E^1){a$=ar;break}if(E=c[a_>>2]|0,E>>>0>=32){aB=181;break L191}a$=E>>>0<6?0:ar}while(0);ar=c[2608+(ao<<2)>>2]|0,E=c[2544+(ao<<2)>>2]|0,H=(1285>>>(ao>>>0)&1|0)!=0,H?(a0=p+E|0,a1=p+(E+1)|0,a2=p+(E+2)|0,a3=p+(E+3)|0):(ap=(E<<4)+ar|0,a0=m+(ap-1)|0,a1=m+(ap+15)|0,a2=m+(ap+31)|0,a3=m+(ap+47)|0),ap=a[a0]|0,K=a[a1]|0,av=a[a2]|0,aa=a[a3]|0;do{if((51>>>(ao>>>0)&1|0)==0){if(ah=E-1|0,$=(ah<<4)+ar|0,F=a[m+$|0]|0,aq=a[m+($+1)|0]|0,ax=a[m+($+2)|0]|0,al=a[m+($+3)|0]|0,an=a[m+($+4)|0]|0,aw=a[m+($+5)|0]|0,af=a[m+($+6)|0]|0,J=a[m+($+7)|0]|0,H){a4=p+ah|0,a5=F,a6=aq,a7=ax,a8=al,a9=an,ba=aw,bb=af,bc=J;break}a4=m+($-1)|0,a5=F,a6=aq,a7=ax,a8=al,a9=an,ba=aw,bb=af,bc=J;break}a4=o+ar|0,a5=a[o+(ar+1)|0]|0,a6=a[o+(ar+2)|0]|0,a7=a[o+(ar+3)|0]|0,a8=a[o+(ar+4)|0]|0,a9=a[o+(ar+5)|0]|0,ba=a[o+(ar+6)|0]|0,bb=a[o+(ar+7)|0]|0,bc=a[o+(ar+8)|0]|0}while(0);switch(H=a[a4]|0,aX|0){case 0:if(aT){C=1,aB=584;break L191}J=(a7&255)<<16|(a8&255)<<24|(a6&255)<<8|a5&255,bd=J,be=J,bf=J,bg=J;break;case 1:if(!aS){C=1,aB=585;break L191}bd=_(ap&255,16843009)|0,be=_(K&255,16843009)|0,bf=_(av&255,16843009)|0,bg=_(aa&255,16843009)|0;break;case 2:do if(aU){if(aS){bh=((ap&255)+2+(K&255)+(av&255)+(aa&255)|0)>>>2,aB=202;break}if(aT){bk=-128;break}bh=((a8&255)+2+(a7&255)+(a6&255)+(a5&255)|0)>>>2,aB=202}else bh=((ap&255)+4+(K&255)+(av&255)+(aa&255)+(a8&255)+(a7&255)+(a6&255)+(a5&255)|0)>>>3,aB=202;while(0);if((aB|0)==202){if(aB=0,!(bh>>>0<256)){aB=203;break L191}bk=bh&255}J=_(bk&255,16843009)|0,bd=J,be=J,bf=J,bg=J;break;case 3:if(aT){C=1,aB=586;break L191}J=(aZ|0)==0,af=a6&255,aw=a7&255,an=aw+2|0,al=a8&255,ax=al+2|0,aq=(af+ax+(aw<<1)|0)>>>2&255,aw=(J?a8:a9)&255,F=(aw+(al<<1)+an|0)>>>2&255,al=(J?a8:ba)&255,$=(ax+al+(aw<<1)|0)>>>2,ax=$&255,ah=(J?a8:bb)&255,L=(aw+2+ah+(al<<1)|0)>>>2,aw=L&255,ae=(J?a8:bc)&255,J=(al+2+ae+(ah<<1)|0)>>>2,bd=F<<16|$<<24|aq<<8|((a5&255)+an+(af<<1)|0)>>>
\ No newline at end of file
-break}if(dk=(dg<<4)+dh|0,dm=m+dk|0,c4=k+dh+(_(dg,r)|0)|0,dg=u+c4|0,(dm&3|0)!=0){aB=554;break}if((dg&3|0)!=0){aB=556;break}if(dh=c[dl>>2]|0,(dh|0)==16777215?(dl=dg,c9=c[m+(dk+16)>>2]|0,c[dl>>2]=c[dm>>2],c[dl+(bH<<2)>>2]=c9,c9=c[m+(dk+48)>>2]|0,c[dl+(q<<2)>>2]=c[m+(dk+32)>>2],c[dl+(e<<2)>>2]=c9):(c9=d[m+(dk+1)|0]|0,dl=c[f+328+(c0<<6)+4>>2]|0,a[dg]=a[1264+(dh+512+(d[dm]|0))|0]|0,dm=d[m+(dk+2)|0]|0,dh=c[f+328+(c0<<6)+8>>2]|0,a[u+(c4+1)|0]=a[1264+((c9|512)+dl)|0]|0,dl=d[m+(dk+3)|0]|0,c9=c[f+328+(c0<<6)+12>>2]|0,a[u+(c4+2)|0]=a[1264+(dh+512+dm)|0]|0,a[u+(c4+3)|0]=a[1264+(c9+512+dl)|0]|0,dl=c4+r|0,c4=d[m+(dk+17)|0]|0,c9=c[f+328+(c0<<6)+20>>2]|0,a[u+dl|0]=a[1264+((c[f+328+(c0<<6)+16>>2]|0)+512+(d[m+(dk+16)|0]|0))|0]|0,dm=d[m+(dk+18)|0]|0,dh=c[f+328+(c0<<6)+24>>2]|0,a[u+(dl+1)|0]=a[1264+((c4|512)+c9)|0]|0,c9=d[m+(dk+19)|0]|0,c4=c[f+328+(c0<<6)+28>>2]|0,a[u+(dl+2)|0]=a[1264+(dh+512+dm)|0]|0,a[u+(dl+3)|0]=a[1264+(c4+512+c9)|0]|0,c9=dl+r|0,dl=d[m+(dk+33)|0]|0,c4=c[f+328+(c0<<6)+36>>2]|0,a[u+c9|0]=a[1264+((c[f+328+(c0<<6)+32>>2]|0)+512+(d[m+(dk+32)|0]|0))|0]|0,dm=d[m+(dk+34)|0]|0,dh=c[f+328+(c0<<6)+40>>2]|0,a[u+(c9+1)|0]=a[1264+((dl|512)+c4)|0]|0,c4=d[m+(dk+35)|0]|0,dl=c[f+328+(c0<<6)+44>>2]|0,a[u+(c9+2)|0]=a[1264+(dh+512+dm)|0]|0,a[u+(c9+3)|0]=a[1264+(dl+512+c4)|0]|0,c4=c9+r|0,c9=d[m+(dk+49)|0]|0,dl=c[f+328+(c0<<6)+52>>2]|0,a[u+c4|0]=a[1264+((c[f+328+(c0<<6)+48>>2]|0)+512+(d[m+(dk+48)|0]|0))|0]|0,dm=d[m+(dk+50)|0]|0,dh=c[f+328+(c0<<6)+56>>2]|0,a[u+(c4+1)|0]=a[1264+((c9|512)+dl)|0]|0,dl=d[m+(dk+51)|0]|0,dk=c[f+328+(c0<<6)+60>>2]|0,a[u+(c4+2)|0]=a[1264+(dh+512+dm)|0]|0,a[u+(c4+3)|0]=a[1264+(dk+512+dl)|0]|0),dl=c0+1|0,!(dl>>>0<16)){aB=561;break}c0=dl}if((aB|0)==552)return am(4536,8160,217,10464),0;if((aB|0)==554)return am(4256,8160,222,10464),0;if((aB|0)==556)return am(10232,8160,223,10464),0;if((aB|0)==561){for(c0=g<<3&2147483640,g=m+256|0,r=m+320|0,m=w+v+bI|0,bI=c0>>>2,v=c0>>>1,w=v+bI|0,e=16;;){if(q=e&3,bH=c[2608+(q<<2)>>2]|0,k=c[2544+(q<<2)>>2]|0,q=f+328+(e<<6)|0,(q|0)==0){aB=563;break}if(dl=e>>>0>19,dk=dl?r:g,c4=(k<<3)+bH|0,dm=dk+c4|0,dh=m+bH+(dl?s:0)+(_(k,c0)|0)|0,k=u+dh|0,(dm&3|0)!=0){aB=565;break}if((k&3|0)!=0){aB=567;break}if(dl=c[q>>2]|0,(dl|0)==16777215?(q=k,bH=c[dk+(c4+8)>>2]|0,c[q>>2]=c[dm>>2],c[q+(bI<<2)>>2]=bH,bH=c[dk+(c4+24)>>2]|0,c[q+(v<<2)>>2]=c[dk+(c4+16)>>2],c[q+(w<<2)>>2]=bH):(bH=d[dk+(c4+1)|0]|0,q=c[f+328+(e<<6)+4>>2]|0,a[k]=a[1264+(dl+512+(d[dm]|0))|0]|0,dm=d[dk+(c4+2)|0]|0,dl=c[f+328+(e<<6)+8>>2]|0,a[u+(dh+1)|0]=a[1264+((bH|512)+q)|0]|0,q=d[dk+(c4+3)|0]|0,bH=c[f+328+(e<<6)+12>>2]|0,a[u+(dh+2)|0]=a[1264+(dl+512+dm)|0]|0,a[u+(dh+3)|0]=a[1264+(bH+512+q)|0]|0,q=dh+c0|0,dh=d[dk+(c4+9)|0]|0,bH=c[f+328+(e<<6)+20>>2]|0,a[u+q|0]=a[1264+((c[f+328+(e<<6)+16>>2]|0)+512+(d[dk+(c4+8)|0]|0))|0]|0,dm=d[dk+(c4+10)|0]|0,dl=c[f+328+(e<<6)+24>>2]|0,a[u+(q+1)|0]=a[1264+((dh|512)+bH)|0]|0,bH=d[dk+(c4+11)|0]|0,dh=c[f+328+(e<<6)+28>>2]|0,a[u+(q+2)|0]=a[1264+(dl+512+dm)|0]|0,a[u+(q+3)|0]=a[1264+(dh+512+bH)|0]|0,bH=q+c0|0,q=d[dk+(c4+17)|0]|0,dh=c[f+328+(e<<6)+36>>2]|0,a[u+bH|0]=a[1264+((c[f+328+(e<<6)+32>>2]|0)+512+(d[dk+(c4+16)|0]|0))|0]|0,dm=d[dk+(c4+18)|0]|0,dl=c[f+328+(e<<6)+40>>2]|0,a[u+(bH+1)|0]=a[1264+((q|512)+dh)|0]|0,dh=d[dk+(c4+19)|0]|0,q=c[f+328+(e<<6)+44>>2]|0,a[u+(bH+2)|0]=a[1264+(dl+512+dm)|0]|0,a[u+(bH+3)|0]=a[1264+(q+512+dh)|0]|0,dh=bH+c0|0,bH=d[dk+(c4+25)|0]|0,q=c[f+328+(e<<6)+52>>2]|0,a[u+dh|0]=a[1264+((c[f+328+(e<<6)+48>>2]|0)+512+(d[dk+(c4+24)|0]|0))|0]|0,dm=d[dk+(c4+26)|0]|0,dl=c[f+328+(e<<6)+56>>2]|0,a[u+(dh+1)|0]=a[1264+((bH|512)+q)|0]|0,q=d[dk+(c4+27)|0]|0,c4=c[f+328+(e<<6)+60>>2]|0,a[u+(dh+2)|0]=a[1264+(dl+512+dm)|0]|0,a[u+(dh+3)|0]=a[1264+(c4+512+q)|0]|0),q=e+1|0,!(q>>>0<24)){C=0,aB=628;break}e=q}if((aB|0)==563)return am(4536,8160,282,10464),0;if((aB|0)==565)return am(4256,8160,296,10464),0;if((aB|0)==567)return am(10232,8160,297,10464),0;if((aB|0)==628)return i=n,C|0}return 0}function bl(d,e,f){d|=0,e|=0,f|=0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;if(e>>>0>=24)return am(5408,10016,823,12960),0;if(g=a[15932+(e<<3)|0]|0,h=a[15228+(e<<3)|0]|0,i=(c[15224+(e<<3)>>2]|0)==4,(c[15928+(e<<3)>>2]|0)==4)return e=b[f+((g&255)<<1)
\ No newline at end of file
-}if(i=f+1|0,j=g>>>1,(j|0)==0){h=i;break}f=i,g=j}return g=h+4|0,(g|0)!=32?(bv(a,h+5|0)|0,g>>>0>=32?(am(7656,8944,79,11544),0):(f=bu(a)|0,(bv(a,g)|0)!=0?(e=1,e|0):(d=f>>>((28-h|0)>>>0),(d|0)==-1?(e=1,e|0):(c[b>>2]=(1<<g)-1+d,e=0,e|0)))):(c[b>>2]=0,bv(a,32)|0,d=bu(a)|0,(bv(a,1)|0)==0&(d|0)<0?(d=bu(a)|0,(bv(a,32)|0)==-1?(e=1,e|0):(d|0)==0?(c[b>>2]=-1,e=0,e|0):(d|0)==1?(c[b>>2]=-1,e=1,e|0):(e=1,e|0)):(e=1,e|0))}function bz(a,b){a|=0,b|=0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if((a|0)==0)return am(6344,8768,413,13112),0;if((b|0)==0)return am(7e3,8768,414,13112),0;if(d=b|0,e=by(a,d)|0,(e|0)!=0)return f=e,f|0;if(e=(c[d>>2]|0)+1|0,c[d>>2]=e,e>>>0>32)return f=1,f|0;if(e=bu(a)|0,(bv(a,4)|0)!=0)return f=1,f|0;if(g=b+4|0,c[g>>2]=e>>>28,e=bu(a)|0,(bv(a,4)|0)!=0)return f=1,f|0;h=b+8|0,c[h>>2]=e>>>28;L19:do if((c[d>>2]|0)!=0){for(e=0;;){if(i=b+12+(e<<2)|0,j=by(a,i)|0,(j|0)!=0){f=j,k=23;break}if(j=c[i>>2]|0,(j|0)==-1){f=1,k=24;break}if(l=j+1|0,c[i>>2]=l,c[i>>2]=l<<(c[g>>2]|0)+6,l=b+140+(e<<2)|0,i=by(a,l)|0,(i|0)!=0){f=i,k=25;break}if(i=c[l>>2]|0,(i|0)==-1){f=1,k=26;break}if(j=i+1|0,c[l>>2]=j,c[l>>2]=j<<(c[h>>2]|0)+4,j=bu(a)|0,(bv(a,1)|0)!=0){f=1,k=27;break}if(c[b+268+(e<<2)>>2]=j>>>31,e=e+1|0,e>>>0>=(c[d>>2]|0)>>>0)break L19}if((k|0)==23)return f|0;if((k|0)==24)return f|0;if((k|0)==25)return f|0;if((k|0)==26)return f|0;if((k|0)==27)return f|0}while(0);return k=bu(a)|0,(bv(a,5)|0)!=0?(f=1,f|0):(c[b+396>>2]=(k>>>27)+1,k=bu(a)|0,(bv(a,5)|0)!=0?(f=1,f|0):(c[b+400>>2]=(k>>>27)+1,k=bu(a)|0,(bv(a,5)|0)!=0?(f=1,f|0):(c[b+404>>2]=(k>>>27)+1,k=bu(a)|0,(bv(a,5)|0)!=0?(f=1,f|0):(c[b+408>>2]=k>>>27,f=0,f|0))))}function bA(a){a|=0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ab=0,ac=0,ad=0,ae=0,af=0,ag=0,ah=0,ai=0,ak=0,am=0,an=0,ao=0,ap=0,aq=0,ar=0,as=0,at=0,av=0,ay=0,az=0,aA=0,aB=0,aC=0,aD=0,aE=0,aF=0,aG=0,aH=0,aI=0,aJ=0,aK=0,aL=0;do{if(a>>>0<245){if(b=a>>>0<11?16:a+11&-8,d=b>>>3,e=c[4044]|0,f=e>>>(d>>>0),(f&3|0)!=0){g=(f&1^1)+d|0,h=g<<1,i=16216+(h<<2)|0,j=16216+(h+2<<2)|0,h=c[j>>2]|0,k=h+8|0,l=c[k>>2]|0;do{if((i|0)!=(l|0)){if(l>>>0<(c[4048]|0)>>>0)return au(),0;if(m=l+12|0,(c[m>>2]|0)==(h|0)){c[m>>2]=i,c[j>>2]=l;break}return au(),0}c[4044]=e&~(1<<g)}while(0);return l=g<<3,c[h+4>>2]=l|3,j=h+(l|4)|0,c[j>>2]=c[j>>2]|1,n=k,n|0}if(b>>>0<=(c[4046]|0)>>>0){o=b;break}if((f|0)!=0){j=2<<d,l=f<<d&(j|-j),j=(l&-l)-1|0,l=j>>>12&16,i=j>>>(l>>>0),j=i>>>5&8,m=i>>>(j>>>0),i=m>>>2&4,p=m>>>(i>>>0),m=p>>>1&2,q=p>>>(m>>>0),p=q>>>1&1,r=(j|l|i|m|p)+(q>>>(p>>>0))|0,p=r<<1,q=16216+(p<<2)|0,m=16216+(p+2<<2)|0,p=c[m>>2]|0,i=p+8|0,l=c[i>>2]|0;do{if((q|0)!=(l|0)){if(l>>>0<(c[4048]|0)>>>0)return au(),0;if(j=l+12|0,(c[j>>2]|0)==(p|0)){c[j>>2]=q,c[m>>2]=l;break}return au(),0}c[4044]=e&~(1<<r)}while(0);if(l=r<<3,m=l-b|0,c[p+4>>2]=b|3,q=p,e=q+b|0,c[q+(b|4)>>2]=m|1,c[q+l>>2]=m,l=c[4046]|0,(l|0)!=0){q=c[4049]|0,d=l>>>3,l=d<<1,f=16216+(l<<2)|0,k=c[4044]|0,h=1<<d;do{if((k&h|0)!=0){if(d=16216+(l+2<<2)|0,g=c[d>>2]|0,g>>>0>=(c[4048]|0)>>>0){s=g,t=d;break}return au(),0}c[4044]=k|h,s=f,t=16216+(l+2<<2)|0}while(0);c[t>>2]=q,c[s+12>>2]=q,c[q+8>>2]=s,c[q+12>>2]=f}return c[4046]=m,c[4049]=e,n=i,n|0}if(l=c[4045]|0,(l|0)==0){o=b;break}for(h=(l&-l)-1|0,l=h>>>12&16,k=h>>>(l>>>0),h=k>>>5&8,p=k>>>(h>>>0),k=p>>>2&4,r=p>>>(k>>>0),p=r>>>1&2,d=r>>>(p>>>0),r=d>>>1&1,g=c[16480+((h|l|k|p|r)+(d>>>(r>>>0))<<2)>>2]|0,r=g,d=g,p=(c[g+4>>2]&-8)-b|0;;){if(g=c[r+16>>2]|0,(g|0)==0){if(k=c[r+20>>2]|0,(k|0)==0)break;u=k}else u=g;g=(c[u+4>>2]&-8)-b|0,k=g>>>0<p>>>0,r=u,d=k?u:d,p=k?g:p}if(r=d,i=c[4048]|0,r>>>0<i>>>0)return au(),0;if(e=r+b|0,m=e,r>>>0>=e>>>0)return au(),0;e=c[d+24>>2]|0,f=c[d+12>>2]|0;do{if((f|0)==(d|0)){if(q=d+20|0,g=c[q>>2]|0,(g|0)==0){if(k=d+16|0,l=c[k>>2]|0,(l|0)==0){v=0;break}w=l,x=k}else w=g,x=q;for(;;)if(q=w+20|0,g=c[q>>2]|0,(g|0)==0){if(q=w+16|0,g=c[q>>2]|0,(g|0)==0)break;w=g,x=q}else w=g,x=q;if(x>>>0<i>>>0)return au(),0;c[x>>2]=0,v=w;break}if(q=c[d+8>>2]|0,q>>>0<i>>>0)return au(),0;if(g=q+12|0,(c[g>>2]|0)!=(d|0))return au(),0;
\ No newline at end of file
-module._free(pPicId),module._free(pIsIdrPic),module._free(pNumErrMbs);var outputSizeMB=this.outputSizeMB(),outputLength=16*outputSizeMB.width*outputSizeMB.height*16*4,outputBytes=new Uint8Array(module.HEAPU8.subarray(pBytes,pBytes+outputLength));return outputBytes},H264bsdDecoder.prototype.outputSizeMB=function(){var module=this.module,pStorage=this.pStorage,width=module._h264bsdPicWidth(pStorage),height=module._h264bsdPicHeight(pStorage);return{width:width,height:height}},H264bsdDecoder.prototype.croppingInfo=function(){var module=this.module,pStorage=this.pStorage,pCroppingFlag=self.malloc_(4),pLeftOffset=self.malloc_(4),pWidth=self.malloc_(4),pTopOffset=self.malloc_(4),pHeight=self.malloc_(4);module._h264bsdCroppingParams(pStorage,pCroppingFlag,pLeftOffset,pWidth,pTopOffset,pHeight);var croppingFlag=self.Module.getValue(pCroppingFlag,"i32"),leftOffset=self.Module.getValue(pLeftOffset,"i32"),width=self.Module.getValue(pWidth,"i32"),topOffset=self.Module.getValue(pTopOffset,"i32"),height=self.Module.getValue(pHeight,"i32");return module._free(pCroppingFlag),module._free(pLeftOffset),module._free(pWidth),module._free(pTopOffset),module._free(pHeight),0===croppingFlag?null:{width:width,height:height,top:topOffset,left:leftOffset}},H264bsdCanvas.prototype.initContextGL=function(){for(var canvas=this.canvasElement,gl=null,validContextNames=["webgl","experimental-webgl","moz-webgl","webkit-3d"],nameIndex=0;!gl&&nameIndex<validContextNames.length;){var contextName=validContextNames[nameIndex];try{gl=canvas.getContext(contextName)}catch(e){gl=null}gl&&"function"==typeof gl.getParameter||(gl=null),++nameIndex}this.contextGL=gl},H264bsdCanvas.prototype.initProgram=function(){var gl=this.contextGL,vertexShaderScript=["attribute vec4 vertexPos;","attribute vec4 texturePos;","varying vec2 textureCoord;","void main()","{","gl_Position = vertexPos;","textureCoord = texturePos.xy;","}"].join("\n"),fragmentShaderScript=["precision highp float;","varying highp vec2 textureCoord;","uniform sampler2D ySampler;","uniform sampler2D uSampler;","uniform sampler2D vSampler;","const mat4 YUV2RGB = mat4","(","1.1643828125, 0, 1.59602734375, -.87078515625,","1.1643828125, -.39176171875, -.81296875, .52959375,","1.1643828125, 2.017234375, 0, -1.081390625,","0, 0, 0, 1",");","void main(void) {","highp float y = texture2D(ySampler,  textureCoord).r;","highp float u = texture2D(uSampler,  textureCoord).r;","highp float v = texture2D(vSampler,  textureCoord).r;","gl_FragColor = vec4(y, u, v, 1) * YUV2RGB;","}"].join("\n"),vertexShader=gl.createShader(gl.VERTEX_SHADER);gl.shaderSource(vertexShader,vertexShaderScript),gl.compileShader(vertexShader),gl.getShaderParameter(vertexShader,gl.COMPILE_STATUS)||console.log("Vertex shader failed to compile: "+gl.getShaderInfoLog(vertexShader));var fragmentShader=gl.createShader(gl.FRAGMENT_SHADER);gl.shaderSource(fragmentShader,fragmentShaderScript),gl.compileShader(fragmentShader),gl.getShaderParameter(fragmentShader,gl.COMPILE_STATUS)||console.log("Fragment shader failed to compile: "+gl.getShaderInfoLog(fragmentShader));var program=gl.createProgram();gl.attachShader(program,vertexShader),gl.attachShader(program,fragmentShader),gl.linkProgram(program),gl.getProgramParameter(program,gl.LINK_STATUS)||console.log("Program failed to compile: "+gl.getProgramInfoLog(program)),gl.useProgram(program),this.shaderProgram=program},H264bsdCanvas.prototype.initBuffers=function(){var gl=this.contextGL,program=this.shaderProgram,vertexPosBuffer=gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER,vertexPosBuffer),gl.bufferData(gl.ARRAY_BUFFER,new Float32Array([1,1,-1,1,1,-1,-1,-1]),gl.STATIC_DRAW);var vertexPosRef=gl.getAttribLocation(program,"vertexPos");gl.enableVertexAttribArray(vertexPosRef),gl.vertexAttribPointer(vertexPosRef,2,gl.FLOAT,!1,0,0);var texturePosBuffer=gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER,texturePosBuffer),gl.bufferData(gl.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),gl.STATIC_DRAW);var texturePosRef=gl.getAttribLocation(program,"texturePos");gl.enableVertexAttribArray(texturePosRef),gl.vertexAttr
\ No newline at end of file
+function globalEval(x){eval.call(null,x)}function assert(condition,text){condition||abort("Assertion failed: "+text)}function ccall(ident,returnType,argTypes,args){return ccallFunc(getCFunc(ident),returnType,argTypes,args)}function getCFunc(ident){try{var func=Module["_"+ident];func||(func=eval("_"+ident))}catch(e){}return assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)"),func}function ccallFunc(func,returnType,argTypes,args){function toC(value,type){if("string"==type){if(null===value||void 0===value||0===value)return 0;value=intArrayFromString(value),type="array"}if("array"==type){stack||(stack=Runtime.stackSave());var ret=Runtime.stackAlloc(value.length);return writeArrayToMemory(value,ret),ret}return value}function fromC(value,type){return"string"==type?Pointer_stringify(value):(assert("array"!=type),value)}var stack=0,i=0,cArgs=args?args.map(function(arg){return toC(arg,argTypes[i++])}):[],ret=fromC(func.apply(null,cArgs),returnType);return stack&&Runtime.stackRestore(stack),ret}function cwrap(ident,returnType,argTypes){var func=getCFunc(ident);return function(){return ccallFunc(func,returnType,argTypes,Array.prototype.slice.call(arguments))}}function setValue(ptr,value,type){switch(type=type||"i8","*"===type.charAt(type.length-1)&&(type="i32"),type){case"i1":HEAP8[ptr]=value;break;case"i8":HEAP8[ptr]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=1?tempDouble>0?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}function getValue(ptr,type){switch(type=type||"i8","*"===type.charAt(type.length-1)&&(type="i32"),type){case"i1":return HEAP8[ptr];case"i8":return HEAP8[ptr];case"i16":return HEAP16[ptr>>1];case"i32":return HEAP32[ptr>>2];case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for setValue: "+type)}return null}function allocate(slab,types,allocator,ptr){var zeroinit,size;"number"==typeof slab?(zeroinit=!0,size=slab):(zeroinit=!1,size=slab.length);var ret,singleType="string"==typeof types?types:null;if(ret=allocator==ALLOC_NONE?ptr:[_malloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][void 0===allocator?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length)),zeroinit){var stop,ptr=ret;for(assert(0==(3&ret)),stop=ret+(-4&size);stop>ptr;ptr+=4)HEAP32[ptr>>2]=0;for(stop=ret+size;stop>ptr;)HEAP8[0|ptr++]=0;return ret}if("i8"===singleType)return slab.subarray||slab.slice?HEAPU8.set(slab,ret):HEAPU8.set(new Uint8Array(slab),ret),ret;for(var type,typeSize,previousType,i=0;size>i;){var curr=slab[i];"function"==typeof curr&&(curr=Runtime.getFunctionIndex(curr)),type=singleType||types[i],0!==type?("i64"==type&&(type="i32"),setValue(ret+i,curr,type),previousType!==type&&(typeSize=Runtime.getNativeTypeSize(type),previousType=type),i+=typeSize):i++}return ret}function Pointer_stringify(ptr,length){for(var t,hasUtf=!1,i=0;;){if(t=HEAPU8[ptr+i|0],t>=128)hasUtf=!0;else if(0==t&&!length)break;if(i++,length&&i==length)break}length||(length=i);var ret="";if(!hasUtf){for(var curr,MAX_CHUNK=1024;length>0;)curr=String.fromCharCode.apply(String,HEAPU8.subarray(ptr,ptr+Math.min(length,MAX_CHUNK))),ret=ret?ret+curr:curr,ptr+=MAX_CHUNK,length-=MAX_CHUNK;return ret}var utf8=new Runtime.UTF8Processor;for(i=0;length>i;i++)t=HEAPU8[ptr+i|0],ret+=utf8.processCChar(t);return ret}function UTF16ToString(ptr){for(var i=0,str="";;){var codeUnit=HEAP16[ptr+2*i>>1];if(0==codeUnit)return str;++i,str+=String.fromCharCode(codeUnit)}}function stringToUTF16(str,outPtr){for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr+2*i>>1]=codeUnit}HEAP16[outPtr+2*str.length>>1]=0}function UTF32ToString(ptr){for(v
\ No newline at end of file
+var __THREW__=0,ABORT=!1,EXITSTATUS=0,undef=0,tempValue,tempInt,tempBigInt,tempInt2,tempBigInt2,tempPair,tempBigIntI,tempBigIntR,tempBigIntS,tempBigIntP,tempBigIntD,tempDouble,tempFloat,tempI64,tempI64b,tempRet0,tempRet1,tempRet2,tempRet3,tempRet4,tempRet5,tempRet6,tempRet7,tempRet8,tempRet9,globalScope=this;Module.ccall=ccall,Module.cwrap=cwrap,Module.setValue=setValue,Module.getValue=getValue;var ALLOC_NORMAL=0,ALLOC_STACK=1,ALLOC_STATIC=2,ALLOC_DYNAMIC=3,ALLOC_NONE=4;Module.ALLOC_NORMAL=ALLOC_NORMAL,Module.ALLOC_STACK=ALLOC_STACK,Module.ALLOC_STATIC=ALLOC_STATIC,Module.ALLOC_DYNAMIC=ALLOC_DYNAMIC,Module.ALLOC_NONE=ALLOC_NONE,Module.allocate=allocate,Module.Pointer_stringify=Pointer_stringify,Module.UTF16ToString=UTF16ToString,Module.stringToUTF16=stringToUTF16,Module.UTF32ToString=UTF32ToString,Module.stringToUTF32=stringToUTF32;for(var PAGE_SIZE=4096,HEAP,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,STATIC_BASE=0,STATICTOP=0,staticSealed=!1,STACK_BASE=0,STACKTOP=0,STACK_MAX=0,DYNAMIC_BASE=0,DYNAMICTOP=0,TOTAL_STACK=Module.TOTAL_STACK||5242880,TOTAL_MEMORY=Module.TOTAL_MEMORY||268435456,FAST_MEMORY=Module.FAST_MEMORY||2097152,totalMemory=4096;TOTAL_MEMORY>totalMemory||2*TOTAL_STACK>totalMemory;)16777216>totalMemory?totalMemory*=2:totalMemory+=16777216;totalMemory!==TOTAL_MEMORY&&(Module.printErr("increasing TOTAL_MEMORY to "+totalMemory+" to be more reasonable"),TOTAL_MEMORY=totalMemory),assert("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"JS engine does not provide full typed array support");var buffer=new ArrayBuffer(TOTAL_MEMORY);HEAP8=new Int8Array(buffer),HEAP16=new Int16Array(buffer),HEAP32=new Int32Array(buffer),HEAPU8=new Uint8Array(buffer),HEAPU16=new Uint16Array(buffer),HEAPU32=new Uint32Array(buffer),HEAPF32=new Float32Array(buffer),HEAPF64=new Float64Array(buffer),HEAP32[0]=255,assert(255===HEAPU8[0]&&0===HEAPU8[3],"Typed arrays 2 must be run on a little-endian system"),Module.HEAP=HEAP,Module.HEAP8=HEAP8,Module.HEAP16=HEAP16,Module.HEAP32=HEAP32,Module.HEAPU8=HEAPU8,Module.HEAPU16=HEAPU16,Module.HEAPU32=HEAPU32,Module.HEAPF32=HEAPF32,Module.HEAPF64=HEAPF64;var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATEXIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1;Module.addOnPreRun=Module.addOnPreRun=addOnPreRun,Module.addOnInit=Module.addOnInit=addOnInit,Module.addOnPreMain=Module.addOnPreMain=addOnPreMain,Module.addOnExit=Module.addOnExit=addOnExit,Module.addOnPostRun=Module.addOnPostRun=addOnPostRun,Module.intArrayFromString=intArrayFromString,Module.intArrayToString=intArrayToString,Module.writeStringToMemory=writeStringToMemory,Module.writeArrayToMemory=writeArrayToMemory,Module.writeAsciiToMemory=writeAsciiToMemory,Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(a,b){var ah=a>>>16,al=65535&a,bh=b>>>16,bl=65535&b;return al*bl+(ah*bl+al*bh<<16)|0}),Math.imul=Math.imul;var Math_abs=Math.abs,Math_cos=Math.cos,Math_sin=Math.sin,Math_tan=Math.tan,Math_acos=Math.acos,Math_asin=Math.asin,Math_atan=Math.atan,Math_atan2=Math.atan2,Math_exp=Math.exp,Math_log=Math.log,Math_sqrt=Math.sqrt,Math_ceil=Math.ceil,Math_floor=Math.floor,Math_pow=Math.pow,Math_imul=Math.imul,Math_fround=Math.fround,Math_min=Math.min,runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;Module.addRunDependency=addRunDependency,Module.removeRunDependency=removeRunDependency,Module.preloadedImages={},Module.preloadedAudios={};var memoryInitializer=null;STATIC_BASE=8,STATICTOP=STATIC_BASE+Runtime.alignMemory(9235),__ATINIT__.push(),allocate([17,1,0,0,0,0,0,0,34,18,1,1,0,0,0,0,50,34,18,2,0,0,0,0,67,51,34,34,18,18,2,2,83,67,51,35,18,18,2,2,19,35,67,51,99,83,2,2,0,0,101,85,68,68,52,52,35,35,35,35,19,19,19,19,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,249,233,217,200,200,184,184,167,167,167,167,151,151,151,151,134,134,134,134,134,134,134,134,118,118,118,118,118,118,118,118,230,214,198,182,165,165,149,149,132,132,132,132,116,116,116,116,100,100,100,100,84,84,84,84,67,67,67,67,67,67,67,67,51,51,51,51,51,51,51,51,35,35,35,35,35,35,35,35,19,19,19,
\ No newline at end of file
+return splitPathRe.exec(filename).slice(1)},normalizeArray:function(parts,allowAboveRoot){for(var up=0,i=parts.length-1;i>=0;i--){var last=parts[i];"."===last?parts.splice(i,1):".."===last?(parts.splice(i,1),up++):up&&(parts.splice(i,1),up--)}if(allowAboveRoot)for(;up--;up)parts.unshift("..");return parts},normalize:function(path){var isAbsolute="/"===path.charAt(0),trailingSlash="/"===path.substr(-1);return path=PATH.normalizeArray(path.split("/").filter(function(p){return!!p}),!isAbsolute).join("/"),path||isAbsolute||(path="."),path&&trailingSlash&&(path+="/"),(isAbsolute?"/":"")+path},dirname:function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];return root||dir?(dir&&(dir=dir.substr(0,dir.length-1)),root+dir):"."},basename:function(path){if("/"===path)return"/";var lastSlash=path.lastIndexOf("/");return-1===lastSlash?path:path.substr(lastSlash+1)},extname:function(path){return PATH.splitPath(path)[3]},join:function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))},join2:function(l,r){return PATH.normalize(l+"/"+r)},resolve:function(){for(var resolvedPath="",resolvedAbsolute=!1,i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(resolvedPath=path+"/"+resolvedPath,resolvedAbsolute="/"===path.charAt(0))}return resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter(function(p){return!!p}),!resolvedAbsolute).join("/"),(resolvedAbsolute?"/":"")+resolvedPath||"."},relative:function(from,to){function trim(arr){for(var start=0;start<arr.length&&""===arr[start];start++);for(var end=arr.length-1;end>=0&&""===arr[end];end--);return start>end?[]:arr.slice(start,end-start+1)}from=PATH.resolve(from).substr(1),to=PATH.resolve(to).substr(1);for(var fromParts=trim(from.split("/")),toParts=trim(to.split("/")),length=Math.min(fromParts.length,toParts.length),samePartsLength=length,i=0;length>i;i++)if(fromParts[i]!==toParts[i]){samePartsLength=i;break}for(var outputParts=[],i=samePartsLength;i<fromParts.length;i++)outputParts.push("..");return outputParts=outputParts.concat(toParts.slice(samePartsLength)),outputParts.join("/")}},TTY={ttys:[],init:function(){},shutdown:function(){},register:function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops},FS.registerDevice(dev,TTY.stream_ops)},stream_ops:{open:function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty)throw new FS.ErrnoError(ERRNO_CODES.ENODEV);stream.tty=tty,stream.seekable=!1},close:function(stream){stream.tty.output.length&&stream.tty.ops.put_char(stream.tty,10)},read:function(stream,buffer,offset,length){if(!stream.tty||!stream.tty.ops.get_char)throw new FS.ErrnoError(ERRNO_CODES.ENXIO);for(var bytesRead=0,i=0;length>i;i++){var result;try{result=stream.tty.ops.get_char(stream.tty)}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(void 0===result&&0===bytesRead)throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);if(null===result||void 0===result)break;bytesRead++,buffer[offset+i]=result}return bytesRead&&(stream.node.timestamp=Date.now()),bytesRead},write:function(stream,buffer,offset,length){if(!stream.tty||!stream.tty.ops.put_char)throw new FS.ErrnoError(ERRNO_CODES.ENXIO);for(var i=0;length>i;i++)try{stream.tty.ops.put_char(stream.tty,buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}return length&&(stream.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(tty){if(!tty.input.length){var result=null;if(ENVIRONMENT_IS_NODE){if(result=process.stdin.read(),!result)return process.stdin._readableState&&process.stdin._readableState.ended?null:void 0}else"undefined"!=typeof window&&"function"==typeof window.prompt?(result=window.prompt("Input: "),null!==result&&(result+="\n")):"function"==typeof readline&&(result=readline(),null!==result&&(result+="\n"));if(!result)return null;tty.input=intArrayFromString(result,!0)}return tty.input.shift()},put_char:function(tty,val){null===val||10===val?(Module.print(tty.output.join("")),tty.output=[]):tty.output
\ No newline at end of file
+parent.node_ops.unlink(parent,name),FS.destroyNode(node)},readlink:function(path){var lookup=FS.lookupPath(path),link=lookup.node;if(!link.node_ops.readlink)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);return link.node_ops.readlink(link)},stat:function(path,dontFollow){var lookup=FS.lookupPath(path,{follow:!dontFollow}),node=lookup.node;if(!node.node_ops.getattr)throw new FS.ErrnoError(ERRNO_CODES.EPERM);return node.node_ops.getattr(node)},lstat:function(path){return FS.stat(path,!0)},chmod:function(path,mode,dontFollow){var node;if("string"==typeof path){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else node=path;if(!node.node_ops.setattr)throw new FS.ErrnoError(ERRNO_CODES.EPERM);node.node_ops.setattr(node,{mode:4095&mode|-4096&node.mode,timestamp:Date.now()})},lchmod:function(path,mode){FS.chmod(path,mode,!0)},fchmod:function(fd,mode){var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);FS.chmod(stream.node,mode)},chown:function(path,uid,gid,dontFollow){var node;if("string"==typeof path){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else node=path;if(!node.node_ops.setattr)throw new FS.ErrnoError(ERRNO_CODES.EPERM);node.node_ops.setattr(node,{timestamp:Date.now()})},lchown:function(path,uid,gid){FS.chown(path,uid,gid,!0)},fchown:function(fd,uid,gid){var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);FS.chown(stream.node,uid,gid)},truncate:function(path,len){if(0>len)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var node;if("string"==typeof path){var lookup=FS.lookupPath(path,{follow:!0});node=lookup.node}else node=path;if(!node.node_ops.setattr)throw new FS.ErrnoError(ERRNO_CODES.EPERM);if(FS.isDir(node.mode))throw new FS.ErrnoError(ERRNO_CODES.EISDIR);if(!FS.isFile(node.mode))throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var err=FS.nodePermissions(node,"w");if(err)throw new FS.ErrnoError(err);node.node_ops.setattr(node,{size:len,timestamp:Date.now()})},ftruncate:function(fd,len){var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);if(0===(2097155&stream.flags))throw new FS.ErrnoError(ERRNO_CODES.EINVAL);FS.truncate(stream.node,len)},utime:function(path,atime,mtime){var lookup=FS.lookupPath(path,{follow:!0}),node=lookup.node;node.node_ops.setattr(node,{timestamp:Math.max(atime,mtime)})},open:function(path,flags,mode,fd_start,fd_end){flags="string"==typeof flags?FS.modeStringToFlags(flags):flags,mode="undefined"==typeof mode?438:mode,mode=64&flags?4095&mode|32768:0;var node;if("object"==typeof path)node=path;else{path=PATH.normalize(path);try{var lookup=FS.lookupPath(path,{follow:!(131072&flags)});node=lookup.node}catch(e){}}if(64&flags)if(node){if(128&flags)throw new FS.ErrnoError(ERRNO_CODES.EEXIST)}else node=FS.mknod(path,mode,0);if(!node)throw new FS.ErrnoError(ERRNO_CODES.ENOENT);FS.isChrdev(node.mode)&&(flags&=-513);var err=FS.mayOpen(node,flags);if(err)throw new FS.ErrnoError(err);512&flags&&FS.truncate(node,0),flags&=-641;var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:!0,position:0,stream_ops:node.stream_ops,ungotten:[],error:!1},fd_start,fd_end);return stream.stream_ops.open&&stream.stream_ops.open(stream),!Module.logReadFiles||1&flags||(FS.readFiles||(FS.readFiles={}),path in FS.readFiles||(FS.readFiles[path]=1,Module.printErr("read file: "+path))),stream},close:function(stream){try{stream.stream_ops.close&&stream.stream_ops.close(stream)}catch(e){throw e}finally{FS.closeStream(stream.fd)}},llseek:function(stream,offset,whence){if(!stream.seekable||!stream.stream_ops.llseek)throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);return stream.stream_ops.llseek(stream,offset,whence)},read:function(stream,buffer,offset,length,position){if(0>length||0>position)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);if(1===(2097155&stream.flags))throw new FS.ErrnoError(ERRNO_CODES.EBADF);if(FS.isDir(stream.node.mode))throw new FS.ErrnoError(ERRNO_CODES.EISDIR);if(!stream.stream_ops.read)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var seeking=!0;if("undefined"==typeof positi
\ No newline at end of file
+}catch(e){return fail()}var url=Browser.URLObject.createObjectURL(b),audio=new Audio;audio.addEventListener("canplaythrough",function(){finish(audio)},!1),audio.onerror=function(){function encode64(data){for(var BASE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",PAD="=",ret="",leftchar=0,leftbits=0,i=0;i<data.length;i++)for(leftchar=leftchar<<8|data[i],leftbits+=8;leftbits>=6;){var curr=leftchar>>leftbits-6&63;leftbits-=6,ret+=BASE[curr]}return 2==leftbits?(ret+=BASE[(3&leftchar)<<4],ret+=PAD+PAD):4==leftbits&&(ret+=BASE[(15&leftchar)<<2],ret+=PAD),ret}done||(console.log("warning: browser could not fully decode audio "+name+", trying slower base64 approach"),audio.src="data:audio/x-"+name.substr(-3)+";base64,"+encode64(byteArray),finish(audio))},audio.src=url,Browser.safeSetTimeout(function(){finish(audio)},1e4)},Module.preloadPlugins.push(audioPlugin);var canvas=Module.canvas;canvas.requestPointerLock=canvas.requestPointerLock||canvas.mozRequestPointerLock||canvas.webkitRequestPointerLock||canvas.msRequestPointerLock||function(){},canvas.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},canvas.exitPointerLock=canvas.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",pointerLockChange,!1),document.addEventListener("mozpointerlockchange",pointerLockChange,!1),document.addEventListener("webkitpointerlockchange",pointerLockChange,!1),document.addEventListener("mspointerlockchange",pointerLockChange,!1),Module.elementPointerLock&&canvas.addEventListener("click",function(ev){!Browser.pointerLock&&canvas.requestPointerLock&&(canvas.requestPointerLock(),ev.preventDefault())},!1)}},createContext:function(canvas,useWebGL,setInModule,webGLContextAttributes){function onContextCreationError(event){errorInfo=event.statusMessage||errorInfo}var ctx,errorInfo="?";try{if(useWebGL){var contextAttributes={antialias:!1,alpha:!1};if(webGLContextAttributes)for(var attribute in webGLContextAttributes)contextAttributes[attribute]=webGLContextAttributes[attribute];canvas.addEventListener("webglcontextcreationerror",onContextCreationError,!1);try{["experimental-webgl","webgl"].some(function(webglId){return ctx=canvas.getContext(webglId,contextAttributes)})}finally{canvas.removeEventListener("webglcontextcreationerror",onContextCreationError,!1)}}else ctx=canvas.getContext("2d");if(!ctx)throw":("}catch(e){return Module.print("Could not create canvas: "+[errorInfo,e]),null}return useWebGL&&(canvas.style.backgroundColor="black",canvas.addEventListener("webglcontextlost",function(){alert("WebGL context lost. You will need to reload the page.")},!1)),setInModule&&(GLctx=Module.ctx=ctx,Module.useWebGL=useWebGL,Browser.moduleContextCreatedCallbacks.forEach(function(callback){callback()}),Browser.init()),ctx},destroyContext:function(){},fullScreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullScreen:function(lockPointer,resizeCanvas){function fullScreenChange(){if(Browser.isFullScreen=!1,(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===canvasContainer)canvas.cancelFullScreen=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen||document.exitFullscreen||function(){},canvas.cancelFullScreen=canvas.cancelFullScreen.bind(document),Browser.lockPointer&&canvas.requestPointerLock(),Browser.isFullScreen=!0,Browser.resizeCanvas&&Browser.setFullScreenCanvasSize();else{var canvasContainer=canvas.parentNode;canvasContainer.parentNode.insertBefore(canvas,canvasContainer),canvasContainer.parentNode.removeChild(canvasContainer),Browser.resizeCanvas&&Browser.setWindowedCanvasSize()}Module.onFullScreen&&Module.onFullScreen(Browser.isFullScreen),Browser.updateCanvasDimensions(canvas)}Browser.lockPointer=lockPoi
\ No newline at end of file
+m=i,i=i+144|0,o=m,p=o;do if((e|0)<0)n=4;else{if((k+e|0)>>>0>g>>>0|(f|0)<0){n=4;break}(f+1+l|0)>>>0>h>>>0&&(n=4)}while(0);if((n|0)==4&&(B=l+1|0,Yb(b,p,e,f,g,h,k,B,k),Yb(b+(_(h,g)|0)|0,o+(_(B,k)|0)|0,e,f,g,h,k,B,k),b=p,e=0,f=0,g=k,h=B),n=8-j|0,u=l>>>1,v=(u|0)==0,o=k>>>1,p=(o|0)==0,l=16-k|0,q=g<<1,r=q-k|0,s=q|1,t=g+1|0,k=o<<1,v)return void(i=m);for(z=c,x=b+((_(f,g)|0)+e)|0,w=u;;){if(p)y=z;else{for(y=z+k|0,A=x,B=o;;){if(C=d[A+g|0]|0,D=d[A]|0,a[z+8|0]=(((_(C,n)|0)+(_(d[A+q|0]|0,j)|0)<<3)+32|0)>>>6,a[z]=(((_(D,n)|0)+(_(C,j)|0)<<3)+32|0)>>>6,C=d[A+t|0]|0,D=d[A+1|0]|0,a[z+9|0]=(((_(C,n)|0)+(_(d[A+s|0]|0,j)|0)<<3)+32|0)>>>6,a[z+1|0]=(((_(D,n)|0)+(_(C,j)|0)<<3)+32|0)>>>6,B=B+-1|0,(B|0)==0)break;A=A+2|0,z=z+2|0}x=x+k|0}if(w=w+-1|0,(w|0)==0)break;z=y+l|0,x=x+r|0}if(v)return void(i=m);for(c=c+64|0,b=b+((_(h+f|0,g)|0)+e)|0;;){if(!p){for(e=c+k|0,f=b,h=o;;){if(D=d[f+g|0]|0,C=d[f]|0,a[c+8|0]=(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v+x|0,y=d[r]|0,a[p+16|0]=a[(A+16-z-(z<<2)+y+((u+w|0)*20|0)>>5)+5224|0]|0,w=y+w|0,a[p]=a[(x+16-w-(w<<2)+(d[r+m|0]|0)+((v+u|0)*20|0)>>5)+5224|0]|0,t=t+-1|0,(t|0)==0)break;s=s+1|0,r=r+1|0,p=p+1|0}p=q,c=c+j|0,b=b+j|0}if(o=o+-1|0,(o|0)==0)break;p=p+n|0,c=c+e|0,b=b+e|0}i=l}function ac(b,c,e,f,g,h,j,k,l){b|=0,c|=0,e|=0,f|=0,g|=0,h|=0,j|=0,k|=0,l|=0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;m=i,i=i+448|0,o=m;do if((e|0)<0)n=4;else{if((j+e|0)>>>0>g>>>0|(f|0)<0){n=4;break}(f+5+k|0)>>>0>h>>>0&&(n=4)}while(0);if((n|0)==4&&(Yb(b,o,e,f,g,h,j,k+5|0,j),b=o,e=0,f=0,g=j),s=e+g+(_(f,g)|0)|0,p=k>>>2,(p|0)==0)return void(i=m);for(h=(j|0)==0,e=(g<<2)-j|0,o=64-j|0,n=0-g|0,f=n<<1,k=g<<1,q=c,c=b+s|0,r=b+(s+(_(g,l+2|0)|0))|0,l=b+(s+(g*5|0))|0;;){if(h)b=r;else{for(b=r+j|0,s=q+j|0,u=j,t=c,v=l;;){if(y=d[v+f|0]|0,z=d[v+n|0]|0,A=d[v+g|0]|0,C=d[v]|0,B=A+y|0,w=d[t+k|0]|0,a[q+48|0]=((d[((d[v+k|0]|0)+16-B-(B<<2)+w+((C+z|0)*20|0)>>5)+5224|0]|0)+1+(d[r+k|0]|0)|0)>>>1,B=w+C|0,x=d[t
\ No newline at end of file
+var d=0,e=0,f=0,g=0;d=i,i=i+32|0,e=d,g=d+8|0,f=g,c[g+0>>2]=c[a+0>>2],c[g+4>>2]=c[a+4>>2],c[g+8>>2]=c[a+8>>2],c[g+12>>2]=c[a+12>>2],c[g+16>>2]=c[a+16>>2],a=Rc(f,e)|0;do if((a|0)==0){if(a=Rc(f,e)|0,(a|0)!=0)break;if(a=Rc(f,e)|0,(a|0)!=0)break;if(e=c[e>>2]|0,e>>>0>255){a=1;break}c[b>>2]=e,a=0}while(0);return i=d,a|0}function pc(a,b,d){a|=0,b|=0,d|=0;var e=0,f=0,g=0,h=0;if(e=i,i=i+32|0,g=e,h=e+8|0,f=h,c[h+0>>2]=c[a+0>>2],c[h+4>>2]=c[a+4>>2],c[h+8>>2]=c[a+8>>2],c[h+12>>2]=c[a+12>>2],c[h+16>>2]=c[a+16>>2],a=Rc(f,g)|0,(a|0)!=0)return h=a,i=e,h|0;if(a=Rc(f,g)|0,(a|0)!=0)return h=a,i=e,h|0;if(g=Rc(f,g)|0,(g|0)!=0)return h=g,i=e,h|0;for(g=0;;){if((b>>>g|0)==0)break;g=g+1|0}return b=Fc(f,g+-1|0)|0,(b|0)==-1?(h=1,i=e,h|0):(c[d>>2]=b,h=0,i=e,h|0)}function qc(a,b,d,e){a|=0,b|=0,d|=0,e|=0;var f=0,g=0,h=0;if(f=i,i=i+32|0,g=f,h=f+8|0,(d|0)!=5)return a=1,i=f,a|0;if(d=h,c[h+0>>2]=c[a+0>>2],c[h+4>>2]=c[a+4>>2],c[h+8>>2]=c[a+8>>2],c[h+12>>2]=c[a+12>>2],c[h+16>>2]=c[a+16>>2],h=Rc(d,g)|0,(h|0)!=0)return a=h,i=f,a|0;if(h=Rc(d,g)|0,(h|0)!=0)return a=h,i=f,a|0;if(g=Rc(d,g)|0,(g|0)!=0)return a=g,i=f,a|0;for(g=0;;){if((b>>>g|0)==0)break;g=g+1|0}return(Fc(d,g+-1|0)|0)==-1?(a=1,i=f,a|0):(a=Rc(d,e)|0,i=f,a|0)}function rc(a,b,d,e){a|=0,b|=0,d|=0,e|=0;var f=0,g=0,h=0,j=0;if(f=i,i=i+32|0,h=f,j=f+8|0,g=j,c[j+0>>2]=c[a+0>>2],c[j+4>>2]=c[a+4>>2],c[j+8>>2]=c[a+8>>2],c[j+12>>2]=c[a+12>>2],c[j+16>>2]=c[a+16>>2],a=Rc(g,h)|0,(a|0)!=0)return j=a,i=f,j|0;if(a=Rc(g,h)|0,(a|0)!=0)return j=a,i=f,j|0;if(a=Rc(g,h)|0,(a|0)!=0)return j=a,i=f,j|0;for(j=c[b+12>>2]|0,a=0;;){if((j>>>a|0)==0)break;a=a+1|0}if((Fc(g,a+-1|0)|0)==-1)return j=1,i=f,j|0;do if((d|0)==5){if(h=Rc(g,h)|0,(h|0)==0)break;return i=f,h|0}while(0);for(h=c[b+20>>2]|0,b=0;;){if((h>>>b|0)==0)break;b=b+1|0}return g=Fc(g,b+-1|0)|0,(g|0)==-1?(j=1,i=f,j|0):(c[e>>2]=g,j=0,i=f,j|0)}function sc(a,b,d,e){a|=0,b|=0,d|=0,e|=0;var f=0,g=0,h=0,j=0;if(f=i,i=i+32|0,h=f,j=f+8|0,g=j,c[j+0>>2]=c[a+0>>2],c[j+4>>2]=c[a+4>>2],c[j+8>>2]=c[a+8>>2],c[j+12>>2]=c[a+12>>2],c[j+16>>2]=c[a+16>>2],a=Rc(g,h)|0,(a|0)!=0)return j=a,i=f,j|0;if(a=Rc(g,h)|0,(a|0)!=0)return j=a,i=f,j|0;if(a=Rc(g,h)|0,(a|0)!=0)return j=a,i=f,j|0;for(j=c[b+12>>2]|0,a=0;;){if((j>>>a|0)==0)break;a=a+1|0}if((Fc(g,a+-1|0)|0)==-1)return j=1,i=f,j|0;do if((d|0)==5){if(h=Rc(g,h)|0,(h|0)==0)break;return i=f,h|0}while(0);for(h=c[b+20>>2]|0,b=0;;){if((h>>>b|0)==0)break;b=b+1|0}return(Fc(g,b+-1|0)|0)==-1?(j=1,i=f,j|0):(j=Sc(g,e)|0,i=f,j|0)}function tc(a,b,d,e,f){a|=0,b|=0,d|=0,e|=0,f|=0;var g=0,h=0,j=0,k=0;g=i,i=i+32|0,j=g,k=g+8|0,h=k,c[k+0>>2]=c[a+0>>2],c[k+4>>2]=c[a+4>>2],c[k+8>>2]=c[a+8>>2],c[k+12>>2]=c[a+12>>2],c[k+16>>2]=c[a+16>>2],a=Rc(h,j)|0;do if((a|0)==0){if(a=Rc(h,j)|0,(a|0)!=0)break;if(a=Rc(h,j)|0,(a|0)!=0)break;for(b=c[b+12>>2]|0,a=0;;){if((b>>>a|0)==0)break;a=a+1|0}if((Fc(h,a+-1|0)|0)==-1){a=1;break}if((d|0)==5&&(a=Rc(h,j)|0,(a|0)!=0))break;if(a=Sc(h,f)|0,(a|0)!=0)break;if((e|0)!=0&&(a=Sc(h,f+4|0)|0,(a|0)!=0))break;a=0}while(0);return i=g,a|0}function uc(a,b,d,e,f){a|=0,b|=0,d|=0,e|=0,f|=0;var g=0,h=0,j=0,k=0,l=0;if(f=i,i=i+40|0,h=f,j=f+8|0,l=f+16|0,g=l,c[l+0>>2]=c[b+0>>2],c[l+4>>2]=c[b+4>>2],c[l+8>>2]=c[b+8>>2],c[l+12>>2]=c[b+12>>2],c[l+16>>2]=c[b+16>>2],b=Rc(g,h)|0,(b|0)!=0)return l=b,i=f,l|0;if(b=Rc(g,h)|0,(b|0)!=0)return l=b,i=f,l|0;if(b=Rc(g,h)|0,(b|0)!=0)return l=b,i=f,l|0;for(k=c[d+12>>2]|0,b=0;;){if((k>>>b|0)==0)break;b=b+1|0}if((Fc(g,b+-1|0)|0)==-1)return l=1,i=f,l|0;if(b=Rc(g,h)|0,(b|0)!=0)return l=b,i=f,l|0;if(b=d+16|0,k=c[b>>2]|0,(k|0)==0){for(k=c[d+20>>2]|0,l=0;;){if((k>>>l|0)==0)break;l=l+1|0}if((Fc(g,l+-1|0)|0)==-1)return l=1,i=f,l|0;do if((c[e+8>>2]|0)!=0){if(k=Sc(g,j)|0,(k|0)==0)break;return i=f,k|0}while(0);k=c[b>>2]|0}do if((k|0)==1){if((c[d+24>>2]|0)!=0)break;if(d=Sc(g,j)|0,(d|0)!=0)return l=d,i=f,l|0;if((c[e+8>>2]|0)==0)break;if(k=Sc(g,j)|0,(k|0)==0)break;return i=f,k|0}while(0);do if((c[e+68>>2]|0)!=0){if(k=Rc(g,h)|0,(k|0)==0)break;return i=f,k|0}while(0);return l=Fc(g,1)|0,c[a>>2]=l,l=(l|0)==-1|0,i=f,l|0}function vc(a){a|=0;var b=0;b=i,_c(a|0,0,3396)|0,c[a+8>>2]=32,c[a+4>>2]=256,c[a+1332>>2]=1,i=b}function wc(a,b){a|=0,b|=0;var d=0,e=0,f=
\ No newline at end of file
+}else{q=9192;do{if(t=c[q>>2]|0,s=q+4|0,r=c[s>>2]|0,(n|0)==(t+r|0)){m=214;break}q=c[q+8>>2]|0}while((q|0)!=0);do if((m|0)==214){if((c[q+12>>2]&8|0)!=0)break;if(q=p,!(q>>>0>=t>>>0&q>>>0<n>>>0))break;c[s>>2]=r+o,d=(c[2189]|0)+o|0,e=p+8|0,e=(e&7|0)==0?0:0-e&7,z=d-e|0,c[2192]=q+e,c[2189]=z,c[q+(e+4)>>2]=z|1,c[q+(d+4)>>2]=40,c[2193]=c[2308];break i}while(0);n>>>0<(c[2190]|0)>>>0&&(c[2190]=n),q=n+o|0,s=9192;do{if(r=s,(c[r>>2]|0)==(q|0)){m=224;break}s=c[s+8>>2]|0}while((s|0)!=0);do if((m|0)==224){if((c[s+12>>2]&8|0)!=0)break;c[r>>2]=n,h=s+4|0,c[h>>2]=(c[h>>2]|0)+o,h=n+8|0,h=(h&7|0)==0?0:0-h&7,j=n+(o+8)|0,q=(j&7|0)==0?0:0-j&7,s=n+(q+o)|0,t=s,j=h+a|0,m=n+j|0,k=m,p=s-(n+h)-a|0,c[n+(h+4)>>2]=a|3;j:do if((t|0)==(c[2192]|0))z=(c[2189]|0)+p|0,c[2189]=z,c[2192]=k,c[n+(j+4)>>2]=z|1;else{if((t|0)==(c[2191]|0)){z=(c[2188]|0)+p|0,c[2188]=z,c[2191]=k,c[n+(j+4)>>2]=z|1,c[n+(z+j)>>2]=z;break}if(r=o+4|0,v=c[n+(r+q)>>2]|0,(v&3|0)==1){a=v&-8,u=v>>>3;k:do if(v>>>0<256){g=c[n+((q|8)+o)>>2]|0,r=c[n+(o+12+q)>>2]|0,s=8784+(u<<1<<2)|0;do if((g|0)!=(s|0)){if(g>>>0<(c[2190]|0)>>>0&&ka(),(c[g+12>>2]|0)==(t|0))break;ka()}while(0);if((r|0)==(g|0)){c[2186]=c[2186]&~(1<<u);break}do if((r|0)==(s|0))l=r+8|0;else{if(r>>>0<(c[2190]|0)>>>0&&ka(),s=r+8|0,(c[s>>2]|0)==(t|0)){l=s;break}ka()}while(0);c[g+12>>2]=r,c[l>>2]=g}else{l=c[n+((q|24)+o)>>2]|0,v=c[n+(o+12+q)>>2]|0;do if((v|0)==(s|0)){if(v=q|16,u=n+(r+v)|0,t=c[u>>2]|0,(t|0)==0&&(u=n+(v+o)|0,t=c[u>>2]|0,(t|0)==0)){g=0;break}for(;;)if(v=t+20|0,w=c[v>>2]|0,(w|0)==0){if(w=t+16|0,v=c[w>>2]|0,(v|0)==0)break;t=v,u=w}else u=v,t=w;if(!(u>>>0<(c[2190]|0)>>>0)){c[u>>2]=0,g=t;break}ka()}else{if(w=c[n+((q|8)+o)>>2]|0,w>>>0<(c[2190]|0)>>>0&&ka(),u=w+12|0,(c[u>>2]|0)!=(s|0)&&ka(),t=v+8|0,(c[t>>2]|0)==(s|0)){c[u>>2]=v,c[t>>2]=w,g=v;break}ka()}while(0);if((l|0)==0)break;t=c[n+(o+28+q)>>2]|0,u=9048+(t<<2)|0;do{if((s|0)==(c[u>>2]|0)){if(c[u>>2]=g,(g|0)!=0)break;c[2187]=c[2187]&~(1<<t);break k}if(l>>>0<(c[2190]|0)>>>0&&ka(),t=l+16|0,(c[t>>2]|0)==(s|0)?c[t>>2]=g:c[l+20>>2]=g,(g|0)==0)break k}while(0);g>>>0<(c[2190]|0)>>>0&&ka(),c[g+24>>2]=l,l=q|16,s=c[n+(l+o)>>2]|0;do if((s|0)!=0){if(!(s>>>0<(c[2190]|0)>>>0)){c[g+16>>2]=s,c[s+24>>2]=g;break}ka()}while(0);if(l=c[n+(r+l)>>2]|0,(l|0)==0)break;if(!(l>>>0<(c[2190]|0)>>>0)){c[g+20>>2]=l,c[l+24>>2]=g;break}ka()}while(0);t=n+((a|q)+o)|0,p=a+p|0}if(g=t+4|0,c[g>>2]=c[g>>2]&-2,c[n+(j+4)>>2]=p|1,c[n+(p+j)>>2]=p,g=p>>>3,p>>>0<256){l=g<<1,d=8784+(l<<2)|0,a=c[2186]|0,g=1<<g;do if((a&g|0)==0)c[2186]=a|g,e=8784+(l+2<<2)|0,f=d;else{if(l=8784+(l+2<<2)|0,g=c[l>>2]|0,!(g>>>0<(c[2190]|0)>>>0)){e=l,f=g;break}ka()}while(0);c[e>>2]=k,c[f+12>>2]=k,c[n+(j+8)>>2]=f,c[n+(j+12)>>2]=d;break}e=p>>>8;do if((e|0)==0)e=0;else{if(p>>>0>16777215){e=31;break}y=(e+1048320|0)>>>16&8,z=e<<y,x=(z+520192|0)>>>16&4,z<<=x,e=(z+245760|0)>>>16&2,e=14-(x|y|e)+(z<<e>>>15)|0,e=p>>>(e+7|0)&1|e<<1}while(0);if(f=9048+(e<<2)|0,c[n+(j+28)>>2]=e,c[n+(j+20)>>2]=0,c[n+(j+16)>>2]=0,g=c[2187]|0,k=1<<e,(g&k|0)==0){c[2187]=g|k,c[f>>2]=m,c[n+(j+24)>>2]=f,c[n+(j+12)>>2]=m,c[n+(j+8)>>2]=m;break}k=c[f>>2]|0,e=(e|0)==31?0:25-(e>>>1)|0;l:do if((c[k+4>>2]&-8|0)==(p|0))d=k;else{for(e=p<<e;;){if(g=k+(e>>>31<<2)+16|0,f=c[g>>2]|0,(f|0)==0)break;if((c[f+4>>2]&-8|0)==(p|0)){d=f;break l}e<<=1,k=f}if(!(g>>>0<(c[2190]|0)>>>0)){c[g>>2]=m,c[n+(j+24)>>2]=k,c[n+(j+12)>>2]=m,c[n+(j+8)>>2]=m;break j}ka()}while(0);if(f=d+8|0,g=c[f>>2]|0,e=c[2190]|0,d>>>0<e>>>0&&ka(),!(g>>>0<e>>>0)){c[g+12>>2]=m,c[f>>2]=m,c[n+(j+8)>>2]=g,c[n+(j+12)>>2]=d,c[n+(j+24)>>2]=0;break}ka()}while(0);return z=n+(h|8)|0,i=b,z|0}while(0);for(d=p,l=9192;;){if(f=c[l>>2]|0,!(f>>>0>d>>>0)&&(g=c[l+4>>2]|0,e=f+g|0,e>>>0>d>>>0))break;l=c[l+8>>2]|0}if(l=f+(g+-39)|0,l=(l&7|0)==0?0:0-l&7,f=f+(g+-47+l)|0,f=f>>>0<(p+16|0)>>>0?d:f,l=f+8|0,g=l,m=n+8|0,m=(m&7|0)==0?0:0-m&7,z=o+-40-m|0,c[2192]=n+m,c[2189]=z,c[n+(m+4)>>2]=z|1,c[n+(o+-36)>>2]=40,c[2193]=c[2308],c[f+4>>2]=27,c[l+0>>2]=c[2298],c[l+4>>2]=c[2299],c[l+8>>2]=c[2300],c[l+12>>2]=c[2301],c[2298]=n,c[2299]=o,c[2301]=0,c[2300]=g,g=f+28|0,c[g>>2]=7,(f+32|0)>>>0<e>>>0)for(;;){if(l=g+4|0,c[l>>2]=7,!((g+8|0)>>>0<e>>>0))break;g=l}if((f|0)==(d|0))break;if(e=f-p|
\ No newline at end of file
+do if((b[f+36>>1]|0)!=0|Ka^1)Ca=2;else{if(Ea=(b[f+148>>1]|0)-(b[f+136>>1]|0)|0,((Ea|0)<0?0-Ea|0:Ea)>>>0>3){Ca=1;break}if(Ca=Ca-Da|0,((Ca|0)<0?0-Ca|0:Ca)>>>0>3){Ca=1;break}Ca=(c[f+120>>2]|0)!=(c[f+116>>2]|0)|0}while(0);c[v>>2]=Ca,Ca=b[f+158>>1]|0,Da=b[f+146>>1]|0;do if((Ba|ya)<<16>>16==0){if(ya=(b[f+156>>1]|0)-(b[f+144>>1]|0)|0,((ya|0)<0?0-ya|0:ya)>>>0>3){ya=1;break}if(ya=Ca-Da|0,((ya|0)<0?0-ya|0:ya)>>>0>3){ya=1;break}ya=(c[f+120>>2]|0)!=(c[f+116>>2]|0)|0}else ya=2;while(0);c[y>>2]=ya,Ba=b[f+182>>1]|0,ya=b[f+170>>1]|0;do if((za|xa)<<16>>16==0){if(xa=(b[f+180>>1]|0)-(b[f+168>>1]|0)|0,((xa|0)<0?0-xa|0:xa)>>>0>3){xa=1;break}if(xa=Ba-ya|0,((xa|0)<0?0-xa|0:xa)>>>0>3){xa=1;break}xa=(c[f+128>>2]|0)!=(c[f+124>>2]|0)|0}else xa=2;while(0);c[B>>2]=xa,xa=b[f+190>>1]|0,ya=b[f+178>>1]|0;do if((Aa|wa)<<16>>16==0){if(wa=(b[f+188>>1]|0)-(b[f+176>>1]|0)|0,((wa|0)<0?0-wa|0:wa)>>>0>3){wa=1;break}if(wa=xa-ya|0,((wa|0)<0?0-wa|0:wa)>>>0>3){wa=1;break}wa=(c[f+128>>2]|0)!=(c[f+124>>2]|0)|0}else wa=2;while(0);c[E>>2]=wa;break}Ca=b[f+32>>1]|0,Da=b[f+140>>1]|0,pb=b[f+132>>1]|0,xa=b[f+142>>1]|0,lb=b[f+134>>1]|0;do if(Ca<<16>>16==0){if((b[f+28>>1]|0)!=0){wa=2;break}if(wa=Da-pb|0,((wa|0)<0?0-wa|0:wa)>>>0>3){wa=1;break}wa=xa-lb|0,wa=((wa|0)<0?0-wa|0:wa)>>>0>3|0}else wa=2;while(0);c[e>>2]=wa,Ba=b[f+34>>1]|0,Aa=b[f+144>>1]|0,nb=b[f+136>>1]|0,wa=b[f+146>>1]|0,hb=b[f+138>>1]|0;do if(Ba<<16>>16==0){if((b[f+30>>1]|0)!=0){ya=2;break}if(ya=Aa-nb|0,((ya|0)<0?0-ya|0:ya)>>>0>3){ya=1;break}ya=wa-hb|0,ya=((ya|0)<0?0-ya|0:ya)>>>0>3|0}else ya=2;while(0);c[H>>2]=ya,za=b[f+40>>1]|0,Ea=b[f+156>>1]|0,mb=b[f+148>>1]|0,ya=b[f+158>>1]|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ra|0:Ra)>>>0>3){Ra=1;break}Ra=(c[f+128>>2]|0)!=(c[f+120>>2]|0)|0}else Ra=2;while(0);c[P>>2]=Ra,eb=b[f+54>>1]|0,cb=b[f+184>>1]|0,Ta=b[f+186>>1]|0;do if((eb|Ja)<<16>>16==0){if(Ra=cb-La|0,((Ra|0)<0?0-Ra|0:Ra)>>>0>3){Ra=1;break}if(Ra=Ta-Fa|0,((Ra|0)<0?0-Ra|0:Ra)>>>0>3){Ra=1;break}Ra=(c[f+128>>2]|0)!=(c[f+120>>2]|0)|0}else Ra=2;while(0);c[O>>2]=Ra,ab=b[f+48>>1]|0,$a=b[f+172>>1]|0,Ra=b[f+174>>1]|0;do if((ab|Oa)<<16>>16==0){if(Sa=$a-Ma|0,((Sa|0)<0?0-Sa|0:Sa)>>>0>3){Sa=1;break}Sa=Ra-Ia|0,Sa=((Sa|0)<0?0-Sa|0:Sa)>>>0>3|0}else Sa=2;while(0);c[N>>2]=Sa,bb=b[f+50>>1]|0,gb=b[f+176>>1]|0,_a=b[f+178>>1]|0;do if((bb|Pa)<<16>>16==0){if(Sa=gb-Qa|0,((Sa|0)<0?0-Sa|0:Sa)>>>0>3){Sa=1;break}Sa=_a-Ha|0,Sa=((Sa|0)<0?0-Sa|0:Sa)>>>0>3|0}else Sa=2;while(0);c[M>>2]=Sa,fb=b[f+56>>1]|0,db=b[f+188>>1]|0,Sa=b[f+190>>1]|0;do if((fb|Na)<<16>>16==0){if(jb=db-Ka|0,((jb|0)<0?0-jb|0:jb)>>>0>3){jb=1;break}jb=Sa-Ga|0,jb=((jb|0)<0?0-jb|0:jb)>>>0>3|0}else jb=2;while(0);c[L>>2]=jb,ob=b[f+58>>1]|0,kb=b[f+192>>1]|0,jb=b[f+194>>1]|0;do if((ob|eb)<<16>>16==0){if(sb=kb-cb|0,((sb|0)<0?0-sb|0:sb)>>>0>3){sb=1;break}sb=jb-Ta|0,sb=((sb|0)<0?0-sb|0:sb)>>>0>3|0}else sb=2;while(0);c[K>>2]=sb,sb=b[f+30>>1]|0;do if(sb<<16>>16==0){if((b[f+28>>1]|0)!=0){lb=2;break}if(pb=nb-pb|0,((pb|0)<0?0-pb|0:pb)>>>0>3){lb=1;break}lb=hb-lb|0,lb=((lb|0)<0?0-lb|0:lb)>>>0>3|0}else lb=2;while(0);c[ba>>2]=lb,lb=b[f+36>>1]|0;do 
\ No newline at end of file
+else{for(C=c[v>>2]|0,E=0;;){if(F=C+(E*40|0)+20|0,(c[F>>2]|0)==3&&(c[C+(E*40|0)+8>>2]|0)==(B|0))break;if(E=E+1|0,!(E>>>0<D>>>0)){o=91;break f}}if(c[F>>2]=0,C=(c[p>>2]|0)+-1|0,c[p>>2]=C,(c[(c[v>>2]|0)+(E*40|0)+24>>2]|0)!=0)break;c[w>>2]=(c[w>>2]|0)+-1}while(0);if((o|0)==91&&(o=0,C=c[p>>2]|0),!(C>>>0<(c[u>>2]|0)>>>0)){b=1,o=104;break c}s=c[l>>2]|0,c[s+12>>2]=e,c[s+8>>2]=B,c[s+16>>2]=f,c[s+20>>2]=3,c[(c[l>>2]|0)+24>>2]=(c[d>>2]|0)==0,c[p>>2]=(c[p>>2]|0)+1,c[w>>2]=(c[w>>2]|0)+1,s=1;break;case 0:b=0,o=104;break c;default:b=1;break c}while(0);A=A+1|0}if((s|0)!=0){n=b;break a}p=c[p>>2]|0}while(0);if(o=a+40|0,!(p>>>0<(c[a+24>>2]|0)>>>0)){n=1;break}H=c[l>>2]|0,c[H+12>>2]=e,c[H+8>>2]=e,c[H+16>>2]=f,c[H+20>>2]=2,c[(c[l>>2]|0)+24>>2]=n,n=a+44|0,c[n>>2]=(c[n>>2]|0)+1,c[o>>2]=(c[o>>2]|0)+1,n=b}while(0);b=c[l>>2]|0,c[b+36>>2]=g,c[b+28>>2]=h,c[b+32>>2]=j;g:do if((c[d>>2]|0)==0){if(j=a+44|0,f=c[j>>2]|0,l=a+28|0,o=c[l>>2]|0,!(f>>>0>o>>>0))break;for(h=a,b=a+16|0,g=a+12|0,p=1;;){do if(p){p=c[h>>2]|0,q=0,s=2147483647,r=0;do(c[p+(q*40|0)+24>>2]|0)!=0&&(u=c[p+(q*40|0)+16>>2]|0,t=(u|0)<(s|0),s=t?u:s,r=t?p+(q*40|0)|0:r),q=q+1|0;while(!(q>>>0>o>>>0));if((r|0)==0)break;if(H=c[b>>2]|0,c[(c[g>>2]|0)+(H<<4)>>2]=c[r>>2],f=c[g>>2]|0,c[f+(H<<4)+12>>2]=c[r+36>>2],c[f+(c[b>>2]<<4)+4>>2]=c[r+28>>2],c[f+(c[b>>2]<<4)+8>>2]=c[r+32>>2],c[b>>2]=(c[b>>2]|0)+1,c[r+24>>2]=0,f=c[j>>2]|0,(c[r+20>>2]|0)!=0)break;f=f+-1|0,c[j>>2]=f}while(0);if(o=c[l>>2]|0,!(f>>>0>o>>>0))break g;p=(c[d>>2]|0)==0}}else o=a+16|0,F=c[o>>2]|0,H=a+12|0,c[(c[H>>2]|0)+(F<<4)>>2]=c[b>>2],G=c[l>>2]|0,H=c[H>>2]|0,c[H+(F<<4)+12>>2]=c[G+36>>2],c[H+(c[o>>2]<<4)+4>>2]=c[G+28>>2],c[H+(c[o>>2]<<4)+8>>2]=c[G+32>>2],c[o>>2]=(c[o>>2]|0)+1,o=c[a+28>>2]|0;while(0);return mb(c[a>>2]|0,o+1|0),H=n,i=k,H|0}function mb(a,b){a|=0,b|=0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;g=i,i=i+24|0,o=g,k=g+8|0,f=7;do{if(f>>>0<b>>>0){h=f;do{d=a+(h*40|0)|0,j=c[d>>2]|0,d=c[d+4>>2]|0,l=c[a+(h*40|0)+8>>2]|0,t=a+(h*40|0)+12|0,n=c[t+4>>2]|0,m=o,c[m>>2]=c[t>>2],c[m+4>>2]=n,m=c[a+(h*40|0)+20>>2]|0,n=c[a+(h*40|0)+24>>2]|0,t=a+(h*40|0)+28|0,c[k+0>>2]=c[t+0>>2],c[k+4>>2]=c[t+4>>2],c[k+8>>2]=c[t+8>>2];a:do if(h>>>0<f>>>0)p=h,e=14;else{t=(n|0)==0;b:do if((m|0)==0)for(q=h;;){if(p=q-f|0,(c[a+(p*40|0)+20>>2]|0)!=0)break b;if((c[a+(p*40|0)+24>>2]|0)!=0|t)break b;q=a+(q*40|0)+0|0,r=a+(p*40|0)+0|0,s=q+40|0;do c[q>>2]=c[r>>2],q=q+4|0,r=r+4|0;while((q|0)<(s|0));if(p>>>0<f>>>0){e=14;break a}q=p}else{if((m+-1|0)>>>0<2)r=h;else for(q=h;;){if(p=q-f|0,r=c[a+(p*40|0)+20>>2]|0,(r|0)!=0){if((r+-1|0)>>>0<2)break b;if((c[a+(p*40|0)+8>>2]|0)<=(l|0))break b}q=a+(q*40|0)+0|0,r=a+(p*40|0)+0|0,s=q+40|0;do c[q>>2]=c[r>>2],q=q+4|0,r=r+4|0;while((q|0)<(s|0));if(p>>>0<f>>>0){e=14;break a}q=p}for(;;){if(p=r-f|0,t=c[a+(p*40|0)+20>>2]|0,(t|0)!=0&(t+-1|0)>>>0<2){if(q=c[a+(p*40|0)+8>>2]|0,(q|0)>(l|0)){q=r;break b}if(r=a+(r*40|0)|0,(q|0)>=(l|0))break a}else r=a+(r*40|0)|0;q=r+0|0,r=a+(p*40|0)+0|0,s=q+40|0;do c[q>>2]=c[r>>2],q=q+4|0,r=r+4|0;while((q|0)<(s|0));if(p>>>0<f>>>0){e=14;break a}r=p}}while(0);r=a+(q*40|0)|0}while(0);(e|0)==14&&(e=0,r=a+(p*40|0)|0),q=r,c[q>>2]=j,c[q+4>>2]=d,c[r+8>>2]=l,q=o,s=c[q+4>>2]|0,t=r+12|0,c[t>>2]=c[q>>2],c[t+4>>2]=s,c[r+20>>2]=m,c[r+24>>2]=n,t=r+28|0,c[t+0>>2]=c[k+0>>2],c[t+4>>2]=c[k+4>>2],c[t+8>>2]=c[k+8>>2],h=h+1|0}while((h|0)!=(b|0))}f>>>=1}while((f|0)!=0);i=g}function nb(a,b){a|=0,b|=0;var d=0;d=i;do if(b>>>0>16)a=0;else{if(a=c[(c[a+4>>2]|0)+(b<<2)>>2]|0,(a|0)==0){a=0;break}if(!((c[a+20>>2]|0)>>>0>1)){a=0;break}a=c[a>>2]|0}while(0);return i=d,a|0}function ob(a){a|=0;var b=0;return b=(c[a>>2]|0)+((c[a+28>>2]|0)*40|0)|0,c[a+8>>2]=b,i=i,c[b>>2]|0}function pb(a,b,d,e,f,g){a|=0,b|=0,d|=0,e|=0,f|=0,g|=0;var h=0,j=0;if(h=i,c[a+36>>2]=65535,e=e>>>0>1?e:1,c[a+24>>2]=e,d=(g|0)==0?d:e,c[a+28>>2]=d,c[a+32>>2]=f,c[a+56>>2]=g,c[a+44>>2]=0,c[a+40>>2]=0,c[a+48>>2]=0,e=Xc(680)|0,g=e,f=a,c[f>>2]=g,(e|0)==0)return j=65535,i=h,j|0;_c(e|0,0,680)|0;do if((d|0)==-1)d=0;else{for(b=b*384|47,e=g,g=0;;){if(c[e+(g*40|0)+4>>2]=Xc(b)|0,e=c[f>>2]|0,j=c[e+(g*40|0)+4>>2]|0,(j|0)==0){a=65535,f=10;break}if(c[e+(g*40|0)>>2]=j+(0-j&15),g=g+1|0,
\ No newline at end of file
+do{m=l+(_(n+-7|0,h)|0)|0,b=n<<4,j=0;do o=m+(_(j+-7|0,g)|0)>>5,o=(o|0)<0?0:(o|0)>255?-1:o&255,a[e+(j+b)|0]=o,j=j+1|0;while((j|0)!=16);n=n+1|0}while((n|0)!=16)}return Eb(e,f,0),Eb(e,f+64|0,1),Eb(e,f+128|0,2),Eb(e,f+192|0,3),Eb(e,f+256|0,4),Eb(e,f+320|0,5),Eb(e,f+384|0,6),Eb(e,f+448|0,7),Eb(e,f+512|0,8),Eb(e,f+576|0,9),Eb(e,f+640|0,10),Eb(e,f+704|0,11),Eb(e,f+768|0,12),Eb(e,f+832|0,13),Eb(e,f+896|0,14),Eb(e,f+960|0,15),y=0,i=k,y|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(G+1)|0]|0,D=a[e+(G+2)|0]|0,o=a[e+(G+3)|0]|0,w=a[e+(G+4)|0]|0,q=a[e+(G+5)|0]|0,p=a[e+(G+6)|0]|0,t=a[e+(G+7)|0]|0,F){F=h+H|0;break}F=e+(G+-1)|0;break}F=g+m|0,t=a[g+(m+8)|0]|0,p=a[g+(m+7)|0]|0,q=a[g+(m+6)|0]|0,w=a[g+(m+5)|0]|0,o=a[g+(m+4)|0]|0,D=a[g+(m+3)|0]|0,E=a[g+(m+2)|0]|0,u=a[g+(m+1)|0]|0}while(0);switch(F=a[F]|0,v|0){case 0:if((r|0)==0){e=1,h=51;break a}o=(D&255)<<16|(o&255)<<24|(E&255)<<8|u&255,p=o,q=o,z=o;break;case 1:if(!s){e=1,h=51;break a}p=_(C&255,16843009)|0,q=_(B&255,16843009)|0,z=_(z&255,16843009)|0,o=_(x&255,16843009)|0;break;case 2:p=(r|0)==0;do if(p|s^1){if(s){o=((x&255)+2+(z&255)+(B&255)+(C&255)|0)>>>2;break}if(p){o=128;break}o=((o&255)+2+(D&255)+(E&255)+(u&255)|0)>>>2}else o=((x&255)+4+(z&255)+(B&255)+(C&255)+(o&255)+(D&255)+(E&255)+(u&255)|0)>>>3;while(0);o=_(o&255,16843009)|0,p=o,q=o,z=o;break;case 3:if((r|0)==0){e=1,h=51;break a}x=(y|0)==0,r=E&255,s=D&255,v=s+2|0,z=o&255,y=z+2|0,s=(y+r+(s<<1)|0)>>>2&255,A=(x?o:w)&255,w=(v+(z<<1)+A|0)>>>2&255,q=(x?o:q)&255,y=(y+q+(A<<1)|0)>>>2,z=y&255,p=(x?o:p)&255,A=(A+2+p+(q<<1)|0)>>>2,B=A&255,o=(x?o:t)&255,q=(q+2+o+(p<<1)|0)>>>2,p=(p+2+(o*3|0)|0)>>>2<<24|z|B<<8|q<<16&16711680,q=w|z<<8|q<<24|B<<16,z=z<<16|s|A<<24|w<<8,o=s<<8|y<<24|(v+(u&255)+(r<<1)|0)>>>2&255|w<<16;break;case 4:if((r|0)==0|s^1|(A|0)==0){e=1,h=51;break a}A=u&255,H=F&255,q=x&255,y=A+2|0,p=(y+q+(H<<1)|0)>>>2,G=p&255,E&=255,x=H+2|0,A=((A<<1)+E+x|0)>>>2,H=A&255,F=D&255,D=((E<<1)+F+y|0)>>>2,y=z&255,z=(y+(q<<1)+x|0)>>>2&255,B&=255,q=(q+2+(y<<1)+B|0)>>>2&255,p=(y+2+(B<<1)+(C&255)|0)>>>2&255|q<<8|p<<24|z<<16,q=A<<24|q|G<<16|z<<8,z=z|D<<24|H<<16|G<<8,o=D<<16&16711680|((o&255)+2+E+(F<<1)|0)>>>2<<24|G|H<<8;break;case 5:if((r|0)==0|s^1|(A|0)==0){e=1,h=51;break a}q=F&255,G=u&255,H=(G+1+q|0)>>>1&255,y=E&255,C=(y+2+(G<<1)+q|0)>>>2&255,x&=255,E=G+2|0,A=(E+x+(q<<1)|0)>>>2&255,G=(y+1+G|0)>>>1&255,F=D&255,D=((y<<1)+F+E|0)>>>2,E=(F+1+y|0)>>>1,o&=255,z&=255,p=D<<24|(x+2+(B&255)+(z<<1)|0)>>>2&255|C<<16|A<<8,q=G<<16|E<<24|(z+2+(x<<1)+q|0)>>>2&255|H<<8,z=D<<16&16711680|(o+2+y+(F<<1)|0)>>>2<<24|A|C<<8,o=E<<16&16711680|(o+1+F|0)>>>1<<24|G<<8|H;break;case 6:if((r|0)==0|s^1|(A|0)==0){e=1,h=51;break a}H=F&255,o=x&255,x=o+1|0,A=(x+H|0)>>>1&255,w=z&255,y=((o<<1)+2+w+H|0)>>>2,z=(x+w|0)>>>1&255,x=B&255,o=o+2|0,q=(o+(w<<1)+x|0)>>>2,B=(w+1+x|0)>>>1&255,p=C&255,G=u&255,o=(o+G+(H<<1)|0)>>>2,F=E&255,p=q<<24|B<<16|(x+1+p|0)>>>1&255|w+2+(x<<1)+p<<6&65280,q=B|z<<16|q<<8&65280|y<<24,z=y<<8&65280|z|A<<16|o<<24,o=A|((D&255)+2+(F<<1)+G|0)>>>2<<24|F+2+(G<<1)+H<<14&16711680|o<<8&65280;break;case 7:if((r|0)==0){e=1,h=51;break a}v=(y|0)==0,r=u&255,s=E&255,z=D&255,t=(z+1+s|0)>>>
\ No newline at end of file
--- a/js/h264bsd_asm.js
+++ b/js/h264bsd_asm.js
@@ -1,213 +1,5823 @@
-function e(a){throw a;}var i=void 0,l=!0,m=null,q=!1;function r(){return function(){}}var s;s||(s=eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));var aa={},t;for(t in s)s.hasOwnProperty(t)&&(aa[t]=s[t]);var v="object"===typeof process&&"function"===typeof require,ba="object"===typeof window,ca="function"===typeof importScripts,da=!ba&&!v&&!ca;
-if(v){s.print=function(a){process.stdout.write(a+"\n")};s.printErr=function(a){process.stderr.write(a+"\n")};var ea=require("fs"),fa=require("path");s.read=function(a,b){var a=fa.normalize(a),c=ea.readFileSync(a);!c&&a!=fa.resolve(a)&&(a=path.join(__dirname,"..","src",a),c=ea.readFileSync(a));c&&!b&&(c=c.toString());return c};s.readBinary=function(a){return s.read(a,l)};s.load=function(a){ga(read(a))};s.arguments=process.argv.slice(2);module.exports=s}else da?(s.print=print,"undefined"!=typeof printErr&&
-(s.printErr=printErr),s.read="undefined"!=typeof read?read:function(){e("no read() available (jsc?)")},s.readBinary=function(a){return read(a,"binary")},"undefined"!=typeof scriptArgs?s.arguments=scriptArgs:"undefined"!=typeof arguments&&(s.arguments=arguments),this.Module=s,eval("if (typeof gc === 'function' && gc.toString().indexOf('[native code]') > 0) var gc = undefined")):ba||ca?(s.read=function(a){var b=new XMLHttpRequest;b.open("GET",a,q);b.send(m);return b.responseText},"undefined"!=typeof arguments&&
-(s.arguments=arguments),"undefined"!==typeof console?(s.print=function(a){console.log(a)},s.printErr=function(a){console.log(a)}):s.print=r(),ba?this.Module=s:s.load=importScripts):e("Unknown runtime environment. Where are we?");function ga(a){eval.call(m,a)}"undefined"==!s.load&&s.read&&(s.load=function(a){ga(s.read(a))});s.print||(s.print=r());s.printErr||(s.printErr=s.print);s.arguments||(s.arguments=[]);s.print=s.print;s.S=s.printErr;s.preRun=[];s.postRun=[];
-for(t in aa)aa.hasOwnProperty(t)&&(s[t]=aa[t]);function ha(){return w}function ia(a){w=a}function ja(a){switch(a){case "i1":case "i8":return 1;case "i16":return 2;case "i32":return 4;case "i64":return 8;case "float":return 4;case "double":return 8;default:return"*"===a[a.length-1]?ka:"i"===a[0]?(a=parseInt(a.substr(1)),z(0===a%8),a/8):0}}function la(a,b,c){c&&c.length?(c.splice||(c=Array.prototype.slice.call(c)),c.splice(0,0,b),s["dynCall_"+a].apply(m,c)):s["dynCall_"+a].call(m,b)}var ma;
-function na(){var a=[],b=0;this.Ba=function(c){c&=255;if(0==a.length){if(0==(c&128))return String.fromCharCode(c);a.push(c);b=192==(c&224)?1:224==(c&240)?2:3;return""}if(b&&(a.push(c),b--,0<b))return"";var c=a[0],d=a[1],f=a[2],h=a[3];2==a.length?c=String.fromCharCode((c&31)<<6|d&63):3==a.length?c=String.fromCharCode((c&15)<<12|(d&63)<<6|f&63):(c=(c&7)<<18|(d&63)<<12|(f&63)<<6|h&63,c=String.fromCharCode(Math.floor((c-65536)/1024)+55296,(c-65536)%1024+56320));a.length=0;return c};this.Eb=function(a){for(var a=
-unescape(encodeURIComponent(a)),b=[],f=0;f<a.length;f++)b.push(a.charCodeAt(f));return b}}function oa(a){var b=w;w=w+a|0;w=w+7&-8;return b}function pa(a){var b=B;B=B+a|0;B=B+7&-8;return b}function qa(a){var b=E;E=E+a|0;E=E+7&-8;E>=F&&H("Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+F+", or (2) set Module.TOTAL_MEMORY before the program runs.");return b}function ra(a,b){return Math.ceil(a/(b?b:8))*(b?b:8)}
-var ka=4,sa={},ta=q,ua,va;function z(a,b){a||H("Assertion failed: "+b)}s.ccall=function(a,b,c,d){return wa(xa(a),b,c,d)};function xa(a){try{var b=s["_"+a];b||(b=eval("_"+a))}catch(c){}z(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)");return b}
-function wa(a,b,c,d){function f(a,b){if("string"==b){if(a===m||a===i||0===a)return 0;a=J(a);b="array"}if("array"==b){h||(h=ha());var c=oa(a.length);ya(a,c);return c}return a}var h=0,g=0,d=d?d.map(function(a){return f(a,c[g++])}):[];a=a.apply(m,d);"string"==b?b=za(a):(z("array"!=b),b=a);h&&ia(h);return b}s.cwrap=function(a,b,c){var d=xa(a);return function(){return wa(d,b,c,Array.prototype.slice.call(arguments))}};
-function Aa(a,b,c){c=c||"i8";"*"===c.charAt(c.length-1)&&(c="i32");switch(c){case "i1":K[a]=b;break;case "i8":K[a]=b;break;case "i16":L[a>>1]=b;break;case "i32":M[a>>2]=b;break;case "i64":va=[b>>>0,(ua=b,1<=+Ba(ua)?0<ua?(Ca(+Da(ua/4294967296),4294967295)|0)>>>0:~~+Ea((ua-+(~~ua>>>0))/4294967296)>>>0:0)];M[a>>2]=va[0];M[a+4>>2]=va[1];break;case "float":Fa[a>>2]=b;break;case "double":Ga[a>>3]=b;break;default:H("invalid type for setValue: "+c)}}s.setValue=Aa;
-s.getValue=function(a,b){b=b||"i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return K[a];case "i8":return K[a];case "i16":return L[a>>1];case "i32":return M[a>>2];case "i64":return M[a>>2];case "float":return Fa[a>>2];case "double":return Ga[a>>3];default:H("invalid type for setValue: "+b)}return m};var Ha=2,Ia=4;s.ALLOC_NORMAL=0;s.ALLOC_STACK=1;s.ALLOC_STATIC=Ha;s.ALLOC_DYNAMIC=3;s.ALLOC_NONE=Ia;
-function N(a,b,c,d){var f,h;"number"===typeof a?(f=l,h=a):(f=q,h=a.length);var g="string"===typeof b?b:m,c=c==Ia?d:[Ja,oa,pa,qa][c===i?Ha:c](Math.max(h,g?1:b.length));if(f){d=c;z(0==(c&3));for(a=c+(h&-4);d<a;d+=4)M[d>>2]=0;for(a=c+h;d<a;)K[d++|0]=0;return c}if("i8"===g)return a.subarray||a.slice?O.set(a,c):O.set(new Uint8Array(a),c),c;for(var d=0,j,n;d<h;){var x=a[d];"function"===typeof x&&(x=sa.Ud(x));f=g||b[d];0===f?d++:("i64"==f&&(f="i32"),Aa(c+d,x,f),n!==f&&(j=ja(f),n=f),d+=j)}return c}
-s.allocate=N;function za(a,b){for(var c=q,d,f=0;;){d=O[a+f|0];if(128<=d)c=l;else if(0==d&&!b)break;f++;if(b&&f==b)break}b||(b=f);var h="";if(!c){for(;0<b;)d=String.fromCharCode.apply(String,O.subarray(a,a+Math.min(b,1024))),h=h?h+d:d,a+=1024,b-=1024;return h}c=new na;for(f=0;f<b;f++)d=O[a+f|0],h+=c.Ba(d);return h}s.Pointer_stringify=za;s.UTF16ToString=function(a){for(var b=0,c="";;){var d=L[a+2*b>>1];if(0==d)return c;++b;c+=String.fromCharCode(d)}};
-s.stringToUTF16=function(a,b){for(var c=0;c<a.length;++c)L[b+2*c>>1]=a.charCodeAt(c);L[b+2*a.length>>1]=0};s.UTF32ToString=function(a){for(var b=0,c="";;){var d=M[a+4*b>>2];if(0==d)return c;++b;65536<=d?(d-=65536,c+=String.fromCharCode(55296|d>>10,56320|d&1023)):c+=String.fromCharCode(d)}};s.stringToUTF32=function(a,b){for(var c=0,d=0;d<a.length;++d){var f=a.charCodeAt(d);if(55296<=f&&57343>=f)var h=a.charCodeAt(++d),f=65536+((f&1023)<<10)|h&1023;M[b+4*c>>2]=f;++c}M[b+4*c>>2]=0};
-function Ka(a){try{if("Object._main"==a||"_main"==a)return"main()";"number"===typeof a&&(a=za(a));if("_"!==a[0]||"_"!==a[1]||"Z"!==a[2])return a;switch(a[3]){case "n":return"operator new()";case "d":return"operator delete()"}var b=3,c={v:"void",b:"bool",c:"char",s:"short",i:"int",l:"long",f:"float",d:"double",w:"wchar_t",a:"signed char",h:"unsigned char",t:"unsigned short",j:"unsigned int",m:"unsigned long",x:"long long",y:"unsigned long long",z:"..."},d=[],f=l,h=function(g,n,x){var n=n||Infinity,
-D="",u=[],p;if("N"===a[b]){b++;"K"===a[b]&&b++;for(p=[];"E"!==a[b];)if("S"===a[b]){b++;var A=a.indexOf("_",b);p.push(d[a.substring(b,A)||0]||"?");b=A+1}else if("C"===a[b])p.push(p[p.length-1]),b+=2;else{var A=parseInt(a.substr(b)),G=A.toString().length;if(!A||!G){b--;break}var I=a.substr(b+G,A);p.push(I);d.push(I);b+=G+A}b++;p=p.join("::");n--;if(0===n)return g?[p]:p}else if(("K"===a[b]||f&&"L"===a[b])&&b++,A=parseInt(a.substr(b)))G=A.toString().length,p=a.substr(b+G,A),b+=G+A;f=q;"I"===a[b]?(b++,
-A=h(l),G=h(l,1,l),D+=G[0]+" "+p+"<"+A.join(", ")+">"):D=p;a:for(;b<a.length&&0<n--;)if(p=a[b++],p in c)u.push(c[p]);else switch(p){case "P":u.push(h(l,1,l)[0]+"*");break;case "R":u.push(h(l,1,l)[0]+"&");break;case "L":b++;A=a.indexOf("E",b)-b;u.push(a.substr(b,A));b+=A+2;break;case "A":A=parseInt(a.substr(b));b+=A.toString().length;"_"!==a[b]&&e("?");b++;u.push(h(l,1,l)[0]+" ["+A+"]");break;case "E":break a;default:D+="?"+p;break a}!x&&(1===u.length&&"void"===u[0])&&(u=[]);return g?u:D+("("+u.join(", ")+
-")")};return h()}catch(g){return a}}function La(){var a=Error().stack;return a?a.replace(/__Z[\w\d_]+/g,function(a){var c=Ka(a);return a===c?a:a+" ["+c+"]"}):"(no stack trace available)"}for(var K,O,L,Ma,M,Na,Fa,Ga,Oa=0,B=0,Pa=0,w=0,Qa=0,Ra=0,E=0,Sa=s.TOTAL_STACK||5242880,F=s.TOTAL_MEMORY||268435456,P=4096;P<F||P<2*Sa;)P=16777216>P?2*P:P+16777216;P!==F&&(s.S("increasing TOTAL_MEMORY to "+P+" to be more reasonable"),F=P);
-z("undefined"!==typeof Int32Array&&"undefined"!==typeof Float64Array&&!!(new Int32Array(1)).subarray&&!!(new Int32Array(1)).set,"Cannot fallback to non-typed array case: Code is too specialized");var Q=new ArrayBuffer(F);K=new Int8Array(Q);L=new Int16Array(Q);M=new Int32Array(Q);O=new Uint8Array(Q);Ma=new Uint16Array(Q);Na=new Uint32Array(Q);Fa=new Float32Array(Q);Ga=new Float64Array(Q);M[0]=255;z(255===O[0]&&0===O[3],"Typed arrays 2 must be run on a little-endian system");s.HEAP=i;s.HEAP8=K;
-s.HEAP16=L;s.HEAP32=M;s.HEAPU8=O;s.HEAPU16=Ma;s.HEAPU32=Na;s.HEAPF32=Fa;s.HEAPF64=Ga;function Ua(a){for(;0<a.length;){var b=a.shift();if("function"==typeof b)b();else{var c=b.O;"number"===typeof c?b.va===i?la("v",c):la("vi",c,[b.va]):c(b.va===i?m:b.va)}}}var Va=[],Wa=[],Xa=[],Ya=[],Za=[],$a=q;function ab(a){Va.unshift(a)}s.addOnPreRun=s.Kd=ab;s.addOnInit=s.Hd=function(a){Wa.unshift(a)};s.addOnPreMain=s.Jd=function(a){Xa.unshift(a)};s.addOnExit=s.Gd=function(a){Ya.unshift(a)};
-function bb(a){Za.unshift(a)}s.addOnPostRun=s.Id=bb;function J(a,b,c){a=(new na).Eb(a);c&&(a.length=c);b||a.push(0);return a}s.intArrayFromString=J;s.intArrayToString=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c];255<d&&(d&=255);b.push(String.fromCharCode(d))}return b.join("")};s.writeStringToMemory=function(a,b,c){a=J(a,c);for(c=0;c<a.length;)K[b+c|0]=a[c],c+=1};function ya(a,b){for(var c=0;c<a.length;c++)K[b+c|0]=a[c]}s.writeArrayToMemory=ya;
-s.writeAsciiToMemory=function(a,b,c){for(var d=0;d<a.length;d++)K[b+d|0]=a.charCodeAt(d);c||(K[b+a.length|0]=0)};function cb(a,b){return 0<=a?a:32>=b?2*Math.abs(1<<b-1)+a:Math.pow(2,b)+a}function db(a,b){if(0>=a)return a;var c=32>=b?Math.abs(1<<b-1):Math.pow(2,b-1);if(a>=c&&(32>=b||a>c))a=-2*c+a;return a}Math.imul||(Math.imul=function(a,b){var c=a&65535,d=b&65535;return c*d+((a>>>16)*d+c*(b>>>16)<<16)|0});Math.Xd=Math.imul;var Ba=Math.abs,Ea=Math.ceil,Da=Math.floor,Ca=Math.min,R=0,eb=m,fb=m;
-function gb(){R++;s.monitorRunDependencies&&s.monitorRunDependencies(R)}s.addRunDependency=gb;function hb(){R--;s.monitorRunDependencies&&s.monitorRunDependencies(R);if(0==R&&(eb!==m&&(clearInterval(eb),eb=m),fb)){var a=fb;fb=m;a()}}s.removeRunDependency=hb;s.preloadedImages={};s.preloadedAudios={};Oa=8;B=Oa+16640;Wa.push({O:function(){ib()}});var jb;jb=jb=N([0,0,0,0,0,0,0,0],"i8",Ha);
-N([22,6,117,117,36,36,36,36,83,83,83,83,83,83,83,83,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,134,6,37,37,20,20,20,20,115,115,115,115,115,115,115,115,99,99,99,99,99,99,99,99,51,51,51,51,51,51,51,51,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,150,6,21,21,116,116,116,116,131,131,131,131,131,131,131,131,99,99,99,99,99,99,99,99,67,67,67,67,67,67,67,
-67,51,51,51,51,51,51,51,51,35,35,35,35,35,35,35,35,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,166,6,21,21,132,132,132,132,147,147,147,147,147,147,147,147,115,115,115,115,115,115,115,115,99,99,99,99,99,99,99,99,83,83,83,83,83,83,83,83,67,67,67,67,67,67,67,67,51,51,51,51,51,51,51,51,35,35,35,35,35,35,35,35,181,149,164,164,132,132,36,36,20,20,4,4,115,115,115,115,99,99,99,99,83,83,83,83,67,67,67,67,51,51,51,51,197,181,165,5,148,148,116,116,52,52,36,36,131,131,131,131,99,99,99,99,83,83,83,83,67,67,
-67,67,19,19,19,19,214,182,197,197,165,165,149,149,132,132,132,132,84,84,84,84,68,68,68,68,4,4,4,4,115,115,115,115,115,115,115,115,99,99,99,99,99,99,99,99,51,51,51,51,51,51,51,51,35,35,35,35,35,35,35,35,19,19,19,19,19,19,19,19,230,214,198,182,165,165,149,149,132,132,132,132,116,116,116,116,100,100,100,100,84,84,84,84,67,67,67,67,67,67,67,67,51,51,51,51,51,51,51,51,35,35,35,35,35,35,35,35,19,19,19,19,19,19,19,19,3,3,3,3,3,3,3,3,0,249,233,217,200,200,184,184,167,167,167,167,151,151,151,151,134,134,134,
-134,134,134,134,134,118,118,118,118,118,118,118,118,0,0,101,85,68,68,52,52,35,35,35,35,19,19,19,19,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,18,33,33,0,0,0,0,3,19,50,50,33,33,33,33,4,20,67,67,34,34,34,34,49,49,49,49,49,49,49,49,4,20,35,35,51,51,83,83,65,65,65,65,65,65,65,65,21,5,100,100,35,35,35,35,82,82,82,82,82,82,82,82,66,66,66,66,66,66,66,66,50,50,50,50,50,50,50,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,1,1,0,1,1,
-1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,1,1,2,1,1,2,1,2,3,1,2,3,2,2,3,2,2,4,2,3,4,2,3,4,3,3,5,3,4,6,3,4,6,4,5,7,4,5,8,4,6,9,5,7,10,6,8,11,6,8,13,7,10,14,8,11,16,9,12,18,10,13,20,11,15,23,13,17,25,0,0,0,0,19,35,67,51,99,83,2,2,83,67,51,35,18,18,2,2,67,51,34,34,18,18,2,2,50,34,18,2,0,0,0,0,34,18,1,1,0,0,0,0,17,1,0,0,0,0,0,0,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,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85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,
-200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
-255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
-255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
-255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
-255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,4,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,4,0,0,0,8,0,0,0,8,0,0,0,12,0,0,0,12,0,0,0,8,0,0,0,8,0,0,0,12,0,0,0,12,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,4,0,0,0,8,0,0,0,12,0,0,0,8,0,0,0,12,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,4,0,0,0,8,0,0,0,12,0,0,
-0,8,0,0,0,12,0,0,0,0,0,0,0,1,0,0,0,4,0,0,0,5,0,0,0,2,0,0,0,3,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,12,0,0,0,13,0,0,0,10,0,0,0,11,0,0,0,14,0,0,0,15,0,0,0,103,32,103,32,72,32,40,32,71,24,71,24,39,24,39,24,6,32,6,32,6,32,6,32,6,24,6,24,6,24,6,24,6,16,6,16,6,16,6,16,102,24,102,24,102,24,102,24,38,16,38,16,38,16,38,16,6,8,6,8,6,8,6,8,0,0,67,16,2,0,2,0,33,8,33,8,33,8,33,8,6,8,38,8,0,0,6,0,6,16,38,16,70,16,0,0,6,24,38,24,70,24,102,24,6,32,38,32,70,32,102,32,6,40,38,40,70,40,102,40,6,48,38,48,70,48,102,48,
-6,56,38,56,70,56,102,56,6,64,38,64,70,64,102,64,6,72,38,72,70,72,102,72,6,80,38,80,70,80,102,80,6,88,38,88,70,88,102,88,6,96,38,96,70,96,102,96,6,104,38,104,70,104,102,104,6,112,38,112,70,112,102,112,6,120,38,120,70,120,102,120,6,128,38,128,70,128,102,128,0,0,10,128,106,128,74,128,42,128,10,120,106,120,74,120,42,120,10,112,106,112,74,112,42,112,10,104,41,104,41,104,9,96,9,96,73,104,73,104,41,96,41,96,9,88,9,88,105,104,105,104,73,96,73,96,41,88,41,88,9,80,9,80,104,96,104,96,104,96,104,96,72,88,72,
-88,72,88,72,88,40,80,40,80,40,80,40,80,8,72,8,72,8,72,8,72,104,88,104,88,104,88,104,88,72,80,72,80,72,80,72,80,40,72,40,72,40,72,40,72,8,64,8,64,8,64,8,64,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,48,7,48,7,48,7,48,7,48,7,48,7,48,7,48,71,72,71,72,71,72,71,72,71,72,71,72,71,72,71,72,7,40,7,40,7,40,7,40,7,40,7,40,7,40,7,40,103,80,103,80,103,80,103,80,103,80,103,80,103,80,103,80,71,64,71,64,71,64,71,64,71,64,71,64,71,64,71,64,39,64,39,64,39,64,39,64,39,64,39,64,39,64,39,64,7,32,7,32,7,32,7,32,7,32,7,
-32,7,32,7,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,24,70,56,38,56,6,16,102,72,70,48,38,48,6,8,37,40,37,40,69,40,69,40,37,32,37,32,69,32,69,32,37,24,37,24,101,64,101,64,69,24,69,24,37,16,37,16,100,56,100,56,100,56,100,56,100,48,100,48,100,48,100,48,100,40,100,40,100,40,100,40,100,32,100,32,100,32,100,32,100,24,100,24,100,24,100,24,68,16,68,16,68,16,68,16,36,8,36,8,36,8,36,8,4,0,4,0,4,0,4,0,0,0,0,0,109,120,109,120,110,128,78,128,46,128,14,128,46,120,14,120,78,120,46,112,77,112,77,112,13,112,13,112,109,
-112,109,112,77,104,77,104,45,104,45,104,13,104,13,104,109,104,109,104,77,96,77,96,45,96,45,96,13,96,13,96,12,88,12,88,12,88,12,88,76,88,76,88,76,88,76,88,44,88,44,88,44,88,44,88,12,80,12,80,12,80,12,80,108,96,108,96,108,96,108,96,76,80,76,80,76,80,76,80,44,80,44,80,44,80,44,80,12,72,12,72,12,72,12,72,107,88,107,88,107,88,107,88,107,88,107,88,107,88,107,88,75,72,75,72,75,72,75,72,75,72,75,72,75,72,75,72,43,72,43,72,43,72,43,72,43,72,43,72,43,72,43,72,11,64,11,64,11,64,11,64,11,64,11,64,11,64,11,64,
-107,80,107,80,107,80,107,80,107,80,107,80,107,80,107,80,75,64,75,64,75,64,75,64,75,64,75,64,75,64,75,64,43,64,43,64,43,64,43,64,43,64,43,64,43,64,43,64,11,56,11,56,11,56,11,56,11,56,11,56,11,56,11,56,0,0,0,0,0,0,0,0,105,72,73,56,41,56,9,48,8,40,8,40,72,48,72,48,40,48,40,48,8,32,8,32,103,64,103,64,103,64,103,64,71,40,71,40,71,40,71,40,39,40,39,40,39,40,39,40,7,24,7,24,7,24,7,24,0,0,0,0,0,0,0,0,102,56,70,32,38,32,6,16,102,48,70,24,38,24,6,8,101,40,101,40,37,16,37,16,100,32,100,32,100,32,100,32,100,
-24,100,24,100,24,100,24,67,16,67,16,67,16,67,16,67,16,67,16,67,16,67,16,0,0,0,0,47,104,47,104,16,128,80,128,48,128,16,120,112,128,80,120,48,120,16,112,112,120,80,112,48,112,16,104,111,112,111,112,79,104,79,104,47,96,47,96,15,96,15,96,111,104,111,104,79,96,79,96,47,88,47,88,15,88,15,88,110,96,78,88,46,80,14,80,110,88,78,80,46,72,14,72,13,64,13,64,77,72,77,72,45,64,45,64,13,56,13,56,109,80,109,80,77,64,77,64,45,56,45,56,13,48,13,48,107,72,107,72,107,72,107,72,107,72,107,72,107,72,107,72,75,56,75,56,
-75,56,75,56,75,56,75,56,75,56,75,56,43,48,43,48,43,48,43,48,43,48,43,48,43,48,43,48,11,40,11,40,11,40,11,40,11,40,11,40,11,40,11,40,0,0,0,0,0,0,0,0,106,64,74,48,42,40,10,32,105,56,105,56,73,40,73,40,41,32,41,32,9,24,9,24,104,48,104,48,104,48,104,48,72,32,72,32,72,32,72,32,40,24,40,24,40,24,40,24,8,16,8,16,8,16,8,16,103,40,103,40,103,40,103,40,103,40,103,40,103,40,103,40,71,24,71,24,71,24,71,24,71,24,71,24,71,24,71,24,0,0,0,0,0,0,102,32,38,16,6,8,101,24,101,24,67,16,67,16,67,16,67,16,67,16,67,16,67,
-16,67,16,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,47,31,15,0,23,27,29,30,7,11,13,14,39,43,45,46,16,3,5,10,12,19,21,26,28,35,37,42,44,1,2,4,8,17,18,20,24,6,9,22,25,32,33,34,36,40,38,41,0,16,1,2,4,8,32,3,5,10,12,15,47,7,11,13,14,6,9,31,35,37,42,44,33,34,36,40,39,43,45,46,17,18,20,24,19,21,26,28,23,27,29,30,22,25,38,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,3,3,3,3,4,4,4,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,0,0,0,0,0,0,0,0,0,0,0,
-0,0,0,0,0,0,0,0,0,4,4,5,6,7,8,9,10,12,13,15,17,20,22,25,28,32,36,40,45,50,56,63,71,80,90,101,113,127,144,162,182,203,226,255,255,0,0,0,0,33,40,40,117,51,50,41,116,109,112,38,48,120,51,41,0,84,82,89,73,78,71,32,84,79,32,77,65,82,75,32,78,79,78,45,65,76,76,79,67,65,84,69,68,32,73,77,65,71,69,0,0,0,0,0,0,80,101,110,100,105,110,103,32,97,99,116,105,118,97,116,105,111,110,32,110,111,116,32,99,111,109,112,108,101,116,101,100,0,0,0,0,0,0,0,0,112,105,99,95,112,97,114,97,109,101,116,101,114,95,115,101,116,
-95,105,100,0,0,0,0,115,105,122,101,79,102,85,112,112,101,114,76,101,102,116,71,114,111,117,112,32,60,61,32,112,105,99,87,105,100,116,104,32,42,32,112,105,99,72,101,105,103,104,116,0,0,0,0,77,65,67,82,79,95,66,76,79,67,75,0,0,0,0,0,110,117,109,95,114,101,102,95,102,114,97,109,101,115,0,0,40,112,97,114,116,87,105,100,116,104,38,48,120,51,41,32,61,61,32,48,0,0,0,0,115,108,105,99,101,95,103,114,111,117,112,95,105,100,0,0,113,112,89,32,38,38,32,42,113,112,89,32,60,32,53,50,0,0,0,0,0,0,0,0,116,104,114,
-101,115,104,111,108,100,115,0,0,0,0,0,0,112,82,101,115,0,0,0,0,65,67,67,69,83,83,32,85,78,73,84,32,66,79,85,78,68,65,82,89,32,67,72,69,67,75,0,0,0,0,0,0,115,108,105,99,101,95,116,121,112,101,0,0,0,0,0,0,112,112,115,45,62,115,108,105,99,101,71,114,111,117,112,73,100,91,105,93,32,60,32,112,112,115,45,62,110,117,109,83,108,105,99,101,71,114,111,117,112,115,0,0,0,0,0,0,109,97,99,114,111,98,108,111,99,107,95,108,97,121,101,114,0,0,0,0,0,0,0,0,110,117,109,95,114,101,102,95,102,114,97,109,101,115,95,105,
-110,95,112,105,99,95,111,114,100,101,114,95,99,110,116,95,99,121,99,108,101,0,0,0,109,98,0,0,0,0,0,0,115,108,105,99,101,95,103,114,111,117,112,95,109,97,112,95,116,121,112,101,0,0,0,0,99,117,114,114,73,109,97,103,101,0,0,0,0,0,0,0,114,101,115,105,100,117,97,108,0,0,0,0,0,0,0,0,110,99,32,60,61,32,49,54,32,124,124,32,110,99,32,61,61,32,40,117,51,50,41,40,45,49,41,0,0,0,0,0,102,114,97,109,101,78,117,109,32,60,32,100,112,98,45,62,109,97,120,70,114,97,109,101,78,117,109,0,0,0,0,0,99,117,114,114,77,98,
-65,100,100,114,32,60,32,112,105,99,83,105,122,101,73,110,77,98,115,0,0,0,0,0,0,0,78,65,76,95,85,78,73,84,0,0,0,0,0,0,0,0,102,105,114,115,116,95,109,98,95,105,110,95,115,108,105,99,101,0,0,0,0,0,0,0,112,112,115,45,62,115,108,105,99,101,71,114,111,117,112,73,100,0,0,0,0,0,0,0,115,107,105,112,95,114,117,110,0,0,0,0,0,0,0,0,108,111,103,50,95,109,97,120,95,112,105,99,95,111,114,100,101,114,95,99,110,116,95,108,115,98,95,109,105,110,117,115,52,0,0,0,0,0,0,0,100,97,116,97,67,114,0,0,114,101,102,0,0,0,0,
-0,110,117,109,95,115,108,105,99,101,95,103,114,111,117,112,115,95,109,105,110,117,115,49,0,106,0,0,0,0,0,0,0,112,77,98,0,0,0,0,0,116,111,116,97,108,67,111,101,102,102,32,60,32,52,0,0,33,40,40,117,51,50,41,99,114,38,48,120,51,41,0,0,33,105,115,73,100,114,32,124,124,32,40,102,114,97,109,101,78,117,109,32,61,61,32,48,32,38,38,32,112,105,99,79,114,100,101,114,67,110,116,32,61,61,32,48,41,0,0,0,112,105,99,83,105,122,101,73,110,77,98,115,0,0,0,0,112,83,116,114,109,68,97,116,97,45,62,112,83,116,114,109,
-66,117,102,102,83,116,97,114,116,0,0,0,0,0,0,0,112,80,105,99,80,97,114,97,109,83,101,116,45,62,115,101,113,80,97,114,97,109,101,116,101,114,83,101,116,73,100,32,60,32,51,50,0,0,0,0,66,89,84,69,95,83,84,82,69,65,77,0,0,0,0,0,69,82,82,79,82,58,32,37,115,10,0,0,0,0,0,0,112,112,115,45,62,115,108,105,99,101,71,114,111,117,112,67,104,97,110,103,101,82,97,116,101,32,38,38,32,112,112,115,45,62,115,108,105,99,101,71,114,111,117,112,67,104,97,110,103,101,82,97,116,101,32,60,61,32,112,105,99,83,105,122,101,
-0,0,0,0,0,0,0,80,114,105,109,97,114,121,32,97,110,100,32,97,108,114,101,97,100,121,32,100,101,99,111,100,101,100,0,0,0,0,0,112,105,99,95,111,114,100,101,114,95,99,110,116,95,116,121,112,101,0,0,0,0,0,0,100,97,116,97,67,98,0,0,101,110,116,114,111,112,121,95,99,111,100,105,110,103,95,109,111,100,101,95,102,108,97,103,0,0,0,0,0,0,0,0,98,108,111,99,107,73,110,100,101,120,32,60,32,50,52,0,114,111,119,32,60,32,99,117,114,114,73,109,97,103,101,45,62,104,101,105,103,104,116,0,109,98,84,121,112,101,32,62,
-61,32,73,95,49,54,120,49,54,95,48,95,48,95,48,32,38,38,32,109,98,84,121,112,101,32,60,61,32,73,95,49,54,120,49,54,95,51,95,50,95,49,0,0,0,0,0,0,108,101,102,116,0,0,0,0,116,111,116,97,108,67,111,101,102,102,32,60,32,49,54,0,33,40,40,117,51,50,41,99,98,38,48,120,51,41,0,0,109,97,114,107,32,124,124,32,33,105,115,73,100,114,0,0,112,83,108,105,99,101,71,114,111,117,112,77,97,112,0,0,112,83,116,114,109,68,97,116,97,45,62,98,105,116,80,111,115,73,110,87,111,114,100,32,61,61,32,40,112,83,116,114,109,68,97,
-116,97,45,62,115,116,114,109,66,117,102,102,82,101,97,100,66,105,116,115,32,38,32,48,120,55,41,0,0,112,80,105,99,80,97,114,97,109,83,101,116,45,62,112,105,99,80,97,114,97,109,101,116,101,114,83,101,116,73,100,32,60,32,50,53,54,0,0,0,112,78,97,108,85,110,105,116,45,62,110,97,108,85,110,105,116,84,121,112,101,32,61,61,32,78,65,76,95,67,79,68,69,68,95,83,76,73,67,69,32,124,124,32,112,78,97,108,85,110,105,116,45,62,110,97,108,85,110,105,116,84,121,112,101,32,61,61,32,78,65,76,95,67,79,68,69,68,95,83,
-76,73,67,69,95,73,68,82,0,0,0,0,0,0,0,0,112,112,115,45,62,115,108,105,99,101,71,114,111,117,112,77,97,112,84,121,112,101,32,60,32,55,0,0,0,0,0,0,108,111,103,50,95,109,97,120,95,102,114,97,109,101,95,110,117,109,95,109,105,110,117,115,52,0,0,0,0,0,0,0,105,109,97,103,101,45,62,104,101,105,103,104,116,0,0,0,112,82,101,102,0,0,0,0,115,112,115,45,62,112,105,99,79,114,100,101,114,67,110,116,84,121,112,101,32,60,61,32,50,0,0,0,0,0,0,0,40,110,101,105,103,104,98,111,117,114,32,60,61,32,77,66,95,67,85,82,82,
-41,32,124,124,32,40,110,101,105,103,104,98,111,117,114,32,61,61,32,77,66,95,78,65,41,0,0,99,111,108,32,60,32,99,117,114,114,73,109,97,103,101,45,62,119,105,100,116,104,0,0,115,117,98,77,98,84,121,112,101,32,60,61,32,80,95,76,48,95,52,120,52,0,0,0,97,98,111,118,101,0,0,0,115,108,105,99,101,71,114,111,117,112,67,104,97,110,103,101,82,97,116,101,32,60,61,32,112,105,99,83,105,122,101,73,110,77,98,115,0,0,0,0,115,108,105,99,101,71,114,111,117,112,67,104,97,110,103,101,82,97,116,101,0,0,0,0,109,97,120,
-78,117,109,67,111,101,102,102,32,61,61,32,52,32,124,124,32,109,97,120,78,117,109,67,111,101,102,102,32,61,61,32,49,53,32,124,124,32,109,97,120,78,117,109,67,111,101,102,102,32,61,61,32,49,54,0,0,0,0,0,0,33,40,40,117,51,50,41,108,117,109,38,48,120,51,41,0,114,101,102,95,112,105,99,95,108,105,115,116,95,114,101,111,114,100,101,114,105,110,103,0,97,98,115,95,100,105,102,102,95,112,105,99,95,110,117,109,95,109,105,110,117,115,49,0,114,101,111,114,100,101,114,105,110,103,95,111,102,95,112,105,99,95,110,
-117,109,115,95,105,100,99,0,0,0,0,0,0,100,112,98,0,0,0,0,0,112,83,116,114,109,68,97,116,97,45,62,115,116,114,109,66,117,102,102,82,101,97,100,66,105,116,115,32,60,61,32,56,32,42,32,112,83,116,114,109,68,97,116,97,45,62,115,116,114,109,66,117,102,102,83,105,122,101,0,0,0,0,0,0,84,111,111,32,109,97,110,121,32,114,101,111,114,100,101,114,105,110,103,32,99,111,109,109,97,110,100,115,0,0,0,0,112,80,105,99,80,97,114,97,109,83,101,116,0,0,0,0,112,83,116,114,109,68,97,116,97,0,0,0,0,0,0,0,109,97,120,80,105,
-99,78,117,109,0,0,0,0,0,0,0,114,101,97,100,66,121,116,101,115,0,0,0,0,0,0,0,111,114,100,101,114,0,0,0,112,105,99,72,101,105,103,104,116,0,0,0,0,0,0,0,112,83,108,105,99,101,72,101,97,100,101,114,45,62,102,105,114,115,116,77,98,73,110,83,108,105,99,101,32,60,32,112,83,116,111,114,97,103,101,45,62,112,105,99,83,105,122,101,73,110,77,98,115,0,0,0,115,101,113,95,112,97,114,97,109,95,115,101,116,95,105,100,0,0,0,0,0,0,0,0,105,109,97,103,101,45,62,119,105,100,116,104,0,0,0,0,110,117,109,82,101,102,73,100,
-120,65,99,116,105,118,101,0,112,78,97,108,85,110,105,116,0,0,0,0,0,0,0,0,40,40,112,105,99,83,105,122,101,73,110,77,98,115,32,47,32,112,105,99,87,105,100,116,104,41,32,42,32,112,105,99,87,105,100,116,104,41,32,61,61,32,112,105,99,83,105,122,101,73,110,77,98,115,0,0,33,112,77,98,45,62,100,101,99,111,100,101,100,0,0,0,104,50,54,52,98,115,100,77,98,80,97,114,116,80,114,101,100,77,111,100,101,40,112,77,98,45,62,109,98,84,121,112,101,41,32,33,61,32,80,82,69,68,95,77,79,68,69,95,73,78,84,69,82,0,0,0,112,
-82,101,102,80,105,99,76,105,115,116,82,101,111,114,100,101,114,105,110,103,0,0,0,109,97,120,95,108,111,110,103,95,116,101,114,109,95,102,114,97,109,101,95,105,100,120,95,112,108,117,115,49,0,0,0,109,101,109,111,114,121,95,109,97,110,97,103,101,109,101,110,116,95,99,111,110,116,114,111,108,95,111,112,101,114,97,116,105,111,110,0,0,0,0,0,33,40,40,117,51,50,41,100,97,116,97,38,48,120,51,41,0,0,0,0,0,0,0,0,84,111,111,32,109,97,110,121,32,109,97,110,97,103,101,109,101,110,116,32,111,112,101,114,97,116,
-105,111,110,115,0,0,110,99,32,62,32,45,50,0,108,111,110,103,95,116,101,114,109,95,114,101,102,101,114,101,110,99,101,95,102,108,97,103,0,0,0,0,0,0,0,0,110,97,108,85,110,105,116,84,121,112,101,32,61,61,32,78,65,76,95,67,79,68,69,68,95,83,76,73,67,69,95,73,68,82,32,124,124,32,110,97,108,85,110,105,116,84,121,112,101,32,61,61,32,78,65,76,95,67,79,68,69,68,95,83,76,73,67,69,32,124,124,32,110,97,108,85,110,105,116,84,121,112,101,32,61,61,32,78,65,76,95,83,69,73,0,0,112,83,116,111,114,97,103,101,0,0,0,
-0,0,0,0,0,110,117,109,82,101,102,73,100,120,65,99,116,105,118,101,32,60,61,32,49,54,0,0,0,112,72,114,100,80,97,114,97,109,101,116,101,114,115,0,0,118,97,108,117,101,0,0,0,112,83,116,114,109,68,97,116,97,45,62,98,105,116,80,111,115,73,110,87,111,114,100,32,60,32,56,0,0,0,0,0,112,83,116,114,109,68,97,116,97,45,62,112,83,116,114,109,67,117,114,114,80,111,115,0,112,83,101,113,80,97,114,97,109,83,101,116,45,62,115,101,113,80,97,114,97,109,101,116,101,114,83,101,116,73,100,32,60,32,51,50,0,0,0,0,108,101,
-110,0,0,0,0,0,112,105,99,87,105,100,116,104,0,0,0,0,0,0,0,0,105,109,97,103,101,45,62,100,97,116,97,0,0,0,0,0,99,104,114,111,109,97,80,97,114,116,72,101,105,103,104,116,0,0,0,0,0,0,0,0,112,105,99,87,105,100,116,104,32,60,61,32,112,105,99,83,105,122,101,73,110,77,98,115,0,0,0,0,0,0,0,0,112,83,116,114,109,68,97,116,97,45,62,98,105,116,80,111,115,73,110,87,111,114,100,32,61,61,32,48,0,0,0,0,109,98,84,121,112,101,32,60,61,32,51,49,0,0,0,0,109,98,78,117,109,32,60,32,105,109,97,103,101,45,62,119,105,100,
-116,104,32,42,32,105,109,97,103,101,45,62,104,101,105,103,104,116,0,0,0,0,108,101,110,32,60,32,48,120,70,70,70,70,70,70,70,70,0,0,0,0,0,0,0,0,104,50,54,52,98,115,100,77,98,80,97,114,116,80,114,101,100,77,111,100,101,40,112,77,98,45,62,109,98,84,121,112,101,41,32,61,61,32,80,82,69,68,95,77,79,68,69,95,73,78,84,69,82,0,0,0,109,97,112,0,0,0,0,0,99,117,114,114,80,105,99,78,117,109,32,60,32,100,112,98,45,62,109,97,120,70,114,97,109,101,78,117,109,0,0,0,99,111,101,102,102,76,101,118,101,108,0,0,0,0,0,0,
-112,83,101,113,80,97,114,97,109,83,101,116,45,62,109,97,120,80,105,99,79,114,100,101,114,67,110,116,76,115,98,0,112,105,99,78,117,109,32,62,61,32,48,0,0,0,0,0,112,83,101,113,80,97,114,97,109,83,101,116,45,62,109,97,120,70,114,97,109,101,78,117,109,0,0,0,0,0,0,0,99,117,114,114,70,114,97,109,101,78,117,109,32,60,32,100,112,98,45,62,109,97,120,70,114,97,109,101,78,117,109,0,99,117,114,114,70,114,97,109,101,78,117,109,32,60,61,32,100,112,98,45,62,109,97,120,70,114,97,109,101,78,117,109,0,0,0,0,0,0,0,
-0,112,83,101,113,80,97,114,97,109,83,101,116,45,62,112,105,99,79,114,100,101,114,67,110,116,84,121,112,101,32,61,61,32,48,0,0,0,0,0,0,99,111,100,101,78,117,109,0,98,108,111,99,107,72,101,105,103,104,116,0,0,0,0,0,110,117,109,66,105,116,115,32,60,32,51,50,0,0,0,0,112,83,101,113,80,97,114,97,109,83,101,116,0,0,0,0,98,108,111,99,107,87,105,100,116,104,0,0,0,0,0,0,112,83,108,105,99,101,72,101,97,100,101,114,0,0,0,0,98,121,116,101,83,116,114,109,0,0,0,0,0,0,0,0,112,116,114,49,0,0,0,0,112,112,115,0,0,0,
-0,0,104,101,105,103,104,116,0,0,99,104,114,111,109,97,80,97,114,116,87,105,100,116,104,0,105,32,60,32,100,112,98,45,62,100,112,98,83,105,122,101,0,0,0,0,0,0,0,0,115,112,115,0,0,0,0,0,112,77,98,76,97,121,101,114,0,0,0,0,0,0,0,0,119,105,100,116,104,0,0,0,116,109,112,49,32,60,32,50,53,54,32,38,38,32,116,109,112,50,32,60,32,50,53,54,0,0,0,0,0,0,0,0,105,109,97,103,101,0,0,0,79,117,116,112,117,116,80,105,99,116,117,114,101,40,100,112,98,41,32,61,61,32,48,0,109,97,120,70,114,97,109,101,78,117,109,0,0,0,
-0,0,102,105,108,108,0,0,0,0,112,114,101,100,80,97,114,116,67,104,114,111,109,97,0,0,33,100,112,98,45,62,110,111,82,101,111,114,100,101,114,105,110,103,0,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,105,110,116,101,114,95,112,114,101,100,105,99,116,105,111,110,46,99,0,0,0,0,0,0,0,115,108,105,99,101,95,103,114,111,117,112,95,99,104,97,110,103,101,95,99,121,99,108,101,0,0,0,0,0,0,0,0,114,117,110,76,101,110,103,116,104,91,103,114,111,117,112,93,32,60,61,32,112,105,99,83,105,122,101,0,0,
-0,0,0,108,117,109,97,70,114,97,99,80,111,115,91,120,70,114,97,99,93,91,121,70,114,97,99,93,32,60,32,49,54,0,0,100,112,98,83,105,122,101,0,115,108,105,99,101,95,98,101,116,97,95,111,102,102,115,101,116,95,100,105,118,50,0,0,114,117,110,76,101,110,103,116,104,0,0,0,0,0,0,0,114,101,102,80,105,99,45,62,104,101,105,103,104,116,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,105,109,97,103,101,46,99,0,0,116,109,112,32,60,32,50,53,54,0,0,0,0,0,0,0,109,97,120,82,101,102,70,114,97,109,101,115,32,60,
-61,32,100,112,98,83,105,122,101,0,115,108,105,99,101,95,97,108,112,104,97,95,99,48,95,111,102,102,115,101,116,95,100,105,118,50,0,0,0,0,0,0,120,84,111,112,76,101,102,116,32,60,61,32,120,66,111,116,116,111,109,82,105,103,104,116,0,0,0,0,0,0,0,0,112,111,99,0,0,0,0,0,114,101,102,80,105,99,45,62,119,105,100,116,104,0,0,0,40,40,117,51,50,41,100,97,116,97,38,48,120,51,41,32,61,61,32,48,0,0,0,0,83,76,73,67,69,95,68,65,84,65,0,0,0,0,0,0,109,97,120,82,101,102,70,114,97,109,101,115,32,60,61,32,49,54,0,0,0,
-0,0,0,82,101,111,114,100,101,114,105,110,103,0,0,0,0,0,0,100,105,115,97,98,108,101,95,100,101,98,108,111,99,107,105,110,103,95,102,105,108,116,101,114,95,105,100,99,0,0,0,116,111,112,76,101,102,116,91,103,114,111,117,112,93,32,60,61,32,98,111,116,116,111,109,82,105,103,104,116,91,103,114,111,117,112,93,32,38,38,32,98,111,116,116,111,109,82,105,103,104,116,91,103,114,111,117,112,93,32,60,32,112,105,99,83,105,122,101,0,0,0,0,114,101,102,80,105,99,45,62,100,97,116,97,0,0,0,0,99,104,114,111,109,97,95,
-113,112,95,105,110,100,101,120,95,111,102,102,115,101,116,0,0,112,77,98,80,114,101,100,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,99,97,118,108,99,46,99,0,0,112,112,115,45,62,98,111,116,116,111,109,82,105,103,104,116,0,0,0,0,0,0,0,0,115,108,105,99,101,95,113,112,95,100,101,108,116,97,0,0,98,111,116,116,111,109,82,105,103,104,116,0,0,0,0,0,114,101,102,80,105,99,0,0,112,105,99,95,105,110,105,116,95,113,115,95,109,105,110,117,115,50,54,0,0,0,0,0,112,83,117,98,77,98,80,114,101,100,0,0,0,0,0,
-0,71,97,112,115,32,105,110,32,102,114,97,109,101,32,110,117,109,0,0,0,0,0,0,0,100,112,98,45,62,102,117,108,108,110,101,115,115,32,60,61,32,100,112,98,45,62,100,112,98,83,105,122,101,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,100,112,98,46,99,0,0,0,0,112,112,115,45,62,116,111,112,76,101,102,116,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,118,117,105,46,99,0,0,0,0,110,117,109,95,114,101,102,95,105,100,120,95,97,99,116,105,118,101,95,111,118,101,114,114,105,100,101,95,102,
-108,97,103,0,0,0,0,0,0,0,0,116,111,112,76,101,102,116,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,118,108,99,46,99,0,0,0,0,112,97,114,116,72,101,105,103,104,116,0,0,0,0,0,0,112,105,99,95,105,110,105,116,95,113,112,95,109,105,110,117,115,50,54,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,117,116,105,108,46,99,0,0,0,83,76,73,67,69,95,72,69,65,68,69,82,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,115,116,114,101,97,109,46,99,0,33,100,112,98,45,62,98,117,102,102,101,
-114,91,100,112,98,45,62,100,112,98,83,105,122,101,93,46,116,111,66,101,68,105,115,112,108,97,121,101,100,32,38,38,32,33,40,40,100,112,98,45,62,98,117,102,102,101,114,91,100,112,98,45,62,100,112,98,83,105,122,101,93,41,46,115,116,97,116,117,115,41,0,0,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,115,116,111,114,97,103,101,46,99,0,0,0,0,0,0,0,0,80,97,114,97,109,32,115,101,116,32,97,99,116,105,118,97,116,105,111,110,0,0,0,0,112,112,115,45,62,114,117,110,76,101,110,103,116,104,0,0,110,
-117,109,95,114,101,102,95,105,100,120,95,108,48,95,97,99,116,105,118,101,95,109,105,110,117,115,49,0,0,0,0,110,117,109,83,108,105,99,101,71,114,111,117,112,115,32,62,61,32,49,32,38,38,32,110,117,109,83,108,105,99,101,71,114,111,117,112,115,32,60,61,32,56,0,0,0,0,0,0,112,83,116,111,114,97,103,101,45,62,109,98,91,112,83,116,111,114,97,103,101,45,62,115,108,105,99,101,45,62,108,97,115,116,77,98,65,100,100,114,93,46,115,108,105,99,101,73,100,32,61,61,32,115,108,105,99,101,73,100,0,0,0,0,112,83,112,115,
-50,0,0,0,112,97,114,116,87,105,100,116,104,0,0,0,0,0,0,0,119,101,105,103,104,116,101,100,95,98,105,112,114,101,100,95,105,100,99,0,0,0,0,0,112,82,101,115,105,100,117,97,108,0,0,0,0,0,0,0,98,108,111,99,107,78,117,109,32,60,32,49,54,32,43,32,52,32,43,32,52,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,115,108,105,99,101,95,104,101,97,100,101,114,46,99,0,0,0,98,83,32,38,38,32,98,83,32,60,61,32,52,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,115,108,105,99,101,95,103,114,111,117,
-112,95,109,97,112,46,99,0,0,0,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,100,101,99,111,100,101,114,46,99,0,0,0,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,115,108,105,99,101,95,100,97,116,97,46,99,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,115,101,113,95,112,97,114,97,109,95,115,101,116,46,99,0,0,105,32,61,61,32,48,0,0,116,109,112,32,61,61,32,48,0,0,0,0,0,0,0,0,115,116,111,114,97,103,101,45,62,112,112,115,0,0,0,0,114,101,100,117,110,100,97,110,116,
-95,112,105,99,95,99,110,116,0,0,0,0,0,0,0,102,105,114,115,116,77,98,73,110,83,108,105,99,101,32,60,32,112,83,116,111,114,97,103,101,45,62,112,105,99,83,105,122,101,73,110,77,98,115,0,109,118,0,0,0,0,0,0,119,101,105,103,104,116,101,100,95,112,114,101,100,95,102,108,97,103,0,0,0,0,0,0,114,101,115,105,100,117,97,108,76,101,118,101,108,0,0,0,112,114,101,100,77,111,100,101,32,60,32,52,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,114,101,99,111,110,115,116,114,117,99,116,46,99,0,0,0,0,98,83,
-32,60,61,32,52,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,100,101,98,108,111,99,107,105,110,103,46,99,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,112,105,99,95,111,114,100,101,114,95,99,110,116,46,99,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,110,101,105,103,104,98,111,117,114,46,99,0,0,0,0,0,0,100,112,98,45,62,111,117,116,73,110,100,101,120,32,61,61,32,48,0,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,110,97,108,95,117,110,105,116,46,99,0,0,0,0,
-0,0,0,80,73,67,95,80,65,82,65,77,95,83,69,84,0,0,0,115,116,111,114,97,103,101,45,62,115,112,115,0,0,0,0,105,100,114,95,112,105,99,95,105,100,0,0,0,0,0,0,115,105,122,101,79,102,85,112,112,101,114,76,101,102,116,71,114,111,117,112,32,60,61,32,112,105,99,83,105,122,101,0,78,117,109,32,100,101,99,111,100,101,100,32,109,98,115,0,102,114,97,109,101,95,99,114,111,112,112,105,110,103,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,109,97,99,114,111,98,108,111,99,107,95,108,97,121,101,114,46,99,0,0,
-0,0,0,0,0,100,97,116,97,0,0,0,0,110,117,109,95,114,101,102,95,105,100,120,95,108,49,95,97,99,116,105,118,101,95,109,105,110,117,115,49,0,0,0,0,115,117,98,77,98,84,121,112,101,32,60,32,52,0,0,0,112,77,98,45,62,105,110,116,114,97,52,120,52,80,114,101,100,77,111,100,101,91,98,108,111,99,107,93,32,60,32,57,0,0,0,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,99,111,110,99,101,97,108,46,99,0,0,0,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,105,110,116,114,97,95,112,114,101,
-100,105,99,116,105,111,110,46,99,0,0,0,0,0,0,0,98,83,32,60,32,52,0,0,33,40,40,117,51,50,41,105,109,97,103,101,66,108,111,99].concat([107,38,48,120,51,41,0,0,100,112,98,45,62,110,117,109,79,117,116,32,61,61,32,48,0,0,0,0,0,0,0,0,83,69,81,95,80,65,82,65,77,95,83,69,84,0,0,0,102,114,97,109,101,95,110,117,109,0,0,0,0,0,0,0,112,105,99,83,105,122,101,0,78,101,120,116,32,109,98,32,97,100,100,114,101,115,115,0,102,114,97,109,101,95,109,98,115,95,111,110,108,121,95,102,108,97,103,0,0,0,0,0,40,112,97,114,116,
-72,101,105,103,104,116,38,48,120,51,41,32,61,61,32,48,0,0,0,109,98,78,117,109,32,60,32,99,117,114,114,73,109,97,103,101,45,62,119,105,100,116,104,42,99,117,114,114,73,109,97,103,101,45,62,104,101,105,103,104,116,0,0,0,0,0,0,46,46,47,115,114,99,47,104,50,54,52,98,115,100,95,98,121,116,101,95,115,116,114,101,97,109,46,99,0,0,0,0,104,50,54,52,98,115,100,87,114,105,116,101,79,117,116,112,117,116,66,108,111,99,107,115,0,0,0,0,0,0,0,0,104,50,54,52,98,115,100,87,114,105,116,101,77,97,99,114,111,98,108,111,
-99,107,0,0,104,50,54,52,98,115,100,83,117,98,77,98,80,97,114,116,77,111,100,101,0,0,0,0,104,50,54,52,98,115,100,83,116,111,114,101,83,101,113,80,97,114,97,109,83,101,116,0,104,50,54,52,98,115,100,83,116,111,114,101,80,105,99,80,97,114,97,109,83,101,116,0,104,50,54,52,98,115,100,83,104,117,116,100,111,119,110,0,104,50,54,52,98,115,100,83,104,111,119,66,105,116,115,51,50,0,0,0,0,0,0,0,104,50,54,52,98,115,100,82,101,115,101,116,68,112,98,0,104,50,54,52,98,115,100,82,101,111,114,100,101,114,82,101,102,
-80,105,99,76,105,115,116,0,0,0,0,0,0,0,0,104,50,54,52,98,115,100,82,98,115,112,84,114,97,105,108,105,110,103,66,105,116,115,0,104,50,54,52,98,115,100,80,114,101,100,105,99,116,83,97,109,112,108,101,115,0,0,0,104,50,54,52,98,115,100,80,114,101,100,77,111,100,101,73,110,116,114,97,49,54,120,49,54,0,0,0,0,0,0,0,104,50,54,52,98,115,100,80,105,99,87,105,100,116,104,0,104,50,54,52,98,115,100,80,105,99,72,101,105,103,104,116,0,0,0,0,0,0,0,0,104,50,54,52,98,115,100,78,117,109,83,117,98,77,98,80,97,114,116,
-0,0,0,0,0,104,50,54,52,98,115,100,78,101,120,116,79,117,116,112,117,116,80,105,99,116,117,114,101,0,0,0,0,0,0,0,0,104,50,54,52,98,115,100,78,101,120,116,77,98,65,100,100,114,101,115,115,0,0,0,0,104,50,54,52,98,115,100,77,111,114,101,82,98,115,112,68,97,116,97,0,0,0,0,0,104,50,54,52,98,115,100,77,98,80,97,114,116,80,114,101,100,77,111,100,101,0,0,0,104,50,54,52,98,115,100,77,97,114,107,83,108,105,99,101,67,111,114,114,117,112,116,101,100,0,0,0,0,0,0,0,104,50,54,52,98,115,100,77,97,114,107,68,101,99,
-82,101,102,80,105,99,0,0,0,0,104,50,54,52,98,115,100,73,110,116,114,97,80,114,101,100,105,99,116,105,111,110,0,0,104,50,54,52,98,115,100,73,110,116,114,97,67,104,114,111,109,97,80,114,101,100,105,99,116,105,111,110,0,0,0,0,104,50,54,52,98,115,100,73,110,116,114,97,52,120,52,80,114,101,100,105,99,116,105,111,110,0,0,0,0,0,0,0,104,50,54,52,98,115,100,73,110,116,114,97,49,54,120,49,54,80,114,101,100,105,99,116,105,111,110,0,0,0,0,0,104,50,54,52,98,115,100,73,110,116,101,114,112,111,108,97,116,101,86,
-101,114,81,117,97,114,116,101,114,0,0,0,0,104,50,54,52,98,115,100,73,110,116,101,114,112,111,108,97,116,101,86,101,114,72,97,108,102,0,0,0,0,0,0,0,104,50,54,52,98,115,100,73,110,116,101,114,112,111,108,97,116,101,77,105,100,86,101,114,81,117,97,114,116,101,114,0,104,50,54,52,98,115,100,73,110,116,101,114,112,111,108,97,116,101,77,105,100,72,111,114,81,117,97,114,116,101,114,0,104,50,54,52,98,115,100,73,110,116,101,114,112,111,108,97,116,101,77,105,100,72,97,108,102,0,0,0,0,0,0,0,104,50,54,52,98,115,
-100,73,110,116,101,114,112,111,108,97,116,101,72,111,114,86,101,114,81,117,97,114,116,101,114,0,104,50,54,52,98,115,100,73,110,116,101,114,112,111,108,97,116,101,72,111,114,81,117,97,114,116,101,114,0,0,0,0,104,50,54,52,98,115,100,73,110,116,101,114,112,111,108,97,116,101,72,111,114,72,97,108,102,0,0,0,0,0,0,0,104,50,54,52,98,115,100,73,110,116,101,114,112,111,108,97,116,101,67,104,114,111,109,97,86,101,114,0,0,0,0,0,104,50,54,52,98,115,100,73,110,116,101,114,112,111,108,97,116,101,67,104,114,111,
-109,97,72,111,114,86,101,114,0,0,104,50,54,52,98,115,100,73,110,116,101,114,112,111,108,97,116,101,67,104,114,111,109,97,72,111,114,0,0,0,0,0,104,50,54,52,98,115,100,73,110,116,101,114,80,114,101,100,105,99,116,105,111,110,0,0,104,50,54,52,98,115,100,73,110,105,116,77,98,78,101,105,103,104,98,111,117,114,115,0,104,50,54,52,98,115,100,73,110,105,116,0,0,0,0,0,104,50,54,52,98,115,100,71,101,116,78,101,105,103,104,98,111,117,114,77,98,0,0,0,104,50,54,52,98,115,100,71,101,116,66,105,116,115,0,0,104,50,
-54,52,98,115,100,70,114,101,101,68,112,98,0,0,104,50,54,52,98,115,100,70,108,117,115,104,66,105,116,115,0,0,0,0,0,0,0,0,104,50,54,52,98,115,100,70,105,108,116,101,114,80,105,99,116,117,114,101,0,0,0,0,104,50,54,52,98,115,100,70,105,108,108,82,111,119,55,0,104,50,54,52,98,115,100,70,105,108,108,66,108,111,99,107,0,0,0,0,0,0,0,0,104,50,54,52,98,115,100,69,120,116,114,97,99,116,78,97,108,85,110,105,116,0,0,0,104,50,54,52,98,115,100,68,112,98,79,117,116,112,117,116,80,105,99,116,117,114,101,0,104,50,
-54,52,98,115,100,68,101,99,111,100,101,83,108,105,99,101,72,101,97,100,101,114,0,0,0,0,0,0,0,0,104,50,54,52,98,115,100,68,101,99,111,100,101,83,108,105,99,101,71,114,111,117,112,77,97,112,0,0,0,0,0,0,104,50,54,52,98,115,100,68,101,99,111,100,101,83,108,105,99,101,68,97,116,97,0,0,104,50,54,52,98,115,100,68,101,99,111,100,101,82,101,115,105,100,117,97,108,66,108,111,99,107,67,97,118,108,99,0,104,50,54,52,98,115,100,68,101,99,111,100,101,80,105,99,79,114,100,101,114,67,110,116,0,0,0,0,0,0,0,0,104,50,
-54,52,98,115,100,68,101,99,111,100,101,78,97,108,85,110,105,116,0,0,0,0,104,50,54,52,98,115,100,68,101,99,111,100,101,77,97,99,114,111,98,108,111,99,107,76,97,121,101,114,0,0,0,0,104,50,54,52,98,115,100,68,101,99,111,100,101,77,97,99,114,111,98,108,111,99,107,0,104,50,54,52,98,115,100,68,101,99,111,100,101,69,120,112,71,111,108,111,109,98,85,110,115,105,103,110,101,100,0,0,104,50,54,52,98,115,100,68,101,99,111,100,101,69,120,112,71,111,108,111,109,98,83,105,103,110,101,100,0,0,0,0,104,50,54,52,98,
-115,100,68,101,99,111,100,101,0,0,0,104,50,54,52,98,115,100,67,114,111,112,112,105,110,103,80,97,114,97,109,115,0,0,0,104,50,54,52,98,115,100,67,111,110,99,101,97,108,0,0,104,50,54,52,98,115,100,67,111,109,112,97,114,101,83,101,113,80,97,114,97,109,83,101,116,115,0,0,0,0,0,0,104,50,54,52,98,115,100,67,104,101,99,107,86,97,108,105,100,80,97,114,97,109,83,101,116,115,0,0,0,0,0,0,104,50,54,52,98,115,100,67,104,101,99,107,80,114,105,111,114,80,105,99,115,70,108,97,103,0,0,0,0,0,0,0,104,50,54,52,98,115,
-100,67,104,101,99,107,80,105,99,79,114,100,101,114,67,110,116,76,115,98,0,0,0,0,0,0,104,50,54,52,98,115,100,67,104,101,99,107,73,100,114,80,105,99,73,100,0,0,0,0,104,50,54,52,98,115,100,67,104,101,99,107,71,97,112,115,73,110,70,114,97,109,101,78,117,109,0,0,0,0,0,0,104,50,54,52,98,115,100,67,104,101,99,107,70,114,97,109,101,78,117,109,0,0,0,0,104,50,54,52,98,115,100,67,104,101,99,107,68,101,108,116,97,80,105,99,79,114,100,101,114,67,110,116,66,111,116,116,111,109,0,0,0,0,0,0,104,50,54,52,98,115,100,
-67,104,101,99,107,68,101,108,116,97,80,105,99,79,114,100,101,114,67,110,116,0,0,0,0,104,50,54,52,98,115,100,67,104,101,99,107,65,99,99,101,115,115,85,110,105,116,66,111,117,110,100,97,114,121,0,0,104,50,54,52,98,115,100,65,108,108,111,99,97,116,101,68,112,98,73,109,97,103,101,0,104,50,54,52,98,115,100,65,100,100,82,101,115,105,100,117,97,108,0,0,0,0,0,0,87,114,105,116,101,52,120,52,84,111,49,54,120,49,54,0,83,101,116,80,105,99,78,117,109,115,0,0,0,0,0,0,82,101,102,80,105,99,76,105,115,116,82,101,
-111,114,100,101,114,105,110,103,0,0,0,0,80,114,111,99,101,115,115,82,101,115,105,100,117,97,108,0,80,114,101,100,105,99,116,67,104,114,111,109,97,0,0,0,79,117,116,112,117,116,80,105,99,116,117,114,101,0,0,0,78,117,109,83,108,105,99,101,71,114,111,117,112,67,104,97,110,103,101,67,121,99,108,101,66,105,116,115,0,0,0,0,77,109,99,111,112,54,0,0,77,109,99,111,112,51,0,0,77,109,99,111,112,49,0,0,73,110,116,114,97,67,104,114,111,109,97,86,101,114,116,105,99,97,108,80,114,101,100,105,99,116,105,111,110,0,
-0,0,73,110,116,114,97,67,104,114,111,109,97,80,108,97,110,101,80,114,101,100,105,99,116,105,111,110,0,0,0,0,0,0,73,110,116,114,97,67,104,114,111,109,97,72,111,114,105,122,111,110,116,97,108,80,114,101,100,105,99,116,105,111,110,0,73,110,116,114,97,67,104,114,111,109,97,68,99,80,114,101,100,105,99,116,105,111,110,0,73,110,116,114,97,52,120,52,68,99,80,114,101,100,105,99,116,105,111,110,0,0,0,0,71,101,116,77,98,70,105,108,116,101,114,105,110,103,70,108,97,103,115,0,0,0,0,0,71,101,116,68,112,98,83,105,
-122,101,0,0,0,0,0,0,70,105,110,100,68,112,98,80,105,99,0,0,0,0,0,0,70,105,108,116,101,114,86,101,114,76,117,109,97,69,100,103,101,0,0,0,0,0,0,0,70,105,108,116,101,114,86,101,114,67,104,114,111,109,97,69,100,103,101,0,0,0,0,0,70,105,108,116,101,114,76,117,109,97,0,0,0,0,0,0,70,105,108,116,101,114,72,111,114,76,117,109,97,69,100,103,101,0,0,0,0,0,0,0,70,105,108,116,101,114,72,111,114,76,117,109,97,0,0,0,70,105,108,116,101,114,72,111,114,67,104,114,111,109,97,69,100,103,101,0,0,0,0,0,70,105,108,116,
-101,114,72,111,114,67,104,114,111,109,97,0,70,105,108,116,101,114,67,104,114,111,109,97,0,0,0,0,70,105,108,108,82,111,119,49,0,0,0,0,0,0,0,0,68,101,116,101,114,109,105,110,101,78,99,0,0,0,0,0,68,101,99,111,100,101,87,105,112,101,77,97,112,0,0,0,68,101,99,111,100,101,84,111,116,97,108,90,101,114,111,115,0,0,0,0,0,0,0,0,68,101,99,111,100,101,83,117,98,77,98,80,114,101,100,0,68,101,99,111,100,101,82,101,115,105,100,117,97,108,0,0,68,101,99,111,100,101,82,97,115,116,101,114,83,99,97,110,77,97,112,0,0,
-0,0,0,68,101,99,111,100,101,77,98,80,114,101,100,0,0,0,0,68,101,99,111,100,101,73,110,116,101,114,108,101,97,118,101,100,77,97,112,0,0,0,0,68,101,99,111,100,101,72,114,100,80,97,114,97,109,101,116,101,114,115,0,0,0,0,0,68,101,99,111,100,101,70,111,114,101,103,114,111,117,110,100,76,101,102,116,79,118,101,114,77,97,112,0,0,0,0,0,68,101,99,111,100,101,68,105,115,112,101,114,115,101,100,77,97,112,0,0,0,0,0,0,68,101,99,111,100,101,67,111,101,102,102,84,111,107,101,110,0,0,0,0,0,0,0,0,68,101,99,82,101,
-102,80,105,99,77,97,114,107,105,110,103,0,0,0,0,0,0,0,0,67,111,110,99,101,97,108,77,98,0,0,0,0,0,0,0,67,111,109,112,97,114,101,80,105,99,116,117,114,101,115,0,67,104,101,99,107,80,112,115,0,0,0,0,0,0,0,0,67,98,112,73,110,116,114,97,49,54,120,49,54,0,0,0,3,0,0,0,15,0,0,0,255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,3,0,0,0,15,0,0,0,0,0,0,0,5,0,0,0,255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,3,0,0,0,15,0,0,0,1,0,0,0,10,0,0,0,255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,3,0,0,0,15,0,0,0,1,0,0,0,10,0,0,0,0,0,
-0,0,5,0,0,0,4,0,0,0,0,0,0,0,1,0,0,0,11,0,0,0,255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,1,0,0,0,11,0,0,0,4,0,0,0,1,0,0,0,255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,1,0,0,0,11,0,0,0,1,0,0,0,14,0,0,0,255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,1,0,0,0,11,0,0,0,1,0,0,0,14,0,0,0,4,0,0,0,1,0,0,0,4,0,0,0,4,0,0,0,0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,0,0,4,0,0,0,22,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0]),"i8",Ia,8);var kb=ra(N(12,"i8",Ha),8);z(0==kb%8);s._memset=lb;s._memcpy=mb;
-var S={Y:1,ea:2,sd:3,pc:4,N:5,Ja:6,Mb:7,Mc:8,da:9,$b:10,X:11,Cd:11,mb:12,fb:13,kc:14,Yc:15,Yb:16,Ga:17,Dd:18,Ha:19,Zc:20,ra:21,u:22,Hc:23,lb:24,cd:25,zd:26,lc:27,Uc:28,ua:29,pd:30,Ac:31,hd:32,hc:33,md:34,Qc:42,nc:43,ac:44,rc:45,sc:46,tc:47,zc:48,Ad:49,Kc:50,qc:51,fc:35,Nc:37,Rb:52,Ub:53,Ed:54,Ic:55,Vb:56,Wb:57,gc:35,Xb:59,Wc:60,Lc:61,wd:62,Vc:63,Rc:64,Sc:65,od:66,Oc:67,Pb:68,td:69,bc:70,jd:71,Cc:72,ic:73,Tb:74,dd:76,Sb:77,nd:78,uc:79,vc:80,yc:81,xc:82,wc:83,Xc:38,Ia:39,Dc:36,sa:40,ta:95,gd:96,ec:104,
-Jc:105,Qb:97,ld:91,ad:88,Tc:92,qd:108,dc:111,Nb:98,cc:103,Gc:101,Ec:100,xd:110,mc:112,ib:113,jb:115,gb:114,hb:89,Bc:90,kd:93,rd:94,Ob:99,Fc:102,kb:106,fa:107,yd:109,Bd:87,jc:122,ud:116,bd:95,Pc:123,oc:84,ed:75,Zb:125,$c:131,fd:130,vd:86},nb={"0":"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",
-12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",
-34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",
-53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",
-74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can   access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",
-90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",
-107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"},ob=0;function pb(a){return M[ob>>2]=a}
-function qb(a,b){for(var c=0,d=a.length-1;0<=d;d--){var f=a[d];"."===f?a.splice(d,1):".."===f?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function T(a){var b="/"===a.charAt(0),c="/"===a.substr(-1),a=qb(a.split("/").filter(function(a){return!!a}),!b).join("/");!a&&!b&&(a=".");a&&c&&(a+="/");return(b?"/":"")+a}function rb(a){if("/"===a)return"/";var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)}
-function sb(){for(var a="",b=q,c=arguments.length-1;-1<=c&&!b;c--){var d=0<=c?arguments[c]:"/";"string"!==typeof d&&e(new TypeError("Arguments to path.resolve must be strings"));d&&(a=d+"/"+a,b="/"===d.charAt(0))}a=qb(a.split("/").filter(function(a){return!!a}),!b).join("/");return(b?"/":"")+a||"."}var tb=[];function ub(a,b){tb[a]={input:[],Q:[],aa:b};vb[a]={k:wb}}
-var wb={open:function(a){var b=tb[a.e.na];b||e(new U(S.Ha));a.B=b;a.seekable=q},close:function(a){a.B.Q.length&&a.B.aa.ma(a.B,10)},M:function(a,b,c,d){(!a.B||!a.B.aa.Ua)&&e(new U(S.Ja));for(var f=0,h=0;h<d;h++){var g;try{g=a.B.aa.Ua(a.B)}catch(j){e(new U(S.N))}g===i&&0===f&&e(new U(S.X));if(g===m||g===i)break;f++;b[c+h]=g}f&&(a.e.timestamp=Date.now());return f},write:function(a,b,c,d){(!a.B||!a.B.aa.ma)&&e(new U(S.Ja));for(var f=0;f<d;f++)try{a.B.aa.ma(a.B,b[c+f])}catch(h){e(new U(S.N))}d&&(a.e.timestamp=
-Date.now());return f}},V={D:m,eb:1,qa:2,Fa:3,J:function(){return V.createNode(m,"/",16895,0)},createNode:function(a,b,c,d){(24576===(c&61440)||4096===(c&61440))&&e(new U(S.Y));V.D||(V.D={dir:{e:{L:V.n.L,A:V.n.A,za:V.n.za,R:V.n.R,R:V.n.R,rename:V.n.rename,cb:V.n.cb,bb:V.n.bb,$a:V.n.$a,pa:V.n.pa},F:{P:V.k.P}},file:{e:{L:V.n.L,A:V.n.A},F:{P:V.k.P,M:V.k.M,write:V.k.write,Ma:V.k.Ma,Xa:V.k.Xa}},link:{e:{L:V.n.L,A:V.n.A,oa:V.n.oa},F:{}},Pa:{e:{L:V.n.L,A:V.n.A},F:xb}});c=yb(a,b,c,d);16384===(c.mode&61440)?
-(c.n=V.D.dir.e,c.k=V.D.dir.F,c.o={}):32768===(c.mode&61440)?(c.n=V.D.file.e,c.k=V.D.file.F,c.o=[],c.ha=V.qa):40960===(c.mode&61440)?(c.n=V.D.link.e,c.k=V.D.link.F):8192===(c.mode&61440)&&(c.n=V.D.Pa.e,c.k=V.D.Pa.F);c.timestamp=Date.now();a&&(a.o[b]=c);return c},wa:function(a){a.ha!==V.qa&&(a.o=Array.prototype.slice.call(a.o),a.ha=V.qa)},n:{L:function(a){var b={};b.Sd=8192===(a.mode&61440)?a.id:1;b.Yd=a.id;b.mode=a.mode;b.ce=1;b.uid=0;b.Wd=0;b.na=a.na;b.size=16384===(a.mode&61440)?4096:32768===(a.mode&
-61440)?a.o.length:40960===(a.mode&61440)?a.link.length:0;b.Md=new Date(a.timestamp);b.be=new Date(a.timestamp);b.Rd=new Date(a.timestamp);b.qb=4096;b.Od=Math.ceil(b.size/b.qb);return b},A:function(a,b){b.mode!==i&&(a.mode=b.mode);b.timestamp!==i&&(a.timestamp=b.timestamp);if(b.size!==i){V.wa(a);var c=a.o;if(b.size<c.length)c.length=b.size;else for(;b.size>c.length;)c.push(0)}},za:function(){e(zb[S.ea])},R:function(a,b,c,d){return V.createNode(a,b,c,d)},rename:function(a,b,c){if(16384===(a.mode&61440)){var d;
-try{d=Ab(b,c)}catch(f){}if(d)for(var h in d.o)e(new U(S.Ia))}delete a.parent.o[a.name];a.name=c;b.o[c]=a;a.parent=b},cb:function(a,b){delete a.o[b]},bb:function(a,b){var c=Ab(a,b),d;for(d in c.o)e(new U(S.Ia));delete a.o[b]},$a:function(a){var b=[".",".."],c;for(c in a.o)a.o.hasOwnProperty(c)&&b.push(c);return b},pa:function(a,b,c){a=V.createNode(a,b,41471,0);a.link=c;return a},oa:function(a){40960!==(a.mode&61440)&&e(new U(S.u));return a.link}},k:{M:function(a,b,c,d,f){a=a.e.o;if(f>=a.length)return 0;
-d=Math.min(a.length-f,d);z(0<=d);if(8<d&&a.subarray)b.set(a.subarray(f,f+d),c);else for(var h=0;h<d;h++)b[c+h]=a[f+h];return d},write:function(a,b,c,d,f,h){var g=a.e;g.timestamp=Date.now();a=g.o;if(d&&0===a.length&&0===f&&b.subarray)return h&&0===c?(g.o=b,g.ha=b.buffer===K.buffer?V.eb:V.Fa):(g.o=new Uint8Array(b.subarray(c,c+d)),g.ha=V.Fa),d;V.wa(g);for(a=g.o;a.length<f;)a.push(0);for(h=0;h<d;h++)a[f+h]=b[c+h];return d},P:function(a,b,c){1===c?b+=a.position:2===c&&32768===(a.e.mode&61440)&&(b+=a.e.o.length);
-0>b&&e(new U(S.u));a.Jb=[];return a.position=b},Ma:function(a,b,c){V.wa(a.e);a=a.e.o;for(b+=c;b>a.length;)a.push(0)},Xa:function(a,b,c,d,f,h,g){32768!==(a.e.mode&61440)&&e(new U(S.Ha));a=a.e.o;if(!(g&2)&&(a.buffer===b||a.buffer===b.buffer))f=q,d=a.byteOffset;else{if(0<f||f+d<a.length)a=a.subarray?a.subarray(f,f+d):Array.prototype.slice.call(a,f,f+d);f=l;(d=Ja(d))||e(new U(S.mb));b.set(a,d)}return{fe:d,Ld:f}}}},Bb=N(1,"i32*",Ha),Cb=N(1,"i32*",Ha);jb=N(1,"i32*",Ha);
-var Db=m,Eb=[],vb=[m],X=[m],Fb=1,Gb=m,Hb=l,U=m,zb={};function Ib(a){a instanceof U||e(a+" : "+La());pb(a.Ra)}
-function Y(a,b){a=sb("/",a);b=b||{Ca:0};8<b.Ca&&e(new U(S.sa));for(var c=qb(a.split("/").filter(function(a){return!!a}),q),d=Db,f="/",h=0;h<c.length;h++){var g=h===c.length-1;if(g&&b.parent)break;d=Ab(d,c[h]);f=T(f+"/"+c[h]);d.Bb&&(d=d.J.root);if(!g||b.Z)for(g=0;40960===(d.mode&61440);){d=Y(f,{Z:q}).e;d.n.oa||e(new U(S.u));var d=d.n.oa(d),j=sb;var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(f).slice(1),f=n[0],n=n[1];!f&&!n?f=".":(n&&(n=n.substr(0,n.length-1)),f+=n);f=j(f,
-d);d=Y(f,{Ca:b.Ca}).e;40<g++&&e(new U(S.sa))}}return{path:f,e:d}}function Jb(a){for(var b;;){if(a===a.parent)return a=a.J.Cb,!b?a:"/"!==a[a.length-1]?a+"/"+b:a+b;b=b?a.name+"/"+b:a.name;a=a.parent}}function Kb(a,b){for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%Gb.length}function Ab(a,b){var c=Lb(a,"x");c&&e(new U(c));for(c=Gb[Kb(a.id,b)];c;c=c.Db){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.n.za(a,b)}
-function yb(a,b,c,d){Mb||(Mb=function(a,b,c,d){this.id=Fb++;this.name=b;this.mode=c;this.n={};this.k={};this.na=d;this.J=this.parent=m;a||(a=this);this.parent=a;this.J=a.J;a=Kb(this.parent.id,this.name);this.Db=Gb[a];Gb[a]=this},Mb.prototype={},Object.defineProperties(Mb.prototype,{M:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}},zb:{get:function(){return 16384===
-(this.mode&61440)}},yb:{get:function(){return 8192===(this.mode&61440)}}}));return new Mb(a,b,c,d)}var Nb={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218};function Ob(a){var b=Nb[a];"undefined"===typeof b&&e(Error("Unknown file open mode: "+a));return b}function Lb(a,b){return Hb?0:-1!==b.indexOf("r")&&!(a.mode&292)||-1!==b.indexOf("w")&&!(a.mode&146)||-1!==b.indexOf("x")&&!(a.mode&73)?S.fb:0}
-function Pb(a,b){try{return Ab(a,b),S.Ga}catch(c){}return Lb(a,"wx")}
-function Qb(a,b,c){Rb||(Rb=r(),Rb.prototype={},Object.defineProperties(Rb.prototype,{object:{get:function(){return this.e},set:function(a){this.e=a}},$d:{get:function(){return 1!==(this.K&2097155)}},ae:{get:function(){return 0!==(this.K&2097155)}},Zd:{get:function(){return this.K&1024}}}));if(a.__proto__)a.__proto__=Rb.prototype;else{var d=new Rb,f;for(f in a)d[f]=a[f];a=d}var h;a:{b=b||1;for(c=c||4096;b<=c;b++)if(!X[b]){h=b;break a}e(new U(S.lb))}a.C=h;return X[h]=a}
-var xb={open:function(a){a.k=vb[a.e.na].k;a.k.open&&a.k.open(a)},P:function(){e(new U(S.ua))}};function Sb(a,b){var c;b&&(c=Y(b,{Z:q}),b=c.path);var d={type:a,ee:{},Cb:b,root:m},f=a.J(d);f.J=d;d.root=f;c&&(c.e.J=d,c.e.Bb=l,"/"===b&&(Db=d.root));Eb.push(d);return f}function Tb(a,b,c){var d=Y(a,{parent:l}).e,a=rb(a),f=Pb(d,a);f&&e(new U(f));d.n.R||e(new U(S.Y));return d.n.R(d,a,b,c)}function Ub(a,b){b=(b!==i?b:438)&4095;b|=32768;return Tb(a,b,0)}
-function Vb(a,b){b=(b!==i?b:511)&1023;b|=16384;return Tb(a,b,0)}function Wb(a,b,c){"undefined"===typeof c&&(c=b,b=438);return Tb(a,b|8192,c)}function Xb(a,b){var c=Y(b,{parent:l}).e,d=rb(b),f=Pb(c,d);f&&e(new U(f));c.n.pa||e(new U(S.Y));return c.n.pa(c,d,a)}function Yb(a,b){var c;c="string"===typeof a?Y(a,{Z:l}).e:a;c.n.A||e(new U(S.Y));c.n.A(c,{mode:b&4095|c.mode&-4096,timestamp:Date.now()})}
-function Zb(a,b){var c,b="string"===typeof b?Ob(b):b;c=b&64?("undefined"===typeof c?438:c)&4095|32768:0;var d;if("object"===typeof a)d=a;else{a=T(a);try{d=Y(a,{Z:!(b&131072)}).e}catch(f){}}b&64&&(d?b&128&&e(new U(S.Ga)):d=Tb(a,c,0));d||e(new U(S.ea));8192===(d.mode&61440)&&(b&=-513);d?40960===(d.mode&61440)?c=S.sa:16384===(d.mode&61440)&&(0!==(b&2097155)||b&512)?c=S.ra:(c=["r","w","rw"][b&2097155],b&512&&(c+="w"),c=Lb(d,c)):c=S.ea;c&&e(new U(c));if(b&512){c=d;c="string"===typeof c?Y(c,{Z:l}).e:c;
-c.n.A||e(new U(S.Y));16384===(c.mode&61440)&&e(new U(S.ra));32768!==(c.mode&61440)&&e(new U(S.u));var h=Lb(c,"w");h&&e(new U(h));c.n.A(c,{size:0,timestamp:Date.now()})}b&=-641;d=Qb({e:d,path:Jb(d),K:b,seekable:l,position:0,k:d.k,Jb:[],error:q},i,i);d.k.open&&d.k.open(d);s.logReadFiles&&!(b&1)&&($b||($b={}),a in $b||($b[a]=1,s.printErr("read file: "+a)));return d}function ac(a){try{a.k.close&&a.k.close(a)}catch(b){e(b)}finally{X[a.C]=m}}
-function bc(a,b,c,d,f,h){(0>d||0>f)&&e(new U(S.u));0===(a.K&2097155)&&e(new U(S.da));16384===(a.e.mode&61440)&&e(new U(S.ra));a.k.write||e(new U(S.u));var g=l;"undefined"===typeof f?(f=a.position,g=q):a.seekable||e(new U(S.ua));a.K&1024&&((!a.seekable||!a.k.P)&&e(new U(S.ua)),a.k.P(a,0,2));b=a.k.write(a,b,c,d,f,h);g||(a.position+=b);return b}
-function cc(){U||(U=function(a){this.Ra=a;for(var b in S)if(S[b]===a){this.code=b;break}this.message=nb[a];this.stack=La()},U.prototype=Error(),[S.ea].forEach(function(a){zb[a]=new U(a);zb[a].stack="<generic error, no stack>"}))}var dc;function ec(a,b){var c=0;a&&(c|=365);b&&(c|=146);return c}
-function fc(a,b,c,d,f,h){a=b?T(("string"===typeof a?a:Jb(a))+"/"+b):a;d=ec(d,f);f=Ub(a,d);if(c){if("string"===typeof c){for(var a=Array(c.length),b=0,g=c.length;b<g;++b)a[b]=c.charCodeAt(b);c=a}Yb(f,d|146);a=Zb(f,"w");bc(a,c,0,c.length,0,h);ac(a);Yb(f,d)}return f}
-function gc(a,b,c,d){a=T(("string"===typeof a?a:Jb(a))+"/"+b);b=ec(!!c,!!d);gc.Wa||(gc.Wa=64);var f;f=gc.Wa++<<8|0;vb[f]={k:{open:function(a){a.seekable=q},close:function(){d&&(d.buffer&&d.buffer.length)&&d(10)},M:function(a,b,d,f){for(var x=0,D=0;D<f;D++){var u;try{u=c()}catch(p){e(new U(S.N))}u===i&&0===x&&e(new U(S.X));if(u===m||u===i)break;x++;b[d+D]=u}x&&(a.e.timestamp=Date.now());return x},write:function(a,b,c,f){for(var x=0;x<f;x++)try{d(b[c+x])}catch(D){e(new U(S.N))}f&&(a.e.timestamp=Date.now());
-return x}}};return Wb(a,b,f)}function hc(a){if(a.yb||a.zb||a.link||a.o)return l;var b=l;"undefined"!==typeof XMLHttpRequest&&e(Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread."));if(s.read)try{a.o=J(s.read(a.url),l)}catch(c){b=q}else e(Error("Cannot load without read() or XMLHttpRequest."));b||pb(S.N);return b}
-var Mb,Rb,$b,Z={J:function(){return yb(m,"/",16895,0)},tb:function(a,b,c){c&&z(1==b==(6==c));a={ub:a,type:b,protocol:c,p:m,ba:{},Aa:[],T:[],V:Z.q};b=Z.la();c=yb(Z.root,b,49152,0);c.U=a;b=Qb({path:b,e:c,K:Ob("r+"),seekable:q,k:Z.k});a.F=b;return a},vb:function(a){a=X[a];return!a||49152!==(a.e.mode&49152)?m:a.e.U},k:{Za:function(a){a=a.e.U;return a.V.Za(a)},Va:function(a,b,c){a=a.e.U;return a.V.Va(a,b,c)},M:function(a,b,c,d){a=a.e.U;d=a.V.Fb(a,d);if(!d)return 0;b.set(d.buffer,c);return d.buffer.length},
-write:function(a,b,c,d){a=a.e.U;return a.V.Hb(a,b,c,d)},close:function(a){a=a.e.U;a.V.close(a)}},la:function(){Z.la.Qa||(Z.la.Qa=0);return"socket["+Z.la.Qa++ +"]"},q:{ia:function(a,b,c){var d;"object"===typeof b&&(d=b,c=b=m);if(d)d.Ka?(b=d.Ka.ge,c=d.Ka.he):((c=/ws[s]?:\/\/([^:]+):(\d+)/.exec(d.url))||e(Error("WebSocket URL must be in the format ws(s)://address:port")),b=c[1],c=parseInt(c[2],10));else try{var f=v?{headers:{"websocket-protocol":["binary"]}}:["binary"];d=new (v?require("ws"):window.WebSocket)("ws://"+
-b+":"+c,f);d.binaryType="arraybuffer"}catch(h){e(new U(S.ib))}b={G:b,port:c,g:d,ja:[]};Z.q.La(a,b);Z.q.xb(a,b);2===a.type&&"undefined"!==typeof a.W&&b.ja.push(new Uint8Array([255,255,255,255,112,111,114,116,(a.W&65280)>>8,a.W&255]));return b},ka:function(a,b,c){return a.ba[b+":"+c]},La:function(a,b){a.ba[b.G+":"+b.port]=b},ab:function(a,b){delete a.ba[b.G+":"+b.port]},xb:function(a,b){function c(){try{for(var a=b.ja.shift();a;)b.g.send(a),a=b.ja.shift()}catch(c){b.g.close()}}function d(c){z("string"!==
-typeof c&&c.byteLength!==i);var c=new Uint8Array(c),d=f;f=q;d&&10===c.length&&255===c[0]&&255===c[1]&&255===c[2]&&255===c[3]&&112===c[4]&&111===c[5]&&114===c[6]&&116===c[7]?(c=c[8]<<8|c[9],Z.q.ab(a,b),b.port=c,Z.q.La(a,b)):a.T.push({G:b.G,port:b.port,data:c})}var f=l;v?(b.g.$("open",c),b.g.$("message",function(a,b){b.Nd&&d((new Uint8Array(a)).buffer)}),b.g.$("error",r())):(b.g.onopen=c,b.g.onmessage=function(a){d(a.data)})},Za:function(a){if(1===a.type&&a.p)return a.Aa.length?65:0;var b=0,c=1===a.type?
-Z.q.ka(a,a.H,a.I):m;if(a.T.length||!c||c&&c.g.readyState===c.g.ca||c&&c.g.readyState===c.g.CLOSED)b|=65;if(!c||c&&c.g.readyState===c.g.OPEN)b|=4;if(c&&c.g.readyState===c.g.ca||c&&c.g.readyState===c.g.CLOSED)b|=16;return b},Va:function(a,b,c){switch(b){case 21531:return b=0,a.T.length&&(b=a.T[0].data.length),M[c>>2]=b,0;default:return S.u}},close:function(a){if(a.p){try{a.p.close()}catch(b){}a.p=m}for(var c=Object.keys(a.ba),d=0;d<c.length;d++){var f=a.ba[c[d]];try{f.g.close()}catch(h){}Z.q.ab(a,f)}return 0},
-bind:function(a,b,c){("undefined"!==typeof a.Ea||"undefined"!==typeof a.W)&&e(new U(S.u));a.Ea=b;a.W=c||i();if(2===a.type){a.p&&(a.p.close(),a.p=m);try{a.V.Ab(a,0)}catch(d){d instanceof U||e(d),d.Ra!==S.ta&&e(d)}}},Qd:function(a,b,c){a.p&&e(new U(ERRNO_CODS.ta));if("undefined"!==typeof a.H&&"undefined"!==typeof a.I){var d=Z.q.ka(a,a.H,a.I);d&&(d.g.readyState===d.g.CONNECTING&&e(new U(S.gb)),e(new U(S.kb)))}b=Z.q.ia(a,b,c);a.H=b.G;a.I=b.port;e(new U(S.jb))},Ab:function(a){v||e(new U(S.ta));a.p&&e(new U(S.u));
-var b=require("ws").Fd;a.p=new b({host:a.Ea,port:a.W});a.p.$("connection",function(b){if(1===a.type){var d=Z.tb(a.ub,a.type,a.protocol),b=Z.q.ia(d,b);d.H=b.G;d.I=b.port;a.Aa.push(d)}else Z.q.ia(a,b)});a.p.$("closed",function(){a.p=m});a.p.$("error",r())},accept:function(a){a.p||e(new U(S.u));var b=a.Aa.shift();b.F.K=a.F.K;return b},Vd:function(a,b){var c,d;b?((a.H===i||a.I===i)&&e(new U(S.fa)),c=a.H,d=a.I):(c=a.Ea||0,d=a.W||0);return{G:c,port:d}},Hb:function(a,b,c,d,f,h){if(2===a.type){if(f===i||
-h===i)f=a.H,h=a.I;(f===i||h===i)&&e(new U(S.hb))}else f=a.H,h=a.I;var g=Z.q.ka(a,f,h);1===a.type&&((!g||g.g.readyState===g.g.ca||g.g.readyState===g.g.CLOSED)&&e(new U(S.fa)),g.g.readyState===g.g.CONNECTING&&e(new U(S.X)));b=b instanceof Array||b instanceof ArrayBuffer?b.slice(c,c+d):b.buffer.slice(b.byteOffset+c,b.byteOffset+c+d);if(2===a.type&&(!g||g.g.readyState!==g.g.OPEN)){if(!g||g.g.readyState===g.g.ca||g.g.readyState===g.g.CLOSED)g=Z.q.ia(a,f,h);g.ja.push(b);return d}try{return g.g.send(b),
-d}catch(j){e(new U(S.u))}},Fb:function(a,b){1===a.type&&a.p&&e(new U(S.fa));var c=a.T.shift();if(!c){if(1===a.type){var d=Z.q.ka(a,a.H,a.I);if(d){if(d.g.readyState===d.g.ca||d.g.readyState===d.g.CLOSED)return m;e(new U(S.X))}e(new U(S.fa))}e(new U(S.X))}var d=c.data.byteLength||c.data.length,f=c.data.byteOffset||0,h=c.data.buffer||c.data,g=Math.min(b,d),j={buffer:new Uint8Array(h,f,g),G:c.G,port:c.port};1===a.type&&g<d&&(c.data=new Uint8Array(h,f+g,d-g),a.T.unshift(c));return j}}};
-function ic(a,b,c){a=X[a];if(!a)return pb(S.da),-1;try{return bc(a,K,b,c)}catch(d){return Ib(d),-1}}function jc(a,b,c,d){c*=b;if(0==c)return 0;a=ic(d,a,c);if(-1==a){if(b=X[d])b.error=l;return 0}return Math.floor(a/b)}s._strlen=kc;function lc(a){return 0>a||0===a&&-Infinity===1/a}
-function mc(a,b){function c(a){var c;"double"===a?c=Ga[b+f>>3]:"i64"==a?(c=[M[b+f>>2],M[b+(f+8)>>2]],f+=8):(a="i32",c=M[b+f>>2]);f+=Math.max(Math.max(ja(a),ka),8);return c}for(var d=a,f=0,h=[],g,j;;){var n=d;g=K[d];if(0===g)break;j=K[d+1|0];if(37==g){var x=q,D=q,u=q,p=q,A=q;a:for(;;){switch(j){case 43:x=l;break;case 45:D=l;break;case 35:u=l;break;case 48:if(p)break a;else{p=l;break}case 32:A=l;break;default:break a}d++;j=K[d+1|0]}var G=0;if(42==j)G=c("i32"),d++,j=K[d+1|0];else for(;48<=j&&57>=j;)G=
-10*G+(j-48),d++,j=K[d+1|0];var I=q;if(46==j){var C=0,I=l;d++;j=K[d+1|0];if(42==j)C=c("i32"),d++;else for(;;){j=K[d+1|0];if(48>j||57<j)break;C=10*C+(j-48);d++}j=K[d+1|0]}else C=6;var y;switch(String.fromCharCode(j)){case "h":j=K[d+2|0];104==j?(d++,y=1):y=2;break;case "l":j=K[d+2|0];108==j?(d++,y=8):y=4;break;case "L":case "q":case "j":y=8;break;case "z":case "t":case "I":y=4;break;default:y=m}y&&d++;j=K[d+1|0];switch(String.fromCharCode(j)){case "d":case "i":case "u":case "o":case "x":case "X":case "p":n=
-100==j||105==j;y=y||4;g=c("i"+8*y);var k;8==y&&(g=117==j?+(g[0]>>>0)+4294967296*+(g[1]>>>0):+(g[0]>>>0)+4294967296*+(g[1]|0));4>=y&&(g=(n?db:cb)(g&Math.pow(256,y)-1,8*y));var W=Math.abs(g),n="";if(100==j||105==j)k=db(g,8*y).toString(10);else if(117==j)k=cb(g,8*y).toString(10),g=Math.abs(g);else if(111==j)k=(u?"0":"")+W.toString(8);else if(120==j||88==j){n=u&&0!=g?"0x":"";if(0>g){g=-g;k=(W-1).toString(16);W=[];for(u=0;u<k.length;u++)W.push((15-parseInt(k[u],16)).toString(16));for(k=W.join("");k.length<
-2*y;)k="f"+k}else k=W.toString(16);88==j&&(n=n.toUpperCase(),k=k.toUpperCase())}else 112==j&&(0===W?k="(nil)":(n="0x",k=W.toString(16)));if(I)for(;k.length<C;)k="0"+k;0<=g&&(x?n="+"+n:A&&(n=" "+n));"-"==k.charAt(0)&&(n="-"+n,k=k.substr(1));for(;n.length+k.length<G;)D?k+=" ":p?k="0"+k:n=" "+n;k=n+k;k.split("").forEach(function(a){h.push(a.charCodeAt(0))});break;case "f":case "F":case "e":case "E":case "g":case "G":g=c("double");if(isNaN(g))k="nan",p=q;else if(isFinite(g)){I=q;y=Math.min(C,20);if(103==
-j||71==j)I=l,C=C||1,y=parseInt(g.toExponential(y).split("e")[1],10),C>y&&-4<=y?(j=(103==j?"f":"F").charCodeAt(0),C-=y+1):(j=(103==j?"e":"E").charCodeAt(0),C--),y=Math.min(C,20);if(101==j||69==j)k=g.toExponential(y),/[eE][-+]\d$/.test(k)&&(k=k.slice(0,-1)+"0"+k.slice(-1));else if(102==j||70==j)k=g.toFixed(y),0===g&&lc(g)&&(k="-"+k);n=k.split("e");if(I&&!u)for(;1<n[0].length&&-1!=n[0].indexOf(".")&&("0"==n[0].slice(-1)||"."==n[0].slice(-1));)n[0]=n[0].slice(0,-1);else for(u&&-1==k.indexOf(".")&&(n[0]+=
-".");C>y++;)n[0]+="0";k=n[0]+(1<n.length?"e"+n[1]:"");69==j&&(k=k.toUpperCase());0<=g&&(x?k="+"+k:A&&(k=" "+k))}else k=(0>g?"-":"")+"inf",p=q;for(;k.length<G;)k=D?k+" ":p&&("-"==k[0]||"+"==k[0])?k[0]+"0"+k.slice(1):(p?"0":" ")+k;97>j&&(k=k.toUpperCase());k.split("").forEach(function(a){h.push(a.charCodeAt(0))});break;case "s":p=(x=c("i8*"))?kc(x):6;I&&(p=Math.min(p,C));if(!D)for(;p<G--;)h.push(32);if(x)for(u=0;u<p;u++)h.push(O[x++|0]);else h=h.concat(J("(null)".substr(0,p),l));if(D)for(;p<G--;)h.push(32);
-break;case "c":for(D&&h.push(c("i8"));0<--G;)h.push(32);D||h.push(c("i8"));break;case "n":D=c("i32*");M[D>>2]=h.length;break;case "%":h.push(g);break;default:for(u=n;u<d+2;u++)h.push(K[u])}d+=2}else h.push(g),d+=1}return h}function nc(a){nc.rb||(E=E+4095&-4096,nc.rb=l,z(qa),nc.pb=qa,qa=function(){H("cannot dynamically allocate, sbrk now has control")});var b=E;0!=a&&nc.pb(a);return b}var oc=q,pc=q,qc=q,rc=q,sc=i,tc=i;
-function uc(a){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[a.substr(a.lastIndexOf(".")+1)]}var vc=[];function wc(){var a=s.canvas;vc.forEach(function(b){b(a.width,a.height)})}function xc(){var a=s.canvas;this.Lb=a.width;this.Kb=a.height;a.width=screen.width;a.height=screen.height;"undefined"!=typeof SDL&&(a=Na[SDL.screen+0*ka>>2],M[SDL.screen+0*ka>>2]=a|8388608);wc()}
-function yc(){var a=s.canvas;a.width=this.Lb;a.height=this.Kb;"undefined"!=typeof SDL&&(a=Na[SDL.screen+0*ka>>2],M[SDL.screen+0*ka>>2]=a&-8388609);wc()}var zc,Ac,Bc,Cc;cc();Gb=Array(4096);Db=yb(m,"/",16895,0);Sb(V,"/");Vb("/tmp");Vb("/dev");vb[259]={k:{M:function(){return 0},write:function(){return 0}}};Wb("/dev/null",259);
-ub(1280,{Ua:function(a){if(!a.input.length){var b=m;if(v){if(b=process.stdin.read(),!b){if(process.stdin._readableState&&process.stdin._readableState.ended)return m;return}}else"undefined"!=typeof window&&"function"==typeof window.prompt?(b=window.prompt("Input: "),b!==m&&(b+="\n")):"function"==typeof readline&&(b=readline(),b!==m&&(b+="\n"));if(!b)return m;a.input=J(b,l)}return a.input.shift()},ma:function(a,b){b===m||10===b?(s.print(a.Q.join("")),a.Q=[]):a.Q.push(Dc.Ba(b))}});
-ub(1536,{ma:function(a,b){b===m||10===b?(s.printErr(a.Q.join("")),a.Q=[]):a.Q.push(Dc.Ba(b))}});Wb("/dev/tty",1280);Wb("/dev/tty1",1536);Vb("/dev/shm");Vb("/dev/shm/tmp");
-Wa.unshift({O:function(){if(!s.noFSInit&&!dc){z(!dc,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)");dc=l;cc();s.stdin=s.stdin;s.stdout=s.stdout;s.stderr=s.stderr;s.stdin?gc("/dev","stdin",s.stdin):Xb("/dev/tty","/dev/stdin");s.stdout?gc("/dev","stdout",m,s.stdout):Xb("/dev/tty","/dev/stdout");s.stderr?gc("/dev","stderr",m,s.stderr):Xb("/dev/tty1","/dev/stderr");var a=Zb("/dev/stdin",
-"r");M[Bb>>2]=a.C;z(1===a.C,"invalid handle for stdin ("+a.C+")");a=Zb("/dev/stdout","w");M[Cb>>2]=a.C;z(2===a.C,"invalid handle for stdout ("+a.C+")");a=Zb("/dev/stderr","w");M[jb>>2]=a.C;z(3===a.C,"invalid handle for stderr ("+a.C+")")}}});Xa.push({O:function(){Hb=q}});Ya.push({O:function(){dc=q;for(var a=0;a<X.length;a++){var b=X[a];b&&ac(b)}}});s.FS_createFolder=function(a,b,c,d){a=T(("string"===typeof a?a:Jb(a))+"/"+b);return Vb(a,ec(c,d))};
-s.FS_createPath=function(a,b){for(var a="string"===typeof a?a:Jb(a),c=b.split("/").reverse();c.length;){var d=c.pop();if(d){var f=T(a+"/"+d);try{Vb(f)}catch(h){}a=f}}return f};s.FS_createDataFile=fc;
-s.FS_createPreloadedFile=function(a,b,c,d,f,h,g,j,n){function x(){qc=document.pointerLockElement===p||document.mozPointerLockElement===p||document.webkitPointerLockElement===p}function D(c){function k(c){j||fc(a,b,c,d,f,n);h&&h();hb()}var p=q;s.preloadPlugins.forEach(function(a){!p&&a.canHandle(A)&&(a.handle(c,A,k,function(){g&&g();hb()}),p=l)});p||k(c)}s.preloadPlugins||(s.preloadPlugins=[]);if(!zc&&!ca){zc=l;try{new Blob,Ac=l}catch(u){Ac=q,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Bc=
-"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:!Ac?console.log("warning: no BlobBuilder"):m;Cc="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:i;!s.Ya&&"undefined"===typeof Cc&&(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),s.Ya=l);s.preloadPlugins.push({canHandle:function(a){return!s.Ya&&/\.(jpg|jpeg|png|bmp)$/i.test(a)},handle:function(a,b,
-c,d){var f=m;if(Ac)try{f=new Blob([a],{type:uc(b)}),f.size!==a.length&&(f=new Blob([(new Uint8Array(a)).buffer],{type:uc(b)}))}catch(h){var g="Blob constructor present but fails: "+h+"; falling back to blob builder";ma||(ma={});ma[g]||(ma[g]=1,s.S(g))}f||(f=new Bc,f.append((new Uint8Array(a)).buffer),f=f.getBlob());var j=Cc.createObjectURL(f),p=new Image;p.onload=function(){z(p.complete,"Image "+b+" could not be decoded");var d=document.createElement("canvas");d.width=p.width;d.height=p.height;d.getContext("2d").drawImage(p,
-0,0);s.preloadedImages[b]=d;Cc.revokeObjectURL(j);c&&c(a)};p.onerror=function(){console.log("Image "+j+" could not be decoded");d&&d()};p.src=j}});s.preloadPlugins.push({canHandle:function(a){return!s.de&&a.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(a,b,c,d){function f(d){h||(h=l,s.preloadedAudios[b]=d,c&&c(a))}function g(){h||(h=l,s.preloadedAudios[b]=new Audio,d&&d())}var h=q;if(Ac){try{var j=new Blob([a],{type:uc(b)})}catch(p){return g()}var j=Cc.createObjectURL(j),n=new Audio;n.addEventListener("canplaythrough",
-function(){f(n)},q);n.onerror=function(){if(!h){console.log("warning: browser could not fully decode audio "+b+", trying slower base64 approach");for(var c="",d=0,g=0,j=0;j<a.length;j++){d=d<<8|a[j];for(g+=8;6<=g;)var p=d>>g-6&63,g=g-6,c=c+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[p]}2==g?(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(d&3)<<4],c+="=="):4==g&&(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(d&15)<<2],c+="=");
-n.src="data:audio/x-"+b.substr(-3)+";base64,"+c;f(n)}};n.src=j;setTimeout(function(){ta||f(n)},1E4)}else return g()}});var p=s.canvas;p.Da=p.requestPointerLock||p.mozRequestPointerLock||p.webkitRequestPointerLock;p.Sa=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||r();p.Sa=p.Sa.bind(document);document.addEventListener("pointerlockchange",x,q);document.addEventListener("mozpointerlockchange",x,q);document.addEventListener("webkitpointerlockchange",x,q);s.elementPointerLock&&
-p.addEventListener("click",function(a){!qc&&p.Da&&(p.Da(),a.preventDefault())},q)}var A=b?sb(T(a+"/"+b)):a;gb();if("string"==typeof c){var G=g,I=function(){G?G():e('Loading data file "'+c+'" failed.')},C=new XMLHttpRequest;C.open("GET",c,l);C.responseType="arraybuffer";C.onload=function(){if(200==C.status||0==C.status&&C.response){var a=C.response;z(a,'Loading data file "'+c+'" failed (no arrayBuffer).');a=new Uint8Array(a);D(a);hb()}else I()};C.onerror=I;C.send(m);gb()}else D(c)};
-s.FS_createLazyFile=function(a,b,c,d,f){var h,g;"undefined"!==typeof XMLHttpRequest?(ca||e("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc"),h=function(){this.ya=q;this.ga=[]},h.prototype.get=function(a){if(!(a>this.length-1||0>a)){var b=a%this.sb;return this.wb(Math.floor(a/this.sb))[b]}},h.prototype.Ib=function(a){this.wb=a},h.prototype.Na=function(){var a=new XMLHttpRequest;a.open("HEAD",c,q);a.send(m);200<=a.status&&300>a.status||
-304===a.status||e(Error("Couldn't load "+c+". Status: "+a.status));var b=Number(a.getResponseHeader("Content-length")),d,f=1048576;if(!((d=a.getResponseHeader("Accept-Ranges"))&&"bytes"===d))f=b;var g=this;g.Ib(function(a){var d=a*f,h=(a+1)*f-1,h=Math.min(h,b-1);if("undefined"===typeof g.ga[a]){var j=g.ga;d>h&&e(Error("invalid range ("+d+", "+h+") or no bytes requested!"));h>b-1&&e(Error("only "+b+" bytes available! programmer error!"));var k=new XMLHttpRequest;k.open("GET",c,q);b!==f&&k.setRequestHeader("Range",
-"bytes="+d+"-"+h);"undefined"!=typeof Uint8Array&&(k.responseType="arraybuffer");k.overrideMimeType&&k.overrideMimeType("text/plain; charset=x-user-defined");k.send(m);200<=k.status&&300>k.status||304===k.status||e(Error("Couldn't load "+c+". Status: "+k.status));d=k.response!==i?new Uint8Array(k.response||[]):J(k.responseText||"",l);j[a]=d}"undefined"===typeof g.ga[a]&&e(Error("doXHR failed!"));return g.ga[a]});this.ob=b;this.nb=f;this.ya=l},h=new h,Object.defineProperty(h,"length",{get:function(){this.ya||
-this.Na();return this.ob}}),Object.defineProperty(h,"chunkSize",{get:function(){this.ya||this.Na();return this.nb}}),g=i):(g=c,h=i);var j,a=T(("string"===typeof a?a:Jb(a))+"/"+b);j=Ub(a,ec(d,f));h?j.o=h:g&&(j.o=m,j.url=g);var n={};Object.keys(j.k).forEach(function(a){var b=j.k[a];n[a]=function(){hc(j)||e(new U(S.N));return b.apply(m,arguments)}});n.M=function(a,b,c,d,f){hc(j)||e(new U(S.N));a=a.e.o;if(f>=a.length)return 0;d=Math.min(a.length-f,d);z(0<=d);if(a.slice)for(var g=0;g<d;g++)b[c+g]=a[f+
-g];else for(g=0;g<d;g++)b[c+g]=a.get(f+g);return d};j.k=n;return j};s.FS_createLink=function(a,b,c){a=T(("string"===typeof a?a:Jb(a))+"/"+b);return Xb(c,a)};s.FS_createDevice=gc;ob=pa(4);M[ob>>2]=0;Wa.unshift({O:r()});Ya.push({O:r()});var Dc=new na;v&&(require("fs"),process.platform.match(/^win/));Wa.push({O:function(){Z.root=Sb(Z,m)}});
-s.requestFullScreen=function(a,b){function c(){pc=q;(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement)===d?(d.Oa=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen,d.Oa=d.Oa.bind(document),sc&&d.Da(),pc=l,tc&&xc()):tc&&yc();if(s.onFullScreen)s.onFullScreen(pc)}sc=a;tc=b;"undefined"===typeof sc&&(sc=l);"undefined"===typeof tc&&
-(tc=q);var d=s.canvas;rc||(rc=l,document.addEventListener("fullscreenchange",c,q),document.addEventListener("mozfullscreenchange",c,q),document.addEventListener("webkitfullscreenchange",c,q));d.Gb=d.requestFullScreen||d.mozRequestFullScreen||(d.webkitRequestFullScreen?function(){d.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:m);d.Gb()};
-s.requestAnimationFrame=function(a){"undefined"===typeof window?setTimeout(a,1E3/60):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||window.setTimeout),window.requestAnimationFrame(a))};s.setCanvasSize=function(a,b,c){var d=s.canvas;d.width=a;d.height=b;c||wc()};s.pauseMainLoop=r();s.resumeMainLoop=function(){oc&&(oc=q,m())};
-s.getUserMedia=function(){window.Ta||(window.Ta=navigator.getUserMedia||navigator.mozGetUserMedia);window.Ta(i)};Pa=w=ra(B);Qa=Pa+5242880;Ra=E=ra(Qa);z(Ra<F,"TOTAL_MEMORY not big enough for stack");Ca=Math.min;
-var $=(function(global,env,buffer) {
+// The Module object: Our interface to the outside world. We import
+// and export values on it, and do the work to get that through
+// closure compiler if necessary. There are various ways Module can be used:
+// 1. Not defined. We create it here
+// 2. A function parameter, function(Module) { ..generated code.. }
+// 3. pre-run appended it, var Module = {}; ..generated code..
+// 4. External script tag defines var Module.
+// We need to do an eval in order to handle the closure compiler
+// case, where this code here is minified but Module was defined
+// elsewhere (e.g. case 4 above). We also need to check if Module
+// already exists (e.g. case 3 above).
+// Note that if you want to run closure, and also to use Module
+// after the generated code, you will need to define   var Module = {};
+// before the code. Then that object will be used in the code, and you
+// can continue to use Module afterwards as well.
+var Module;
+if (!Module) Module = eval('(function() { try { return Module || {} } catch(e) { return {} } })()');
+
+// Sometimes an existing Module object exists with properties
+// meant to overwrite the default module functionality. Here
+// we collect those properties and reapply _after_ we configure
+// the current environment's defaults to avoid having to be so
+// defensive during initialization.
+var moduleOverrides = {};
+for (var key in Module) {
+  if (Module.hasOwnProperty(key)) {
+    moduleOverrides[key] = Module[key];
+  }
+}
+
+// The environment setup code below is customized to use Module.
+// *** Environment setup code ***
+var ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function';
+var ENVIRONMENT_IS_WEB = typeof window === 'object';
+var ENVIRONMENT_IS_WORKER = typeof importScripts === 'function';
+var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
+
+if (ENVIRONMENT_IS_NODE) {
+  // Expose functionality in the same simple way that the shells work
+  // Note that we pollute the global namespace here, otherwise we break in node
+  if (!Module['print']) Module['print'] = function print(x) {
+    process['stdout'].write(x + '\n');
+  };
+  if (!Module['printErr']) Module['printErr'] = function printErr(x) {
+    process['stderr'].write(x + '\n');
+  };
+
+  var nodeFS = require('fs');
+  var nodePath = require('path');
+
+  Module['read'] = function read(filename, binary) {
+    filename = nodePath['normalize'](filename);
+    var ret = nodeFS['readFileSync'](filename);
+    // The path is absolute if the normalized version is the same as the resolved.
+    if (!ret && filename != nodePath['resolve'](filename)) {
+      filename = path.join(__dirname, '..', 'src', filename);
+      ret = nodeFS['readFileSync'](filename);
+    }
+    if (ret && !binary) ret = ret.toString();
+    return ret;
+  };
+
+  Module['readBinary'] = function readBinary(filename) { return Module['read'](filename, true) };
+
+  Module['load'] = function load(f) {
+    globalEval(read(f));
+  };
+
+  Module['arguments'] = process['argv'].slice(2);
+
+  module['exports'] = Module;
+}
+else if (ENVIRONMENT_IS_SHELL) {
+  if (!Module['print']) Module['print'] = print;
+  if (typeof printErr != 'undefined') Module['printErr'] = printErr; // not present in v8 or older sm
+
+  if (typeof read != 'undefined') {
+    Module['read'] = read;
+  } else {
+    Module['read'] = function read() { throw 'no read() available (jsc?)' };
+  }
+
+  Module['readBinary'] = function readBinary(f) {
+    return read(f, 'binary');
+  };
+
+  if (typeof scriptArgs != 'undefined') {
+    Module['arguments'] = scriptArgs;
+  } else if (typeof arguments != 'undefined') {
+    Module['arguments'] = arguments;
+  }
+
+  this['Module'] = Module;
+
+  eval("if (typeof gc === 'function' && gc.toString().indexOf('[native code]') > 0) var gc = undefined"); // wipe out the SpiderMonkey shell 'gc' function, which can confuse closure (uses it as a minified name, and it is then initted to a non-falsey value unexpectedly)
+}
+else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
+  Module['read'] = function read(url) {
+    var xhr = new XMLHttpRequest();
+    xhr.open('GET', url, false);
+    xhr.send(null);
+    return xhr.responseText;
+  };
+
+  if (typeof arguments != 'undefined') {
+    Module['arguments'] = arguments;
+  }
+
+  if (typeof console !== 'undefined') {
+    if (!Module['print']) Module['print'] = function print(x) {
+      console.log(x);
+    };
+    if (!Module['printErr']) Module['printErr'] = function printErr(x) {
+      console.log(x);
+    };
+  } else {
+    // Probably a worker, and without console.log. We can do very little here...
+    var TRY_USE_DUMP = false;
+    if (!Module['print']) Module['print'] = (TRY_USE_DUMP && (typeof(dump) !== "undefined") ? (function(x) {
+      dump(x);
+    }) : (function(x) {
+      // self.postMessage(x); // enable this if you want stdout to be sent as messages
+    }));
+  }
+
+  if (ENVIRONMENT_IS_WEB) {
+    this['Module'] = Module;
+  } else {
+    Module['load'] = importScripts;
+  }
+}
+else {
+  // Unreachable because SHELL is dependant on the others
+  throw 'Unknown runtime environment. Where are we?';
+}
+
+function globalEval(x) {
+  eval.call(null, x);
+}
+if (!Module['load'] == 'undefined' && Module['read']) {
+  Module['load'] = function load(f) {
+    globalEval(Module['read'](f));
+  };
+}
+if (!Module['print']) {
+  Module['print'] = function(){};
+}
+if (!Module['printErr']) {
+  Module['printErr'] = Module['print'];
+}
+if (!Module['arguments']) {
+  Module['arguments'] = [];
+}
+// *** Environment setup code ***
+
+// Closure helpers
+Module.print = Module['print'];
+Module.printErr = Module['printErr'];
+
+// Callbacks
+Module['preRun'] = [];
+Module['postRun'] = [];
+
+// Merge back in the overrides
+for (var key in moduleOverrides) {
+  if (moduleOverrides.hasOwnProperty(key)) {
+    Module[key] = moduleOverrides[key];
+  }
+}
+
+
+
+// === Auto-generated preamble library stuff ===
+
+//========================================
+// Runtime code shared with compiler
+//========================================
+
+var Runtime = {
+  stackSave: function () {
+    return STACKTOP;
+  },
+  stackRestore: function (stackTop) {
+    STACKTOP = stackTop;
+  },
+  forceAlign: function (target, quantum) {
+    quantum = quantum || 4;
+    if (quantum == 1) return target;
+    if (isNumber(target) && isNumber(quantum)) {
+      return Math.ceil(target/quantum)*quantum;
+    } else if (isNumber(quantum) && isPowerOfTwo(quantum)) {
+      return '(((' +target + ')+' + (quantum-1) + ')&' + -quantum + ')';
+    }
+    return 'Math.ceil((' + target + ')/' + quantum + ')*' + quantum;
+  },
+  isNumberType: function (type) {
+    return type in Runtime.INT_TYPES || type in Runtime.FLOAT_TYPES;
+  },
+  isPointerType: function isPointerType(type) {
+  return type[type.length-1] == '*';
+},
+  isStructType: function isStructType(type) {
+  if (isPointerType(type)) return false;
+  if (isArrayType(type)) return true;
+  if (/<?\{ ?[^}]* ?\}>?/.test(type)) return true; // { i32, i8 } etc. - anonymous struct types
+  // See comment in isStructPointerType()
+  return type[0] == '%';
+},
+  INT_TYPES: {"i1":0,"i8":0,"i16":0,"i32":0,"i64":0},
+  FLOAT_TYPES: {"float":0,"double":0},
+  or64: function (x, y) {
+    var l = (x | 0) | (y | 0);
+    var h = (Math.round(x / 4294967296) | Math.round(y / 4294967296)) * 4294967296;
+    return l + h;
+  },
+  and64: function (x, y) {
+    var l = (x | 0) & (y | 0);
+    var h = (Math.round(x / 4294967296) & Math.round(y / 4294967296)) * 4294967296;
+    return l + h;
+  },
+  xor64: function (x, y) {
+    var l = (x | 0) ^ (y | 0);
+    var h = (Math.round(x / 4294967296) ^ Math.round(y / 4294967296)) * 4294967296;
+    return l + h;
+  },
+  getNativeTypeSize: function (type) {
+    switch (type) {
+      case 'i1': case 'i8': return 1;
+      case 'i16': return 2;
+      case 'i32': return 4;
+      case 'i64': return 8;
+      case 'float': return 4;
+      case 'double': return 8;
+      default: {
+        if (type[type.length-1] === '*') {
+          return Runtime.QUANTUM_SIZE; // A pointer
+        } else if (type[0] === 'i') {
+          var bits = parseInt(type.substr(1));
+          assert(bits % 8 === 0);
+          return bits/8;
+        } else {
+          return 0;
+        }
+      }
+    }
+  },
+  getNativeFieldSize: function (type) {
+    return Math.max(Runtime.getNativeTypeSize(type), Runtime.QUANTUM_SIZE);
+  },
+  dedup: function dedup(items, ident) {
+  var seen = {};
+  if (ident) {
+    return items.filter(function(item) {
+      if (seen[item[ident]]) return false;
+      seen[item[ident]] = true;
+      return true;
+    });
+  } else {
+    return items.filter(function(item) {
+      if (seen[item]) return false;
+      seen[item] = true;
+      return true;
+    });
+  }
+},
+  set: function set() {
+  var args = typeof arguments[0] === 'object' ? arguments[0] : arguments;
+  var ret = {};
+  for (var i = 0; i < args.length; i++) {
+    ret[args[i]] = 0;
+  }
+  return ret;
+},
+  STACK_ALIGN: 8,
+  getAlignSize: function (type, size, vararg) {
+    // we align i64s and doubles on 64-bit boundaries, unlike x86
+    if (!vararg && (type == 'i64' || type == 'double')) return 8;
+    if (!type) return Math.min(size, 8); // align structures internally to 64 bits
+    return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE);
+  },
+  calculateStructAlignment: function calculateStructAlignment(type) {
+    type.flatSize = 0;
+    type.alignSize = 0;
+    var diffs = [];
+    var prev = -1;
+    var index = 0;
+    type.flatIndexes = type.fields.map(function(field) {
+      index++;
+      var size, alignSize;
+      if (Runtime.isNumberType(field) || Runtime.isPointerType(field)) {
+        size = Runtime.getNativeTypeSize(field); // pack char; char; in structs, also char[X]s.
+        alignSize = Runtime.getAlignSize(field, size);
+      } else if (Runtime.isStructType(field)) {
+        if (field[1] === '0') {
+          // this is [0 x something]. When inside another structure like here, it must be at the end,
+          // and it adds no size
+          // XXX this happens in java-nbody for example... assert(index === type.fields.length, 'zero-length in the middle!');
+          size = 0;
+          if (Types.types[field]) {
+            alignSize = Runtime.getAlignSize(null, Types.types[field].alignSize);
+          } else {
+            alignSize = type.alignSize || QUANTUM_SIZE;
+          }
+        } else {
+          size = Types.types[field].flatSize;
+          alignSize = Runtime.getAlignSize(null, Types.types[field].alignSize);
+        }
+      } else if (field[0] == 'b') {
+        // bN, large number field, like a [N x i8]
+        size = field.substr(1)|0;
+        alignSize = 1;
+      } else if (field[0] === '<') {
+        // vector type
+        size = alignSize = Types.types[field].flatSize; // fully aligned
+      } else if (field[0] === 'i') {
+        // illegal integer field, that could not be legalized because it is an internal structure field
+        // it is ok to have such fields, if we just use them as markers of field size and nothing more complex
+        size = alignSize = parseInt(field.substr(1))/8;
+        assert(size % 1 === 0, 'cannot handle non-byte-size field ' + field);
+      } else {
+        assert(false, 'invalid type for calculateStructAlignment');
+      }
+      if (type.packed) alignSize = 1;
+      type.alignSize = Math.max(type.alignSize, alignSize);
+      var curr = Runtime.alignMemory(type.flatSize, alignSize); // if necessary, place this on aligned memory
+      type.flatSize = curr + size;
+      if (prev >= 0) {
+        diffs.push(curr-prev);
+      }
+      prev = curr;
+      return curr;
+    });
+    if (type.name_ && type.name_[0] === '[') {
+      // arrays have 2 elements, so we get the proper difference. then we scale here. that way we avoid
+      // allocating a potentially huge array for [999999 x i8] etc.
+      type.flatSize = parseInt(type.name_.substr(1))*type.flatSize/2;
+    }
+    type.flatSize = Runtime.alignMemory(type.flatSize, type.alignSize);
+    if (diffs.length == 0) {
+      type.flatFactor = type.flatSize;
+    } else if (Runtime.dedup(diffs).length == 1) {
+      type.flatFactor = diffs[0];
+    }
+    type.needsFlattening = (type.flatFactor != 1);
+    return type.flatIndexes;
+  },
+  generateStructInfo: function (struct, typeName, offset) {
+    var type, alignment;
+    if (typeName) {
+      offset = offset || 0;
+      type = (typeof Types === 'undefined' ? Runtime.typeInfo : Types.types)[typeName];
+      if (!type) return null;
+      if (type.fields.length != struct.length) {
+        printErr('Number of named fields must match the type for ' + typeName + ': possibly duplicate struct names. Cannot return structInfo');
+        return null;
+      }
+      alignment = type.flatIndexes;
+    } else {
+      var type = { fields: struct.map(function(item) { return item[0] }) };
+      alignment = Runtime.calculateStructAlignment(type);
+    }
+    var ret = {
+      __size__: type.flatSize
+    };
+    if (typeName) {
+      struct.forEach(function(item, i) {
+        if (typeof item === 'string') {
+          ret[item] = alignment[i] + offset;
+        } else {
+          // embedded struct
+          var key;
+          for (var k in item) key = k;
+          ret[key] = Runtime.generateStructInfo(item[key], type.fields[i], alignment[i]);
+        }
+      });
+    } else {
+      struct.forEach(function(item, i) {
+        ret[item[1]] = alignment[i];
+      });
+    }
+    return ret;
+  },
+  dynCall: function (sig, ptr, args) {
+    if (args && args.length) {
+      if (!args.splice) args = Array.prototype.slice.call(args);
+      args.splice(0, 0, ptr);
+      return Module['dynCall_' + sig].apply(null, args);
+    } else {
+      return Module['dynCall_' + sig].call(null, ptr);
+    }
+  },
+  functionPointers: [],
+  addFunction: function (func) {
+    for (var i = 0; i < Runtime.functionPointers.length; i++) {
+      if (!Runtime.functionPointers[i]) {
+        Runtime.functionPointers[i] = func;
+        return 2*(1 + i);
+      }
+    }
+    throw 'Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.';
+  },
+  removeFunction: function (index) {
+    Runtime.functionPointers[(index-2)/2] = null;
+  },
+  getAsmConst: function (code, numArgs) {
+    // code is a constant string on the heap, so we can cache these
+    if (!Runtime.asmConstCache) Runtime.asmConstCache = {};
+    var func = Runtime.asmConstCache[code];
+    if (func) return func;
+    var args = [];
+    for (var i = 0; i < numArgs; i++) {
+      args.push(String.fromCharCode(36) + i); // $0, $1 etc
+    }
+    code = Pointer_stringify(code);
+    if (code[0] === '"') {
+      // tolerate EM_ASM("..code..") even though EM_ASM(..code..) is correct
+      if (code.indexOf('"', 1) === code.length-1) {
+        code = code.substr(1, code.length-2);
+      } else {
+        // something invalid happened, e.g. EM_ASM("..code($0)..", input)
+        abort('invalid EM_ASM input |' + code + '|. Please use EM_ASM(..code..) (no quotes) or EM_ASM({ ..code($0).. }, input) (to input values)');
+      }
+    }
+    return Runtime.asmConstCache[code] = eval('(function(' + args.join(',') + '){ ' + code + ' })'); // new Function does not allow upvars in node
+  },
+  warnOnce: function (text) {
+    if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {};
+    if (!Runtime.warnOnce.shown[text]) {
+      Runtime.warnOnce.shown[text] = 1;
+      Module.printErr(text);
+    }
+  },
+  funcWrappers: {},
+  getFuncWrapper: function (func, sig) {
+    assert(sig);
+    if (!Runtime.funcWrappers[func]) {
+      Runtime.funcWrappers[func] = function dynCall_wrapper() {
+        return Runtime.dynCall(sig, func, arguments);
+      };
+    }
+    return Runtime.funcWrappers[func];
+  },
+  UTF8Processor: function () {
+    var buffer = [];
+    var needed = 0;
+    this.processCChar = function (code) {
+      code = code & 0xFF;
+
+      if (buffer.length == 0) {
+        if ((code & 0x80) == 0x00) {        // 0xxxxxxx
+          return String.fromCharCode(code);
+        }
+        buffer.push(code);
+        if ((code & 0xE0) == 0xC0) {        // 110xxxxx
+          needed = 1;
+        } else if ((code & 0xF0) == 0xE0) { // 1110xxxx
+          needed = 2;
+        } else {                            // 11110xxx
+          needed = 3;
+        }
+        return '';
+      }
+
+      if (needed) {
+        buffer.push(code);
+        needed--;
+        if (needed > 0) return '';
+      }
+
+      var c1 = buffer[0];
+      var c2 = buffer[1];
+      var c3 = buffer[2];
+      var c4 = buffer[3];
+      var ret;
+      if (buffer.length == 2) {
+        ret = String.fromCharCode(((c1 & 0x1F) << 6)  | (c2 & 0x3F));
+      } else if (buffer.length == 3) {
+        ret = String.fromCharCode(((c1 & 0x0F) << 12) | ((c2 & 0x3F) << 6)  | (c3 & 0x3F));
+      } else {
+        // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
+        var codePoint = ((c1 & 0x07) << 18) | ((c2 & 0x3F) << 12) |
+                        ((c3 & 0x3F) << 6)  | (c4 & 0x3F);
+        ret = String.fromCharCode(
+          Math.floor((codePoint - 0x10000) / 0x400) + 0xD800,
+          (codePoint - 0x10000) % 0x400 + 0xDC00);
+      }
+      buffer.length = 0;
+      return ret;
+    }
+    this.processJSString = function processJSString(string) {
+      string = unescape(encodeURIComponent(string));
+      var ret = [];
+      for (var i = 0; i < string.length; i++) {
+        ret.push(string.charCodeAt(i));
+      }
+      return ret;
+    }
+  },
+  getCompilerSetting: function (name) {
+    throw 'You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work';
+  },
+  stackAlloc: function (size) { var ret = STACKTOP;STACKTOP = (STACKTOP + size)|0;STACKTOP = (((STACKTOP)+7)&-8); return ret; },
+  staticAlloc: function (size) { var ret = STATICTOP;STATICTOP = (STATICTOP + size)|0;STATICTOP = (((STATICTOP)+7)&-8); return ret; },
+  dynamicAlloc: function (size) { var ret = DYNAMICTOP;DYNAMICTOP = (DYNAMICTOP + size)|0;DYNAMICTOP = (((DYNAMICTOP)+7)&-8); if (DYNAMICTOP >= TOTAL_MEMORY) enlargeMemory();; return ret; },
+  alignMemory: function (size,quantum) { var ret = size = Math.ceil((size)/(quantum ? quantum : 8))*(quantum ? quantum : 8); return ret; },
+  makeBigInt: function (low,high,unsigned) { var ret = (unsigned ? ((+((low>>>0)))+((+((high>>>0)))*(+4294967296))) : ((+((low>>>0)))+((+((high|0)))*(+4294967296)))); return ret; },
+  GLOBAL_BASE: 8,
+  QUANTUM_SIZE: 4,
+  __dummy__: 0
+}
+
+
+Module['Runtime'] = Runtime;
+
+
+
+
+
+
+
+
+
+//========================================
+// Runtime essentials
+//========================================
+
+var __THREW__ = 0; // Used in checking for thrown exceptions.
+
+var ABORT = false; // whether we are quitting the application. no code should run after this. set in exit() and abort()
+var EXITSTATUS = 0;
+
+var undef = 0;
+// tempInt is used for 32-bit signed values or smaller. tempBigInt is used
+// for 32-bit unsigned values or more than 32 bits. TODO: audit all uses of tempInt
+var tempValue, tempInt, tempBigInt, tempInt2, tempBigInt2, tempPair, tempBigIntI, tempBigIntR, tempBigIntS, tempBigIntP, tempBigIntD, tempDouble, tempFloat;
+var tempI64, tempI64b;
+var tempRet0, tempRet1, tempRet2, tempRet3, tempRet4, tempRet5, tempRet6, tempRet7, tempRet8, tempRet9;
+
+function assert(condition, text) {
+  if (!condition) {
+    abort('Assertion failed: ' + text);
+  }
+}
+
+var globalScope = this;
+
+// C calling interface. A convenient way to call C functions (in C files, or
+// defined with extern "C").
+//
+// Note: LLVM optimizations can inline and remove functions, after which you will not be
+//       able to call them. Closure can also do so. To avoid that, add your function to
+//       the exports using something like
+//
+//         -s EXPORTED_FUNCTIONS='["_main", "_myfunc"]'
+//
+// @param ident      The name of the C function (note that C++ functions will be name-mangled - use extern "C")
+// @param returnType The return type of the function, one of the JS types 'number', 'string' or 'array' (use 'number' for any C pointer, and
+//                   'array' for JavaScript arrays and typed arrays; note that arrays are 8-bit).
+// @param argTypes   An array of the types of arguments for the function (if there are no arguments, this can be ommitted). Types are as in returnType,
+//                   except that 'array' is not possible (there is no way for us to know the length of the array)
+// @param args       An array of the arguments to the function, as native JS values (as in returnType)
+//                   Note that string arguments will be stored on the stack (the JS string will become a C string on the stack).
+// @return           The return value, as a native JS value (as in returnType)
+function ccall(ident, returnType, argTypes, args) {
+  return ccallFunc(getCFunc(ident), returnType, argTypes, args);
+}
+Module["ccall"] = ccall;
+
+// Returns the C function with a specified identifier (for C++, you need to do manual name mangling)
+function getCFunc(ident) {
+  try {
+    var func = Module['_' + ident]; // closure exported function
+    if (!func) func = eval('_' + ident); // explicit lookup
+  } catch(e) {
+  }
+  assert(func, 'Cannot call unknown function ' + ident + ' (perhaps LLVM optimizations or closure removed it?)');
+  return func;
+}
+
+// Internal function that does a C call using a function, not an identifier
+function ccallFunc(func, returnType, argTypes, args) {
+  var stack = 0;
+  function toC(value, type) {
+    if (type == 'string') {
+      if (value === null || value === undefined || value === 0) return 0; // null string
+      value = intArrayFromString(value);
+      type = 'array';
+    }
+    if (type == 'array') {
+      if (!stack) stack = Runtime.stackSave();
+      var ret = Runtime.stackAlloc(value.length);
+      writeArrayToMemory(value, ret);
+      return ret;
+    }
+    return value;
+  }
+  function fromC(value, type) {
+    if (type == 'string') {
+      return Pointer_stringify(value);
+    }
+    assert(type != 'array');
+    return value;
+  }
+  var i = 0;
+  var cArgs = args ? args.map(function(arg) {
+    return toC(arg, argTypes[i++]);
+  }) : [];
+  var ret = fromC(func.apply(null, cArgs), returnType);
+  if (stack) Runtime.stackRestore(stack);
+  return ret;
+}
+
+// Returns a native JS wrapper for a C function. This is similar to ccall, but
+// returns a function you can call repeatedly in a normal way. For example:
+//
+//   var my_function = cwrap('my_c_function', 'number', ['number', 'number']);
+//   alert(my_function(5, 22));
+//   alert(my_function(99, 12));
+//
+function cwrap(ident, returnType, argTypes) {
+  var func = getCFunc(ident);
+  return function() {
+    return ccallFunc(func, returnType, argTypes, Array.prototype.slice.call(arguments));
+  }
+}
+Module["cwrap"] = cwrap;
+
+// Sets a value in memory in a dynamic way at run-time. Uses the
+// type data. This is the same as makeSetValue, except that
+// makeSetValue is done at compile-time and generates the needed
+// code then, whereas this function picks the right code at
+// run-time.
+// Note that setValue and getValue only do *aligned* writes and reads!
+// Note that ccall uses JS types as for defining types, while setValue and
+// getValue need LLVM types ('i8', 'i32') - this is a lower-level operation
+function setValue(ptr, value, type, noSafe) {
+  type = type || 'i8';
+  if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
+    switch(type) {
+      case 'i1': HEAP8[(ptr)]=value; break;
+      case 'i8': HEAP8[(ptr)]=value; break;
+      case 'i16': HEAP16[((ptr)>>1)]=value; break;
+      case 'i32': HEAP32[((ptr)>>2)]=value; break;
+      case 'i64': (tempI64 = [value>>>0,(tempDouble=value,(+(Math_abs(tempDouble))) >= (+1) ? (tempDouble > (+0) ? ((Math_min((+(Math_floor((tempDouble)/(+4294967296)))), (+4294967295)))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/(+4294967296))))))>>>0) : 0)],HEAP32[((ptr)>>2)]=tempI64[0],HEAP32[(((ptr)+(4))>>2)]=tempI64[1]); break;
+      case 'float': HEAPF32[((ptr)>>2)]=value; break;
+      case 'double': HEAPF64[((ptr)>>3)]=value; break;
+      default: abort('invalid type for setValue: ' + type);
+    }
+}
+Module['setValue'] = setValue;
+
+// Parallel to setValue.
+function getValue(ptr, type, noSafe) {
+  type = type || 'i8';
+  if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
+    switch(type) {
+      case 'i1': return HEAP8[(ptr)];
+      case 'i8': return HEAP8[(ptr)];
+      case 'i16': return HEAP16[((ptr)>>1)];
+      case 'i32': return HEAP32[((ptr)>>2)];
+      case 'i64': return HEAP32[((ptr)>>2)];
+      case 'float': return HEAPF32[((ptr)>>2)];
+      case 'double': return HEAPF64[((ptr)>>3)];
+      default: abort('invalid type for setValue: ' + type);
+    }
+  return null;
+}
+Module['getValue'] = getValue;
+
+var ALLOC_NORMAL = 0; // Tries to use _malloc()
+var ALLOC_STACK = 1; // Lives for the duration of the current function call
+var ALLOC_STATIC = 2; // Cannot be freed
+var ALLOC_DYNAMIC = 3; // Cannot be freed except through sbrk
+var ALLOC_NONE = 4; // Do not allocate
+Module['ALLOC_NORMAL'] = ALLOC_NORMAL;
+Module['ALLOC_STACK'] = ALLOC_STACK;
+Module['ALLOC_STATIC'] = ALLOC_STATIC;
+Module['ALLOC_DYNAMIC'] = ALLOC_DYNAMIC;
+Module['ALLOC_NONE'] = ALLOC_NONE;
+
+// allocate(): This is for internal use. You can use it yourself as well, but the interface
+//             is a little tricky (see docs right below). The reason is that it is optimized
+//             for multiple syntaxes to save space in generated code. So you should
+//             normally not use allocate(), and instead allocate memory using _malloc(),
+//             initialize it with setValue(), and so forth.
+// @slab: An array of data, or a number. If a number, then the size of the block to allocate,
+//        in *bytes* (note that this is sometimes confusing: the next parameter does not
+//        affect this!)
+// @types: Either an array of types, one for each byte (or 0 if no type at that position),
+//         or a single type which is used for the entire block. This only matters if there
+//         is initial data - if @slab is a number, then this does not matter at all and is
+//         ignored.
+// @allocator: How to allocate memory, see ALLOC_*
+function allocate(slab, types, allocator, ptr) {
+  var zeroinit, size;
+  if (typeof slab === 'number') {
+    zeroinit = true;
+    size = slab;
+  } else {
+    zeroinit = false;
+    size = slab.length;
+  }
+
+  var singleType = typeof types === 'string' ? types : null;
+
+  var ret;
+  if (allocator == ALLOC_NONE) {
+    ret = ptr;
+  } else {
+    ret = [_malloc, Runtime.stackAlloc, Runtime.staticAlloc, Runtime.dynamicAlloc][allocator === undefined ? ALLOC_STATIC : allocator](Math.max(size, singleType ? 1 : types.length));
+  }
+
+  if (zeroinit) {
+    var ptr = ret, stop;
+    assert((ret & 3) == 0);
+    stop = ret + (size & ~3);
+    for (; ptr < stop; ptr += 4) {
+      HEAP32[((ptr)>>2)]=0;
+    }
+    stop = ret + size;
+    while (ptr < stop) {
+      HEAP8[((ptr++)|0)]=0;
+    }
+    return ret;
+  }
+
+  if (singleType === 'i8') {
+    if (slab.subarray || slab.slice) {
+      HEAPU8.set(slab, ret);
+    } else {
+      HEAPU8.set(new Uint8Array(slab), ret);
+    }
+    return ret;
+  }
+
+  var i = 0, type, typeSize, previousType;
+  while (i < size) {
+    var curr = slab[i];
+
+    if (typeof curr === 'function') {
+      curr = Runtime.getFunctionIndex(curr);
+    }
+
+    type = singleType || types[i];
+    if (type === 0) {
+      i++;
+      continue;
+    }
+
+    if (type == 'i64') type = 'i32'; // special case: we have one i32 here, and one i32 later
+
+    setValue(ret+i, curr, type);
+
+    // no need to look up size unless type changes, so cache it
+    if (previousType !== type) {
+      typeSize = Runtime.getNativeTypeSize(type);
+      previousType = type;
+    }
+    i += typeSize;
+  }
+
+  return ret;
+}
+Module['allocate'] = allocate;
+
+function Pointer_stringify(ptr, /* optional */ length) {
+  // TODO: use TextDecoder
+  // Find the length, and check for UTF while doing so
+  var hasUtf = false;
+  var t;
+  var i = 0;
+  while (1) {
+    t = HEAPU8[(((ptr)+(i))|0)];
+    if (t >= 128) hasUtf = true;
+    else if (t == 0 && !length) break;
+    i++;
+    if (length && i == length) break;
+  }
+  if (!length) length = i;
+
+  var ret = '';
+
+  if (!hasUtf) {
+    var MAX_CHUNK = 1024; // split up into chunks, because .apply on a huge string can overflow the stack
+    var curr;
+    while (length > 0) {
+      curr = String.fromCharCode.apply(String, HEAPU8.subarray(ptr, ptr + Math.min(length, MAX_CHUNK)));
+      ret = ret ? ret + curr : curr;
+      ptr += MAX_CHUNK;
+      length -= MAX_CHUNK;
+    }
+    return ret;
+  }
+
+  var utf8 = new Runtime.UTF8Processor();
+  for (i = 0; i < length; i++) {
+    t = HEAPU8[(((ptr)+(i))|0)];
+    ret += utf8.processCChar(t);
+  }
+  return ret;
+}
+Module['Pointer_stringify'] = Pointer_stringify;
+
+// Given a pointer 'ptr' to a null-terminated UTF16LE-encoded string in the emscripten HEAP, returns
+// a copy of that string as a Javascript String object.
+function UTF16ToString(ptr) {
+  var i = 0;
+
+  var str = '';
+  while (1) {
+    var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
+    if (codeUnit == 0)
+      return str;
+    ++i;
+    // fromCharCode constructs a character from a UTF-16 code unit, so we can pass the UTF16 string right through.
+    str += String.fromCharCode(codeUnit);
+  }
+}
+Module['UTF16ToString'] = UTF16ToString;
+
+// Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
+// null-terminated and encoded in UTF16LE form. The copy will require at most (str.length*2+1)*2 bytes of space in the HEAP.
+function stringToUTF16(str, outPtr) {
+  for(var i = 0; i < str.length; ++i) {
+    // charCodeAt returns a UTF-16 encoded code unit, so it can be directly written to the HEAP.
+    var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
+    HEAP16[(((outPtr)+(i*2))>>1)]=codeUnit;
+  }
+  // Null-terminate the pointer to the HEAP.
+  HEAP16[(((outPtr)+(str.length*2))>>1)]=0;
+}
+Module['stringToUTF16'] = stringToUTF16;
+
+// Given a pointer 'ptr' to a null-terminated UTF32LE-encoded string in the emscripten HEAP, returns
+// a copy of that string as a Javascript String object.
+function UTF32ToString(ptr) {
+  var i = 0;
+
+  var str = '';
+  while (1) {
+    var utf32 = HEAP32[(((ptr)+(i*4))>>2)];
+    if (utf32 == 0)
+      return str;
+    ++i;
+    // Gotcha: fromCharCode constructs a character from a UTF-16 encoded code (pair), not from a Unicode code point! So encode the code point to UTF-16 for constructing.
+    if (utf32 >= 0x10000) {
+      var ch = utf32 - 0x10000;
+      str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
+    } else {
+      str += String.fromCharCode(utf32);
+    }
+  }
+}
+Module['UTF32ToString'] = UTF32ToString;
+
+// Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
+// null-terminated and encoded in UTF32LE form. The copy will require at most (str.length+1)*4 bytes of space in the HEAP,
+// but can use less, since str.length does not return the number of characters in the string, but the number of UTF-16 code units in the string.
+function stringToUTF32(str, outPtr) {
+  var iChar = 0;
+  for(var iCodeUnit = 0; iCodeUnit < str.length; ++iCodeUnit) {
+    // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
+    var codeUnit = str.charCodeAt(iCodeUnit); // possibly a lead surrogate
+    if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
+      var trailSurrogate = str.charCodeAt(++iCodeUnit);
+      codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
+    }
+    HEAP32[(((outPtr)+(iChar*4))>>2)]=codeUnit;
+    ++iChar;
+  }
+  // Null-terminate the pointer to the HEAP.
+  HEAP32[(((outPtr)+(iChar*4))>>2)]=0;
+}
+Module['stringToUTF32'] = stringToUTF32;
+
+function demangle(func) {
+  var i = 3;
+  // params, etc.
+  var basicTypes = {
+    'v': 'void',
+    'b': 'bool',
+    'c': 'char',
+    's': 'short',
+    'i': 'int',
+    'l': 'long',
+    'f': 'float',
+    'd': 'double',
+    'w': 'wchar_t',
+    'a': 'signed char',
+    'h': 'unsigned char',
+    't': 'unsigned short',
+    'j': 'unsigned int',
+    'm': 'unsigned long',
+    'x': 'long long',
+    'y': 'unsigned long long',
+    'z': '...'
+  };
+  var subs = [];
+  var first = true;
+  function dump(x) {
+    //return;
+    if (x) Module.print(x);
+    Module.print(func);
+    var pre = '';
+    for (var a = 0; a < i; a++) pre += ' ';
+    Module.print (pre + '^');
+  }
+  function parseNested() {
+    i++;
+    if (func[i] === 'K') i++; // ignore const
+    var parts = [];
+    while (func[i] !== 'E') {
+      if (func[i] === 'S') { // substitution
+        i++;
+        var next = func.indexOf('_', i);
+        var num = func.substring(i, next) || 0;
+        parts.push(subs[num] || '?');
+        i = next+1;
+        continue;
+      }
+      if (func[i] === 'C') { // constructor
+        parts.push(parts[parts.length-1]);
+        i += 2;
+        continue;
+      }
+      var size = parseInt(func.substr(i));
+      var pre = size.toString().length;
+      if (!size || !pre) { i--; break; } // counter i++ below us
+      var curr = func.substr(i + pre, size);
+      parts.push(curr);
+      subs.push(curr);
+      i += pre + size;
+    }
+    i++; // skip E
+    return parts;
+  }
+  function parse(rawList, limit, allowVoid) { // main parser
+    limit = limit || Infinity;
+    var ret = '', list = [];
+    function flushList() {
+      return '(' + list.join(', ') + ')';
+    }
+    var name;
+    if (func[i] === 'N') {
+      // namespaced N-E
+      name = parseNested().join('::');
+      limit--;
+      if (limit === 0) return rawList ? [name] : name;
+    } else {
+      // not namespaced
+      if (func[i] === 'K' || (first && func[i] === 'L')) i++; // ignore const and first 'L'
+      var size = parseInt(func.substr(i));
+      if (size) {
+        var pre = size.toString().length;
+        name = func.substr(i + pre, size);
+        i += pre + size;
+      }
+    }
+    first = false;
+    if (func[i] === 'I') {
+      i++;
+      var iList = parse(true);
+      var iRet = parse(true, 1, true);
+      ret += iRet[0] + ' ' + name + '<' + iList.join(', ') + '>';
+    } else {
+      ret = name;
+    }
+    paramLoop: while (i < func.length && limit-- > 0) {
+      //dump('paramLoop');
+      var c = func[i++];
+      if (c in basicTypes) {
+        list.push(basicTypes[c]);
+      } else {
+        switch (c) {
+          case 'P': list.push(parse(true, 1, true)[0] + '*'); break; // pointer
+          case 'R': list.push(parse(true, 1, true)[0] + '&'); break; // reference
+          case 'L': { // literal
+            i++; // skip basic type
+            var end = func.indexOf('E', i);
+            var size = end - i;
+            list.push(func.substr(i, size));
+            i += size + 2; // size + 'EE'
+            break;
+          }
+          case 'A': { // array
+            var size = parseInt(func.substr(i));
+            i += size.toString().length;
+            if (func[i] !== '_') throw '?';
+            i++; // skip _
+            list.push(parse(true, 1, true)[0] + ' [' + size + ']');
+            break;
+          }
+          case 'E': break paramLoop;
+          default: ret += '?' + c; break paramLoop;
+        }
+      }
+    }
+    if (!allowVoid && list.length === 1 && list[0] === 'void') list = []; // avoid (void)
+    return rawList ? list : ret + flushList();
+  }
+  try {
+    // Special-case the entry point, since its name differs from other name mangling.
+    if (func == 'Object._main' || func == '_main') {
+      return 'main()';
+    }
+    if (typeof func === 'number') func = Pointer_stringify(func);
+    if (func[0] !== '_') return func;
+    if (func[1] !== '_') return func; // C function
+    if (func[2] !== 'Z') return func;
+    switch (func[3]) {
+      case 'n': return 'operator new()';
+      case 'd': return 'operator delete()';
+    }
+    return parse();
+  } catch(e) {
+    return func;
+  }
+}
+
+function demangleAll(text) {
+  return text.replace(/__Z[\w\d_]+/g, function(x) { var y = demangle(x); return x === y ? x : (x + ' [' + y + ']') });
+}
+
+function stackTrace() {
+  var stack = new Error().stack;
+  return stack ? demangleAll(stack) : '(no stack trace available)'; // Stack trace is not available at least on IE10 and Safari 6.
+}
+
+// Memory management
+
+var PAGE_SIZE = 4096;
+function alignMemoryPage(x) {
+  return (x+4095)&-4096;
+}
+
+var HEAP;
+var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
+
+var STATIC_BASE = 0, STATICTOP = 0, staticSealed = false; // static area
+var STACK_BASE = 0, STACKTOP = 0, STACK_MAX = 0; // stack area
+var DYNAMIC_BASE = 0, DYNAMICTOP = 0; // dynamic area handled by sbrk
+
+function enlargeMemory() {
+  abort('Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value ' + TOTAL_MEMORY + ', (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.');
+}
+
+var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880;
+var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 268435456;
+var FAST_MEMORY = Module['FAST_MEMORY'] || 2097152;
+
+var totalMemory = 4096;
+while (totalMemory < TOTAL_MEMORY || totalMemory < 2*TOTAL_STACK) {
+  if (totalMemory < 16*1024*1024) {
+    totalMemory *= 2;
+  } else {
+    totalMemory += 16*1024*1024
+  }
+}
+if (totalMemory !== TOTAL_MEMORY) {
+  Module.printErr('increasing TOTAL_MEMORY to ' + totalMemory + ' to be more reasonable');
+  TOTAL_MEMORY = totalMemory;
+}
+
+// Initialize the runtime's memory
+// check for full engine support (use string 'subarray' to avoid closure compiler confusion)
+assert(typeof Int32Array !== 'undefined' && typeof Float64Array !== 'undefined' && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']),
+       'JS engine does not provide full typed array support');
+
+var buffer = new ArrayBuffer(TOTAL_MEMORY);
+HEAP8 = new Int8Array(buffer);
+HEAP16 = new Int16Array(buffer);
+HEAP32 = new Int32Array(buffer);
+HEAPU8 = new Uint8Array(buffer);
+HEAPU16 = new Uint16Array(buffer);
+HEAPU32 = new Uint32Array(buffer);
+HEAPF32 = new Float32Array(buffer);
+HEAPF64 = new Float64Array(buffer);
+
+// Endianness check (note: assumes compiler arch was little-endian)
+HEAP32[0] = 255;
+assert(HEAPU8[0] === 255 && HEAPU8[3] === 0, 'Typed arrays 2 must be run on a little-endian system');
+
+Module['HEAP'] = HEAP;
+Module['HEAP8'] = HEAP8;
+Module['HEAP16'] = HEAP16;
+Module['HEAP32'] = HEAP32;
+Module['HEAPU8'] = HEAPU8;
+Module['HEAPU16'] = HEAPU16;
+Module['HEAPU32'] = HEAPU32;
+Module['HEAPF32'] = HEAPF32;
+Module['HEAPF64'] = HEAPF64;
+
+function callRuntimeCallbacks(callbacks) {
+  while(callbacks.length > 0) {
+    var callback = callbacks.shift();
+    if (typeof callback == 'function') {
+      callback();
+      continue;
+    }
+    var func = callback.func;
+    if (typeof func === 'number') {
+      if (callback.arg === undefined) {
+        Runtime.dynCall('v', func);
+      } else {
+        Runtime.dynCall('vi', func, [callback.arg]);
+      }
+    } else {
+      func(callback.arg === undefined ? null : callback.arg);
+    }
+  }
+}
+
+var __ATPRERUN__  = []; // functions called before the runtime is initialized
+var __ATINIT__    = []; // functions called during startup
+var __ATMAIN__    = []; // functions called when main() is to be run
+var __ATEXIT__    = []; // functions called during shutdown
+var __ATPOSTRUN__ = []; // functions called after the runtime has exited
+
+var runtimeInitialized = false;
+
+function preRun() {
+  // compatibility - merge in anything from Module['preRun'] at this time
+  if (Module['preRun']) {
+    if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']];
+    while (Module['preRun'].length) {
+      addOnPreRun(Module['preRun'].shift());
+    }
+  }
+  callRuntimeCallbacks(__ATPRERUN__);
+}
+
+function ensureInitRuntime() {
+  if (runtimeInitialized) return;
+  runtimeInitialized = true;
+  callRuntimeCallbacks(__ATINIT__);
+}
+
+function preMain() {
+  callRuntimeCallbacks(__ATMAIN__);
+}
+
+function exitRuntime() {
+  callRuntimeCallbacks(__ATEXIT__);
+}
+
+function postRun() {
+  // compatibility - merge in anything from Module['postRun'] at this time
+  if (Module['postRun']) {
+    if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']];
+    while (Module['postRun'].length) {
+      addOnPostRun(Module['postRun'].shift());
+    }
+  }
+  callRuntimeCallbacks(__ATPOSTRUN__);
+}
+
+function addOnPreRun(cb) {
+  __ATPRERUN__.unshift(cb);
+}
+Module['addOnPreRun'] = Module.addOnPreRun = addOnPreRun;
+
+function addOnInit(cb) {
+  __ATINIT__.unshift(cb);
+}
+Module['addOnInit'] = Module.addOnInit = addOnInit;
+
+function addOnPreMain(cb) {
+  __ATMAIN__.unshift(cb);
+}
+Module['addOnPreMain'] = Module.addOnPreMain = addOnPreMain;
+
+function addOnExit(cb) {
+  __ATEXIT__.unshift(cb);
+}
+Module['addOnExit'] = Module.addOnExit = addOnExit;
+
+function addOnPostRun(cb) {
+  __ATPOSTRUN__.unshift(cb);
+}
+Module['addOnPostRun'] = Module.addOnPostRun = addOnPostRun;
+
+// Tools
+
+// This processes a JS string into a C-line array of numbers, 0-terminated.
+// For LLVM-originating strings, see parser.js:parseLLVMString function
+function intArrayFromString(stringy, dontAddNull, length /* optional */) {
+  var ret = (new Runtime.UTF8Processor()).processJSString(stringy);
+  if (length) {
+    ret.length = length;
+  }
+  if (!dontAddNull) {
+    ret.push(0);
+  }
+  return ret;
+}
+Module['intArrayFromString'] = intArrayFromString;
+
+function intArrayToString(array) {
+  var ret = [];
+  for (var i = 0; i < array.length; i++) {
+    var chr = array[i];
+    if (chr > 0xFF) {
+      chr &= 0xFF;
+    }
+    ret.push(String.fromCharCode(chr));
+  }
+  return ret.join('');
+}
+Module['intArrayToString'] = intArrayToString;
+
+// Write a Javascript array to somewhere in the heap
+function writeStringToMemory(string, buffer, dontAddNull) {
+  var array = intArrayFromString(string, dontAddNull);
+  var i = 0;
+  while (i < array.length) {
+    var chr = array[i];
+    HEAP8[(((buffer)+(i))|0)]=chr;
+    i = i + 1;
+  }
+}
+Module['writeStringToMemory'] = writeStringToMemory;
+
+function writeArrayToMemory(array, buffer) {
+  for (var i = 0; i < array.length; i++) {
+    HEAP8[(((buffer)+(i))|0)]=array[i];
+  }
+}
+Module['writeArrayToMemory'] = writeArrayToMemory;
+
+function writeAsciiToMemory(str, buffer, dontAddNull) {
+  for (var i = 0; i < str.length; i++) {
+    HEAP8[(((buffer)+(i))|0)]=str.charCodeAt(i);
+  }
+  if (!dontAddNull) HEAP8[(((buffer)+(str.length))|0)]=0;
+}
+Module['writeAsciiToMemory'] = writeAsciiToMemory;
+
+function unSign(value, bits, ignore) {
+  if (value >= 0) {
+    return value;
+  }
+  return bits <= 32 ? 2*Math.abs(1 << (bits-1)) + value // Need some trickery, since if bits == 32, we are right at the limit of the bits JS uses in bitshifts
+                    : Math.pow(2, bits)         + value;
+}
+function reSign(value, bits, ignore) {
+  if (value <= 0) {
+    return value;
+  }
+  var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32
+                        : Math.pow(2, bits-1);
+  if (value >= half && (bits <= 32 || value > half)) { // for huge values, we can hit the precision limit and always get true here. so don't do that
+                                                       // but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors
+                                                       // TODO: In i64 mode 1, resign the two parts separately and safely
+    value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts
+  }
+  return value;
+}
+
+// check for imul support, and also for correctness ( https://bugs.webkit.org/show_bug.cgi?id=126345 )
+if (!Math['imul'] || Math['imul'](0xffffffff, 5) !== -5) Math['imul'] = function imul(a, b) {
+  var ah  = a >>> 16;
+  var al = a & 0xffff;
+  var bh  = b >>> 16;
+  var bl = b & 0xffff;
+  return (al*bl + ((ah*bl + al*bh) << 16))|0;
+};
+Math.imul = Math['imul'];
+
+
+var Math_abs = Math.abs;
+var Math_cos = Math.cos;
+var Math_sin = Math.sin;
+var Math_tan = Math.tan;
+var Math_acos = Math.acos;
+var Math_asin = Math.asin;
+var Math_atan = Math.atan;
+var Math_atan2 = Math.atan2;
+var Math_exp = Math.exp;
+var Math_log = Math.log;
+var Math_sqrt = Math.sqrt;
+var Math_ceil = Math.ceil;
+var Math_floor = Math.floor;
+var Math_pow = Math.pow;
+var Math_imul = Math.imul;
+var Math_fround = Math.fround;
+var Math_min = Math.min;
+
+// A counter of dependencies for calling run(). If we need to
+// do asynchronous work before running, increment this and
+// decrement it. Incrementing must happen in a place like
+// PRE_RUN_ADDITIONS (used by emcc to add file preloading).
+// Note that you can add dependencies in preRun, even though
+// it happens right before run - run will be postponed until
+// the dependencies are met.
+var runDependencies = 0;
+var runDependencyWatcher = null;
+var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled
+
+function addRunDependency(id) {
+  runDependencies++;
+  if (Module['monitorRunDependencies']) {
+    Module['monitorRunDependencies'](runDependencies);
+  }
+}
+Module['addRunDependency'] = addRunDependency;
+function removeRunDependency(id) {
+  runDependencies--;
+  if (Module['monitorRunDependencies']) {
+    Module['monitorRunDependencies'](runDependencies);
+  }
+  if (runDependencies == 0) {
+    if (runDependencyWatcher !== null) {
+      clearInterval(runDependencyWatcher);
+      runDependencyWatcher = null;
+    }
+    if (dependenciesFulfilled) {
+      var callback = dependenciesFulfilled;
+      dependenciesFulfilled = null;
+      callback(); // can add another dependenciesFulfilled
+    }
+  }
+}
+Module['removeRunDependency'] = removeRunDependency;
+
+Module["preloadedImages"] = {}; // maps url to image data
+Module["preloadedAudios"] = {}; // maps url to audio data
+
+
+var memoryInitializer = null;
+
+// === Body ===
+
+
+
+
+
+STATIC_BASE = 8;
+
+STATICTOP = STATIC_BASE + Runtime.alignMemory(9235);
+/* global initializers */ __ATINIT__.push();
+
+
+/* memory initializer */ allocate([17,1,0,0,0,0,0,0,34,18,1,1,0,0,0,0,50,34,18,2,0,0,0,0,67,51,34,34,18,18,2,2,83,67,51,35,18,18,2,2,19,35,67,51,99,83,2,2,0,0,101,85,68,68,52,52,35,35,35,35,19,19,19,19,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,249,233,217,200,200,184,184,167,167,167,167,151,151,151,151,134,134,134,134,134,134,134,134,118,118,118,118,118,118,118,118,230,214,198,182,165,165,149,149,132,132,132,132,116,116,116,116,100,100,100,100,84,84,84,84,67,67,67,67,67,67,67,67,51,51,51,51,51,51,51,51,35,35,35,35,35,35,35,35,19,19,19,19,19,19,19,19,3,3,3,3,3,3,3,3,214,182,197,197,165,165,149,149,132,132,132,132,84,84,84,84,68,68,68,68,4,4,4,4,115,115,115,115,115,115,115,115,99,99,99,99,99,99,99,99,51,51,51,51,51,51,51,51,35,35,35,35,35,35,35,35,19,19,19,19,19,19,19,19,197,181,165,5,148,148,116,116,52,52,36,36,131,131,131,131,99,99,99,99,83,83,83,83,67,67,67,67,19,19,19,19,181,149,164,164,132,132,36,36,20,20,4,4,115,115,115,115,99,99,99,99,83,83,83,83,67,67,67,67,51,51,51,51,166,6,21,21,132,132,132,132,147,147,147,147,147,147,147,147,115,115,115,115,115,115,115,115,99,99,99,99,99,99,99,99,83,83,83,83,83,83,83,83,67,67,67,67,67,67,67,67,51,51,51,51,51,51,51,51,35,35,35,35,35,35,35,35,150,6,21,21,116,116,116,116,131,131,131,131,131,131,131,131,99,99,99,99,99,99,99,99,67,67,67,67,67,67,67,67,51,51,51,51,51,51,51,51,35,35,35,35,35,35,35,35,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,134,6,37,37,20,20,20,20,115,115,115,115,115,115,115,115,99,99,99,99,99,99,99,99,51,51,51,51,51,51,51,51,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,22,6,117,117,36,36,36,36,83,83,83,83,83,83,83,83,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,21,5,100,100,35,35,35,35,82,82,82,82,82,82,82,82,66,66,66,66,66,66,66,66,50,50,50,50,50,50,50,50,4,20,35,35,51,51,83,83,65,65,65,65,65,65,65,65,4,20,67,67,34,34,34,34,49,49,49,49,49,49,49,49,3,19,50,50,33,33,33,33,2,18,33,33,0,0,0,0,0,0,0,0,0,0,102,32,38,16,6,8,101,24,101,24,67,16,67,16,67,16,67,16,67,16,67,16,67,16,67,16,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,34,8,0,0,0,0,0,0,0,0,106,64,74,48,42,40,10,32,105,56,105,56,73,40,73,40,41,32,41,32,9,24,9,24,104,48,104,48,104,48,104,48,72,32,72,32,72,32,72,32,40,24,40,24,40,24,40,24,8,16,8,16,8,16,8,16,103,40,103,40,103,40,103,40,103,40,103,40,103,40,103,40,71,24,71,24,71,24,71,24,71,24,71,24,71,24,71,24,110,96,78,88,46,80,14,80,110,88,78,80,46,72,14,72,13,64,13,64,77,72,77,72,45,64,45,64,13,56,13,56,109,80,109,80,77,64,77,64,45,56,45,56,13,48,13,48,107,72,107,72,107,72,107,72,107,72,107,72,107,72,107,72,75,56,75,56,75,56,75,56,75,56,75,56,75,56,75,56,43,48,43,48,43,48,43,48,43,48,43,48,43,48,43,48,11,40,11,40,11,40,11,40,11,40,11,40,11,40,11,40,0,0,0,0,47,104,47,104,16,128,80,128,48,128,16,120,112,128,80,120,48,120,16,112,112,120,80,112,48,112,16,104,111,112,111,112,79,104,79,104,47,96,47,96,15,96,15,96,111,104,111,104,79,96,79,96,47,88,47,88,15,88,15,88,0,0,0,0,0,0,0,0,102,56,70,32,38,32,6,16,102,48,70,24,38,24,6,8,101,40,101,40,37,16,37,16,100,32,100,32,100,32,100,32,100,24,100,24,100,24,100,24,67,16,67,16,67,16,67,16,67,16,67,16,67,16,67,16,0,0,0,0,0,0,0,0,105,72,73,56,41,56,9,48,8,40,8,40,72,48,72,48,40,48,40,48,8,32,8,32,103,64,103,64,103,64,103,64,71,40,71,40,71,40,71,40,39,40,39,40,39,40,39,40,7,24,7,24,7,24,7,24,0,0,0,0,109,120,109,120,110,128,78,128,46,128,14,128,46,120,14,120,78,120,46,112,77,112,77,112,13,112,13,112,109,112,109,112,77,104,77,104,45,104,45,104,13,104,13,104,109,104,109,104,77,96,77,96,45,96,45,96,13,96,13,96,12,88,12,88,12,88,12,88,76,88,76,88,76,88,76,88,44,88,44,88,44,88,44,88,12,80,12,80,12,80,12,80,108,96,108,96,108,96,108,96,76,80,76,80,76,80,76,80,44,80,44,80,44,80,44,80,12,72,12,72,12,72,12,72,107,88,107,88,107,88,107,88,107,88,107,88,107,88,107,88,75,72,75,72,75,72,75,72,75,72,75,72,75,72,75,72,43,72,43,72,43,72,43,72,43,72,43,72,43,72,43,72,11,64,11,64,11,64,11,64,11,64,11,64,11,64,11,64,107,80,107,80,107,80,107,80,107,80,107,80,107,80,107,80,75,64
\ No newline at end of file
+
+
+
+
+var tempDoublePtr = Runtime.alignMemory(allocate(12, "i8", ALLOC_STATIC), 8);
+
+assert(tempDoublePtr % 8 == 0);
+
+function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much
+
+  HEAP8[tempDoublePtr] = HEAP8[ptr];
+
+  HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
+
+  HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
+
+  HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
+
+}
+
+function copyTempDouble(ptr) {
+
+  HEAP8[tempDoublePtr] = HEAP8[ptr];
+
+  HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
+
+  HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
+
+  HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
+
+  HEAP8[tempDoublePtr+4] = HEAP8[ptr+4];
+
+  HEAP8[tempDoublePtr+5] = HEAP8[ptr+5];
+
+  HEAP8[tempDoublePtr+6] = HEAP8[ptr+6];
+
+  HEAP8[tempDoublePtr+7] = HEAP8[ptr+7];
+
+}
+
+
+  function _llvm_lifetime_end() {}
+
+  
+  
+  var ___errno_state=0;function ___setErrNo(value) {
+      // For convenient setting and returning of errno.
+      HEAP32[((___errno_state)>>2)]=value;
+      return value;
+    }
+  
+  var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};function _sysconf(name) {
+      // long sysconf(int name);
+      // http://pubs.opengroup.org/onlinepubs/009695399/functions/sysconf.html
+      switch(name) {
+        case 30: return PAGE_SIZE;
+        case 132:
+        case 133:
+        case 12:
+        case 137:
+        case 138:
+        case 15:
+        case 235:
+        case 16:
+        case 17:
+        case 18:
+        case 19:
+        case 20:
+        case 149:
+        case 13:
+        case 10:
+        case 236:
+        case 153:
+        case 9:
+        case 21:
+        case 22:
+        case 159:
+        case 154:
+        case 14:
+        case 77:
+        case 78:
+        case 139:
+        case 80:
+        case 81:
+        case 79:
+        case 82:
+        case 68:
+        case 67:
+        case 164:
+        case 11:
+        case 29:
+        case 47:
+        case 48:
+        case 95:
+        case 52:
+        case 51:
+        case 46:
+          return 200809;
+        case 27:
+        case 246:
+        case 127:
+        case 128:
+        case 23:
+        case 24:
+        case 160:
+        case 161:
+        case 181:
+        case 182:
+        case 242:
+        case 183:
+        case 184:
+        case 243:
+        case 244:
+        case 245:
+        case 165:
+        case 178:
+        case 179:
+        case 49:
+        case 50:
+        case 168:
+        case 169:
+        case 175:
+        case 170:
+        case 171:
+        case 172:
+        case 97:
+        case 76:
+        case 32:
+        case 173:
+        case 35:
+          return -1;
+        case 176:
+        case 177:
+        case 7:
+        case 155:
+        case 8:
+        case 157:
+        case 125:
+        case 126:
+        case 92:
+        case 93:
+        case 129:
+        case 130:
+        case 131:
+        case 94:
+        case 91:
+          return 1;
+        case 74:
+        case 60:
+        case 69:
+        case 70:
+        case 4:
+          return 1024;
+        case 31:
+        case 42:
+        case 72:
+          return 32;
+        case 87:
+        case 26:
+        case 33:
+          return 2147483647;
+        case 34:
+        case 1:
+          return 47839;
+        case 38:
+        case 36:
+          return 99;
+        case 43:
+        case 37:
+          return 2048;
+        case 0: return 2097152;
+        case 3: return 65536;
+        case 28: return 32768;
+        case 44: return 32767;
+        case 75: return 16384;
+        case 39: return 1000;
+        case 89: return 700;
+        case 71: return 256;
+        case 40: return 255;
+        case 2: return 100;
+        case 180: return 64;
+        case 25: return 20;
+        case 5: return 16;
+        case 6: return 6;
+        case 73: return 4;
+        case 84: return 1;
+      }
+      ___setErrNo(ERRNO_CODES.EINVAL);
+      return -1;
+    }
+
+   
+  Module["_memset"] = _memset;
+
+  var _llvm_memset_p0i8_i32=_memset;
+
+  function _abort() {
+      Module['abort']();
+    }
+
+  
+  
+  
+  var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can   access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};
+  
+  var PATH={splitPath:function (filename) {
+        var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
+        return splitPathRe.exec(filename).slice(1);
+      },normalizeArray:function (parts, allowAboveRoot) {
+        // if the path tries to go above the root, `up` ends up > 0
+        var up = 0;
+        for (var i = parts.length - 1; i >= 0; i--) {
+          var last = parts[i];
+          if (last === '.') {
+            parts.splice(i, 1);
+          } else if (last === '..') {
+            parts.splice(i, 1);
+            up++;
+          } else if (up) {
+            parts.splice(i, 1);
+            up--;
+          }
+        }
+        // if the path is allowed to go above the root, restore leading ..s
+        if (allowAboveRoot) {
+          for (; up--; up) {
+            parts.unshift('..');
+          }
+        }
+        return parts;
+      },normalize:function (path) {
+        var isAbsolute = path.charAt(0) === '/',
+            trailingSlash = path.substr(-1) === '/';
+        // Normalize the path
+        path = PATH.normalizeArray(path.split('/').filter(function(p) {
+          return !!p;
+        }), !isAbsolute).join('/');
+        if (!path && !isAbsolute) {
+          path = '.';
+        }
+        if (path && trailingSlash) {
+          path += '/';
+        }
+        return (isAbsolute ? '/' : '') + path;
+      },dirname:function (path) {
+        var result = PATH.splitPath(path),
+            root = result[0],
+            dir = result[1];
+        if (!root && !dir) {
+          // No dirname whatsoever
+          return '.';
+        }
+        if (dir) {
+          // It has a dirname, strip trailing slash
+          dir = dir.substr(0, dir.length - 1);
+        }
+        return root + dir;
+      },basename:function (path) {
+        // EMSCRIPTEN return '/'' for '/', not an empty string
+        if (path === '/') return '/';
+        var lastSlash = path.lastIndexOf('/');
+        if (lastSlash === -1) return path;
+        return path.substr(lastSlash+1);
+      },extname:function (path) {
+        return PATH.splitPath(path)[3];
+      },join:function () {
+        var paths = Array.prototype.slice.call(arguments, 0);
+        return PATH.normalize(paths.join('/'));
+      },join2:function (l, r) {
+        return PATH.normalize(l + '/' + r);
+      },resolve:function () {
+        var resolvedPath = '',
+          resolvedAbsolute = false;
+        for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
+          var path = (i >= 0) ? arguments[i] : FS.cwd();
+          // Skip empty and invalid entries
+          if (typeof path !== 'string') {
+            throw new TypeError('Arguments to path.resolve must be strings');
+          } else if (!path) {
+            continue;
+          }
+          resolvedPath = path + '/' + resolvedPath;
+          resolvedAbsolute = path.charAt(0) === '/';
+        }
+        // At this point the path should be resolved to a full absolute path, but
+        // handle relative paths to be safe (might happen when process.cwd() fails)
+        resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter(function(p) {
+          return !!p;
+        }), !resolvedAbsolute).join('/');
+        return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
+      },relative:function (from, to) {
+        from = PATH.resolve(from).substr(1);
+        to = PATH.resolve(to).substr(1);
+        function trim(arr) {
+          var start = 0;
+          for (; start < arr.length; start++) {
+            if (arr[start] !== '') break;
+          }
+          var end = arr.length - 1;
+          for (; end >= 0; end--) {
+            if (arr[end] !== '') break;
+          }
+          if (start > end) return [];
+          return arr.slice(start, end - start + 1);
+        }
+        var fromParts = trim(from.split('/'));
+        var toParts = trim(to.split('/'));
+        var length = Math.min(fromParts.length, toParts.length);
+        var samePartsLength = length;
+        for (var i = 0; i < length; i++) {
+          if (fromParts[i] !== toParts[i]) {
+            samePartsLength = i;
+            break;
+          }
+        }
+        var outputParts = [];
+        for (var i = samePartsLength; i < fromParts.length; i++) {
+          outputParts.push('..');
+        }
+        outputParts = outputParts.concat(toParts.slice(samePartsLength));
+        return outputParts.join('/');
+      }};
+  
+  var TTY={ttys:[],init:function () {
+        // https://github.com/kripken/emscripten/pull/1555
+        // if (ENVIRONMENT_IS_NODE) {
+        //   // currently, FS.init does not distinguish if process.stdin is a file or TTY
+        //   // device, it always assumes it's a TTY device. because of this, we're forcing
+        //   // process.stdin to UTF8 encoding to at least make stdin reading compatible
+        //   // with text files until FS.init can be refactored.
+        //   process['stdin']['setEncoding']('utf8');
+        // }
+      },shutdown:function () {
+        // https://github.com/kripken/emscripten/pull/1555
+        // if (ENVIRONMENT_IS_NODE) {
+        //   // inolen: any idea as to why node -e 'process.stdin.read()' wouldn't exit immediately (with process.stdin being a tty)?
+        //   // isaacs: because now it's reading from the stream, you've expressed interest in it, so that read() kicks off a _read() which creates a ReadReq operation
+        //   // inolen: I thought read() in that case was a synchronous operation that just grabbed some amount of buffered data if it exists?
+        //   // isaacs: it is. but it also triggers a _read() call, which calls readStart() on the handle
+        //   // isaacs: do process.stdin.pause() and i'd think it'd probably close the pending call
+        //   process['stdin']['pause']();
+        // }
+      },register:function (dev, ops) {
+        TTY.ttys[dev] = { input: [], output: [], ops: ops };
+        FS.registerDevice(dev, TTY.stream_ops);
+      },stream_ops:{open:function (stream) {
+          var tty = TTY.ttys[stream.node.rdev];
+          if (!tty) {
+            throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
+          }
+          stream.tty = tty;
+          stream.seekable = false;
+        },close:function (stream) {
+          // flush any pending line data
+          if (stream.tty.output.length) {
+            stream.tty.ops.put_char(stream.tty, 10);
+          }
+        },read:function (stream, buffer, offset, length, pos /* ignored */) {
+          if (!stream.tty || !stream.tty.ops.get_char) {
+            throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
+          }
+          var bytesRead = 0;
+          for (var i = 0; i < length; i++) {
+            var result;
+            try {
+              result = stream.tty.ops.get_char(stream.tty);
+            } catch (e) {
+              throw new FS.ErrnoError(ERRNO_CODES.EIO);
+            }
+            if (result === undefined && bytesRead === 0) {
+              throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
+            }
+            if (result === null || result === undefined) break;
+            bytesRead++;
+            buffer[offset+i] = result;
+          }
+          if (bytesRead) {
+            stream.node.timestamp = Date.now();
+          }
+          return bytesRead;
+        },write:function (stream, buffer, offset, length, pos) {
+          if (!stream.tty || !stream.tty.ops.put_char) {
+            throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
+          }
+          for (var i = 0; i < length; i++) {
+            try {
+              stream.tty.ops.put_char(stream.tty, buffer[offset+i]);
+            } catch (e) {
+              throw new FS.ErrnoError(ERRNO_CODES.EIO);
+            }
+          }
+          if (length) {
+            stream.node.timestamp = Date.now();
+          }
+          return i;
+        }},default_tty_ops:{get_char:function (tty) {
+          if (!tty.input.length) {
+            var result = null;
+            if (ENVIRONMENT_IS_NODE) {
+              result = process['stdin']['read']();
+              if (!result) {
+                if (process['stdin']['_readableState'] && process['stdin']['_readableState']['ended']) {
+                  return null;  // EOF
+                }
+                return undefined;  // no data available
+              }
+            } else if (typeof window != 'undefined' &&
+              typeof window.prompt == 'function') {
+              // Browser.
+              result = window.prompt('Input: ');  // returns null on cancel
+              if (result !== null) {
+                result += '\n';
+              }
+            } else if (typeof readline == 'function') {
+              // Command line.
+              result = readline();
+              if (result !== null) {
+                result += '\n';
+              }
+            }
+            if (!result) {
+              return null;
+            }
+            tty.input = intArrayFromString(result, true);
+          }
+          return tty.input.shift();
+        },put_char:function (tty, val) {
+          if (val === null || val === 10) {
+            Module['print'](tty.output.join(''));
+            tty.output = [];
+          } else {
+            tty.output.push(TTY.utf8.processCChar(val));
+          }
+        }},default_tty1_ops:{put_char:function (tty, val) {
+          if (val === null || val === 10) {
+            Module['printErr'](tty.output.join(''));
+            tty.output = [];
+          } else {
+            tty.output.push(TTY.utf8.processCChar(val));
+          }
+        }}};
+  
+  var MEMFS={ops_table:null,CONTENT_OWNING:1,CONTENT_FLEXIBLE:2,CONTENT_FIXED:3,mount:function (mount) {
+        return MEMFS.createNode(null, '/', 16384 | 511 /* 0777 */, 0);
+      },createNode:function (parent, name, mode, dev) {
+        if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
+          // no supported
+          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
+        }
+        if (!MEMFS.ops_table) {
+          MEMFS.ops_table = {
+            dir: {
+              node: {
+                getattr: MEMFS.node_ops.getattr,
+                setattr: MEMFS.node_ops.setattr,
+                lookup: MEMFS.node_ops.lookup,
+                mknod: MEMFS.node_ops.mknod,
+                rename: MEMFS.node_ops.rename,
+                unlink: MEMFS.node_ops.unlink,
+                rmdir: MEMFS.node_ops.rmdir,
+                readdir: MEMFS.node_ops.readdir,
+                symlink: MEMFS.node_ops.symlink
+              },
+              stream: {
+                llseek: MEMFS.stream_ops.llseek
+              }
+            },
+            file: {
+              node: {
+                getattr: MEMFS.node_ops.getattr,
+                setattr: MEMFS.node_ops.setattr
+              },
+              stream: {
+                llseek: MEMFS.stream_ops.llseek,
+                read: MEMFS.stream_ops.read,
+                write: MEMFS.stream_ops.write,
+                allocate: MEMFS.stream_ops.allocate,
+                mmap: MEMFS.stream_ops.mmap
+              }
+            },
+            link: {
+              node: {
+                getattr: MEMFS.node_ops.getattr,
+                setattr: MEMFS.node_ops.setattr,
+                readlink: MEMFS.node_ops.readlink
+              },
+              stream: {}
+            },
+            chrdev: {
+              node: {
+                getattr: MEMFS.node_ops.getattr,
+                setattr: MEMFS.node_ops.setattr
+              },
+              stream: FS.chrdev_stream_ops
+            },
+          };
+        }
+        var node = FS.createNode(parent, name, mode, dev);
+        if (FS.isDir(node.mode)) {
+          node.node_ops = MEMFS.ops_table.dir.node;
+          node.stream_ops = MEMFS.ops_table.dir.stream;
+          node.contents = {};
+        } else if (FS.isFile(node.mode)) {
+          node.node_ops = MEMFS.ops_table.file.node;
+          node.stream_ops = MEMFS.ops_table.file.stream;
+          node.contents = [];
+          node.contentMode = MEMFS.CONTENT_FLEXIBLE;
+        } else if (FS.isLink(node.mode)) {
+          node.node_ops = MEMFS.ops_table.link.node;
+          node.stream_ops = MEMFS.ops_table.link.stream;
+        } else if (FS.isChrdev(node.mode)) {
+          node.node_ops = MEMFS.ops_table.chrdev.node;
+          node.stream_ops = MEMFS.ops_table.chrdev.stream;
+        }
+        node.timestamp = Date.now();
+        // add the new node to the parent
+        if (parent) {
+          parent.contents[name] = node;
+        }
+        return node;
+      },ensureFlexible:function (node) {
+        if (node.contentMode !== MEMFS.CONTENT_FLEXIBLE) {
+          var contents = node.contents;
+          node.contents = Array.prototype.slice.call(contents);
+          node.contentMode = MEMFS.CONTENT_FLEXIBLE;
+        }
+      },node_ops:{getattr:function (node) {
+          var attr = {};
+          // device numbers reuse inode numbers.
+          attr.dev = FS.isChrdev(node.mode) ? node.id : 1;
+          attr.ino = node.id;
+          attr.mode = node.mode;
+          attr.nlink = 1;
+          attr.uid = 0;
+          attr.gid = 0;
+          attr.rdev = node.rdev;
+          if (FS.isDir(node.mode)) {
+            attr.size = 4096;
+          } else if (FS.isFile(node.mode)) {
+            attr.size = node.contents.length;
+          } else if (FS.isLink(node.mode)) {
+            attr.size = node.link.length;
+          } else {
+            attr.size = 0;
+          }
+          attr.atime = new Date(node.timestamp);
+          attr.mtime = new Date(node.timestamp);
+          attr.ctime = new Date(node.timestamp);
+          // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize),
+          //       but this is not required by the standard.
+          attr.blksize = 4096;
+          attr.blocks = Math.ceil(attr.size / attr.blksize);
+          return attr;
+        },setattr:function (node, attr) {
+          if (attr.mode !== undefined) {
+            node.mode = attr.mode;
+          }
+          if (attr.timestamp !== undefined) {
+            node.timestamp = attr.timestamp;
+          }
+          if (attr.size !== undefined) {
+            MEMFS.ensureFlexible(node);
+            var contents = node.contents;
+            if (attr.size < contents.length) contents.length = attr.size;
+            else while (attr.size > contents.length) contents.push(0);
+          }
+        },lookup:function (parent, name) {
+          throw FS.genericErrors[ERRNO_CODES.ENOENT];
+        },mknod:function (parent, name, mode, dev) {
+          return MEMFS.createNode(parent, name, mode, dev);
+        },rename:function (old_node, new_dir, new_name) {
+          // if we're overwriting a directory at new_name, make sure it's empty.
+          if (FS.isDir(old_node.mode)) {
+            var new_node;
+            try {
+              new_node = FS.lookupNode(new_dir, new_name);
+            } catch (e) {
+            }
+            if (new_node) {
+              for (var i in new_node.contents) {
+                throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
+              }
+            }
+          }
+          // do the internal rewiring
+          delete old_node.parent.contents[old_node.name];
+          old_node.name = new_name;
+          new_dir.contents[new_name] = old_node;
+          old_node.parent = new_dir;
+        },unlink:function (parent, name) {
+          delete parent.contents[name];
+        },rmdir:function (parent, name) {
+          var node = FS.lookupNode(parent, name);
+          for (var i in node.contents) {
+            throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
+          }
+          delete parent.contents[name];
+        },readdir:function (node) {
+          var entries = ['.', '..']
+          for (var key in node.contents) {
+            if (!node.contents.hasOwnProperty(key)) {
+              continue;
+            }
+            entries.push(key);
+          }
+          return entries;
+        },symlink:function (parent, newname, oldpath) {
+          var node = MEMFS.createNode(parent, newname, 511 /* 0777 */ | 40960, 0);
+          node.link = oldpath;
+          return node;
+        },readlink:function (node) {
+          if (!FS.isLink(node.mode)) {
+            throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+          }
+          return node.link;
+        }},stream_ops:{read:function (stream, buffer, offset, length, position) {
+          var contents = stream.node.contents;
+          if (position >= contents.length)
+            return 0;
+          var size = Math.min(contents.length - position, length);
+          assert(size >= 0);
+          if (size > 8 && contents.subarray) { // non-trivial, and typed array
+            buffer.set(contents.subarray(position, position + size), offset);
+          } else
+          {
+            for (var i = 0; i < size; i++) {
+              buffer[offset + i] = contents[position + i];
+            }
+          }
+          return size;
+        },write:function (stream, buffer, offset, length, position, canOwn) {
+          var node = stream.node;
+          node.timestamp = Date.now();
+          var contents = node.contents;
+          if (length && contents.length === 0 && position === 0 && buffer.subarray) {
+            // just replace it with the new data
+            if (canOwn && offset === 0) {
+              node.contents = buffer; // this could be a subarray of Emscripten HEAP, or allocated from some other source.
+              node.contentMode = (buffer.buffer === HEAP8.buffer) ? MEMFS.CONTENT_OWNING : MEMFS.CONTENT_FIXED;
+            } else {
+              node.contents = new Uint8Array(buffer.subarray(offset, offset+length));
+              node.contentMode = MEMFS.CONTENT_FIXED;
+            }
+            return length;
+          }
+          MEMFS.ensureFlexible(node);
+          var contents = node.contents;
+          while (contents.length < position) contents.push(0);
+          for (var i = 0; i < length; i++) {
+            contents[position + i] = buffer[offset + i];
+          }
+          return length;
+        },llseek:function (stream, offset, whence) {
+          var position = offset;
+          if (whence === 1) {  // SEEK_CUR.
+            position += stream.position;
+          } else if (whence === 2) {  // SEEK_END.
+            if (FS.isFile(stream.node.mode)) {
+              position += stream.node.contents.length;
+            }
+          }
+          if (position < 0) {
+            throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+          }
+          stream.ungotten = [];
+          stream.position = position;
+          return position;
+        },allocate:function (stream, offset, length) {
+          MEMFS.ensureFlexible(stream.node);
+          var contents = stream.node.contents;
+          var limit = offset + length;
+          while (limit > contents.length) contents.push(0);
+        },mmap:function (stream, buffer, offset, length, position, prot, flags) {
+          if (!FS.isFile(stream.node.mode)) {
+            throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
+          }
+          var ptr;
+          var allocated;
+          var contents = stream.node.contents;
+          // Only make a new copy when MAP_PRIVATE is specified.
+          if ( !(flags & 2) &&
+                (contents.buffer === buffer || contents.buffer === buffer.buffer) ) {
+            // We can't emulate MAP_SHARED when the file is not backed by the buffer
+            // we're mapping to (e.g. the HEAP buffer).
+            allocated = false;
+            ptr = contents.byteOffset;
+          } else {
+            // Try to avoid unnecessary slices.
+            if (position > 0 || position + length < contents.length) {
+              if (contents.subarray) {
+                contents = contents.subarray(position, position + length);
+              } else {
+                contents = Array.prototype.slice.call(contents, position, position + length);
+              }
+            }
+            allocated = true;
+            ptr = _malloc(length);
+            if (!ptr) {
+              throw new FS.ErrnoError(ERRNO_CODES.ENOMEM);
+            }
+            buffer.set(contents, ptr);
+          }
+          return { ptr: ptr, allocated: allocated };
+        }}};
+  
+  var IDBFS={dbs:{},indexedDB:function () {
+        return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
+      },DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function (mount) {
+        // reuse all of the core MEMFS functionality
+        return MEMFS.mount.apply(null, arguments);
+      },syncfs:function (mount, populate, callback) {
+        IDBFS.getLocalSet(mount, function(err, local) {
+          if (err) return callback(err);
+  
+          IDBFS.getRemoteSet(mount, function(err, remote) {
+            if (err) return callback(err);
+  
+            var src = populate ? remote : local;
+            var dst = populate ? local : remote;
+  
+            IDBFS.reconcile(src, dst, callback);
+          });
+        });
+      },getDB:function (name, callback) {
+        // check the cache first
+        var db = IDBFS.dbs[name];
+        if (db) {
+          return callback(null, db);
+        }
+  
+        var req;
+        try {
+          req = IDBFS.indexedDB().open(name, IDBFS.DB_VERSION);
+        } catch (e) {
+          return callback(e);
+        }
+        req.onupgradeneeded = function(e) {
+          var db = e.target.result;
+          var transaction = e.target.transaction;
+  
+          var fileStore;
+  
+          if (db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)) {
+            fileStore = transaction.objectStore(IDBFS.DB_STORE_NAME);
+          } else {
+            fileStore = db.createObjectStore(IDBFS.DB_STORE_NAME);
+          }
+  
+          fileStore.createIndex('timestamp', 'timestamp', { unique: false });
+        };
+        req.onsuccess = function() {
+          db = req.result;
+  
+          // add to the cache
+          IDBFS.dbs[name] = db;
+          callback(null, db);
+        };
+        req.onerror = function() {
+          callback(this.error);
+        };
+      },getLocalSet:function (mount, callback) {
+        var entries = {};
+  
+        function isRealDir(p) {
+          return p !== '.' && p !== '..';
+        };
+        function toAbsolute(root) {
+          return function(p) {
+            return PATH.join2(root, p);
+          }
+        };
+  
+        var check = FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));
+  
+        while (check.length) {
+          var path = check.pop();
+          var stat;
+  
+          try {
+            stat = FS.stat(path);
+          } catch (e) {
+            return callback(e);
+          }
+  
+          if (FS.isDir(stat.mode)) {
+            check.push.apply(check, FS.readdir(path).filter(isRealDir).map(toAbsolute(path)));
+          }
+  
+          entries[path] = { timestamp: stat.mtime };
+        }
+  
+        return callback(null, { type: 'local', entries: entries });
+      },getRemoteSet:function (mount, callback) {
+        var entries = {};
+  
+        IDBFS.getDB(mount.mountpoint, function(err, db) {
+          if (err) return callback(err);
+  
+          var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readonly');
+          transaction.onerror = function() { callback(this.error); };
+  
+          var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
+          var index = store.index('timestamp');
+  
+          index.openKeyCursor().onsuccess = function(event) {
+            var cursor = event.target.result;
+  
+            if (!cursor) {
+              return callback(null, { type: 'remote', db: db, entries: entries });
+            }
+  
+            entries[cursor.primaryKey] = { timestamp: cursor.key };
+  
+            cursor.continue();
+          };
+        });
+      },loadLocalEntry:function (path, callback) {
+        var stat, node;
+  
+        try {
+          var lookup = FS.lookupPath(path);
+          node = lookup.node;
+          stat = FS.stat(path);
+        } catch (e) {
+          return callback(e);
+        }
+  
+        if (FS.isDir(stat.mode)) {
+          return callback(null, { timestamp: stat.mtime, mode: stat.mode });
+        } else if (FS.isFile(stat.mode)) {
+          return callback(null, { timestamp: stat.mtime, mode: stat.mode, contents: node.contents });
+        } else {
+          return callback(new Error('node type not supported'));
+        }
+      },storeLocalEntry:function (path, entry, callback) {
+        try {
+          if (FS.isDir(entry.mode)) {
+            FS.mkdir(path, entry.mode);
+          } else if (FS.isFile(entry.mode)) {
+            FS.writeFile(path, entry.contents, { encoding: 'binary', canOwn: true });
+          } else {
+            return callback(new Error('node type not supported'));
+          }
+  
+          FS.utime(path, entry.timestamp, entry.timestamp);
+        } catch (e) {
+          return callback(e);
+        }
+  
+        callback(null);
+      },removeLocalEntry:function (path, callback) {
+        try {
+          var lookup = FS.lookupPath(path);
+          var stat = FS.stat(path);
+  
+          if (FS.isDir(stat.mode)) {
+            FS.rmdir(path);
+          } else if (FS.isFile(stat.mode)) {
+            FS.unlink(path);
+          }
+        } catch (e) {
+          return callback(e);
+        }
+  
+        callback(null);
+      },loadRemoteEntry:function (store, path, callback) {
+        var req = store.get(path);
+        req.onsuccess = function(event) { callback(null, event.target.result); };
+        req.onerror = function() { callback(this.error); };
+      },storeRemoteEntry:function (store, path, entry, callback) {
+        var req = store.put(entry, path);
+        req.onsuccess = function() { callback(null); };
+        req.onerror = function() { callback(this.error); };
+      },removeRemoteEntry:function (store, path, callback) {
+        var req = store.delete(path);
+        req.onsuccess = function() { callback(null); };
+        req.onerror = function() { callback(this.error); };
+      },reconcile:function (src, dst, callback) {
+        var total = 0;
+  
+        var create = [];
+        Object.keys(src.entries).forEach(function (key) {
+          var e = src.entries[key];
+          var e2 = dst.entries[key];
+          if (!e2 || e.timestamp > e2.timestamp) {
+            create.push(key);
+            total++;
+          }
+        });
+  
+        var remove = [];
+        Object.keys(dst.entries).forEach(function (key) {
+          var e = dst.entries[key];
+          var e2 = src.entries[key];
+          if (!e2) {
+            remove.push(key);
+            total++;
+          }
+        });
+  
+        if (!total) {
+          return callback(null);
+        }
+  
+        var errored = false;
+        var completed = 0;
+        var db = src.type === 'remote' ? src.db : dst.db;
+        var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readwrite');
+        var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
+  
+        function done(err) {
+          if (err) {
+            if (!done.errored) {
+              done.errored = true;
+              return callback(err);
+            }
+            return;
+          }
+          if (++completed >= total) {
+            return callback(null);
+          }
+        };
+  
+        transaction.onerror = function() { done(this.error); };
+  
+        // sort paths in ascending order so directory entries are created
+        // before the files inside them
+        create.sort().forEach(function (path) {
+          if (dst.type === 'local') {
+            IDBFS.loadRemoteEntry(store, path, function (err, entry) {
+              if (err) return done(err);
+              IDBFS.storeLocalEntry(path, entry, done);
+            });
+          } else {
+            IDBFS.loadLocalEntry(path, function (err, entry) {
+              if (err) return done(err);
+              IDBFS.storeRemoteEntry(store, path, entry, done);
+            });
+          }
+        });
+  
+        // sort paths in descending order so files are deleted before their
+        // parent directories
+        remove.sort().reverse().forEach(function(path) {
+          if (dst.type === 'local') {
+            IDBFS.removeLocalEntry(path, done);
+          } else {
+            IDBFS.removeRemoteEntry(store, path, done);
+          }
+        });
+      }};
+  
+  var NODEFS={isWindows:false,staticInit:function () {
+        NODEFS.isWindows = !!process.platform.match(/^win/);
+      },mount:function (mount) {
+        assert(ENVIRONMENT_IS_NODE);
+        return NODEFS.createNode(null, '/', NODEFS.getMode(mount.opts.root), 0);
+      },createNode:function (parent, name, mode, dev) {
+        if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        var node = FS.createNode(parent, name, mode);
+        node.node_ops = NODEFS.node_ops;
+        node.stream_ops = NODEFS.stream_ops;
+        return node;
+      },getMode:function (path) {
+        var stat;
+        try {
+          stat = fs.lstatSync(path);
+          if (NODEFS.isWindows) {
+            // On Windows, directories return permission bits 'rw-rw-rw-', even though they have 'rwxrwxrwx', so 
+            // propagate write bits to execute bits.
+            stat.mode = stat.mode | ((stat.mode & 146) >> 1);
+          }
+        } catch (e) {
+          if (!e.code) throw e;
+          throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+        }
+        return stat.mode;
+      },realPath:function (node) {
+        var parts = [];
+        while (node.parent !== node) {
+          parts.push(node.name);
+          node = node.parent;
+        }
+        parts.push(node.mount.opts.root);
+        parts.reverse();
+        return PATH.join.apply(null, parts);
+      },flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:function (flags) {
+        if (flags in NODEFS.flagsToPermissionStringMap) {
+          return NODEFS.flagsToPermissionStringMap[flags];
+        } else {
+          return flags;
+        }
+      },node_ops:{getattr:function (node) {
+          var path = NODEFS.realPath(node);
+          var stat;
+          try {
+            stat = fs.lstatSync(path);
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+          // node.js v0.10.20 doesn't report blksize and blocks on Windows. Fake them with default blksize of 4096.
+          // See http://support.microsoft.com/kb/140365
+          if (NODEFS.isWindows && !stat.blksize) {
+            stat.blksize = 4096;
+          }
+          if (NODEFS.isWindows && !stat.blocks) {
+            stat.blocks = (stat.size+stat.blksize-1)/stat.blksize|0;
+          }
+          return {
+            dev: stat.dev,
+            ino: stat.ino,
+            mode: stat.mode,
+            nlink: stat.nlink,
+            uid: stat.uid,
+            gid: stat.gid,
+            rdev: stat.rdev,
+            size: stat.size,
+            atime: stat.atime,
+            mtime: stat.mtime,
+            ctime: stat.ctime,
+            blksize: stat.blksize,
+            blocks: stat.blocks
+          };
+        },setattr:function (node, attr) {
+          var path = NODEFS.realPath(node);
+          try {
+            if (attr.mode !== undefined) {
+              fs.chmodSync(path, attr.mode);
+              // update the common node structure mode as well
+              node.mode = attr.mode;
+            }
+            if (attr.timestamp !== undefined) {
+              var date = new Date(attr.timestamp);
+              fs.utimesSync(path, date, date);
+            }
+            if (attr.size !== undefined) {
+              fs.truncateSync(path, attr.size);
+            }
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+        },lookup:function (parent, name) {
+          var path = PATH.join2(NODEFS.realPath(parent), name);
+          var mode = NODEFS.getMode(path);
+          return NODEFS.createNode(parent, name, mode);
+        },mknod:function (parent, name, mode, dev) {
+          var node = NODEFS.createNode(parent, name, mode, dev);
+          // create the backing node for this in the fs root as well
+          var path = NODEFS.realPath(node);
+          try {
+            if (FS.isDir(node.mode)) {
+              fs.mkdirSync(path, node.mode);
+            } else {
+              fs.writeFileSync(path, '', { mode: node.mode });
+            }
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+          return node;
+        },rename:function (oldNode, newDir, newName) {
+          var oldPath = NODEFS.realPath(oldNode);
+          var newPath = PATH.join2(NODEFS.realPath(newDir), newName);
+          try {
+            fs.renameSync(oldPath, newPath);
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+        },unlink:function (parent, name) {
+          var path = PATH.join2(NODEFS.realPath(parent), name);
+          try {
+            fs.unlinkSync(path);
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+        },rmdir:function (parent, name) {
+          var path = PATH.join2(NODEFS.realPath(parent), name);
+          try {
+            fs.rmdirSync(path);
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+        },readdir:function (node) {
+          var path = NODEFS.realPath(node);
+          try {
+            return fs.readdirSync(path);
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+        },symlink:function (parent, newName, oldPath) {
+          var newPath = PATH.join2(NODEFS.realPath(parent), newName);
+          try {
+            fs.symlinkSync(oldPath, newPath);
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+        },readlink:function (node) {
+          var path = NODEFS.realPath(node);
+          try {
+            return fs.readlinkSync(path);
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+        }},stream_ops:{open:function (stream) {
+          var path = NODEFS.realPath(stream.node);
+          try {
+            if (FS.isFile(stream.node.mode)) {
+              stream.nfd = fs.openSync(path, NODEFS.flagsToPermissionString(stream.flags));
+            }
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+        },close:function (stream) {
+          try {
+            if (FS.isFile(stream.node.mode) && stream.nfd) {
+              fs.closeSync(stream.nfd);
+            }
+          } catch (e) {
+            if (!e.code) throw e;
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+        },read:function (stream, buffer, offset, length, position) {
+          // FIXME this is terrible.
+          var nbuffer = new Buffer(length);
+          var res;
+          try {
+            res = fs.readSync(stream.nfd, nbuffer, 0, length, position);
+          } catch (e) {
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+          if (res > 0) {
+            for (var i = 0; i < res; i++) {
+              buffer[offset + i] = nbuffer[i];
+            }
+          }
+          return res;
+        },write:function (stream, buffer, offset, length, position) {
+          // FIXME this is terrible.
+          var nbuffer = new Buffer(buffer.subarray(offset, offset + length));
+          var res;
+          try {
+            res = fs.writeSync(stream.nfd, nbuffer, 0, length, position);
+          } catch (e) {
+            throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+          }
+          return res;
+        },llseek:function (stream, offset, whence) {
+          var position = offset;
+          if (whence === 1) {  // SEEK_CUR.
+            position += stream.position;
+          } else if (whence === 2) {  // SEEK_END.
+            if (FS.isFile(stream.node.mode)) {
+              try {
+                var stat = fs.fstatSync(stream.nfd);
+                position += stat.size;
+              } catch (e) {
+                throw new FS.ErrnoError(ERRNO_CODES[e.code]);
+              }
+            }
+          }
+  
+          if (position < 0) {
+            throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+          }
+  
+          stream.position = position;
+          return position;
+        }}};
+  
+  var _stdin=allocate(1, "i32*", ALLOC_STATIC);
+  
+  var _stdout=allocate(1, "i32*", ALLOC_STATIC);
+  
+  var _stderr=allocate(1, "i32*", ALLOC_STATIC);
+  
+  function _fflush(stream) {
+      // int fflush(FILE *stream);
+      // http://pubs.opengroup.org/onlinepubs/000095399/functions/fflush.html
+      // we don't currently perform any user-space buffering of data
+    }var FS={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,ErrnoError:null,genericErrors:{},handleFSError:function (e) {
+        if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace();
+        return ___setErrNo(e.errno);
+      },lookupPath:function (path, opts) {
+        path = PATH.resolve(FS.cwd(), path);
+        opts = opts || {};
+  
+        var defaults = {
+          follow_mount: true,
+          recurse_count: 0
+        };
+        for (var key in defaults) {
+          if (opts[key] === undefined) {
+            opts[key] = defaults[key];
+          }
+        }
+  
+        if (opts.recurse_count > 8) {  // max recursive lookup of 8
+          throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
+        }
+  
+        // split the path
+        var parts = PATH.normalizeArray(path.split('/').filter(function(p) {
+          return !!p;
+        }), false);
+  
+        // start at the root
+        var current = FS.root;
+        var current_path = '/';
+  
+        for (var i = 0; i < parts.length; i++) {
+          var islast = (i === parts.length-1);
+          if (islast && opts.parent) {
+            // stop resolving
+            break;
+          }
+  
+          current = FS.lookupNode(current, parts[i]);
+          current_path = PATH.join2(current_path, parts[i]);
+  
+          // jump to the mount's root node if this is a mountpoint
+          if (FS.isMountpoint(current)) {
+            if (!islast || (islast && opts.follow_mount)) {
+              current = current.mounted.root;
+            }
+          }
+  
+          // by default, lookupPath will not follow a symlink if it is the final path component.
+          // setting opts.follow = true will override this behavior.
+          if (!islast || opts.follow) {
+            var count = 0;
+            while (FS.isLink(current.mode)) {
+              var link = FS.readlink(current_path);
+              current_path = PATH.resolve(PATH.dirname(current_path), link);
+              
+              var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
+              current = lookup.node;
+  
+              if (count++ > 40) {  // limit max consecutive symlinks to 40 (SYMLOOP_MAX).
+                throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
+              }
+            }
+          }
+        }
+  
+        return { path: current_path, node: current };
+      },getPath:function (node) {
+        var path;
+        while (true) {
+          if (FS.isRoot(node)) {
+            var mount = node.mount.mountpoint;
+            if (!path) return mount;
+            return mount[mount.length-1] !== '/' ? mount + '/' + path : mount + path;
+          }
+          path = path ? node.name + '/' + path : node.name;
+          node = node.parent;
+        }
+      },hashName:function (parentid, name) {
+        var hash = 0;
+  
+  
+        for (var i = 0; i < name.length; i++) {
+          hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0;
+        }
+        return ((parentid + hash) >>> 0) % FS.nameTable.length;
+      },hashAddNode:function (node) {
+        var hash = FS.hashName(node.parent.id, node.name);
+        node.name_next = FS.nameTable[hash];
+        FS.nameTable[hash] = node;
+      },hashRemoveNode:function (node) {
+        var hash = FS.hashName(node.parent.id, node.name);
+        if (FS.nameTable[hash] === node) {
+          FS.nameTable[hash] = node.name_next;
+        } else {
+          var current = FS.nameTable[hash];
+          while (current) {
+            if (current.name_next === node) {
+              current.name_next = node.name_next;
+              break;
+            }
+            current = current.name_next;
+          }
+        }
+      },lookupNode:function (parent, name) {
+        var err = FS.mayLookup(parent);
+        if (err) {
+          throw new FS.ErrnoError(err);
+        }
+        var hash = FS.hashName(parent.id, name);
+        for (var node = FS.nameTable[hash]; node; node = node.name_next) {
+          var nodeName = node.name;
+          if (node.parent.id === parent.id && nodeName === name) {
+            return node;
+          }
+        }
+        // if we failed to find it in the cache, call into the VFS
+        return FS.lookup(parent, name);
+      },createNode:function (parent, name, mode, rdev) {
+        if (!FS.FSNode) {
+          FS.FSNode = function(parent, name, mode, rdev) {
+            if (!parent) {
+              parent = this;  // root node sets parent to itself
+            }
+            this.parent = parent;
+            this.mount = parent.mount;
+            this.mounted = null;
+            this.id = FS.nextInode++;
+            this.name = name;
+            this.mode = mode;
+            this.node_ops = {};
+            this.stream_ops = {};
+            this.rdev = rdev;
+          };
+  
+          FS.FSNode.prototype = {};
+  
+          // compatibility
+          var readMode = 292 | 73;
+          var writeMode = 146;
+  
+          // NOTE we must use Object.defineProperties instead of individual calls to
+          // Object.defineProperty in order to make closure compiler happy
+          Object.defineProperties(FS.FSNode.prototype, {
+            read: {
+              get: function() { return (this.mode & readMode) === readMode; },
+              set: function(val) { val ? this.mode |= readMode : this.mode &= ~readMode; }
+            },
+            write: {
+              get: function() { return (this.mode & writeMode) === writeMode; },
+              set: function(val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; }
+            },
+            isFolder: {
+              get: function() { return FS.isDir(this.mode); },
+            },
+            isDevice: {
+              get: function() { return FS.isChrdev(this.mode); },
+            },
+          });
+        }
+  
+        var node = new FS.FSNode(parent, name, mode, rdev);
+  
+        FS.hashAddNode(node);
+  
+        return node;
+      },destroyNode:function (node) {
+        FS.hashRemoveNode(node);
+      },isRoot:function (node) {
+        return node === node.parent;
+      },isMountpoint:function (node) {
+        return !!node.mounted;
+      },isFile:function (mode) {
+        return (mode & 61440) === 32768;
+      },isDir:function (mode) {
+        return (mode & 61440) === 16384;
+      },isLink:function (mode) {
+        return (mode & 61440) === 40960;
+      },isChrdev:function (mode) {
+        return (mode & 61440) === 8192;
+      },isBlkdev:function (mode) {
+        return (mode & 61440) === 24576;
+      },isFIFO:function (mode) {
+        return (mode & 61440) === 4096;
+      },isSocket:function (mode) {
+        return (mode & 49152) === 49152;
+      },flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function (str) {
+        var flags = FS.flagModes[str];
+        if (typeof flags === 'undefined') {
+          throw new Error('Unknown file open mode: ' + str);
+        }
+        return flags;
+      },flagsToPermissionString:function (flag) {
+        var accmode = flag & 2097155;
+        var perms = ['r', 'w', 'rw'][accmode];
+        if ((flag & 512)) {
+          perms += 'w';
+        }
+        return perms;
+      },nodePermissions:function (node, perms) {
+        if (FS.ignorePermissions) {
+          return 0;
+        }
+        // return 0 if any user, group or owner bits are set.
+        if (perms.indexOf('r') !== -1 && !(node.mode & 292)) {
+          return ERRNO_CODES.EACCES;
+        } else if (perms.indexOf('w') !== -1 && !(node.mode & 146)) {
+          return ERRNO_CODES.EACCES;
+        } else if (perms.indexOf('x') !== -1 && !(node.mode & 73)) {
+          return ERRNO_CODES.EACCES;
+        }
+        return 0;
+      },mayLookup:function (dir) {
+        return FS.nodePermissions(dir, 'x');
+      },mayCreate:function (dir, name) {
+        try {
+          var node = FS.lookupNode(dir, name);
+          return ERRNO_CODES.EEXIST;
+        } catch (e) {
+        }
+        return FS.nodePermissions(dir, 'wx');
+      },mayDelete:function (dir, name, isdir) {
+        var node;
+        try {
+          node = FS.lookupNode(dir, name);
+        } catch (e) {
+          return e.errno;
+        }
+        var err = FS.nodePermissions(dir, 'wx');
+        if (err) {
+          return err;
+        }
+        if (isdir) {
+          if (!FS.isDir(node.mode)) {
+            return ERRNO_CODES.ENOTDIR;
+          }
+          if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
+            return ERRNO_CODES.EBUSY;
+          }
+        } else {
+          if (FS.isDir(node.mode)) {
+            return ERRNO_CODES.EISDIR;
+          }
+        }
+        return 0;
+      },mayOpen:function (node, flags) {
+        if (!node) {
+          return ERRNO_CODES.ENOENT;
+        }
+        if (FS.isLink(node.mode)) {
+          return ERRNO_CODES.ELOOP;
+        } else if (FS.isDir(node.mode)) {
+          if ((flags & 2097155) !== 0 ||  // opening for write
+              (flags & 512)) {
+            return ERRNO_CODES.EISDIR;
+          }
+        }
+        return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
+      },MAX_OPEN_FDS:4096,nextfd:function (fd_start, fd_end) {
+        fd_start = fd_start || 0;
+        fd_end = fd_end || FS.MAX_OPEN_FDS;
+        for (var fd = fd_start; fd <= fd_end; fd++) {
+          if (!FS.streams[fd]) {
+            return fd;
+          }
+        }
+        throw new FS.ErrnoError(ERRNO_CODES.EMFILE);
+      },getStream:function (fd) {
+        return FS.streams[fd];
+      },createStream:function (stream, fd_start, fd_end) {
+        if (!FS.FSStream) {
+          FS.FSStream = function(){};
+          FS.FSStream.prototype = {};
+          // compatibility
+          Object.defineProperties(FS.FSStream.prototype, {
+            object: {
+              get: function() { return this.node; },
+              set: function(val) { this.node = val; }
+            },
+            isRead: {
+              get: function() { return (this.flags & 2097155) !== 1; }
+            },
+            isWrite: {
+              get: function() { return (this.flags & 2097155) !== 0; }
+            },
+            isAppend: {
+              get: function() { return (this.flags & 1024); }
+            }
+          });
+        }
+        if (stream.__proto__) {
+          // reuse the object
+          stream.__proto__ = FS.FSStream.prototype;
+        } else {
+          var newStream = new FS.FSStream();
+          for (var p in stream) {
+            newStream[p] = stream[p];
+          }
+          stream = newStream;
+        }
+        var fd = FS.nextfd(fd_start, fd_end);
+        stream.fd = fd;
+        FS.streams[fd] = stream;
+        return stream;
+      },closeStream:function (fd) {
+        FS.streams[fd] = null;
+      },getStreamFromPtr:function (ptr) {
+        return FS.streams[ptr - 1];
+      },getPtrForStream:function (stream) {
+        return stream ? stream.fd + 1 : 0;
+      },chrdev_stream_ops:{open:function (stream) {
+          var device = FS.getDevice(stream.node.rdev);
+          // override node's stream ops with the device's
+          stream.stream_ops = device.stream_ops;
+          // forward the open call
+          if (stream.stream_ops.open) {
+            stream.stream_ops.open(stream);
+          }
+        },llseek:function () {
+          throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
+        }},major:function (dev) {
+        return ((dev) >> 8);
+      },minor:function (dev) {
+        return ((dev) & 0xff);
+      },makedev:function (ma, mi) {
+        return ((ma) << 8 | (mi));
+      },registerDevice:function (dev, ops) {
+        FS.devices[dev] = { stream_ops: ops };
+      },getDevice:function (dev) {
+        return FS.devices[dev];
+      },getMounts:function (mount) {
+        var mounts = [];
+        var check = [mount];
+  
+        while (check.length) {
+          var m = check.pop();
+  
+          mounts.push(m);
+  
+          check.push.apply(check, m.mounts);
+        }
+  
+        return mounts;
+      },syncfs:function (populate, callback) {
+        if (typeof(populate) === 'function') {
+          callback = populate;
+          populate = false;
+        }
+  
+        var mounts = FS.getMounts(FS.root.mount);
+        var completed = 0;
+  
+        function done(err) {
+          if (err) {
+            if (!done.errored) {
+              done.errored = true;
+              return callback(err);
+            }
+            return;
+          }
+          if (++completed >= mounts.length) {
+            callback(null);
+          }
+        };
+  
+        // sync all mounts
+        mounts.forEach(function (mount) {
+          if (!mount.type.syncfs) {
+            return done(null);
+          }
+          mount.type.syncfs(mount, populate, done);
+        });
+      },mount:function (type, opts, mountpoint) {
+        var root = mountpoint === '/';
+        var pseudo = !mountpoint;
+        var node;
+  
+        if (root && FS.root) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
+        } else if (!root && !pseudo) {
+          var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
+  
+          mountpoint = lookup.path;  // use the absolute path
+          node = lookup.node;
+  
+          if (FS.isMountpoint(node)) {
+            throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
+          }
+  
+          if (!FS.isDir(node.mode)) {
+            throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
+          }
+        }
+  
+        var mount = {
+          type: type,
+          opts: opts,
+          mountpoint: mountpoint,
+          mounts: []
+        };
+  
+        // create a root node for the fs
+        var mountRoot = type.mount(mount);
+        mountRoot.mount = mount;
+        mount.root = mountRoot;
+  
+        if (root) {
+          FS.root = mountRoot;
+        } else if (node) {
+          // set as a mountpoint
+          node.mounted = mount;
+  
+          // add the new mount to the current mount's children
+          if (node.mount) {
+            node.mount.mounts.push(mount);
+          }
+        }
+  
+        return mountRoot;
+      },unmount:function (mountpoint) {
+        var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
+  
+        if (!FS.isMountpoint(lookup.node)) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+  
+        // destroy the nodes for this mount, and all its child mounts
+        var node = lookup.node;
+        var mount = node.mounted;
+        var mounts = FS.getMounts(mount);
+  
+        Object.keys(FS.nameTable).forEach(function (hash) {
+          var current = FS.nameTable[hash];
+  
+          while (current) {
+            var next = current.name_next;
+  
+            if (mounts.indexOf(current.mount) !== -1) {
+              FS.destroyNode(current);
+            }
+  
+            current = next;
+          }
+        });
+  
+        // no longer a mountpoint
+        node.mounted = null;
+  
+        // remove this mount from the child mounts
+        var idx = node.mount.mounts.indexOf(mount);
+        assert(idx !== -1);
+        node.mount.mounts.splice(idx, 1);
+      },lookup:function (parent, name) {
+        return parent.node_ops.lookup(parent, name);
+      },mknod:function (path, mode, dev) {
+        var lookup = FS.lookupPath(path, { parent: true });
+        var parent = lookup.node;
+        var name = PATH.basename(path);
+        var err = FS.mayCreate(parent, name);
+        if (err) {
+          throw new FS.ErrnoError(err);
+        }
+        if (!parent.node_ops.mknod) {
+          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
+        }
+        return parent.node_ops.mknod(parent, name, mode, dev);
+      },create:function (path, mode) {
+        mode = mode !== undefined ? mode : 438 /* 0666 */;
+        mode &= 4095;
+        mode |= 32768;
+        return FS.mknod(path, mode, 0);
+      },mkdir:function (path, mode) {
+        mode = mode !== undefined ? mode : 511 /* 0777 */;
+        mode &= 511 | 512;
+        mode |= 16384;
+        return FS.mknod(path, mode, 0);
+      },mkdev:function (path, mode, dev) {
+        if (typeof(dev) === 'undefined') {
+          dev = mode;
+          mode = 438 /* 0666 */;
+        }
+        mode |= 8192;
+        return FS.mknod(path, mode, dev);
+      },symlink:function (oldpath, newpath) {
+        var lookup = FS.lookupPath(newpath, { parent: true });
+        var parent = lookup.node;
+        var newname = PATH.basename(newpath);
+        var err = FS.mayCreate(parent, newname);
+        if (err) {
+          throw new FS.ErrnoError(err);
+        }
+        if (!parent.node_ops.symlink) {
+          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
+        }
+        return parent.node_ops.symlink(parent, newname, oldpath);
+      },rename:function (old_path, new_path) {
+        var old_dirname = PATH.dirname(old_path);
+        var new_dirname = PATH.dirname(new_path);
+        var old_name = PATH.basename(old_path);
+        var new_name = PATH.basename(new_path);
+        // parents must exist
+        var lookup, old_dir, new_dir;
+        try {
+          lookup = FS.lookupPath(old_path, { parent: true });
+          old_dir = lookup.node;
+          lookup = FS.lookupPath(new_path, { parent: true });
+          new_dir = lookup.node;
+        } catch (e) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
+        }
+        // need to be part of the same mount
+        if (old_dir.mount !== new_dir.mount) {
+          throw new FS.ErrnoError(ERRNO_CODES.EXDEV);
+        }
+        // source must exist
+        var old_node = FS.lookupNode(old_dir, old_name);
+        // old path should not be an ancestor of the new path
+        var relative = PATH.relative(old_path, new_dirname);
+        if (relative.charAt(0) !== '.') {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        // new path should not be an ancestor of the old path
+        relative = PATH.relative(new_path, old_dirname);
+        if (relative.charAt(0) !== '.') {
+          throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
+        }
+        // see if the new path already exists
+        var new_node;
+        try {
+          new_node = FS.lookupNode(new_dir, new_name);
+        } catch (e) {
+          // not fatal
+        }
+        // early out if nothing needs to change
+        if (old_node === new_node) {
+          return;
+        }
+        // we'll need to delete the old entry
+        var isdir = FS.isDir(old_node.mode);
+        var err = FS.mayDelete(old_dir, old_name, isdir);
+        if (err) {
+          throw new FS.ErrnoError(err);
+        }
+        // need delete permissions if we'll be overwriting.
+        // need create permissions if new doesn't already exist.
+        err = new_node ?
+          FS.mayDelete(new_dir, new_name, isdir) :
+          FS.mayCreate(new_dir, new_name);
+        if (err) {
+          throw new FS.ErrnoError(err);
+        }
+        if (!old_dir.node_ops.rename) {
+          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
+        }
+        if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
+        }
+        // if we are going to change the parent, check write permissions
+        if (new_dir !== old_dir) {
+          err = FS.nodePermissions(old_dir, 'w');
+          if (err) {
+            throw new FS.ErrnoError(err);
+          }
+        }
+        // remove the node from the lookup hash
+        FS.hashRemoveNode(old_node);
+        // do the underlying fs rename
+        try {
+          old_dir.node_ops.rename(old_node, new_dir, new_name);
+        } catch (e) {
+          throw e;
+        } finally {
+          // add the node back to the hash (in case node_ops.rename
+          // changed its name)
+          FS.hashAddNode(old_node);
+        }
+      },rmdir:function (path) {
+        var lookup = FS.lookupPath(path, { parent: true });
+        var parent = lookup.node;
+        var name = PATH.basename(path);
+        var node = FS.lookupNode(parent, name);
+        var err = FS.mayDelete(parent, name, true);
+        if (err) {
+          throw new FS.ErrnoError(err);
+        }
+        if (!parent.node_ops.rmdir) {
+          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
+        }
+        if (FS.isMountpoint(node)) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
+        }
+        parent.node_ops.rmdir(parent, name);
+        FS.destroyNode(node);
+      },readdir:function (path) {
+        var lookup = FS.lookupPath(path, { follow: true });
+        var node = lookup.node;
+        if (!node.node_ops.readdir) {
+          throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
+        }
+        return node.node_ops.readdir(node);
+      },unlink:function (path) {
+        var lookup = FS.lookupPath(path, { parent: true });
+        var parent = lookup.node;
+        var name = PATH.basename(path);
+        var node = FS.lookupNode(parent, name);
+        var err = FS.mayDelete(parent, name, false);
+        if (err) {
+          // POSIX says unlink should set EPERM, not EISDIR
+          if (err === ERRNO_CODES.EISDIR) err = ERRNO_CODES.EPERM;
+          throw new FS.ErrnoError(err);
+        }
+        if (!parent.node_ops.unlink) {
+          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
+        }
+        if (FS.isMountpoint(node)) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
+        }
+        parent.node_ops.unlink(parent, name);
+        FS.destroyNode(node);
+      },readlink:function (path) {
+        var lookup = FS.lookupPath(path);
+        var link = lookup.node;
+        if (!link.node_ops.readlink) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        return link.node_ops.readlink(link);
+      },stat:function (path, dontFollow) {
+        var lookup = FS.lookupPath(path, { follow: !dontFollow });
+        var node = lookup.node;
+        if (!node.node_ops.getattr) {
+          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
+        }
+        return node.node_ops.getattr(node);
+      },lstat:function (path) {
+        return FS.stat(path, true);
+      },chmod:function (path, mode, dontFollow) {
+        var node;
+        if (typeof path === 'string') {
+          var lookup = FS.lookupPath(path, { follow: !dontFollow });
+          node = lookup.node;
+        } else {
+          node = path;
+        }
+        if (!node.node_ops.setattr) {
+          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
+        }
+        node.node_ops.setattr(node, {
+          mode: (mode & 4095) | (node.mode & ~4095),
+          timestamp: Date.now()
+        });
+      },lchmod:function (path, mode) {
+        FS.chmod(path, mode, true);
+      },fchmod:function (fd, mode) {
+        var stream = FS.getStream(fd);
+        if (!stream) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
+        }
+        FS.chmod(stream.node, mode);
+      },chown:function (path, uid, gid, dontFollow) {
+        var node;
+        if (typeof path === 'string') {
+          var lookup = FS.lookupPath(path, { follow: !dontFollow });
+          node = lookup.node;
+        } else {
+          node = path;
+        }
+        if (!node.node_ops.setattr) {
+          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
+        }
+        node.node_ops.setattr(node, {
+          timestamp: Date.now()
+          // we ignore the uid / gid for now
+        });
+      },lchown:function (path, uid, gid) {
+        FS.chown(path, uid, gid, true);
+      },fchown:function (fd, uid, gid) {
+        var stream = FS.getStream(fd);
+        if (!stream) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
+        }
+        FS.chown(stream.node, uid, gid);
+      },truncate:function (path, len) {
+        if (len < 0) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        var node;
+        if (typeof path === 'string') {
+          var lookup = FS.lookupPath(path, { follow: true });
+          node = lookup.node;
+        } else {
+          node = path;
+        }
+        if (!node.node_ops.setattr) {
+          throw new FS.ErrnoError(ERRNO_CODES.EPERM);
+        }
+        if (FS.isDir(node.mode)) {
+          throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
+        }
+        if (!FS.isFile(node.mode)) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        var err = FS.nodePermissions(node, 'w');
+        if (err) {
+          throw new FS.ErrnoError(err);
+        }
+        node.node_ops.setattr(node, {
+          size: len,
+          timestamp: Date.now()
+        });
+      },ftruncate:function (fd, len) {
+        var stream = FS.getStream(fd);
+        if (!stream) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
+        }
+        if ((stream.flags & 2097155) === 0) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        FS.truncate(stream.node, len);
+      },utime:function (path, atime, mtime) {
+        var lookup = FS.lookupPath(path, { follow: true });
+        var node = lookup.node;
+        node.node_ops.setattr(node, {
+          timestamp: Math.max(atime, mtime)
+        });
+      },open:function (path, flags, mode, fd_start, fd_end) {
+        flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags;
+        mode = typeof mode === 'undefined' ? 438 /* 0666 */ : mode;
+        if ((flags & 64)) {
+          mode = (mode & 4095) | 32768;
+        } else {
+          mode = 0;
+        }
+        var node;
+        if (typeof path === 'object') {
+          node = path;
+        } else {
+          path = PATH.normalize(path);
+          try {
+            var lookup = FS.lookupPath(path, {
+              follow: !(flags & 131072)
+            });
+            node = lookup.node;
+          } catch (e) {
+            // ignore
+          }
+        }
+        // perhaps we need to create the node
+        if ((flags & 64)) {
+          if (node) {
+            // if O_CREAT and O_EXCL are set, error out if the node already exists
+            if ((flags & 128)) {
+              throw new FS.ErrnoError(ERRNO_CODES.EEXIST);
+            }
+          } else {
+            // node doesn't exist, try to create it
+            node = FS.mknod(path, mode, 0);
+          }
+        }
+        if (!node) {
+          throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
+        }
+        // can't truncate a device
+        if (FS.isChrdev(node.mode)) {
+          flags &= ~512;
+        }
+        // check permissions
+        var err = FS.mayOpen(node, flags);
+        if (err) {
+          throw new FS.ErrnoError(err);
+        }
+        // do truncation if necessary
+        if ((flags & 512)) {
+          FS.truncate(node, 0);
+        }
+        // we've already handled these, don't pass down to the underlying vfs
+        flags &= ~(128 | 512);
+  
+        // register the stream with the filesystem
+        var stream = FS.createStream({
+          node: node,
+          path: FS.getPath(node),  // we want the absolute path to the node
+          flags: flags,
+          seekable: true,
+          position: 0,
+          stream_ops: node.stream_ops,
+          // used by the file family libc calls (fopen, fwrite, ferror, etc.)
+          ungotten: [],
+          error: false
+        }, fd_start, fd_end);
+        // call the new stream's open function
+        if (stream.stream_ops.open) {
+          stream.stream_ops.open(stream);
+        }
+        if (Module['logReadFiles'] && !(flags & 1)) {
+          if (!FS.readFiles) FS.readFiles = {};
+          if (!(path in FS.readFiles)) {
+            FS.readFiles[path] = 1;
+            Module['printErr']('read file: ' + path);
+          }
+        }
+        return stream;
+      },close:function (stream) {
+        try {
+          if (stream.stream_ops.close) {
+            stream.stream_ops.close(stream);
+          }
+        } catch (e) {
+          throw e;
+        } finally {
+          FS.closeStream(stream.fd);
+        }
+      },llseek:function (stream, offset, whence) {
+        if (!stream.seekable || !stream.stream_ops.llseek) {
+          throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
+        }
+        return stream.stream_ops.llseek(stream, offset, whence);
+      },read:function (stream, buffer, offset, length, position) {
+        if (length < 0 || position < 0) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        if ((stream.flags & 2097155) === 1) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
+        }
+        if (FS.isDir(stream.node.mode)) {
+          throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
+        }
+        if (!stream.stream_ops.read) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        var seeking = true;
+        if (typeof position === 'undefined') {
+          position = stream.position;
+          seeking = false;
+        } else if (!stream.seekable) {
+          throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
+        }
+        var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position);
+        if (!seeking) stream.position += bytesRead;
+        return bytesRead;
+      },write:function (stream, buffer, offset, length, position, canOwn) {
+        if (length < 0 || position < 0) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        if ((stream.flags & 2097155) === 0) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
+        }
+        if (FS.isDir(stream.node.mode)) {
+          throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
+        }
+        if (!stream.stream_ops.write) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        var seeking = true;
+        if (typeof position === 'undefined') {
+          position = stream.position;
+          seeking = false;
+        } else if (!stream.seekable) {
+          throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
+        }
+        if (stream.flags & 1024) {
+          // seek to the end before writing in append mode
+          FS.llseek(stream, 0, 2);
+        }
+        var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn);
+        if (!seeking) stream.position += bytesWritten;
+        return bytesWritten;
+      },allocate:function (stream, offset, length) {
+        if (offset < 0 || length <= 0) {
+          throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+        }
+        if ((stream.flags & 2097155) === 0) {
+          throw new FS.ErrnoError(ERRNO_CODES.EBADF);
+        }
+        if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) {
+          throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
+        }
+        if (!stream.stream_ops.allocate) {
+          throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
+        }
+        stream.stream_ops.allocate(stream, offset, length);
+      },mmap:function (stream, buffer, offset, length, position, prot, flags) {
+        // TODO if PROT is PROT_WRITE, make sure we have write access
+        if ((stream.flags & 2097155) === 1) {
+          throw new FS.ErrnoError(ERRNO_CODES.EACCES);
+        }
+        if (!stream.stream_ops.mmap) {
+          throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
+        }
+        return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags);
+      },ioctl:function (stream, cmd, arg) {
+        if (!stream.stream_ops.ioctl) {
+          throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);
+        }
+        return stream.stream_ops.ioctl(stream, cmd, arg);
+      },readFile:function (path, opts) {
+        opts = opts || {};
+        opts.flags = opts.flags || 'r';
+        opts.encoding = opts.encoding || 'binary';
+        if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
+          throw new Error('Invalid encoding type "' + opts.encoding + '"');
+        }
+        var ret;
+        var stream = FS.open(path, opts.flags);
+        var stat = FS.stat(path);
+        var length = stat.size;
+        var buf = new Uint8Array(length);
+        FS.read(stream, buf, 0, length, 0);
+        if (opts.encoding === 'utf8') {
+          ret = '';
+          var utf8 = new Runtime.UTF8Processor();
+          for (var i = 0; i < length; i++) {
+            ret += utf8.processCChar(buf[i]);
+          }
+        } else if (opts.encoding === 'binary') {
+          ret = buf;
+        }
+        FS.close(stream);
+        return ret;
+      },writeFile:function (path, data, opts) {
+        opts = opts || {};
+        opts.flags = opts.flags || 'w';
+        opts.encoding = opts.encoding || 'utf8';
+        if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
+          throw new Error('Invalid encoding type "' + opts.encoding + '"');
+        }
+        var stream = FS.open(path, opts.flags, opts.mode);
+        if (opts.encoding === 'utf8') {
+          var utf8 = new Runtime.UTF8Processor();
+          var buf = new Uint8Array(utf8.processJSString(data));
+          FS.write(stream, buf, 0, buf.length, 0, opts.canOwn);
+        } else if (opts.encoding === 'binary') {
+          FS.write(stream, data, 0, data.length, 0, opts.canOwn);
+        }
+        FS.close(stream);
+      },cwd:function () {
+        return FS.currentPath;
+      },chdir:function (path) {
+        var lookup = FS.lookupPath(path, { follow: true });
+        if (!FS.isDir(lookup.node.mode)) {
+          throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
+        }
+        var err = FS.nodePermissions(lookup.node, 'x');
+        if (err) {
+          throw new FS.ErrnoError(err);
+        }
+        FS.currentPath = lookup.path;
+      },createDefaultDirectories:function () {
+        FS.mkdir('/tmp');
+      },createDefaultDevices:function () {
+        // create /dev
+        FS.mkdir('/dev');
+        // setup /dev/null
+        FS.registerDevice(FS.makedev(1, 3), {
+          read: function() { return 0; },
+          write: function() { return 0; }
+        });
+        FS.mkdev('/dev/null', FS.makedev(1, 3));
+        // setup /dev/tty and /dev/tty1
+        // stderr needs to print output using Module['printErr']
+        // so we register a second tty just for it.
+        TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
+        TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
+        FS.mkdev('/dev/tty', FS.makedev(5, 0));
+        FS.mkdev('/dev/tty1', FS.makedev(6, 0));
+        // we're not going to emulate the actual shm device,
+        // just create the tmp dirs that reside in it commonly
+        FS.mkdir('/dev/shm');
+        FS.mkdir('/dev/shm/tmp');
+      },createStandardStreams:function () {
+        // TODO deprecate the old functionality of a single
+        // input / output callback and that utilizes FS.createDevice
+        // and instead require a unique set of stream ops
+  
+        // by default, we symlink the standard streams to the
+        // default tty devices. however, if the standard streams
+        // have been overwritten we create a unique device for
+        // them instead.
+        if (Module['stdin']) {
+          FS.createDevice('/dev', 'stdin', Module['stdin']);
+        } else {
+          FS.symlink('/dev/tty', '/dev/stdin');
+        }
+        if (Module['stdout']) {
+          FS.createDevice('/dev', 'stdout', null, Module['stdout']);
+        } else {
+          FS.symlink('/dev/tty', '/dev/stdout');
+        }
+        if (Module['stderr']) {
+          FS.createDevice('/dev', 'stderr', null, Module['stderr']);
+        } else {
+          FS.symlink('/dev/tty1', '/dev/stderr');
+        }
+  
+        // open default streams for the stdin, stdout and stderr devices
+        var stdin = FS.open('/dev/stdin', 'r');
+        HEAP32[((_stdin)>>2)]=FS.getPtrForStream(stdin);
+        assert(stdin.fd === 0, 'invalid handle for stdin (' + stdin.fd + ')');
+  
+        var stdout = FS.open('/dev/stdout', 'w');
+        HEAP32[((_stdout)>>2)]=FS.getPtrForStream(stdout);
+        assert(stdout.fd === 1, 'invalid handle for stdout (' + stdout.fd + ')');
+  
+        var stderr = FS.open('/dev/stderr', 'w');
+        HEAP32[((_stderr)>>2)]=FS.getPtrForStream(stderr);
+        assert(stderr.fd === 2, 'invalid handle for stderr (' + stderr.fd + ')');
+      },ensureErrnoError:function () {
+        if (FS.ErrnoError) return;
+        FS.ErrnoError = function ErrnoError(errno) {
+          this.errno = errno;
+          for (var key in ERRNO_CODES) {
+            if (ERRNO_CODES[key] === errno) {
+              this.code = key;
+              break;
+            }
+          }
+          this.message = ERRNO_MESSAGES[errno];
+        };
+        FS.ErrnoError.prototype = new Error();
+        FS.ErrnoError.prototype.constructor = FS.ErrnoError;
+        // Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info)
+        [ERRNO_CODES.ENOENT].forEach(function(code) {
+          FS.genericErrors[code] = new FS.ErrnoError(code);
+          FS.genericErrors[code].stack = '<generic error, no stack>';
+        });
+      },staticInit:function () {
+        FS.ensureErrnoError();
+  
+        FS.nameTable = new Array(4096);
+  
+        FS.mount(MEMFS, {}, '/');
+  
+        FS.createDefaultDirectories();
+        FS.createDefaultDevices();
+      },init:function (input, output, error) {
+        assert(!FS.init.initialized, 'FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)');
+        FS.init.initialized = true;
+  
+        FS.ensureErrnoError();
+  
+        // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here
+        Module['stdin'] = input || Module['stdin'];
+        Module['stdout'] = output || Module['stdout'];
+        Module['stderr'] = error || Module['stderr'];
+  
+        FS.createStandardStreams();
+      },quit:function () {
+        FS.init.initialized = false;
+        for (var i = 0; i < FS.streams.length; i++) {
+          var stream = FS.streams[i];
+          if (!stream) {
+            continue;
+          }
+          FS.close(stream);
+        }
+      },getMode:function (canRead, canWrite) {
+        var mode = 0;
+        if (canRead) mode |= 292 | 73;
+        if (canWrite) mode |= 146;
+        return mode;
+      },joinPath:function (parts, forceRelative) {
+        var path = PATH.join.apply(null, parts);
+        if (forceRelative && path[0] == '/') path = path.substr(1);
+        return path;
+      },absolutePath:function (relative, base) {
+        return PATH.resolve(base, relative);
+      },standardizePath:function (path) {
+        return PATH.normalize(path);
+      },findObject:function (path, dontResolveLastLink) {
+        var ret = FS.analyzePath(path, dontResolveLastLink);
+        if (ret.exists) {
+          return ret.object;
+        } else {
+          ___setErrNo(ret.error);
+          return null;
+        }
+      },analyzePath:function (path, dontResolveLastLink) {
+        // operate from within the context of the symlink's target
+        try {
+          var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
+          path = lookup.path;
+        } catch (e) {
+        }
+        var ret = {
+          isRoot: false, exists: false, error: 0, name: null, path: null, object: null,
+          parentExists: false, parentPath: null, parentObject: null
+        };
+        try {
+          var lookup = FS.lookupPath(path, { parent: true });
+          ret.parentExists = true;
+          ret.parentPath = lookup.path;
+          ret.parentObject = lookup.node;
+          ret.name = PATH.basename(path);
+          lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
+          ret.exists = true;
+          ret.path = lookup.path;
+          ret.object = lookup.node;
+          ret.name = lookup.node.name;
+          ret.isRoot = lookup.path === '/';
+        } catch (e) {
+          ret.error = e.errno;
+        };
+        return ret;
+      },createFolder:function (parent, name, canRead, canWrite) {
+        var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
+        var mode = FS.getMode(canRead, canWrite);
+        return FS.mkdir(path, mode);
+      },createPath:function (parent, path, canRead, canWrite) {
+        parent = typeof parent === 'string' ? parent : FS.getPath(parent);
+        var parts = path.split('/').reverse();
+        while (parts.length) {
+          var part = parts.pop();
+          if (!part) continue;
+          var current = PATH.join2(parent, part);
+          try {
+            FS.mkdir(current);
+          } catch (e) {
+            // ignore EEXIST
+          }
+          parent = current;
+        }
+        return current;
+      },createFile:function (parent, name, properties, canRead, canWrite) {
+        var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
+        var mode = FS.getMode(canRead, canWrite);
+        return FS.create(path, mode);
+      },createDataFile:function (parent, name, data, canRead, canWrite, canOwn) {
+        var path = name ? PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name) : parent;
+        var mode = FS.getMode(canRead, canWrite);
+        var node = FS.create(path, mode);
+        if (data) {
+          if (typeof data === 'string') {
+            var arr = new Array(data.length);
+            for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
+            data = arr;
+          }
+          // make sure we can write to the file
+          FS.chmod(node, mode | 146);
+          var stream = FS.open(node, 'w');
+          FS.write(stream, data, 0, data.length, 0, canOwn);
+          FS.close(stream);
+          FS.chmod(node, mode);
+        }
+        return node;
+      },createDevice:function (parent, name, input, output) {
+        var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
+        var mode = FS.getMode(!!input, !!output);
+        if (!FS.createDevice.major) FS.createDevice.major = 64;
+        var dev = FS.makedev(FS.createDevice.major++, 0);
+        // Create a fake device that a set of stream ops to emulate
+        // the old behavior.
+        FS.registerDevice(dev, {
+          open: function(stream) {
+            stream.seekable = false;
+          },
+          close: function(stream) {
+            // flush any pending line data
+            if (output && output.buffer && output.buffer.length) {
+              output(10);
+            }
+          },
+          read: function(stream, buffer, offset, length, pos /* ignored */) {
+            var bytesRead = 0;
+            for (var i = 0; i < length; i++) {
+              var result;
+              try {
+                result = input();
+              } catch (e) {
+                throw new FS.ErrnoError(ERRNO_CODES.EIO);
+              }
+              if (result === undefined && bytesRead === 0) {
+                throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
+              }
+              if (result === null || result === undefined) break;
+              bytesRead++;
+              buffer[offset+i] = result;
+            }
+            if (bytesRead) {
+              stream.node.timestamp = Date.now();
+            }
+            return bytesRead;
+          },
+          write: function(stream, buffer, offset, length, pos) {
+            for (var i = 0; i < length; i++) {
+              try {
+                output(buffer[offset+i]);
+              } catch (e) {
+                throw new FS.ErrnoError(ERRNO_CODES.EIO);
+              }
+            }
+            if (length) {
+              stream.node.timestamp = Date.now();
+            }
+            return i;
+          }
+        });
+        return FS.mkdev(path, mode, dev);
+      },createLink:function (parent, name, target, canRead, canWrite) {
+        var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
+        return FS.symlink(target, path);
+      },forceLoadFile:function (obj) {
+        if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
+        var success = true;
+        if (typeof XMLHttpRequest !== 'undefined') {
+          throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
+        } else if (Module['read']) {
+          // Command-line.
+          try {
+            // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as
+            //          read() will try to parse UTF8.
+            obj.contents = intArrayFromString(Module['read'](obj.url), true);
+          } catch (e) {
+            success = false;
+          }
+        } else {
+          throw new Error('Cannot load without read() or XMLHttpRequest.');
+        }
+        if (!success) ___setErrNo(ERRNO_CODES.EIO);
+        return success;
+      },createLazyFile:function (parent, name, url, canRead, canWrite) {
+        if (typeof XMLHttpRequest !== 'undefined') {
+          if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc';
+          // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
+          function LazyUint8Array() {
+            this.lengthKnown = false;
+            this.chunks = []; // Loaded chunks. Index is the chunk number
+          }
+          LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) {
+            if (idx > this.length-1 || idx < 0) {
+              return undefined;
+            }
+            var chunkOffset = idx % this.chunkSize;
+            var chunkNum = Math.floor(idx / this.chunkSize);
+            return this.getter(chunkNum)[chunkOffset];
+          }
+          LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) {
+            this.getter = getter;
+          }
+          LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() {
+              // Find length
+              var xhr = new XMLHttpRequest();
+              xhr.open('HEAD', url, false);
+              xhr.send(null);
+              if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
+              var datalength = Number(xhr.getResponseHeader("Content-length"));
+              var header;
+              var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
+              var chunkSize = 1024*1024; // Chunk size in bytes
+  
+              if (!hasByteServing) chunkSize = datalength;
+  
+              // Function to get a range from the remote URL.
+              var doXHR = (function(from, to) {
+                if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!");
+                if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!");
+  
+                // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
+                var xhr = new XMLHttpRequest();
+                xhr.open('GET', url, false);
+                if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to);
+  
+                // Some hints to the browser that we want binary data.
+                if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer';
+                if (xhr.overrideMimeType) {
+                  xhr.overrideMimeType('text/plain; charset=x-user-defined');
+                }
+  
+                xhr.send(null);
+                if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
+                if (xhr.response !== undefined) {
+                  return new Uint8Array(xhr.response || []);
+                } else {
+                  return intArrayFromString(xhr.responseText || '', true);
+                }
+              });
+              var lazyArray = this;
+              lazyArray.setDataGetter(function(chunkNum) {
+                var start = chunkNum * chunkSize;
+                var end = (chunkNum+1) * chunkSize - 1; // including this byte
+                end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block
+                if (typeof(lazyArray.chunks[chunkNum]) === "undefined") {
+                  lazyArray.chunks[chunkNum] = doXHR(start, end);
+                }
+                if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!");
+                return lazyArray.chunks[chunkNum];
+              });
+  
+              this._length = datalength;
+              this._chunkSize = chunkSize;
+              this.lengthKnown = true;
+          }
+  
+          var lazyArray = new LazyUint8Array();
+          Object.defineProperty(lazyArray, "length", {
+              get: function() {
+                  if(!this.lengthKnown) {
+                      this.cacheLength();
+                  }
+                  return this._length;
+              }
+          });
+          Object.defineProperty(lazyArray, "chunkSize", {
+              get: function() {
+                  if(!this.lengthKnown) {
+                      this.cacheLength();
+                  }
+                  return this._chunkSize;
+              }
+          });
+  
+          var properties = { isDevice: false, contents: lazyArray };
+        } else {
+          var properties = { isDevice: false, url: url };
+        }
+  
+        var node = FS.createFile(parent, name, properties, canRead, canWrite);
+        // This is a total hack, but I want to get this lazy file code out of the
+        // core of MEMFS. If we want to keep this lazy file concept I feel it should
+        // be its own thin LAZYFS proxying calls to MEMFS.
+        if (properties.contents) {
+          node.contents = properties.contents;
+        } else if (properties.url) {
+          node.contents = null;
+          node.url = properties.url;
+        }
+        // override each stream op with one that tries to force load the lazy file first
+        var stream_ops = {};
+        var keys = Object.keys(node.stream_ops);
+        keys.forEach(function(key) {
+          var fn = node.stream_ops[key];
+          stream_ops[key] = function forceLoadLazyFile() {
+            if (!FS.forceLoadFile(node)) {
+              throw new FS.ErrnoError(ERRNO_CODES.EIO);
+            }
+            return fn.apply(null, arguments);
+          };
+        });
+        // use a custom read function
+        stream_ops.read = function stream_ops_read(stream, buffer, offset, length, position) {
+          if (!FS.forceLoadFile(node)) {
+            throw new FS.ErrnoError(ERRNO_CODES.EIO);
+          }
+          var contents = stream.node.contents;
+          if (position >= contents.length)
+            return 0;
+          var size = Math.min(contents.length - position, length);
+          assert(size >= 0);
+          if (contents.slice) { // normal array
+            for (var i = 0; i < size; i++) {
+              buffer[offset + i] = contents[position + i];
+            }
+          } else {
+            for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR
+              buffer[offset + i] = contents.get(position + i);
+            }
+          }
+          return size;
+        };
+        node.stream_ops = stream_ops;
+        return node;
+      },createPreloadedFile:function (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn) {
+        Browser.init();
+        // TODO we should allow people to just pass in a complete filename instead
+        // of parent and name being that we just join them anyways
+        var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
+        function processData(byteArray) {
+          function finish(byteArray) {
+            if (!dontCreateFile) {
+              FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
+            }
+            if (onload) onload();
+            removeRunDependency('cp ' + fullname);
+          }
+          var handled = false;
+          Module['preloadPlugins'].forEach(function(plugin) {
+            if (handled) return;
+            if (plugin['canHandle'](fullname)) {
+              plugin['handle'](byteArray, fullname, finish, function() {
+                if (onerror) onerror();
+                removeRunDependency('cp ' + fullname);
+              });
+              handled = true;
+            }
+          });
+          if (!handled) finish(byteArray);
+        }
+        addRunDependency('cp ' + fullname);
+        if (typeof url == 'string') {
+          Browser.asyncLoad(url, function(byteArray) {
+            processData(byteArray);
+          }, onerror);
+        } else {
+          processData(url);
+        }
+      },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 (paths, onload, onerror) {
+        onload = onload || function(){};
+        onerror = onerror || function(){};
+        var indexedDB = FS.indexedDB();
+        try {
+          var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
+        } catch (e) {
+          return onerror(e);
+        }
+        openRequest.onupgradeneeded = function openRequest_onupgradeneeded() {
+          console.log('creating db');
+          var db = openRequest.result;
+          db.createObjectStore(FS.DB_STORE_NAME);
+        };
+        openRequest.onsuccess = function openRequest_onsuccess() {
+          var db = openRequest.result;
+          var transaction = db.transaction([FS.DB_STORE_NAME], 'readwrite');
+          var files = transaction.objectStore(FS.DB_STORE_NAME);
+          var ok = 0, fail = 0, total = paths.length;
+          function finish() {
+            if (fail == 0) onload(); else onerror();
+          }
+          paths.forEach(function(path) {
+            var putRequest = files.put(FS.analyzePath(path).object.contents, path);
+            putRequest.onsuccess = function putRequest_onsuccess() { ok++; if (ok + fail == total) finish() };
+            putRequest.onerror = function putRequest_onerror() { fail++; if (ok + fail == total) finish() };
+          });
+          transaction.onerror = onerror;
+        };
+        openRequest.onerror = onerror;
+      },loadFilesFromDB:function (paths, onload, onerror) {
+        onload = onload || function(){};
+        onerror = onerror || function(){};
+        var indexedDB = FS.indexedDB();
+        try {
+          var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
+        } catch (e) {
+          return onerror(e);
+        }
+        openRequest.onupgradeneeded = onerror; // no database to load from
+        openRequest.onsuccess = function openRequest_onsuccess() {
+          var db = openRequest.result;
+          try {
+            var transaction = db.transaction([FS.DB_STORE_NAME], 'readonly');
+          } catch(e) {
+            onerror(e);
+            return;
+          }
+          var files = transaction.objectStore(FS.DB_STORE_NAME);
+          var ok = 0, fail = 0, total = paths.length;
+          function finish() {
+            if (fail == 0) onload(); else onerror();
+          }
+          paths.forEach(function(path) {
+            var getRequest = files.get(path);
+            getRequest.onsuccess = function getRequest_onsuccess() {
+              if (FS.analyzePath(path).exists) {
+                FS.unlink(path);
+              }
+              FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true);
+              ok++;
+              if (ok + fail == total) finish();
+            };
+            getRequest.onerror = function getRequest_onerror() { fail++; if (ok + fail == total) finish() };
+          });
+          transaction.onerror = onerror;
+        };
+        openRequest.onerror = onerror;
+      }};
+  
+  
+  
+  
+  function _mkport() { throw 'TODO' }var SOCKFS={mount:function (mount) {
+        return FS.createNode(null, '/', 16384 | 511 /* 0777 */, 0);
+      },createSocket:function (family, type, protocol) {
+        var streaming = type == 1;
+        if (protocol) {
+          assert(streaming == (protocol == 6)); // if SOCK_STREAM, must be tcp
+        }
+  
+        // create our internal socket structure
+        var sock = {
+          family: family,
+          type: type,
+          protocol: protocol,
+          server: null,
+          peers: {},
+          pending: [],
+          recv_queue: [],
+          sock_ops: SOCKFS.websocket_sock_ops
+        };
+  
+        // create the filesystem node to store the socket structure
+        var name = SOCKFS.nextname();
+        var node = FS.createNode(SOCKFS.root, name, 49152, 0);
+        node.sock = sock;
+  
+        // and the wrapping stream that enables library functions such
+        // as read and write to indirectly interact with the socket
+        var stream = FS.createStream({
+          path: name,
+          node: node,
+          flags: FS.modeStringToFlags('r+'),
+          seekable: false,
+          stream_ops: SOCKFS.stream_ops
+        });
+  
+        // map the new stream to the socket structure (sockets have a 1:1
+        // relationship with a stream)
+        sock.stream = stream;
+  
+        return sock;
+      },getSocket:function (fd) {
+        var stream = FS.getStream(fd);
+        if (!stream || !FS.isSocket(stream.node.mode)) {
+          return null;
+        }
+        return stream.node.sock;
+      },stream_ops:{poll:function (stream) {
+          var sock = stream.node.sock;
+          return sock.sock_ops.poll(sock);
+        },ioctl:function (stream, request, varargs) {
+          var sock = stream.node.sock;
+          return sock.sock_ops.ioctl(sock, request, varargs);
+        },read:function (stream, buffer, offset, length, position /* ignored */) {
+          var sock = stream.node.sock;
+          var msg = sock.sock_ops.recvmsg(sock, length);
+          if (!msg) {
+            // socket is closed
+            return 0;
+          }
+          buffer.set(msg.buffer, offset);
+          return msg.buffer.length;
+        },write:function (stream, buffer, offset, length, position /* ignored */) {
+          var sock = stream.node.sock;
+          return sock.sock_ops.sendmsg(sock, buffer, offset, length);
+        },close:function (stream) {
+          var sock = stream.node.sock;
+          sock.sock_ops.close(sock);
+        }},nextname:function () {
+        if (!SOCKFS.nextname.current) {
+          SOCKFS.nextname.current = 0;
+        }
+        return 'socket[' + (SOCKFS.nextname.current++) + ']';
+      },websocket_sock_ops:{createPeer:function (sock, addr, port) {
+          var ws;
+  
+          if (typeof addr === 'object') {
+            ws = addr;
+            addr = null;
+            port = null;
+          }
+  
+          if (ws) {
+            // for sockets that've already connected (e.g. we're the server)
+            // we can inspect the _socket property for the address
+            if (ws._socket) {
+              addr = ws._socket.remoteAddress;
+              port = ws._socket.remotePort;
+            }
+            // if we're just now initializing a connection to the remote,
+            // inspect the url property
+            else {
+              var result = /ws[s]?:\/\/([^:]+):(\d+)/.exec(ws.url);
+              if (!result) {
+                throw new Error('WebSocket URL must be in the format ws(s)://address:port');
+              }
+              addr = result[1];
+              port = parseInt(result[2], 10);
+            }
+          } else {
+            // create the actual websocket object and connect
+            try {
+              var url = 'ws://' + addr + ':' + port;
+              // the node ws library API is slightly different than the browser's
+              var opts = ENVIRONMENT_IS_NODE ? {headers: {'websocket-protocol': ['binary']}} : ['binary'];
+              // If node we use the ws library.
+              var WebSocket = ENVIRONMENT_IS_NODE ? require('ws') : window['WebSocket'];
+              ws = new WebSocket(url, opts);
+              ws.binaryType = 'arraybuffer';
+            } catch (e) {
+              throw new FS.ErrnoError(ERRNO_CODES.EHOSTUNREACH);
+            }
+          }
+  
+  
+          var peer = {
+            addr: addr,
+            port: port,
+            socket: ws,
+            dgram_send_queue: []
+          };
+  
+          SOCKFS.websocket_sock_ops.addPeer(sock, peer);
+          SOCKFS.websocket_sock_ops.handlePeerEvents(sock, peer);
+  
+          // if this is a bound dgram socket, send the port number first to allow
+          // us to override the ephemeral port reported to us by remotePort on the
+          // remote end.
+          if (sock.type === 2 && typeof sock.sport !== 'undefined') {
+            peer.dgram_send_queue.push(new Uint8Array([
+                255, 255, 255, 255,
+                'p'.charCodeAt(0), 'o'.charCodeAt(0), 'r'.charCodeAt(0), 't'.charCodeAt(0),
+                ((sock.sport & 0xff00) >> 8) , (sock.sport & 0xff)
+            ]));
+          }
+  
+          return peer;
+        },getPeer:function (sock, addr, port) {
+          return sock.peers[addr + ':' + port];
+        },addPeer:function (sock, peer) {
+          sock.peers[peer.addr + ':' + peer.port] = peer;
+        },removePeer:function (sock, peer) {
+          delete sock.peers[peer.addr + ':' + peer.port];
+        },handlePeerEvents:function (sock, peer) {
+          var first = true;
+  
+          var handleOpen = function () {
+            try {
+              var queued = peer.dgram_send_queue.shift();
+              while (queued) {
+                peer.socket.send(queued);
+                queued = peer.dgram_send_queue.shift();
+              }
+            } catch (e) {
+              // not much we can do here in the way of proper error handling as we've already
+              // lied and said this data was sent. shut it down.
+              peer.socket.close();
+            }
+          };
+  
+          function handleMessage(data) {
+            assert(typeof data !== 'string' && data.byteLength !== undefined);  // must receive an ArrayBuffer
+            data = new Uint8Array(data);  // make a typed array view on the array buffer
+  
+  
+            // if this is the port message, override the peer's port with it
+            var wasfirst = first;
+            first = false;
+            if (wasfirst &&
+                data.length === 10 &&
+                data[0] === 255 && data[1] === 255 && data[2] === 255 && data[3] === 255 &&
+                data[4] === 'p'.charCodeAt(0) && data[5] === 'o'.charCodeAt(0) && data[6] === 'r'.charCodeAt(0) && data[7] === 't'.charCodeAt(0)) {
+              // update the peer's port and it's key in the peer map
+              var newport = ((data[8] << 8) | data[9]);
+              SOCKFS.websocket_sock_ops.removePeer(sock, peer);
+              peer.port = newport;
+              SOCKFS.websocket_sock_ops.addPeer(sock, peer);
+              return;
+            }
+  
+            sock.recv_queue.push({ addr: peer.addr, port: peer.port, data: data });
+          };
+  
+          if (ENVIRONMENT_IS_NODE) {
+            peer.socket.on('open', handleOpen);
+            peer.socket.on('message', function(data, flags) {
+              if (!flags.binary) {
+                return;
+              }
+              handleMessage((new Uint8Array(data)).buffer);  // copy from node Buffer -> ArrayBuffer
+            });
+            peer.socket.on('error', function() {
+              // don't throw
+            });
+          } else {
+            peer.socket.onopen = handleOpen;
+            peer.socket.onmessage = function peer_socket_onmessage(event) {
+              handleMessage(event.data);
+            };
+          }
+        },poll:function (sock) {
+          if (sock.type === 1 && sock.server) {
+            // listen sockets should only say they're available for reading
+            // if there are pending clients.
+            return sock.pending.length ? (64 | 1) : 0;
+          }
+  
+          var mask = 0;
+          var dest = sock.type === 1 ?  // we only care about the socket state for connection-based sockets
+            SOCKFS.websocket_sock_ops.getPeer(sock, sock.daddr, sock.dport) :
+            null;
+  
+          if (sock.recv_queue.length ||
+              !dest ||  // connection-less sockets are always ready to read
+              (dest && dest.socket.readyState === dest.socket.CLOSING) ||
+              (dest && dest.socket.readyState === dest.socket.CLOSED)) {  // let recv return 0 once closed
+            mask |= (64 | 1);
+          }
+  
+          if (!dest ||  // connection-less sockets are always ready to write
+              (dest && dest.socket.readyState === dest.socket.OPEN)) {
+            mask |= 4;
+          }
+  
+          if ((dest && dest.socket.readyState === dest.socket.CLOSING) ||
+              (dest && dest.socket.readyState === dest.socket.CLOSED)) {
+            mask |= 16;
+          }
+  
+          return mask;
+        },ioctl:function (sock, request, arg) {
+          switch (request) {
+            case 21531:
+              var bytes = 0;
+              if (sock.recv_queue.length) {
+                bytes = sock.recv_queue[0].data.length;
+              }
+              HEAP32[((arg)>>2)]=bytes;
+              return 0;
+            default:
+              return ERRNO_CODES.EINVAL;
+          }
+        },close:function (sock) {
+          // if we've spawned a listen server, close it
+          if (sock.server) {
+            try {
+              sock.server.close();
+            } catch (e) {
+            }
+            sock.server = null;
+          }
+          // close any peer connections
+          var peers = Object.keys(sock.peers);
+          for (var i = 0; i < peers.length; i++) {
+            var peer = sock.peers[peers[i]];
+            try {
+              peer.socket.close();
+            } catch (e) {
+            }
+            SOCKFS.websocket_sock_ops.removePeer(sock, peer);
+          }
+          return 0;
+        },bind:function (sock, addr, port) {
+          if (typeof sock.saddr !== 'undefined' || typeof sock.sport !== 'undefined') {
+            throw new FS.ErrnoError(ERRNO_CODES.EINVAL);  // already bound
+          }
+          sock.saddr = addr;
+          sock.sport = port || _mkport();
+          // in order to emulate dgram sockets, we need to launch a listen server when
+          // binding on a connection-less socket
+          // note: this is only required on the server side
+          if (sock.type === 2) {
+            // close the existing server if it exists
+            if (sock.server) {
+              sock.server.close();
+              sock.server = null;
+            }
+            // swallow error operation not supported error that occurs when binding in the
+            // browser where this isn't supported
+            try {
+              sock.sock_ops.listen(sock, 0);
+            } catch (e) {
+              if (!(e instanceof FS.ErrnoError)) throw e;
+              if (e.errno !== ERRNO_CODES.EOPNOTSUPP) throw e;
+            }
+          }
+        },connect:function (sock, addr, port) {
+          if (sock.server) {
+            throw new FS.ErrnoError(ERRNO_CODS.EOPNOTSUPP);
+          }
+  
+          // TODO autobind
+          // if (!sock.addr && sock.type == 2) {
+          // }
+  
+          // early out if we're already connected / in the middle of connecting
+          if (typeof sock.daddr !== 'undefined' && typeof sock.dport !== 'undefined') {
+            var dest = SOCKFS.websocket_sock_ops.getPeer(sock, sock.daddr, sock.dport);
+            if (dest) {
+              if (dest.socket.readyState === dest.socket.CONNECTING) {
+                throw new FS.ErrnoError(ERRNO_CODES.EALREADY);
+              } else {
+                throw new FS.ErrnoError(ERRNO_CODES.EISCONN);
+              }
+            }
+          }
+  
+          // add the socket to our peer list and set our
+          // destination address / port to match
+          var peer = SOCKFS.websocket_sock_ops.createPeer(sock, addr, port);
+          sock.daddr = peer.addr;
+          sock.dport = peer.port;
+  
+          // always "fail" in non-blocking mode
+          throw new FS.ErrnoError(ERRNO_CODES.EINPROGRESS);
+        },listen:function (sock, backlog) {
+          if (!ENVIRONMENT_IS_NODE) {
+            throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
+          }
+          if (sock.server) {
+             throw new FS.ErrnoError(ERRNO_CODES.EINVAL);  // already listening
+          }
+          var WebSocketServer = require('ws').Server;
+          var host = sock.saddr;
+          sock.server = new WebSocketServer({
+            host: host,
+            port: sock.sport
+            // TODO support backlog
+          });
+  
+          sock.server.on('connection', function(ws) {
+            if (sock.type === 1) {
+              var newsock = SOCKFS.createSocket(sock.family, sock.type, sock.protocol);
+  
+              // create a peer on the new socket
+              var peer = SOCKFS.websocket_sock_ops.createPeer(newsock, ws);
+              newsock.daddr = peer.addr;
+              newsock.dport = peer.port;
+  
+              // push to queue for accept to pick up
+              sock.pending.push(newsock);
+            } else {
+              // create a peer on the listen socket so calling sendto
+              // with the listen socket and an address will resolve
+              // to the correct client
+              SOCKFS.websocket_sock_ops.createPeer(sock, ws);
+            }
+          });
+          sock.server.on('closed', function() {
+            sock.server = null;
+          });
+          sock.server.on('error', function() {
+            // don't throw
+          });
+        },accept:function (listensock) {
+          if (!listensock.server) {
+            throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+          }
+          var newsock = listensock.pending.shift();
+          newsock.stream.flags = listensock.stream.flags;
+          return newsock;
+        },getname:function (sock, peer) {
+          var addr, port;
+          if (peer) {
+            if (sock.daddr === undefined || sock.dport === undefined) {
+              throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN);
+            }
+            addr = sock.daddr;
+            port = sock.dport;
+          } else {
+            // TODO saddr and sport will be set for bind()'d UDP sockets, but what
+            // should we be returning for TCP sockets that've been connect()'d?
+            addr = sock.saddr || 0;
+            port = sock.sport || 0;
+          }
+          return { addr: addr, port: port };
+        },sendmsg:function (sock, buffer, offset, length, addr, port) {
+          if (sock.type === 2) {
+            // connection-less sockets will honor the message address,
+            // and otherwise fall back to the bound destination address
+            if (addr === undefined || port === undefined) {
+              addr = sock.daddr;
+              port = sock.dport;
+            }
+            // if there was no address to fall back to, error out
+            if (addr === undefined || port === undefined) {
+              throw new FS.ErrnoError(ERRNO_CODES.EDESTADDRREQ);
+            }
+          } else {
+            // connection-based sockets will only use the bound
+            addr = sock.daddr;
+            port = sock.dport;
+          }
+  
+          // find the peer for the destination address
+          var dest = SOCKFS.websocket_sock_ops.getPeer(sock, addr, port);
+  
+          // early out if not connected with a connection-based socket
+          if (sock.type === 1) {
+            if (!dest || dest.socket.readyState === dest.socket.CLOSING || dest.socket.readyState === dest.socket.CLOSED) {
+              throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN);
+            } else if (dest.socket.readyState === dest.socket.CONNECTING) {
+              throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
+            }
+          }
+  
+          // create a copy of the incoming data to send, as the WebSocket API
+          // doesn't work entirely with an ArrayBufferView, it'll just send
+          // the entire underlying buffer
+          var data;
+          if (buffer instanceof Array || buffer instanceof ArrayBuffer) {
+            data = buffer.slice(offset, offset + length);
+          } else {  // ArrayBufferView
+            data = buffer.buffer.slice(buffer.byteOffset + offset, buffer.byteOffset + offset + length);
+          }
+  
+          // if we're emulating a connection-less dgram socket and don't have
+          // a cached connection, queue the buffer to send upon connect and
+          // lie, saying the data was sent now.
+          if (sock.type === 2) {
+            if (!dest || dest.socket.readyState !== dest.socket.OPEN) {
+              // if we're not connected, open a new connection
+              if (!dest || dest.socket.readyState === dest.socket.CLOSING || dest.socket.readyState === dest.socket.CLOSED) {
+                dest = SOCKFS.websocket_sock_ops.createPeer(sock, addr, port);
+              }
+              dest.dgram_send_queue.push(data);
+              return length;
+            }
+          }
+  
+          try {
+            // send the actual data
+            dest.socket.send(data);
+            return length;
+          } catch (e) {
+            throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
+          }
+        },recvmsg:function (sock, length) {
+          // http://pubs.opengroup.org/onlinepubs/7908799/xns/recvmsg.html
+          if (sock.type === 1 && sock.server) {
+            // tcp servers should not be recv()'ing on the listen socket
+            throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN);
+          }
+  
+          var queued = sock.recv_queue.shift();
+          if (!queued) {
+            if (sock.type === 1) {
+              var dest = SOCKFS.websocket_sock_ops.getPeer(sock, sock.daddr, sock.dport);
+  
+              if (!dest) {
+                // if we have a destination address but are not connected, error out
+                throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN);
+              }
+              else if (dest.socket.readyState === dest.socket.CLOSING || dest.socket.readyState === dest.socket.CLOSED) {
+                // return null if the socket has closed
+                return null;
+              }
+              else {
+                // else, our socket is in a valid state but truly has nothing available
+                throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
+              }
+            } else {
+              throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
+            }
+          }
+  
+          // queued.data will be an ArrayBuffer if it's unadulterated, but if it's
+          // requeued TCP data it'll be an ArrayBufferView
+          var queuedLength = queued.data.byteLength || queued.data.length;
+          var queuedOffset = queued.data.byteOffset || 0;
+          var queuedBuffer = queued.data.buffer || queued.data;
+          var bytesRead = Math.min(length, queuedLength);
+          var res = {
+            buffer: new Uint8Array(queuedBuffer, queuedOffset, bytesRead),
+            addr: queued.addr,
+            port: queued.port
+          };
+  
+  
+          // push back any unread data for TCP connections
+          if (sock.type === 1 && bytesRead < queuedLength) {
+            var bytesRemaining = queuedLength - bytesRead;
+            queued.data = new Uint8Array(queuedBuffer, queuedOffset + bytesRead, bytesRemaining);
+            sock.recv_queue.unshift(queued);
+          }
+  
+          return res;
+        }}};function _send(fd, buf, len, flags) {
+      var sock = SOCKFS.getSocket(fd);
+      if (!sock) {
+        ___setErrNo(ERRNO_CODES.EBADF);
+        return -1;
+      }
+      // TODO honor flags
+      return _write(fd, buf, len);
+    }
+  
+  function _pwrite(fildes, buf, nbyte, offset) {
+      // ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset);
+      // http://pubs.opengroup.org/onlinepubs/000095399/functions/write.html
+      var stream = FS.getStream(fildes);
+      if (!stream) {
+        ___setErrNo(ERRNO_CODES.EBADF);
+        return -1;
+      }
+      try {
+        var slab = HEAP8;
+        return FS.write(stream, slab, buf, nbyte, offset);
+      } catch (e) {
+        FS.handleFSError(e);
+        return -1;
+      }
+    }function _write(fildes, buf, nbyte) {
+      // ssize_t write(int fildes, const void *buf, size_t nbyte);
+      // http://pubs.opengroup.org/onlinepubs/000095399/functions/write.html
+      var stream = FS.getStream(fildes);
+      if (!stream) {
+        ___setErrNo(ERRNO_CODES.EBADF);
+        return -1;
+      }
+  
+  
+      try {
+        var slab = HEAP8;
+        return FS.write(stream, slab, buf, nbyte);
+      } catch (e) {
+        FS.handleFSError(e);
+        return -1;
+      }
+    }
+  
+  function _fileno(stream) {
+      // int fileno(FILE *stream);
+      // http://pubs.opengroup.org/onlinepubs/000095399/functions/fileno.html
+      stream = FS.getStreamFromPtr(stream);
+      if (!stream) return -1;
+      return stream.fd;
+    }function _fwrite(ptr, size, nitems, stream) {
+      // size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream);
+      // http://pubs.opengroup.org/onlinepubs/000095399/functions/fwrite.html
+      var bytesToWrite = nitems * size;
+      if (bytesToWrite == 0) return 0;
+      var fd = _fileno(stream);
+      var bytesWritten = _write(fd, ptr, bytesToWrite);
+      if (bytesWritten == -1) {
+        var streamObj = FS.getStreamFromPtr(stream);
+        if (streamObj) streamObj.error = true;
+        return 0;
+      } else {
+        return Math.floor(bytesWritten / size);
+      }
+    }
+  
+  
+   
+  Module["_strlen"] = _strlen;
+  
+  function __reallyNegative(x) {
+      return x < 0 || (x === 0 && (1/x) === -Infinity);
+    }function __formatString(format, varargs) {
+      var textIndex = format;
+      var argIndex = 0;
+      function getNextArg(type) {
+        // NOTE: Explicitly ignoring type safety. Otherwise this fails:
+        //       int x = 4; printf("%c\n", (char)x);
+        var ret;
+        if (type === 'double') {
+          ret = (HEAP32[((tempDoublePtr)>>2)]=HEAP32[(((varargs)+(argIndex))>>2)],HEAP32[(((tempDoublePtr)+(4))>>2)]=HEAP32[(((varargs)+((argIndex)+(4)))>>2)],(+(HEAPF64[(tempDoublePtr)>>3])));
+        } else if (type == 'i64') {
+          ret = [HEAP32[(((varargs)+(argIndex))>>2)],
+                 HEAP32[(((varargs)+(argIndex+4))>>2)]];
+  
+        } else {
+          type = 'i32'; // varargs are always i32, i64, or double
+          ret = HEAP32[(((varargs)+(argIndex))>>2)];
+        }
+        argIndex += Runtime.getNativeFieldSize(type);
+        return ret;
+      }
+  
+      var ret = [];
+      var curr, next, currArg;
+      while(1) {
+        var startTextIndex = textIndex;
+        curr = HEAP8[(textIndex)];
+        if (curr === 0) break;
+        next = HEAP8[((textIndex+1)|0)];
+        if (curr == 37) {
+          // Handle flags.
+          var flagAlwaysSigned = false;
+          var flagLeftAlign = false;
+          var flagAlternative = false;
+          var flagZeroPad = false;
+          var flagPadSign = false;
+          flagsLoop: while (1) {
+            switch (next) {
+              case 43:
+                flagAlwaysSigned = true;
+                break;
+              case 45:
+                flagLeftAlign = true;
+                break;
+              case 35:
+                flagAlternative = true;
+                break;
+              case 48:
+                if (flagZeroPad) {
+                  break flagsLoop;
+                } else {
+                  flagZeroPad = true;
+                  break;
+                }
+              case 32:
+                flagPadSign = true;
+                break;
+              default:
+                break flagsLoop;
+            }
+            textIndex++;
+            next = HEAP8[((textIndex+1)|0)];
+          }
+  
+          // Handle width.
+          var width = 0;
+          if (next == 42) {
+            width = getNextArg('i32');
+            textIndex++;
+            next = HEAP8[((textIndex+1)|0)];
+          } else {
+            while (next >= 48 && next <= 57) {
+              width = width * 10 + (next - 48);
+              textIndex++;
+              next = HEAP8[((textIndex+1)|0)];
+            }
+          }
+  
+          // Handle precision.
+          var precisionSet = false, precision = -1;
+          if (next == 46) {
+            precision = 0;
+            precisionSet = true;
+            textIndex++;
+            next = HEAP8[((textIndex+1)|0)];
+            if (next == 42) {
+              precision = getNextArg('i32');
+              textIndex++;
+            } else {
+              while(1) {
+                var precisionChr = HEAP8[((textIndex+1)|0)];
+                if (precisionChr < 48 ||
+                    precisionChr > 57) break;
+                precision = precision * 10 + (precisionChr - 48);
+                textIndex++;
+              }
+            }
+            next = HEAP8[((textIndex+1)|0)];
+          }
+          if (precision < 0) {
+            precision = 6; // Standard default.
+            precisionSet = false;
+          }
+  
+          // Handle integer sizes. WARNING: These assume a 32-bit architecture!
+          var argSize;
+          switch (String.fromCharCode(next)) {
+            case 'h':
+              var nextNext = HEAP8[((textIndex+2)|0)];
+              if (nextNext == 104) {
+                textIndex++;
+                argSize = 1; // char (actually i32 in varargs)
+              } else {
+                argSize = 2; // short (actually i32 in varargs)
+              }
+              break;
+            case 'l':
+              var nextNext = HEAP8[((textIndex+2)|0)];
+              if (nextNext == 108) {
+                textIndex++;
+                argSize = 8; // long long
+              } else {
+                argSize = 4; // long
+              }
+              break;
+            case 'L': // long long
+            case 'q': // int64_t
+            case 'j': // intmax_t
+              argSize = 8;
+              break;
+            case 'z': // size_t
+            case 't': // ptrdiff_t
+            case 'I': // signed ptrdiff_t or unsigned size_t
+              argSize = 4;
+              break;
+            default:
+              argSize = null;
+          }
+          if (argSize) textIndex++;
+          next = HEAP8[((textIndex+1)|0)];
+  
+          // Handle type specifier.
+          switch (String.fromCharCode(next)) {
+            case 'd': case 'i': case 'u': case 'o': case 'x': case 'X': case 'p': {
+              // Integer.
+              var signed = next == 100 || next == 105;
+              argSize = argSize || 4;
+              var currArg = getNextArg('i' + (argSize * 8));
+              var origArg = currArg;
+              var argText;
+              // Flatten i64-1 [low, high] into a (slightly rounded) double
+              if (argSize == 8) {
+                currArg = Runtime.makeBigInt(currArg[0], currArg[1], next == 117);
+              }
+              // Truncate to requested size.
+              if (argSize <= 4) {
+                var limit = Math.pow(256, argSize) - 1;
+                currArg = (signed ? reSign : unSign)(currArg & limit, argSize * 8);
+              }
+              // Format the number.
+              var currAbsArg = Math.abs(currArg);
+              var prefix = '';
+              if (next == 100 || next == 105) {
+                if (argSize == 8 && i64Math) argText = i64Math.stringify(origArg[0], origArg[1], null); else
+                argText = reSign(currArg, 8 * argSize, 1).toString(10);
+              } else if (next == 117) {
+                if (argSize == 8 && i64Math) argText = i64Math.stringify(origArg[0], origArg[1], true); else
+                argText = unSign(currArg, 8 * argSize, 1).toString(10);
+                currArg = Math.abs(currArg);
+              } else if (next == 111) {
+                argText = (flagAlternative ? '0' : '') + currAbsArg.toString(8);
+              } else if (next == 120 || next == 88) {
+                prefix = (flagAlternative && currArg != 0) ? '0x' : '';
+                if (argSize == 8 && i64Math) {
+                  if (origArg[1]) {
+                    argText = (origArg[1]>>>0).toString(16);
+                    var lower = (origArg[0]>>>0).toString(16);
+                    while (lower.length < 8) lower = '0' + lower;
+                    argText += lower;
+                  } else {
+                    argText = (origArg[0]>>>0).toString(16);
+                  }
+                } else
+                if (currArg < 0) {
+                  // Represent negative numbers in hex as 2's complement.
+                  currArg = -currArg;
+                  argText = (currAbsArg - 1).toString(16);
+                  var buffer = [];
+                  for (var i = 0; i < argText.length; i++) {
+                    buffer.push((0xF - parseInt(argText[i], 16)).toString(16));
+                  }
+                  argText = buffer.join('');
+                  while (argText.length < argSize * 2) argText = 'f' + argText;
+                } else {
+                  argText = currAbsArg.toString(16);
+                }
+                if (next == 88) {
+                  prefix = prefix.toUpperCase();
+                  argText = argText.toUpperCase();
+                }
+              } else if (next == 112) {
+                if (currAbsArg === 0) {
+                  argText = '(nil)';
+                } else {
+                  prefix = '0x';
+                  argText = currAbsArg.toString(16);
+                }
+              }
+              if (precisionSet) {
+                while (argText.length < precision) {
+                  argText = '0' + argText;
+                }
+              }
+  
+              // Add sign if needed
+              if (currArg >= 0) {
+                if (flagAlwaysSigned) {
+                  prefix = '+' + prefix;
+                } else if (flagPadSign) {
+                  prefix = ' ' + prefix;
+                }
+              }
+  
+              // Move sign to prefix so we zero-pad after the sign
+              if (argText.charAt(0) == '-') {
+                prefix = '-' + prefix;
+                argText = argText.substr(1);
+              }
+  
+              // Add padding.
+              while (prefix.length + argText.length < width) {
+                if (flagLeftAlign) {
+                  argText += ' ';
+                } else {
+                  if (flagZeroPad) {
+                    argText = '0' + argText;
+                  } else {
+                    prefix = ' ' + prefix;
+                  }
+                }
+              }
+  
+              // Insert the result into the buffer.
+              argText = prefix + argText;
+              argText.split('').forEach(function(chr) {
+                ret.push(chr.charCodeAt(0));
+              });
+              break;
+            }
+            case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': {
+              // Float.
+              var currArg = getNextArg('double');
+              var argText;
+              if (isNaN(currArg)) {
+                argText = 'nan';
+                flagZeroPad = false;
+              } else if (!isFinite(currArg)) {
+                argText = (currArg < 0 ? '-' : '') + 'inf';
+                flagZeroPad = false;
+              } else {
+                var isGeneral = false;
+                var effectivePrecision = Math.min(precision, 20);
+  
+                // Convert g/G to f/F or e/E, as per:
+                // http://pubs.opengroup.org/onlinepubs/9699919799/functions/printf.html
+                if (next == 103 || next == 71) {
+                  isGeneral = true;
+                  precision = precision || 1;
+                  var exponent = parseInt(currArg.toExponential(effectivePrecision).split('e')[1], 10);
+                  if (precision > exponent && exponent >= -4) {
+                    next = ((next == 103) ? 'f' : 'F').charCodeAt(0);
+                    precision -= exponent + 1;
+                  } else {
+                    next = ((next == 103) ? 'e' : 'E').charCodeAt(0);
+                    precision--;
+                  }
+                  effectivePrecision = Math.min(precision, 20);
+                }
+  
+                if (next == 101 || next == 69) {
+                  argText = currArg.toExponential(effectivePrecision);
+                  // Make sure the exponent has at least 2 digits.
+                  if (/[eE][-+]\d$/.test(argText)) {
+                    argText = argText.slice(0, -1) + '0' + argText.slice(-1);
+                  }
+                } else if (next == 102 || next == 70) {
+                  argText = currArg.toFixed(effectivePrecision);
+                  if (currArg === 0 && __reallyNegative(currArg)) {
+                    argText = '-' + argText;
+                  }
+                }
+  
+                var parts = argText.split('e');
+                if (isGeneral && !flagAlternative) {
+                  // Discard trailing zeros and periods.
+                  while (parts[0].length > 1 && parts[0].indexOf('.') != -1 &&
+                         (parts[0].slice(-1) == '0' || parts[0].slice(-1) == '.')) {
+                    parts[0] = parts[0].slice(0, -1);
+                  }
+                } else {
+                  // Make sure we have a period in alternative mode.
+                  if (flagAlternative && argText.indexOf('.') == -1) parts[0] += '.';
+                  // Zero pad until required precision.
+                  while (precision > effectivePrecision++) parts[0] += '0';
+                }
+                argText = parts[0] + (parts.length > 1 ? 'e' + parts[1] : '');
+  
+                // Capitalize 'E' if needed.
+                if (next == 69) argText = argText.toUpperCase();
+  
+                // Add sign.
+                if (currArg >= 0) {
+                  if (flagAlwaysSigned) {
+                    argText = '+' + argText;
+                  } else if (flagPadSign) {
+                    argText = ' ' + argText;
+                  }
+                }
+              }
+  
+              // Add padding.
+              while (argText.length < width) {
+                if (flagLeftAlign) {
+                  argText += ' ';
+                } else {
+                  if (flagZeroPad && (argText[0] == '-' || argText[0] == '+')) {
+                    argText = argText[0] + '0' + argText.slice(1);
+                  } else {
+                    argText = (flagZeroPad ? '0' : ' ') + argText;
+                  }
+                }
+              }
+  
+              // Adjust case.
+              if (next < 97) argText = argText.toUpperCase();
+  
+              // Insert the result into the buffer.
+              argText.split('').forEach(function(chr) {
+                ret.push(chr.charCodeAt(0));
+              });
+              break;
+            }
+            case 's': {
+              // String.
+              var arg = getNextArg('i8*');
+              var argLength = arg ? _strlen(arg) : '(null)'.length;
+              if (precisionSet) argLength = Math.min(argLength, precision);
+              if (!flagLeftAlign) {
+                while (argLength < width--) {
+                  ret.push(32);
+                }
+              }
+              if (arg) {
+                for (var i = 0; i < argLength; i++) {
+                  ret.push(HEAPU8[((arg++)|0)]);
+                }
+              } else {
+                ret = ret.concat(intArrayFromString('(null)'.substr(0, argLength), true));
+              }
+              if (flagLeftAlign) {
+                while (argLength < width--) {
+                  ret.push(32);
+                }
+              }
+              break;
+            }
+            case 'c': {
+              // Character.
+              if (flagLeftAlign) ret.push(getNextArg('i8'));
+              while (--width > 0) {
+                ret.push(32);
+              }
+              if (!flagLeftAlign) ret.push(getNextArg('i8'));
+              break;
+            }
+            case 'n': {
+              // Write the length written so far to the next parameter.
+              var ptr = getNextArg('i32*');
+              HEAP32[((ptr)>>2)]=ret.length;
+              break;
+            }
+            case '%': {
+              // Literal percent sign.
+              ret.push(curr);
+              break;
+            }
+            default: {
+              // Unknown specifiers remain untouched.
+              for (var i = startTextIndex; i < textIndex + 2; i++) {
+                ret.push(HEAP8[(i)]);
+              }
+            }
+          }
+          textIndex += 2;
+          // TODO: Support a/A (hex float) and m (last error) specifiers.
+          // TODO: Support %1${specifier} for arg selection.
+        } else {
+          ret.push(curr);
+          textIndex += 1;
+        }
+      }
+      return ret;
+    }function _fprintf(stream, format, varargs) {
+      // int fprintf(FILE *restrict stream, const char *restrict format, ...);
+      // http://pubs.opengroup.org/onlinepubs/000095399/functions/printf.html
+      var result = __formatString(format, varargs);
+      var stack = Runtime.stackSave();
+      var ret = _fwrite(allocate(result, 'i8', ALLOC_STACK), 1, result.length, stream);
+      Runtime.stackRestore(stack);
+      return ret;
+    }
+
+
+  
+  function _emscripten_memcpy_big(dest, src, num) {
+      HEAPU8.set(HEAPU8.subarray(src, src+num), dest);
+      return dest;
+    } 
+  Module["_memcpy"] = _memcpy;
+
+  function _sbrk(bytes) {
+      // Implement a Linux-like 'memory area' for our 'process'.
+      // Changes the size of the memory area by |bytes|; returns the
+      // address of the previous top ('break') of the memory area
+      // We control the "dynamic" memory - DYNAMIC_BASE to DYNAMICTOP
+      var self = _sbrk;
+      if (!self.called) {
+        DYNAMICTOP = alignMemoryPage(DYNAMICTOP); // make sure we start out aligned
+        self.called = true;
+        assert(Runtime.dynamicAlloc);
+        self.alloc = Runtime.dynamicAlloc;
+        Runtime.dynamicAlloc = function() { abort('cannot dynamically allocate, sbrk now has control') };
+      }
+      var ret = DYNAMICTOP;
+      if (bytes != 0) self.alloc(bytes);
+      return ret;  // Previous break location.
+    }
+
+  function ___errno_location() {
+      return ___errno_state;
+    }
+
+  function _llvm_lifetime_start() {}
+
+  var _llvm_memcpy_p0i8_p0i8_i32=_memcpy;
+
+  var Browser={mainLoop:{scheduler:null,method:"",shouldPause:false,paused:false,queue:[],pause:function () {
+          Browser.mainLoop.shouldPause = true;
+        },resume:function () {
+          if (Browser.mainLoop.paused) {
+            Browser.mainLoop.paused = false;
+            Browser.mainLoop.scheduler();
+          }
+          Browser.mainLoop.shouldPause = false;
+        },updateStatus:function () {
+          if (Module['setStatus']) {
+            var message = Module['statusMessage'] || 'Please wait...';
+            var remaining = Browser.mainLoop.remainingBlockers;
+            var expected = Browser.mainLoop.expectedBlockers;
+            if (remaining) {
+              if (remaining < expected) {
+                Module['setStatus'](message + ' (' + (expected - remaining) + '/' + expected + ')');
+              } else {
+                Module['setStatus'](message);
+              }
+            } else {
+              Module['setStatus']('');
+            }
+          }
+        }},isFullScreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function () {
+        if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; // needs to exist even in workers
+  
+        if (Browser.initted || ENVIRONMENT_IS_WORKER) return;
+        Browser.initted = true;
+  
+        try {
+          new Blob();
+          Browser.hasBlobConstructor = true;
+        } catch(e) {
+          Browser.hasBlobConstructor = false;
+          console.log("warning: no blob constructor, cannot create blobs with mimetypes");
+        }
+        Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : (typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : (!Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null));
+        Browser.URLObject = typeof window != "undefined" ? (window.URL ? window.URL : window.webkitURL) : undefined;
+        if (!Module.noImageDecoding && typeof Browser.URLObject === 'undefined') {
+          console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");
+          Module.noImageDecoding = true;
+        }
+  
+        // Support for plugins that can process preloaded files. You can add more of these to
+        // your app by creating and appending to Module.preloadPlugins.
+        //
+        // Each plugin is asked if it can handle a file based on the file's name. If it can,
+        // it is given the file's raw data. When it is done, it calls a callback with the file's
+        // (possibly modified) data. For example, a plugin might decompress a file, or it
+        // might create some side data structure for use later (like an Image element, etc.).
+  
+        var imagePlugin = {};
+        imagePlugin['canHandle'] = function imagePlugin_canHandle(name) {
+          return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name);
+        };
+        imagePlugin['handle'] = function imagePlugin_handle(byteArray, name, onload, onerror) {
+          var b = null;
+          if (Browser.hasBlobConstructor) {
+            try {
+              b = new Blob([byteArray], { type: Browser.getMimetype(name) });
+              if (b.size !== byteArray.length) { // Safari bug #118630
+                // Safari's Blob can only take an ArrayBuffer
+                b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) });
+              }
+            } catch(e) {
+              Runtime.warnOnce('Blob constructor present but fails: ' + e + '; falling back to blob builder');
+            }
+          }
+          if (!b) {
+            var bb = new Browser.BlobBuilder();
+            bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
+            b = bb.getBlob();
+          }
+          var url = Browser.URLObject.createObjectURL(b);
+          var img = new Image();
+          img.onload = function img_onload() {
+            assert(img.complete, 'Image ' + name + ' could not be decoded');
+            var canvas = document.createElement('canvas');
+            canvas.width = img.width;
+            canvas.height = img.height;
+            var ctx = canvas.getContext('2d');
+            ctx.drawImage(img, 0, 0);
+            Module["preloadedImages"][name] = canvas;
+            Browser.URLObject.revokeObjectURL(url);
+            if (onload) onload(byteArray);
+          };
+          img.onerror = function img_onerror(event) {
+            console.log('Image ' + url + ' could not be decoded');
+            if (onerror) onerror();
+          };
+          img.src = url;
+        };
+        Module['preloadPlugins'].push(imagePlugin);
+  
+        var audioPlugin = {};
+        audioPlugin['canHandle'] = function audioPlugin_canHandle(name) {
+          return !Module.noAudioDecoding && name.substr(-4) in { '.ogg': 1, '.wav': 1, '.mp3': 1 };
+        };
+        audioPlugin['handle'] = function audioPlugin_handle(byteArray, name, onload, onerror) {
+          var done = false;
+          function finish(audio) {
+            if (done) return;
+            done = true;
+            Module["preloadedAudios"][name] = audio;
+            if (onload) onload(byteArray);
+          }
+          function fail() {
+            if (done) return;
+            done = true;
+            Module["preloadedAudios"][name] = new Audio(); // empty shim
+            if (onerror) onerror();
+          }
+          if (Browser.hasBlobConstructor) {
+            try {
+              var b = new Blob([byteArray], { type: Browser.getMimetype(name) });
+            } catch(e) {
+              return fail();
+            }
+            var url = Browser.URLObject.createObjectURL(b); // XXX we never revoke this!
+            var audio = new Audio();
+            audio.addEventListener('canplaythrough', function() { finish(audio) }, false); // use addEventListener due to chromium bug 124926
+            audio.onerror = function audio_onerror(event) {
+              if (done) return;
+              console.log('warning: browser could not fully decode audio ' + name + ', trying slower base64 approach');
+              function encode64(data) {
+                var BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
+                var PAD = '=';
+                var ret = '';
+                var leftchar = 0;
+                var leftbits = 0;
+                for (var i = 0; i < data.length; i++) {
+                  leftchar = (leftchar << 8) | data[i];
+                  leftbits += 8;
+                  while (leftbits >= 6) {
+                    var curr = (leftchar >> (leftbits-6)) & 0x3f;
+                    leftbits -= 6;
+                    ret += BASE[curr];
+                  }
+                }
+                if (leftbits == 2) {
+                  ret += BASE[(leftchar&3) << 4];
+                  ret += PAD + PAD;
+                } else if (leftbits == 4) {
+                  ret += BASE[(leftchar&0xf) << 2];
+                  ret += PAD;
+                }
+                return ret;
+              }
+              audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray);
+              finish(audio); // we don't wait for confirmation this worked - but it's worth trying
+            };
+            audio.src = url;
+            // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror
+            Browser.safeSetTimeout(function() {
+              finish(audio); // try to use it even though it is not necessarily ready to play
+            }, 10000);
+          } else {
+            return fail();
+          }
+        };
+        Module['preloadPlugins'].push(audioPlugin);
+  
+        // Canvas event setup
+  
+        var canvas = Module['canvas'];
+        
+        // forced aspect ratio can be enabled by defining 'forcedAspectRatio' on Module
+        // Module['forcedAspectRatio'] = 4 / 3;
+        
+        canvas.requestPointerLock = canvas['requestPointerLock'] ||
+                                    canvas['mozRequestPointerLock'] ||
+                                    canvas['webkitRequestPointerLock'] ||
+                                    canvas['msRequestPointerLock'] ||
+                                    function(){};
+        canvas.exitPointerLock = document['exitPointerLock'] ||
+                                 document['mozExitPointerLock'] ||
+                                 document['webkitExitPointerLock'] ||
+                                 document['msExitPointerLock'] ||
+                                 function(){}; // no-op if function does not exist
+        canvas.exitPointerLock = canvas.exitPointerLock.bind(document);
+  
+        function pointerLockChange() {
+          Browser.pointerLock = document['pointerLockElement'] === canvas ||
+                                document['mozPointerLockElement'] === canvas ||
+                                document['webkitPointerLockElement'] === canvas ||
+                                document['msPointerLockElement'] === canvas;
+        }
+  
+        document.addEventListener('pointerlockchange', pointerLockChange, false);
+        document.addEventListener('mozpointerlockchange', pointerLockChange, false);
+        document.addEventListener('webkitpointerlockchange', pointerLockChange, false);
+        document.addEventListener('mspointerlockchange', pointerLockChange, false);
+  
+        if (Module['elementPointerLock']) {
+          canvas.addEventListener("click", function(ev) {
+            if (!Browser.pointerLock && canvas.requestPointerLock) {
+              canvas.requestPointerLock();
+              ev.preventDefault();
+            }
+          }, false);
+        }
+      },createContext:function (canvas, useWebGL, setInModule, webGLContextAttributes) {
+        var ctx;
+        var errorInfo = '?';
+        function onContextCreationError(event) {
+          errorInfo = event.statusMessage || errorInfo;
+        }
+        try {
+          if (useWebGL) {
+            var contextAttributes = {
+              antialias: false,
+              alpha: false
+            };
+  
+            if (webGLContextAttributes) {
+              for (var attribute in webGLContextAttributes) {
+                contextAttributes[attribute] = webGLContextAttributes[attribute];
+              }
+            }
+  
+  
+            canvas.addEventListener('webglcontextcreationerror', onContextCreationError, false);
+            try {
+              ['experimental-webgl', 'webgl'].some(function(webglId) {
+                return ctx = canvas.getContext(webglId, contextAttributes);
+              });
+            } finally {
+              canvas.removeEventListener('webglcontextcreationerror', onContextCreationError, false);
+            }
+          } else {
+            ctx = canvas.getContext('2d');
+          }
+          if (!ctx) throw ':(';
+        } catch (e) {
+          Module.print('Could not create canvas: ' + [errorInfo, e]);
+          return null;
+        }
+        if (useWebGL) {
+          // Set the background of the WebGL canvas to black
+          canvas.style.backgroundColor = "black";
+  
+          // Warn on context loss
+          canvas.addEventListener('webglcontextlost', function(event) {
+            alert('WebGL context lost. You will need to reload the page.');
+          }, false);
+        }
+        if (setInModule) {
+          GLctx = Module.ctx = ctx;
+          Module.useWebGL = useWebGL;
+          Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() });
+          Browser.init();
+        }
+        return ctx;
+      },destroyContext:function (canvas, useWebGL, setInModule) {},fullScreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullScreen:function (lockPointer, resizeCanvas) {
+        Browser.lockPointer = lockPointer;
+        Browser.resizeCanvas = resizeCanvas;
+        if (typeof Browser.lockPointer === 'undefined') Browser.lockPointer = true;
+        if (typeof Browser.resizeCanvas === 'undefined') Browser.resizeCanvas = false;
+  
+        var canvas = Module['canvas'];
+        var canvasContainer = canvas.parentNode;
+        function fullScreenChange() {
+          Browser.isFullScreen = false;
+          if ((document['webkitFullScreenElement'] || document['webkitFullscreenElement'] ||
+               document['mozFullScreenElement'] || document['mozFullscreenElement'] ||
+               document['fullScreenElement'] || document['fullscreenElement'] ||
+               document['msFullScreenElement'] || document['msFullscreenElement'] ||
+               document['webkitCurrentFullScreenElement']) === canvasContainer) {
+            canvas.cancelFullScreen = document['cancelFullScreen'] ||
+                                      document['mozCancelFullScreen'] ||
+                                      document['webkitCancelFullScreen'] ||
+                                      document['msExitFullscreen'] ||
+                                      document['exitFullscreen'] ||
+                                      function() {};
+            canvas.cancelFullScreen = canvas.cancelFullScreen.bind(document);
+            if (Browser.lockPointer) canvas.requestPointerLock();
+            Browser.isFullScreen = true;
+            if (Browser.resizeCanvas) Browser.setFullScreenCanvasSize();
+          } else {
+            
+            // remove the full screen specific parent of the canvas again to restore the HTML structure from before going full screen
+            var canvasContainer = canvas.parentNode;
+            canvasContainer.parentNode.insertBefore(canvas, canvasContainer);
+            canvasContainer.parentNode.removeChild(canvasContainer);
+            
+            if (Browser.resizeCanvas) Browser.setWindowedCanvasSize();
+          }
+          if (Module['onFullScreen']) Module['onFullScreen'](Browser.isFullScreen);
+          Browser.updateCanvasDimensions(canvas);
+        }
+  
+        if (!Browser.fullScreenHandlersInstalled) {
+          Browser.fullScreenHandlersInstalled = true;
+          document.addEventListener('fullscreenchange', fullScreenChange, false);
+          document.addEventListener('mozfullscreenchange', fullScreenChange, false);
+          document.addEventListener('webkitfullscreenchange', fullScreenChange, false);
+          document.addEventListener('MSFullscreenChange', fullScreenChange, false);
+        }
+  
+        // create a new parent to ensure the canvas has no siblings. this allows browsers to optimize full screen performance when its parent is the full screen root
+        var canvasContainer = document.createElement("div");
+        canvas.parentNode.insertBefore(canvasContainer, canvas);
+        canvasContainer.appendChild(canvas);
+        
+        // use parent of canvas as full screen root to allow aspect ratio correction (Firefox stretches the root to screen size)
+        canvasContainer.requestFullScreen = canvasContainer['requestFullScreen'] ||
+                                            canvasContainer['mozRequestFullScreen'] ||
+                                            canvasContainer['msRequestFullscreen'] ||
+                                           (canvasContainer['webkitRequestFullScreen'] ? function() { canvasContainer['webkitRequestFullScreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null);
+        canvasContainer.requestFullScreen();
+      },requestAnimationFrame:function requestAnimationFrame(func) {
+        if (typeof window === 'undefined') { // Provide fallback to setTimeout if window is undefined (e.g. in Node.js)
+          setTimeout(func, 1000/60);
+        } else {
+          if (!window.requestAnimationFrame) {
+            window.requestAnimationFrame = window['requestAnimationFrame'] ||
+                                           window['mozRequestAnimationFrame'] ||
+                                           window['webkitRequestAnimationFrame'] ||
+                                           window['msRequestAnimationFrame'] ||
+                                           window['oRequestAnimationFrame'] ||
+                                           window['setTimeout'];
+          }
+          window.requestAnimationFrame(func);
+        }
+      },safeCallback:function (func) {
+        return function() {
+          if (!ABORT) return func.apply(null, arguments);
+        };
+      },safeRequestAnimationFrame:function (func) {
+        return Browser.requestAnimationFrame(function() {
+          if (!ABORT) func();
+        });
+      },safeSetTimeout:function (func, timeout) {
+        return setTimeout(function() {
+          if (!ABORT) func();
+        }, timeout);
+      },safeSetInterval:function (func, timeout) {
+        return setInterval(function() {
+          if (!ABORT) func();
+        }, timeout);
+      },getMimetype:function (name) {
+        return {
+          'jpg': 'image/jpeg',
+          'jpeg': 'image/jpeg',
+          'png': 'image/png',
+          'bmp': 'image/bmp',
+          'ogg': 'audio/ogg',
+          'wav': 'audio/wav',
+          'mp3': 'audio/mpeg'
+        }[name.substr(name.lastIndexOf('.')+1)];
+      },getUserMedia:function (func) {
+        if(!window.getUserMedia) {
+          window.getUserMedia = navigator['getUserMedia'] ||
+                                navigator['mozGetUserMedia'];
+        }
+        window.getUserMedia(func);
+      },getMovementX:function (event) {
+        return event['movementX'] ||
+               event['mozMovementX'] ||
+               event['webkitMovementX'] ||
+               0;
+      },getMovementY:function (event) {
+        return event['movementY'] ||
+               event['mozMovementY'] ||
+               event['webkitMovementY'] ||
+               0;
+      },getMouseWheelDelta:function (event) {
+        return Math.max(-1, Math.min(1, event.type === 'DOMMouseScroll' ? event.detail : -event.wheelDelta));
+      },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup
+        if (Browser.pointerLock) {
+          // When the pointer is locked, calculate the coordinates
+          // based on the movement of the mouse.
+          // Workaround for Firefox bug 764498
+          if (event.type != 'mousemove' &&
+              ('mozMovementX' in event)) {
+            Browser.mouseMovementX = Browser.mouseMovementY = 0;
+          } else {
+            Browser.mouseMovementX = Browser.getMovementX(event);
+            Browser.mouseMovementY = Browser.getMovementY(event);
+          }
+          
+          // check if SDL is available
+          if (typeof SDL != "undefined") {
+          	Browser.mouseX = SDL.mouseX + Browser.mouseMovementX;
+          	Browser.mouseY = SDL.mouseY + Browser.mouseMovementY;
+          } else {
+          	// just add the mouse delta to the current absolut mouse position
+          	// FIXME: ideally this should be clamped against the canvas size and zero
+          	Browser.mouseX += Browser.mouseMovementX;
+          	Browser.mouseY += Browser.mouseMovementY;
+          }        
+        } else {
+          // Otherwise, calculate the movement based on the changes
+          // in the coordinates.
+          var rect = Module["canvas"].getBoundingClientRect();
+          var x, y;
+          
+          // Neither .scrollX or .pageXOffset are defined in a spec, but
+          // we prefer .scrollX because it is currently in a spec draft.
+          // (see: http://www.w3.org/TR/2013/WD-cssom-view-20131217/)
+          var scrollX = ((typeof window.scrollX !== 'undefined') ? window.scrollX : window.pageXOffset);
+          var scrollY = ((typeof window.scrollY !== 'undefined') ? window.scrollY : window.pageYOffset);
+          if (event.type == 'touchstart' ||
+              event.type == 'touchend' ||
+              event.type == 'touchmove') {
+            var t = event.touches.item(0);
+            if (t) {
+              x = t.pageX - (scrollX + rect.left);
+              y = t.pageY - (scrollY + rect.top);
+            } else {
+              return;
+            }
+          } else {
+            x = event.pageX - (scrollX + rect.left);
+            y = event.pageY - (scrollY + rect.top);
+          }
+  
+          // the canvas might be CSS-scaled compared to its backbuffer;
+          // SDL-using content will want mouse coordinates in terms
+          // of backbuffer units.
+          var cw = Module["canvas"].width;
+          var ch = Module["canvas"].height;
+          x = x * (cw / rect.width);
+          y = y * (ch / rect.height);
+  
+          Browser.mouseMovementX = x - Browser.mouseX;
+          Browser.mouseMovementY = y - Browser.mouseY;
+          Browser.mouseX = x;
+          Browser.mouseY = y;
+        }
+      },xhrLoad:function (url, onload, onerror) {
+        var xhr = new XMLHttpRequest();
+        xhr.open('GET', url, true);
+        xhr.responseType = 'arraybuffer';
+        xhr.onload = function xhr_onload() {
+          if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
+            onload(xhr.response);
+          } else {
+            onerror();
+          }
+        };
+        xhr.onerror = onerror;
+        xhr.send(null);
+      },asyncLoad:function (url, onload, onerror, noRunDep) {
+        Browser.xhrLoad(url, function(arrayBuffer) {
+          assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).');
+          onload(new Uint8Array(arrayBuffer));
+          if (!noRunDep) removeRunDependency('al ' + url);
+        }, function(event) {
+          if (onerror) {
+            onerror();
+          } else {
+            throw 'Loading data file "' + url + '" failed.';
+          }
+        });
+        if (!noRunDep) addRunDependency('al ' + url);
+      },resizeListeners:[],updateResizeListeners:function () {
+        var canvas = Module['canvas'];
+        Browser.resizeListeners.forEach(function(listener) {
+          listener(canvas.width, canvas.height);
+        });
+      },setCanvasSize:function (width, height, noUpdates) {
+        var canvas = Module['canvas'];
+        Browser.updateCanvasDimensions(canvas, width, height);
+        if (!noUpdates) Browser.updateResizeListeners();
+      },windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:function () {
+        // check if SDL is available   
+        if (typeof SDL != "undefined") {
+        	var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
+        	flags = flags | 0x00800000; // set SDL_FULLSCREEN flag
+        	HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
+        }
+        Browser.updateResizeListeners();
+      },setWindowedCanvasSize:function () {
+        // check if SDL is available       
+        if (typeof SDL != "undefined") {
+        	var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
+        	flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag
+        	HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
+        }
+        Browser.updateResizeListeners();
+      },updateCanvasDimensions:function (canvas, wNative, hNative) {
+        if (wNative && hNative) {
+          canvas.widthNative = wNative;
+          canvas.heightNative = hNative;
+        } else {
+          wNative = canvas.widthNative;
+          hNative = canvas.heightNative;
+        }
+        var w = wNative;
+        var h = hNative;
+        if (Module['forcedAspectRatio'] && Module['forcedAspectRatio'] > 0) {
+          if (w/h < Module['forcedAspectRatio']) {
+            w = Math.round(h * Module['forcedAspectRatio']);
+          } else {
+            h = Math.round(w / Module['forcedAspectRatio']);
+          }
+        }
+        if (((document['webkitFullScreenElement'] || document['webkitFullscreenElement'] ||
+             document['mozFullScreenElement'] || document['mozFullscreenElement'] ||
+             document['fullScreenElement'] || document['fullscreenElement'] ||
+             document['msFullScreenElement'] || document['msFullscreenElement'] ||
+             document['webkitCurrentFullScreenElement']) === canvas.parentNode) && (typeof screen != 'undefined')) {
+           var factor = Math.min(screen.width / w, screen.height / h);
+           w = Math.round(w * factor);
+           h = Math.round(h * factor);
+        }
+        if (Browser.resizeCanvas) {
+          if (canvas.width  != w) canvas.width  = w;
+          if (canvas.height != h) canvas.height = h;
+          if (typeof canvas.style != 'undefined') {
+            canvas.style.removeProperty( "width");
+            canvas.style.removeProperty("height");
+          }
+        } else {
+          if (canvas.width  != wNative) canvas.width  = wNative;
+          if (canvas.height != hNative) canvas.height = hNative;
+          if (typeof canvas.style != 'undefined') {
+            if (w != wNative || h != hNative) {
+              canvas.style.setProperty( "width", w + "px", "important");
+              canvas.style.setProperty("height", h + "px", "important");
+            } else {
+              canvas.style.removeProperty( "width");
+              canvas.style.removeProperty("height");
+            }
+          }
+        }
+      }};
+
+  function _time(ptr) {
+      var ret = Math.floor(Date.now()/1000);
+      if (ptr) {
+        HEAP32[((ptr)>>2)]=ret;
+      }
+      return ret;
+    }
+
+___errno_state = Runtime.staticAlloc(4); HEAP32[((___errno_state)>>2)]=0;
+FS.staticInit();__ATINIT__.unshift({ func: function() { if (!Module["noFSInit"] && !FS.init.initialized) FS.init() } });__ATMAIN__.push({ func: function() { FS.ignorePermissions = false } });__ATEXIT__.push({ func: function() { FS.quit() } });Module["FS_createFolder"] = FS.createFolder;Module["FS_createPath"] = FS.createPath;Module["FS_createDataFile"] = FS.createDataFile;Module["FS_createPreloadedFile"] = FS.createPreloadedFile;Module["FS_createLazyFile"] = FS.createLazyFile;Module["FS_createLink"] = FS.createLink;Module["FS_createDevice"] = FS.createDevice;
+__ATINIT__.unshift({ func: function() { TTY.init() } });__ATEXIT__.push({ func: function() { TTY.shutdown() } });TTY.utf8 = new Runtime.UTF8Processor();
+if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); NODEFS.staticInit(); }
+__ATINIT__.push({ func: function() { SOCKFS.root = FS.mount(SOCKFS, {}, null); } });
+Module["requestFullScreen"] = function Module_requestFullScreen(lockPointer, resizeCanvas) { Browser.requestFullScreen(lockPointer, resizeCanvas) };
+  Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) };
+  Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
+  Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };
+  Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };
+  Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }
+STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
+
+staticSealed = true; // seal the static portion of memory
+
+STACK_MAX = STACK_BASE + 5242880;
+
+DYNAMIC_BASE = DYNAMICTOP = Runtime.alignMemory(STACK_MAX);
+
+assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");
+
+
+var Math_min = Math.min;
+function asmPrintInt(x, y) {
+  Module.print('int ' + x + ',' + y);// + ' ' + new Error().stack);
+}
+function asmPrintFloat(x, y) {
+  Module.print('float ' + x + ',' + y);// + ' ' + new Error().stack);
+}
 // EMSCRIPTEN_START_ASM
-"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env._stderr|0;var n=+env.NaN;var o=+env.Infinity;var p=0;var q=0;var r=0;var s=0;var t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0.0;var C=0;var D=0;var E=0;var F=0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=global.Math.floor;var N=global.Math.abs;var O=global.Math.sqrt;var P=global.Math.pow;var Q=global.Math.cos;var R=global.Math.sin;var S=global.Math.tan;var T=global.Math.acos;var U=global.Math.asin;var V=global.Math.atan;var W=global.Math.atan2;var X=global.Math.exp;var Y=global.Math.log;var Z=global.Math.ceil;var _=global.Math.imul;var $=env.abort;var aa=env.assert;var ab=env.asmPrintInt;var ac=env.asmPrintFloat;var ad=env.min;var ae=env.invoke_ii;var af=env.invoke_v;var ag=env.invoke_iii;var ah=env.invoke_vi;var ai=env._llvm_lifetime_end;var aj=env._sysconf;var ak=env._pwrite;var al=env._sbrk;var am=env.___assert_fail;var an=env.___setErrNo;var ao=env._fwrite;var ap=env.__reallyNegative;var aq=env.__formatString;var ar=env._send;var as=env._write;var at=env._llvm_lifetime_start;var au=env._abort;var av=env._fprintf;var aw=env._time;var ax=env.___errno_location;var ay=env._fflush;var az=0.0;
+
 // EMSCRIPTEN_START_FUNCS
-function aE(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+7&-8;return b|0}function aF(){return i|0}function aG(a){a=a|0;i=a}function aH(a,b){a=a|0;b=b|0;if((p|0)==0){p=a;q=b}}function aI(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0]}function aJ(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0];a[k+4|0]=a[b+4|0];a[k+5|0]=a[b+5|0];a[k+6|0]=a[b+6|0];a[k+7|0]=a[b+7|0]}function aK(a){a=a|0;C=a}function aL(a){a=a|0;D=a}function aM(a){a=a|0;E=a}function aN(a){a=a|0;F=a}function aO(a){a=a|0;G=a}function aP(a){a=a|0;H=a}function aQ(a){a=a|0;I=a}function aR(a){a=a|0;J=a}function aS(a){a=a|0;K=a}function aT(a){a=a|0;L=a}function aU(){}function aV(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ab=0,ac=0,ad=0,ae=0,af=0,ag=0,ah=0,ai=0,aj=0,ak=0,al=0,an=0,ao=0,ap=0,aq=0,ar=0,as=0,at=0,au=0,av=0,aw=0,ax=0;j=i;i=i+128|0;k=j|0;l=j+64|0;if((e|0)==0){am(6344,8544,768,11800);return 0}if((f|0)==0){am(7424,8544,769,11800);return 0}if((g|0)<=-2){am(6824,8544,770,11800);return 0}m=(h|0)==4;if(!((h|0)==16|(h|0)==15|(h|0)==4)){am(6064,8544,771,11800);return 0}n=bu(e)|0;o=n>>>16;p=g>>>0<17>>>0;if(!(p|(g|0)==-1)){am(4768,8544,407,13192);return 0}do{if(g>>>0<2>>>0){if((n|0)<0){q=1;break}if(n>>>0>201326591>>>0){r=3984+(n>>>26<<1)|0;s=35;break}if(n>>>0>16777215>>>0){r=3888+(n>>>22<<1)|0;s=35;break}if(n>>>0>2097151>>>0){r=3776+((n>>>18)-8<<1)|0;s=35;break}else{r=3712+(o<<1)|0;s=35;break}}else{if(g>>>0<4>>>0){if((n|0)<0){q=(o&16384|0)!=0?2:2082;break}if(n>>>0>268435455>>>0){r=3648+(n>>>26<<1)|0;s=35;break}if(n>>>0>33554431>>>0){r=3584+(n>>>23<<1)|0;s=35;break}else{r=3328+(n>>>18<<1)|0;s=35;break}}else{if(g>>>0<8>>>0){t=n>>>26;if((t-8|0)>>>0<56>>>0){r=3200+(t<<1)|0;s=35;break}r=2944+(n>>>22<<1)|0;s=35;break}if(p){r=2816+(n>>>26<<1)|0;s=35;break}t=n>>>29;if((t|0)!=0){r=2800+(t<<1)|0;s=35;break}r=2736+(n>>>24<<1)|0;s=35;break}}}while(0);do{if((s|0)==35){p=b[r>>1]|0;if(p<<16>>16==0){u=1}else{q=p&65535;break}i=j;return u|0}}while(0);r=q&31;p=n<<r;n=32-r|0;g=q>>>11;if(g>>>0>h>>>0){u=1;i=j;return u|0}o=q>>>5&63;do{if((g|0)==0){v=n;w=0}else{if((o|0)==0){x=n;y=p;z=0}else{do{if(n>>>0<o>>>0){if((bv(e,r)|0)==-1){u=1;i=j;return u|0}else{A=32;B=bu(e)|0;break}}else{A=n;B=p}}while(0);t=B>>>((32-o|0)>>>0);C=1<<o-1;D=0;do{c[k+(D<<2)>>2]=(C&t|0)!=0?-1:1;C=C>>>1;D=D+1|0;}while((C|0)!=0);x=A-o|0;y=B<<o;z=D}C=o>>>0<3>>>0;L70:do{if(z>>>0<g>>>0){t=z;E=q>>>0>22527>>>0&C&1;F=y;G=x;L72:while(1){if(G>>>0<16>>>0){if((bv(e,32-G|0)|0)==-1){u=1;s=145;break}H=32;I=bu(e)|0}else{H=G;I=F}do{if((I|0)<0){J=0;s=66}else{if(I>>>0>1073741823>>>0){J=1;s=66;break}if(I>>>0>536870911>>>0){J=2;s=66;break}if(I>>>0>268435455>>>0){J=3;s=66;break}if(I>>>0>134217727>>>0){J=4;s=66;break}if(I>>>0>67108863>>>0){J=5;s=66;break}if(I>>>0>33554431>>>0){J=6;s=66;break}if(I>>>0>16777215>>>0){J=7;s=66;break}if(I>>>0>8388607>>>0){J=8;s=66;break}if(I>>>0>4194303>>>0){J=9;s=66;break}if(I>>>0>2097151>>>0){J=10;s=66;break}if(I>>>0>1048575>>>0){J=11;s=66;break}if(I>>>0>524287>>>0){J=12;s=66;break}if(I>>>0>262143>>>0){J=13;s=66;break}if(I>>>0>131071>>>0){K=(E|0)!=0?E:4;L=14;M=I<<15;N=H-15|0;s=69;break}if(I>>>0<65536>>>0){u=1;s=146;break L72}O=(E|0)!=0?E:1;P=H-16|0;Q=I<<16;R=12;S=O;T=(O|0)==0;U=15<<O;s=70}}while(0);if((s|0)==66){s=0;O=J+1|0;K=E;L=J;M=I<<O;N=H-O|0;s=69}if((s|0)==69){s=0;O=(E|0)==0;V=L<<E;if((K|0)==0){W=N;X=M;Y=V;Z=E;_=O}else{P=N;Q=M;R=K;S=E;T=O;U=V;s=70}}if((s|0)==70){s=0;if(P>>>0<R>>>0){if((bv(e,32-P|0)|0)==-1){u=1;s=147;break}$=32;aa=bu(e)|0}else{$=P;aa=Q}W=$-R|0;X=aa<<R;Y=(aa>>>((32-R|0)>>>0))+U|0;Z=S;_=T}V=(t|0)==(o|0)&C?Y+2|0:Y;O=(V+2|0)>>>1;ab=_?1:Z;c[k+(t<<2)>>2]=(V&1|0)==0?O:-O|0;V=t+1|0;if(V>>>0<g>>>0){t=V;E=((O|0)>(3<<ab-1|0)&ab>>>0<6>>>0&1)+ab|0;F=X;G=W}else{ac=X;ad=W;break L70}}if((s|0)==145){i=j;return u|0}else if((s|0)==146){i=j;return u|0}else if((s|0)==147){i=j;return u|0}}else{ac=y;ad=x}}while(0);if(g>>>0<h>>>0){do{if(ad>>>0<9>>>0){if((bv(e,32-ad|0)|0)==-1){u=1;i=j;return u|0}else{
\ No newline at end of file
-function bu(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;if((a|0)==0){am(6344,8944,123,10608);return 0}b=c[a+4>>2]|0;if((b|0)==0){am(7056,8944,124,10608);return 0}e=c[a+8>>2]|0;if(e>>>0>=8>>>0){am(7024,8944,125,10608);return 0}f=c[a+16>>2]|0;if((e|0)!=(f&7|0)){am(5576,8944,127,10608);return 0}g=(c[a+12>>2]<<3)-f|0;if((g|0)>31){f=(d[b+1|0]|0)<<16|(d[b]|0)<<24|(d[b+2|0]|0)<<8|(d[b+3|0]|0);if((e|0)==0){h=f;return h|0}h=(d[b+4|0]|0)>>>((8-e|0)>>>0)|f<<e;return h|0}if((g|0)<=0){h=0;return h|0}f=e+24|0;a=(d[b]|0)<<f;i=e-8+g|0;if((i|0)>0){j=a;k=f;l=i;m=b}else{h=a;return h|0}while(1){a=m+1|0;b=k-8|0;i=(d[a]|0)<<b|j;f=l-8|0;if((f|0)>0){j=i;k=b;l=f;m=a}else{h=i;break}}return h|0}function bv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;if((a|0)==0){am(6344,8944,192,11576);return 0}d=c[a>>2]|0;if((d|0)==0){am(5136,8944,193,11576);return 0}e=a+4|0;if((c[e>>2]|0)==0){am(7056,8944,194,11576);return 0}f=a+8|0;g=c[f>>2]|0;if(g>>>0>=8>>>0){am(7024,8944,195,11576);return 0}h=a+16|0;i=c[h>>2]|0;if((g|0)!=(i&7|0)){am(5576,8944,196,11576);return 0}g=i+b|0;c[h>>2]=g;c[f>>2]=g&7;if(g>>>0>c[a+12>>2]<<3>>>0){j=-1;return j|0}c[e>>2]=d+(g>>>3);j=0;return j|0}function bw(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;g=d[864+b|0]|0;h=d[808+b|0]|0;b=c[984+(h*12|0)>>2]<<g;i=c[988+(h*12|0)>>2]<<g;j=c[992+(h*12|0)>>2]<<g;if((e|0)==0){c[a>>2]=_(c[a>>2]|0,b)|0}L4:do{if((f&65436|0)==0){if((f&98|0)==0){e=(c[a>>2]|0)+32>>6;if((e+512|0)>>>0>1023>>>0){k=1;return k|0}else{c[a+60>>2]=e;c[a+56>>2]=e;c[a+52>>2]=e;c[a+48>>2]=e;c[a+44>>2]=e;c[a+40>>2]=e;c[a+36>>2]=e;c[a+32>>2]=e;c[a+28>>2]=e;c[a+24>>2]=e;c[a+20>>2]=e;c[a+16>>2]=e;c[a+12>>2]=e;c[a+8>>2]=e;c[a+4>>2]=e;c[a>>2]=e;break}}e=a+4|0;g=_(c[e>>2]|0,i)|0;h=a+20|0;l=_(c[h>>2]|0,b)|0;m=a+24|0;n=_(c[m>>2]|0,i)|0;o=c[a>>2]|0;p=(g>>1)-n|0;q=(n>>1)+g|0;g=l+32+o|0;n=q+g>>6;c[a>>2]=n;r=o-l+32|0;l=r+p>>6;c[e>>2]=l;e=r-p>>6;c[a+8>>2]=e;p=g-q>>6;c[a+12>>2]=p;c[a+48>>2]=n;c[a+32>>2]=n;c[a+16>>2]=n;c[a+52>>2]=l;c[a+36>>2]=l;c[h>>2]=l;c[a+56>>2]=e;c[a+40>>2]=e;c[m>>2]=e;c[a+60>>2]=p;c[a+44>>2]=p;c[a+28>>2]=p;if((n+512|0)>>>0>1023>>>0){k=1;return k|0}if((l+512|0)>>>0>1023>>>0){k=1;return k|0}if((e+512|0)>>>0>1023>>>0){k=1;return k|0}if((p+512|0)>>>0>1023>>>0){k=1}else{break}return k|0}else{p=a+4|0;e=a+56|0;l=c[e>>2]|0;n=a+60|0;m=_(c[p>>2]|0,i)|0;h=_(c[n>>2]|0,j)|0;q=a+8|0;g=c[q>>2]|0;r=a+20|0;o=a+16|0;s=_(c[r>>2]|0,b)|0;t=_(c[o>>2]|0,j)|0;u=a+32|0;v=a+12|0;w=c[v>>2]|0;x=a+24|0;y=_(c[u>>2]|0,i)|0;z=_(c[x>>2]|0,i)|0;A=a+28|0;B=c[A>>2]|0;C=a+48|0;D=a+36|0;E=c[D>>2]|0;F=_(c[C>>2]|0,j)|0;G=a+40|0;H=a+44|0;I=c[H>>2]|0;J=a+52|0;K=_(c[G>>2]|0,j)|0;L=_(c[J>>2]|0,i)|0;M=c[a>>2]|0;N=M+s|0;O=M-s|0;s=(m>>1)-z|0;M=(z>>1)+m|0;c[a>>2]=N+M;c[p>>2]=O+s;c[q>>2]=O-s;c[v>>2]=N-M;M=_(B+g|0,i)|0;N=_(g-B|0,i)|0;B=(t>>1)-F|0;g=(F>>1)+t|0;c[o>>2]=g+M;c[r>>2]=B+N;c[x>>2]=N-B;c[A>>2]=M-g;g=_(I+w|0,b)|0;M=_(w-I|0,b)|0;I=(y>>1)-L|0;w=(L>>1)+y|0;c[u>>2]=w+g;c[D>>2]=I+M;c[G>>2]=M-I;c[H>>2]=g-w;w=_(E+l|0,i)|0;g=_(E-l|0,i)|0;l=(K>>1)-h|0;E=K+(h>>1)|0;c[C>>2]=E+w;c[J>>2]=l+g;c[e>>2]=g-l;c[n>>2]=w-E;E=4;w=a;while(1){if((E|0)==0){break L4}n=c[w>>2]|0;l=w+32|0;g=c[l>>2]|0;e=w+16|0;J=c[e>>2]|0;C=w+48|0;h=c[C>>2]|0;K=(J>>1)-h|0;H=(h>>1)+J|0;J=n+32+g|0;h=H+J>>6;c[w>>2]=h;I=n-g+32|0;g=K+I>>6;c[e>>2]=g;e=I-K>>6;c[l>>2]=e;l=J-H>>6;c[C>>2]=l;if((h+512|0)>>>0>1023>>>0){k=1;P=28;break}if((g+512|0)>>>0>1023>>>0){k=1;P=27;break}if((e+512|0)>>>0>1023>>>0){k=1;P=19;break}if((l+512|0)>>>0>1023>>>0){k=1;P=20;break}else{E=E-1|0;w=w+4|0}}if((P|0)==19){return k|0}else if((P|0)==20){return k|0}else if((P|0)==27){return k|0}else if((P|0)==28){return k|0}}}while(0);k=0;return k|0}function bx(a){a=a|0;var b=0,d=0;if((a|0)==0){am(6344,8904,134,10680)}b=c[a+8>>2]|0;if(b>>>0>=8>>>0){am(7024,8904,135,10680)}d=8-b|0;if(d>>>0<32>>>0){bu(a)|0;bv(a,d)|0;return}else{am(7656,8944,79,11544)}}function by(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;if((a|0)==0){am(6344,8840,114,11944);return 0}if((b|0)==0){am(7632,8840,115,11944);return 0}d=bu(a)|0
\ No newline at end of file
+itPointerLock = document['exitPointerLock'] ||
+                                 document['mozExitPointerLock'] ||
+                                 document['webkitExitPointerLock'] ||
+                                 document['msExitPointerLock'] ||
+                                 function(){}; // no-op if function does not exist
+        canvas.exitPointerLock = canvas.exitPointerLock.bind(document);
+  
+        function pointerLockChange() {
+          Browser.pointerLock = document['pointerLockElement'] === canvas ||
 while(s>>>0<e>>>0);y=y+1|0;}while(y>>>0<f>>>0);return}}while(0);if((d|0)==7|(d|0)==2){if((c[a+3384>>2]|0)==0|(h|0)==0){g=20}else{g=21}}else{if((h|0)==0){g=20}else{g=21}}if((g|0)==20){bC(c[b>>2]|0,-128|0,_(e*384|0,f)|0)|0}else if((g|0)==21){bD(c[b>>2]|0,h|0,_(e*384|0,f)|0)|0}f=c[l>>2]|0;c[a+1204>>2]=f;if((f|0)==0){return}f=a+1212|0;a=0;do{c[(c[f>>2]|0)+(a*216|0)+8>>2]=1;a=a+1|0;}while(a>>>0<(c[l>>2]|0)>>>0);return}function aX(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,$=0,aa=0,ab=0,ac=0,ad=0,ae=0,af=0,ag=0,ah=0,ai=0,aj=0,ak=0,al=0,an=0,ao=0,ap=0,aq=0,ar=0,as=0,at=0,au=0,av=0,aw=0,ax=0,ay=0,az=0,aA=0,aB=0,aC=0,aD=0,aE=0,aF=0,aG=0,aH=0,aI=0,aJ=0,aK=0,aL=0,aM=0,aN=0,aO=0,aP=0,aQ=0,aR=0,aS=0,aT=0,aU=0,aV=0,aW=0,aX=0,aZ=0,a_=0,a$=0,a0=0,a1=0,a2=0,a3=0,a4=0,a5=0,a6=0;k=i;i=i+456|0;l=k|0;m=k+384|0;n=k+448|0;o=n;p=i;i=i+24|0;if((b|0)==0){am(5032,10152,292,13240)}if((c[b+196>>2]|0)!=0){am(6600,10152,293,13240)}if((e|0)==0){am(4736,10152,294,13240)}q=c[e+4>>2]|0;if(q>>>0<=g>>>0){am(5944,10152,295,13240)}r=c[e+8>>2]|0;if(r>>>0<=f>>>0){am(5424,10152,296,13240)}s=(_(q,f)|0)+g|0;t=(s>>>0)%(q>>>0)|0;u=s-t|0;s=_(r,q)|0;v=e|0;w=c[v>>2]|0;c[e+12>>2]=w+((u<<8)+(t<<4));x=s<<8;y=(t<<3)+x+(u<<6)|0;c[e+16>>2]=w+y;u=s<<6;c[e+20>>2]=w+(y+u);y=f<<4;s=g<<4;t=(_(f<<8,q)|0)+s|0;c[b+20>>2]=40;c[b+8>>2]=0;c[b>>2]=6;c[b+12>>2]=0;c[b+16>>2]=0;c[b+24>>2]=0;do{if((h|0)==7|(h|0)==2){bC(l|0,0,384)|0}else{c[n>>2]=0;c[p+4>>2]=q;c[p+8>>2]=r;c[p>>2]=j;z=l|0;if((j|0)==0){bC(z|0,0,384)|0;break}bs(z,o,p,s,y,0,0,16,16);bi(e,z);i=k;return}}while(0);y=m;bC(y|0,0,64)|0;do{if((f|0)==0){A=0;B=0;C=0;D=0;E=0;F=0;G=0}else{if((c[b+((-q|0)*216|0)+196>>2]|0)==0){A=0;B=0;C=0;D=0;E=0;F=0;G=0;break}s=t-(q<<4)|0;p=s|1;o=s|3;j=(d[w+p|0]|0)+(d[w+s|0]|0)+(d[w+(p+1)|0]|0)+(d[w+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{if(Y|(E|0)==0|(H|0
\ No newline at end of file
-|0;}while(y>>>0<f>>>0);return}}while(0);if((d|0)==7|(d|0)==2){if((c[a+3384>>2]|0)==0|(h|0)==0){g=20}else{g=21}}else{if((h|0)==0){g=20}else{g=21}}if((g|0)==20){bC(c[b>>2]|0,-128|0,_(e*384|0,f)|0)|0}else if((g|0)==21){bD(c[b>>2]|0,h|0,_(e*384|0,f)|0)|0}f=c[l>>2]|0;c[a+1204>>2]=f;if((f|0)==0){return}f=a+1212|0;a=0;do{c[(c[f>>2]|0)+(a*216|0)+8>>2]=1;a=a+1|0;}while(a>>>0<(c[l>>2]|0)>>>0);return}function aX(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,$=0,aa=0,ab=0,ac=0,ad=0,ae=0,af=0,ag=0,ah=0,ai=0,aj=0,ak=0,al=0,an=0,ao=0,ap=0,aq=0,ar=0,as=0,at=0,au=0,av=0,aw=0,ax=0,ay=0,az=0,aA=0,aB=0,aC=0,aD=0,aE=0,aF=0,aG=0,aH=0,aI=0,aJ=0,aK=0,aL=0,aM=0,aN=0,aO=0,aP=0,aQ=0,aR=0,aS=0,aT=0,aU=0,aV=0,aW=0,aX=0,aZ=0,a_=0,a$=0,a0=0,a1=0,a2=0,a3=0,a4=0,a5=0,a6=0;k=i;i=i+456|0;l=k|0;m=k+384|0;n=k+448|0;o=n;p=i;i=i+24|0;if((b|0)==0){am(5032,10152,292,13240)}if((c[b+196>>2]|0)!=0){am(6600,10152,293,13240)}if((e|0)==0){am(4736,10152,294,13240)}q=c[e+4>>2]|0;if(q>>>0<=g>>>0){am(5944,10152,295,13240)}r=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ad=V;ae=W}else{if((c[b+412>>2]|0)==0){X=0;Y=0;Z=0;$=0;aa=0;ab=T;ac=U;ad=V;ae=W;break}O=t+16|0;o=q<<4;r=q<<5;j=q*48|0;h=(d[w+(O+o)|0]|0)+(d[w+O|0]|0)+(d[w+(O+r)|0]|0)+(d[w+(O+j)|0]|0)|0;F=q<<6;s=O+F|0;O=(d[w+(s+o)|0]|0)+(d[w+s|0]|0)+(d[w+(s+r)|0]|0)+(d[w+(s+j)|0]|0)|0;z=s+F|0;s=(d[w+(z+o)|0]|0)+(d[w+z|0]|0)+(d[w+(z+r)|0]|0)+(d[w+(z+j)|0]|0)|0;G=z+F|0;F=(d[w+(G+o)|0]|0)+(d[w+G|0]|0)+(d[w+(G+r)|0]|0)+(d[w+(G+j)|0]|0)|0;j=O+h|0;G=j+W+s+F|0;c[m>>2]=G;r=j+V-s-F|0;c[m+16>>2]=r;X=1;Y=h;Z=O;$=s;aa=F;ab=T+1|0;ac=U+1|0;ad=r;ae=G}}while(0);if((ab|0)==0){am(5024,10152,420,13240)}T=(M|0)!=0;do{if(T|(U|0)==0|(X|0)==0){if(!T){break}c[m+4>>2]=N>>M+3}else{c[m+4>>2]=R+S+Q+P-aa-$-Z-Y>>5}}while(0);Y=(ac|0)!=0;do{if(Y|(E|0)==0|(H|0)==0){if(!Y){break}c[m+1
\ No newline at end of file
+ return setTimeout(function() {
+          if (!ABORT) func();
+        }, timeout);
 ,ai=0,aj=0,ak=0,al=0,an=0,ao=0,ap=0,aq=0,ar=0,as=0,at=0,au=0,av=0,aw=0,ax=0,ay=0,az=0,aA=0,aB=0,aC=0,aD=0,aE=0,aF=0,aG=0,aH=0,aI=0,aJ=0,aK=0,aL=0,aM=0,aN=0,aO=0,aP=0,aQ=0,aR=0,aS=0,aT=0,aU=0,aV=0,aW=0,aX=0,aZ=0,a_=0,a$=0,a0=0,a1=0,a2=0,a3=0,a4=0,a5=0,a6=0;k=i;i=i+456|0;l=k|0;m=k+384|0;n=k+448|0;o=n;p=i;i=i+24|0;if((b|0)==0){am(5032,10152,292,13240)}if((c[b+196>>2]|0)!=0){am(6600,10152,293,13240)}if((e|0)==0){am(4736,10152,294,13240)}q=c[e+4>>2]|0;if(q>>>0<=g>>>0){am(5944,10152,295,13240)}r=c[e+8>>2]|0;if(r>>>0<=f>>>0){am(5424,10152,296,13240)}s=(_(q,f)|0)+g|0;t=(s>>>0)%(q>>>0)|0;u=s-t|0;s=_(r,q)|0;v=e|0;w=c[v>>2]|0;c[e+12>>2]=w+((u<<8)+(t<<4));x=s<<8;y=(t<<3)+x+(u<<6)|0;c[e+16>>2]=w+y;u=s<<6;c[e+20>>2]=w+(y+u);y=f<<4;s=g<<4;t=(_(f<<8,q)|0)+s|0;c[b+20>>2]=40;c[b+8>>2]=0;c[b>>2]=6;c[b+12>>2]=0;c[b+16>>2]=0;c[b+24>>2]=0;do{if((h|0)==7|(h|0)==2){bC(l|0,0,384)|0}else{c[n>>2]=0;c[p+4>>2]=q;c[p+8>>2]=r;c[p>>2]=j;z=l|0;if((j|0)==0){bC(z|0,0,384)|0;break}bs(z,o,p,s,y,0,0,16,16);bi(e,z);i=k;return}}while(0);y=m;bC(y|0,0,64)|0;do{if((f|0)==0){A=0;B=0;C=0;D=0;E=0;F=0;G=0}else{if((c[b+((-q|0)*216|0)+196>>2]|0)==0){A=0;B=0;C=0;D=0;E=0;F=0;G=0;break}s=t-(q<<4)|0;p=s|1;o=s|3;j=(d[w+p|0]|0)+(d[w+s|0]|0)+(d[w+(p+1)|0]|0)+(d[w+o|0]|0)|0;p=s|7;n=(d[w+(o+2)|0]|0)+(d[w+(o+1)|0]|0)+(d[w+(o+3)|0]|0)+(d[w+p|0]|0)|0;o=(d[w+(p+2)|0]|0)+(d[w+(p+1)|0]|0)+(d[w+(p+3)|0]|0)+(d[w+(p+4)|0]|0)|0;h=(d[w+(p+6)|0]|0)+(d[w+(p+5)|0]|0)+(d[w+(p+7)|0]|0)+(d[w+(s|15)|0]|0)|0;s=n+j|0;p=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z+O+h+j|0;c[m>>2]=o;r=z-h-j|0;c[m+16>>2]=r;P=s;Q=F;R=h;S=j;T=M+1|0;U=1;V=r;W=o}}while(0);do{if((q-1|0)==(g|0)){X=0;Y=0;Z=0;$=0;aa=0;ab=T;ac=U;ad=V;ae=W}else{if((c[b+412>>2]|0)==0){X=0;Y=0;Z=0;$=0;aa=0;ab=T;ac=U;ad=V;ae=W;break}O=t+16|0;o=q<<4;r=q<<5;j=q*48|0;h=(d[w+(O+o)|0]|0)+(d[w+O|0]|0)+(d[w+(O+r)|0]|0)+(d[w+(O+j)|0]|0)|0;F=q<<6;s=O+F|0;O=(d[w+(s+o)|0]|0)+(d[w+s|0]|0)+(d[w+(s+r)|0]|0)+(d[w+(s+j)|0]|0)|0;z=s+F|0;s=(d[w+(z+o)|0]|0)+(d[w+z|0]|0)+(d[w+(z+r)|0]|0)+(d[w+(z+j)|0]|0)|0;G=z+F|0;F=(d[w+(G+o)|0]|0)+(d[w+G|0]|0)+(d[w+(G+r)|0]|0)+(d[w+(G+j)|0]|0)|0;j=O+h|0;G=j+W+s+F|0;c[m>>2]=G;r=j+V-s-F|0;c[m+16>>2]=r;X=1;Y=h;Z=O;$=s;aa=F;ab=T+1|0;ac=U+1|0;ad=r;ae=G}}while(0);if((ab|0)==0){am(5024,10152,420,13240)}T=(M|0)!=0;do{if(T|(U|0)==0|(X|0)==0){if(!T){break}c[m+4>>2]=N>>M+3}else{c[m+4>>2]=R+S+Q+P-aa-$-Z-Y>>5}}while(0);Y=(ac|0)!=0;do{if(Y|(E|0)==0|(H|0)==0){if(!Y){break}c[m+16>>2]=ad>>ac+3}else{c[m+16>>2]=C+D+B+A-L-K-J-I>>5}}while(0);if((ab|0)==1){c[m>>2]=ae>>4}else if((ab|0)==2){c[m>>2]=ae>>5}else if((ab|0)==3){c[m>>2]=(ae*21|0)>>10}else{c[m>>2]=ae>>6}ae=m|0;aY(ae);ab=l|0;ac=0;ad=ab;Y=ae;while(1){Z=c[Y+((ac>>>2&3)<<2)>>2]|0;if((Z|0)<0){af=0}else{af=(Z|0)>255?-1:Z&255}a[ad]=af;Z=ac+1|0;if(Z>>>0<256>>>0){ac=Z;ad=ad+1|0;Y=(Z&63|0)==0?Y+16|0:Y}else{break}}Y=(E|0)!=0;E=q<<3;ad=-E|0;ac=ad|1;af=ac+1|0;Z=ad|3;$=Z+1|0;aa=Z+2|0;M=Z+3|0;N=ad|7;T=m+4|0;V=(H|0)!=0;H=q<<6;W=H|1;w=W+1|0;t=H|3;b=t+1|0;G=t+2|0;r=t+3|0;F=H|7;s=(U|0)!=0;U=E-1|0;O=q<<4;h=O-1|0;j=h+E|0;o=h+O|0;z=o+E|0;n=o+O|0;p=n+E|0;ag=m+16|0;m=(X|0)!=0;X=E+8|0;ah=O|8;ai=ah+E|0;aj=ah
\ No newline at end of file
-n=0,ao=0,ap=0,aq=0,ar=0,as=0,at=0,au=0,av=0,aw=0,ax=0,ay=0,az=0,aA=0,aB=0,aC=0,aD=0,aE=0,aF=0,aG=0,aH=0,aI=0,aJ=0,aK=0,aL=0,aM=0,aN=0,aO=0,aP=0,aQ=0,aR=0,aS=0,aT=0,aU=0,aV=0,aW=0,aX=0,aZ=0,a_=0,a$=0,a0=0,a1=0,a2=0,a3=0,a4=0,a5=0,a6=0;k=i;i=i+456|0;l=k|0;m=k+384|0;n=k+448|0;o=n;p=i;i=i+24|0;if((b|0)==0){am(5032,10152,292,13240)}if((c[b+196>>2]|0)!=0){am(6600,10152,293,13240)}if((e|0)==0){am(4736,10152,294,13240)}q=c[e+4>>2]|0;if(q>>>0<=g>>>0){am(5944,10152,295,13240)}r=c[e+8>>2]|0;if(r>>>0<=f>>>0){am(5424,10152,296,13240)}s=(_(q,f)|0)+g|0;t=(s>>>0)%(q>>>0)|0;u=s-t|0;s=_(r,q)|0;v=e|0;w=c[v>>2]|0;c[e+12>>2]=w+((u<<8)+(t<<4));x=s<<8;y=(t<<3)+x+(u<<6)|0;c[e+16>>2]=w+y;u=s<<6;c[e+20>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0;o=h+O|0;z=o+E|0;n=o+O|0;p=n+E|0;ag=m+16|0;m=(X|0)!=0;X=E+8|0;ah=O|8;ai=ah+E|0;aj=ah+O|0;ak=aj+E|0;al=aj+O
\ No newline at end of file
-function bu(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;if((a|0)==0){am(6344,8944,123,10608);return 0}b=c[a+4>>2]|0;if((b|0)==0){am(7056,8944,124,10608);return 0}e=c[a+8>>2]|0;if(e>>>0>=8>>>0){am(7024,8944,125,10608);return 0}f=c[a+16>>2]|0;if((e|0)!=(f&7|0)){am(5576,8944,127,10608);return 0}g=(c[a+12>>2]<<3)-f|0;if((g|0)>31){f=(d[b+1|0]|0)<<16|(d[b]|0)<<24|(d[b+2|0]|0)<<8|(d[b+3|0]|0);if((e|0)==0){h=f;return h|0}h=(d[b+4|0]|0)>>>((8-e|0)>>>0)|f<<e;return h|0}if((g|0)<=0){h=0;return h|0}f=e+24|0;a=(d[b]|0)<<f;i=e-8+g|0;if((i|0)>0){j=a;k=f;l=i;m=b}else{h=a;return h|0}while(1){a=m+1|0;b=k-8|0;i=(d[a]|0)<<b|j;f=l-8|0;if((f|0)>0){j=i;k=b;l=f;m=a}else{h=i;break}}return h|0}function bv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;if((a|0)==0){am(6344,8944,192,11576);return 0}d=c[a>>2]|0;if((d|0)==0){am(5136,8944,193,11576);return 0}e=a+4|0;if((c[e>>2]|0)==0){am(7056,8944,194,11576);return 0}f=a+8|0;g=c[f>>2]|0;if(g>>>0>=8>>>0){am(7024,8944,195,11576);return 0}h=a+16|0;i=c[h>>2]|0;if((g|0)!=(i&7|0)){am(5576,8944,196,11576);return 0}g=i+b|0;c[h>>2]=g;c[f>>2]=g&7;if(g>>>0>c[a+12>>2]<<3>>>0){j=-1;return j|0}c[e>>2]=d+(g>>>3);j=0;return j|0}function bw(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;g=d[864+b|0]|0;h=d[808+b|0]|0;b=c[984+(h*12|0)>>2]<<g;i=c[988+(h*12|0)>>2]<<g;j=c[992+(h*12|0)>>2]<<g;if((e|0)==0){c[a>>2]=_(c[a>>2]|0,b)|0}L4:do{if((f&65436|0)==0){if((f&98|0)==0){e=(c[a>>2]|0)+32>>6;if((e+512|0)>>>0>1023>>>0){k=1;return k|0}else{c[a+60>>2]=e;c[a+56>>2]=e;c[a+52>>2]=e;c[a+48>>2]=e;c[a+44>>2]=e;c[a+40>>2]=e;c[a+36>>2]=e;c[a+32>>2]=e;c[a+28>>2]=e;c[a+24>>2]=e;c[a+20>>2]=e;c[a+16>>2]=e;c[a+12>>2]=e;c[a+8>>2]=e;c[a+4>>2]=e;c[a>>2]=e;break}}e=a+4|0;g=_(c[e>>2]|0,i)|0;h=a+20|0;l=_(c[h>>2]|0,b)|0;m=a+24|0;n=_(c[m>>2]|0,i)|0;o=c[a>>2]|0;p=(g>>1)-n|0;q=(n>>1)+g|0;g=l+32+o|0;n=q+g>>6;c[a>>2]=n;r=o-l+32|0;l=r+p>>6;c[e>>2]=l;e=r-p>>6;c[a+8>>2]=e;p=g-q>>6;c[a+12>>2]=p;c[a+48>>2]=n;c[a+32>>2]=n;c[a+16>>2]=n;c[a+52>>2]=l;c[a+36>>2]=l;c[h>>2]=l;c[a+56>>2]=e;c[a+40>>2]=e;c[m>>2]=e;c[a+60>>2]=p;c[a+44>>2]=p;c[a+28>>2]=p;if((n+512|0)>>>0>1023>>>0){k=1;return k|0}if((l+512|0)>>>0>1023>>>0){k=1;return k|0}if((e+512|0)>>>0>1023>>>0){k=1;return k|0}if((p+512|0)>>>0>1023>>>0){k=1}else{break}return k|0}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28;break}if((g+512|0)>>>0>1023>>>0){k=1;P=27;break}if((e+512|0)>>>0>1023>>>0){k=1;P=19;break}if((l+512|0)>>>0>1023>>>0){k=1;P=20;break}else{E=E-1|0;w=w+4|0}}if((P|0)==19){return k|0}else if((P|0)==20){return k|0}else if((P|0)==27){return k|0}else if((P|0)==28){return k|0}}}while(0);k=0;return k|0}function bx(a){a=a|0;var b=0,d=0;if((a|0)==0){am(6344,8904,134,10680)}b=c[a+8>>2]|0;if(b>>>0>=8>>>0){am(7024,8904,135,10680)}d=8-b|0;if(d>>>0<32>>>0){bu(a)|0;bv(a,d)|0;return}else{am(7656,8944,79,11544)}}function by(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;if((a|0)==0){am(6344,8840,114,11944);return 0}if((b|0)==0){am(7632,8840,115,11944);return 0}d=bu(a)|0
\ No newline at end of file
-// EMSCRIPTEN_END_FUNCS
-var aA=[bJ,bJ];var aB=[bK,bK];var aC=[bL,bL];var aD=[bM,bM];return{_h264bsdCroppingParams:bb,_strlen:bE,_free:bB,_h264bsdNextOutputPictureRGBA:a6,_h264bsdAlloc:bc,_h264bsdPicWidth:a7,_h264bsdShutdown:a4,_memset:bC,_malloc:bA,_h264bsdNextOutputPicture:a5,_h264bsdPicHeight:a8,_memcpy:bD,_h264bsdInit:a2,_h264bsdConvertToRGBA:a9,_h264bsdFree:bd,_h264bsdCheckValidParamSets:ba,_h264bsdDecode:a3,runPostSets:aU,stackAlloc:aE,stackSave:aF,stackRestore:aG,setThrew:aH,setTempRet0:aK,setTempRet1:aL,setTempRet2:aM,setTempRet3:aN,setTempRet4:aO,setTempRet5:aP,setTempRet6:aQ,setTempRet7:aR,setTempRet8:aS,setTempRet9:aT,dynCall_ii:bF,dynCall_v:bG,dynCall_iii:bH,dynCall_vi:bI}
-// EMSCRIPTEN_END_ASM
-})({Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array},{abort:H,assert:z,asmPrintInt:function(a,b){s.print("int "+a+","+b)},asmPrintFloat:function(a,b){s.print("float "+a+","+b)},min:Ca,invoke_ii:function(a,b){try{return s.dynCall_ii(a,b)}catch(c){"number"!==typeof c&&"longjmp"!==c&&e(c),$.setThrew(1,0)}},invoke_v:function(a){try{s.dynCall_v(a)}catch(b){"number"!==
-typeof b&&"longjmp"!==b&&e(b),$.setThrew(1,0)}},invoke_iii:function(a,b,c){try{return s.dynCall_iii(a,b,c)}catch(d){"number"!==typeof d&&"longjmp"!==d&&e(d),$.setThrew(1,0)}},invoke_vi:function(a,b){try{s.dynCall_vi(a,b)}catch(c){"number"!==typeof c&&"longjmp"!==c&&e(c),$.setThrew(1,0)}},_llvm_lifetime_end:r(),_sysconf:function(a){switch(a){case 30:return 4096;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 79:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;
-case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;
-case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1E3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return 1}pb(S.u);return-1},_pwrite:function(a,b,c,d){a=X[a];if(!a)return pb(S.da),-1;
-try{return bc(a,K,b,c,d)}catch(f){return Ib(f),-1}},_sbrk:nc,___assert_fail:function(a,b,c,d){ta=l;e("Assertion failed: "+za(a)+", at: "+[b?za(b):"unknown filename",c,d?za(d):"unknown function"]+" at "+La())},___setErrNo:pb,_fwrite:jc,__reallyNegative:lc,__formatString:mc,_send:function(a,b,c){return!Z.vb(a)?(pb(S.da),-1):ic(a,b,c)},_write:ic,_llvm_lifetime_start:r(),_abort:function(){s.abort()},_fprintf:function(a,b,c){c=mc(b,c);b=ha();a=jc(N(c,"i8",1),1,c.length,a);ia(b);return a},_time:function(a){var b=
-Math.floor(Date.now()/1E3);a&&(M[a>>2]=b);return b},___errno_location:function(){return ob},_fflush:r(),STACKTOP:w,STACK_MAX:Qa,tempDoublePtr:kb,ABORT:ta,NaN:NaN,Infinity:Infinity,_stderr:jb},Q);s._h264bsdCroppingParams=$._h264bsdCroppingParams;var kc=s._strlen=$._strlen;s._free=$._free;s._h264bsdNextOutputPictureRGBA=$._h264bsdNextOutputPictureRGBA;s._h264bsdAlloc=$._h264bsdAlloc;s._h264bsdPicWidth=$._h264bsdPicWidth;s._h264bsdShutdown=$._h264bsdShutdown;var lb=s._memset=$._memset,Ja=s._malloc=$._malloc;
-s._h264bsdNextOutputPicture=$._h264bsdNextOutputPicture;s._h264bsdPicHeight=$._h264bsdPicHeight;var mb=s._memcpy=$._memcpy;s._h264bsdInit=$._h264bsdInit;s._h264bsdConvertToRGBA=$._h264bsdConvertToRGBA;s._h264bsdFree=$._h264bsdFree;s._h264bsdCheckValidParamSets=$._h264bsdCheckValidParamSets;s._h264bsdDecode=$._h264bsdDecode;var ib=s.runPostSets=$.runPostSets;s.dynCall_ii=$.dynCall_ii;s.dynCall_v=$.dynCall_v;s.dynCall_iii=$.dynCall_iii;s.dynCall_vi=$.dynCall_vi;oa=function(a){return $.stackAlloc(a)};
+{
+        if(!window.getUserMedia) {
+          window.getUserMedia = navigator['getUserMedia'] ||
+                                navigator['mozGetUserMedia'];
+        }
+        window.getUserMedia(func);
+      },getMovementX:function (event) {
+        return event['movementX'] ||
+               event['mozMovementX'] ||
+               event['webkitMovementX'] ||
+               0;
+      },getMovementY:function (event) {
+        return event['movementY'] ||
+               event['mozMovementY'] ||
+               event['webkitMovementY'] ||
+               0;
+      },getMouseWheelDelta:function (event) {
+        return Math.max(-1, Math.min(1, event.type === 'DOMMouseScroll' ? event.detail : -event.wheelDelta));
+      },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup
+        if (Browser.pointerLock) {
+          // When the pointer is locked, calculate the coordinates
+          // based on the movement of the mouse.
+          // Workaround for Firefox bug 764498
+          if (event.type != 'mousemove' &&
+              ('mozMovementX' in event)) {
+            Browser.mouseMovementX = Browser.mouseMovementY = 0;
+          } else {
+            Browser.mouseMovementX = Browser.getMovementX(event);
+            Browser.mouseMovementY = Browser.getMovementY(event);
+          }
+          
+          // check if SDL is available
+          if (typeof SDL != "undefined") {
+          	Browser.mouseX = SDL.mouseX + Browser.mouseMovementX;
+          	Browser.mouseY = SDL.mouseY + Browser.mouseMovementY;
+          } else {
+          	// just add the mouse delta to the current absolut mouse position
+          	// FIXME: ideally this should be clamped against the canvas size and zero
+          	Browser.mouseX += Browser.mouseMovementX;
+          	Browser.mouseY += Browser.mouseMovementY;
+          }        
+        } else {
+          // Otherwise, calculate the movement based on the changes
+          // in the coordinates.
+          var rect = Module["canvas"].getBoundingClientRect();
+          var x, y;
+          
+          // Neither .scrollX or .pageXOffset are defined in a spec, but
+          // we prefer .scrollX because it is currently in a spec draft.
+          // (see: http://www.w3.org/TR/2013/WD-cssom-view-20131217/)
+          var scrollX = ((typeof window.scrollX !== 'undefined') ? window.scrollX : window.pageXOffset);
+          var scrollY = ((typeof window.scrollY !== 'undefined') ? window.scrollY : window.pageYOffset);
+          if (event.type == 'touchstart' ||
+              event.type == 'touchend' ||
+              event.type == 'touchmove') {
+            var t = event.touches.item(0);
+            if (t) {
+              x = t.pageX - (scrollX + rect.left);
+              y = t.pageY - (scrollY + rect.top);
+            } else {
+              return;
+            }
+          } else {
+            x = event.pageX - (scrollX + rect.left);
+            y = event.pageY - (scrollY + rect.top);
+          }
+  
+          // the canvas might be CSS-scaled compared to its backbuffer;
+          // SDL-using content will want mouse coordinates in terms
+          // of backbuffer units.
+          var cw = Module["canvas"].width;
+          var ch = Module["canvas"].height;
+          x = x * (cw / rect.width);
+          y = y * (ch / rect.height);
+  
+          Browser.mouseMovementX = x - Browser.mouseX;
+          Browser.mouseMovementY = y - Browser.mouseY;
+          Browser.mouseX = x;
+          Browser.mouseY = y;
+        }
+      },xhrLoad:function (url, onload, onerror) {
+        var xhr = new XMLHttpRequest();
+        xhr.open('GET', url, true);
+        xhr.responseType = 'arraybuffer';
+        xhr.onload = function xhr_onload() {
+          if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
+            onload(xhr.response);
+          } else {
+            onerror();
+          }
+        };
+        xhr.onerror = onerror;
+        xhr.send(null);
+      },asyncLoad:function (url, onload, onerror, noRunDep) {
+        Browser.xhrLoad(url, function(arrayBuffer) {
+          assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).');
+          onload(new Uint8Array(arrayBuffer));
+          if (!noRunDep) removeRunDependency('al ' + url);
+        }, function(event) {
+          if (onerror) {
+            onerror();
+          } else {
+            throw 'Loading data file "' + url + '" failed.';
+          }
+        });
+        if (!noRunDep) addRunDependency('al ' + url);
+      },resizeListeners:[],updateResizeListeners:function () {
+        var canvas = Module['canvas'];
+        Browser.resizeListeners.forEach(function(listener) {
+          listener(canvas.width, canvas.height);
+        });
+      },setCanvasSize:function (width, height, noUpdates) {
+        var canvas = Module['canvas'];
+        Browser.updateCanvasDimensions(canvas, width, height);
+        if (!noUpdates) Browser.updateResizeListeners();
+      },windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:function () {
+        // check if SDL is available   
+        if (typeof SDL != "undefined") {
+        	var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
+        	flags = flags | 0x00800000; // set SDL_FULLSCREEN flag
+        	HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
+        }
+        Browser.updateResizeListeners();
+      },setWindowedCanvasSize:function () {
+        // check if SDL is available       
+        if (typeof SDL != "undefined") {
+        	var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
+        	flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag
+        	HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
+        }
+        Browser.updateResizeListeners();
+      },updateCanvasDimensions:function (canvas, wNative, hNative) {
+        if (wNative && hNative) {
+          canvas.widthNative = wNative;
+          canvas.heightNative = hNative;
+        } else {
+          wNative = canvas.widthNative;
+          hNative = canvas.heightNative;
+        }
+        var w = wNative;
+        var h = hNative;
+        if (Module['forcedAspectRatio'] && Module['forcedAspectRatio'] > 0) {
+          if (w/h < Module['forcedAspectRatio']) {
+            w = Math.round(h * Module['forcedAspectRatio']);
+          } else {
+            h = Math.round(w / Module['forcedAspectRatio']);
+          }
+        }
+        if (((document['webkitFullScreenElement'] || document['webkitFullscreenElement'] ||
+             document['mozFullScreenElement'] || document['mozFullscreenElement'] ||
+             document['fullScreenElement'] || document['fullscreenElement'] ||
+             document['msFullScreenElement'] || document['msFullscreenElement'] ||
+             document['webkitCurrentFullScreenElement']) === canvas.parentNode) && (typeof screen != 'undefined')) {
+           var factor = Math.min(screen.width / w, screen.height / h);
+           w = Math.round(w * factor);
+           h = Math.round(h * factor);
+        }
+        if (Browser.resizeCanvas) {
+          if (canvas.width  != w) canvas.width  = w;
+          if (canvas.height != h) canvas.height = h;
+          if (typeof canvas.style != 'undefined') {
+            canvas.style.removeProperty( "width");
+            canvas.style.removeProperty("height");
+          }
+        } else {
+          if (canvas.width  != wNative) canvas.width  = wNative;
+          if (canvas.height != hNative) canvas.height = hNative;
+          if (typeof canvas.style != 'undefined') {
+            if (w != wNative || h != hNative) {
+              canvas.style.setProperty( "width", w + "px", "important");
+              canvas.style.setProperty("height", h + "px", "important");
+            } else {
+              canvas.style.removeProperty( "width");
+              canvas.style.removeProperty("height");
+            }
+          }
+        }
+      }};
+
+  function _time(ptr) {
+      var ret = Math.floor(Date.now()/1000);
+      if (ptr) {
+        HEAP32[((ptr)>>2)]=ret;
+      }
+      return ret;
+    }
+
+___errno_state = Runtime.staticAlloc(4); HEAP32[((___errno_state)>>2)]=0;
+FS.staticInit();__ATINIT__.unshift({ func: function() { if (!Module["noFSInit"] && !FS.init.initialized) FS.init() } });__ATMAIN__.push({ func: function() { FS.ignorePermissions = false } });__ATEXIT__.push({ func: function() { FS.quit() } });Module["FS_createFolder"] = FS.createFolder;Module["FS_createPath"] = FS.createPath;Module["FS_createDataFile"] = FS.createDataFile;Module["FS_createPreloadedFile"] = FS.createPreloadedFile;Module["FS_createLazyFile"] = FS.createLazyFile;Module["FS_createLink"] = FS.createLink;Module["FS_createDevice"] = FS.createDevice;
+__ATINIT__.unshift({ func: function() { TTY.init() } });__ATEXIT__.push({ func: function() { TTY.shutdown() } });TTY.utf8 = new Runtime.UTF8Processor();
+if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); NODEFS.staticInit(); }
+__ATINIT__.push({ func: function() { SOCKFS.root = FS.mount(SOCKFS, {}, null); } });
+Module["requestFullScreen"] = function Module_requestFullScreen(lockPointer, resizeCanvas) { Browser.requestFullScreen(lockPointer, resizeCanvas) };
+  Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) };
+  Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
+  Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };
+  Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };
+  Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }
+STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
+
+staticSealed = true; // seal the static portion of memory
+
+STACK_MAX = STACK_BASE + 5242880;
+
+DYNAMIC_BASE = DYNAMICTOP = Runtime.alignMemory(STACK_MAX);
+
+assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");
+
+
+var Math_min = Math.min;
+function asmPrintInt(x, y) {
+  Module.print('int ' + x + ',' + y);// + ' ' + new Error().stack);
+}
+function asmPrintFloat(x, y) {
+  Module.print('float ' + x + ',' + y);// + ' ' + new Error().stack);
+}
+// EMSCRIPTEN_START_ASM
+var asm=(function(global,env,buffer){"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env._stderr|0;var n=0;var o=0;var p=0;var q=0;var r=+env.NaN,s=+env.Infinity;var t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0.0;var C=0;var D=0;var E=0;var F=0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=global.Math.floor;var N=global.Math.abs;var O=global.Math.sqrt;var P=global.Math.pow;var Q=global.Math.cos;var R=global.Math.sin;var S=global.Math.tan;var T=global.Math.acos;var U=global.Math.asin;var V=global.Math.atan;var W=global.Math.atan2;var X=global.Math.exp;var Y=global.Math.log;var Z=global.Math.ceil;var _=global.Math.imul;var $=env.abort;var aa=env.assert;var ba=env.asmPrintInt;var ca=env.asmPrintFloat;var da=env.min;var ea=env._llvm_lifetime_start;var fa=env._fflush;var ga=env.__formatString;var ha=env._time;var ia=env._send;var ja=env._pwrite;var ka=env._abort;var la=env.__reallyNegative;var ma=env._fwrite;var na=env._sbrk;var oa=env._mkport;var pa=env._fprintf;var qa=env.___setErrNo;var ra=env._llvm_lifetime_end;var sa=env._fileno;var ta=env._write;var ua=env._emscripten_memcpy_big;var va=env._sysconf;var wa=env.___errno_location;var xa=0.0;
+// EMSCRIPTEN_START_FUNCS
+function Eb(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;h=c[e>>2]|0;if((h|0)==16777215){i=g;return}j=f>>>0<16;k=j?16:8;l=j?f:f&3;l=(_(c[4648+(l<<2)>>2]|0,k)|0)+(c[4584+(l<<2)>>2]|0)|0;n=b+l|0;j=c[e+4>>2]|0;m=b+(l+1)|0;f=d[m]|0;a[n]=a[4712+(h+512+(d[n]|0))|0]|0;n=c[e+8>>2]|0;h=b+(l+2)|0;o=d[h]|0;a[m]=a[4712+(j+512+f)|0]|0;m=b+(l+3)|0;f=a[4712+((c[e+12>>2]|0)+512+(d[m]|0))|0]|0;a[h]=a[4712+(n+512+o)|0]|0;a[m]=f;l=l+k|0;m=b+l|0;f=c[e+20>>2]|0;h=b+(l+1)|0;o=d[h]|0;a[m]=a[4712+((c[e+16>>2]|0)+512+(d[m]|0))|0]|0;m=c[e+24>>2]|0;n=b+(l+2)|0;j=d[n]|0;a[h]=a[4712+(f+512+o)|0]|0;h=b+(l+3)|0;o=a[4712+((c[e+28>>2]|0)+512+(d[h]|0))|0]|0;a[n]=a[4712+(m+512+j)|0]|0;a[h]=o;l=l+k|0;h=b+l|0;o=c[e+36>>2]|0;n=b+(l+1)|0;j=d[n]|0;a[h]=a[4712+((c[e+32>>2]|0)+512+(d[h]|0))|0]|0;h=c[e+40>>2]|0;m=b+(l+2)|0;f=d[m]|0;a[n]=a[4712+(o+512+j)|0]|0;n=b+(l+3)|0;j=a[4712+((c[e+44>>2]|0)+512+(d[n]|0))|0]|0;a[m]=a[4712+(h+512+f)|0]|0;a[n]=j;k=l+k|0;l=b+k|0;n=c[e+52>>2]|0;j=b+(k+1)|0;m=d[j]|0;a[l]=a[4712+((c[e+48>>2]|0)+512+(d[l]|0))|0]|0;l=c[e+56>>2]|0;f=b+(k+2)|0;h=d[f]|0;a[j]=a[4712+(n+512+m)|0]|0;k=b+(k+3)|0;j=a[4712+((c[e+60>>2]|0)+512+(d[k]|0))|0]|0;a[f]=a[4712+(l+512+h)|0]|0;a[k]=j;i=g;return}function Fb(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;h=i;i=i+48|0;s=h;r=h+8|0;w=h+16|0;x=h+24|0;m=h+32|0;n=h+40|0;_c(d|0,0,2088)|0;q=Rc(a,m)|0;A=c[m>>2]|0;do{if((f|0)==2|(f|0)==7){f=A+6|0;if(f>>>0<32&(q|0)==0){c[d>>2]=f;break}else{A=1;i=h;return A|0}}else{f=A+1|0;if(f>>>0<32&(q|0)==0){c[d>>2]=f;break}else{A=1;i=h;return A|0}}}while(0);q=d;a:do{if((f|0)==31){while(1){if((Ic(a)|0)!=0){break}if((Fc(a,1)|0)!=0){z=1;t=99;break}}if((t|0)==99){i=h;return z|0}e=0;d=d+328|0;while(1){j=Fc(a,8)|0;c[m>>2]=j;if((j|0)==-1){z=1;break}c[d>>2]=j;e=e+1|0;if(e>>>0<384){d=d+4|0}else{break a}}i=h;return z|0}else{b:do{if(f>>>0<6){if((f|0)==0|(f|0)==1){u=r;v=s}else if((f|0)==3|(f|0)==2){u=r;v=s}else{A=0;while(1){if((Rc(a,w)|0)!=0){z=1;t=99;break}t=c[w>>2]|0;if(t>>>0>3){z=1;t=99;break}c[d+(A<<2)+176>>2]=t;A=A+1|0;if(!(A>>>0<4)){t=18;break}}if((t|0)==18){c:do{if(g>>>0<2|(f|0)==5){y=0}else{t=g>>>0>2|0;z=0;while(1){if((Uc(a,w,t)|0)!=0){z=1;t=99;break}A=c[w>>2]|0;if(!(A>>>0<g>>>0)){z=1;t=99;break}c[d+(z<<2)+192>>2]=A;z=z+1|0;if(!(z>>>0<4)){y=0;break c}}if((t|0)==99){i=h;return z|0}}}while(0);d:while(1){t=c[d+(y<<2)+176>>2]|0;if((t|0)==0){t=0}else if((t|0)==2|(t|0)==1){t=1}else{t=3}c[w>>2]=t;t=0;while(1){z=Sc(a,x)|0;if((z|0)!=0){t=99;break d}b[d+(y<<4)+(t<<2)+208>>1]=c[x>>2];z=Sc(a,x)|0;if((z|0)!=0){t=99;break d}b[d+(y<<4)+(t<<2)+210>>1]=c[x>>2];A=c[w>>2]|0;c[w>>2]=A+ -1;if((A|0)==0){break}else{t=t+1|0}}y=y+1|0;if(!(y>>>0<4)){p=2;t=72;break b}}if((t|0)==99){i=h;return z|0}}else if((t|0)==99){i=h;return z|0}}if(g>>>0>1){if((f|0)==0|(f|0)==1){w=0}else if((f|0)==3|(f|0)==2){w=1}else{w=3}t=g>>>0>2|0;x=0;while(1){if((Uc(a,s,t)|0)!=0){o=1;t=70;break b}y=c[s>>2]|0;if(!(y>>>0<g>>>0)){o=1;t=70;break b}c[d+(x<<2)+144>>2]=y;if((w|0)==0){break}else{w=w+ -1|0;x=x+1|0}}}if((f|0)==3|(f|0)==2){t=1;s=0}else if((f|0)==0|(f|0)==1){t=0;s=0}else{t=3;s=0}while(1){g=Sc(a,r)|0;if((g|0)!=0){o=g;t=70;break b}b[d+(s<<2)+160>>1]=c[r>>2];g=Sc(a,r)|0;if((g|0)!=0){o=g;t=70;break b}b[d+(s<<2)+162>>1]=c[r>>2];if((t|0)==0){p=2;t=72;break}else{t=t+ -1|0;s=s+1|0}}}else{v=(f|0)!=6;u=v&1;f=s;g=r;if((u|0)==0){c[r>>2]=0;t=0;while(1){w=Gc(a)|0;c[s>>2]=w;A=w>>>31;c[d+(t<<2)+12>>2]=A;if((A|0)==0){c[d+(t<<2)+76>>2]=w>>>28&7;w=w<<4;y=1}else{w=w<<1;y=0}x=t|1;A=w>>>31;c[d+(x<<2)+12>>2]=A;if((A|0)==0){c[d+(x<<2)+76>>2]=w>>>28&7;w=w<<4;y=y+1|0}else{w=w<<1}x=x+1|0;A=w>>>31;c[d+(x<<2)+12>>2]=A;if((A|0)==0){c[d+(x<<2)+76>>2]=w>>>28&7;x=w<<4;y=y+1|0}else{x=w<<1}w=t|3;A=x>>>31;c[d+(w<<2)+12>>2]=A;if((A|0)==0){c[d+(w<<2)+76>>2]=x>>>28&7;x=x<<4;y=y+1|0}else{x=x<<1}z=w+1|0;A=x>>>31;c[d+(z<<2)+12>>2]=A;if((A|0)==0){c[d+(z<<2)+76>>2]=x>>>28&7;x=x<<4;y=y+1|0}else{x=x<<1}z=w+2|0;A=x>>>31;c[d+(z<<2)+12>>2]=A;if((A|0)==0){c[d+(z<<2)+76>>2]=x>>>28&7;x=x<<4;y=y+1|0}else{x=x<<1}w=w+3|0;A=x>>>31;c[d+(w<<2)+12>>2]=A;if((A|0)==0){c[d+(w<<2)+76>>2]=x>>>28&7;w=x
\ No newline at end of file
+
+
+
+function ya(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+7&-8;return b|0}function za(){return i|0}function Aa(a){a=a|0;i=a}function Ba(a,b){a=a|0;b=b|0;if((n|0)==0){n=a;o=b}}function Ca(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0]}function Da(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0];a[k+4|0]=a[b+4|0];a[k+5|0]=a[b+5|0];a[k+6|0]=a[b+6|0];a[k+7|0]=a[b+7|0]}function Ea(a){a=a|0;C=a}function Fa(a){a=a|0;D=a}function Ga(a){a=a|0;E=a}function Ha(a){a=a|0;F=a}function Ia(a){a=a|0;G=a}function Ja(a){a=a|0;H=a}function Ka(a){a=a|0;I=a}function La(a){a=a|0;J=a}function Ma(a){a=a|0;K=a}function Na(a){a=a|0;L=a}function Oa(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;h=i;a:do{if(e>>>0>3){if((a[b]|0)!=0){j=19;break}if((a[b+1|0]|0)!=0){j=19;break}m=a[b+2|0]|0;if(!((m&255)<2)){j=19;break}b:do{if((e|0)!=3){l=-3;k=3;j=b+3|0;o=2;while(1){if(m<<24>>24==0){o=o+1|0}else if(m<<24>>24==1){if(o>>>0>1){p=k;o=0;m=0;n=0;break}else{o=0}}else{o=0}n=k+1|0;if((n|0)==(e|0)){break b}l=~k;m=a[j]|0;k=n;j=j+1|0}while(1){r=a[j]|0;q=p+1|0;s=r<<24>>24!=0;n=(s&1^1)+n|0;o=r<<24>>24==3&(n|0)==2?1:o;if(r<<24>>24==1&n>>>0>1){j=14;break}if(s){m=n>>>0>2?1:m;n=0}if((q|0)==(e|0)){j=18;break}else{j=j+1|0;p=q}}if((j|0)==14){e=l+p-n|0;c[f+12>>2]=e;n=n-(n>>>0<3?n:3)|0;break a}else if((j|0)==18){e=l+e-n|0;c[f+12>>2]=e;break a}}}while(0);c[g>>2]=e;s=1;i=h;return s|0}else{j=19}}while(0);if((j|0)==19){c[f+12>>2]=e;o=1;k=0;m=0;n=0}b=b+k|0;c[f>>2]=b;c[f+4>>2]=b;c[f+8>>2]=0;c[f+16>>2]=0;f=f+12|0;c[g>>2]=n+k+e;if((m|0)!=0){s=1;i=h;return s|0}if((o|0)==0){s=0;i=h;return s|0}k=c[f>>2]|0;l=b;g=b;m=0;c:while(1){e=k;b=l;while(1){k=e+ -1|0;if((e|0)==0){j=31;break c}e=a[b]|0;if((m|0)!=2){break}if(!(e<<24>>24==3)){j=29;break}if((k|0)==0){g=1;j=32;break c}b=b+1|0;if((d[b]|0)>3){g=1;j=32;break c}else{m=0;e=k}}if((j|0)==29){j=0;if((e&255)<3){g=1;j=32;break}else{m=2}}a[g]=e;l=b+1|0;g=g+1|0;m=e<<24>>24==0?m+1|0:0}if((j|0)==31){c[f>>2]=g-b+(c[f>>2]|0);s=0;i=h;return s|0}else if((j|0)==32){i=h;return g|0}return 0}function Pa(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;j=i;i=i+128|0;h=j;l=j+64|0;o=Gc(a)|0;M=o>>>16;do{if(f>>>0<2){if((o|0)<0){J=1;break}if(o>>>0>201326591){K=e[648+(o>>>26<<1)>>1]|0;L=25;break}if(o>>>0>16777215){K=e[712+(o>>>22<<1)>>1]|0;L=25;break}if(o>>>0>2097151){K=e[808+((o>>>18)+ -8<<1)>>1]|0;L=25;break}else{K=e[920+(M<<1)>>1]|0;L=25;break}}else{if(f>>>0<4){if((o|0)<0){J=(M&16384|0)!=0?2:2082;break}if(o>>>0>268435455){K=e[984+(o>>>26<<1)>>1]|0;L=25;break}if(o>>>0>33554431){K=e[1048+(o>>>23<<1)>>1]|0;L=25;break}else{K=e[1112+(o>>>18<<1)>>1]|0;L=25;break}}else{if(f>>>0<8){K=o>>>26;if((K+ -8|0)>>>0<56){K=e[1368+(K<<1)>>1]|0;L=25;break}K=e[1496+(o>>>22<<1)>>1]|0;L=25;break}if(f>>>0<17){K=e[1752+(o>>>26<<1)>>1]|0;L=25;break}K=o>>>29;if((K|0)!=0){K=e[1880+(K<<1)>>1]|0;L=25;break}K=e[1896+(o>>>24<<1)>>1]|0;L=25;break}}}while(0);do{if((L|0)==25){if((K|0)==0){q=1}else{J=K;break}i=j;return q|0}}while(0);K=J&31;f=o<<K;L=32-K|0;o=J>>>11&31;if(o>>>0>g>>>0){O=1;i=j;return O|0}J=J>>>5&63;do{if((o|0)==0){n=L;p=0}else{if((J|0)==0){M=0}else{do{if(L>>>0<J>>>0){if((Hc(a,K)|0)==-1){O=1;i=j;return O|0}else{L=32;f=Gc(a)|0;break}}}while(0);K=f>>>(32-J|0);f=f<<J;M=0;N=1<<J+ -1;do{c[h+(M<<2)>>2]=(N&K|0)!=0?-1:1;N=N>>>1;M=M+1|0;}while((N|0)!=0);L=L-J|0}K=J>>>0<3;a:do{if(M>>>0<o>>>0){N=o>>>0>10&K&1;b:while(1){if(L>>>0<16){if((Hc(a,32-L|0)|0)==-1){q=1;L=127;break}O=32;f=Gc(a)|0}else{O=L}do{if((f|0)<0){E=0;L=56}else{if(f>>>0>1073741823){E=1;L=56;break}if(f>>>0>536870911){E=2;L=56;break}if(f>>>0>268435455){E=3;L=56;break}if(f>>>0>134217727){E=4;L=56;break}if(f>>>0>67108863){E=5;L=56;break}if(f>>>0>33554431){E=6;L=56;break}if(f>>>0>16777215){E=7;L=56;break}if(f>>>0>8388607){E=8;L=56;break}if(f>>>0>4194303){E=9;L=56;break}if(f>>>0>2097151){E=10;L=56;break}if(f>>>0>1048575){E=11;L=56;break}if(f>>>0>524287){E=12;L=56;break}if(f>>>0>262143){E=13;L=56;break}if(f>>>0>131071){A=O+ -15|0;v=f<<15;D=14;C=(N|0)!=0?
\ No newline at end of file
+
+
+
+
+// EMSCRIPTEN_END_FUNCS
+return{_h264bsdCroppingParams:hb,_h264bsdDecode:$a,_h264bsdInit:_a,_memset:_c,_h264bsdNextOutputPictureRGBA:cb,_h264bsdAlloc:ib,_h264bsdShutdown:ab,_h264bsdPicHeight:eb,_strlen:$c,_malloc:Xc,_h264bsdNextOutputPicture:bb,_h264bsdPicWidth:db,_memcpy:ad,_free:Yc,_h264bsdConvertToRGBA:fb,_h264bsdFree:jb,_h264bsdCheckValidParamSets:gb,runPostSets:Zc,stackAlloc:ya,stackSave:za,stackRestore:Aa,setThrew:Ba,setTempRet0:Ea,setTempRet1:Fa,setTempRet2:Ga,setTempRet3:Ha,setTempRet4:Ia,setTempRet5:Ja,setTempRet6:Ka,setTempRet7:La,setTempRet8:Ma,setTempRet9:Na}})
+
+
+// EMSCRIPTEN_END_ASM
+({ "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array }, { "abort": abort, "assert": assert, "asmPrintInt": asmPrintInt, "asmPrintFloat": asmPrintFloat, "min": Math_min, "_llvm_lifetime_start": _llvm_lifetime_start, "_fflush": _fflush, "__formatString": __formatString, "_time": _time, "_send": _send, "_pwrite": _pwrite, "_abort": _abort, "__reallyNegative": __reallyNegative, "_fwrite": _fwrite, "_sbrk": _sbrk, "_mkport": _mkport, "_fprintf": _fprintf, "___setErrNo": ___setErrNo, "_llvm_lifetime_end": _llvm_lifetime_end, "_fileno": _fileno, "_write": _write, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_sysconf": _sysconf, "___errno_location": ___errno_location, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "tempDoublePtr": tempDoublePtr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity, "_stderr": _stderr }, buffer);
+var _h264bsdCroppingParams = Module["_h264bsdCroppingParams"] = asm["_h264bsdCroppingParams"];